| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <template>
- <detail
- :showDesc="false"
- :showName="false"
- :hiddenKeys="['tenant', 'updated_at']"
- :onManager="onManager"
- :data="data"
- :base-info="baseInfo" />
- </template>
- <script>
- import { k8sStatusColumn } from '@K8S/utils/tableColumns'
- import WindowsMixin from '@/mixins/windows'
- export default {
- name: 'K8sReleaseDetail',
- mixins: [WindowsMixin],
- props: {
- data: {
- type: Object,
- required: true,
- },
- onManager: {
- type: Function,
- required: true,
- },
- },
- data () {
- return {
- baseInfo: [
- {
- field: 'name',
- title: this.$t('helm.text_16'),
- slots: {
- default: ({ row }) => {
- return [
- <div class='text-truncate'>
- <list-body-cell-wrap copy row={ this.data } onManager={ this.onManager } field='name' title={ row.name } />
- </div>,
- ]
- },
- },
- },
- {
- field: 'metadata',
- title: this.$t('helm.text_75'),
- formatter: ({ row }) => `${row.chart}/${row.chart_version || ''}`,
- },
- k8sStatusColumn({ statusModule: 'release' }),
- {
- field: 'cluster',
- title: this.$t('helm.text_31'),
- },
- {
- field: 'namespace',
- title: this.$t('helm.text_32'),
- },
- {
- field: 'version',
- title: this.$t('helm.text_76'),
- },
- ],
- }
- },
- }
- </script>
|