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 100359df
authored
Mar 31, 2023
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
裂变详情
1 parent
1b7164e4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
341 additions
and
431 deletions
linkwe-pc/src/views/application/common/SubDetail.vue
linkwe-pc/src/views/application/shortLinkPopularize/index.vue
linkwe-pc/src/views/application/taskGroup/add-old.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-table.vue
linkwe-pc/src/views/application/taskGroup/detail.vue
linkwe-pc/src/views/application/taskGroup/list-old.vue
linkwe-pc/src/views/application/common/SubDetail.vue
0 → 100644
View file @
100359d
<
template
>
<div>
<el-dialog
:title=
"title"
:visible
.
sync=
"Pvisible"
append-to-body
:close-on-click-modal=
"false"
>
<template>
<el-row
type=
"flex"
justify=
"space-between"
style=
"max-height: 500px;"
>
<el-col
style=
"margin-top: 0px;"
>
<div>
<el-table
:data=
"list"
v-loading=
"loading"
>
<el-table-column
label=
"新客"
align=
"center"
prop=
"shortLinkName"
show-overflow-tooltip
/>
<el-table-column
label=
"添加员工"
align=
"center"
prop=
"shortLinkName"
show-overflow-tooltip
/>
<el-table-column
label=
"最近更新时间"
align=
"center"
prop=
"updateTime"
width=
"180"
></el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList"
/>
</div>
</el-col>
</el-row>
<div
slot=
"footer"
style=
"padding: 10px 0;"
>
<el-button
@
click=
"Pvisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"Pvisible = false"
>
确 定
</el-button>
</div>
</
template
>
</el-dialog>
</div>
</template>
<
script
>
import
{
getFissionSubTable
}
from
'../taskGroup/api'
export
default
{
components
:
{},
props
:
{
//显隐
visible
:
{
type
:
Boolean
,
default
:
false
},
title
:
{
type
:
String
,
default
:
'新客明细'
},
fissionInviterRecordId
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
loading
:
true
,
// 遮罩层
query
:
{
pageNum
:
1
,
pageSize
:
10
},
list
:
[],
// 列表
total
:
0
// 总条数
}
},
watch
:
{
fissionInviterRecordId
:
{
handler
(
val
)
{
if
(
val
)
{
this
.
getList
()
}
},
immediate
:
true
}
},
computed
:
{
Pvisible
:
{
get
()
{
return
this
.
visible
},
set
(
val
)
{
this
.
$emit
(
'update:visible'
,
val
)
}
}
},
created
()
{},
mounted
()
{},
methods
:
{
// 获取列表
getList
(
page
)
{
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
this
.
query
.
fissionInviterRecordId
=
this
.
fissionInviterRecordId
getFissionSubTable
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.empty
{
height
:
300px
;
text-align
:
center
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
}
.code-image
{
width
:
200px
;
height
:
200px
;
}
.code-image--small
{
width
:
50px
;
height
:
50px
;
}
.expire-icon
{
color
:
red
;
}
.left
{
margin-right
:
16px
;
.title
{
color
:
var
(
--color
);
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.title-name
{
color
:
rgba
(
0
,
0
,
0
,
0.9
);
font-size
:
16px
;
font-weight
:
600
;
//
color
:
#333333
;
display
:
flex
;
align-items
:
center
;
}
.title-btn
{
cursor
:
pointer
;
display
:
flex
;
align-items
:
center
;
font-size
:
14px
;
font-weight
:
normal
;
color
:
var
(
--color
);
&:hover
{
opacity
:
0.8
;
}
}
}
.item-list
{
max-height
:
700px
;
padding-top
:
15px
;
display
:
flex
;
flex-direction
:
column
;
height
:
100%
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
.item
{
cursor
:
pointer
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0.6
);
height
:
40px
;
line-height
:
40px
;
width
:
100%
;
padding-left
:
20px
;
.name
{
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
.dropdown
{
//
display
:
none
;
.dot
{
cursor
:
pointer
;
width
:
15px
;
height
:
15px
;
line-height
:
15px
;
font-size
:
14px
;
font-family
:
JMT-Font
,
JMT
;
font-weight
:
normal
;
color
:
rgba
(
0
,
0
,
0
,
0.6
);
margin-right
:
10px
;
margin-left
:
5px
;
font-weight
:
500
;
.content-icon
{
color
:
rgba
(
0
,
0
,
0
,
0.6
);
font-size
:
12px
;
transform
:
rotate
(
90deg
);
}
}
}
&
:hover
{
color
:
rgba
(
0
,
0
,
0
,
0.9
);
background
:
#f5f8fe
;
opacity
:
0.8
;
border-radius
:
2px
;
.dropdown
{
//
display
:
block
;
}
}
}
.active
{
//
border-left
:
2px
solid
var
(
--color
);
color
:
rgba
(
0
,
0
,
0
,
0.9
);
background
:
#f5f8fe
;
border-radius
:
2px
;
}
}
}
</
style
>
linkwe-pc/src/views/application/shortLinkPopularize/index.vue
View file @
100359d
...
@@ -9,13 +9,13 @@
...
@@ -9,13 +9,13 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
""
prop=
"type"
>
<el-form-item
label=
""
prop=
"type"
>
<el-select
:popper-append-to-body=
"false"
v-model=
"query.type"
placeholder=
"请选择推广方式"
>
<el-select
:popper-append-to-body=
"false"
v-model=
"query.type"
placeholder=
"请选择推广方式"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"全部
推广方式
"
value=
""
></el-option>
<el-option
v-for=
"(item, index) in infoType"
:key=
"index"
:label=
"item.name"
:value=
"item.key"
></el-option>
<el-option
v-for=
"(item, index) in infoType"
:key=
"index"
:label=
"item.name"
:value=
"item.key"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
prop=
"taskStatus"
>
<el-form-item
label=
""
prop=
"taskStatus"
>
<el-select
:popper-append-to-body=
"false"
v-model=
"query.taskStatus"
placeholder=
"请选择任务状态"
>
<el-select
:popper-append-to-body=
"false"
v-model=
"query.taskStatus"
placeholder=
"请选择任务状态"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"全部
任务状态
"
value=
""
></el-option>
<el-option
v-for=
"(item, index) in statusType"
:key=
"index"
:label=
"item.name"
:value=
"item.key"
></el-option>
<el-option
v-for=
"(item, index) in statusType"
:key=
"index"
:label=
"item.name"
:value=
"item.key"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
...
linkwe-pc/src/views/application/taskGroup/add-old.vue
deleted
100644 → 0
View file @
1b7164e
This diff is collapsed.
Click to expand it.
linkwe-pc/src/views/application/taskGroup/api.js
View file @
100359d
...
@@ -83,3 +83,45 @@ export function getTableExport(data) {
...
@@ -83,3 +83,45 @@ export function getTableExport(data) {
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
// 裂变明细 - 客户
export
function
getFissionCustomerTable
(
data
)
{
return
request
({
url
:
wecom
+
'/findWeTaskFissionDetail'
,
params
:
data
})
}
// 裂变明细 - 客群
export
function
getFissionGroupTable
(
data
)
{
return
request
({
url
:
wecom
+
'/findWeGroupFissionDetail'
,
params
:
data
})
}
// 裂变明细 - sub table
export
function
getFissionSubTable
(
data
)
{
return
request
({
url
:
wecom
+
'/findWeFissionDetailSub'
,
params
:
data
})
}
// 裂变明细 导出 - 任务裂变
export
function
exportCustomerTable
(
data
)
{
return
request
({
url
:
wecom
+
'/exportWeTaskFissionDetail'
,
params
:
data
,
responseType
:
'blob'
})
}
// 裂变明细 导出 - 客群裂变
export
function
exportGroupTable
(
data
)
{
return
request
({
url
:
wecom
+
'/exportWeGroupFissionDetail'
,
params
:
data
,
responseType
:
'blob'
})
}
linkwe-pc/src/views/application/taskGroup/detail-old.vue
deleted
100644 → 0
View file @
1b7164e
<
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-table.vue
View file @
100359d
...
@@ -4,22 +4,30 @@
...
@@ -4,22 +4,30 @@
<el-form-item
label=
""
prop=
"customerName"
>
<el-form-item
label=
""
prop=
"customerName"
>
<el-input
clearable
v-model=
"query.customerName"
placeholder=
"请输入老客名称"
></el-input>
<el-input
clearable
v-model=
"query.customerName"
placeholder=
"请输入老客名称"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
prop=
"qrUserName"
>
<el-form-item
label=
""
>
<el-input
:value=
"qrUserName"
readonly
@
focus=
"dialogVisible = true"
placeholder=
"请选择发送员工"
/>
<el-input
:value=
"qrUserName"
readonly
@
focus=
"dialogVisible = true"
placeholder=
"请选择发送员工"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
>
<el-form-item
label=
""
>
<el-button
type=
"primary"
@
click=
"
handleS
earch"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"
s
earch"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<div
class=
"mid-action"
>
<div></div>
<div>
<el-button
type=
"primary"
v-loading=
"exportLoading"
@
click=
"exportFn"
>
导出Excel
</el-button>
</div>
</div>
<el-table
:data=
"list"
v-loading=
"loading"
>
<el-table
:data=
"list"
v-loading=
"loading"
>
<el-table-column
prop=
"oldCustomerName"
label=
"老客"
align=
"center"
></el-table-column>
<el-table-column
prop=
"oldCustomerName"
label=
"老客"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sendWeUserName"
label=
"发送员工"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sendWeUserName"
label=
"发送员工"
align=
"center"
></el-table-column>
<el-table-column
prop=
"inviterState"
label=
"裂变状态"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"inviterState"
label=
"裂变状态"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"
createBy
"
label=
"裂变新客数"
align=
"center"
>
<el-table-column
prop=
"
inviterNumber
"
label=
"裂变新客数"
align=
"center"
>
<template
slot-scope=
"
{ row }">
<template
slot-scope=
"
{ row }">
<a
class=
"self_a"
>
{{
row
.
inviterNumber
}}
</a>
<a
class=
"self_a"
@
click=
"getDetailTable(row.fissionInviterRecordId)"
>
{{
row
.
inviterNumber
||
3333
}}
</a>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -37,35 +45,88 @@
...
@@ -37,35 +45,88 @@
:defaultValues=
"userArray"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
@
success=
"getSelectUser"
></SelectWeUser>
></SelectWeUser>
<SubDetailVue
:visible
.
sync=
"detailVisible"
:fissionInviterRecordId=
"detailId"
></SubDetailVue>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getFissionCustomerTable
,
exportCustomerTable
}
from
'./api'
import
SubDetailVue
from
'../common/SubDetail.vue'
import
{
dateFormat
}
from
'@/utils/index'
export
default
{
export
default
{
name
:
'task-customer-detail-table'
,
name
:
'task-customer-detail-table'
,
components
:
{
SubDetailVue
},
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
list
:
[],
list
:
[],
total
:
0
,
qrUserName
:
''
,
query
:
{
query
:
{
customerName
:
''
,
customerName
:
''
,
pageNum
:
''
,
pageNum
:
1
,
pageSize
:
''
,
pageSize
:
10
,
weUserId
:
''
weUserId
:
''
},
},
dialogVisible
:
false
,
dialogVisible
:
false
,
userArray
:
[],
// 选择人员
userArray
:
[],
// 选择人员
userArrayStr
:
''
userArrayStr
:
''
,
detailVisible
:
false
,
detailId
:
''
,
exportLoading
:
false
}
}
},
},
methods
:
{
methods
:
{
getList
()
{},
exportFn
()
{
this
.
$confirm
(
'确认导出吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
exportLoading
=
true
return
exportCustomerTable
(
this
.
query
)
})
.
then
((
res
)
=>
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel'
})
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
const
link
=
document
.
createElement
(
'a'
)
// 创建a标签
link
.
href
=
url
link
.
download
=
'裂变明细'
+
dateFormat
(
new
Date
())
+
'.xlsx'
//指定下载文件名
link
.
click
()
URL
.
revokeObjectURL
(
url
)
// 释放内存
}
})
.
catch
((
error
)
=>
{
console
.
error
(
error
)
})
.
finally
(()
=>
{
this
.
exportLoading
=
false
})
},
getDetailTable
(
id
)
{
this
.
detailId
=
id
this
.
detailVisible
=
true
},
getList
()
{
this
.
loading
=
true
this
.
query
.
id
=
this
.
$route
.
query
.
id
getFissionCustomerTable
(
this
.
query
).
then
((
res
)
=>
{
this
.
loading
=
false
this
.
list
=
res
.
rows
this
.
total
=
Number
(
res
.
total
)
})
},
search
()
{
search
()
{
this
.
query
.
page
Size
=
1
this
.
query
.
page
Num
=
1
this
.
getList
()
this
.
getList
()
},
},
resetQuery
()
{
resetQuery
()
{
this
.
query
.
weUserId
=
''
this
.
query
.
weUserId
=
''
this
.
query
.
customerName
=
''
this
.
userArray
=
[]
this
.
userArray
=
[]
this
.
qrUserName
=
''
this
.
qrUserName
=
''
this
.
search
()
this
.
search
()
...
@@ -83,6 +144,9 @@
...
@@ -83,6 +144,9 @@
})
})
.
join
(
','
)
.
join
(
','
)
}
}
},
created
()
{
this
.
search
()
}
}
}
}
</
script
>
</
script
>
...
...
linkwe-pc/src/views/application/taskGroup/detail.vue
View file @
100359d
...
@@ -40,7 +40,9 @@
...
@@ -40,7 +40,9 @@
<el-tab-pane
label=
"任务统计"
name=
"second"
>
<el-tab-pane
label=
"任务统计"
name=
"second"
>
<Statistics
:fissionType=
"form.fissionType"
></Statistics>
<Statistics
:fissionType=
"form.fissionType"
></Statistics>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"裂变明细"
name=
"third"
>
</el-tab-pane>
<el-tab-pane
label=
"裂变明细"
name=
"third"
>
<DetailTable></DetailTable>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
</
template
>
</
template
>
...
@@ -51,13 +53,15 @@
...
@@ -51,13 +53,15 @@
import
FassionSettingVue
from
'../common/FassionSetting.vue'
import
FassionSettingVue
from
'../common/FassionSetting.vue'
import
FassionRules
from
'../common/FassionRules.vue'
import
FassionRules
from
'../common/FassionRules.vue'
import
Statistics
from
'../common/Statistics.vue'
import
Statistics
from
'../common/Statistics.vue'
import
DetailTable
from
'./detail-table.vue'
export
default
{
export
default
{
name
:
'task-customer-detail'
,
name
:
'task-customer-detail'
,
components
:
{
components
:
{
FassionBase
,
FassionBase
,
FassionSettingVue
,
FassionSettingVue
,
FassionRules
,
FassionRules
,
Statistics
Statistics
,
DetailTable
},
},
data
()
{
data
()
{
return
{
return
{
...
...
linkwe-pc/src/views/application/taskGroup/list-old.vue
deleted
100644 → 0
View file @
1b7164e
<
script
>
import
*
as
api
from
'@/api/task'
export
default
{
name
:
'Group'
,
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
taskName
:
''
,
startTime
:
''
,
overTime
:
''
,
fissionType
:
1
},
dateRange
:
[],
tableData
:
[],
total
:
0
,
loading
:
false
}
},
created
()
{
this
.
getList
()
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>是通过管理员统一下发群发消息的任务,将消息推送给员工,员工点击任务按钮进行发送,将任务裂变海报以 H5 网页链接的形式发送给客户。此方式也会消耗每天四次客户群发触达的次数限制。</div>
`
)
},
methods
:
{
setChange
(
e
)
{
if
(
e
)
{
this
.
query
.
startTime
=
e
[
0
]
this
.
query
.
overTime
=
e
[
1
]
}
else
{
this
.
query
.
startTime
=
''
this
.
query
.
overTime
=
''
}
},
resetFn
()
{
this
.
query
=
{
pageNum
:
1
,
pageSize
:
10
,
taskName
:
''
,
startTime
:
''
,
overTime
:
''
,
fissionType
:
1
}
this
.
dateRange
=
[]
this
.
getList
()
},
getList
(
data
)
{
this
.
loading
=
true
let
params
=
Object
.
assign
({},
this
.
query
,
data
)
api
.
getList
(
params
).
then
(({
rows
,
total
})
=>
{
this
.
tableData
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
},
resetForm
()
{},
toDetail
(
row
)
{
this
.
$router
.
push
({
path
:
`detail?id=
${
row
.
id
}
`
})
},
newAdd
()
{
this
.
$router
.
push
({
path
:
'add'
})
},
toEdit
(
row
)
{
this
.
$router
.
push
({
path
:
`add?id=
${
row
.
id
}
`
})
}
}
}
</
script
>
<
template
>
<div>
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
class=
"top-search"
>
<el-form-item
label=
"任务名"
prop=
"taskName"
>
<el-input
clearable
v-model=
"query.taskName"
placeholder=
"请输入"
></el-input>
</el-form-item>
<el-form-item
label=
"添加日期"
>
<el-date-picker
clearable
v-model=
"dateRange"
@
change=
"setChange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
></el-date-picker>
</el-form-item>
<el-form-item
label=
""
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
:loading=
"loading"
@
click=
"getList(
{ pageNum: 1 })"
>
查询
</el-button>
<el-button
@
click=
"resetFn"
>
重置
</el-button>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"newAdd()"
style=
"background: #fa7216; color: #ffffff; border-color: #fa7216;"
>
新增任务
</el-button>
</el-form-item>
</el-form>
<div
class=
"g-card"
>
<el-table
:data=
"tableData"
>
<el-table-column
prop=
"taskName"
label=
"任务活动名称"
></el-table-column>
<el-table-column
prop=
"fissNum"
label=
"裂变客户数量"
></el-table-column>
<el-table-column
prop=
"fissStatus"
label=
"活动状态"
>
<template
slot-scope=
"scope"
>
<!-- -1-发送失败 0-待发送 1-进行中 2-已结束 -->
<p>
{{
scope
.
row
.
fissStatus
===
1
?
'进行中'
:
scope
.
row
.
fissStatus
===
-
1
?
'发送失败'
:
scope
.
row
.
fissStatus
===
0
?
'待发送'
:
'已结束'
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"startTime"
label=
"活动时间"
>
<
template
slot-scope=
"scope"
>
<p>
{{
scope
.
row
.
startTime
}}
-
{{
scope
.
row
.
overTime
}}
</p>
</
template
>
</el-table-column>
<el-table-column
prop=
"operation"
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"toDetail(scope.row)"
v-hasPermi=
"['enterpriseWechat:view']"
type=
"text"
>
详情
</el-button>
<!--
<el-button
v-if=
"scope.row.fissStatus != 2"
@
click=
"toEdit(scope.row)"
v-hasPermi=
"['enterpriseWechat:edit']"
size=
"medium"
type=
"text"
icon=
"el-icon-edit-outline"
style=
"color: #e74e59"
></el-button>
-->
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
</div>
</div>
</template>
<
style
lang=
"scss"
scoped
></
style
>
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