@titaui/pc 1.6.12 → 1.6.16
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/index.js +1 -1
- package/lib/components/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -1
- package/lib/components/button/rect-btn/index.css +21 -0
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/change-okr/styledComponents.js +1 -1
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/constant.js +1 -1
- package/lib/components/create-okr/createSuccessCmp.js +6 -2
- package/lib/components/create-okr/fields/index.js +1 -1
- package/lib/components/create-okr/index.js +16 -1
- package/lib/components/create-okr/request-api.js +1 -1
- package/lib/components/create-okr/style.js +1 -1
- package/lib/components/create-okr/utils/helper.js +1 -1
- package/lib/components/delete-confirm-pop/style.js +1 -1
- package/lib/components/dialog/index.css +1 -0
- package/lib/components/dropdown-layer/index.js +1 -1
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +3 -2
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +2 -3
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +1 -2
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic-list/index.js +7 -1
- package/lib/components/dynamic/dynamic-topping/index.css +1 -1
- package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
- package/lib/components/dynamic/dynamic.js +7 -4
- package/lib/components/dynamic/export-module/index.js +1 -1
- package/lib/components/dynamic/index.js +1 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/request-api.js +1 -1
- package/lib/components/dynamic/util.js +2 -2
- package/lib/components/eReport/eReportLists/style.js +1 -1
- package/lib/components/eReport/eReportShare/style.js +1 -1
- package/lib/components/eReport/eReportShare/toast/style.js +1 -1
- package/lib/components/edit-kr-wight/style/index.js +1 -1
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/file-list/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/form/index.js +1 -1
- package/lib/components/grid-page/commen-components/index.js +4 -4
- package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
- package/lib/components/grid-page/util/network.js +1 -1
- package/lib/components/help-card/index.css +17 -17
- package/lib/components/help-card/index.js +35 -31
- package/lib/components/help-card/request-api.js +2 -2
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- package/lib/components/mblog/common/index.js +3 -3
- package/lib/components/mblog/style.js +1 -1
- package/lib/components/menus/components/drag-resize/index.css +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -3
- package/lib/components/menus/components/flip-menu-card/index.js +42 -30
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/KH-help.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/appraisal-menu/mypingjia.svg +10 -0
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/cases.svg +9 -0
- package/lib/components/menus/components/menu-tree/images/okr-menu/{rw-zx.svg → panel.svg} +0 -0
- package/lib/components/menus/components/menu-tree/index.js +5 -4
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +49 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +5 -2
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +67 -0
- package/lib/components/menus/components/menu-tree/tree-node/group-name-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/index.css +126 -13
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/menus/components/menu-tree/tree-node/loading-node.js +27 -0
- package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +2 -1
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +25 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +9 -4
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +12 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +58 -19
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +109 -4
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -1
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +12 -4
- package/lib/components/menus/index.js +1 -1
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.css +1 -0
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/empty/index.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/index.css +29 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +116 -111
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +133 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +26 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +67 -60
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +71 -0
- package/lib/components/nav-top/components/user-message/components/reply/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +118 -63
- package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +75 -0
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +5 -4
- package/lib/components/nav-top/components/user-message/components/todos/index.css +26 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +118 -59
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +70 -0
- package/lib/components/nav-top/components/user-message/constant.js +2 -19
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +41 -4
- package/lib/components/nav-top/components/user-message/index.js +89 -100
- package/lib/components/nav-top/components/user-message/msg/index.css +5 -30
- package/lib/components/nav-top/components/user-message/msg/index.js +28 -22
- package/lib/components/nav-top/components/user-message/utils.js +31 -0
- package/lib/components/nav-top/components/user-own-menu/index.css +2 -1
- package/lib/components/nav-top/components/user-own-menu/index.js +5 -7
- package/lib/components/nav-top/components/user-own-menu/utils.js +63 -0
- package/lib/components/nav-top/constant.js +2 -10
- package/lib/components/nav-top/index.css +55 -0
- package/lib/components/nav-top/index.js +14 -13
- package/lib/components/nav-top/request.apis.js +50 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/base-info/util.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
- package/lib/components/okr-detail/context.js +1 -1
- package/lib/components/okr-detail/detail-header/actions.js +2 -2
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
- package/lib/components/okr-detail/detail-header/enums.js +1 -1
- package/lib/components/okr-detail/e-list/constant.js +1 -1
- package/lib/components/okr-detail/e-list/util.js +1 -1
- package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
- package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
- package/lib/components/okr-detail/okr-list/index.js +2 -1
- package/lib/components/okr-detail/request-apis.js +1 -1
- package/lib/components/okr-detail/schedule/util.js +1 -1
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +189 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +54 -0
- package/lib/components/okr-flow/index.js +1 -1
- package/lib/components/okr-flow/mini-map/utils.js +1 -1
- package/lib/components/okr-flow/open-data/index.js +1 -1
- package/lib/components/okr-flow/request-apis.js +1 -1
- package/lib/components/okr-flow/utils/config.js +1 -1
- package/lib/components/okr-flow/utils/index.js +1 -1
- package/lib/components/okr-flow/utils/tree-handler.js +1 -1
- package/lib/components/okr-progress/request-apis.js +1 -1
- package/lib/components/okr-progress/util.js +1 -1
- package/lib/components/okr-progress-detail/utils.js +1 -1
- package/lib/components/okr-progress-modal/helper.js +1 -1
- package/lib/components/okr-progress-modal/style.js +1 -1
- package/lib/components/okr-progress-modal/textarea/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
- package/lib/components/okr-review/ReviewPop/style.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
- package/lib/components/okr-review/style.js +1 -1
- package/lib/components/okr-share/common-painter/utils.js +1 -1
- package/lib/components/okr-share/pink-card/images.js +1 -1
- package/lib/components/okr-share/request-apis.js +1 -1
- package/lib/components/okrcase-library/index.css +1 -1
- package/lib/components/okrcase-library/index.js +6 -1
- package/lib/components/okrcase-library/new-ui.css +52 -0
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
- package/lib/components/okrcase-library/server/network.js +1 -1
- package/lib/components/open-data-painter/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/period-selector/common.js +2 -2
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/components/selector/style.js +1 -1
- package/lib/components/period-selector/helper/index.js +1 -1
- package/lib/components/period-selector/mockData.js +1 -1
- package/lib/components/period-selector/style.js +1 -1
- package/lib/components/photo-card/components/card/index.css +83 -100
- package/lib/components/photo-card/components/card/index.js +119 -63
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +15 -14
- package/lib/components/photo-card/index.js +59 -15
- package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
- package/lib/components/pop-down-notification/style/index.js +1 -1
- package/lib/components/praise-record/style.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
- package/lib/components/radio/radio.js +1 -1
- package/lib/components/tabs/index.js +1 -1
- package/lib/components/task-relation/helper.js +1 -1
- package/lib/components/task-relation/request-api.js +1 -1
- package/lib/components/tita-chart/index.js +4 -4
- package/lib/components/tita-chart/util/index.js +12 -12
- package/lib/components/tita-chart/util/utils.js +1 -1
- package/lib/components/tooltip/index.js +1 -1
- package/lib/components/tree/index.js +1 -3
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upload/util.js +1 -1
- package/lib/components/upvote/request-apis.js +1 -1
- package/lib/components/user-selector/index.js +1 -1
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/components/user-selector/utils.js +1 -1
- package/lib/components/version-change-modal/request-api.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/avatar/styles.js +1 -1
- package/lib/components-v1/buttonv2/style/style.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/input/style/index.js +1 -1
- package/lib/components-v1/popConfirm/style.js +1 -1
- package/lib/components-v1/tabs/style.js +1 -1
- package/lib/components-v1/textarea/style.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/style.js +1 -1
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +18 -4
- package/lib/pages/aha2021/index.css +25 -1
- package/lib/pages/aha2021/index.js +10 -4
- package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
- package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
- package/lib/pages/group-management/components/openData/index.js +1 -1
- package/lib/pages/group-management/groupInterface.js +10 -10
- package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/pages/new-okr-list/header/comments.js +104 -0
- package/lib/pages/new-okr-list/header/create-okr.js +61 -0
- package/lib/pages/new-okr-list/header/depart-title.js +59 -0
- package/lib/pages/new-okr-list/header/filter.js +95 -0
- package/lib/pages/new-okr-list/header/index.css +118 -0
- package/lib/pages/new-okr-list/header/index.js +133 -0
- package/lib/pages/new-okr-list/header/relation-title.js +28 -0
- package/lib/pages/new-okr-list/header/user-title.js +26 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +208 -0
- package/lib/pages/new-okr-list/interface.js +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/pages/new-okr-list/keyword-search/index.js +106 -0
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +47 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +158 -0
- package/lib/pages/new-okr-list/theme.css +7 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/open-data/index.js +1 -1
- package/lib/pages/okr-map/request-apis.js +1 -1
- package/lib/pages/okr-map/utils.js +2 -1
- package/lib/utils/auth.js +1 -1
- package/lib/utils/bs-global.js +1 -1
- package/lib/utils/format-time.js +1 -1
- package/lib/utils/helpers.js +1 -1
- package/lib/utils/local-storage.js +40 -0
- package/lib/utils/mblog.js +1 -1
- package/lib/utils/open-data.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/request-v1.js +2 -2
- package/lib/utils/request.js +1 -1
- package/lib/utils/roundWeight.js +2 -2
- package/lib/utils/tools.js +4 -3
- package/package.json +3 -2
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _reactRouter = require("react-router");
|
|
13
|
+
|
|
14
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
15
|
+
|
|
16
|
+
var _tools = require("../../utils/tools");
|
|
17
|
+
|
|
18
|
+
var _header = _interopRequireDefault(require("./header"));
|
|
19
|
+
|
|
20
|
+
var _list = _interopRequireDefault(require("./list"));
|
|
21
|
+
|
|
22
|
+
var _precls = require("./precls");
|
|
23
|
+
|
|
24
|
+
var _context = require("./context");
|
|
25
|
+
|
|
26
|
+
var _pagination = _interopRequireDefault(require("../../components/pagination"));
|
|
27
|
+
|
|
28
|
+
var _requestApi = require("./request-api");
|
|
29
|
+
|
|
30
|
+
var _localStorage = require("../../utils/local-storage");
|
|
31
|
+
|
|
32
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
33
|
+
|
|
34
|
+
require("./index.css");
|
|
35
|
+
|
|
36
|
+
require("./theme.css");
|
|
37
|
+
|
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
45
|
+
|
|
46
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
51
|
+
|
|
52
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
53
|
+
|
|
54
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
55
|
+
|
|
56
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
57
|
+
|
|
58
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
59
|
+
|
|
60
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61
|
+
|
|
62
|
+
var NewOkrList = function NewOkrList(props) {
|
|
63
|
+
var OkrListCmp = props.OkrListCmp,
|
|
64
|
+
OkrCommunicationPush = props.OkrCommunicationPush;
|
|
65
|
+
var useLocalStorage = new _localStorage.localStorage();
|
|
66
|
+
var formFieldValues = useLocalStorage.getItem('okr-filter-values') || {
|
|
67
|
+
targetType: "",
|
|
68
|
+
targetCategory: "",
|
|
69
|
+
targetSort: ""
|
|
70
|
+
};
|
|
71
|
+
var showWorkExecution = (0, _bsGlobal.getBSGlobal)('OkrAdvancedSetting').KRSetting.ShowWorkExecution;
|
|
72
|
+
|
|
73
|
+
var _useState = (0, _react.useState)(false),
|
|
74
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
75
|
+
loading = _useState2[0],
|
|
76
|
+
setLoading = _useState2[1];
|
|
77
|
+
|
|
78
|
+
var _useState3 = (0, _react.useState)([]),
|
|
79
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
80
|
+
okrs = _useState4[0],
|
|
81
|
+
setOkrs = _useState4[1];
|
|
82
|
+
|
|
83
|
+
var _useState5 = (0, _react.useState)(0),
|
|
84
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
85
|
+
total = _useState6[0],
|
|
86
|
+
setTotal = _useState6[1];
|
|
87
|
+
|
|
88
|
+
var _useState7 = (0, _react.useState)(1),
|
|
89
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
90
|
+
pageNum = _useState8[0],
|
|
91
|
+
setPageNum = _useState8[1];
|
|
92
|
+
|
|
93
|
+
var _useState9 = (0, _react.useState)(10),
|
|
94
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
95
|
+
pageSize = _useState10[0],
|
|
96
|
+
setPageSize = _useState10[1];
|
|
97
|
+
|
|
98
|
+
var _useState11 = (0, _react.useState)({
|
|
99
|
+
okrType: formFieldValues.okrType,
|
|
100
|
+
okrClassify: formFieldValues.okrClassify,
|
|
101
|
+
orderType: formFieldValues.orderType,
|
|
102
|
+
annualNum: new Date().getFullYear() + "",
|
|
103
|
+
cycleType: "2",
|
|
104
|
+
yqmNum: "".concat((0, _moment["default"])().quarter()),
|
|
105
|
+
onlyThisDept: false,
|
|
106
|
+
keyWords: ''
|
|
107
|
+
}),
|
|
108
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
109
|
+
query = _useState12[0],
|
|
110
|
+
setQuery = _useState12[1];
|
|
111
|
+
|
|
112
|
+
var routerData = (0, _tools.getQueryString)();
|
|
113
|
+
var departmentName = routerData.departmentName,
|
|
114
|
+
departmentId = routerData.departmentId,
|
|
115
|
+
_routerData$relation = routerData.relation,
|
|
116
|
+
relation = _routerData$relation === void 0 ? 0 : _routerData$relation,
|
|
117
|
+
_routerData$toUserId = routerData.toUserId,
|
|
118
|
+
toUserId = _routerData$toUserId === void 0 ? "" : _routerData$toUserId;
|
|
119
|
+
(0, _react.useEffect)(function () {
|
|
120
|
+
getOkrs();
|
|
121
|
+
}, [pageNum, pageSize, query]);
|
|
122
|
+
|
|
123
|
+
var getOkrs = function getOkrs() {
|
|
124
|
+
var params = _objectSpread({
|
|
125
|
+
pageNum: pageNum,
|
|
126
|
+
pageSize: pageSize,
|
|
127
|
+
relation: relation,
|
|
128
|
+
toUserId: (0, _bsGlobal.getUserInfo)().Id,
|
|
129
|
+
userIds: toUserId,
|
|
130
|
+
searchKr: 0,
|
|
131
|
+
status: 0,
|
|
132
|
+
haveSubDept: false,
|
|
133
|
+
departmentIds: departmentId
|
|
134
|
+
}, query);
|
|
135
|
+
|
|
136
|
+
if (showWorkExecution) {
|
|
137
|
+
params.showOkrE = 1;
|
|
138
|
+
params.Searchpage = 2;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
var request;
|
|
142
|
+
|
|
143
|
+
if (!relation) {
|
|
144
|
+
request = (0, _requestApi.okrSearch)(params);
|
|
145
|
+
} // else if (relation == 23) {
|
|
146
|
+
// // 公司全部目标
|
|
147
|
+
// let pars = { ...params, departmentIds: departmentId ? departmentId + '' : '' };
|
|
148
|
+
// if (query.keywords && !departmentId) {
|
|
149
|
+
// Object.assign(pars, {
|
|
150
|
+
// searchKr: 0,
|
|
151
|
+
// });
|
|
152
|
+
// }
|
|
153
|
+
// request = okrSearch(params);
|
|
154
|
+
// }
|
|
155
|
+
else {
|
|
156
|
+
request = (0, _requestApi.okrList)(params);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
setLoading(true); // recordVisitUser();
|
|
160
|
+
|
|
161
|
+
request.then(function (res) {
|
|
162
|
+
setOkrs(res.works || []);
|
|
163
|
+
setTotal(res.total);
|
|
164
|
+
setLoading(false);
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
var handlePageChange = function handlePageChange(page, pageSize) {
|
|
169
|
+
setPageNum(page);
|
|
170
|
+
setPageSize(pageSize);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var handleOnSearch = function handleOnSearch(params) {
|
|
174
|
+
console.log(params);
|
|
175
|
+
console.log(_objectSpread(_objectSpread({}, query), params));
|
|
176
|
+
setQuery(_objectSpread(_objectSpread(_objectSpread({}, query), params), {}, {
|
|
177
|
+
pageNum: 1
|
|
178
|
+
}));
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
return /*#__PURE__*/_react["default"].createElement(_context.Context.Provider, {
|
|
182
|
+
value: _objectSpread({
|
|
183
|
+
OkrCommunicationPush: OkrCommunicationPush,
|
|
184
|
+
relation: relation,
|
|
185
|
+
departmentName: departmentName,
|
|
186
|
+
departmentId: departmentId,
|
|
187
|
+
toUserId: toUserId
|
|
188
|
+
}, query)
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: _precls.precls
|
|
191
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], {
|
|
192
|
+
onSearch: handleOnSearch
|
|
193
|
+
}), /*#__PURE__*/_react["default"].createElement(_list["default"], {
|
|
194
|
+
OkrListCmp: OkrListCmp,
|
|
195
|
+
okrs: okrs,
|
|
196
|
+
setOkrs: setOkrs,
|
|
197
|
+
isNewIndex: true
|
|
198
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
|
+
className: "".concat(_precls.precls, "__pagination")
|
|
200
|
+
}, /*#__PURE__*/_react["default"].createElement(_pagination["default"], {
|
|
201
|
+
total: total,
|
|
202
|
+
onChange: handlePageChange
|
|
203
|
+
}))));
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
var _default = (0, _reactRouter.withRouter)(NewOkrList);
|
|
207
|
+
|
|
208
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.titaui-keyword-search {
|
|
2
|
+
background: #fff;
|
|
3
|
+
height: 36px;
|
|
4
|
+
padding: 8px;
|
|
5
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
6
|
+
display: flex;
|
|
7
|
+
border-radius: 18px;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
align-items: center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.titaui-keyword-search--active {
|
|
13
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1), 0px 0px 4px 0px rgba(40, 121, 255, 0.3);
|
|
14
|
+
border: 1px solid #2879FF;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.titaui-keyword-search__del-icon {
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
color: #89919f;
|
|
20
|
+
margin-right: 4px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-keyword-search__del-icon:hover {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
color: #f05e5e;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-keyword-search__search-icon {
|
|
29
|
+
font-size: 20px !important;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-keyword-search__search-icon:hover {
|
|
34
|
+
color: #2879FF;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-keyword-search__input {
|
|
38
|
+
width: 0;
|
|
39
|
+
animation: shrink 0.1s ease;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.titaui-keyword-search__input input {
|
|
43
|
+
width: 100%;
|
|
44
|
+
border: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.titaui-keyword-search--active .titaui-keyword-search__input {
|
|
48
|
+
width: 120px;
|
|
49
|
+
margin-right: 12px;
|
|
50
|
+
animation: grow 0.1s ease;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes grow {
|
|
54
|
+
0% {
|
|
55
|
+
width: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
100% {
|
|
59
|
+
width: 120px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes shrink {
|
|
64
|
+
0% {
|
|
65
|
+
width: 120px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
100% {
|
|
69
|
+
width: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _classnames2 = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
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); }
|
|
19
|
+
|
|
20
|
+
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; }
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
+
|
|
26
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
|
|
28
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
29
|
+
|
|
30
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
31
|
+
|
|
32
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
33
|
+
|
|
34
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
+
|
|
36
|
+
var precls = 'titaui-keyword-search';
|
|
37
|
+
|
|
38
|
+
var KeywordSearch = function KeywordSearch(props) {
|
|
39
|
+
;
|
|
40
|
+
var onSearch = props.onSearch;
|
|
41
|
+
var inputRef = (0, _react.useRef)();
|
|
42
|
+
|
|
43
|
+
var _useState = (0, _react.useState)(false),
|
|
44
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
45
|
+
active = _useState2[0],
|
|
46
|
+
setActive = _useState2[1];
|
|
47
|
+
|
|
48
|
+
var _useState3 = (0, _react.useState)(''),
|
|
49
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
50
|
+
keyword = _useState4[0],
|
|
51
|
+
setKeyword = _useState4[1];
|
|
52
|
+
|
|
53
|
+
var handleSearchClick = function handleSearchClick() {
|
|
54
|
+
if (!active) {
|
|
55
|
+
setActive(true);
|
|
56
|
+
inputRef.current.focus();
|
|
57
|
+
} else {
|
|
58
|
+
handleSearch();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var handleSearch = function handleSearch() {
|
|
63
|
+
onSearch && onSearch({
|
|
64
|
+
keyWords: keyword
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var handleOnBlur = function handleOnBlur(e) {
|
|
69
|
+
if (!keyword.length) setActive(false);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
var changeValue = function changeValue(e) {
|
|
73
|
+
setKeyword(e.target.value);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
var handleOnKeyDown = function handleOnKeyDown(e) {
|
|
77
|
+
if (e.keyCode == 13) {
|
|
78
|
+
handleSearch();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var clearKeyword = function clearKeyword(e) {
|
|
83
|
+
setKeyword('');
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
+
className: (0, _classnames2["default"])(precls, _defineProperty({}, "".concat(precls, "--active"), active))
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
89
|
+
className: "".concat(precls, "__input")
|
|
90
|
+
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
91
|
+
value: keyword,
|
|
92
|
+
onKeyUp: handleOnKeyDown,
|
|
93
|
+
onChange: changeValue,
|
|
94
|
+
ref: inputRef,
|
|
95
|
+
onBlur: handleOnBlur
|
|
96
|
+
})), keyword.length > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
|
+
className: (0, _classnames2["default"])('tu-icon-cross', "".concat(precls, "__del-icon")),
|
|
98
|
+
onClick: clearKeyword
|
|
99
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
|
+
className: (0, _classnames2["default"])('tu-icon-search', "".concat(precls, "__search-icon")),
|
|
101
|
+
onClick: handleSearchClick
|
|
102
|
+
}));
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
var _default = KeywordSearch;
|
|
106
|
+
exports["default"] = _default;
|
|
File without changes
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
13
|
+
|
|
14
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
15
|
+
|
|
16
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
|
+
|
|
18
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
19
|
+
|
|
20
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
21
|
+
|
|
22
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
23
|
+
|
|
24
|
+
var List = function List(props) {
|
|
25
|
+
var okrs = props.okrs,
|
|
26
|
+
setOkrs = props.setOkrs;
|
|
27
|
+
var OkrListCmp = props.OkrListCmp;
|
|
28
|
+
|
|
29
|
+
var openCreateModal = function openCreateModal() {};
|
|
30
|
+
|
|
31
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(OkrListCmp, {
|
|
32
|
+
okrData: okrs,
|
|
33
|
+
addOkr: function addOkr(okr) {
|
|
34
|
+
setOkrs([].concat(_toConsumableArray(okrs), [okr]));
|
|
35
|
+
},
|
|
36
|
+
onpenCreateModalWithData: function onpenCreateModalWithData(data) {
|
|
37
|
+
debugger; // createModalRef.current && createModalRef.current.setData(data);
|
|
38
|
+
// setVisible(true);
|
|
39
|
+
} // eventBridge={eventBridge}
|
|
40
|
+
// replaceOkr={replaceOkr}
|
|
41
|
+
,
|
|
42
|
+
openCreateModal: openCreateModal
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var _default = List;
|
|
47
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.okrSearch = exports.okrList = exports.okrCrowd = exports.getUserInfoById = void 0;
|
|
7
|
+
|
|
8
|
+
var _request = require("../../utils/request");
|
|
9
|
+
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
13
|
+
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
|
+
|
|
18
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
19
|
+
|
|
20
|
+
var okrSearch = /*#__PURE__*/function () {
|
|
21
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(param) {
|
|
22
|
+
var res;
|
|
23
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
24
|
+
while (1) {
|
|
25
|
+
switch (_context.prev = _context.next) {
|
|
26
|
+
case 0:
|
|
27
|
+
_context.next = 2;
|
|
28
|
+
return (0, _request.rpost)('v1')('okr/search', _objectSpread({
|
|
29
|
+
orderType: 2,
|
|
30
|
+
// 默认创建时间正序
|
|
31
|
+
relation: 0,
|
|
32
|
+
haveSubDept: false
|
|
33
|
+
}, param));
|
|
34
|
+
|
|
35
|
+
case 2:
|
|
36
|
+
res = _context.sent;
|
|
37
|
+
|
|
38
|
+
if (!(res.Code == 1)) {
|
|
39
|
+
_context.next = 5;
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return _context.abrupt("return", res.Data);
|
|
44
|
+
|
|
45
|
+
case 5:
|
|
46
|
+
case "end":
|
|
47
|
+
return _context.stop();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, _callee);
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
return function okrSearch(_x) {
|
|
54
|
+
return _ref.apply(this, arguments);
|
|
55
|
+
};
|
|
56
|
+
}();
|
|
57
|
+
|
|
58
|
+
exports.okrSearch = okrSearch;
|
|
59
|
+
|
|
60
|
+
var okrCrowd = /*#__PURE__*/function () {
|
|
61
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(param) {
|
|
62
|
+
var res;
|
|
63
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
64
|
+
while (1) {
|
|
65
|
+
switch (_context2.prev = _context2.next) {
|
|
66
|
+
case 0:
|
|
67
|
+
_context2.next = 2;
|
|
68
|
+
return (0, _request.rpost)('v1')("okr/crowd", _objectSpread({
|
|
69
|
+
orderType: 2
|
|
70
|
+
}, param));
|
|
71
|
+
|
|
72
|
+
case 2:
|
|
73
|
+
res = _context2.sent;
|
|
74
|
+
|
|
75
|
+
if (!(res.Code == 1)) {
|
|
76
|
+
_context2.next = 5;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return _context2.abrupt("return", res.Data);
|
|
81
|
+
|
|
82
|
+
case 5:
|
|
83
|
+
case "end":
|
|
84
|
+
return _context2.stop();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, _callee2);
|
|
88
|
+
}));
|
|
89
|
+
|
|
90
|
+
return function okrCrowd(_x2) {
|
|
91
|
+
return _ref2.apply(this, arguments);
|
|
92
|
+
};
|
|
93
|
+
}();
|
|
94
|
+
|
|
95
|
+
exports.okrCrowd = okrCrowd;
|
|
96
|
+
|
|
97
|
+
var okrList = /*#__PURE__*/function () {
|
|
98
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(param) {
|
|
99
|
+
var res;
|
|
100
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
101
|
+
while (1) {
|
|
102
|
+
switch (_context3.prev = _context3.next) {
|
|
103
|
+
case 0:
|
|
104
|
+
_context3.next = 2;
|
|
105
|
+
return (0, _request.rpost)('v1')("okr/list?toUserId=".concat(param.toUserId), _objectSpread({
|
|
106
|
+
orderType: 2,
|
|
107
|
+
// 默认创建时间正序
|
|
108
|
+
relation: 0,
|
|
109
|
+
haveSubDept: false
|
|
110
|
+
}, param));
|
|
111
|
+
|
|
112
|
+
case 2:
|
|
113
|
+
res = _context3.sent;
|
|
114
|
+
|
|
115
|
+
if (!(res.Code == 1)) {
|
|
116
|
+
_context3.next = 5;
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return _context3.abrupt("return", res.Data);
|
|
121
|
+
|
|
122
|
+
case 5:
|
|
123
|
+
case "end":
|
|
124
|
+
return _context3.stop();
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}, _callee3);
|
|
128
|
+
}));
|
|
129
|
+
|
|
130
|
+
return function okrList(_x3) {
|
|
131
|
+
return _ref3.apply(this, arguments);
|
|
132
|
+
};
|
|
133
|
+
}();
|
|
134
|
+
|
|
135
|
+
exports.okrList = okrList;
|
|
136
|
+
|
|
137
|
+
var getUserInfoById = /*#__PURE__*/function () {
|
|
138
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(toUserId) {
|
|
139
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
140
|
+
while (1) {
|
|
141
|
+
switch (_context4.prev = _context4.next) {
|
|
142
|
+
case 0:
|
|
143
|
+
return _context4.abrupt("return", (0, _request.rget)('v2')("user/GetById?toUserid=".concat(toUserId)));
|
|
144
|
+
|
|
145
|
+
case 1:
|
|
146
|
+
case "end":
|
|
147
|
+
return _context4.stop();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}, _callee4);
|
|
151
|
+
}));
|
|
152
|
+
|
|
153
|
+
return function getUserInfoById(_x4) {
|
|
154
|
+
return _ref4.apply(this, arguments);
|
|
155
|
+
};
|
|
156
|
+
}();
|
|
157
|
+
|
|
158
|
+
exports.getUserInfoById = getUserInfoById;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.isWechat = exports.getSource = exports.getOpenId = exports.OpenUserName = exports.OpenDepartmentName = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.onUpdateKr = exports.getShareUrl = exports.checkTenantOkrExist = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.closeFullscreen = exports.OkrTypeSetting = void 0;
|
|
6
7
|
exports.getBSGlobal = getBSGlobal;
|
|
7
|
-
exports.
|
|
8
|
+
exports.tenantName = exports.tenantLogo = exports.openFullscreen = exports.okrTypeMap = void 0;
|
|
8
9
|
|
|
9
10
|
var openFullscreen = function openFullscreen() {
|
|
10
11
|
// 隐藏侧边栏和头部
|
package/lib/utils/auth.js
CHANGED
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.hasSuperior = exports.OAuth = exports.KRAuth = exports.EAuth = exports.DynamicManagerAuth = exports.BaseAuth = void 0;
|
|
9
9
|
|
|
10
10
|
var _bsGlobal = require("./bs-global");
|
|
11
11
|
|