Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-exam-show
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-exam-show
Commits
1fda54c0
提交
1fda54c0
authored
11月 05, 2020
作者:
高一
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
考试系统页面交互返回Bug修改完成
上级
486cad3e
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
88 行增加
和
24 行删除
+88
-24
404.vue
src/components/errorPages/404.vue
+4
-1
500.vue
src/components/errorPages/500.vue
+4
-1
question.vue
src/components/exam/question.vue
+35
-12
examAnswer.vue
src/pages/exam/examAnswer.vue
+7
-3
examEnd.vue
src/pages/exam/examEnd.vue
+12
-1
examTime.vue
src/pages/exam/examTime.vue
+5
-1
confirmInfo.vue
src/pages/login/confirmInfo.vue
+16
-4
index.vue
src/pages/login/index.vue
+5
-1
没有找到文件。
src/components/errorPages/404.vue
浏览文件 @
1fda54c0
...
@@ -14,7 +14,10 @@ export default {
...
@@ -14,7 +14,10 @@ export default {
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
goIndex
()
{
goIndex
()
{
this
.
$router
.
push
({
path
:
'/'
})
// this.$router.push({ path: '/' })
this
.
$router
.
replace
({
path
:
'/'
})
},
},
goPrev
()
{
goPrev
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
...
src/components/errorPages/500.vue
浏览文件 @
1fda54c0
...
@@ -16,7 +16,10 @@ export default {
...
@@ -16,7 +16,10 @@ export default {
},
},
methods
:
{
methods
:
{
goIndex
()
{
goIndex
()
{
this
.
$router
.
push
({
path
:
'/'
})
// this.$router.push({ path: '/' })
this
.
$router
.
replace
({
path
:
'/'
})
},
},
goPrev
()
{
goPrev
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
...
src/components/exam/question.vue
浏览文件 @
1fda54c0
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
<template
v-for=
"(item, index) in questionData.options"
>
<template
v-for=
"(item, index) in questionData.options"
>
<li
<li
:key=
"index"
:key=
"index"
@
click=
"changeOptions(questionData.question_item_type, questionData.question_item_id, questionData.id, item.id)"
:class=
"questionParams.answerRecord[questionData.question_item_id]
:class=
"questionParams.answerRecord[questionData.question_item_id]
? questionParams.answerRecord[questionData.question_item_id][questionData.id]
? questionParams.answerRecord[questionData.question_item_id][questionData.id]
? questionParams.answerRecord[questionData.question_item_id][questionData.id].answer.find(id =>
{ return id === item.id })
? questionParams.answerRecord[questionData.question_item_id][questionData.id].answer.find(id =>
{ return id === item.id })
...
@@ -23,8 +22,10 @@
...
@@ -23,8 +22,10 @@
: ''
: ''
: ''"
: ''"
>
>
<div
class=
"icon"
></div>
<div
@
click=
"changeOptions(questionData.question_item_type, questionData.question_item_id, questionData.id, item.id)"
>
<div
class=
"txt"
>
{{
item
.
option
}}
</div>
<div
class=
"icon"
></div>
<div
class=
"txt"
>
{{
item
.
option
}}
</div>
</div>
</li>
</li>
</
template
>
</
template
>
</ul>
</ul>
...
@@ -49,7 +50,6 @@
...
@@ -49,7 +50,6 @@
<li
<li
:id=
"items.id"
:id=
"items.id"
:key=
"'c' + cIndex"
:key=
"'c' + cIndex"
@
click=
"changeOptions(item.type, questionData.question_item_id, questionData.id, items.id)"
:class=
"questionParams.answerRecord[questionData.question_item_id]
:class=
"questionParams.answerRecord[questionData.question_item_id]
? questionParams.answerRecord[questionData.question_item_id][questionData.id]
? questionParams.answerRecord[questionData.question_item_id][questionData.id]
? questionParams.answerRecord[questionData.question_item_id][questionData.id].answer.find(id =>
{ return id === items.id })
? questionParams.answerRecord[questionData.question_item_id][questionData.id].answer.find(id =>
{ return id === items.id })
...
@@ -58,8 +58,10 @@
...
@@ -58,8 +58,10 @@
: ''
: ''
: ''"
: ''"
>
>
<div
class=
"icon"
></div>
<div
@
click=
"changeOptions(item.type, questionData.question_item_id, questionData.id, items.id)"
>
<div
class=
"txt"
>
{{
items
.
option
}}
</div>
<div
class=
"icon"
></div>
<div
class=
"txt"
>
{{
items
.
option
}}
</div>
</div>
</li>
</li>
</
template
>
</
template
>
</template>
</template>
...
@@ -279,24 +281,45 @@ export default {
...
@@ -279,24 +281,45 @@ export default {
margin
:
0
;
margin
:
0
;
list-style
:
none
;
list-style
:
none
;
li
{
li
{
cursor
:
pointer
;
//
cursor: pointer;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
display
:
flex
;
// display: flex;
overflow
:
hidden
;
// align-items: center;
// align-items: center;
.icon
{
div
{
float
:
left
;
cursor
:
pointer
;
.icon
{
width
:
18px
;
width
:
18px
;
height
:
18px
;
height
:
18px
;
border
:
1px
solid
#999999
;
border
:
1px
solid
#999999
;
border-radius
:
50%
;
border-radius
:
50%
;
margin-top
:
3px
;
margin-top
:
3px
;
}
float
:
left
;
.txt
{
}
width
:
95%
;
.txt
{
max-width
:
95%
;
font-size
:
18px
;
font-size
:
18px
;
color
:
#222222
;
color
:
#222222
;
line-height
:
28px
;
line-height
:
28px
;
margin-left
:
10px
;
margin-left
:
10px
;
float
:
left
;
}
}
}
// .icon{
// width: 18px;
// height: 18px;
// border: 1px solid #999999;
// border-radius: 50%;
// margin-top: 3px;
// }
// .txt{
// width: 95%;
// font-size: 18px;
// color: #222222;
// line-height: 28px;
// margin-left: 10px;
// }
&
.active
{
&
.active
{
.icon
{
.icon
{
width
:
8px
;
width
:
8px
;
...
...
src/pages/exam/examAnswer.vue
浏览文件 @
1fda54c0
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
@
click=
"changeIndex('next')"
@
click=
"changeIndex('next')"
>
下一题
</div>
>
下一题
</div>
</div>
</div>
<div
class=
"rigth-btn"
@
click=
"signHandle"
>
<div
class=
"rigth-btn"
>
<div
class=
"sign"
>
<div
class=
"sign"
@
click=
"signHandle"
>
<div
class=
"icon"
></div>
<div
class=
"icon"
></div>
<div
class=
"txt"
>
{{
itemSign
?
'取消标记'
:
'标记'
}}
</div>
<div
class=
"txt"
>
{{
itemSign
?
'取消标记'
:
'标记'
}}
</div>
</div>
</div>
...
@@ -116,9 +116,13 @@ export default {
...
@@ -116,9 +116,13 @@ export default {
}
}
action
.
Exam
.
endExam
(
this
.
$route
.
params
.
examId
,
param
).
then
(
res
=>
{
action
.
Exam
.
endExam
(
this
.
$route
.
params
.
examId
,
param
).
then
(
res
=>
{
clearInterval
(
this
.
clearTime
)
clearInterval
(
this
.
clearTime
)
this
.
$router
.
push
({
// this.$router.push({
// path: '/examEnd'
// })
this
.
$router
.
replace
({
path
:
'/examEnd'
path
:
'/examEnd'
})
})
window
.
sessionStorage
.
setItem
(
'showflag'
,
'true'
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
$alert
(
err
.
message
,
{
this
.
$alert
(
err
.
message
,
{
callback
:
action
=>
{}
callback
:
action
=>
{}
...
...
src/pages/exam/examEnd.vue
浏览文件 @
1fda54c0
...
@@ -19,16 +19,27 @@ export default {
...
@@ -19,16 +19,27 @@ export default {
data
()
{
data
()
{
return
{
return
{
width
:
''
,
width
:
''
,
ispop
:
true
,
ispop
:
''
,
examInfo
:
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'examInfo'
))
examInfo
:
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'examInfo'
))
}
}
},
},
created
()
{
this
.
getsess
()
},
methods
:
{
getsess
()
{
this
.
ispop
=
Boolean
(
window
.
sessionStorage
.
getItem
(
'showflag'
))
console
.
log
(
111
+
this
.
ispop
)
}
},
mounted
()
{
mounted
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
width
=
'100%'
this
.
width
=
'100%'
// this.ispop = 'true'
},
1000
)
},
1000
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
ispop
=
false
this
.
ispop
=
false
window
.
sessionStorage
.
removeItem
(
'showflag'
)
},
4000
)
},
4000
)
}
}
}
}
...
...
src/pages/exam/examTime.vue
浏览文件 @
1fda54c0
...
@@ -48,7 +48,11 @@ export default {
...
@@ -48,7 +48,11 @@ export default {
num3
:
'0'
,
num3
:
'0'
,
num4
:
'0'
num4
:
'0'
}
}
this
.
$router
.
push
({
// this.$router.push({
// path: `/examAnswer/${JSON.parse(window.sessionStorage.getItem('examInfo')).exam_id}`,
// replace: true
// })
this
.
$router
.
replace
({
path
:
`/examAnswer/
${
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'examInfo'
)).
exam_id
}
`
path
:
`/examAnswer/
${
JSON
.
parse
(
window
.
sessionStorage
.
getItem
(
'examInfo'
)).
exam_id
}
`
})
})
}
}
...
...
src/pages/login/confirmInfo.vue
浏览文件 @
1fda54c0
...
@@ -68,18 +68,30 @@ export default {
...
@@ -68,18 +68,30 @@ export default {
// console.log(this.isExamStatus(this.examInfo.start_time > 0))
// console.log(this.isExamStatus(this.examInfo.start_time > 0))
this
.
isExamStatus
(
this
.
examInfo
.
start_time
)
>
0
this
.
isExamStatus
(
this
.
examInfo
.
start_time
)
>
0
?
(()
=>
{
?
(()
=>
{
this
.
$router
.
push
({
// this.$router.push({
name
:
'examTime'
// name: 'examTime',
// replace: true
// })
this
.
$router
.
replace
({
path
:
'/examTime'
})
})
})()
})()
:
(()
=>
{
:
(()
=>
{
this
.
$router
.
push
({
// this.$router.push({
// path: `/examAnswer/${this.examInfo.exam_id}`,
// replace: true
// })
this
.
$router
.
replace
({
path
:
`/examAnswer/
${
this
.
examInfo
.
exam_id
}
`
path
:
`/examAnswer/
${
this
.
examInfo
.
exam_id
}
`
})
})
})()
})()
},
},
disagree
()
{
disagree
()
{
this
.
$router
.
push
({
// this.$router.push({
// path: `/login/${this.examInfo.exam_id}`,
// replace: true
// })
this
.
$router
.
replace
({
path
:
`/login/
${
this
.
examInfo
.
exam_id
}
`
path
:
`/login/
${
this
.
examInfo
.
exam_id
}
`
})
})
},
},
...
...
src/pages/login/index.vue
浏览文件 @
1fda54c0
...
@@ -146,7 +146,11 @@ export default {
...
@@ -146,7 +146,11 @@ export default {
window
.
sessionStorage
.
setItem
(
'studentInfo'
,
JSON
.
stringify
(
res
))
window
.
sessionStorage
.
setItem
(
'studentInfo'
,
JSON
.
stringify
(
res
))
const
status
=
parseInt
(
res
.
sheet_status
)
const
status
=
parseInt
(
res
.
sheet_status
)
if
(
status
===
0
)
{
if
(
status
===
0
)
{
this
.
$router
.
push
({
// this.$router.push({
// name: 'confirmInfo',
// replace: true
// })
this
.
$router
.
replace
({
name
:
'confirmInfo'
name
:
'confirmInfo'
})
})
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论