update 稽查计划下载导入模板

This commit is contained in:
danshihao
2023-12-19 11:12:06 +08:00
parent ecee848592
commit 453e9d42bc
3 changed files with 9 additions and 5 deletions
@@ -3,6 +3,8 @@
<div class="table-operator" v-if="hasTableOperator">
<!-- 新增 -->
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
<!-- 下载模板 -->
<a-button icon="download" type="primary" ghost @click="downTemplate($t('workCenter.esInspectionPlan.downloadTemplate'))">{{ $t('templateDownload') }}</a-button>
<!-- 导入 -->
<a-upload name="file" :data="{projectId}" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button icon="upload" type="primary" ghost>{{ $t('import') }}</a-button>
@@ -97,7 +99,8 @@ export default {
list: '/process/processEsInspectPlan/list',
delete: '/process/processEsInspectPlan/delete',
importExcelUrl: '/process/processEsInspectPlan/importExcel',
deleteBatch: '/process/processEsInspectPlan/deleteBatch'
deleteBatch: '/process/processEsInspectPlan/deleteBatch',
downTemplateUrl: '/process/processEsInspectPlan/importExcel'
},
model: {},
dataSource: [],