#4978 fix-4953

Merged
chenshihai merged 5 commits from fix-4953 into V20231211 4 months ago
  1. +13
    -0
      web_src/js/components/MinioUploader.vue
  2. +3
    -2
      web_src/vuepages/pages/notebook/debug/index.vue

+ 13
- 0
web_src/js/components/MinioUploader.vue View File

@@ -306,6 +306,12 @@ export default {
(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 +325,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 +433,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;


+ 3
- 2
web_src/vuepages/pages/notebook/debug/index.vue View File

@@ -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)


Loading…
Cancel
Save