From d70887fef0dfb30f7af94975c3ae98bbb6bcfe12 Mon Sep 17 00:00:00 2001 From: zwq Date: Thu, 21 Mar 2024 13:43:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=90=E6=9C=ACbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cost/energyCostHis/index.vue | 9 +++++++++ src/views/cost/rawMaterialCostHis/index.vue | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/views/cost/energyCostHis/index.vue b/src/views/cost/energyCostHis/index.vue index 685896ac..44287284 100644 --- a/src/views/cost/energyCostHis/index.vue +++ b/src/views/cost/energyCostHis/index.vue @@ -111,6 +111,7 @@ export default { startPlaceholder: '开始时间', endPlaceholder: '结束时间', param: 'searchTime', + defaultSelect: [], }, { type: 'button', @@ -132,6 +133,14 @@ export default { }, components: {}, created() { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); + this.formConfig[2].defaultSelect = [start, end]; + this.listQuery.reportTime = [ + moment(start).startOf('day').format('x'), + moment(end).endOf('day').format('x'), + ]; getEnergyTypeListAll().then((response) => { this.formConfig[1].selectOptions = response.data; }); diff --git a/src/views/cost/rawMaterialCostHis/index.vue b/src/views/cost/rawMaterialCostHis/index.vue index 2e22c970..05636063 100644 --- a/src/views/cost/rawMaterialCostHis/index.vue +++ b/src/views/cost/rawMaterialCostHis/index.vue @@ -110,6 +110,7 @@ export default { startPlaceholder: '开始时间', endPlaceholder: '结束时间', param: 'searchTime', + defaultSelect: [], }, { type: 'button', @@ -131,6 +132,14 @@ export default { }, components: {}, created() { + const end = new Date(); + const start = new Date(); + start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); + this.formConfig[2].defaultSelect = [start, end]; + this.listQuery.times = [ + moment(start).startOf('day').format('x'), + moment(end).endOf('day').format('x'), + ]; getHotMaterialList().then((response) => { this.formConfig[1].selectOptions = response.data; }); From f7aa5375d0ce6437e6ed160b28e6ea06ea50e697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Thu, 21 Mar 2024 16:34:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 4 +- .../OperationalOverview/processingBoard.vue | 130 ++++++++++-------- .../base/qualityHotMaterial/add-or-updata.vue | 53 +++---- .../quality/base/qualityHotMaterial/index.vue | 1 + src/views/quality/base/qualityIsra/index.vue | 32 +++-- .../quality/base/qualityScrapDet/index.vue | 2 + .../quality/base/qualityScrapLog/index.vue | 2 + .../monitoring/deviceParameters/index.vue | 39 +++--- .../equipmentTraceability/index.vue | 125 +++++++---------- .../monitoring/materielDateFrom/index.vue | 9 +- .../monitoring/originalGlassRetrace/index.vue | 12 +- .../monitoring/statisticalData/index.vue | 6 +- 12 files changed, 220 insertions(+), 195 deletions(-) diff --git a/.env.dev b/.env.dev index 34598f0d..2f3ffe42 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2024-03-13 14:57:16 + # @LastEditTime: 2024-03-21 14:45:52 # @LastEditors: zhp # @Description: ### @@ -25,7 +25,7 @@ VUE_APP_BASE_API = 'http://192.168.0.33:48082' # VUE_APP_BASE_API = 'http://192.168.1.78:48082' # VUE_APP_BASE_API = 'http://192.168.1.47:48082' # socket地址 -VUE_APP_Socket_API = 'ws://192.168.0.30:8888' +VUE_APP_Socket_API = 'ws://192.168.0.33:48082' VUE_APP_Socket_Dcs_API = 'ws://10.70.180.10:8081' # 积木报表指向地址 diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index d2f23723..dcf702b4 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-03-12 09:34:06 + * @LastEditTime: 2024-03-21 16:07:39 * @Description: -->