Browse Source

监考批次接口新增类型参数

zhangjie 4 năm trước cách đây
mục cha
commit
7e138f9135
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/api/invigilation.js

+ 4 - 1
src/api/invigilation.js

@@ -114,7 +114,10 @@ export function examMonitorBatchList(datas) {
 }
 // 监考老师::考试批次列表
 export function examBatchList(userId) {
-  const paramQuery = userId ? `?userId=${userId}` : "";
+  const type = "monitor";
+  const paramQuery = userId
+    ? `?userId=${userId}&type=${type}`
+    : `?type=${type}`;
   return httpApp.post("/api/admin/sys/exam/query" + paramQuery);
 }
 // 监考老师::根据权限获取场次和考场接口