From c10d9d2f0e23cb157c6396fb30d4a2d0d88bb629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Thu, 29 Feb 2024 17:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=97=AE=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/addQuestionnaire/index.vue | 689 +++++++++++++++++++- 1 file changed, 660 insertions(+), 29 deletions(-) diff --git a/src/views/system/addQuestionnaire/index.vue b/src/views/system/addQuestionnaire/index.vue index a45071a..c5a2cc1 100644 --- a/src/views/system/addQuestionnaire/index.vue +++ b/src/views/system/addQuestionnaire/index.vue @@ -4,7 +4,7 @@
返回 预览问卷 - 保存 + 保存 保存并发布
@@ -51,16 +51,17 @@
-
+
+ @click.stop="delquestion(item, index)">
{{ index + 1 }}. {{ item.questionname }}
题目: - +
@@ -72,25 +73,26 @@ + @click.stop="deloption(item, uitem, index, uindex)">
添加选项 + @click.stop="addoption(item)">添加选项
-
+
+ @click.stop="delquestion(item, index)">
{{ index + 1 }}. {{ item.questionname }}
题目: - +
@@ -102,25 +104,26 @@ + @click.stop="deloption(item, uitem, index, uindex)">
添加选项 + @click.stop="addoption(item)">添加选项
-
+
+ @click.stop="delquestion(item, index)">
{{ index + 1 }}. {{ item.questionname }}
题目: - +
@@ -131,6 +134,241 @@
+
+ + +
+ {{ index + 1 }}. {{ item.questionname }} +
+
+ 题目: + + +
+
+ 选项: +
+ + + + +
+
+
+ + 1 + 2 + 3 + 4 + 5 + +
+
+
+ + +
+ {{ index + 1 }}. {{ item.questionname }} +
+
+ 标题: + + +
+
+
+ {{ aindex + 1 }}. {{ aitem.questionname }} +
+
+ 题目: + + +
+
+ 选项: +
+
+ + + +
+
+
+
+ 添加选项 +
+
+
+
+ + +
+ {{ index + 1 }}. {{ item.questionname }} +
+
+ 标题: + + +
+
+
+ {{ aindex + 1 }}. {{ aitem.questionname }} +
+
+ 题目: + + +
+
+ 选项: +
+
+ + + +
+
+
+
+ 添加选项 +
+
+
+
+ + +
+ {{ index + 1 }}. {{ item.questionname }} +
+
+ 标题: + + +
+
+
+ {{ aindex + 1 }}. {{ aitem.questionname }} +
+
+ 题目: + + +
+
+ 回答: + +
+
+ 添加选项 +
+
+
+
+ + +
+ {{ index + 1 }}. {{ item.questionname }} +
+
+ 标题: + + +
+
+
+ {{ aindex + 1 }}. {{ aitem.questionname }} +
+
+ 题目: + + +
+
+ 选项: +
+ + + + +
+
+
+ + 1 + 2 + 3 + 4 + 5 + +
+
+
+
+ + +
+ {{ index + 1 }}. {{ item.questionname }} +
+
+ 题目: + + +
+
+ 回答: + +
+
+
+
+
+ + +
+ {{ index + 1 }}. {{ item.questionname }} +
+
+ 题目: + + +
+
+ 回答: + +
+
+
+
@@ -140,23 +378,71 @@
总分:0分
-
计分方式
-
根据多少道题平均分数
+
+ Q{{ questionitem.index + 1 }} + + - {{ questionitem.aindex + 1 }} + : 整题分值设置 +
+
是否计分 + + +
+
计分方式
+
+ + + +
+
+
各选项分值 +
+
+
+ {{ item.optionname }} +
+ + + 分 + +
+
+
+
本题答案及答案分值 +
+
+
+ +
+ + + 分 + +
+
- @@ -321,6 +915,7 @@ export default { } .questionitem { + padding-bottom: 1px; border-radius: 5px; margin: 40px auto; background-color: #fff; @@ -328,6 +923,14 @@ export default { width: 100%; margin: 20px auto; + .combination { + border-radius: 5px; + padding-top: 25px; + width: 90%; + margin: 30px auto; + box-shadow: 0 0px 6px 3px rgba(162, 162, 162, 0.5); + } + .more { display: flex; border-radius: 5px; @@ -348,17 +951,19 @@ export default { span { display: inline-block; width: 60px; + line-height: 35px; } .el-input { - padding-left: 10px; + margin-left: 10px !important; display: block; border: none; border-radius: 5px; - width: 400px; height: 30px; line-height: 30px; margin-bottom: 14px; + margin: 0; + width: 300px } } @@ -388,10 +993,33 @@ export default { } .totalScore { - width: calc(20% - 30px); - margin-left: 30px; + width: 20%; + margin-left: 20px; height: 790px; background: #FFFFFF; + overflow: scroll; + overflow-x: hidden !important; + + .optionitem { + width: 80%; + height: 36px; + margin: 20px auto; + display: flex; + align-items: center; + justify-content: space-between; + font-size: 14px; + + .optionname { + width: 50%; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + } + + ::v-deep .el-input-number { + width: 56px; + } + } .text { font-size: 16px; @@ -399,6 +1027,8 @@ export default { line-height: 30px; width: calc(100% - 60px); margin: 20px auto 0; + padding-bottom: 10px; + border-bottom: 1px solid #E2E2E2; } .introduce { @@ -407,6 +1037,7 @@ export default { font-size: 14px; color: #999999; line-height: 30px; + padding-bottom: 10px; text-align: left; border-bottom: 1px solid #E2E2E2; } @@ -421,7 +1052,7 @@ export default { } .questionnairedetails { - padding-left: 60px; + padding-left: 30px; width: calc(60% - 30px); overflow: scroll; overflow-x: hidden !important;