@zgfe/business-lib 1.2.71-hxd.9 → 1.2.86-h5.1
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.
- package/README.md +1 -1
- package/es/AUMFormulaTarget/components/formula/index.js +10 -10
- package/es/AUMFormulaTarget/components/formula/util.js +6 -6
- package/es/AUMFormulaTarget/components/formulaItem/index.js +23 -23
- package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +50 -50
- package/es/AUMFormulaTarget/components/panel/index.js +30 -30
- package/es/AUMFormulaTarget/components/panel/item.js +22 -22
- package/es/AUMFormulaTarget/components/symbol/index.js +5 -5
- package/es/AUMFormulaTarget/demo/group.js +15 -15
- package/es/AUMFormulaTarget/demo/index.js +2 -2
- package/es/AUMFormulaTarget/index.d.ts +1 -4
- package/es/AUMFormulaTarget/index.js +11 -11
- package/es/addToPanel/components/addPanel.js +5 -5
- package/es/addToPanel/components/numberChart.js +5 -5
- package/es/addToPanel/components/radioGroup.d.ts +1 -4
- package/es/addToPanel/components/styleList.d.ts +1 -4
- package/es/addToPanel/components/styleList.js +5 -5
- package/es/addToPanel/components/wholeChart.js +5 -5
- package/es/addToPanel/demo/edit.js +8 -8
- package/es/addToPanel/demo/index.js +8 -8
- package/es/addToPanel/index.d.ts +1 -4
- package/es/addToPanel/index.js +22 -22
- package/es/addToScene/demo/index.js +8 -8
- package/es/addToScene/index.js +16 -11
- package/es/amountSelector/demo/index.js +1 -1
- package/es/amountSelector/index.js +1 -1
- package/es/assets/demo/dropdown.js +5 -5
- package/es/assets/demo/index.d.ts +1 -1
- package/es/assets/demo/index.js +1 -1
- package/es/assets/demo/input.js +6 -6
- package/es/assets/iconfont/demo_index.html +348 -19
- package/es/assets/iconfont/iconfont.css +3 -11
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +161 -0
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/assets/theme.js +1 -1
- package/es/attrCondition/demo/group.js +1 -1
- package/es/attrCondition/demo/index.js +1 -1
- package/es/attrCondition/group.js +9 -12
- package/es/attrCondition/index.js +13 -16
- package/es/attrCondition/useAttrCondition.js +9 -11
- package/es/attrCondition/useConditionGroup.js +8 -8
- package/es/attrConditions/components/operateList.js +13 -16
- package/es/attrConditions/components/stringList.js +31 -26
- package/es/attrConditions/components/valuesList.js +5 -5
- package/es/attrConditions/demo/group.js +8 -8
- package/es/attrConditions/demo/index.js +6 -6
- package/es/attrConditions/group.js +3 -3
- package/es/attrConditions/index.d.ts +1 -4
- package/es/attrConditions/types.d.ts +0 -2
- package/es/attrConditions/utils/operates.d.ts +0 -4
- package/es/attrConditions/utils/operates.js +0 -37
- package/es/attributeSelector/demo/disable.d.ts +1 -1
- package/es/attributeSelector/demo/disable.js +7 -7
- package/es/attributeSelector/demo/extra.d.ts +1 -1
- package/es/attributeSelector/demo/extra.js +7 -7
- package/es/attributeSelector/demo/funnel.d.ts +1 -1
- package/es/attributeSelector/demo/funnel.js +7 -7
- package/es/attributeSelector/demo/index.d.ts +1 -1
- package/es/attributeSelector/demo/index.js +7 -7
- package/es/attributeSelector/index.js +35 -39
- package/es/attributeSelector/listPanel.js +126 -330
- package/es/attributeSelector/types.d.ts +0 -1
- package/es/attributeSelector/util.js +0 -3
- package/es/chart/demo/bar.js +1 -1
- package/es/chart/demo/index.js +7 -7
- package/es/chart/demo/line_bar.js +1 -1
- package/es/chart/demo/line_bar_stack.js +22 -22
- package/es/chart/demo/map.js +1 -1
- package/es/chart/demo/muit_y.js +1 -1
- package/es/chart/demo/pie.js +1 -1
- package/es/chart/demo/stack.js +7 -7
- package/es/chart/index.js +23 -21
- package/es/chart/util/chartOptionConfig.js +6 -6
- package/es/chart/util/data/china.js +1 -1
- package/es/chart/util/formatData.js +6 -6
- package/es/chart/util/mapUtil.js +11 -11
- package/es/colorIcon/demo/index.js +1 -1
- package/es/colorIcon/index.js +4 -2
- package/es/constants/apis.d.ts +0 -3
- package/es/constants/apis.js +2 -5
- package/es/constants/common.d.ts +0 -11
- package/es/constants/common.js +0 -31
- package/es/context/index.d.ts +0 -1
- package/es/context/index.js +1 -3
- package/es/cycleTime/demo/disable.js +1 -1
- package/es/cycleTime/demo/hour.js +6 -6
- package/es/cycleTime/demo/index.d.ts +1 -1
- package/es/cycleTime/demo/index.js +2 -2
- package/es/cycleTime/demo/multi.js +1 -1
- package/es/cycleTime/index.js +24 -22
- package/es/cycleTime/month.js +12 -9
- package/es/dataSetGroup/demo/index.js +1 -1
- package/es/dataSetGroup/index.js +6 -5
- package/es/dataSetGroup/overlay.js +10 -10
- package/es/datePicker/datePicker.js +8 -8
- package/es/datePicker/demo/customType.d.ts +1 -1
- package/es/datePicker/demo/customType.js +7 -7
- package/es/datePicker/demo/day.d.ts +1 -1
- package/es/datePicker/demo/day.js +7 -7
- package/es/datePicker/demo/index.d.ts +1 -1
- package/es/datePicker/demo/index.js +7 -7
- package/es/datePicker/index.d.ts +1 -4
- package/es/datePicker/index.js +19 -19
- package/es/datePicker/shortcut.js +5 -5
- package/es/datePickerV2/datePicker.d.ts +1 -1
- package/es/datePickerV2/datePicker.js +11 -20
- package/es/datePickerV2/demo/customType.d.ts +1 -1
- package/es/datePickerV2/demo/customType.js +7 -7
- package/es/datePickerV2/demo/day.d.ts +1 -1
- package/es/datePickerV2/demo/day.js +8 -10
- package/es/datePickerV2/demo/index.d.ts +1 -1
- package/es/datePickerV2/demo/index.js +9 -10
- package/es/datePickerV2/index.d.ts +1 -4
- package/es/datePickerV2/index.js +26 -35
- package/es/datePickerV2/popoverContent.d.ts +1 -1
- package/es/datePickerV2/popoverContent.js +9 -10
- package/es/datePickerV2/shortcut.js +7 -7
- package/es/datePickerV2/types.d.ts +1 -3
- package/es/datePickerV2/types.js +0 -1
- package/es/datePickerV2/utils.js +1 -8
- package/es/demoWrapper/content.js +46 -40
- package/es/demoWrapper/demo/index.js +1 -1
- package/es/demoWrapper/index.js +15 -15
- package/es/dialog/demo/index.js +6 -6
- package/es/dialog/index.d.ts +1 -4
- package/es/dialog/index.js +6 -6
- package/es/dnd/demo/data.js +6 -6
- package/es/dnd/demo/handle.js +6 -6
- package/es/dnd/demo/index.js +2 -6
- package/es/dnd/demo/styles/index.less +1 -1
- package/es/dnd/index.d.ts +1 -4
- package/es/dnd/index.js +11 -10
- package/es/dnd/item.js +6 -20
- package/es/empty/demo/index.d.ts +1 -1
- package/es/empty/demo/index.js +2 -2
- package/es/empty/index.js +6 -6
- package/es/eventSelector/demo/index.js +6 -6
- package/es/eventSelector/demo/multiple.js +6 -6
- package/es/eventSelector/index.d.ts +1 -4
- package/es/eventSelector/index.js +9 -10
- package/es/eventSelector/listPanel.js +39 -41
- package/es/eventSelector/option.js +3 -3
- package/es/eventSelector/types.d.ts +0 -1
- package/es/formulaTarget/components/formula/index.js +8 -9
- package/es/formulaTarget/components/formula/index.less +1 -1
- package/es/formulaTarget/components/formula/types.d.ts +0 -1
- package/es/formulaTarget/components/formula/util.js +6 -6
- package/es/formulaTarget/components/formulaItem/index.js +22 -27
- package/es/formulaTarget/components/formulaItem/types.d.ts +0 -1
- package/es/formulaTarget/components/panel/index.js +33 -34
- package/es/formulaTarget/components/panel/item.js +10 -17
- package/es/formulaTarget/components/panel/types.d.ts +0 -2
- package/es/formulaTarget/components/symbol/index.js +5 -5
- package/es/formulaTarget/demo/group.js +15 -15
- package/es/formulaTarget/demo/index.js +1 -1
- package/es/formulaTarget/index.d.ts +1 -4
- package/es/formulaTarget/index.js +26 -27
- package/es/formulaTarget/types.d.ts +0 -1
- package/es/hooks/useBizStore.js +44 -38
- package/es/hooks/useChanged.js +5 -5
- package/es/hooks/useSubject.js +5 -5
- package/es/icon/demo/index.js +1 -1
- package/es/icon/demo/list.js +1 -1
- package/es/icon/iconFont.d.ts +1 -4
- package/es/icon/iconFont.js +8 -8
- package/es/index.d.ts +1 -2
- package/es/index.js +1 -2
- package/es/layout/analysisLayout/demo/index.d.ts +1 -1
- package/es/layout/analysisLayout/demo/index.js +2 -2
- package/es/layout/analysisLayout/index.d.ts +1 -4
- package/es/layout/analysisLayout/index.js +8 -8
- package/es/layout/columnLayout/demo/data.js +9 -9
- package/es/layout/columnLayout/demo/index.js +6 -6
- package/es/layout/columnLayout/demo/panel.js +7 -7
- package/es/layout/columnLayout/index.d.ts +1 -4
- package/es/layout/columnLayout/index.js +10 -10
- package/es/layout/detail/demo/index.js +1 -1
- package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
- package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
- package/es/layout/optionTitle/components/btnMenu/index.less +1 -1
- package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
- package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
- package/es/layout/optionTitle/components/title/demo.js +5 -5
- package/es/layout/optionTitle/components/title/index.d.ts +2 -1
- package/es/layout/optionTitle/components/title/index.js +15 -19
- package/es/layout/optionTitle/components/title/index.less +1 -1
- package/es/layout/optionTitle/demo/index.js +6 -6
- package/es/layout/optionTitle/demo/layout.js +6 -6
- package/es/layout/optionTitle/demo/panelCreate.js +6 -6
- package/es/layout/optionTitle/index.js +16 -16
- package/es/layout/optionTitle/layout.js +9 -9
- package/es/layout/optionTitle/styles/index.less +1 -1
- package/es/layout/optionTitle/styles/layout.less +1 -1
- package/es/layout/optionTitle/styles/search.less +1 -1
- package/es/loading/demo/index.d.ts +1 -1
- package/es/loading/demo/index.js +2 -2
- package/es/loginForm/demo/index.js +1 -1
- package/es/loginForm/index.js +5 -5
- package/es/platformSelector/demo/index.js +1 -1
- package/es/platformSelector/index.js +6 -6
- package/es/platformSelector/util.js +1 -1
- package/es/productCondition/conditionTypeList.d.ts +1 -4
- package/es/productCondition/conditionTypeList.js +2 -2
- package/es/productCondition/conditions/cdpCshCondition.js +51 -54
- package/es/productCondition/conditions/constants.d.ts +0 -2
- package/es/productCondition/conditions/constants.js +0 -2
- package/es/productCondition/conditions/eventCondition.js +8 -8
- package/es/productCondition/conditions/order/runPeriodCondition.js +10 -8
- package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/productCondition/conditions/periodCondition.d.ts +1 -4
- package/es/productCondition/conditions/periodCondition.js +8 -8
- package/es/productCondition/conditions/propCondition.d.ts +1 -4
- package/es/productCondition/conditions/propCondition.js +14 -14
- package/es/productCondition/conditions/runTimesCondition.js +6 -6
- package/es/productCondition/conditions/textDesc.js +6 -6
- package/es/productCondition/conditions/timeDimension.js +18 -18
- package/es/productCondition/demo/business.d.ts +1 -1
- package/es/productCondition/demo/business.js +7 -7
- package/es/productCondition/demo/index.d.ts +1 -1
- package/es/productCondition/demo/index.js +7 -7
- package/es/productCondition/index.d.ts +1 -4
- package/es/productCondition/index.js +17 -17
- package/es/productCondition/orConditions.js +8 -8
- package/es/productCondition/relationLabel.js +2 -2
- package/es/productCondition/types.d.ts +1 -1
- package/es/productCondition/util.js +6 -6
- package/es/quickDatePicker/demo/index.d.ts +1 -1
- package/es/quickDatePicker/demo/index.js +18 -38
- package/es/quickDatePicker/index.js +21 -115
- package/es/quickDatePicker/styles/index.less +23 -26
- package/es/quickDatePicker/types.d.ts +0 -12
- package/es/quickDatePicker/utils.d.ts +0 -6
- package/es/quickDatePicker/utils.js +1 -54
- package/es/searchInput/demo/index.js +1 -1
- package/es/select/demo/children.js +6 -6
- package/es/select/demo/customLabel.js +1 -1
- package/es/select/demo/group.js +6 -6
- package/es/select/demo/index.js +6 -6
- package/es/select/demo/loading.js +6 -6
- package/es/select/demo/multiple.js +6 -6
- package/es/select/handle.js +20 -13
- package/es/select/index.d.ts +1 -4
- package/es/select/index.js +17 -16
- package/es/select/option.js +13 -13
- package/es/select/overlay.js +17 -16
- package/es/socket/demo/demo.js +12 -12
- package/es/socket/index.js +26 -23
- package/es/subjectWrapper/demo/index.js +1 -1
- package/es/subjectWrapper/index.js +13 -13
- package/es/table/demo/index.d.ts +1 -1
- package/es/table/demo/index.js +17 -17
- package/es/table/demo/index2.js +6 -6
- package/es/table/demo/index3.js +9 -9
- package/es/table/index.js +8 -8
- package/es/targetConditionGroup/components/targetDimension.js +64 -157
- package/es/targetConditionGroup/demo/group.js +15 -15
- package/es/targetConditionGroup/demo/index.js +6 -6
- package/es/targetConditionGroup/index.d.ts +1 -4
- package/es/targetConditionGroup/index.js +38 -38
- package/es/targetSelector/demo/index.d.ts +1 -1
- package/es/targetSelector/demo/index.js +7 -7
- package/es/targetSelector/editBox.js +5 -5
- package/es/targetSelector/index.js +7 -7
- package/es/targetSelector/optionIcon.d.ts +1 -4
- package/es/userCondition/conditionTypeList.d.ts +1 -4
- package/es/userCondition/conditionTypeList.js +11 -11
- package/es/userCondition/conditions/business/operatorCondition.js +15 -15
- package/es/userCondition/conditions/business/paramsCondition.js +10 -10
- package/es/userCondition/conditions/businessCondition.js +15 -15
- package/es/userCondition/conditions/cdpCondition.js +33 -36
- package/es/userCondition/conditions/cdpCshCondition.js +51 -54
- package/es/userCondition/conditions/constants.d.ts +0 -2
- package/es/userCondition/conditions/constants.js +0 -2
- package/es/userCondition/conditions/dataAttribute.js +18 -22
- package/es/userCondition/conditions/eventCondition.js +17 -17
- package/es/userCondition/conditions/order/runPeriodCondition.d.ts +1 -4
- package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/userCondition/conditions/periodCondition.d.ts +1 -4
- package/es/userCondition/conditions/periodCondition.js +10 -10
- package/es/userCondition/conditions/propCondition.js +20 -18
- package/es/userCondition/conditions/runTimesCondition.js +6 -6
- package/es/userCondition/conditions/tagsCondition.js +11 -11
- package/es/userCondition/conditions/textDesc.js +17 -17
- package/es/userCondition/conditions/timeDimension.js +18 -18
- package/es/userCondition/demo/business.d.ts +1 -1
- package/es/userCondition/demo/business.js +7 -7
- package/es/userCondition/demo/index.d.ts +1 -1
- package/es/userCondition/demo/index.js +7 -7
- package/es/userCondition/index.js +129 -70
- package/es/userCondition/orConditions.js +8 -8
- package/es/userCondition/relationLabel.js +2 -2
- package/es/userCondition/types.d.ts +1 -1
- package/es/userCondition/util.js +6 -6
- package/es/userGroup/demo/group.js +14 -14
- package/es/userGroup/demo/index.js +9 -9
- package/es/userGroup/index.d.ts +1 -4
- package/es/userGroup/index.js +71 -13
- package/es/userGroup/overlay.js +15 -15
- package/es/userGroupHeader/demo/index.js +1 -1
- package/es/userGroupHeader/index.d.ts +0 -1
- package/es/userGroupHeader/index.js +71 -34
- package/es/userGroupHeader/styles/index.less +0 -8
- package/es/userTagsSelector/cascaderOverlay.d.ts +1 -4
- package/es/userTagsSelector/cascaderOverlay.js +27 -27
- package/es/userTagsSelector/components/tagList/index.d.ts +1 -4
- package/es/userTagsSelector/components/tagList/index.js +5 -5
- package/es/userTagsSelector/demo/index.js +7 -7
- package/es/userTagsSelector/groups/index.d.ts +1 -4
- package/es/userTagsSelector/groups/index.js +5 -5
- package/es/userTagsSelector/index.d.ts +1 -4
- package/es/userTagsSelector/index.js +13 -13
- package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
- package/es/utils/ajax.js +54 -66
- package/es/utils/demo/ajax.js +1 -1
- package/es/utils/demo/interruption.js +6 -6
- package/es/utils/index.d.ts +1 -2
- package/es/utils/index.js +1 -2
- package/es/utils/type.d.ts +0 -1
- package/es/utils/type.js +6 -6
- package/package.json +2 -2
- package/es/utils/eventApi.d.ts +0 -14
- package/es/utils/eventApi.js +0 -120
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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
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(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
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
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import BizSelect from '../../select';
|
|
15
15
|
import { PropType } from '../types';
|
|
16
16
|
import './styles/cdpCshCondition.less';
|
|
17
17
|
import _ from 'lodash';
|
|
18
|
-
import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2
|
|
18
|
+
import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2 } from '../../attrConditions/utils/operates';
|
|
19
19
|
import { DatePicker, Input } from 'antd';
|
|
20
20
|
import moment from 'moment';
|
|
21
21
|
import { BizUserConditionContext } from '..';
|
|
22
22
|
import request from '../../utils/ajax';
|
|
23
23
|
import Apis from '../../constants/apis';
|
|
24
24
|
import IconFont from '../../icon/iconFont';
|
|
25
|
-
import BizGlobalDataContext from '../../context';
|
|
26
25
|
var classPrefix = 'biz-user-condition-cdp-csh';
|
|
27
26
|
var CdpConditionItem = function CdpConditionItem(props) {
|
|
28
|
-
var _useContext = useContext(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
_useContext2$datasetL = _useContext2.datasetList,
|
|
32
|
-
datasetList = _useContext2$datasetL === void 0 ? [] : _useContext2$datasetL;
|
|
27
|
+
var _useContext = useContext(BizUserConditionContext),
|
|
28
|
+
_useContext$datasetLi = _useContext.datasetList,
|
|
29
|
+
datasetList = _useContext$datasetLi === void 0 ? [] : _useContext$datasetLi;
|
|
33
30
|
var _useState = useState(function () {
|
|
34
31
|
if (props.value) {
|
|
35
32
|
return _objectSpread(_objectSpread({}, props.value), {}, {
|
|
@@ -55,41 +52,41 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
55
52
|
field = _useState8[0],
|
|
56
53
|
setField = _useState8[1];
|
|
57
54
|
var _useState9 = useState(),
|
|
58
|
-
|
|
59
|
-
subField =
|
|
60
|
-
setSubField =
|
|
61
|
-
var _useState1 = useState(),
|
|
62
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
63
|
-
operator = _useState10[0],
|
|
64
|
-
setOperator = _useState10[1];
|
|
55
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
56
|
+
subField = _useState10[0],
|
|
57
|
+
setSubField = _useState10[1];
|
|
65
58
|
var _useState11 = useState(),
|
|
66
59
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
operator = _useState12[0],
|
|
61
|
+
setOperator = _useState12[1];
|
|
69
62
|
var _useState13 = useState(),
|
|
70
63
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
subOperator = _useState14[0],
|
|
65
|
+
setSubOperator = _useState14[1];
|
|
73
66
|
var _useState15 = useState(),
|
|
74
67
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
75
|
-
|
|
76
|
-
|
|
68
|
+
calculate = _useState16[0],
|
|
69
|
+
setCalculate = _useState16[1];
|
|
77
70
|
var _useState17 = useState(),
|
|
78
71
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var _useState19 = useState(
|
|
72
|
+
subcalculate = _useState18[0],
|
|
73
|
+
setSubCalculate = _useState18[1];
|
|
74
|
+
var _useState19 = useState(),
|
|
82
75
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
fieldValue = _useState20[0],
|
|
77
|
+
setFieldValue = _useState20[1];
|
|
85
78
|
var _useState21 = useState([]),
|
|
86
79
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var _useState23 = useState(
|
|
80
|
+
fieldList = _useState22[0],
|
|
81
|
+
setFieldList = _useState22[1];
|
|
82
|
+
var _useState23 = useState([]),
|
|
90
83
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
subFieldList = _useState24[0],
|
|
85
|
+
setSubFieldList = _useState24[1];
|
|
86
|
+
var _useState25 = useState(true),
|
|
87
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
88
|
+
isFirst = _useState26[0],
|
|
89
|
+
setIsFirst = _useState26[1];
|
|
93
90
|
useEffect(function () {
|
|
94
91
|
if (!props.value) {
|
|
95
92
|
setIsFirst(false);
|
|
@@ -292,7 +289,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
292
289
|
list = numberOperateCsh;
|
|
293
290
|
break;
|
|
294
291
|
case PropType.STRING2:
|
|
295
|
-
list =
|
|
292
|
+
list = stringOperate;
|
|
296
293
|
break;
|
|
297
294
|
default:
|
|
298
295
|
list = [];
|
|
@@ -304,7 +301,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
304
301
|
var optionList = getOptions(field.webType);
|
|
305
302
|
return /*#__PURE__*/React.createElement("div", {
|
|
306
303
|
className: "".concat(classPrefix, "-condition-group")
|
|
307
|
-
}, field.webType === PropType.NUMBER2 &&
|
|
304
|
+
}, field.webType === PropType.NUMBER2 && /*#__PURE__*/React.createElement(BizSelect, {
|
|
308
305
|
className: "".concat(classPrefix, "-select-condition"),
|
|
309
306
|
options: numberTypeCsh,
|
|
310
307
|
labelField: "name",
|
|
@@ -312,12 +309,12 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
312
309
|
overlayWidth: 96,
|
|
313
310
|
value: calculate,
|
|
314
311
|
onChange: onCalculateChange
|
|
315
|
-
})
|
|
312
|
+
}), /*#__PURE__*/React.createElement(BizSelect, {
|
|
316
313
|
className: "".concat(classPrefix, "-select-condition"),
|
|
317
314
|
options: optionList,
|
|
318
315
|
labelField: "name",
|
|
319
316
|
keyField: "value",
|
|
320
|
-
overlayWidth:
|
|
317
|
+
overlayWidth: 96,
|
|
321
318
|
value: operator,
|
|
322
319
|
onChange: onOperateChange
|
|
323
320
|
}), function () {
|
|
@@ -453,7 +450,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
453
450
|
e.persist();
|
|
454
451
|
setFieldValue([e.target.value, fieldValue && fieldValue[1] || '']);
|
|
455
452
|
}
|
|
456
|
-
}), (subOperator === null || subOperator === void 0 ? void 0 : subOperator.value) === 'between' &&
|
|
453
|
+
}), (subOperator === null || subOperator === void 0 ? void 0 : subOperator.value) === 'between' && /*#__PURE__*/React.createElement(Input, {
|
|
457
454
|
type: "number",
|
|
458
455
|
className: "".concat(classPrefix, "-value"),
|
|
459
456
|
value: fieldValue && fieldValue[1],
|
|
@@ -462,7 +459,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
462
459
|
e.persist();
|
|
463
460
|
setFieldValue([fieldValue && fieldValue[0] || '', e.target.value]);
|
|
464
461
|
}
|
|
465
|
-
}))))
|
|
462
|
+
}))));
|
|
466
463
|
}
|
|
467
464
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
468
465
|
className: "".concat(classPrefix, "-content")
|
|
@@ -480,7 +477,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
480
477
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
481
478
|
type: "bangzhu",
|
|
482
479
|
className: "".concat(classPrefix, "-select-tips")
|
|
483
|
-
})), dataset ?
|
|
480
|
+
})), dataset ? /*#__PURE__*/React.createElement("div", {
|
|
484
481
|
className: "".concat(classPrefix, "-item")
|
|
485
482
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
486
483
|
className: "".concat(classPrefix, "-select-field"),
|
|
@@ -491,18 +488,18 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
491
488
|
value: field,
|
|
492
489
|
loading: loading,
|
|
493
490
|
onChange: onFieldChange
|
|
494
|
-
}), renderByType())
|
|
491
|
+
}), renderByType()) : null), ['add', 'subtraction', 'multiplication', 'division'].includes((operator === null || operator === void 0 ? void 0 : operator.value) || '') && /*#__PURE__*/React.createElement("div", {
|
|
495
492
|
className: "".concat(classPrefix, "-content")
|
|
496
|
-
}, renderSubCondition()))
|
|
493
|
+
}, renderSubCondition()));
|
|
497
494
|
};
|
|
498
495
|
var CdpCondition = function CdpCondition(props) {
|
|
499
496
|
var dataId = props.dataId,
|
|
500
497
|
defaultValue = props.defaultValue,
|
|
501
498
|
onChange = props.onChange;
|
|
502
|
-
var
|
|
503
|
-
|
|
504
|
-
cdpConditions =
|
|
505
|
-
setCdpConditions =
|
|
499
|
+
var _useState27 = useState([undefined]),
|
|
500
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
501
|
+
cdpConditions = _useState28[0],
|
|
502
|
+
setCdpConditions = _useState28[1];
|
|
506
503
|
useEffect(function () {
|
|
507
504
|
if (defaultValue && defaultValue.data_set_csh) {
|
|
508
505
|
setCdpConditions(defaultValue.data_set_csh);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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
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(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
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
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import BizSelect from '../../select';
|
|
15
15
|
import './styles/runTimesCondition.less';
|
|
16
16
|
import { classPrefix } from '..';
|
|
17
|
-
import { stringOperate, orderTypeList, typeList, computeTypeList
|
|
17
|
+
import { stringOperate, orderTypeList, typeList, computeTypeList } from '../../attrConditions/utils/operates';
|
|
18
18
|
import moment from 'moment';
|
|
19
19
|
import request from '../../utils/ajax';
|
|
20
20
|
import BizGlobalDataContext from '../../context';
|
|
@@ -22,8 +22,6 @@ import ParamsCondition from './business/paramsCondition';
|
|
|
22
22
|
import OperatorCondition from './business/operatorCondition';
|
|
23
23
|
import Apis from '../../constants/apis';
|
|
24
24
|
var DataAttribute = function DataAttribute(props) {
|
|
25
|
-
var _useContext = useContext(BizGlobalDataContext),
|
|
26
|
-
basicConfig = _useContext.basicConfig;
|
|
27
25
|
var condition = props.condition,
|
|
28
26
|
index = props.index,
|
|
29
27
|
onChange = props.onChange;
|
|
@@ -31,8 +29,8 @@ var DataAttribute = function DataAttribute(props) {
|
|
|
31
29
|
var operateList = [];
|
|
32
30
|
switch (condition.attrs[index].attrType) {
|
|
33
31
|
case 'cont-string':
|
|
34
|
-
list =
|
|
35
|
-
operateList =
|
|
32
|
+
list = typeList['cont-string'];
|
|
33
|
+
operateList = stringOperate;
|
|
36
34
|
break;
|
|
37
35
|
case 'cont-num':
|
|
38
36
|
list = computeTypeList;
|
|
@@ -59,8 +57,8 @@ var DataAttribute = function DataAttribute(props) {
|
|
|
59
57
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
60
58
|
bizDataAttrList = _useState8[0],
|
|
61
59
|
setBizDataAttrList = _useState8[1];
|
|
62
|
-
var
|
|
63
|
-
currentApp =
|
|
60
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
61
|
+
currentApp = _useContext.currentApp;
|
|
64
62
|
useEffect(function () {
|
|
65
63
|
if (condition === null || condition === void 0 ? void 0 : condition.typeId) {
|
|
66
64
|
queryBizDataAttrList(condition === null || condition === void 0 ? void 0 : condition.typeId);
|
|
@@ -125,7 +123,7 @@ var DataAttribute = function DataAttribute(props) {
|
|
|
125
123
|
});
|
|
126
124
|
switch (operate.propType) {
|
|
127
125
|
case 1:
|
|
128
|
-
setMasterList(
|
|
126
|
+
setMasterList(typeList['cont-string']);
|
|
129
127
|
condition.attrs[index].attrType = 'cont-string';
|
|
130
128
|
setQueryValueObj({
|
|
131
129
|
keyword: '',
|
|
@@ -154,7 +152,7 @@ var DataAttribute = function DataAttribute(props) {
|
|
|
154
152
|
if (!(condition === null || condition === void 0 ? void 0 : condition.typeId)) {
|
|
155
153
|
switch (operate.propType) {
|
|
156
154
|
case 1:
|
|
157
|
-
setStringOperateList(
|
|
155
|
+
setStringOperateList(typeList['cont-string']);
|
|
158
156
|
condition.attrs[index].attrType = 'cont-string';
|
|
159
157
|
setQueryValueObj({
|
|
160
158
|
keyword: '',
|
|
@@ -230,10 +228,8 @@ var DataAttribute = function DataAttribute(props) {
|
|
|
230
228
|
},
|
|
231
229
|
labelField: "name",
|
|
232
230
|
keyField: "value",
|
|
233
|
-
overlayWidth: 120,
|
|
234
231
|
onChange: onMasterListChange
|
|
235
232
|
})), /*#__PURE__*/React.createElement(OperatorCondition, {
|
|
236
|
-
key: condition.typeId ? condition.attrs[index].attrType === 'cont-string' || condition.attrs[index].attrType === 'cont-date' ? condition.attrs[index].operator : condition.attrs[index].computeType : condition.attrs[index].attrId,
|
|
237
233
|
queryValueObj: queryValueObj,
|
|
238
234
|
stringOperateList: stringOperateList,
|
|
239
235
|
index: index,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _slicedToArray(
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
3
|
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."); }
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
6
|
-
function _iterableToArrayLimit(
|
|
7
|
-
function _arrayWithHoles(
|
|
8
|
-
function ownKeys(
|
|
9
|
-
function _objectSpread(
|
|
10
|
-
function _defineProperty(
|
|
11
|
-
function _toPropertyKey(
|
|
12
|
-
function _toPrimitive(
|
|
4
|
+
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); }
|
|
5
|
+
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; }
|
|
6
|
+
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; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
|
+
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; }
|
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
|
+
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); }
|
|
13
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import BizEventSelector from '../../eventSelector';
|
|
15
15
|
import RunTimesCondition from './runTimesCondition';
|
|
@@ -137,9 +137,9 @@ var EventCondition = function EventCondition(props) {
|
|
|
137
137
|
destroyPopupOnHide: true,
|
|
138
138
|
defaultSelectAble: false,
|
|
139
139
|
popupContainer: false
|
|
140
|
-
}), condition && (eventRemovedList === null || eventRemovedList === void 0 ? void 0 : eventRemovedList.includes(condition.eventId)) &&
|
|
140
|
+
}), condition && (eventRemovedList === null || eventRemovedList === void 0 ? void 0 : eventRemovedList.includes(condition.eventId)) && /*#__PURE__*/React.createElement("div", {
|
|
141
141
|
className: "del-log"
|
|
142
|
-
}, "\u4E8B\u4EF6\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"))
|
|
142
|
+
}, "\u4E8B\u4EF6\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")), /*#__PURE__*/React.createElement(Tooltip, {
|
|
143
143
|
title: "\u6DFB\u52A0\u7B5B\u9009"
|
|
144
144
|
}, /*#__PURE__*/React.createElement("div", {
|
|
145
145
|
className: "".concat(classPrefix, "-event-condition-expand-attr"),
|
|
@@ -148,7 +148,7 @@ var EventCondition = function EventCondition(props) {
|
|
|
148
148
|
type: "shaixuan"
|
|
149
149
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
150
150
|
className: "".concat(classPrefix, "-event-condition-right")
|
|
151
|
-
}, condition.attrs.length && condition.eventId ?
|
|
151
|
+
}, condition.attrs.length && condition.eventId ? /*#__PURE__*/React.createElement("div", {
|
|
152
152
|
className: "".concat(classPrefix, "-event-condition-attrs")
|
|
153
153
|
}, /*#__PURE__*/React.createElement(PropCondition, {
|
|
154
154
|
isEvent: true,
|
|
@@ -156,7 +156,7 @@ var EventCondition = function EventCondition(props) {
|
|
|
156
156
|
attrs: condition.attrs,
|
|
157
157
|
onChange: onAttrChange,
|
|
158
158
|
eventId: condition.eventId
|
|
159
|
-
}))
|
|
159
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
160
160
|
className: "".concat(classPrefix, "-event-condition-times-period-wrap")
|
|
161
161
|
}, /*#__PURE__*/React.createElement("div", {
|
|
162
162
|
className: "".concat(classPrefix, "-event-condition-runtimes")
|
|
@@ -198,7 +198,7 @@ var EventCondition = function EventCondition(props) {
|
|
|
198
198
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
199
199
|
type: "qingchu"
|
|
200
200
|
}))));
|
|
201
|
-
}), condition && !(eventRemovedList === null || eventRemovedList === void 0 ? void 0 : eventRemovedList.includes(condition.eventId)) && ((_condition$timeDimens3 = condition.timeDimensions) === null || _condition$timeDimens3 === void 0 ? void 0 : _condition$timeDimens3.length) < 3 && ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2) && realTimeTags !== true ?
|
|
201
|
+
}), condition && !(eventRemovedList === null || eventRemovedList === void 0 ? void 0 : eventRemovedList.includes(condition.eventId)) && ((_condition$timeDimens3 = condition.timeDimensions) === null || _condition$timeDimens3 === void 0 ? void 0 : _condition$timeDimens3.length) < 3 && ((currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2) && realTimeTags !== true ? /*#__PURE__*/React.createElement(Button, {
|
|
202
202
|
className: "".concat(classPrefix, "-event-condition-time"),
|
|
203
203
|
type: "dashed",
|
|
204
204
|
onClick: function onClick() {
|
|
@@ -209,6 +209,6 @@ var EventCondition = function EventCondition(props) {
|
|
|
209
209
|
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
210
210
|
type: "tianjia1"
|
|
211
211
|
})
|
|
212
|
-
}, "\u65F6\u95F4\u7EF4\u5EA6")
|
|
212
|
+
}, "\u65F6\u95F4\u7EF4\u5EA6") : null);
|
|
213
213
|
};
|
|
214
214
|
export default EventCondition;
|
|
@@ -7,8 +7,5 @@ export interface RunPeriodConditionPropsI extends AllConditionBasePropsI<any> {
|
|
|
7
7
|
dataId: number;
|
|
8
8
|
condition: BizUserConditionT.BusinessCondition;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
defaultProps?: Partial<P>;
|
|
12
|
-
};
|
|
13
|
-
declare const RunPeriodCondition: FCWithDefaultProps<RunPeriodConditionPropsI>;
|
|
10
|
+
declare const RunPeriodCondition: React.FC<RunPeriodConditionPropsI>;
|
|
14
11
|
export default RunPeriodCondition;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
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
7
|
import React from 'react';
|
|
8
8
|
import { Input, DatePicker } from 'antd';
|
|
9
9
|
import moment from 'moment';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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
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(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
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
13
|
import React, { useEffect, useState } from 'react';
|
|
14
14
|
import { Input } from 'antd';
|
|
15
15
|
import '../styles/periodCondition.less';
|
|
@@ -90,7 +90,7 @@ var RunTimesCondition = function RunTimesCondition(props) {
|
|
|
90
90
|
},
|
|
91
91
|
onChange: onOperateInput0Change,
|
|
92
92
|
suffix: operator !== 'between' ? '次' : null
|
|
93
|
-
})), operator === 'between' ?
|
|
93
|
+
})), operator === 'between' ? /*#__PURE__*/React.createElement("div", {
|
|
94
94
|
className: "".concat(classPrefix, "-period-condition"),
|
|
95
95
|
style: {
|
|
96
96
|
marginLeft: 10
|
|
@@ -107,6 +107,6 @@ var RunTimesCondition = function RunTimesCondition(props) {
|
|
|
107
107
|
placeholder: operator !== 'between' ? '请输入' : '输入最大值',
|
|
108
108
|
onChange: onOperateInput1Change,
|
|
109
109
|
suffix: operator !== 'between' ? '次' : null
|
|
110
|
-
}))
|
|
110
|
+
})) : null));
|
|
111
111
|
};
|
|
112
112
|
export default RunTimesCondition;
|
|
@@ -7,8 +7,5 @@ export interface PeriodConditionPropsI extends AllConditionBasePropsI<RunPeriodI
|
|
|
7
7
|
runPeriod: RunPeriodI;
|
|
8
8
|
isRealTime?: boolean;
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
defaultProps?: Partial<P>;
|
|
12
|
-
};
|
|
13
|
-
declare const PeriodCondition: FCWithDefaultProps<PeriodConditionPropsI>;
|
|
10
|
+
declare const PeriodCondition: React.FC<PeriodConditionPropsI>;
|
|
14
11
|
export default PeriodCondition;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
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
7
|
import React, { useMemo, useContext } from 'react';
|
|
8
8
|
import BizSelect from '../../select';
|
|
9
9
|
import { DatePicker, Checkbox, InputNumber } from 'antd';
|
|
@@ -124,11 +124,11 @@ var PeriodCondition = function PeriodCondition(props) {
|
|
|
124
124
|
}, label) : null, /*#__PURE__*/React.createElement("div", {
|
|
125
125
|
className: "".concat(classPrefix, "-period-condition-operator")
|
|
126
126
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
127
|
-
dropdownExtra: isEvent && !realTimeTags ?
|
|
127
|
+
dropdownExtra: isEvent && !realTimeTags ? /*#__PURE__*/React.createElement("div", {
|
|
128
128
|
style: {
|
|
129
129
|
lineHeight: '29px'
|
|
130
130
|
}
|
|
131
|
-
}, "*\u7528\u6237\u65B0\u589E\u6570\u636E\u4E3A\u6BCF\u65E5\u51CC\u6668\u751F\u6210")
|
|
131
|
+
}, "*\u7528\u6237\u65B0\u589E\u6570\u636E\u4E3A\u6BCF\u65E5\u51CC\u6668\u751F\u6210") : null,
|
|
132
132
|
overlayWidth: isEvent ? 210 : 114,
|
|
133
133
|
options: options,
|
|
134
134
|
labelField: "text",
|
|
@@ -143,12 +143,12 @@ var PeriodCondition = function PeriodCondition(props) {
|
|
|
143
143
|
className: "".concat(classPrefix, "-period-condition-values")
|
|
144
144
|
}, renderValues()), /*#__PURE__*/React.createElement("div", {
|
|
145
145
|
className: "".concat(classPrefix, "-period-condition-unit")
|
|
146
|
-
}, unit), props.isRealTime && runPeriod.operator === 'relative' && !realTimeTags ?
|
|
146
|
+
}, unit), props.isRealTime && runPeriod.operator === 'relative' && !realTimeTags ? /*#__PURE__*/React.createElement("div", {
|
|
147
147
|
className: "".concat(classPrefix, "-period-condition-today")
|
|
148
148
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
149
149
|
checked: runPeriod.values[1] === '1',
|
|
150
150
|
onChange: onChangeToday
|
|
151
|
-
}, "\u4E0D\u5305\u542B\u4ECA\u5929"))
|
|
151
|
+
}, "\u4E0D\u5305\u542B\u4ECA\u5929")) : null, realTimeTags && /*#__PURE__*/React.createElement("div", null, "\uFF0C\u5305\u542B\u4ECA\u5929"));
|
|
152
152
|
};
|
|
153
153
|
PeriodCondition.defaultProps = {
|
|
154
154
|
isEvent: false,
|