|
|
@ -4,7 +4,7 @@ |
|
|
|
<view class="" style="height: 100rpx;"></view> |
|
|
|
<!-- <u-button @click="requestSingleFreshLocationFn">单次定位</u-button> --> |
|
|
|
<!-- <u-button @click="getInitFaceVerifyFn">人脸核身</u-button> --> |
|
|
|
<topInfo :carType="curObject.name" @changeSubject="changeSubject" :dynamics="dynamics"></topInfo> |
|
|
|
<topInfo :carType="curObject.name" @changeSubject="changeSubject" :dynamics="subjectStatus.studentClassHourVO"></topInfo> |
|
|
|
<subject1 v-if="curObject.id==1"></subject1> |
|
|
|
<subject2 v-if="curObject.id==2" :subjectStatus="subjectStatus"></subject2> |
|
|
|
<subject3 v-if="curObject.id==3" :subjectStatus="subjectStatus"></subject3> |
|
|
@ -28,7 +28,9 @@ |
|
|
|
id: 2, |
|
|
|
}, |
|
|
|
dynamics: {}, |
|
|
|
subjectStatus: {} |
|
|
|
subjectStatus: { |
|
|
|
studentClassHourVO: {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
@ -40,14 +42,14 @@ |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.getStudentSubject1StatusFn() |
|
|
|
this.getStudentProcessFn() |
|
|
|
// this.getStudentProcessFn() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 切换科目 |
|
|
|
changeSubject(val) { |
|
|
|
console.log(val) |
|
|
|
this.curObject = val |
|
|
|
this.getStudentProcessFn() |
|
|
|
// this.getStudentProcessFn() |
|
|
|
this.getStudentSubject1StatusFn() |
|
|
|
}, |
|
|
|
|
|
|
@ -58,7 +60,8 @@ |
|
|
|
let arrFn = [getStudentSubject1Status, getStudentSubject2Status, getStudentSubject3Status, getStudentSubject4Status] |
|
|
|
const {data: res} = await arrFn[this.curObject.id-1]({studentId: this.studentId}) |
|
|
|
this.subjectStatus = res |
|
|
|
console.log(res) |
|
|
|
// console.log(res) |
|
|
|
console.log(this.subjectStatus.studentClassHourVO) |
|
|
|
}, |
|
|
|
async getStudentProcessFn() { |
|
|
|
const {data: res} = await getStudentProcess({studentId: this.studentId}) |
|
|
@ -77,7 +80,6 @@ |
|
|
|
obj.TotalTime = res.subjectFourTotalTime |
|
|
|
} |
|
|
|
this.dynamics = obj |
|
|
|
console.log(this.dynamics) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|