lsc 5 kuukautta sitten
vanhempi
commit
b211ee24dc

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.84146a578e2bc45b350bea0bf7775d07.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.48a578a7c9e065d22bb8.js></script><script type=text/javascript src=./static/js/app.4a710510d38e54ce730c.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.cdc3d06633011f3ad7c2efbde2f4f2ee.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.48a578a7c9e065d22bb8.js></script><script type=text/javascript src=./static/js/app.ad7f2275d7230804afe3.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/css/app.cdc3d06633011f3ad7c2efbde2f4f2ee.css


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/css/app.cdc3d06633011f3ad7c2efbde2f4f2ee.css.map


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/app.4a710510d38e54ce730c.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/app.4a710510d38e54ce730c.js.map


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/app.ad7f2275d7230804afe3.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/app.ad7f2275d7230804afe3.js.map


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 16 - 16
src/components/pages/knowledge/fileBox.vue

@@ -523,7 +523,7 @@ export default {
           formData.append("id", uuid);
           formData.append("metadata", JSON.stringify({ title: file.name }));
           formData.append("ingestion_mode", "fast");
-          // formData.append("run_with_orchestration", "false");
+          formData.append("run_with_orchestration", "false");
 
           // 使用同步方式上传文件
           await this.uploadFile(formData, file.name, uuid);
@@ -553,22 +553,22 @@ export default {
         }).then(res => {
           console.log(res, formData);
           const message = res.data.results && res.data.results.message;
-          // const status = message === 'Document created and ingested successfully.' ? 'success' : 'failed';
-          // const msg = message === 'Document created and ingested successfully.' ? '切片成功' : '切片失败';
-          // this.$message({
-          //   message: msg,
-          //   type: status == 'success' ? status : 'error'
-          // })
-          setTimeout(() => {
-            this.getData()
-          }, 1000)
+          const status = message === 'Document created and ingested successfully.' ? 'success' : 'failed';
+          const msg = message === 'Document created and ingested successfully.' ? '切片成功' : '切片失败';
+          this.$message({
+            message: msg,
+            type: status == 'success' ? status : 'error'
+          })
           // setTimeout(() => {
-          //   this.fileArray.forEach(e => {
-          //     if (e.documentid === uuid) {
-          //       e.ingestionStatus = status;
-          //     }
-          //   });
-          // }, 1000);
+            this.getData()
+          // }, 1000)
+          setTimeout(() => {
+            this.fileArray.forEach(e => {
+              if (e.documentid === uuid) {
+                e.ingestionStatus = status;
+              }
+            });
+          }, 1000);
         }).catch(err => {
           this.$message.error('上传失败')
           this.fileArray.forEach(e => {

+ 17 - 17
src/components/pages/knowledge/folderFileBox.vue

@@ -8,7 +8,7 @@
         </el-breadcrumb>
       <!-- <div class="f_box_top_title">文件</div> -->
       </div>
-      <div class="f_box_top_center" v-show="false">
+      <div class="f_box_top_center">
         <span :class="{active: fileType == 1}" @click="checkType(1)">文件数据</span>
         <span :class="{active: fileType == 2}" @click="checkType(2)">召回测试</span>
       </div>
@@ -559,7 +559,7 @@ export default {
             JSON.stringify({ title: file.name, collection_ids: string })
           );
           formData.append("ingestion_mode", "fast");
-          // formData.append("run_with_orchestration", "false");
+          formData.append("run_with_orchestration", "false");
 
           // 使用同步方式上传文件
           await this.uploadFile(formData, file.name, uuid);
@@ -588,22 +588,22 @@ export default {
         }).then(res => {
           console.log(res, formData);
           const message = res.data.results && res.data.results.message;
-          // const status = message === 'Document created and ingested successfully.' ? 'success' : 'failed';
-          // const msg = message === 'Document created and ingested successfully.' ? '切片成功' : '切片失败';
-          // this.$message({
-          //   message: msg,
-          //   type: status == 'success' ? status : 'error'
-          // })
-          setTimeout(() => {
-            this.getData()
-          }, 1000)
+          const status = message === 'Document created and ingested successfully.' ? 'success' : 'failed';
+          const msg = message === 'Document created and ingested successfully.' ? '切片成功' : '切片失败';
+          this.$message({
+            message: msg,
+            type: status == 'success' ? status : 'error'
+          })
           // setTimeout(() => {
-          //   this.fileArray.forEach(e => {
-          //     if (e.documentid === uuid) {
-          //       e.ingestionStatus = status;
-          //     }
-          //   });
-          // }, 1000);
+            this.getData()
+          // }, 1000)
+          setTimeout(() => {
+            this.fileArray.forEach(e => {
+              if (e.documentid === uuid) {
+                e.ingestionStatus = status;
+              }
+            });
+          }, 1000);
         }).catch(err => {
           this.$message.error('上传失败')
           this.fileArray.forEach(e => {

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä