Merge pull request '作业查询' (#206) from lyc-dev into main

This commit is contained in:
lyc 2024-09-13 17:19:55 +08:00
commit a92176174a
1 changed files with 1 additions and 2 deletions

View File

@ -59,8 +59,7 @@ const getHomework = async () => {
loading.value = true loading.value = true
const { edustage, edusubject } = user const { edustage, edusubject } = user
try { try {
const { rows } = await homeworklist({ edituserid: user.userId, edustage, edusubject, orderby: 'uniquekey DESC', pageSize: 500 }) const { rows } = await homeworklist({ edituserid: user.userId, edustage, edusubject, status: '1' ,orderby: 'uniquekey DESC', pageSize: 500 })
console.log(rows,'rows')
homeworkList.value = rows.filter(item => item.deaddate && item.uniquekey) homeworkList.value = rows.filter(item => item.deaddate && item.uniquekey)
homeworkList.value.forEach((item) => { homeworkList.value.forEach((item) => {
item.workdatacount = JSON.parse('[' + item.classworkdatastudentids + ']').length item.workdatacount = JSON.parse('[' + item.classworkdatastudentids + ']').length