Przeglądaj źródła

外出服务管理

liao-sea 3 miesięcy temu
rodzic
commit
1dad5eb766
1 zmienionych plików z 12 dodań i 2 usunięć
  1. 12 2
      vue/src/views/jobUserManager/signinMgt/index.vue

+ 12 - 2
vue/src/views/jobUserManager/signinMgt/index.vue

@@ -20,7 +20,7 @@
                 :options="regionList"
                 :field-names="{ label: 'name', value: 'code' }"
                 :allow-clear="true"
-                @change="loadData"
+                @change="regionChange"
               >
               </a-select>
             </a-form-item>
@@ -247,8 +247,17 @@ export default defineComponent({
 
     function getAllSites() {
       getSiteList({pageIndex: 1, pageSize: 9999}).then((result: any) => {
+        if(searchParamsState.regionCode!=""&& searchParamsState.regionCode!=null){
+          result.list = result.list.filter(x=> x.regionCode == searchParamsState.regionCode);
+        }
         siteList.value = result.list;
-      })
+      });
+    }
+
+    function regionChange() {
+      siteList.value = [];
+      getAllSites();
+      loadData();
     }
 
     function getAllRegion() {
@@ -317,6 +326,7 @@ export default defineComponent({
       getAllSites,
       getAllRegion,
       signinDate,
+      regionChange,
       onCreateTimeChange,
       onEdit,
       onDel,