Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-fdc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
admin-fdc
Commits
827220bd
提交
827220bd
authored
1月 24, 2022
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
eslint
上级
f2606fe7
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
8 行增加
和
22 行删除
+8
-22
Aside.vue
src/components/layout/Aside.vue
+1
-3
api.js
src/modules/dashboard/screen/api.js
+1
-1
api.js
src/modules/school/cert/api.js
+0
-0
Details.vue
src/modules/school/cert/views/Details.vue
+1
-4
List.vue
src/modules/school/cert/views/List.vue
+0
-2
Details.vue
src/modules/school/course/views/Details.vue
+1
-1
Details.vue
src/modules/school/exam/views/Details.vue
+1
-8
axios.js
src/utils/axios.js
+3
-3
没有找到文件。
src/components/layout/Aside.vue
浏览文件 @
827220bd
...
@@ -46,9 +46,7 @@ export default {
...
@@ -46,9 +46,7 @@ export default {
{
name
:
'班级管理'
,
path
:
'/school/class'
,
tag
:
'class-list'
},
{
name
:
'班级管理'
,
path
:
'/school/class'
,
tag
:
'class-list'
},
{
name
:
'课程管理'
,
path
:
'/school/course'
,
tag
:
'course-list'
},
{
name
:
'课程管理'
,
path
:
'/school/course'
,
tag
:
'course-list'
},
{
name
:
'考试管理'
,
path
:
'/school/exam'
,
tag
:
'examination-list'
},
{
name
:
'考试管理'
,
path
:
'/school/exam'
,
tag
:
'examination-list'
},
{
name
:
'证书管理'
,
path
:
'/school/cert'
,
tag
:
'certificate-list'
},
{
name
:
'证书管理'
,
path
:
'/school/cert'
,
tag
:
'certificate-list'
}
// { name: '教师管理', path: '/school/teacher', tag: '' },
// { name: '学员管理', path: '/school/student', tag: '' }
]
]
},
},
{
{
...
...
src/modules/dashboard/screen/api.js
浏览文件 @
827220bd
...
@@ -9,7 +9,7 @@ export function getDashboardList(params) {
...
@@ -9,7 +9,7 @@ export function getDashboardList(params) {
/**
/**
* 获取控制台数据
* 获取控制台数据
*/
*/
export
function
getStudentList
(
params
)
{
export
function
getStudentList
(
params
)
{
return
httpRequest
.
get
(
'/api/lms-financial/school/student/list'
,
{
params
})
return
httpRequest
.
get
(
'/api/lms-financial/school/student/list'
,
{
params
})
}
}
/**
/**
...
...
src/modules/school/cert/api.js
浏览文件 @
827220bd
src/modules/school/cert/views/Details.vue
浏览文件 @
827220bd
...
@@ -11,11 +11,8 @@
...
@@ -11,11 +11,8 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
AppStudentSelect
from
'@/components/base/AppStudentSelect.vue'
import
AppClassSelect
from
'@/components/base/AppClassSelect.vue'
import
{
getCertDetails
}
from
'../api'
import
{
getCertDetails
}
from
'../api'
export
default
{
export
default
{
components
:
{
AppStudentSelect
,
AppClassSelect
},
data
()
{
data
()
{
return
{
return
{
list
:
[]
list
:
[]
...
@@ -26,7 +23,7 @@ export default {
...
@@ -26,7 +23,7 @@ export default {
},
},
methods
:
{
methods
:
{
fetchDetails
()
{
fetchDetails
()
{
getCertDetails
({
student_id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
getCertDetails
({
student_id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
this
.
list
=
res
.
data
}
}
...
...
src/modules/school/cert/views/List.vue
浏览文件 @
827220bd
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
</template>
</template>
<
script
>
<
script
>
import
AppStudentSelect
from
'@/components/base/AppStudentSelect.vue'
import
AppClassSelect
from
'@/components/base/AppClassSelect.vue'
import
AppClassSelect
from
'@/components/base/AppClassSelect.vue'
import
{
getCertList
}
from
'../api'
import
{
getCertList
}
from
'../api'
export
default
{
export
default
{
...
@@ -37,7 +36,6 @@ export default {
...
@@ -37,7 +36,6 @@ export default {
}
}
},
},
components
:
{
components
:
{
AppStudentSelect
,
AppClassSelect
AppClassSelect
},
},
computed
:
{
computed
:
{
...
...
src/modules/school/course/views/Details.vue
浏览文件 @
827220bd
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
const
m
=
Math
.
floor
((
result
/
60
%
60
))
<
10
?
'0'
+
Math
.
floor
((
result
/
60
%
60
))
:
Math
.
floor
((
result
/
60
%
60
))
const
m
=
Math
.
floor
((
result
/
60
%
60
))
<
10
?
'0'
+
Math
.
floor
((
result
/
60
%
60
))
:
Math
.
floor
((
result
/
60
%
60
))
const
s
=
Math
.
floor
((
result
%
60
))
<
10
?
'0'
+
Math
.
floor
((
result
%
60
))
:
Math
.
floor
((
result
%
60
))
const
s
=
Math
.
floor
((
result
%
60
))
<
10
?
'0'
+
Math
.
floor
((
result
%
60
))
:
Math
.
floor
((
result
%
60
))
let
res
=
''
let
res
=
''
if
(
h
!==
'00'
)
res
+=
`
${
h
}
h:`
if
(
h
!==
'00'
)
res
+=
`
${
h
}
h:`
res
+=
`
${
m
}
:`
res
+=
`
${
m
}
:`
// if(m !== '00') res += `${m}:`
// if(m !== '00') res += `${m}:`
res
+=
`
${
s
}
`
res
+=
`
${
s
}
`
...
...
src/modules/school/exam/views/Details.vue
浏览文件 @
827220bd
...
@@ -50,15 +50,8 @@ export default {
...
@@ -50,15 +50,8 @@ export default {
},
},
filters
:
[
filters
:
[
{
type
:
'input'
,
label
:
'学员姓名'
,
slots
:
'filter-student'
},
{
type
:
'input'
,
label
:
'学员姓名'
,
slots
:
'filter-student'
},
{
type
:
'input'
,
label
:
'所属班级'
,
slots
:
'filter-class'
}
,
{
type
:
'input'
,
label
:
'所属班级'
,
slots
:
'filter-class'
}
],
],
// data: this.detail.staff.list,
// data: [
// { name: '张三', score: 80, time: '2022-01-01 10:43:32' },
// { name: '李四', score: 92, time: '2022-01-02 11:21:32' },
// { name: '王五', score: 69, time: '2022-01-05 10:43:32' },
// { name: '赵六', score: 73, time: '2022-01-03 10:43:32' },
// ],
columns
:
[
columns
:
[
{
label
:
'姓名'
,
align
:
'center'
,
prop
:
'personal_name'
},
{
label
:
'姓名'
,
align
:
'center'
,
prop
:
'personal_name'
},
{
label
:
'分数'
,
align
:
'center'
,
prop
:
'score'
},
{
label
:
'分数'
,
align
:
'center'
,
prop
:
'score'
},
...
...
src/utils/axios.js
浏览文件 @
827220bd
...
@@ -65,9 +65,9 @@ httpRequest.interceptors.response.use(
...
@@ -65,9 +65,9 @@ httpRequest.interceptors.response.use(
function
(
error
)
{
function
(
error
)
{
if
(
error
.
response
)
{
if
(
error
.
response
)
{
const
{
status
,
message
}
=
error
.
response
.
data
const
{
status
,
message
}
=
error
.
response
.
data
//
if (status === 401) {
if
(
status
===
401
)
{
//
router.push('/401')
router
.
push
(
'/401'
)
//
}
}
// 未登录
// 未登录
if
(
status
===
403
)
{
if
(
status
===
403
)
{
window
.
location
.
href
=
`
${
import
.
meta
.
env
.
VITE_LOGIN_URL
}
?rd=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
window
.
location
.
href
=
`
${
import
.
meta
.
env
.
VITE_LOGIN_URL
}
?rd=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论