Ver Fonte

外出服务管理

liao-sea há 3 meses atrás
pai
commit
1dad5eb766
1 ficheiros alterados com 12 adições e 2 exclusões
  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,