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 |   48 +++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 37 insertions(+), 11 deletions(-)

diff --git a/api/user.js b/api/user.js
index 4bf336c..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 = () => {
@@ -99,10 +90,45 @@
 	return http.request({
 		url: '/blade-system/user/update',
 		method: 'POST',
-	    data: data
+		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