From fa9531f7e9b209656575f60bfb057020fa236588 Mon Sep 17 00:00:00 2001 From: zhangjinan <836496117@qq.com> Date: Fri, 04 May 2018 14:23:59 +0800 Subject: [PATCH] 删除console --- publish/js/ajax.js | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/publish/js/ajax.js b/publish/js/ajax.js index e1effb0..705ac44 100644 --- a/publish/js/ajax.js +++ b/publish/js/ajax.js @@ -81,7 +81,7 @@ //ajax请求完成,不管成功失败 // TOKEN 已经过期或者TOKEN无效 if (rs.status == 0 || (rs.status == 403 && rs.responseJSON.rspCode == '100003')) { - console.log("TOKEN 已经过期或者TOKEN无效!!"); + } ajaxClose(); }, @@ -89,7 +89,7 @@ }); function ajaxStar(str, e) {//李伟民修改 2017-10-17 19:33 - console.log(window); + if ($(window.document).find("#ajaxLoadDiv").length > 0) { return; } @@ -238,7 +238,7 @@ $input.attr("value",dataObj[key]); $input.attr("name",key); form.append($input); - console.log($input); + } form.ajaxSubmit(options); @@ -248,7 +248,7 @@ //子表单上传表格 window.SonfiledUpload = function(dataObj, options, url,itemid,thisName){ var url = baseUrl + url; - console.log("进入ajax"); + var form = $("form[itemId="+itemid+"]"); var seccData; if (thisName!='.xls'){ @@ -263,14 +263,14 @@ success:function(data){//异步上传成功之后的操作 if(data != undefined && data != null){ // toastr.info("导入成功"); - console.log("最后参数"); - console.log(data); + + seccData = data; var data=JSON.stringify(seccData) window.setDeclocal("seccData",data); } - console.log(seccData); + }, // seccData:JSON.parse(window.getEnclocal("seccData")) @@ -282,7 +282,7 @@ $input.attr("value",dataObj[key]); $input.attr("name",key); form.append($input); - console.log($input); + } form.ajaxSubmit(options); @@ -326,7 +326,7 @@ if (method == "POST") { sendData = JSON.stringify(sendData); } - console.log(data); + return $.ajax({ dataType: 'json', method: method, @@ -370,7 +370,7 @@ if (method == "POST") { sendData = JSON.stringify(sendData); } - console.log(sendData); + return $.ajax({ dataType: 'json', method: method, @@ -390,7 +390,7 @@ if (method == "POST") { sendData = JSON.stringify(sendData); } - console.log(sendData); + return $.ajax({ dataType: 'json', method: method, -- Gitblit v1.8.0