| | |
| | | // const getTokenUrl = "http://10.101.5.98:8080/gettoken"; |
| | | |
| | | const videoJS = "config/燕山石化系统功能展示.mp4"; |
| | | const SMvideoJS = "config/系统说明.mp4"; |
| | | //二维热力图半径 |
| | | const radius = 10; |
| | | //报警风场粒子 |
| | |
| | | backgroundy: "ycy.png", |
| | | name: "预测分析", |
| | | child: [ |
| | | // { |
| | | // id: "b2", |
| | | // num: 21, |
| | | // isActive: true, |
| | | // name: "超标点预测", |
| | | // }, |
| | | { |
| | | id: "b2", |
| | | num: 21, |
| | | id: "b3", |
| | | num: 22, |
| | | isActive: true, |
| | | name: "超标点预测", |
| | | }, |
| | | { |
| | | id: "b3", |
| | | num: 22, |
| | | id: "b4", |
| | | num: 23, |
| | | isActive: true, |
| | | name: "污染物扩散趋势", |
| | | }, |
| | |
| | | isActive: true, |
| | | name: "操作文档", |
| | | }, |
| | | { |
| | | id: "e5", |
| | | num: 54, |
| | | isActive: true, |
| | | name: "系统说明", |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | |
| | | heading: -90, |
| | | }); |
| | | break; |
| | | |
| | | case "b4": //污染物扩散趋势 |
| | | window.sgworld.Core.postMessage({ TypeG1: "Start" }); |
| | | window.sgworld.Navigate.flyToPosition(115.95108, 39.7411754, 7200, { |
| | | heading: -90, |
| | | }); |
| | | break; |
| | | case "c2": //预警信息 |
| | | break; |
| | | case "c3": //报警信息 |
| | |
| | | break; |
| | | case "b3": //污染物扩散趋势清除 |
| | | window.sgworld.Core.postMessage({ TypeG1: "Delete" }); |
| | | break; |
| | | case "b4": //污染物扩散趋势清除 |
| | | window.sgworld.Core.postMessage({ TypeG1: "End" }); |
| | | break; |
| | | case "c1": //预警信息清除报警信息清除 |
| | | this.closePoi(); |
| | |
| | | this.closePoi(); |
| | | this.YJlist.forEach((e) => { |
| | | let ids = window.sgworld.Core.createRandomId(); |
| | | this.createPoi(e, "img/yjd.png", ids, "locationName", "WY", -25); |
| | | this.createPoi(e, "img/yjd.png", ids, "name", "WY", -25); |
| | | this.YJpoi.push(ids); |
| | | }); |
| | | }, |
| | |
| | | this.closePoi(); |
| | | this.BJlist.forEach((e) => { |
| | | let ids = window.sgworld.Core.createRandomId(); |
| | | this.createPoi(e, "img/bjd.png", ids, "locationName", "WY", -25); |
| | | this.createPoi(e, "img/bjd.png", ids, "name", "WY", -25); |
| | | this.BJpoi.push(ids); |
| | | }); |
| | | }, |
| | |
| | | sgworld.Core.postMessage( |
| | | `Type=wuranwu;Bool=true;Type2=zidingyi;Yearstart=${day[0]};Mouthstart=${day[1]};Daystart=${day[2]};Hourend=${Hour};Alpha=0.03;Speed=0.5;` |
| | | ); |
| | | // console.log( |
| | | // `Type=wuranwu;Bool=true;Type2=zidingyi;Yearstart=${day[0]};Mouthstart=${day[1]};Daystart=${day[2]};Hourend=${Hour};Alpha=0.03;Speed=0.5;` |
| | | // ); |
| | | } |
| | | }, |
| | | async bjthis(time) { |
| | |
| | | |
| | | var obj = {}; |
| | | this.BJlist = dt.result.reduce(function (item, next) { |
| | | obj[next.locationName] |
| | | ? "" |
| | | : (obj[next.locationName] = true && item.push(next)); |
| | | obj[next.name] ? "" : (obj[next.name] = true && item.push(next)); |
| | | return item; |
| | | }, []); |
| | | |
| | |
| | | // }); |
| | | var obj = {}; |
| | | this.YJlist = dt1.result.reduce(function (item, next) { |
| | | obj[next.locationName] |
| | | ? "" |
| | | : (obj[next.locationName] = true && item.push(next)); |
| | | obj[next.name] ? "" : (obj[next.name] = true && item.push(next)); |
| | | return item; |
| | | }, []); |
| | | |
| | | // this.YJtext = `${this.YJlist.length}条预警信息`; |
| | | store.commit("getYJtext", this.YJlist); |
| | | this.createYJpoi(); |
| | |
| | | </div> |
| | | </div> |
| | | </transition> |
| | | <div class="video_box" v-show="checkMenuFlag == 'e3'"> |
| | | <div |
| | | class="video_box" |
| | | v-show="checkMenuFlag == 'e3' || checkMenuFlag == 'e5'" |
| | | > |
| | | <video |
| | | :src="videoUrl" |
| | | controls="controls" |
| | |
| | | }config/燕山石化系统功能操作文档.pdf` |
| | | ); |
| | | } |
| | | if (res.id == "e3") { |
| | | videoUrl.value = window.location.href.split("#")[0] + videoJS; |
| | | } |
| | | if (res.id == "e5") { |
| | | videoUrl.value = window.location.href.split("#")[0] + SMvideoJS; |
| | | } |
| | | }; |
| | | |
| | | const toggleFK = (params) => { |