| | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | :scroll="{x:'max-content',y:465}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | |
| | | 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: [ |
| | | { |
| | |
| | | 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: '是否过滤', |
| | |
| | | // }, |
| | | { |
| | | dataIndex:'isUse_dictText', |
| | | title: '是否过滤', |
| | | title: '是否启用', |
| | | align: "center", |
| | | width:380 |
| | | // dictCode:'alarm_is_use' |
| | | }, |
| | | { |
| | |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 147, |
| | | width: 150, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | |
| | | 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 |
| | | }, |
| | | |