关闭上传成绩异步
This commit is contained in:
1 parent
9cf562d5b0
commit
09622f12df
2 files changed
+21
-8
No files matched your search
@@ -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; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
|
||||
});
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user