singleActions.js 882 B

123456789101112131415161718192021222324252627282930313233
  1. export default {
  2. created () {
  3. this.singleActions = [
  4. {
  5. label: this.$t('table.action.modify'),
  6. action: obj => {
  7. this.createDialog('ContainerSecretUpdateDialog', {
  8. data: [obj],
  9. callback: () => {
  10. if (this.list) this.list.refresh()
  11. if (this.refresh) this.refresh()
  12. },
  13. })
  14. },
  15. meta: () => ({ validate: true }),
  16. },
  17. {
  18. label: this.$t('table.action.delete'),
  19. action: obj => {
  20. this.createDialog('DeleteResDialog', {
  21. vm: this,
  22. data: [obj],
  23. columns: this.columns,
  24. title: this.$t('table.action.delete'),
  25. name: this.$t('aice.container_secret'),
  26. onManager: this.onManager,
  27. })
  28. },
  29. meta: () => ({ validate: true }),
  30. },
  31. ]
  32. },
  33. }