提交 827220bd authored 作者: pengxiaohui's avatar pengxiaohui

eslint

上级 f2606fe7
......@@ -46,9 +46,7 @@ export default {
{ name: '班级管理', path: '/school/class', tag: 'class-list' },
{ name: '课程管理', path: '/school/course', tag: 'course-list' },
{ name: '考试管理', path: '/school/exam', tag: 'examination-list' },
{ name: '证书管理', path: '/school/cert', tag: 'certificate-list' },
// { name: '教师管理', path: '/school/teacher', tag: '' },
// { name: '学员管理', path: '/school/student', tag: '' }
{ name: '证书管理', path: '/school/cert', tag: 'certificate-list' }
]
},
{
......
......@@ -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 })
}
/**
......
......@@ -11,4 +11,4 @@ export function getCertList(params) {
*/
export function getCertDetails(params) {
return httpRequest.get('/api/lms-financial/school/certificate/view', { params })
}
\ No newline at end of file
}
......@@ -11,11 +11,8 @@
</div>
</template>
<script>
import AppStudentSelect from '@/components/base/AppStudentSelect.vue'
import AppClassSelect from '@/components/base/AppClassSelect.vue'
import { getCertDetails } from '../api'
export default {
components: { AppStudentSelect, AppClassSelect },
data() {
return {
list: []
......@@ -26,7 +23,7 @@ export default {
},
methods: {
fetchDetails() {
getCertDetails({student_id: this.$route.query.id }).then(res => {
getCertDetails({ student_id: this.$route.query.id }).then(res => {
if (res.code === 0) {
this.list = res.data
}
......@@ -59,4 +56,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -26,7 +26,6 @@
</template>
<script>
import AppStudentSelect from '@/components/base/AppStudentSelect.vue'
import AppClassSelect from '@/components/base/AppClassSelect.vue'
import { getCertList } from '../api'
export default {
......@@ -37,7 +36,6 @@ export default {
}
},
components: {
AppStudentSelect,
AppClassSelect
},
computed: {
......
......@@ -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 s = Math.floor((result % 60)) < 10 ? '0' + Math.floor((result % 60)) : Math.floor((result % 60))
let res = ''
if(h !== '00') res += `${h}h:`
if (h !== '00') res += `${h}h:`
res += `${m}:`
// if(m !== '00') res += `${m}:`
res += `${s}`
......
......@@ -50,15 +50,8 @@ export default {
},
filters: [
{ 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: [
{ label: '姓名', align: 'center', prop: 'personal_name' },
{ label: '分数', align: 'center', prop: 'score' },
......@@ -98,4 +91,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
......@@ -65,9 +65,9 @@ httpRequest.interceptors.response.use(
function (error) {
if (error.response) {
const { status, message } = error.response.data
// if (status === 401) {
// router.push('/401')
// }
if (status === 401) {
router.push('/401')
}
// 未登录
if (status === 403) {
window.location.href = `${import.meta.env.VITE_LOGIN_URL}?rd=${encodeURIComponent(window.location.href)}`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论