Commit a8c8f439 by 李伟康

```

fix(financeManage): 日期范围默认值

- 修正 searchSelectObj 中 divisionOrPayDate 的默认日期范围
- 移除 mounted 钩子中重复的日期设置代码
- 确保日期范围初始化为上个月的数据
```
1 parent d323f776
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
searchSelectObj: { searchSelectObj: {
divisionOrPayDate: { divisionOrPayDate: {
attr: 'monthrange', attr: 'monthrange',
value: [dayjs('2025-05'), dayjs().subtract(1, 'month')] value: [dayjs().subtract(1, 'month'), dayjs().subtract(1, 'month')]
} }
}, },
showFormData: [ showFormData: [
...@@ -250,7 +250,6 @@ export default { ...@@ -250,7 +250,6 @@ export default {
// dayjs().format("YYYY-MM-DD") // dayjs().format("YYYY-MM-DD")
// ] // ]
// this.searchSelectObj.divisionOrPayDate.value = [dayjs(), dayjs()] // this.searchSelectObj.divisionOrPayDate.value = [dayjs(), dayjs()]
this.searchSelectObj.divisionOrPayDate.value = [dayjs().subtract(1, 'month'), dayjs().subtract(1, 'month')]
}, },
mounted () { mounted () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!