@titaui/pc 1.12.7-beta.4 → 1.12.9-beta.1
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/change-okr-modal/Item.js +19 -18
- package/lib/components/change-okr-modal/styledComponents.js +9 -9
- 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/style.js +5 -5
- 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-align/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +17 -17
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/dynamic/dynamic-item/index.js +4 -15
- package/lib/components/eReport/eReportLists/reportList.js +29 -30
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
- package/lib/components/menus/components/menu-tree/tree-node/index.css +0 -120
- package/lib/components/menus/components/menu-tree/tree-node/index.js +2 -22
- package/lib/components/menus/i18n.js +0 -8
- package/lib/components/menus/index.js +0 -6
- package/lib/components/nav-top/components/menu/index.js +4 -4
- 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/okr-detail/components/ao-nice/index.css +0 -1
- 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/{dynamic/dynamic-item/components/progress/components/okr-progress/index.js → okr-detail/components/header/o-classify.js} +84 -152
- package/lib/components/okr-detail/components/header/o-name.js +7 -5
- package/lib/components/okr-detail/components/o-progress-update/index.js +2 -2
- 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/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/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 +57 -14
- 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 +3 -3
- 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/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/picker-trigger/index.js +2 -47
- package/lib/components/picker/picker-panels.js +4 -45
- package/lib/components/picker/picker.js +3 -7
- package/lib/components/search-input/index.js +0 -5
- package/lib/components/search-key-handle/index.js +12 -10
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- 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/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/textarea/index.js +5 -7
- package/lib/components/tooltip/tooltip.js +9 -4
- package/lib/components/upload/components/uploadedPreview.js +17 -17
- package/lib/components/upload/index.js +23 -23
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +2 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +31 -17
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/searched-panel/index.js +4 -4
- package/lib/components/wechat-btn/index.css +5 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +7 -5
- package/lib/index.js +0 -48
- 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/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +2 -8
- package/lib/utils/helpers.js +11 -56
- 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 -2
- package/lib/components/attachments-preview/index.css +0 -11
- package/lib/components/attachments-preview/index.js +0 -112
- package/lib/components/auto-save/img/failed.svg +0 -17
- package/lib/components/auto-save/img/success.svg +0 -16
- package/lib/components/auto-save/index.css +0 -39
- package/lib/components/auto-save/index.js +0 -78
- package/lib/components/auto-save/interface.js +0 -5
- package/lib/components/color-date-picker/index.css +0 -65
- package/lib/components/color-date-picker/index.js +0 -123
- package/lib/components/color-date-picker/interface.js +0 -14
- package/lib/components/dialog-upload/img/doc.svg +0 -1
- package/lib/components/dialog-upload/img/other.svg +0 -1
- package/lib/components/dialog-upload/img/pdf.svg +0 -1
- package/lib/components/dialog-upload/img/ppt.svg +0 -1
- package/lib/components/dialog-upload/img/radio.svg +0 -1
- package/lib/components/dialog-upload/img/video.svg +0 -1
- package/lib/components/dialog-upload/img/xls.svg +0 -1
- package/lib/components/dialog-upload/index.css +0 -77
- package/lib/components/dialog-upload/index.js +0 -332
- package/lib/components/dialog-upload/type.js +0 -35
- package/lib/components/dialog-upload/uploaded-preview.css +0 -77
- package/lib/components/dialog-upload/uploaded-preview.js +0 -132
- package/lib/components/dialog-upload/util.js +0 -131
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +0 -119
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +0 -14
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +0 -68
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +0 -118
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +0 -143
- package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +0 -170
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +0 -120
- package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +0 -10
- package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +0 -10
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +0 -8
- package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +0 -26
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +0 -8
- package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +0 -26
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +0 -197
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +0 -20
- package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +0 -134
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +0 -60
- package/lib/components/dynamic/dynamic-item/components/progress/index.css +0 -25
- package/lib/components/dynamic/dynamic-item/components/progress/index.js +0 -71
- package/lib/components/dynamic/dynamic-item/components/progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/schedule/index.css +0 -31
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +0 -59
- package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +0 -136
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -364
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +0 -24
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +0 -52
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +0 -50
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +0 -65
- package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +0 -201
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +0 -95
- package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +0 -5
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +0 -10
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -43
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +0 -37
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +0 -79
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +0 -155
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -155
- package/lib/components/import-modal/helper.js +0 -179
- package/lib/components/import-modal/image/loading.gif +0 -0
- package/lib/components/import-modal/import-okr-modal/index.css +0 -18
- package/lib/components/import-modal/import-okr-modal/index.js +0 -132
- package/lib/components/import-modal/import-task-modal/index.css +0 -18
- package/lib/components/import-modal/import-task-modal/index.js +0 -240
- package/lib/components/import-modal/import-task-modal/search-form.js +0 -135
- package/lib/components/import-modal/index.css +0 -30
- package/lib/components/import-modal/index.js +0 -20
- package/lib/components/import-modal/radio.js +0 -62
- package/lib/components/import-modal/request-api.js +0 -204
- package/lib/components/import-modal/search/category-select.js +0 -74
- package/lib/components/import-modal/search/okr-classify-select.js +0 -74
- package/lib/components/import-modal/search/okr-status-select.js +0 -74
- package/lib/components/import-modal/search/okr-type-select.js +0 -87
- package/lib/components/import-modal/search/principal.js +0 -135
- package/lib/components/import-modal/search/relation.js +0 -77
- package/lib/components/import-modal/search/search-dropdown/index.css +0 -50
- package/lib/components/import-modal/search/search-dropdown/index.js +0 -32
- package/lib/components/import-modal/search/task-relation.js +0 -83
- package/lib/components/import-modal/search/task-status-select.js +0 -87
- package/lib/components/import-modal/search/work-relation.js +0 -83
- package/lib/components/import-modal/search/work-status-select.js +0 -74
- package/lib/components/import-modal/tree/okr-tree/index.css +0 -61
- package/lib/components/import-modal/tree/okr-tree/index.js +0 -267
- package/lib/components/import-modal/tree/okr-tree/search-form.js +0 -161
- package/lib/components/import-modal/tree/task-work-tree/index.css +0 -123
- package/lib/components/import-modal/tree/task-work-tree/index.js +0 -187
- package/lib/components/import-modal/tree-node/index.css +0 -0
- package/lib/components/import-modal/tree-node/index.js +0 -51
- package/lib/components/import-modal/tree-node/kr-node/index.css +0 -58
- package/lib/components/import-modal/tree-node/kr-node/index.js +0 -108
- package/lib/components/import-modal/tree-node/milestone-node/index.css +0 -61
- package/lib/components/import-modal/tree-node/milestone-node/index.js +0 -118
- package/lib/components/import-modal/tree-node/o-node/index.css +0 -46
- package/lib/components/import-modal/tree-node/o-node/index.js +0 -138
- package/lib/components/import-modal/tree-node/work-node/index.css +0 -51
- package/lib/components/import-modal/tree-node/work-node/index.js +0 -108
- package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +0 -14
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +0 -18
- package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +0 -15
- package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +0 -15
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +0 -74
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +0 -74
- package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +0 -56
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +0 -32
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +0 -201
- package/lib/components/menus/export-modules/summary-menus/index.css +0 -9
- package/lib/components/menus/export-modules/summary-menus/index.js +0 -134
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +0 -76
- package/lib/components/menus/export-modules/summary-menus/menus.js +0 -199
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -199
- package/lib/components/new-confidence/constant.js +0 -53
- package/lib/components/new-confidence/img/1.svg +0 -40
- package/lib/components/new-confidence/img/10.svg +0 -33
- package/lib/components/new-confidence/img/2.svg +0 -40
- package/lib/components/new-confidence/img/3.svg +0 -40
- package/lib/components/new-confidence/img/4.svg +0 -40
- package/lib/components/new-confidence/img/5.svg +0 -40
- package/lib/components/new-confidence/img/6.svg +0 -40
- package/lib/components/new-confidence/img/7.svg +0 -40
- package/lib/components/new-confidence/img/8.svg +0 -40
- package/lib/components/new-confidence/img/9.svg +0 -40
- package/lib/components/new-confidence/index.css +0 -62
- package/lib/components/new-confidence/index.js +0 -115
- package/lib/components/new-confidence/interface.js +0 -5
- package/lib/components/picker/components/panels/week-panel/index.css +0 -42
- package/lib/components/picker/components/panels/week-panel/index.js +0 -49
- package/lib/components/picker/components/panels/week-panel/utils.js +0 -45
- package/lib/components/picker/components/panels/week-panel/week-body.js +0 -79
- package/lib/components/picker/components/panels/week-panel/week-head.js +0 -80
- package/lib/components/rate/index.js +0 -50
- package/lib/components/regulation-setting-item/index.css +0 -33
- package/lib/components/regulation-setting-item/index.js +0 -37
- package/lib/components/rich-editor-at/components/index.css +0 -66
- package/lib/components/rich-editor-at/components/index.js +0 -188
- package/lib/components/rich-editor-at/index.css +0 -40
- package/lib/components/rich-editor-at/index.js +0 -108
- package/lib/components/rich-editor-upload/index.css +0 -11
- package/lib/components/rich-editor-upload/index.js +0 -84
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -9,21 +9,15 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _popup = _interopRequireDefault(require("../../../../../../popup"));
|
|
13
|
-
|
|
14
|
-
var _tooltip = _interopRequireDefault(require("../../../../../../tooltip"));
|
|
15
|
-
|
|
16
|
-
var _switch = _interopRequireDefault(require("../../../../../../switch"));
|
|
17
|
-
|
|
18
|
-
var _button = _interopRequireDefault(require("../../../../../../button"));
|
|
19
|
-
|
|
20
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
13
|
|
|
22
|
-
var _getLocale = require("
|
|
14
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
23
15
|
|
|
24
|
-
var
|
|
16
|
+
var _popup = _interopRequireDefault(require("../../../../components/popup"));
|
|
25
17
|
|
|
26
|
-
var
|
|
18
|
+
var _toast = _interopRequireDefault(require("../../../../components/toast"));
|
|
19
|
+
|
|
20
|
+
var _requestApis = require("../../request-apis");
|
|
27
21
|
|
|
28
22
|
require("./index.css");
|
|
29
23
|
|
|
@@ -33,8 +27,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
33
27
|
|
|
34
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; }
|
|
35
29
|
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
30
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
39
31
|
|
|
40
32
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
@@ -53,71 +45,48 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
53
45
|
|
|
54
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
47
|
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
isO = _ref.isO,
|
|
62
|
-
value = _ref.value,
|
|
63
|
-
riskLevel = _ref.riskLevel;
|
|
64
|
-
|
|
65
|
-
var _useState = (0, _react.useState)({
|
|
66
|
-
childOkrProgress: -1,
|
|
67
|
-
childkrProgress: -1,
|
|
68
|
-
childEProgress: -1,
|
|
69
|
-
Progress: 0,
|
|
70
|
-
UpdateProgressWay: 0,
|
|
71
|
-
UpdateObj: 0
|
|
72
|
-
}),
|
|
73
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
74
|
-
recommandProgressObj = _useState2[0],
|
|
75
|
-
setRecommandProgressObj = _useState2[1]; // 推荐值
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var _useState3 = (0, _react.useState)(value),
|
|
79
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
80
|
-
progress = _useState4[0],
|
|
81
|
-
setProgress = _useState4[1];
|
|
82
|
-
|
|
83
|
-
var _useState5 = (0, _react.useState)(riskLevel),
|
|
84
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
85
|
-
selected = _useState6[0],
|
|
86
|
-
setSelected = _useState6[1];
|
|
87
|
-
|
|
88
|
-
var _useState7 = (0, _react.useState)(""),
|
|
89
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
90
|
-
errorText = _useState8[0],
|
|
91
|
-
setErrorText = _useState8[1];
|
|
48
|
+
var OClassify = function OClassify(props) {
|
|
49
|
+
var editable = props.editable,
|
|
50
|
+
okrId = props.okrId,
|
|
51
|
+
okrClassify = props.okrClassify,
|
|
52
|
+
onOkrClassifyChange = props.onOkrClassifyChange;
|
|
92
53
|
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
var configure = isO ? (0, _util.getOSetting)() : (0, _util.getKrSetting)(); // 推荐
|
|
98
|
-
|
|
99
|
-
var getRecommendProgress = /*#__PURE__*/function () {
|
|
100
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
101
|
-
var getRecommandHandler, data, _data$Data, UpdateProgressWay, Progress;
|
|
54
|
+
var _useState = (0, _react.useState)(false),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
visible = _useState2[0],
|
|
57
|
+
setVisible = _useState2[1];
|
|
102
58
|
|
|
59
|
+
var updateClassifyHandler = /*#__PURE__*/function () {
|
|
60
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(select) {
|
|
103
61
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
104
62
|
while (1) {
|
|
105
63
|
switch (_context.prev = _context.next) {
|
|
106
64
|
case 0:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
65
|
+
if (!(select == okrClassify)) {
|
|
66
|
+
_context.next = 3;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
setVisible(false);
|
|
71
|
+
return _context.abrupt("return");
|
|
110
72
|
|
|
111
73
|
case 3:
|
|
112
|
-
|
|
74
|
+
_context.next = 5;
|
|
75
|
+
return (0, _requestApis.updateClassify)({
|
|
76
|
+
okrId: okrId,
|
|
77
|
+
okrClassify: select
|
|
78
|
+
});
|
|
113
79
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
setProgress(Progress);
|
|
80
|
+
case 5:
|
|
81
|
+
if (onOkrClassifyChange) {
|
|
82
|
+
onOkrClassifyChange(select);
|
|
118
83
|
}
|
|
119
84
|
|
|
120
|
-
|
|
85
|
+
setVisible(false);
|
|
86
|
+
|
|
87
|
+
_toast["default"].Success('修改成功');
|
|
88
|
+
|
|
89
|
+
case 8:
|
|
121
90
|
case "end":
|
|
122
91
|
return _context.stop();
|
|
123
92
|
}
|
|
@@ -125,98 +94,61 @@ var OKRProgress = function OKRProgress(_ref) {
|
|
|
125
94
|
}, _callee);
|
|
126
95
|
}));
|
|
127
96
|
|
|
128
|
-
return function
|
|
129
|
-
return
|
|
97
|
+
return function updateClassifyHandler(_x) {
|
|
98
|
+
return _ref.apply(this, arguments);
|
|
130
99
|
};
|
|
131
100
|
}();
|
|
132
101
|
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
} else {
|
|
146
|
-
setErrorText("");
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
setProgress(value);
|
|
150
|
-
};
|
|
102
|
+
var renderTrigger = (0, _react.useMemo)(function () {
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
104
|
+
className: (0, _classnames["default"])('okr-drawer-header__classify', {
|
|
105
|
+
'okr-drawer-header__classify--editable': editable,
|
|
106
|
+
'tu-icon-nuo': okrClassify == 1,
|
|
107
|
+
'tu-icon-yuan': okrClassify == 2
|
|
108
|
+
}),
|
|
109
|
+
onClick: function onClick() {
|
|
110
|
+
return editable && setVisible(true);
|
|
111
|
+
}
|
|
112
|
+
}, okrClassify == 1 ? (0, _getLocale.getLocale)('OKR_MyO_Es_Commitment') : (0, _getLocale.getLocale)('OKR_MyO_Es_Visiontype'));
|
|
113
|
+
}, [okrClassify, editable]);
|
|
151
114
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
className: ""
|
|
115
|
+
if (editable && okrClassify !== 0) {
|
|
116
|
+
var popContent = /*#__PURE__*/_react["default"].createElement("div", {
|
|
117
|
+
className: "okr-drawer-header__classify-popup"
|
|
155
118
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
|
-
className:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
align: {
|
|
162
|
-
offset: [0, 5]
|
|
119
|
+
className: (0, _classnames["default"])('okr-drawer-header__classify-popup-item', {
|
|
120
|
+
active: okrClassify === 1
|
|
121
|
+
}),
|
|
122
|
+
onClick: function onClick() {
|
|
123
|
+
return updateClassifyHandler(1);
|
|
163
124
|
}
|
|
164
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
165
|
-
className:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
key: option.id,
|
|
183
|
-
onClick: function onClick() {
|
|
184
|
-
return setSelected(option.id);
|
|
185
|
-
}
|
|
186
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
187
|
-
style: {
|
|
188
|
-
color: option.color
|
|
125
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Es_Commitment')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
className: (0, _classnames["default"])('okr-drawer-header__classify-popup-item', {
|
|
127
|
+
active: okrClassify === 2
|
|
128
|
+
}),
|
|
129
|
+
onClick: function onClick() {
|
|
130
|
+
return updateClassifyHandler(2);
|
|
131
|
+
}
|
|
132
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Es_Visiontype')));
|
|
133
|
+
|
|
134
|
+
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
135
|
+
popup: popContent,
|
|
136
|
+
popupVisible: visible,
|
|
137
|
+
placement: "bottomLeft",
|
|
138
|
+
popupAlign: {
|
|
139
|
+
offset: [48, 0],
|
|
140
|
+
overflow: {
|
|
141
|
+
adjustX: true,
|
|
142
|
+
adjustY: true
|
|
189
143
|
},
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}, configure.switchLabel)
|
|
198
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
|
-
className: "".concat(prefix, "__content-bottom")
|
|
200
|
-
}, /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
201
|
-
type: "cancel",
|
|
202
|
-
size: "small",
|
|
203
|
-
text: (0, _getLocale.getLocale)("Mod_Cancel")
|
|
204
|
-
}), /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
205
|
-
type: "primary",
|
|
206
|
-
size: "small",
|
|
207
|
-
text: (0, _getLocale.getLocale)("OKR_MyO_Butt_Determine")
|
|
208
|
-
})));
|
|
209
|
-
}, [configure]);
|
|
210
|
-
(0, _react.useEffect)(function () {
|
|
211
|
-
setErrorText("");
|
|
212
|
-
}, [recommandProgressObj]);
|
|
213
|
-
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
214
|
-
popup: renderPopContent,
|
|
215
|
-
onPopupVisibleChange: handlePopupVisibleChange,
|
|
216
|
-
popupPlacement: "bottom",
|
|
217
|
-
ref: popupRef
|
|
218
|
-
}, children);
|
|
144
|
+
targetOffset: [0, 0]
|
|
145
|
+
}
|
|
146
|
+
}, renderTrigger);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (okrClassify === 0) return null;
|
|
150
|
+
return renderTrigger;
|
|
219
151
|
};
|
|
220
152
|
|
|
221
|
-
var _default =
|
|
153
|
+
var _default = OClassify;
|
|
222
154
|
exports["default"] = _default;
|
|
@@ -13,6 +13,8 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
13
13
|
|
|
14
14
|
var _tools = require("../../../../utils/tools");
|
|
15
15
|
|
|
16
|
+
var _openData = require("../../../../utils/open-data");
|
|
17
|
+
|
|
16
18
|
var _helper = require("../../helper");
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -28,7 +30,7 @@ function OName(props) {
|
|
|
28
30
|
OkrAndKrApprovalTypes = props.OkrAndKrApprovalTypes;
|
|
29
31
|
|
|
30
32
|
var handleEditClick = function handleEditClick() {
|
|
31
|
-
if ((0, _helper.getApprovalOkr)(approvalSetting,
|
|
33
|
+
if ((0, _helper.getApprovalOkr)(approvalSetting, 'changeOkrName', applyState, OkrAndKrApprovalTypes)) {
|
|
32
34
|
if (editable) {
|
|
33
35
|
setIsEdit(true);
|
|
34
36
|
}
|
|
@@ -36,15 +38,15 @@ function OName(props) {
|
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
39
|
-
className: (0, _classnames["default"])(
|
|
40
|
-
|
|
41
|
+
className: (0, _classnames["default"])('okr-drawer-header__title', {
|
|
42
|
+
'okr-drawer-header__title--editable': editable
|
|
41
43
|
})
|
|
42
44
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
45
|
className: "okr-drawer-header__name",
|
|
44
46
|
onClick: handleEditClick
|
|
45
|
-
}, (0, _tools.htmlDecodeByRegExp)(okrName)), children, Number(okrStatus) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
|
+
}, (0, _openData.parseString)((0, _tools.htmlDecodeByRegExp)(okrName))), children, Number(okrStatus) === 2 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
46
48
|
className: "okr-drawer-header__over-tag"
|
|
47
|
-
}, (0, _getLocale.getLocale)(
|
|
49
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Hasended')));
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
var _default = OName;
|
|
@@ -54,7 +54,7 @@ function OProgressUpdate(props) {
|
|
|
54
54
|
renderContent = props.renderContent,
|
|
55
55
|
setUpdateData = props.setUpdateData,
|
|
56
56
|
_props$title = props.title,
|
|
57
|
-
title = _props$title === void 0 ? (0, _getLocale.getLocale)(
|
|
57
|
+
title = _props$title === void 0 ? (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Upd') : _props$title;
|
|
58
58
|
|
|
59
59
|
var _useState = (0, _react.useState)(false),
|
|
60
60
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -86,7 +86,7 @@ function OProgressUpdate(props) {
|
|
|
86
86
|
data = _context.sent;
|
|
87
87
|
|
|
88
88
|
if (data.Code === 1) {
|
|
89
|
-
_toast["default"].Success((0, _getLocale.getLocale)(
|
|
89
|
+
_toast["default"].Success((0, _getLocale.getLocale)('Per_Ma_form_Updatesuc'));
|
|
90
90
|
|
|
91
91
|
if (refreshAll) {
|
|
92
92
|
refreshAll();
|
|
@@ -31,6 +31,8 @@ var _getLocale = require("../../../../../../utils/getLocale");
|
|
|
31
31
|
|
|
32
32
|
var _bsGlobal = require("../../../../../../utils/bs-global");
|
|
33
33
|
|
|
34
|
+
var _openData = require("../../../../../../utils/open-data");
|
|
35
|
+
|
|
34
36
|
require("./index.css");
|
|
35
37
|
|
|
36
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -209,7 +211,7 @@ var EKrNode = function EKrNode(props) {
|
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
213
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
212
|
-
text: title,
|
|
214
|
+
text: (0, _openData.parseString)(title),
|
|
213
215
|
minusWidth: 150,
|
|
214
216
|
isPercent: true
|
|
215
217
|
})), okrInfo.status === 1 && (isParticipant || hasRelativeAuth) ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -71,6 +71,10 @@
|
|
|
71
71
|
color: #f05e5e;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
.tita-okrdt-tree__kr-node-h1 {
|
|
75
|
+
display: flex;
|
|
76
|
+
}
|
|
77
|
+
|
|
74
78
|
.tita-okrdt-tree__kr-node-h2 {
|
|
75
79
|
height: 20px;
|
|
76
80
|
padding-left: 28px;
|
|
@@ -88,18 +92,76 @@
|
|
|
88
92
|
}
|
|
89
93
|
|
|
90
94
|
.tita-okrdt-tree__kr-node-title {
|
|
91
|
-
|
|
95
|
+
max-width: calc(100% - 32px);
|
|
92
96
|
margin-left: 8px;
|
|
93
97
|
font-size: 14px;
|
|
94
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
95
98
|
font-weight: 600;
|
|
96
|
-
color: #3f4755;
|
|
97
99
|
line-height: 22px;
|
|
100
|
+
color: #3f4755;
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
98
103
|
vertical-align: top;
|
|
99
|
-
width: calc(100% - 32px);
|
|
100
104
|
white-space: break-spaces;
|
|
101
105
|
}
|
|
102
106
|
|
|
107
|
+
.tita-okrdt-tree__kr-node-title--editing {
|
|
108
|
+
width: calc(100% - 32px);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.tita-okrdt-tree__kr-node-title .tu-icon-bianji2 {
|
|
112
|
+
margin-left: 5px;
|
|
113
|
+
font-size: 13px;
|
|
114
|
+
transition: visibility 0.3s ease;
|
|
115
|
+
color: #89919f;
|
|
116
|
+
visibility: hidden;
|
|
117
|
+
}
|
|
118
|
+
|
|
103
119
|
.tita-okrdt-tree__kr-node-title:hover .tu-icon-bianji2 {
|
|
104
120
|
visibility: visible;
|
|
105
121
|
}
|
|
122
|
+
|
|
123
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor {
|
|
124
|
+
flex: 1;
|
|
125
|
+
border: 1px solid #2879ff;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
box-shadow: 0px 0px 6px 0px rgba(40, 121, 255, 0.3) inset;
|
|
128
|
+
transition: all 0.3s ease;
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor .ProseMirror p {
|
|
133
|
+
padding: 2px;
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor--disabled {
|
|
138
|
+
padding: 0;
|
|
139
|
+
flex: unset !important;
|
|
140
|
+
border-color: transparent;
|
|
141
|
+
box-shadow: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor--disabled .ProseMirror p {
|
|
145
|
+
padding: 0;
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
font-weight: 600;
|
|
148
|
+
line-height: 20px;
|
|
149
|
+
transition: color 0.3s ease-in 0s;
|
|
150
|
+
color: #3f4755;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
display: -webkit-box;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
text-overflow: ellipsis;
|
|
155
|
+
word-break: break-all;
|
|
156
|
+
-webkit-box-orient: vertical;
|
|
157
|
+
-webkit-line-clamp: 2;
|
|
158
|
+
white-space: normal;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.tita-okrdt-tree__kr-node-title .tita-rich-editor--disabled .ProseMirror p:hover {
|
|
162
|
+
color: #2879ff;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.tita-okrdt-tree .rc-tree-treenode {
|
|
166
|
+
overflow: visible !important;
|
|
167
|
+
}
|