From c5b5e8070d73b7cbd2bf3f869fe38d226290e91a Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 05 九月 2023 13:32:42 +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