| | |
| | | //ajax请求完成,不管成功失败 |
| | | // TOKEN 已经过期或者TOKEN无效 |
| | | if (rs.status == 0 || (rs.status == 403 && rs.responseJSON.rspCode == '100003')) { |
| | | console.log("TOKEN 已经过期或者TOKEN无效!!"); |
| | | |
| | | } |
| | | ajaxClose(); |
| | | }, |
| | |
| | | }); |
| | | |
| | | function ajaxStar(str, e) {//李伟民修改 2017-10-17 19:33 |
| | | console.log(window); |
| | | |
| | | if ($(window.document).find("#ajaxLoadDiv").length > 0) { |
| | | return; |
| | | } |
| | |
| | | $input.attr("value",dataObj[key]); |
| | | $input.attr("name",key); |
| | | form.append($input); |
| | | console.log($input); |
| | | |
| | | } |
| | | |
| | | form.ajaxSubmit(options); |
| | |
| | | //子表单上传表格 |
| | | 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'){ |
| | |
| | | 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")) |
| | | |
| | |
| | | $input.attr("value",dataObj[key]); |
| | | $input.attr("name",key); |
| | | form.append($input); |
| | | console.log($input); |
| | | |
| | | } |
| | | |
| | | form.ajaxSubmit(options); |
| | |
| | | if (method == "POST") { |
| | | sendData = JSON.stringify(sendData); |
| | | } |
| | | console.log(data); |
| | | |
| | | return $.ajax({ |
| | | dataType: 'json', |
| | | method: method, |
| | |
| | | if (method == "POST") { |
| | | sendData = JSON.stringify(sendData); |
| | | } |
| | | console.log(sendData); |
| | | |
| | | return $.ajax({ |
| | | dataType: 'json', |
| | | method: method, |
| | |
| | | if (method == "POST") { |
| | | sendData = JSON.stringify(sendData); |
| | | } |
| | | console.log(sendData); |
| | | |
| | | return $.ajax({ |
| | | dataType: 'json', |
| | | method: method, |