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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
109 additions
and
59 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
v-if=
"closeFlag"
@
click=
"expandClick('close')"
>
收起营销人群
<i
class=
"el-icon-arrow-up color-58"
></i>
</span>
</span>
</div>
</div>
<el-divider></el-divider>
<el-divider></el-divider>
<!-- 营销人群展示 -->
<!-- 营销人群展示 -->
<div
class=
"marketItem"
>
<div
class=
"bigMarketItem"
>
<p
class=
"peopleName"
>
人群名称
</p>
<div
class=
"marketItem"
v-for=
"(item, idx) in itemArr"
:key=
"idx"
>
<div
class=
"itemBox"
>
<p
class=
"peopleName"
>
人群名称
</p>
<p
class=
"peopleNum"
>
<div
class=
"itemBox"
>
111
<p
class=
"peopleNum"
>
<span>
人
</span>
{{
item
.
num
}}
</p>
<span>
人
</span>
<p
class=
"peopledesc"
>
上次到店满30天,不满40天的待定保客户
</p>
</p>
<el-button
class=
"createSOP"
>
创建营销SOP
</el-button>
<p
class=
"peopledesc"
>
{{
item
.
desc
}}
</p>
<el-button
class=
"createSOP"
>
创建营销SOP
</el-button>
</div>
</div>
</div>
</div>
</div>
<el-progress
:percentage=
"percentage"
color=
"#eee"
></el-progress>
</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>
...
@@ -47,7 +53,7 @@
...
@@ -47,7 +53,7 @@
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"营销计划"
name=
"second"
>
<el-tab-pane
label=
"营销计划"
name=
"second"
>
<marketing-plan></marketing-plan>
<marketing-plan></marketing-plan>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
...
@@ -57,11 +63,21 @@
...
@@ -57,11 +63,21 @@
import
marketingPlan
from
'./components/marketingPlan.vue'
import
marketingPlan
from
'./components/marketingPlan.vue'
export
default
{
export
default
{
name
:
'marketPeople'
,
name
:
'marketPeople'
,
components
:
{
marketingPlan
},
components
:
{
marketingPlan
},
data
()
{
data
()
{
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
()
},
},
...
@@ -230,7 +253,7 @@ export default {
...
@@ -230,7 +253,7 @@ export default {
this
.
$refs
.
marketPeople
.
setTableHeightFun
()
this
.
$refs
.
marketPeople
.
setTableHeightFun
()
},
},
handleClick
(
tab
)
{
handleClick
(
tab
)
{
console
.
log
(
tab
)
console
.
log
(
tab
)
}
}
}
}
}
}
...
@@ -266,48 +289,61 @@ export default {
...
@@ -266,48 +289,61 @@ export default {
font-weight
:
600
;
font-weight
:
600
;
color
:
#333333
;
color
:
#333333
;
span
:
last-child
{
span
:
last-child
{
color
:
#5850ff
;
color
:
#5850ff
;
}
}
}
}
.
m
arketItem
{
.
bigM
arketItem
{
padding
:
0
20px
;
padding
:
0
20px
;
width
:
23%
;
width
:
100%
;
.peopleName
{
display
:
flex
;
height
:
54px
;
line-height
:
54px
;
flex-wrap
:
wrap
;
background
:
#f7f7fc
;
//
overflow-x
:
auto
;
font-size
:
16px
;
//
white-space
:
nowrap
;
font-weight
:
600
;
//
overflow
:
hidden
;
padding-left
:
16px
;
.marketItem
{
vertical-align
:
middle
;
margin-right
:
16px
;
}
width
:
23%
;
.itemBox
{
&:last-child
{
border-left
:
1px
solid
#ededf0
;
margin-right
:
0
;
border-right
:
1px
solid
#ededf0
;
}
border-bottom
:
1px
solid
#ededf0
;
.peopleName
{
padding
:
0
16px
;
height
:
54px
;
box-sizing
:
border-box
;
line-height
:
54px
;
.peopleNum
{
background
:
#f7f7fc
;
padding
:
24px
0
;
font-size
:
16px
;
font-size
:
26px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#333333
;
padding-left
:
16px
;
span
{
vertical-align
:
middle
;
}
.itemBox
{
border-left
:
1px
solid
#ededf0
;
border-right
:
1px
solid
#ededf0
;
border-bottom
:
1px
solid
#ededf0
;
padding
:
0
16px
;
box-sizing
:
border-box
;
.peopleNum
{
padding
:
24px
0
;
font-size
:
26px
;
font-weight
:
600
;
color
:
#333333
;
span
{
font-size
:
14px
;
font-weight
:
400
;
}
}
.peopledesc
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#666666
;
}
.createSOP
{
margin
:
24px
0
;
border-radius
:
4px
;
border
:
1px
solid
#5850ff
;
width
:
100%
;
color
:
#5850ff
;
padding
:
9px
20px
;
}
}
}
.peopledesc
{
font-size
:
14px
;
color
:
#666666
;
}
.createSOP
{
margin
:
24px
0
;
border-radius
:
4px
;
border
:
1px
solid
#5850ff
;
width
:
100%
;
color
:
#5850ff
;
padding
:
9px
20px
;
}
}
}
}
}
}
...
...
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,15 +170,23 @@ export default {
...
@@ -166,15 +170,23 @@ 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
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
maxHeight
=
this
.
$parent
.
heightBox
-
80
-
nodeHeight
+
'px'
if
(
domNode
)
{
document
.
querySelector
(
'.el-tree>.el-tree-node.is-expanded .el-tree-node__children'
).
style
.
overflow
=
'auto'
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
.
overflow
=
'auto'
}
},
},
nodeExpand
()
{
nodeExpand
(
data
,
node
,
target
)
{
this
.
$nextTick
(()
=>
{
if
(
data
.
sort
)
{
this
.
setTreeHeight
()
this
.
$nextTick
(()
=>
{
})
const
domNode
=
target
.
$refs
.
node
.
lastElementChild
this
.
setTreeHeight
(
domNode
)
})
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -182,6 +194,7 @@ export default {
...
@@ -182,6 +194,7 @@ export default {
}
}
}
}
</
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
{
...
@@ -251,4 +265,4 @@ export default {
...
@@ -251,4 +265,4 @@ export default {
}
}
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
style
>
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