From eef1cd4c6ffd669d43fd525918bda9ed3db7e25a Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期六, 30 十一月 2024 15:53:05 +0800 Subject: [PATCH] 修改bug --- ruoyi-ui/src/api/system/user.js | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 111 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js index f2f76ef..57da77e 100644 --- a/ruoyi-ui/src/api/system/user.js +++ b/ruoyi-ui/src/api/system/user.js @@ -9,6 +9,14 @@ params: query }) } +// 鏌ヨ鏅�氱敤鎴峰垪琛� +export function listCommonUser(query) { + return request({ + url: '/system/user/listCommonUser', + method: 'get', + params: query + }) +} // 鏌ヨ鐢ㄦ埛璇︾粏 export function getUser(userId) { @@ -30,12 +38,19 @@ // 淇敼鐢ㄦ埛 export function updateUser(data) { return request({ - url: '/system/user', + url: '/system/user/updateUserInfo', + method: 'post', + data: data + }) +} +export function updateUserInfo(data) +{ + return request({ + url: '/self/user', method: 'put', data: data }) } - // 鍒犻櫎鐢ㄦ埛 export function delUser(userId) { return request({ @@ -133,3 +148,97 @@ method: 'get' }) } +//鏌ョ湅鑷繁鐨勬潈闄� +export function getSelfPermission(data) { + return request({ + url: '/authority/condition', + method: 'post', + data: data + }) +} + +//鏌ョ湅 +export function getFamilyids(id) { + return request({ + url: '/family/'+id , + method: 'get', + + }) +} +//鏌ョ湅瀹跺涵淇℃伅 +export function getAllFamilys(){ + return request({ + url: '/family/all' , + method: 'get', + + }) +} + +export function getInfoByFid(fid) +{ + return request({ + url:'/self/user/list/getInfoByfid/'+fid, + method: 'get' + }) +} +export function getIndividual(id){ + return request({ + url:'/self/user/'+id, + method: 'get' + }) +} +export function getAllInfo(clanId){ + return request({ + url:'/self/user/allFamInfo?clanId='+clanId, + method: 'get' + }) +} +export function setAuority(data) +{ + return request({ + url:'/authority/empower', + method:'post', + data:data + }) +} +export function getUserByFidAid(data) +{ + return request({ + url:'/authority/getInfoByAidFid', + method: 'post', + data: data + }) +} +export function deleteUserByFidAid(data) +{ + return request({ + url:'/authority/deleteInfoByAidFid', + method: 'post', + data: data + }) +} +// export function get +//淇敼鐖朵翰姣嶄翰 +export function updateFM(uid, tpfid) +{ + return request({ + url:'/self/user/uidUJd/'+uid+'/'+tpfid, + method: 'get' + }) +} +//淇敼鏃堕�夋嫨閰嶅伓 +export function updatePO(tpfid,sex, clanId) +{ + return request({ + url:'/self/user/uidAndUJd/' + tpfid + '/' + sex+"/"+clanId, + method: 'get' + }) +} +//鏂板鏃堕�夋嫨閰嶅伓 +export function addPO(sex, clanId) +{ + return request({ + url:'/self/user/sex/'+sex+"/"+clanId, + method: 'get' + }) +} -- Gitblit v1.9.1