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 1ba3d3e3
authored
Mar 27, 2023
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
裂变页面
1 parent
9837d9a1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
235 additions
and
28 deletions
linkwe-pc/src/views/application/common/FassionBase.vue
linkwe-pc/src/views/application/common/FassionSetting.vue
linkwe-pc/src/views/application/common/SelectFassionGroup.vue
linkwe-pc/src/views/application/shortLinkPopularize/components/SelectMember.vue → linkwe-pc/src/views/application/common/SelectMember.vue
linkwe-pc/src/views/application/shortLinkPopularize/components/Step3Type4.vue
linkwe-pc/src/views/application/taskGroup/add.vue
linkwe-pc/src/views/application/common/FassionBase.vue
View file @
1ba3d3e
...
...
@@ -23,7 +23,7 @@
<template
v-if=
"form.fassionType == 1"
>
<SelectFassionCustomerVue
:dataObj=
"form.executeUserOrGroup"
@
update=
"getData"
></SelectFassionCustomerVue>
</
template
>
<
template
>
<
template
v-if=
"form.fassionType == 2"
>
<SelectFassionGroup
:dataObj=
"form.executeUserOrGroup"
@
update=
"getData"
></SelectFassionGroup>
</
template
>
</el-form>
...
...
@@ -31,7 +31,7 @@
</el-row>
</div>
<div
class=
"g-footer-sticky"
style=
"text-align: center;"
v-if=
"!isDetail"
>
<el-button
plain
>
取消
</el-button>
<el-button
plain
@
click=
"$router.go(-1)"
>
取消
</el-button>
<el-button
type=
"primary"
>
下一步
</el-button>
</div>
</div>
...
...
linkwe-pc/src/views/application/common/FassionSetting.vue
0 → 100644
View file @
1ba3d3e
<
template
>
<div>
<el-row
:gutter=
"20"
type=
"flex"
style=
"margin-top: 20px;"
>
<el-col>
<div
class=
"g-card"
>
<el-form
ref=
"baseForm"
:rules=
"rules"
:model=
"form"
label-position=
"right"
label-width=
"100px"
>
<el-form-item
label=
"选择海报:"
prop=
"posterId"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"choseDialog = true"
>
{{
form
.
posterId
?
'编辑'
:
'选择'
}}
海报
</el-button>
<div
style=
"margin-top: 10px;"
v-if=
"form.posterUrl"
>
<ul
class=
"el-upload-list el-upload-list--picture-card"
>
<li
class=
"el-upload-list__item is-success"
>
<img
style=
"width: 100%; height: 100%;"
:src=
"form.posterUrl"
/>
<span
class=
"el-upload-list__item-actions"
>
<span
class=
"el-upload-list__item-delete"
>
<i
class=
"el-icon-delete"
@
click=
"handleRemove"
></i>
</span>
</span>
</li>
</ul>
</div>
</el-form-item>
<el-form-item
v-if=
"form.fassionType == 1"
label=
"添加员工"
required
>
<SelectMemberVue
ref=
"selectMember"
:isDetail=
"isDetail"
title=
"发送范围"
:initData=
"form.addWeUserOrGroupCode.addWeUser"
@
update=
"getMember"
></SelectMemberVue>
</el-form-item>
<el-form-item
label=
"任务文案"
required
style=
"margin-right: 200px !important;"
>
<div
v-if=
"!isDetail"
style=
"margin-bottom: 10px;"
>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
</div>
<TextareaExtend
:disabled=
"isDetail"
v-model=
"form.content"
:toolbar=
"isDetail ? [] : ['emoji', 'insertCustomerNickName']"
maxlength=
"2000"
show-word-limit
placeholder=
"请输入"
:autosize=
"
{ minRows: 5, maxRows: 20 }"
clearable
:autofocus="false"
/>
</el-form-item>
</el-form>
</div>
<div
class=
"g-footer-sticky"
>
<el-button
plain
>
上一步
</el-button>
<el-button
type=
"primary"
>
下一步
</el-button>
</div>
</el-col>
<el-col
style=
"width: 370px;"
>
<div
class=
"g-card"
style=
"height: 100%;"
>
<div
class=
"info_title"
>
消息预览
</div>
<!--
<Preview
:value=
"posterUrl"
></Preview>
-->
</div>
</el-col>
</el-row>
<!-- 选择海报 -->
<SelectPoster
:choseDialog
.
sync=
"choseDialog"
@
itemArry=
"getItemArry"
:moduleType=
"5"
></SelectPoster>
<el-dialog
title=
"选择模板"
:visible
.
sync=
"welcomVisible"
width=
"60%"
append-to-body
:close-on-click-modal=
"false"
v-if=
"welcomVisible"
>
<TemplateLibrary
@
changeObj=
"changeObj"
/>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"selectModle"
>
确 定
</el-button>
<el-button
@
click=
"welcomVisible = false"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
templateDetail
}
from
'@/api/contentCenter/modleCenter'
import
SelectPoster
from
'@/views/drainageCode/components/IdentitySelect'
import
SelectMemberVue
from
'./SelectMember.vue'
import
TemplateLibrary
from
'@/components/ContentCenter/TemplateLibrary'
export
default
{
name
:
'task-steps-setting'
,
components
:
{
SelectPoster
,
SelectMemberVue
,
TemplateLibrary
},
props
:
{
isDetail
:
{
type
:
Boolean
,
default
:
false
},
baseData
:
{
type
:
Object
,
defalult
:
{}
}
},
data
()
{
return
{
welcomVisible
:
false
,
choseDialog
:
false
,
form
:
{
posterId
:
''
,
posterUrl
:
''
,
fassionType
:
1
,
addWeUserOrGroupCode
:
{
addWeUser
:
{
executeUserCondit
:
{
change
:
false
,
weUserIds
:
[]
},
executeDeptCondit
:
{
change
:
false
,
deptIds
:
[],
posts
:
[]
}
}
},
content
:
''
},
rules
:
{},
posterObj
:
{}
}
},
watch
:
{
baseData
:
{
handler
(
val
)
{
this
.
setData
(
val
)
},
immediate
:
true
},
'form.content'
:
{
handler
(
val
)
{}
}
},
methods
:
{
setData
()
{},
changeObj
(
id
)
{
if
(
id
)
{
templateDetail
(
id
).
then
((
res
)
=>
{
this
.
selectObj
=
res
.
data
})
}
},
selectModle
()
{
if
(
this
.
selectObj
)
{
this
.
welcomVisible
=
false
this
.
form
.
content
=
this
.
selectObj
.
templateInfo
}
else
{
this
.
$message
.
error
(
'请选择模板'
)
}
},
handleRemove
()
{
this
.
form
.
posterId
=
''
this
.
form
.
posterUrl
=
''
},
getItemArry
(
data
)
{
this
.
form
.
posterUrl
=
data
[
0
].
materialUrl
this
.
form
.
posterId
=
data
[
0
].
id
this
.
posterObj
=
data
[
0
]
},
getMember
(
data
)
{
this
.
form
.
addWeUserOrGroupCode
.
addWeUser
=
data
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
linkwe-pc/src/views/application/common/SelectFassionGroup.vue
View file @
1ba3d3e
<
template
>
<div>
<el-form-item
label=
"选择客群"
required
prop=
"type"
>
<el-radio-group
v-model=
"
form.t
ype"
@
change=
"clearData"
:disabled=
"isDetail"
>
<el-radio-group
v-model=
"
currentT
ype"
@
change=
"clearData"
:disabled=
"isDetail"
>
<el-radio
:label=
"0"
>
全部
</el-radio>
<el-radio
:label=
"1"
>
选择群主
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-if=
"
form.t
ype == 1"
>
<el-form-item
v-if=
"
currentT
ype == 1"
>
<div>
<div
class=
"item-magin aic"
>
<!--
<div
class=
"item-name"
v-if=
"!isDetail"
>
...
...
@@ -21,7 +21,7 @@
plain
@
click=
"onSelectCustomerGroup"
>
{{
form
.
u
serIds
?
'编辑'
:
'选择'
}}
群主
{{
form
.
weU
serIds
?
'编辑'
:
'选择'
}}
群主
</el-button>
<el-tag
v-for=
"item in selectCustomerGroupList"
:key=
"item.userId"
>
{{
item
.
name
}}
</el-tag>
</div>
...
...
@@ -43,7 +43,8 @@
data
()
{
return
{
form
:
{
type
:
0
weUserIds
:
''
,
//群主id,多个使用逗号隔开
weUserName
:
''
},
selectCustomerGroupList
:
[],
dialogVisibleSelectCustomerGroup
:
false
...
...
@@ -63,7 +64,6 @@
dataObj
:
{
handler
(
val
,
old
)
{
if
(
val
)
{
this
.
form
=
val
this
.
setData
()
}
},
...
...
@@ -73,45 +73,55 @@
},
methods
:
{
setData
()
{
if
(
this
.
form
.
userIds
)
{
if
(
!
data
)
{
this
.
currentType
=
0
this
.
form
=
{
weUserIds
:
''
,
weUserName
:
''
}
return
}
else
{
this
.
form
=
data
this
.
currentType
=
1
}
if
(
this
.
form
.
weUserIds
)
{
this
.
selectCustomerGroupList
=
[]
let
arr
=
this
.
form
.
u
serIds
.
split
(
','
)
let
arr
=
this
.
form
.
weU
serIds
.
split
(
','
)
let
obj
=
{}
arr
.
forEach
((
dd
)
=>
{
arr
.
forEach
((
dd
,
index
)
=>
{
obj
=
{
userId
:
dd
,
name
:
this
.
form
.
users
[
dd
]
name
:
this
.
form
.
weUserName
.
split
(
','
)[
index
]
}
this
.
selectCustomerGroupList
.
push
(
obj
)
})
}
},
clearData
(
type
)
{
if
(
type
==
0
)
{
this
.
selectCustomerGroupList
=
[]
this
.
form
.
userIds
=
''
this
.
changeFn
()
}
this
.
selectCustomerGroupList
=
[]
this
.
form
.
weUserIds
=
''
this
.
form
.
weUserName
=
''
this
.
changeFn
()
},
onSelectCustomerGroup
()
{
this
.
dialogVisibleSelectCustomerGroup
=
true
},
submitSelectCustomerGroup
(
users
)
{
this
.
selectCustomerGroupList
=
users
this
.
form
.
u
serIds
=
users
this
.
form
.
weU
serIds
=
users
.
map
((
dd
)
=>
{
return
dd
.
userId
})
.
join
(
','
)
let
obj
=
{}
users
.
forEach
((
ff
)
=>
{
obj
[
ff
.
userId
]
=
ff
.
name
})
this
.
form
.
users
=
obj
this
.
form
.
weUserName
=
users
.
map
((
dd
)
=>
{
return
dd
.
name
})
.
join
(
','
)
this
.
changeFn
()
},
changeFn
()
{
this
.
$emit
(
'update'
,
this
.
form
)
this
.
$emit
(
'update'
,
this
.
currentType
==
1
?
this
.
form
:
null
)
}
}
}
...
...
linkwe-pc/src/views/application/
shortLinkPopularize/components
/SelectMember.vue
→
linkwe-pc/src/views/application/
common
/SelectMember.vue
View file @
1ba3d3e
...
...
@@ -35,7 +35,7 @@
<div
slot=
"reference"
>
<i
class=
"el-icon-question"
></i>
</div>
<div>
可根据地域行政管理规划/组织架构部门,与岗位的组合条件来筛选
执行成员
。
</div>
<div>
可根据地域行政管理规划/组织架构部门,与岗位的组合条件来筛选。
</div>
</el-popover>
<div
class=
"select_unit"
v-if=
"form.executeDeptCondit.change"
>
<div
v-if=
"selectedDeptList.length > 0"
>
...
...
linkwe-pc/src/views/application/shortLinkPopularize/components/Step3Type4.vue
View file @
1ba3d3e
...
...
@@ -30,7 +30,7 @@
import
{
dateFormat
}
from
'@/utils/index'
import
SelectEndDateVue
from
'./SelectEndDate.vue'
import
SelectSendTypeVue
from
'./SelectSendType.vue'
import
SelectMemberVue
from
'./SelectMember.vue'
import
SelectMemberVue
from
'.
./../common
/SelectMember.vue'
export
default
{
name
:
'step3-type-4'
,
components
:
{
...
...
linkwe-pc/src/views/application/taskGroup/add.vue
View file @
1ba3d3e
...
...
@@ -10,25 +10,46 @@
<template
v-if=
"currentActive == 0"
>
<FassionBase
:baseData=
"form"
></FassionBase>
</
template
>
<
template
v-if=
"currentActive == 1"
>
<FassionSettingVue
:baseData=
"form"
></FassionSettingVue>
</
template
>
</div>
</template>
<
script
>
import
FassionBase
from
'../common/FassionBase.vue'
import
FassionSettingVue
from
'../common/FassionSetting.vue'
export
default
{
name
:
'task-group-add'
,
components
:
{
FassionBase
FassionBase
,
FassionSettingVue
},
data
()
{
return
{
currentActive
:
0
,
currentActive
:
1
,
form
:
{
fassionType
:
1
,
fassionName
:
''
,
fassionStartTime
:
''
,
fassionEndTime
:
''
,
executeUserOrGroup
:
null
executeUserOrGroup
:
null
,
posterId
:
''
,
posterUrl
:
''
,
addWeUserOrGroupCode
:
{
addWeUser
:
{
executeUserCondit
:
{
change
:
false
,
weUserIds
:
[]
},
executeDeptCondit
:
{
change
:
false
,
deptIds
:
[],
posts
:
[]
}
}
},
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