Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
b12b3516
Commit
b12b3516
authored
Sep 10, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
也没修改
parent
a56fcf16
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
16 deletions
+33
-16
cloze.vue
src/components/questiontype/cloze.vue
+11
-10
v-single.vue
src/components/questiontype/v-single.vue
+12
-1
paperPublish.vue
src/pages/exam/paperPublish.vue
+10
-5
No files found.
src/components/questiontype/cloze.vue
View file @
b12b3516
...
...
@@ -59,7 +59,16 @@
<div>
<i
class=
"iconfont icon-arrowdown2"
v-if=
"(commonIndex==index)&&!isShow"
></i>
<i
class=
"iconfont icon-arrowright"
v-else
></i>
第
{{
index
+
1
}}
小题
<template
v-if=
"!isShowScore"
>
第
{{
index
+
1
}}
小题
</
template
>
<
template
v-if=
"isShowScore"
>
<q-input
filled
v-model=
"email"
standout
type=
"email"
suffix=
"分数"
input-style=
"height:30px;"
>
<template
v-slot:before
>
<span
style=
"font-size:12px;"
>
第
{{
index
+
1
}}
小题
</span>
</
template
>
</q-input>
</template>
</div>
<div>
<i
class=
"iconfont icon-img_delete_small"
@
click
.
stop=
"deleteQuestion(index)"
></i>
...
...
@@ -67,12 +76,6 @@
</div>
</th>
</tr>
<tr
v-if=
"isShowScore"
>
<th
colspan=
"3"
>
<q-input
filled
stack-label
maxlength=
"5"
style=
"width:170px;"
:dense=
"false"
@
keyup
.
native=
"checkPrice(item,'SubScore')"
v-model=
"item.SubScore"
class=
"col-3 q-pb-lg"
label=
"分数"
@
input=
"getQuestionScore"
/>
</th>
</tr>
</thead>
<tbody
class=
"contant"
v-if=
"(commonIndex==index)&&!isShow"
>
<tr
v-for=
"(subItem,subIndex) in item.OptionList"
:key=
"subIndex"
>
...
...
@@ -90,8 +93,6 @@
<i
class=
"iconfont icon-guanbi Tiku_DelIcon"
@
click=
"deleteOpion(item,subIndex)"
></i>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td
colspan=
"3"
>
<a
class=
"addTiMuList"
@
click=
"addOption(item)"
>
...
...
@@ -99,7 +100,7 @@
</a>
</td>
</tr>
</t
foot
>
</t
body
>
</table>
</template>
<a
class=
"add_LiteBtn"
@
click=
"addQuestion()"
>
...
...
src/components/questiontype/v-single.vue
View file @
b12b3516
...
...
@@ -37,7 +37,8 @@
<td
colspan=
"2"
class=
"v_singleQuestionBold"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
class=
"v_singleQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
<td
colspan=
"2"
class=
"v_singleQuestionBold"
:style=
"{color:data.Answer ==data.StundetAnswer?'#67c23a':'red'}"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
...
...
@@ -98,6 +99,16 @@
},
//调用父组件计算学生分数
getQuestionScore
()
{
var
stuScore
=
0
;
if
(
this
.
data
.
StudentScore
!=
""
)
{
stuScore
=
this
.
data
.
StudentScore
;
}
if
(
stuScore
>
this
.
data
.
Score
)
{
this
.
data
.
StudentScore
=
this
.
data
.
Score
;
}
if
(
stuScore
<
0
)
{
this
.
data
.
StudentScore
=
0
;
}
this
.
$emit
(
'getScore'
);
},
},
...
...
src/pages/exam/paperPublish.vue
View file @
b12b3516
...
...
@@ -180,8 +180,7 @@
<div
class=
"setCt"
>
<span
class=
"papPub_Left f1"
>
考试限时
</span>
<div
class=
"f1"
>
<q-input
filled
bottom-slots
maxlength=
"10"
style=
"width:308px;"
:disable=
"true"
v-model=
"postMsg.ExamTimes"
label=
"考试限时"
:dense=
"false"
>
<q-input
filled
bottom-slots
maxlength=
"10"
style=
"width:308px;"
:disable=
"true"
v-model=
"postMsg.ExamTimes"
:dense=
"false"
>
<
template
v-slot:append
>
<span
style=
"font-size:12px;"
>
分钟
</span>
</
template
>
...
...
@@ -191,8 +190,8 @@
<div
class=
"setCt"
>
<span
class=
"papPub_Left f1"
>
限时提交
</span>
<div
class=
"f1"
>
<q-input
filled
bottom-slots
maxlength=
"10"
style=
"width:308px;"
v-model=
"postMsg.SubmitTimes"
label=
"限时提交
"
:dense=
"false"
>
<q-input
filled
bottom-slots
maxlength=
"10"
@
keyup
.
native=
"checkInteger(postMsg,'SubmitTimes')
"
style=
"width:308px;"
v-model=
"postMsg.SubmitTimes"
:dense=
"false"
>
<
template
v-slot:append
>
<span
style=
"font-size:12px;"
>
分钟内不允许提交
</span>
</
template
>
...
...
@@ -202,7 +201,8 @@
<div
class=
"setCt"
>
<span
class=
"papPub_Left f1"
>
限时进入
</span>
<div
class=
"f1"
>
<q-input
filled
bottom-slots
maxlength=
"10"
v-model=
"postMsg.EnterTimes"
label=
"限时进入"
:dense=
"false"
>
<q-input
filled
bottom-slots
maxlength=
"10"
@
keyup
.
native=
"checkInteger(postMsg,'EnterTimes')"
v-model=
"postMsg.EnterTimes"
:dense=
"false"
>
<
template
v-slot:append
>
<span
style=
"font-size:12px;"
>
分钟后不允许参加考试
</span>
</
template
>
...
...
@@ -259,6 +259,11 @@
<div
class=
"paper_QuesDes"
>
勾选后,英文大写和小写都可以得分
</div>
<q-checkbox
size=
"xs"
v-model=
"postMsg.IsHalfScore"
:true-value=
"1"
:false-value=
"0"
label=
"多选题未选全给一半分"
/>
<div
class=
"paper_QuesDes"
>
不勾选时全选对才给分
</div>
</div>
</div>
<div
class=
"setCt"
>
<span
class=
"papPub_Left f1"
>
试卷封面图
</span>
<div
class=
"f1"
>
<div
style=
"display:flex;flex-wrap: wrap;"
>
<
template
v-if=
"postMsg.PublishPic.length>0"
>
<div
v-for=
"(item,index) in postMsg.PublishPic"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment