| | |
| | | } |
| | | |
| | | /** |
| | | * @description 登录系统 |
| | | * @description 登录系统, 获取用户信息 |
| | | */ |
| | | getusermsg (username, password) { |
| | | return axios({ |
| | |
| | | DBT: 'proc', |
| | | DBS: 'webapi_login', |
| | | DBP: JSON.stringify({ 'UserName': username, 'Password': password }) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 登出系统 |
| | | */ |
| | | logoutsystem () { |
| | | return axios({ |
| | | url: '/local/dostar', |
| | | data: { |
| | | func: 'logout', |
| | | userid: sessionStorage.getItem('UserID') |
| | | } |
| | | }) |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * @description 获取主菜单数据 |
| | | * @description 获取系统配置,增加appkey |
| | | */ |
| | | getMainMenuData () { |
| | | getSystemConfig (param) { |
| | | param.userid = sessionStorage.getItem('UserID') |
| | | param.lang = localStorage.getItem('lang') || '' |
| | | param.SessionUid = sessionStorage.getItem('SessionUid') || '' |
| | | param.LoginUID = sessionStorage.getItem('LoginUID') || '' |
| | | param.appkey = window.GLOB.appkey || '' |
| | | if (window.GLOB.mainSystemApi) { |
| | | param.rduri = window.GLOB.mainSystemApi |
| | | } |
| | | return axios({ |
| | | url: '/webapi/dostar', |
| | | data: { |
| | | func: 'sPC_Get_MainMenu', |
| | | userid: sessionStorage.getItem('UserID'), |
| | | lang: localStorage.getItem('lang') || '', |
| | | SessionUid: sessionStorage.getItem('SessionUid') || '', |
| | | LoginUID: sessionStorage.getItem('LoginUID') || '' |
| | | } |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * @description 获取子菜单数据 |
| | | * @param {String} menuId 主菜单Id |
| | | */ |
| | | getSubMenuData (menuId) { |
| | | return axios({ |
| | | url: '/webapi/dostar', |
| | | data: { |
| | | func: 'sPC_Get_FunMenu', |
| | | userid: sessionStorage.getItem('UserID'), |
| | | lang: localStorage.getItem('lang') || '', |
| | | SessionUid: sessionStorage.getItem('SessionUid') || '', |
| | | LoginUID: sessionStorage.getItem('LoginUID') || '', |
| | | ParentID: menuId |
| | | } |
| | | data: param |
| | | }) |
| | | } |
| | | |
| | |
| | | data: param |
| | | }) |
| | | } |
| | | |
| | | // /** |
| | | // * @description 登出系统 |
| | | // */ |
| | | // logoutsystem () { |
| | | // return axios({ |
| | | // url: '/local/dostar', |
| | | // data: { |
| | | // func: 'logout', |
| | | // userid: sessionStorage.getItem('UserID') |
| | | // } |
| | | // }) |
| | | // } |
| | | } |
| | | |
| | | export default new Api() |