|
|
@@ -662,9 +662,10 @@ export default {
|
|
|
},
|
|
|
handleShow(row) {
|
|
|
var isShowValue = row.isShow === 0 ? 1 : 0;
|
|
|
- var course = {courseId: row.courseId, isShow: isShowValue};
|
|
|
+ var course = {courseId: row.courseId, isShow: isShowValue, isPrivate: row.isPrivate};
|
|
|
updateIsShow(course).then(response => {
|
|
|
- this.msgSuccess("修改成功");
|
|
|
+ var isShowText = isShowValue === 1 ? "上架成功" : "下架成功";
|
|
|
+ this.msgSuccess(isShowText);
|
|
|
this.getList();
|
|
|
});
|
|
|
},
|