Merge branch 'dev'

This commit is contained in:
zlt2000
2023-04-09 17:40:28 +08:00
9 changed files with 74 additions and 5 deletions
+4
View File
@@ -13,6 +13,10 @@
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-log-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-common-spring-boot-starter</artifactId>
+4
View File
@@ -14,6 +14,10 @@
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-log-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-common-spring-boot-starter</artifactId>
@@ -15,6 +15,10 @@
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-log-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-common-spring-boot-starter</artifactId>
+4
View File
@@ -14,6 +14,10 @@
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-log-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-common-spring-boot-starter</artifactId>
@@ -12,7 +12,6 @@ import com.central.common.annotation.LoginUser;
import com.central.common.constant.CommonConstant;
import com.central.common.model.*;
import com.central.common.utils.ExcelUtil;
//import com.central.log.annotation.AuditLog;
import com.central.log.annotation.AuditLog;
import com.central.search.client.service.IQueryService;
import com.central.search.model.LogicDelDto;
+5 -4
View File
@@ -10,10 +10,6 @@
<description>公共通用组件</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-log-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-extension</artifactId>
@@ -97,5 +93,10 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
</dependency>
</dependencies>
</project>
+4
View File
@@ -14,6 +14,10 @@
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-log-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-loadbalancer-spring-boot-starter</artifactId>
+4
View File
@@ -13,6 +13,10 @@
<groupId>com.zlt</groupId>
<artifactId>zlt-config</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-log-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.zlt</groupId>
<artifactId>zlt-common-spring-boot-starter</artifactId>
@@ -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>