Commit 4ba806ba by 匡雅琴

主营品牌回显问题

1 parent d0057fe0
......@@ -439,7 +439,7 @@ export default {
this.$refs.baseInfoForm.$refs.baseForm.validate()
this.editStatus = false
})
if (merchantBrandName.length) {
if (merchantBrandName) {
const brandName = merchantBrandName.split(',').map((item, index) => {
return { label: item, id: index }
})
......
......@@ -132,12 +132,6 @@ export default {
const businessType = this.infoForm.businessType.split(',')
this.infoForm.businessType = businessType.map(item => (item = parseInt(item)))
}
if (merchantBrandName.length) {
const brandName = merchantBrandName.split(',').map((item, index) => {
return { label: item, id: index }
})
this.$refs.brandListTree.getCheckedArr = brandName
}
// 省市回显
this.$refs.provinceForm.init(this.infoForm.provinceName, this.infoForm.cityName)
if (!this.infoForm.merchantBrandMain) {
......@@ -145,6 +139,12 @@ export default {
} else {
this.infoForm.merchantBrandMain = this.infoForm.merchantBrandMain.replaceAll(';', ',').split(',')
}
if (merchantBrandName) {
const brandName = merchantBrandName.split(',').map((item, index) => {
return { label: item, id: index }
})
this.$refs.brandListTree.getCheckedArr = brandName
}
},
// 点击主营品牌
clickBrand(val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!