fix: 修复收集用户任务创建不填写interval报错的问题

This commit is contained in:
Bai
2021-05-17 18:18:32 +08:00
committed by Jiangjie.Bai
parent ebb8af42f2
commit 65c6922621

View File

@@ -17,10 +17,6 @@ export default {
[this.$t('common.Other'), ['comment']]
],
url: '/api/v1/xpack/gathered-user/tasks/',
initial: {
is_periodic: true,
interval: 24
},
hasDetailInMsg: false,
fieldsMeta: {
crontab: {
@@ -48,12 +44,16 @@ export default {
}
}
},
'is_periodic': {
is_periodic: {
type: 'switch'
}
},
createSuccessNextRoute: { name: 'GatherUserListIndex' },
updateSuccessNextRoute: { name: 'GatherUserListIndex' }
updateSuccessNextRoute: { name: 'GatherUserListIndex' },
cleanFormValue(values) {
values.interval = values.interval || null
return values
}
}
}
}