Commit 1ff3e080 authored by 雍欢's avatar 雍欢

修复orgTree的orgRoot参数为orgRoot时不能搜索的bug

parent 1ca6152f
...@@ -199,7 +199,6 @@ ...@@ -199,7 +199,6 @@
var orgRoot = op.param.orgRoot || "orgRoot"; var orgRoot = op.param.orgRoot || "orgRoot";
var status = op.param.showDisabledOrg == 1 ? "0,1": "1"; var status = op.param.showDisabledOrg == 1 ? "0,1": "1";
var isVirtual = op.param.showVirtualOrg == 1 ? "0,1": "0"; var isVirtual = op.param.showVirtualOrg == 1 ? "0,1": "0";
op=$.extend({ op=$.extend({
name: treeName, name: treeName,
getParam:function(){ getParam:function(){
...@@ -207,6 +206,9 @@ ...@@ -207,6 +206,9 @@
if(this.mode=='search'&&Public.isNotBlank(filter)){ if(this.mode=='search'&&Public.isNotBlank(filter)){
param['orgKindId']=$.isArray(filter)?filter.join(','):filter; param['orgKindId']=$.isArray(filter)?filter.join(','):filter;
} }
if(this.mode=='search' && param.orgRoot == 'orgRoot') {
param.orgRoot = null;
}
return param; return param;
}, },
treeLeafOnly:false, treeLeafOnly:false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment