Commit 8f2b0a0e authored by zhengke's avatar zhengke

修改

parent 4fcf5a71
......@@ -149,6 +149,10 @@
addObj:{
type: Object,
default: null
},
ChapterId:{
type: Number,
default: null
}
},
data() {
......@@ -201,7 +205,7 @@
this.optionTitle = "新增单词"
this.objOption.Id = 0;
this.objOption.CourseId = this.addObj.CourseId;
this.objOption.ChapterId = this.addObj.ChapterId;
this.objOption.ChapterId = this.ChapterId;
this.objOption.WordType = '';
this.objOption.WordContent = '';
this.objOption.WordTone = '';
......@@ -283,7 +287,7 @@
message: '保存成功!',
position: 'top'
})
this.$emit('success');
this.$emit('success',this.ChapterId);
this.$emit('close');
}
})
......
......@@ -123,7 +123,7 @@
<chapter-form v-if="isShowChapter" :CourseId="courseId" :MyChapterNo="MyChapterNo" @close="closeChapterForm"
@success="refreshPage">
</chapter-form>
<words-form v-if="isShowWordForm" :save-obj="wordObj" :addObj="addObj" @close="closeChapterForm"
<words-form v-if="isShowWordForm" :save-obj="wordObj" :ChapterId="commonChapterId" :addObj="addObj" @close="closeChapterForm"
@success="getAllWords"></words-form>
</div>
</template>
......@@ -264,7 +264,8 @@
PageSize: 15,
rowsPerPage: 15
},
PageCount: 0
PageCount: 0,
commonChapterId:0
};
},
computed: {
......@@ -334,6 +335,7 @@
refreshWordsPage(ChapterId) {
this.wordMsg.PageIndex = 1;
this.getAllWords(ChapterId);
this.commonChapterId = ChapterId;
},
//单词分页
changePage(val) {
......
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