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/AlarmManager.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/base/AlarmManager.vue b/src/views/mdc/base/AlarmManager.vue index 83c5383..7a3d59d 100644 --- a/src/views/mdc/base/AlarmManager.vue +++ b/src/views/mdc/base/AlarmManager.vue @@ -171,7 +171,7 @@ <a-table ref="table" size="middle" - :scroll="{x:true}" + :scroll="{x:'max-content',y:465}" bordered rowKey="id" :columns="columns" @@ -258,20 +258,23 @@ title: '鎶ヨ鍙�', align: "center", // sorter: true, - dataIndex: 'alarmCode' + dataIndex: 'alarmCode', + width:400 }, { title: '鎶ヨ鍐呭', align: "center", // sorter: true, - dataIndex: 'alarmContent' + dataIndex: 'alarmContent', + width:400 }, { title: '璁惧椹卞姩绫诲瀷', align: "center", // sorter: true, - dataIndex: 'driveType' + dataIndex: 'driveType', + width:400 }, // { // title: '鏄惁杩囨护', @@ -281,8 +284,9 @@ // }, { dataIndex:'isUse_dictText', - title: '鏄惁杩囨护', + title: '鏄惁鍚敤', align: "center", + width:380 // dictCode:'alarm_is_use' }, { @@ -290,7 +294,7 @@ dataIndex: 'action', align: "center", fixed: "right", - width: 147, + width: 150, scopedSlots: { customRender: 'action' } } ], @@ -334,7 +338,7 @@ fieldList.push({ type: 'string', value: 'alarmCode', text: '鎶ヨ鍙�', dictCode: '' }) fieldList.push({ type: 'string', value: 'alarmDescription', text: '鎶ヨ鍐呭', dictCode: '' }) fieldList.push({ type: 'int', value: 'driveType', text: '璁惧椹卞姩绫诲瀷', dictCode: '' }) - fieldList.push({ type: 'switch', value: 'isUse', text: '鏄惁杩囨护' }) + fieldList.push({ type: 'switch', value: 'isUse', text: '鏄惁鍚敤' }) this.superFieldList = fieldList }, -- Gitblit v1.9.3