@bit-sun/business-component 2.3.26 → 2.3.27

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.
Files changed (48) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
  3. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
  7. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
  8. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
  9. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  10. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  11. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
  12. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -5
  13. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -13
  14. package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
  15. package/dist/components/Business/CommonAlert/index.d.ts +2 -1
  16. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  17. package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -5
  18. package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
  19. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
  20. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
  21. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
  22. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
  23. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
  24. package/dist/components/Business/JsonQueryTable/static.d.ts +1 -0
  25. package/dist/components/Business/StateFlow/index.d.ts +2 -1
  26. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  27. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +5 -5
  28. package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
  29. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
  30. package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
  31. package/dist/components/Functional/AddSelect/index.d.ts +2 -1
  32. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  33. package/dist/components/Functional/DataValidation/index.d.ts +3 -3
  34. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
  35. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
  36. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
  37. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
  38. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
  39. package/dist/index.esm.js +214 -4
  40. package/dist/index.js +214 -4
  41. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  42. package/package.json +1 -1
  43. package/src/components/Business/JsonQueryTable/static.ts +19 -0
  44. package/src/components/Business/SearchSelect/BusinessUtils.ts +74 -0
  45. package/src/components/Business/SearchSelect/index.md +57 -0
  46. package/src/components/Business/SearchSelect/utils.ts +1 -1
  47. package/src/components/Solution/RuleComponent/index.js +3 -3
  48. package/src/components/Solution/RuleComponent/ruleFiled.js +106 -0
package/dist/index.esm.js CHANGED
@@ -6680,6 +6680,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
6680
6680
  case 'purchaseOrg':
6681
6681
  case 'salesOrg':
6682
6682
  case 'employee2':
6683
+ case 'role':
6683
6684
  result = '/user';
6684
6685
  break;
6685
6686
  case 'deliveryMode':
@@ -8635,6 +8636,84 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8635
8636
  }]
8636
8637
  }, modalTableBusProps);
8637
8638
  }
8639
+ // 角色选择器
8640
+ if (type === 'role') {
8641
+ requestConfig = _objectSpread2({
8642
+ url: "".concat(prefixUrl.selectPrefix, "/role"),
8643
+ filter: 'qp-name,code-orGroup,like',
8644
+ mappingTextField: 'name',
8645
+ mappingTextShowKeyField: 'code',
8646
+ mappingValueField: 'code',
8647
+ otherParams: {
8648
+ 'qp-status-eq': 10,
8649
+ sorter: 'desc-id'
8650
+ },
8651
+ sourceName: 'roleCode'
8652
+ }, requestConfigProp);
8653
+ tableSearchForm = [{
8654
+ name: 'qp-name-like',
8655
+ label: '角色名称'
8656
+ }, {
8657
+ name: 'qp-code-like',
8658
+ label: '角色编码'
8659
+ }, {
8660
+ name: 'qp-categoryCode-eq',
8661
+ type: 'select',
8662
+ label: '角色分类',
8663
+ field: {
8664
+ type: 'select',
8665
+ props: {
8666
+ notFoundContent: '暂无数据',
8667
+ allowClear: true,
8668
+ showSearch: true,
8669
+ showArrow: true,
8670
+ maxTagCount: 1,
8671
+ optionFilterProp: 'children',
8672
+ filterOption: function filterOption(input, option) {
8673
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
8674
+ }
8675
+ }
8676
+ }
8677
+ }];
8678
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
8679
+ pageSize: 5000,
8680
+ currentPage: 1
8681
+ })]).then(function (x) {
8682
+ formatSource(x, 0, 2, tableSearchForm);
8683
+ });
8684
+ modalTableProps = _objectSpread2({
8685
+ modalTableTitle: '选择角色',
8686
+ tableSearchForm: tableSearchForm,
8687
+ tableColumns: [{
8688
+ title: '角色编码',
8689
+ dataIndex: 'code'
8690
+ }, {
8691
+ title: '角色名称',
8692
+ dataIndex: 'name',
8693
+ render: function render(text) {
8694
+ return handleTextOverflow(text);
8695
+ }
8696
+ }, {
8697
+ title: '角色分类',
8698
+ dataIndex: 'categoryName',
8699
+ render: function render(text) {
8700
+ return handleTextOverflow(text);
8701
+ }
8702
+ }, {
8703
+ dataIndex: 'remark',
8704
+ title: '角色描述',
8705
+ render: function render(text) {
8706
+ return handleTextOverflow(text);
8707
+ }
8708
+ }, {
8709
+ dataIndex: 'applicationName',
8710
+ title: '应用',
8711
+ render: function render(text) {
8712
+ return handleTextOverflow(text);
8713
+ }
8714
+ }]
8715
+ }, modalTableBusProps);
8716
+ }
8638
8717
  return {
8639
8718
  modalTableProps: modalTableProps,
8640
8719
  requestConfig: requestConfig,
@@ -24382,6 +24461,14 @@ var inputTypes = {
24382
24461
  props: _objectSpread2({
24383
24462
  treeCheckable: false
24384
24463
  }, normalSingleSelectProps)
24464
+ },
24465
+ 360: {
24466
+ type: 'bs-roleSelect',
24467
+ props: _objectSpread2(_objectSpread2({}, normalSingleSelectProps), {}, {
24468
+ requestConfig: {
24469
+ filter: 'qp-name,code-orGroup-in'
24470
+ }
24471
+ })
24385
24472
  }
24386
24473
  },
24387
24474
  30: {
@@ -24539,6 +24626,14 @@ var inputTypes = {
24539
24626
  props: _objectSpread2({
24540
24627
  treeCheckable: false
24541
24628
  }, normalSingleSelectProps)
24629
+ },
24630
+ 360: {
24631
+ type: 'bs-roleSelect',
24632
+ props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
24633
+ requestConfig: {
24634
+ filter: 'qp-name,code-orGroup-in'
24635
+ }
24636
+ })
24542
24637
  }
24543
24638
  }
24544
24639
  };
@@ -24570,7 +24665,8 @@ var choiceType = Object.freeze({
24570
24665
  310: '配送方式选择器',
24571
24666
  330: '变量',
24572
24667
  340: '规则模板选择器',
24573
- 350: '营销区域选择器'
24668
+ 350: '营销区域选择器',
24669
+ 360: '角色选择器'
24574
24670
  });
24575
24671
  var inputType = {
24576
24672
  10: '输入',
@@ -28681,6 +28777,120 @@ var RuleField = /*#__PURE__*/function (_Component) {
28681
28777
  });
28682
28778
  }
28683
28779
  }
28780
+ // 角色选择器
28781
+ if (dataChoiceBusinessType == 360) {
28782
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
28783
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
28784
+ selectBusinessType: "role",
28785
+ selectProps: _objectSpread2({
28786
+ style: styleCommon,
28787
+ placeholder: '请选择角色'
28788
+ }, dataInputBusinessType === 12 ? {
28789
+ mode: 'multiple',
28790
+ maxTagCount: 1
28791
+ } : {}),
28792
+ disabled: disabled,
28793
+ labelInValue: true,
28794
+ value: values[0],
28795
+ requestConfig: {
28796
+ filterInit: 'qp-code-in'
28797
+ },
28798
+ onChange: function onChange(value) {
28799
+ if (dataInputBusinessType === 12) {
28800
+ values[0] = value.map(function (i) {
28801
+ return i.key;
28802
+ });
28803
+ valueNames[0] = value.map(function (i) {
28804
+ return i.label || '';
28805
+ });
28806
+ } else {
28807
+ values[0] = [value.key];
28808
+ valueNames[0] = [value.label || ''];
28809
+ }
28810
+ callback(values, valueNames);
28811
+ },
28812
+ getPopupContainer: function getPopupContainer() {
28813
+ return document.body;
28814
+ }
28815
+ }), /*#__PURE__*/React.createElement("span", null, "~"), /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
28816
+ selectBusinessType: "role",
28817
+ selectProps: _objectSpread2({
28818
+ style: styleCommon,
28819
+ placeholder: '请选择角色'
28820
+ }, dataInputBusinessType === 12 ? {
28821
+ mode: 'multiple',
28822
+ maxTagCount: 1
28823
+ } : {}),
28824
+ disabled: disabled,
28825
+ labelInValue: true,
28826
+ value: values[1],
28827
+ requestConfig: {
28828
+ filterInit: 'qp-code-in'
28829
+ },
28830
+ onChange: function onChange(value) {
28831
+ if (dataInputBusinessType === 12) {
28832
+ values[1] = value.map(function (i) {
28833
+ return i.key;
28834
+ });
28835
+ valueNames[1] = value.map(function (i) {
28836
+ return i.label || '';
28837
+ });
28838
+ } else {
28839
+ values[1] = [value.key];
28840
+ valueNames[1] = [value.label || ''];
28841
+ }
28842
+ callback(values, valueNames);
28843
+ },
28844
+ getPopupContainer: function getPopupContainer() {
28845
+ return document.body;
28846
+ }
28847
+ }));
28848
+ } else {
28849
+ var _values12;
28850
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
28851
+ return {
28852
+ key: s,
28853
+ label: valueNames[vIndex]
28854
+ };
28855
+ })) || [] : values[0] && {
28856
+ key: values[0],
28857
+ label: valueNames[0]
28858
+ } || {};
28859
+ return /*#__PURE__*/React.createElement(BusinessSearchSelect$1, {
28860
+ selectBusinessType: "role",
28861
+ selectProps: _objectSpread2({
28862
+ style: styleCommon,
28863
+ placeholder: '请选择角色'
28864
+ }, dataInputBusinessType === 12 ? {
28865
+ mode: 'multiple',
28866
+ maxTagCount: 1
28867
+ } : {}),
28868
+ disabled: disabled,
28869
+ labelInValue: true,
28870
+ value: _currentValue11,
28871
+ requestConfig: {
28872
+ filterInit: 'qp-code-in'
28873
+ },
28874
+ onChange: function onChange(value) {
28875
+ if (dataInputBusinessType === 12) {
28876
+ values = value.map(function (i) {
28877
+ return i.key;
28878
+ }) || [];
28879
+ valueNames = value.map(function (i) {
28880
+ return i.label || '';
28881
+ }) || [];
28882
+ } else {
28883
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
28884
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
28885
+ }
28886
+ callback(values, valueNames);
28887
+ },
28888
+ getPopupContainer: function getPopupContainer() {
28889
+ return document.body;
28890
+ }
28891
+ });
28892
+ }
28893
+ }
28684
28894
  } else {
28685
28895
  if (dataTypeCode == 22 || dataTypeCode == 21 || dataTypeCode == 24 || dataTypeCode == 23) {
28686
28896
  //数值22, 字符串21, 布尔类型24, long23
@@ -29829,18 +30039,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29829
30039
  onClick: function onClick() {
29830
30040
  _this.handleLogicalTypeChange(itemDetail, 'or');
29831
30041
  }
29832
- }, "OR"), /*#__PURE__*/React.createElement("p", {
30042
+ }, "\u6216\u8005"), /*#__PURE__*/React.createElement("p", {
29833
30043
  className: 'choose_logical_type',
29834
30044
  onClick: function onClick() {
29835
30045
  _this.handleLogicalTypeChange(itemDetail, 'and');
29836
30046
  }
29837
- }, "AND")),
30047
+ }, "\u5E76\u4E14")),
29838
30048
  trigger: "focus"
29839
30049
  }, /*#__PURE__*/React.createElement(Button, {
29840
30050
  disabled: disabled,
29841
30051
  type: "link",
29842
30052
  className: 'logical_item_btn'
29843
- }, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? 'OR' : 'AND', /*#__PURE__*/React.createElement(DownOutlined, {
30053
+ }, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React.createElement(DownOutlined, {
29844
30054
  style: {
29845
30055
  marginLeft: '6px'
29846
30056
  }
package/dist/index.js CHANGED
@@ -6699,6 +6699,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
6699
6699
  case 'purchaseOrg':
6700
6700
  case 'salesOrg':
6701
6701
  case 'employee2':
6702
+ case 'role':
6702
6703
  result = '/user';
6703
6704
  break;
6704
6705
  case 'deliveryMode':
@@ -8654,6 +8655,84 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
8654
8655
  }]
8655
8656
  }, modalTableBusProps);
8656
8657
  }
8658
+ // 角色选择器
8659
+ if (type === 'role') {
8660
+ requestConfig = _objectSpread2({
8661
+ url: "".concat(prefixUrl.selectPrefix, "/role"),
8662
+ filter: 'qp-name,code-orGroup,like',
8663
+ mappingTextField: 'name',
8664
+ mappingTextShowKeyField: 'code',
8665
+ mappingValueField: 'code',
8666
+ otherParams: {
8667
+ 'qp-status-eq': 10,
8668
+ sorter: 'desc-id'
8669
+ },
8670
+ sourceName: 'roleCode'
8671
+ }, requestConfigProp);
8672
+ tableSearchForm = [{
8673
+ name: 'qp-name-like',
8674
+ label: '角色名称'
8675
+ }, {
8676
+ name: 'qp-code-like',
8677
+ label: '角色编码'
8678
+ }, {
8679
+ name: 'qp-categoryCode-eq',
8680
+ type: 'select',
8681
+ label: '角色分类',
8682
+ field: {
8683
+ type: 'select',
8684
+ props: {
8685
+ notFoundContent: '暂无数据',
8686
+ allowClear: true,
8687
+ showSearch: true,
8688
+ showArrow: true,
8689
+ maxTagCount: 1,
8690
+ optionFilterProp: 'children',
8691
+ filterOption: function filterOption(input, option) {
8692
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
8693
+ }
8694
+ }
8695
+ }
8696
+ }];
8697
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
8698
+ pageSize: 5000,
8699
+ currentPage: 1
8700
+ })]).then(function (x) {
8701
+ formatSource(x, 0, 2, tableSearchForm);
8702
+ });
8703
+ modalTableProps = _objectSpread2({
8704
+ modalTableTitle: '选择角色',
8705
+ tableSearchForm: tableSearchForm,
8706
+ tableColumns: [{
8707
+ title: '角色编码',
8708
+ dataIndex: 'code'
8709
+ }, {
8710
+ title: '角色名称',
8711
+ dataIndex: 'name',
8712
+ render: function render(text) {
8713
+ return handleTextOverflow(text);
8714
+ }
8715
+ }, {
8716
+ title: '角色分类',
8717
+ dataIndex: 'categoryName',
8718
+ render: function render(text) {
8719
+ return handleTextOverflow(text);
8720
+ }
8721
+ }, {
8722
+ dataIndex: 'remark',
8723
+ title: '角色描述',
8724
+ render: function render(text) {
8725
+ return handleTextOverflow(text);
8726
+ }
8727
+ }, {
8728
+ dataIndex: 'applicationName',
8729
+ title: '应用',
8730
+ render: function render(text) {
8731
+ return handleTextOverflow(text);
8732
+ }
8733
+ }]
8734
+ }, modalTableBusProps);
8735
+ }
8657
8736
  return {
8658
8737
  modalTableProps: modalTableProps,
8659
8738
  requestConfig: requestConfig,
@@ -24401,6 +24480,14 @@ var inputTypes = {
24401
24480
  props: _objectSpread2({
24402
24481
  treeCheckable: false
24403
24482
  }, normalSingleSelectProps)
24483
+ },
24484
+ 360: {
24485
+ type: 'bs-roleSelect',
24486
+ props: _objectSpread2(_objectSpread2({}, normalSingleSelectProps), {}, {
24487
+ requestConfig: {
24488
+ filter: 'qp-name,code-orGroup-in'
24489
+ }
24490
+ })
24404
24491
  }
24405
24492
  },
24406
24493
  30: {
@@ -24558,6 +24645,14 @@ var inputTypes = {
24558
24645
  props: _objectSpread2({
24559
24646
  treeCheckable: false
24560
24647
  }, normalSingleSelectProps)
24648
+ },
24649
+ 360: {
24650
+ type: 'bs-roleSelect',
24651
+ props: _objectSpread2(_objectSpread2({}, normalMultipleSelectProps), {}, {
24652
+ requestConfig: {
24653
+ filter: 'qp-name,code-orGroup-in'
24654
+ }
24655
+ })
24561
24656
  }
24562
24657
  }
24563
24658
  };
@@ -24589,7 +24684,8 @@ var choiceType = Object.freeze({
24589
24684
  310: '配送方式选择器',
24590
24685
  330: '变量',
24591
24686
  340: '规则模板选择器',
24592
- 350: '营销区域选择器'
24687
+ 350: '营销区域选择器',
24688
+ 360: '角色选择器'
24593
24689
  });
24594
24690
  var inputType = {
24595
24691
  10: '输入',
@@ -28700,6 +28796,120 @@ var RuleField = /*#__PURE__*/function (_Component) {
28700
28796
  });
28701
28797
  }
28702
28798
  }
28799
+ // 角色选择器
28800
+ if (dataChoiceBusinessType == 360) {
28801
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
28802
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
28803
+ selectBusinessType: "role",
28804
+ selectProps: _objectSpread2({
28805
+ style: styleCommon,
28806
+ placeholder: '请选择角色'
28807
+ }, dataInputBusinessType === 12 ? {
28808
+ mode: 'multiple',
28809
+ maxTagCount: 1
28810
+ } : {}),
28811
+ disabled: disabled,
28812
+ labelInValue: true,
28813
+ value: values[0],
28814
+ requestConfig: {
28815
+ filterInit: 'qp-code-in'
28816
+ },
28817
+ onChange: function onChange(value) {
28818
+ if (dataInputBusinessType === 12) {
28819
+ values[0] = value.map(function (i) {
28820
+ return i.key;
28821
+ });
28822
+ valueNames[0] = value.map(function (i) {
28823
+ return i.label || '';
28824
+ });
28825
+ } else {
28826
+ values[0] = [value.key];
28827
+ valueNames[0] = [value.label || ''];
28828
+ }
28829
+ callback(values, valueNames);
28830
+ },
28831
+ getPopupContainer: function getPopupContainer() {
28832
+ return document.body;
28833
+ }
28834
+ }), /*#__PURE__*/React__default['default'].createElement("span", null, "~"), /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
28835
+ selectBusinessType: "role",
28836
+ selectProps: _objectSpread2({
28837
+ style: styleCommon,
28838
+ placeholder: '请选择角色'
28839
+ }, dataInputBusinessType === 12 ? {
28840
+ mode: 'multiple',
28841
+ maxTagCount: 1
28842
+ } : {}),
28843
+ disabled: disabled,
28844
+ labelInValue: true,
28845
+ value: values[1],
28846
+ requestConfig: {
28847
+ filterInit: 'qp-code-in'
28848
+ },
28849
+ onChange: function onChange(value) {
28850
+ if (dataInputBusinessType === 12) {
28851
+ values[1] = value.map(function (i) {
28852
+ return i.key;
28853
+ });
28854
+ valueNames[1] = value.map(function (i) {
28855
+ return i.label || '';
28856
+ });
28857
+ } else {
28858
+ values[1] = [value.key];
28859
+ valueNames[1] = [value.label || ''];
28860
+ }
28861
+ callback(values, valueNames);
28862
+ },
28863
+ getPopupContainer: function getPopupContainer() {
28864
+ return document.body;
28865
+ }
28866
+ }));
28867
+ } else {
28868
+ var _values12;
28869
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
28870
+ return {
28871
+ key: s,
28872
+ label: valueNames[vIndex]
28873
+ };
28874
+ })) || [] : values[0] && {
28875
+ key: values[0],
28876
+ label: valueNames[0]
28877
+ } || {};
28878
+ return /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
28879
+ selectBusinessType: "role",
28880
+ selectProps: _objectSpread2({
28881
+ style: styleCommon,
28882
+ placeholder: '请选择角色'
28883
+ }, dataInputBusinessType === 12 ? {
28884
+ mode: 'multiple',
28885
+ maxTagCount: 1
28886
+ } : {}),
28887
+ disabled: disabled,
28888
+ labelInValue: true,
28889
+ value: _currentValue11,
28890
+ requestConfig: {
28891
+ filterInit: 'qp-code-in'
28892
+ },
28893
+ onChange: function onChange(value) {
28894
+ if (dataInputBusinessType === 12) {
28895
+ values = value.map(function (i) {
28896
+ return i.key;
28897
+ }) || [];
28898
+ valueNames = value.map(function (i) {
28899
+ return i.label || '';
28900
+ }) || [];
28901
+ } else {
28902
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
28903
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
28904
+ }
28905
+ callback(values, valueNames);
28906
+ },
28907
+ getPopupContainer: function getPopupContainer() {
28908
+ return document.body;
28909
+ }
28910
+ });
28911
+ }
28912
+ }
28703
28913
  } else {
28704
28914
  if (dataTypeCode == 22 || dataTypeCode == 21 || dataTypeCode == 24 || dataTypeCode == 23) {
28705
28915
  //数值22, 字符串21, 布尔类型24, long23
@@ -29848,18 +30058,18 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
29848
30058
  onClick: function onClick() {
29849
30059
  _this.handleLogicalTypeChange(itemDetail, 'or');
29850
30060
  }
29851
- }, "OR"), /*#__PURE__*/React__default['default'].createElement("p", {
30061
+ }, "\u6216\u8005"), /*#__PURE__*/React__default['default'].createElement("p", {
29852
30062
  className: 'choose_logical_type',
29853
30063
  onClick: function onClick() {
29854
30064
  _this.handleLogicalTypeChange(itemDetail, 'and');
29855
30065
  }
29856
- }, "AND")),
30066
+ }, "\u5E76\u4E14")),
29857
30067
  trigger: "focus"
29858
30068
  }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
29859
30069
  disabled: disabled,
29860
30070
  type: "link",
29861
30071
  className: 'logical_item_btn'
29862
- }, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? 'OR' : 'AND', /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, {
30072
+ }, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) == 'or' ? '或者' : '并且', /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, {
29863
30073
  style: {
29864
30074
  marginLeft: '6px'
29865
30075
  }
@@ -38,14 +38,14 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
38
38
  } | {
39
39
  title: string;
40
40
  dataIndex: string;
41
- render: (text: any, record: any) => JSX.Element;
41
+ render: (text: any, record: any) => React.JSX.Element;
42
42
  className?: undefined;
43
43
  width?: undefined;
44
44
  } | {
45
45
  title: string;
46
46
  dataIndex: string;
47
47
  className: string;
48
- render: () => JSX.Element;
48
+ render: () => React.JSX.Element;
49
49
  width?: undefined;
50
50
  })[];
51
51
  showModal: () => void;
@@ -53,12 +53,12 @@ declare class TableColumnSetting extends React.Component<TableColumnSettingProps
53
53
  handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
54
54
  handleTableHeadHidden: (title: string) => void;
55
55
  onSortEnd: ({ oldIndex, newIndex }: any) => void;
56
- DraggableContainer: (props: any) => JSX.Element;
57
- DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
56
+ DraggableContainer: (props: any) => React.JSX.Element;
57
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
58
58
  onChange: (e: any, title: any) => void;
59
59
  handleReset: () => void;
60
60
  onSearch: (e: any) => void;
61
61
  onSearchSort: (e: any) => void;
62
- render(): JSX.Element;
62
+ render(): React.JSX.Element;
63
63
  }
64
64
  export default TableColumnSetting;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.3.26",
3
+ "version": "2.3.27",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -169,6 +169,15 @@ export const inputTypes:any = {
169
169
  ...normalSingleSelectProps,
170
170
  },
171
171
  },
172
+ 360: {
173
+ type: 'bs-roleSelect',
174
+ props: {
175
+ ...normalSingleSelectProps,
176
+ requestConfig: {
177
+ filter: 'qp-name,code-orGroup-in',
178
+ },
179
+ },
180
+ },
172
181
  },
173
182
  30: {
174
183
  10: {
@@ -343,6 +352,15 @@ export const inputTypes:any = {
343
352
  ...normalSingleSelectProps,
344
353
  },
345
354
  },
355
+ 360: {
356
+ type: 'bs-roleSelect',
357
+ props: {
358
+ ...normalMultipleSelectProps,
359
+ requestConfig: {
360
+ filter: 'qp-name,code-orGroup-in',
361
+ },
362
+ },
363
+ },
346
364
  },
347
365
  };
348
366
 
@@ -384,6 +402,7 @@ export const choiceType = Object.freeze({
384
402
  330: '变量',
385
403
  340: '规则模板选择器',
386
404
  350: '营销区域选择器',
405
+ 360: '角色选择器',
387
406
  });
388
407
  export const inputType:any ={
389
408
  10: '输入',