This commit is contained in:
chengdandan 2023-02-20 13:41:37 +08:00
parent c51b5056c7
commit 6c20b5aad3
6 changed files with 13 additions and 7 deletions

View File

@ -261,6 +261,12 @@
window.parent.delSuccess()
}
}
//新增获取颜色
function addColor(){
if(unity!=null){
unity.SendMessage("GameManager",'Unity_AllGraphicsNotified','');
}
}
document.body.appendChild(script);

View File

@ -1,7 +1,7 @@
<template>
<div class="content-box">
<!-- v-if="videoTypeShow" -->
<div class="videoTypeBox" >
<div class="videoTypeBox" v-if="videoTypeShow">
<el-form :inline="true" :model="videoTypeForm" class="demo-form-inline" >
<el-form-item label="视频源类型:" >
<el-radio-group v-model="videoTypeForm.videoType">
@ -648,7 +648,7 @@ destroyed: function () {
}
.videoTypeBox{
background: #fff;
width: 98%;
/* width: 98%; */
margin-left: 1%;
display: flex;
padding-top: 20px;

View File

@ -501,6 +501,7 @@ export default {
message: res.data.msg,
type: 'success'
});
document.getElementById('mapModule').contentWindow.addColor()
}else{
this.$message({
message: res.data.msg,
@ -645,8 +646,8 @@ export default {
this.ipData = "http://"+ip.split(":")[0]+':5000'
// document.getElementById('mapModule').contentWindow.getIpData(this.ipData);
document.getElementById('mapModule').contentWindow.getIpData('http://172.16.1.168:5000');
document.getElementById('mapModule').contentWindow.postVideoId(JSON.stringify(this.$route.query.id));
document.getElementById('mapModule').contentWindow.lixianVideo(JSON.stringify(this.analysis));
// document.getElementById('mapModule').contentWindow.lixianVideo(JSON.stringify(this.analysis));
document.getElementById('mapModule').contentWindow.postVideoId(JSON.stringify(this.$route.query.id+ ',' +this.$route.query.type));
},
//
delSuccess(){
@ -952,11 +953,10 @@ export default {
// }, 3000);
document.getElementById('mapModule').contentWindow.postFigureId(JSON.stringify(res.data.data));
document
.getElementById('mapModule')
.contentWindow.postFigureName(
document.getElementById('mapModule').contentWindow.postFigureName(
JSON.stringify(res.data.data + ',' + form.name + ',' + this.startFigureName + ',' + this.numberNew)
);
this.dialogFormVisible = false;
} else {
this.$message({