| | |
| | | },//表头参数 |
| | | columns:[ |
| | | {type:'expand',fixed:"left",slots: { content:'content' },width: 50}, |
| | | { type: 'seq',fixed:"left", title: '自序', width: 50 }, |
| | | {title: '操作', width: 140, slots: { default: 'button_slot' },fixed:"left"}, |
| | | {field: 'deviceName', width: 130,title: '设备名称', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: 'types',width: 120, title: '类型',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: 'faultDate', width: 100,title: '故障日期', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'failureCause', width: 100,title: '故障原因', sortable: true}, |
| | | {field: 'maintenanceDate',width: 100, title: '保养日期', sortable: true}, |
| | | {field: 'maintenanceInstructions',width: 120, title: '保养说明', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: 'RepairMaintenanceStartTime', width: 160,title: '维修/保养开始时间', sortable: true}, |
| | | {field: 'RepairMaintenanceEndTime',width: 160, title: '维修/保养结束时间', sortable: true}, |
| | | {field: 'process',width: 120, title: '所在工艺', sortable: true}, |
| | | {field: 'RepairMaintenancePersonnel',width: 150, title: '维修/保养人员', sortable: true}, |
| | | {field: 'cost',width: 120, title: '费用', sortable: true}, |
| | | { type: 'seq',fixed:"left", title: '自序', width: 50 }, |
| | | |
| | | {field: '设备名称', width: 130,title: '设备名称', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | | {field: '类型',width: 120, title: '类型',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true}, |
| | | {field: '故障日期', width: 100,title: '故障日期', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: '故障原因', width: 100,title: '故障原因', sortable: true}, |
| | | {field: '保养日期',width: 100, title: '保养日期', sortable: true}, |
| | | {field: '保养说明',width: 120, title: '保养说明', sortable: true,showOverflow:"ellipsis"}, |
| | | {field: '维修保养开始时间', width: 160,title: '维修/保养开始时间', sortable: true}, |
| | | {field: '维修保养结束时间',width: 160, title: '维修/保养结束时间', sortable: true}, |
| | | {field: '所在工艺',width: 120, title: '所在工艺', sortable: true}, |
| | | {field: '维修保养人员',width: 150, title: '维修/保养人员', sortable: true}, |
| | | {field: '费用',width: 120, title: '费用', sortable: true}, |
| | | ],//表头按钮 |
| | | |
| | | toolbarConfig: { |
| | |
| | | }, |
| | | data: [ |
| | | { |
| | | deviceName: '钢化炉(22E)', |
| | | types: '维修', |
| | | faultDate: '2022-03-16', |
| | | failureCause: '坏了', |
| | | maintenanceDate:'', |
| | | maintenanceInstructions:'', |
| | | RepairMaintenanceStartTime:'2022-03-16', |
| | | RepairMaintenanceEndTime:'2022-03-16', |
| | | process:'钢化', |
| | | RepairMaintenancePersonnel:'SSS', |
| | | cost:'112', |
| | | 设备名称: '钢化炉(22E)', |
| | | 类型: '维修', |
| | | 故障日期: '2022-03-16', |
| | | 故障原因: '坏了', |
| | | 保养日期:'', |
| | | 保养说明:'', |
| | | 维修保养开始时间:'2022-03-16', |
| | | 维修保养结束时间:'2022-03-16', |
| | | 所在工艺:'钢化', |
| | | 维修保养人员:'SSS', |
| | | 费用:'112', |
| | | }, |
| | | { |
| | | deviceName: '钢化炉(22E)', |
| | | types: '保养', |
| | | faultDate: '', |
| | | failureCause: '', |
| | | maintenanceDate:'2022-03-16', |
| | | maintenanceInstructions:'保养', |
| | | RepairMaintenanceStartTime:'2022-03-16', |
| | | RepairMaintenanceEndTime:'2022-03-16', |
| | | process:'钢化', |
| | | RepairMaintenancePersonnel:'SSS', |
| | | cost:'112', |
| | | 设备名称: '钢化炉(22E)', |
| | | 类型: '维修', |
| | | 故障日期: '2022-03-16', |
| | | 故障原因: '坏了', |
| | | 保养日期:'', |
| | | 保养说明:'', |
| | | 维修保养开始时间:'2022-03-16', |
| | | 维修保养结束时间:'2022-03-16', |
| | | 所在工艺:'钢化', |
| | | 维修保养人员:'SSS', |
| | | 费用:'112', |
| | | }, |
| | | { |
| | | 设备名称: '钢化炉(22E)', |
| | | 类型: '维修', |
| | | 故障日期: '2022-03-16', |
| | | 故障原因: '坏了', |
| | | 保养日期:'', |
| | | 保养说明:'', |
| | | 维修保养开始时间:'2022-03-16', |
| | | 维修保养结束时间:'2022-03-16', |
| | | 所在工艺:'钢化', |
| | | 维修保养人员:'SSS', |
| | | 费用:'112', |
| | | }, |
| | | ],//table body实际数据 |
| | | //脚部求和 |
| | | footerMethod ({ columns, data }) {//页脚函数 |
| | | let footList=['maintenanceFrequency','MaintenancesFrequency'] |
| | | let footList=['费用'] |
| | | return[ |
| | | columns.map((column, columnIndex) => { |
| | | if (columnIndex === 0) { |