mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 04:08:31 +08:00
enhance form verify (#5696)
This commit is contained in:
parent
2d71930837
commit
3d8d1ebe67
@ -109,6 +109,10 @@
|
||||
this.$message.warning(`${i18n.$t('Please enter group name')}`)
|
||||
return false
|
||||
}
|
||||
if (this.alertInstanceIds) {
|
||||
this.$message.warning(`${i18n.$t('Select Alarm plugin instance')}`)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
},
|
||||
_submit () {
|
||||
|
@ -111,6 +111,10 @@
|
||||
this.$message.warning(`${i18n.$t('Please enter group name')}`)
|
||||
return false
|
||||
}
|
||||
if (!this.pluginDefineId) {
|
||||
this.$message.warning(`${i18n.$t('Select Alarm plugin')}`)
|
||||
return false
|
||||
}
|
||||
return true
|
||||
},
|
||||
// Select plugin
|
||||
|
@ -231,10 +231,12 @@ export default {
|
||||
'Alarm instance name': 'Alarm instance name',
|
||||
'Alarm plugin name': 'Alarm plugin name',
|
||||
'Select plugin': 'Select plugin',
|
||||
'Select Alarm plugin': 'Please select an Alarm plugin',
|
||||
'Please enter group name': 'Please enter group name',
|
||||
'Instance parameter exception': 'Instance parameter exception',
|
||||
'Group Type': 'Group Type',
|
||||
'Alarm plugin instance': 'Alarm plugin instance',
|
||||
'Select Alarm plugin instance': 'Please select an Alarm plugin instance',
|
||||
Remarks: 'Remarks',
|
||||
SMS: 'SMS',
|
||||
'Managing Users': 'Managing Users',
|
||||
|
@ -231,10 +231,12 @@ export default {
|
||||
'Alarm instance name': '告警实例名称',
|
||||
'Alarm plugin name': '告警插件名称',
|
||||
'Select plugin': '选择插件',
|
||||
'Select Alarm plugin': '请选择告警插件',
|
||||
'Please enter group name': '请输入组名称',
|
||||
'Instance parameter exception': '实例参数异常',
|
||||
'Group Type': '组类型',
|
||||
'Alarm plugin instance': '告警插件实例',
|
||||
'Select Alarm plugin instance': '请选择告警插件实例',
|
||||
Remarks: '备注',
|
||||
SMS: '短信',
|
||||
'Managing Users': '管理用户',
|
||||
|
Loading…
Reference in New Issue
Block a user