|
|
@ -21,7 +21,6 @@ import { useStatistics } from './use-statistics' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import Card from '@/components/card' |
|
|
|
import Card from '@/components/card' |
|
|
|
import styles from './index.module.scss' |
|
|
|
import styles from './index.module.scss' |
|
|
|
import type { TaskQueueRes } from '@/service/modules/projects-analysis/types' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const statistics = defineComponent({ |
|
|
|
const statistics = defineComponent({ |
|
|
|
name: 'statistics', |
|
|
|
name: 'statistics', |
|
|
@ -36,7 +35,7 @@ const statistics = defineComponent({ |
|
|
|
const { t, statisticsRef } = this |
|
|
|
const { t, statisticsRef } = this |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<NGrid x-gap='12' y-gap='8' cols='2 xl:4' responsive='screen'> |
|
|
|
<NGrid x-gap='12' y-gap='8' cols='2' responsive='screen'> |
|
|
|
<NGi> |
|
|
|
<NGi> |
|
|
|
<Card |
|
|
|
<Card |
|
|
|
title={t( |
|
|
|
title={t( |
|
|
@ -69,30 +68,6 @@ const statistics = defineComponent({ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Card> |
|
|
|
</Card> |
|
|
|
</NGi> |
|
|
|
</NGi> |
|
|
|
<NGi> |
|
|
|
|
|
|
|
<Card title={t('monitor.statistics.tasks_number_of_waiting_running')}> |
|
|
|
|
|
|
|
<div class={styles.connections}> |
|
|
|
|
|
|
|
{Object.keys(statisticsRef.task).length > 0 && ( |
|
|
|
|
|
|
|
<NNumberAnimation |
|
|
|
|
|
|
|
from={0} |
|
|
|
|
|
|
|
to={(statisticsRef.task as TaskQueueRes).taskQueue} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</Card> |
|
|
|
|
|
|
|
</NGi> |
|
|
|
|
|
|
|
<NGi> |
|
|
|
|
|
|
|
<Card title={t('monitor.statistics.task_number_of_ready_to_kill')}> |
|
|
|
|
|
|
|
<div class={styles.connections}> |
|
|
|
|
|
|
|
{Object.keys(statisticsRef.task).length > 0 && ( |
|
|
|
|
|
|
|
<NNumberAnimation |
|
|
|
|
|
|
|
from={0} |
|
|
|
|
|
|
|
to={(statisticsRef.task as TaskQueueRes).taskKill} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
)} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</Card> |
|
|
|
|
|
|
|
</NGi> |
|
|
|
|
|
|
|
</NGrid> |
|
|
|
</NGrid> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|