소스 검색

修改变量下拉框及常量不同步

yangg 9 달 전
부모
커밋
9e19d99e30

+ 1 - 1
.env.development

@@ -2,5 +2,5 @@
 ENV = 'development'
 port = 8080
 # base api
-VUE_APP_BASE_API = 'http://192.168.1.178:8084'
+VUE_APP_BASE_API = 'http://120.46.190.49:8084'
 #192.168.1.178

+ 1 - 1
.env.production

@@ -2,7 +2,7 @@
 ENV = 'production'
 port = 8080
 # base api
-VUE_APP_BASE_API = 'http://120.46.190.49:8084'
+VUE_APP_BASE_API = 'http://58.246.234.210:8084'
 #客户:58.246.234.210:8084
 #域名 docapi.shqlsy.com
 #访问ip 192.168.100.6:8083

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-b836da0a.68741a84.css → dist/static/css/chunk-61c59648.68741a84.css


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/css/chunk-67838852.fe4b92c7.css


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/app.dcf1f15c.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-52f685c2.74a3c68f.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-52f685c2.bdbf3a0f.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-61c59648.1af1d2a5.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-67838852.97210f14.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-68954024.91665729.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-b836da0a.8bc79024.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-libs.1e1db6b8.js


+ 2 - 0
src/styles/element-ui.scss

@@ -85,9 +85,11 @@
 
 .el-button{
   background-color: #3cbade;
+  
 }
 .el-button:hover{
   background-color: #339ebd;
+  
 }
 .el-button--primary{
   background-color: #3cbade;

+ 1 - 1
src/views/document/com/menus.vue

@@ -314,7 +314,7 @@ export default {
       ) {
         return; // Exit the method if the item is disabled
       }
-      e.type = "insert";
+      /* e.type = "insert"; */
       if (e.key == "formual") {
         this.showFormula = true;
       } else if (e.key == "SourceData") {

+ 21 - 1
src/views/document/create.vue

@@ -1098,16 +1098,36 @@ export default {
       this.showView = 1;
     },
     /* 更新变量 */
-    uptadeVariable(value) {
+    /*  uptadeVariable(value) {
       for (const item of this.coms) {
         for (const el of item.attrs) {
           if (el.type === "variable") {
             if (el.data.id == value.id) {
               el.content = value.value;
+              el.data = value;
+            }
+          } else if (el.type === "constant") {
+            if (el.data.id == value.id) {
+              el.content = value.value;
+              el.data = value;
             }
           }
         }
       }
+    } */
+    uptadeVariable(value) {
+      const { id, value: newValue } = value;
+      this.coms.forEach((item) => {
+        item.attrs.forEach((el) => {
+          if (
+            (el.type === "variable" || el.type === "constant") &&
+            el.data.id === id
+          ) {
+            el.content = newValue;
+            el.data = value;
+          }
+        });
+      });
     },
     /* 更新检索内容 */
     async uptadeSearch() {

+ 15 - 8
src/views/knowledgeMenu/category/knowledgeSet.vue

@@ -19,7 +19,7 @@
             {{ node.label }}
           </span>
           <span class="file-count">{{ data.document_count }} files</span>
-          <span class="folder-actions" v-if="data.id !== '0'">
+          <span class="folder-actions" v-if="data.id !== 0">
             <el-tooltip
               class="item"
               effect="dark"
@@ -59,6 +59,11 @@
             :disabled="!selectedRows.length"
             >批量解析</el-button
           >
+          <el-button
+            type="primary"
+            :disabled="!selectedRows.length"
+            >批量修改目录</el-button
+          >
         </div>
         <el-table
           ref="dataTable"
@@ -344,14 +349,14 @@ export default {
         page: 1,
         pageSize: 10,
         bucket_id: "",
-        folder: "0",
+        folder: 0,
       },
       typeForm: {
         page: 1,
         pageSize: 10,
         kb_id: "",
       },
-      folders: [{ id: "0", name: "All", document_count: 0 }],
+      folders: [{ id: 0, name: "All", document_count: 0 }],
       defaultProps: {
         children: "children",
         label: "name",
@@ -479,21 +484,23 @@ export default {
           if (res.status === 200) {
             const folderList = res.data.dataList.map((folder) => ({
               ...folder,
-              document_count: folder.file_count || 0, // 确保 document_count 存在
+              document_count: folder.file_count || 0,
             }));
 
             this.folders = [
               {
-                id: "0",
+                id: 0,
                 name: "All",
                 document_count: folderList.reduce(
                   (sum, folder) => sum + folder.document_count,
                   0
                 ),
               },
-              ...folderList.filter((folder) => folder.id !== "0"),
+              ...folderList.filter((folder) => folder.id !== 0),
             ];
-            this.initializeTree();
+            this.$nextTick(() => {
+              this.initializeTree();
+            });
           } else {
             this.$message.error("获取文件夹列表失败");
           }
@@ -510,7 +517,7 @@ export default {
     initializeTree() {
       this.$nextTick(() => {
         if (this.$refs.folderTree) {
-          this.$refs.folderTree.setCurrentKey("0");
+          this.$refs.folderTree.setCurrentKey(0);
           this.handleNodeClick(this.folders[0]);
         }
       });

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.