reactor:2.5.0

1. 优化前端列表间隙
This commit is contained in:
byteblogs168 2023-12-07 23:06:36 +08:00
parent ab37791ea2
commit b503e44682
5 changed files with 24 additions and 22 deletions

View File

@ -54,7 +54,7 @@ import java.util.stream.Collectors;
@Slf4j
public class DashBoardServiceImpl implements DashBoardService {
public static final String URL = "http://{0}:{1}/dashboard/consumer/bucket";
public static final String URL = "http://{0}:{1}/{2}/dashboard/consumer/bucket";
@Autowired
private ServerNodeMapper serverNodeMapper;
@ -180,7 +180,8 @@ public class DashBoardServiceImpl implements DashBoardService {
ServerNodeExtAttrs serverNodeExtAttrs = JsonUtil.parseObject(serverNodeResponseVO.getExtAttrs(), ServerNodeExtAttrs.class);
try {
// 从远程节点取
String format = MessageFormat.format(URL, serverNodeResponseVO.getHostIp(), serverNodeExtAttrs.getWebPort().toString());
String format = MessageFormat
.format(URL, serverNodeResponseVO.getHostIp(), serverNodeExtAttrs.getWebPort().toString(), serverNodeResponseVO.getContextPath());
Result<List<Integer>> result = restTemplate.getForObject(format, Result.class);
List<Integer> data = result.getData();
if (!CollectionUtils.isEmpty(data)) {

View File

@ -37,7 +37,7 @@
:data="loadData"
:alert="options.alert"
:rowSelection="options.rowSelection"
:scroll="{ x: 1600 }"
:scroll="{ x: 1800 }"
>
<span slot="groupName" slot-scope="text, record">
<a href="#" @click="handlerOpenDrawer(record)">{{ text }}</a>
@ -119,8 +119,8 @@ export default {
{
title: '名称',
dataIndex: 'groupName',
scopedSlots: { customRender: 'groupName' }
scopedSlots: { customRender: 'groupName' },
fixed: 'left'
},
{
title: '状态',

View File

@ -87,7 +87,7 @@
:data="loadData"
:alert="options.alert"
:rowSelection="options.rowSelection"
:scroll="{ x: 1800 }"
:scroll="{ x: 1500 }"
>
<span slot="serial" slot-scope="record">
<a href="#" @click="handlerOpenDrawer(record)">{{ record.id }}</a>
@ -168,7 +168,7 @@ export default {
{
title: 'ID',
scopedSlots: { customRender: 'serial' },
width: '5%'
fixed: 'left'
},
{
title: '组名称',
@ -185,7 +185,7 @@ export default {
{
title: '开始执行时间',
dataIndex: 'executionAt',
width: '10%'
width: '15%'
},
{
title: '状态',
@ -203,7 +203,7 @@ export default {
title: '创建时间',
dataIndex: 'createDt',
sorter: true,
width: '10%'
width: '15%'
},
{
title: '操作',

View File

@ -76,7 +76,7 @@
:rowKey="(record) => record.id"
:columns="columns"
:data="loadData"
:scroll="{ x: 2000 }"
:scroll="{ x: 1800 }"
>
<span slot="serial" slot-scope="text, record">
{{ record.id }}
@ -212,23 +212,24 @@ export default {
{
title: 'ID',
scopedSlots: { customRender: 'serial' },
width: '4%'
fixed: 'left'
},
{
title: '任务名称',
dataIndex: 'jobName',
scopedSlots: { customRender: 'jobName' },
ellipsis: true,
fixed: 'left'
},
{
title: '组名称',
dataIndex: 'groupName',
width: '10%'
},
{
title: '任务名称',
dataIndex: 'jobName',
scopedSlots: { customRender: 'jobName' },
ellipsis: true,
width: '10%'
},
{
title: '触发时间',
dataIndex: 'nextTriggerAt',
width: '10%',
ellipsis: true
},
{

View File

@ -114,14 +114,14 @@ export default {
title: '组名',
dataIndex: 'groupName',
key: 'groupName',
width: '10%',
width: '15%',
scopedSlots: { customRender: 'groupName' }
},
{
title: '任务',
dataIndex: 'jobName',
key: 'jobName',
width: '10%',
width: '15%',
scopedSlots: { customRender: 'jobName' }
},
{
@ -141,7 +141,7 @@ export default {
title: '通知场景',
dataIndex: 'notifyScene',
key: 'notifyScene',
width: '10%',
width: '15%',
scopedSlots: { customRender: 'notifyScene' }
},
{
@ -155,7 +155,7 @@ export default {
title: '描述',
dataIndex: 'description',
key: 'description',
width: '20%',
width: '15%',
scopedSlots: { customRender: 'description' }
},
{