diff --git a/src/views/material/stquery/deviceUsingRecord.vue b/src/views/material/stquery/deviceUsingRecord.vue index bf76e252..239c8942 100644 --- a/src/views/material/stquery/deviceUsingRecord.vue +++ b/src/views/material/stquery/deviceUsingRecord.vue @@ -345,6 +345,10 @@ export default { }, /** 重置按钮操作 */ 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.unitId=[] this.projectId=[]