@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
|
@@ -41,7 +41,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
41
41
|
|
|
42
42
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
43
|
|
|
44
|
-
var prefix =
|
|
44
|
+
var prefix = 'titaui-dynamic-kr-item';
|
|
45
45
|
|
|
46
46
|
var DynamicKr = function DynamicKr(_ref) {
|
|
47
47
|
var data = _ref.data,
|
|
@@ -55,13 +55,13 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
55
55
|
principalUser = data.principalUser;
|
|
56
56
|
|
|
57
57
|
var handleClickKrTitle = function handleClickKrTitle() {
|
|
58
|
-
_drawerManager["default"].open(
|
|
58
|
+
_drawerManager["default"].open('krDetail', {
|
|
59
59
|
krId: krId
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var handleClickOTitle = function handleClickOTitle() {
|
|
64
|
-
_drawerManager["default"].open(
|
|
64
|
+
_drawerManager["default"].open('okrDetail', {
|
|
65
65
|
okrId: data.obj.objId
|
|
66
66
|
});
|
|
67
67
|
};
|
|
@@ -71,13 +71,13 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
71
71
|
className: "".concat(prefix, "__operate-desc")
|
|
72
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
73
73
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
74
|
-
}, (0, _getLocale.getLocale)(
|
|
74
|
+
}, (0, _getLocale.getLocale)('Mod_InChargeof'), (0, _constant.getObjTypeMapText)(data.obj.objType), /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
75
|
className: "".concat(prefix, "__object-name"),
|
|
76
76
|
onClick: handleClickOTitle
|
|
77
77
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
78
|
-
text: data.obj.objName,
|
|
78
|
+
text: (0, _tools.htmlDecodeByRegExp)(data.obj.objName),
|
|
79
79
|
isPercent: true
|
|
80
|
-
})), (0, _getLocale.getLocale)(
|
|
80
|
+
})), (0, _getLocale.getLocale)('Mod_skeyresults')));
|
|
81
81
|
}, []);
|
|
82
82
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
83
|
className: prefix
|
|
@@ -43,7 +43,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
43
43
|
|
|
44
44
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
45
|
|
|
46
|
-
var prefix =
|
|
46
|
+
var prefix = 'titaui-dynamic-milestone-item';
|
|
47
47
|
|
|
48
48
|
var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
49
49
|
var data = _ref.data,
|
|
@@ -60,7 +60,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
60
60
|
searchKeyWord = _useContext.searchKeyWord;
|
|
61
61
|
|
|
62
62
|
var handleClickTaskTitle = function handleClickTaskTitle() {
|
|
63
|
-
window.Talent.app.vent.trigger(
|
|
63
|
+
window.Talent.app.vent.trigger('global-pull-screen', data.mileStoneId, 'milestone', new window.Talent.Model(data), {
|
|
64
64
|
option: true,
|
|
65
65
|
width: 465,
|
|
66
66
|
React: _react["default"],
|
|
@@ -92,13 +92,13 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
92
92
|
className: "".concat(prefix, "__operate-desc")
|
|
93
93
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
94
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
95
|
-
}, (0, _getLocale.getLocale)(
|
|
95
|
+
}, (0, _getLocale.getLocale)('Mod_InChargeof'), (0, _getLocale.getLocale)('Menu_Title_Projects'), /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
96
|
className: "".concat(prefix, "__object-name"),
|
|
97
97
|
onClick: handleClickTitle
|
|
98
98
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
99
|
-
text: obj.objName,
|
|
99
|
+
text: (0, _tools.htmlDecodeByRegExp)(obj.objName),
|
|
100
100
|
isPercent: true
|
|
101
|
-
})), (0, _getLocale.getLocale)(
|
|
101
|
+
})), (0, _getLocale.getLocale)('Mod_smilestone')));
|
|
102
102
|
}, []);
|
|
103
103
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
104
|
className: prefix
|
|
@@ -115,7 +115,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
115
115
|
className: "".concat(prefix, "__content-title")
|
|
116
116
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
117
117
|
className: "".concat(prefix, "__content-title-type")
|
|
118
|
-
}, (0, _getLocale.getLocale)(
|
|
118
|
+
}, (0, _getLocale.getLocale)('Pro_page_Plan_Milestone')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
119
119
|
className: "".concat(prefix, "__content-title-text")
|
|
120
120
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
121
121
|
isPercent: true,
|
|
@@ -128,7 +128,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
128
128
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
129
129
|
className: "".concat(prefix, "__content-status-text")
|
|
130
130
|
}, _constant.MileStoneStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
131
|
-
className: (0, _classnames["default"])(
|
|
131
|
+
className: (0, _classnames["default"])('tu-icon-deferred', "".concat(prefix, "__content-status-icon"))
|
|
132
132
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
133
|
className: "".concat(prefix, "__content-time-range")
|
|
134
134
|
}, startDate, "-", endDate)))));
|
|
@@ -51,7 +51,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
51
51
|
|
|
52
52
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
53
|
|
|
54
|
-
var prefix =
|
|
54
|
+
var prefix = 'titaui-dynamic-progress-item';
|
|
55
55
|
|
|
56
56
|
var DynamicProgress = function DynamicProgress(_ref) {
|
|
57
57
|
var data = _ref.data,
|
|
@@ -78,22 +78,22 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
78
78
|
objId = obj.objId;
|
|
79
79
|
|
|
80
80
|
if (objType === _constant.EObjType.Kr) {
|
|
81
|
-
_drawerManager["default"].open(
|
|
81
|
+
_drawerManager["default"].open('krDetail', {
|
|
82
82
|
krId: objId
|
|
83
83
|
});
|
|
84
84
|
} else if (objType === _constant.EObjType.O) {
|
|
85
|
-
_drawerManager["default"].open(
|
|
85
|
+
_drawerManager["default"].open('okrDetail', {
|
|
86
86
|
okrId: objId
|
|
87
87
|
});
|
|
88
88
|
} else if (objType === _constant.EObjType.Task) {
|
|
89
|
-
window.Talent.app.vent.trigger(
|
|
89
|
+
window.Talent.app.vent.trigger('global-pull-screen', objId, 'task');
|
|
90
90
|
} else if (objType === _constant.EObjType.Project) {
|
|
91
91
|
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
var handleClickOTitle = function handleClickOTitle() {
|
|
96
|
-
_drawerManager["default"].open(
|
|
96
|
+
_drawerManager["default"].open('okrDetail', {
|
|
97
97
|
okrId: relationParentId
|
|
98
98
|
});
|
|
99
99
|
};
|
|
@@ -104,28 +104,28 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
104
104
|
if (obj && obj.objType === _constant.EObjType.Kr) {
|
|
105
105
|
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
106
|
className: "".concat(prefix, "__obj-wrapper")
|
|
107
|
-
}, (0, _getLocale.getLocale)(
|
|
107
|
+
}, (0, _getLocale.getLocale)('Mod_Updated'), (0, _getLocale.getLocale)('Mod_Objective'), /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
108
|
className: "".concat(prefix, "__object-name"),
|
|
109
109
|
onClick: handleClickOTitle
|
|
110
110
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
111
111
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
112
|
-
str: relationParentName,
|
|
112
|
+
str: (0, _tools.htmlDecodeByRegExp)(relationParentName),
|
|
113
113
|
keyWord: searchKeyWord
|
|
114
114
|
}),
|
|
115
115
|
isPercent: true
|
|
116
|
-
})), (0, _getLocale.getLocale)(
|
|
116
|
+
})), (0, _getLocale.getLocale)('Mod_skeyrprogress'));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
if (obj && obj.objType === _constant.EObjType.O) {
|
|
120
|
-
dom = "".concat((0, _getLocale.getLocale)(
|
|
120
|
+
dom = "".concat((0, _getLocale.getLocale)('Mod_Updated')).concat((0, _getLocale.getLocale)('Mod_objectiveprog'));
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
if (obj && obj.objType === _constant.EObjType.Task) {
|
|
124
|
-
dom = "".concat((0, _getLocale.getLocale)(
|
|
124
|
+
dom = "".concat((0, _getLocale.getLocale)('Mod_Updated')).concat((0, _getLocale.getLocale)('Data_Taskprogress'));
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
if (obj && obj.objType === _constant.EObjType.Project) {
|
|
128
|
-
dom = "".concat((0, _getLocale.getLocale)(
|
|
128
|
+
dom = "".concat((0, _getLocale.getLocale)('Mod_Updated')).concat((0, _getLocale.getLocale)('Mod_ProjectProgress'));
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -45,7 +45,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
45
45
|
|
|
46
46
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
47
47
|
|
|
48
|
-
var prefix =
|
|
48
|
+
var prefix = 'titaui-dynamic-reply-item';
|
|
49
49
|
|
|
50
50
|
var DynamicReply = function DynamicReply(_ref) {
|
|
51
51
|
var data = _ref.data,
|
|
@@ -58,25 +58,25 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
58
58
|
publishUser = data.publishUser;
|
|
59
59
|
|
|
60
60
|
var handleShowTaskDrawer = function handleShowTaskDrawer(taskId) {
|
|
61
|
-
window.Talent.app.vent.trigger(
|
|
61
|
+
window.Talent.app.vent.trigger('global-pull-screen', taskId, 'task');
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
var handleClickTitle = function handleClickTitle() {
|
|
65
65
|
if (data.replayObjType === _constant.EObjType.Kr) {
|
|
66
|
-
_drawerManager["default"].open(
|
|
66
|
+
_drawerManager["default"].open('krDetail', {
|
|
67
67
|
krId: data.replayObjId
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
if (data.replayObjType === _constant.EObjType.O) {
|
|
72
|
-
_drawerManager["default"].open(
|
|
72
|
+
_drawerManager["default"].open('okrDetail', {
|
|
73
73
|
okrId: data.replayObjId
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
var handleClickOTitle = function handleClickOTitle() {
|
|
79
|
-
_drawerManager["default"].open(
|
|
79
|
+
_drawerManager["default"].open('okrDetail', {
|
|
80
80
|
okrId: data.obj.objId
|
|
81
81
|
});
|
|
82
82
|
};
|
|
@@ -85,17 +85,17 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
85
85
|
var dom;
|
|
86
86
|
|
|
87
87
|
if (replayObjType === _constant.EObjType.O) {
|
|
88
|
-
dom =
|
|
88
|
+
dom = '的目标复盘';
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
if (replayObjType === _constant.EObjType.Kr) {
|
|
92
92
|
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
93
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
94
|
-
}, (0, _getLocale.getLocale)(
|
|
94
|
+
}, (0, _getLocale.getLocale)('Mod_Objective'), /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
95
|
className: "".concat(prefix, "__object-name"),
|
|
96
96
|
onClick: handleClickOTitle
|
|
97
97
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
98
|
-
text: data.obj.objName,
|
|
98
|
+
text: (0, _tools.htmlDecodeByRegExp)(data.obj.objName),
|
|
99
99
|
isPercent: true
|
|
100
100
|
})), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
|
|
101
101
|
}
|
|
@@ -118,17 +118,17 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
118
118
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
119
119
|
content: data.replayObjName,
|
|
120
120
|
onClickTitle: handleClickTitle,
|
|
121
|
-
type: "".concat(data.replayObjType === 65 ?
|
|
122
|
-
typeBgColor: "".concat(data.replayObjType === 65 ?
|
|
123
|
-
titleBgColor: "".concat(data.replayObjType === 65 ?
|
|
124
|
-
contentColor: "".concat(data.replayObjType === 65 ?
|
|
121
|
+
type: "".concat(data.replayObjType === 65 ? 'KR' : (0, _getLocale.getLocale)('Mod_Objective')),
|
|
122
|
+
typeBgColor: "".concat(data.replayObjType === 65 ? 'rgba(90, 216, 166, 0.5)' : 'rgba(40, 121, 255, 0.5)'),
|
|
123
|
+
titleBgColor: "".concat(data.replayObjType === 65 ? 'rgba(90, 216, 166, 0.1)' : 'rgba(40, 121, 255, 0.1)'),
|
|
124
|
+
contentColor: "".concat(data.replayObjType === 65 ? '#5AD8A6' : '#2879FF')
|
|
125
125
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
126
|
className: "".concat(prefix, "__detail")
|
|
127
127
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
128
|
className: "".concat(prefix, "__detail-gain")
|
|
129
129
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
130
|
className: "".concat(prefix, "__detail-block-title")
|
|
131
|
-
}, (0, _getLocale.getLocale)(
|
|
131
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_KRP_Pop_Value')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
132
|
className: "".concat(prefix, "__detail-block-content")
|
|
133
133
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
134
134
|
str: (0, _tools.htmlDecodeByHtmlRegExp)(data.gains),
|
|
@@ -139,7 +139,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
139
139
|
className: "".concat(prefix, "__detail-drawback")
|
|
140
140
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
141
|
className: "".concat(prefix, "__detail-block-title")
|
|
142
|
-
}, (0, _getLocale.getLocale)(
|
|
142
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_KRP_Pop_Problems'), " ", index + 1), /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
143
|
className: "".concat(prefix, "__detail-block-content")
|
|
144
144
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
145
145
|
str: (0, _tools.htmlDecodeByHtmlRegExp)(item.drawback),
|
|
@@ -45,7 +45,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
45
45
|
|
|
46
46
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
47
47
|
|
|
48
|
-
var prefix =
|
|
48
|
+
var prefix = 'titaui-dynamic-task-item';
|
|
49
49
|
|
|
50
50
|
var DynamicTask = function DynamicTask(_ref) {
|
|
51
51
|
var data = _ref.data,
|
|
@@ -63,7 +63,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
63
63
|
searchKeyWord = _useContext.searchKeyWord;
|
|
64
64
|
|
|
65
65
|
var handleClickTaskTitle = function handleClickTaskTitle() {
|
|
66
|
-
window.Talent.app.vent.trigger(
|
|
66
|
+
window.Talent.app.vent.trigger('global-pull-screen', data.taskId, 'task');
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
var handleClickTitle = function handleClickTitle() {
|
|
@@ -71,13 +71,13 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
71
71
|
objId = obj.objId;
|
|
72
72
|
|
|
73
73
|
if (objType === _constant2.EObjType.Kr) {
|
|
74
|
-
_drawerManager["default"].open(
|
|
74
|
+
_drawerManager["default"].open('krDetail', {
|
|
75
75
|
krId: objId
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
if (objType === _constant2.EObjType.O) {
|
|
80
|
-
_drawerManager["default"].open(
|
|
80
|
+
_drawerManager["default"].open('okrDetail', {
|
|
81
81
|
okrId: objId
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -110,17 +110,17 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
110
110
|
var dom;
|
|
111
111
|
|
|
112
112
|
if (obj === null || !obj.objName) {
|
|
113
|
-
dom = "".concat((0, _getLocale.getLocale)(
|
|
113
|
+
dom = "".concat((0, _getLocale.getLocale)('Mod_InChargeof')).concat((0, _getLocale.getLocale)('Mod_Tasks'));
|
|
114
114
|
} else {
|
|
115
115
|
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
116
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
117
|
-
}, (0, _getLocale.getLocale)(
|
|
117
|
+
}, (0, _getLocale.getLocale)('Mod_InChargeof'), (0, _constant2.getObjTypeMapText)(obj.objType), /*#__PURE__*/_react["default"].createElement("span", {
|
|
118
118
|
className: "".concat(prefix, "__object-name"),
|
|
119
119
|
onClick: handleClickTitle
|
|
120
120
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
121
|
-
text: obj.objName,
|
|
121
|
+
text: (0, _mblog.htmlDecodeByRegExp)(obj.objName),
|
|
122
122
|
isPercent: true
|
|
123
|
-
})), (0, _getLocale.getLocale)(
|
|
123
|
+
})), (0, _getLocale.getLocale)('Mod_stask'));
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -142,7 +142,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
142
142
|
className: "".concat(prefix, "__content-title")
|
|
143
143
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
144
|
className: "".concat(prefix, "__content-title-type")
|
|
145
|
-
}, (0, _getLocale.getLocale)(
|
|
145
|
+
}, (0, _getLocale.getLocale)('Feed_Tab_Title_Task')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
146
|
className: "".concat(prefix, "__content-title-text")
|
|
147
147
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
148
148
|
isPercent: true,
|
|
@@ -155,7 +155,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
155
155
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
156
|
className: "".concat(prefix, "__content-status-text")
|
|
157
157
|
}, (0, _constant.getEStatusClass2StatusTypeText)()[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
158
|
-
className: (0, _classnames["default"])(
|
|
158
|
+
className: (0, _classnames["default"])('tu-icon-deferred', "".concat(prefix, "__content-status-icon"))
|
|
159
159
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
160
160
|
className: "".concat(prefix, "__content-time-range")
|
|
161
161
|
}, startDate, "-", deadline)))));
|
|
@@ -39,6 +39,8 @@ var _dynamicProgress = _interopRequireDefault(require("./dynamic-progress"));
|
|
|
39
39
|
|
|
40
40
|
var _dynamicCreateO = _interopRequireDefault(require("./dynamic-create-o"));
|
|
41
41
|
|
|
42
|
+
var _dynamicAiDialy = _interopRequireDefault(require("./dynamic-ai-dialy"));
|
|
43
|
+
|
|
42
44
|
var _dynamicTask = _interopRequireDefault(require("./dynamic-task"));
|
|
43
45
|
|
|
44
46
|
var _dynamicProject = _interopRequireDefault(require("./dynamic-project"));
|
|
@@ -71,6 +73,8 @@ require("./index.css");
|
|
|
71
73
|
|
|
72
74
|
var _dynamicInterview = _interopRequireDefault(require("./dynamic-interview"));
|
|
73
75
|
|
|
76
|
+
var _dynamicInterviewShare = _interopRequireDefault(require("./dynamic-interview-share"));
|
|
77
|
+
|
|
74
78
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
75
79
|
|
|
76
80
|
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); }
|
|
@@ -106,7 +110,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
106
110
|
var prefix = 'titaui-dynamic-item';
|
|
107
111
|
|
|
108
112
|
var DynamicItem = function DynamicItem(_ref) {
|
|
109
|
-
var _getBSGlobal;
|
|
113
|
+
var _getBSGlobal, _JSON$parse;
|
|
110
114
|
|
|
111
115
|
var data = _ref.data,
|
|
112
116
|
onDeleteFeed = _ref.onDeleteFeed,
|
|
@@ -156,6 +160,10 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
156
160
|
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
|
|
157
161
|
return item.AppId === '950';
|
|
158
162
|
}));
|
|
163
|
+
var isBiShare = data.shareType === _constant.EShareType.BiShare && data.biId;
|
|
164
|
+
|
|
165
|
+
var isFeedReport = isBiShare && _constant.PlanReportType.includes((_JSON$parse = JSON.parse(data.biId)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.type);
|
|
166
|
+
|
|
159
167
|
var dynamicContentRef = (0, _react.useRef)();
|
|
160
168
|
var communicationRef = (0, _react.useRef)();
|
|
161
169
|
|
|
@@ -169,15 +177,13 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
169
177
|
};
|
|
170
178
|
|
|
171
179
|
var handleShowMore = function handleShowMore() {
|
|
172
|
-
if (data.feedType === _constant.EFeedType.Report) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
});
|
|
180
|
-
}
|
|
180
|
+
if (data.feedType === _constant.EFeedType.Report && window.titaTracker) {
|
|
181
|
+
window.titaTracker('planAction').record({
|
|
182
|
+
actionName: '查看日报',
|
|
183
|
+
actionGroup: '动态-查看更多',
|
|
184
|
+
productName: '动态',
|
|
185
|
+
feedId: feedId
|
|
186
|
+
});
|
|
181
187
|
}
|
|
182
188
|
|
|
183
189
|
setIsFold(false);
|
|
@@ -211,7 +217,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
211
217
|
actionName = '取消日报点赞';
|
|
212
218
|
}
|
|
213
219
|
|
|
214
|
-
if (window.titaTracker) {
|
|
220
|
+
if (feedType === _constant.EFeedType.Report && window.titaTracker) {
|
|
215
221
|
window.titaTracker('planAction').record({
|
|
216
222
|
actionName: actionName,
|
|
217
223
|
actionGroup: '动态-日报',
|
|
@@ -302,6 +308,14 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
302
308
|
});
|
|
303
309
|
}
|
|
304
310
|
|
|
311
|
+
if (data.shareType === _constant.EShareType.InterviewShare) {
|
|
312
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicInterviewShare["default"], {
|
|
313
|
+
data: data,
|
|
314
|
+
onDeleteFeed: onDeleteFeed,
|
|
315
|
+
hasDynamicOpereateAuth: hasDynamicOpereateAuth
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
|
|
305
319
|
return /*#__PURE__*/_react["default"].createElement(_dynamicLearning["default"], {
|
|
306
320
|
data: data
|
|
307
321
|
});
|
|
@@ -361,7 +375,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
361
375
|
};
|
|
362
376
|
|
|
363
377
|
if (window.util) {
|
|
364
|
-
if (window.titaTracker) {
|
|
378
|
+
if (feedType === _constant.EFeedType.Report && window.titaTracker) {
|
|
365
379
|
window.titaTracker('planAction').record({
|
|
366
380
|
actionName: '打开打赏弹层',
|
|
367
381
|
actionGroup: '动态-日报',
|
|
@@ -378,6 +392,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
378
392
|
|
|
379
393
|
var handleReply = function handleReply(_ref2) {
|
|
380
394
|
var submitType = _ref2.submitType;
|
|
395
|
+
if (feedType !== _constant.EFeedType.Report) return;
|
|
381
396
|
var actionName = submitType === 'delete' ? '删除日报评论' : '评论日报';
|
|
382
397
|
|
|
383
398
|
if (window.titaTracker) {
|
|
@@ -402,6 +417,12 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
402
417
|
}, [feedComments]);
|
|
403
418
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
404
419
|
className: prefix
|
|
420
|
+
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
421
|
+
condition: isFeedReport
|
|
422
|
+
}, /*#__PURE__*/_react["default"].createElement(_dynamicAiDialy["default"], {
|
|
423
|
+
data: data
|
|
424
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
425
|
+
condition: !isFeedReport
|
|
405
426
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
406
427
|
className: "".concat(prefix, "__content"),
|
|
407
428
|
ref: dynamicContentRef,
|
|
@@ -505,7 +526,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
505
526
|
onReplyChange: handleReply,
|
|
506
527
|
showUser: true,
|
|
507
528
|
showDefaultInput: true
|
|
508
|
-
}))));
|
|
529
|
+
})))));
|
|
509
530
|
};
|
|
510
531
|
|
|
511
532
|
var _default = DynamicItem;
|
|
@@ -11,8 +11,6 @@ var _rcQueueAnim = _interopRequireDefault(require("rc-queue-anim"));
|
|
|
11
11
|
|
|
12
12
|
var _dynamicItem = _interopRequireDefault(require("../dynamic-item"));
|
|
13
13
|
|
|
14
|
-
var _dynamicAiDialy = _interopRequireDefault(require("../dynamic-item/dynamic-ai-dialy"));
|
|
15
|
-
|
|
16
14
|
var _dynamicEmpty = _interopRequireDefault(require("../img/dynamic-empty.png"));
|
|
17
15
|
|
|
18
16
|
var _conditionRender = _interopRequireDefault(require("../../condition-render"));
|
|
@@ -21,12 +19,10 @@ var _getLocale = require("../../../utils/getLocale");
|
|
|
21
19
|
|
|
22
20
|
require("./index.css");
|
|
23
21
|
|
|
24
|
-
var _constant = require("../constant");
|
|
25
|
-
|
|
26
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
23
|
|
|
28
24
|
// @ts-ignore
|
|
29
|
-
var prefix =
|
|
25
|
+
var prefix = 'titaui-dynamic-list';
|
|
30
26
|
|
|
31
27
|
var DynamicList = function DynamicList(_ref) {
|
|
32
28
|
var data = _ref.data,
|
|
@@ -44,7 +40,7 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
44
40
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
45
41
|
className: prefix,
|
|
46
42
|
style: {
|
|
47
|
-
minHeight: height === -1 ?
|
|
43
|
+
minHeight: height === -1 ? 'auto' : height
|
|
48
44
|
}
|
|
49
45
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
50
46
|
condition: data.length === 0
|
|
@@ -56,7 +52,7 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
56
52
|
alt: ""
|
|
57
53
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
54
|
className: "".concat(prefix, "__empty-text")
|
|
59
|
-
}, (0, _getLocale.getLocale)(
|
|
55
|
+
}, (0, _getLocale.getLocale)('OKR_Noinformation')))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
60
56
|
condition: data.length !== 0
|
|
61
57
|
}, /*#__PURE__*/_react["default"].createElement(_rcQueueAnim["default"], {
|
|
62
58
|
type: "bottom",
|
|
@@ -65,17 +61,13 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
65
61
|
animConfig: [{
|
|
66
62
|
opacity: [1, 0]
|
|
67
63
|
}, {
|
|
68
|
-
display:
|
|
64
|
+
display: 'none'
|
|
69
65
|
}]
|
|
70
66
|
}, data.map(function (item) {
|
|
71
|
-
var _JSON$parse;
|
|
72
|
-
|
|
73
67
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
68
|
className: "".concat(prefix, "__item-wrapper"),
|
|
75
69
|
key: item.feedId
|
|
76
|
-
},
|
|
77
|
-
data: item
|
|
78
|
-
}) : /*#__PURE__*/_react["default"].createElement(_dynamicItem["default"], {
|
|
70
|
+
}, /*#__PURE__*/_react["default"].createElement(_dynamicItem["default"], {
|
|
79
71
|
data: item,
|
|
80
72
|
onDeleteFeed: handleDeleteFeed,
|
|
81
73
|
dynamicShareIsShowToping: dynamicShareIsShowToping
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -35,22 +35,25 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
35
35
|
|
|
36
36
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
37
|
|
|
38
|
-
var preCls =
|
|
38
|
+
var preCls = 'tita-okrdt-tree';
|
|
39
39
|
|
|
40
|
-
function
|
|
40
|
+
var EPriority = function EPriority(props) {
|
|
41
41
|
var onChange = props.onChange,
|
|
42
42
|
checked = props.checked,
|
|
43
43
|
hasAuth = props.hasAuth,
|
|
44
44
|
status = props.status;
|
|
45
45
|
|
|
46
|
-
var _useState = (0, _react.useState)(
|
|
46
|
+
var _useState = (0, _react.useState)('1'),
|
|
47
47
|
_useState2 = _slicedToArray(_useState, 2),
|
|
48
48
|
level = _useState2[0],
|
|
49
49
|
setLevel = _useState2[1];
|
|
50
50
|
|
|
51
51
|
var onMenuClickHandler = function onMenuClickHandler(name) {
|
|
52
52
|
setLevel(name);
|
|
53
|
-
|
|
53
|
+
|
|
54
|
+
if (onChange) {
|
|
55
|
+
onChange(name);
|
|
56
|
+
}
|
|
54
57
|
};
|
|
55
58
|
|
|
56
59
|
(0, _react.useEffect)(function () {
|
|
@@ -59,7 +62,7 @@ function _default(props) {
|
|
|
59
62
|
return /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
60
63
|
onChange: onMenuClickHandler,
|
|
61
64
|
checked: level,
|
|
62
|
-
canEdit: hasAuth && status !==
|
|
65
|
+
canEdit: hasAuth && status !== '5',
|
|
63
66
|
limitHeight: false,
|
|
64
67
|
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
68
|
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p").concat(level))
|
|
@@ -68,21 +71,24 @@ function _default(props) {
|
|
|
68
71
|
name: "1"
|
|
69
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
70
73
|
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p1 ").concat(preCls, "__e-task-node-select-priority"))
|
|
71
|
-
}), (0, _getLocale.getLocale)(
|
|
74
|
+
}), (0, _getLocale.getLocale)('OKR_MyO_E_Butt_Highest')), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
|
|
72
75
|
name: "2"
|
|
73
76
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
74
77
|
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p2 ").concat(preCls, "__e-task-node-select-priority"))
|
|
75
|
-
}), (0, _getLocale.getLocale)(
|
|
78
|
+
}), (0, _getLocale.getLocale)('OKR_MyO_E_Butt_High')), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
|
|
76
79
|
name: "3"
|
|
77
80
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
81
|
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p3 ").concat(preCls, "__e-task-node-select-priority"))
|
|
79
|
-
}), (0, _getLocale.getLocale)(
|
|
82
|
+
}), (0, _getLocale.getLocale)('OKR_MyO_E_Butt_Middle')), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
|
|
80
83
|
name: "4"
|
|
81
84
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
85
|
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p4 ").concat(preCls, "__e-task-node-select-priority"))
|
|
83
|
-
}), (0, _getLocale.getLocale)(
|
|
86
|
+
}), (0, _getLocale.getLocale)('OKR_MyO_E_Butt_Low')), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
|
|
84
87
|
name: "5"
|
|
85
88
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
89
|
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p5 ").concat(preCls, "__e-task-node-select-priority"))
|
|
87
|
-
}), (0, _getLocale.getLocale)(
|
|
88
|
-
}
|
|
90
|
+
}), (0, _getLocale.getLocale)('OKR_MyO_E_Butt_Verylow')));
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
var _default = EPriority;
|
|
94
|
+
exports["default"] = _default;
|
|
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
var _super = _createSuper(EReportList);
|
|
56
56
|
|
|
57
57
|
function EReportList() {
|
|
58
|
-
var
|
|
58
|
+
var _this;
|
|
59
59
|
|
|
60
60
|
_classCallCheck(this, EReportList);
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
63
63
|
args[_key] = arguments[_key];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
return _possibleConstructorReturn(_this, (
|
|
66
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
|
|
67
67
|
selectedPeriodValue: "",
|
|
68
68
|
showDatePick: false,
|
|
69
69
|
eReportWeekList: [],
|
|
@@ -176,7 +176,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
|
|
|
176
176
|
return _this.handlerEReportShareSubmit(submitStatus);
|
|
177
177
|
}
|
|
178
178
|
})));
|
|
179
|
-
},
|
|
179
|
+
}, _assertThisInitialized(_this)));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
_createClass(EReportList, [{
|