代码调整
This commit is contained in:
parent
a91f0063d0
commit
42112659c5
@ -57,7 +57,7 @@
|
||||
<training-tip v-if="trainingDetail||trainingId" ref="trainingTip" />
|
||||
<training-position-tip v-if="trainingDetail||trainingId" ref="trainingPositionTip" />
|
||||
<training-menu v-if="trainingDetail" ref="trainingMenu" :offset-bottom="offsetBottom" />
|
||||
<TrainingDesign ref="trainingDesign" />
|
||||
<TrainingDesign v-if="trainingDesignShow" ref="trainingDesign" />
|
||||
|
||||
</div>
|
||||
</template>
|
||||
@ -65,7 +65,7 @@
|
||||
import {getPublishTrainingDetail, loadPublishTraining} from '@/api/jmap/training';
|
||||
// import DistributeDraft from '@/views/components/limits/distribute';
|
||||
import { getPostByProjectCode } from '@/api/learn';
|
||||
import { getSessionStorage } from '@/utils/auth';
|
||||
import { getSessionStorage, getLocalStorage } from '@/utils/auth';
|
||||
import { ProjectCode } from '@/scripts/ProjectConfig';
|
||||
import ContectUs from './contectUs';
|
||||
import ModifyTime from './modifyTime';
|
||||
@ -144,6 +144,7 @@ export default {
|
||||
return {
|
||||
isShowMenuList: false,
|
||||
scriptMode: ScriptMode.TEACH,
|
||||
showConfig: {},
|
||||
menuList: [],
|
||||
active: -1,
|
||||
openBigLPF: null,
|
||||
@ -498,6 +499,9 @@ export default {
|
||||
},
|
||||
trainingDetail() {
|
||||
return this.$store.state.trainingNew.trainingDetail;
|
||||
},
|
||||
trainingDesignShow() {
|
||||
return this.showConfig.trainingDesign || false;
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
@ -531,6 +535,9 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getDomConfig();
|
||||
},
|
||||
mounted() {
|
||||
// jl3dmodel
|
||||
// const dataMap = {
|
||||
@ -569,6 +576,11 @@ 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;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="editContent" :class="{'active': dialogVisible}">
|
||||
<div class="editContentTab">
|
||||
<div v-if="tabVisible" class="editContentTabLable" @click="minisize">
|
||||
<div class="editContentTabLable" @click="minisize">
|
||||
<span class="titleStyle">实训设计</span>
|
||||
</div>
|
||||
</div>
|
||||
@ -124,7 +124,6 @@ import { assignUsersPlayRoles } from '@/api/jointSimulation';
|
||||
import Vue from 'vue';
|
||||
import {covertMemberData} from '@/views/newMap/displayNew/utils';
|
||||
import List from './list';
|
||||
import { getLocalStorage } from '@/utils/auth';
|
||||
|
||||
export default {
|
||||
name: 'DesignIndex',
|
||||
@ -138,7 +137,6 @@ export default {
|
||||
editData: {},
|
||||
showList: true,
|
||||
dialogWidth: '1100px',
|
||||
tabVisible: false,
|
||||
dialogVisible: false,
|
||||
roleList: [],
|
||||
tableData: [],
|
||||
@ -196,15 +194,7 @@ export default {
|
||||
this.roleList = list;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTabShow();
|
||||
},
|
||||
methods: {
|
||||
getTabShow() {
|
||||
let domConfig = getLocalStorage('domConfig') || `{}`;
|
||||
domConfig = JSON.parse(domConfig);
|
||||
this.tabVisible = domConfig.trainingDesign || false;
|
||||
},
|
||||
updateDetails(data) {
|
||||
this.editData = data;
|
||||
this.$emit('closeAllDialog', 'editDetails');
|
||||
@ -329,7 +319,6 @@ export default {
|
||||
doShow(data) {
|
||||
// this.getStepList(data);
|
||||
this.dialogVisible = true;
|
||||
this.tabVisible = true;
|
||||
},
|
||||
saveStepData() {
|
||||
const list = [];
|
||||
|
Loading…
Reference in New Issue
Block a user