|
@@ -782,7 +782,7 @@ $(function(){
|
|
};
|
|
};
|
|
//循环变化机器参数
|
|
//循环变化机器参数
|
|
function changeA() {
|
|
function changeA() {
|
|
- console.log("changeA()=="+funA);
|
|
|
|
|
|
+ // console.log("changeA()=="+funA);
|
|
var val= 0;
|
|
var val= 0;
|
|
var shuxing = document.getElementById("shuxing");
|
|
var shuxing = document.getElementById("shuxing");
|
|
var odorConcentration = window.document.getElementById("odorConcentration");
|
|
var odorConcentration = window.document.getElementById("odorConcentration");
|
|
@@ -790,14 +790,14 @@ $(function(){
|
|
var cabinetHd = window.document.getElementById("cabinetHd");
|
|
var cabinetHd = window.document.getElementById("cabinetHd");
|
|
mytimer = setInterval(function(){test();}, 5000); //利用setInterval实现间隔两秒执行一次test()函数
|
|
mytimer = setInterval(function(){test();}, 5000); //利用setInterval实现间隔两秒执行一次test()函数
|
|
function test() {
|
|
function test() {
|
|
- console.log("mytimer1=="+mytimer);
|
|
|
|
|
|
+ // console.log("mytimer1=="+mytimer);
|
|
for (var i = 0; i < equipmentLists.length; i++) {
|
|
for (var i = 0; i < equipmentLists.length; i++) {
|
|
// var option = document.createElement("option");
|
|
// var option = document.createElement("option");
|
|
// option.innerHTML = equipmentLists[i].name;
|
|
// option.innerHTML = equipmentLists[i].name;
|
|
// option.value = equipmentLists[i].name;
|
|
// option.value = equipmentLists[i].name;
|
|
// option.selected = true;
|
|
// option.selected = true;
|
|
// shuxing.appendChild(option);
|
|
// shuxing.appendChild(option);
|
|
- console.log(i);
|
|
|
|
|
|
+ // console.log(i);
|
|
var c = val;
|
|
var c = val;
|
|
if(val==i){
|
|
if(val==i){
|
|
for (var j = 0; j < shuxing.options.length; j++){
|
|
for (var j = 0; j < shuxing.options.length; j++){
|
|
@@ -818,24 +818,24 @@ $(function(){
|
|
// funA = setInterval(changeA,equipmentLists.length*5000);
|
|
// funA = setInterval(changeA,equipmentLists.length*5000);
|
|
funA = setInterval(changeA,5000);
|
|
funA = setInterval(changeA,5000);
|
|
clearInterval(mytimer);
|
|
clearInterval(mytimer);
|
|
- console.log("mytimer");
|
|
|
|
|
|
+ // console.log("mytimer");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(1==1){
|
|
if(1==1){
|
|
clearInterval(funA);
|
|
clearInterval(funA);
|
|
- console.log("close changeA");
|
|
|
|
|
|
+ // console.log("close changeA");
|
|
}
|
|
}
|
|
|
|
|
|
};
|
|
};
|
|
function changeB() {
|
|
function changeB() {
|
|
- console.log("changeB()=="+funB);
|
|
|
|
|
|
+ // console.log("changeB()=="+funB);
|
|
var val= 0;
|
|
var val= 0;
|
|
var wuliao = document.getElementById("wuliao");
|
|
var wuliao = document.getElementById("wuliao");
|
|
var resource=window.document .getElementById ("resource");
|
|
var resource=window.document .getElementById ("resource");
|
|
mytimerB = setInterval(function(){testB();}, 5000); //利用setInterval实现间隔两秒执行一次test()函数
|
|
mytimerB = setInterval(function(){testB();}, 5000); //利用setInterval实现间隔两秒执行一次test()函数
|
|
function testB() {
|
|
function testB() {
|
|
for (var i = 0; i < equipmentLists.length; i++) {
|
|
for (var i = 0; i < equipmentLists.length; i++) {
|
|
- console.log("0"+i);
|
|
|
|
|
|
+ // console.log("0"+i);
|
|
var c = val;
|
|
var c = val;
|
|
if(val==i){
|
|
if(val==i){
|
|
for (var j = 0; j < wuliao.options.length; j++){
|
|
for (var j = 0; j < wuliao.options.length; j++){
|
|
@@ -866,19 +866,19 @@ $(function(){
|
|
// funB = setInterval(changeB,equipmentLists.length*5000);
|
|
// funB = setInterval(changeB,equipmentLists.length*5000);
|
|
funB = setInterval(changeB,5000);
|
|
funB = setInterval(changeB,5000);
|
|
clearInterval(mytimerB);
|
|
clearInterval(mytimerB);
|
|
- console.log("mytimerB1");
|
|
|
|
|
|
+ // console.log("mytimerB1");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(1==1){
|
|
if(1==1){
|
|
clearInterval(funB);
|
|
clearInterval(funB);
|
|
- console.log("close changeB");
|
|
|
|
|
|
+ // console.log("close changeB");
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
});
|
|
});
|
|
function getEquipmentWuliao(name){
|
|
function getEquipmentWuliao(name){
|
|
clearInterval(funB);
|
|
clearInterval(funB);
|
|
- console.log("changeB()=="+funB);
|
|
|
|
|
|
+ // console.log("changeB()=="+funB);
|
|
clearInterval(mytimerB);
|
|
clearInterval(mytimerB);
|
|
var equipmentList =null;
|
|
var equipmentList =null;
|
|
$.ajax({
|
|
$.ajax({
|
|
@@ -960,9 +960,9 @@ var equipmentLis = null;
|
|
//机器的状态,温度,湿度,清洗剂的剩余用量 onchange()
|
|
//机器的状态,温度,湿度,清洗剂的剩余用量 onchange()
|
|
function getEquipmentShuxing(name){
|
|
function getEquipmentShuxing(name){
|
|
clearInterval(funA);
|
|
clearInterval(funA);
|
|
- console.log("changeA()=="+funA);
|
|
|
|
|
|
+ // console.log("changeA()=="+funA);
|
|
clearInterval(mytimer);
|
|
clearInterval(mytimer);
|
|
- console.log("mytimerA=="+mytimer);
|
|
|
|
|
|
+ // console.log("mytimerA=="+mytimer);
|
|
var equipmentList =null;
|
|
var equipmentList =null;
|
|
$.ajax({
|
|
$.ajax({
|
|
url:"/asl-admin/index/equipmentStatus.htm",
|
|
url:"/asl-admin/index/equipmentStatus.htm",
|
|
@@ -988,7 +988,7 @@ function getEquipmentShuxing(name){
|
|
});
|
|
});
|
|
};
|
|
};
|
|
function changeA() {
|
|
function changeA() {
|
|
- console.log("changeA2()=="+funA);
|
|
|
|
|
|
+ // console.log("changeA2()=="+funA);
|
|
var val= 0;
|
|
var val= 0;
|
|
var shuxing = document.getElementById("shuxing");
|
|
var shuxing = document.getElementById("shuxing");
|
|
var odorConcentration = window.document.getElementById("odorConcentration");
|
|
var odorConcentration = window.document.getElementById("odorConcentration");
|
|
@@ -1002,7 +1002,7 @@ function changeA() {
|
|
// option.value = equipmentLists[i].name;
|
|
// option.value = equipmentLists[i].name;
|
|
// option.selected = true;
|
|
// option.selected = true;
|
|
// shuxing.appendChild(option);
|
|
// shuxing.appendChild(option);
|
|
- console.log(i);
|
|
|
|
|
|
+ // console.log(i);
|
|
var c = val;
|
|
var c = val;
|
|
if(val==i){
|
|
if(val==i){
|
|
for (var j = 0; j < shuxing.options.length; j++){
|
|
for (var j = 0; j < shuxing.options.length; j++){
|
|
@@ -1023,23 +1023,23 @@ function changeA() {
|
|
// funA = setInterval(changeA,equipmentLis.length*5000);
|
|
// funA = setInterval(changeA,equipmentLis.length*5000);
|
|
funA = setInterval(changeA,5000);
|
|
funA = setInterval(changeA,5000);
|
|
clearInterval(mytimer);
|
|
clearInterval(mytimer);
|
|
- console.log("mytimer2");
|
|
|
|
|
|
+ // console.log("mytimer2");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(1==1){
|
|
if(1==1){
|
|
clearInterval(funA);
|
|
clearInterval(funA);
|
|
- console.log("close changeA2");
|
|
|
|
|
|
+ // console.log("close changeA2");
|
|
}
|
|
}
|
|
};
|
|
};
|
|
function changeB() {
|
|
function changeB() {
|
|
- console.log("changeB2()=="+funB);
|
|
|
|
|
|
+ // console.log("changeB2()=="+funB);
|
|
var val= 0;
|
|
var val= 0;
|
|
var wuliao = document.getElementById("wuliao");
|
|
var wuliao = document.getElementById("wuliao");
|
|
var resource=window.document .getElementById ("resource");
|
|
var resource=window.document .getElementById ("resource");
|
|
mytimerB = setInterval(function(){testB();}, 5000); //利用setInterval实现间隔两秒执行一次test()函数
|
|
mytimerB = setInterval(function(){testB();}, 5000); //利用setInterval实现间隔两秒执行一次test()函数
|
|
function testB() {
|
|
function testB() {
|
|
for (var i = 0; i < equipmentLis.length; i++) {
|
|
for (var i = 0; i < equipmentLis.length; i++) {
|
|
- console.log("00"+i);
|
|
|
|
|
|
+ // console.log("00"+i);
|
|
var c = val;
|
|
var c = val;
|
|
if(val==i){
|
|
if(val==i){
|
|
for (var j = 0; j < wuliao.options.length; j++){
|
|
for (var j = 0; j < wuliao.options.length; j++){
|
|
@@ -1070,11 +1070,11 @@ function changeB() {
|
|
// funB = setInterval(changeB,equipmentLis.length*5000);
|
|
// funB = setInterval(changeB,equipmentLis.length*5000);
|
|
funB = setInterval(changeB,5000);
|
|
funB = setInterval(changeB,5000);
|
|
clearInterval(mytimerB);
|
|
clearInterval(mytimerB);
|
|
- console.log("mytimerB2");
|
|
|
|
|
|
+ // console.log("mytimerB2");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(1==1){
|
|
if(1==1){
|
|
clearInterval(funB);
|
|
clearInterval(funB);
|
|
- console.log("close changeB2");
|
|
|
|
|
|
+ // console.log("close changeB2");
|
|
}
|
|
}
|
|
};
|
|
};
|