zouyf_dev #272

Merged
zouyf merged 4 commits from zouyf_dev into main 2024-09-26 14:13:58 +08:00
1 changed files with 12 additions and 8 deletions
Showing only changes of commit a2a263a35a - Show all commits

View File

@ -63,7 +63,7 @@
<script setup>
import { ref, onMounted, onUnmounted, computed, watch, reactive } from 'vue'
import { listByDeadDate, listClassworkdataByDeadDate } from '@/api/classTask'
import { listByDeadDate, listClassworkdataByDeadDate, listClassworkdata } from '@/api/classTask'
import TaskItem from '@/views/classTask/container/task-item.vue'
import ItemDialog from '@/views/classTask/container/item-dialog.vue'
@ -138,12 +138,13 @@ const getClassWorkList = () => {
// homeworklist
listByDeadDate({
classidarray: classTaskStore.classListIds.join(','),
edituserid: userStore.userId, // id
edustage: userStore.edustage, //
edusubject: userStore.edusubject,//
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,//
status: '1', // 1-
// orderby: 'concat(deaddate,uniquekey) DESC',
orderby: 'uniquekey DESC',
orderby: 'deaddate DESC',
pageSize: 100,
}).then((response) => {
for (var i = 0; i < response.rows.length; i++) {
@ -211,14 +212,17 @@ const getClassWorkList = () => {
*/
const getStudentClassWorkData = () => {
if(classTaskStore.classListIds.length>0){
listClassworkdataByDeadDate({
listClassworkdata({
//listClassworkdataByDeadDate({
edituserid: userStore.userId, // id
classids: classTaskStore.classListIds.join(','),
edustage: userStore.edustage,//
edusubject: userStore.edusubject,//
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,//
status: '1', // 1-
orderby: "uniquekey DESC",// TODO deaddate
pageSize: 1000
//status: '1', // 1-
//orderby: "deaddate DESC",// TODO deaddate
//entpcourseid: 8945,
pageSize: 1000,
}).then((res) => {
for (var t = 0; t < classWorkList.value.length; t++) {
for (var i = 0; i < res.rows.length; i++) {
@ -375,7 +379,7 @@ const getStudentVisible = async () => {
deaddate: tabActive.value === '进行中'? getTomorrow() : EndDate.value,//
status: '1', // 1-
// orderby: 'concat(deaddate,uniquekey) DESC',
orderby: 'uniquekey DESC',
orderby: 'deaddate DESC',
pageSize: 100
})
const curWorkList = response.rows