代码调整
This commit is contained in:
parent
c92c66f17c
commit
8794db68f2
@ -64,7 +64,7 @@
|
||||
<script>
|
||||
import {getPublishTrainingDetail, loadPublishTraining} from '@/api/jmap/training';
|
||||
import { getPostByProjectCode } from '@/api/learn';
|
||||
import { getSessionStorage, getLocalStorage } from '@/utils/auth';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
import { ProjectCode } from '@/scripts/ProjectConfig';
|
||||
import ContectUs from './contectUs';
|
||||
import ModifyTime from './modifyTime';
|
||||
@ -142,7 +142,6 @@ export default {
|
||||
return {
|
||||
isShowMenuList: false,
|
||||
scriptMode: ScriptMode.TEACH,
|
||||
showConfig: {},
|
||||
menuList: [],
|
||||
active: -1,
|
||||
openBigLPF: null,
|
||||
@ -499,7 +498,7 @@ export default {
|
||||
return this.$store.state.trainingNew.trainingDetail;
|
||||
},
|
||||
trainingDesignShow() {
|
||||
return this.showConfig.trainingDesign || false;
|
||||
return this.$store.state.training.domConfig.trainingDesign || false;
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
@ -541,9 +540,6 @@ export default {
|
||||
this.menuList = [...this.allMenuList];
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getDomConfig();
|
||||
},
|
||||
mounted() {
|
||||
// jl3dmodel
|
||||
// const dataMap = {
|
||||
@ -582,11 +578,6 @@ export default {
|
||||
this.$store.dispatch('trainingNew/changeTeachMode', '');
|
||||
},
|
||||
methods: {
|
||||
getDomConfig() {
|
||||
let domConfig = getLocalStorage('domConfig') || `{}`;
|
||||
domConfig = JSON.parse(domConfig);
|
||||
this.showConfig = domConfig;
|
||||
},
|
||||
showChidren(data, index) {
|
||||
event.stopPropagation();
|
||||
this.active = index;
|
||||
|
@ -27,7 +27,7 @@ import { superAdmin, admin } from '@/router/index';
|
||||
import selectRole from './selectRole/list';
|
||||
import { launchFullscreen } from '@/utils/screen';
|
||||
import { createSimulation } from '@/api/simulation';
|
||||
import { getSessionStorage, setLocalStorage } from '@/utils/auth';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
|
||||
export default {
|
||||
name: 'Simulation',
|
||||
@ -216,7 +216,6 @@ export default {
|
||||
}
|
||||
},
|
||||
enterSimulation(system) {
|
||||
setLocalStorage('domConfig', JSON.stringify(system.paramVO.domConfig || {}));
|
||||
createSimulation(system.id).then(resp => {
|
||||
const query = { lineCode: this.$route.query.lineCode, group: resp.data, mapId: system.mapId, project: this.project};
|
||||
if (this.loadingProjectList.includes(this.project)) {
|
||||
|
Loading…
Reference in New Issue
Block a user