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

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.
@@ -36,6 +36,7 @@ export interface GlobalContextProps {
36
36
  router?: any;
37
37
  routes?: any;
38
38
  envs?: Record<string, any>;
39
+ system?: string;
39
40
  }
40
41
  declare const BizGlobalDataContext: import("react").Context<GlobalContextProps>;
41
42
  export default BizGlobalDataContext;
@@ -15,7 +15,8 @@ var ConditionTypeList = function ConditionTypeList(props) {
15
15
  openCdpCondition = _useContext.openCdpCondition,
16
16
  cdpTip = _useContext.cdpTip;
17
17
  var _useContext2 = useContext(BizGlobalDataContext),
18
- menuNameMap = _useContext2.menuNameMap;
18
+ menuNameMap = _useContext2.menuNameMap,
19
+ system = _useContext2.system;
19
20
  if (!show || textMode) return null;
20
21
  return /*#__PURE__*/React.createElement("div", {
21
22
  className: "biz-user-condition-type-list"
@@ -69,7 +70,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
69
70
  title: cdpTip
70
71
  }, /*#__PURE__*/React.createElement(IconFont, {
71
72
  type: "tishiicon"
72
- })) : null)) : null, /*#__PURE__*/React.createElement("li", {
73
+ })) : null)) : null, system && system === 'CEP' ? /*#__PURE__*/React.createElement("li", {
73
74
  className: "condition-type",
74
75
  key: "business",
75
76
  onClick: function onClick() {
@@ -77,7 +78,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
77
78
  }
78
79
  }, /*#__PURE__*/React.createElement(Space, {
79
80
  key: "business"
80
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))), /*#__PURE__*/React.createElement("li", {
81
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))) : null, system && system === 'CEP' ? /*#__PURE__*/React.createElement("li", {
81
82
  className: "condition-type",
82
83
  key: "order",
83
84
  onClick: function onClick() {
@@ -85,7 +86,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
85
86
  }
86
87
  }, /*#__PURE__*/React.createElement(Space, {
87
88
  key: "order"
88
- }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u8BA2\u5355\u6570\u636E")))));
89
+ }, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u8BA2\u5355\u6570\u636E"))) : null));
89
90
  };
90
91
  ConditionTypeList.defaultProps = {
91
92
  show: true
@@ -258,6 +258,8 @@ var BusinessCondition = function BusinessCondition(props) {
258
258
  onChange(_objectSpread({}, condition));
259
259
  }
260
260
  function onServiceAttributeChange(operate) {
261
+ condition.typeId = operate === null || operate === void 0 ? void 0 : operate.bizDataTypeId;
262
+ onChange(_objectSpread({}, condition));
261
263
  setServiceAttribute(operate);
262
264
  }
263
265
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
@@ -228,7 +228,6 @@ var DataAttribute = function DataAttribute(props) {
228
228
  condition.attrs[index].category = 'custom';
229
229
  condition.attrs[index].attrId = operate.id;
230
230
  condition.attrs[index].attrName = operate.name;
231
- condition.typeId = operate === null || operate === void 0 ? void 0 : operate.bizDataTypeId;
232
231
  switch (operate.propType) {
233
232
  case 1:
234
233
  setMasterList(typeList['cont-string']);
@@ -101,6 +101,7 @@ export declare namespace BizUserConditionT {
101
101
  runTimes: RunTimesI;
102
102
  }
103
103
  interface BusinessCondition {
104
+ typeId: undefined;
104
105
  attrs: AttrsCondition[];
105
106
  timeDimensions: TimeDimensionsCondition[];
106
107
  runTimes: RunTimesI;
@@ -70,6 +70,7 @@ export function buildCondition(type) {
70
70
  case 'business':
71
71
  return {
72
72
  eventId: -14,
73
+ typeId: undefined,
73
74
  runTimes: {
74
75
  operator: '>=',
75
76
  values: ['1']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.1.34-alpha.0",
3
+ "version": "1.1.34-alpha.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",