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 585bf2f4
authored
Mar 28, 2023
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
裂变页面
1 parent
1ba3d3e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
8 deletions
linkwe-pc/src/views/application/common/FassionSetting.vue
linkwe-pc/src/views/application/taskGroup/add.vue
linkwe-pc/src/views/application/common/FassionSetting.vue
View file @
585bf2f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<el-row
:gutter=
"20"
type=
"flex"
style=
"margin-top: 20px;"
>
<el-row
:gutter=
"20"
type=
"flex"
style=
"margin-top: 20px;"
>
<el-col>
<el-col>
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<el-form
ref=
"baseForm"
:rules=
"rules"
:model=
"form"
label-position=
"right"
label-width=
"1
0
0px"
>
<el-form
ref=
"baseForm"
:rules=
"rules"
:model=
"form"
label-position=
"right"
label-width=
"1
5
0px"
>
<el-form-item
label=
"选择海报:"
prop=
"posterId"
>
<el-form-item
label=
"选择海报:"
prop=
"posterId"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"choseDialog = true"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"choseDialog = true"
>
{{
form
.
posterId
?
'编辑'
:
'选择'
}}
海报
{{
form
.
posterId
?
'编辑'
:
'选择'
}}
海报
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
</ul>
</ul>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"form.fassionType == 1"
label=
"添加员工"
required
>
<template
v-if=
"form.fassionType == 1"
>
<el-form-item
label=
"添加员工"
required
>
<SelectMemberVue
<SelectMemberVue
ref=
"selectMember"
ref=
"selectMember"
:isDetail=
"isDetail"
:isDetail=
"isDetail"
...
@@ -29,7 +30,51 @@
...
@@ -29,7 +30,51 @@
:initData=
"form.addWeUserOrGroupCode.addWeUser"
:initData=
"form.addWeUserOrGroupCode.addWeUser"
@
update=
"getMember"
@
update=
"getMember"
></SelectMemberVue>
></SelectMemberVue>
<div
class=
"sub-des"
>
引导新客户扫码时添加以上任意成员为好友
</div>
</el-form-item>
</
template
>
<
template
v-if=
"form.fassionType == 2"
>
<el-form-item
label=
"添加客群:"
prop=
"chatIdList"
>
<template
v-for=
"(item, index) in groupList"
>
<el-tag
v-if=
"item.groupName"
size=
"medium"
:key=
"index"
>
{{
item
.
groupName
}}
</el-tag>
</
template
>
<div>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"selectGroupFn"
>
{{ '添加' }}客群
</el-button>
</div>
<div
class=
"sub-des"
>
最多选择五个客群
</div>
</el-form-item>
<el-form-item
label=
"群满是否自动建群:"
>
<el-switch
v-model=
"form.addWeUserOrGroupCode.addGroupCode.autoCreateRoom"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
<div
class=
"sub-des"
>
默认以第一个群的群主作为新建群的群主
</div>
</el-form-item>
<el-form-item
v-if=
"form.addWeUserOrGroupCode.addGroupCode.autoCreateRoom"
label=
""
>
<el-card>
<el-form-item
label=
"群名前缀:"
prop=
"addWeUserOrGroupCode.addGroupCode.roomBaseName"
>
<el-input
show-word-limit
maxlength=
"20"
v-model=
"form.addWeUserOrGroupCode.addGroupCode.roomBaseName"
placeholder=
"请输入群名前缀"
></el-input>
</el-form-item>
<el-form-item
label=
"群起始序号:"
prop=
"addWeUserOrGroupCode.addGroupCode.roomBaseId"
>
<el-input-number
v-model=
"form.addWeUserOrGroupCode.addGroupCode.roomBaseId"
controls-position=
"right"
:min=
"1"
></el-input-number>
</el-form-item>
</el-form-item>
</el-card>
</el-form-item>
</template>
<el-form-item
label=
"任务文案"
required
style=
"margin-right: 200px !important;"
>
<el-form-item
label=
"任务文案"
required
style=
"margin-right: 200px !important;"
>
<div
v-if=
"!isDetail"
style=
"margin-bottom: 10px;"
>
<div
v-if=
"!isDetail"
style=
"margin-bottom: 10px;"
>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
...
@@ -76,10 +121,12 @@
...
@@ -76,10 +121,12 @@
<el-button
@
click=
"welcomVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"welcomVisible = false"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<select-group
:visible
.
sync=
"showSelectModal"
:defaults=
"groupList"
@
submit=
"setSelectData"
></select-group>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
SelectGroup
from
'@/views/drainageCode/components/SelectGroup.vue'
import
{
templateDetail
}
from
'@/api/contentCenter/modleCenter'
import
{
templateDetail
}
from
'@/api/contentCenter/modleCenter'
import
SelectPoster
from
'@/views/drainageCode/components/IdentitySelect'
import
SelectPoster
from
'@/views/drainageCode/components/IdentitySelect'
import
SelectMemberVue
from
'./SelectMember.vue'
import
SelectMemberVue
from
'./SelectMember.vue'
...
@@ -90,7 +137,8 @@
...
@@ -90,7 +137,8 @@
components
:
{
components
:
{
SelectPoster
,
SelectPoster
,
SelectMemberVue
,
SelectMemberVue
,
TemplateLibrary
TemplateLibrary
,
SelectGroup
},
},
props
:
{
props
:
{
isDetail
:
{
isDetail
:
{
...
@@ -109,7 +157,7 @@
...
@@ -109,7 +157,7 @@
form
:
{
form
:
{
posterId
:
''
,
posterId
:
''
,
posterUrl
:
''
,
posterUrl
:
''
,
fassionType
:
1
,
fassionType
:
2
,
addWeUserOrGroupCode
:
{
addWeUserOrGroupCode
:
{
addWeUser
:
{
addWeUser
:
{
executeUserCondit
:
{
executeUserCondit
:
{
...
@@ -121,18 +169,36 @@
...
@@ -121,18 +169,36 @@
deptIds
:
[],
deptIds
:
[],
posts
:
[]
posts
:
[]
}
}
},
addGroupCode
:
{
autoCreateRoom
:
0
,
//当群满了后,是否自动新建群。0-否;1-是。 默认为0
roomBaseName
:
''
,
//自动建群的群名前缀,当auto_create_room为1时有效
roomBaseId
:
null
,
//自动建群的群起始序号,当auto_create_room为1时有效
chatIdList
:
''
// groupNames: ''
}
}
},
},
content
:
''
content
:
''
},
},
rules
:
{},
rules
:
{
posterObj
:
{}
chatIdList
:
[{
required
:
true
,
message
:
'请添加活码客群'
,
trigger
:
'blur'
}],
'addWeUserOrGroupCode.addGroupCode.roomBaseName'
:
[
{
required
:
true
,
message
:
'请输入群名前缀'
,
trigger
:
'blur'
}
],
'addWeUserOrGroupCode.addGroupCode.roomBaseId'
:
[
{
required
:
true
,
message
:
'请输入群起始序号'
,
trigger
:
'blur'
}
]
},
posterObj
:
{},
groupList
:
[],
showSelectModal
:
false
}
}
},
},
watch
:
{
watch
:
{
baseData
:
{
baseData
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
setData
(
val
)
this
.
form
=
val
this
.
setData
()
},
},
immediate
:
true
immediate
:
true
},
},
...
@@ -142,6 +208,19 @@
...
@@ -142,6 +208,19 @@
},
},
methods
:
{
methods
:
{
setData
()
{},
setData
()
{},
selectGroupFn
()
{
this
.
showSelectModal
=
true
},
setSelectData
(
data
)
{
if
(
data
&&
data
.
length
)
{
this
.
groupList
=
data
this
.
form
.
addWeUserOrGroupCode
.
addGroupCode
.
chatIdList
=
this
.
groupList
.
map
((
dd
)
=>
{
return
dd
.
chatId
})
.
join
(
','
)
}
},
changeObj
(
id
)
{
changeObj
(
id
)
{
if
(
id
)
{
if
(
id
)
{
templateDetail
(
id
).
then
((
res
)
=>
{
templateDetail
(
id
).
then
((
res
)
=>
{
...
@@ -173,4 +252,10 @@
...
@@ -173,4 +252,10 @@
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.sub-des
{
font-size
:
12px
;
font-weight
:
400
;
color
:
#999999
;
}
</
style
>
linkwe-pc/src/views/application/taskGroup/add.vue
View file @
585bf2f
...
@@ -47,6 +47,12 @@
...
@@ -47,6 +47,12 @@
deptIds
:
[],
deptIds
:
[],
posts
:
[]
posts
:
[]
}
}
},
addGroupCode
:
{
autoCreateRoom
:
0
,
roomBaseName
:
''
,
roomBaseId
:
null
,
chatIdList
:
''
}
}
},
},
content
:
''
content
:
''
...
...
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