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
4ea16765
Commit
4ea16765
authored
Apr 15, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.解决搜索框不能搜索标签的问题
2.解决选择的标签不能显示的问题
parent
9477b73a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
tags-group-list.vue
src/view/memberGroup/tags-group-list.vue
+11
-6
No files found.
src/view/memberGroup/tags-group-list.vue
View file @
4ea16765
...
...
@@ -27,9 +27,9 @@
</div>
<div
class=
"tags-table"
>
<div
class=
"tags-search"
>
<el-input
type=
"search"
placeholder=
"请输入关键词回车搜索标签"
prefix-icon=
"el-icon-search"
@
keydown
.
native
.
enter=
"searchTags"
></el-input>
<el-input
type=
"search"
placeholder=
"请输入关键词回车搜索标签"
prefix-icon=
"el-icon-search"
v-model=
"searchData"
@
keydown
.
native
.
enter=
"searchTags"
></el-input>
</div>
<tag-container
:data=
"tagsGroupList"
></tag-container>
<tag-container
:data=
"tagsGroupList"
@
returnTagData=
"returnTagData"
></tag-container>
<div
class=
"page-box"
>
<el-pagination
background
...
...
@@ -72,7 +72,7 @@ export default {
type
:
Number
,
default
:
0
},
// 标签数据
//
选中的
标签数据
selectedTagsData
:
Array
,
// 标签组之间的关系
tagsGroupRelation
:
Array
,
...
...
@@ -94,6 +94,8 @@ export default {
tagsList
:
[],
// 一组标签的数据
tagsGroupList
:
[],
// 搜索框
searchData
:
''
,
// 分页相关
pageNum
:
1
,
...
...
@@ -189,11 +191,11 @@ export default {
});
},
// 搜索标签
searchTags
(
e
)
{
if
(
e
.
target
.
value
)
{
searchTags
()
{
if
(
this
.
searchData
.
length
>
0
)
{
this
.
pageNum
=
1
;
this
.
getTagsGroupList
({
searchName
:
e
.
target
.
value
searchName
:
this
.
searchData
});
}
},
...
...
@@ -223,6 +225,9 @@ export default {
return
this
.
selectedTagsData
.
some
(
tagsGroup
=>
{
return
tagsGroup
.
some
(
el
=>
el
.
tagId
===
tagData
.
tagId
);
});
},
returnTagData
(
tagData
)
{
this
.
selectedTagsData
[
this
.
activeTagsGroupIndex
].
push
(
tagData
);
}
},
mounted
()
{
...
...
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