From 5c3ce1f285e0391b2c783086ec026e51b2743aa2 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Wed, 28 Feb 2024 15:00:04 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/parameterSetDialog.vue | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/src/views/photographicDevice/components/parameterSetDialog.vue b/src/views/photographicDevice/components/parameterSetDialog.vue index 7bd6955..2d3a984 100644 --- a/src/views/photographicDevice/components/parameterSetDialog.vue +++ b/src/views/photographicDevice/components/parameterSetDialog.vue @@ -30,7 +30,7 @@ > {}); }, handleFocus() { - this.deviceTimeForm.newzztime = new Date(); + if ( + this.devicenewtime == "" || + this.devicenewtime == undefined || + this.devicenewtime == null + ) { + this.devicenewtime = new Date(); + console.log(this.devicenewtime); + } }, //装置时间查询 searchTime() { @@ -931,8 +940,12 @@ export default { //设置装置时间: .\bin\xympadmn.exe --server=127.0.0.1 --port=6891 --act=time --cmdid=XY-SIMULATOR-0015 --flag=1 --time=20230101122322 setTime() { if (this.rowData.isonline || this.rowData.onlinestatus === 1) { - console.log(this.deviceTimeForm.newzztime); - if (this.deviceTimeForm.newzztime !== "") { + console.log(this.devicenewtime); + if ( + this.devicenewtime !== "" && + this.devicenewtime !== undefined && + this.devicenewtime !== null + ) { this.timesetLoading = true; let params = [ { @@ -945,7 +958,7 @@ export default { }, { name: "time", - value: this.deviceTimeForm.newzztime, + value: this.devicenewtime / 1000, }, ]; this.setTermFn(params); @@ -1563,12 +1576,10 @@ export default { console.log(JSON.parse(res.data.data)); //时间 console.log(this.tabName); - this.deviceTimeForm = JSON.parse(res.data.data); + //this.devicenewtime = JSON.parse(res.data.data).timestamp * 1000; if (this.tabName == "装置时间") { - this.showLookTime = true; - this.deviceTimeForm.zztime = this.deviceTimeForm.timestamp * 1000; - console.log(this.deviceTimeForm.zztime); - return; + this.devicetime = JSON.parse(res.data.data).timestamp * 1000; + console.log(this.devicetime); } //采集参数 this.samplingForm = JSON.parse(res.data.data); @@ -1705,8 +1716,8 @@ export default { this.isShow = false; this.activeName = "1"; this.tabsActive = "first"; - this.deviceTimeForm = {}; this.samplingForm = {}; + this.upperComputer = {}; this.idParameter = {}; this.gpsForm = {}; From c9a84a7eb3c19e34e23f92bc0f0089d17813cb44 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Thu, 29 Feb 2024 08:54:44 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/realTimeMonitor/components/setAppDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/realTimeMonitor/components/setAppDialog.vue b/src/views/realTimeMonitor/components/setAppDialog.vue index ac8c288..64ba553 100644 --- a/src/views/realTimeMonitor/components/setAppDialog.vue +++ b/src/views/realTimeMonitor/components/setAppDialog.vue @@ -340,7 +340,7 @@ export default { { name: "type13", value: 1 }, //productionDate 生产日期 { name: "name14", value: "productionDate" }, - { name: "value14", value: this.appForm.productionDate }, + { name: "value14", value: this.appForm.productionDate / 1000 }, { name: "type14", value: 0 }, //心跳周期 { name: "name15", value: "heartbeat" }, @@ -505,7 +505,7 @@ export default { this.appForm.model = resultContent.model; // 装置型号 this.appForm.equipName = resultContent.equipName; // 装置名称 this.appForm.bsManufacturer = resultContent.bsManufacturer; // 生产厂家 - this.appForm.productionDate = resultContent.productionDate; // 生产日期 + this.appForm.productionDate = resultContent.productionDate * 1000; // 生产日期 this.$message({ duration: 1500, showClose: true, From c2797030dced4a178dbcacac0b3a03cf12136198 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Thu, 29 Feb 2024 14:46:18 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/realTimeMonitor/components/carouselChart.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/realTimeMonitor/components/carouselChart.vue b/src/views/realTimeMonitor/components/carouselChart.vue index 295d3a3..05e1932 100644 --- a/src/views/realTimeMonitor/components/carouselChart.vue +++ b/src/views/realTimeMonitor/components/carouselChart.vue @@ -1,7 +1,7 @@