|
@@ -864,7 +864,10 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http.delete(QUESTION_API + "/paper/" + row.id).then(
|
|
|
|
|
|
+ let param = new URLSearchParams({
|
|
|
|
+ paperIds: row.id,
|
|
|
|
+ });
|
|
|
|
+ this.$http.post(QUESTION_API + "/paper", param).then(
|
|
() => {
|
|
() => {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "删除成功",
|
|
message: "删除成功",
|
|
@@ -946,13 +949,15 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
batchDeleteGenPaper() {
|
|
batchDeleteGenPaper() {
|
|
- var paperIds = this.paperIds;
|
|
|
|
if (this.selectedPaperIds.length != 0) {
|
|
if (this.selectedPaperIds.length != 0) {
|
|
this.$confirm("确认删除试卷吗?", "提示", {
|
|
this.$confirm("确认删除试卷吗?", "提示", {
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http.delete(QUESTION_API + "/paper/" + paperIds).then(
|
|
|
|
|
|
+ let param = new URLSearchParams({
|
|
|
|
+ paperIds: this.paperIds,
|
|
|
|
+ });
|
|
|
|
+ this.$http.post(QUESTION_API + "/paper", param).then(
|
|
() => {
|
|
() => {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "删除成功",
|
|
message: "删除成功",
|