瀏覽代碼

去除模板分类

yangg 10 月之前
父節點
當前提交
be05708f25

文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


+ 0 - 0
dist/static/css/chunk-518ea4a5.7131743c.css → dist/static/css/chunk-6b736880.7131743c.css


+ 0 - 0
dist/static/css/chunk-886f19ec.c66955a5.css → dist/static/css/chunk-dedf2cd6.c66955a5.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.1d332614.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-518ea4a5.a840ade8.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-6b736880.3f5ba390.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-886f19ec.6f318cb9.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-dedf2cd6.2903e3d6.js


+ 13 - 4
src/views/document/create.vue

@@ -669,6 +669,15 @@ export default {
     }
     this.isAdmin = this.userInfo ? this.userInfo.roleInfo.is_admin : 2;
     this.initArticleCategoryList();
+    if (this.type == "document" && this.articleId!==undefined) {
+      document.title = this.docAttr.title+"-轻良实业";
+    }
+    if (this.type !== "module" && this.type !== "document") {
+      document.title = "新建模版-轻良实业";
+    }
+    if (this.type !== "module" && this.type !== "document" &&this.articleId!==undefined) {
+      document.title = this.docAttr.title+"-轻良实业";
+    }
   },
 
   methods: {
@@ -1345,10 +1354,10 @@ export default {
         _this.$alert("增加组件");
         return;
       }
-      if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
+      /* if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
         _this.$alert("请选择分类");
         return;
-      }
+      } */
       if (_this.docAttr.title == "") {
         _this.$alert("请填写模版标题");
         return;
@@ -1373,10 +1382,10 @@ export default {
         _this.$alert("增加组件");
         return;
       }
-      if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
+      /* if (_this.docAttr.category_id == "" || _this.docAttr.category_id <= 0) {
         _this.$alert("请选择分类");
         return;
-      }
+      } */
       if (_this.docAttr.title == "") {
         _this.$alert("请填写模版标题");
         return;

+ 2 - 2
src/views/knowledgeMenu/category/components/dataList.vue

@@ -12,7 +12,7 @@
           <span @click="getName(scope.row)">{{ scope.row.name }}</span>
         </template>
       </el-table-column>
-      <el-table-column prop="token_num" label="分块数" align="center" />
+      <el-table-column prop="chunk_num" label="分块数" align="center" />
       <el-table-column prop="create_time" label="上传时间" align="center" />
       <!-- <el-table-column prop="" label="解析方法" align="center" /> -->
       <el-table-column prop="createTime" label="启用" align="center"
@@ -258,7 +258,7 @@ export default {
           el.token_num=this.analForm.token_num
         }
       });
-
+      this.anaDialogVisible = false;
     },
     /* 解析方法 */
     Analytical(e) {

部分文件因文件數量過多而無法顯示