From 7becb16bb38cb3284c7f4e3dc2c486dd55812c8a Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 20 Dec 2023 16:48:23 +0800
Subject: [PATCH] 保安图标

---
 src/api/system/user.js |   77 ++++++++++++++++++++++++++++++++++++--
 1 files changed, 73 insertions(+), 4 deletions(-)

diff --git a/src/api/system/user.js b/src/api/system/user.js
index bc6f77c..175b3b8 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -1,5 +1,20 @@
 import request from '@/router/axios';
 
+
+export const getzhiwen = (id) => { //获取指纹的代码
+    return request({
+        url: '/api/blade-user/details',
+        method: 'get',
+        params: {
+            id
+        }
+    })
+}
+
+
+
+
+
 export const getJurisdiction = (params) => {
     return request({
         url: '/api/jurisdiction/selJur',
@@ -13,7 +28,13 @@
 
 
 
-export const getList = (current, size, params, deptId) => {
+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',
@@ -21,7 +42,7 @@
             ...params,
             current,
             size,
-            deptId,
+            ...datas
         }
     })
 }
@@ -30,6 +51,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,
@@ -48,11 +80,29 @@
     })
 }
 
+export const batchAudit = (ids,auditStatus) => {
+  return request({
+    url: '/api/blade-user/batchAudit',
+    method: 'post',
+    params: {
+      ids,auditStatus
+    }
+  })
+}
+
 export const add = (row) => {
     return request({
         url: '/api/blade-user/submit',
         method: 'post',
         data: row
+    })
+}
+
+export const checkAccountByUser = (data) => {
+    return request({
+        url: '/api/blade-user/checkAccount',
+        method: 'get',
+        params: data
     })
 }
 
@@ -68,6 +118,24 @@
 export const update = (row) => {
     return request({
         url: '/api/blade-user/update',
+        method: 'post',
+        data: row
+    })
+}
+
+
+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
     })
@@ -96,7 +164,7 @@
 
 export const getUser = (id) => {
     return request({
-        url: '/api/blade-user/detail',
+        url: '/api/blade-user/details',
         method: 'get',
         params: {
             id,
@@ -113,6 +181,7 @@
         }
     })
 }
+
 
 export const getUserPractitionersInfo = (securityid) => {
     return request({
@@ -171,4 +240,4 @@
             roleIds,
         }
     })
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3