zhangherong
2025-04-01 a9ac68fb33e7ff5b2b41d21e11d749e2667869c4
art: 设备管理-保养标准-模板下载
已修改1个文件
10 ■■■■ 文件已修改
src/views/eam/base/EamMaintenanceStandardList.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/base/EamMaintenanceStandardList.vue
@@ -50,6 +50,7 @@
                  @change="inspectionImportExcel">
          <a-button type="primary" icon="import">点检导入</a-button>
        </a-upload>
        <a-button type="primary" icon="download" @click="handleTemplateXlsDownload">点检模板下载</a-button>
        <a-dropdown v-if="selectedRowKeys.length > 0">
          <a-menu slot="overlay">
            <a-menu-item key="1" @click="batchDel">
@@ -129,6 +130,7 @@
import EamMaintenanceStandardModal from './modules/EamMaintenanceStandardModal'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import EamMaintenanceStandardDetailList from '@views/eam/base/modules/EamMaintenanceStandardDetailList'
import { templateXlsDownload } from '@api/manage'
export default {
@@ -207,7 +209,8 @@
        delete: '/eam/maintenanceStandard/delete',
        deleteBatch: '/eam/maintenanceStandard/deleteBatch',
        exportXlsUrl: 'eam/maintenanceStandard/exportXls',
        inspectionImportExcel: 'eam/maintenanceStandard/inspectionImportExcel'
        inspectionImportExcel: 'eam/maintenanceStandard/inspectionImportExcel',
        inspectionXlsDownloadUrl: '导入模板/点检标准导入模板_v1.0.xlsx'
      },
      fileUrl: '',
      standardId: '-1'
@@ -275,7 +278,10 @@
      this.standardId = '-1'
      this.queryParam = {}
      this.loadData(1)
    }
    },
    handleTemplateXlsDownload() {
      templateXlsDownload(this.url.inspectionXlsDownloadUrl)
    },
  }
}
</script>