|
@@ -12,8 +12,23 @@ export const ecsExamSync = (collegeId = "") => {
|
|
|
export const examTypeQuery = (datas) => {
|
|
|
return $postParam("/api/exam_type/list", datas);
|
|
|
};
|
|
|
-export const collegeQuery = (datas) => {
|
|
|
- return $postParam("/api/sys_college/list", datas);
|
|
|
+export const collegeQuery = () => {
|
|
|
+ return $postParam("/api/sys_college/list", {});
|
|
|
+};
|
|
|
+export const courseQuery = (datas) => {
|
|
|
+ return $postParam("/api/common/course/list", datas);
|
|
|
+};
|
|
|
+export const kcCollegeQuery = (datas) => {
|
|
|
+ // semesterId,examTypeId,courseCode,kkCollegeName,
|
|
|
+ return $postParam("/api/common/examine/college/list", datas);
|
|
|
+};
|
|
|
+export const examClazzQuery = (datas) => {
|
|
|
+ // semesterId,examTypeId,courseCode,kkCollegeName,kcCollegeName
|
|
|
+ return $postParam("/api/common/clazz/list", datas);
|
|
|
+};
|
|
|
+export const examTeacherQuery = (datas) => {
|
|
|
+ // semesterId,examTypeId,courseCode,kkCollegeName,kcCollegeName,clazzId
|
|
|
+ return $postParam("/api/common/teacher/list", datas);
|
|
|
};
|
|
|
// user --------------------------------->
|
|
|
// user-manage
|
|
@@ -76,6 +91,9 @@ export const businessDataList = (datas) => {
|
|
|
export const manualSync = () => {
|
|
|
return $postParam("/api/exam_sync_total/manual_sync", {});
|
|
|
};
|
|
|
+export const manualUse = (id) => {
|
|
|
+ return $postParam("/api/exam_sync_total/used", { id });
|
|
|
+};
|
|
|
export const downloadBusinessData = (id, writeLog) => {
|
|
|
return $postParam(
|
|
|
"/api/exam_sync_total/download",
|
|
@@ -143,15 +161,20 @@ export const flushCache = (type) => {
|
|
|
export const assignmentDataList = (datas) => {
|
|
|
return $postParam("/api/assign/page", datas);
|
|
|
};
|
|
|
-export const assignmentDetailInfo = (datas) => {
|
|
|
- return $postParam("/api/assign/to_calc", datas);
|
|
|
+export const assignmentDetailInfo = (datas, silence = false) => {
|
|
|
+ return $postParam("/api/assign/to_calc", datas, {
|
|
|
+ silence,
|
|
|
+ });
|
|
|
};
|
|
|
export const assignmentCalculate = (datas) => {
|
|
|
- return $postParam("/api/assign/calc", datas);
|
|
|
+ return $post("/api/assign/calc", datas);
|
|
|
};
|
|
|
export const assignmentCalcResult = (datas) => {
|
|
|
- return $postParam("/api/exam_course_mapping/page", datas);
|
|
|
+ // required: semesterId,examTypeId,courseCode,kkCollegeName,
|
|
|
+ // kcCollegeName,clazzId,teacherCode
|
|
|
+ return $postParam("/api/assign/result", datas);
|
|
|
};
|
|
|
export const assignmentCompareResult = (datas) => {
|
|
|
- return $postParam("/api/exam_course_mapping/page", datas);
|
|
|
+ // semesterId,examTypeId,courseCode,kkCollegeName,passScore
|
|
|
+ return $postParam("/api/assign/contrast", datas);
|
|
|
};
|