@titaui/pc 1.8.61 → 1.9.3
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/icon-avatar/index.js +1 -1
- package/lib/components/button/default-button/index.js +3 -1
- package/lib/components/button/rect-btn/index.js +4 -2
- package/lib/components/button/text-btn/index.js +3 -1
- package/lib/components/cascader/index.js +3 -1
- package/lib/components/change-okr-modal/Filter.js +54 -108
- package/lib/components/change-okr-modal/Item.js +12 -14
- package/lib/components/change-okr-modal/constant.js +185 -0
- package/lib/components/change-okr-modal/filterTab.js +0 -2
- package/lib/components/change-okr-modal/index.js +9 -9
- package/lib/components/common-share/publishMblog.js +4 -2
- package/lib/components/communication/CommunicationAttachments.js +8 -6
- package/lib/components/communication/CommunicationRecord.js +7 -8
- package/lib/components/communication/index.js +6 -4
- package/lib/components/confidence/index.js +4 -2
- package/lib/components/create-okr-modal/constant.js +37 -11
- package/lib/components/create-okr-modal/createCycle.js +6 -4
- package/lib/components/create-okr-modal/createSuccessCmp.js +8 -6
- package/lib/components/create-okr-modal/fields/date-cycle.js +5 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +14 -11
- package/lib/components/create-okr-modal/fields/okr-case.js +5 -3
- package/lib/components/create-okr-modal/fields/okr-classify.js +14 -9
- package/lib/components/create-okr-modal/fields/okr-create-suggest.js +5 -3
- package/lib/components/create-okr-modal/fields/okr-parent.js +4 -2
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-type.js +6 -4
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +8 -6
- package/lib/components/create-okr-modal/fields/okr-visibility.js +28 -21
- package/lib/components/create-okr-modal/index.js +32 -24
- package/lib/components/create-okr-modal/kr-items/kr-item-weight.js +3 -1
- package/lib/components/create-okr-modal/kr-items/krDatas.js +5 -4
- package/lib/components/create-okr-modal/kr-items/krItem.js +3 -1
- package/lib/components/create-okr-modal/objectType.js +22 -18
- package/lib/components/create-okr-modal/style.js +1 -1
- package/lib/components/date-picker/CalendarBody.js +3 -1
- package/lib/components/delete-confirm-pop/ConfirmPop.js +15 -16
- package/lib/components/dialog/index.css +1 -3
- package/lib/components/dialog/index.js +6 -3
- package/lib/components/dialog-confirm/index.css +8 -6
- package/lib/components/drawer/index.js +4 -2
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.css +2 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +3 -1
- package/lib/components/dynamic/components/dynamic-search-input/index.js +7 -5
- package/lib/components/dynamic/constant.js +18 -16
- package/lib/components/dynamic/dynamic-item/components/header/index.js +14 -12
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +7 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +7 -4
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -3
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +9 -7
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +10 -7
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +6 -4
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +10 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/index.js +4 -2
- package/lib/components/dynamic/dynamic-like-ranking/index.js +8 -6
- package/lib/components/dynamic/dynamic-like-ranking/item.js +3 -1
- package/lib/components/dynamic/dynamic-liking/index.js +3 -1
- package/lib/components/dynamic/dynamic-liking/item.js +4 -2
- package/lib/components/dynamic/dynamic-list/index.js +3 -1
- package/lib/components/dynamic/dynamic-topping/index.js +3 -1
- package/lib/components/dynamic/dynamic-topping/item.js +4 -2
- package/lib/components/dynamic/dynamic.js +4 -2
- package/lib/components/dynamic/my-team/index.js +5 -3
- package/lib/components/dynamic/online-broadcast/index.js +4 -2
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +3 -1
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +3 -1
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +3 -1
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +3 -1
- package/lib/components/dynamic/quick-operation/index.js +3 -1
- package/lib/components/dynamic/util.js +15 -13
- package/lib/components/e-priority/index.js +7 -5
- package/lib/components/eReport/eReportLists/reportList.js +9 -7
- package/lib/components/eReport/eReportShare/index.js +4 -2
- package/lib/components/eReport/eReportShare/toast/index.js +3 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +6 -4
- package/lib/components/ereport-list/index.js +7 -5
- package/lib/components/file-list/components/single-file/index.js +5 -3
- package/lib/components/form/form-fields/department/department-input.js +3 -1
- package/lib/components/form/form-fields/duties/duties-input.js +3 -1
- package/lib/components/form/form-fields/input/index.js +3 -0
- package/lib/components/form/form-fields/input-verification-code/index.css +1 -0
- package/lib/components/form/form-fields/input-verification-code/index.js +71 -29
- package/lib/components/form/form-fields/password/index.css +11 -1
- package/lib/components/form/form-fields/password/index.js +24 -11
- package/lib/components/form/form-fields/password/yincang-s.svg +7 -0
- package/lib/components/form/form-fields/user/user-input.js +3 -1
- package/lib/components/grid-layout/near-visitors/index.js +4 -2
- package/lib/components/grid-layout/okr-align/index.js +8 -6
- package/lib/components/grid-layout/okr-progress/index.js +9 -7
- package/lib/components/grid-layout/okr-target/index.js +13 -11
- package/lib/components/grid-layout/over-view/index.js +5 -3
- package/lib/components/grid-layout/personal-info/index.js +5 -3
- package/lib/components/grid-layout/sub-employee-okr/index.js +5 -3
- package/lib/components/grid-layout/week-task/index.js +10 -8
- package/lib/components/grid-layout/words-cloud/index.js +5 -3
- package/lib/components/grid-page/personal-info/index.js +5 -3
- package/lib/components/img-viewer/index.js +6 -4
- package/lib/components/mblog/components/ConfirmPop.js +3 -1
- package/lib/components/mblog/components/MblogAction.js +13 -16
- package/lib/components/mblog/index.js +23 -21
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/menus/components/drag-resize/index.js +4 -2
- package/lib/components/menus/components/flip-menu-card/dark.svg +15 -0
- package/lib/components/menus/components/flip-menu-card/flip-back-header.js +3 -1
- package/lib/components/menus/components/flip-menu-card/index.css +21 -0
- package/lib/components/menus/components/flip-menu-card/index.js +45 -15
- package/lib/components/menus/components/flip-menu-card/light.svg +15 -0
- package/lib/components/menus/components/menu-tree/tree-node/assess-manage.js +6 -1
- package/lib/components/menus/components/menu-tree/tree-node/assess-template.js +6 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +2 -0
- package/lib/components/menus/components/menu-tree/tree-node/no-follower.js +3 -1
- package/lib/components/menus/components/search-colleague/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.css +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +5 -3
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +4 -2
- package/lib/components/menus/export-modules/manage-menus/index.css +0 -12
- package/lib/components/menus/export-modules/manage-menus/index.js +33 -4
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +4 -2
- package/lib/components/menus/export-modules/okr-menus/index.js +3 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +3 -1
- package/lib/components/menus/i18n.js +36 -40
- package/lib/components/nav-top/components/user-message/components/empty/index.js +4 -2
- package/lib/components/nav-top/components/user-message/components/remind/index.js +3 -1
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +5 -3
- package/lib/components/nav-top/components/user-message/msg/index.css +4 -0
- package/lib/components/nav-top/components/user-message/msg/index.js +6 -4
- package/lib/components/nav-top/components/user-message/utils.js +3 -1
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.css +22 -1
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +44 -3
- package/lib/components/nav-top/components/user-own-menu/utils.js +60 -26
- package/lib/components/nav-top/components/version/index.css +11 -3
- package/lib/components/nav-top/components/version/index.js +4 -2
- package/lib/components/nav-top/constant.js +11 -5
- package/lib/components/nav-top/request.apis.js +8 -2
- package/lib/components/okr-detail/base-info/base-info.js +16 -13
- package/lib/components/okr-detail/base-info/o-desc/index.js +10 -14
- package/lib/components/okr-detail/base-info/other-infos/classify/index.js +15 -10
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/okr-type/index.js +6 -4
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +12 -10
- package/lib/components/okr-detail/base-info/person/index.js +3 -1
- package/lib/components/okr-detail/components/ao-nice/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +4 -2
- 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 +22 -18
- package/lib/components/okr-detail/components/header/edit-name.js +5 -3
- package/lib/components/okr-detail/components/header/index.js +3 -1
- package/lib/components/okr-detail/components/header/o-name.js +3 -1
- package/lib/components/okr-detail/components/o-classify.js +6 -4
- package/lib/components/okr-detail/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +12 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +9 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +5 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +9 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +9 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +15 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +5 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +12 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +13 -9
- package/lib/components/okr-detail/components/okr-type.js +5 -3
- package/lib/components/okr-detail/components/score/index.js +3 -1
- package/lib/components/okr-detail/detail-footer/index.js +6 -4
- package/lib/components/okr-detail/detail-header/actions.js +13 -11
- package/lib/components/okr-detail/detail-header/confirm.js +4 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +20 -16
- package/lib/components/okr-detail/detail-header/index.js +8 -6
- package/lib/components/okr-detail/e-list/search-form/fields/e-order.js +7 -5
- package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +10 -8
- package/lib/components/okr-detail/e-list/search-form/fields/e-user.js +3 -1
- package/lib/components/okr-detail/e-list/search-form/index.js +6 -4
- package/lib/components/okr-detail/e-list/util.js +5 -3
- package/lib/components/okr-detail/index.js +8 -6
- package/lib/components/okr-detail/okr-list/add-parent-okr.js +3 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +6 -4
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/empty/index.js +6 -4
- package/lib/components/okr-detail/okr-list/index.js +9 -5
- package/lib/components/okr-detail/okr-list/warp-parent-okr.js +3 -1
- package/lib/components/okr-detail/request-apis.js +3 -1
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +18 -16
- package/lib/components/okr-detail/schedule/util.js +3 -1
- package/lib/components/okr-filter-drawer/filter-form.js +68 -55
- package/lib/components/okr-filter-drawer/index.css +7 -3
- package/lib/components/okr-filter-drawer/index.js +4 -8
- package/lib/components/okr-flow/child-node/work-node.js +18 -14
- package/lib/components/okr-flow/empty/index.js +3 -1
- package/lib/components/okr-flow/export-modal/index.js +4 -2
- package/lib/components/okr-flow/mini-map/index.js +5 -3
- package/lib/components/okr-period-selector/select-cycle.js +6 -4
- package/lib/components/okr-progress/components/kr-progress/index.js +3 -1
- package/lib/components/okr-progress/components/o-progress/index.js +18 -16
- package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-progress/request-apis.js +3 -1
- package/lib/components/okr-progress/util.js +3 -1
- package/lib/components/okr-progress-detail/index.js +10 -7
- package/lib/components/okr-progress-detail/utils.js +5 -3
- package/lib/components/okr-progress-modal/helper.js +126 -81
- package/lib/components/okr-progress-modal/index.js +14 -37
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +18 -16
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/index.js +8 -6
- package/lib/components/okr-review/components/ReviewItem/index.js +5 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +9 -7
- package/lib/components/okr-review/index.js +6 -4
- package/lib/components/okr-share/pink-card/card.js +3 -1
- package/lib/components/okr-share/publishMblog.js +4 -2
- package/lib/components/okr-share/shareCardSelector.js +4 -2
- package/lib/components/okrcase-library/index.js +4 -2
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.js +6 -4
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +3 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibray-header.js +4 -2
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -2
- package/lib/components/okrcase-library-card/index.js +6 -4
- package/lib/components/operation-records/index.js +3 -1
- package/lib/components/pagination/locale/en_US.js +22 -0
- package/lib/components/pagination/locale/zh_CN.js +22 -0
- package/lib/components/pagination/pagination.js +8 -1
- package/lib/components/password-input/index.js +4 -2
- package/lib/components/period-selector/common.js +19 -9
- package/lib/components/period-selector/components/selector/index.js +45 -18
- package/lib/components/period-selector/mockData.js +97 -83
- package/lib/components/photo-card/components/card/index.js +6 -4
- package/lib/components/photo-card/index.js +4 -2
- package/lib/components/point-demo/constant.js +72 -0
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/index.js +12 -66
- package/lib/components/praise-record/index.js +4 -2
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +1 -1
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +9 -6
- package/lib/components/range-picker-pop/index.js +7 -6
- package/lib/components/range-selector-pop/RangeList.js +5 -3
- package/lib/components/scrollbar/simplebar/index.js +2 -0
- package/lib/components/scrollbar/simplebar/scrollbar-width.js +2 -0
- package/lib/components/select-layer/index.js +3 -1
- package/lib/components/select-tags/index.js +3 -1
- package/lib/components/selector-input/index.js +3 -1
- package/lib/components/slider-input/index.js +3 -1
- package/lib/components/status-time/index.js +5 -3
- package/lib/components/table/index.js +3 -1
- package/lib/components/task-relation-modal/index.js +8 -6
- package/lib/components/task-relation-modal/search/category-select.js +6 -4
- package/lib/components/task-relation-modal/search/okr-status-select.js +6 -4
- package/lib/components/task-relation-modal/search/okr-type-select.js +8 -6
- package/lib/components/task-relation-modal/search/principal.js +4 -2
- package/lib/components/task-relation-modal/search/relation.js +8 -6
- package/lib/components/task-relation-modal/tree/category-tree/index.js +5 -3
- package/lib/components/task-relation-modal/tree/category-tree/search-form.js +3 -1
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +6 -4
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +3 -1
- package/lib/components/task-relation-modal/tree/work-tree/index.js +7 -5
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +3 -1
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +5 -3
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +4 -2
- package/lib/components/tita-chart/charts/liquid-ball.js +3 -1
- package/lib/components/tita-chart/charts/words-cloud.js +8 -6
- package/lib/components/update-modal/index.js +3 -1
- package/lib/components/upload/components/uploadedPreview.js +8 -6
- package/lib/components/upload/index.js +5 -3
- package/lib/components/upload-photo-modal/index.css +2 -4
- package/lib/components/upvote/attitude.js +31 -25
- package/lib/components/upvote/index.js +7 -5
- package/lib/components/upvote/selector.js +1 -1
- package/lib/components/upvote/upvoteListModal.js +3 -1
- package/lib/components/user-selector/action-btns/btn-cancel.js +3 -1
- package/lib/components/user-selector/action-btns/btn-ok.js +3 -1
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -0
- package/lib/components/user-selector/category-selector-panel/index.js +6 -21
- package/lib/components/user-selector/constant.js +29 -0
- package/lib/components/user-selector/empty/group.js +3 -1
- package/lib/components/user-selector/empty/index.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +5 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +3 -1
- package/lib/components/user-selector/searched-panel/index.js +5 -3
- package/lib/components/user-selector/selected-panel/index.js +8 -6
- package/lib/components/version-change-modal/constant.js +35 -29
- package/lib/components/version-change-modal/index.js +6 -4
- package/lib/components/weekly-report/index.js +4 -2
- package/lib/components/weekly-report/statistics.js +3 -1
- package/lib/components/word-cloud/index.js +1 -1
- package/lib/components-v1/confirm/index.js +4 -2
- package/lib/components-v1/popConfirm/index.js +4 -2
- package/lib/components-v1/progress/CircleProgress.js +1 -1
- package/lib/components-v1/radio/radioGroup.js +1 -1
- package/lib/components-v1/search/index.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +4 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/index.js +8 -6
- package/lib/components-v1/userSelector/components/SearchBar.js +3 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
- package/lib/components-v1/userSelector/index.js +5 -3
- package/lib/pages/appointment-demo/drop-down-box/index.js +3 -1
- package/lib/pages/appointment-demo/index.js +18 -16
- package/lib/pages/group-management/page-view/empty.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +6 -4
- package/lib/pages/group-management/table/index.js +4 -2
- package/lib/pages/group-management/tree/add-group-dialog/index.js +4 -2
- package/lib/pages/group-management/tree/delete-group-dialog/index.js +4 -2
- package/lib/pages/group-management/tree/edit-group-dialog/index.js +4 -2
- package/lib/pages/group-management/tree/group-form/index.js +4 -2
- package/lib/pages/group-management/tree/operation-panel.js +4 -2
- package/lib/pages/group-management/tree/trigger-render.js +3 -1
- package/lib/pages/home/components/data-list/index.js +13 -11
- package/lib/pages/home/components/data-list/nav-selector/index.js +15 -13
- package/lib/pages/home/components/data-list/table/columns/index.js +16 -14
- package/lib/pages/home/components/data-list/table/columns/progressAndRisk.js +7 -5
- package/lib/pages/home/components/data-list/table/utils-function.js +3 -1
- package/lib/pages/home/components/guide/index.js +14 -12
- package/lib/pages/home/components/header/index.js +3 -1
- package/lib/pages/home-page-data-list/index.js +13 -11
- package/lib/pages/like-ranking/column.js +8 -6
- package/lib/pages/like-ranking/filter-buttons/department.js +3 -1
- package/lib/pages/like-ranking/filter-buttons/group.js +3 -1
- package/lib/pages/like-ranking/filter-buttons/modular.js +20 -14
- package/lib/pages/like-ranking/filter-buttons/name.js +3 -1
- package/lib/pages/like-ranking/filter-buttons/timer.js +3 -1
- package/lib/pages/like-ranking/index.js +10 -8
- package/lib/pages/new-okr-list/header/comments.js +3 -1
- package/lib/pages/new-okr-list/header/create-okr.js +3 -1
- package/lib/pages/new-okr-list/header/depart-title.js +4 -2
- package/lib/pages/new-okr-list/header/filter.js +3 -1
- package/lib/pages/new-okr-list/header/index.js +3 -1
- package/lib/pages/new-okr-list/header/relation-title.js +4 -2
- package/lib/pages/new-okr-list/index.js +4 -2
- package/lib/pages/new-okr-list/keyword-search/index.js +3 -1
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +16 -14
- package/lib/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +6 -4
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +6 -4
- package/lib/pages/okr-map/level2-search/level2-input.js +3 -1
- package/lib/pages/okr-map/no-okr/index.js +3 -1
- package/lib/pages/okr-map/number-select/index.js +3 -1
- package/lib/pages/okr-map/share-dialog/index.js +8 -6
- package/lib/pages/personal-info/components/base-info/index.css +2 -2
- package/lib/pages/personal-info/components/base-info/index.js +8 -6
- package/lib/pages/personal-info/components/edit-base-info/index.js +19 -9
- package/lib/utils/date-test-change.js +5 -3
- package/lib/utils/format-time.js +5 -3
- package/lib/utils/getLocale.js +17 -0
- package/package.json +2 -1
- package/src/components/avatar/icon-avatar/index.tsx +2 -2
- package/src/components/button/default-button/index.tsx +3 -2
- package/src/components/button/rect-btn/index.tsx +2 -1
- package/src/components/button/text-btn/index.tsx +2 -1
- package/src/components/cascader/index.tsx +2 -1
- package/src/components/change-okr-modal/Filter.tsx +49 -109
- package/src/components/change-okr-modal/Item.tsx +17 -14
- package/src/components/change-okr-modal/constant.ts +156 -0
- package/src/components/change-okr-modal/filterTab.tsx +0 -2
- package/src/components/change-okr-modal/index.tsx +8 -9
- package/src/components/common-share/publishMblog.tsx +3 -2
- package/src/components/communication/CommunicationAttachments.tsx +7 -6
- package/src/components/communication/CommunicationRecord.tsx +6 -8
- package/src/components/communication/index.tsx +5 -4
- package/src/components/confidence/index.tsx +3 -2
- package/src/components/create-okr-modal/constant.ts +21 -12
- package/src/components/create-okr-modal/createCycle.tsx +5 -6
- package/src/components/create-okr-modal/createSuccessCmp.tsx +7 -6
- package/src/components/create-okr-modal/fields/date-cycle.tsx +4 -3
- package/src/components/create-okr-modal/fields/o-new-name.tsx +13 -10
- package/src/components/create-okr-modal/fields/okr-case.tsx +3 -2
- package/src/components/create-okr-modal/fields/okr-classify.tsx +11 -7
- package/src/components/create-okr-modal/fields/okr-create-suggest.tsx +5 -4
- package/src/components/create-okr-modal/fields/okr-parent.tsx +4 -3
- package/src/components/create-okr-modal/fields/okr-type-detail.tsx +6 -5
- package/src/components/create-okr-modal/fields/okr-type.tsx +6 -5
- package/src/components/create-okr-modal/fields/okr-visibility-detail.tsx +7 -6
- package/src/components/create-okr-modal/fields/okr-visibility.tsx +19 -14
- package/src/components/create-okr-modal/index.tsx +32 -27
- package/src/components/create-okr-modal/kr-items/kr-item-weight.tsx +2 -1
- package/src/components/create-okr-modal/kr-items/krDatas.tsx +4 -3
- package/src/components/create-okr-modal/kr-items/krItem.tsx +2 -1
- package/src/components/create-okr-modal/objectType.tsx +14 -11
- package/src/components/create-okr-modal/style.ts +1 -1
- package/src/components/date-picker/CalendarBody.js +8 -7
- package/src/components/delete-confirm-pop/ConfirmPop.tsx +7 -17
- package/src/components/dialog/index.js +4 -3
- package/src/components/dialog/index.scss +1 -3
- package/src/components/dialog-confirm/index.scss +8 -6
- package/src/components/drawer/index.tsx +3 -2
- package/src/components/drawer-manager/index.tsx +1 -1
- package/src/components/drop-selector/index.scss +2 -0
- package/src/components/dynamic/components/dynamic-search-input/index.scss +3 -1
- package/src/components/dynamic/components/dynamic-search-input/index.tsx +6 -5
- package/src/components/dynamic/constant.ts +23 -21
- package/src/components/dynamic/dynamic-item/components/header/index.tsx +13 -12
- package/src/components/dynamic/dynamic-item/dynamic-align/index.tsx +3 -2
- package/src/components/dynamic/dynamic-item/dynamic-announcement/index.tsx +2 -1
- package/src/components/dynamic/dynamic-item/dynamic-assessment/index.tsx +3 -2
- package/src/components/dynamic/dynamic-item/dynamic-create-o/index.tsx +6 -5
- package/src/components/dynamic/dynamic-item/dynamic-kr/index.tsx +4 -2
- package/src/components/dynamic/dynamic-item/dynamic-milestone/constant.ts +6 -4
- package/src/components/dynamic/dynamic-item/dynamic-milestone/index.tsx +16 -3
- package/src/components/dynamic/dynamic-item/dynamic-progress/index.tsx +8 -7
- package/src/components/dynamic/dynamic-item/dynamic-project/constant.ts +9 -7
- package/src/components/dynamic/dynamic-item/dynamic-project/index.tsx +2 -1
- package/src/components/dynamic/dynamic-item/dynamic-relative/index.tsx +3 -2
- package/src/components/dynamic/dynamic-item/dynamic-replay/index.tsx +4 -3
- package/src/components/dynamic/dynamic-item/dynamic-report/index.tsx +4 -3
- package/src/components/dynamic/dynamic-item/dynamic-reward/index.tsx +5 -4
- package/src/components/dynamic/dynamic-item/dynamic-share/index.tsx +2 -1
- package/src/components/dynamic/dynamic-item/dynamic-task/constant.ts +9 -7
- package/src/components/dynamic/dynamic-item/dynamic-task/index.tsx +4 -3
- package/src/components/dynamic/dynamic-item/index.tsx +3 -2
- package/src/components/dynamic/dynamic-like-ranking/index.tsx +7 -6
- package/src/components/dynamic/dynamic-like-ranking/item.tsx +2 -2
- package/src/components/dynamic/dynamic-liking/index.tsx +2 -1
- package/src/components/dynamic/dynamic-liking/item.tsx +3 -2
- package/src/components/dynamic/dynamic-list/index.tsx +2 -1
- package/src/components/dynamic/dynamic-topping/index.tsx +2 -1
- package/src/components/dynamic/dynamic-topping/item.tsx +3 -2
- package/src/components/dynamic/dynamic.tsx +3 -2
- package/src/components/dynamic/my-team/index.tsx +4 -3
- package/src/components/dynamic/online-broadcast/index.tsx +3 -2
- package/src/components/dynamic/quick-operation/components/create-announcement/index.tsx +2 -1
- package/src/components/dynamic/quick-operation/components/create-okr/index.tsx +3 -2
- package/src/components/dynamic/quick-operation/components/create-share/index.tsx +2 -1
- package/src/components/dynamic/quick-operation/components/create-task/index.tsx +2 -1
- package/src/components/dynamic/quick-operation/index.tsx +2 -1
- package/src/components/dynamic/util.ts +14 -13
- package/src/components/e-priority/index.js +6 -5
- package/src/components/eReport/eReportLists/reportList.tsx +8 -7
- package/src/components/eReport/eReportShare/index.tsx +3 -2
- package/src/components/eReport/eReportShare/toast/index.tsx +2 -1
- package/src/components/edit-kr-wight/EditKrWightModal.tsx +5 -4
- package/src/components/ereport-list/index.tsx +6 -5
- package/src/components/file-list/components/single-file/index.tsx +4 -3
- package/src/components/form/form-fields/department/department-input.tsx +2 -1
- package/src/components/form/form-fields/duties/duties-input.tsx +2 -1
- package/src/components/form/form-fields/input/index.tsx +5 -0
- package/src/components/form/form-fields/input-verification-code/index.scss +1 -0
- package/src/components/form/form-fields/input-verification-code/index.tsx +16 -11
- package/src/components/form/form-fields/password/index.scss +10 -1
- package/src/components/form/form-fields/password/index.tsx +15 -5
- package/src/components/form/form-fields/password/yincang-s.svg +7 -0
- package/src/components/form/form-fields/user/user-input.tsx +2 -1
- package/src/components/grid-layout/near-visitors/index.tsx +3 -2
- package/src/components/grid-layout/okr-align/index.tsx +7 -6
- package/src/components/grid-layout/okr-progress/index.tsx +8 -7
- package/src/components/grid-layout/okr-target/index.tsx +12 -11
- package/src/components/grid-layout/over-view/index.tsx +4 -4
- package/src/components/grid-layout/personal-info/index.tsx +4 -3
- package/src/components/grid-layout/sub-employee-okr/index.tsx +4 -3
- package/src/components/grid-layout/week-task/index.tsx +8 -7
- package/src/components/grid-layout/words-cloud/index.tsx +4 -3
- package/src/components/grid-page/personal-info/index.tsx +4 -3
- package/src/components/img-viewer/index.tsx +5 -4
- package/src/components/mblog/components/ConfirmPop.tsx +2 -1
- package/src/components/mblog/components/MblogAction.tsx +14 -15
- package/src/components/mblog/index.tsx +17 -26
- package/src/components/mblog/style.ts +5 -5
- package/src/components/menus/components/drag-resize/index.tsx +3 -2
- package/src/components/menus/components/flip-menu-card/dark.svg +15 -0
- package/src/components/menus/components/flip-menu-card/flip-back-header.tsx +2 -1
- package/src/components/menus/components/flip-menu-card/index.scss +19 -0
- package/src/components/menus/components/flip-menu-card/index.tsx +173 -125
- package/src/components/menus/components/flip-menu-card/light.svg +15 -0
- package/src/components/menus/components/menu-tree/tree-node/assess-manage.tsx +4 -1
- package/src/components/menus/components/menu-tree/tree-node/assess-template.tsx +4 -1
- package/src/components/menus/components/menu-tree/tree-node/index.scss +2 -0
- package/src/components/menus/components/menu-tree/tree-node/no-follower.tsx +2 -1
- package/src/components/menus/components/search-colleague/index.tsx +1 -1
- package/src/components/menus/export-modules/appraisal-menus/index.scss +1 -1
- package/src/components/menus/export-modules/appraisal-menus/index.tsx +4 -3
- package/src/components/menus/export-modules/appraisal-menus/menus.ts +3 -2
- package/src/components/menus/export-modules/manage-menus/index.scss +0 -13
- package/src/components/menus/export-modules/manage-menus/index.tsx +41 -10
- package/src/components/menus/export-modules/okr-menus/depart-menus/index.tsx +3 -2
- package/src/components/menus/export-modules/okr-menus/index.tsx +2 -1
- package/src/components/menus/export-modules/okr-menus/menus.ts +2 -1
- package/src/components/menus/i18n.ts +43 -46
- package/src/components/nav-top/components/user-message/components/empty/index.tsx +3 -2
- package/src/components/nav-top/components/user-message/components/remind/index.tsx +2 -1
- package/src/components/nav-top/components/user-message/components/remind/remind-item.tsx +4 -3
- package/src/components/nav-top/components/user-message/msg/index.scss +3 -0
- package/src/components/nav-top/components/user-message/msg/index.tsx +5 -4
- package/src/components/nav-top/components/user-message/utils.ts +3 -1
- package/src/components/nav-top/components/user-own-menu/components/own-menu/index.scss +21 -1
- package/src/components/nav-top/components/user-own-menu/components/own-menu/index.tsx +64 -3
- package/src/components/nav-top/components/user-own-menu/utils.ts +71 -46
- package/src/components/nav-top/components/version/index.scss +11 -3
- package/src/components/nav-top/components/version/index.tsx +4 -3
- package/src/components/nav-top/constant.ts +7 -7
- package/src/components/nav-top/interface.ts +2 -1
- package/src/components/nav-top/request.apis.ts +4 -0
- package/src/components/okr-detail/base-info/base-info.tsx +13 -14
- package/src/components/okr-detail/base-info/o-desc/index.tsx +8 -15
- package/src/components/okr-detail/base-info/other-infos/classify/index.tsx +7 -6
- package/src/components/okr-detail/base-info/other-infos/date-cycle/index.tsx +2 -1
- package/src/components/okr-detail/base-info/other-infos/okr-type/index.tsx +5 -4
- package/src/components/okr-detail/base-info/other-infos/principal/index.tsx +2 -1
- package/src/components/okr-detail/base-info/other-infos/visibility/index.tsx +11 -10
- package/src/components/okr-detail/base-info/person/index.tsx +2 -1
- package/src/components/okr-detail/components/ao-nice/index.js +3 -3
- package/src/components/okr-detail/components/base-okr-type/confirm/confirm.tsx +3 -2
- package/src/components/okr-detail/components/base-okr-type/index.tsx +1 -1
- package/src/components/okr-detail/components/base-okr-type/object-type.tsx +11 -10
- package/src/components/okr-detail/components/header/edit-name.tsx +4 -3
- package/src/components/okr-detail/components/header/index.js +2 -1
- package/src/components/okr-detail/components/header/o-name.tsx +2 -1
- package/src/components/okr-detail/components/o-classify.tsx +5 -4
- package/src/components/okr-detail/components/o-progress-update/index.tsx +3 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -10
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/constant.ts +8 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +2 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +6 -5
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +4 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +7 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +8 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +8 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +7 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +3 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +14 -13
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +10 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +12 -9
- package/src/components/okr-detail/components/okr-type.tsx +5 -3
- package/src/components/okr-detail/components/score/index.tsx +2 -1
- package/src/components/okr-detail/detail-footer/index.tsx +5 -4
- package/src/components/okr-detail/detail-header/actions.tsx +12 -11
- package/src/components/okr-detail/detail-header/confirm.tsx +5 -6
- package/src/components/okr-detail/detail-header/delete-confirm/delete-confirm.tsx +8 -7
- package/src/components/okr-detail/detail-header/index.tsx +7 -6
- package/src/components/okr-detail/e-list/search-form/fields/e-order.js +6 -5
- package/src/components/okr-detail/e-list/search-form/fields/e-status.js +9 -8
- package/src/components/okr-detail/e-list/search-form/fields/e-user.js +2 -1
- package/src/components/okr-detail/e-list/search-form/index.js +5 -5
- package/src/components/okr-detail/e-list/util.ts +4 -3
- package/src/components/okr-detail/index.js +7 -6
- package/src/components/okr-detail/okr-list/add-parent-okr.js +2 -1
- package/src/components/okr-detail/okr-list/create-kr-item/index.tsx +6 -5
- package/src/components/okr-detail/okr-list/create-kr-item/style.ts +1 -1
- package/src/components/okr-detail/okr-list/empty/index.js +5 -4
- package/src/components/okr-detail/okr-list/index.js +6 -5
- package/src/components/okr-detail/okr-list/warp-parent-okr.js +2 -1
- package/src/components/okr-detail/request-apis.ts +2 -1
- package/src/components/okr-detail/schedule/components/kr-progress/index.tsx +2 -1
- package/src/components/okr-detail/schedule/components/o-progress/index.tsx +17 -16
- package/src/components/okr-detail/schedule/util.ts +3 -1
- package/src/components/okr-filter-drawer/filter-form.tsx +83 -79
- package/src/components/okr-filter-drawer/index.scss +6 -4
- package/src/components/okr-filter-drawer/index.tsx +4 -7
- package/src/components/okr-flow/child-node/work-node.js +11 -8
- package/src/components/okr-flow/empty/index.js +2 -1
- package/src/components/okr-flow/export-modal/index.tsx +3 -2
- package/src/components/okr-flow/mini-map/index.js +4 -3
- package/src/components/okr-period-selector/select-cycle.tsx +12 -12
- package/src/components/okr-progress/components/kr-progress/index.tsx +2 -1
- package/src/components/okr-progress/components/o-progress/index.tsx +17 -16
- package/src/components/okr-progress/components/o-progress-update/index.tsx +3 -2
- package/src/components/okr-progress/request-apis.ts +2 -1
- package/src/components/okr-progress/util.ts +2 -1
- package/src/components/okr-progress-detail/index.tsx +110 -55
- package/src/components/okr-progress-detail/utils.ts +4 -3
- package/src/components/okr-progress-modal/helper.js +104 -64
- package/src/components/okr-progress-modal/index.tsx +15 -50
- package/src/components/okr-review/ReviewPop/components/ReviewBody/index.tsx +19 -17
- package/src/components/okr-review/ReviewPop/components/ReviewBody/style.ts +1 -1
- package/src/components/okr-review/ReviewPop/index.tsx +7 -7
- package/src/components/okr-review/components/ReviewItem/index.tsx +4 -3
- package/src/components/okr-review/components/confirm-pop/ConfirmPop.tsx +4 -6
- package/src/components/okr-review/index.tsx +5 -4
- package/src/components/okr-share/pink-card/card.tsx +2 -1
- package/src/components/okr-share/publishMblog.tsx +3 -4
- package/src/components/okr-share/shareCardSelector.tsx +5 -4
- package/src/components/okrcase-library/index.tsx +4 -3
- package/src/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.tsx +5 -4
- package/src/components/okrcase-library/okrcases-components/caseLibrary-main.tsx +2 -1
- package/src/components/okrcase-library/okrcases-components/caseLibray-header.tsx +23 -17
- package/src/components/okrcase-library/okrcases-components/submitOkr-dialog.tsx +3 -2
- package/src/components/okrcase-library-card/index.tsx +5 -6
- package/src/components/operation-records/index.tsx +2 -1
- package/src/components/pagination/locale/en_US.js +16 -0
- package/src/components/pagination/locale/zh_CN.js +16 -0
- package/src/components/pagination/pagination.tsx +4 -0
- package/src/components/password-input/index.tsx +8 -11
- package/src/components/period-selector/common.ts +29 -12
- package/src/components/period-selector/components/selector/index.tsx +44 -18
- package/src/components/period-selector/mockData.ts +30 -28
- package/src/components/photo-card/components/card/index.tsx +5 -4
- package/src/components/photo-card/index.tsx +3 -2
- package/src/components/point-demo/constant.ts +27 -0
- package/src/components/point-demo/drop-down-box/index.js +1 -1
- package/src/components/point-demo/index.js +13 -33
- package/src/components/praise-record/index.tsx +3 -2
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.scss +1 -1
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +7 -5
- package/src/components/range-picker-pop/index.js +6 -10
- package/src/components/range-selector-pop/RangeList.tsx +5 -4
- package/src/components/scrollbar/simplebar/index.js +1 -0
- package/src/components/scrollbar/simplebar/scrollbar-width.js +1 -0
- package/src/components/select-layer/index.tsx +2 -1
- package/src/components/select-tags/index.tsx +2 -1
- package/src/components/selector-input/index.js +2 -1
- package/src/components/slider-input/index.js +2 -1
- package/src/components/status-time/index.tsx +4 -3
- package/src/components/table/index.js +3 -2
- package/src/components/task-relation-modal/index.tsx +7 -6
- package/src/components/task-relation-modal/search/category-select.tsx +5 -4
- package/src/components/task-relation-modal/search/okr-status-select.tsx +5 -4
- package/src/components/task-relation-modal/search/okr-type-select.tsx +7 -6
- package/src/components/task-relation-modal/search/principal.tsx +4 -2
- package/src/components/task-relation-modal/search/relation.tsx +7 -6
- package/src/components/task-relation-modal/tree/category-tree/index.tsx +4 -3
- package/src/components/task-relation-modal/tree/category-tree/search-form.tsx +2 -1
- package/src/components/task-relation-modal/tree/okr-tree/index.tsx +5 -4
- package/src/components/task-relation-modal/tree/okr-tree/search-form.tsx +3 -2
- package/src/components/task-relation-modal/tree/work-tree/index.tsx +6 -5
- package/src/components/task-relation-modal/tree/work-tree/search-form.tsx +2 -1
- package/src/components/task-relation-modal/tree-node/milestone-node/index.tsx +4 -3
- package/src/components/task-relation-modal/tree-node/work-node/index.tsx +3 -2
- package/src/components/tita-chart/charts/liquid-ball.tsx +2 -1
- package/src/components/tita-chart/charts/words-cloud.tsx +7 -6
- package/src/components/update-modal/index.tsx +2 -1
- package/src/components/upload/components/uploadedPreview.tsx +7 -6
- package/src/components/upload/index.tsx +3 -4
- package/src/components/upload-photo-modal/index.scss +2 -4
- package/src/components/upvote/attitude.ts +36 -32
- package/src/components/upvote/index.tsx +7 -6
- package/src/components/upvote/selector.tsx +2 -2
- package/src/components/upvote/upvoteListModal.tsx +2 -1
- package/src/components/user-selector/action-btns/btn-cancel.js +2 -1
- package/src/components/user-selector/action-btns/btn-ok.js +2 -1
- package/src/components/user-selector/category-selector-panel/depart-tree.tsx +3 -2
- package/src/components/user-selector/category-selector-panel/index.tsx +3 -13
- package/src/components/user-selector/constant.ts +16 -0
- package/src/components/user-selector/empty/group.js +2 -2
- package/src/components/user-selector/empty/index.js +2 -1
- package/src/components/user-selector/export-modules/field-tree-selector/index.scss +1 -1
- package/src/components/user-selector/export-modules/field-tree-selector/index.tsx +5 -2
- package/src/components/user-selector/export-modules/multiple-user-selector--bak/index.js +2 -1
- package/src/components/user-selector/searched-panel/index.js +4 -4
- package/src/components/user-selector/selected-panel/index.tsx +7 -6
- package/src/components/version-change-modal/constant.ts +54 -44
- package/src/components/version-change-modal/index.tsx +5 -4
- package/src/components/weekly-report/index.tsx +4 -3
- package/src/components/weekly-report/statistics.tsx +2 -1
- package/src/components/word-cloud/index.js +1 -1
- package/src/components-v1/confirm/index.tsx +3 -2
- package/src/components-v1/popConfirm/index.tsx +3 -2
- package/src/components-v1/progress/CircleProgress.js +1 -1
- package/src/components-v1/radio/radioGroup.tsx +1 -1
- package/src/components-v1/search/index.tsx +2 -4
- package/src/components-v1/userSelector/components/MultiMode/CommonList.tsx +3 -2
- package/src/components-v1/userSelector/components/MultiMode/DepartmentList.tsx +1 -1
- package/src/components-v1/userSelector/components/MultiMode/SubsList.tsx +1 -1
- package/src/components-v1/userSelector/components/MultiMode/index.tsx +7 -6
- package/src/components-v1/userSelector/components/SearchBar.tsx +2 -1
- package/src/components-v1/userSelector/components/SingleMode.tsx +1 -1
- package/src/components-v1/userSelector/index.tsx +4 -3
- package/src/index.d.ts +2 -0
- package/src/pages/appointment-demo/drop-down-box/index.js +2 -1
- package/src/pages/appointment-demo/index.js +17 -16
- package/src/pages/group-management/page-view/empty.js +1 -1
- package/src/pages/group-management/page-view/importGroupStaff/index.js +5 -4
- package/src/pages/group-management/table/index.js +3 -2
- package/src/pages/group-management/tree/add-group-dialog/index.js +3 -2
- package/src/pages/group-management/tree/delete-group-dialog/index.js +3 -2
- package/src/pages/group-management/tree/edit-group-dialog/index.js +3 -2
- package/src/pages/group-management/tree/group-form/index.js +3 -2
- package/src/pages/group-management/tree/operation-panel.js +3 -2
- package/src/pages/group-management/tree/trigger-render.js +2 -1
- package/src/pages/home/components/data-list/index.tsx +12 -11
- package/src/pages/home/components/data-list/nav-selector/index.tsx +14 -14
- package/src/pages/home/components/data-list/table/columns/index.tsx +15 -14
- package/src/pages/home/components/data-list/table/columns/progressAndRisk.tsx +6 -5
- package/src/pages/home/components/data-list/table/utils-function.ts +2 -1
- package/src/pages/home/components/guide/index.tsx +13 -12
- package/src/pages/home/components/header/index.tsx +2 -1
- package/src/pages/home-page-data-list/index.tsx +12 -11
- package/src/pages/like-ranking/column.tsx +9 -9
- package/src/pages/like-ranking/filter-buttons/department.tsx +3 -2
- package/src/pages/like-ranking/filter-buttons/group.tsx +2 -1
- package/src/pages/like-ranking/filter-buttons/modular.tsx +11 -8
- package/src/pages/like-ranking/filter-buttons/name.tsx +2 -1
- package/src/pages/like-ranking/filter-buttons/timer.tsx +2 -1
- package/src/pages/like-ranking/index.tsx +9 -8
- package/src/pages/new-okr-list/context.ts +1 -1
- package/src/pages/new-okr-list/header/comments.tsx +2 -1
- package/src/pages/new-okr-list/header/create-okr.tsx +2 -1
- package/src/pages/new-okr-list/header/depart-title.tsx +3 -2
- package/src/pages/new-okr-list/header/filter.tsx +2 -1
- package/src/pages/new-okr-list/header/index.tsx +2 -1
- package/src/pages/new-okr-list/header/relation-title.tsx +3 -2
- package/src/pages/new-okr-list/index.tsx +4 -3
- package/src/pages/new-okr-list/keyword-search/index.tsx +2 -1
- package/src/pages/okr-map/export-modules/okr-map/header/index.js +15 -14
- package/src/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +5 -4
- package/src/pages/okr-map/export-modules/share-okr-page/header/index.js +5 -4
- package/src/pages/okr-map/level2-search/level2-input.js +2 -1
- package/src/pages/okr-map/no-okr/index.js +2 -1
- package/src/pages/okr-map/number-select/index.js +2 -1
- package/src/pages/okr-map/share-dialog/index.js +7 -6
- package/src/pages/personal-info/components/base-info/index.scss +2 -2
- package/src/pages/personal-info/components/base-info/index.tsx +6 -5
- package/src/pages/personal-info/components/edit-base-info/index.tsx +17 -15
- package/src/utils/date-test-change.ts +5 -3
- package/src/utils/format-time.ts +5 -3
- package/src/utils/getLocale.ts +9 -0
|
@@ -67,6 +67,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
67
67
|
disabled = props.disabled,
|
|
68
68
|
getContainer = props.getContainer,
|
|
69
69
|
layout = props.layout,
|
|
70
|
+
onCheckSuccess = props.onCheckSuccess,
|
|
70
71
|
_props$className = props.className,
|
|
71
72
|
className = _props$className === void 0 ? "" : _props$className;
|
|
72
73
|
var inputRef = (0, _react.useRef)();
|
|
@@ -136,9 +137,11 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
136
137
|
if (errors.length) {
|
|
137
138
|
setHasError(true);
|
|
138
139
|
setTip(errors[0].tip);
|
|
140
|
+
onCheckSuccess && onCheckSuccess(false);
|
|
139
141
|
} else {
|
|
140
142
|
setHasError(false);
|
|
141
143
|
setTip('');
|
|
144
|
+
onCheckSuccess && onCheckSuccess(true);
|
|
142
145
|
}
|
|
143
146
|
};
|
|
144
147
|
|
|
@@ -23,6 +23,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
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
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
27
|
+
|
|
28
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
29
|
+
|
|
26
30
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
31
|
|
|
28
32
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -71,7 +75,9 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
71
75
|
className = _props$className === void 0 ? "" : _props$className,
|
|
72
76
|
_props$btnClick = props.btnClick,
|
|
73
77
|
btnClick = _props$btnClick === void 0 ? function () {} : _props$btnClick,
|
|
74
|
-
beforeSend = props.beforeSend
|
|
78
|
+
beforeSend = props.beforeSend,
|
|
79
|
+
_props$canClickCode = props.canClickCode,
|
|
80
|
+
canClickCode = _props$canClickCode === void 0 ? true : _props$canClickCode;
|
|
75
81
|
var inputRef = (0, _react.useRef)();
|
|
76
82
|
|
|
77
83
|
var _useState = (0, _react.useState)(false),
|
|
@@ -89,24 +95,33 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
89
95
|
btn_info = _useState6[0],
|
|
90
96
|
setBtn_info = _useState6[1];
|
|
91
97
|
|
|
92
|
-
var _useState7 = (0, _react.useState)(
|
|
98
|
+
var _useState7 = (0, _react.useState)(canClickCode),
|
|
93
99
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
94
100
|
btnCanClick = _useState8[0],
|
|
95
101
|
setBtnCanClick = _useState8[1];
|
|
96
102
|
|
|
97
|
-
var _useState9 = (0, _react.useState)(
|
|
103
|
+
var _useState9 = (0, _react.useState)(false),
|
|
98
104
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
99
|
-
|
|
100
|
-
|
|
105
|
+
isTime = _useState10[0],
|
|
106
|
+
setIsTime = _useState10[1];
|
|
101
107
|
|
|
102
|
-
var _useState11 = (0, _react.useState)(
|
|
108
|
+
var _useState11 = (0, _react.useState)(""),
|
|
103
109
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
tip = _useState12[0],
|
|
111
|
+
setTip = _useState12[1];
|
|
112
|
+
|
|
113
|
+
var _useState13 = (0, _react.useState)(props.value || ""),
|
|
114
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
115
|
+
value = _useState14[0],
|
|
116
|
+
setValue = _useState14[1];
|
|
106
117
|
|
|
107
118
|
(0, _react.useEffect)(function () {
|
|
108
119
|
setValue(props.value);
|
|
109
120
|
}, [props.value]);
|
|
121
|
+
(0, _react.useEffect)(function () {
|
|
122
|
+
if (isTime) return;
|
|
123
|
+
setBtnCanClick(canClickCode);
|
|
124
|
+
}, [canClickCode]);
|
|
110
125
|
|
|
111
126
|
var _verifing = function verifing() {
|
|
112
127
|
var value = inputRef.current && inputRef.current.value;
|
|
@@ -155,28 +170,55 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
155
170
|
}
|
|
156
171
|
};
|
|
157
172
|
|
|
158
|
-
var HandlerCode = function
|
|
159
|
-
|
|
160
|
-
var
|
|
161
|
-
|
|
162
|
-
|
|
173
|
+
var HandlerCode = /*#__PURE__*/function () {
|
|
174
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
175
|
+
var isSuccess, time, timer;
|
|
176
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
177
|
+
while (1) {
|
|
178
|
+
switch (_context.prev = _context.next) {
|
|
179
|
+
case 0:
|
|
180
|
+
if (btnCanClick) {
|
|
181
|
+
_context.next = 2;
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return _context.abrupt("return");
|
|
186
|
+
|
|
187
|
+
case 2:
|
|
188
|
+
setBtnCanClick(false);
|
|
189
|
+
_context.next = 5;
|
|
190
|
+
return btnClick();
|
|
191
|
+
|
|
192
|
+
case 5:
|
|
193
|
+
isSuccess = _context.sent;
|
|
194
|
+
time = isSuccess ? 60 : 3;
|
|
195
|
+
setBtn_info("".concat(time, "s\u91CD\u65B0\u53D1\u9001"));
|
|
196
|
+
timer = setInterval(function () {
|
|
197
|
+
setIsTime(true);
|
|
198
|
+
|
|
199
|
+
if (time === 0) {
|
|
200
|
+
clearInterval(timer);
|
|
201
|
+
setBtn_info("获取验证码");
|
|
202
|
+
setBtnCanClick(true);
|
|
203
|
+
setIsTime(false);
|
|
204
|
+
} else {
|
|
205
|
+
setBtn_info("".concat(time, "s\u91CD\u65B0\u53D1\u9001"));
|
|
206
|
+
time--;
|
|
207
|
+
}
|
|
208
|
+
}, 1000);
|
|
209
|
+
|
|
210
|
+
case 9:
|
|
211
|
+
case "end":
|
|
212
|
+
return _context.stop();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}, _callee);
|
|
216
|
+
}));
|
|
163
217
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
setBtnCanClick(false);
|
|
169
|
-
var timer = setInterval(function () {
|
|
170
|
-
if (time === 0) {
|
|
171
|
-
clearInterval(timer);
|
|
172
|
-
setBtn_info("获取验证码");
|
|
173
|
-
setBtnCanClick(true);
|
|
174
|
-
} else {
|
|
175
|
-
setBtn_info("".concat(time, "s\u91CD\u65B0\u53D1\u9001"));
|
|
176
|
-
time--;
|
|
177
|
-
}
|
|
178
|
-
}, 1000);
|
|
179
|
-
};
|
|
218
|
+
return function HandlerCode() {
|
|
219
|
+
return _ref2.apply(this, arguments);
|
|
220
|
+
};
|
|
221
|
+
}();
|
|
180
222
|
|
|
181
223
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
182
224
|
return {
|
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.form-field-input__border {
|
|
33
|
+
position: relative;
|
|
33
34
|
padding: 6px 12px;
|
|
34
|
-
border-radius:
|
|
35
|
+
border-radius: 8px;
|
|
35
36
|
transition: all 0.2s;
|
|
36
37
|
border: 1px solid #e9ecf0;
|
|
37
38
|
box-sizing: border-box;
|
|
@@ -83,3 +84,12 @@
|
|
|
83
84
|
color: #bfc7d5;
|
|
84
85
|
font-weight: unset;
|
|
85
86
|
}
|
|
87
|
+
|
|
88
|
+
.form-field-input__hide-icon {
|
|
89
|
+
position: absolute;
|
|
90
|
+
right: 3px;
|
|
91
|
+
width: 16px;
|
|
92
|
+
height: 16px;
|
|
93
|
+
background: url("./yincang-s.svg") no-repeat;
|
|
94
|
+
background-size: contain;
|
|
95
|
+
}
|
|
@@ -102,17 +102,30 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
102
102
|
if (!require && !value) return [];
|
|
103
103
|
var errors = [];
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
try {
|
|
106
|
+
for (var i = 0; i < verifies.length; i++) {
|
|
107
|
+
var _verifies$i = verifies[i],
|
|
108
|
+
test = _verifies$i.test,
|
|
109
|
+
_tip = _verifies$i.tip;
|
|
110
|
+
|
|
111
|
+
if (test instanceof Function) {
|
|
112
|
+
if (!test(value)) {
|
|
113
|
+
errors.push({
|
|
114
|
+
name: name,
|
|
115
|
+
tip: _tip
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
} else {
|
|
119
|
+
if (!value.match(test)) {
|
|
120
|
+
errors.push({
|
|
121
|
+
name: name,
|
|
122
|
+
tip: _tip
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
115
126
|
}
|
|
127
|
+
} catch (e) {
|
|
128
|
+
throw new Error(e);
|
|
116
129
|
}
|
|
117
130
|
|
|
118
131
|
return errors;
|
|
@@ -194,7 +207,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
194
207
|
onChange: onChangeHandler,
|
|
195
208
|
autoComplete: "off"
|
|
196
209
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
-
className: "
|
|
210
|
+
className: "".concat(preCls, "__hide-icon"),
|
|
198
211
|
onClick: onTypeChangeHandler
|
|
199
212
|
})))));
|
|
200
213
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="240px" height="240px" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>yincang-s</title>
|
|
4
|
+
<g id="yincang-s" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<path d="M49.9966052,38.3431458 L201.317456,189.663997 C204.441651,192.788191 204.441651,197.853511 201.317456,200.977705 C198.193262,204.1019 193.127942,204.1019 190.003748,200.977705 L38.6828967,49.6568542 C35.5587024,46.5326599 35.5587024,41.4673401 38.6828967,38.3431458 C41.8070911,35.2189514 46.8724109,35.2189514 49.9966052,38.3431458 Z M47.896855,71.5984171 L59.1982317,82.899565 C52.0192864,89.9733747 44.9844916,98.3915814 38.0913697,108.17152 L37.3238844,109.266893 L34.3951766,113.567426 L33.6721766,114.826426 L33.6427788,114.890829 C32.6856003,117.04518 32.8013596,119.497387 33.9639451,121.568337 L34.1147186,121.825171 L34.269966,122.068107 C60.714404,161.810173 89.2455848,181.160426 120.000177,181.160426 C130.484503,181.160426 140.707806,178.91344 150.675728,174.379987 L162.629993,186.333413 C149.036193,193.528164 134.822003,197.160426 120.000177,197.160426 C83.1600197,197.160426 50.0975347,174.736978 20.9493895,130.931642 C16.3805416,124.065342 15.7456228,115.402709 19.2019996,107.996955 L19.3945877,107.59427 L19.5107579,107.35714 L20.8252444,105.069447 L24.1465761,100.19213 C31.7979041,89.2071425 39.7158114,79.6696257 47.896855,71.5984171 Z M120.000177,38.6604256 C156.840333,38.6604256 189.902818,61.0838734 219.050964,104.889209 C223.619811,111.75551 224.25473,120.418143 220.798354,127.823896 L220.605765,128.226581 L220.489595,128.463711 L219.175109,130.751404 L215.853777,135.628721 C207.650049,147.406788 199.13986,157.520833 190.327454,165.94764 L179.023789,154.643279 C186.820275,147.226135 194.447626,138.23548 201.908983,127.649332 L202.676469,126.553958 L205.604177,122.252426 L206.327177,120.993426 L206.357574,120.930022 C207.314753,118.775671 207.198994,116.323464 206.036408,114.252514 L205.885634,113.99568 L205.730387,113.752744 C179.285949,74.0106784 150.754768,54.6604256 120.000177,54.6604256 C108.680998,54.6604256 97.6660684,57.2795069 86.9482864,62.5673546 L75.1045551,50.722859 C89.3825439,42.7086009 104.352753,38.6604256 120.000177,38.6604256 Z M80.8135056,104.515517 L96.6775751,120.380804 C97.0509985,132.694912 106.965514,142.609427 119.279621,142.98285 L135.144909,158.84692 C130.446538,160.66399 125.339634,161.660426 120,161.660426 C96.8040405,161.660426 78,142.856385 78,119.660426 C78,114.320792 78.9964361,109.213888 80.8135056,104.515517 Z M120,77.6604256 C143.195959,77.6604256 162,96.4644661 162,119.660426 C162,125.000059 161.003564,130.106963 159.186494,134.805334 L143.322455,118.941044 C142.949527,106.626142 133.034283,96.7108991 120.719382,96.3379705 L104.854088,80.4743194 C109.552735,78.6570036 114.659986,77.6604256 120,77.6604256 Z" id="形状结合" fill="#A4ACB9" fill-rule="nonzero"></path>
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -13,6 +13,8 @@ var _default2 = _interopRequireDefault(require("../../../avatar/default"));
|
|
|
13
13
|
|
|
14
14
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
15
15
|
|
|
16
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
17
|
+
|
|
16
18
|
require("./index.css");
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -22,7 +24,7 @@ var preCls = 'form-field-user';
|
|
|
22
24
|
var _default = function _default(props) {
|
|
23
25
|
var users = props.users,
|
|
24
26
|
_props$placeholder = props.placeholder,
|
|
25
|
-
placeholder = _props$placeholder === void 0 ? '
|
|
27
|
+
placeholder = _props$placeholder === void 0 ? (0, _getLocale.getLocale)('Mod_Pleaseselect') : _props$placeholder,
|
|
26
28
|
onClear = props.onClear;
|
|
27
29
|
var userNames = [];
|
|
28
30
|
(users || []).forEach(function (user) {
|
|
@@ -15,6 +15,8 @@ var _visitor = _interopRequireDefault(require("./visitor"));
|
|
|
15
15
|
|
|
16
16
|
var _network = _interopRequireDefault(require("../util/network"));
|
|
17
17
|
|
|
18
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -72,11 +74,11 @@ function VisitorsComponents() {
|
|
|
72
74
|
padding: '12px 16px'
|
|
73
75
|
}
|
|
74
76
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
75
|
-
content:
|
|
77
|
+
content: (0, _getLocale.getLocale)('HP_RecentVisitors'),
|
|
76
78
|
iconUrl: require("../image/Recent-visitors.png")
|
|
77
79
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.Gap, null), visitorList.length === 0 ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
80
|
className: "nearVisitors-Component-noOneText"
|
|
79
|
-
},
|
|
81
|
+
}, (0, _getLocale.getLocale)('HP_Peoplevisited')) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
82
|
className: "nearVisitors-Component-visitor"
|
|
81
83
|
}, // 固定为最近访问的8个用户
|
|
82
84
|
visitorList.slice(0, 8).map(function (item) {
|
|
@@ -9,6 +9,8 @@ exports["default"] = OKRAlignComponent;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
13
|
+
|
|
12
14
|
var _titaChart = _interopRequireDefault(require("../../tita-chart"));
|
|
13
15
|
|
|
14
16
|
var _commenComponents = require("../commen-components");
|
|
@@ -107,15 +109,15 @@ function OKRAlignComponent() {
|
|
|
107
109
|
padding: '20px 22px 0'
|
|
108
110
|
}
|
|
109
111
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
110
|
-
content:
|
|
112
|
+
content: (0, _getLocale.getLocale)('HP_OKRAlignment'),
|
|
111
113
|
iconUrl: require("../image/align.png"),
|
|
112
|
-
tips:
|
|
114
|
+
tips: (0, _getLocale.getLocale)('HP_SetOKR')
|
|
113
115
|
}), isMyOKREmpty ? /*#__PURE__*/_react["default"].createElement(_commenComponents.EmptyBackGround, {
|
|
114
116
|
imgSrc: require("../image/OKRalign-empty.png"),
|
|
115
|
-
content:
|
|
117
|
+
content: (0, _getLocale.getLocale)('HP_AligningOKR'),
|
|
116
118
|
behave: {
|
|
117
119
|
type: 'moreinfo',
|
|
118
|
-
text: '
|
|
120
|
+
text: (0, _getLocale.getLocale)('HP_Howaligninggoals'),
|
|
119
121
|
link: 'https://club.tita.com/18179.html'
|
|
120
122
|
}
|
|
121
123
|
}) : /*#__PURE__*/_react["default"].createElement(_commenComponents.CardFlexContent, null, /*#__PURE__*/_react["default"].createElement(_titaChart["default"].LiquidBall, {
|
|
@@ -125,14 +127,14 @@ function OKRAlignComponent() {
|
|
|
125
127
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
126
128
|
num: hadAlignOkrNum,
|
|
127
129
|
numColor: "#3F4755",
|
|
128
|
-
label:
|
|
130
|
+
label: (0, _getLocale.getLocale)('OKR_Db_Aligned'),
|
|
129
131
|
handleDataClick: function handleDataClick() {
|
|
130
132
|
return _handleDataClick('hadAlign');
|
|
131
133
|
}
|
|
132
134
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
133
135
|
num: hadNotAlignOkrNum,
|
|
134
136
|
numColor: "#3F4755",
|
|
135
|
-
label:
|
|
137
|
+
label: (0, _getLocale.getLocale)('OKR_Db_Unaligned'),
|
|
136
138
|
handleDataClick: function handleDataClick() {
|
|
137
139
|
return _handleDataClick('hadNotAlign');
|
|
138
140
|
}
|
|
@@ -17,6 +17,8 @@ var _network = _interopRequireDefault(require("../util/network"));
|
|
|
17
17
|
|
|
18
18
|
var _clickLink = _interopRequireWildcard(require("../util/click-link"));
|
|
19
19
|
|
|
20
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
21
|
+
|
|
20
22
|
require("../index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -117,20 +119,20 @@ function OKRProgressComponent() {
|
|
|
117
119
|
padding: '20px 22px 0'
|
|
118
120
|
}
|
|
119
121
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
120
|
-
content:
|
|
122
|
+
content: (0, _getLocale.getLocale)('HP_Executiotasks'),
|
|
121
123
|
iconUrl: require("../image/Progress.png"),
|
|
122
|
-
tips:
|
|
124
|
+
tips: (0, _getLocale.getLocale)('HP_ProgressKROKR')
|
|
123
125
|
}, !isMyOKREmpty && /*#__PURE__*/_react["default"].createElement("a", {
|
|
124
126
|
onClick: function onClick() {
|
|
125
127
|
return (0, _clickLink["default"])('okr%2Fmanage');
|
|
126
128
|
},
|
|
127
129
|
className: "grid-component-card-title__behave"
|
|
128
|
-
},
|
|
130
|
+
}, (0, _getLocale.getLocale)('OKR_OKRW_Gotoupdate'))), isMyOKREmpty ? /*#__PURE__*/_react["default"].createElement(_commenComponents.EmptyBackGround, {
|
|
129
131
|
imgSrc: require("../image/OKRprogress-empty.png"),
|
|
130
|
-
content:
|
|
132
|
+
content: (0, _getLocale.getLocale)('HP_Regulgoodwork'),
|
|
131
133
|
behave: {
|
|
132
134
|
type: 'moreinfo',
|
|
133
|
-
text: '
|
|
135
|
+
text: (0, _getLocale.getLocale)('HP_Learnupdate'),
|
|
134
136
|
link: 'https://club.tita.com/18179.html'
|
|
135
137
|
}
|
|
136
138
|
}) : /*#__PURE__*/_react["default"].createElement(_commenComponents.CardFlexContent, null, /*#__PURE__*/_react["default"].createElement(_titaChart["default"].LiquidBall, {
|
|
@@ -141,14 +143,14 @@ function OKRProgressComponent() {
|
|
|
141
143
|
num: hadUpdateOkrNum,
|
|
142
144
|
updataNum: weekLatelyUpdatekrProgress,
|
|
143
145
|
numColor: "#3F4755",
|
|
144
|
-
label:
|
|
146
|
+
label: (0, _getLocale.getLocale)('HP_Updated'),
|
|
145
147
|
handleDataClick: function handleDataClick() {
|
|
146
148
|
return _handleDataClick('hadUpdate');
|
|
147
149
|
}
|
|
148
150
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
149
151
|
num: hadNotUpdateOkrNum,
|
|
150
152
|
numColor: "#3F4755",
|
|
151
|
-
label:
|
|
153
|
+
label: (0, _getLocale.getLocale)('HP_Notupdated'),
|
|
152
154
|
handleDataClick: function handleDataClick() {
|
|
153
155
|
return _handleDataClick('hadNotUpdate');
|
|
154
156
|
}
|
|
@@ -17,6 +17,8 @@ var _network = _interopRequireDefault(require("../util/network"));
|
|
|
17
17
|
|
|
18
18
|
var _clickLink = require("../util/click-link");
|
|
19
19
|
|
|
20
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -66,28 +68,28 @@ function OKRTargetComponent() {
|
|
|
66
68
|
switch (item.componentDataProp) {
|
|
67
69
|
case "MyNormalOkrCount":
|
|
68
70
|
data.push({
|
|
69
|
-
type: '
|
|
71
|
+
type: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Notrack'),
|
|
70
72
|
value: item.componentDataCount
|
|
71
73
|
});
|
|
72
74
|
break;
|
|
73
75
|
|
|
74
76
|
case "MyRiskOkrCount":
|
|
75
77
|
data.push({
|
|
76
|
-
type: '
|
|
78
|
+
type: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Atrisk'),
|
|
77
79
|
value: item.componentDataCount
|
|
78
80
|
});
|
|
79
81
|
break;
|
|
80
82
|
|
|
81
83
|
case "MyDlayOkrCount":
|
|
82
84
|
data.push({
|
|
83
|
-
type: '
|
|
85
|
+
type: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Postoned'),
|
|
84
86
|
value: item.componentDataCount
|
|
85
87
|
});
|
|
86
88
|
break;
|
|
87
89
|
|
|
88
90
|
case "MyFinishOkrCount":
|
|
89
91
|
data.push({
|
|
90
|
-
type: '
|
|
92
|
+
type: (0, _getLocale.getLocale)('OKR_MyO_Butt_Hasended'),
|
|
91
93
|
value: item.componentDataCount
|
|
92
94
|
});
|
|
93
95
|
break;
|
|
@@ -127,19 +129,19 @@ function OKRTargetComponent() {
|
|
|
127
129
|
var target = event.target.attrs.text;
|
|
128
130
|
|
|
129
131
|
switch (target) {
|
|
130
|
-
case '
|
|
132
|
+
case (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Notrack'):
|
|
131
133
|
handlePieClick('normalOkr');
|
|
132
134
|
break;
|
|
133
135
|
|
|
134
|
-
case '
|
|
136
|
+
case (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Atrisk'):
|
|
135
137
|
handlePieClick('riskOkr');
|
|
136
138
|
break;
|
|
137
139
|
|
|
138
|
-
case '
|
|
140
|
+
case (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Postoned'):
|
|
139
141
|
handlePieClick('dalyOkr');
|
|
140
142
|
break;
|
|
141
143
|
|
|
142
|
-
case '
|
|
144
|
+
case (0, _getLocale.getLocale)('OKR_MyO_Butt_Hasended'):
|
|
143
145
|
handlePieClick('endOkr');
|
|
144
146
|
break;
|
|
145
147
|
}
|
|
@@ -150,14 +152,14 @@ function OKRTargetComponent() {
|
|
|
150
152
|
padding: '20px 22px 0'
|
|
151
153
|
}
|
|
152
154
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
153
|
-
content:
|
|
155
|
+
content: (0, _getLocale.getLocale)('HP_OKR'),
|
|
154
156
|
iconUrl: require("../image/targer.png")
|
|
155
157
|
}), isMyOKREmpty ? /*#__PURE__*/_react["default"].createElement(_commenComponents.EmptyBackGround, {
|
|
156
158
|
imgSrc: require("../image/OKRtarget-empty.png"),
|
|
157
|
-
content:
|
|
159
|
+
content: (0, _getLocale.getLocale)('HP_EffectiveOKRsetting'),
|
|
158
160
|
behave: {
|
|
159
161
|
type: 'button',
|
|
160
|
-
text: '
|
|
162
|
+
text: (0, _getLocale.getLocale)('OKR_MyO_Collr_Butt_CreatOKR'),
|
|
161
163
|
onClick: function onClick(e) {
|
|
162
164
|
return (0, _clickLink.toOkrTarget)();
|
|
163
165
|
}
|
|
@@ -15,6 +15,8 @@ var _network = _interopRequireWildcard(require("../util/network"));
|
|
|
15
15
|
|
|
16
16
|
var _clickLink = require("../util/click-link");
|
|
17
17
|
|
|
18
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
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); }
|
|
@@ -148,18 +150,18 @@ function OverviewComponent() {
|
|
|
148
150
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
149
151
|
num: allOkrCount,
|
|
150
152
|
numColor: "#3F4755",
|
|
151
|
-
label:
|
|
153
|
+
label: (0, _getLocale.getLocale)('Mod_Objective'),
|
|
152
154
|
updataNum: allOkrInWeekCount,
|
|
153
155
|
handleDataClick: handleTargetClick
|
|
154
156
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
155
157
|
num: allMyKrCount,
|
|
156
158
|
numColor: "#3F4755",
|
|
157
|
-
label:
|
|
159
|
+
label: (0, _getLocale.getLocale)('Mod_KeyResults'),
|
|
158
160
|
updataNum: 0
|
|
159
161
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
160
162
|
num: allMyTaskCount,
|
|
161
163
|
numColor: "#3F4755",
|
|
162
|
-
label:
|
|
164
|
+
label: (0, _getLocale.getLocale)('HP_Executiotasks'),
|
|
163
165
|
updataNum: 0
|
|
164
166
|
})))));
|
|
165
167
|
}
|
|
@@ -21,6 +21,8 @@ var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
|
21
21
|
|
|
22
22
|
var _openData = require("../../../utils/open-data");
|
|
23
23
|
|
|
24
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
25
|
+
|
|
24
26
|
require("./index.css");
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -231,11 +233,11 @@ function PersonalInfoComponent() {
|
|
|
231
233
|
className: "PersonalInfoComponent-PersonalInfo__fansinfo__attention"
|
|
232
234
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
233
235
|
src: require("../image/visit-icon.png")
|
|
234
|
-
}), " ", /*#__PURE__*/_react["default"].createElement("b", null, fansNum),
|
|
236
|
+
}), " ", /*#__PURE__*/_react["default"].createElement("b", null, fansNum), (0, _getLocale.getLocale)('HP_peoplefollow')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
235
237
|
className: "PersonalInfoComponent-PersonalInfo__fansinfo__like"
|
|
236
238
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
237
239
|
src: require("../image/liking.png")
|
|
238
|
-
}), " ", /*#__PURE__*/_react["default"].createElement("b", null, likeNum),
|
|
240
|
+
}), " ", /*#__PURE__*/_react["default"].createElement("b", null, likeNum), (0, _getLocale.getLocale)('HP_Kudos'))), scrollMessage.name && scrollMessage.name.length ? /*#__PURE__*/_react["default"].createElement(_scrollTips.AvatarTips, {
|
|
239
241
|
message: scrollMessage,
|
|
240
242
|
content: "\u5173\u6CE8\u4E86\u6211",
|
|
241
243
|
styles: {
|
|
@@ -247,7 +249,7 @@ function PersonalInfoComponent() {
|
|
|
247
249
|
/*#__PURE__*/
|
|
248
250
|
//@ts-ignore
|
|
249
251
|
_react["default"].createElement(_scrollTips.AvatarTips, {
|
|
250
|
-
content: "
|
|
252
|
+
content: "🥰 " + (0, _getLocale.getLocale)('HP_Smallwindow'),
|
|
251
253
|
styles: {
|
|
252
254
|
height: '28px',
|
|
253
255
|
padding: '0 28px',
|
|
@@ -15,6 +15,8 @@ var _personOkr = _interopRequireDefault(require("./person-okr"));
|
|
|
15
15
|
|
|
16
16
|
var _network = _interopRequireDefault(require("../util/network"));
|
|
17
17
|
|
|
18
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -113,7 +115,7 @@ function SubOKRComponents() {
|
|
|
113
115
|
} else {
|
|
114
116
|
return /*#__PURE__*/_react["default"].createElement(_commenComponents.EmptyBackGround, {
|
|
115
117
|
imgSrc: require("../image/sub-empty.png"),
|
|
116
|
-
content:
|
|
118
|
+
content: (0, _getLocale.getLocale)('HP_Noavailable'),
|
|
117
119
|
styles: {
|
|
118
120
|
display: 'flex',
|
|
119
121
|
flexDirection: 'column',
|
|
@@ -128,7 +130,7 @@ function SubOKRComponents() {
|
|
|
128
130
|
padding: '12px 16px'
|
|
129
131
|
}
|
|
130
132
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
131
|
-
content: "".concat(isSubTab ? '
|
|
133
|
+
content: "".concat(isSubTab ? (0, _getLocale.getLocale)('OKR_MyO_Butt_Subordinate') : '同级', "OKR"),
|
|
132
134
|
iconUrl: require("../image/sub.png")
|
|
133
135
|
}, isLeader && /*#__PURE__*/_react["default"].createElement("span", {
|
|
134
136
|
className: "grid-component-card-title__behave",
|
|
@@ -138,7 +140,7 @@ function SubOKRComponents() {
|
|
|
138
140
|
onClick: changeTab
|
|
139
141
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
140
142
|
src: require("../image/change.png")
|
|
141
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, isSubTab ? '同级' : '
|
|
143
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, isSubTab ? '同级' : (0, _getLocale.getLocale)('OKR_MyO_Butt_Subordinate')))), /*#__PURE__*/_react["default"].createElement(_commenComponents.Gap, null), /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
144
|
className: "subOKRComponents-PersonalOkrContainer"
|
|
143
145
|
}, isSubTab ? renderEmployeeList(subEmployeeList) : renderEmployeeList(sameEmployeeList)));
|
|
144
146
|
}
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _commenComponents = require("../commen-components");
|
|
13
13
|
|
|
14
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
15
|
+
|
|
14
16
|
var _clickLink = require("../util/click-link");
|
|
15
17
|
|
|
16
18
|
var _network = _interopRequireDefault(require("../util/network"));
|
|
@@ -100,17 +102,17 @@ function WeekTaskComponent() {
|
|
|
100
102
|
padding: '20px 22px 0'
|
|
101
103
|
}
|
|
102
104
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
103
|
-
content:
|
|
105
|
+
content: (0, _getLocale.getLocale)('OKR_OKRW_Tasksweek'),
|
|
104
106
|
iconUrl: require("../image/task.png")
|
|
105
107
|
}, !isMyOKREmpty && /*#__PURE__*/_react["default"].createElement("a", {
|
|
106
108
|
onClick: _clickLink.toWeekPlan,
|
|
107
109
|
className: "grid-component-card-title__behave"
|
|
108
|
-
},
|
|
110
|
+
}, (0, _getLocale.getLocale)('Feed_Set_Pop_Butt_Newtask'))), isMyOKREmpty ? /*#__PURE__*/_react["default"].createElement(_commenComponents.EmptyBackGround, {
|
|
109
111
|
imgSrc: require("../image/weektask-empty.png"),
|
|
110
|
-
content:
|
|
112
|
+
content: (0, _getLocale.getLocale)('HP_AligningOKR'),
|
|
111
113
|
behave: {
|
|
112
114
|
type: 'button',
|
|
113
|
-
text: '
|
|
115
|
+
text: (0, _getLocale.getLocale)('Pro_page_Mil_Butt_Createatask'),
|
|
114
116
|
onClick: function onClick(e) {
|
|
115
117
|
return (0, _clickLink.toWeekPlan)();
|
|
116
118
|
}
|
|
@@ -118,22 +120,22 @@ function WeekTaskComponent() {
|
|
|
118
120
|
}) : /*#__PURE__*/_react["default"].createElement(_commenComponents.CardFlexContent, null, /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
119
121
|
num: unFinishTaskOnWeek,
|
|
120
122
|
numColor: "#2879FF",
|
|
121
|
-
label:
|
|
122
|
-
Qtips:
|
|
123
|
+
label: (0, _getLocale.getLocale)('HP_Unfinishedweek'),
|
|
124
|
+
Qtips: (0, _getLocale.getLocale)('HP_Thetasksweek'),
|
|
123
125
|
handleDataClick: function handleDataClick() {
|
|
124
126
|
return (0, _clickLink.toWeekPlan)();
|
|
125
127
|
}
|
|
126
128
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
127
129
|
num: finishTaskOnWeek,
|
|
128
130
|
numColor: "#5AD8A6",
|
|
129
|
-
label:
|
|
131
|
+
label: (0, _getLocale.getLocale)('HP_Finishedweek'),
|
|
130
132
|
handleDataClick: function handleDataClick() {
|
|
131
133
|
return (0, _clickLink.toWeekPlan)();
|
|
132
134
|
}
|
|
133
135
|
}), /*#__PURE__*/_react["default"].createElement(_commenComponents.DataItem, {
|
|
134
136
|
num: dueTaskOnWeek,
|
|
135
137
|
numColor: "#F05E5E",
|
|
136
|
-
label:
|
|
138
|
+
label: (0, _getLocale.getLocale)('OKR_MyO_E_Overdue'),
|
|
137
139
|
handleDataClick: function handleDataClick() {
|
|
138
140
|
return (0, _clickLink.toWeekPlan)();
|
|
139
141
|
}
|