@titaui/pc 1.11.4-1 → 1.11.4-10
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.
- package/lib/components/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/rect-btn/index.js +7 -7
- package/lib/components/change-okr-modal/Item.js +15 -15
- package/lib/components/communication/index.js +30 -29
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/dynamic/constant.js +13 -6
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +22 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/index.js +34 -13
- package/lib/components/dynamic/dynamic-list/index.js +5 -13
- package/lib/components/e-priority/index.js +18 -12
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +11 -11
- package/lib/components/form/form-fields/date/index.js +15 -11
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +22 -2
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/icon-button-list/index.css +2 -57
- package/lib/components/icon-button-list/index.js +10 -7
- package/lib/components/img-viewer/index.css +10 -3
- package/lib/components/img-viewer/index.js +57 -18
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/index.js +31 -30
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/detail-header/actions.js +62 -66
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +205 -194
- package/lib/components/okr-detail/index.js +21 -19
- package/lib/components/okr-flow/child-node/index.css +67 -21
- package/lib/components/okr-flow/child-node/work-node.js +61 -24
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +42 -18
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +43 -22
- package/lib/components/okr-flow/request-apis.js +15 -8
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/root-node/index.js +26 -25
- package/lib/components/okr-flow/utils/index.js +45 -29
- package/lib/components/okr-flow/utils/tree-handler.js +29 -18
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okrcase-library/index.css +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +9 -3
- package/lib/components/period-selector/index.js +14 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
- package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
- package/lib/components/picker/components/picker-trigger/index.css +15 -0
- package/lib/components/picker/components/picker-trigger/index.js +8 -8
- package/lib/components/popup/index.js +4 -4
- package/lib/components/radio/index.css +9 -9
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/scroll-container/index.js +423 -0
- package/lib/components/scroll-container/style.css +35 -0
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/components/chart/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -13
- package/{es/pages/group-management/page-view/group-empty.js → lib/components/survey-model/contact.js} +54 -27
- package/lib/components/survey-model/index.css +141 -0
- package/lib/components/survey-model/index.js +265 -0
- package/lib/components/survey-model/instance.js +86 -0
- package/lib/components/survey-model/request-api.js +80 -0
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +63 -51
- package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +13 -13
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +138 -124
- package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
- package/lib/components/time-picker/index.css +6 -0
- package/lib/components/time-picker/time-picker.js +27 -27
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components/wechat-btn/index.css +14 -0
- package/lib/components/wechat-btn/index.js +338 -0
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +99 -91
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
- package/lib/pages/okr-map/number-select/index.css +12 -9
- package/lib/pages/okr-map/number-select/index.js +3 -3
- package/lib/utils/auth.js +65 -8
- package/lib/utils/bs-global.js +18 -6
- package/lib/utils/open-data.js +63 -43
- package/package.json +6 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/es/components/cascader/time.js +0 -31
- package/es/components/common-share/request-apis.js +0 -56
- package/es/components/confidence/heart.js +0 -66
- package/es/components/create-okr-modal/fields/index.js +0 -17
- package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
- package/es/components/date-picker/BodyItem.js +0 -121
- package/es/components/date-picker/CalendarBody.js +0 -157
- package/es/components/date-picker/CalendarHeader.js +0 -187
- package/es/components/date-picker/index.js +0 -157
- package/es/components/date-range-picker/index.js +0 -210
- package/es/components/dialog/index.js +0 -119
- package/es/components/dialog-confirm/index.js +0 -154
- package/es/components/drop-selector/icon-item.js +0 -40
- package/es/components/drop-selector/index.js +0 -179
- package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/es/components/dynamic/dynamic-liking/mock.js +0 -83
- package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/es/components/e-priority/index.js +0 -88
- package/es/components/grid-layout/commen-components/index.js +0 -73
- package/es/components/grid-layout/image/could.js +0 -8
- package/es/components/grid-layout/image/lv.js +0 -8
- package/es/components/grid-layout/image/tita-mask.js +0 -8
- package/es/components/help-card/request-api.js +0 -35
- package/es/components/icon-button-list/index.js +0 -65
- package/es/components/menus/context.js +0 -18
- package/es/components/menus/precls.js +0 -8
- package/es/components/okr-detail/auth.js +0 -197
- package/es/components/okr-detail/components/ao-nice/index.js +0 -245
- package/es/components/okr-detail/components/block-line/index.js +0 -20
- package/es/components/okr-detail/components/header/index.js +0 -211
- package/es/components/okr-detail/components/icon-text/index.js +0 -116
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
- package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
- package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
- package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
- package/es/components/okr-detail/components/padding-layout.js +0 -22
- package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
- package/es/components/okr-detail/context.js +0 -30
- package/es/components/okr-detail/e-list/index.js +0 -243
- package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
- package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
- package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
- package/es/components/okr-detail/e-list/search-form/index.js +0 -143
- package/es/components/okr-detail/error-page/index.js +0 -33
- package/es/components/okr-detail/index.js +0 -428
- package/es/components/okr-detail/loading/index.js +0 -28
- package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
- package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
- package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
- package/es/components/okr-detail/okr-list/empty/index.js +0 -48
- package/es/components/okr-detail/okr-list/index.js +0 -524
- package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
- package/es/components/okr-detail/store.js +0 -1
- package/es/components/okr-flow/child-node/fields/creator.js +0 -175
- package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
- package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
- package/es/components/okr-flow/child-node/helper.js +0 -35
- package/es/components/okr-flow/child-node/index.js +0 -110
- package/es/components/okr-flow/child-node/kr-node.js +0 -75
- package/es/components/okr-flow/child-node/work-node.js +0 -242
- package/es/components/okr-flow/context.js +0 -14
- package/es/components/okr-flow/empty/index.js +0 -29
- package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
- package/es/components/okr-flow/index.js +0 -24
- package/es/components/okr-flow/mini-map/index.js +0 -112
- package/es/components/okr-flow/mini-map/map.js +0 -145
- package/es/components/okr-flow/mini-map/mini-node.js +0 -57
- package/es/components/okr-flow/mini-map/utils.js +0 -79
- package/es/components/okr-flow/okr-map/index.js +0 -192
- package/es/components/okr-flow/open-data/index.js +0 -115
- package/es/components/okr-flow/precls.js +0 -8
- package/es/components/okr-flow/request-apis.js +0 -118
- package/es/components/okr-flow/root-node/index.js +0 -229
- package/es/components/okr-flow/utils/config.js +0 -18
- package/es/components/okr-flow/utils/helper.js +0 -36
- package/es/components/okr-flow/utils/index.js +0 -66
- package/es/components/okr-flow/utils/tree-handler.js +0 -323
- package/es/components/okr-progress-modal/helper.js +0 -156
- package/es/components/okr-progress-modal/request-apis.js +0 -34
- package/es/components/okr-share/request-apis.js +0 -56
- package/es/components/okrcase-library/server/network.js +0 -407
- package/es/components/pagination/locale/en_US.js +0 -22
- package/es/components/pagination/locale/zh_CN.js +0 -22
- package/es/components/point-demo/drop-down-box/index.js +0 -159
- package/es/components/point-demo/index.js +0 -533
- package/es/components/point-demo/input/index.js +0 -176
- package/es/components/point-demo/point-demo.js +0 -75
- package/es/components/point-demo/popup/index.js +0 -113
- package/es/components/point-demo/popup/placement.js +0 -44
- package/es/components/range-picker-pop/index.js +0 -273
- package/es/components/scrollbar/simplebar/helpers.js +0 -59
- package/es/components/scrollbar/simplebar/index.js +0 -91
- package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
- package/es/components/scrollbar/simplebar/simplebar.js +0 -852
- package/es/components/scrollbar/simplebar-react.js +0 -163
- package/es/components/search-dropdown/index.js +0 -40
- package/es/components/search-input/index.js +0 -126
- package/es/components/select/Option.js +0 -94
- package/es/components/select/index.js +0 -330
- package/es/components/selector-input/debounce.js +0 -36
- package/es/components/selector-input/index.js +0 -109
- package/es/components/slider-input/index.js +0 -119
- package/es/components/switch/index.js +0 -39
- package/es/components/table/index.js +0 -275
- package/es/components/tabs/index.js +0 -63
- package/es/components/task-relation-modal/tree-node/index.js +0 -58
- package/es/components/tita-chart/charts/img/could.js +0 -8
- package/es/components/tooltip/error-tip.js +0 -24
- package/es/components/tooltip/index.js +0 -21
- package/es/components/tree/index.js +0 -79
- package/es/components/tree/precls.js +0 -8
- package/es/components/upvote/request-apis.js +0 -45
- package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/es/components/user-selector/action-btns/btn-ok.js +0 -21
- package/es/components/user-selector/action-btns/index.js +0 -27
- package/es/components/user-selector/context.js +0 -18
- package/es/components/user-selector/empty/group.js +0 -55
- package/es/components/user-selector/empty/index.js +0 -28
- package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
- package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
- package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
- package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
- package/es/components/user-selector/index.js +0 -25
- package/es/components/user-selector/layout/index.js +0 -25
- package/es/components/user-selector/loading/index.js +0 -18
- package/es/components/user-selector/request-apis.js +0 -180
- package/es/components/user-selector/searched-panel/index.js +0 -139
- package/es/components/user-selector/searched-panel/result-part.js +0 -43
- package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
- package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
- package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
- package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
- package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
- package/es/components/user-selector/utils.js +0 -139
- package/es/components/viewer/ImageListRender.js +0 -143
- package/es/components/viewer/index.js +0 -168
- package/es/components/word-cloud/index.js +0 -109
- package/es/components/word-cloud/request-apis.js +0 -26
- package/es/components-v1/animate/AnimateChild.js +0 -76
- package/es/components-v1/animate/animate.js +0 -148
- package/es/components-v1/animate/index.js +0 -13
- package/es/components-v1/dom/index.js +0 -30
- package/es/components-v1/placement/index.js +0 -13
- package/es/components-v1/placement/placement.js +0 -111
- package/es/components-v1/placement/placementInner.js +0 -139
- package/es/components-v1/pop/Pop.js +0 -246
- package/es/components-v1/pop/PopInner.js +0 -163
- package/es/components-v1/pop/index.js +0 -13
- package/es/components-v1/progress/CircleProgress.js +0 -152
- package/es/components-v1/progress/LineProgress.js +0 -83
- package/es/components-v1/progress/index.js +0 -80
- package/es/components-v1/select/Option.js +0 -94
- package/es/components-v1/select/index.js +0 -330
- package/es/components-v1/utils/animate/animate.js +0 -103
- package/es/components-v1/utils/animate/event.js +0 -79
- package/es/components-v1/utils/dom/index.js +0 -30
- package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
- package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
- package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
- package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
- package/es/components-v1/utils/placement/placement.js +0 -76
- package/es/index.js +0 -777
- package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
- package/es/pages/appointment-demo/index.js +0 -649
- package/es/pages/appointment-demo/input/index.js +0 -176
- package/es/pages/appointment-demo/popup/index.js +0 -113
- package/es/pages/appointment-demo/popup/placement.js +0 -44
- package/es/pages/group-management/components/checkbox/index.js +0 -28
- package/es/pages/group-management/components/input-form/index.js +0 -174
- package/es/pages/group-management/components/radio/index.js +0 -21
- package/es/pages/group-management/components/table/index.js +0 -174
- package/es/pages/group-management/groupInterface.js +0 -293
- package/es/pages/group-management/index.js +0 -13
- package/es/pages/group-management/page-view/empty.js +0 -111
- package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
- package/es/pages/group-management/page-view/index.js +0 -412
- package/es/pages/group-management/table/index.js +0 -104
- package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
- package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
- package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
- package/es/pages/group-management/tree/group-form/index.js +0 -207
- package/es/pages/group-management/tree/index.js +0 -168
- package/es/pages/group-management/tree/operation-panel.js +0 -41
- package/es/pages/group-management/tree/trigger-render.js +0 -99
- package/es/pages/like-ranking/mock.js +0 -366
- package/es/pages/okr-map/export-modules/index.js +0 -1
- package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
- package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
- package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
- package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
- package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
- package/es/pages/okr-map/hooks/useStorage.js +0 -96
- package/es/pages/okr-map/index.js +0 -18
- package/es/pages/okr-map/level2-search/depart.js +0 -53
- package/es/pages/okr-map/level2-search/group.js +0 -69
- package/es/pages/okr-map/level2-search/index.js +0 -51
- package/es/pages/okr-map/level2-search/level2-input.js +0 -46
- package/es/pages/okr-map/level2-search/user.js +0 -54
- package/es/pages/okr-map/no-okr/index.js +0 -24
- package/es/pages/okr-map/number-select/index.js +0 -81
- package/es/pages/okr-map/open-data/index.js +0 -115
- package/es/pages/okr-map/precls.js +0 -8
- package/es/pages/okr-map/request-apis.js +0 -76
- package/es/pages/okr-map/share-dialog/index.js +0 -122
- package/es/pages/okr-map/unsupport-ie/index.js +0 -83
- package/es/pages/okr-map/utils.js +0 -51
- package/es/utils/auth.js +0 -294
- package/es/utils/bs-global.js +0 -114
- package/es/utils/local-storage.js +0 -42
- package/es/utils/mblog.js +0 -33
- package/es/utils/mock-bsglobal.js +0 -1837
- package/es/utils/open-data.js +0 -341
- package/es/utils/request-v1.js +0 -115
- package/es/utils/request.js +0 -183
- package/es/utils/tools.js +0 -286
- package/yarn-error.log +0 -21252
|
@@ -9,20 +9,20 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
9
9
|
|
|
10
10
|
var getMenus = function getMenus() {
|
|
11
11
|
return [{
|
|
12
|
-
icon:
|
|
13
|
-
label: (0, _getLocale.getLocale)(
|
|
14
|
-
key:
|
|
15
|
-
href:
|
|
12
|
+
icon: "my-interview",
|
|
13
|
+
label: (0, _getLocale.getLocale)("Ooo_Mo_My1on1"),
|
|
14
|
+
key: "myInterview",
|
|
15
|
+
href: "#/interview?reactRouterName=myInterview"
|
|
16
16
|
}, {
|
|
17
|
-
icon:
|
|
18
|
-
label: (0, _getLocale.getLocale)(
|
|
19
|
-
key:
|
|
20
|
-
href:
|
|
17
|
+
icon: "todo",
|
|
18
|
+
label: (0, _getLocale.getLocale)("Ooo_Tas_ActionPlans"),
|
|
19
|
+
key: "todos",
|
|
20
|
+
href: "#/interview?reactRouterName=todos"
|
|
21
21
|
}, {
|
|
22
|
-
icon:
|
|
23
|
-
label: (0, _getLocale.getLocale)(
|
|
24
|
-
key:
|
|
25
|
-
href:
|
|
22
|
+
icon: "template",
|
|
23
|
+
label: (0, _getLocale.getLocale)("Ooo_Mo_Templates"),
|
|
24
|
+
key: "template",
|
|
25
|
+
href: "#/interview?reactRouterName=template"
|
|
26
26
|
}];
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -27,6 +27,8 @@ var _flipMenuCard = _interopRequireDefault(require("../../components/flip-menu-c
|
|
|
27
27
|
|
|
28
28
|
var _scrollbar = _interopRequireDefault(require("../../../scrollbar"));
|
|
29
29
|
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
33
|
|
|
32
34
|
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); }
|
|
@@ -106,13 +108,13 @@ function InterviewMenus(props) {
|
|
|
106
108
|
|
|
107
109
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
110
|
ref: menuRef,
|
|
109
|
-
className: (0, _classnames["default"])("".concat(preCls, "-
|
|
111
|
+
className: (0, _classnames["default"])("".concat(preCls, "-interview-menus"))
|
|
110
112
|
}, /*#__PURE__*/_react["default"].createElement(_flipMenuCard["default"], {
|
|
111
113
|
collapseMenu: collapseMenu,
|
|
112
114
|
ref: flipRef,
|
|
113
115
|
defaultWidth: _getLocale.isEn ? 210 : 180
|
|
114
116
|
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
115
|
-
className: (0, _classnames["default"])("".concat(preCls, "-
|
|
117
|
+
className: (0, _classnames["default"])("".concat(preCls, "-interview-menus-tree"))
|
|
116
118
|
}, /*#__PURE__*/_react["default"].createElement(_scrollbar["default"], null, /*#__PURE__*/_react["default"].createElement(_menuTree["default"], {
|
|
117
119
|
data: formateToTreeNodeData((0, _constant["default"])()),
|
|
118
120
|
selectedKeys: selectedMenuKeys,
|
|
@@ -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 prefix =
|
|
46
|
+
var prefix = 'titaui-nav-top-menu';
|
|
47
47
|
var popupAlign = {
|
|
48
48
|
offset: [0, 5],
|
|
49
49
|
overflow: {
|
|
@@ -67,7 +67,7 @@ var Menu = function Menu(_ref) {
|
|
|
67
67
|
feedNum = _useGlobalValue2[0];
|
|
68
68
|
|
|
69
69
|
var containerRef = (0, _react.useRef)();
|
|
70
|
-
var apiPath = (0, _bsGlobal.getBSGlobal)(
|
|
70
|
+
var apiPath = (0, _bsGlobal.getBSGlobal)('apiPath');
|
|
71
71
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
72
72
|
|
|
73
73
|
var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
|
|
@@ -76,23 +76,23 @@ var Menu = function Menu(_ref) {
|
|
|
76
76
|
|
|
77
77
|
var handleTracker = function handleTracker(menu) {
|
|
78
78
|
if (window.titaTracker) {
|
|
79
|
-
window.titaTracker(
|
|
79
|
+
window.titaTracker('action').record({
|
|
80
80
|
actionName: "\u5BFC\u822A\u83DC\u5355__".concat(menu.title),
|
|
81
|
-
actionGroup:
|
|
82
|
-
productName:
|
|
81
|
+
actionGroup: '导航菜单',
|
|
82
|
+
productName: '导航菜单'
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
var handleClickToLearning = function handleClickToLearning() {
|
|
88
|
-
window.open("".concat(apiPath, "/").concat(userId, "/eLearningHome#/"),
|
|
88
|
+
window.open("".concat(apiPath, "/").concat(userId, "/eLearningHome#/"), '_self');
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
var renderRawItem = function renderRawItem(menu) {
|
|
92
92
|
return /*#__PURE__*/_react["default"].createElement(_rcOverflow["default"].Item, {
|
|
93
93
|
component: "span"
|
|
94
94
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
95
|
-
condition: menu.title !==
|
|
95
|
+
condition: menu.title !== 'Learning'
|
|
96
96
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
97
97
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
98
98
|
href: "".concat(menu.href),
|
|
@@ -100,10 +100,10 @@ var Menu = function Menu(_ref) {
|
|
|
100
100
|
onClick: function onClick() {
|
|
101
101
|
return handleTracker(menu);
|
|
102
102
|
}
|
|
103
|
-
}, menu.title, menu.href ===
|
|
104
|
-
className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href ===
|
|
105
|
-
}, feedNum > 100 ?
|
|
106
|
-
condition: menu.title ===
|
|
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
107
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
108
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
109
109
|
onClick: function onClick() {
|
|
@@ -123,14 +123,14 @@ var Menu = function Menu(_ref) {
|
|
|
123
123
|
className: "".concat(prefix, "__hide-menus")
|
|
124
124
|
}, items.map(function (menu) {
|
|
125
125
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
126
|
-
condition: menu.title !==
|
|
126
|
+
condition: menu.title !== 'Learning'
|
|
127
127
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
128
128
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId === menu.id)),
|
|
129
129
|
href: "".concat(menu.href),
|
|
130
130
|
key: menu.id,
|
|
131
131
|
target: "_self"
|
|
132
132
|
}, menu.title)), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
133
|
-
condition: menu.title ===
|
|
133
|
+
condition: menu.title === 'Learning'
|
|
134
134
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
135
135
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId === menu.id)),
|
|
136
136
|
href: "".concat(apiPath, "/").concat(userId, "/eLearningHome#/"),
|
|
@@ -146,7 +146,7 @@ var Menu = function Menu(_ref) {
|
|
|
146
146
|
popupPlacement: "bottomLeft",
|
|
147
147
|
popupAlign: popupAlign
|
|
148
148
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
149
|
-
className: (0, _classnames["default"])(
|
|
149
|
+
className: (0, _classnames["default"])('tu-icon-diot', "".concat(prefix, "__more-icon"), _defineProperty({}, "".concat(prefix, "__more-icon--active"), isActiveHideMeun))
|
|
150
150
|
}));
|
|
151
151
|
};
|
|
152
152
|
|
|
@@ -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 =
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
120
|
-
window.open(_url,
|
|
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 =
|
|
198
|
+
var notificationType = 'e-report'; // E-周报提醒消息合并
|
|
193
199
|
|
|
194
200
|
var content = domRef.current.textContent;
|
|
195
201
|
|
|
196
|
-
if (messageType ==
|
|
202
|
+
if (messageType == '83') {
|
|
197
203
|
// 项目,目标进展提醒消息合并
|
|
198
|
-
notificationType =
|
|
204
|
+
notificationType = 'project-objective';
|
|
199
205
|
} else if (Number(messageType) > 93 && Number(messageType) <= 100) {
|
|
200
206
|
// OKR 仪表盘消息提醒
|
|
201
|
-
notificationType =
|
|
207
|
+
notificationType = 'okr-dashBoard';
|
|
202
208
|
} else if (messageType == 131 || messageType == 136) {
|
|
203
|
-
notificationType =
|
|
209
|
+
notificationType = 'performance';
|
|
204
210
|
content = item.content;
|
|
205
211
|
}
|
|
206
212
|
|
|
207
|
-
_drawerManager["default"].open(
|
|
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 =
|
|
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:
|
|
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, (
|
|
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
|
-
},
|
|
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:
|
|
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)(
|
|
104
|
+
}, (0, _getLocale.getLocale)('Tasks_Menu_Ignore')), /*#__PURE__*/_react["default"].createElement("a", {
|
|
67
105
|
target: "_blank",
|
|
68
|
-
href:
|
|
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)(
|
|
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 =
|
|
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)(
|
|
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 ===
|
|
89
|
+
return item.type === 'todoIndicator';
|
|
90
90
|
});
|
|
91
91
|
var informs = indicators.find(function (item) {
|
|
92
|
-
return item.type ===
|
|
92
|
+
return item.type === 'messageIndicator';
|
|
93
93
|
});
|
|
94
94
|
var replys = indicators.find(function (item) {
|
|
95
|
-
return item.type ===
|
|
95
|
+
return item.type === 'mLeaveandComment';
|
|
96
96
|
});
|
|
97
97
|
var reminds = indicators.find(function (item) {
|
|
98
|
-
return item.type ===
|
|
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(
|
|
118
|
+
setFirstTab('todos');
|
|
119
119
|
} else if (informs && !replys && informs.value) {
|
|
120
|
-
setFirstTab(
|
|
120
|
+
setFirstTab('informs');
|
|
121
121
|
} else if (replys && informs.value - replys.value === 0) {
|
|
122
|
-
setFirstTab(
|
|
122
|
+
setFirstTab('replys');
|
|
123
123
|
} else if (replys && informs.value - replys.value > 0) {
|
|
124
|
-
setFirstTab(
|
|
124
|
+
setFirstTab('informs');
|
|
125
125
|
} else if (reminds && reminds.value) {
|
|
126
|
-
setFirstTab(
|
|
126
|
+
setFirstTab('reminds');
|
|
127
127
|
} else {
|
|
128
|
-
setFirstTab(
|
|
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)(
|
|
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 ===
|
|
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 ===
|
|
148
|
+
return item.type === 'mZhufu';
|
|
149
149
|
});
|
|
150
150
|
var weeklyReportIndicator = indicators.filter(function (item) {
|
|
151
|
-
return item.type ===
|
|
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(
|
|
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: [
|
|
188
|
+
tabs: ['todos', 'informs', 'replys']
|
|
186
189
|
}),
|
|
187
190
|
popupVisible: popupVisible,
|
|
188
191
|
popupTransitionName: (0, _classnames["default"])("".concat(prefixCls, "__popup-right-bottom")),
|
|
@@ -51,7 +51,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
51
51
|
|
|
52
52
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
53
|
|
|
54
|
-
var prefixCls =
|
|
54
|
+
var prefixCls = 'titaui-user-message';
|
|
55
55
|
|
|
56
56
|
function UserMessage() {
|
|
57
57
|
var _useState = (0, _react.useState)(0),
|
|
@@ -79,7 +79,7 @@ function UserMessage() {
|
|
|
79
79
|
preData = _useState10[0],
|
|
80
80
|
setPreData = _useState10[1];
|
|
81
81
|
|
|
82
|
-
var _useState11 = (0, _react.useState)(
|
|
82
|
+
var _useState11 = (0, _react.useState)('todos'),
|
|
83
83
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
84
84
|
firstTab = _useState12[0],
|
|
85
85
|
setFirstTab = _useState12[1];
|
|
@@ -96,16 +96,16 @@ function UserMessage() {
|
|
|
96
96
|
setAllData(res.Data.indicators);
|
|
97
97
|
var indicators = res.Data.indicators;
|
|
98
98
|
var todos = indicators.find(function (item) {
|
|
99
|
-
return item.type ===
|
|
99
|
+
return item.type === 'todoIndicator';
|
|
100
100
|
});
|
|
101
101
|
var informs = indicators.find(function (item) {
|
|
102
|
-
return item.type ===
|
|
102
|
+
return item.type === 'messageIndicator';
|
|
103
103
|
});
|
|
104
104
|
var replys = indicators.find(function (item) {
|
|
105
|
-
return item.type ===
|
|
105
|
+
return item.type === 'mLeaveandComment';
|
|
106
106
|
});
|
|
107
107
|
var reminds = indicators.find(function (item) {
|
|
108
|
-
return item.type ===
|
|
108
|
+
return item.type === 'Tx';
|
|
109
109
|
});
|
|
110
110
|
var total = 0; // @与回复的数量在通知里面包含了
|
|
111
111
|
|
|
@@ -125,17 +125,17 @@ function UserMessage() {
|
|
|
125
125
|
setInfosNum(total);
|
|
126
126
|
|
|
127
127
|
if (todos && todos.value) {
|
|
128
|
-
setFirstTab(
|
|
128
|
+
setFirstTab('todos');
|
|
129
129
|
} else if (informs && !replys && informs.value) {
|
|
130
|
-
setFirstTab(
|
|
130
|
+
setFirstTab('informs');
|
|
131
131
|
} else if (replys && informs.value - replys.value === 0) {
|
|
132
|
-
setFirstTab(
|
|
132
|
+
setFirstTab('replys');
|
|
133
133
|
} else if (replys && informs.value - replys.value > 0) {
|
|
134
|
-
setFirstTab(
|
|
134
|
+
setFirstTab('informs');
|
|
135
135
|
} else if (reminds && reminds.value) {
|
|
136
|
-
setFirstTab(
|
|
136
|
+
setFirstTab('reminds');
|
|
137
137
|
} else {
|
|
138
|
-
setFirstTab(
|
|
138
|
+
setFirstTab('todos');
|
|
139
139
|
} // 判断是企业勋章
|
|
140
140
|
|
|
141
141
|
|
|
@@ -148,7 +148,7 @@ function UserMessage() {
|
|
|
148
148
|
} // upaas 勋章
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
var medalDetail = (0, _bsGlobal.getBSGlobal)(
|
|
151
|
+
var medalDetail = (0, _bsGlobal.getBSGlobal)('medalDetail');
|
|
152
152
|
|
|
153
153
|
if (medalDetail) {
|
|
154
154
|
window.util.upaasMedal()(medalDetail);
|
|
@@ -156,7 +156,7 @@ function UserMessage() {
|
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
var mRedPackIndicator = indicators.filter(function (item) {
|
|
159
|
-
return item.type ===
|
|
159
|
+
return item.type === 'mRedPackIndicator';
|
|
160
160
|
});
|
|
161
161
|
|
|
162
162
|
if (mRedPackIndicator.length > 0) {
|
|
@@ -165,10 +165,10 @@ function UserMessage() {
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
var blessIndicator = indicators.filter(function (item) {
|
|
168
|
-
return item.type ===
|
|
168
|
+
return item.type === 'mZhufu';
|
|
169
169
|
});
|
|
170
170
|
var weeklyReportIndicator = indicators.filter(function (item) {
|
|
171
|
-
return item.type ===
|
|
171
|
+
return item.type === 'mWeekStatisticIndicator';
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
if (blessIndicator.length === 1) {
|
|
@@ -185,11 +185,11 @@ function UserMessage() {
|
|
|
185
185
|
if (weeklyReportIndicator.length) {
|
|
186
186
|
var _window;
|
|
187
187
|
|
|
188
|
-
(_window = window) === null || _window === void 0 ? void 0 : _window.Talent.app.vent.trigger(
|
|
188
|
+
(_window = window) === null || _window === void 0 ? void 0 : _window.Talent.app.vent.trigger('open-weekly-report-modal');
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
var feedInfo = indicators.find(function (item) {
|
|
192
|
-
return item.type ===
|
|
192
|
+
return item.type === 'feedAboutMeIndicator';
|
|
193
193
|
});
|
|
194
194
|
|
|
195
195
|
if (feedInfo) {
|
|
@@ -206,7 +206,10 @@ function UserMessage() {
|
|
|
206
206
|
(0, _react.useEffect)(function () {
|
|
207
207
|
setPreData(infosNum);
|
|
208
208
|
handleIntervalRequestMessageInfo();
|
|
209
|
-
setInterval(handleIntervalRequestMessageInfo, 15000);
|
|
209
|
+
var interval = setInterval(handleIntervalRequestMessageInfo, 15000);
|
|
210
|
+
return function () {
|
|
211
|
+
return clearInterval(interval);
|
|
212
|
+
};
|
|
210
213
|
}, []);
|
|
211
214
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
212
215
|
popup: /*#__PURE__*/_react["default"].createElement(_msg["default"], {
|
|
@@ -227,7 +230,7 @@ function UserMessage() {
|
|
|
227
230
|
condition: infosNum !== 0
|
|
228
231
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
229
232
|
className: (0, _classnames["default"])("".concat(prefixCls, "__msg-total"))
|
|
230
|
-
}, infosNum > 100 ?
|
|
233
|
+
}, infosNum > 100 ? '99+' : infosNum)), /*#__PURE__*/_react["default"].createElement("img", {
|
|
231
234
|
src: _bell3x["default"],
|
|
232
235
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== preData)),
|
|
233
236
|
alt: ""
|