From 858d2db46d9ea5ba01d1f84ae2a0c5f98dc30c22 Mon Sep 17 00:00:00 2001 From: 18435765447 <1965723234@qq.com> Date: Fri, 15 Jan 2021 09:59:06 +0800 Subject: [PATCH] 1 --- config/index.js | 1 + index.html | 2 +- src/components/admin/addTeacher.vue | 8 +- src/components/admin/tacherManage.vue | 51 ++-- src/components/common/header.vue | 3 +- src/components/common/login.vue | 6 +- src/components/common/mainLeft.vue | 190 +++----------- src/components/teacher/addExam.vue | 343 ++++++-------------------- src/components/teacher/selectExam.vue | 186 ++++++-------- src/router/index.js | 41 +-- src/vuex/store.js | 38 ++- 11 files changed, 250 insertions(+), 619 deletions(-) diff --git a/config/index.js b/config/index.js index b8812b3..ac676d8 100644 --- a/config/index.js +++ b/config/index.js @@ -29,6 +29,7 @@ module.exports = { notifyOnErrors: true, poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- + /** * Source Maps diff --git a/index.html b/index.html index 097c3ce..c8365fe 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - 在线考试系统 + 去吧皮卡丘 diff --git a/src/components/admin/addTeacher.vue b/src/components/admin/addTeacher.vue index 3dc8d33..1fb1394 100644 --- a/src/components/admin/addTeacher.vue +++ b/src/components/admin/addTeacher.vue @@ -3,7 +3,7 @@
- + @@ -18,7 +18,7 @@ - + @@ -46,14 +46,14 @@ export default { pwd: null, cardId: null, sex: null, - role: 1 + role: 2 } }; }, methods: { onSubmit() { //数据提交 this.$axios({ - url: '/api/addTeacher', + url: '/api/teacher', method: 'post', data: { ...this.form diff --git a/src/components/admin/tacherManage.vue b/src/components/admin/tacherManage.vue index 518e728..c3703a9 100644 --- a/src/components/admin/tacherManage.vue +++ b/src/components/admin/tacherManage.vue @@ -2,19 +2,17 @@