| | |
| | | import axios from "@/assets/js/axios"; |
| | | import md5 from "js-md5"; |
| | | import formatPassword from "@/assets/js/tools/formatPassword"; |
| | | /** |
| | | * 登录系统 |
| | | * 参数 "uinf.UName="+用户名+"&uinf.Upassword="+密码+"&uinf.UId="+是否记住密码(0,1) |
| | |
| | | export const login = (username, password, verity) => { |
| | | return axios({ |
| | | method: "post", |
| | | url: `LoginAction_login?uinf.UName=${username}&uinf.Upassword=${md5(password)}&uinf.UNote=${verity}&uinf.UId=0`, |
| | | url: `LoginAction_login?uinf.UName=${username}&uinf.Upassword=${encodeURIComponent(encodeURIComponent(formatPassword(password)))}&uinf.UNote=${verity}&uinf.UId=0`, |
| | | data: null |
| | | }); |
| | | }; |
| | |
| | | url: 'PageParamAction!findByCategoryId', |
| | | data: 'json=' + JSON.stringify({ categoryId: 5 }) |
| | | }) |
| | | } |
| | | |
| | | //查询系统名称 |
| | | export const getRealTabsConfig = (type) => { |
| | | type = type ? type : 1; |
| | | return axios({ |
| | | method: 'post', |
| | | url: 'PageParamUserAction!getAll', |
| | | data: "json=" + JSON.stringify({ |
| | | type, |
| | | }) |
| | | }) |
| | | } |