@titaui/pc 1.9.75 → 1.9.80

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 (123) hide show
  1. package/.eslintrc.js +6 -4
  2. package/lib/components/change-okr-modal/Filter.js +1 -1
  3. package/lib/components/change-okr-modal/Item.js +27 -25
  4. package/lib/components/change-okr-modal/filterTab.js +1 -1
  5. package/lib/components/change-okr-modal/index.js +1 -1
  6. package/lib/components/change-okr-modal/styledComponents.js +5 -5
  7. package/lib/components/communication/CommunicationAttachments.js +1 -1
  8. package/lib/components/communication/ConvertUserName.js +1 -1
  9. package/lib/components/communication/index.js +1 -1
  10. package/lib/components/create-okr-modal/objectType.js +1 -1
  11. package/lib/components/date-picker/BodyItem.js +1 -1
  12. package/lib/components/date-picker/CalendarBody.js +1 -1
  13. package/lib/components/date-picker/CalendarHeader.js +1 -1
  14. package/lib/components/date-picker/index.js +1 -1
  15. package/lib/components/date-range-picker/index.js +1 -1
  16. package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
  17. package/lib/components/eReport/eReportListEmpty.js +1 -1
  18. package/lib/components/eReport/eReportLists/reportList.js +1 -1
  19. package/lib/components/eReport/eReportShare/index.js +1 -1
  20. package/lib/components/eReport/eReportShare/toast/index.js +1 -1
  21. package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
  22. package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
  23. package/lib/components/emotions-selector/selector-content.js +1 -1
  24. package/lib/components/emotions-selector/selector-pop.js +1 -1
  25. package/lib/components/ereport-list/index.js +1 -1
  26. package/lib/components/error-boundary/index.js +1 -1
  27. package/lib/components/mblog/components/ConfirmPop.js +1 -1
  28. package/lib/components/mblog/components/MblogAction.js +1 -1
  29. package/lib/components/mblog/components/MblogContent.js +1 -1
  30. package/lib/components/mblog/index.js +1 -1
  31. package/lib/components/mblog/style.js +3 -3
  32. package/lib/components/okr-detail/auth.js +1 -1
  33. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
  34. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  35. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
  36. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
  37. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
  38. package/lib/components/okr-detail/detail-header/confirm.js +2 -1
  39. package/lib/components/okr-detail/detail-header/index.js +13 -10
  40. package/lib/components/okr-progress-modal/helper.js +59 -45
  41. package/lib/components/okr-progress-modal/index.js +19 -14
  42. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
  43. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
  44. package/lib/components/okr-review/ReviewPop/index.js +1 -1
  45. package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
  46. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
  47. package/lib/components/okr-review/index.js +1 -1
  48. package/lib/components/okr-share/index.js +7 -2
  49. package/lib/components/okrcase-library/index.css +3 -1
  50. package/lib/components/operation-records/OperationRecordItem.js +1 -1
  51. package/lib/components/operation-records/index.js +1 -1
  52. package/lib/components/part-notice/index.js +6 -0
  53. package/lib/components/part-notice/not-allow-data.js +10 -0
  54. package/lib/components/period-selector/common.js +18 -10
  55. package/lib/components/point-demo/input/index.js +1 -1
  56. package/lib/components/praise-record/PraiseRecordItem.js +1 -1
  57. package/lib/components/praise-record/index.js +1 -1
  58. package/lib/components/range-picker-pop/index.js +1 -1
  59. package/lib/components/range-selector-pop/RangeList.js +1 -1
  60. package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
  61. package/lib/components/select/Option.js +1 -1
  62. package/lib/components/select/index.js +1 -1
  63. package/lib/components/tita-chart/errorBoundary/index.js +1 -1
  64. package/lib/components/upload/components/uploadedPreview.js +1 -1
  65. package/lib/components/upload/index.js +1 -1
  66. package/lib/components/viewer/ImageListRender.js +1 -1
  67. package/lib/components/viewer/index.js +1 -1
  68. package/lib/components-v1/animate/AnimateChild.js +1 -1
  69. package/lib/components-v1/animate/animate.js +1 -1
  70. package/lib/components-v1/avatar/index.js +1 -1
  71. package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
  72. package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
  73. package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
  74. package/lib/components-v1/confirm/index.js +1 -1
  75. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
  76. package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
  77. package/lib/components-v1/input/Input.js +1 -1
  78. package/lib/components-v1/input/InputNumber.js +1 -1
  79. package/lib/components-v1/placement/placement.js +1 -1
  80. package/lib/components-v1/placement/placementInner.js +1 -1
  81. package/lib/components-v1/pop/Pop.js +1 -1
  82. package/lib/components-v1/pop/PopInner.js +1 -1
  83. package/lib/components-v1/portals/Portals.js +1 -1
  84. package/lib/components-v1/progress/CircleProgress.js +1 -1
  85. package/lib/components-v1/progress/LineProgress.js +1 -1
  86. package/lib/components-v1/progress/index.js +1 -1
  87. package/lib/components-v1/radio/radio.js +1 -1
  88. package/lib/components-v1/radio/radioGroup.js +1 -1
  89. package/lib/components-v1/search/index.js +1 -1
  90. package/lib/components-v1/select/Option.js +1 -1
  91. package/lib/components-v1/select/index.js +1 -1
  92. package/lib/components-v1/tabs/index.js +1 -1
  93. package/lib/components-v1/textarea/index.js +1 -1
  94. package/lib/components-v1/transition/index.js +1 -1
  95. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  96. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  97. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  98. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
  99. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  100. package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
  101. package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
  102. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  103. package/lib/components-v1/userSelector/components/UserItem.js +1 -1
  104. package/lib/components-v1/userSelector/index.js +1 -1
  105. package/lib/pages/appointment-demo/input/index.js +1 -1
  106. package/lib/pages/group-management/components/input-form/index.js +1 -1
  107. package/lib/pages/okr-map/export-modules/okr-map/header/index.css +12 -11
  108. package/lib/utils/auth.js +1 -1
  109. package/package.json +2 -1
  110. package/src/components/change-okr-modal/Item.tsx +22 -22
  111. package/src/components/change-okr-modal/styledComponents.ts +11 -5
  112. package/src/components/mblog/style.ts +6 -7
  113. package/src/components/okr-detail/detail-header/confirm.tsx +1 -1
  114. package/src/components/okr-detail/detail-header/index.tsx +19 -13
  115. package/src/components/okr-progress-modal/helper.js +49 -41
  116. package/src/components/okr-progress-modal/index.tsx +17 -16
  117. package/src/components/okr-share/index.tsx +9 -4
  118. package/src/components/okrcase-library/index.scss +9 -7
  119. package/src/components/part-notice/index.tsx +3 -0
  120. package/src/components/part-notice/not-allow-data.tsx +110 -0
  121. package/src/components/period-selector/common.ts +16 -10
  122. package/src/pages/okr-map/export-modules/okr-map/header/index.scss +24 -19
  123. package/yarn-error.log +103 -0
@@ -31,7 +31,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
31
31
 
32
32
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
33
 
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
34
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
35
 
36
36
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
37
 
@@ -49,7 +49,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
49
49
 
50
50
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
51
51
 
52
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
52
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
53
53
 
54
54
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
55
55
 
@@ -37,7 +37,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
37
37
 
38
38
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
39
 
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
40
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
41
 
42
42
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
43
 
@@ -51,7 +51,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
51
51
 
52
52
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
53
53
 
54
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
54
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
55
55
 
56
56
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
57
57
 
@@ -51,7 +51,8 @@ function OkrDetailHeaderConfirm(_ref) {
51
51
  }, []);
52
52
  return /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
53
53
  visible: visible,
54
- type: "warning"
54
+ type: "warning",
55
+ zIndex: 2400
55
56
  },
56
57
  /*#__PURE__*/
57
58
  // @ts-ignore
@@ -140,7 +140,7 @@ function OkrDetailHeader(_ref) {
140
140
  detailInfo: detailInfo,
141
141
  openShareModal: function () {
142
142
  var _openShareModal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
143
- var krs;
143
+ var krss;
144
144
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
145
145
  while (1) {
146
146
  switch (_context2.prev = _context2.next) {
@@ -151,8 +151,8 @@ function OkrDetailHeader(_ref) {
151
151
  });
152
152
 
153
153
  case 2:
154
- krs = _context2.sent;
155
- setKrs(krs);
154
+ krss = _context2.sent;
155
+ setKrs(krss);
156
156
  setShareVisible(true);
157
157
 
158
158
  case 5:
@@ -170,8 +170,11 @@ function OkrDetailHeader(_ref) {
170
170
  return openShareModal;
171
171
  }(),
172
172
  changeVisiblilty: function changeVisiblilty(visibility) {
173
- if (visibility == 4) {
174
- userSelectRef.current && userSelectRef.current.open();
173
+ if (visibility === 4) {
174
+ if (userSelectRef.current) {
175
+ userSelectRef.current.open();
176
+ }
177
+
175
178
  return;
176
179
  }
177
180
 
@@ -205,8 +208,7 @@ function OkrDetailHeader(_ref) {
205
208
  break;
206
209
  }
207
210
 
208
- if (!follow // @ts-ignore
209
- ) {
211
+ if (!follow) {
210
212
  _context3.next = 9;
211
213
  break;
212
214
  }
@@ -367,13 +369,13 @@ function OkrDetailHeader(_ref) {
367
369
  className: "tu-icon-liebiao-duiqinubiao"
368
370
  }), /*#__PURE__*/_react["default"].createElement("span", {
369
371
  onClick: function onClick() {
370
- return parent.type == "okr" ? _drawerManager["default"].open("okrDetail", {
372
+ return parent.type === "okr" ? _drawerManager["default"].open("okrDetail", {
371
373
  okrId: parent.id
372
374
  }) : _drawerManager["default"].open("krDetail", {
373
375
  krId: parent.id
374
376
  });
375
377
  }
376
- }, /*#__PURE__*/_react["default"].createElement("span", null, parent.type == "okr" ? "O " : "KR "), parent.name)) : null
378
+ }, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === "okr" ? "O " : "KR "), parent.name)) : null
377
379
  }), /*#__PURE__*/_react["default"].createElement(_okrShare["default"], {
378
380
  visible: shareVisible,
379
381
  onClose: closeShareModal,
@@ -389,7 +391,8 @@ function OkrDetailHeader(_ref) {
389
391
  src: detailInfo.principalUser.avatar.medium
390
392
  }
391
393
  })
392
- }
394
+ },
395
+ zIndex: 2400
393
396
  }), /*#__PURE__*/_react["default"].createElement(_titaUi.PopConfirm, {
394
397
  ref: popRef,
395
398
  showArrow: false,
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.transProgress = exports.getOptions = exports.getO_SETTING = exports.getKrOptions = exports.getKR_SETTING = void 0;
8
+ exports.transProgress = exports.getOptions = exports.getOSetting = exports.getKrSetting = exports.getKrOptions = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -15,7 +15,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
15
15
 
16
16
  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; }
17
17
 
18
- var getO_SETTING = function getO_SETTING() {
18
+ var getOSetting = function getOSetting() {
19
19
  return {
20
20
  settingTitle: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Setmatically"),
21
21
  switchLabel: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Setmatically"),
@@ -28,38 +28,45 @@ var getO_SETTING = function getO_SETTING() {
28
28
  key: 2,
29
29
  tooltip: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_SubO")
30
30
  }],
31
- getRecommandText: function getRecommandText() {
32
- var autoUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
33
- var updateWay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
34
- var recommandProgressObj = arguments.length > 2 ? arguments[2] : undefined;
31
+ getRecommandText: function getRecommandText(recommandProgressObj) {
32
+ var autoUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33
+ var updateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
35
34
 
36
35
  if (autoUpdate) {
37
- if (updateWay == 1) return /*#__PURE__*/_react["default"].createElement("span", {
36
+ if (updateWay === 1) return /*#__PURE__*/_react["default"].createElement("span", {
38
37
  className: "auto-update__recommand-tip"
39
38
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Automatic"));
40
- if (updateWay == 2) return /*#__PURE__*/_react["default"].createElement("span", {
39
+ if (updateWay === 2) return /*#__PURE__*/_react["default"].createElement("span", {
41
40
  className: "auto-update__recommand-tip"
42
41
  }, (0, _getLocale.getLocale)("OKR_MyO_calculationSubO"));
43
- } else {
44
- var childOkrProgress = recommandProgressObj.childOkrProgress,
45
- childkrProgress = recommandProgressObj.childkrProgress;
46
- var textArr = [];
47
- childkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_KRCom")).concat(childkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
48
- childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
49
- if (textArr.length == 0) return "";
50
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
51
- className: "auto-update__recommand-icon"
52
- }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
53
- className: "auto-update__recommand-tip"
54
- }, "\uFF08", textArr.join(","), "\uFF09"));
42
+ return /*#__PURE__*/_react["default"].createElement("span", null);
43
+ }
44
+
45
+ var childOkrProgress = recommandProgressObj.childOkrProgress,
46
+ childkrProgress = recommandProgressObj.childkrProgress;
47
+ var textArr = [];
48
+
49
+ if (childkrProgress !== -1) {
50
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_KRCom")).concat(childkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
55
51
  }
52
+
53
+ if (childOkrProgress !== -1) {
54
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
55
+ }
56
+
57
+ if (textArr.length === 0) return "";
58
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
59
+ className: "auto-update__recommand-icon"
60
+ }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
61
+ className: "auto-update__recommand-tip"
62
+ }, "\uFF08", textArr.join(","), "\uFF09"));
56
63
  }
57
64
  };
58
65
  };
59
66
 
60
- exports.getO_SETTING = getO_SETTING;
67
+ exports.getOSetting = getOSetting;
61
68
 
62
- var getKR_SETTING = function getKR_SETTING() {
69
+ var getKrSetting = function getKrSetting() {
63
70
  return {
64
71
  settingTitle: (0, _getLocale.getLocale)("OKR_MyO_KRCompletion"),
65
72
  switchLabel: (0, _getLocale.getLocale)("OKR_MyO_SetKRcompletion"),
@@ -72,42 +79,49 @@ var getKR_SETTING = function getKR_SETTING() {
72
79
  key: 2,
73
80
  tooltip: (0, _getLocale.getLocale)("OKR_MyO_KRcompletionde")
74
81
  }],
75
- getRecommandText: function getRecommandText() {
76
- var autoUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
77
- var updateWay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
78
- var recommandProgressObj = arguments.length > 2 ? arguments[2] : undefined;
82
+ getRecommandText: function getRecommandText(recommandProgressObj) {
83
+ var autoUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
84
+ var updateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
79
85
 
80
86
  if (autoUpdate) {
81
- if (updateWay == 1) return /*#__PURE__*/_react["default"].createElement("span", {
87
+ if (updateWay === 1) return /*#__PURE__*/_react["default"].createElement("span", {
82
88
  className: "auto-update__recommand-tip"
83
89
  }, (0, _getLocale.getLocale)("OKR_MyO_Automatic"));
84
- if (updateWay == 2) return /*#__PURE__*/_react["default"].createElement("span", {
90
+ if (updateWay === 2) return /*#__PURE__*/_react["default"].createElement("span", {
85
91
  className: "auto-update__recommand-tip"
86
92
  }, (0, _getLocale.getLocale)("OKR_MyO_calculationSubO"));
87
- } else {
88
- var childOkrProgress = recommandProgressObj.childOkrProgress,
89
- childEProgress = recommandProgressObj.childEProgress;
90
- var textArr = [];
91
- childEProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ecompletion")).concat(childEProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
92
- childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
93
- if (textArr.length == 0) return "";
94
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
95
- className: "auto-update__recommand-icon"
96
- }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
97
- className: "auto-update__recommand-tip",
98
- style: {
99
- marginLeft: 0
100
- }
101
- }, "(", textArr.join(","), ")"));
93
+ return /*#__PURE__*/_react["default"].createElement("span", null);
102
94
  }
95
+
96
+ var childOkrProgress = recommandProgressObj.childOkrProgress,
97
+ childEProgress = recommandProgressObj.childEProgress;
98
+ var textArr = [];
99
+
100
+ if (childEProgress !== -1) {
101
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ecompletion")).concat(childEProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
102
+ }
103
+
104
+ if (childOkrProgress !== -1) {
105
+ textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
106
+ }
107
+
108
+ if (textArr.length === 0) return "";
109
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
110
+ className: "auto-update__recommand-icon"
111
+ }, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
112
+ className: "auto-update__recommand-tip",
113
+ style: {
114
+ marginLeft: 0
115
+ }
116
+ }, "(", textArr.join(","), ")"));
103
117
  }
104
118
  };
105
119
  };
106
120
 
107
- exports.getKR_SETTING = getKR_SETTING;
121
+ exports.getKrSetting = getKrSetting;
108
122
 
109
123
  var transProgress = function transProgress(progress) {
110
- return progress == -1 ? 0 : progress;
124
+ return progress === -1 ? 0 : progress;
111
125
  };
112
126
 
113
127
  exports.transProgress = transProgress;
@@ -52,6 +52,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
52
52
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
 
54
54
  var ProgressModal = function ProgressModal(props) {
55
+ var _window, _window$BSGlobal, _window$BSGlobal$OkrA, _window$BSGlobal$OkrA2;
56
+
55
57
  var maxLength = props.maxLength,
56
58
  okrInfo = props.okrInfo,
57
59
  onClose = props.onClose,
@@ -60,7 +62,7 @@ var ProgressModal = function ProgressModal(props) {
60
62
  title = _props$title === void 0 ? window.getLocale("OKR_MyO_Prog_Butt_Update") : _props$title,
61
63
  visible = props.visible,
62
64
  isKr = props.isKr;
63
- var configure = isKr ? (0, _helper.getKR_SETTING)() : (0, _helper.getO_SETTING)();
65
+ var configure = isKr ? (0, _helper.getKrSetting)() : (0, _helper.getOSetting)();
64
66
  var reg = /^[0-9]*[1-9][0-9]*$/;
65
67
 
66
68
  var _useState = (0, _react.useState)(false),
@@ -95,11 +97,7 @@ var ProgressModal = function ProgressModal(props) {
95
97
  selected = _useState12[0],
96
98
  setSelected = _useState12[1];
97
99
 
98
- var _useState13 = (0, _react.useState)(function () {
99
- return (// @ts-ignore
100
- window.BSGlobal.OkrAdvancedSetting.KRSetting.ShowKrProgress
101
- );
102
- }),
100
+ var _useState13 = (0, _react.useState)((_window = window) === null || _window === void 0 ? void 0 : (_window$BSGlobal = _window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$OkrA = _window$BSGlobal.OkrAdvancedSetting) === null || _window$BSGlobal$OkrA === void 0 ? void 0 : (_window$BSGlobal$OkrA2 = _window$BSGlobal$OkrA.KRSetting) === null || _window$BSGlobal$OkrA2 === void 0 ? void 0 : _window$BSGlobal$OkrA2.ShowKrProgress),
103
101
  _useState14 = _slicedToArray(_useState13, 1),
104
102
  ShowKrProgress = _useState14[0];
105
103
 
@@ -136,11 +134,11 @@ var ProgressModal = function ProgressModal(props) {
136
134
  case 3:
137
135
  data = _context.sent;
138
136
 
139
- if (data.Code == 1) {
137
+ if (data.Code === 1) {
140
138
  _data$Data = data.Data, UpdateProgressWay = _data$Data.UpdateProgressWay, Progress = _data$Data.Progress;
141
139
  setRecommandProgressObj(data.Data);
142
- setUpdate(UpdateProgressWay != 0);
143
- setUpdateWay(UpdateProgressWay == 0 ? 1 : UpdateProgressWay);
140
+ setUpdate(UpdateProgressWay !== 0);
141
+ setUpdateWay(UpdateProgressWay === 0 ? 1 : UpdateProgressWay);
144
142
  setProgress(Progress);
145
143
  }
146
144
 
@@ -169,8 +167,14 @@ var ProgressModal = function ProgressModal(props) {
169
167
  var childOkrProgress = recommandProgressObj.childOkrProgress,
170
168
  childkrProgress = recommandProgressObj.childkrProgress,
171
169
  childEProgress = recommandProgressObj.childEProgress;
172
- updateWay == 1 && setProgress(isKr ? (0, _helper.transProgress)(childEProgress) : (0, _helper.transProgress)(childkrProgress));
173
- updateWay == 2 && setProgress((0, _helper.transProgress)(childOkrProgress));
170
+
171
+ if (updateWay === 1) {
172
+ setProgress(isKr ? (0, _helper.transProgress)(childEProgress) : (0, _helper.transProgress)(childkrProgress));
173
+ }
174
+
175
+ if (updateWay === 2) {
176
+ setProgress((0, _helper.transProgress)(childOkrProgress));
177
+ }
174
178
  }, [updateWay, autoUpdate, recommandProgressObj]);
175
179
 
176
180
  var descriptionText = /*#__PURE__*/_react["default"].createElement(_style.Item, null, /*#__PURE__*/_react["default"].createElement("span", {
@@ -229,7 +233,8 @@ var ProgressModal = function ProgressModal(props) {
229
233
  okDisabled: errorProgress || errorRemark,
230
234
  title: title,
231
235
  visible: visible,
232
- width: 600
236
+ width: 600,
237
+ zIndex: 2400
233
238
  }, /*#__PURE__*/_react["default"].createElement(_style.List, null, /*#__PURE__*/_react["default"].createElement(_style.Item, null, /*#__PURE__*/_react["default"].createElement("span", {
234
239
  className: "auto-update__item-label"
235
240
  }, (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Progresss1")), /*#__PURE__*/_react["default"].createElement("div", {
@@ -259,7 +264,7 @@ var ProgressModal = function ProgressModal(props) {
259
264
  }
260
265
  }, /*#__PURE__*/_react["default"].createElement(_style.Icon, {
261
266
  color: option.color,
262
- className: selected == option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
267
+ className: selected === option.id ? "tu-icon-singlebox-avtive" : "tu-icon-singlebox-have"
263
268
  }), /*#__PURE__*/_react["default"].createElement("p", null, option.text));
264
269
  }))), descriptionText, /*#__PURE__*/_react["default"].createElement("div", {
265
270
  className: "auto-update-setting"
@@ -278,7 +283,7 @@ var ProgressModal = function ProgressModal(props) {
278
283
  },
279
284
  className: "auto-update-setting__option"
280
285
  }, /*#__PURE__*/_react["default"].createElement("span", {
281
- className: (0, _classnames["default"])("auto-update-setting__radio", "auto-update-setting__radio".concat(updateWay == option.key ? "--selected" : ""))
286
+ className: (0, _classnames["default"])("auto-update-setting__radio", "auto-update-setting__radio".concat(updateWay === option.key ? "--selected" : ""))
282
287
  }), /*#__PURE__*/_react["default"].createElement("span", null, option.label), /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
283
288
  content: option.tooltip,
284
289
  container: document.body,
@@ -65,7 +65,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
65
65
 
66
66
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
67
67
 
68
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
68
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
69
69
 
70
70
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
71
71
 
@@ -21,7 +21,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
21
21
 
22
22
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
23
 
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
24
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
@@ -39,7 +39,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
39
39
 
40
40
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
41
41
 
42
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
42
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
43
43
 
44
44
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
45
 
@@ -25,7 +25,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
25
25
 
26
26
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
27
 
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
28
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
30
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -43,7 +43,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
43
43
 
44
44
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
45
45
 
46
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
46
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
47
47
 
48
48
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
49
49
 
@@ -76,7 +76,8 @@ var ShareContent = function ShareContent(_ref) {
76
76
  var OkrShare = function OkrShare(_ref2) {
77
77
  var data = _ref2.data,
78
78
  visible = _ref2.visible,
79
- onClose = _ref2.onClose;
79
+ onClose = _ref2.onClose,
80
+ zIndex = _ref2.zIndex;
80
81
  var modalRef = (0, _react.useRef)();
81
82
  return /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
82
83
  visible: visible,
@@ -87,7 +88,8 @@ var OkrShare = function OkrShare(_ref2) {
87
88
  onCancel: function onCancel() {
88
89
  return onClose();
89
90
  },
90
- ref: modalRef
91
+ ref: modalRef,
92
+ zIndex: zIndex
91
93
  }, visible ? /*#__PURE__*/_react["default"].createElement(ShareContent, {
92
94
  closeModal: function closeModal() {
93
95
  return onClose();
@@ -99,5 +101,8 @@ var OkrShare = function OkrShare(_ref2) {
99
101
  }) : null);
100
102
  };
101
103
 
104
+ OkrShare.defaultProps = {
105
+ zIndex: 1300
106
+ };
102
107
  var _default = OkrShare;
103
108
  exports["default"] = _default;
@@ -140,7 +140,7 @@
140
140
  }
141
141
 
142
142
  .okr-cases-library__navFirst__item-active::after {
143
- content: "";
143
+ content: '';
144
144
  position: absolute;
145
145
  bottom: -14px;
146
146
  left: 0;
@@ -277,6 +277,7 @@
277
277
  }
278
278
 
279
279
  .okr-cases-library__cardList__card__title__btn {
280
+ font-size: 14px;
280
281
  position: absolute;
281
282
  right: 15px;
282
283
  top: 60px;
@@ -289,6 +290,7 @@
289
290
  cursor: pointer;
290
291
  opacity: 0;
291
292
  transition: all 0.5s;
293
+ font-weight: 500;
292
294
  }
293
295
 
294
296
  .okr-cases-library__cardList__card__title__btn-show {
@@ -27,7 +27,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
27
27
 
28
28
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
29
 
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
32
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
@@ -33,7 +33,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
33
33
 
34
34
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
35
 
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
37
 
38
38
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
39
 
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _localStorage = require("../../utils/local-storage");
13
13
 
14
+ var _notAllowData = require("./not-allow-data");
15
+
14
16
  require("./index.css");
15
17
 
16
18
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -31,6 +33,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
33
 
32
34
  var preCls = "part-notice";
33
35
  var storage = new _localStorage.LocalStorage();
36
+ var tenantId = window.BSGlobal.tenantInfo.Id;
34
37
 
35
38
  var PartNotice = function PartNotice(_ref) {
36
39
  var storageName = _ref.storageName,
@@ -69,6 +72,9 @@ var PartNotice = function PartNotice(_ref) {
69
72
  window.open(link, "_target");
70
73
  };
71
74
 
75
+ if (!_notAllowData.notAllowData.find(function (item) {
76
+ return item === tenantId;
77
+ })) return /*#__PURE__*/_react["default"].createElement("span", null);
72
78
  if (!visible) return /*#__PURE__*/_react["default"].createElement("span", null);
73
79
  return /*#__PURE__*/_react["default"].createElement("div", {
74
80
  className: "".concat(preCls)
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.notAllowData = exports["default"] = void 0;
7
+ var notAllowData = [366131, 307425, 386434, 318995, 516911, 520530, 529247, 283929, 521974, 525553, 524783, 533197, 506389, 541245, 265530, 542555, 322665, 388103, 523558, 521070, 547650, 527324, 543000, 536771, 377798, 548066, 541479, 538509, 509148, 383549, 533456, 395251, 516682, 546877, 521818, 552965, 551336, 518051, 544736, 552455, 534044, 529329, 554018, 518791, 392024, 553462, 504585, 551576, 547861, 504087, 555603, 526408, 536559, 555641, 553800, 553083, 554654, 552158, 542587, 379998, 510788, 553836, 529906, 511358, 551913, 543085, 514568, 397292, 556796, 538802, 546456, 549378, 542520, 560327, 548612, 522327, 555225, 530370, 565991, 547082, 564585, 535986, 502385, 391420, 560552, 558317, 564416, 552974, 318867, 570075, 560793, 565994, 533855, 375844, 549354, 571823, 537982, 528567, 568168, 569066, 515852, 566360, 548969, 553532, 352728, 562259, 521375];
8
+ exports.notAllowData = notAllowData;
9
+ var _default = notAllowData;
10
+ exports["default"] = _default;