提交 31eae644 编写于 作者: U unknown

修复导入模型、数据模板、人员职务信息的问题

上级 6d426121
......@@ -244,6 +244,13 @@ o2.widget.O2Person = new Class({
this.action.actions = {"getPerson": {"uri": "/jaxrs/person/{id}"}};
this.action.invoke({"name": "getPerson", "async": false, "parameter": {"id": (this.data.id || this.data.name)}, "success": function(json){
this.data = json.data;
var dutyList = [];
if( this.data.woIdentityList && this.data.woIdentityList.length ){
this.data.woIdentityList.each(function (id) {
if(id.woUnitDutyList && id.woUnitDutyList.length)dutyList = dutyList.concat(id.woUnitDutyList);
})
}
this.data.dutys = dutyList;
}.bind(this)});
}
return this.data;
......
......@@ -648,6 +648,8 @@ MWF.xApplication.process.Xform.DatatablePC = new Class(
_delLine: function(line){
this.fireEvent("deleteLine", [line]);
debugger;
var saveFlag = line.deleteAttachment();
//使用数据驱动
var data = this.getData();
......@@ -1339,8 +1341,10 @@ MWF.xApplication.process.Xform.DatatablePC.Line = new Class({
// }else if(this.options.isEdited){
// this.data[templateJsonId] = module.getData();
// }
if(this.options.isEdited){
this.data[templateJsonId] = module.getData();
if(this.options.isEdited) {
if (json.type !== "Attachment" && json.type !== "AttachmentDg"){
this.data[templateJsonId] = module.getData();
}
}
this.allField[id] = module;
this.allField_templateId[templateJsonId] = module;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册