fix: 修改任务通知-编辑,无法修改webhook地址

This commit is contained in:
wenyann 2020-11-20 14:57:19 +08:00
parent 6629af30e5
commit fc4b266511
5 changed files with 42 additions and 6 deletions

View File

@ -145,10 +145,17 @@ export default {
data.isReadOnly = true;
if (data.type === 'EMAIL') {
data.isReadOnly = !data.isReadOnly
data.webhook = ""
}
},
handleEditTask(index,data) {
data.isSet = true
if (data.type === 'EMAIL') {
data.isReadOnly = false
data.webhook = ""
} else {
data.isReadOnly = true
}
},
handleAddTaskModel(type) {
let Task = {};

View File

@ -147,6 +147,7 @@ export default {
data.isReadOnly = true;
if (data.type === 'EMAIL') {
data.isReadOnly = !data.isReadOnly
data.webhook = ""
}
},
handleAddTaskModel(type) {
@ -192,6 +193,13 @@ export default {
},
handleEditTask(index,data) {
data.isSet = true
if (data.type === 'EMAIL') {
data.isReadOnly = false
data.webhook = ""
} else {
data.isReadOnly = true
}
},
addTask(data) {
let list = []

View File

@ -148,6 +148,7 @@ export default {
data.isReadOnly = true;
if (data.type === 'EMAIL') {
data.isReadOnly = !data.isReadOnly
data.webhook = ""
}
},
handleAddTaskModel(type) {
@ -167,6 +168,12 @@ export default {
handleEditTask(index,data) {
data.isSet = true
data.testId = this.testId
if (data.type === 'EMAIL') {
data.isReadOnly = false
data.webhook = ""
} else {
data.isReadOnly = true
}
},
handleAddTask(index, data) {
if (data.event && data.userIds.length > 0 && data.type) {

View File

@ -151,10 +151,17 @@ export default {
data.isReadOnly = true;
if (data.type === 'EMAIL') {
data.isReadOnly = !data.isReadOnly
data.webhook = ""
}
},
handleEditTask(index,data) {
data.isSet = true
if (data.type === 'EMAIL') {
data.isReadOnly = false
data.webhook = ""
} else {
data.isReadOnly = true
}
},
handleAddTaskModel(type) {
let Task = {};

View File

@ -152,10 +152,17 @@ export default {
data.isReadOnly = true;
if (data.type === 'EMAIL') {
data.isReadOnly = !data.isReadOnly
data.webhook = ""
}
},
handleEditTask(index,data) {
data.isSet = true
if (data.type === 'EMAIL') {
data.isReadOnly = false
data.webhook = ""
} else {
data.isReadOnly = true
}
},
handleAddTaskModel(type) {
let Task = {};