fix(消息设置):消息设置修改
This commit is contained in:
parent
10b258a9b0
commit
611fc1202a
|
@ -500,6 +500,7 @@ export default {
|
||||||
},
|
},
|
||||||
initForm() {
|
initForm() {
|
||||||
this.result = this.$get('/notice/search/message', response => {
|
this.result = this.$get('/notice/search/message', response => {
|
||||||
|
|
||||||
this.form = response.data
|
this.form = response.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -568,17 +569,20 @@ export default {
|
||||||
handleAddTask(index, data) {
|
handleAddTask(index, data) {
|
||||||
let list = []
|
let list = []
|
||||||
if (data.event && data.userIds.length > 0 && data.type) {
|
if (data.event && data.userIds.length > 0 && data.type) {
|
||||||
|
console.log(data.type)
|
||||||
if (data.type === 'NAIL_ROBOT' || data.type === 'NAIL_ROBOT') {
|
if (data.type === 'NAIL_ROBOT' || data.type === 'NAIL_ROBOT') {
|
||||||
this.$warning(this.$t('organization.message.message_webhook'));
|
if (!data.webhook) {
|
||||||
} else {
|
this.$warning(this.$t('organization.message.message_webhook'));
|
||||||
data.isSet = false
|
} else {
|
||||||
list.push(data)
|
data.isSet = false
|
||||||
let param = {};
|
list.push(data)
|
||||||
param.messageDetail = list
|
let param = {};
|
||||||
this.result = this.$post("/notice/save/message/task", param, () => {
|
param.messageDetail = list
|
||||||
this.initForm()
|
this.result = this.$post("/notice/save/message/task", param, () => {
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.initForm()
|
||||||
})
|
this.$success(this.$t('commons.save_success'));
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$warning(this.$t('organization.message.message'));
|
this.$warning(this.$t('organization.message.message'));
|
||||||
|
|
Loading…
Reference in New Issue