Commit 3748a040 authored by zhengke's avatar zhengke

修改

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