Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gk-online-teacher
Project
Project
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
huanglu
gk-online-teacher
Commits
e90ee90c
Commit
e90ee90c
authored
Dec 24, 2020
by
晏成浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/20201222_show_student_answer' into 'master'
Feature/20201222 show student answer See merge request
!4
parents
575607aa
84fe608b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
11 deletions
+25
-11
index.vue
src/views/paint-screen/components/answer-dialog/index.vue
+25
-11
No files found.
src/views/paint-screen/components/answer-dialog/index.vue
View file @
e90ee90c
...
...
@@ -9,27 +9,27 @@
<el-button
@
click=
"handleQuestionStop"
>
结束答题
</el-button>
<el-button
type=
"danger"
@
click=
"$emit('question-exit',false)"
>
退出
</el-button>
</div>
<div
v-if=
"quickResponse"
>
<div
v-if=
"isShowQuickResponse"
class=
"student-as-box"
>
<div
v-if=
"isShowQuickResponse"
class=
"quick-response-box"
>
<!--
<div
v-if=
"isShowQuickResponse"
class=
"student-as-box"
>
-->
<div
v-if=
"isShowQuickResponse"
class=
"student-as-box"
style=
"margin: 0;border-color: #42b983"
>
<img
:src=
"require('@/assets/images/icon-student-avator.png')"
alt=
""
>
<div
class=
"info-box"
>
<p>
学生:
{{
quickResponse
.
username
}}
</p>
<div
class=
"answer-box"
>
<span>
答案:
{{
quickResponse
.
answer
}}
</span>
<span>
{{
quickResponse
.
answer
}}
</span>
</div>
</div>
</div>
</div>
<div
v-if=
"isShowContent"
class=
"answer-dialog"
@
click=
"$event.stopPropagation()"
>
<div
v-for=
"(item,idx) in replyList"
:key=
"idx"
class=
"student-as-box"
>
<div
v-for=
"(item,idx) in replyList"
:key=
"idx"
class=
"student-as-box"
:style=
"
{borderColor:item.answer?'#42b983':'rgba(70, 131, 230, .3)'}"
>
<img
:src=
"require('@/assets/images/icon-student-avator.png')"
alt=
""
>
<div
class=
"info-box"
>
<p>
学生:
{{
item
.
username
}}
</p>
<div
class=
"answer-box"
>
<span>
答案:
</span>
<!-- 没答案 选择题-->
<span
v-if=
"!item.type||item.type
===3
"
>
{{
item
.
answer
||
'正在答题中'
}}
</span>
<span
v-if=
"!item.type||item.type
!==1
"
>
{{
item
.
answer
||
'正在答题中'
}}
</span>
<img
v-else
@
click=
"handleShowImg(item.answer)"
:src=
"item.answer"
alt=
""
>
</div>
</div>
...
...
@@ -63,10 +63,15 @@ export default {
console
.
log
(
'answerList'
,
this
.
replyList
)
},
watch
:
{
quickResponse
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
this
.
isShowContent
=
true
}
quickResponse
:
{
handler
(
newVal
,
oldVal
)
{
console
.
log
(
'aaaaaaaaaaaa'
,
!
newVal
)
if
(
newVal
)
{
this
.
isShowQuickResponse
=
true
}
},
immediate
:
true
}
},
methods
:
{
...
...
@@ -136,6 +141,14 @@ export default {
}
}
}
.quick-response-box
{
position
:
fixed
;
top
:
200px
;
left
:
110px
;
border-radius
:
20px
;
background
:
white
;
padding
:
20px
;
}
.answer-dialog
{
position
:
fixed
;
top
:
20px
;
...
...
@@ -158,7 +171,8 @@ export default {
height
:
100px
;
margin-right
:
10px
;
border-radius
:
10px
;
border
:
2px
solid
rgba
(
70
,
131
,
230
,
.3
);
border-width
:
2px
;
border-style
:
solid
;
align-items
:
center
;
display
:
flex
;
padding
:
10px
;
...
...
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