diff --git a/src/views/chart/pages/Predict.vue b/src/views/chart/pages/Predict.vue
index 11750f4..d170f6c 100644
--- a/src/views/chart/pages/Predict.vue
+++ b/src/views/chart/pages/Predict.vue
@@ -41,7 +41,12 @@
Upload
-
+
+ Select
+ 识别中...
+
Download
@@ -159,9 +164,7 @@ export default {
// 文件选择变化
handleChange(file, fileList) {
if (file) {
- this.currentFile = file.raw || file
- this.onSearch()
-
+ this.currentFile = file.raw || file
} else {
this.currentFile = null
}
@@ -178,6 +181,10 @@ export default {
// // this.downloadFile(this.output_path, this.queryParams.case_no + '_' + item + '_ROC.json')
// })
+ if (this.loading || !this.output_path) {
+ this.$message.warning('暂无下载文件!');
+ return false
+ }
this.$axios.get(window.CONFIG.baseUrl + '/download', { params: { path: this.output_path }, responseType: 'blob', }).then(res => {
const downLoadName = 'pred.xlsx'
// 通过a标签打开新页面下载文件