@byteluck-fe/model-driven-controls 6.2.0-jeecg-5 → 6.2.0-jeecg-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -220,6 +220,10 @@ _define_property(Department2Control, "setting", [
220
220
  key: 'department-datasource-setting',
221
221
  visible: true
222
222
  },
223
+ {
224
+ key: 'department-disabled-filter',
225
+ visible: true
226
+ },
223
227
  {
224
228
  key: 'department-defaultval',
225
229
  visible: true
@@ -71,7 +71,7 @@ function _is_native_reflect_construct() {
71
71
  })();
72
72
  }
73
73
  import Department2Control from './designer';
74
- import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SuperDataSourceBind } from '@byteluck-fe/model-driven-core';
74
+ import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, initSuperDataSourceRules, MultistageFillingItem, SuperDataSourceBind, FieldFilterCondition, FieldFilterConditions } from '@byteluck-fe/model-driven-core';
75
75
  import { DepartmentType, AssignType } from '../../framework';
76
76
  import { getLocaleText } from '@byteluck-fe/locale-message';
77
77
  var Department2PropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
@@ -124,6 +124,7 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
124
124
  function Department2Property(props) {
125
125
  _class_call_check(this, Department2Property);
126
126
  var _this;
127
+ var _props_disabledSelectedFilters;
127
128
  _this = _call_super(this, Department2Property, [
128
129
  props
129
130
  ]), /**
@@ -147,6 +148,8 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
147
148
  * */ _define_property(_this, "multistageFilling", void 0), /**
148
149
  * 数据设置
149
150
  * */ _define_property(_this, "datasourceBind", void 0), /**
151
+ * 不可选中部门条件
152
+ * */ _define_property(_this, "disabledSelectedFilters", void 0), /**
150
153
  * 数据类型 行政 or 业务
151
154
  * */ _define_property(_this, "datasourceType", void 0 //数据类型 行政 'administration'| 业务 'business'
152
155
  ), _define_property(_this, "businessType", void 0 //业务部门类型 'all' | 'assign'
@@ -195,6 +198,13 @@ var Department2Property = /*#__PURE__*/ function(BaseControlProperty) {
195
198
  }
196
199
  var _props_defaultShowOptions;
197
200
  _this.defaultShowOptions = (_props_defaultShowOptions = props === null || props === void 0 ? void 0 : props.defaultShowOptions) !== null && _props_defaultShowOptions !== void 0 ? _props_defaultShowOptions : false;
201
+ var _props_disabledSelectedFilters_map;
202
+ _this.disabledSelectedFilters = (_props_disabledSelectedFilters_map = props === null || props === void 0 ? void 0 : (_props_disabledSelectedFilters = props.disabledSelectedFilters) === null || _props_disabledSelectedFilters === void 0 ? void 0 : _props_disabledSelectedFilters.map(function(item) {
203
+ if (item.children !== undefined) {
204
+ return new FieldFilterConditions(item);
205
+ }
206
+ return new FieldFilterCondition(item);
207
+ })) !== null && _props_disabledSelectedFilters_map !== void 0 ? _props_disabledSelectedFilters_map : [];
198
208
  return _this;
199
209
  }
200
210
  return Department2Property;