@titaui/pc 1.5.82 → 1.5.83
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/icon-avatar/index.css +15 -0
- package/lib/components/avatar/icon-avatar/index.js +50 -0
- package/lib/components/avatar/index.js +9 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/button/admin-button/default.js +35 -0
- package/lib/components/button/admin-button/drop-down-arrow.js +93 -0
- package/lib/components/button/admin-button/index.css +86 -0
- package/lib/components/button/admin-button/index.js +40 -0
- package/lib/components/button/admin-button/primary.js +33 -0
- package/lib/components/button/admin-button/secondary.js +35 -0
- package/lib/components/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/export-button/index.css +51 -0
- package/lib/components/button/export-button/index.js +81 -0
- package/lib/components/button/images/daoru.svg +18 -0
- package/lib/components/button/index.js +23 -0
- package/lib/components/button/interface.js +5 -0
- package/lib/components/change-okr/Filter.js +133 -65
- package/lib/components/change-okr/Item.js +6 -0
- package/lib/components/change-okr/filterTab.js +2 -0
- package/lib/components/change-okr/index.js +2 -2
- package/lib/components/checkbox/index.js +4 -3
- package/lib/components/communication/CommunicationRecord.js +116 -161
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.css +63 -0
- package/lib/components/communication/index.js +53 -28
- package/lib/components/communication/style.js +21 -25
- package/lib/components/create-okr/animation/check-animation.js +2746 -0
- package/lib/components/create-okr/constant.js +27 -0
- package/lib/components/create-okr/createCycle.js +193 -0
- package/lib/components/create-okr/createSuccessCmp.js +233 -0
- package/lib/components/create-okr/createSuccessCmpWrapper.js +20 -0
- package/lib/components/create-okr/fields/date-cycle.js +98 -0
- package/lib/components/create-okr/fields/index.css +346 -0
- package/lib/components/create-okr/fields/index.js +17 -0
- package/lib/components/create-okr/fields/input-with-err-popup.js +57 -0
- package/lib/components/create-okr/fields/o-new-name.js +197 -0
- package/lib/components/create-okr/fields/okr-case.js +98 -0
- package/lib/components/create-okr/fields/okr-classify.js +51 -0
- package/lib/components/create-okr/fields/okr-create-suggest.js +147 -0
- package/lib/components/create-okr/fields/okr-new-user-selector.js +106 -0
- package/lib/components/create-okr/fields/okr-parent.js +157 -0
- package/lib/components/create-okr/fields/okr-type-detail.js +196 -0
- package/lib/components/create-okr/fields/okr-type.js +131 -0
- package/lib/components/create-okr/fields/okr-visibility-detail.js +224 -0
- package/lib/components/create-okr/fields/okr-visibility.js +169 -0
- package/lib/components/create-okr/img/check-normal.svg +29 -0
- package/lib/components/create-okr/img/check-right.svg +16 -0
- package/lib/components/create-okr/img/check-wrong.svg +29 -0
- package/lib/components/create-okr/img/create-success-head.png +0 -0
- package/lib/components/create-okr/img/create-success-left-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-message.svg +1 -0
- package/lib/components/create-okr/img/create-success-right-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-shadow.svg +23 -0
- package/lib/components/create-okr/img/example.svg +11 -0
- package/lib/components/create-okr/img/hand.svg +12 -0
- package/lib/components/create-okr/img/kr-add.svg +12 -0
- package/lib/components/create-okr/img/left-quotation.svg +12 -0
- package/lib/components/create-okr/img/light.svg +1 -0
- package/lib/components/create-okr/img/pack-up.js +28 -0
- package/lib/components/create-okr/img/qr-code.png +0 -0
- package/lib/components/create-okr/img/right-quotation.svg +12 -0
- package/lib/components/create-okr/img/shower.png +0 -0
- package/lib/components/create-okr/img/target.svg +19 -0
- package/lib/components/create-okr/img/teach-okr.svg +17 -0
- package/lib/components/create-okr/img/wave.png +0 -0
- package/lib/components/create-okr/img/weight.svg +12 -0
- package/lib/components/create-okr/index.css +446 -0
- package/lib/components/create-okr/index.js +911 -0
- package/lib/components/create-okr/interface.js +5 -0
- package/lib/components/create-okr/kr-items/index.css +180 -0
- package/lib/components/create-okr/kr-items/kr-item-weight.js +194 -0
- package/lib/components/create-okr/kr-items/krDatas.js +299 -0
- package/lib/components/create-okr/kr-items/krItem.js +167 -0
- package/lib/components/create-okr/objectType.js +273 -0
- package/lib/components/create-okr/request-api.js +220 -0
- package/lib/components/create-okr/style.js +100 -0
- package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +124 -0
- package/lib/components/create-okr/utils/helper.js +99 -0
- package/lib/components/create-okr/utils/index.js +23 -0
- package/lib/components/dropdown-layer/icon-item.js +5 -3
- package/lib/components/dropdown-layer/index.css +16 -0
- package/lib/components/dropdown-layer/index.js +21 -14
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dangerous-html/index.js +22 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +78 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +192 -0
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/components/title/index.js +59 -0
- package/lib/components/dynamic/constant.js +97 -0
- package/lib/components/dynamic/context/index.js +13 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +101 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.js +299 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +183 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +50 -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/dynamic-item/dynamic-task/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
- package/lib/components/dynamic/dynamic-item/index.css +128 -0
- package/lib/components/dynamic/dynamic-item/index.js +352 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +126 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +157 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +107 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/dynamic/dynamic-liking/index.js +76 -0
- package/lib/components/dynamic/dynamic-liking/item.js +91 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.css +36 -0
- package/lib/components/dynamic/dynamic-list/index.js +61 -0
- package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +148 -0
- package/lib/components/dynamic/dynamic-topping/index.js +80 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +140 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +204 -0
- package/lib/components/dynamic/dynamic.js +391 -0
- package/lib/components/dynamic/export-module/index.js +33 -0
- package/lib/components/dynamic/img/dynamic-P1.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P2.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P3.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P4.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P5.svg +15 -0
- package/lib/components/dynamic/img/dynamic-delay.svg +17 -0
- package/lib/components/dynamic/img/dynamic-desire.svg +61 -0
- package/lib/components/dynamic/img/dynamic-empty.png +0 -0
- package/lib/components/dynamic/img/dynamic-end.svg +17 -0
- package/lib/components/dynamic/img/dynamic-left-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
- package/lib/components/dynamic/img/dynamic-normal.svg +17 -0
- package/lib/components/dynamic/img/dynamic-promise.svg +61 -0
- package/lib/components/dynamic/img/dynamic-reword.svg +24 -0
- package/lib/components/dynamic/img/dynamic-right-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-risk.svg +17 -0
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +27 -0
- package/lib/components/dynamic/interface.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +42 -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/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +112 -0
- package/lib/components/dynamic/request-api.js +92 -0
- package/lib/components/dynamic/util.js +140 -0
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +84 -0
- package/lib/components/file-list/components/single-file/index.js +115 -0
- package/lib/components/file-list/img/new-file-list-doc.svg +1 -0
- package/lib/components/file-list/img/new-file-list-other.svg +1 -0
- package/lib/components/file-list/img/new-file-list-pdf.svg +1 -0
- package/lib/components/file-list/img/new-file-list-ppt.svg +1 -0
- package/lib/components/file-list/img/new-file-list-radio.svg +1 -0
- package/lib/components/file-list/img/new-file-list-video.svg +1 -0
- package/lib/components/file-list/img/new-file-list-xls.svg +1 -0
- package/lib/components/file-list/index.css +5 -0
- package/lib/components/file-list/index.js +61 -0
- package/lib/components/file-list/interface.js +5 -0
- package/lib/components/file-list/util.js +78 -0
- package/lib/components/form/form-fields/input/index.css +11 -0
- package/lib/components/form/form-fields/input/index.js +3 -1
- package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
- package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
- package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
- package/lib/components/grid-page/image/{UserManager.svg → userManager.svg} +0 -0
- package/lib/components/grid-page/personal-info/index.js +5 -5
- package/lib/components/img-viewer/icon/enlarge.js +30 -0
- package/lib/components/img-viewer/icon/left-rotate.js +46 -0
- package/lib/components/img-viewer/icon/right-rotate.js +44 -0
- package/lib/components/img-viewer/icon/shrink.js +37 -0
- package/lib/components/img-viewer/image/loading.gif +0 -0
- package/lib/components/img-viewer/index.css +155 -0
- package/lib/components/img-viewer/index.js +228 -0
- package/lib/components/img-viewer/interface.js +5 -0
- package/lib/components/img-viewer/util.js +16 -0
- package/lib/components/mblog/components/MblogAction.js +10 -6
- package/lib/components/mblog/index.js +24 -11
- package/lib/components/mblog/style.js +8 -8
- package/lib/components/okr-detail/components/header/index.css +4 -0
- package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +15 -8
- package/lib/components/okr-flow/child-node/work-node.js +7 -1
- package/lib/components/okr-period-selector/select-cycle.js +139 -151
- package/lib/components/okr-progress-detail/index.css +1 -0
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/index.js +4 -4
- package/lib/components/period-selector/common.js +168 -17
- package/lib/components/period-selector/components/selector/index.js +103 -38
- package/lib/components/period-selector/components/selector/style.js +23 -9
- package/lib/components/period-selector/index.js +29 -28
- package/lib/components/popup/index.js +3 -1
- package/lib/components/publish-dynamic-modal/index.js +13 -0
- package/lib/components/publish-dynamic-modal/interface.js +5 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +3 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +191 -0
- package/lib/components/publish-dynamic-modal/requist-api.js +48 -0
- package/lib/components/radio/index.css +5 -0
- package/lib/components/radio/radio.js +12 -4
- package/lib/components/search-key-handle/index.js +39 -0
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/components/uploadedPreview.js +62 -54
- package/lib/components/upload/img/doc.svg +1 -0
- package/lib/components/upload/img/other.svg +1 -0
- package/lib/components/upload/img/pdf.svg +1 -0
- package/lib/components/upload/img/ppt.svg +1 -0
- package/lib/components/upload/img/radio.svg +1 -0
- package/lib/components/upload/img/video.svg +1 -0
- package/lib/components/upload/img/xls.svg +1 -0
- package/lib/components/upload/index.css +26 -0
- package/lib/components/upload/index.js +89 -57
- package/lib/components/upload/style.js +7 -7
- package/lib/components/upload/type.js +15 -15
- package/lib/components/upload/util.js +102 -0
- package/lib/components/upvote/index.js +37 -14
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +50 -24
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +11 -2
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components-v1/buttonv2/ButtonLinked.js +35 -0
- package/lib/components-v1/buttonv2/ButtonOutlined.js +64 -0
- package/lib/components-v1/buttonv2/ButtonRounded.js +101 -0
- package/lib/components-v1/buttonv2/DefaultButton.js +86 -0
- package/lib/components-v1/buttonv2/index.js +37 -0
- package/lib/components-v1/buttonv2/style/style.js +53 -0
- package/lib/components-v1/buttonv2/style/theme.css +3 -0
- package/lib/components-v1/confirm/index.js +158 -0
- package/lib/index.js +49 -5
- package/lib/pages/dynamic/index.css +5 -0
- package/lib/pages/dynamic/index.js +25 -0
- package/lib/pages/home-page/components/data-list/nav-selector/index.js +18 -0
- package/lib/pages/home-page/components/data-list/table/utils-function.js +6 -3
- package/lib/pages/like-ranking/column.js +141 -0
- package/lib/pages/like-ranking/filter-buttons/department.js +44 -0
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +19 -0
- package/lib/pages/like-ranking/filter-buttons/index.js +40 -0
- package/lib/pages/like-ranking/filter-buttons/modular.js +110 -0
- package/lib/pages/like-ranking/filter-buttons/name.js +73 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +27 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +38 -0
- package/lib/pages/like-ranking/filter-buttons/timer.js +56 -0
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/image/ranking-1.png +0 -0
- package/lib/pages/like-ranking/image/ranking-2.png +0 -0
- package/lib/pages/like-ranking/image/ranking-3.png +0 -0
- package/lib/pages/like-ranking/index.css +185 -0
- package/lib/pages/like-ranking/index.js +252 -0
- package/lib/pages/like-ranking/mock.js +366 -0
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +46 -5
- package/lib/utils/bs-global.js +26 -2
- package/lib/utils/format-time.js +161 -0
- package/lib/utils/helpers.js +41 -0
- package/lib/utils/roundWeight.js +105 -0
- package/lib/utils/tools.js +140 -20
- package/package.json +2 -2
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
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); }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
|
|
20
|
+
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."); }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
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; }
|
|
27
|
+
|
|
28
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
|
+
|
|
30
|
+
var ExportBtn = function ExportBtn(_ref) {
|
|
31
|
+
var popup = _ref.popup,
|
|
32
|
+
_ref$width = _ref.width,
|
|
33
|
+
width = _ref$width === void 0 ? 90 : _ref$width,
|
|
34
|
+
_ref$height = _ref.height,
|
|
35
|
+
height = _ref$height === void 0 ? 32 : _ref$height,
|
|
36
|
+
_onClick = _ref.onClick;
|
|
37
|
+
|
|
38
|
+
var _useState = (0, _react.useState)(false),
|
|
39
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
+
isVisible = _useState2[0],
|
|
41
|
+
setIsVisible = _useState2[1];
|
|
42
|
+
|
|
43
|
+
var wrapperRef = (0, _react.useRef)(document.createElement("div"));
|
|
44
|
+
|
|
45
|
+
var clickEvent = function clickEvent(e) {
|
|
46
|
+
if (!e.target.className.includes("okrdashboard-export-label")) {
|
|
47
|
+
setIsVisible(false);
|
|
48
|
+
window.removeEventListener("click", clickEvent, true);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
(0, _react.useEffect)(function () {
|
|
53
|
+
if (isVisible) {
|
|
54
|
+
window.addEventListener("click", clickEvent, true);
|
|
55
|
+
} else {
|
|
56
|
+
window.removeEventListener("click", clickEvent, true);
|
|
57
|
+
}
|
|
58
|
+
}, [isVisible]);
|
|
59
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
|
+
className: "tita-export-btn"
|
|
61
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
|
+
className: "export-btn",
|
|
63
|
+
style: {
|
|
64
|
+
width: "".concat(width, "px"),
|
|
65
|
+
height: "".concat(height, "px")
|
|
66
|
+
},
|
|
67
|
+
onClick: function onClick() {
|
|
68
|
+
_onClick && _onClick();
|
|
69
|
+
if (!popup) return;
|
|
70
|
+
setIsVisible(true);
|
|
71
|
+
}
|
|
72
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
73
|
+
src: require("../images/daoru.svg")
|
|
74
|
+
}), " \u5BFC\u51FA"), popup && isVisible ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
75
|
+
className: "export-label",
|
|
76
|
+
ref: wrapperRef
|
|
77
|
+
}, popup) : null);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
var _default = ExportBtn;
|
|
81
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>daoru</title>
|
|
4
|
+
<g id="数据中心" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="绩效仪表盘-参与度分析" transform="translate(-1244.000000, -533.000000)">
|
|
6
|
+
<g id="各部门菜鱼统计" transform="translate(362.000000, 508.000000)">
|
|
7
|
+
<g id="按钮" transform="translate(860.000000, 16.000000)">
|
|
8
|
+
<g id="编组" transform="translate(22.000000, 9.000000)">
|
|
9
|
+
<g id="daoru" transform="translate(7.000000, 7.000000) rotate(-90.000000) translate(-7.000000, -7.000000) ">
|
|
10
|
+
<rect id="Rectangle-3" x="0" y="0" width="14" height="14"></rect>
|
|
11
|
+
<path d="M7.33271502,0.777777778 C8.44955751,0.777777778 9.35493724,1.68315751 9.35493724,2.8 L9.35449279,3.11077778 C9.34888889,3.38173064 9.15144646,3.60623502 8.89275616,3.6484297 L8.80444444,3.65555556 C8.50375608,3.65555556 8.26,3.41179947 8.26,3.11111111 C8.26,3.08548426 8.26177057,3.06027095 8.26519605,3.03558683 L8.26604835,2.8 C8.26604835,2.31675084 7.89878193,1.91928136 7.42814293,1.87148536 L7.33271502,1.86666667 L2.43271502,1.86666667 C1.94946586,1.86666667 1.55199637,2.23393308 1.50420038,2.70457209 L1.49938168,2.8 L1.49938168,11.2 C1.49938168,11.6832492 1.8666481,12.0807186 2.3372871,12.1285146 L2.43271502,12.1333333 L7.33271502,12.1333333 C7.81596417,12.1333333 8.21343366,11.7660669 8.26122965,11.2954279 L8.26604835,11.2 L8.26549279,10.9637778 L8.26,10.8888889 C8.26,10.6182694 8.45744243,10.393765 8.71613273,10.3515703 L8.80444444,10.3444444 C9.07506397,10.3444444 9.29956835,10.5418869 9.34176303,10.8005772 L9.34888889,10.8888889 L9.35449279,10.8887778 L9.35493724,11.2 C9.35493724,12.3168425 8.44955751,13.2222222 7.33271502,13.2222222 L2.43271502,13.2222222 C1.31587252,13.2222222 0.410492794,12.3168425 0.410492794,11.2 L0.410492794,2.8 C0.410492794,1.68315751 1.31587252,0.777777778 2.43271502,0.777777778 L7.33271502,0.777777778 Z M10.2215006,3.95874907 C10.3840303,3.83186789 10.6206868,3.81944372 10.7958765,3.93731726 L10.7958765,3.93731726 L10.8561861,3.98522502 L10.8853589,4.01135152 L10.8663714,3.98602802 L13.4377128,6.65648474 L13.4918408,6.72246197 C13.6202351,6.90676965 13.6207912,7.15292926 13.487256,7.33865007 L13.487256,7.33865007 L13.4338512,7.40246126 L10.8809691,10.0578426 L10.8182657,10.1111814 C10.6205844,10.2534059 10.3432738,10.2353965 10.1621641,10.0542472 C9.98284426,9.86743287 9.96322939,9.57628279 10.1137644,9.36605108 L10.1137644,9.36605108 L10.1671812,9.30209013 L11.6950873,7.720097 C11.7130975,7.70144929 11.7231618,7.67653597 11.7231577,7.65061102 C11.7231491,7.59538254 11.6783706,7.550618 11.6231421,7.55062662 L11.6231421,7.55062662 L7.16535119,7.55132221 L7.08676724,7.54555414 C6.88136918,7.51512482 6.71246481,7.36698279 6.65734319,7.16520089 L6.65734319,7.16520089 L6.64256614,7.09146502 L6.63845232,7.01947191 L6.64422285,6.94278503 C6.67830188,6.71704688 6.85976757,6.53422336 7.09357867,6.50264293 L7.09357867,6.50264293 L7.17049522,6.49766809 L11.5884424,6.49779834 C11.6141067,6.49779909 11.638789,6.48793255 11.6573809,6.4702407 C11.6973897,6.43216868 11.6989597,6.36887165 11.6608877,6.32886283 L11.6608877,6.32886283 L10.1635675,4.75537148 L10.1101455,4.69045341 C9.99881984,4.53170787 9.98117305,4.32583425 10.0656066,4.1518409 L10.0656066,4.1518409 L10.1101936,4.07616548 L10.1642915,4.01166375 Z" id="形状结合" fill="#FFFFFF" fill-rule="nonzero"></path>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.Default = exports.ExportBtn = exports.AdminButton = void 0;
|
|
7
|
+
|
|
8
|
+
var _adminButton = _interopRequireDefault(require("./admin-button"));
|
|
9
|
+
|
|
10
|
+
var _exportButton = _interopRequireDefault(require("./export-button"));
|
|
11
|
+
|
|
12
|
+
var _defaultButton = _interopRequireDefault(require("./default-button"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var AdminButton = _adminButton["default"];
|
|
17
|
+
exports.AdminButton = AdminButton;
|
|
18
|
+
var ExportBtn = _exportButton["default"];
|
|
19
|
+
exports.ExportBtn = ExportBtn;
|
|
20
|
+
var Default = _defaultButton["default"];
|
|
21
|
+
exports.Default = Default;
|
|
22
|
+
var _default = Default;
|
|
23
|
+
exports["default"] = _default;
|
|
@@ -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["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -27,6 +27,8 @@ var _filterTab = _interopRequireDefault(require("./filterTab"));
|
|
|
27
27
|
|
|
28
28
|
var _bsGlobal = require("../../utils/bs-global");
|
|
29
29
|
|
|
30
|
+
var _request = require("../../utils/request");
|
|
31
|
+
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
33
|
|
|
32
34
|
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); }
|
|
@@ -39,6 +41,18 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
39
41
|
|
|
40
42
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
43
|
|
|
44
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
45
|
+
|
|
46
|
+
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."); }
|
|
47
|
+
|
|
48
|
+
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); }
|
|
49
|
+
|
|
50
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
51
|
+
|
|
52
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
53
|
+
|
|
54
|
+
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; }
|
|
55
|
+
|
|
42
56
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43
57
|
|
|
44
58
|
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); } }
|
|
@@ -71,65 +85,6 @@ for (var i = 2013; i < 2051; i++) {
|
|
|
71
85
|
});
|
|
72
86
|
}
|
|
73
87
|
|
|
74
|
-
var cycleTypes = [{
|
|
75
|
-
title: '全部周期',
|
|
76
|
-
value: '-1'
|
|
77
|
-
}, {
|
|
78
|
-
title: '年度',
|
|
79
|
-
value: '1'
|
|
80
|
-
}, {
|
|
81
|
-
title: '第一季度',
|
|
82
|
-
value: '2,1'
|
|
83
|
-
}, {
|
|
84
|
-
title: '第二季度',
|
|
85
|
-
value: '2,2'
|
|
86
|
-
}, {
|
|
87
|
-
title: '第三季度',
|
|
88
|
-
value: '2,3'
|
|
89
|
-
}, {
|
|
90
|
-
title: '第四季度',
|
|
91
|
-
value: '2,4'
|
|
92
|
-
}, {
|
|
93
|
-
title: '1月',
|
|
94
|
-
value: '3,1'
|
|
95
|
-
}, {
|
|
96
|
-
title: '2月',
|
|
97
|
-
value: '3,2'
|
|
98
|
-
}, {
|
|
99
|
-
title: '3月',
|
|
100
|
-
value: '3,3'
|
|
101
|
-
}, {
|
|
102
|
-
title: '4月',
|
|
103
|
-
value: '3,4'
|
|
104
|
-
}, {
|
|
105
|
-
title: '5月',
|
|
106
|
-
value: '3,5'
|
|
107
|
-
}, {
|
|
108
|
-
title: '6月',
|
|
109
|
-
value: '3,6'
|
|
110
|
-
}, {
|
|
111
|
-
title: '7月',
|
|
112
|
-
value: '3,7'
|
|
113
|
-
}, {
|
|
114
|
-
title: '8月',
|
|
115
|
-
value: '3,8'
|
|
116
|
-
}, {
|
|
117
|
-
title: '9月',
|
|
118
|
-
value: '3,9'
|
|
119
|
-
}, {
|
|
120
|
-
title: '10月',
|
|
121
|
-
value: '3,10'
|
|
122
|
-
}, {
|
|
123
|
-
title: '11月',
|
|
124
|
-
value: '3,11'
|
|
125
|
-
}, {
|
|
126
|
-
title: '12月',
|
|
127
|
-
value: '3,12'
|
|
128
|
-
}, {
|
|
129
|
-
title: '自定义',
|
|
130
|
-
value: '0,0'
|
|
131
|
-
}];
|
|
132
|
-
exports.cycleTypes = cycleTypes;
|
|
133
88
|
var statusType = [{
|
|
134
89
|
title: '全部状态',
|
|
135
90
|
value: 0
|
|
@@ -188,6 +143,87 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
188
143
|
}));
|
|
189
144
|
};
|
|
190
145
|
|
|
146
|
+
_this.getCycleTypes = function () {
|
|
147
|
+
(0, _request.rget)('v1')("okr/cycleSetting").then(function (res) {
|
|
148
|
+
var data = res.Data;
|
|
149
|
+
var cycles = [{
|
|
150
|
+
title: '全部周期',
|
|
151
|
+
value: '-1'
|
|
152
|
+
}];
|
|
153
|
+
|
|
154
|
+
if (data.isOpenYear) {
|
|
155
|
+
cycles.push({
|
|
156
|
+
title: '年度',
|
|
157
|
+
value: '1'
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (data.isOpenHalfYear) {
|
|
162
|
+
cycles.push({
|
|
163
|
+
title: '上半年',
|
|
164
|
+
value: '5,1'
|
|
165
|
+
});
|
|
166
|
+
cycles.push({
|
|
167
|
+
title: '下半年',
|
|
168
|
+
value: '5,2'
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (data.isOpenQuarter) {
|
|
173
|
+
var num = ['一', '二', '三', '四'];
|
|
174
|
+
|
|
175
|
+
for (var _i = 0; _i < 4; _i++) {
|
|
176
|
+
cycles.push({
|
|
177
|
+
title: "\u7B2C".concat(num[_i], "\u5B63\u5EA6"),
|
|
178
|
+
value: "2,".concat(_i + 1)
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (data.isOpenBimonthly) {
|
|
184
|
+
var start = data.yearStartMonth % 2 == 1 ? 1 : 2;
|
|
185
|
+
var month = start;
|
|
186
|
+
|
|
187
|
+
while (1) {
|
|
188
|
+
var next = (month + 1) % 12 || 12;
|
|
189
|
+
cycles.push({
|
|
190
|
+
title: "".concat(month, "-").concat(next, "\u6708"),
|
|
191
|
+
value: "4,".concat(month)
|
|
192
|
+
});
|
|
193
|
+
month = (month + 2) % 12 || 12;
|
|
194
|
+
if (month == start) break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (data.isOpenMonth) {
|
|
199
|
+
for (var _i2 = 1; _i2 <= 12; _i2++) {
|
|
200
|
+
cycles.push({
|
|
201
|
+
title: "".concat(_i2, "\u6708"),
|
|
202
|
+
value: "3,".concat(_i2)
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (data.isOpenCustom) {
|
|
208
|
+
cycles.push({
|
|
209
|
+
title: "\u81EA\u5B9A\u4E49",
|
|
210
|
+
value: "0,0"
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
var newOptions = _toConsumableArray(_this.state.OptionsArray);
|
|
215
|
+
|
|
216
|
+
newOptions[1] = _objectSpread({}, newOptions[1]);
|
|
217
|
+
newOptions[1].valuesArray = cycles;
|
|
218
|
+
console.log(newOptions);
|
|
219
|
+
|
|
220
|
+
_this.setState({
|
|
221
|
+
OptionsArray: newOptions,
|
|
222
|
+
cycles: cycles
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
|
|
191
227
|
_this.handleDeleteDepartment = function (id) {
|
|
192
228
|
var _this$props2 = _this.props,
|
|
193
229
|
onChange = _this$props2.onChange,
|
|
@@ -255,7 +291,32 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
255
291
|
};
|
|
256
292
|
|
|
257
293
|
_this.state = {
|
|
258
|
-
OptionsArray: [
|
|
294
|
+
OptionsArray: [{
|
|
295
|
+
index: 0,
|
|
296
|
+
title: '年份',
|
|
297
|
+
name: 'year',
|
|
298
|
+
valuesArray: years,
|
|
299
|
+
value: p.year
|
|
300
|
+
}, {
|
|
301
|
+
index: 1,
|
|
302
|
+
title: '周期',
|
|
303
|
+
name: 'cycle',
|
|
304
|
+
valuesArray: [],
|
|
305
|
+
value: p.cycle
|
|
306
|
+
}, {
|
|
307
|
+
index: 2,
|
|
308
|
+
title: '状态',
|
|
309
|
+
name: 'status',
|
|
310
|
+
valuesArray: statusType,
|
|
311
|
+
value: p.status
|
|
312
|
+
}, {
|
|
313
|
+
index: 3,
|
|
314
|
+
title: '类型',
|
|
315
|
+
name: 'type',
|
|
316
|
+
valuesArray: okrTypes,
|
|
317
|
+
value: p.type
|
|
318
|
+
}],
|
|
319
|
+
cycles: []
|
|
259
320
|
};
|
|
260
321
|
return _this;
|
|
261
322
|
}
|
|
@@ -278,7 +339,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
278
339
|
index: 1,
|
|
279
340
|
title: '周期',
|
|
280
341
|
name: 'cycle',
|
|
281
|
-
valuesArray:
|
|
342
|
+
valuesArray: this.state.OptionsArray[1].valuesArray,
|
|
282
343
|
value: cycle
|
|
283
344
|
}, {
|
|
284
345
|
index: 2,
|
|
@@ -294,6 +355,11 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
294
355
|
value: type
|
|
295
356
|
}]
|
|
296
357
|
});
|
|
358
|
+
}
|
|
359
|
+
}, {
|
|
360
|
+
key: "componentDidMount",
|
|
361
|
+
value: function componentDidMount() {
|
|
362
|
+
this.getCycleTypes();
|
|
297
363
|
} // NOTE componentWillReceiveProps 会导致筛选条件无法出现 全部周期这种默认选项
|
|
298
364
|
|
|
299
365
|
}, {
|
|
@@ -317,7 +383,9 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
317
383
|
status: status,
|
|
318
384
|
type: type
|
|
319
385
|
};
|
|
320
|
-
var
|
|
386
|
+
var _this$state = this.state,
|
|
387
|
+
OptionsArray = _this$state.OptionsArray,
|
|
388
|
+
cycles = _this$state.cycles;
|
|
321
389
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.Filter, null, /*#__PURE__*/_react["default"].createElement(_styledComponents.FilterTop, null, /*#__PURE__*/_react["default"].createElement(_styledComponents.FilterLeftWrapper, null, /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
322
390
|
container: document.querySelector('.pg-tmpl-honour-scroll') || document.body,
|
|
323
391
|
data: years,
|
|
@@ -333,7 +401,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
333
401
|
}
|
|
334
402
|
}), /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
335
403
|
container: document.querySelector('.pg-tmpl-honour-scroll') || document.body,
|
|
336
|
-
data:
|
|
404
|
+
data: cycles,
|
|
337
405
|
value: cycle,
|
|
338
406
|
title: "\u5468\u671F ",
|
|
339
407
|
textField: "title",
|
|
@@ -342,7 +410,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
342
410
|
type: "old",
|
|
343
411
|
width: "64px",
|
|
344
412
|
onSelect: function onSelect(value) {
|
|
345
|
-
return _this2.handleSelected(
|
|
413
|
+
return _this2.handleSelected(cycles, value, 'cycle');
|
|
346
414
|
}
|
|
347
415
|
}), okrPopType == 1 && /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
348
416
|
container: document.querySelector('.pg-tmpl-honour-scroll') || document.body,
|
|
@@ -123,6 +123,12 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
123
123
|
case 3:
|
|
124
124
|
return "".concat(data.yqmnum, "\u6708");
|
|
125
125
|
|
|
126
|
+
case 4:
|
|
127
|
+
return "".concat(data.yqmnum, "-").concat((data.yqmnum + 1) % 12 || 12, "\u6708");
|
|
128
|
+
|
|
129
|
+
case 5:
|
|
130
|
+
return data.yqmnum == 1 ? '上半年' : '下半年';
|
|
131
|
+
|
|
126
132
|
default:
|
|
127
133
|
return '自定义';
|
|
128
134
|
}
|
|
@@ -40,6 +40,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
40
40
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
41
|
|
|
42
42
|
function keyValueMapper(array, value) {
|
|
43
|
+
console.log(array);
|
|
44
|
+
console.log(value);
|
|
43
45
|
var val = array.filter(function (key) {
|
|
44
46
|
return key.value == value;
|
|
45
47
|
});
|
|
@@ -265,8 +265,8 @@ var ChangeOkr = /*#__PURE__*/function (_PureComponent) {
|
|
|
265
265
|
onBeforeShow: this.onBeforeShow,
|
|
266
266
|
onAfterShow: this.onAfterShow,
|
|
267
267
|
onBeforeHide: this.onBeforeShow,
|
|
268
|
-
className: "okr-panel-changeOkrPop ".concat(className)
|
|
269
|
-
|
|
268
|
+
className: "okr-panel-changeOkrPop ".concat(className) // transitionName='okr-panel-changeOkrPop'
|
|
269
|
+
,
|
|
270
270
|
container: container ? container : document.querySelector('.pg-tmpl-honour-scroll')
|
|
271
271
|
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.Wrapper, {
|
|
272
272
|
okrPopType: okrPopType
|
|
@@ -41,8 +41,8 @@ var _default = function _default(props) {
|
|
|
41
41
|
var onChange = props.onChange,
|
|
42
42
|
_props$defaultChecked = props.defaultChecked,
|
|
43
43
|
defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,
|
|
44
|
-
_props$
|
|
45
|
-
|
|
44
|
+
_props$name = props.name,
|
|
45
|
+
name = _props$name === void 0 ? 0 : _props$name,
|
|
46
46
|
_props$disabled = props.disabled,
|
|
47
47
|
disabled = _props$disabled === void 0 ? false : _props$disabled;
|
|
48
48
|
|
|
@@ -55,13 +55,14 @@ var _default = function _default(props) {
|
|
|
55
55
|
setChecked = _useState2[1];
|
|
56
56
|
|
|
57
57
|
(0, _react.useEffect)(function () {
|
|
58
|
+
// @ts-ignore
|
|
58
59
|
setChecked(props.checked);
|
|
59
60
|
}, [props.checked]);
|
|
60
61
|
|
|
61
62
|
var onClickHandle = function onClickHandle() {
|
|
62
63
|
if (disabled) return;
|
|
63
64
|
setChecked(!checked);
|
|
64
|
-
onChange && onChange(!checked,
|
|
65
|
+
onChange && onChange(!checked, name);
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
return /*#__PURE__*/_react["default"].createElement("span", {
|