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

eslint

上级 f2606fe7
...@@ -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: '' }
] ]
}, },
{ {
......
...@@ -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 })
} }
/** /**
......
...@@ -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
} }
......
...@@ -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: {
......
...@@ -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}`
......
...@@ -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' },
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论