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 7dcfd758
authored
May 26, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.3.0' into 'v2.3.0'
修复人群管理和数据概览bug See merge request
!87
2 parents
958ee74b
194d226b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
15 deletions
src/router/routes.js
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/index.vue
src/views/crowdManage/crowdDetail.vue
src/views/crowdManage/index.vue
src/router/routes.js
View file @
7dcfd75
...
@@ -120,7 +120,7 @@ const staticRoutes = Object.freeze([{
...
@@ -120,7 +120,7 @@ const staticRoutes = Object.freeze([{
},
},
{
{
name
:
'crowdDetail'
,
name
:
'crowdDetail'
,
path
:
'/crowdManage/crowdDetail
:id
'
,
path
:
'/crowdManage/crowdDetail
/:id/:type
'
,
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdDetail.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdDetail.vue`
],
resolve
),
meta
:
{}
meta
:
{}
},
},
...
...
src/views/clientDataOverview/group.vue
View file @
7dcfd75
<
template
>
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<template
v-if=
"crowdType == ''"
>
<template
v-if=
"crowdType == '
3
'"
>
<div
class=
"head-container-title color-3 font-20"
>
{{
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
name
:
''
}}
</div>
<div
class=
"head-container-title color-3 font-20"
>
{{
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
name
:
''
}}
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
info
:
''
}}
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
)
?
$Constants
.
DESCRIBEDATA
.
find
(
item
=>
item
.
id
==
id
).
info
:
''
}}
</div>
</
template
>
</
template
>
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
name
:
'group'
,
name
:
'group'
,
data
()
{
data
()
{
return
{
return
{
getListApi
:
this
.
$route
.
params
.
crowdType
?
getcrowdManageList
:
getCustomerList
,
getListApi
:
this
.
$route
.
params
.
crowdType
==
'1'
||
this
.
$route
.
params
.
crowdType
==
'2'
?
getcrowdManageList
:
getCustomerList
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableSearchForm
:
{
tableSearchForm
:
{
customerPhone
:
''
,
customerPhone
:
''
,
...
@@ -191,7 +191,6 @@ export default {
...
@@ -191,7 +191,6 @@ export default {
}
}
]
]
},
},
url
:
url
url
:
url
}
}
},
},
...
@@ -199,7 +198,7 @@ export default {
...
@@ -199,7 +198,7 @@ export default {
let
{
id
}
=
this
let
{
id
}
=
this
this
.
init
(
id
)
this
.
init
(
id
)
// 针对广汇替换字段
// 针对广汇替换字段
if
(
this
.
id
==
1
&&
location
.
host
==
'scrm.cgacar.com'
)
{
if
(
this
.
id
==
1
&&
location
.
host
.
includes
(
'cgacar'
)
)
{
this
.
tableParams
.
tableColumns
.
splice
(
this
.
tableParams
.
tableColumns
.
splice
(
3
,
3
,
3
,
3
,
...
@@ -301,7 +300,23 @@ export default {
...
@@ -301,7 +300,23 @@ export default {
this
.
$refs
.
groupRef
.
data
.
length
?
(
this
.
$refs
.
groupRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
groupRef
.
setTableHeightFun
()
this
.
$refs
.
groupRef
.
data
.
length
?
(
this
.
$refs
.
groupRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
groupRef
.
setTableHeightFun
()
},
},
goBack
()
{
goBack
()
{
this
.
$router
.
push
(
'/clientDataOverview/index'
)
if
(
this
.
crowdType
==
1
)
{
this
.
$router
.
push
({
path
:
'/crowdManage/index'
,
query
:
{
selectTab
:
1
}
})
}
else
if
(
this
.
crowdType
==
2
)
{
this
.
$router
.
push
({
path
:
'/crowdManage/index'
,
query
:
{
selectTab
:
2
}
})
}
else
{
this
.
$router
.
push
(
'/clientDataOverview/index'
)
}
}
}
}
}
}
}
...
...
src/views/clientDataOverview/index.vue
View file @
7dcfd75
...
@@ -383,6 +383,7 @@ export default {
...
@@ -383,6 +383,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
crowdType
:
3
,
isCloseShowNumTag
:
false
,
isCloseShowNumTag
:
false
,
isReload
:
true
,
isReload
:
true
,
isShowModal
:
false
,
isShowModal
:
false
,
...
@@ -714,7 +715,8 @@ export default {
...
@@ -714,7 +715,8 @@ export default {
//跳转到人群客户列表
//跳转到人群客户列表
goto
(
id
)
{
goto
(
id
)
{
if
(
this
.
userType
==
2
)
return
if
(
this
.
userType
==
2
)
return
this
.
$router
.
push
(
'/clientDataOverview/group/'
+
id
)
// this.$router.push('/clientDataOverview/group/' + id )
this
.
$router
.
push
(
`/clientDataOverview/group/
${
id
}
/
${
this
.
crowdType
}
`
)
}
}
}
}
}
}
...
...
src/views/crowdManage/crowdDetail.vue
View file @
7dcfd75
...
@@ -107,6 +107,7 @@ export default {
...
@@ -107,6 +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
:
''
,
tableTotal
:
''
,
tableTotal
:
''
,
isShowCloseBtn
:
true
,
isShowCloseBtn
:
true
,
dialogRuleVisible
:
false
,
dialogRuleVisible
:
false
,
...
@@ -147,17 +148,18 @@ export default {
...
@@ -147,17 +148,18 @@ export default {
}
}
},
},
created
()
{
created
()
{
console
.
log
(
'this.$route.params.id'
,
this
.
$route
.
params
.
id
)
// 通过人群Id查询人群详情
// 通过人群Id查询人群详情
this
.
getCrowdDetails
()
this
.
getCrowdDetails
()
},
},
mounted
()
{},
mounted
()
{
console
.
log
(
this
.
$route
.
params
)
},
methods
:
{
methods
:
{
goBack
()
{
goBack
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/crowdManage/index'
,
path
:
'/crowdManage/index'
,
query
:
{
query
:
{
selectTab
:
1
selectTab
:
this
.
crowdPage
}
}
})
})
},
},
...
...
src/views/crowdManage/index.vue
View file @
7dcfd75
...
@@ -103,19 +103,24 @@ export default {
...
@@ -103,19 +103,24 @@ export default {
}
}
this
.
searchForm
=
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
this
.
crowdType
}
this
.
searchForm
=
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
this
.
crowdType
}
//标签管理保存初始化保存自定义人群状态
//标签管理保存初始化保存自定义人群状态
// if (this.$route.query.selectTab == 1) {
// this.activeName = 'second'
// // window.history.pushState(null, null, location.origin + location.pathname)
// }
if
(
this
.
$route
.
query
.
selectTab
)
{
if
(
this
.
$route
.
query
.
selectTab
)
{
this
.
activeName
=
'second'
this
.
$route
.
query
.
selectTab
==
1
?
(
this
.
activeName
=
'first'
)
:
(
this
.
activeName
=
'second'
)
// window.history.pushState(null, null, location.origin + location.pathname)
}
}
},
},
mounted
()
{},
mounted
()
{
console
.
log
(
this
.
$route
.
params
)
},
methods
:
{
methods
:
{
btnClick
(
type
,
data
)
{
btnClick
(
type
,
data
)
{
const
crowdType
=
this
.
activeName
==
'first'
?
1
:
2
if
(
type
==
'detail'
)
{
if
(
type
==
'detail'
)
{
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
`
)
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
/
${
crowdType
}
`
)
}
}
if
(
type
==
'view'
)
{
if
(
type
==
'view'
)
{
const
crowdType
=
this
.
activeName
==
'first'
?
1
:
2
this
.
$router
.
push
(
`/clientDataOverview/group/
${
data
.
crowdId
}
/
${
crowdType
}
`
)
this
.
$router
.
push
(
`/clientDataOverview/group/
${
data
.
crowdId
}
/
${
crowdType
}
`
)
}
}
},
},
...
...
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