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 683f9ac0
authored
Apr 29, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
fixed
2 parents
da52c02b
c0e85da9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
52 additions
and
28 deletions
src/mixins/tag.js
src/views/clientGroupManage/index.vue
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
src/views/crowdManage/crowdAdd.vue
src/views/crowdManage/index.vue
src/views/leadManage/index.vue
src/views/tagsManage/components/tagGroup.vue
src/mixins/tag.js
View file @
683f9ac
...
@@ -86,7 +86,12 @@ export default {
...
@@ -86,7 +86,12 @@ export default {
this
.
$router
.
push
(
'/clientManage/clientDetail?id='
+
scope
.
oneId
)
this
.
$router
.
push
(
'/clientManage/clientDetail?id='
+
scope
.
oneId
)
},
},
jumpGroup
()
{
jumpGroup
()
{
this
.
$router
.
push
(
'/crowdManage/index'
)
this
.
$router
.
push
({
path
:
'/crowdManage/index'
,
query
:
{
selectTab
:
1
}
})
},
},
//删除标签组
//删除标签组
removeItem
(
index
)
{
removeItem
(
index
)
{
...
@@ -207,13 +212,13 @@ export default {
...
@@ -207,13 +212,13 @@ export default {
this
.
$apis
.
crowdManage
this
.
$apis
.
crowdManage
.
addCrowd
(
params
)
.
addCrowd
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
)
{
if
(
res
.
data
.
code
==
0
)
{
this
.
groupVisible
=
false
this
.
groupVisible
=
false
this
.
successVisible
=
true
this
.
successVisible
=
true
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
message
:
'操作失败'
message
:
res
.
data
.
message
})
})
}
}
})
})
...
...
src/views/clientGroupManage/index.vue
View file @
683f9ac
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"scrm-sub-client-container"
>
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户群管理
</p>
-->
<!--
<p
class=
"pageTitle"
>
客户群管理
</p>
-->
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"clientGroupFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"clientGroupFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<div
class=
"leadList"
>
<div
class=
"leadList"
>
<div>
<div>
...
@@ -167,7 +167,8 @@ export default {
...
@@ -167,7 +167,8 @@ export default {
},
},
{
{
label
:
'管理员'
,
label
:
'管理员'
,
prop
:
'groupAdminName'
prop
:
'groupAdminName'
,
minWidth
:
100
},
},
{
{
label
:
'创建方式'
,
label
:
'创建方式'
,
...
@@ -186,11 +187,11 @@ export default {
...
@@ -186,11 +187,11 @@ export default {
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'addTime'
,
prop
:
'addTime'
,
width
:
1
7
0
width
:
1
8
0
}
}
],
],
tableOption
:
{
tableOption
:
{
width
:
62
width
:
80
// btnList: [
// btnList: [
// {
// {
// name: '详情',
// name: '详情',
...
...
src/views/clientManage/clientDetail.vue
View file @
683f9ac
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
</div>
</div>
<p>
<p>
<span>
联系电话:
</span>
<span>
联系电话:
</span>
<span
class=
"ellipsis-1"
v-if=
"leftPanelInfo.customerPhone"
>
{{
leftPanelInfo
.
customerPhone
}}
</span>
<span
class=
"ellipsis-1"
v-if=
"leftPanelInfo.customerPhone
|| leftPanelInfo.status == -1
"
>
{{
leftPanelInfo
.
customerPhone
}}
</span>
<span
<span
class=
"phone-fill"
class=
"phone-fill"
v-else
v-else
...
...
src/views/clientManage/index.vue
View file @
683f9ac
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<!-- :style="
{ 'min-height': heightBox + 'px' }" -->
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLCombiForm
ref=
"combiForm"
:formObj=
"searchForm"
:formData=
"clientManageFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<div
class=
"leadList"
>
<div
class=
"leadList"
>
<div>
<div>
<span></span>
<span></span>
...
@@ -104,8 +104,8 @@ export default {
...
@@ -104,8 +104,8 @@ export default {
sloading
:
false
,
sloading
:
false
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
CLIENTSTATUS
:
this
.
$Constants
.
CLIENT_STATUS
,
searchForm
:
{
searchForm
:
{
followStaff
:
''
,
addWay
:
''
,
addWay
:
''
isJoin
:
null
},
},
searchFormTable
:
{},
searchFormTable
:
{},
clientManageFormList
:
[
clientManageFormList
:
[
...
@@ -383,13 +383,19 @@ export default {
...
@@ -383,13 +383,19 @@ export default {
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
if
(
Object
.
keys
(
this
.
$route
.
query
).
length
&&
this
.
queryFlag
==
0
)
{
if
(
Object
.
keys
(
this
.
$route
.
query
).
length
&&
this
.
queryFlag
==
0
)
{
const
res
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'sourceList'
))
const
res
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'sourceList'
))
this
.
searchForm
.
followStaff
=
this
.
$route
.
query
.
staffName
||
''
let
add_way
=
this
.
$route
.
query
.
addWay
||
''
let
add_way
=
this
.
$route
.
query
.
addWay
||
''
let
isJoinVal
=
this
.
$route
.
query
.
isJoin
||
null
let
addWayObj
=
res
.
find
(
i
=>
i
.
label
===
add_way
)
let
addWayObj
=
res
.
find
(
i
=>
i
.
label
===
add_way
)
let
addWayVal
=
addWayObj
.
value
let
addWayVal
=
addWayObj
.
value
this
.
searchForm
.
addWay
=
addWayVal
this
.
searchForm
.
addWay
=
addWayVal
this
.
searchForm
.
isJoin
=
isJoinVal
===
null
?
null
:
Number
(
isJoinVal
)
setTimeout
(()
=>
{
this
.
$refs
.
combiForm
.
expandFn
()
},
100
)
// document.querySelector('.operate').lastElementChild.click()
this
.
queryFlag
=
1
this
.
queryFlag
=
1
}
}
this
.
searchFormTable
=
this
.
getParams
()
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
})
})
...
@@ -499,10 +505,7 @@ export default {
...
@@ -499,10 +505,7 @@ export default {
})
})
}
}
},
},
mounted
()
{
mounted
()
{}
// let clientHeight = document.documentElement.clientHeight
// this.heightBox = clientHeight - 130
}
}
}
</
script
>
</
script
>
...
...
src/views/crowdManage/crowdAdd.vue
View file @
683f9ac
...
@@ -338,7 +338,7 @@ export default {
...
@@ -338,7 +338,7 @@ export default {
this
.
$apis
.
crowdManage
this
.
$apis
.
crowdManage
.
addCrowd
(
params
)
.
addCrowd
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
)
{
if
(
res
.
data
.
code
==
0
)
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'操作成功!'
message
:
'操作成功!'
...
@@ -352,7 +352,7 @@ export default {
...
@@ -352,7 +352,7 @@ export default {
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
message
:
'操作失败'
message
:
res
.
data
.
message
})
})
}
}
})
})
...
...
src/views/crowdManage/index.vue
View file @
683f9ac
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-button
class=
"searchBtn"
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
<el-button
class=
"searchBtn"
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</span>
</search-form>
</search-form>
<GLTable
class=
"crowdTable"
@
setTableHeightEvent=
"setTableHeightEvent"
@
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"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
>
<span
slot=
"crowdName"
slot-scope=
"scope"
>
<span
slot=
"crowdName"
slot-scope=
"scope"
>
<span
class=
"line-ellipsis"
>
{{
scope
.
scope
.
crowdName
.
slice
(
0
,
24
)
}}
</span>
<span
class=
"line-ellipsis"
>
{{
scope
.
scope
.
crowdName
.
slice
(
0
,
24
)
}}
</span>
</span>
</span>
...
...
src/views/leadManage/index.vue
View file @
683f9ac
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</div>
</div>
<GLButton
fn=
"线索分配"
size=
"small"
@
click=
"goAllocation"
>
线索分配
</GLButton>
<GLButton
fn=
"线索分配"
size=
"small"
@
click=
"goAllocation"
>
线索分配
</GLButton>
</div>
</div>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"leadManage"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"
>
<GLTable
v-loading=
"loading"
:hasNum=
"true"
@
setTableHeightEvent=
"setTableHeightEvent"
@
setTableFinishFun=
"setTableFinishFun"
ref=
"leadManage"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
>
<!-- 线索类型 -->
<!-- 线索类型 -->
<template
slot=
"type"
slot-scope=
"scope"
>
<template
slot=
"type"
slot-scope=
"scope"
>
<span>
{{
switchStaff
(
scope
.
scope
.
type
)
}}
</span>
<span>
{{
switchStaff
(
scope
.
scope
.
type
)
}}
</span>
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
683f9ac
...
@@ -5,11 +5,19 @@
...
@@ -5,11 +5,19 @@
<span
@
click=
"resetTree"
>
重置
</span>
<span
@
click=
"resetTree"
>
重置
</span>
</div>
</div>
<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
@
node-expand=
"nodeExpand"
accordion
@
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 }">
<GLFull
labelWidth=
"140"
:identification=
"`node_$
{data.id}`">
<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
}}
{{
node
.
label
}}
</
GLFull
>
</
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>
...
@@ -157,9 +165,15 @@ export default {
...
@@ -157,9 +165,15 @@ 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'
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
overflow
=
'auto'
})
})
this
.
loading
=
false
this
.
loading
=
false
})
})
},
nodeExpand
()
{
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
maxHeight
=
this
.
$parent
.
heightBox
-
205
+
'px'
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
overflow
=
'auto'
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -198,6 +212,7 @@ export default {
...
@@ -198,6 +212,7 @@ export default {
}
}
}
}
}
}
.el-tree-node__children
{
.el-tree-node__children
{
.el-tree-node__content
{
.el-tree-node__content
{
.el-checkbox
{
.el-checkbox
{
...
@@ -210,11 +225,11 @@ export default {
...
@@ -210,11 +225,11 @@ export default {
color
:
#333
;
color
:
#333
;
}
}
.tree-node
{
.tree-node
{
//
width
:
140px
;
width
:
140px
;
//
display
:
inline-block
;
display
:
inline-block
;
//
white-space
:
nowrap
;
white-space
:
nowrap
;
//
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
//
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.el-tree-node__expand-icon
{
.el-tree-node__expand-icon
{
font-size
:
15px
;
font-size
:
15px
;
...
...
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