From b39a0502e7941ce966fda53664cf1b04ba52d65f Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期三, 01 十月 2025 17:30:24 +0800
Subject: [PATCH] 清理测试文件:删除所有test、debug、fix、check_开头的文件,为重构做准备

---
 web/src/views/employee/index.vue |   23 ++++++++---------------
 1 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/web/src/views/employee/index.vue b/web/src/views/employee/index.vue
index 9ad229e..fcd0387 100644
--- a/web/src/views/employee/index.vue
+++ b/web/src/views/employee/index.vue
@@ -10,17 +10,12 @@
           placeholder="璇疯緭鍏ュ憳宸ュ悕绉�"
           style="width: 200px"
           clearable
-          @keyup.enter="handleSearch"
-        >
-          <template #prefix>
-            <el-icon><Search /></el-icon>
-          </template>
-        </el-input>
+        />
         <el-button type="primary" @click="handleSearch">
           <el-icon><Search /></el-icon>
-          鎼滅储
+          鏌ヨ
         </el-button>
-        <el-button type="success" @click="handleAdd">
+        <el-button type="primary" @click="handleAdd">
           <el-icon><Plus /></el-icon>
           鏂板鍛樺伐
         </el-button>
@@ -40,15 +35,11 @@
             {{ formatDateTime(row.createTime) }}
           </template>
         </el-table-column>
-        <el-table-column label="鎿嶄綔" width="180" fixed="right">
+        <el-table-column label="鎿嶄綔" width="120" fixed="right">
           <template #default="{ row }">
             <div class="table-actions">
-              <el-button type="warning" size="small" @click="handleEdit(row)">
-                缂栬緫
-              </el-button>
-              <el-button type="danger" size="small" @click="handleDelete(row)">
-                鍒犻櫎
-              </el-button>
+              <el-button type="warning" size="small" @click="handleEdit(row)" :icon="Edit" circle title="缂栬緫"></el-button>
+              <el-button type="danger" size="small" @click="handleDelete(row)" :icon="Delete" circle title="鍒犻櫎"></el-button>
             </div>
           </template>
         </el-table-column>
@@ -72,6 +63,7 @@
 <script setup lang="ts">
 import { reactive, ref, onMounted } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
+import { Search, Plus, Edit, Delete } from '@element-plus/icons-vue'
 import { employeeApi, type Employee } from '@/api/employee'
 import EmployeeForm from './EmployeeForm.vue'
 
@@ -204,6 +196,7 @@
     gap: 12px;
     margin-bottom: 20px;
     align-items: center;
+    justify-content: flex-end;
   }
   
   .table-actions {

--
Gitblit v1.8.0