diff --git a/src/views/jlmap3d/lesson3dedit/component/lessondelete.vue b/src/views/jlmap3d/lesson3dedit/component/lessondelete.vue new file mode 100644 index 000000000..0837e9c01 --- /dev/null +++ b/src/views/jlmap3d/lesson3dedit/component/lessondelete.vue @@ -0,0 +1,85 @@ + + + + + diff --git a/src/views/jlmap3d/lesson3dedit/component/lessonsetup.vue b/src/views/jlmap3d/lesson3dedit/component/lessonsetup.vue index 1490f7c3c..f0de49810 100644 --- a/src/views/jlmap3d/lesson3dedit/component/lessonsetup.vue +++ b/src/views/jlmap3d/lesson3dedit/component/lessonsetup.vue @@ -71,9 +71,6 @@ } }, onSubmit() { - console.log(this.form.scene); - console.log(this.form.role); - console.log('submit!'); this.showSetup = false; this.$emit('lessonCreate', { name: this.form.name, type: this.form.type }); }, diff --git a/src/views/jlmap3d/lesson3dedit/lesson3dedit.vue b/src/views/jlmap3d/lesson3dedit/lesson3dedit.vue index 41ec6d6e9..920527ffd 100644 --- a/src/views/jlmap3d/lesson3dedit/lesson3dedit.vue +++ b/src/views/jlmap3d/lesson3dedit/lesson3dedit.vue @@ -302,6 +302,7 @@ saveData.setup.examMode = this.examMode; saveData.setup.checkedRole = this.checkedRole; + console.log(saveData); this.netData.data = JSON.stringify(saveData); // console.log(); updateLesson3dData(this.$route.query.lessonId,this.netData).then(data => { diff --git a/src/views/jlmap3d/lesson3dplayer/tools/explainpane.vue b/src/views/jlmap3d/lesson3dplayer/tools/explainpane.vue index b2556c520..2beddaa7a 100644 --- a/src/views/jlmap3d/lesson3dplayer/tools/explainpane.vue +++ b/src/views/jlmap3d/lesson3dplayer/tools/explainpane.vue @@ -1,6 +1,6 @@ @@ -169,22 +126,15 @@ export default { background-size:100%; } - .lesson3dSelectButton{ - position:absolute; - width: 20%; - height: 30%; - position:absolute; + + .display-draft { + /* z-index: 1000; */ + position: absolute; + width:100%; text-align: center; - font-size: 50px; - line-height:150px; - background-size: 100%; - background-repeat: no-repeat; - color:#FFF; - cursor:pointer; + bottom: 50px; } - - diff --git a/src/views/lesson/lesson3d.vue b/src/views/lesson/lesson3d.vue index 6b29ad614..855d85a6e 100644 --- a/src/views/lesson/lesson3d.vue +++ b/src/views/lesson/lesson3d.vue @@ -10,7 +10,7 @@
{{ $t('lesson.newConstruction') }}
- + @@ -27,6 +27,7 @@ + @@ -45,13 +46,16 @@ import ConstConfig from '@/scripts/ConstConfig'; import LessonSetup from '@/views/jlmap3d/lesson3dedit/component/lessonsetup'; +import LessonDelete from '@/views/jlmap3d/lesson3dedit/component/lessondelete'; + export default { name: 'Lesson3d', components: { PublishCreate, PublishLesson, LessonDetail, - LessonSetup + LessonSetup, + LessonDelete }, data() { return { @@ -154,14 +158,6 @@ export default { title: this.$t('global.operate'), width: '400', buttons: [ - { - name: this.$t('lesson.courseDetails'), - handleClick: this.goDetail, - type: 'primary', - showControl: (row) => { - return row.status !== '1'; - } - }, { name: this.$t('lesson.courseOnline'), handleClick: this.online, @@ -235,7 +231,7 @@ export default { // console.log(tab, event); }, refresh() { - this.$refs.queryListPage.refresh(true); + this.$refs.queryListPageCourse.refresh(true); }, lessonSetupCreate() { this.$refs.lessonsetup.setupView(); @@ -253,21 +249,25 @@ export default { }); }, + lessonDelete(deleteId){ + delLesson3d(deleteId).then(response => { + this.$message.success(this.$t('tip.successfullyDelete')); + this.loading = true; + this.refresh(); + this.loading = false; + }).catch(() => { + this.$messageBox(this.$t('tip.failDelete')); + }); + }, publish(index, row) { row.mapId = this.$route.params.mapId; row.cityCode = this.$route.query.cityCode; this.$refs.publishLesson.doShow(row); }, deleteLesson(index, row) { + this.$refs.lessondelete.deleteView(row.id); // console.log(row); - delLesson3d(row.id).then(response => { - this.$message.success(this.$t('tip.successfullyDelete')); - this.loading = true; - this.refresh(); - this.loading = false; - }).catch(() => { - this.$messageBox(this.$t('tip.failDelete')); - }); + }, release(index, row){