文档
测试

device_activation_list

POST
/event_day_dynamic_rate/getday_dynamic_rate.action

接口描述

请求后端调取设备稼动率列表信息

请求参数

参数名
类型
描述
必填
event_day_dynamic_rate.device_no
文本
设备编号
必填
event_day_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: '5%', sort: true} ,{field: 'device_type_id', title: '设备类型', width: '10%', sort: true} ,{field: 'siteName', title: '车间', width: "7%", sort: true} ,{field: 'class_name', title: '班次', width: '5%', sort: true} ,{field: 'time_gshi1', title: '班次时间(分)', width: '7%', sort: true} ,{field: 'date_bz', title: '日期', width: '10%', sort: true} ,{field: 'work_timt', title: '运行时间(分)', width: '7%', sort: true} ,{field: 'wait_timt', title: '待机时间(分)', width: '7%', sort: true} ,{field: 'sex', title: '离线时间(分)', width: '5%', sort: true} ,{field: 'faul_time', title: '故障时间(分)', width: '7%', sort: true} ,{field: 'rate', title: '稼动率%', width: '7%', sort: true} ]] , data: data.rows , even: true , page: true //是否显示分页 //,limits: [5, 7, 10] , limit: 16 //每页默认显示的数量 }); }); // } } });