feature(web): 增加日志查看组件
This commit is contained in:
29
service-web/src/main/resources/static/components/log-tab.js
Normal file
29
service-web/src/main/resources/static/components/log-tab.js
Normal 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',
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user