Commit 795a7ef9 by chenyu

update: 优化

parent 8ddb50b5
......@@ -233,13 +233,6 @@ export default {
methods: {
// 返回手工标签列表
back() {
// console.log(this.tagInfo);
// return
// const levelGroupInfo = {
// id: this.tagInfo.tagLevelGroupId,
// name: this.tagInfo.tagLevelGroupName
// };
// localStorage.setItem('groupId', JSON.stringify(levelGroupInfo));
this.$router.push('/member-tag');
},
......
......@@ -28,7 +28,7 @@
</p>
<p class="tips" v-if="tagName == '金字塔会员分层' && !memberTagGradeEnsure">暂未开通金字塔分层功能,无法使用该标签,可以联系达摩项目经理进行开通!</p>
<tag-container @peopleHandTag="peopleHandTag" @deleteHandTag="deleteHandTag" :data="memberTagList" :handTag="handTag" :groupId="groupId" :refersh="refershList" @addTag="selectedTag" @editHandTag="editHandTag" ref="tagContainer" :isWeim="weimId.includes(groupId || params.id)" />
<tag-container @setGroupId="setGroupId" @peopleHandTag="peopleHandTag" @deleteHandTag="deleteHandTag" :data="memberTagList" :handTag="handTag" :groupId="groupId" :refersh="refershList" @addTag="selectedTag" @editHandTag="editHandTag" ref="tagContainer" :isWeim="weimId.includes(groupId || params.id)" />
<div class="page-box" v-if="total > 0">
<dm-pagination
......@@ -520,6 +520,7 @@ export default {
refersh: false
}));
this.total = Data.result.totalCount;
localStorage.setItem('groupId', '');
} else {
this.memberTagList = [];
this.total = 0;
......@@ -587,13 +588,6 @@ export default {
this.manualTagPop.tagTwoLevelGroupId = '';
this.manualTagPop.tagLevelGroupId = '';
this.changeTagTitle(list.name);
if (list.handTag) {
const levelGroupInfo = {
id: list.id,
name: list.name
};
localStorage.setItem('groupId', JSON.stringify(levelGroupInfo));
}
},
changeTagTitle(name) {
this.tagName = name || '全部标签';
......@@ -654,9 +648,13 @@ export default {
}
})
},
// onLoadV() {
// localStorage.setItem('jumpThirdTag', '');
// }
setGroupId(){
const levelGroupInfo = {
id: this.groupId,
name: this.tagName
};
localStorage.setItem('groupId', JSON.stringify(levelGroupInfo));
}
},
beforeMount() {
......@@ -727,13 +725,6 @@ export default {
this.groupId = list.id;
this.saveTagLevelGroupId(list);
this.loadMemberTagList(this.params);
if (list.handTag) {
const levelGroupInfo = {
id: list.id,
name: list.name
};
localStorage.setItem('groupId', JSON.stringify(levelGroupInfo));
}
this.manualTagPop.tagTwoLevelGroupId = list.tagLevelGroupId;
this.manualTagPop.tagLevelGroupId = '';
this.changeTagTitle(list.name);
......@@ -759,13 +750,6 @@ export default {
this.groupId = list.id;
this.handTag = list.handTag;
this.loadMemberTagList(this.params);
if (list.handTag) {
const levelGroupInfo = {
id: list.id,
name: list.name
};
localStorage.setItem('groupId', JSON.stringify(levelGroupInfo));
}
this.manualTagPop.tagTwoLevelGroupId = list.parentLevelGroupId;
this.manualTagPop.tagLevelGroupId = list.tagLevelGroupId;
this.changeTagTitle(list.name);
......
......@@ -93,6 +93,7 @@ export default {
this.$emit('editHandTag', list);
},
editHandTagValue(list) {
this.$emit('setGroupId')
localStorage.setItem('jumpTag', '');
localStorage.setItem('jumpThirdTag', '');
this.$router.push({
......
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