@titaui/pc 1.12.13-beta.1 → 1.12.15
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/communication/index.js +6 -0
- package/lib/components/dialog-confirm/index.css +0 -1
- package/lib/components/dialog-confirm/index.js +3 -5
- package/lib/components/drawer/index.css +9 -0
- package/lib/components/drawer/index.js +11 -8
- package/lib/components/dynamic/dynamic-item/components/header/index.js +5 -1
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/index.css +0 -1
- package/lib/components/dynamic/dynamic-item/index.js +14 -19
- package/lib/components/dynamic/dynamic-list/index.js +19 -2
- package/lib/components/form/form-fields/date/index.js +13 -13
- 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/export-modules/appraisal-menus/index.js +30 -12
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +104 -9
- package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
- package/lib/components/menus/i18n.js +0 -8
- package/lib/components/menus/index.js +0 -6
- package/lib/components/menus/request-apis.js +2 -8
- package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
- package/lib/components/nav-top/components/app-center/index.css +154 -0
- package/lib/components/{import-modal/import-okr-modal → nav-top/components/app-center}/index.js +104 -84
- package/lib/components/nav-top/components/menu/index.js +3 -7
- package/lib/components/nav-top/index.css +48 -7
- package/lib/components/nav-top/index.js +54 -33
- package/lib/components/nav-top/utils.js +464 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
- 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 +81 -44
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/picker/components/panels/date-panel/date-body.js +19 -31
- package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.css +0 -5
- package/lib/components/picker/components/panels/month-panel/index.js +4 -34
- package/lib/components/picker/components/panels/month-panel/month-body.js +5 -4
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.css +0 -5
- package/lib/components/picker/components/panels/year-panel/index.js +3 -34
- package/lib/components/picker/components/panels/year-panel/year-body.js +3 -10
- package/lib/components/picker/components/picker-trigger/index.css +1 -6
- package/lib/components/picker/components/picker-trigger/index.js +11 -16
- package/lib/components/picker/context.js +2 -17
- package/lib/components/picker/index.css +1 -29
- package/lib/components/picker/index.js +0 -3
- package/lib/components/picker/picker-panels.js +61 -98
- package/lib/components/picker/picker.js +30 -44
- package/lib/components/picker/utils.js +11 -168
- package/lib/components/rich-editor/schemas/list.js +1 -0
- package/lib/components/search-input/index.js +0 -5
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/select-tags/index.js +1 -7
- 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/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/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/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/request-apis.js +39 -9
- package/lib/components/user-selector/searched-panel/index.js +7 -1
- package/lib/index.js +0 -56
- package/lib/pages/aha2021/index.js +5 -5
- package/lib/pages/aha2021/new-menu-switcher/index.css +40 -0
- package/lib/{components/import-modal/radio.js → pages/aha2021/new-menu-switcher/index.js} +42 -23
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +15 -0
- package/lib/pages/okr-map/level2-search/user.js +1 -0
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +2 -14
- package/lib/utils/helpers.js +11 -56
- package/package.json +1 -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 -72
- package/lib/components/color-date-picker/index.js +0 -129
- 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 -330
- 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/api.js +0 -27
- 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 -75
- package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +0 -195
- 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/constant.js +0 -31
- 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 -151
- 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/index.js +0 -220
- 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/constant.js +0 -45
- 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 -166
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -360
- package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +0 -49
- 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/constant.js +0 -16
- 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 -169
- 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 -27
- 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 -68
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -50
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +0 -43
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +0 -87
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +0 -45
- 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 -171
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -231
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +0 -30
- 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-task-modal/index.css +0 -18
- package/lib/components/import-modal/import-task-modal/index.js +0 -241
- 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/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 -80
- 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 -169
- 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 -78
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +0 -78
- 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 -231
- 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 -190
- package/lib/components/menus/export-modules/summary-menus/request-api.js +0 -17
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -242
- 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/cross.svg +0 -17
- 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 -124
- package/lib/components/picker/components/panels/week-panel/week-body.js +0 -71
- package/lib/components/picker/components/panels/week-panel/week-head.js +0 -80
- package/lib/components/picker/range-picker/components/picker-trigger/index.css +0 -97
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +0 -109
- package/lib/components/picker/range-picker/components/placeholder/index.js +0 -91
- package/lib/components/picker/range-picker/components/select-input/index.js +0 -72
- package/lib/components/picker/range-picker/components/shortcuts/index.js +0 -45
- package/lib/components/picker/range-picker/index.css +0 -158
- package/lib/components/picker/range-picker/index.js +0 -263
- package/lib/components/promise-confirm/index.css +0 -0
- package/lib/components/promise-confirm/index.js +0 -117
- package/lib/components/promise-confirm/interface.js +0 -5
- package/lib/components/rate/index.css +0 -111
- package/lib/components/rate/index.js +0 -52
- 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 -113
- package/lib/components/rich-editor-upload/index.css +0 -11
- package/lib/components/rich-editor-upload/index.js +0 -87
- package/lib/components/write-summary-modal/index.css +0 -79
- package/lib/components/write-summary-modal/index.js +0 -167
- package/lib/components/write-summary-modal/interface.js +0 -19
- package/lib/components/write-summary-modal/request-api.js +0 -18
- package/lib/components/write-summary-modal/utils.js +0 -31
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -386,6 +386,9 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
386
386
|
userSelectorPopAlign = _this$props7.userSelectorPopAlign,
|
|
387
387
|
emotionsSelectorPopAlign = _this$props7.emotionsSelectorPopAlign,
|
|
388
388
|
showAtAll = _this$props7.showAtAll,
|
|
389
|
+
atAllTipText = _this$props7.atAllTipText,
|
|
390
|
+
atAllValue = _this$props7.atAllValue,
|
|
391
|
+
atAllText = _this$props7.atAllText,
|
|
389
392
|
commentCount = _this$props7.commentCount,
|
|
390
393
|
useCustomMblog = _this$props7.useCustomMblog,
|
|
391
394
|
_this$props7$submitTe = _this$props7.submitText,
|
|
@@ -471,6 +474,9 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
471
474
|
isShowSendSms: isShowSendSms,
|
|
472
475
|
submitText: submitText,
|
|
473
476
|
showAtAll: showAtAll,
|
|
477
|
+
atAllText: atAllText,
|
|
478
|
+
atAllTipText: atAllTipText,
|
|
479
|
+
atAllValue: atAllValue,
|
|
474
480
|
commentsTypeKey: feedId,
|
|
475
481
|
submitStatus: submitStatus,
|
|
476
482
|
userSelectorPopAlign: userSelectorPopAlign,
|
|
@@ -79,11 +79,9 @@ function DialogConfirm(props) {
|
|
|
79
79
|
var contentInstance;
|
|
80
80
|
|
|
81
81
|
_react["default"].Children.forEach(children, function (child) {
|
|
82
|
-
if (child)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
if (child.props.type == "content") contentInstance = child;
|
|
86
|
-
}
|
|
82
|
+
if (child.props.type == "button") footer.push(child);
|
|
83
|
+
if (child.props.type == "title") titleInstance = child;
|
|
84
|
+
if (child.props.type == "content") contentInstance = child;
|
|
87
85
|
});
|
|
88
86
|
|
|
89
87
|
var getConfirmIcon = function getConfirmIcon(type) {
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.titaui-drawer.drawer-open.drawer-top .drawer-content-wrapper {
|
|
14
|
+
box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.titaui-drawer-content {
|
|
14
18
|
height: 100%;
|
|
15
19
|
display: flex;
|
|
@@ -203,3 +207,8 @@
|
|
|
203
207
|
.drawer-right .drawer-content {
|
|
204
208
|
border-radius: 24px 0 0 24px;
|
|
205
209
|
}
|
|
210
|
+
|
|
211
|
+
.drawer-top .drawer-content-wrapper,
|
|
212
|
+
.drawer-top .drawer-content {
|
|
213
|
+
border-radius: 0 0 24px 24px;
|
|
214
|
+
}
|
|
@@ -56,7 +56,7 @@ var Drawer = function Drawer(props) {
|
|
|
56
56
|
|
|
57
57
|
var visible = props.visible,
|
|
58
58
|
_props$placement = props.placement,
|
|
59
|
-
placement = _props$placement === void 0 ?
|
|
59
|
+
placement = _props$placement === void 0 ? "right" : _props$placement,
|
|
60
60
|
children = props.children,
|
|
61
61
|
_props$mask = props.mask,
|
|
62
62
|
mask = _props$mask === void 0 ? false : _props$mask,
|
|
@@ -94,27 +94,30 @@ var Drawer = function Drawer(props) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
var autoClose = function autoClose(e) {
|
|
97
|
-
if ((0, _dom.hasAncestorElement)(e.target,
|
|
97
|
+
if ((0, _dom.hasAncestorElement)(e.target, "document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add")) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
98
101
|
onClose();
|
|
99
102
|
};
|
|
100
103
|
|
|
101
104
|
(0, _react.useEffect)(function () {
|
|
102
105
|
if (autoClosable) {
|
|
103
|
-
document.addEventListener(
|
|
106
|
+
document.addEventListener("mousedown", autoClose);
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
return function () {
|
|
107
|
-
document.removeEventListener(
|
|
110
|
+
document.removeEventListener("mousedown", autoClose);
|
|
108
111
|
};
|
|
109
112
|
}, []);
|
|
110
113
|
return /*#__PURE__*/_react["default"].createElement(DrawerContext.Provider, {
|
|
111
114
|
value: {
|
|
112
115
|
close: function close() {
|
|
113
|
-
|
|
116
|
+
onClose();
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
}, /*#__PURE__*/_react["default"].createElement(_rcDrawer["default"], _extends({
|
|
117
|
-
className: (0, _classnames["default"])(
|
|
120
|
+
className: (0, _classnames["default"])("titaui-drawer", "document-mouse-event-ignore", className),
|
|
118
121
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
119
122
|
zIndex: zIndex
|
|
120
123
|
})
|
|
@@ -167,7 +170,7 @@ function DrawerHeader(_ref) {
|
|
|
167
170
|
onClick: manager && manager.goBack
|
|
168
171
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
169
172
|
className: "tu-icon-fanhui"
|
|
170
|
-
}), (0, _getLocale.getLocale)(
|
|
173
|
+
}), (0, _getLocale.getLocale)("Mod_Back")), showBackBtn && hasContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
174
|
className: "titaui-drawer-header-divider"
|
|
172
175
|
}), hasContent && content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
176
|
style: {
|
|
@@ -178,7 +181,7 @@ function DrawerHeader(_ref) {
|
|
|
178
181
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
179
182
|
approvalSetting: approvalSetting,
|
|
180
183
|
detailInfo: detailInfo,
|
|
181
|
-
title: (0, _getLocale.getLocale)(
|
|
184
|
+
title: (0, _getLocale.getLocale)("Mod_MoreOperate"),
|
|
182
185
|
icon: "tu-icon-10",
|
|
183
186
|
children: collapsedActions
|
|
184
187
|
}), showClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -94,7 +94,11 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
94
94
|
var _useState7 = (0, _react.useState)(false),
|
|
95
95
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
96
96
|
selectVisible = _useState8[0],
|
|
97
|
-
setSelectVisible = _useState8[1];
|
|
97
|
+
setSelectVisible = _useState8[1]; // const url = getUrlForUserPage({
|
|
98
|
+
// userId: publishUser.id || publishUser.userId,
|
|
99
|
+
// userType: publishUser.userType || 2,
|
|
100
|
+
// });
|
|
101
|
+
|
|
98
102
|
|
|
99
103
|
var url = "";
|
|
100
104
|
|
|
@@ -54,8 +54,7 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
54
54
|
|
|
55
55
|
var name = data.name,
|
|
56
56
|
krId = data.krId,
|
|
57
|
-
principalUser = data.principalUser
|
|
58
|
-
publishUser = data.publishUser;
|
|
57
|
+
principalUser = data.principalUser;
|
|
59
58
|
|
|
60
59
|
var handleClickKrTitle = function handleClickKrTitle() {
|
|
61
60
|
_drawerManager["default"].open('krDetail', {
|
|
@@ -88,7 +87,7 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
88
87
|
data: data
|
|
89
88
|
}, restProps, {
|
|
90
89
|
desc: renderDesc,
|
|
91
|
-
user: principalUser
|
|
90
|
+
user: principalUser
|
|
92
91
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
92
|
className: "".concat(prefix, "__content")
|
|
94
93
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -53,8 +53,7 @@ var DynamicProject = function DynamicProject(_ref) {
|
|
|
53
53
|
workName = data.workName,
|
|
54
54
|
startDate = data.startDate,
|
|
55
55
|
deadline = data.deadline,
|
|
56
|
-
principalUser = data.principalUser
|
|
57
|
-
publishUser = data.publishUser;
|
|
56
|
+
principalUser = data.principalUser;
|
|
58
57
|
|
|
59
58
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
60
59
|
searchKeyWord = _useContext.searchKeyWord;
|
|
@@ -83,7 +82,7 @@ var DynamicProject = function DynamicProject(_ref) {
|
|
|
83
82
|
data: data
|
|
84
83
|
}, restProps, {
|
|
85
84
|
desc: renderDesc,
|
|
86
|
-
user: principalUser
|
|
85
|
+
user: principalUser
|
|
87
86
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
87
|
className: "".concat(prefix, "__content")
|
|
89
88
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -75,8 +75,6 @@ var _dynamicInterview = _interopRequireDefault(require("./dynamic-interview"));
|
|
|
75
75
|
|
|
76
76
|
var _dynamicInterviewShare = _interopRequireDefault(require("./dynamic-interview-share"));
|
|
77
77
|
|
|
78
|
-
var _dynamicNewReport = _interopRequireDefault(require("./dynamic-new-report"));
|
|
79
|
-
|
|
80
78
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
81
79
|
|
|
82
80
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -116,8 +114,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
116
114
|
|
|
117
115
|
var data = _ref.data,
|
|
118
116
|
onDeleteFeed = _ref.onDeleteFeed,
|
|
119
|
-
dynamicShareIsShowToping = _ref.dynamicShareIsShowToping
|
|
120
|
-
showCollect = _ref.showCollect;
|
|
117
|
+
dynamicShareIsShowToping = _ref.dynamicShareIsShowToping;
|
|
121
118
|
var feedId = data.feedId,
|
|
122
119
|
feedComments = data.feedComments,
|
|
123
120
|
praiseType = data.praiseType,
|
|
@@ -157,7 +154,11 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
157
154
|
setUpvoteModalVisible = _useState12[1];
|
|
158
155
|
|
|
159
156
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
160
|
-
searchKeyWord = _useContext.searchKeyWord
|
|
157
|
+
searchKeyWord = _useContext.searchKeyWord,
|
|
158
|
+
atAllText = _useContext.atAllText,
|
|
159
|
+
atAllTipText = _useContext.atAllTipText,
|
|
160
|
+
atAllValue = _useContext.atAllValue,
|
|
161
|
+
isShowAtAll = _useContext.isShowAtAll;
|
|
161
162
|
|
|
162
163
|
var hasDynamicOpereateAuth = new _auth.DynamicManagerAuth().hasAuth();
|
|
163
164
|
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
|
|
@@ -275,20 +276,10 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
275
276
|
});
|
|
276
277
|
|
|
277
278
|
case _constant.EFeedType.Report:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
data: data,
|
|
283
|
-
onDeleteFeed: onDeleteFeed,
|
|
284
|
-
showCollect: showCollect
|
|
285
|
-
});
|
|
286
|
-
} else {
|
|
287
|
-
return /*#__PURE__*/_react["default"].createElement(_dynamicReport["default"], {
|
|
288
|
-
data: data,
|
|
289
|
-
onDeleteFeed: onDeleteFeed
|
|
290
|
-
});
|
|
291
|
-
}
|
|
279
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicReport["default"], {
|
|
280
|
+
data: data,
|
|
281
|
+
onDeleteFeed: onDeleteFeed
|
|
282
|
+
});
|
|
292
283
|
|
|
293
284
|
case _constant.EFeedType.Reply:
|
|
294
285
|
return /*#__PURE__*/_react["default"].createElement(_dynamicReply["default"], {
|
|
@@ -528,6 +519,10 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
528
519
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
529
520
|
className: (0, _classnames["default"])("".concat(prefix, "__communication"))
|
|
530
521
|
}, /*#__PURE__*/_react["default"].createElement(_communication["default"], {
|
|
522
|
+
atAllText: atAllText,
|
|
523
|
+
atAllTipText: atAllTipText,
|
|
524
|
+
atAllValue: atAllValue,
|
|
525
|
+
showAtAll: isShowAtAll,
|
|
531
526
|
feedId: feedId,
|
|
532
527
|
commentCount: 3,
|
|
533
528
|
ref: communicationRef,
|
|
@@ -21,8 +21,14 @@ var _context = require("../context");
|
|
|
21
21
|
|
|
22
22
|
require("./index.css");
|
|
23
23
|
|
|
24
|
+
var _excluded = ["data", "dynamicShareIsShowToping", "onDeleteFeed", "height", "searchKeyWord", "atAllText", "atAllTipText", "atAllValue", "isShowAtAll"];
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
28
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
+
|
|
30
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
|
+
|
|
26
32
|
var prefix = 'titaui-dynamic-list';
|
|
27
33
|
|
|
28
34
|
var DynamicList = function DynamicList(_ref) {
|
|
@@ -32,7 +38,14 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
32
38
|
_ref$height = _ref.height,
|
|
33
39
|
height = _ref$height === void 0 ? -1 : _ref$height,
|
|
34
40
|
_ref$searchKeyWord = _ref.searchKeyWord,
|
|
35
|
-
searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord
|
|
41
|
+
searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord,
|
|
42
|
+
atAllText = _ref.atAllText,
|
|
43
|
+
atAllTipText = _ref.atAllTipText,
|
|
44
|
+
atAllValue = _ref.atAllValue,
|
|
45
|
+
isShowAtAll = _ref.isShowAtAll,
|
|
46
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
47
|
+
|
|
48
|
+
console.log(123, restProps);
|
|
36
49
|
|
|
37
50
|
var handleDeleteFeed = function handleDeleteFeed(feedId) {
|
|
38
51
|
if (onDeleteFeed) {
|
|
@@ -42,7 +55,11 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
42
55
|
|
|
43
56
|
return /*#__PURE__*/_react["default"].createElement(_context.SearchKeyContext.Provider, {
|
|
44
57
|
value: {
|
|
45
|
-
searchKeyWord: searchKeyWord
|
|
58
|
+
searchKeyWord: searchKeyWord,
|
|
59
|
+
atAllText: atAllText,
|
|
60
|
+
atAllTipText: atAllTipText,
|
|
61
|
+
atAllValue: atAllValue,
|
|
62
|
+
isShowAtAll: isShowAtAll
|
|
46
63
|
}
|
|
47
64
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
65
|
className: prefix,
|
|
@@ -29,7 +29,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
29
|
|
|
30
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
31
|
|
|
32
|
-
var prefixCls =
|
|
32
|
+
var prefixCls = "form-field-date";
|
|
33
33
|
|
|
34
34
|
var Date = function Date(props) {
|
|
35
35
|
var label = props.label,
|
|
@@ -46,18 +46,18 @@ var Date = function Date(props) {
|
|
|
46
46
|
var newDate;
|
|
47
47
|
|
|
48
48
|
switch (type) {
|
|
49
|
-
case
|
|
49
|
+
case "date":
|
|
50
50
|
newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
|
|
51
|
-
year: (0, _moment["default"])(date
|
|
52
|
-
month: (0, _moment["default"])(date
|
|
53
|
-
date: (0, _moment["default"])(date
|
|
51
|
+
year: (0, _moment["default"])(date).year(),
|
|
52
|
+
month: (0, _moment["default"])(date).month(),
|
|
53
|
+
date: (0, _moment["default"])(date).date()
|
|
54
54
|
});
|
|
55
55
|
break;
|
|
56
56
|
|
|
57
|
-
case
|
|
57
|
+
case "time":
|
|
58
58
|
newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
|
|
59
|
-
hour: (0, _moment["default"])(date
|
|
60
|
-
minute: (0, _moment["default"])(date
|
|
59
|
+
hour: (0, _moment["default"])(date, "HH:mm").hour(),
|
|
60
|
+
minute: (0, _moment["default"])(date, "HH:mm").minute()
|
|
61
61
|
});
|
|
62
62
|
break;
|
|
63
63
|
|
|
@@ -69,7 +69,7 @@ var Date = function Date(props) {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
-
className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout ===
|
|
72
|
+
className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout === "row"))
|
|
73
73
|
}, !!label && /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
74
|
className: "".concat(prefixCls, "__label")
|
|
75
75
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -79,23 +79,23 @@ var Date = function Date(props) {
|
|
|
79
79
|
}, "*")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
80
|
className: (0, _classnames["default"])("".concat(prefixCls, "__pickers"))
|
|
81
81
|
}, /*#__PURE__*/_react["default"].createElement(_picker["default"], _extends({
|
|
82
|
-
value:
|
|
82
|
+
value: value,
|
|
83
83
|
onChange: function onChange(date) {
|
|
84
|
-
return onDateChange(date,
|
|
84
|
+
return onDateChange(date, "date");
|
|
85
85
|
},
|
|
86
86
|
popupAlign: datePopupAlign
|
|
87
87
|
}, restProps)), /*#__PURE__*/_react["default"].createElement(_timePicker["default"], _extends({
|
|
88
88
|
value: value,
|
|
89
89
|
popupAlign: timePopupAlign,
|
|
90
90
|
onChange: function onChange(time) {
|
|
91
|
-
return onDateChange(time,
|
|
91
|
+
return onDateChange(time, "time");
|
|
92
92
|
}
|
|
93
93
|
}, restProps))));
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
Date.defaultProps = {
|
|
97
97
|
disabled: false,
|
|
98
|
-
layout:
|
|
98
|
+
layout: "column",
|
|
99
99
|
require: false
|
|
100
100
|
};
|
|
101
101
|
var _default = Date;
|
|
@@ -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;
|
|
@@ -29,6 +29,8 @@ var _precls = _interopRequireDefault(require("../../precls"));
|
|
|
29
29
|
|
|
30
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
31
|
|
|
32
|
+
var _tools = require("../../../../utils/tools");
|
|
33
|
+
|
|
32
34
|
require("../../index.css");
|
|
33
35
|
|
|
34
36
|
require("./index.css");
|
|
@@ -81,30 +83,45 @@ function AppraisalMenus(props) {
|
|
|
81
83
|
okrMenusData.current = new _menus["default"]();
|
|
82
84
|
return okrMenusData.current.getMenus();
|
|
83
85
|
}),
|
|
84
|
-
_useState6 = _slicedToArray(_useState5,
|
|
85
|
-
menus = _useState6[0]
|
|
86
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
87
|
+
menus = _useState6[0],
|
|
88
|
+
setMenus = _useState6[1];
|
|
86
89
|
|
|
90
|
+
(0, _react.useEffect)(function () {
|
|
91
|
+
okrMenusData.current = new _menus["default"]();
|
|
92
|
+
var newMenus = okrMenusData.current.getMenus();
|
|
93
|
+
setMenus(newMenus);
|
|
94
|
+
|
|
95
|
+
var _getQueryString = (0, _tools.getQueryString)(),
|
|
96
|
+
_getQueryString$react = _getQueryString.reactRouterName,
|
|
97
|
+
reactRouterName = _getQueryString$react === void 0 ? "" : _getQueryString$react;
|
|
98
|
+
|
|
99
|
+
if (!reactRouterName) {
|
|
100
|
+
window.location.href = newMenus[0].data.href;
|
|
101
|
+
}
|
|
102
|
+
}, [history.location.pathname]); // 判断路由高亮菜单
|
|
87
103
|
|
|
88
104
|
(0, _react.useEffect)(function () {
|
|
89
105
|
var menuHighlight = new _menuHighlight["default"](history);
|
|
90
106
|
menuHighlight.highlight(function (menu) {
|
|
91
|
-
|
|
107
|
+
setSelectedMenuKeys([menu]);
|
|
92
108
|
});
|
|
93
|
-
}, [history.location.pathname, history.location.search]);
|
|
109
|
+
}, [history.location.pathname, history.location.search, menus]);
|
|
94
110
|
|
|
95
111
|
var onSelectHandler = function onSelectHandler(selectedKyes, _ref) {
|
|
96
112
|
var node = _ref.node;
|
|
97
113
|
onSelect(node); // 处理菜单选中
|
|
98
114
|
|
|
99
115
|
if (!selectedKyes.length) return;
|
|
100
|
-
setSelectedMenuKeys(selectedKyes);
|
|
101
|
-
|
|
102
|
-
window.titaTracker
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
116
|
+
setSelectedMenuKeys(selectedKyes);
|
|
117
|
+
|
|
118
|
+
if (window.titaTracker) {
|
|
119
|
+
window.titaTracker("action").record({
|
|
120
|
+
actionName: "\u7EE9\u6548\u8003\u6838__".concat(node.title),
|
|
121
|
+
actionGroup: (0, _getLocale.getLocale)("Menu_Title_Performance"),
|
|
122
|
+
productName: (0, _getLocale.getLocale)("Menu_Title_Performance")
|
|
123
|
+
});
|
|
124
|
+
}
|
|
108
125
|
};
|
|
109
126
|
|
|
110
127
|
var collapseMenu = function collapseMenu(isHide) {
|
|
@@ -117,6 +134,7 @@ function AppraisalMenus(props) {
|
|
|
117
134
|
|
|
118
135
|
(0, _react.useEffect)(function () {
|
|
119
136
|
var obs = new _resizeObserverPolyfill["default"](function (entries) {
|
|
137
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
120
138
|
var _iterator = _createForOfIteratorHelper(entries),
|
|
121
139
|
_step;
|
|
122
140
|
|