This commit is contained in:
van
2026-09-30 17:43:47 +08:00
parent f09bb12d27
commit a3686cf160
+9 -2
View File
@@ -39,6 +39,8 @@
</el-form>
</el-card>
<div v-if="current" class="range-line">统计区间 {{ current.beginDate }} ~ {{ current.endDate }}<span v-if="current.label"> · {{ current.label }}</span></div>
<el-row v-if="current" :gutter="16" class="summary-row">
<el-col v-for="item in summaryItems" :key="item.key" :xs="24" :sm="12" :md="8" :lg="4">
<el-card class="summary-card" shadow="hover">
@@ -204,7 +206,7 @@ export default {
return 'date'
},
dateValueFormat() {
return this.periodType === 'month' ? 'yyyy-MM-01' : 'yyyy-MM-dd'
return 'yyyy-MM-dd'
},
dateLabel() {
if (this.periodType === 'week') return '周内日期'
@@ -213,7 +215,7 @@ export default {
},
datePlaceholder() {
if (this.periodType === 'week') return '空则上完整周'
if (this.periodType === 'month') return '空则上月'
if (this.periodType === 'month') return '空则本月'
return '空则今天'
},
current() {
@@ -478,6 +480,11 @@ export default {
.hint-alert {
margin-bottom: 14px;
}
.range-line {
margin: 0 0 12px;
color: #606266;
font-size: 13px;
}
.summary-row,
.table-row {
margin-bottom: 16px;