From 4f0cb97a09ee88f106c4b8b0875ae611bae4b9a2 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期五, 01 三月 2024 16:02:42 +0800 Subject: [PATCH] 开启支持清除功能 --- src/views/mdc/base/DeviceParamThresholdManagement.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/mdc/base/DeviceParamThresholdManagement.vue b/src/views/mdc/base/DeviceParamThresholdManagement.vue index c049b5e..e2a170a 100644 --- a/src/views/mdc/base/DeviceParamThresholdManagement.vue +++ b/src/views/mdc/base/DeviceParamThresholdManagement.vue @@ -67,6 +67,7 @@ bordered size="middle" rowKey="id" + :scroll="{x:'max-content',y:600}" :columns="columns" :dataSource="dataSource" :pagination="ipagination" @@ -131,32 +132,32 @@ title: '涓枃鍚�', align: 'center', dataIndex: 'chineseName', - width: 120 + width: 350 // sorter: true }, { title: '鑻辨枃鍚�', align: 'center', - width: 150, + width: 350, dataIndex: 'englishName' }, { title: '椹卞姩绫诲瀷', align: 'center', - width: 180, + width: 350, dataIndex: 'controlSystemType' }, { title: '闃堝�间笂闄�', align: 'center', - width: 120, + width: 270, dataIndex: 'maxThreshold' // scopedSlots: {customRender: "avatarslot"} }, { title: '闃堝�间笅闄�', align: 'center', - width: 80, + width: 270, dataIndex: 'minThreshold' // sorter: true }, @@ -165,7 +166,8 @@ dataIndex: 'action', scopedSlots: { customRender: 'action' }, align: 'center', - width: 120 + fixed: 'right', + width: 150 } ], driveTypeList: [], @@ -191,6 +193,9 @@ handleAdd: function() { this.$refs.modalForm.add() this.$refs.modalForm.title = '鏂板' + + // 璋冪敤鎶藉眽琛ㄥ崟缁勪欢涓殑娓呴櫎琛ㄥ崟楠岃瘉鏂规硶 + this.$refs.modalForm.removeValidate() }, handleMenuClick(e) { -- Gitblit v1.9.3