修改三维课程存读

This commit is contained in:
sunzhenyu 2021-04-02 18:05:19 +08:00
parent a9745eb709
commit fb00e1418e
5 changed files with 33 additions and 20 deletions

View File

@ -45,9 +45,9 @@ export function LessonData() {
text:"内容",
},
explainPane:{
tittle:"",
picurl:"",
text:"",
tittle:"标题",
picurl:"url",
text:"内容",
},
};
@ -118,9 +118,9 @@ export function LessonData() {
text:"内容",
},
explainPane:{
tittle:"",
picurl:"",
text:"",
tittle:"标题",
picurl:"url",
text:"内容",
},
};

View File

@ -63,11 +63,11 @@
<el-input v-model="selected.tittle" ></el-input>
</el-form-item>
<el-form-item label="信息:" v-if="selected.text">
<el-form-item label="内容:" v-if="selected.text">
<el-input v-model="selected.text" ></el-input>
</el-form-item>
<el-form-item label="相机角度:" >
<el-form-item label="说明画面:" v-if="selected.picurl">
<el-input v-model="selected.picurl" ></el-input>
</el-form-item>
@ -151,6 +151,10 @@
if(type == "stepTips"){
this.selected = this.lessonData.lessonData.lessonProgress[this.lessonEditIndex].stepTipsData;
}
if(type == "explainpane"){
this.selected = this.lessonData.lessonData.lessonProgress[this.lessonEditIndex].explainPane;
}
},
updateData(){

View File

@ -12,8 +12,17 @@
v-show="lessonTools[0].isShow && lessonData.lessonData.lessonProgress[lessonEditIndex].progressScene == 'standstation'">
</Step-Tips>
<Process-Log v-show="lessonTools[1].isShow && lessonData.lessonData.lessonProgress[lessonEditIndex].progressScene == 'standstation'"></Process-Log>
<Explain-Pane v-show="lessonTools[2].isShow && lessonData.lessonData.lessonProgress[lessonEditIndex].progressScene == 'standstation'"></Explain-Pane>
<Process-Log
v-show="lessonTools[1].isShow && lessonData.lessonData.lessonProgress[lessonEditIndex].progressScene == 'standstation'">
</Process-Log>
<Explain-Pane
:lessonData='lessonData'
:lessonEditIndex='lessonEditIndex'
v-show="lessonTools[2].isShow && lessonData.lessonData.lessonProgress[lessonEditIndex].progressScene == 'standstation'">
</Explain-Pane>
<Job-Pane v-show="lessonTools[3].isShow && lessonData.lessonData.lessonProgress[lessonEditIndex].progressScene == 'standstation'"></Job-Pane>
<Tool-Bar v-show="lessonTools[4].isShow && lessonData.lessonData.lessonProgress[lessonEditIndex].progressScene == 'standstation'"></Tool-Bar>

View File

@ -1,13 +1,13 @@
<template>
<div class="explainpanediv" >
<div class="explainpanediv" v-if="lessonData.lessonData.lessonProgress[lessonEditIndex]" @click="selectTool">
<div class="explainpanetittle" >
{{explainTittle}}
{{lessonData.lessonData.lessonProgress[lessonEditIndex].explainPane.tittle}}
</div>
<div class="explainpanepic" >
</div>
<div class="explainpanetext" >
{{explainText}}
{{lessonData.lessonData.lessonProgress[lessonEditIndex].explainPane.text}}
</div>
</div>
</template>
@ -18,13 +18,13 @@
export default {
name: 'ExplainPane',
props:['lessonData','lessonEditIndex'],
components: {
},
data() {
return {
explainTittle:"步骤一",
explainText:"步骤一",
}
},
computed: {
@ -40,9 +40,9 @@
},
methods: {
selectTool(){
lesson3dSelect('toolproperty','explainpane');
},
},
}

View File

@ -32,8 +32,8 @@
},
data() {
return {
processText:"步骤一",
logText:"步骤一",
processText:"",
logText:"",
}
},
computed: {