cxmo 1 rok pred
rodič
commit
6b057fd93e

+ 2 - 3
src/views/business_ETA_manage/businessDetail.vue

@@ -249,9 +249,8 @@ export default {
                 EtaBusinessId:Number(this.$route.query.id)
             }).then(res=>{
                 if(res.Ret !== 200)return 
-                this.firstFormData = res.Data 
-                const splitIndex = this.firstFormData.Address.indexOf('省')+1
-                this.firstFormData.address = [this.firstFormData.Address.slice(0,splitIndex),this.firstFormData.Address.slice(splitIndex)]
+                this.firstFormData = res.Data||{}
+                this.firstFormData.address = [res.Data.Province||'',res.Data.City||'']
             })
             //获取签约详情
             this.getTableData(Number(this.$route.query.id))

+ 2 - 3
src/views/business_ETA_manage/businessEdit.vue

@@ -247,9 +247,8 @@ export default {
                 EtaBusinessId:Number(this.$route.query.id)
             }).then(res=>{
                 if(res.Ret !== 200)return 
-                this.firstFormData = res.Data 
-                const splitIndex = this.firstFormData.Address.indexOf('省')+1
-                this.firstFormData.address = [this.firstFormData.Address.slice(0,splitIndex),this.firstFormData.Address.slice(splitIndex)]
+                this.firstFormData = res.Data||{}
+                this.firstFormData.address = [res.Data.Province||'',res.Data.City||'']
             })
             //获取签约详情
             this.getTableData(Number(this.$route.query.id))