From deb3baf0fb04c3a9f5b0d4b5bd9fb3237908d576 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 19 二月 2024 18:38:12 +0800
Subject: [PATCH] 111
---
platform/src/components/common/ImportWindow.vue | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/platform/src/components/common/ImportWindow.vue b/platform/src/components/common/ImportWindow.vue
index 45f714e..8e05ddb 100644
--- a/platform/src/components/common/ImportWindow.vue
+++ b/platform/src/components/common/ImportWindow.vue
@@ -102,7 +102,7 @@
*/
confirm () {
if (this.form.file == null) {
- this.$message.warning('璇烽�夋嫨鏂囦欢')
+ this.$tip.warning('璇烽�夋嫨鏂囦欢')
return
}
this.isWorking = true
@@ -114,12 +114,12 @@
}
})
.then(() => {
- this.$message.success('瀵煎叆鎴愬姛')
+ this.$tip.success('瀵煎叆鎴愬姛')
this.visible = false
this.$emit('success')
})
.catch(e => {
- this.$message.error(e)
+ this.$tip.apiFailed(e)
})
.finally(() => {
this.isWorking = false
@@ -137,11 +137,10 @@
downloadTemplate () {
const link = document.createElement('a')
link.setAttribute('download', this.templateName) //涓嬭浇鐨勬枃浠跺悕
- // console.log(`window.location.origin`, window.location.origin);
- // console.log(`process.env.VUE_APP_CONTEXT_PATH`, process.env.VUE_APP_CONTEXT_PATH);
- // console.log(`this.templatePath`, this.templatePath);
+ console.log(`${window.location.origin}${process.env.VUE_APP_CONTEXT_PATH}${this.templatePath}`);
link.href = `${window.location.origin}${process.env.VUE_APP_CONTEXT_PATH}${this.templatePath}` //鏂囦欢url
link.click()
+ // this.$emit('download')
},
/**
* 鏂囦欢涓婁紶鍓嶅瓨鍌ㄤ笂浼犵殑鏂囦欢
--
Gitblit v1.9.3