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 | 118 +++++++++++++++++++++++++++++++++++++---------------------
1 files changed, 75 insertions(+), 43 deletions(-)
diff --git a/src/views/knowledge/questionbank/index.vue b/src/views/knowledge/questionbank/index.vue
index d6ecf80..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
@@ -68,36 +68,32 @@
v-show="showSearch"
label-width="98px"
>
- <el-form-item label="鍙敤闄㈠尯" prop="status">
- <el-select v-model="queryParams.courtyard" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in languagelist"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="闂涓婚" prop="userName">
+ <el-form-item label="闂鏍囬" prop="userName">
<el-input
- v-model="queryParams.userName"
+ v-model="queryParams.scriptTopic"
placeholder="璇疯緭鍏�"
clearable
style="width: 200px"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
- <el-form-item label="鏂囧瓧" prop="status">
- <el-select v-model="queryParams.status" placeholder="璇烽�夋嫨">
- <el-option
- v-for="item in languagelist"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- >
- </el-option>
- </el-select>
+ <el-form-item label="闂鍐呭" prop="userName">
+ <el-input
+ v-model="queryParams.scriptContent"
+ placeholder="璇疯緭鍏�"
+ clearable
+ style="width: 200px"
+ @keyup.enter.native="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item label="鎸囨爣鍚嶇О" prop="targetname">
+ <el-input
+ v-model="queryParams.targetname"
+ placeholder="璇疯緭鍏�"
+ clearable
+ style="width: 200px"
+ @keyup.enter.native="handleQuery"
+ />
</el-form-item>
<el-form-item label="鏄惁鍙敤" prop="isavailable">
<el-select
@@ -169,19 +165,42 @@
width="50"
align="center"
/>
- <el-table-column
+ <!-- <el-table-column
label="搴忓彿"
fixed
align="center"
key="id"
prop="id"
- />
+ /> -->
<el-table-column
label="棰樼洰鏍囬"
fixed
align="center"
key="scriptTopic"
prop="scriptTopic"
+ width="200"
+ :show-overflow-tooltip="true"
+ />
+ <el-table-column
+ label="棰樺瀷"
+ align="center"
+ key="scriptType"
+ prop="scriptType"
+ width="120"
+ >
+ <template slot-scope="scope">
+ <dict-tag
+ :options="askvaluetype"
+ :value="scope.row.scriptType"
+ />
+ </template>
+ </el-table-column>
+ <el-table-column
+ label="鎸囨爣鍚嶇О"
+ fixed
+ align="center"
+ key="targetname"
+ prop="targetname"
width="200"
:show-overflow-tooltip="true"
/>
@@ -233,8 +252,8 @@
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
- <span v-for="item in scope.row.tag.split(',')"
- >{{ item }}銆�
+ <span v-for="item in scope.row.svyLibScriptTagList"
+ >{{ item.tagname }}銆�
</span>
</template>
</el-table-column>
@@ -275,7 +294,7 @@
@click="compileUpdate(scope.row)"
v-hasPermi="['system:user:edit']"
><span class="button-bji"
- ><i class="el-icon-edit"></i>缂栬緫闂</span
+ ><i class="el-icon-edit"></i>缂栬緫</span
></el-button
>
<el-button
@@ -395,7 +414,10 @@
<span>{{ topicform.scriptContent }}</span>
</div>
- <div class="dev-xx" v-if="topicform.scriptType != 3 && topicform.scriptType != 4">
+ <div
+ class="dev-xx"
+ v-if="topicform.scriptType != 3 && topicform.scriptType != 4"
+ >
<el-radio-group v-model="topicform.asrtext">
<el-radio
v-for="(topicforms, index) in topicform.svyLibScriptOptions"
@@ -459,6 +481,7 @@
total: 0,
namequestionnaire: "",
haoquestionnaire: "",
+ askvaluetype: "",
idds: "",
topicform: {
scriptContent: "",
@@ -469,13 +492,13 @@
topicVisible: false, //棰勮寮规
deletefenl: "楂樿鍘�", //鍒犻櫎椤�
classifyform: {
- categoryname: "",
+ name: "",
}, //绫诲埆琛ㄥ崟
// 琛ㄦ牸鏁版嵁
userList: [],
// 寮瑰嚭灞傛爣棰�
tag: "",
- title: "",
+ title: "鏂板绫诲埆",
// 鏄惁鏄剧ず寮瑰嚭灞�
open: false,
// 鏃ユ湡鑼冨洿
@@ -496,6 +519,8 @@
indexid: null,
inputValue: "",
radio: "涓诲垎绫�",
+ zufon: true,
+ zifon: true,
inputVisible: false,
illnessVisible: false, //鎸囨爣鐤剧梾寮规
deptOptions: [],
@@ -503,7 +528,7 @@
illnesslistapi: [],
illnesslist: [],
defaultProps: {
- children: "svyLibTopicCategoryList",
+ children: "svyLibScriptCategoryList",
label: "name",
},
mode: [],
@@ -526,6 +551,7 @@
this.mode = store.getters.mode;
this.languagelist = store.getters.languagelist;
this.qyoptions = store.getters.usable;
+ this.askvaluetype = store.getters.askvaluetype;
},
methods: {
@@ -543,7 +569,7 @@
compileUpdate(row) {
this.$router.push({
path: "/knowledge/questionbank/particulars/",
- query: { id: row.id },
+ query: { id: row.id, categoryid: this.queryParams.categoryid },
});
},
// 鐤剧梾-----------------------
@@ -655,10 +681,11 @@
(obj) => obj.id == this.classifyform.pid
);
calssvalue = this.deptOptions[index];
- calssvalue.svyLibTopicCategoryList.push(this.classifyform);
+ console.log(calssvalue, "calssvalue");
+ calssvalue.svyLibScriptCategoryList.push(this.classifyform);
} else if (this.radio == "涓诲垎绫�" && this.classifyform.name) {
this.classifyform.pid = null;
- this.classifyform.svyLibTopicCategoryList = [];
+ this.classifyform.svyLibScriptCategoryList = [];
} else {
return this.$modal.msgError("璇峰~鍐欏畬鏁翠俊鎭�");
}
@@ -700,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;
},
// 绛涢�夎妭鐐�
@@ -754,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