Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
memberTag
memberTag-web
Commits
0fa8bf32
Commit
0fa8bf32
authored
Apr 29, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决分组详情标签显示问题
parent
1088c45b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
selected-tags-list.vue
src/components/selected-tags-list.vue
+8
-3
memberGroupDetail.vue
src/view/memberGroup/memberGroupDetail.vue
+0
-3
No files found.
src/components/selected-tags-list.vue
View file @
0fa8bf32
<
template
>
<div
class=
"flex m-t-20 tags"
>
<div
v-for=
"(tags, index) in tagsList"
:key=
"tags"
:style=
"`width: $
{100 / tagsList.length}%`" class="tag-group">
<div
v-for=
"(tags, index) in tagsList
Filter
"
:key=
"tags"
:style=
"`width: $
{100 / tagsList.length}%`" class="tag-group">
<ul
class=
"tag-list"
>
<li
class=
"tag-item"
v-for=
"tag in tags"
:key=
"tag.tagId"
>
<span>
{{
tag
.
tagName
}}
</span>
<span
class=
"tags-item__name"
>
【选择:
{{
getTagVal
(
tag
)
}}
】
</span>
</li>
</ul>
<div
v-if=
"(index === 0 && tagsList
.length > 1) || (index === 1 && tagsList
.length > 2)"
class=
"tag-relation"
>
<div
v-if=
"(index === 0 && tagsList
Filter.length > 1) || (index === 1 && tagsListFilter
.length > 2)"
class=
"tag-relation"
>
<span
class=
"tag-relation__wrap"
>
<i
class=
"tag-relation__cont"
>
{{
tags
List
[
index
][
0
].
levelType
===
'or'
?
'或者'
:
tagsList
[
index
]
[
0
].
levelType
===
'andNot'
?
'剔除'
:
''
}}
{{
tags
[
0
].
levelType
===
'or'
?
'或者'
:
tags
[
0
].
levelType
===
'andNot'
?
'剔除'
:
''
}}
</i>
</span>
</div>
...
...
@@ -27,6 +27,11 @@ export default {
required
:
true
}
},
computed
:
{
tagsListFilter
()
{
return
this
.
tagsList
.
filter
(
tags
=>
tags
.
length
>
0
);
}
},
methods
:
{
getTagVal
(
tagData
)
{
const
tag
=
JSON
.
parse
(
tagData
.
tagParams
);
...
...
src/view/memberGroup/memberGroupDetail.vue
View file @
0fa8bf32
...
...
@@ -418,9 +418,6 @@ export default {
list
.
forEach
(
li
=>
{
li
.
tagParams
&&
(
li
.
tagParams
=
JSON
.
parse
(
li
.
tagParams
));
});
list
[
0
][
0
].
levelType
=
'or'
;
list
[
1
]
=
list
[
0
];
list
[
2
]
=
list
[
0
];
this
.
selectedTagData
=
list
;
})
.
catch
(
e
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment