diff --git a/apps/wpm/datax.py b/apps/wpm/datax.py index 6ade85d1..aea4f723 100644 --- a/apps/wpm/datax.py +++ b/apps/wpm/datax.py @@ -72,6 +72,8 @@ class AnaViewSet(GenericViewSet): elif item['mstate'] == '故障': 故障 += 1 ret = {"保温": 保温, "冷却": 冷却, "未运行": 未运行, "故障": 故障} + ret['mstate_json'] = mstate_json + ret['now'] = now.strftime('%Y-%m-%d %H:%M:%S') ret["rows"] = equip_qs_l return Response(ret)