| | |
| | | <script type="text/javascript"> |
| | | //忢页é¢èªå¨å·æ° |
| | | |
| | | function delecttask(groups,id) { |
| | | //disableAutoRefresh(); |
| | | $.ajax({ |
| | | async : false, |
| | | var groups=0; |
| | | var id=0; |
| | | var state=0; |
| | | //ç»æä»»å¡å¼¹çª |
| | | function delecttask(groups1,id1) { |
| | | if(typeof stopRefresh === "function"){ |
| | | stopRefresh(); |
| | | } |
| | | $("#add-info1").modal('show'); |
| | | groups=groups1; |
| | | id=id1; |
| | | state=1 |
| | | |
| | | } |
| | | //䏿任å¡å¼¹çª |
| | | function delecttask1(groups1,id1) { |
| | | if(typeof stopRefresh === "function"){ |
| | | stopRefresh(); |
| | | } |
| | | $("#add-info1").modal('show'); |
| | | groups=groups1; |
| | | id=id1; |
| | | state=2 |
| | | |
| | | } |
| | | //ç»æä¸æä»»å¡ |
| | | function delecttask3() { |
| | | if(state==1){ |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask/" + id +"/" +groups, |
| | | url : "${ctx}/cutmanage/delecttask/" + id +"/" +groups, |
| | | |
| | | dataType : "text", |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | }); |
| | | alert(groups); |
| | | success : function(data) { |
| | | alert(groups+"å·çº¿"+data); |
| | | if(data=="ç»ææå"){ |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | } |
| | | }); |
| | | }else if(state==2){ |
| | | $.ajax({ |
| | | async : false, |
| | | |
| | | type : "GET", |
| | | |
| | | url : "${ctx}/cutmanage/delecttask1/" + id+"/" +groups, |
| | | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | alert(groups+"å·çº¿"+data); |
| | | if(data=="䏿æå"){ |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | } |
| | | //å¼¹çªåæ¶ |
| | | function delecttask4() { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | function delecttask1(groups,id) { |
| | | /* function delecttask1(groups,id) { |
| | | //disableAutoRefresh();disableAutoRefresh(); |
| | | $.ajax({ |
| | | async : false, |
| | |
| | | dataType : "text", |
| | | |
| | | success : function(data) { |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | alert(groups+"å·çº¿"+data); |
| | | if(data=="䏿æå"){ |
| | | window.location.href = "${ctx}/cutmanage/gettask/" + groups; |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | } */ |
| | | |
| | | function updatetask(id) { |
| | | //disableAutoRefresh(); |
| | |
| | | var groups = document.getElementsByName('groups')[0].value; |
| | | var state = document.getElementsByName('state')[0].value; |
| | | var fileName = document.getElementById("fileName").innerHTML; |
| | | if(state=="0"&&fileName.includes('P')){ |
| | | if(state=="0"){ |
| | | window.location.href = "${ctx}/cutmanage/gettasks/" + groups; |
| | | } |
| | | if(state=="1"){ |
| | | alert("å½åå·²åå¨ä¸¤ä¸ªä»»å¡") |
| | | } |
| | | if(!fileName.includes('P')){ |
| | | alert("è¡¥ç/æå¨å·¥ç¨è¯·ç»æä»»å¡åé¢å") |
| | | } |
| | | } |
| | | |
| | |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | |
| | | |
| | | <div class="modal fade" id="add-info1" tabindex="-1" role="dialog" |
| | | aria-labelledby="myModalLabel" aria-hidden="true"> |
| | | <form class="form-horizontal" role="form"> |
| | | <div class="modal-dialog"> |
| | | <div class="modal-content"> |
| | | <div class="modal-header"> |
| | | <button type="button" class="close" onclick="delecttask4()" data-dismiss="modal" |
| | | aria-hidden="true">×</button> |
| | | <h3 class="modal-title" id="DEL_AlertTitle">æä½æç¤ºï¼</h3> |
| | | </div> |
| | | <div class="modal-body" style="text-align: left;"> |
| | | <h3 id="DEL_MsgShow"> |
| | | æ¯å¦ç¡®å®æ§è¡ <span id="DEL_Id" style="sixe: 25px; font-weight: bold"></span> |
| | | <span style="sixe: 20px; color: red; font-weight: bold">ç»æ/ä¸æä»»å¡ |
| | | </span> æä½ï¼ |
| | | </h3> |
| | | </div> |
| | | <div class="modal-footer"> |
| | | |
| | | <button type="button" onclick="delecttask4()" class="btn btn-default btn-lg" |
| | | data-dismiss="modal">å¦</button> |
| | | <button type="button" onclick="delecttask3()" class="btn btn-primary btn-lg" id="addbtnsubmit">æ¯</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | |
| | | |
| | | </section> |
| | | |
| | | <%@ include file="/WEB-INF/views/mes/view/modal_banzu.jsp"%> |