diff --git a/src/renderer/src/views/desktop/container/work-trend.vue b/src/renderer/src/views/desktop/container/work-trend.vue index fc49817..a40cb6c 100644 --- a/src/renderer/src/views/desktop/container/work-trend.vue +++ b/src/renderer/src/views/desktop/container/work-trend.vue @@ -16,6 +16,7 @@ {{ item.uniquekey }} {{ getCurrentTime('YYYY-MM-DD HH:mm') > item.deaddate ? '已结束' : '进行中' }} + {{ item.worktype }}
{{ item.classcaption }} | 截止时间:{{ item.deaddate }}
@@ -55,6 +56,22 @@ const getHomework = async () => { homeworkList.value = rows.filter(item => item.deaddate && item.uniquekey && getCurrentTime('YYYY-MM-DD HH:mm') < item.deaddate) // 当前日期的时分与截止日期进行判断 // homeworkList.value = rows.filter(item => item.deaddate && item.uniquekey && getTomorrow() <= item.deaddate) //大于今天的才算进行中 弃用 homeworkList.value.forEach((item) => { + // 处理任务类型的UI + if (item.worktype == '学习目标定位') { + item.workclass = 'success' + item.workcodesList = JSON.parse(item.workcodes) + } else if (item.worktype == '教材研读') { + item.workclass = 'primary' + } else if (item.worktype == '框架梳理') { + item.workclass = 'warning' + } else if (item.worktype == '学科定位') { + item.workclass = 'info' + } else if (item.worktype == '习题训练') { + item.workclass = 'danger' + } else { + item.workclass = '' + } + item.workdatacount = JSON.parse('[' + item.classworkdatastudentids + ']').length // 如果是习题训练任务,则检查一共有多少道 if (item.entpcourseworklist != '') {