1、发布商品页面细节调整
This commit is contained in:
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…
Reference in New Issue