From 81e1b297b1fabec596c1cb7187ce2d6199026429 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Thu, 30 Nov 2023 16:51:10 +0800
Subject: [PATCH] 模拟考试成绩查询

---
 src/api/examapi/applyexam.js |  102 +++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 74 insertions(+), 28 deletions(-)

diff --git a/src/api/examapi/applyexam.js b/src/api/examapi/applyexam.js
index 08c81f2..5530ebd 100644
--- a/src/api/examapi/applyexam.js
+++ b/src/api/examapi/applyexam.js
@@ -2,46 +2,92 @@
 
 
 export const getApplyList = (current, size, params) => {
-  return request({
-    url: '/api/apply/page',
-    method: 'get',
-    params: {
-      ...params,
-      current,
-      size
-    }
-  })
+    return request({
+        url: '/api/apply/page',
+        method: 'get',
+        params: {
+            ...params,
+            current,
+            size
+        }
+    })
 }
 
 export const addApply = (row) => {
-  return request({
-    url: '/api/apply/submit',
-    method: 'post',
-    data: row
-  })
+    return request({
+        url: '/api/apply/save',
+        method: 'post',
+        data: row
+    })
+}
+
+
+export const cancelApply = (row) => {
+    return request({
+        url: '/api/apply/cancelApply',
+        method: 'post',
+        data: row
+    })
+}
+
+
+
+export const cancelApplyNotApplyId = (row) => {
+    return request({
+        url: '/api/apply/cancelApplyNotApplyId',
+        method: 'post',
+        data: row
+    })
+}
+
+export const updateApply = (row) => {
+    return request({
+        url: '/api/apply/submit',
+        method: 'post',
+        data: row
+    })
 }
 
 
 
 export const remove = (ids) => {
-  return request({
-    url: '/api/apply/remove',
-    method: 'post',
-    params: {
-      ids,
-    }
-  })
+    return request({
+        url: '/api/apply/remove',
+        method: 'post',
+        params: {
+            ids,
+        }
+    })
+}
+
+export const addExam = (params) => {
+    return request({
+        url: '/api/apply/batchExam',
+        method: 'post',
+        data: params
+    })
 }
 
 
 
 
 export const getMenu = (id) => {
-  return request({
-    url: '/api/apply/detail',
-    method: 'get',
-    params: {
-      id,
-    }
-  })
+    return request({
+        url: '/api/apply/detail',
+        method: 'get',
+        params: {
+            id,
+        }
+    })
 }
+
+export const getSecurityApplyInfo = (id, userId) => {
+    return request({
+        url: '/api/apply/getSecurityApplyDetail',
+        method: 'get',
+        params: {
+            id,
+            userId
+        }
+    })
+}
\ No newline at end of file

--
Gitblit v1.9.3