From 60bca9c2a5bde22e412b554c9b09f3aed532fae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=90=8C?= <525441437@qq.com> Date: Tue, 5 Mar 2024 16:42:50 +0800 Subject: [PATCH 1/2] 1 --- src/views/page/dataAnalysis.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/views/page/dataAnalysis.vue b/src/views/page/dataAnalysis.vue index 026f545..db35c55 100644 --- a/src/views/page/dataAnalysis.vue +++ b/src/views/page/dataAnalysis.vue @@ -100,6 +100,23 @@ export default { }, 0); }, + yesterdayTime() { + // 获取当前日期 + var today = new Date(); + + // 获取昨天的日期 + var yesterday = new Date(today); + yesterday.setDate(today.getDate() - 1); + + // 设置时间为00:00 + yesterday.setHours(0, 0, 0, 0); + var start = yesterday.toISOString(); + + // 设置时间为23:59 + yesterday.setHours(23, 59, 59, 999); + var end = yesterday.toISOString(); + this.dateRange = [start, end] + }, getData() { var store = this.$store.state var index = store.equipmentIndex; From 7a684e3d7352583ff181ac1bb38e1510524ca6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=90=8C?= <525441437@qq.com> Date: Tue, 5 Mar 2024 17:38:54 +0800 Subject: [PATCH 2/2] 1 --- src/components/setParamsControl.vue | 2 +- src/views/page/intrinsicParameter.vue | 4 ++++ src/views/page/sunroofControl.vue | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/setParamsControl.vue b/src/components/setParamsControl.vue index 2e0f3c0..4c38a89 100644 --- a/src/components/setParamsControl.vue +++ b/src/components/setParamsControl.vue @@ -171,7 +171,7 @@ export default { if (!this.routerList.some(item => item.router === "electromagneticControl")) { this.routerList.push({ id: el.id, sort: el.sort, - name: el.nickName, + name: '电磁阀', list: [], router: "electromagneticControl" }); diff --git a/src/views/page/intrinsicParameter.vue b/src/views/page/intrinsicParameter.vue index 98c3004..fe2e281 100644 --- a/src/views/page/intrinsicParameter.vue +++ b/src/views/page/intrinsicParameter.vue @@ -290,6 +290,7 @@ 开度基础值: +
@@ -321,6 +322,7 @@ 开度基础值: +
@@ -352,6 +354,7 @@ 开度基础值: +
@@ -383,6 +386,7 @@ 开度基础值: +
diff --git a/src/views/page/sunroofControl.vue b/src/views/page/sunroofControl.vue index 1cafe1c..e7c69d6 100644 --- a/src/views/page/sunroofControl.vue +++ b/src/views/page/sunroofControl.vue @@ -34,13 +34,13 @@
温度控制精度
- +
计算周期
- + 分钟