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 273d432a
authored
Feb 23, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.2.0' of
http://192.168.3.233:8090/saas/scrm-micro-custom
into v1.2.0
2 parents
4299083d
650f1448
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
144 deletions
src/views/clientDataOverview/group.vue
src/views/clientManage/clientDetail.vue
src/views/clientDataOverview/group.vue
View file @
273d432
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"head-container"
>
<div
class=
"head-container"
>
<div
class=
"head-container-title color-3 font-20"
>
人群名称
</div>
<div
class=
"head-container-title color-3 font-20"
>
人群名称
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
describe
}}
</div>
<div
class=
"head-container-content color-6 font-14"
>
{{
describe
}}
</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>
<div
class=
"main-container"
>
<div
class=
"main-container"
>
...
@@ -14,17 +14,14 @@
...
@@ -14,17 +14,14 @@
</div>
</div>
<div
class=
"export font-14 color-6"
@
click=
"handleExport()"
>
导出
</div>
<div
class=
"export font-14 color-6"
@
click=
"handleExport()"
>
导出
</div>
</div>
</div>
<GLTable
ref=
"groupRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:
pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchF
n"
>
<GLTable
ref=
"groupRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:
noDataImg=
"url"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFu
n"
>
<span
slot=
"customerN
ickN
ame"
class=
"flex-center"
slot-scope=
"scope"
>
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerN
ickN
ame"
placement=
"top"
>
<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
.
customerN
ickN
ame
}}
</span>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</el-tooltip>
</el-tooltip>
<span
:class=
"[scope.scope.type == 1 ? 'pure-blue-text' : '', scope.scope.type == 2 ? 'pure-yello-text' : '']"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
<span
:class=
"[scope.scope.type == 1 ? 'pure-blue-text' : '', scope.scope.type == 2 ? 'pure-yello-text' : '']"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
</span>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<GLButton
type=
"text"
@
click=
"handleDetail(scope.scope)"
fn=
"魔方导入结果"
>
详情
</GLButton>
</div>
</GLTable>
</GLTable>
</div>
</div>
</div>
</div>
...
@@ -32,6 +29,7 @@
...
@@ -32,6 +29,7 @@
<
script
>
<
script
>
import
{
getCustomerList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
{
getCustomerList
,
customerClusterListExport
}
from
'@/api/modules/clientDataOverview'
import
url
from
'@/assets/empty.png'
export
default
{
export
default
{
name
:
'group'
,
name
:
'group'
,
data
()
{
data
()
{
...
@@ -40,63 +38,54 @@ export default {
...
@@ -40,63 +38,54 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableSearchForm
:
{},
tableSearchForm
:
{},
id
:
this
.
$route
.
params
.
id
?
this
.
$route
.
params
.
id
:
''
,
id
:
this
.
$route
.
params
.
id
?
this
.
$route
.
params
.
id
:
''
,
totalCount
:
0
,
totalCount
:
''
,
tableParams
:
{
tableParams
:
{
listName
:
'data'
,
listName
:
'data'
,
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'客户
姓名
'
,
label
:
'客户
名称
'
,
prop
:
'customerName'
,
prop
:
'customerName'
,
minWidth
:
100
addHtml
:
'customerName'
,
},
minWidth
:
'120'
{
label
:
'昵称'
,
prop
:
'customerNickName'
,
minWidth
:
100
,
addHtml
:
'customerNickName'
},
},
{
{
label
:
'手机号'
,
label
:
'手机号'
,
prop
:
'customerPhone'
,
prop
:
'customerPhone'
,
minWidth
:
110
minWidth
:
'110'
},
},
{
{
label
:
'车牌号'
,
label
:
'车牌号'
,
prop
:
'carNumber'
,
prop
:
'carNumber'
width
:
100
},
},
{
{
label
:
'车架号(后6位)'
,
label
:
'车架号(后6位)'
,
prop
:
'carVin'
,
prop
:
'carVin'
,
// addHtml: 'standNo',
minWidth
:
'110'
minWidth
:
120
},
},
{
{
label
:
'车系'
,
label
:
'车系'
,
prop
:
'audi'
,
prop
:
'audi'
,
width
:
160
,
line
:
2
line
:
2
},
},
{
{
label
:
'跟进员工'
,
label
:
'跟进员工'
,
prop
:
'followStaff'
,
prop
:
'followStaff'
,
// addHtml: 'followStaff',
// addHtml: 'followStaff',
minWidth
:
1
2
0
minWidth
:
1
4
0
},
},
{
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'isJoinName'
,
prop
:
'isJoinName'
width
:
100
},
},
{
{
label
:
'添加时间'
,
label
:
'添加时间'
,
prop
:
'addTime'
,
prop
:
'addTime'
width
:
98
}
}
]
]
},
},
describeData
:
[
'潜在意向客户'
,
'潜在意向客户,且已加企微客户'
,
'潜在意向客户,且未加企微客户'
,
'基盘客户'
,
'基盘客户,且已加企微客户'
,
'基盘客户,且未加企微客户'
,
'新车客户'
,
'新车待续保客户'
,
'新车待首保客户'
,
'沉默客户'
]
url
:
url
,
describeData
:
[
'无购车且无其他交易行为的所有客户'
,
'在潜在意向客户中,已加企微的客户'
,
'在潜在意向客户中,未加企微的客户'
,
'有购车或其他交易行为的所有客户'
,
'在基盘客户中,已加企微的客户'
,
'在基盘客户中,未加企微的客户'
,
'购车时间3个月的客户'
,
'近一个月内车险即将到期的客户'
,
'购车时间5~7个月内,且无保养记录的客户'
,
'超过180天未到店的客户'
]
}
}
},
},
created
()
{
created
()
{
...
@@ -114,24 +103,12 @@ export default {
...
@@ -114,24 +103,12 @@ export default {
this
.
tableSearchForm
=
{
this
.
tableSearchForm
=
{
crowdId
:
id
crowdId
:
id
}
}
this
.
getTotalCount
()
// this.getTotalCount()
},
//获取全部客户数
getTotalCount
()
{
getCustomerList
({
...
this
.
tableSearchForm
,
pageSize
:
10
,
pageNum
:
1
}).
then
(
res
=>
{
// console.log('res', res)
this
.
totalCount
=
res
.
count
})
},
},
//导出
//导出
handleExport
()
{
handleExport
()
{
var
params
=
{
var
params
=
{
tagLists
:
[{
groupId
:
`
${
this
.
id
}
`
}]
,
crowdId
:
this
.
id
,
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
pageNum
:
1
}
}
...
@@ -139,6 +116,10 @@ export default {
...
@@ -139,6 +116,10 @@ export default {
this
.
$Utils
.
exportFn
(
res
)
this
.
$Utils
.
exportFn
(
res
)
})
})
},
},
setTableFinishFun
()
{
this
.
totalCount
=
this
.
$refs
.
groupRef
.
total
this
.
$refs
.
groupRef
.
data
.
length
?
(
this
.
$refs
.
groupRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
groupRef
.
setTableHeightFun
()
},
goBack
()
{
goBack
()
{
this
.
$router
.
replace
({
path
:
'/clientDataOverview/index'
})
this
.
$router
.
replace
({
path
:
'/clientDataOverview/index'
})
}
}
...
@@ -169,13 +150,6 @@ export default {
...
@@ -169,13 +150,6 @@ export default {
line-height
:
20px
;
line-height
:
20px
;
width
:
calc
(
100%
-
156px
);
width
:
calc
(
100%
-
156px
);
}
}
.reminder
{
position
:
absolute
;
font-weight
:
400
;
line-height
:
20px
;
right
:
20px
;
top
:
20px
;
}
.back
{
.back
{
font-weight
:
400
;
font-weight
:
400
;
line-height
:
22px
;
line-height
:
22px
;
...
@@ -184,8 +158,9 @@ export default {
...
@@ -184,8 +158,9 @@ export default {
border
:
1px
solid
$
btnBlue
;
border
:
1px
solid
$
btnBlue
;
position
:
absolute
;
position
:
absolute
;
right
:
20px
;
right
:
20px
;
bottom
:
20px
;
top
:
20px
;
color
:
$
btnBlue
;
color
:
$
btnBlue
;
cursor
:
pointer
;
}
}
}
}
.main-container
{
.main-container
{
...
@@ -215,6 +190,7 @@ export default {
...
@@ -215,6 +190,7 @@ export default {
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
rgba
(
105
,
105
,
105
,
0.3
);
border
:
1px
solid
rgba
(
105
,
105
,
105
,
0.3
);
cursor
:
pointer
;
}
}
}
}
}
}
...
...
src/views/clientManage/clientDetail.vue
View file @
273d432
...
@@ -160,8 +160,8 @@
...
@@ -160,8 +160,8 @@
</div>
</div>
<basic-dialog
class=
"tags"
:title=
"tagsDialogTitle"
:width=
"'712px'"
:btnLoading=
"sloading"
:isShowThirdBtn=
"true"
@
btnEvent=
"goNewTag"
:isVisible=
"tagsVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<basic-dialog
class=
"tags"
:title=
"tagsDialogTitle"
:width=
"'712px'"
:btnLoading=
"sloading"
:isShowThirdBtn=
"true"
@
btnEvent=
"goNewTag"
:isVisible=
"tagsVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<slot>
<slot>
<p
class=
"hint-text"
>
<p
class=
"hint-text
color-6
"
>
<span
class=
"color-
6
"
>
说明:
</span>
<span
class=
"color-
3
"
>
说明:
</span>
仅支持企业标签
仅支持企业标签
<span
v-if=
"merchantModel == 1"
>
和自店标签
</span>
<span
v-if=
"merchantModel == 1"
>
和自店标签
</span>
进行人工维护和设置
进行人工维护和设置
...
@@ -170,13 +170,16 @@
...
@@ -170,13 +170,16 @@
<div
class=
"labels-wrap"
v-for=
"(group, index) in allTagsList"
:key=
"index"
>
<div
class=
"labels-wrap"
v-for=
"(group, index) in allTagsList"
:key=
"index"
>
<
template
v-if=
"(merchantModel == 2 && group.labelType != '自店标签') || merchantModel == 1"
>
<
template
v-if=
"(merchantModel == 2 && group.labelType != '自店标签') || merchantModel == 1"
>
<div
class=
"label-wrap"
>
<div
class=
"label-wrap"
>
<div
class=
"label-group-name
color-3
"
>
{{
group
.
labelType
}}
</div>
<div
class=
"label-group-name"
>
{{
group
.
labelType
}}
</div>
<div
class=
"labels"
v-for=
"(labels, ids) in group.children"
:key=
"ids"
>
<div
class=
"labels"
v-for=
"(labels, ids) in group.children"
:key=
"ids"
>
<div
class=
"label-name white-hide color-71"
>
{{
labels
.
labelGroup
.
name
}}
:
</div>
<div
class=
"label-name white-hide color-71
mt10
"
>
{{
labels
.
labelGroup
.
name
}}
:
</div>
<div
class=
"label-value flex"
>
<div
class=
"label-value flex"
>
<template
v-for=
"(label, i) in labels.labelList"
>
<template
v-for=
"(label, i) in labels.labelList"
>
<div
:class=
"['label', 'color-6', 'white-hide', label.checked ? 'isChecked' : '']"
:style=
"
{ width: label.name.length > 10 ? '145px' : auto }" :key="label.id" @click="choose(index, ids, i)">
<div
:class=
"['label', 'color-3', 'white-hide', 'mt10', label.checked ? 'isChecked' : '']"
:style=
"
{ width: label.name.length > 10 ? '145px' : auto }" :key="label.id" @click="choose(index, ids, i)">
{{
label
.
name
}}
<template
v-if=
"label.name.length
< 10
"
>
{{
label
.
name
}}
</
template
>
<el-tooltip
class=
"item"
:content=
"label.name"
placement=
"top"
v-else
>
<span>
{{ label.name }}
</span>
</el-tooltip>
<
template
v-if=
"label.checked"
>
<
template
v-if=
"label.checked"
>
<img
src=
"@/assets/clientDetail/select-icon.png"
class=
"select-icon"
alt
/>
<img
src=
"@/assets/clientDetail/select-icon.png"
class=
"select-icon"
alt
/>
</
template
>
</
template
>
...
@@ -187,26 +190,6 @@
...
@@ -187,26 +190,6 @@
</div>
</div>
</template>
</template>
</div>
</div>
<!-- <p class="dialogSubTitle">企业标签</p>
<div class="companyRowData" v-for="(item, index) in companyTagsList" :key="index">
<span :title="item.labelGroup.name">{{ item.labelGroup.name }}</span>
<div class="tagsBox">
<span v-for="(i, j) in item.labelList" :key="j" class="ellipsis-1" :class="{ activeTag: i.checked }" :title="i.name" @click="checkNewTag(i.checked, j, item.labelList, i.original)">{{ i.name }}</span>
</div>
</div>
<template v-if="merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel == 4)">
<p class="dialogSubTitle">自店标签</p>
<div class="ownShopRowData" v-for="(xItem, xIndex) in ownShopTagsList" :key="xIndex">
<span :title="xItem.labelGroup.name">{{ xItem.labelGroup.name }}</span>
<div class="tagsBox">
<span v-for="(m, n) in xItem.labelList" :key="n" class="ellipsis-1" :class="{ activeTag: m.checked }" :title="m.name" @click="checkNewTag(m.checked, n, xItem.labelList, m.original)">{{ m.name }}</span>
</div>
</div>
</template> -->
<!-- 这里btn-behind插槽莫名失效了,原因:??? -->
<!-- <el-button slot="behind" @click="goNewTag">没找到需要的标签,创建新标签</el-button> -->
</slot>
</slot>
</basic-dialog>
</basic-dialog>
</div>
</div>
...
@@ -636,7 +619,7 @@ export default {
...
@@ -636,7 +619,7 @@ export default {
console
.
log
(
param
)
console
.
log
(
param
)
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
code
==
0
)
{
this
.
sloading
=
false
this
.
sloading
=
false
this
.
$message
.
success
(
'
添加
成功'
)
this
.
$message
.
success
(
'
设置
成功'
)
this
.
handleClose
()
this
.
handleClose
()
// this.getSingleClientTag(this.id, this.merchantId)
// this.getSingleClientTag(this.id, this.merchantId)
this
.
getPageDetail
()
//刷新当前页面
this
.
getPageDetail
()
//刷新当前页面
...
@@ -934,89 +917,31 @@ export default {
...
@@ -934,89 +917,31 @@ export default {
}
}
}
}
}
}
//
.dialogSubTitle
{
//
margin-bottom
:
10px
;
//
height
:
20px
;
//
font-size
:
14px
;
//
font-weight
:
500
;
//
color
:
#717171
;
//
line-height
:
20px
;
//
&:not(:first-child)
{
//
margin-top
:
20px
;
//
}
//
}
//
.companyRowData
,
//
.ownShopRowData
{
//
display
:
flex
;
//
//
margin-top
:
10px
;
//
>
span
{
//
margin-right
:
10px
;
//
min-width
:
82px
;
//
height
:
20px
;
//
font-size
:
14px
;
//
font-weight
:
400
;
//
color
:
#717171
;
//
line-height
:
20px
;
//
text-align
:
right
;
//
max-width
:
82px
;
//
overflow
:
hidden
;
//
text-overflow
:
ellipsis
;
//
white-space
:
nowrap
;
//
word-break
:
break-all
;
//
}
//
.tagsBox
{
//
display
:
flex
;
//
flex-wrap
:
wrap
;
//
justify-content
:
flex-start
;
//
>
span
{
//
display
:
inline-block
;
//
margin-right
:
10px
;
//
margin-bottom
:
10px
;
//
padding
:
0
10px
;
//
box-sizing
:
border-box
;
//
min-width
:
82px
;
//
height
:
26px
;
//
line-height
:
26px
;
//
border-radius
:
4px
;
//
border
:
1px
solid
#e8e8ea
;
//
text-align
:
center
;
//
font-size
:
14px
;
//
font-weight
:
400
;
//
color
:
#666666
;
//
max-width
:
245px
;
//
cursor
:
pointer
;
//
background
:
#fafbfe
;
//
}
//
.activeTag
{
//
border
:
1px
solid
$
btnBlue
;
//
color
:
$
btnBlue
;
//
}
//
}
//
}
.hint-text
{
.hint-text
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#333333
;
//
color
:
#666
;
line-height
:
18px
;
line-height
:
18px
;
}
}
.mg10
{
.mg10
{
margin-left
:
38px
;
margin-left
:
38px
;
}
}
.mt10
{
margin-top
:
10px
;
}
.labels-wrap
{
.labels-wrap
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#333333
;
color
:
#333333
;
line-height
:
20px
;
line-height
:
20px
;
.label-group-name
{
margin-bottom
:
15px
;
margin-top
:
20px
;
margin-top
:
20px
;
font-weight
:
500
;
.label-group-name
{
margin-bottom
:
2px
;
font-weight
:
600
;
}
}
.labels
{
.labels
{
margin-bottom
:
10px
;
.label-name
{
.label-name
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-bottom
:
10px
;
font-weight
:
400
;
font-weight
:
400
;
}
}
.label
{
.label
{
...
@@ -1027,10 +952,10 @@ export default {
...
@@ -1027,10 +952,10 @@ export default {
line-height
:
26px
;
line-height
:
26px
;
text-align
:
center
;
text-align
:
center
;
margin-right
:
10px
;
margin-right
:
10px
;
margin-bottom
:
10px
;
position
:
relative
;
position
:
relative
;
padding
:
0
16px
;
padding
:
0
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
cursor
:
pointer
;
}
}
.isChecked
{
.isChecked
{
border
:
1px
solid
#5850ff
!important
;
border
:
1px
solid
#5850ff
!important
;
...
...
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