提交 ca0defc9 编写于 作者: 蔡祥熠

Merge branch 'fix/Attance_process' into 'wrdp'

Merge of fix/Attance_process 修复考勤申诉设置报错的问题 to wrdp

See merge request o2oa/o2oa!5236
......@@ -2969,9 +2969,16 @@ MDomItem.Org = new Class({
var distinguishedName;
if( typeOf(v) === "string" ){
distinguishedName = v;
data = {
"distinguishedName" : distinguishedName,
"name": distinguishedName.split("@")[0]
if( distinguishedName.indexOf("@") > 0 ){
data = {
"distinguishedName" : distinguishedName,
"name": distinguishedName.split("@")[0]
}
}else{
data = {
"id" : distinguishedName,
"name": distinguishedName.split("@")[0]
}
}
}else{
distinguishedName = v.distinguishedName || v.name || "";
......@@ -3008,13 +3015,14 @@ MDomItem.Org = new Class({
}else if( t == "group" ){
var widget = new MWF.widget.O2Group(data, node, options);
}else if( t == "process" ){
var d = { id : distinguishedName };
var widget = new MWF.widget.O2Process(d, node, options);
// var d = { id : distinguishedName };
if( data.id === data.name )delete data.name;
var widget = new MWF.widget.O2Process(data, node, options);
//}else if( t == "duty" ){
// var widget = new MWF.widget.O2Duty(data, node, options);
}else if( t == "CMSView" ){
var d = { id : distinguishedName };
var widget = new MWF.widget.O2CMSView(d, node, options);
// var d = { id : distinguishedName };
var widget = new MWF.widget.O2CMSView(data, node, options);
//}else if( t == "duty" ){
// var widget = new MWF.widget.O2Duty(data, node, options);
}else{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册