|
|
@ -18,7 +18,6 @@ |
|
|
|
import { defineComponent, onMounted, toRefs, watch } from 'vue' |
|
|
|
import { defineComponent, onMounted, toRefs, watch } from 'vue' |
|
|
|
import { |
|
|
|
import { |
|
|
|
NButton, |
|
|
|
NButton, |
|
|
|
NCard, |
|
|
|
|
|
|
|
NDataTable, |
|
|
|
NDataTable, |
|
|
|
NIcon, |
|
|
|
NIcon, |
|
|
|
NInput, |
|
|
|
NInput, |
|
|
@ -29,6 +28,7 @@ import { SearchOutlined } from '@vicons/antd' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useTable } from './use-table' |
|
|
|
import { useTable } from './use-table' |
|
|
|
import K8sNamespaceModal from './components/k8s-namespace-modal' |
|
|
|
import K8sNamespaceModal from './components/k8s-namespace-modal' |
|
|
|
|
|
|
|
import Card from '@/components/card' |
|
|
|
|
|
|
|
|
|
|
|
const k8sNamespaceManage = defineComponent({ |
|
|
|
const k8sNamespaceManage = defineComponent({ |
|
|
|
name: 'k8s-namespace-manage', |
|
|
|
name: 'k8s-namespace-manage', |
|
|
@ -102,7 +102,7 @@ const k8sNamespaceManage = defineComponent({ |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<NSpace vertical> |
|
|
|
<NSpace vertical> |
|
|
|
<NCard size='small'> |
|
|
|
<Card> |
|
|
|
<NSpace justify='space-between'> |
|
|
|
<NSpace justify='space-between'> |
|
|
|
<NButton size='small' type='primary' onClick={handleModalChange}> |
|
|
|
<NButton size='small' type='primary' onClick={handleModalChange}> |
|
|
|
{t('security.k8s_namespace.create_namespace')} |
|
|
|
{t('security.k8s_namespace.create_namespace')} |
|
|
@ -121,8 +121,8 @@ const k8sNamespaceManage = defineComponent({ |
|
|
|
</NButton> |
|
|
|
</NButton> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NCard> |
|
|
|
</Card> |
|
|
|
<NCard size='small'> |
|
|
|
<Card title={t('menu.k8s_namespace_manage')}> |
|
|
|
<NSpace vertical> |
|
|
|
<NSpace vertical> |
|
|
|
<NDataTable |
|
|
|
<NDataTable |
|
|
|
loading={loadingRef} |
|
|
|
loading={loadingRef} |
|
|
@ -143,7 +143,7 @@ const k8sNamespaceManage = defineComponent({ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NCard> |
|
|
|
</Card> |
|
|
|
<K8sNamespaceModal |
|
|
|
<K8sNamespaceModal |
|
|
|
showModalRef={this.showModalRef} |
|
|
|
showModalRef={this.showModalRef} |
|
|
|
statusRef={this.statusRef} |
|
|
|
statusRef={this.statusRef} |
|
|
|