singleActions.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import i18n from '@/locales'
  2. export default {
  3. created () {
  4. this.singleActions = [
  5. {
  6. label: i18n.t('iam.manage_res', [i18n.t('dictionary.project')]),
  7. action: obj => {
  8. this.handleOpenSidepage(obj, 'project-list')
  9. },
  10. meta: obj => {
  11. const ret = {
  12. validate: true,
  13. }
  14. return ret
  15. },
  16. },
  17. {
  18. label: i18n.t('iam.manage_res', [i18n.t('dictionary.user')]),
  19. action: obj => {
  20. this.handleOpenSidepage(obj, 'user-list')
  21. },
  22. meta: obj => {
  23. const ret = {
  24. validate: true,
  25. }
  26. return ret
  27. },
  28. },
  29. {
  30. label: i18n.t('system.text_129'),
  31. permission: 'groups_delete',
  32. action: obj => {
  33. this.createDialog('DeleteResDialog', {
  34. vm: this,
  35. data: [obj],
  36. columns: this.columns,
  37. title: i18n.t('system.text_129'),
  38. onManager: this.onManager,
  39. name: this.$t('dictionary.group'),
  40. })
  41. },
  42. meta: obj => this.$getDeleteResult(obj),
  43. },
  44. ]
  45. },
  46. }