@titaui/pc 1.15.46 → 1.15.47-beta.11
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/default.js +7 -2
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/name-avatar/index.css +1 -2
- package/lib/components/avatar/name-avatar/index.js +14 -24
- 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/book-demo/constant.js +3 -0
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +19 -1
- package/lib/components/button/icon-btn/index.js +5 -3
- 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 +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +4 -6
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/common-share/publishMblog.js +2 -4
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +2 -2
- package/lib/components/create-okr-modal/fields/okr-type-detail.js +2 -4
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +2 -4
- package/lib/components/create-okr-modal/index.js +2 -4
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +12 -16
- package/lib/components/create-okr-modal/utils/helper.js +2 -6
- 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.css +8 -2
- package/lib/components/dialog-confirm/index.js +27 -17
- package/lib/components/dialog-qq-docs/index.js +9 -11
- package/lib/components/dialog-qq-docs/utils.js +2 -6
- package/lib/components/dialog-select/index.js +1 -1
- package/lib/components/dialog-upload/index.js +2 -4
- package/lib/components/dialog-upload-type/components/upload-type-item/index.js +1 -1
- package/lib/components/dialog-upload-type/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.css +4 -0
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +3 -5
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +10 -12
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
- 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 +5 -5
- package/lib/components/dynamic/dynamic-item/dynamic-discovery/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
- 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-new-report/components/remind-user-view/index.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/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 +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
- 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 +1 -1
- package/lib/components/dynamic/dynamic-item/index.js +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +2 -2
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
- 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/expiration-reminder/index.css +6 -0
- package/lib/components/expiration-reminder/index.js +10 -3
- package/lib/{pages/like-ranking → components}/filter-buttons/department.js +20 -6
- package/lib/{pages/like-ranking → components}/filter-buttons/group.js +2 -2
- package/lib/{pages/like-ranking → components}/filter-buttons/index.css +4 -0
- package/lib/components/filter-buttons/index.js +84 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/modular.js +3 -3
- package/lib/{pages/like-ranking → components}/filter-buttons/name.js +13 -11
- package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.css +0 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.js +0 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/timer.js +3 -3
- package/lib/components/firework/index.js +2 -6
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.css +9 -0
- package/lib/components/form/form-fields/dropdown/index.js +9 -4
- package/lib/components/form/form-fields/input/index.js +22 -6
- package/lib/components/form/form-fields/input-verification-code/index.js +2 -4
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +6 -10
- package/lib/components/guide-order/index.css +161 -0
- package/lib/components/guide-order/index.js +292 -0
- package/lib/components/guide-tip/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-task-modal/index.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +2 -4
- package/lib/components/import-modal/tree-node/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/images/survey-menu/involved.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/survey-menu/manage.svg +11 -0
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +56 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +22 -3
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +1 -5
- package/lib/components/menus/components/menu-tree/tree-node/summary-follower/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/summary-follower/index.js +77 -0
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +7 -6
- package/lib/components/menus/components/menu-tree/tree-node/summary-tongji.js +7 -6
- package/lib/components/menus/components/menu-tree/tree-node/summary-user-concern.js +95 -0
- package/lib/components/menus/context.js +6 -2
- package/lib/components/menus/export-modules/demo-menus/index.js +10 -9
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +8 -2
- package/lib/components/menus/export-modules/demo-menus/menus.js +73 -26
- package/lib/components/menus/export-modules/summary-menus/menus.js +122 -0
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +49 -3
- package/lib/components/menus/export-modules/survey-menu/index.css +9 -0
- package/lib/components/menus/export-modules/survey-menu/index.js +120 -0
- package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +52 -0
- package/lib/components/menus/export-modules/survey-menu/menus.js +87 -0
- package/lib/components/menus/export-modules/survey-menu/request-api.js +5 -0
- package/lib/components/menus/export-modules/survey-menu/survey-front-menus.js +163 -0
- package/lib/components/menus/index.js +6 -0
- package/lib/components/menus/request-apis.js +38 -2
- package/lib/components/nav-top/components/app-center/images/survey.svg +20 -0
- package/lib/components/nav-top/components/app-center/index.css +8 -0
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +2 -4
- package/lib/components/okr-detail/components/ao-nice/index.js +4 -6
- 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 +2 -4
- package/lib/components/okr-detail/components/header/o-avatar.js +2 -4
- package/lib/components/okr-detail/components/header/o-classify.js +2 -4
- 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-classify.js +2 -4
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -4
- 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 +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -4
- 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.js +2 -4
- 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/kr-parent-node/index.js +2 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +6 -8
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +2 -4
- package/lib/components/okr-detail/detail-footer/index.js +2 -4
- package/lib/components/okr-detail/detail-header/index.js +10 -12
- package/lib/components/okr-detail/index.js +4 -2
- package/lib/components/okr-detail/okr-list/index.js +3 -5
- package/lib/components/okr-detail/request-apis.js +2 -6
- package/lib/components/okr-excel/hooks.js +6 -3
- package/lib/components/okr-excel/index.css +18 -0
- package/lib/components/okr-excel/index.js +79 -76
- package/lib/components/okr-excel/renders.js +27 -10
- package/lib/components/okr-filter-drawer/filter-form.js +2 -2
- package/lib/components/okr-flow/child-node/fields/creator.js +2 -4
- package/lib/components/okr-flow/child-node/work-node.js +2 -4
- package/lib/components/okr-flow/export-modal/index.js +43 -6
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +8 -10
- package/lib/components/okr-flow/request-apis.js +2 -6
- package/lib/components/okr-flow/root-node/index.js +2 -4
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -4
- package/lib/components/okr-progress-modal/index.js +2 -4
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +4 -6
- 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/darwAvatar.js +4 -8
- package/lib/components/okr-share/common-painter/openDataPainter.js +2 -6
- package/lib/components/okr-share/common-painter/utils.js +4 -8
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +2 -6
- package/lib/components/okr-share/pink-card/drawKrs.js +2 -6
- package/lib/components/okr-share/pink-card/drawQuote.js +2 -6
- package/lib/components/okr-share/pink-card/drawUserName.js +2 -6
- package/lib/components/okr-share/pink-card/index.js +2 -6
- package/lib/components/okr-share/publishMblog.js +2 -4
- package/lib/components/okr-share/shareCardSelector.js +4 -6
- package/lib/components/okr-type-icon/index.js +18 -13
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +20 -24
- package/lib/components/open-data-painter/index.js +2 -6
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/index.css +5 -0
- package/lib/components/pagination/pagination.js +7 -7
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/helper/index.js +2 -6
- 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/week-panel/index.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 +10 -6
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +3 -1
- package/lib/components/picker/range-picker/index.js +5 -2
- 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/popup-select/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/radio/index.css +4 -0
- package/lib/components/radio/radio.js +11 -4
- 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/rate/index.js +1 -1
- 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/commond.js +3 -3
- 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/rich-editor-at/components/index.js +15 -4
- package/lib/components/rich-editor-at/index.js +3 -1
- 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/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +1 -1
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +2 -6
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +4 -8
- package/lib/components/survey-model/request-api.js +2 -6
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.css +2 -2
- package/lib/components/table/index.js +45 -17
- package/lib/components/tabs/index.css +20 -0
- package/lib/components/tabs/index.js +5 -2
- package/lib/components/tabs/tabBtns.js +69 -0
- package/lib/components/tag/index.css +3 -3
- package/lib/components/tag/index.js +1 -1
- package/lib/components/task-relation-modal/index.js +5 -7
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/tree/category-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree/work-tree/index.js +2 -4
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +5 -7
- package/lib/components/task-tree/task-item-node/e-project.js +2 -4
- package/lib/components/task-tree/task-item-node/e-task.js +2 -4
- 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/toast/index.js +8 -12
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +1 -1
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +2 -2
- package/lib/components/upload/index.js +4 -6
- package/lib/components/upload/index2.js +2 -4
- package/lib/components/upvote/index.js +5 -7
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +6 -3
- 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/version-change-modal/index.js +4 -6
- package/lib/components/version-change-modal/request-api.js +2 -6
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/weekly-report/card.js +12 -4
- package/lib/components/weekly-report/common-painter/darwAvatar.js +6 -10
- package/lib/components/weekly-report/common-painter/drawName.js +2 -6
- package/lib/components/weekly-report/common-painter/openDataPainter.js +2 -6
- package/lib/components/weekly-report/index.js +4 -6
- 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 +2 -2
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/index.js +32 -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/groupInterface.js +2 -6
- 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/like-ranking/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.js +20 -1
- package/lib/pages/new-okr-list/index.js +16 -4
- package/lib/pages/new-okr-list/list/index.js +3 -1
- package/lib/pages/new-okr-list/loading.js +3 -2
- package/lib/pages/new-okr-list/request-api.js +14 -18
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +3 -5
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +2 -6
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/pages/personal-info/components/edit-base-info/index.js +3 -3
- package/lib/utils/auth.js +7 -2
- package/lib/utils/helpers.js +2 -6
- package/lib/utils/open-data.js +7 -6
- package/lib/utils/request-v1.js +2 -6
- package/lib/utils/request.js +2 -6
- package/package.json +2 -2
- package/lib/pages/like-ranking/filter-buttons/index.js +0 -36
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="240px" height="240px" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>untitled</title>
|
|
4
|
+
<g id="untitled" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<polygon id="Stroke-5" transform="translate(120.000000, 120.000000) rotate(-270.000000) translate(-120.000000, -120.000000) " points="7.95807864e-13 240 240 240 240 -1.80477855e-12 7.95807864e-13 -1.80477855e-12"></polygon>
|
|
6
|
+
<g id="编组" transform="translate(27.999723, 28.982878)" fill-rule="nonzero">
|
|
7
|
+
<path d="M172.53582,0.806190151 C175.403691,-0.571663807 178.436272,-0.0839966344 180.662773,1.51608764 L180.982736,1.7581 C183.128285,3.46492073 184.420398,6.24742178 183.888282,9.35249911 L183.846077,9.58026465 L150.804051,175.426418 C149.715852,180.88836 143.537204,183.570238 138.819774,180.709882 L138.59974,180.571733 L100.417277,155.763122 L76.9878368,178.81094 C71.98686,183.730118 63.5717207,180.283451 63.3811134,173.348158 L63.3778182,173.107634 L63.3778182,122.576833 C63.3778182,120.452019 64.2228752,118.418914 65.7190993,116.921834 L65.9372544,116.711659 L127.557238,59.5526641 C130.796484,56.5479237 135.858236,56.7380281 138.862976,59.9772743 C141.805118,63.1490361 141.684146,68.0681564 138.636847,71.0925725 L138.438366,71.283012 L79.3772767,126.067122 L79.3772767,154.017122 L93.7780366,139.852244 C96.3868231,137.286128 100.392963,136.824603 103.508689,138.698349 L103.746566,138.847093 L137.418277,160.723122 L165.024277,22.1651223 L24.5572767,89.6511223 L50.1817186,105.677792 C53.8527597,107.973789 55.0185808,112.760203 52.8586704,116.476409 L52.7222686,116.702565 C50.4262723,120.373606 45.6398576,121.539427 41.9236515,119.379517 L41.6974962,119.243115 L3.75816552,95.5145435 C-1.50706168,92.221488 -1.15710867,84.4824753 4.28857987,81.6447078 L4.53582043,81.5209501 L172.53582,0.806190151 Z" id="路径-2" fill="#141C28"></path>
|
|
8
|
+
<path d="M127.557238,59.5526641 C130.796484,56.5479237 135.858236,56.7380281 138.862976,59.9772743 C141.805118,63.1490361 141.684146,68.0681564 138.636847,71.0925725 L138.438366,71.283012 L79.3772767,126.067122 L79.3778182,173.107634 C79.3778182,177.442549 75.9299804,180.972177 71.6269975,181.103828 L71.3778182,181.107634 C67.0429039,181.107634 63.5132753,177.659797 63.381625,173.356814 L63.3778182,173.107634 L63.3778182,122.576833 C63.3778182,120.452019 64.2228752,118.418914 65.7190993,116.921834 L65.9372544,116.711659 L127.557238,59.5526641 Z" id="路径-2" fill="#2879FF"></path>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -23,7 +23,7 @@ var _excluded = ["data", "onSelect", "loadData", "selectedKeys", "onExpand"];
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
26
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
28
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
29
|
|
|
@@ -158,6 +158,14 @@
|
|
|
158
158
|
background-image: url("../images/summary-menu/caidan-same-level.svg");
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
.titaui-menus-tree__sub-menu-item-node-icon.survey-manage {
|
|
162
|
+
background-image: url("../images/survey-menu/manage.svg");
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.titaui-menus-tree__sub-menu-item-node-icon.survey-involved {
|
|
166
|
+
background-image: url("../images/survey-menu/involved.svg");
|
|
167
|
+
}
|
|
168
|
+
|
|
161
169
|
.titaui-menus-tree__menu-item-node {
|
|
162
170
|
display: flex;
|
|
163
171
|
align-items: center;
|
|
@@ -290,6 +298,14 @@
|
|
|
290
298
|
background-image: url("../images/summary-menu/caidan-same-level.svg");
|
|
291
299
|
}
|
|
292
300
|
|
|
301
|
+
.titaui-menus-tree__menu-item-node-icon.survey-manage {
|
|
302
|
+
background-image: url("../images/survey-menu/manage.svg");
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.titaui-menus-tree__menu-item-node-icon.survey-involved {
|
|
306
|
+
background-image: url("../images/survey-menu/involved.svg");
|
|
307
|
+
}
|
|
308
|
+
|
|
293
309
|
.titaui-menus-tree__parent-menu-node {
|
|
294
310
|
display: flex;
|
|
295
311
|
align-items: center;
|
|
@@ -422,6 +438,14 @@
|
|
|
422
438
|
background-image: url("../images/summary-menu/caidan-same-level.svg");
|
|
423
439
|
}
|
|
424
440
|
|
|
441
|
+
.titaui-menus-tree__parent-menu-node-icon.survey-manage {
|
|
442
|
+
background-image: url("../images/survey-menu/manage.svg");
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.titaui-menus-tree__parent-menu-node-icon.survey-involved {
|
|
446
|
+
background-image: url("../images/survey-menu/involved.svg");
|
|
447
|
+
}
|
|
448
|
+
|
|
425
449
|
.titaui-menus-tree__no-follower-node, .titaui-menus-tree__no-subordinates-node {
|
|
426
450
|
display: flex;
|
|
427
451
|
align-items: center;
|
|
@@ -626,6 +650,14 @@
|
|
|
626
650
|
background-image: url("../images/summary-menu/caidan-same-level.svg");
|
|
627
651
|
}
|
|
628
652
|
|
|
653
|
+
.titaui-menus-tree__company-all-node-icon.survey-manage {
|
|
654
|
+
background-image: url("../images/survey-menu/manage.svg");
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.titaui-menus-tree__company-all-node-icon.survey-involved {
|
|
658
|
+
background-image: url("../images/survey-menu/involved.svg");
|
|
659
|
+
}
|
|
660
|
+
|
|
629
661
|
.titaui-menus-tree__ass-template-node {
|
|
630
662
|
display: flex;
|
|
631
663
|
align-items: center;
|
|
@@ -758,6 +790,14 @@
|
|
|
758
790
|
background-image: url("../images/summary-menu/caidan-same-level.svg");
|
|
759
791
|
}
|
|
760
792
|
|
|
793
|
+
.titaui-menus-tree__ass-template-node-icon.survey-manage {
|
|
794
|
+
background-image: url("../images/survey-menu/manage.svg");
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.titaui-menus-tree__ass-template-node-icon.survey-involved {
|
|
798
|
+
background-image: url("../images/survey-menu/involved.svg");
|
|
799
|
+
}
|
|
800
|
+
|
|
761
801
|
.titaui-menus-tree__ass-template-node-suffix {
|
|
762
802
|
display: inline-block;
|
|
763
803
|
height: 18px;
|
|
@@ -900,6 +940,14 @@
|
|
|
900
940
|
background-image: url("../images/summary-menu/caidan-same-level.svg");
|
|
901
941
|
}
|
|
902
942
|
|
|
943
|
+
.titaui-menus-tree__ass-manage-node-icon.survey-manage {
|
|
944
|
+
background-image: url("../images/survey-menu/manage.svg");
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.titaui-menus-tree__ass-manage-node-icon.survey-involved {
|
|
948
|
+
background-image: url("../images/survey-menu/involved.svg");
|
|
949
|
+
}
|
|
950
|
+
|
|
903
951
|
.titaui-menus-tree__ass-manage-node-suffix {
|
|
904
952
|
display: inline-block;
|
|
905
953
|
height: 18px;
|
|
@@ -1043,6 +1091,14 @@
|
|
|
1043
1091
|
background-image: url("../images/summary-menu/caidan-same-level.svg");
|
|
1044
1092
|
}
|
|
1045
1093
|
|
|
1094
|
+
.titaui-menus-tree__user-concern-node-icon.survey-manage {
|
|
1095
|
+
background-image: url("../images/survey-menu/manage.svg");
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
.titaui-menus-tree__user-concern-node-icon.survey-involved {
|
|
1099
|
+
background-image: url("../images/survey-menu/involved.svg");
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1046
1102
|
.titaui-menus-tree__user-concern-node-add {
|
|
1047
1103
|
display: inline-block;
|
|
1048
1104
|
position: absolute;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.USER_NODE = exports.USER_CONCERN_NODE = exports.TONGJI_NODE = exports.SUB_MENU_ITEM_NOE = exports.SUBORDINATES_NODE = exports.SHARE_NODE = exports.SAME_LEVEL_USER_NODE = exports.PARENT_MENU_NODE = exports.NO_SUBORDINATES_NODE = exports.NO_FOLLOWER_NODE = exports.MENU_ITEM_NOE = exports.MENU_ASSESS_TEMPLATE = exports.MENU_ASSESS_MANAGE = exports.LOADING_NODE = exports.GROUP_NAME_NODE = exports.FOLLOWER_NODE = exports.DEPART_NODE = exports.COMPANY_NODE = exports.COMPANY_ALL_NODE = void 0;
|
|
6
|
+
exports.USER_NODE = exports.USER_CONCERN_NODE = exports.TONGJI_NODE = exports.SUMMARY_USER_CONCERN_NODE = exports.SUMMARY_FOLLOWER_NODE = exports.SUB_MENU_ITEM_NOE = exports.SUBORDINATES_NODE = exports.SHARE_NODE = exports.SAME_LEVEL_USER_NODE = exports.PARENT_MENU_NODE = exports.NO_SUBORDINATES_NODE = exports.NO_FOLLOWER_NODE = exports.MENU_ITEM_NOE = exports.MENU_ASSESS_TEMPLATE = exports.MENU_ASSESS_MANAGE = exports.LOADING_NODE = exports.GROUP_NAME_NODE = exports.FOLLOWER_NODE = exports.DEPART_NODE = exports.COMPANY_NODE = exports.COMPANY_ALL_NODE = void 0;
|
|
7
7
|
exports["default"] = _default;
|
|
8
8
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -18,6 +18,8 @@ var _groupName = _interopRequireDefault(require("./group-name"));
|
|
|
18
18
|
|
|
19
19
|
var _userConcern = _interopRequireDefault(require("./user-concern"));
|
|
20
20
|
|
|
21
|
+
var _summaryUserConcern = _interopRequireDefault(require("./summary-user-concern"));
|
|
22
|
+
|
|
21
23
|
var _subordinates = _interopRequireDefault(require("./subordinates"));
|
|
22
24
|
|
|
23
25
|
var _summaryShare = _interopRequireDefault(require("./summary-share"));
|
|
@@ -38,6 +40,8 @@ var _noFollower = _interopRequireDefault(require("./no-follower"));
|
|
|
38
40
|
|
|
39
41
|
var _follower = _interopRequireDefault(require("./follower"));
|
|
40
42
|
|
|
43
|
+
var _summaryFollower = _interopRequireDefault(require("./summary-follower"));
|
|
44
|
+
|
|
41
45
|
var _loading = _interopRequireDefault(require("./loading"));
|
|
42
46
|
|
|
43
47
|
var _noSubordinates = _interopRequireDefault(require("./no-subordinates"));
|
|
@@ -50,7 +54,7 @@ require("./index.css");
|
|
|
50
54
|
|
|
51
55
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
52
56
|
|
|
53
|
-
function _extends() { _extends = Object.assign
|
|
57
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
54
58
|
|
|
55
59
|
function _default(node, level, _ref) {
|
|
56
60
|
var onExpand = _ref.onExpand;
|
|
@@ -64,6 +68,11 @@ function _default(node, level, _ref) {
|
|
|
64
68
|
level: level
|
|
65
69
|
}));
|
|
66
70
|
|
|
71
|
+
case SUMMARY_FOLLOWER_NODE:
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement(_summaryFollower["default"], _extends({}, node, {
|
|
73
|
+
level: level
|
|
74
|
+
}));
|
|
75
|
+
|
|
67
76
|
case NO_SUBORDINATES_NODE:
|
|
68
77
|
return /*#__PURE__*/_react["default"].createElement(_noSubordinates["default"], null);
|
|
69
78
|
|
|
@@ -151,6 +160,12 @@ function _default(node, level, _ref) {
|
|
|
151
160
|
onExpand: onExpand
|
|
152
161
|
}));
|
|
153
162
|
|
|
163
|
+
case SUMMARY_USER_CONCERN_NODE:
|
|
164
|
+
return /*#__PURE__*/_react["default"].createElement(_summaryUserConcern["default"], _extends({}, node, {
|
|
165
|
+
level: level,
|
|
166
|
+
onExpand: onExpand
|
|
167
|
+
}));
|
|
168
|
+
|
|
154
169
|
default:
|
|
155
170
|
}
|
|
156
171
|
}
|
|
@@ -192,4 +207,8 @@ exports.SHARE_NODE = SHARE_NODE;
|
|
|
192
207
|
var TONGJI_NODE = 'tongji';
|
|
193
208
|
exports.TONGJI_NODE = TONGJI_NODE;
|
|
194
209
|
var SAME_LEVEL_USER_NODE = 'same-level-user';
|
|
195
|
-
exports.SAME_LEVEL_USER_NODE = SAME_LEVEL_USER_NODE;
|
|
210
|
+
exports.SAME_LEVEL_USER_NODE = SAME_LEVEL_USER_NODE;
|
|
211
|
+
var SUMMARY_USER_CONCERN_NODE = 'summary-user-concern';
|
|
212
|
+
exports.SUMMARY_USER_CONCERN_NODE = SUMMARY_USER_CONCERN_NODE;
|
|
213
|
+
var SUMMARY_FOLLOWER_NODE = 'summary-follower';
|
|
214
|
+
exports.SUMMARY_FOLLOWER_NODE = SUMMARY_FOLLOWER_NODE;
|
|
@@ -49,10 +49,7 @@ var Subordinates = function Subordinates(props) {
|
|
|
49
49
|
if (data.href) {
|
|
50
50
|
window.location.href = data.href;
|
|
51
51
|
}
|
|
52
|
-
};
|
|
53
52
|
|
|
54
|
-
var handleShowSubordinatesList = function handleShowSubordinatesList(e) {
|
|
55
|
-
e.stopPropagation();
|
|
56
53
|
onExpand(e);
|
|
57
54
|
setIsShowSubordinates(!isShowSubordinates);
|
|
58
55
|
};
|
|
@@ -66,8 +63,7 @@ var Subordinates = function Subordinates(props) {
|
|
|
66
63
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
64
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
68
65
|
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
70
|
-
onClick: handleShowSubordinatesList
|
|
66
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
71
67
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
68
|
className: (0, _classnames["default"])('tu-icon-APP-xi', _defineProperty({}, "".concat(_precls["default"], "__subordinates-arrow-down"), isShowSubordinates))
|
|
73
69
|
})));
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.titaui-menus-tree__follower-node {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
height: 40px;
|
|
5
|
+
line-height: 40px;
|
|
6
|
+
border-radius: 12px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-menus-tree__follower-node:hover .titaui-menus-tree__follower-node-cancel {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-menus-tree__follower-node:hover .titaui-menus-tree__follower-node-username {
|
|
16
|
+
color: #2879ff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-menus-tree__follower-node-username {
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
color: #3f4755;
|
|
23
|
+
line-height: 20px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.titaui-menus-tree__follower-node-cancel {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
position: absolute;
|
|
33
|
+
right: 5px;
|
|
34
|
+
opacity: 0;
|
|
35
|
+
transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0s;
|
|
36
|
+
will-change: opacity;
|
|
37
|
+
color: #a4acb9;
|
|
38
|
+
border: 5px solid transparent;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-menus-tree__follower-node-cancel > span {
|
|
42
|
+
color: #a4acb9 !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-menus-tree__follower-node-cancel:hover > span {
|
|
46
|
+
color: #f05e5e !important;
|
|
47
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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"] = _default;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _i18n = require("../../../../i18n");
|
|
15
|
+
|
|
16
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
17
|
+
|
|
18
|
+
var _tooltip = _interopRequireDefault(require("../../../../../tooltip"));
|
|
19
|
+
|
|
20
|
+
var _context = require("../../../../context");
|
|
21
|
+
|
|
22
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
23
|
+
|
|
24
|
+
var _precls = _interopRequireDefault(require("../../precls"));
|
|
25
|
+
|
|
26
|
+
var _getLocale = require("../../../../../../utils/getLocale");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
function _default(props) {
|
|
37
|
+
var user = props.data,
|
|
38
|
+
_props$level = props.level,
|
|
39
|
+
level = _props$level === void 0 ? 0 : _props$level;
|
|
40
|
+
|
|
41
|
+
var _useContext = (0, _react.useContext)(_context.SummaryMenusContext),
|
|
42
|
+
onRemoveConcerner = _useContext.onRemoveConcerner;
|
|
43
|
+
|
|
44
|
+
var onCancelFollowHandler = function onCancelFollowHandler(e) {
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
onRemoveConcerner(user);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
title: "",
|
|
51
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__follower-node")),
|
|
52
|
+
style: {
|
|
53
|
+
paddingLeft: 12 + level * 10
|
|
54
|
+
}
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
56
|
+
user: user
|
|
57
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
|
+
style: {
|
|
59
|
+
width: "calc(100% - ".concat(12 + 13 + 15 + level * 10, "px)")
|
|
60
|
+
},
|
|
61
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__follower-node-username"), "noselect")
|
|
62
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
63
|
+
name: user.name,
|
|
64
|
+
id: user.userId
|
|
65
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__follower-node-cancel")),
|
|
67
|
+
onClick: onCancelFollowHandler
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
69
|
+
overlay: /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)(_i18n.locale.unsubscribe)),
|
|
70
|
+
placement: "top",
|
|
71
|
+
align: {
|
|
72
|
+
offset: [0, 5]
|
|
73
|
+
}
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
|
+
className: "tu-icon-cross"
|
|
76
|
+
}))));
|
|
77
|
+
}
|
|
@@ -49,13 +49,15 @@ var SummaryShare = function SummaryShare(props) {
|
|
|
49
49
|
if (data.href) {
|
|
50
50
|
window.location.href = data.href;
|
|
51
51
|
}
|
|
52
|
-
};
|
|
53
52
|
|
|
54
|
-
var handleShowShareList = function handleShowShareList(e) {
|
|
55
|
-
e.stopPropagation();
|
|
56
53
|
onExpand(e);
|
|
57
54
|
setIsShowShare(!isShowShare);
|
|
58
|
-
};
|
|
55
|
+
}; // const handleShowShareList = (e) => {
|
|
56
|
+
// e.stopPropagation();
|
|
57
|
+
// onExpand(e);
|
|
58
|
+
// setIsShowShare(!isShowShare);
|
|
59
|
+
// };
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
63
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
@@ -66,8 +68,7 @@ var SummaryShare = function SummaryShare(props) {
|
|
|
66
68
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
69
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
68
70
|
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
70
|
-
onClick: handleShowShareList
|
|
71
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
71
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
73
|
className: (0, _classnames["default"])('tu-icon-APP-xi', _defineProperty({}, "".concat(_precls["default"], "__share-arrow-down"), isShowShare))
|
|
73
74
|
})));
|
|
@@ -49,13 +49,15 @@ var SummaryTongji = function SummaryTongji(props) {
|
|
|
49
49
|
if (data.href) {
|
|
50
50
|
window.location.href = data.href;
|
|
51
51
|
}
|
|
52
|
-
};
|
|
53
52
|
|
|
54
|
-
var handleShowShareList = function handleShowShareList(e) {
|
|
55
|
-
e.stopPropagation();
|
|
56
53
|
onExpand(e);
|
|
57
54
|
setIsShowTongji(!isShowTongji);
|
|
58
|
-
};
|
|
55
|
+
}; // const handleShowShareList = (e) => {
|
|
56
|
+
// e.stopPropagation();
|
|
57
|
+
// onExpand(e);
|
|
58
|
+
// setIsShowTongji(!isShowTongji);
|
|
59
|
+
// };
|
|
60
|
+
|
|
59
61
|
|
|
60
62
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
63
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
@@ -66,8 +68,7 @@ var SummaryTongji = function SummaryTongji(props) {
|
|
|
66
68
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
69
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
68
70
|
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
70
|
-
onClick: handleShowShareList
|
|
71
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect")
|
|
71
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
73
|
className: (0, _classnames["default"])('tu-icon-APP-xi', _defineProperty({}, "".concat(_precls["default"], "__share-arrow-down"), isShowTongji))
|
|
73
74
|
})));
|
|
@@ -0,0 +1,95 @@
|
|
|
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"] = _default;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _userSelector = _interopRequireDefault(require("../../../../user-selector"));
|
|
15
|
+
|
|
16
|
+
var _requestApis = require("../../../request-apis");
|
|
17
|
+
|
|
18
|
+
var _toast = _interopRequireDefault(require("../../../../toast"));
|
|
19
|
+
|
|
20
|
+
var _context = require("../../../context");
|
|
21
|
+
|
|
22
|
+
var _precls = _interopRequireDefault(require("../precls"));
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
|
+
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
function _default(props) {
|
|
33
|
+
var onExpand = props.onExpand,
|
|
34
|
+
title = props.title,
|
|
35
|
+
data = props.data;
|
|
36
|
+
var userRef = (0, _react.useRef)();
|
|
37
|
+
|
|
38
|
+
var _useContext = (0, _react.useContext)(_context.SummaryMenusContext),
|
|
39
|
+
onAddConcerner = _useContext.onAddConcerner;
|
|
40
|
+
|
|
41
|
+
var onExpandHander = function onExpandHander(e) {
|
|
42
|
+
onExpand(e);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var onAddConcernHandler = function onAddConcernHandler(e) {
|
|
46
|
+
e.stopPropagation(); // @ts-ignore
|
|
47
|
+
|
|
48
|
+
userRef.current && userRef.current.open();
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var onUserSelectHandler = function onUserSelectHandler(users, _, e) {
|
|
52
|
+
(0, _requestApis.addSummaryFollower)(users[0].data.userId).then(function (res) {
|
|
53
|
+
if (res.Code != 1) {
|
|
54
|
+
_toast["default"].Error(res.Message, {});
|
|
55
|
+
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
onAddConcerner(users[0]);
|
|
60
|
+
})["catch"](function (err) {
|
|
61
|
+
return console.log(err);
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
66
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node")),
|
|
67
|
+
onClick: onExpandHander,
|
|
68
|
+
title: ""
|
|
69
|
+
}, data.icon && /*#__PURE__*/_react["default"].createElement("span", {
|
|
70
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-icon"), data.icon)
|
|
71
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
72
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-title"), "noselect")
|
|
73
|
+
}, title), /*#__PURE__*/_react["default"].createElement("span", {
|
|
74
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__user-concern-node-add"), "noselect"),
|
|
75
|
+
onClick: onAddConcernHandler
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
+
className: "tu-icon-add1"
|
|
78
|
+
})), /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
|
|
79
|
+
ref: userRef,
|
|
80
|
+
multiple: false,
|
|
81
|
+
position: "bottomLeft",
|
|
82
|
+
onSelect: onUserSelectHandler,
|
|
83
|
+
disabledDepartSelect: true,
|
|
84
|
+
showSearchInput: true,
|
|
85
|
+
searchedPanes: {
|
|
86
|
+
user: true,
|
|
87
|
+
depart: false,
|
|
88
|
+
group: false
|
|
89
|
+
},
|
|
90
|
+
trigger: /*#__PURE__*/_react["default"].createElement("span", null),
|
|
91
|
+
panes: {
|
|
92
|
+
depart: true
|
|
93
|
+
}
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.OkrMenusContext = exports.FlipContext = void 0;
|
|
6
|
+
exports.SummaryMenusContext = exports.OkrMenusContext = exports.FlipContext = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -15,4 +15,8 @@ exports.OkrMenusContext = OkrMenusContext;
|
|
|
15
15
|
|
|
16
16
|
var FlipContext = /*#__PURE__*/_react["default"].createContext();
|
|
17
17
|
|
|
18
|
-
exports.FlipContext = FlipContext;
|
|
18
|
+
exports.FlipContext = FlipContext;
|
|
19
|
+
|
|
20
|
+
var SummaryMenusContext = /*#__PURE__*/_react["default"].createContext();
|
|
21
|
+
|
|
22
|
+
exports.SummaryMenusContext = SummaryMenusContext;
|
|
@@ -49,9 +49,10 @@ var DemoMenus = function DemoMenus(props) {
|
|
|
49
49
|
var _props$onSelect = props.onSelect,
|
|
50
50
|
onSelect = _props$onSelect === void 0 ? function () {} : _props$onSelect,
|
|
51
51
|
history = props.history,
|
|
52
|
-
|
|
52
|
+
roleList = props.roleList,
|
|
53
|
+
showCompeteCustomer = props.showCompeteCustomer;
|
|
53
54
|
var menuRef = (0, _react.useRef)();
|
|
54
|
-
var
|
|
55
|
+
var demoMenusData = (0, _react.useRef)(_menus.defaultRefObject);
|
|
55
56
|
|
|
56
57
|
var _useState = (0, _react.useState)([]),
|
|
57
58
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -64,18 +65,18 @@ var DemoMenus = function DemoMenus(props) {
|
|
|
64
65
|
setExpandedKeys = _useState4[1];
|
|
65
66
|
|
|
66
67
|
var _useState5 = (0, _react.useState)(function () {
|
|
67
|
-
|
|
68
|
-
return
|
|
68
|
+
demoMenusData.current = new _menus["default"](roleList, showCompeteCustomer);
|
|
69
|
+
return demoMenusData.current.getMenus();
|
|
69
70
|
}),
|
|
70
71
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
71
72
|
menus = _useState6[0],
|
|
72
73
|
setMenus = _useState6[1];
|
|
73
74
|
|
|
74
75
|
(0, _react.useEffect)(function () {
|
|
75
|
-
|
|
76
|
-
setMenus(
|
|
76
|
+
demoMenusData.current = new _menus["default"](roleList, showCompeteCustomer);
|
|
77
|
+
setMenus(demoMenusData.current.getMenus());
|
|
77
78
|
setExpandedKeys(["demofree"]);
|
|
78
|
-
}, [
|
|
79
|
+
}, [roleList, showCompeteCustomer]);
|
|
79
80
|
var flipRef = (0, _react.useRef)({
|
|
80
81
|
next: function next() {},
|
|
81
82
|
goback: function goback() {}
|
|
@@ -95,11 +96,11 @@ var DemoMenus = function DemoMenus(props) {
|
|
|
95
96
|
|
|
96
97
|
|
|
97
98
|
(0, _react.useEffect)(function () {
|
|
98
|
-
var menuHighlight = new _menuHighlight["default"](history,
|
|
99
|
+
var menuHighlight = new _menuHighlight["default"](history, roleList.includes(_menus.ERoleType.Manager));
|
|
99
100
|
menuHighlight.highlight(function (menu) {
|
|
100
101
|
return setSelectedMenuKeys([menu]);
|
|
101
102
|
});
|
|
102
|
-
}, [history.location.pathname, history.location.search,
|
|
103
|
+
}, [history.location.pathname, history.location.search, roleList]);
|
|
103
104
|
|
|
104
105
|
var onSelectHandler = function onSelectHandler(selectedKyes, _ref) {
|
|
105
106
|
var node = _ref.node;
|
|
@@ -25,7 +25,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
25
25
|
_createClass(_default, [{
|
|
26
26
|
key: "highlight",
|
|
27
27
|
value: function highlight(cb) {
|
|
28
|
-
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);else if (this.isAllCustomer()) cb(_menus.PAGE_ALL_CUSTOMER);else if (this.isPublicCustomer()) cb(_menus.PAGE_PUBLIC_CUSTOMER);else if (this.isMyCustomer()) cb(_menus.PAGE_MY_CUSTOMER);
|
|
28
|
+
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);else if (this.isAllCustomer()) cb(_menus.PAGE_ALL_CUSTOMER);else if (this.isPublicCustomer()) cb(_menus.PAGE_PUBLIC_CUSTOMER);else if (this.isMyCustomer()) cb(_menus.PAGE_MY_CUSTOMER);else if (this.isLimitCustomer()) cb(_menus.PAGE_LIMIT_CUSTOMER);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isChart",
|
|
@@ -64,7 +64,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
64
64
|
pathname = _this$history$locatio.pathname,
|
|
65
65
|
search = _this$history$locatio.search;
|
|
66
66
|
|
|
67
|
-
if (this.isManager
|
|
67
|
+
if (this.isManager) {
|
|
68
68
|
return pathname.match(/demofree\/list/) && (!search || search.match(/selected[\s]*?=[\s]*?unassigned/));
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -120,6 +120,12 @@ var _default = /*#__PURE__*/function () {
|
|
|
120
120
|
var pathname = this.history.location.pathname;
|
|
121
121
|
return pathname.match(/demofree\/customer\/all/);
|
|
122
122
|
}
|
|
123
|
+
}, {
|
|
124
|
+
key: "isLimitCustomer",
|
|
125
|
+
value: function isLimitCustomer() {
|
|
126
|
+
var pathname = this.history.location.pathname;
|
|
127
|
+
return pathname.match(/demofree\/customer\/limit/);
|
|
128
|
+
}
|
|
123
129
|
}]);
|
|
124
130
|
|
|
125
131
|
return _default;
|