@bit-sun/business-component 4.2.1-alpha.23-aiwei → 4.2.1-alpha.25-aiwei
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/dist/index.esm.js +19 -5
- package/dist/index.js +19 -5
- package/package.json +1 -1
- package/src/components/Solution/RuleComponent/index.js +29 -12
package/dist/index.esm.js
CHANGED
|
@@ -39220,12 +39220,24 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39220
39220
|
padding: '10px',
|
|
39221
39221
|
borderRadius: '4px'
|
|
39222
39222
|
}
|
|
39223
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
39223
|
+
}, /*#__PURE__*/React$1.createElement(Select, {
|
|
39224
|
+
disabled: disabled,
|
|
39224
39225
|
style: {
|
|
39225
|
-
|
|
39226
|
-
|
|
39227
|
-
}
|
|
39228
|
-
|
|
39226
|
+
width: 150,
|
|
39227
|
+
marginRight: 10
|
|
39228
|
+
},
|
|
39229
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
39230
|
+
value: String(itemDetail.reqConditionData.reqParamType || '10'),
|
|
39231
|
+
onChange: function onChange(val) {
|
|
39232
|
+
return _this.handleReqDataChange(itemDetail, 'reqParamType', val);
|
|
39233
|
+
}
|
|
39234
|
+
}, /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
39235
|
+
value: "10"
|
|
39236
|
+
}, "\u8BF7\u6C42\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
39237
|
+
value: "20"
|
|
39238
|
+
}, "\u8BF7\u6C42\u5934\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
39239
|
+
value: "40"
|
|
39240
|
+
}, "\u6E90\u8BF7\u6C42\u5730\u5740")), String(itemDetail.reqConditionData.reqParamType || '10') !== '40' && /*#__PURE__*/React$1.createElement(Input, {
|
|
39229
39241
|
disabled: disabled,
|
|
39230
39242
|
style: {
|
|
39231
39243
|
width: 150,
|
|
@@ -39781,6 +39793,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39781
39793
|
if (valueNames) {
|
|
39782
39794
|
itemDetail.reqConditionData.paramNames = valueNames;
|
|
39783
39795
|
}
|
|
39796
|
+
} else if (field === 'reqParamType') {
|
|
39797
|
+
itemDetail.reqConditionData.reqParamType = value;
|
|
39784
39798
|
}
|
|
39785
39799
|
_this.setState({
|
|
39786
39800
|
ruleClassData: ruleClassData
|
package/dist/index.js
CHANGED
|
@@ -39243,12 +39243,24 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39243
39243
|
padding: '10px',
|
|
39244
39244
|
borderRadius: '4px'
|
|
39245
39245
|
}
|
|
39246
|
-
}, /*#__PURE__*/React__default['default'].createElement(
|
|
39246
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
39247
|
+
disabled: disabled,
|
|
39247
39248
|
style: {
|
|
39248
|
-
|
|
39249
|
-
|
|
39250
|
-
}
|
|
39251
|
-
|
|
39249
|
+
width: 150,
|
|
39250
|
+
marginRight: 10
|
|
39251
|
+
},
|
|
39252
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
39253
|
+
value: String(itemDetail.reqConditionData.reqParamType || '10'),
|
|
39254
|
+
onChange: function onChange(val) {
|
|
39255
|
+
return _this.handleReqDataChange(itemDetail, 'reqParamType', val);
|
|
39256
|
+
}
|
|
39257
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
39258
|
+
value: "10"
|
|
39259
|
+
}, "\u8BF7\u6C42\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
39260
|
+
value: "20"
|
|
39261
|
+
}, "\u8BF7\u6C42\u5934\u53C2\u6570\u540D\u79F0"), /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
39262
|
+
value: "40"
|
|
39263
|
+
}, "\u6E90\u8BF7\u6C42\u5730\u5740")), String(itemDetail.reqConditionData.reqParamType || '10') !== '40' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
39252
39264
|
disabled: disabled,
|
|
39253
39265
|
style: {
|
|
39254
39266
|
width: 150,
|
|
@@ -39804,6 +39816,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
39804
39816
|
if (valueNames) {
|
|
39805
39817
|
itemDetail.reqConditionData.paramNames = valueNames;
|
|
39806
39818
|
}
|
|
39819
|
+
} else if (field === 'reqParamType') {
|
|
39820
|
+
itemDetail.reqConditionData.reqParamType = value;
|
|
39807
39821
|
}
|
|
39808
39822
|
_this.setState({
|
|
39809
39823
|
ruleClassData: ruleClassData
|
package/package.json
CHANGED
|
@@ -1143,21 +1143,36 @@ class RuleObjectComponent extends Component {
|
|
|
1143
1143
|
borderRadius: '4px',
|
|
1144
1144
|
}}
|
|
1145
1145
|
>
|
|
1146
|
-
<
|
|
1147
|
-
请求参数名称:
|
|
1148
|
-
</span>
|
|
1149
|
-
<Input
|
|
1146
|
+
<Select
|
|
1150
1147
|
disabled={disabled}
|
|
1151
1148
|
style={{ width: 150, marginRight: 10 }}
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
)
|
|
1149
|
+
placeholder="请选择"
|
|
1150
|
+
value={String(
|
|
1151
|
+
itemDetail.reqConditionData.reqParamType || '10',
|
|
1152
|
+
)}
|
|
1153
|
+
onChange={(val) =>
|
|
1154
|
+
this.handleReqDataChange(itemDetail, 'reqParamType', val)
|
|
1159
1155
|
}
|
|
1160
|
-
|
|
1156
|
+
>
|
|
1157
|
+
<Select.Option value="10">请求参数名称</Select.Option>
|
|
1158
|
+
<Select.Option value="20">请求头参数名称</Select.Option>
|
|
1159
|
+
<Select.Option value="40">源请求地址</Select.Option>
|
|
1160
|
+
</Select>
|
|
1161
|
+
{String(itemDetail.reqConditionData.reqParamType || '10') !==
|
|
1162
|
+
'40' && (
|
|
1163
|
+
<Input
|
|
1164
|
+
disabled={disabled}
|
|
1165
|
+
style={{ width: 150, marginRight: 10 }}
|
|
1166
|
+
value={itemDetail.reqConditionData.reqParamName}
|
|
1167
|
+
onChange={(e) =>
|
|
1168
|
+
this.handleReqDataChange(
|
|
1169
|
+
itemDetail,
|
|
1170
|
+
'reqParamName',
|
|
1171
|
+
e.target.value,
|
|
1172
|
+
)
|
|
1173
|
+
}
|
|
1174
|
+
/>
|
|
1175
|
+
)}
|
|
1161
1176
|
|
|
1162
1177
|
<span style={{ marginRight: 8, flexShrink: 0 }}>类型:</span>
|
|
1163
1178
|
<Select
|
|
@@ -1843,6 +1858,8 @@ class RuleObjectComponent extends Component {
|
|
|
1843
1858
|
if (valueNames) {
|
|
1844
1859
|
itemDetail.reqConditionData.paramNames = valueNames;
|
|
1845
1860
|
}
|
|
1861
|
+
} else if (field === 'reqParamType') {
|
|
1862
|
+
itemDetail.reqConditionData.reqParamType = value;
|
|
1846
1863
|
}
|
|
1847
1864
|
|
|
1848
1865
|
this.setState(
|