From e7eca504e167de53fd97e5c2cc1fc039a8e758cc Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期四, 28 三月 2024 09:29:37 +0800 Subject: [PATCH] 提交 --- src/views/mdc/base/AlarmManager.vue | 30 +++++++++++++++++++++++------- 1 files changed, 23 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/base/AlarmManager.vue b/src/views/mdc/base/AlarmManager.vue index 83c5383..c46bce2 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" @@ -230,6 +230,18 @@ data() { return { description: '鎶ヨ鍙风鐞嗙晫闈�', + /* 鍒嗛〉鍙傛暟 */ + ipagination:{ + current: 1, + pageSize: 30, + pageSizeOptions: ['30', '50', '100'], + showTotal: (total, range) => { + return range[0] + "-" + range[1] + " 鍏�" + total + "鏉�" + }, + showQuickJumper: true, + showSizeChanger: true, + total: 0 + }, // 琛ㄥご columns: [ { @@ -258,20 +270,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 +296,9 @@ // }, { dataIndex:'isUse_dictText', - title: '鏄惁杩囨护', + title: '鏄惁鍚敤', align: "center", + width:380 // dictCode:'alarm_is_use' }, { @@ -290,7 +306,7 @@ dataIndex: 'action', align: "center", fixed: "right", - width: 147, + width: 150, scopedSlots: { customRender: 'action' } } ], @@ -334,7 +350,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