Commit 3b31816d by 胡悦

Merge branch 'kuangyq_dev_2.1.0' of http://192.168.3.233:8090/saas/scrm-micro-se…

…ttings into kuangyq_dev_2.1.0
2 parents d357dc24 adedc9ff
......@@ -215,7 +215,7 @@ export default {
if (!this.accountAddForm.merchantBrandMain) {
this.accountAddForm.merchantBrandMain = []
}
this.$refs.brandListTree.getCheckList(this.accountAddForm.merchantBrandMain)
// this.$refs.brandListTree.getCheckList(this.accountAddForm.merchantBrandMain)
},
checkBusinessType(type) {
if (!type) {
......@@ -240,6 +240,7 @@ export default {
})
})
this.brandListTree = brandListTree
this.$refs.brandListTree.getCheckList(this.accountAddForm.merchantBrandMain)
this.$nextTick(() => {
this.$refs.brandListTree.loading = false
})
......
......@@ -364,7 +364,7 @@ export default {
})
},
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.merchantLoginPassword = merchantLoginPassword
this.accountTypes = accountTypes
......@@ -439,6 +439,13 @@ export default {
this.$refs.baseInfoForm.$refs.baseForm.validate()
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() {
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!