From 6e54a6688661a05de7c418612cea8b38bbc2dee3 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 14 四月 2025 11:28:26 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/verbaltrick/index.vue |   48 +++++++++++++++++++++++++++++++++---------------
 1 files changed, 33 insertions(+), 15 deletions(-)

diff --git a/src/views/repositoryai/verbaltrick/index.vue b/src/views/repositoryai/verbaltrick/index.vue
index 1c28856..29576cc 100644
--- a/src/views/repositoryai/verbaltrick/index.vue
+++ b/src/views/repositoryai/verbaltrick/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
@@ -86,7 +86,6 @@
                   @keyup.enter.native="handleQuery"
                 />
               </el-form-item>
-
               <el-form-item label="璇█" prop="status">
                 <el-select v-model="queryParams.language" placeholder="璇烽�夋嫨">
                   <el-option
@@ -187,13 +186,7 @@
                 :show-overflow-tooltip="true"
               />
 
-              <el-table-column
-                label="闂鍐呭"
-                align="center"
-                key="scriptContent"
-                prop="scriptContent"
-                width="200"
-              /><el-table-column
+             <el-table-column
                 label="鍏宠仈鎸囨爣"
                 align="center"
                 key="targetname"
@@ -210,6 +203,17 @@
               >
                 <template slot-scope="scope">
                   <dict-tag :options="mode" :value="scope.row.suitway" />
+                </template>
+              </el-table-column>
+              <el-table-column
+                label="闂绫诲瀷"
+                align="center"
+                key="valueType"
+                prop="valueType"
+                width="120"
+              >
+                <template slot-scope="scope">
+                  <dict-tag :options="valuetype" :value="scope.row.valueType" />
                 </template>
               </el-table-column>
               <el-table-column
@@ -315,11 +319,11 @@
       </div>
     </div>
     <!-- 娣诲姞绫诲埆寮规 -->
-    <el-dialog title="鏂板绫诲埆" width="30%" :visible.sync="dialogFormVisible">
+    <el-dialog :title="title" width="30%" :visible.sync="dialogFormVisible">
       <div style="text-align: center; margin-bottom: 20px">
         <el-radio-group v-model="radio">
-          <el-radio-button label="涓诲垎绫�"></el-radio-button>
-          <el-radio-button label="瀛愬垎绫�"></el-radio-button>
+          <el-radio-button label="涓诲垎绫�" v-show="zifon"></el-radio-button>
+          <el-radio-button label="瀛愬垎绫�" v-show="zufon"></el-radio-button>
         </el-radio-group>
       </div>
       <el-divider></el-divider>
@@ -523,7 +527,7 @@
         },
       ],
       // 寮瑰嚭灞傛爣棰�
-      title: "",
+      title: "绫诲埆缂栬緫",
       // 鏄惁鏄剧ず寮瑰嚭灞�
       open: false,
       // 鏃ユ湡鑼冨洿
@@ -542,11 +546,13 @@
       indexopen: false, //寮规灞曠ず鍚�
       propss: { multiple: true },
       radio: "涓诲垎绫�",
-
+      zufon: true,
+      zifon: true,
       usable: [],
 
       mode: [],
       languagelist: [],
+      valuetype:[],
       qyoptions: [],
       // 鏌ヨ鍙傛暟
       queryParams: {
@@ -568,6 +574,7 @@
     this.getDeptTree();
     this.mode = store.getters.mode;
     this.languagelist = store.getters.languagelist;
+    this.valuetype = store.getters.valuetypelb;
     this.qyoptions = store.getters.usable;
   },
 
@@ -630,7 +637,7 @@
     handleAdd() {
       this.$router.push({
         path: "/knowledge/verbaltrick/particulars/",
-        query: { id: "" },
+        query: { id: "", categoryid: this.queryParams.categoryid },
       });
     },
     // 鍒嗙被鏍�-----------------------------------------
@@ -716,12 +723,23 @@
       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;
+    },
 
     // 绛涢�夎妭鐐�
     filterNode(value, data) {

--
Gitblit v1.9.3