| | |
| | | bordered |
| | | size="middle" |
| | | rowKey="id" |
| | | :scroll="{x:'max-content',y:600}" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | |
| | | 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 |
| | | }, |
| | |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 120 |
| | | fixed: 'right', |
| | | width: 150 |
| | | } |
| | | ], |
| | | driveTypeList: [], |
| | |
| | | handleAdd: function() { |
| | | this.$refs.modalForm.add() |
| | | this.$refs.modalForm.title = '新增' |
| | | |
| | | // 调用抽屉表单组件中的清除表单验证方法 |
| | | this.$refs.modalForm.removeValidate() |
| | | }, |
| | | |
| | | handleMenuClick(e) { |