From 0e42ce08e1ce526b0d4f92738c849e6269308020 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=99=BD=E4=BA=86=E4=B8=AA=E7=99=BD?= <543593352@qq.com>
Date: Thu, 17 Oct 2024 13:50:21 +0800
Subject: [PATCH] 1
---
.../src/views/desktop/container/work-trend.vue | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
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 != '') {
--
2.44.0.windows.1