This commit is contained in:
2019-04-12 10:12:14 +08:00
parent cf63a3d072
commit 913ee85779
2 changed files with 3 additions and 10 deletions

View File

@@ -281,17 +281,10 @@
if (!col) {
return "";
}
console.log(col)
var items = this.cfg.items[col.split(".")[0]];
let items = this.cfg.items[col.split(".")[0]];
if (items) {
return items[col.split(".")[1]]['label']
/*for (var i = 0; i < items.items.length; i++) {
if (tableInfo.items[i].name == col.split("$")[1]) {
return tableInfo.items[i].label;
}
}*/
}
return '';
},

View File

@@ -181,9 +181,9 @@ var red = {
},
loginCheck: function (json) {
if (json && (json['code'] == -2 || json['referid'])) {
//red.showMsg({type:'error', placement: 'center', msg: '登陆过期,请前往登陆'});
red.showMsg({type:'error', placement: 'center', msg: '登陆过期,请前往登陆'});
setTimeout(function () {
//location.href = "/user/login.html";
location.href = "/user/login.html";
}, 2000);
}
},