作业批改:查询排序更改

This commit is contained in:
白了个白 2024-09-25 11:22:52 +08:00
parent d247d22288
commit 5089ecce3d
1 changed files with 3 additions and 5 deletions

View File

@ -142,8 +142,7 @@ const getClassWorkList = () => {
edusubject: userStore.edusubject,// edusubject: userStore.edusubject,//
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,//
status: '1', // 1- status: '1', // 1-
// orderby: 'concat(deaddate,uniquekey) DESC', orderby: "deaddate DESC",
orderby: 'uniquekey DESC',
pageSize: 100, pageSize: 100,
}).then((response) => { }).then((response) => {
for (var i = 0; i < response.rows.length; i++) { for (var i = 0; i < response.rows.length; i++) {
@ -217,7 +216,7 @@ const getStudentClassWorkData = () => {
edusubject: userStore.edusubject,// edusubject: userStore.edusubject,//
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,//
status: '1', // 1- status: '1', // 1-
orderby: "uniquekey DESC",// TODO deaddate orderby: "deaddate DESC",
pageSize: 1000 pageSize: 1000
}).then((res) => { }).then((res) => {
for (var t = 0; t < classWorkList.value.length; t++) { for (var t = 0; t < classWorkList.value.length; t++) {
@ -374,8 +373,7 @@ const getStudentVisible = async () => {
edusubject: userStore.edusubject,// edusubject: userStore.edusubject,//
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,// deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,//
status: '1', // 1- status: '1', // 1-
// orderby: 'concat(deaddate,uniquekey) DESC', orderby: "deaddate DESC",
orderby: 'uniquekey DESC',
pageSize: 100 pageSize: 100
}) })
const curWorkList = response.rows const curWorkList = response.rows