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 db5fdc2e
authored
Jun 13, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增/编辑sop,标签弹窗样式修改
1 parent
346f9d6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
9 deletions
src/components/selectTag/index.vue
src/components/selectTag/index.vue
View file @
db5fdc2
<
template
>
<
template
>
<div
class=
"tag-main"
>
<div
class=
"tag-main
select-tag
"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"70%"
:before-close=
"handleClose"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-panel-select"
>
...
@@ -26,14 +26,21 @@
...
@@ -26,14 +26,21 @@
<div
class=
"tag-select-box"
>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<template
v-for=
"item in labelTreeRetSelect"
>
<div
v-show=
"!!selectNum"
class=
"tag-line-and"
:style=
"
{ height: heightBox + 'px' }">
<template
v-for=
"(tag, idx) in item.tagChecked"
>
<p
class=
"tag-line"
></p>
<el-tag
:title=
"tag.name"
type=
"info"
class=
"customer-tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
<p
class=
"tag-and"
:style=
"
{ top: heightBox / 2 - 20 + 'px' }">且
</p>
<!--
{{
tag
.
name
}}
-->
</div>
{{
tag
.
name
.
length
>
11
?
tag
.
name
.
slice
(
0
,
11
)
+
'...'
:
tag
.
name
}}
<div
class=
"label-box"
>
</el-tag>
<div
v-for=
"(item, index) in labelTreeRetSelect"
:key=
"index"
>
</
template
>
<p
class=
"tag-selected-label"
v-show=
"item.tagChecked.length"
>
{{
item
.
labelGroup
.
name
}}
:
</p>
</template>
<span
v-for=
"(tag, idx) in item.tagChecked"
:key=
"idx"
>
<span
class=
"tag-txt"
v-show=
"idx != 0"
>
或
</span>
<el-tag
:title=
"tag.name"
type=
"info"
class=
"customer-tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
{{
tag
.
name
.
length
>
11
?
tag
.
name
.
slice
(
0
,
11
)
+
'...'
:
tag
.
name
}}
</el-tag>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -274,6 +281,44 @@ export default {
...
@@ -274,6 +281,44 @@ export default {
text-decoration
:
underline
;
text-decoration
:
underline
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.select-tag
{
.label-box
{
margin-left
:
42px
;
height
:
100%
;
overflow-y
:
scroll
;
}
.tag-selected-label
{
margin
:
9px
0
;
}
.tag-line-and
{
position
:
relative
;
}
.tag-line
{
position
:
absolute
;
left
:
17px
;
border
:
1px
solid
rgba
(
88
,
80
,
255
,
1
);
border-width
:
0
0
0
1px
;
height
:
100%
;
}
.tag-and
{
position
:
absolute
;
background
:
#efeeff
;
border
:
1px
solid
rgba
(
88
,
80
,
255
,
1
);
border-radius
:
4px
;
padding
:
10px
;
z-index
:
20
;
}
.tag-txt
{
padding
:
0
8px
;
}
.customer-tag-selected-item
{
background
:
#f4f6fc
!important
;
border
:
1px
solid
rgba
(
232
,
232
,
234
,
1
)
!important
;
border-radius
:
4px
;
height
:
26px
;
line-height
:
26px
;
}
}
.tag-panel
{
.tag-panel
{
display
:
flex
;
display
:
flex
;
.tag-panel-select
{
.tag-panel-select
{
...
@@ -360,5 +405,6 @@ export default {
...
@@ -360,5 +405,6 @@ export default {
}
}
.tag-selected-box
{
.tag-selected-box
{
min-height
:
200px
;
min-height
:
200px
;
display
:
flex
;
}
}
</
style
>
</
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