|
@@ -535,7 +535,7 @@ export default {
|
|
this.proVisible = false;
|
|
this.proVisible = false;
|
|
this.$message.success("操作完成");
|
|
this.$message.success("操作完成");
|
|
this.getData(); // 在上传完所有文件后再调用getData
|
|
this.getData(); // 在上传完所有文件后再调用getData
|
|
- }, 2000);
|
|
|
|
|
|
+ }, 3000);
|
|
};
|
|
};
|
|
|
|
|
|
await uploadFiles(event.target.files);
|
|
await uploadFiles(event.target.files);
|
|
@@ -557,11 +557,13 @@ export default {
|
|
message: msg,
|
|
message: msg,
|
|
type: status == 'success' ? status : 'error'
|
|
type: status == 'success' ? status : 'error'
|
|
})
|
|
})
|
|
- this.fileArray.forEach(e => {
|
|
|
|
- if (e.documentid === uuid) {
|
|
|
|
- e.ingestionStatus = status;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.fileArray.forEach(e => {
|
|
|
|
+ if (e.documentid === uuid) {
|
|
|
|
+ e.ingestionStatus = status;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }, 1000);
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
this.$message.error('上传失败')
|
|
this.$message.error('上传失败')
|
|
this.fileArray.forEach(e => {
|
|
this.fileArray.forEach(e => {
|
|
@@ -692,7 +694,9 @@ export default {
|
|
// e.extractionStatus = status;
|
|
// e.extractionStatus = status;
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
- this.getData();
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.getData();
|
|
|
|
+ }, 1000)
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
this.$message.error('提取失败')
|
|
this.$message.error('提取失败')
|
|
this.fileArray.forEach(e => {
|
|
this.fileArray.forEach(e => {
|