From 35fc517ccef65db4e583efe7b561c3c46872f0c2 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期二, 07 七月 2026 10:42:58 +0800
Subject: [PATCH] 班次配置页面加上部门筛选、班次筛选框

---
 src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue |   47 ++++++++++++++++++++++++++++++-----------------
 1 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue b/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
index d09329b..8bebe3b 100644
--- a/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
+++ b/src/views/personnelManagement/attendanceCheckin/checkinRules/index.vue
@@ -13,30 +13,37 @@
         </el-button>
       </div>
     </div>
-    <!-- 鏌ヨ鏉′欢 -->
-    <!-- <el-form :model="searchForm"
+    <el-form :model="searchForm"
              :inline="true"
              class="search-form mb16">
       <el-form-item label="閮ㄩ棬锛�"
-                    prop="countId">
-        <el-tree-select v-model="searchForm.countId"
+                    prop="sysDeptId">
+        <el-tree-select v-model="searchForm.sysDeptId"
                         :data="deptOptions"
                         :props="{ value: 'id', label: 'label', children: 'children' }"
                         value-key="id"
                         placeholder="璇烽�夋嫨閮ㄩ棬"
                         check-strictly
+                        clearable
                         style="width: 200px" />
       </el-form-item>
-      <el-form-item label="鍦扮偣锛�"
-                    prop="locationName">
-        <el-input v-model="searchForm.locationName"
-                  placeholder="璇疯緭鍏ュ湴鐐瑰悕绉�"
-                  clearable
-                  style="width: 200px" />
+      <el-form-item label="鐝锛�"
+                    prop="shift">
+        <el-select v-model="searchForm.shift"
+                   placeholder="璇烽�夋嫨鐝"
+                   clearable
+                   style="width: 200px">
+          <el-option
+              v-for="item in shifts_list"
+              :key="item.value"
+              :label="item.label"
+              :value="item.value"
+          />
+        </el-select>
       </el-form-item>
       <el-form-item>
         <el-button type="primary"
-                   @click="fetchData">
+                   @click="handleSearch">
           <el-icon>
             <Search />
           </el-icon>
@@ -49,7 +56,7 @@
           閲嶇疆
         </el-button>
       </el-form-item>
-    </el-form> -->
+    </el-form>
     <!-- 鐝鍒楄〃 -->
     <el-card shadow="never"
              class="mb16">
@@ -140,7 +147,7 @@
 </template>
 
 <script setup>
-  import { ref, reactive, onMounted } from "vue";
+  import { ref, reactive, onMounted, getCurrentInstance } from "vue";
   import { ElMessage, ElMessageBox } from "element-plus";
   import {
     Plus,
@@ -174,8 +181,8 @@
 
   // 鏌ヨ琛ㄥ崟
   const searchForm = reactive({
-    countId: "",
-    locationName: "",
+    sysDeptId: "",
+    shift: "",
   });
 
   // 閮ㄩ棬閫夐」
@@ -257,6 +264,11 @@
       });
   };
 
+  const handleSearch = () => {
+    page.current = 1;
+    fetchData();
+  };
+
   // 鍒嗛〉鍙樻洿
   const paginationChange = pagination => {
     page.current = pagination.page;
@@ -266,8 +278,9 @@
 
   // 閲嶇疆鎼滅储
   const resetSearch = () => {
-    searchForm.countId = "";
-    searchForm.locationName = "";
+    searchForm.sysDeptId = "";
+    searchForm.shift = "";
+    page.current = 1;
     fetchData();
   };
 

--
Gitblit v1.9.3