🎈 perf: 优化部分展示

This commit is contained in:
砂糖
2025-08-13 18:01:19 +08:00
parent 9a660b910b
commit 7518c68068
4 changed files with 49 additions and 100 deletions

View File

@@ -76,6 +76,8 @@
<el-table-column label="到期日" align="center" prop="dueDate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.dueDate, '{y}-{m}-{d}') }}</span>
<el-tag v-if="new Date(scope.row.dueDate) < new Date()" type="danger">过期</el-tag>
<el-tag v-else-if="new Date(scope.row.dueDate) > new Date()" type="success">还剩{{ parseInt((new Date(scope.row.dueDate) - new Date()) / (1000 * 60 * 60 * 24)) }}</el-tag>
</template>
</el-table-column>
<el-table-column label="应收金额" align="center" prop="amount" />