|
|
|
@ -128,6 +128,7 @@
|
|
|
|
|
<th>预定时间</th>
|
|
|
|
|
<th>开始时间</th>
|
|
|
|
|
<th>结束时间</th>
|
|
|
|
|
<th>操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
|
@ -148,6 +149,7 @@
|
|
|
|
|
<td>{$data.schedule_time}</td>
|
|
|
|
|
<td>{$data.start_time}</td>
|
|
|
|
|
<td>{$data.end_time}</td>
|
|
|
|
|
<td><a class="confirm cmd_del" data-id="{$data.id}" style="color: red;">删除</a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</volist>
|
|
|
|
|
</empty>
|
|
|
|
@ -203,8 +205,43 @@
|
|
|
|
|
if(event.keyCode===13){
|
|
|
|
|
$("#search").click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
$(".cmd_del").click(function () {
|
|
|
|
|
var id = $(this).data("id");
|
|
|
|
|
layer.confirm('【警告】撤销后将不可回退,如需继续请点击确认', {
|
|
|
|
|
btn: ['确认','取消'],
|
|
|
|
|
title:false
|
|
|
|
|
}, function(){
|
|
|
|
|
var url = "{:U('cmdTasksDel')}"
|
|
|
|
|
layer.load(2);
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: url,
|
|
|
|
|
type: "get",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
data:{
|
|
|
|
|
id:id
|
|
|
|
|
},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if(data.code == 0){
|
|
|
|
|
layer.closeAll('loading');
|
|
|
|
|
layer.msg("<font style='color:#fff'>删除成功</font>");
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},350);
|
|
|
|
|
}else{
|
|
|
|
|
alert("删除失败,请联系管理员")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}, function(){
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|