k94314517
2024-04-09 02bc3bfe47e3d5311a0bb041c94e70a34b1ca73c
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
                    })