From 4c44ccbdcbe25de7dc0725bf53f1290fba10edf7 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 05 九月 2025 11:33:41 +0800
Subject: [PATCH] 测试完成
---
src/views/repositoryai/verbaltrick/index.vue | 49 +++++++++++++++++++++++++++++++++----------------
1 files changed, 33 insertions(+), 16 deletions(-)
diff --git a/src/views/repositoryai/verbaltrick/index.vue b/src/views/repositoryai/verbaltrick/index.vue
index 67ab960..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
@@ -13,7 +13,6 @@
class="input-with-select"
size="medium "
>
-
</el-input>
</div>
<div class="head-container" style="margin-top: 20px">
@@ -87,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
@@ -188,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"
@@ -211,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
@@ -316,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>
@@ -524,7 +527,7 @@
},
],
// 寮瑰嚭灞傛爣棰�
- title: "",
+ title: "绫诲埆缂栬緫",
// 鏄惁鏄剧ず寮瑰嚭灞�
open: false,
// 鏃ユ湡鑼冨洿
@@ -543,11 +546,13 @@
indexopen: false, //寮规灞曠ず鍚�
propss: { multiple: true },
radio: "涓诲垎绫�",
-
+ zufon: true,
+ zifon: true,
usable: [],
mode: [],
languagelist: [],
+ valuetype:[],
qyoptions: [],
// 鏌ヨ鍙傛暟
queryParams: {
@@ -569,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;
},
@@ -631,7 +637,7 @@
handleAdd() {
this.$router.push({
path: "/knowledge/verbaltrick/particulars/",
- query: { id: "" },
+ query: { id: "", categoryid: this.queryParams.categoryid },
});
},
// 鍒嗙被鏍�-----------------------------------------
@@ -717,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