Quellcode durchsuchen

提交禅道问题

刘湘琪 vor 2 Jahren
Ursprung
Commit
d52ce90cb1
2 geänderte Dateien mit 38 neuen und 13 gelöschten Zeilen
  1. 13 0
      src/views/common/registerFirst.vue
  2. 25 13
      src/views/enterprise/ent/edit.vue

+ 13 - 0
src/views/common/registerFirst.vue

@@ -708,8 +708,21 @@ export default {
       getProvinceDataApi().then(res => {
         if(res.code == 200) {
           this.provinceDataList = res.data
+          this.registerForm.provinceId = '1481196860266852481'
+          getRegionChildrenApi(this.registerForm.provinceId).then(res => {
+            if(res.code == 200) {
+              this.cityDataList = res.data
+              this.registerForm.cityId = '1481196860266852482'
+              getRegionChildrenApi(this.registerForm.cityId).then(res => {
+                if(res.code == 200) {
+                  this.districtDataList = res.data
+                }
+              })
+            }
+          })
         }
       })
+      this.registerForm.taxOffice = '国家税务总局长沙市税务局'
     },
     getCode() {
       getCodeImg().then(res => {

+ 25 - 13
src/views/enterprise/ent/edit.vue

@@ -446,8 +446,8 @@ export default {
         startDate: '',
         endDate: '',
         attachIds: [],
-        provinceId: '1481196860266852481',
-        cityId: '1481196860266852482',
+        provinceId: '',
+        cityId: '',
         districtId: '',
         mainProductArray: ['电子信息'],
         mainProducts: '',
@@ -607,20 +607,19 @@ export default {
       this.getData()
       this.getEnclosureData()
     }
-    if(this.form.provinceId) {
-      console.log("&&&&&&&&&&&&&&&&&&&")
-      getRegionChildrenApi(this.form.provinceId).then(res => {
-        if(res.code == 200) {
-          this.cityDataList = res.data
-          this.form.cityId = '1481196860266852482'
-          console.log("@@@@@@@@@@@@@@@@@@@@")
-        }
-      })
-    }
+    // if(this.form.provinceId) {
+    //   console.log("&&&&&&&&&&&&&&&&&&&")
+    //   getRegionChildrenApi(this.form.provinceId).then(res => {
+    //     if(res.code == 200) {
+    //       this.cityDataList = res.data
+    //       this.form.cityId = '1481196860266852482'
+    //       console.log("@@@@@@@@@@@@@@@@@@@@")
+    //     }
+    //   })
+    // }
   },
   methods: {
     validLicense(val) {
-      console.log(val)
       validLicenseApi(val).then(res => {
         // true存在
         if(res.data) {
@@ -744,8 +743,21 @@ export default {
       getProvinceDataApi().then(res => {
         if(res.code == 200) {
           this.provinceDataList = res.data
+          this.form.provinceId = '1481196860266852481'
+          getRegionChildrenApi(this.form.provinceId).then(res => {
+            if(res.code == 200) {
+              this.cityDataList = res.data
+              this.form.cityId = '1481196860266852482'
+              getRegionChildrenApi(this.form.cityId).then(res => {
+                if(res.code == 200) {
+                  this.districtDataList = res.data
+                }
+              })
+            }
+          })
         }
       })
+      this.form.taxOffice = '国家税务总局长沙市税务局'
     },
     handleView(row) {
       // 获取文件路径