Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
4593351c
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
704
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4593351c
编写于
5月 30, 2022
作者:
S
songjianet
提交者:
devosend
6月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Fix][UI] Display the result page when the DB page has no data. (#10298)
(cherry picked from commit
2e6d3f51
)
上级
32c8b7c9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
3 deletion
+17
-3
dolphinscheduler-ui/src/locales/en_US/monitor.ts
dolphinscheduler-ui/src/locales/en_US/monitor.ts
+4
-1
dolphinscheduler-ui/src/locales/zh_CN/monitor.ts
dolphinscheduler-ui/src/locales/zh_CN/monitor.ts
+4
-1
dolphinscheduler-ui/src/views/monitor/servers/db/index.tsx
dolphinscheduler-ui/src/views/monitor/servers/db/index.tsx
+9
-1
未找到文件。
dolphinscheduler-ui/src/locales/en_US/monitor.ts
浏览文件 @
4593351c
...
...
@@ -46,7 +46,10 @@ export default {
health_state
:
'
Health State
'
,
max_connections
:
'
Max Connections
'
,
threads_connections
:
'
Threads Connections
'
,
threads_running_connections
:
'
Threads Running Connections
'
threads_running_connections
:
'
Threads Running Connections
'
,
db_no_data_result_title
:
'
No DB Nodes Exist
'
,
db_no_data_result_desc
:
'
Currently, there are no DB nodes exist, please create a DB node and refresh this page
'
},
statistics
:
{
command_number_of_waiting_for_running
:
...
...
dolphinscheduler-ui/src/locales/zh_CN/monitor.ts
浏览文件 @
4593351c
...
...
@@ -46,7 +46,10 @@ export default {
health_state
:
'
健康状态
'
,
max_connections
:
'
最大连接数
'
,
threads_connections
:
'
当前连接数
'
,
threads_running_connections
:
'
数据库当前活跃连接数
'
threads_running_connections
:
'
数据库当前活跃连接数
'
,
db_no_data_result_title
:
'
DB节点不存在
'
,
db_no_data_result_desc
:
'
目前没有任何DB节点,请先创建DB节点,再访问该页面
'
},
statistics
:
{
command_number_of_waiting_for_running
:
'
待执行的命令数
'
,
...
...
dolphinscheduler-ui/src/views/monitor/servers/db/index.tsx
浏览文件 @
4593351c
...
...
@@ -21,6 +21,7 @@ import { useI18n } from 'vue-i18n'
import
{
useDatabase
}
from
'
@/views/monitor/servers/db/use-database
'
import
{
CheckCircleOutlined
,
CloseCircleOutlined
}
from
'
@vicons/antd
'
import
Card
from
'
@/components/card
'
import
Result
from
'
@/components/result
'
import
styles
from
'
./index.module.scss
'
import
type
{
Ref
}
from
'
vue
'
import
type
{
DatabaseRes
}
from
'
@/service/modules/monitor/types
'
...
...
@@ -37,7 +38,14 @@ const db = defineComponent({
render
()
{
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'
>
<
NGi
>
<
Card
title
=
{
t
(
'
monitor.db.health_state
'
)
}
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录