@bchr/bchr-front-lib 0.3.103 → 0.3.104
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.
|
@@ -830,6 +830,10 @@ var FormForModify = /*#__PURE__*/function (_React$Component) {
|
|
|
830
830
|
info_set_fields = _this$props.info_set_fields;
|
|
831
831
|
var fieldCodeKeyMap = this.state.fieldCodeKeyMap;
|
|
832
832
|
|
|
833
|
+
if (info_set_fields && info_set_fields.length > 0) {
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
836
|
+
|
|
833
837
|
for (var i = 0, len = info_set_fields.length; i < len; i++) {
|
|
834
838
|
var formItem = info_set_fields[i];
|
|
835
839
|
this.preParseFormItemExtConfig(formItem);
|
|
@@ -131,22 +131,24 @@ var HttpService = /*#__PURE__*/function () {
|
|
|
131
131
|
rpcMethodName = "";
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
if (jsonObject) {
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
if (!this.__checkJSONObjectSecurity(jsonObject)) {
|
|
135
|
+
if (jsonObject) {
|
|
136
|
+
ajaxOptions.data = jsonObject;
|
|
137
|
+
}
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
if (ajaxOptions.rpcMethodName) {
|
|
140
|
+
delete ajaxOptions.rpcMethodName;
|
|
141
|
+
}
|
|
141
142
|
|
|
142
|
-
|
|
143
|
-
|
|
143
|
+
ajaxOptions.type = "post";
|
|
144
|
+
ajaxOptions.dataType = "json";
|
|
144
145
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
if (!ajaxOptions.url) {
|
|
147
|
+
ajaxOptions.url = this.requestContextPath + rpcMethodName;
|
|
148
|
+
}
|
|
148
149
|
|
|
149
|
-
|
|
150
|
+
return _jquery["default"].ajax(ajaxOptions);
|
|
151
|
+
}
|
|
150
152
|
}
|
|
151
153
|
}, {
|
|
152
154
|
key: "__postForMock",
|
package/package.json
CHANGED
|
@@ -45,6 +45,10 @@ class FormForModify extends React.Component{
|
|
|
45
45
|
let {data, info_set_fields} = this.props;
|
|
46
46
|
let {fieldCodeKeyMap} = this.state;
|
|
47
47
|
|
|
48
|
+
if (info_set_fields && info_set_fields.length > 0) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
48
52
|
for (let i = 0, len = info_set_fields.length; i < len; i++) {
|
|
49
53
|
let formItem = info_set_fields[i];
|
|
50
54
|
|
|
@@ -114,22 +114,24 @@ class HttpService {
|
|
|
114
114
|
rpcMethodName = "";
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
if (jsonObject) {
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
if (!this.__checkJSONObjectSecurity(jsonObject)) {
|
|
118
|
+
if (jsonObject) {
|
|
119
|
+
ajaxOptions.data = jsonObject;
|
|
120
|
+
}
|
|
120
121
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
if (ajaxOptions.rpcMethodName) {
|
|
123
|
+
delete ajaxOptions.rpcMethodName;
|
|
124
|
+
}
|
|
124
125
|
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
ajaxOptions.type = "post";
|
|
127
|
+
ajaxOptions.dataType = "json";
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
if (!ajaxOptions.url) {
|
|
130
|
+
ajaxOptions.url = this.requestContextPath + rpcMethodName;
|
|
131
|
+
}
|
|
131
132
|
|
|
132
|
-
|
|
133
|
+
return $.ajax(ajaxOptions);
|
|
134
|
+
}
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
__postForMock(mockOptions) {
|