dingzhicheng 2 дней назад
Родитель
Сommit
de2a7243f6
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      src/main/java/com/mes/ui/BreathingLight.java
  2. 1 0
      src/main/java/com/mes/ui/StationPanel.java

+ 1 - 1
src/main/java/com/mes/ui/BreathingLight.java

@@ -36,7 +36,7 @@ public class BreathingLight extends JComponent {
 		setPreferredSize(new Dimension(28, 28));
 		setPreferredSize(new Dimension(28, 28));
 		setMinimumSize(new Dimension(24, 24));
 		setMinimumSize(new Dimension(24, 24));
 		setOpaque(false);
 		setOpaque(false);
-		setToolTipText("服务端心跳:绿灯闪=已连接,红=断开");
+		setToolTipText("服务端心跳:绿/灰闪=已连接,红=断开");
 		blinkTimer = new javax.swing.Timer(BLINK_MS, new ActionListener() {
 		blinkTimer = new javax.swing.Timer(BLINK_MS, new ActionListener() {
 			@Override
 			@Override
 			public void actionPerformed(ActionEvent e) {
 			public void actionPerformed(ActionEvent e) {

+ 1 - 0
src/main/java/com/mes/ui/StationPanel.java

@@ -438,6 +438,7 @@ public class StationPanel extends JPanel {
 			}
 			}
 			uiPlcLabel();
 			uiPlcLabel();
 			uiDeviceStatusLight();
 			uiDeviceStatusLight();
+			uiServerHeartbeat();
 			maybePushDeviceHeartbeat();
 			maybePushDeviceHeartbeat();
 		} catch (Exception e) {
 		} catch (Exception e) {
 			log.warn("工位[{}] tick 异常: {}", cfg.getStationSn(), e.getMessage());
 			log.warn("工位[{}] tick 异常: {}", cfg.getStationSn(), e.getMessage());