| | |
| | | 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, |
| | | }); |
| | |
| | | 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.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, |
| | | // }); |