Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea_resources_pc
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
张伯涛
tea_resources_pc
Commits
9edfa67b
Commit
9edfa67b
authored
May 20, 2024
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
72039 【PC端】考核结果显示中的问答题部分,需要按照最新原型修改
parent
1c027f1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
15 deletions
+50
-15
EduExercise.vue
src/components/EduExercise/EduExercise.vue
+13
-12
index.vue
src/views/lessionLearn/index.vue
+37
-3
No files found.
src/components/EduExercise/EduExercise.vue
View file @
9edfa67b
...
...
@@ -59,7 +59,7 @@
<li
v-for=
"item in exeOptions"
:class=
"
{
rightLabel: isFinish
&&
item.type == exeQAnswer
&&
isFalse === '0'
rightLabel: isFinish
&&
item.type == exeQAnswer
&&
(isFalse === '0' || isUnitView)
}"
>
<label
class=
"text-label"
>
...
...
@@ -72,7 +72,7 @@
{{
item
.
type
}}
.
{{
item
.
details
}}
</div>
<span
v-if=
"isFinish && item.type == exeQAnswer &&
isFalse === '0'
"
v-if=
"isFinish && item.type == exeQAnswer &&
(isFalse === '0' || isUnitView)
"
class=
"answerText"
>
正确答案
</span>
</label>
...
...
@@ -89,7 +89,7 @@
rightLabel:
isFinish
&&
exeQAnswer.indexOf(item.type) != -1
&&
isFalse === '0'
,
(isFalse === '0' || isUnitView)
,
options: true,
multOPtions: true,
blueCheck: isFinish
...
...
@@ -102,7 +102,7 @@
v-if=
"
isFinish &&
exeQAnswer.indexOf(item.type) != -1 &&
isFalse === '0'
(isFalse === '0' || isUnitView)
"
class=
"answerText"
>
正确答案
</span>
...
...
@@ -116,7 +116,7 @@
>
<li
:class=
"
{
rightLabel: isFinish
&&
'1' == exeQAnswer
&&
isFalse === '0'
rightLabel: isFinish
&&
('1' == exeQAnswer || '对' == exeQAnswer)
&&
(isFalse === '0' || isUnitView)
}"
>
<label
class=
"text-label"
>
...
...
@@ -125,13 +125,13 @@
正确
</div>
<span
v-if=
"isFinish &&
'1' == exeQAnswer && isFalse === '0'
"
v-if=
"isFinish &&
('1' == exeQAnswer || '对' == exeQAnswer) && (isFalse === '0' || isUnitView)
"
class=
"answerText"
>
正确答案
</span></label>
</li>
<li
:class=
"
{
rightLabel: isFinish
&&
'0' == exeQAnswer
&&
isFalse === '0'
rightLabel: isFinish
&&
('0' == exeQAnswer || '错' == exeQAnswer)
&&
(isFalse === '0' || isUnitView)
}"
>
<label
class=
"text-label"
>
...
...
@@ -140,7 +140,7 @@
错误
</div>
<span
v-if=
"isFinish &&
'0' == exeQAnswer
"
v-if=
"isFinish &&
('0' == exeQAnswer || '错' == exeQAnswer) && (isFalse === '0' || isUnitView)
"
class=
"answerText"
>
正确答案
</span></label>
</li>
...
...
@@ -149,7 +149,7 @@
<li>
<label
:class=
"
{
rightLabel: isFinish
&&
isFalse === '0'
,
rightLabel: isFinish
&&
(isFalse === '0' || isUnitView)
,
errorLabel: isFinish
&&
isFalse !== '0'
}"
>
...
...
@@ -160,9 +160,9 @@
:rows=
"5"
/>
<span
v-if=
"isFinish &&
'1' == exeQAnswer
"
v-if=
"isFinish &&
(isFalse === '0' || isUnitView)
"
class=
"answerText"
>
正确答案
</span>
>
正确答案
:
{{
exeQAnswer
}}
</span>
</label>
</li>
</ul>
...
...
@@ -187,6 +187,7 @@ export default {
'isFinish'
,
'score'
,
'isFalse'
,
'isUnitView'
,
'getscore'
,
'black'
,
'sbumitFinish'
...
...
@@ -410,7 +411,7 @@ export default {
margin: 8px 0;
}
.multText{
color: #
292929
;
color: #
ffffff
;
}
}
.exe-answer,
...
...
src/views/lessionLearn/index.vue
View file @
9edfa67b
...
...
@@ -13,6 +13,7 @@
正在播放第
{{
currentChapter
.
index
+
'-'
+
(
currentSection
.
sort
)
}}
节
{{
currentSection
.
chapterName
||
'章节名称'
}}
</div>
<div
class=
"lession-download"
>
<div
v-show=
"showCheck"
class=
"checkSubmit"
@
click=
"getAnswer"
>
查看考核内容
</div>
课程资料下载:
<img
class=
"zip-img"
:src=
"yasuobao"
@
click=
"zipShow"
>
</div>
...
...
@@ -35,14 +36,14 @@
<div
v-if=
"isExam"
class=
"title-area"
>
<div
class=
"title-area-left"
>
<div
class=
"lession-name-exam"
>
{{
lessionName
}}
<img
:src=
"kezi_icon_jiantouhui"
/
>
<img
:src=
"kezi_icon_jiantouhui"
>
考核区
</div>
<div
class=
"title-right-exam"
>
<div
v-show=
"!unitView"
class=
"title-right-exam"
>
<img
class=
"rate-img"
:src=
"tishi"
>
本课程不支持重复考核,仅可以参与一次
</div>
</div>
<div
v-show=
"startExam === 4"
class=
"title-area-right"
@
click=
"startExam = 3"
>
<div
v-show=
"startExam === 4
&& !unitView
"
class=
"title-area-right"
@
click=
"startExam = 3"
>
<img
:src=
"kezi_icon_fanhui"
>
返回
</div>
...
...
@@ -117,6 +118,7 @@
<edu-exe
:id=
"'s'+index"
:is-finish=
"startExam === 4"
:is-unit-view=
"unitView"
:exe-index=
"index+1"
:exe-subject=
"item.questionStem"
:exe-type=
"views[item.questionType-1]"
...
...
@@ -384,6 +386,7 @@ export default {
},
data
()
{
return
{
unitView
:
false
,
kezi_icon_jiantouhui
,
roleKey
:
''
,
kezi_icon_fanhui
,
...
...
@@ -573,6 +576,13 @@ export default {
},
computed
:
{
...
mapGetters
([
'userId'
,
'roles'
]),
showCheck
()
{
const
roleKey
=
this
.
roles
[
0
]
?
this
.
roles
[
0
].
roleKey
:
null
if
(
roleKey
&&
roleKey
===
'unit_admin'
)
{
return
true
}
return
false
},
// 动态获得各个分类题目
ssList
()
{
return
(
type
)
=>
{
...
...
@@ -648,6 +658,13 @@ export default {
// this.courseBusinessId = this.$route.query.courseBusinessId
// },
methods
:
{
// 单位管理员直接获取答案试卷
getAnswer
()
{
this
.
isExam
=
true
this
.
startExam
=
4
this
.
unitView
=
true
this
.
examInit
()
},
goExam
()
{
console
.
log
(
'go'
)
this
.
sucessDialog
=
false
...
...
@@ -1429,6 +1446,7 @@ export default {
justify-content: space-between;
.title-area-left{
display: flex;
align-items: center;
}
.title-area-right{
display: flex;
...
...
@@ -1460,6 +1478,20 @@ export default {
.zip-img{
cursor: pointer;
}
.checkSubmit{
width: 120px;
height: 44px;
background: linear-gradient(90deg,#3683fc, #5be6fc 100%);
border-radius: 8px;
font-size: 16px;
font-family: Source Han Sans CN, Source Han Sans CN-400;
font-weight: 400;
color: #ffffff;
line-height: 44px;
text-align: center;
cursor: pointer;
margin-right: 20px;
}
}
}
.title-right-exam{
...
...
@@ -1488,6 +1520,8 @@ export default {
text-align: LEFT;
color: #ffffff;
line-height: 23px;
display: flex;
align-items: center;
}
.play-title{
padding: 0 24px;
...
...
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