Browse Source

修改单个解析参数 并打包

yangg 8 months ago
parent
commit
de4ffdd922

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-0eed3357.40696725.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.850cb84a.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-0eed3357.ad8f4eba.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-65d6e2a1.d997d623.js


+ 20 - 11
src/views/knowledgeMenu/category/knowledgeSet.vue

@@ -108,7 +108,7 @@
             label="上传时间"
             label="上传时间"
             align="center"
             align="center"
             sortable="custom"
             sortable="custom"
-             width="140"
+            width="140"
           />
           />
           <el-table-column prop="run" label="解析状态" align="center">
           <el-table-column prop="run" label="解析状态" align="center">
             <template #default="scope">
             <template #default="scope">
@@ -120,7 +120,12 @@
               <div v-if="scope.row.run == 6">文件异常</div>
               <div v-if="scope.row.run == 6">文件异常</div>
             </template>
             </template>
           </el-table-column>
           </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">
             <template #default="scope">
               <div class="operations-container">
               <div class="operations-container">
                 <el-tooltip
                 <el-tooltip
@@ -166,7 +171,7 @@
                       size="small"
                       size="small"
                       circle
                       circle
                       class="operation-button"
                       class="operation-button"
-                      style="font-size: 15px;margin-left: 10px;"
+                      style="font-size: 15px; margin-left: 10px"
                       icon="el-icon-more"
                       icon="el-icon-more"
                     ></el-button>
                     ></el-button>
                   </template>
                   </template>
@@ -196,7 +201,7 @@
                         icon="el-icon-loading"
                         icon="el-icon-loading"
                         circle
                         circle
                         :disabled="true"
                         :disabled="true"
-                        style="font-size: 15px;"
+                        style="font-size: 15px"
                       >
                       >
                       </el-button>
                       </el-button>
                     </el-tooltip>
                     </el-tooltip>
@@ -410,7 +415,7 @@ import {
   selectType0,
   selectType0,
   delDocumentList,
   delDocumentList,
   getdocpro,
   getdocpro,
-  analysisPro
+  analysisPro,
 } from "@/api/knowledge";
 } from "@/api/knowledge";
 export default {
 export default {
   components: {
   components: {
@@ -784,7 +789,9 @@ export default {
       })
       })
         .then(() => {
         .then(() => {
           this.loading = true;
           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) => {
             .then((res) => {
               if (res.status === 200) {
               if (res.status === 200) {
                 this.$message.success("批量解析任务已提交");
                 this.$message.success("批量解析任务已提交");
@@ -877,12 +884,14 @@ export default {
       // Set the status to "解析中" (1) immediately
       // Set the status to "解析中" (1) immediately
       this.$set(row, "run", 1);
       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,
         max_tokens: row.token_num,
-      })
+      };
+
+      analysisPro(analysisConfig)
         .then((res) => {
         .then((res) => {
           if (res.status === 200) {
           if (res.status === 200) {
             // Start checking the status immediately after successful API call
             // Start checking the status immediately after successful API call

Some files were not shown because too many files changed in this diff