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
db131b12
Commit
db131b12
authored
Aug 05, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表添加更多联系人弹窗
parent
b63aecbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
1 deletion
+60
-1
contacts.vue
src/views/ecw/customer/components/contacts.vue
+53
-0
index.vue
src/views/ecw/customer/index.vue
+7
-1
No files found.
src/views/ecw/customer/components/contacts.vue
0 → 100644
View file @
db131b12
<
template
>
<div
style=
"display: inline-block"
>
<span
@
click=
"visible = true"
>
<slot></slot></span>
<el-dialog
title=
"更多联系人"
:visible.sync=
"visible"
>
<div
v-if=
"info"
>
<div
style=
"text-align: center;margin-bottom: 20px;"
v-for=
"(item, index) in info"
:key=
"index"
>
联系人
{{
index
+
1
}}
:
{{
$l
(
'
name
'
,
item
)
}}
联系方式
{{
index
+
1
}}
:+
{{
item
.
areaCode
}}
{{
item
.
phoneNew
}}
<br/>
邮箱:
{{
item
.
email
}}
</div>
</div>
<div
v-else
>
暂无数据
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
getCustomerContacts
,
getCustomerContactsListByCustomer
}
from
"
@/api/ecw/customerContacts
"
;
export
default
{
name
:
"
contacts
"
,
props
:{
id
:[
Number
]
},
data
(){
return
{
visible
:
false
,
info
:
null
,
}
},
methods
:{
getCustomerContactsFn
()
{
getCustomerContactsListByCustomer
({
customerId
:
this
.
id
}).
then
(
r
=>
{
console
.
log
(
r
,
'
rrr
'
)
this
.
info
=
r
.
data
})
}
},
watch
:{
visible
(
val
){
if
(
val
){
this
.
getCustomerContactsFn
()
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ecw/customer/index.vue
View file @
db131b12
...
...
@@ -125,7 +125,10 @@
<el-table-column
:label=
"$t('主联系人')"
prop=
"defaultContactName"
></el-table-column>
<el-table-column
:label=
"$t('主联系方式')"
prop=
"defaultContactPhone"
>
<
template
v-slot=
"{row}"
>
+
{{
row
.
defaultContactPhone
}}
+
{{
row
.
defaultContactPhone
}}
<br/>
<contacts
:id=
"row.id"
>
<el-button
type=
"text"
>
更多
</el-button>
</contacts>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('创建时间')"
align=
"center"
prop=
"createTime"
width=
"180"
>
...
...
@@ -514,6 +517,7 @@
<customer-complaints
:customer-id=
"customerId"
ref=
"customerComplaints"
></customer-complaints>
<transfer-customer
:show.sync=
"transferShow"
:customer-ids.sync=
"selectCustomerList"
></transfer-customer>
<add-potential-custom
ref=
"potentialCustom"
@
change=
"getList"
></add-potential-custom>
</div>
</template>
...
...
@@ -536,10 +540,12 @@ import {getCreditPage} from "@/api/customer/credit";
import
transferCustomer
from
"
@/views/ecw/customer/transferCustomer
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
AddPotentialCustom
from
"
@/views/ecw/customer/addPotentialCustom.vue
"
;
import
Contacts
from
"
@/views/ecw/customer/components/contacts.vue
"
;
export
default
{
name
:
"
EcwCustomerIndex
"
,
components
:
{
Contacts
,
AddPotentialCustom
,
Template
,
upload
,
...
...
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