From d27e3ada8f1e9c005747988e9bf2519fcd6da21a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 09 九月 2024 12:45:44 +0800
Subject: [PATCH] 测试完成

---
 src/views/knowledge/questionbank/index.vue |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/src/views/knowledge/questionbank/index.vue b/src/views/knowledge/questionbank/index.vue
index 2b6348f..bb92c61 100644
--- a/src/views/knowledge/questionbank/index.vue
+++ b/src/views/knowledge/questionbank/index.vue
@@ -4,7 +4,7 @@
     <div class="sidecolumn">
       <div class="sidecolumn-top">
         <div class="top-wj">闂绫诲瀷</div>
-        <div class="top-tj" @click="dialogFormVisible = true">+娣诲姞</div>
+        <div class="top-tj" @click="Newcategory">+娣诲姞</div>
       </div>
       <div class="center-ss">
         <el-input
@@ -498,7 +498,7 @@
       userList: [],
       // 寮瑰嚭灞傛爣棰�
       tag: "",
-      title: "",
+      title: "鏂板绫诲埆",
       // 鏄惁鏄剧ず寮瑰嚭灞�
       open: false,
       // 鏃ユ湡鑼冨洿
@@ -519,6 +519,8 @@
       indexid: null,
       inputValue: "",
       radio: "涓诲垎绫�",
+      zufon: true,
+      zifon: true,
       inputVisible: false,
       illnessVisible: false, //鎸囨爣鐤剧梾寮规
       deptOptions: [],
@@ -567,7 +569,7 @@
     compileUpdate(row) {
       this.$router.push({
         path: "/knowledge/questionbank/particulars/",
-        query: { id: row.id },
+        query: { id: row.id, categoryid: this.queryParams.categoryid },
       });
     },
     // 鐤剧梾-----------------------
@@ -725,11 +727,22 @@
       this.dialogFormVisible = true;
       if (!b.pid) {
         this.radio = "涓诲垎绫�";
+        this.title = "淇敼涓诲垎绫�";
+        this.zufon = false;
       } else {
         this.radio = "瀛愬垎绫�";
+        this.title = "淇敼瀛愬垎绫�";
+        this.zifon = false;
       }
       this.classifyform = b;
       this.dialogFormVisible = true;
+    },
+    Newcategory(){
+      this.classifyform= {}, //绫诲埆琛ㄥ崟
+      this.radio = "涓诲垎绫�";
+     this.dialogFormVisible = true
+     this.zifon = true;
+      this.zufon = true;
     },
 
     // 绛涢�夎妭鐐�
@@ -779,13 +792,7 @@
       this.single = selection.length != 1;
       this.multiple = !selection.length;
     },
-    /** 鏂板鎸夐挳鎿嶄綔 */
-    handleAdd() {
-      this.$router.push({
-        path: "/knowledge/verbaltrick/particulars/",
-        query: { id: "" },
-      });
-    },
+
     // 淇敼鍒嗙被寮规
     popoveramend(tagcategoryid) {
       this.idds = tagcategoryid;

--
Gitblit v1.9.3