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

This commit is contained in:
tianyongbao
2024-10-24 19:14:15 +08:00
parent 2670bf7ff2
commit 05f0b5e770
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="账户类型" prop="type">
<el-select v-model="queryParams.dataType" placeholder="请选择账户类型" clearable>
<el-select v-model="queryParams.dataType" placeholder="请选择账户类型" @change="handleChange" clearable>
<el-option v-for="dict in account_type" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
@@ -151,6 +151,10 @@ const data = reactive({
})
const { queryParams, rules } = toRefs(data)
const handleChange = (id) => {
queryParams.value.dataType = id
getList()
}
const today = new Date()
const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2)
const start = end