@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
|
@@ -22,6 +22,7 @@ import { getUserInfo } from "../../../utils/bs-global";
|
|
|
22
22
|
import { moveFront, moveNext } from "./drag-order-kr";
|
|
23
23
|
import Loading from "../loading";
|
|
24
24
|
import { OAuth } from "../../../utils/auth";
|
|
25
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
25
26
|
|
|
26
27
|
import "./index.scss";
|
|
27
28
|
|
|
@@ -131,7 +132,7 @@ export default forwardRef((props, ref) => {
|
|
|
131
132
|
const onAddKrHandler = kr => {
|
|
132
133
|
refreshAll();
|
|
133
134
|
updateKrs()
|
|
134
|
-
Toast.Success(
|
|
135
|
+
Toast.Success(getLocale('OKR_Db_Success'), {canClose: false});
|
|
135
136
|
};
|
|
136
137
|
|
|
137
138
|
const changeParentOkrHandler = (confirm) => {
|
|
@@ -163,7 +164,7 @@ export default forwardRef((props, ref) => {
|
|
|
163
164
|
}
|
|
164
165
|
updateParentId(params).then((data) => {
|
|
165
166
|
if (data.Code == 1) {
|
|
166
|
-
Toast.Success(
|
|
167
|
+
Toast.Success(getLocale('Mod_Successfuloperat'));
|
|
167
168
|
setGeneralParent({
|
|
168
169
|
parentId: params.parentId,
|
|
169
170
|
parentType: params.parentType,
|
|
@@ -307,7 +308,7 @@ export default forwardRef((props, ref) => {
|
|
|
307
308
|
)}
|
|
308
309
|
/>
|
|
309
310
|
<span className={classNames(`${preCls}__addkr-text`)}>
|
|
310
|
-
|
|
311
|
+
{getLocale('OKR_MyO_Pop_Butt_AddKR')}
|
|
311
312
|
</span>
|
|
312
313
|
</div>
|
|
313
314
|
)}
|
|
@@ -342,7 +343,7 @@ export default forwardRef((props, ref) => {
|
|
|
342
343
|
|
|
343
344
|
<div className={classNames(`${preCls}__align-to`)}>
|
|
344
345
|
<div className={classNames(`${preCls}__align-to-title`)}>
|
|
345
|
-
|
|
346
|
+
{getLocale('OKR_MyO_Pop_SetAlignment')}
|
|
346
347
|
</div>
|
|
347
348
|
{!parentOkr && canEditOkr ? (
|
|
348
349
|
<AddKr onClick={onAddParentOkrHandler} />
|
|
@@ -361,7 +362,7 @@ export default forwardRef((props, ref) => {
|
|
|
361
362
|
})}
|
|
362
363
|
onClick={() => setIsOpened(!isOpened)}
|
|
363
364
|
>
|
|
364
|
-
<span
|
|
365
|
+
<span>{getLocale('OKR_MyO_KRP_OKRs_Alignedmeobje')}({childOkrs.length})</span>
|
|
365
366
|
</div>
|
|
366
367
|
|
|
367
368
|
<Collapse isOpened={isOpened}>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getLocale } from "../../../utils/getLocale"
|
|
1
2
|
|
|
2
3
|
export default nodes => {
|
|
3
4
|
return [
|
|
@@ -5,7 +6,7 @@ export default nodes => {
|
|
|
5
6
|
'key': '0',
|
|
6
7
|
'index': 0,
|
|
7
8
|
'nodeType': 'default',
|
|
8
|
-
'title':
|
|
9
|
+
'title': `${getLocale('OKR_MyO_KRP_OKRs_Alignedmeobje')} (${nodes.length})`,
|
|
9
10
|
'isLeaf': false,
|
|
10
11
|
'children': nodes
|
|
11
12
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import qs from "qs";
|
|
2
2
|
import { WorkDeliverParams } from "./interface";
|
|
3
3
|
import { rdelete, rget, rput, rpost } from "../../utils/request";
|
|
4
|
+
import { getLocale } from "../../utils/getLocale";
|
|
4
5
|
// @ts-ignore
|
|
5
6
|
const userId = (BSGlobal && BSGlobal.loginUserInfo.Id) || 0;
|
|
6
7
|
|
|
@@ -55,7 +56,7 @@ export const updateOkrName = ({ workId, workName }) => {
|
|
|
55
56
|
export const getOkrDetail = ({ okrId }) => {
|
|
56
57
|
return rget("v1")(`okr/detailInfo?okrId=${okrId}`).then((headInfo) => {
|
|
57
58
|
if (headInfo.Code != 1) {
|
|
58
|
-
throw headInfo.Message.replace(/项目/g,
|
|
59
|
+
throw headInfo.Message.replace(/项目/g, getLocale('Mod_Objective'));
|
|
59
60
|
}
|
|
60
61
|
return headInfo.Data;
|
|
61
62
|
});
|
|
@@ -3,6 +3,7 @@ import Detail from '../../../../okr-progress-detail';
|
|
|
3
3
|
import Title from '../title';
|
|
4
4
|
import TooltipText from '../../../../tooltip/tooltip-text';
|
|
5
5
|
import drawerManager from '../../../../drawer-manager';
|
|
6
|
+
import { getLocale } from "../../../../../utils/getLocale";
|
|
6
7
|
import './index.scss';
|
|
7
8
|
|
|
8
9
|
interface IKrProgressProps {
|
|
@@ -24,7 +25,7 @@ const renderTitle = (index, title, id) => {
|
|
|
24
25
|
const KrProgress: FC<IKrProgressProps> = ({data}) => {
|
|
25
26
|
return (
|
|
26
27
|
<div className='kr-progress__container'>
|
|
27
|
-
<Title title='
|
|
28
|
+
<Title title={getLocale('OKR_MyO_Prog_Butt_KRprogress')} />
|
|
28
29
|
<div className={`kr-progress__content-wrapper`}>
|
|
29
30
|
{
|
|
30
31
|
data && data.map((item, index) => {
|
|
@@ -15,6 +15,7 @@ import EmptyPng from '../../img/schedule-empty.png';
|
|
|
15
15
|
import { OAuth, hasSuperior } from '../../../../../utils/auth';
|
|
16
16
|
import { GeneralDataContext, CommonContext } from '../../../context';
|
|
17
17
|
import { remindAction } from '../../../request-apis';
|
|
18
|
+
import { getLocale } from "../../../../../utils/getLocale";
|
|
18
19
|
import './index.scss';
|
|
19
20
|
|
|
20
21
|
interface IOProgressProps {
|
|
@@ -64,7 +65,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
64
65
|
const handleModalOkClick = () => {
|
|
65
66
|
updateProgressDesc(editOProgressId, okrInfo.workId, editOProgressContent ? editOProgressContent : '').then(resp => {
|
|
66
67
|
if (resp.Code === 1) {
|
|
67
|
-
Toast.Success('
|
|
68
|
+
Toast.Success(getLocale('Mod_Successfuloperat'), {canClose: false});
|
|
68
69
|
setEditOProgressVisiable(false);
|
|
69
70
|
refreshAll && refreshAll();
|
|
70
71
|
getOProgressData();
|
|
@@ -85,7 +86,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
85
86
|
const renderContent = ({onOpenModal}) => {
|
|
86
87
|
return (
|
|
87
88
|
<span className='o-progress__func-btn o-progress__func-btn--update' onClick={onOpenModal}>
|
|
88
|
-
<i className='tu-icon-gengxin o-progress__func-btn-icon'
|
|
89
|
+
<i className='tu-icon-gengxin o-progress__func-btn-icon'/>{getLocale('OKR_MyO_Prog_Butt_Update')}
|
|
89
90
|
</span>
|
|
90
91
|
)
|
|
91
92
|
}
|
|
@@ -94,7 +95,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
94
95
|
// @ts-ignore
|
|
95
96
|
remindAction({toUserId: BSGlobal.loginUserInfo.Id, work_id: okrInfo.workId, type: 2}).then(resp => {
|
|
96
97
|
if (resp.Code === 1) {
|
|
97
|
-
Toast.Success('
|
|
98
|
+
Toast.Success(getLocale('OKR_MyO_Prog_Remindersu'), {canClose: false});
|
|
98
99
|
} else {
|
|
99
100
|
Toast.Error(resp.Message, {canClose: false});
|
|
100
101
|
}
|
|
@@ -112,7 +113,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
112
113
|
// @ts-ignore 提醒上级查看
|
|
113
114
|
remindAction({toUserId: BSGlobal.loginUserInfo.Id, work_id: okrInfo.workId}).then(resp => {
|
|
114
115
|
if (resp.Code === 1) {
|
|
115
|
-
Toast.Success('
|
|
116
|
+
Toast.Success(getLocale('OKR_MyO_Prog_Remindersu'), {canClose: false});
|
|
116
117
|
} else {
|
|
117
118
|
Toast.Error(resp.Message, {canClose: false});
|
|
118
119
|
}
|
|
@@ -160,18 +161,18 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
160
161
|
return (
|
|
161
162
|
<DialogConfirm visible={showRemindDialogConfirm} type="warning">
|
|
162
163
|
{/* @ts-ignore */}
|
|
163
|
-
<span type="title"
|
|
164
|
+
<span type="title">{getLocale('OKR_DR_Pop_Areyousure')}</span>
|
|
164
165
|
{/* @ts-ignore */}
|
|
165
|
-
<span type="content"
|
|
166
|
-
<CancelButton type="button" onClick={handleCancelRemind}
|
|
167
|
-
<SureButton type="button" onClick={handleEnsureRemind}
|
|
166
|
+
<span type="content">{getLocale('OKR_DR_Pop_ThesystemOKR')}</span>
|
|
167
|
+
<CancelButton type="button" onClick={handleCancelRemind}>{getLocale('Mod_Cancel')}</CancelButton>
|
|
168
|
+
<SureButton type="button" onClick={handleEnsureRemind}>{getLocale('OKR_MyO_Butt_Determine')}</SureButton>
|
|
168
169
|
</DialogConfirm>
|
|
169
170
|
)
|
|
170
171
|
}, [showRemindDialogConfirm, handleCancelRemind, handleEnsureRemind])
|
|
171
172
|
|
|
172
173
|
const renderEmptyCmp = useMemo(() => {
|
|
173
174
|
const renderUpdateBtn = ({onOpenModal}) => {
|
|
174
|
-
return <button className={`o-progress__empty-button ${isPrincipalUser ? '' : 'o-progress__empty-button--not-principaluser'}`} onClick={onOpenModal}
|
|
175
|
+
return <button className={`o-progress__empty-button ${isPrincipalUser ? '' : 'o-progress__empty-button--not-principaluser'}`} onClick={onOpenModal}>{getLocale('OKR_MyO_Prog_Butt_Update')}</button>
|
|
175
176
|
}
|
|
176
177
|
return (
|
|
177
178
|
<div className={classNames({
|
|
@@ -180,13 +181,13 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
180
181
|
})}>
|
|
181
182
|
<img width={128} src={EmptyPng} />
|
|
182
183
|
<span className='o-progress__empty-text'>
|
|
183
|
-
{isPrincipalUser ? '
|
|
184
|
+
{isPrincipalUser ? getLocale('OKR_MyO_KRP_tochecko') : getLocale('OKR_MyO_Pr_Text_Nooprogress')}
|
|
184
185
|
</span>
|
|
185
186
|
{isPrincipalUser && <OProgressUpdate okrInfo={okrInfo} renderContent={renderUpdateBtn} setUpdateData={setUpdateProgress}/>}
|
|
186
|
-
{!isCanEditProgress && <button className={'o-progress__empty-button'} onClick={handleRemindClick}
|
|
187
|
+
{!isCanEditProgress && <button className={'o-progress__empty-button'} onClick={handleRemindClick}>{getLocale('OKR_MyO_Pr_Butt_Reminder')}</button>}
|
|
187
188
|
{isCanEditProgress && !isPrincipalUser &&
|
|
188
189
|
<div>
|
|
189
|
-
<button className={'o-progress__empty-button'} onClick={handleRemindClick}
|
|
190
|
+
<button className={'o-progress__empty-button'} onClick={handleRemindClick}>{getLocale('OKR_MyO_Pr_Butt_Reminder')}</button>
|
|
190
191
|
<OProgressUpdate okrInfo={okrInfo} renderContent={renderUpdateBtn} setUpdateData={setUpdateProgress}/>
|
|
191
192
|
</div>}
|
|
192
193
|
</div>
|
|
@@ -194,7 +195,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
194
195
|
}, [hasOtherProgress])
|
|
195
196
|
|
|
196
197
|
const renderDefaultRemindCmp = useMemo(() => {
|
|
197
|
-
const text = isPrincipalUser ? (hasSuperior() ? '
|
|
198
|
+
const text = isPrincipalUser ? (hasSuperior() ? getLocale('OKR_MyO_Prog_Butt_Remind') : null) : getLocale('OKR_MyO_Pr_Butt_Reminder');
|
|
198
199
|
return (
|
|
199
200
|
<span className='o-progress__func-btn' onClick={handleRemindClick}>
|
|
200
201
|
{text && <i className='tu-icon-shoushi o-progress__func-btn-icon' />}
|
|
@@ -207,7 +208,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
207
208
|
<div className={'o-progress__wrapper'}>
|
|
208
209
|
{oProgressData.length === 0 ? renderEmptyCmp : (
|
|
209
210
|
<div className='o-progress__header'>
|
|
210
|
-
<Title title='
|
|
211
|
+
<Title title={getLocale('OKR_MyO_Prog_Objectiveprogress')}/>
|
|
211
212
|
<div className='o-progress__func-btns'>
|
|
212
213
|
{okrInfo.status === 2 ? null : renderDefaultRemindCmp}
|
|
213
214
|
{isCanEditProgress ?
|
|
@@ -242,7 +243,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
242
243
|
{isMoreThanOneProgress ?
|
|
243
244
|
<div className='o-progress__shrink'>
|
|
244
245
|
<span className='o-progress__shrink-text' onClick={handleChangeShowAll}>
|
|
245
|
-
{isShowAll ? '
|
|
246
|
+
{isShowAll ? getLocale('OKR_MyO_Prog_Butt_Fold') : getLocale('OKR_MyO_Pr_Butt_Viewall')}
|
|
246
247
|
<i className={isShowAll ? 'tu-icon-arrow-up' : 'tu-icon-arrow-down'}/>
|
|
247
248
|
</span>
|
|
248
249
|
</div>
|
|
@@ -259,7 +260,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
259
260
|
>
|
|
260
261
|
<div className={`o-progress__textarea-wrapper ${hasError ? 'o-progress__textarea-wrapper--error' : ''}`}>
|
|
261
262
|
<textarea
|
|
262
|
-
placeholder='
|
|
263
|
+
placeholder={getLocale('OKR_MyO_Pop_Upd_Pleprogress')}
|
|
263
264
|
className={'o-progress__textarea'}
|
|
264
265
|
value={editOProgressContent}
|
|
265
266
|
onChange={handleTextareaChange} />
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
2
|
+
|
|
1
3
|
// @ts-nocheck
|
|
2
4
|
export const isPrincipal = (principalUser) => {
|
|
3
5
|
return window.BSGlobal["loginUserInfo"].Id === principalUser.userId;
|
|
@@ -11,5 +13,5 @@ export const getToNowTime = (time) => {
|
|
|
11
13
|
if (diffSecond < 60 * 60 * 24 * 7) {
|
|
12
14
|
return '';
|
|
13
15
|
}
|
|
14
|
-
return
|
|
16
|
+
return `${getLocale('OKR_MyO_Pr_Butt_Lastupd')}${Math.floor(diffSecond / 60 / 60 / 24)}${getLocale('OKR_MyO_Pr_Butt_dayago')}`
|
|
15
17
|
}
|
|
@@ -4,6 +4,7 @@ import { getBSGlobal } from "../../utils/bs-global";
|
|
|
4
4
|
import { RectBtn } from "../button";
|
|
5
5
|
import Form from "../form";
|
|
6
6
|
import { localStorage } from "../../utils/local-storage";
|
|
7
|
+
import { getLocale } from "../../utils/getLocale";
|
|
7
8
|
import "./index.scss";
|
|
8
9
|
const {Fields} = Form
|
|
9
10
|
|
|
@@ -16,6 +17,69 @@ interface FilterFormProps {
|
|
|
16
17
|
const preCls = "tita-filter__form";
|
|
17
18
|
const useLocalStorage = new localStorage();
|
|
18
19
|
|
|
20
|
+
const getOkrTypeList = () => [
|
|
21
|
+
{
|
|
22
|
+
label: getLocale('Mod_all'),
|
|
23
|
+
value: "",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: getLocale('OKR_MyO_Pop_Company'),
|
|
27
|
+
value: 3,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: getLocale('Mod_Department'),
|
|
31
|
+
value: 2,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: getLocale('OKR_MyO_Text_Team'),
|
|
35
|
+
value: 4,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: getLocale('OKR_MyO_Pop_Individual'),
|
|
39
|
+
value: 1,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
const getOkrClassifyList = () => [
|
|
43
|
+
{
|
|
44
|
+
label: getLocale('Mod_all'),
|
|
45
|
+
value: "",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: getLocale('OKR_MyO_Es_Commitment'),
|
|
49
|
+
value: 1,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: getLocale('OKR_MyO_Es_Visiontype'),
|
|
53
|
+
value: 2,
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
const getOrderTypeList = () => [
|
|
57
|
+
{
|
|
58
|
+
label: getLocale('OKR_MyO_Text_Firstcreated'),
|
|
59
|
+
value: 2,
|
|
60
|
+
toolTip: getLocale('OKR_MyO_Text_First'),
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: getLocale('OKR_MyO_Text_Latecreation'),
|
|
64
|
+
value: 1,
|
|
65
|
+
toolTip: getLocale('OKR_MyO_Text_Created'),
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: getLocale('OKR_MyO_Text_Earliest'),
|
|
69
|
+
value: 12,
|
|
70
|
+
toolTip: getLocale('OKR_MyO_Text_Update'),
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: getLocale('OKR_MyO_Text_Lateest'),
|
|
74
|
+
value: 11,
|
|
75
|
+
toolTip: getLocale('OKR_MyO_Text_Latest'),
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: getLocale('OKR_MyO_Text_Listed'),
|
|
79
|
+
value: 13,
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
|
|
19
83
|
const Filter: FC<FilterFormProps> = ({
|
|
20
84
|
onSearch,
|
|
21
85
|
closeFilterDrawer,
|
|
@@ -78,68 +142,6 @@ const Filter: FC<FilterFormProps> = ({
|
|
|
78
142
|
useLocalStorage.setItem("okr-filter-isRemeber", isRemeber);
|
|
79
143
|
};
|
|
80
144
|
|
|
81
|
-
const okrTypeList = [
|
|
82
|
-
{
|
|
83
|
-
label: "全部",
|
|
84
|
-
value: "",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: "公司",
|
|
88
|
-
value: 3,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: "部门",
|
|
92
|
-
value: 2,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
label: "团队",
|
|
96
|
-
value: 4,
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
label: "个人",
|
|
100
|
-
value: 1,
|
|
101
|
-
},
|
|
102
|
-
];
|
|
103
|
-
const okrClassifyList = [
|
|
104
|
-
{
|
|
105
|
-
label: "全部",
|
|
106
|
-
value: "",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
label: "承诺型",
|
|
110
|
-
value: 1,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
label: "愿景型",
|
|
114
|
-
value: 2,
|
|
115
|
-
},
|
|
116
|
-
];
|
|
117
|
-
const orderTypeList = [
|
|
118
|
-
{
|
|
119
|
-
label: "创建时间最早",
|
|
120
|
-
value: 2,
|
|
121
|
-
toolTip: "点击后最早创建在前面",
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
label: "创建时间最晚",
|
|
125
|
-
value: 1,
|
|
126
|
-
toolTip: "点击后最晚创建在前面",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
label: "更新时间最早",
|
|
130
|
-
value: 12,
|
|
131
|
-
toolTip: "点击后最早更新在前面",
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
label: "更新时间最晚",
|
|
135
|
-
value: 11,
|
|
136
|
-
toolTip: "点击后最晚更新在前面",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: "按负责人排序",
|
|
140
|
-
value: 13,
|
|
141
|
-
},
|
|
142
|
-
];
|
|
143
145
|
return (
|
|
144
146
|
<div className={`${preCls}`}>
|
|
145
147
|
<div className={`${preCls}__content`}>
|
|
@@ -151,8 +153,8 @@ const Filter: FC<FilterFormProps> = ({
|
|
|
151
153
|
{openOkrType ? (
|
|
152
154
|
<Fields.Radios
|
|
153
155
|
name="okrType"
|
|
154
|
-
label=
|
|
155
|
-
radios={
|
|
156
|
+
label={getLocale('OKR_MyO_Pop_Objectivetype')}
|
|
157
|
+
radios={getOkrTypeList()}
|
|
156
158
|
value={formFieldValues.okrType}
|
|
157
159
|
radioClass={`${preCls}-radio`}
|
|
158
160
|
/>
|
|
@@ -162,8 +164,8 @@ const Filter: FC<FilterFormProps> = ({
|
|
|
162
164
|
{openClassify ? (
|
|
163
165
|
<Fields.Radios
|
|
164
166
|
name="okrClassify"
|
|
165
|
-
label=
|
|
166
|
-
radios={
|
|
167
|
+
label={getLocale('OKR_MyO_Text_Category')}
|
|
168
|
+
radios={getOkrClassifyList()}
|
|
167
169
|
value={formFieldValues.okrClassify}
|
|
168
170
|
radioClass={`${preCls}-radio`}
|
|
169
171
|
/>
|
|
@@ -172,8 +174,8 @@ const Filter: FC<FilterFormProps> = ({
|
|
|
172
174
|
)}
|
|
173
175
|
<Fields.Radios
|
|
174
176
|
name="orderType"
|
|
175
|
-
label=
|
|
176
|
-
radios={
|
|
177
|
+
label={getLocale('OKR_MyO_Text_Sorting')}
|
|
178
|
+
radios={getOrderTypeList()}
|
|
177
179
|
value={formFieldValues.orderType}
|
|
178
180
|
radioClass={`${preCls}-radio`}
|
|
179
181
|
/>
|
|
@@ -182,18 +184,20 @@ const Filter: FC<FilterFormProps> = ({
|
|
|
182
184
|
<div className={`${preCls}__footer`}>
|
|
183
185
|
<span className={`${preCls}__footer-checkbox`}>
|
|
184
186
|
<Checkbox checked={isRemeber.bol} onChange={handleRemember} />
|
|
185
|
-
<span className={`${preCls}__footer-checkbox-text`}
|
|
187
|
+
<span className={`${preCls}__footer-checkbox-text`}>{getLocale('OKR_MyO_Butt_Remember')}</span>
|
|
186
188
|
</span>
|
|
187
|
-
<
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
<div className={`${preCls}__footer-btns`}>
|
|
190
|
+
<RectBtn type="cancel" className={`${preCls}__footer-reset`} onClick={handleClose}>
|
|
191
|
+
{getLocale('Mod_Cancel')}
|
|
192
|
+
</RectBtn>
|
|
193
|
+
<RectBtn
|
|
194
|
+
className={`${preCls}__footer-sure`}
|
|
195
|
+
type="primary"
|
|
196
|
+
onClick={handleSubmit}
|
|
197
|
+
>
|
|
198
|
+
{getLocale('OKR_MyO_Butt_Determine')}
|
|
199
|
+
</RectBtn>
|
|
200
|
+
</div>
|
|
197
201
|
</div>
|
|
198
202
|
</div>
|
|
199
203
|
);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&-radio {
|
|
23
|
-
width:
|
|
23
|
+
width: 190px;
|
|
24
24
|
height: 22px;
|
|
25
25
|
margin-bottom: 12px;
|
|
26
26
|
}
|
|
@@ -28,7 +28,11 @@
|
|
|
28
28
|
&__footer {
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: center;
|
|
31
|
-
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
&-btns{
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
32
36
|
&-checkbox {
|
|
33
37
|
display: inline-flex;
|
|
34
38
|
align-items: center;
|
|
@@ -44,12 +48,10 @@
|
|
|
44
48
|
|
|
45
49
|
&-text {
|
|
46
50
|
margin-left: 4px;
|
|
47
|
-
white-space: nowrap;
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
&-reset {
|
|
52
|
-
margin-left: 40px;
|
|
53
55
|
margin-right: 12px;
|
|
54
56
|
}
|
|
55
57
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { FC,
|
|
1
|
+
import React, { FC, Fragment } from "react";
|
|
2
2
|
import Drawer from "../drawer";
|
|
3
3
|
import FilterForm from "./filter-form";
|
|
4
|
-
import
|
|
4
|
+
import { getLocale } from "../../utils/getLocale";
|
|
5
5
|
|
|
6
6
|
interface FilterRrawerProps {
|
|
7
7
|
visible?: boolean;
|
|
@@ -16,9 +16,6 @@ const Filter: FC<FilterRrawerProps> = ({
|
|
|
16
16
|
onSearch,
|
|
17
17
|
setFilterNum,
|
|
18
18
|
}) => {
|
|
19
|
-
// const [cycle, setCycle] = useState({});
|
|
20
|
-
// const [filterDrawerVisible, setFilterDrawerVisible] = useState(visible);
|
|
21
|
-
const openFilterDrawer = () => setVisible(true);
|
|
22
19
|
const closeFilterDrawer = () => setVisible(false);
|
|
23
20
|
return (
|
|
24
21
|
<Fragment>
|
|
@@ -27,10 +24,10 @@ const Filter: FC<FilterRrawerProps> = ({
|
|
|
27
24
|
onClose={closeFilterDrawer}
|
|
28
25
|
mask={true}
|
|
29
26
|
maskClosable={true}
|
|
30
|
-
width={
|
|
27
|
+
width={450}
|
|
31
28
|
destroyOnClose={false}
|
|
32
29
|
>
|
|
33
|
-
<Drawer.Header content=
|
|
30
|
+
<Drawer.Header content={getLocale('OKR_MyO_Title_Advanced')} />
|
|
34
31
|
<FilterForm
|
|
35
32
|
onSearch={onSearch}
|
|
36
33
|
closeFilterDrawer={closeFilterDrawer}
|
|
@@ -10,6 +10,7 @@ import preCls from '../precls';
|
|
|
10
10
|
import { OpenDepartmentName } from '../open-data';
|
|
11
11
|
import { fittingString, getOpenData, setSize } from '../../open-data-painter';
|
|
12
12
|
import { isWx } from '../../../utils/bs-global';
|
|
13
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
13
14
|
|
|
14
15
|
const WorkNode = ({ data, isSearchRes, darkTheme }) => {
|
|
15
16
|
const {
|
|
@@ -33,12 +34,14 @@ const WorkNode = ({ data, isSearchRes, darkTheme }) => {
|
|
|
33
34
|
const [whiteImg, setWhiteImg] = useState();
|
|
34
35
|
const [imgWidth, setImgWidth] = useState();
|
|
35
36
|
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const getOkrTypeMap = () => {
|
|
38
|
+
return {
|
|
39
|
+
1: getLocale('OKR_MyO_Pop_Individual'),
|
|
40
|
+
// 2: <OpenDepartmentName id={departmentId} name={departmentName} />,
|
|
41
|
+
2: <img src={darkTheme ? whiteImg: departUrl} style={{macWidth: 92}} width={imgWidth}/>,
|
|
42
|
+
3: getLocale('OKR_MyO_Pop_Company'),
|
|
43
|
+
4: groupName || getLocale('OKR_MyO_Text_Team'),
|
|
44
|
+
}
|
|
42
45
|
};
|
|
43
46
|
|
|
44
47
|
const getDepartUrl = async () => {
|
|
@@ -82,7 +85,7 @@ const WorkNode = ({ data, isSearchRes, darkTheme }) => {
|
|
|
82
85
|
let cycleTypeCopy = modelType ? (modelType === 2 ? -1 : cycleType) : cycleType;
|
|
83
86
|
switch (cycleTypeCopy) {
|
|
84
87
|
case 0:
|
|
85
|
-
return '
|
|
88
|
+
return getLocale('Mod_Customization');
|
|
86
89
|
case 1:
|
|
87
90
|
return annualNum + '年';
|
|
88
91
|
case 2:
|
|
@@ -114,7 +117,7 @@ const WorkNode = ({ data, isSearchRes, darkTheme }) => {
|
|
|
114
117
|
<Creator creator={principalUser || {}} />
|
|
115
118
|
<div className={classNames(`${preCls}--node-right`)}>
|
|
116
119
|
<OkrType>
|
|
117
|
-
<span className={classNames(`${preCls}--node-type`)} >{
|
|
120
|
+
<span className={classNames(`${preCls}--node-type`)} >{getOkrTypeMap()[okrType]}</span>
|
|
118
121
|
</OkrType>
|
|
119
122
|
<span className={classNames(`${preCls}--node-cycle`)} >
|
|
120
123
|
{getCycleTextByType()}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import preCls from '../precls';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import { getLocale } from '.././../../utils/getLocale';
|
|
3
4
|
|
|
4
5
|
import './index.scss';
|
|
5
6
|
|
|
@@ -7,7 +8,7 @@ const Empty = () => {
|
|
|
7
8
|
return (
|
|
8
9
|
<div className={classNames(`${preCls}--empty`)}>
|
|
9
10
|
<div className={classNames(`${preCls}--empty--icon`)} />
|
|
10
|
-
<div className={classNames(`${preCls}--empty--tip`)}> 
|
|
11
|
+
<div className={classNames(`${preCls}--empty--tip`)}> {getLocale('OKR_Ali_Text_Didntfind')}</div>
|
|
11
12
|
</div>
|
|
12
13
|
);
|
|
13
14
|
};
|
|
@@ -10,6 +10,7 @@ import { CommonContext } from "../context";
|
|
|
10
10
|
import { isWx } from "../../../utils/bs-global";
|
|
11
11
|
import { getBase64DownloadUrl } from "../../okr-share/request-apis";
|
|
12
12
|
import preCls from "../precls";
|
|
13
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
13
14
|
import "rc-color-picker/assets/index.css";
|
|
14
15
|
import "./index.scss";
|
|
15
16
|
|
|
@@ -117,7 +118,7 @@ const ExportMapModal = (props: IProps) => {
|
|
|
117
118
|
|
|
118
119
|
return (
|
|
119
120
|
<Dialog
|
|
120
|
-
title=
|
|
121
|
+
title={getLocale('OKR_Ali_Exportmap')}
|
|
121
122
|
noFooterLine={true}
|
|
122
123
|
visible={visible}
|
|
123
124
|
width="1000px"
|
|
@@ -130,7 +131,7 @@ const ExportMapModal = (props: IProps) => {
|
|
|
130
131
|
>
|
|
131
132
|
<Fragment>
|
|
132
133
|
<div className="export-map-modal__setting">
|
|
133
|
-
<span style={{marginRight: 10}}
|
|
134
|
+
<span style={{marginRight: 10}}>{getLocale('OKR_Ali_Selectbackground')}</span>
|
|
134
135
|
<ColorPicker
|
|
135
136
|
animation="slide-up"
|
|
136
137
|
color={"#FFFFFF"}
|
|
@@ -3,6 +3,7 @@ import { useZoomPanHelper } from '@titaui/react-flow-renderer';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import Tooltip from '../../tooltip';
|
|
5
5
|
import Map from './map';
|
|
6
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
6
7
|
|
|
7
8
|
import preCls from '../precls';
|
|
8
9
|
import './index.scss';
|
|
@@ -39,7 +40,7 @@ const MiniMap = props => {
|
|
|
39
40
|
|
|
40
41
|
<div className={classNames(`${preCls}--minimap--operat`)} >
|
|
41
42
|
|
|
42
|
-
<Tooltip placement='top' overlay={!visible ? '
|
|
43
|
+
<Tooltip placement='top' overlay={!visible ? getLocale('Mod_Unfold') : getLocale('Mod_Fold')}>
|
|
43
44
|
<span
|
|
44
45
|
className={classNames(`${preCls}--minimap--icon`, {
|
|
45
46
|
[`${preCls}--minimap--icon__open`]: !visible,
|
|
@@ -51,7 +52,7 @@ const MiniMap = props => {
|
|
|
51
52
|
|
|
52
53
|
<span className={classNames(`${preCls}--minimap--divider`)} >|</span>
|
|
53
54
|
|
|
54
|
-
<Tooltip placement='top' overlay={<span
|
|
55
|
+
<Tooltip placement='top' overlay={<span>{getLocale('OKR_Ali_Butt_Narrow')}</span>}>
|
|
55
56
|
<span
|
|
56
57
|
className={classNames(`${preCls}--minimap--size__min`, `${preCls}--minimap--icon`)}
|
|
57
58
|
onClick={onZoomOut}
|
|
@@ -60,7 +61,7 @@ const MiniMap = props => {
|
|
|
60
61
|
|
|
61
62
|
<span>{zoom}%</span>
|
|
62
63
|
|
|
63
|
-
<Tooltip placement='top' overlay={<span
|
|
64
|
+
<Tooltip placement='top' overlay={<span>{getLocale('OKR_Ali_Butt_Enlarge')}</span>}>
|
|
64
65
|
<span
|
|
65
66
|
className={classNames(`${preCls}--minimap--size__max`, `${preCls}--minimap--icon`)}
|
|
66
67
|
onClick={onZoomIn}
|