Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 e7d12a4b
authored
Feb 24, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
标签筛选修改
1 parent
8f39d1e9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
20 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/selectLabel.vue
src/views/customerTransform/addCustomer.vue
View file @
e7d12a4
...
...
@@ -697,7 +697,7 @@ export default {
align-items
:
center
;
}
.input-tag-wrapper
{
max-height
:
68
px
;
max-height
:
75
px
;
overflow
:
auto
;
position
:
relative
;
font-size
:
14px
;
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
e7d12a4
This diff is collapsed.
Click to expand it.
src/views/customerTransform/components/selectLabel.vue
View file @
e7d12a4
<
template
>
<div
class=
"tag-main"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"
7
0%"
:before-close=
"handleClose"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"
5
0%"
:before-close=
"handleClose"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
<el-input
size=
"small"
v-model=
"labelGroupName"
placeholder=
"请输入搜索内容"
></el-input>
<el-input
size=
"small"
v-model=
"labelGroupName"
placeholder=
"请输入搜索内容"
clearable
@
keydown
.
enter
.
native=
"handleSearch"
></el-input>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
<div
class=
"checkbox-group-box"
:style=
"
{ height: heightBox + 'px' }">
<div
style=
"margin-bottom: 8px"
v-for=
"(item, index) in labelTreeRets"
:key=
"index
"
>
<div
style=
"margin-bottom: 8px"
class=
"checkbox-box"
v-for=
"(item, index) in labelTreeRets"
:key=
"index"
@
click=
"item.checked = !item.checked
"
>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked }" @click="item.checked = !item.checked">
</span>
{{
item
.
labelGroup
.
name
}}
<el-tag
:size=
"size"
>
{{
item
.
labelType
}}
</el-tag>
<div
style=
"margin: 15px 0"
></div>
<el-radio-group
class=
"tag-group"
v-model=
"item.tagChecked"
v-show=
"item.checked"
>
<el-radio
v-for=
"(itm, idx) in item.labelList"
:label=
"itm"
:key=
"idx"
>
{{
itm
.
name
}}
</el-radio>
<div
v-for=
"(itm, idx) in item.labelList"
:key=
"idx"
class=
"radio-tag"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:disabled=
"itm.name.length
< 8
"
>
<el-radio
class=
"radio-text"
:label=
"itm"
>
{{
itm
.
name
}}
</el-radio>
<!--
<el-radio
:label=
"itm"
>
{{
itm
.
name
.
length
>
4
?
itm
.
name
.
slice
(
0
,
3
)
+
'...'
:
itm
.
name
}}
</el-radio>
-->
<div
slot=
"content"
>
{{
itm
.
name
}}
</div>
</el-tooltip>
</div>
</el-radio-group>
<!--
<el-radio-group
class=
"tag-group"
v-model=
"item.tagChecked"
@
change=
"handleCheckedChange(item.tagChecked, index)"
v-show=
"item.checked"
>
<el-radio
v-for=
"(itm, idx) in item.labelList"
:label=
"itm"
:key=
"idx"
>
{{
itm
.
name
}}
</el-radio>
</el-radio-group>
-->
</div>
</div>
</div>
...
...
@@ -149,7 +152,7 @@ export default {
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelId
=
item
.
labelList
[
0
].
id
let
index
=
tag
.
labelList
.
findIndex
(
iem
=>
iem
.
id
==
labelId
)
let
index
=
tag
.
labelList
.
findIndex
(
iem
=>
iem
.
id
==
labelId
)
console
.
log
(
index
)
// tag.tagChecked = item.tagChecked
tag
.
tagChecked
=
tag
.
labelList
[
index
]
...
...
@@ -191,6 +194,10 @@ export default {
.
filter
(
item
=>
item
)
console
.
log
(
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
},
handleReset
()
{
this
.
labelGroupName
=
''
this
.
querylabeltree
()
}
},
mounted
()
{
...
...
@@ -201,6 +208,9 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
//
::v-deep
.el-tag
{
//
color
:
red
!important
;
//
}
.dialog-jump
{
color
:
#5850ff
;
float
:
left
;
...
...
@@ -277,24 +287,47 @@ export default {
font-size
:
16px
;
}
.tag-group
{
margin-left
:
40
px
;
margin-left
:
26
px
;
display
:
flex
;
flex-wrap
:
wrap
;
.el-checkbox
{
width
:
40%
;
margin-bottom
:
6px
;
display
:
flex
;
align-items
:
center
;
.radio-tag{
display
:
inline-block
;
width
:
50%
;
.el-radio
{
margin
:
8px
0
;
display
:
inline-flex
;
align-items
:
center
;
/deep/.el-radio__label
{
display
:
inline-block
;
max-width
:
120px
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
word-wrap
:
break-word
;
}
}
}
}
}
}
.checkbox-group-box
{
overflow
:
auto
;
.el-tag
{
font-size
:
12px
;
border
:
none
;
background
:
rgba
(
$
color
:
#5850ff
,
$
alpha
:
0.3
);
.checkbox-box
{
cursor
:
pointer
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
/deep/
{
.el-tag
{
color
:
#aaa5fa
!important
;
font-size
:
12px
;
border
:
none
;
background
:
rgba
(
$
color
:
#5850ff
,
$
alpha
:
0.1
);
}
}
}
}
.tag-selected-box
{
...
...
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