解决日志模块不能显示用户信息的bug

This commit is contained in:
季圣华
2019-01-22 21:35:05 +08:00
parent cbcf3b7306
commit dd6f7d8a51
6 changed files with 148 additions and 23 deletions

View File

@@ -178,18 +178,15 @@
//初始化系统基础信息
function initSystemData() {
$.ajax({
type: "post",
url: "/log/getBasicData.action",
type: "get",
url: "/user/getAllList",
//设置为同步
async: false,
dataType: "json",
success: function (systemInfo) {
success: function (res) {
//成功关闭loading
userList = systemInfo.showModel.map.userList;
var msgTip = systemInfo.showModel.msgTip;
if (msgTip == "exceptoin") {
$.messager.alert('提示', '查找系统基础信息异常,请与管理员联系!', 'error');
return;
if(res && res.code === 200){
userList = res.data.userList;
}
}
});
@@ -198,7 +195,6 @@
//初始化页面选项卡
function initSelectInfo() {
var options = "";
if (userList != null) {
options = "";
for (var i = 0; i < userList.length; i++) {