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/EquipmentCategory2List.vue | 40 +++++++++++++++++++++++++--------------- 1 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue b/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue index 3898f8a..c0d27dc 100644 --- a/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue +++ b/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue @@ -93,9 +93,16 @@ :loading="loading" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, getCheckboxProps:getCheckboxProps}" @change="handleTableChange" - :scroll="{ x: true, y: 900 }" + :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> <!--鐘舵�佹爮涓�у睍绀�--> <!-- <span slot="status" @@ -240,7 +247,9 @@ title: '鍒嗙被缂栫爜', align: "center", dataIndex: 'num', - width: 200 , + scopedSlots: { customRender: 'num' }, + width: 100, + ellipsis: true, // scopedSlots: { // customRender: 'num', // }, @@ -251,7 +260,7 @@ align: "center", dataIndex: 'name', - width: 200 , + // scopedSlots: { // customRender: 'name', // }, @@ -266,7 +275,7 @@ // customRender: 'name', // }, // sorter: true, - width: 200 , + }, { title: '鎶�鏈姸鎬侀壌瀹氬懆鏈�', @@ -277,31 +286,32 @@ // customRender: 'name', // }, // sorter: true, - width: 200 , + }, { title: '鍒涘缓浜�', align: "center", dataIndex: 'createBy', - width: 200 , - }, - { - title: '鍒涘缓鏃堕棿', - align: "center", - dataIndex: 'createTime', - width: 200 , + }, { title: '淇敼浜�', align: "center", dataIndex: 'updateBy', - width: 200 , + }, + { + title: '鍒涘缓鏃堕棿', + align: "center", + dataIndex: 'createTime', + + }, + { title: '淇敼鏃堕棿', align: "center", dataIndex: 'updateTime', - width: 200 , + }, // { -- Gitblit v1.9.3