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 650f1448
authored
Feb 22, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提示语修改
1 parent
79cf2b6d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
92 deletions
src/views/clientDataOverview/group.vue
src/views/clientManage/clientDetail.vue
src/views/clientDataOverview/group.vue
View file @
650f144
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</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=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"groupRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:
noDataImg=
"url"
:
pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
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
.
customerName
}}
</span>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
...
@@ -29,6 +29,7 @@
...
@@ -29,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
()
{
...
@@ -83,6 +84,7 @@ export default {
...
@@ -83,6 +84,7 @@ export default {
}
}
]
]
},
},
url
:
url
,
describeData
:
[
'无购车且无其他交易行为的所有客户'
,
'在潜在意向客户中,已加企微的客户'
,
'在潜在意向客户中,未加企微的客户'
,
'有购车或其他交易行为的所有客户'
,
'在基盘客户中,已加企微的客户'
,
'在基盘客户中,未加企微的客户'
,
'购车时间3个月的客户'
,
'近一个月内车险即将到期的客户'
,
'购车时间5~7个月内,且无保养记录的客户'
,
'超过180天未到店的客户'
]
describeData
:
[
'无购车且无其他交易行为的所有客户'
,
'在潜在意向客户中,已加企微的客户'
,
'在潜在意向客户中,未加企微的客户'
,
'有购车或其他交易行为的所有客户'
,
'在基盘客户中,已加企微的客户'
,
'在基盘客户中,未加企微的客户'
,
'购车时间3个月的客户'
,
'近一个月内车险即将到期的客户'
,
'购车时间5~7个月内,且无保养记录的客户'
,
'超过180天未到店的客户'
]
}
}
},
},
...
@@ -116,6 +118,7 @@ export default {
...
@@ -116,6 +118,7 @@ export default {
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
totalCount
=
this
.
$refs
.
groupRef
.
total
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'
})
...
...
src/views/clientManage/clientDetail.vue
View file @
650f144
...
@@ -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>
进行人工维护和设置
进行人工维护和设置
...
@@ -172,11 +172,14 @@
...
@@ -172,11 +172,14 @@
<div
class=
"label-wrap"
>
<div
class=
"label-wrap"
>
<div
class=
"label-group-name"
>
{{
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-3', '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
:
12px
;
margin-top
:
20px
;
margin-top
:
20px
;
.label-group-name
{
margin-bottom
:
2px
;
font-weight
:
600
;
font-weight
:
600
;
}
}
.labels
{
.labels
{
margin-bottom
:
11px
;
.label-name
{
.label-name
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-bottom
:
10px
;
font-weight
:
400
;
font-weight
:
400
;
}
}
.label
{
.label
{
...
@@ -1027,7 +952,6 @@ export default {
...
@@ -1027,7 +952,6 @@ 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
;
...
...
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