瀏覽代碼

no message

linwenxin 5 月之前
父節點
當前提交
cd5fb68f52
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      src/views/setting/insuranceAdministration/workersCompensationInsurance/index.vue

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

@@ -18,6 +18,7 @@ import { required, mobileRequired, mobile, httpUrl, email } from '@/components/t
 import { policyOrderListIn, policyOrderListInExport, policyOrderImport } from '@/api/workersCompensationInsurance'
 import operation_mixin from '@/components/template/operation_mixin.js'
 import import_mixin from '@/components/template/import_mixin.js'
+import { commonTemplateDownload } from '@/api/common.js'
 export default {
   components: { TemplatePage },
   mixins: [operation_mixin, import_mixin],
@@ -73,6 +74,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,