From 1d07cf508424f9b0f0f59b0692f2c122ad65f0d7 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 25 三月 2025 16:56:08 +0800
Subject: [PATCH] 设备核查计划-明细表添加记录和对比展示状态

---
 src/components/Table/lims-table.vue |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/components/Table/lims-table.vue b/src/components/Table/lims-table.vue
index 3accd8a..cb4eb0f 100644
--- a/src/components/Table/lims-table.vue
+++ b/src/components/Table/lims-table.vue
@@ -13,8 +13,8 @@
         :filter-method="item.filterHandler" :filter-multiple="item.filterMultiple" :filtered-value="item.filteredValue"
         :filters="item.filters" :fixed="item.fixed" :label="item.label" :prop="item.prop"
                        :show-overflow-tooltip="item.dataType === 'action' || item.dataType === 'slot' ? false : true"
-                       :min-width="item.dataType == 'action' ? btnWidth : getTitleWidth(item)"
-        :sortable="item.sortable ? true : false" :type="item.type" :width="item.dataType == 'action' ? btnWidth : getTitleWidth(item)" align="center">
+                       :min-width="item.dataType == 'action' ? btnWidth : item.width"
+        :sortable="item.sortable ? true : false" :type="item.type" :width="item.dataType == 'action' ? btnWidth : item.width" align="center">
         <!-- <div class="123" v-if="item.type == ''"> -->
         <template v-if="item.hasOwnProperty('colunmTemplate')" :slot="item.colunmTemplate" slot-scope="scope">
           <slot v-if="item.theadSlot" :index="index" :name="item.theadSlot" :row="scope.row" />
@@ -64,7 +64,7 @@
 
           <!-- 鎸夐挳 -->
           <div v-else-if="item.dataType == 'action'"
-               :style="`width:${getWidth(item.operation, scope.row)}`">
+               :style="`min-width:${getWidth(item.operation, scope.row)}`">
             <template v-for="(o, key) in item.operation">
               <el-button v-show="o.type != 'upload'" size="mini" v-if="o.showHide ? o.showHide(scope.row) : true"
                 :disabled="o.disabled ? o.disabled(scope.row) : false" :icon="iconFn(o)" :plain="o.plain"
@@ -302,8 +302,8 @@
           count += a.name.length;
         }
       });
-      this.btnWidth = count * 15 + 50 + "px";
-      return count * 15 + 50 + "px";
+      this.btnWidth = count * 18 + 60 + "px";
+      return count * 18 + 60 + "px";
     },
     getTitleWidth(row) {
       if (row.label.includes('鏃堕棿') || row.label.includes('缂栧彿') || row.label.includes('鏍峰搧鍚嶇О') || row.label.includes('闆朵欢')) {
@@ -492,10 +492,6 @@
   padding-left: 10px !important;
 }
 
->>>.el-table__body-wrapper::-webkit-scrollbar {
-  height: 10px;
-  /* 璁剧疆婊氬姩鏉″搴� */
-}
 .lims-table .highlight-warning-row-border td:first-child {
   border-left: 4px solid #ffcd29;
 }

--
Gitblit v1.9.3