From 692eb73f9b530eb65d608099a90843ed3f34c49e Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Tue, 15 Jul 2025 18:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=87=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/stquery/deviceUsingRecord.vue | 4 ++++ 1 file changed, 4 insertions(+) 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=[]