| | |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="设备编号"> |
| | | <a-input placeholder="请输入设备编号" v-model="queryParam.equipmentId" allowClear/> |
| | | <a-input placeholder="请输入设备编号" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-space> |
| | | <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
| | | </span> |
| | | <a-button type="primary" @click="searchReset" icon="reload">重置</a-button> |
| | | </a-space> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator"> |
| | | <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="importTemplate('非计划停机管理')">导入模板</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"> |
| | |
| | | <!-- table区域-begin --> |
| | | <div id="DeviceList" style="flex: 1;overflow: hidden"> |
| | | <a-table |
| | | id="planClose" |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:'max-content',y:scrollY}" |
| | |
| | | exportXlsUrl: '/mdc/mdcPlanClose/exportXls', |
| | | importExcelUrl: 'mdc/mdcPlanClose/importExcel' |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [] |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | importTemplate(fileName) { |
| | | var a = document.createElement('a') |
| | | a.href = '/static/非计划停机管理.xls' |
| | | a.download = '非计划停机管理.xls' |
| | | a.href = `/static/${fileName}.xls` |
| | | a.download = `${fileName}.xls` |
| | | a.style.display = 'none' |
| | | document.body.appendChild(a) |
| | | a.click() |