|
|
|
@ -130,6 +130,7 @@
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
var start = $("#bind_time").val();
|
|
|
|
@ -151,8 +152,25 @@ Think.setValue("prmoote_id_to", {$data.promote_id|default = "''"});
|
|
|
|
|
$('#submit').click(function(){
|
|
|
|
|
//获取id
|
|
|
|
|
var taskid = $(this).data("id");
|
|
|
|
|
|
|
|
|
|
window.location.href = "{:U('Mend/cancelShift')}"+"&id="+taskid;
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:"get",
|
|
|
|
|
dataType:"json",
|
|
|
|
|
url:"{:U('Mend/cancelShift')}"+"&id="+taskid,
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(data.status == 1){
|
|
|
|
|
layer.msg('取消补链成功',function(){
|
|
|
|
|
window.location.href = data.url;
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
layer.msg('取消补链失败,或补链已经生效无法取消')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error:function(){
|
|
|
|
|
layer.msg('网络错误');
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// window.location.href = "{:U('Mend/cancelShift')}"+"&id="+taskid;
|
|
|
|
|
});
|
|
|
|
|
$(function(){
|
|
|
|
|
$('.time').datetimepicker({
|
|
|
|
|