perf(timelineEvent) 优化事件时间线中固件更新事件点的描述
This commit is contained in:
parent
1c582f2aa8
commit
5169a6c759
@ -138,7 +138,7 @@ def parse_common_event_to_json(log_str, keys):
|
||||
case "S0/G0":
|
||||
title = "电源状态Up"
|
||||
case "FW UPDATE":
|
||||
title = "固件更新"
|
||||
title = f"{idl_dict['sensor']}固件更新"
|
||||
cause = idl_dict['description']
|
||||
details_info['版本变更'] = cause
|
||||
case _:
|
||||
|
||||
@ -230,7 +230,7 @@ class TimelineGraphicsView(QGraphicsView):
|
||||
return self.group_colors[0]
|
||||
case _ if "温度事件" in event.title:
|
||||
return self.group_colors[1]
|
||||
case "固件更新":
|
||||
case _ if "固件更新" in event.title:
|
||||
return self.group_colors[2]
|
||||
case _ if "电压事件" in event.title:
|
||||
return self.group_colors[3]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user