From 0b27b9263ce721844d124ec4541a83b0f6db6c13 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期一, 19 六月 2023 10:46:26 +0800 Subject: [PATCH] 电子巡更 --- igds-app/js/admin/warn-list.js | 50 +++++++------------------------------------------- 1 files changed, 7 insertions(+), 43 deletions(-) diff --git a/igds-app/js/admin/warn-list.js b/igds-app/js/admin/warn-list.js index 7ebf6e3..34116fa 100644 --- a/igds-app/js/admin/warn-list.js +++ b/igds-app/js/admin/warn-list.js @@ -19,7 +19,8 @@ "data": { "id": "", "status": "", - "remark": "" + "remark": "", + "completeUser":"" } }; @@ -31,6 +32,7 @@ data.tokenAuth = user.tokenAuth; dataPop.tokenAuth = user.tokenAuth; data.data.deptId = selectDeptId; + dataPop.data.completeUser = user.cname url = user.url + "/api-phone/v35/gateway"; dateTime = getDate(new Date()) @@ -57,7 +59,6 @@ success: function(result) { if (result.code == "0000") { warnList = result.data; - console.log(warnList) renderWarn(); } else { renderWarn(); @@ -69,45 +70,6 @@ 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": "" - // } - // ] } @@ -192,11 +154,11 @@ 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') { + if (item.level == '02') { html += '<div class="box"><div class="group level-1"><div class="desc">涓骇</div><div class="ort">璀﹀憡绾у埆</div></div></div></div>'; } @@ -271,9 +233,11 @@ 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)) } }, -- Gitblit v1.9.3