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 0487be72
authored
Nov 02, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新老客拉群修改
1 parent
c2119f5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
65 deletions
vue3-lw-pc/src/views/communityOperating/newCustomer/aev.vue
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
vue3-lw-pc/src/views/communityOperating/newCustomer/aev.vue
View file @
0487be7
...
...
@@ -10,7 +10,7 @@ export default {
newGroupId
:
''
,
dialogVisibleSelectUser
:
false
,
// 选择员工会话
dialogVisibleSelectTag
:
false
,
// 选择客户标签会话
dialogVisibleSelectGroup
:
false
,
// 选择
群活码会话
dialogVisibleSelectGroup
:
false
,
// 选择
客群弹窗
loading
:
false
,
form
:
{
codeName
:
''
,
// 活码名称
...
...
@@ -88,27 +88,15 @@ export default {
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
loading
=
true
if
(
this
.
$route
.
query
.
id
)
{
update
(
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'更新成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
else
{
add
(
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'添加成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
;(
this
.
$route
.
query
.
id
?
update
:
add
)(
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
()
this
.
loading
=
false
this
.
$router
.
back
()
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
})
},
...
...
vue3-lw-pc/src/views/communityOperating/oldCustomer/aev.vue
View file @
0487be7
...
...
@@ -90,7 +90,11 @@
<div>
<div
class=
"preview-wrap g-card mt0 sticky-t"
>
<div
class=
"g-card-title"
>
预览
</div>
<PhoneDialog
:list=
"[{ text: form.welcomeMsg || '请输入加群引导语' }, { image: groupQrCode.codeUrl }]"
/>
<PhoneDialog
:list=
"[
{ text: form.welcomeMsg || '请输入加群引导语' },
{ title: form.linkTitle, desc: form.linkDesc, image: form.linkCoverUrl },
]"
/>
</div>
</div>
</div>
...
...
@@ -122,7 +126,6 @@ export default {
tags
:
[],
users
:
[],
codes
:
[],
groupQrCode
:
{},
// 选择的群活码链接
dateRange
:
[],
// sendTypeOptions: [
// { label: '企业群发', value: 0 },
...
...
@@ -189,26 +192,7 @@ export default {
getDetail
(
id
)
{
this
.
loading
=
true
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
form
.
taskName
=
data
.
taskName
||
''
this
.
form
.
welcomeMsg
=
data
.
welcomeMsg
||
''
this
.
form
.
sendType
=
data
.
sendType
||
1
this
.
form
.
sendScope
=
data
.
sendScope
||
0
this
.
form
.
sendGender
=
data
.
sendGender
||
0
this
.
tags
=
data
.
tagList
||
[]
this
.
users
=
data
.
scopeList
||
[]
this
.
dateRange
=
[
data
.
cusBeginTime
||
''
,
data
.
cusEndTime
||
''
]
if
(
data
.
groupCodeInfo
&&
data
.
groupCodeInfo
.
id
)
{
this
.
codes
=
[
data
.
groupCodeInfo
]
this
.
groupQrCode
=
data
.
groupCodeInfo
this
.
form
.
groupCodeId
=
this
.
groupQrCode
.
id
}
else
{
this
.
codes
=
[]
this
.
groupQrCode
=
{}
this
.
form
.
groupCodeId
=
''
}
this
.
form
=
data
this
.
loading
=
false
})
},
...
...
@@ -259,27 +243,15 @@ export default {
})
},
sendData
()
{
if
(
this
.
id
)
{
update
(
this
.
id
,
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'更新成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
else
{
add
(
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'添加成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
;(
this
.
id
?
update
:
add
)(
this
.
form
)
.
then
(()
=>
{
this
.
msgSuccess
(
'添加成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
})
.
catch
(()
=>
{
this
.
loading
=
false
})
},
},
}
...
...
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