singleActions.js 858 B

12345678910111213141516171819202122232425262728293031
  1. export default {
  2. created () {
  3. this.singleActions = [
  4. {
  5. label: this.$t('table.action.modify'),
  6. permission: 'isolated_device_models_update',
  7. action: obj => {
  8. this.createDialog('UpdateHotPluggableDialog', {
  9. data: [obj],
  10. refresh: this.refresh,
  11. })
  12. },
  13. },
  14. {
  15. label: this.$t('table.action.delete'),
  16. permission: 'isolated_device_models_delete',
  17. action: obj => {
  18. this.createDialog('DeleteResDialog', {
  19. vm: this,
  20. data: [obj],
  21. columns: this.columns,
  22. title: this.$t('table.action.delete'),
  23. name: this.$t('compute.pci.passthrough_device_type'),
  24. onManager: this.onManager,
  25. })
  26. },
  27. meta: obj => this.$getDeleteResult(obj),
  28. },
  29. ]
  30. },
  31. }