Commit c5c4b25b by caoyanzhi

修复会员标签选择值未显示的bug

parent ada5ab99
......@@ -4,7 +4,7 @@
<ul class="tag-list">
<li class="tag-item" v-for="tag in tags" :key="tag.tagId">
<span>{{ tag.tagName }}</span>
<span class="tags-item__name">【选择:{{ tag.newTagVal }}</span>
<span class="tags-item__name">【选择:{{ getTagVal(tag) }}</span>
</li>
</ul>
<div v-if="(index === 0 && tagsList.length > 1) || (index === 1 && tagsList.length > 2)" class="tag-relation">
......@@ -26,6 +26,12 @@ export default {
type: Array,
required: true
}
},
methods: {
getTagVal(tagData) {
const tag = JSON.parse(tagData.tagParams);
return tag.selectedVal;
}
}
};
</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