Browse Source

修改小程序及文档模块编辑不展示

yangg 9 months ago
parent
commit
80e4a7040c

+ 1 - 1
.env.development

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

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


+ 0 - 0
dist/static/css/chunk-055b9087.ce959b8e.css → dist/static/css/chunk-051f6e78.ce959b8e.css


+ 0 - 0
dist/static/css/chunk-4110be28.e30e9787.css → dist/static/css/chunk-3d9675b3.e30e9787.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-fa2fe916.58b6579a.css


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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-051f6e78.529b18e6.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-055b9087.1f98206c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-3d9675b3.be56236c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-4110be28.ce4c19e7.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-fa2fe916.6986d4e7.js


+ 1 - 1
src/router/index.js

@@ -345,7 +345,7 @@ export const asyncRoutes = [
     {
     path: '/applet',
     component: Layout,
-    type:1,
+    type:37,
     meta: {
       title: '小程序管理',
       icon: 'applets',

+ 4 - 4
src/views/document/com/editor.vue

@@ -76,7 +76,7 @@
                   <!-- <el-col :span="6">
                     <el-form-item label="模块描述:">
                       <el-input
-                        v-if="$store.state.user.id == 2"
+                        v-if="$store.state.user.id == 1"
                         class="input-item"
                         v-model="it.intro"
                         placeholder="请填写模块介绍"
@@ -85,7 +85,7 @@
                     </el-form-item>
                   </el-col> -->
                   <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
-                    <el-form-item v-if="$store.state.user.id == 2">
+                    <el-form-item v-if="$store.state.user.id == 1">
                       <div class="btn-save">
                         <el-tooltip
                           v-if="type !== 'document'"
@@ -326,7 +326,7 @@ export default {
     showCategoryName(item) {
       return (
         this.type == "module" &&
-        this.$store.state.user.id == 2 &&
+        this.$store.state.user.id == 1 &&
         !item.valDisabled
       );
     },
@@ -337,7 +337,7 @@ export default {
     showCategorySelect(item) {
       return (
         this.type === "module" &&
-        this.$store.state.user.id === 2 &&
+        this.$store.state.user.id === 1 &&
         !item.selDisabled
       );
     },

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

@@ -133,14 +133,12 @@
                   class="item"
                   effect="dark"
                   :content="
-                    scope.row.run ==1 || scope.row.run ==5
-                      ? '解析中'
-                      : '解析'
+                    scope.row.run == 1 || scope.row.run == 5 ? '解析中' : '解析'
                   "
                   placement="top"
                 >
                   <el-button
-                    v-if="scope.row.run !=1 && scope.row.run !=5"
+                    v-if="scope.row.run != 1 && scope.row.run != 5"
                     type="text"
                     icon="el-icon-caret-right"
                     circle
@@ -787,7 +785,7 @@ export default {
     },
     /* 解析 */
     analysis(row) {
-      if (row.run ==1 || row.run ==5) return;
+      if (row.run == 1 || row.run == 5) return;
 
       // Set the status to "解析中" (1) immediately
       this.$set(row, "run", 1);
@@ -830,6 +828,8 @@ export default {
               if (newStatus === 3) {
                 this.$message.success("解析成功");
                 delete this.analysisStatusCheckers[row.id];
+                // 在这里添加刷新列表的逻辑
+                this.refreshCurrentList();
               } else if (newStatus === 4) {
                 this.$message.error("解析失败");
                 delete this.analysisStatusCheckers[row.id];
@@ -856,6 +856,20 @@ export default {
       checkStatus();
     },
 
+    // 添加新方法来刷新当前列表
+    refreshCurrentList() {
+      // 保存当前页码和每页显示数量
+      const currentPage = this.queryForm.page;
+      const currentPageSize = this.queryForm.pageSize;
+
+      // 重新获取数据
+      this.search().then(() => {
+        // 恢复之前的页码和每页显示数量
+        this.queryForm.page = currentPage;
+        this.queryForm.pageSize = currentPageSize;
+      });
+    },
+
     handleAnalClose() {
       this.anaDialogVisible = false;
     },
@@ -1046,7 +1060,7 @@ export default {
 
           // Initialize the analysis status for each row
           _this.dataList.forEach((row) => {
-            if (row.run == 1 || row.run ==5) {
+            if (row.run == 1 || row.run == 5) {
               _this.startAnalysisStatusChecker(row);
             }
           });

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