1、发布商品页面细节调整

pull/254/head
xjs 4 years ago
parent a994688726
commit ead431bc9c

@ -45,9 +45,11 @@ export default {
let catId = { let catId = {
brand: this.catId brand: this.catId
} }
catelogList(catId).then(res => { if (this.catId) {
this.brands = res.data; catelogList(catId).then(res => {
}) this.brands = res.data;
})
}
}, },
}, },
@ -55,6 +57,17 @@ export default {
created() { created() {
}, },
mounted() { mounted() {
//
this.$bus.$on('clearBrandSelect', data => {
this.brands = [
{
label: null,
value: null
}
]
this.brandId = null
})
// //
this.subscribe = PubSub.subscribe("catPath", (msg, val) => { this.subscribe = PubSub.subscribe("catPath", (msg, val) => {
this.catId = val[val.length - 1]; this.catId = val[val.length - 1];

@ -68,6 +68,11 @@ export default {
}, },
mounted() { mounted() {
this.$bus.$on('clearCategoryCascader', data => {
this.paths = data
})
} }
}; };
</script> </script>

@ -346,9 +346,9 @@
<el-card class="box-card" style="width:80%;margin:20px auto"> <el-card class="box-card" style="width:80%;margin:20px auto">
<el-result icon="success" title="保存成功" subTitle=""> <el-result icon="success" title="保存成功" subTitle="">
<template slot="extra"> <template slot="extra">
<el-button type="primary" @click="addAgian"></el-button>
</template> </template>
</el-result> </el-result>
<el-button type="primary" @click="addAgian"></el-button>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
@ -469,7 +469,7 @@ export default {
this.spu = { this.spu = {
spuName: "", spuName: "",
spuDescription: "", spuDescription: "",
catalogId: 0, catalogId: "",
brandId: "", brandId: "",
weight: "", weight: "",
publishStatus: 0, publishStatus: 0,
@ -484,6 +484,10 @@ export default {
}; };
// //
this.$bus.$emit('clearCategoryCascader',[])
this.$bus.$emit('clearBrandSelect',[])
}, },
handlePriceChange(scope, mpidx, e) { handlePriceChange(scope, mpidx, e) {

Loading…
Cancel
Save