@titaui/pc 1.10.7 → 1.10.8-2.beta-1
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/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +3 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer/index.js +3 -2
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +27 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/export-modules/okr-menus/subordinate-menus/index.js +34 -12
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-name.js +11 -4
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +40 -44
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +207 -195
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -2
- package/lib/components/okr-detail/index.js +4 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/scrollbar/index.js +67 -9
- package/lib/components/scrollbar/scroll-mask/index.css +29 -0
- package/lib/components/scrollbar/scroll-mask/index.js +152 -0
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +142 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/wechat-btn/index.css +10 -0
- package/lib/components/wechat-btn/index.js +232 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +39 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +10 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/package.json +121 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -97,20 +97,34 @@ function _default(props) {
|
|
|
97
97
|
}, {
|
|
98
98
|
disabledDottedSubordinatesDig: true
|
|
99
99
|
}).then(function (users) {
|
|
100
|
-
var rawTreeData = (0, _helper.transToTreeNode)(users);
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
var rawTreeData = (0, _helper.transToTreeNode)(users); // 要过滤掉那些既是登录者的虚线下级,又是登录者下属的下级,让他默认展开的时候重新获取
|
|
101
|
+
|
|
102
|
+
var newRawTreeData = rawTreeData.filter(function (item) {
|
|
103
|
+
return item.pid === loginUserId;
|
|
104
|
+
});
|
|
105
|
+
setRawTreeData(newRawTreeData);
|
|
106
|
+
setTreeData((0, _utils.toTree)(newRawTreeData));
|
|
103
107
|
setLoading(false);
|
|
104
108
|
});
|
|
105
109
|
}, []);
|
|
106
110
|
|
|
107
111
|
var loadNodes = function loadNodes(nodeId) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
// 钻去隔级的直接下级
|
|
113
|
+
return (0, _requestApis.getSubordinates)({
|
|
114
|
+
toUserId: nodeId,
|
|
115
|
+
relationIds: "1"
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var filterData = function filterData(newNode, oldNode) {
|
|
120
|
+
var mark = {};
|
|
121
|
+
newNode.forEach(function (item) {
|
|
122
|
+
mark[item.userId] = true;
|
|
123
|
+
});
|
|
124
|
+
var newArry = oldNode.filter(function (item) {
|
|
125
|
+
return !mark[item.id];
|
|
126
|
+
});
|
|
127
|
+
return newArry;
|
|
114
128
|
};
|
|
115
129
|
|
|
116
130
|
var onLoadTreeNodeDataHandler = function onLoadTreeNodeDataHandler(treeNode) {
|
|
@@ -119,12 +133,20 @@ function _default(props) {
|
|
|
119
133
|
var promise = loadNodes(treeNode.id);
|
|
120
134
|
if (!promise) return resolve(true);
|
|
121
135
|
promise.then(function (nodes) {
|
|
136
|
+
var _treeNode$children;
|
|
137
|
+
|
|
122
138
|
if (!nodes.length) return null;
|
|
139
|
+
var oldRawTreeData = rawTreeData;
|
|
140
|
+
|
|
141
|
+
if (treeNode !== null && treeNode !== void 0 && (_treeNode$children = treeNode.children) !== null && _treeNode$children !== void 0 && _treeNode$children.length) {
|
|
142
|
+
oldRawTreeData = filterData(nodes, oldRawTreeData);
|
|
143
|
+
}
|
|
144
|
+
|
|
123
145
|
(0, _helper.transToTreeNode)(nodes).forEach(function (it) {
|
|
124
|
-
return
|
|
146
|
+
return oldRawTreeData.push(it);
|
|
125
147
|
});
|
|
126
|
-
setRawTreeData(
|
|
127
|
-
setTreeData((0, _utils.toTree)(
|
|
148
|
+
setRawTreeData(oldRawTreeData);
|
|
149
|
+
setTreeData((0, _utils.toTree)(oldRawTreeData));
|
|
128
150
|
return true;
|
|
129
151
|
});
|
|
130
152
|
resolve(true);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>OKR-gongsi</title>
|
|
4
|
+
<g id="新" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="OKR-gongsi">
|
|
6
|
+
<rect id="矩形" fill-opacity="0" fill="#FFFFFF" x="0" y="0" width="18" height="18"></rect>
|
|
7
|
+
<g id="编组" transform="translate(3.000000, 1.875000)" fill="#141C28">
|
|
8
|
+
<path d="M4.10139571,0.207109154 C5.30548811,-0.332079068 6.71387503,0.21781894 7.24711594,1.43534073 C7.38177811,1.74280798 7.45134383,2.07535848 7.45134383,2.41162737 L7.45134383,2.41162737 L7.45134383,4.57179909 L8.31469627,5.11190194 C8.50972555,5.210975 8.64355884,5.41510258 8.64355884,5.65083722 C8.64355884,5.98373015 8.37667242,6.25359319 8.04745134,6.25359319 C7.93433435,6.25359319 7.82857621,6.22173481 7.73847398,6.16640762 L7.737,6.169 L6.54112363,5.41956638 C6.39501401,5.32796807 6.29659069,5.17813983 6.26784152,5.01002569 L6.25912882,4.90728246 L6.25912882,2.41162737 C6.25912882,2.24349293 6.22434596,2.07721768 6.15701487,1.92348405 L6.15701487,1.92348405 L6.14681255,1.9008124 C5.87280554,1.30793451 5.17867538,1.04314408 4.58415476,1.30936826 L4.58415476,1.30936826 L1.90167098,2.5105748 C1.47035103,2.70371832 1.19221501,3.13584938 1.19221501,3.61283391 L1.19221501,3.61283391 L1.19221501,11.8389761 C1.19221501,12.504762 1.72598786,13.0445078 2.38443003,13.0445078 L2.38443003,13.0445078 L7.995,13.044 L8.04745134,14.2401098 L9.74192999,14.2409586 C9.68587029,14.2458533 9.62924586,14.2488023 9.57212243,14.249738 L9.57212243,14.249738 L9.5377201,14.25 L2.38443003,14.25 C1.06754569,14.25 0,13.1705478 0,11.8389761 L0,11.8389761 L0,3.61283391 C0,2.65886485 0.556272039,1.79460272 1.41891194,1.4083157 L1.41891194,1.4083157 Z" id="形状结合" fill-rule="nonzero"></path>
|
|
9
|
+
<rect id="矩形" x="3.15" y="3.26067444" width="1.2" height="4.8" rx="0.6"></rect>
|
|
10
|
+
</g>
|
|
11
|
+
<g id="编组" transform="translate(7.275000, 8.775000)">
|
|
12
|
+
<path d="M2.65951382,0.134116403 L1.38451382,0.868914715 C0.643634524,1.29589264 0.1875,2.08321551 0.1875,2.93505159 L0.1875,4.41494841 C0.1875,5.26678449 0.643634524,6.05410736 1.38451382,6.48108529 L2.65951382,7.2158836 C3.40359267,7.64470547 4.32140733,7.64470547 5.06548618,7.2158836 L6.34048618,6.48108529 C7.08136548,6.05410736 7.5375,5.26678449 7.5375,4.41494841 L7.5375,2.93505159 C7.5375,2.08321551 7.08136548,1.29589264 6.34048618,0.868914715 L5.06548618,0.134116403 C4.32140733,-0.294705468 3.40359267,-0.294705468 2.65951382,0.134116403 Z M4.46399309,1.16718484 L5.73899309,1.90198315 C6.10943274,2.11547211 6.3375,2.50913355 6.3375,2.93505159 L6.3375,4.41494841 C6.3375,4.84086645 6.10943274,5.23452789 5.73899309,5.44801685 L4.46399309,6.18281516 C4.09195366,6.3972261 3.63304634,6.3972261 3.26100691,6.18281516 L1.98600691,5.44801685 C1.61556726,5.23452789 1.3875,4.84086645 1.3875,4.41494841 L1.3875,2.93505159 C1.3875,2.50913355 1.61556726,2.11547211 1.98600691,1.90198315 L3.26100691,1.16718484 C3.63304634,0.952773904 4.09195366,0.952773904 4.46399309,1.16718484 Z" id="多边形" fill="#141C28" fill-rule="nonzero" transform="translate(3.862500, 3.675000) rotate(-90.000000) translate(-3.862500, -3.675000) "></path>
|
|
13
|
+
<circle id="椭圆形" stroke="#2879FF" stroke-width="1.05" cx="3.8625" cy="3.675" r="1.0875"></circle>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</svg>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
font-weight: 600;
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
color: #ffffff;
|
|
16
|
+
position: relative;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.titaui-nav-top-menu__menu-show:hover {
|
|
@@ -38,6 +39,29 @@
|
|
|
38
39
|
transform: translate(-50%, 0);
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
.titaui-nav-top-menu__menu--hasNum {
|
|
43
|
+
position: absolute;
|
|
44
|
+
right: 4px;
|
|
45
|
+
top: 1px;
|
|
46
|
+
background: #fe5042;
|
|
47
|
+
border-radius: 18px;
|
|
48
|
+
height: 16px;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
color: #ffffff;
|
|
51
|
+
line-height: 18px;
|
|
52
|
+
padding: 0 4px;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
min-width: 8px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-nav-top-menu__menu--hasNum-active {
|
|
61
|
+
right: 5px;
|
|
62
|
+
top: 3px;
|
|
63
|
+
}
|
|
64
|
+
|
|
41
65
|
.titaui-nav-top-menu__hide-menus {
|
|
42
66
|
display: flex;
|
|
43
67
|
flex-direction: column;
|
|
@@ -19,6 +19,8 @@ var _popup = _interopRequireDefault(require("../../../popup"));
|
|
|
19
19
|
|
|
20
20
|
var _conditionRender = _interopRequireDefault(require("../../../../components/condition-render"));
|
|
21
21
|
|
|
22
|
+
var _useGlobalValue3 = _interopRequireDefault(require("../../useGlobalValue"));
|
|
23
|
+
|
|
22
24
|
require("./index.css");
|
|
23
25
|
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -60,6 +62,10 @@ var Menu = function Menu(_ref) {
|
|
|
60
62
|
popupVisible = _useState2[0],
|
|
61
63
|
setPopupVisible = _useState2[1];
|
|
62
64
|
|
|
65
|
+
var _useGlobalValue = (0, _useGlobalValue3["default"])(),
|
|
66
|
+
_useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
|
|
67
|
+
feedNum = _useGlobalValue2[0];
|
|
68
|
+
|
|
63
69
|
var containerRef = (0, _react.useRef)();
|
|
64
70
|
var apiPath = (0, _bsGlobal.getBSGlobal)("apiPath");
|
|
65
71
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
@@ -94,7 +100,9 @@ var Menu = function Menu(_ref) {
|
|
|
94
100
|
onClick: function onClick() {
|
|
95
101
|
return handleTracker(menu);
|
|
96
102
|
}
|
|
97
|
-
}, menu.title
|
|
103
|
+
}, menu.title, menu.href === "#dynamic" && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href === "#dynamic"))
|
|
105
|
+
}, feedNum > 100 ? "99+" : feedNum))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
98
106
|
condition: menu.title === "Learning"
|
|
99
107
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
108
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
@@ -56,8 +56,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
56
56
|
var preCls = "titaui-user-message-msg-reply";
|
|
57
57
|
|
|
58
58
|
function Reply(props) {
|
|
59
|
-
var onItemClick = props.onItemClick
|
|
60
|
-
handleIntervalRequestMessageInfo = props.handleIntervalRequestMessageInfo;
|
|
59
|
+
var onItemClick = props.onItemClick;
|
|
61
60
|
|
|
62
61
|
var _useState = (0, _react.useState)([]),
|
|
63
62
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -108,6 +107,10 @@ function Reply(props) {
|
|
|
108
107
|
}
|
|
109
108
|
};
|
|
110
109
|
|
|
110
|
+
var handleDeleteReply = function handleDeleteReply(msgId) {
|
|
111
|
+
(0, _request.deleteReply)(msgId);
|
|
112
|
+
};
|
|
113
|
+
|
|
111
114
|
(0, _react.useEffect)(function () {
|
|
112
115
|
setTimeout(function () {
|
|
113
116
|
(0, _request.getReplys)(1).then(function (res) {
|
|
@@ -118,17 +121,14 @@ function Reply(props) {
|
|
|
118
121
|
|
|
119
122
|
setIsLoading(false);
|
|
120
123
|
});
|
|
121
|
-
(0, _request.clearReplys)().then(function () {
|
|
122
|
-
return handleIntervalRequestMessageInfo();
|
|
123
|
-
});
|
|
124
124
|
}, 300);
|
|
125
125
|
}, []);
|
|
126
|
-
console.log(replys);
|
|
127
126
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
128
127
|
condition: isLoading
|
|
129
128
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
130
129
|
src: _loading["default"],
|
|
131
|
-
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
130
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading")),
|
|
131
|
+
alt: "\u6B63\u5728\u8BF7\u6C42"
|
|
132
132
|
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
133
133
|
condition: replys.length !== 0
|
|
134
134
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
@@ -144,7 +144,8 @@ function Reply(props) {
|
|
|
144
144
|
return /*#__PURE__*/_react["default"].createElement(_replyItem["default"], {
|
|
145
145
|
item: item,
|
|
146
146
|
onItemClick: onItemClick,
|
|
147
|
-
replys: replys
|
|
147
|
+
replys: replys,
|
|
148
|
+
handleDeleteReply: handleDeleteReply
|
|
148
149
|
});
|
|
149
150
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
151
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
@@ -30,14 +30,17 @@ var preCls = "titaui-user-message-msg-reply";
|
|
|
30
30
|
function Reply(props) {
|
|
31
31
|
var item = props.item,
|
|
32
32
|
onItemClick = props.onItemClick,
|
|
33
|
-
replys = props.replys
|
|
33
|
+
replys = props.replys,
|
|
34
|
+
handleDeleteReply = props.handleDeleteReply;
|
|
34
35
|
|
|
35
36
|
var handleReplyClick = function handleReplyClick() {
|
|
36
|
-
|
|
37
|
+
if (onItemClick) {
|
|
38
|
+
onItemClick(false);
|
|
39
|
+
}
|
|
37
40
|
};
|
|
38
41
|
|
|
39
42
|
var getDescText = function getDescText() {
|
|
40
|
-
if (item.content.indexOf("@")
|
|
43
|
+
if (item.content.indexOf("@") !== -1) {
|
|
41
44
|
return "@我";
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -56,8 +59,15 @@ function Reply(props) {
|
|
|
56
59
|
return (0, _utils.deleteText)((0, _utils.htmlToText)(item.content));
|
|
57
60
|
};
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
var handleReplyItemClick = function handleReplyItemClick(msgId) {
|
|
63
|
+
handleDeleteReply(msgId);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item"), _defineProperty({}, "".concat(preCls, "__item--scroll"), replys.length >= 4)),
|
|
68
|
+
onClick: function onClick() {
|
|
69
|
+
return handleReplyItemClick(item.msgId);
|
|
70
|
+
}
|
|
61
71
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
72
|
className: (0, _classnames["default"])("".concat(preCls, "__item-photo"))
|
|
63
73
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
@@ -26,15 +26,16 @@
|
|
|
26
26
|
|
|
27
27
|
.titaui-user-message__msg-total {
|
|
28
28
|
position: absolute;
|
|
29
|
-
background: #
|
|
30
|
-
|
|
31
|
-
border-radius: 8px;
|
|
29
|
+
background: #fe5042;
|
|
30
|
+
border-radius: 18px;
|
|
32
31
|
font-size: 12px;
|
|
33
32
|
color: #ffffff;
|
|
34
33
|
line-height: 16px;
|
|
35
34
|
padding: 0 4px;
|
|
36
35
|
top: -4px;
|
|
37
36
|
left: 12px;
|
|
37
|
+
text-align: center;
|
|
38
|
+
min-width: 8px;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.titaui-user-message__popup-right-top-enter {
|
|
@@ -27,6 +27,8 @@ var _request = require("../../request.apis");
|
|
|
27
27
|
|
|
28
28
|
var _bell3x = _interopRequireDefault(require("./images/bell@3x.png"));
|
|
29
29
|
|
|
30
|
+
var _useGlobalValue = _interopRequireDefault(require("../../useGlobalValue"));
|
|
31
|
+
|
|
30
32
|
require("./index.css");
|
|
31
33
|
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -82,6 +84,8 @@ function UserMessage() {
|
|
|
82
84
|
firstTab = _useState12[0],
|
|
83
85
|
setFirstTab = _useState12[1];
|
|
84
86
|
|
|
87
|
+
var setFeedNum = (0, _useGlobalValue["default"])()[1];
|
|
88
|
+
|
|
85
89
|
var handleShowInfos = function handleShowInfos() {
|
|
86
90
|
setPopupVisible(true);
|
|
87
91
|
};
|
|
@@ -137,18 +141,28 @@ function UserMessage() {
|
|
|
137
141
|
|
|
138
142
|
var enterpriseMedalMsg = indicators.filter(function (item) {
|
|
139
143
|
return item.messageType === 1 && item.indicatorType === 1969002;
|
|
140
|
-
});
|
|
144
|
+
});
|
|
141
145
|
|
|
142
|
-
enterpriseMedalMsg.length > 0
|
|
146
|
+
if (enterpriseMedalMsg.length > 0) {
|
|
147
|
+
window.util.upaasEnterpriseMedal();
|
|
148
|
+
} // upaas 勋章
|
|
143
149
|
|
|
144
|
-
var medalDetail = (0, _bsGlobal.getBSGlobal)("medalDetail"); // @ts-ignore
|
|
145
150
|
|
|
146
|
-
medalDetail
|
|
151
|
+
var medalDetail = (0, _bsGlobal.getBSGlobal)("medalDetail");
|
|
152
|
+
|
|
153
|
+
if (medalDetail) {
|
|
154
|
+
window.util.upaasMedal()(medalDetail);
|
|
155
|
+
} // 红包
|
|
156
|
+
|
|
147
157
|
|
|
148
158
|
var mRedPackIndicator = indicators.filter(function (item) {
|
|
149
159
|
return item.type === "mRedPackIndicator";
|
|
150
160
|
});
|
|
151
|
-
|
|
161
|
+
|
|
162
|
+
if (mRedPackIndicator.length > 0) {
|
|
163
|
+
setRedPackNum(mRedPackIndicator[0].value);
|
|
164
|
+
} // 祝福,拆礼物
|
|
165
|
+
|
|
152
166
|
|
|
153
167
|
var blessIndicator = indicators.filter(function (item) {
|
|
154
168
|
return item.type === "mZhufu";
|
|
@@ -173,6 +187,18 @@ function UserMessage() {
|
|
|
173
187
|
|
|
174
188
|
(_window = window) === null || _window === void 0 ? void 0 : _window.Talent.app.vent.trigger("open-weekly-report-modal");
|
|
175
189
|
}
|
|
190
|
+
|
|
191
|
+
var feedInfo = indicators.find(function (item) {
|
|
192
|
+
return item.type === "feedAboutMeIndicator";
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
if (feedInfo) {
|
|
196
|
+
// @ts-ignore
|
|
197
|
+
setFeedNum(feedInfo.value);
|
|
198
|
+
} else {
|
|
199
|
+
// @ts-ignore
|
|
200
|
+
setFeedNum(0);
|
|
201
|
+
}
|
|
176
202
|
}
|
|
177
203
|
});
|
|
178
204
|
};
|
|
@@ -203,7 +229,8 @@ function UserMessage() {
|
|
|
203
229
|
className: (0, _classnames["default"])("".concat(prefixCls, "__msg-total"))
|
|
204
230
|
}, infosNum > 100 ? "99+" : infosNum)), /*#__PURE__*/_react["default"].createElement("img", {
|
|
205
231
|
src: _bell3x["default"],
|
|
206
|
-
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== preData))
|
|
232
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== preData)),
|
|
233
|
+
alt: ""
|
|
207
234
|
}))), /*#__PURE__*/_react["default"].createElement(_redPack["default"], {
|
|
208
235
|
redPackNum: redPackNum
|
|
209
236
|
}));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getTodos = exports.getReplys = exports.getReminds = exports.getMessages = exports.getInforms = exports.getData = exports.clearReplys = exports.clearInforms = exports.changeLang = void 0;
|
|
6
|
+
exports.getTodos = exports.getReplys = exports.getReminds = exports.getMessages = exports.getInforms = exports.getData = exports.deleteReply = exports.clearReplys = exports.clearInforms = exports.changeLang = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -11,6 +11,7 @@ var _request = require("../../utils/request");
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
|
+
/* eslint-disable default-case */
|
|
14
15
|
// @ts-ignore
|
|
15
16
|
var tenantId = window.BSGlobal && window.BSGlobal.tenantInfo.Id || 0; // @ts-ignore
|
|
16
17
|
|
|
@@ -36,7 +37,7 @@ var getData = function getData(url, saveData) {
|
|
|
36
37
|
exports.getData = getData;
|
|
37
38
|
|
|
38
39
|
var getReplys = function getReplys(pageNum) {
|
|
39
|
-
return (0, _request.rget)("v1")("comment/messages?page_num=".concat(pageNum, "&page_size=10&status=1"));
|
|
40
|
+
return (0, _request.rget)("v1")("comment/messages?page_num=".concat(pageNum, "&page_size=10&status=1&clear=0"));
|
|
40
41
|
};
|
|
41
42
|
|
|
42
43
|
exports.getReplys = getReplys;
|
|
@@ -65,20 +66,33 @@ var clearReplys = function clearReplys() {
|
|
|
65
66
|
|
|
66
67
|
exports.clearReplys = clearReplys;
|
|
67
68
|
|
|
69
|
+
var deleteReply = function deleteReply(msgId) {
|
|
70
|
+
return (0, _request.rpost)("v1")("messages/clear?msgId=".concat(msgId));
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
exports.deleteReply = deleteReply;
|
|
74
|
+
|
|
68
75
|
var getMessages = function getMessages() {
|
|
69
76
|
var nowTime = new Date();
|
|
70
77
|
var year = nowTime.getFullYear();
|
|
71
78
|
var month = nowTime.getMonth() + 1;
|
|
72
79
|
var date = nowTime.getDate();
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
|
|
81
|
+
_axios["default"].interceptors.response.use(function (response) {
|
|
82
|
+
return response;
|
|
83
|
+
}, function (error) {
|
|
84
|
+
if (error.response) {
|
|
85
|
+
switch (error.response.status) {
|
|
86
|
+
case 401:
|
|
87
|
+
window.location.reload();
|
|
88
|
+
}
|
|
77
89
|
}
|
|
78
90
|
|
|
91
|
+
return Promise.reject(error.response.data);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/RemindV2/Get?dateTime=").concat(year, "/").concat(month, "/").concat(date)).then(function (resp) {
|
|
79
95
|
return resp.data;
|
|
80
|
-
}).then(function (data) {
|
|
81
|
-
return data;
|
|
82
96
|
});
|
|
83
97
|
};
|
|
84
98
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _useGlobalState = _interopRequireDefault(require("../../hooks/useGlobalState"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var useGlobalValue = (0, _useGlobalState["default"])(0);
|
|
13
|
+
var _default = useGlobalValue;
|
|
14
|
+
exports["default"] = _default;
|
|
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _getLocale = require("../../../../utils/getLocale");
|
|
13
13
|
|
|
14
|
+
var _tools = require("../../../../utils/tools");
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
16
18
|
function OName(props) {
|
|
@@ -19,16 +21,21 @@ function OName(props) {
|
|
|
19
21
|
setIsEdit = props.setIsEdit,
|
|
20
22
|
okrStatus = props.okrStatus,
|
|
21
23
|
children = props.children;
|
|
24
|
+
|
|
25
|
+
var handleEditClick = function handleEditClick() {
|
|
26
|
+
if (editable) {
|
|
27
|
+
setIsEdit(true);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
22
31
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
32
|
className: (0, _classnames["default"])("okr-drawer-header__title", {
|
|
24
33
|
"okr-drawer-header__title--editable": editable
|
|
25
34
|
})
|
|
26
35
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
27
36
|
className: "okr-drawer-header__name",
|
|
28
|
-
onClick:
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}, okrName), children, okrStatus == 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
37
|
+
onClick: handleEditClick
|
|
38
|
+
}, (0, _tools.htmlDecodeByRegExp)(okrName)), children, Number(okrStatus) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
32
39
|
className: "okr-drawer-header__over-tag"
|
|
33
40
|
}, (0, _getLocale.getLocale)("OKR_MyO_Butt_Hasended")));
|
|
34
41
|
}
|
|
@@ -75,7 +75,7 @@ function OScore(props) {
|
|
|
75
75
|
refreshAll = _useContext.refreshAll;
|
|
76
76
|
|
|
77
77
|
var _useState3 = (0, _react.useState)({
|
|
78
|
-
score: score
|
|
78
|
+
score: Number(score) === 1 ? "1" : Number(score).toFixed(2) * 1
|
|
79
79
|
}),
|
|
80
80
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
81
81
|
formFiedlsValue = _useState4[0],
|
|
@@ -85,7 +85,7 @@ function OScore(props) {
|
|
|
85
85
|
var formRef = (0, _react.useRef)();
|
|
86
86
|
(0, _react.useEffect)(function () {
|
|
87
87
|
setFormFiedlsValue({
|
|
88
|
-
score: score
|
|
88
|
+
score: Number(score) === 1 ? "1" : Number(score).toFixed(2) * 1
|
|
89
89
|
});
|
|
90
90
|
}, [score]);
|
|
91
91
|
|
|
@@ -115,9 +115,7 @@ function OScore(props) {
|
|
|
115
115
|
} else {
|
|
116
116
|
_toast["default"].Error(res.Message || "".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_Fail")));
|
|
117
117
|
}
|
|
118
|
-
})["catch"](function (
|
|
119
|
-
console.log(err);
|
|
120
|
-
|
|
118
|
+
})["catch"](function () {
|
|
121
119
|
_toast["default"].Error("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_Fail")));
|
|
122
120
|
});
|
|
123
121
|
};
|
|
@@ -133,7 +131,7 @@ function OScore(props) {
|
|
|
133
131
|
score: score,
|
|
134
132
|
onClick: changeOScore
|
|
135
133
|
}, restProps)), /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
136
|
-
title: "
|
|
134
|
+
title: "".concat((0, _getLocale.getLocale)("Mod_Objective")).concat((0, _getLocale.getLocale)("Per_Ass_New_Appr_detail_Scor")),
|
|
137
135
|
visible: visible,
|
|
138
136
|
animation: "slide-fade",
|
|
139
137
|
maskAnimation: "fade",
|
|
@@ -5,46 +5,59 @@
|
|
|
5
5
|
display: flex;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.tita-okrdt-tree__e-kr-node:hover .tita-okrdt-tree__e-kr-node-actions {
|
|
9
|
+
opacity: 1;
|
|
10
|
+
transition: all 0.2s linear;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.tita-okrdt-tree__e-kr-node-preicon {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
line-height: 18px;
|
|
16
|
+
color: #2879ff;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
}
|
|
19
|
+
|
|
8
20
|
.tita-okrdt-tree__e-kr-node-prefix {
|
|
9
21
|
display: inline-block;
|
|
10
|
-
height:
|
|
11
|
-
font-size:
|
|
22
|
+
height: 18px;
|
|
23
|
+
font-size: 12px;
|
|
12
24
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
13
25
|
color: #2879ff;
|
|
14
|
-
line-height:
|
|
26
|
+
line-height: 18px;
|
|
15
27
|
}
|
|
16
28
|
|
|
17
29
|
.tita-okrdt-tree__e-kr-node-title {
|
|
18
30
|
display: inline-block;
|
|
19
31
|
margin-left: 4px;
|
|
20
|
-
height:
|
|
21
|
-
font-size:
|
|
32
|
+
height: 18px;
|
|
33
|
+
font-size: 12px;
|
|
22
34
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
23
35
|
color: #89919f;
|
|
24
|
-
line-height:
|
|
36
|
+
line-height: 18px;
|
|
25
37
|
width: 100%;
|
|
26
38
|
}
|
|
27
39
|
|
|
28
40
|
.tita-okrdt-tree__e-kr-node-actions {
|
|
29
41
|
display: inline-block;
|
|
42
|
+
opacity: 0;
|
|
30
43
|
position: absolute;
|
|
31
44
|
right: 0;
|
|
45
|
+
transition: all 0.2s linear;
|
|
32
46
|
}
|
|
33
47
|
|
|
34
48
|
.tita-okrdt-tree__e-kr-node-actions-create {
|
|
35
49
|
height: 18px;
|
|
36
|
-
font-size:
|
|
50
|
+
font-size: 12px;
|
|
37
51
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
38
52
|
color: #2879ff;
|
|
39
53
|
line-height: 18px;
|
|
40
54
|
cursor: pointer;
|
|
41
|
-
margin-right: 20px;
|
|
42
55
|
display: inline-flex;
|
|
43
56
|
align-items: center;
|
|
44
57
|
}
|
|
45
58
|
|
|
46
59
|
.tita-okrdt-tree__e-kr-node-actions-create:hover {
|
|
47
|
-
color: #
|
|
60
|
+
color: #5c8eff;
|
|
48
61
|
}
|
|
49
62
|
|
|
50
63
|
.tita-okrdt-tree__e-kr-node-actions-create .tu-icon-add1 {
|
|
@@ -53,21 +66,22 @@
|
|
|
53
66
|
|
|
54
67
|
.tita-okrdt-tree__e-kr-node-actions-connect {
|
|
55
68
|
height: 18px;
|
|
56
|
-
font-size:
|
|
69
|
+
font-size: 12px;
|
|
57
70
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
58
71
|
color: #2879ff;
|
|
59
72
|
line-height: 18px;
|
|
60
73
|
cursor: pointer;
|
|
74
|
+
margin-left: 20px;
|
|
61
75
|
display: inline-flex;
|
|
62
76
|
align-items: center;
|
|
63
77
|
}
|
|
64
78
|
|
|
65
79
|
.tita-okrdt-tree__e-kr-node-actions-connect:hover {
|
|
66
|
-
color: #
|
|
80
|
+
color: #5c8eff;
|
|
67
81
|
}
|
|
68
82
|
|
|
69
83
|
.e-kr-node-layer-icon {
|
|
70
|
-
color: #
|
|
84
|
+
color: #89919f;
|
|
71
85
|
}
|
|
72
86
|
|
|
73
87
|
.e-kr-node__guanlian-icon {
|
|
@@ -44,10 +44,14 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
44
44
|
var hasProject = (0, _bsGlobal.hasWebHead)("project");
|
|
45
45
|
|
|
46
46
|
var EKrNode = function EKrNode(props) {
|
|
47
|
+
var _okrInfo$authority;
|
|
48
|
+
|
|
47
49
|
var index = props.index,
|
|
48
50
|
title = props.title,
|
|
49
51
|
data = props.data,
|
|
50
|
-
isOTask = props.isOTask
|
|
52
|
+
isOTask = props.isOTask,
|
|
53
|
+
_props$hasRelation = props.hasRelation,
|
|
54
|
+
hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation;
|
|
51
55
|
var btnRef = (0, _react.useRef)();
|
|
52
56
|
|
|
53
57
|
var _useContext = (0, _react.useContext)(_context2.CommonContext),
|
|
@@ -56,7 +60,7 @@ var EKrNode = function EKrNode(props) {
|
|
|
56
60
|
var _useContext2 = (0, _react.useContext)(_context2.EListContext),
|
|
57
61
|
refreshEList = _useContext2.refreshEList;
|
|
58
62
|
|
|
59
|
-
var isParticipant = okrInfo.authority.roleRelation && okrInfo.authority.roleRelation.roleType === 2;
|
|
63
|
+
var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
|
|
60
64
|
var hasRelativeAuth;
|
|
61
65
|
|
|
62
66
|
if (isOTask) {
|
|
@@ -168,9 +172,11 @@ var EKrNode = function EKrNode(props) {
|
|
|
168
172
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
173
|
key: index,
|
|
170
174
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node"))
|
|
171
|
-
}, isOTask ?
|
|
175
|
+
}, isOTask ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
176
|
+
className: (0, _classnames["default"])("tu-icon-O ".concat(_precls["default"], "__e-kr-node-preicon"))
|
|
177
|
+
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
178
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-prefix"))
|
|
173
|
-
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
179
|
+
}, "KR", data.SortNum ? data.SortNum + 1 : index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
174
180
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-title")),
|
|
175
181
|
onClick: function onClick() {
|
|
176
182
|
if (data.mileStoneId) {
|
|
@@ -202,7 +208,7 @@ var EKrNode = function EKrNode(props) {
|
|
|
202
208
|
icon: "tu-icon-Add-xiangmu",
|
|
203
209
|
exIconClass: "e-kr-node-layer-icon",
|
|
204
210
|
name: "addProject"
|
|
205
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Addproject"))) : /*#__PURE__*/_react["default"].createElement("span", null)), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
211
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Addproject"))) : /*#__PURE__*/_react["default"].createElement("span", null)), hasRelation && /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
206
212
|
popupPlacement: "bottomRight",
|
|
207
213
|
onChange: openRelatePop,
|
|
208
214
|
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|