fix(消息设置):修复点击取消记录在页面消失

This commit is contained in:
wenyann 2020-11-04 17:49:48 +08:00
parent c482bdc985
commit 0d663a0579
5 changed files with 26 additions and 5 deletions

View File

@ -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 => {

View File

@ -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 => {

View File

@ -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 => {

View File

@ -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 => {

View File

@ -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 => {