Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzksxt
Overview
Overview
Details
Activity
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
常超
xzksxt
Commits
c060e895
Commit
c060e895
authored
Jan 08, 2024
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改回显bug
parent
1d21a7d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
40 deletions
+18
-40
src/components/student/answer.vue
+7
-1
src/components/teacher/addAnswerChildren.vue
+11
-39
No files found.
src/components/student/answer.vue
View file @
c060e895
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<ul>
<ul>
<li
class=
"first"
>
<li
class=
"first"
>
<el-tag
type=
"success"
>
正确答案:
</el-tag>
<el-tag
type=
"success"
>
正确答案:
</el-tag>
<span
class=
"right"
>
{{
reduceAnswer
.
answer
}}
</span></li>
<span
class=
"right"
>
{{
pdt
answer
}}
</span></li>
<li
class=
"second"
>
<li
class=
"second"
>
<el-tag>
题目解析:
</el-tag>
<el-tag>
题目解析:
</el-tag>
<div
class=
"li2right"
>
{{
reduceAnswer
.
analysis
==
null
?
'无'
:
reduceAnswer
.
analysis
}}
</div>
<div
class=
"li2right"
>
{{
reduceAnswer
.
analysis
==
null
?
'无'
:
reduceAnswer
.
analysis
}}
</div>
...
@@ -180,6 +180,7 @@ import {mapState} from 'vuex'
...
@@ -180,6 +180,7 @@ import {mapState} from 'vuex'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pdtanswer
:
''
,
dialogImageUrl
:
""
,
//放大的图片
dialogImageUrl
:
""
,
//放大的图片
isradio
:
false
,
//默认为false 。。点击后改为true
isradio
:
false
,
//默认为false 。。点击后改为true
ischeckBox
:
false
,
//默认为false 。。点击后改为true
ischeckBox
:
false
,
//默认为false 。。点击后改为true
...
@@ -295,6 +296,11 @@ export default {
...
@@ -295,6 +296,11 @@ export default {
}
else
if
(
!
reduceAnswer
.
oneOrMore
)
{
}
else
if
(
!
reduceAnswer
.
oneOrMore
)
{
reduceAnswer
.
oneOrMore
=
'3'
reduceAnswer
.
oneOrMore
=
'3'
this
.
optionValue
=
'判断题'
this
.
optionValue
=
'判断题'
if
(
reduceAnswer
.
answer
==
'T'
){
this
.
pdtanswer
=
"正确"
}
else
{
this
.
pdtanswer
=
"错误"
}
}
}
this
.
showQuestion
=
reduceAnswer
.
question
this
.
showQuestion
=
reduceAnswer
.
question
})
})
...
...
src/components/teacher/addAnswerChildren.vue
View file @
c060e895
...
@@ -397,6 +397,9 @@
...
@@ -397,6 +397,9 @@
optionValue
(
newValue
)
{
optionValue
(
newValue
)
{
this
.
postChange
.
rightAnswer
=
''
this
.
postChange
.
rightAnswer
=
''
this
.
photoList
=
[]
this
.
photoList
=
[]
// this.postChange = {}
// this.oneSelect= ''
// this.moreSelect = ""
}
}
},
},
created
()
{
created
()
{
...
@@ -502,7 +505,8 @@
...
@@ -502,7 +505,8 @@
this
.
subject
=
subject
this
.
subject
=
subject
this
.
postPaper
.
paperId
=
paperId
this
.
postPaper
.
paperId
=
paperId
},
},
changeSubmit
()
{
//选择题题库提交
//选择题题库提交
changeSubmit
()
{
let
self
=
this
;
let
self
=
this
;
this
.
postChange
.
oneOrMore
=
'1'
this
.
postChange
.
oneOrMore
=
'1'
this
.
postChange
.
rightAnswer
=
this
.
oneSelect
this
.
postChange
.
rightAnswer
=
this
.
oneSelect
...
@@ -524,9 +528,6 @@
...
@@ -524,9 +528,6 @@
message
:
'已添加到题库'
,
message
:
'已添加到题库'
,
type
:
'success'
type
:
'success'
})
})
this
.
postChange
=
{}
this
.
oneSelect
=
''
this
.
moreSelect
=
""
}
}
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$axios
(
`/api/multiQuestionId`
).
then
(
res
=>
{
//获取当前题目的questionId
this
.
$axios
(
`/api/multiQuestionId`
).
then
(
res
=>
{
//获取当前题目的questionId
...
@@ -546,7 +547,7 @@
...
@@ -546,7 +547,7 @@
method
:
'Post'
,
method
:
'Post'
,
data
:
params
data
:
params
})
})
this
.
photoList
=
[]
//
this.photoList=[]
})
})
})
})
},
},
...
@@ -643,38 +644,6 @@
...
@@ -643,38 +644,6 @@
}
}
})
})
},
},
/* fillSubmit() { //填空题提交
this.postFill.subject = this.subject
this.$axios({
url: '/api/fillQuestion',
method: 'post',
data: {
...this.postFill
}
}).then(res => {
let status = res.data.code
if(status == 200) {
this.$message({
message: '已添加到题库',
type: 'success'
})
this.postFill = {}
}
}).then(() => {
this.$axios(`/api/fillQuestionId`).then(res => { //获取当前题目的questionId
let questionId = res.data.data.questionId
this.postPaper.questionId = questionId
this.postPaper.questionType = 2
this.$axios({
url: '/api/paperManage',
method: 'Post',
data: {
...this.postPaper
}
})
})
})
},*/
//判断题提交
//判断题提交
judgeSubmit
()
{
judgeSubmit
()
{
let
self
=
this
;
let
self
=
this
;
...
@@ -693,7 +662,6 @@
...
@@ -693,7 +662,6 @@
message
:
'已添加到题库'
,
message
:
'已添加到题库'
,
type
:
'success'
type
:
'success'
})
})
this
.
postJudge
=
{}
}
}
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$axios
(
`/api/judgeQuestionId`
).
then
(
res
=>
{
//获取当前题目的questionId
this
.
$axios
(
`/api/judgeQuestionId`
).
then
(
res
=>
{
//获取当前题目的questionId
...
@@ -710,7 +678,7 @@
...
@@ -710,7 +678,7 @@
method
:
'Post'
,
method
:
'Post'
,
data
:
params
data
:
params
})
})
this
.
photoList
=
[]
//
this.photoList=[]
})
})
})
})
}
}
...
@@ -719,6 +687,10 @@
...
@@ -719,6 +687,10 @@
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
//
小对号
/
deep
/
.el-upload-list__item-status-label
{
display
:
block
;
}
//
点击上传
//
点击上传
.upload-demo
{
.upload-demo
{
height
:
100px
;
height
:
100px
;
...
...
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