@titaui/pc 1.12.6 → 1.12.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.
Files changed (137) hide show
  1. package/lib/components/change-okr-modal/Item.js +19 -18
  2. package/lib/components/change-okr-modal/index.js +4 -2
  3. package/lib/components/change-okr-modal/styledComponents.js +9 -9
  4. package/lib/components/common-share/publishMblog.js +4 -2
  5. package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
  6. package/lib/components/create-okr-modal/fields/index.css +14 -3
  7. package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
  8. package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
  9. package/lib/components/create-okr-modal/fields/okr-type-detail.js +4 -2
  10. package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +4 -2
  11. package/lib/components/create-okr-modal/index.js +201 -134
  12. package/lib/components/create-okr-modal/kr-items/index.css +23 -13
  13. package/lib/components/create-okr-modal/kr-items/krDatas.js +95 -76
  14. package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
  15. package/lib/components/create-okr-modal/request-api.js +16 -12
  16. package/lib/components/create-okr-modal/style.js +5 -5
  17. package/lib/components/create-okr-modal/utils/helper.js +6 -2
  18. package/lib/components/drawer-manager/drawerWrapper.js +4 -2
  19. package/lib/components/dynamic/components/title/index.js +1 -1
  20. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
  21. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
  22. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
  23. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
  24. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
  25. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
  26. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
  27. package/lib/components/eReport/eReportLists/reportList.js +29 -30
  28. package/lib/components/eReport/eReportShare/style.js +1 -1
  29. package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
  30. package/lib/components/firework/index.js +6 -2
  31. package/lib/components/form/form-fields/input-verification-code/index.js +4 -2
  32. package/lib/components/grid-layout/util/network.js +10 -6
  33. package/lib/components/nav-top/components/menu/index.js +3 -3
  34. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
  35. package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
  36. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
  37. package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
  38. package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
  39. package/lib/components/okr-detail/components/header/edit-name.js +80 -41
  40. package/lib/components/okr-detail/components/header/index.css +122 -41
  41. package/lib/components/okr-detail/components/header/index.js +45 -48
  42. package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
  43. package/lib/components/okr-detail/components/header/o-classify.js +154 -0
  44. package/lib/components/okr-detail/components/header/o-name.js +7 -5
  45. package/lib/components/okr-detail/components/o-classify.js +4 -2
  46. package/lib/components/okr-detail/components/o-progress-update/index.js +14 -8
  47. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +7 -3
  48. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
  49. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
  50. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
  51. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +178 -66
  52. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -2
  53. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
  54. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
  55. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +19 -15
  56. package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
  57. package/lib/components/okr-detail/detail-footer/index.js +4 -2
  58. package/lib/components/okr-detail/detail-header/index.js +23 -15
  59. package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
  60. package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
  61. package/lib/components/okr-detail/okr-list/index.css +9 -0
  62. package/lib/components/okr-detail/okr-list/index.js +29 -27
  63. package/lib/components/okr-detail/request-apis.js +79 -71
  64. package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
  65. package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
  66. package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
  67. package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
  68. package/lib/components/okr-flow/child-node/kr-node.js +3 -1
  69. package/lib/components/okr-flow/child-node/work-node.js +7 -3
  70. package/lib/components/okr-flow/export-modal/index.js +10 -29
  71. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
  72. package/lib/components/okr-flow/request-apis.js +6 -2
  73. package/lib/components/okr-flow/root-node/index.js +4 -2
  74. package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
  75. package/lib/components/okr-progress/components/o-progress/index.js +3 -1
  76. package/lib/components/okr-progress/components/o-progress-update/index.js +10 -6
  77. package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
  78. package/lib/components/okr-progress-modal/index.js +4 -2
  79. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +7 -5
  80. package/lib/components/okr-share/common-painter/darwAvatar.js +8 -4
  81. package/lib/components/okr-share/common-painter/openDataPainter.js +15 -8
  82. package/lib/components/okr-share/common-painter/utils.js +187 -36
  83. package/lib/components/okr-share/index.css +5 -4
  84. package/lib/components/okr-share/pink-card/card.js +3 -3
  85. package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
  86. package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
  87. package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
  88. package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
  89. package/lib/components/okr-share/pink-card/index.js +26 -14
  90. package/lib/components/okr-share/publishMblog.js +4 -2
  91. package/lib/components/okr-share/shareCardSelector.js +6 -4
  92. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
  93. package/lib/components/okrcase-library/server/network.js +24 -20
  94. package/lib/components/open-data-painter/index.js +12 -7
  95. package/lib/components/period-selector/helper/index.js +6 -2
  96. package/lib/components/search-key-handle/index.js +12 -10
  97. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +6 -2
  98. package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
  99. package/lib/components/survey-model/request-api.js +6 -2
  100. package/lib/components/task-relation-modal/index.js +6 -4
  101. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
  102. package/lib/components/task-relation-modal/tree/category-tree/index.js +4 -2
  103. package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
  104. package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
  105. package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
  106. package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
  107. package/lib/components/task-relation-modal/work-relation/index.js +6 -4
  108. package/lib/components/task-tree/task-item-node/e-project.js +4 -2
  109. package/lib/components/task-tree/task-item-node/e-task.js +4 -2
  110. package/lib/components/toast/index.js +12 -8
  111. package/lib/components/upload/components/uploadedPreview.js +17 -17
  112. package/lib/components/upload/index.js +23 -23
  113. package/lib/components/upvote/index.js +6 -4
  114. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +14 -14
  115. package/lib/components/user-selector/searched-panel/index.js +4 -4
  116. package/lib/components/version-change-modal/index.js +6 -4
  117. package/lib/components/version-change-modal/request-api.js +6 -2
  118. package/lib/components/wechat-btn/index.css +5 -1
  119. package/lib/components/weekly-report/card.js +4 -12
  120. package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
  121. package/lib/components/weekly-report/common-painter/drawName.js +6 -2
  122. package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
  123. package/lib/components/weekly-report/index.js +6 -4
  124. package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
  125. package/lib/pages/group-management/groupInterface.js +6 -2
  126. package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
  127. package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
  128. package/lib/pages/new-okr-list/header/index.js +15 -15
  129. package/lib/pages/new-okr-list/request-api.js +18 -14
  130. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +4 -2
  131. package/lib/pages/okr-map/request-apis.js +6 -2
  132. package/lib/utils/hooks.js +5 -5
  133. package/lib/utils/open-data.js +216 -66
  134. package/lib/utils/request-v1.js +6 -2
  135. package/lib/utils/request.js +6 -2
  136. package/lib/utils/tita-okr-cycle.js +3 -3
  137. package/package.json +2 -1
@@ -37,6 +37,8 @@ var _getLocale = require("../../../../../utils/getLocale");
37
37
 
38
38
  var _i18nFrontTranslate = require("../../../../../utils/i18n-front-translate");
39
39
 
40
+ var _openData = require("../../../../../utils/open-data");
41
+
40
42
  require("./index.css");
41
43
 
42
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -103,12 +105,12 @@ var OProgress = function OProgress(_ref) {
103
105
  editOProgressVisiable = _useState12[0],
104
106
  setEditOProgressVisiable = _useState12[1];
105
107
 
106
- var _useState13 = (0, _react.useState)(""),
108
+ var _useState13 = (0, _react.useState)(''),
107
109
  _useState14 = _slicedToArray(_useState13, 2),
108
110
  editOProgressContent = _useState14[0],
109
111
  setEditOProgressContent = _useState14[1];
110
112
 
111
- var _useState15 = (0, _react.useState)(""),
113
+ var _useState15 = (0, _react.useState)(''),
112
114
  _useState16 = _slicedToArray(_useState15, 2),
113
115
  editOProgressId = _useState16[0],
114
116
  setEditOProgressId = _useState16[1];
@@ -143,9 +145,9 @@ var OProgress = function OProgress(_ref) {
143
145
  };
144
146
 
145
147
  var handleModalOkClick = function handleModalOkClick() {
146
- (0, _requestApis.updateProgressDesc)(editOProgressId, okrInfo.workId, editOProgressContent || "").then(function (resp) {
148
+ (0, _requestApis.updateProgressDesc)(editOProgressId, okrInfo.workId, editOProgressContent || '').then(function (resp) {
147
149
  if (resp.Code === 1) {
148
- _toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"), {
150
+ _toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
149
151
  canClose: false
150
152
  });
151
153
 
@@ -158,7 +160,7 @@ var OProgress = function OProgress(_ref) {
158
160
  });
159
161
  }
160
162
  })["catch"](function (e) {
161
- _toast["default"].Error("网络异常", {
163
+ _toast["default"].Error('网络异常', {
162
164
  canClose: false
163
165
  });
164
166
  });
@@ -177,7 +179,7 @@ var OProgress = function OProgress(_ref) {
177
179
  onClick: onOpenModal
178
180
  }, /*#__PURE__*/_react["default"].createElement("i", {
179
181
  className: "tu-icon-gengxin o-progress__func-btn-icon"
180
- }), (0, _getLocale.getLocale)("OKR_MyO_Prog_Butt_Update"));
182
+ }), (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Update'));
181
183
  };
182
184
 
183
185
  var handleRemind = (0, _react.useCallback)(function () {
@@ -188,7 +190,7 @@ var OProgress = function OProgress(_ref) {
188
190
  type: 2
189
191
  }).then(function (resp) {
190
192
  if (resp.Code === 1) {
191
- _toast["default"].Success((0, _getLocale.getLocale)("OKR_MyO_Prog_Remindersu"), {
193
+ _toast["default"].Success((0, _getLocale.getLocale)('OKR_MyO_Prog_Remindersu'), {
192
194
  canClose: false
193
195
  });
194
196
  } else {
@@ -197,7 +199,7 @@ var OProgress = function OProgress(_ref) {
197
199
  });
198
200
  }
199
201
  })["catch"](function (e) {
200
- _toast["default"].Error("网络异常", {
202
+ _toast["default"].Error('网络异常', {
201
203
  canClose: false
202
204
  });
203
205
  })["finally"](function () {
@@ -212,7 +214,7 @@ var OProgress = function OProgress(_ref) {
212
214
  work_id: okrInfo.workId
213
215
  }).then(function (resp) {
214
216
  if (resp.Code === 1) {
215
- _toast["default"].Success((0, _getLocale.getLocale)("OKR_MyO_Prog_Remindersu"), {
217
+ _toast["default"].Success((0, _getLocale.getLocale)('OKR_MyO_Prog_Remindersu'), {
216
218
  canClose: false
217
219
  });
218
220
  } else {
@@ -221,7 +223,7 @@ var OProgress = function OProgress(_ref) {
221
223
  });
222
224
  }
223
225
  })["catch"](function (e) {
224
- _toast["default"].Error("网络异常", {
226
+ _toast["default"].Error('网络异常', {
225
227
  canClose: false
226
228
  });
227
229
  });
@@ -245,7 +247,7 @@ var OProgress = function OProgress(_ref) {
245
247
  }, [generalPrincipalUser]);
246
248
  (0, _react.useEffect)(function () {
247
249
  // @ts-ignore
248
- var dom = document.querySelector(".o-progress__contnet-wrapper").querySelector(".okr-progress-item-wrapper"); // @ts-ignore
250
+ var dom = document.querySelector('.o-progress__contnet-wrapper').querySelector('.okr-progress-item-wrapper'); // @ts-ignore
249
251
 
250
252
  var height = dom ? dom.offsetHeight : 0; // 为了解决展开内容编辑过后收起时计算的高度是根据展开的算 16是第一个目标进展在展开和收起所以列表的时候的padding-bottom差
251
253
 
@@ -265,53 +267,53 @@ var OProgress = function OProgress(_ref) {
265
267
  type: "warning"
266
268
  }, /*#__PURE__*/_react["default"].createElement("span", {
267
269
  type: "title"
268
- }, (0, _getLocale.getLocale)("OKR_DR_Pop_Areyousure")), /*#__PURE__*/_react["default"].createElement("span", {
270
+ }, (0, _getLocale.getLocale)('OKR_DR_Pop_Areyousure')), /*#__PURE__*/_react["default"].createElement("span", {
269
271
  type: "content"
270
- }, (0, _getLocale.getLocale)("OKR_DR_Pop_ThesystemOKR")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
272
+ }, (0, _getLocale.getLocale)('OKR_DR_Pop_ThesystemOKR')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
271
273
  type: "button",
272
274
  onClick: handleCancelRemind
273
- }, (0, _getLocale.getLocale)("Mod_Cancel")), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
275
+ }, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
274
276
  type: "button",
275
277
  onClick: handleEnsureRemind
276
- }, (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine")));
278
+ }, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine')));
277
279
  }, [showRemindDialogConfirm, handleCancelRemind, handleEnsureRemind]);
278
280
  var renderEmptyCmp = (0, _react.useMemo)(function () {
279
281
  var renderUpdateBtn = function renderUpdateBtn(_ref3) {
280
282
  var onOpenModal = _ref3.onOpenModal;
281
283
  return /*#__PURE__*/_react["default"].createElement("button", {
282
- className: "o-progress__empty-button ".concat(isPrincipalUser ? "" : "o-progress__empty-button--not-principaluser"),
284
+ className: "o-progress__empty-button ".concat(isPrincipalUser ? '' : 'o-progress__empty-button--not-principaluser'),
283
285
  onClick: onOpenModal
284
- }, (0, _getLocale.getLocale)("OKR_MyO_Prog_Butt_Update"));
286
+ }, (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Update'));
285
287
  };
286
288
 
287
289
  return /*#__PURE__*/_react["default"].createElement("div", {
288
290
  className: (0, _classnames["default"])({
289
- "o-progress__empty-wrapper": true,
290
- "o-progress__empty-wrapper--not-principaluser": hasOtherProgress
291
+ 'o-progress__empty-wrapper': true,
292
+ 'o-progress__empty-wrapper--not-principaluser': hasOtherProgress
291
293
  })
292
294
  }, /*#__PURE__*/_react["default"].createElement("img", {
293
295
  width: 128,
294
296
  src: _scheduleEmpty["default"]
295
297
  }), /*#__PURE__*/_react["default"].createElement("span", {
296
298
  className: "o-progress__empty-text"
297
- }, isPrincipalUser ? (0, _getLocale.getLocale)("OKR_MyO_KRP_tochecko") : (0, _getLocale.getLocale)("OKR_MyO_Pr_Text_Nooprogress")), isPrincipalUser && /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
299
+ }, isPrincipalUser ? (0, _getLocale.getLocale)('OKR_MyO_KRP_tochecko') : (0, _getLocale.getLocale)('OKR_MyO_Pr_Text_Nooprogress')), isPrincipalUser && /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
298
300
  okrInfo: okrInfo,
299
301
  renderContent: renderUpdateBtn,
300
302
  setUpdateData: setUpdateProgress
301
303
  }), !isCanEditProgress && /*#__PURE__*/_react["default"].createElement("button", {
302
304
  className: "o-progress__empty-button",
303
305
  onClick: handleRemindClick
304
- }, (0, _getLocale.getLocale)("OKR_MyO_Pr_Butt_Reminder")), isCanEditProgress && !isPrincipalUser && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("button", {
306
+ }, (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder')), isCanEditProgress && !isPrincipalUser && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("button", {
305
307
  className: "o-progress__empty-button",
306
308
  onClick: handleRemindClick
307
- }, (0, _getLocale.getLocale)("OKR_MyO_Pr_Butt_Reminder")), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
309
+ }, (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder')), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
308
310
  okrInfo: okrInfo,
309
311
  renderContent: renderUpdateBtn,
310
312
  setUpdateData: setUpdateProgress
311
313
  })));
312
314
  }, [hasOtherProgress]);
313
315
  var renderDefaultRemindCmp = (0, _react.useMemo)(function () {
314
- var text = isPrincipalUser ? (0, _auth.hasSuperior)() ? (0, _getLocale.getLocale)("OKR_MyO_Prog_Butt_Remind") : null : (0, _getLocale.getLocale)("OKR_MyO_Pr_Butt_Reminder");
316
+ var text = isPrincipalUser ? (0, _auth.hasSuperior)() ? (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Remind') : null : (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder');
315
317
  return /*#__PURE__*/_react["default"].createElement("span", {
316
318
  className: "o-progress__func-btn",
317
319
  onClick: handleRemindClick
@@ -324,7 +326,7 @@ var OProgress = function OProgress(_ref) {
324
326
  }, oProgressData.length === 0 ? renderEmptyCmp : /*#__PURE__*/_react["default"].createElement("div", {
325
327
  className: "o-progress__header"
326
328
  }, /*#__PURE__*/_react["default"].createElement(_title["default"], {
327
- title: (0, _getLocale.getLocale)("OKR_MyO_Prog_Objectiveprogress")
329
+ title: (0, _getLocale.getLocale)('OKR_MyO_Prog_Objectiveprogress')
328
330
  }), /*#__PURE__*/_react["default"].createElement("div", {
329
331
  className: "o-progress__func-btns"
330
332
  }, okrInfo.status === 2 ? null : renderDefaultRemindCmp, isCanEditProgress ? /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
@@ -332,12 +334,12 @@ var OProgress = function OProgress(_ref) {
332
334
  renderContent: renderContent,
333
335
  setUpdateData: setUpdateProgress
334
336
  }) : null)), /*#__PURE__*/_react["default"].createElement("div", {
335
- className: "o-progress__contnet-wrapper ".concat(isMoreThanOneProgress && isShowAll ? "" : "o-progress__content-wrapper--fold"),
337
+ className: "o-progress__contnet-wrapper ".concat(isMoreThanOneProgress && isShowAll ? '' : 'o-progress__content-wrapper--fold'),
336
338
  style: {
337
- height: isShowAll ? "auto" : "".concat(initHeight, "px")
339
+ height: isShowAll ? 'auto' : "".concat(initHeight, "px")
338
340
  }
339
341
  }, oProgressData && oProgressData.map(function (item, index) {
340
- var rightTip = "";
342
+ var rightTip = '';
341
343
 
342
344
  if (okrInfo.status !== 2 && okrInfo.progress !== 100 && index === 0 && isCanEditProgress) {
343
345
  rightTip = (0, _util.getToNowTime)(item.time);
@@ -346,7 +348,7 @@ var OProgress = function OProgress(_ref) {
346
348
  return /*#__PURE__*/_react["default"].createElement(_okrProgressDetail["default"], {
347
349
  key: item.id,
348
350
  riskLevel: item.riskLevel,
349
- title: item.title,
351
+ title: (0, _openData.parseString)(item.title || ''),
350
352
  percent: item.percent,
351
353
  oldPercent: item.oldPercent,
352
354
  content: item.content,
@@ -361,8 +363,8 @@ var OProgress = function OProgress(_ref) {
361
363
  }, /*#__PURE__*/_react["default"].createElement("span", {
362
364
  className: "o-progress__shrink-text",
363
365
  onClick: handleChangeShowAll
364
- }, isShowAll ? (0, _getLocale.getLocale)("OKR_MyO_Prog_Butt_Fold") : (0, _getLocale.getLocale)("OKR_MyO_Pr_Butt_Viewall"), /*#__PURE__*/_react["default"].createElement("i", {
365
- className: isShowAll ? "tu-icon-arrow-up" : "tu-icon-arrow-down"
366
+ }, isShowAll ? (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Fold') : (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Viewall'), /*#__PURE__*/_react["default"].createElement("i", {
367
+ className: isShowAll ? 'tu-icon-arrow-up' : 'tu-icon-arrow-down'
366
368
  }))) : null, /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
367
369
  className: "common-modal o-progress__modal",
368
370
  maskClosable: false,
@@ -373,9 +375,9 @@ var OProgress = function OProgress(_ref) {
373
375
  visible: editOProgressVisiable,
374
376
  width: 600
375
377
  }, /*#__PURE__*/_react["default"].createElement("div", {
376
- className: "o-progress__textarea-wrapper ".concat(hasError ? "o-progress__textarea-wrapper--error" : "")
378
+ className: "o-progress__textarea-wrapper ".concat(hasError ? 'o-progress__textarea-wrapper--error' : '')
377
379
  }, /*#__PURE__*/_react["default"].createElement("textarea", {
378
- placeholder: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Pleprogress"),
380
+ placeholder: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Pleprogress'),
379
381
  className: "o-progress__textarea",
380
382
  value: editOProgressContent,
381
383
  onChange: handleTextareaChange
@@ -15,6 +15,8 @@ var _scheduleO = _interopRequireDefault(require("../../img/schedule-o.svg"));
15
15
 
16
16
  var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
17
17
 
18
+ var _openData = require("../../../../../utils/open-data");
19
+
18
20
  require("./index.css");
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -30,7 +32,7 @@ var renderTitle = function renderTitle(title, workId) {
30
32
  okrId: workId
31
33
  });
32
34
  }
33
- }, title));
35
+ }, (0, _openData.parseString)(title)));
34
36
  };
35
37
 
36
38
  var SubOProgress = function SubOProgress(_ref) {
@@ -25,6 +25,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
25
25
 
26
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
27
 
28
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
29
+
28
30
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
29
31
 
30
32
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -71,9 +73,9 @@ function Creator(_ref) {
71
73
  setImgwidth = _useState6[1];
72
74
 
73
75
  var getCreator = /*#__PURE__*/function () {
74
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
76
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
75
77
  var userName;
76
- return regeneratorRuntime.wrap(function _callee$(_context) {
78
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
77
79
  while (1) {
78
80
  switch (_context.prev = _context.next) {
79
81
  case 0:
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
11
11
 
12
12
  var _CircleProgress = _interopRequireDefault(require("../../../components-v1/progress/CircleProgress"));
13
13
 
14
+ var _openData = require("../../../utils/open-data");
15
+
14
16
  var _creator = _interopRequireDefault(require("./fields/creator"));
15
17
 
16
18
  var _precls = _interopRequireDefault(require("../precls"));
@@ -50,7 +52,7 @@ function KrNode(_ref) {
50
52
  color: "#5AD8A6",
51
53
  marginRight: 8
52
54
  }
53
- }, "KR", SortNum + 1), mileStoneName), /*#__PURE__*/_react["default"].createElement("div", {
55
+ }, "KR", SortNum + 1), (0, _openData.parseString)(mileStoneName)), /*#__PURE__*/_react["default"].createElement("div", {
54
56
  className: (0, _classnames["default"])("".concat(_precls["default"], "--node-desp"))
55
57
  }, /*#__PURE__*/_react["default"].createElement(_creator["default"], {
56
58
  creator: user || {}
@@ -33,6 +33,8 @@ var _getLocale = require("../../../utils/getLocale");
33
33
 
34
34
  var _tools = require("../../../utils/tools");
35
35
 
36
+ var _openData2 = require("../../../utils/open-data");
37
+
36
38
  var _drawerManager = _interopRequireDefault(require("../../../components/drawer-manager"));
37
39
 
38
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,6 +45,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
43
45
 
44
46
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45
47
 
48
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
49
+
46
50
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
47
51
 
48
52
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -116,9 +120,9 @@ function WorkNode(_ref) {
116
120
  };
117
121
 
118
122
  var getDepartUrl = /*#__PURE__*/function () {
119
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
123
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
120
124
  var name;
121
- return regeneratorRuntime.wrap(function _callee$(_context) {
125
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
122
126
  while (1) {
123
127
  switch (_context.prev = _context.next) {
124
128
  case 0:
@@ -239,7 +243,7 @@ function WorkNode(_ref) {
239
243
  }, /*#__PURE__*/_react["default"].createElement("div", {
240
244
  className: (0, _classnames["default"])("".concat(_precls["default"], "--node-title")),
241
245
  onClick: openODetail
242
- }, (0, _tools.htmlDecodeByRegExp)(workName), /*#__PURE__*/_react["default"].createElement(_okrClassify["default"], {
246
+ }, (0, _openData2.parseString)((0, _tools.htmlDecodeByRegExp)(workName)), /*#__PURE__*/_react["default"].createElement(_okrClassify["default"], {
243
247
  classify: okrClassify
244
248
  })), /*#__PURE__*/_react["default"].createElement("div", {
245
249
  className: (0, _classnames["default"])("".concat(_precls["default"], "--node-desp")),
@@ -57,6 +57,8 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
57
57
 
58
58
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
59
59
 
60
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
61
+
60
62
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
61
63
 
62
64
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -119,9 +121,9 @@ var ExportMapModal = function ExportMapModal(props) {
119
121
  }, [visible, mapInstance]);
120
122
 
121
123
  var downloadImg = /*#__PURE__*/function () {
122
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
124
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
123
125
  var okrMapRef, width, height, canvas, scale, opts;
124
- return regeneratorRuntime.wrap(function _callee$(_context) {
126
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
125
127
  while (1) {
126
128
  switch (_context.prev = _context.next) {
127
129
  case 0:
@@ -173,24 +175,20 @@ var ExportMapModal = function ExportMapModal(props) {
173
175
  var telentId = (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$BSGlobal = _window2.BSGlobal) === null || _window2$BSGlobal === void 0 ? void 0 : (_window2$BSGlobal$ten = _window2$BSGlobal.tenantInfo) === null || _window2$BSGlobal$ten === void 0 ? void 0 : _window2$BSGlobal$ten.Id;
174
176
  var imgUrl = result.toDataURL('image/png'); // 得到图片的base64编码数据
175
177
 
176
- // 得到图片的base64编码数据
177
178
  _toast["default"].Warning('导出中,请勿关闭弹窗', {
178
179
  canClose: true
179
180
  });
180
181
 
181
182
  var equalIndex = imgUrl.indexOf('='); // 获取=号下标
182
183
 
183
- // 获取=号下标
184
184
  var size = 0;
185
185
 
186
186
  if (equalIndex > 0) {
187
187
  var str = imgUrl.substring(0, equalIndex); // 去除=号
188
188
 
189
- // 去除=号
190
189
  var strLength = str.length;
191
190
  var fileLength = strLength - strLength / 8 * 2; // 真实的图片byte大小
192
191
 
193
- // 真实的图片byte大小
194
192
  size = Math.floor(fileLength); // 向下取整
195
193
  } else {
196
194
  var _strLength = imgUrl.length;
@@ -207,16 +205,10 @@ var ExportMapModal = function ExportMapModal(props) {
207
205
  // productName: 'okr地图导出',
208
206
  // });
209
207
 
210
- // @ts-ignore
211
- // window.titaTracker && window.titaTracker("action").record({
212
- // actionName: userId+'租户:'+telentId+'我得到了图片大小为:'+size+',路径为'+imgUrl.slice(1,200),
213
- // actionGroup: 'okr地图图片',
214
- // productName: 'okr地图导出',
215
- // });
216
208
  Sentry.withScope(function (scope) {
217
- scope.setTag("error-level", "P0");
218
- scope.setTag("error-type", "地图导出-图片生成");
219
- scope.setExtra("userMessage", userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
209
+ scope.setTag('error-level', "P0");
210
+ scope.setTag('error-type', '地图导出-图片生成');
211
+ scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
220
212
  });
221
213
  (0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
222
214
  var image = new Image(); // @ts-ignore
@@ -226,16 +218,10 @@ var ExportMapModal = function ExportMapModal(props) {
226
218
  // productName: 'okr地图导出',
227
219
  // });
228
220
 
229
- // @ts-ignore
230
- // window.titaTracker && window.titaTracker("action").record({
231
- // actionName: userId+'租户:'+telentId+'我获得了地址'+url.Data.obj,
232
- // actionGroup: 'okr地图接口',
233
- // productName: 'okr地图导出',
234
- // });
235
221
  Sentry.withScope(function (scope) {
236
- scope.setTag("error-level", "P0");
237
- scope.setTag("error-type", "地图导出-图片地址");
238
- scope.setExtra("userMessage", userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
222
+ scope.setTag('error-level', "P0");
223
+ scope.setTag('error-type', '地图导出-图片地址');
224
+ scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
239
225
  });
240
226
 
241
227
  _toast["default"].Warning('图片上传成功,准备本地下载', {
@@ -253,19 +239,14 @@ var ExportMapModal = function ExportMapModal(props) {
253
239
 
254
240
  var a = document.createElement('a'); // 生成一个a元素
255
241
 
256
- // 生成一个a元素
257
242
  var event = new MouseEvent('click'); // 创建一个单击事件
258
243
 
259
- // 创建一个单击事件
260
244
  a.download = 'okr地图'; // 设置图片名称
261
245
 
262
- // 设置图片名称
263
246
  a.href = url.Data.obj; // 将生成的URL设置为a
264
247
 
265
- // 将生成的URL设置为a
266
248
  a.dispatchEvent(event); // 触发a的单击事件
267
249
 
268
- // 触发a的单击事件
269
250
  _toast["default"].Success('导出成功');
270
251
 
271
252
  setIsExport(false);
@@ -41,6 +41,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
41
41
 
42
42
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
43
43
 
44
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
45
+
44
46
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45
47
 
46
48
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -113,10 +115,10 @@ function OkrSearchPanel(props, ref) {
113
115
 
114
116
 
115
117
  var getSearchData = (0, _react.useRef)((0, _helper.debounce)( /*#__PURE__*/function () {
116
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(searchType, rootId, rootName, avatar, cycleType, yqmNum, annualNum, okrType, openLevel, showkr, showCardKr) {
118
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchType, rootId, rootName, avatar, cycleType, yqmNum, annualNum, okrType, openLevel, showkr, showCardKr) {
117
119
  var _yield$searchOkrs, works, okrIds, nodes, allNodes, subTreeNodes;
118
120
 
119
- return regeneratorRuntime.wrap(function _callee$(_context) {
121
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
120
122
  while (1) {
121
123
  switch (_context.prev = _context.next) {
122
124
  case 0:
@@ -207,10 +209,10 @@ function OkrSearchPanel(props, ref) {
207
209
  }, [treeNodes, showkr, showCardKr]);
208
210
 
209
211
  var handleParentExpand = /*#__PURE__*/function () {
210
- var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(node) {
212
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(node) {
211
213
  var id, modelType, data, res, _toTree, _toTree2, parentTree, prevIndex, prevNode, i;
212
214
 
213
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
215
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
214
216
  while (1) {
215
217
  switch (_context2.prev = _context2.next) {
216
218
  case 0:
@@ -260,9 +262,9 @@ function OkrSearchPanel(props, ref) {
260
262
  }();
261
263
 
262
264
  var handleChildExpand = /*#__PURE__*/function () {
263
- var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(node) {
265
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(node) {
264
266
  var id, modelType, data, res, children, subNodes, i, currentExpandNode;
265
- return regeneratorRuntime.wrap(function _callee3$(_context3) {
267
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
266
268
  while (1) {
267
269
  switch (_context3.prev = _context3.next) {
268
270
  case 0:
@@ -315,8 +317,8 @@ function OkrSearchPanel(props, ref) {
315
317
  };
316
318
 
317
319
  var exportCurrentFlow = /*#__PURE__*/function () {
318
- var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
319
- return regeneratorRuntime.wrap(function _callee4$(_context4) {
320
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
321
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
320
322
  while (1) {
321
323
  switch (_context4.prev = _context4.next) {
322
324
  case 0: