文档
测试

today_show_program_list

POST
/huor_dynamic_rate/pro_today_show_Quantity.action

接口描述

请求后端调取设备运行程序表

请求头

参数名
类型
描述
必填
contentType: 'text/json,charset=utf-8'
文本
文本与JSON格式
必填
huor_dynamic_rate.id
设备物理ID号
可选
huor_dynamic_rate.date_start
开始查询日期
可选

请求参数

参数名
类型
描述
必填
huor_dynamic_rate.uuid
数字
设备UUID编号
必填
huor_dynamic_rate.date_end
日期
结束查询日期
必填
huor_dynamic_rate.id
数字
设备物理ID号
必填
huor_dynamic_rate.date_start
日期
开始查询日期
必填

响应参数

参数名
类型
描述
必填
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: 'almno', title: '运行程序', width: '8%', sort: true} ,{field: 'date_start', title: '开始时间', width: '10%', sort: true} ,{field: 'date_end', title: '结束时间', width: '10%', sort: true} ,{field: 'work_timt', title: '程序用时(秒)', width: '8%', sort: true} ,{field: 'facno', title: '客户编号', width: '8%', sort: true} ]] , data: data.rows , even: true , page: true //是否显示分页 //,limits: [5, 7, 10] , limit: 16 //每页默认显示的数量 }); }); // } } });