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 cc568089
authored
May 20, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新2.3.0的代码
1 parent
1f07a8e0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
26 deletions
src/views/clientDataOverview/group.vue
src/views/clientDataOverview/index.vue
src/views/tagsManage/components/tagGroup.vue
src/views/clientDataOverview/group.vue
View file @
cc56808
...
@@ -198,27 +198,28 @@ export default {
...
@@ -198,27 +198,28 @@ export default {
let
{
id
}
=
this
let
{
id
}
=
this
this
.
init
(
id
)
this
.
init
(
id
)
// 针对广汇替换字段
// 针对广汇替换字段
// if (this.id == 1 && location.host == 'scrm.cgacar.com') {
console
.
log
(
location
.
host
)
// this.tableParams.tableColumns.splice(
if
(
this
.
id
==
1
&&
location
.
host
==
'scrm.cgacar.com'
)
{
// 3,
this
.
tableParams
.
tableColumns
.
splice
(
// 3,
3
,
// {
3
,
// type: 'input',
{
// name: '',
type
:
'input'
,
// label: '线索时间'
name
:
''
,
// },
label
:
'线索时间'
// {
},
// type: 'input',
{
// name: '',
type
:
'input'
,
// label: '意向车型'
name
:
''
,
// },
label
:
'意向车型'
// {
},
// type: 'input',
{
// name: '',
type
:
'input'
,
// label: '线索来源'
name
:
''
,
// }
label
:
'线索来源'
// )
}
// }
)
}
},
},
mounted
()
{
mounted
()
{
this
.
getStaffList
()
this
.
getStaffList
()
...
...
src/views/clientDataOverview/index.vue
View file @
cc56808
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
<div
class=
"intended"
@
click=
"goto(11)"
>
<div
class=
"intended"
@
click=
"goto(11)"
>
<p
class=
"intend-name"
>
<p
class=
"intend-name"
>
<span
class=
"nameHover"
>
已加企微,待匹配客户
</span>
<span
class=
"nameHover"
>
已加企微,待匹配客户
</span>
<span
class=
"intend-phone"
@
click
.
stop=
"goto(20
1
)"
>
(已绑定手机号{{ topDataObj.notMatchCustomerAddPhoneCount ? topDataObj.notMatchCustomerAddPhoneCount : 0 }}人)
</span>
<span
class=
"intend-phone"
@
click
.
stop=
"goto(20)"
>
(已绑定手机号{{ topDataObj.notMatchCustomerAddPhoneCount ? topDataObj.notMatchCustomerAddPhoneCount : 0 }}人)
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"已加企微,且未匹配到潜在意向和基盘客户的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"已加企微,且未匹配到潜在意向和基盘客户的客户"
>
<span
class=
"dataOverPopover"
>
已加企微,且未匹配到潜在意向和基盘客户的客户
</span>
<span
class=
"dataOverPopover"
>
已加企微,且未匹配到潜在意向和基盘客户的客户
</span>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
<img
class=
"questionImg"
src=
"@/assets/clientDataOverview/grayquestion.png"
slot=
"reference"
/>
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
</div>
</div>
</div>
</div>
<!-- 未加企微,未匹配客户 -->
<!-- 未加企微,未匹配客户 -->
<div
class=
"intended"
@
click=
"goto(2
02
)"
>
<div
class=
"intended"
@
click=
"goto(2
1
)"
>
<p
class=
"intend-name"
>
<p
class=
"intend-name"
>
<span>
未加企微,未匹配客户
</span>
<span>
未加企微,未匹配客户
</span>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"未加企微,且未匹配到潜在意向和基盘客户的客户"
>
<el-popover
placement=
"top"
trigger=
"hover"
content=
"未加企微,且未匹配到潜在意向和基盘客户的客户"
>
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
cc56808
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<el-input
placeholder=
"请输入标签组或标签关键字"
v-model=
"filterText"
size=
"small"
><i
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<el-input
placeholder=
"请输入标签组或标签关键字"
v-model=
"filterText"
size=
"small"
><i
slot=
"suffix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<span
@
click=
"resetTree"
>
重置
</span>
<span
@
click=
"resetTree"
>
重置
</span>
</div>
</div>
<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"
>
<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 }">
<el-tooltip
placement=
"top"
v-if=
"hoverId == data.id && hoverStatus"
>
<el-tooltip
placement=
"top"
v-if=
"hoverId == data.id && hoverStatus"
>
...
@@ -24,6 +25,7 @@
...
@@ -24,6 +25,7 @@
</el-tree>
</el-tree>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getTableList
}
from
'@/api/modules/tagsManage'
import
{
getTableList
}
from
'@/api/modules/tagsManage'
export
default
{
export
default
{
...
@@ -51,6 +53,7 @@ export default {
...
@@ -51,6 +53,7 @@ export default {
this
.
$refs
.
tagTree
.
filter
(
val
)
this
.
$refs
.
tagTree
.
filter
(
val
)
}
}
},
},
methods
:
{
methods
:
{
hoverFun
(
data
)
{
hoverFun
(
data
)
{
this
.
hoverId
=
data
.
id
this
.
hoverId
=
data
.
id
...
@@ -159,6 +162,7 @@ export default {
...
@@ -159,6 +162,7 @@ export default {
this
.
expandId
.
push
(
item
.
id
)
this
.
expandId
.
push
(
item
.
id
)
})
})
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
status
&&
this
.
updateTreeNode
()
status
&&
this
.
updateTreeNode
()
this
.
setTreeHeight
()
this
.
setTreeHeight
()
...
@@ -166,22 +170,31 @@ export default {
...
@@ -166,22 +170,31 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
})
})
},
},
setTreeHeight
()
{
setTreeHeight
(
domNode
)
{
const
nodeHeight
=
document
.
querySelectorAll
(
'.el-tree>.el-tree-node'
).
length
*
30
const
nodeHeight
=
document
.
querySelectorAll
(
'.el-tree>.el-tree-node'
).
length
*
30
if
(
domNode
)
{
domNode
.
style
.
maxHeight
=
this
.
$parent
.
heightBox
-
80
-
nodeHeight
+
'px'
domNode
.
style
.
overflow
=
'auto'
}
else
{
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
.
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
()
{
nodeExpand
(
data
,
node
,
target
)
{
if
(
data
.
sort
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
setTreeHeight
()
const
domNode
=
target
.
$refs
.
node
.
lastElementChild
this
.
setTreeHeight
(
domNode
)
})
})
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getTableList
()
this
.
getTableList
()
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.content-wrap
{
.content-wrap
{
padding
:
16px
3px
0px
16px
;
padding
:
16px
3px
0px
16px
;
...
@@ -211,6 +224,7 @@ export default {
...
@@ -211,6 +224,7 @@ export default {
}
}
}
}
}
}
.el-tree-node__children
{
.el-tree-node__children
{
.el-tree-node__content
{
.el-tree-node__content
{
.el-checkbox
{
.el-checkbox
{
...
...
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