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 a36156ba
authored
Apr 02, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'test1' into 'master'
'合并' See merge request
!14
2 parents
3377329c
bc4719c7
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
572 additions
and
461 deletions
src/api/modules/clientDataOverview.js
src/api/modules/clientGroupManage.js
src/api/modules/crowdManage.js
src/assets/css/public.scss
src/common/constants.js
src/config/index.js
src/router/routes.js
src/styles/index.scss
src/styles/resetelement.scss
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/index.vue
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
src/views/crowdManage/crowdAdd.vue
src/views/crowdManage/crowdDetail.vue
src/views/crowdManage/index.vue
src/views/tagsManage/index.vue
src/views/tagsManage/viewCustomers.vue
src/api/modules/clientDataOverview.js
View file @
a36156b
...
...
@@ -32,24 +32,36 @@ export function getDataOverviewBarMap(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'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
// url:'http://192.168.3.193:8395/rop-scrm-entmicro/router',
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//客户分群列表导出
export
function
customerClusterListExport
(
params
)
{
params
.
method
=
'entmicro.api.customer.customerClusterListExport'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
src/api/modules/clientGroupManage.js
View file @
a36156b
...
...
@@ -6,56 +6,56 @@
* @param {*} params
* @returns
*/
import
{
http2
,
http3
}
from
'@/main'
export
function
getTableList
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.page'
import
{
http2
,
http3
}
from
'@/main'
export
function
getTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
syncCustomerBase
(
params
){
params
.
method
=
'entmicro.api.synchro.syncCustomerBase'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
syncCustomerBase
(
params
)
{
params
.
method
=
'entmicro.api.synchro.syncCustomerBase
'
export
function
getTableDetail
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.detail
'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
getTableDetail
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.detail'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
getClientTableDetail
(
params
)
{
params
.
method
=
'entmicro.api.customer.detail'
}
export
function
getClientTableDetail
(
params
){
params
.
method
=
'entmicro.api.customer.detail'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
returnAll
:
true
})
}
}
// 客户群的客户列表获取分页数据接口
export
function
getDetailTableList
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.cust.page'
export
function
getDetailTableList
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.cust.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
}
/*
未授权时,打开进入页面即弹出提示。 触发条件:跟企业微信相关且该账户暂未绑定企业微信时提示
...
...
@@ -63,10 +63,10 @@ export function getDetailTableList(params) {
export
function
getStatus
(
params
)
{
params
.
method
=
'scrm.api.work.wechat.access.status'
return
http3
({
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
...
...
@@ -74,43 +74,43 @@ export function getStatus(params) {
跟进员工
*/
// POST /router/entmicro.api.customer.base.staff.page/1.0.0
export
function
getDetailStaffTableList
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.staff.page'
export
function
getDetailStaffTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.staff.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
}
/*
退群客户
*/
export
function
getDetailQuitTableList
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.quit.cust.page'
export
function
getDetailQuitTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.quit.cust.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
}
/*
潜在客户
*/
export
function
getDetailPotentialTableList
(
params
)
{
params
.
method
=
'entmicro.api.customer.base.potential.cust.page'
export
function
getDetailPotentialTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.potential.cust.page'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
}
//客户群管理(群聊管理)导出
export
function
clientGroupExportApi
(
params
)
{
params
.
method
=
`entmicro.api.customer.base.list.export`
export
function
clientGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.list.export`
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
...
...
@@ -119,8 +119,8 @@ export function clientGroupExportApi(params) {
})
}
// 全部客户导出
export
function
clientExportApi
(
params
)
{
params
.
method
=
`entmicro.api.customer.base.cust.export`
export
function
clientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.cust.export`
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
...
...
@@ -130,8 +130,8 @@ export function clientExportApi(params) {
}
//跟进员工导出
export
function
followEmployeeExportApi
(
params
)
{
params
.
method
=
`entmicro.api.customer.base.staff.export`
export
function
followEmployeeExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.staff.export`
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
...
...
@@ -140,8 +140,8 @@ export function followEmployeeExportApi(params) {
})
}
//退群客户导出
export
function
leaveGroupExportApi
(
params
)
{
params
.
method
=
`entmicro.api.customer.base.quit.export`
export
function
leaveGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.quit.export`
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
...
...
@@ -151,12 +151,12 @@ export function leaveGroupExportApi(params) {
}
//潜在客户导出
export
function
potentialClientExportApi
(
params
)
{
params
.
method
=
`entmicro.api.customer.base.potential.export`
export
function
potentialClientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.potential.export`
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
}
\ No newline at end of file
src/api/modules/crowdManage.js
View file @
a36156b
...
...
@@ -7,6 +7,7 @@
* @returns
*/
import
{
http
,
http3
}
from
'@/main'
// http 对应的域名http://ismv.branch.glsx.com.cn
// 查询推荐人群和自定义人群列表
...
...
src/assets/css/public.scss
View file @
a36156b
...
...
@@ -73,6 +73,9 @@ background: transparent !important;
align-items
:
center
;
justify-content
:
space-between
;
}
.font-12
{
font-size
:
12px
;
}
.font-20
{
font-size
:
20px
;
}
...
...
@@ -84,4 +87,8 @@ background: transparent !important;
}
.hand
{
cursor
:
pointer
;
}
.mg2
{
margin-left
:
20px
;
margin-right
:
20px
;
}
\ No newline at end of file
src/common/constants.js
View file @
a36156b
export
const
Constants
=
{
CLIENT_STATUS
:{
CLIENT_STATUS
:
{
'0'
:
'正常, green-text'
,
'1'
:
'删除好友, red-text'
},
//性别选项
GENDER_OPTION
:[
GENDER_OPTION
:
[
{
label
:
'全部'
,
value
:
null
...
...
@@ -23,65 +23,79 @@ export const Constants = {
value
:
0
}
],
SOURCE_OPTION
:[
{
label
:
'全部'
,
value
:
0
},
{
label
:
'直接导入'
,
value
:
1
},
{
label
:
'扫描二维码'
,
value
:
'first'
},
{
label
:
'搜索手机号'
,
value
:
2
},
{
label
:
'名片分享'
,
value
:
3
},
{
label
:
'群聊'
,
value
:
4
},
{
label
:
'手机通讯录'
,
value
:
5
},
{
label
:
'微信联系人'
,
value
:
6
},
{
label
:
'来自微信的添加好友申请'
,
value
:
7
},
{
label
:
'第三方应用的客户人员'
,
value
:
8
},
{
label
:
'搜索邮箱'
,
value
:
9
},
{
label
:
'内部成员共享'
,
value
:
10
},
{
label
:
'管理员/负责人分配'
,
value
:
11
},
{
label
:
'未知来源'
,
value
:
12
}
SOURCE_OPTION
:
[
{
label
:
'全部'
,
value
:
0
},
{
label
:
'直接导入'
,
value
:
1
},
{
label
:
'扫描二维码'
,
value
:
'first'
},
{
label
:
'搜索手机号'
,
value
:
2
},
{
label
:
'名片分享'
,
value
:
3
},
{
label
:
'群聊'
,
value
:
4
},
{
label
:
'手机通讯录'
,
value
:
5
},
{
label
:
'微信联系人'
,
value
:
6
},
{
label
:
'来自微信的添加好友申请'
,
value
:
7
},
{
label
:
'第三方应用的客户人员'
,
value
:
8
},
{
label
:
'搜索邮箱'
,
value
:
9
},
{
label
:
'内部成员共享'
,
value
:
10
},
{
label
:
'管理员/负责人分配'
,
value
:
11
},
{
label
:
'未知来源'
,
value
:
12
}
],
//标签类型
LABEL_OPTION
:
[
{
label
:
'企业标签'
,
value
:
'企业标签'
},
{
label
:
'自店标签'
,
value
:
'自店标签'
},
{
label
:
'系统标签'
,
value
:
'系统标签'
}
],
// 文件大小提示语
FILESIZEMSG
:
'单个文件大小不能超过10M'
,
...
...
src/config/index.js
View file @
a36156b
...
...
@@ -20,7 +20,7 @@ export const fetchConfig = function(isEnv = true) {
return
new
Http
({
request
:
{
timeout
:
3000
}
}).
get
(
'https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2'
)
//开发环境mock
//
return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/router/routes.js
View file @
a36156b
const
staticRoutes
=
Object
.
freeze
([
{
name
:
'Home'
,
path
:
'/'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/home/index.vue`
],
resolve
)
},
{
name
:
'About'
,
path
:
'/about'
,
component
:
resolve
=>
require
([
`@/views/about/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientDataOverview'
,
path
:
'/clientDataOverview/index'
,
component
:
resolve
=>
require
([
`@/views/clientDataOverview/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientDataOverview'
,
path
:
'/clientDataOverview/group/:id'
,
component
:
resolve
=>
require
([
`@/views/clientDataOverview/group.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientManage'
,
path
:
'/clientManage/index'
,
component
:
resolve
=>
require
([
`@/views/clientManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientDetail'
,
path
:
'/clientManage/clientDetail'
,
component
:
resolve
=>
require
([
`@/views/clientManage/clientDetail.vue`
],
resolve
),
meta
:
{}
},
// {
// name: 'clientDemo',
// path: "/clientManage/clientDemo",
// component: resolve => require([`@/views/clientManage/demo.vue`], resolve),
// meta: {}
// },
{
name
:
'clientGroupManage'
,
path
:
'/clientGroupManage/index'
,
component
:
resolve
=>
require
([
`@/views/clientGroupManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientGroupDetail'
,
path
:
'/clientGroupManage/clientGroupDetail'
,
component
:
resolve
=>
require
([
`@/views/clientGroupManage/clientGroupDetail.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'tagsManage'
,
path
:
'/tagsManage/index'
,
component
:
resolve
=>
require
([
`@/views/tagsManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'viewCustomers'
,
path
:
'/tagsManage/viewCustomers/:info/:type'
,
component
:
resolve
=>
require
([
`@/views/tagsManage/viewCustomers.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'expand'
,
path
:
'/expand/index'
,
component
:
resolve
=>
require
([
`@/views/expand/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'employee'
,
path
:
'/employee/index'
,
component
:
resolve
=>
require
([
`@/views/employee/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'employee'
,
path
:
'/employee/detail'
,
component
:
resolve
=>
require
([
`@/views/employee/detail.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'employee'
,
path
:
'/employee/add'
,
component
:
resolve
=>
require
([
`@/views/employee/add.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'guestGuest'
,
path
:
'/guestGroup/index'
,
component
:
resolve
=>
require
([
`@/views/guestGroup/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'guestAdd'
,
path
:
'/guestGroup/add/:id'
,
component
:
resolve
=>
require
([
`@/views/guestGroup/add.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'guestDetail'
,
path
:
'/guestGroup/detail/:id'
,
component
:
resolve
=>
require
([
`@/views/guestGroup/detail.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'crowdManage'
,
path
:
'/crowdManage/index'
,
component
:
resolve
=>
require
([
`@/views/crowdManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'crowdAdd'
,
path
:
'/crowdManage/crowdAdd'
,
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdAdd.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'crowdDetail'
,
path
:
'/crowdManage/crowdDetail:id'
,
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdDetail.vue`
],
resolve
),
meta
:
{}
}
const
staticRoutes
=
Object
.
freeze
([{
name
:
'Home'
,
path
:
'/'
,
meta
:
{},
component
:
resolve
=>
require
([
`@/views/home/index.vue`
],
resolve
)
},
{
name
:
'About'
,
path
:
'/about'
,
component
:
resolve
=>
require
([
`@/views/about/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientDataOverview'
,
path
:
"/clientDataOverview/index"
,
component
:
resolve
=>
require
([
`@/views/clientDataOverview/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientDataOverview'
,
path
:
"/clientDataOverview/group/:id"
,
component
:
resolve
=>
require
([
`@/views/clientDataOverview/group.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientManage'
,
path
:
"/clientManage/index"
,
component
:
resolve
=>
require
([
`@/views/clientManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientDetail'
,
path
:
"/clientManage/clientDetail"
,
component
:
resolve
=>
require
([
`@/views/clientManage/clientDetail.vue`
],
resolve
),
meta
:
{}
},
// {
// name: 'clientDemo',
// path: "/clientManage/clientDemo",
// component: resolve => require([`@/views/clientManage/demo.vue`], resolve),
// meta: {}
// },
{
name
:
'clientGroupManage'
,
path
:
"/clientGroupManage/index"
,
component
:
resolve
=>
require
([
`@/views/clientGroupManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'clientGroupDetail'
,
path
:
"/clientGroupManage/clientGroupDetail"
,
component
:
resolve
=>
require
([
`@/views/clientGroupManage/clientGroupDetail.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'tagsManage'
,
path
:
"/tagsManage/index"
,
component
:
resolve
=>
require
([
`@/views/tagsManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'viewCustomers'
,
path
:
"/tagsManage/viewCustomers/:info/:type"
,
component
:
resolve
=>
require
([
`@/views/tagsManage/viewCustomers.vue`
],
resolve
),
meta
:
{},
},
{
name
:
'expand'
,
path
:
"/expand/index"
,
component
:
resolve
=>
require
([
`@/views/expand/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'employee'
,
path
:
"/employee/index"
,
component
:
resolve
=>
require
([
`@/views/employee/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'employee'
,
path
:
"/employee/detail"
,
component
:
resolve
=>
require
([
`@/views/employee/detail.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'employee'
,
path
:
"/employee/add"
,
component
:
resolve
=>
require
([
`@/views/employee/add.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'guestGuest'
,
path
:
"/guestGroup/index"
,
component
:
resolve
=>
require
([
`@/views/guestGroup/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'guestAdd'
,
path
:
"/guestGroup/add/:id"
,
component
:
resolve
=>
require
([
`@/views/guestGroup/add.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'guestDetail'
,
path
:
"/guestGroup/detail/:id"
,
component
:
resolve
=>
require
([
`@/views/guestGroup/detail.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'crowdManage'
,
path
:
"/crowdManage/index"
,
component
:
resolve
=>
require
([
`@/views/crowdManage/index.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'crowdAdd'
,
path
:
"/crowdManage/crowdAdd"
,
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdAdd.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'crowdDetail'
,
path
:
"/crowdManage/crowdDetail:id"
,
component
:
resolve
=>
require
([
`@/views/crowdManage/crowdDetail.vue`
],
resolve
),
meta
:
{}
},
])
export
default
staticRoutes
// {
...
...
@@ -166,4 +165,4 @@ export default staticRoutes
// hidden: true,
// keepAlive: false,
// component: () => import("../views/clientPartGroup/crowdCircleImage.vue"),
// },
// },
\ No newline at end of file
src/styles/index.scss
View file @
a36156b
...
...
@@ -34,7 +34,7 @@ button {
// 子系统不设外边距
.scrm-sub-client-container
{
padding
:
0
20px
20px
2
0px
;
padding
:
0
20px
20px
4
0px
;
box-sizing
:
border-box
;
}
...
...
src/styles/resetelement.scss
View file @
a36156b
...
...
@@ -21,19 +21,20 @@
line-height
:
28px
;
}
/
deep
/
.el-input__inner
:focus
{
border-color
:
$btnBlue
!
important
;}
/
deep
/
.el-input__inner
:focus
{
border-color
:
$btnBlue
!
important
;
}
/
deep
/
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
$btnBlue
;
border-color
:
$btnBlue
;
}
.el-message-box
{
width
:
547px
;
height
:
310px
;
height
:
310px
;
box-sizing
:
border-box
;
padding-bottom
:
10px
;
}
.el-message-box__title
{
.el-message-box__title
{
padding-left
:
0
;
margin-bottom
:
0
;
font-size
:
20px
;
...
...
@@ -41,28 +42,42 @@
color
:
#333
;
}
.el-message-box__title
{
display
:
block
!
important
;
display
:
block
!
important
;
}
.el-message-box__headerbtn
{
display
:
block
!
important
;
color
:
#666666
;
display
:
block
!
important
;
color
:
#666666
;
}
.el-message-box__header
{
position
:
relative
;
padding
:
15px
20px
;
border-bottom
:
1px
solid
#E6E6E
6
;
padding
:
15px
20px
;
border-bottom
:
1px
solid
#e6e6e
6
;
}
.el-message-box__content
{
text-align
:
center
;
padding
:
60px
0
;
padding
:
60px
0
;
}
.el-icon-warning
{
display
:
block
!
important
;
font-size
:
33px
!
important
;
color
:
#5850FF
!
important
;
position
:relative
;
left
:
50%
;
transform
:
translateX
(
-50%
);
margin-bottom
:
12px
;
}
\ No newline at end of file
display
:
block
!
important
;
font-size
:
33px
!
important
;
color
:
#5850ff
!
important
;
position
:
relative
;
left
:
50%
;
transform
:
translateX
(
-50%
);
margin-bottom
:
12px
;
}
.el-tooltip__popper.is-dark
{
background
:
#666666
!
important
;
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0
.06
)
!
important
;
font-size
:
12px
;
font-weight
:
400
;
color
:
#ffffff
;
line-height
:
18px
;
}
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
{
border-top-color
:
#666666
!
important
;
}
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
:after
{
border-top-color
:
#666666
!
important
;
}
src/views/clientDataOverview/group.vue
View file @
a36156b
...
...
@@ -46,17 +46,18 @@
</
template
>
<
script
>
import
{
getCustomerList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
{
getCustomerList
,
getcrowdManageList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
url
from
'@/assets/empty.png'
export
default
{
name
:
'group'
,
data
()
{
return
{
getListApi
:
getCustomerList
,
getListApi
:
this
.
$route
.
params
.
crowdType
?
getcrowdManageList
:
getCustomerList
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableSearchForm
:
{},
crowdForm
:
{},
id
:
this
.
$route
.
params
.
id
?
this
.
$route
.
params
.
id
:
''
,
crowdType
:
this
.
$route
.
params
.
crowdType
?
this
.
$route
.
params
.
crowdType
:
''
,
totalCount
:
''
,
tableParams
:
{
listName
:
'data'
,
...
...
@@ -111,6 +112,7 @@ export default {
}
]
},
url
:
url
}
},
...
...
@@ -151,6 +153,7 @@ export default {
pageSize
:
10
,
pageNum
:
1
}
if
(
this
.
crowdType
)
params
.
customCrowd
=
true
customerClusterListExport
(
params
).
then
(
res
=>
{
this
.
$Utils
.
exportFn
(
res
)
})
...
...
@@ -206,6 +209,7 @@ export default {
line-height
:
20px
;
letter-spacing
:
1px
;
margin-bottom
:
10px
;
width
:
calc
(
100%
-
156px
);
}
&
-content
{
font-weight
:
400
;
...
...
src/views/clientDataOverview/index.vue
View file @
a36156b
...
...
@@ -47,7 +47,7 @@
</div>
<div
class=
"itembox"
>
<div
class=
"no-buy"
>
<div
class=
"no-buy-total item"
@
click=
"goto(1)"
>
<div
class=
"no-buy-total item"
@
click=
"goto(1)"
fn=
"人群客户列表"
mode=
"div"
>
<span>
潜在意向客户数
</span>
<span>
无购车且无其他交易行为的所有客户
</span>
<span
v-if=
"!isEmptyObj"
>
...
...
@@ -67,7 +67,7 @@
<el-divider
direction=
"vertical"
></el-divider>
<div
class=
"rightWrap"
>
<div
class=
"inCompanyWechatNum item smallWrap"
@
click=
"goto(2)"
>
<div
class=
"inCompanyWechatNum item smallWrap"
@
click=
"goto(2)"
fn=
"人群客户列表"
mode=
"div"
>
<span>
已加企微客户数
</span>
<span>
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
...
...
@@ -77,7 +77,7 @@
<!-- <i class="horizontal-line"></i> -->
</div>
<el-divider></el-divider>
<div
class=
"outCompanyWechatNum item smallWrap"
@
click=
"goto(3)"
>
<div
class=
"outCompanyWechatNum item smallWrap"
@
click=
"goto(3)"
fn=
"人群客户列表"
mode=
"div"
>
<span>
未加企微客户数
</span>
<span>
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
...
...
@@ -93,7 +93,7 @@
</div>
</div>
<div
class=
"buy"
>
<div
class=
"buy-total item"
@
click=
"goto(4)"
>
<div
class=
"buy-total item"
@
click=
"goto(4)"
fn=
"人群客户列表"
mode=
"div"
>
<!-- <span>购买(存档)客户数</span> -->
<span>
基盘客户数
</span>
<span>
有购车或其他交易行为的所有客户
</span>
...
...
@@ -113,7 +113,7 @@
</div>
<el-divider
direction=
"vertical"
></el-divider>
<div
class=
"rightWrap"
>
<div
class=
"inCompanyWechatNum item smallWrap"
@
click=
"goto(5)"
>
<div
class=
"inCompanyWechatNum item smallWrap"
@
click=
"goto(5)"
fn=
"人群客户列表"
mode=
"div"
>
<span>
已加企微客户数
</span>
<span>
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
...
...
@@ -124,7 +124,7 @@
<!-- <i class="horizontal-line"></i> -->
</div>
<el-divider></el-divider>
<div
class=
"outCompanyWechatNum item smallWrap"
@
click=
"goto(6)"
>
<div
class=
"outCompanyWechatNum item smallWrap"
@
click=
"goto(6)"
fn=
"人群客户列表"
mode=
"div"
>
<span>
未加企微客户数
</span>
<span>
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
...
...
@@ -144,7 +144,7 @@
<h3
class=
"pageSubTitle"
>
客户分群
</h3>
<div
class=
"itembox"
>
<
template
v-for=
"(item, index) in titles"
>
<div
class=
"item"
@
click=
"goto(item.id)"
:key=
"index"
>
<div
class=
"item"
@
click=
"goto(item.id)"
fn=
"人群客户列表"
mode=
"div"
:key=
"index"
>
<p>
{{
item
.
name
}}
</p>
<p>
{{
item
.
subName
}}
</p>
<p>
...
...
@@ -525,7 +525,6 @@ export default {
},
//跳转到人群客户列表
goto
(
id
)
{
console
.
log
(
this
.
userType
)
if
(
this
.
userType
==
2
)
return
this
.
$router
.
push
(
'/clientDataOverview/group/'
+
id
)
}
...
...
src/views/clientManage/clientDetail.vue
View file @
a36156b
<
template
>
<div
class=
"scrm-sub-client-container"
>
<!--
<div
class=
"header"
>
<div
class=
"userId"
>
<span>
客户ID:
{{
leftPanelInfo
.
oneId
}}
</span>
</div>
<button
class=
"backBtn"
@
click=
"goBack"
>
返回客户信息管理
</button>
</div>
-->
<div
class=
"content"
>
<div
class=
"container"
>
<div
class=
"leftWrap"
>
<div
class=
"avatorStyle"
>
<div
class=
"avator"
>
...
...
@@ -29,7 +23,7 @@
<span
class=
"ellipsis-1"
>
<!--
{{
leftPanelInfo
.
customerName
}}
-->
{{
beautySub
(
leftPanelInfo
.
customerName
)
}}
<label
class=
"pure-blue-text"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</label>
<label
class=
"pure-blue-text
font-12
"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</label>
</span>
</el-tooltip>
</p>
...
...
@@ -56,7 +50,7 @@
</p>
<p>
<span>
证件号码:
</span>
<span>
{{
leftPanelInfo
.
idCard
}}
</span>
<span
style=
"white-space:nowrap"
>
{{
leftPanelInfo
.
idCard
}}
</span>
</p>
<p>
<span>
性别:
</span>
...
...
@@ -99,7 +93,7 @@
</p>
<p>
<span>
添加时间:
</span>
<span>
{{
leftPanelInfo
.
addTime
}}
</span>
<span
style=
"white-space:nowrap"
>
{{
leftPanelInfo
.
addTime
}}
</span>
</p>
</div>
</div>
...
...
@@ -195,10 +189,14 @@
<div
v-show=
"currentIndex == 2"
class=
"clientTagsWrap"
>
<div
style=
"height: 20px"
></div>
<!-- //提示面板组件 -->
<tip-panel
panelWidth=
"666px"
panelMinHeight=
"45px"
:panelContent=
"panelContent"
></tip-panel>
<tip-panel
class=
"mg2"
panelMinHeight=
"45px"
:panelContent=
"panelContent"
></tip-panel>
<!-- v-if="userType == 2" -->
<el-button
type=
"primary"
class=
"addTagBtn"
size=
"small"
@
click=
"btnClick('create')"
v-if=
"userType == 2"
>
设置标签
</el-button>
<GLTable
ref=
"clientTagsListRef"
:hasNum=
"false"
:noDataImg=
"url"
noDataText=
"客户暂无已添加的标签"
:tableData=
"clientTagsList"
:hasPage=
"false"
:tableParams=
"tagsParams"
:headerStyle=
"{ height: '54px' }"
>
<GLTable
class=
"table"
ref=
"clientTagsListRef"
:hasNum=
"false"
:noDataImg=
"url"
noDataText=
"客户暂无已添加的标签"
:tableData=
"clientTagsList"
:hasPage=
"false"
:tableParams=
"tagsParams"
:headerStyle=
"{ height: '54px' }"
>
<span
slot=
"labelGroupInfo"
slot-scope=
"scope"
>
<span>
{{ scope.scope.labelGroupInfo.labelGroupName }}
</span>
</span>
...
...
@@ -225,6 +223,11 @@
</div>
</div>
</div>
<div
class=
"footer-panel"
>
<div>
<el-button
type=
"primary"
@
click=
"goBack"
>
返回
</el-button>
</div>
</div>
<basic-dialog
class=
"tags"
:title=
"tagsDialogTitle"
:width=
"'712px'"
:isDestroyClose=
"true"
:btnLoading=
"sloading"
:isShowThirdBtn=
"true"
:isShowCloseBtn=
"true"
@
btnEvent=
"goNewTag"
:isVisible=
"tagsVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<slot>
<p
class=
"hint-text color-6"
>
...
...
@@ -417,7 +420,8 @@ export default {
{
label
:
'跟进员工'
,
prop
:
'staffName'
,
align
:
'left'
align
:
'left'
,
minWidth
:
100
},
{
label
:
'所属部门'
,
...
...
@@ -557,7 +561,6 @@ export default {
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
console
.
log
(
'欠款'
,
this
.
$globalState
.
session
)
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
...
...
@@ -650,7 +653,6 @@ export default {
getSingleClientTag
(
param
)
.
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
console
.
log
(
res
,
'kkk'
)
if
(
!
res
.
userLabelUnitList
)
{
return
}
...
...
@@ -685,10 +687,20 @@ export default {
this
.
employTableList
=
res
.
staffFollows
||
[]
this
.
clientGroupTableList
=
res
.
customerBases
||
[]
this
.
tagsList
=
res
.
labels
||
[]
this
.
labelIdList
=
(
res
.
labels
||
[]).
map
(
item
=>
item
.
labelId
)
this
.
labelIdList
=
this
.
handleLabelId
(
res
.
labelInfos
)
this
.
clientTagsList
=
res
.
labelInfos
||
[]
this
.
nickNameList
=
res
.
nickNameList
||
[]
},
handleLabelId
(
data
)
{
let
array
=
[]
data
&&
data
.
forEach
(
label
=>
{
label
.
labelInfoList
.
forEach
(
info
=>
{
array
.
push
(
info
.
labelId
)
})
})
return
array
},
goNewTag
()
{
this
.
$router
.
push
({
path
:
'/tagsManage/index'
})
},
...
...
@@ -782,7 +794,6 @@ export default {
}
addSingleClientTag
(
param
)
.
then
(
res
=>
{
console
.
log
(
param
)
if
(
res
.
data
.
code
==
0
)
{
this
.
sloading
=
false
this
.
$message
.
success
(
'设置成功'
)
...
...
@@ -809,6 +820,7 @@ export default {
// }
// console.log('进来')
this
.
tagsVisible
=
!
this
.
tagsVisible
this
.
allTagsList
=
[]
},
checkNewTag
(
checked
,
j
,
arr
,
original
=
false
)
{
//打开弹窗就是选中的,不许去选中,不是一开始就选中的,可以去选中
...
...
@@ -838,8 +850,6 @@ export default {
}
})
console
.
log
(
'选中'
,
_arr
)
this
.
submitTagsList
=
_arr
},
choose
(
index1
,
index2
,
index3
)
{
...
...
@@ -890,11 +900,20 @@ export default {
}
.WechatName
{
display
:
inline-block
;
//
height
:
20px
;
font-size
:
14px
;
font-weight
:
500
;
color
:
#666666
;
line-height
:
20px
;
margin-left
:
20px
;
height
:
20px
;
min-width
:
98px
;
text-align
:
right
;
//
font-weight
:
500
;
//
color
:
#666666
;
//
line-height
:
20px
;
//
margin-left
:
20px
;
//
height
:
20px
;
//
min-width
:
98px
;
}
}
.overHidden
{
...
...
@@ -903,44 +922,17 @@ export default {
text-overflow
:
ellipsis
;
}
.scrm-sub-client-container
{
.header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
//
width
:
1160px
;
height
:
72px
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
.userId
{
margin-left
:
26px
;
height
:
20px
;
font-size
:
20px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
letter-spacing
:
1px
;
}
.backBtn
{
margin-right
:
20px
;
height
:
32px
;
font-size
:
14px
;
background
:
$
btnBlue
;
color
:
#fff
;
border-radius
:
4px
;
padding
:
0
20px
;
border
:
none
;
&:hover
{
background-color
:
$
lightBtnBlue
;
}
}
}
.content
{
.container
{
display
:
flex
;
width
:
100%
;
margin-top
:
20px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
min-height
:
calc
(
100vh
-
194px
);
overflow-y
:
auto
;
margin-bottom
:
78px
;
.leftWrap
{
width
:
275px
;
min-height
:
calc
(
100vh
-
92
px
);
min-height
:
calc
(
100vh
-
170
px
);
background-color
:
#fff
;
box-sizing
:
border-box
;
//
padding
:
0
20px
;
...
...
@@ -996,7 +988,7 @@ export default {
font-weight
:
500
;
color
:
#666666
;
line-height
:
20px
;
min-width
:
9
0
px
;
min-width
:
9
8
px
;
text-align
:
right
;
}
span
:nth-child
(
2
)
{
...
...
@@ -1011,7 +1003,8 @@ export default {
}
}
.rightWrap
{
margin-left
:
12px
;
height
:
auto
;
margin-left
:
10px
;
width
:
calc
(
100%
-
287px
);
box-sizing
:
border-box
;
background-color
:
#fff
;
...
...
@@ -1052,6 +1045,7 @@ export default {
}
.addTagBtn
{
margin-bottom
:
10px
;
margin-left
:
20px
;
}
//
处理客户标签的样式
.clientTagsWrap
{
...
...
@@ -1153,6 +1147,24 @@ export default {
}
}
}
.footer-panel
{
position
:
fixed
;
bottom
:
0px
;
height
:
78px
;
left
:
220px
;
width
:
100%
;
background
:
#ffffff
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
z-index
:
999
;
div
{
display
:
inline-block
;
position
:
relative
;
transform
:
translate
(
-50%
,
-50%
);
left
:
50%
;
top
:
50%
;
margin-left
:
-110px
;
}
}
.tags
{
/deep/.app-dialog
{
.el-dialog__body
{
...
...
@@ -1252,11 +1264,16 @@ export default {
}
.table
{
margin-bottom
:
10px
;
padding
:
0
20px
;
}
}
.table
/
deep
/
.line-ellipsis
{
white-space
:
nowrap
;
overflow
:
visible
;
.table
{
padding
:
0
20px
;
/deep/
.line-ellipsis
{
white-space
:
nowrap
;
overflow
:
visible
;
}
}
}
</
style
>
src/views/clientManage/index.vue
View file @
a36156b
...
...
@@ -3,7 +3,7 @@
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<div
class=
"pageContent"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
handleExport=
"handleExport"
@
syncClick=
"syncClick"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"false"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
handleExport=
"handleExport"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -16,12 +16,12 @@
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left
;
"
>
{{
scope
.
scope
.
customerName
}}
</span>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</el-tooltip>
<!--
<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
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
0
?
'未知'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
scope
.
scope
.
customerSex
==
2
?
'女'
:
''
}}
</span>
...
...
@@ -36,9 +36,9 @@
</el-tooltip>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 2 && idx == 2"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</div>
<div
class=
"entmicro-hover"
>
<div
class=
"entmicro-hover"
>
<el-tag
type=
"info"
style=
"margin-right: 10px; margin-bottom: 10px"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
style=
"color: #75acff"
></i>
<!--
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
-->
...
...
@@ -219,75 +219,75 @@ export default {
{
label
:
'客户ID'
,
prop
:
'oneId'
,
minWidth
:
150
,
minWidth
:
150
//align: 'left'
}
,
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
minWidth
:
130
,
minWidth
:
130
//align: 'left'
}
,
{
label
:
'企微名称'
,
prop
:
'nickNameList'
,
addHtml
:
'nickNameList'
,
minWidth
:
170
,
minWidth
:
170
//align: 'left'
}
,
{
label
:
'联系电话'
,
prop
:
'customerPhone'
,
addHtml
:
'customerPhone'
,
minWidth
:
110
,
minWidth
:
110
//align: 'left'
}
,
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
,
minWidth
:
80
,
minWidth
:
80
//align: 'left'
}
,
{
label
:
'跟进员工'
,
prop
:
'followStaff'
,
addHtml
:
'followStaff'
,
minWidth
:
120
,
minWidth
:
120
//align: 'left'
}
,
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'isJoin'
,
addHtml
:
'isJoin'
,
width
:
100
,
width
:
100
//align: 'left'
}
,
{
label
:
'当前状态'
,
prop
:
'status'
,
addHtml
:
'status'
,
minWidth
:
100
,
minWidth
:
100
//align: 'left'
}
,
{
label
:
'所属渠道'
,
prop
:
'sourceChannel'
,
width
:
150
,
width
:
150
//align: 'left'
}
,
{
label
:
'添加来源'
,
prop
:
'addWay'
,
addHtml
:
'addWay'
,
minWidth
:
100
,
minWidth
:
100
//align: 'left'
}
,
{
label
:
'添加时间'
,
prop
:
'addTime'
,
width
:
150
,
width
:
150
//align: 'left'
}
,
{
...
...
src/views/crowdManage/crowdAdd.vue
View file @
a36156b
...
...
@@ -114,8 +114,8 @@
</div>
<div
class=
"footer-panel"
>
<div>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
确定
</el-button>
<el-button
class=
"cancel-button"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
保存
</el-button>
</div>
</div>
<el-dialog
title=
"人群规则说明"
class=
"crowd-dialog"
width=
"720px"
:before-close=
"handleClose"
:visible
.
sync=
"dialogRuleVisible"
:show-close=
"isShowCloseBtn"
>
...
...
@@ -243,7 +243,7 @@ export default {
this
.
getLabelData
()
},
watch
:
{
selectedArray
:
function
()
{
selectedArray
:
function
()
{
this
.
crowdCount
=
''
//初始化查看预估人数
if
(
this
.
selectedArray
.
length
>
0
)
{
this
.
$nextTick
(()
=>
{
...
...
@@ -615,7 +615,7 @@ export default {
}
return
len
},
cutMaxCharStr
:
function
(
e
,
unit
)
{
cutMaxCharStr
:
function
(
e
,
unit
)
{
//e为传入字符串
let
str
=
e
var
len
=
0
...
...
@@ -666,7 +666,7 @@ export default {
.container
{
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
height
:
calc
(
100vh
-
1
50
px
);
height
:
calc
(
100vh
-
1
64
px
);
overflow-y
:
auto
;
//
padding
:
20px
;
...
...
@@ -755,6 +755,10 @@ export default {
}
.search-tag-form
{
position
:
relative
;
display
:
flex
;
/deep/
.el-form-item
{
display
:
flex
;
}
}
.select-label-wrap
{
margin-bottom
:
20px
;
...
...
@@ -775,6 +779,7 @@ export default {
display
:
flex
;
align-items
:
center
;
flex-wrap
:
nowrap
;
.label-group-name
{
max-width
:
533px
;
padding-top
:
3px
;
...
...
@@ -808,6 +813,7 @@ export default {
position
:
absolute
;
right
:
8px
;
margin-left
:
10px
;
top
:
6px
;
}
}
}
...
...
@@ -884,21 +890,22 @@ export default {
//
justify-content
:
center
;
position
:
fixed
;
bottom
:
0px
;
height
:
64
px
;
height
:
78
px
;
left
:
220px
;
width
:
100%
;
background
:
#ffffff
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
z-index
:
999
;
.
el-button
:
nth-child
(
2
)
{
margin-left
:
20px
;
}
div
{
width
:
170px
;
display
:
inline-block
;
position
:
relative
;
transform
:
translate
Y
(
-50%
);
transform
:
translate
(
-50%
,
-50%
);
left
:
50%
;
top
:
50%
;
margin-left
:
-220px
;
.cancel-button
{
margin-left
:
20px
;
}
margin-left
:
-110px
;
}
}
.label-text
{
...
...
@@ -1020,4 +1027,8 @@ export default {
margin-top
:
0
;
}
}
/
deep
/
.el-tooltip__popper.is-dark
{
background
:
#666666
;
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0.06
);
}
</
style
>
src/views/crowdManage/crowdDetail.vue
View file @
a36156b
...
...
@@ -46,7 +46,7 @@
</div>
<div
class=
"footer-panel"
>
<div>
<el-button
class=
"cancel-button
"
@
click=
"$router.go(-1)"
>
返回
</el-button>
<el-button
type=
"primary
"
@
click=
"$router.go(-1)"
>
返回
</el-button>
</div>
</div>
<el-dialog
title=
"人群规则说明"
class=
"crowd-dialog"
width=
"720px"
:before-close=
"handleClose"
:visible
.
sync=
"dialogRuleVisible"
:show-close=
"isShowCloseBtn"
>
...
...
@@ -195,7 +195,7 @@ export default {
.container
{
background
:
#ffffff
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
height
:
calc
(
100vh
-
1
50
px
);
height
:
calc
(
100vh
-
1
64
px
);
overflow-y
:
auto
;
//
padding
:
20px
;
...
...
@@ -260,27 +260,26 @@ export default {
}
}
}
}
}
.footer-panel
{
position
:
fixed
;
bottom
:
0px
;
height
:
64
px
;
left
:
220px
;
width
:
100%
;
background
:
#ffffff
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
div
{
width
:
80px
;
position
:
relative
;
transform
:
translateY
(
-50%
)
;
left
:
50%
;
top
:
50%
;
margin-left
:
-220px
;
}
}
.footer-panel
{
position
:
fixed
;
bottom
:
0px
;
height
:
78
px
;
left
:
220px
;
width
:
100%
;
background
:
#ffffff
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
z-index
:
999
;
div
{
display
:
inline-block
;
position
:
relative
;
transform
:
translate
(
-50%
,
-50%
)
;
left
:
50%
;
top
:
50%
;
margin-left
:
-110px
;
}
}
.crowd-dialog
{
/deep/.el-dialog__header
{
padding
:
15px
20px
;
...
...
src/views/crowdManage/index.vue
View file @
a36156b
...
...
@@ -3,7 +3,7 @@
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick()"
>
<el-tab-pane
label=
"推荐人群"
name=
"first"
></el-tab-pane>
<el-tab-pane
label=
"自定义人群"
name=
"second"
>
<GLButton
class=
"addBtn"
fn=
"新建人群"
v-if=
"
admin
"
@
click=
"addClick"
>
<GLButton
class=
"addBtn"
fn=
"新建人群"
v-if=
"
userType == 1
"
@
click=
"addClick"
>
<i
class=
"el-icon-plus"
></i>
新建人群
</GLButton>
...
...
@@ -16,7 +16,13 @@
<el-button
class=
"searchBtn"
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</search-form>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable
class=
"crowdTable"
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span
slot=
"crowdName"
slot-scope=
"scope"
>
<span
class=
"line-ellipsis"
>
{{
scope
.
scope
.
crowdName
.
slice
(
0
,
24
)
}}
</span>
</span>
<span
slot=
"crowdDesc"
slot-scope=
"scope"
>
<span
class=
"line-ellipsis"
>
{{
scope
.
scope
.
crowdDesc
.
slice
(
0
,
24
)
}}
</span>
</span>
<template
slot=
"xxx"
slot-scope=
"scope"
>
<!--
<span
@
click=
"btnClick('detail', scope.scope)"
class=
"blue-text"
>
查看详情
</span>
-->
<GLButton
type=
"text"
@
click=
"btnClick('detail', scope.scope)"
class=
"blue-text"
fn=
"查看详情"
>
查看详情
</GLButton>
...
...
@@ -47,7 +53,7 @@ export default {
type
:
'input'
,
inputType
:
'text'
,
prop
:
'req.keyword'
,
label
:
'人群名称'
,
label
:
'人群名称
:
'
,
placeholder
:
'请输入人群名称'
,
clearable
:
true
}
...
...
@@ -59,14 +65,16 @@ export default {
{
label
:
'人群名称'
,
prop
:
'crowdName'
,
//
addHtml: 'crowdName',
addHtml
:
'crowdName'
,
align
:
'left'
// width: 431
},
{
label
:
'人群描述'
,
prop
:
'crowdDesc'
,
addHtml
:
'crowdDesc'
,
align
:
'left'
// width:
180
// width:
431
},
{
label
:
'人数'
,
...
...
@@ -103,22 +111,21 @@ export default {
//没数据的时候要算高度
setTimeout
(()
=>
{
if
(
!
this
.
$refs
.
crowdManage
.
data
.
length
)
{
this
.
loading
=
true
this
.
$refs
.
crowdManage
.
setTableHeightFun
()
this
.
loading
=
false
}
//
if (!this.$refs.crowdManage.data.length) {
this
.
loading
=
true
this
.
$refs
.
crowdManage
.
setTableHeightFun
()
this
.
loading
=
false
//
}
},
200
)
},
methods
:
{
btnClick
(
type
,
data
)
{
console
.
log
(
data
)
if
(
type
==
'detail'
)
{
console
.
log
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
`
)
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
`
)
}
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
()
{
...
...
@@ -130,12 +137,9 @@ export default {
handleClick
()
{
this
.
searchForm
=
{
'req.keyword'
:
''
}
this
.
searchTable
()
// setTimeout(() =>{
// if(this.$refs.crowdManage.data.length == 0){
// this.$refs.crowdManage.setTableHeightFun()
// }
// this.loading =false
// },200)
setTimeout
(()
=>
{
this
.
$refs
.
crowdManage
.
setTableHeightFun
()
},
200
)
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
...
...
@@ -154,6 +158,15 @@ export default {
// 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
>
...
...
@@ -193,9 +206,29 @@ export default {
margin-left
:
10px
;
}
.scrm-sub-client-container
{
/deep/.search-form
.el-form-item__content
{
width
:
auto
;
.pageContent
{
/deep/.search-form
{
.itemWidth
{
display
:
flex
;
.el-form-item
{
display
:
flex
;
}
}
.el-form-item__content
{
width
:
auto
;
display
:
inline-block
;
margin-left
:
0px
!important
;
.el-input
{
width
:
415px
;
.el-input__inner
{
width
:
415px
;
}
}
}
}
}
.pageContent
{
padding
:
6px
20px
30px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
...
...
@@ -204,10 +237,10 @@ export default {
margin-left
:
10px
;
}
.searchTop
{
/deep/
.
el-form-item
:
nth-child
(
2
)
{
position
:
static
!important
;
.el-form-item__content{
margin-left
:
15px
!important
;
/deep/
.
el-form-item
:
nth-child
(
2
)
{
position
:
static
!important
;
.el-form-item__content
{
margin-left
:
15px
!important
;
}
}
}
...
...
@@ -215,5 +248,16 @@ export default {
position
:
relative
;
}
}
.crowdTable
{
padding
:
0
20px
;
/deep/
.line-ellipsis
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
width
:
20vw
;
display
:
block
;
}
}
}
</
style
>
src/views/tagsManage/index.vue
View file @
a36156b
...
...
@@ -47,7 +47,7 @@
<!-- :class="[expande ? 'expande' : 'close']" -->
<div
id=
"allTagsWrap"
class=
"allTagsWrap"
>
<span
v-for=
"(item, index) in showTagArray(scope.scope.labelList)"
:key=
"index"
class=
"ellipsis-1 tag-box-wrap"
>
<span
v-for=
"(item, index) in showTagArray(scope.scope.labelList)"
:key=
"index"
class=
"ellipsis-1 tag-box-wrap"
>
<el-tooltip
class=
"item"
:content=
"item.name"
placement=
"top"
>
<span>
{{ item.name }}
</span>
</el-tooltip>
...
...
@@ -67,8 +67,8 @@
<
template
slot=
"xxx"
slot-scope=
"scope"
>
<!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑-->
<!-- v-if="scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)" -->
<span
@
click=
"btnClick('edit', scope.scope)"
v-if=
"scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)"
class=
"blue-text"
>
编辑标签组
</span>
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"查看客户"
v-if=
"userType
!== 2"
@
click=
"toViewCustomer(scope.scope)"
>
查看客户
</GLButton>
<span
@
click=
"btnClick('edit', scope.scope)"
v-if=
"scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)"
class=
"blue-text"
>
编辑标签组
</span>
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"查看客户"
v-if=
"userType
!==2"
@
click=
"toViewCustomer(scope.scope)"
>
查看客户
</GLButton>
</
template
>
</GLTable>
</div>
...
...
@@ -200,20 +200,7 @@ export default {
prop
:
'labelTreeReq.labelTypesStr'
,
label
:
'标签组'
,
placeholder
:
'请选择标签组类型'
,
options
:
[
{
label
:
'企业标签'
,
value
:
'企业标签'
},
{
label
:
'自店标签'
,
value
:
'自店标签'
},
{
label
:
'系统标签'
,
value
:
'系统标签'
}
]
options
:
this
.
$Constants
.
LABEL_OPTION
},
{
type
:
'input'
,
...
...
@@ -233,7 +220,7 @@ export default {
label
:
'标签组'
,
prop
:
'labelGroup'
,
addHtml
:
'labelGroup'
,
width
:
230
width
:
230
,
},
{
label
:
'标签组类型'
,
...
...
@@ -252,7 +239,7 @@ export default {
fixed
:
'right'
,
addHtml
:
'xxx'
,
width
:
180
}
}
]
// tableOption: {
// width: 120
...
...
@@ -276,7 +263,7 @@ export default {
// maxlength: 30,
// showWordLimit: true,
disabled
:
false
,
clickFunc
:
this
.
watchInput
clickFunc
:
this
.
watchInput
},
{
label
:
'标签组类型'
,
...
...
@@ -295,7 +282,7 @@ export default {
],
tagRules
:
{
tagsName
:
[
{
required
:
true
,
message
:
'请输入名称'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入名称'
,
trigger
:
'blur'
}
,
// {
// validator: checkName,
// trigger: 'change'
...
...
@@ -373,17 +360,17 @@ export default {
// toViewCustomer(info) {
// this.$router.push('/tagsManage/viewCustomers')
// },
toViewCustomer
(
info
)
{
console
.
log
(
info
)
const
id
=
info
.
labelGroup
.
id
const
type
=
info
.
labelType
this
.
$router
.
push
({
// path:`/tagsManage/viewCustomers/530`
path
:
`/tagsManage/viewCustomers/
${
id
}
/
${
type
}
`
})
toViewCustomer
(
info
)
{
console
.
log
(
info
)
const
id
=
info
.
labelGroup
.
id
const
type
=
info
.
labelType
this
.
$router
.
push
({
// path:`/tagsManage/viewCustomers/530`
path
:
`/tagsManage/viewCustomers/
${
id
}
/
${
type
}
`
})
},
watchInput
()
{
console
.
log
(
'点击标签组名称输入框'
)
watchInput
(){
console
.
log
(
'点击标签组名称输入框'
)
},
showTagArray
(
list
)
{
if
(
list
.
length
==
0
)
{
...
...
@@ -393,13 +380,14 @@ export default {
return
list
.
slice
(
0
,
9
)
},
checkInputContent
(
e
)
{
//确保每个输入框的内容不和已存在的编辑标签相同
//确保每个输入框的内容不和已存在的编辑标签相同
let
isHasSameTag
=
this
.
editTagList
.
some
(
ele
=>
ele
.
name
==
e
)
if
(
isHasSameTag
)
{
this
.
$message
.
error
(
'不允许输入已存在的标签'
)
return
e
}
return
this
.
$Utils
.
cutMaxCharStr
(
e
)
return
this
.
$Utils
.
cutMaxCharStr
(
e
)
},
isShowEditBtn
(
row
)
{
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
...
...
@@ -709,7 +697,7 @@ export default {
i
.
inputVisible
=
false
}
})
return
this
.
$Utils
.
cutMaxCharStr
(
inputValue
)
return
this
.
$Utils
.
cutMaxCharStr
(
inputValue
)
},
handleSelect
(
value
)
{
console
.
log
(
'值内容'
,
value
)
...
...
@@ -730,7 +718,7 @@ export default {
<
style
lang=
"scss"
scoped
>
@import
'@/styles/variables.scss'
;
@import
'@/styles/resetelement.scss'
;
.leftDistance
{
.leftDistance
{
margin-left
:
10px
;
}
.scrm-sub-client-container
{
...
...
src/views/tagsManage/viewCustomers.vue
View file @
a36156b
...
...
@@ -29,7 +29,7 @@
</div>
</div>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<div>
<div
class=
"clientNumExp"
>
<div
class=
"clientNum"
>
...
...
@@ -41,30 +41,30 @@
<div
class=
"clientNumText"
>
{{
tableTotal
}}
个
</div>
</div>
</div>
<el-button
class=
"export"
size=
"small"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
class=
"export"
size=
"small"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"viewCustomers"
:layout=
"layout"
:hasNum=
"true"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:noDataImg=
"url"
:pageConf=
"pageConf"
:searchForm=
"searchFormTable"
@
refreshTable=
"getCustomersListData"
:tableParams=
"tableParams"
>
<span
slot=
"qiweimingcheng"
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
.
carVin
)
}}
</span>
</span>
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-if=
"idx == 0"
>
<span>
{{
list
.
nickName
}}
</span>
<span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}}
</span>
</div>
<span
v-if=
"idx == 1"
>
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
v-for=
"(i, index) in scope.scope.nickNameList"
style=
"padding-bottom:3px !important"
:key=
"index"
>
<span>
{{
i
.
nickName
}}
</span>
<span
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
i
.
corpName
}}
</span>
</div>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
</el-popover>
</span>
<!-- 企微名称 -->
<div
slot=
"nickNameList"
slot-scope=
"scope"
class=
"expandImg"
>
<div
v-for=
"(list, idx) in scope.scope.nickNameList"
:key=
"idx"
>
<div
v-if=
"idx == 0"
>
<span>
{{
list
.
nickName
}}
</span>
<span
class=
"smallFontSize"
:class=
"[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
list
.
corpName
}}
</span>
</div>
<span
v-if=
"idx == 1"
>
<el-popover
placement=
"right-start"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<div
v-for=
"(i, index) in scope.scope.nickNameList"
style=
"padding-bottom:3px !important"
:key=
"index"
>
<span>
{{
i
.
nickName
}}
</span>
<span
style=
"height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px"
:class=
"[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']"
>
@
{{
i
.
corpName
}}
</span>
</div>
<img
class=
"imgEll"
src=
"@/assets/tagsManage/ellipsis.png"
alt=
""
slot=
"reference"
/>
</el-popover>
</span>
</div>
</div>
<span
slot=
"carVin"
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
.
carVin
)
}}
</span>
</span>
...
...
@@ -332,7 +332,7 @@ export default {
}
},
computed
:
{
items
:
function
()
{
items
:
function
()
{
var
_search
=
this
.
searchLabel
const
labelList
=
this
.
labelList
.
filter
(
item
=>
item
.
labelName
.
indexOf
(
_search
)
>
-
1
)
return
labelList
...
...
@@ -351,17 +351,18 @@ export default {
pageSize
:
this
.
$refs
.
viewCustomers
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
viewCustomers
.
page
.
pageNum
}
this
.
exportParams
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
allListParams
))
}
this
.
loading2
=
true
this
.
exportParams
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
allListParams
))
}
this
.
loading2
=
true
;
getCustomersList
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
data
this
.
tableTotal
=
res
.
count
if
(
res
.
data
.
length
==
0
)
{
this
.
$refs
.
viewCustomers
.
setTableHeightFun
()
}
setTimeout
(()
=>
{
this
.
loading2
=
false
},
300
)
setTimeout
(()
=>
{
this
.
loading2
=
false
;
},
300
)
})
},
//获取标签组
...
...
@@ -527,7 +528,7 @@ export default {
}
.imgEll
{
margin-left
:
6.5px
;
cursor
:
pointer
;
cursor
:
pointer
;
//
margin-bottom
:
3px
;
}
}
...
...
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