优化重置

This commit is contained in:
hongchao 2025-07-15 18:04:17 +08:00
parent ab68eb9622
commit 692eb73f9b
1 changed files with 4 additions and 0 deletions

View File

@ -345,6 +345,10 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
const end = new Date()
let start = new Date()
start.setFullYear(start.getFullYear() - 1);
this.queryParams.time = [this.format(start), this.format(end)]
this.queryParams.time=[] this.queryParams.time=[]
this.unitId=[] this.unitId=[]
this.projectId=[] this.projectId=[]