shaogen1995 hai 1 ano
pai
achega
d9485877e2

+ 5 - 6
src/pages/B1Plan/B1tab2.tsx

@@ -101,17 +101,16 @@ function B1tab1({ topType, setTopType }: Props, ref: any) {
   const getListFu = useCallback(() => {
     const objTemp: any = {};
 
-    if (tableSelectRef.current.siteArr) {
-      const temp = tableSelectRef.current.siteArr;
-      objTemp.province = temp[0] || "";
-      objTemp.city = temp[1] || "";
-      objTemp.region = temp[2] || "";
-    }
+    const temp = tableSelectRef.current.siteArr || [];
+    objTemp.province = temp[0] || "";
+    objTemp.city = temp[1] || "";
+    objTemp.region = temp[2] || "";
 
     const obj = {
       ...tableSelectRef.current,
       ...objTemp,
     };
+
     dispatch(B1_APIgetlist(obj));
   }, [dispatch]);
 

+ 6 - 1
src/pages/C1User/AddUser/city.ts

@@ -2867,6 +2867,7 @@ const temp = [
           "大营镇",
           "卢氏县",
           "城关镇",
+          '陕州区'
         ],
       },
       {
@@ -2914,6 +2915,7 @@ const temp = [
           "木城镇",
           "温县",
           "温泉镇",
+          '焦作市'
         ],
       },
       {
@@ -3146,7 +3148,10 @@ const temp = [
       },
       {
         name: "济源市",
-        districtAndCounty: [],
+        districtAndCounty: [
+          '济源西区',
+          '济源东区'
+        ],
       },
     ],
   },

+ 0 - 1
src/store/action/B1Plan.ts

@@ -1,6 +1,5 @@
 import http from "@/utils/http";
 import { AppDispatch } from "..";
-import { B1tableAreaType } from "@/types";
 /**
  * 获取 进度统计 表格列表(存到仓库)-按机房
  */