@titaui/pc 1.12.62 → 1.12.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/default.js +2 -5
- package/lib/components/avatar/index.css +0 -2
- package/lib/components/dialog-confirm/index.css +0 -1
- package/lib/components/dialog-confirm/index.js +4 -8
- package/lib/components/drawer/index.css +5 -5
- package/lib/components/drawer/index.js +7 -7
- package/lib/components/drop-selector/index.js +4 -7
- package/lib/components/dynamic/constant.js +1 -5
- package/lib/components/dynamic/dynamic-item/components/header/index.js +47 -49
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -4
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +2 -3
- package/lib/components/dynamic/dynamic-item/index.css +2 -3
- package/lib/components/dynamic/dynamic-item/index.js +33 -52
- package/lib/components/dynamic/dynamic-list/index.js +8 -8
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
- package/lib/components/form/form-fields/date/index.js +8 -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/components/menu-tree/tree-node/menu-item.js +1 -5
- package/lib/components/menus/components/search-colleague/index.js +1 -3
- package/lib/components/menus/export-modules/appraisal-menus/index.js +6 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +69 -69
- package/lib/components/menus/export-modules/demo-menus/menus.js +4 -5
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/okr-menus/index.js +6 -6
- package/lib/components/menus/export-modules/okr-menus/menus.js +60 -60
- package/lib/components/menus/export-modules/okr-menus/okr-front-menus.js +2 -2
- package/lib/components/menus/i18n.js +0 -8
- package/lib/components/menus/index.js +0 -6
- package/lib/components/menus/request-apis.js +2 -22
- package/lib/components/nav-top/components/app-center/index.css +1 -24
- package/lib/components/nav-top/components/app-center/index.js +10 -18
- package/lib/components/nav-top/components/menu/index.css +0 -11
- package/lib/components/nav-top/components/menu/index.js +53 -49
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +17 -28
- package/lib/components/nav-top/components/user-message/index.js +19 -19
- package/lib/components/nav-top/index.css +0 -5
- package/lib/components/nav-top/index.js +2 -39
- package/lib/components/okr-detail/components/header/index.js +1 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -6
- package/lib/components/okr-flow/export-modal/index.css +3 -3
- package/lib/components/okr-flow/export-modal/index.js +1 -1
- package/lib/components/okr-flow/okr-map/index.js +1 -3
- package/lib/components/order-have-award/index.js +6 -6
- package/lib/components/period-selector/components/button/style.js +5 -5
- 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 -35
- 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 +1 -1
- 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 +60 -106
- 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/rich-editor/ui/editor/index.css +32 -32
- package/lib/components/rich-editor/ui/editor/index.js +1 -1
- package/lib/components/search-input/index.js +0 -5
- package/lib/components/select-tags/index.js +2 -12
- package/lib/components/task-relation-modal/helper.js +6 -6
- package/lib/components/task-relation-modal/request-api.js +9 -9
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +4 -4
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +5 -5
- package/lib/components/textarea/index.css +66 -61
- package/lib/components/textarea/index.js +18 -23
- package/lib/components/toast/index.js +1 -1
- package/lib/components/tooltip/tooltip.js +2 -2
- package/lib/components/upvote/index.js +4 -10
- package/lib/components/upvote/selector.js +3 -2
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +1 -1
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +3 -3
- package/lib/components/user-selector/request-apis.js +13 -13
- package/lib/components-v1/radio/style/index.css +1 -1
- package/lib/index.js +0 -64
- package/lib/pages/aha2021/index.css +17 -0
- package/lib/pages/aha2021/index.js +28 -3
- package/lib/pages/aha2021/new-menu-switcher/index.js +4 -4
- package/lib/pages/aha2021/request-api.js +1 -1
- package/lib/utils/auth.js +0 -10
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/constant.js +2 -14
- package/lib/utils/helpers.js +12 -112
- package/lib/utils/open-data.js +42 -41
- package/package.json +2 -3
- package/lib/components/attachments-preview/index.css +0 -9
- package/lib/components/attachments-preview/index.js +0 -116
- 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 -69
- 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 -332
- package/lib/components/dialog-upload/type.js +0 -35
- package/lib/components/dialog-upload/uploaded-preview.css +0 -80
- package/lib/components/dialog-upload/uploaded-preview.js +0 -134
- package/lib/components/dialog-upload/util.js +0 -131
- package/lib/components/dynamic/components/comments-dialog/api.js +0 -27
- package/lib/components/dynamic/components/comments-dialog/encourage.js +0 -127
- package/lib/components/dynamic/components/comments-dialog/img/APP-shoucang-m.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/ascore.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curEfforts.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curGood.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/curGreat.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/efforts.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/good.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/great.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/halfscore.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/loading.gif +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/score.png +0 -0
- package/lib/components/dynamic/components/comments-dialog/img/top.svg +0 -14
- package/lib/components/dynamic/components/comments-dialog/index.css +0 -116
- package/lib/components/dynamic/components/comments-dialog/index.js +0 -208
- package/lib/components/dynamic/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 -217
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +0 -176
- 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 -27
- 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 -222
- 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 -36
- package/lib/components/dynamic/dynamic-item/components/schedule/index.js +0 -31
- 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/guide-img.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 -187
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +0 -426
- package/lib/components/dynamic/dynamic-item/components/summary-header/operate-record.js +0 -49
- package/lib/components/dynamic/dynamic-item/components/summary-header/request-api.js +0 -23
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +0 -30
- package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +0 -57
- 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 -67
- 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 -29
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +0 -310
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +0 -193
- package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +0 -22
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +0 -80
- package/lib/components/dynamic/dynamic-item/components/task-progress/request-api.js +0 -16
- package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +0 -158
- 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/come-on-write.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/nice-write.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/img/very-good-write.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +0 -115
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +0 -212
- 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 -49
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/constant.js +0 -61
- 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 -152
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +0 -254
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +0 -67
- package/lib/components/guide-tip/index.css +0 -68
- package/lib/components/guide-tip/index.js +0 -115
- package/lib/components/import-modal/helper.js +0 -170
- 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 -146
- package/lib/components/import-modal/import-task-modal/index.css +0 -18
- package/lib/components/import-modal/import-task-modal/index.js +0 -251
- package/lib/components/import-modal/import-task-modal/search-form.js +0 -142
- 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 -206
- 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 -89
- 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 -84
- 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 -269
- 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 -124
- package/lib/components/import-modal/tree/task-work-tree/index.js +0 -190
- 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 -65
- package/lib/components/import-modal/tree-node/kr-node/index.js +0 -112
- 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 -53
- package/lib/components/import-modal/tree-node/o-node/index.js +0 -142
- 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 -243
- package/lib/components/menus/export-modules/summary-menus/index.css +0 -9
- package/lib/components/menus/export-modules/summary-menus/index.js +0 -136
- package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +0 -76
- package/lib/components/menus/export-modules/summary-menus/menus.js +0 -251
- package/lib/components/menus/export-modules/summary-menus/request-api.js +0 -17
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/helper.js +0 -28
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.css +0 -14
- package/lib/components/menus/export-modules/summary-menus/subordinate-menus/index.js +0 -201
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +0 -250
- package/lib/components/nav-top/components/app-center/images/demo.png +0 -0
- package/lib/components/nav-top/components/app-center/images/new.svg +0 -30
- 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 -120
- 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 -51
- package/lib/components/picker/components/panels/week-panel/index.js +0 -63
- package/lib/components/picker/components/panels/week-panel/utils.js +0 -153
- 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/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 -79
- 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 -79
- 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 -67
- package/lib/components/rich-editor-at/components/index.js +0 -189
- 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/constants.js +0 -21
- package/lib/components/write-summary-modal/index.css +0 -80
- 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 -32
- package/lib/utils/planDataJson.js +0 -1
|
@@ -3,183 +3,26 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
9
|
-
|
|
10
|
-
var _getLocale = require("../../utils/getLocale");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var PickerClass = 'tita-ui__picker';
|
|
6
|
+
exports.YEAR_DECADE_COUNT = exports.WEEK_DAYS_COUNT = exports.PickerTriggerClass = exports.PickerPanelClass = exports.PickerHeadClass = exports.PickerDropdownClass = exports.PickerClass = exports.PickerCellClass = exports.PickerBodyClass = exports.MONTHDATAMAPEN = exports.MONTHDATAMAP = void 0;
|
|
7
|
+
var PickerClass = "tita-ui__picker";
|
|
15
8
|
exports.PickerClass = PickerClass;
|
|
16
|
-
var PickerHeadClass =
|
|
9
|
+
var PickerHeadClass = "tita-ui__picker-head";
|
|
17
10
|
exports.PickerHeadClass = PickerHeadClass;
|
|
18
|
-
var PickerBodyClass =
|
|
11
|
+
var PickerBodyClass = "tita-ui__picker-body";
|
|
19
12
|
exports.PickerBodyClass = PickerBodyClass;
|
|
20
|
-
var PickerPanelClass =
|
|
13
|
+
var PickerPanelClass = "tita-ui__picker-panel";
|
|
21
14
|
exports.PickerPanelClass = PickerPanelClass;
|
|
22
|
-
var PickerCellClass =
|
|
15
|
+
var PickerCellClass = "tita-ui__picker-cell";
|
|
23
16
|
exports.PickerCellClass = PickerCellClass;
|
|
24
|
-
var PickerTriggerClass =
|
|
17
|
+
var PickerTriggerClass = "tita-ui__picker-trigger";
|
|
25
18
|
exports.PickerTriggerClass = PickerTriggerClass;
|
|
26
|
-
var PickerDropdownClass =
|
|
19
|
+
var PickerDropdownClass = "tita-ui__picker-dropdown";
|
|
27
20
|
exports.PickerDropdownClass = PickerDropdownClass;
|
|
28
|
-
var
|
|
29
|
-
exports.PickerRangesClass = PickerRangesClass;
|
|
30
|
-
var PickerRangeTriggerClass = 'tita-ui__picker-ranges-trigger';
|
|
31
|
-
exports.PickerRangeTriggerClass = PickerRangeTriggerClass;
|
|
32
|
-
var MONTHDATAMAP = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
|
|
21
|
+
var MONTHDATAMAP = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"];
|
|
33
22
|
exports.MONTHDATAMAP = MONTHDATAMAP;
|
|
34
|
-
var MONTHDATAMAPEN = [
|
|
23
|
+
var MONTHDATAMAPEN = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
35
24
|
exports.MONTHDATAMAPEN = MONTHDATAMAPEN;
|
|
36
25
|
var WEEK_DAYS_COUNT = 7;
|
|
37
26
|
exports.WEEK_DAYS_COUNT = WEEK_DAYS_COUNT;
|
|
38
27
|
var YEAR_DECADE_COUNT = 10;
|
|
39
|
-
exports.YEAR_DECADE_COUNT = YEAR_DECADE_COUNT;
|
|
40
|
-
var SHORTCUTS;
|
|
41
|
-
exports.SHORTCUTS = SHORTCUTS;
|
|
42
|
-
|
|
43
|
-
(function (SHORTCUTS) {
|
|
44
|
-
SHORTCUTS["CURRENT_YEAR"] = "currentYear";
|
|
45
|
-
SHORTCUTS["CURRENT_MONTH"] = "currentMonth";
|
|
46
|
-
SHORTCUTS["CURRENT_WEEK"] = "currentWeek";
|
|
47
|
-
SHORTCUTS["PREVIOUS_WEEK"] = "prevWeek";
|
|
48
|
-
SHORTCUTS["NEXT_WEEK"] = "nextWeek";
|
|
49
|
-
})(SHORTCUTS || (exports.SHORTCUTS = SHORTCUTS = {}));
|
|
50
|
-
|
|
51
|
-
var getCurrentValues = function getCurrentValues(symbol) {
|
|
52
|
-
return [(0, _moment["default"])().startOf(symbol), (0, _moment["default"])().endOf(symbol)];
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
exports.getCurrentValues = getCurrentValues;
|
|
56
|
-
|
|
57
|
-
var getPreviousValues = function getPreviousValues(symbol) {
|
|
58
|
-
return [(0, _moment["default"])().subtract(1, symbol).startOf(symbol), (0, _moment["default"])().subtract(1, symbol).endOf(symbol)];
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
exports.getPreviousValues = getPreviousValues;
|
|
62
|
-
|
|
63
|
-
var getNextValues = function getNextValues(symbol) {
|
|
64
|
-
return [(0, _moment["default"])().add(1, symbol).startOf(symbol), (0, _moment["default"])().add(1, symbol).endOf(symbol)];
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
exports.getNextValues = getNextValues;
|
|
68
|
-
var RangeSettingTypes;
|
|
69
|
-
exports.RangeSettingTypes = RangeSettingTypes;
|
|
70
|
-
|
|
71
|
-
(function (RangeSettingTypes) {
|
|
72
|
-
RangeSettingTypes["START"] = "startDate";
|
|
73
|
-
RangeSettingTypes["END"] = "endDate";
|
|
74
|
-
})(RangeSettingTypes || (exports.RangeSettingTypes = RangeSettingTypes = {}));
|
|
75
|
-
|
|
76
|
-
var RangePickerShortcutsKeysMapping = function RangePickerShortcutsKeysMapping() {
|
|
77
|
-
return [{
|
|
78
|
-
key: SHORTCUTS.CURRENT_YEAR,
|
|
79
|
-
title: (0, _getLocale.getLocale)('Feed_Tab_Title_Thisyear')
|
|
80
|
-
}, {
|
|
81
|
-
key: SHORTCUTS.CURRENT_MONTH,
|
|
82
|
-
title: (0, _getLocale.getLocale)('Feed_Tab_Title_Thismonth')
|
|
83
|
-
}, {
|
|
84
|
-
key: SHORTCUTS.CURRENT_WEEK,
|
|
85
|
-
title: (0, _getLocale.getLocale)('Feed_Tab_Title_Thisweek')
|
|
86
|
-
}];
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
exports.RangePickerShortcutsKeysMapping = RangePickerShortcutsKeysMapping;
|
|
90
|
-
|
|
91
|
-
var RangeWeekPickerShortcutsKeysMapping = function RangeWeekPickerShortcutsKeysMapping() {
|
|
92
|
-
return [{
|
|
93
|
-
key: SHORTCUTS.PREVIOUS_WEEK,
|
|
94
|
-
title: (0, _getLocale.getLocale)('Rep_NewS_LastWeek')
|
|
95
|
-
}, {
|
|
96
|
-
key: SHORTCUTS.CURRENT_WEEK,
|
|
97
|
-
title: (0, _getLocale.getLocale)('Feed_Tab_Title_Thisweek')
|
|
98
|
-
}, {
|
|
99
|
-
key: SHORTCUTS.NEXT_WEEK,
|
|
100
|
-
title: (0, _getLocale.getLocale)('Mod_NextWeek')
|
|
101
|
-
}];
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
exports.RangeWeekPickerShortcutsKeysMapping = RangeWeekPickerShortcutsKeysMapping;
|
|
105
|
-
|
|
106
|
-
var getPickerDateBySettingType = function getPickerDateBySettingType(params) {
|
|
107
|
-
var _params$defaultValue = params.defaultValue,
|
|
108
|
-
defaultValue = _params$defaultValue === void 0 ? (0, _moment["default"])() : _params$defaultValue,
|
|
109
|
-
_params$format = params.format,
|
|
110
|
-
format = _params$format === void 0 ? 'YYYY/MM/DD' : _params$format,
|
|
111
|
-
settingType = params.settingType,
|
|
112
|
-
values = params.values;
|
|
113
|
-
|
|
114
|
-
if (values instanceof Array && settingType) {
|
|
115
|
-
var valuesLen = values.length;
|
|
116
|
-
var startDate = values[0] || (0, _moment["default"])().format(format);
|
|
117
|
-
var endDate = values[valuesLen - 1] || (0, _moment["default"])().format(format);
|
|
118
|
-
return settingType === RangeSettingTypes.START ? startDate : endDate;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
return defaultValue;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
exports.getPickerDateBySettingType = getPickerDateBySettingType;
|
|
125
|
-
|
|
126
|
-
var setPickerDateBySettingType = function setPickerDateBySettingType(params) {
|
|
127
|
-
var newDate = params.newDate,
|
|
128
|
-
settingType = params.settingType,
|
|
129
|
-
values = params.values;
|
|
130
|
-
|
|
131
|
-
if (values instanceof Array && settingType) {
|
|
132
|
-
var valuesClone = JSON.parse(JSON.stringify(values));
|
|
133
|
-
var isSettingStart = settingType === RangeSettingTypes.START;
|
|
134
|
-
var updateIndex = isSettingStart ? 0 : 1;
|
|
135
|
-
valuesClone.splice(updateIndex, 1, (0, _moment["default"])(newDate));
|
|
136
|
-
|
|
137
|
-
if (isSettingStart && (0, _moment["default"])(newDate, 'YYYY/MM/DD').isAfter((0, _moment["default"])(valuesClone[1]).format('YYYY/MM/DD'), 'date')) {
|
|
138
|
-
valuesClone[1] = (0, _moment["default"])(newDate);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if (!isSettingStart && (0, _moment["default"])(newDate, 'YYYY/MM/DD').isBefore((0, _moment["default"])(valuesClone[0]).format('YYYY/MM/DD'), 'date')) {
|
|
142
|
-
valuesClone[0] = (0, _moment["default"])(newDate);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
return valuesClone.slice(0, 2);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return [(0, _moment["default"])(newDate)];
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
exports.setPickerDateBySettingType = setPickerDateBySettingType;
|
|
152
|
-
|
|
153
|
-
var isCurrentDateInRanges = function isCurrentDateInRanges(params) {
|
|
154
|
-
var _params$format2 = params.format,
|
|
155
|
-
format = _params$format2 === void 0 ? 'YYYY/MM/DD' : _params$format2,
|
|
156
|
-
nowDate = params.nowDate,
|
|
157
|
-
values = params.values;
|
|
158
|
-
var date = typeof nowDate === 'string' ? nowDate : nowDate.format(format);
|
|
159
|
-
var data = {
|
|
160
|
-
inRanges: false,
|
|
161
|
-
rangeStart: false,
|
|
162
|
-
rangeEnd: false
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
if (values instanceof Array) {
|
|
166
|
-
var valuesLen = values.length;
|
|
167
|
-
var startDate = values[0] || '';
|
|
168
|
-
var endDate = values[valuesLen - 1] || '';
|
|
169
|
-
if (!startDate || !endDate || valuesLen < 2) return data;
|
|
170
|
-
|
|
171
|
-
if ((0, _moment["default"])(date).isBetween((0, _moment["default"])(startDate).format(format), (0, _moment["default"])(endDate).format(format), null, '[]')) {
|
|
172
|
-
return {
|
|
173
|
-
inRanges: true,
|
|
174
|
-
rangeStart: (0, _moment["default"])(date).isSame((0, _moment["default"])(startDate).format(format)),
|
|
175
|
-
rangeEnd: (0, _moment["default"])(date).isSame((0, _moment["default"])(endDate).format(format))
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
return data;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return data;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
exports.isCurrentDateInRanges = isCurrentDateInRanges;
|
|
28
|
+
exports.YEAR_DECADE_COUNT = YEAR_DECADE_COUNT;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.
|
|
1
|
+
.tita-rich-editor {
|
|
2
2
|
min-height: 300px;
|
|
3
3
|
cursor: text;
|
|
4
4
|
li-line-height: 38px;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.tita-rich-editor--disabled {
|
|
8
8
|
cursor: default;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
.
|
|
11
|
+
.tita-rich-editor .ProseMirror {
|
|
12
12
|
min-height: 100%;
|
|
13
13
|
outline: none;
|
|
14
14
|
font-size: 16px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.tita-rich-editor h1 {
|
|
18
18
|
font-size: 26px;
|
|
19
19
|
font-weight: 500;
|
|
20
20
|
color: #141c28;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
padding: 26px 0 10px;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
.tita-rich-editor h2 {
|
|
26
26
|
font-size: 22px;
|
|
27
27
|
font-weight: 500;
|
|
28
28
|
color: #141c28;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
padding: 22px 0 8px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.
|
|
33
|
+
.tita-rich-editor h3 {
|
|
34
34
|
font-size: 20px;
|
|
35
35
|
font-weight: 500;
|
|
36
36
|
color: #141c28;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
padding: 20px 0 8px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.
|
|
41
|
+
.tita-rich-editor p {
|
|
42
42
|
font-size: 16px;
|
|
43
43
|
font-weight: 400;
|
|
44
44
|
color: #141c28;
|
|
@@ -46,72 +46,72 @@
|
|
|
46
46
|
padding: 3px 0;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.
|
|
49
|
+
.tita-rich-editor a {
|
|
50
50
|
color: #2879ff;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.
|
|
53
|
+
.tita-rich-editor a:hover {
|
|
54
54
|
color: #5c8eff;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.
|
|
58
|
-
.
|
|
57
|
+
.tita-rich-editor ol,
|
|
58
|
+
.tita-rich-editor ul {
|
|
59
59
|
padding-left: 22px;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
.
|
|
62
|
+
.tita-rich-editor ol > li {
|
|
63
63
|
list-style: decimal outside !important;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.
|
|
66
|
+
.tita-rich-editor ol ol > li {
|
|
67
67
|
list-style: lower-latin outside !important;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
.
|
|
70
|
+
.tita-rich-editor ol ol ol > li {
|
|
71
71
|
list-style: lower-roman outside !important;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
.
|
|
74
|
+
.tita-rich-editor ol ol ol ol > li {
|
|
75
75
|
list-style: decimal outside !important;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
.
|
|
78
|
+
.tita-rich-editor ol ol ol ol ol > li {
|
|
79
79
|
list-style: lower-latin outside !important;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.
|
|
82
|
+
.tita-rich-editor ol ol ol ol ol ol > li {
|
|
83
83
|
list-style: lower-roman outside !important;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.
|
|
86
|
+
.tita-rich-editor ul > li {
|
|
87
87
|
list-style: disc outside !important;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
.tita-rich-editor ul ul > li {
|
|
91
91
|
list-style: circle outside !important;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.
|
|
94
|
+
.tita-rich-editor ul ul ul > li {
|
|
95
95
|
list-style: square outside !important;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
.
|
|
98
|
+
.tita-rich-editor ul ul ul ul > li {
|
|
99
99
|
list-style: disc outside !important;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.
|
|
102
|
+
.tita-rich-editor ul ul ul ul ul > li {
|
|
103
103
|
list-style: circle outside !important;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.
|
|
106
|
+
.tita-rich-editor ul ul ul ul ul ul > li {
|
|
107
107
|
list-style: square outside !important;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.
|
|
110
|
+
.tita-rich-editor li::marker {
|
|
111
111
|
color: #2879ff;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.
|
|
114
|
+
.tita-rich-editor-ul .tita-rich-editor-li::marker {
|
|
115
115
|
position: absolute;
|
|
116
116
|
width: 5px;
|
|
117
117
|
height: 5px;
|
|
@@ -121,11 +121,11 @@
|
|
|
121
121
|
left: 3px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.
|
|
124
|
+
.tita-rich-editor-li {
|
|
125
125
|
position: relative;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
.
|
|
128
|
+
.tita-rich-editor-li::before {
|
|
129
129
|
display: inline-block;
|
|
130
130
|
position: absolute;
|
|
131
131
|
left: 0;
|
|
@@ -134,25 +134,25 @@
|
|
|
134
134
|
line-height: 26px;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
.
|
|
137
|
+
.tita-rich-editor blockquote {
|
|
138
138
|
position: relative;
|
|
139
139
|
margin: 3px 0;
|
|
140
140
|
padding-left: 22px;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
.
|
|
143
|
+
.tita-rich-editor blockquote p {
|
|
144
144
|
font-size: 16px !important;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.
|
|
147
|
+
.tita-rich-editor blockquote p:first-child {
|
|
148
148
|
padding-top: 0;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
.
|
|
151
|
+
.tita-rich-editor blockquote p:last-child {
|
|
152
152
|
padding-bottom: 0;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.
|
|
155
|
+
.tita-rich-editor blockquote::before {
|
|
156
156
|
content: '';
|
|
157
157
|
position: absolute;
|
|
158
158
|
left: 0;
|
|
@@ -41,7 +41,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
44
|
-
var preCls = '
|
|
44
|
+
var preCls = 'tita-rich-editor';
|
|
45
45
|
var defaultPlugins = [new _plugins.HeadingPlugin(), new _plugins.StrongPlugin(), new _plugins.ColorPlugin(), new _plugins.UnderLinePlugin(), new _plugins.DeleteLinePlugin(), new _plugins.ListPlugin(), new _plugins.AlignmentPlugin(), new _plugins.BlockquotePlugin(), new _plugins.LinkPlugin(), new _placeholder["default"]()];
|
|
46
46
|
|
|
47
47
|
function RichEditor(_ref, ref) {
|
|
@@ -17,11 +17,9 @@ require("rc-select/assets/index.less");
|
|
|
17
17
|
|
|
18
18
|
var _getLocale = require("../../utils/getLocale");
|
|
19
19
|
|
|
20
|
-
var _openData = require("../../utils/open-data");
|
|
21
|
-
|
|
22
20
|
require("./index.css");
|
|
23
21
|
|
|
24
|
-
var _excluded = ["selected", "
|
|
22
|
+
var _excluded = ["selected", "data", "onChange", "style", "mode", "className", "placeholder", "name", "noBorder"];
|
|
25
23
|
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
25
|
|
|
@@ -54,7 +52,6 @@ var preCls = "titaui-select-tags";
|
|
|
54
52
|
var SelectTags = function SelectTags(_ref) {
|
|
55
53
|
var _ref$selected = _ref.selected,
|
|
56
54
|
selected = _ref$selected === void 0 ? [] : _ref$selected,
|
|
57
|
-
controlValue = _ref.controlValue,
|
|
58
55
|
_ref$data = _ref.data,
|
|
59
56
|
data = _ref$data === void 0 ? [] : _ref$data,
|
|
60
57
|
onChange = _ref.onChange,
|
|
@@ -69,8 +66,6 @@ var SelectTags = function SelectTags(_ref) {
|
|
|
69
66
|
placeholder = _ref$placeholder === void 0 ? "".concat((0, _getLocale.getLocale)("Mod_Pleaseselect")) : _ref$placeholder,
|
|
70
67
|
name = _ref.name,
|
|
71
68
|
noBorder = _ref.noBorder,
|
|
72
|
-
_ref$isParse = _ref.isParse,
|
|
73
|
-
isParse = _ref$isParse === void 0 ? false : _ref$isParse,
|
|
74
69
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
75
70
|
|
|
76
71
|
var _useState = (0, _react.useState)(selected),
|
|
@@ -83,11 +78,6 @@ var SelectTags = function SelectTags(_ref) {
|
|
|
83
78
|
setValue(value);
|
|
84
79
|
};
|
|
85
80
|
|
|
86
|
-
(0, _react.useEffect)(function () {
|
|
87
|
-
if (controlValue) {
|
|
88
|
-
setValue(selected);
|
|
89
|
-
}
|
|
90
|
-
}, [selected]);
|
|
91
81
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
92
82
|
className: preCls
|
|
93
83
|
}, /*#__PURE__*/_react["default"].createElement(_rcSelect["default"], _extends({
|
|
@@ -114,7 +104,7 @@ var SelectTags = function SelectTags(_ref) {
|
|
|
114
104
|
return /*#__PURE__*/_react["default"].createElement(_rcSelect.Option, {
|
|
115
105
|
key: key,
|
|
116
106
|
value: item.value
|
|
117
|
-
},
|
|
107
|
+
}, item.label);
|
|
118
108
|
})));
|
|
119
109
|
};
|
|
120
110
|
|
|
@@ -11,15 +11,15 @@ var _bsGlobal = require("../../utils/bs-global");
|
|
|
11
11
|
|
|
12
12
|
var _getLocale = require("../../utils/getLocale");
|
|
13
13
|
|
|
14
|
-
var preCls =
|
|
14
|
+
var preCls = "titaui-task-relation";
|
|
15
15
|
exports.preCls = preCls;
|
|
16
|
-
var isOpenOkrManage = (0, _bsGlobal.getAppHead)(
|
|
16
|
+
var isOpenOkrManage = (0, _bsGlobal.getAppHead)("113"); // 开通OKR
|
|
17
17
|
|
|
18
18
|
exports.isOpenOkrManage = isOpenOkrManage;
|
|
19
|
-
var isOpenWorkManage = (0, _bsGlobal.getAppHead)(
|
|
19
|
+
var isOpenWorkManage = (0, _bsGlobal.getAppHead)("112"); // 开通项目
|
|
20
20
|
|
|
21
21
|
exports.isOpenWorkManage = isOpenWorkManage;
|
|
22
|
-
var TaskAdvancedSetting = (0, _bsGlobal.getBSGlobal)(
|
|
22
|
+
var TaskAdvancedSetting = (0, _bsGlobal.getBSGlobal)("TaskAdvancedSetting");
|
|
23
23
|
var isOpenLabel = TaskAdvancedSetting.TaskPlanSetting.TaskLabel; // 开启分类
|
|
24
24
|
|
|
25
25
|
exports.isOpenLabel = isOpenLabel;
|
|
@@ -111,8 +111,8 @@ exports.okrStatus = okrStatus;
|
|
|
111
111
|
|
|
112
112
|
var workStatus = function workStatus() {
|
|
113
113
|
return {
|
|
114
|
-
1: (0, _getLocale.getLocale)(
|
|
115
|
-
2: (0, _getLocale.getLocale)(
|
|
114
|
+
1: (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
|
|
115
|
+
2: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
118
|
|
|
@@ -16,7 +16,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
16
16
|
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; }
|
|
17
17
|
|
|
18
18
|
var okrSearch = function okrSearch(params) {
|
|
19
|
-
return (0, _request.rpost)(
|
|
19
|
+
return (0, _request.rpost)("v1")("okr/search", _objectSpread(_objectSpread({}, params), {}, {
|
|
20
20
|
orderType: 1,
|
|
21
21
|
includeCreateFailApprovalOkr: false
|
|
22
22
|
})).then(function (res) {
|
|
@@ -32,9 +32,9 @@ var getCategory = function getCategory(params) {
|
|
|
32
32
|
_params$type = params.type,
|
|
33
33
|
type = _params$type === void 0 ? 0 : _params$type,
|
|
34
34
|
_params$keyWords = params.keyWords,
|
|
35
|
-
keyWords = _params$keyWords === void 0 ?
|
|
35
|
+
keyWords = _params$keyWords === void 0 ? "" : _params$keyWords;
|
|
36
36
|
var query = "pageSize=".concat(pageSize, "&pageNum=").concat(pageNum, "&type=").concat(type, "&keyWords=").concat(keyWords);
|
|
37
|
-
return (0, _request.rget)(
|
|
37
|
+
return (0, _request.rget)("v1")("lable/get?".concat(query)).then(function (res) {
|
|
38
38
|
return res.Data;
|
|
39
39
|
});
|
|
40
40
|
};
|
|
@@ -42,7 +42,7 @@ var getCategory = function getCategory(params) {
|
|
|
42
42
|
exports.getCategory = getCategory;
|
|
43
43
|
|
|
44
44
|
var getWorks = function getWorks(params) {
|
|
45
|
-
return (0, _request.rpost)(
|
|
45
|
+
return (0, _request.rpost)("v2")("Work/GetByConditions", _objectSpread(_objectSpread({}, params), {}, {
|
|
46
46
|
orderType: 1
|
|
47
47
|
})).then(function (res) {
|
|
48
48
|
return res.Data || {};
|
|
@@ -59,7 +59,7 @@ var updateLable = function updateLable(params) {
|
|
|
59
59
|
_params$mileStoneId = params.mileStoneId,
|
|
60
60
|
mileStoneId = _params$mileStoneId === void 0 ? 0 : _params$mileStoneId;
|
|
61
61
|
var url = "task/UpdateLable?task_id=".concat(task_id, "&lab_id=").concat(lab_id, "&lab_type=").concat(lab_type, "&mileStoneId=").concat(mileStoneId);
|
|
62
|
-
return (0, _request.rpost)(
|
|
62
|
+
return (0, _request.rpost)("v1")(url, _objectSpread({}, params)).then(function (res) {
|
|
63
63
|
return res;
|
|
64
64
|
});
|
|
65
65
|
}; // 关联其他
|
|
@@ -68,7 +68,7 @@ var updateLable = function updateLable(params) {
|
|
|
68
68
|
exports.updateLable = updateLable;
|
|
69
69
|
|
|
70
70
|
var relationWorks = function relationWorks(params) {
|
|
71
|
-
return (0, _request.rpost)(
|
|
71
|
+
return (0, _request.rpost)("v2")("task/relationWorkV2", _objectSpread({}, params)).then(function (res) {
|
|
72
72
|
return res;
|
|
73
73
|
});
|
|
74
74
|
};
|
|
@@ -76,7 +76,7 @@ var relationWorks = function relationWorks(params) {
|
|
|
76
76
|
exports.relationWorks = relationWorks;
|
|
77
77
|
|
|
78
78
|
var getUserById = function getUserById(userId) {
|
|
79
|
-
return (0, _request.rget)(
|
|
79
|
+
return (0, _request.rget)("v2")("user/GetById?touserid=".concat(userId)).then(function (res) {
|
|
80
80
|
return res.Data;
|
|
81
81
|
});
|
|
82
82
|
};
|
|
@@ -85,7 +85,7 @@ exports.getUserById = getUserById;
|
|
|
85
85
|
|
|
86
86
|
var workData = function workData(params, pageNum, pageSize) {
|
|
87
87
|
var _params$keyWords2 = params.keyWords,
|
|
88
|
-
keyWords = _params$keyWords2 === void 0 ?
|
|
88
|
+
keyWords = _params$keyWords2 === void 0 ? "" : _params$keyWords2,
|
|
89
89
|
_params$status = params.status,
|
|
90
90
|
status = _params$status === void 0 ? 0 : _params$status,
|
|
91
91
|
_params$relation = params.relation,
|
|
@@ -94,7 +94,7 @@ var workData = function workData(params, pageNum, pageSize) {
|
|
|
94
94
|
_params$isGetMileston = params.isGetMilestone,
|
|
95
95
|
isGetMilestone = _params$isGetMileston === void 0 ? false : _params$isGetMileston;
|
|
96
96
|
var url = "work/list?toUserId=".concat(userIds || (0, _helpers.getLoginUserInfo)().Id);
|
|
97
|
-
return (0, _request.rpost)(
|
|
97
|
+
return (0, _request.rpost)("v1")(url, {
|
|
98
98
|
keyWords: keyWords,
|
|
99
99
|
orderType: 1,
|
|
100
100
|
pageNum: pageNum,
|
|
@@ -66,7 +66,7 @@ function SearchForm(props) {
|
|
|
66
66
|
users = _useState4[0],
|
|
67
67
|
setUsers = _useState4[1];
|
|
68
68
|
|
|
69
|
-
var _useState5 = (0, _react.useState)(
|
|
69
|
+
var _useState5 = (0, _react.useState)(""),
|
|
70
70
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
71
71
|
keyWords = _useState6[0],
|
|
72
72
|
setKeyWords = _useState6[1];
|
|
@@ -84,8 +84,8 @@ function SearchForm(props) {
|
|
|
84
84
|
onChange({
|
|
85
85
|
status: okrStatus,
|
|
86
86
|
userIds: users.reduce(function (res, cur, index) {
|
|
87
|
-
return "".concat(res).concat(index == 0 ?
|
|
88
|
-
},
|
|
87
|
+
return "".concat(res).concat(index == 0 ? "" : ",").concat(cur.userId);
|
|
88
|
+
}, ""),
|
|
89
89
|
keyWords: keyWords,
|
|
90
90
|
relation: relation
|
|
91
91
|
});
|
|
@@ -112,7 +112,7 @@ function SearchForm(props) {
|
|
|
112
112
|
className: "rel-work-tree__search-item-keyword"
|
|
113
113
|
}, /*#__PURE__*/_react["default"].createElement(_searchInput["default"], {
|
|
114
114
|
onSearch: setKeyWords,
|
|
115
|
-
placeholder: (0, _getLocale.getLocale)(
|
|
115
|
+
placeholder: (0, _getLocale.getLocale)("Mod_Enterkeywords"),
|
|
116
116
|
style: {
|
|
117
117
|
height: 32,
|
|
118
118
|
width: 240
|
|
@@ -35,7 +35,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
37
|
|
|
38
|
-
var precls =
|
|
38
|
+
var precls = "rel-work-node";
|
|
39
39
|
|
|
40
40
|
function WorkNode(props) {
|
|
41
41
|
var data = props.data,
|
|
@@ -57,7 +57,7 @@ function WorkNode(props) {
|
|
|
57
57
|
var onCheckHandler = function onCheckHandler(checked) {
|
|
58
58
|
if (checked) {
|
|
59
59
|
addSelected({
|
|
60
|
-
type:
|
|
60
|
+
type: "work",
|
|
61
61
|
workId: data.workId,
|
|
62
62
|
krId: 0,
|
|
63
63
|
id: data.workId,
|
|
@@ -69,8 +69,8 @@ function WorkNode(props) {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
var statusMap = {
|
|
72
|
-
1: (0, _getLocale.getLocale)(
|
|
73
|
-
2: (0, _getLocale.getLocale)(
|
|
72
|
+
1: (0, _getLocale.getLocale)("Per_MyRe_text_Inprogress"),
|
|
73
|
+
2: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")
|
|
74
74
|
};
|
|
75
75
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
76
|
className: precls,
|
|
@@ -92,7 +92,7 @@ function WorkNode(props) {
|
|
|
92
92
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
93
|
className: "".concat(precls, "__name")
|
|
94
94
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
|
-
className: (0, _classnames["default"])(
|
|
95
|
+
className: (0, _classnames["default"])("tu-icon-project-s", "".concat(precls, "__name-icon"))
|
|
96
96
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
97
|
onClick: gotoWorkDetail
|
|
98
98
|
}, (0, _tools.htmlDecodeByHtmlRegExp)(data.workName))), /*#__PURE__*/_react["default"].createElement("span", {
|