Parcourir la source

外出服务管理

liao-sea il y a 3 mois
Parent
commit
1dad5eb766
1 fichiers modifiés avec 12 ajouts et 2 suppressions
  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,