diff --git a/public/VideoWeb/index.html b/public/VideoWeb/index.html index 11625e11..8e7629a3 100644 --- a/public/VideoWeb/index.html +++ b/public/VideoWeb/index.html @@ -152,9 +152,9 @@ //传触发数据 function getChuFa(string){ // console.log("string",string) - // if(unity!=null){ + if(unity!=null){ unity.SendMessage('AAA', 'SendJT_JianCeQi', string); - // } + } } //获取图形数据 function getfigureData(string,string1,string2){ diff --git a/src/views/index.vue b/src/views/index.vue index 1841fdb5..7098553b 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -28,7 +28,7 @@ - + @@ -368,19 +368,9 @@ export default { loadingShow1: true, number:'', componentId:'', - analysisConfigurationdata:{} - // carInfo: [], //小车信息 - // carName: '', - // palletizerInfo: [], //码垛机信息 - // palletizerName: '', - // destackerInfo: [], //拆垛机信息 - // destackerName: '', - // hoistInfo: [], //提升机信息’ - // hoistName: '', - // battaryStationInfo: [],//快换电池装置 - // battaryStationName: "", - // conveyorInfo: [], //输送机信息 - // conveyorName: "", + analysisConfigurationdata:{}, + //触发数据 + triggerData:'' }; }, @@ -396,7 +386,7 @@ destroyed: function () { // window.getModifyTheName = this.getModifyTheNameN; window.getSingleComponentId = this.getSingleComponentIdN; window.getSimulationAreaEdit = this.getSimulationAreaEdit; - window.OnScene = this.OnSceneN; + window.OnScene = this.OnSceneN; this.getAllSectionalData(this.$route.query.id) this.VideoId = this.$route.query.id this.number = this.$route.query.num @@ -505,6 +495,8 @@ destroyed: function () { // console.log("temp",temp) var detId = [] const msgN = JSON.parse(temp) + // console.log("msgN",msgN) + this.triggerData = msgN if(temp.length!=0){ for (let i = 0; i < msgN.length; i++) { detId.push(msgN[i].det_id)