|
@@ -409,10 +409,6 @@ export default {
|
|
|
this.disabledBtn = false;
|
|
|
});
|
|
|
},
|
|
|
- setBomHeight() {
|
|
|
- let box = document.querySelector(".tablesBoxs");
|
|
|
- box.style.height = window.innerHeight - box.offsetTop - 190 + "px";
|
|
|
- },
|
|
|
backToAudit() {
|
|
|
this.$confirm("此操作将打回审核状态, 是否继续?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
@@ -435,12 +431,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
- let that = this;
|
|
|
- window.onresize = function () {
|
|
|
- that.setBomHeight();
|
|
|
- };
|
|
|
- },
|
|
|
+
|
|
|
created() {
|
|
|
this.keys = {
|
|
|
1: "ModulTable",
|
|
@@ -448,9 +439,6 @@ export default {
|
|
|
5: "ChapterTable",
|
|
|
6: "LessonTable",
|
|
|
};
|
|
|
- this.$nextTick(() => {
|
|
|
- this.setBomHeight();
|
|
|
- });
|
|
|
},
|
|
|
components: { ModulTable, LessonTable, ChapterTable, CheatDialog },
|
|
|
watch: {
|
|
@@ -527,7 +515,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.tablesBoxs {
|
|
|
- overflow-x: auto;
|
|
|
+ height: calc(100% - 56px);
|
|
|
+ overflow: auto;
|
|
|
}
|
|
|
}
|
|
|
</style>
|