Commit 8f2b0a0e authored by zhengke's avatar zhengke

修改

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