| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <template>
- <detail
- :on-manager="onManager"
- :data="data"
- resource="nas"
- :base-info="baseInfo"
- :extra-info="extraInfo"
- statusModule="nas" />
- </template>
- <script>
- import {
- getUserTagColumn,
- getExtTagColumn,
- } from '@/utils/common/detailColumn'
- import {
- getBrandTableColumn,
- getBillingTypeTableColumn,
- getSwitchTableColumn,
- } from '@/utils/common/tableColumn'
- import WindowsMixin from '@/mixins/windows'
- import ColumnsMixin, { getFileSystemTypeColumn, getFileSystemStorageTypeColumn, getCapacityColumn } from '../mixins/columns'
- export default {
- name: 'FileSystemDetail',
- mixins: [WindowsMixin, ColumnsMixin],
- props: {
- data: {
- type: Object,
- required: true,
- },
- onManager: {
- type: Function,
- required: true,
- },
- },
- data () {
- return {
- baseInfo: [
- getUserTagColumn({ onManager: this.onManager, resource: 'file_system', columns: () => this.columns, tipName: this.$t('dictionary.filesystem') }),
- getExtTagColumn({ onManager: this.onManager, resource: 'file_system', columns: () => this.columns, tipName: this.$t('dictionary.filesystem') }),
- getBrandTableColumn(),
- getBillingTypeTableColumn(),
- ],
- extraInfo: [
- {
- title: this.$t('storage.text_80'),
- items: [
- getCapacityColumn(),
- getFileSystemTypeColumn(),
- getFileSystemStorageTypeColumn(),
- {
- field: 'protocol',
- title: this.$t('storage.filesystem.protocol'),
- },
- ],
- },
- {
- title: this.$t('storage.other.infomation'),
- items: [
- getSwitchTableColumn({
- field: 'disable_delete',
- title: this.$t('common.text00076'),
- change: val => {
- this.onManager('update', {
- id: this.data.id,
- managerArgs: {
- data: { disable_delete: val },
- },
- })
- },
- }),
- ],
- },
- ],
- }
- },
- }
- </script>
|