1、发布商品页面细节调整
This commit is contained in:
parent
a994688726
commit
ead431bc9c
|
|
@ -45,9 +45,11 @@ export default {
|
|||
let catId = {
|
||||
brand: this.catId
|
||||
}
|
||||
catelogList(catId).then(res => {
|
||||
this.brands = res.data;
|
||||
})
|
||||
if (this.catId) {
|
||||
catelogList(catId).then(res => {
|
||||
this.brands = res.data;
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
|
@ -55,6 +57,17 @@ export default {
|
|||
created() {
|
||||
},
|
||||
mounted() {
|
||||
//监听清空选中值
|
||||
this.$bus.$on('clearBrandSelect', data => {
|
||||
this.brands = [
|
||||
{
|
||||
label: null,
|
||||
value: null
|
||||
}
|
||||
]
|
||||
this.brandId = null
|
||||
})
|
||||
|
||||
//监听三级分类消息的变化
|
||||
this.subscribe = PubSub.subscribe("catPath", (msg, val) => {
|
||||
this.catId = val[val.length - 1];
|
||||
|
|
|
|||
|
|
@ -68,6 +68,11 @@ export default {
|
|||
},
|
||||
|
||||
mounted() {
|
||||
this.$bus.$on('clearCategoryCascader', data => {
|
||||
this.paths = data
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -346,9 +346,9 @@
|
|||
<el-card class="box-card" style="width:80%;margin:20px auto">
|
||||
<el-result icon="success" title="保存成功" subTitle="">
|
||||
<template slot="extra">
|
||||
<el-button type="primary" @click="addAgian">继续添加</el-button>
|
||||
</template>
|
||||
</el-result>
|
||||
<el-button type="primary" @click="addAgian">继续添加</el-button>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
@ -469,7 +469,7 @@ export default {
|
|||
this.spu = {
|
||||
spuName: "",
|
||||
spuDescription: "",
|
||||
catalogId: 0,
|
||||
catalogId: "",
|
||||
brandId: "",
|
||||
weight: "",
|
||||
publishStatus: 0,
|
||||
|
|
@ -484,6 +484,10 @@ export default {
|
|||
};
|
||||
|
||||
//清空子组件的值
|
||||
this.$bus.$emit('clearCategoryCascader',[])
|
||||
this.$bus.$emit('clearBrandSelect',[])
|
||||
|
||||
|
||||
},
|
||||
|
||||
handlePriceChange(scope, mpidx, e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue