添加语音识别 及管控功能
This commit is contained in:
parent
a0c4db2716
commit
9a2306bc71
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -103,28 +103,7 @@
|
|||
</div>
|
||||
<!--有限空间-->
|
||||
<div class="layout" id="yxkjId" style="width: 100%;height: 40%">
|
||||
<!-- <div class="layout monitor-data ryht">-->
|
||||
<!-- <p><span id="eyht">0</span><span>℃</span></p>-->
|
||||
<!-- <p>二氧化碳</p>-->
|
||||
<!-- <div class="monitor-icon"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="layout monitor-data krqt">-->
|
||||
<!-- <p><span id="krqt">0</span><span>%</span></p>-->
|
||||
<!-- <p>可燃气体</p>-->
|
||||
<!-- <div class="monitor-icon"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="layout monitor-data hyl">-->
|
||||
<!-- <p><span id="hyl">0</span><span>分贝</span></p>-->
|
||||
<!-- <p>含氧量</p>-->
|
||||
<!-- <div class="monitor-icon"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="layout monitor-data lhq">-->
|
||||
<!-- <p><span id="lhq">0</span><span>分贝</span></p>-->
|
||||
<!-- <p>硫化氢</p>-->
|
||||
<!-- <div class="monitor-icon"></div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -134,25 +113,7 @@
|
|||
<div class="environments">
|
||||
</div>
|
||||
<div class="layout" id="gisId" style="width: 100%;height: 40%">
|
||||
|
||||
|
||||
<!-- <div class="layout monitor-data wd">-->
|
||||
<!-- <p><span id="gis_wd">45</span><span>℃</span></p>-->
|
||||
<!-- <p>温度</p>-->
|
||||
<!-- <div class="monitor-icon"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="layout monitor-data sd">-->
|
||||
<!-- <p><span id="gis_sd">45</span><span>%</span></p>-->
|
||||
<!-- <p>湿度</p>-->
|
||||
<!-- <div class="monitor-icon"></div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="layout monitor-data zs">-->
|
||||
<!-- <p><span id="gis_zs">45</span><span>分贝</span></p>-->
|
||||
<!-- <p>噪声</p>-->
|
||||
<!-- <div class="monitor-icon"></div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue