| | |
| | | var dateTime; //日期:yyyy-MM |
| | | //查询粮情历史数据参数 |
| | | var data = { |
| | | "interfaceId": "5302", |
| | | "sign": "10302", |
| | | "outId": "10302", |
| | | "interfaceId": "5204", |
| | | "sign": "105204", |
| | | "outId": "105204", |
| | | "reqDateTime": new Date(), |
| | | "tokenAuth": "", |
| | | "data": { |
| | |
| | | }; |
| | | //查询仓库列表参数 |
| | | var data0 = { |
| | | "interfaceId": "5102", |
| | | "sign": "10102", |
| | | "outId": "10102", |
| | | "interfaceId": "5201", |
| | | "sign": "10201", |
| | | "outId": "10201", |
| | | "reqDateTime": new Date(), |
| | | "tokenAuth": "", |
| | | "data": { |
| | |
| | | function init() { |
| | | var user = JSON.parse(localStorage.getItem('user')); |
| | | var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId')); |
| | | url = user.url + "/api-phone/v35/gateway"; |
| | | url = user.url + "/api/phone/v1/gateway"; |
| | | data.tokenAuth = user.tokenAuth; |
| | | data.data.deptId = selectDeptId; |
| | | data0.tokenAuth = user.tokenAuth; |
| | |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | historyList = result.data; |
| | | console.log(JSON.stringify("000")) |
| | | renderData(); |
| | | } else { |
| | | renderData(); |
| | | console.log(JSON.stringify("001")) |
| | | mui.toast(result.mag); |
| | | } |
| | | }, |
| | |
| | | var html = ''; |
| | | if (historyList != null && historyList.length > 0) { |
| | | $.each(historyList, function(index, item) { |
| | | console.log(JSON.stringify(item)) |
| | | html += '<li><div class="con"><div class="tit">检测时间: ' + item.receiveDate; |
| | | html += '<a id="' + index + '" class="more"></a></div><div class="inner">'; |
| | | html += '<div class="info">粮食温度</div><div class="txt">'; |