easy3wui 1.5.37 → 1.5.39

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.
@@ -1156,7 +1156,14 @@ var Easy3wFormPage = function (_Component) {
1156
1156
 
1157
1157
  var addonBeforeCmptPros = item.addonBeforeCmptPros || {};
1158
1158
  addonBeforeCmptPros = (0, _extends3['default'])({ allowClear: false, style: { minWidth: '90px' } }, addonBeforeCmptPros);
1159
- var itemArea = _this.selectHandler({ cmptPros: (0, _extends3['default'])({ optionLst: _comonConfig.arrMobileAssociation || arrMobileAssociationDefault }, addonBeforeCmptPros) });
1159
+ var itemArea = _this.selectHandler({
1160
+ cmptPros: (0, _extends3['default'])({
1161
+ onChange: function onChange(value) {
1162
+ return _this.onBlurMobileNation(value, fieldId);
1163
+ },
1164
+ optionLst: _comonConfig.arrMobileAssociation || arrMobileAssociationDefault
1165
+ }, addonBeforeCmptPros)
1166
+ });
1160
1167
 
1161
1168
  var decoratorObj = {
1162
1169
  rules: [{ required: required, message: '请填写区号' }],
@@ -1172,17 +1179,25 @@ var Easy3wFormPage = function (_Component) {
1172
1179
  var e3wMobileNation = _this.props.form.getFieldValue(fieldId + 'AddonBefore');
1173
1180
  var pattern = _comonConfig.objMobileRegular ? _comonConfig.objMobileRegular[e3wMobileNation] : objMobileRegularDefault[e3wMobileNation];
1174
1181
  if (e && e.target && e.target.value && e3wMobileNation && pattern.test(e.target.value)) {
1175
- var xhr = new XMLHttpRequest();
1176
- xhr.onreadystatechange = function () {
1177
- if (xhr.readyState === 4 && xhr.status === 200) {
1178
- // 请求成功,处理响应数据
1179
- }
1180
- };
1181
- var data = JSON.stringify({ e3wMobile: e.target.value, e3wMobileNation: e3wMobileNation });
1182
- xhr.open('POST', _comonConfig.easy3w4fMobileLibUpdateUrl, true); // 异步请求
1183
- xhr.setRequestHeader('Content-Type', 'application/json'); // 设置请求头
1184
- xhr.send(data); // 发送请求
1185
- }
1182
+ _this.updateMobileInfo(e.target.value, e3wMobileNation);
1183
+ }
1184
+ }, _this.onBlurMobileNation = function (value, fieldId) {
1185
+ var e3wMobile = _this.props.form.getFieldValue(fieldId);
1186
+ var pattern = _comonConfig.objMobileRegular ? _comonConfig.objMobileRegular[value] : objMobileRegularDefault[value];
1187
+ if (e3wMobile && value && pattern.test(e3wMobile)) {
1188
+ _this.updateMobileInfo(e3wMobile, value);
1189
+ }
1190
+ }, _this.updateMobileInfo = function (e3wMobile, e3wMobileNation) {
1191
+ var xhr = new XMLHttpRequest();
1192
+ xhr.onreadystatechange = function () {
1193
+ if (xhr.readyState === 4 && xhr.status === 200) {
1194
+ // 请求成功,处理响应数据
1195
+ }
1196
+ };
1197
+ var data = JSON.stringify({ e3wMobile: e3wMobile, e3wMobileNation: e3wMobileNation });
1198
+ xhr.open('POST', _comonConfig.easy3w4fMobileLibUpdateUrl, true); // 异步请求
1199
+ xhr.setRequestHeader('Content-Type', 'application/json'); // 设置请求头
1200
+ xhr.send(data); // 发送请求
1186
1201
  }, _this.selectHandler = function (item) {
1187
1202
  var cmptPros = item.cmptPros;
1188
1203
  var optionLst = cmptPros.optionLst;
@@ -1340,7 +1355,7 @@ var Easy3wFormPage = function (_Component) {
1340
1355
  maxlength = cmptPros.maxLength || cmptPros.maxlength;
1341
1356
  }
1342
1357
  if (!cmptPros.rows) {
1343
- cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: true } }, cmptPros);
1358
+ cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: 9999 } }, cmptPros);
1344
1359
  }
1345
1360
  return _react2['default'].createElement(TextArea, (0, _extends3['default'])({ onChange: function onChange(e) {
1346
1361
  return _this.textAreaOnchange(e, maxlength);
@@ -1675,7 +1690,11 @@ var Easy3wFormPage = function (_Component) {
1675
1690
  /** input end */
1676
1691
  /** mobile start */
1677
1692
 
1678
- // 手机录入框失去焦点
1693
+ // 手机号录入框失去焦点
1694
+
1695
+ // 手机归属值变更
1696
+
1697
+ // 更新手机信息
1679
1698
 
1680
1699
  /** mobile end */
1681
1700
 
@@ -79,7 +79,7 @@ var Easy3wGridTextArea = function (_Component) {
79
79
 
80
80
  var defaultMaxLength = 2000;
81
81
  if (!rows) {
82
- cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: true } }, cmptPros);
82
+ cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: 9999 } }, cmptPros);
83
83
  }
84
84
  var rules = [{ required: required, message: requiredMessage || '\u8BF7\u586B\u5199' + label }, { max: maxLength || defaultMaxLength, message: '\u5F55\u5165\u6587\u5B57\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7' + (maxLength || defaultMaxLength), transform: this.touchTransform }];
85
85
  if (disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.37",
3
+ "version": "1.5.39",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",