@titaui/pc 1.12.7 → 1.12.9-beta.10
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/icon-avatar/index.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +2 -2
- package/lib/components/change-okr-modal/Item.js +21 -20
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +2 -2
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +8 -2
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
- package/lib/components/create-okr-modal/fields/okr-case.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +215 -142
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +96 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.css +9 -0
- package/lib/components/drawer/index.js +12 -9
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +18 -18
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/index.js +9 -1
- package/lib/components/dynamic/dynamic-list/index.js +19 -2
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +31 -32
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +13 -11
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +2 -2
- package/lib/components/ereport-list/index.js +2 -2
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +2 -2
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +104 -9
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +19 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +34 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
- package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
- package/lib/components/nav-top/components/app-center/index.css +154 -0
- package/lib/components/nav-top/components/app-center/index.js +157 -0
- package/lib/components/nav-top/components/menu/index.js +5 -9
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/nav-top/index.css +48 -7
- package/lib/components/nav-top/index.js +54 -33
- package/lib/components/nav-top/utils.js +464 -1
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/edit-name.js +76 -39
- package/lib/components/okr-detail/components/header/index.css +122 -41
- package/lib/components/okr-detail/components/header/index.js +45 -48
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
- package/lib/components/okr-detail/components/header/o-classify.js +154 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +174 -64
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
- package/lib/components/okr-detail/detail-header/index.js +11 -5
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/okr-list/index.css +9 -0
- package/lib/components/okr-detail/okr-list/index.js +25 -25
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +88 -40
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +187 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
- package/lib/components/rich-editor/models/schema.js +2 -2
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
- package/lib/components/rich-editor/plugins/core/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +2 -2
- package/lib/components/rich-editor/ui/Popup/index.js +2 -2
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/search-key-handle/index.js +12 -10
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +23 -9
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
- package/lib/components/task-relation-modal/request-api.js +5 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/task-relation-modal/work-relation/index.js +1 -1
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +2 -2
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +10 -5
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +19 -19
- package/lib/components/upload/index.js +25 -25
- package/lib/components/upvote/index.js +1 -1
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/category-selector-panel/index.js +1 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +35 -17
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +43 -9
- package/lib/components/user-selector/searched-panel/index.js +11 -5
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/animate/AnimateChild.js +2 -2
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +2 -2
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +2 -2
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +9 -7
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/pages/aha2021/index.js +5 -5
- package/lib/pages/aha2021/new-menu-switcher/index.css +40 -0
- package/lib/pages/aha2021/new-menu-switcher/index.js +81 -0
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +15 -0
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.js +15 -15
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/level2-search/user.js +1 -0
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +2 -2
- package/lib/utils/hooks.js +5 -5
- package/lib/utils/open-data.js +216 -66
- package/lib/utils/tita-okr-cycle.js +3 -3
- package/package.json +2 -1
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _drawer = _interopRequireDefault(require("../../../drawer"));
|
|
15
|
+
|
|
16
|
+
var _utils = require("../../utils");
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
27
|
+
|
|
28
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
29
|
+
|
|
30
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
31
|
+
|
|
32
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
33
|
+
|
|
34
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
+
|
|
36
|
+
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."); }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
+
|
|
46
|
+
var precls = "app-center";
|
|
47
|
+
|
|
48
|
+
var AppCenter = function AppCenter(props) {
|
|
49
|
+
var _useState = (0, _react.useState)(function () {
|
|
50
|
+
var menus = (0, _utils.getMenus)();
|
|
51
|
+
return menus.filter(function (menu) {
|
|
52
|
+
return menu.code !== "dynamic";
|
|
53
|
+
});
|
|
54
|
+
}),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
56
|
+
apps = _useState2[0];
|
|
57
|
+
|
|
58
|
+
var _useState3 = (0, _react.useState)(false),
|
|
59
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
60
|
+
init = _useState4[0],
|
|
61
|
+
setInit = _useState4[1];
|
|
62
|
+
|
|
63
|
+
var _useState5 = (0, _react.useState)(function () {
|
|
64
|
+
var _window$BSGlobal, _window$BSGlobal$tena;
|
|
65
|
+
|
|
66
|
+
return ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Version) === 1;
|
|
67
|
+
}),
|
|
68
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
69
|
+
isTrial = _useState6[0];
|
|
70
|
+
|
|
71
|
+
var _props$appCenterVisib = props.appCenterVisible,
|
|
72
|
+
appCenterVisible = _props$appCenterVisib === void 0 ? false : _props$appCenterVisib,
|
|
73
|
+
closeAppCenter = props.closeAppCenter,
|
|
74
|
+
setMenu = props.setMenu;
|
|
75
|
+
|
|
76
|
+
var _useState7 = (0, _react.useState)(function () {
|
|
77
|
+
var hash = window.location.hash.split("?")[0] || "";
|
|
78
|
+
|
|
79
|
+
if (hash) {
|
|
80
|
+
var activeApp = apps.find(function (app) {
|
|
81
|
+
return hash.includes(app.key);
|
|
82
|
+
});
|
|
83
|
+
return (activeApp === null || activeApp === void 0 ? void 0 : activeApp.id) || apps[0].id;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return apps[0].id;
|
|
87
|
+
}),
|
|
88
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
89
|
+
currentAppId = _useState8[0],
|
|
90
|
+
setCurrentAppId = _useState8[1];
|
|
91
|
+
|
|
92
|
+
(0, _react.useEffect)(function () {
|
|
93
|
+
setInit(true);
|
|
94
|
+
}, []);
|
|
95
|
+
(0, _react.useEffect)(function () {
|
|
96
|
+
var _apps$find;
|
|
97
|
+
|
|
98
|
+
var menus = ((_apps$find = apps.find(function (app) {
|
|
99
|
+
return app.id === currentAppId;
|
|
100
|
+
})) === null || _apps$find === void 0 ? void 0 : _apps$find.children) || [];
|
|
101
|
+
var navigations = (0, _utils.getMenus)();
|
|
102
|
+
var dynamic = navigations.filter(function (item) {
|
|
103
|
+
return item.code === "dynamic";
|
|
104
|
+
});
|
|
105
|
+
setMenu([].concat(_toConsumableArray(dynamic), _toConsumableArray(menus)));
|
|
106
|
+
|
|
107
|
+
if (init) {
|
|
108
|
+
window.location.href = menus === null || menus === void 0 ? void 0 : menus[0].href;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
closeAppCenter();
|
|
112
|
+
}, [currentAppId]);
|
|
113
|
+
|
|
114
|
+
var onAppSelectHandler = function onAppSelectHandler(app) {
|
|
115
|
+
if (app.type === "newPage") {
|
|
116
|
+
window.location.href = "".concat(window.BSGlobal.apiPath, "/").concat(app.href);
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
setCurrentAppId(app.id);
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
return /*#__PURE__*/_react["default"].createElement(_drawer["default"], {
|
|
124
|
+
className: "".concat(precls, "__drawer"),
|
|
125
|
+
placement: "top",
|
|
126
|
+
onClose: closeAppCenter,
|
|
127
|
+
visible: appCenterVisible,
|
|
128
|
+
width: "100%",
|
|
129
|
+
autoClosable: true
|
|
130
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
className: precls
|
|
132
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: "".concat(precls, "__app-list")
|
|
134
|
+
}, apps.length > 0 && apps.map(function (app) {
|
|
135
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
|
+
className: "".concat(precls, "__app-item ").concat(precls, "__app-item--").concat(app.code),
|
|
137
|
+
onClick: function onClick() {
|
|
138
|
+
return onAppSelectHandler(app);
|
|
139
|
+
}
|
|
140
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
+
className: (0, _classnames["default"])("".concat(precls, "__app-item-icon"), "".concat(precls, "__app-item-icon--").concat(app.iconName))
|
|
142
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
143
|
+
className: "".concat(precls, "__app-item-desc")
|
|
144
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
145
|
+
className: "".concat(precls, "__app-item-name")
|
|
146
|
+
}, app.title), isTrial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
147
|
+
className: "".concat(precls, "__app-item-sub-title")
|
|
148
|
+
}, app.subTitle)));
|
|
149
|
+
}), new Array(20).fill(1).map(function () {
|
|
150
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
+
className: "".concat(precls, "__app-item-placeholder")
|
|
152
|
+
});
|
|
153
|
+
}))));
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
var _default = AppCenter;
|
|
157
|
+
exports["default"] = _default;
|
|
@@ -19,8 +19,6 @@ 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
|
-
|
|
24
22
|
var _new = _interopRequireDefault(require("./img/new.svg"));
|
|
25
23
|
|
|
26
24
|
require("./index.css");
|
|
@@ -76,12 +74,10 @@ var Menu = function Menu(_ref) {
|
|
|
76
74
|
var _useState3 = (0, _react.useState)(false),
|
|
77
75
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
78
76
|
popupVisible = _useState4[0],
|
|
79
|
-
setPopupVisible = _useState4[1];
|
|
77
|
+
setPopupVisible = _useState4[1]; // const [feedNum] = useGlobalValue();
|
|
80
78
|
|
|
81
|
-
var _useGlobalValue = (0, _useGlobalValue3["default"])(),
|
|
82
|
-
_useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
|
|
83
|
-
feedNum = _useGlobalValue2[0];
|
|
84
79
|
|
|
80
|
+
var feedNum = 20;
|
|
85
81
|
var containerRef = (0, _react.useRef)();
|
|
86
82
|
var apiPath = (0, _bsGlobal.getBSGlobal)("apiPath");
|
|
87
83
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
@@ -106,9 +102,9 @@ var Menu = function Menu(_ref) {
|
|
|
106
102
|
};
|
|
107
103
|
|
|
108
104
|
(0, _react.useEffect)(function () {
|
|
109
|
-
var
|
|
105
|
+
var cacheIsKnow = localStorage.getItem("isNewMenuItem__".concat(userId));
|
|
110
106
|
|
|
111
|
-
if (
|
|
107
|
+
if (cacheIsKnow) {
|
|
112
108
|
setIsKonw(true);
|
|
113
109
|
}
|
|
114
110
|
}, []);
|
|
@@ -147,7 +143,7 @@ var Menu = function Menu(_ref) {
|
|
|
147
143
|
mask: false,
|
|
148
144
|
action: ["focus"],
|
|
149
145
|
popupAlign: NewFeatureGuidePopupAlign,
|
|
150
|
-
zIndex:
|
|
146
|
+
zIndex: 1000
|
|
151
147
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
152
148
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
153
149
|
href: href,
|
|
@@ -260,7 +260,7 @@ function Inform(props) {
|
|
|
260
260
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
261
261
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
262
262
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
263
|
-
text: (0, _openData.parseString)((0, _utils.deleteText)(
|
|
263
|
+
text: (0, _openData.parseString)((0, _utils.deleteText)(item.content)),
|
|
264
264
|
isPercent: true,
|
|
265
265
|
mouseEnterDelay: 0.8
|
|
266
266
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -23,7 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
23
23
|
|
|
24
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
25
|
|
|
26
|
-
var preCls =
|
|
26
|
+
var preCls = 'titaui-user-message-msg-todos';
|
|
27
27
|
|
|
28
28
|
var TodoItem = function TodoItem(props) {
|
|
29
29
|
var item = props.item,
|
|
@@ -34,7 +34,7 @@ var TodoItem = function TodoItem(props) {
|
|
|
34
34
|
onItemClick && onItemClick(false);
|
|
35
35
|
|
|
36
36
|
if (item.objType === 7) {
|
|
37
|
-
window.Talent.app.vent.trigger(
|
|
37
|
+
window.Talent.app.vent.trigger('global-pull-screen', item.objId, 'task');
|
|
38
38
|
} else {
|
|
39
39
|
(0, _tools.openPage)(item.objUrl);
|
|
40
40
|
}
|
|
@@ -78,7 +78,7 @@ var TodoItem = function TodoItem(props) {
|
|
|
78
78
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
79
79
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
80
80
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
81
|
-
text: (0, _openData.parseString)((0, _utils.deleteText)(
|
|
81
|
+
text: (0, _openData.parseString)((0, _utils.deleteText)(item.content)),
|
|
82
82
|
isPercent: true,
|
|
83
83
|
mouseEnterDelay: 0.8
|
|
84
84
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -8,24 +8,25 @@
|
|
|
8
8
|
word-break: keep-all;
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
11
|
+
position: relative;
|
|
12
|
+
z-index: 1201;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.titaui-nav-top__left {
|
|
14
16
|
display: inline-flex;
|
|
15
17
|
justify-content: space-between;
|
|
16
18
|
align-items: center;
|
|
17
|
-
min-width: 204px;
|
|
18
19
|
height: 54px;
|
|
19
20
|
border-radius: 0px 0px 0px 24px;
|
|
20
21
|
box-sizing: border-box;
|
|
21
|
-
padding: 0
|
|
22
|
+
padding: 0 20px;
|
|
22
23
|
cursor: default;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.titaui-nav-top__left-home {
|
|
26
27
|
display: inline-flex;
|
|
27
28
|
border-radius: 4px;
|
|
28
|
-
|
|
29
|
+
margin-right: 24px;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.titaui-nav-top__left-home--active {
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.titaui-nav-top__left-home-img {
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
37
|
+
width: 24px;
|
|
38
|
+
height: 24px;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.titaui-nav-top__left-home--hover:hover {
|
|
@@ -50,6 +51,46 @@
|
|
|
50
51
|
cursor: pointer;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
.titaui-nav-top__left-dynamic, .titaui-nav-top__left-app-center {
|
|
55
|
+
font-size: 24px;
|
|
56
|
+
color: #ffffff;
|
|
57
|
+
padding: 2px;
|
|
58
|
+
border-radius: 8px;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.titaui-nav-top__left-dynamic:hover, .titaui-nav-top__left-dynamic--active, .titaui-nav-top__left-app-center:hover, .titaui-nav-top__left-app-center--active {
|
|
63
|
+
background: rgba(255, 255, 255, 0.2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.titaui-nav-top__left-dynamic {
|
|
67
|
+
position: relative;
|
|
68
|
+
margin-right: -6px;
|
|
69
|
+
margin-left: 20px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.titaui-nav-top__left-dynamic-feed-num {
|
|
73
|
+
position: absolute;
|
|
74
|
+
right: -6px;
|
|
75
|
+
top: -2px;
|
|
76
|
+
background: #fe5042;
|
|
77
|
+
border-radius: 18px;
|
|
78
|
+
height: 16px;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
color: #ffffff;
|
|
81
|
+
line-height: 18px;
|
|
82
|
+
padding: 0 4px;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
min-width: 8px;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.titaui-nav-top__left-app-center {
|
|
91
|
+
margin-right: 12px;
|
|
92
|
+
}
|
|
93
|
+
|
|
53
94
|
.titaui-nav-top__line {
|
|
54
95
|
width: 1px;
|
|
55
96
|
min-width: 1px;
|
|
@@ -68,8 +109,8 @@
|
|
|
68
109
|
|
|
69
110
|
.titaui-nav-top__msg {
|
|
70
111
|
margin-right: 24px;
|
|
71
|
-
width:
|
|
72
|
-
height:
|
|
112
|
+
width: 24px;
|
|
113
|
+
height: 24px;
|
|
73
114
|
cursor: pointer;
|
|
74
115
|
display: inline-flex;
|
|
75
116
|
}
|
|
@@ -11,25 +11,27 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _toast = _interopRequireDefault(require("../toast"));
|
|
15
|
+
|
|
14
16
|
var _bsGlobal = require("../../utils/bs-global");
|
|
15
17
|
|
|
16
|
-
var
|
|
18
|
+
var _request = require("../../utils/request");
|
|
17
19
|
|
|
18
|
-
var
|
|
20
|
+
var _appCenter = _interopRequireDefault(require("./components/app-center"));
|
|
21
|
+
|
|
22
|
+
var _userOwnMenu = _interopRequireDefault(require("./components/user-own-menu"));
|
|
19
23
|
|
|
20
24
|
var _menu = _interopRequireDefault(require("./components/menu"));
|
|
21
25
|
|
|
22
26
|
var _userMessage = _interopRequireDefault(require("./components/user-message"));
|
|
23
27
|
|
|
24
|
-
var _home = _interopRequireDefault(require("./images/home.png"));
|
|
25
|
-
|
|
26
28
|
var _version = _interopRequireDefault(require("./components/version"));
|
|
27
29
|
|
|
28
|
-
var
|
|
30
|
+
var _useGlobalValue = _interopRequireDefault(require("./useGlobalValue"));
|
|
29
31
|
|
|
30
|
-
var
|
|
32
|
+
var _home = _interopRequireDefault(require("./images/home.png"));
|
|
31
33
|
|
|
32
|
-
var
|
|
34
|
+
var _utils = require("./utils");
|
|
33
35
|
|
|
34
36
|
require("./index.css");
|
|
35
37
|
|
|
@@ -63,9 +65,15 @@ var preCls = "titaui-nav-top";
|
|
|
63
65
|
var NavTop = function NavTop() {
|
|
64
66
|
var _classNames2;
|
|
65
67
|
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
var isUseNewMenu = window.BSGlobal.isUseNewMenu;
|
|
69
|
+
|
|
70
|
+
var _useState = (0, _react.useState)(function () {
|
|
71
|
+
if (isUseNewMenu) return [];
|
|
72
|
+
return (0, _utils.getMenus)();
|
|
73
|
+
}),
|
|
74
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
75
|
+
menu = _useState2[0],
|
|
76
|
+
setMenu = _useState2[1];
|
|
69
77
|
|
|
70
78
|
var versionInfo = (0, _bsGlobal.getBSGlobal)("tenantAuthentication");
|
|
71
79
|
|
|
@@ -74,6 +82,11 @@ var NavTop = function NavTop() {
|
|
|
74
82
|
activeMenuId = _useState4[0],
|
|
75
83
|
setActiveMenuId = _useState4[1];
|
|
76
84
|
|
|
85
|
+
var _useState5 = (0, _react.useState)(false),
|
|
86
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
87
|
+
appCenterVisible = _useState6[0],
|
|
88
|
+
setAppCenterVisible = _useState6[1];
|
|
89
|
+
|
|
77
90
|
var ua = navigator.userAgent.toLowerCase();
|
|
78
91
|
var showWxInvite = (0, _bsGlobal.getTenantInfo)().mainCorpId && ua.indexOf("micromessenger") !== -1;
|
|
79
92
|
var openWxInvite = (0, _react.useCallback)(function () {
|
|
@@ -84,15 +97,9 @@ var NavTop = function NavTop() {
|
|
|
84
97
|
mode: "multi",
|
|
85
98
|
// 必填,选择模式,single表示单选,multi表示多选
|
|
86
99
|
selectedContextContact: 0 // 是否勾选当前环境的参与者。例如在群+号聊天附件栏打开,默认勾选当前群成员。
|
|
87
|
-
// "selectedOpenUserIds"["xxx","yyy"], // 非必填,已选用户OpenID列表。single模式忽略该参数。
|
|
88
|
-
// "selectedTickets"["ticket1","ticket2"] // 非必填,已选ticket列表。single模式忽略该参数
|
|
89
100
|
|
|
90
101
|
}, function (res) {
|
|
91
102
|
if (res.err_msg === "selectPrivilegedContact:ok") {
|
|
92
|
-
// var selectedUserList = res.result.userList; // 已选的成员列表
|
|
93
|
-
// for (var i = 0; i < selectedUserList.length; i++) {
|
|
94
|
-
// var openUserId = selectedUserList[i].openUserId; //成员openUserId
|
|
95
|
-
// }
|
|
96
103
|
var selectedTicket = res.result.selectedTicket.replace(/['"]/g, ""); // 已选的集合Ticket
|
|
97
104
|
|
|
98
105
|
(0, _request.rpost)("v1")("wx/send/templateMessage?selectedTickets=".concat(selectedTicket)).then(function () {
|
|
@@ -107,6 +114,7 @@ var NavTop = function NavTop() {
|
|
|
107
114
|
}, []);
|
|
108
115
|
|
|
109
116
|
var handleHashChange = function handleHashChange() {
|
|
117
|
+
setAppCenterVisible(false);
|
|
110
118
|
var hash = window.location.hash.split("?")[0] || "";
|
|
111
119
|
|
|
112
120
|
if (hash) {
|
|
@@ -135,41 +143,54 @@ var NavTop = function NavTop() {
|
|
|
135
143
|
return function () {
|
|
136
144
|
window.removeEventListener("hashchange", handleHashChange);
|
|
137
145
|
};
|
|
138
|
-
}, []);
|
|
146
|
+
}, [menu]);
|
|
139
147
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
148
|
className: (0, _classnames["default"])("".concat(preCls))
|
|
141
149
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
142
|
-
className:
|
|
143
|
-
href:
|
|
150
|
+
className: "".concat(preCls, "__left"),
|
|
151
|
+
href: "#dynamic"
|
|
144
152
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
145
153
|
alt: "logo",
|
|
146
154
|
src: Logo,
|
|
147
|
-
className:
|
|
148
|
-
}),
|
|
149
|
-
className: (0, _classnames["default"])("".concat(preCls, "__left-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
|
+
className: "".concat(preCls, "__left-logo")
|
|
156
|
+
})), isUseNewMenu && /*#__PURE__*/_react["default"].createElement("span", {
|
|
157
|
+
className: (0, _classnames["default"])("".concat(preCls, "__left-app-center"), "document-mouse-event-ignore", "tu-icon-work-m", _defineProperty({}, "".concat(preCls, "__left-app-center--active"), appCenterVisible)),
|
|
158
|
+
onClick: function onClick() {
|
|
159
|
+
return setAppCenterVisible(!appCenterVisible);
|
|
160
|
+
}
|
|
161
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
162
|
className: (0, _classnames["default"])("".concat(preCls, "__line"))
|
|
156
163
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
164
|
className: (0, _classnames["default"])("".concat(preCls, "__middle"))
|
|
158
165
|
}, /*#__PURE__*/_react["default"].createElement(_menu["default"], {
|
|
159
166
|
menus: menu,
|
|
160
167
|
activeMenuId: activeMenuId
|
|
161
|
-
})),
|
|
162
|
-
className: (0, _classnames["default"])("".concat(preCls, "
|
|
168
|
+
})), hasOKRApp && /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
|
+
className: (0, _classnames["default"])("".concat(preCls, "__left-home"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(preCls, "__left-home--active"), activeMenuId === 99999), _defineProperty(_classNames2, "".concat(preCls, "__left-home--hover"), hasOKRApp), _classNames2))
|
|
170
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
171
|
+
href: "#homepage"
|
|
172
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
173
|
+
alt: "home-img",
|
|
174
|
+
src: _home["default"],
|
|
175
|
+
className: "".concat(preCls, "__left-home-img")
|
|
176
|
+
}))), showWxInvite && /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
|
+
className: "".concat(preCls, "__invite"),
|
|
163
178
|
onClick: openWxInvite
|
|
164
179
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
165
180
|
className: (0, _classnames["default"])("tu-icon-add-people", "".concat(preCls, "__invite-icon"))
|
|
166
181
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
|
-
className:
|
|
182
|
+
className: "".concat(preCls, "__msg")
|
|
168
183
|
}, /*#__PURE__*/_react["default"].createElement(_userMessage["default"], null)), versionInfo.Version === 1 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
|
-
className:
|
|
184
|
+
className: "".concat(preCls, "__version")
|
|
170
185
|
}, /*#__PURE__*/_react["default"].createElement(_version["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
|
-
className:
|
|
172
|
-
}, /*#__PURE__*/_react["default"].createElement(_userOwnMenu["default"], null))
|
|
186
|
+
className: "".concat(preCls, "__photo")
|
|
187
|
+
}, /*#__PURE__*/_react["default"].createElement(_userOwnMenu["default"], null)), isUseNewMenu && /*#__PURE__*/_react["default"].createElement(_appCenter["default"], {
|
|
188
|
+
appCenterVisible: appCenterVisible,
|
|
189
|
+
closeAppCenter: function closeAppCenter() {
|
|
190
|
+
return setAppCenterVisible(false);
|
|
191
|
+
},
|
|
192
|
+
setMenu: setMenu
|
|
193
|
+
}));
|
|
173
194
|
};
|
|
174
195
|
|
|
175
196
|
var _default = NavTop; // @ts-ignore
|