From cbf68cbcfe5fa210e769c72b290d01053a16ba1b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 19 一月 2026 16:30:35 +0800
Subject: [PATCH] 合同管理详情中上传附件

---
 src/views/personnelManagement/dimission/index.vue |   51 +++++++++++++++++++++++----------------------------
 1 files changed, 23 insertions(+), 28 deletions(-)

diff --git a/src/views/personnelManagement/dimission/index.vue b/src/views/personnelManagement/dimission/index.vue
index 01305e4..c6ed705 100644
--- a/src/views/personnelManagement/dimission/index.vue
+++ b/src/views/personnelManagement/dimission/index.vue
@@ -31,7 +31,7 @@
           @selection-change="handleSelectionChange"
           :tableLoading="tableLoading"
           @pagination="pagination"
-          :total="total"
+          :total="page.total"
       ></PIMTable>
     </div>
     <form-dia ref="formDia" @close="handleQuery"></form-dia>
@@ -42,7 +42,7 @@
 import { Search } from "@element-plus/icons-vue";
 import {onMounted, ref} from "vue";
 import FormDia from "@/views/personnelManagement/dimission/components/formDia.vue";
-import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
+import {findStaffLeaveListPage, batchDeleteStaffLeaves} from "@/api/personnelManagement/staffLeave.js";
 import {ElMessageBox} from "element-plus";
 
 const data = reactive({
@@ -88,16 +88,21 @@
     prop: "sex",
   },
   {
-    label: "绫嶈疮",
+    label: "鎴风睄浣忓潃",
     prop: "nativePlace",
   },
   {
-    label: "宀椾綅",
-    prop: "postJob",
+    label: "閮ㄩ棬",
+    prop: "deptName",
   },
   {
-    label: "瀹跺涵浣忓潃",
+    label: "宀椾綅",
+    prop: "postName",
+  },
+  {
+    label: "鐜颁綇鍧�",
     prop: "adress",
+    width:200
   },
   {
     label: "绗竴瀛﹀巻",
@@ -106,10 +111,7 @@
   {
     label: "涓撲笟",
     prop: "profession",
-  },
-  {
-    label: "韬唤璇佸彿",
-    prop: "identityCard",
+    width:100
   },
   {
     label: "骞撮緞",
@@ -118,31 +120,23 @@
   {
     label: "鑱旂郴鐢佃瘽",
     prop: "phone",
+    width:150
   },
   {
     label: "绱ф�ヨ仈绯讳汉",
     prop: "emergencyContact",
+    width: 120
   },
   {
-    label: "鑱旂郴鐢佃瘽",
+    label: "绱ф�ヨ仈绯讳汉鐢佃瘽",
     prop: "emergencyContactPhone",
-  },
-  {
-    label: "鍚堝悓骞撮檺",
-    prop: "contractTerm",
-  },
-  {
-    label: "鍚堝悓寮�濮嬫棩鏈�",
-    prop: "contractStartTime",
-  },
-  {
-    label: "鍚堝悓缁撴潫鏃ユ湡",
-    prop: "contractEndTime",
+    width:150
   },
   {
     dataType: "action",
     label: "鎿嶄綔",
     align: "center",
+    fixed: 'right',
     operation: [
       {
         name: "缂栬緫",
@@ -160,10 +154,11 @@
 const page = reactive({
   current: 1,
   size: 100,
+  total: 0,
 });
-const total = ref(0);
 const formDia = ref()
 const { proxy } = getCurrentInstance()
+
 
 // 鏌ヨ鍒楄〃
 /** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -178,10 +173,10 @@
 };
 const getList = () => {
   tableLoading.value = true;
-  staffJoinListPage({...page, ...searchForm.value, staffState: 0}).then(res => {
+  findStaffLeaveListPage({...page, ...searchForm.value}).then(res => {
     tableLoading.value = false;
     tableData.value = res.data.records
-    total.value = res.data.total;
+    page.total = res.data.total;
   }).catch(err => {
     tableLoading.value = false;
   })
@@ -213,7 +208,7 @@
     type: "warning",
   })
       .then(() => {
-        staffJoinDel(ids).then((res) => {
+        batchDeleteStaffLeaves(ids).then((res) => {
           proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛");
           getList();
         });
@@ -230,7 +225,7 @@
     type: "warning",
   })
       .then(() => {
-        proxy.download("/staff/staffJoinLeaveRecord/export", {staffState: 0}, "浜哄憳绂昏亴.xlsx");
+        proxy.download("/staff/staffLeave/export", {}, "浜哄憳绂昏亴.xlsx");
       })
       .catch(() => {
         proxy.$modal.msg("宸插彇娑�");

--
Gitblit v1.9.3