@titaui/pc 1.11.4-1 → 1.11.4-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/rect-btn/index.js +7 -7
- package/lib/components/change-okr-modal/Item.js +15 -15
- package/lib/components/communication/index.js +30 -29
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/dynamic/constant.js +13 -6
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +22 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/index.js +34 -13
- package/lib/components/dynamic/dynamic-list/index.js +5 -13
- package/lib/components/e-priority/index.js +18 -12
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +11 -11
- package/lib/components/form/form-fields/date/index.js +15 -11
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +22 -2
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/icon-button-list/index.css +2 -57
- package/lib/components/icon-button-list/index.js +10 -7
- package/lib/components/img-viewer/index.css +10 -3
- package/lib/components/img-viewer/index.js +57 -18
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/index.js +31 -30
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/detail-header/actions.js +62 -66
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +205 -194
- package/lib/components/okr-detail/index.js +21 -19
- package/lib/components/okr-flow/child-node/index.css +67 -21
- package/lib/components/okr-flow/child-node/work-node.js +61 -24
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +42 -18
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +43 -22
- package/lib/components/okr-flow/request-apis.js +15 -8
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/root-node/index.js +26 -25
- package/lib/components/okr-flow/utils/index.js +45 -29
- package/lib/components/okr-flow/utils/tree-handler.js +29 -18
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okrcase-library/index.css +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +9 -3
- package/lib/components/period-selector/index.js +14 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
- package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
- package/lib/components/picker/components/picker-trigger/index.css +15 -0
- package/lib/components/picker/components/picker-trigger/index.js +8 -8
- package/lib/components/popup/index.js +4 -4
- package/lib/components/radio/index.css +9 -9
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/scroll-container/index.js +423 -0
- package/lib/components/scroll-container/style.css +35 -0
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/components/chart/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -13
- package/{es/pages/group-management/page-view/group-empty.js → lib/components/survey-model/contact.js} +54 -27
- package/lib/components/survey-model/index.css +141 -0
- package/lib/components/survey-model/index.js +265 -0
- package/lib/components/survey-model/instance.js +86 -0
- package/lib/components/survey-model/request-api.js +80 -0
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +63 -51
- package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +13 -13
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +138 -124
- package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
- package/lib/components/time-picker/index.css +6 -0
- package/lib/components/time-picker/time-picker.js +27 -27
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components/wechat-btn/index.css +14 -0
- package/lib/components/wechat-btn/index.js +338 -0
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +99 -91
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
- package/lib/pages/okr-map/number-select/index.css +12 -9
- package/lib/pages/okr-map/number-select/index.js +3 -3
- package/lib/utils/auth.js +65 -8
- package/lib/utils/bs-global.js +18 -6
- package/lib/utils/open-data.js +63 -43
- package/package.json +6 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/es/components/cascader/time.js +0 -31
- package/es/components/common-share/request-apis.js +0 -56
- package/es/components/confidence/heart.js +0 -66
- package/es/components/create-okr-modal/fields/index.js +0 -17
- package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
- package/es/components/date-picker/BodyItem.js +0 -121
- package/es/components/date-picker/CalendarBody.js +0 -157
- package/es/components/date-picker/CalendarHeader.js +0 -187
- package/es/components/date-picker/index.js +0 -157
- package/es/components/date-range-picker/index.js +0 -210
- package/es/components/dialog/index.js +0 -119
- package/es/components/dialog-confirm/index.js +0 -154
- package/es/components/drop-selector/icon-item.js +0 -40
- package/es/components/drop-selector/index.js +0 -179
- package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/es/components/dynamic/dynamic-liking/mock.js +0 -83
- package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/es/components/e-priority/index.js +0 -88
- package/es/components/grid-layout/commen-components/index.js +0 -73
- package/es/components/grid-layout/image/could.js +0 -8
- package/es/components/grid-layout/image/lv.js +0 -8
- package/es/components/grid-layout/image/tita-mask.js +0 -8
- package/es/components/help-card/request-api.js +0 -35
- package/es/components/icon-button-list/index.js +0 -65
- package/es/components/menus/context.js +0 -18
- package/es/components/menus/precls.js +0 -8
- package/es/components/okr-detail/auth.js +0 -197
- package/es/components/okr-detail/components/ao-nice/index.js +0 -245
- package/es/components/okr-detail/components/block-line/index.js +0 -20
- package/es/components/okr-detail/components/header/index.js +0 -211
- package/es/components/okr-detail/components/icon-text/index.js +0 -116
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
- package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
- package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
- package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
- package/es/components/okr-detail/components/padding-layout.js +0 -22
- package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
- package/es/components/okr-detail/context.js +0 -30
- package/es/components/okr-detail/e-list/index.js +0 -243
- package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
- package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
- package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
- package/es/components/okr-detail/e-list/search-form/index.js +0 -143
- package/es/components/okr-detail/error-page/index.js +0 -33
- package/es/components/okr-detail/index.js +0 -428
- package/es/components/okr-detail/loading/index.js +0 -28
- package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
- package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
- package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
- package/es/components/okr-detail/okr-list/empty/index.js +0 -48
- package/es/components/okr-detail/okr-list/index.js +0 -524
- package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
- package/es/components/okr-detail/store.js +0 -1
- package/es/components/okr-flow/child-node/fields/creator.js +0 -175
- package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
- package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
- package/es/components/okr-flow/child-node/helper.js +0 -35
- package/es/components/okr-flow/child-node/index.js +0 -110
- package/es/components/okr-flow/child-node/kr-node.js +0 -75
- package/es/components/okr-flow/child-node/work-node.js +0 -242
- package/es/components/okr-flow/context.js +0 -14
- package/es/components/okr-flow/empty/index.js +0 -29
- package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
- package/es/components/okr-flow/index.js +0 -24
- package/es/components/okr-flow/mini-map/index.js +0 -112
- package/es/components/okr-flow/mini-map/map.js +0 -145
- package/es/components/okr-flow/mini-map/mini-node.js +0 -57
- package/es/components/okr-flow/mini-map/utils.js +0 -79
- package/es/components/okr-flow/okr-map/index.js +0 -192
- package/es/components/okr-flow/open-data/index.js +0 -115
- package/es/components/okr-flow/precls.js +0 -8
- package/es/components/okr-flow/request-apis.js +0 -118
- package/es/components/okr-flow/root-node/index.js +0 -229
- package/es/components/okr-flow/utils/config.js +0 -18
- package/es/components/okr-flow/utils/helper.js +0 -36
- package/es/components/okr-flow/utils/index.js +0 -66
- package/es/components/okr-flow/utils/tree-handler.js +0 -323
- package/es/components/okr-progress-modal/helper.js +0 -156
- package/es/components/okr-progress-modal/request-apis.js +0 -34
- package/es/components/okr-share/request-apis.js +0 -56
- package/es/components/okrcase-library/server/network.js +0 -407
- package/es/components/pagination/locale/en_US.js +0 -22
- package/es/components/pagination/locale/zh_CN.js +0 -22
- package/es/components/point-demo/drop-down-box/index.js +0 -159
- package/es/components/point-demo/index.js +0 -533
- package/es/components/point-demo/input/index.js +0 -176
- package/es/components/point-demo/point-demo.js +0 -75
- package/es/components/point-demo/popup/index.js +0 -113
- package/es/components/point-demo/popup/placement.js +0 -44
- package/es/components/range-picker-pop/index.js +0 -273
- package/es/components/scrollbar/simplebar/helpers.js +0 -59
- package/es/components/scrollbar/simplebar/index.js +0 -91
- package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
- package/es/components/scrollbar/simplebar/simplebar.js +0 -852
- package/es/components/scrollbar/simplebar-react.js +0 -163
- package/es/components/search-dropdown/index.js +0 -40
- package/es/components/search-input/index.js +0 -126
- package/es/components/select/Option.js +0 -94
- package/es/components/select/index.js +0 -330
- package/es/components/selector-input/debounce.js +0 -36
- package/es/components/selector-input/index.js +0 -109
- package/es/components/slider-input/index.js +0 -119
- package/es/components/switch/index.js +0 -39
- package/es/components/table/index.js +0 -275
- package/es/components/tabs/index.js +0 -63
- package/es/components/task-relation-modal/tree-node/index.js +0 -58
- package/es/components/tita-chart/charts/img/could.js +0 -8
- package/es/components/tooltip/error-tip.js +0 -24
- package/es/components/tooltip/index.js +0 -21
- package/es/components/tree/index.js +0 -79
- package/es/components/tree/precls.js +0 -8
- package/es/components/upvote/request-apis.js +0 -45
- package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/es/components/user-selector/action-btns/btn-ok.js +0 -21
- package/es/components/user-selector/action-btns/index.js +0 -27
- package/es/components/user-selector/context.js +0 -18
- package/es/components/user-selector/empty/group.js +0 -55
- package/es/components/user-selector/empty/index.js +0 -28
- package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
- package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
- package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
- package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
- package/es/components/user-selector/index.js +0 -25
- package/es/components/user-selector/layout/index.js +0 -25
- package/es/components/user-selector/loading/index.js +0 -18
- package/es/components/user-selector/request-apis.js +0 -180
- package/es/components/user-selector/searched-panel/index.js +0 -139
- package/es/components/user-selector/searched-panel/result-part.js +0 -43
- package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
- package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
- package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
- package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
- package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
- package/es/components/user-selector/utils.js +0 -139
- package/es/components/viewer/ImageListRender.js +0 -143
- package/es/components/viewer/index.js +0 -168
- package/es/components/word-cloud/index.js +0 -109
- package/es/components/word-cloud/request-apis.js +0 -26
- package/es/components-v1/animate/AnimateChild.js +0 -76
- package/es/components-v1/animate/animate.js +0 -148
- package/es/components-v1/animate/index.js +0 -13
- package/es/components-v1/dom/index.js +0 -30
- package/es/components-v1/placement/index.js +0 -13
- package/es/components-v1/placement/placement.js +0 -111
- package/es/components-v1/placement/placementInner.js +0 -139
- package/es/components-v1/pop/Pop.js +0 -246
- package/es/components-v1/pop/PopInner.js +0 -163
- package/es/components-v1/pop/index.js +0 -13
- package/es/components-v1/progress/CircleProgress.js +0 -152
- package/es/components-v1/progress/LineProgress.js +0 -83
- package/es/components-v1/progress/index.js +0 -80
- package/es/components-v1/select/Option.js +0 -94
- package/es/components-v1/select/index.js +0 -330
- package/es/components-v1/utils/animate/animate.js +0 -103
- package/es/components-v1/utils/animate/event.js +0 -79
- package/es/components-v1/utils/dom/index.js +0 -30
- package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
- package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
- package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
- package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
- package/es/components-v1/utils/placement/placement.js +0 -76
- package/es/index.js +0 -777
- package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
- package/es/pages/appointment-demo/index.js +0 -649
- package/es/pages/appointment-demo/input/index.js +0 -176
- package/es/pages/appointment-demo/popup/index.js +0 -113
- package/es/pages/appointment-demo/popup/placement.js +0 -44
- package/es/pages/group-management/components/checkbox/index.js +0 -28
- package/es/pages/group-management/components/input-form/index.js +0 -174
- package/es/pages/group-management/components/radio/index.js +0 -21
- package/es/pages/group-management/components/table/index.js +0 -174
- package/es/pages/group-management/groupInterface.js +0 -293
- package/es/pages/group-management/index.js +0 -13
- package/es/pages/group-management/page-view/empty.js +0 -111
- package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
- package/es/pages/group-management/page-view/index.js +0 -412
- package/es/pages/group-management/table/index.js +0 -104
- package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
- package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
- package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
- package/es/pages/group-management/tree/group-form/index.js +0 -207
- package/es/pages/group-management/tree/index.js +0 -168
- package/es/pages/group-management/tree/operation-panel.js +0 -41
- package/es/pages/group-management/tree/trigger-render.js +0 -99
- package/es/pages/like-ranking/mock.js +0 -366
- package/es/pages/okr-map/export-modules/index.js +0 -1
- package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
- package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
- package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
- package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
- package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
- package/es/pages/okr-map/hooks/useStorage.js +0 -96
- package/es/pages/okr-map/index.js +0 -18
- package/es/pages/okr-map/level2-search/depart.js +0 -53
- package/es/pages/okr-map/level2-search/group.js +0 -69
- package/es/pages/okr-map/level2-search/index.js +0 -51
- package/es/pages/okr-map/level2-search/level2-input.js +0 -46
- package/es/pages/okr-map/level2-search/user.js +0 -54
- package/es/pages/okr-map/no-okr/index.js +0 -24
- package/es/pages/okr-map/number-select/index.js +0 -81
- package/es/pages/okr-map/open-data/index.js +0 -115
- package/es/pages/okr-map/precls.js +0 -8
- package/es/pages/okr-map/request-apis.js +0 -76
- package/es/pages/okr-map/share-dialog/index.js +0 -122
- package/es/pages/okr-map/unsupport-ie/index.js +0 -83
- package/es/pages/okr-map/utils.js +0 -51
- package/es/utils/auth.js +0 -294
- package/es/utils/bs-global.js +0 -114
- package/es/utils/local-storage.js +0 -42
- package/es/utils/mblog.js +0 -33
- package/es/utils/mock-bsglobal.js +0 -1837
- package/es/utils/open-data.js +0 -341
- package/es/utils/request-v1.js +0 -115
- package/es/utils/request.js +0 -183
- package/es/utils/tools.js +0 -286
- package/yarn-error.log +0 -21252
|
@@ -17,6 +17,8 @@ var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
|
17
17
|
|
|
18
18
|
var _userSelector = _interopRequireDefault(require("../../user-selector"));
|
|
19
19
|
|
|
20
|
+
var _default2 = _interopRequireDefault(require("../default"));
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -56,7 +58,11 @@ function TextAvatar(props) {
|
|
|
56
58
|
_props$nameTips = props.nameTips,
|
|
57
59
|
nameTips = _props$nameTips === void 0 ? function (name) {
|
|
58
60
|
return name;
|
|
59
|
-
} : _props$nameTips
|
|
61
|
+
} : _props$nameTips,
|
|
62
|
+
_props$showAvatar = props.showAvatar,
|
|
63
|
+
showAvatar = _props$showAvatar === void 0 ? false : _props$showAvatar,
|
|
64
|
+
_props$avatar = props.avatar,
|
|
65
|
+
avatar = _props$avatar === void 0 ? {} : _props$avatar;
|
|
60
66
|
|
|
61
67
|
var _useState = (0, _react.useState)(false),
|
|
62
68
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -78,6 +84,29 @@ function TextAvatar(props) {
|
|
|
78
84
|
|
|
79
85
|
|
|
80
86
|
var FieldPerson = editable ? _userSelector["default"] : "span";
|
|
87
|
+
|
|
88
|
+
var renderAvatar = function renderAvatar() {
|
|
89
|
+
if (showAvatar) {
|
|
90
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
|
+
className: "".concat(preCls, "__img")
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
93
|
+
userId: id,
|
|
94
|
+
src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium : "",
|
|
95
|
+
color: avatar === null || avatar === void 0 ? void 0 : avatar.color,
|
|
96
|
+
name: name,
|
|
97
|
+
size: {
|
|
98
|
+
fontSize: 12,
|
|
99
|
+
width: 24,
|
|
100
|
+
textNum: 1
|
|
101
|
+
}
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
+
className: "".concat(preCls, "__icon")
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
81
110
|
return /*#__PURE__*/_react["default"].createElement(FieldPerson, {
|
|
82
111
|
multiple: false,
|
|
83
112
|
selectNodes: {},
|
|
@@ -105,9 +134,7 @@ function TextAvatar(props) {
|
|
|
105
134
|
style: {
|
|
106
135
|
maxWidth: width
|
|
107
136
|
}
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
|
-
className: "".concat(preCls, "__icon")
|
|
110
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
+
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
138
|
ref: text,
|
|
112
139
|
className: "".concat(preCls, "__name")
|
|
113
140
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
@@ -118,9 +145,7 @@ function TextAvatar(props) {
|
|
|
118
145
|
style: {
|
|
119
146
|
maxWidth: width
|
|
120
147
|
}
|
|
121
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
|
-
className: "".concat(preCls, "__icon")
|
|
123
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
148
|
+
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
124
149
|
ref: text,
|
|
125
150
|
className: "".concat(preCls, "__name")
|
|
126
151
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
@@ -17,27 +17,27 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
-
var precls =
|
|
20
|
+
var precls = 'titaui-rect-btn';
|
|
21
21
|
|
|
22
22
|
function RectBtn(props) {
|
|
23
23
|
var _props$type = props.type,
|
|
24
|
-
type = _props$type === void 0 ?
|
|
24
|
+
type = _props$type === void 0 ? 'default' : _props$type,
|
|
25
25
|
_props$icon = props.icon,
|
|
26
|
-
icon = _props$icon === void 0 ?
|
|
26
|
+
icon = _props$icon === void 0 ? '' : _props$icon,
|
|
27
27
|
_props$text = props.text,
|
|
28
|
-
text = _props$text === void 0 ? (0, _getLocale.getLocale)(
|
|
28
|
+
text = _props$text === void 0 ? (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine') : _props$text,
|
|
29
29
|
_props$size = props.size,
|
|
30
|
-
size = _props$size === void 0 ?
|
|
30
|
+
size = _props$size === void 0 ? 'normal' : _props$size,
|
|
31
31
|
_props$onClick = props.onClick,
|
|
32
32
|
onClick = _props$onClick === void 0 ? function () {} : _props$onClick,
|
|
33
33
|
_props$className = props.className,
|
|
34
|
-
className = _props$className === void 0 ?
|
|
34
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
35
35
|
_props$disabled = props.disabled,
|
|
36
36
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
37
37
|
style = props.style;
|
|
38
38
|
|
|
39
39
|
var renderIcon = function renderIcon() {
|
|
40
|
-
if (typeof icon ===
|
|
40
|
+
if (typeof icon === 'string') {
|
|
41
41
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
42
42
|
className: "".concat(precls, "__icon")
|
|
43
43
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -54,27 +54,27 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
54
54
|
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; }
|
|
55
55
|
|
|
56
56
|
var colorMap = {
|
|
57
|
-
1:
|
|
58
|
-
2:
|
|
59
|
-
3:
|
|
60
|
-
4:
|
|
57
|
+
1: '132,117,255',
|
|
58
|
+
2: '79,115,255',
|
|
59
|
+
3: '46,156,255',
|
|
60
|
+
4: '12,192,201'
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var formatKeywordsFunc = function formatKeywordsFunc(str, key) {
|
|
64
|
-
var reg = new RegExp("(".concat(key, ")"),
|
|
64
|
+
var reg = new RegExp("(".concat(key, ")"), 'g');
|
|
65
65
|
var newstr = str.replace(reg, "<span style=\"color: #2879ff;\">".concat(key, "</span>"));
|
|
66
66
|
return newstr;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
var unFormatKeywordsFunc = function unFormatKeywordsFunc(str, key) {
|
|
70
70
|
var regExpKey = "<span style=\"color: #2879ff;\">".concat(key, "</span>");
|
|
71
|
-
var reg = new RegExp("(".concat(regExpKey, ")"),
|
|
71
|
+
var reg = new RegExp("(".concat(regExpKey, ")"), 'g');
|
|
72
72
|
var newstr = str.replace(reg, key);
|
|
73
73
|
return newstr;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
var htmlToText = function htmlToText(text) {
|
|
77
|
-
var div = document.createElement(
|
|
77
|
+
var div = document.createElement('div');
|
|
78
78
|
div.innerHTML = text;
|
|
79
79
|
var newtext = div.innerText || div.textContent;
|
|
80
80
|
return newtext;
|
|
@@ -153,11 +153,11 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
153
153
|
|
|
154
154
|
_this.getCycleText = function () {
|
|
155
155
|
var data = _this.props.data;
|
|
156
|
-
var hzNum = [(0, _getLocale.getLocale)(
|
|
156
|
+
var hzNum = [(0, _getLocale.getLocale)('OKR_MyO_Pop_1stQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_2ndQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_3rdQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_4thQuarter')];
|
|
157
157
|
|
|
158
158
|
switch (data.cycleType) {
|
|
159
159
|
case 1:
|
|
160
|
-
return "".concat(data.annualNum).concat(_getLocale.isEn ?
|
|
160
|
+
return "".concat(data.annualNum).concat(_getLocale.isEn ? '' : '年');
|
|
161
161
|
|
|
162
162
|
case 2:
|
|
163
163
|
return hzNum[data.yqmnum - 1];
|
|
@@ -166,13 +166,13 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
166
166
|
return (0, _constant2.getMonth)()[data.yqmnum - 1];
|
|
167
167
|
|
|
168
168
|
case 4:
|
|
169
|
-
return "".concat((0, _constant2.getMonth)()[data.yqmnum - 1], "-").concat((0, _constant2.getMonth)()[((data.yqmnum + 1) % 12 || 12) - 1]
|
|
169
|
+
return "".concat((0, _constant2.getMonth)()[data.yqmnum - 1], "-").concat((0, _constant2.getMonth)()[((data.yqmnum + 1) % 12 || 12) - 1]);
|
|
170
170
|
|
|
171
171
|
case 5:
|
|
172
|
-
return data.yqmnum === 1 ? (0, _getLocale.getLocale)(
|
|
172
|
+
return data.yqmnum === 1 ? (0, _getLocale.getLocale)('OKR_MyO_Pop_Firsthalf') : (0, _getLocale.getLocale)('OKR_MyO_Pop_Secondhalf');
|
|
173
173
|
|
|
174
174
|
default:
|
|
175
|
-
return (0, _getLocale.getLocale)(
|
|
175
|
+
return (0, _getLocale.getLocale)('Mod_Customization');
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
|
|
@@ -230,7 +230,7 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
230
230
|
}))));
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
return
|
|
233
|
+
return '';
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -290,12 +290,12 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
290
290
|
__html: okrData.workName
|
|
291
291
|
}
|
|
292
292
|
}))), this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
293
|
-
className: "".concat(isExpand ?
|
|
293
|
+
className: "".concat(isExpand ? 'tu-icon-arrow-up' : 'tu-icon-arrow-down')
|
|
294
294
|
})), /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemBottom, null, !isShowKr && [/*#__PURE__*/_react["default"].createElement("span", null, (0, _constant.getTypeMap)()[data.okrType]), /*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null)], /*#__PURE__*/_react["default"].createElement(_styledComponents.PricipleName, null, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
295
295
|
name: data.principalUser.name,
|
|
296
296
|
id: data.principalUser.userId
|
|
297
297
|
})), /*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null), /*#__PURE__*/_react["default"].createElement("span", null, data.startDate, "-", data.endDate), isShowKr && [/*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null), /*#__PURE__*/_react["default"].createElement("span", null, data.statusName)])), isShowKr && (this.isObjectiveRelevanceKr || !this.isObjectiveRelevanceKr && okrData.hasSub) && /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemKrContainer, {
|
|
298
|
-
className: "".concat(isExpand ?
|
|
298
|
+
className: "".concat(isExpand ? 'slideIn' : 'slideOut')
|
|
299
299
|
}, this.renderItemKr()));
|
|
300
300
|
}
|
|
301
301
|
}]);
|
|
@@ -71,7 +71,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
71
71
|
|
|
72
72
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
73
73
|
|
|
74
|
-
var prefix =
|
|
74
|
+
var prefix = 'titaui-communication';
|
|
75
75
|
|
|
76
76
|
var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
77
77
|
_inherits(Communication, _PureComponent);
|
|
@@ -90,14 +90,14 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
90
|
commentType = _this$props.commentType,
|
|
91
91
|
okrFeedParams = _this$props.okrFeedParams;
|
|
92
92
|
var url = commentType == 1 ? (0, _requestV.getApiUrl2)("comment/Get?feed_id=".concat(feedId, "&comment_type=0")) : (0, _requestV.getApiUrl)("okr/cycle/getFeed?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum, "&commentCount=").concat(commentCount));
|
|
93
|
-
(0, _requestV.taker)(url,
|
|
93
|
+
(0, _requestV.taker)(url, 'GET').then(function (res) {
|
|
94
94
|
if (res.Code === 1) {
|
|
95
95
|
var data = res.Data && (res.Data.feedComments || res.Data);
|
|
96
96
|
|
|
97
97
|
_this.setState({
|
|
98
98
|
communicationTrackList: data.comments ? data.comments : [],
|
|
99
99
|
communicationTrackTotal: data.total,
|
|
100
|
-
okrCommentFeedId: commentType === 2 ? res.Data.feedId :
|
|
100
|
+
okrCommentFeedId: commentType === 2 ? res.Data.feedId : ''
|
|
101
101
|
});
|
|
102
102
|
} else {
|
|
103
103
|
_this.setState({
|
|
@@ -137,10 +137,10 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
137
137
|
|
|
138
138
|
var communicationTrackList = _toConsumableArray(_this.state.communicationTrackList);
|
|
139
139
|
|
|
140
|
-
if (actionType ===
|
|
140
|
+
if (actionType === 'delete') {
|
|
141
141
|
// 删除
|
|
142
142
|
var url = (0, _requestV.getApiUrl2)("comment/Delete?comment_id=".concat(communicationTrackList[index].commentId, "&feed_id=").concat(feedId || _this.state.okrCommentFeedId));
|
|
143
|
-
(0, _requestV.taker)(url,
|
|
143
|
+
(0, _requestV.taker)(url, 'DELETE').then(function (res) {
|
|
144
144
|
if (res.Code === 1) {
|
|
145
145
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal - 1) : _this.getFeedInfo(feedId, commentCount);
|
|
146
146
|
|
|
@@ -151,7 +151,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
} else if (actionType ===
|
|
154
|
+
} else if (actionType === 'reply') {
|
|
155
155
|
// 沟通里的回复
|
|
156
156
|
if (_this.props.useCustomMblog && _this.props.onComment) {
|
|
157
157
|
_this.props.onComment({
|
|
@@ -178,7 +178,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
178
178
|
isShowDefaultInput: false,
|
|
179
179
|
needAutoFocus: true
|
|
180
180
|
});
|
|
181
|
-
} else if (actionType ===
|
|
181
|
+
} else if (actionType === 'praise') {
|
|
182
182
|
// 沟通里的点赞
|
|
183
183
|
var isPraise = communicationTrackList[index].isPraise;
|
|
184
184
|
isPraise = !isPraise;
|
|
@@ -189,7 +189,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
189
189
|
|
|
190
190
|
var _url = isPraise ? (0, _requestV.getApiUrl)("praise/add?objId=".concat(communicationTrackList[index].commentId, "&objType=19&praiseType=1")) : (0, _requestV.getApiUrl)("praise/cancel?objId=".concat(communicationTrackList[index].commentId, "&objType=19"));
|
|
191
191
|
|
|
192
|
-
(0, _requestV.taker)(_url,
|
|
192
|
+
(0, _requestV.taker)(_url, 'POST').then(function (res) {
|
|
193
193
|
if (res.Code === 1) {
|
|
194
194
|
var praiseTotal = communicationTrackList[index].praiseTotal;
|
|
195
195
|
communicationTrackList[index].isPraise = isPraise;
|
|
@@ -205,7 +205,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
} else if (actionType ===
|
|
208
|
+
} else if (actionType === 'showPraiseRecord') {
|
|
209
209
|
// 显示点赞记录
|
|
210
210
|
_this.setState({
|
|
211
211
|
isShowPraiseRecordPop: true,
|
|
@@ -241,13 +241,13 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
241
241
|
communicationTrackTotal = _this$state3.communicationTrackTotal,
|
|
242
242
|
isShowAllCommunicationRecord = _this$state3.isShowAllCommunicationRecord;
|
|
243
243
|
|
|
244
|
-
if (submitType ===
|
|
244
|
+
if (submitType === 'submit') {
|
|
245
245
|
// 发送
|
|
246
246
|
sentData.FeedId = feedId;
|
|
247
247
|
sentData.CommentId = 0;
|
|
248
248
|
sentData.ObjId = 0;
|
|
249
249
|
sentData.ObjType = 0;
|
|
250
|
-
sentData.Content = sentData.Content ||
|
|
250
|
+
sentData.Content = sentData.Content || ' ';
|
|
251
251
|
|
|
252
252
|
if (isShowReplyToUser) {
|
|
253
253
|
sentData.CommentId = replyUserCommentId;
|
|
@@ -257,8 +257,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
257
257
|
submitStatus: 2
|
|
258
258
|
});
|
|
259
259
|
|
|
260
|
-
var url = commentType === 1 ? (0, _requestV.getApiUrl2)(
|
|
261
|
-
(0, _requestV.taker)(url,
|
|
260
|
+
var url = commentType === 1 ? (0, _requestV.getApiUrl2)('comment/Add') : (0, _requestV.getApiUrl)("okr/cycle/addComment?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum));
|
|
261
|
+
(0, _requestV.taker)(url, 'POST', sentData).then(function (res) {
|
|
262
262
|
if (res.Code === 1) {
|
|
263
263
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal + 1) : _this.getFeedInfo(feedId, commentCount);
|
|
264
264
|
|
|
@@ -313,17 +313,17 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
313
313
|
isShowAllCommunicationRecord: false,
|
|
314
314
|
// 是否显示所有记录
|
|
315
315
|
// 回复
|
|
316
|
-
replyUser:
|
|
317
|
-
replyUserId:
|
|
318
|
-
replyUserCommentId:
|
|
316
|
+
replyUser: '',
|
|
317
|
+
replyUserId: '',
|
|
318
|
+
replyUserCommentId: '0',
|
|
319
319
|
isShowReplyToUser: false,
|
|
320
320
|
// 是否显示回复谁
|
|
321
321
|
submitStatus: 0,
|
|
322
322
|
praiseStatus: 0,
|
|
323
323
|
// 点赞记录
|
|
324
|
-
praiseObjId:
|
|
324
|
+
praiseObjId: '',
|
|
325
325
|
isShowPraiseRecordPop: false,
|
|
326
|
-
okrCommentFeedId:
|
|
326
|
+
okrCommentFeedId: '',
|
|
327
327
|
isShowDefaultInput: showDefaultInput && communicationLength !== 0 ? true : false,
|
|
328
328
|
needAutoFocus: false
|
|
329
329
|
};
|
|
@@ -389,9 +389,9 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
389
389
|
commentCount = _this$props7.commentCount,
|
|
390
390
|
useCustomMblog = _this$props7.useCustomMblog,
|
|
391
391
|
_this$props7$submitTe = _this$props7.submitText,
|
|
392
|
-
submitText = _this$props7$submitTe === void 0 ? (0, _getLocale.getLocale)(
|
|
392
|
+
submitText = _this$props7$submitTe === void 0 ? (0, _getLocale.getLocale)('Mod_Reply') : _this$props7$submitTe,
|
|
393
393
|
_this$props7$highLigh = _this$props7.highLightKeyWord,
|
|
394
|
-
highLightKeyWord = _this$props7$highLigh === void 0 ?
|
|
394
|
+
highLightKeyWord = _this$props7$highLigh === void 0 ? '' : _this$props7$highLigh,
|
|
395
395
|
_this$props7$autoFocu = _this$props7.autoFocus,
|
|
396
396
|
autoFocus = _this$props7$autoFocu === void 0 ? false : _this$props7$autoFocu,
|
|
397
397
|
_this$props7$showUser = _this$props7.showUser,
|
|
@@ -404,10 +404,10 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
404
404
|
onMouseDown: function onMouseDown() {
|
|
405
405
|
return _this2.handlerSwitchShowRecord();
|
|
406
406
|
}
|
|
407
|
-
}, (0, _getLocale.getLocale)(
|
|
407
|
+
}, (0, _getLocale.getLocale)('Mod_Allcommu'), "\xA0", /*#__PURE__*/_react["default"].createElement("span", null, communicationTrackTotal), communicationTrackTotal > commentCount && /*#__PURE__*/_react["default"].createElement("i", {
|
|
408
408
|
className: (0, _classnames["default"])("".concat(prefix, "__communication-total-icon"), {
|
|
409
|
-
|
|
410
|
-
|
|
409
|
+
'tu-icon-APP-xi': !isShowAllCommunicationRecord,
|
|
410
|
+
'tu-icon-arrow-down1': isShowAllCommunicationRecord
|
|
411
411
|
})
|
|
412
412
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
413
413
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefix, "__communication-list"), communicationTrackList.length > 0))
|
|
@@ -432,12 +432,12 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
432
432
|
}))), !useCustomMblog && /*#__PURE__*/_react["default"].createElement("div", {
|
|
433
433
|
className: "".concat(prefix, "__reply-container")
|
|
434
434
|
}, isShowReplyToUser && /*#__PURE__*/_react["default"].createElement(_style.ReplyToUser, {
|
|
435
|
-
height: isShowReplyToUser ?
|
|
436
|
-
padding: isShowReplyToUser ?
|
|
435
|
+
height: isShowReplyToUser ? 'auto' : '0',
|
|
436
|
+
padding: isShowReplyToUser ? '4px 0' : '0',
|
|
437
437
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefix, "__reply-container--show-user"), showUser))
|
|
438
438
|
}, /*#__PURE__*/_react["default"].createElement(_style.ReplyUser, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
439
439
|
className: "".concat(prefix, "__reply-container-text")
|
|
440
|
-
}, (0, _getLocale.getLocale)(
|
|
440
|
+
}, (0, _getLocale.getLocale)('Mod_Reply')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
441
441
|
className: "name"
|
|
442
442
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
443
443
|
name: replyUser,
|
|
@@ -457,14 +457,15 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
457
457
|
},
|
|
458
458
|
name: user.Name,
|
|
459
459
|
color: user.UserAvatar.Color,
|
|
460
|
-
src: user.UserAvatar.Medium
|
|
460
|
+
src: user.UserAvatar.Medium,
|
|
461
|
+
userId: user.Id
|
|
461
462
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
462
463
|
onClick: this.handleShowMblog,
|
|
463
464
|
className: "".concat(prefix, "__reply-default-input-text")
|
|
464
465
|
}, "\u8F93\u5165\u6C9F\u901A\u5185\u5BB9")), !isShowDefaultInput && /*#__PURE__*/_react["default"].createElement(_mblog["default"], {
|
|
465
466
|
setTextareaRef: setTextareaRef || function () {},
|
|
466
467
|
isHasPlaceholder: true,
|
|
467
|
-
placeholderText: (0, _getLocale.getLocale)(
|
|
468
|
+
placeholderText: (0, _getLocale.getLocale)('Mod_contentofyour'),
|
|
468
469
|
isShowRange: false,
|
|
469
470
|
isShowBtnCancel: false,
|
|
470
471
|
isShowSendSms: isShowSendSms,
|
|
@@ -486,7 +487,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
486
487
|
onSubmit: function onSubmit() {
|
|
487
488
|
return _this2.setState({
|
|
488
489
|
isShowPraiseRecordPop: false,
|
|
489
|
-
praiseObjId:
|
|
490
|
+
praiseObjId: ''
|
|
490
491
|
});
|
|
491
492
|
}
|
|
492
493
|
}));
|
|
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
var _super = _createSuper(BodyItem);
|
|
48
48
|
|
|
49
49
|
function BodyItem() {
|
|
50
|
-
var
|
|
50
|
+
var _this;
|
|
51
51
|
|
|
52
52
|
_classCallCheck(this, BodyItem);
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
args[_key] = arguments[_key];
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
return _possibleConstructorReturn(_this, (
|
|
58
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
59
|
var _this$props = _this.props,
|
|
60
60
|
isAllowSelect = _this$props.isAllowSelect,
|
|
61
61
|
date = _this$props.date,
|
|
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
|
|
|
86
86
|
if (_this.disabled) return;
|
|
87
87
|
|
|
88
88
|
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
},
|
|
89
|
+
}, _assertThisInitialized(_this)));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
_createClass(BodyItem, [{
|
|
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
var _super = _createSuper(CalendarHeader);
|
|
88
88
|
|
|
89
89
|
function CalendarHeader() {
|
|
90
|
-
var
|
|
90
|
+
var _this;
|
|
91
91
|
|
|
92
92
|
_classCallCheck(this, CalendarHeader);
|
|
93
93
|
|
|
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
args[_key] = arguments[_key];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
return _possibleConstructorReturn(_this, (
|
|
98
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
|
|
99
99
|
var date = (0, _moment["default"])(_this.props.date);
|
|
100
100
|
|
|
101
101
|
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
return years;
|
|
116
|
-
},
|
|
116
|
+
}, _assertThisInitialized(_this)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
_createClass(CalendarHeader, [{
|
|
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
49
49
|
var _super = _createSuper(ConfirmPop);
|
|
50
50
|
|
|
51
51
|
function ConfirmPop() {
|
|
52
|
-
var
|
|
52
|
+
var _this;
|
|
53
53
|
|
|
54
54
|
_classCallCheck(this, ConfirmPop);
|
|
55
55
|
|
|
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
args[_key] = arguments[_key];
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
return _possibleConstructorReturn(_this, (
|
|
60
|
+
return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
|
|
61
61
|
// @ts-ignore
|
|
62
62
|
_this.refs.pop.show(_this.refs.trigger);
|
|
63
63
|
}, _this.handleHide = function () {
|
|
64
64
|
// @ts-ignore
|
|
65
65
|
_this.refs.pop.hide();
|
|
66
|
-
},
|
|
66
|
+
}, _assertThisInitialized(_this)));
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
_createClass(ConfirmPop, [{
|
|
@@ -54,7 +54,7 @@ var Drawer = function Drawer(props) {
|
|
|
54
54
|
|
|
55
55
|
var visible = props.visible,
|
|
56
56
|
_props$placement = props.placement,
|
|
57
|
-
placement = _props$placement === void 0 ?
|
|
57
|
+
placement = _props$placement === void 0 ? 'right' : _props$placement,
|
|
58
58
|
children = props.children,
|
|
59
59
|
_props$mask = props.mask,
|
|
60
60
|
mask = _props$mask === void 0 ? false : _props$mask,
|
|
@@ -96,7 +96,7 @@ var Drawer = function Drawer(props) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}, /*#__PURE__*/_react["default"].createElement(_rcDrawer["default"], _extends({
|
|
99
|
-
className: (0, _classnames["default"])(
|
|
99
|
+
className: (0, _classnames["default"])('titaui-drawer', 'document-mouse-event-ignore', className),
|
|
100
100
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
101
101
|
zIndex: zIndex
|
|
102
102
|
})
|
|
@@ -122,7 +122,8 @@ function DrawerHeader(_ref) {
|
|
|
122
122
|
actionMaxCount = _ref$actionMaxCount === void 0 ? 4 : _ref$actionMaxCount,
|
|
123
123
|
content = _ref.content,
|
|
124
124
|
style = _ref.style,
|
|
125
|
-
onClose = _ref.onClose
|
|
125
|
+
onClose = _ref.onClose,
|
|
126
|
+
actionComponent = _ref.actionComponent;
|
|
126
127
|
var drawer = (0, _react.useContext)(DrawerContext);
|
|
127
128
|
var manager = (0, _react.useContext)(_context["default"]);
|
|
128
129
|
var showClose = closable && (!!onClose || !!drawer);
|
|
@@ -145,16 +146,16 @@ function DrawerHeader(_ref) {
|
|
|
145
146
|
onClick: manager && manager.goBack
|
|
146
147
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
147
148
|
className: "tu-icon-fanhui"
|
|
148
|
-
}), (0, _getLocale.getLocale)(
|
|
149
|
+
}), (0, _getLocale.getLocale)('Mod_Back')), showBackBtn && hasContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
150
|
className: "titaui-drawer-header-divider"
|
|
150
151
|
}), hasContent && content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
152
|
style: {
|
|
152
153
|
flex: 1
|
|
153
154
|
}
|
|
154
|
-
}), displayActions.map(function (action) {
|
|
155
|
+
}), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
|
|
155
156
|
return /*#__PURE__*/_react["default"].createElement(_headerAction["default"], action);
|
|
156
157
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
157
|
-
title: (0, _getLocale.getLocale)(
|
|
158
|
+
title: (0, _getLocale.getLocale)('Mod_MoreOperate'),
|
|
158
159
|
icon: "tu-icon-10",
|
|
159
160
|
children: collapsedActions
|
|
160
161
|
}), showClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.getObjTypeMapText = exports.PlanReportType = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
10
|
-
var _ObjTypeMapText;
|
|
11
|
-
|
|
12
10
|
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; }
|
|
13
11
|
|
|
14
12
|
var OkrRiskMapping = {
|
|
@@ -64,6 +62,7 @@ exports.EShareType = EShareType;
|
|
|
64
62
|
EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
|
|
65
63
|
EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
|
|
66
64
|
EShareType[EShareType["BiShare"] = 3] = "BiShare";
|
|
65
|
+
EShareType[EShareType["InterviewShare"] = 5] = "InterviewShare";
|
|
67
66
|
})(EShareType || (exports.EShareType = EShareType = {}));
|
|
68
67
|
|
|
69
68
|
var EObjType;
|
|
@@ -80,8 +79,14 @@ exports.EObjType = EObjType;
|
|
|
80
79
|
EObjType[EObjType["Report"] = 8] = "Report";
|
|
81
80
|
})(EObjType || (exports.EObjType = EObjType = {}));
|
|
82
81
|
|
|
83
|
-
var
|
|
84
|
-
|
|
82
|
+
var getObjTypeMapText = function getObjTypeMapText(key) {
|
|
83
|
+
var _data;
|
|
84
|
+
|
|
85
|
+
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)('Menu_Title_Projects')), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)('Mod_Tasks')), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)('Mod_Objective')), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)('Mod_KeyResults')), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)('Pro_page_Plan_Milestone')), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)('Pro_page_V_Tab_Kanban')), _defineProperty(_data, EObjType.Report, '总结'), _data);
|
|
86
|
+
return data[key];
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
exports.getObjTypeMapText = getObjTypeMapText;
|
|
85
90
|
|
|
86
91
|
var ObjectType = function ObjectType() {
|
|
87
92
|
return {
|
|
@@ -113,4 +118,6 @@ var EStatusStatus2ClassType = {
|
|
|
113
118
|
0: 'tu-icon-notstart',
|
|
114
119
|
5: 'tu-icon-jiantou-right'
|
|
115
120
|
};
|
|
116
|
-
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
121
|
+
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
122
|
+
var PlanReportType = ['titaPlanReport'];
|
|
123
|
+
exports.PlanReportType = PlanReportType;
|