Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
01701479fd
@ -103,7 +103,7 @@ export function Jl3dDrivingNew(mixers,updatemmi,sound,translation,routegroup,sta
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(data.type == "Train_Hmi_3D"){
|
if(data.type == "Train_Hmi_3D"){
|
||||||
// console.log(data.body);
|
console.log(data.body);
|
||||||
updatestatus(data.body);
|
updatestatus(data.body);
|
||||||
|
|
||||||
// if(data.body.trust){
|
// if(data.body.trust){
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -108,7 +108,6 @@ export function JLmap3d(dom, data,skinCode,storemod,routegroup,project) {
|
|||||||
getPublishMapDetail(skinCode).then(data => {
|
getPublishMapDetail(skinCode).then(data => {
|
||||||
let mapnetdata = data.data;
|
let mapnetdata = data.data;
|
||||||
getPublish3dMapDetail(skinCode).then(netdata => {
|
getPublish3dMapDetail(skinCode).then(netdata => {
|
||||||
console.log(netdata);
|
|
||||||
let assetsdata = JSON.parse(netdata.data.sections);
|
let assetsdata = JSON.parse(netdata.data.sections);
|
||||||
if(assetsdata.link){
|
if(assetsdata.link){
|
||||||
scope.datatype = "old";
|
scope.datatype = "old";
|
||||||
|
@ -143,6 +143,13 @@ export function SimulationLoadNew(data,scope,netdata,mapdata,camera,controls,sce
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then(function(data){
|
.then(function(data){
|
||||||
|
camera.position.x = stationstandlist.group.children[0].position.x;
|
||||||
|
camera.position.y = stationstandlist.group.children[0].position.y+500;
|
||||||
|
camera.position.z = stationstandlist.group.children[0].position.z+800;
|
||||||
|
//更新相机方向
|
||||||
|
controls.target = new THREE.Vector3(stationstandlist.group.children[0].position.x,stationstandlist.group.children[0].position.y,stationstandlist.group.children[0].position.z);
|
||||||
|
controls.upmodeldirect(stationstandlist,trainlisttest);
|
||||||
|
controls.update();
|
||||||
|
|
||||||
backdata.loaderdata(sectionlist,linklist,signallist,stationstandlist,trainlisttest,realsectionlist,rails);
|
backdata.loaderdata(sectionlist,linklist,signallist,stationstandlist,trainlisttest,realsectionlist,rails);
|
||||||
scope.Subscribe.updatamap(sectionlist,linklist,signallist,stationstandlist,trainlisttest,realsectionlist,rails,scope.materiallist,scope.actions,scope.sceneload);
|
scope.Subscribe.updatamap(sectionlist,linklist,signallist,stationstandlist,trainlisttest,realsectionlist,rails,scope.materiallist,scope.actions,scope.sceneload);
|
||||||
|
@ -117,6 +117,7 @@ const training = {
|
|||||||
},
|
},
|
||||||
over: (state) => {
|
over: (state) => {
|
||||||
state.started = false;
|
state.started = false;
|
||||||
|
state.switchcount += 1;
|
||||||
},
|
},
|
||||||
updateMapState: (state, deviceStatus) => {
|
updateMapState: (state, deviceStatus) => {
|
||||||
Vue.prototype.$jlmap && Vue.prototype.$jlmap.update(deviceStatus);
|
Vue.prototype.$jlmap && Vue.prototype.$jlmap.update(deviceStatus);
|
||||||
|
@ -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';
|
||||||
|
@ -80,6 +80,11 @@ export default {
|
|||||||
token:null
|
token:null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
'$store.state.socket.simulationOver':function(val) {
|
||||||
|
this.back();
|
||||||
|
}
|
||||||
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
// console.log("destroy");
|
// console.log("destroy");
|
||||||
if (this.jlmap3d) {
|
if (this.jlmap3d) {
|
||||||
@ -183,7 +188,15 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
back() {
|
back() {
|
||||||
window.close();
|
if (this.$route.query.projectDevice) {
|
||||||
|
this.$store.dispatch('training/over').then(() => {
|
||||||
|
this.$store.dispatch('LogOut').then(() => {
|
||||||
|
location.reload();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
// this.$emit('showpanel');
|
// this.$emit('showpanel');
|
||||||
// this.jlmap3d.eventoff();
|
// this.jlmap3d.eventoff();
|
||||||
// this.jlmap3d.animateoff();
|
// this.jlmap3d.animateoff();
|
||||||
|
@ -144,6 +144,7 @@ export default {
|
|||||||
width:80%;
|
width:80%;
|
||||||
height:30px;
|
height:30px;
|
||||||
margin:0px 0px 50px 0px;
|
margin:0px 0px 50px 0px;
|
||||||
|
cursor:pointer;
|
||||||
}
|
}
|
||||||
.modelpic{
|
.modelpic{
|
||||||
left:0;
|
left:0;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
:element-loading-text="loadingText"
|
:element-loading-text="loadingText"
|
||||||
element-loading-background="rgba(0, 0, 0, 0)"
|
element-loading-background="rgba(0, 0, 0, 0)"
|
||||||
>
|
>
|
||||||
<el-button v-if="syncLogin && loadingCode" type="text" style="font-size: 24px;font-weight: bold;" @click="loginRefresh">关联设备未登录,点击重新检测</el-button>
|
|
||||||
<div v-if="loginTitle && !syncLogin" :class="project.endsWith('heb')?'text-box':'left-logo-box'">
|
<div v-if="loginTitle && !syncLogin" :class="project.endsWith('heb')?'text-box':'left-logo-box'">
|
||||||
<img class="logo" :src="logoImg" :style="{width: logoWidth}">
|
<img class="logo" :src="logoImg" :style="{width: logoWidth}">
|
||||||
<span>{{ loginTitle==='空串'?'':loginTitle }}</span>
|
<span>{{ loginTitle==='空串'?'':loginTitle }}</span>
|
||||||
@ -309,7 +308,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
loginRefresh() {
|
loginRefresh() {
|
||||||
this.loadingCode = true;
|
// this.loadingCode = true;
|
||||||
|
const self = this;
|
||||||
const params = LoginParams[this.loginClient];
|
const params = LoginParams[this.loginClient];
|
||||||
params.project = loginInfo[this.project].loginParam;
|
params.project = loginInfo[this.project].loginParam;
|
||||||
if (this.$route.query.projectDevice) {
|
if (this.$route.query.projectDevice) {
|
||||||
@ -321,8 +321,14 @@ export default {
|
|||||||
this.loadingCode = false;
|
this.loadingCode = false;
|
||||||
this.checkLoginStatus();
|
this.checkLoginStatus();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loadingCode = false;
|
if (this.syncLogin) {
|
||||||
this.$messageBox(this.$t('login.getLoginQrCode'));
|
setTimeout(() =>{
|
||||||
|
self.loginRefresh();
|
||||||
|
}, 3000);
|
||||||
|
} else {
|
||||||
|
this.loadingCode = false;
|
||||||
|
this.$messageBox(this.$t('login.getLoginQrCode'));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
checkLoginStatus() {
|
checkLoginStatus() {
|
||||||
@ -344,8 +350,12 @@ export default {
|
|||||||
});
|
});
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
if ((error.data && error.data.status === 'EXPIRE') || error.code != 200) {
|
if ((error.data && error.data.status === 'EXPIRE') || error.code != 200) {
|
||||||
this.loadingCode = true;
|
if (this.syncLogin) {
|
||||||
this.loginUrl = '';
|
self.loginRefresh();
|
||||||
|
} else {
|
||||||
|
this.loadingCode = true;
|
||||||
|
this.loginUrl = '';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
self.checkLoginStatus();
|
self.checkLoginStatus();
|
||||||
}
|
}
|
||||||
@ -475,7 +485,9 @@ export default {
|
|||||||
mapid: query.mapId,
|
mapid: query.mapId,
|
||||||
group: query.group,
|
group: query.group,
|
||||||
project: getSessionStorage('project'),
|
project: getSessionStorage('project'),
|
||||||
token: getToken()
|
token: getToken(),
|
||||||
|
projectDevice: this.$route.query.projectDevice,
|
||||||
|
type: this.$route.query.type
|
||||||
};
|
};
|
||||||
this.$router.push({ path: `/jlmap3d/sandbox`, query: sandboxQuery });
|
this.$router.push({ path: `/jlmap3d/sandbox`, query: sandboxQuery });
|
||||||
} else {
|
} else {
|
||||||
|
@ -74,10 +74,11 @@ export default {
|
|||||||
});
|
});
|
||||||
this.editModel.logicSectionCodeList.forEach(logicCode => {
|
this.editModel.logicSectionCodeList.forEach(logicCode => {
|
||||||
const section = this.$store.getters['map/getDeviceByCode'](logicCode);
|
const section = this.$store.getters['map/getDeviceByCode'](logicCode);
|
||||||
models.push(deepAssign(section, {_dispose: true}));
|
if (section) {
|
||||||
|
models.push(deepAssign(section, {_dispose: true}));
|
||||||
const trainWindowModel = this.$store.getters['map/getDeviceByCode'](section.trainWindowCode);
|
const trainWindowModel = this.$store.getters['map/getDeviceByCode'](section.trainWindowCode);
|
||||||
models.push(deepAssign(trainWindowModel, {_dispose: true}));
|
trainWindowModel && models.push(deepAssign(trainWindowModel, {_dispose: true}));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (this.logicNum === 0) {
|
if (this.logicNum === 0) {
|
||||||
logicSectionCodeList = [];
|
logicSectionCodeList = [];
|
||||||
|
@ -175,8 +175,8 @@ export default {
|
|||||||
width: data.width,
|
width: data.width,
|
||||||
height: data.height
|
height: data.height
|
||||||
};
|
};
|
||||||
|
data.offsetList.length = data.bigScreenSplitConfig.length + 1;
|
||||||
}
|
}
|
||||||
data.offsetList.length = data.bigScreenSplitConfig.length + 1;
|
|
||||||
if (data.offsetList && data.offsetList.length) {
|
if (data.offsetList && data.offsetList.length) {
|
||||||
this.list = [];
|
this.list = [];
|
||||||
data.offsetList.forEach(item => {
|
data.offsetList.forEach(item => {
|
||||||
|
@ -721,6 +721,10 @@ function timedCount() {
|
|||||||
postMessage(data);
|
postMessage(data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (data.type == 'Simulation_Over') {
|
||||||
|
postMessage(data);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ( data.body.length > 300) {
|
if ( data.body.length > 300) {
|
||||||
// console.log(data);
|
// console.log(data);
|
||||||
postMessage(data);
|
postMessage(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user