From 1dc6818eca5407a79cca4b3c13a40245db7fb1eb Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 9 Sep 2024 15:12:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/parameterSetDialog.vue | 2 +- .../components/parameterArea.vue | 7 +-- .../components/setAppDialog.vue | 27 +++++++++-- src/views/realTimeSearch/index.vue | 14 ++++-- .../photostatis/components/photoList.vue | 5 +++ src/views/reportData/photostatis/index.vue | 45 +++++++++++++++++++ src/views/system/deviceUpgrade/index.vue | 26 +++++++++++ vue.config.js | 2 +- 8 files changed, 112 insertions(+), 16 deletions(-) diff --git a/src/views/photographicDevice/components/parameterSetDialog.vue b/src/views/photographicDevice/components/parameterSetDialog.vue index e6b7de0..1289b5a 100644 --- a/src/views/photographicDevice/components/parameterSetDialog.vue +++ b/src/views/photographicDevice/components/parameterSetDialog.vue @@ -862,7 +862,7 @@ diff --git a/src/views/realTimeMonitor/components/parameterArea.vue b/src/views/realTimeMonitor/components/parameterArea.vue index 2ab552f..cc2e1cd 100644 --- a/src/views/realTimeMonitor/components/parameterArea.vue +++ b/src/views/realTimeMonitor/components/parameterArea.vue @@ -477,12 +477,7 @@ export default { //历史图片跳转 handlehistoryPic() { console.log(this.areaData); - if (this.areaData.id == "13276") { - // "id": 13009, - // "towerid": 3980, - this.$set(this.areaData, "id", 13009); - this.$set(this.areaData, "towerid", 3980); - } + console.log(this.selectDyId, this.selectLineId, this.selectTowerId); // console.log(this.zzCmdid, this.selectChannelValue); if (typeof this.dateValue == "number") { diff --git a/src/views/realTimeMonitor/components/setAppDialog.vue b/src/views/realTimeMonitor/components/setAppDialog.vue index a6a2d40..ca00854 100644 --- a/src/views/realTimeMonitor/components/setAppDialog.vue +++ b/src/views/realTimeMonitor/components/setAppDialog.vue @@ -108,6 +108,10 @@ label="故障上报" v-model="appForm.reportFault" > + @@ -187,6 +191,7 @@ export default { productionDate: "", // 生产日期 workStatusTimes: 3, reportFault: "", //故障上报 + outputDbgInfo: "", //输出调试信息 }, protocolOptions: [ { @@ -309,7 +314,7 @@ export default { }, { name: "configs", - value: 18, + value: 19, }, //装置通道数 { name: "name1", value: "channels" }, @@ -389,6 +394,9 @@ export default { { name: "name18", value: "reportFault" }, { name: "value18", value: this.appForm.reportFault ? 1 : 0 }, { name: "type18", value: 0 }, + { name: "name19", value: "outputDbgInfo" }, + { name: "value19", value: this.appForm.outputDbgInfo ? 1 : 0 }, + { name: "type19", value: 0 }, ]; this.setTermFn(params); } else { @@ -530,9 +538,13 @@ export default { this.appForm.channels = resultContent.channels; //装置通道数,程序默认值为4 this.appForm.packetSize = resultContent.packetSize; //图像数据分包大小 this.appForm.timeForKeepingLogs = - resultContent.timeForKeepingLogs / 86400; //效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400 + resultContent.timeForKeepingLogs !== undefined + ? resultContent.timeForKeepingLogs / 86400 + : ""; //效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400 this.appForm.timeForKeepingPhotos = - resultContent.timeForKeepingPhotos / 86400; //有效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400 + resultContent.timeForKeepingPhotos !== undefined + ? resultContent.timeForKeepingPhotos / 86400 + : ""; //有效范围:1*86400(含)-45*86400(含) 不设置的默认值为 15*86400 this.appForm.imgQuality = resultContent.imgQuality; //图像质量 this.appForm.heartbeat = resultContent.heartbeat; //心跳周期 this.appForm.upgradePacketBase = resultContent.upgradePacketBase; //升级报文中,子包起始号 一般可设置的值是 0或者1 @@ -547,7 +559,12 @@ export default { this.appForm.bsManufacturer = resultContent.bsManufacturer; // 生产厂家 this.appForm.productionDate = resultContent.productionDate * 1000; // 生产日期 this.appForm.workStatusTimes = resultContent.workStatusTimes; // 生产日期 - this.appForm.reportFault = resultContent.reportFault; // 故障上报 + this.appForm.reportFault = + resultContent.reportFault == 1 ? true : false; // 故障上报 + this.appForm.outputDbgInfo = + resultContent.outputDbgInfo == 1 ? true : false; // 输出调试信息 + console.log(this.appForm.outputDbgInfo); + console.log(resultContent.outputDbgInfo); } else { this.appForm.channels = 4; //装置通道数,程序默认值为4 this.appForm.packetSize = 2048; //图像数据分包大小 @@ -568,6 +585,7 @@ export default { this.appForm.productionDate = ""; // 生产日期 this.appForm.productionDate = 3; // 工作状态报周期 this.appForm.reportFault = ""; // 故障上报 + this.appForm.outputDbgInfo = ""; //输出调试信息 } this.$message({ @@ -622,6 +640,7 @@ export default { this.appForm.productionDate = ""; // 生产日期 this.appForm.productionDate = 3; // 工作状态报周期 this.appForm.reportFault = ""; // 故障上报 + this.appForm.outputDbgInfo = ""; //输出调试信息 window.clearInterval(this.searchTimer); this.searchTimer = null; this.searchNum = 0; diff --git a/src/views/realTimeSearch/index.vue b/src/views/realTimeSearch/index.vue index 1dd1841..d04a35c 100644 --- a/src/views/realTimeSearch/index.vue +++ b/src/views/realTimeSearch/index.vue @@ -121,7 +121,7 @@
+ + + { + // if (from.name == "reportData" && this.picflag == "true") { + // console.log(from.name == "reportData" && this.picflag); + // /* Blocking back button in menu route */ + // console.log(from.name); + // next(false); + // // this.hide(); + // this.$refs.photoDialogref.hide(); + // } else { + // /* allowing all other routes*/ + // next(true); + // } + // }); + + // this.$once("hook:destroyed", () => { + // backButtonRouteGuard(); + // }); }, mounted() { this.getSearchdy(); @@ -344,6 +375,20 @@ export default { if (dateA > dateB) return 1; return 0; }, + sortlastPhotoTime(a, b) { + // 将字符串转换为日期对象,处理 null 值 + const dateA = a.photoInfo.lastPhotoTime + ? new Date(a.photoInfo.lastPhotoTime) + : new Date(0); + const dateB = b.photoInfo.lastPhotoTime + ? new Date(b.photoInfo.lastPhotoTime) + : new Date(0); + + // 比较日期 + if (dateA < dateB) return -1; + if (dateA > dateB) return 1; + return 0; + }, sortfirstTime(a, b) { // 将字符串转换为日期对象,处理 null 值 const dateA = a.photoInfo.firstPhotoTime diff --git a/src/views/system/deviceUpgrade/index.vue b/src/views/system/deviceUpgrade/index.vue index 55bd3ee..9dae55d 100644 --- a/src/views/system/deviceUpgrade/index.vue +++ b/src/views/system/deviceUpgrade/index.vue @@ -67,6 +67,11 @@ > + + +