|
@@ -1156,7 +1156,13 @@ export default {
|
|
|
if (action == "confirm") {
|
|
|
this.loading = true;
|
|
|
this.$http
|
|
|
- .delete(QUESTION_API + "/paperDetail/" + paperDetailsId)
|
|
|
+ .delete(
|
|
|
+ QUESTION_API +
|
|
|
+ "/paperDetail/" +
|
|
|
+ this.paperId +
|
|
|
+ "/" +
|
|
|
+ paperDetailsId
|
|
|
+ )
|
|
|
.then(() => {
|
|
|
this.initPaper();
|
|
|
this.loading = true;
|
|
@@ -1525,7 +1531,13 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.dialogLoading = true;
|
|
|
this.$http
|
|
|
- .delete(QUESTION_API + "/paper/deleteQuestion/" + this.quesModel.id)
|
|
|
+ .delete(
|
|
|
+ QUESTION_API +
|
|
|
+ "/paper/deleteQuestion/" +
|
|
|
+ this.editPaperDetailUnit.id +
|
|
|
+ "/" +
|
|
|
+ this.quesModel.id
|
|
|
+ )
|
|
|
.then((response) => {
|
|
|
if (response.data.length > 0) {
|
|
|
var deleteInfo =
|
|
@@ -1650,7 +1662,7 @@ export default {
|
|
|
this.deleteQues01(paperDetailUnitId);
|
|
|
} else {
|
|
|
let questionId = paperDetailUnit.question.id;
|
|
|
- this.deleteQues02(questionId);
|
|
|
+ this.deleteQues02(questionId, paperDetailUnitId);
|
|
|
}
|
|
|
},
|
|
|
deleteQues01(paperDetailUnitId) {
|
|
@@ -1676,14 +1688,20 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
- deleteQues02(questionId) {
|
|
|
+ deleteQues02(questionId, paperDetailUnitId) {
|
|
|
this.$alert("您确定删除吗?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
callback: (action) => {
|
|
|
if (action == "confirm") {
|
|
|
this.loading = true;
|
|
|
this.$http
|
|
|
- .delete(QUESTION_API + "/paper/deleteQuestion/" + questionId)
|
|
|
+ .delete(
|
|
|
+ QUESTION_API +
|
|
|
+ "/paper/deleteQuestion/" +
|
|
|
+ paperDetailUnitId +
|
|
|
+ "/" +
|
|
|
+ questionId
|
|
|
+ )
|
|
|
.then((response) => {
|
|
|
if (response.data.length > 0) {
|
|
|
var deleteInfo =
|