Commit 3748a040 authored by zhengke's avatar zhengke

修改

parent c948de9d
......@@ -82,11 +82,13 @@
<editor v-model="chapter.Requirement" placeHolder="请输入章节学生学习要求" :config="config" ref="requirement">
</editor>
</div>
</div>
</div>
<div class="text-h6 q-mb-md">单词列表</div>
<div class="q-mb-md">
<q-table :pagination="wordMsg" no-data-label="暂无相关数据" flat
class="sticky-right-column-table sticky-column-table" separator="none" :data="WordData"
:columns="columns" row-key="name">
class="sticky-right-column-table sticky-column-table" separator="none" :data="WordData" :columns="columns"
row-key="name">
<template v-slot:top="">
<q-space />
<div class="page-option">
......@@ -110,8 +112,6 @@
</q-table>
</div>
</div>
</div>
</div>
</template>
</q-splitter>
<q-btn round padding="md" v-if="chapter && chapter.ChapterId>0" @click="saveChapterUpdate" :loading="submiting"
......@@ -276,11 +276,10 @@
this.initRateList();
this.getCourseInfo();
}
this.getAllWords(0);
},
mounted() {
this.showContent = false;
this.getAllWords(0);
setTimeout(() => {
this.showContent = true;
}, 3000);
......@@ -311,6 +310,7 @@
},
//导入成功获取所有
getAllWords(ChapterId) {
console.log(ChapterId,'ChapterId');
this.wordMsg.CourseId = this.courseId;
this.wordMsg.ChapterId = ChapterId;
GetCourseWordsPage(this.wordMsg).then(res => {
......@@ -376,6 +376,7 @@
})
},
changeNode(data, node, ev) {
console.log('进入');
if (this.chapter && this.chapter.ChapterId > 0) {
if (this.defauRateObj.Id != 0) {
this.chapter.CourseRate = this.defauRateObj.Id
......@@ -418,6 +419,7 @@
this.addObj.CourseId = data.CourseId;
this.addObj.ChapterId = data.ChapterId;
//点击调用章节下的单词
console.log('点击了');
this.getAllWords(data.ChapterNo);
},
updateRate() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment