文档
测试

today_show_quantity_list

POST
/huor_dynamic_rate/pro_today_show_Quantity.action

接口描述

请求后端调取设备日产能统计表

请求参数

参数名
类型
描述
必填
huor_dynamic_rate.uuid
文本
设备UUID编号
必填
huor_dynamic_rate.id
数字
设备物理ID号
必填
huor_dynamic_rate.date
日期
开始查询日期
必填
huor_dynamic_rate.date_end
日期
结束查询日期
必填
huor_dynamic_rate.facno
数字
工厂分号
必填

响应参数

参数名
类型
描述
必填
dataType: "json"
JSON
服务器返回的数据类型
必填

说明 / 示例

$.ajax({ type: "POST", url: url, async: false, cache: false, dataType: "json", data : param, success: function (data) { //alert(JSON.stringify(data)); //console.info(data); // if (data.rows.length > 0) { exellist = data.rows; layui.use('table', function () { var table = layui.table; // console.info(data.rows); //展示已知数据 table.render({ elem: '#demo' , cols: [[ //标题栏 {field: 'device_no', title: '设备编号', width: '7%', sort: true} ,{field: 'alarmmessage', title: '车间', width: "9%", sort: true} ,{field: 'rate', title: '产能', width: '8%', sort: true} ,{field: 'time_class', title: '产能时段(点)', width: '8%', sort: true} ,{field: 'date_time', title: '日期', width: '10%', sort: true} ,{field: 'almno', title: '统计时间点', width: '12%', sort: true} ]] , data: data.rows , even: true , page: true //是否显示分页 //,limits: [5, 7, 10] , limit: 16 //每页默认显示的数量 }); }); // } } });