style: 适配复习总览移动端列表
This commit is contained in:
@@ -117,6 +117,48 @@ onMounted(() => {
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
<div v-if="tasks.length > 0" v-loading="loading" class="mobile-task-list">
|
||||||
|
<article
|
||||||
|
v-for="row in tasks"
|
||||||
|
:key="row.taskNum"
|
||||||
|
class="surface-card mobile-task-card"
|
||||||
|
@click="openTaskReview(row)"
|
||||||
|
>
|
||||||
|
<div class="mobile-task-head">
|
||||||
|
<strong>{{ row.taskName }}</strong>
|
||||||
|
<span class="mobile-task-time">{{ formatEffectiveTime(row.effectiveTime) }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="mobile-task-stats">
|
||||||
|
<span>报告 {{ row.reportCount || 0 }}</span>
|
||||||
|
<span>残片 {{ row.fragmentCount || 0 }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="mobile-task-actions">
|
||||||
|
<el-button
|
||||||
|
text
|
||||||
|
type="success"
|
||||||
|
size="small"
|
||||||
|
:loading="openingTaskNum === row.taskNum"
|
||||||
|
@click.stop="openTaskReview(row)"
|
||||||
|
>
|
||||||
|
查看记录
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
text
|
||||||
|
type="success"
|
||||||
|
size="small"
|
||||||
|
@click.stop="router.push(`/review/recall/${row.taskNum}`)"
|
||||||
|
>
|
||||||
|
回忆复习
|
||||||
|
</el-button>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
<el-empty
|
||||||
|
v-if="!loading && tasks.length === 0"
|
||||||
|
class="mobile-empty"
|
||||||
|
description="暂无复习任务"
|
||||||
|
/>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -163,9 +205,68 @@ onMounted(() => {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-task-list,
|
||||||
|
.mobile-empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-task-card {
|
||||||
|
padding: 14px 16px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-task-head {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-task-head strong {
|
||||||
|
min-width: 0;
|
||||||
|
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 {
|
||||||
|
display: flex;
|
||||||
|
gap: 14px;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-task-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
.summary-grid {
|
.summary-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-card {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-task-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-empty {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user