mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
fix: 修复收集用户任务创建不填写interval报错的问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user