@titaui/pc 1.10.6 → 1.10.8-2.beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.prettierignore +4 -4
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +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/index.js +3 -2
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +1 -0
- package/lib/components/dynamic/components/obj-status/utils.js +1 -1
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
- package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +27 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +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/export-modules/okr-menus/subordinate-menus/index.js +34 -12
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +22 -8
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-name.js +11 -4
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +11 -5
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +40 -44
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +207 -195
- package/lib/components/okr-detail/e-list/index.js +70 -24
- package/lib/components/okr-detail/e-list/util.js +11 -2
- package/lib/components/okr-detail/index.js +4 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/okr-progress-detail/index.css +11 -10
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-detail/utils.js +4 -4
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.js +1 -1
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/scrollbar/index.js +67 -9
- package/lib/components/scrollbar/scroll-mask/index.css +29 -0
- package/lib/components/scrollbar/scroll-mask/index.js +152 -0
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +142 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +102 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/tree/index.css +3 -2
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/upload-photo-modal/request-api.js +1 -17
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
- package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
- package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
- package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
- package/lib/components/video-modal/img/muted.svg +8 -10
- package/lib/components/video-modal/img/not-muted.svg +17 -11
- package/lib/components/video-modal/img/pause.svg +7 -11
- package/lib/components/video-modal/img/play.svg +13 -11
- package/lib/components/video-modal/index.css +38 -168
- package/lib/components/video-modal/index.js +104 -244
- package/lib/components/video-modal/utils.js +2 -2
- package/lib/components/wechat-btn/index.css +10 -0
- package/lib/components/wechat-btn/index.js +232 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +39 -7
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/group-management/tree/group-form/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +10 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/pages/personal-info/request-api.js +1 -1
- package/lib/utils/auth.js +15 -5
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +82 -2
- package/lib/utils/tools.js +11 -2
- package/package.json +121 -101
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/invite-people/img/invite-people.png +0 -0
- package/lib/components/video-modal/img/play.png +0 -0
|
@@ -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 {
|
|
@@ -17,6 +17,8 @@ var _header = _interopRequireDefault(require("./components/header"));
|
|
|
17
17
|
|
|
18
18
|
var _tabs = _interopRequireWildcard(require("../tabs"));
|
|
19
19
|
|
|
20
|
+
var _request = require("../../utils/request");
|
|
21
|
+
|
|
20
22
|
var _tabPanelContent = _interopRequireDefault(require("./components/tab-panel-content"));
|
|
21
23
|
|
|
22
24
|
var _baseInfo = _interopRequireDefault(require("./base-info"));
|
|
@@ -422,5 +424,7 @@ function OkrDetail(props) {
|
|
|
422
424
|
}))));
|
|
423
425
|
}
|
|
424
426
|
|
|
427
|
+
OkrDetail.EList = _eList["default"];
|
|
428
|
+
OkrDetail.CommonContext = _context.CommonContext;
|
|
425
429
|
var _default = OkrDetail;
|
|
426
430
|
exports["default"] = _default;
|
|
@@ -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;
|
|
@@ -28,38 +28,31 @@ var getOSetting = function getOSetting() {
|
|
|
28
28
|
key: 2,
|
|
29
29
|
tooltip: (0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_SubO")
|
|
30
30
|
}],
|
|
31
|
-
getRecommandText: function getRecommandText(
|
|
32
|
-
var autoUpdate = arguments.length >
|
|
33
|
-
var updateWay = arguments.length >
|
|
31
|
+
getRecommandText: function getRecommandText() {
|
|
32
|
+
var autoUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
33
|
+
var updateWay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
34
|
+
var recommandProgressObj = arguments.length > 2 ? arguments[2] : undefined;
|
|
34
35
|
|
|
35
36
|
if (autoUpdate) {
|
|
36
|
-
if (updateWay
|
|
37
|
+
if (updateWay == 1) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
37
38
|
className: "auto-update__recommand-tip"
|
|
38
|
-
}, (0, _getLocale.getLocale)(
|
|
39
|
-
if (updateWay
|
|
39
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Automatic'));
|
|
40
|
+
if (updateWay == 2) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
40
41
|
className: "auto-update__recommand-tip"
|
|
41
|
-
}, (0, _getLocale.getLocale)(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
textArr.push("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_SubobjCom")).concat(childOkrProgress).concat((0, _getLocale.getLocale)("OKR_MyO_Pop_Upd_Percentage")));
|
|
42
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_calculationSubO'));
|
|
43
|
+
} else {
|
|
44
|
+
var childOkrProgress = recommandProgressObj.childOkrProgress,
|
|
45
|
+
childkrProgress = recommandProgressObj.childkrProgress;
|
|
46
|
+
var textArr = [];
|
|
47
|
+
childkrProgress !== -1 && textArr.push("KR\u5B8C\u6210\u5EA6".concat(childkrProgress, "%"));
|
|
48
|
+
childOkrProgress !== -1 && textArr.push("".concat((0, _getLocale.getLocale)('OKR_MyO_Ew_SubobjCom')).concat(childOkrProgress, "%"));
|
|
49
|
+
if (textArr.length == 0) return '';
|
|
50
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
51
|
+
className: "auto-update__recommand-icon"
|
|
52
|
+
}, (0, _getLocale.getLocale)('Per_Ass_Pop_title_Recommend')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
53
|
+
className: "auto-update__recommand-tip"
|
|
54
|
+
}, "\uFF08", textArr.join(','), "\uFF09"));
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
if (textArr.length === 0) return "";
|
|
58
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
|
-
className: "auto-update__recommand-icon"
|
|
60
|
-
}, (0, _getLocale.getLocale)("Per_Ass_Pop_title_Recommend")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
|
-
className: "auto-update__recommand-tip"
|
|
62
|
-
}, "\uFF08", textArr.join(","), "\uFF09"));
|
|
63
56
|
}
|
|
64
57
|
};
|
|
65
58
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _openData = require("../../../utils/open-data");
|
|
9
9
|
|
|
@@ -13,12 +13,38 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
13
13
|
|
|
14
14
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
15
15
|
|
|
16
|
-
function
|
|
17
|
-
|
|
16
|
+
var getOpenData = function getOpenData(_ref) {
|
|
17
|
+
var id = _ref.id,
|
|
18
|
+
name = _ref.name,
|
|
19
|
+
type = _ref.type;
|
|
20
|
+
var openId = (0, _openData.getOpenId)(id, type);
|
|
21
|
+
if (!window.WWOpenData || !openId) return Promise.resolve(name);
|
|
22
|
+
return new Promise(function (resolve, reject) {
|
|
23
|
+
window.WWOpenData.prefetch({
|
|
24
|
+
items: [{
|
|
25
|
+
id: openId,
|
|
26
|
+
type: type
|
|
27
|
+
}]
|
|
28
|
+
}, function (err, data) {
|
|
29
|
+
if (err) {
|
|
30
|
+
return reject(err);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (data && data.items[0]) {
|
|
34
|
+
resolve(data.items[0].data);
|
|
35
|
+
} else {
|
|
36
|
+
resolve(name);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
function openDataPainter(_x, _x2, _x3) {
|
|
43
|
+
return _openDataPainter.apply(this, arguments);
|
|
18
44
|
}
|
|
19
45
|
|
|
20
|
-
function
|
|
21
|
-
|
|
46
|
+
function _openDataPainter() {
|
|
47
|
+
_openDataPainter = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(ctx, openDataParams, lineHeight) {
|
|
22
48
|
var maxWidth,
|
|
23
49
|
name,
|
|
24
50
|
_ctx$measureText,
|
|
@@ -69,27 +95,8 @@ function _ref() {
|
|
|
69
95
|
}
|
|
70
96
|
}, _callee);
|
|
71
97
|
}));
|
|
72
|
-
return
|
|
98
|
+
return _openDataPainter.apply(this, arguments);
|
|
73
99
|
}
|
|
74
100
|
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
name = _ref2.name,
|
|
78
|
-
type = _ref2.type;
|
|
79
|
-
var openId = (0, _openData.getOpenId)(id, type);
|
|
80
|
-
if (!window.WWOpenData || !openId) return Promise.resolve(name);
|
|
81
|
-
return new Promise(function (resolve, reject) {
|
|
82
|
-
window.WWOpenData.prefetch({
|
|
83
|
-
items: [{
|
|
84
|
-
id: openId,
|
|
85
|
-
type: type
|
|
86
|
-
}]
|
|
87
|
-
}, function (err, data) {
|
|
88
|
-
if (err) {
|
|
89
|
-
return reject(err);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
resolve(data.items[0].data);
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
};
|
|
101
|
+
var _default = openDataPainter;
|
|
102
|
+
exports["default"] = _default;
|
|
@@ -57,23 +57,23 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
57
57
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
58
58
|
|
|
59
59
|
var Fields = _form["default"].Fields;
|
|
60
|
-
var precls =
|
|
60
|
+
var precls = "okr-cases-library__pay-window";
|
|
61
61
|
|
|
62
62
|
function SubmitDialog(props) {
|
|
63
63
|
var handleShowSubmitOkrWindow = props.handleShowSubmitOkrWindow,
|
|
64
64
|
isShowSubmitOkrWindow = props.isShowSubmitOkrWindow;
|
|
65
65
|
|
|
66
|
-
var _useState = (0, _react.useState)(
|
|
66
|
+
var _useState = (0, _react.useState)(""),
|
|
67
67
|
_useState2 = _slicedToArray(_useState, 2),
|
|
68
68
|
type = _useState2[0],
|
|
69
69
|
setType = _useState2[1];
|
|
70
70
|
|
|
71
|
-
var _useState3 = (0, _react.useState)(
|
|
71
|
+
var _useState3 = (0, _react.useState)(""),
|
|
72
72
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
73
73
|
job = _useState4[0],
|
|
74
74
|
setJob = _useState4[1];
|
|
75
75
|
|
|
76
|
-
var _useState5 = (0, _react.useState)(
|
|
76
|
+
var _useState5 = (0, _react.useState)(""),
|
|
77
77
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
78
78
|
scene = _useState6[0],
|
|
79
79
|
setScene = _useState6[1];
|
|
@@ -93,11 +93,11 @@ function SubmitDialog(props) {
|
|
|
93
93
|
|
|
94
94
|
if (!err.length) {
|
|
95
95
|
(0, _network.postSurvey)(body).then(function () {
|
|
96
|
-
_toast["default"].Success(
|
|
96
|
+
_toast["default"].Success("发送成功");
|
|
97
97
|
|
|
98
98
|
handleShowSubmitOkrWindow(false);
|
|
99
99
|
})["catch"](function () {
|
|
100
|
-
_toast["default"].Warning(
|
|
100
|
+
_toast["default"].Warning("发送失败");
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
};
|
|
@@ -130,7 +130,7 @@ function SubmitDialog(props) {
|
|
|
130
130
|
placeholder: "\u5982\u9500\u552E\u56E2\u961F",
|
|
131
131
|
require: true,
|
|
132
132
|
verifies: [{
|
|
133
|
-
tip:
|
|
133
|
+
tip: "OKR类型不能为空",
|
|
134
134
|
test: /\S/
|
|
135
135
|
}],
|
|
136
136
|
onChange: setType
|
|
@@ -140,7 +140,7 @@ function SubmitDialog(props) {
|
|
|
140
140
|
placeholder: "\u5982\u9500\u552EVP",
|
|
141
141
|
require: true,
|
|
142
142
|
verifies: [{
|
|
143
|
-
tip:
|
|
143
|
+
tip: "OKR岗位不能为空",
|
|
144
144
|
test: /\S/
|
|
145
145
|
}],
|
|
146
146
|
onChange: setJob
|
|
@@ -155,7 +155,7 @@ function SubmitDialog(props) {
|
|
|
155
155
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
156
|
className: "okr-cases-library__submitWindow-submitButton",
|
|
157
157
|
onClick: onSubmitButtonClick
|
|
158
|
-
}, (0, _getLocale.getLocale)(
|
|
158
|
+
}, (0, _getLocale.getLocale)("Pro_detail_Submission"))));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
function PayDialog(props) {
|
|
@@ -176,38 +176,38 @@ function PayDialog(props) {
|
|
|
176
176
|
var tenantType = window.BSGlobal.tenantInfo.tenantType; // 外部注冊賬號使用的產品ID不同
|
|
177
177
|
|
|
178
178
|
// 外部注冊賬號使用的產品ID不同
|
|
179
|
-
if (Version === 1 && tenantType === 3) return
|
|
180
|
-
return
|
|
179
|
+
if (Version === 1 && tenantType === 3) return "D9E059E4-4303-4EE2-9275-AE2FA74BBAA6";
|
|
180
|
+
return "60AFAD35-5273-4A06-B2F4-9A3193096BE7";
|
|
181
181
|
}),
|
|
182
182
|
_useState10 = _slicedToArray(_useState9, 1),
|
|
183
183
|
packageId = _useState10[0];
|
|
184
184
|
|
|
185
|
-
var _useState11 = (0, _react.useState)(
|
|
185
|
+
var _useState11 = (0, _react.useState)(""),
|
|
186
186
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
187
187
|
orderId = _useState12[0],
|
|
188
188
|
setOrderId = _useState12[1];
|
|
189
189
|
|
|
190
|
-
var _useState13 = (0, _react.useState)(
|
|
190
|
+
var _useState13 = (0, _react.useState)("wxPay"),
|
|
191
191
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
192
192
|
payCode = _useState14[0],
|
|
193
193
|
setPayCode = _useState14[1];
|
|
194
194
|
|
|
195
|
-
var _useState15 = (0, _react.useState)(
|
|
195
|
+
var _useState15 = (0, _react.useState)("微信"),
|
|
196
196
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
197
197
|
payName = _useState16[0],
|
|
198
198
|
setPayName = _useState16[1];
|
|
199
199
|
|
|
200
200
|
var _useState17 = (0, _react.useState)({
|
|
201
|
-
PayCode:
|
|
202
|
-
PayName:
|
|
201
|
+
PayCode: "directPay",
|
|
202
|
+
PayName: "支付宝"
|
|
203
203
|
}),
|
|
204
204
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
205
205
|
wxModel = _useState18[0],
|
|
206
206
|
setWxModel = _useState18[1];
|
|
207
207
|
|
|
208
208
|
var _useState19 = (0, _react.useState)({
|
|
209
|
-
PayCode:
|
|
210
|
-
PayName:
|
|
209
|
+
PayCode: "wxPay",
|
|
210
|
+
PayName: "微信"
|
|
211
211
|
}),
|
|
212
212
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
213
213
|
aliModel = _useState20[0],
|
|
@@ -259,9 +259,9 @@ function PayDialog(props) {
|
|
|
259
259
|
} else {
|
|
260
260
|
// 订单已支付
|
|
261
261
|
_titaUi.Modal.success({
|
|
262
|
-
title:
|
|
263
|
-
content:
|
|
264
|
-
okText:
|
|
262
|
+
title: "支付成功",
|
|
263
|
+
content: "OKR案例库已开通",
|
|
264
|
+
okText: "立即使用",
|
|
265
265
|
onOk: function () {
|
|
266
266
|
var _onOk = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
267
267
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -300,15 +300,17 @@ function PayDialog(props) {
|
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
var clickPayNowHandler = function clickPayNowHandler(e) {
|
|
303
|
-
if (payCode
|
|
303
|
+
if (payCode === "wxPay") {
|
|
304
304
|
e.preventDefault();
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
})
|
|
305
|
+
var path = window.location.href.split("#")[0];
|
|
306
|
+
var encode = encodeURIComponent("orderId=".concat(orderId, "&payCode=").concat(payCode, "&payName=").concat(payName));
|
|
307
|
+
window.open("".concat(path, "#/pay?").concat(encode), "_blank"); // postWxPayOrder({
|
|
308
|
+
// order_id: orderId,
|
|
309
|
+
// default_bank: payCode,
|
|
310
|
+
// default_bank_name: payName,
|
|
311
|
+
// }).then((res) => {
|
|
312
|
+
// window.open(res, '_blank')
|
|
313
|
+
// })
|
|
312
314
|
}
|
|
313
315
|
|
|
314
316
|
loopOrderInfo(orderId);
|
|
@@ -335,43 +337,45 @@ function PayDialog(props) {
|
|
|
335
337
|
return handleShowPayWindow(false);
|
|
336
338
|
},
|
|
337
339
|
style: {
|
|
338
|
-
width:
|
|
339
|
-
height:
|
|
340
|
+
width: "18px",
|
|
341
|
+
height: "18px"
|
|
340
342
|
}
|
|
341
343
|
}), /*#__PURE__*/_react["default"].createElement("p", {
|
|
342
344
|
className: "".concat(precls, "__head")
|
|
343
|
-
}, price, " \u8D2D\u4E70\u5343\u4EFD OKR \u6848\u4F8B\u5E93"), /*#__PURE__*/_react["default"].createElement("p", {
|
|
345
|
+
}, price, " ", "\u8D2D\u4E70\u5343\u4EFD OKR \u6848\u4F8B\u5E93"), /*#__PURE__*/_react["default"].createElement("p", {
|
|
344
346
|
className: "".concat(precls, "__detail")
|
|
345
347
|
}, "\u53EF\u67E5\u770B \u4F7F\u7528\u6848\u4F8B\u5E93\u6240\u6709\u884C\u4E1A\u7684\u6848\u4F8B", /*#__PURE__*/_react["default"].createElement("a", {
|
|
346
348
|
href: "https://club.tita.com/okr-examples",
|
|
347
349
|
target: "_blank",
|
|
348
350
|
rel: "noreferrer"
|
|
349
|
-
}, (0, _getLocale.getLocale)(
|
|
351
|
+
}, (0, _getLocale.getLocale)("Mod_Checkdetails"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
350
352
|
className: "".concat(precls, "__amount")
|
|
351
353
|
}, "\u5E94\u4ED8\u91D1\u989D\uFF1A", /*#__PURE__*/_react["default"].createElement("b", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
352
354
|
style: {
|
|
353
|
-
fontSize:
|
|
355
|
+
fontSize: "32px"
|
|
354
356
|
}
|
|
355
357
|
}, "29.8"), "\u5143/\u5E74")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
356
358
|
className: "".concat(precls, "__type")
|
|
357
359
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
358
|
-
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), "".concat(precls, "__commit-order--wx"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode
|
|
360
|
+
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), "".concat(precls, "__commit-order--wx"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode === (wxModel === null || wxModel === void 0 ? void 0 : wxModel.PayCode))),
|
|
359
361
|
onClick: function onClick() {
|
|
360
362
|
return onPayOrderChange(wxModel);
|
|
361
363
|
}
|
|
362
364
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
363
365
|
src: _wxPay["default"],
|
|
366
|
+
alt: "",
|
|
364
367
|
width: 20,
|
|
365
368
|
style: {
|
|
366
369
|
marginRight: 4
|
|
367
370
|
}
|
|
368
371
|
}), "\u5FAE\u4FE1\u652F\u4ED8"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
369
|
-
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode
|
|
372
|
+
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode === (aliModel === null || aliModel === void 0 ? void 0 : aliModel.PayCode))),
|
|
370
373
|
onClick: function onClick() {
|
|
371
374
|
return onPayOrderChange(aliModel);
|
|
372
375
|
}
|
|
373
376
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
374
377
|
src: _aliPay["default"],
|
|
378
|
+
alt: "",
|
|
375
379
|
width: 20,
|
|
376
380
|
style: {
|
|
377
381
|
marginRight: 4
|
|
@@ -19,7 +19,7 @@ function CircleProgress(props) {
|
|
|
19
19
|
_props$color = props.color,
|
|
20
20
|
color = _props$color === void 0 ? "#419BFF" : _props$color,
|
|
21
21
|
_props$percent = props.percent,
|
|
22
|
-
percent = _props$percent === void 0 ?
|
|
22
|
+
percent = _props$percent === void 0 ? 0 : _props$percent,
|
|
23
23
|
_props$width = props.width,
|
|
24
24
|
width = _props$width === void 0 ? 8 : _props$width,
|
|
25
25
|
_props$backgroundColo = props.backgroundColor,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var basicSchema = {
|
|
8
|
+
nodes: {
|
|
9
|
+
doc: {
|
|
10
|
+
content: "block+"
|
|
11
|
+
},
|
|
12
|
+
text: {
|
|
13
|
+
group: "inline"
|
|
14
|
+
},
|
|
15
|
+
hard_break: {
|
|
16
|
+
inline: true,
|
|
17
|
+
group: "inline",
|
|
18
|
+
selectable: false,
|
|
19
|
+
parseDOM: [{
|
|
20
|
+
tag: "br"
|
|
21
|
+
}],
|
|
22
|
+
toDOM: function toDOM() {
|
|
23
|
+
return ["br"];
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
paragraph: {
|
|
27
|
+
content: "inline*",
|
|
28
|
+
attrs: {
|
|
29
|
+
textAlign: {
|
|
30
|
+
"default": 'left'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
group: "block",
|
|
34
|
+
parseDOM: [{
|
|
35
|
+
tag: "p"
|
|
36
|
+
}],
|
|
37
|
+
toDOM: function toDOM(node) {
|
|
38
|
+
return ["p", {
|
|
39
|
+
style: "text-align:".concat(node.attrs["textAlign"])
|
|
40
|
+
}, 0];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
marks: {}
|
|
45
|
+
};
|
|
46
|
+
var _default = basicSchema;
|
|
47
|
+
exports["default"] = _default;
|