refactor(web): 关闭debug

This commit is contained in:
2024-01-02 09:56:36 +08:00
parent 8a5e6f69ac
commit b63263d360
3 changed files with 61 additions and 42 deletions

View File

@@ -2,6 +2,60 @@ function toolTab() {
return {
title: `小工具`,
tab: [
{
type: 'panel',
title: '乱七八糟小工具',
body: [
{
type: 'action',
label: 'SQL日志',
actionType: 'dialog',
dialog: {
title: '日志',
...readOnlyDialogOptions(),
size: 'lg',
body: {
type: 'crud',
api: '${base}/log/query_sql_log',
...crudCommonOptions(),
loadDataOnce: true,
perPage: 50,
headerToolbar: [
"reload",
paginationCommonOptions(undefined, 10),
],
footerToolbar: [
paginationCommonOptions(undefined, 10),
],
columns: [
{
name: 'sql',
label: 'SQL',
},
{
name: 'createTime',
label: '执行时间',
},
],
}
}
},
{
type: 'action',
label: 'ZK节点',
className: 'ml-2',
actionType: 'dialog',
dialog: {
title: '日志',
...readOnlyDialogOptions(),
size: 'lg',
body: {
}
}
}
]
},
{
type: 'form',
title: '查询时间线',
@@ -158,46 +212,6 @@ function toolTab() {
}
]
},
{
type: 'panel',
title: 'SQL日志',
body: [
{
type: 'action',
label: '查看',
actionType: 'dialog',
dialog: {
title: '日志',
...readOnlyDialogOptions(),
size: 'lg',
body: {
type: 'crud',
api: '${base}/log/query_sql_log',
...crudCommonOptions(),
loadDataOnce: true,
perPage: 50,
headerToolbar: [
"reload",
paginationCommonOptions(undefined, 10),
],
footerToolbar: [
paginationCommonOptions(undefined, 10),
],
columns: [
{
name: 'sql',
label: 'SQL',
},
{
name: 'createTime',
label: '执行时间',
},
],
}
}
}
]
}
]
}
}