@titaui/pc 1.7.99 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/default.js +1 -1
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/name-avatar/index.js +1 -1
- package/lib/components/avatar/text-avatar/index.js +1 -1
- package/lib/components/button/default-button/index.js +2 -4
- package/lib/components/button/rect-btn/index.js +2 -4
- package/lib/components/button/text-btn/index.js +1 -3
- package/lib/components/cascader/index.js +2 -4
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +113 -59
- package/lib/components/change-okr-modal/Item.js +19 -21
- package/lib/components/change-okr-modal/filterTab.js +5 -3
- package/lib/components/change-okr-modal/index.js +14 -14
- package/lib/components/checkbox/index.js +1 -1
- package/lib/components/common-share/index.js +1 -1
- package/lib/components/common-share/publishMblog.js +5 -7
- package/lib/components/communication/CommunicationAttachments.js +9 -11
- package/lib/components/communication/CommunicationRecord.js +9 -8
- package/lib/components/communication/ConvertUserName.js +3 -3
- package/lib/components/communication/index.js +7 -9
- package/lib/components/confidence/index.js +3 -5
- package/lib/components/create-okr-modal/constant.js +11 -37
- package/lib/components/create-okr-modal/createCycle.js +7 -9
- package/lib/components/create-okr-modal/createSuccessCmp.js +7 -9
- package/lib/components/create-okr-modal/fields/date-cycle.js +4 -6
- package/lib/components/create-okr-modal/fields/input-with-err-popup.js +1 -1
- package/lib/components/create-okr-modal/fields/o-new-name.js +12 -15
- package/lib/components/create-okr-modal/fields/okr-case.js +4 -6
- package/lib/components/create-okr-modal/fields/okr-classify.js +9 -14
- package/lib/components/create-okr-modal/fields/okr-create-suggest.js +4 -6
- package/lib/components/create-okr-modal/fields/okr-new-user-selector.js +1 -1
- package/lib/components/create-okr-modal/fields/okr-parent.js +3 -5
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +6 -8
- package/lib/components/create-okr-modal/fields/okr-type.js +5 -7
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +7 -9
- package/lib/components/create-okr-modal/fields/okr-visibility.js +22 -29
- package/lib/components/create-okr-modal/index.js +26 -31
- package/lib/components/create-okr-modal/kr-items/kr-item-weight.js +4 -6
- package/lib/components/create-okr-modal/kr-items/krDatas.js +7 -8
- package/lib/components/create-okr-modal/kr-items/krItem.js +4 -6
- package/lib/components/create-okr-modal/objectType.js +21 -25
- package/lib/components/create-okr-modal/request-api.js +2 -2
- package/lib/components/create-okr-modal/style.js +1 -1
- package/lib/components/create-okr-modal/utils/helper.js +2 -2
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +4 -6
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +3 -3
- package/lib/components/date-range-picker/index.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +19 -18
- package/lib/components/dialog/index.css +5 -1
- package/lib/components/dialog/index.js +9 -10
- package/lib/components/drawer/headerAction.js +3 -3
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +5 -7
- package/lib/components/drawer/utils/useForceUpdate.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/drawer-manager/index.js +4 -4
- package/lib/components/drawer-manager/utils/useForceUpdate.js +1 -1
- package/lib/components/drop-selector/index.js +3 -3
- package/lib/components/dynamic/advertise/index.js +1 -1
- package/lib/components/dynamic/advertise/util.js +2 -2
- package/lib/components/dynamic/components/dynamic-search-input/index.css +1 -3
- package/lib/components/dynamic/components/dynamic-search-input/index.js +6 -8
- package/lib/components/dynamic/components/first-level-tabs/index.js +1 -1
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/constant.js +16 -18
- package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -15
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +3 -5
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +3 -5
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +6 -8
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -7
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -12
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +8 -10
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +7 -10
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +3 -5
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +4 -6
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +4 -6
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +5 -7
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +7 -10
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +4 -6
- package/lib/components/dynamic/dynamic-item/index.js +3 -5
- package/lib/components/dynamic/dynamic-like-ranking/index.js +7 -9
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -3
- package/lib/components/dynamic/dynamic-liking/index.js +2 -4
- package/lib/components/dynamic/dynamic-liking/item.js +2 -4
- package/lib/components/dynamic/dynamic-list/index.js +1 -3
- package/lib/components/dynamic/dynamic-topping/index.js +2 -4
- package/lib/components/dynamic/dynamic-topping/item.js +3 -5
- package/lib/components/dynamic/dynamic.js +3 -5
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/my-team/index.js +3 -5
- package/lib/components/dynamic/online-broadcast/index.js +2 -4
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +1 -3
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +1 -3
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +1 -3
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -4
- package/lib/components/dynamic/quick-operation/index.js +2 -4
- package/lib/components/dynamic/request-api.js +2 -2
- package/lib/components/dynamic/util.js +13 -15
- package/lib/components/e-priority/index.js +6 -8
- package/lib/components/eReport/eReportListEmpty.js +3 -3
- package/lib/components/eReport/eReportLists/reportList.js +10 -12
- package/lib/components/eReport/eReportShare/index.js +5 -7
- package/lib/components/eReport/eReportShare/toast/index.js +4 -6
- package/lib/components/edit-kr-wight/EditKrWightModal.js +9 -11
- package/lib/components/edit-kr-wight/FormItemV2.js +3 -3
- package/lib/components/edit-kr-wight/utils.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +3 -3
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +8 -10
- package/lib/components/error-boundary/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +4 -6
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/firework/index.js +2 -2
- package/lib/components/follower-visitor/index.js +1 -1
- package/lib/components/form/form-fields/department/department-input.js +1 -3
- package/lib/components/form/form-fields/department/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/duties/duties-input.js +1 -3
- package/lib/components/form/form-fields/duties/index.js +1 -1
- package/lib/components/form/form-fields/group/index.js +1 -1
- package/lib/components/form/form-fields/input/index.css +19 -5
- package/lib/components/form/form-fields/input/index.js +12 -9
- package/lib/components/form/form-fields/input-verification-code/index.css +117 -0
- package/lib/components/form/form-fields/input-verification-code/index.js +230 -0
- package/lib/components/form/form-fields/password/index.css +2 -2
- package/lib/components/form/form-fields/password/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.js +2 -2
- package/lib/components/form/form-fields/textarea/index.js +1 -1
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/form/form-fields/user/user-input.js +1 -3
- package/lib/components/form/index.js +7 -4
- package/lib/components/grid-layout/commen-components/card-title.js +1 -1
- package/lib/components/grid-layout/commen-components/data-item.js +1 -1
- package/lib/components/grid-layout/commen-components/empty-backgrounds.js +1 -1
- package/lib/components/grid-layout/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-layout/essay-component/index.js +1 -1
- package/lib/components/grid-layout/near-visitors/index.js +1 -1
- package/lib/components/grid-layout/near-visitors/visitor.js +1 -1
- package/lib/components/grid-layout/okr-align/index.js +3 -5
- package/lib/components/grid-layout/okr-progress/index.js +2 -4
- package/lib/components/grid-layout/okr-target/index.js +10 -12
- package/lib/components/grid-layout/over-view/index.js +3 -5
- package/lib/components/grid-layout/personal-info/index.js +1 -1
- package/lib/components/grid-layout/sub-employee-okr/index.js +3 -5
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +1 -1
- package/lib/components/grid-layout/util/click-link.js +2 -2
- package/lib/components/grid-layout/week-task/index.js +5 -7
- package/lib/components/grid-layout/words-cloud/index.js +1 -1
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/near-visitors/visitor.js +1 -1
- package/lib/components/grid-page/personal-info/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/img-viewer/index.js +4 -6
- package/lib/components/mblog/components/ConfirmPop.js +4 -6
- package/lib/components/mblog/components/MblogAction.js +19 -16
- package/lib/components/mblog/components/MblogContent.js +3 -3
- package/lib/components/mblog/index.js +24 -26
- package/lib/components/menus/components/drag-resize/index.js +3 -7
- package/lib/components/menus/components/flip-menu-card/flip-back-header.js +1 -3
- package/lib/components/menus/components/flip-menu-card/index.js +1 -1
- package/lib/components/menus/components/menu-card/index.js +3 -3
- package/lib/components/menus/components/menu-tree/tree-node/assess-manage.js +1 -6
- package/lib/components/menus/components/menu-tree/tree-node/assess-template.js +1 -6
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/company-all.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/follower/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +0 -2
- package/lib/components/menus/components/menu-tree/tree-node/no-follower.js +1 -3
- package/lib/components/menus/components/menu-tree/tree-node/user/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-concern.js +1 -1
- package/lib/components/menus/components/search-colleague/index.js +2 -2
- package/lib/components/menus/export-modules/appraisal-menus/index.js +4 -11
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +3 -5
- package/lib/components/menus/export-modules/manage-menus/handle-highlight.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +12 -0
- package/lib/components/menus/export-modules/manage-menus/index.js +5 -38
- package/lib/components/menus/export-modules/okr-menus/depart-menus/helper.js +2 -2
- package/lib/components/menus/export-modules/okr-menus/depart-menus/index.js +3 -5
- package/lib/components/menus/export-modules/okr-menus/index.js +2 -7
- package/lib/components/menus/export-modules/okr-menus/menu-highlight.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +2 -4
- package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +1 -1
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +1 -1
- package/lib/components/menus/i18n.js +47 -39
- package/lib/components/nav-top/components/menu/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/remind/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +1 -3
- package/lib/components/nav-top/components/user-message/components/reply/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/index.js +1 -1
- package/lib/components/nav-top/components/user-message/index.js +1 -1
- package/lib/components/nav-top/components/user-message/msg/index.js +4 -6
- package/lib/components/nav-top/components/user-message/utils.js +1 -3
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.css +1 -22
- package/lib/components/nav-top/components/user-own-menu/components/own-menu/index.js +4 -45
- package/lib/components/nav-top/components/user-own-menu/utils.js +26 -60
- package/lib/components/nav-top/components/version/index.js +2 -4
- package/lib/components/nav-top/index.js +1 -1
- package/lib/components/nav-top/request.apis.js +2 -8
- package/lib/components/okr-detail/auth.js +3 -3
- package/lib/components/okr-detail/base-info/base-info.js +13 -15
- package/lib/components/okr-detail/base-info/o-desc/index.js +7 -9
- package/lib/components/okr-detail/base-info/other-infos/classify/index.js +11 -16
- package/lib/components/okr-detail/base-info/other-infos/common/border-wrapper/index.js +1 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +2 -4
- package/lib/components/okr-detail/base-info/other-infos/okr-type/index.js +5 -7
- package/lib/components/okr-detail/base-info/other-infos/other-infos.js +3 -3
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
- package/lib/components/okr-detail/base-info/other-infos/visibility/index.js +11 -13
- package/lib/components/okr-detail/base-info/person/index.js +2 -4
- package/lib/components/okr-detail/base-info/util.js +2 -2
- package/lib/components/okr-detail/components/ao-nice/index.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +3 -3
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +5 -7
- package/lib/components/okr-detail/components/base-okr-type/index.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +21 -25
- package/lib/components/okr-detail/components/editable-input/index.js +1 -1
- package/lib/components/okr-detail/components/header/edit-name.js +4 -6
- package/lib/components/okr-detail/components/header/index.js +2 -4
- package/lib/components/okr-detail/components/header/o-avatar.js +1 -1
- package/lib/components/okr-detail/components/header/o-cycle.js +1 -1
- package/lib/components/okr-detail/components/header/o-name.js +1 -3
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-classify.js +5 -7
- package/lib/components/okr-detail/components/o-progress-update/index.js +5 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +6 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +1 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +6 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +7 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +10 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +10 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +7 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +7 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +16 -18
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +10 -14
- package/lib/components/okr-detail/components/okr-type.js +4 -6
- package/lib/components/okr-detail/components/score/index.js +1 -3
- package/lib/components/okr-detail/detail-footer/index.js +5 -7
- package/lib/components/okr-detail/detail-header/actions.js +13 -15
- package/lib/components/okr-detail/detail-header/confirm.js +3 -5
- package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +17 -21
- package/lib/components/okr-detail/detail-header/index.js +9 -11
- package/lib/components/okr-detail/e-list/index.js +1 -1
- package/lib/components/okr-detail/e-list/search-form/fields/e-order.js +6 -8
- package/lib/components/okr-detail/e-list/search-form/fields/e-status.js +9 -11
- package/lib/components/okr-detail/e-list/search-form/fields/e-user.js +1 -3
- package/lib/components/okr-detail/e-list/search-form/index.js +5 -7
- package/lib/components/okr-detail/e-list/util.js +5 -7
- package/lib/components/okr-detail/index.js +9 -11
- package/lib/components/okr-detail/okr-list/add-parent-okr.js +2 -4
- package/lib/components/okr-detail/okr-list/create-kr-item/heart.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +7 -9
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +2 -2
- package/lib/components/okr-detail/okr-list/empty/index.js +3 -5
- package/lib/components/okr-detail/okr-list/index.js +8 -12
- package/lib/components/okr-detail/okr-list/warp-parent-okr.js +1 -3
- package/lib/components/okr-detail/request-apis.js +3 -5
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +1 -3
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +17 -19
- package/lib/components/okr-detail/schedule/schedule.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -3
- package/lib/components/okr-filter-drawer/filter-form.js +58 -71
- package/lib/components/okr-filter-drawer/index.css +3 -7
- package/lib/components/okr-filter-drawer/index.js +9 -5
- package/lib/components/okr-flow/child-node/fields/creator.js +1 -1
- package/lib/components/okr-flow/child-node/index.js +1 -1
- package/lib/components/okr-flow/child-node/work-node.js +15 -19
- package/lib/components/okr-flow/empty/index.js +1 -3
- package/lib/components/okr-flow/export-modal/index.js +3 -5
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +3 -3
- package/lib/components/okr-flow/mini-map/index.js +4 -6
- package/lib/components/okr-flow/mini-map/map.js +1 -1
- package/lib/components/okr-flow/mini-map/mini-node.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +2 -2
- package/lib/components/okr-flow/okr-map/index.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +3 -3
- package/lib/components/okr-flow/request-apis.js +2 -2
- package/lib/components/okr-flow/root-node/index.js +1 -1
- package/lib/components/okr-period-selector/index.js +1 -1
- package/lib/components/okr-period-selector/select-cycle.js +7 -9
- package/lib/components/okr-progress/components/kr-progress/index.js +1 -3
- package/lib/components/okr-progress/components/o-progress/index.js +17 -19
- package/lib/components/okr-progress/components/o-progress-update/index.js +5 -7
- package/lib/components/okr-progress/okr-progress/index.js +1 -1
- package/lib/components/okr-progress/request-apis.js +3 -5
- package/lib/components/okr-progress/util.js +1 -3
- package/lib/components/okr-progress-detail/index.js +8 -11
- package/lib/components/okr-progress-detail/utils.js +3 -5
- package/lib/components/okr-progress-modal/helper.js +82 -127
- package/lib/components/okr-progress-modal/index.js +38 -15
- package/lib/components/okr-progress-modal/textarea/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +21 -23
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +3 -3
- package/lib/components/okr-review/ReviewPop/index.js +11 -13
- package/lib/components/okr-review/components/ReviewItem/index.js +6 -8
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +10 -12
- package/lib/components/okr-review/index.js +7 -9
- package/lib/components/okr-share/index.js +1 -1
- package/lib/components/okr-share/pink-card/card.js +1 -3
- package/lib/components/okr-share/publishMblog.js +5 -7
- package/lib/components/okr-share/shareCardSelector.js +3 -5
- package/lib/components/okrcase-library/index.js +3 -5
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/index.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.js +5 -7
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +2 -4
- package/lib/components/okrcase-library/okrcases-components/caseLibrary-nav.js +1 -1
- package/lib/components/okrcase-library/okrcases-components/caseLibray-header.js +3 -5
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +3 -5
- package/lib/components/okrcase-library/server/network.js +2 -2
- package/lib/components/okrcase-library-card/index.js +5 -7
- package/lib/components/operation-records/OperationRecordItem.js +3 -3
- package/lib/components/operation-records/index.js +4 -6
- package/lib/components/pagination/pagination.js +1 -11
- package/lib/components/password-input/index.js +3 -5
- package/lib/components/period-selector/common.js +11 -26
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/components/selector/index.js +21 -48
- package/lib/components/period-selector/helper/index.js +2 -2
- package/lib/components/period-selector/index.js +1 -1
- package/lib/components/period-selector/mockData.js +83 -97
- package/lib/components/photo-card/components/card/index.js +5 -7
- package/lib/components/photo-card/index.js +3 -5
- package/lib/components/point-demo/drop-down-box/index.js +2 -4
- package/lib/components/point-demo/index.js +69 -17
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/point-demo.js +1 -1
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +3 -3
- package/lib/components/praise-record/index.js +5 -7
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +6 -10
- package/lib/components/publish-dynamic-modal/requist-api.js +2 -2
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/radio/radioGroup.js +2 -2
- package/lib/components/range-picker-pop/index.js +5 -5
- package/lib/components/range-selector-pop/RangeList.js +6 -8
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/scrollbar/simplebar/index.js +0 -2
- package/lib/components/scrollbar/simplebar/scrollbar-width.js +0 -2
- package/lib/components/scrollbar/simplebar/simplebar.js +3 -3
- package/lib/components/scrollbar/simplebar-react.js +3 -3
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/search-input/index.js +3 -3
- package/lib/components/search-key-handle/index.js +1 -1
- package/lib/components/select/Option.js +5 -5
- package/lib/components/select/index.js +5 -5
- package/lib/components/select-layer/index.js +2 -4
- package/lib/components/select-tags/index.js +2 -4
- package/lib/components/selector-input/index.js +2 -4
- package/lib/components/slider-input/index.js +2 -4
- package/lib/components/stateless-dropdown/stateless-dropdown.js +1 -1
- package/lib/components/status-time/index.js +4 -6
- package/lib/components/table/index.css +4 -0
- package/lib/components/table/index.js +6 -5
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +7 -9
- package/lib/components/task-relation-modal/radio.js +1 -1
- package/lib/components/task-relation-modal/request-api.js +2 -2
- package/lib/components/task-relation-modal/search/category-select.js +5 -7
- package/lib/components/task-relation-modal/search/okr-status-select.js +5 -7
- package/lib/components/task-relation-modal/search/okr-type-select.js +7 -9
- package/lib/components/task-relation-modal/search/principal.js +3 -5
- package/lib/components/task-relation-modal/search/relation.js +7 -9
- package/lib/components/task-relation-modal/tree/category-tree/index.js +6 -8
- package/lib/components/task-relation-modal/tree/category-tree/search-form.js +2 -4
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +7 -9
- package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +4 -6
- package/lib/components/task-relation-modal/tree/work-tree/index.js +8 -10
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +2 -4
- package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +4 -6
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -5
- package/lib/components/tita-chart/charts/liquid-ball.js +2 -4
- package/lib/components/tita-chart/charts/pie.js +2 -2
- package/lib/components/tita-chart/charts/words-cloud.js +8 -10
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/tita-chart/hooks/useChart.js +3 -3
- package/lib/components/tita-chart/plots/liquid/index.js +1 -1
- package/lib/components/tita-chart/plots/pie/index.js +1 -1
- package/lib/components/tita-chart/plots/wordscloud/index.js +1 -1
- package/lib/components/toast/index.js +1 -1
- package/lib/components/tooltip/tooltip-text/index.js +1 -1
- package/lib/components/update-modal/index.js +2 -4
- package/lib/components/upload/components/uploadedPreview.js +9 -11
- package/lib/components/upload/index.js +8 -10
- package/lib/components/upload-photo-modal/constant.js +99 -0
- package/lib/components/upload-photo-modal/img/browser-preview-bgc.png +0 -0
- package/lib/components/upload-photo-modal/index.css +276 -0
- package/lib/components/upload-photo-modal/index.js +332 -0
- package/lib/components/upload-photo-modal/request-api.js +44 -0
- package/lib/components/upvote/attitude.js +25 -31
- package/lib/components/upvote/index.js +8 -10
- package/lib/components/upvote/selector.js +2 -2
- package/lib/components/upvote/upvoteListModal.js +2 -4
- package/lib/components/user-selector/action-btns/btn-cancel.js +1 -3
- package/lib/components/user-selector/action-btns/btn-ok.js +1 -3
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
- package/lib/components/user-selector/category-selector-panel/group-tree.js +1 -1
- package/lib/components/user-selector/category-selector-panel/index.js +22 -7
- package/lib/components/user-selector/empty/group.js +1 -3
- package/lib/components/user-selector/empty/index.js +1 -3
- package/lib/components/user-selector/export-modules/depart-search-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/duties-selector/index.js +3 -3
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -4
- package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
- package/lib/components/user-selector/export-modules/group-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/group-selector/searched-panel.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +2 -4
- package/lib/components/user-selector/export-modules/single-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/searched-panel/index.js +4 -6
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +1 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +1 -1
- package/lib/components/user-selector/selected-panel/index.js +7 -9
- package/lib/components/user-selector/utils.js +2 -2
- package/lib/components/version-change-modal/constant.js +29 -35
- package/lib/components/version-change-modal/index.js +2 -2
- package/lib/components/viewer/ImageListRender.js +5 -5
- package/lib/components/viewer/index.js +5 -5
- package/lib/components/weekly-report/card.js +1 -1
- package/lib/components/weekly-report/index.js +3 -5
- package/lib/components/weekly-report/statistics.js +1 -3
- package/lib/components/word-cloud/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/animate/animate.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/buttonv2/ButtonOutlined.js +3 -3
- package/lib/components-v1/buttonv2/ButtonRounded.js +3 -3
- package/lib/components-v1/buttonv2/DefaultButton.js +3 -3
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/confirm/index.js +5 -7
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +3 -3
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +3 -3
- package/lib/components-v1/placement/placement.js +3 -3
- package/lib/components-v1/placement/placementInner.js +5 -5
- package/lib/components-v1/pop/Pop.js +3 -3
- package/lib/components-v1/pop/PopInner.js +5 -5
- package/lib/components-v1/popConfirm/index.js +3 -5
- package/lib/components-v1/portals/Portals.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +4 -4
- package/lib/components-v1/progress/LineProgress.js +3 -3
- package/lib/components-v1/progress/index.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/radioGroup.js +4 -4
- package/lib/components-v1/search/cache.js +3 -3
- package/lib/components-v1/search/index.js +8 -8
- package/lib/components-v1/select/Option.js +5 -5
- package/lib/components-v1/select/index.js +5 -5
- package/lib/components-v1/tabs/index.js +3 -3
- package/lib/components-v1/textarea/index.js +3 -3
- package/lib/components-v1/transition/index.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +4 -6
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +5 -5
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +9 -11
- package/lib/components-v1/userSelector/components/SearchBar.js +4 -6
- package/lib/components-v1/userSelector/components/SingleMode.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/components-v1/userSelector/index.js +6 -8
- package/lib/components-v1/utils/animate/animate.js +1 -1
- package/lib/index.js +8 -0
- package/lib/pages/aha2021/index.js +1 -1
- package/lib/pages/appointment-demo/drop-down-box/index.js +2 -4
- package/lib/pages/appointment-demo/index.js +17 -19
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/dynamic/index.js +1 -1
- package/lib/pages/group-management/components/checkbox/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/openData/index.js +3 -3
- package/lib/pages/group-management/components/table/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +2 -2
- package/lib/pages/group-management/page-view/empty.js +2 -2
- package/lib/pages/group-management/page-view/group-empty.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +5 -7
- package/lib/pages/group-management/page-view/index.js +1 -1
- package/lib/pages/group-management/page-view/loading/index.js +1 -1
- package/lib/pages/group-management/table/index.js +3 -5
- package/lib/pages/group-management/tree/add-group-dialog/index.js +3 -5
- package/lib/pages/group-management/tree/delete-group-dialog/index.js +3 -5
- package/lib/pages/group-management/tree/edit-group-dialog/index.js +3 -5
- package/lib/pages/group-management/tree/group-form/index.js +3 -5
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/group-management/tree/operation-panel.js +3 -5
- package/lib/pages/group-management/tree/trigger-render.js +2 -4
- package/lib/pages/home/components/data-list/index.js +10 -12
- package/lib/pages/home/components/data-list/nav-selector/index.js +11 -13
- package/lib/pages/home/components/data-list/table/columns/index.js +14 -16
- package/lib/pages/home/components/data-list/table/columns/okrName.js +1 -1
- package/lib/pages/home/components/data-list/table/columns/progressAndRisk.js +6 -8
- package/lib/pages/home/components/data-list/table/index.js +1 -1
- package/lib/pages/home/components/data-list/table/utils-function.js +1 -3
- package/lib/pages/home/components/guide/index.js +1 -1
- package/lib/pages/home/components/header/index.js +1 -1
- package/lib/pages/home-page-data-list/index.js +10 -12
- package/lib/pages/like-ranking/column.js +6 -8
- package/lib/pages/like-ranking/filter-buttons/department.js +2 -4
- package/lib/pages/like-ranking/filter-buttons/group.js +1 -3
- package/lib/pages/like-ranking/filter-buttons/modular.js +15 -21
- package/lib/pages/like-ranking/filter-buttons/name.js +2 -4
- package/lib/pages/like-ranking/filter-buttons/timer.js +2 -4
- package/lib/pages/like-ranking/index.js +10 -12
- package/lib/pages/new-okr-list/header/comments.js +2 -4
- package/lib/pages/new-okr-list/header/create-okr.js +2 -4
- package/lib/pages/new-okr-list/header/depart-title.js +2 -4
- package/lib/pages/new-okr-list/header/filter.js +2 -4
- package/lib/pages/new-okr-list/header/index.js +2 -4
- package/lib/pages/new-okr-list/header/relation-title.js +2 -4
- package/lib/pages/new-okr-list/index.js +5 -7
- package/lib/pages/new-okr-list/init-cycle-setting.js +1 -1
- package/lib/pages/new-okr-list/keyword-search/index.js +2 -4
- package/lib/pages/new-okr-list/request-api.js +2 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +15 -17
- package/lib/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +4 -6
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +5 -7
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/level2-search/group.js +3 -3
- package/lib/pages/okr-map/level2-search/index.js +1 -1
- package/lib/pages/okr-map/level2-search/level2-input.js +1 -3
- package/lib/pages/okr-map/level2-search/user.js +1 -1
- package/lib/pages/okr-map/no-okr/index.js +1 -3
- package/lib/pages/okr-map/number-select/index.js +1 -3
- package/lib/pages/okr-map/open-data/index.js +3 -3
- package/lib/pages/okr-map/share-dialog/index.js +7 -9
- package/lib/pages/okr-map/unsupport-ie/index.js +1 -1
- package/lib/pages/personal-info/components/base-info/index.css +36 -1
- package/lib/pages/personal-info/components/base-info/index.js +27 -97
- package/lib/pages/personal-info/components/edit-info/index.js +192 -0
- package/lib/pages/personal-info/components/edit-info/input/index.css +89 -0
- package/lib/pages/personal-info/components/edit-info/input/index.js +199 -0
- package/lib/pages/personal-info/components/person-photo/index.css +88 -0
- package/lib/pages/personal-info/components/person-photo/index.js +86 -0
- package/lib/pages/personal-info/index.js +3 -1
- package/lib/utils/auth.js +3 -3
- package/lib/utils/date-test-change.js +3 -5
- package/lib/utils/format-time.js +3 -5
- package/lib/utils/local-storage.js +1 -1
- package/lib/utils/open-data.js +3 -3
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/roundWeight.js +2 -2
- package/package.json +3 -2
- package/src/components/avatar/icon-avatar/index.tsx +2 -2
- package/src/components/button/default-button/index.tsx +2 -3
- package/src/components/button/rect-btn/index.tsx +1 -2
- package/src/components/button/text-btn/index.tsx +1 -2
- package/src/components/cascader/index.tsx +1 -2
- package/src/components/change-okr-modal/Filter.tsx +109 -49
- package/src/components/change-okr-modal/Item.tsx +14 -20
- package/src/components/change-okr-modal/filterTab.tsx +2 -0
- package/src/components/change-okr-modal/index.tsx +9 -8
- package/src/components/common-share/publishMblog.tsx +2 -3
- package/src/components/communication/CommunicationAttachments.tsx +6 -7
- package/src/components/communication/CommunicationRecord.tsx +8 -6
- package/src/components/communication/index.tsx +4 -5
- package/src/components/confidence/index.tsx +2 -3
- package/src/components/create-okr-modal/constant.ts +12 -21
- package/src/components/create-okr-modal/createCycle.tsx +6 -5
- package/src/components/create-okr-modal/createSuccessCmp.tsx +6 -7
- package/src/components/create-okr-modal/fields/date-cycle.tsx +3 -4
- package/src/components/create-okr-modal/fields/o-new-name.tsx +10 -13
- package/src/components/create-okr-modal/fields/okr-case.tsx +2 -3
- package/src/components/create-okr-modal/fields/okr-classify.tsx +7 -11
- package/src/components/create-okr-modal/fields/okr-create-suggest.tsx +4 -5
- package/src/components/create-okr-modal/fields/okr-parent.tsx +3 -4
- package/src/components/create-okr-modal/fields/okr-type-detail.tsx +5 -6
- package/src/components/create-okr-modal/fields/okr-type.tsx +5 -6
- package/src/components/create-okr-modal/fields/okr-visibility-detail.tsx +6 -7
- package/src/components/create-okr-modal/fields/okr-visibility.tsx +14 -19
- package/src/components/create-okr-modal/index.tsx +27 -31
- package/src/components/create-okr-modal/kr-items/kr-item-weight.tsx +1 -2
- package/src/components/create-okr-modal/kr-items/krDatas.tsx +3 -4
- package/src/components/create-okr-modal/kr-items/krItem.tsx +1 -2
- package/src/components/create-okr-modal/objectType.tsx +11 -14
- package/src/components/create-okr-modal/style.ts +1 -1
- package/src/components/date-picker/CalendarBody.js +7 -8
- package/src/components/delete-confirm-pop/ConfirmPop.tsx +17 -7
- package/src/components/dialog/index.js +4 -4
- package/src/components/dialog/index.scss +4 -1
- package/src/components/drawer/index.tsx +2 -3
- package/src/components/drawer-manager/index.tsx +1 -1
- package/src/components/dynamic/components/dynamic-search-input/index.scss +1 -3
- package/src/components/dynamic/components/dynamic-search-input/index.tsx +5 -6
- package/src/components/dynamic/constant.ts +21 -23
- package/src/components/dynamic/dynamic-item/components/header/index.tsx +12 -13
- package/src/components/dynamic/dynamic-item/dynamic-align/index.tsx +2 -3
- package/src/components/dynamic/dynamic-item/dynamic-assessment/index.tsx +2 -3
- package/src/components/dynamic/dynamic-item/dynamic-create-o/index.tsx +5 -6
- package/src/components/dynamic/dynamic-item/dynamic-kr/index.tsx +2 -4
- package/src/components/dynamic/dynamic-item/dynamic-milestone/constant.ts +4 -6
- package/src/components/dynamic/dynamic-item/dynamic-milestone/index.tsx +3 -16
- package/src/components/dynamic/dynamic-item/dynamic-progress/index.tsx +7 -8
- package/src/components/dynamic/dynamic-item/dynamic-project/constant.ts +7 -9
- package/src/components/dynamic/dynamic-item/dynamic-project/index.tsx +1 -2
- package/src/components/dynamic/dynamic-item/dynamic-relative/index.tsx +2 -3
- package/src/components/dynamic/dynamic-item/dynamic-replay/index.tsx +3 -4
- package/src/components/dynamic/dynamic-item/dynamic-report/index.tsx +3 -4
- package/src/components/dynamic/dynamic-item/dynamic-reward/index.tsx +4 -5
- package/src/components/dynamic/dynamic-item/dynamic-share/index.tsx +1 -2
- package/src/components/dynamic/dynamic-item/dynamic-task/constant.ts +7 -9
- package/src/components/dynamic/dynamic-item/dynamic-task/index.tsx +3 -4
- package/src/components/dynamic/dynamic-item/index.tsx +2 -3
- package/src/components/dynamic/dynamic-like-ranking/index.tsx +6 -7
- package/src/components/dynamic/dynamic-like-ranking/item.tsx +2 -2
- package/src/components/dynamic/dynamic-liking/index.tsx +1 -2
- package/src/components/dynamic/dynamic-liking/item.tsx +2 -3
- package/src/components/dynamic/dynamic-list/index.tsx +1 -2
- package/src/components/dynamic/dynamic-topping/index.tsx +1 -2
- package/src/components/dynamic/dynamic-topping/item.tsx +2 -3
- package/src/components/dynamic/dynamic.tsx +2 -3
- package/src/components/dynamic/my-team/index.tsx +2 -3
- package/src/components/dynamic/online-broadcast/index.tsx +2 -3
- package/src/components/dynamic/quick-operation/components/create-announcement/index.tsx +1 -2
- package/src/components/dynamic/quick-operation/components/create-okr/index.tsx +2 -3
- package/src/components/dynamic/quick-operation/components/create-share/index.tsx +1 -2
- package/src/components/dynamic/quick-operation/components/create-task/index.tsx +1 -2
- package/src/components/dynamic/quick-operation/index.tsx +1 -2
- package/src/components/dynamic/util.ts +13 -14
- package/src/components/e-priority/index.js +5 -6
- package/src/components/eReport/eReportLists/reportList.tsx +7 -8
- package/src/components/eReport/eReportShare/index.tsx +2 -3
- package/src/components/eReport/eReportShare/toast/index.tsx +1 -2
- package/src/components/edit-kr-wight/EditKrWightModal.tsx +4 -5
- package/src/components/ereport-list/index.tsx +5 -6
- package/src/components/file-list/components/single-file/index.tsx +3 -4
- package/src/components/form/form-fields/department/department-input.tsx +1 -2
- package/src/components/form/form-fields/duties/duties-input.tsx +1 -2
- package/src/components/form/form-fields/input/index.scss +16 -5
- package/src/components/form/form-fields/input/index.tsx +9 -4
- package/src/components/form/form-fields/input-verification-code/index.scss +108 -0
- package/src/components/form/form-fields/input-verification-code/index.tsx +171 -0
- package/src/components/form/form-fields/password/index.scss +2 -2
- package/src/components/form/form-fields/radios/index.tsx +2 -2
- package/src/components/form/form-fields/user/user-input.tsx +1 -2
- package/src/components/form/index.tsx +2 -0
- package/src/components/grid-layout/okr-align/index.tsx +2 -3
- package/src/components/grid-layout/okr-progress/index.tsx +1 -2
- package/src/components/grid-layout/okr-target/index.tsx +9 -10
- package/src/components/grid-layout/over-view/index.tsx +3 -3
- package/src/components/grid-layout/sub-employee-okr/index.tsx +2 -3
- package/src/components/grid-layout/week-task/index.tsx +4 -5
- package/src/components/img-viewer/index.tsx +3 -4
- package/src/components/mblog/components/ConfirmPop.tsx +1 -2
- package/src/components/mblog/components/MblogAction.tsx +15 -14
- package/src/components/mblog/index.tsx +26 -17
- package/src/components/menus/components/drag-resize/index.tsx +2 -5
- package/src/components/menus/components/flip-menu-card/flip-back-header.tsx +1 -2
- package/src/components/menus/components/menu-tree/tree-node/assess-manage.tsx +1 -4
- package/src/components/menus/components/menu-tree/tree-node/assess-template.tsx +1 -4
- package/src/components/menus/components/menu-tree/tree-node/index.scss +0 -2
- package/src/components/menus/components/menu-tree/tree-node/no-follower.tsx +1 -2
- package/src/components/menus/components/search-colleague/index.tsx +1 -1
- package/src/components/menus/export-modules/appraisal-menus/index.tsx +3 -8
- package/src/components/menus/export-modules/appraisal-menus/menus.ts +2 -3
- package/src/components/menus/export-modules/manage-menus/index.scss +13 -0
- package/src/components/menus/export-modules/manage-menus/index.tsx +10 -44
- package/src/components/menus/export-modules/okr-menus/depart-menus/index.tsx +2 -3
- package/src/components/menus/export-modules/okr-menus/index.tsx +1 -5
- package/src/components/menus/export-modules/okr-menus/menus.ts +1 -2
- package/src/components/menus/i18n.ts +46 -43
- package/src/components/nav-top/components/user-message/components/remind/remind-item.tsx +1 -2
- package/src/components/nav-top/components/user-message/msg/index.tsx +3 -4
- package/src/components/nav-top/components/user-message/utils.ts +1 -3
- package/src/components/nav-top/components/user-own-menu/components/own-menu/index.scss +1 -21
- package/src/components/nav-top/components/user-own-menu/components/own-menu/index.tsx +3 -64
- package/src/components/nav-top/components/user-own-menu/utils.ts +46 -71
- package/src/components/nav-top/components/version/index.tsx +1 -2
- package/src/components/nav-top/interface.ts +1 -2
- package/src/components/nav-top/request.apis.ts +0 -4
- package/src/components/okr-detail/base-info/base-info.tsx +10 -11
- package/src/components/okr-detail/base-info/o-desc/index.tsx +8 -8
- package/src/components/okr-detail/base-info/other-infos/classify/index.tsx +6 -7
- package/src/components/okr-detail/base-info/other-infos/date-cycle/index.tsx +1 -2
- package/src/components/okr-detail/base-info/other-infos/okr-type/index.tsx +4 -5
- package/src/components/okr-detail/base-info/other-infos/principal/index.tsx +1 -2
- package/src/components/okr-detail/base-info/other-infos/visibility/index.tsx +10 -11
- package/src/components/okr-detail/base-info/person/index.tsx +1 -2
- package/src/components/okr-detail/components/ao-nice/index.js +3 -3
- package/src/components/okr-detail/components/base-okr-type/confirm/confirm.tsx +2 -3
- 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 +10 -11
- package/src/components/okr-detail/components/header/edit-name.tsx +3 -4
- package/src/components/okr-detail/components/header/index.js +1 -2
- package/src/components/okr-detail/components/header/o-name.tsx +1 -2
- package/src/components/okr-detail/components/o-classify.tsx +4 -5
- package/src/components/okr-detail/components/o-progress-update/index.tsx +2 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +10 -11
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/constant.ts +6 -8
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +1 -2
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +5 -6
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +3 -4
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +6 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +7 -8
- package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +7 -8
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +6 -7
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +2 -3
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +13 -14
- package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +3 -4
- package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +7 -10
- package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +9 -12
- package/src/components/okr-detail/components/okr-type.tsx +3 -5
- package/src/components/okr-detail/components/score/index.tsx +1 -2
- package/src/components/okr-detail/detail-footer/index.tsx +4 -5
- package/src/components/okr-detail/detail-header/actions.tsx +11 -12
- package/src/components/okr-detail/detail-header/confirm.tsx +6 -5
- package/src/components/okr-detail/detail-header/delete-confirm/delete-confirm.tsx +7 -8
- package/src/components/okr-detail/detail-header/index.tsx +6 -7
- package/src/components/okr-detail/e-list/search-form/fields/e-order.js +5 -6
- package/src/components/okr-detail/e-list/search-form/fields/e-status.js +8 -9
- package/src/components/okr-detail/e-list/search-form/fields/e-user.js +1 -2
- package/src/components/okr-detail/e-list/search-form/index.js +5 -5
- package/src/components/okr-detail/e-list/util.ts +3 -4
- package/src/components/okr-detail/index.js +6 -7
- package/src/components/okr-detail/okr-list/add-parent-okr.js +1 -2
- package/src/components/okr-detail/okr-list/create-kr-item/index.tsx +5 -6
- package/src/components/okr-detail/okr-list/create-kr-item/style.ts +1 -1
- package/src/components/okr-detail/okr-list/empty/index.js +3 -4
- package/src/components/okr-detail/okr-list/index.js +5 -6
- package/src/components/okr-detail/okr-list/warp-parent-okr.js +1 -2
- package/src/components/okr-detail/request-apis.ts +1 -2
- package/src/components/okr-detail/schedule/components/kr-progress/index.tsx +1 -2
- package/src/components/okr-detail/schedule/components/o-progress/index.tsx +16 -17
- package/src/components/okr-detail/schedule/util.ts +1 -3
- package/src/components/okr-filter-drawer/filter-form.tsx +79 -83
- package/src/components/okr-filter-drawer/index.scss +4 -6
- package/src/components/okr-filter-drawer/index.tsx +7 -4
- package/src/components/okr-flow/child-node/work-node.js +8 -11
- package/src/components/okr-flow/empty/index.js +1 -2
- package/src/components/okr-flow/export-modal/index.tsx +2 -3
- package/src/components/okr-flow/mini-map/index.js +3 -4
- package/src/components/okr-period-selector/select-cycle.tsx +12 -12
- package/src/components/okr-progress/components/kr-progress/index.tsx +1 -2
- package/src/components/okr-progress/components/o-progress/index.tsx +16 -17
- package/src/components/okr-progress/components/o-progress-update/index.tsx +2 -3
- package/src/components/okr-progress/request-apis.ts +1 -2
- package/src/components/okr-progress/util.ts +1 -2
- package/src/components/okr-progress-detail/index.tsx +55 -110
- package/src/components/okr-progress-detail/utils.ts +3 -4
- package/src/components/okr-progress-modal/helper.js +64 -104
- package/src/components/okr-progress-modal/index.tsx +50 -15
- package/src/components/okr-review/ReviewPop/components/ReviewBody/index.tsx +17 -19
- 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 +3 -4
- package/src/components/okr-review/components/confirm-pop/ConfirmPop.tsx +6 -4
- package/src/components/okr-review/index.tsx +4 -5
- package/src/components/okr-share/pink-card/card.tsx +1 -2
- package/src/components/okr-share/publishMblog.tsx +4 -3
- package/src/components/okr-share/shareCardSelector.tsx +4 -5
- package/src/components/okrcase-library/index.tsx +3 -4
- package/src/components/okrcase-library/okrcases-components/caseLibrary-cardList/okrcase-card.tsx +4 -5
- package/src/components/okrcase-library/okrcases-components/caseLibrary-main.tsx +1 -2
- package/src/components/okrcase-library/okrcases-components/caseLibray-header.tsx +17 -23
- package/src/components/okrcase-library/okrcases-components/submitOkr-dialog.tsx +2 -3
- package/src/components/okrcase-library-card/index.tsx +6 -5
- package/src/components/operation-records/index.tsx +1 -2
- package/src/components/pagination/pagination.tsx +0 -7
- package/src/components/password-input/index.tsx +11 -8
- package/src/components/period-selector/common.ts +12 -33
- package/src/components/period-selector/components/selector/index.tsx +18 -44
- package/src/components/period-selector/mockData.ts +28 -30
- package/src/components/photo-card/components/card/index.tsx +4 -5
- package/src/components/photo-card/index.tsx +2 -3
- package/src/components/point-demo/drop-down-box/index.js +1 -2
- package/src/components/point-demo/index.js +35 -16
- package/src/components/praise-record/index.tsx +2 -3
- package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +6 -9
- package/src/components/range-picker-pop/index.js +6 -2
- package/src/components/range-selector-pop/RangeList.tsx +4 -5
- package/src/components/scrollbar/simplebar/index.js +0 -1
- package/src/components/scrollbar/simplebar/scrollbar-width.js +0 -1
- package/src/components/select-layer/index.tsx +1 -2
- package/src/components/select-tags/index.tsx +1 -2
- package/src/components/selector-input/index.js +1 -2
- package/src/components/slider-input/index.js +1 -2
- package/src/components/status-time/index.tsx +3 -4
- package/src/components/table/index.js +3 -3
- package/src/components/table/index.scss +5 -0
- package/src/components/task-relation-modal/index.tsx +6 -7
- package/src/components/task-relation-modal/search/category-select.tsx +4 -5
- package/src/components/task-relation-modal/search/okr-status-select.tsx +4 -5
- package/src/components/task-relation-modal/search/okr-type-select.tsx +6 -7
- package/src/components/task-relation-modal/search/principal.tsx +2 -4
- package/src/components/task-relation-modal/search/relation.tsx +6 -7
- package/src/components/task-relation-modal/tree/category-tree/index.tsx +3 -4
- package/src/components/task-relation-modal/tree/category-tree/search-form.tsx +1 -2
- package/src/components/task-relation-modal/tree/okr-tree/index.tsx +4 -5
- package/src/components/task-relation-modal/tree/okr-tree/search-form.tsx +2 -3
- package/src/components/task-relation-modal/tree/work-tree/index.tsx +5 -6
- package/src/components/task-relation-modal/tree/work-tree/search-form.tsx +1 -2
- package/src/components/task-relation-modal/tree-node/milestone-node/index.tsx +3 -4
- package/src/components/task-relation-modal/tree-node/work-node/index.tsx +2 -3
- package/src/components/tita-chart/charts/liquid-ball.tsx +1 -2
- package/src/components/tita-chart/charts/words-cloud.tsx +6 -7
- package/src/components/update-modal/index.tsx +1 -2
- package/src/components/upload/components/uploadedPreview.tsx +6 -7
- package/src/components/upload/index.tsx +4 -3
- package/src/components/upload-photo-modal/constant.ts +71 -0
- package/src/components/upload-photo-modal/img/browser-preview-bgc.png +0 -0
- package/src/components/upload-photo-modal/index.scss +248 -0
- package/src/components/upload-photo-modal/index.tsx +236 -0
- package/src/components/upload-photo-modal/request-api.ts +23 -0
- package/src/components/upvote/attitude.ts +32 -36
- package/src/components/upvote/index.tsx +6 -7
- package/src/components/upvote/selector.tsx +2 -2
- package/src/components/upvote/upvoteListModal.tsx +1 -2
- package/src/components/user-selector/action-btns/btn-cancel.js +1 -2
- package/src/components/user-selector/action-btns/btn-ok.js +1 -2
- package/src/components/user-selector/category-selector-panel/index.tsx +13 -3
- package/src/components/user-selector/empty/group.js +2 -2
- package/src/components/user-selector/empty/index.js +1 -2
- package/src/components/user-selector/export-modules/field-tree-selector/index.tsx +2 -2
- package/src/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -2
- package/src/components/user-selector/request-apis.js +1 -1
- package/src/components/user-selector/searched-panel/index.js +4 -4
- package/src/components/user-selector/selected-panel/index.tsx +6 -7
- package/src/components/version-change-modal/constant.ts +44 -48
- package/src/components/version-change-modal/index.tsx +2 -2
- package/src/components/weekly-report/index.tsx +3 -4
- package/src/components/weekly-report/statistics.tsx +1 -2
- package/src/components-v1/confirm/index.tsx +2 -3
- package/src/components-v1/popConfirm/index.tsx +2 -3
- 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 +4 -2
- package/src/components-v1/userSelector/components/MultiMode/CommonList.tsx +1 -2
- package/src/components-v1/userSelector/components/MultiMode/index.tsx +6 -7
- package/src/components-v1/userSelector/components/SearchBar.tsx +1 -2
- package/src/components-v1/userSelector/index.tsx +3 -4
- package/src/index.d.ts +0 -2
- package/src/index.js +1 -0
- package/src/pages/appointment-demo/drop-down-box/index.js +1 -2
- package/src/pages/appointment-demo/index.js +16 -17
- package/src/pages/group-management/page-view/empty.js +1 -1
- package/src/pages/group-management/page-view/importGroupStaff/index.js +4 -5
- package/src/pages/group-management/table/index.js +2 -3
- package/src/pages/group-management/tree/add-group-dialog/index.js +2 -3
- package/src/pages/group-management/tree/delete-group-dialog/index.js +2 -3
- package/src/pages/group-management/tree/edit-group-dialog/index.js +2 -3
- package/src/pages/group-management/tree/group-form/index.js +2 -3
- package/src/pages/group-management/tree/operation-panel.js +2 -3
- package/src/pages/group-management/tree/trigger-render.js +1 -2
- package/src/pages/home/components/data-list/index.tsx +9 -10
- package/src/pages/home/components/data-list/nav-selector/index.tsx +12 -12
- package/src/pages/home/components/data-list/table/columns/index.tsx +14 -15
- package/src/pages/home/components/data-list/table/columns/progressAndRisk.tsx +5 -6
- package/src/pages/home/components/data-list/table/utils-function.ts +1 -2
- package/src/pages/home-page-data-list/index.tsx +9 -10
- package/src/pages/like-ranking/column.tsx +9 -9
- package/src/pages/like-ranking/filter-buttons/department.tsx +2 -3
- package/src/pages/like-ranking/filter-buttons/group.tsx +1 -2
- package/src/pages/like-ranking/filter-buttons/modular.tsx +8 -11
- package/src/pages/like-ranking/filter-buttons/name.tsx +1 -2
- package/src/pages/like-ranking/filter-buttons/timer.tsx +1 -2
- package/src/pages/like-ranking/index.tsx +7 -8
- package/src/pages/new-okr-list/context.ts +1 -1
- package/src/pages/new-okr-list/header/comments.tsx +1 -2
- package/src/pages/new-okr-list/header/create-okr.tsx +1 -2
- package/src/pages/new-okr-list/header/depart-title.tsx +2 -3
- package/src/pages/new-okr-list/header/filter.tsx +1 -2
- package/src/pages/new-okr-list/header/index.tsx +1 -2
- package/src/pages/new-okr-list/header/relation-title.tsx +2 -3
- package/src/pages/new-okr-list/index.tsx +3 -4
- package/src/pages/new-okr-list/keyword-search/index.tsx +1 -2
- package/src/pages/okr-map/export-modules/okr-map/header/index.js +14 -15
- package/src/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +4 -5
- package/src/pages/okr-map/export-modules/share-okr-page/header/index.js +4 -5
- package/src/pages/okr-map/level2-search/level2-input.js +1 -2
- package/src/pages/okr-map/no-okr/index.js +1 -2
- package/src/pages/okr-map/number-select/index.js +1 -2
- package/src/pages/okr-map/share-dialog/index.js +6 -7
- package/src/pages/personal-info/components/base-info/index.scss +30 -1
- package/src/pages/personal-info/components/base-info/index.tsx +28 -100
- package/src/pages/personal-info/components/edit-info/index.tsx +152 -0
- package/src/pages/personal-info/components/edit-info/input/index.scss +82 -0
- package/src/pages/personal-info/components/edit-info/input/index.tsx +145 -0
- package/src/pages/personal-info/components/person-photo/index.scss +80 -0
- package/src/pages/personal-info/components/person-photo/index.tsx +49 -0
- package/src/pages/personal-info/index.tsx +2 -0
- package/src/utils/date-test-change.ts +3 -5
- package/src/utils/format-time.ts +3 -5
- package/yarn-error.log +103 -0
- package/lib/components/change-okr-modal/constant.js +0 -190
- package/lib/components/pagination/locale/en_US.js +0 -22
- package/lib/components/pagination/locale/zh_CN.js +0 -22
- package/lib/components/point-demo/constant.js +0 -74
- package/lib/components/user-selector/constant.js +0 -29
- package/lib/utils/getLocale.js +0 -12
- package/src/components/change-okr-modal/constant.ts +0 -160
- package/src/components/pagination/locale/en_US.js +0 -16
- package/src/components/pagination/locale/zh_CN.js +0 -16
- package/src/components/point-demo/constant.ts +0 -29
- package/src/components/user-selector/constant.ts +0 -16
- package/src/utils/getLocale.ts +0 -3
|
@@ -2,7 +2,6 @@ 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";
|
|
6
5
|
|
|
7
6
|
interface Props {
|
|
8
7
|
onConfirm: any
|
|
@@ -13,7 +12,7 @@ interface DeleteOptionsObj {
|
|
|
13
12
|
text: string;
|
|
14
13
|
tips: string;
|
|
15
14
|
}
|
|
16
|
-
const
|
|
15
|
+
const deleteOptions: DeleteOptionsObj[] = [
|
|
17
16
|
{
|
|
18
17
|
id: 0,
|
|
19
18
|
text: '不删除目标下的任务',
|
|
@@ -22,12 +21,12 @@ const getDeleteOptions = ():DeleteOptionsObj[] => [
|
|
|
22
21
|
{
|
|
23
22
|
id: 1,
|
|
24
23
|
text: '同时删除目标下所有任务',
|
|
25
|
-
tips:
|
|
24
|
+
tips: '审批中的任务将不会被删除',
|
|
26
25
|
},
|
|
27
26
|
{
|
|
28
27
|
id: 2,
|
|
29
|
-
text:
|
|
30
|
-
tips:
|
|
28
|
+
text: '同时删除我负责的,我参与的,我派发的任务',
|
|
29
|
+
tips: '审批中的任务将不会被删除',
|
|
31
30
|
},
|
|
32
31
|
];
|
|
33
32
|
function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
@@ -36,7 +35,7 @@ function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
|
36
35
|
<DeleteWrapper onClick={e => e.stopPropagation()}>
|
|
37
36
|
<DeleteTitle>目标删除操作不可恢复!请谨慎操作</DeleteTitle>
|
|
38
37
|
<div>
|
|
39
|
-
{
|
|
38
|
+
{deleteOptions.map((option: DeleteOptionsObj) => (
|
|
40
39
|
<Options key={option.id} onClick={() => setSelected(option.id)}>
|
|
41
40
|
<Icon
|
|
42
41
|
className={
|
|
@@ -58,7 +57,7 @@ function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
|
58
57
|
onCancel()
|
|
59
58
|
}}
|
|
60
59
|
>
|
|
61
|
-
|
|
60
|
+
取消
|
|
62
61
|
</Button>
|
|
63
62
|
<Button
|
|
64
63
|
type='primary'
|
|
@@ -66,7 +65,7 @@ function OkrDeleteConfirm({ onConfirm, onCancel }: Props): ReactElement {
|
|
|
66
65
|
onConfirm(selected)
|
|
67
66
|
}
|
|
68
67
|
>
|
|
69
|
-
|
|
68
|
+
提交
|
|
70
69
|
</Button>
|
|
71
70
|
</ButtonGroup>
|
|
72
71
|
</DeleteWrapper>
|
|
@@ -25,7 +25,6 @@ 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";
|
|
29
28
|
import "./index.scss";
|
|
30
29
|
|
|
31
30
|
interface Props {
|
|
@@ -53,7 +52,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
53
52
|
areaUserIds: (visibilityScope.users || []).map((g) => g.userId),
|
|
54
53
|
},
|
|
55
54
|
});
|
|
56
|
-
Toast.Success(
|
|
55
|
+
Toast.Success("操作成功");
|
|
57
56
|
context.setGeneralVisibility({ visibility, visibilityScope });
|
|
58
57
|
},
|
|
59
58
|
[detailInfo]
|
|
@@ -106,7 +105,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
106
105
|
: await deleteUser(loginUserId, detailInfo.workId, 3);
|
|
107
106
|
context.setGeneralRoleType(follow ? 3 : 0);
|
|
108
107
|
//关注
|
|
109
|
-
Toast.Success(
|
|
108
|
+
Toast.Success("操作成功");
|
|
110
109
|
if (!follow) {
|
|
111
110
|
commonContext.refreshAll();
|
|
112
111
|
}
|
|
@@ -114,7 +113,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
114
113
|
},
|
|
115
114
|
onFinishOrReOpen: async (isFinish: boolean) => {
|
|
116
115
|
const res = await openOkrHeaderConfirm(
|
|
117
|
-
isFinish ?
|
|
116
|
+
isFinish ? "确定结束该目标吗?" : "确定重启该目标吗?"
|
|
118
117
|
);
|
|
119
118
|
if (res) {
|
|
120
119
|
isFinish
|
|
@@ -122,7 +121,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
122
121
|
: await start(detailInfo.workId);
|
|
123
122
|
commonContext.refreshAll();
|
|
124
123
|
//刷新
|
|
125
|
-
Toast.Success(
|
|
124
|
+
Toast.Success("操作成功");
|
|
126
125
|
}
|
|
127
126
|
},
|
|
128
127
|
onQuit: async () => {
|
|
@@ -135,7 +134,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
135
134
|
// context.setGeneralRoleType(0)
|
|
136
135
|
commonContext.refreshAll();
|
|
137
136
|
//刷新
|
|
138
|
-
Toast.Success(
|
|
137
|
+
Toast.Success("操作成功");
|
|
139
138
|
}
|
|
140
139
|
},
|
|
141
140
|
});
|
|
@@ -217,7 +216,7 @@ function OkrDetailHeader({ detailInfo }: Props): ReactElement {
|
|
|
217
216
|
'deleteType': selected,
|
|
218
217
|
'workId': detailInfo.workId,
|
|
219
218
|
});
|
|
220
|
-
Toast.Success(
|
|
219
|
+
Toast.Success("删除成功");
|
|
221
220
|
commonContext.refreshAll();
|
|
222
221
|
}}
|
|
223
222
|
onCancel={() => popRef.current && popRef.current.getRef().hide()}
|
|
@@ -2,7 +2,6 @@ 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";
|
|
6
5
|
|
|
7
6
|
import '../index.scss';
|
|
8
7
|
import './index.scss';
|
|
@@ -83,19 +82,19 @@ export default props => {
|
|
|
83
82
|
onChange={onChangeHandler}
|
|
84
83
|
popupPlacement={'bottomLeft'}
|
|
85
84
|
checked={['orderBySystem']}
|
|
86
|
-
trigger={<div className={classNames(`${preCls}__field-order`)}
|
|
85
|
+
trigger={<div className={classNames(`${preCls}__field-order`)}>默认排序 <i className={'tu-icon-arrow-down'}/></div>}
|
|
87
86
|
>
|
|
88
87
|
<Item name="orderBySystem">
|
|
89
|
-
<span className={selectName === 'orderBySystem' ? classNames(`${preCls}__select-item--selected`) : ''}
|
|
88
|
+
<span className={selectName === 'orderBySystem' ? classNames(`${preCls}__select-item--selected`) : ''}>系统默认排序</span>
|
|
90
89
|
</Item>
|
|
91
90
|
<Item name="orderByCreateDate" onClick={onChangeHandler}>
|
|
92
|
-
<OrderItem order={orderByCreateDate} label=
|
|
91
|
+
<OrderItem order={orderByCreateDate} label="创建时间" />
|
|
93
92
|
</Item>
|
|
94
93
|
<Item name="orderByStartDate" onClick={onChangeHandler}>
|
|
95
|
-
<OrderItem order={orderByStartDate} label=
|
|
94
|
+
<OrderItem order={orderByStartDate} label="开始时间" />
|
|
96
95
|
</Item>
|
|
97
96
|
<Item name="orderByEndDate" onClick={onChangeHandler}>
|
|
98
|
-
<OrderItem order={orderByEndDate} label=
|
|
97
|
+
<OrderItem order={orderByEndDate} label="结束时间" />
|
|
99
98
|
</Item>
|
|
100
99
|
</DropSelector>
|
|
101
100
|
</div>
|
|
@@ -2,7 +2,6 @@ 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";
|
|
6
5
|
|
|
7
6
|
import '../index.scss';
|
|
8
7
|
|
|
@@ -35,15 +34,15 @@ export default (props) => {
|
|
|
35
34
|
hideOnChange={false}
|
|
36
35
|
onChange={onItemClickHandler}
|
|
37
36
|
limitHeight={false}
|
|
38
|
-
trigger={<div className={classNames(`${preCls}__field-status`)}
|
|
37
|
+
trigger={<div className={classNames(`${preCls}__field-status`)}>状态 <i className={'tu-icon-arrow-down'}/></div>}
|
|
39
38
|
>
|
|
40
|
-
<Item name="all"
|
|
41
|
-
<Item name="unstart"
|
|
42
|
-
<Item name="doing"
|
|
43
|
-
<Item name="finish"
|
|
44
|
-
<Item name="delay"
|
|
45
|
-
<Item name="cancel"
|
|
46
|
-
<Item name="pause"
|
|
39
|
+
<Item name="all">全部状态</Item>
|
|
40
|
+
<Item name="unstart">未开始</Item>
|
|
41
|
+
<Item name="doing">进行中</Item>
|
|
42
|
+
<Item name="finish">已结束</Item>
|
|
43
|
+
<Item name="delay">已延迟</Item>
|
|
44
|
+
<Item name="cancel">已取消</Item>
|
|
45
|
+
<Item name="pause">暂停中</Item>
|
|
47
46
|
</DropSelector>
|
|
48
47
|
</div>
|
|
49
48
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
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";
|
|
5
4
|
import '../index.scss';
|
|
6
5
|
|
|
7
6
|
const preCls = 'ode-search-form';
|
|
@@ -21,7 +20,7 @@ export default ({ selectUsers, setSelectUsers }) => {
|
|
|
21
20
|
disabledDepartSelect={true}
|
|
22
21
|
panes={{ 'depart': true, 'group': false }}
|
|
23
22
|
>
|
|
24
|
-
<div className={classNames(`${preCls}__field-user`)}
|
|
23
|
+
<div className={classNames(`${preCls}__field-user`)}>人员 <i className={'tu-icon-arrow-down'} /></div>
|
|
25
24
|
</FieldTreeSelector>
|
|
26
25
|
</div >
|
|
27
26
|
}
|
|
@@ -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
|
+
|
|
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("操作成功", { 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("操作成功", { 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
|
+
记住筛选
|
|
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
|
+
取消记住
|
|
117
117
|
</span>
|
|
118
118
|
)}
|
|
119
119
|
</span>
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
|
|
6
5
|
// 扁平数据转换为树
|
|
7
6
|
export const toTree = data => {
|
|
@@ -58,7 +57,7 @@ export const formatTreeDataToNode = (tree, isInitCondition) => {
|
|
|
58
57
|
return {
|
|
59
58
|
'key': item.mileStoneId,
|
|
60
59
|
'index': index,
|
|
61
|
-
'title': item.mileStoneId !== 0 ? item.mileStoneName :
|
|
60
|
+
'title': item.mileStoneId !== 0 ? item.mileStoneName : '目标下的其他执行',
|
|
62
61
|
'nodeType': 'e-kr',
|
|
63
62
|
'isLeaf': false,
|
|
64
63
|
'children': getETreeNode(item.tasks, true, item.createUserId,item.user),
|
|
@@ -73,7 +72,7 @@ export const formatTreeDataToNode = (tree, isInitCondition) => {
|
|
|
73
72
|
result.push({
|
|
74
73
|
'key': item.mileStoneId,
|
|
75
74
|
'index': index,
|
|
76
|
-
'title': item.mileStoneId !== 0 ? item.mileStoneName :
|
|
75
|
+
'title': item.mileStoneId !== 0 ? item.mileStoneName : '目标下的其他执行',
|
|
77
76
|
'nodeType': 'e-kr',
|
|
78
77
|
'isLeaf': false,
|
|
79
78
|
'children': getETreeNode(item.tasks, true, item.createUserId,item.user),
|
|
@@ -100,7 +99,7 @@ export const formatEListDataToSelectTree = (data, workId, isInitCondition) => {
|
|
|
100
99
|
'oEList': isInitCondition && formatOTreeDataToNode.length === 0 ? [[{
|
|
101
100
|
'key': 0,
|
|
102
101
|
'index': 0,
|
|
103
|
-
'title':
|
|
102
|
+
'title': '目标下的其他执行',
|
|
104
103
|
'nodeType': 'e-kr',
|
|
105
104
|
'isLeaf': false,
|
|
106
105
|
'children': [
|
|
@@ -18,7 +18,6 @@ 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";
|
|
22
21
|
|
|
23
22
|
import "./index.scss";
|
|
24
23
|
const preCls = "okr-detail";
|
|
@@ -208,19 +207,19 @@ const OkrDetail = props => {
|
|
|
208
207
|
</TabPanelContent>
|
|
209
208
|
</TabPane>
|
|
210
209
|
|
|
211
|
-
<TabPane tab=
|
|
210
|
+
<TabPane tab="E-执行" key="exec" >
|
|
212
211
|
<TabPanelContent style={{ 'paddingTop': 10 }}>
|
|
213
212
|
<EList okrId={okrId} okrInfo={okrInfo} />
|
|
214
213
|
</TabPanelContent>
|
|
215
214
|
</TabPane>
|
|
216
215
|
|
|
217
|
-
<TabPane tab=
|
|
216
|
+
<TabPane tab="进展" key="progress">
|
|
218
217
|
<TabPanelContent style={{ 'paddingTop': 0 }}>
|
|
219
218
|
<Schedule okrInfo={okrInfo} />
|
|
220
219
|
</TabPanelContent>
|
|
221
220
|
</TabPane>
|
|
222
221
|
|
|
223
|
-
<TabPane tab=
|
|
222
|
+
<TabPane tab="互动" key="cooperation">
|
|
224
223
|
<TabPanelContent style={{ 'marginRight': 32, 'marginLeft': 32 }}>
|
|
225
224
|
<OkrDetailCooperation
|
|
226
225
|
feedId={okrInfo.feedId}
|
|
@@ -232,7 +231,7 @@ const OkrDetail = props => {
|
|
|
232
231
|
</TabPane>
|
|
233
232
|
|
|
234
233
|
{EWorkReport && source != 861 &&
|
|
235
|
-
<TabPane tab=
|
|
234
|
+
<TabPane tab="E周报" key="eReport">
|
|
236
235
|
<TabPanelContent style={{ 'marginRight': 32, 'marginLeft': 32 }}>
|
|
237
236
|
<EReportList
|
|
238
237
|
okrId={okrInfo.workId}
|
|
@@ -243,7 +242,7 @@ const OkrDetail = props => {
|
|
|
243
242
|
</TabPane>}
|
|
244
243
|
|
|
245
244
|
{OkrAnalyse&&
|
|
246
|
-
<TabPane tab=
|
|
245
|
+
<TabPane tab="复盘" key="review">
|
|
247
246
|
<TabPanelContent style={{ 'marginRight': 32, 'marginLeft': 32 }}>
|
|
248
247
|
<Review
|
|
249
248
|
editAble
|
|
@@ -262,7 +261,7 @@ const OkrDetail = props => {
|
|
|
262
261
|
</TabPanelContent>
|
|
263
262
|
</TabPane>}
|
|
264
263
|
|
|
265
|
-
<TabPane tab=
|
|
264
|
+
<TabPane tab="基本信息" key="baseInfo">
|
|
266
265
|
<TabPanelContent style={{ 'paddingTop': 8 }}>
|
|
267
266
|
<BaseInfo okrId={okrId} detailInfo={okrInfo} />
|
|
268
267
|
</TabPanelContent>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState, useRef } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { getLocale } from "../../../utils/getLocale";
|
|
4
3
|
import './index.scss';
|
|
5
4
|
|
|
6
5
|
const preCls = 'okr-detail-okrs-list'
|
|
@@ -10,7 +9,7 @@ export default props => {
|
|
|
10
9
|
return <React.Fragment>
|
|
11
10
|
<div className={classNames(`${preCls}__align-to-add`)} onClick={onClick}>
|
|
12
11
|
<span className={classNames(`${preCls}__align-to-add-prefix`, 'tu-icon-add1')} />
|
|
13
|
-
<span className={classNames(`${preCls}__align-to-add-text`)}
|
|
12
|
+
<span className={classNames(`${preCls}__align-to-add-text`)}>添加</span>
|
|
14
13
|
</div>
|
|
15
14
|
</React.Fragment>
|
|
16
15
|
}
|
|
@@ -6,7 +6,6 @@ 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';
|
|
10
9
|
|
|
11
10
|
import './index.scss';
|
|
12
11
|
interface Props {
|
|
@@ -163,7 +162,7 @@ function CreateKr({
|
|
|
163
162
|
<div className={preCls}>
|
|
164
163
|
<div className={classNames(`${preCls}__input`)}>
|
|
165
164
|
<Input
|
|
166
|
-
placeholder=
|
|
165
|
+
placeholder='创建关键成果KR,回车即可创建成功'
|
|
167
166
|
inputRef={inputRef}
|
|
168
167
|
value={krName}
|
|
169
168
|
onChange={e => setKrName(e.target.value)}
|
|
@@ -175,12 +174,12 @@ function CreateKr({
|
|
|
175
174
|
style={{ 'display': showTip ? 'block' : 'none', 'zIndex': 1 }}
|
|
176
175
|
onClick={stopPropagation}
|
|
177
176
|
>
|
|
178
|
-
|
|
177
|
+
书写建议:KR是<span>可量化</span>的,需要体现行动结果
|
|
179
178
|
<br />
|
|
180
|
-
<p
|
|
179
|
+
<p>示例:完成4篇宣传文案的发布,实现至少一篇宣传稿出现在某网站搜索「OKR」 的首屏</p>
|
|
181
180
|
<div>
|
|
182
|
-
<a onClick={onNextTalk}
|
|
183
|
-
<a onClick={onNoMoreShow}
|
|
181
|
+
<a onClick={onNextTalk}>下次再说</a>
|
|
182
|
+
<a onClick={onNoMoreShow}>不再提示</a>
|
|
184
183
|
</div>
|
|
185
184
|
</p>
|
|
186
185
|
<span className={classNames(`${preCls}__heart`)}>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { getLocale } from '../../../../utils/getLocale';
|
|
4
3
|
|
|
5
4
|
import './index.scss';
|
|
6
5
|
|
|
@@ -13,10 +12,10 @@ export default ({ onCreateKr, canEditOkr, style={} }) => {
|
|
|
13
12
|
<span />
|
|
14
13
|
</div>
|
|
15
14
|
<div className={classNames(`${preCls}__desp`)}>
|
|
16
|
-
<div className={classNames(`${preCls}__desp-h1`)}
|
|
15
|
+
<div className={classNames(`${preCls}__desp-h1`)}>目标已创建,赶快制定衡量目标达成的关键成果吧~</div>
|
|
17
16
|
<div className={classNames(`${preCls}__desp-h2`)}>
|
|
18
|
-
<span
|
|
19
|
-
<a href="https://wiki.tita.com/pages/viewpage.action?pageId=852060" target="_blank"
|
|
17
|
+
<span>请先了解</span>
|
|
18
|
+
<a href="https://wiki.tita.com/pages/viewpage.action?pageId=852060" target="_blank">什么是关键成果?</a>
|
|
20
19
|
</div>
|
|
21
20
|
</div>
|
|
22
21
|
{canEditOkr &&
|
|
@@ -22,7 +22,6 @@ 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";
|
|
26
25
|
|
|
27
26
|
import "./index.scss";
|
|
28
27
|
|
|
@@ -132,7 +131,7 @@ export default forwardRef((props, ref) => {
|
|
|
132
131
|
const onAddKrHandler = kr => {
|
|
133
132
|
refreshAll();
|
|
134
133
|
updateKrs()
|
|
135
|
-
Toast.Success(
|
|
134
|
+
Toast.Success("创建成功");
|
|
136
135
|
};
|
|
137
136
|
|
|
138
137
|
const changeParentOkrHandler = (confirm) => {
|
|
@@ -164,7 +163,7 @@ export default forwardRef((props, ref) => {
|
|
|
164
163
|
}
|
|
165
164
|
updateParentId(params).then((data) => {
|
|
166
165
|
if (data.Code == 1) {
|
|
167
|
-
Toast.Success(
|
|
166
|
+
Toast.Success("操作成功");
|
|
168
167
|
setGeneralParent({
|
|
169
168
|
parentId: params.parentId,
|
|
170
169
|
parentType: params.parentType,
|
|
@@ -308,7 +307,7 @@ export default forwardRef((props, ref) => {
|
|
|
308
307
|
)}
|
|
309
308
|
/>
|
|
310
309
|
<span className={classNames(`${preCls}__addkr-text`)}>
|
|
311
|
-
|
|
310
|
+
添加KR
|
|
312
311
|
</span>
|
|
313
312
|
</div>
|
|
314
313
|
)}
|
|
@@ -343,7 +342,7 @@ export default forwardRef((props, ref) => {
|
|
|
343
342
|
|
|
344
343
|
<div className={classNames(`${preCls}__align-to`)}>
|
|
345
344
|
<div className={classNames(`${preCls}__align-to-title`)}>
|
|
346
|
-
|
|
345
|
+
对齐目标
|
|
347
346
|
</div>
|
|
348
347
|
{!parentOkr && canEditOkr ? (
|
|
349
348
|
<AddKr onClick={onAddParentOkrHandler} />
|
|
@@ -362,7 +361,7 @@ export default forwardRef((props, ref) => {
|
|
|
362
361
|
})}
|
|
363
362
|
onClick={() => setIsOpened(!isOpened)}
|
|
364
363
|
>
|
|
365
|
-
<span
|
|
364
|
+
<span>对齐我的目标({childOkrs.length})</span>
|
|
366
365
|
</div>
|
|
367
366
|
|
|
368
367
|
<Collapse isOpened={isOpened}>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getLocale } from "../../../utils/getLocale"
|
|
2
1
|
|
|
3
2
|
export default nodes => {
|
|
4
3
|
return [
|
|
@@ -6,7 +5,7 @@ export default nodes => {
|
|
|
6
5
|
'key': '0',
|
|
7
6
|
'index': 0,
|
|
8
7
|
'nodeType': 'default',
|
|
9
|
-
'title':
|
|
8
|
+
'title': `对齐我的目标 (${nodes.length})`,
|
|
10
9
|
'isLeaf': false,
|
|
11
10
|
'children': nodes
|
|
12
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
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";
|
|
5
4
|
// @ts-ignore
|
|
6
5
|
const userId = (BSGlobal && BSGlobal.loginUserInfo.Id) || 0;
|
|
7
6
|
|
|
@@ -56,7 +55,7 @@ export const updateOkrName = ({ workId, workName }) => {
|
|
|
56
55
|
export const getOkrDetail = ({ okrId }) => {
|
|
57
56
|
return rget("v1")(`okr/detailInfo?okrId=${okrId}`).then((headInfo) => {
|
|
58
57
|
if (headInfo.Code != 1) {
|
|
59
|
-
throw headInfo.Message.replace(/项目/g,
|
|
58
|
+
throw headInfo.Message.replace(/项目/g, "目标");
|
|
60
59
|
}
|
|
61
60
|
return headInfo.Data;
|
|
62
61
|
});
|
|
@@ -3,7 +3,6 @@ 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";
|
|
7
6
|
import './index.scss';
|
|
8
7
|
|
|
9
8
|
interface IKrProgressProps {
|
|
@@ -25,7 +24,7 @@ const renderTitle = (index, title, id) => {
|
|
|
25
24
|
const KrProgress: FC<IKrProgressProps> = ({data}) => {
|
|
26
25
|
return (
|
|
27
26
|
<div className='kr-progress__container'>
|
|
28
|
-
<Title title=
|
|
27
|
+
<Title title='KR的进展'/>
|
|
29
28
|
<div className={`kr-progress__content-wrapper`}>
|
|
30
29
|
{
|
|
31
30
|
data && data.map((item, index) => {
|
|
@@ -15,7 +15,6 @@ 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";
|
|
19
18
|
import './index.scss';
|
|
20
19
|
|
|
21
20
|
interface IOProgressProps {
|
|
@@ -65,7 +64,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
65
64
|
const handleModalOkClick = () => {
|
|
66
65
|
updateProgressDesc(editOProgressId, okrInfo.workId, editOProgressContent ? editOProgressContent : '').then(resp => {
|
|
67
66
|
if (resp.Code === 1) {
|
|
68
|
-
Toast.Success(
|
|
67
|
+
Toast.Success('操作成功', {canClose: false});
|
|
69
68
|
setEditOProgressVisiable(false);
|
|
70
69
|
refreshAll && refreshAll();
|
|
71
70
|
getOProgressData();
|
|
@@ -86,7 +85,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
86
85
|
const renderContent = ({onOpenModal}) => {
|
|
87
86
|
return (
|
|
88
87
|
<span className='o-progress__func-btn o-progress__func-btn--update' onClick={onOpenModal}>
|
|
89
|
-
<i className='tu-icon-gengxin o-progress__func-btn-icon'
|
|
88
|
+
<i className='tu-icon-gengxin o-progress__func-btn-icon'/>更新完成度
|
|
90
89
|
</span>
|
|
91
90
|
)
|
|
92
91
|
}
|
|
@@ -95,7 +94,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
95
94
|
// @ts-ignore
|
|
96
95
|
remindAction({toUserId: BSGlobal.loginUserInfo.Id, work_id: okrInfo.workId, type: 2}).then(resp => {
|
|
97
96
|
if (resp.Code === 1) {
|
|
98
|
-
Toast.Success(
|
|
97
|
+
Toast.Success('提醒成功', {canClose: false});
|
|
99
98
|
} else {
|
|
100
99
|
Toast.Error(resp.Message, {canClose: false});
|
|
101
100
|
}
|
|
@@ -113,7 +112,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
113
112
|
// @ts-ignore 提醒上级查看
|
|
114
113
|
remindAction({toUserId: BSGlobal.loginUserInfo.Id, work_id: okrInfo.workId}).then(resp => {
|
|
115
114
|
if (resp.Code === 1) {
|
|
116
|
-
Toast.Success(
|
|
115
|
+
Toast.Success('提醒成功', {canClose: false});
|
|
117
116
|
} else {
|
|
118
117
|
Toast.Error(resp.Message, {canClose: false});
|
|
119
118
|
}
|
|
@@ -161,18 +160,18 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
161
160
|
return (
|
|
162
161
|
<DialogConfirm visible={showRemindDialogConfirm} type="warning">
|
|
163
162
|
{/* @ts-ignore */}
|
|
164
|
-
<span type="title"
|
|
163
|
+
<span type="title">确定提醒 Ta 吗?</span>
|
|
165
164
|
{/* @ts-ignore */}
|
|
166
|
-
<span type="content"
|
|
167
|
-
<CancelButton type="button" onClick={handleCancelRemind}
|
|
168
|
-
<SureButton type="button" onClick={handleEnsureRemind}
|
|
165
|
+
<span type="content">系统将会发送通知提醒Ta去更新OKR进展</span>
|
|
166
|
+
<CancelButton type="button" onClick={handleCancelRemind}>取消</CancelButton>
|
|
167
|
+
<SureButton type="button" onClick={handleEnsureRemind}>确定</SureButton>
|
|
169
168
|
</DialogConfirm>
|
|
170
169
|
)
|
|
171
170
|
}, [showRemindDialogConfirm, handleCancelRemind, handleEnsureRemind])
|
|
172
171
|
|
|
173
172
|
const renderEmptyCmp = useMemo(() => {
|
|
174
173
|
const renderUpdateBtn = ({onOpenModal}) => {
|
|
175
|
-
return <button className={`o-progress__empty-button ${isPrincipalUser ? '' : 'o-progress__empty-button--not-principaluser'}`} onClick={onOpenModal}
|
|
174
|
+
return <button className={`o-progress__empty-button ${isPrincipalUser ? '' : 'o-progress__empty-button--not-principaluser'}`} onClick={onOpenModal}>更新完成度</button>
|
|
176
175
|
}
|
|
177
176
|
return (
|
|
178
177
|
<div className={classNames({
|
|
@@ -181,13 +180,13 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
181
180
|
})}>
|
|
182
181
|
<img width={128} src={EmptyPng} />
|
|
183
182
|
<span className='o-progress__empty-text'>
|
|
184
|
-
{isPrincipalUser ?
|
|
183
|
+
{isPrincipalUser ? '目标进展一目了然?赶快更新完成度吧' : '暂无目标进展'}
|
|
185
184
|
</span>
|
|
186
185
|
{isPrincipalUser && <OProgressUpdate okrInfo={okrInfo} renderContent={renderUpdateBtn} setUpdateData={setUpdateProgress}/>}
|
|
187
|
-
{!isCanEditProgress && <button className={'o-progress__empty-button'} onClick={handleRemindClick}
|
|
186
|
+
{!isCanEditProgress && <button className={'o-progress__empty-button'} onClick={handleRemindClick}>提醒更新进展</button>}
|
|
188
187
|
{isCanEditProgress && !isPrincipalUser &&
|
|
189
188
|
<div>
|
|
190
|
-
<button className={'o-progress__empty-button'} onClick={handleRemindClick}
|
|
189
|
+
<button className={'o-progress__empty-button'} onClick={handleRemindClick}>提醒更新进展</button>
|
|
191
190
|
<OProgressUpdate okrInfo={okrInfo} renderContent={renderUpdateBtn} setUpdateData={setUpdateProgress}/>
|
|
192
191
|
</div>}
|
|
193
192
|
</div>
|
|
@@ -195,7 +194,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
195
194
|
}, [hasOtherProgress])
|
|
196
195
|
|
|
197
196
|
const renderDefaultRemindCmp = useMemo(() => {
|
|
198
|
-
const text = isPrincipalUser ? (hasSuperior() ?
|
|
197
|
+
const text = isPrincipalUser ? (hasSuperior() ? '提醒上级查看' : null) : '提醒更新进展';
|
|
199
198
|
return (
|
|
200
199
|
<span className='o-progress__func-btn' onClick={handleRemindClick}>
|
|
201
200
|
{text && <i className='tu-icon-shoushi o-progress__func-btn-icon' />}
|
|
@@ -208,7 +207,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
208
207
|
<div className={'o-progress__wrapper'}>
|
|
209
208
|
{oProgressData.length === 0 ? renderEmptyCmp : (
|
|
210
209
|
<div className='o-progress__header'>
|
|
211
|
-
<Title title=
|
|
210
|
+
<Title title='目标的进展'/>
|
|
212
211
|
<div className='o-progress__func-btns'>
|
|
213
212
|
{okrInfo.status === 2 ? null : renderDefaultRemindCmp}
|
|
214
213
|
{isCanEditProgress ?
|
|
@@ -243,7 +242,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
243
242
|
{isMoreThanOneProgress ?
|
|
244
243
|
<div className='o-progress__shrink'>
|
|
245
244
|
<span className='o-progress__shrink-text' onClick={handleChangeShowAll}>
|
|
246
|
-
{isShowAll ?
|
|
245
|
+
{isShowAll ? '收起进展' : '查看全部进展'}
|
|
247
246
|
<i className={isShowAll ? 'tu-icon-arrow-up' : 'tu-icon-arrow-down'}/>
|
|
248
247
|
</span>
|
|
249
248
|
</div>
|
|
@@ -260,7 +259,7 @@ const OProgress: FC<IOProgressProps> = ({listData, okrInfo, setUpdateProgress, h
|
|
|
260
259
|
>
|
|
261
260
|
<div className={`o-progress__textarea-wrapper ${hasError ? 'o-progress__textarea-wrapper--error' : ''}`}>
|
|
262
261
|
<textarea
|
|
263
|
-
placeholder=
|
|
262
|
+
placeholder='请输入进展'
|
|
264
263
|
className={'o-progress__textarea'}
|
|
265
264
|
value={editOProgressContent}
|
|
266
265
|
onChange={handleTextareaChange} />
|