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 @Slf4j
public class DashBoardServiceImpl implements DashBoardService { 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 @Autowired
private ServerNodeMapper serverNodeMapper; private ServerNodeMapper serverNodeMapper;
@ -180,7 +180,8 @@ public class DashBoardServiceImpl implements DashBoardService {
ServerNodeExtAttrs serverNodeExtAttrs = JsonUtil.parseObject(serverNodeResponseVO.getExtAttrs(), ServerNodeExtAttrs.class); ServerNodeExtAttrs serverNodeExtAttrs = JsonUtil.parseObject(serverNodeResponseVO.getExtAttrs(), ServerNodeExtAttrs.class);
try { 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); Result<List<Integer>> result = restTemplate.getForObject(format, Result.class);
List<Integer> data = result.getData(); List<Integer> data = result.getData();
if (!CollectionUtils.isEmpty(data)) { if (!CollectionUtils.isEmpty(data)) {

View File

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

View File

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

View File

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

View File

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