From 0997c6e2c7c2864d5a652fb041a60f9e1d71de5d Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Mon, 3 Jul 2023 14:47:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../photographicDevice/index.vue | 154 +++++------------- 1 file changed, 42 insertions(+), 112 deletions(-) diff --git a/src/views/management/monitoringEquipment/photographicDevice/index.vue b/src/views/management/monitoringEquipment/photographicDevice/index.vue index 05030e4..75d78a0 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/index.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/index.vue @@ -233,10 +233,38 @@ - + @@ -499,6 +527,7 @@ export default { this.getSearchdy(); this.page = 1; this.pageSize = 20; + this.terminalList(); }, ////获取拍照装置列表数据 @@ -546,105 +575,6 @@ export default { this.$refs.addPhotoDialogref.getdataform(data); console.log(data); }, - //装置复位 - handleDeviceReset(data) { - this.$confirm("此操作将复位装置, 是否继续?", "提示", { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - }) - .then(() => { - resetTerminalApi({ cmId: data.cmdId }) - .then((res) => { - if (res.code == 200) { - this.$message({ - duration: 1500, - showClose: true, - message: "装置已复位", - type: "success", - }); - } else { - this.$message({ - duration: 1500, - showClose: true, - message: res.msg, - type: "error", - }); - } - }) - .catch((err) => {}); - }) - .catch(() => { - // this.$message({ - // duration: 1500, - // showClose: true, - // type: "info", - // message: "已取消删除", - // }); - }); - }, - //获取GPS位置 - handleShowGPS(data) { - // this.$refs.gpsdialog_ref.display(); - // this.$refs.gpsdialog_ref.getgpsData(data); - this.$refs.gpsdialog_ref.display(data); - this.$refs.gpsdialog_ref.getgpssql(); - console.log(data); - }, - - //切换gps开启关闭 - changeGPS(val, row) { - console.log(val, row); - setTermGPSJoggle({ gpsstatus: val, cmdId: row.cmdId }) - .then((res) => { - console.log(res); - if (val == 0) { - this.$message({ - duration: 1500, - message: "关闭GPS", - type: "success", - showClose: true, - }); - } else { - this.$message({ - duration: 1500, - message: "成功开启GPS", - type: "success", - showClose: true, - }); - } - }) - .catch((err) => { - console.log(err); //代码错误、请求失败捕获 - }); - }, - handleCommand(command, row) { - console.log(command, row); - switch (command) { - case "open": //开启 - this.changeGPS(1, row); - break; - case "close": //关闭 - this.changeGPS(0, row); - break; - } - }, - // - // gpsChange(val) { - // console.log(val); - // }, - //图像采集参数 - handleImageCapture(data) { - this.$refs.imageCaptureref.display(); - this.$refs.imageCaptureref.getSingleAccess(data); - this.$refs.imageCaptureref.getRatio(); - }, - //视频采集参数 - handleVideoCapture(data) { - this.$refs.videoCaptureref.display(); - this.$refs.videoCaptureref.getSingleAccess(data); - this.$refs.videoCaptureref.getRatio(); - }, //线缆绘制 handlepicture(data) { @@ -779,7 +709,7 @@ export default { } .dropgps { color: @color-primary; - margin-left: 16px; + // margin-left: 16px; // margin-right: 16px; cursor: pointer; font-size: 12px;