GitBucket
4.6.0
Toggle navigation
Sign in
Files
Branches
1
Tags
Issues
Pull Requests
Labels
Milestones
Wiki
08335
/
hivui-platform-template
hivui平台项目模板
Browse code
@中文描述:菜单
@升级登记:1 @同步后端:0 @同步数据库:0 @同步配置:0 @向下兼容:1
master
1 parent
f1a1e11
commit
354302eb1fe0c37f0d39201f8a20bf11a0d16165
20278
authored
on 5 Jun 2023
Showing
1 changed file
project/hivuiMain/api/user.js
Ignore Space
Show notes
View
project/hivuiMain/api/user.js
import request from '../utils/request' import {codeProjectName} from '../config' let hi_request=null; if(window.HIVUI_SETTING&&window.HIVUI_SETTING.request){ hi_request=window.HIVUI_SETTING.request; } function _request(opt){ if(hi_request){ return hi_request(opt); }else{ return request(opt); } } const __base=(window.HIVUI_SETTING.serverUrl||codeProjectName); //获取用户信息 export function getInfo(param) { return _request({ url: window.HIVUI_SETTING.userInfo||(__base+"/sys/user/detail"), method: 'post', data: param, }) } //获取多岗列表 export function getBzList(param) { return _request({ url: __base+"/sys/user/detail-list", method: 'post', data: param, }) } //切换编制岗位 export function changeBz(param) { return _request({ url: __base+"/sys/user/switch-bz", method: 'post', data: param, }) } //修改密码 export function modifyPassword(param) { return _request({ url: __base+"/sys/user/update-pwd", method: 'post', data: param, }) } // 查询 export function query(param) { return _request({ url: __base+"/data/query", method: 'post', data: param, }) } // 更新 export function update(param) { return _request({ url: __base+"/data/update", method: 'post', data: param, }) } // 上传 export function upload(param) { return _request({ url:HIVUI_SETTING.upload, headers: { "Content-Type": "multipart/form-data" }, method: 'post', data: param, }) } // 获取单点登录服务器信息 export function getSSOInfo(param) { return _request({ url:__base+"/sso/get-sso-info", method: 'get', data: param, }) } // 获取单点登录服务器票据 export function getSSOTicket(ssoServe,param) { return _request({ url:ssoServe+"/sso/get-ticket", method: 'get', data: param, }) }
import request from '../utils/request' import {codeProjectName} from '../config' let hi_request=null; if(window.HIVUI_SETTING&&window.HIVUI_SETTING.request){ hi_request=window.HIVUI_SETTING.request; } function _request(opt){ if(hi_request){ return hi_request(opt); }else{ return request(opt); } } const __base=(window.HIVUI_SETTING.serverUrl||codeProjectName); //获取用户信息 export function getInfo(param) { return _request({ url: window.HIVUI_SETTING.userInfo||(__base+"/sys/user/detail"), method: 'post', data: param, }) } //获取多岗列表 export function getBzList(param) { return _request({ url: __base+"/sys/user/detail-list", method: 'post', data: param, }) } //切换编制岗位 export function changeBz(param) { return _request({ url: __base+"/sys/user/switch-bz", method: 'post', data: param, }) } //修改密码 export function modifyPassword(param) { return _request({ url: __base+"/sys/user/update-pwd", method: 'post', data: param, }) } // 查询 export function query(param) { return _request({ url: __base+"/data/query", method: 'post', data: param, }) } // 更新 export function update(param) { return _request({ url: __base+"/data/update", method: 'post', data: param, }) } // 上传 export function upload(param) { return _request({ url:HIVUI_SETTING.upload, headers: { "Content-Type": "multipart/form-data" }, method: 'post', data: param, }) } // 获取单点登录服务器信息 export function getSSOInfo(param) { return _request({ url:__base+"/sso/get-sso-info", method: 'get', data: param, }) } // 获取单点登录服务器票据 export function getSSOTicket(ssoServe,param) { return _request({ url:ssoServe+"/sso/get-sso-info", method: 'get', data: param, }) }
Show line notes below