@titaui/pc 1.11.4-1 → 1.11.4-10
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/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/rect-btn/index.js +7 -7
- package/lib/components/change-okr-modal/Item.js +15 -15
- package/lib/components/communication/index.js +30 -29
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/dynamic/constant.js +13 -6
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +22 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/index.js +34 -13
- package/lib/components/dynamic/dynamic-list/index.js +5 -13
- package/lib/components/e-priority/index.js +18 -12
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +11 -11
- package/lib/components/form/form-fields/date/index.js +15 -11
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +22 -2
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/icon-button-list/index.css +2 -57
- package/lib/components/icon-button-list/index.js +10 -7
- package/lib/components/img-viewer/index.css +10 -3
- package/lib/components/img-viewer/index.js +57 -18
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/index.js +31 -30
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/detail-header/actions.js +62 -66
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +205 -194
- package/lib/components/okr-detail/index.js +21 -19
- package/lib/components/okr-flow/child-node/index.css +67 -21
- package/lib/components/okr-flow/child-node/work-node.js +61 -24
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +42 -18
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +43 -22
- package/lib/components/okr-flow/request-apis.js +15 -8
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/root-node/index.js +26 -25
- package/lib/components/okr-flow/utils/index.js +45 -29
- package/lib/components/okr-flow/utils/tree-handler.js +29 -18
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okrcase-library/index.css +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +9 -3
- package/lib/components/period-selector/index.js +14 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
- package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
- package/lib/components/picker/components/picker-trigger/index.css +15 -0
- package/lib/components/picker/components/picker-trigger/index.js +8 -8
- package/lib/components/popup/index.js +4 -4
- package/lib/components/radio/index.css +9 -9
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/scroll-container/index.js +423 -0
- package/lib/components/scroll-container/style.css +35 -0
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/components/chart/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -13
- package/{es/pages/group-management/page-view/group-empty.js → lib/components/survey-model/contact.js} +54 -27
- package/lib/components/survey-model/index.css +141 -0
- package/lib/components/survey-model/index.js +265 -0
- package/lib/components/survey-model/instance.js +86 -0
- package/lib/components/survey-model/request-api.js +80 -0
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +63 -51
- package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +13 -13
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +138 -124
- package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
- package/lib/components/time-picker/index.css +6 -0
- package/lib/components/time-picker/time-picker.js +27 -27
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components/wechat-btn/index.css +14 -0
- package/lib/components/wechat-btn/index.js +338 -0
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +99 -91
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
- package/lib/pages/okr-map/number-select/index.css +12 -9
- package/lib/pages/okr-map/number-select/index.js +3 -3
- package/lib/utils/auth.js +65 -8
- package/lib/utils/bs-global.js +18 -6
- package/lib/utils/open-data.js +63 -43
- package/package.json +6 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/es/components/cascader/time.js +0 -31
- package/es/components/common-share/request-apis.js +0 -56
- package/es/components/confidence/heart.js +0 -66
- package/es/components/create-okr-modal/fields/index.js +0 -17
- package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
- package/es/components/date-picker/BodyItem.js +0 -121
- package/es/components/date-picker/CalendarBody.js +0 -157
- package/es/components/date-picker/CalendarHeader.js +0 -187
- package/es/components/date-picker/index.js +0 -157
- package/es/components/date-range-picker/index.js +0 -210
- package/es/components/dialog/index.js +0 -119
- package/es/components/dialog-confirm/index.js +0 -154
- package/es/components/drop-selector/icon-item.js +0 -40
- package/es/components/drop-selector/index.js +0 -179
- package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/es/components/dynamic/dynamic-liking/mock.js +0 -83
- package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/es/components/e-priority/index.js +0 -88
- package/es/components/grid-layout/commen-components/index.js +0 -73
- package/es/components/grid-layout/image/could.js +0 -8
- package/es/components/grid-layout/image/lv.js +0 -8
- package/es/components/grid-layout/image/tita-mask.js +0 -8
- package/es/components/help-card/request-api.js +0 -35
- package/es/components/icon-button-list/index.js +0 -65
- package/es/components/menus/context.js +0 -18
- package/es/components/menus/precls.js +0 -8
- package/es/components/okr-detail/auth.js +0 -197
- package/es/components/okr-detail/components/ao-nice/index.js +0 -245
- package/es/components/okr-detail/components/block-line/index.js +0 -20
- package/es/components/okr-detail/components/header/index.js +0 -211
- package/es/components/okr-detail/components/icon-text/index.js +0 -116
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
- package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
- package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
- package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
- package/es/components/okr-detail/components/padding-layout.js +0 -22
- package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
- package/es/components/okr-detail/context.js +0 -30
- package/es/components/okr-detail/e-list/index.js +0 -243
- package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
- package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
- package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
- package/es/components/okr-detail/e-list/search-form/index.js +0 -143
- package/es/components/okr-detail/error-page/index.js +0 -33
- package/es/components/okr-detail/index.js +0 -428
- package/es/components/okr-detail/loading/index.js +0 -28
- package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
- package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
- package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
- package/es/components/okr-detail/okr-list/empty/index.js +0 -48
- package/es/components/okr-detail/okr-list/index.js +0 -524
- package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
- package/es/components/okr-detail/store.js +0 -1
- package/es/components/okr-flow/child-node/fields/creator.js +0 -175
- package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
- package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
- package/es/components/okr-flow/child-node/helper.js +0 -35
- package/es/components/okr-flow/child-node/index.js +0 -110
- package/es/components/okr-flow/child-node/kr-node.js +0 -75
- package/es/components/okr-flow/child-node/work-node.js +0 -242
- package/es/components/okr-flow/context.js +0 -14
- package/es/components/okr-flow/empty/index.js +0 -29
- package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
- package/es/components/okr-flow/index.js +0 -24
- package/es/components/okr-flow/mini-map/index.js +0 -112
- package/es/components/okr-flow/mini-map/map.js +0 -145
- package/es/components/okr-flow/mini-map/mini-node.js +0 -57
- package/es/components/okr-flow/mini-map/utils.js +0 -79
- package/es/components/okr-flow/okr-map/index.js +0 -192
- package/es/components/okr-flow/open-data/index.js +0 -115
- package/es/components/okr-flow/precls.js +0 -8
- package/es/components/okr-flow/request-apis.js +0 -118
- package/es/components/okr-flow/root-node/index.js +0 -229
- package/es/components/okr-flow/utils/config.js +0 -18
- package/es/components/okr-flow/utils/helper.js +0 -36
- package/es/components/okr-flow/utils/index.js +0 -66
- package/es/components/okr-flow/utils/tree-handler.js +0 -323
- package/es/components/okr-progress-modal/helper.js +0 -156
- package/es/components/okr-progress-modal/request-apis.js +0 -34
- package/es/components/okr-share/request-apis.js +0 -56
- package/es/components/okrcase-library/server/network.js +0 -407
- package/es/components/pagination/locale/en_US.js +0 -22
- package/es/components/pagination/locale/zh_CN.js +0 -22
- package/es/components/point-demo/drop-down-box/index.js +0 -159
- package/es/components/point-demo/index.js +0 -533
- package/es/components/point-demo/input/index.js +0 -176
- package/es/components/point-demo/point-demo.js +0 -75
- package/es/components/point-demo/popup/index.js +0 -113
- package/es/components/point-demo/popup/placement.js +0 -44
- package/es/components/range-picker-pop/index.js +0 -273
- package/es/components/scrollbar/simplebar/helpers.js +0 -59
- package/es/components/scrollbar/simplebar/index.js +0 -91
- package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
- package/es/components/scrollbar/simplebar/simplebar.js +0 -852
- package/es/components/scrollbar/simplebar-react.js +0 -163
- package/es/components/search-dropdown/index.js +0 -40
- package/es/components/search-input/index.js +0 -126
- package/es/components/select/Option.js +0 -94
- package/es/components/select/index.js +0 -330
- package/es/components/selector-input/debounce.js +0 -36
- package/es/components/selector-input/index.js +0 -109
- package/es/components/slider-input/index.js +0 -119
- package/es/components/switch/index.js +0 -39
- package/es/components/table/index.js +0 -275
- package/es/components/tabs/index.js +0 -63
- package/es/components/task-relation-modal/tree-node/index.js +0 -58
- package/es/components/tita-chart/charts/img/could.js +0 -8
- package/es/components/tooltip/error-tip.js +0 -24
- package/es/components/tooltip/index.js +0 -21
- package/es/components/tree/index.js +0 -79
- package/es/components/tree/precls.js +0 -8
- package/es/components/upvote/request-apis.js +0 -45
- package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/es/components/user-selector/action-btns/btn-ok.js +0 -21
- package/es/components/user-selector/action-btns/index.js +0 -27
- package/es/components/user-selector/context.js +0 -18
- package/es/components/user-selector/empty/group.js +0 -55
- package/es/components/user-selector/empty/index.js +0 -28
- package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
- package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
- package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
- package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
- package/es/components/user-selector/index.js +0 -25
- package/es/components/user-selector/layout/index.js +0 -25
- package/es/components/user-selector/loading/index.js +0 -18
- package/es/components/user-selector/request-apis.js +0 -180
- package/es/components/user-selector/searched-panel/index.js +0 -139
- package/es/components/user-selector/searched-panel/result-part.js +0 -43
- package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
- package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
- package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
- package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
- package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
- package/es/components/user-selector/utils.js +0 -139
- package/es/components/viewer/ImageListRender.js +0 -143
- package/es/components/viewer/index.js +0 -168
- package/es/components/word-cloud/index.js +0 -109
- package/es/components/word-cloud/request-apis.js +0 -26
- package/es/components-v1/animate/AnimateChild.js +0 -76
- package/es/components-v1/animate/animate.js +0 -148
- package/es/components-v1/animate/index.js +0 -13
- package/es/components-v1/dom/index.js +0 -30
- package/es/components-v1/placement/index.js +0 -13
- package/es/components-v1/placement/placement.js +0 -111
- package/es/components-v1/placement/placementInner.js +0 -139
- package/es/components-v1/pop/Pop.js +0 -246
- package/es/components-v1/pop/PopInner.js +0 -163
- package/es/components-v1/pop/index.js +0 -13
- package/es/components-v1/progress/CircleProgress.js +0 -152
- package/es/components-v1/progress/LineProgress.js +0 -83
- package/es/components-v1/progress/index.js +0 -80
- package/es/components-v1/select/Option.js +0 -94
- package/es/components-v1/select/index.js +0 -330
- package/es/components-v1/utils/animate/animate.js +0 -103
- package/es/components-v1/utils/animate/event.js +0 -79
- package/es/components-v1/utils/dom/index.js +0 -30
- package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
- package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
- package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
- package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
- package/es/components-v1/utils/placement/placement.js +0 -76
- package/es/index.js +0 -777
- package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
- package/es/pages/appointment-demo/index.js +0 -649
- package/es/pages/appointment-demo/input/index.js +0 -176
- package/es/pages/appointment-demo/popup/index.js +0 -113
- package/es/pages/appointment-demo/popup/placement.js +0 -44
- package/es/pages/group-management/components/checkbox/index.js +0 -28
- package/es/pages/group-management/components/input-form/index.js +0 -174
- package/es/pages/group-management/components/radio/index.js +0 -21
- package/es/pages/group-management/components/table/index.js +0 -174
- package/es/pages/group-management/groupInterface.js +0 -293
- package/es/pages/group-management/index.js +0 -13
- package/es/pages/group-management/page-view/empty.js +0 -111
- package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
- package/es/pages/group-management/page-view/index.js +0 -412
- package/es/pages/group-management/table/index.js +0 -104
- package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
- package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
- package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
- package/es/pages/group-management/tree/group-form/index.js +0 -207
- package/es/pages/group-management/tree/index.js +0 -168
- package/es/pages/group-management/tree/operation-panel.js +0 -41
- package/es/pages/group-management/tree/trigger-render.js +0 -99
- package/es/pages/like-ranking/mock.js +0 -366
- package/es/pages/okr-map/export-modules/index.js +0 -1
- package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
- package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
- package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
- package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
- package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
- package/es/pages/okr-map/hooks/useStorage.js +0 -96
- package/es/pages/okr-map/index.js +0 -18
- package/es/pages/okr-map/level2-search/depart.js +0 -53
- package/es/pages/okr-map/level2-search/group.js +0 -69
- package/es/pages/okr-map/level2-search/index.js +0 -51
- package/es/pages/okr-map/level2-search/level2-input.js +0 -46
- package/es/pages/okr-map/level2-search/user.js +0 -54
- package/es/pages/okr-map/no-okr/index.js +0 -24
- package/es/pages/okr-map/number-select/index.js +0 -81
- package/es/pages/okr-map/open-data/index.js +0 -115
- package/es/pages/okr-map/precls.js +0 -8
- package/es/pages/okr-map/request-apis.js +0 -76
- package/es/pages/okr-map/share-dialog/index.js +0 -122
- package/es/pages/okr-map/unsupport-ie/index.js +0 -83
- package/es/pages/okr-map/utils.js +0 -51
- package/es/utils/auth.js +0 -294
- package/es/utils/bs-global.js +0 -114
- package/es/utils/local-storage.js +0 -42
- package/es/utils/mblog.js +0 -33
- package/es/utils/mock-bsglobal.js +0 -1837
- package/es/utils/open-data.js +0 -341
- package/es/utils/request-v1.js +0 -115
- package/es/utils/request.js +0 -183
- package/es/utils/tools.js +0 -286
- package/yarn-error.log +0 -21252
|
@@ -19,6 +19,8 @@ var _actions = require("./actions");
|
|
|
19
19
|
|
|
20
20
|
var _confirm = _interopRequireDefault(require("./confirm"));
|
|
21
21
|
|
|
22
|
+
var _wechatBtn = _interopRequireDefault(require("../../wechat-btn"));
|
|
23
|
+
|
|
22
24
|
var _toast = _interopRequireDefault(require("../../toast"));
|
|
23
25
|
|
|
24
26
|
var _requestApis = require("../request-apis");
|
|
@@ -109,7 +111,7 @@ function OkrDetailHeader(_ref) {
|
|
|
109
111
|
}));
|
|
110
112
|
|
|
111
113
|
case 3:
|
|
112
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
114
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
113
115
|
|
|
114
116
|
context.setGeneralVisibility({
|
|
115
117
|
visibility: visibility,
|
|
@@ -132,229 +134,232 @@ function OkrDetailHeader(_ref) {
|
|
|
132
134
|
setShareVisible(false);
|
|
133
135
|
}, []);
|
|
134
136
|
var actions = (0, _react.useMemo)(function () {
|
|
135
|
-
if (!detailInfo)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
137
|
+
if (!detailInfo) {
|
|
138
|
+
return [];
|
|
139
|
+
} else {
|
|
140
|
+
return (0, _actions.getOkrHeadActions)({
|
|
141
|
+
roleType: context.generalRoleType,
|
|
142
|
+
principalUser: context.generalPrincipalUser,
|
|
143
|
+
visibility: context.generalVisibility.visibility,
|
|
144
|
+
detailInfo: detailInfo,
|
|
145
|
+
openShareModal: function () {
|
|
146
|
+
var _openShareModal = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
147
|
+
var krss;
|
|
148
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
149
|
+
while (1) {
|
|
150
|
+
switch (_context2.prev = _context2.next) {
|
|
151
|
+
case 0:
|
|
152
|
+
_context2.next = 2;
|
|
153
|
+
return (0, _requestApis.getKrs)({
|
|
154
|
+
okrId: detailInfo.workId
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
case 2:
|
|
158
|
+
krss = _context2.sent;
|
|
159
|
+
setKrs(krss);
|
|
160
|
+
setShareVisible(true);
|
|
161
|
+
|
|
162
|
+
case 5:
|
|
163
|
+
case "end":
|
|
164
|
+
return _context2.stop();
|
|
165
|
+
}
|
|
161
166
|
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}));
|
|
165
|
-
|
|
166
|
-
function openShareModal() {
|
|
167
|
-
return _openShareModal.apply(this, arguments);
|
|
168
|
-
}
|
|
167
|
+
}, _callee2);
|
|
168
|
+
}));
|
|
169
169
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
changeVisiblilty: function changeVisiblilty(visibility) {
|
|
173
|
-
if (visibility === 4) {
|
|
174
|
-
if (userSelectRef.current) {
|
|
175
|
-
userSelectRef.current.open();
|
|
170
|
+
function openShareModal() {
|
|
171
|
+
return _openShareModal.apply(this, arguments);
|
|
176
172
|
}
|
|
177
173
|
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
onCopyOkr: function onCopyOkr() {
|
|
187
|
-
// @ts-ignore
|
|
188
|
-
window.openCopyOkrModal({
|
|
189
|
-
okrId: detailInfo.workId,
|
|
190
|
-
okrType: detailInfo.okrType
|
|
191
|
-
});
|
|
192
|
-
},
|
|
193
|
-
onChangeOkrFollow: function () {
|
|
194
|
-
var _onChangeOkrFollow = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(follow) {
|
|
195
|
-
var res;
|
|
196
|
-
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
197
|
-
while (1) {
|
|
198
|
-
switch (_context3.prev = _context3.next) {
|
|
199
|
-
case 0:
|
|
200
|
-
_context3.next = 2;
|
|
201
|
-
return (0, _confirm["default"])(follow ? (0, _getLocale.getLocale)("OKR_MyO_Err_Focuson") : (0, _getLocale.getLocale)("OKR_MyO_Err_Unfollow"), follow ? (0, _getLocale.getLocale)("OKR_MyO_Err_Payatten") : (0, _getLocale.getLocale)("OKR_MyO_Err_Progress"));
|
|
202
|
-
|
|
203
|
-
case 2:
|
|
204
|
-
res = _context3.sent;
|
|
174
|
+
return openShareModal;
|
|
175
|
+
}(),
|
|
176
|
+
changeVisiblilty: function changeVisiblilty(visibility) {
|
|
177
|
+
if (visibility === 4) {
|
|
178
|
+
if (userSelectRef.current) {
|
|
179
|
+
userSelectRef.current.open();
|
|
180
|
+
}
|
|
205
181
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
210
184
|
|
|
211
|
-
|
|
212
|
-
|
|
185
|
+
changVisiblity(detailInfo.workId, visibility);
|
|
186
|
+
},
|
|
187
|
+
onDeleteOkr: function onDeleteOkr(e) {
|
|
188
|
+
popRef.current.getRef().show(e.target);
|
|
189
|
+
},
|
|
190
|
+
onCopyOkr: function onCopyOkr() {
|
|
191
|
+
// @ts-ignore
|
|
192
|
+
window.openCopyOkrModal({
|
|
193
|
+
okrId: detailInfo.workId,
|
|
194
|
+
okrType: detailInfo.okrType
|
|
195
|
+
});
|
|
196
|
+
},
|
|
197
|
+
onChangeOkrFollow: function () {
|
|
198
|
+
var _onChangeOkrFollow = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(follow) {
|
|
199
|
+
var res;
|
|
200
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
201
|
+
while (1) {
|
|
202
|
+
switch (_context3.prev = _context3.next) {
|
|
203
|
+
case 0:
|
|
204
|
+
_context3.next = 2;
|
|
205
|
+
return (0, _confirm["default"])(follow ? (0, _getLocale.getLocale)('OKR_MyO_Err_Focuson') : (0, _getLocale.getLocale)('OKR_MyO_Err_Unfollow'), follow ? (0, _getLocale.getLocale)('OKR_MyO_Err_Payatten') : (0, _getLocale.getLocale)('OKR_MyO_Err_Progress'));
|
|
206
|
+
|
|
207
|
+
case 2:
|
|
208
|
+
res = _context3.sent;
|
|
209
|
+
|
|
210
|
+
if (!res) {
|
|
211
|
+
_context3.next = 14;
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (!follow) {
|
|
216
|
+
_context3.next = 9;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
_context3.next = 7;
|
|
221
|
+
return (0, _requestApis.addUser)(loginUserId, detailInfo.workId, 3);
|
|
222
|
+
|
|
223
|
+
case 7:
|
|
224
|
+
_context3.next = 11;
|
|
213
225
|
break;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
_context3.next = 7;
|
|
217
|
-
return (0, _requestApis.addUser)(loginUserId, detailInfo.workId, 3);
|
|
218
226
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
227
|
+
case 9:
|
|
228
|
+
_context3.next = 11;
|
|
229
|
+
return (0, _requestApis.deleteUser)(loginUserId, detailInfo.workId, 3);
|
|
222
230
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
return (0, _requestApis.deleteUser)(loginUserId, detailInfo.workId, 3);
|
|
231
|
+
case 11:
|
|
232
|
+
context.setGeneralRoleType(follow ? 3 : 0); // 关注
|
|
226
233
|
|
|
227
|
-
|
|
228
|
-
context.setGeneralRoleType(follow ? 3 : 0); // 关注
|
|
234
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
229
235
|
|
|
230
|
-
|
|
236
|
+
if (!follow) {
|
|
237
|
+
commonContext.refreshAll();
|
|
238
|
+
}
|
|
231
239
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
case 14:
|
|
237
|
-
case "end":
|
|
238
|
-
return _context3.stop();
|
|
240
|
+
case 14:
|
|
241
|
+
case "end":
|
|
242
|
+
return _context3.stop();
|
|
243
|
+
}
|
|
239
244
|
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}));
|
|
243
|
-
|
|
244
|
-
function onChangeOkrFollow(_x3) {
|
|
245
|
-
return _onChangeOkrFollow.apply(this, arguments);
|
|
246
|
-
}
|
|
245
|
+
}, _callee3);
|
|
246
|
+
}));
|
|
247
247
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
var _onFinishOrReOpen = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(isFinish) {
|
|
252
|
-
var res;
|
|
253
|
-
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
254
|
-
while (1) {
|
|
255
|
-
switch (_context4.prev = _context4.next) {
|
|
256
|
-
case 0:
|
|
257
|
-
_context4.next = 2;
|
|
258
|
-
return (0, _confirm["default"])(isFinish ? (0, _getLocale.getLocale)("OKR_MyO_Areycloseobjective") : (0, _getLocale.getLocale)("OKR_MyO_Err_Restart"));
|
|
259
|
-
|
|
260
|
-
case 2:
|
|
261
|
-
res = _context4.sent;
|
|
262
|
-
|
|
263
|
-
if (!res) {
|
|
264
|
-
_context4.next = 13;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
248
|
+
function onChangeOkrFollow(_x3) {
|
|
249
|
+
return _onChangeOkrFollow.apply(this, arguments);
|
|
250
|
+
}
|
|
267
251
|
|
|
268
|
-
|
|
269
|
-
|
|
252
|
+
return onChangeOkrFollow;
|
|
253
|
+
}(),
|
|
254
|
+
onFinishOrReOpen: function () {
|
|
255
|
+
var _onFinishOrReOpen = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(isFinish) {
|
|
256
|
+
var res;
|
|
257
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
258
|
+
while (1) {
|
|
259
|
+
switch (_context4.prev = _context4.next) {
|
|
260
|
+
case 0:
|
|
261
|
+
_context4.next = 2;
|
|
262
|
+
return (0, _confirm["default"])(isFinish ? (0, _getLocale.getLocale)('OKR_MyO_Areycloseobjective') : (0, _getLocale.getLocale)('OKR_MyO_Err_Restart'));
|
|
263
|
+
|
|
264
|
+
case 2:
|
|
265
|
+
res = _context4.sent;
|
|
266
|
+
|
|
267
|
+
if (!res) {
|
|
268
|
+
_context4.next = 13;
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (!isFinish) {
|
|
273
|
+
_context4.next = 9;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
_context4.next = 7;
|
|
278
|
+
return (0, _requestApis.close)(detailInfo.workId);
|
|
279
|
+
|
|
280
|
+
case 7:
|
|
281
|
+
_context4.next = 11;
|
|
270
282
|
break;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
_context4.next = 7;
|
|
274
|
-
return (0, _requestApis.close)(detailInfo.workId);
|
|
275
283
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
284
|
+
case 9:
|
|
285
|
+
_context4.next = 11;
|
|
286
|
+
return (0, _requestApis.start)(detailInfo.workId);
|
|
279
287
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
return (0, _requestApis.start)(detailInfo.workId);
|
|
288
|
+
case 11:
|
|
289
|
+
commonContext.refreshAll(); // 刷新
|
|
283
290
|
|
|
284
|
-
|
|
285
|
-
commonContext.refreshAll(); // 刷新
|
|
291
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
286
292
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
return _context4.stop();
|
|
293
|
+
case 13:
|
|
294
|
+
case "end":
|
|
295
|
+
return _context4.stop();
|
|
296
|
+
}
|
|
292
297
|
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}));
|
|
298
|
+
}, _callee4);
|
|
299
|
+
}));
|
|
296
300
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
return onFinishOrReOpen;
|
|
302
|
-
}(),
|
|
303
|
-
onQuit: function () {
|
|
304
|
-
var _onQuit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
305
|
-
var res;
|
|
306
|
-
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
307
|
-
while (1) {
|
|
308
|
-
switch (_context5.prev = _context5.next) {
|
|
309
|
-
case 0:
|
|
310
|
-
_context5.next = 2;
|
|
311
|
-
return (0, _confirm["default"])((0, _getLocale.getLocale)("OKR_MyO_Err_Quit"), (0, _getLocale.getLocale)("OKR_MyO_Err_Inchargec"));
|
|
312
|
-
|
|
313
|
-
case 2:
|
|
314
|
-
res = _context5.sent;
|
|
315
|
-
|
|
316
|
-
if (!res) {
|
|
317
|
-
_context5.next = 8;
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
_context5.next = 6;
|
|
322
|
-
return (0, _requestApis.deleteUser)(loginUserId, detailInfo.workId, 2);
|
|
323
|
-
|
|
324
|
-
case 6:
|
|
325
|
-
// context.setGeneralRoleType(0)
|
|
326
|
-
commonContext.refreshAll(); // 刷新
|
|
327
|
-
|
|
328
|
-
_toast["default"].Success((0, _getLocale.getLocale)("Mod_Successfuloperat"));
|
|
301
|
+
function onFinishOrReOpen(_x4) {
|
|
302
|
+
return _onFinishOrReOpen.apply(this, arguments);
|
|
303
|
+
}
|
|
329
304
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
305
|
+
return onFinishOrReOpen;
|
|
306
|
+
}(),
|
|
307
|
+
onQuit: function () {
|
|
308
|
+
var _onQuit = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
309
|
+
var res;
|
|
310
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
311
|
+
while (1) {
|
|
312
|
+
switch (_context5.prev = _context5.next) {
|
|
313
|
+
case 0:
|
|
314
|
+
_context5.next = 2;
|
|
315
|
+
return (0, _confirm["default"])((0, _getLocale.getLocale)('OKR_MyO_Err_Quit'), (0, _getLocale.getLocale)('OKR_MyO_Err_Inchargec'));
|
|
316
|
+
|
|
317
|
+
case 2:
|
|
318
|
+
res = _context5.sent;
|
|
319
|
+
|
|
320
|
+
if (!res) {
|
|
321
|
+
_context5.next = 8;
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
_context5.next = 6;
|
|
326
|
+
return (0, _requestApis.deleteUser)(loginUserId, detailInfo.workId, 2);
|
|
327
|
+
|
|
328
|
+
case 6:
|
|
329
|
+
// context.setGeneralRoleType(0)
|
|
330
|
+
commonContext.refreshAll(); // 刷新
|
|
331
|
+
|
|
332
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'));
|
|
333
|
+
|
|
334
|
+
case 8:
|
|
335
|
+
case "end":
|
|
336
|
+
return _context5.stop();
|
|
337
|
+
}
|
|
333
338
|
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}));
|
|
339
|
+
}, _callee5);
|
|
340
|
+
}));
|
|
337
341
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
342
|
+
function onQuit() {
|
|
343
|
+
return _onQuit.apply(this, arguments);
|
|
344
|
+
}
|
|
341
345
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
346
|
+
return onQuit;
|
|
347
|
+
}()
|
|
348
|
+
});
|
|
349
|
+
}
|
|
345
350
|
}, [detailInfo, context.generalRoleType, context.generalPrincipalUser, context.generalVisibility.visibility]);
|
|
346
351
|
var parent = null;
|
|
347
352
|
|
|
348
353
|
if (context.generalParent) {
|
|
349
354
|
if (context.generalParent.parentKr) {
|
|
350
355
|
parent = {
|
|
351
|
-
type:
|
|
356
|
+
type: 'kr',
|
|
352
357
|
id: context.generalParent.parentKr.mileStoneId,
|
|
353
358
|
name: context.generalParent.parentKr.mileStoneName
|
|
354
359
|
};
|
|
355
360
|
} else if (context.generalParent.parentOkr) {
|
|
356
361
|
parent = {
|
|
357
|
-
type:
|
|
362
|
+
type: 'okr',
|
|
358
363
|
id: context.generalParent.parentOkr.workId,
|
|
359
364
|
name: context.generalParent.parentOkr.workName
|
|
360
365
|
};
|
|
@@ -363,19 +368,25 @@ function OkrDetailHeader(_ref) {
|
|
|
363
368
|
|
|
364
369
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_drawer["default"].Header, {
|
|
365
370
|
actions: actions,
|
|
371
|
+
actionComponent: /*#__PURE__*/_react["default"].createElement(_wechatBtn["default"], {
|
|
372
|
+
id: detailInfo.workId,
|
|
373
|
+
objType: 62,
|
|
374
|
+
name: detailInfo.workName,
|
|
375
|
+
principalUser: detailInfo.principalUser
|
|
376
|
+
}),
|
|
366
377
|
content: parent ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
367
378
|
className: "okr-detail-head-parent"
|
|
368
379
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
369
380
|
className: "tu-icon-liebiao-duiqinubiao"
|
|
370
381
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
371
382
|
onClick: function onClick() {
|
|
372
|
-
return parent.type ===
|
|
383
|
+
return parent.type === 'okr' ? _drawerManager["default"].open('okrDetail', {
|
|
373
384
|
okrId: parent.id
|
|
374
|
-
}) : _drawerManager["default"].open(
|
|
385
|
+
}) : _drawerManager["default"].open('krDetail', {
|
|
375
386
|
krId: parent.id
|
|
376
387
|
});
|
|
377
388
|
}
|
|
378
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type ===
|
|
389
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, parent.type === 'okr' ? 'O ' : 'KR '), parent.name)) : null
|
|
379
390
|
}), /*#__PURE__*/_react["default"].createElement(_okrShare["default"], {
|
|
380
391
|
visible: shareVisible,
|
|
381
392
|
onClose: closeShareModal,
|
|
@@ -412,7 +423,7 @@ function OkrDetailHeader(_ref) {
|
|
|
412
423
|
});
|
|
413
424
|
|
|
414
425
|
case 2:
|
|
415
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
426
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Pro_detail_Deletsuccess'));
|
|
416
427
|
|
|
417
428
|
setTimeout(function () {
|
|
418
429
|
commonContext.refreshAll();
|
|
@@ -436,7 +447,7 @@ function OkrDetailHeader(_ref) {
|
|
|
436
447
|
})
|
|
437
448
|
}, /*#__PURE__*/_react["default"].createElement("span", null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
438
449
|
style: {
|
|
439
|
-
textAlign:
|
|
450
|
+
textAlign: 'right',
|
|
440
451
|
height: 0
|
|
441
452
|
}
|
|
442
453
|
}, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
|
|
@@ -450,9 +461,9 @@ function OkrDetailHeader(_ref) {
|
|
|
450
461
|
selectNodes: context.generalVisibility.visibilityScope || {},
|
|
451
462
|
trigger: /*#__PURE__*/_react["default"].createElement("div", {
|
|
452
463
|
style: {
|
|
453
|
-
visibility:
|
|
464
|
+
visibility: 'hidden',
|
|
454
465
|
zIndex: -1,
|
|
455
|
-
display:
|
|
466
|
+
display: 'inline-block',
|
|
456
467
|
height: 0
|
|
457
468
|
}
|
|
458
469
|
}, "empty select")
|
|
@@ -17,6 +17,8 @@ var _header = _interopRequireDefault(require("./components/header"));
|
|
|
17
17
|
|
|
18
18
|
var _tabs = _interopRequireWildcard(require("../tabs"));
|
|
19
19
|
|
|
20
|
+
var _request = require("../../utils/request");
|
|
21
|
+
|
|
20
22
|
var _tabPanelContent = _interopRequireDefault(require("./components/tab-panel-content"));
|
|
21
23
|
|
|
22
24
|
var _baseInfo = _interopRequireDefault(require("./base-info"));
|
|
@@ -75,7 +77,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
75
77
|
|
|
76
78
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
77
79
|
|
|
78
|
-
var preCls =
|
|
80
|
+
var preCls = 'okr-detail'; // E周报和复盘开关
|
|
79
81
|
|
|
80
82
|
var EWorkReport = BSGlobal.OkrAdvancedSetting ? BSGlobal.OkrAdvancedSetting.KRSetting.EWorkReport : false;
|
|
81
83
|
var OkrAnalyse = BSGlobal.OkrAdvancedSetting ? BSGlobal.OkrAdvancedSetting.KRSetting.OkrAnalyse : false;
|
|
@@ -94,20 +96,20 @@ function OkrDetail(props) {
|
|
|
94
96
|
okrInfo = _useState4[0],
|
|
95
97
|
setOkrInfo = _useState4[1];
|
|
96
98
|
|
|
97
|
-
var _useState5 = (0, _react.useState)(props.activeTabKey ||
|
|
99
|
+
var _useState5 = (0, _react.useState)(props.activeTabKey || 'okr'),
|
|
98
100
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
99
101
|
activeTabKey = _useState6[0],
|
|
100
102
|
setActiveTabKey = _useState6[1];
|
|
101
103
|
|
|
102
104
|
var drawerManagerContext = (0, _react.useContext)(_context2["default"]);
|
|
103
105
|
|
|
104
|
-
var _useState7 = (0, _react.useState)(
|
|
106
|
+
var _useState7 = (0, _react.useState)(''),
|
|
105
107
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
106
108
|
errorMsg = _useState8[0],
|
|
107
109
|
setErrorMsg = _useState8[1];
|
|
108
110
|
|
|
109
111
|
var changeTabActive = function changeTabActive(key) {
|
|
110
|
-
if (!
|
|
112
|
+
if (!'okr,exec,progress,cooperation,eReport,review,baseInfo'.match(key)) {
|
|
111
113
|
return console.log("\u672A\u627E\u5230\u5BF9\u5E94\u7684tab\u9875\u7B7E: ".concat(key));
|
|
112
114
|
}
|
|
113
115
|
|
|
@@ -116,7 +118,7 @@ function OkrDetail(props) {
|
|
|
116
118
|
});
|
|
117
119
|
setActiveTabKey(key);
|
|
118
120
|
|
|
119
|
-
if (key ==
|
|
121
|
+
if (key == 'cooperation') {
|
|
120
122
|
bottomReply.current.show(undefined, false);
|
|
121
123
|
} else {
|
|
122
124
|
bottomReply.current.hide();
|
|
@@ -182,7 +184,7 @@ function OkrDetail(props) {
|
|
|
182
184
|
var okrListRef = (0, _react.useRef)();
|
|
183
185
|
var onAfterReply = (0, _react.useCallback)(function () {
|
|
184
186
|
communicationRef && communicationRef.current && communicationRef.current.refresh();
|
|
185
|
-
setActiveTabKey(
|
|
187
|
+
setActiveTabKey('cooperation');
|
|
186
188
|
}, []);
|
|
187
189
|
|
|
188
190
|
var getData = function getData() {
|
|
@@ -248,19 +250,19 @@ function OkrDetail(props) {
|
|
|
248
250
|
|
|
249
251
|
var onScrollHandler = function onScrollHandler() {
|
|
250
252
|
// tabs 粘顶
|
|
251
|
-
var tabsNav = tabsContnetRef.current.querySelector(
|
|
252
|
-
if (bodyRef.current.scrollTop > 98) tabsNav.classList.add(
|
|
253
|
+
var tabsNav = tabsContnetRef.current.querySelector('.rc-tabs-nav');
|
|
254
|
+
if (bodyRef.current.scrollTop > 98) tabsNav.classList.add('okr-tabs-fixed-top');else tabsNav.classList.remove('okr-tabs-fixed-top');
|
|
253
255
|
};
|
|
254
256
|
|
|
255
257
|
var handleContainerMouseDown = (0, _react.useCallback)(function () {
|
|
256
|
-
if (activeTabKey ==
|
|
258
|
+
if (activeTabKey == 'cooperation') return;
|
|
257
259
|
bottomReply && bottomReply.current && bottomReply.current.hide();
|
|
258
260
|
}, [activeTabKey]);
|
|
259
261
|
|
|
260
262
|
var refreshKrs = function refreshKrs() {
|
|
261
|
-
var active = activeTabKey ||
|
|
263
|
+
var active = activeTabKey || 'okr';
|
|
262
264
|
|
|
263
|
-
if (active ==
|
|
265
|
+
if (active == 'okr') {
|
|
264
266
|
okrListRef.current && okrListRef.current.updateKrs();
|
|
265
267
|
}
|
|
266
268
|
};
|
|
@@ -317,7 +319,7 @@ function OkrDetail(props) {
|
|
|
317
319
|
activeKey: activeTabKey,
|
|
318
320
|
onChange: changeTabActive,
|
|
319
321
|
tabBarStyle: {
|
|
320
|
-
boxShadow:
|
|
322
|
+
boxShadow: '0px 0px 24px 0px rgba(127, 145, 180, 0.2)'
|
|
321
323
|
}
|
|
322
324
|
}, /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
323
325
|
tab: "OKRs",
|
|
@@ -331,7 +333,7 @@ function OkrDetail(props) {
|
|
|
331
333
|
okrInfo: okrInfo,
|
|
332
334
|
ref: okrListRef
|
|
333
335
|
}))), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
334
|
-
tab: (0, _getLocale.getLocale)(
|
|
336
|
+
tab: (0, _getLocale.getLocale)('OKR_MyO_Exec_Tab_Execution'),
|
|
335
337
|
key: "exec"
|
|
336
338
|
}, /*#__PURE__*/_react["default"].createElement(_tabPanelContent["default"], {
|
|
337
339
|
style: {
|
|
@@ -341,7 +343,7 @@ function OkrDetail(props) {
|
|
|
341
343
|
okrId: okrId,
|
|
342
344
|
okrInfo: okrInfo
|
|
343
345
|
}))), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
344
|
-
tab: (0, _getLocale.getLocale)(
|
|
346
|
+
tab: (0, _getLocale.getLocale)('Feed_Tab_Title_Progress'),
|
|
345
347
|
key: "progress"
|
|
346
348
|
}, /*#__PURE__*/_react["default"].createElement(_tabPanelContent["default"], {
|
|
347
349
|
style: {
|
|
@@ -350,7 +352,7 @@ function OkrDetail(props) {
|
|
|
350
352
|
}, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
351
353
|
okrInfo: okrInfo
|
|
352
354
|
}))), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
353
|
-
tab: (0, _getLocale.getLocale)(
|
|
355
|
+
tab: (0, _getLocale.getLocale)('OKR_MyO_KRP_nteract'),
|
|
354
356
|
key: "cooperation"
|
|
355
357
|
}, /*#__PURE__*/_react["default"].createElement(_tabPanelContent["default"], {
|
|
356
358
|
style: {
|
|
@@ -367,7 +369,7 @@ function OkrDetail(props) {
|
|
|
367
369
|
},
|
|
368
370
|
communicationRef: communicationRef
|
|
369
371
|
}))), EWorkReport && source != 861 && /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
370
|
-
tab: (0, _getLocale.getLocale)(
|
|
372
|
+
tab: (0, _getLocale.getLocale)('OKR_MyO_Ew_Tab_Eweekly'),
|
|
371
373
|
key: "eReport"
|
|
372
374
|
}, /*#__PURE__*/_react["default"].createElement(_tabPanelContent["default"], {
|
|
373
375
|
style: {
|
|
@@ -379,7 +381,7 @@ function OkrDetail(props) {
|
|
|
379
381
|
okrName: okrInfo.workName,
|
|
380
382
|
isVisible: okrInfo.visibility
|
|
381
383
|
}))), OkrAnalyse && /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
382
|
-
tab: (0, _getLocale.getLocale)(
|
|
384
|
+
tab: (0, _getLocale.getLocale)('OKR_MyO_KRP_Review'),
|
|
383
385
|
key: "review"
|
|
384
386
|
}, /*#__PURE__*/_react["default"].createElement(_tabPanelContent["default"], {
|
|
385
387
|
style: {
|
|
@@ -400,7 +402,7 @@ function OkrDetail(props) {
|
|
|
400
402
|
endDate: okrInfo.endDate
|
|
401
403
|
}
|
|
402
404
|
}))), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
403
|
-
tab: (0, _getLocale.getLocale)(
|
|
405
|
+
tab: (0, _getLocale.getLocale)('Per_Ass_New_title_text_BasicIn'),
|
|
404
406
|
key: "baseInfo"
|
|
405
407
|
}, /*#__PURE__*/_react["default"].createElement(_tabPanelContent["default"], {
|
|
406
408
|
style: {
|
|
@@ -416,7 +418,7 @@ function OkrDetail(props) {
|
|
|
416
418
|
feedId: okrInfo.feedId,
|
|
417
419
|
ref: bottomReply,
|
|
418
420
|
onAfterSubmit: onAfterReply,
|
|
419
|
-
isFocusReply: props.activeTabKey ===
|
|
421
|
+
isFocusReply: props.activeTabKey === 'cooperation'
|
|
420
422
|
})) : /*#__PURE__*/_react["default"].createElement(_loading["default"], {
|
|
421
423
|
type: "zone"
|
|
422
424
|
}))));
|