|
@@ -160,6 +160,9 @@ export default {
|
|
|
showName: "",
|
|
|
oloading: false,
|
|
|
openid: "",
|
|
|
+ allowOrgList:[
|
|
|
+ {id:"3823a6a5-1b6e-11f0-a66a-005056924926",list:['3823a6a5-1b6e-11f0-a66a-005056924926','292e34dc-1b6e-11f0-a66a-005056924926','21d6b367-1b6e-11f0-a66a-005056924926','1a1a172d-1b6e-11f0-a66a-005056924926','1197f86b-1b6e-11f0-a66a-005056924926','f235659b-1b6d-11f0-a66a-005056924926','d87b62d3-1b6d-11f0-a66a-005056924926','c25ea59b-1b6d-11f0-a66a-005056924926']}
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -174,6 +177,9 @@ export default {
|
|
|
login: "user/login",
|
|
|
}),
|
|
|
async loginFn() {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if (this.loading) return;
|
|
|
|
|
|
if (this.account.length <= 0) {
|
|
@@ -186,6 +192,14 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if(this.allowOrgList.find(i=>i.id == this.org2)){
|
|
|
+ let _list = this.allowOrgList.find(i=>i.id==this.org2).list;
|
|
|
+ let _nowOrgId = this.OrgOptions.find(i=>i.Uorg==this.org).id
|
|
|
+ if(!_list.includes(_nowOrgId)){
|
|
|
+ return this.$message.error("该组织/学校不允许登录");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
let orgValue = this.org ? "@" + this.org : "@cocorobo.cc";
|
|
|
let email = "";
|
|
|
const regEmail = new RegExp(
|
|
@@ -336,7 +350,7 @@ export default {
|
|
|
let data = res.data[0];
|
|
|
console.log("data", data);
|
|
|
this.form = JSON.parse(data[0].json);
|
|
|
- this.showName = data[0].name;
|
|
|
+ this.showName = this.form.basics.title || data[0].name;
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
console.error("请求失败,错误信息:", err);
|