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 a64e14a8
authored
Mar 22, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style 样式调整
1 parent
4e864dc4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
72 additions
and
29 deletions
src/api/modules/clientDataOverview.js
src/common/constants.js
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/index.vue
src/views/clientManage/index.vue
src/views/crowdManage/index.vue
src/views/tagsManage/index.vue
src/api/modules/clientDataOverview.js
View file @
a64e14a
...
@@ -32,8 +32,18 @@ export function getDataOverviewBarMap(params) {
...
@@ -32,8 +32,18 @@ export function getDataOverviewBarMap(params) {
})
})
}
}
// 获取
自定义分群
客户列表数据接口
// 获取
数据概览
客户列表数据接口
export
function
getCustomerList
(
params
)
{
export
function
getCustomerList
(
params
)
{
params
.
method
=
'entmicro.api.customer.cluster.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取人群管理客户列表数据接口
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'
,
...
@@ -43,6 +53,7 @@ export function getCustomerList(params) {
...
@@ -43,6 +53,7 @@ export function getCustomerList(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'
...
...
src/common/constants.js
View file @
a64e14a
export
const
Constants
=
{
export
const
Constants
=
{
CLIENT_STATUS
:{
CLIENT_STATUS
:
{
'0'
:
'正常, green-text'
,
'0'
:
'正常, green-text'
,
'1'
:
'删除好友, red-text'
'1'
:
'删除好友, red-text'
},
},
//性别选项
//性别选项
GENDER_OPTION
:[
GENDER_OPTION
:
[
{
{
label
:
'全部'
,
label
:
'全部'
,
value
:
null
value
:
null
...
@@ -23,7 +23,7 @@ export const Constants = {
...
@@ -23,7 +23,7 @@ export const Constants = {
value
:
0
value
:
0
}
}
],
],
SOURCE_OPTION
:[
SOURCE_OPTION
:
[
{
{
label
:
'全部'
,
label
:
'全部'
,
value
:
0
value
:
0
...
@@ -81,7 +81,21 @@ export const Constants = {
...
@@ -81,7 +81,21 @@ export const Constants = {
value
:
12
value
:
12
}
}
],
],
//标签类型
LABEL_OPTION
:
[
{
label
:
'企业标签'
,
value
:
'企业标签'
},
{
label
:
'自店标签'
,
value
:
'自店标签'
},
{
label
:
'系统标签'
,
value
:
'系统标签'
}
],
// 文件大小提示语
// 文件大小提示语
FILESIZEMSG
:
'单个文件大小不能超过10M'
,
FILESIZEMSG
:
'单个文件大小不能超过10M'
,
...
...
src/views/clientDataOverview/group.vue
View file @
a64e14a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<div
class=
"head-container-title color-3 font-20"
>
{{
crowdForm
.
crowdName
}}
</div>
<div
class=
"head-container-title color-3 font-20"
>
{{
crowdForm
.
crowdName
}}
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
crowdForm
.
crowdDesc
}}
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
crowdForm
.
crowdDesc
}}
</div>
<!--
<div
class=
"reminder font-14 color-3"
>
企业标签 | 自动更新
</div>
-->
<!--
<div
class=
"reminder font-14 color-3"
>
企业标签 | 自动更新
</div>
-->
<div
class=
"back color-58 font-14"
@
click=
"goBack"
>
返回人群管理
</div>
<div
class=
"back color-58 font-14"
@
click=
"goBack"
>
返回人群管理
</div>
</div>
</div>
...
@@ -46,17 +46,18 @@
...
@@ -46,17 +46,18 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getCustomerList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
{
getCustomerList
,
getcrowdManageList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
export
default
{
export
default
{
name
:
'group'
,
name
:
'group'
,
data
()
{
data
()
{
return
{
return
{
getListApi
:
getCustomerList
,
getListApi
:
this
.
$route
.
params
.
crowdType
?
getcrowdManageList
:
getCustomerList
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableSearchForm
:
{},
tableSearchForm
:
{},
crowdForm
:
{},
crowdForm
:
{},
id
:
this
.
$route
.
params
.
id
?
this
.
$route
.
params
.
id
:
''
,
id
:
this
.
$route
.
params
.
id
?
this
.
$route
.
params
.
id
:
''
,
crowdType
:
this
.
$route
.
params
.
crowdType
?
this
.
$route
.
params
.
crowdType
:
''
,
totalCount
:
''
,
totalCount
:
''
,
tableParams
:
{
tableParams
:
{
listName
:
'data'
,
listName
:
'data'
,
...
@@ -207,6 +208,7 @@ export default {
...
@@ -207,6 +208,7 @@ export default {
line-height
:
20px
;
line-height
:
20px
;
letter-spacing
:
1px
;
letter-spacing
:
1px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
width
:
calc
(
100%
-
156px
);
}
}
&
-content
{
&
-content
{
font-weight
:
400
;
font-weight
:
400
;
...
...
src/views/clientDataOverview/index.vue
View file @
a64e14a
...
@@ -525,7 +525,6 @@ export default {
...
@@ -525,7 +525,6 @@ export default {
},
},
//跳转到人群客户列表
//跳转到人群客户列表
goto
(
id
)
{
goto
(
id
)
{
console
.
log
(
this
.
userType
)
if
(
this
.
userType
==
2
)
return
if
(
this
.
userType
==
2
)
return
this
.
$router
.
push
(
'/clientDataOverview/group/'
+
id
)
this
.
$router
.
push
(
'/clientDataOverview/group/'
+
id
)
}
}
...
...
src/views/clientManage/index.vue
View file @
a64e14a
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<!--
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
-->
<!--
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
-->
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
scope
.
scope
.
type
==
null
?
''
:
''
}}
</span>
<span
style=
"font-size: 12px"
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
scope
.
scope
.
type
==
null
?
''
:
''
}}
</span>
</span>
</span>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
...
...
src/views/crowdManage/index.vue
View file @
a64e14a
...
@@ -47,7 +47,7 @@ export default {
...
@@ -47,7 +47,7 @@ export default {
type
:
'input'
,
type
:
'input'
,
inputType
:
'text'
,
inputType
:
'text'
,
prop
:
'req.keyword'
,
prop
:
'req.keyword'
,
label
:
'人群名称'
,
label
:
'人群名称
:
'
,
placeholder
:
'请输入人群名称'
,
placeholder
:
'请输入人群名称'
,
clearable
:
true
clearable
:
true
}
}
...
@@ -118,7 +118,8 @@ export default {
...
@@ -118,7 +118,8 @@ export default {
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
`
)
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
`
)
}
}
if
(
type
==
'view'
)
{
if
(
type
==
'view'
)
{
this
.
$router
.
push
(
`/clientDataOverview/group/
${
data
.
crowdId
}
`
)
const
crowdType
=
this
.
activeName
==
'first'
?
1
:
2
this
.
$router
.
push
(
`/clientDataOverview/group/
${
data
.
crowdId
}
/
${
crowdType
}
`
)
}
}
},
},
addClick
()
{
addClick
()
{
...
@@ -154,6 +155,15 @@ export default {
...
@@ -154,6 +155,15 @@ export default {
// this.$refs.crowdManage.refreshTable()
// this.$refs.crowdManage.refreshTable()
// }
// }
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
params
.
crowdType
)
{
vm
.
activeName
=
from
.
params
.
crowdType
==
2
?
'second'
:
'first'
vm
.
crowdType
=
from
.
params
.
crowdType
vm
.
beforeSearchFn
()
}
})
}
}
}
}
</
script
>
</
script
>
...
@@ -193,9 +203,29 @@ export default {
...
@@ -193,9 +203,29 @@ export default {
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.scrm-sub-client-container
{
.scrm-sub-client-container
{
/deep/.search-form
.el-form-item__content
{
.pageContent
{
/deep/.search-form
{
.itemWidth
{
display
:
flex
;
.el-form-item
{
display
:
flex
;
}
}
.el-form-item__content
{
width
:
auto
;
width
:
auto
;
display
:
inline-block
;
margin-left
:
0px
!important
;
.el-input
{
width
:
415px
;
.el-input__inner
{
width
:
415px
;
}
}
}
}
}
}
.pageContent
{
.pageContent
{
padding
:
6px
20px
30px
;
padding
:
6px
20px
30px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
...
@@ -206,8 +236,8 @@ export default {
...
@@ -206,8 +236,8 @@ export default {
.searchTop
{
.searchTop
{
/deep/
.
el-form-item
:
nth-child
(
2
)
{
/deep/
.
el-form-item
:
nth-child
(
2
)
{
position
:
static
!important
;
position
:
static
!important
;
.el-form-item__content{
.el-form-item__content
{
margin-left
:
15px
!important
;
margin-left
:
15px
!important
;
}
}
}
}
}
}
...
...
src/views/tagsManage/index.vue
View file @
a64e14a
...
@@ -200,20 +200,7 @@ export default {
...
@@ -200,20 +200,7 @@ export default {
prop
:
'labelTreeReq.labelTypesStr'
,
prop
:
'labelTreeReq.labelTypesStr'
,
label
:
'标签组'
,
label
:
'标签组'
,
placeholder
:
'请选择标签组类型'
,
placeholder
:
'请选择标签组类型'
,
options
:
[
options
:
this
.
$Constants
.
LABEL_OPTION
{
label
:
'企业标签'
,
value
:
'企业标签'
},
{
label
:
'自店标签'
,
value
:
'自店标签'
},
{
label
:
'系统标签'
,
value
:
'系统标签'
}
]
},
},
{
{
type
:
'input'
,
type
:
'input'
,
...
...
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