diff --git a/app/chengji/view/luru/biaolu.html b/app/chengji/view/luru/biaolu.html index 525e9d9e..52baf613 100644 --- a/app/chengji/view/luru/biaolu.html +++ b/app/chengji/view/luru/biaolu.html @@ -151,13 +151,26 @@ layui.use(['form','upload','cjgl'], function(){ layer.msg('请先上传文件。'); return false; } - $.post("/chengji/luru/saveall", {"url":url}, function (result) { - if(result.val == 1) - { - $("#url").val(''); - } - layer.msg(result.msg); - }); + $.ajax({ + url:"/chengji/luru/saveall", + type:'POST', + data:{ + "url":url + }, + async:false, + success:function(result){ + if(result.val == 1) + { + $("#url").val(''); + } + layer.msg(result.msg); + }, + error:function(result){ + layer.msg('数据扔半道啦。',function(){}); + }, + }); + + return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。 }); diff --git a/app/kaoshi/view/index/index.html b/app/kaoshi/view/index/index.html index 5a7c6f4d..038dcbcb 100644 --- a/app/kaoshi/view/index/index.html +++ b/app/kaoshi/view/index/index.html @@ -70,7 +70,7 @@ // 设置列 options.cols=[[ //表头 {type:'checkbox', fixed:'left'}, - {field:'id', title:'操作', toolbar:'#barDemo', minWidth:100}, + {field:'id', title:'操作', toolbar:'#barDemo', minWidth:120}, {field:'title', title:'考试名称', sort:true, minWidth:240}, {field:'xueqi_id', title:'学期', sort:true, minWidth:200, templet:function(d){ var str;