@titaui/pc 1.10.4 → 1.10.6-3.beta-2
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 +1 -1
- 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 +108 -87
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +22 -16
- package/lib/components/communication/index.css +50 -10
- package/lib/components/communication/index.js +86 -30
- package/lib/components/communication/style.js +8 -6
- 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-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 +3 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- 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 +8 -7
- package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +44 -27
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +43 -31
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +5 -33
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +58 -18
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +31 -21
- 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 +56 -44
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +52 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +39 -27
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +25 -29
- package/lib/components/dynamic/dynamic-item/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 +10 -18
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +15 -30
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +31 -14
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +14 -25
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +13 -55
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +33 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +13 -24
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +56 -31
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +78 -34
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +29 -32
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +12 -18
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +20 -22
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +42 -29
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +8 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +23 -66
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +8 -19
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +59 -36
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +32 -28
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +11 -25
- package/lib/components/dynamic/dynamic-item/index.css +59 -4
- package/lib/components/dynamic/dynamic-item/index.js +148 -17
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +2 -1
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +1 -1
- 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/util.js +41 -81
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/file-list/components/single-file/index.css +14 -12
- 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/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +45 -9
- package/lib/components/mblog/style.js +4 -4
- 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/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 +8 -2
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- 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 +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +27 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +8 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +7 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +20 -1
- package/lib/components/okr-detail/e-list/index.js +23 -7
- package/lib/components/okr-detail/e-list/util.js +7 -2
- package/lib/components/okr-detail/index.js +2 -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-progress-detail/index.js +5 -1
- 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.css +1 -0
- package/lib/components/progress/circle-progress/index.js +8 -3
- 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/search-key-handle/index.js +7 -2
- 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 +131 -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 +94 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/video-modal/components/video-box/index.css +240 -0
- package/lib/components/video-modal/components/video-box/index.js +334 -0
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/close.png +0 -0
- package/lib/components/video-modal/img/full.svg +21 -0
- package/lib/components/video-modal/img/muted.svg +14 -0
- package/lib/components/video-modal/img/not-muted.svg +22 -0
- package/lib/components/video-modal/img/pause.svg +13 -0
- package/lib/components/video-modal/img/play.svg +18 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +83 -0
- package/lib/components/video-modal/index.js +182 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +40 -0
- 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/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- 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/utils/bs-global.js +13 -9
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +2 -1
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-reply-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 88px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-reply-item__content-title {
|
|
10
|
+
display: flex;
|
|
11
|
+
overflow: hidden;
|
|
7
12
|
}
|
|
8
13
|
|
|
9
14
|
.titaui-dynamic-reply-item__detail {
|
|
10
|
-
margin-top:
|
|
15
|
+
margin-top: 12px;
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
.titaui-dynamic-reply-item__detail-gain {
|
|
@@ -18,21 +23,29 @@
|
|
|
18
23
|
margin-bottom: 16px;
|
|
19
24
|
}
|
|
20
25
|
|
|
26
|
+
.titaui-dynamic-reply-item__detail-drawback:last-of-type {
|
|
27
|
+
margin-bottom: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-dynamic-reply-item__detail-tasks {
|
|
31
|
+
margin-top: 16px;
|
|
32
|
+
}
|
|
33
|
+
|
|
21
34
|
.titaui-dynamic-reply-item__detail-tasks-item {
|
|
22
35
|
display: flex;
|
|
23
36
|
align-items: center;
|
|
24
|
-
margin-left: 8px;
|
|
25
37
|
font-size: 14px;
|
|
26
38
|
color: #6f7886;
|
|
27
39
|
line-height: 22px;
|
|
40
|
+
margin-top: 8px;
|
|
28
41
|
cursor: pointer;
|
|
29
42
|
}
|
|
30
43
|
|
|
31
44
|
.titaui-dynamic-reply-item__detail-tasks-item::before {
|
|
32
45
|
content: '';
|
|
33
46
|
display: inline-block;
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
47
|
+
width: 5px;
|
|
48
|
+
height: 5px;
|
|
36
49
|
background: #2879ff;
|
|
37
50
|
border-radius: 50%;
|
|
38
51
|
margin-right: 6px;
|
|
@@ -43,25 +56,15 @@
|
|
|
43
56
|
}
|
|
44
57
|
|
|
45
58
|
.titaui-dynamic-reply-item__detail-block-title {
|
|
46
|
-
font-size:
|
|
59
|
+
font-size: 16px;
|
|
47
60
|
font-weight: 600;
|
|
48
61
|
color: #3f4755;
|
|
49
|
-
line-height:
|
|
62
|
+
line-height: 24px;
|
|
50
63
|
display: flex;
|
|
51
64
|
align-items: center;
|
|
52
65
|
margin-bottom: 8px;
|
|
53
66
|
}
|
|
54
67
|
|
|
55
|
-
.titaui-dynamic-reply-item__detail-block-title::before {
|
|
56
|
-
content: '';
|
|
57
|
-
display: inline-block;
|
|
58
|
-
width: 4px;
|
|
59
|
-
height: 12px;
|
|
60
|
-
background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
|
|
61
|
-
border-radius: 2px;
|
|
62
|
-
margin-right: 4px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
68
|
.titaui-dynamic-reply-item__detail-block-title--sub {
|
|
66
69
|
display: flex;
|
|
67
70
|
align-items: center;
|
|
@@ -70,18 +73,9 @@
|
|
|
70
73
|
font-weight: 600;
|
|
71
74
|
color: #3f4755;
|
|
72
75
|
line-height: 22px;
|
|
73
|
-
margin-left: 8px;
|
|
74
76
|
white-space: pre-wrap;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
.titaui-dynamic-reply-item__detail-block-title--sub::before {
|
|
78
|
-
content: '';
|
|
79
|
-
display: inline-block;
|
|
80
|
-
width: 6px;
|
|
81
|
-
height: 6px;
|
|
82
|
-
background: #2879ff;
|
|
83
|
-
border-radius: 50%;
|
|
84
|
-
margin-right: 6px;
|
|
77
|
+
margin-left: 12px;
|
|
78
|
+
margin-top: 16px;
|
|
85
79
|
}
|
|
86
80
|
|
|
87
81
|
.titaui-dynamic-reply-item__detail-block-content {
|
|
@@ -90,12 +84,15 @@
|
|
|
90
84
|
color: #6f7886;
|
|
91
85
|
line-height: 22px;
|
|
92
86
|
margin-bottom: 4px;
|
|
93
|
-
margin-left: 8px;
|
|
94
87
|
white-space: pre-wrap;
|
|
95
88
|
}
|
|
96
89
|
|
|
90
|
+
.titaui-dynamic-reply-item__detail-block-content:last-of-type {
|
|
91
|
+
margin-bottom: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
97
94
|
.titaui-dynamic-reply-item__detail-block-content--sub {
|
|
98
|
-
margin-left:
|
|
95
|
+
margin-left: 12px;
|
|
99
96
|
}
|
|
100
97
|
|
|
101
98
|
.titaui-dynamic-reply-item__object-name {
|
|
@@ -115,8 +112,8 @@
|
|
|
115
112
|
font-size: 14px;
|
|
116
113
|
font-weight: 400;
|
|
117
114
|
color: #89919f;
|
|
118
|
-
line-height:
|
|
119
|
-
margin:
|
|
115
|
+
line-height: 24px;
|
|
116
|
+
margin-left: 4px;
|
|
120
117
|
overflow: hidden;
|
|
121
118
|
}
|
|
122
119
|
|
|
@@ -23,8 +23,6 @@ var _constant = require("../../constant");
|
|
|
23
23
|
|
|
24
24
|
var _title = _interopRequireDefault(require("../../components/title"));
|
|
25
25
|
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
26
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
29
27
|
|
|
30
28
|
var _getLocale = require("../../../../utils/getLocale");
|
|
@@ -57,13 +55,8 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
57
55
|
searchKeyWord = _useContext.searchKeyWord;
|
|
58
56
|
|
|
59
57
|
var replayObjType = data.replayObjType,
|
|
60
|
-
feedType = data.feedType,
|
|
61
58
|
publishUser = data.publishUser;
|
|
62
59
|
|
|
63
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
64
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
65
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
66
|
-
|
|
67
60
|
var handleShowTaskDrawer = function handleShowTaskDrawer(taskId) {
|
|
68
61
|
window.Talent.app.vent.trigger("global-pull-screen", taskId, "task");
|
|
69
62
|
};
|
|
@@ -107,14 +100,9 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
107
100
|
})), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
|
|
108
101
|
}
|
|
109
102
|
|
|
110
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
104
|
className: "".concat(prefix, "__operate-desc")
|
|
112
|
-
}, dom)
|
|
113
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
114
|
-
style: {
|
|
115
|
-
background: feedTypeColor
|
|
116
|
-
}
|
|
117
|
-
}, feedTypeText));
|
|
105
|
+
}, dom);
|
|
118
106
|
}, []);
|
|
119
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
108
|
className: prefix
|
|
@@ -125,10 +113,16 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
125
113
|
user: publishUser
|
|
126
114
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
115
|
className: "".concat(prefix, "__content")
|
|
116
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
className: "".concat(prefix, "__content-title")
|
|
128
118
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
129
|
-
content:
|
|
130
|
-
onClickTitle: handleClickTitle
|
|
131
|
-
|
|
119
|
+
content: data.replayObjName,
|
|
120
|
+
onClickTitle: handleClickTitle,
|
|
121
|
+
type: "".concat(data.replayObjType === 65 ? "KR" : (0, _getLocale.getLocale)("Mod_Objective")),
|
|
122
|
+
typeBgColor: "".concat(data.replayObjType === 65 ? "rgba(90, 216, 166, 0.5)" : "rgba(40, 121, 255, 0.5)"),
|
|
123
|
+
titleBgColor: "".concat(data.replayObjType === 65 ? "rgba(90, 216, 166, 0.1)" : "rgba(40, 121, 255, 0.1)"),
|
|
124
|
+
contentColor: "".concat(data.replayObjType === 65 ? "#5AD8A6" : "#2879FF")
|
|
125
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
126
|
className: "".concat(prefix, "__detail")
|
|
133
127
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
128
|
className: "".concat(prefix, "__detail-gain")
|
|
@@ -169,7 +163,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
169
163
|
className: "".concat(prefix, "__detail-tasks")
|
|
170
164
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
165
|
className: "".concat(prefix, "__detail-block-title")
|
|
172
|
-
}, "\
|
|
166
|
+
}, "\u6539\u8FDB\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
|
|
173
167
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
168
|
key: task.taskId,
|
|
175
169
|
className: "".concat(prefix, "__detail-tasks-item"),
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-report-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 88px;
|
|
7
7
|
line-height: 24px;
|
|
8
8
|
word-wrap: break-word;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.titaui-dynamic-report-item__content-title {
|
|
12
|
+
display: flex;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
.titaui-dynamic-report-item__content ul {
|
|
12
17
|
list-style-type: disc;
|
|
13
18
|
padding-left: 20px;
|
|
@@ -81,11 +86,11 @@
|
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
.titaui-dynamic-report-item__block-title::before {
|
|
84
|
-
content:
|
|
89
|
+
content: '';
|
|
85
90
|
display: inline-block;
|
|
86
91
|
width: 4px;
|
|
87
92
|
height: 12px;
|
|
88
|
-
background:
|
|
93
|
+
background: #2879ff;
|
|
89
94
|
border-radius: 2px;
|
|
90
95
|
margin-right: 4px;
|
|
91
96
|
}
|
|
@@ -97,32 +102,38 @@
|
|
|
97
102
|
.titaui-dynamic-report-item__complete-type {
|
|
98
103
|
display: flex;
|
|
99
104
|
align-items: center;
|
|
100
|
-
font-size:
|
|
101
|
-
line-height:
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
line-height: 18px;
|
|
102
107
|
margin-left: 8px;
|
|
108
|
+
border-radius: 12px;
|
|
109
|
+
padding: 2px 8px;
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
.titaui-dynamic-report-item__complete-type-icon {
|
|
106
113
|
margin-right: 4px;
|
|
107
114
|
display: inline-block;
|
|
108
|
-
width:
|
|
109
|
-
height:
|
|
115
|
+
width: 14px;
|
|
116
|
+
height: 14px;
|
|
110
117
|
}
|
|
111
118
|
|
|
112
119
|
.titaui-dynamic-report-item__complete-type-icon--normal {
|
|
113
120
|
background: url("../../img/dynamic-submit-normal.svg") no-repeat;
|
|
121
|
+
background-size: 14px;
|
|
114
122
|
}
|
|
115
123
|
|
|
116
124
|
.titaui-dynamic-report-item__complete-type-icon--delay {
|
|
117
125
|
background: url("../../img/dynamic-submit-delay.svg") no-repeat;
|
|
126
|
+
background-size: 14px;
|
|
118
127
|
}
|
|
119
128
|
|
|
120
129
|
.titaui-dynamic-report-item__complete-type--normal {
|
|
121
130
|
color: #5ad8a6;
|
|
131
|
+
background-color: rgba(90, 216, 166, 0.16);
|
|
122
132
|
}
|
|
123
133
|
|
|
124
134
|
.titaui-dynamic-report-item__complete-type--delay {
|
|
125
135
|
color: #624dff;
|
|
136
|
+
background-color: rgba(98, 77, 255, 0.16);
|
|
126
137
|
}
|
|
127
138
|
|
|
128
139
|
.titaui-dynamic-report-item .highlight {
|
|
@@ -133,20 +144,7 @@
|
|
|
133
144
|
font-size: 14px;
|
|
134
145
|
font-weight: 400;
|
|
135
146
|
color: #89919f;
|
|
136
|
-
line-height:
|
|
137
|
-
margin:
|
|
147
|
+
line-height: 24px;
|
|
148
|
+
margin-left: 4px;
|
|
138
149
|
overflow: hidden;
|
|
139
150
|
}
|
|
140
|
-
|
|
141
|
-
.titaui-dynamic-report-item-desc-operate-type {
|
|
142
|
-
display: inline-flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
padding: 0 6px;
|
|
146
|
-
height: 18px;
|
|
147
|
-
min-width: 40px;
|
|
148
|
-
border-radius: 10px 10px 10px 2px;
|
|
149
|
-
font-size: 12px;
|
|
150
|
-
color: #ffffff;
|
|
151
|
-
line-height: 18px;
|
|
152
|
-
}
|
|
@@ -15,18 +15,16 @@ var _context = require("../../context");
|
|
|
15
15
|
|
|
16
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
17
|
|
|
18
|
-
var _dangerousHtml = _interopRequireDefault(require("
|
|
18
|
+
var _dangerousHtml = _interopRequireDefault(require("../../../dangerous-html"));
|
|
19
19
|
|
|
20
20
|
var _tools = require("../../../../utils/tools");
|
|
21
21
|
|
|
22
22
|
var _title = _interopRequireDefault(require("../../components/title"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
25
25
|
|
|
26
26
|
require("./index.css");
|
|
27
27
|
|
|
28
|
-
var _getLocale = require("../../../../utils/getLocale");
|
|
29
|
-
|
|
30
28
|
var _excluded = ["data"];
|
|
31
29
|
|
|
32
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -43,11 +41,15 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
43
41
|
|
|
44
42
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
43
|
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
var getEReportType = function getEReportType(type) {
|
|
45
|
+
var reportTextMap = {
|
|
46
|
+
8: (0, _getLocale.getLocale)("Rep_Tab_Dailynewspaper"),
|
|
47
|
+
26: (0, _getLocale.getLocale)("Rep_Tab_Weeklynewspaper"),
|
|
48
|
+
27: (0, _getLocale.getLocale)("Rep_Tab_MonthlyReport")
|
|
49
|
+
};
|
|
50
|
+
return reportTextMap[type];
|
|
50
51
|
};
|
|
52
|
+
|
|
51
53
|
var prefix = "titaui-dynamic-report-item";
|
|
52
54
|
|
|
53
55
|
var DynamicReply = function DynamicReply(_ref) {
|
|
@@ -56,21 +58,26 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
56
58
|
|
|
57
59
|
var submitState = data.submitState,
|
|
58
60
|
feedId = data.feedId,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
publishUser = data.publishUser,
|
|
62
|
+
reportType = data.reportType;
|
|
61
63
|
var contentRichTextRef = (0, _react.useRef)();
|
|
62
64
|
var workPlanRichTextRef = (0, _react.useRef)();
|
|
63
65
|
|
|
64
66
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
65
67
|
searchKeyWord = _useContext.searchKeyWord;
|
|
66
68
|
|
|
67
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
68
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
69
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
70
|
-
|
|
71
69
|
var handleClickTitle = function handleClickTitle() {
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
if (window.titaTracker) {
|
|
71
|
+
window.titaTracker("planAction").record({
|
|
72
|
+
actionName: "查看日报",
|
|
73
|
+
actionGroup: "动态-推屏",
|
|
74
|
+
productName: "动态",
|
|
75
|
+
feedId: data.dailyId
|
|
76
|
+
});
|
|
77
|
+
} // @ts-ignore
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
window.Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
74
81
|
};
|
|
75
82
|
|
|
76
83
|
var renderSuffix = (0, _react.useMemo)(function () {
|
|
@@ -80,17 +87,17 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
80
87
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__complete-type--normal"), submitState === 1), _defineProperty(_classNames, "".concat(prefix, "__complete-type--delay"), submitState === 2), _classNames))
|
|
81
88
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
89
|
className: (0, _classnames["default"])("".concat(prefix, "__complete-type-icon"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--normal"), submitState === 1), _defineProperty(_classNames2, "".concat(prefix, "__complete-type-icon--delay"), submitState === 2), _classNames2))
|
|
83
|
-
}), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("
|
|
90
|
+
}), submitState === 1 ? (0, _getLocale.getLocale)("Rep_Tab_Mys_Submitontime") : (0, _getLocale.getLocale)("Tasks_Tab_DelaSubmission"));
|
|
84
91
|
}, []);
|
|
85
92
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
86
|
-
|
|
93
|
+
var reportTextMap = {
|
|
94
|
+
8: (0, _getLocale.getLocale)("Rep_Tab_Mys_Dailynewsp"),
|
|
95
|
+
26: (0, _getLocale.getLocale)("Rep_Tab_Mys_sweeklyReport"),
|
|
96
|
+
27: (0, _getLocale.getLocale)("Rep_Tab_Sub_monthlyeport")
|
|
97
|
+
};
|
|
98
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
99
|
className: "".concat(prefix, "__operate-desc")
|
|
88
|
-
},
|
|
89
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
90
|
-
style: {
|
|
91
|
-
background: feedTypeColor
|
|
92
|
-
}
|
|
93
|
-
}, feedTypeText));
|
|
100
|
+
}, reportTextMap[reportType]);
|
|
94
101
|
}, []);
|
|
95
102
|
(0, _react.useEffect)(function () {
|
|
96
103
|
(0, _tools.highLightWord)({
|
|
@@ -108,14 +115,20 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
108
115
|
data: data
|
|
109
116
|
}, restProps, {
|
|
110
117
|
desc: renderDesc,
|
|
111
|
-
user: publishUser
|
|
118
|
+
user: publishUser,
|
|
119
|
+
suffixContent: renderSuffix
|
|
112
120
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
121
|
className: "".concat(prefix, "__content")
|
|
122
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
+
className: "".concat(prefix, "__content-title")
|
|
114
124
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
115
|
-
content:
|
|
125
|
+
content: (0, _tools.htmlDecodeByRegExp)(data.name),
|
|
116
126
|
onClickTitle: handleClickTitle,
|
|
117
|
-
|
|
118
|
-
|
|
127
|
+
type: getEReportType(reportType),
|
|
128
|
+
typeBgColor: "rgba(92, 142, 255, 0.5)",
|
|
129
|
+
titleBgColor: "rgba(92, 142, 255, 0.1)",
|
|
130
|
+
contentColor: "#5C8EFF"
|
|
131
|
+
})), data.contentRichText && /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
132
|
className: "".concat(prefix, "__summary")
|
|
120
133
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
121
134
|
className: "".concat(prefix, "__block-title")
|
|
@@ -128,7 +141,7 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
128
141
|
className: "".concat(prefix, "__work-plan")
|
|
129
142
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
143
|
className: "".concat(prefix, "__block-title")
|
|
131
|
-
}, "
|
|
144
|
+
}, (0, _getLocale.getLocale)("Rep_Tab_Mys_NextWorkPlans")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
145
|
className: "".concat(prefix, "__content-text"),
|
|
133
146
|
ref: workPlanRichTextRef
|
|
134
147
|
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-reward-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 88px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-reward-item__title {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
font-size: 14px;
|
|
57
57
|
font-weight: 400;
|
|
58
58
|
color: #89919f;
|
|
59
|
-
line-height:
|
|
60
|
-
margin:
|
|
59
|
+
line-height: 24px;
|
|
60
|
+
margin-left: 4px;
|
|
61
61
|
overflow: hidden;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -96,3 +96,8 @@
|
|
|
96
96
|
cursor: default !important;
|
|
97
97
|
color: #3f4755 !important;
|
|
98
98
|
}
|
|
99
|
+
|
|
100
|
+
.titaui-dynamic-reward-item__reward-img {
|
|
101
|
+
width: 25px;
|
|
102
|
+
margin-left: 8px;
|
|
103
|
+
}
|
|
@@ -31,10 +31,14 @@ var _tools = require("../../../../utils/tools");
|
|
|
31
31
|
|
|
32
32
|
var _openData = require("../../../../utils/open-data");
|
|
33
33
|
|
|
34
|
-
var _util = require("../../util");
|
|
35
|
-
|
|
36
34
|
var _getLocale = require("../../../../utils/getLocale");
|
|
37
35
|
|
|
36
|
+
var _utils = require("../dynamic-progress/utils");
|
|
37
|
+
|
|
38
|
+
var _reward = _interopRequireDefault(require("./img/reward.png"));
|
|
39
|
+
|
|
40
|
+
var _utils2 = require("./utils");
|
|
41
|
+
|
|
38
42
|
require("./index.css");
|
|
39
43
|
|
|
40
44
|
var _excluded = ["data"];
|
|
@@ -62,18 +66,12 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
62
66
|
var rewardContent = data.rewardContent,
|
|
63
67
|
rewardTags = data.rewardTags,
|
|
64
68
|
obj = data.obj,
|
|
65
|
-
classify = data.classify,
|
|
66
|
-
feedType = data.feedType,
|
|
67
69
|
rewardUser = data.rewardUser,
|
|
68
70
|
publishUser = data.publishUser;
|
|
69
71
|
|
|
70
72
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
71
73
|
searchKeyWord = _useContext.searchKeyWord;
|
|
72
74
|
|
|
73
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
74
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
75
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
76
|
-
|
|
77
75
|
var handleClickTitle = function handleClickTitle() {
|
|
78
76
|
if (!obj) {
|
|
79
77
|
return;
|
|
@@ -93,54 +91,13 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
93
91
|
} else if (objType === _constant.EObjType.Task) {
|
|
94
92
|
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
95
93
|
} else if (objType === _constant.EObjType.Project) {
|
|
96
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
94
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
97
95
|
} else if (objType === _constant.EObjType.Assess) {
|
|
98
96
|
var assessId = data.url.split("assessId=")[1];
|
|
99
|
-
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
97
|
+
window.open(window.location.href.replace(window.location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
100
98
|
}
|
|
101
99
|
};
|
|
102
100
|
|
|
103
|
-
var renderTitle = (0, _react.useMemo)(function () {
|
|
104
|
-
if (!obj) {
|
|
105
|
-
return "";
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
var objType = obj.objType,
|
|
109
|
-
objName = obj.objName;
|
|
110
|
-
|
|
111
|
-
if (objType === _constant.EObjType.Kr) {
|
|
112
|
-
return "KR\uFF1A".concat(objName);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (objType === _constant.EObjType.O) {
|
|
116
|
-
return "O\uFF1A".concat(objName);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (objType === _constant.EObjType.Task) {
|
|
120
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Tasks"), "\uFF1A").concat(objName);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (objType === _constant.EObjType.Project) {
|
|
124
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Project"), "\uFF1A").concat(objName);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (objType === _constant.EObjType.Assess) {
|
|
128
|
-
return "".concat((0, _getLocale.getLocale)("Mod_Performance"), "\uFF1A").concat(objName);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return "";
|
|
132
|
-
}, []);
|
|
133
|
-
var Classify = (0, _react.useMemo)(function () {
|
|
134
|
-
var _classNames;
|
|
135
|
-
|
|
136
|
-
if (!classify || Number(classify) == 0) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
-
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify === 1), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify === 2), _classNames))
|
|
142
|
-
});
|
|
143
|
-
}, [classify]);
|
|
144
101
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
145
102
|
var url = ""; // const url = getUrlForUserPage({
|
|
146
103
|
// userId: rewardUser.name,
|
|
@@ -152,7 +109,7 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
152
109
|
window.open(url, "_blank");
|
|
153
110
|
};
|
|
154
111
|
|
|
155
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
112
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
113
|
className: "".concat(prefix, "__operate-desc")
|
|
157
114
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
158
115
|
className: "".concat(prefix, "__reward")
|
|
@@ -162,12 +119,11 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
162
119
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
163
120
|
name: rewardUser.name,
|
|
164
121
|
id: rewardUser.userId
|
|
165
|
-
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward")
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, feedTypeText));
|
|
122
|
+
})), (0, _getLocale.getLocale)("OKR_MyO_E_Reward"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
123
|
+
alt: "",
|
|
124
|
+
src: _reward["default"],
|
|
125
|
+
className: "".concat(prefix, "__reward-img")
|
|
126
|
+
})));
|
|
171
127
|
}, []);
|
|
172
128
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
129
|
className: prefix
|
|
@@ -179,26 +135,27 @@ var DynamicReward = function DynamicReward(_ref) {
|
|
|
179
135
|
className: "".concat(prefix, "__content")
|
|
180
136
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
181
137
|
className: "".concat(prefix, "__title")
|
|
182
|
-
},
|
|
183
|
-
content:
|
|
184
|
-
onClickTitle: handleClickTitle
|
|
185
|
-
|
|
186
|
-
})), rewardContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
|
+
}, obj && obj.objName && (0, _utils2.isShowRewardObj)(obj.objType) && /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
|
|
139
|
+
content: (0, _tools.htmlDecodeByRegExp)(obj.objName),
|
|
140
|
+
onClickTitle: handleClickTitle
|
|
141
|
+
}, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
142
|
className: "".concat(prefix, "__description"),
|
|
188
143
|
style: {
|
|
189
|
-
marginTop:
|
|
144
|
+
marginTop: obj && obj.objName ? "12px" : "0"
|
|
190
145
|
}
|
|
191
146
|
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
192
147
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
|
|
148
|
+
alt: "",
|
|
193
149
|
src: _dynamicLeftQuoto["default"]
|
|
194
150
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
195
|
-
str: rewardContent,
|
|
151
|
+
str: rewardContent || "赐予你力量!",
|
|
196
152
|
keyWord: searchKeyWord
|
|
197
153
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
198
154
|
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
|
|
155
|
+
alt: "",
|
|
199
156
|
src: _dynamicRightQuoto["default"]
|
|
200
157
|
}), rewardTags && rewardTags.length && rewardTags.map(function (reward) {
|
|
201
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
158
|
+
return reward.tagName && /*#__PURE__*/_react["default"].createElement("span", {
|
|
202
159
|
className: "".concat(prefix, "__reward-tag"),
|
|
203
160
|
style: {
|
|
204
161
|
background: (0, _tools.hexToRgba)(reward.color, 0.2),
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isShowRewardObj = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _constant = require("../../constant");
|
|
9
|
+
|
|
10
|
+
var _NeedShowObj;
|
|
11
|
+
|
|
12
|
+
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
|
+
|
|
14
|
+
var NeedShowObj = (_NeedShowObj = {}, _defineProperty(_NeedShowObj, _constant.EObjType.Assess, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Kr, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.MileStone, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.O, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Project, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Report, "1"), _defineProperty(_NeedShowObj, _constant.EObjType.Task, "1"), _NeedShowObj);
|
|
15
|
+
|
|
16
|
+
var isShowRewardObj = function isShowRewardObj(type) {
|
|
17
|
+
if (NeedShowObj[type]) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return false;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.isShowRewardObj = isShowRewardObj;
|
|
25
|
+
var _default = {
|
|
26
|
+
isShowRewardObj: isShowRewardObj
|
|
27
|
+
};
|
|
28
|
+
exports["default"] = _default;
|