fix: 定时执行控制定期执行显示隐藏

This commit is contained in:
“怀磊”
2021-10-27 19:04:43 +08:00
committed by xinwen
parent 233aaaa82b
commit dc0bb5d557

View File

@@ -183,21 +183,13 @@ function getFields() {
type: 'switch'
}
// const crontab = {
// label: i18n.t('xpack.RegularlyPerform'),
// hidden: (formValue) => {
// return formValue.is_periodic === false
// },
// helpText: i18n.t('xpack.HelpText.CrontabOfCreateUpdatePage')
// }
const crontab = {
type: 'cronTab',
component: CronTab,
rules: [
{ required: false }
],
label: i18n.t('xpack.RegularlyPerform'),
hidden: (formValue) => {
return formValue.is_periodic === false
},
helpText: i18n.t('xpack.HelpText.CrontabOfCreateUpdatePage')
}