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
dfac6db7
Commit
dfac6db7
authored
Sep 07, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面下修改
parent
7409a988
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
112 additions
and
50 deletions
+112
-50
entry-problem.vue
src/components/questiontype/entry-problem.vue
+2
-2
fill-in.vue
src/components/questiontype/fill-in.vue
+3
-3
v-entryproblem.vue
src/components/questiontype/v-entryproblem.vue
+49
-21
v-fillin.vue
src/components/questiontype/v-fillin.vue
+50
-21
v-judge.vue
src/components/questiontype/v-judge.vue
+1
-1
v-multiple.vue
src/components/questiontype/v-multiple.vue
+1
-1
v-readingcomprehensio.vue
src/components/questiontype/v-readingcomprehensio.vue
+5
-0
v-single.vue
src/components/questiontype/v-single.vue
+1
-1
No files found.
src/components/questiontype/entry-problem.vue
View file @
dfac6db7
...
...
@@ -15,9 +15,9 @@
<
template
>
<div
class=
"entryProblemQuestion"
>
<table
v-if=
"data&&data.length>0"
class=
"common_TiTable"
>
<tr
v-for=
"(item,index) in data"
>
<tr
v-for=
"(item,index) in data"
:key=
"index"
>
<td
style=
"width:40px;text-align:center;padding-top:8px;"
>
第
{{
index
+
1
}}
空
</el-checkbox>
第
{{
index
+
1
}}
空
</td>
<td>
<div
class=
"InpDIV"
v-html=
"item.Content"
v-if=
"commonIndex!=index"
@
click=
"changeEdit(index)"
></div>
...
...
src/components/questiontype/fill-in.vue
View file @
dfac6db7
...
...
@@ -16,9 +16,9 @@
<
template
>
<div
class=
"fillInQuestion"
>
<table
v-if=
"data&&data.length>0"
class=
"common_TiTable"
>
<tr
v-for=
"(item,index) in data"
>
<tr
v-for=
"(item,index) in data"
:key=
"index"
>
<td
style=
"width:50px;text-align:center;padding-top:8px;"
>
第
{{
index
+
1
}}
空
</el-checkbox>
第
{{
index
+
1
}}
空
</td>
<td>
<div
class=
"InpDIV"
v-html=
"item.Content"
v-if=
"commonIndex!=index"
@
click=
"changeEdit(index)"
></div>
...
...
@@ -39,7 +39,7 @@
<br
/>
<div
class=
"tk_info"
>
1. 一个空有多种答案时请用";"隔开。如:水;H2O
<
/br
>
<
br
/
>
2. 若试题答案是数字,可设置范围,两个数字之间用"-"。如:1-9,学生填写1到9之间的数字都算正确(包括1和9)
</div>
</div>
...
...
src/components/questiontype/v-entryproblem.vue
View file @
dfac6db7
...
...
@@ -4,30 +4,44 @@
width
:
100%
;
}
.v_entryProblemBold
{
font-weight
:
bold
}
.v_entryProblemTitle
{
width
:
70px
;
text-align
:
center
;
padding-top
:
8px
;
}
</
style
>
<
template
>
<div
class=
"v_entryProblemQuestion"
>
<table
v-if=
"data&&data.QuestionContentObj&&data.QuestionContentObj.length>0"
class=
"common_TiTable"
>
<tbody
v-if=
"isShowAnswer"
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
style=
"width:40px;text-align:center;padding-top:8px;"
>
第
{{
index
+
1
}}
空
</el-checkbox>
</td>
<td>
<div
class=
"InpDIV"
style=
"border:0;margin-top:-2px;"
v-html=
"item.Content"
></div>
</td>
</tr>
</tbody>
<tbody
v-if=
"isOperate"
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
style=
"width:50px;text-align:center;padding-top:8px;"
>
第
{{
index
+
1
}}
空
</el-checkbox>
</td>
<td>
<el-input
v-model=
"item.Content"
:placeholder=
"'请填写第 '+(index+1)+' 空答案'"
>
</el-input>
</td>
</tr>
</tbody>
<template
v-if=
"isShowAnswer"
>
<tbody
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
class=
"v_entryProblemTitle"
>
第
{{
index
+
1
}}
空
</td>
<td>
<div
class=
"InpDIV"
style=
"border:0;margin-top:-2px;"
v-html=
"item.Content"
></div>
</td>
</tr>
</tbody>
</
template
>
<
template
v-if=
"isOperate"
>
<tbody
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
class=
"v_entryProblemBold"
>
第
{{
index
+
1
}}
空
</td>
<td>
<el-input
v-model=
"item.Content"
:placeholder=
"'请填写第 '+(index+1)+' 空答案'"
>
</el-input>
</td>
</tr>
</tbody>
</
template
>
<tbody>
<tr>
<td
colspan=
"2"
><span
v-if=
"data&&data.IsMutex==1"
style=
"font-size:13px;"
>
答案顺序打乱也判正确
</span></td>
...
...
@@ -41,8 +55,22 @@
</tbody>
<tfoot
v-if=
"isShowAnswer"
>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:
{{
data
.
StundetAnswer
}}
</td>
<td
class=
"v_entryProblemBold"
>
考生答案
</td>
<td>
</td>
</tr>
<
template
v-if=
"isShowStudentAnswer"
>
<tr
v-for=
"(item,index) in data.AnswerList"
:key=
"index"
>
<td
class=
"v_entryProblemBold"
>
第
{{
index
+
1
}}
空
</td>
<td
class=
"v_entryProblemBold"
>
{{
item
}}
</td>
</tr>
</
template
>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
...
...
src/components/questiontype/v-fillin.vue
View file @
dfac6db7
...
...
@@ -4,30 +4,45 @@
width
:
100%
;
}
.v_fillInBold
{
font-weight
:
bold
}
.v_fillInTitle
{
width
:
70px
;
text-align
:
center
;
padding-top
:
8px
;
}
</
style
>
<
template
>
<div
class=
"v_fillInQuestion"
>
<table
v-if=
"data&&data.QuestionContentObj&&data.QuestionContentObj.length>0"
class=
"common_TiTable"
>
<tbody
v-if=
"isShowAnswer"
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
style=
"width:50px;text-align:center;padding-top:8px;"
>
第
{{
index
+
1
}}
空
</el-checkbox>
</td>
<td>
<div
class=
"InpDIV"
style=
"border:0;margin-top:-2px;"
v-html=
"item.Content"
></div>
</td>
</tr>
</tbody>
<tbody
v-if=
"isOperate"
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
style=
"width:50px;text-align:center;padding-top:8px;"
>
第
{{
index
+
1
}}
空
</el-checkbox>
</td>
<td>
<el-input
v-model=
"item.Content"
:placeholder=
"'请填写第 '+(index+1)+' 空答案'"
>
</el-input>
</td>
</tr>
</tbody>
<template
v-if=
"isShowAnswer"
>
<tbody
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
class=
"v_fillInTitle"
>
第
{{
index
+
1
}}
空
</td>
<td>
<div
class=
"InpDIV"
style=
"border:0;margin-top:-2px;"
v-html=
"item.Content"
></div>
</td>
</tr>
</tbody>
</
template
>
<!--可以填写-->
<
template
v-if=
"isOperate"
>
<tbody
v-for=
"(item,index) in data.QuestionContentObj"
:key=
"index"
>
<tr>
<td
class=
"v_fillInTitle"
>
第
{{
index
+
1
}}
空
</td>
<td>
<el-input
v-model=
"item.Content"
:placeholder=
"'请填写第 '+(index+1)+' 空答案'"
>
</el-input>
</td>
</tr>
</tbody>
</
template
>
<tbody>
<tr>
<td
colspan=
"2"
><span
v-if=
"data&&data.IsMutex==1"
style=
"font-size:13px;"
>
答案顺序打乱也判正确
</span></td>
...
...
@@ -41,8 +56,22 @@
</tbody>
<tfoot
v-if=
"isShowAnswer"
>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:
{{
data
.
StundetAnswer
}}
</td>
<td
class=
"v_fillInBold"
>
考生答案
</td>
<td>
</td>
</tr>
<
template
v-if=
"isShowStudentAnswer"
>
<tr
v-for=
"(item,index) in data.AnswerList"
:key=
"index"
>
<td
class=
"v_fillInBold"
>
第
{{
index
+
1
}}
空
</td>
<td
class=
"v_fillInBold"
>
{{
item
}}
</td>
</tr>
</
template
>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
<q-input
standout=
"bg-primary text-white"
v-model=
"data.StundetScore"
label=
"得分:"
maxlength=
"20"
/>
...
...
src/components/questiontype/v-judge.vue
View file @
dfac6db7
...
...
@@ -34,7 +34,7 @@
<td
colspan=
"2"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:{{data.StundetAnswer}}
</td>
<td
colspan=
"2"
style=
"font-weight:bold"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
...
...
src/components/questiontype/v-multiple.vue
View file @
dfac6db7
...
...
@@ -33,7 +33,7 @@
<td
colspan=
"2"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:{{data.StundetAnswer}}
</td>
<td
colspan=
"2"
style=
"font-weight:bold"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
...
...
src/components/questiontype/v-readingcomprehensio.vue
View file @
dfac6db7
...
...
@@ -185,6 +185,11 @@
type
:
Boolean
,
default
:
false
,
},
//是否显示学生答案
isShowStudentAnswer
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
...
...
src/components/questiontype/v-single.vue
View file @
dfac6db7
...
...
@@ -33,7 +33,7 @@
<td
colspan=
"2"
>
正确答案:{{data.Answer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
考生答案:{{data.StundetAnswer}}
</td>
<td
colspan=
"2"
style=
"font-weight:bold"
>
考生答案:{{data.StundetAnswer}}
</td>
</tr>
<tr
v-if=
"isShowStudentAnswer"
>
<td
colspan=
"2"
>
...
...
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