@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
+
import { getLocale } from "../../../../utils/getLocale";
|
|
3
4
|
import "./index.scss";
|
|
4
5
|
|
|
5
6
|
interface IProps {
|
|
@@ -51,7 +52,7 @@ const Score = (props: IProps) => {
|
|
|
51
52
|
<span className={`okr-drawer-score__text`}>{score == 1 ? '1': Number(score).toFixed(2) * 1}分</span> :
|
|
52
53
|
<span>
|
|
53
54
|
<span />
|
|
54
|
-
<span>{editable ? '
|
|
55
|
+
<span>{editable ? getLocale('Per_Ass_New_Appr_detail_Scor') : '--'}</span>
|
|
55
56
|
</span>
|
|
56
57
|
}
|
|
57
58
|
</span>
|
|
@@ -3,6 +3,7 @@ import { OpenUserName } from '../../../utils/open-data';
|
|
|
3
3
|
import { addComment } from '../request-apis';
|
|
4
4
|
import { getBSGlobal } from '../../../utils/bs-global'
|
|
5
5
|
import MBlog from '../../mblog';
|
|
6
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
6
7
|
import './index.scss';
|
|
7
8
|
|
|
8
9
|
const loginUserId = getBSGlobal('loginUserInfo').Id;
|
|
@@ -63,7 +64,7 @@ function OKrDetailBottomComment({ feedId, onAfterSubmit, isFocusReply = false }:
|
|
|
63
64
|
return (
|
|
64
65
|
<div className='okr-detail-drawer-bottom-mblog-wrapper' onMouseDown={e => e.stopPropagation()}>
|
|
65
66
|
{!!reply && <div className="okr-detail-reply-to-user" style={{ height: 'auto', padding: '3px 0' }}>
|
|
66
|
-
<span style={{ position: 'relative', top: '2px' }}
|
|
67
|
+
<span style={{ position: 'relative', top: '2px' }}>{getLocale('Mod_Reply')}</span>
|
|
67
68
|
<div className="okr-detail-drawer-reply-user">
|
|
68
69
|
<span className="name"><OpenUserName name={reply.userName} id={reply.userId} /></span>
|
|
69
70
|
<span className="tu-icon-cross" onClick={() => {
|
|
@@ -73,13 +74,13 @@ function OKrDetailBottomComment({ feedId, onAfterSubmit, isFocusReply = false }:
|
|
|
73
74
|
</div>}
|
|
74
75
|
<MBlog
|
|
75
76
|
defaultContent={''}
|
|
76
|
-
placeholderText=
|
|
77
|
+
placeholderText={getLocale('Mod_contentofyour')}
|
|
77
78
|
isHasPlaceholder
|
|
78
79
|
isShowRangeDropDown={false}
|
|
79
80
|
isShowSendSms={false}
|
|
80
81
|
isShowBtnCancel={false}
|
|
81
82
|
isShowRange={false}
|
|
82
|
-
submitText='
|
|
83
|
+
submitText={getLocale('OKR_MyO_KRP_Butt_Release')}
|
|
83
84
|
initialTextHeight={96}
|
|
84
85
|
autoResizing={false}
|
|
85
86
|
autoFocus={autoFocus}
|
|
@@ -101,7 +102,7 @@ function OKrDetailBottomComment({ feedId, onAfterSubmit, isFocusReply = false }:
|
|
|
101
102
|
onClick={() => setActive(true)}
|
|
102
103
|
>
|
|
103
104
|
<i className="tu-icon-bianji2" />
|
|
104
|
-
|
|
105
|
+
{getLocale('Mod_Needcommunicate')}
|
|
105
106
|
<img src={require('../images/nice.svg')} />
|
|
106
107
|
</div>
|
|
107
108
|
);
|
|
@@ -2,6 +2,7 @@ import { getBSGlobal } from '../../../utils/bs-global';
|
|
|
2
2
|
import { OAuth } from '../../../utils/auth';
|
|
3
3
|
import { OkrRole, OkrStatus } from './enums';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
5
6
|
|
|
6
7
|
interface IOkrHeadActionData {
|
|
7
8
|
roleType: number;
|
|
@@ -43,7 +44,7 @@ export function getOkrHeadActions(data: IOkrHeadActionData) {
|
|
|
43
44
|
const addShareButton: ActionDealFunction = ({ openShareModal }, actions) => {
|
|
44
45
|
actions.push({
|
|
45
46
|
icon: 'tu-icon-fenxiang',
|
|
46
|
-
title: '
|
|
47
|
+
title: getLocale('OKR_MyO_Share'),
|
|
47
48
|
onClick: openShareModal
|
|
48
49
|
});
|
|
49
50
|
};
|
|
@@ -52,26 +53,26 @@ const addVisibilityButton: ActionDealFunction = ({auth,visibility, detailInfo,ch
|
|
|
52
53
|
|
|
53
54
|
let children = [
|
|
54
55
|
{
|
|
55
|
-
title: '
|
|
56
|
+
title: getLocale('OKR_MyO_Pop_Public'),
|
|
56
57
|
onClick:() => changeVisiblilty(1)
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
|
-
title: '
|
|
60
|
+
title: getLocale('OKR_MyO_From_Associatedmem'),
|
|
60
61
|
onClick:() => changeVisiblilty(2)
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
|
-
title: '
|
|
64
|
+
title: getLocale('OKR_MyO_Pop_Directrep'),
|
|
64
65
|
onClick:() => changeVisiblilty(3)
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
|
-
title: '
|
|
68
|
+
title: getLocale('OKR_MyO_Pop_Specified'),
|
|
68
69
|
onClick:() => changeVisiblilty(4)
|
|
69
70
|
},
|
|
70
71
|
]
|
|
71
72
|
const editable = auth.hasAuth() && detailInfo.status == OkrStatus.inProgress;
|
|
72
73
|
actions.push({
|
|
73
74
|
icon: visibility != 1 ? 'tu-icon-simi-icon' : 'tu-icon-gongkai',
|
|
74
|
-
title: children[visibility - 1].title + '
|
|
75
|
+
title: children[visibility - 1].title + getLocale('OKR_MyO_Text_Visible'),
|
|
75
76
|
children: editable ? children : null,
|
|
76
77
|
});
|
|
77
78
|
};
|
|
@@ -89,7 +90,7 @@ const addFollowButton: ActionDealFunction = ({ roleType,detailInfo,onChangeOkrFo
|
|
|
89
90
|
if (roleType == OkrRole.follower) {
|
|
90
91
|
actions.push({
|
|
91
92
|
icon: 'okr-drawer-header-followed',
|
|
92
|
-
title: '
|
|
93
|
+
title: getLocale('OKR_MyO_Butt_Unfollow'),
|
|
93
94
|
onClick: () => onChangeOkrFollow(false)
|
|
94
95
|
});
|
|
95
96
|
return;
|
|
@@ -106,7 +107,7 @@ const addExitButton: ActionDealFunction = ({roleType,onQuit},actions) => {
|
|
|
106
107
|
if(roleType == OkrRole.member){
|
|
107
108
|
actions.push({
|
|
108
109
|
icon:'tu-icon-tuichu',
|
|
109
|
-
title: '
|
|
110
|
+
title: getLocale('Pro_Admin_pop_Withdraw'),
|
|
110
111
|
onClick: onQuit
|
|
111
112
|
})
|
|
112
113
|
}
|
|
@@ -119,7 +120,7 @@ const addFinishOrReopenButton: ActionDealFunction = ({ detailInfo,auth,onFinishO
|
|
|
119
120
|
if(detailInfo.status == OkrStatus.inProgress){
|
|
120
121
|
actions.push({
|
|
121
122
|
icon:'tu-icon-liebiao-jieshu',
|
|
122
|
-
title: '
|
|
123
|
+
title: getLocale('OKR_MyO_EndObjective'),
|
|
123
124
|
onClick: ()=>onFinishOrReOpen(true)
|
|
124
125
|
})
|
|
125
126
|
}else {
|
|
@@ -135,7 +136,7 @@ const addFinishOrReopenButton: ActionDealFunction = ({ detailInfo,auth,onFinishO
|
|
|
135
136
|
const addCopyButton: ActionDealFunction = ({onCopyOkr}, actions) => {
|
|
136
137
|
actions.push({
|
|
137
138
|
icon:'tu-icon-liebiao-fuzhi',
|
|
138
|
-
title: '
|
|
139
|
+
title: getLocale('OKR_MyO_Butt_CopyObjective'),
|
|
139
140
|
onClick: () => onCopyOkr()
|
|
140
141
|
})
|
|
141
142
|
}
|
|
@@ -144,7 +145,7 @@ const addDeleteButton: ActionDealFunction = ({auth,onDeleteOkr},actions) => {
|
|
|
144
145
|
if(!auth.hasAuth()) return;
|
|
145
146
|
actions.push({
|
|
146
147
|
icon:'tu-icon-del',
|
|
147
|
-
title: '
|
|
148
|
+
title: getLocale('OKR_MyO_Butt_DeleteO'),
|
|
148
149
|
onClick:onDeleteOkr
|
|
149
150
|
})
|
|
150
151
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
1
|
+
import React, { ReactElement, useState, useCallback } from 'react';
|
|
2
2
|
import ReactDom from 'react-dom';
|
|
3
3
|
import Confirm, { CancelButton, SureButton } from '../../../components/dialog-confirm';
|
|
4
|
-
import {
|
|
5
|
-
import { useCallback } from 'react';
|
|
4
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
6
5
|
|
|
7
6
|
interface Props {
|
|
8
7
|
title: string;
|
|
@@ -30,11 +29,11 @@ function OkrDetailHeaderConfirm({ onConfirm, title='', content='' }: Props): Rea
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
<CancelButton type='button' onClick={() => handleConfirm(false)}>
|
|
33
|
-
|
|
32
|
+
{getLocale('Mod_Cancel')}
|
|
34
33
|
</CancelButton>
|
|
35
|
-
{/* <WarningButton type="button"
|
|
34
|
+
{/* <WarningButton type="button">{getLocale('Mod_Delete')}</WarningButton> */}
|
|
36
35
|
<SureButton type='button' onClick={() => handleConfirm(true)}>
|
|
37
|
-
|
|
36
|
+
{getLocale('OKR_MyO_Butt_Determine')}
|
|
38
37
|
</SureButton>
|
|
39
38
|
</Confirm>
|
|
40
39
|
);
|
|
@@ -2,6 +2,7 @@ import React, { ReactElement, useState } from 'react'
|
|
|
2
2
|
import { DeleteWrapper, DeleteTitle, Options, ButtonGroup, Icon } from './style';
|
|
3
3
|
import { Button } from 'tita-ui';
|
|
4
4
|
import Tooltip from '../../../tooltip'
|
|
5
|
+
import { getLocale } from "../../../../utils/getLocale";
|
|
5
6
|
|
|
6
7
|
interface Props {
|
|
7
8
|
onConfirm: any
|
|
@@ -12,7 +13,7 @@ interface DeleteOptionsObj {
|
|
|
12
13
|
text: string;
|
|
13
14
|
tips: string;
|
|
14
15
|
}
|
|
15
|
-
const
|
|
16
|
+
const getDeleteOptions = ():DeleteOptionsObj[] => [
|
|
16
17
|
{
|
|
17
18
|
id: 0,
|
|
18
19
|
text: '不删除目标下的任务',
|
|
@@ -21,12 +22,12 @@ const deleteOptions: DeleteOptionsObj[] = [
|
|
|
21
22
|
{
|
|
22
23
|
id: 1,
|
|
23
24
|
text: '同时删除目标下所有任务',
|
|
24
|
-
tips: '
|
|
25
|
+
tips: getLocale('Pro_detail_Tasksapproval'),
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
id: 2,
|
|
28
|
-
text: '
|
|
29
|
-
tips: '
|
|
29
|
+
text: getLocale('Pro_detail_Attheametime'),
|
|
30
|
+
tips: getLocale('Pro_detail_Tasksapproval'),
|
|
30
31
|
},
|
|
31
32
|
];
|
|
32
33
|
function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
@@ -35,7 +36,7 @@ function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
|
35
36
|
<DeleteWrapper onClick={e => e.stopPropagation()}>
|
|
36
37
|
<DeleteTitle>目标删除操作不可恢复!请谨慎操作</DeleteTitle>
|
|
37
38
|
<div>
|
|
38
|
-
{
|
|
39
|
+
{getDeleteOptions().map((option: DeleteOptionsObj) => (
|
|
39
40
|
<Options key={option.id} onClick={() => setSelected(option.id)}>
|
|
40
41
|
<Icon
|
|
41
42
|
className={
|
|
@@ -57,7 +58,7 @@ function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
|
57
58
|
onCancel()
|
|
58
59
|
}}
|
|
59
60
|
>
|
|
60
|
-
|
|
61
|
+
{getLocale('Mod_Cancel')}
|
|
61
62
|
</Button>
|
|
62
63
|
<Button
|
|
63
64
|
type='primary'
|
|
@@ -65,7 +66,7 @@ function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
|
65
66
|
onConfirm(selected)
|
|
66
67
|
}
|
|
67
68
|
>
|
|
68
|
-
|
|
69
|
+
{getLocale('Pro_detail_Submission')}
|
|
69
70
|
</Button>
|
|
70
71
|
</ButtonGroup>
|
|
71
72
|
</DeleteWrapper>
|
|
@@ -25,6 +25,7 @@ import { PopConfirm } from "tita-ui";
|
|
|
25
25
|
import { GeneralDataContext, CommonContext } from "../context";
|
|
26
26
|
import OkrDeleteConfirm from "./delete-confirm/delete-confirm";
|
|
27
27
|
import drawerManager from "../../drawer-manager";
|
|
28
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
28
29
|
import "./index.scss";
|
|
29
30
|
|
|
30
31
|
interface Props {
|
|
@@ -52,7 +53,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
52
53
|
areaUserIds: (visibilityScope.users || []).map((g) => g.userId),
|
|
53
54
|
},
|
|
54
55
|
});
|
|
55
|
-
Toast.Success(
|
|
56
|
+
Toast.Success(getLocale('Mod_Successfuloperat'));
|
|
56
57
|
context.setGeneralVisibility({ visibility, visibilityScope });
|
|
57
58
|
},
|
|
58
59
|
[detailInfo]
|
|
@@ -105,7 +106,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
105
106
|
: await deleteUser(loginUserId, detailInfo.workId, 3);
|
|
106
107
|
context.setGeneralRoleType(follow ? 3 : 0);
|
|
107
108
|
//关注
|
|
108
|
-
Toast.Success(
|
|
109
|
+
Toast.Success(getLocale('Mod_Successfuloperat'));
|
|
109
110
|
if (!follow) {
|
|
110
111
|
commonContext.refreshAll();
|
|
111
112
|
}
|
|
@@ -113,7 +114,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
113
114
|
},
|
|
114
115
|
onFinishOrReOpen: async (isFinish: boolean) => {
|
|
115
116
|
const res = await openOkrHeaderConfirm(
|
|
116
|
-
isFinish ?
|
|
117
|
+
isFinish ? getLocale('OKR_MyO_Areycloseobjective') : "确定重启该目标吗?"
|
|
117
118
|
);
|
|
118
119
|
if (res) {
|
|
119
120
|
isFinish
|
|
@@ -121,7 +122,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
121
122
|
: await start(detailInfo.workId);
|
|
122
123
|
commonContext.refreshAll();
|
|
123
124
|
//刷新
|
|
124
|
-
Toast.Success(
|
|
125
|
+
Toast.Success(getLocale('Mod_Successfuloperat'));
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
128
|
onQuit: async () => {
|
|
@@ -134,7 +135,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
134
135
|
// context.setGeneralRoleType(0)
|
|
135
136
|
commonContext.refreshAll();
|
|
136
137
|
//刷新
|
|
137
|
-
Toast.Success(
|
|
138
|
+
Toast.Success(getLocale('Mod_Successfuloperat'));
|
|
138
139
|
}
|
|
139
140
|
},
|
|
140
141
|
});
|
|
@@ -216,7 +217,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
216
217
|
'deleteType': selected,
|
|
217
218
|
'workId': detailInfo.workId,
|
|
218
219
|
});
|
|
219
|
-
Toast.Success(
|
|
220
|
+
Toast.Success(getLocale('Pro_detail_Deletsuccess'));
|
|
220
221
|
commonContext.refreshAll();
|
|
221
222
|
}}
|
|
222
223
|
onCancel={() => popRef.current && popRef.current.getRef().hide()}
|
|
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import DropSelector, { Item } from '../../../../drop-selector';
|
|
4
4
|
import DownArrowSvg from '../../images/line-down-arrow.svg';
|
|
5
|
+
import { getLocale } from "../../../../../utils/getLocale";
|
|
5
6
|
|
|
6
7
|
import '../index.scss';
|
|
7
8
|
import './index.scss';
|
|
@@ -82,19 +83,19 @@ export default props => {
|
|
|
82
83
|
onChange={onChangeHandler}
|
|
83
84
|
popupPlacement={'bottomLeft'}
|
|
84
85
|
checked={['orderBySystem']}
|
|
85
|
-
trigger={<div className={classNames(`${preCls}__field-order`)}
|
|
86
|
+
trigger={<div className={classNames(`${preCls}__field-order`)}>{getLocale('OKR_MyO_E_From_Defaultsort')} <i className={'tu-icon-arrow-down'}/></div>}
|
|
86
87
|
>
|
|
87
88
|
<Item name="orderBySystem">
|
|
88
|
-
<span className={selectName === 'orderBySystem' ? classNames(`${preCls}__select-item--selected`) : ''}
|
|
89
|
+
<span className={selectName === 'orderBySystem' ? classNames(`${preCls}__select-item--selected`) : ''}>{getLocale('Pro_page_Plan_Sysdefault')}</span>
|
|
89
90
|
</Item>
|
|
90
91
|
<Item name="orderByCreateDate" onClick={onChangeHandler}>
|
|
91
|
-
<OrderItem order={orderByCreateDate} label=
|
|
92
|
+
<OrderItem order={orderByCreateDate} label={getLocale('OKR_MyO_E_From_Creationtime')} />
|
|
92
93
|
</Item>
|
|
93
94
|
<Item name="orderByStartDate" onClick={onChangeHandler}>
|
|
94
|
-
<OrderItem order={orderByStartDate} label=
|
|
95
|
+
<OrderItem order={orderByStartDate} label={getLocale('Mod_Startingtime')} />
|
|
95
96
|
</Item>
|
|
96
97
|
<Item name="orderByEndDate" onClick={onChangeHandler}>
|
|
97
|
-
<OrderItem order={orderByEndDate} label=
|
|
98
|
+
<OrderItem order={orderByEndDate} label={getLocale('Mod_EndTime')} />
|
|
98
99
|
</Item>
|
|
99
100
|
</DropSelector>
|
|
100
101
|
</div>
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import DropSelector, { Item } from '../../../../drop-selector';
|
|
4
4
|
import DownArrowSvg from '../../images/line-down-arrow.svg';
|
|
5
|
+
import { getLocale } from "../../../../../utils/getLocale";
|
|
5
6
|
|
|
6
7
|
import '../index.scss';
|
|
7
8
|
|
|
@@ -34,15 +35,15 @@ export default (props) => {
|
|
|
34
35
|
hideOnChange={false}
|
|
35
36
|
onChange={onItemClickHandler}
|
|
36
37
|
limitHeight={false}
|
|
37
|
-
trigger={<div className={classNames(`${preCls}__field-status`)}
|
|
38
|
+
trigger={<div className={classNames(`${preCls}__field-status`)}>{getLocale('Mod_States')} <i className={'tu-icon-arrow-down'}/></div>}
|
|
38
39
|
>
|
|
39
|
-
<Item name="all"
|
|
40
|
-
<Item name="unstart"
|
|
41
|
-
<Item name="doing"
|
|
42
|
-
<Item name="finish"
|
|
43
|
-
<Item name="delay"
|
|
44
|
-
<Item name="cancel"
|
|
45
|
-
<Item name="pause"
|
|
40
|
+
<Item name="all">{getLocale('OKR_MyO_Butt_AllStates')}</Item>
|
|
41
|
+
<Item name="unstart">{getLocale('OKR_MyO_E_From_NotStarted')}</Item>
|
|
42
|
+
<Item name="doing">{getLocale('Per_MyRe_text_Inprogress')}</Item>
|
|
43
|
+
<Item name="finish">{getLocale('OKR_MyO_Butt_Hasended')}</Item>
|
|
44
|
+
<Item name="delay">{getLocale('OKR_MyO_E_From_Delayed')}</Item>
|
|
45
|
+
<Item name="cancel">{getLocale('OKR_MyO_E_From_Cancelled')}</Item>
|
|
46
|
+
<Item name="pause">{getLocale('OKR_MyO_E_From_Suspended')}</Item>
|
|
46
47
|
</DropSelector>
|
|
47
48
|
</div>
|
|
48
49
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import FieldTreeSelector from '../../../../user-selector/export-modules/field-tree-selector';
|
|
4
|
+
import { getLocale } from "../../../../../utils/getLocale";
|
|
4
5
|
import '../index.scss';
|
|
5
6
|
|
|
6
7
|
const preCls = 'ode-search-form';
|
|
@@ -20,7 +21,7 @@ export default ({ selectUsers, setSelectUsers }) => {
|
|
|
20
21
|
disabledDepartSelect={true}
|
|
21
22
|
panes={{ 'depart': true, 'group': false }}
|
|
22
23
|
>
|
|
23
|
-
<div className={classNames(`${preCls}__field-user`)}
|
|
24
|
+
<div className={classNames(`${preCls}__field-user`)}>{getLocale('Per_Ma_form_detail_Personnel')} <i className={'tu-icon-arrow-down'} /></div>
|
|
24
25
|
</FieldTreeSelector>
|
|
25
26
|
</div >
|
|
26
27
|
}
|
|
@@ -6,7 +6,7 @@ import EStatusField from "./fields/e-status";
|
|
|
6
6
|
import EOrderField from "./fields/e-order";
|
|
7
7
|
import EUserField from "./fields/e-user";
|
|
8
8
|
import { getUserInfo } from "../../../../utils/bs-global";
|
|
9
|
-
|
|
9
|
+
import { getLocale } from "../../../../utils/getLocale";
|
|
10
10
|
import "./index.scss";
|
|
11
11
|
|
|
12
12
|
const preCls = "ode-search-form";
|
|
@@ -57,7 +57,7 @@ export default (props) => {
|
|
|
57
57
|
JSON.stringify(selectUsers)
|
|
58
58
|
);
|
|
59
59
|
setHasRememberCondition(true);
|
|
60
|
-
Toast.Success(
|
|
60
|
+
Toast.Success(getLocale('Mod_Successfuloperat'), { canClose: false });
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
const handleCancelRemeberSearchCondition = () => {
|
|
@@ -67,7 +67,7 @@ export default (props) => {
|
|
|
67
67
|
localStorage.setItem(`okrDrawerENoteOrder${loginUser}`, "");
|
|
68
68
|
localStorage.setItem(`okrDrawerESelectUsers${loginUser}`, "");
|
|
69
69
|
setHasRememberCondition(false);
|
|
70
|
-
Toast.Success(
|
|
70
|
+
Toast.Success(getLocale('Mod_Successfuloperat'), { canClose: false });
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const showRemeberCondition = useMemo(() => {
|
|
@@ -105,7 +105,7 @@ export default (props) => {
|
|
|
105
105
|
className={classNames(`${preCls}__remember`)}
|
|
106
106
|
onClick={handleRemeberSearchCondition}
|
|
107
107
|
>
|
|
108
|
-
|
|
108
|
+
{getLocale('Pro_page_Plan_Remember')}
|
|
109
109
|
</span>
|
|
110
110
|
) : null}
|
|
111
111
|
{hasRememberCondition && (
|
|
@@ -113,7 +113,7 @@ export default (props) => {
|
|
|
113
113
|
className={classNames(`${preCls}__remember`)}
|
|
114
114
|
onClick={handleCancelRemeberSearchCondition}
|
|
115
115
|
>
|
|
116
|
-
|
|
116
|
+
{getLocale('OKR_MyO_Butt_Cancelremember')}
|
|
117
117
|
</span>
|
|
118
118
|
)}
|
|
119
119
|
</span>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import cloneDeep from 'clone-deep';
|
|
2
2
|
import { SortTypeMap, EStatusMap } from './constant';
|
|
3
3
|
import { getUserInfo } from '../../../utils/bs-global';
|
|
4
|
+
import { getLocale } from '../../../utils/getLocale';
|
|
4
5
|
|
|
5
6
|
// 扁平数据转换为树
|
|
6
7
|
export const toTree = data => {
|
|
@@ -57,7 +58,7 @@ export const formatTreeDataToNode = (tree, isInitCondition) => {
|
|
|
57
58
|
return {
|
|
58
59
|
'key': item.mileStoneId,
|
|
59
60
|
'index': index,
|
|
60
|
-
'title': item.mileStoneId !== 0 ? item.mileStoneName : '
|
|
61
|
+
'title': item.mileStoneId !== 0 ? item.mileStoneName : getLocale('OKR_MyO_Butt_Otherexecutions'),
|
|
61
62
|
'nodeType': 'e-kr',
|
|
62
63
|
'isLeaf': false,
|
|
63
64
|
'children': getETreeNode(item.tasks, true, item.createUserId,item.user),
|
|
@@ -72,7 +73,7 @@ export const formatTreeDataToNode = (tree, isInitCondition) => {
|
|
|
72
73
|
result.push({
|
|
73
74
|
'key': item.mileStoneId,
|
|
74
75
|
'index': index,
|
|
75
|
-
'title': item.mileStoneId !== 0 ? item.mileStoneName : '
|
|
76
|
+
'title': item.mileStoneId !== 0 ? item.mileStoneName : getLocale('OKR_MyO_Butt_Otherexecutions'),
|
|
76
77
|
'nodeType': 'e-kr',
|
|
77
78
|
'isLeaf': false,
|
|
78
79
|
'children': getETreeNode(item.tasks, true, item.createUserId,item.user),
|
|
@@ -99,7 +100,7 @@ export const formatEListDataToSelectTree = (data, workId, isInitCondition) => {
|
|
|
99
100
|
'oEList': isInitCondition && formatOTreeDataToNode.length === 0 ? [[{
|
|
100
101
|
'key': 0,
|
|
101
102
|
'index': 0,
|
|
102
|
-
'title': '
|
|
103
|
+
'title': getLocale('OKR_MyO_Butt_Otherexecutions'),
|
|
103
104
|
'nodeType': 'e-kr',
|
|
104
105
|
'isLeaf': false,
|
|
105
106
|
'children': [
|
|
@@ -18,6 +18,7 @@ import DrawerManagerContext from "../drawer-manager/context";
|
|
|
18
18
|
import OkrDetailErrorPage from './error-page'
|
|
19
19
|
import Loading from './loading';
|
|
20
20
|
import AoNice from './components/ao-nice';
|
|
21
|
+
import { getLocale } from "../../utils/getLocale";
|
|
21
22
|
|
|
22
23
|
import "./index.scss";
|
|
23
24
|
const preCls = "okr-detail";
|
|
@@ -207,19 +208,19 @@ const OkrDetail = props => {
|
|
|
207
208
|
</TabPanelContent>
|
|
208
209
|
</TabPane>
|
|
209
210
|
|
|
210
|
-
<TabPane tab=
|
|
211
|
+
<TabPane tab={getLocale('OKR_MyO_Exec_Tab_Execution')} key="exec" >
|
|
211
212
|
<TabPanelContent style={{ 'paddingTop': 10 }}>
|
|
212
213
|
<EList okrId={okrId} okrInfo={okrInfo} />
|
|
213
214
|
</TabPanelContent>
|
|
214
215
|
</TabPane>
|
|
215
216
|
|
|
216
|
-
<TabPane tab=
|
|
217
|
+
<TabPane tab={getLocale('Feed_Tab_Title_Progress')} key="progress">
|
|
217
218
|
<TabPanelContent style={{ 'paddingTop': 0 }}>
|
|
218
219
|
<Schedule okrInfo={okrInfo} />
|
|
219
220
|
</TabPanelContent>
|
|
220
221
|
</TabPane>
|
|
221
222
|
|
|
222
|
-
<TabPane tab=
|
|
223
|
+
<TabPane tab={getLocale('OKR_MyO_KRP_nteract')} key="cooperation">
|
|
223
224
|
<TabPanelContent style={{ 'marginRight': 32, 'marginLeft': 32 }}>
|
|
224
225
|
<OkrDetailCooperation
|
|
225
226
|
feedId={okrInfo.feedId}
|
|
@@ -231,7 +232,7 @@ const OkrDetail = props => {
|
|
|
231
232
|
</TabPane>
|
|
232
233
|
|
|
233
234
|
{EWorkReport && source != 861 &&
|
|
234
|
-
<TabPane tab=
|
|
235
|
+
<TabPane tab={getLocale('OKR_MyO_Ew_Tab_Eweekly')} key="eReport">
|
|
235
236
|
<TabPanelContent style={{ 'marginRight': 32, 'marginLeft': 32 }}>
|
|
236
237
|
<EReportList
|
|
237
238
|
okrId={okrInfo.workId}
|
|
@@ -242,7 +243,7 @@ const OkrDetail = props => {
|
|
|
242
243
|
</TabPane>}
|
|
243
244
|
|
|
244
245
|
{OkrAnalyse&&
|
|
245
|
-
<TabPane tab=
|
|
246
|
+
<TabPane tab={getLocale('OKR_MyO_KRP_Review')} key="review">
|
|
246
247
|
<TabPanelContent style={{ 'marginRight': 32, 'marginLeft': 32 }}>
|
|
247
248
|
<Review
|
|
248
249
|
editAble
|
|
@@ -261,7 +262,7 @@ const OkrDetail = props => {
|
|
|
261
262
|
</TabPanelContent>
|
|
262
263
|
</TabPane>}
|
|
263
264
|
|
|
264
|
-
<TabPane tab=
|
|
265
|
+
<TabPane tab={getLocale('Per_Ass_New_title_text_BasicIn')} key="baseInfo">
|
|
265
266
|
<TabPanelContent style={{ 'paddingTop': 8 }}>
|
|
266
267
|
<BaseInfo okrId={okrId} detailInfo={okrInfo} />
|
|
267
268
|
</TabPanelContent>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import { getLocale } from "../../../utils/getLocale";
|
|
3
4
|
import './index.scss';
|
|
4
5
|
|
|
5
6
|
const preCls = 'okr-detail-okrs-list'
|
|
@@ -9,7 +10,7 @@ export default props => {
|
|
|
9
10
|
return <React.Fragment>
|
|
10
11
|
<div className={classNames(`${preCls}__align-to-add`)} onClick={onClick}>
|
|
11
12
|
<span className={classNames(`${preCls}__align-to-add-prefix`, 'tu-icon-add1')} />
|
|
12
|
-
<span className={classNames(`${preCls}__align-to-add-text`)}
|
|
13
|
+
<span className={classNames(`${preCls}__align-to-add-text`)}>{getLocale('Per_Ma_form_newdetail_Addto')}</span>
|
|
13
14
|
</div>
|
|
14
15
|
</React.Fragment>
|
|
15
16
|
}
|
|
@@ -6,6 +6,7 @@ import Confidence from '../../../confidence';
|
|
|
6
6
|
import { getUserInfo } from '../../../../utils/bs-global';
|
|
7
7
|
import { hasAncestorElement } from './dom';
|
|
8
8
|
import { createNewKr } from '../../request-apis';
|
|
9
|
+
import { getLocale } from '../../../../utils/getLocale';
|
|
9
10
|
|
|
10
11
|
import './index.scss';
|
|
11
12
|
interface Props {
|
|
@@ -162,7 +163,7 @@ function CreateKr({
|
|
|
162
163
|
<div className={preCls}>
|
|
163
164
|
<div className={classNames(`${preCls}__input`)}>
|
|
164
165
|
<Input
|
|
165
|
-
placeholder='
|
|
166
|
+
placeholder={getLocale('OKR_MyO_Text_Createkeyr')}
|
|
166
167
|
inputRef={inputRef}
|
|
167
168
|
value={krName}
|
|
168
169
|
onChange={e => setKrName(e.target.value)}
|
|
@@ -174,12 +175,12 @@ function CreateKr({
|
|
|
174
175
|
style={{ 'display': showTip ? 'block' : 'none', 'zIndex': 1 }}
|
|
175
176
|
onClick={stopPropagation}
|
|
176
177
|
>
|
|
177
|
-
|
|
178
|
+
{getLocale('OKR_MyO_Text_Recommendation')}
|
|
178
179
|
<br />
|
|
179
|
-
<p
|
|
180
|
+
<p>{getLocale('OKR_MyO_Text_ExampleC')}</p>
|
|
180
181
|
<div>
|
|
181
|
-
<a onClick={onNextTalk}
|
|
182
|
-
<a onClick={onNoMoreShow}
|
|
182
|
+
<a onClick={onNextTalk}>{getLocale('OKR_MyO_Butt_Nexttime')}</a>
|
|
183
|
+
<a onClick={onNoMoreShow}>{getLocale('OKR_MyO_Butt_Nomor')}</a>
|
|
183
184
|
</div>
|
|
184
185
|
</p>
|
|
185
186
|
<span className={classNames(`${preCls}__heart`)}>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
+
import { getLocale } from '../../../../utils/getLocale';
|
|
3
4
|
|
|
4
5
|
import './index.scss';
|
|
5
6
|
|
|
@@ -12,16 +13,16 @@ export default ({ onCreateKr, canEditOkr, style={} }) => {
|
|
|
12
13
|
<span />
|
|
13
14
|
</div>
|
|
14
15
|
<div className={classNames(`${preCls}__desp`)}>
|
|
15
|
-
<div className={classNames(`${preCls}__desp-h1`)}
|
|
16
|
+
<div className={classNames(`${preCls}__desp-h1`)}>{getLocale('OKR_MyO_Pop_developkro')}</div>
|
|
16
17
|
<div className={classNames(`${preCls}__desp-h2`)}>
|
|
17
|
-
<span
|
|
18
|
-
<a href="https://wiki.tita.com/pages/viewpage.action?pageId=852060" target="_blank"
|
|
18
|
+
<span>{getLocale('OKR_MyO_Pop_understand')}</span>
|
|
19
|
+
<a href="https://wiki.tita.com/pages/viewpage.action?pageId=852060" target="_blank">{getLocale('OKR_MyO_Pop_Whatarekre')}</a>
|
|
19
20
|
</div>
|
|
20
21
|
</div>
|
|
21
22
|
{canEditOkr &&
|
|
22
23
|
<div className={classNames(`${preCls}__action`)}>
|
|
23
24
|
<span className={classNames(`${preCls}__action-btn`)} onClick={() => onCreateKr()}>
|
|
24
|
-
<span
|
|
25
|
+
<span>{getLocale('OKR_MyO_Text_Addkeyr')}</span>
|
|
25
26
|
</span>
|
|
26
27
|
</div>
|
|
27
28
|
}
|