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 77747094
authored
Jun 06, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新代码
1 parent
46c4aa63
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
27 deletions
src/api/modules/clientDataOverview.js
src/api/modules/crowdManage.js
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/grouping.vue
src/views/guestGroup/components/selectFollow.vue
src/api/modules/clientDataOverview.js
View file @
7774709
...
...
@@ -72,7 +72,7 @@ export function customerClusterListShow(params) {
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdGroupList'
return
http3
({
// https://scrm.dev.glsx.com.cn
url
:
'/rop-scrm-datahub/router'
,
url
:
'
http://scrm.dev.glsx.com.cn
/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
...
...
@@ -85,7 +85,7 @@ export function marketingPeopleListShow(params) {
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdListByCrowdGroupId'
return
http3
({
// http://192.168.3.226:9636
url
:
'/rop-scrm-datahub/router'
,
url
:
'
http://scrm.dev.glsx.com.cn
/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
...
...
@@ -97,7 +97,7 @@ export function marketingPeopleListShow(params) {
export
function
searchCrowdIdByCrowdname
(
params
)
{
params
.
method
=
'scrm.api.datahub.crowd.queryCrowdIdByCrowdName'
return
http3
({
url
:
'/rop-scrm-datahub/router'
,
url
:
'
http://scrm.dev.glsx.com.cn
/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
...
...
src/api/modules/crowdManage.js
View file @
7774709
...
...
@@ -7,9 +7,7 @@
* @returns
*/
import
{
http
,
http3
}
from
'@/main'
// http 对应的域名http://ismv.branch.glsx.com.cn
// 查询推荐人群和自定义人群列表
const
getCrowdList
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
...
...
@@ -22,7 +20,6 @@ const getCrowdList = params => {
returnAll
:
true
})
}
//通过人群Id查询人群详情
const
getCrowdDetails
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdDetailsById'
...
...
@@ -45,7 +42,6 @@ const addCrowd = params => {
returnAll
:
true
})
}
//根据标签组合查询人群客户数
const
getCrowdCount
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdCountByTagCombine'
...
...
@@ -68,7 +64,6 @@ const getSearchBox = params => {
returnAll
:
true
})
}
//标签组树查询
const
getLabelTreeList
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelGroupTree'
...
...
@@ -80,12 +75,71 @@ const getLabelTreeList = params => {
returnAll
:
true
})
}
//查询分群列表树
const
queryCrowdGroupTree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdGroupTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//创建分群
const
addCrowdGroup
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.addCrowdGroup'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//编辑分群
const
editCrowdGroup
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.editCrowdGroup'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//删除分群
const
deleteCrowdGroup
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.deleteCrowdGroup'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//删除分群
const
queryCrowdGroupDetailsByCrowdGroupId
=
params
=>
{
params
.
method
=
'scrm.api.datahub.crowdgroup.queryCrowdGroupDetailsByCrowdGroupId'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getCrowdList
,
getCrowdDetails
,
addCrowd
,
getCrowdCount
,
getSearchBox
,
getLabelTreeList
getLabelTreeList
,
queryCrowdGroupTree
,
addCrowdGroup
,
editCrowdGroup
,
deleteCrowdGroup
,
queryCrowdGroupDetailsByCrowdGroupId
}
src/views/clientDataOverview/group.vue
View file @
7774709
...
...
@@ -208,6 +208,7 @@ export default {
created
()
{
let
{
id
}
=
this
this
.
init
(
id
)
console
.
log
(
this
.
$route
.
params
.
id
)
this
.
groupCorwdTitle
=
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
name
:
''
this
.
groupCorwdDesc
=
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
this
.
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
info
:
''
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
...
...
@@ -246,18 +247,18 @@ export default {
},
methods
:
{
// 跳转到营销SOP
createMarketSOP
()
{
async
createMarketSOP
()
{
let
marketQuery
if
(
this
.
crowdType
==
1
||
this
.
crowdType
==
2
)
{
marketQuery
=
JSON
.
parse
(
this
.
$route
.
query
.
crowdInfo
)
}
if
(
this
.
crowdType
==
3
)
{
let
p
arams
=
{
'req.crowdName
'
:
'潜在意向
客户'
,
let
crowdP
arams
=
{
'req.crowdName
'
:
'已加企微,待匹配
客户'
,
'req.merchantId'
:
44209846
}
searchCrowdIdByCrowdname
(
p
arams
).
then
(
res
=>
{
console
.
log
(
res
)
await
searchCrowdIdByCrowdname
(
crowdP
arams
).
then
(
res
=>
{
this
.
corwdId
=
res
||
''
})
marketQuery
=
{
crowdDesc
:
this
.
groupCorwdDesc
,
...
...
@@ -268,7 +269,7 @@ export default {
}
var
params
=
{
addOrEdit
:
'add'
,
fromPage
:
`/custom/clientDataOverview/group/
${
this
.
id
}
`
,
fromPage
:
this
.
crowdType
==
3
?
`/npmph/clientDataOverview/group/
${
this
.
id
}
?
${
this
.
crowdType
}
`
:
`/npmph/clientDataOverview/group/
${
this
.
crowdType
}
`
,
$title
:
encodeURI
(
'新建SOP'
),
info
:
{
// 人群
...
...
@@ -277,8 +278,11 @@ export default {
}
}
params
.
info
.
crowdList
.
push
(
marketQuery
)
console
.
log
(
params
)
this
.
$common
.
utils
.
storage
.
set
(
'sopInfo'
,
params
)
console
.
log
(
params
)
this
.
$history
.
push
({
path
:
'marketing/sop/editSop'
})
},
//获取跟进员工
getStaffList
()
{
...
...
src/views/clientDataOverview/grouping.vue
View file @
7774709
...
...
@@ -22,7 +22,7 @@
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<auth-button
:data=
"scope.scope"
></auth-button>
-->
<el-button
type=
"text"
@
click=
"goDetail(scope.scope.id
, scope.scope.custGroupName
)"
class=
"blue-text"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
查看客户
</el-button>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
class=
"blue-text"
>
...
...
@@ -246,14 +246,8 @@ export default {
this
.
isReload
=
true
})
},
goDetail
(
id
,
name
)
{
this
.
$router
.
push
({
path
:
'/clientGroupManage/clientGroupDetail'
,
query
:
{
id
:
id
,
groupName
:
name
}
})
goDetail
(
id
)
{
this
.
$router
.
push
(
`/clientDataOverview/marketingPeople?crowdId=
${
id
}
`
)
}
}
}
...
...
src/views/guestGroup/components/selectFollow.vue
View file @
7774709
...
...
@@ -68,7 +68,7 @@ export default {
},
methods
:
{
jumpUrl
()
{
util
.
openUrl
(
location
.
origin
+
'/
home
/followUp/index'
)
util
.
openUrl
(
location
.
origin
+
'/
settings
/followUp/index'
)
},
getFollower
()
{
var
params
=
{
...
...
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