| | |
| | | @change="inspectionImportExcel"> |
| | | <a-button type="primary" icon="import">点检导入</a-button> |
| | | </a-upload> |
| | | <a-button type="primary" icon="download" @click="handleTemplateXlsDownload">点检模板下载</a-button> |
| | | <a-button type="primary" icon="download" @click="handleTemplateXlsDownload(url.inspectionXlsDownloadUrl)">点检模板下载</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" :action="weekMaintenanceImportExcel" |
| | | @change="weekMaintenanceImportExcel"> |
| | | <a-button type="primary" icon="import">周保导入</a-button> |
| | | </a-upload> |
| | | <a-button type="primary" icon="download" @click="handleTemplateXlsDownload(url.weekMaintenanceXlsDownloadUrl)">周保模板下载</a-button> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | |
| | | deleteBatch: '/eam/maintenanceStandard/deleteBatch', |
| | | exportXlsUrl: 'eam/maintenanceStandard/exportXls', |
| | | inspectionImportExcel: 'eam/maintenanceStandard/inspectionImportExcel', |
| | | inspectionXlsDownloadUrl: '导入模板/点检标准导入模板_v1.0.xlsx' |
| | | weekMaintenanceImportExcel: 'eam/maintenanceStandard/weekMaintenanceImportExcel', |
| | | inspectionXlsDownloadUrl: '导入模板/点检标准导入模板_v1.0.xlsx', |
| | | weekMaintenanceXlsDownloadUrl: '导入模板/周保标准导入模板_v1.0.xlsx', |
| | | |
| | | }, |
| | | fileUrl: '', |
| | | standardId: '-1' |
| | |
| | | computed: { |
| | | inspectionImportExcel: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.inspectionImportExcel}` |
| | | }, |
| | | weekMaintenanceImportExcel: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.weekMaintenanceImportExcel}` |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | this.queryParam = {} |
| | | this.loadData(1) |
| | | }, |
| | | handleTemplateXlsDownload() { |
| | | templateXlsDownload(this.url.inspectionXlsDownloadUrl) |
| | | handleTemplateXlsDownload(url) { |
| | | templateXlsDownload(url) |
| | | }, |
| | | } |
| | | } |
| | |
| | | { |
| | | title: '保养项', |
| | | align: 'center', |
| | | dataIndex: 'itemName' |
| | | dataIndex: 'itemName', |
| | | width: 200, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '子项目', |
| | | align: 'center', |
| | | dataIndex: 'subItemName' |
| | | dataIndex: 'subItemName', |
| | | width: 200, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: '保养要求', |
| | | align: 'center', |
| | | dataIndex: 'itemDemand' |
| | | dataIndex: 'itemDemand', |
| | | ellipsis: true, |
| | | } |
| | | ], |
| | | url: { |