@titaui/pc 1.12.7 → 1.12.9-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/icon-avatar/index.js +1 -1
- package/lib/components/avatar/num-avatar/index.js +1 -1
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
- package/lib/components/button/default-button/index.js +1 -1
- package/lib/components/button/icon-btn/index.js +1 -1
- package/lib/components/cascader/index.js +1 -1
- package/lib/components/cascader/time.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +2 -2
- package/lib/components/change-okr-modal/Item.js +21 -20
- package/lib/components/change-okr-modal/filterTab.js +2 -2
- package/lib/components/change-okr-modal/index.js +2 -2
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- package/lib/components/communication/CommunicationAttachments.js +2 -2
- package/lib/components/communication/ConvertUserName.js +2 -2
- package/lib/components/communication/index.js +8 -2
- package/lib/components/create-okr-modal/createSuccessCmp.js +47 -19
- package/lib/components/create-okr-modal/fields/index.css +14 -3
- package/lib/components/create-okr-modal/fields/o-new-name.js +31 -20
- package/lib/components/create-okr-modal/fields/okr-case.js +7 -5
- package/lib/components/create-okr-modal/fields/okr-parent.js +7 -5
- package/lib/components/create-okr-modal/index.js +215 -142
- package/lib/components/create-okr-modal/kr-items/index.css +23 -13
- package/lib/components/create-okr-modal/kr-items/krDatas.js +96 -76
- package/lib/components/create-okr-modal/kr-items/krItem.js +54 -57
- package/lib/components/create-okr-modal/objectType.js +2 -2
- package/lib/components/create-okr-modal/style.js +5 -5
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarBody.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/date-picker/index.js +2 -2
- package/lib/components/date-range-picker/index.js +2 -2
- package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/dialog/index.js +1 -1
- package/lib/components/dialog-confirm/index.js +1 -1
- package/lib/components/drawer/headerDrop.js +1 -1
- package/lib/components/drawer/index.css +9 -0
- package/lib/components/drawer/index.js +12 -9
- package/lib/components/drawer-manager/drawerWrapper.js +1 -1
- package/lib/components/drawer-manager/index.js +1 -1
- package/lib/components/drop-selector/index.js +1 -1
- package/lib/components/dynamic/components/title/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +8 -8
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +18 -18
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/index.js +9 -1
- package/lib/components/dynamic/dynamic-list/index.js +19 -2
- package/lib/components/eReport/eReportListEmpty.js +2 -2
- package/lib/components/eReport/eReportLists/reportList.js +31 -32
- package/lib/components/eReport/eReportShare/index.js +2 -2
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/index.js +2 -2
- package/lib/components/edit-kr-wight/EditKrWightModal.js +13 -11
- package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
- package/lib/components/emotions-selector/selector-content.js +2 -2
- package/lib/components/emotions-selector/selector-pop.js +2 -2
- package/lib/components/ereport-list/index.js +2 -2
- package/lib/components/error-boundary/index.js +2 -2
- package/lib/components/form/form-fields/date/index.js +1 -1
- package/lib/components/form/form-fields/dropdown/index.js +1 -1
- package/lib/components/form/form-fields/input/index.js +1 -1
- package/lib/components/form/form-fields/user/index.js +1 -1
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +2 -2
- package/lib/components/mblog/components/MblogAction.js +2 -2
- package/lib/components/mblog/components/MblogContent.js +2 -2
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/menus/components/menu-tree/index.js +1 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
- package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +104 -9
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +19 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +34 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
- package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
- package/lib/components/nav-top/components/app-center/index.css +154 -0
- package/lib/components/nav-top/components/app-center/index.js +157 -0
- package/lib/components/nav-top/components/menu/index.js +5 -9
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/nav-top/index.css +48 -7
- package/lib/components/nav-top/index.js +54 -33
- package/lib/components/nav-top/utils.js +464 -1
- package/lib/components/okr-detail/auth.js +2 -2
- package/lib/components/okr-detail/components/ao-nice/index.css +0 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
- package/lib/components/okr-detail/components/header/edit-name.js +76 -39
- package/lib/components/okr-detail/components/header/index.css +122 -41
- package/lib/components/okr-detail/components/header/index.js +45 -48
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
- package/lib/components/okr-detail/components/header/o-classify.js +154 -0
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/header/o-score.js +1 -1
- package/lib/components/okr-detail/components/icon-text/index.js +1 -1
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +66 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +174 -64
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +9 -9
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +15 -13
- package/lib/components/okr-detail/components/tab-panel-content/index.css +1 -0
- package/lib/components/okr-detail/detail-header/index.js +11 -5
- package/lib/components/okr-detail/okr-list/create-kr-item/index.css +17 -0
- package/lib/components/okr-detail/okr-list/create-kr-item/index.js +75 -53
- package/lib/components/okr-detail/okr-list/index.css +9 -0
- package/lib/components/okr-detail/okr-list/index.js +25 -25
- package/lib/components/okr-detail/request-apis.js +73 -69
- package/lib/components/okr-detail/schedule/components/kr-progress/index.js +3 -1
- package/lib/components/okr-detail/schedule/components/o-progress/index.js +34 -32
- package/lib/components/okr-detail/schedule/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-flow/child-node/kr-node.js +3 -1
- package/lib/components/okr-flow/child-node/work-node.js +3 -1
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +88 -40
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/okr-progress/components/kr-progress/index.js +5 -3
- package/lib/components/okr-progress/components/o-progress/index.js +3 -1
- package/lib/components/okr-progress/components/o-progress-update/index.js +2 -2
- package/lib/components/okr-progress/components/sub-o-progress/index.js +3 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
- package/lib/components/okr-review/ReviewPop/index.js +2 -2
- package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
- package/lib/components/okr-review/index.js +2 -2
- package/lib/components/okr-share/common-painter/openDataPainter.js +9 -6
- package/lib/components/okr-share/common-painter/utils.js +187 -36
- package/lib/components/okr-share/index.css +5 -4
- package/lib/components/okr-share/pink-card/card.js +3 -3
- package/lib/components/okr-share/pink-card/drawKrs.js +97 -18
- package/lib/components/okr-share/pink-card/index.js +20 -12
- package/lib/components/open-data-painter/index.js +6 -5
- package/lib/components/operation-records/OperationRecordItem.js +2 -2
- package/lib/components/operation-records/index.js +2 -2
- package/lib/components/pagination/pagination.js +1 -1
- package/lib/components/period-selector/components/button/index.js +1 -1
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
- package/lib/components/picker/picker.js +1 -1
- package/lib/components/point-demo/drop-down-box/index.js +1 -1
- package/lib/components/point-demo/input/index.js +3 -3
- package/lib/components/point-demo/popup/index.js +1 -1
- package/lib/components/popup/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +2 -2
- package/lib/components/praise-record/index.js +2 -2
- package/lib/components/range-picker-pop/index.js +3 -3
- package/lib/components/range-selector-pop/RangeList.js +2 -2
- package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
- package/lib/components/rich-editor/models/schema.js +2 -2
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
- package/lib/components/rich-editor/plugins/core/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
- package/lib/components/rich-editor/react/reactNodeView.js +4 -4
- package/lib/components/rich-editor/react/uiProvider.js +2 -2
- package/lib/components/rich-editor/ui/Popup/index.js +2 -2
- package/lib/components/scroll-container/index.js +2 -2
- package/lib/components/scrollbar/index.js +1 -1
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/scrollbar/simplebar-react.js +1 -1
- package/lib/components/search-dropdown/index.js +1 -1
- package/lib/components/search-key-handle/index.js +12 -10
- package/lib/components/select/Option.js +3 -3
- package/lib/components/select/index.js +3 -3
- package/lib/components/select-layer/index.js +23 -9
- package/lib/components/select-tags/index.js +1 -1
- package/lib/components/switch/index.js +1 -1
- package/lib/components/table/index.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +2 -2
- package/lib/components/task-relation-modal/request-api.js +5 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
- package/lib/components/task-relation-modal/tree-node/index.js +1 -1
- package/lib/components/task-relation-modal/tree-node/kr-node/index.js +4 -4
- package/lib/components/task-relation-modal/tree-node/o-node/index.js +8 -8
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/task-relation-modal/work-relation/index.js +1 -1
- package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
- package/lib/components/task-tree/task-tree.js +1 -1
- package/lib/components/textarea/index.js +1 -1
- package/lib/components/time-picker/time-picker-selector.js +1 -1
- package/lib/components/time-picker/time-picker.js +1 -1
- package/lib/components/time-picker/timer-picker-input.js +1 -1
- package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
- package/lib/components/tita-chart/charts/pie.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +2 -2
- package/lib/components/tooltip/error-tip.js +1 -1
- package/lib/components/tooltip/tooltip.js +10 -5
- package/lib/components/tree/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +19 -19
- package/lib/components/upload/index.js +25 -25
- package/lib/components/upvote/index.js +1 -1
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/category-selector-panel/index.js +1 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +35 -17
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +43 -9
- package/lib/components/user-selector/searched-panel/index.js +11 -5
- package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
- package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +2 -2
- package/lib/components/viewer/index.js +2 -2
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/animate/AnimateChild.js +2 -2
- package/lib/components-v1/animate/animate.js +2 -2
- package/lib/components-v1/avatar/index.js +2 -2
- package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
- package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
- package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
- package/lib/components-v1/confirm/index.js +2 -2
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
- package/lib/components-v1/input/Input.js +3 -3
- package/lib/components-v1/input/InputNumber.js +2 -2
- package/lib/components-v1/placement/placement.js +2 -2
- package/lib/components-v1/placement/placementInner.js +2 -2
- package/lib/components-v1/pop/Pop.js +2 -2
- package/lib/components-v1/pop/PopInner.js +2 -2
- package/lib/components-v1/portals/Portals.js +2 -2
- package/lib/components-v1/progress/CircleProgress.js +2 -2
- package/lib/components-v1/progress/LineProgress.js +2 -2
- package/lib/components-v1/progress/index.js +2 -2
- package/lib/components-v1/radio/radio.js +2 -2
- package/lib/components-v1/radio/radioGroup.js +2 -2
- package/lib/components-v1/search/index.js +2 -2
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/select/index.js +3 -3
- package/lib/components-v1/tabs/index.js +2 -2
- package/lib/components-v1/textarea/index.js +2 -2
- package/lib/components-v1/transition/index.js +2 -2
- package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
- package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
- package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
- package/lib/components-v1/userSelector/components/SingleMode.js +9 -7
- package/lib/components-v1/userSelector/components/UserItem.js +2 -2
- package/lib/components-v1/userSelector/index.js +2 -2
- package/lib/pages/aha2021/index.js +5 -5
- package/lib/pages/aha2021/new-menu-switcher/index.css +40 -0
- package/lib/pages/aha2021/new-menu-switcher/index.js +81 -0
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +15 -0
- package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +3 -3
- package/lib/pages/appointment-demo/popup/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +3 -3
- package/lib/pages/group-management/components/radio/index.js +1 -1
- package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
- package/lib/pages/group-management/tree/index.js +1 -1
- package/lib/pages/home/components/data-list/table/columns/krName.js +3 -1
- package/lib/pages/home/components/data-list/table/columns/okrName.js +4 -2
- package/lib/pages/new-okr-list/header/index.js +15 -15
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
- package/lib/pages/okr-map/level2-search/user.js +1 -0
- package/lib/pages/okr-map/share-dialog/index.js +1 -1
- package/lib/utils/auth.js +2 -2
- package/lib/utils/hooks.js +5 -5
- package/lib/utils/open-data.js +216 -66
- package/lib/utils/tita-okr-cycle.js +3 -3
- package/package.json +2 -1
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -37,6 +37,8 @@ var _getLocale = require("../../../../../utils/getLocale");
|
|
|
37
37
|
|
|
38
38
|
var _i18nFrontTranslate = require("../../../../../utils/i18n-front-translate");
|
|
39
39
|
|
|
40
|
+
var _openData = require("../../../../../utils/open-data");
|
|
41
|
+
|
|
40
42
|
require("./index.css");
|
|
41
43
|
|
|
42
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -103,12 +105,12 @@ var OProgress = function OProgress(_ref) {
|
|
|
103
105
|
editOProgressVisiable = _useState12[0],
|
|
104
106
|
setEditOProgressVisiable = _useState12[1];
|
|
105
107
|
|
|
106
|
-
var _useState13 = (0, _react.useState)(
|
|
108
|
+
var _useState13 = (0, _react.useState)(''),
|
|
107
109
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
108
110
|
editOProgressContent = _useState14[0],
|
|
109
111
|
setEditOProgressContent = _useState14[1];
|
|
110
112
|
|
|
111
|
-
var _useState15 = (0, _react.useState)(
|
|
113
|
+
var _useState15 = (0, _react.useState)(''),
|
|
112
114
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
113
115
|
editOProgressId = _useState16[0],
|
|
114
116
|
setEditOProgressId = _useState16[1];
|
|
@@ -143,9 +145,9 @@ var OProgress = function OProgress(_ref) {
|
|
|
143
145
|
};
|
|
144
146
|
|
|
145
147
|
var handleModalOkClick = function handleModalOkClick() {
|
|
146
|
-
(0, _requestApis.updateProgressDesc)(editOProgressId, okrInfo.workId, editOProgressContent ||
|
|
148
|
+
(0, _requestApis.updateProgressDesc)(editOProgressId, okrInfo.workId, editOProgressContent || '').then(function (resp) {
|
|
147
149
|
if (resp.Code === 1) {
|
|
148
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
150
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Mod_Successfuloperat'), {
|
|
149
151
|
canClose: false
|
|
150
152
|
});
|
|
151
153
|
|
|
@@ -158,7 +160,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
158
160
|
});
|
|
159
161
|
}
|
|
160
162
|
})["catch"](function (e) {
|
|
161
|
-
_toast["default"].Error(
|
|
163
|
+
_toast["default"].Error('网络异常', {
|
|
162
164
|
canClose: false
|
|
163
165
|
});
|
|
164
166
|
});
|
|
@@ -177,7 +179,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
177
179
|
onClick: onOpenModal
|
|
178
180
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
179
181
|
className: "tu-icon-gengxin o-progress__func-btn-icon"
|
|
180
|
-
}), (0, _getLocale.getLocale)(
|
|
182
|
+
}), (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Update'));
|
|
181
183
|
};
|
|
182
184
|
|
|
183
185
|
var handleRemind = (0, _react.useCallback)(function () {
|
|
@@ -188,7 +190,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
188
190
|
type: 2
|
|
189
191
|
}).then(function (resp) {
|
|
190
192
|
if (resp.Code === 1) {
|
|
191
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
193
|
+
_toast["default"].Success((0, _getLocale.getLocale)('OKR_MyO_Prog_Remindersu'), {
|
|
192
194
|
canClose: false
|
|
193
195
|
});
|
|
194
196
|
} else {
|
|
@@ -197,7 +199,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
197
199
|
});
|
|
198
200
|
}
|
|
199
201
|
})["catch"](function (e) {
|
|
200
|
-
_toast["default"].Error(
|
|
202
|
+
_toast["default"].Error('网络异常', {
|
|
201
203
|
canClose: false
|
|
202
204
|
});
|
|
203
205
|
})["finally"](function () {
|
|
@@ -212,7 +214,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
212
214
|
work_id: okrInfo.workId
|
|
213
215
|
}).then(function (resp) {
|
|
214
216
|
if (resp.Code === 1) {
|
|
215
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
217
|
+
_toast["default"].Success((0, _getLocale.getLocale)('OKR_MyO_Prog_Remindersu'), {
|
|
216
218
|
canClose: false
|
|
217
219
|
});
|
|
218
220
|
} else {
|
|
@@ -221,7 +223,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
221
223
|
});
|
|
222
224
|
}
|
|
223
225
|
})["catch"](function (e) {
|
|
224
|
-
_toast["default"].Error(
|
|
226
|
+
_toast["default"].Error('网络异常', {
|
|
225
227
|
canClose: false
|
|
226
228
|
});
|
|
227
229
|
});
|
|
@@ -245,7 +247,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
245
247
|
}, [generalPrincipalUser]);
|
|
246
248
|
(0, _react.useEffect)(function () {
|
|
247
249
|
// @ts-ignore
|
|
248
|
-
var dom = document.querySelector(
|
|
250
|
+
var dom = document.querySelector('.o-progress__contnet-wrapper').querySelector('.okr-progress-item-wrapper'); // @ts-ignore
|
|
249
251
|
|
|
250
252
|
var height = dom ? dom.offsetHeight : 0; // 为了解决展开内容编辑过后收起时计算的高度是根据展开的算 16是第一个目标进展在展开和收起所以列表的时候的padding-bottom差
|
|
251
253
|
|
|
@@ -265,53 +267,53 @@ var OProgress = function OProgress(_ref) {
|
|
|
265
267
|
type: "warning"
|
|
266
268
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
267
269
|
type: "title"
|
|
268
|
-
}, (0, _getLocale.getLocale)(
|
|
270
|
+
}, (0, _getLocale.getLocale)('OKR_DR_Pop_Areyousure')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
269
271
|
type: "content"
|
|
270
|
-
}, (0, _getLocale.getLocale)(
|
|
272
|
+
}, (0, _getLocale.getLocale)('OKR_DR_Pop_ThesystemOKR')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.CancelButton, {
|
|
271
273
|
type: "button",
|
|
272
274
|
onClick: handleCancelRemind
|
|
273
|
-
}, (0, _getLocale.getLocale)(
|
|
275
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_dialogConfirm.SureButton, {
|
|
274
276
|
type: "button",
|
|
275
277
|
onClick: handleEnsureRemind
|
|
276
|
-
}, (0, _getLocale.getLocale)(
|
|
278
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine')));
|
|
277
279
|
}, [showRemindDialogConfirm, handleCancelRemind, handleEnsureRemind]);
|
|
278
280
|
var renderEmptyCmp = (0, _react.useMemo)(function () {
|
|
279
281
|
var renderUpdateBtn = function renderUpdateBtn(_ref3) {
|
|
280
282
|
var onOpenModal = _ref3.onOpenModal;
|
|
281
283
|
return /*#__PURE__*/_react["default"].createElement("button", {
|
|
282
|
-
className: "o-progress__empty-button ".concat(isPrincipalUser ?
|
|
284
|
+
className: "o-progress__empty-button ".concat(isPrincipalUser ? '' : 'o-progress__empty-button--not-principaluser'),
|
|
283
285
|
onClick: onOpenModal
|
|
284
|
-
}, (0, _getLocale.getLocale)(
|
|
286
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Update'));
|
|
285
287
|
};
|
|
286
288
|
|
|
287
289
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
288
290
|
className: (0, _classnames["default"])({
|
|
289
|
-
|
|
290
|
-
|
|
291
|
+
'o-progress__empty-wrapper': true,
|
|
292
|
+
'o-progress__empty-wrapper--not-principaluser': hasOtherProgress
|
|
291
293
|
})
|
|
292
294
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
293
295
|
width: 128,
|
|
294
296
|
src: _scheduleEmpty["default"]
|
|
295
297
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
296
298
|
className: "o-progress__empty-text"
|
|
297
|
-
}, isPrincipalUser ? (0, _getLocale.getLocale)(
|
|
299
|
+
}, isPrincipalUser ? (0, _getLocale.getLocale)('OKR_MyO_KRP_tochecko') : (0, _getLocale.getLocale)('OKR_MyO_Pr_Text_Nooprogress')), isPrincipalUser && /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
298
300
|
okrInfo: okrInfo,
|
|
299
301
|
renderContent: renderUpdateBtn,
|
|
300
302
|
setUpdateData: setUpdateProgress
|
|
301
303
|
}), !isCanEditProgress && /*#__PURE__*/_react["default"].createElement("button", {
|
|
302
304
|
className: "o-progress__empty-button",
|
|
303
305
|
onClick: handleRemindClick
|
|
304
|
-
}, (0, _getLocale.getLocale)(
|
|
306
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder')), isCanEditProgress && !isPrincipalUser && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("button", {
|
|
305
307
|
className: "o-progress__empty-button",
|
|
306
308
|
onClick: handleRemindClick
|
|
307
|
-
}, (0, _getLocale.getLocale)(
|
|
309
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder')), /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
308
310
|
okrInfo: okrInfo,
|
|
309
311
|
renderContent: renderUpdateBtn,
|
|
310
312
|
setUpdateData: setUpdateProgress
|
|
311
313
|
})));
|
|
312
314
|
}, [hasOtherProgress]);
|
|
313
315
|
var renderDefaultRemindCmp = (0, _react.useMemo)(function () {
|
|
314
|
-
var text = isPrincipalUser ? (0, _auth.hasSuperior)() ? (0, _getLocale.getLocale)(
|
|
316
|
+
var text = isPrincipalUser ? (0, _auth.hasSuperior)() ? (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Remind') : null : (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Reminder');
|
|
315
317
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
316
318
|
className: "o-progress__func-btn",
|
|
317
319
|
onClick: handleRemindClick
|
|
@@ -324,7 +326,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
324
326
|
}, oProgressData.length === 0 ? renderEmptyCmp : /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
327
|
className: "o-progress__header"
|
|
326
328
|
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
327
|
-
title: (0, _getLocale.getLocale)(
|
|
329
|
+
title: (0, _getLocale.getLocale)('OKR_MyO_Prog_Objectiveprogress')
|
|
328
330
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
329
331
|
className: "o-progress__func-btns"
|
|
330
332
|
}, okrInfo.status === 2 ? null : renderDefaultRemindCmp, isCanEditProgress ? /*#__PURE__*/_react["default"].createElement(_oProgressUpdate["default"], {
|
|
@@ -332,12 +334,12 @@ var OProgress = function OProgress(_ref) {
|
|
|
332
334
|
renderContent: renderContent,
|
|
333
335
|
setUpdateData: setUpdateProgress
|
|
334
336
|
}) : null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
335
|
-
className: "o-progress__contnet-wrapper ".concat(isMoreThanOneProgress && isShowAll ?
|
|
337
|
+
className: "o-progress__contnet-wrapper ".concat(isMoreThanOneProgress && isShowAll ? '' : 'o-progress__content-wrapper--fold'),
|
|
336
338
|
style: {
|
|
337
|
-
height: isShowAll ?
|
|
339
|
+
height: isShowAll ? 'auto' : "".concat(initHeight, "px")
|
|
338
340
|
}
|
|
339
341
|
}, oProgressData && oProgressData.map(function (item, index) {
|
|
340
|
-
var rightTip =
|
|
342
|
+
var rightTip = '';
|
|
341
343
|
|
|
342
344
|
if (okrInfo.status !== 2 && okrInfo.progress !== 100 && index === 0 && isCanEditProgress) {
|
|
343
345
|
rightTip = (0, _util.getToNowTime)(item.time);
|
|
@@ -346,7 +348,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
346
348
|
return /*#__PURE__*/_react["default"].createElement(_okrProgressDetail["default"], {
|
|
347
349
|
key: item.id,
|
|
348
350
|
riskLevel: item.riskLevel,
|
|
349
|
-
title: item.title,
|
|
351
|
+
title: (0, _openData.parseString)(item.title || ''),
|
|
350
352
|
percent: item.percent,
|
|
351
353
|
oldPercent: item.oldPercent,
|
|
352
354
|
content: item.content,
|
|
@@ -361,8 +363,8 @@ var OProgress = function OProgress(_ref) {
|
|
|
361
363
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
362
364
|
className: "o-progress__shrink-text",
|
|
363
365
|
onClick: handleChangeShowAll
|
|
364
|
-
}, isShowAll ? (0, _getLocale.getLocale)(
|
|
365
|
-
className: isShowAll ?
|
|
366
|
+
}, isShowAll ? (0, _getLocale.getLocale)('OKR_MyO_Prog_Butt_Fold') : (0, _getLocale.getLocale)('OKR_MyO_Pr_Butt_Viewall'), /*#__PURE__*/_react["default"].createElement("i", {
|
|
367
|
+
className: isShowAll ? 'tu-icon-arrow-up' : 'tu-icon-arrow-down'
|
|
366
368
|
}))) : null, /*#__PURE__*/_react["default"].createElement(_titaUi.Modal, {
|
|
367
369
|
className: "common-modal o-progress__modal",
|
|
368
370
|
maskClosable: false,
|
|
@@ -373,9 +375,9 @@ var OProgress = function OProgress(_ref) {
|
|
|
373
375
|
visible: editOProgressVisiable,
|
|
374
376
|
width: 600
|
|
375
377
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
376
|
-
className: "o-progress__textarea-wrapper ".concat(hasError ?
|
|
378
|
+
className: "o-progress__textarea-wrapper ".concat(hasError ? 'o-progress__textarea-wrapper--error' : '')
|
|
377
379
|
}, /*#__PURE__*/_react["default"].createElement("textarea", {
|
|
378
|
-
placeholder: (0, _getLocale.getLocale)(
|
|
380
|
+
placeholder: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Pleprogress'),
|
|
379
381
|
className: "o-progress__textarea",
|
|
380
382
|
value: editOProgressContent,
|
|
381
383
|
onChange: handleTextareaChange
|
|
@@ -15,6 +15,8 @@ var _scheduleO = _interopRequireDefault(require("../../img/schedule-o.svg"));
|
|
|
15
15
|
|
|
16
16
|
var _drawerManager = _interopRequireDefault(require("../../../../drawer-manager"));
|
|
17
17
|
|
|
18
|
+
var _openData = require("../../../../../utils/open-data");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -30,7 +32,7 @@ var renderTitle = function renderTitle(title, workId) {
|
|
|
30
32
|
okrId: workId
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
|
-
}, title));
|
|
35
|
+
}, (0, _openData.parseString)(title)));
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
var SubOProgress = function SubOProgress(_ref) {
|
|
@@ -11,6 +11,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _CircleProgress = _interopRequireDefault(require("../../../components-v1/progress/CircleProgress"));
|
|
13
13
|
|
|
14
|
+
var _openData = require("../../../utils/open-data");
|
|
15
|
+
|
|
14
16
|
var _creator = _interopRequireDefault(require("./fields/creator"));
|
|
15
17
|
|
|
16
18
|
var _precls = _interopRequireDefault(require("../precls"));
|
|
@@ -50,7 +52,7 @@ function KrNode(_ref) {
|
|
|
50
52
|
color: "#5AD8A6",
|
|
51
53
|
marginRight: 8
|
|
52
54
|
}
|
|
53
|
-
}, "KR", SortNum + 1), mileStoneName), /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
+
}, "KR", SortNum + 1), (0, _openData.parseString)(mileStoneName)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
54
56
|
className: (0, _classnames["default"])("".concat(_precls["default"], "--node-desp"))
|
|
55
57
|
}, /*#__PURE__*/_react["default"].createElement(_creator["default"], {
|
|
56
58
|
creator: user || {}
|
|
@@ -33,6 +33,8 @@ var _getLocale = require("../../../utils/getLocale");
|
|
|
33
33
|
|
|
34
34
|
var _tools = require("../../../utils/tools");
|
|
35
35
|
|
|
36
|
+
var _openData2 = require("../../../utils/open-data");
|
|
37
|
+
|
|
36
38
|
var _drawerManager = _interopRequireDefault(require("../../../components/drawer-manager"));
|
|
37
39
|
|
|
38
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -241,7 +243,7 @@ function WorkNode(_ref) {
|
|
|
241
243
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
242
244
|
className: (0, _classnames["default"])("".concat(_precls["default"], "--node-title")),
|
|
243
245
|
onClick: openODetail
|
|
244
|
-
}, (0, _tools.htmlDecodeByRegExp)(workName), /*#__PURE__*/_react["default"].createElement(_okrClassify["default"], {
|
|
246
|
+
}, (0, _openData2.parseString)((0, _tools.htmlDecodeByRegExp)(workName)), /*#__PURE__*/_react["default"].createElement(_okrClassify["default"], {
|
|
245
247
|
classify: okrClassify
|
|
246
248
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
247
249
|
className: (0, _classnames["default"])("".concat(_precls["default"], "--node-desp")),
|
|
Binary file
|
|
@@ -15,28 +15,43 @@
|
|
|
15
15
|
display: flex;
|
|
16
16
|
align-items: center;
|
|
17
17
|
padding: 0 32px 10px;
|
|
18
|
-
color: #89919F;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
.export-map-
|
|
22
|
-
border-radius: 4px;
|
|
23
|
-
display: inline-block;
|
|
24
|
-
width: 30px;
|
|
20
|
+
.export-map-modal__setting-color {
|
|
25
21
|
height: 30px;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
padding: 0 12px;
|
|
25
|
+
background: #FFFFFF;
|
|
26
|
+
border-radius: 16px;
|
|
27
|
+
border: 1px solid #E9ECF0;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
color: #141C28;
|
|
31
|
+
margin-right: 12px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.export-map-modal__setting-color:hover {
|
|
35
|
+
border: 1px solid #2879ff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.export-map-modal__setting-color-trigger {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
width: 20px;
|
|
41
|
+
height: 20px;
|
|
26
42
|
background: url("./color.png") no-repeat;
|
|
27
43
|
background-size: cover;
|
|
28
|
-
|
|
44
|
+
border-radius: 16px;
|
|
45
|
+
margin-right: 4px;
|
|
29
46
|
}
|
|
30
47
|
|
|
31
|
-
.export-map-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
height: 30px;
|
|
48
|
+
.export-map-modal__setting-color-trans {
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
width: 20px;
|
|
51
|
+
height: 20px;
|
|
36
52
|
background: url("./trans1.png") no-repeat;
|
|
37
53
|
background-size: cover;
|
|
38
|
-
|
|
39
|
-
cursor: pointer;
|
|
54
|
+
border-radius: 16px;
|
|
40
55
|
}
|
|
41
56
|
|
|
42
57
|
.export-map-modal .titaui-color-picker {
|
|
@@ -21,6 +21,10 @@ var _toast = _interopRequireDefault(require("../../toast"));
|
|
|
21
21
|
|
|
22
22
|
var _dialog = _interopRequireDefault(require("../../dialog"));
|
|
23
23
|
|
|
24
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
25
|
+
|
|
26
|
+
var _selectLayer = _interopRequireDefault(require("../../select-layer"));
|
|
27
|
+
|
|
24
28
|
var _utils = require("../utils");
|
|
25
29
|
|
|
26
30
|
var _context2 = require("../context");
|
|
@@ -101,8 +105,25 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
101
105
|
isExport = _useState6[0],
|
|
102
106
|
setIsExport = _useState6[1];
|
|
103
107
|
|
|
108
|
+
var _useState7 = (0, _react.useState)({
|
|
109
|
+
label: (0, _getLocale.getLocale)('Rep_NewS_HDmode'),
|
|
110
|
+
value: 20
|
|
111
|
+
}),
|
|
112
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
113
|
+
model = _useState8[0],
|
|
114
|
+
setModel = _useState8[1];
|
|
115
|
+
|
|
104
116
|
var modalRef = (0, _react.useRef)();
|
|
105
117
|
var virtualElements = (0, _react.useRef)([]);
|
|
118
|
+
var models = [{
|
|
119
|
+
label: (0, _getLocale.getLocale)('Rep_NewS_Standardmode'),
|
|
120
|
+
value: 10,
|
|
121
|
+
toolText: (0, _getLocale.getLocale)('Rep_NewS_SmallFileSuita')
|
|
122
|
+
}, {
|
|
123
|
+
label: (0, _getLocale.getLocale)('Rep_NewS_HDmode'),
|
|
124
|
+
value: 20,
|
|
125
|
+
toolText: (0, _getLocale.getLocale)('Rep_NewS_LargeileSize')
|
|
126
|
+
}];
|
|
106
127
|
(0, _react.useEffect)(function () {
|
|
107
128
|
if ((0, _bsGlobal.isWx)() && window.WWOpenData) {
|
|
108
129
|
if (window.WWOpenData.enableCanvasSharing) {
|
|
@@ -134,7 +155,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
134
155
|
|
|
135
156
|
canvas = document.createElement('canvas'); // 创建一个canvas节点
|
|
136
157
|
|
|
137
|
-
scale =
|
|
158
|
+
scale = model.value; // 定义任意放大倍数 支持小数
|
|
138
159
|
|
|
139
160
|
canvas.width = width * scale; // 定义canvas 宽度 * 缩放
|
|
140
161
|
|
|
@@ -206,46 +227,34 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
206
227
|
// });
|
|
207
228
|
|
|
208
229
|
Sentry.withScope(function (scope) {
|
|
209
|
-
scope.setTag(
|
|
210
|
-
scope.setTag(
|
|
211
|
-
scope.setExtra(
|
|
230
|
+
scope.setTag('error-level', "P0");
|
|
231
|
+
scope.setTag('error-type', '地图导出-图片生成');
|
|
232
|
+
scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
212
233
|
});
|
|
213
234
|
(0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
|
|
214
|
-
|
|
235
|
+
// const image = new Image()
|
|
236
|
+
// @ts-ignore
|
|
215
237
|
// window.titaTracker && window.titaTracker("action").record({
|
|
216
238
|
// actionName: userId+'租户:'+telentId+'我获得了地址'+url.Data.obj,
|
|
217
239
|
// actionGroup: 'okr地图接口',
|
|
218
240
|
// productName: 'okr地图导出',
|
|
219
241
|
// });
|
|
220
|
-
|
|
221
242
|
Sentry.withScope(function (scope) {
|
|
222
|
-
scope.setTag(
|
|
223
|
-
scope.setTag(
|
|
224
|
-
scope.setExtra(
|
|
243
|
+
scope.setTag('error-level', "P0");
|
|
244
|
+
scope.setTag('error-type', '地图导出-图片地址');
|
|
245
|
+
scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
|
|
225
246
|
});
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
var a = document.createElement('a'); // 生成一个a元素
|
|
241
|
-
|
|
242
|
-
var event = new MouseEvent('click'); // 创建一个单击事件
|
|
243
|
-
|
|
244
|
-
a.download = 'okr地图'; // 设置图片名称
|
|
245
|
-
|
|
246
|
-
a.href = url.Data.obj; // 将生成的URL设置为a
|
|
247
|
-
|
|
248
|
-
a.dispatchEvent(event); // 触发a的单击事件
|
|
247
|
+
var newUrl = url.Data.obj;
|
|
248
|
+
var x = new XMLHttpRequest();
|
|
249
|
+
x.open("GET", newUrl, true);
|
|
250
|
+
x.responseType = 'blob';
|
|
251
|
+
|
|
252
|
+
x.onload = function (e) {
|
|
253
|
+
var url = window.URL.createObjectURL(x.response);
|
|
254
|
+
var a = document.createElement('a');
|
|
255
|
+
a.href = url;
|
|
256
|
+
a.download = model.value === 20 ? '高清图片' : '标清图片';
|
|
257
|
+
a.click();
|
|
249
258
|
|
|
250
259
|
_toast["default"].Success('导出成功');
|
|
251
260
|
|
|
@@ -256,7 +265,24 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
256
265
|
}
|
|
257
266
|
};
|
|
258
267
|
|
|
259
|
-
image.
|
|
268
|
+
x.send(); // image.setAttribute('crossOrigin', 'anonymous')
|
|
269
|
+
// image.onload = async() => {
|
|
270
|
+
// if (!url.Data.obj) {
|
|
271
|
+
// Toast.Error('导出失败,请稍后重试', { canClose: false })
|
|
272
|
+
// }
|
|
273
|
+
// await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
|
|
274
|
+
// // const a = document.createElement('a') // 生成一个a元素
|
|
275
|
+
// // const event = new MouseEvent('click') // 创建一个单击事件
|
|
276
|
+
// // a.download = '123' // 设置图片名称
|
|
277
|
+
// // a.href = url.Data.obj // 将生成的URL设置为a
|
|
278
|
+
// // a.dispatchEvent(event) // 触发a的单击事件
|
|
279
|
+
// Toast.Success('导出成功')
|
|
280
|
+
// setIsExport(false)
|
|
281
|
+
// if (onCloseHandler) {
|
|
282
|
+
// onCloseHandler()
|
|
283
|
+
// }
|
|
284
|
+
// }
|
|
285
|
+
// image.src = imgUrl
|
|
260
286
|
});
|
|
261
287
|
})["catch"](function (err) {
|
|
262
288
|
setIsExport(false);
|
|
@@ -296,6 +322,10 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
296
322
|
setMapInstance(instance);
|
|
297
323
|
};
|
|
298
324
|
|
|
325
|
+
var onChangeHandler = function onChangeHandler(data) {
|
|
326
|
+
setModel(data);
|
|
327
|
+
};
|
|
328
|
+
|
|
299
329
|
var colorChangeHandler = function colorChangeHandler(colors) {
|
|
300
330
|
setBgColor(colors ? colors.color : 'none');
|
|
301
331
|
};
|
|
@@ -317,7 +347,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
317
347
|
title: (0, _getLocale.getLocale)('OKR_Ali_Exportmap'),
|
|
318
348
|
noFooterLine: true,
|
|
319
349
|
visible: visible,
|
|
320
|
-
width: "
|
|
350
|
+
width: "840px",
|
|
321
351
|
onClose: onCloseHandler,
|
|
322
352
|
onOk: confirmHandler,
|
|
323
353
|
onCancel: onCloseHandler,
|
|
@@ -327,9 +357,11 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
327
357
|
forceRender: true
|
|
328
358
|
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
329
359
|
className: "export-map-modal__setting"
|
|
360
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
361
|
+
className: "export-map-modal__setting-color"
|
|
330
362
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
331
363
|
style: {
|
|
332
|
-
marginRight:
|
|
364
|
+
marginRight: 16
|
|
333
365
|
}
|
|
334
366
|
}, (0, _getLocale.getLocale)('OKR_Ali_Selectbackground')), /*#__PURE__*/_react["default"].createElement(_rcColorPicker["default"], {
|
|
335
367
|
animation: "slide-up",
|
|
@@ -337,12 +369,28 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
337
369
|
onChange: colorChangeHandler,
|
|
338
370
|
className: "titaui-color-picker",
|
|
339
371
|
mode: "HSB"
|
|
372
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
373
|
+
overlay: (0, _getLocale.getLocale)('Mod_Customization'),
|
|
374
|
+
placement: "top"
|
|
340
375
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
341
|
-
className: "export-map-
|
|
342
|
-
})), /*#__PURE__*/_react["default"].createElement("
|
|
343
|
-
|
|
376
|
+
className: "export-map-modal__setting-color-trigger"
|
|
377
|
+
}))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
378
|
+
overlay: (0, _getLocale.getLocale)('OKR_Ali_Butt_Transparent'),
|
|
379
|
+
placement: "top"
|
|
380
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
381
|
+
className: "export-map-modal__setting-color-trans",
|
|
344
382
|
onClick: colorChangeHandler
|
|
345
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
383
|
+
}))), /*#__PURE__*/_react["default"].createElement(_selectLayer["default"], {
|
|
384
|
+
onChangeSelect: onChangeHandler,
|
|
385
|
+
items: models,
|
|
386
|
+
initValue: model.value
|
|
387
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
388
|
+
className: "titaui-search-dropdown"
|
|
389
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
390
|
+
className: "titaui-search-dropdown__text"
|
|
391
|
+
}, model.label), /*#__PURE__*/_react["default"].createElement("span", {
|
|
392
|
+
className: "tu-icon-sort-down"
|
|
393
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(_context2.CommonContext.Provider, {
|
|
346
394
|
value: {
|
|
347
395
|
direction: direction,
|
|
348
396
|
showkr: showkr,
|
|
@@ -361,7 +409,7 @@ var ExportMapModal = function ExportMapModal(props) {
|
|
|
361
409
|
zoomOnDoubleClick: false,
|
|
362
410
|
paneMoveable: false,
|
|
363
411
|
style: {
|
|
364
|
-
height:
|
|
412
|
+
height: 446,
|
|
365
413
|
width: '100%',
|
|
366
414
|
background: bgColor
|
|
367
415
|
}
|
|
Binary file
|
|
@@ -15,10 +15,12 @@ var _tooltipText = _interopRequireDefault(require("../../../tooltip/tooltip-text
|
|
|
15
15
|
|
|
16
16
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
17
17
|
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
18
|
var _getLocale = require("../../../../utils/getLocale");
|
|
21
19
|
|
|
20
|
+
var _openData = require("../../../../utils/open-data");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
var renderTitle = function renderTitle(index, title, id) {
|
|
@@ -33,7 +35,7 @@ var renderTitle = function renderTitle(index, title, id) {
|
|
|
33
35
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
36
|
className: "kr-progress__order"
|
|
35
37
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
36
|
-
text: title,
|
|
38
|
+
text: (0, _openData.parseString)(title),
|
|
37
39
|
maxWidth: 600,
|
|
38
40
|
exClass: "kr-progress__title-text"
|
|
39
41
|
}));
|
|
@@ -35,6 +35,8 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
35
35
|
|
|
36
36
|
var _i18nFrontTranslate = require("../../../../utils/i18n-front-translate");
|
|
37
37
|
|
|
38
|
+
var _openData = require("../../../../utils/open-data");
|
|
39
|
+
|
|
38
40
|
require("./index.css");
|
|
39
41
|
|
|
40
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -329,7 +331,7 @@ var OProgress = function OProgress(_ref) {
|
|
|
329
331
|
return /*#__PURE__*/_react["default"].createElement(_okrProgressDetail["default"], {
|
|
330
332
|
key: item.id,
|
|
331
333
|
riskLevel: item.riskLevel,
|
|
332
|
-
title: item.title,
|
|
334
|
+
title: (0, _openData.parseString)(item.title),
|
|
333
335
|
percent: item.percent,
|
|
334
336
|
oldPercent: item.oldPercent,
|
|
335
337
|
content: item.content,
|
|
@@ -52,7 +52,7 @@ function OProgressUpdate(props) {
|
|
|
52
52
|
renderContent = props.renderContent,
|
|
53
53
|
setUpdateData = props.setUpdateData,
|
|
54
54
|
_props$title = props.title,
|
|
55
|
-
title = _props$title === void 0 ? (0, _getLocale.getLocale)(
|
|
55
|
+
title = _props$title === void 0 ? (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Upd') : _props$title;
|
|
56
56
|
|
|
57
57
|
var _useState = (0, _react.useState)(false),
|
|
58
58
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -81,7 +81,7 @@ function OProgressUpdate(props) {
|
|
|
81
81
|
data = _context.sent;
|
|
82
82
|
|
|
83
83
|
if (data.Code === 1) {
|
|
84
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
84
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Per_Ma_form_Updatesuc'));
|
|
85
85
|
|
|
86
86
|
setVisible(false);
|
|
87
87
|
} else {
|
|
@@ -15,6 +15,8 @@ var _scheduleO = _interopRequireDefault(require("../../img/schedule-o.svg"));
|
|
|
15
15
|
|
|
16
16
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
17
17
|
|
|
18
|
+
var _openData = require("../../../../utils/open-data");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -31,7 +33,7 @@ var renderTitle = function renderTitle(title, workId) {
|
|
|
31
33
|
okrId: workId
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
|
-
}, title));
|
|
36
|
+
}, (0, _openData.parseString)(title)));
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
var SubOProgress = function SubOProgress(_ref) {
|