linwenxin 5 miesięcy temu
rodzic
commit
6c69e7f851

+ 17 - 0
src/views/setting/insuranceAdministration/employerInsurance/index.vue

@@ -39,6 +39,7 @@ import operation_mixin from '@/components/template/operation_mixin.js'
 import import_mixin from '@/components/template/import_mixin.js'
 import Popu from '@/components/template/popu.vue'
 import InsuranceContractForm from './InsuranceContractForm.vue'
+import { commonTemplateDownload } from '@/api/common.js'
 export default {
   components: { TemplatePage, Popu, InsuranceContractForm },
   mixins: [import_mixin, operation_mixin],
@@ -65,6 +66,22 @@ export default {
       return [
         [
           [
+            this.optionsEvensAuth('download', {
+              click: () => {
+                commonTemplateDownload({ name: '雇主险导入.xlsx' }, `${this.$route.meta.title}`)
+                  .then(res => {
+                    this.$message({
+                      message: '下载成功',
+                      type: 'success'
+                    })
+                  })
+                  .catch(err => {
+                    this.$message.error('下载失败')
+                  })
+              }
+            })
+          ],
+          [
             this.optionsEvensAuth('import', ({ moduleName }) => {
               return {
                 name: moduleName,