@titaui/pc 1.16.90 → 1.16.92-beta.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/lib/components/checkbox/index.css +10 -1
  2. package/lib/components/checkbox/index.js +7 -2
  3. package/lib/components/checkbox/part-checked.svg +16 -0
  4. package/lib/components/dynamic/components/new-upvote-item/attitude.js +35 -0
  5. package/lib/components/dynamic/components/new-upvote-item/img/666.svg +102 -0
  6. package/lib/components/dynamic/components/new-upvote-item/img/bixin.svg +71 -0
  7. package/lib/components/dynamic/components/new-upvote-item/img/fighting.svg +152 -0
  8. package/lib/components/dynamic/components/new-upvote-item/img/nice.svg +108 -0
  9. package/lib/components/dynamic/components/new-upvote-item/img/thumb-up.svg +130 -0
  10. package/lib/components/dynamic/components/new-upvote-item/img/welldone.svg +59 -0
  11. package/lib/components/dynamic/components/new-upvote-item/index.css +32 -0
  12. package/lib/components/dynamic/components/new-upvote-item/index.js +39 -0
  13. package/lib/components/dynamic/dynamic-item/components/footer-left/index.css +21 -0
  14. package/lib/components/dynamic/dynamic-item/components/footer-left/index.js +63 -0
  15. package/lib/components/dynamic/dynamic-item/index.css +0 -8
  16. package/lib/components/dynamic/dynamic-item/index.js +5 -27
  17. package/lib/components/form/form-fields/radios/index.js +5 -2
  18. package/lib/components/guide-tip/index.js +9 -5
  19. package/lib/components/keyword-search/index.css +1 -0
  20. package/lib/components/menus/components/menu-tree/images/appraisal-menu/launch.svg +1 -16
  21. package/lib/components/menus/components/menu-tree/images/appraisal-menu/setting.svg +1 -16
  22. package/lib/components/menus/components/menu-tree/images/survey-menu/share-mine.png +0 -0
  23. package/lib/components/menus/components/menu-tree/tree-node/assess-manage.js +41 -6
  24. package/lib/components/menus/components/menu-tree/tree-node/index.css +30 -2
  25. package/lib/components/menus/components/search-colleague/index.css +21 -1
  26. package/lib/components/menus/components/search-colleague/index.js +24 -41
  27. package/lib/components/menus/export-modules/appraisal-menus/index.js +10 -7
  28. package/lib/components/menus/export-modules/appraisal-menus/menus.js +14 -14
  29. package/lib/components/menus/export-modules/interview-menus/index.js +10 -7
  30. package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +8 -0
  31. package/lib/components/menus/export-modules/survey-menu/menus.js +10 -1
  32. package/lib/components/nav-top/index.js +2 -1
  33. package/lib/components/new-upvote-item/attitude.js +35 -0
  34. package/lib/components/new-upvote-item/img/666.svg +102 -0
  35. package/lib/components/new-upvote-item/img/bixin.svg +71 -0
  36. package/lib/components/new-upvote-item/img/fighting.svg +152 -0
  37. package/lib/components/new-upvote-item/img/nice.svg +108 -0
  38. package/lib/components/new-upvote-item/img/thumb-up.svg +130 -0
  39. package/lib/components/new-upvote-item/img/welldone.svg +59 -0
  40. package/lib/components/new-upvote-item/index.css +32 -0
  41. package/lib/components/new-upvote-item/index.js +39 -0
  42. package/lib/components/okr-detail/components/ao-nice/index.css +1 -1
  43. package/lib/components/okr-detail/components/ao-nice/index.js +5 -9
  44. package/lib/components/radio/index.css +1 -1
  45. package/lib/components/regulation-setting-item/index.css +6 -6
  46. package/lib/components/regulation-setting-item/index.js +1 -1
  47. package/lib/components/switch/index.css +5 -0
  48. package/lib/components/switch/index.js +3 -3
  49. package/lib/components/switch/rc-switch.css +3 -3
  50. package/lib/components/table/index.js +9 -3
  51. package/lib/components/toast/components/SuccessRender.js +1 -1
  52. package/lib/components/unchain-okr-modal/img/bg.png +0 -0
  53. package/lib/components/unchain-okr-modal/img/close.png +0 -0
  54. package/lib/components/unchain-okr-modal/index.css +34 -0
  55. package/lib/components/unchain-okr-modal/index.js +110 -0
  56. package/lib/components/unchain-okr-modal/request-api.js +14 -0
  57. package/lib/components-v1/radio/radio.js +25 -25
  58. package/lib/components-v1/radio/style/index.css +44 -12
  59. package/lib/index.js +7 -0
  60. package/package.json +1 -1
@@ -6,21 +6,56 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = _default;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _classnames = _interopRequireDefault(require("classnames"));
9
- var _precls = _interopRequireDefault(require("../precls"));
10
9
  var _bsGlobal = require("../../../../../utils/bs-global");
10
+ var _guideTip = _interopRequireDefault(require("../../../../guide-tip"));
11
+ var _useLocalStorage3 = _interopRequireDefault(require("../../../../../hooks/useLocalStorage"));
12
+ var _precls = _interopRequireDefault(require("../precls"));
11
13
  require("./index.css");
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
- var i18nInfo = (0, _bsGlobal.getBSGlobal)("I18NInfo");
14
- var isZn = !i18nInfo || i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === "zh_CN";
15
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
18
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
19
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+ var i18nInfo = (0, _bsGlobal.getBSGlobal)('I18NInfo');
22
+ var isZn = !i18nInfo || i18nInfo && i18nInfo.I18NOpen && i18nInfo.I18NUserLang === 'zh_CN';
15
23
  function _default(props) {
16
24
  var data = props.data,
17
25
  level = props.level;
26
+ var _useLocalStorage = (0, _useLocalStorage3["default"])('guideTipVisible', 'tita-performance__navigation-guide', true),
27
+ _useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
28
+ guideTipVisible = _useLocalStorage2[0],
29
+ setGuideTipVisible = _useLocalStorage2[1];
30
+ var onGuideTipHide = function onGuideTipHide() {
31
+ return setGuideTipVisible(false);
32
+ };
18
33
  var onNodeClickHandler = function onNodeClickHandler() {
19
34
  if (data.href) {
20
35
  window.location.href = data.href;
21
36
  }
22
37
  };
23
- return /*#__PURE__*/_react["default"].createElement("div", {
38
+ return /*#__PURE__*/_react["default"].createElement(_guideTip["default"], {
39
+ arrowStyle: {
40
+ marginTop: '-4px'
41
+ },
42
+ content: /*#__PURE__*/_react["default"].createElement("span", {
43
+ style: {
44
+ color: '#ffffff'
45
+ }
46
+ }, "\u8003\u6838\u6A21\u677F\u548C\u8003\u6838\u7BA1\u7406\u8C03\u6574\u4F4D\u7F6E\u4E86\u54E6~"),
47
+ onClickClose: onGuideTipHide,
48
+ popupAlign: {
49
+ offset: [0, 20],
50
+ overflow: {
51
+ adjustX: 1,
52
+ adjustY: 1
53
+ }
54
+ },
55
+ popupPlacement: "right",
56
+ visible: guideTipVisible,
57
+ width: 182
58
+ }, /*#__PURE__*/_react["default"].createElement("div", {
24
59
  className: (0, _classnames["default"])("".concat(_precls["default"], "__ass-manage-node")),
25
60
  onClick: onNodeClickHandler,
26
61
  title: ""
@@ -29,8 +64,8 @@ function _default(props) {
29
64
  }), data.icon && /*#__PURE__*/_react["default"].createElement("span", {
30
65
  className: (0, _classnames["default"])("".concat(_precls["default"], "__ass-manage-node-icon"), data.icon)
31
66
  }), /*#__PURE__*/_react["default"].createElement("span", {
32
- className: (0, _classnames["default"])("".concat(_precls["default"], "__ass-manage-node-title"), "noselect")
67
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__ass-manage-node-title"), 'noselect')
33
68
  }, props.title), isZn && /*#__PURE__*/_react["default"].createElement("span", {
34
69
  className: (0, _classnames["default"])("".concat(_precls["default"], "__ass-manage-node-suffix"))
35
- }));
70
+ })));
36
71
  }
@@ -198,6 +198,10 @@
198
198
  background-image: url("../images/skynet-dataset-menu/dataset-plan.svg");
199
199
  }
200
200
 
201
+ .titaui-menus-tree__sub-menu-item-node-icon.survey-share-mine {
202
+ background-image: url("../images/survey-menu/share-mine.png");
203
+ }
204
+
201
205
  .titaui-menus-tree__sub-menu-item-node-icon.survey-templated {
202
206
  background-image: url("../images/survey-menu/template.svg");
203
207
  }
@@ -370,6 +374,10 @@
370
374
  background-image: url("../images/skynet-dataset-menu/dataset-plan.svg");
371
375
  }
372
376
 
377
+ .titaui-menus-tree__menu-item-node-icon.survey-share-mine {
378
+ background-image: url("../images/survey-menu/share-mine.png");
379
+ }
380
+
373
381
  .titaui-menus-tree__menu-item-node-icon.survey-templated {
374
382
  background-image: url("../images/survey-menu/template.svg");
375
383
  }
@@ -542,6 +550,10 @@
542
550
  background-image: url("../images/skynet-dataset-menu/dataset-plan.svg");
543
551
  }
544
552
 
553
+ .titaui-menus-tree__parent-menu-node-icon.survey-share-mine {
554
+ background-image: url("../images/survey-menu/share-mine.png");
555
+ }
556
+
545
557
  .titaui-menus-tree__parent-menu-node-icon.survey-templated {
546
558
  background-image: url("../images/survey-menu/template.svg");
547
559
  }
@@ -786,6 +798,10 @@
786
798
  background-image: url("../images/skynet-dataset-menu/dataset-plan.svg");
787
799
  }
788
800
 
801
+ .titaui-menus-tree__company-all-node-icon.survey-share-mine {
802
+ background-image: url("../images/survey-menu/share-mine.png");
803
+ }
804
+
789
805
  .titaui-menus-tree__company-all-node-icon.survey-templated {
790
806
  background-image: url("../images/survey-menu/template.svg");
791
807
  }
@@ -958,6 +974,10 @@
958
974
  background-image: url("../images/skynet-dataset-menu/dataset-plan.svg");
959
975
  }
960
976
 
977
+ .titaui-menus-tree__ass-template-node-icon.survey-share-mine {
978
+ background-image: url("../images/survey-menu/share-mine.png");
979
+ }
980
+
961
981
  .titaui-menus-tree__ass-template-node-icon.survey-templated {
962
982
  background-image: url("../images/survey-menu/template.svg");
963
983
  }
@@ -965,7 +985,7 @@
965
985
  .titaui-menus-tree__ass-template-node-suffix {
966
986
  display: inline-block;
967
987
  height: 18px;
968
- width: 36px;
988
+ width: 48px;
969
989
  margin-left: 8px;
970
990
  background-image: url("../images/appraisal-menu/setting.svg");
971
991
  background-size: contain;
@@ -1140,6 +1160,10 @@
1140
1160
  background-image: url("../images/skynet-dataset-menu/dataset-plan.svg");
1141
1161
  }
1142
1162
 
1163
+ .titaui-menus-tree__ass-manage-node-icon.survey-share-mine {
1164
+ background-image: url("../images/survey-menu/share-mine.png");
1165
+ }
1166
+
1143
1167
  .titaui-menus-tree__ass-manage-node-icon.survey-templated {
1144
1168
  background-image: url("../images/survey-menu/template.svg");
1145
1169
  }
@@ -1147,7 +1171,7 @@
1147
1171
  .titaui-menus-tree__ass-manage-node-suffix {
1148
1172
  display: inline-block;
1149
1173
  height: 18px;
1150
- width: 36px;
1174
+ width: 48px;
1151
1175
  margin-left: 8px;
1152
1176
  background-image: url("../images/appraisal-menu/launch.svg");
1153
1177
  background-size: contain;
@@ -1323,6 +1347,10 @@
1323
1347
  background-image: url("../images/skynet-dataset-menu/dataset-plan.svg");
1324
1348
  }
1325
1349
 
1350
+ .titaui-menus-tree__user-concern-node-icon.survey-share-mine {
1351
+ background-image: url("../images/survey-menu/share-mine.png");
1352
+ }
1353
+
1326
1354
  .titaui-menus-tree__user-concern-node-icon.survey-templated {
1327
1355
  background-image: url("../images/survey-menu/template.svg");
1328
1356
  }
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  .titaui-menus__search-input-inner--active {
22
- border-color: #2879FF;
22
+ border-color: #2879ff;
23
23
  }
24
24
 
25
25
  .titaui-menus__search-input-inner .tu-icon-search {
@@ -57,3 +57,23 @@
57
57
  /* Internet Explorer 10+ */
58
58
  color: #bfc7d5;
59
59
  }
60
+
61
+ .titaui-menus__search-user {
62
+ display: inline-block;
63
+ vertical-align: middle;
64
+ width: calc(100% - 8px);
65
+ height: 22px;
66
+ line-height: 24px;
67
+ text-align: left;
68
+ }
69
+
70
+ .titaui-menus__search-user > span {
71
+ width: 100%;
72
+ overflow: hidden;
73
+ }
74
+
75
+ .titaui-menus__search-user-tips {
76
+ display: inline-block;
77
+ width: 100%;
78
+ color: #bfc7d5;
79
+ }
@@ -10,12 +10,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var Bowser = _interopRequireWildcard(require("bowser"));
11
11
  var _i18n = require("../../i18n");
12
12
  var _userSelector = _interopRequireDefault(require("../../../user-selector"));
13
+ var _openData = require("../../../../utils/open-data");
13
14
  var _precls = _interopRequireDefault(require("../../precls"));
14
15
  require("./index.css");
15
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
17
  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); }
17
18
  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; }
18
- 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; }
19
19
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
20
20
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
21
21
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -27,22 +27,18 @@ function _default(props) {
27
27
  placeholder = _props$placeholder === void 0 ? window.getLocale && window.getLocale(_i18n.locale.input_search_user) || _i18n.locale.input_search_user : _props$placeholder,
28
28
  onSelect = props.onSelect;
29
29
  var selectorRef = (0, _react.useRef)();
30
- var _useState = (0, _react.useState)(""),
30
+ var _useState = (0, _react.useState)(),
31
31
  _useState2 = _slicedToArray(_useState, 2),
32
- searchVal = _useState2[0],
33
- setSearchVal = _useState2[1];
34
- var _useState3 = (0, _react.useState)(false),
35
- _useState4 = _slicedToArray(_useState3, 2),
36
- isActive = _useState4[0],
37
- setIsActive = _useState4[1];
38
- var _useState5 = (0, _react.useState)(function () {
32
+ selectUser = _useState2[0],
33
+ setSelectUser = _useState2[1];
34
+ var _useState3 = (0, _react.useState)(function () {
39
35
  try {
40
36
  var browser = Bowser.getParser(window.navigator.userAgent);
41
37
  var browserInfo = browser.getBrowser();
42
38
  var name = browserInfo.name;
43
39
  if (
44
40
  // safari 浏览器上兼容选人组件下拉的位置
45
- (name || "").toLowerCase() == "wechat" || (name || "").toLowerCase() == "safari") {
41
+ (name || '').toLowerCase() == 'wechat' || (name || '').toLowerCase() == 'safari') {
46
42
  return [140, 2];
47
43
  }
48
44
  return [62, 2];
@@ -51,57 +47,44 @@ function _default(props) {
51
47
  return [62, 2];
52
48
  }
53
49
  }),
54
- _useState6 = _slicedToArray(_useState5, 1),
55
- userSelectOffset = _useState6[0];
56
- var handleInputChange = function handleInputChange(e) {
57
- setSearchVal(e.target.value);
58
- selectorRef.current && selectorRef.current.open();
59
- };
50
+ _useState4 = _slicedToArray(_useState3, 1),
51
+ userSelectOffset = _useState4[0];
60
52
  var handleSelected = function handleSelected(_ref) {
61
53
  var _ref2 = _slicedToArray(_ref, 1),
62
54
  user = _ref2[0];
63
- setSearchVal(user.title);
55
+ setSelectUser(user.data);
64
56
  onSelect(user);
65
57
  };
66
- var onInputFocusHandler = function onInputFocusHandler(e) {
67
- e.stopPropagation();
68
- setIsActive(true);
69
- };
70
- var onInputBlurHandler = function onInputBlurHandler(e) {
71
- e.stopPropagation();
72
- setIsActive(false);
73
- };
74
58
  return /*#__PURE__*/_react["default"].createElement("div", {
75
- className: (0, _classnames["default"])("".concat(_precls["default"], "__search-input"), "noselect")
59
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__search-input"), 'noselect')
76
60
  }, /*#__PURE__*/_react["default"].createElement("div", {
77
- className: (0, _classnames["default"])("".concat(_precls["default"], "__search-input-inner"), _defineProperty({}, "".concat(_precls["default"], "__search-input-inner--active"), isActive))
61
+ className: "".concat(_precls["default"], "__search-input-inner")
78
62
  }, /*#__PURE__*/_react["default"].createElement("span", {
79
63
  className: "tu-icon-search"
80
- }), /*#__PURE__*/_react["default"].createElement("input", {
81
- placeholder: placeholder,
82
- onChange: handleInputChange,
83
- onFocus: onInputFocusHandler,
84
- onBlur: onInputBlurHandler,
85
- value: searchVal
86
- })), /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
64
+ }), /*#__PURE__*/_react["default"].createElement("span", {
65
+ className: "".concat(_precls["default"], "__search-user")
66
+ }, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
87
67
  ref: selectorRef,
88
68
  multiple: false,
89
69
  position: "bottom",
90
70
  onSelect: handleSelected,
91
71
  disabledDepartSelect: true,
92
- showSearchInput: false,
72
+ panes: {
73
+ depart: true
74
+ },
93
75
  searchedPanes: {
94
76
  user: true,
95
77
  depart: false,
96
78
  group: false
97
79
  },
98
- searchWord: searchVal,
99
- trigger: /*#__PURE__*/_react["default"].createElement("span", null),
100
- panes: {
101
- depart: true
102
- },
80
+ trigger: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, selectUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
81
+ name: selectUser.name,
82
+ id: selectUser.userId
83
+ }), !selectUser && /*#__PURE__*/_react["default"].createElement("span", {
84
+ className: "".concat(_precls["default"], "__search-user-tips")
85
+ }, placeholder)),
103
86
  popupAlign: {
104
87
  offset: userSelectOffset
105
88
  }
106
- }));
89
+ }))));
107
90
  }
@@ -59,13 +59,16 @@ function AppraisalMenus(props) {
59
59
  (0, _react.useEffect)(function () {
60
60
  okrMenusData.current = new _menus["default"]();
61
61
  var newMenus = okrMenusData.current.getMenus();
62
- setMenus(newMenus);
63
- var _getQueryString = (0, _tools.getQueryString)(),
64
- _getQueryString$react = _getQueryString.reactRouterName,
65
- reactRouterName = _getQueryString$react === void 0 ? '' : _getQueryString$react;
66
- var isAppraisalPage = window.location.hash.startsWith('#/performance');
67
- if (!reactRouterName && isAppraisalPage) {
68
- window.location.href = newMenus[0].data.href;
62
+ var menuSize = newMenus.length;
63
+ if (menuSize > 0) {
64
+ setMenus(newMenus);
65
+ var _getQueryString = (0, _tools.getQueryString)(),
66
+ _getQueryString$react = _getQueryString.reactRouterName,
67
+ reactRouterName = _getQueryString$react === void 0 ? '' : _getQueryString$react;
68
+ var isAppraisalPage = window.location.hash.startsWith('#/performance');
69
+ if (!reactRouterName && isAppraisalPage) {
70
+ window.location.href = newMenus[0].data.href;
71
+ }
69
72
  }
70
73
  }, [history.location.pathname]);
71
74
 
@@ -88,13 +88,6 @@ var AppraisalMenus = /*#__PURE__*/function () {
88
88
  type: _index.GROUP_NAME_NODE,
89
89
  href: '',
90
90
  isShow: performanceManageAuthority || performanceStatisticsAuthority
91
- }, {
92
- icon: 'uniEA10',
93
- label: _i18n.locale.menu_template_ass,
94
- key: PAGE_TEMPLATE_APPRAISAL,
95
- type: _index.MENU_ASSESS_TEMPLATE,
96
- href: '#/performance?reactRouterName=template',
97
- isShow: performanceManageAuthority
98
91
  }, {
99
92
  icon: 'untitled',
100
93
  label: _i18n.locale.menu_management_ass,
@@ -102,6 +95,13 @@ var AppraisalMenus = /*#__PURE__*/function () {
102
95
  type: _index.MENU_ASSESS_MANAGE,
103
96
  href: '#/performance?reactRouterName=manage',
104
97
  isShow: performanceManageAuthority
98
+ }, {
99
+ icon: 'uniEA10',
100
+ label: _i18n.locale.menu_template_ass,
101
+ key: PAGE_TEMPLATE_APPRAISAL,
102
+ type: _index.MENU_ASSESS_TEMPLATE,
103
+ href: '#/performance?reactRouterName=template',
104
+ isShow: performanceManageAuthority
105
105
  }, {
106
106
  icon: 'yibiao',
107
107
  label: _i18n.locale.menu_dashboard_ass,
@@ -167,19 +167,19 @@ var AppraisalMenus = /*#__PURE__*/function () {
167
167
  isShow: IsLeader || IsHrbp
168
168
  }],
169
169
  performanceManage: [{
170
- icon: 'uniEA10',
171
- label: _i18n.locale.menu_template_ass,
172
- key: PAGE_TEMPLATE_APPRAISAL,
173
- type: _index.MENU_ASSESS_TEMPLATE,
174
- href: '#/performance/manage?reactRouterName=template',
175
- isShow: performanceManageAuthority
176
- }, {
177
170
  icon: 'untitled',
178
171
  label: _i18n.locale.menu_management_ass,
179
172
  key: PAGE_MANAGE_APPRAISAL,
180
173
  type: _index.MENU_ASSESS_MANAGE,
181
174
  href: '#/performance/manage?reactRouterName=manage',
182
175
  isShow: performanceManageAuthority
176
+ }, {
177
+ icon: 'uniEA10',
178
+ label: _i18n.locale.menu_template_ass,
179
+ key: PAGE_TEMPLATE_APPRAISAL,
180
+ type: _index.MENU_ASSESS_TEMPLATE,
181
+ href: '#/performance/manage?reactRouterName=template',
182
+ isShow: performanceManageAuthority
183
183
  }, {
184
184
  icon: '',
185
185
  label: _i18n.locale.menu_basesetting,
@@ -56,13 +56,16 @@ function InterviewMenus(props) {
56
56
  (0, _react.useEffect)(function () {
57
57
  interviewMenusData.current = new _menus["default"]();
58
58
  var newMenus = interviewMenusData.current.getMenus();
59
- setMenus(newMenus);
60
- var _getQueryString = (0, _tools.getQueryString)(),
61
- _getQueryString$react = _getQueryString.reactRouterName,
62
- reactRouterName = _getQueryString$react === void 0 ? '' : _getQueryString$react;
63
- var isInterviewPage = window.location.hash.indexOf('interview') != -1;
64
- if (!reactRouterName && isInterviewPage) {
65
- window.location.href = newMenus[0].data.href;
59
+ var menuSize = newMenus.length;
60
+ if (menuSize > 0) {
61
+ setMenus(newMenus);
62
+ var _getQueryString = (0, _tools.getQueryString)(),
63
+ _getQueryString$react = _getQueryString.reactRouterName,
64
+ reactRouterName = _getQueryString$react === void 0 ? '' : _getQueryString$react;
65
+ var isInterviewPage = window.location.hash.indexOf('interview') != -1;
66
+ if (!reactRouterName && isInterviewPage) {
67
+ window.location.href = newMenus[0].data.href;
68
+ }
66
69
  }
67
70
  }, [history.location.pathname]);
68
71
  (0, _react.useEffect)(function () {
@@ -21,6 +21,8 @@ var _default = /*#__PURE__*/function () {
21
21
  cb(_menus.PAGE_SURVEY_MANAGE);
22
22
  } else if (this.isMyInvolved()) {
23
23
  cb(_menus.PAGE_SURVEY_MY_INVOLVED);
24
+ } else if (this.isAssessShareMine()) {
25
+ cb(_menus.PAGE_SURVEY_SHARE_MINE);
24
26
  } else if (this.isAssessTemplated()) {
25
27
  cb(_menus.PAGE_SURVEY_TEMPLATED);
26
28
  } else if (this.isAssessSettings()) {
@@ -40,6 +42,12 @@ var _default = /*#__PURE__*/function () {
40
42
  var pathname = this.history.location.pathname;
41
43
  return pathname.match(/survey\/manage/);
42
44
  }
45
+ }, {
46
+ key: "isAssessShareMine",
47
+ value: function isAssessShareMine() {
48
+ var pathname = this.history.location.pathname;
49
+ return pathname.match(/survey\/share-mine/);
50
+ }
43
51
  }, {
44
52
  key: "isAssessTemplated",
45
53
  value: function isAssessTemplated() {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.defaultRefObject = exports["default"] = exports.PAGE_SURVEY_TEMPLATED = exports.PAGE_SURVEY_MY_INVOLVED = exports.PAGE_SURVEY_MANAGE = exports.PAGE_SURVEY_ASSESS_SETTINGS = void 0;
6
+ exports.defaultRefObject = exports["default"] = exports.PAGE_SURVEY_TEMPLATED = exports.PAGE_SURVEY_SHARE_MINE = exports.PAGE_SURVEY_MY_INVOLVED = exports.PAGE_SURVEY_MANAGE = exports.PAGE_SURVEY_ASSESS_SETTINGS = void 0;
7
7
  var _index = require("../../components/menu-tree/tree-node/index");
8
8
  var _getLocale = require("../../../../utils/getLocale");
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -18,6 +18,8 @@ var PAGE_SURVEY_MANAGE = 'surveymanage';
18
18
  exports.PAGE_SURVEY_MANAGE = PAGE_SURVEY_MANAGE;
19
19
  var PAGE_SURVEY_MY_INVOLVED = 'surveymyinvolved';
20
20
  exports.PAGE_SURVEY_MY_INVOLVED = PAGE_SURVEY_MY_INVOLVED;
21
+ var PAGE_SURVEY_SHARE_MINE = 'surveysharemine';
22
+ exports.PAGE_SURVEY_SHARE_MINE = PAGE_SURVEY_SHARE_MINE;
21
23
  var PAGE_SURVEY_TEMPLATED = 'surveytemplated';
22
24
  exports.PAGE_SURVEY_TEMPLATED = PAGE_SURVEY_TEMPLATED;
23
25
  var PAGE_SURVEY_ASSESS_SETTINGS = 'assesssettings';
@@ -39,6 +41,13 @@ var surveyMenus = /*#__PURE__*/function () {
39
41
  type: _index.MENU_ITEM_NOE,
40
42
  href: '#/survey/my-involved',
41
43
  isShow: true
44
+ }, {
45
+ icon: 'survey-share-mine',
46
+ label: '分享我的',
47
+ key: PAGE_SURVEY_SHARE_MINE,
48
+ type: _index.MENU_ITEM_NOE,
49
+ href: '#/survey/share-mine',
50
+ isShow: true
42
51
  }, {
43
52
  icon: "",
44
53
  label: (0, _getLocale.getLocale)('Per_Menu_Title_Label_BasicSettings'),
@@ -21,6 +21,7 @@ var _home = _interopRequireDefault(require("./images/home.svg"));
21
21
  var _utils = require("./utils");
22
22
  var _okrGuide = _interopRequireDefault(require("../okr-guide"));
23
23
  var _createOkrModal = _interopRequireDefault(require("../create-okr-modal"));
24
+ var _unchainOkrModal = _interopRequireDefault(require("../unchain-okr-modal"));
24
25
  var _bookDemo = _interopRequireDefault(require("../book-demo"));
25
26
  var _interface = require("../../components/help-card/interface");
26
27
  var _request2 = require("./request.apis");
@@ -349,7 +350,7 @@ var NavTop = function NavTop() {
349
350
  }, []);
350
351
  return /*#__PURE__*/_react["default"].createElement("div", {
351
352
  className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "--position"), appCenterPosition), _defineProperty({}, "".concat(preCls, "-no-shadow"), appCenterVisible))
352
- }, /*#__PURE__*/_react["default"].createElement(_okrGuide["default"], {
353
+ }, /*#__PURE__*/_react["default"].createElement(_unchainOkrModal["default"], null), /*#__PURE__*/_react["default"].createElement(_okrGuide["default"], {
353
354
  visible: okrGuideVisible,
354
355
  handlerOnclickCreatOkr: handlerOnclickCreatOkr
355
356
  }), /*#__PURE__*/_react["default"].createElement(_createOkrModal["default"], {
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _getLocale = require("../../utils/getLocale");
8
+ var _default = function _default() {
9
+ return [{
10
+ type: 2,
11
+ tittle: (0, _getLocale.getLocale)("Pro_page_Int_Butt_Congratulate"),
12
+ img: require("./img/welldone.svg")
13
+ }, {
14
+ type: 4,
15
+ tittle: (0, _getLocale.getLocale)("Pro_page_Int_Butt_Comeon"),
16
+ img: require("./img/fighting.svg")
17
+ }, {
18
+ type: 3,
19
+ tittle: (0, _getLocale.getLocale)("Pro_page_Int_Butt_Finheart"),
20
+ img: require("./img/bixin.svg")
21
+ }, {
22
+ type: 6,
23
+ tittle: "666",
24
+ img: require("./img/666.svg")
25
+ }, {
26
+ type: 5,
27
+ tittle: (0, _getLocale.getLocale)("Pro_page_Int_Beinsightful"),
28
+ img: require("./img/nice.svg")
29
+ }, {
30
+ type: 1,
31
+ tittle: (0, _getLocale.getLocale)("Mod_Kudos"),
32
+ img: require("./img/thumb-up.svg")
33
+ }];
34
+ };
35
+ exports["default"] = _default;