|
|
@ -128,7 +128,7 @@ |
|
|
|
<x-option |
|
|
|
<x-option |
|
|
|
v-for="city in notifyGroupList" |
|
|
|
v-for="city in notifyGroupList" |
|
|
|
:key="city.id" |
|
|
|
:key="city.id" |
|
|
|
:value="city" |
|
|
|
:value="city.id" |
|
|
|
:label="city.code"> |
|
|
|
:label="city.code"> |
|
|
|
</x-option> |
|
|
|
</x-option> |
|
|
|
</x-select> |
|
|
|
</x-select> |
|
|
@ -177,7 +177,7 @@ |
|
|
|
warningTypeList: warningTypeList, |
|
|
|
warningTypeList: warningTypeList, |
|
|
|
warningType: 'NONE', |
|
|
|
warningType: 'NONE', |
|
|
|
notifyGroupList: [], |
|
|
|
notifyGroupList: [], |
|
|
|
warningGroupId: {}, |
|
|
|
warningGroupId: '', |
|
|
|
spinnerLoading: false, |
|
|
|
spinnerLoading: false, |
|
|
|
scheduleTime: '', |
|
|
|
scheduleTime: '', |
|
|
|
crontab: '0 0 * * * ? *', |
|
|
|
crontab: '0 0 * * * ? *', |
|
|
@ -229,7 +229,7 @@ |
|
|
|
failureStrategy: this.failureStrategy, |
|
|
|
failureStrategy: this.failureStrategy, |
|
|
|
warningType: this.warningType, |
|
|
|
warningType: this.warningType, |
|
|
|
processInstancePriority: this.processInstancePriority, |
|
|
|
processInstancePriority: this.processInstancePriority, |
|
|
|
warningGroupId: _.isEmpty(this.warningGroupId) ? 0 : this.warningGroupId.id, |
|
|
|
warningGroupId: this.warningGroupId =='' ? 0 : this.warningGroupId, |
|
|
|
receivers: this.receivers.join(',') || '', |
|
|
|
receivers: this.receivers.join(',') || '', |
|
|
|
receiversCc: this.receiversCc.join(',') || '', |
|
|
|
receiversCc: this.receiversCc.join(',') || '', |
|
|
|
workerGroupId: this.workerGroupId |
|
|
|
workerGroupId: this.workerGroupId |
|
|
@ -331,16 +331,16 @@ |
|
|
|
this.workerGroupId = item.workerGroupId || -1 |
|
|
|
this.workerGroupId = item.workerGroupId || -1 |
|
|
|
this._getNotifyGroupList().then(() => { |
|
|
|
this._getNotifyGroupList().then(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
let list = _.filter(this.notifyGroupList, v => v.id === item.warningGroupId) |
|
|
|
// let list = _.filter(this.notifyGroupList, v => v.id === item.warningGroupId) |
|
|
|
this.warningGroupId = list.length && list[0] || { id: 0 } |
|
|
|
this.warningGroupId = item.warningGroupId |
|
|
|
}) |
|
|
|
}) |
|
|
|
}).catch(() => this.warningGroupId = { id: 0 }) |
|
|
|
}).catch(() => this.warningGroupId = '') |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this._getNotifyGroupList().then(() => { |
|
|
|
this._getNotifyGroupList().then(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.warningGroupId = { id: 0 } |
|
|
|
this.warningGroupId = '' |
|
|
|
}) |
|
|
|
}) |
|
|
|
}).catch(() => this.warningGroupId = { id: 0 }) |
|
|
|
}).catch(() => this.warningGroupId = '') |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { vCrontab, mEmail, mPriority, mWorkerGroups } |
|
|
|
components: { vCrontab, mEmail, mPriority, mWorkerGroups } |
|
|
|