@titaui/pc 1.10.5 → 1.10.6-3.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 +1 -1
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +6 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +22 -16
- package/lib/components/communication/index.css +50 -10
- package/lib/components/communication/index.js +86 -30
- package/lib/components/communication/style.js +8 -6
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +3 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +8 -7
- package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +44 -27
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +43 -31
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +5 -33
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +58 -18
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +31 -21
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +56 -44
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +52 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +39 -27
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +25 -29
- package/lib/components/dynamic/dynamic-item/dynamic-learning/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +10 -18
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +15 -30
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +31 -14
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +14 -25
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +13 -55
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +33 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +13 -24
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +56 -31
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +78 -34
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +29 -32
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +12 -18
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +20 -22
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +42 -29
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +8 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +23 -66
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +8 -19
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +59 -36
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +32 -28
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +11 -25
- package/lib/components/dynamic/dynamic-item/index.css +59 -4
- package/lib/components/dynamic/dynamic-item/index.js +148 -17
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +2 -1
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +1 -1
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/file-list/components/single-file/index.css +14 -12
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +45 -9
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +8 -2
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +8 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +20 -1
- package/lib/components/okr-detail/e-list/index.js +1 -0
- package/lib/components/okr-detail/index.js +2 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.css +1 -0
- package/lib/components/progress/circle-progress/index.js +8 -3
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +131 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +94 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/video-modal/components/video-box/index.css +240 -0
- package/lib/components/video-modal/components/video-box/index.js +334 -0
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/close.png +0 -0
- package/lib/components/video-modal/img/full.svg +21 -0
- package/lib/components/video-modal/img/muted.svg +14 -0
- package/lib/components/video-modal/img/not-muted.svg +22 -0
- package/lib/components/video-modal/img/pause.svg +13 -0
- package/lib/components/video-modal/img/play.svg +18 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +83 -0
- package/lib/components/video-modal/index.js +182 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +40 -0
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/utils/bs-global.js +8 -8
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +2 -1
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getTodos = exports.getReplys = exports.getReminds = exports.getMessages = exports.getInforms = exports.getData = exports.clearReplys = exports.clearInforms = exports.changeLang = void 0;
|
|
6
|
+
exports.getTodos = exports.getReplys = exports.getReminds = exports.getMessages = exports.getInforms = exports.getData = exports.deleteReply = exports.clearReplys = exports.clearInforms = exports.changeLang = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -36,7 +36,7 @@ var getData = function getData(url, saveData) {
|
|
|
36
36
|
exports.getData = getData;
|
|
37
37
|
|
|
38
38
|
var getReplys = function getReplys(pageNum) {
|
|
39
|
-
return (0, _request.rget)("v1")("comment/messages?page_num=".concat(pageNum, "&page_size=10&status=1"));
|
|
39
|
+
return (0, _request.rget)("v1")("comment/messages?page_num=".concat(pageNum, "&page_size=10&status=1&clear=0"));
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
exports.getReplys = getReplys;
|
|
@@ -65,6 +65,12 @@ var clearReplys = function clearReplys() {
|
|
|
65
65
|
|
|
66
66
|
exports.clearReplys = clearReplys;
|
|
67
67
|
|
|
68
|
+
var deleteReply = function deleteReply(msgId) {
|
|
69
|
+
return (0, _request.rpost)("v1")("messages/clear?msgId=".concat(msgId));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
exports.deleteReply = deleteReply;
|
|
73
|
+
|
|
68
74
|
var getMessages = function getMessages() {
|
|
69
75
|
var nowTime = new Date();
|
|
70
76
|
var year = nowTime.getFullYear();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _useGlobalState = _interopRequireDefault(require("../../hooks/useGlobalState"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var useGlobalValue = (0, _useGlobalState["default"])(0);
|
|
13
|
+
var _default = useGlobalValue;
|
|
14
|
+
exports["default"] = _default;
|
|
@@ -75,7 +75,7 @@ function OScore(props) {
|
|
|
75
75
|
refreshAll = _useContext.refreshAll;
|
|
76
76
|
|
|
77
77
|
var _useState3 = (0, _react.useState)({
|
|
78
|
-
score: score
|
|
78
|
+
score: Number(score) === 1 ? "1" : Number(score).toFixed(2) * 1
|
|
79
79
|
}),
|
|
80
80
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
81
81
|
formFiedlsValue = _useState4[0],
|
|
@@ -85,7 +85,7 @@ function OScore(props) {
|
|
|
85
85
|
var formRef = (0, _react.useRef)();
|
|
86
86
|
(0, _react.useEffect)(function () {
|
|
87
87
|
setFormFiedlsValue({
|
|
88
|
-
score: score
|
|
88
|
+
score: Number(score) === 1 ? "1" : Number(score).toFixed(2) * 1
|
|
89
89
|
});
|
|
90
90
|
}, [score]);
|
|
91
91
|
|
|
@@ -115,9 +115,7 @@ function OScore(props) {
|
|
|
115
115
|
} else {
|
|
116
116
|
_toast["default"].Error(res.Message || "".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_Fail")));
|
|
117
117
|
}
|
|
118
|
-
})["catch"](function (
|
|
119
|
-
console.log(err);
|
|
120
|
-
|
|
118
|
+
})["catch"](function () {
|
|
121
119
|
_toast["default"].Error("".concat((0, _getLocale.getLocale)("OKR_MyO_Ew_Fail")));
|
|
122
120
|
});
|
|
123
121
|
};
|
|
@@ -133,7 +131,7 @@ function OScore(props) {
|
|
|
133
131
|
score: score,
|
|
134
132
|
onClick: changeOScore
|
|
135
133
|
}, restProps)), /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
136
|
-
title: "
|
|
134
|
+
title: "".concat((0, _getLocale.getLocale)("Mod_Objective")).concat((0, _getLocale.getLocale)("Per_Ass_New_Appr_detail_Scor")),
|
|
137
135
|
visible: visible,
|
|
138
136
|
animation: "slide-fade",
|
|
139
137
|
maskAnimation: "fade",
|
|
@@ -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 _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -17,10 +17,13 @@ require("./index.css");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
var EEmpty = function EEmpty(props) {
|
|
21
21
|
var index = props.index;
|
|
22
22
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
23
|
key: index,
|
|
24
24
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-empty-node"))
|
|
25
|
-
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject")
|
|
26
|
-
}
|
|
25
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject"));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var _default = EEmpty;
|
|
29
|
+
exports["default"] = _default;
|
|
@@ -120,6 +120,9 @@ function _default(props) {
|
|
|
120
120
|
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(data.id)));
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
+
var workApplyType = data.workApplyType,
|
|
124
|
+
workApplyStatus = data.workApplyStatus;
|
|
125
|
+
var isCreate = (workApplyStatus === 1 || workApplyStatus === 3 || workApplyStatus === 4) && workApplyType === 48;
|
|
123
126
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
127
|
key: index,
|
|
125
128
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node"))
|
|
@@ -130,10 +133,14 @@ function _default(props) {
|
|
|
130
133
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
131
134
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title ")),
|
|
132
135
|
onClick: openProjectDetail
|
|
136
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-name "))
|
|
133
138
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
134
139
|
text: (0, _helpers.escapeHtml)(title),
|
|
135
140
|
isPercent: true
|
|
136
|
-
})), /*#__PURE__*/_react["default"].createElement("
|
|
141
|
+
})), isCreate && /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-title-approvaling"))
|
|
143
|
+
}, (0, _getLocale.getLocale)('Pro_MyS_Establishment'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
144
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions"))
|
|
138
145
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
139
146
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-project-node-actions-user"))
|
|
@@ -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,6 +158,25 @@
|
|
|
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
181
|
color: #BFC7D5 !important;
|
|
163
182
|
}
|
|
@@ -124,6 +124,7 @@ function _default(props) {
|
|
|
124
124
|
keyWord: searchKey
|
|
125
125
|
})
|
|
126
126
|
}).then(function (krs) {
|
|
127
|
+
debugger;
|
|
127
128
|
var formatKrs = (0, _util.formatEListDataToSelectTree)(krs, okrId, (0, _util.getIfInitCondition)(selectName, checkedStatus, selectUsers, searchKey));
|
|
128
129
|
var expandedKrEs = (formatKrs.krsEList || []).map(function (it) {
|
|
129
130
|
return it.key;
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -35,7 +35,9 @@ function CircleProgress(props) {
|
|
|
35
35
|
_props$showTextConten = props.showTextContent,
|
|
36
36
|
showTextContent = _props$showTextConten === void 0 ? true : _props$showTextConten,
|
|
37
37
|
_props$textcolor = props.textcolor,
|
|
38
|
-
textcolor = _props$textcolor === void 0 ? "#89919F" : _props$textcolor
|
|
38
|
+
textcolor = _props$textcolor === void 0 ? "#89919F" : _props$textcolor,
|
|
39
|
+
_props$textClass = props.textClass,
|
|
40
|
+
textClass = _props$textClass === void 0 ? "" : _props$textClass;
|
|
39
41
|
var p = percent > 100 ? 100 : percent;
|
|
40
42
|
var c = Math.round((size - width * 2) * Math.PI);
|
|
41
43
|
var remainC = Math.round(c * (100 - p) / 100);
|
|
@@ -83,7 +85,7 @@ function CircleProgress(props) {
|
|
|
83
85
|
text: "".concat(percent, "%"),
|
|
84
86
|
maxWidth: 50
|
|
85
87
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
|
-
className: "text-content",
|
|
88
|
+
className: "".concat(textClass, " text-content"),
|
|
87
89
|
style: {
|
|
88
90
|
marginLeft: 2,
|
|
89
91
|
color: textcolor
|
|
@@ -91,5 +93,8 @@ function CircleProgress(props) {
|
|
|
91
93
|
}, "".concat(percent, "%"))));
|
|
92
94
|
}
|
|
93
95
|
|
|
96
|
+
CircleProgress.defaultProps = {
|
|
97
|
+
textClass: ""
|
|
98
|
+
};
|
|
94
99
|
var _default = CircleProgress;
|
|
95
100
|
exports["default"] = _default;
|