Commit 737186e4 by liuchenxi

update: 全部卡券回显

parent df31513f
......@@ -1134,6 +1134,7 @@ export default {
if(this.cardRadioType == 0) {
tagValue.val[0].data.value = '';
tagValue.val[0].data.compute = 'existOfAll';
tagParams.selectedVal = '全部卡券';
}
const para = {
tagId: that.tagShortId || this.tagId,
......
......@@ -21,8 +21,8 @@
<draggable v-model="tagsData" group="article" style="height: 100%" @end="dragTag" :move="checkMove" :sort="false" :data-index="tagsGroupIndex">
<div class="tags-group__tag" v-for="(item, index) in tagsData" :key="item.tagId">
<el-tooltip>
<span>{{ item.tagName }} 【选择:{{ getComputeType ? item.newTagVal : '全部卡券' }}</span>
<div style="max-width: 400px;font-size: 14px" slot="content">{{ item.tagName }} 【选择:{{ getComputeType ? item.newTagVal : '全部卡券' }}</div>
<span>{{ item.tagName }} 【选择:{{ item.newTagVal }}</span>
<div style="max-width: 400px;font-size: 14px" slot="content">{{ item.tagName }} 【选择:{{ item.newTagVal }}</div>
</el-tooltip>
<i class="iconfont icon-bianji1 edit" @click="editTags(index)"></i>
<i class="iconfont icon-guanbi" @click="delTags(index)"></i>
......@@ -150,12 +150,6 @@ export default {
this.changed = !relatedList.some(item => item.tagId === draggedElement.tagId);
return this.changed;
}
},
computed: {
getComputeType() {
console.log(JSON.parse(this.tagsData[0].tagValue).val[0].data.compute == 'in');
return JSON.parse(this.tagsData[0].tagValue).val[0].data.compute == 'in';
}
}
};
</script>
......
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