Commit e439501c by liuchenxi

update: 标签

parent 9d71eadb
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</ul> </ul>
<span slot="footer"> <span slot="footer">
<el-button @click="dialogVisible = false">取消</el-button> <el-button @click="dialogVisible = false">取消</el-button>
<el-button type="primary" @click="doClean" :disabled="delTime > 0 || !trashList.length">{{ delTime > 0 ? getDelTime() : '删除' }}</el-button> <el-button type="primary" @click="doClean" :disabled="!trashList.length">{{ delTime > 0 ? getDelTime() : '删除' }}</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
return `倒计时: ${h}h:${m}min:${s}s`; return `倒计时: ${h}h:${m}min:${s}s`;
}, },
doClean() { doClean() {
if (this.delTime) return; if (this.delTime > 0) return this.$message.error('当前有正在删除的标签/标签值,删除完成后才能再次操作删除任务');
cleanTrashList().then(res => { cleanTrashList().then(res => {
const { errorCode, message } = res; const { errorCode, message } = res;
if (errorCode != 1) return this.$message.error(message); if (errorCode != 1) return this.$message.error(message);
......
...@@ -67,7 +67,7 @@ const validateTagValue = (rule, value, cb) => { ...@@ -67,7 +67,7 @@ const validateTagValue = (rule, value, cb) => {
const validateTagSort = (rule, value, cb) => { const validateTagSort = (rule, value, cb) => {
const res = /^[0-9]+$/; const res = /^[0-9]+$/;
if (!res.test(value) || value > 100000 || value < 1) { if (!res.test(value) || value > 100000 || value < 1) {
cb(new Error('仅支持输入1-1-100000之间的整数')) cb(new Error('仅支持输入1-100000之间的整数'))
} }
cb(); cb();
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="tag-all"> <div class="tag-all">
<p class="tag-name"> <p class="tag-name">
<span class="sub-title"><dm-sub-title :text="showSearchResult ? `【${tagName}】搜索结果` : tagName"/></span> <span class="sub-title"></span>
<el-button <el-button
type="primary" type="primary"
class="add-newtag" class="add-newtag"
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
class="add-newtag" class="add-newtag"
placeholder="请输入标签名称" placeholder="请输入标签名称"
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
style="width: 260px" style="width: 260px;float: left"
v-model="memberTag" v-model="memberTag"
@keyup.native.enter="searchMemberList" @keyup.native.enter="searchMemberList"
@clear="allTagList" @clear="allTagList"
...@@ -757,6 +757,7 @@ export default { ...@@ -757,6 +757,7 @@ export default {
}, },
// 点击活动标签、手工标签 // 点击活动标签、手工标签
handleClick() { handleClick() {
this.params.pageNum = 1;
this.memberTag = ''; this.memberTag = '';
const { activeTag, tagList, allTagList, handleFristTag } = this; const { activeTag, tagList, allTagList, handleFristTag } = this;
if (activeTag === 'system') { if (activeTag === 'system') {
...@@ -939,6 +940,7 @@ export default { ...@@ -939,6 +940,7 @@ export default {
padding-bottom: 40px; padding-bottom: 40px;
overflow-y: auto; overflow-y: auto;
.tag-name { .tag-name {
overflow: hidden;
line-height: 34px; line-height: 34px;
padding: 20px; padding: 20px;
font-size: 16px; font-size: 16px;
...@@ -951,7 +953,6 @@ export default { ...@@ -951,7 +953,6 @@ export default {
} }
.add-newtag { .add-newtag {
float: right; float: right;
margin-bottom: 10px;
margin-left: 15px; margin-left: 15px;
} }
} }
......
...@@ -179,6 +179,7 @@ export default { ...@@ -179,6 +179,7 @@ export default {
cursor: pointer; cursor: pointer;
color: #303133; color: #303133;
transition: all .3s; transition: all .3s;
color: #2f54eb;
&:hover { &:hover {
transform: scale(1.25); transform: scale(1.25);
} }
......
...@@ -124,6 +124,7 @@ export default { ...@@ -124,6 +124,7 @@ export default {
cursor: pointer; cursor: pointer;
color: #303133; color: #303133;
transition: all 0.3s; transition: all 0.3s;
color: #2f54eb;
&:hover { &:hover {
transform: scale(1.25); transform: scale(1.25);
} }
...@@ -143,11 +144,9 @@ export default { ...@@ -143,11 +144,9 @@ export default {
line-height: 22px; line-height: 22px;
font-size: 12px; font-size: 12px;
&.keep-active { &.keep-active {
background: #dee3fc;
color: #2f54eb; color: #2f54eb;
} }
&.no-active { &.no-active {
background: #feecda;
color: #fa8c16; color: #fa8c16;
} }
} }
......
...@@ -236,6 +236,7 @@ export default { ...@@ -236,6 +236,7 @@ export default {
font-size: 16px; font-size: 16px;
cursor: pointer; cursor: pointer;
transition: all .3s; transition: all .3s;
color: #2f54eb;
&:hover { &:hover {
transform: scale(1.25); transform: scale(1.25);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment