|
@@ -402,6 +402,10 @@ export default {
|
|
this.disabledBtn = false;
|
|
this.disabledBtn = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ setBomHeight() {
|
|
|
|
+ let box = document.querySelector(".tablesBoxs");
|
|
|
|
+ box.style.height = window.innerHeight - box.offsetTop - 190 + "px";
|
|
|
|
+ },
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.keys = {
|
|
this.keys = {
|
|
@@ -410,6 +414,9 @@ export default {
|
|
3: "LessonTable",
|
|
3: "LessonTable",
|
|
5: "ChapterTable",
|
|
5: "ChapterTable",
|
|
};
|
|
};
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.setBomHeight();
|
|
|
|
+ });
|
|
},
|
|
},
|
|
components: { ModulTable, LessonTable, ChapterTable, CheatDialog },
|
|
components: { ModulTable, LessonTable, ChapterTable, CheatDialog },
|
|
watch: {
|
|
watch: {
|
|
@@ -428,8 +435,8 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.studyRecordTable {
|
|
.studyRecordTable {
|
|
- height: 100%;
|
|
|
|
.studyStyle {
|
|
.studyStyle {
|
|
|
|
+ top: 100px;
|
|
margin: 16px 0px 0px;
|
|
margin: 16px 0px 0px;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -481,7 +488,6 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.tablesBoxs {
|
|
.tablesBoxs {
|
|
- height: calc(100% - 360px);
|
|
|
|
overflow-x: auto;
|
|
overflow-x: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|