|
@@ -111,22 +111,27 @@ export default {
|
|
|
// 个人登录
|
|
|
async webLogin() {
|
|
|
let data = this.webForm;
|
|
|
- data.type = '4';
|
|
|
- if (data.type == '4') {
|
|
|
- data.code = 'CGPIXT';
|
|
|
- let res = await this.perLogin({ user: data });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$message.success('登录成功');
|
|
|
- this.$router.push('/homeIndex');
|
|
|
- }
|
|
|
- } else {
|
|
|
- data.institution_code = data.phone;
|
|
|
- let res = await this.orgLogin({ user: data });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$message.success('登录成功');
|
|
|
- this.$router.push('/homeIndex');
|
|
|
- }
|
|
|
+ data.code = 'CGPIXT';
|
|
|
+ let res = await this.perLogin({ user: data });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message.success('登录成功');
|
|
|
+ this.$router.push('/homeIndex');
|
|
|
}
|
|
|
+ // if (data.type == '3') {
|
|
|
+ // data.code = 'CGPIXT';
|
|
|
+ // let res = await this.perLogin({ user: data });
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // this.$message.success('登录成功');
|
|
|
+ // this.$router.push('/homeIndex');
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // data.institution_code = data.phone;
|
|
|
+ // let res = await this.orgLogin({ user: data });
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // this.$message.success('登录成功');
|
|
|
+ // this.$router.push('/homeIndex');
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
// 管理登录
|
|
|
async adminLogin() {
|