Merge branch 'test_dispaly' of https://git.code.tencent.com/lian-cbtc/jl-client into test_dispaly
This commit is contained in:
commit
bdb89c21b3
@ -39,7 +39,6 @@ const Jl3dTrainRescueVr = () => import('@/views/jlmap3d/maintainer/jl3dTrainResc
|
||||
const Jlmap3dOtherVR = () => import('@/views/jlmap3d/maintainer/jl3dothervr');
|
||||
// const Jl3dMaintainer = () => import('@/views/jlmap3d/maintainer/jl3dmaintainer');
|
||||
|
||||
|
||||
// const DesignDisplayNew = () => import('@/views/newMap/displayNew/scriptDisplay/scriptPreview/index');
|
||||
// const DisplayNew = () => import('@/views/newMap/displayNew/index');
|
||||
|
||||
@ -229,6 +228,7 @@ const PermissionManage = () => import('@/views/permissionManage/index');
|
||||
const UserRulesManage = () => import('@/views/userRulesManage/index');
|
||||
const AuthorityTransfer = () => import('@/views/authorityTransfer/index');
|
||||
const CreateDistribute = () => import('@/views/authorityTransfer/create/index');
|
||||
const ThirdJumpSim = () => import('@/views/newMap/display/thirdJump');
|
||||
|
||||
// import { GenerateRouteProjectList } from '@/scripts/ProjectConfig';
|
||||
// import { getSessionStorage } from '@/utils/auth';
|
||||
@ -446,6 +446,11 @@ export const constantRoutes = [
|
||||
hidden: true
|
||||
|
||||
},
|
||||
{
|
||||
path: '/thirdJumpSim',
|
||||
component: ThirdJumpSim,
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: '/404',
|
||||
component: Errpr404,
|
||||
|
46
src/views/newMap/display/thirdJump.vue
Normal file
46
src/views/newMap/display/thirdJump.vue
Normal file
@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<div v-loading="loading" style="width: 100%;height: 100%;" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { createSimulation } from '@/api/simulation';
|
||||
import { launchFullscreen } from '@/utils/screen';
|
||||
export default {
|
||||
name: 'ThirdJump',
|
||||
data() {
|
||||
return {
|
||||
loading: true
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.enterSimulation();
|
||||
},
|
||||
methods: {
|
||||
enterSimulation() {
|
||||
createSimulation(this.$route.query.systemId).then(resp => {
|
||||
const query = {
|
||||
lineCode: this.$route.query.lineCode,
|
||||
group: resp.data,
|
||||
mapId: this.$route.query.mapId,
|
||||
simType: this.$route.query.simType,
|
||||
project: this.$route.query.project,
|
||||
labels: this.$route.query.labels
|
||||
};
|
||||
this.$router.push({ path: `/display/demon`, query: query });
|
||||
launchFullscreen();
|
||||
}).catch(error=>{
|
||||
if (error.code == 10003) {
|
||||
this.$messageBox(this.$t('error.createSimulationFailed') + ':您的仿真权限不足!');
|
||||
} else {
|
||||
this.$messageBox(this.$t('error.createSimulationFailed') + error.message);
|
||||
}
|
||||
this.disabled = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user