Commit befd97fa by caoyanzhi

解决标签关系不对的问题

parent 93f6aefd
......@@ -331,7 +331,6 @@ export default {
data.newTagVal = JSON.stringify(tagParams.selectedVal);
data.level = this.activeTagsGroupIndex;
data.levelType = this.ruleForm.tagsGroupRelation[this.activeTagsGroupIndex] ? this.ruleForm.tagsGroupRelation[this.activeTagsGroupIndex] : 'or';
switch (this.editPopType) {
case 'add':
......
......@@ -269,6 +269,12 @@ export default {
},
createNewGroup() {
this.selectedTags.forEach((tagsGroup, tagsGroupIndex) => {
let relation = this.tagsGroupRelation[tagsGroupIndex];
tagsGroup.forEach(item => {
item.levelType = relation ? relation : 'or';
})
});
const param = {
groupName: this.tagConfig.groupName,
isRealTime: this.tagConfig.isRealTime,
......@@ -315,7 +321,6 @@ export default {
let tagParams = JSON.parse(tagData.tagParams);
tagData.newTagVal = JSON.stringify(tagParams.selectedVal);
tagData.level = this.activeTagsGroupIndex;
tagData.levelType = this.tagsGroupRelation[this.activeTagsGroupIndex] ? this.tagsGroupRelation[this.activeTagsGroupIndex] : 'or';
switch (this.editPopType) {
case 'add':
this.selectedTags[this.activeTagsGroupIndex].push(tagData);
......
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