@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
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
.titaui-menus-tree__group-name-node-title {
|
|
12
12
|
font-size: 12px;
|
|
13
|
-
font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
|
|
14
13
|
font-weight: 400;
|
|
15
14
|
color: #89919f;
|
|
16
15
|
line-height: 18px;
|
|
@@ -40,7 +39,6 @@
|
|
|
40
39
|
font-size: 14px;
|
|
41
40
|
color: #3f4755;
|
|
42
41
|
line-height: 22px;
|
|
43
|
-
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
44
42
|
font-weight: 400;
|
|
45
43
|
}
|
|
46
44
|
|
|
@@ -54,6 +52,14 @@
|
|
|
54
52
|
vertical-align: middle;
|
|
55
53
|
}
|
|
56
54
|
|
|
55
|
+
.titaui-menus-tree__menu-item-node-icon.KH-help {
|
|
56
|
+
background-image: url("../images/appraisal-menu/KH-help.svg");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-menus-tree__menu-item-node-icon.mypingjia {
|
|
60
|
+
background-image: url("../images/appraisal-menu/mypingjia.svg");
|
|
61
|
+
}
|
|
62
|
+
|
|
57
63
|
.titaui-menus-tree__menu-item-node-icon.okr {
|
|
58
64
|
background-image: url("../images/okr-menu/okr.svg");
|
|
59
65
|
}
|
|
@@ -102,8 +108,12 @@
|
|
|
102
108
|
background-image: url("../images/yibiao.svg");
|
|
103
109
|
}
|
|
104
110
|
|
|
105
|
-
.titaui-menus-tree__menu-item-node-icon.
|
|
106
|
-
background-image: url("../images/okr-menu/
|
|
111
|
+
.titaui-menus-tree__menu-item-node-icon.cases {
|
|
112
|
+
background-image: url("../images/okr-menu/cases.svg");
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.titaui-menus-tree__menu-item-node-icon.panel {
|
|
116
|
+
background-image: url("../images/okr-menu/panel.svg");
|
|
107
117
|
}
|
|
108
118
|
|
|
109
119
|
.titaui-menus-tree__menu-node {
|
|
@@ -121,7 +131,6 @@
|
|
|
121
131
|
font-size: 14px;
|
|
122
132
|
color: #3f4755;
|
|
123
133
|
line-height: 22px;
|
|
124
|
-
font-family: Resource-Han-Rounded-CN-Medium, Resource-Han-Rounded-CN;
|
|
125
134
|
font-weight: 500;
|
|
126
135
|
}
|
|
127
136
|
|
|
@@ -135,6 +144,14 @@
|
|
|
135
144
|
vertical-align: middle;
|
|
136
145
|
}
|
|
137
146
|
|
|
147
|
+
.titaui-menus-tree__menu-node-icon.KH-help {
|
|
148
|
+
background-image: url("../images/appraisal-menu/KH-help.svg");
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.titaui-menus-tree__menu-node-icon.mypingjia {
|
|
152
|
+
background-image: url("../images/appraisal-menu/mypingjia.svg");
|
|
153
|
+
}
|
|
154
|
+
|
|
138
155
|
.titaui-menus-tree__menu-node-icon.okr {
|
|
139
156
|
background-image: url("../images/okr-menu/okr.svg");
|
|
140
157
|
}
|
|
@@ -183,8 +200,81 @@
|
|
|
183
200
|
background-image: url("../images/yibiao.svg");
|
|
184
201
|
}
|
|
185
202
|
|
|
186
|
-
.titaui-menus-tree__menu-node-icon.
|
|
187
|
-
background-image: url("../images/okr-menu/
|
|
203
|
+
.titaui-menus-tree__menu-node-icon.cases {
|
|
204
|
+
background-image: url("../images/okr-menu/cases.svg");
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.titaui-menus-tree__menu-node-icon.panel {
|
|
208
|
+
background-image: url("../images/okr-menu/panel.svg");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.titaui-menus-tree__no-follower-node {
|
|
212
|
+
display: flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
text-align: left;
|
|
215
|
+
height: 40px;
|
|
216
|
+
line-height: 40px;
|
|
217
|
+
border-radius: 12px;
|
|
218
|
+
padding: 0 8px;
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
align-items: center;
|
|
221
|
+
justify-content: center;
|
|
222
|
+
cursor: default;
|
|
223
|
+
color: #89919F;
|
|
224
|
+
font-size: 14px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.titaui-menus-tree__no-follower-node:hover .titaui-menus-tree__menu-item-node-title {
|
|
228
|
+
color: #2879ff;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.titaui-menus-tree__no-follower-node-indent {
|
|
232
|
+
display: inline-block;
|
|
233
|
+
width: 16px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.titaui-menus-tree__no-follower-node-title {
|
|
237
|
+
font-size: 14px;
|
|
238
|
+
color: #3f4755;
|
|
239
|
+
line-height: 22px;
|
|
240
|
+
font-weight: 400;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.titaui-menus-tree__loading-node {
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
text-align: left;
|
|
247
|
+
height: 40px;
|
|
248
|
+
line-height: 40px;
|
|
249
|
+
border-radius: 12px;
|
|
250
|
+
padding: 0 8px;
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
align-items: center;
|
|
253
|
+
justify-content: center;
|
|
254
|
+
cursor: default;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.titaui-menus-tree__loading-node:hover .titaui-menus-tree__menu-item-node-title {
|
|
258
|
+
color: #2879ff;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.titaui-menus-tree__loading-node-indent {
|
|
262
|
+
display: inline-block;
|
|
263
|
+
width: 16px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.titaui-menus-tree__loading-node-title {
|
|
267
|
+
font-size: 14px;
|
|
268
|
+
color: #3f4755;
|
|
269
|
+
line-height: 22px;
|
|
270
|
+
font-weight: 400;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.titaui-menus-tree__loading-node-icon {
|
|
274
|
+
width: 96px;
|
|
275
|
+
height: 20px;
|
|
276
|
+
background: url(../images/loading-node.gif) transparent no-repeat 50% 50%;
|
|
277
|
+
background-size: contain;
|
|
188
278
|
}
|
|
189
279
|
|
|
190
280
|
.titaui-menus-tree__company-all-node {
|
|
@@ -202,7 +292,6 @@
|
|
|
202
292
|
font-size: 14px;
|
|
203
293
|
color: #3f4755;
|
|
204
294
|
line-height: 22px;
|
|
205
|
-
font-family: Resource-Han-Rounded-CN-Medium, Resource-Han-Rounded-CN;
|
|
206
295
|
font-weight: 500;
|
|
207
296
|
}
|
|
208
297
|
|
|
@@ -216,6 +305,14 @@
|
|
|
216
305
|
vertical-align: middle;
|
|
217
306
|
}
|
|
218
307
|
|
|
308
|
+
.titaui-menus-tree__company-all-node-icon.KH-help {
|
|
309
|
+
background-image: url("../images/appraisal-menu/KH-help.svg");
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.titaui-menus-tree__company-all-node-icon.mypingjia {
|
|
313
|
+
background-image: url("../images/appraisal-menu/mypingjia.svg");
|
|
314
|
+
}
|
|
315
|
+
|
|
219
316
|
.titaui-menus-tree__company-all-node-icon.okr {
|
|
220
317
|
background-image: url("../images/okr-menu/okr.svg");
|
|
221
318
|
}
|
|
@@ -264,8 +361,12 @@
|
|
|
264
361
|
background-image: url("../images/yibiao.svg");
|
|
265
362
|
}
|
|
266
363
|
|
|
267
|
-
.titaui-menus-tree__company-all-node-icon.
|
|
268
|
-
background-image: url("../images/okr-menu/
|
|
364
|
+
.titaui-menus-tree__company-all-node-icon.cases {
|
|
365
|
+
background-image: url("../images/okr-menu/cases.svg");
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.titaui-menus-tree__company-all-node-icon.panel {
|
|
369
|
+
background-image: url("../images/okr-menu/panel.svg");
|
|
269
370
|
}
|
|
270
371
|
|
|
271
372
|
.titaui-menus-tree__user-concern-node {
|
|
@@ -284,7 +385,6 @@
|
|
|
284
385
|
font-size: 14px;
|
|
285
386
|
color: #3f4755;
|
|
286
387
|
line-height: 22px;
|
|
287
|
-
font-family: Resource-Han-Rounded-CN-Medium, Resource-Han-Rounded-CN;
|
|
288
388
|
font-weight: 500;
|
|
289
389
|
}
|
|
290
390
|
|
|
@@ -298,6 +398,14 @@
|
|
|
298
398
|
vertical-align: middle;
|
|
299
399
|
}
|
|
300
400
|
|
|
401
|
+
.titaui-menus-tree__user-concern-node-icon.KH-help {
|
|
402
|
+
background-image: url("../images/appraisal-menu/KH-help.svg");
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.titaui-menus-tree__user-concern-node-icon.mypingjia {
|
|
406
|
+
background-image: url("../images/appraisal-menu/mypingjia.svg");
|
|
407
|
+
}
|
|
408
|
+
|
|
301
409
|
.titaui-menus-tree__user-concern-node-icon.okr {
|
|
302
410
|
background-image: url("../images/okr-menu/okr.svg");
|
|
303
411
|
}
|
|
@@ -346,8 +454,12 @@
|
|
|
346
454
|
background-image: url("../images/yibiao.svg");
|
|
347
455
|
}
|
|
348
456
|
|
|
349
|
-
.titaui-menus-tree__user-concern-node-icon.
|
|
350
|
-
background-image: url("../images/okr-menu/
|
|
457
|
+
.titaui-menus-tree__user-concern-node-icon.cases {
|
|
458
|
+
background-image: url("../images/okr-menu/cases.svg");
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.titaui-menus-tree__user-concern-node-icon.panel {
|
|
462
|
+
background-image: url("../images/okr-menu/panel.svg");
|
|
351
463
|
}
|
|
352
464
|
|
|
353
465
|
.titaui-menus-tree__user-concern-node-add {
|
|
@@ -357,4 +469,5 @@
|
|
|
357
469
|
height: 14px;
|
|
358
470
|
width: 14px;
|
|
359
471
|
background: url(../images/user-concern-add.svg) transparent no-repeat 50% 50%;
|
|
472
|
+
border: 5px solid transparent;
|
|
360
473
|
}
|
|
@@ -23,6 +23,12 @@ var _userNode = _interopRequireDefault(require("./user-node"));
|
|
|
23
23
|
|
|
24
24
|
var _companyAllNode = _interopRequireDefault(require("./company-all-node"));
|
|
25
25
|
|
|
26
|
+
var _noFollowerNode = _interopRequireDefault(require("./no-follower-node"));
|
|
27
|
+
|
|
28
|
+
var _followerNode = _interopRequireDefault(require("./follower-node"));
|
|
29
|
+
|
|
30
|
+
var _loadingNode = _interopRequireDefault(require("./loading-node"));
|
|
31
|
+
|
|
26
32
|
require("./index.css");
|
|
27
33
|
|
|
28
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -34,6 +40,19 @@ var _default = function _default(node, level, _ref) {
|
|
|
34
40
|
renderSwitcher = _ref.renderSwitcher;
|
|
35
41
|
|
|
36
42
|
switch (node.nodeType) {
|
|
43
|
+
case 'loading':
|
|
44
|
+
return /*#__PURE__*/_react["default"].createElement(_loadingNode["default"], null);
|
|
45
|
+
|
|
46
|
+
case 'follower':
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement(_followerNode["default"], _extends({}, node, {
|
|
48
|
+
level: level,
|
|
49
|
+
onExpand: onExpand,
|
|
50
|
+
renderSwitcher: renderSwitcher
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
case 'no-follower':
|
|
54
|
+
return /*#__PURE__*/_react["default"].createElement(_noFollowerNode["default"], null);
|
|
55
|
+
|
|
37
56
|
case 'company-all':
|
|
38
57
|
return /*#__PURE__*/_react["default"].createElement(_companyAllNode["default"], node);
|
|
39
58
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var _default = function _default() {
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__loading-node")),
|
|
21
|
+
title: ""
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__loading-node-icon"))
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -27,7 +27,8 @@ var _default = function _default(props) {
|
|
|
27
27
|
|
|
28
28
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
29
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-item-node")),
|
|
30
|
-
onClick: onNodeClickHandler
|
|
30
|
+
onClick: onNodeClickHandler,
|
|
31
|
+
title: ""
|
|
31
32
|
}, level > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
32
33
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-item-node-indent"))
|
|
33
34
|
}), data.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -25,7 +25,8 @@ var _default = function _default(props) {
|
|
|
25
25
|
|
|
26
26
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
27
27
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-node")),
|
|
28
|
-
onClick: onExpandHander
|
|
28
|
+
onClick: onExpandHander,
|
|
29
|
+
title: ""
|
|
29
30
|
}, data.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
30
31
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-node-icon"), data.icon)
|
|
31
32
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var _default = function _default() {
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__no-follower-node")),
|
|
21
|
+
title: ""
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, "\u6682\u65E0\u5173\u6CE8\u7684\u4EBA"));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports["default"] = _default;
|
|
@@ -17,6 +17,8 @@ var _requestApis = require("../../../request-apis");
|
|
|
17
17
|
|
|
18
18
|
var _popDownNotification = require("../../../../pop-down-notification");
|
|
19
19
|
|
|
20
|
+
var _context = require("../../../context");
|
|
21
|
+
|
|
20
22
|
var _precls = _interopRequireDefault(require("../precls"));
|
|
21
23
|
|
|
22
24
|
require("./index.css");
|
|
@@ -33,6 +35,9 @@ var _default = function _default(props) {
|
|
|
33
35
|
data = props.data;
|
|
34
36
|
var userRef = (0, _react.useRef)();
|
|
35
37
|
|
|
38
|
+
var _useContext = (0, _react.useContext)(_context.OkrMenusContext),
|
|
39
|
+
onAddConcerner = _useContext.onAddConcerner;
|
|
40
|
+
|
|
36
41
|
var onExpandHander = function onExpandHander(e) {
|
|
37
42
|
onExpand(e);
|
|
38
43
|
};
|
|
@@ -45,14 +50,13 @@ var _default = function _default(props) {
|
|
|
45
50
|
|
|
46
51
|
var onUserSelectHandler = function onUserSelectHandler(users, _, e) {
|
|
47
52
|
(0, _requestApis.addFollower)(users[0].data.userId).then(function (res) {
|
|
48
|
-
if (res.
|
|
53
|
+
if (res.Code != 1) {
|
|
49
54
|
_popDownNotification.Toast.Error(res.Message, {});
|
|
50
55
|
|
|
51
|
-
onExpand(e);
|
|
52
56
|
return;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
onAddConcerner(users[0]);
|
|
56
60
|
})["catch"](function (err) {
|
|
57
61
|
return console.log(err);
|
|
58
62
|
});
|
|
@@ -60,7 +64,8 @@ var _default = function _default(props) {
|
|
|
60
64
|
|
|
61
65
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
66
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
63
|
-
onClick: onExpandHander
|
|
67
|
+
onClick: onExpandHander,
|
|
68
|
+
title: ""
|
|
64
69
|
}, data.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
70
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-icon"), data.icon)
|
|
66
71
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -32,10 +32,12 @@
|
|
|
32
32
|
|
|
33
33
|
.titaui-menus-tree__user-node-username {
|
|
34
34
|
font-size: 14px;
|
|
35
|
-
font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
|
|
36
35
|
font-weight: 400;
|
|
37
36
|
color: #3f4755;
|
|
38
37
|
line-height: 20px;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
white-space: nowrap;
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
.titaui-menus-tree__user-node-sub {
|
|
@@ -15,6 +15,8 @@ var _openData = require("../../../../../../utils/open-data");
|
|
|
15
15
|
|
|
16
16
|
var _context = require("../../../../context");
|
|
17
17
|
|
|
18
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
19
|
+
|
|
18
20
|
var _precls = _interopRequireDefault(require("../../precls"));
|
|
19
21
|
|
|
20
22
|
require("./index.css");
|
|
@@ -25,18 +27,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
27
|
|
|
26
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
29
|
|
|
28
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
30
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31
|
-
|
|
32
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
33
|
-
|
|
34
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
35
|
-
|
|
36
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
37
|
-
|
|
38
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
30
|
var _default = function _default(props) {
|
|
41
31
|
var user = props.data,
|
|
42
32
|
_props$level = props.level,
|
|
@@ -49,35 +39,9 @@ var _default = function _default(props) {
|
|
|
49
39
|
var _useContext = (0, _react.useContext)(_context.OkrMenusContext),
|
|
50
40
|
flipGoNext = _useContext.flipGoNext;
|
|
51
41
|
|
|
52
|
-
var _useState = (0, _react.useState)(function () {
|
|
53
|
-
return !!user.avatar.medium;
|
|
54
|
-
}),
|
|
55
|
-
_useState2 = _slicedToArray(_useState, 1),
|
|
56
|
-
hasAvatar = _useState2[0];
|
|
57
|
-
|
|
58
|
-
var renderImgAvatar = function renderImgAvatar() {
|
|
59
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
60
|
-
style: {
|
|
61
|
-
width: 24,
|
|
62
|
-
height: 24,
|
|
63
|
-
verticalAlign: "top"
|
|
64
|
-
},
|
|
65
|
-
src: user.avatar.medium
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
var renderTextAvatar = function renderTextAvatar() {
|
|
70
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
71
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-node-avatar"), "noselect"),
|
|
72
|
-
style: {
|
|
73
|
-
backgroundColor: user.avatar.color
|
|
74
|
-
}
|
|
75
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
76
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-node-avatar-slice"))
|
|
77
|
-
}, user.name));
|
|
78
|
-
};
|
|
79
|
-
|
|
80
42
|
var openSubordinate = function openSubordinate(e) {
|
|
43
|
+
e.stopPropagation();
|
|
44
|
+
|
|
81
45
|
if (isFlip) {
|
|
82
46
|
flipGoNext({
|
|
83
47
|
'type': 'subordinate',
|
|
@@ -91,11 +55,17 @@ var _default = function _default(props) {
|
|
|
91
55
|
};
|
|
92
56
|
|
|
93
57
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
|
+
title: "",
|
|
94
59
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-node")),
|
|
95
60
|
style: {
|
|
96
|
-
paddingLeft: 12 + level * 10
|
|
61
|
+
'paddingLeft': 12 + level * 10
|
|
97
62
|
}
|
|
98
|
-
},
|
|
63
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
64
|
+
user: user
|
|
65
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
style: {
|
|
67
|
+
'width': "calc(100% - ".concat(12 + 13 + level * 10, "px)")
|
|
68
|
+
},
|
|
99
69
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-node-username"), "noselect")
|
|
100
70
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
101
71
|
name: user.name,
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] =
|
|
6
|
+
exports.defaultRefObject = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _bsGlobal = require("../../../../utils/bs-global");
|
|
7
9
|
|
|
8
10
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
11
|
|
|
@@ -17,6 +19,18 @@ var defaultRefObject = {
|
|
|
17
19
|
};
|
|
18
20
|
exports.defaultRefObject = defaultRefObject;
|
|
19
21
|
|
|
22
|
+
var _getBSGlobal = (0, _bsGlobal.getBSGlobal)('AssessAdvancedSetting'),
|
|
23
|
+
_getBSGlobal$AssessFu = _getBSGlobal.AssessFunctionSetting,
|
|
24
|
+
StartAssessByDepartmentLeader = _getBSGlobal$AssessFu.StartAssessByDepartmentLeader,
|
|
25
|
+
StartAssessByUser = _getBSGlobal$AssessFu.StartAssessByUser;
|
|
26
|
+
|
|
27
|
+
var _getUserInfo = (0, _bsGlobal.getUserInfo)(),
|
|
28
|
+
HasSub = _getUserInfo.HasSub,
|
|
29
|
+
IsAssessManager = _getUserInfo.IsAssessManager,
|
|
30
|
+
IsLeader = _getUserInfo.IsLeader;
|
|
31
|
+
|
|
32
|
+
var performanceManageAuthority = IsAssessManager || IsLeader && StartAssessByDepartmentLeader || StartAssessByUser;
|
|
33
|
+
|
|
20
34
|
var AppraisalMenus = /*#__PURE__*/function () {
|
|
21
35
|
function AppraisalMenus() {
|
|
22
36
|
_classCallCheck(this, AppraisalMenus);
|
|
@@ -25,54 +39,76 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
25
39
|
'icon': 'kaohe',
|
|
26
40
|
'label': '我的考核',
|
|
27
41
|
'key': 'my-appraisal',
|
|
28
|
-
'href': '#/performance?reactRouterName=self'
|
|
42
|
+
'href': '#/performance?reactRouterName=self',
|
|
43
|
+
'isShow': true
|
|
44
|
+
}, {
|
|
45
|
+
'icon': 'mypingjia',
|
|
46
|
+
'label': '我评价的',
|
|
47
|
+
'key': 'evaluate-appraisal',
|
|
48
|
+
'href': '#/performance?reactRouterName=evaluated',
|
|
49
|
+
'isShow': HasSub
|
|
29
50
|
}, {
|
|
30
51
|
'icon': 'caidan-xiashu',
|
|
31
52
|
'label': '下属绩效',
|
|
32
53
|
'key': 'subordinate-appraisal',
|
|
33
|
-
'href': '#/performance?reactRouterName=subordinate'
|
|
54
|
+
'href': '#/performance?reactRouterName=subordinate',
|
|
55
|
+
'isShow': HasSub
|
|
34
56
|
}, {
|
|
35
57
|
'icon': 'bumen',
|
|
36
58
|
'label': '部门绩效',
|
|
37
59
|
'key': 'depart-appraisal',
|
|
38
|
-
'href': '#/performance?reactRouterName=department'
|
|
60
|
+
'href': '#/performance?reactRouterName=department',
|
|
61
|
+
'isShow': IsLeader
|
|
39
62
|
}, {
|
|
40
63
|
'icon': '',
|
|
41
64
|
'label': '考核管理',
|
|
42
65
|
'key': 'manage-appraisal-group',
|
|
43
66
|
'type': 'group-name',
|
|
44
|
-
'href': ''
|
|
67
|
+
'href': '',
|
|
68
|
+
'isShow': performanceManageAuthority
|
|
45
69
|
}, {
|
|
46
70
|
'icon': 'untitled',
|
|
47
71
|
'label': '考核管理',
|
|
48
72
|
'key': 'manage-appraisal',
|
|
49
|
-
'href': '#/performance?reactRouterName=manage'
|
|
73
|
+
'href': '#/performance?reactRouterName=manage',
|
|
74
|
+
'isShow': performanceManageAuthority
|
|
50
75
|
}, {
|
|
51
76
|
'icon': 'uniEA10',
|
|
52
77
|
'label': '考核表',
|
|
53
78
|
'key': 'template-appraisal',
|
|
54
|
-
'href': '#/performance?reactRouterName=template'
|
|
79
|
+
'href': '#/performance?reactRouterName=template',
|
|
80
|
+
'isShow': performanceManageAuthority
|
|
55
81
|
}, {
|
|
56
82
|
'icon': 'ZBmuban',
|
|
57
83
|
'label': '考核指标库',
|
|
58
84
|
'key': 'library-appraisal',
|
|
59
|
-
'href': '#/performance?reactRouterName=templateLibrary'
|
|
85
|
+
'href': '#/performance?reactRouterName=templateLibrary',
|
|
86
|
+
'isShow': performanceManageAuthority
|
|
60
87
|
}, {
|
|
61
88
|
'icon': 'PF-shezhi',
|
|
62
89
|
'label': '评分设置',
|
|
63
90
|
'key': 'score-appraisal',
|
|
64
|
-
'href': '#/performance?reactRouterName=setting'
|
|
91
|
+
'href': '#/performance?reactRouterName=setting',
|
|
92
|
+
'isShow': IsAssessManager
|
|
93
|
+
}, {
|
|
94
|
+
'icon': 'KH-help',
|
|
95
|
+
'label': '评分帮助',
|
|
96
|
+
'key': 'help-appraisal',
|
|
97
|
+
'href': '#/performance?reactRouterName=help',
|
|
98
|
+
'isShow': IsAssessManager
|
|
65
99
|
}, {
|
|
66
100
|
'icon': '',
|
|
67
101
|
'label': '考核统计',
|
|
68
102
|
'key': 'statistics-appraisal',
|
|
69
103
|
'type': 'group-name',
|
|
70
|
-
'href': ''
|
|
104
|
+
'href': '',
|
|
105
|
+
'isShow': false
|
|
71
106
|
}, {
|
|
72
107
|
'icon': 'yibiao',
|
|
73
108
|
'label': '考核仪表盘',
|
|
74
109
|
'key': 'dashboard-appraisal',
|
|
75
|
-
'href': ''
|
|
110
|
+
'href': '',
|
|
111
|
+
'isShow': false
|
|
76
112
|
}];
|
|
77
113
|
}
|
|
78
114
|
|
|
@@ -89,14 +125,17 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
89
125
|
|
|
90
126
|
for (var i = 0; i < menus.length; i++) {
|
|
91
127
|
var menu = menus[i];
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
128
|
+
|
|
129
|
+
if (menu.isShow) {
|
|
130
|
+
treeNodes.push({
|
|
131
|
+
'key': "".concat(menu.key),
|
|
132
|
+
'title': menu.label,
|
|
133
|
+
'data': menu,
|
|
134
|
+
'isLeaf': true,
|
|
135
|
+
'children': [],
|
|
136
|
+
'nodeType': menu.type || 'menu-item'
|
|
137
|
+
});
|
|
138
|
+
}
|
|
100
139
|
}
|
|
101
140
|
|
|
102
141
|
return treeNodes;
|