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