|
@@ -7,7 +7,7 @@
|
|
|
<div class="EntBloConList">
|
|
|
<div class="EntBloCon" @click="loginLiyuan(i)" v-for="(i,index) in CampusList" :key="index">
|
|
|
<img style="width: 26px;margin-bottom: 10px;" :src="JSON.parse(i.json).basics.logo" alt="">
|
|
|
- <div>{{ i.detail }}</div>
|
|
|
+ <div>{{ i.name }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -48,7 +48,7 @@ import { addrrole } from "@/api/user";
|
|
|
async loginLiyuan(val){
|
|
|
this.loading = true
|
|
|
|
|
|
- this.uCode = val
|
|
|
+ // this.uCode = val
|
|
|
try{
|
|
|
let email = ''
|
|
|
let userName = JSON.parse(JSON.stringify(this.userinfo.accountNumber))
|
|
@@ -81,7 +81,7 @@ import { addrrole } from "@/api/user";
|
|
|
console.log('this.userinfo2',this.userinfo2);
|
|
|
this.$router.push('/');
|
|
|
}else{
|
|
|
- this.addRoleZh(email)
|
|
|
+ this.addRoleZh(email, val)
|
|
|
}
|
|
|
} catch (err) {
|
|
|
this.loading = false
|
|
@@ -89,14 +89,14 @@ import { addrrole } from "@/api/user";
|
|
|
console.error("请求失败,错误信息:", err);
|
|
|
}
|
|
|
},
|
|
|
- async addRoleZh(email){
|
|
|
+ async addRoleZh(email, school){
|
|
|
|
|
|
let params = {
|
|
|
username: email,
|
|
|
userpassword: 'Coco1234',
|
|
|
alias: this.userinfo.username,
|
|
|
- org: this.uCode.parentid,
|
|
|
- oid: this.uCode.id,
|
|
|
+ org: school.orgid,
|
|
|
+ oid: school.schoolid,
|
|
|
ph: '',
|
|
|
sid: '',
|
|
|
cid: "",
|