@titaui/pc 1.11.4-1 → 1.11.4-12
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 +45 -33
- 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
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.userPariseinfos = exports.data = void 0;
|
|
7
|
-
var data = [{
|
|
8
|
-
user: {
|
|
9
|
-
big: null,
|
|
10
|
-
color: "#b9cc4f",
|
|
11
|
-
hasAvatar: false,
|
|
12
|
-
large: null,
|
|
13
|
-
medium: null,
|
|
14
|
-
normal: null,
|
|
15
|
-
original: null,
|
|
16
|
-
small: null
|
|
17
|
-
},
|
|
18
|
-
ranking: 1,
|
|
19
|
-
name: "杨亮",
|
|
20
|
-
departmentId: 0,
|
|
21
|
-
departmentName: "默认部门",
|
|
22
|
-
userId: 560000215,
|
|
23
|
-
primaryDepartment: "默认部门",
|
|
24
|
-
primaryDepartmentId: 0,
|
|
25
|
-
likeNums: 1400
|
|
26
|
-
}, {
|
|
27
|
-
user: {
|
|
28
|
-
big: null,
|
|
29
|
-
color: "#b9cc4f",
|
|
30
|
-
hasAvatar: false,
|
|
31
|
-
large: null,
|
|
32
|
-
medium: null,
|
|
33
|
-
normal: null,
|
|
34
|
-
original: null,
|
|
35
|
-
small: null
|
|
36
|
-
},
|
|
37
|
-
ranking: 2,
|
|
38
|
-
name: "杨亮",
|
|
39
|
-
departmentId: 0,
|
|
40
|
-
departmentName: "默认部门",
|
|
41
|
-
userId: 560000215,
|
|
42
|
-
primaryDepartment: "默认部门",
|
|
43
|
-
primaryDepartmentId: 0,
|
|
44
|
-
likeNums: 140
|
|
45
|
-
}, {
|
|
46
|
-
user: {
|
|
47
|
-
big: null,
|
|
48
|
-
color: "#b9cc4f",
|
|
49
|
-
hasAvatar: false,
|
|
50
|
-
large: null,
|
|
51
|
-
medium: null,
|
|
52
|
-
normal: null,
|
|
53
|
-
original: null,
|
|
54
|
-
small: null
|
|
55
|
-
},
|
|
56
|
-
ranking: 3,
|
|
57
|
-
name: "杨亮",
|
|
58
|
-
departmentId: 0,
|
|
59
|
-
departmentName: "默认部门",
|
|
60
|
-
userId: 560000215,
|
|
61
|
-
primaryDepartment: "默认部门",
|
|
62
|
-
primaryDepartmentId: 0,
|
|
63
|
-
likeNums: 14000
|
|
64
|
-
}, {
|
|
65
|
-
user: {
|
|
66
|
-
big: null,
|
|
67
|
-
color: "#b9cc4f",
|
|
68
|
-
hasAvatar: false,
|
|
69
|
-
large: null,
|
|
70
|
-
medium: null,
|
|
71
|
-
normal: null,
|
|
72
|
-
original: null,
|
|
73
|
-
small: null
|
|
74
|
-
},
|
|
75
|
-
ranking: 4,
|
|
76
|
-
name: "杨亮",
|
|
77
|
-
departmentId: 0,
|
|
78
|
-
departmentName: "默认部门",
|
|
79
|
-
userId: 560000215,
|
|
80
|
-
primaryDepartment: "默认部门",
|
|
81
|
-
primaryDepartmentId: 0,
|
|
82
|
-
likeNums: 14000000
|
|
83
|
-
}];
|
|
84
|
-
exports.data = data;
|
|
85
|
-
var userPariseinfos = [{
|
|
86
|
-
user: {
|
|
87
|
-
userId: 560000209,
|
|
88
|
-
userType: 0,
|
|
89
|
-
name: "张昊",
|
|
90
|
-
email: "zhanghao@ceshi.com",
|
|
91
|
-
managerId: 0,
|
|
92
|
-
jobState: 1,
|
|
93
|
-
departmentId: 1641,
|
|
94
|
-
departmentName: "请问",
|
|
95
|
-
postition: null,
|
|
96
|
-
subType: 0,
|
|
97
|
-
hasSubordinates: false,
|
|
98
|
-
avatar: {
|
|
99
|
-
original: null,
|
|
100
|
-
small: null,
|
|
101
|
-
medium: null,
|
|
102
|
-
big: null,
|
|
103
|
-
normal: null,
|
|
104
|
-
large: null,
|
|
105
|
-
hasAvatar: false,
|
|
106
|
-
color: "#f5b168"
|
|
107
|
-
},
|
|
108
|
-
staffCode: "111"
|
|
109
|
-
},
|
|
110
|
-
ranking: 1,
|
|
111
|
-
oneLevelDepName: "请问",
|
|
112
|
-
pariseNums: 1
|
|
113
|
-
}, {
|
|
114
|
-
user: {
|
|
115
|
-
userId: 510000002,
|
|
116
|
-
userType: 0,
|
|
117
|
-
name: "yangliang",
|
|
118
|
-
email: "b496a604-8645-45be-a1e0-bc3a0f0a88c3_210813_192219@virtual.account",
|
|
119
|
-
managerId: 0,
|
|
120
|
-
jobState: 1,
|
|
121
|
-
departmentId: 0,
|
|
122
|
-
departmentName: "默认部门",
|
|
123
|
-
postition: "地方时有人天天味儿",
|
|
124
|
-
subType: 0,
|
|
125
|
-
hasSubordinates: false,
|
|
126
|
-
avatar: {
|
|
127
|
-
original: null,
|
|
128
|
-
small: null,
|
|
129
|
-
medium: null,
|
|
130
|
-
big: null,
|
|
131
|
-
normal: null,
|
|
132
|
-
large: null,
|
|
133
|
-
hasAvatar: false,
|
|
134
|
-
color: "#7eb6e0"
|
|
135
|
-
},
|
|
136
|
-
staffCode: null
|
|
137
|
-
},
|
|
138
|
-
ranking: 2,
|
|
139
|
-
oneLevelDepName: "默认部门",
|
|
140
|
-
pariseNums: 0
|
|
141
|
-
}, {
|
|
142
|
-
user: {
|
|
143
|
-
userId: 510000003,
|
|
144
|
-
userType: 0,
|
|
145
|
-
name: "杨亮",
|
|
146
|
-
email: "935d5dc8-941e-4864-86c7-3e51769ae4ef_210813_192356@virtual.account",
|
|
147
|
-
managerId: 0,
|
|
148
|
-
jobState: 1,
|
|
149
|
-
departmentId: 0,
|
|
150
|
-
departmentName: "默认部门",
|
|
151
|
-
postition: "是大V服务认为",
|
|
152
|
-
subType: 0,
|
|
153
|
-
hasSubordinates: false,
|
|
154
|
-
avatar: {
|
|
155
|
-
original: null,
|
|
156
|
-
small: null,
|
|
157
|
-
medium: null,
|
|
158
|
-
big: null,
|
|
159
|
-
normal: null,
|
|
160
|
-
large: null,
|
|
161
|
-
hasAvatar: false,
|
|
162
|
-
color: "#a1a5ee"
|
|
163
|
-
},
|
|
164
|
-
staffCode: null
|
|
165
|
-
},
|
|
166
|
-
ranking: 3,
|
|
167
|
-
oneLevelDepName: "默认部门",
|
|
168
|
-
pariseNums: 0
|
|
169
|
-
}, {
|
|
170
|
-
user: {
|
|
171
|
-
userId: 560000210,
|
|
172
|
-
userType: 0,
|
|
173
|
-
name: "张昊下属",
|
|
174
|
-
email: "zhanghao@ceshi1.com",
|
|
175
|
-
managerId: 560000209,
|
|
176
|
-
jobState: 1,
|
|
177
|
-
departmentId: 1642,
|
|
178
|
-
departmentName: "不错吧",
|
|
179
|
-
postition: null,
|
|
180
|
-
subType: 0,
|
|
181
|
-
hasSubordinates: false,
|
|
182
|
-
avatar: {
|
|
183
|
-
original: null,
|
|
184
|
-
small: null,
|
|
185
|
-
medium: null,
|
|
186
|
-
big: null,
|
|
187
|
-
normal: null,
|
|
188
|
-
large: null,
|
|
189
|
-
hasAvatar: false,
|
|
190
|
-
color: "#f0c75a"
|
|
191
|
-
},
|
|
192
|
-
staffCode: "9898976"
|
|
193
|
-
},
|
|
194
|
-
ranking: 4,
|
|
195
|
-
oneLevelDepName: "sfsdfsdf",
|
|
196
|
-
pariseNums: 0
|
|
197
|
-
}, {
|
|
198
|
-
user: {
|
|
199
|
-
userId: 560000211,
|
|
200
|
-
userType: 0,
|
|
201
|
-
name: "sad发",
|
|
202
|
-
email: "fcfb078f-3159-4d13-8da2-46ee4e60ccf1@titavirtual.tt",
|
|
203
|
-
managerId: 0,
|
|
204
|
-
jobState: 1,
|
|
205
|
-
departmentId: 0,
|
|
206
|
-
departmentName: "默认部门",
|
|
207
|
-
postition: "海棠依旧苦于他",
|
|
208
|
-
subType: 0,
|
|
209
|
-
hasSubordinates: false,
|
|
210
|
-
avatar: {
|
|
211
|
-
original: null,
|
|
212
|
-
small: null,
|
|
213
|
-
medium: null,
|
|
214
|
-
big: null,
|
|
215
|
-
normal: null,
|
|
216
|
-
large: null,
|
|
217
|
-
hasAvatar: false,
|
|
218
|
-
color: "#8dc8ea"
|
|
219
|
-
},
|
|
220
|
-
staffCode: "333"
|
|
221
|
-
},
|
|
222
|
-
ranking: 5,
|
|
223
|
-
oneLevelDepName: "默认部门",
|
|
224
|
-
pariseNums: 0
|
|
225
|
-
}, {
|
|
226
|
-
user: {
|
|
227
|
-
userId: 560000212,
|
|
228
|
-
userType: 0,
|
|
229
|
-
name: "QW",
|
|
230
|
-
email: "65ddbb05-87e9-4413-9297-9c579bac6540@titavirtual.tt",
|
|
231
|
-
managerId: 0,
|
|
232
|
-
jobState: 1,
|
|
233
|
-
departmentId: 1640,
|
|
234
|
-
departmentName: "阿松大123",
|
|
235
|
-
postition: null,
|
|
236
|
-
subType: 0,
|
|
237
|
-
hasSubordinates: false,
|
|
238
|
-
avatar: {
|
|
239
|
-
original: null,
|
|
240
|
-
small: null,
|
|
241
|
-
medium: null,
|
|
242
|
-
big: null,
|
|
243
|
-
normal: null,
|
|
244
|
-
large: null,
|
|
245
|
-
hasAvatar: false,
|
|
246
|
-
color: "#7eb6e0"
|
|
247
|
-
},
|
|
248
|
-
staffCode: "444"
|
|
249
|
-
},
|
|
250
|
-
ranking: 6,
|
|
251
|
-
oneLevelDepName: "访问v",
|
|
252
|
-
pariseNums: 0
|
|
253
|
-
}, {
|
|
254
|
-
user: {
|
|
255
|
-
userId: 560000213,
|
|
256
|
-
userType: 0,
|
|
257
|
-
name: "测试1",
|
|
258
|
-
email: "736059fd-9bb3-430d-84f4-d3f267e0f2ac@titavirtual.tt",
|
|
259
|
-
managerId: 0,
|
|
260
|
-
jobState: 1,
|
|
261
|
-
departmentId: 0,
|
|
262
|
-
departmentName: "默认部门",
|
|
263
|
-
postition: null,
|
|
264
|
-
subType: 0,
|
|
265
|
-
hasSubordinates: false,
|
|
266
|
-
avatar: {
|
|
267
|
-
original: null,
|
|
268
|
-
small: null,
|
|
269
|
-
medium: null,
|
|
270
|
-
big: null,
|
|
271
|
-
normal: null,
|
|
272
|
-
large: null,
|
|
273
|
-
hasAvatar: false,
|
|
274
|
-
color: "#a1a5ee"
|
|
275
|
-
},
|
|
276
|
-
staffCode: "555"
|
|
277
|
-
},
|
|
278
|
-
ranking: 7,
|
|
279
|
-
oneLevelDepName: "默认部门",
|
|
280
|
-
pariseNums: 0
|
|
281
|
-
}, {
|
|
282
|
-
user: {
|
|
283
|
-
userId: 560000214,
|
|
284
|
-
userType: 0,
|
|
285
|
-
name: "测试2",
|
|
286
|
-
email: "534a2922-2e59-4998-a055-00a35a6a1a23@titavirtual.tt",
|
|
287
|
-
managerId: 0,
|
|
288
|
-
jobState: 1,
|
|
289
|
-
departmentId: 1637,
|
|
290
|
-
departmentName: "不错吧1111111111111",
|
|
291
|
-
postition: null,
|
|
292
|
-
subType: 0,
|
|
293
|
-
hasSubordinates: false,
|
|
294
|
-
avatar: {
|
|
295
|
-
original: null,
|
|
296
|
-
small: null,
|
|
297
|
-
medium: null,
|
|
298
|
-
big: null,
|
|
299
|
-
normal: null,
|
|
300
|
-
large: null,
|
|
301
|
-
hasAvatar: false,
|
|
302
|
-
color: "#c4a1ee"
|
|
303
|
-
},
|
|
304
|
-
staffCode: "666"
|
|
305
|
-
},
|
|
306
|
-
ranking: 8,
|
|
307
|
-
oneLevelDepName: "sfsdfsdf",
|
|
308
|
-
pariseNums: 0
|
|
309
|
-
}, {
|
|
310
|
-
user: {
|
|
311
|
-
userId: 560000215,
|
|
312
|
-
userType: 0,
|
|
313
|
-
name: "导入人",
|
|
314
|
-
email: "b6057d12-4074-4b50-b799-880e94c34962@titavirtual.tt",
|
|
315
|
-
managerId: 560000209,
|
|
316
|
-
jobState: 1,
|
|
317
|
-
departmentId: 0,
|
|
318
|
-
departmentName: "默认部门",
|
|
319
|
-
postition: null,
|
|
320
|
-
subType: 0,
|
|
321
|
-
hasSubordinates: false,
|
|
322
|
-
avatar: {
|
|
323
|
-
original: null,
|
|
324
|
-
small: null,
|
|
325
|
-
medium: null,
|
|
326
|
-
big: null,
|
|
327
|
-
normal: null,
|
|
328
|
-
large: null,
|
|
329
|
-
hasAvatar: false,
|
|
330
|
-
color: "#b9cc4f"
|
|
331
|
-
},
|
|
332
|
-
staffCode: "777"
|
|
333
|
-
},
|
|
334
|
-
ranking: 9,
|
|
335
|
-
oneLevelDepName: "默认部门",
|
|
336
|
-
pariseNums: 0
|
|
337
|
-
}, {
|
|
338
|
-
user: {
|
|
339
|
-
userId: 560000217,
|
|
340
|
-
userType: 0,
|
|
341
|
-
name: "新家群",
|
|
342
|
-
email: "29e1e1c5-41e8-4250-9f50-aa7fda56d8e4@titavirtual.tt",
|
|
343
|
-
managerId: 0,
|
|
344
|
-
jobState: 1,
|
|
345
|
-
departmentId: 0,
|
|
346
|
-
departmentName: "默认部门",
|
|
347
|
-
postition: null,
|
|
348
|
-
subType: 0,
|
|
349
|
-
hasSubordinates: false,
|
|
350
|
-
avatar: {
|
|
351
|
-
original: null,
|
|
352
|
-
small: null,
|
|
353
|
-
medium: null,
|
|
354
|
-
big: null,
|
|
355
|
-
normal: null,
|
|
356
|
-
large: null,
|
|
357
|
-
hasAvatar: false,
|
|
358
|
-
color: "#f79c6f"
|
|
359
|
-
},
|
|
360
|
-
staffCode: "888"
|
|
361
|
-
},
|
|
362
|
-
ranking: 10,
|
|
363
|
-
oneLevelDepName: "默认部门",
|
|
364
|
-
pariseNums: 0
|
|
365
|
-
}];
|
|
366
|
-
exports.userPariseinfos = userPariseinfos;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = _default;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _rcTooltip = _interopRequireDefault(require("rc-tooltip"));
|
|
15
|
-
|
|
16
|
-
var _switch = _interopRequireDefault(require("../../../../../components/switch"));
|
|
17
|
-
|
|
18
|
-
var _popup = _interopRequireDefault(require("../../../../../components/popup"));
|
|
19
|
-
|
|
20
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
|
21
|
-
|
|
22
|
-
var _searchDropdown = _interopRequireDefault(require("../../../../../components/search-dropdown"));
|
|
23
|
-
|
|
24
|
-
var _periodSelector = _interopRequireDefault(require("../../../../../components/period-selector"));
|
|
25
|
-
|
|
26
|
-
var _iconButtonList = _interopRequireDefault(require("../../../../../components/icon-button-list"));
|
|
27
|
-
|
|
28
|
-
var _showKrConfirm = _interopRequireDefault(require("./show-kr-confirm"));
|
|
29
|
-
|
|
30
|
-
var _numberSelect = _interopRequireDefault(require("../../../number-select"));
|
|
31
|
-
|
|
32
|
-
require("./index.scss");
|
|
33
|
-
|
|
34
|
-
var _utils = require("../../../utils");
|
|
35
|
-
|
|
36
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
|
-
|
|
38
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
|
-
|
|
40
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
41
|
-
|
|
42
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
|
-
|
|
44
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
45
|
-
|
|
46
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
47
|
-
|
|
48
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
49
|
-
|
|
50
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
51
|
-
|
|
52
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
53
|
-
|
|
54
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
|
-
|
|
56
|
-
var preCls = "titapage-okr-map";
|
|
57
|
-
|
|
58
|
-
function _default(props) {
|
|
59
|
-
var onShowKrClick = props.onShowKrClick,
|
|
60
|
-
onSearchChange = props.onSearchChange,
|
|
61
|
-
onBtnClick = props.onBtnClick,
|
|
62
|
-
onPeriodChange = props.onPeriodChange,
|
|
63
|
-
onThemeChange = props.onThemeChange,
|
|
64
|
-
onLevelChange = props.onLevelChange,
|
|
65
|
-
searchType = props.searchType,
|
|
66
|
-
fullScreen = props.fullScreen,
|
|
67
|
-
direction = props.direction,
|
|
68
|
-
darkTheme = props.darkTheme,
|
|
69
|
-
period = props.period,
|
|
70
|
-
showkr = props.showkr,
|
|
71
|
-
openLevel = props.openLevel;
|
|
72
|
-
|
|
73
|
-
var _useState = (0, _react.useState)(false),
|
|
74
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
75
|
-
visible = _useState2[0],
|
|
76
|
-
setVisible = _useState2[1];
|
|
77
|
-
|
|
78
|
-
var iconButtons = [{
|
|
79
|
-
icon: "export",
|
|
80
|
-
overlay: (0, _getLocale.getLocale)("Mod_Export")
|
|
81
|
-
}, {
|
|
82
|
-
icon: "share",
|
|
83
|
-
overlay: (0, _getLocale.getLocale)("OKR_MyO_Share")
|
|
84
|
-
}, {
|
|
85
|
-
icon: fullScreen ? "quit-fullscreen" : "fullscreen",
|
|
86
|
-
overlay: (0, _getLocale.getLocale)("OKR_Ali_Butt_Fullscreen")
|
|
87
|
-
}, {
|
|
88
|
-
icon: direction == "horizontal" ? "vertical" : "horizontal",
|
|
89
|
-
overlay: direction == "horizontal" ? "".concat((0, _getLocale.getLocale)("OKR_Ali_Butt_Toggleportrait")) : "".concat((0, _getLocale.getLocale)("OKR_Ali_Butt_Togglelandscape")),
|
|
90
|
-
placement: "topRight"
|
|
91
|
-
}];
|
|
92
|
-
|
|
93
|
-
var popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
94
|
-
className: (0, _classnames["default"])("".concat(preCls, "__show-more-popup"))
|
|
95
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-action-showkr"))
|
|
97
|
-
}, /*#__PURE__*/_react["default"].createElement(_switch["default"], {
|
|
98
|
-
label: (0, _getLocale.getLocale)("OKR_Ali_Butt_ExhibitionKRs"),
|
|
99
|
-
checked: showkr,
|
|
100
|
-
onChange: function onChange() {
|
|
101
|
-
return setVisible(true);
|
|
102
|
-
}
|
|
103
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-action-level"))
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement(_numberSelect["default"], {
|
|
106
|
-
max: 10,
|
|
107
|
-
min: 1,
|
|
108
|
-
onChange: function onChange(num) {
|
|
109
|
-
return onLevelChange(num);
|
|
110
|
-
},
|
|
111
|
-
label: (0, _getLocale.getLocale)("OKR_Ali_Butt_Displaylevel"),
|
|
112
|
-
defaultValue: openLevel
|
|
113
|
-
})));
|
|
114
|
-
|
|
115
|
-
var onConfirmHandler = function onConfirmHandler(checked) {
|
|
116
|
-
onShowKrClick(checked);
|
|
117
|
-
setVisible(false);
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
var _useState3 = (0, _react.useState)(false),
|
|
121
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
122
|
-
fold = _useState4[0],
|
|
123
|
-
setFold = _useState4[1];
|
|
124
|
-
|
|
125
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header"), _defineProperty({}, "".concat(preCls, "__header__folded"), fold))
|
|
127
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-title"))
|
|
129
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-title-text"))
|
|
131
|
-
}, (0, _getLocale.getLocale)("OKR_Ali_Title_Objectivemap")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-title-right"))
|
|
133
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
134
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-theme")),
|
|
135
|
-
onClick: onThemeChange
|
|
136
|
-
}, "\u5207\u6362", darkTheme ? "浅色" : "深色", "\u6A21\u5F0F"), /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
137
|
-
align: "bottomRight",
|
|
138
|
-
onChange: onPeriodChange,
|
|
139
|
-
selected: period,
|
|
140
|
-
yearsRange: [2018, 2030]
|
|
141
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-action"))
|
|
143
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-action-search"))
|
|
145
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], {
|
|
146
|
-
placeholder: (0, _getLocale.getLocale)("Mod_Pleaseselect"),
|
|
147
|
-
value: searchType,
|
|
148
|
-
onChange: onSearchChange
|
|
149
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
150
|
-
value: "company"
|
|
151
|
-
}, (0, _getLocale.getLocale)("OKR_Ali_From_Companyobje")), /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
152
|
-
value: "depart"
|
|
153
|
-
}, (0, _getLocale.getLocale)("OKR_Ali_From_Viewdepartment")), _utils.OkrTypeSetting && /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
154
|
-
value: "group"
|
|
155
|
-
}, (0, _getLocale.getLocale)("OKR_Ali_From_Viewteam")), /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"].Option, {
|
|
156
|
-
value: "user"
|
|
157
|
-
}, (0, _getLocale.getLocale)("OKR_Ali_From_Viewmember")))), /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
158
|
-
popup: popup
|
|
159
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
160
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-action--show-more"))
|
|
161
|
-
}, (0, _getLocale.getLocale)("OKR_Ali_Butt_Exhibitionmore"))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
162
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-action-btns"))
|
|
163
|
-
}, /*#__PURE__*/_react["default"].createElement(_iconButtonList["default"], {
|
|
164
|
-
items: iconButtons,
|
|
165
|
-
onClick: function onClick(e, iconType) {
|
|
166
|
-
return onBtnClick(iconType);
|
|
167
|
-
}
|
|
168
|
-
}))), /*#__PURE__*/_react["default"].createElement(_rcTooltip["default"], {
|
|
169
|
-
overlay: fold ? "".concat((0, _getLocale.getLocale)("Mod_Unfold")) : "".concat((0, _getLocale.getLocale)("Mod_Fold")),
|
|
170
|
-
placement: "top"
|
|
171
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
|
-
className: (0, _classnames["default"])("".concat(preCls, "__header-fold"), _defineProperty({}, "".concat(preCls, "__header-fold__close"), fold)),
|
|
173
|
-
onClick: function onClick() {
|
|
174
|
-
return setFold(!fold);
|
|
175
|
-
}
|
|
176
|
-
})), /*#__PURE__*/_react["default"].createElement(_showKrConfirm["default"], {
|
|
177
|
-
visible: visible,
|
|
178
|
-
setVisible: setVisible,
|
|
179
|
-
onConfirmHandler: onConfirmHandler,
|
|
180
|
-
showkr: showkr
|
|
181
|
-
}));
|
|
182
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
|
|
10
|
-
var _dialog = _interopRequireDefault(require("../../../../../components/dialog"));
|
|
11
|
-
|
|
12
|
-
var _getLocale = require("../../../../../utils/getLocale");
|
|
13
|
-
|
|
14
|
-
var _precls = _interopRequireDefault(require("../../../precls"));
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
function ShowKrConfirmDialog(props) {
|
|
19
|
-
var visible = props.visible,
|
|
20
|
-
showkr = props.showkr,
|
|
21
|
-
setVisible = props.setVisible,
|
|
22
|
-
onConfirmHandler = props.onConfirmHandler;
|
|
23
|
-
return /*#__PURE__*/React.createElement(_dialog["default"], {
|
|
24
|
-
visible: visible,
|
|
25
|
-
width: 360,
|
|
26
|
-
title: /*#__PURE__*/React.createElement("span", {
|
|
27
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "--kr-dialog--title"))
|
|
28
|
-
}, showkr ? (0, _getLocale.getLocale)("OKR_Ali_Text_Areclose") : (0, _getLocale.getLocale)("OKR_Ali_Text_Aresureon")),
|
|
29
|
-
noHeadLine: true,
|
|
30
|
-
noFooterLine: true,
|
|
31
|
-
noCloseIcon: true,
|
|
32
|
-
okText: (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine"),
|
|
33
|
-
destroyOnClose: true,
|
|
34
|
-
cancelText: (0, _getLocale.getLocale)("Mod_Cancel"),
|
|
35
|
-
onOk: function onOk() {
|
|
36
|
-
return onConfirmHandler(!showkr);
|
|
37
|
-
},
|
|
38
|
-
onCancel: function onCancel() {
|
|
39
|
-
return setVisible(false);
|
|
40
|
-
}
|
|
41
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
42
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "--kr-dialog--content"))
|
|
43
|
-
}, showkr ? (0, _getLocale.getLocale)("OKR_Ali_Text_Pageclosing") : (0, _getLocale.getLocale)("OKR_Ali_Text_Pagerefreshed")));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
var _default = ShowKrConfirmDialog;
|
|
47
|
-
exports["default"] = _default;
|