singleActions.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { mapGetters } from 'vuex'
  2. import i18n from '@/locales'
  3. export default {
  4. created () {
  5. this.singleActions = [
  6. {
  7. label: i18n.t('table.action.modify'),
  8. permission: 'loadbalancer_health_checks_update',
  9. action: (obj) => {
  10. this.createDialog('HealthCheckCreateDialog', {
  11. onManager: this.onManager,
  12. data: [obj],
  13. type: 'update',
  14. })
  15. },
  16. },
  17. {
  18. label: i18n.t('network.text_131'),
  19. permission: 'loadbalancer_health_checks_delete',
  20. action: (obj) => {
  21. this.createDialog('DeleteResDialog', {
  22. vm: this,
  23. title: i18n.t('network.text_131'),
  24. name: this.$t('network.ssl_certificate'),
  25. data: [obj],
  26. columns: this.columns,
  27. onManager: this.onManager,
  28. })
  29. },
  30. meta: (obj) => this.$getDeleteResult(obj),
  31. },
  32. ]
  33. },
  34. computed: {
  35. ...mapGetters(['isAdminMode', 'isDomainMode', 'userInfo']),
  36. },
  37. methods: {
  38. },
  39. }