@bchr/bchr-front-lib 0.5.8 → 0.5.9
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.
|
@@ -483,6 +483,12 @@ var buildActionButton = function buildActionButton(props, subActionButton, inner
|
|
|
483
483
|
throw new Error("Please enter the check field and table data before transmitting the check field and table data");
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
+
if (_utils.Values.isEmptyArray(checkData)) {
|
|
487
|
+
_antd.message.warning('未找到选中的记录,请检查选中状态');
|
|
488
|
+
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
|
|
486
492
|
var checkedNames = [];
|
|
487
493
|
|
|
488
494
|
if (_utils.Values.isNotBlankString(checkField) && _utils.Values.isNotEmptyArray(checkData)) {
|
package/package.json
CHANGED
|
@@ -404,6 +404,11 @@ const buildActionButton = function(props, subActionButton, innerLine) {
|
|
|
404
404
|
throw new Error("Please enter the check field and table data before transmitting the check field and table data");
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
+
if (Values.isEmptyArray(checkData)) {
|
|
408
|
+
message.warning('未找到选中的记录,请检查选中状态');
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
|
|
407
412
|
let checkedNames = [];
|
|
408
413
|
if (Values.isNotBlankString(checkField) && Values.isNotEmptyArray(checkData)) {
|
|
409
414
|
if (Array.isArray(checkData)) {
|
|
@@ -415,13 +420,14 @@ const buildActionButton = function(props, subActionButton, innerLine) {
|
|
|
415
420
|
}
|
|
416
421
|
else {
|
|
417
422
|
message.warning('未找到选中的记录,请检查选中状态');
|
|
418
|
-
return
|
|
423
|
+
return;
|
|
419
424
|
}
|
|
420
425
|
}
|
|
421
426
|
else if (lodash.isPlainObject(checkData)) {
|
|
422
427
|
checkedNames.push(checkData[checkField]);
|
|
423
428
|
}
|
|
424
429
|
}
|
|
430
|
+
|
|
425
431
|
modalOptions.content = modalOptions.content.replace('[options]', checkedNames.join(','));
|
|
426
432
|
|
|
427
433
|
if (confirmType) {
|