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