From b8b0b73cd8e03e16ae255c0bd36b80bf0733b207 Mon Sep 17 00:00:00 2001 From: cat-shark <1716967236@qq.com> Date: Sun, 2 Aug 2026 11:59:47 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=A4=8D=E4=B9=A0=E6=80=BB=E8=A7=88?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=A0=B7=E5=BC=8F=E5=B9=B6=E8=A1=A5=E5=85=A8?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Review.vue | 114 ++++++++------------------------------ 1 file changed, 23 insertions(+), 91 deletions(-) diff --git a/src/components/Review.vue b/src/components/Review.vue index 8a3f430..d9395cc 100644 --- a/src/components/Review.vue +++ b/src/components/Review.vue @@ -84,56 +84,24 @@ onMounted(() => { -
- - - - - - - - - - - -
- -
+
-
+
{{ row.taskName }} - {{ formatEffectiveTime(row.effectiveTime) }}
-
- 报告 {{ row.reportCount || 0 }} - 残片 {{ row.fragmentCount || 0 }} +
+ 累计有效学习时长:{{ formatEffectiveTime(row.effectiveTime) }}
-
+
+ 学习报告数量:{{ row.reportCount || 0 }} + 学习残片数量:{{ row.fragmentCount || 0 }} +
+
{
- + @@ -197,20 +161,13 @@ onMounted(() => { color: var(--green-900); } -.table-card { - padding: 10px; +.task-list { + display: flex; + flex-direction: column; + gap: 10px; } -.table-card :deep(.el-table__row) { - cursor: pointer; -} - -.mobile-task-list, -.mobile-empty { - display: none; -} - -.mobile-task-card { +.task-card { padding: 14px 16px; display: flex; flex-direction: column; @@ -218,34 +175,23 @@ onMounted(() => { cursor: pointer; } -.mobile-task-head { - display: flex; - align-items: center; - justify-content: space-between; - gap: 10px; -} - -.mobile-task-head strong { - min-width: 0; +.task-head strong { + display: block; color: var(--green-900); font-size: 15px; overflow-wrap: anywhere; } -.mobile-task-time { - flex-shrink: 0; - color: var(--text-secondary); - font-size: 13px; -} - -.mobile-task-stats { +.task-meta, +.task-stats { display: flex; - gap: 14px; + flex-wrap: wrap; + gap: 8px 14px; color: var(--text-secondary); font-size: 13px; } -.mobile-task-actions { +.task-actions { display: flex; gap: 4px; } @@ -254,19 +200,5 @@ onMounted(() => { .summary-grid { grid-template-columns: 1fr; } - - .table-card { - display: none; - } - - .mobile-task-list { - display: flex; - flex-direction: column; - gap: 10px; - } - - .mobile-empty { - display: block; - } }