userinfo
This commit is contained in:
parent
26e45415c5
commit
29332c5ae8
@ -188,31 +188,15 @@ struct UserInfo {
|
|||||||
})
|
})
|
||||||
this.pageIndex = 0
|
this.pageIndex = 0
|
||||||
this.dataList = this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4)
|
this.dataList = this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4)
|
||||||
const data = await getSyncData('USER')
|
if (this.dataList.length) {
|
||||||
const user = data[0]
|
setTimeout(()=>{
|
||||||
if (user && Number(user.kssycs)) {
|
this.currentUser = this.dataList[0]
|
||||||
let flag = false
|
this.currentUser.ksy2= globalThis.kgxm
|
||||||
this.list.forEach(res => {
|
globalThis.lsh=this.currentUser.lsh
|
||||||
if (res.sfzmhm == user.sfzmhm) {
|
},200)
|
||||||
flag = true
|
} else {
|
||||||
res.kssycs = user.kssycs
|
this.currentUser = EmptyCandidateObject
|
||||||
this.getCurrentStudent(res.sfzmhm)
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
if (!flag) {
|
|
||||||
this.currentUser = (this.list.length ? this.list[0] : EmptyCandidateObject)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// if (this.dataList.length) {
|
|
||||||
//
|
|
||||||
// setTimeout(()=>{
|
|
||||||
// this.currentUser = this.dataList[0]
|
|
||||||
// this.currentUser.ksy2= globalThis.kgxm
|
|
||||||
// globalThis.lsh=this.currentUser.lsh
|
|
||||||
// },200)
|
|
||||||
// } else {
|
|
||||||
// this.currentUser = EmptyCandidateObject
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
this.list.forEach((res, index) => {
|
this.list.forEach((res, index) => {
|
||||||
res.id = index.toString()
|
res.id = index.toString()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user