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
c315a10f
Commit
c315a10f
authored
Sep 29, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可选标签组数量上限为5
parent
d99ef50c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
tags-group-list.vue
src/view/memberGroup/tags-group-list.vue
+9
-3
No files found.
src/view/memberGroup/tags-group-list.vue
View file @
c315a10f
...
...
@@ -4,7 +4,7 @@
v-for=
"(item, index) in selectedTagsData"
:key=
"item"
:tagsData=
"item"
:showTagsRelation=
"
(index === 0 && selectedTagsData.length > 1) || (index === 1 && selectedTagsData.length > 2)
"
:showTagsRelation=
"
index != selectedTagsData.length - 1
"
:tagsGroupIndex=
"index"
:tagsRelation=
"tagsGroupRelation[index]"
:showAddMenu=
"showAddMenu"
...
...
@@ -18,7 +18,7 @@
@
checkTagsGroup=
"checkTagsGroup"
@
dragTag=
"dragTag"
/>
<el-button
class=
"m-t-10 w-400 el-icon-plus color-blue add-group-btn"
v-show=
"selectedTagsData.length
<
3
"
@
click=
"addTagsGroup"
>
<el-button
class=
"m-t-10 w-400 el-icon-plus color-blue add-group-btn"
v-show=
"selectedTagsData.length
<
group
"
@
click=
"addTagsGroup"
>
添加
</el-button>
</div>
...
...
@@ -57,6 +57,12 @@ export default {
default
:
false
}
},
data
()
{
return
{
// 分组数量
group
:
5
}
},
components
:
{
tagsGroup
},
...
...
@@ -70,7 +76,7 @@ export default {
},
// 添加一个标签组,最多只能有3个标签组
addTagsGroup
()
{
if
(
this
.
selectedTagsData
.
length
<
3
)
{
if
(
this
.
selectedTagsData
.
length
<
this
.
group
)
{
this
.
selectedTagsData
.
push
([]);
this
.
selectedTagsData
.
length
>
1
&&
this
.
tagsGroupRelation
.
push
(
'or'
);
}
...
...
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