Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
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-manage-shell
Commits
f0a2f315
Commit
f0a2f315
authored
May 23, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'test'
用户卡片添加showCellphone参数控制是否展示全部的用户手机号码 See merge request
!117
parents
220f35fa
9be044b0
Show 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 @
f0a2f315
...
...
@@ -22,6 +22,7 @@
:customerId=
"customerId"
:visible=
"visible"
:showMoney=
"showMoney"
:showCellphone=
"showCellphone"
ref=
"userContent"
>
<button
...
...
@@ -65,6 +66,10 @@ export default {
type
:
Boolean
,
default
:
false
,
},
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
mixins
:
[
Popup
],
// mounted() {
...
...
src/components/Dialog/UserDialogWrap.js
View file @
f0a2f315
...
...
@@ -77,6 +77,10 @@ export default {
type
:
Boolean
,
default
:
false
,
},
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
data
()
{
return
{
...
...
src/components/UserCard/UserCard.vue
View file @
f0a2f315
...
...
@@ -73,7 +73,8 @@
<span>
{{
getTypeLabel
(
customerType
)
}}
</span>
</div>
<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>
</div>
</div>
...
...
@@ -144,6 +145,10 @@ export default {
showEdit
:
{
type
:
Function
,
default
:
()
=>
{}
},
showAccount
:
{
type
:
Function
,
default
:
()
=>
{}
},
toggleLock
:
{
type
:
Function
,
default
:
()
=>
{}
},
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
mixins
:
[
getUserInfoLabelMixin
],
data
()
{
...
...
src/components/UserCard/UserInfo.vue
View file @
f0a2f315
...
...
@@ -15,7 +15,8 @@
<span>
{{
getTypeLabel
(
customerBaseInfo
.
customerType
)
}}
</span>
</div>
<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>
</div>
</div>
...
...
@@ -84,6 +85,12 @@ import UserBaseInfoMixin from '../../mixins/user/userBaseInfo.js';
import
getUserInfoLabelMixin
from
'@/mixins/user/getUserInfoLabel.js'
;
export
default
{
props
:
{
showCellphone
:
{
type
:
Boolean
,
default
:
false
,
},
},
mixins
:
[
UserBaseInfoMixin
,
getUserInfoLabelMixin
],
};
</
script
>
...
...
src/components/UserCard/UserWithContent.vue
View file @
f0a2f315
...
...
@@ -6,6 +6,7 @@
:customerId=
"customerId"
:customerPhone=
"customerPhone"
:showMoney=
"showMoney"
:showCellphone=
"showCellphone"
:visible=
"visible"
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