From 9521a01b0cbe88050c6f3d24cb0e227dda4aa268 Mon Sep 17 00:00:00 2001
From: houjie <714924425@qq.com>
Date: 星期五, 01 九月 2023 17:34:26 +0800
Subject: [PATCH] 基础数据模块/设备处理/设备使用(界面长度适配调整, 编码 单据号,名称 超长字符 单独处理)

---
 src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue |   51 +++++++++++++++++++++++++++++++++------------------
 1 files changed, 33 insertions(+), 18 deletions(-)

diff --git a/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue b/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
index b4a26f0..1ad133f 100644
--- a/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
+++ b/src/views/eam/modules/equipmentCategory/EquipmentCategoryModel.vue
@@ -95,7 +95,7 @@
             </a-form-item>
           </a-col>
         </a-row>
-        
+
         <a-row :gutter="24">
           <a-col :span="24">
             <a-form-item
@@ -148,7 +148,7 @@
             </a-form-item>
           </a-col>
         </a-row>
-        
+
       </a-form>
       <a-divider  v-if="title!='鏂板'" orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 閫夋嫨瀛愯澶囧垎绫讳娇鍏惰窡闅忕埗璁惧鍒嗙被灞炴�� </a-divider>
       <a-tabs
@@ -159,7 +159,7 @@
       <a-tab-pane
           tab='瀛愯澶囧垎绫�'
           key='1'
-          
+
         >
       <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
         <i class="anticon anticon-info-circle ant-alert-icon"></i> 宸查�夋嫨 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>椤�
@@ -176,11 +176,23 @@
       :loading="loading"
       :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
       @change="handleTableChange"
-      :scroll="{ x: true, y: 900 }"
-     ></a-table>
+      :scroll="{ x: true}"
+     >
+        <template slot="num" slot-scope="text" >
+          <a-tooltip placement="top" :title="text" trigger="hover">
+            <div>
+              <template slot="title"> </template>
+              <p style="cusor:pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 130px;">{{ text }}</p>
+            </div>
+          </a-tooltip>
+        </template>
+
+      </a-table>
+
+
     </a-tab-pane>
     </a-tabs>
-    
+
     </a-spin>
 
     <template slot="footer">
@@ -307,7 +319,9 @@
           title: '鍒嗙被缂栫爜',
           align: "center",
           dataIndex: 'num',
-          width: 220,
+          scopedSlots: { customRender: 'num' },
+          width: 100,
+          ellipsis: true,
           // scopedSlots: {
           //   customRender: 'num',
           // },
@@ -318,7 +332,7 @@
 
           align: "center",
           dataIndex: 'name',
-          width: 220,
+
           // scopedSlots: {
           //   customRender: 'name',
           // },
@@ -333,31 +347,32 @@
           //   customRender: 'name',
           // },
           // sorter: true,
-          width: 220,
+
         },
         {
           title: '鍒涘缓浜�',
           align: "center",
           dataIndex: 'createBy',
-          width: 220,
-        },
-        {
-          title: '鍒涘缓鏃堕棿',
-          align: "center",
-          dataIndex: 'createTime',
-          width: 220,
+
         },
         {
           title: '淇敼浜�',
           align: "center",
           dataIndex: 'updateBy',
-          width: 220,
+
         },
+        {
+          title: '鍒涘缓鏃堕棿',
+          align: "center",
+          dataIndex: 'createTime',
+
+        },
+
         {
           title: '淇敼鏃堕棿',
           align: "center",
           dataIndex: 'updateTime',
-          width: 220,
+
         },
       ],
       //鏂板銆佺紪杈戙�佸垹闄ゃ�佹壒閲忓垹闄ゆ搷浣滄敼鍙樻暟鎹悗鍒锋柊鍏宠仈鐨勭粍浠剁殑鐩戝惉灞炴��

--
Gitblit v1.9.3