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 df32ad67
authored
May 20, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新紧急版本
1 parent
51dc5da4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
9 deletions
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
src/views/tagsManage/components/tagGroup.vue
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
View file @
df32ad6
...
@@ -13,24 +13,30 @@
...
@@ -13,24 +13,30 @@
<span>
<span>
营销人群
营销人群
</span>
</span>
<span>
展开营销人群
<span
v-if=
"itemArr.length > 4 && !closeFlag"
@
click=
"expandClick('expand')"
>
展开营销人群
<i
class=
"el-icon-arrow-down color-58"
></i>
<i
class=
"el-icon-arrow-down color-58"
></i>
</span>
</span>
<span
v-if=
"closeFlag"
@
click=
"expandClick('close')"
>
收起营销人群
<i
class=
"el-icon-arrow-up color-58"
></i>
</span>
</div>
</div>
<el-divider></el-divider>
<el-divider></el-divider>
<!-- 营销人群展示 -->
<!-- 营销人群展示 -->
<div
class=
"marketItem"
>
<div
class=
"bigMarketItem"
>
<div
class=
"marketItem"
v-for=
"(item, idx) in itemArr"
:key=
"idx"
>
<p
class=
"peopleName"
>
人群名称
</p>
<p
class=
"peopleName"
>
人群名称
</p>
<div
class=
"itemBox"
>
<div
class=
"itemBox"
>
<p
class=
"peopleNum"
>
<p
class=
"peopleNum"
>
111
{{
item
.
num
}}
<span>
人
</span>
<span>
人
</span>
</p>
</p>
<p
class=
"peopledesc"
>
上次到店满30天,不满40天的待定保客户
</p>
<p
class=
"peopledesc"
>
{{
item
.
desc
}}
</p>
<el-button
class=
"createSOP"
>
创建营销SOP
</el-button>
<el-button
class=
"createSOP"
>
创建营销SOP
</el-button>
</div>
</div>
</div>
</div>
<
el-progress
:percentage=
"percentage"
color=
"#eee"
></el-progress
>
<
/div
>
</div>
</div>
<div
class=
"otherPageContent"
>
<div
class=
"otherPageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"marketPeopleFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"marketPeopleFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
...
@@ -62,6 +68,16 @@ export default {
...
@@ -62,6 +68,16 @@ export default {
return
{
return
{
activeName
:
'first'
,
activeName
:
'first'
,
searchForm
:
{},
searchForm
:
{},
closeFlag
:
false
,
//展开收起
itemArr
:
[
{
num
:
562
,
desc
:
'不该他basdbajsda'
},
{
num
:
323
,
desc
:
'我顶着大太阳,只想为你撑伞'
},
{
num
:
1312
,
desc
:
'你专心在画睫毛,我专心在等你笑'
},
{
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛'
},
// { num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' },
// { num: 1233, desc: '美人鱼的眼泪' },
// { num: 1233, desc: '美人鱼的眼泪' }
],
marketPeopleFormList
:
[
marketPeopleFormList
:
[
{
{
type
:
'input'
,
type
:
'input'
,
...
@@ -223,6 +239,13 @@ export default {
...
@@ -223,6 +239,13 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
expandClick
(
val
){
if
(
val
==
'expand'
){
this
.
closeFlag
=
true
}
else
{
this
.
closeFlag
=
false
}
},
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
marketPeople
.
data
.
length
?
(
this
.
$refs
.
marketPeople
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketPeople
.
setTableHeightFun
()
this
.
$refs
.
marketPeople
.
data
.
length
?
(
this
.
$refs
.
marketPeople
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketPeople
.
setTableHeightFun
()
},
},
...
@@ -269,9 +292,21 @@ export default {
...
@@ -269,9 +292,21 @@ export default {
color
:
#5850ff
;
color
:
#5850ff
;
}
}
}
}
.
m
arketItem
{
.
bigM
arketItem
{
padding
:
0
20px
;
padding
:
0
20px
;
width
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
//
overflow-x
:
auto
;
//
white-space
:
nowrap
;
//
overflow
:
hidden
;
.marketItem
{
margin-right
:
16px
;
width
:
23%
;
width
:
23%
;
&:last-child
{
margin-right
:
0
;
}
.peopleName
{
.peopleName
{
height
:
54px
;
height
:
54px
;
line-height
:
54px
;
line-height
:
54px
;
...
@@ -311,6 +346,7 @@ export default {
...
@@ -311,6 +346,7 @@ export default {
}
}
}
}
}
}
}
}
}
.otherPageContent
{
.otherPageContent
{
padding
:
20px
20px
30px
;
padding
:
20px
20px
30px
;
...
...
src/views/tagsManage/components/tagGroup.vue
View file @
df32ad6
...
@@ -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