From 63fce2b793451ee340b7a0f6e0d6ce6c2d470dd0 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 21 七月 2022 17:10:22 +0800
Subject: [PATCH] 1.优化代码,2.完成工序缺陷页面3.模板下载功能
---
src/components/ImportPicker/index.vue | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/components/ImportPicker/index.vue b/src/components/ImportPicker/index.vue
index 1b42c4b..c85c1b3 100644
--- a/src/components/ImportPicker/index.vue
+++ b/src/components/ImportPicker/index.vue
@@ -112,7 +112,7 @@
<p>瀵煎叆澶辫触锛屽け璐ョ殑鍘熷洜鏄瘂{ error_message }}锛�</p>
</div>
</div>
- <span slot="footer" class="dialog-footer">
+ <span slot="footer" class="dialog-footer" style="display: flex;">
<el-button v-if="button_text !="瀹屾垚"" @click="colos()">鍙� 娑�</el-button>
<el-button
type="primary"
@@ -259,7 +259,15 @@
// }
// })
ExcelModelCheck(data).then(res => {
-
+ this.div2_state = res.StuCode
+ setTimeout(() => {
+ this.cg4 = true
+ }, 2000)
+ this.error_list = res.list
+ this.total_num = res.Count
+ if (res.StuCode === '200') {
+ this.disState = false
+ }
})
},
beforeUpload(file) {
@@ -342,7 +350,11 @@
// window.location.href = res
// })
DownLoadExcel(data).then(res => {
- window.location.href = res
+ console.log(res.data)
+ console.log(process.env.VUE_APP_BASE_API)
+ console.log(process.env.VUE_APP_BASE_API_FILE)
+ console.log(window.location.origin + res.data)
+ window.location.href = process.env.VUE_APP_BASE_API_FILE + res.data
})
}
}
--
Gitblit v1.9.3