linwenxin před 6 dny
rodič
revize
dd0db6ae7a

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

@@ -17,6 +17,7 @@ import TemplatePage from '@/components/template/template-page-1.vue'
 import import_mixin from '@/components/template/import_mixin.js'
 import operation_mixin from '@/components/template/operation_mixin.js'
 import { policyOrderListDs, policyOrderListDsExport, policyOrderImportDs } from '@/api/thirdPartyInsurance.js'
+import { commonTemplateDownload } from '@/api/common.js'
 export default {
   components: { TemplatePage },
   mixins: [import_mixin, operation_mixin],
@@ -35,6 +36,22 @@ export default {
                 }
               }
             })
+          ],
+          [
+            this.optionsEvensAuth('download', {
+              click: () => {
+                commonTemplateDownload({ name: '第三者保险导入.xlsx' }, `第三者保险导入`)
+                  .then(res => {
+                    this.$message({
+                      message: '下载成功',
+                      type: 'success'
+                    })
+                  })
+                  .catch(err => {
+                    this.$message.error('下载失败')
+                  })
+              }
+            })
           ]
         ]
       ],