|
@@ -612,14 +612,18 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
}).then(() => {
|
|
|
- var url = QUESTION_API + "/course/" + row.id;
|
|
|
- this.$httpWithMsg.delete(url).then(() => {
|
|
|
- this.$notify({
|
|
|
- type: "success",
|
|
|
- message: "删除成功!",
|
|
|
+ var url = QUESTION_API + "/course/delete";
|
|
|
+ let temCourseIds = [];
|
|
|
+ temCourseIds.push(row.id);
|
|
|
+ this.$httpWithMsg
|
|
|
+ .post(url, new URLSearchParams({ courseIds: temCourseIds }))
|
|
|
+ .then(() => {
|
|
|
+ this.$notify({
|
|
|
+ type: "success",
|
|
|
+ message: "删除成功!",
|
|
|
+ });
|
|
|
+ this.searchForm();
|
|
|
});
|
|
|
- this.searchForm();
|
|
|
- });
|
|
|
});
|
|
|
},
|
|
|
//删除多条数据
|