| | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | :scroll="{x:'max-content',y:465}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | |
| | | { |
| | | title:'类型', |
| | | align:"center", |
| | | dataIndex: 'planCloseType' |
| | | dataIndex: 'planCloseType', |
| | | width:500 |
| | | }, |
| | | { |
| | | title:'时间类型', |
| | | align:"center", |
| | | dataIndex: 'planCloseTimeType' |
| | | dataIndex: 'planCloseTimeType', |
| | | width:350 |
| | | }, |
| | | { |
| | | title:'时长(分钟)', |
| | | align:"center", |
| | | dataIndex: 'planCloseTimeLong' |
| | | dataIndex: 'planCloseTimeLong', |
| | | width:350 |
| | | }, |
| | | { |
| | | title:'备注', |
| | | align:"center", |
| | | dataIndex: 'remark' |
| | | dataIndex: 'remark', |
| | | width:380 |
| | | }, |
| | | { |
| | | title: '操作', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | width:150, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | |
| | | methods: { |
| | | importTemplate(fileName){ |
| | | var a = document.createElement("a"); |
| | | a.href = "/static/计划停机.xls"; |
| | | a.download = "计划停机.xls"; |
| | | a.href = "/static/计划停机管理.xls"; |
| | | a.download = "计划停机管理.xls"; |
| | | a.style.display = "none"; |
| | | document.body.appendChild(a); |
| | | a.click(); |