| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import {
- getNameDescriptionTableColumn,
- getStatusTableColumn,
- getPublicScopeTableColumn,
- getProjectDomainTableColumn,
- getBrandTableColumn,
- getAccountTableColumn,
- getTagTableColumn,
- getTimeTableColumn,
- } from '@/utils/common/tableColumn'
- import i18n from '@/locales'
- export default {
- created () {
- this.columns = [
- getNameDescriptionTableColumn({
- onManager: this.onManager,
- hideField: true,
- // addLock: true,
- slotCallback: row => {
- return (
- <side-page-trigger onTrigger={ () => this.handleOpenSidepage(row) }>{ row.name }</side-page-trigger>
- )
- },
- }),
- getStatusTableColumn({ statusModule: 'globalVpc', vm: this }),
- getTagTableColumn({ onManager: this.onManager, resource: 'network_globalvpcs', columns: () => this.columns, tipName: this.$t('dictionary.globalvpc') }),
- getBrandTableColumn(),
- {
- field: 'vpc_count',
- title: i18n.t('network.text_243'),
- width: 100,
- },
- getAccountTableColumn(),
- getPublicScopeTableColumn({ vm: this, resource: 'globalvpcs' }),
- getProjectDomainTableColumn(),
- getTimeTableColumn(),
- ]
- },
- }
|