From 356fdc8857b2c88ba6d42ea7b3bda6bb0fca927e Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 13 Jul 2021 18:21:18 +0800 Subject: [PATCH] =?UTF-8?q?MDomItem=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- o2web/source/x_component_Template/MDomItem.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/o2web/source/x_component_Template/MDomItem.js b/o2web/source/x_component_Template/MDomItem.js index a82629184b..e0742bc37e 100644 --- a/o2web/source/x_component_Template/MDomItem.js +++ b/o2web/source/x_component_Template/MDomItem.js @@ -121,7 +121,8 @@ var MDomItem = new Class({ RTFConfig : null, //CKEditor 的设置项 mSelectorOptions : null, //自定义下拉组件设置项 calendarOptions : null, //日期选择器的设置项 - orgWidgetOptions : null //org组件的选项 + orgWidgetOptions : null, //org组件的选项 + orgOptions: null }, initialize: function (container, options , parent, app, css ) { this.form = parent; @@ -655,6 +656,9 @@ MDomItem.Util = { if( callback )callback( array ); }.bind(this) }; + if( options.orgOptions ){ + opt = Object.merge(opt, options.orgOptions); + } if( opt.types.length === 0 )opt.types = null; var selector = new MWF.O2Selector(container, opt ); }, @@ -2875,6 +2879,9 @@ MDomItem.Org = new Class({ exclude : options.exclude, expandSubEnable : options.expandSubEnable }; + if( this.options.orgOptions ){ + opt.orgOptions = this.options.orgOptions; + } MDomItem.Util.selectPerson( this.app.content, opt, function( array ){ item.empty(); this.orgData = this.module.orgData = []; -- GitLab