Commit adedc9ff by 匡雅琴

主营品牌回显问题

1 parent 18e6cb3c
...@@ -215,7 +215,7 @@ export default { ...@@ -215,7 +215,7 @@ export default {
if (!this.accountAddForm.merchantBrandMain) { if (!this.accountAddForm.merchantBrandMain) {
this.accountAddForm.merchantBrandMain = [] this.accountAddForm.merchantBrandMain = []
} }
this.$refs.brandListTree.getCheckList(this.accountAddForm.merchantBrandMain) // this.$refs.brandListTree.getCheckList(this.accountAddForm.merchantBrandMain)
}, },
checkBusinessType(type) { checkBusinessType(type) {
if (!type) { if (!type) {
...@@ -240,6 +240,7 @@ export default { ...@@ -240,6 +240,7 @@ export default {
}) })
}) })
this.brandListTree = brandListTree this.brandListTree = brandListTree
this.$refs.brandListTree.getCheckList(this.accountAddForm.merchantBrandMain)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.brandListTree.loading = false this.$refs.brandListTree.loading = false
}) })
......
...@@ -364,7 +364,7 @@ export default { ...@@ -364,7 +364,7 @@ export default {
}) })
}, },
renderView(res) { renderView(res) {
let { isloginName, bussinessBegintime, bussinessEndtime, lat, merchantBrandMain, businessType, lng, merchantAddress, provinceName, cityName, provinceCode, cityCode, merchantName, merchantAbbreviation, merchantType, merchantOrgcode, merchantLegalPerson, merchantLegalPersonPhone, residentContact, residentPhone, merchantLoginAccount, merchantLoginPassword, merchantAccountLevel, businessScope, businessScopeCustomize, merchantBrand, merchantFileResponses, merchantModel, accountTypes, accountType, accounttypeId, channelId, status, parentId } = res let { isloginName, bussinessBegintime, bussinessEndtime, lat, merchantBrandMain, businessType, lng, merchantAddress, provinceName, cityName, provinceCode, cityCode, merchantName, merchantAbbreviation, merchantType, merchantOrgcode, merchantLegalPerson, merchantLegalPersonPhone, residentContact, residentPhone, merchantLoginAccount, merchantLoginPassword, merchantAccountLevel, businessScope, businessScopeCustomize, merchantBrand, merchantFileResponses, merchantModel, accountTypes, accountType, accounttypeId, channelId, status, parentId, merchantBrandName } = res
this.accountInfoForm.merchantLoginAccount = merchantLoginAccount this.accountInfoForm.merchantLoginAccount = merchantLoginAccount
this.accountInfoForm.merchantLoginPassword = merchantLoginPassword this.accountInfoForm.merchantLoginPassword = merchantLoginPassword
this.accountTypes = accountTypes this.accountTypes = accountTypes
...@@ -439,6 +439,13 @@ export default { ...@@ -439,6 +439,13 @@ export default {
this.$refs.baseInfoForm.$refs.baseForm.validate() this.$refs.baseInfoForm.$refs.baseForm.validate()
this.editStatus = false this.editStatus = false
}) })
if (merchantBrandName.length) {
const brandName = merchantBrandName.split(',').map((item, index) => {
return { label: item, id: index }
})
this.$refs.baseInfoForm.$refs.brandListTree.getCheckedArr = brandName
// console.log(this.$refs.baseInfoForm.$refs.brandListTree.getCheckedArr)
}
}, },
getCarbrandTree() { getCarbrandTree() {
this.$apis.store.getCarbrandTree({}).then(res => { this.$apis.store.getCarbrandTree({}).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!