调整alarm logs的返回数据
This commit is contained in:
@@ -906,9 +906,7 @@ class Sf_Dashboard_Connect(http.Controller):
|
||||
'name': log.name,
|
||||
'alarm_time': log.alarm_time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'fault_alarm_info': log.fault_alarm_info,
|
||||
'status': log.status,
|
||||
'note': log.note,
|
||||
'alarm_level': log.alarm_level
|
||||
'fault_process': log.fault_process
|
||||
})
|
||||
|
||||
except Exception as e:
|
||||
@@ -916,7 +914,6 @@ class Sf_Dashboard_Connect(http.Controller):
|
||||
|
||||
return json.dumps(res)
|
||||
|
||||
|
||||
# 设备oee
|
||||
@http.route('/api/OEE', type='http', auth='public', methods=['GET', 'POST'], csrf=False, cors="*")
|
||||
def OEE(self, **kw):
|
||||
|
||||
Reference in New Issue
Block a user