From 9a2306bc718275a1e66c8fa3f598ae5fc24fda28 Mon Sep 17 00:00:00 2001 From: haozq <1611483981@qq.com> Date: Mon, 17 Jun 2024 14:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=AD=E9=9F=B3=E8=AF=86?= =?UTF-8?q?=E5=88=AB=20=E5=8F=8A=E7=AE=A1=E6=8E=A7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/consQuality/consQuality.js | 6 ++-- js/operEnvironment/operEnvironment.js | 9 +++-- pages/operEnvironment/operEnvironment.html | 39 ---------------------- 3 files changed, 9 insertions(+), 45 deletions(-) diff --git a/js/consQuality/consQuality.js b/js/consQuality/consQuality.js index 9d04b04..511ce31 100644 --- a/js/consQuality/consQuality.js +++ b/js/consQuality/consQuality.js @@ -177,12 +177,12 @@ function qualityInspection(environmentData) { var pElement = document.createElement('p'); pElement.textContent = environmentData[j].deviceName; - if (environmentData[j].status === '0') { + if (environmentData[j].status === '2') { monitorIconElement.style.backgroundImage = `url('../../img/consQuality/QualityInspection-0.png')`; }else if (environmentData[j].status === '1') { - monitorIconElement.style.backgroundImage = `url('../../img/consQuality/QualityInspection-2.png')`; - }else if (environmentData[j].status === '2') { monitorIconElement.style.backgroundImage = `url('../../img/consQuality/QualityInspection-1.png')`; + }else if (environmentData[j].status === '0') { + monitorIconElement.style.backgroundImage = `url('../../img/consQuality/QualityInspection-2.png')`; } deviceElement.appendChild(monitorIconElement); diff --git a/js/operEnvironment/operEnvironment.js b/js/operEnvironment/operEnvironment.js index 7f207d2..8e855d7 100644 --- a/js/operEnvironment/operEnvironment.js +++ b/js/operEnvironment/operEnvironment.js @@ -137,7 +137,8 @@ function DaylightDisplacementApi(){ "roleCode": roleCode, "orgId": orgId, "userId": userId, - "bidCode": bidCode + "bidCode": bidCode, + "deviceType":1908 } let encryptStr = encryptCBC(JSON.stringify(params)); ajaxRequest(url, "POST", encryptStr, true, function () { @@ -582,7 +583,8 @@ function GPSInstallationApi(){ "roleCode": roleCode, "orgId": orgId, "userId": userId, - "bidCode": bidCode + "bidCode": bidCode, + "deviceType":"1910" } let encryptStr = encryptCBC(JSON.stringify(params)); ajaxRequest(url, "POST", encryptStr, true, function () { @@ -600,7 +602,8 @@ function GPSInstallationApi(){ }, "application/json",aqEnnable); } -function GPSInstallation(environmentData) { +function +GPSInstallation(environmentData) { console.log(environmentData); if(environmentData && environmentData.length>0){ GPSInstallationEnvironmentApi(environmentData[0].deviceId); diff --git a/pages/operEnvironment/operEnvironment.html b/pages/operEnvironment/operEnvironment.html index 642b8b5..7c9da7b 100644 --- a/pages/operEnvironment/operEnvironment.html +++ b/pages/operEnvironment/operEnvironment.html @@ -103,28 +103,7 @@