singleActions.js 868 B

1234567891011121314151617181920212223242526272829303132
  1. import { getDomainChangeOwnerAction, getSetPublicAction } from '@/utils/common/tableActions'
  2. export default {
  3. created () {
  4. this.singleActions = [
  5. getDomainChangeOwnerAction(this, {
  6. name: this.$t('dictionary.networkinterface'),
  7. resource: 'networkinterfaces',
  8. }),
  9. getSetPublicAction(this, {
  10. name: this.$t('dictionary.networkinterface'),
  11. scope: 'domain',
  12. resource: 'networkinterfaces',
  13. }),
  14. // {
  15. // label: '同步状态',
  16. // action: obj => {
  17. // this.onManager('performAction', {
  18. // steadyStatus: ['running', 'ready'],
  19. // id: obj.id,
  20. // managerArgs: {
  21. // action: 'syncstatus',
  22. // },
  23. // })
  24. // },
  25. // meta: () => ({
  26. // validate: true,
  27. // }),
  28. // },
  29. ]
  30. },
  31. }