|
@@ -564,7 +564,7 @@ export default {
|
|
this.proVisible = false;
|
|
this.proVisible = false;
|
|
this.$message.success("操作完成");
|
|
this.$message.success("操作完成");
|
|
this.getData(); // 在上传完所有文件后再调用getData
|
|
this.getData(); // 在上传完所有文件后再调用getData
|
|
- }, 1000);
|
|
|
|
|
|
+ }, 2000);
|
|
};
|
|
};
|
|
|
|
|
|
await uploadFiles(event.target.files);
|
|
await uploadFiles(event.target.files);
|
|
@@ -759,17 +759,18 @@ export default {
|
|
]).then(res => {
|
|
]).then(res => {
|
|
console.log(res, row);
|
|
console.log(res, row);
|
|
const message = res.data.result && res.data.result.message;
|
|
const message = res.data.result && res.data.result.message;
|
|
- const status = message === 'Document entities and relationships extracted successfully.' ? 'success' : 'failed';
|
|
|
|
- const msg = message === 'Document entities and relationships extracted successfully.' ? '提取成功' : '提取失败';
|
|
|
|
- this.$message({
|
|
|
|
- message: msg,
|
|
|
|
- type: status == 'success' ? status : 'error'
|
|
|
|
- })
|
|
|
|
- this.fileArray.forEach(e => {
|
|
|
|
- if (e.documentid === row.documentid) {
|
|
|
|
- e.extractionStatus = status;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ // const status = message === 'Document entities and relationships extracted successfully.' ? 'success' : 'failed';
|
|
|
|
+ // const msg = message === 'Document entities and relationships extracted successfully.' ? '提取成功' : '提取失败';
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: msg,
|
|
|
|
+ // type: status == 'success' ? status : 'error'
|
|
|
|
+ // })
|
|
|
|
+ // this.fileArray.forEach(e => {
|
|
|
|
+ // if (e.documentid === row.documentid) {
|
|
|
|
+ // e.extractionStatus = status;
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ this.getData();
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
this.$message.error('提取失败')
|
|
this.$message.error('提取失败')
|
|
this.fileArray.forEach(e => {
|
|
this.fileArray.forEach(e => {
|
|
@@ -782,7 +783,6 @@ export default {
|
|
|
|
|
|
console.log(res.data);
|
|
console.log(res.data);
|
|
this.$message.success("提取文件中");
|
|
this.$message.success("提取文件中");
|
|
- this.getData();
|
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
console.error(err);
|
|
console.error(err);
|
|
}
|
|
}
|