作废人属性,增加注销状态,且颜色变红

This commit is contained in:
yujh 2024-08-05 14:39:10 +08:00
parent 640dbee2a2
commit df3ce4b57e
2 changed files with 6 additions and 2 deletions

View File

@ -1322,7 +1322,7 @@ public class CoeProcessLevelUtil {
if ("user".equals(object.getString("type"))) {
UserModel user = SDK.getORGAPI().getUser(object.getString("id"));
if (user != null && !filter.contains(user.getUID())) {
userValList.add(user.getUserName());
userValList.add(user.getUserName()+ (user.isClosed() == true?"(已注销)":""));
filter.add(user.getUID());
}
}

View File

@ -1534,7 +1534,11 @@ function initProcessDesc() {
}
} else {
value = value.replace(/\n/g,'<br>')
t += '<td class="tableContent tableright" >' + value + '</td>';
if(obj.name == "作废人" && value.indexOf("注销")>0){
t += '<td class="tableContent tableright" style="color:red" >' + value + '</td>';
}else{
t += '<td class="tableContent tableright" >' + value + '</td>';
}
t += '</tr>';
}
}