@titaui/pc 1.9.49 → 1.9.53
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/default.js +1 -1
- package/lib/components/avatar/name-avatar/index.js +1 -1
- package/lib/components/avatar/text-avatar/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +5 -5
- package/lib/components/change-okr-modal/Item.js +5 -5
- package/lib/components/change-okr-modal/filterTab.js +3 -3
- package/lib/components/change-okr-modal/index.js +5 -5
- package/lib/components/checkbox/index.js +1 -1
- package/lib/components/common-share/index.js +1 -1
- package/lib/components/common-share/publishMblog.js +3 -3
- package/lib/components/communication/CommunicationAttachments.js +3 -3
- package/lib/components/communication/CommunicationRecord.js +1 -1
- package/lib/components/communication/ConvertUserName.js +3 -3
- package/lib/components/communication/index.js +3 -3
- package/lib/components/confidence/index.js +1 -1
- package/lib/components/create-okr-modal/createCycle.js +3 -3
- package/lib/components/create-okr-modal/createSuccessCmp.js +1 -1
- package/lib/components/create-okr-modal/fields/date-cycle.js +1 -1
- package/lib/components/create-okr-modal/fields/o-new-name.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-case.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-create-suggest.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-type.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-visibility.js +1 -1
- package/lib/components/create-okr-modal/index.js +3 -3
- package/lib/components/create-okr-modal/kr-items/kr-item-weight.js +3 -3
- package/lib/components/create-okr-modal/kr-items/krDatas.js +3 -3
- package/lib/components/create-okr-modal/kr-items/krItem.js +3 -3
- package/lib/components/create-okr-modal/objectType.js +3 -3
- package/lib/components/create-okr-modal/request-api.js +2 -2
- package/lib/components/create-okr-modal/utils/helper.js +2 -2
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +3 -3
- package/lib/components/date-range-picker/index.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/dialog/index.js +3 -2
- package/lib/components/dialog-confirm/index.js +1 -0
- package/lib/components/drawer/headerAction.js +3 -3
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +3 -3
- package/lib/components/drawer/utils/useForceUpdate.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/drawer-manager/index.js +3 -3
- package/lib/components/drawer-manager/utils/useForceUpdate.js +1 -1
- package/lib/components/drop-selector/index.js +3 -3
- package/lib/components/dynamic/advertise/index.js +1 -1
- package/lib/components/dynamic/advertise/util.js +2 -2
- package/lib/components/dynamic/components/dynamic-search-input/index.js +1 -1
- package/lib/components/dynamic/components/first-level-tabs/index.js +1 -1
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +1 -1
- package/lib/components/dynamic/dynamic-liking/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +1 -1
- package/lib/components/dynamic/dynamic.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/my-team/index.js +1 -1
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +1 -1
- package/lib/components/dynamic/quick-operation/index.js +1 -1
- package/lib/components/dynamic/request-api.js +2 -2
- package/lib/components/e-priority/index.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +3 -3
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +3 -3
- package/lib/components/eReport/eReportShare/toast/index.js +3 -3
- package/lib/components/edit-kr-wight/EditKrWightModal.js +5 -5
- package/lib/components/edit-kr-wight/FormItemV2.js +3 -3
- package/lib/components/edit-kr-wight/utils.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/error-boundary/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/firework/index.js +2 -2
- package/lib/components/follower-visitor/index.js +1 -1
- package/lib/components/form/form-fields/department/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/duties/index.js +1 -1
- package/lib/components/form/form-fields/group/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +34 -9
- package/lib/components/form/form-fields/input-verification-code/index.js +1 -1
- package/lib/components/form/form-fields/password/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.js +1 -1
- package/lib/components/form/form-fields/textarea/index.js +1 -1
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/form/index.js +3 -3
- package/lib/components/grid-layout/commen-components/card-title.js +1 -1
- package/lib/components/grid-layout/commen-components/data-item.js +1 -1
- package/lib/components/grid-layout/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-layout/essay-component/index.js +1 -1
- package/lib/components/grid-layout/near-visitors/index.js +1 -1
- package/lib/components/grid-layout/near-visitors/visitor.js +1 -1
- package/lib/components/grid-layout/okr-align/index.js +1 -1
- package/lib/components/grid-layout/okr-progress/index.js +1 -1
- package/lib/components/grid-layout/okr-target/index.js +1 -1
- package/lib/components/grid-layout/over-view/index.js +1 -1
- package/lib/components/grid-layout/personal-info/index.js +1 -1
- package/lib/components/grid-layout/sub-employee-okr/index.js +1 -1
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +1 -1
- package/lib/components/grid-layout/util/click-link.js +2 -2
- package/lib/components/grid-layout/week-task/index.js +1 -1
- package/lib/components/grid-layout/words-cloud/index.js +1 -1
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/near-visitors/visitor.js +1 -1
- package/lib/components/grid-page/personal-info/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/hr-header/{arrow.png → img/arrow.png} +0 -0
- package/lib/components/hr-header/img/notice.png +0 -0
- package/lib/components/hr-header/index.css +30 -9
- package/lib/components/hr-header/index.js +3 -3
- package/lib/components/img-viewer/index.js +1 -1
- package/lib/components/keyword-search/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +3 -3
- package/lib/components/mblog/components/MblogAction.js +4 -13
- package/lib/components/mblog/components/MblogContent.js +3 -3
- package/lib/components/mblog/index.js +3 -3
- package/lib/components/menus/components/drag-resize/index.js +1 -1
- package/lib/components/menus/components/flip-menu-card/index.js +1 -1
- package/lib/components/menus/components/menu-card/index.js +3 -3
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/company-all.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/follower/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/user/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-concern.js +1 -1
- package/lib/components/menus/components/search-colleague/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/handle-highlight.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/depart-menus/helper.js +2 -2
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/menu-highlight.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +1 -1
- package/lib/components/menus/i18n.js +6 -2
- package/lib/components/nav-top/components/menu/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/remind/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.js +1 -1
- package/lib/components/nav-top/components/user-message/hrMessage.js +203 -0
- package/lib/components/nav-top/components/user-message/images/notice.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +87 -0
- package/lib/components/nav-top/components/user-message/index.js +1 -1
- package/lib/components/nav-top/components/user-message/msg/index.js +8 -6
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +1 -1
- package/lib/components/nav-top/components/version/index.js +1 -1
- package/lib/components/nav-top/index.js +1 -1
- package/lib/components/okr-detail/auth.js +3 -3
- package/lib/components/okr-detail/base-info/base-info.js +6 -4
- package/lib/components/okr-detail/base-info/o-desc/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/classify/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/common/border-wrapper/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/okr-type/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/other-infos.js +3 -3
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +1 -1
- package/lib/components/okr-detail/base-info/person/index.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +2 -2
- package/lib/components/okr-detail/components/ao-nice/index.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/index.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +3 -3
- package/lib/components/okr-detail/components/editable-input/index.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +1 -1
- package/lib/components/okr-detail/components/header/index.js +1 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +1 -1
- package/lib/components/okr-detail/components/header/o-cycle.js +1 -1
- package/lib/components/okr-detail/components/header/o-score.js +3 -3
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +1 -1
- package/lib/components/okr-detail/components/o-progress-update/index.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-type.js +1 -1
- package/lib/components/okr-detail/detail-footer/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/confirm.js +1 -1
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +1 -1
- package/lib/components/okr-detail/detail-header/index.js +3 -3
- package/lib/components/okr-detail/e-list/index.js +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/e-order.js +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +1 -1
- package/lib/components/okr-detail/e-list/search-form/index.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +2 -2
- package/lib/components/okr-detail/index.js +3 -3
- package/lib/components/okr-detail/okr-list/add-parent-okr.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/heart.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +3 -3
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +2 -2
- package/lib/components/okr-detail/okr-list/index.js +3 -3
- package/lib/components/okr-detail/request-apis.js +2 -2
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +1 -1
- package/lib/components/okr-detail/schedule/schedule.js +1 -1
- package/lib/components/okr-filter-drawer/filter-form.js +3 -3
- package/lib/components/okr-flow/child-node/fields/creator.js +1 -1
- package/lib/components/okr-flow/child-node/index.js +1 -1
- package/lib/components/okr-flow/child-node/work-node.js +1 -1
- package/lib/components/okr-flow/export-modal/index.js +1 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +3 -3
- package/lib/components/okr-flow/mini-map/index.js +1 -1
- package/lib/components/okr-flow/mini-map/map.js +1 -1
- package/lib/components/okr-flow/mini-map/mini-node.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +2 -2
- package/lib/components/okr-flow/okr-map/index.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +3 -3
- package/lib/components/okr-flow/request-apis.js +2 -2
- package/lib/components/okr-flow/root-node/index.js +1 -1
- package/lib/components/okr-period-selector/index.js +1 -1
- package/lib/components/okr-period-selector/select-cycle.js +3 -3
- package/lib/components/okr-progress/components/o-progress/index.js +1 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +3 -3
- package/lib/components/okr-progress/okr-progress/index.js +1 -1
- package/lib/components/okr-progress/request-apis.js +2 -2
- package/lib/components/okr-progress-detail/index.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/index.js +1 -1
- package/lib/components/okr-progress-modal/textarea/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -3
- package/lib/components/okr-review/ReviewPop/index.js +5 -5
- 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/okr-review/index.js +3 -3
- package/lib/components/okr-share/index.js +1 -1
- package/lib/components/okr-share/publishMblog.js +3 -3
- package/lib/components/okr-share/shareCardSelector.js +1 -1
- package/lib/components/okrcase-library/index.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/index.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-nav.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibray-header.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +2 -2
- package/lib/components/okrcase-library-card/index.js +1 -1
- package/lib/components/operation-records/OperationRecordItem.js +3 -3
- package/lib/components/operation-records/index.js +3 -3
- package/lib/components/password-input/index.js +1 -1
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/components/selector/index.js +3 -3
- package/lib/components/period-selector/helper/index.js +2 -2
- package/lib/components/period-selector/index.js +1 -1
- package/lib/components/photo-card/components/card/index.js +1 -1
- package/lib/components/photo-card/index.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/point-demo.js +1 -1
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +3 -3
- package/lib/components/praise-record/index.js +3 -3
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +2 -2
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/radio/radioGroup.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +3 -3
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/scrollbar/simplebar/simplebar.js +3 -3
- package/lib/components/scrollbar/simplebar-react.js +3 -3
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/search-input/index.js +3 -3
- package/lib/components/select/Option.js +5 -5
- package/lib/components/select/index.js +5 -5
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/selector-input/index.js +1 -1
- package/lib/components/slider-input/index.js +1 -1
- package/lib/components/stateless-dropdown/stateless-dropdown.js +1 -1
- package/lib/components/status-time/index.js +1 -1
- package/lib/components/stop-taking-modal/index.js +15 -5
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/radio.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +2 -2
- package/lib/components/task-relation-modal/search/category-select.js +1 -1
- package/lib/components/task-relation-modal/search/okr-status-select.js +1 -1
- package/lib/components/task-relation-modal/search/okr-type-select.js +1 -1
- package/lib/components/task-relation-modal/search/principal.js +1 -1
- package/lib/components/task-relation-modal/search/relation.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +3 -3
- package/lib/components/task-relation-modal/tree/category-tree/search-form.js +1 -1
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +3 -3
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +3 -3
- package/lib/components/task-relation-modal/tree/work-tree/index.js +3 -3
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +2 -2
- package/lib/components/tita-chart/charts/words-cloud.js +2 -2
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/tita-chart/hooks/useChart.js +3 -3
- package/lib/components/tita-chart/plots/liquid/index.js +1 -1
- package/lib/components/tita-chart/plots/pie/index.js +1 -1
- package/lib/components/tita-chart/plots/wordscloud/index.js +1 -1
- package/lib/components/toast/index.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +1 -1
- package/lib/components/update-modal/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +3 -3
- package/lib/components/upload/index.js +5 -5
- package/lib/components/upload-photo-modal/index.js +2 -2
- package/lib/components/upvote/index.js +3 -3
- package/lib/components/upvote/selector.js +1 -1
- package/lib/components/upvote/upvoteListModal.js +1 -1
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
- package/lib/components/user-selector/category-selector-panel/group-tree.js +1 -1
- package/lib/components/user-selector/category-selector-panel/index.js +1 -1
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/duties-selector/index.js +3 -3
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
- package/lib/components/user-selector/export-modules/group-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/group-selector/searched-panel.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/export-modules/single-selector/index.js +1 -1
- package/lib/components/user-selector/searched-panel/index.js +1 -1
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +1 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +1 -1
- package/lib/components/user-selector/selected-panel/index.js +1 -1
- package/lib/components/user-selector/utils.js +2 -2
- package/lib/components/version-change-modal/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +5 -5
- package/lib/components/viewer/index.js +5 -5
- package/lib/components/weekly-report/card.js +1 -1
- package/lib/components/weekly-report/index.js +1 -1
- package/lib/components/word-cloud/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/animate/animate.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -3
- package/lib/components-v1/buttonv2/ButtonRounded.js +3 -3
- package/lib/components-v1/buttonv2/DefaultButton.js +3 -3
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/confirm/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -3
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +3 -3
- package/lib/components-v1/placement/placement.js +3 -3
- package/lib/components-v1/placement/placementInner.js +5 -5
- package/lib/components-v1/pop/Pop.js +3 -3
- package/lib/components-v1/pop/PopInner.js +5 -5
- package/lib/components-v1/popConfirm/index.js +1 -1
- package/lib/components-v1/portals/Portals.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/progress/LineProgress.js +3 -3
- package/lib/components-v1/progress/index.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/radioGroup.js +3 -3
- package/lib/components-v1/search/cache.js +3 -3
- package/lib/components-v1/search/index.js +3 -3
- package/lib/components-v1/select/Option.js +5 -5
- package/lib/components-v1/select/index.js +5 -5
- package/lib/components-v1/tabs/index.js +3 -3
- package/lib/components-v1/textarea/index.js +3 -3
- package/lib/components-v1/transition/index.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/SearchBar.js +3 -3
- package/lib/components-v1/userSelector/components/SingleMode.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/components-v1/userSelector/index.js +3 -3
- package/lib/components-v1/utils/animate/animate.js +1 -1
- package/lib/pages/aha2021/index.js +4 -7
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/dynamic/index.js +1 -1
- package/lib/pages/group-management/components/checkbox/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/openData/index.js +3 -3
- package/lib/pages/group-management/components/table/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +2 -2
- package/lib/pages/group-management/page-view/empty.js +1 -1
- package/lib/pages/group-management/page-view/group-empty.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/page-view/index.js +1 -1
- package/lib/pages/group-management/page-view/loading/index.js +1 -1
- package/lib/pages/group-management/table/index.js +1 -1
- package/lib/pages/group-management/tree/add-group-dialog/index.js +1 -1
- package/lib/pages/group-management/tree/delete-group-dialog/index.js +1 -1
- package/lib/pages/group-management/tree/edit-group-dialog/index.js +1 -1
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/group-management/tree/operation-panel.js +1 -1
- package/lib/pages/group-management/tree/trigger-render.js +1 -1
- package/lib/pages/home/components/data-list/index.js +1 -1
- package/lib/pages/home/components/data-list/table/columns/progressAndRisk.js +1 -1
- package/lib/pages/home/components/data-list/table/index.js +1 -1
- package/lib/pages/home/components/guide/index.js +1 -1
- package/lib/pages/home/components/header/index.js +1 -1
- package/lib/pages/home-page-data-list/index.js +1 -1
- package/lib/pages/like-ranking/filter-buttons/department.js +1 -1
- package/lib/pages/like-ranking/filter-buttons/modular.js +1 -1
- package/lib/pages/like-ranking/filter-buttons/name.js +1 -1
- package/lib/pages/like-ranking/index.js +3 -3
- package/lib/pages/new-okr-list/header/comments.js +1 -1
- package/lib/pages/new-okr-list/header/create-okr.js +1 -1
- package/lib/pages/new-okr-list/header/filter.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +1 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- package/lib/pages/new-okr-list/init-cycle-setting.js +1 -1
- package/lib/pages/new-okr-list/keyword-search/index.js +1 -1
- package/lib/pages/new-okr-list/request-api.js +2 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +1 -1
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/level2-search/group.js +3 -3
- package/lib/pages/okr-map/level2-search/index.js +1 -1
- package/lib/pages/okr-map/level2-search/user.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +3 -3
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/pages/okr-map/unsupport-ie/index.js +1 -1
- package/lib/pages/personal-info/components/base-info/index.js +3 -3
- package/lib/pages/personal-info/components/edit-base-info/index.js +3 -3
- package/lib/pages/personal-info/components/person-photo/index.js +1 -1
- package/lib/utils/auth.js +3 -3
- package/lib/utils/local-storage.js +1 -1
- package/lib/utils/open-data.js +3 -3
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +2 -2
- package/package.json +2 -2
- package/src/components/dialog/index.js +1 -0
- package/src/components/dialog-confirm/index.js +1 -0
- package/src/components/dynamic/dynamic-like-ranking/index.scss +2 -1
- package/src/components/form/form-fields/input/index.tsx +29 -8
- package/src/components/hr-header/{arrow.png → img/arrow.png} +0 -0
- package/src/components/hr-header/img/notice.png +0 -0
- package/src/components/hr-header/index.scss +32 -13
- package/src/components/hr-header/index.tsx +2 -2
- package/src/components/mblog/components/MblogAction.tsx +2 -2
- package/src/components/nav-top/components/user-message/hrMessage.tsx +128 -0
- package/src/components/nav-top/components/user-message/images/notice.png +0 -0
- package/src/components/nav-top/components/user-message/index.scss +82 -0
- package/src/components/nav-top/components/user-message/msg/index.tsx +76 -40
- package/src/components/okr-detail/base-info/base-info.tsx +1 -1
- package/src/components/stop-taking-modal/index.tsx +23 -11
- package/src/components/upload-photo-modal/index.tsx +1 -1
- package/src/pages/aha2021/index.tsx +2 -6
- package/yarn-error.log +103 -0
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
padding: 0 30px;
|
|
8
8
|
flex-shrink: 0;
|
|
9
|
-
background-color: #
|
|
9
|
+
background-color: #3464e0;
|
|
10
10
|
&__title {
|
|
11
11
|
font-size: 14px;
|
|
12
12
|
font-weight: bold;
|
|
13
|
-
color: #
|
|
13
|
+
color: #ffffff;
|
|
14
14
|
margin-right: 98px;
|
|
15
15
|
}
|
|
16
|
-
&__menu-list{
|
|
16
|
+
&__menu-list {
|
|
17
17
|
display: flex;
|
|
18
18
|
align-items: stretch;
|
|
19
19
|
flex: 1;
|
|
@@ -26,24 +26,44 @@
|
|
|
26
26
|
justify-content: center;
|
|
27
27
|
margin: 0 5px;
|
|
28
28
|
& > a {
|
|
29
|
-
color: #
|
|
29
|
+
color: #fff;
|
|
30
30
|
}
|
|
31
31
|
img {
|
|
32
32
|
width: 12px;
|
|
33
33
|
height: 12px;
|
|
34
34
|
margin-left: 4px;
|
|
35
|
-
transition: transform .2s ease;
|
|
35
|
+
transition: transform 0.2s ease;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
&__user {
|
|
39
39
|
font-size: 14px;
|
|
40
|
-
color: #
|
|
40
|
+
color: #ffffff;
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
& > img {
|
|
43
43
|
width: 10px;
|
|
44
44
|
height: 10px;
|
|
45
45
|
margin-left: 4px;
|
|
46
|
-
transition: transform .2s ease;
|
|
46
|
+
transition: transform 0.2s ease;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&__notice {
|
|
50
|
+
width: 42px;
|
|
51
|
+
height: 42px;
|
|
52
|
+
background: linear-gradient(180deg, #4e90ff 0%, #2879ff 100%);
|
|
53
|
+
box-shadow: 0px 4px 12px 0px rgba(40, 121, 255, 0.3),
|
|
54
|
+
inset 0px 0px 6px 2px rgba(255, 255, 255, 0.5);
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
position: absolute;
|
|
61
|
+
bottom: 36px;
|
|
62
|
+
right: 24px;
|
|
63
|
+
z-index: 2;
|
|
64
|
+
img {
|
|
65
|
+
width: 32px;
|
|
66
|
+
height: 42px;
|
|
47
67
|
}
|
|
48
68
|
}
|
|
49
69
|
}
|
|
@@ -62,11 +82,10 @@
|
|
|
62
82
|
align-items: center;
|
|
63
83
|
justify-content: flex-start;
|
|
64
84
|
color: #666666;
|
|
65
|
-
&:hover{
|
|
66
|
-
background: #
|
|
67
|
-
color: #
|
|
85
|
+
&:hover {
|
|
86
|
+
background: #f5f7f9;
|
|
87
|
+
color: #3464e0;
|
|
68
88
|
}
|
|
69
|
-
|
|
70
89
|
}
|
|
71
90
|
&::before {
|
|
72
91
|
display: block;
|
|
@@ -77,6 +96,6 @@
|
|
|
77
96
|
border-top: none;
|
|
78
97
|
border-left: 6px solid transparent;
|
|
79
98
|
border-right: 6px solid transparent;
|
|
80
|
-
border-bottom: 6px solid #
|
|
99
|
+
border-bottom: 6px solid #fff;
|
|
81
100
|
}
|
|
82
|
-
}
|
|
101
|
+
}
|
|
@@ -87,7 +87,7 @@ function HrHeader({}: Props): ReactElement {
|
|
|
87
87
|
<div key="more" className={classNames(`${preCls}__item`)}>
|
|
88
88
|
<a>更多</a>
|
|
89
89
|
<img
|
|
90
|
-
src={require("./arrow.png")}
|
|
90
|
+
src={require("./img/arrow.png")}
|
|
91
91
|
style={{ transform: `rotate(${isShowMore ? 180 : 0}deg)` }}
|
|
92
92
|
/>
|
|
93
93
|
</div>
|
|
@@ -106,7 +106,7 @@ function HrHeader({}: Props): ReactElement {
|
|
|
106
106
|
>
|
|
107
107
|
<span className={`${preCls}__user`}>
|
|
108
108
|
{getLoginUserInfo().Name}
|
|
109
|
-
<img src={require("./arrow.png")} style={{ transform: `rotate(${isShowUserMenu ? 180 : 0}deg)` }} />
|
|
109
|
+
<img src={require("./img/arrow.png")} style={{ transform: `rotate(${isShowUserMenu ? 180 : 0}deg)` }} />
|
|
110
110
|
</span>
|
|
111
111
|
</Popup>
|
|
112
112
|
</div>
|
|
@@ -213,14 +213,14 @@ export default class MblogAction extends PureComponent<Props> {
|
|
|
213
213
|
)}
|
|
214
214
|
</LeftBtnGroupWrapper>
|
|
215
215
|
<RightBtnGroupWrapper className="action__right">
|
|
216
|
-
{this.props.isShowSendSms && !isLocal() && (
|
|
216
|
+
{/* {this.props.isShowSendSms && !isLocal() && (
|
|
217
217
|
<Tooltip container={document.body} content={this.props.sendSmsTipText}>
|
|
218
218
|
<RightBtn onMouseDown={this._sentMsgClickHandler}>
|
|
219
219
|
<span className={["checkbox-icon", isSendSms ? "tu-icon-check-active" : "tu-icon-xuan"].join(" ")} />
|
|
220
220
|
<span>{getLocale("Mod_SMS")}</span>
|
|
221
221
|
</RightBtn>
|
|
222
222
|
</Tooltip>
|
|
223
|
-
)}
|
|
223
|
+
)} */}
|
|
224
224
|
{
|
|
225
225
|
this.props.isShowRange && (
|
|
226
226
|
<BtnPrivate id="1" data-name="range" className={disableRangeSelect ? "disabled" : ""} disabled={disableRangeSelect}>
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import Popup from "../../../popup";
|
|
4
|
+
import ConditionRender from "../../../condition-render";
|
|
5
|
+
import Message from "./msg";
|
|
6
|
+
import { getBSGlobal, getUserInfo } from "../../../../utils/bs-global";
|
|
7
|
+
import { popupAlign } from "./constant";
|
|
8
|
+
import RedPack from "./components/red-pack";
|
|
9
|
+
import { getMessages } from "../../request.apis";
|
|
10
|
+
import Bell from "./images/bell@3x.png";
|
|
11
|
+
import "./index.scss";
|
|
12
|
+
|
|
13
|
+
const prefixCls = "titaui-user-message";
|
|
14
|
+
|
|
15
|
+
function HrMessage() {
|
|
16
|
+
const [infosNum, setInfosNum] = useState(0);
|
|
17
|
+
const [allData, setAllData] = useState([]);
|
|
18
|
+
const [redPackNum, setRedPackNum] = useState(0);
|
|
19
|
+
const [popupVisible, setPopupVisible] = useState(false);
|
|
20
|
+
const [preData, setPreData] = useState(0);
|
|
21
|
+
const [firstTab, setFirstTab] = useState("todos");
|
|
22
|
+
|
|
23
|
+
const handleShowInfos = () => {
|
|
24
|
+
setPopupVisible(true);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const handleIntervalRequestMessageInfo = () => {
|
|
28
|
+
getMessages().then((res) => {
|
|
29
|
+
if (res.Code === 1) {
|
|
30
|
+
setAllData(res.Data.indicators);
|
|
31
|
+
const { indicators } = res.Data;
|
|
32
|
+
const todos = indicators.find((item) => item.type === "todoIndicator");
|
|
33
|
+
const informs = indicators.find((item) => item.type === "messageIndicator");
|
|
34
|
+
const replys = indicators.find((item) => item.type === "mLeaveandComment");
|
|
35
|
+
const reminds = indicators.find((item) => item.type === "Tx");
|
|
36
|
+
let total = 0;
|
|
37
|
+
// @与回复的数量在通知里面包含了
|
|
38
|
+
if (reminds && reminds.value) {
|
|
39
|
+
total += reminds.value;
|
|
40
|
+
}
|
|
41
|
+
if (informs) {
|
|
42
|
+
total += informs.value;
|
|
43
|
+
}
|
|
44
|
+
if (todos) {
|
|
45
|
+
total += todos.value;
|
|
46
|
+
}
|
|
47
|
+
setPreData(infosNum);
|
|
48
|
+
setInfosNum(total);
|
|
49
|
+
if (todos && todos.value) {
|
|
50
|
+
setFirstTab("todos");
|
|
51
|
+
} else if (informs && !replys && informs.value) {
|
|
52
|
+
setFirstTab("informs");
|
|
53
|
+
} else if (replys && informs.value - replys.value === 0) {
|
|
54
|
+
setFirstTab("replys");
|
|
55
|
+
} else if (replys && informs.value - replys.value > 0) {
|
|
56
|
+
setFirstTab("informs");
|
|
57
|
+
} else if (reminds && reminds.value) {
|
|
58
|
+
setFirstTab("reminds");
|
|
59
|
+
} else {
|
|
60
|
+
setFirstTab("todos");
|
|
61
|
+
}
|
|
62
|
+
// 判断是企业勋章
|
|
63
|
+
const enterpriseMedalMsg = indicators.filter((item) => item.messageType === 1 && item.indicatorType === 1969002);
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
enterpriseMedalMsg.length > 0 && window.util.upaasEnterpriseMedal();
|
|
66
|
+
|
|
67
|
+
// upaas 勋章
|
|
68
|
+
const medalDetail = getBSGlobal("medalDetail");
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
medalDetail && window.util.upaasMedal()(medalDetail);
|
|
71
|
+
|
|
72
|
+
// 红包
|
|
73
|
+
const mRedPackIndicator = indicators.filter((item) => item.type === "mRedPackIndicator");
|
|
74
|
+
mRedPackIndicator.length > 0 && setRedPackNum(mRedPackIndicator[0].value);
|
|
75
|
+
|
|
76
|
+
// 祝福,拆礼物
|
|
77
|
+
const blessIndicator = indicators.filter((item) => item.type === "mZhufu");
|
|
78
|
+
const weeklyReportIndicator = indicators.filter((item) => item.type === "mWeekStatisticIndicator");
|
|
79
|
+
if (blessIndicator.length === 1) {
|
|
80
|
+
const userInfo = getUserInfo();
|
|
81
|
+
const options = {
|
|
82
|
+
needMask: true,
|
|
83
|
+
toUserId: userInfo.Id,
|
|
84
|
+
blessingTime: blessIndicator[0].latestUpdateDate,
|
|
85
|
+
};
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
window.util.openGift(options);
|
|
88
|
+
}
|
|
89
|
+
if (weeklyReportIndicator.length) {
|
|
90
|
+
window?.Talent.app.vent.trigger("open-weekly-report-modal");
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
setPreData(infosNum);
|
|
98
|
+
handleIntervalRequestMessageInfo();
|
|
99
|
+
setInterval(handleIntervalRequestMessageInfo, 15000);
|
|
100
|
+
}, []);
|
|
101
|
+
|
|
102
|
+
return (
|
|
103
|
+
<div>
|
|
104
|
+
<Popup
|
|
105
|
+
popup={(
|
|
106
|
+
<Message
|
|
107
|
+
onItemClick={setPopupVisible}
|
|
108
|
+
allData={allData}
|
|
109
|
+
handleIntervalRequestMessageInfo={handleIntervalRequestMessageInfo}
|
|
110
|
+
firstTab={firstTab}
|
|
111
|
+
tabs={["todos", "informs", "replys"]}
|
|
112
|
+
/>
|
|
113
|
+
)}
|
|
114
|
+
popupVisible={popupVisible}
|
|
115
|
+
popupTransitionName={classNames(`${prefixCls}__popup-right-bottom`)}
|
|
116
|
+
popupAlign={popupAlign}
|
|
117
|
+
mask={false}
|
|
118
|
+
destroyPopupOnHide
|
|
119
|
+
>
|
|
120
|
+
<div className={classNames(`${prefixCls}__hr-notice`)} onClick={handleShowInfos}>
|
|
121
|
+
<img src={require("./images/notice.png")} />
|
|
122
|
+
</div>
|
|
123
|
+
</Popup>
|
|
124
|
+
<RedPack redPackNum={redPackNum} />
|
|
125
|
+
</div>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
export default HrMessage;
|
|
Binary file
|
|
@@ -68,6 +68,60 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
&__popup-right-bottom {
|
|
72
|
+
&-enter {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
animation-duration: 0.2s;
|
|
75
|
+
animation-fill-mode: both;
|
|
76
|
+
animation-timing-function: linear;
|
|
77
|
+
animation-play-state: paused;
|
|
78
|
+
&-active {
|
|
79
|
+
animation-name: titaPopupInRB;
|
|
80
|
+
animation-play-state: running;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&-appear {
|
|
84
|
+
opacity: 0;
|
|
85
|
+
animation-duration: 0.2s;
|
|
86
|
+
animation-fill-mode: both;
|
|
87
|
+
animation-timing-function: linear;
|
|
88
|
+
animation-play-state: paused;
|
|
89
|
+
&-active {
|
|
90
|
+
animation-name: titaPopupInRB;
|
|
91
|
+
animation-play-state: running;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
&-leave {
|
|
95
|
+
animation-duration: 0.1s;
|
|
96
|
+
animation-fill-mode: both;
|
|
97
|
+
animation-timing-function: linear;
|
|
98
|
+
animation-play-state: paused;
|
|
99
|
+
&-active {
|
|
100
|
+
animation-name: titaPopupOutRB;
|
|
101
|
+
animation-play-state: running;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&__hr-notice {
|
|
106
|
+
width: 42px;
|
|
107
|
+
height: 42px;
|
|
108
|
+
background: linear-gradient(180deg, #4e90ff 0%, #2879ff 100%);
|
|
109
|
+
box-shadow: 0px 4px 12px 0px rgba(40, 121, 255, 0.3),
|
|
110
|
+
inset 0px 0px 6px 2px rgba(255, 255, 255, 0.5);
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
border-radius: 50%;
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
position: absolute;
|
|
117
|
+
bottom: 36px;
|
|
118
|
+
right: 24px;
|
|
119
|
+
z-index: 2;
|
|
120
|
+
img {
|
|
121
|
+
width: 32px;
|
|
122
|
+
height: 42px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
71
125
|
}
|
|
72
126
|
|
|
73
127
|
@keyframes titaPopupInRT {
|
|
@@ -84,6 +138,20 @@
|
|
|
84
138
|
}
|
|
85
139
|
}
|
|
86
140
|
|
|
141
|
+
@keyframes titaPopupInRB {
|
|
142
|
+
0% {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform-origin: 100% 100%;
|
|
145
|
+
transform: scale(0, 0);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
100% {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
transform-origin: 100% 100%;
|
|
151
|
+
transform: scale(1, 1);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
87
155
|
@keyframes titaPopupOutRT {
|
|
88
156
|
0% {
|
|
89
157
|
opacity: 1;
|
|
@@ -98,6 +166,20 @@
|
|
|
98
166
|
}
|
|
99
167
|
}
|
|
100
168
|
|
|
169
|
+
@keyframes titaPopupOutRB {
|
|
170
|
+
0% {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
transform-origin: 100% 100%;
|
|
173
|
+
transform: scale(1, 1);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
100% {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
transform-origin: 100% 100%;
|
|
179
|
+
transform: scale(0, 0);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
101
183
|
@keyframes bell-shake {
|
|
102
184
|
5%,
|
|
103
185
|
25%,
|
|
@@ -14,7 +14,11 @@ const prefixCls = "titaui-user-message-msg";
|
|
|
14
14
|
|
|
15
15
|
function UserMessage(props) {
|
|
16
16
|
const {
|
|
17
|
-
onItemClick,
|
|
17
|
+
onItemClick,
|
|
18
|
+
allData,
|
|
19
|
+
handleIntervalRequestMessageInfo,
|
|
20
|
+
firstTab,
|
|
21
|
+
tabs = ["todos", "informs", "replys", "reminds"],
|
|
18
22
|
} = props;
|
|
19
23
|
|
|
20
24
|
const [remindTotal, setRemindTotal] = useState(0);
|
|
@@ -55,48 +59,80 @@ function UserMessage(props) {
|
|
|
55
59
|
defaultActiveKey={firstTab}
|
|
56
60
|
animated={{ inkBar: true, tabPane: false }}
|
|
57
61
|
>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
{tabs.includes("todos") && (
|
|
63
|
+
<TabPane
|
|
64
|
+
tab={(
|
|
65
|
+
<TabTitle
|
|
66
|
+
data={getData("todoIndicator")}
|
|
67
|
+
title={getLocale("Top_Message_title_Todos")}
|
|
68
|
+
tab="todos"
|
|
69
|
+
/>
|
|
70
|
+
)}
|
|
71
|
+
key="todos"
|
|
72
|
+
>
|
|
73
|
+
<Todos onItemClick={onItemClick} />
|
|
74
|
+
</TabPane>
|
|
75
|
+
)}
|
|
76
|
+
{tabs.includes("informs") && (
|
|
77
|
+
<TabPane
|
|
78
|
+
tab={(
|
|
79
|
+
<TabTitle
|
|
80
|
+
data={
|
|
81
|
+
getData("messageIndicator") - getData("mLeaveandComment")
|
|
82
|
+
}
|
|
83
|
+
title={getLocale("Menu_Title_Notice")}
|
|
84
|
+
tab="informs"
|
|
85
|
+
/>
|
|
86
|
+
)}
|
|
87
|
+
key="informs"
|
|
88
|
+
>
|
|
89
|
+
<Inform
|
|
90
|
+
onItemClick={onItemClick}
|
|
91
|
+
handleIntervalRequestMessageInfo={
|
|
92
|
+
handleIntervalRequestMessageInfo
|
|
93
|
+
}
|
|
64
94
|
/>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
95
|
+
</TabPane>
|
|
96
|
+
)}
|
|
97
|
+
{tabs.includes("replys") && (
|
|
98
|
+
<TabPane
|
|
99
|
+
tab={(
|
|
100
|
+
<TabTitle
|
|
101
|
+
data={getData("mLeaveandComment")}
|
|
102
|
+
title={getLocale("Top_Message_title_@&Replies")}
|
|
103
|
+
tab="replys"
|
|
104
|
+
/>
|
|
105
|
+
)}
|
|
106
|
+
key="replys"
|
|
107
|
+
>
|
|
108
|
+
<Reply
|
|
109
|
+
onItemClick={onItemClick}
|
|
110
|
+
handleIntervalRequestMessageInfo={
|
|
111
|
+
handleIntervalRequestMessageInfo
|
|
112
|
+
}
|
|
76
113
|
/>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
114
|
+
</TabPane>
|
|
115
|
+
)}
|
|
116
|
+
{tabs.includes("reminds") && (
|
|
117
|
+
<TabPane
|
|
118
|
+
tab={(
|
|
119
|
+
<TabTitle
|
|
120
|
+
data={remindTotal}
|
|
121
|
+
title={getLocale("Top_Message_title_AlarmReminders")}
|
|
122
|
+
tab="reminds"
|
|
123
|
+
/>
|
|
124
|
+
)}
|
|
125
|
+
key="reminds"
|
|
126
|
+
>
|
|
127
|
+
<Remind
|
|
128
|
+
onItemClick={onItemClick}
|
|
129
|
+
handleIntervalRequestMessageInfo={
|
|
130
|
+
handleIntervalRequestMessageInfo
|
|
131
|
+
}
|
|
132
|
+
handleIgnoreTask={handleIgnoreTask}
|
|
88
133
|
/>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
>
|
|
92
|
-
<Reply onItemClick={onItemClick} handleIntervalRequestMessageInfo={handleIntervalRequestMessageInfo} />
|
|
93
|
-
</TabPane>
|
|
94
|
-
<TabPane
|
|
95
|
-
tab={<TabTitle data={remindTotal} title={getLocale("Top_Message_title_AlarmReminders")} tab="reminds" />}
|
|
96
|
-
key="reminds"
|
|
97
|
-
>
|
|
98
|
-
<Remind onItemClick={onItemClick} handleIntervalRequestMessageInfo={handleIntervalRequestMessageInfo} handleIgnoreTask={handleIgnoreTask} />
|
|
99
|
-
</TabPane>
|
|
134
|
+
</TabPane>
|
|
135
|
+
)}
|
|
100
136
|
</Tabs>
|
|
101
137
|
</div>
|
|
102
138
|
</div>
|
|
@@ -313,7 +313,7 @@ const BaseInfo: FC<IBaseInfoProps> = ({ okrId }) => {
|
|
|
313
313
|
const data = resp.Data;
|
|
314
314
|
setGeneralPrincipalUser(formatAvatarInfo(data[0].users)[0]);
|
|
315
315
|
setParticipant(formatAvatarInfo(data[1].users));
|
|
316
|
-
setFollowers(formatAvatarInfo(data[2]
|
|
316
|
+
setFollowers(formatAvatarInfo(data[2]?.users || []));
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}, []);
|
|
@@ -9,29 +9,34 @@ const storage = new localStorage();
|
|
|
9
9
|
|
|
10
10
|
function StopTakingModel(): ReactElement {
|
|
11
11
|
const [visible, setVisible] = useState<any>(() => {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
|
|
12
|
+
const stopTaking: any = storage.getItem("stopTaking");
|
|
13
|
+
if (stopTaking?.date) {
|
|
14
|
+
const oldDate = new Date(stopTaking?.date).getDate();
|
|
15
|
+
const newDate = new Date().getDate();
|
|
16
|
+
if (newDate > oldDate) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
return false;
|
|
15
20
|
}
|
|
16
21
|
return true;
|
|
17
22
|
});
|
|
18
23
|
|
|
19
24
|
const handleClose = useCallback(() => {
|
|
20
25
|
setVisible(false);
|
|
21
|
-
storage.setItem("stopTaking", false);
|
|
26
|
+
storage.setItem("stopTaking", { bol: false, date: new Date() });
|
|
22
27
|
}, []);
|
|
23
28
|
|
|
24
29
|
return (
|
|
25
30
|
<Modal visible={visible} customContent footer={null} width={420}>
|
|
26
|
-
|
|
27
31
|
<div className={preCls}>
|
|
28
32
|
<div className={`${preCls}__background`} />
|
|
29
|
-
<span
|
|
33
|
+
<span
|
|
34
|
+
className={`tu-icon-close ${preCls}__close`}
|
|
35
|
+
onClick={handleClose}
|
|
36
|
+
/>
|
|
30
37
|
<div className={`${preCls}__head`}>亲爱的用户</div>
|
|
31
38
|
<div className={`${preCls}__content`}>
|
|
32
|
-
<div className={`${preCls}__content-line1`}>
|
|
33
|
-
您好~
|
|
34
|
-
</div>
|
|
39
|
+
<div className={`${preCls}__content-line1`}>您好~</div>
|
|
35
40
|
<div className={`${preCls}__content-line2`}>
|
|
36
41
|
为了给您带来更好的安全与稳定体验,Tita
|
|
37
42
|
将在周五晚上进行升级,预计耗时一天,介时将无法使用
|
|
@@ -39,10 +44,17 @@ function StopTakingModel(): ReactElement {
|
|
|
39
44
|
</div>
|
|
40
45
|
<div className={`${preCls}__content-line3`}>
|
|
41
46
|
升级时间:
|
|
42
|
-
<span style={{ color: "#2879ff", fontWeight: 500 }}>
|
|
47
|
+
<span style={{ color: "#2879ff", fontWeight: 500 }}>
|
|
48
|
+
1.21 (周五) 23:00 - 1.22 (周六) 23:59
|
|
49
|
+
</span>
|
|
43
50
|
</div>
|
|
44
51
|
</div>
|
|
45
|
-
<div
|
|
52
|
+
<div
|
|
53
|
+
className={`${preCls}__action`}
|
|
54
|
+
onClick={() => window.open("https://wiki.tita.com/x/RICeAQ")}
|
|
55
|
+
>
|
|
56
|
+
了解详情
|
|
57
|
+
</div>
|
|
46
58
|
</div>
|
|
47
59
|
</Modal>
|
|
48
60
|
);
|
|
@@ -200,7 +200,7 @@ function ChangePhoto(props: Props) {
|
|
|
200
200
|
</ConditionRender>
|
|
201
201
|
<ConditionRender condition={type === "browser"}>
|
|
202
202
|
<img src={cropData} className={`${preCls}__preview-browser-img`} />
|
|
203
|
-
<span className={`${preCls}__preview-browser-name`}
|
|
203
|
+
<span className={`${preCls}__preview-browser-name`}>Tita</span>
|
|
204
204
|
<span className={`${preCls}__preview-browser-title`}>{item?.previewTitle}</span>
|
|
205
205
|
</ConditionRender>
|
|
206
206
|
</div>
|
|
@@ -10,6 +10,7 @@ import { isOfficialSite, isPlatform } from "../../utils/platform";
|
|
|
10
10
|
import "./index.scss";
|
|
11
11
|
import { getTenantInfo } from "../../utils/helpers";
|
|
12
12
|
import HrHeader from "../../components/hr-header";
|
|
13
|
+
import HrMessage from "../../components/nav-top/components/user-message/hrMessage";
|
|
13
14
|
|
|
14
15
|
const preCls = "titaui-aha-2021";
|
|
15
16
|
|
|
@@ -87,12 +88,7 @@ function PageLayout(props) {
|
|
|
87
88
|
</div>
|
|
88
89
|
)}
|
|
89
90
|
{isTencentHr && (
|
|
90
|
-
|
|
91
|
-
className={classNames(`${preCls}__notice`)}
|
|
92
|
-
onClick={onClickNotice}
|
|
93
|
-
>
|
|
94
|
-
<img src={require("./img/notice.png")} />
|
|
95
|
-
</div>
|
|
91
|
+
<HrMessage />
|
|
96
92
|
)}
|
|
97
93
|
<PointDemo />
|
|
98
94
|
</div>
|