Browse Source

model manage

tags/v1.22.11.2^2
chenshihai 3 years ago
parent
commit
901d8ffc04
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue

+ 7
- 3
web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue View File

@@ -449,17 +449,21 @@ export default {
this.getChunksInfo(file).then(res => { // 获取Chunk信息
if (file.uploadID == '' || file.uuid == '') { // 未上传过
this.newUpload(file);
} else if (file.uploaded == '1') { // 已上传成功 秒传
} else if (file.uploaded == '1') { // 已上传成功
if (file.attachID == '0') { // 删除数据集记录,未删除文件
// await addAttachment(file);
console.log(`file.attachID == '0'`);
}
this.uploadLength++;
// 同一模型上传同一个文件
if (file.modelUuid != '' && file.modelName != '' && file.realName != '') {
if (file.modelUuid != '') {
const info = `该文件已上传在模型: ${file.modelName}`;
this.uploadLength++;
this.uploadError(file, info);
this.updateFileStatus(file, "上传失败", 0, 1, info);
} else { // 秒传
this.uploadSuccessLength++;
this.updateFileStatus(file, "上传成功", 100, 0);
this.uploadSuccess(file);
}
console.log(file.name, '文件处理完成');
} else { // 断点续传


Loading…
Cancel
Save