未验证 提交 1f8c59b3 编写于 作者: S songjianet 提交者: GitHub

[Feature][UI] Disabled statistics. (#9935)

* [Feature][UI] Disabled statistics.

* [Feature][UI] Disabled statistics.

* [Feature][UI] Disabled statistics.
上级 40ab72d3
......@@ -180,9 +180,7 @@ const monitor = {
statistics: {
command_number_of_waiting_for_running:
'Command Number Of Waiting For Running',
failure_command_number: 'Failure Command Number',
tasks_number_of_waiting_running: 'Tasks Number Of Waiting Running',
task_number_of_ready_to_kill: 'Task Number Of Ready To Kill'
failure_command_number: 'Failure Command Number'
},
audit_log: {
user_name: 'User Name',
......
......@@ -178,9 +178,7 @@ const monitor = {
},
statistics: {
command_number_of_waiting_for_running: '待执行的命令数',
failure_command_number: '执行失败的命令数',
tasks_number_of_waiting_running: '待运行任务数',
task_number_of_ready_to_kill: '待杀死任务数'
failure_command_number: '执行失败的命令数'
},
audit_log: {
user_name: '用户名称',
......
......@@ -21,7 +21,6 @@ import { useStatistics } from './use-statistics'
import { useI18n } from 'vue-i18n'
import Card from '@/components/card'
import styles from './index.module.scss'
import type { TaskQueueRes } from '@/service/modules/projects-analysis/types'
const statistics = defineComponent({
name: 'statistics',
......@@ -36,7 +35,7 @@ const statistics = defineComponent({
const { t, statisticsRef } = this
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>
<Card
title={t(
......@@ -69,30 +68,6 @@ const statistics = defineComponent({
</div>
</Card>
</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>
)
}
......
......@@ -55,7 +55,9 @@ export function useHttp(model: { [field: string]: any }): IJsonItem[] {
if (!value) {
return new Error(t('project.node.http_url_tips'))
}
if (value.search(new RegExp('http[s]{0,1}:\/\/([\w.]+\/?)\S*', 'i'))) {
if (
value.search(new RegExp(/http[s]{0,1}:\/\/([\w.]+\/?)\S*/, 'i'))
) {
return new Error(t('project.node.http_url_validator'))
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册