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 206c3c39
authored
Mar 29, 2023
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
裂变详情
1 parent
8d067b75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
390 additions
and
34 deletions
linkwe-pc/src/views/application/common/FassionBase.vue
linkwe-pc/src/views/application/common/FassionRules.vue
linkwe-pc/src/views/application/common/FassionSetting.vue
linkwe-pc/src/views/application/common/Statistics.vue
linkwe-pc/src/views/application/groupFission/list.vue
linkwe-pc/src/views/application/taskGroup/add.vue
linkwe-pc/src/views/application/taskGroup/api.js
linkwe-pc/src/views/application/taskGroup/detail-old.vue
linkwe-pc/src/views/application/taskGroup/detail.vue
linkwe-pc/src/views/application/taskGroup/list.vue
linkwe-pc/src/views/application/common/FassionBase.vue
View file @
206c3c3
<
template
>
<div>
<div
class=
"g-card"
style=
"margin-top: 20px;
"
>
<div
class=
"g-card"
:style=
"isDetail ? '' : 'margin-top: 20px;'
"
>
<el-row>
<el-col
:
offset=
"2"
:
span=
"8"
>
<el-col
:span=
"8"
>
<el-form
:model=
"form"
:rules=
"ruleForm"
ref=
"ruleForm"
label-width=
"120px"
labelPosition=
"right"
>
<el-form-item
label=
"任务名称"
prop=
"fassionName"
>
<el-input
v-model=
"form.fassionName"
placeholder=
"请输入名称"
maxlength=
"15"
show-word-limit
clearable
>
<el-input
:disabled=
"isDetail"
v-model=
"form.fassionName"
placeholder=
"请输入名称"
maxlength=
"15"
show-word-limit
clearable
>
</el-input>
</el-form-item>
<slot></slot>
<el-form-item
label=
"任务时间"
prop=
"fassionStartTime"
>
<el-date-picker
:disabled=
"isDetail"
@
change=
"setChange"
v-model
.
trim=
"dateRange"
:picker-options=
"pickerOptions"
...
...
@@ -22,10 +31,15 @@
></el-date-picker>
</el-form-item>
<template
v-if=
"form.fassionType == 1"
>
<SelectFassionCustomerVue
:dataObj=
"form.executeUserOrGroup"
@
update=
"getData"
></SelectFassionCustomerVue>
<SelectFassionCustomerVue
:isDetail=
"isDetail"
:dataObj=
"form.executeUserOrGroup"
@
update=
"getData"
></SelectFassionCustomerVue>
</
template
>
<
template
v-if=
"form.fassionType == 2"
>
<SelectFassionGroup
:isDetail=
"isDetail"
ref=
"fassionGroup"
:dataObj=
"form.executeUserOrGroup"
@
update=
"getData"
...
...
linkwe-pc/src/views/application/common/FassionRules.vue
View file @
206c3c3
...
...
@@ -2,16 +2,14 @@
<div>
<div
class=
"g-card"
style=
"margin-top: 20px;"
>
<el-row>
<el-col
:
offset=
"2"
:
span=
"15"
>
<el-col
:span=
"15"
>
<el-form
:model=
"form"
:rules=
"ruleForm"
ref=
"ruleForm"
label-width=
"120px"
labelPosition=
"right"
>
<el-form-item
label=
"兑奖条件"
prop=
"exchangeTip"
>
客户成功邀请
<el-input
style=
"width: 100px;"
v-model=
"form.exchangeTip"
></el-input>
人
<span
v-if=
"form.fassionType == 2"
>
入群
</span
>
,可参与兑奖
客户成功邀请
<el-input
:disabled=
"isDetail"
style=
"width: 100px;"
v-model=
"form.exchangeTip"
></el-input
>
人
<span
v-if=
"form.fassionType == 2"
>
入群
</span>
,可参与兑奖
</el-form-item>
<el-form-item
label=
"兑奖方式"
required
prop=
"exchangeType"
>
<el-radio-group
v-model=
"form.exchangeType"
@
change=
"changeType"
>
<el-radio-group
v-model=
"form.exchangeType"
@
change=
"changeType"
:disabled=
"isDetail"
>
<el-radio
:label=
"1"
>
跳转链接兑奖
</el-radio>
<el-radio
:label=
"2"
>
添加客服兑奖
</el-radio>
</el-radio-group>
...
...
@@ -19,11 +17,16 @@
<template
v-if=
"form.exchangeType == 1"
>
<div
class=
"select_content"
>
<el-form-item
label-width=
"80px"
label=
"兑奖链接"
prop=
"exchangeContent.redemptionLink"
>
<el-input
v-model=
"form.exchangeContent.redemptionLink"
placeholder=
"请输入兑奖链接"
></el-input>
<el-input
:disabled=
"isDetail"
v-model=
"form.exchangeContent.redemptionLink"
placeholder=
"请输入兑奖链接"
></el-input>
<div
class=
"sub-des"
>
仅做链接的跳转,不做具体兑奖的逻辑处理
</div>
</el-form-item>
<el-form-item
label-width=
"80px"
label=
"兑奖规则"
prop=
"exchangeContent.redemptionRule"
>
<el-input
:disabled=
"isDetail"
type=
"textarea"
style=
"border: none; resize: none; width: 364px;"
v-model=
"form.exchangeContent.redemptionRule"
...
...
linkwe-pc/src/views/application/common/FassionSetting.vue
View file @
206c3c3
...
...
@@ -3,16 +3,16 @@
<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=
"1
5
0px"
>
<el-form
ref=
"baseForm"
:rules=
"rules"
:model=
"form"
label-position=
"right"
label-width=
"1
2
0px"
>
<el-form-item
label=
"选择海报:"
prop=
"posterId"
>
<el-button
size=
"mini"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"choseDialog = true"
>
<el-button
v-if=
"!isDetail"
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-actions"
v-if=
"!isDetail"
>
<span
class=
"el-upload-list__item-delete"
>
<i
class=
"el-icon-delete"
@
click=
"handleRemove"
></i>
</span>
...
...
@@ -94,12 +94,12 @@
</el-form-item>
</el-form>
</div>
<div
class=
"g-footer-sticky"
>
<div
class=
"g-footer-sticky"
v-if=
"!isDetail"
>
<el-button
plain
@
click=
"gotoPre"
>
上一步
</el-button>
<el-button
type=
"primary"
@
click=
"gotoNext"
>
下一步
</el-button>
</div>
</el-col>
<el-col
style=
"width: 370px;"
>
<el-col
style=
"width: 370px;"
v-if=
"!isDetail"
>
<div
class=
"g-card"
style=
"height: 100%;"
>
<div
class=
"info_title"
>
消息预览
</div>
<!-- <Preview :value="posterUrl"></Preview> -->
...
...
linkwe-pc/src/views/application/common/Statistics.vue
0 → 100644
View file @
206c3c3
<
template
>
<div>
<CardGroupIndex
:data=
"cardData"
></CardGroupIndex>
<div
class=
"g-card"
>
<div
class=
"g-card-title"
>
数据趋势
</div>
<search-title
:showMore=
"true"
@
search=
"getLineData"
></search-title>
<chart-line
style=
"height: 300px;"
:legend=
"legend"
:xData=
"xdata"
:series=
"series"
></chart-line>
</div>
</div>
</
template
>
<
script
>
import
{
dateFormat
}
from
'@/utils/index'
import
ChartLine
from
'@/components/ChartLine.vue'
import
SearchTitle
from
'@/components/SearchTitle.vue'
import
{
getTotal
,
getLineData
}
from
'../taskGroup/api'
export
default
{
name
:
'fission-statistics'
,
components
:
{
SearchTitle
,
ChartLine
},
props
:
{
fissionType
:
{
type
:
Number
,
default
:
1
}
},
watch
:
{
fissionType
(
val
)
{
this
.
$forceUpdate
()
}
},
data
()
{
return
{
legend
:
[
'访问总数(pv)'
,
'访问总人数(uv)'
,
'小程序打开数'
],
xdata
:
[],
series
:
[],
cardData
:
[
{
title
:
this
.
fissionType
==
1
?
'员工邀请老客总数'
:
'员工触达客群总数'
,
tips
:
this
.
fissionType
==
1
?
'在当前任务中员工已送达的客户总数'
:
'在当前任务中员工已送达的客群总数'
,
value
:
0
},
{
title
:
this
.
fissionType
==
1
?
'完成任务老客总数'
:
'完成任务客户总数'
,
tips
:
this
.
fissionType
==
1
?
'在当前任务中完成裂变任务的老客总数'
:
'在当前任务中完成裂变任务的客户总数'
,
value
:
0
},
{
title
:
'裂变新客总数'
,
tips
:
this
.
fissionType
==
1
?
'在当前任务中成功添加员工的新客总数'
:
'在当前任务中成功添加客群的新客总数'
,
value
:
0
},
{
title
:
this
.
fissionType
==
1
?
'今日完成任务老客数'
:
'今日完成任务客户数'
,
tips
:
this
.
fissionType
==
1
?
'在当前任务中今日完成裂变任务的老客数'
:
'在当前任务中今日完成裂变任务的客户数'
,
value
:
0
,
title1
:
'较昨日'
,
value1
:
0
},
{
title
:
'今日裂变新客数'
,
tips
:
this
.
fissionType
==
1
?
'在当前任务中今日成功添加员工的新客数'
:
'在当前任务中今日成功添加客群的新客总数'
,
value
:
0
,
title1
:
'较昨日'
,
value1
:
0
}
],
value
:
[],
id
:
''
}
},
methods
:
{
getTabTotalFn
()
{
getTotal
(
this
.
id
).
then
((
res
)
=>
{
this
.
cardData
[
0
].
value
=
res
.
data
.
inviterOldCustomerNum
this
.
cardData
[
1
].
value
=
res
.
data
.
completeTaskOldCustomerNum
this
.
cardData
[
2
].
value
=
res
.
data
.
fissionCustomerNum
this
.
cardData
[
3
].
value
=
res
.
data
.
tdCompleteTaskOldCustomerNum
this
.
cardData
[
3
].
value1
=
Number
(
res
.
data
.
tdCompleteTaskOldCustomerNum
)
-
Number
(
res
.
data
.
ydCompleteTaskOldCustomerNum
)
this
.
cardData
[
4
].
value
=
res
.
data
.
tdFissionCustomerNum
this
.
cardData
[
4
].
value1
=
Number
(
res
.
data
.
tdFissionCustomerNum
)
-
Number
(
res
.
data
.
ydFissionCustomerNum
)
})
},
getLineData
(
data
)
{
this
.
$forceUpdate
()
data
.
promotionId
=
this
.
id
getLineData
(
data
).
then
(({
data
})
=>
{
this
.
xdata
=
data
.
xAxis
this
.
series
=
[
data
.
yAxis
.
pv
,
data
.
yAxis
.
uv
,
data
.
yAxis
.
open
]
this
.
$forceUpdate
()
})
}
},
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
this
.
getTabTotalFn
()
}
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
linkwe-pc/src/views/application/groupFission/list.vue
View file @
206c3c3
...
...
@@ -150,14 +150,6 @@
return
true
}
},
gotoShortLinkDetail
(
id
)
{
this
.
$router
.
push
({
path
:
'/drainageCode/publicCustomer/IntelligentShortLink/detail'
,
query
:
{
id
}
})
},
setType
(
data
)
{
let
str
=
''
this
.
infoType
.
forEach
((
dd
)
=>
{
...
...
linkwe-pc/src/views/application/taskGroup/add.vue
View file @
206c3c3
...
...
@@ -25,7 +25,7 @@
import
FassionRules
from
'../common/FassionRules.vue'
import
{
getFassionDetail
}
from
'./api'
export
default
{
name
:
'task-
group
-add'
,
name
:
'task-
customer
-add'
,
components
:
{
FassionBase
,
FassionSettingVue
,
...
...
linkwe-pc/src/views/application/taskGroup/api.js
View file @
206c3c3
...
...
@@ -51,3 +51,10 @@ export function getFassionDetail(id) {
url
:
wecom
+
'/getWeFissionDetail/'
+
id
})
}
// 统计 头部
export
function
getTotal
(
id
)
{
return
request
({
url
:
wecom
+
'/findWeFissionTab/'
+
id
})
}
linkwe-pc/src/views/application/taskGroup/detail-old.vue
0 → 100644
View file @
206c3c3
<
script
>
import
*
as
api
from
'@/api/task'
import
*
as
echarts
from
'echarts'
import
{
echartColors
,
dateFormat
}
from
'@/utils'
export
default
{
name
:
'taskDetail'
,
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
,
// "客户名称",
beginTime
:
''
,
// "开始时间",
endTime
:
''
,
// "结束时间"
},
dateRange
:
[],
tableData
:
[],
dateSelect
:
'近7日'
,
dateRange
:
[],
taskDetail
:
{},
statData
:
[],
}
},
created
()
{
this
.
getList
(
this
.
$route
.
query
.
id
)
this
.
getChartsData
({
seven
:
true
})
},
mounted
()
{
},
watch
:
{
statData
:
{
handler
(
newVal
,
oldVal
)
{
let
xData
=
[],
attends
=
[],
completes
=
[],
increases
=
[]
for
(
let
i
=
0
;
i
<
newVal
.
length
;
i
++
)
{
xData
.
push
(
newVal
[
i
].
day
)
attends
.
push
(
newVal
[
i
].
attend
)
completes
.
push
(
newVal
[
i
].
complete
)
increases
.
push
(
newVal
[
i
].
increase
)
}
// 指定图表的配置项和数据
let
option
=
{
tooltip
:
{
//设置tip提示
trigger
:
'axis'
,
},
legend
:
{
//设置区分(哪条线属于什么)
data
:
[
'日新增客户数'
,
'活动参与客户数'
,
'完成任务的客户数'
],
},
color
:
echartColors
,
//设置区分(每条线是什么颜色,和 legend 一一对应)
xAxis
:
{
//设置x轴
type
:
'category'
,
boundaryGap
:
false
,
//坐标轴两边不留白
data
:
xData
,
// name: '日期', //X轴 name
nameTextStyle
:
{
//坐标轴名称的文字样式
fontSize
:
16
,
// padding: [0, 0, 0, 20]
},
// axisLine: { //坐标轴轴线相关设置。
// lineStyle: {
// color: '#FA6F53',
// }
// }
},
yAxis
:
{
nameTextStyle
:
{
color
:
'#FA6F53'
,
fontSize
:
16
,
padding
:
[
0
,
0
,
10
,
0
],
},
// axisLine: {
// lineStyle: {
// color: '#FA6F53',
// }
// },
type
:
'value'
,
},
series
:
[
{
name
:
'日新增客户数'
,
data
:
increases
,
type
:
'line'
,
// 类型为折线图
// lineStyle: {
// // 线条样式 => 必须使用normal属性
// normal: {
// color: '#8AE09F',
// },
// },
},
{
name
:
'活动参与客户数'
,
data
:
attends
,
type
:
'line'
,
// lineStyle: {
// normal: {
// color: '#FA6F53',
// },
// },
},
{
name
:
'完成任务的客户数'
,
data
:
completes
,
type
:
'line'
,
// lineStyle: {
// normal: {
// color: '#FA6F53',
// },
// },
},
],
}
this
.
initChart
(
option
)
},
},
},
methods
:
{
getList
(
id
)
{
api
.
getTaskDetail
(
id
).
then
((
res
)
=>
{
this
.
taskDetail
=
res
.
data
})
},
getChartsData
(
params
)
{
params
=
Object
.
assign
({},
params
,
{
taskFissionId
:
this
.
$route
.
query
.
id
})
api
.
getStat
(
params
).
then
((
res
)
=>
{
this
.
statData
=
res
.
data
?
res
.
data
.
data
:
[]
})
},
resetForm
()
{
},
exportCustomer
()
{
},
dateChange
(
event
)
{
let
obj
=
{}
if
(
event
===
'近7日'
)
{
obj
=
{
seven
:
true
}
}
else
{
obj
=
{
seven
:
false
,
thirty
:
true
}
}
this
.
getChartsData
(
obj
)
this
.
dateRange
=
[]
},
setChange
(
data
)
{
if
(
data
)
{
this
.
dateSelect
=
''
let
beginTime
=
''
let
endTime
=
''
if
(
data
[
0
])
{
beginTime
=
dateFormat
(
data
[
0
],
'yyyy-MM-dd'
)
}
if
(
data
[
1
])
{
endTime
=
dateFormat
(
data
[
1
],
'yyyy-MM-dd'
)
}
this
.
getChartsData
({
beginTime
,
endTime
,
seven
:
false
,
thirty
:
false
})
}
else
{
this
.
dateSelect
=
'近7日'
this
.
getChartsData
({
seven
:
true
})
}
},
initChart
(
option
)
{
if
(
!
this
.
chartLine
)
{
this
.
chartLine
=
echarts
.
init
(
document
.
getElementById
(
'chartLineBox'
))
}
this
.
chartLine
.
setOption
(
option
)
},
},
}
</
script
>
<
template
>
<div
class=
"task-detail-container"
>
<div
class=
"task-detail-model task-detail-left"
>
<el-descriptions
title=
"任务活动信息"
:column=
"1"
size=
"medium"
border
>
<el-descriptions-item
label=
"创建人"
>
{{
taskDetail
.
createBy
}}
</el-descriptions-item>
<el-descriptions-item
label=
"活动名称"
>
{{
taskDetail
.
taskName
}}
</el-descriptions-item>
<el-descriptions-item
label=
"裂变引导语"
>
{{
taskDetail
.
fissInfo
}}
</el-descriptions-item>
<el-descriptions-item
label=
"裂变客户数量"
>
{{
taskDetail
.
fissNum
}}
</el-descriptions-item>
<el-descriptions-item
label=
"活动时间"
>
{{
taskDetail
.
startTime
}}
至
{{
taskDetail
.
overTime
}}
</el-descriptions-item>
<el-descriptions-item
label=
"活动发起成员"
>
<el-tag
v-if=
"taskDetail.fissionType == 0"
>
全部成员
</el-tag>
<TagEllipsis
v-else
:list=
"taskDetail.taskFissionStaffs"
limit=
"5"
defaultProps=
"staffName"
></TagEllipsis>
</el-descriptions-item>
<el-descriptions-item
label=
"客户标签"
>
<TagEllipsis
:list=
"taskDetail.customerTag.split(',')"
limit=
"5"
></TagEllipsis>
</el-descriptions-item>
<el-descriptions-item
label=
"裂变海报"
><img
style=
"width: 120px"
:src=
"taskDetail.postersUrl"
/></el-descriptions-item>
<el-descriptions-item
label=
"员工"
>
{{
taskDetail
.
fissionTarget
}}
</el-descriptions-item>
<el-descriptions-item
label=
"兑奖链接"
>
{{
taskDetail
.
rewardUrl
}}
</el-descriptions-item>
<el-descriptions-item
label=
"兑奖图片"
><img
style=
"width: 120px"
:src=
"taskDetail.rewardImageUrl"
/></el-descriptions-item>
<el-descriptions-item
label=
"新客欢迎语"
>
{{
taskDetail
.
welcomeMsg
}}
</el-descriptions-item>
</el-descriptions>
</div>
<div
class=
"task-detail-model task-detail-right"
>
<h4
class=
"title"
>
关键数据
</h4>
<div
class=
"dateRang"
>
<el-radio-group
@
change=
"dateChange"
v-model=
"dateSelect"
style=
"margin-bottom: 10px"
>
<el-radio-button
label=
"近7日"
></el-radio-button>
<el-radio-button
label=
"近30日"
></el-radio-button>
</el-radio-group>
<el-date-picker
v-model=
"dateRange"
type=
"daterange"
@
change=
"setChange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
</div>
<div
id=
"chartLineBox"
style=
"width: 100%; height: 354px"
></div>
</div>
</div>
</
template
>
<
style
lang=
"scss"
scoped
>
.task-detail-container
{
display
:
flex
;
justify-content
:
space-between
;
background
:
#efeff4
;
height
:
calc
(
100vh
-
84px
);
box-sizing
:
border-box
;
padding
:
20px
10px
;
.task-detail-model
{
width
:
48%
;
height
:
100%
;
box-sizing
:
border-box
;
background
:
#fff
;
padding
:
10px
20px
;
overflow
:
auto
;
::v-deep
.el-descriptions-item__label.is-bordered-label
{
width
:
120px
;
}
.title
{
font-size
:
16px
;
font-weight
:
600
;
margin-bottom
:
20px
;
}
.dateRang
{
display
:
flex
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
}
#chartLineBox
{
margin-top
:
10px
;
}
}
}
</
style
>
linkwe-pc/src/views/application/taskGroup/detail.vue
View file @
206c3c3
This diff is collapsed.
Click to expand it.
linkwe-pc/src/views/application/taskGroup/list.vue
View file @
206c3c3
...
...
@@ -123,7 +123,7 @@
<
script
>
import
{
getList
,
deleteFassion
,
deleteMultFa
}
from
'./api'
export
default
{
name
:
'task-
group
-list'
,
name
:
'task-
customer
-list'
,
data
()
{
return
{
statusType
:
[
...
...
@@ -150,14 +150,6 @@
return
true
}
},
gotoShortLinkDetail
(
id
)
{
this
.
$router
.
push
({
path
:
'/drainageCode/publicCustomer/IntelligentShortLink/detail'
,
query
:
{
id
}
})
},
setType
(
data
)
{
let
str
=
''
this
.
infoType
.
forEach
((
dd
)
=>
{
...
...
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