From a751e547d67c4f8e2c6fddf958c1559f792515bd Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 27 六月 2025 16:11:50 +0800 Subject: [PATCH] 添加工作流 --- src/views/mdc/base/AlarmManager.vue | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/base/AlarmManager.vue b/src/views/mdc/base/AlarmManager.vue index 83c5383..04620a2 100644 --- a/src/views/mdc/base/AlarmManager.vue +++ b/src/views/mdc/base/AlarmManager.vue @@ -50,6 +50,7 @@ :data-source="driveTypeList" placeholder="璇烽�夋嫨鎺у埗绯荤粺绫诲瀷" :filter-option="filterOption" + :allowClear="true" /> </a-form-item> </a-col> @@ -171,7 +172,7 @@ <a-table ref="table" size="middle" - :scroll="{x:true}" + :scroll="{x:'max-content',y:465}" bordered rowKey="id" :columns="columns" @@ -230,6 +231,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 +271,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 +297,9 @@ // }, { dataIndex:'isUse_dictText', - title: '鏄惁杩囨护', + title: '鏄惁鍚敤', align: "center", + width:380 // dictCode:'alarm_is_use' }, { @@ -290,7 +307,7 @@ dataIndex: 'action', align: "center", fixed: "right", - width: 147, + width: 150, scopedSlots: { customRender: 'action' } } ], @@ -334,7 +351,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