Commit c20aebd5 by 无尘

fix: 修改标签

parent d2abc141
......@@ -14,7 +14,7 @@
<div class="clerk-tag-add text-center">
<el-button icon="el-icon-plus" @click="toAddCate">新建分类</el-button>
</div>
<tag-classify-list :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
<tag-classify-list :tag-list="tagsClassifyData" :brand-id="brandId" @refreshClassify="refreshClassify" @changeClass="changeClass"></tag-classify-list>
</div>
<div class="clerk-tag-right p-20 border-box">
<div class="clerk-tag-search">
......@@ -333,7 +333,7 @@ export default {
.then(res => {
that.tagsClassifyData = res.result || [];
if (res.result && res.result.length) {
that.currentClassify = that.currentClassify ? that.currentClassify : res.result[0].classifyId;
that.currentClassify = that.currentClassify ? that.currentClassify : res.result[0].categoryId;
that.getTableList();
}
})
......@@ -342,7 +342,16 @@ export default {
});
}
},
watch: {}
watch: {
brandId(val) {
const that = this;
if (val) {
that.searchVal = '';
that.currentClassify = '';
that.getClassifyList();
}
}
}
};
</script>
<style lang='less' scoped>
......
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