Skip to content

Commit

Permalink
取消向导式规则中条件左侧添加方法或函数功能
Browse files Browse the repository at this point in the history
  • Loading branch information
youseries committed Apr 27, 2018
1 parent ff70071 commit ce433c9
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 93 deletions.
72 changes: 0 additions & 72 deletions urule-console-js/src/editor/urule/Condition.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,78 +92,6 @@ urule.Condition.prototype.initMenu=function(constantLibraries){
URule.setDomContent(self.label,".");
window._setDirty();
}
},{
label:"选择方法",
onClick:function(){
self.type="method";
if(self.variableValue){
self.variableValue.getContainer().hide();
}
if(self.parameterValue){
self.parameterValue.getContainer().hide();
}
if(self.functionValue){
self.functionValue.getContainer().hide();
}
if(self.methodValue){
self.methodValue.getContainer().show();
}else{
self.methodValue=new urule.MethodValue(self.arithmetic,null);
self.valueContainer.append(self.methodValue.getContainer());
}
if(self.operator){
self.operator.getContainer().show();
}else{
self.operator=new urule.ComparisonOperator(function(){
self.inputType=self.operator.getInputType();
if(self.inputType){
self.container.append(self.inputType.getContainer());
}
});
self.container.append(self.operator.getContainer());
}
self.label.css({
"color":"white"
});
URule.setDomContent(self.label,".");
window._setDirty();
}
},{
label:"选择函数",
onClick:function(){
self.type="commonfunction";
if(self.variableValue){
self.variableValue.getContainer().hide();
}
if(self.parameterValue){
self.parameterValue.getContainer().hide();
}
if(self.methodValue){
self.methodValue.getContainer().hide();
}
if(self.functionValue){
self.functionValue.getContainer().show();
}else{
self.functionValue=new urule.FunctionValue(self.arithmetic,null,"In");
self.valueContainer.append(self.functionValue.getContainer());
}
if(self.operator){
self.operator.getContainer().show();
}else{
self.operator=new urule.ComparisonOperator(function(){
self.inputType=self.operator.getInputType();
if(self.inputType){
self.container.append(self.inputType.getContainer());
}
});
self.container.append(self.operator.getContainer());
}
self.label.css({
"color":"white"
});
URule.setDomContent(self.label,".");
window._setDirty();
}
}]
});
this.label.click(function(e){
Expand Down
7 changes: 1 addition & 6 deletions urule-console-js/src/editor/urule/Join.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ urule.Join.prototype.init=function(parentConnection){
onClick:function(){
self.addItem(true);
}
},/*{
label:"添加命名联合条件",
onClick:function(){
self.addItem("named");
}
},*/{
},{
label:"删除",
onClick:function(){
if(self.children.length>0){
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit ce433c9

Please sign in to comment.