From 2bddfa78e65f351d6cb81f670775e79620f684a6 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 24 五月 2024 10:43:51 +0800
Subject: [PATCH] feat:分数统计

---
 src/api/department.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/api/department.js b/src/api/department.js
index 5bb8fc0..1156c7e 100644
--- a/src/api/department.js
+++ b/src/api/department.js
@@ -1,4 +1,4 @@
-import { post } from '@/utils/request'
+import { post, get } from '@/utils/request'
 
 export default {
   list: query => post('/api/admin/education/department/list'),
@@ -7,6 +7,14 @@
   select: id => post('/api/admin/department/get/' + id),
   selectUser: id => post('/api/admin/department/getUserByDepartment/' + id),
   selectDepartmentUser: id => post('/api/admin/department/getDepartmentUser'),
+  getUserByExam: id => post('/api/admin/department/getDepartmentUser?examPaperId=' + id),
+  getDepartmentUserByTemplateId: id => post('/api/admin/department/getDepartmentUserByTemplateId?templateId=' + id),
   deleteSubject: id => post('/api/admin/education/department/delete/' + id),
-  addData:query=>post('/api/admin/department/add',query)
+  addData: query => post('/api/admin/department/add', query),
+  // 鑾峰彇閮ㄩ棬鐢ㄦ埛涓嬫媺鍒楄〃
+  getDeptUserList: id => get('/api/admin/department/' + id + '/user-list'),
+  // 鑾峰彇褰撳墠鐢ㄦ埛绠$悊鐨勯儴闂�
+  getDeptAdmins: id => get('/api/admin/department/getDeptAdmins'),
+  // 淇敼閮ㄩ棬绠$悊鍛�
+  updateDeptAdmin: data => post('/api/admin/department/update-admin', data)
 }

--
Gitblit v1.8.0