| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- export default {
- created () {
- this.singleActions = [
- {
- label: this.$t('network.text_201'),
- permission: 'inter_vpc_networks_perform_syncstatus',
- action: obj => {
- this.onManager('performAction', {
- steadyStatus: ['running', 'ready'],
- id: obj.id,
- managerArgs: {
- action: 'syncstatus',
- },
- })
- },
- meta: () => ({
- validate: true,
- }),
- },
- {
- label: this.$t('network.vpc_network.manage_vpc'),
- action: (obj) => {
- this.sidePageTriggerHandle(this, 'VpcNetworkSidePage', {
- id: obj.id,
- resource: 'inter_vpc_networks',
- getParams: this.getParam,
- }, {
- tab: 'vpc',
- })
- },
- },
- {
- label: this.$t('network.text_131'),
- permission: 'inter_vpc_networks_perform_delete',
- action: (obj) => {
- this.createDialog('DeleteResDialog', {
- vm: this,
- title: this.$t('network.text_131'),
- name: this.$t('dictionary.vpc_network'),
- data: [obj],
- columns: this.columns,
- onManager: this.onManager,
- })
- },
- meta: (obj) => {
- return this.$getDeleteResult(obj)
- },
- },
- ]
- },
- }
|