@titaui/pc 1.10.4 → 1.10.6-3.beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -2
- package/.prettierignore +1 -1
- package/lib/components/book-demo/utils.js +4 -0
- package/lib/components/button/default-button/index.css +10 -4
- package/lib/components/button/default-button/index.js +13 -2
- package/lib/components/change-okr-modal/index.js +108 -87
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/communication/CommunicationRecord.js +22 -16
- package/lib/components/communication/index.css +50 -10
- package/lib/components/communication/index.js +86 -30
- package/lib/components/communication/style.js +8 -6
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
- package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
- package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
- package/lib/components/dialog/index.css +4 -1
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.css +1 -1
- package/lib/components/drawer-manager/index.js +6 -1
- package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
- package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
- package/lib/components/dynamic/components/obj-status/index.css +3 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- package/lib/components/dynamic/constant.js +12 -2
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +8 -7
- package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -7
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +44 -27
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +43 -31
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +5 -33
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +58 -18
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +31 -21
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
- package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +56 -44
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +52 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +39 -27
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +25 -29
- package/lib/components/dynamic/dynamic-item/dynamic-learning/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +10 -18
- package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +15 -30
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +31 -14
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +14 -25
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +13 -55
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +33 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +13 -24
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +56 -31
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +78 -34
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +29 -32
- package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +12 -18
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +20 -22
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +42 -29
- package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +8 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +23 -66
- package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +8 -19
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +59 -36
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +32 -28
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +11 -25
- package/lib/components/dynamic/dynamic-item/index.css +59 -4
- package/lib/components/dynamic/dynamic-item/index.js +148 -17
- package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +2 -1
- package/lib/components/dynamic/dynamic-topping/item.js +8 -4
- package/lib/components/dynamic/dynamic.js +1 -1
- package/lib/components/dynamic/img/dynamic-operate.png +0 -0
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
- package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/e-status-dropdown/index.css +3 -0
- package/lib/components/e-status-dropdown/index.js +94 -0
- package/lib/components/file-list/components/single-file/index.css +14 -12
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.css +1 -0
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/help-card/image/not-try.png +0 -0
- package/lib/components/help-card/image/try.png +0 -0
- package/lib/components/help-card/index.css +31 -2
- package/lib/components/help-card/index.js +54 -17
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +45 -9
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
- package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
- package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
- package/lib/components/menus/images/okr-gongsi.svg +17 -0
- package/lib/components/nav-top/components/menu/index.css +24 -0
- package/lib/components/nav-top/components/menu/index.js +9 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
- package/lib/components/nav-top/components/user-message/index.css +4 -3
- package/lib/components/nav-top/components/user-message/index.js +33 -6
- package/lib/components/nav-top/request.apis.js +8 -2
- package/lib/components/nav-top/useGlobalValue.js +14 -0
- package/lib/components/okr-detail/components/header/o-score.js +4 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +27 -13
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +8 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +7 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +20 -1
- package/lib/components/okr-detail/e-list/index.js +23 -7
- package/lib/components/okr-detail/e-list/util.js +7 -2
- package/lib/components/okr-detail/index.js +2 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- package/lib/components/okr-flow/export-modal/index.js +3 -3
- package/lib/components/okr-progress-detail/index.js +5 -1
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/components/open-data-painter/index.js +5 -1
- package/lib/components/progress/circle-progress/index.css +1 -0
- package/lib/components/progress/circle-progress/index.js +8 -3
- package/lib/components/rich-editor/basic/schema.js +47 -0
- package/lib/components/rich-editor/consts/events.js +12 -0
- package/lib/components/rich-editor/enums.js +42 -0
- package/lib/components/rich-editor/index.js +58 -0
- package/lib/components/rich-editor/keymap.js +119 -0
- package/lib/components/rich-editor/keymaps/index.js +241 -0
- package/lib/components/rich-editor/models/controller.js +18 -0
- package/lib/components/rich-editor/models/editor.js +47 -0
- package/lib/components/rich-editor/models/plugin.js +20 -0
- package/lib/components/rich-editor/models/schema.js +121 -0
- package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
- package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
- package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
- package/lib/components/rich-editor/plugins/block/index.js +57 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
- package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
- package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
- package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
- package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
- package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
- package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
- package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
- package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
- package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
- package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
- package/lib/components/rich-editor/plugins/core/index.js +90 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
- package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
- package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
- package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
- package/lib/components/rich-editor/plugins/extension/index.js +18 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
- package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
- package/lib/components/rich-editor/plugins/index.js +44 -0
- package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
- package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
- package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
- package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
- package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
- package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
- package/lib/components/rich-editor/plugins/inline/index.js +83 -0
- package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
- package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
- package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
- package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
- package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
- package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
- package/lib/components/rich-editor/plugins/util.js +284 -0
- package/lib/components/rich-editor/react/reactNodeView.js +383 -0
- package/lib/components/rich-editor/react/uiProvider.js +185 -0
- package/lib/components/rich-editor/schemas/basic.js +309 -0
- package/lib/components/rich-editor/schemas/index.js +19 -0
- package/lib/components/rich-editor/schemas/list.js +342 -0
- package/lib/components/rich-editor/types/commond.js +5 -0
- package/lib/components/rich-editor/types/index.js +18 -0
- package/lib/components/rich-editor/ui/Popup/index.js +247 -0
- package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
- package/lib/components/rich-editor/ui/editor/index.css +178 -0
- package/lib/components/rich-editor/ui/editor/index.js +153 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
- package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
- package/lib/components/rich-editor/utils/browser.js +35 -0
- package/lib/components/rich-editor/utils/commands.js +266 -0
- package/lib/components/rich-editor/utils/document.js +211 -0
- package/lib/components/rich-editor/utils/event.js +79 -0
- package/lib/components/rich-editor/utils/helpers.js +16 -0
- package/lib/components/rich-editor/utils/mark.js +168 -0
- package/lib/components/rich-editor/utils/slice.js +85 -0
- package/lib/components/rich-editor/utils/toolbar.js +228 -0
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/components/superset-charts/components/chart/index.js +54 -0
- package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +131 -0
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
- package/lib/components/superset-charts/index.js +13 -0
- package/lib/components/superset-charts/interface.js +5 -0
- package/lib/components/superset-charts/utils/axios.js +94 -0
- package/lib/components/toast/index.js +5 -17
- package/lib/components/upload/index.js +4 -2
- package/lib/components/upload/util.js +2 -0
- package/lib/components/user-selector/empty/index.css +6 -6
- package/lib/components/user-selector/selected-panel/index.css +3 -3
- package/lib/components/video-modal/components/video-box/index.css +240 -0
- package/lib/components/video-modal/components/video-box/index.js +334 -0
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/close.png +0 -0
- package/lib/components/video-modal/img/full.svg +21 -0
- package/lib/components/video-modal/img/muted.svg +14 -0
- package/lib/components/video-modal/img/not-muted.svg +22 -0
- package/lib/components/video-modal/img/pause.svg +13 -0
- package/lib/components/video-modal/img/play.svg +18 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +83 -0
- package/lib/components/video-modal/index.js +182 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
- package/lib/hooks/useGlobalState.js +63 -0
- package/lib/index.js +40 -0
- package/lib/pages/aha2021/img/canceled.svg +13 -0
- package/lib/pages/aha2021/img/not-try.png +0 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +52 -0
- package/lib/pages/aha2021/index.js +73 -14
- package/lib/pages/new-okr-list/header/index.js +2 -1
- package/lib/pages/new-okr-list/index.js +3 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/utils/bs-global.js +13 -9
- package/lib/utils/helpers.js +7 -1
- package/lib/utils/open-data.js +2 -1
- package/lib/utils/tools.js +11 -2
- package/package.json +120 -101
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
- package/lib/components/invite-people/img/invite-people.png +0 -0
|
@@ -13,12 +13,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
16
|
+
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n flex: 1;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
exports.MBlogBox = MBlogBox;
|
|
20
20
|
|
|
21
|
-
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius:
|
|
21
|
+
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius: 12px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 120px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
|
|
22
22
|
|
|
23
23
|
exports.DivMblogContent = DivMblogContent;
|
|
24
24
|
|
|
@@ -47,7 +47,7 @@ var Tips = _styledComponents["default"].div(_templateObject7 || (_templateObject
|
|
|
47
47
|
|
|
48
48
|
exports.Tips = Tips;
|
|
49
49
|
|
|
50
|
-
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding:
|
|
50
|
+
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding: 16px 0 2px 0;\n font-size: 13px;\n line-height: 20px;\n color: #565E66;\n background-color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))); // 左侧按钮
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
exports.MblogActionWrapper = MblogActionWrapper;
|
|
@@ -66,7 +66,7 @@ var IconSpan = _styledComponents["default"].span(_templateObject11 || (_template
|
|
|
66
66
|
|
|
67
67
|
exports.IconSpan = IconSpan;
|
|
68
68
|
|
|
69
|
-
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width:
|
|
69
|
+
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width: 80px;\n height: 32px;\n box-sizing: border-box;\n border-radius: 18px;\n border: none;\n }\n"])));
|
|
70
70
|
|
|
71
71
|
exports.RightBtnGroupWrapper = RightBtnGroupWrapper;
|
|
72
72
|
|
|
@@ -64,7 +64,7 @@ var DemoMenus = function DemoMenus(props) {
|
|
|
64
64
|
setExpandedKeys = _useState4[1];
|
|
65
65
|
|
|
66
66
|
var _useState5 = (0, _react.useState)(function () {
|
|
67
|
-
okrMenusData.current = new _menus["default"]();
|
|
67
|
+
okrMenusData.current = new _menus["default"](isManager);
|
|
68
68
|
return okrMenusData.current.getMenus();
|
|
69
69
|
}),
|
|
70
70
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
@@ -72,7 +72,7 @@ var DemoMenus = function DemoMenus(props) {
|
|
|
72
72
|
setMenus = _useState6[1];
|
|
73
73
|
|
|
74
74
|
(0, _react.useEffect)(function () {
|
|
75
|
-
okrMenusData.current = new _menus["default"](isManager
|
|
75
|
+
okrMenusData.current = new _menus["default"](isManager);
|
|
76
76
|
setMenus(okrMenusData.current.getMenus());
|
|
77
77
|
setExpandedKeys(["demofree"]);
|
|
78
78
|
}, [isManager]);
|
|
@@ -25,7 +25,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
25
25
|
_createClass(_default, [{
|
|
26
26
|
key: "highlight",
|
|
27
27
|
value: function highlight(cb) {
|
|
28
|
-
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);
|
|
28
|
+
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isChart",
|
|
@@ -33,6 +33,30 @@ var _default = /*#__PURE__*/function () {
|
|
|
33
33
|
var pathname = this.history.location.pathname;
|
|
34
34
|
return pathname.match(/demofree\/charts/);
|
|
35
35
|
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "isRechargeStatus",
|
|
38
|
+
value: function isRechargeStatus() {
|
|
39
|
+
var pathname = this.history.location.pathname;
|
|
40
|
+
return pathname.match(/demofree\/recharge\/status/);
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
key: "isDueDateOrder",
|
|
44
|
+
value: function isDueDateOrder() {
|
|
45
|
+
var pathname = this.history.location.pathname;
|
|
46
|
+
return pathname.match(/demofree\/recharge\/order/);
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
key: "isRechargeList",
|
|
50
|
+
value: function isRechargeList() {
|
|
51
|
+
var pathname = this.history.location.pathname;
|
|
52
|
+
return pathname.match(/demofree\/recharge\/list/);
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
key: "isRechargeStatistics",
|
|
56
|
+
value: function isRechargeStatistics() {
|
|
57
|
+
var pathname = this.history.location.pathname;
|
|
58
|
+
return pathname.match(/demofree\/recharge\/statistics/);
|
|
59
|
+
}
|
|
36
60
|
}, {
|
|
37
61
|
key: "isUnAssigned",
|
|
38
62
|
value: function isUnAssigned() {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_STATUS = exports.PAGE_RECHARGE_STATISTICS = exports.PAGE_RECHARGE_LIST = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DUEDATE_ORDER = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
|
|
7
7
|
|
|
8
8
|
var _index = require("../../components/menu-tree/tree-node/index");
|
|
9
9
|
|
|
@@ -13,6 +13,16 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
13
13
|
|
|
14
14
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
15
|
|
|
16
|
+
var EManagerType;
|
|
17
|
+
|
|
18
|
+
(function (EManagerType) {
|
|
19
|
+
EManagerType[EManagerType["Sales"] = 0] = "Sales";
|
|
20
|
+
EManagerType[EManagerType["Manager"] = 1] = "Manager";
|
|
21
|
+
EManagerType[EManagerType["Supervisor"] = 2] = "Supervisor";
|
|
22
|
+
EManagerType[EManagerType["ReCharge"] = 3] = "ReCharge";
|
|
23
|
+
EManagerType[EManagerType["DemoFreeReadOnly"] = 4] = "DemoFreeReadOnly";
|
|
24
|
+
})(EManagerType || (EManagerType = {}));
|
|
25
|
+
|
|
16
26
|
var defaultRefObject = {
|
|
17
27
|
menus: [],
|
|
18
28
|
getMenus: function getMenus() {}
|
|
@@ -30,11 +40,17 @@ var PAGE_IGNORED_DEMOFREE = "ignore";
|
|
|
30
40
|
exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
|
|
31
41
|
var PAGE_CHARTS_DEMOFREE = "charts";
|
|
32
42
|
exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
|
|
43
|
+
var PAGE_RECHARGE_LIST = "rechargeList";
|
|
44
|
+
exports.PAGE_RECHARGE_LIST = PAGE_RECHARGE_LIST;
|
|
45
|
+
var PAGE_DUEDATE_ORDER = "dueDateOrder";
|
|
46
|
+
exports.PAGE_DUEDATE_ORDER = PAGE_DUEDATE_ORDER;
|
|
47
|
+
var PAGE_RECHARGE_STATISTICS = "rechargeStatistics";
|
|
48
|
+
exports.PAGE_RECHARGE_STATISTICS = PAGE_RECHARGE_STATISTICS;
|
|
49
|
+
var PAGE_RECHARGE_STATUS = "rechargeStatus";
|
|
50
|
+
exports.PAGE_RECHARGE_STATUS = PAGE_RECHARGE_STATUS;
|
|
33
51
|
|
|
34
52
|
var DemoMenuData = /*#__PURE__*/function () {
|
|
35
|
-
function DemoMenuData() {
|
|
36
|
-
var isManager = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
37
|
-
|
|
53
|
+
function DemoMenuData(isManager) {
|
|
38
54
|
_classCallCheck(this, DemoMenuData);
|
|
39
55
|
|
|
40
56
|
this.isManager = isManager;
|
|
@@ -43,44 +59,77 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
43
59
|
label: "任务状态",
|
|
44
60
|
key: "demofree",
|
|
45
61
|
href: this.isManager ? "#/demofree/list?selected=unassigned" : "#/demofree/list?selected=assigned",
|
|
46
|
-
isShow:
|
|
62
|
+
isShow: this.isManager !== EManagerType.ReCharge,
|
|
47
63
|
children: [{
|
|
48
64
|
icon: "",
|
|
49
65
|
label: "未分配",
|
|
50
66
|
key: "unassigned",
|
|
51
67
|
href: "#/demofree/list?selected=unassigned",
|
|
52
|
-
isShow: this.isManager
|
|
68
|
+
isShow: this.isManager === EManagerType.Manager
|
|
53
69
|
}, {
|
|
54
70
|
icon: "",
|
|
55
71
|
label: "已分配",
|
|
56
72
|
key: "assigned",
|
|
57
73
|
href: "#/demofree/list?selected=assigned",
|
|
58
|
-
isShow:
|
|
74
|
+
isShow: this.isManager !== EManagerType.ReCharge
|
|
59
75
|
}, {
|
|
60
76
|
icon: "",
|
|
61
77
|
label: "已预约",
|
|
62
78
|
key: "reserved",
|
|
63
79
|
href: "#/demofree/list?selected=reserved",
|
|
64
|
-
isShow:
|
|
80
|
+
isShow: this.isManager !== EManagerType.ReCharge
|
|
65
81
|
}, {
|
|
66
82
|
icon: "",
|
|
67
83
|
label: "已完成",
|
|
68
84
|
key: "done",
|
|
69
85
|
href: "#/demofree/list?selected=done",
|
|
70
|
-
isShow:
|
|
86
|
+
isShow: this.isManager !== EManagerType.ReCharge
|
|
71
87
|
}, {
|
|
72
88
|
icon: "",
|
|
73
89
|
label: "已忽略",
|
|
74
90
|
key: "ignore",
|
|
75
91
|
href: "#/demofree/list?selected=ignore",
|
|
76
|
-
isShow: this.isManager
|
|
92
|
+
isShow: this.isManager === EManagerType.Manager
|
|
77
93
|
}]
|
|
94
|
+
}, {
|
|
95
|
+
icon: "KH-help",
|
|
96
|
+
label: "客户续费",
|
|
97
|
+
key: "recharge",
|
|
98
|
+
href: "#/demofree/recharge",
|
|
99
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
|
|
100
|
+
children: [{
|
|
101
|
+
icon: "",
|
|
102
|
+
label: "客户",
|
|
103
|
+
key: PAGE_RECHARGE_LIST,
|
|
104
|
+
href: "#/demofree/recharge/list",
|
|
105
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
106
|
+
}, {
|
|
107
|
+
icon: "",
|
|
108
|
+
label: "到期订单",
|
|
109
|
+
key: PAGE_DUEDATE_ORDER,
|
|
110
|
+
href: "#/demofree/recharge/order",
|
|
111
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
112
|
+
} // {
|
|
113
|
+
// icon: "",
|
|
114
|
+
// label: "续费状态",
|
|
115
|
+
// key: PAGE_RECHARGE_STATUS,
|
|
116
|
+
// href: "#/demofree/recharge/status",
|
|
117
|
+
// isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
|
|
118
|
+
// },
|
|
119
|
+
// {
|
|
120
|
+
// icon: "",
|
|
121
|
+
// label: "数据统计",
|
|
122
|
+
// key: PAGE_RECHARGE_STATISTICS,
|
|
123
|
+
// href: "#/demofree/recharge/statistics",
|
|
124
|
+
// isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
|
|
125
|
+
// },
|
|
126
|
+
]
|
|
78
127
|
}, {
|
|
79
128
|
icon: "KH-help",
|
|
80
129
|
label: "预约演示报表",
|
|
81
130
|
key: "charts",
|
|
82
131
|
href: "#/demofree/charts",
|
|
83
|
-
isShow: this.isManager,
|
|
132
|
+
isShow: this.isManager === EManagerType.Manager,
|
|
84
133
|
children: [],
|
|
85
134
|
type: _index.MENU_ITEM_NOE
|
|
86
135
|
}];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>OKR-gongsi</title>
|
|
4
|
+
<g id="新" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="OKR-gongsi">
|
|
6
|
+
<rect id="矩形" fill-opacity="0" fill="#FFFFFF" x="0" y="0" width="18" height="18"></rect>
|
|
7
|
+
<g id="编组" transform="translate(3.000000, 1.875000)" fill="#141C28">
|
|
8
|
+
<path d="M4.10139571,0.207109154 C5.30548811,-0.332079068 6.71387503,0.21781894 7.24711594,1.43534073 C7.38177811,1.74280798 7.45134383,2.07535848 7.45134383,2.41162737 L7.45134383,2.41162737 L7.45134383,4.57179909 L8.31469627,5.11190194 C8.50972555,5.210975 8.64355884,5.41510258 8.64355884,5.65083722 C8.64355884,5.98373015 8.37667242,6.25359319 8.04745134,6.25359319 C7.93433435,6.25359319 7.82857621,6.22173481 7.73847398,6.16640762 L7.737,6.169 L6.54112363,5.41956638 C6.39501401,5.32796807 6.29659069,5.17813983 6.26784152,5.01002569 L6.25912882,4.90728246 L6.25912882,2.41162737 C6.25912882,2.24349293 6.22434596,2.07721768 6.15701487,1.92348405 L6.15701487,1.92348405 L6.14681255,1.9008124 C5.87280554,1.30793451 5.17867538,1.04314408 4.58415476,1.30936826 L4.58415476,1.30936826 L1.90167098,2.5105748 C1.47035103,2.70371832 1.19221501,3.13584938 1.19221501,3.61283391 L1.19221501,3.61283391 L1.19221501,11.8389761 C1.19221501,12.504762 1.72598786,13.0445078 2.38443003,13.0445078 L2.38443003,13.0445078 L7.995,13.044 L8.04745134,14.2401098 L9.74192999,14.2409586 C9.68587029,14.2458533 9.62924586,14.2488023 9.57212243,14.249738 L9.57212243,14.249738 L9.5377201,14.25 L2.38443003,14.25 C1.06754569,14.25 0,13.1705478 0,11.8389761 L0,11.8389761 L0,3.61283391 C0,2.65886485 0.556272039,1.79460272 1.41891194,1.4083157 L1.41891194,1.4083157 Z" id="形状结合" fill-rule="nonzero"></path>
|
|
9
|
+
<rect id="矩形" x="3.15" y="3.26067444" width="1.2" height="4.8" rx="0.6"></rect>
|
|
10
|
+
</g>
|
|
11
|
+
<g id="编组" transform="translate(7.275000, 8.775000)">
|
|
12
|
+
<path d="M2.65951382,0.134116403 L1.38451382,0.868914715 C0.643634524,1.29589264 0.1875,2.08321551 0.1875,2.93505159 L0.1875,4.41494841 C0.1875,5.26678449 0.643634524,6.05410736 1.38451382,6.48108529 L2.65951382,7.2158836 C3.40359267,7.64470547 4.32140733,7.64470547 5.06548618,7.2158836 L6.34048618,6.48108529 C7.08136548,6.05410736 7.5375,5.26678449 7.5375,4.41494841 L7.5375,2.93505159 C7.5375,2.08321551 7.08136548,1.29589264 6.34048618,0.868914715 L5.06548618,0.134116403 C4.32140733,-0.294705468 3.40359267,-0.294705468 2.65951382,0.134116403 Z M4.46399309,1.16718484 L5.73899309,1.90198315 C6.10943274,2.11547211 6.3375,2.50913355 6.3375,2.93505159 L6.3375,4.41494841 C6.3375,4.84086645 6.10943274,5.23452789 5.73899309,5.44801685 L4.46399309,6.18281516 C4.09195366,6.3972261 3.63304634,6.3972261 3.26100691,6.18281516 L1.98600691,5.44801685 C1.61556726,5.23452789 1.3875,4.84086645 1.3875,4.41494841 L1.3875,2.93505159 C1.3875,2.50913355 1.61556726,2.11547211 1.98600691,1.90198315 L3.26100691,1.16718484 C3.63304634,0.952773904 4.09195366,0.952773904 4.46399309,1.16718484 Z" id="多边形" fill="#141C28" fill-rule="nonzero" transform="translate(3.862500, 3.675000) rotate(-90.000000) translate(-3.862500, -3.675000) "></path>
|
|
13
|
+
<circle id="椭圆形" stroke="#2879FF" stroke-width="1.05" cx="3.8625" cy="3.675" r="1.0875"></circle>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</svg>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
font-weight: 600;
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
color: #ffffff;
|
|
16
|
+
position: relative;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.titaui-nav-top-menu__menu-show:hover {
|
|
@@ -38,6 +39,29 @@
|
|
|
38
39
|
transform: translate(-50%, 0);
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
.titaui-nav-top-menu__menu--hasNum {
|
|
43
|
+
position: absolute;
|
|
44
|
+
right: 4px;
|
|
45
|
+
top: 1px;
|
|
46
|
+
background: #fe5042;
|
|
47
|
+
border-radius: 18px;
|
|
48
|
+
height: 16px;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
color: #ffffff;
|
|
51
|
+
line-height: 18px;
|
|
52
|
+
padding: 0 4px;
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
min-width: 8px;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-nav-top-menu__menu--hasNum-active {
|
|
61
|
+
right: 5px;
|
|
62
|
+
top: 3px;
|
|
63
|
+
}
|
|
64
|
+
|
|
41
65
|
.titaui-nav-top-menu__hide-menus {
|
|
42
66
|
display: flex;
|
|
43
67
|
flex-direction: column;
|
|
@@ -19,6 +19,8 @@ var _popup = _interopRequireDefault(require("../../../popup"));
|
|
|
19
19
|
|
|
20
20
|
var _conditionRender = _interopRequireDefault(require("../../../../components/condition-render"));
|
|
21
21
|
|
|
22
|
+
var _useGlobalValue3 = _interopRequireDefault(require("../../useGlobalValue"));
|
|
23
|
+
|
|
22
24
|
require("./index.css");
|
|
23
25
|
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -60,6 +62,10 @@ var Menu = function Menu(_ref) {
|
|
|
60
62
|
popupVisible = _useState2[0],
|
|
61
63
|
setPopupVisible = _useState2[1];
|
|
62
64
|
|
|
65
|
+
var _useGlobalValue = (0, _useGlobalValue3["default"])(),
|
|
66
|
+
_useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
|
|
67
|
+
feedNum = _useGlobalValue2[0];
|
|
68
|
+
|
|
63
69
|
var containerRef = (0, _react.useRef)();
|
|
64
70
|
var apiPath = (0, _bsGlobal.getBSGlobal)("apiPath");
|
|
65
71
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
@@ -94,7 +100,9 @@ var Menu = function Menu(_ref) {
|
|
|
94
100
|
onClick: function onClick() {
|
|
95
101
|
return handleTracker(menu);
|
|
96
102
|
}
|
|
97
|
-
}, menu.title
|
|
103
|
+
}, menu.title, menu.href === "#dynamic" && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href === "#dynamic"))
|
|
105
|
+
}, feedNum > 100 ? "99+" : feedNum))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
98
106
|
condition: menu.title === "Learning"
|
|
99
107
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
108
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
@@ -56,8 +56,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
56
56
|
var preCls = "titaui-user-message-msg-reply";
|
|
57
57
|
|
|
58
58
|
function Reply(props) {
|
|
59
|
-
var onItemClick = props.onItemClick
|
|
60
|
-
handleIntervalRequestMessageInfo = props.handleIntervalRequestMessageInfo;
|
|
59
|
+
var onItemClick = props.onItemClick;
|
|
61
60
|
|
|
62
61
|
var _useState = (0, _react.useState)([]),
|
|
63
62
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -108,6 +107,10 @@ function Reply(props) {
|
|
|
108
107
|
}
|
|
109
108
|
};
|
|
110
109
|
|
|
110
|
+
var handleDeleteReply = function handleDeleteReply(msgId) {
|
|
111
|
+
(0, _request.deleteReply)(msgId);
|
|
112
|
+
};
|
|
113
|
+
|
|
111
114
|
(0, _react.useEffect)(function () {
|
|
112
115
|
setTimeout(function () {
|
|
113
116
|
(0, _request.getReplys)(1).then(function (res) {
|
|
@@ -118,17 +121,14 @@ function Reply(props) {
|
|
|
118
121
|
|
|
119
122
|
setIsLoading(false);
|
|
120
123
|
});
|
|
121
|
-
(0, _request.clearReplys)().then(function () {
|
|
122
|
-
return handleIntervalRequestMessageInfo();
|
|
123
|
-
});
|
|
124
124
|
}, 300);
|
|
125
125
|
}, []);
|
|
126
|
-
console.log(replys);
|
|
127
126
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
128
127
|
condition: isLoading
|
|
129
128
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
130
129
|
src: _loading["default"],
|
|
131
|
-
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
130
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading")),
|
|
131
|
+
alt: "\u6B63\u5728\u8BF7\u6C42"
|
|
132
132
|
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
133
133
|
condition: replys.length !== 0
|
|
134
134
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
@@ -144,7 +144,8 @@ function Reply(props) {
|
|
|
144
144
|
return /*#__PURE__*/_react["default"].createElement(_replyItem["default"], {
|
|
145
145
|
item: item,
|
|
146
146
|
onItemClick: onItemClick,
|
|
147
|
-
replys: replys
|
|
147
|
+
replys: replys,
|
|
148
|
+
handleDeleteReply: handleDeleteReply
|
|
148
149
|
});
|
|
149
150
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
151
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
@@ -30,14 +30,17 @@ var preCls = "titaui-user-message-msg-reply";
|
|
|
30
30
|
function Reply(props) {
|
|
31
31
|
var item = props.item,
|
|
32
32
|
onItemClick = props.onItemClick,
|
|
33
|
-
replys = props.replys
|
|
33
|
+
replys = props.replys,
|
|
34
|
+
handleDeleteReply = props.handleDeleteReply;
|
|
34
35
|
|
|
35
36
|
var handleReplyClick = function handleReplyClick() {
|
|
36
|
-
|
|
37
|
+
if (onItemClick) {
|
|
38
|
+
onItemClick(false);
|
|
39
|
+
}
|
|
37
40
|
};
|
|
38
41
|
|
|
39
42
|
var getDescText = function getDescText() {
|
|
40
|
-
if (item.content.indexOf("@")
|
|
43
|
+
if (item.content.indexOf("@") !== -1) {
|
|
41
44
|
return "@我";
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -56,8 +59,15 @@ function Reply(props) {
|
|
|
56
59
|
return (0, _utils.deleteText)((0, _utils.htmlToText)(item.content));
|
|
57
60
|
};
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
var handleReplyItemClick = function handleReplyItemClick(msgId) {
|
|
63
|
+
handleDeleteReply(msgId);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: (0, _classnames["default"])("".concat(preCls, "__item"), _defineProperty({}, "".concat(preCls, "__item--scroll"), replys.length >= 4)),
|
|
68
|
+
onClick: function onClick() {
|
|
69
|
+
return handleReplyItemClick(item.msgId);
|
|
70
|
+
}
|
|
61
71
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
72
|
className: (0, _classnames["default"])("".concat(preCls, "__item-photo"))
|
|
63
73
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
@@ -26,15 +26,16 @@
|
|
|
26
26
|
|
|
27
27
|
.titaui-user-message__msg-total {
|
|
28
28
|
position: absolute;
|
|
29
|
-
background: #
|
|
30
|
-
|
|
31
|
-
border-radius: 8px;
|
|
29
|
+
background: #fe5042;
|
|
30
|
+
border-radius: 18px;
|
|
32
31
|
font-size: 12px;
|
|
33
32
|
color: #ffffff;
|
|
34
33
|
line-height: 16px;
|
|
35
34
|
padding: 0 4px;
|
|
36
35
|
top: -4px;
|
|
37
36
|
left: 12px;
|
|
37
|
+
text-align: center;
|
|
38
|
+
min-width: 8px;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.titaui-user-message__popup-right-top-enter {
|
|
@@ -27,6 +27,8 @@ var _request = require("../../request.apis");
|
|
|
27
27
|
|
|
28
28
|
var _bell3x = _interopRequireDefault(require("./images/bell@3x.png"));
|
|
29
29
|
|
|
30
|
+
var _useGlobalValue = _interopRequireDefault(require("../../useGlobalValue"));
|
|
31
|
+
|
|
30
32
|
require("./index.css");
|
|
31
33
|
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -82,6 +84,8 @@ function UserMessage() {
|
|
|
82
84
|
firstTab = _useState12[0],
|
|
83
85
|
setFirstTab = _useState12[1];
|
|
84
86
|
|
|
87
|
+
var setFeedNum = (0, _useGlobalValue["default"])()[1];
|
|
88
|
+
|
|
85
89
|
var handleShowInfos = function handleShowInfos() {
|
|
86
90
|
setPopupVisible(true);
|
|
87
91
|
};
|
|
@@ -137,18 +141,28 @@ function UserMessage() {
|
|
|
137
141
|
|
|
138
142
|
var enterpriseMedalMsg = indicators.filter(function (item) {
|
|
139
143
|
return item.messageType === 1 && item.indicatorType === 1969002;
|
|
140
|
-
});
|
|
144
|
+
});
|
|
141
145
|
|
|
142
|
-
enterpriseMedalMsg.length > 0
|
|
146
|
+
if (enterpriseMedalMsg.length > 0) {
|
|
147
|
+
window.util.upaasEnterpriseMedal();
|
|
148
|
+
} // upaas 勋章
|
|
143
149
|
|
|
144
|
-
var medalDetail = (0, _bsGlobal.getBSGlobal)("medalDetail"); // @ts-ignore
|
|
145
150
|
|
|
146
|
-
medalDetail
|
|
151
|
+
var medalDetail = (0, _bsGlobal.getBSGlobal)("medalDetail");
|
|
152
|
+
|
|
153
|
+
if (medalDetail) {
|
|
154
|
+
window.util.upaasMedal()(medalDetail);
|
|
155
|
+
} // 红包
|
|
156
|
+
|
|
147
157
|
|
|
148
158
|
var mRedPackIndicator = indicators.filter(function (item) {
|
|
149
159
|
return item.type === "mRedPackIndicator";
|
|
150
160
|
});
|
|
151
|
-
|
|
161
|
+
|
|
162
|
+
if (mRedPackIndicator.length > 0) {
|
|
163
|
+
setRedPackNum(mRedPackIndicator[0].value);
|
|
164
|
+
} // 祝福,拆礼物
|
|
165
|
+
|
|
152
166
|
|
|
153
167
|
var blessIndicator = indicators.filter(function (item) {
|
|
154
168
|
return item.type === "mZhufu";
|
|
@@ -173,6 +187,18 @@ function UserMessage() {
|
|
|
173
187
|
|
|
174
188
|
(_window = window) === null || _window === void 0 ? void 0 : _window.Talent.app.vent.trigger("open-weekly-report-modal");
|
|
175
189
|
}
|
|
190
|
+
|
|
191
|
+
var feedInfo = indicators.find(function (item) {
|
|
192
|
+
return item.type === "feedAboutMeIndicator";
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
if (feedInfo) {
|
|
196
|
+
// @ts-ignore
|
|
197
|
+
setFeedNum(feedInfo.value);
|
|
198
|
+
} else {
|
|
199
|
+
// @ts-ignore
|
|
200
|
+
setFeedNum(0);
|
|
201
|
+
}
|
|
176
202
|
}
|
|
177
203
|
});
|
|
178
204
|
};
|
|
@@ -203,7 +229,8 @@ function UserMessage() {
|
|
|
203
229
|
className: (0, _classnames["default"])("".concat(prefixCls, "__msg-total"))
|
|
204
230
|
}, infosNum > 100 ? "99+" : infosNum)), /*#__PURE__*/_react["default"].createElement("img", {
|
|
205
231
|
src: _bell3x["default"],
|
|
206
|
-
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== preData))
|
|
232
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== preData)),
|
|
233
|
+
alt: ""
|
|
207
234
|
}))), /*#__PURE__*/_react["default"].createElement(_redPack["default"], {
|
|
208
235
|
redPackNum: redPackNum
|
|
209
236
|
}));
|
|
@@ -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",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
color: #2879ff;
|
|
39
39
|
line-height: 18px;
|
|
40
40
|
cursor: pointer;
|
|
41
|
-
margin-right: 20px;
|
|
42
41
|
display: inline-flex;
|
|
43
42
|
align-items: center;
|
|
44
43
|
}
|
|
@@ -58,6 +57,7 @@
|
|
|
58
57
|
color: #2879ff;
|
|
59
58
|
line-height: 18px;
|
|
60
59
|
cursor: pointer;
|
|
60
|
+
margin-left: 20px;
|
|
61
61
|
display: inline-flex;
|
|
62
62
|
align-items: center;
|
|
63
63
|
}
|