Commit 5e938a31 authored by 刘明珠's avatar 刘明珠

错误信息兼容

parent 2eac9ff2
...@@ -41,12 +41,16 @@ function getInitTable() { ...@@ -41,12 +41,16 @@ function getInitTable() {
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
} else { } else {
hideLoading(); hideLoading();
if (data.errmsg != undefined) {
alertWarning(data.errmsg);
} else {
alertWarning(data.returnMessage);
}
if (!companyInfo.bean) { if (!companyInfo.bean) {
companyInfo.bean = {}; companyInfo.bean = {};
companyInfo.bean.djxh = getUrlParam("djxh"); companyInfo.bean.djxh = getUrlParam("djxh");
companyInfo.bean.return = false; companyInfo.bean.return = false;
} }
alertWarning(companyInfo.errmsg);
companyInfo.bean.config = config companyInfo.bean.config = config
initpage = initPage(companyInfo.bean); initpage = initPage(companyInfo.bean);
// 弹出错误对话框 // 弹出错误对话框
......
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