@titaui/pc 1.11.4-0 → 1.11.4-0.beta-2

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 (163) hide show
  1. package/lib/components/avatar/text-avatar/index.css +9 -2
  2. package/lib/components/avatar/text-avatar/index.js +34 -9
  3. package/lib/components/button/rect-btn/index.js +7 -7
  4. package/lib/components/change-okr-modal/Item.js +15 -15
  5. package/lib/components/communication/index.js +30 -29
  6. package/lib/components/drawer/index.js +7 -6
  7. package/lib/components/dynamic/constant.js +43 -36
  8. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
  9. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
  10. package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
  11. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
  12. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
  13. package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
  14. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
  15. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
  16. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
  17. package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
  18. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
  19. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
  20. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
  21. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
  22. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
  23. package/lib/components/dynamic/dynamic-item/index.js +70 -41
  24. package/lib/components/dynamic/dynamic-list/index.js +5 -13
  25. package/lib/components/e-priority/index.js +18 -12
  26. package/lib/components/eReport/eReportShare/index.js +12 -12
  27. package/lib/components/file-list/components/single-file/index.js +11 -11
  28. package/lib/components/form/form-fields/date/index.css +24 -0
  29. package/lib/components/form/form-fields/date/index.js +102 -0
  30. package/lib/components/form/form-fields/input/index.js +10 -10
  31. package/lib/components/form/form-fields/user/index.css +23 -3
  32. package/lib/components/form/form-fields/user/index.js +18 -8
  33. package/lib/components/form/form-fields/user/user-input.js +15 -6
  34. package/lib/components/form/index.js +10 -3
  35. package/lib/components/grid-layout/sub-employee-okr/person-okr.js +11 -5
  36. package/lib/components/icon-button-list/index.css +2 -57
  37. package/lib/components/icon-button-list/index.js +10 -7
  38. package/lib/components/img-viewer/index.css +10 -3
  39. package/lib/components/img-viewer/index.js +57 -18
  40. package/lib/components/mblog/components/MblogContent.js +5 -2
  41. package/lib/components/mblog/index.js +31 -30
  42. package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
  43. package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
  44. package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
  45. package/lib/components/menus/components/menu-tree/index.css +4 -2
  46. package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
  47. package/lib/components/menus/export-modules/interview-menus/constant.js +23 -17
  48. package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +5 -5
  49. package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
  50. package/lib/components/menus/export-modules/interview-menus/index.js +5 -4
  51. package/lib/components/nav-top/components/menu/img/new.svg +30 -0
  52. package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
  53. package/lib/components/nav-top/components/menu/index.css +91 -0
  54. package/lib/components/nav-top/components/menu/index.js +80 -32
  55. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
  56. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
  57. package/lib/components/nav-top/components/user-message/constant.js +1 -0
  58. package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
  59. package/lib/components/nav-top/components/user-message/index.js +23 -20
  60. package/lib/components/nav-top/request.apis.js +3 -1
  61. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
  62. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +3 -2
  63. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
  64. package/lib/components/okr-detail/detail-header/actions.js +62 -66
  65. package/lib/components/okr-detail/detail-header/index.css +2 -2
  66. package/lib/components/okr-detail/detail-header/index.js +205 -194
  67. package/lib/components/okr-detail/index.js +21 -19
  68. package/lib/components/okr-detail/okr-list/index.js +5 -3
  69. package/lib/components/okr-flow/child-node/index.css +68 -22
  70. package/lib/components/okr-flow/child-node/work-node.js +61 -24
  71. package/lib/components/okr-flow/empty/index.css +8 -1
  72. package/lib/components/okr-flow/export-modal/index.js +108 -21
  73. package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
  74. package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
  75. package/lib/components/okr-flow/images/loading-light.gif +0 -0
  76. package/lib/components/okr-flow/okr-map/index.js +43 -22
  77. package/lib/components/okr-flow/request-apis.js +15 -8
  78. package/lib/components/okr-flow/root-node/index.css +2 -2
  79. package/lib/components/okr-flow/root-node/index.js +26 -25
  80. package/lib/components/okr-flow/utils/index.js +45 -29
  81. package/lib/components/okr-flow/utils/tree-handler.js +29 -18
  82. package/lib/components/okrcase-library/index.css +6 -4
  83. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
  84. package/lib/components/pagination/index.css +3 -3
  85. package/lib/components/pagination/select.css +58 -23
  86. package/lib/components/period-selector/index.css +9 -3
  87. package/lib/components/period-selector/index.js +14 -11
  88. package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
  89. package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
  90. package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
  91. package/lib/components/picker/components/picker-trigger/index.css +31 -0
  92. package/lib/components/picker/components/picker-trigger/index.js +24 -15
  93. package/lib/components/picker/picker-panels.js +1 -1
  94. package/lib/components/picker/picker.js +12 -13
  95. package/lib/components/popup/index.js +4 -4
  96. package/lib/components/radio/index.css +9 -9
  97. package/lib/components/scroll-container/index.js +423 -0
  98. package/lib/components/scroll-container/style.css +35 -0
  99. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  100. package/lib/components/superset-charts/components/chart/index.js +1 -1
  101. package/lib/components/superset-charts/utils/axios.js +5 -13
  102. package/lib/components/survey-model/contact.js +93 -0
  103. package/lib/components/survey-model/index.css +141 -0
  104. package/lib/components/survey-model/index.js +268 -0
  105. package/lib/components/survey-model/instance.js +86 -0
  106. package/lib/components/survey-model/request-api.js +80 -0
  107. package/lib/components/task-relation-modal/index.js +0 -1
  108. package/lib/components/task-tree/helper.js +61 -0
  109. package/lib/components/task-tree/images/P1.svg +15 -0
  110. package/lib/components/task-tree/images/P2.svg +15 -0
  111. package/lib/components/task-tree/images/P3.svg +15 -0
  112. package/lib/components/task-tree/images/P4.svg +15 -0
  113. package/lib/components/task-tree/images/P5.svg +15 -0
  114. package/lib/components/task-tree/images/arrow.svg +9 -0
  115. package/lib/components/task-tree/images/empty-131.png +0 -0
  116. package/lib/components/task-tree/images/followed.svg +33 -0
  117. package/lib/components/task-tree/images/nice.svg +108 -0
  118. package/lib/components/task-tree/images/struc12.png +0 -0
  119. package/lib/components/task-tree/images/struc2.png +0 -0
  120. package/lib/components/task-tree/images/xialat-s.svg +13 -0
  121. package/lib/components/task-tree/index.js +16 -0
  122. package/lib/components/task-tree/precls.js +8 -0
  123. package/lib/components/task-tree/request-apis.js +88 -0
  124. package/lib/components/task-tree/task-item-node/constant.js +45 -0
  125. package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
  126. package/lib/components/task-tree/task-item-node/e-project.js +212 -0
  127. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +114 -0
  128. package/lib/components/task-tree/task-item-node/e-task.js +426 -0
  129. package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
  130. package/lib/components/task-tree/task-item-node/index.css +299 -0
  131. package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
  132. package/lib/components/task-tree/task-tree.css +16 -0
  133. package/lib/components/task-tree/task-tree.js +49 -0
  134. package/lib/components/time-picker/index.css +24 -0
  135. package/lib/components/time-picker/time-picker-selector.js +8 -12
  136. package/lib/components/time-picker/time-picker.js +94 -133
  137. package/lib/components/time-picker/timer-picker-input.js +3 -7
  138. package/lib/components/time-picker/utils.js +13 -2
  139. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
  140. package/lib/components/wechat-btn/index.css +14 -0
  141. package/lib/components/wechat-btn/index.js +338 -0
  142. package/lib/components-v1/radio/radio.js +3 -3
  143. package/lib/components-v1/radio/style/index.css +8 -8
  144. package/lib/index.js +99 -91
  145. package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
  146. package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
  147. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
  148. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
  149. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
  150. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
  151. package/lib/pages/okr-map/number-select/index.css +12 -9
  152. package/lib/pages/okr-map/number-select/index.js +3 -3
  153. package/lib/utils/auth.js +65 -8
  154. package/lib/utils/bs-global.js +18 -6
  155. package/lib/utils/open-data.js +63 -43
  156. package/package.json +6 -2
  157. package/.eslintignore +0 -3
  158. package/.eslintrc.js +0 -223
  159. package/.husky/pre-commit +0 -4
  160. package/.prettierignore +0 -31
  161. package/.prettierrc.js +0 -90
  162. package/.vscode/settings.json +0 -5
  163. package/yarn-error.log +0 -22184
@@ -117,6 +117,97 @@
117
117
  position: relative;
118
118
  }
119
119
 
120
+ .titaui-nav-top-menu__tips {
121
+ position: relative;
122
+ }
123
+
124
+ .titaui-nav-top-menu__tips-new {
125
+ width: 36px;
126
+ height: 26px;
127
+ position: absolute;
128
+ top: 4px;
129
+ right: -12px;
130
+ }
131
+
132
+ .titaui-nav-top-menu__tips-box {
133
+ width: 308px;
134
+ height: 142px;
135
+ box-sizing: border-box;
136
+ padding: 16px;
137
+ background: #5c8eff;
138
+ box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.3);
139
+ border: 1px solid #eff0f1;
140
+ border-radius: 12px;
141
+ z-index: 99;
142
+ }
143
+
144
+ .titaui-nav-top-menu__tips-box-head {
145
+ padding-left: 24px;
146
+ background-image: url("./img/wecome-temp.png");
147
+ background-position: 0 0;
148
+ background-repeat: no-repeat;
149
+ background-size: 20px 20px;
150
+ }
151
+
152
+ .titaui-nav-top-menu__tips-box-title {
153
+ display: block;
154
+ font-size: 14px;
155
+ color: #ffffff;
156
+ line-height: 22px;
157
+ font-weight: 600;
158
+ }
159
+
160
+ .titaui-nav-top-menu__tips-box-content {
161
+ font-size: 12px;
162
+ color: #ffffff;
163
+ line-height: 20px;
164
+ margin-top: 10px;
165
+ }
166
+
167
+ .titaui-nav-top-menu__tips-box-ok {
168
+ height: 28px;
169
+ margin-top: 8px;
170
+ margin-left: 210px;
171
+ background: #ffffff;
172
+ box-shadow: 0px -4px 12px 0px rgba(127, 145, 180, 0.2);
173
+ border-radius: 14px;
174
+ box-sizing: border-box;
175
+ padding: 3px 17px;
176
+ font-size: 14px;
177
+ color: #2879ff;
178
+ line-height: 22px;
179
+ cursor: pointer;
180
+ }
181
+
182
+ .titaui-nav-top-menu__tips-triangle {
183
+ position: absolute;
184
+ top: -4px;
185
+ left: 50%;
186
+ margin-left: -4px;
187
+ width: 0;
188
+ height: 0;
189
+ border-left: 5px solid transparent;
190
+ border-right: 5px solid transparent;
191
+ border-bottom: 5px solid #fff;
192
+ }
193
+
194
+ .titaui-nav-top-menu__tips-triangle::after {
195
+ content: '';
196
+ width: 0;
197
+ height: 0;
198
+ position: absolute;
199
+ left: -4px;
200
+ top: 2px;
201
+ border-left: solid 4px transparent;
202
+ border-right: solid 4px transparent;
203
+ border-bottom: solid 4px #5c8eff;
204
+ z-index: 99;
205
+ }
206
+
207
+ .titaui-nav-top-menu__tips-hide {
208
+ display: none;
209
+ }
210
+
120
211
  .titaui-nav-top-menu .rc-overflow-item {
121
212
  position: relative;
122
213
  }
@@ -21,6 +21,8 @@ var _conditionRender = _interopRequireDefault(require("../../../../components/co
21
21
 
22
22
  var _useGlobalValue3 = _interopRequireDefault(require("../../useGlobalValue"));
23
23
 
24
+ var _new = _interopRequireDefault(require("./img/new.svg"));
25
+
24
26
  require("./index.css");
25
27
 
26
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,7 +45,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
43
45
 
44
46
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
47
 
46
- var prefix = "titaui-nav-top-menu";
48
+ var prefix = 'titaui-nav-top-menu';
47
49
  var popupAlign = {
48
50
  offset: [0, 5],
49
51
  overflow: {
@@ -52,6 +54,15 @@ var popupAlign = {
52
54
  },
53
55
  targetOffset: [0, 0]
54
56
  };
57
+ var NewFeatureGuidePopupAlign = {
58
+ offset: [104, -5],
59
+ overflow: {
60
+ adjustX: true,
61
+ adjustY: true
62
+ },
63
+ targetOffset: [0, 0]
64
+ };
65
+ var NEWMENUS = '#/interview';
55
66
 
56
67
  var Menu = function Menu(_ref) {
57
68
  var menus = _ref.menus,
@@ -59,15 +70,20 @@ var Menu = function Menu(_ref) {
59
70
 
60
71
  var _useState = (0, _react.useState)(false),
61
72
  _useState2 = _slicedToArray(_useState, 2),
62
- popupVisible = _useState2[0],
63
- setPopupVisible = _useState2[1];
73
+ isKnow = _useState2[0],
74
+ setIsKonw = _useState2[1];
75
+
76
+ var _useState3 = (0, _react.useState)(false),
77
+ _useState4 = _slicedToArray(_useState3, 2),
78
+ popupVisible = _useState4[0],
79
+ setPopupVisible = _useState4[1];
64
80
 
65
81
  var _useGlobalValue = (0, _useGlobalValue3["default"])(),
66
82
  _useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
67
83
  feedNum = _useGlobalValue2[0];
68
84
 
69
85
  var containerRef = (0, _react.useRef)();
70
- var apiPath = (0, _bsGlobal.getBSGlobal)("apiPath");
86
+ var apiPath = (0, _bsGlobal.getBSGlobal)('apiPath');
71
87
  var userId = (0, _bsGlobal.getUserInfo)().Id;
72
88
 
73
89
  var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
@@ -76,41 +92,74 @@ var Menu = function Menu(_ref) {
76
92
 
77
93
  var handleTracker = function handleTracker(menu) {
78
94
  if (window.titaTracker) {
79
- window.titaTracker("action").record({
95
+ window.titaTracker('action').record({
80
96
  actionName: "\u5BFC\u822A\u83DC\u5355__".concat(menu.title),
81
- actionGroup: "导航菜单",
82
- productName: "导航菜单"
97
+ actionGroup: '导航菜单',
98
+ productName: '导航菜单'
83
99
  });
84
100
  }
85
101
  };
86
102
 
87
- var handleClickToLearning = function handleClickToLearning() {
88
- window.open("".concat(apiPath, "/").concat(userId, "/eLearningHome#/"), "_self");
103
+ var handleClick = function handleClick() {
104
+ setIsKonw(true);
105
+ localStorage.setItem("isNewMenuItem__".concat(userId), "".concat(userId));
89
106
  };
90
107
 
108
+ (0, _react.useEffect)(function () {
109
+ var isKnow = localStorage.getItem("isNewMenuItem__".concat(userId));
110
+
111
+ if (isKnow) {
112
+ setIsKonw(true);
113
+ }
114
+ }, []);
115
+
116
+ var popup = /*#__PURE__*/_react["default"].createElement("div", {
117
+ className: "".concat(prefix, "__tips")
118
+ }, /*#__PURE__*/_react["default"].createElement("div", {
119
+ className: (0, _classnames["default"])("".concat(prefix, "__tips-box"), _defineProperty({}, "".concat(prefix, "__tips-hide"), isKnow))
120
+ }, /*#__PURE__*/_react["default"].createElement("div", {
121
+ className: "".concat(prefix, "__tips-box-head")
122
+ }, /*#__PURE__*/_react["default"].createElement("h2", {
123
+ className: "".concat(prefix, "__tips-box-title")
124
+ }, "1 : 1 \u9762\u8C08\uFF08\u4E00\u5BF9\u4E00\u9762\u8C08\uFF09\u4E0A\u7EBF\u5566\uFF01"), /*#__PURE__*/_react["default"].createElement("p", {
125
+ className: "".concat(prefix, "__tips-box-content")
126
+ }, "\u52A9\u529B\u7ECF\u7406\u548C\u4E0B\u7EA7\u8FDB\u884C\u6301\u7EED\u6C9F\u901A\uFF0C\u4E3A\u4E0D\u540C\u573A\u666F\u63D0\u4F9B\u4E30\u5BCC\u7684\u6C9F\u901A\u6A21\u677F\uFF0C\u5373\u523B\u4E86\u89E3\uFF0CGo~")), /*#__PURE__*/_react["default"].createElement("div", {
127
+ className: "".concat(prefix, "__tips-box-ok"),
128
+ onClick: handleClick
129
+ }, "\u597D\u54D2")), /*#__PURE__*/_react["default"].createElement("div", {
130
+ className: (0, _classnames["default"])("".concat(prefix, "__tips-triangle"), _defineProperty({}, "".concat(prefix, "__tips-hide"), isKnow))
131
+ }));
132
+
91
133
  var renderRawItem = function renderRawItem(menu) {
134
+ var href = menu.href;
135
+
136
+ if (menu.title === 'Learning') {
137
+ href = "".concat(apiPath, "/").concat(userId, "/eLearningHome#/");
138
+ }
139
+
92
140
  return /*#__PURE__*/_react["default"].createElement(_rcOverflow["default"].Item, {
93
141
  component: "span"
94
142
  }, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
95
- condition: menu.title !== "Learning"
143
+ condition: menu.id
144
+ }, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
145
+ popupVisible: !isKnow,
146
+ popup: menu.href === NEWMENUS ? popup : null,
147
+ mask: false,
148
+ action: ['focus'],
149
+ popupAlign: NewFeatureGuidePopupAlign
96
150
  }, /*#__PURE__*/_react["default"].createElement("a", {
97
151
  className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
98
- href: "".concat(menu.href),
152
+ href: href,
99
153
  target: "_self",
100
154
  onClick: function onClick() {
101
155
  return handleTracker(menu);
102
156
  }
103
- }, menu.title, menu.href === "#dynamic" && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
104
- className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href === "#dynamic"))
105
- }, feedNum > 100 ? "99+" : feedNum))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
106
- condition: menu.title === "Learning"
107
- }, /*#__PURE__*/_react["default"].createElement("span", {
108
- className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
109
- onClick: function onClick() {
110
- handleTracker(menu);
111
- handleClickToLearning();
112
- }
113
- }, menu.title)));
157
+ }, menu.title, menu.href === '#dynamic' && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
158
+ className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href === '#dynamic'))
159
+ }, feedNum > 100 ? '99+' : feedNum), menu.href === NEWMENUS && /*#__PURE__*/_react["default"].createElement("img", {
160
+ src: _new["default"],
161
+ className: "".concat(prefix, "__tips-new")
162
+ })))));
114
163
  };
115
164
 
116
165
  var renderRest = function renderRest(items) {
@@ -122,18 +171,17 @@ var Menu = function Menu(_ref) {
122
171
  var popContent = /*#__PURE__*/_react["default"].createElement("div", {
123
172
  className: "".concat(prefix, "__hide-menus")
124
173
  }, items.map(function (menu) {
174
+ var href = menu.href;
175
+
176
+ if (menu.title === 'Learning') {
177
+ href = "".concat(apiPath, "/").concat(userId, "/eLearningHome#/");
178
+ }
179
+
125
180
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
126
- condition: menu.title !== "Learning"
127
- }, /*#__PURE__*/_react["default"].createElement("a", {
128
- className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId === menu.id)),
129
- href: "".concat(menu.href),
130
- key: menu.id,
131
- target: "_self"
132
- }, menu.title)), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
133
- condition: menu.title === "Learning"
181
+ condition: menu.id
134
182
  }, /*#__PURE__*/_react["default"].createElement("a", {
135
183
  className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId === menu.id)),
136
- href: "".concat(apiPath, "/").concat(userId, "/eLearningHome#/"),
184
+ href: href,
137
185
  key: menu.id,
138
186
  target: "_self"
139
187
  }, menu.title)));
@@ -146,7 +194,7 @@ var Menu = function Menu(_ref) {
146
194
  popupPlacement: "bottomLeft",
147
195
  popupAlign: popupAlign
148
196
  }, /*#__PURE__*/_react["default"].createElement("span", {
149
- className: (0, _classnames["default"])("tu-icon-diot", "".concat(prefix, "__more-icon"), _defineProperty({}, "".concat(prefix, "__more-icon--active"), isActiveHideMeun))
197
+ className: (0, _classnames["default"])('tu-icon-diot', "".concat(prefix, "__more-icon"), _defineProperty({}, "".concat(prefix, "__more-icon--active"), isActiveHideMeun))
150
198
  }));
151
199
  };
152
200
 
@@ -35,7 +35,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
35
35
 
36
36
  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; }
37
37
 
38
- var preCls = "titaui-user-message-msg-inform";
38
+ var preCls = 'titaui-user-message-msg-inform';
39
39
 
40
40
  function Inform(props) {
41
41
  var item = props.item,
@@ -47,10 +47,11 @@ function Inform(props) {
47
47
  onItemClick && onItemClick(false);
48
48
  var objType = item.objType,
49
49
  objId = item.objId,
50
- messageType = item.messageType;
50
+ messageType = item.messageType,
51
+ user = item.user;
51
52
 
52
53
  if (objType === _constant.EObjType.Kr) {
53
- _drawerManager["default"].open("krDetail", {
54
+ _drawerManager["default"].open('krDetail', {
54
55
  krId: objId
55
56
  });
56
57
 
@@ -58,7 +59,7 @@ function Inform(props) {
58
59
  }
59
60
 
60
61
  if (objType === _constant.EObjType.O) {
61
- _drawerManager["default"].open("okrDetail", {
62
+ _drawerManager["default"].open('okrDetail', {
62
63
  okrId: objId
63
64
  });
64
65
 
@@ -72,20 +73,25 @@ function Inform(props) {
72
73
 
73
74
  if (objType === _constant.EObjType.Task) {
74
75
  // @ts-ignore
75
- window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
76
+ window.Talent.app.vent.trigger('global-pull-screen', objId, 'task');
76
77
  return;
77
78
  }
78
79
 
79
80
  if (objType === _constant.EObjType.Remind) {
80
81
  // @ts-ignore
81
- window.Talent.app.vent.trigger("global-daily-detail-pull-screen", objId);
82
+ window.Talent.app.vent.trigger('global-daily-detail-pull-screen', objId);
83
+ return;
84
+ }
85
+
86
+ if (objType === _constant.EObjType.Interview) {
87
+ (0, _tools.openPage)("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#/interview?reactRouterName=detail&hideNavTop=true&recordId=").concat(objId, "&toUserId=").concat(user === null || user === void 0 ? void 0 : user.userId));
82
88
  return;
83
89
  }
84
90
 
85
91
  if (messageType == 135) {
86
92
  var redisKey = item.content.match(/redisKey=(\S*?)"/)[1]; // @ts-ignore
87
93
 
88
- Talent.app.vent.trigger("open-weekly-report-modal", redisKey);
94
+ Talent.app.vent.trigger('open-weekly-report-modal', redisKey);
89
95
  return;
90
96
  } // 处理合并的消息
91
97
 
@@ -111,13 +117,13 @@ function Inform(props) {
111
117
  if (objType === 0) {
112
118
  var str = item.content.match(/\/\/.*?[\"|\']/gi);
113
119
  if (!str) return;
114
- str = str.join("");
120
+ str = str.join('');
115
121
 
116
122
  var _url = str.slice(0, str.length - 1);
117
123
 
118
124
  if (_url) {
119
- if (item.content.indexOf("点击此处下载") !== -1) {
120
- window.open(_url, "_self");
125
+ if (item.content.indexOf('点击此处下载') !== -1) {
126
+ window.open(_url, '_self');
121
127
  }
122
128
 
123
129
  (0, _tools.openPage)(_url);
@@ -147,7 +153,7 @@ function Inform(props) {
147
153
  var _str = item.content.match(/\/\/.*?[\"|\']/gi);
148
154
 
149
155
  if (!_str) return;
150
- _str = _str.join("");
156
+ _str = _str.join('');
151
157
 
152
158
  var _url3 = _str.slice(0, _str.length - 1);
153
159
 
@@ -159,7 +165,7 @@ function Inform(props) {
159
165
  var _str2 = item.content.match(/https:.*?[\"|\']/gi);
160
166
 
161
167
  if (!_str2) return;
162
- _str2 = _str2.join("");
168
+ _str2 = _str2.join('');
163
169
 
164
170
  var _url4 = _str2.slice(0, _str2.length - 1);
165
171
 
@@ -178,7 +184,7 @@ function Inform(props) {
178
184
  }
179
185
 
180
186
  var reg = /href='.*?(?=')/g;
181
- var url = "";
187
+ var url = '';
182
188
  item.content.replace(reg, function ($0) {
183
189
  url = $0.slice(6);
184
190
  });
@@ -189,22 +195,22 @@ function Inform(props) {
189
195
  }
190
196
  }
191
197
 
192
- var notificationType = "e-report"; // E-周报提醒消息合并
198
+ var notificationType = 'e-report'; // E-周报提醒消息合并
193
199
 
194
200
  var content = domRef.current.textContent;
195
201
 
196
- if (messageType == "83") {
202
+ if (messageType == '83') {
197
203
  // 项目,目标进展提醒消息合并
198
- notificationType = "project-objective";
204
+ notificationType = 'project-objective';
199
205
  } else if (Number(messageType) > 93 && Number(messageType) <= 100) {
200
206
  // OKR 仪表盘消息提醒
201
- notificationType = "okr-dashBoard";
207
+ notificationType = 'okr-dashBoard';
202
208
  } else if (messageType == 131 || messageType == 136) {
203
- notificationType = "performance";
209
+ notificationType = 'performance';
204
210
  content = item.content;
205
211
  }
206
212
 
207
- _drawerManager["default"].open("NotificationMergeDetail", {
213
+ _drawerManager["default"].open('NotificationMergeDetail', {
208
214
  config: {
209
215
  content: content,
210
216
  messageId: item.messageId,
@@ -23,10 +23,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
23
23
 
24
24
  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; }
25
25
 
26
- var preCls = "titaui-user-message-msg-remind";
26
+ var preCls = 'titaui-user-message-msg-remind';
27
27
 
28
28
  function Remind(props) {
29
- var item = props.item,
29
+ var _props$item = props.item,
30
+ content = _props$item.content,
31
+ id = _props$item.id,
32
+ objId = _props$item.objId,
33
+ objName = _props$item.objName,
34
+ objType = _props$item.objType,
35
+ remindUser = _props$item.remindUser,
30
36
  onItemClick = props.onItemClick,
31
37
  deleteTask = props.deleteTask,
32
38
  reminds = props.reminds;
@@ -36,12 +42,44 @@ function Remind(props) {
36
42
  };
37
43
 
38
44
  var deleteOneTask = function deleteOneTask() {
39
- deleteTask(item);
45
+ deleteTask(props.item);
46
+ };
47
+
48
+ var getItemLabelName = function getItemLabelName() {
49
+ var labelName;
50
+
51
+ switch (objType) {
52
+ case _constant.EObjType.Interview:
53
+ labelName = (0, _getLocale.getLocale)('Ooo_Mo_1on1');
54
+ break;
55
+
56
+ default:
57
+ labelName = (0, _getLocale.getLocale)('Mod_Tasks');
58
+ break;
59
+ }
60
+
61
+ return labelName;
62
+ };
63
+
64
+ var getHref = function getHref() {
65
+ var href;
66
+
67
+ switch (objType) {
68
+ case _constant.EObjType.Interview:
69
+ href = "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#/interview?reactRouterName=detail&recordId=").concat(objId, "&toUserId=").concat(remindUser === null || remindUser === void 0 ? void 0 : remindUser.userId, "&hideNavTop=true");
70
+ break;
71
+
72
+ default:
73
+ href = "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/taskinfo?Id=").concat(objId);
74
+ break;
75
+ }
76
+
77
+ return href;
40
78
  };
41
79
 
42
80
  return /*#__PURE__*/_react["default"].createElement("li", {
43
81
  className: (0, _classnames["default"])("".concat(preCls, "__item"), _defineProperty({}, "".concat(preCls, "__item--scroll"), reminds.length >= 5)),
44
- key: item.id
82
+ key: id
45
83
  }, /*#__PURE__*/_react["default"].createElement("img", {
46
84
  src: _appTixing["default"],
47
85
  className: (0, _classnames["default"])("".concat(preCls, "__item-photo"))
@@ -49,13 +87,13 @@ function Remind(props) {
49
87
  className: (0, _classnames["default"])("".concat(preCls, "__item-right"))
50
88
  }, /*#__PURE__*/_react["default"].createElement("div", {
51
89
  className: (0, _classnames["default"])("".concat(preCls, "__item-right-name"))
52
- }, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Mod_Tasks")), /*#__PURE__*/_react["default"].createElement("span", {
90
+ }, /*#__PURE__*/_react["default"].createElement("span", null, getItemLabelName()), /*#__PURE__*/_react["default"].createElement("span", {
53
91
  className: (0, _classnames["default"])("".concat(preCls, "__item-right-name-status"))
54
- }, item.content)), /*#__PURE__*/_react["default"].createElement("div", {
92
+ }, content)), /*#__PURE__*/_react["default"].createElement("div", {
55
93
  className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
56
94
  }, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
57
95
  overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
58
- text: item.objName,
96
+ text: objName,
59
97
  isPercent: true,
60
98
  mouseEnterDelay: 0.8
61
99
  }))), /*#__PURE__*/_react["default"].createElement("div", {
@@ -63,15 +101,15 @@ function Remind(props) {
63
101
  }, /*#__PURE__*/_react["default"].createElement("span", {
64
102
  className: (0, _classnames["default"])("".concat(preCls, "__item-handle-ignore")),
65
103
  onClick: deleteOneTask
66
- }, (0, _getLocale.getLocale)("Tasks_Menu_Ignore")), /*#__PURE__*/_react["default"].createElement("a", {
104
+ }, (0, _getLocale.getLocale)('Tasks_Menu_Ignore')), /*#__PURE__*/_react["default"].createElement("a", {
67
105
  target: "_blank",
68
- href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/taskinfo?Id=").concat(item.objId),
106
+ href: getHref(),
69
107
  onClick: handleRemindClick,
70
108
  rel: "noreferrer"
71
109
  }, /*#__PURE__*/_react["default"].createElement("span", {
72
110
  className: (0, _classnames["default"])("".concat(preCls, "__item-handle-deal")),
73
111
  onClick: deleteOneTask
74
- }, (0, _getLocale.getLocale)("Feed_Tab_ToDealWith")))));
112
+ }, (0, _getLocale.getLocale)('Feed_Tab_ToDealWith')))));
75
113
  }
76
114
 
77
115
  var _default = Remind;
@@ -50,4 +50,5 @@ exports.EObjType = EObjType;
50
50
  EObjType[EObjType["MileStone"] = 27] = "MileStone";
51
51
  EObjType[EObjType["KanBan"] = 66] = "KanBan";
52
52
  EObjType[EObjType["Remind"] = 8] = "Remind";
53
+ EObjType[EObjType["Interview"] = 81] = "Interview";
53
54
  })(EObjType || (exports.EObjType = EObjType = {}));
@@ -43,7 +43,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
43
43
 
44
44
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
45
 
46
- var prefixCls = "titaui-user-message";
46
+ var prefixCls = 'titaui-user-message';
47
47
 
48
48
  function HrMessage() {
49
49
  var _useState = (0, _react.useState)(0),
@@ -71,7 +71,7 @@ function HrMessage() {
71
71
  preData = _useState10[0],
72
72
  setPreData = _useState10[1];
73
73
 
74
- var _useState11 = (0, _react.useState)("todos"),
74
+ var _useState11 = (0, _react.useState)('todos'),
75
75
  _useState12 = _slicedToArray(_useState11, 2),
76
76
  firstTab = _useState12[0],
77
77
  setFirstTab = _useState12[1];
@@ -86,16 +86,16 @@ function HrMessage() {
86
86
  setAllData(res.Data.indicators);
87
87
  var indicators = res.Data.indicators;
88
88
  var todos = indicators.find(function (item) {
89
- return item.type === "todoIndicator";
89
+ return item.type === 'todoIndicator';
90
90
  });
91
91
  var informs = indicators.find(function (item) {
92
- return item.type === "messageIndicator";
92
+ return item.type === 'messageIndicator';
93
93
  });
94
94
  var replys = indicators.find(function (item) {
95
- return item.type === "mLeaveandComment";
95
+ return item.type === 'mLeaveandComment';
96
96
  });
97
97
  var reminds = indicators.find(function (item) {
98
- return item.type === "Tx";
98
+ return item.type === 'Tx';
99
99
  });
100
100
  var total = 0; // @与回复的数量在通知里面包含了
101
101
 
@@ -115,17 +115,17 @@ function HrMessage() {
115
115
  setInfosNum(total);
116
116
 
117
117
  if (todos && todos.value) {
118
- setFirstTab("todos");
118
+ setFirstTab('todos');
119
119
  } else if (informs && !replys && informs.value) {
120
- setFirstTab("informs");
120
+ setFirstTab('informs');
121
121
  } else if (replys && informs.value - replys.value === 0) {
122
- setFirstTab("replys");
122
+ setFirstTab('replys');
123
123
  } else if (replys && informs.value - replys.value > 0) {
124
- setFirstTab("informs");
124
+ setFirstTab('informs');
125
125
  } else if (reminds && reminds.value) {
126
- setFirstTab("reminds");
126
+ setFirstTab('reminds');
127
127
  } else {
128
- setFirstTab("todos");
128
+ setFirstTab('todos');
129
129
  } // 判断是企业勋章
130
130
 
131
131
 
@@ -135,20 +135,20 @@ function HrMessage() {
135
135
 
136
136
  enterpriseMedalMsg.length > 0 && window.util.upaasEnterpriseMedal(); // upaas 勋章
137
137
 
138
- var medalDetail = (0, _bsGlobal.getBSGlobal)("medalDetail"); // @ts-ignore
138
+ var medalDetail = (0, _bsGlobal.getBSGlobal)('medalDetail'); // @ts-ignore
139
139
 
140
140
  medalDetail && window.util.upaasMedal()(medalDetail); // 红包
141
141
 
142
142
  var mRedPackIndicator = indicators.filter(function (item) {
143
- return item.type === "mRedPackIndicator";
143
+ return item.type === 'mRedPackIndicator';
144
144
  });
145
145
  mRedPackIndicator.length > 0 && setRedPackNum(mRedPackIndicator[0].value); // 祝福,拆礼物
146
146
 
147
147
  var blessIndicator = indicators.filter(function (item) {
148
- return item.type === "mZhufu";
148
+ return item.type === 'mZhufu';
149
149
  });
150
150
  var weeklyReportIndicator = indicators.filter(function (item) {
151
- return item.type === "mWeekStatisticIndicator";
151
+ return item.type === 'mWeekStatisticIndicator';
152
152
  });
153
153
 
154
154
  if (blessIndicator.length === 1) {
@@ -165,7 +165,7 @@ function HrMessage() {
165
165
  if (weeklyReportIndicator.length) {
166
166
  var _window;
167
167
 
168
- (_window = window) === null || _window === void 0 ? void 0 : _window.Talent.app.vent.trigger("open-weekly-report-modal");
168
+ (_window = window) === null || _window === void 0 ? void 0 : _window.Talent.app.vent.trigger('open-weekly-report-modal');
169
169
  }
170
170
  }
171
171
  });
@@ -174,7 +174,10 @@ function HrMessage() {
174
174
  (0, _react.useEffect)(function () {
175
175
  setPreData(infosNum);
176
176
  handleIntervalRequestMessageInfo();
177
- setInterval(handleIntervalRequestMessageInfo, 15000);
177
+ var interval = setInterval(handleIntervalRequestMessageInfo, 15000);
178
+ return function () {
179
+ return clearInterval(interval);
180
+ };
178
181
  }, []);
179
182
  return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
180
183
  popup: /*#__PURE__*/_react["default"].createElement(_msg["default"], {
@@ -182,7 +185,7 @@ function HrMessage() {
182
185
  allData: allData,
183
186
  handleIntervalRequestMessageInfo: handleIntervalRequestMessageInfo,
184
187
  firstTab: firstTab,
185
- tabs: ["todos", "informs", "replys"]
188
+ tabs: ['todos', 'informs', 'replys']
186
189
  }),
187
190
  popupVisible: popupVisible,
188
191
  popupTransitionName: (0, _classnames["default"])("".concat(prefixCls, "__popup-right-bottom")),