成工业跳转调整

This commit is contained in:
fan 2023-01-09 15:01:38 +08:00
parent f9fa1c2dbe
commit 0ed70c290e
2 changed files with 52 additions and 1 deletions

View File

@ -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,

View 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>