ztxkui 3.9.7 → 3.9.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.
|
@@ -232,6 +232,11 @@ var Sinatures = function (_a) {
|
|
|
232
232
|
fileList.filter(function (item) { return item.isElectronicSeal; }).length > 0) {
|
|
233
233
|
setCheckSealVisible(true);
|
|
234
234
|
}
|
|
235
|
+
// 判断入参fileList中是否有仅需要群杰
|
|
236
|
+
if (Array.isArray(fileList) &&
|
|
237
|
+
fileList.some(function (item) { return item.attachId === '123456789'; })) {
|
|
238
|
+
setIsOnlyQj(true);
|
|
239
|
+
}
|
|
235
240
|
}, [fileList]);
|
|
236
241
|
useEffect(function () {
|
|
237
242
|
if (needQys) {
|
|
@@ -395,11 +400,15 @@ var Sinatures = function (_a) {
|
|
|
395
400
|
React.createElement(Button, { type: "link" }, "\u6DFB\u52A0\u9644\u4EF6")))),
|
|
396
401
|
isUpload && (React.createElement(Button, { type: "link", onClick: function () {
|
|
397
402
|
setIsOnlyQj(true);
|
|
398
|
-
|
|
403
|
+
var onlyQjRecords = [
|
|
399
404
|
{
|
|
400
405
|
attachId: '123456789',
|
|
401
406
|
},
|
|
402
|
-
]
|
|
407
|
+
];
|
|
408
|
+
if (onSigValuesChange) {
|
|
409
|
+
onSigValuesChange(sigValuesChange('fileList', onlyQjRecords));
|
|
410
|
+
}
|
|
411
|
+
setRecords(onlyQjRecords);
|
|
403
412
|
} }, "\u4EC5\u9700\u8981\u7FA4\u6770\u5370\u7AE0"))));
|
|
404
413
|
},
|
|
405
414
|
key: 'attachId',
|
|
@@ -423,10 +432,16 @@ var Sinatures = function (_a) {
|
|
|
423
432
|
if (xhr.status === 200) {
|
|
424
433
|
setTbLoading(false);
|
|
425
434
|
if ((response === null || response === void 0 ? void 0 : response.success) === true) {
|
|
426
|
-
|
|
427
|
-
var newRecords =
|
|
435
|
+
var getNewRecord_1 = function (data) {
|
|
436
|
+
var newRecords = data.slice();
|
|
428
437
|
newRecords.splice(index, 1);
|
|
429
438
|
return newRecords;
|
|
439
|
+
};
|
|
440
|
+
if (records.length > 0 && onSigValuesChange) {
|
|
441
|
+
onSigValuesChange(sigValuesChange('fileList', getNewRecord_1(records)));
|
|
442
|
+
}
|
|
443
|
+
setRecords(function (preRecords) {
|
|
444
|
+
return getNewRecord_1(preRecords);
|
|
430
445
|
});
|
|
431
446
|
message.success('文件删除成功!');
|
|
432
447
|
}
|
|
@@ -687,13 +702,19 @@ var Sinatures = function (_a) {
|
|
|
687
702
|
});
|
|
688
703
|
console.log(successFileList_1);
|
|
689
704
|
setRecords(function (preRecords) {
|
|
690
|
-
|
|
705
|
+
var _records = __spreadArray(__spreadArray([], preRecords), successFileList_1).filter(function (item) { return item.attachId !== '123456789'; });
|
|
706
|
+
if (onSigValuesChange) {
|
|
707
|
+
onSigValuesChange(sigValuesChange('fileList', _records));
|
|
708
|
+
}
|
|
709
|
+
return _records;
|
|
691
710
|
});
|
|
692
711
|
}
|
|
693
712
|
if (filelist.every(function (item) { return item.status === 'error'; })) {
|
|
694
713
|
message.error('文件上传失败!');
|
|
695
714
|
}
|
|
696
|
-
},
|
|
715
|
+
},
|
|
716
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
717
|
+
[setRecords]);
|
|
697
718
|
/** 群杰印章修改 */
|
|
698
719
|
function qunjSealChangeHandle(value) {
|
|
699
720
|
qunjSealChange && qunjSealChange(value);
|