-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from zlt2000/dev
Dev
- Loading branch information
Showing
11 changed files
with
77 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
zlt-web/layui-web/src/main/resources/static/pages/log/traceLog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!-- 数据表格 --> | ||
<table class="layui-table" id="trace-table" lay-filter="trace-table"></table> | ||
|
||
<script> | ||
layui.use(['config', 'admin', 'table', 'treetable'],function () { | ||
let layer = layui.layer; | ||
let treetable = layui.treetable; | ||
let config = layui.config; | ||
let admin = layui.admin; | ||
|
||
let traceId = admin.getTempData('traceId'); | ||
// 渲染表格 | ||
let renderTable = function () { | ||
layer.load(2); | ||
treetable.render({ | ||
treeColIndex: 1, | ||
treeSpid: '-1', | ||
treeIdName: 'spanId', | ||
treePidName: 'parentId', | ||
elem: '#trace-table', | ||
url: config.base_server + 'api-log/traceLog', | ||
where: { | ||
access_token: config.getToken().access_token, | ||
queryStr: 'traceId:'+traceId, | ||
sortCol: 'timestamp', | ||
sortOrder: 'ASC' | ||
}, | ||
page: false, | ||
cols: [[ | ||
{type: 'numbers'}, | ||
{field: 'appName', sort: true, title: '应用名', width: 220}, | ||
{field: 'spanId', sort: false, title: 'spanId', width: 130}, | ||
{field: 'serverIp', sort: true, title: '服务ip', width: 150}, | ||
{field: 'serverPort', sort: true, title: '服务端口', width: 120} | ||
]], | ||
done: function() { | ||
layer.closeAll('loading'); | ||
} | ||
}); | ||
}; | ||
if (traceId) { | ||
renderTable(); | ||
} | ||
}); | ||
</script> |