| | |
| | | mui.alert("系统繁忙,请重试!", "提示", ["确定"], function() {}, "div") |
| | | } |
| | | }) |
| | | // warnData ={ |
| | | // "data": [ |
| | | // { |
| | | // "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":"" |
| | | // } |
| | | // ] |
| | | // } |
| | | |
| | | 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": "" |
| | | } |
| | | ] |
| | | |
| | | renderWarn(); |
| | | } |
| | |
| | | type: "date", //设置日历初始视图模式 |
| | | // beginDate: new Date(2015, 04, 25), //设置开始日期 |
| | | // endDate: new Date(2016, 04, 25), //设置结束日期 |
| | | value: dateTime |
| | | }) |
| | | dtpicker.show(function(e) { |
| | | dateTime = e.value; |
| | |
| | | null ? "" : item.remark) + '\',\'' + item.status + '\')">'; |
| | | if (item.status == '10') { |
| | | html += '<span class="type">未处理</span>'; |
| | | } |
| | | if (item.status == '20') { |
| | | }else if (item.status == '20') { |
| | | html += '<span class="type k">处理延迟</span>'; |
| | | } |
| | | if (item.status == '30') { |
| | | }else if (item.status == '30') { |
| | | html += '<span class="type k">已处理</span>'; |
| | | } |
| | | if (item.status == '40') { |
| | | }else if (item.status == '40') { |
| | | html += '<span class="type k">忽略</span>'; |
| | | } |
| | | html += '<div class="tit">警告名称: <span>' + item.name + '</span></div>'; |
| | |
| | | dataPop.data.id = warnId; |
| | | var html = '' |
| | | if (status == '10') { |
| | | html += '<button type="button" class="mui-btn cancel" onclick="handleWarn("1")">忽略</button>' |
| | | html += '<button type="button" class="mui-btn confirm" onclick="handleWarn("2")">处理</button>' |
| | | html += '<div type="button" class="mui-btn cancel" onclick="handleWarn(\'' + 1 + '\')">忽略</div>' |
| | | html += '<div type="button" class="mui-btn confirm" onclick="handleWarn(\'' + 2 + '\')">处理</div>' |
| | | } |
| | | $("#handleWarn").html(html); |
| | | $("#textareaPop").val(remark) |
| | | document.getElementById("textareaPop").value = remark; |
| | | $('#m-pop').css('display', 'flex'); |
| | | } |
| | | //警告处理 |
| | |
| | | dataPop.data.status = '30' |
| | | // mui.toast("警告处理"); |
| | | } |
| | | dataPop.data.remark = mui("#textareaPop")[0].value; |
| | | dataPop.data.remark = document.getElementById("textareaPop").value; |
| | | console.log(JSON.stringify(dataPop.data),"warn-list") |
| | | //请求 |
| | | mui.ajax(url, { |
| | | type: "POST", |
| | |
| | | data: JSON.stringify(dataPop), |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | console.log(JSON.stringify(result)) |
| | | mui.toast(result.msg); |
| | | // console.log(JSON.stringify(result)) |
| | | } else { |
| | | mui.toast(result.msg); |
| | | console.log(JSON.stringify(result)) |
| | | // console.log(JSON.stringify(result)) |
| | | } |
| | | }, |
| | | error: function() { |