修复coding问题,增加机床类型返回

This commit is contained in:
mgw
2024-08-26 13:23:44 +08:00
parent 064397b32b
commit 78d00e9157
4 changed files with 30 additions and 9 deletions

View File

@@ -163,6 +163,7 @@ class Sf_Dashboard_Connect(http.Controller):
# 停机时间:关机时间 - 运行时间
# 停机时长:关机时间 - 初次上线时间
'img': f'data:image/png;base64,{machine_data.machine_tool_picture.decode("utf-8")}',
'equipment_type': machine_data.category_id.name,
})
return json.dumps(res)