From 47a0f58d4334939b08a55b9356f94de23c8b1367 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 15 Jun 2022 14:56:26 +0800
Subject: [PATCH] 新增保安员导入
---
src/api/accreditationRecords/accreditationRecords.js | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/api/accreditationRecords/accreditationRecords.js b/src/api/accreditationRecords/accreditationRecords.js
index f67bd8d..025d0ff 100644
--- a/src/api/accreditationRecords/accreditationRecords.js
+++ b/src/api/accreditationRecords/accreditationRecords.js
@@ -1,14 +1,13 @@
import request from '@/router/axios';
-export const getList = (current, size, params, deptId) => {
+export const getList = (current, size, params) => {
return request({
url: '/api/accreditationRecords/page',
method: 'get',
params: {
- ...params,
current,
size,
- deptId,
+ ...params
}
})
}
@@ -34,9 +33,17 @@
})
}
-export const add = (row) => {
+export const submit = (row) => {
return request({
url: '/api/accreditationRecords/submit',
+ method: 'post',
+ data: row
+ })
+}
+
+export const add = (row) => {
+ return request({
+ url: '/api/accreditationRecords/save',
method: 'post',
data: row
})
@@ -75,4 +82,12 @@
method: 'post',
data: row
})
+}
+
+export const batchAccreditation = (row) => {
+ return request({
+ url: '/api/accreditationRecords/batchAccreditation',
+ method: 'post',
+ data: row
+ })
}
\ No newline at end of file
--
Gitblit v1.9.3