@icos-desktop/react-components 2.2.7 → 2.2.8
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.
- package/dist/icos-desktop.js +27 -4
- package/dist/icos-desktop.umd.cjs +1 -1
- package/package.json +6 -2
package/dist/icos-desktop.js
CHANGED
@@ -142,7 +142,8 @@ var request = createRequest({
|
|
142
142
|
return response;
|
143
143
|
},
|
144
144
|
},
|
145
|
-
errorNotify: function (
|
145
|
+
errorNotify: function (code, data) {
|
146
|
+
var _a;
|
146
147
|
if ((data === null || data === void 0 ? void 0 : data.status) === 401) {
|
147
148
|
postMessage({
|
148
149
|
source: 'request',
|
@@ -150,7 +151,10 @@ var request = createRequest({
|
|
150
151
|
data: 401,
|
151
152
|
});
|
152
153
|
}
|
153
|
-
if (data === null || data === void 0 ? void 0 : data.
|
154
|
+
if ((_a = data === null || data === void 0 ? void 0 : data.config) === null || _a === void 0 ? void 0 : _a.errorNotify) {
|
155
|
+
data.config.errorNotify(code, data);
|
156
|
+
}
|
157
|
+
else if (data === null || data === void 0 ? void 0 : data.message) {
|
154
158
|
message.error(data.message);
|
155
159
|
}
|
156
160
|
},
|
@@ -915,6 +919,14 @@ function importManualBookGroup(formData_1, _a) {
|
|
915
919
|
pathVariables: { templateId: templateId },
|
916
920
|
params: { viewCode: viewCode },
|
917
921
|
data: formData,
|
922
|
+
errorNotify: function (_code, data) {
|
923
|
+
if ((data === null || data === void 0 ? void 0 : data.status) === 504) {
|
924
|
+
message.error('服务器繁忙,请稍后在导入管理中查看进度,若查询不到进度请稍后再试。');
|
925
|
+
}
|
926
|
+
else if (data === null || data === void 0 ? void 0 : data.message) {
|
927
|
+
message.error(data.message);
|
928
|
+
}
|
929
|
+
},
|
918
930
|
})];
|
919
931
|
});
|
920
932
|
});
|
@@ -933,6 +945,14 @@ function importGeolevelBookGroup(formData_1, _a) {
|
|
933
945
|
pathVariables: { templateId: templateId },
|
934
946
|
params: { fieldId: fieldId, viewCode: viewCode },
|
935
947
|
data: formData,
|
948
|
+
errorNotify: function (_code, data) {
|
949
|
+
if ((data === null || data === void 0 ? void 0 : data.status) === 504) {
|
950
|
+
message.error('服务器繁忙,请稍后在导入管理中查看进度,若查询不到进度请稍后再试。');
|
951
|
+
}
|
952
|
+
else if (data === null || data === void 0 ? void 0 : data.message) {
|
953
|
+
message.error(data.message);
|
954
|
+
}
|
955
|
+
},
|
936
956
|
})];
|
937
957
|
});
|
938
958
|
});
|
@@ -4349,6 +4369,9 @@ var Upload = forwardRef(function (props, ref) {
|
|
4349
4369
|
return [3 /*break*/, 6];
|
4350
4370
|
case 5: return [2 /*return*/];
|
4351
4371
|
case 6:
|
4372
|
+
if (!res_1) {
|
4373
|
+
return [2 /*return*/];
|
4374
|
+
}
|
4352
4375
|
setTaskBatchId(res_1);
|
4353
4376
|
setTimeout(function () {
|
4354
4377
|
getSchedule(res_1);
|
@@ -12947,11 +12970,11 @@ var CcosVideoPlayer = function (props) {
|
|
12947
12970
|
CcosVideoPlayer.settings = settings$1;
|
12948
12971
|
|
12949
12972
|
try {
|
12950
|
-
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.
|
12973
|
+
window._ICOS_DESKTOP_VERSION_ = JSON.parse('{"version":"2.2.8","branch":"release_v2.2.0","buildDate":"2025-06-26 19:40:50"}');
|
12951
12974
|
}
|
12952
12975
|
catch (err) {
|
12953
12976
|
console.warn(err);
|
12954
|
-
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.
|
12977
|
+
window._ICOS_DESKTOP_VERSION_ = '{"version":"2.2.8","branch":"release_v2.2.0","buildDate":"2025-06-26 19:40:50"}';
|
12955
12978
|
}
|
12956
12979
|
|
12957
12980
|
export { BookDetail, BookGroupImport, BookGroupTable, BookImport, BookInfo, BookSelect, BookTable, CcosBookDetail, CcosImportTable, CcosSenseContentTable, CcosSenseCreate, CcosSenseDetail, CcosSenseEdit, CcosSenseFullTable, CcosSenseManager, CcosSenseSearch, CcosSenseTree, CcosSenseView, CcosTagConfig, CcosVideoControl, CcosVideoPlayer, EntityClassFilter, EntityClassTreeSelect, ImportTable, Modal, OrgTreeSelect, PersonSelector, ProTable$1 as ProTable, RegionCascader, RegionTreeSelect, RelationGraph, SenseContentTable, SenseCreate, SenseDetail, SenseEdit, SenseForm, SenseFullTable, SenseInfo, SenseManager, SenseSearch, SenseTable, SenseTree, SenseView, TagConfig, TagTreeSelect, VideoControl, VideoPlayer, setCconfig as config };
|