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

pull/254/head
xjs 4 years ago
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…
Cancel
Save