修改三维编辑器
This commit is contained in:
parent
eff2657d08
commit
27d4c93775
@ -1,6 +1,6 @@
|
|||||||
# just a flag
|
# just a flag
|
||||||
NODE_ENV = 'development'
|
NODE_ENV = 'development'
|
||||||
# VUE_APP_PRO = 'local'
|
VUE_APP_PRO = 'local'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
|
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
|
||||||
|
@ -18,6 +18,7 @@ export function Jlmap3ddata(mapid,scope){
|
|||||||
let editmapid = mapid;
|
let editmapid = mapid;
|
||||||
let scene = scope.scene;
|
let scene = scope.scene;
|
||||||
let jlmap3ddata = scope.mapdata;
|
let jlmap3ddata = scope.mapdata;
|
||||||
|
let jlmap3dasset = scope.assetManager;
|
||||||
let assetloader = scope.assetloader;
|
let assetloader = scope.assetloader;
|
||||||
let loadingInstance = Loading.service({ fullscreen: true });
|
let loadingInstance = Loading.service({ fullscreen: true });
|
||||||
get3dMapData(editmapid).then(data => {
|
get3dMapData(editmapid).then(data => {
|
||||||
@ -120,7 +121,8 @@ export function Jlmap3ddata(mapid,scope){
|
|||||||
let switchdata = JSON.parse(netdata.switchs);
|
let switchdata = JSON.parse(netdata.switchs);
|
||||||
let signaldata = JSON.parse(netdata.signals);
|
let signaldata = JSON.parse(netdata.signals);
|
||||||
let standsdata = JSON.parse(netdata.stands);
|
let standsdata = JSON.parse(netdata.stands);
|
||||||
// console.log(mapdata);
|
jlmap3dasset = JSON.parse(netdata.assets);
|
||||||
|
console.log(jlmap3dasset);
|
||||||
assetloader.setmodellistnew(netdata.assets,5);
|
assetloader.setmodellistnew(netdata.assets,5);
|
||||||
assetloader.assetpromise(scene)
|
assetloader.assetpromise(scene)
|
||||||
.then(function(data){
|
.then(function(data){
|
||||||
|
@ -95,7 +95,7 @@ export function JLmap3dEdit(dom, data, mapid) {
|
|||||||
raillist:null,
|
raillist:null,
|
||||||
path:[]
|
path:[]
|
||||||
};
|
};
|
||||||
|
this.assetManager = null;
|
||||||
Jlmap3ddata(mapid,scope);
|
Jlmap3ddata(mapid,scope);
|
||||||
|
|
||||||
let scalControls = new THREE.ScalControls(scope.scene,scope.camera, scope.renderer.domElement );
|
let scalControls = new THREE.ScalControls(scope.scene,scope.camera, scope.renderer.domElement );
|
||||||
|
@ -2,9 +2,9 @@ export function getBaseUrl() {
|
|||||||
let BASE_API;
|
let BASE_API;
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// BASE_API = 'https://joylink.club/jlcloud';
|
// BASE_API = 'https://joylink.club/jlcloud';
|
||||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||||
BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||||
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
||||||
// BASE_API = 'http://b29z135112.zicp.vip';
|
// BASE_API = 'http://b29z135112.zicp.vip';
|
||||||
|
@ -47,10 +47,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
//
|
|
||||||
// import { sendSimulationCommand,getSimulationTrainlist,getSimulationTrainlistNew,getSimulationMember, getSimulationMemberNew,bindSimulationTrain,trainSimulationEb,trainSimulationForce,trainSimulationGear} from '@/api/simulation.js';
|
|
||||||
// import { creatSubscribe, clearSubscribe, SocketStatusMap } from '@/utils/subscribe.js';
|
|
||||||
// import { hideLoading } from '@/utils/loading.js';
|
|
||||||
import CentercPane from '@/views/jlmap3d/drive/drivecontrol/centerpane';
|
import CentercPane from '@/views/jlmap3d/drive/drivecontrol/centerpane';
|
||||||
import LeftPane from '@/views/jlmap3d/drive/drivecontrol/leftpane';
|
import LeftPane from '@/views/jlmap3d/drive/drivecontrol/leftpane';
|
||||||
import RightPane from '@/views/jlmap3d/drive/drivecontrol/rightpane';
|
import RightPane from '@/views/jlmap3d/drive/drivecontrol/rightpane';
|
||||||
|
@ -227,8 +227,8 @@ export default {
|
|||||||
driverAssetList:driverListConfig,
|
driverAssetList:driverListConfig,
|
||||||
sceneAssetList:sceneListConfig,
|
sceneAssetList:sceneListConfig,
|
||||||
deviceAssetList:deviceListConfig,
|
deviceAssetList:deviceListConfig,
|
||||||
cctvAssetList:maintainerListConfig,
|
cctvAssetList:cctvListConfig,
|
||||||
maintainerAssetList:cctvListConfig,
|
maintainerAssetList:maintainerListConfig,
|
||||||
|
|
||||||
stationTextureList:stationTextureListConfig,
|
stationTextureList:stationTextureListConfig,
|
||||||
deviceTextureList:deviceTextureListConfig,
|
deviceTextureList:deviceTextureListConfig,
|
||||||
@ -241,7 +241,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
window.updateSelectAsset = this.updateSelectAsset;
|
window.updateSelectAsset = this.updateSelectAsset;
|
||||||
// assetListAll. = ;
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
@ -287,7 +287,6 @@ export default {
|
|||||||
//选中需要更新的资源
|
//选中需要更新的资源
|
||||||
assetSelect(assetData,index){
|
assetSelect(assetData,index){
|
||||||
this.isActive=index;
|
this.isActive=index;
|
||||||
console.log(index);
|
|
||||||
this.nowSelect = index;
|
this.nowSelect = index;
|
||||||
},
|
},
|
||||||
//切换资源库内容
|
//切换资源库内容
|
||||||
@ -349,12 +348,23 @@ export default {
|
|||||||
this.deviceTextureList[this.nowSelect].id = selectData.id;
|
this.deviceTextureList[this.nowSelect].id = selectData.id;
|
||||||
this.deviceTextureList[this.nowSelect].packageName = selectData.packageName;
|
this.deviceTextureList[this.nowSelect].packageName = selectData.packageName;
|
||||||
this.deviceTextureList[this.nowSelect].type = selectData.deviceType;
|
this.deviceTextureList[this.nowSelect].type = selectData.deviceType;
|
||||||
|
this.$emit('changeAsset',this.modelList[index]);
|
||||||
console.log(this.deviceTextureList);
|
console.log(this.deviceTextureList);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.assetListAll ={
|
||||||
|
driverAssetList:this.driverAssetList,
|
||||||
|
sceneAssetList:this.sceneAssetList,
|
||||||
|
deviceAssetList:this.deviceAssetList,
|
||||||
|
cctvAssetList:this.cctvAssetList,
|
||||||
|
maintainerAssetList:this.maintainerAssetList,
|
||||||
|
stationTextureList:this.stationTextureList,
|
||||||
|
deviceTextureList:this.deviceTextureList,
|
||||||
|
signalTextureAssetList:this.signalTextureAssetList
|
||||||
|
};
|
||||||
|
console.log(this.assetListAll);
|
||||||
},
|
},
|
||||||
actionevent(event){
|
actionevent(event){
|
||||||
console.log(event.currentTarget.id);
|
console.log(event.currentTarget.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user