From aefc8784d17df3ff1a103462605c83c4a391cc4d Mon Sep 17 00:00:00 2001
From: sendo <172933527@qq.com>
Date: 星期一, 29 九月 2025 17:53:06 +0800
Subject: [PATCH] yxh

---
 src/api/system/user.js |  182 ++++++++++++++++++++++++++++++---------------
 1 files changed, 122 insertions(+), 60 deletions(-)

diff --git a/src/api/system/user.js b/src/api/system/user.js
index f2f76ef..79ab356 100644
--- a/src/api/system/user.js
+++ b/src/api/system/user.js
@@ -1,135 +1,197 @@
-import request from '@/utils/request'
-import { parseStrEmpty } from "@/utils/ruoyi";
+import request from "@/utils/request";
+import { parseStrEmpty } from "@/utils/ruoyi"; //澶勭悊瀛楃涓�
 
 // 鏌ヨ鐢ㄦ埛鍒楄〃
 export function listUser(query) {
   return request({
-    url: '/system/user/list',
-    method: 'get',
-    params: query
-  })
+    url: "/system/user/list",
+    method: "get",
+    params: query,
+  });
 }
 
 // 鏌ヨ鐢ㄦ埛璇︾粏
 export function getUser(userId) {
   return request({
-    url: '/system/user/' + parseStrEmpty(userId),
-    method: 'get'
-  })
+    url: "/system/user/getInfo/" + parseStrEmpty(userId),
+    method: "get",
+  });
 }
 
 // 鏂板鐢ㄦ埛
 export function addUser(data) {
   return request({
-    url: '/system/user',
-    method: 'post',
-    data: data
-  })
+    url: "/system/user/add",
+    method: "post",
+    data: data,
+  });
 }
 
 // 淇敼鐢ㄦ埛
 export function updateUser(data) {
   return request({
-    url: '/system/user',
-    method: 'put',
-    data: data
-  })
+    url: "/system/user/edit",
+    method: "post",
+    data: data,
+  });
 }
 
 // 鍒犻櫎鐢ㄦ埛
 export function delUser(userId) {
   return request({
-    url: '/system/user/' + userId,
-    method: 'delete'
-  })
+    url: "/system/user/remove/" + userId,
+    method: "get",
+  });
 }
 
 // 鐢ㄦ埛瀵嗙爜閲嶇疆
 export function resetUserPwd(userId, password) {
   const data = {
     userId,
-    password
-  }
+    password,
+  };
   return request({
-    url: '/system/user/resetPwd',
-    method: 'put',
-    data: data
-  })
+    url: "/system/user/resetPwd",
+    method: "post",
+    data: data,
+  });
 }
 
 // 鐢ㄦ埛鐘舵�佷慨鏀�
 export function changeUserStatus(userId, status) {
   const data = {
     userId,
-    status
-  }
+    status,
+  };
   return request({
-    url: '/system/user/changeStatus',
-    method: 'put',
-    data: data
-  })
+    url: "/system/user/changeStatus/edit",
+    method: "post",
+    data: data,
+  });
 }
 
 // 鏌ヨ鐢ㄦ埛涓汉淇℃伅
 export function getUserProfile() {
   return request({
-    url: '/system/user/profile',
-    method: 'get'
-  })
+    url: "/system/user/profile",
+    method: "get",
+  });
 }
 
 // 淇敼鐢ㄦ埛涓汉淇℃伅
 export function updateUserProfile(data) {
   return request({
-    url: '/system/user/profile',
-    method: 'put',
-    data: data
-  })
+    url: "/system/user/profile/edit",
+    method: "post",
+    data: data,
+  });
+}
+// 缁熻鏌ヨ
+export function getSfStatistics(data) {
+  return request({
+    url: "/smartor/serviceSubtask/getSfStatistics",
+    method: "post",
+    data: data,
+  });
+}
+// 婊℃剰搴︽槑缁嗘煡璇�
+export function getSfStatisticsJoydetails(data) {
+  return request({
+    url: "/smartor/serviceSubtask/getSfStatisticsJoydetails",
+    method: "post",
+    data: data,
+  });
+}// 婊℃剰搴︾粺璁�
+export function getSfStatisticsJoy(data) {
+  return request({
+    url: "/smartor/serviceSubtask/getSfStatisticsJoy",
+    method: "post",
+    data: data,
+  });
+}
+// 鏈強鏃舵煡璇�
+export function selectTimelyRate(data) {
+  return request({
+    url: "/smartor/servicetask/selectTimelyRate",
+    method: "post",
+    data: data,
+  });
+}
+
+// 浠诲姟闅忚鐜囩粺璁¤〃鐨勪笅閽绘槑缁�
+// sendstate = 2 寰呴殢璁� 5 寰呴殢璁垮け璐�    
+// preachform = 浠诲姟褰㈠紡(1,浜哄伐 2,绾歌川  3,鐢佃瘽  4,鐭俊  5.寰俊鍏紬鍙� 6.寰俊灏忕▼搴� 7.鏀粯瀹濆皬绋嬪簭  8.鏅鸿兘鏈哄櫒浜�  9.閽夐拤)
+export function querySubtaskList(data) {
+  return request({
+    url: "/smartor/serviceSubtask/querySubtaskList",
+    method: "post",
+    data: data,
+  });
 }
 
 // 鐢ㄦ埛瀵嗙爜閲嶇疆
 export function updateUserPwd(oldPassword, newPassword) {
   const data = {
     oldPassword,
-    newPassword
-  }
+    newPassword,
+  };
   return request({
-    url: '/system/user/profile/updatePwd',
-    method: 'put',
-    params: data
-  })
+    url: "/system/user/profile/updatePwd",
+    method: "post",
+    params: data,
+  });
 }
 
 // 鐢ㄦ埛澶村儚涓婁紶
 export function uploadAvatar(data) {
   return request({
-    url: '/system/user/profile/avatar',
-    method: 'post',
-    data: data
-  })
+    url: "/system/user/profile/avatar",
+    method: "post",
+    data: data,
+  });
 }
 
 // 鏌ヨ鎺堟潈瑙掕壊
 export function getAuthRole(userId) {
   return request({
-    url: '/system/user/authRole/' + userId,
-    method: 'get'
-  })
+    url: "/system/user/authRole/" + userId,
+    method: "get",
+  });
 }
 
 // 淇濆瓨鎺堟潈瑙掕壊
 export function updateAuthRole(data) {
   return request({
-    url: '/system/user/authRole',
-    method: 'put',
-    params: data
-  })
+    url: "/system/user/authRole/insertAuthRole",
+    method: "post",
+    data: data,
+  });
+}
+// 淇濆瓨鎺堟潈瑙掕壊
+export function removeusertd(userid,deptcode) {
+  return request({
+    url: "/smartor/userdept/removeByCode/" + userid + "/" + deptcode,
+    method: "get",
+  });
 }
 
 // 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋�
-export function deptTreeSelect() {
+export function deptTreeSelect(type) {
+  const data = {
+    deptType:type,
+    orgid:localStorage.getItem("orgid"),
+  };
   return request({
-    url: '/system/user/deptTree',
-    method: 'get'
-  })
+    url: "/system/user/deptTree",
+    method: "get",
+    params: data,
+  });
+}
+// 鏂板绉戝/鐥呭尯
+export function adduserdept(data) {
+  return request({
+    url: "/smartor/userdept/add",
+    method: "post",
+    data: data,
+  });
 }

--
Gitblit v1.9.3