Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
f6492be2
Commit
f6492be2
authored
Oct 23, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟多联系人 样式调整
parent
e32e2a16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
+25
-12
showContacts.vue
...iews/ecw/productBrank/Empower/components/showContacts.vue
+23
-10
index.vue
src/views/ecw/productBrank/Empower/index.vue
+2
-2
No files found.
src/views/ecw/productBrank/Empower/components/showContacts.vue
View file @
f6492be2
...
@@ -7,28 +7,41 @@ export default {
...
@@ -7,28 +7,41 @@ export default {
data
(){
data
(){
return
{
return
{
phoneList
:[],
phoneList
:[],
show
:
false
}
}
},
},
mounted
()
{
mounted
()
{
let
phone
=
this
.
phoneString
let
phone
=
this
.
phoneString
this
.
phoneList
=
phone
.
split
(
'
(;)
'
);
this
.
phoneList
=
phone
.
split
(
'
(;)
'
);
console
.
log
(
this
.
phoneList
)
}
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div>
<div>
<div
v-for=
"(item, index) in phoneList"
:key=
"index"
>
<el-dialog
:modal-append-to-body=
"false"
:append-to-body=
"true"
:visible.sync=
"show"
>
<div>
<div
v-for=
"(item, index) in phoneList"
:key=
"index"
>
<span>
联系人
{{
index
+
1
}}
:
</span>
<div>
<span>
{{
item
.
split
(
'
(@)
'
)[
1
]
}}
</span>
<span>
联系人
{{
index
+
1
}}
:
</span>
<span>
{{
item
.
split
(
'
(@)
'
)[
1
]
}}
</span>
</div>
<div>
<span>
联系电话
{{
index
+
1
}}
:
</span>
<span>
+
{{
item
.
split
(
'
(@)
'
)[
0
]
}}
</span>
</div>
</div>
</el-dialog>
<div>
<div>
<span>
联系人:
</span>
<span>
{{
phoneList
[
0
]
?
phoneList
[
0
].
split
(
'
(@)
'
)[
1
]
:
''
}}
</span>
</div>
<div
style=
"white-space: normal;"
>
<span>
联系电话:
</span>
<span>
+
{{
phoneList
[
0
]
?
phoneList
[
0
].
split
(
'
(@)
'
)[
0
]
:
''
}}
</span>
<el-button
v-if=
"phoneList.length > 1"
@
click=
"show = true;"
style=
"margin-left: 10px;"
size=
"mini"
type=
"text"
>
更多
</el-button>
</div>
</div>
<div>
</div>
<span>
联系电话
{{
index
+
1
}}
:
</span>
<span>
+
{{
item
.
split
(
'
(@)
'
)[
0
]
}}
</span>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/ecw/productBrank/Empower/index.vue
View file @
f6492be2
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<el-table-column
<el-table-column
:label=
"$t('客户号码')"
>
:label=
"$t('客户号码')"
>
<template
v-slot=
"
{row}">
<template
v-slot=
"
{row}">
<show-contacts
:phone-string=
"row.phone"
></show-contacts>
<show-contacts
:phone-string=
"row.phone"
></show-contacts>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
:label=
"$t('客户名称')"
>
:label=
"$t('客户名称')"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
width=
"2
1
0"
width=
"2
6
0"
:label=
"$t('客户号码')"
>
:label=
"$t('客户号码')"
>
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<show-contacts
:phone-string=
"row.phone"
></show-contacts>
<show-contacts
:phone-string=
"row.phone"
></show-contacts>
...
...
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