easy3wui 1.5.42 → 1.5.43-beta1

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.
@@ -490,7 +490,37 @@ var _initialiseProps = function _initialiseProps() {
490
490
  };
491
491
 
492
492
  this.numeralFormat = function (text) {
493
- return (0, _numeral2['default'])(text).format('0,0.00');
493
+ var strText = text;
494
+ if (Number.isFinite(text)) {
495
+ // 有限值数字 用于检查一个数值是否是有限的。如果数值是有限数(即不是 Infinity、-Infinity 或 NaN),那么 Number.isFinite() 返回 true,否则返回 false。
496
+ strText = (0, _numeral2['default'])(text).format('0,0.00');
497
+ } else if (typeof text === 'string') {
498
+ // 字符串
499
+ if (/^\d+(\.\d+)?$/.test(text)) {
500
+ // 数字字符串
501
+ strText = (0, _numeral2['default'])(text).format('0,0.00');
502
+ } else {
503
+ strText = text;
504
+ }
505
+ } else {
506
+ strText = text;
507
+ }
508
+ // if (text || text === 0 || isNaN(text)) {
509
+ // if (typeof text === 'string') {
510
+ // if (/^\d+(\.\d+)?$/.test(text)) {
511
+ // strText = numeral(text).format('0,0.00');
512
+ // } else {
513
+ // strText = text;
514
+ // }
515
+ // } else if (typeof text === 'number') {
516
+ // if (Number.isInfinite(text) || isNaN(NaN)) {
517
+ // strText = text;
518
+ // } else {
519
+ // strText = numeral(text).format('0,0.00');
520
+ // }
521
+ // }
522
+ // }
523
+ return strText;
494
524
  };
495
525
 
496
526
  this.rowSelected = function (record) {
@@ -202,7 +202,8 @@ var Easy3wUpload = function (_Component) {
202
202
  authToken: authToken,
203
203
  ENCFlag: ENCFlag,
204
204
  sign: '2959f1aea8db0f7fbba61f0f8474d0ef',
205
- data: sendData
205
+ data: sendData,
206
+ easy3wRootOrg: _comonConfig.easy3wRootOrg || ''
206
207
  }
207
208
  };
208
209
  if (isRead) {
@@ -530,6 +530,8 @@ var _initialiseProps = function _initialiseProps() {
530
530
  formData.append('devId', '');
531
531
  formData.append('data', JSON.stringify({ uploadParams: uploadParams }));
532
532
  formData.append('sign', '2959f1aea8db0f7fbba61f0f8474d0ef');
533
+ formData.append('easy3wRootOrg', _comonConfig.easy3wRootOrg || '');
534
+
533
535
  _superagent2['default'].post('' + urlCheckProgress).send(formData).withCredentials().end(function (err, res) {
534
536
  if (err) {
535
537
  var _state4 = _this3.state,
@@ -721,6 +723,7 @@ var _initialiseProps = function _initialiseProps() {
721
723
  formData.append('authToken', authToken);
722
724
  formData.append('data', JSON.stringify(postParam));
723
725
  formData.append('sign', '2959f1aea8db0f7fbba61f0f8474d0ef');
726
+ formData.append('easy3wRootOrg', _comonConfig.easy3wRootOrg || '');
724
727
  var startTime = new Date().getTime();
725
728
  _superagent2['default'].post('' + urlUpBigFileGeneral).send(formData).withCredentials().end(function (err, res) {
726
729
  if (err) {
@@ -208,7 +208,8 @@ var Easy3wUploadM = function (_Component) {
208
208
  authToken: authToken,
209
209
  ENCFlag: ENCFlag,
210
210
  sign: '2959f1aea8db0f7fbba61f0f8474d0ef',
211
- data: sendData
211
+ data: sendData,
212
+ easy3wRootOrg: _comonConfig.easy3wRootOrg || ''
212
213
  }
213
214
  };
214
215
  if (isRead) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.42",
3
+ "version": "1.5.43-beta1",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",