|
@@ -394,6 +394,14 @@ export default {
|
|
axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(async res => {
|
|
axios.post(`https://beta.api.cocorobo.cn/api/user`, qs.stringify(params)).then(async res => {
|
|
console.log("res", res);
|
|
console.log("res", res);
|
|
let _data = res.data[0][0];
|
|
let _data = res.data[0][0];
|
|
|
|
+ let userData = await this.ajax.get("https://pbl.cocorobo.cn/api/pbl/selectUser/selectUser", { userid: _data.userid });
|
|
|
|
+ let _uorg = userData.data[0][0].org;
|
|
|
|
+ if(this.allowOrgList.find(i=>i.id == this.org2)){
|
|
|
|
+ let _list = this.allowOrgList.find(i=>i.id==this.org2).list;
|
|
|
|
+ if(!_list.includes(_uorg)){
|
|
|
|
+ return this.$message.error("该组织/学校不允许登录");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (_data.active === 1) {
|
|
if (_data.active === 1) {
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
window.localStorage["identity"] = JSON.stringify(_data.identity);
|
|
this.$message.success("登录成功");
|
|
this.$message.success("登录成功");
|