| | |
| | | "data": { |
| | | "id": "", |
| | | "status": "", |
| | | "remark": "" |
| | | "remark": "", |
| | | "completeUser":"" |
| | | } |
| | | }; |
| | | |
| | |
| | | data.tokenAuth = user.tokenAuth; |
| | | dataPop.tokenAuth = user.tokenAuth; |
| | | data.data.deptId = selectDeptId; |
| | | url = user.url + "/api-phone/v35/gateway"; |
| | | dataPop.data.completeUser = user.cname |
| | | url = user.url + "/api/phone/v35/gateway"; |
| | | |
| | | dateTime = getDate(new Date()) |
| | | document.getElementById("date").value = dateTime |
| | |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | warnList = result.data; |
| | | console.log(warnList) |
| | | renderWarn(); |
| | | } else { |
| | | renderWarn(); |
| | |
| | | mui.alert("系统繁忙,请重试!", "提示", ["确定"], function() {}, "div") |
| | | } |
| | | }) |
| | | // warnList = [{ |
| | | // "id": "88", |
| | | // "name": "拉目些调", |
| | | // "type": "nostrud", |
| | | // "eventType": "cillumreprehenderitest", |
| | | // "level": "1", |
| | | // "status": "40", |
| | | // "time": "2006-11-01 14:01:36", |
| | | // "info": "dolor", |
| | | // "depotId": "6", |
| | | // "depotName": "", |
| | | // "remark": "00000" |
| | | // }, |
| | | // { |
| | | // "id": "56", |
| | | // "name": "法都象叫与局", |
| | | // "type": "cillumreprehenderitUt", |
| | | // "eventType": "in", |
| | | // "level": "2", |
| | | // "status": "20", |
| | | // "time": "1981-02-18 22:28:23", |
| | | // "info": "deserunt Excepteur aliqua veniam commodo", |
| | | // "depotId": "28", |
| | | // "depotName": "龙用改素", |
| | | // "remark": "1111" |
| | | // }, { |
| | | // "id": "72", |
| | | // "name": "华林九别", |
| | | // "type": "exdeseruntcillumeu", |
| | | // "eventType": "aliqua sint dolor aute", |
| | | // "level": "1", |
| | | // "status": "10", |
| | | // "time": "1978-07-23 12:17:27", |
| | | // "info": "deserunt nostrud id tempor", |
| | | // "depotId": "70", |
| | | // "depotName": "县志选只", |
| | | // "remark": "" |
| | | // } |
| | | // ] |
| | | |
| | | } |
| | | |
| | |
| | | html += '<div class="box"><div class="group c1"><div class="desc">' + (item.depotName == null || |
| | | item.depotName == "" ? "--" : item.depotName) + |
| | | '</div><div class="ort">仓库名称</div></div></div>'; |
| | | if (item.level == '1') { |
| | | if (item.level == '01') { |
| | | html += |
| | | '<div class="box"><div class="group level-2"><div class="desc">高级</div><div class="ort">警告级别</div></div></div></div>'; |
| | | } |
| | | if (item.level == '2') { |
| | | '<div class="box"><div class="group level-2"><div class="desc">一级预警</div><div class="ort">警告级别</div></div></div></div>'; |
| | | }else if (item.level == '02') { |
| | | html += |
| | | '<div class="box"><div class="group level-1"><div class="desc">中级</div><div class="ort">警告级别</div></div></div></div>'; |
| | | '<div class="box"><div class="group level-1"><div class="desc">二级预警</div><div class="ort">警告级别</div></div></div></div>'; |
| | | }else if(item.level == '03'){ |
| | | html += |
| | | '<div class="box"><div class="group level-1"><div class="desc">三级预警</div><div class="ort">警告级别</div></div></div></div>'; |
| | | }else { |
| | | html += |
| | | '<div class="box"><div class="group level-1"><div class="desc">--</div><div class="ort">警告级别</div></div></div></div>'; |
| | | } |
| | | |
| | | html += '<div class="tit coation">警告内容: <span>' + item.info + '</span></div>'; |
| | | html += '<div class="tit coation">警告内容: <span>' + (item.info == null || |
| | | item.info == "" ? "......" : item.info)+ '</span></div>'; |
| | | html += '<div class="time">' + item.time + '</div></div></li>'; |
| | | }) |
| | | } else { |
| | |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | mui.toast(result.msg); |
| | | getWarnList(); |
| | | // console.log(JSON.stringify(result)) |
| | | } else { |
| | | mui.toast(result.msg); |
| | | getWarnList(); |
| | | // console.log(JSON.stringify(result)) |
| | | } |
| | | }, |