@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.
- package/es/context/index.d.ts +1 -0
- package/es/userCondition/conditionTypeList.js +5 -4
- package/es/userCondition/conditions/businessCondition.js +2 -0
- package/es/userCondition/conditions/dataAttribute.js +0 -1
- package/es/userCondition/types.d.ts +1 -0
- package/es/userCondition/util.js +1 -0
- package/package.json +1 -1
package/es/context/index.d.ts
CHANGED
|
@@ -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']);
|
package/es/userCondition/util.js
CHANGED