@titaui/pc 1.6.12 → 1.6.16
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/lib/components/avatar/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/rect-btn/index.css +21 -0
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/createSuccessCmp.js +6 -2
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/index.js +16 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/dialog/index.css +1 -0
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -3
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +1 -2
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic-list/index.js +7 -1
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/dynamic.js +7 -4
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +2 -2
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/form/index.js +1 -1
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/index.css +17 -17
- package/lib/components/help-card/index.js +35 -31
- package/lib/components/help-card/request-api.js +2 -2
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -3
- package/lib/components/menus/components/flip-menu-card/index.js +42 -30
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
- package/lib/components/menus/components/menu-tree/index.js +5 -4
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +49 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +5 -2
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +67 -0
- package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +126 -13
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +27 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +25 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +12 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +58 -19
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +109 -4
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +12 -4
- package/lib/components/menus/index.js +1 -1
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.css +1 -0
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +29 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +116 -111
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +26 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +67 -60
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +118 -63
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +5 -4
- package/lib/components/nav-top/components/user-message/components/todos/index.css +26 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +118 -59
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
- package/lib/components/nav-top/components/user-message/constant.js +2 -19
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +41 -4
- package/lib/components/nav-top/components/user-message/index.js +89 -100
- package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
- package/lib/components/nav-top/components/user-message/msg/index.js +28 -22
- package/lib/components/nav-top/components/user-message/utils.js +31 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
- package/lib/components/nav-top/components/user-own-menu/index.js +5 -7
- package/lib/components/nav-top/components/user-own-menu/utils.js +63 -0
- package/lib/components/nav-top/constant.js +2 -10
- package/lib/components/nav-top/index.css +55 -0
- package/lib/components/nav-top/index.js +14 -13
- package/lib/components/nav-top/request.apis.js +50 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +189 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +54 -0
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/okrcase-library/index.js +6 -1
- package/lib/components/okrcase-library/new-ui.css +52 -0
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +83 -100
- package/lib/components/photo-card/components/card/index.js +119 -63
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +15 -14
- package/lib/components/photo-card/index.js +59 -15
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tree/index.js +1 -3
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +18 -4
- package/lib/pages/aha2021/index.css +25 -1
- package/lib/pages/aha2021/index.js +10 -4
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/pages/new-okr-list/header/comments.js +104 -0
- package/lib/pages/new-okr-list/header/create-okr.js +61 -0
- package/lib/pages/new-okr-list/header/depart-title.js +59 -0
- package/lib/pages/new-okr-list/header/filter.js +95 -0
- package/lib/pages/new-okr-list/header/index.css +118 -0
- package/lib/pages/new-okr-list/header/index.js +133 -0
- package/lib/pages/new-okr-list/header/relation-title.js +28 -0
- package/lib/pages/new-okr-list/header/user-title.js +26 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +208 -0
- package/lib/pages/new-okr-list/interface.js +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/pages/new-okr-list/keyword-search/index.js +106 -0
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +47 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +158 -0
- package/lib/pages/new-okr-list/theme.css +7 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/local-storage.js +40 -0
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +4 -3
- package/package.json +3 -2
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
|
@@ -13,16 +13,20 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
|
|
14
14
|
var _popup = _interopRequireDefault(require("../../../popup"));
|
|
15
15
|
|
|
16
|
-
var _request = require("../../../../utils/request");
|
|
17
|
-
|
|
18
16
|
var _msg = _interopRequireDefault(require("./msg"));
|
|
19
17
|
|
|
18
|
+
var _bsGlobal = require("../../../../utils/bs-global");
|
|
19
|
+
|
|
20
|
+
var _constant = require("./constant");
|
|
21
|
+
|
|
22
|
+
var _redPack = _interopRequireDefault(require("./components/red-pack"));
|
|
23
|
+
|
|
24
|
+
var _request = require("../../request.apis");
|
|
25
|
+
|
|
20
26
|
var _bell = _interopRequireDefault(require("./images/bell.svg"));
|
|
21
27
|
|
|
22
28
|
require("./index.css");
|
|
23
29
|
|
|
24
|
-
var _constant = require("./constant");
|
|
25
|
-
|
|
26
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
31
|
|
|
28
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -46,134 +50,119 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
46
50
|
var prefixCls = "titaui-user-message-bell";
|
|
47
51
|
|
|
48
52
|
var UserMessage = function UserMessage() {
|
|
49
|
-
var _useState = (0, _react.useState)(
|
|
50
|
-
todos: [],
|
|
51
|
-
total: 0
|
|
52
|
-
}),
|
|
53
|
+
var _useState = (0, _react.useState)(0),
|
|
53
54
|
_useState2 = _slicedToArray(_useState, 2),
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
infosNum = _useState2[0],
|
|
56
|
+
setInfosNum = _useState2[1];
|
|
56
57
|
|
|
57
58
|
var _useState3 = (0, _react.useState)([]),
|
|
58
59
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
allData = _useState4[0],
|
|
61
|
+
setAllData = _useState4[1];
|
|
61
62
|
|
|
62
|
-
var _useState5 = (0, _react.useState)(
|
|
63
|
-
messags: [],
|
|
64
|
-
total: 0
|
|
65
|
-
}),
|
|
63
|
+
var _useState5 = (0, _react.useState)(0),
|
|
66
64
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
redPackNum = _useState6[0],
|
|
66
|
+
setRedPackNum = _useState6[1];
|
|
69
67
|
|
|
70
|
-
var _useState7 = (0, _react.useState)(
|
|
71
|
-
messages: [],
|
|
72
|
-
total: 0
|
|
73
|
-
}),
|
|
68
|
+
var _useState7 = (0, _react.useState)(false),
|
|
74
69
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
popupVisible = _useState8[0],
|
|
71
|
+
setPopupVisible = _useState8[1];
|
|
77
72
|
|
|
78
73
|
var _useState9 = (0, _react.useState)(0),
|
|
79
74
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
var _useState11 = (0, _react.useState)(false),
|
|
84
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
85
|
-
popupVisible = _useState12[0],
|
|
86
|
-
setPopupVisible = _useState12[1]; //删除任务(提醒)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var deleteReminds = function deleteReminds(id) {
|
|
90
|
-
var deletereminds = reminds.filter(function (remind) {
|
|
91
|
-
return remind.id !== id;
|
|
92
|
-
});
|
|
93
|
-
setReminds(deletereminds);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
var deleteRemindsAll = function deleteRemindsAll() {
|
|
97
|
-
setReminds([]);
|
|
98
|
-
};
|
|
75
|
+
preData = _useState10[0],
|
|
76
|
+
setPreData = _useState10[1];
|
|
99
77
|
|
|
100
78
|
var handleShowInfos = function handleShowInfos() {
|
|
101
79
|
setPopupVisible(true);
|
|
102
80
|
};
|
|
103
81
|
|
|
104
|
-
|
|
105
|
-
(0, _request.
|
|
106
|
-
if (res.Code === 1) {
|
|
107
|
-
if (res.Data.total || res.Data.todos && res.Data.todos.length) {
|
|
108
|
-
setTodos(res.Data);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
(0, _request.rget)("v1")(_constant.path.informPath).then(function (res) {
|
|
113
|
-
if (res.Code === 1) {
|
|
114
|
-
if (res.Data.total || res.Data.messags && res.Data.messags.length) {
|
|
115
|
-
setInforms(res.Data);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
(0, _request.rget)("v1")(_constant.path.replyPath).then(function (res) {
|
|
82
|
+
var handleIntervalRequestMessageInfo = function handleIntervalRequestMessageInfo() {
|
|
83
|
+
(0, _request.getMessages)().then(function (res) {
|
|
120
84
|
if (res.Code === 1) {
|
|
121
|
-
|
|
122
|
-
|
|
85
|
+
setAllData(res.Data.indicators);
|
|
86
|
+
var indicators = res.Data.indicators;
|
|
87
|
+
var total = 0;
|
|
88
|
+
indicators.forEach(function (item) {
|
|
89
|
+
switch (item.type) {
|
|
90
|
+
case "Tx":
|
|
91
|
+
total += item.value;
|
|
92
|
+
|
|
93
|
+
case "feedAboutMeIndicator":
|
|
94
|
+
total += item.value;
|
|
95
|
+
|
|
96
|
+
case "todoIndicator":
|
|
97
|
+
total += item.value;
|
|
98
|
+
|
|
99
|
+
case "messageIndicator":
|
|
100
|
+
total += item.value;
|
|
101
|
+
|
|
102
|
+
default:
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
setPreData(infosNum);
|
|
107
|
+
setInfosNum(total); // 判断是企业勋章
|
|
108
|
+
|
|
109
|
+
var enterpriseMedalMsg = indicators.filter(function (item) {
|
|
110
|
+
return item.messageType === 1 && item.indicatorType === 1969002;
|
|
111
|
+
}); // @ts-ignore
|
|
112
|
+
|
|
113
|
+
enterpriseMedalMsg.length > 0 && window.util.upaasEnterpriseMedal(); // upaas 勋章
|
|
114
|
+
|
|
115
|
+
var medalDetail = (0, _bsGlobal.getBSGlobal)("medalDetail"); // @ts-ignore
|
|
116
|
+
|
|
117
|
+
medalDetail && window.util.upaasMedal()(medalDetail); // 红包
|
|
118
|
+
|
|
119
|
+
var mRedPackIndicator = indicators.filter(function (item) {
|
|
120
|
+
return item.type === "mRedPackIndicator";
|
|
121
|
+
});
|
|
122
|
+
mRedPackIndicator.length > 0 && setRedPackNum(mRedPackIndicator.value); // 祝福,拆礼物
|
|
123
|
+
|
|
124
|
+
var blessIndicator = indicators.filter(function (item) {
|
|
125
|
+
return item.type === "mZhufu";
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
if (blessIndicator.length === 1) {
|
|
129
|
+
var userInfo = (0, _bsGlobal.getUserInfo)();
|
|
130
|
+
var options = {
|
|
131
|
+
needMask: true,
|
|
132
|
+
toUserId: userInfo.Id,
|
|
133
|
+
blessingTime: blessIndicator[0]["latestUpdateDate"]
|
|
134
|
+
}; // @ts-ignore
|
|
135
|
+
|
|
136
|
+
window.util.openGift(options);
|
|
123
137
|
}
|
|
124
138
|
}
|
|
125
139
|
});
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
setReminds(res.Data);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}, []);
|
|
140
|
+
};
|
|
141
|
+
|
|
132
142
|
(0, _react.useEffect)(function () {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
// 判断是企业勋章
|
|
137
|
-
// var enterpriseMedalMsg = Talent._.findWhere(indicators, {
|
|
138
|
-
// messageType: 1,
|
|
139
|
-
// indicatorType: 1969002,
|
|
140
|
-
// });
|
|
141
|
-
// 调用TitaWidget.util.upaasEnterpriseMedal();
|
|
142
|
-
// upaas 勋章
|
|
143
|
-
// var medalDetail = Talent.Context.getGlobal("medalDetail");
|
|
144
|
-
// medalDetail && TitaWidget.util.upaasMedal()(medalDetail);
|
|
145
|
-
//红包
|
|
146
|
-
// var mRedPackIndicator =
|
|
147
|
-
// (self.indicatorCollection.get("mRedPackIndicator") &&
|
|
148
|
-
// self.indicatorCollection.get("mRedPackIndicator").get("value")) ||
|
|
149
|
-
// 0;
|
|
150
|
-
//拆礼物
|
|
151
|
-
// var blessingIndicator =
|
|
152
|
-
// (self.indicatorCollection.get("mZhufu") &&
|
|
153
|
-
// self.indicatorCollection.get("mZhufu").get("value")) ||
|
|
154
|
-
// 0;
|
|
143
|
+
setPreData(infosNum);
|
|
144
|
+
handleIntervalRequestMessageInfo();
|
|
145
|
+
setInterval(handleIntervalRequestMessageInfo, 15000);
|
|
155
146
|
}, []);
|
|
156
147
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
157
148
|
popup: /*#__PURE__*/_react["default"].createElement(_msg["default"], {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
replys: replys,
|
|
161
|
-
reminds: reminds,
|
|
162
|
-
deleteReminds: deleteReminds,
|
|
163
|
-
deleteRemindsAll: deleteRemindsAll,
|
|
164
|
-
onItemClick: setPopupVisible
|
|
149
|
+
onItemClick: setPopupVisible,
|
|
150
|
+
allData: allData
|
|
165
151
|
}),
|
|
166
152
|
popupVisible: popupVisible,
|
|
167
153
|
popupTransitionName: "tita-user-message-popup-right-top",
|
|
168
154
|
popupAlign: _constant.popupAlign,
|
|
169
155
|
mask: false,
|
|
170
|
-
destroyPopupOnHide:
|
|
156
|
+
destroyPopupOnHide: true
|
|
171
157
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
172
|
-
className: (0, _classnames["default"])("".concat(prefixCls, "__msg"), _defineProperty({}, "".concat(prefixCls, "__msg-dot"),
|
|
158
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "__msg"), _defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== 0)),
|
|
173
159
|
onClick: handleShowInfos
|
|
174
160
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
175
|
-
src: _bell["default"]
|
|
176
|
-
|
|
161
|
+
src: _bell["default"],
|
|
162
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefixCls, "__msg-dot"), infosNum !== preData))
|
|
163
|
+
}))), /*#__PURE__*/_react["default"].createElement(_redPack["default"], {
|
|
164
|
+
redPackNum: redPackNum
|
|
165
|
+
}));
|
|
177
166
|
};
|
|
178
167
|
|
|
179
168
|
var _default = UserMessage;
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
border-radius: 24px 24px 0px 0px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-
|
|
22
|
-
margin:
|
|
21
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-nav-list {
|
|
22
|
+
margin-left: 5px;
|
|
23
23
|
font-size: 14px;
|
|
24
24
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
25
25
|
font-weight: 400;
|
|
@@ -27,17 +27,8 @@
|
|
|
27
27
|
line-height: 22px;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-
|
|
31
|
-
margin
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab #rc-tabs-0-tab-replys {
|
|
35
|
-
width: 56px;
|
|
36
|
-
height: 22px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab #rc-tabs-0-tab-replys .titaui-user-message__tabs-total {
|
|
40
|
-
left: 50px;
|
|
30
|
+
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-nav-list .rc-tabs-tab {
|
|
31
|
+
margin: 20px 36px 15px 0;
|
|
41
32
|
}
|
|
42
33
|
|
|
43
34
|
.titaui-user-message-msg__tabs .rc-tabs-nav .rc-tabs-tab-active {
|
|
@@ -60,29 +51,13 @@
|
|
|
60
51
|
position: relative;
|
|
61
52
|
}
|
|
62
53
|
|
|
63
|
-
.titaui-user-message-msg__tabs-replys-total {
|
|
64
|
-
position: absolute;
|
|
65
|
-
left: 48px;
|
|
66
|
-
top: -6px;
|
|
67
|
-
height: 16px;
|
|
68
|
-
background: #f05e5e;
|
|
69
|
-
box-shadow: 0px 2px 4px 0px #f05e5e, 0px 0px 2px 1px #f05e5e;
|
|
70
|
-
border-radius: 8px;
|
|
71
|
-
font-size: 12px;
|
|
72
|
-
font-family: ArialMT;
|
|
73
|
-
color: #ffffff;
|
|
74
|
-
line-height: 18px;
|
|
75
|
-
text-align: center;
|
|
76
|
-
padding: 0 5px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
54
|
.titaui-user-message-msg__tabs-reminds {
|
|
80
55
|
position: relative;
|
|
81
56
|
}
|
|
82
57
|
|
|
83
58
|
.titaui-user-message-msg__tabs-total {
|
|
84
59
|
position: absolute;
|
|
85
|
-
|
|
60
|
+
right: -10px;
|
|
86
61
|
top: -6px;
|
|
87
62
|
height: 16px;
|
|
88
63
|
background: #f05e5e;
|
|
@@ -37,18 +37,27 @@ var prefixCls = "titaui-user-message-msg";
|
|
|
37
37
|
var userInfo = (0, _bsGlobal.getUserInfo)();
|
|
38
38
|
|
|
39
39
|
var UserMessage = function UserMessage(props) {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
var onItemClick = props.onItemClick,
|
|
41
|
+
allData = props.allData;
|
|
42
|
+
|
|
43
|
+
var getData = function getData(type) {
|
|
44
|
+
var total = allData.filter(function (item) {
|
|
45
|
+
return item.type === type;
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
if (total.length !== 0) {
|
|
49
|
+
return total[0].value;
|
|
50
|
+
} else {
|
|
51
|
+
return 0;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
47
55
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
56
|
className: (0, _classnames["default"])("".concat(prefixCls))
|
|
49
57
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
58
|
className: (0, _classnames["default"])("".concat(prefixCls, "__tabs"))
|
|
51
59
|
}, /*#__PURE__*/_react["default"].createElement(_tabs["default"], {
|
|
60
|
+
destroyInactiveTabPane: true,
|
|
52
61
|
defaultActiveKey: "informs",
|
|
53
62
|
animated: {
|
|
54
63
|
inkBar: true,
|
|
@@ -56,44 +65,41 @@ var UserMessage = function UserMessage(props) {
|
|
|
56
65
|
}
|
|
57
66
|
}, /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
58
67
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
59
|
-
|
|
60
|
-
title: "\u5F85\u529E"
|
|
68
|
+
data: getData("todoIndicator"),
|
|
69
|
+
title: "\u5F85\u529E",
|
|
70
|
+
tab: "todos"
|
|
61
71
|
}),
|
|
62
72
|
key: "todos"
|
|
63
73
|
}, /*#__PURE__*/_react["default"].createElement(_todos["default"], {
|
|
64
|
-
todos: todos,
|
|
65
74
|
userInfo: userInfo,
|
|
66
75
|
onItemClick: onItemClick
|
|
67
76
|
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
68
77
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
69
|
-
|
|
70
|
-
title: "\u901A\u77E5"
|
|
78
|
+
data: getData("messageIndicator"),
|
|
79
|
+
title: "\u901A\u77E5",
|
|
80
|
+
tab: "informs"
|
|
71
81
|
}),
|
|
72
82
|
key: "informs"
|
|
73
83
|
}, /*#__PURE__*/_react["default"].createElement(_inform["default"], {
|
|
74
|
-
informs: informs,
|
|
75
84
|
userInfo: userInfo,
|
|
76
85
|
onItemClick: onItemClick
|
|
77
86
|
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
78
87
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
79
|
-
|
|
80
|
-
title: "@\u4E0E\u56DE\u590D"
|
|
88
|
+
data: getData("mLeaveandComment"),
|
|
89
|
+
title: "@\u4E0E\u56DE\u590D",
|
|
90
|
+
tab: "replys"
|
|
81
91
|
}),
|
|
82
92
|
key: "replys"
|
|
83
93
|
}, /*#__PURE__*/_react["default"].createElement(_reply["default"], {
|
|
84
|
-
replys: replys,
|
|
85
|
-
userInfo: userInfo,
|
|
86
94
|
onItemClick: onItemClick
|
|
87
95
|
})), /*#__PURE__*/_react["default"].createElement(_tabs.TabPane, {
|
|
88
96
|
tab: /*#__PURE__*/_react["default"].createElement(_tabTitle["default"], {
|
|
89
|
-
|
|
90
|
-
title: "\u63D0\u9192"
|
|
97
|
+
data: getData("Tx"),
|
|
98
|
+
title: "\u63D0\u9192",
|
|
99
|
+
tab: "reminds"
|
|
91
100
|
}),
|
|
92
101
|
key: "reminds"
|
|
93
102
|
}, /*#__PURE__*/_react["default"].createElement(_remind["default"], {
|
|
94
|
-
reminds: reminds,
|
|
95
|
-
deleteReminds: deleteReminds,
|
|
96
|
-
deleteRemindsAll: deleteRemindsAll,
|
|
97
103
|
onItemClick: onItemClick
|
|
98
104
|
})))));
|
|
99
105
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.htmlToText = exports.deleteText = void 0;
|
|
7
|
+
|
|
8
|
+
var htmlToText = function htmlToText(text) {
|
|
9
|
+
var div = document.createElement("div");
|
|
10
|
+
div.innerHTML = text;
|
|
11
|
+
text = div.innerText || div.textContent;
|
|
12
|
+
return text;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.htmlToText = htmlToText;
|
|
16
|
+
|
|
17
|
+
var deleteText = function deleteText(text) {
|
|
18
|
+
var last = text.trim().slice(-4);
|
|
19
|
+
|
|
20
|
+
if (last === "查看任务") {
|
|
21
|
+
text = text.trim().slice(0, -4);
|
|
22
|
+
} else if (last === "查看详情") {
|
|
23
|
+
text = text.trim().slice(0, -4);
|
|
24
|
+
} else {
|
|
25
|
+
text = text;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return text;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.deleteText = deleteText;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
background: #ffffff;
|
|
5
5
|
box-shadow: 0px 4px 24px 0px rgba(127, 145, 180, 0.2);
|
|
6
6
|
border-radius: 24px;
|
|
7
|
-
padding: 16px 12px;
|
|
7
|
+
padding: 16px 16px 16px 12px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-nav-top-user-own-menu__card-items {
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
width: 16px;
|
|
47
47
|
height: 16px;
|
|
48
48
|
margin: 3px 8px 3px 0;
|
|
49
|
+
color: #3f4755;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.titaui-nav-top-user-own-menu__card-item-title {
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var _utils = require("
|
|
14
|
+
var _utils = require("./utils");
|
|
15
15
|
|
|
16
16
|
require("./index.css");
|
|
17
17
|
|
|
@@ -52,14 +52,12 @@ var User = function User() {
|
|
|
52
52
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
53
53
|
className: (0, _classnames["default"])("".concat(preCls, "__card-item")),
|
|
54
54
|
key: item.id
|
|
55
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
56
|
-
|
|
57
|
-
className: (0, _classnames["default"])("".concat(preCls, "__card-item-img"))
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
56
|
+
className: (0, _classnames["default"])("".concat(preCls, "__card-item-img"), item.url)
|
|
58
57
|
}), /*#__PURE__*/_react["default"].createElement("a", {
|
|
59
|
-
href: item.objUrl
|
|
60
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
|
+
href: item.objUrl,
|
|
61
59
|
className: (0, _classnames["default"])("".concat(preCls, "__card-item-title"))
|
|
62
|
-
}, item.title))
|
|
60
|
+
}, item.title));
|
|
63
61
|
}));
|
|
64
62
|
})));
|
|
65
63
|
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getOwnSet = void 0;
|
|
7
|
+
|
|
8
|
+
var _auth = require("../../../../utils/auth");
|
|
9
|
+
|
|
10
|
+
var _bsGlobal = require("../../../../utils/bs-global");
|
|
11
|
+
|
|
12
|
+
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
13
|
+
var apiServer = (0, _bsGlobal.getBSGlobal)("apiPath");
|
|
14
|
+
var tm = (0, _bsGlobal.getBSGlobal)("tm");
|
|
15
|
+
var isBoss = new _auth.BaseAuth().isBoss();
|
|
16
|
+
var isManager = new _auth.BaseAuth().isManager();
|
|
17
|
+
|
|
18
|
+
var getOwnSet = function getOwnSet() {
|
|
19
|
+
var ownhandle = [{
|
|
20
|
+
id: "ownHome",
|
|
21
|
+
url: "tu-icon-myhome",
|
|
22
|
+
title: "个人信息",
|
|
23
|
+
objUrl: "".concat(apiServer, "/u/").concat(userId, "/Home/#user-info")
|
|
24
|
+
}, {
|
|
25
|
+
id: "ownSet",
|
|
26
|
+
url: "tu-icon-APP-shezhi",
|
|
27
|
+
title: "个人设置",
|
|
28
|
+
objUrl: "".concat(apiServer, "/u/").concat(userId, "/Home/#setting")
|
|
29
|
+
}];
|
|
30
|
+
var limit = [{
|
|
31
|
+
id: "manage",
|
|
32
|
+
url: "tu-icon-myqyht",
|
|
33
|
+
title: "企业管理后台",
|
|
34
|
+
objUrl: "".concat(tm)
|
|
35
|
+
}, {
|
|
36
|
+
id: "open",
|
|
37
|
+
url: "tu-icon-my-gjgn",
|
|
38
|
+
title: "开启高级设置",
|
|
39
|
+
objUrl: "".concat(tm, "/").concat(userId, "/TmHome#?iTalentFrameType=iframe&iTalentFrame=%2F%2Fadmin.tita.gift%2F500000036%2FindexV2%23%2FadvancedSettings")
|
|
40
|
+
}, {
|
|
41
|
+
id: "role",
|
|
42
|
+
url: "tu-icon-gongsi",
|
|
43
|
+
title: "企业管理规定",
|
|
44
|
+
objUrl: "".concat(apiServer, "/u/").concat(userId, "/Home#setting?id=15709")
|
|
45
|
+
}];
|
|
46
|
+
var exit = [{
|
|
47
|
+
id: "Logout",
|
|
48
|
+
url: "tu-icon-tuichu",
|
|
49
|
+
title: "退出登录",
|
|
50
|
+
objUrl: "".concat(apiServer, "/Account/Logout")
|
|
51
|
+
}];
|
|
52
|
+
var newOwnSet = [];
|
|
53
|
+
newOwnSet.push(ownhandle);
|
|
54
|
+
|
|
55
|
+
if (isBoss || isManager) {
|
|
56
|
+
newOwnSet.push(limit);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
newOwnSet.push(exit);
|
|
60
|
+
return newOwnSet;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
exports.getOwnSet = getOwnSet;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.versionTextMap = exports.
|
|
6
|
+
exports.versionTextMap = exports.userInfoPath = exports.userId = exports.tm = exports.popupAlignPhoto = exports.apiServer = void 0;
|
|
7
7
|
|
|
8
8
|
var _bsGlobal = require("../../utils/bs-global");
|
|
9
9
|
|
|
@@ -28,15 +28,7 @@ var popupAlignPhoto = {
|
|
|
28
28
|
adjustY: true
|
|
29
29
|
},
|
|
30
30
|
targetOffset: [0, 0]
|
|
31
|
-
}; //待办提醒任务
|
|
32
|
-
|
|
33
|
-
exports.popupAlignPhoto = popupAlignPhoto;
|
|
34
|
-
var path = {
|
|
35
|
-
todoPath: "todo/Get?app_type=-1&app_id=-1&page_num=1&page_size=50&status=1&pageNum=1",
|
|
36
|
-
remindPath: "remind/get",
|
|
37
|
-
informPath: "messages/Get?page_size=20&page_num=1&status=2&app_type=-1&app_id=-1",
|
|
38
|
-
replyPath: "comment/messages?page_num=1&page_size=20&status=2"
|
|
39
31
|
};
|
|
40
|
-
exports.
|
|
32
|
+
exports.popupAlignPhoto = popupAlignPhoto;
|
|
41
33
|
var versionTextMap = (_versionTextMap = {}, _defineProperty(_versionTextMap, _constant.Versions.Standard, "项目版"), _defineProperty(_versionTextMap, _constant.Versions.WeixinAssess, "绩效版"), _defineProperty(_versionTextMap, _constant.Versions.Professional, "OKR版"), _defineProperty(_versionTextMap, _constant.Versions.Flagship, "旗舰版"), _versionTextMap);
|
|
42
34
|
exports.versionTextMap = versionTextMap;
|
|
@@ -87,3 +87,58 @@
|
|
|
87
87
|
width: 28px !important;
|
|
88
88
|
height: 28px !important;
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
.tita-user-own-menu__popup-right-top-enter,
|
|
92
|
+
.tita-user-own-menu__popup-right-top-appear {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
animation-duration: 0.2s;
|
|
95
|
+
animation-fill-mode: both;
|
|
96
|
+
animation-timing-function: linear;
|
|
97
|
+
animation-play-state: paused;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.tita-user-own-menu__popup-right-top-leave {
|
|
101
|
+
animation-duration: 0.1s;
|
|
102
|
+
animation-fill-mode: both;
|
|
103
|
+
animation-timing-function: linear;
|
|
104
|
+
animation-play-state: paused;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.tita-user-own-menu__popup-right-top-enter.tita-user-own-menu__popup-right-top-enter-active,
|
|
108
|
+
.tita-user-own-menu__popup-right-top-appear.tita-user-own-menu__popup-right-top-appear-active {
|
|
109
|
+
animation-name: titaPopupInRT;
|
|
110
|
+
animation-play-state: running;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.tita-user-own-menu__popup-right-top-leave.tita-user-own-menu__popup-right-top-leave-active {
|
|
114
|
+
animation-name: titaPopupOutRT;
|
|
115
|
+
animation-play-state: running;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@keyframes titaPopupInRT {
|
|
119
|
+
0% {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
transform-origin: 100% 0%;
|
|
122
|
+
transform: scale(0, 0);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
100% {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
transform-origin: 100% 0%;
|
|
128
|
+
transform: scale(1, 1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@keyframes titaPopupOutRT {
|
|
133
|
+
0% {
|
|
134
|
+
opacity: 1;
|
|
135
|
+
transform-origin: 100% 0%;
|
|
136
|
+
transform: scale(1, 1);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
100% {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
transform-origin: 100% 0%;
|
|
142
|
+
transform: scale(0, 0);
|
|
143
|
+
}
|
|
144
|
+
}
|