|  |  |  | 
|---|
|  |  |  | <span class="row-no">1#</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!-- 右输送线 --> | 
|---|
|  |  |  | <!--<input id="val" type="text">--> | 
|---|
|  |  |  | <!--<button id="animate">animate</button>--> | 
|---|
|  |  |  | </main> | 
|---|
|  |  |  | </body> | 
|---|
|  |  |  | <script> | 
|---|
|  |  |  | 
|---|
|  |  |  | // 系统运行开关 | 
|---|
|  |  |  | function systemSwitch() { | 
|---|
|  |  |  | if (systemRunning){ | 
|---|
|  |  |  | $('#system-icon').attr("class", "system-icon-close"); | 
|---|
|  |  |  | $('#system-run-desc').html("系统已停止!"); | 
|---|
|  |  |  | systemRunning = false; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | $('#system-icon').attr("class", "system-icon-open"); | 
|---|
|  |  |  | $('#system-run-desc').html("系统运行中..."); | 
|---|
|  |  |  | systemRunning = true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var confirm = layer.confirm('确定关闭 WCS 系统?!', { | 
|---|
|  |  |  | btn: ['确定','取消'] | 
|---|
|  |  |  | }, function(){ | 
|---|
|  |  |  | layer.close(confirm); | 
|---|
|  |  |  | var index = null; | 
|---|
|  |  |  | index = layer.load(1, { | 
|---|
|  |  |  | shade: [0.1,'#fff'] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | setTimeout(function () { | 
|---|
|  |  |  | if (systemRunning){ | 
|---|
|  |  |  | $('#system-icon').attr("class", "system-icon-close"); | 
|---|
|  |  |  | $('#system-run-desc').html("系统已停止!"); | 
|---|
|  |  |  | systemRunning = false; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | $('#system-icon').attr("class", "system-icon-open"); | 
|---|
|  |  |  | $('#system-run-desc').html("系统运行中..."); | 
|---|
|  |  |  | systemRunning = true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | layer.close(index); | 
|---|
|  |  |  | }, 2000); | 
|---|
|  |  |  | }, function(){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | var index = null; | 
|---|
|  |  |  | index = layer.load(1, { | 
|---|
|  |  |  | shade: [0.1,'#fff'] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | setTimeout(function () { | 
|---|
|  |  |  | if (systemRunning){ | 
|---|
|  |  |  | $('#system-icon').attr("class", "system-icon-close"); | 
|---|
|  |  |  | $('#system-run-desc').html("系统已停止!"); | 
|---|
|  |  |  | systemRunning = false; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | $('#system-icon').attr("class", "system-icon-open"); | 
|---|
|  |  |  | $('#system-run-desc').html("系统运行中..."); | 
|---|
|  |  |  | systemRunning = true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | layer.close(index); | 
|---|
|  |  |  | }, 2000); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 输送设备实时数据获取 | 
|---|
|  |  |  | 
|---|
|  |  |  | break | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $('.item').on('click', function () { | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 1, | 
|---|
|  |  |  | shadeClose: true, //点击遮罩关闭层 | 
|---|
|  |  |  | content: 'text' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | $('#animate').click(function () { | 
|---|
|  |  |  | crnAnimate(1, $('#val').val()); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  | </html> | 
|---|