From 03367dddb5606b38943647d29b645b82c1d5e575 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 09 Nov 2021 23:08:32 +0800
Subject: [PATCH] 用户新增,修改,派遣辖区选择修改
---
src/api/system/user.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/src/api/system/user.js b/src/api/system/user.js
index 0c21d46..f6ea6c0 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -1,6 +1,25 @@
import request from '@/router/axios';
-export const getList = (current, size, params, deptId) => {
+export const getJurisdiction = (params) => {
+ return request({
+ url: '/api/jurisdiction/selJur',
+ method: 'get',
+ params: {
+ ...params
+ }
+ })
+}
+
+
+
+
+export const getList = (current, size, params, deptId, jurisdiction) => {
+ var datas = {};
+ if (jurisdiction == '') {
+ datas = { deptId: deptId };
+ } else {
+ datas = { jurisdiction: jurisdiction };
+ }
return request({
url: '/api/blade-user/page',
method: 'get',
@@ -8,7 +27,7 @@
...params,
current,
size,
- deptId,
+ ...datas
}
})
}
@@ -17,6 +36,17 @@
export const getListByDeptId = (deptId, status) => {
return request({
url: '/api/blade-user/page-security-units',
+ method: 'get',
+ params: {
+ deptId,
+ status
+ }
+ })
+}
+
+export const getSecurityDispatcherTree = (deptId, status) => {
+ return request({
+ url: '/api/blade-user/security-dispatcher-tree',
method: 'get',
params: {
deptId,
@@ -61,6 +91,24 @@
}
+export const updateUser = (row) => {
+ return request({
+ url: '/api/blade-user/submit',
+ method: 'post',
+ data: row
+ })
+}
+
+
+export const updatePaperTime = (row) => {
+ return request({
+ url: '/api/blade-user/updatePaperTime',
+ method: 'post',
+ data: row
+ })
+}
+
+
export const saveOrUpdateUserPractitionersInfo = (row) => {
return request({
url: '/api/experience/saveOrUpdate',
--
Gitblit v1.9.3