Commit 825678ee by liuchenxi

update: 标签

parent 9f0850d4
......@@ -232,7 +232,8 @@ export default {
if (errorCode === 1) {
this.optionsTwo = result;
if (currentType == 'active' && !this.isEdit) {
this.ruleForm.tagTwoLevelGroupId = result.find(el => el.name === '渠道标签').id;
const find = result.find(el => el.name === '渠道标签');
this.ruleForm.tagTwoLevelGroupId = find ? find.id : find;
this.getOptionsThree(this.ruleForm.tagTwoLevelGroupId);
}
}
......
......@@ -566,6 +566,7 @@ export default {
},
// 新增第三级手工标签
editHandTag(list) {
console.log(list);
/**
* 第一级标签切换时,重置manualTagPop.tagTwoLevelGroupId和manualTagPop.tagLevelGroupId为空
* 第二级标签切换时,修改manualTagPop.tagTwoLevelGroupId为当前第二级标签的tagLevelGroupId,重置manualTagPop.tagLevelGroupId为空
......
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