feature(web): 增加日志查看组件

This commit is contained in:
2023-05-25 14:14:42 +08:00
parent ac2bdbc2df
commit 1dc9d69310
3 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
function logTab() {
return {
title: '运行中',
tab: [
{
type: 'service',
api: {
method: 'GET',
url: '${base}/log/query_compaction_log',
data: {
flink_job_id: '1646351885991305217',
alias: 'dz_mb_sys_login_log',
}
},
body: [
{
disabled: true,
type: 'editor',
name: 'detail',
label: '压缩日志',
options: {
wordWrap: 'on',
}
}
]
},
],
}
}

View File

@@ -40,6 +40,7 @@
<script src="components/cloud-tab.js"></script>
<script src="components/queue-tab.js"></script>
<script src="components/running-tab.js"></script>
<script src="components/log-tab.js"></script>
<script type="text/javascript">
(function () {
let amis = amisRequire('amis/embed')
@@ -53,6 +54,7 @@
unmountOnExit: true,
tabsMode: 'strong',
tabs: [
// logTab(),
// runningTab(),
tableTab(),
queueTab(),