Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-customer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 63282e2b
authored
Jan 11, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
6d007106
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
63 deletions
src/views/tag/make.vue
src/views/tag/make.vue
View file @
63282e2
<
template
>
<van-popup
v-model=
"tagShow"
position=
"bottom"
:style=
"
{ height: '90%' }"
@click-overlay="clickOverlay"
>
<van-popup
v-model=
"tagShow"
position=
"bottom"
:style=
"
{ height: '90%' }" @click-overlay="clickOverlay">
<template
v-if=
"tagFlag"
>
<div
class=
"container-pop"
>
<search
placeholder=
"请输入关键字"
:keyword=
"keyWord"
@
search=
"searchkeyWord"
></search>
<search
placeholder=
"请输入关键字"
:keyword=
"keyWord"
@
search=
"searchkeyWord"
></search>
<div
class=
"contentWrap"
>
<van-list
:finished=
"finished"
finished-text=
""
offset=
"100"
:immediate-check=
"false"
>
<div
class=
"close-container"
v-if=
"checkAll.length > 0"
>
<van-list
:finished=
"finished"
finished-text=
""
offset=
"100"
:immediate-check=
"false"
>
<div
class=
"close-container"
v-if=
"checkAll.length > 0"
>
<div
class=
"nav-icon"
>
<img
src=
"../../assets/images/icon/nav-icon.png"
/>
</div>
<template
v-for=
"(closeTag, i) in checkAll"
>
<div
class=
"close-tag"
@
click=
"close(closeTag, i)"
:key=
"i"
>
<div
class=
"close-tag"
@
click=
"close(closeTag, i)"
:key=
"i"
>
{{
closeTag
.
taggingName
}}
<img
src=
"../../assets/images/icon/close-icon.png"
/>
</div>
...
...
@@ -39,61 +18,31 @@
</div>
<div
class=
"tag-container"
>
<
template
v-if=
"tagList.length > 0"
>
<div
class=
"tag-type"
v-for=
"(item, index) in tagList"
:key=
"index"
>
<div
class=
"tag-type"
v-for=
"(item, index) in tagList"
:key=
"index"
>
<div
class=
"tag-title"
>
{{
item
.
groupName
}}
</div>
<div
class=
"tag-list"
>
<template
v-for=
"(tag, ids) in item.taggingList"
>
<div
:key=
"ids"
:class=
"[ 'text-center', 'tag',
{ active: tag.isChecked || tag.disabled }]"
@click="chooseTag(index, ids)"
>
{{
tag
.
taggingName
}}
</div>
<div
:key=
"ids"
:class=
"['text-center', 'tag',
{ active: tag.isChecked || tag.disabled }]" @click="chooseTag(index, ids)">
{{
tag
.
taggingName
}}
</div>
</
template
>
</div>
</div>
</template>
<empty
v-else
description=
"没有找到你搜索的内容"
/>
<empty
v-else
description=
"没有找到你搜索的内容"
/>
</div>
</van-list>
</div>
<div
class=
"pop-footer"
>
<div
class=
"reset"
@
click=
"reset"
>
重置
</div>
<div
class=
"reset"
@
click=
"reset"
>
重置
</div>
<div
class=
"flex"
>
<van-button
class=
"my-pop-cancel-button"
@
click=
"toggle"
round
>
取消
</van-button>
<van-button
class=
"my-pop-button"
round
color=
"#3975C6"
@
click=
"handleTag"
>
打标签({{checkAll.length}})
</van-button>
<van-button
class=
"my-pop-cancel-button"
@
click=
"toggle"
round
>
取消
</van-button>
<van-button
class=
"my-pop-button"
round
color=
"#3975C6"
@
click=
"handleTag"
>
打标签({{ checkAll.length }})
</van-button>
</div>
</div>
</div>
</template>
<
template
v-else
>
<div
class=
"loading text-center"
>
<van-loading
color=
"#3975c6"
size=
"80"
text-size=
"18"
vertical
>
加载中...
</van-loading>
<van-loading
color=
"#3975c6"
size=
"80"
text-size=
"18"
vertical
>
加载中...
</van-loading>
</div>
</
template
>
</van-popup>
...
...
@@ -312,6 +261,8 @@ export default {
flex-wrap
:
wrap
;
gap
:
10px
12px
;
.tag
{
margin-right
:
6px
;
margin-bottom
:
6px
;
padding
:
4px
12px
;
font-size
:
14px
;
font-weight
:
400
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment