From 451c097ce7cf03273c3ff552b3dbf71998cfed5d Mon Sep 17 00:00:00 2001 From: wanglingyu <1512528122@qq.com> Date: Tue, 4 Jul 2023 11:06:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E5=90=8D=E5=8D=95=EF=BC=8C=E5=AF=BC=E5=85=A5=E6=95=99=E8=81=8C?= =?UTF-8?q?=E5=B7=A5=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 19 +- src/views/ReportView.vue | 10 + src/wanglingyu/api/{upload.js => import.js} | 28 ++- src/wanglingyu/views/GpaEvalView.vue | 226 ++++++++++++++++++++ src/wanglingyu/views/ImportFacultyView.vue | 130 +++++++++++ src/wanglingyu/views/ImportListView.vue | 2 +- src/wanglingyu/views/ImportStudentView.vue | 133 ++++++++++++ src/wanglingyu/views/StuInformView.vue | 121 +++++++++++ 8 files changed, 662 insertions(+), 7 deletions(-) rename src/wanglingyu/api/{upload.js => import.js} (43%) create mode 100644 src/wanglingyu/views/GpaEvalView.vue create mode 100644 src/wanglingyu/views/ImportFacultyView.vue create mode 100644 src/wanglingyu/views/ImportStudentView.vue create mode 100644 src/wanglingyu/views/StuInformView.vue diff --git a/src/router/index.js b/src/router/index.js index 54c0836..f8435db 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -69,6 +69,12 @@ const routes = [ component: () => import('@/views/ReportView'), meta: { title: 'Report', icon: 'el-icon-edit'} }, + { + path: '/student/inform', + name: '个人信息确认', + component: () => import('@/wanglingyu/views/StuInformView'), + meta: { title: 'Report', icon: 'el-icon-edit'} + }, { path: '/student/summary', name: '学年总结填报', @@ -114,7 +120,7 @@ const routes = [ { path: '/eval/gpa', name: '学生成绩审核', - component: () => import('@/views/evals/GpaEvalView'), + component: () => import('@/wanglingyu/views/GpaEvalView'), meta: { title: 'Report', icon: 'el-icon-edit'} }, { @@ -158,12 +164,17 @@ const routes = [ path: '/admin', name: '学工页面', icon: 'el-icon-s-check', component: () => import('@/layout'), - redirect: '/admin/import', + redirect: '/admin/importStudent', children: [ { - path: '/admin/import', + path: '/admin/importStudent', name: '导入学生名单', - component: () => import('@/wanglingyu/views/ImportListView') + component: () => import('@/wanglingyu/views/ImportStudentView') + }, + { + path: '/admin/importFaculty', + name: '导入教职工名单', + component: () => import('@/wanglingyu/views/ImportFacultyView') }, { path: '/admin/collect', diff --git a/src/views/ReportView.vue b/src/views/ReportView.vue index 85c31ad..5c916eb 100644 --- a/src/views/ReportView.vue +++ b/src/views/ReportView.vue @@ -16,6 +16,16 @@ 进入实践评委打分页面 +
+ +

王灵语接口

+
+导入学生名单 +导入教职工名单 +学生成绩审核(导入gpa) +学生个人信息确认(gpa确认) +
+ diff --git a/src/wanglingyu/api/upload.js b/src/wanglingyu/api/import.js similarity index 43% rename from src/wanglingyu/api/upload.js rename to src/wanglingyu/api/import.js index 07bdbe3..4e7fa6b 100644 --- a/src/wanglingyu/api/upload.js +++ b/src/wanglingyu/api/import.js @@ -1,6 +1,6 @@ import service from '@/utils/service'; -// 导入名单 +// 导入学生名单 export function importStu(file) { const data = { file @@ -12,7 +12,7 @@ export function importStu(file) { }) } - export function getPage(page, pageSize){ + export function getStuPage(page, pageSize){ const data = { page, pageSize @@ -22,4 +22,28 @@ export function importStu(file) { method:'get', data:data }) + } + +// 导入教职工名单 + export function importFaculty(file) { + const data = { + file + } + return service({ + url: '/faculty/import', + method: 'post', + data: data + }) + } + + export function getFacultyPage(page, pageSize){ + const data = { + page, + pageSize + } + return service({ + url:'/faculty/page', + method:'get', + data:data + }) } \ No newline at end of file diff --git a/src/wanglingyu/views/GpaEvalView.vue b/src/wanglingyu/views/GpaEvalView.vue new file mode 100644 index 0000000..01987ca --- /dev/null +++ b/src/wanglingyu/views/GpaEvalView.vue @@ -0,0 +1,226 @@ + + + + + + + \ No newline at end of file diff --git a/src/wanglingyu/views/ImportFacultyView.vue b/src/wanglingyu/views/ImportFacultyView.vue new file mode 100644 index 0000000..2ca2600 --- /dev/null +++ b/src/wanglingyu/views/ImportFacultyView.vue @@ -0,0 +1,130 @@ + + + + \ No newline at end of file diff --git a/src/wanglingyu/views/ImportListView.vue b/src/wanglingyu/views/ImportListView.vue index 1c6c3a8..fd63295 100644 --- a/src/wanglingyu/views/ImportListView.vue +++ b/src/wanglingyu/views/ImportListView.vue @@ -69,7 +69,7 @@ + + \ No newline at end of file diff --git a/src/wanglingyu/views/StuInformView.vue b/src/wanglingyu/views/StuInformView.vue new file mode 100644 index 0000000..4cfdf04 --- /dev/null +++ b/src/wanglingyu/views/StuInformView.vue @@ -0,0 +1,121 @@ + + + + \ No newline at end of file -- Gitee From 17b8e72d512457c3838969ce9184c128b20ec844 Mon Sep 17 00:00:00 2001 From: wanglingyu <1512528122@qq.com> Date: Tue, 4 Jul 2023 11:09:47 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ReportView.vue | 12 +- src/wanglingyu/api/import.js | 25 +++ src/wanglingyu/views/GpaEvalView.vue | 305 +++++++++------------------ 3 files changed, 127 insertions(+), 215 deletions(-) diff --git a/src/views/ReportView.vue b/src/views/ReportView.vue index 5c916eb..b5b9e11 100644 --- a/src/views/ReportView.vue +++ b/src/views/ReportView.vue @@ -16,17 +16,7 @@ 进入实践评委打分页面 -
- -

王灵语接口

-
-导入学生名单 -导入教职工名单 -学生成绩审核(导入gpa) -学生个人信息确认(gpa确认) -
- - +