@titaui/pc 1.10.6 → 1.10.7-2.beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +6 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +16 -16
- package/lib/components/communication/index.css +16 -15
- package/lib/components/communication/index.js +23 -6
- package/lib/components/communication/style.js +4 -4
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +31 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +8 -6
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +58 -3
- package/lib/components/dynamic/dynamic-item/index.js +124 -23
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +11 -2
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +5 -2
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/online-broadcast/data.js +13 -1
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/edit-kr-wight/style/index.js +2 -2
- package/lib/components/file-list/components/single-file/index.css +6 -5
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/index.js +14 -5
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +10 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -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-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/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 +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +31 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/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/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -83,11 +83,21 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
83
83
|
|
|
84
84
|
// status=3 已过期 status=2 已完成
|
|
85
85
|
function ETaskNode(props) {
|
|
86
|
+
var _okrInfo$authority;
|
|
87
|
+
|
|
86
88
|
var index = props.index,
|
|
87
89
|
title = props.title,
|
|
88
90
|
data = props.data,
|
|
89
91
|
createUserId = props.createUserId,
|
|
90
|
-
krUser = props.krUser
|
|
92
|
+
krUser = props.krUser,
|
|
93
|
+
_props$hasProgress = props.hasProgress,
|
|
94
|
+
hasProgress = _props$hasProgress === void 0 ? true : _props$hasProgress,
|
|
95
|
+
_props$hasRelation = props.hasRelation,
|
|
96
|
+
hasRelation = _props$hasRelation === void 0 ? true : _props$hasRelation,
|
|
97
|
+
_props$isPushScreen = props.isPushScreen,
|
|
98
|
+
isPushScreen = _props$isPushScreen === void 0 ? false : _props$isPushScreen,
|
|
99
|
+
_props$hasPrinciple = props.hasPrinciple,
|
|
100
|
+
hasPrinciple = _props$hasPrinciple === void 0 ? true : _props$hasPrinciple;
|
|
91
101
|
|
|
92
102
|
var _useState = (0, _react.useState)(false),
|
|
93
103
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -150,7 +160,7 @@ function ETaskNode(props) {
|
|
|
150
160
|
principalUser: okrInfo.principalUser,
|
|
151
161
|
createUserId: okrInfo.createUserId
|
|
152
162
|
}).hasAuth()) && data.status !== 5;
|
|
153
|
-
var isParticipant = okrInfo.authority.roleRelation && okrInfo.authority.roleRelation.roleType === 2;
|
|
163
|
+
var isParticipant = ((_okrInfo$authority = okrInfo.authority) === null || _okrInfo$authority === void 0 ? void 0 : _okrInfo$authority.roleRelation) && okrInfo.authority.roleRelation.roleType === 2;
|
|
154
164
|
var hasRelativeAuth = new _auth.KRAuth({
|
|
155
165
|
user: krUser,
|
|
156
166
|
createUserId: createUserId
|
|
@@ -324,7 +334,18 @@ function ETaskNode(props) {
|
|
|
324
334
|
_drawerManager["default"].close();
|
|
325
335
|
}
|
|
326
336
|
|
|
327
|
-
|
|
337
|
+
if (isPushScreen) {
|
|
338
|
+
var _window$Talent, _window$Talent2;
|
|
339
|
+
|
|
340
|
+
(_window$Talent = window.Talent) === null || _window$Talent === void 0 ? void 0 : _window$Talent.app.vent.off("global-pull-screen:closed:".concat(data.taskId));
|
|
341
|
+
(_window$Talent2 = window.Talent) === null || _window$Talent2 === void 0 ? void 0 : _window$Talent2.app.vent.on("global-pull-screen:closed:".concat(data.taskId), function () {
|
|
342
|
+
refreshEList && refreshEList();
|
|
343
|
+
}); // 任务:打开推屏
|
|
344
|
+
|
|
345
|
+
window.Talent.app.vent.trigger('global-pull-screen', data.taskId, 'task');
|
|
346
|
+
} else {
|
|
347
|
+
window.open("//".concat(window.location.host).concat(window.location.pathname, "#more/taskinfo?id=").concat(data.taskId));
|
|
348
|
+
}
|
|
328
349
|
};
|
|
329
350
|
|
|
330
351
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -351,7 +372,7 @@ function ETaskNode(props) {
|
|
|
351
372
|
isPercent: true
|
|
352
373
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
353
374
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions"))
|
|
354
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
375
|
+
}, hasPrinciple && /*#__PURE__*/_react["default"].createElement("span", {
|
|
355
376
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-user"))
|
|
356
377
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"].Text, {
|
|
357
378
|
name: user === null || user === void 0 ? void 0 : user.name,
|
|
@@ -369,7 +390,7 @@ function ETaskNode(props) {
|
|
|
369
390
|
isLongTerm: dataInfo.isLongTerm,
|
|
370
391
|
isCancel: dataInfo.status === 4,
|
|
371
392
|
isComplete: dataInfo.status === 2
|
|
372
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
393
|
+
})), hasProgress && /*#__PURE__*/_react["default"].createElement("span", {
|
|
373
394
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-task-node-actions-progress ").concat((isGray || isCancel) && "".concat(_precls["default"], "__e-project-node-gray")))
|
|
374
395
|
}, /*#__PURE__*/_react["default"].createElement(_progress["default"].Circle, {
|
|
375
396
|
size: 22,
|
|
@@ -380,7 +401,7 @@ function ETaskNode(props) {
|
|
|
380
401
|
linearStartColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "linearStartColor", dataInfo.status),
|
|
381
402
|
linearEndColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "linearEndColor", dataInfo.status),
|
|
382
403
|
backgroundColor: (0, _getProcessColor["default"])(dataInfo.riskLevel, "backgroundColor", dataInfo.status)
|
|
383
|
-
})), okrInfo.status === 1 && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
404
|
+
})), okrInfo.status === 1 && hasRelation && (hasRelativeAuth || isParticipant) ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
384
405
|
overlay: (0, _getLocale.getLocale)("OKR_MyO_Text_Cancel"),
|
|
385
406
|
placement: "top"
|
|
386
407
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
line-height: 18px;
|
|
85
85
|
display: inline-flex;
|
|
86
86
|
align-items: center;
|
|
87
|
+
justify-content: flex-end;
|
|
87
88
|
box-sizing: border-box;
|
|
88
89
|
width: 78px;
|
|
89
90
|
height: 26px;
|
|
90
91
|
padding: 4px;
|
|
91
92
|
text-align: left;
|
|
92
93
|
line-height: 26px;
|
|
93
|
-
margin-left: 16px;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.tita-okrdt-tree__e-task-node-actions-date > span {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
color: #89919f;
|
|
104
104
|
cursor: auto;
|
|
105
105
|
width: 64px;
|
|
106
|
-
margin-left:
|
|
106
|
+
margin-left: 16px;
|
|
107
107
|
margin-right: 4px;
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.tita-okrdt-tree__e-project-node-title {
|
|
150
|
-
display: inline-
|
|
150
|
+
display: inline-flex;
|
|
151
151
|
font-size: 14px;
|
|
152
152
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
153
153
|
color: #3f4755;
|
|
@@ -158,8 +158,27 @@
|
|
|
158
158
|
flex: 1;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
.tita-okrdt-tree__e-project-node-title-name {
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.tita-okrdt-tree__e-project-node-title-approvaling {
|
|
166
|
+
display: inline-flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
min-width: 36px;
|
|
170
|
+
padding: 0 6px;
|
|
171
|
+
height: 20px;
|
|
172
|
+
font-size: 12px;
|
|
173
|
+
font-weight: 400;
|
|
174
|
+
color: #f05e5e;
|
|
175
|
+
background: rgba(240, 94, 94, 0.1);
|
|
176
|
+
border-radius: 10px;
|
|
177
|
+
margin-left: 8px;
|
|
178
|
+
}
|
|
179
|
+
|
|
161
180
|
.tita-okrdt-tree__e-project-node-gray {
|
|
162
|
-
color: #
|
|
181
|
+
color: #bfc7d5 !important;
|
|
163
182
|
}
|
|
164
183
|
|
|
165
184
|
.tita-okrdt-tree__e-project-node-priority {
|
|
@@ -216,13 +235,13 @@
|
|
|
216
235
|
line-height: 18px;
|
|
217
236
|
display: inline-flex;
|
|
218
237
|
align-items: center;
|
|
238
|
+
justify-content: flex-end;
|
|
219
239
|
box-sizing: border-box;
|
|
220
240
|
width: 78px;
|
|
221
241
|
height: 26px;
|
|
222
242
|
padding: 4px;
|
|
223
243
|
text-align: left;
|
|
224
244
|
line-height: 26px;
|
|
225
|
-
margin-left: 16px;
|
|
226
245
|
}
|
|
227
246
|
|
|
228
247
|
.tita-okrdt-tree__e-project-node-actions-date > span {
|
|
@@ -235,7 +254,7 @@
|
|
|
235
254
|
color: #89919f;
|
|
236
255
|
cursor: auto;
|
|
237
256
|
width: 64px;
|
|
238
|
-
margin-left:
|
|
257
|
+
margin-left: 16px;
|
|
239
258
|
margin-right: 4px;
|
|
240
259
|
}
|
|
241
260
|
|
|
@@ -338,13 +357,13 @@
|
|
|
338
357
|
line-height: 18px;
|
|
339
358
|
display: inline-flex;
|
|
340
359
|
align-items: center;
|
|
360
|
+
justify-content: flex-end;
|
|
341
361
|
box-sizing: border-box;
|
|
342
362
|
width: 78px;
|
|
343
363
|
height: 26px;
|
|
344
364
|
padding: 4px;
|
|
345
365
|
text-align: left;
|
|
346
366
|
line-height: 26px;
|
|
347
|
-
margin-left: 16px;
|
|
348
367
|
}
|
|
349
368
|
|
|
350
369
|
.tita-okrdt-tree__e-task-level2-node-actions-date > span {
|
|
@@ -357,7 +376,7 @@
|
|
|
357
376
|
color: #89919f;
|
|
358
377
|
cursor: auto;
|
|
359
378
|
width: 64px;
|
|
360
|
-
margin-left:
|
|
379
|
+
margin-left: 16px;
|
|
361
380
|
margin-right: 4px;
|
|
362
381
|
}
|
|
363
382
|
|
|
@@ -379,7 +398,7 @@
|
|
|
379
398
|
.tita-okrdt-tree__e-empty-node {
|
|
380
399
|
font-size: 12px;
|
|
381
400
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
382
|
-
color: #
|
|
401
|
+
color: #a4acb9;
|
|
383
402
|
line-height: 18px;
|
|
384
403
|
padding-left: 12px;
|
|
385
404
|
}
|
|
@@ -389,5 +408,5 @@
|
|
|
389
408
|
}
|
|
390
409
|
|
|
391
410
|
.e-node-status-icon {
|
|
392
|
-
color: #
|
|
411
|
+
color: #89919f;
|
|
393
412
|
}
|
|
@@ -332,7 +332,7 @@ function _default(props) {
|
|
|
332
332
|
editable: krCanEdit,
|
|
333
333
|
onEditUser: onEditUserHandler,
|
|
334
334
|
nameTips: function nameTips(name) {
|
|
335
|
-
return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A");
|
|
335
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A", name);
|
|
336
336
|
}
|
|
337
337
|
})), showKrWeight && /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
|
|
338
338
|
width: 60,
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -51,10 +51,33 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
51
51
|
|
|
52
52
|
var preCls = "okr-detail-e";
|
|
53
53
|
|
|
54
|
-
function
|
|
55
|
-
var okrId = props.okrId
|
|
54
|
+
function Elist(props, ref) {
|
|
55
|
+
var okrId = props.okrId,
|
|
56
|
+
_props$hasSearch = props.hasSearch,
|
|
57
|
+
hasSearch = _props$hasSearch === void 0 ? true : _props$hasSearch,
|
|
58
|
+
_props$formatTree = props.formatTree,
|
|
59
|
+
formatTree = _props$formatTree === void 0 ? _util.formatEListDataToSelectTree : _props$formatTree,
|
|
60
|
+
_props$startDate = props.startDate,
|
|
61
|
+
startDate = _props$startDate === void 0 ? '' : _props$startDate,
|
|
62
|
+
_props$endDate = props.endDate,
|
|
63
|
+
endDate = _props$endDate === void 0 ? '' : _props$endDate,
|
|
64
|
+
_props$toLevel = props.toLevel,
|
|
65
|
+
toLevel = _props$toLevel === void 0 ? 999 : _props$toLevel,
|
|
66
|
+
_props$hasdivider = props.hasdivider,
|
|
67
|
+
hasdivider = _props$hasdivider === void 0 ? false : _props$hasdivider,
|
|
68
|
+
className = props.className,
|
|
69
|
+
_props$IncludeNoTaskK = props.IncludeNoTaskKr,
|
|
70
|
+
IncludeNoTaskKr = _props$IncludeNoTaskK === void 0 ? true : _props$IncludeNoTaskK,
|
|
71
|
+
_props$hasLoading = props.hasLoading,
|
|
72
|
+
hasLoading = _props$hasLoading === void 0 ? true : _props$hasLoading,
|
|
73
|
+
_props$IsDateFilter = props.IsDateFilter,
|
|
74
|
+
IsDateFilter = _props$IsDateFilter === void 0 ? false : _props$IsDateFilter,
|
|
75
|
+
emptyPage = props.emptyPage,
|
|
76
|
+
setIsEmpty = props.setIsEmpty,
|
|
77
|
+
_props$layoutPadding = props.layoutPadding,
|
|
78
|
+
layoutPadding = _props$layoutPadding === void 0 ? '0 32px 0 18px' : _props$layoutPadding;
|
|
56
79
|
var loginUser = (0, _bsGlobal.getUserInfo)().Id;
|
|
57
|
-
var hasCondition = localStorage.getItem("hasRememberCondition".concat(loginUser));
|
|
80
|
+
var hasCondition = hasSearch && localStorage.getItem("hasRememberCondition".concat(loginUser));
|
|
58
81
|
|
|
59
82
|
var _useState = (0, _react.useState)([]),
|
|
60
83
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -111,8 +134,9 @@ function _default(props) {
|
|
|
111
134
|
totalDataNum = _useState22[0],
|
|
112
135
|
setTotalDataNum = _useState22[1];
|
|
113
136
|
|
|
114
|
-
var getKrEsData = function getKrEsData() {
|
|
137
|
+
var getKrEsData = function getKrEsData(formatTree) {
|
|
115
138
|
setLoading(true);
|
|
139
|
+
var formatEList = formatTree ? formatTree : _util.formatEListDataToSelectTree;
|
|
116
140
|
(0, _requestApis.getKrsByCondition)({
|
|
117
141
|
okrId: okrId,
|
|
118
142
|
condition: (0, _util.formatCondition)({
|
|
@@ -121,38 +145,53 @@ function _default(props) {
|
|
|
121
145
|
selectName: selectName,
|
|
122
146
|
checkedStatus: checkedStatus,
|
|
123
147
|
users: selectUsers,
|
|
124
|
-
keyWord: searchKey
|
|
148
|
+
keyWord: searchKey,
|
|
149
|
+
startDate: startDate,
|
|
150
|
+
endDate: endDate,
|
|
151
|
+
toLevel: toLevel,
|
|
152
|
+
IncludeNoTaskKr: IncludeNoTaskKr,
|
|
153
|
+
IsDateFilter: IsDateFilter
|
|
125
154
|
})
|
|
126
155
|
}).then(function (krs) {
|
|
127
|
-
var formatKrs = (
|
|
128
|
-
var
|
|
156
|
+
var formatKrs = formatEList(krs, okrId, (0, _util.getIfInitCondition)(selectName, checkedStatus, selectUsers, searchKey));
|
|
157
|
+
var newexpandedKrEs = (formatKrs.krsEList || []).map(function (it) {
|
|
129
158
|
return it.key;
|
|
130
159
|
});
|
|
131
|
-
var
|
|
160
|
+
var newexpandedOEs = (formatKrs.oEList[0] || []).map(function (it) {
|
|
132
161
|
return it.key;
|
|
133
162
|
});
|
|
134
|
-
setExpandedKrEs(
|
|
135
|
-
setExpandedOEs(
|
|
163
|
+
setExpandedKrEs(newexpandedKrEs);
|
|
164
|
+
setExpandedOEs(newexpandedOEs);
|
|
136
165
|
setKrList(formatKrs.krsEList);
|
|
137
166
|
setOEList(formatKrs.oEList);
|
|
138
167
|
setLoading(false);
|
|
139
168
|
});
|
|
140
169
|
};
|
|
141
170
|
|
|
171
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
172
|
+
return {
|
|
173
|
+
getKrEsData: getKrEsData
|
|
174
|
+
};
|
|
175
|
+
});
|
|
142
176
|
(0, _react.useEffect)(function () {
|
|
143
|
-
|
|
144
|
-
|
|
177
|
+
// 可以接收一个格式化方法
|
|
178
|
+
getKrEsData(formatTree);
|
|
179
|
+
}, [noteOrder, searchKey, selectName, checkedStatus, selectUsers, startDate, endDate, okrId]);
|
|
145
180
|
(0, _react.useEffect)(function () {
|
|
146
181
|
var oElistLength = oEList[0] && oEList[0].length || 0;
|
|
147
|
-
|
|
182
|
+
var totalLength = krList.length + oElistLength;
|
|
183
|
+
setTotalDataNum(totalLength);
|
|
184
|
+
setIsEmpty && setIsEmpty(!totalLength);
|
|
148
185
|
}, [krList, oEList]);
|
|
149
186
|
return /*#__PURE__*/_react["default"].createElement(_context.EListContext.Provider, {
|
|
150
187
|
value: {
|
|
151
|
-
refreshEList:
|
|
188
|
+
refreshEList: function refreshEList() {
|
|
189
|
+
return getKrEsData(formatTree);
|
|
190
|
+
}
|
|
152
191
|
}
|
|
153
192
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
-
className: preCls
|
|
155
|
-
}, /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], null, /*#__PURE__*/_react["default"].createElement(_searchForm["default"], {
|
|
193
|
+
className: "".concat(preCls, " ").concat(className)
|
|
194
|
+
}, hasSearch && /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], null, /*#__PURE__*/_react["default"].createElement(_searchForm["default"], {
|
|
156
195
|
checkedStatus: checkedStatus,
|
|
157
196
|
setCheckedStatus: setCheckedStatus,
|
|
158
197
|
selectName: selectName,
|
|
@@ -163,28 +202,30 @@ function _default(props) {
|
|
|
163
202
|
selectUsers: selectUsers,
|
|
164
203
|
setSelectUsers: setSelectUsers,
|
|
165
204
|
okrId: okrId
|
|
166
|
-
})), !loading ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
205
|
+
})), !loading || !hasLoading ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
167
206
|
condition: totalDataNum !== 0
|
|
168
207
|
}, krList.map(function (kr, index) {
|
|
169
208
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], {
|
|
170
|
-
padding:
|
|
209
|
+
padding: layoutPadding
|
|
171
210
|
}, /*#__PURE__*/_react["default"].createElement(_okrTree["default"], {
|
|
211
|
+
key: Math.random(),
|
|
172
212
|
data: [kr],
|
|
173
213
|
defaultExpandedKeys: expandedKrEs
|
|
174
214
|
})), // kr左后一个节点 && 没有 OE 时,不显示横线
|
|
175
|
-
!(index + 1 == krList.length && oEList.length == 0) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
215
|
+
!(index + 1 == krList.length && oEList.length == 0) && hasdivider && /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
216
|
className: "e__divider"
|
|
177
217
|
}));
|
|
178
|
-
}), oEList.map(function (kr) {
|
|
218
|
+
}), !!oEList && !!oEList.length && oEList.map(function (kr) {
|
|
179
219
|
return /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], {
|
|
180
|
-
padding:
|
|
220
|
+
padding: layoutPadding
|
|
181
221
|
}, /*#__PURE__*/_react["default"].createElement(_okrTree["default"], {
|
|
222
|
+
key: Math.random(),
|
|
182
223
|
data: kr,
|
|
183
224
|
defaultExpandedKeys: expandedOEs
|
|
184
225
|
}));
|
|
185
226
|
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
186
227
|
condition: totalDataNum === 0
|
|
187
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
228
|
+
}, emptyPage ? emptyPage() : /*#__PURE__*/_react["default"].createElement("div", {
|
|
188
229
|
className: "".concat(preCls, "__empty")
|
|
189
230
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
190
231
|
className: "".concat(preCls, "__empty-img"),
|
|
@@ -194,4 +235,9 @@ function _default(props) {
|
|
|
194
235
|
}, "\u6CA1\u6709\u641C\u7D22\u5230\u7B26\u5408\u6761\u4EF6\u7684E-\u6267\u884C")))) : /*#__PURE__*/_react["default"].createElement(_loading["default"], {
|
|
195
236
|
type: "panel"
|
|
196
237
|
})));
|
|
197
|
-
}
|
|
238
|
+
} // @ts-ignore
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
Elist = /*#__PURE__*/(0, _react.forwardRef)(Elist);
|
|
242
|
+
var _default = Elist;
|
|
243
|
+
exports["default"] = _default;
|
|
@@ -163,7 +163,12 @@ var formatCondition = function formatCondition(_ref) {
|
|
|
163
163
|
selectName = _ref.selectName,
|
|
164
164
|
checkedStatus = _ref.checkedStatus,
|
|
165
165
|
users = _ref.users,
|
|
166
|
-
keyWord = _ref.keyWord
|
|
166
|
+
keyWord = _ref.keyWord,
|
|
167
|
+
startDate = _ref.startDate,
|
|
168
|
+
endDate = _ref.endDate,
|
|
169
|
+
toLevel = _ref.toLevel,
|
|
170
|
+
IncludeNoTaskKr = _ref.IncludeNoTaskKr,
|
|
171
|
+
IsDateFilter = _ref.IsDateFilter;
|
|
167
172
|
var resultStatus = [];
|
|
168
173
|
|
|
169
174
|
if (checkedStatus.includes("all")) {
|
|
@@ -189,10 +194,14 @@ var formatCondition = function formatCondition(_ref) {
|
|
|
189
194
|
pageIndex: 1,
|
|
190
195
|
FeedId: 0,
|
|
191
196
|
filter: 1,
|
|
192
|
-
toLevel: 999,
|
|
197
|
+
toLevel: toLevel || 999,
|
|
193
198
|
app_id: 1,
|
|
194
199
|
app_type: 1,
|
|
195
200
|
FilterKey: keyWord,
|
|
201
|
+
startDate: startDate || '',
|
|
202
|
+
endDate: endDate || '',
|
|
203
|
+
IncludeNoTaskKr: IncludeNoTaskKr,
|
|
204
|
+
IsDateFilter: IsDateFilter,
|
|
196
205
|
status: resultStatus.join(","),
|
|
197
206
|
userObjects: users.map(function (user) {
|
|
198
207
|
return {
|
|
@@ -345,11 +345,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
345
345
|
avatar: SuperiorUser.UserAvatar
|
|
346
346
|
});
|
|
347
347
|
} else {
|
|
348
|
-
setToUser({
|
|
349
|
-
name: Name,
|
|
350
|
-
userId: Id,
|
|
351
|
-
avatar: UserAvatar
|
|
352
|
-
});
|
|
348
|
+
setToUser({});
|
|
353
349
|
}
|
|
354
350
|
|
|
355
351
|
parenOkrtRef.current && parenOkrtRef.current.show(document.body, 0);
|
|
@@ -222,9 +222,9 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
222
222
|
});
|
|
223
223
|
|
|
224
224
|
return;
|
|
225
|
-
}
|
|
226
|
-
|
|
225
|
+
}
|
|
227
226
|
|
|
227
|
+
setIsExport(true);
|
|
228
228
|
downloadImg();
|
|
229
229
|
};
|
|
230
230
|
|
|
@@ -264,7 +264,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
264
264
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
265
265
|
className: "export-map-modal__color-trans",
|
|
266
266
|
onClick: colorChangeHandler
|
|
267
|
-
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_context2.CommonContext.Provider, {
|
|
267
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(_context2.CommonContext.Provider, {
|
|
268
268
|
value: {
|
|
269
269
|
direction: direction,
|
|
270
270
|
showkr: showkr,
|
|
@@ -102,7 +102,20 @@ function RootNode(props) {
|
|
|
102
102
|
style: {
|
|
103
103
|
backgroundColor: color
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
style: {
|
|
107
|
+
height: '24px',
|
|
108
|
+
width: '12px',
|
|
109
|
+
overflow: 'hidden',
|
|
110
|
+
margin: '0px auto'
|
|
111
|
+
}
|
|
112
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
113
|
+
src: whiteRootImg,
|
|
114
|
+
style: {
|
|
115
|
+
maxWidth: 268
|
|
116
|
+
},
|
|
117
|
+
width: imgWidth
|
|
118
|
+
})));
|
|
106
119
|
}
|
|
107
120
|
|
|
108
121
|
if (searchType == "depart") {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
position: relative;
|
|
9
|
+
height: 24px;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.okr-progress-item-wrapper .okr-progress-item-content__icon-state {
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
.okr-progress-item-wrapper .okr-progress-item__percent {
|
|
16
17
|
font-size: 16px;
|
|
17
18
|
font-weight: 600;
|
|
18
|
-
color: #
|
|
19
|
+
color: #3f4755;
|
|
19
20
|
line-height: 24px;
|
|
20
21
|
margin-left: 12px;
|
|
21
22
|
}
|
|
@@ -28,11 +29,11 @@
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.okr-progress-item-wrapper .okr-progress-item__percent--advance {
|
|
31
|
-
color: #
|
|
32
|
+
color: #5ad8a6;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
.okr-progress-item-wrapper .okr-progress-item__percent--delay {
|
|
35
|
-
color: #
|
|
36
|
+
color: #f05e5e;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
.okr-progress-item-wrapper .okr-progress-item-content--edit {
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.okr-progress-item-wrapper .okr-progress-item-content--edit:hover {
|
|
45
|
-
background: #
|
|
46
|
+
background: #f7f8fa;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.okr-progress-item-wrapper .okr-progress-item-content__body-wrapper {
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
|
|
61
62
|
.okr-progress-item-wrapper .okr-progress-item-content__body-wrapper .okr-progress-item-content__body .okr-progress-item__content {
|
|
62
63
|
font-size: 14px;
|
|
63
|
-
color: #
|
|
64
|
+
color: #3f4755;
|
|
64
65
|
line-height: 22px;
|
|
65
66
|
white-space: pre-wrap;
|
|
66
67
|
}
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
|
|
74
75
|
.okr-progress-item-wrapper .okr-progress-item__content-bottom {
|
|
75
76
|
font-size: 12px;
|
|
76
|
-
color: #
|
|
77
|
+
color: #a4acb9;
|
|
77
78
|
line-height: 18px;
|
|
78
79
|
margin-top: 6px;
|
|
79
80
|
display: flex;
|
|
@@ -88,12 +89,12 @@
|
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
.okr-progress-item-wrapper .okr-progress-item__content-bottom .okr-progress-item__bottom-func-btns .okr-progress-item__bottom-btn--edit:hover {
|
|
91
|
-
color: #
|
|
92
|
+
color: #2879ff;
|
|
92
93
|
cursor: pointer;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
.okr-progress-item-wrapper .okr-progress-item__content-bottom .okr-progress-item__bottom-func-btns .okr-progress-item__bottom-btn--delete:hover {
|
|
96
|
-
color: #
|
|
97
|
+
color: #f05e5e;
|
|
97
98
|
cursor: pointer;
|
|
98
99
|
}
|
|
99
100
|
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
display: inline-block;
|
|
107
108
|
width: 1px;
|
|
108
109
|
height: 16px;
|
|
109
|
-
background: linear-gradient(180deg, rgba(213, 219, 226, 0) 0%, #
|
|
110
|
+
background: linear-gradient(180deg, rgba(213, 219, 226, 0) 0%, #d5dbe2 49%, rgba(213, 219, 226, 0) 100%);
|
|
110
111
|
border-radius: 2px;
|
|
111
112
|
}
|
|
112
113
|
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
right: 0;
|
|
130
131
|
font-size: 12px;
|
|
131
132
|
font-weight: 400;
|
|
132
|
-
color: #
|
|
133
|
+
color: #a4acb9;
|
|
133
134
|
line-height: 24px;
|
|
134
135
|
padding-right: 16px;
|
|
135
136
|
}
|
|
@@ -25,6 +25,8 @@ var _utils = require("./utils");
|
|
|
25
25
|
|
|
26
26
|
var _getLocale = require("../../utils/getLocale");
|
|
27
27
|
|
|
28
|
+
var _dangerousHtml = _interopRequireDefault(require("../dangerous-html"));
|
|
29
|
+
|
|
28
30
|
require("./index.css");
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -128,7 +130,9 @@ var Detail = function Detail(_ref) {
|
|
|
128
130
|
src: _progressLeftQuoto["default"]
|
|
129
131
|
}) : null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
132
|
className: "".concat($prefix, "__content")
|
|
131
|
-
}, content &&
|
|
133
|
+
}, content && /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
134
|
+
htmlText: content.trim()
|
|
135
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
136
|
className: "".concat($prefix, "__content-bottom")
|
|
133
137
|
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _utils.getTimeString)(time, nowTime)), canEdit && isMouseEnterDetail ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
134
138
|
className: "".concat($prefix, "__bottom-func-btns")
|
|
@@ -22,8 +22,8 @@ var getTimeString = function getTimeString(time, nowTime) {
|
|
|
22
22
|
var timeYear = timeDateObj.getFullYear();
|
|
23
23
|
var timeMonth = timeDateObj.getMonth() + 1;
|
|
24
24
|
var timeDate = timeDateObj.getDate();
|
|
25
|
-
var timeHours = timeDateObj.getHours();
|
|
26
|
-
var timeMinutes = timeDateObj.getMinutes();
|
|
25
|
+
var timeHours = timeDateObj.getHours() < 10 ? "0".concat(timeDateObj.getHours()) : timeDateObj.getHours();
|
|
26
|
+
var timeMinutes = timeDateObj.getMinutes() < 10 ? "0".concat(timeDateObj.getMinutes()) : timeDateObj.getMinutes();
|
|
27
27
|
var nowMilliSecond = nowTime.getTime();
|
|
28
28
|
var nowYear = nowTime.getFullYear();
|
|
29
29
|
var nowDate = nowTime.getDate();
|
|
@@ -56,11 +56,11 @@ var getTimeString = function getTimeString(time, nowTime) {
|
|
|
56
56
|
if (timeYear === nowYear) {
|
|
57
57
|
var _dateStr = months[timeMonth - 1] + (_getLocale.isEn ? " ".concat(timeDate, " ") : "".concat(timeDate, "\u65E5"));
|
|
58
58
|
|
|
59
|
-
return "".concat(_dateStr, " "
|
|
59
|
+
return "".concat(_dateStr, " ", "".concat(timeHours, ":").concat(timeMinutes));
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
var dateStr = (_getLocale.isEn ? "" : "".concat(timeYear, "\u5E74")) + months[timeMonth - 1] + (_getLocale.isEn ? " ".concat(timeDate, " ") : "".concat(timeDate, "\u65E5")) + (_getLocale.isEn ? ",".concat(timeYear) : "");
|
|
63
|
-
return "".concat(dateStr, " "
|
|
63
|
+
return "".concat(dateStr, " ", "".concat(timeHours, ":").concat(timeMinutes));
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
exports.getTimeString = getTimeString;
|