| | |
| | | <a-row :gutter="24"> |
| | | <a-col :md="7" :sm="7"> |
| | | <a-form-item label="时间"> |
| | | <a-range-picker @change="dateParamChange" v-model="dates" format="YYYY-MM-DD HH:mm" showTime/> |
| | | <a-range-picker @change="dateParamChange" v-model="dates" format="YYYY-MM-DD HH:mm"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="4" :sm="4"> |
| | |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增 |
| | | </a-button> |
| | | <a-button type="primary" icon="download" @click="importTemplate('非计划停机模板')">导入模板</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('非计划停机')">导出</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('非计划停机管理')">导出</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> |
| | |
| | | delete: '/mdc/mdcNoplanClose/delete', |
| | | deleteBatch: '/mdc/mdcNoplanClose/deleteBatch', |
| | | getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid', |
| | | exportXlsUrl: "/mdc/MdcTorqueConfig/exportXls", |
| | | importExcelUrl: "/mdc/MdcTorqueConfig/importExcel", |
| | | exportXlsUrl: "/mdc/mdcNoplanClose/exportXls", |
| | | importExcelUrl: "/mdc/mdcNoplanClose/importExcel", |
| | | } |
| | | } |
| | | }, |
| | |
| | | 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(); |
| | |
| | | //重新计算分页问题 |
| | | that.reCalculatePage(1) |
| | | // that.$message.success(res.message); |
| | | that.$notification.warning({ |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |