@titaui/pc 1.11.4-1 → 1.11.4-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/rect-btn/index.js +7 -7
- package/lib/components/change-okr-modal/Item.js +15 -15
- package/lib/components/communication/index.js +30 -29
- package/lib/components/date-picker/BodyItem.js +3 -3
- package/lib/components/date-picker/CalendarHeader.js +3 -3
- package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/drawer/index.js +7 -6
- package/lib/components/dynamic/constant.js +13 -6
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +243 -0
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +6 -2
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +22 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +6 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +19 -7
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/{es/pages/group-management/page-view/loading → lib/components/dynamic/dynamic-item/dynamic-interview-share}/index.js +40 -11
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +11 -11
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +14 -14
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/index.js +34 -13
- package/lib/components/dynamic/dynamic-list/index.js +5 -13
- package/lib/components/e-priority/index.js +18 -12
- package/lib/components/eReport/eReportLists/reportList.js +3 -3
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/emotions-selector/selector-pop.js +3 -3
- package/lib/components/ereport-list/index.js +3 -3
- package/lib/components/file-list/components/single-file/index.js +11 -11
- package/lib/components/form/form-fields/date/index.js +15 -11
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +22 -2
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/icon-button-list/index.css +2 -57
- package/lib/components/icon-button-list/index.js +10 -7
- package/lib/components/img-viewer/index.css +10 -3
- package/lib/components/img-viewer/index.js +57 -18
- package/lib/components/mblog/components/MblogAction.js +3 -3
- package/lib/components/mblog/index.js +31 -30
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +12 -12
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
- package/lib/components/okr-detail/detail-header/actions.js +62 -66
- package/lib/components/okr-detail/detail-header/index.css +2 -2
- package/lib/components/okr-detail/detail-header/index.js +205 -194
- package/lib/components/okr-detail/index.js +21 -19
- package/lib/components/okr-flow/child-node/index.css +67 -21
- package/lib/components/okr-flow/child-node/work-node.js +61 -24
- package/lib/components/okr-flow/empty/index.css +8 -1
- package/lib/components/okr-flow/export-modal/index.js +42 -18
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.css +3 -1
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +30 -24
- package/lib/components/okr-flow/images/loading-light.gif +0 -0
- package/lib/components/okr-flow/okr-map/index.js +43 -22
- package/lib/components/okr-flow/request-apis.js +15 -8
- package/lib/components/okr-flow/root-node/index.css +2 -2
- package/lib/components/okr-flow/root-node/index.js +26 -25
- package/lib/components/okr-flow/utils/index.js +45 -29
- package/lib/components/okr-flow/utils/tree-handler.js +29 -18
- package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
- package/lib/components/okrcase-library/index.css +6 -4
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +36 -30
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +9 -3
- package/lib/components/period-selector/index.js +14 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
- package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
- package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
- package/lib/components/picker/components/picker-trigger/index.css +15 -0
- package/lib/components/picker/components/picker-trigger/index.js +8 -8
- package/lib/components/popup/index.js +4 -4
- package/lib/components/radio/index.css +9 -9
- package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
- package/lib/components/rich-editor/models/schema.js +6 -6
- package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
- package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
- package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
- package/lib/components/rich-editor/plugins/core/index.js +4 -4
- package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
- package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
- package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
- package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
- package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
- package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
- package/lib/components/rich-editor/react/uiProvider.js +3 -3
- package/lib/components/rich-editor/ui/Popup/index.js +3 -3
- package/lib/components/scroll-container/index.js +423 -0
- package/lib/components/scroll-container/style.css +35 -0
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/select/Option.js +3 -3
- package/lib/components/superset-charts/components/chart/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -13
- package/{es/pages/group-management/page-view/group-empty.js → lib/components/survey-model/contact.js} +54 -27
- package/lib/components/survey-model/index.css +141 -0
- package/lib/components/survey-model/index.js +265 -0
- package/lib/components/survey-model/instance.js +86 -0
- package/lib/components/survey-model/request-api.js +80 -0
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/{es/components/okr-detail/e-list → lib/components/task-tree}/precls.js +1 -1
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/{es/components/okr-detail/components/okr-tree/tree-node/default-node.js → lib/components/task-tree/task-item-node/e-empty.js} +13 -6
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node → lib/components/task-tree/task-item-node}/e-project.js +63 -51
- package/{es/components/e-status-dropdown/index.js → lib/components/task-tree/task-item-node/e-status-dropdown.js} +13 -13
- package/{es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js → lib/components/task-tree/task-item-node/e-task.js} +138 -124
- package/{es/components/okr-detail/components/okr-tree/tree-node → lib/components/task-tree/task-item-node}/get-process-color.js +3 -3
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/{es/components/okr-detail/components/okr-tree/index.js → lib/components/task-tree/task-tree.js} +17 -16
- package/lib/components/time-picker/index.css +6 -0
- package/lib/components/time-picker/time-picker.js +27 -27
- package/lib/components/tita-chart/errorBoundary/index.js +3 -3
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components/wechat-btn/index.css +14 -0
- package/lib/components/wechat-btn/index.js +338 -0
- package/lib/components-v1/animate/AnimateChild.js +3 -3
- package/lib/components-v1/avatar/index.js +3 -3
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
- package/lib/components-v1/progress/CircleProgress.js +3 -3
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/components-v1/select/Option.js +3 -3
- package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
- package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
- package/lib/components-v1/userSelector/components/UserItem.js +3 -3
- package/lib/index.js +99 -91
- package/lib/pages/okr-map/export-modules/okr-map/header/index.css +7 -2
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +73 -34
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +65 -42
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +26 -14
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +58 -13
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +28 -20
- package/lib/pages/okr-map/number-select/index.css +12 -9
- package/lib/pages/okr-map/number-select/index.js +3 -3
- package/lib/utils/auth.js +65 -8
- package/lib/utils/bs-global.js +18 -6
- package/lib/utils/open-data.js +63 -43
- package/package.json +6 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
- package/es/components/cascader/time.js +0 -31
- package/es/components/common-share/request-apis.js +0 -56
- package/es/components/confidence/heart.js +0 -66
- package/es/components/create-okr-modal/fields/index.js +0 -17
- package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
- package/es/components/date-picker/BodyItem.js +0 -121
- package/es/components/date-picker/CalendarBody.js +0 -157
- package/es/components/date-picker/CalendarHeader.js +0 -187
- package/es/components/date-picker/index.js +0 -157
- package/es/components/date-range-picker/index.js +0 -210
- package/es/components/dialog/index.js +0 -119
- package/es/components/dialog-confirm/index.js +0 -154
- package/es/components/drop-selector/icon-item.js +0 -40
- package/es/components/drop-selector/index.js +0 -179
- package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/es/components/dynamic/dynamic-liking/mock.js +0 -83
- package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/es/components/e-priority/index.js +0 -88
- package/es/components/grid-layout/commen-components/index.js +0 -73
- package/es/components/grid-layout/image/could.js +0 -8
- package/es/components/grid-layout/image/lv.js +0 -8
- package/es/components/grid-layout/image/tita-mask.js +0 -8
- package/es/components/help-card/request-api.js +0 -35
- package/es/components/icon-button-list/index.js +0 -65
- package/es/components/menus/context.js +0 -18
- package/es/components/menus/precls.js +0 -8
- package/es/components/okr-detail/auth.js +0 -197
- package/es/components/okr-detail/components/ao-nice/index.js +0 -245
- package/es/components/okr-detail/components/block-line/index.js +0 -20
- package/es/components/okr-detail/components/header/index.js +0 -211
- package/es/components/okr-detail/components/icon-text/index.js +0 -116
- package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
- package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
- package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
- package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
- package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
- package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
- package/es/components/okr-detail/components/padding-layout.js +0 -22
- package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
- package/es/components/okr-detail/context.js +0 -30
- package/es/components/okr-detail/e-list/index.js +0 -243
- package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
- package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
- package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
- package/es/components/okr-detail/e-list/search-form/index.js +0 -143
- package/es/components/okr-detail/error-page/index.js +0 -33
- package/es/components/okr-detail/index.js +0 -428
- package/es/components/okr-detail/loading/index.js +0 -28
- package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
- package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
- package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
- package/es/components/okr-detail/okr-list/empty/index.js +0 -48
- package/es/components/okr-detail/okr-list/index.js +0 -524
- package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
- package/es/components/okr-detail/store.js +0 -1
- package/es/components/okr-flow/child-node/fields/creator.js +0 -175
- package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
- package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
- package/es/components/okr-flow/child-node/helper.js +0 -35
- package/es/components/okr-flow/child-node/index.js +0 -110
- package/es/components/okr-flow/child-node/kr-node.js +0 -75
- package/es/components/okr-flow/child-node/work-node.js +0 -242
- package/es/components/okr-flow/context.js +0 -14
- package/es/components/okr-flow/empty/index.js +0 -29
- package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
- package/es/components/okr-flow/index.js +0 -24
- package/es/components/okr-flow/mini-map/index.js +0 -112
- package/es/components/okr-flow/mini-map/map.js +0 -145
- package/es/components/okr-flow/mini-map/mini-node.js +0 -57
- package/es/components/okr-flow/mini-map/utils.js +0 -79
- package/es/components/okr-flow/okr-map/index.js +0 -192
- package/es/components/okr-flow/open-data/index.js +0 -115
- package/es/components/okr-flow/precls.js +0 -8
- package/es/components/okr-flow/request-apis.js +0 -118
- package/es/components/okr-flow/root-node/index.js +0 -229
- package/es/components/okr-flow/utils/config.js +0 -18
- package/es/components/okr-flow/utils/helper.js +0 -36
- package/es/components/okr-flow/utils/index.js +0 -66
- package/es/components/okr-flow/utils/tree-handler.js +0 -323
- package/es/components/okr-progress-modal/helper.js +0 -156
- package/es/components/okr-progress-modal/request-apis.js +0 -34
- package/es/components/okr-share/request-apis.js +0 -56
- package/es/components/okrcase-library/server/network.js +0 -407
- package/es/components/pagination/locale/en_US.js +0 -22
- package/es/components/pagination/locale/zh_CN.js +0 -22
- package/es/components/point-demo/drop-down-box/index.js +0 -159
- package/es/components/point-demo/index.js +0 -533
- package/es/components/point-demo/input/index.js +0 -176
- package/es/components/point-demo/point-demo.js +0 -75
- package/es/components/point-demo/popup/index.js +0 -113
- package/es/components/point-demo/popup/placement.js +0 -44
- package/es/components/range-picker-pop/index.js +0 -273
- package/es/components/scrollbar/simplebar/helpers.js +0 -59
- package/es/components/scrollbar/simplebar/index.js +0 -91
- package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
- package/es/components/scrollbar/simplebar/simplebar.js +0 -852
- package/es/components/scrollbar/simplebar-react.js +0 -163
- package/es/components/search-dropdown/index.js +0 -40
- package/es/components/search-input/index.js +0 -126
- package/es/components/select/Option.js +0 -94
- package/es/components/select/index.js +0 -330
- package/es/components/selector-input/debounce.js +0 -36
- package/es/components/selector-input/index.js +0 -109
- package/es/components/slider-input/index.js +0 -119
- package/es/components/switch/index.js +0 -39
- package/es/components/table/index.js +0 -275
- package/es/components/tabs/index.js +0 -63
- package/es/components/task-relation-modal/tree-node/index.js +0 -58
- package/es/components/tita-chart/charts/img/could.js +0 -8
- package/es/components/tooltip/error-tip.js +0 -24
- package/es/components/tooltip/index.js +0 -21
- package/es/components/tree/index.js +0 -79
- package/es/components/tree/precls.js +0 -8
- package/es/components/upvote/request-apis.js +0 -45
- package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
- package/es/components/user-selector/action-btns/btn-ok.js +0 -21
- package/es/components/user-selector/action-btns/index.js +0 -27
- package/es/components/user-selector/context.js +0 -18
- package/es/components/user-selector/empty/group.js +0 -55
- package/es/components/user-selector/empty/index.js +0 -28
- package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
- package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
- package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
- package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
- package/es/components/user-selector/index.js +0 -25
- package/es/components/user-selector/layout/index.js +0 -25
- package/es/components/user-selector/loading/index.js +0 -18
- package/es/components/user-selector/request-apis.js +0 -180
- package/es/components/user-selector/searched-panel/index.js +0 -139
- package/es/components/user-selector/searched-panel/result-part.js +0 -43
- package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
- package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
- package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
- package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
- package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
- package/es/components/user-selector/utils.js +0 -139
- package/es/components/viewer/ImageListRender.js +0 -143
- package/es/components/viewer/index.js +0 -168
- package/es/components/word-cloud/index.js +0 -109
- package/es/components/word-cloud/request-apis.js +0 -26
- package/es/components-v1/animate/AnimateChild.js +0 -76
- package/es/components-v1/animate/animate.js +0 -148
- package/es/components-v1/animate/index.js +0 -13
- package/es/components-v1/dom/index.js +0 -30
- package/es/components-v1/placement/index.js +0 -13
- package/es/components-v1/placement/placement.js +0 -111
- package/es/components-v1/placement/placementInner.js +0 -139
- package/es/components-v1/pop/Pop.js +0 -246
- package/es/components-v1/pop/PopInner.js +0 -163
- package/es/components-v1/pop/index.js +0 -13
- package/es/components-v1/progress/CircleProgress.js +0 -152
- package/es/components-v1/progress/LineProgress.js +0 -83
- package/es/components-v1/progress/index.js +0 -80
- package/es/components-v1/select/Option.js +0 -94
- package/es/components-v1/select/index.js +0 -330
- package/es/components-v1/utils/animate/animate.js +0 -103
- package/es/components-v1/utils/animate/event.js +0 -79
- package/es/components-v1/utils/dom/index.js +0 -30
- package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
- package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
- package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
- package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
- package/es/components-v1/utils/placement/placement.js +0 -76
- package/es/index.js +0 -777
- package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
- package/es/pages/appointment-demo/index.js +0 -649
- package/es/pages/appointment-demo/input/index.js +0 -176
- package/es/pages/appointment-demo/popup/index.js +0 -113
- package/es/pages/appointment-demo/popup/placement.js +0 -44
- package/es/pages/group-management/components/checkbox/index.js +0 -28
- package/es/pages/group-management/components/input-form/index.js +0 -174
- package/es/pages/group-management/components/radio/index.js +0 -21
- package/es/pages/group-management/components/table/index.js +0 -174
- package/es/pages/group-management/groupInterface.js +0 -293
- package/es/pages/group-management/index.js +0 -13
- package/es/pages/group-management/page-view/empty.js +0 -111
- package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
- package/es/pages/group-management/page-view/index.js +0 -412
- package/es/pages/group-management/table/index.js +0 -104
- package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
- package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
- package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
- package/es/pages/group-management/tree/group-form/index.js +0 -207
- package/es/pages/group-management/tree/index.js +0 -168
- package/es/pages/group-management/tree/operation-panel.js +0 -41
- package/es/pages/group-management/tree/trigger-render.js +0 -99
- package/es/pages/like-ranking/mock.js +0 -366
- package/es/pages/okr-map/export-modules/index.js +0 -1
- package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
- package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
- package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
- package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
- package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
- package/es/pages/okr-map/hooks/useStorage.js +0 -96
- package/es/pages/okr-map/index.js +0 -18
- package/es/pages/okr-map/level2-search/depart.js +0 -53
- package/es/pages/okr-map/level2-search/group.js +0 -69
- package/es/pages/okr-map/level2-search/index.js +0 -51
- package/es/pages/okr-map/level2-search/level2-input.js +0 -46
- package/es/pages/okr-map/level2-search/user.js +0 -54
- package/es/pages/okr-map/no-okr/index.js +0 -24
- package/es/pages/okr-map/number-select/index.js +0 -81
- package/es/pages/okr-map/open-data/index.js +0 -115
- package/es/pages/okr-map/precls.js +0 -8
- package/es/pages/okr-map/request-apis.js +0 -76
- package/es/pages/okr-map/share-dialog/index.js +0 -122
- package/es/pages/okr-map/unsupport-ie/index.js +0 -83
- package/es/pages/okr-map/utils.js +0 -51
- package/es/utils/auth.js +0 -294
- package/es/utils/bs-global.js +0 -114
- package/es/utils/local-storage.js +0 -42
- package/es/utils/mblog.js +0 -33
- package/es/utils/mock-bsglobal.js +0 -1837
- package/es/utils/open-data.js +0 -341
- package/es/utils/request-v1.js +0 -115
- package/es/utils/request.js +0 -183
- package/es/utils/tools.js +0 -286
- package/yarn-error.log +0 -21252
package/.prettierrc.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// 1.一行代码的最大字符数,默认是80(printWidth: <int>)
|
|
3
|
-
printWidth: 80,
|
|
4
|
-
// 2.tab宽度为2空格(tabWidth: <int>)
|
|
5
|
-
tabWidth: 2,
|
|
6
|
-
// 3.是否使用tab来缩进,我们使用空格(useTabs: <bool>)
|
|
7
|
-
useTabs: false,
|
|
8
|
-
// 4.结尾是否添加分号,false的情况下只会在一些导致ASI错误的其工况下在开头加分号,我选择无分号结尾的风格(semi: <bool>)
|
|
9
|
-
semi: false,
|
|
10
|
-
// 5.使用单引号(singleQuote: <bool>)
|
|
11
|
-
singleQuote: true,
|
|
12
|
-
// 6.object对象中key值是否加引号(quoteProps: "<as-needed|consistent|preserve>")as-needed只有在需求要的情况下加引号,consistent是有一个需要引号就统一加,preserve是保留用户输入的引号
|
|
13
|
-
quoteProps: 'as-needed',
|
|
14
|
-
// 7.在jsx文件中的引号需要单独设置(jsxSingleQuote: <bool>)
|
|
15
|
-
jsxSingleQuote: false,
|
|
16
|
-
// 8.尾部逗号设置,es5是尾部逗号兼容es5,none就是没有尾部逗号,all是指所有可能的情况,需要node8和es2017以上的环境。(trailingComma: "<es5|none|all>")
|
|
17
|
-
trailingComma: 'all',
|
|
18
|
-
// 9.object对象里面的key和value值和括号间的空格(bracketSpacing: <bool>)
|
|
19
|
-
bracketSpacing: true,
|
|
20
|
-
// 10.jsx标签多行属性写法时,尖括号是否另起一行(jsxBracketSameLine: <bool>)
|
|
21
|
-
jsxBracketSameLine: false,
|
|
22
|
-
// 11.箭头函数单个参数的情况是否省略括号,默认always是总是带括号(arrowParens: "<always|avoid>")
|
|
23
|
-
arrowParens: 'always',
|
|
24
|
-
// 12.range是format执行的范围,可以选执行一个文件的一部分,默认的设置是整个文件(rangeStart: <int> rangeEnd: <int>)
|
|
25
|
-
rangeStart: 0,
|
|
26
|
-
rangeEnd: Infinity,
|
|
27
|
-
// 18. vue script和style标签中是否缩进,开启可能会破坏编辑器的代码折叠
|
|
28
|
-
vueIndentScriptAndStyle: false,
|
|
29
|
-
// 19. endOfLine: "<lf|crlf|cr|auto>" 行尾换行符,默认是lf,
|
|
30
|
-
endOfLine: 'lf',
|
|
31
|
-
// 20.embeddedLanguageFormatting: "off",默认是auto,控制被引号包裹的代码是否进行格式化
|
|
32
|
-
embeddedLanguageFormatting: 'off',
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// 14. requirePragma: <bool>,格式化有特定开头编译指示的文件 比如下面两种
|
|
36
|
-
/**
|
|
37
|
-
* @prettier
|
|
38
|
-
*/
|
|
39
|
-
// or
|
|
40
|
-
/**
|
|
41
|
-
* @format
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
// 15.insertPragma: <bool> 自当插入pragma到已经完成的format的文件开头
|
|
45
|
-
|
|
46
|
-
// 16. proseWrap: "<always|never|preserve>" 文章换行,默认情况下会对你的markdown文件换行进行format会控制在printwidth以内
|
|
47
|
-
|
|
48
|
-
// 13. 指定parser,因为pretter会自动选择,所以一般不用指定(parser: "<string>" parser: require("./my-parser"))
|
|
49
|
-
// "babel" (via @babel/parser) Named "babylon" until v1.16.0
|
|
50
|
-
// "babel-flow" (same as "babel" but enables Flow parsing explicitly to avoid ambiguity) First available in v1.16.0
|
|
51
|
-
// "babel-ts" (similar to "typescript" but uses Babel and its TypeScript plugin) First available in v2.0.0
|
|
52
|
-
// "flow" (via flow-parser)
|
|
53
|
-
// "typescript" (via @typescript-eslint/typescript-estree) First available in v1.4.0
|
|
54
|
-
// "espree" (via espree) First available in v2.2.0
|
|
55
|
-
// "meriyah" (via meriyah) First available in v2.2.0
|
|
56
|
-
// "css" (via postcss-scss and postcss-less, autodetects which to use) First available in v1.7.1
|
|
57
|
-
// "scss" (same parsers as "css", prefers postcss-scss) First available in v1.7.1
|
|
58
|
-
// "less" (same parsers as "css", prefers postcss-less) First available in v1.7.1
|
|
59
|
-
// "json" (via @babel/parser parseExpression) First available in v1.5.0
|
|
60
|
-
// "json5" (same parser as "json", but outputs as json5) First available in v1.13.0
|
|
61
|
-
// "json-stringify" (same parser as "json", but outputs like JSON.stringify) First available in v1.13.0
|
|
62
|
-
// "graphql" (via graphql/language) First available in v1.5.0
|
|
63
|
-
// "markdown" (via remark-parse) First available in v1.8.0
|
|
64
|
-
// "mdx" (via remark-parse and @mdx-js/mdx) First available in v1.15.0
|
|
65
|
-
// "html" (via angular-html-parser) First available in 1.15.0
|
|
66
|
-
// "vue" (same parser as "html", but also formats vue-specific syntax) First available in 1.10.0
|
|
67
|
-
// "angular" (same parser as "html", but also formats angular-specific syntax via angular-estree-parser) First available in 1.15.0
|
|
68
|
-
// "lwc" (same parser as "html", but also formats LWC-specific syntax for unquoted template attributes) First available in 1.17.0
|
|
69
|
-
// "yaml" (via yaml and yaml-unist-parser) First available in 1.14.0
|
|
70
|
-
|
|
71
|
-
// 17. htmlWhitespaceSensitivity: "<css|strict|ignore>" html中的空格敏感性
|
|
72
|
-
|
|
73
|
-
// 针对不同文件或目录设置不同配置的方法,json格式例子
|
|
74
|
-
// {
|
|
75
|
-
// "semi": false,
|
|
76
|
-
// "overrides": [
|
|
77
|
-
// {
|
|
78
|
-
// "files": "*.test.js",
|
|
79
|
-
// "options": {
|
|
80
|
-
// "semi": true
|
|
81
|
-
// }
|
|
82
|
-
// },
|
|
83
|
-
// {
|
|
84
|
-
// "files": ["*.html", "legacy/**/*.js"],
|
|
85
|
-
// "options": {
|
|
86
|
-
// "tabWidth": 4
|
|
87
|
-
// }
|
|
88
|
-
// }
|
|
89
|
-
// ]
|
|
90
|
-
// }
|
package/.vscode/settings.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _index = _interopRequireDefault(require("./index"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
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); }
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
-
|
|
22
|
-
function TimeCascader(_ref) {
|
|
23
|
-
var restProps = _extends({}, _ref);
|
|
24
|
-
|
|
25
|
-
return /*#__PURE__*/_react["default"].createElement(_index["default"], _extends({
|
|
26
|
-
popupClassName: " titaui-cascader-time-popup"
|
|
27
|
-
}, restProps));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var _default = TimeCascader;
|
|
31
|
-
exports["default"] = _default;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.uploadBase64 = exports.getImageBase64ByUrl = exports.getBase64DownloadUrl = exports.addShare = void 0;
|
|
7
|
-
|
|
8
|
-
var _axios = _interopRequireDefault(require("axios"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
|
|
13
|
-
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
14
|
-
|
|
15
|
-
var requestDomain = function requestDomain() {
|
|
16
|
-
if (!window.location.hostname.match(/dev/)) return "";
|
|
17
|
-
return "http://www.tita.gift";
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
var getImageBase64ByUrl = function getImageBase64ByUrl(toUserId) {
|
|
21
|
-
return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/okr/share/getBase64Str"), {
|
|
22
|
-
toUserId: toUserId
|
|
23
|
-
}).then(function (getBase64Str) {
|
|
24
|
-
return getBase64Str.data;
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
exports.getImageBase64ByUrl = getImageBase64ByUrl;
|
|
29
|
-
|
|
30
|
-
var getBase64DownloadUrl = function getBase64DownloadUrl(base64) {
|
|
31
|
-
return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/okr/share/imageDownLoadDfs"), {
|
|
32
|
-
SharePicLink: base64
|
|
33
|
-
}).then(function (dfs) {
|
|
34
|
-
return dfs.data;
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
exports.getBase64DownloadUrl = getBase64DownloadUrl;
|
|
39
|
-
|
|
40
|
-
var uploadBase64 = function uploadBase64(base64) {
|
|
41
|
-
return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/okr/share/imagedfs"), {
|
|
42
|
-
SharePicLink: base64
|
|
43
|
-
}).then(function (dfs) {
|
|
44
|
-
return dfs.data;
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
exports.uploadBase64 = uploadBase64;
|
|
49
|
-
|
|
50
|
-
var addShare = function addShare(data) {
|
|
51
|
-
return _axios["default"].post("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/user/feed/AddShare"), data).then(function (dfs) {
|
|
52
|
-
return dfs.data;
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
exports.addShare = addShare;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
require("./index.scss");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
function Heart(_ref) {
|
|
15
|
-
var con = _ref.con,
|
|
16
|
-
i = _ref.i,
|
|
17
|
-
confidence = _ref.confidence;
|
|
18
|
-
var fill1 = "#F69E17";
|
|
19
|
-
var fill2 = "#E3E6E8";
|
|
20
|
-
var fill3 = "#F8F8F8";
|
|
21
|
-
var fill = "";
|
|
22
|
-
var item = [];
|
|
23
|
-
var confidenceIndex = 0;
|
|
24
|
-
|
|
25
|
-
if (confidence == 0) {
|
|
26
|
-
confidenceIndex = 5;
|
|
27
|
-
} else {
|
|
28
|
-
confidenceIndex = confidence;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
for (var index = 0; index < 10; index++) {
|
|
32
|
-
if (con == "true") {
|
|
33
|
-
if (index < confidenceIndex) {
|
|
34
|
-
fill = fill1;
|
|
35
|
-
} else fill = fill2;
|
|
36
|
-
} else if (index < i && i != confidenceIndex) fill = fill2;else if (index < i && i == confidenceIndex) fill = fill1;else fill = fill3;
|
|
37
|
-
|
|
38
|
-
if (index % 2 == 0) {
|
|
39
|
-
item.push( /*#__PURE__*/_react["default"].createElement("svg", {
|
|
40
|
-
width: "8px",
|
|
41
|
-
height: "16px"
|
|
42
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
43
|
-
d: "M8.49990233,2.27708832 C8.02421795,1.56919071 7.03146287,0.426082896 5.42425753,0.0894335405 C5.14104532,0.030070613 4.84684102,0 4.54975959,0 C3.37788514,0 2.2348557,0.466200631 1.4136952,1.27902699 C0.732554704,1.95331626 -0.0649248561,3.19618775 0.00419987544,5.2881826 C0.138686946,9.36568695 5.56014628,13.8041802 8.33052092,14.9609436 C8.3813501,14.9859906 8.43874502,15 8.49901706,15 L8.50093515,15 C8.50145155,15 8.50204173,15 8.50241059,15",
|
|
44
|
-
id: "left",
|
|
45
|
-
fill: fill
|
|
46
|
-
})));
|
|
47
|
-
} else {
|
|
48
|
-
item.push( /*#__PURE__*/_react["default"].createElement("svg", {
|
|
49
|
-
width: "8px",
|
|
50
|
-
height: "16px",
|
|
51
|
-
style: {
|
|
52
|
-
transform: "scaleX(1.1)"
|
|
53
|
-
}
|
|
54
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
55
|
-
d: "M0,15 L0.00191808214,15 C0.00243448894,15 0.00302466802,15 0.00339352993,15 C0.0672066492,15 0.127183604,14.984434 0.17948823,14.9571936 C2.95274,13.7944868 8.36246952,9.36115867 8.49680904,5.28825336 C8.56571246,3.19625851 7.7682329,1.95338701 7.08701863,1.27909774 C6.26585813,0.466200631 5.12282869,0 3.95110178,0 C3.65402036,0 3.35974229,0.0300706128 3.07660384,0.0894335405 C1.46939851,0.426082896 0.476643426,1.56919071 0.000885268706,2.27708832",
|
|
56
|
-
id: "right",
|
|
57
|
-
fill: fill
|
|
58
|
-
})));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, item);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
var _default = Heart;
|
|
66
|
-
exports["default"] = _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.OkrFieldVisibility = exports.OkrFieldType = void 0;
|
|
7
|
-
|
|
8
|
-
var _okrVisibilityDetail = _interopRequireDefault(require("./okr-visibility-detail"));
|
|
9
|
-
|
|
10
|
-
var _okrTypeDetail = _interopRequireDefault(require("./okr-type-detail"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
14
|
-
var OkrFieldVisibility = _okrVisibilityDetail["default"];
|
|
15
|
-
exports.OkrFieldVisibility = OkrFieldVisibility;
|
|
16
|
-
var OkrFieldType = _okrTypeDetail["default"];
|
|
17
|
-
exports.OkrFieldType = OkrFieldType;
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var getRandomNum = function getRandomNum(baseNum) {
|
|
9
|
-
return Math.floor(Math.random() * baseNum);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
var getKrNumberAndMeasurableScore = function getKrNumberAndMeasurableScore(krNum, krMeasurableNums) {
|
|
13
|
-
if (krNum === 0) {
|
|
14
|
-
return 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
if (krNum === 1) {
|
|
18
|
-
if (krMeasurableNums === 1) {
|
|
19
|
-
return 25;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return 20;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if (krNum === 2) {
|
|
26
|
-
if (krMeasurableNums === 1) {
|
|
27
|
-
return 40;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (krMeasurableNums === 2) {
|
|
31
|
-
return 50;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return 35;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (krNum === 3) {
|
|
38
|
-
if (krMeasurableNums === 1) {
|
|
39
|
-
return 50;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if (krMeasurableNums === 2) {
|
|
43
|
-
return 60;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (krMeasurableNums === 3) {
|
|
47
|
-
return 60;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return 45;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
if (krNum === 4) {
|
|
54
|
-
if (krMeasurableNums === 1) {
|
|
55
|
-
return 50;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if (krMeasurableNums === 2) {
|
|
59
|
-
return 55;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (krMeasurableNums === 3) {
|
|
63
|
-
return 60;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (krMeasurableNums === 4) {
|
|
67
|
-
return 70;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return 45;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (krNum === 5) {
|
|
74
|
-
if (krMeasurableNums === 1) {
|
|
75
|
-
return 50;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (krMeasurableNums === 2) {
|
|
79
|
-
return 55;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (krMeasurableNums === 3) {
|
|
83
|
-
return 60;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (krMeasurableNums === 4) {
|
|
87
|
-
return 65;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (krMeasurableNums === 5) {
|
|
91
|
-
return 70;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
return 45;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (krNum > 5) {
|
|
98
|
-
if (krMeasurableNums === 0) {
|
|
99
|
-
return 40;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (krMeasurableNums === 1) {
|
|
103
|
-
return 45;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (krMeasurableNums === 2) {
|
|
107
|
-
return 50;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (krMeasurableNums === 3) {
|
|
111
|
-
return 55;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return 60;
|
|
115
|
-
}
|
|
116
|
-
}; // 参考 https://doc.weixin.qq.com/txdoc/excel?scode=AOEAFQeYAA0Nbxe0lHABkAGgaGACY&docid=e2_AJcATAaKACYmPDc9BjaSnWjBmFCGo&type=1&tab=BB08J2
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
var _default = function _default(oNameLength, okrHasWtWords, krNum, krMeasurableNums, krAvarageLength) {
|
|
120
|
-
var totalScore = 0;
|
|
121
|
-
|
|
122
|
-
if (okrHasWtWords) {
|
|
123
|
-
totalScore += 5;
|
|
124
|
-
} // 计算目标名称长度
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (oNameLength < 5) {
|
|
128
|
-
totalScore += 2;
|
|
129
|
-
} else if (oNameLength < 9) {
|
|
130
|
-
totalScore += 15;
|
|
131
|
-
} else if (oNameLength < 31) {
|
|
132
|
-
totalScore += 20;
|
|
133
|
-
} else {
|
|
134
|
-
totalScore += 15;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
totalScore += getKrNumberAndMeasurableScore(krNum, krMeasurableNums);
|
|
138
|
-
|
|
139
|
-
if (krAvarageLength < 5) {
|
|
140
|
-
return Number((totalScore * (getRandomNum(5) + 3) / 100).toFixed(1));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
if (krAvarageLength < 9) {
|
|
144
|
-
return Number((totalScore * (getRandomNum(15) + 70) / 100).toFixed(1));
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (krAvarageLength < 31) {
|
|
148
|
-
return Number((totalScore * (getRandomNum(15) + 90) / 100).toFixed(1));
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
return Number((totalScore * (getRandomNum(10) + 80) / 100).toFixed(1));
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
exports["default"] = _default;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
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); }
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
|
|
26
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
27
|
-
|
|
28
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
-
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
-
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
37
|
-
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var BodyItem = /*#__PURE__*/function (_Component) {
|
|
45
|
-
_inherits(BodyItem, _Component);
|
|
46
|
-
|
|
47
|
-
var _super = _createSuper(BodyItem);
|
|
48
|
-
|
|
49
|
-
function BodyItem() {
|
|
50
|
-
var _temp, _this;
|
|
51
|
-
|
|
52
|
-
_classCallCheck(this, BodyItem);
|
|
53
|
-
|
|
54
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
55
|
-
args[_key] = arguments[_key];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
|
|
59
|
-
var _this$props = _this.props,
|
|
60
|
-
isAllowSelect = _this$props.isAllowSelect,
|
|
61
|
-
date = _this$props.date,
|
|
62
|
-
selected = _this$props.selected,
|
|
63
|
-
highlight = _this$props.highlight;
|
|
64
|
-
|
|
65
|
-
if (isAllowSelect && !isAllowSelect(date)) {
|
|
66
|
-
_this.disabled = true;
|
|
67
|
-
return {
|
|
68
|
-
outer: "tita-calendar-item-disabled",
|
|
69
|
-
inner: ""
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var className = {
|
|
74
|
-
outer: "tita-calendar-item-outter"
|
|
75
|
-
};
|
|
76
|
-
className.inner = _this.isInCurrentMonth() ? "tita-calendar-item-current" : "tita-calendar-item-other";
|
|
77
|
-
(0, _moment["default"])().isSame(date, "day") && (className.inner += " tita-calendar-item-today");
|
|
78
|
-
selected && (className.inner += " tita-calendar-item-selected");
|
|
79
|
-
highlight && (className.outer += " tita-calendar-item-hightlight");
|
|
80
|
-
return className;
|
|
81
|
-
}, _this.isInCurrentMonth = function () {
|
|
82
|
-
var month = _this.props.date.format("YYYYM");
|
|
83
|
-
|
|
84
|
-
return month === _this.props.currentMonth;
|
|
85
|
-
}, _this.handleClick = function (date) {
|
|
86
|
-
if (_this.disabled) return;
|
|
87
|
-
|
|
88
|
-
_this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
|
|
89
|
-
}, _temp));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
_createClass(BodyItem, [{
|
|
93
|
-
key: "render",
|
|
94
|
-
value: function render() {
|
|
95
|
-
var _this2 = this;
|
|
96
|
-
|
|
97
|
-
var date = this.props.date;
|
|
98
|
-
var className = this.getClass();
|
|
99
|
-
var triggerMethod = this.props.triggerMethod;
|
|
100
|
-
|
|
101
|
-
var obj = _defineProperty({}, triggerMethod, function () {
|
|
102
|
-
return _this2.handleClick(date);
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
return /*#__PURE__*/_react["default"].createElement("td", {
|
|
106
|
-
className: className.outer
|
|
107
|
-
}, /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
108
|
-
title: date.format("YYYY-M-D")
|
|
109
|
-
}, obj, {
|
|
110
|
-
className: "tita-calendar-item-inner ".concat(className.inner)
|
|
111
|
-
}), date.date()));
|
|
112
|
-
}
|
|
113
|
-
}]);
|
|
114
|
-
|
|
115
|
-
return BodyItem;
|
|
116
|
-
}(_react.Component);
|
|
117
|
-
|
|
118
|
-
exports["default"] = BodyItem;
|
|
119
|
-
BodyItem.defaultProps = {
|
|
120
|
-
triggerMethod: "onClick"
|
|
121
|
-
};
|