Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-system
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
dcxy-system
Commits
9be044b0
Commit
9be044b0
authored
May 23, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户卡片添加showCellphone参数控制是否展示全部的用户手机号码
parent
5e926cbb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
2 deletions
+24
-2
UserDialog.vue
src/components/Dialog/UserDialog.vue
+5
-0
UserDialogWrap.js
src/components/Dialog/UserDialogWrap.js
+4
-0
UserCard.vue
src/components/UserCard/UserCard.vue
+6
-1
UserInfo.vue
src/components/UserCard/UserInfo.vue
+8
-1
UserWithContent.vue
src/components/UserCard/UserWithContent.vue
+1
-0
No files found.
src/components/Dialog/UserDialog.vue
View file @
9be044b0
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
:customerId=
"customerId"
:customerId=
"customerId"
:visible=
"visible"
:visible=
"visible"
:showMoney=
"showMoney"
:showMoney=
"showMoney"
:showCellphone=
"showCellphone"
ref=
"userContent"
ref=
"userContent"
>
>
<button
<button
...
@@ -65,6 +66,10 @@ export default {
...
@@ -65,6 +66,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
mixins
:
[
Popup
],
mixins
:
[
Popup
],
// mounted() {
// mounted() {
...
...
src/components/Dialog/UserDialogWrap.js
View file @
9be044b0
...
@@ -77,6 +77,10 @@ export default {
...
@@ -77,6 +77,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/components/UserCard/UserCard.vue
View file @
9be044b0
...
@@ -73,7 +73,8 @@
...
@@ -73,7 +73,8 @@
<span>
{{
getTypeLabel
(
customerType
)
}}
</span>
<span>
{{
getTypeLabel
(
customerType
)
}}
</span>
</div>
</div>
<div
class=
"UserInfo-Name-Col"
>
<div
class=
"UserInfo-Name-Col"
>
<span>
{{
$formatePhone
(
customerPhone
)
}}
</span>
<span
v-if=
"showCellphone"
>
{{
customerPhone
}}
</span>
<span
v-else
>
{{
$formatePhone
(
customerPhone
)
}}
</span>
<span>
{{
getSexLabel
(
customerSex
)
}}
</span>
<span>
{{
getSexLabel
(
customerSex
)
}}
</span>
</div>
</div>
</div>
</div>
...
@@ -144,6 +145,10 @@ export default {
...
@@ -144,6 +145,10 @@ export default {
showEdit
:
{
type
:
Function
,
default
:
()
=>
{}
},
showEdit
:
{
type
:
Function
,
default
:
()
=>
{}
},
showAccount
:
{
type
:
Function
,
default
:
()
=>
{}
},
showAccount
:
{
type
:
Function
,
default
:
()
=>
{}
},
toggleLock
:
{
type
:
Function
,
default
:
()
=>
{}
},
toggleLock
:
{
type
:
Function
,
default
:
()
=>
{}
},
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
mixins
:
[
getUserInfoLabelMixin
],
mixins
:
[
getUserInfoLabelMixin
],
data
()
{
data
()
{
...
...
src/components/UserCard/UserInfo.vue
View file @
9be044b0
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
<span>
{{
getTypeLabel
(
customerBaseInfo
.
customerType
)
}}
</span>
<span>
{{
getTypeLabel
(
customerBaseInfo
.
customerType
)
}}
</span>
</div>
</div>
<div
class=
"UserInfo-Name-Col"
>
<div
class=
"UserInfo-Name-Col"
>
<span>
{{
$formatePhone
(
customerBaseInfo
.
customerPhone
)
}}
</span>
<span
v-if=
"showCellphone"
>
{{
customerBaseInfo
.
customerPhone
}}
</span>
<span
v-else
>
{{
$formatePhone
(
customerBaseInfo
.
customerPhone
)
}}
</span>
<span>
{{
getSexLabel
(
customerBaseInfo
.
customerSex
)
}}
</span>
<span>
{{
getSexLabel
(
customerBaseInfo
.
customerSex
)
}}
</span>
</div>
</div>
</div>
</div>
...
@@ -84,6 +85,12 @@ import UserBaseInfoMixin from '../../mixins/user/userBaseInfo.js';
...
@@ -84,6 +85,12 @@ import UserBaseInfoMixin from '../../mixins/user/userBaseInfo.js';
import
getUserInfoLabelMixin
from
'@/mixins/user/getUserInfoLabel.js'
;
import
getUserInfoLabelMixin
from
'@/mixins/user/getUserInfoLabel.js'
;
export
default
{
export
default
{
props
:
{
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
mixins
:
[
UserBaseInfoMixin
,
getUserInfoLabelMixin
],
mixins
:
[
UserBaseInfoMixin
,
getUserInfoLabelMixin
],
};
};
</
script
>
</
script
>
...
...
src/components/UserCard/UserWithContent.vue
View file @
9be044b0
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
:customerId=
"customerId"
:customerId=
"customerId"
:customerPhone=
"customerPhone"
:customerPhone=
"customerPhone"
:showMoney=
"showMoney"
:showMoney=
"showMoney"
:showCellphone=
"showCellphone"
:visible=
"visible"
:visible=
"visible"
ref=
"UserInfo"
ref=
"UserInfo"
/>
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment