添加了 消息列表弹窗(系统状态消息、预警消息),以及存储消息的数据库

This commit is contained in:
2025-11-13 09:37:41 +08:00
parent aa7dd7974a
commit 3d860b22fd
13 changed files with 615 additions and 29 deletions

View File

@ -171,9 +171,13 @@ class TaskWidget(QWidget):
# --------------------------
def set_task_volume(self, task_name:str, volume: float):
"""修改指定任务的方量, 传入具体的方量值,如: 200.0"""
# 褚工说 管片任务 和 派单任务的方量只有一位小数。 2025-11-8
# 所以这里限制为 保留一位小数的浮点数
current_volume = round(float(volume), 1)
if task_name in self.task_controls:
volume_label = self.task_controls[task_name]["volume_label"]
volume_label.setText(f"方量 {volume}")
volume_label.setText(f"方量 {current_volume}")
def set_task_time(self, task_name:str, time_str: str):
"""修改指定任务的时间, 传入对应格式的时间,如: 03:22PM"""