|
|
|
@ -342,6 +342,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//初始化查询的默认数据
|
|
|
|
|
async initSearchData() {
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const year = now.getFullYear();
|
|
|
|
|
const month = String(now.getMonth() + 1).padStart(2, '0');
|
|
|
|
|
const startDate = `${year}-${month}-01 00:00:00`;
|
|
|
|
|
const startDateTimestamp = new Date(startDate).getTime();
|
|
|
|
|
this.query.years = [startDateTimestamp, startDateTimestamp];
|
|
|
|
|
},
|
|
|
|
|
initData() {
|
|
|
|
|
this.listLoading = true;
|
|
|
|
|