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
710ea508
Commit
710ea508
authored
Jun 12, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复可以重复添加标签的bug
parent
91b53a0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
member-tag.vue
src/view/platformTag/member-tag.vue
+11
-7
No files found.
src/view/platformTag/member-tag.vue
View file @
710ea508
...
...
@@ -383,7 +383,16 @@ export default {
tagData
.
level
=
this
.
activeTagsGroupIndex
;
switch
(
this
.
editPopType
)
{
case
'add'
:
this
.
selectedTags
[
this
.
activeTagsGroupIndex
].
push
(
tagData
);
const
isHad
=
this
.
selectedTags
[
this
.
activeTagsGroupIndex
].
some
(
item
=>
item
.
tagId
===
tagData
.
tagId
);
if
(
isHad
)
{
this
.
selectedTags
[
this
.
activeTagsGroupIndex
].
forEach
((
tag
,
tagIndex
)
=>
{
if
(
tag
.
tagId
===
tagData
.
tagId
)
{
this
.
selectedTags
[
this
.
activeTagsGroupIndex
].
splice
(
tagIndex
,
1
,
tagData
);
}
}
);
}
else
{
this
.
selectedTags
[
this
.
activeTagsGroupIndex
].
push
(
tagData
);
}
break
;
case
'edit'
:
// 注意有坑
...
...
@@ -403,12 +412,7 @@ export default {
}
,
// 新增选择标签
selectedTag
(
tagData
)
{
if
(
tagData
.
refersh
)
{
// 表示是之前新增过的 要编辑一次
this
.
editPopType
=
'edit'
;
}
else
{
this
.
editPopType
=
'add'
;
}
this
.
editPopType
=
'add'
;
this
.
tagData
=
Object
.
assign
({
}
,
this
.
tagData
,
tagData
);
this
.
tagData
.
editCondition
=
false
;
this
.
showEditTagPop
=
true
;
...
...
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