From 666a2fc4ac5da9e0010269c3b54674364df7535c Mon Sep 17 00:00:00 2001 From: shidongli Date: Thu, 19 Dec 2024 11:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E9=A6=88=E5=A1=AB=E7=A9=BA=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/addQuestionnaire/index.vue | 93 ++++++++++++++++++++- 1 file changed, 92 insertions(+), 1 deletion(-) diff --git a/src/views/system/addQuestionnaire/index.vue b/src/views/system/addQuestionnaire/index.vue index b829bf3..93cce6e 100644 --- a/src/views/system/addQuestionnaire/index.vue +++ b/src/views/system/addQuestionnaire/index.vue @@ -58,6 +58,15 @@
{{ item.name }}
+
+ +
{{ item.name }}
+
@@ -383,6 +392,54 @@
+ +
+ + +
+ {{ index + 1 }}. {{ item.title }} +
+
+ 题目: + + +
+
+ 别名: + + +
+
+ 回答: + +
+
+
0) { + if (this.questionlist[this.questionlist.length - 1].questionName == '' || this.questionlist[this.questionlist.length - 1].questionDescription == '') { + return this.$message.error('请填写完在继续添加'); + } + } + + this.questionlist.push({ + questionType: 'FEEDBACK_BLANKS_SUBJECT', + id: this.id++, + questionName: '', + questionNameAlias:'', + title: '反馈填空题', + //是否计分 + whetherScore: false, + disabled: true, + }) + + }, addquestion(item) { console.log(item, 'item选择类型') this.id++ @@ -1413,7 +1499,8 @@ export default { whetherScore: false, disabled: true, }) - } else if (item.id == 'SCORING_QUESTIONS') { + } + else if (item.id == 'SCORING_QUESTIONS') { this.questionlist.push({ questionType: 'SCORING_QUESTIONS', id: this.id, @@ -1939,6 +2026,10 @@ export default { } else if (e.questionType == 'TIME_BLANKS_SUBJECT') { e.title = '时间填空题' this.questionlist.push(e) + } + else if (e.questionType == 'FEEDBACK_BLANKS_SUBJECT') { + e.title = '反馈填空题' + this.questionlist.push(e) } else if (e.questionType == 'COMBINATION_RADIO_SUBJECT') { e.title = '单选题' } else if (e.questionType == 'COMBINATION_MULTIPLE_SUBJECT') {