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 667de11f
authored
May 18, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
0dddd9c4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
24 deletions
src/App.vue
src/views/clientDataOverview/group.vue
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
src/views/crowdManage/index.vue
src/views/tagsManage/components/tagGroup.vue
src/views/tagsManage/index.vue
src/App.vue
View file @
667de11
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
</div>
</div>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
</div>
-->
</div>
-->
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage"
>
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage
,clientManage
"
>
<router-view></router-view>
<router-view></router-view>
</keep-alive>
</keep-alive>
</div>
</div>
...
...
src/views/clientDataOverview/group.vue
View file @
667de11
...
@@ -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>
<
GLButton
size=
"small"
@
click=
"handleExport"
class=
"export"
fn=
"导出"
>
导出
</GLB
utton>
<
el-button
size=
"small"
@
click=
"handleExport"
class=
"export"
>
导出
</el-b
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"
>
...
@@ -153,7 +153,7 @@ export default {
...
@@ -153,7 +153,7 @@ export default {
label
:
'车架号'
,
label
:
'车架号'
,
prop
:
'carVin'
,
prop
:
'carVin'
,
minWidth
:
140
,
minWidth
:
140
,
line
:
1
line
:
1
},
},
{
{
label
:
'车系'
,
label
:
'车系'
,
...
...
src/views/clientManage/clientDetail.vue
View file @
667de11
...
@@ -619,9 +619,13 @@ export default {
...
@@ -619,9 +619,13 @@ export default {
},
},
tabClick
(
index
)
{
tabClick
(
index
)
{
this
.
currentIndex
=
index
this
.
currentIndex
=
index
if
(
this
.
currentIndex
==
2
&&
this
.
clientTagsList
.
length
<=
0
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
clientTagsListRef
.
setTableHeightFun
()
if
(
this
.
currentIndex
==
2
&&
this
.
clientTagsList
.
length
<=
0
)
{
}
this
.
$refs
.
clientTagsListRef
.
setTableHeightFun
()
console
.
log
(
this
.
$refs
.
clientTagsListRef
.
tableHeightValues
,
'----------------'
)
// this.$refs.clientTagsListRef.tableHeightValues =
}
})
},
},
showTagArray
(
list
)
{
showTagArray
(
list
)
{
if
(
list
.
length
==
0
)
{
if
(
list
.
length
==
0
)
{
...
@@ -630,7 +634,7 @@ export default {
...
@@ -630,7 +634,7 @@ export default {
return
list
.
slice
(
0
,
9
)
return
list
.
slice
(
0
,
9
)
},
},
/* *
/* *
用途:js中字符串超长作固定长度加省略号(...)处理
用途:js中字符串超长作固定长度加省略号(...)处理
参数说明:
参数说明:
str:需要进行处理的字符串,可含汉字
str:需要进行处理的字符串,可含汉字
...
@@ -830,14 +834,15 @@ export default {
...
@@ -830,14 +834,15 @@ export default {
})
})
})
})
})
})
const
userIdList
=
this
.
nickNameList
.
map
(
item
=>
item
.
userId
)
let
param
=
{
let
param
=
{
'req.OneId'
:
this
.
id
,
'req.OneId'
:
this
.
id
,
'req.merchantId'
:
this
.
merchantId
,
'req.merchantId'
:
this
.
merchantId
,
'req.uuId'
:
this
.
userid
,
'req.uuId'
:
this
.
userid
,
'req.staffId'
:
this
.
staffId
,
'req.staffId'
:
this
.
staffId
,
'req.labelIdAddList'
:
labelIdAddList
,
'req.labelIdAddList'
:
labelIdAddList
,
'req.labelIdDelList'
:
labelIdDelList
'req.labelIdDelList'
:
labelIdDelList
,
'req.userIdList'
:
userIdList
}
}
addSingleClientTag
(
param
)
addSingleClientTag
(
param
)
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -1115,6 +1120,18 @@ export default {
...
@@ -1115,6 +1120,18 @@ export default {
}
}
//
处理客户标签的样式
//
处理客户标签的样式
.clientTagsWrap
{
.clientTagsWrap
{
/deep/
.
el-table
:
before
{
background-color
:
#fff
!important
;
}
/
deep
/
.el-table__empty-block
{
height
:
auto
;
position
:
absolute
;
top
:
50%
;
transform
:
translateY
(
-50%
);
}
/
deep
/
.glsx-table
.emptyBg
.noDataImg
{
margin-top
:
0
;
}
.allTagsWrap
{
.allTagsWrap
{
position
:
relative
;
position
:
relative
;
.tag-box-wrap
{
.tag-box-wrap
{
...
...
src/views/clientManage/index.vue
View file @
667de11
...
@@ -389,6 +389,7 @@ export default {
...
@@ -389,6 +389,7 @@ export default {
let
addWayVal
=
addWayObj
.
value
let
addWayVal
=
addWayObj
.
value
this
.
searchForm
.
addWay
=
addWayVal
this
.
searchForm
.
addWay
=
addWayVal
this
.
searchForm
.
isJoin
=
isJoinVal
===
null
?
null
:
Number
(
isJoinVal
)
this
.
searchForm
.
isJoin
=
isJoinVal
===
null
?
null
:
Number
(
isJoinVal
)
window
.
history
.
pushState
(
null
,
null
,
location
.
origin
+
location
.
pathname
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$refs
.
combiForm
.
expandFn
()
this
.
$refs
.
combiForm
.
expandFn
()
},
100
)
},
100
)
...
...
src/views/crowdManage/index.vue
View file @
667de11
...
@@ -107,6 +107,11 @@ export default {
...
@@ -107,6 +107,11 @@ export default {
this
.
userType
=
this
.
$globalState
.
session
.
userType
this
.
userType
=
this
.
$globalState
.
session
.
userType
}
}
this
.
searchForm
=
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
this
.
crowdType
}
this
.
searchForm
=
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
this
.
crowdType
}
//标签管理保存初始化保存自定义人群状态
if
(
this
.
$route
.
query
.
selectTab
)
{
this
.
activeName
=
'second'
// window.history.pushState(null, null, location.origin + location.pathname)
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
...
@@ -123,7 +128,6 @@ export default {
...
@@ -123,7 +128,6 @@ export default {
this
.
$router
.
push
(
'/crowdManage/crowdAdd'
)
this
.
$router
.
push
(
'/crowdManage/crowdAdd'
)
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
console
.
log
(
this
.
$refs
.
crowdManage
.
data
.
length
)
if
(
!
this
.
$refs
.
crowdManage
.
data
.
length
)
{
if
(
!
this
.
$refs
.
crowdManage
.
data
.
length
)
{
this
.
$nextTick
(()
=>
this
.
$refs
.
crowdManage
.
setTableHeightFun
())
this
.
$nextTick
(()
=>
this
.
$refs
.
crowdManage
.
setTableHeightFun
())
}
else
{
}
else
{
...
@@ -135,10 +139,6 @@ export default {
...
@@ -135,10 +139,6 @@ export default {
this
.
searchTable
()
this
.
searchTable
()
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
if
(
this
.
$route
.
query
.
selectTab
)
{
this
.
activeName
=
'second'
// window.history.pushState(null, null, location.origin + location.pathname)
}
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
const
crowdType
=
this
.
activeName
==
'first'
?
1
:
2
const
crowdType
=
this
.
activeName
==
'first'
?
1
:
2
this
.
searchForm
=
Object
.
assign
(
this
.
searchForm
,
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
crowdType
})
this
.
searchForm
=
Object
.
assign
(
this
.
searchForm
,
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
crowdType
})
...
@@ -158,6 +158,7 @@ export default {
...
@@ -158,6 +158,7 @@ export default {
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
next
(
vm
=>
{
console
.
log
(
to
,
'to'
)
if
(
from
.
params
.
crowdType
)
{
if
(
from
.
params
.
crowdType
)
{
vm
.
activeName
=
from
.
params
.
crowdType
==
2
?
'second'
:
'first'
vm
.
activeName
=
from
.
params
.
crowdType
==
2
?
'second'
:
'first'
vm
.
crowdType
=
from
.
params
.
crowdType
vm
.
crowdType
=
from
.
params
.
crowdType
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
667de11
...
@@ -165,15 +165,20 @@ export default {
...
@@ -165,15 +165,20 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
status
&&
this
.
updateTreeNode
()
status
&&
this
.
updateTreeNode
()
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
maxHeight
=
this
.
$parent
.
heightBox
-
205
+
'px'
this
.
setTreeHeight
()
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
overflow
=
'auto'
})
})
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
nodeExpand
()
{
setTreeHeight
()
{
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
maxHeight
=
this
.
$parent
.
heightBox
-
205
+
'px'
const
nodeHeight
=
document
.
querySelectorAll
(
'.el-tree>.el-tree-node'
).
length
*
30
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
maxHeight
=
this
.
$parent
.
heightBox
-
80
-
nodeHeight
+
'px'
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
overflow
=
'auto'
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
overflow
=
'auto'
},
nodeExpand
()
{
this
.
$nextTick
(()
=>
{
this
.
setTreeHeight
()
})
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -184,7 +189,7 @@ export default {
...
@@ -184,7 +189,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.content-wrap
{
.content-wrap
{
padding
:
16px
3px
16
px
16px
;
padding
:
16px
3px
0
px
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
100%
;
height
:
100%
;
.tree-input
{
.tree-input
{
...
@@ -201,7 +206,6 @@ export default {
...
@@ -201,7 +206,6 @@ export default {
}
}
.tag-tree
{
.tag-tree
{
margin-top
:
20px
;
margin-top
:
20px
;
height
:
calc
(
100%
-
80px
);
overflow-y
:
auto
;
overflow-y
:
auto
;
/deep/
{
/deep/
{
.el-tree-node
{
.el-tree-node
{
...
...
src/views/tagsManage/index.vue
View file @
667de11
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<i
class=
"el-icon-close"
@
click=
"closeInitPanel"
></i>
<i
class=
"el-icon-close"
@
click=
"closeInitPanel"
></i>
</div>
</div>
<div
class=
"client-main-box"
>
<div
class=
"client-main-box"
>
<div
class=
"client-tag"
:style=
"{ height: heightBox + 'px' }"
>
<div
class=
"client-tag"
>
<tag-group
@
getCheckItem=
"getCheckItem"
ref=
"tagTree"
@
editTag=
"btnClick"
></tag-group>
<tag-group
@
getCheckItem=
"getCheckItem"
ref=
"tagTree"
@
editTag=
"btnClick"
></tag-group>
</div>
</div>
<div
class=
"client-tabel"
>
<div
class=
"client-tabel"
>
...
@@ -732,7 +732,7 @@ export default {
...
@@ -732,7 +732,7 @@ export default {
this
.
$message
.
error
(
'不能提交相同的标签,请修改'
)
this
.
$message
.
error
(
'不能提交相同的标签,请修改'
)
return
return
}
}
this
.
newAddTagFun
()
this
.
newAddTagFun
(
1
)
//this.handleClose() //这里不管
//this.handleClose() //这里不管
}
else
{
}
else
{
//修改标签(允许同时增加标签)
//修改标签(允许同时增加标签)
...
@@ -783,7 +783,7 @@ export default {
...
@@ -783,7 +783,7 @@ export default {
this
.
tagForm
.
tagsList
=
[]
//取消时清空新增标签
this
.
tagForm
.
tagsList
=
[]
//取消时清空新增标签
this
.
tagVisible
=
!
this
.
tagVisible
this
.
tagVisible
=
!
this
.
tagVisible
},
},
newAddTagFun
()
{
newAddTagFun
(
status
)
{
//满足条件进行提交
//满足条件进行提交
let
params
=
{}
let
params
=
{}
params
[
'labelDTO.dataFrom'
]
=
'cs'
params
[
'labelDTO.dataFrom'
]
=
'cs'
...
@@ -801,7 +801,7 @@ export default {
...
@@ -801,7 +801,7 @@ export default {
}
}
if
(
res
.
data
.
code
==
0
)
{
if
(
res
.
data
.
code
==
0
)
{
if
(
this
.
tagForm
.
tagsList
.
length
>
0
)
{
if
(
this
.
tagForm
.
tagsList
.
length
>
0
)
{
this
.
$message
.
success
(
'添加成功'
)
status
&&
this
.
$message
.
success
(
'添加成功'
)
}
}
if
(
this
.
tagDialogTitle
==
'编辑标签组'
)
{
if
(
this
.
tagDialogTitle
==
'编辑标签组'
)
{
this
.
tagForm
.
tagsName
=
''
this
.
tagForm
.
tagsName
=
''
...
...
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