ztxkui 4.1.6 → 4.1.7
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.
|
@@ -1024,7 +1024,6 @@ var PrintContainer = function (_a) {
|
|
|
1024
1024
|
showPrintBtn && (React.createElement(Button, { type: "primary", onClick: onPrintHandle }, "\u6253\u5370")),
|
|
1025
1025
|
showPrintBtn && showPluginPrintBtn && (React.createElement(Button, { type: "primary", onClick: onECPrintHandle }, "\u63D2\u4EF6\u6253\u5370")),
|
|
1026
1026
|
showExportBtn && (React.createElement(Dropdown, { overlay: function () { return (React.createElement(Menu, { onClick: function (e) {
|
|
1027
|
-
console.log(e);
|
|
1028
1027
|
if (e.key === 'l') {
|
|
1029
1028
|
onPdfHandle({
|
|
1030
1029
|
pdfOptions: {
|
|
@@ -42,8 +42,23 @@ export function autoSealThenDownloadFilesHandle(request, formData, options) {
|
|
|
42
42
|
document.body.removeChild(aLink);
|
|
43
43
|
})
|
|
44
44
|
.catch(function (err) {
|
|
45
|
-
var _a, _b;
|
|
45
|
+
var _a, _b, _c;
|
|
46
46
|
errorCallback && errorCallback();
|
|
47
|
-
|
|
47
|
+
try {
|
|
48
|
+
var blobData = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data;
|
|
49
|
+
blobData
|
|
50
|
+
.text()
|
|
51
|
+
.then(function (data) {
|
|
52
|
+
var result = JSON.parse(data);
|
|
53
|
+
message.error((result === null || result === void 0 ? void 0 : result.msg) || '接口调用失败!');
|
|
54
|
+
})
|
|
55
|
+
.catch(function () {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '接口调用失败!');
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
message.error(((_c = (_b = err === null || err === void 0 ? void 0 : err.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.msg) || '接口调用失败!');
|
|
62
|
+
}
|
|
48
63
|
});
|
|
49
64
|
}
|