|
|
@@ -876,7 +876,8 @@ export default {
|
|
|
fileList: [],
|
|
|
file: null,
|
|
|
historyList: [],
|
|
|
- courseId: null
|
|
|
+ courseId: null,
|
|
|
+ videoId: null
|
|
|
},
|
|
|
}
|
|
|
},
|
|
|
@@ -1744,8 +1745,9 @@ export default {
|
|
|
this.commentImportDialog.file = null;
|
|
|
this.commentImportDialog.fileList = [];
|
|
|
this.commentImportDialog.courseId = this.form.courseId;
|
|
|
+ this.commentImportDialog.videoId = this.form.videoId;
|
|
|
// 加载历史留言
|
|
|
- listFeaturedComments(this.form.courseId).then(res => {
|
|
|
+ listFeaturedComments(this.form.courseId, this.form.videoId).then(res => {
|
|
|
this.commentImportDialog.historyList = res.rows || [];
|
|
|
});
|
|
|
},
|
|
|
@@ -1760,7 +1762,7 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.$message.success('删除成功');
|
|
|
// 刷新历史列表
|
|
|
- listFeaturedComments(this.commentImportDialog.courseId).then(res2 => {
|
|
|
+ listFeaturedComments(this.commentImportDialog.courseId, this.commentImportDialog.videoId).then(res2 => {
|
|
|
this.commentImportDialog.historyList = res2.rows || [];
|
|
|
});
|
|
|
} else {
|
|
|
@@ -1788,11 +1790,11 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.commentImportDialog.loading = true;
|
|
|
- importComments(this.commentImportDialog.courseId, this.commentImportDialog.file).then(res => {
|
|
|
+ importComments(this.commentImportDialog.courseId, this.commentImportDialog.videoId, this.commentImportDialog.file).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg);
|
|
|
// 刷新历史列表
|
|
|
- listFeaturedComments(this.commentImportDialog.courseId).then(res2 => {
|
|
|
+ listFeaturedComments(this.commentImportDialog.courseId, this.commentImportDialog.videoId).then(res2 => {
|
|
|
this.commentImportDialog.historyList = res2.rows || [];
|
|
|
});
|
|
|
} else {
|