singleActions.js 569 B

1234567891011121314151617181920212223242526
  1. import i18n from '@/locales'
  2. export default {
  3. created () {
  4. this.singleActions = [
  5. {
  6. label: i18n.t('storage.text_100'),
  7. permission: 'tablestores_perform_syncstatus',
  8. action: (row) => {
  9. this.onManager('performAction', {
  10. steadyStatus: ['running'],
  11. id: row.id,
  12. managerArgs: {
  13. action: 'syncstatus',
  14. },
  15. })
  16. },
  17. meta: row => {
  18. return {
  19. validate: row.status !== 'sync_status',
  20. }
  21. },
  22. },
  23. ]
  24. },
  25. }