@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,7 +3,60 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-assessment-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 88px;
|
|
7
|
+
height: 64px;
|
|
8
|
+
background: rgba(246, 189, 22, 0.1);
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
padding: 8px 12px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-assessment-item__content-info {
|
|
17
|
+
flex: 1;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-assessment-item__content-title {
|
|
24
|
+
display: flex;
|
|
25
|
+
margin-bottom: 4px;
|
|
26
|
+
align-items: center;
|
|
27
|
+
flex: 1;
|
|
28
|
+
word-break: keep-all;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
font-size: 16px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
color: #3f4755;
|
|
34
|
+
line-height: 24px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-assessment-item__content-title-type {
|
|
38
|
+
border-radius: 18px;
|
|
39
|
+
background: rgba(246, 189, 22, 0.6);
|
|
40
|
+
color: #ffffff;
|
|
41
|
+
margin-right: 8px;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
line-height: 20px;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
padding: 0 6px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
height: 20px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.titaui-dynamic-assessment-item__content-title-text {
|
|
53
|
+
flex: 1;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-dynamic-assessment-item__content-title-text:hover {
|
|
59
|
+
color: #2879ff;
|
|
7
60
|
}
|
|
8
61
|
|
|
9
62
|
.titaui-dynamic-assessment-item__infos {
|
|
@@ -12,35 +65,22 @@
|
|
|
12
65
|
font-size: 12px;
|
|
13
66
|
color: #89919f;
|
|
14
67
|
line-height: 18px;
|
|
15
|
-
margin-top: 8px;
|
|
16
68
|
}
|
|
17
69
|
|
|
18
70
|
.titaui-dynamic-assessment-item__infos-icon {
|
|
71
|
+
font-size: 14px;
|
|
19
72
|
margin-right: 4px;
|
|
20
73
|
}
|
|
21
74
|
|
|
22
75
|
.titaui-dynamic-assessment-item__infos-step-name {
|
|
23
|
-
margin-right:
|
|
76
|
+
margin-right: 14px;
|
|
24
77
|
}
|
|
25
78
|
|
|
26
79
|
.titaui-dynamic-assessment-item__operate-desc {
|
|
27
80
|
font-size: 14px;
|
|
28
81
|
font-weight: 400;
|
|
29
82
|
color: #89919f;
|
|
30
|
-
line-height:
|
|
31
|
-
margin:
|
|
83
|
+
line-height: 24px;
|
|
84
|
+
margin-left: 4px;
|
|
32
85
|
overflow: hidden;
|
|
33
86
|
}
|
|
34
|
-
|
|
35
|
-
.titaui-dynamic-assessment-item-desc-operate-type {
|
|
36
|
-
display: inline-flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
justify-content: center;
|
|
39
|
-
padding: 0 6px;
|
|
40
|
-
height: 18px;
|
|
41
|
-
min-width: 40px;
|
|
42
|
-
border-radius: 10px 10px 10px 2px;
|
|
43
|
-
font-size: 12px;
|
|
44
|
-
color: #ffffff;
|
|
45
|
-
line-height: 18px;
|
|
46
|
-
}
|
|
@@ -11,14 +11,18 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
15
15
|
|
|
16
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
19
19
|
|
|
20
20
|
var _getLocale = require("../../../../utils/getLocale");
|
|
21
21
|
|
|
22
|
+
var _context = require("../../context");
|
|
23
|
+
|
|
24
|
+
var _tools = require("../../../../utils/tools");
|
|
25
|
+
|
|
22
26
|
require("./index.css");
|
|
23
27
|
|
|
24
28
|
var _excluded = ["data"];
|
|
@@ -37,32 +41,26 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
37
41
|
|
|
38
42
|
var prefix = "titaui-dynamic-assessment-item";
|
|
39
43
|
|
|
40
|
-
var
|
|
44
|
+
var DynamicAssessment = function DynamicAssessment(_ref) {
|
|
41
45
|
var data = _ref.data,
|
|
42
46
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
43
47
|
|
|
48
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
49
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
50
|
+
|
|
44
51
|
var currentStep = JSON.parse(data.step).find(function (item) {
|
|
45
52
|
return item.status === 2;
|
|
46
53
|
});
|
|
47
54
|
|
|
48
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
49
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
50
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
51
|
-
|
|
52
55
|
var handleClickTitle = function handleClickTitle() {
|
|
53
56
|
var assessId = data.url.split("assessId=")[1];
|
|
54
|
-
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
57
|
+
window.open(window.location.href.replace(window.location.hash, "#performance?reactRouterName=detail&formId=".concat(assessId)));
|
|
55
58
|
};
|
|
56
59
|
|
|
57
60
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
58
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
62
|
className: "".concat(prefix, "__operate-desc")
|
|
60
|
-
}, (0, _getLocale.getLocale)("Mod_sassessment"))
|
|
61
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
62
|
-
style: {
|
|
63
|
-
background: feedTypeColor
|
|
64
|
-
}
|
|
65
|
-
}, feedTypeText));
|
|
63
|
+
}, (0, _getLocale.getLocale)("Mod_sassessment"));
|
|
66
64
|
}, []);
|
|
67
65
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
66
|
className: prefix
|
|
@@ -73,10 +71,22 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
73
71
|
user: data.principalUser
|
|
74
72
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
73
|
className: "".concat(prefix, "__content")
|
|
76
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
+
className: "".concat(prefix, "__content-info")
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: "".concat(prefix, "__content-title")
|
|
78
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
79
|
+
className: "".concat(prefix, "__content-title-type")
|
|
80
|
+
}, (0, _getLocale.getLocale)("Mod_Performance")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
81
|
+
className: "".concat(prefix, "__content-title-text"),
|
|
82
|
+
onClick: handleClickTitle
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
84
|
+
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
85
|
+
str: (0, _tools.htmlDecodeByRegExp)(data.assessName),
|
|
86
|
+
keyWord: searchKeyWord
|
|
87
|
+
}),
|
|
88
|
+
isPercent: true
|
|
89
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
90
|
className: "".concat(prefix, "__infos")
|
|
81
91
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
82
92
|
className: (0, _classnames["default"])("tu-icon-jixiaojieduan", "".concat(prefix, "__infos-icon"))
|
|
@@ -84,8 +94,8 @@ var DynamicShare = function DynamicShare(_ref) {
|
|
|
84
94
|
className: "".concat(prefix, "__infos-step-name")
|
|
85
95
|
}, currentStep.stepName), /*#__PURE__*/_react["default"].createElement("i", {
|
|
86
96
|
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__infos-icon"))
|
|
87
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, "".concat(data.startDate, "-").concat(data.deadline)))));
|
|
97
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, "".concat(data.startDate, "-").concat(data.deadline))))));
|
|
88
98
|
};
|
|
89
99
|
|
|
90
|
-
var _default =
|
|
100
|
+
var _default = DynamicAssessment;
|
|
91
101
|
exports["default"] = _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _supersetCharts = _interopRequireDefault(require("../../../superset-charts"));
|
|
15
|
+
|
|
16
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
17
|
+
|
|
18
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
19
|
+
|
|
20
|
+
var _dangerousHtml = _interopRequireDefault(require("../../../dangerous-html"));
|
|
21
|
+
|
|
22
|
+
var _context = require("../../context");
|
|
23
|
+
|
|
24
|
+
var _tools = require("../../../../utils/tools");
|
|
25
|
+
|
|
26
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
27
|
+
|
|
28
|
+
var _utils = require("./utils");
|
|
29
|
+
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
32
|
+
var _excluded = ["data"];
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
|
+
|
|
38
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
39
|
+
|
|
40
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
|
+
|
|
42
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
+
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
+
|
|
46
|
+
var prefixCls = "titaui-dynamic-chart";
|
|
47
|
+
|
|
48
|
+
var DynamicChart = function DynamicChart(_ref) {
|
|
49
|
+
var data = _ref.data,
|
|
50
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
+
|
|
52
|
+
var contentRef = (0, _react.useRef)();
|
|
53
|
+
|
|
54
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
55
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
56
|
+
|
|
57
|
+
var chartQuery = (0, _utils.getChartProps)(data.biId); // const chartQuery = getChartProps('{"type":"diaryFeedChart","id":"43","timeRange":"2022/03/01T00:00:00 : 2022/03/05T00:00:00"}');
|
|
58
|
+
// console.log(chartQuery);
|
|
59
|
+
|
|
60
|
+
(0, _react.useEffect)(function () {
|
|
61
|
+
(0, _tools.highLightWord)({
|
|
62
|
+
parentDom: contentRef.current,
|
|
63
|
+
keyWord: searchKeyWord
|
|
64
|
+
});
|
|
65
|
+
}, [data, searchKeyWord]);
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: (0, _classnames["default"])(prefixCls)
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
69
|
+
data: data
|
|
70
|
+
}, restProps, {
|
|
71
|
+
user: _utils.systemPublisher,
|
|
72
|
+
desc: /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
style: {
|
|
74
|
+
marginLeft: "4px",
|
|
75
|
+
color: "#89919f"
|
|
76
|
+
}
|
|
77
|
+
}, "\u63A8\u9001\u4E86\u6D88\u606F")
|
|
78
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: "".concat(prefixCls, "__content")
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
81
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__content-quoto"), "".concat(prefixCls, "__content-quoto--left")),
|
|
82
|
+
src: _dynamicLeftQuoto["default"],
|
|
83
|
+
alt: "left"
|
|
84
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
+
ref: contentRef
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
87
|
+
htmlText: data.content
|
|
88
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
89
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__content-quoto"), "".concat(prefixCls, "__content-quoto--right")),
|
|
90
|
+
src: _dynamicRightQuoto["default"],
|
|
91
|
+
alt: "right"
|
|
92
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
className: "".concat(prefixCls, "__charts")
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], _extends({
|
|
95
|
+
width: 800,
|
|
96
|
+
height: 400,
|
|
97
|
+
layout: "feed-card"
|
|
98
|
+
}, chartQuery))));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
var _default = DynamicChart;
|
|
102
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.systemPublisher = exports.safeParse = exports.getChartProps = void 0;
|
|
7
|
+
var systemPublisher = {
|
|
8
|
+
avatar: {
|
|
9
|
+
big: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_b.png",
|
|
10
|
+
color: "#f0c75a",
|
|
11
|
+
hasAvatar: true,
|
|
12
|
+
large: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_l.png",
|
|
13
|
+
medium: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_m.png",
|
|
14
|
+
normal: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_n.png",
|
|
15
|
+
original: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_o.png",
|
|
16
|
+
small: "https://file.tita.com/TitaImage/352728/d820ed195e204b5aa7d6d1b9bd94f215_s.png"
|
|
17
|
+
},
|
|
18
|
+
blessingType: 0,
|
|
19
|
+
decorationType: 0,
|
|
20
|
+
departmentId: 0,
|
|
21
|
+
departmentName: null,
|
|
22
|
+
jobState: 0,
|
|
23
|
+
medalPosition: null,
|
|
24
|
+
medalUrl: null,
|
|
25
|
+
name: "Tita小助手",
|
|
26
|
+
postition: null,
|
|
27
|
+
praiseType: 0,
|
|
28
|
+
tag: null,
|
|
29
|
+
userId: 100000,
|
|
30
|
+
userMark: null,
|
|
31
|
+
userType: 0
|
|
32
|
+
};
|
|
33
|
+
exports.systemPublisher = systemPublisher;
|
|
34
|
+
|
|
35
|
+
var safeParse = function safeParse(json) {
|
|
36
|
+
var parsed = {};
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
parsed = JSON.parse(json);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
throw new Error(e);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return parsed;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
exports.safeParse = safeParse;
|
|
48
|
+
|
|
49
|
+
var getChartProps = function getChartProps(json) {
|
|
50
|
+
var parsed = safeParse(json);
|
|
51
|
+
|
|
52
|
+
if (typeof parsed === "number") {
|
|
53
|
+
return {
|
|
54
|
+
id: parsed
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return parsed;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.getChartProps = getChartProps;
|
|
@@ -4,12 +4,50 @@
|
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-create-o-item__content {
|
|
6
6
|
display: flex;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
margin-left: 88px;
|
|
8
|
+
background: rgba(40, 121, 255, 0.06);
|
|
9
|
+
border-radius: 18px;
|
|
10
|
+
padding: 16px;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
|
-
.titaui-dynamic-create-o-
|
|
12
|
-
|
|
13
|
+
.titaui-dynamic-create-o-item__content-progress-text {
|
|
14
|
+
position: absolute;
|
|
15
|
+
transform: translate(-50%, -50%);
|
|
16
|
+
left: 50%;
|
|
17
|
+
top: 50%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.titaui-dynamic-create-o-item__content-right {
|
|
21
|
+
flex: 1;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
margin-left: 12px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.titaui-dynamic-create-o-item__content-right-title {
|
|
27
|
+
display: flex;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
word-break: keep-all;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
line-height: 22px;
|
|
34
|
+
color: #3f4755;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
z-index: 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.titaui-dynamic-create-o-item__content-right-title-text {
|
|
40
|
+
flex: 1;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-create-o-item__content-right-title-text:hover {
|
|
46
|
+
color: #2879ff !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.titaui-dynamic-create-o-item__content-right-infos-wrapper {
|
|
50
|
+
margin-top: 6px;
|
|
13
51
|
}
|
|
14
52
|
|
|
15
53
|
.titaui-dynamic-create-o-item__okr {
|
|
@@ -20,30 +58,31 @@
|
|
|
20
58
|
line-height: 18px;
|
|
21
59
|
}
|
|
22
60
|
|
|
23
|
-
.titaui-dynamic-create-o-item__okr-type
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
61
|
+
.titaui-dynamic-create-o-item__okr-type::after {
|
|
62
|
+
content: '';
|
|
63
|
+
width: 1px;
|
|
64
|
+
height: 14px;
|
|
65
|
+
background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
|
|
66
|
+
display: inline-block;
|
|
67
|
+
margin: 0 8px;
|
|
68
|
+
vertical-align: text-top;
|
|
29
69
|
}
|
|
30
70
|
|
|
31
71
|
.titaui-dynamic-create-o-item__okr-krs {
|
|
32
|
-
margin-top:
|
|
72
|
+
margin-top: 12px;
|
|
33
73
|
}
|
|
34
74
|
|
|
35
75
|
.titaui-dynamic-create-o-item__kr {
|
|
36
76
|
display: flex;
|
|
37
|
-
|
|
38
|
-
margin-top: 8px;
|
|
77
|
+
margin-top: 6px;
|
|
39
78
|
}
|
|
40
79
|
|
|
41
80
|
.titaui-dynamic-create-o-item__kr-order {
|
|
42
81
|
font-size: 12px;
|
|
43
|
-
color: #
|
|
82
|
+
color: #89919f;
|
|
44
83
|
line-height: 18px;
|
|
45
84
|
margin-right: 4px;
|
|
46
|
-
margin-top:
|
|
85
|
+
margin-top: 3px;
|
|
47
86
|
word-break: keep-all;
|
|
48
87
|
}
|
|
49
88
|
|
|
@@ -58,38 +97,11 @@
|
|
|
58
97
|
cursor: pointer;
|
|
59
98
|
}
|
|
60
99
|
|
|
61
|
-
.titaui-dynamic-create-o-item__classify {
|
|
62
|
-
display: flex;
|
|
63
|
-
width: 18px;
|
|
64
|
-
margin-left: 8px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.titaui-dynamic-create-o-item__classify--desire {
|
|
68
|
-
background: url("../../img/dynamic-desire.svg") no-repeat;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.titaui-dynamic-create-o-item__classify--promise {
|
|
72
|
-
background: url("../../img/dynamic-promise.svg") no-repeat;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
100
|
.titaui-dynamic-create-o-item__operate-desc {
|
|
76
101
|
font-size: 14px;
|
|
77
102
|
font-weight: 400;
|
|
78
103
|
color: #89919f;
|
|
79
|
-
line-height:
|
|
80
|
-
margin:
|
|
104
|
+
line-height: 24px;
|
|
105
|
+
margin-left: 4px;
|
|
81
106
|
overflow: hidden;
|
|
82
107
|
}
|
|
83
|
-
|
|
84
|
-
.titaui-dynamic-create-o-item-desc-operate-type {
|
|
85
|
-
display: inline-flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
justify-content: center;
|
|
88
|
-
padding: 0 6px;
|
|
89
|
-
height: 18px;
|
|
90
|
-
min-width: 40px;
|
|
91
|
-
border-radius: 10px 10px 10px 2px;
|
|
92
|
-
font-size: 12px;
|
|
93
|
-
color: #ffffff;
|
|
94
|
-
line-height: 18px;
|
|
95
|
-
}
|
|
@@ -15,7 +15,7 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
15
15
|
|
|
16
16
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
19
19
|
|
|
20
20
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
21
21
|
|
|
@@ -23,9 +23,13 @@ var _openData = require("../../../../utils/open-data");
|
|
|
23
23
|
|
|
24
24
|
var _context = require("../../context");
|
|
25
25
|
|
|
26
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
27
|
+
|
|
28
|
+
var _progress = _interopRequireDefault(require("../../../progress"));
|
|
29
|
+
|
|
26
30
|
var _util = require("../../util");
|
|
27
31
|
|
|
28
|
-
var
|
|
32
|
+
var _tools = require("../../../../utils/tools");
|
|
29
33
|
|
|
30
34
|
require("./index.css");
|
|
31
35
|
|
|
@@ -39,8 +43,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
39
43
|
|
|
40
44
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
45
|
|
|
42
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
|
-
|
|
44
46
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
45
47
|
|
|
46
48
|
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; }
|
|
@@ -58,16 +60,17 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
58
60
|
cycleName = data.cycleName,
|
|
59
61
|
okrTypeName = data.okrTypeName,
|
|
60
62
|
okrTypeId = data.okrTypeId,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
principalUser = data.principalUser,
|
|
64
|
+
_data$riskLevel = data.riskLevel,
|
|
65
|
+
riskLevel = _data$riskLevel === void 0 ? 1 : _data$riskLevel,
|
|
66
|
+
_data$okrStatus = data.okrStatus,
|
|
67
|
+
okrStatus = _data$okrStatus === void 0 ? 1 : _data$okrStatus,
|
|
68
|
+
_data$okrProgress = data.okrProgress,
|
|
69
|
+
okrProgress = _data$okrProgress === void 0 ? 0 : _data$okrProgress;
|
|
63
70
|
|
|
64
71
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
65
72
|
searchKeyWord = _useContext.searchKeyWord;
|
|
66
73
|
|
|
67
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
68
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
69
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
70
|
-
|
|
71
74
|
var handleClickOTitle = function handleClickOTitle() {
|
|
72
75
|
_drawerManager["default"].open("okrDetail", {
|
|
73
76
|
okrId: okrId
|
|
@@ -88,8 +91,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
88
91
|
// 个人
|
|
89
92
|
2: {
|
|
90
93
|
icon: "tu-icon-liebiao-xiashu",
|
|
91
|
-
text:
|
|
92
|
-
"departmentId" == -1 ? "默认部门" : /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
94
|
+
text: okrTypeId === -1 ? "默认部门" : /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
93
95
|
id: okrTypeId,
|
|
94
96
|
name: okrTypeName
|
|
95
97
|
})
|
|
@@ -115,26 +117,10 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
115
117
|
};
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
var Classify = (0, _react.useMemo)(function () {
|
|
119
|
-
var _classNames;
|
|
120
|
-
|
|
121
|
-
if (+classify == 0) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
|
-
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify == 2), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify == 1), _classNames))
|
|
127
|
-
});
|
|
128
|
-
}, [classify]);
|
|
129
120
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
130
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
121
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
122
|
className: "".concat(prefix, "__operate-desc")
|
|
132
|
-
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Mod_Objective"))
|
|
133
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
134
|
-
style: {
|
|
135
|
-
background: feedTypeColor
|
|
136
|
-
}
|
|
137
|
-
}, feedTypeText));
|
|
123
|
+
}, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Mod_Objective"));
|
|
138
124
|
}, []);
|
|
139
125
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
126
|
className: prefix
|
|
@@ -145,19 +131,41 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
145
131
|
user: principalUser
|
|
146
132
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
133
|
className: "".concat(prefix, "__content")
|
|
148
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
134
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: "".concat(prefix, "__content-left")
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement(_progress["default"].Circle, {
|
|
137
|
+
linear: true,
|
|
138
|
+
linearId: data.feedId,
|
|
139
|
+
linearStartColor: (0, _util.getProcessColor)(okrStatus, riskLevel, "linearStartColor"),
|
|
140
|
+
linearEndColor: (0, _util.getProcessColor)(okrStatus, riskLevel, "linearEndColor"),
|
|
141
|
+
backgroundColor: (0, _util.getProcessColor)(okrStatus, riskLevel, "backgroundColor"),
|
|
142
|
+
percent: Number.parseInt(okrProgress || 0, 10),
|
|
143
|
+
showTextContent: true,
|
|
144
|
+
size: 48,
|
|
145
|
+
width: 5,
|
|
146
|
+
textClass: "".concat(prefix, "__content-progress-text")
|
|
147
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
+
className: "".concat(prefix, "__content-right")
|
|
149
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
+
className: "".concat(prefix, "__content-right-title")
|
|
151
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
|
+
className: "".concat(prefix, "__content-right-title-text"),
|
|
153
|
+
onClick: handleClickOTitle
|
|
154
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
155
|
+
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
156
|
+
str: (0, _tools.htmlDecodeByRegExp)(okrName),
|
|
157
|
+
keyWord: searchKeyWord
|
|
158
|
+
}),
|
|
159
|
+
isPercent: true
|
|
160
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
|
+
className: "".concat(prefix, "__content-right-infos-wrapper")
|
|
154
162
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
163
|
className: "".concat(prefix, "__okr")
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
157
|
-
className:
|
|
158
|
-
}
|
|
159
|
-
className:
|
|
160
|
-
}
|
|
164
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
165
|
+
className: "".concat(prefix, "__okr-type")
|
|
166
|
+
}, okrTypeInfo.text), /*#__PURE__*/_react["default"].createElement("span", {
|
|
167
|
+
className: "".concat(prefix, "__okr-cycle")
|
|
168
|
+
}, cycleName)), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
161
169
|
className: "".concat(prefix, "__okr-krs")
|
|
162
170
|
}, krs.map(function (kr, index) {
|
|
163
171
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -166,15 +174,15 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
166
174
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
167
175
|
className: "".concat(prefix, "__kr-order")
|
|
168
176
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
169
|
-
className: "".concat(prefix, "__kr-name"),
|
|
177
|
+
className: (0, _classnames["default"])("".concat(prefix, "__kr-name")),
|
|
170
178
|
onClick: function onClick() {
|
|
171
179
|
handleClickKrTitle(kr.krId);
|
|
172
180
|
}
|
|
173
181
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
174
|
-
str: kr.krName,
|
|
182
|
+
str: (0, _tools.htmlDecodeByRegExp)(kr.krName),
|
|
175
183
|
keyWord: searchKeyWord
|
|
176
184
|
})));
|
|
177
|
-
})))));
|
|
185
|
+
}))))));
|
|
178
186
|
};
|
|
179
187
|
|
|
180
188
|
var _default = DynamicCreateO;
|