From b14bdee1aaf639dd14440b42c6a0ce2e12549ee7 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 26 七月 2024 10:38:09 +0800
Subject: [PATCH] 测试完成
---
src/views/knowledge/questionbank/index.vue | 40 ++++++++++++++++++++++------------------
1 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/src/views/knowledge/questionbank/index.vue b/src/views/knowledge/questionbank/index.vue
index d3ff84f..4bd5e99 100644
--- a/src/views/knowledge/questionbank/index.vue
+++ b/src/views/knowledge/questionbank/index.vue
@@ -173,23 +173,23 @@
label="搴忓彿"
fixed
align="center"
- key="topicid"
- prop="topicid"
+ key="id"
+ prop="id"
/>
<el-table-column
label="棰樼洰鏍囬"
fixed
align="center"
- key="topic"
- prop="topic"
+ key="scriptTopic"
+ prop="scriptTopic"
width="200"
:show-overflow-tooltip="true"
/>
<el-table-column
label="棰樼洰鍐呭"
align="center"
- key="topicContent"
- prop="topicContent"
+ key="scriptContent"
+ prop="scriptContent"
width="200"
:show-overflow-tooltip="true"
/>
@@ -233,8 +233,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>
@@ -392,13 +392,16 @@
<el-dialog title="棰樼洰棰勮" :visible.sync="topicVisible" width="50%">
<div class="preview-left">
<div class="dev-text">
- <span>{{ topicform.topicContent }}</span>
+ <span>{{ topicform.scriptContent }}</span>
</div>
- <div class="dev-xx" v-if="topicform.valueType == 1">
+ <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.svyLibTopicoptions"
+ v-for="(topicforms, index) in topicform.svyLibScriptOptions"
:key="topicforms.optioncontent"
:label="topicforms.optioncontent"
>{{ topicforms.optioncontent }}</el-radio
@@ -461,7 +464,7 @@
haoquestionnaire: "",
idds: "",
topicform: {
- questionText: "",
+ scriptContent: "",
},
amendtag: false, //鏄惁淇敼绫诲埆
dialogFormVisible: false, //淇敼娣诲姞绫诲埆寮规
@@ -543,13 +546,13 @@
compileUpdate(row) {
this.$router.push({
path: "/knowledge/questionbank/particulars/",
- query: { id: row.topicid },
+ query: { id: row.id },
});
},
// 鐤剧梾-----------------------
illnessUpdate(row) {
this.illnessVisible = true;
- this.indexid = row.topicid;
+ this.indexid = row.id;
this.illnesslistapi = [];
const illnessqueryParams = {
pageNum: 1,
@@ -559,7 +562,7 @@
console.log(response);
this.optionsillness = response.rows;
});
- getillness({ outid: row.topicid, type: 4 }).then((res) => {
+ getillness({ outid: row.id, type: 4 }).then((res) => {
this.illnesslist = res.rows;
console.log(res);
});
@@ -720,7 +723,7 @@
// 琛ㄥ崟閲嶇疆
reset() {
this.form = {
- topicid: undefined,
+ id: undefined,
deptId: undefined,
userName: undefined,
nickName: undefined,
@@ -750,7 +753,7 @@
},
// 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.topicid);
+ this.ids = selection.map((item) => item.id);
this.single = selection.length != 1;
this.multiple = !selection.length;
},
@@ -770,7 +773,8 @@
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDelete(row) {
- const topicids = row.topicid || this.ids;
+ console.log(this.ids);
+ const topicids = row.id || this.ids;
this.$modal
.confirm('鏄惁纭鍒犻櫎鐢ㄦ埛缂栧彿涓�"' + topicids + '"鐨勬暟鎹」锛�')
.then(function () {
--
Gitblit v1.9.3