增加默认查询时间

This commit is contained in:
bb_pan 2025-07-17 19:47:02 +08:00
parent 8c7b7199ac
commit 99b23755ff
6 changed files with 6 additions and 6 deletions

View File

@ -159,11 +159,11 @@
}; };
}, },
created() { created() {
this.getList();
const end = new Date() const end = new Date()
let start = new Date() let start = new Date()
start.setMonth(start.getMonth() - 2) start.setMonth(start.getMonth() - 2)
this.dateRange = [this.format(start), this.format(end)] this.dateRange = [this.format(start), this.format(end)]
this.getList()
}, },
methods: { methods: {
format(date) { format(date) {

View File

@ -372,11 +372,11 @@
}; };
}, },
created() { created() {
this.getList();
const end = new Date() const end = new Date()
let start = new Date() let start = new Date()
start.setMonth(start.getMonth() - 2) start.setMonth(start.getMonth() - 2)
this.dateRange = [this.format(start), this.format(end)] this.dateRange = [this.format(start), this.format(end)]
this.getList()
}, },
methods: { methods: {
format(date) { format(date) {

View File

@ -163,11 +163,11 @@
}; };
}, },
created() { created() {
this.getList();
const end = new Date() const end = new Date()
let start = new Date() let start = new Date()
start.setMonth(start.getMonth() - 2) start.setMonth(start.getMonth() - 2)
this.dateRange = [this.format(start), this.format(end)] this.dateRange = [this.format(start), this.format(end)]
this.getList()
}, },
methods: { methods: {
format(date) { format(date) {

View File

@ -163,11 +163,11 @@
}; };
}, },
created() { created() {
this.getList();
const end = new Date() const end = new Date()
let start = new Date() let start = new Date()
start.setMonth(start.getMonth() - 2) start.setMonth(start.getMonth() - 2)
this.dateRange = [this.format(start), this.format(end)] this.dateRange = [this.format(start), this.format(end)]
this.getList()
}, },
methods: { methods: {
format(date) { format(date) {

View File

@ -180,11 +180,11 @@ export default {
} }
}, },
created() { created() {
this.getList()
const end = new Date() const end = new Date()
let start = new Date() let start = new Date()
start.setMonth(start.getMonth() - 2) start.setMonth(start.getMonth() - 2)
this.dateRange = [this.format(start), this.format(end)] this.dateRange = [this.format(start), this.format(end)]
this.getList()
}, },
methods: { methods: {
format(date) { format(date) {

View File

@ -159,11 +159,11 @@
}; };
}, },
created() { created() {
this.getList()
const end = new Date() const end = new Date()
let start = new Date() let start = new Date()
start.setMonth(start.getMonth() - 2) start.setMonth(start.getMonth() - 2)
this.dateRange = [this.format(start), this.format(end)] this.dateRange = [this.format(start), this.format(end)]
this.getList()
}, },
methods: { methods: {
format(date) { format(date) {