|
@@ -1,50 +1,37 @@
|
|
|
import { $postParam, $post } from "@/plugins/axios";
|
|
|
|
|
|
-export const questionTeatherUserQuery = ({ courseCode, param }) => {
|
|
|
- return $postParam("/api/admin/sys/user/user_list", { courseCode, param });
|
|
|
-};
|
|
|
-export const unitQueryByType = (datas, dictionaryEnum) => {
|
|
|
- // dictionaryEnum: SEMESTER("学期"),COLLEGE("学院"),MAJOR("专业"),CLAZZ("班级"),STUDENT("学生")
|
|
|
- return $postParam("/api/admin/common/get_dictionary", {
|
|
|
- ...datas,
|
|
|
- dictionaryEnum
|
|
|
- });
|
|
|
-};
|
|
|
-export const enumsByType = type => {
|
|
|
- // type: PUSH_TYPE_ENUM("同步类型"),
|
|
|
- return $postParam("/api/admin/common/get_enums", {
|
|
|
- type
|
|
|
- });
|
|
|
+export const semesterQuery = datas => {
|
|
|
+ return $postParam("/api/exam_semester/list", datas);
|
|
|
};
|
|
|
-
|
|
|
-// exam-manage
|
|
|
export const examQuery = datas => {
|
|
|
- return $postParam("/api/admin/basic/exam/query", datas);
|
|
|
+ return $postParam("/api/exam_type/list", datas);
|
|
|
};
|
|
|
|
|
|
// user --------------------------------->
|
|
|
// user-manage
|
|
|
export const userListPage = datas => {
|
|
|
- return $postParam("/api/admin/sys/user/list", datas);
|
|
|
+ return $postParam("/api/sys_user/page", datas);
|
|
|
};
|
|
|
export const updateUser = datas => {
|
|
|
- return $post("/api/admin/sys/user/save", datas);
|
|
|
+ return $post("/api/sys_user/save", datas);
|
|
|
};
|
|
|
export const ableUser = ({ id, enable }) => {
|
|
|
- return $post("/api/admin/sys/user/enable", { id, enable });
|
|
|
+ return $post("/api/sys_user/enable", { id, enable });
|
|
|
};
|
|
|
export const resetPwd = id => {
|
|
|
- return $post("/api/admin/sys/user/reset_password", { id });
|
|
|
+ return $post("/api/sys_user/reset_password", { id });
|
|
|
+};
|
|
|
+export const userRoleListPage = () => {
|
|
|
+ return $postParam("/api/sys_role/list", {});
|
|
|
};
|
|
|
+
|
|
|
export const updatePwd = datas => {
|
|
|
return $post("/api/admin/sys/user/update_password", datas);
|
|
|
};
|
|
|
export const userBindRoles = ({ id, roleIds }) => {
|
|
|
return $post("/api/admin/sys/user/bind_roles", { id, roleIds });
|
|
|
};
|
|
|
-export const userRoleListPage = () => {
|
|
|
- return $postParam("/api/admin/sys/role/list_to_user", {});
|
|
|
-};
|
|
|
+
|
|
|
export const syncUserToEcs = () => {
|
|
|
return $postParam("/api/admin/sys/user/push", {});
|
|
|
};
|
|
@@ -105,28 +92,28 @@ export const deleteOrganization = id => {
|
|
|
// setting --------------------------------->
|
|
|
// time-task
|
|
|
export const timeTaskList = datas => {
|
|
|
- return $postParam("/api/admin/sys/org/list", datas);
|
|
|
+ return $postParam("/api/exam_schedule_task/page", datas);
|
|
|
};
|
|
|
export const updateTimeTask = datas => {
|
|
|
- return $post("/api/admin/sys/org/save", datas);
|
|
|
-};
|
|
|
-export const ableTimeTask = ({ id, enable }) => {
|
|
|
- return $post("/api/admin/sys/org/enable", { id, enable });
|
|
|
+ return $post("/api/exam_schedule_task/save", datas);
|
|
|
};
|
|
|
|
|
|
// business-data
|
|
|
export const businessDataList = datas => {
|
|
|
- return $postParam("/api/admin/sys/org/list", datas);
|
|
|
+ return $postParam("/api/exam_sync_total/page", datas);
|
|
|
};
|
|
|
-export const downloadBusinessData = datas => {
|
|
|
- return $postParam("/api/admin/sys/org/list", datas);
|
|
|
+export const downloadBusinessData = id => {
|
|
|
+ return $postParam("/api/exam_sync_total/download", { id });
|
|
|
+};
|
|
|
+export const useSceneList = datas => {
|
|
|
+ return $postParam("/api/exam_download_record/list_use_scene", datas);
|
|
|
};
|
|
|
// download-manage
|
|
|
export const downloadList = datas => {
|
|
|
- return $postParam("/api/admin/sys/org/list", datas);
|
|
|
+ return $postParam("/api/exam_download_record/page", datas);
|
|
|
};
|
|
|
export const signPurpose = datas => {
|
|
|
- return $postParam("/api/admin/sys/org/list", datas);
|
|
|
+ return $postParam("/api/exam_download_record/used", datas);
|
|
|
};
|
|
|
|
|
|
// common
|