@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
|
@@ -134,22 +134,6 @@
|
|
|
134
134
|
background-image: url("../images/interview-menu/template.svg");
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.titaui-menus-tree__sub-menu-item-node-icon.all-zongjie {
|
|
138
|
-
background-image: url("../images/summary-menu/zongjie-s.svg");
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.titaui-menus-tree__sub-menu-item-node-icon.caidan-my {
|
|
142
|
-
background-image: url("../images/summary-menu/my-zongjie.svg");
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.titaui-menus-tree__sub-menu-item-node-icon.caidan-enjoy {
|
|
146
|
-
background-image: url("../images/summary-menu/caidan-enjoy.svg");
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.titaui-menus-tree__sub-menu-item-node-icon.my-setup {
|
|
150
|
-
background-image: url("../images/summary-menu/my-setup.svg");
|
|
151
|
-
}
|
|
152
|
-
|
|
153
137
|
.titaui-menus-tree__menu-item-node {
|
|
154
138
|
display: flex;
|
|
155
139
|
align-items: center;
|
|
@@ -258,22 +242,6 @@
|
|
|
258
242
|
background-image: url("../images/interview-menu/template.svg");
|
|
259
243
|
}
|
|
260
244
|
|
|
261
|
-
.titaui-menus-tree__menu-item-node-icon.all-zongjie {
|
|
262
|
-
background-image: url("../images/summary-menu/zongjie-s.svg");
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.titaui-menus-tree__menu-item-node-icon.caidan-my {
|
|
266
|
-
background-image: url("../images/summary-menu/my-zongjie.svg");
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.titaui-menus-tree__menu-item-node-icon.caidan-enjoy {
|
|
270
|
-
background-image: url("../images/summary-menu/caidan-enjoy.svg");
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.titaui-menus-tree__menu-item-node-icon.my-setup {
|
|
274
|
-
background-image: url("../images/summary-menu/my-setup.svg");
|
|
275
|
-
}
|
|
276
|
-
|
|
277
245
|
.titaui-menus-tree__parent-menu-node {
|
|
278
246
|
display: flex;
|
|
279
247
|
align-items: center;
|
|
@@ -382,22 +350,6 @@
|
|
|
382
350
|
background-image: url("../images/interview-menu/template.svg");
|
|
383
351
|
}
|
|
384
352
|
|
|
385
|
-
.titaui-menus-tree__parent-menu-node-icon.all-zongjie {
|
|
386
|
-
background-image: url("../images/summary-menu/zongjie-s.svg");
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.titaui-menus-tree__parent-menu-node-icon.caidan-my {
|
|
390
|
-
background-image: url("../images/summary-menu/my-zongjie.svg");
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.titaui-menus-tree__parent-menu-node-icon.caidan-enjoy {
|
|
394
|
-
background-image: url("../images/summary-menu/caidan-enjoy.svg");
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.titaui-menus-tree__parent-menu-node-icon.my-setup {
|
|
398
|
-
background-image: url("../images/summary-menu/my-setup.svg");
|
|
399
|
-
}
|
|
400
|
-
|
|
401
353
|
.titaui-menus-tree__no-follower-node, .titaui-menus-tree__no-subordinates-node {
|
|
402
354
|
display: flex;
|
|
403
355
|
align-items: center;
|
|
@@ -578,22 +530,6 @@
|
|
|
578
530
|
background-image: url("../images/interview-menu/template.svg");
|
|
579
531
|
}
|
|
580
532
|
|
|
581
|
-
.titaui-menus-tree__company-all-node-icon.all-zongjie {
|
|
582
|
-
background-image: url("../images/summary-menu/zongjie-s.svg");
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.titaui-menus-tree__company-all-node-icon.caidan-my {
|
|
586
|
-
background-image: url("../images/summary-menu/my-zongjie.svg");
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.titaui-menus-tree__company-all-node-icon.caidan-enjoy {
|
|
590
|
-
background-image: url("../images/summary-menu/caidan-enjoy.svg");
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
.titaui-menus-tree__company-all-node-icon.my-setup {
|
|
594
|
-
background-image: url("../images/summary-menu/my-setup.svg");
|
|
595
|
-
}
|
|
596
|
-
|
|
597
533
|
.titaui-menus-tree__ass-template-node {
|
|
598
534
|
display: flex;
|
|
599
535
|
align-items: center;
|
|
@@ -702,22 +638,6 @@
|
|
|
702
638
|
background-image: url("../images/interview-menu/template.svg");
|
|
703
639
|
}
|
|
704
640
|
|
|
705
|
-
.titaui-menus-tree__ass-template-node-icon.all-zongjie {
|
|
706
|
-
background-image: url("../images/summary-menu/zongjie-s.svg");
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
.titaui-menus-tree__ass-template-node-icon.caidan-my {
|
|
710
|
-
background-image: url("../images/summary-menu/my-zongjie.svg");
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
.titaui-menus-tree__ass-template-node-icon.caidan-enjoy {
|
|
714
|
-
background-image: url("../images/summary-menu/caidan-enjoy.svg");
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
.titaui-menus-tree__ass-template-node-icon.my-setup {
|
|
718
|
-
background-image: url("../images/summary-menu/my-setup.svg");
|
|
719
|
-
}
|
|
720
|
-
|
|
721
641
|
.titaui-menus-tree__ass-template-node-suffix {
|
|
722
642
|
display: inline-block;
|
|
723
643
|
height: 18px;
|
|
@@ -836,22 +756,6 @@
|
|
|
836
756
|
background-image: url("../images/interview-menu/template.svg");
|
|
837
757
|
}
|
|
838
758
|
|
|
839
|
-
.titaui-menus-tree__ass-manage-node-icon.all-zongjie {
|
|
840
|
-
background-image: url("../images/summary-menu/zongjie-s.svg");
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
.titaui-menus-tree__ass-manage-node-icon.caidan-my {
|
|
844
|
-
background-image: url("../images/summary-menu/my-zongjie.svg");
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
.titaui-menus-tree__ass-manage-node-icon.caidan-enjoy {
|
|
848
|
-
background-image: url("../images/summary-menu/caidan-enjoy.svg");
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
.titaui-menus-tree__ass-manage-node-icon.my-setup {
|
|
852
|
-
background-image: url("../images/summary-menu/my-setup.svg");
|
|
853
|
-
}
|
|
854
|
-
|
|
855
759
|
.titaui-menus-tree__ass-manage-node-suffix {
|
|
856
760
|
display: inline-block;
|
|
857
761
|
height: 18px;
|
|
@@ -971,22 +875,6 @@
|
|
|
971
875
|
background-image: url("../images/interview-menu/template.svg");
|
|
972
876
|
}
|
|
973
877
|
|
|
974
|
-
.titaui-menus-tree__user-concern-node-icon.all-zongjie {
|
|
975
|
-
background-image: url("../images/summary-menu/zongjie-s.svg");
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
.titaui-menus-tree__user-concern-node-icon.caidan-my {
|
|
979
|
-
background-image: url("../images/summary-menu/my-zongjie.svg");
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
.titaui-menus-tree__user-concern-node-icon.caidan-enjoy {
|
|
983
|
-
background-image: url("../images/summary-menu/caidan-enjoy.svg");
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
.titaui-menus-tree__user-concern-node-icon.my-setup {
|
|
987
|
-
background-image: url("../images/summary-menu/my-setup.svg");
|
|
988
|
-
}
|
|
989
|
-
|
|
990
878
|
.titaui-menus-tree__user-concern-node-add {
|
|
991
879
|
display: inline-block;
|
|
992
880
|
position: absolute;
|
|
@@ -1022,14 +910,6 @@
|
|
|
1022
910
|
animation: addBtnOpacity 0.3s 1 forwards;
|
|
1023
911
|
}
|
|
1024
912
|
|
|
1025
|
-
.titaui-menus-tree__subordinates-arrow-down {
|
|
1026
|
-
transform: rotate(90deg);
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
.titaui-menus-tree__share-arrow-down {
|
|
1030
|
-
transform: rotate(90deg);
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
913
|
@keyframes addBtnOpacity {
|
|
1034
914
|
from {
|
|
1035
915
|
opacity: 0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.USER_NODE = exports.USER_CONCERN_NODE = exports.SUB_MENU_ITEM_NOE = exports.
|
|
6
|
+
exports.USER_NODE = exports.USER_CONCERN_NODE = exports.SUB_MENU_ITEM_NOE = exports.PARENT_MENU_NODE = exports.NO_SUBORDINATES_NODE = exports.NO_FOLLOWER_NODE = exports.MENU_ITEM_NOE = exports.MENU_ASSESS_TEMPLATE = exports.MENU_ASSESS_MANAGE = exports.LOADING_NODE = exports.GROUP_NAME_NODE = exports.FOLLOWER_NODE = exports.DEPART_NODE = exports.COMPANY_NODE = exports.COMPANY_ALL_NODE = void 0;
|
|
7
7
|
exports["default"] = _default;
|
|
8
8
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -18,10 +18,6 @@ var _groupName = _interopRequireDefault(require("./group-name"));
|
|
|
18
18
|
|
|
19
19
|
var _userConcern = _interopRequireDefault(require("./user-concern"));
|
|
20
20
|
|
|
21
|
-
var _subordinates = _interopRequireDefault(require("./subordinates"));
|
|
22
|
-
|
|
23
|
-
var _summaryShare = _interopRequireDefault(require("./summary-share"));
|
|
24
|
-
|
|
25
21
|
var _compony = _interopRequireDefault(require("./compony"));
|
|
26
22
|
|
|
27
23
|
var _depart = _interopRequireDefault(require("./depart"));
|
|
@@ -123,18 +119,6 @@ function _default(node, level, _ref) {
|
|
|
123
119
|
level: level
|
|
124
120
|
}));
|
|
125
121
|
|
|
126
|
-
case SUBORDINATES_NODE:
|
|
127
|
-
return /*#__PURE__*/_react["default"].createElement(_subordinates["default"], _extends({}, node, {
|
|
128
|
-
level: level,
|
|
129
|
-
onExpand: onExpand
|
|
130
|
-
}));
|
|
131
|
-
|
|
132
|
-
case SHARE_NODE:
|
|
133
|
-
return /*#__PURE__*/_react["default"].createElement(_summaryShare["default"], _extends({}, node, {
|
|
134
|
-
level: level,
|
|
135
|
-
onExpand: onExpand
|
|
136
|
-
}));
|
|
137
|
-
|
|
138
122
|
default:
|
|
139
123
|
}
|
|
140
124
|
}
|
|
@@ -168,8 +152,4 @@ exports.MENU_ITEM_NOE = MENU_ITEM_NOE;
|
|
|
168
152
|
var MENU_ASSESS_MANAGE = "assess-manage";
|
|
169
153
|
exports.MENU_ASSESS_MANAGE = MENU_ASSESS_MANAGE;
|
|
170
154
|
var MENU_ASSESS_TEMPLATE = "assess-template";
|
|
171
|
-
exports.MENU_ASSESS_TEMPLATE = MENU_ASSESS_TEMPLATE;
|
|
172
|
-
var SUBORDINATES_NODE = 'subordinates';
|
|
173
|
-
exports.SUBORDINATES_NODE = SUBORDINATES_NODE;
|
|
174
|
-
var SHARE_NODE = 'share';
|
|
175
|
-
exports.SHARE_NODE = SHARE_NODE;
|
|
155
|
+
exports.MENU_ASSESS_TEMPLATE = MENU_ASSESS_TEMPLATE;
|
|
@@ -50,14 +50,6 @@ var I18N = /*#__PURE__*/_createClass(function I18N() {
|
|
|
50
50
|
this.menu_regulation_daily = "Regul_Menu_DailyReport";
|
|
51
51
|
this.menu_regulation_weekly = "Regul_Menu_WeeklyReport";
|
|
52
52
|
this.menu_regulation_monthly = "Regul_Menu_MonthlyReport";
|
|
53
|
-
this.menu_all_summary = 'DailyReport_Menu_AllReports';
|
|
54
|
-
this.menu_my_summary = 'Rep_Tab_Mysmary';
|
|
55
|
-
this.menu_my_subordinates = 'Datadetails_Menu_DirectReports';
|
|
56
|
-
this.menu_my_share = 'Rep_NewS_Share';
|
|
57
|
-
this.menu_department = 'OKR_Ali_From_Viewdepartment';
|
|
58
|
-
this.menu_summary_role = 'Rep_NewS_ManaRegu';
|
|
59
|
-
this.menu_summary_count = 'Data_Summarystatistics';
|
|
60
|
-
this.menu_summary = 'Rep_NewS_Management';
|
|
61
53
|
});
|
|
62
54
|
|
|
63
55
|
var locale = new I18N();
|
|
@@ -21,8 +21,6 @@ require("./index.css");
|
|
|
21
21
|
|
|
22
22
|
var _demoMenus = _interopRequireDefault(require("./export-modules/demo-menus"));
|
|
23
23
|
|
|
24
|
-
var _summaryMenus = _interopRequireDefault(require("./export-modules/summary-menus"));
|
|
25
|
-
|
|
26
24
|
var _excluded = ["type"];
|
|
27
25
|
|
|
28
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -58,10 +56,6 @@ var Menus = function Menus(props) {
|
|
|
58
56
|
return /*#__PURE__*/_react["default"].createElement(_interviewMenus["default"], restProps);
|
|
59
57
|
}
|
|
60
58
|
|
|
61
|
-
if (type === 'summary') {
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement(_summaryMenus["default"], restProps);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
59
|
return undefined;
|
|
66
60
|
};
|
|
67
61
|
|
|
@@ -62,7 +62,7 @@ var NewFeatureGuidePopupAlign = {
|
|
|
62
62
|
},
|
|
63
63
|
targetOffset: [0, 0]
|
|
64
64
|
};
|
|
65
|
-
var NEWMENUS = "#/
|
|
65
|
+
var NEWMENUS = "#/interview";
|
|
66
66
|
|
|
67
67
|
var Menu = function Menu(_ref) {
|
|
68
68
|
var menus = _ref.menus,
|
|
@@ -106,9 +106,9 @@ var Menu = function Menu(_ref) {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
(0, _react.useEffect)(function () {
|
|
109
|
-
var
|
|
109
|
+
var cacheIsKnow = localStorage.getItem("isNewMenuItem__".concat(userId));
|
|
110
110
|
|
|
111
|
-
if (
|
|
111
|
+
if (cacheIsKnow) {
|
|
112
112
|
setIsKonw(true);
|
|
113
113
|
}
|
|
114
114
|
}, []);
|
|
@@ -147,7 +147,7 @@ var Menu = function Menu(_ref) {
|
|
|
147
147
|
mask: false,
|
|
148
148
|
action: ["focus"],
|
|
149
149
|
popupAlign: NewFeatureGuidePopupAlign,
|
|
150
|
-
zIndex:
|
|
150
|
+
zIndex: 1000
|
|
151
151
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
152
152
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
153
153
|
href: href,
|
|
@@ -260,7 +260,7 @@ function Inform(props) {
|
|
|
260
260
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
261
261
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
262
262
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
263
|
-
text: (0, _openData.parseString)((0, _utils.deleteText)(
|
|
263
|
+
text: (0, _openData.parseString)((0, _utils.deleteText)(item.content)),
|
|
264
264
|
isPercent: true,
|
|
265
265
|
mouseEnterDelay: 0.8
|
|
266
266
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -23,7 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
23
23
|
|
|
24
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
25
|
|
|
26
|
-
var preCls =
|
|
26
|
+
var preCls = 'titaui-user-message-msg-todos';
|
|
27
27
|
|
|
28
28
|
var TodoItem = function TodoItem(props) {
|
|
29
29
|
var item = props.item,
|
|
@@ -34,7 +34,7 @@ var TodoItem = function TodoItem(props) {
|
|
|
34
34
|
onItemClick && onItemClick(false);
|
|
35
35
|
|
|
36
36
|
if (item.objType === 7) {
|
|
37
|
-
window.Talent.app.vent.trigger(
|
|
37
|
+
window.Talent.app.vent.trigger('global-pull-screen', item.objId, 'task');
|
|
38
38
|
} else {
|
|
39
39
|
(0, _tools.openPage)(item.objUrl);
|
|
40
40
|
}
|
|
@@ -78,7 +78,7 @@ var TodoItem = function TodoItem(props) {
|
|
|
78
78
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
79
79
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
80
80
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
81
|
-
text: (0, _openData.parseString)((0, _utils.deleteText)(
|
|
81
|
+
text: (0, _openData.parseString)((0, _utils.deleteText)(item.content)),
|
|
82
82
|
isPercent: true,
|
|
83
83
|
mouseEnterDelay: 0.8
|
|
84
84
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _richEditor = require("@titaui/rich-editor");
|
|
15
|
+
|
|
14
16
|
var _toast = _interopRequireDefault(require("../../../toast"));
|
|
15
17
|
|
|
16
18
|
var _requestApis = require("../../request-apis");
|
|
@@ -31,6 +33,12 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
31
33
|
|
|
32
34
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
33
35
|
|
|
36
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
37
|
+
|
|
38
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
34
42
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
43
|
|
|
36
44
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -43,25 +51,38 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
43
51
|
|
|
44
52
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
53
|
|
|
54
|
+
var prefixCls = 'okr-drawer-header__edit';
|
|
55
|
+
|
|
46
56
|
function EditNameCmp(props) {
|
|
47
|
-
var
|
|
57
|
+
var _classNames;
|
|
58
|
+
|
|
59
|
+
var editable = props.editable,
|
|
60
|
+
okrName = props.okrName,
|
|
48
61
|
okrId = props.okrId,
|
|
49
|
-
setIsEdit = props.setIsEdit,
|
|
50
62
|
setOkrName = props.setOkrName;
|
|
51
63
|
|
|
52
|
-
var _useState = (0, _react.useState)(
|
|
64
|
+
var _useState = (0, _react.useState)(false),
|
|
53
65
|
_useState2 = _slicedToArray(_useState, 2),
|
|
54
|
-
|
|
55
|
-
|
|
66
|
+
editing = _useState2[0],
|
|
67
|
+
setEditing = _useState2[1];
|
|
68
|
+
|
|
69
|
+
var _useState3 = (0, _react.useState)(''),
|
|
70
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
+
errorTip = _useState4[0],
|
|
72
|
+
setErrorTip = _useState4[1];
|
|
73
|
+
|
|
74
|
+
var _useState5 = (0, _react.useState)(_objectSpread(_objectSpread({}, okrName), {}, {
|
|
75
|
+
editorState: 'normal'
|
|
76
|
+
})),
|
|
77
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
78
|
+
okrNameData = _useState6[0],
|
|
79
|
+
setOkrNameData = _useState6[1];
|
|
56
80
|
|
|
57
|
-
var
|
|
58
|
-
(0, _react.useEffect)(function () {
|
|
59
|
-
inputRef.current.setSelectionRange(9999999, 9999999);
|
|
60
|
-
}, []);
|
|
81
|
+
var mentionInputRef = (0, _react.useRef)();
|
|
61
82
|
|
|
62
83
|
var checkError = function checkError(val) {
|
|
63
84
|
if (val.length == 0) {
|
|
64
|
-
setErrorTip((0, _getLocale.getLocale)(
|
|
85
|
+
setErrorTip((0, _getLocale.getLocale)('OKR_MyO_Pop_Targetname'));
|
|
65
86
|
return;
|
|
66
87
|
}
|
|
67
88
|
|
|
@@ -70,21 +91,33 @@ function EditNameCmp(props) {
|
|
|
70
91
|
return;
|
|
71
92
|
}
|
|
72
93
|
|
|
73
|
-
setErrorTip(
|
|
94
|
+
setErrorTip('');
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
var onChangeHandler = function onChangeHandler(data) {
|
|
98
|
+
setOkrNameData(function (prevData) {
|
|
99
|
+
return _objectSpread(_objectSpread({}, prevData), data);
|
|
100
|
+
});
|
|
101
|
+
checkError(data.pureTextExcludeAt);
|
|
74
102
|
};
|
|
75
103
|
|
|
76
|
-
var
|
|
77
|
-
|
|
104
|
+
var onFocusHandler = function onFocusHandler() {
|
|
105
|
+
return setEditing(true);
|
|
78
106
|
};
|
|
79
107
|
|
|
80
108
|
var cancelEditHandler = function cancelEditHandler() {
|
|
81
|
-
|
|
82
|
-
setErrorTip(
|
|
109
|
+
setEditing(false);
|
|
110
|
+
setErrorTip('');
|
|
111
|
+
setOkrNameData(function (prevData) {
|
|
112
|
+
return _objectSpread(_objectSpread({}, okrName), {}, {
|
|
113
|
+
editorState: prevData.editorState === 'normal' ? 'reset' : 'normal'
|
|
114
|
+
});
|
|
115
|
+
});
|
|
83
116
|
};
|
|
84
117
|
|
|
85
118
|
var confiremEditHandle = /*#__PURE__*/function () {
|
|
86
119
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
87
|
-
var
|
|
120
|
+
var mentionUsers, pureText, richText, data;
|
|
88
121
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
89
122
|
while (1) {
|
|
90
123
|
switch (_context.prev = _context.next) {
|
|
@@ -97,31 +130,35 @@ function EditNameCmp(props) {
|
|
|
97
130
|
return _context.abrupt("return");
|
|
98
131
|
|
|
99
132
|
case 2:
|
|
100
|
-
|
|
133
|
+
mentionUsers = okrNameData.mentionUsers, pureText = okrNameData.pureText, richText = okrNameData.richText;
|
|
101
134
|
|
|
102
|
-
if (!(okrName ==
|
|
135
|
+
if (!(okrName.pureText == pureText)) {
|
|
103
136
|
_context.next = 6;
|
|
104
137
|
break;
|
|
105
138
|
}
|
|
106
139
|
|
|
107
|
-
|
|
140
|
+
setEditing(false);
|
|
108
141
|
return _context.abrupt("return");
|
|
109
142
|
|
|
110
143
|
case 6:
|
|
111
144
|
_context.next = 8;
|
|
112
145
|
return (0, _requestApis.updateOkrName)({
|
|
113
146
|
workId: okrId,
|
|
114
|
-
workName:
|
|
147
|
+
workName: pureText,
|
|
148
|
+
workNameRichText: richText,
|
|
149
|
+
aiteUsers: mentionUsers.map(function (user) {
|
|
150
|
+
return user.mentionId;
|
|
151
|
+
})
|
|
115
152
|
});
|
|
116
153
|
|
|
117
154
|
case 8:
|
|
118
155
|
data = _context.sent;
|
|
119
156
|
|
|
120
157
|
if (data.Code == 1) {
|
|
121
|
-
|
|
122
|
-
setOkrName(
|
|
158
|
+
setEditing(false);
|
|
159
|
+
setOkrName(okrNameData.richText);
|
|
123
160
|
|
|
124
|
-
_toast["default"].Success(
|
|
161
|
+
_toast["default"].Success('修改成功');
|
|
125
162
|
} else {
|
|
126
163
|
_toast["default"].Error(data.Message);
|
|
127
164
|
}
|
|
@@ -140,27 +177,27 @@ function EditNameCmp(props) {
|
|
|
140
177
|
}();
|
|
141
178
|
|
|
142
179
|
return /*#__PURE__*/_react["default"].createElement("section", {
|
|
143
|
-
className:
|
|
180
|
+
className: prefixCls
|
|
144
181
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
-
className: (0, _classnames["default"])("
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
})),
|
|
154
|
-
className: "
|
|
182
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-input"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-input--editable"), editable), _defineProperty(_classNames, "".concat(prefixCls, "-input--editing"), editing), _defineProperty(_classNames, "".concat(prefixCls, "-input--error"), errorTip.length > 0), _classNames))
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement(_richEditor.TitaInlineRichEditor, {
|
|
184
|
+
key: okrNameData.editorState,
|
|
185
|
+
editable: editable,
|
|
186
|
+
initialState: okrNameData.richText,
|
|
187
|
+
onDocChange: onChangeHandler,
|
|
188
|
+
onFocus: onFocusHandler,
|
|
189
|
+
ref: mentionInputRef
|
|
190
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
191
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-error-tip"), _defineProperty({}, "".concat(prefixCls, "-error-tip--visible"), errorTip.length > 0))
|
|
155
192
|
}, errorTip), /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
|
-
className: "
|
|
193
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-btns"), _defineProperty({}, "".concat(prefixCls, "-btns--visible"), editing))
|
|
157
194
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
158
|
-
className: (0, _classnames["default"])(
|
|
195
|
+
className: (0, _classnames["default"])('titaui-pc-button', "".concat(prefixCls, "-btns-cancel")),
|
|
159
196
|
onClick: cancelEditHandler
|
|
160
|
-
}, (0, _getLocale.getLocale)(
|
|
161
|
-
className: (0, _classnames["default"])(
|
|
197
|
+
}, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
198
|
+
className: (0, _classnames["default"])('titaui-pc-button', "".concat(prefixCls, "-btns-confirm"), _defineProperty({}, "".concat(prefixCls, "-btns-confirm--disabled"), errorTip.length > 0)),
|
|
162
199
|
onClick: confiremEditHandle
|
|
163
|
-
}, (0, _getLocale.getLocale)(
|
|
200
|
+
}, (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine'))));
|
|
164
201
|
}
|
|
165
202
|
|
|
166
203
|
var _default = EditNameCmp;
|