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
a95a11f2
Commit
a95a11f2
authored
Oct 21, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权客户添加多个联系方式
parent
173a324b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
4 deletions
+46
-4
showContacts.vue
...iews/ecw/productBrank/Empower/components/showContacts.vue
+37
-0
index.vue
src/views/ecw/productBrank/Empower/index.vue
+9
-4
No files found.
src/views/ecw/productBrank/Empower/components/showContacts.vue
0 → 100644
View file @
a95a11f2
<
script
>
export
default
{
name
:
"
showContacts
"
,
props
:{
phoneString
:[
String
]
},
data
(){
return
{
phoneList
:[],
}
},
mounted
()
{
let
phone
=
this
.
phoneString
this
.
phoneList
=
phone
.
split
(
'
(;)
'
);
console
.
log
(
this
.
phoneList
)
}
}
</
script
>
<
template
>
<div>
<div
v-for=
"(item, index) in phoneList"
:key=
"index"
>
<div>
<span>
联系人
{{
index
+
1
}}
:
</span>
<span>
{{
item
.
split
(
'
(@)
'
)[
1
]
}}
</span>
</div>
<div>
<span>
联系电话
{{
index
+
1
}}
:
</span>
<span>
+
{{
item
.
split
(
'
(@)
'
)[
0
]
}}
</span>
</div>
</div>
</div>
</
template
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/ecw/productBrank/Empower/index.vue
View file @
a95a11f2
...
@@ -43,9 +43,10 @@
...
@@ -43,9 +43,10 @@
:label=
"$t('客户名称')"
>
:label=
"$t('客户名称')"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"phone"
:formatter=
"(row, column, cellValue) => '+' + cellValue"
:label=
"$t('客户号码')"
>
:label=
"$t('客户号码')"
>
<template
v-slot=
"
{row}">
<show-contacts
:phone-string=
"row.phone"
></show-contacts>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"feeScale"
prop=
"feeScale"
...
@@ -78,9 +79,11 @@
...
@@ -78,9 +79,11 @@
:label=
"$t('客户名称')"
>
:label=
"$t('客户名称')"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"phone"
width=
"210"
:formatter=
"(row, column, cellValue) => '+' + cellValue"
:label=
"$t('客户号码')"
>
:label=
"$t('客户号码')"
>
<
template
v-slot=
"{row}"
>
<show-contacts
:phone-string=
"row.phone"
></show-contacts>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"fileUrl"
prop=
"fileUrl"
...
@@ -211,10 +214,12 @@ import DictSelector from "@/components/DictSelector"
...
@@ -211,10 +214,12 @@ import DictSelector from "@/components/DictSelector"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
{
DICT_TYPE
,
getDictDataLabel
}
from
'
@/utils/dict
'
import
FileUpload
from
'
@/components/FileUpload
'
import
FileUpload
from
'
@/components/FileUpload
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
ShowContacts
from
"
@/views/ecw/productBrank/Empower/components/showContacts.vue
"
;
export
default
{
export
default
{
name
:
"
Empower
"
,
name
:
"
Empower
"
,
components
:
{
components
:
{
ShowContacts
,
DictSelector
,
DictSelector
,
FileUpload
FileUpload
}
,
}
,
...
...
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