修改cctv无贴图配置
This commit is contained in:
parent
7d8f4e6de2
commit
2cbe94a16d
@ -432,18 +432,20 @@ export function Jl3dpassflow(dom,skinCode,routegroup) {
|
||||
|
||||
|
||||
getPublish3dMapDetail(skinCode).then(netdata3d => {
|
||||
if(netdata3d.data){
|
||||
Materialload(scope,JSON.parse(netdata3d.data.assets));
|
||||
|
||||
Materialload(scope,JSON.parse(netdata3d.data.assets));
|
||||
}
|
||||
getPublishMapDetail(skinCode).then(netdata => {
|
||||
scope.switchviews(4);
|
||||
inithumans();
|
||||
initstationlist(netdata.data.stationList,netdata.data.stationStandList,netdata.data.psdList);
|
||||
socktest = new PassflowConnect(scope,deviceaction,toptrain,downtrain,routegroup);
|
||||
loadingInstance.close();
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
loadingInstance.close();
|
||||
animate();
|
||||
})
|
||||
|
||||
@ -479,8 +481,10 @@ export function Jl3dpassflow(dom,skinCode,routegroup) {
|
||||
if(stationlist[i].name == stationname){
|
||||
scope.nowstation = stationlist[i];
|
||||
scope.resetscene();
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map = scope.stationtexture[scope.nowstation.code];
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map.needsUpdate = true;
|
||||
if(scope.stationtexture["stationlist"]){
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map = scope.stationtexture[scope.nowstation.code];
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map.needsUpdate = true;
|
||||
}
|
||||
i=leni;
|
||||
}
|
||||
}
|
||||
@ -1035,7 +1039,7 @@ export function Jl3dpassflow(dom,skinCode,routegroup) {
|
||||
// console.log(humanlist.children.length);
|
||||
}
|
||||
function initstationlist(stationdata,standdata,psddata){
|
||||
|
||||
|
||||
let list = [];
|
||||
if(psddata){
|
||||
for(let i=0,leni = standdata.length;i<leni;i++){
|
||||
@ -1082,14 +1086,18 @@ export function Jl3dpassflow(dom,skinCode,routegroup) {
|
||||
}
|
||||
|
||||
scope.nowstation = stationlist[0];
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantailiebiao").material.map =scope.stationtexture["stationlist"];
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantailiebiao").material.map.needsUpdate = true;
|
||||
if(scope.modelmanager.station.mesh.getObjectByName("menkuangyanse")){
|
||||
scope.modelmanager.station.mesh.getObjectByName("menkuangyanse").material.map =scope.stationtexture["pingbimen"];
|
||||
scope.modelmanager.station.mesh.getObjectByName("menkuangyanse").material.map.needsUpdate = true;
|
||||
console.log(scope.stationtexture);
|
||||
if(scope.stationtexture["stationlist"]){
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantailiebiao").material.map =scope.stationtexture["stationlist"];
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantailiebiao").material.map.needsUpdate = true;
|
||||
if(scope.modelmanager.station.mesh.getObjectByName("menkuangyanse")){
|
||||
scope.modelmanager.station.mesh.getObjectByName("menkuangyanse").material.map =scope.stationtexture["pingbimen"];
|
||||
scope.modelmanager.station.mesh.getObjectByName("menkuangyanse").material.map.needsUpdate = true;
|
||||
}
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map = scope.stationtexture[scope.nowstation.code];
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map.needsUpdate = true;
|
||||
|
||||
}
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map = scope.stationtexture[scope.nowstation.code];
|
||||
scope.modelmanager.station.mesh.getObjectByName("zhantaiming").material.map.needsUpdate = true;
|
||||
|
||||
updatestationlist(stationlist);
|
||||
}else{
|
||||
|
@ -27,7 +27,7 @@
|
||||
</div>
|
||||
<div class="menudown">
|
||||
<el-button-group>
|
||||
<el-button type="primary" @click="back">退出</el-button>
|
||||
<el-button v-show="isCctv" type="primary" @click="back">退出</el-button>
|
||||
</el-button-group>
|
||||
</div>
|
||||
</div>
|
||||
@ -50,6 +50,7 @@ export default {
|
||||
renderswitch:false,
|
||||
stationlist:[],
|
||||
value:"",
|
||||
isCctv:true,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -66,7 +67,9 @@ export default {
|
||||
mounted() {
|
||||
this.init();
|
||||
window.updatestationlist = this.updatestationlist;
|
||||
|
||||
if(this.$route.query.type == "CCTV"){
|
||||
this.isCctv = false;
|
||||
}
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
|
Loading…
Reference in New Issue
Block a user