| | |
| | | <i class="yj" v-if="row.dxzt == '2' "></i> |
| | | <i class="gz" v-if="row.dxzt == '3' "></i> |
| | | </el-tag> |
| | | |
| | | |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="type"> |
| | |
| | | if(data.records[i].dtype=="" || data.records[i].dtype==0){ |
| | | data.records[i].dxzt = 1; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].init("equipment", {x: row.jd, y: row.wd}); |
| | | window.frames[1].init("equipment", {x: row.jd, y: row.wd}); |
| | | }; |
| | | }) |
| | | },rightClick(row, event) { |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].init("equipment", {x: row.jd, y: row.wd}); |
| | | window.frames[1].init("equipment", {x: row.jd, y: row.wd}); |
| | | }; |
| | | }) |
| | | }, |
| | |
| | | this.startEcharts01(); |
| | | }, |
| | | getMap() { |
| | | window.frames[0].init("DetailMap", { |
| | | window.frames[1].init("DetailMap", { |
| | | x: this.a.jd, |
| | | y: this.a.wd, |
| | | }); |
| | |
| | | // this.doEvents(); |
| | | // var timel = setTimeout(() => { |
| | | this.$refs.detailMap.onload = () => { |
| | | // window.frames[0].init("DetailMap", { |
| | | // window.frames[1].init("DetailMap", { |
| | | // x: this.a.jd, |
| | | // y: this.a.wd, |
| | | // }); |
| | | if (window.frames[0].init) { |
| | | if (window.frames[1].init) { |
| | | this.getMap(); |
| | | } else { |
| | | // this.re(); |
| | | console.log(`没有找到到window.frames[0].init`); |
| | | console.log(`没有找到到window.frames[1].init`); |
| | | } |
| | | }; |
| | | }, |
| | |
| | | |
| | | mounted() { |
| | | this.$refs.DistributionMapDiv.onload = () => { |
| | | window.frames[0].init("AlertSecurity", { |
| | | window.frames[1].init("AlertSecurity", { |
| | | x: this.form.jd, |
| | | y: this.form.wd, |
| | | }); |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].init("ClientManagement", {x: row.jd, y: row.wd}); |
| | | window.frames[1].init("ClientManagement", {x: row.jd, y: row.wd}); |
| | | }; |
| | | }); |
| | | }, |
| | |
| | | this.getAudios(); |
| | | this.getImgAndVideo(); |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].init("AlertSecurity", { |
| | | window.frames[1].init("AlertSecurity", { |
| | | x: this.form.jd, |
| | | y: this.form.wd, |
| | | }); |
| | |
| | | </el-drawer> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import { getList, remove, update, add, getclient } from "@/api/real/real"; |
| | | import { mapGetters } from "vuex"; |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].init("ClientManagement", { x: row.jd, y: row.wd }); |
| | | window.frames[1].init("ClientManagement", { x: row.jd, y: row.wd }); |
| | | }; |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style> |
| | | .el-card__body .waringTypeClass { |
| | | width: 12%; |
| | |
| | | .tabFontSize { |
| | | font-size: 15px; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | } |
| | | this.showMap=true; |
| | | this.$refs.securityMap.onload = () => { |
| | | if (window.frames[0].init) { |
| | | if (window.frames[1].init) { |
| | | if(row.jd=="" || row.jd=="0.0"){ |
| | | //如果处警员无位置信息,则赋值一个默认数据,否则地图无法加载 |
| | | window.frames[0].init("SecurityMap", { |
| | | window.frames[1].init("SecurityMap", { |
| | | x: rwjd, |
| | | y: rwwd, |
| | | code:row.code |
| | | }); |
| | | }else{ |
| | | window.frames[0].init("SecurityMap", { |
| | | window.frames[1].init("SecurityMap", { |
| | | x: row.jd, |
| | | y: row.wd, |
| | | code:row.code |
| | | }); |
| | | } |
| | | |
| | | |
| | | } else { |
| | | console.log(`没有找到到window.frames[0].init`) |
| | | console.log(`没有找到到window.frames[1].init`) |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | mounted() { |
| | | // this.$refs.supervisoryMap.onload = () => { |
| | | // window.frames[0].init("AlertSecurity", { |
| | | // window.frames[1].init("AlertSecurity", { |
| | | // x: this.form.jd, |
| | | // y: this.form.wd, |
| | | // }); |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | </style> |