Commit 0706a370 by guibin

任原设备利用率设备添加排序

parent d67f5b13
...@@ -23,6 +23,14 @@ class RokeMesThreeColourLight(http.Controller): ...@@ -23,6 +23,14 @@ class RokeMesThreeColourLight(http.Controller):
template = env.get_template('equipment_status_qdry.html') template = env.get_template('equipment_status_qdry.html')
return template.render(data) return template.render(data)
@http.route("/roke/three_color_light/device_analysis", type="http", auth='none', cors='*', csrf=False)
def device_analysis(self, **kwargs):
_self = http.request
factory_code = http.request.env(user=SUPERUSER_ID)['ir.config_parameter'].get_param('database.uuid', default="")
data = {"code": 1, "message": "请求通过", "data": {"factory_code": factory_code}}
template = env.get_template('oee_analysis.html')
return template.render(data)
@http.route('/roke/workstation/plant/tree', type='json', auth='none', csrf=False, cors="*") @http.route('/roke/workstation/plant/tree', type='json', auth='none', csrf=False, cors="*")
def get_roke_workstation_plant(self): def get_roke_workstation_plant(self):
_self = http.request _self = http.request
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment