From 02bc3bfe47e3d5311a0bb041c94e70a34b1ca73c Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 09 四月 2024 09:03:01 +0800
Subject: [PATCH] git ch

---
 company/src/components/business/OperaInsuranceWindow.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/company/src/components/business/OperaInsuranceWindow.vue b/company/src/components/business/OperaInsuranceWindow.vue
index ed719f6..914aec3 100644
--- a/company/src/components/business/OperaInsuranceWindow.vue
+++ b/company/src/components/business/OperaInsuranceWindow.vue
@@ -80,6 +80,7 @@
         },
         methods: {
             open (title, target) {
+                this.form.worktypeList = [{ name: '' }]
                 this.title = title
                 this.visible = true
                 // 鏂板缓
@@ -107,10 +108,11 @@
             },
             // 瀵煎嚭妯℃澘
             exprot() {
-                let a = document.createElement("a");
-                a.href = '/public/file/typeWork.xlsx';
-                a.download = '淇濋櫓鍏徃-宸ョ瀵煎叆妯$増.xlsx';
-                a.click();
+                window.open(process.env.VUE_APP_TYPEWORK_URL)
+                // let a = document.createElement("a");
+                // a.href = '/public/file/typeWork.xlsx';
+                // a.download = '淇濋櫓鍏徃-宸ョ瀵煎叆妯$増.xlsx';
+                // a.click();
             },
             // 瀵煎叆宸ョ妯℃澘
             getFile(e) {
@@ -134,6 +136,9 @@
                             }
                         })
                     })
+                    .catch(err => {
+                        this.$message.error(err.message)
+                    })
                     .finally(() => {
                         this.$refs.upload.value = null
                     })

--
Gitblit v1.9.3