Merge pull request '作业查询' (#206) from lyc-dev into main
This commit is contained in:
commit
a92176174a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue