easy3wui 1.5.43-beta1 → 1.5.44
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.
|
@@ -605,7 +605,7 @@ var Easy3wFormPage = function (_Component) {
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
if ((readFlag || allReadFlag) && fieldType !== 'textarea' && fieldType !== 'braftEditor'
|
|
608
|
+
if ((readFlag || allReadFlag) && fieldType !== 'textarea' && fieldType !== 'braftEditor') {
|
|
609
609
|
// if (fieldType === 'braftEditor') {
|
|
610
610
|
// return (
|
|
611
611
|
// <FormItem
|
|
@@ -202,8 +202,7 @@ var Easy3wUpload = function (_Component) {
|
|
|
202
202
|
authToken: authToken,
|
|
203
203
|
ENCFlag: ENCFlag,
|
|
204
204
|
sign: '2959f1aea8db0f7fbba61f0f8474d0ef',
|
|
205
|
-
data: sendData
|
|
206
|
-
easy3wRootOrg: _comonConfig.easy3wRootOrg || ''
|
|
205
|
+
data: sendData
|
|
207
206
|
}
|
|
208
207
|
};
|
|
209
208
|
if (isRead) {
|
|
@@ -178,7 +178,8 @@ var BigFileUpload = function (_Component) {
|
|
|
178
178
|
urlDownloadFile = _props.urlDownloadFile,
|
|
179
179
|
initialValue = _props.initialValue,
|
|
180
180
|
propsAFlag = _props.propsAFlag,
|
|
181
|
-
fileViewFlag = _props.fileViewFlag
|
|
181
|
+
fileViewFlag = _props.fileViewFlag,
|
|
182
|
+
maxFileSize = _props.maxFileSize;
|
|
182
183
|
var _state = this.state,
|
|
183
184
|
preUploading = _state.preUploading,
|
|
184
185
|
uploadPercent = _state.uploadPercent,
|
|
@@ -272,6 +273,13 @@ var BigFileUpload = function (_Component) {
|
|
|
272
273
|
});
|
|
273
274
|
return false;
|
|
274
275
|
}
|
|
276
|
+
if (maxFileSize && maxFileSize > 0 && file.size / 1024 / 1024 > maxFileSize) {
|
|
277
|
+
_modal2['default'].error({
|
|
278
|
+
style: { top: '38%' },
|
|
279
|
+
content: '\u9644\u4EF6\u5FC5\u987B\u5C0F\u4E8E' + maxFileSize + 'MB!'
|
|
280
|
+
});
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
275
283
|
var multiple = _this2.props.multiple;
|
|
276
284
|
var _state3 = _this2.state,
|
|
277
285
|
fileList = _state3.fileList,
|
|
@@ -530,8 +538,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
530
538
|
formData.append('devId', '');
|
|
531
539
|
formData.append('data', JSON.stringify({ uploadParams: uploadParams }));
|
|
532
540
|
formData.append('sign', '2959f1aea8db0f7fbba61f0f8474d0ef');
|
|
533
|
-
formData.append('easy3wRootOrg', _comonConfig.easy3wRootOrg || '');
|
|
534
|
-
|
|
535
541
|
_superagent2['default'].post('' + urlCheckProgress).send(formData).withCredentials().end(function (err, res) {
|
|
536
542
|
if (err) {
|
|
537
543
|
var _state4 = _this3.state,
|
|
@@ -723,7 +729,6 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
723
729
|
formData.append('authToken', authToken);
|
|
724
730
|
formData.append('data', JSON.stringify(postParam));
|
|
725
731
|
formData.append('sign', '2959f1aea8db0f7fbba61f0f8474d0ef');
|
|
726
|
-
formData.append('easy3wRootOrg', _comonConfig.easy3wRootOrg || '');
|
|
727
732
|
var startTime = new Date().getTime();
|
|
728
733
|
_superagent2['default'].post('' + urlUpBigFileGeneral).send(formData).withCredentials().end(function (err, res) {
|
|
729
734
|
if (err) {
|
|
@@ -208,8 +208,7 @@ var Easy3wUploadM = function (_Component) {
|
|
|
208
208
|
authToken: authToken,
|
|
209
209
|
ENCFlag: ENCFlag,
|
|
210
210
|
sign: '2959f1aea8db0f7fbba61f0f8474d0ef',
|
|
211
|
-
data: sendData
|
|
212
|
-
easy3wRootOrg: _comonConfig.easy3wRootOrg || ''
|
|
211
|
+
data: sendData
|
|
213
212
|
}
|
|
214
213
|
};
|
|
215
214
|
if (isRead) {
|