|
|
@ -21,6 +21,7 @@ import { useI18n } from 'vue-i18n' |
|
|
|
import { useDatabase } from '@/views/monitor/servers/db/use-database' |
|
|
|
import { useDatabase } from '@/views/monitor/servers/db/use-database' |
|
|
|
import { CheckCircleOutlined, CloseCircleOutlined } from '@vicons/antd' |
|
|
|
import { CheckCircleOutlined, CloseCircleOutlined } from '@vicons/antd' |
|
|
|
import Card from '@/components/card' |
|
|
|
import Card from '@/components/card' |
|
|
|
|
|
|
|
import Result from '@/components/result' |
|
|
|
import styles from './index.module.scss' |
|
|
|
import styles from './index.module.scss' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { DatabaseRes } from '@/service/modules/monitor/types' |
|
|
|
import type { DatabaseRes } from '@/service/modules/monitor/types' |
|
|
@ -37,7 +38,14 @@ const db = defineComponent({ |
|
|
|
render() { |
|
|
|
render() { |
|
|
|
const { t, databaseRef } = this |
|
|
|
const { t, databaseRef } = this |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return databaseRef.length < 1 ? ( |
|
|
|
|
|
|
|
<Result |
|
|
|
|
|
|
|
title={t('monitor.db.db_no_data_result_title')} |
|
|
|
|
|
|
|
description={t('monitor.db.db_no_data_result_desc')} |
|
|
|
|
|
|
|
status={'info'} |
|
|
|
|
|
|
|
size={'medium'} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
) : ( |
|
|
|
<NGrid x-gap='12' y-gap='8' cols='2 2xl:4' responsive='screen'> |
|
|
|
<NGrid x-gap='12' y-gap='8' cols='2 2xl:4' responsive='screen'> |
|
|
|
<NGi> |
|
|
|
<NGi> |
|
|
|
<Card title={t('monitor.db.health_state')}> |
|
|
|
<Card title={t('monitor.db.health_state')}> |
|
|
|