Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 76c0aac9
authored
Oct 29, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
f72a13f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
29 deletions
vue3-lw-pc/src/views/communityOperating/newCustomer/aev.vue
vue3-lw-pc/src/views/communityOperating/newCustomer/api.js
vue3-lw-pc/src/views/communityOperating/newCustomer/aev.vue
View file @
76c0aac
...
...
@@ -76,28 +76,6 @@ export default {
this
.
loading
=
false
})
},
// 选择人员变化事件
submitSelectUser
(
users
)
{
this
.
form
.
users
=
users
.
map
((
d
)
=>
{
return
{
id
:
d
.
userId
,
name
:
d
.
name
,
}
})
},
onSelectUser
()
{
this
.
form
.
users
?.
forEach
((
e
)
=>
(
e
.
userId
=
e
.
id
))
this
.
dialogVisibleSelectUser
=
true
},
// 客户标签选择
submitSelectTag
(
tags
)
{
this
.
form
.
tags
=
tags
.
map
((
t
)
=>
{
return
{
id
:
t
.
tagId
,
name
:
t
.
name
,
}
})
},
// 选择二维码确认按钮
// submitSelectQrCode(data) {
// this.groupQrCode = data
...
...
@@ -162,7 +140,7 @@ export default {
<el-input
v-model=
"form.codeName"
maxlength=
"30"
show-word-limit
placeholder=
"请输入"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"使用员工"
prop=
"users"
>
<el-button
type=
"primary"
@
click=
"
onSelectUser
"
>
选择员工
</el-button>
<el-button
type=
"primary"
@
click=
"
dialogVisibleSelectUser = true
"
>
选择员工
</el-button>
<br
/>
<TagEllipsis
:list=
"form.users"
limit=
"10"
></TagEllipsis>
</el-form-item>
...
...
@@ -273,19 +251,34 @@ export default {
v-model:visible=
"dialogVisibleSelectUser"
title=
"选择使用员工"
:defaultValues=
"form.users"
@
success=
"(data) => (form.users = data.map((e) => ((e.id = e.userId), e)))"
></SelectUser>
@
success=
"
(data) => {
form.users = data.map((e) => ((e.id = e.userId), e))
$refs.form.validateField('users')
}
"
></SelectUser>
<!-- 选择标签弹窗 -->
<SelectTag
v-model:visible=
"dialogVisibleSelectTag"
:selected=
"form.tags"
@
success=
"(data) => (form.tags = data.map((e) => ((e.id = e.tagId), e)))"
></SelectTag>
@
success=
"
(data) => {
form.tags = data.map((e) => ((e.id = e.tagId), e))
$refs.form.validateField('tags')
}
"
></SelectTag>
<!-- 选择客群弹窗 -->
<SelectGroup
v-model:visible=
"dialogVisibleSelectGroup"
:defaults=
"form.groups"
@
submit=
"(data) => (form.groups = data.map((e) => ((e.id = e.chatId), (e.name = e.groupName), e)))"
></SelectGroup>
@
submit=
"
(data) => {
form.groups = data.map((e) => ((e.id = e.chatId), (e.name = e.groupName), e))
$refs.form.validateField('groups')
}
"
></SelectGroup>
<!-- 选择二维码弹窗 -->
<!-- <SelectQrCode
...
...
vue3-lw-pc/src/views/communityOperating/newCustomer/api.js
View file @
76c0aac
...
...
@@ -27,15 +27,17 @@ export function getDetail(id) {
// 统一处理数据结构
if
(
data
.
emplList
&&
data
.
emplNames
)
{
let
names
=
data
.
emplNames
?.
split
(
','
)
data
.
users
=
data
.
emplList
?.
split
(
','
).
map
((
e
,
i
)
=>
({
id
:
e
,
name
:
names
?.[
i
]
}))
data
.
users
=
data
.
emplList
?.
split
(
','
).
map
((
e
,
i
)
=>
({
id
:
e
,
userId
:
e
,
name
:
names
?.[
i
]
}))
}
if
(
data
.
tagList
&&
data
.
tagNames
)
{
let
names
=
data
.
tagNames
?.
split
(
','
)
data
.
tags
=
data
.
tagList
?.
split
(
','
).
map
((
e
,
i
)
=>
({
id
:
e
,
name
:
names
?.[
i
]
}))
data
.
tags
=
data
.
tagList
?.
split
(
','
).
map
((
e
,
i
)
=>
({
id
:
e
,
tagId
:
e
,
name
:
names
?.[
i
]
}))
}
if
(
data
.
chatIdList
&&
data
.
groupNames
)
{
let
names
=
data
.
groupNames
?.
split
(
','
)
data
.
groups
=
data
.
chatIdList
?.
split
(
','
).
map
((
e
,
i
)
=>
({
id
:
e
,
name
:
names
?.[
i
]
}))
data
.
groups
=
data
.
chatIdList
?.
split
(
','
)
.
map
((
e
,
i
)
=>
({
id
:
e
,
chatId
:
e
,
name
:
names
?.[
i
],
groupName
:
names
?.[
i
]
}))
}
return
{
data
}
})
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment