From 405fea26c406bbb1cb282cecb0a58b3fc2829e08 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 20 Dec 2023 09:47:30 +0800 Subject: [PATCH 1/3] fix issue --- web_src/vuepages/pages/notebook/debug/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_src/vuepages/pages/notebook/debug/index.vue b/web_src/vuepages/pages/notebook/debug/index.vue index 28f2bb6935..63488d03db 100644 --- a/web_src/vuepages/pages/notebook/debug/index.vue +++ b/web_src/vuepages/pages/notebook/debug/index.vue @@ -215,7 +215,8 @@ const finalState = [ "SUBMIT_MODEL_FAILED", "DEPLOY_SERVICE_FAILED", "CHECK_FAILED", - "STOPPING" + "STOPPING", + "CREATED_FAILED" ]; export default { data() { @@ -352,12 +353,12 @@ export default { clearInterval(timerCb2) } if (finalState.includes(_data.status)) { + Message.error(_data.status) this.btnStatus[2] = 0 clearInterval(timerCb2) } } }).catch(err => { - console.log(err); this.btnStatus[2] = 0 clearInterval(timerCb2) Message.error(err) -- 2.34.1 From 79d1005b0d1cfb9739cd087e0a18f9b79346bc6a Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 20 Dec 2023 11:16:42 +0800 Subject: [PATCH 2/3] fix issue --- web_src/js/components/MinioUploader.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/web_src/js/components/MinioUploader.vue b/web_src/js/components/MinioUploader.vue index 6d32aa9b42..2b69ca9811 100755 --- a/web_src/js/components/MinioUploader.vue +++ b/web_src/js/components/MinioUploader.vue @@ -276,6 +276,7 @@ export default { spark = new SparkMD5.ArrayBuffer(), fileReader = new FileReader(); let currentChunk = 0; + let _this = this const time = new Date().getTime(); this.status = this.dropzoneParams.data("md5-computing"); this.uploadProgressList.push({ @@ -302,10 +303,16 @@ export default { spark.append(e.target.result); // Append array buffer currentChunk++; if (currentChunk < chunks) { - this.status = `${this.dropzoneParams.data("loading-file")} ${( + _this.status = `${this.dropzoneParams.data("loading-file")} ${( (currentChunk / chunks) * 100 ).toFixed(2)}% (${currentChunk}/${chunks})`; + _this.updateProgress( + file, + _this.dropzoneParams.data("md5-computing"), + Number(((currentChunk / chunks) *100).toFixed(2)), + 3, + ); loadMd5Next(); return; } @@ -319,6 +326,12 @@ export default { spark.destroy(); // 释放缓存 file.uniqueIdentifier = md5; // 将文件md5赋值给文件唯一标识 file.cmd5 = false; // 取消计算md5状态 + _this.updateProgress( + file, + _this.dropzoneParams.data("md5-computing"), + 100, + 3, + ); this.computeMD5Success(file); } @@ -421,6 +434,7 @@ export default { }, }; try { + this.updateProgress(file, this.dropzoneParams.data("file-init-status"), 0, 3); const response = await axios.get("/attachments/get_chunks", params); file.uploadID = response.data.uploadID; file.uuid = response.data.uuid; -- 2.34.1 From f99bad2ac3ee4ee8ce601734c7a7df9c1db7fcaf Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 20 Dec 2023 11:25:09 +0800 Subject: [PATCH 3/3] fix issue --- web_src/js/components/MinioUploader.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/web_src/js/components/MinioUploader.vue b/web_src/js/components/MinioUploader.vue index 2b69ca9811..7af1a88af9 100755 --- a/web_src/js/components/MinioUploader.vue +++ b/web_src/js/components/MinioUploader.vue @@ -276,7 +276,6 @@ export default { spark = new SparkMD5.ArrayBuffer(), fileReader = new FileReader(); let currentChunk = 0; - let _this = this const time = new Date().getTime(); this.status = this.dropzoneParams.data("md5-computing"); this.uploadProgressList.push({ @@ -303,13 +302,13 @@ export default { spark.append(e.target.result); // Append array buffer currentChunk++; if (currentChunk < chunks) { - _this.status = `${this.dropzoneParams.data("loading-file")} ${( + this.status = `${this.dropzoneParams.data("loading-file")} ${( (currentChunk / chunks) * 100 ).toFixed(2)}% (${currentChunk}/${chunks})`; - _this.updateProgress( + this.updateProgress( file, - _this.dropzoneParams.data("md5-computing"), + this.dropzoneParams.data("md5-computing"), Number(((currentChunk / chunks) *100).toFixed(2)), 3, ); @@ -326,9 +325,9 @@ export default { spark.destroy(); // 释放缓存 file.uniqueIdentifier = md5; // 将文件md5赋值给文件唯一标识 file.cmd5 = false; // 取消计算md5状态 - _this.updateProgress( + this.updateProgress( file, - _this.dropzoneParams.data("md5-computing"), + this.dropzoneParams.data("md5-computing"), 100, 3, ); -- 2.34.1