Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 47e1faf7
authored
Jun 01, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.4.0' into 'v2.4.0'
跳转营销SOP传参 See merge request
!95
2 parents
e67fdda9
483e8be6
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
477 additions
and
163 deletions
src/App.vue
src/api/modules/clientDataOverview.js
src/router/routes.js
src/views/clientDataOverview/GroupOperating/components/marketingPlan.vue
src/views/clientDataOverview/components/marketingPlan.vue
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/index.vue
src/views/clientDataOverview/GroupOperating/marketingPeople.vue → src/views/clientDataOverview/marketingPeople.vue
src/views/clientManage/index.vue
src/views/crowdManage/crowdDetail.vue
src/views/crowdManage/index.vue
src/views/tagsManage/index.vue
src/App.vue
View file @
47e1faf
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
</div>
-->
</div>
-->
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage"
>
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage
,marketingPeople
"
>
<router-view></router-view>
<router-view></router-view>
</keep-alive>
</keep-alive>
</div>
</div>
...
...
src/api/modules/clientDataOverview.js
View file @
47e1faf
...
@@ -6,62 +6,87 @@
...
@@ -6,62 +6,87 @@
* @param {*} params
* @param {*} params
* @returns
* @returns
*/
*/
import
{
http3
}
from
'@/main'
import
{
http3
}
from
'@/main'
// const url = 'http://192.168.3.193:8395/rop-scrm-entmicro/router'
// const url = 'http://192.168.3.193:8395/rop-scrm-entmicro/router'
//获取数据概览上方的数据 /rop-scrm-datahub
//获取数据概览上方的数据 /rop-scrm-datahub
export
function
getDataOverview
(
params
)
{
export
function
getDataOverview
(
params
)
{
params
.
method
=
'entmicro.api.Customer.customer.view.data'
params
.
method
=
'entmicro.api.Customer.customer.view.data'
return
http3
({
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
//获取数据概览下方柱状图的数据
//获取数据概览下方柱状图的数据
export
function
getDataOverviewBarMap
(
params
)
{
export
function
getDataOverviewBarMap
(
params
)
{
params
.
method
=
'entmicro.api.customer.view.chart'
params
.
method
=
'entmicro.api.customer.view.chart'
return
http3
({
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
// 获取数据概览客户列表数据接口
// 获取数据概览客户列表数据接口
export
function
getCustomerList
(
params
)
{
export
function
getCustomerList
(
params
)
{
params
.
method
=
'entmicro.api.customer.cluster.page'
params
.
method
=
'entmicro.api.customer.cluster.page'
return
http3
({
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
// 获取人群管理客户列表数据接口
// 获取人群管理客户列表数据接口
export
function
getcrowdManageList
(
params
)
{
export
function
getcrowdManageList
(
params
)
{
params
.
method
=
'entmicro.api.customer.crowd.page'
params
.
method
=
'entmicro.api.customer.crowd.page'
return
http3
({
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
// url:'http://192.168.3.193:8395/rop-scrm-entmicro/router',
// url:'http://192.168.3.193:8395/rop-scrm-entmicro/router',
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
//客户分群列表导出
//客户分群列表导出
export
function
customerClusterListExport
(
params
)
{
export
function
customerClusterListExport
(
params
)
{
params
.
method
=
'entmicro.api.customer.customerClusterListExport'
params
.
method
=
'entmicro.api.customer.customerClusterListExport'
return
http3
({
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
//获取客户分群展示
export
function
customerClusterListShow
(
params
)
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdGroupList'
return
http3
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 通过分群Id查询人群列表详情请求
export
function
marketingPeopleListShow
(
params
)
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdListByCrowdGroupId'
return
http3
({
// http://192.168.3.226:9636
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
\ No newline at end of file
\ No newline at end of file
src/router/routes.js
View file @
47e1faf
...
@@ -24,8 +24,8 @@ const staticRoutes = Object.freeze([{
...
@@ -24,8 +24,8 @@ const staticRoutes = Object.freeze([{
},
},
{
{
name
:
'marketingPeople'
,
name
:
'marketingPeople'
,
path
:
'/clientDataOverview/
GroupOperating/
marketingPeople'
,
path
:
'/clientDataOverview/marketingPeople'
,
component
:
resolve
=>
require
([
`@/views/clientDataOverview/
GroupOperating/
marketingPeople`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/clientDataOverview/marketingPeople`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
{
{
...
@@ -126,7 +126,7 @@ const staticRoutes = Object.freeze([{
...
@@ -126,7 +126,7 @@ const staticRoutes = Object.freeze([{
},
},
{
{
name
:
'crowdDetail'
,
name
:
'crowdDetail'
,
path
:
'/crowdManage/crowdDetail
/:id/:type
'
,
path
:
'/crowdManage/crowdDetail
:id
'
,
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdDetail.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdDetail.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
...
...
src/views/clientDataOverview/GroupOperating/components/marketingPlan.vue
View file @
47e1faf
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<GLCombiForm
:formObj=
"searchForm"
:formData=
"searchFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"searchFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"marketingPlan"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"marketingPlan"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
>
<template
slot=
"options"
slot-scope=
"scope"
>
<template
slot=
"options"
slot-scope=
"scope"
>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"go
BasicInfo(scope.scope
)"
>
SOP分析
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"go
SOPAnalysis(scope.scope.id
)"
>
SOP分析
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"go
BasicInfo(scope.scope
)"
>
编辑
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"go
SOPEdit(scope.scope.id
)"
>
编辑
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm('delete')"
>
删除
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm('delete')"
>
删除
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm(scope.scope)"
>
结束
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm(scope.scope)"
>
结束
</el-button>
</
template
>
</
template
>
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<
script
>
<
script
>
import
{
getTableList
}
from
'@/api/modules/clientManage'
import
{
getTableList
}
from
'@/api/modules/clientManage'
import
util
from
'@/utils/util'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -87,9 +88,17 @@ export default {
...
@@ -87,9 +88,17 @@ export default {
},
200
)
},
200
)
},
},
methods
:
{
methods
:
{
// 跳转SOP分析
goSOPAnalysis
(){
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
'/npmph/clientDataOverview/marketingPeople?selectTab=2'
)}
&id=183`
)
},
// 跳转SOP编辑页面
goSOPEdit
(
id
)
{
this
.
$history
.
push
(
`/marketing/sop/editSop?$title=
${
encodeURI
(
'编辑SOP'
)}
&fromPage=
${
encodeURI
(
'/npmph/clientDataOverview/marketingPeople?selectTab=2'
)}
&addOrEdit=edit&id=183`
)
},
// 确认删除或结束
// 确认删除或结束
confirm
(
type
)
{
confirm
(
type
)
{
this
.
$confirm
(
`是否确认
${
type
==
'delete'
?
'删除'
:
'结束'
}
?`
,
'提示'
,
{
this
.
$confirm
(
`是否确认
${
type
==
'delete'
?
'删除'
:
'结束'
}
?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
...
...
src/views/clientDataOverview/components/marketingPlan.vue
0 → 100644
View file @
47e1faf
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"pageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"searchFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"marketingPlan"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
>
<template
slot=
"options"
slot-scope=
"scope"
>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPAnalysis(scope.scope.id)"
>
SOP分析
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"goSOPEdit(scope.scope.id)"
>
编辑
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm('delete')"
>
删除
</el-button>
<el-button
class=
"blue-text"
type=
"text"
@
click=
"confirm(scope.scope)"
>
结束
</el-button>
</
template
>
</GLTable>
</div>
</div>
</template>
<
script
>
import
{
getTableList
}
from
'@/api/modules/clientManage'
import
util
from
'@/utils/util'
export
default
{
data
()
{
return
{
searchForm
:
{},
searchFormList
:
[
{
type
:
'input'
,
inputType
:
'text'
,
// name: 'keyword',
label
:
'人群名称'
},
{
type
:
'select'
,
// name: 'type',
label
:
'营销状态'
,
optionLabel
:
'label'
,
optionId
:
'value'
,
optionList
:
[
{
label
:
'全部'
,
value
:
''
}
],
placeholder
:
'请选择'
}
],
getListApi
:
getTableList
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
tableParams
:
{
listName
:
'data'
,
tableColumns
:
[
{
label
:
'人群名称'
,
prop
:
'orderNo'
},
{
label
:
'SOP名称'
,
prop
:
'name'
},
{
label
:
'营销时间'
,
prop
:
'phone'
},
{
label
:
'完成度'
,
prop
:
'dsdasd'
},
{
label
:
'营销状态'
,
prop
:
'dsdasds'
},
{
label
:
'操作'
,
prop
:
'options'
,
addHtml
:
'options'
}
]
}
}
},
mounted
()
{
//没数据的时候要算高度
setTimeout
(()
=>
{
if
(
!
this
.
$refs
.
marketingPlan
.
data
.
length
)
{
this
.
loading
=
true
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
this
.
loading
=
false
}
},
200
)
},
methods
:
{
// 跳转SOP分析
goSOPAnalysis
(){
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
'/npmph/clientDataOverview/marketingPeople?selectTab=2'
)}
&id=183`
)
},
// 跳转SOP编辑页面
goSOPEdit
(
id
)
{
this
.
$history
.
push
(
`/marketing/sop/editSop?$title=
${
encodeURI
(
'编辑SOP'
)}
&fromPage=
${
encodeURI
(
'/npmph/clientDataOverview/marketingPeople?selectTab=2'
)}
&addOrEdit=edit&id=183`
)
},
// 确认删除或结束
confirm
(
type
)
{
this
.
$confirm
(
`是否确认
${
type
==
'delete'
?
'删除'
:
'结束'
}
?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功!'
})
})
.
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消操作'
})
})
},
setTableFinishFun
()
{
this
.
$refs
.
marketingPlan
.
data
.
length
?
(
this
.
$refs
.
marketingPlan
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
},
setTableHeightEvent
()
{
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
},
// 搜索表格
searchTable
()
{
console
.
log
(
this
.
searchForm
)
this
.
$refs
.
marketingPlan
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
status
:
''
,
type
:
''
}
this
.
$refs
.
marketingPlan
.
refreshTable
()
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.pageContent
{
padding
:
20px
20px
30px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
background-color
:
#fff
;
}
</
style
>
src/views/clientDataOverview/group.vue
View file @
47e1faf
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div>
<div>
<el-button
size=
"small"
@
click=
"handleExport"
class=
"export"
>
导出
</el-button>
<el-button
size=
"small"
@
click=
"handleExport"
class=
"export"
>
导出
</el-button>
<el-button
plain
size=
"small"
>
<el-button
plain
size=
"small"
@
click=
"createMarketSOP()"
>
营销SOP
营销SOP
</el-button>
</el-button>
</div>
</div>
...
@@ -91,7 +91,8 @@ export default {
...
@@ -91,7 +91,8 @@ export default {
{
{
type
:
'input'
,
type
:
'input'
,
name
:
'customerPhone'
,
name
:
'customerPhone'
,
label
:
'联系电话'
label
:
'联系电话'
,
width
:
170
},
},
{
{
type
:
'input'
,
type
:
'input'
,
...
@@ -172,7 +173,7 @@ export default {
...
@@ -172,7 +173,7 @@ export default {
prop
:
'followStaff'
,
prop
:
'followStaff'
,
// addHtml: 'followStaff',
// addHtml: 'followStaff',
width
:
170
,
width
:
170
,
line
:
1
line
:
1
},
},
{
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
label
:
'是否加企微'
,
//1. 加入,0.未加入
...
@@ -205,7 +206,8 @@ export default {
...
@@ -205,7 +206,8 @@ export default {
let
{
id
}
=
this
let
{
id
}
=
this
this
.
init
(
id
)
this
.
init
(
id
)
// 针对广汇替换字段
// 针对广汇替换字段
if
(
this
.
id
==
1
&&
location
.
host
.
includes
(
'cgacar'
))
{
// cgacar
if
((
this
.
id
==
1
||
this
.
id
==
2
||
this
.
id
==
3
)
&&
location
.
host
.
includes
(
'cgacar'
))
{
this
.
tableParams
.
tableColumns
.
splice
(
this
.
tableParams
.
tableColumns
.
splice
(
3
,
3
,
3
,
3
,
...
@@ -234,6 +236,29 @@ export default {
...
@@ -234,6 +236,29 @@ export default {
this
.
getStaffList
()
this
.
getStaffList
()
},
},
methods
:
{
methods
:
{
// 跳转到营销SOP
createMarketSOP
()
{
let
marketQuery
if
(
this
.
crowdType
==
1
||
this
.
crowdType
==
2
)
{
marketQuery
=
JSON
.
parse
(
this
.
$route
.
query
.
crowdInfo
)
}
var
params
=
{
addOrEdit
:
'add'
,
fromPage
:
'/npmph/clientDataOverview/group'
,
$title
:
encodeURI
(
'新建SOP'
),
info
:
{
// 人群
customerOptType
:
2
,
crowdList
:
[]
}
}
params
.
info
.
crowdList
.
push
(
marketQuery
)
console
.
log
(
params
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
},
//获取跟进员工
//获取跟进员工
getStaffList
()
{
getStaffList
()
{
getStaffList
({}).
then
(
res
=>
{
getStaffList
({}).
then
(
res
=>
{
...
@@ -297,7 +322,7 @@ export default {
...
@@ -297,7 +322,7 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
pageNum
:
1
}
}
if
(
this
.
crowdType
)
params
.
customCrowd
=
true
if
(
this
.
crowdType
==
1
||
this
.
crowdType
==
2
)
params
.
customCrowd
=
true
customerClusterListExport
(
params
).
then
(
res
=>
{
customerClusterListExport
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
this
.
$Utils
.
exportFn
(
res
)
})
})
...
...
src/views/clientDataOverview/index.vue
View file @
47e1faf
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</div>
</div>
<div
class=
"topmsg"
>
<div
class=
"topmsg"
>
<span
class=
"normalTitle"
>
客户分层
</span>
<span
class=
"normalTitle"
>
客户分层
</span>
<div
style=
"display:flex"
>
<div
style=
"display:
flex"
>
<div
class=
"leftPieEcharts"
>
<div
class=
"leftPieEcharts"
>
<div
class=
"leftIntro"
>
<div
class=
"leftIntro"
>
<span
class=
"title"
>
客户总数
</span>
<span
class=
"title"
>
客户总数
</span>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</div>
</div>
<div
class=
"itembox"
>
<div
class=
"itembox"
>
<div
style=
"display:
flex;overflow:
hidden"
>
<div
style=
"display:
flex; overflow:
hidden"
>
<div
class=
"buy"
>
<div
class=
"buy"
>
<div
class=
"buy-total item"
@
click=
"goto(4)"
fn=
"人群客户列表"
mode=
"div"
>
<div
class=
"buy-total item"
@
click=
"goto(4)"
fn=
"人群客户列表"
mode=
"div"
>
<div
class=
"buyTitle"
>
<div
class=
"buyTitle"
>
...
@@ -292,33 +292,33 @@
...
@@ -292,33 +292,33 @@
</div>
</div>
</div>
</div>
<div
class=
"itembox"
>
<div
class=
"itembox"
>
<
template
v-for=
"(item, index) in
titles
"
>
<
template
v-for=
"(item, index) in
customerSegmentation
"
>
<!-- fn="人群客户列表" mode="div" -->
<!-- fn="人群客户列表" mode="div" -->
<div
class=
"item"
@
click=
"goToGroupOperating()"
:key=
"index"
>
<div
class=
"item"
@
click=
"goToGroupOperating(
item.crowdGroupId
)"
:key=
"index"
>
<div
class=
"itemTitle"
>
<div
class=
"itemTitle"
>
<span
class=
"itemName"
>
{{
item
.
n
ame
}}
</span>
<span
class=
"itemName"
>
{{
item
.
crowdGroupN
ame
}}
</span>
<el-popover
placement=
"top"
trigger=
"hover"
:content=
"item.
subName
"
>
<el-popover
placement=
"top"
trigger=
"hover"
:content=
"item.
crowdGroupDesc
"
>
<span
class=
"dataOverPopover"
>
{{
item
.
subName
}}
</span>
<span
class=
"dataOverPopover"
>
{{
item
.
crowdGroupDesc
}}
</span>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
class=
"itemBottom"
>
<div
class=
"itemBottom"
>
<p
class=
"totalNum"
>
<p
class=
"totalNum"
>
{{
item
.
num
|
overThousandFilter
}}
{{
item
.
total
|
overThousandFilter
}}
<span
class=
"enum"
>
人
</span>
<span
class=
"enum"
>
人
</span>
</p>
</p>
<div
class=
"middlemsg-qiwei-total"
>
<div
class=
"middlemsg-qiwei-total"
>
<div
class=
"qiwei-describe"
>
<div
class=
"qiwei-describe"
>
<div
class=
"inWechat"
>
已加企微
</div>
<div
class=
"inWechat"
>
已加企微
</div>
<div
class=
"num"
>
<div
class=
"num"
>
{{
(
item
.
add
(
topDataObj
)
||
0
)
|
overThousandFilter
}}
{{
(
item
.
wechatTotal
||
0
)
|
overThousandFilter
}}
<span
class=
"person-text"
>
人
</span>
<span
class=
"person-text"
>
人
</span>
</div>
</div>
</div>
</div>
<div
class=
"qiwei-describe"
>
<div
class=
"qiwei-describe"
>
<div
class=
"inWechat"
>
未加企微
</div>
<div
class=
"inWechat"
>
未加企微
</div>
<div
class=
"num"
>
<div
class=
"num"
>
{{
(
item
.
no
Add
(
topDataObj
)
||
0
)
|
overThousandFilter
}}
{{
(
item
.
no
tWechatTotal
||
0
)
|
overThousandFilter
}}
<span
class=
"person-text"
>
人
</span>
<span
class=
"person-text"
>
人
</span>
</div>
</div>
</div>
</div>
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
<
script
>
<
script
>
import
$
from
'jquery'
import
$
from
'jquery'
import
{
rwdImageMaps
}
from
'./jquery.rwdImageMaps.js'
import
{
rwdImageMaps
}
from
'./jquery.rwdImageMaps.js'
import
{
getDataOverview
,
getDataOverviewBarMap
}
from
'@/api/modules/clientDataOverview'
import
{
getDataOverview
,
getDataOverviewBarMap
,
customerClusterListShow
}
from
'@/api/modules/clientDataOverview'
import
{
getLoginCount
}
from
'@/api/modules/loginCount'
import
{
getLoginCount
}
from
'@/api/modules/loginCount'
import
pieEchart
from
'@/components/echarts/pieEchart'
import
pieEchart
from
'@/components/echarts/pieEchart'
// import pieEchartCopy from '@/components/echarts/pieEchartCopy'
// import pieEchartCopy from '@/components/echarts/pieEchartCopy'
...
@@ -410,56 +410,57 @@ export default {
...
@@ -410,56 +410,57 @@ export default {
burseholderCustomerCount
:
0
,
burseholderCustomerCount
:
0
,
silenceCustomerCount
:
0
silenceCustomerCount
:
0
},
},
titles
:
[
customerSegmentation
:
[],
//客户分群展示列表
{
// titles: [
name
:
'新车客户数'
,
// {
subName
:
'购车时间3个月的客户'
,
// name: '新车客户数',
num
:
0
,
// subName: '购车时间3个月的客户',
add
:
obj
=>
{
// num: 0,
return
obj
.
newCarCustomerAddCount
// add: obj => {
},
// return obj.newCarCustomerAddCount
noAdd
:
obj
=>
{
// },
return
obj
.
newCarCustomerNAddCount
// noAdd: obj => {
},
// return obj.newCarCustomerNAddCount
id
:
7
// },
},
// id: 7
{
// },
name
:
'车险待续保客户数'
,
// {
subName
:
'近一个月内车险即将到期的客户'
,
// name: '车险待续保客户数',
num
:
0
,
// subName: '近一个月内车险即将到期的客户',
add
:
obj
=>
{
// num: 0,
return
obj
.
needRenewalCustomerAddCount
// add: obj => {
},
// return obj.needRenewalCustomerAddCount
noAdd
:
obj
=>
{
// },
return
obj
.
needRenewalCustomerNAddCount
// noAdd: obj => {
},
// return obj.needRenewalCustomerNAddCount
id
:
8
// },
},
// id: 8
{
// },
name
:
'新车待首保客户数'
,
// {
subName
:
'购车时间5~7个月内,且无保养记录的客户'
,
// name: '新车待首保客户数',
num
:
0
,
// subName: '购车时间5~7个月内,且无保养记录的客户',
add
:
obj
=>
{
// num: 0,
return
obj
.
burseholderCustomerAddCount
// add: obj => {
},
// return obj.burseholderCustomerAddCount
noAdd
:
obj
=>
{
// },
return
obj
.
burseholderCustomerNAddCount
// noAdd: obj => {
},
// return obj.burseholderCustomerNAddCount
id
:
9
// },
},
// id: 9
{
// },
name
:
'沉默客户数'
,
// {
subName
:
'超过180天未到店的客户'
,
// name: '沉默客户数',
num
:
0
,
// subName: '超过180天未到店的客户',
add
:
obj
=>
{
// num: 0,
return
obj
.
silenceCustomerAddCount
// add: obj => {
},
// return obj.silenceCustomerAddCount
noAdd
:
obj
=>
{
// },
return
obj
.
silenceCustomerNAddCount
// noAdd: obj => {
},
// return obj.silenceCustomerNAddCount
id
:
10
// },
}
// id: 10
],
// }
// ],
isNoBuyUp
:
0
,
//默认环比为增
isNoBuyUp
:
0
,
//默认环比为增
isBuyUp
:
0
,
isBuyUp
:
0
,
bottomDataObj
:
{},
bottomDataObj
:
{},
...
@@ -516,6 +517,7 @@ export default {
...
@@ -516,6 +517,7 @@ export default {
//运行在qiankun容器中
//运行在qiankun容器中
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
userType
=
this
.
$globalState
.
session
.
userType
this
.
userType
=
this
.
$globalState
.
session
.
userType
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
}
}
// 掉两个数据接口
// 掉两个数据接口
...
@@ -524,10 +526,20 @@ export default {
...
@@ -524,10 +526,20 @@ export default {
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
this
.
getDataOverviewBarMapFun
()
this
.
getDataOverviewBarMapFun
()
this
.
customerListShow
()
},
},
methods
:
{
methods
:
{
goToGroupOperating
()
{
customerListShow
()
{
this
.
$router
.
push
(
'/clientDataOverview/GroupOperating/marketingPeople'
)
let
param
=
{
'req.merchantId'
:
this
.
merchantId
}
customerClusterListShow
(
param
).
then
(
res
=>
{
this
.
customerSegmentation
=
res
.
crowdGroupUnitList
console
.
log
(
this
.
customerSegmentation
)
})
},
goToGroupOperating
(
id
)
{
this
.
$router
.
push
(
`/clientDataOverview/marketingPeople?crowdId=
${
id
}
`
)
},
},
goNextPage
()
{
goNextPage
()
{
// window.open('https://www.baidu.com', '_blank')
// window.open('https://www.baidu.com', '_blank')
...
@@ -634,8 +646,6 @@ export default {
...
@@ -634,8 +646,6 @@ export default {
// this.titles[1].num = res.needRenewalCustomerCount
// this.titles[1].num = res.needRenewalCustomerCount
// this.titles[2].num = res.burseholderCustomerCount
// this.titles[2].num = res.burseholderCustomerCount
// this.titles[4].num = res.silenceCustomerCount
// this.titles[4].num = res.silenceCustomerCount
console
.
log
(
res
,
'这是上面数据'
)
this
.
isNoBuyUp
=
res
.
purposeUp
this
.
isNoBuyUp
=
res
.
purposeUp
this
.
isBuyUp
=
res
.
purchaseUp
this
.
isBuyUp
=
res
.
purchaseUp
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
//先看登录次数,首次进来为true,不管客户总数是否为0,都显示banner;
...
@@ -671,10 +681,10 @@ export default {
...
@@ -671,10 +681,10 @@ export default {
// })
// })
// }
// }
console
.
log
(
this
.
isHasCustomerCountBanner
,
'true/fasle'
)
console
.
log
(
this
.
isHasCustomerCountBanner
,
'true/fasle'
)
this
.
$set
(
this
.
titles
[
0
],
'num'
,
res
.
newCarCustomerCount
)
//
this.$set(this.titles[0], 'num', res.newCarCustomerCount)
this
.
$set
(
this
.
titles
[
1
],
'num'
,
res
.
needRenewalCustomerCount
)
//
this.$set(this.titles[1], 'num', res.needRenewalCustomerCount)
this
.
$set
(
this
.
titles
[
2
],
'num'
,
res
.
burseholderCustomerCount
)
//
this.$set(this.titles[2], 'num', res.burseholderCustomerCount)
this
.
$set
(
this
.
titles
[
3
],
'num'
,
res
.
silenceCustomerCount
)
//
this.$set(this.titles[3], 'num', res.silenceCustomerCount)
})
})
// .catch(err => {
// .catch(err => {
// console.log('错误信息:', err)
// console.log('错误信息:', err)
...
...
src/views/clientDataOverview/
GroupOperating/
marketingPeople.vue
→
src/views/clientDataOverview/marketingPeople.vue
View file @
47e1faf
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
<!-- 切换导航栏 -->
<!-- 切换导航栏 -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"营销人群"
name=
"first"
>
<el-tab-pane
label=
"营销人群"
name=
"first"
>
<!-- v-if="activeName == 'first'" -->
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<div
class=
"markPeople"
>
<div
class=
"markPeople"
>
<span>
营销人群
</span>
<span>
营销人群
</span>
...
@@ -26,13 +25,13 @@
...
@@ -26,13 +25,13 @@
<div
class=
"bigMarketItem"
v-if=
"closeFlag"
>
<div
class=
"bigMarketItem"
v-if=
"closeFlag"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<template
v-if=
"idx
< displayNum
"
>
<template
v-if=
"idx
< displayNum
"
>
<p
class=
"peopleName"
>
人群名称
</p>
<p
class=
"peopleName"
>
{{
item
.
crowdName
}}
</p>
<div
class=
"itemBox"
>
<div
class=
"itemBox"
>
<p
class=
"peopleNum"
>
<p
class=
"peopleNum"
>
{{
item
.
num
}}
{{
item
.
total
}}
<span>
人
</span>
<span>
人
</span>
</p>
</p>
<p
class=
"peopledesc"
>
{{
item
.
d
esc
}}
</p>
<p
class=
"peopledesc"
>
{{
item
.
crowdD
esc
}}
</p>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP()"
:disabled=
"item.type"
>
创建营销SOP
</el-button>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP()"
:disabled=
"item.type"
>
创建营销SOP
</el-button>
</div>
</div>
</
template
>
</
template
>
...
@@ -43,13 +42,13 @@
...
@@ -43,13 +42,13 @@
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx, item.title)"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx, item.title)"
>
<div
class=
"marketItem-border"
>
<div
class=
"marketItem-border"
>
<p
class=
"peopleName"
>
{{ item.
titl
e }}
</p>
<p
class=
"peopleName"
>
{{ item.
crowdNam
e }}
</p>
<div
class=
"itemBox"
>
<div
class=
"itemBox"
>
<p
class=
"peopleNum"
>
<p
class=
"peopleNum"
>
{{ item.
num
}}
{{ item.
total
}}
<span>
人
</span>
<span>
人
</span>
</p>
</p>
<p
class=
"peopledesc"
>
{{ item.
d
esc }}
</p>
<p
class=
"peopledesc"
>
{{ item.
crowdD
esc }}
</p>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP(item.id)"
:disabled=
"item.type"
>
创建营销SOP
</el-button>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP(item.id)"
:disabled=
"item.type"
>
创建营销SOP
</el-button>
</div>
</div>
</div>
</div>
...
@@ -82,15 +81,16 @@
...
@@ -82,15 +81,16 @@
</template>
</template>
<
script
>
<
script
>
import
{
marketingPeopleListShow
}
from
'@/api/modules/clientDataOverview'
import
marketingPlan
from
'./components/marketingPlan.vue'
import
marketingPlan
from
'./components/marketingPlan.vue'
import
Swiper
from
'swiper'
import
Swiper
from
'swiper'
import
util
from
'@/utils/util'
import
'swiper/dist/css/swiper.min.css'
import
'swiper/dist/css/swiper.min.css'
export
default
{
export
default
{
name
:
'marketPeople'
,
name
:
'market
ing
People'
,
components
:
{
marketingPlan
},
components
:
{
marketingPlan
},
data
()
{
data
()
{
return
{
return
{
crowdGroupId
:
''
,
activeName
:
'first'
,
activeName
:
'first'
,
searchForm
:
{},
searchForm
:
{},
isActive
:
-
1
,
isActive
:
-
1
,
...
@@ -98,16 +98,15 @@ export default {
...
@@ -98,16 +98,15 @@ export default {
closeFlag
:
false
,
//展开收起
closeFlag
:
false
,
//展开收起
showTitle
:
''
,
// 展示的标题
showTitle
:
''
,
// 展示的标题
itemArr
:
[
itemArr
:
[
// 后台传一个状态回来
// { title: 'N-23待定保客户', num: 323, desc: '我顶着大太阳,只想为你撑伞', id: 1, type: 'false' },
{
title
:
'N-23待定保客户'
,
num
:
323
,
desc
:
'我顶着大太阳,只想为你撑伞'
,
id
:
1
,
type
:
'false'
},
// { title: 'N-45待定保客户', num: 1312, desc: '你专心在画睫毛,我专心在等你笑', id: 2 },
{
title
:
'N-45待定保客户'
,
num
:
1312
,
desc
:
'你专心在画睫毛,我专心在等你笑'
,
id
:
2
},
// { title: 'N-33待定保客户', num: 43133, desc: '气球在我手上,牵着你瞎逛' },
{
title
:
'N-33待定保客户'
,
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛'
},
// { title: 'N-1待定保客户', num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' },
{
title
:
'N-1待定保客户'
,
num
:
123213
,
desc
:
'城堡为爱守着秘密,而我为你守着爱情'
},
// { title: 'N-2待定保客户', num: 1233, desc: '喜欢在人潮中,你只属于我的那画面' },
{
title
:
'N-2待定保客户'
,
num
:
1233
,
desc
:
'喜欢在人潮中,你只属于我的那画面'
},
// { title: 'N-7待定保客户', num: 43133, desc: '但偏偏,风渐渐,把距离吹的好远' },
{
title
:
'N-7待定保客户'
,
num
:
43133
,
desc
:
'但偏偏,风渐渐,把距离吹的好远'
},
// { title: 'N-6待定保客户', num: 123213, desc: '最美的不是下雨天,是曾与你躲过雨的屋檐' },
{
title
:
'N-6待定保客户'
,
num
:
123213
,
desc
:
'最美的不是下雨天,是曾与你躲过雨的屋檐'
},
// { title: 'N-5待定保客户', num: 1233, desc: '美人鱼的眼泪' },
{
title
:
'N-5待定保客户'
,
num
:
1233
,
desc
:
'美人鱼的眼泪'
},
// { title: 'N-4待定保客户', num: 1233, desc: '我一路向北,离开有你的季节' }
{
title
:
'N-4待定保客户'
,
num
:
1233
,
desc
:
'我一路向北,离开有你的季节'
}
],
],
marketPeopleFormList
:
[
marketPeopleFormList
:
[
{
{
...
@@ -227,23 +226,54 @@ export default {
...
@@ -227,23 +226,54 @@ export default {
minWidth
:
120
minWidth
:
120
},
},
{
{
label
:
'
性别
'
,
label
:
'
联系电话
'
,
prop
:
'customerSex'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
addHtml
:
'customerSex'
,
width
:
150
},
},
{
{
label
:
'
入群方式
'
,
label
:
'
车架号
'
,
prop
:
'joinScene'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
,
addHtml
:
'joinScene'
,
minWidth
:
140
minWidth
:
140
},
},
{
{
label
:
'
邀请人
'
,
label
:
'
车牌号
'
,
prop
:
'invitorName'
,
prop
:
'invitorName'
,
minWidth
:
120
minWidth
:
120
},
},
{
{
label
:
'入群时间'
,
label
:
'车系'
,
prop
:
'joinTime'
,
width
:
170
},
{
label
:
'车险开始时间'
,
prop
:
'joinTime'
,
width
:
170
},
{
label
:
'车险到期时间'
,
prop
:
'joinTime'
,
width
:
170
},
{
label
:
'跟进员工'
,
prop
:
'joinTime'
,
width
:
170
},
{
label
:
'是否加企微'
,
prop
:
'joinTime'
,
width
:
170
},
{
label
:
'购车时间'
,
prop
:
'joinTime'
,
width
:
170
},
{
label
:
'添加时间'
,
prop
:
'joinTime'
,
prop
:
'joinTime'
,
width
:
170
width
:
170
}
}
...
@@ -261,7 +291,11 @@ export default {
...
@@ -261,7 +291,11 @@ export default {
// getListApi: getDetailQuitTableList,
// getListApi: getDetailQuitTableList,
}
}
},
},
created
()
{
// this.$route.query || this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
this
.
crowdGroupId
=
this
.
$route
.
query
.
crowdId
this
.
getMarketingPeople
()
},
mounted
()
{
mounted
()
{
new
Swiper
(
'.swiper-container'
,
{
new
Swiper
(
'.swiper-container'
,
{
// paginationClickable: true,
// paginationClickable: true,
...
@@ -276,6 +310,17 @@ export default {
...
@@ -276,6 +310,17 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
// 获取营销人群展示
getMarketingPeople
()
{
let
params
=
{
'req.crowdGroupId'
:
this
.
crowdGroupId
}
marketingPeopleListShow
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
itemArr
=
res
.
crowdUnitList
console
.
log
(
this
.
itemArr
)
})
},
// 搜索表格
// 搜索表格
searchTable
()
{
searchTable
()
{
console
.
log
(
this
.
searchForm
)
console
.
log
(
this
.
searchForm
)
...
@@ -288,7 +333,7 @@ export default {
...
@@ -288,7 +333,7 @@ export default {
},
},
// 跳转到营销SOP
// 跳转到营销SOP
createMarketSOP
(
id
)
{
createMarketSOP
(
id
)
{
util
.
openUrl
(
location
.
origin
+
`/marketing/sop/editSop?addOrEdit=add&fromPage=sopList&corwedId=
${
id
}
`
)
this
.
$history
.
push
(
`/marketing/sop/editSop?$title=
${
encodeURI
(
'新建SOP'
)}
&fromPage=
${
encodeURI
(
'/npmph/clientDataOverview/marketingPeople?selectTab=1'
)}
&addOrEdit=add&id=183
`
)
},
},
expandClick
(
val
)
{
expandClick
(
val
)
{
if
(
val
==
'expand'
)
{
if
(
val
==
'expand'
)
{
...
...
src/views/clientManage/index.vue
View file @
47e1faf
...
@@ -254,11 +254,12 @@ export default {
...
@@ -254,11 +254,12 @@ export default {
tableOption
:
false
,
tableOption
:
false
,
// mutiSelectName: 'employeeList',
// mutiSelectName: 'employeeList',
// mutiSelectUniqueKey: 'id',
// mutiSelectUniqueKey: 'id',
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'客户ID'
,
label
:
'客户ID'
,
prop
:
'oneId'
,
prop
:
'oneId'
,
width
:
140
,
width
:
140
,
line
:
1
line
:
1
},
},
{
{
...
@@ -266,7 +267,7 @@ export default {
...
@@ -266,7 +267,7 @@ export default {
prop
:
'customerName'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
addHtml
:
'customerName'
,
width
:
120
,
width
:
120
,
line
:
1
line
:
1
},
},
{
{
label
:
'企微名称'
,
label
:
'企微名称'
,
...
@@ -323,30 +324,30 @@ export default {
...
@@ -323,30 +324,30 @@ export default {
label
:
'车系'
,
label
:
'车系'
,
prop
:
'audi'
,
prop
:
'audi'
,
width
:
120
,
width
:
120
,
line
:
1
line
:
1
},
},
{
{
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'carVin'
,
prop
:
'carVin'
,
width
:
180
,
width
:
180
,
line
:
1
line
:
1
},
},
{
{
label
:
'车牌号'
,
label
:
'车牌号'
,
prop
:
'carNumber'
,
prop
:
'carNumber'
,
width
:
140
,
width
:
140
,
line
:
1
line
:
1
},
},
{
{
label
:
'购车时间'
,
label
:
'购车时间'
,
prop
:
'buyDate'
,
prop
:
'buyDate'
,
width
:
170
,
width
:
170
,
line
:
1
line
:
1
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
'optionBtns'
,
prop
:
'optionBtns'
,
width
:
'6
5
px'
,
width
:
'6
6
px'
,
addHtml
:
'optionBtns'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
fixed
:
'right'
}
}
...
...
src/views/crowdManage/crowdDetail.vue
View file @
47e1faf
...
@@ -107,7 +107,7 @@ export default {
...
@@ -107,7 +107,7 @@ export default {
crowdDesc
:
''
crowdDesc
:
''
},
},
crowdId
:
this
.
$route
.
params
.
id
?
this
.
$route
.
params
.
id
:
''
,
crowdId
:
this
.
$route
.
params
.
id
?
this
.
$route
.
params
.
id
:
''
,
crowdPage
:
this
.
$route
.
params
.
crowdType
?
this
.
$route
.
params
.
crowdType
:
''
,
crowdPage
:
this
.
$route
.
query
.
crowdType
?
this
.
$route
.
query
.
crowdType
:
''
,
tableTotal
:
''
,
tableTotal
:
''
,
isShowCloseBtn
:
true
,
isShowCloseBtn
:
true
,
dialogRuleVisible
:
false
,
dialogRuleVisible
:
false
,
...
@@ -152,7 +152,7 @@ export default {
...
@@ -152,7 +152,7 @@ export default {
this
.
getCrowdDetails
()
this
.
getCrowdDetails
()
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
$route
.
params
)
console
.
log
(
this
.
$route
.
query
.
crowdPage
)
},
},
methods
:
{
methods
:
{
goBack
()
{
goBack
()
{
...
...
src/views/crowdManage/index.vue
View file @
47e1faf
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<GLButton
type=
"text"
@
click=
"btnClick('detail', scope.scope)"
class=
"blue-text"
fn=
"查看详情"
>
查看详情
</GLButton>
<GLButton
type=
"text"
@
click=
"btnClick('detail', scope.scope)"
class=
"blue-text"
fn=
"查看详情"
>
查看详情
</GLButton>
<!--
<span
style=
"margin-left: 20px"
@
click=
"btnClick('view', scope.scope)"
class=
"blue-text"
>
查看客户
</span>
-->
<!--
<span
style=
"margin-left: 20px"
@
click=
"btnClick('view', scope.scope)"
class=
"blue-text"
>
查看客户
</span>
-->
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"客户列表"
v-if=
"userType !== 2"
@
click=
"btnClick('view', scope.scope)"
>
查看客户
</GLButton>
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"客户列表"
v-if=
"userType !== 2"
@
click=
"btnClick('view', scope.scope)"
>
查看客户
</GLButton>
<el-button
type=
"text"
class=
"blue-text"
>
营销SOP
</el-button>
<el-button
type=
"text"
class=
"blue-text"
@
click=
"createMarketSOP(scope.scope)"
>
营销SOP
</el-button>
</
template
>
</
template
>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -108,21 +108,50 @@ export default {
...
@@ -108,21 +108,50 @@ export default {
// this.activeName = 'second'
// this.activeName = 'second'
// // window.history.pushState(null, null, location.origin + location.pathname)
// // window.history.pushState(null, null, location.origin + location.pathname)
// }
// }
// console.log(this.$route.query)
if
(
this
.
$route
.
query
.
selectTab
)
{
if
(
this
.
$route
.
query
.
selectTab
)
{
this
.
$route
.
query
.
selectTab
==
1
?
(
this
.
activeName
=
'first'
)
:
(
this
.
activeName
=
'second'
)
this
.
$route
.
query
.
selectTab
==
1
?
(
this
.
activeName
=
'first'
)
:
(
this
.
activeName
=
'second'
)
}
}
},
},
mounted
()
{
mounted
()
{},
console
.
log
(
this
.
$route
.
params
)
},
methods
:
{
methods
:
{
createMarketSOP
(
crowd
)
{
var
params
=
{
addOrEdit
:
'add'
,
fromPage
:
'/npmph/crowdManage/index'
,
$title
:
encodeURI
(
'新建SOP'
),
info
:
{
// 人群
customerOptType
:
2
,
crowdList
:
[]
// 标签
// customerOptType: 3,
// labelList: [
// {
// id: 10,
// labelGroupId: '79009',
// labelGroupName: 'sop专用标签组1',
// labelGroupType: '自店标签',
// labelId: '37418',
// labelName: 'group1_A'
// }
// ]
}
}
params
.
info
.
crowdList
.
push
(
crowd
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
},
btnClick
(
type
,
data
)
{
btnClick
(
type
,
data
)
{
const
crowdType
=
this
.
activeName
==
'first'
?
1
:
2
const
crowdType
=
this
.
activeName
==
'first'
?
1
:
2
const
transData
=
JSON
.
stringify
(
data
)
if
(
type
==
'detail'
)
{
if
(
type
==
'detail'
)
{
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
/
${
crowdType
}
`
)
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
?crowdType=
${
crowdType
}
`
)
}
}
if
(
type
==
'view'
)
{
if
(
type
==
'view'
)
{
this
.
$router
.
push
(
`/clientDataOverview/group/
${
data
.
crowdId
}
/
${
crowdType
}
`
)
this
.
$router
.
push
(
`/clientDataOverview/group/
${
data
.
crowdId
}
/
${
crowdType
}
?crowdInfo=
${
transData
}
`
)
}
}
},
},
addClick
()
{
addClick
()
{
...
...
src/views/tagsManage/index.vue
View file @
47e1faf
...
@@ -95,10 +95,7 @@
...
@@ -95,10 +95,7 @@
>
>
保存为人群
保存为人群
</el-button>
</el-button>
<el-button
<el-button
plain
size=
"small"
@
click=
"createMarketSOP()"
>
plain
size=
"small"
>
营销SOP
营销SOP
</el-button>
</el-button>
</div>
</div>
...
@@ -582,6 +579,31 @@ export default {
...
@@ -582,6 +579,31 @@ export default {
// toViewCustomer(info) {
// toViewCustomer(info) {
// this.$router.push('/tagsManage/viewCustomers')
// this.$router.push('/tagsManage/viewCustomers')
// },
// },
// 跳转到营销SOP
createMarketSOP
()
{
let
getDatas
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
allListParams
)
.
replace
(
/groupId/g
,
'labelGroupId'
)
.
replace
(
/groupName/g
,
'labelGroupName'
)
.
replace
(
/groupType/g
,
'labelGroupType'
)
)
console
.
log
(
getDatas
)
var
params
=
{
addOrEdit
:
'add'
,
fromPage
:
'/npmph/tagsManage/index'
,
$title
:
encodeURI
(
'新建SOP'
),
info
:
{
// 标签
customerOptType
:
3
,
labelList
:
[...
getDatas
]
}
}
console
.
log
(
params
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
},
toViewCustomer
(
info
)
{
toViewCustomer
(
info
)
{
console
.
log
(
info
)
console
.
log
(
info
)
const
id
=
info
.
labelGroup
.
id
const
id
=
info
.
labelGroup
.
id
...
...
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