| | |
| | | <script type="text/javascript"> |
| | | //忢页é¢èªå¨å·æ° |
| | | |
| | | function delecttask(id) { |
| | | function delecttask(groups,id) { |
| | | //disableAutoRefresh(); |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask/" + id, |
| | | url : "${ctx}/cutmanage/delecttask/" + id +"/" +groups, |
| | | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + id; |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | }); |
| | | alert(id); |
| | | alert(groups); |
| | | } |
| | | |
| | | function delecttask1(id) { |
| | | function delecttask1(groups,id) { |
| | | //disableAutoRefresh();disableAutoRefresh(); |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask1/" + id, |
| | | url : "${ctx}/cutmanage/delecttask1/" + id+"/" +groups, |
| | | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + id; |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | }); |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function collectingTasks() { |
| | | //disableAutoRefresh(); |
| | | var groups = document.getElementsByName('groups')[0].value; |
| | | var state = document.getElementsByName('state')[0].value; |
| | | if(state=="0"){ |
| | | window.location.href = "${ctx}/cutmanage/gettasks/" + groups; |
| | | } |
| | | |
| | | } |
| | | |
| | | function updatedengluname() { |
| | | $("#updatedengluname").modal('show'); |
| | | //disableAutoRefresh(); |
| | |
| | | } |
| | | var gongyi = "磨边"; |
| | | var group = ${groups}; |
| | | var rTime = 20000; |
| | | var rTime = 5000; |
| | | </script> |
| | | <style> |
| | | .box table tr th, .box table tr td { |
| | |
| | | <button id="btnOffWork" type='button' class='btn btn-primary ' onclick='offWork()'>åå²-产é</button> |
| | | |
| | | |
| | | <button id="btnOffWork" type='button' class='btn btn-primary ' onclick='collectingTasks()'>é¢åä»»å¡</button> |
| | | |
| | | |
| | | <small>å½åä¸ç工使¨¡å¼:</small> |
| | | |
| | | <button id="btnStatcionMode" type='button' class='btn btn-primary' onclick='onChangeMode(${groups})' >åå·¥ä½</button> |
| | |
| | | <!-- Main content --> |
| | | <input style="display: none" type="text" name="groups" |
| | | value="${groups}" /> |
| | | <input style="display: none" type="text" name="state" |
| | | value="${state}" /> |
| | | <section class="content container-fluid"> |
| | | <div></div> |
| | | <div> |
| | |
| | | |
| | | </div> |
| | | <div class="box" |
| | | style="height: 120px; overflow: auto; margin-top: 10px;"> |
| | | style="height: 172px; overflow: auto; margin-top: 10px;"> |
| | | <table class="table table-striped table-hover" |
| | | style="overflow-x: auto"> |
| | | <thead> |
| | |
| | | <th>宿æ°é</th> |
| | | <th>æ»æ°é</th> |
| | | <th>宿é¢ç§¯(mm)</th> |
| | | <th>ç¶æ</th> |
| | | <th>æä½</th> |
| | | |
| | | </tr> |
| | |
| | | </table> |
| | | </div> |
| | | <div class="box" |
| | | style="height: 600px; overflow: auto; margin-top: 10px;"> |
| | | style="height: 500px; overflow: auto; margin-top: 10px;"> |
| | | <table class="table table-striped table-hover2" |
| | | style="overflow-x: auto"> |
| | | <thead> |
| | |
| | | <th>å度</th> |
| | | <th>é¢è²</th> |
| | | <th>ç¶æ</th> |
| | | <th>å·¥ç¨</th> |
| | | <th>æä½</th> |
| | | |
| | | </tr> |
| | |
| | | </section> |
| | | |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_banzu.jsp"%> |
| | | <%-- <%@ include file="/WEB-INF/views/mes/view/modal_tijiaobaogong.jsp"%> --%> |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_tijiaobaogong.jsp"%> |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_tishi.jsp"%> |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_QG_tijiaobaogong.jsp"%> |
| | | <!-- /.content --> |
| | |
| | | } |
| | | |
| | | //页é¢å®æ¶å·æ° æå æ¢å¤ |
| | | var interval = setInterval('refreshStatus()', rTime);//宿¶å·æ° |
| | | /* var interval = setInterval('refreshStatus()', rTime);//宿¶å·æ° |
| | | function refresh() { |
| | | interval = setInterval('refreshStatus()', rTime);//å·æ°æ¢å¤ |
| | | } |
| | | |
| | | function stopRefresh() { |
| | | clearInterval(interval);//忢巿° |
| | | } */ |
| | | var interval = setInterval('isStop()', rTime);//宿¶å·æ° |
| | | function isStop(){ //2024-1-10 yzx ä¿®æ¹ åå ï¼åå·æ°é¡µé¢æé®é¢ |
| | | var str=['baogong_info','div_banzu']; |
| | | var isInterval_=0; |
| | | for(var i=0;i<str.length;i++){ |
| | | var isdisplay=document.getElementById(str[i]).style.display; |
| | | if(isdisplay=='block'){ |
| | | //ä¸å·æ° |
| | | isInterval_=1; |
| | | break; |
| | | } |
| | | } |
| | | if(isInterval_==0){ |
| | | //å·æ° |
| | | refreshStatus(); |
| | | } |
| | | } |
| | | |
| | | $(function() { |
| | | /* $(function() { |
| | | |
| | | $('#baogong_info').on('hide.bs.modal', function() { |
| | | refresh(); |
| | |
| | | $('#div_banzu').on('show.bs.modal', function() { |
| | | stopRefresh(); |
| | | }) |
| | | }); |
| | | }); */ |
| | | |
| | | var st = ${able}; |
| | | if (st == 0) { |