fix: 统计功能,统一优化。

This commit is contained in:
tianyongbao
2024-10-24 19:14:15 +08:00
parent a79af70ca1
commit a3c3d7969a
14 changed files with 118 additions and 18 deletions

View File

@@ -4,7 +4,7 @@
<div class="title">查询条件</div>
<el-form :model="queryParams" ref="queryRef" :inline="true" :rules="rules" label-width="100px">
<el-form-item label="储蓄账户" style="width: 480px" prop="id">
<el-select v-model="queryParams.id" placeholder="请选择储蓄账户" clearable>
<el-select v-model="queryParams.id" placeholder="请选择储蓄账户" @change="handleChange" clearable>
<el-option v-for="account in accountsList" :key="account.id" :label="account.nameCodeAvailableLimit" :value="account.id" />
</el-select>
</el-form-item>
@@ -276,6 +276,10 @@ const data = reactive({
})
const { queryParams, queryAcccountsParams, rules } = toRefs(data)
const handleChange = (id) => {
queryParams.value.id = id
getList()
}
const today = new Date()
const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2)
const start = dayjs(end).add(-7, 'day')