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 @@
+ {
+ handleSearchCommand(command, scope.row);
+ }
+ "
+ >
+
+ 数据查询
+
+
+ 基本信息
+ 工作状态
+ 运行状态
+ GPS位置
+
+
+ 参数配置
图片标记
- 装置复位获取GPS位置
+ > -->
- 开启GPS
关闭GPS
-
-
+ 删除 -->
+ >
-
+
图片标记
- 获取GPS位置开启GPS
关闭GPS
-
-
+ 删除 -->
+ >
@@ -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;