From 16cb03a27ed0b31a4b2e7e119b9816fcb8cbdd22 Mon Sep 17 00:00:00 2001 From: wangchengming <15110151257@163.com> Date: Fri, 12 Dec 2025 13:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chart/pages/Predict.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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标签打开新页面下载文件