From 5f3691d51a27282dd737376ac8227bf371d7c811 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 11 四月 2025 14:01:13 +0800
Subject: [PATCH] 测试完成

---
 src/views/knowledge/questionbank/particulars/index.vue |    7 ++++---
 src/views/knowledge/questionbank/index.vue             |   18 ++++++++----------
 src/views/knowledge/questionnaire/index.vue            |    3 ++-
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/views/knowledge/questionbank/index.vue b/src/views/knowledge/questionbank/index.vue
index 7d64b9a..e998c53 100644
--- a/src/views/knowledge/questionbank/index.vue
+++ b/src/views/knowledge/questionbank/index.vue
@@ -20,6 +20,7 @@
           :data="deptOptions"
           :props="defaultProps"
           :expand-on-click-node="false"
+          :check-strictly="true"
           :filter-node-method="filterNode"
           ref="tree"
           node-key="id"
@@ -210,7 +211,6 @@
                 :show-overflow-tooltip="true"
               />
 
-
               /><el-table-column
                 label="閫傜敤鏂瑰紡"
                 align="center"
@@ -289,7 +289,6 @@
                     size="medium"
                     type="text"
                     @click="compileUpdate(scope.row)"
-
                     ><span class="button-bji"
                       ><i class="el-icon-edit"></i>缂栬緫</span
                     ></el-button
@@ -298,7 +297,6 @@
                     size="medium"
                     type="text"
                     @click="handleDelete(scope.row)"
-
                     ><span class="button-textsc"
                       ><i class="el-icon-delete-solid"></i>鍒犻櫎</span
                     ></el-button
@@ -307,7 +305,6 @@
                     size="medium"
                     type="text"
                     @click="topicpreview(scope.row)"
-
                     ><span class="button-text"
                       ><i class="el-icon-view"></i>棰勮</span
                     ></el-button
@@ -734,11 +731,11 @@
       this.classifyform = b;
       this.dialogFormVisible = true;
     },
-    Newcategory(){
-      this.classifyform= {}, //绫诲埆琛ㄥ崟
-      this.radio = "涓诲垎绫�";
-     this.dialogFormVisible = true
-     this.zifon = true;
+    Newcategory() {
+      (this.classifyform = {}), //绫诲埆琛ㄥ崟
+        (this.radio = "涓诲垎绫�");
+      this.dialogFormVisible = true;
+      this.zifon = true;
       this.zufon = true;
     },
 
@@ -748,6 +745,7 @@
       return data.name.indexOf(value) !== -1;
     },
     handleNodeClick(data) {
+      if (data.svyLibScriptCategoryList) return;
       this.queryParams.categoryid = data.id;
       this.getList();
     },
@@ -825,7 +823,7 @@
   display: flex;
 }
 .sidecolumn {
-  width: 300px;
+  width: 400px;
   min-height: 100vh;
   text-align: center;
   //   display: flex;
diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue
index d0f507d..a630d00 100644
--- a/src/views/knowledge/questionbank/particulars/index.vue
+++ b/src/views/knowledge/questionbank/particulars/index.vue
@@ -868,13 +868,14 @@
     // 鑾峰彇鏁版嵁
     getissueinfo() {
       this.id = this.$route.query.id;
-      if (this.$route.query.categoryid) {
-        this.topicobj.categoryid = Number(this.$route.query.categoryid);
-      }
+
 
       // 鍒嗙被
       getissueclassify({}).then((res) => {
         this.classifylist = res.rows;
+        if (this.$route.query.categoryid) {
+        this.topicobj.categoryid = Number(this.$route.query.categoryid);
+      }
       });
       if (!this.id) {
         return;
diff --git a/src/views/knowledge/questionnaire/index.vue b/src/views/knowledge/questionnaire/index.vue
index dea53d9..c78b1aa 100644
--- a/src/views/knowledge/questionnaire/index.vue
+++ b/src/views/knowledge/questionnaire/index.vue
@@ -830,6 +830,7 @@
       return data.name.indexOf(value) !== -1;
     },
     handleNodeClick(data) {
+      if (data.svyLibTemplateCategoryList) return;
       this.queryParams.categoryid = data.id;
       this.getList();
     },
@@ -895,7 +896,7 @@
   display: flex;
 }
 .sidecolumn {
-  width: 300px;
+  width: 400px;
   min-height: 100vh;
   text-align: center;
   //   display: flex;

--
Gitblit v1.9.3