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 7211e8a7
authored
Apr 21, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
dbcb7f8a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
11 deletions
src/views/clientDataOverview/group.vue
src/views/clientGroupManage/index.vue
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
src/views/crowdManage/crowdAdd.vue
src/views/tagsManage/components/tagGroup.vue
src/views/tagsManage/index.vue
src/views/tagsManage/main.vue
src/views/clientDataOverview/group.vue
View file @
7211e8a
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
全部客户
全部客户
<span
class=
"main-container-head-number font-14"
>
{{ totalCount }}个
</span>
<span
class=
"main-container-head-number font-14"
>
{{ totalCount }}个
</span>
</div>
</div>
<
el-button
class=
"export"
size=
"small"
@
click=
"handleExport()"
>
导出
</el-b
utton>
<
GLButton
size=
"small"
@
click=
"handleExport"
class=
"export"
fn=
"导出"
>
导出
</GLB
utton>
</div>
</div>
<GLTable
ref=
"groupRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:noDataImg=
"url"
: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"
slot-scope=
"scope"
style=
"display:flex;align-items:center"
>
<span
slot=
"customerName"
slot-scope=
"scope"
style=
"display:flex;align-items:center"
>
...
...
src/views/clientGroupManage/index.vue
View file @
7211e8a
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div>
<div>
<span></span>
<span></span>
</div>
</div>
<
el-button
size=
"small"
@
click=
"handleExport"
>
导出
</el-b
utton>
<
GLButton
size=
"small"
@
click=
"handleExport"
class=
"export"
fn=
"导出"
>
导出
</GLB
utton>
</div>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientGroupManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:noDataImg=
"url"
:pageConf=
"pageConf"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientGroupManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:noDataImg=
"url"
:pageConf=
"pageConf"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
>
<span
slot=
"status"
slot-scope=
"scope"
>
<span
slot=
"status"
slot-scope=
"scope"
>
...
...
src/views/clientManage/clientDetail.vue
View file @
7211e8a
...
@@ -290,7 +290,7 @@ export default {
...
@@ -290,7 +290,7 @@ export default {
expande
:
false
,
//车辆
expande
:
false
,
//车辆
deviceExpande
:
false
,
//设备
deviceExpande
:
false
,
//设备
guaranteeExpande
:
false
,
//保单
guaranteeExpande
:
false
,
//保单
panelContent
:
'说明:标签信息包含跟进员工标记的企业标签和自店标签,以及通过大数据算法生成的系统标签'
,
panelContent
:
this
.
$globalState
.
session
.
merchantModel
==
1
?
'说明:标签信息包含跟进员工标记的集团标签和自店标签,以及通过大数据算法生成的系统标签'
:
'说明:标签信息包含跟进员工标记的企业标签和自店标签,以及通过大数据算法生成的系统标签'
,
url
:
url
,
url
:
url
,
leftPanelInfo
:
{},
leftPanelInfo
:
{},
labelIdList
:
[],
//存放用户被标记标签的id
labelIdList
:
[],
//存放用户被标记标签的id
...
@@ -801,12 +801,12 @@ export default {
...
@@ -801,12 +801,12 @@ export default {
customerPhone
:
this
.
contactPhone
,
customerPhone
:
this
.
contactPhone
,
userIdList
userIdList
}
}
this
.
loading
=
true
perfectCustomerPhone
(
param
).
then
(
res
=>
{
perfectCustomerPhone
(
param
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
)
{
if
(
res
)
{
this
.
getPageDetail
()
this
.
getPageDetail
(
res
)
this
.
$message
.
success
(
'设置成功'
)
this
.
$message
.
success
(
'设置成功'
)
}
else
{
this
.
$message
.
error
(
'设置失败'
)
}
}
})
})
this
.
phoneVisible
=
false
this
.
phoneVisible
=
false
...
...
src/views/clientManage/index.vue
View file @
7211e8a
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div>
<div>
<span></span>
<span></span>
</div>
</div>
<
el-button
size=
"small"
@
click=
"handleExport"
>
导出
</el-b
utton>
<
GLButton
size=
"small"
@
click=
"handleExport"
fn=
"导出"
>
导出
</GLB
utton>
</div>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:noDataImg=
"url"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<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"
slot-scope=
"scope"
>
<span
slot=
"customerName"
slot-scope=
"scope"
>
...
...
src/views/crowdManage/crowdAdd.vue
View file @
7211e8a
...
@@ -217,7 +217,10 @@ export default {
...
@@ -217,7 +217,10 @@ export default {
label
:
'标签组类型'
,
label
:
'标签组类型'
,
prop
:
'groupType'
,
prop
:
'groupType'
,
width
:
180
,
width
:
180
,
align
:
'left'
align
:
'left'
,
formatter
:
cellValue
=>
{
return
cellValue
.
groupType
==
'企业标签'
&&
this
.
$globalState
.
session
.
merchantModel
==
1
?
'集团标签'
:
cellValue
.
groupType
}
},
},
{
{
label
:
'标签'
,
label
:
'标签'
,
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
7211e8a
...
@@ -7,7 +7,17 @@
...
@@ -7,7 +7,17 @@
<el-tree
@
check=
"checkChange"
class=
"tag-tree"
ref=
"tagTree"
:data=
"labelTree"
:props=
"defaultProps"
@
node-click=
"nodeClick"
show-checkbox
node-key=
"id"
:default-expanded-keys=
"expandId"
:expand-on-click-node=
"false"
:filter-node-method=
"filterNode"
>
<el-tree
@
check=
"checkChange"
class=
"tag-tree"
ref=
"tagTree"
:data=
"labelTree"
:props=
"defaultProps"
@
node-click=
"nodeClick"
show-checkbox
node-key=
"id"
:default-expanded-keys=
"expandId"
:expand-on-click-node=
"false"
:filter-node-method=
"filterNode"
>
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<div
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span
:class=
"['tree-node', `node_$
{data.id}`]">
{{
node
.
label
}}
</span>
<el-tooltip
placement=
"top"
v-if=
"hoverId == data.id && hoverStatus"
>
<span
:class=
"['tree-node', `node_$
{data.id}`]" slot="content">
{{
node
.
label
}}
</span>
<span
:class=
"['tree-node', `node_$
{data.id}`]">
{{
node
.
label
}}
</span>
</el-tooltip>
<span
:class=
"['tree-node', `node_$
{data.id}`]" v-else @mouseenter="hoverFun(data)">
{{
node
.
label
}}
</span>
<span
v-if=
"data.labelType && data.labelType != '系统标签' && isShowEditBtn(data.labelDTO)"
@
click
.
stop=
"editTree(data)"
>
<span
v-if=
"data.labelType && data.labelType != '系统标签' && isShowEditBtn(data.labelDTO)"
@
click
.
stop=
"editTree(data)"
>
<i
class=
"el-icon-edit-outline"
></i>
<i
class=
"el-icon-edit-outline"
></i>
</span>
</span>
...
@@ -22,6 +32,8 @@ export default {
...
@@ -22,6 +32,8 @@ export default {
name
:
'tagGroup'
,
name
:
'tagGroup'
,
data
()
{
data
()
{
return
{
return
{
hoverId
:
''
,
hoverStatus
:
false
,
expandId
:
[],
expandId
:
[],
loading
:
false
,
loading
:
false
,
heightBox
:
200
,
heightBox
:
200
,
...
@@ -43,6 +55,10 @@ export default {
...
@@ -43,6 +55,10 @@ export default {
},
},
methods
:
{
methods
:
{
hoverFun
(
data
)
{
this
.
hoverId
=
data
.
id
this
.
hoverStatus
=
document
.
querySelector
(
`.node_
${
data
.
id
}
`
).
scrollWidth
>
140
},
isShowEditBtn
(
row
)
{
isShowEditBtn
(
row
)
{
const
{
userType
,
accountLevel
,
merchantModel
}
=
this
.
$globalState
.
session
const
{
userType
,
accountLevel
,
merchantModel
}
=
this
.
$globalState
.
session
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
...
@@ -71,6 +87,7 @@ export default {
...
@@ -71,6 +87,7 @@ export default {
document
.
querySelector
(
'.tag-tree'
).
scrollTop
=
height
document
.
querySelector
(
'.tag-tree'
).
scrollTop
=
height
},
},
resetTree
()
{
resetTree
()
{
this
.
filterText
=
''
this
.
$parent
.
searchForm
=
{}
this
.
$parent
.
searchForm
=
{}
this
.
$refs
.
tagTree
.
setCheckedKeys
([])
this
.
$refs
.
tagTree
.
setCheckedKeys
([])
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/views/tagsManage/index.vue
View file @
7211e8a
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<div
class=
"clientListNew"
>
客户列表({{ tableTotal }}人)
</div>
<div
class=
"clientListNew"
>
客户列表({{ tableTotal }}人)
</div>
</div>
</div>
<div>
<div>
<
el-button
class=
"export"
size=
"small"
@
click=
"handleExport"
>
导出
</el-b
utton>
<
GLButton
size=
"small"
@
click=
"handleExport"
class=
"export"
fn=
"导出"
>
导出
</GLB
utton>
<el-button
<el-button
plain
plain
size=
"small"
size=
"small"
...
@@ -856,9 +856,10 @@ export default {
...
@@ -856,9 +856,10 @@ export default {
},
},
//添加一行标签
//添加一行标签
addRow
(
type
)
{
addRow
(
type
)
{
const
typeLabel
=
this
.
$globalState
.
session
.
merchantModel
==
1
?
'集团标签'
:
'企业标签'
this
.
tagNameRules
=
false
this
.
tagNameRules
=
false
if
(
type
==
1
&&
this
.
numberObj
.
bizLabelCount
>=
3000
)
{
if
(
type
==
1
&&
this
.
numberObj
.
bizLabelCount
>=
3000
)
{
this
.
$message
.
error
(
'企业标签数量已达上限'
)
this
.
$message
.
error
(
`
${
typeLabel
}
数量已达上限`
)
return
return
}
}
if
(
type
==
2
&&
this
.
numberObj
.
rcLabelCount
>=
3000
)
{
if
(
type
==
2
&&
this
.
numberObj
.
rcLabelCount
>=
3000
)
{
...
...
src/views/tagsManage/main.vue
deleted
100644 → 0
View file @
dbcb7f8
This diff is collapsed.
Click to expand it.
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