修复提交逻辑:完善所有拷贝类型支持,修复电子光盘和禁拷U盘提交卡死问题
- 修复 Files 组件中 file_form=1(电子光盘) 和 file_form=4(禁拷U盘) 的空处理分支 - 添加完成回调触发逻辑,避免提交流程卡死 - 完善 upload()、upload_over()、performSubmit() 的状态判断 - 严格对齐 work-副本.vue 的验证逻辑和参数构建顺序 - 优化标签上传判断,避免无标签时的不必要API调用 - 添加 ISO/ZIP 验证(仅在有内容文件时) - 清理所有调试日志
This commit is contained in:
@@ -349,7 +349,11 @@ export default {
|
||||
entries.forEach((f) => this.fileBack(f, false));
|
||||
}
|
||||
} else if (file_form == 1) {
|
||||
//电子光盘
|
||||
// 电子光盘:不需要拷贝,直接标记为完成
|
||||
this.overNumber = 0;
|
||||
for (const file of entries) {
|
||||
this.fileBack(file, true);
|
||||
}
|
||||
} else if (file_form == 2) {
|
||||
//zip
|
||||
this.archiverIsover = false;
|
||||
@@ -364,7 +368,11 @@ export default {
|
||||
let password = "123456";
|
||||
zip(this.filesList, this.zip_path, this.archiverBack, true, password);
|
||||
} else if (file_form == 4) {
|
||||
//u盘
|
||||
// 禁拷贝U盘:不需要拷贝,直接标记为完成
|
||||
this.overNumber = 0;
|
||||
for (const file of entries) {
|
||||
this.fileBack(file, true);
|
||||
}
|
||||
} else {
|
||||
// 默认路径上传:不实际拷贝,仅回调推进流程
|
||||
this.overNumber = 0;
|
||||
|
||||
Reference in New Issue
Block a user