userinfo
This commit is contained in:
parent
26e45415c5
commit
29332c5ae8
@ -188,31 +188,15 @@ struct UserInfo {
|
||||
})
|
||||
this.pageIndex = 0
|
||||
this.dataList = this.list.slice(this.pageIndex * 4, this.pageIndex * 4 + 4)
|
||||
const data = await getSyncData('USER')
|
||||
const user = data[0]
|
||||
if (user && Number(user.kssycs)) {
|
||||
let flag = false
|
||||
this.list.forEach(res => {
|
||||
if (res.sfzmhm == user.sfzmhm) {
|
||||
flag = true
|
||||
res.kssycs = user.kssycs
|
||||
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
|
||||
}
|
||||
// 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) => {
|
||||
res.id = index.toString()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user