mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-26 06:58:53 +00:00
Merge pull request #3485 from jumpserver/pr@dev@gather_account
feat: 账号收集添加资产账号信息变化通知
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { GenericCreateUpdatePage } from '@/layout/components'
|
import { GenericCreateUpdatePage } from '@/layout/components'
|
||||||
import { CronTab } from '@/components'
|
import { CronTab } from '@/components'
|
||||||
|
import i18n from '@/i18n/i18n'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -15,7 +16,7 @@ export default {
|
|||||||
fields: [
|
fields: [
|
||||||
[this.$t('common.Basic'), ['name', 'nodes']],
|
[this.$t('common.Basic'), ['name', 'nodes']],
|
||||||
[this.$t('xpack.Timer'), ['is_periodic', 'crontab', 'interval']],
|
[this.$t('xpack.Timer'), ['is_periodic', 'crontab', 'interval']],
|
||||||
[this.$t('common.Other'), ['is_sync_account', 'is_active', 'comment']]
|
[this.$t('common.Other'), ['is_sync_account', 'is_active', 'recipients', 'comment']]
|
||||||
],
|
],
|
||||||
url: '/api/v1/accounts/gather-account-automations/',
|
url: '/api/v1/accounts/gather-account-automations/',
|
||||||
hasDetailInMsg: false,
|
hasDetailInMsg: false,
|
||||||
@@ -54,6 +55,19 @@ export default {
|
|||||||
},
|
},
|
||||||
is_periodic: {
|
is_periodic: {
|
||||||
type: 'switch'
|
type: 'switch'
|
||||||
|
},
|
||||||
|
recipients: {
|
||||||
|
label: i18n.t('accounts.AccountChangeSecret.Addressee'),
|
||||||
|
helpText: i18n.t('accounts.AccountChangeSecret.OnlyMailSend'),
|
||||||
|
el: {
|
||||||
|
value: [],
|
||||||
|
ajax: {
|
||||||
|
url: '/api/v1/users/users/?fields_size=mini',
|
||||||
|
transformOption: (item) => {
|
||||||
|
return { label: item.name + '(' + item.username + ')', value: item.id }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createSuccessNextRoute: { name: 'AccountGatherList' },
|
createSuccessNextRoute: { name: 'AccountGatherList' },
|
||||||
|
Reference in New Issue
Block a user