|
@@ -260,12 +260,12 @@ function send_alert(a, b){
|
|
|
function getUserName(uid){
|
|
|
var uname = null;
|
|
|
Users.list.forEach(function(val, aid, arr){
|
|
|
- if(val.worker.userId == uid){
|
|
|
- uname = val.worker.userName;
|
|
|
+ if(val.worker.staffNo == uid){
|
|
|
+ uname = val.worker.staffName;
|
|
|
}
|
|
|
});
|
|
|
if(uname == null) {
|
|
|
- get_data("fcWorker/list?userId=" + uid, on_username_retn);
|
|
|
+ get_data("oaStaff/list?staffNo=" + uid, on_username_retn);
|
|
|
return "[用户:"+uid+"]";
|
|
|
}else{
|
|
|
return uname;
|
|
@@ -273,7 +273,7 @@ function getUserName(uid){
|
|
|
}
|
|
|
|
|
|
function on_username_retn(obj, sta) {
|
|
|
- var uid = this.url.substring(this.url.indexOf("userId=") + 7);
|
|
|
+ var uid = this.url.substring(this.url.indexOf("staffNo=") + 7);
|
|
|
let ruid = parseInt(uid);
|
|
|
var out = first_parse(this, obj);
|
|
|
if(out.list.length > 0){
|