@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
|
@@ -12,8 +12,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
|
|
13
13
|
var _titaUi = require("tita-ui");
|
|
14
14
|
|
|
15
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
16
|
-
|
|
17
15
|
var _periodSelector = _interopRequireDefault(require("../period-selector"));
|
|
18
16
|
|
|
19
17
|
var _popup = _interopRequireDefault(require("../popup"));
|
|
@@ -22,6 +20,8 @@ var _rangePickerPop = _interopRequireDefault(require("../range-picker-pop"));
|
|
|
22
20
|
|
|
23
21
|
require("./index.css");
|
|
24
22
|
|
|
23
|
+
var _helper = require("../period-selector/helper");
|
|
24
|
+
|
|
25
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
26
26
|
|
|
27
27
|
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); }
|
|
@@ -47,78 +47,16 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
47
47
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
48
48
|
|
|
49
49
|
function _formatCycleData(periodParams, getCycleRange) {
|
|
50
|
-
if (!periodParams) return
|
|
51
|
-
var quarter = ['', '第一季度', '第二季度', '第三季度', '第四季度'];
|
|
52
|
-
var cycleDate = '';
|
|
50
|
+
if (!periodParams) return "";
|
|
53
51
|
var startDate = periodParams.startDate;
|
|
54
52
|
var endDate = periodParams.endDate;
|
|
55
|
-
var annualNum = periodParams.annualNum == '-1' ? '全部年份' : periodParams.annualNum;
|
|
56
|
-
|
|
57
|
-
switch (periodParams.cycleType.toString()) {
|
|
58
|
-
case '-1':
|
|
59
|
-
cycleDate = '全部周期';
|
|
60
|
-
break;
|
|
61
|
-
|
|
62
|
-
case '1':
|
|
63
|
-
cycleDate = '年度';
|
|
64
|
-
break;
|
|
65
|
-
|
|
66
|
-
case '2':
|
|
67
|
-
// 季度
|
|
68
|
-
cycleDate = quarter[Number(periodParams.yqmNum)];
|
|
69
|
-
break;
|
|
70
|
-
|
|
71
|
-
case '3':
|
|
72
|
-
cycleDate = periodParams.yqmNum + '月';
|
|
73
|
-
break;
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
cycleDate = '自定义';
|
|
77
|
-
}
|
|
78
53
|
|
|
79
54
|
if (new Date(periodParams.startDate).getFullYear() == new Date().getFullYear()) {
|
|
80
55
|
startDate = periodParams.startDate.slice(5);
|
|
81
56
|
endDate = periodParams.endDate.slice(5);
|
|
82
57
|
}
|
|
83
58
|
|
|
84
|
-
return
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function getDefaultDateOfCycle(cycle) {
|
|
88
|
-
switch (cycle.cycleType) {
|
|
89
|
-
case '1':
|
|
90
|
-
{
|
|
91
|
-
return {
|
|
92
|
-
startDate: "".concat(cycle.annualNum, "/01/01"),
|
|
93
|
-
endDate: "".concat(cycle.annualNum, "/12/31")
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
case '2':
|
|
98
|
-
{
|
|
99
|
-
var quarter = (0, _moment["default"])().set('year', Number(cycle.annualNum)).set('quarter', Number(cycle.yqmNum));
|
|
100
|
-
return {
|
|
101
|
-
startDate: quarter.startOf('quarter').format('YYYY/MM/DD'),
|
|
102
|
-
endDate: quarter.endOf('quarter').format('YYYY/MM/DD')
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
case '3':
|
|
107
|
-
{
|
|
108
|
-
return {
|
|
109
|
-
startDate: "".concat(cycle.annualNum, "/").concat(cycle.yqmNum < 10 ? '0' + cycle.yqmNum : cycle.yqmNum, "/01"),
|
|
110
|
-
endDate: (0, _moment["default"])(cycle.annualNum + '/' + cycle.yqmNum + '/' + 1).add(1, 'month').set('date', 0).format('YYYY/MM/DD')
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
default:
|
|
115
|
-
{
|
|
116
|
-
return {
|
|
117
|
-
startDate: (0, _moment["default"])().set('year', Number(cycle.annualNum)).format('YYYY/MM/DD'),
|
|
118
|
-
endDate: (0, _moment["default"])().set('year', Number(cycle.annualNum)).add(30, 'day').format('YYYY/MM/DD')
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
}
|
|
59
|
+
return _periodSelector["default"].formatPeriod(periodParams) + "".concat(getCycleRange ? "," + startDate + "~" + endDate : "");
|
|
122
60
|
}
|
|
123
61
|
|
|
124
62
|
function CreateCycle(_ref) {
|
|
@@ -130,6 +68,7 @@ function CreateCycle(_ref) {
|
|
|
130
68
|
canEdit = _ref$canEdit === void 0 ? true : _ref$canEdit,
|
|
131
69
|
_ref$getCycleRange = _ref.getCycleRange,
|
|
132
70
|
getCycleRange = _ref$getCycleRange === void 0 ? false : _ref$getCycleRange,
|
|
71
|
+
className = _ref.className,
|
|
133
72
|
_ref$popupAlign = _ref.popupAlign,
|
|
134
73
|
popupAlign = _ref$popupAlign === void 0 ? {
|
|
135
74
|
offset: [0, 0],
|
|
@@ -147,14 +86,23 @@ function CreateCycle(_ref) {
|
|
|
147
86
|
selfCycle = _useState2[0],
|
|
148
87
|
setSelfCycle = _useState2[1];
|
|
149
88
|
|
|
150
|
-
var
|
|
89
|
+
var _useState3 = (0, _react.useState)(),
|
|
90
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
91
|
+
cycleSetting = _useState4[0],
|
|
92
|
+
setCycleSetting = _useState4[1];
|
|
151
93
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
94
|
+
(0, _react.useEffect)(function () {
|
|
95
|
+
var url = (0, _helper.getApiUrl)("okr/cycleSetting");
|
|
96
|
+
(0, _helper.taker)(url, "GET").then(function (res) {
|
|
97
|
+
if (res.Code == 1) {
|
|
98
|
+
setCycleSetting(res.Data);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}, []);
|
|
102
|
+
var cycleWrapperRef = (0, _react.useRef)(document.createElement("div"));
|
|
155
103
|
|
|
156
104
|
var onPeriodSelectorChangeHandler = function onPeriodSelectorChangeHandler(c) {
|
|
157
|
-
setSelfCycle(_objectSpread(_objectSpread(
|
|
105
|
+
setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), c));
|
|
158
106
|
};
|
|
159
107
|
|
|
160
108
|
var onStartDateConfirmHandler = function onStartDateConfirmHandler(d) {
|
|
@@ -165,7 +113,7 @@ function CreateCycle(_ref) {
|
|
|
165
113
|
setSelfCycle(_objectSpread(_objectSpread({}, selfCycle), d));
|
|
166
114
|
};
|
|
167
115
|
|
|
168
|
-
var onSureClickHandler = function onSureClickHandler() {
|
|
116
|
+
var onSureClickHandler = function onSureClickHandler(c) {
|
|
169
117
|
onChange(selfCycle);
|
|
170
118
|
popRef.current && popRef.current.close();
|
|
171
119
|
};
|
|
@@ -174,95 +122,135 @@ function CreateCycle(_ref) {
|
|
|
174
122
|
popRef.current && popRef.current.close();
|
|
175
123
|
};
|
|
176
124
|
|
|
177
|
-
var
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
return e.stopPropagation();
|
|
181
|
-
},
|
|
182
|
-
ref: cycleWrapperRef,
|
|
183
|
-
style: {
|
|
184
|
-
'backgroundColor': 'white',
|
|
185
|
-
'boxShadow': '0px 4px 12px 0px rgb(127 145 180 / 20%)',
|
|
186
|
-
'borderRadius': 4
|
|
187
|
-
}
|
|
188
|
-
}, /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
189
|
-
style: {
|
|
190
|
-
'width': '100%'
|
|
191
|
-
},
|
|
192
|
-
selected: selfCycle,
|
|
193
|
-
showFullCycle: false,
|
|
194
|
-
onChange: onPeriodSelectorChangeHandler,
|
|
195
|
-
container: cycleWrapperRef.current,
|
|
196
|
-
yearsRange: [2018, 2030],
|
|
197
|
-
wrapperStyle: {
|
|
198
|
-
'width': 200
|
|
199
|
-
}
|
|
200
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
|
-
className: 'okr-detail-date-cycle__button'
|
|
202
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, _formatCycleData(selfCycle, false)), /*#__PURE__*/_react["default"].createElement("i", {
|
|
203
|
-
className: "tu-icon-sort-down"
|
|
204
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
|
-
className: "okr-detail-date-cycle__date-line",
|
|
206
|
-
style: {
|
|
207
|
-
borderBottom: '1px solid #F0F2F5'
|
|
125
|
+
var handleVisibleChange = function handleVisibleChange(visible) {
|
|
126
|
+
if (visible) {
|
|
127
|
+
setSelfCycle(cycle);
|
|
208
128
|
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
var popup = /*#__PURE__*/_react["default"].createElement("div", null);
|
|
132
|
+
|
|
133
|
+
if (cycleSetting) {
|
|
134
|
+
if (cycleSetting.isOpenCustom) {
|
|
135
|
+
popup = /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
|
+
className: "okr-detail-date-cycle-wrapper",
|
|
137
|
+
onClick: function onClick(e) {
|
|
138
|
+
return e.stopPropagation();
|
|
139
|
+
},
|
|
140
|
+
ref: cycleWrapperRef,
|
|
141
|
+
style: {
|
|
142
|
+
backgroundColor: "white",
|
|
143
|
+
boxShadow: "0px 4px 12px 0px rgb(127 145 180 / 20%)",
|
|
144
|
+
borderRadius: 4
|
|
145
|
+
}
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
147
|
+
style: {
|
|
148
|
+
width: "100%"
|
|
149
|
+
},
|
|
150
|
+
selected: selfCycle,
|
|
151
|
+
showFullCycle: false,
|
|
152
|
+
onChange: onPeriodSelectorChangeHandler,
|
|
153
|
+
container: cycleWrapperRef.current,
|
|
154
|
+
yearsRange: [2018, 2030],
|
|
155
|
+
isFetch: false,
|
|
156
|
+
showYear: cycleSetting.isOpenYear,
|
|
157
|
+
showCustom: cycleSetting.isOpenCustom,
|
|
158
|
+
showMonth: cycleSetting.isOpenMonth,
|
|
159
|
+
showQuarter: cycleSetting.isOpenQuarter,
|
|
160
|
+
showBimonthly: cycleSetting.isOpenBimonthly,
|
|
161
|
+
showHalfYear: cycleSetting.isOpenHalfYear,
|
|
162
|
+
startMonth: cycleSetting.yearStartMonth
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
+
className: "okr-detail-date-cycle__button"
|
|
165
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, _formatCycleData(selfCycle, false)), /*#__PURE__*/_react["default"].createElement("i", {
|
|
166
|
+
className: "tu-icon-sort-down"
|
|
167
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
+
className: "okr-detail-date-cycle__date-line",
|
|
169
|
+
style: {
|
|
170
|
+
borderBottom: "1px solid #F0F2F5"
|
|
171
|
+
}
|
|
172
|
+
}, "\u5F00\u59CB\u65E5\u671F\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
173
|
+
format: "YYYY/MM/DD",
|
|
174
|
+
controlled: true,
|
|
175
|
+
onConfirm: onStartDateConfirmHandler,
|
|
176
|
+
defaultRange: {
|
|
177
|
+
startDate: selfCycle.startDate,
|
|
178
|
+
endDate: selfCycle.endDate
|
|
179
|
+
},
|
|
180
|
+
container: container
|
|
181
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
182
|
+
className: "okr-detail-date-cycle__time"
|
|
183
|
+
}, selfCycle.startDate, /*#__PURE__*/_react["default"].createElement("i", {
|
|
184
|
+
className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
|
|
185
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
|
+
className: "okr-detail-date-cycle__date-line"
|
|
187
|
+
}, "\u7ED3\u675F\u65E5\u671F\uFF1A", /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
188
|
+
format: "YYYY/MM/DD",
|
|
189
|
+
controlled: true,
|
|
190
|
+
onConfirm: onEndDateCOnfirmHandler,
|
|
191
|
+
defaultRange: {
|
|
192
|
+
startDate: selfCycle.startDate,
|
|
193
|
+
endDate: selfCycle.endDate
|
|
194
|
+
},
|
|
195
|
+
container: container
|
|
196
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
+
className: "okr-detail-date-cycle__time"
|
|
198
|
+
}, selfCycle.endDate, /*#__PURE__*/_react["default"].createElement("i", {
|
|
199
|
+
className: "tu-icon-arrow-down okr-detail-date-cycle__select-time-down-icon"
|
|
200
|
+
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
|
+
style: {
|
|
202
|
+
display: "flex",
|
|
203
|
+
justifyContent: "flex-end"
|
|
204
|
+
}
|
|
205
|
+
}, /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
206
|
+
size: "s",
|
|
207
|
+
style: {
|
|
208
|
+
marginRight: 12
|
|
209
|
+
},
|
|
210
|
+
onClick: onCancelClickHandler
|
|
211
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
212
|
+
size: "s",
|
|
213
|
+
type: "primary",
|
|
214
|
+
onClick: onSureClickHandler
|
|
215
|
+
}, "\u786E\u5B9A")));
|
|
216
|
+
} else {
|
|
217
|
+
return /*#__PURE__*/_react["default"].createElement(_periodSelector["default"], {
|
|
218
|
+
style: {
|
|
219
|
+
width: "100%"
|
|
220
|
+
},
|
|
221
|
+
selected: cycle,
|
|
222
|
+
showFullCycle: false,
|
|
223
|
+
onChange: onChange,
|
|
224
|
+
container: cycleWrapperRef.current,
|
|
225
|
+
yearsRange: [2018, 2030],
|
|
226
|
+
className: className,
|
|
227
|
+
isFetch: false,
|
|
228
|
+
showYear: cycleSetting.isOpenYear,
|
|
229
|
+
showCustom: cycleSetting.isOpenCustom,
|
|
230
|
+
showMonth: cycleSetting.isOpenMonth,
|
|
231
|
+
showQuarter: cycleSetting.isOpenQuarter,
|
|
232
|
+
showBimonthly: cycleSetting.isOpenBimonthly,
|
|
233
|
+
showHalfYear: cycleSetting.isOpenHalfYear,
|
|
234
|
+
startMonth: cycleSetting.yearStartMonth
|
|
235
|
+
}, renderInnerContent({
|
|
236
|
+
btnRef: btnRef,
|
|
237
|
+
clickCallback: function clickCallback() {},
|
|
238
|
+
text: _formatCycleData(cycle, getCycleRange)
|
|
239
|
+
}));
|
|
241
240
|
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
'marginRight': 12
|
|
246
|
-
},
|
|
247
|
-
onClick: onCancelClickHandler
|
|
248
|
-
}, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(_titaUi.Button, {
|
|
249
|
-
size: "s",
|
|
250
|
-
type: "primary",
|
|
251
|
-
onClick: onSureClickHandler
|
|
252
|
-
}, "\u786E\u5B9A")));
|
|
253
|
-
|
|
254
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, canEdit ? /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, canEdit && !!cycleSetting ? /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
255
244
|
popup: popup,
|
|
256
245
|
popupPlacement: "bottomLeft",
|
|
257
246
|
ref: popRef,
|
|
258
|
-
popupAlign: popupAlign
|
|
247
|
+
popupAlign: popupAlign,
|
|
248
|
+
onPopupVisibleChange: handleVisibleChange
|
|
259
249
|
}, renderInnerContent({
|
|
260
250
|
btnRef: btnRef,
|
|
261
|
-
clickCallback: onSelectClickHandler,
|
|
262
251
|
text: _formatCycleData(cycle, getCycleRange)
|
|
263
252
|
})) : renderInnerContent({
|
|
264
253
|
btnRef: btnRef,
|
|
265
|
-
clickCallback: onSelectClickHandler,
|
|
266
254
|
text: _formatCycleData(cycle, getCycleRange)
|
|
267
255
|
}));
|
|
268
256
|
}
|
|
@@ -271,7 +271,7 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
|
|
|
271
271
|
|
|
272
272
|
if (data.isStandardMode) {
|
|
273
273
|
return /*#__PURE__*/_react["default"].createElement(_style.ReviewProblem, null, /*#__PURE__*/_react["default"].createElement(_style.ReviewCatalog, null, "\u95EE\u9898\u4E0E\u4E0D\u8DB3"), /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
274
|
-
maxLength:
|
|
274
|
+
maxLength: 5000,
|
|
275
275
|
value: (0, _mblog.htmlDecodeByRegExp)(data.Drawback),
|
|
276
276
|
initialHeight: 56,
|
|
277
277
|
style: {
|
|
@@ -299,7 +299,7 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
|
|
|
299
299
|
className: "delete-replay"
|
|
300
300
|
}, "\u5220\u9664"))), /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
301
301
|
ref: "textareaView".concat(index + 1),
|
|
302
|
-
maxLength:
|
|
302
|
+
maxLength: 5000,
|
|
303
303
|
value: (0, _mblog.htmlDecodeByRegExp)(item.drawback),
|
|
304
304
|
initialHeight: 56,
|
|
305
305
|
style: {
|
|
@@ -310,7 +310,7 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
|
|
|
310
310
|
},
|
|
311
311
|
placeholder: "<p>\u8BF7\u63CF\u8FF0\u51FA\u73B0\u7684\u67D0\u4E2A\u95EE\u9898\u5E76\u9488\u5BF9\u8BE5\u95EE\u9898\u5C55\u5F00\u5206\u6790</p>"
|
|
312
312
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_style.ReviewCatalogSecond, null, "\u6839\u672C\u539F\u56E0"), /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
313
|
-
maxLength:
|
|
313
|
+
maxLength: 5000,
|
|
314
314
|
value: (0, _mblog.htmlDecodeByRegExp)(item.cause),
|
|
315
315
|
autoResizing: true,
|
|
316
316
|
style: {
|
|
@@ -321,7 +321,7 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
|
|
|
321
321
|
},
|
|
322
322
|
placeholder: "<p>\u8BF7\u586B\u5199\u95EE\u9898\u51FA\u73B0\u7684\u6839\u672C\u539F\u56E0</p>"
|
|
323
323
|
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_style.ReviewCatalogSecond, null, "\u76F8\u5E94\u89E3\u51B3\u63AA\u65BD"), /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
324
|
-
maxLength:
|
|
324
|
+
maxLength: 5000,
|
|
325
325
|
value: (0, _mblog.htmlDecodeByRegExp)(item.measures),
|
|
326
326
|
autoResizing: true,
|
|
327
327
|
style: {
|
|
@@ -607,7 +607,7 @@ var ReviewBody = /*#__PURE__*/function (_PureComponent) {
|
|
|
607
607
|
}, ObjData.ObjType == 65 ? "KR".concat(ObjData.ObjIndex == 0 ? '' : ObjData.ObjIndex) : ''), /*#__PURE__*/_react["default"].createElement("p", {
|
|
608
608
|
className: "okr-name"
|
|
609
609
|
}, (0, _mblog.htmlDecodeByRegExp)(ObjData.ObjName)))), /*#__PURE__*/_react["default"].createElement(_style.ReviewWorth, null, /*#__PURE__*/_react["default"].createElement(_style.ReviewCatalog, null, "\u4EF7\u503C\u4E0E\u6536\u83B7"), /*#__PURE__*/_react["default"].createElement(_textarea["default"], {
|
|
610
|
-
maxLength:
|
|
610
|
+
maxLength: 5000,
|
|
611
611
|
value: (0, _mblog.htmlDecodeByRegExp)(data.gains),
|
|
612
612
|
initialHeight: 56,
|
|
613
613
|
style: {
|
|
@@ -69,18 +69,18 @@ var ReviewPop = /*#__PURE__*/function (_PureComponent) {
|
|
|
69
69
|
|
|
70
70
|
if (isStandardMode) {
|
|
71
71
|
// 标准模式
|
|
72
|
-
isAllowSubmit = (_this.characterCheck(data.gains,
|
|
72
|
+
isAllowSubmit = (_this.characterCheck(data.gains, 5000) || _this.characterCheck(data.Drawback, 5000)) && data.gains.length <= 5000 && data.Drawback.length <= 5000;
|
|
73
73
|
} else {
|
|
74
74
|
// 高级模式
|
|
75
75
|
// 是否填写问题与不足
|
|
76
76
|
var isHasDrawBack = data.drawbackList.some(function (item) {
|
|
77
|
-
return _this.characterCheck(item.drawback,
|
|
77
|
+
return _this.characterCheck(item.drawback, 5000);
|
|
78
78
|
}); // 问题与不足字数是否超出限制
|
|
79
79
|
|
|
80
80
|
var isDrawbackBeyondLimit = data.drawbackList.some(function (item) {
|
|
81
|
-
return item.cause.length >
|
|
81
|
+
return item.cause.length > 5000 || item.measures.length > 5000 || item.drawback.length > 5000;
|
|
82
82
|
});
|
|
83
|
-
isAllowSubmit = (_this.characterCheck(data.gains,
|
|
83
|
+
isAllowSubmit = (_this.characterCheck(data.gains, 5000) || isHasDrawBack) && data.gains.length <= 5000 && !isDrawbackBeyondLimit;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
_this.setState({
|