@zgfe/business-lib 1.1.34-alpha.2 → 1.1.34-alpha.21

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 (100) hide show
  1. package/es/addToPanel/index.js +7 -1
  2. package/es/addToScene/index.js +1 -1
  3. package/es/assets/colorIcon/demo.css +539 -0
  4. package/es/assets/colorIcon/demo_index.html +741 -0
  5. package/es/assets/colorIcon/iconfont.css +112 -0
  6. package/es/assets/colorIcon/iconfont.js +43 -0
  7. package/es/assets/colorIcon/iconfont.json +177 -0
  8. package/es/assets/colorIcon/iconfont.svg +67 -0
  9. package/es/assets/colorIcon/iconfont.ttf +0 -0
  10. package/es/assets/colorIcon/iconfont.woff +0 -0
  11. package/es/assets/colorIcon/iconfont.woff2 +0 -0
  12. package/es/assets/iconfont/demo_index.html +95 -3
  13. package/es/assets/iconfont/iconfont.css +19 -3
  14. package/es/assets/iconfont/iconfont.js +1 -1
  15. package/es/assets/iconfont/iconfont.json +28 -0
  16. package/es/assets/iconfont/iconfont.ttf +0 -0
  17. package/es/assets/iconfont/iconfont.woff +0 -0
  18. package/es/assets/iconfont/iconfont.woff2 +0 -0
  19. package/es/assets/theme.js +1 -2
  20. package/es/attrConditions/components/stringList.js +0 -1
  21. package/es/attrConditions/components/valuesList.js +1 -0
  22. package/es/attrConditions/demo/group.js +3 -2
  23. package/es/attrConditions/demo/index.js +1 -11
  24. package/es/attrConditions/index.d.ts +3 -1
  25. package/es/attrConditions/index.js +24 -19
  26. package/es/attrConditions/types.d.ts +1 -1
  27. package/es/attributeSelector/index.js +10 -8
  28. package/es/attributeSelector/types.d.ts +4 -0
  29. package/es/attributeSelector/util.js +5 -1
  30. package/es/chart/util/formatOption.js +1 -1
  31. package/es/colorIcon/demo/index.d.ts +3 -0
  32. package/es/colorIcon/demo/index.js +10 -0
  33. package/es/colorIcon/index.d.ts +9 -0
  34. package/es/colorIcon/index.js +19 -0
  35. package/es/constants/apis.d.ts +6 -0
  36. package/es/constants/apis.js +7 -1
  37. package/es/constants/common.d.ts +11 -0
  38. package/es/constants/common.js +35 -0
  39. package/es/context/index.d.ts +4 -1
  40. package/es/cycleTime/month.js +17 -15
  41. package/es/datePicker/index.d.ts +1 -1
  42. package/es/datePicker/index.js +1 -1
  43. package/es/datePicker/styles/index.less +1 -1
  44. package/es/demoWrapper/content.d.ts +2 -1
  45. package/es/demoWrapper/content.js +25 -12
  46. package/es/demoWrapper/demo/index.js +5 -3
  47. package/es/demoWrapper/head.d.ts +3 -1
  48. package/es/demoWrapper/head.js +17 -5
  49. package/es/demoWrapper/index.js +18 -10
  50. package/es/dialog/index.js +1 -1
  51. package/es/eventSelector/demo/index.js +1 -0
  52. package/es/eventSelector/index.js +15 -10
  53. package/es/eventSelector/listPanel.js +33 -7
  54. package/es/eventSelector/types.d.ts +2 -0
  55. package/es/index.d.ts +3 -1
  56. package/es/index.js +3 -1
  57. package/es/select/handle.js +6 -2
  58. package/es/select/index.js +13 -11
  59. package/es/socket/demo/demo.d.ts +2 -0
  60. package/es/socket/demo/demo.js +145 -0
  61. package/es/socket/demo/index.less +27 -0
  62. package/es/socket/index.d.ts +33 -0
  63. package/es/socket/index.js +304 -0
  64. package/es/socket/types.d.ts +38 -0
  65. package/es/socket/types.js +28 -0
  66. package/es/targetConditionGroup/components/targetDimension.js +29 -27
  67. package/es/targetConditionGroup/data/operates.js +0 -3
  68. package/es/targetConditionGroup/demo/index.js +2 -1
  69. package/es/targetConditionGroup/index.js +65 -34
  70. package/es/targetConditionGroup/types.d.ts +1 -0
  71. package/es/targetSelector/index.js +9 -7
  72. package/es/userCondition/conditionTypeList.js +11 -8
  73. package/es/userCondition/conditions/business/operatorCondition.d.ts +11 -0
  74. package/es/userCondition/conditions/business/operatorCondition.js +181 -0
  75. package/es/userCondition/conditions/business/paramsCondition.d.ts +9 -0
  76. package/es/userCondition/conditions/business/paramsCondition.js +79 -0
  77. package/es/userCondition/conditions/businessCondition.d.ts +2 -8
  78. package/es/userCondition/conditions/businessCondition.js +37 -203
  79. package/es/userCondition/conditions/cdpCondition.js +1 -1
  80. package/es/userCondition/conditions/dataAttribute.js +78 -274
  81. package/es/userCondition/conditions/eventCondition.js +7 -4
  82. package/es/userCondition/conditions/order/runPeriodCondition.d.ts +11 -0
  83. package/es/userCondition/conditions/order/runPeriodCondition.js +142 -0
  84. package/es/userCondition/conditions/order/runTimesCondition.d.ts +11 -0
  85. package/es/userCondition/conditions/order/runTimesCondition.js +112 -0
  86. package/es/userCondition/conditions/textDesc.d.ts +1 -1
  87. package/es/userCondition/conditions/textDesc.js +160 -2
  88. package/es/userCondition/conditions/timeDimension.d.ts +1 -0
  89. package/es/userCondition/conditions/timeDimension.js +26 -76
  90. package/es/userCondition/demo/business.d.ts +3 -0
  91. package/es/userCondition/demo/business.js +71 -0
  92. package/es/userCondition/index.js +14 -2
  93. package/es/userCondition/orConditions.js +9 -4
  94. package/es/userCondition/types.d.ts +42 -8
  95. package/es/userCondition/types.js +8 -1
  96. package/es/userCondition/util.d.ts +1 -1
  97. package/es/userCondition/util.js +7 -4
  98. package/es/userTagsSelector/index.js +5 -3
  99. package/es/utils/ajax.js +0 -1
  100. package/package.json +60 -60
@@ -1,3 +1,9 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
8
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
9
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -12,9 +18,10 @@ import BizConditionGroup from '../attrConditions/group';
12
18
  import { Skeleton } from 'antd';
13
19
  import _ from 'lodash';
14
20
  import BizGlobalDataContext from '../context';
21
+ import { BuiltinIndicators } from '../constants/common';
15
22
  export var classPrefix = 'biz-target';
16
23
  var BizTargetCondition = function BizTargetCondition(props) {
17
- var _targetData$value2, _targetData$value2$ev, _targetData$value3, _targetData$value3$ev, _targetData$value4, _targetData$value4$ev, _targetData$value5, _targetData$value5$ev;
24
+ var _targetData$value2, _targetData$value2$gr, _targetData$value3, _targetData$value3$ev, _targetData$value4, _targetData$value4$ev, _targetData$value5, _targetData$value5$ev, _targetData$value6, _targetData$value6$ev, _targetData$value7, _targetData$value7$ev;
18
25
  var max = props.max;
19
26
  var _useState = useState(),
20
27
  _useState2 = _slicedToArray(_useState, 2),
@@ -69,14 +76,14 @@ var BizTargetCondition = function BizTargetCondition(props) {
69
76
  }, []);
70
77
  useEffect(function () {
71
78
  if (targetData === null || targetData === void 0 ? void 0 : targetData.value) {
72
- var _targetData$value$eve;
79
+ var _targetData$value$eve, _targetData$value$eve2, _targetData$value$eve3;
73
80
  var canAdd = true,
74
81
  canDelete = true;
75
- if (((_targetData$value$eve = targetData.value.event) === null || _targetData$value$eve === void 0 ? void 0 : _targetData$value$eve.id) === -100) {
76
- var _targetData$value$gro;
82
+ if (((_targetData$value$eve = targetData.value.event) === null || _targetData$value$eve === void 0 ? void 0 : _targetData$value$eve.id) === -100 || ((_targetData$value$eve2 = targetData.value.event) === null || _targetData$value$eve2 === void 0 ? void 0 : _targetData$value$eve2.id) === -204 || ((_targetData$value$eve3 = targetData.value.event) === null || _targetData$value$eve3 === void 0 ? void 0 : _targetData$value$eve3.id) === -205) {
83
+ var _targetData$value$gro, _targetData$value$eve4;
77
84
  canAdd = false;
78
85
  setFilters(undefined);
79
- if (!((_targetData$value$gro = targetData.value.group) === null || _targetData$value$gro === void 0 ? void 0 : _targetData$value$gro.id)) {
86
+ if (!((_targetData$value$gro = targetData.value.group) === null || _targetData$value$gro === void 0 ? void 0 : _targetData$value$gro.id) && ((_targetData$value$eve4 = targetData.value.event) === null || _targetData$value$eve4 === void 0 ? void 0 : _targetData$value$eve4.id) === -100) {
80
87
  canDelete = false;
81
88
  }
82
89
  } else {
@@ -109,37 +116,55 @@ var BizTargetCondition = function BizTargetCondition(props) {
109
116
  eventList: []
110
117
  };
111
118
  }
112
- if (data.eventId === -100) {
113
- target.value.event = {
114
- id: -100,
115
- name: '事件概览',
116
- attrList: []
117
- };
119
+ var hasEvent = false;
120
+ if (data.isBuiltIn || data.eventId < 0) {
121
+ if (data.eventGroupId) {
122
+ target.value.group = {
123
+ id: data.eventGroupId,
124
+ name: data.eventGroupId === -2 ? '整体' : '所有分组',
125
+ eventList: []
126
+ };
127
+ }
128
+ BuiltinIndicators.eventList.forEach(function (item) {
129
+ if (item.id === data.eventId) {
130
+ target.value.event = _objectSpread({}, item);
131
+ hasEvent = true;
132
+ }
133
+ });
118
134
  }
119
- for (var i = 0; i < eventGroupList.length; i++) {
120
- var group = eventGroupList[i];
121
- if (data.eventId !== -100) {
122
- for (var j = 0; j < group.eventList.length; j++) {
123
- var event = group.eventList[j];
124
- if (event.id === data.eventId) {
125
- target.value.event = event;
126
- break;
135
+ if (!hasEvent) {
136
+ if (data.eventId === -100) {
137
+ target.value.event = {
138
+ id: -100,
139
+ name: '事件概览',
140
+ attrList: []
141
+ };
142
+ }
143
+ for (var i = 0; i < eventGroupList.length; i++) {
144
+ var group = eventGroupList[i];
145
+ if (data.eventId !== -100) {
146
+ for (var j = 0; j < group.eventList.length; j++) {
147
+ var event = group.eventList[j];
148
+ if (event.id === data.eventId) {
149
+ target.value.event = event;
150
+ break;
151
+ }
127
152
  }
128
153
  }
129
- }
130
- if (data.eventGroupId && data.eventGroupId === group.id) {
131
- target.value.group = group;
132
- break;
154
+ if (data.eventGroupId && data.eventGroupId === group.id) {
155
+ target.value.group = group;
156
+ break;
157
+ }
133
158
  }
134
159
  }
135
160
  }
136
161
  return target;
137
162
  };
138
163
  var onChangeTarget = function onChangeTarget(target) {
139
- var _target$value, _target$value$event, _targetData$value, _targetData$value$eve2;
164
+ var _target$value, _target$value$event, _targetData$value, _targetData$value$eve5;
140
165
  setTargetData(target);
141
166
  var filterData = _.cloneDeep(filters);
142
- if (((_target$value = target.value) === null || _target$value === void 0 ? void 0 : (_target$value$event = _target$value.event) === null || _target$value$event === void 0 ? void 0 : _target$value$event.id) !== (targetData === null || targetData === void 0 ? void 0 : (_targetData$value = targetData.value) === null || _targetData$value === void 0 ? void 0 : (_targetData$value$eve2 = _targetData$value.event) === null || _targetData$value$eve2 === void 0 ? void 0 : _targetData$value$eve2.id)) {
167
+ if (((_target$value = target.value) === null || _target$value === void 0 ? void 0 : (_target$value$event = _target$value.event) === null || _target$value$event === void 0 ? void 0 : _target$value$event.id) !== (targetData === null || targetData === void 0 ? void 0 : (_targetData$value = targetData.value) === null || _targetData$value === void 0 ? void 0 : (_targetData$value$eve5 = _targetData$value.event) === null || _targetData$value$eve5 === void 0 ? void 0 : _targetData$value$eve5.id)) {
143
168
  filterData = undefined;
144
169
  setFilters(undefined);
145
170
  setIsAdd(false);
@@ -163,19 +188,25 @@ var BizTargetCondition = function BizTargetCondition(props) {
163
188
  setFilters(data);
164
189
  onChange(dimension, targetData, data);
165
190
  };
166
- var onChange = function onChange(analysisDimension, target, filterDatas) {
191
+ var onChange = function onChange(analysisDimension, target, filterData) {
167
192
  if (props.onChange) {
168
- var _target$value$event2, _target$value$event3, _target$value$event4, _target$value$event5, _target$value$event6, _target$value$group;
193
+ var _target$value$event2, _target$value$event3, _target$value$event4, _target$value$event5, _target$value$event6, _target$value$group2;
169
194
  if (!target || !target.value || !((_target$value$event2 = target.value.event) === null || _target$value$event2 === void 0 ? void 0 : _target$value$event2.id)) return;
195
+ var type = target.value.event.type;
196
+ if (!type) {
197
+ var _target$value$group;
198
+ type = ((_target$value$group = target.value.group) === null || _target$value$group === void 0 ? void 0 : _target$value$group.id) === -2 ? 'whole' : 'event';
199
+ }
170
200
  var data = {
171
- type: 'event',
201
+ type: type,
172
202
  alias: (target === null || target === void 0 ? void 0 : target.alias) || target.value.event.alias || ((_target$value$event3 = target.value.event) === null || _target$value$event3 === void 0 ? void 0 : _target$value$event3.name) || '',
173
203
  eventId: (_target$value$event4 = target.value.event) === null || _target$value$event4 === void 0 ? void 0 : _target$value$event4.id,
174
204
  eventName: ((_target$value$event5 = target.value.event) === null || _target$value$event5 === void 0 ? void 0 : _target$value$event5.alias) || ((_target$value$event6 = target.value.event) === null || _target$value$event6 === void 0 ? void 0 : _target$value$event6.name),
175
- eventGroupId: (_target$value$group = target.value.group) === null || _target$value$group === void 0 ? void 0 : _target$value$group.id,
205
+ eventGroupId: (_target$value$group2 = target.value.group) === null || _target$value$group2 === void 0 ? void 0 : _target$value$group2.id,
176
206
  analysisDimension: analysisDimension,
177
- filters: filterDatas,
178
- marked: target.value.event.marked
207
+ filters: filterData,
208
+ marked: target.value.event.marked,
209
+ isBuiltIn: target.value.event.isBuiltIn
179
210
  };
180
211
  props.onChange(data);
181
212
  }
@@ -206,8 +237,8 @@ var BizTargetCondition = function BizTargetCondition(props) {
206
237
  onAdd: onAdd,
207
238
  onDelete: onDelete,
208
239
  onChange: onChangeTarget
209
- }, props.children), /*#__PURE__*/React.createElement(BizTargetDimension, {
210
- eventId: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value2 = targetData.value) === null || _targetData$value2 === void 0 ? void 0 : (_targetData$value2$ev = _targetData$value2.event) === null || _targetData$value2$ev === void 0 ? void 0 : _targetData$value2$ev.id) ? targetData === null || targetData === void 0 ? void 0 : (_targetData$value3 = targetData.value) === null || _targetData$value3 === void 0 ? void 0 : (_targetData$value3$ev = _targetData$value3.event) === null || _targetData$value3$ev === void 0 ? void 0 : _targetData$value3$ev.id : undefined,
240
+ }, props.children), (targetData === null || targetData === void 0 ? void 0 : (_targetData$value2 = targetData.value) === null || _targetData$value2 === void 0 ? void 0 : (_targetData$value2$gr = _targetData$value2.group) === null || _targetData$value2$gr === void 0 ? void 0 : _targetData$value2$gr.id) === -2 || (targetData === null || targetData === void 0 ? void 0 : (_targetData$value3 = targetData.value) === null || _targetData$value3 === void 0 ? void 0 : (_targetData$value3$ev = _targetData$value3.event) === null || _targetData$value3$ev === void 0 ? void 0 : _targetData$value3$ev.isBuiltIn) ? null : /*#__PURE__*/React.createElement(BizTargetDimension, {
241
+ eventId: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value4 = targetData.value) === null || _targetData$value4 === void 0 ? void 0 : (_targetData$value4$ev = _targetData$value4.event) === null || _targetData$value4$ev === void 0 ? void 0 : _targetData$value4$ev.id) ? targetData === null || targetData === void 0 ? void 0 : (_targetData$value5 = targetData.value) === null || _targetData$value5 === void 0 ? void 0 : (_targetData$value5$ev = _targetData$value5.event) === null || _targetData$value5$ev === void 0 ? void 0 : _targetData$value5$ev.id : undefined,
211
242
  value: dimension,
212
243
  onChange: onChangeDimension
213
244
  })), (filters || isAdd) && /*#__PURE__*/React.createElement(BizConditionGroup, {
@@ -216,7 +247,7 @@ var BizTargetCondition = function BizTargetCondition(props) {
216
247
  onlyAnd: props.onlyAnd,
217
248
  enableEventProp: true,
218
249
  enableDelete: true,
219
- eventIdList: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value4 = targetData.value) === null || _targetData$value4 === void 0 ? void 0 : (_targetData$value4$ev = _targetData$value4.event) === null || _targetData$value4$ev === void 0 ? void 0 : _targetData$value4$ev.id) ? [targetData === null || targetData === void 0 ? void 0 : (_targetData$value5 = targetData.value) === null || _targetData$value5 === void 0 ? void 0 : (_targetData$value5$ev = _targetData$value5.event) === null || _targetData$value5$ev === void 0 ? void 0 : _targetData$value5$ev.id] : undefined,
250
+ eventIdList: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value6 = targetData.value) === null || _targetData$value6 === void 0 ? void 0 : (_targetData$value6$ev = _targetData$value6.event) === null || _targetData$value6$ev === void 0 ? void 0 : _targetData$value6$ev.id) ? [targetData === null || targetData === void 0 ? void 0 : (_targetData$value7 = targetData.value) === null || _targetData$value7 === void 0 ? void 0 : (_targetData$value7$ev = _targetData$value7.event) === null || _targetData$value7$ev === void 0 ? void 0 : _targetData$value7$ev.id] : undefined,
220
251
  onChange: onChangeFilters,
221
252
  onConditionsCount: setCount
222
253
  })));
@@ -20,6 +20,7 @@ export declare namespace TargetConditionTypes {
20
20
  eventId: number;
21
21
  eventName?: string;
22
22
  eventGroupId?: number;
23
+ isBuiltIn?: boolean;
23
24
  }
24
25
  interface Props {
25
26
  defaultValue?: Value;
@@ -103,13 +103,15 @@ var BizTargetSelector = function BizTargetSelector(props) {
103
103
  enabled: enableDelete,
104
104
  onClick: onClickIcon
105
105
  }), targetData && /*#__PURE__*/React.createElement(Dropdown, {
106
- visible: visible,
107
- onVisibleChange: onVisibleChange,
108
- overlay: /*#__PURE__*/React.createElement(BizTargetOptionMenu, {
109
- onClick: onClickIcon,
110
- enableAdd: enableAdd,
111
- enableDelete: enableDelete
112
- }),
106
+ open: visible,
107
+ onOpenChange: onVisibleChange,
108
+ dropdownRender: function dropdownRender() {
109
+ return /*#__PURE__*/React.createElement(BizTargetOptionMenu, {
110
+ onClick: onClickIcon,
111
+ enableAdd: enableAdd,
112
+ enableDelete: enableDelete
113
+ });
114
+ },
113
115
  trigger: ['click']
114
116
  }, /*#__PURE__*/React.createElement(BizTargetOptionIcon, {
115
117
  name: "more",
@@ -13,10 +13,13 @@ var ConditionTypeList = function ConditionTypeList(props) {
13
13
  textMode = _useContext.textMode,
14
14
  openTagCondition = _useContext.openTagCondition,
15
15
  openCdpCondition = _useContext.openCdpCondition,
16
+ openBusinessDataCondition = _useContext.openBusinessDataCondition,
17
+ openOrderDataCondition = _useContext.openOrderDataCondition,
18
+ openCondition = _useContext.openCondition,
16
19
  cdpTip = _useContext.cdpTip;
17
20
  var _useContext2 = useContext(BizGlobalDataContext),
18
21
  menuNameMap = _useContext2.menuNameMap,
19
- system = _useContext2.system;
22
+ currentUser = _useContext2.currentUser;
20
23
  if (!show || textMode) return null;
21
24
  return /*#__PURE__*/React.createElement("div", {
22
25
  className: "biz-user-condition-type-list"
@@ -24,7 +27,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
24
27
  className: "biz-user-condition-type-label"
25
28
  }, label) : null, /*#__PURE__*/React.createElement("ul", {
26
29
  className: "biz-user-condition-type-container"
27
- }, /*#__PURE__*/React.createElement("li", {
30
+ }, openCondition ? /*#__PURE__*/React.createElement("li", {
28
31
  className: "condition-type",
29
32
  key: "event",
30
33
  onClick: function onClick() {
@@ -32,7 +35,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
32
35
  }
33
36
  }, /*#__PURE__*/React.createElement(Space, {
34
37
  key: "event"
35
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u505A\u8FC7\uFF08\u6CA1\u505A\u8FC7\uFF09\u2026"))), /*#__PURE__*/React.createElement("li", {
38
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u505A\u8FC7\uFF08\u6CA1\u505A\u8FC7\uFF09\u2026"))) : null, openCondition ? /*#__PURE__*/React.createElement("li", {
36
39
  className: "condition-type",
37
40
  key: "add",
38
41
  onClick: function onClick() {
@@ -40,7 +43,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
40
43
  }
41
44
  }, /*#__PURE__*/React.createElement(Space, {
42
45
  key: "add"
43
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u65B0\u589E\u4E8E"))), /*#__PURE__*/React.createElement("li", {
46
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u65B0\u589E\u4E8E"))) : null, openCondition ? /*#__PURE__*/React.createElement("li", {
44
47
  className: "condition-type",
45
48
  key: "active",
46
49
  onClick: function onClick() {
@@ -48,7 +51,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
48
51
  }
49
52
  }, /*#__PURE__*/React.createElement(Space, {
50
53
  key: "active"
51
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u6D3B\u8DC3\u4E8E"))), /*#__PURE__*/React.createElement("li", {
54
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u6D3B\u8DC3\u4E8E"))) : null, openCondition ? /*#__PURE__*/React.createElement("li", {
52
55
  className: "condition-type",
53
56
  key: "prop",
54
57
  onClick: function onClick() {
@@ -56,7 +59,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
56
59
  }
57
60
  }, /*#__PURE__*/React.createElement(Space, {
58
61
  key: "prop"
59
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u7528\u6237\u5C5E\u6027\u6EE1\u8DB3"))), openTagCondition && (!menuNameMap || menuNameMap['userTags']) ? /*#__PURE__*/React.createElement("li", {
62
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u7528\u6237\u5C5E\u6027\u6EE1\u8DB3"))) : null, openTagCondition && (!menuNameMap || menuNameMap['userTags']) ? /*#__PURE__*/React.createElement("li", {
60
63
  className: "condition-type",
61
64
  onClick: function onClick() {
62
65
  return onAdd('tag');
@@ -70,7 +73,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
70
73
  title: cdpTip
71
74
  }, /*#__PURE__*/React.createElement(IconFont, {
72
75
  type: "tishiicon"
73
- })) : null)) : null, system && system === 'CEP' ? /*#__PURE__*/React.createElement("li", {
76
+ })) : null)) : null, openBusinessDataCondition || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2 ? /*#__PURE__*/React.createElement("li", {
74
77
  className: "condition-type",
75
78
  key: "business",
76
79
  onClick: function onClick() {
@@ -78,7 +81,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
78
81
  }
79
82
  }, /*#__PURE__*/React.createElement(Space, {
80
83
  key: "business"
81
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))) : null, system && system === 'CEP' ? /*#__PURE__*/React.createElement("li", {
84
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))) : null, openOrderDataCondition || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2 ? /*#__PURE__*/React.createElement("li", {
82
85
  className: "condition-type",
83
86
  key: "order",
84
87
  onClick: function onClick() {
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import '../styles/runTimesCondition.less';
3
+ export interface OperatorConditionPropsI {
4
+ condition: any;
5
+ index: number;
6
+ stringOperateList: any;
7
+ queryValueObj: any;
8
+ onChange: (condition: any) => void;
9
+ }
10
+ declare const OperatorCondition: React.FC<OperatorConditionPropsI>;
11
+ export default OperatorCondition;
@@ -0,0 +1,181 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import React, { useContext, useEffect, useState } from 'react';
14
+ import BizSelect from '../../../select';
15
+ import '../styles/runTimesCondition.less';
16
+ import { classPrefix } from '../..';
17
+ import { computeTypeList } from '../../../attrConditions/utils/operates';
18
+ import request from '../../../utils/ajax';
19
+ import BizGlobalDataContext from '../../../context';
20
+ import Apis from '../../../constants/apis';
21
+ var OperatorCondition = function OperatorCondition(props) {
22
+ var _condition$attrs$inde, _condition$attrs$inde2, _condition$paramsList;
23
+ var condition = props.condition,
24
+ index = props.index,
25
+ stringOperateList = props.stringOperateList,
26
+ queryValueObj = props.queryValueObj,
27
+ onChange = props.onChange;
28
+ var _useState = useState([]),
29
+ _useState2 = _slicedToArray(_useState, 2),
30
+ paramsList = _useState2[0],
31
+ setParamsList = _useState2[1];
32
+ var _useState3 = useState(0),
33
+ _useState4 = _slicedToArray(_useState3, 2),
34
+ timer = _useState4[0],
35
+ setTimer = _useState4[1];
36
+ var _useState5 = useState(''),
37
+ _useState6 = _slicedToArray(_useState5, 2),
38
+ searchValue = _useState6[0],
39
+ setSearchValue = _useState6[1];
40
+ var obj = (_condition$attrs$inde = condition.attrs[index]) === null || _condition$attrs$inde === void 0 ? void 0 : (_condition$attrs$inde2 = _condition$attrs$inde.params) === null || _condition$attrs$inde2 === void 0 ? void 0 : _condition$attrs$inde2.map(function (item) {
41
+ return {
42
+ name: item,
43
+ value: item
44
+ };
45
+ });
46
+ var _useState7 = useState(obj ? obj : []),
47
+ _useState8 = _slicedToArray(_useState7, 2),
48
+ current = _useState8[0],
49
+ setCurrent = _useState8[1];
50
+ var _useContext = useContext(BizGlobalDataContext),
51
+ currentApp = _useContext.currentApp;
52
+ useEffect(function () {
53
+ queryValueList(searchValue, {});
54
+ }, [searchValue]);
55
+ useEffect(function () {
56
+ var _queryValueObj$operat;
57
+ if (queryValueObj === null || queryValueObj === void 0 ? void 0 : (_queryValueObj$operat = queryValueObj.operate) === null || _queryValueObj$operat === void 0 ? void 0 : _queryValueObj$operat.id) {
58
+ queryValueList(queryValueObj.keyword, queryValueObj.operate);
59
+ }
60
+ }, [queryValueObj]);
61
+ function queryValueList(keyword, operate) {
62
+ var fetch = function fetch() {
63
+ request(Apis.dataAttrValue, {
64
+ method: 'post',
65
+ data: {
66
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
67
+ attrId: condition.attrs[index].attrId,
68
+ dataTypeId: operate.bizDataTypeId ? operate.bizDataTypeId : condition.attrs[index].orderType === 'master' ? 1 : 2,
69
+ keyword: keyword,
70
+ pageNum: 1,
71
+ pageSize: 20,
72
+ attrName: operate.name,
73
+ eventId: 0
74
+ }
75
+ }).then(function (res) {
76
+ if (res.data) {
77
+ var _res$data;
78
+ var isString = function isString(val) {
79
+ return typeof val === 'string';
80
+ };
81
+ var list = (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.map(function (item) {
82
+ return {
83
+ name: !isString(item) ? JSON.stringify(item) : item,
84
+ value: !isString(item) ? JSON.stringify(item) : item
85
+ };
86
+ });
87
+ condition.paramsList[index].paramsList = list;
88
+ setParamsList(list);
89
+ } else {
90
+ setParamsList([]);
91
+ condition.paramsList[index].paramsList = [];
92
+ }
93
+ }).catch(function () {
94
+ setParamsList([]);
95
+ condition.paramsList[index].paramsList = [];
96
+ });
97
+ };
98
+ if (timer) clearTimeout(timer);
99
+ setTimer(setTimeout(function () {
100
+ fetch();
101
+ }, 400));
102
+ onChange(_objectSpread({}, condition));
103
+ }
104
+ var onStringOperateChange = function onStringOperateChange(operate) {
105
+ if (condition.attrs[index].operator !== 'absolute') {
106
+ condition.attrs[index].params = [];
107
+ }
108
+ condition.attrs[index].operator = operate.value;
109
+ onChange(_objectSpread({}, condition));
110
+ };
111
+ var onComputeTypeOperateChange = function onComputeTypeOperateChange(operate) {
112
+ condition.attrs[index].computeType = operate.value;
113
+ onChange(_objectSpread({}, condition));
114
+ };
115
+ var onParamsChange = function onParamsChange(operate) {
116
+ if (operate.length > 0) {
117
+ var _obj = operate === null || operate === void 0 ? void 0 : operate.map(function (item) {
118
+ return {
119
+ name: item.name,
120
+ value: item.value
121
+ };
122
+ });
123
+ var params = operate === null || operate === void 0 ? void 0 : operate.map(function (item) {
124
+ return item.value;
125
+ });
126
+ if (!(condition === null || condition === void 0 ? void 0 : condition.typeId)) {
127
+ queryValueList(searchValue, {});
128
+ }
129
+ setCurrent(_obj);
130
+ condition.attrs[index].params = params;
131
+ onChange(_objectSpread({}, condition));
132
+ }
133
+ };
134
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
135
+ className: "".concat(classPrefix, "-runtimes-condition")
136
+ }, !(condition === null || condition === void 0 ? void 0 : condition.typeId) && condition.attrs[index].attrType === 'cont-num' ? /*#__PURE__*/React.createElement("div", {
137
+ className: "".concat(classPrefix, "-period-condition-operator")
138
+ }, /*#__PURE__*/React.createElement(BizSelect, {
139
+ className: "".concat(classPrefix, "-select-condition"),
140
+ options: computeTypeList,
141
+ labelField: "name",
142
+ keyField: "value",
143
+ value: {
144
+ name: condition.attrs[index].computeType,
145
+ value: condition.attrs[index].computeType
146
+ },
147
+ overlayWidth: 120,
148
+ onChange: onComputeTypeOperateChange
149
+ })) : null, (condition === null || condition === void 0 ? void 0 : condition.typeId) && condition.attrs[index].attrType === 'cont-num' || !(condition === null || condition === void 0 ? void 0 : condition.typeId) ? /*#__PURE__*/React.createElement("div", {
150
+ className: "".concat(classPrefix, "-period-condition-operator")
151
+ }, /*#__PURE__*/React.createElement(BizSelect, {
152
+ className: "".concat(classPrefix, "-select-condition"),
153
+ options: stringOperateList,
154
+ labelField: "name",
155
+ keyField: "value",
156
+ value: {
157
+ name: condition.attrs[index].operator,
158
+ value: condition.attrs[index].operator
159
+ },
160
+ overlayWidth: 120,
161
+ onChange: onStringOperateChange
162
+ })) : null, !(condition === null || condition === void 0 ? void 0 : condition.typeId) && condition.attrs[index].attrType === 'cont-string' || condition.attrs[index].attrType === 'cont-string' && condition.attrs[index].operator !== 'is null' && condition.attrs[index].operator !== 'is not null' ? /*#__PURE__*/React.createElement("div", {
163
+ className: "".concat(classPrefix, "-period-condition-operator"),
164
+ style: {
165
+ width: '250px'
166
+ }
167
+ }, /*#__PURE__*/React.createElement(BizSelect, {
168
+ className: "".concat(classPrefix, "-multi-select"),
169
+ multiple: true,
170
+ size: "middle",
171
+ labelField: "name",
172
+ keyField: "value",
173
+ options: paramsList.length > 0 ? paramsList : condition === null || condition === void 0 ? void 0 : (_condition$paramsList = condition.paramsList[index]) === null || _condition$paramsList === void 0 ? void 0 : _condition$paramsList.paramsList,
174
+ value: current,
175
+ onChange: onParamsChange,
176
+ onSearch: setSearchValue,
177
+ enableCreate: true,
178
+ enableSearch: true
179
+ })) : null));
180
+ };
181
+ export default OperatorCondition;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import '../styles/runTimesCondition.less';
3
+ export interface ParamsConditionPropsI {
4
+ condition: any;
5
+ index: number;
6
+ onChange: (condition: any) => void;
7
+ }
8
+ declare const ParamsCondition: React.FC<ParamsConditionPropsI>;
9
+ export default ParamsCondition;
@@ -0,0 +1,79 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ import React from 'react';
8
+ import '../styles/runTimesCondition.less';
9
+ import { classPrefix } from '../..';
10
+ import moment from 'moment';
11
+ import { DatePicker, Input } from 'antd';
12
+ var RangePicker = DatePicker.RangePicker;
13
+ var ParamsCondition = function ParamsCondition(props) {
14
+ var condition = props.condition,
15
+ index = props.index,
16
+ onChange = props.onChange;
17
+ var onValue0Change = function onValue0Change(e) {
18
+ var value = e.target.value;
19
+ condition.attrs[index].params[0] = value;
20
+ onChange(_objectSpread({}, condition));
21
+ };
22
+ var onValue1Change = function onValue1Change(e) {
23
+ var value = e.target.value;
24
+ condition.attrs[index].params[1] = value;
25
+ onChange(_objectSpread({}, condition));
26
+ };
27
+ function onDateChange(newData) {
28
+ if (condition.attrs[index].operator === 'absolute') {
29
+ var dateRange = newData;
30
+ var newValues = dateRange === null || dateRange === void 0 ? void 0 : dateRange.map(function (date) {
31
+ return date.format('YYYY-MM-DD');
32
+ });
33
+ condition.attrs[index].params = newValues;
34
+ onChange(_objectSpread({}, condition));
35
+ }
36
+ }
37
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
38
+ className: "".concat(classPrefix, "-runtimes-condition")
39
+ }, condition.attrs[index].attrType === 'cont-num' || condition.attrs[index].attrType === 'cont-date' && condition.attrs[index].operator !== 'absolute' ? /*#__PURE__*/React.createElement("div", {
40
+ className: "".concat(classPrefix, "-period-condition")
41
+ }, /*#__PURE__*/React.createElement(Input, {
42
+ key: "relative-date",
43
+ className: "".concat(classPrefix, "-select-condition"),
44
+ size: "middle",
45
+ type: condition.attrs[index].attrType === 'cont-date' ? 'number' : '',
46
+ placeholder: condition.attrs[index].operator === 'between' ? '输入最小值' : '请输入',
47
+ value: condition.attrs[index].params[0],
48
+ style: {
49
+ width: condition.attrs[index].operator === 'between' || condition.attrs[index].attrType === 'cont-date' && condition.attrs[index].operator ? 100 : 200
50
+ },
51
+ suffix: condition.attrs[index].attrType === 'cont-date' ? '天' : null,
52
+ onChange: onValue0Change
53
+ })) : null, condition.attrs[index].attrType === 'cont-num' && condition.attrs[index].operator === 'between' || condition.attrs[index].attrType === 'cont-date' && (condition.attrs[index].operator === 'relativeInterval' || condition.attrs[index].operator === 'futureInterval') ? /*#__PURE__*/React.createElement("div", {
54
+ className: "".concat(classPrefix, "-period-condition"),
55
+ style: {
56
+ marginLeft: 10
57
+ }
58
+ }, /*#__PURE__*/React.createElement(Input, {
59
+ key: "relative-date",
60
+ className: "".concat(classPrefix, "-select-condition"),
61
+ size: "middle",
62
+ type: condition.attrs[index].attrType === 'cont-date' ? 'number' : '',
63
+ placeholder: '输入最大值',
64
+ value: condition.attrs[index].params[1],
65
+ style: {
66
+ width: 100
67
+ },
68
+ suffix: condition.attrs[index].attrType === 'cont-date' ? '天' : null,
69
+ onChange: onValue1Change
70
+ })) : null, condition.attrs[index].attrType === 'cont-date' && condition.attrs[index].operator === 'absolute' ? /*#__PURE__*/React.createElement("div", {
71
+ className: "".concat(classPrefix, "-runtimes-condition")
72
+ }, /*#__PURE__*/React.createElement(RangePicker, {
73
+ size: "middle",
74
+ defaultValue: [moment(condition.attrs[index].params[0]), moment(condition.attrs[index].params[1])],
75
+ onChange: onDateChange,
76
+ allowClear: false
77
+ })) : null));
78
+ };
79
+ export default ParamsCondition;
@@ -1,11 +1,5 @@
1
1
  import React from 'react';
2
- import { AllConditionBasePropsI, BizUserConditionT } from '../types';
2
+ import { BizUserConditionT } from '../types';
3
3
  import './styles/periodCondition.less';
4
- export interface BusinessConditionPropsI extends AllConditionBasePropsI<any> {
5
- condition: BizUserConditionT.BusinessCondition;
6
- label?: string | React.ReactDOM;
7
- isEvent?: boolean;
8
- isRealTime?: boolean;
9
- }
10
- declare const BusinessCondition: React.FC<BusinessConditionPropsI>;
4
+ declare const BusinessCondition: React.FC<BizUserConditionT.BusinessPropsI>;
11
5
  export default BusinessCondition;