Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
1210b4ce
提交
1210b4ce
authored
1月 21, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
4a2d99d1
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
52 行增加
和
33 行删除
+52
-33
exam.js
src/api/exam.js
+16
-8
aside.vue
src/components/layout/aside.vue
+16
-4
main.vue
src/components/layout/main.vue
+1
-1
ExamEnd.vue
src/modules/exam-module/src/ExamEnd.vue
+0
-0
index.vue
src/pages/account/index.vue
+13
-13
CourseTeacher.vue
src/pages/course/learn/components/CourseTeacher.vue
+1
-0
index.vue
src/pages/exam/testExam/exam/index.vue
+0
-0
index.vue
src/pages/exam/testExam/index.vue
+2
-4
routes.js
src/router/routes.js
+3
-3
没有找到文件。
src/api/exam.js
浏览文件 @
1210b4ce
import
httpRequest
from
'@/utils/axios'
import
httpRequest
from
'@/utils/axios'
/**
/**
* 获取
考前摸底
试题
* 获取
模拟测试
试题
*/
*/
export
function
getExamQuestion
(
params
)
{
export
function
getExamQuestion
(
params
)
{
return
httpRequest
.
get
(
'/api/zy/v2/examination/examination-papers'
,
{
params
},
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
})
return
httpRequest
.
get
(
'/api/zy/v2/examination/examination-papers'
,
{
params
},
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
}
)
}
}
/**
/**
* 缓存
考前摸底
试题
* 缓存
模拟测试
试题
*/
*/
export
function
setCache
(
params
)
{
export
function
setCache
(
params
)
{
return
httpRequest
.
post
(
'/api/zy/v2/examination/examination-papers'
,
params
)
return
httpRequest
.
post
(
'/api/zy/v2/examination/examination-papers'
,
params
)
...
@@ -31,9 +35,13 @@ export function setRoles(params) {
...
@@ -31,9 +35,13 @@ export function setRoles(params) {
* 获取我的已做试题
* 获取我的已做试题
*/
*/
export
function
getMyQuestion
(
params
)
{
export
function
getMyQuestion
(
params
)
{
return
httpRequest
.
get
(
'/api/zy/v2/examination/my-question'
,
{
params
},
{
return
httpRequest
.
get
(
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
'/api/zy/v2/examination/my-question'
,
})
{
params
},
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
}
)
}
}
/**
/**
...
@@ -44,8 +52,8 @@ export function getAllQuestion(params) {
...
@@ -44,8 +52,8 @@ export function getAllQuestion(params) {
}
}
/**
/**
* 缓存错题集
* 缓存错题集
*/
*/
export
function
setMyCache
(
params
)
{
export
function
setMyCache
(
params
)
{
return
httpRequest
.
post
(
'/api/zy/v2/examination/cache-question'
,
params
)
return
httpRequest
.
post
(
'/api/zy/v2/examination/cache-question'
,
params
)
}
}
...
...
src/components/layout/aside.vue
浏览文件 @
1210b4ce
...
@@ -12,8 +12,7 @@
...
@@ -12,8 +12,7 @@
<template
v-for=
"item in datalist"
>
<template
v-for=
"item in datalist"
>
<el-submenu
:index=
"item.title"
:key=
"item.title"
v-if=
"item.children"
>
<el-submenu
:index=
"item.title"
:key=
"item.title"
v-if=
"item.children"
>
<template
slot=
"title"
>
<template
slot=
"title"
>
<i
class=
"iconfont"
:class=
"item.icon"
></i>
<i
class=
"iconfont"
:class=
"item.icon"
></i><span>
{{
item
.
title
}}
</span>
<span>
{{
item
.
title
}}
</span>
</
template
>
</
template
>
<el-menu-item
:index=
"item.path"
:key=
"item.title"
v-for=
"item in item.children"
>
<el-menu-item
:index=
"item.path"
:key=
"item.title"
v-for=
"item in item.children"
>
<span
slot=
"title"
>
{{ item.title }}
</span>
<span
slot=
"title"
>
{{ item.title }}
</span>
...
@@ -52,7 +51,7 @@ export default {
...
@@ -52,7 +51,7 @@ export default {
title
:
'我的考试'
,
title
:
'我的考试'
,
icon
:
'icon-bianzuhong'
,
icon
:
'icon-bianzuhong'
,
children
:
[
children
:
[
{
title
:
'
考前摸底
'
,
path
:
'/testExam'
},
{
title
:
'
模拟测试
'
,
path
:
'/testExam'
},
{
title
:
'错题集合'
,
path
:
'/my/questions/wrong'
},
{
title
:
'错题集合'
,
path
:
'/my/questions/wrong'
},
{
title
:
'收藏试题'
,
path
:
'/my/questions/collection'
}
{
title
:
'收藏试题'
,
path
:
'/my/questions/collection'
}
]
]
...
@@ -60,7 +59,7 @@ export default {
...
@@ -60,7 +59,7 @@ export default {
{
{
title
:
'实训练习'
,
title
:
'实训练习'
,
icon
:
'icon-kaoshihong'
,
icon
:
'icon-kaoshihong'
,
children
:
[{
title
:
'实训案例练习'
,
path
:
'
/xxxx
'
}]
children
:
[{
title
:
'实训案例练习'
,
path
:
'
https://xtraining.ezijing.com/
'
}]
},
},
{
{
title
:
'个人中心'
,
title
:
'个人中心'
,
...
@@ -162,6 +161,8 @@ export default {
...
@@ -162,6 +161,8 @@ export default {
padding
:
30px
0
;
padding
:
30px
0
;
color
:
#ccc
;
color
:
#ccc
;
.iconfont
{
.iconfont
{
display
:
inline-block
;
width
:
30px
;
font-size
:
16px
;
font-size
:
16px
;
color
:
currentColor
;
color
:
currentColor
;
}
}
...
@@ -173,13 +174,24 @@ export default {
...
@@ -173,13 +174,24 @@ export default {
}
}
.is-active
.el-submenu__title
{
.is-active
.el-submenu__title
{
background
:
#fff4f7
;
background
:
#fff4f7
;
font-weight
:
bold
;
color
:
#c01540
;
color
:
#c01540
;
}
}
.el-submenu__title
{
height
:
50px
;
line-height
:
50px
;
padding-left
:
25px
!
important
;
}
.el-menu-item
:hover
,
.el-menu-item
:hover
,
.el-menu-item
:focus
{
.el-menu-item
:focus
{
color
:
#c01540
;
color
:
#c01540
;
background
:
transparent
;
background
:
transparent
;
}
}
.el-submenu
.el-menu-item
{
height
:
36px
;
line-height
:
36px
;
padding-left
:
55px
!
important
;
}
}
}
}
}
</
style
>
</
style
>
src/components/layout/main.vue
浏览文件 @
1210b4ce
...
@@ -10,6 +10,6 @@ export default {}
...
@@ -10,6 +10,6 @@ export default {}
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.app-main
{
.app-main
{
padding
:
3
0px
;
padding
:
2
0px
;
}
}
</
style
>
</
style
>
src/modules/exam-module/src/ExamEnd.vue
浏览文件 @
1210b4ce
差异被折叠。
点击展开。
src/pages/account/index.vue
浏览文件 @
1210b4ce
...
@@ -2,34 +2,34 @@
...
@@ -2,34 +2,34 @@
<app-container
title=
"个人信息"
>
<app-container
title=
"个人信息"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
label-width=
"120px"
ref=
"ruleForm"
class=
"form"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
label-width=
"120px"
ref=
"ruleForm"
class=
"form"
>
<el-form-item
label=
"所在院校"
prop=
"phone"
>
<el-form-item
label=
"所在院校"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"学院名称"
prop=
"phone"
>
<el-form-item
label=
"学院名称"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"专业名称"
prop=
"phone"
>
<el-form-item
label=
"专业名称"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"考证等级"
prop=
"phone"
>
<el-form-item
label=
"考证等级"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"用户真实姓名"
prop=
"phone"
>
<el-form-item
label=
"用户真实姓名"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"身份证号码"
prop=
"phone"
>
<el-form-item
label=
"身份证号码"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"身份"
prop=
"phone"
>
<el-form-item
label=
"身份"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"登录帐号"
prop=
"phone"
>
<el-form-item
label=
"登录帐号"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
readonly
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"账号名"
prop=
"phone"
>
<el-form-item
label=
"账号名"
prop=
"phone"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone"
></el-input>
<el-input
v-model=
"ruleForm.phone"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"常用邮箱"
prop=
"
phone
"
>
<el-form-item
label=
"常用邮箱"
prop=
"
email
"
>
<el-input
type=
"password"
v-model=
"ruleForm.phone
"
></el-input>
<el-input
v-model=
"ruleForm.email
"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<template
#
footer
>
<template
#
footer
>
...
@@ -48,10 +48,10 @@ export default {
...
@@ -48,10 +48,10 @@ export default {
data
()
{
data
()
{
return
{
return
{
ruleForm
:
{
ruleForm
:
{
phone
:
''
email
:
''
},
},
rules
:
{
rules
:
{
phone
:
[{
required
:
true
,
message
:
'请输入手机号码'
,
trigger
:
'blur'
}]
email
:
[{
required
:
true
,
message
:
'请输入手机号码'
,
trigger
:
'blur'
}]
},
},
submitLoading
:
false
submitLoading
:
false
}
}
...
...
src/pages/course/learn/components/CourseTeacher.vue
浏览文件 @
1210b4ce
...
@@ -36,6 +36,7 @@ export default {
...
@@ -36,6 +36,7 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.t2
{
.t2
{
font-size
:
13px
;
margin-top
:
5px
;
margin-top
:
5px
;
color
:
#707070
;
color
:
#707070
;
}
}
...
...
src/pages/exam/testExam/exam/index.vue
浏览文件 @
1210b4ce
差异被折叠。
点击展开。
src/pages/exam/testExam/index.vue
浏览文件 @
1210b4ce
<
template
>
<
template
>
<app-container
title=
"
考前摸底
介绍"
>
<app-container
title=
"
模拟测试
介绍"
>
<div
class=
"desc-exam"
>
<div
class=
"desc-exam"
>
<p>
考试时间20分钟。
</p>
<p>
考试时间20分钟。
</p>
<p>
演示考试题目共10题,全部为单选题。
</p>
<p>
演示考试题目共10题,全部为单选题。
</p>
...
@@ -45,9 +45,7 @@ export default {
...
@@ -45,9 +45,7 @@ export default {
const
h
=
this
.
$createElement
const
h
=
this
.
$createElement
this
.
$msgbox
({
this
.
$msgbox
({
title
:
'消息'
,
title
:
'消息'
,
message
:
h
(
'p'
,
null
,
[
message
:
h
(
'p'
,
null
,
[
h
(
'span'
,
null
,
'您上次未做完试题 '
)]),
h
(
'span'
,
null
,
'您上次未做完试题 '
)
]),
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonText
:
'继续答题'
,
confirmButtonText
:
'继续答题'
,
cancelButtonText
:
'重新答题'
,
cancelButtonText
:
'重新答题'
,
...
...
src/router/routes.js
浏览文件 @
1210b4ce
...
@@ -27,12 +27,12 @@ const courseRoutes = [
...
@@ -27,12 +27,12 @@ const courseRoutes = [
}
}
]
]
const
examAnswer
=
[
const
examAnswer
=
[
/*
考前摸底
*/
/*
模拟测试
*/
{
{
path
:
'/testExam'
,
path
:
'/testExam'
,
component
:
()
=>
import
(
/* webpackChunkName: "exam" */
'@/pages/exam/testExam/index'
)
component
:
()
=>
import
(
/* webpackChunkName: "exam" */
'@/pages/exam/testExam/index'
)
},
},
/*
考前摸底
结果页 */
/*
模拟测试
结果页 */
{
{
path
:
'/testExam/result'
,
path
:
'/testExam/result'
,
component
:
()
=>
import
(
/* webpackChunkName: "exam" */
'@/pages/exam/testExam/exam/result'
)
component
:
()
=>
import
(
/* webpackChunkName: "exam" */
'@/pages/exam/testExam/exam/result'
)
...
@@ -128,7 +128,7 @@ export default [
...
@@ -128,7 +128,7 @@ export default [
{
path
:
'questions'
,
component
:
()
=>
import
(
/* webpackChunkName: "my" */
'@/pages/my/questions/questionAll'
)
}
{
path
:
'questions'
,
component
:
()
=>
import
(
/* webpackChunkName: "my" */
'@/pages/my/questions/questionAll'
)
}
]
]
},
},
/*
考前摸底
考试 */
/*
模拟测试
考试 */
{
{
path
:
'/testExam/exam'
,
path
:
'/testExam/exam'
,
component
:
()
=>
import
(
/* webpackChunkName: "course-learn" */
'@/pages/exam/testExam/exam/index'
)
component
:
()
=>
import
(
/* webpackChunkName: "course-learn" */
'@/pages/exam/testExam/exam/index'
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论