|
|
|
@ -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();
|
|
|
|
|