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
ce296e1d
Commit
ce296e1d
authored
Apr 11, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化实现
parent
ab78ca19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
selected-tags-list.vue
src/components/selected-tags-list.vue
+7
-14
No files found.
src/components/selected-tags-list.vue
View file @
ce296e1d
<
template
>
<div
class=
"flex"
>
<ul>
<li
v-for=
"item in tagsList[0]"
:key=
"item.tagId"
></li>
</ul>
<div
v-if=
"tagsList[1] && tagsList[1].length > 0"
>
{{
tagsList
[
1
][
0
].
levelType
===
'or'
?
'或者'
:
tagsList
[
1
][
0
].
levelType
===
'andNot'
?
'剔除'
:
''
}}
<div
v-for=
"(tags, index) in tagsList"
:key=
"tags"
>
<ul>
<li
v-for=
"tag in tags"
:key=
"tag.tagId"
></li>
</ul>
<div
v-if=
"(index === 0 && tagsList.length > 1) || (index === 1 && tagsList.length > 2)"
>
{{
tagsList
[
index
][
0
].
levelType
===
'or'
?
'或者'
:
tagsList
[
index
][
0
].
levelType
===
'andNot'
?
'剔除'
:
''
}}
</div>
</div>
<ul>
<li
v-for=
"item in tagsList[1]"
:key=
"item.tagId"
></li>
</ul>
<div
v-if=
"tagsList[2] && tagsList[2].length > 0"
>
{{
tagsList
[
2
][
0
].
levelType
===
'or'
?
'或者'
:
tagsList
[
2
][
0
].
levelType
===
'andNot'
?
'剔除'
:
''
}}
</div>
<ul>
<li
v-for=
"item in tagsList[2]"
:key=
"item.tagId"
></li>
</ul>
</div>
</
template
>
...
...
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