소스 검색

bug修复

chenrui 4 년 전
부모
커밋
5daf519285
1개의 변경된 파일12개의 추가작업 그리고 12개의 파일을 삭제
  1. 12 12
      src/views/financialManagement/financialCollection/list.vue

+ 12 - 12
src/views/financialManagement/financialCollection/list.vue

@@ -271,38 +271,38 @@ export default {
       this.addrCityList = []
       this.addrDistrictList = []
       this.queryParam.dealerCitySn = undefined
-      this.queryParam.districtSn = undefined
+      this.queryParam.dealerCountySn = undefined
       this.getArea('city', val)
     },
     // 获取区县列表
     getAreaList (val) {
       this.addrDistrictList = []
-      this.queryParam.districtSn = undefined
+      this.queryParam.dealerCountySn = undefined
       this.getArea('district', val)
     },
     //  省/市/区
-    getArea (type, sn) {
+    getArea (leve, sn) {
       let params
-      if (type == 'province') {
-        params = { level: '1' }
+      if (leve == 'province') {
+        params = { type: '2' }
       } else {
-        params = { psn: sn }
+        params = { parentId: sn, type: leve == 'city' ? '3' : '4' }
       }
       getArea(params).then(res => {
         if (res.status == 200) {
-          if (type == 'province') {
+          if (leve == 'province') {
             this.addrProvinceList = res.data || []
-          } else if (type == 'city') {
+          } else if (leve == 'city') {
             this.addrCityList = res.data || []
-          } else if (type == 'district') {
+          } else if (leve == 'district') {
             this.addrDistrictList = res.data || []
           }
         } else {
-          if (type == 'province') {
+          if (leve == 'province') {
             this.addrProvinceList = []
-          } else if (type == 'city') {
+          } else if (leve == 'city') {
             this.addrCityList = []
-          } else if (type == 'district') {
+          } else if (leve == 'district') {
             this.addrDistrictList = []
           }
         }