This commit is contained in:
“zouyf” 2024-09-25 17:34:31 +08:00
parent 2a4b0281c2
commit a2a263a35a
1 changed files with 12 additions and 8 deletions

View File

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