From 09622f12dfd1c58e861ff16b78674844c743785b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Wed, 15 Apr 2020 09:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E4=B8=8A=E4=BC=A0=E6=88=90?= =?UTF-8?q?=E7=BB=A9=E5=BC=82=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chengji/view/luru/biaolu.html | 27 ++++++++++++++++++++------- app/kaoshi/view/index/index.html | 2 +- 2 files changed, 21 insertions(+), 8 deletions(-) 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;