Commit 2569a7e4 authored by 于广洋's avatar 于广洋

修改接口的后台返回赋值

parent 776f8f9f
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
hideLoading(); hideLoading();
var companyInfo = data; var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh); $("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) { if (companyInfo.returnCode == "00") {
companyInfo.bean.gzTaxInfos.push( /*companyInfo.content.gzTaxInfos.push(
{ {
"sbxxId":"20200612181124bda9492c2fe34faeb3f4f686260363eb", "sbxxId":"20200612181124bda9492c2fe34faeb3f4f686260363eb",
"ssdabh":"91120225MA05KP981U", "ssdabh":"91120225MA05KP981U",
...@@ -181,12 +181,12 @@ ...@@ -181,12 +181,12 @@
"nssbqq2":null, "nssbqq2":null,
"nssbqz2":null "nssbqz2":null
} }
); );*/
companyInfo.bean.config = config companyInfo.content.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.content);
} else { } else {
hideLoading(); hideLoading();
alertWarning("请求失败!"); alertWarning(companyInfo.returnMessage);
// 弹出错误对话框 // 弹出错误对话框
} }
}, },
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
}); });
} else { } else {
hideLoading(); hideLoading();
alertWarning("请求失败!"); alertWarning(companyInfo.returnMessage);
// 弹出错误对话框 // 弹出错误对话框
} }
}, },
......
...@@ -142,9 +142,9 @@ ...@@ -142,9 +142,9 @@
var companyInfo = data; var companyInfo = data;
companyInfo.config = config companyInfo.config = config
$("#djxh").attr("value", companyInfo.djxh); $("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) { if (companyInfo.returnCode == "00") {
companyInfo.bean.config = config companyInfo.content.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.content);
$("#getInputValue").on("focus", function() { $("#getInputValue").on("focus", function() {
WdatePicker({ WdatePicker({
isShowClear:false, isShowClear:false,
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
}); });
}); });
} else { } else {
alertWarning("请求失败!"); alertWarning(companyInfo.returnMessage);
// 弹出错误对话框 // 弹出错误对话框
} }
}, },
......
...@@ -137,9 +137,9 @@ ...@@ -137,9 +137,9 @@
// $("#token").attr("value",""); // $("#token").attr("value","");
var companyInfo = data; var companyInfo = data;
$("#djxh").attr("value", companyInfo.djxh); $("#djxh").attr("value", companyInfo.djxh);
if (companyInfo.success) { if (companyInfo.returnCode == "00") {
companyInfo.bean.config = config companyInfo.content.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.content);
$("#getInputValue").on("focus", function() { $("#getInputValue").on("focus", function() {
WdatePicker({ WdatePicker({
isShowClear:false, isShowClear:false,
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
}); });
} else { } else {
hideLoading(); hideLoading();
alertWarning("请求失败!"); alertWarning(companyInfo.returnMessage);
// 弹出错误对话框 // 弹出错误对话框
} }
}, },
......
...@@ -15,6 +15,6 @@ function getUrlParam (name) { ...@@ -15,6 +15,6 @@ function getUrlParam (name) {
var config = { var config = {
webUrl:"http://sbjs.tjsat.gov.cn:8088/web/onlineReport/jsp/", webUrl:"http://sbjs.tjsat.gov.cn:8088/web/onlineReport/jsp/",
// webUrl:"http://localhost/web/onlineReport/jsp/" // webUrl:"http://localhost/web/onlineReport/jsp/"
url:"http://192.168.105.153:8091",// 全局的url,现在貌似没什么用了。不过先留着 url:"",// 全局的url,现在貌似没什么用了。不过先留着
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment