From 2cea35752e8b86dc1efdc5542fbb792272d1c799 Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期一, 17 八月 2026 17:21:08 +0800
Subject: [PATCH] 将意博凯新修改的年月日同步到 环境工程和奇缘恒艺

---
 src/components/PIMTable/PIMTable.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index 61df179..0045336 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -11,6 +11,7 @@
             :row-key="rowKey"
             :style="tableStyle"
             tooltip-effect="dark"
+            :tooltip-options="{ popperOptions: { strategy: 'absolute' } }"
             :expand-row-keys="expandRowKeys"
             :show-summary="isShowSummary"
             :summary-method="summaryMethod"
@@ -21,6 +22,7 @@
             class="lims-table">
     <el-table-column align="center"
                      type="selection"
+                     :selectable="selectable"
                      width="55"
                      v-if="isSelection" />
     <el-table-column align="center"
@@ -109,6 +111,10 @@
                   :type="formatType(scope.row[item.prop], item.formatType)">
             {{ formatters(scope.row[item.prop], item.formatData) }}
           </el-tag>
+        </div>
+        <!-- 鏃堕棿绫诲瀷 -->
+        <div v-else-if="item.dataType === 'date'">
+          {{ scope.row[item.prop] ? dayjs(scope.row[item.prop]).format('YYYY-MM-DD') : '' }}
         </div>
         <!-- 鎸夐挳 -->
         <div v-else-if="item.dataType == 'action'"
@@ -202,6 +208,7 @@
   import pagination from "./Pagination.vue";
   import { computed, ref, inject, getCurrentInstance } from "vue";
   import { ElMessage } from "element-plus";
+  import dayjs from "dayjs";
 
   // 鑾峰彇鍏ㄥ眬鐨� uploadHeader
   const { proxy } = getCurrentInstance();
@@ -258,6 +265,10 @@
       type: Boolean,
       default: false,
     },
+    selectable: {
+      type: Function,
+      default: () => true,
+    },
     isShowPagination: {
       type: Boolean,
       default: true,

--
Gitblit v1.9.3