|
@@ -24,7 +24,7 @@
|
|
|
:currentTreeID="chapterId"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div id="data-screen" class="inner">
|
|
|
+ <div id="data-screen" class="inner" v-loading="loading">
|
|
|
<!-- 显示答案按钮 -->
|
|
|
<!-- <a v-if="chapterId" :class="['answerShow',isAnswerShow?'answerShowTrue':'']" @click="handleAnswerShow">显示答案</a> -->
|
|
|
<!-- <a class="edit-btn" @click="handleEdit">编辑</a> -->
|
|
@@ -122,6 +122,7 @@ export default {
|
|
|
themeColor: "",
|
|
|
type: "",
|
|
|
name: "",
|
|
|
+ loading: false,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -132,8 +133,8 @@ export default {
|
|
|
_this.name = this.$route.query.name;
|
|
|
},
|
|
|
methods: {
|
|
|
- back(){
|
|
|
- this.$router.go(-1)
|
|
|
+ back() {
|
|
|
+ this.$router.go(-1);
|
|
|
},
|
|
|
changeTreeData(val) {
|
|
|
this.FatherTreeData = JSON.parse(JSON.stringify(val));
|
|
@@ -156,6 +157,7 @@ export default {
|
|
|
},
|
|
|
// 获取预览数据
|
|
|
onGetData() {
|
|
|
+ this.loading = true;
|
|
|
const _this = this;
|
|
|
const MethodName = "book-courseware_manager-GetCoursewareContent_View";
|
|
|
const data = {
|
|
@@ -184,6 +186,7 @@ export default {
|
|
|
const _this = this;
|
|
|
_this.context = null;
|
|
|
}
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
// 跳转编辑页面
|