| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import {
- getSetPublicAction,
- } from '@/utils/common/tableActions'
- export default {
- created () {
- this.singleActions = [
- {
- label: this.$t('compute.perform_sync_status'),
- permission: 'backupstorages_perform_syncstatus',
- action: obj => {
- this.onManager('performAction', {
- steadyStatus: ['running', 'ready'],
- id: obj.id,
- managerArgs: {
- action: 'syncstatus',
- },
- })
- },
- meta: () => ({
- validate: true,
- }),
- },
- {
- label: this.$t('compute.text_352'),
- actions: obj => {
- return [
- getSetPublicAction(this, {
- name: this.$t('dictionary.backup_storage'),
- scope: 'domain',
- resource: 'backupstorages',
- }, {
- permission: 'backupstorages_perform_public',
- }),
- {
- label: this.$t('compute.text_295'),
- permission: 'backupstorages_update',
- action: obj => {
- this.createDialog('BackupStorageUpdateDialog', {
- vm: this,
- data: [obj],
- columns: this.columns,
- name: this.$t('compute.backup_storage'),
- title: this.$t('common_641', [this.$t('compute.backup_storage')]),
- onManager: this.onManager,
- refresh: this.refresh,
- action: this.$t('compute.text_295'),
- })
- },
- },
- {
- label: this.$t('compute.perform_delete'),
- permission: 'backupstorages_delete',
- action: obj => {
- this.createDialog('DeleteResDialog', {
- vm: this,
- data: [obj],
- columns: this.columns,
- title: this.$t('compute.perform_delete'),
- onManager: this.onManager,
- name: this.$t('compute.backup_storage'),
- })
- },
- meta: obj => {
- return this.$getDeleteResult(obj)
- },
- },
- ]
- },
- },
- ]
- },
- }
|