洋浦学校 待办工作阶段代码提交

init
gongdi 3 years ago
parent f06805eae3
commit 23bf478338

@ -24,6 +24,17 @@ export default {
isTestLogin:false
},
/*
* CloudPlatform-3
* login_name 必填 string 登录名称base64后传输
* login_pwd 必填 string 登录密码base64后传输
* */
localLogin:{
url:'intellioa/sys/localLogin/login',
method:'post',
isTestLogin:false
},
/*
* 1.4.2根据person_ididentity_id获取用户上下文信息
* person_id 必填 string 登录名称base64后传输

@ -49,6 +49,7 @@
import AInputPassword from "ant-design-vue/es/input/Password";
import InterfaceConfig from '../../../../../commonInterface/interfaceConfig';
import StaticParams from '../../../../../global-llibs/staticParams';
import Base64 from '../../../../../global-llibs/base64';
export default{
data(){
return {
@ -109,17 +110,17 @@
}
this.isLogining = true;
this.InterfaceConfig.callInterface([{
url: CommonInter.checkLoginStatus.url,
params: {user: this.account, pwd: this.password},
method: CommonInter.checkLoginStatus.method,
isTestLogin: CommonInter.checkLoginStatus.isTestLogin,
url: CommonInter.localLogin.url,
params: {login_name: Base64.encode(this.account), login_pwd: Base64.encode(this.password)},
method: CommonInter.localLogin.method,
isTestLogin: CommonInter.localLogin.isTestLogin,
}], (result) => {
if (result[0].status === 200) {
let data = result[0].data;
if (data.success) {
if (data.code === 2000) {
//cookie
this.Cookie.set("person_id", data.person_id);
this.Cookie.set("identity_id", data.identity_id);
this.Cookie.set("person_id", data.data.person_id);
this.Cookie.set("identity_id", data.data.identity_id);
//BaseConfig
this.buildBaseInfo();

Loading…
Cancel
Save