|
@@ -108,7 +108,7 @@
|
|
|
label="上传时间"
|
|
|
align="center"
|
|
|
sortable="custom"
|
|
|
- width="140"
|
|
|
+ width="140"
|
|
|
/>
|
|
|
<el-table-column prop="run" label="解析状态" align="center">
|
|
|
<template #default="scope">
|
|
@@ -120,7 +120,12 @@
|
|
|
<div v-if="scope.row.run == 6">文件异常</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" align="center" fixed="right" width="180">
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ fixed="right"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
<template #default="scope">
|
|
|
<div class="operations-container">
|
|
|
<el-tooltip
|
|
@@ -166,7 +171,7 @@
|
|
|
size="small"
|
|
|
circle
|
|
|
class="operation-button"
|
|
|
- style="font-size: 15px;margin-left: 10px;"
|
|
|
+ style="font-size: 15px; margin-left: 10px"
|
|
|
icon="el-icon-more"
|
|
|
></el-button>
|
|
|
</template>
|
|
@@ -196,7 +201,7 @@
|
|
|
icon="el-icon-loading"
|
|
|
circle
|
|
|
:disabled="true"
|
|
|
- style="font-size: 15px;"
|
|
|
+ style="font-size: 15px"
|
|
|
>
|
|
|
</el-button>
|
|
|
</el-tooltip>
|
|
@@ -410,7 +415,7 @@ import {
|
|
|
selectType0,
|
|
|
delDocumentList,
|
|
|
getdocpro,
|
|
|
- analysisPro
|
|
|
+ analysisPro,
|
|
|
} from "@/api/knowledge";
|
|
|
export default {
|
|
|
components: {
|
|
@@ -784,7 +789,9 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.loading = true;
|
|
|
- analysisPro({document_ids:JSON.stringify(selectedIds)})/* { ids: JSON.stringify(selectedIds) } */
|
|
|
+ analysisPro({
|
|
|
+ document_ids: JSON.stringify(selectedIds),
|
|
|
+ }) /* { ids: JSON.stringify(selectedIds) } */
|
|
|
.then((res) => {
|
|
|
if (res.status === 200) {
|
|
|
this.$message.success("批量解析任务已提交");
|
|
@@ -877,12 +884,14 @@ export default {
|
|
|
// Set the status to "解析中" (1) immediately
|
|
|
this.$set(row, "run", 1);
|
|
|
|
|
|
- analysisPro({
|
|
|
- document_id: row.id,
|
|
|
- start_page: row.start_page || 0,
|
|
|
- end_page: row.end_page || 1000,
|
|
|
+ const analysisConfig = {
|
|
|
+ document_ids: JSON.stringify([row.id]),
|
|
|
+ start_page: row.start_page ?? 0, // 使用空值合并运算符
|
|
|
+ end_page: row.end_page ?? 1000, // 使用空值合并运算符
|
|
|
max_tokens: row.token_num,
|
|
|
- })
|
|
|
+ };
|
|
|
+
|
|
|
+ analysisPro(analysisConfig)
|
|
|
.then((res) => {
|
|
|
if (res.status === 200) {
|
|
|
// Start checking the status immediately after successful API call
|