提交 3480fbf2 编写于 作者: NoSubject's avatar NoSubject

修复流程路由不显示的问题

上级 4effc19b
......@@ -511,9 +511,7 @@ MWF.xApplication.process.ProcessDesigner.Route = new Class({
cornerPointIndex = i - 1;
}
}
;
}
;
return cornerPointIndex;
},
getNearIndex: function (pList, p) {
......@@ -592,6 +590,7 @@ MWF.xApplication.process.ProcessDesigner.Route = new Class({
;
},
doBrokenLine: function (e, idx, corner) {
var offsetP = MWF.getOffset(e.event);
var toX = offsetP.offsetX;
......@@ -883,8 +882,8 @@ MWF.xApplication.process.ProcessDesigner.Route = new Class({
var decisionPoints = Raphael.pathIntersection(beginLinePath, fromActivityPath);
var endPoints = Raphael.pathIntersection(endLinePath, toActivityPath);
this.beginPoint = decisionPoints[0];
this.endPoint = endPoints[0];
this.beginPoint = decisionPoints[0] || this.fromActivity.center;
this.endPoint = endPoints[0] || this.toActivity.center;
}
}
if (!fromActivityPath && toActivityPath) {
......
......@@ -42,6 +42,11 @@ o2.xApplication.process.Xform.$ElModule = MWF.APP$ElModule = new Class(
*/
load: function(){
this._loadModuleEvents();
this.form.app.addEvent('queryClose', function(){
if (this.vm) this.vm.$destroy();
}.bind(this));
if (this.fireEvent("queryLoad")){
this._queryLoaded();
this._loadUserInterface();
......@@ -146,9 +151,11 @@ o2.xApplication.process.Xform.$ElModule = MWF.APP$ElModule = new Class(
methods["$loadElEvent_"+k.camelCase()] = function(){
var flag = true;
if (k==="change"){
this.validationMode();
this._setBusinessData(this.getInputData());
if( !this.validation() )flag = false;
if (this.validationMode){
this.validationMode();
this._setBusinessData(this.getInputData());
if( !this.validation() ) flag = false;
}
}
if (this.json.events && this.json.events[k] && this.json.events[k].code){
this.form.Macro.fire(this.json.events[k].code, this, arguments);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册