diff --git a/src/views/modules/monitoring/camera.vue b/src/views/modules/monitoring/camera.vue index 820ade0..48587db 100644 --- a/src/views/modules/monitoring/camera.vue +++ b/src/views/modules/monitoring/camera.vue @@ -68,8 +68,7 @@ :double-click-zoom="false" @zoomend="mouseEvent" :center="{lng: 103.943382, lat: 30.750594 }" - :zoom="zoom" - > + :zoom="zoom"> { - this.mapList = res.data.data; - }); - }, // 新增/修改 addOrUpdateClick(param, row = {}) { console.log(this.$refs.reference); diff --git a/src/views/modules/monitoring/map.vue b/src/views/modules/monitoring/map.vue new file mode 100644 index 0000000..61d30dc --- /dev/null +++ b/src/views/modules/monitoring/map.vue @@ -0,0 +1,126 @@ + + + \ No newline at end of file diff --git a/src/views/modules/monitoring/test.vue b/src/views/modules/monitoring/test.vue index a1ccb3c..f080551 100644 --- a/src/views/modules/monitoring/test.vue +++ b/src/views/modules/monitoring/test.vue @@ -7,16 +7,50 @@ + -
+
+ + + + + + + + + + + + + + + + + + 搜索 + + + + +

经度:{{item.position.lat}}

+

纬度:{{item.position.lng}}

+ +
+
+ + { - this.$refs.addUpdateFaceRef.init(param, row.idFaceCamera); - }); - }, - // 新增/修改回调 - refreshClick(param) { - param === "add" ? (this.pageObj.pageNo = 1) : this.pageObj.pageNo; - this.pageObj.note = { - ...this.pageObj.note, - ...this.formModel - }; - if (this.pageObj.note.cameraName != "") { - this.pageObj.pageNo = 1; - } else if (this.pageObj.note.cameratLocationtypeId != "") { - this.pageObj.pageNo = 1; - } - if (this.pageObj.note.cameraRegion.length === 0) { - this.pageObj.note.cameraRegion = ""; - } else { - this.pageObj.note.cameraRegion = String( - this.pageObj.note.cameraRegion[ - this.pageObj.note.cameraRegion.length - 1 - ] - ); - this.pageObj.pageNo = 1; - } - this.commonSeach(); - }, - // 删除 - deleteClick(row) { - this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", { - confirmButtonText: "确认", - cancelButtonText: "取消", - type: "warning" - }) - .then(() => { - this.$http.get(`/camera/delete/${row.idFaceCamera}`).then(res => { - if (res.data.code === 0) { - this.pageObj.note = { ...this.pageObj.note, ...this.formModel }; - if (this.pageObj.note.cameraName != "") { - this.pageObj.pageNo = 1; - } else if (this.pageObj.note.cameratLocationtypeId != "") { - this.pageObj.pageNo = 1; - } - if (this.pageObj.note.cameraRegion.length === 0) { - this.pageObj.note.cameraRegion = ""; - } else { - this.pageObj.note.cameraRegion = String( - this.pageObj.note.cameraRegion[ - this.pageObj.note.cameraRegion.length - 1 - ] - ); - this.pageObj.pageNo = 1; - } - if (this.cameraList.length === 1 && this.pageObj.pageNo > 1) { - this.pageObj.pageNo = this.pageObj.pageNo - 1; - } - this.commonSeach(); - this.$message.success("删除成功"); - } else { - this.$message.warning(res.data.message); - } - }); - }) - .catch(err => { - this.$message.info("已取消删除"); - console.log(err); - }); - }, - // 公共查询 - commonSeach(pageObj = this.pageObj) { - this.$http.post("/camera/getList", pageObj).then(res => { - if (res.data.code === 0) { - this.cameraList = res.data.data.records; - this.total = Number(res.data.data.total); - } else if (res.data.code == 60001) { - this.$message.warning(res.data.message); - } else { - console.log(res); - } - }); - this.$http.get("/camera/getAllList").then(res => { - this.mapList = res.data.data; - this.mapList.forEach(item => { - item.displayCss = "block"; - }); - }); - } }, created() { - // 公共查询 - this.commonSeach(); - // 调用树形结构数据 - this.$http.get("/camera/getRegion").then(res => { - if (res.data.code === 0) { - this.areaOptions = res.data.data; - } - }); + } };