singleActions.js 888 B

123456789101112131415161718192021222324252627282930313233343536
  1. import expectStatus from '@/constants/expectStatus'
  2. export default {
  3. created () {
  4. this.singleActions = [
  5. {
  6. label: this.$t('common.text00043'),
  7. permission: 'route_tables_syncstatus',
  8. action: obj => {
  9. this.onManager('performAction', {
  10. steadyStatus: Object.values(expectStatus.routeTable).flat(),
  11. id: obj.id,
  12. managerArgs: {
  13. action: 'syncstatus',
  14. },
  15. })
  16. },
  17. meta: () => ({
  18. validate: true,
  19. }),
  20. },
  21. {
  22. label: this.$t('network.manage_route'),
  23. action: obj => {
  24. this.sidePageTriggerHandle(this, 'RouteTableSidePage', {
  25. id: obj.id,
  26. resource: 'route_tables',
  27. getParams: this.getParam,
  28. }, {
  29. tab: 'route-set',
  30. })
  31. },
  32. },
  33. ]
  34. },
  35. }