From 3457909638c660c0cfcb521b6104ab64c679b914 Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期二, 19 九月 2023 16:23:16 +0800 Subject: [PATCH] 修改页面左右展示比例 --- src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue | 43 +++++++++++++++++++++++++++---------------- 1 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue b/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue index fe67830..c0d27dc 100644 --- a/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue +++ b/src/views/eam/modules/equipmentCategory/EquipmentCategory2List.vue @@ -64,11 +64,12 @@ icon="plus" >鏂板</a-button> --> <a-button + v-has="'equipmentCategory:import&outport'" type="primary" icon="download" @click="handleExportXls('璁惧鍒嗙被鎶ヨ〃')" >瀵煎嚭</a-button> - <a-dropdown v-if="selectedRowKeys.length > 0"> + <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'equipmentCategory:add&Edit&delete'"> <a-button style="margin-left: 8px"> 鎵归噺鎿嶄綔 <a-icon type="down" /> @@ -92,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" @@ -239,7 +247,9 @@ title: '鍒嗙被缂栫爜', align: "center", dataIndex: 'num', - width: 200 , + scopedSlots: { customRender: 'num' }, + width: 100, + ellipsis: true, // scopedSlots: { // customRender: 'num', // }, @@ -250,7 +260,7 @@ align: "center", dataIndex: 'name', - width: 200 , + // scopedSlots: { // customRender: 'name', // }, @@ -265,7 +275,7 @@ // customRender: 'name', // }, // sorter: true, - width: 200 , + }, { title: '鎶�鏈姸鎬侀壌瀹氬懆鏈�', @@ -276,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