@icos-desktop/react-components 2.2.6 → 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.
@@ -142,7 +142,8 @@ var request = createRequest({
142
142
  return response;
143
143
  },
144
144
  },
145
- errorNotify: function (_code, data) {
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,14 +151,17 @@ var request = createRequest({
150
151
  data: 401,
151
152
  });
152
153
  }
153
- if (data === null || data === void 0 ? void 0 : data.message) {
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
  },
157
161
  }).request;
158
162
  var req = function (config) {
159
- var _a = getConfig().apiPrefix, apiPrefix = _a === void 0 ? '/api/icos/desktop' : _a;
160
- // const { apiPrefix = '/gatehub/icos-desktop-00001' } = getConfig();
163
+ // const { apiPrefix = '/api/icos/desktop' } = getConfig();
164
+ var _a = getConfig().apiPrefix, apiPrefix = _a === void 0 ? '/gatehub/icos-desktop-00001' : _a;
161
165
  try {
162
166
  return request(config.url, __assign({ baseURL: apiPrefix }, config));
163
167
  }
@@ -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);
@@ -12824,8 +12847,8 @@ var TagTreeSelect = function (props) {
12824
12847
  };
12825
12848
 
12826
12849
  var settings$2 = {
12827
- name: 'CcosVideoPlayer',
12828
- title: '视频播放器',
12850
+ name: 'CcosVideoControl',
12851
+ title: '云台控制',
12829
12852
  description: '',
12830
12853
  package: '@icos-desktop/react-components',
12831
12854
  exportType: 'namedExport',
@@ -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.6","branch":"release_v2.2.0","buildDate":"2025-06-18 11:02:24"}');
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.6","branch":"release_v2.2.0","buildDate":"2025-06-18 11:02:24"}';
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 };