feat:增加账单搜索功能
This commit is contained in:
@@ -17,11 +17,26 @@ import { onMounted } from 'vue'
|
||||
import { useBillStore } from '@/store/bill.ts'
|
||||
import { Plus } from '@element-plus/icons-vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { getCurrentMonth, getCurrentYear } from 'vue3-common/utils/dateUtil'
|
||||
|
||||
const billStore = useBillStore()
|
||||
const router = useRouter()
|
||||
|
||||
onMounted(async () => {
|
||||
billStore.billQueryForm = {
|
||||
billBook: 'all',
|
||||
billYear: getCurrentYear(),
|
||||
billMonth: getCurrentMonth()
|
||||
}
|
||||
|
||||
billStore.billSearchForm = {
|
||||
category: '',
|
||||
content: '',
|
||||
location: ''
|
||||
}
|
||||
|
||||
billStore.billType = 'expensive'
|
||||
billStore.billDateType = 'month'
|
||||
await billStore.refreshInfo()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user