@titaui/pc 1.12.7-beta.1 → 1.12.7-beta.12
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 +2 -2
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +6 -4
- package/lib/components/color-date-picker/index.css +65 -0
- package/lib/components/color-date-picker/index.js +123 -0
- package/lib/components/color-date-picker/interface.js +14 -0
- package/lib/components/common-share/publishMblog.js +4 -2
- 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 +4 -2
- package/lib/components/create-okr-modal/fields/okr-visibility-detail.js +4 -2
- package/lib/components/create-okr-modal/index.js +4 -2
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/request-api.js +16 -12
- package/lib/components/create-okr-modal/utils/helper.js +6 -2
- 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 +6 -4
- package/lib/components/dialog-upload/index.js +4 -2
- package/lib/components/dialog-upload/uploaded-preview.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.js +1 -1
- package/lib/components/drawer-manager/drawerWrapper.js +5 -3
- 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/comments-dialog/encourage.js +7 -7
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +23 -17
- package/lib/components/dynamic/dynamic-item/components/okr-progress/constant.js +31 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +90 -57
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/components/summary-header/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +46 -13
- package/lib/components/dynamic/dynamic-item/components/task-progress/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +106 -31
- 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 +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 +11 -5
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +45 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +73 -16
- 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 +15 -5
- 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/firework/index.js +6 -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/input-verification-code/index.js +4 -2
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/grid-layout/util/network.js +10 -6
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/import-modal/import-okr-modal/index.js +4 -1
- package/lib/components/import-modal/import-task-modal/index.js +1 -1
- package/lib/components/import-modal/tree/okr-tree/index.js +4 -2
- 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/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +7 -3
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +7 -3
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +59 -29
- package/lib/components/menus/export-modules/summary-menus/menus.js +56 -50
- package/lib/components/menus/request-apis.js +8 -2
- package/lib/components/new-confidence/index.js +5 -5
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +4 -2
- package/lib/components/okr-detail/components/ao-nice/index.js +6 -4
- 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 +4 -2
- package/lib/components/okr-detail/components/header/o-avatar.js +4 -2
- 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 +4 -2
- package/lib/components/okr-detail/components/o-progress-update/index.js +4 -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 +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +4 -2
- 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 +4 -2
- 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 +4 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +8 -6
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +4 -2
- package/lib/components/okr-detail/detail-footer/index.js +4 -2
- package/lib/components/okr-detail/detail-header/index.js +12 -10
- package/lib/components/okr-detail/okr-list/index.js +4 -2
- package/lib/components/okr-detail/request-apis.js +6 -2
- package/lib/components/okr-flow/child-node/fields/creator.js +4 -2
- package/lib/components/okr-flow/child-node/work-node.js +4 -2
- package/lib/components/okr-flow/export-modal/index.js +4 -23
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +10 -8
- package/lib/components/okr-flow/request-apis.js +6 -2
- package/lib/components/okr-flow/root-node/index.js +4 -2
- package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
- package/lib/components/okr-progress-modal/index.js +4 -2
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +6 -4
- 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 +8 -4
- package/lib/components/okr-share/common-painter/openDataPainter.js +6 -2
- package/lib/components/okr-share/pink-card/drawDepartmentName.js +6 -2
- package/lib/components/okr-share/pink-card/drawQuote.js +6 -2
- package/lib/components/okr-share/pink-card/drawUserName.js +6 -2
- package/lib/components/okr-share/pink-card/index.js +6 -2
- package/lib/components/okr-share/publishMblog.js +4 -2
- package/lib/components/okr-share/shareCardSelector.js +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +4 -4
- package/lib/components/okrcase-library/server/network.js +24 -20
- package/lib/components/open-data-painter/index.js +6 -2
- 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/helper/index.js +6 -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/week-panel/index.js +1 -1
- package/lib/components/picker/components/panels/week-panel/utils.js +45 -0
- package/lib/components/picker/components/panels/week-panel/week-body.js +9 -56
- 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/components/picker-trigger/index.js +2 -3
- 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/promise-confirm/index.css +0 -0
- package/lib/components/promise-confirm/index.js +115 -0
- package/lib/components/promise-confirm/interface.js +5 -0
- 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 -3
- package/lib/components/regulation-setting-item/index.css +33 -0
- package/lib/components/regulation-setting-item/index.js +37 -0
- 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/rich-editor-at/index.js +9 -4
- package/lib/components/rich-editor-upload/index.js +3 -0
- 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 +6 -2
- package/lib/components/superset-charts/fetch-assets-and-append/index.js +8 -4
- package/lib/components/survey-model/request-api.js +6 -2
- 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/index.js +7 -5
- 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 +4 -2
- package/lib/components/task-relation-modal/tree/okr-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +4 -2
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/work-relation/index.js +7 -5
- package/lib/components/task-tree/task-item-node/e-project.js +4 -2
- package/lib/components/task-tree/task-item-node/e-task.js +4 -2
- 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 +12 -8
- 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 +2 -2
- package/lib/components/upvote/index.js +7 -5
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- 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 +6 -4
- package/lib/components/version-change-modal/request-api.js +6 -2
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/weekly-report/card.js +4 -12
- package/lib/components/weekly-report/common-painter/darwAvatar.js +10 -6
- package/lib/components/weekly-report/common-painter/drawName.js +6 -2
- package/lib/components/weekly-report/common-painter/openDataPainter.js +6 -2
- package/lib/components/weekly-report/index.js +6 -4
- package/lib/components/write-summary-modal/index.css +79 -0
- package/lib/components/write-summary-modal/index.js +151 -0
- package/lib/components/write-summary-modal/interface.js +19 -0
- package/lib/components/write-summary-modal/request-api.js +18 -0
- package/lib/components/write-summary-modal/utils.js +31 -0
- 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 +24 -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 +6 -2
- 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/new-okr-list/request-api.js +18 -14
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +5 -3
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/request-apis.js +6 -2
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +2 -2
- package/lib/utils/constant.js +8 -2
- package/lib/utils/helpers.js +48 -11
- package/lib/utils/request-v1.js +6 -2
- package/lib/utils/request.js +6 -2
- package/package.json +1 -1
|
@@ -27,13 +27,15 @@ var _conditionRender = _interopRequireDefault(require("../../../../condition-ren
|
|
|
27
27
|
|
|
28
28
|
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
29
29
|
|
|
30
|
+
var _commentsDialog = _interopRequireDefault(require("../comments-dialog"));
|
|
31
|
+
|
|
30
32
|
var _constant = require("../../../constant");
|
|
31
33
|
|
|
32
34
|
var _getLocale = require("../../../../../utils/getLocale");
|
|
33
35
|
|
|
34
|
-
var
|
|
36
|
+
var _constant2 = require("./constant");
|
|
35
37
|
|
|
36
|
-
var
|
|
38
|
+
var _evalute = _interopRequireDefault(require("./img/evalute.png"));
|
|
37
39
|
|
|
38
40
|
require("./index.css");
|
|
39
41
|
|
|
@@ -82,7 +84,9 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
82
84
|
isTop = _data$isTop === void 0 ? false : _data$isTop,
|
|
83
85
|
_data$isCollect = data.isCollect,
|
|
84
86
|
isCollect = _data$isCollect === void 0 ? false : _data$isCollect,
|
|
85
|
-
feedType = data.feedType
|
|
87
|
+
feedType = data.feedType,
|
|
88
|
+
canevaluate = data.canevaluate,
|
|
89
|
+
dailyContent = data.dailyContent;
|
|
86
90
|
|
|
87
91
|
var _useState = (0, _react.useState)(isTop),
|
|
88
92
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -102,11 +106,17 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
102
106
|
var _useState7 = (0, _react.useState)(false),
|
|
103
107
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
104
108
|
selectVisible = _useState8[0],
|
|
105
|
-
setSelectVisible = _useState8[1];
|
|
106
|
-
// userId: publishUser.id || publishUser.userId,
|
|
107
|
-
// userType: publishUser.userType || 2,
|
|
108
|
-
// });
|
|
109
|
+
setSelectVisible = _useState8[1];
|
|
109
110
|
|
|
111
|
+
var _useState9 = (0, _react.useState)(false),
|
|
112
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
113
|
+
evaluateVisible = _useState10[0],
|
|
114
|
+
setEvaluateVisible = _useState10[1];
|
|
115
|
+
|
|
116
|
+
var _useState11 = (0, _react.useState)(""),
|
|
117
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
118
|
+
mindImg = _useState12[0],
|
|
119
|
+
setMindImg = _useState12[1];
|
|
110
120
|
|
|
111
121
|
var url = "";
|
|
112
122
|
|
|
@@ -229,6 +239,14 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
229
239
|
window.open(url, "_blank");
|
|
230
240
|
};
|
|
231
241
|
|
|
242
|
+
var handleClickEvaluate = function handleClickEvaluate() {
|
|
243
|
+
setEvaluateVisible(true);
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
var handleCloseEvaluateDialog = function handleCloseEvaluateDialog() {
|
|
247
|
+
setEvaluateVisible(false);
|
|
248
|
+
};
|
|
249
|
+
|
|
232
250
|
var renderDialogConfirm = (0, _react.useMemo)(function () {
|
|
233
251
|
return /*#__PURE__*/_react["default"].createElement(_dialogConfirm["default"], {
|
|
234
252
|
visible: showDialogConfirm,
|
|
@@ -245,6 +263,17 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
245
263
|
onClick: enSureDeleteDynamic
|
|
246
264
|
}, (0, _getLocale.getLocale)("Mod_Delete")));
|
|
247
265
|
}, [showDialogConfirm]);
|
|
266
|
+
(0, _react.useEffect)(function () {
|
|
267
|
+
var mindData = dailyContent.filter(function (item) {
|
|
268
|
+
return item.title === "心情";
|
|
269
|
+
}); // 暂时用title
|
|
270
|
+
|
|
271
|
+
if (mindData[0].content !== "") {
|
|
272
|
+
setMindImg(_constant2.Motion.filter(function (item) {
|
|
273
|
+
return item.id === parseInt(mindData[0].content, 10);
|
|
274
|
+
})[0].img);
|
|
275
|
+
}
|
|
276
|
+
}, []);
|
|
248
277
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
249
278
|
className: "".concat(prefix)
|
|
250
279
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -262,8 +291,8 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
262
291
|
textNum: 1,
|
|
263
292
|
fontSize: 18
|
|
264
293
|
}
|
|
265
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
266
|
-
src:
|
|
294
|
+
}), mindImg && /*#__PURE__*/_react["default"].createElement("img", {
|
|
295
|
+
src: mindImg,
|
|
267
296
|
className: "".concat(prefix, "-desc-mind")
|
|
268
297
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
269
298
|
className: "".concat(prefix, "-desc")
|
|
@@ -280,12 +309,13 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
280
309
|
name: user.name,
|
|
281
310
|
id: user.userId
|
|
282
311
|
})
|
|
283
|
-
})), desc, suffixContent), /*#__PURE__*/_react["default"].createElement("div", {
|
|
284
|
-
className: "".concat(prefix, "__evalute")
|
|
312
|
+
})), desc, suffixContent), canevaluate && /*#__PURE__*/_react["default"].createElement("div", {
|
|
313
|
+
className: "".concat(prefix, "__evalute"),
|
|
314
|
+
onClick: handleClickEvaluate
|
|
285
315
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
286
316
|
src: _evalute["default"],
|
|
287
317
|
className: "".concat(prefix, "__evalute-img")
|
|
288
|
-
}), (0, _getLocale.getLocale)(
|
|
318
|
+
}), (0, _getLocale.getLocale)("Per_MyRe_button_Toevaluate")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
289
319
|
className: "".concat(prefix, "__more-operate")
|
|
290
320
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
291
321
|
popupPlacement: "bottomRight",
|
|
@@ -341,7 +371,10 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
341
371
|
className: (0, _classnames["default"])("tu-icon-del", "".concat(prefix, "__more-operate-selection-icon"))
|
|
342
372
|
}), (0, _getLocale.getLocale)("Mod_Delete"))))))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
343
373
|
className: "".concat(prefix, "-desc-time")
|
|
344
|
-
}, createDate))), renderDialogConfirm
|
|
374
|
+
}, createDate))), renderDialogConfirm, /*#__PURE__*/_react["default"].createElement(_commentsDialog["default"], {
|
|
375
|
+
visible: evaluateVisible,
|
|
376
|
+
closeDialog: handleCloseEvaluateDialog
|
|
377
|
+
}));
|
|
345
378
|
};
|
|
346
379
|
|
|
347
380
|
var _default = DynamicItemHeader;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EStatusStatus2ClassType = void 0;
|
|
7
|
+
var EStatusStatus2ClassType = {
|
|
8
|
+
2: "tu-icon-finished",
|
|
9
|
+
1: "tu-icon-running",
|
|
10
|
+
4: "tu-icon-canceled",
|
|
11
|
+
3: "tu-icon-deferred",
|
|
12
|
+
6: "tu-icon-paused",
|
|
13
|
+
0: "tu-icon-notstart",
|
|
14
|
+
5: "tu-icon-jiantou-right"
|
|
15
|
+
};
|
|
16
|
+
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -15,6 +13,12 @@ var _getLocale = require("../../../../../utils/getLocale");
|
|
|
15
13
|
|
|
16
14
|
var _progress = _interopRequireDefault(require("../progress"));
|
|
17
15
|
|
|
16
|
+
var _schedule = _interopRequireDefault(require("../schedule"));
|
|
17
|
+
|
|
18
|
+
var _tableRowOProject = _interopRequireDefault(require("../table-row-o-project"));
|
|
19
|
+
|
|
20
|
+
var _constant = require("./constant");
|
|
21
|
+
|
|
18
22
|
require("./index.css");
|
|
19
23
|
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -23,51 +27,122 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
27
|
|
|
24
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
+
|
|
34
|
+
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."); }
|
|
35
|
+
|
|
36
|
+
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); }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
+
|
|
44
|
+
var prefix = 'titaui-dynamic-summary-task-progress';
|
|
45
|
+
var isImport = true;
|
|
46
|
+
var rows1 = {
|
|
47
|
+
"Rows": [{
|
|
48
|
+
"Id": 0,
|
|
49
|
+
"ParentId": 0,
|
|
50
|
+
"ParentObjType": 0,
|
|
51
|
+
"ParentObjName": "",
|
|
52
|
+
"Name": "1231313",
|
|
53
|
+
"Progress": 50,
|
|
54
|
+
"Status": 1,
|
|
55
|
+
"LastContent": " ",
|
|
56
|
+
"LastContentTime": "2022-05-25T20:57:09.4231912+08:00",
|
|
57
|
+
"IsQuantifyTask": 0,
|
|
58
|
+
"Deadline": "2022-06-17T18:00:00",
|
|
59
|
+
"StartDate": "2022-04-13T08:00:00",
|
|
60
|
+
"ImportTime": "2022-05-25T18:56:30.8395384+08:00",
|
|
61
|
+
"ImportType": 1,
|
|
62
|
+
"IsImport": 1
|
|
63
|
+
}]
|
|
64
|
+
};
|
|
27
65
|
|
|
28
66
|
var TaskProgress = function TaskProgress(_ref) {
|
|
29
|
-
var
|
|
30
|
-
|
|
67
|
+
var data = _ref.data,
|
|
68
|
+
_ref$type = _ref.type,
|
|
69
|
+
type = _ref$type === void 0 ? 'day' : _ref$type;
|
|
70
|
+
|
|
71
|
+
var _useState = (0, _react.useState)(),
|
|
72
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
73
|
+
rowsData = _useState2[0],
|
|
74
|
+
setRowsData = _useState2[1];
|
|
75
|
+
|
|
31
76
|
var renderTitle = (0, _react.useMemo)(function () {
|
|
32
|
-
if (type ===
|
|
33
|
-
return (0, _getLocale.getLocale)(
|
|
34
|
-
} else if (type ===
|
|
35
|
-
return (0, _getLocale.getLocale)(
|
|
36
|
-
} else if (type ===
|
|
37
|
-
return (0, _getLocale.getLocale)(
|
|
77
|
+
if (type === 'day') {
|
|
78
|
+
return (0, _getLocale.getLocale)('Rep_NewS_Toworkasks');
|
|
79
|
+
} else if (type === 'week') {
|
|
80
|
+
return (0, _getLocale.getLocale)('Rep_NewS_Thisetasks');
|
|
81
|
+
} else if (type === 'month') {
|
|
82
|
+
return (0, _getLocale.getLocale)('Rep_NewS_Taskormonth');
|
|
38
83
|
}
|
|
39
84
|
|
|
40
|
-
return
|
|
85
|
+
return '';
|
|
41
86
|
}, [type]);
|
|
42
87
|
var renderTable = (0, _react.useMemo)(function () {
|
|
43
88
|
return /*#__PURE__*/_react["default"].createElement("table", null, /*#__PURE__*/_react["default"].createElement("thead", null, /*#__PURE__*/_react["default"].createElement("tr", {
|
|
44
89
|
className: "".concat(prefix, "__table-title")
|
|
45
90
|
}, /*#__PURE__*/_react["default"].createElement("td", {
|
|
46
91
|
className: "".concat(prefix, "__table-title-okrs")
|
|
47
|
-
}, (0, _getLocale.getLocale)(
|
|
92
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Title_Taskname')), /*#__PURE__*/_react["default"].createElement("td", {
|
|
48
93
|
className: "".concat(prefix, "__table-title-progress")
|
|
49
|
-
}, (0, _getLocale.getLocale)(
|
|
94
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Progresss1')), /*#__PURE__*/_react["default"].createElement("td", {
|
|
50
95
|
className: "".concat(prefix, "__table-title-progress-desc")
|
|
51
|
-
}, (0, _getLocale.getLocale)(
|
|
52
|
-
overlay: (0, _getLocale.getLocale)(
|
|
96
|
+
}, (0, _getLocale.getLocale)('Feed_Tab_Title_Progress'), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
97
|
+
overlay: (0, _getLocale.getLocale)('Rep_Tab_Mys_FillOKRsync'),
|
|
53
98
|
placement: "top",
|
|
54
99
|
align: {
|
|
55
100
|
offset: [0, 5]
|
|
56
101
|
}
|
|
57
102
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
58
103
|
className: "tu-icon-wiki ".concat(prefix, "__table-title-progress-desc-icon")
|
|
59
|
-
}))))), /*#__PURE__*/_react["default"].createElement("tbody", null,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
104
|
+
}))))), /*#__PURE__*/_react["default"].createElement("tbody", null, rowsData && rows1.Rows.map(function (item) {
|
|
105
|
+
if (isImport) {
|
|
106
|
+
var _item$LastContent;
|
|
107
|
+
|
|
108
|
+
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
|
+
className: "".concat(prefix, "__table-row-title") // onClick={() => handleShowTaskDetail(item)}
|
|
110
|
+
|
|
111
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
112
|
+
className: "".concat(prefix, "__table-row-title-icon ").concat(_constant.EStatusStatus2ClassType[item.Status])
|
|
113
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
+
className: "".concat(prefix, "__table-row-title-text")
|
|
115
|
+
}, item.Name))), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_progress["default"], {
|
|
116
|
+
id: "".concat(item.Id),
|
|
117
|
+
type: "task",
|
|
118
|
+
status: "normal",
|
|
119
|
+
value: item.Progress,
|
|
120
|
+
editable: false,
|
|
121
|
+
riskLevel: item.Status
|
|
122
|
+
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
123
|
+
value: (item === null || item === void 0 ? void 0 : (_item$LastContent = item.LastContent) === null || _item$LastContent === void 0 ? void 0 : _item$LastContent.trim()) || '',
|
|
124
|
+
date: item.LastContentTime,
|
|
125
|
+
editable: false,
|
|
126
|
+
id: item.Id
|
|
127
|
+
})));
|
|
128
|
+
} else {
|
|
129
|
+
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", {
|
|
130
|
+
colSpan: 4
|
|
131
|
+
}, /*#__PURE__*/_react["default"].createElement(_tableRowOProject["default"], {
|
|
132
|
+
id: item.Id // isO={item.Type === EObjType.O}
|
|
133
|
+
,
|
|
134
|
+
extraClass: "".concat(prefix, "__table-obj"),
|
|
135
|
+
text: item.Name
|
|
136
|
+
})));
|
|
137
|
+
}
|
|
138
|
+
})));
|
|
139
|
+
}, [rowsData]);
|
|
140
|
+
(0, _react.useEffect)(function () {
|
|
141
|
+
if (_typeof(data) !== 'object') {
|
|
142
|
+
setRowsData(JSON.parse(data));
|
|
143
|
+
console.log(JSON.parse(data));
|
|
144
|
+
}
|
|
145
|
+
}, [data]);
|
|
71
146
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
147
|
className: prefix
|
|
73
148
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -76,15 +151,15 @@ var TaskProgress = function TaskProgress(_ref) {
|
|
|
76
151
|
className: "".concat(prefix, "__statistic")
|
|
77
152
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
153
|
className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--finished")
|
|
79
|
-
}, (0, _getLocale.getLocale)(
|
|
154
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_From_Completed'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
155
|
className: "".concat(prefix, "__statistic-item--finished-text")
|
|
81
156
|
}, "5")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
157
|
className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--processing")
|
|
83
|
-
}, (0, _getLocale.getLocale)(
|
|
158
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Inprogress'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
84
159
|
className: "".concat(prefix, "__statistic-item--processing-text")
|
|
85
160
|
}, "5")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
86
161
|
className: "".concat(prefix, "__statistic-item ").concat(prefix, "__statistic-item--overdue")
|
|
87
|
-
}, (0, _getLocale.getLocale)(
|
|
162
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_E_Overdue'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
88
163
|
className: "".concat(prefix, "__statistic-item--overdue-text")
|
|
89
164
|
}, "5"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
165
|
className: "".concat(prefix, "__table")
|
|
@@ -15,7 +15,7 @@ var _dynamicFooter = _interopRequireDefault(require("./dynamic-footer"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
18
|
-
function _extends() { _extends = Object.assign
|
|
18
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
19
19
|
|
|
20
20
|
var prefixCls = "titaui-dynamic-item";
|
|
21
21
|
|
|
@@ -47,7 +47,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
47
47
|
|
|
48
48
|
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; }
|
|
49
49
|
|
|
50
|
-
function _extends() { _extends = Object.assign
|
|
50
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
51
51
|
|
|
52
52
|
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; }
|
|
53
53
|
|
|
@@ -31,7 +31,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
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; }
|
|
33
33
|
|
|
34
|
-
function _extends() { _extends = Object.assign
|
|
34
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
35
35
|
|
|
36
36
|
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; }
|
|
37
37
|
|
|
@@ -33,7 +33,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
33
33
|
|
|
34
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
35
|
|
|
36
|
-
function _extends() { _extends = Object.assign
|
|
36
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
37
37
|
|
|
38
38
|
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; }
|
|
39
39
|
|
|
@@ -37,7 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
37
37
|
|
|
38
38
|
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; }
|
|
39
39
|
|
|
40
|
-
function _extends() { _extends = Object.assign
|
|
40
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
@@ -41,7 +41,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
44
|
-
function _extends() { _extends = Object.assign
|
|
44
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
45
45
|
|
|
46
46
|
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; }
|
|
47
47
|
|
|
@@ -35,7 +35,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
35
|
|
|
36
36
|
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; }
|
|
37
37
|
|
|
38
|
-
function _extends() { _extends = Object.assign
|
|
38
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
39
39
|
|
|
40
40
|
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; }
|
|
41
41
|
|
|
@@ -35,7 +35,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
35
|
|
|
36
36
|
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; }
|
|
37
37
|
|
|
38
|
-
function _extends() { _extends = Object.assign
|
|
38
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
39
39
|
|
|
40
40
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
41
41
|
|
|
@@ -37,7 +37,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
37
37
|
|
|
38
38
|
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; }
|
|
39
39
|
|
|
40
|
-
function _extends() { _extends = Object.assign
|
|
40
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js
CHANGED
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _avatar = _interopRequireDefault(require("../../../../../../components/avatar"));
|
|
11
|
+
|
|
10
12
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
11
13
|
|
|
12
14
|
var _fighting = _interopRequireDefault(require("../../img/fighting.png"));
|
|
@@ -58,19 +60,23 @@ var userInfo = [{
|
|
|
58
60
|
avatar: _fighting["default"]
|
|
59
61
|
}];
|
|
60
62
|
|
|
61
|
-
var RemindUserView = function RemindUserView() {
|
|
63
|
+
var RemindUserView = function RemindUserView(props) {
|
|
64
|
+
var data = props.data;
|
|
65
|
+
if (!data) return null;
|
|
62
66
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
67
|
className: preCls
|
|
64
68
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
69
|
className: "".concat(preCls, "__title")
|
|
66
70
|
}, (0, _getLocale.getLocale)('OKR_MyO_himher')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
71
|
className: "".concat(preCls, "__list")
|
|
68
|
-
},
|
|
72
|
+
}, data.map(function (item) {
|
|
69
73
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
74
|
className: "".concat(preCls, "__user")
|
|
71
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
76
|
+
userId: item.userId,
|
|
77
|
+
name: item.name,
|
|
78
|
+
src: item.avatar.medium,
|
|
79
|
+
color: item.avatar.color
|
|
74
80
|
}), item.name);
|
|
75
81
|
})));
|
|
76
82
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Motion = exports.EEmotionType = void 0;
|
|
7
|
+
|
|
8
|
+
var _fighting = _interopRequireDefault(require("./img/fighting.png"));
|
|
9
|
+
|
|
10
|
+
var _happy = _interopRequireDefault(require("./img/happy.png"));
|
|
11
|
+
|
|
12
|
+
var _longStory = _interopRequireDefault(require("./img/long-story.png"));
|
|
13
|
+
|
|
14
|
+
var _pressure = _interopRequireDefault(require("./img/pressure.png"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var EEmotionType;
|
|
19
|
+
exports.EEmotionType = EEmotionType;
|
|
20
|
+
|
|
21
|
+
(function (EEmotionType) {
|
|
22
|
+
EEmotionType[EEmotionType["Unset"] = 0] = "Unset";
|
|
23
|
+
EEmotionType[EEmotionType["Happy"] = 1] = "Happy";
|
|
24
|
+
EEmotionType[EEmotionType["Fighting"] = 2] = "Fighting";
|
|
25
|
+
EEmotionType[EEmotionType["HardToPutWords"] = 3] = "HardToPutWords";
|
|
26
|
+
EEmotionType[EEmotionType["Stressful"] = 4] = "Stressful";
|
|
27
|
+
})(EEmotionType || (exports.EEmotionType = EEmotionType = {}));
|
|
28
|
+
|
|
29
|
+
var Motion = [{
|
|
30
|
+
id: EEmotionType.Unset,
|
|
31
|
+
img: ""
|
|
32
|
+
}, {
|
|
33
|
+
id: EEmotionType.Happy,
|
|
34
|
+
img: _happy["default"]
|
|
35
|
+
}, {
|
|
36
|
+
id: EEmotionType.Fighting,
|
|
37
|
+
img: _fighting["default"]
|
|
38
|
+
}, {
|
|
39
|
+
id: EEmotionType.HardToPutWords,
|
|
40
|
+
img: _longStory["default"]
|
|
41
|
+
}, {
|
|
42
|
+
id: EEmotionType.Stressful,
|
|
43
|
+
img: _pressure["default"]
|
|
44
|
+
}];
|
|
45
|
+
exports.Motion = Motion;
|