张延森 4 gadus atpakaļ
vecāks
revīzija
b901c03585
1 mainītis faili ar 30 papildinājumiem un 30 dzēšanām
  1. 30
    30
      src/pages/WoDe/YeZhuRenZheng/index.jsx

+ 30
- 30
src/pages/WoDe/YeZhuRenZheng/index.jsx Parādīt failu

208
   const GetLevel2List = () => {
208
   const GetLevel2List = () => {
209
     request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId } }).then((res) => {
209
     request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId } }).then((res) => {
210
       setLevel2List(res || [])
210
       setLevel2List(res || [])
211
-      if (res !== null && res.length > 0) {
212
-        setLevel2Value(0)
213
-      } else {
214
-        setLevel2Value(null)
215
-        setLevel2List([])
216
-      }
211
+      // if (res !== null && res.length > 0) {
212
+      //   setLevel2Value(0)
213
+      // } else {
214
+      //   setLevel2Value(null)
215
+      //   setLevel2List([])
216
+      // }
217
     })
217
     })
218
   }
218
   }
219
 
219
 
221
     if (Level2Value !== null) {
221
     if (Level2Value !== null) {
222
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id } }).then((res) => {
222
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id } }).then((res) => {
223
         setLevel3List(res || [])
223
         setLevel3List(res || [])
224
-        if (res !== null && res.length > 0) {
225
-          setLevel3Value(0)
226
-        } else {
227
-          setLevel3Value(null)
228
-          setLevel3List([])
229
-        }
224
+        // if (res !== null && res.length > 0) {
225
+        //   setLevel3Value(0)
226
+        // } else {
227
+        //   setLevel3Value(null)
228
+        //   setLevel3List([])
229
+        // }
230
       })
230
       })
231
     } else {
231
     } else {
232
       setLevel3Value(null)
232
       setLevel3Value(null)
238
     if (Level3Value !== null) {
238
     if (Level3Value !== null) {
239
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id, buildingId: Level3List[Level3Value].id } }).then((res) => {
239
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id, buildingId: Level3List[Level3Value].id } }).then((res) => {
240
         setLevel4List(res || [])
240
         setLevel4List(res || [])
241
-        if (res !== null && res.length > 0) {
242
-          setLevel4Value(0)
243
-        } else {
244
-          setLevel4Value(null)
245
-          setLevel4List([])
246
-        }
241
+        // if (res !== null && res.length > 0) {
242
+        //   setLevel4Value(0)
243
+        // } else {
244
+        //   setLevel4Value(null)
245
+        //   setLevel4List([])
246
+        // }
247
       })
247
       })
248
     } else {
248
     } else {
249
       setLevel4Value(null)
249
       setLevel4Value(null)
255
     if (Level4Value !== null) {
255
     if (Level4Value !== null) {
256
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id, buildingId: Level3List[Level3Value].id, unitId: Level4List[Level4Value].id } }).then((res) => {
256
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id, buildingId: Level3List[Level3Value].id, unitId: Level4List[Level4Value].id } }).then((res) => {
257
         setLevel5List(res || [])
257
         setLevel5List(res || [])
258
-        if (res !== null && res.length > 0) {
259
-          setLevel5Value(0)
260
-        } else {
261
-          setLevel5Value(null)
262
-          setLevel5List([])
263
-        }
258
+        // if (res !== null && res.length > 0) {
259
+        //   setLevel5Value(0)
260
+        // } else {
261
+        //   setLevel5Value(null)
262
+        //   setLevel5List([])
263
+        // }
264
       })
264
       })
265
     } else {
265
     } else {
266
       setLevel5Value(null)
266
       setLevel5Value(null)
272
     if (Level5Value !== null) {
272
     if (Level5Value !== null) {
273
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id, buildingId: Level3List[Level3Value].id, unitId: Level4List[Level4Value].id, levelId: Level5List[Level5Value].id } }).then((res) => {
273
       request({ ...apis.getRenZhengAddressList, params: { orgId: user.orgId, phaseId: Level2List[Level2Value].id, buildingId: Level3List[Level3Value].id, unitId: Level4List[Level4Value].id, levelId: Level5List[Level5Value].id } }).then((res) => {
274
         setLevel6List(res || [])
274
         setLevel6List(res || [])
275
-        if (res !== null && res.length > 0) {
276
-          setLevel6Value(0)
277
-        } else {
278
-          setLevel6Value(null)
279
-          setLevel6List([])
280
-        }
275
+        // if (res !== null && res.length > 0) {
276
+        //   setLevel6Value(0)
277
+        // } else {
278
+        //   setLevel6Value(null)
279
+        //   setLevel6List([])
280
+        // }
281
       })
281
       })
282
     } else {
282
     } else {
283
       setLevel6Value(null)
283
       setLevel6Value(null)