This commit is contained in:
曹辉 2023-04-20 10:55:54 +08:00
parent 30ab4fb1ca
commit 792d8c898f
2 changed files with 19 additions and 6 deletions

View File

@ -94,6 +94,7 @@
<script> <script>
import { import {
getInfoByPhone,
getMotionPrescription, getMotionPrescription,
getChildrenResultScore, getChildrenResultScore,
prescriptionVideoLogging, prescriptionVideoLogging,
@ -124,13 +125,23 @@
}) })
}) })
}) })
var arr = { const phone = uni.getStorageSync('phone');
"studentIdList": [this.studentId] getInfoByPhone(phone).then(res => {
} if (res.code == 200) {
getChildrenResultScore(arr).then(res => { var obj = {
this.getchildlist = res.data studentIdList: []
}
res.data.studentInfoList.forEach(e => {
obj.studentIdList.push(e.studentId)
})
let items = JSON.stringify(res.data);
uni.setStorageSync("this.DATAList", items)
getChildrenResultScore(obj).then(res => {
this.getchildlist = res.data
})
this.infolist();
} else {}
}) })
this.infolist();
}, },
methods: { methods: {
infolist() { infolist() {

View File

@ -160,6 +160,8 @@
res.data.studentInfoList.forEach(e => { res.data.studentInfoList.forEach(e => {
obj.studentIdList.push(e.studentId) obj.studentIdList.push(e.studentId)
}) })
let items = JSON.stringify(res.data);
uni.setStorageSync("this.DATAList", items)
getChildrenResultScore(obj).then(res => { getChildrenResultScore(obj).then(res => {
this.StudentScore = res.data this.StudentScore = res.data
if (this.StudentScore.length == 1) { if (this.StudentScore.length == 1) {