jinlin
2025-04-28 efce7ce3e63712ecc8b4c3039a73b508fc3ea880
src/main/java/com/example/client/service/StatisReportsService.java
@@ -114,8 +114,7 @@
    private void reportRecord(int column, Long level1NetworkId,Long teamgroupId) {
        JFrame frame1 = new JFrame("记录");
        frame1.setSize(500, 400);
        frame1.setResizable(false);
        frame1.setSize(1000, 500);
        frame1.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        frame1.setLocationRelativeTo(null);
        frame1.setVisible(true);
@@ -124,9 +123,9 @@
        List<ColumnDto> columnDto = new ArrayList<>();
        //columnDto.add(new ColumnDto("ID", "id", -1, null,false));
        columnDto.add(new ColumnDto("序号", "", (500  - 10) / 3, "autoCreate", false, null, null));
        columnDto.add(new ColumnDto("设备名称", "name", (500  - 10) / 3, null, false, null, null));
        columnDto.add(new ColumnDto("节点名称", "processName", (500  - 10) / 3, null, false, null, null));
        columnDto.add(new ColumnDto("序号", "", 50, "autoCreate", false, null, null));
        columnDto.add(new ColumnDto("设备名称", "name", 770, null, false, null, null));
        columnDto.add(new ColumnDto("节点名称", "processName", 160, null, false, null, null));
        JTable table = CommonTable.createCommonTable(list, columnDto);
        table.setRowHeight(25);
@@ -136,7 +135,7 @@
        JScrollPane scrollPane = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
        scrollPane.setViewportView(table);
        scrollPane.getViewport().setBackground(Color.WHITE);
        scrollPane.setPreferredSize(new Dimension(500 - 20, 400));
        scrollPane.setPreferredSize(new Dimension(1000 - 20, 400));
        frame1.add(scrollPane);
    }