From 3c738f4fe2762bba8087e5a22fc0dc06560eab0e Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 08 Aug 2024 10:01:17 +0800
Subject: [PATCH] 三色任务与自查任务
---
api/user.js | 50 ++++++++++++++++++++++++++++++++++++++------------
1 files changed, 38 insertions(+), 12 deletions(-)
diff --git a/api/user.js b/api/user.js
index ff4fc91..41ff5d4 100644
--- a/api/user.js
+++ b/api/user.js
@@ -54,16 +54,7 @@
})
}
-// 获取用户信息
-export const getUser = (id) => {
- return http.request({
- url: '/api/blade-user/detail',
- method: 'GET',
- params: {
- id
- }
- })
-}
+
// 获取所有用户
export const getUserList = () => {
@@ -95,14 +86,49 @@
}
//更新用户信息
-export const updateUserInfo = (params) => {
+export const updateUserInfo = (data) => {
return http.request({
url: '/blade-system/user/update',
- method: 'get',
+ method: 'POST',
+ data: data
+ })
+}
+
+
+// 获取用户信息
+export const getUser = (id) => {
+ console.log('************************', id)
+ return http.request({
+ url: '/blade-system/user/detail',
+ method: 'GET',
+ params: {
+ id
+ }
+ })
+}
+
+// 获取用户信息
+export const fetchUserInfo = (id) => {
+ return http.request({
+ url: '/blade-system/user/details',
+ method: 'GET',
+ params: {
+ id
+ }
+ })
+}
+
+// 获取人员类型
+export const getPeopleType = (params) => {
+ return http.request({
+ url: '/blade-system/user/getUserInfoByCode',
+ method: 'GET',
params: params
})
}
+
+
export default {
token,
userInfo,
--
Gitblit v1.9.3