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 @@