From ef0ac141ec99346dcf69f90bec11edeb44d28dfa Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 02 二月 2026 11:04:14 +0800
Subject: [PATCH] 新疆海川开心 1.人员离职隐藏一些展示数据

---
 src/views/personnelManagement/dimission/index.vue |   74 ++++++++++++++++++++++++++----------
 1 files changed, 53 insertions(+), 21 deletions(-)

diff --git a/src/views/personnelManagement/dimission/index.vue b/src/views/personnelManagement/dimission/index.vue
index ccf43da..1e7b5ec 100644
--- a/src/views/personnelManagement/dimission/index.vue
+++ b/src/views/personnelManagement/dimission/index.vue
@@ -11,6 +11,22 @@
             clearable
             :prefix-icon="Search"
         />
+<!--        <span style="margin-left: 10px;"  class="search_title">鍚堝悓寮�濮嬫棩鏈燂細</span>-->
+<!--        <el-date-picker-->
+<!--            v-model="searchForm.entryDateStart"-->
+<!--            type="date"-->
+<!--            placeholder="璇烽�夋嫨鍚堝悓寮�濮嬫棩鏈�"-->
+<!--            size="default"-->
+<!--            @change="(date) => handleDateChange(date,1)"-->
+<!--        />-->
+<!--        <span style="margin-left: 10px;" class="search_title">鍚堝悓缁撴潫鏃ユ湡锛�</span>-->
+<!--        <el-date-picker-->
+<!--            v-model="searchForm.entryDateEnd"-->
+<!--            type="date"-->
+<!--            placeholder="璇烽�夋嫨鍚堝悓缁撴潫鏃ユ湡"-->
+<!--            size="default"-->
+<!--            @change="(date) => handleDateChange(date,2)"-->
+<!--        />-->
         <el-button type="primary" @click="handleQuery" style="margin-left: 10px"
         >鎼滅储</el-button
         >
@@ -44,6 +60,7 @@
 import FormDia from "@/views/personnelManagement/dimission/components/formDia.vue";
 import {staffJoinDel, staffJoinListPage} from "@/api/personnelManagement/onboarding.js";
 import {ElMessageBox} from "element-plus";
+import dayjs from "dayjs";
 
 const data = reactive({
   searchForm: {
@@ -88,7 +105,7 @@
     prop: "sex",
   },
   {
-    label: "绫嶈疮",
+    label: "鎴风睄浣忓潃",
     prop: "nativePlace",
   },
   {
@@ -96,8 +113,9 @@
     prop: "postJob",
   },
   {
-    label: "瀹跺涵浣忓潃",
+    label: "鐜颁綇鍧�",
     prop: "adress",
+    width:200
   },
   {
     label: "绗竴瀛﹀巻",
@@ -106,10 +124,7 @@
   {
     label: "涓撲笟",
     prop: "profession",
-  },
-  {
-    label: "韬唤璇佸彿",
-    prop: "identityCard",
+    width:100
   },
   {
     label: "骞撮緞",
@@ -118,6 +133,7 @@
   {
     label: "鑱旂郴鐢佃瘽",
     prop: "phone",
+    width:150
   },
   {
     label: "绱ф�ヨ仈绯讳汉",
@@ -125,23 +141,24 @@
     width: 120
   },
   {
-    label: "鑱旂郴鐢佃瘽",
+    label: "绱ф�ヨ仈绯讳汉鐢佃瘽",
     prop: "emergencyContactPhone",
+    width:150
   },
-  {
-    label: "鍚堝悓骞撮檺",
-    prop: "contractTerm",
-  },
-  {
-    label: "鍚堝悓寮�濮嬫棩鏈�",
-    prop: "contractStartTime",
-    width: 120
-  },
-  {
-    label: "鍚堝悓缁撴潫鏃ユ湡",
-    prop: "contractEndTime",
-    width: 120
-  },
+  // {
+  //   label: "鍚堝悓骞撮檺",
+  //   prop: "contractTerm",
+  // },
+  // {
+  //   label: "鍚堝悓寮�濮嬫棩鏈�",
+  //   prop: "contractStartTime",
+  //   width: 120
+  // },
+  // {
+  //   label: "鍚堝悓缁撴潫鏃ユ湡",
+  //   prop: "contractEndTime",
+  //   width: 120
+  // },
   {
     dataType: "action",
     label: "鎿嶄綔",
@@ -168,6 +185,21 @@
 const formDia = ref()
 const { proxy } = getCurrentInstance()
 
+
+const handleDateChange = (value,type) => {
+  searchForm.value.entryDateEnd = null
+  searchForm.value.entryDateStart = null
+  if(type === 1){
+    if (value) {
+      searchForm.value.entryDateStart = dayjs(value).format("YYYY-MM-DD");
+    }
+  }else{
+    if (value) {
+      searchForm.value.entryDateEnd = dayjs(value).format("YYYY-MM-DD");
+    }
+  }
+  getList();
+};
 // 鏌ヨ鍒楄〃
 /** 鎼滅储鎸夐挳鎿嶄綔 */
 const handleQuery = () => {

--
Gitblit v1.9.3