singleActions.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. export default {
  2. created () {
  3. this.singleActions = [
  4. {
  5. label: this.$t('network.text_201'),
  6. permission: 'vpc_peering_connections_perform_syncstatus',
  7. action: obj => {
  8. this.onManager('performAction', {
  9. steadyStatus: ['running', 'ready'],
  10. id: obj.id,
  11. managerArgs: {
  12. action: 'syncstatus',
  13. },
  14. })
  15. },
  16. meta: () => ({
  17. validate: true,
  18. }),
  19. },
  20. // {
  21. // label: this.$t('network.vpc_network.manage_vpc'),
  22. // action: (obj) => {
  23. // this.sidePageTriggerHandle(this, 'VpcPeerConnectSidePage', {
  24. // id: obj.id,
  25. // resource: 'vpc_peering_connections',
  26. // getParams: this.getParam,
  27. // }, {
  28. // tab: 'vpc',
  29. // })
  30. // },
  31. // },
  32. {
  33. label: this.$t('network.text_131'),
  34. permission: 'vpc_peering_connections_delete',
  35. action: (obj) => {
  36. this.createDialog('DeleteResDialog', {
  37. vm: this,
  38. title: this.$t('network.text_131'),
  39. name: this.$t('dictionary.vpc_network'),
  40. data: [obj],
  41. columns: this.columns,
  42. onManager: this.onManager,
  43. })
  44. },
  45. meta: (obj) => {
  46. return this.$getDeleteResult(obj)
  47. },
  48. },
  49. ]
  50. },
  51. }