diff --git a/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue b/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue index c91267ef82..3fe1c2939d 100644 --- a/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue +++ b/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue @@ -204,7 +204,11 @@ export default { }) }, removeRowTask(index, data) { //移除 - data.splice(index, 1) + if (!data[index].identification) { + data.splice(index, 1) + } else { + data[index].isSet = false + } }, deleteRowTask(index, data) { //删除 this.result = this.$get("/notice/delete/message/" + data.identification, response => { diff --git a/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue b/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue index 1617ebab7b..6393408753 100644 --- a/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue +++ b/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue @@ -205,7 +205,12 @@ export default { }) }, removeRowTask(index, data) { //移除 - data.splice(index, 1) + if (!data[index].identification) { + data.splice(index, 1) + } else { + data[index].isSet = false + } + }, deleteRowTask(index, data) { //删除 this.result = this.$get("/notice/delete/message/" + data.identification, response => { diff --git a/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue b/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue index 1ce351b175..b0358ac2b7 100644 --- a/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue +++ b/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue @@ -196,7 +196,11 @@ export default { }) }, removeRowTask(index, data) { //移除 - data.splice(index, 1) + if (!data[index].identification) { + data.splice(index, 1) + } else { + data[index].isSet = false + } }, deleteRowTask(index, data) { //删除 this.result = this.$get("/notice/delete/message/" + data.identification, response => { diff --git a/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue b/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue index e44215182b..80706d170a 100644 --- a/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue +++ b/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue @@ -210,7 +210,11 @@ export default { }) }, removeRowTask(index, data) { //移除 - data.splice(index, 1) + if (!data[index].identification) { + data.splice(index, 1) + } else { + data[index].isSet = false + } }, deleteRowTask(index, data) { //删除 this.result = this.$get("/notice/delete/message/" + data.identification, response => { diff --git a/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue b/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue index 7e75db5d77..53e50ea5af 100644 --- a/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue +++ b/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue @@ -211,7 +211,11 @@ export default { }) }, removeRowTask(index, data) { //移除 - data.splice(index, 1) + if (!data[index].identification) { + data.splice(index, 1) + } else { + data[index].isSet = false + } }, deleteRowTask(index, data) { //删除 this.result = this.$get("/notice/delete/message/" + data.identification, response => {