@titaui/pc 1.5.78 → 1.5.82
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 -9
- package/lib/components/change-okr/Filter.js +65 -133
- package/lib/components/change-okr/Item.js +0 -6
- package/lib/components/change-okr/filterTab.js +0 -2
- package/lib/components/change-okr/index.js +2 -2
- package/lib/components/checkbox/index.js +3 -4
- package/lib/components/communication/CommunicationRecord.js +161 -116
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.js +28 -53
- package/lib/components/communication/style.js +25 -21
- package/lib/components/dropdown-layer/icon-item.js +3 -5
- package/lib/components/dropdown-layer/index.css +0 -16
- package/lib/components/dropdown-layer/index.js +14 -21
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/form/form-fields/input/index.css +0 -11
- package/lib/components/form/form-fields/input/index.js +1 -3
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/mblog/components/MblogAction.js +6 -10
- package/lib/components/mblog/index.js +11 -24
- package/lib/components/mblog/style.js +8 -8
- package/lib/components/okr-detail/components/header/index.css +0 -4
- 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 +8 -15
- package/lib/components/okr-flow/child-node/work-node.js +1 -7
- package/lib/components/okr-period-selector/select-cycle.js +151 -139
- package/lib/components/okr-progress-detail/index.css +0 -1
- 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 +4 -149
- package/lib/components/period-selector/components/selector/index.js +38 -103
- package/lib/components/period-selector/components/selector/style.js +9 -23
- package/lib/components/period-selector/index.js +28 -29
- package/lib/components/popup/index.js +1 -3
- package/lib/components/radio/index.css +0 -5
- package/lib/components/radio/radio.js +4 -12
- package/lib/components/table/index.css +1 -0
- package/lib/components/upload/components/uploadedPreview.js +54 -62
- package/lib/components/upload/index.js +57 -89
- package/lib/components/upload/style.js +7 -7
- package/lib/components/upload/type.js +15 -15
- package/lib/components/upvote/index.js +14 -37
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +0 -4
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +24 -50
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +2 -11
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/index.js +5 -49
- package/lib/pages/home-page/components/data-list/nav-selector/index.js +0 -18
- package/lib/pages/home-page/components/data-list/table/utils-function.js +3 -6
- package/lib/utils/auth.js +5 -46
- package/lib/utils/bs-global.js +2 -26
- package/lib/utils/tools.js +20 -140
- package/package.json +2 -2
- package/lib/components/avatar/icon-avatar/index.css +0 -15
- package/lib/components/avatar/icon-avatar/index.js +0 -50
- package/lib/components/avatar/num-avatar/index.css +0 -12
- package/lib/components/avatar/num-avatar/index.js +0 -34
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/drop-down-arrow.js +0 -93
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/primary.js +0 -33
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/default-button/index.css +0 -49
- package/lib/components/button/default-button/index.js +0 -51
- package/lib/components/button/export-button/index.css +0 -51
- package/lib/components/button/export-button/index.js +0 -81
- package/lib/components/button/images/daoru.svg +0 -18
- package/lib/components/button/index.js +0 -23
- package/lib/components/button/interface.js +0 -5
- package/lib/components/communication/index.css +0 -63
- package/lib/components/create-okr/animation/check-animation.js +0 -2746
- package/lib/components/create-okr/constant.js +0 -27
- package/lib/components/create-okr/createCycle.js +0 -171
- package/lib/components/create-okr/createSuccessCmp.js +0 -233
- package/lib/components/create-okr/createSuccessCmpWrapper.js +0 -20
- package/lib/components/create-okr/fields/date-cycle.js +0 -98
- package/lib/components/create-okr/fields/index.css +0 -346
- package/lib/components/create-okr/fields/index.js +0 -17
- package/lib/components/create-okr/fields/input-with-err-popup.js +0 -57
- package/lib/components/create-okr/fields/o-new-name.js +0 -197
- package/lib/components/create-okr/fields/okr-case.js +0 -98
- package/lib/components/create-okr/fields/okr-classify.js +0 -51
- package/lib/components/create-okr/fields/okr-create-suggest.js +0 -147
- package/lib/components/create-okr/fields/okr-new-user-selector.js +0 -106
- package/lib/components/create-okr/fields/okr-parent.js +0 -157
- package/lib/components/create-okr/fields/okr-type-detail.js +0 -196
- package/lib/components/create-okr/fields/okr-type.js +0 -131
- package/lib/components/create-okr/fields/okr-visibility-detail.js +0 -224
- package/lib/components/create-okr/fields/okr-visibility.js +0 -169
- package/lib/components/create-okr/img/check-normal.svg +0 -29
- package/lib/components/create-okr/img/check-right.svg +0 -16
- package/lib/components/create-okr/img/check-wrong.svg +0 -29
- package/lib/components/create-okr/img/create-success-head.png +0 -0
- package/lib/components/create-okr/img/create-success-left-quotation.svg +0 -14
- package/lib/components/create-okr/img/create-success-message.svg +0 -1
- package/lib/components/create-okr/img/create-success-right-quotation.svg +0 -14
- package/lib/components/create-okr/img/create-success-shadow.svg +0 -23
- package/lib/components/create-okr/img/example.svg +0 -11
- package/lib/components/create-okr/img/hand.svg +0 -12
- package/lib/components/create-okr/img/kr-add.svg +0 -12
- package/lib/components/create-okr/img/left-quotation.svg +0 -12
- package/lib/components/create-okr/img/light.svg +0 -1
- package/lib/components/create-okr/img/pack-up.js +0 -28
- package/lib/components/create-okr/img/qr-code.png +0 -0
- package/lib/components/create-okr/img/right-quotation.svg +0 -12
- package/lib/components/create-okr/img/shower.png +0 -0
- package/lib/components/create-okr/img/target.svg +0 -19
- package/lib/components/create-okr/img/teach-okr.svg +0 -17
- package/lib/components/create-okr/img/wave.png +0 -0
- package/lib/components/create-okr/img/weight.svg +0 -12
- package/lib/components/create-okr/index.css +0 -446
- package/lib/components/create-okr/index.js +0 -911
- package/lib/components/create-okr/interface.js +0 -5
- package/lib/components/create-okr/kr-items/index.css +0 -180
- package/lib/components/create-okr/kr-items/kr-item-weight.js +0 -194
- package/lib/components/create-okr/kr-items/krDatas.js +0 -299
- package/lib/components/create-okr/kr-items/krItem.js +0 -167
- package/lib/components/create-okr/objectType.js +0 -273
- package/lib/components/create-okr/request-api.js +0 -220
- package/lib/components/create-okr/style.js +0 -100
- package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +0 -124
- package/lib/components/create-okr/utils/helper.js +0 -99
- package/lib/components/create-okr/utils/index.js +0 -23
- package/lib/components/dynamic/components/condition-render/index.js +0 -20
- package/lib/components/dynamic/components/dangerous-html/index.js +0 -22
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -78
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -192
- package/lib/components/dynamic/components/obj-status/index.css +0 -22
- package/lib/components/dynamic/components/obj-status/index.js +0 -38
- package/lib/components/dynamic/components/percent/index.css +0 -21
- package/lib/components/dynamic/components/percent/index.js +0 -38
- package/lib/components/dynamic/components/title/index.css +0 -35
- package/lib/components/dynamic/components/title/index.js +0 -59
- package/lib/components/dynamic/constant.js +0 -96
- package/lib/components/dynamic/context/index.js +0 -13
- package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -101
- package/lib/components/dynamic/dynamic-item/components/header/index.js +0 -294
- 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-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +0 -173
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +0 -54
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +0 -107
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +0 -48
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +0 -89
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +0 -96
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +0 -171
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +0 -67
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +0 -110
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +0 -16
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +0 -111
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +0 -158
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +0 -215
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +0 -16
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +0 -91
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +0 -125
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +0 -192
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +0 -138
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +0 -183
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +0 -153
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +0 -138
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +0 -97
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +0 -207
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +0 -54
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +0 -107
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +0 -50
- 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 +0 -111
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +0 -164
- package/lib/components/dynamic/dynamic-item/index.css +0 -128
- package/lib/components/dynamic/dynamic-item/index.js +0 -352
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- 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 +0 -126
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -157
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -107
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/index.js +0 -76
- package/lib/components/dynamic/dynamic-liking/item.js +0 -90
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-list/index.css +0 -36
- package/lib/components/dynamic/dynamic-list/index.js +0 -61
- package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -130
- package/lib/components/dynamic/dynamic-topping/index.js +0 -78
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -138
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -204
- package/lib/components/dynamic/dynamic.js +0 -391
- package/lib/components/dynamic/export-module/index.js +0 -33
- package/lib/components/dynamic/img/dynamic-P1.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P2.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P3.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P4.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P5.svg +0 -15
- package/lib/components/dynamic/img/dynamic-delay.svg +0 -17
- package/lib/components/dynamic/img/dynamic-desire.svg +0 -61
- package/lib/components/dynamic/img/dynamic-empty.png +0 -0
- package/lib/components/dynamic/img/dynamic-end.svg +0 -17
- package/lib/components/dynamic/img/dynamic-left-quoto.svg +0 -13
- package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
- package/lib/components/dynamic/img/dynamic-normal.svg +0 -17
- package/lib/components/dynamic/img/dynamic-promise.svg +0 -61
- package/lib/components/dynamic/img/dynamic-reword.svg +0 -24
- package/lib/components/dynamic/img/dynamic-right-quoto.svg +0 -13
- package/lib/components/dynamic/img/dynamic-risk.svg +0 -17
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- package/lib/components/dynamic/index.js +0 -27
- package/lib/components/dynamic/interface.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -42
- 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 +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -112
- package/lib/components/dynamic/request-api.js +0 -92
- package/lib/components/dynamic/util.js +0 -140
- package/lib/components/file-list/components/single-file/index.css +0 -84
- package/lib/components/file-list/components/single-file/index.js +0 -115
- package/lib/components/file-list/img/new-file-list-doc.svg +0 -1
- package/lib/components/file-list/img/new-file-list-other.svg +0 -1
- package/lib/components/file-list/img/new-file-list-pdf.svg +0 -1
- package/lib/components/file-list/img/new-file-list-ppt.svg +0 -1
- package/lib/components/file-list/img/new-file-list-radio.svg +0 -1
- package/lib/components/file-list/img/new-file-list-video.svg +0 -1
- package/lib/components/file-list/img/new-file-list-xls.svg +0 -1
- package/lib/components/file-list/index.css +0 -5
- package/lib/components/file-list/index.js +0 -61
- package/lib/components/file-list/interface.js +0 -5
- package/lib/components/file-list/util.js +0 -78
- package/lib/components/img-viewer/icon/enlarge.js +0 -30
- package/lib/components/img-viewer/icon/left-rotate.js +0 -46
- package/lib/components/img-viewer/icon/right-rotate.js +0 -44
- package/lib/components/img-viewer/icon/shrink.js +0 -37
- package/lib/components/img-viewer/image/loading.gif +0 -0
- package/lib/components/img-viewer/index.css +0 -155
- package/lib/components/img-viewer/index.js +0 -228
- package/lib/components/img-viewer/interface.js +0 -5
- package/lib/components/img-viewer/util.js +0 -16
- package/lib/components/publish-dynamic-modal/index.js +0 -13
- package/lib/components/publish-dynamic-modal/interface.js +0 -5
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +0 -3
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +0 -191
- package/lib/components/publish-dynamic-modal/requist-api.js +0 -48
- package/lib/components/search-key-handle/index.js +0 -39
- package/lib/components/upload/img/doc.svg +0 -1
- package/lib/components/upload/img/other.svg +0 -1
- package/lib/components/upload/img/pdf.svg +0 -1
- package/lib/components/upload/img/ppt.svg +0 -1
- package/lib/components/upload/img/radio.svg +0 -1
- package/lib/components/upload/img/video.svg +0 -1
- package/lib/components/upload/img/xls.svg +0 -1
- package/lib/components/upload/index.css +0 -26
- package/lib/components/upload/util.js +0 -102
- package/lib/components-v1/buttonv2/ButtonLinked.js +0 -35
- package/lib/components-v1/buttonv2/ButtonOutlined.js +0 -64
- package/lib/components-v1/buttonv2/ButtonRounded.js +0 -101
- package/lib/components-v1/buttonv2/DefaultButton.js +0 -86
- package/lib/components-v1/buttonv2/index.js +0 -37
- package/lib/components-v1/buttonv2/style/style.js +0 -53
- package/lib/components-v1/buttonv2/style/theme.css +0 -3
- package/lib/components-v1/confirm/index.js +0 -158
- package/lib/pages/dynamic/index.css +0 -5
- package/lib/pages/dynamic/index.js +0 -25
- package/lib/pages/like-ranking/column.js +0 -141
- package/lib/pages/like-ranking/filter-buttons/department.js +0 -44
- package/lib/pages/like-ranking/filter-buttons/group.js +0 -34
- package/lib/pages/like-ranking/filter-buttons/index.css +0 -19
- package/lib/pages/like-ranking/filter-buttons/index.js +0 -44
- package/lib/pages/like-ranking/filter-buttons/modular.js +0 -110
- package/lib/pages/like-ranking/filter-buttons/name.js +0 -73
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +0 -27
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +0 -38
- package/lib/pages/like-ranking/filter-buttons/timer.js +0 -56
- 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 +0 -185
- package/lib/pages/like-ranking/index.js +0 -252
- package/lib/pages/like-ranking/mock.js +0 -366
- package/lib/pages/like-ranking/request-api.js +0 -15
- package/lib/utils/format-time.js +0 -161
- package/lib/utils/helpers.js +0 -41
- package/lib/utils/roundWeight.js +0 -105
- package/yarn-error.log +0 -15894
|
@@ -1,98 +0,0 @@
|
|
|
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 _style = require("../style");
|
|
13
|
-
|
|
14
|
-
var _okrcaseLibrary = _interopRequireDefault(require("../../okrcase-library"));
|
|
15
|
-
|
|
16
|
-
var _dialog = _interopRequireDefault(require("../../dialog"));
|
|
17
|
-
|
|
18
|
-
var _popDownNotification = require("../../pop-down-notification");
|
|
19
|
-
|
|
20
|
-
require("./index.css");
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
30
|
-
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."); }
|
|
31
|
-
|
|
32
|
-
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); }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
|
-
var _default = function _default(_ref) {
|
|
41
|
-
var onOkrApply = _ref.onOkrApply,
|
|
42
|
-
okrTemplateEnabled = _ref.okrTemplateEnabled;
|
|
43
|
-
|
|
44
|
-
var _useState = (0, _react.useState)(false),
|
|
45
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
46
|
-
visible = _useState2[0],
|
|
47
|
-
setVisible = _useState2[1];
|
|
48
|
-
|
|
49
|
-
var okrCaseClickHandler = function okrCaseClickHandler() {
|
|
50
|
-
setVisible(true);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
var onCasesCloseHandler = function onCasesCloseHandler() {
|
|
54
|
-
setVisible(false);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
var OnOkrApplyHandler = function OnOkrApplyHandler(data) {
|
|
58
|
-
onOkrApply && onOkrApply(data);
|
|
59
|
-
setVisible(false);
|
|
60
|
-
|
|
61
|
-
_popDownNotification.Toast.Success("成功套用");
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement(_style.Line, null, okrTemplateEnabled ? /*#__PURE__*/_react["default"].createElement(_style.CaseLink, {
|
|
65
|
-
onClick: okrCaseClickHandler,
|
|
66
|
-
className: "tu-icon-shoushi"
|
|
67
|
-
}, "\u4ECEOKR\u6848\u4F8B\u5E93\u6DFB\u52A0") : null, okrTemplateEnabled && /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
68
|
-
zIndex: 99999,
|
|
69
|
-
noHeadLine: true,
|
|
70
|
-
visible: visible,
|
|
71
|
-
onClose: onCasesCloseHandler,
|
|
72
|
-
noFooter: true,
|
|
73
|
-
noCloseIcon: true,
|
|
74
|
-
destroyOnClose: true,
|
|
75
|
-
style: {
|
|
76
|
-
width: "100%",
|
|
77
|
-
height: "100%"
|
|
78
|
-
},
|
|
79
|
-
maskClosable: true
|
|
80
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
|
-
className: "create-okr__okr-case"
|
|
82
|
-
}, /*#__PURE__*/_react["default"].createElement(_okrcaseLibrary["default"], {
|
|
83
|
-
onClose: onCasesCloseHandler,
|
|
84
|
-
onApplyTpl: OnOkrApplyHandler
|
|
85
|
-
}))));
|
|
86
|
-
}; // <OldModal
|
|
87
|
-
// ref={okrCaseModalRef}
|
|
88
|
-
// modalRootCls='okr-create-cases-modal'
|
|
89
|
-
// mask={false}
|
|
90
|
-
// offsetPosition={{ 'top': 41 }}
|
|
91
|
-
// fullSize={true}
|
|
92
|
-
// >
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
exports["default"] = _default;
|
|
96
|
-
{
|
|
97
|
-
/* <OKRCases onClose={onCasesCloseHandler} onApplyTpl={OnOkrApplyHandler} /> */
|
|
98
|
-
} // </OldModal>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _titaUi = require("tita-ui");
|
|
11
|
-
|
|
12
|
-
var _bsGlobal = require("../../../utils/bs-global");
|
|
13
|
-
|
|
14
|
-
var _style = require("../style");
|
|
15
|
-
|
|
16
|
-
require("./index.css");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
var okrClassifyList = [{
|
|
21
|
-
value: 1,
|
|
22
|
-
lable: "承诺型"
|
|
23
|
-
}, {
|
|
24
|
-
value: 2,
|
|
25
|
-
lable: "愿景型"
|
|
26
|
-
}];
|
|
27
|
-
|
|
28
|
-
var _default = function _default(_ref) {
|
|
29
|
-
var okrClassify = _ref.okrClassify,
|
|
30
|
-
setOkrClassify = _ref.setOkrClassify,
|
|
31
|
-
_ref$isCreateModal = _ref.isCreateModal,
|
|
32
|
-
isCreateModal = _ref$isCreateModal === void 0 ? false : _ref$isCreateModal;
|
|
33
|
-
var setting = (0, _bsGlobal.getBSGlobal)("OkrAdvancedSetting").KRSetting;
|
|
34
|
-
var openOkrType = setting.OkrTypeSetting;
|
|
35
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
36
|
-
className: "create-modal__sub-block",
|
|
37
|
-
style: {
|
|
38
|
-
flex: openOkrType ? 1 : 2
|
|
39
|
-
}
|
|
40
|
-
}, isCreateModal ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
-
className: "create-modal__sub-title"
|
|
42
|
-
}, "\u7C7B\u522B") : /*#__PURE__*/_react["default"].createElement(_style.TitleLine, null, "\u7C7B\u522B"), /*#__PURE__*/_react["default"].createElement(_titaUi.Select, {
|
|
43
|
-
value: okrClassify,
|
|
44
|
-
onChange: function onChange(v) {
|
|
45
|
-
setOkrClassify(v);
|
|
46
|
-
},
|
|
47
|
-
options: okrClassifyList
|
|
48
|
-
}));
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
exports["default"] = _default;
|
|
@@ -1,147 +0,0 @@
|
|
|
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"] = exports.EOkrCreateSuggestResultType = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _lottieWeb = _interopRequireDefault(require("lottie-web"));
|
|
13
|
-
|
|
14
|
-
var _example = _interopRequireDefault(require("../img/example.svg"));
|
|
15
|
-
|
|
16
|
-
var _packUp = _interopRequireDefault(require("../img/pack-up"));
|
|
17
|
-
|
|
18
|
-
var _leftQuotation = _interopRequireDefault(require("../img/left-quotation.svg"));
|
|
19
|
-
|
|
20
|
-
var _rightQuotation = _interopRequireDefault(require("../img/right-quotation.svg"));
|
|
21
|
-
|
|
22
|
-
var _checkRight = _interopRequireDefault(require("../img/check-right.svg"));
|
|
23
|
-
|
|
24
|
-
var _checkWrong = _interopRequireDefault(require("../img/check-wrong.svg"));
|
|
25
|
-
|
|
26
|
-
var _checkNormal = _interopRequireDefault(require("../img/check-normal.svg"));
|
|
27
|
-
|
|
28
|
-
var _checkAnimation = _interopRequireDefault(require("../animation/check-animation"));
|
|
29
|
-
|
|
30
|
-
var _wave = _interopRequireDefault(require("../img/wave.png"));
|
|
31
|
-
|
|
32
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
-
|
|
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); }
|
|
35
|
-
|
|
36
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
-
|
|
38
|
-
var EOkrCreateSuggestResultType;
|
|
39
|
-
exports.EOkrCreateSuggestResultType = EOkrCreateSuggestResultType;
|
|
40
|
-
|
|
41
|
-
(function (EOkrCreateSuggestResultType) {
|
|
42
|
-
EOkrCreateSuggestResultType["normal"] = "normal";
|
|
43
|
-
EOkrCreateSuggestResultType["wrong"] = "wrong";
|
|
44
|
-
EOkrCreateSuggestResultType["correct"] = "correct";
|
|
45
|
-
})(EOkrCreateSuggestResultType || (exports.EOkrCreateSuggestResultType = EOkrCreateSuggestResultType = {}));
|
|
46
|
-
|
|
47
|
-
var OkrCreateSuggest = function OkrCreateSuggest(_ref) {
|
|
48
|
-
var descs = _ref.descs,
|
|
49
|
-
example = _ref.example,
|
|
50
|
-
results = _ref.results,
|
|
51
|
-
handleClose = _ref.handleClose,
|
|
52
|
-
isOSuggest = _ref.isOSuggest,
|
|
53
|
-
isInput = _ref.isInput;
|
|
54
|
-
var handleCloseCheck = (0, _react.useCallback)(function () {
|
|
55
|
-
handleClose && handleClose();
|
|
56
|
-
}, [handleClose]);
|
|
57
|
-
var animationRef = (0, _react.useRef)(document.createElement("div"));
|
|
58
|
-
var renderCheckIcon = (0, _react.useCallback)(function (result) {
|
|
59
|
-
switch (result) {
|
|
60
|
-
case "wrong":
|
|
61
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
62
|
-
className: "okr-create-suggest__check-item-icon",
|
|
63
|
-
src: _checkWrong["default"]
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
case "correct":
|
|
67
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
68
|
-
className: "okr-create-suggest__check-item-icon",
|
|
69
|
-
src: _checkRight["default"]
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
default:
|
|
73
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
74
|
-
className: "okr-create-suggest__check-item-icon",
|
|
75
|
-
src: _checkNormal["default"]
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}, []);
|
|
79
|
-
(0, _react.useEffect)(function () {
|
|
80
|
-
_lottieWeb["default"].loadAnimation({
|
|
81
|
-
container: animationRef.current,
|
|
82
|
-
// 容器节点
|
|
83
|
-
renderer: "svg",
|
|
84
|
-
loop: true,
|
|
85
|
-
autoplay: true,
|
|
86
|
-
animationData: _checkAnimation["default"] // JSON数据
|
|
87
|
-
|
|
88
|
-
});
|
|
89
|
-
}, []);
|
|
90
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
-
className: "okr-create-suggest"
|
|
92
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
|
-
className: "okr-create-suggest__triangle ".concat(isOSuggest ? "" : "okr-create-suggest__triangle--iskr")
|
|
94
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
95
|
-
src: _leftQuotation["default"]
|
|
96
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
-
className: "okr-create-suggest__descs"
|
|
98
|
-
}, descs.map(function (desc, key) {
|
|
99
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
-
className: "okr-create-suggest__desc",
|
|
101
|
-
key: key
|
|
102
|
-
}, desc);
|
|
103
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: "okr-create-suggest__right-quotation"
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
106
|
-
src: _rightQuotation["default"]
|
|
107
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
-
className: "okr-create-suggest__block"
|
|
109
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
-
className: "okr-create-suggest__block-title"
|
|
111
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
112
|
-
className: "okr-create-suggest__block-title-icon",
|
|
113
|
-
src: _example["default"]
|
|
114
|
-
}), "\u793A\u4F8B"), example.map(function (item, index) {
|
|
115
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
|
-
className: "okr-create-suggest__example",
|
|
117
|
-
key: index
|
|
118
|
-
}, item);
|
|
119
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: "okr-create-suggest__animation-wrapper"
|
|
121
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
-
ref: animationRef,
|
|
123
|
-
className: isInput ? "okr-create-suggest__animation-wave" : "okr-create-suggest__animation-wave--hidden"
|
|
124
|
-
}), isInput ? null : /*#__PURE__*/_react["default"].createElement("img", {
|
|
125
|
-
className: "okr-create-suggest__animation-wave--static",
|
|
126
|
-
src: _wave["default"]
|
|
127
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
|
-
className: "okr-create-suggest__animation-text"
|
|
129
|
-
}, isInput ? "智能检测中" : "\u7B49\u5F85\u8F93\u5165".concat(isOSuggest ? "目标" : "关键成果"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
-
className: "okr-create-suggest__block"
|
|
131
|
-
}, results.map(function (item, index) {
|
|
132
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
-
className: "okr-create-suggest__check-item",
|
|
134
|
-
key: index
|
|
135
|
-
}, renderCheckIcon(item.result), item.text);
|
|
136
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
|
-
className: "okr-create-suggest__pack-up",
|
|
138
|
-
onClick: handleCloseCheck
|
|
139
|
-
}, /*#__PURE__*/_react["default"].createElement(_packUp["default"], {
|
|
140
|
-
color: "currentColor"
|
|
141
|
-
}), " ", /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
-
className: "okr-create-suggest__pack-up-text"
|
|
143
|
-
}, "\u6536\u8D77")));
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
var _default = OkrCreateSuggest;
|
|
147
|
-
exports["default"] = _default;
|
|
@@ -1,106 +0,0 @@
|
|
|
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 _titaUi = require("tita-ui");
|
|
13
|
-
|
|
14
|
-
var _UserSelectorPop = _interopRequireDefault(require("../../../components-v1/userSelector/UserSelectorPop"));
|
|
15
|
-
|
|
16
|
-
var _openData = require("../../../utils/open-data");
|
|
17
|
-
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
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); }
|
|
23
|
-
|
|
24
|
-
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; }
|
|
25
|
-
|
|
26
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
27
|
-
|
|
28
|
-
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."); }
|
|
29
|
-
|
|
30
|
-
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); }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
|
-
|
|
38
|
-
function NewUserSelector(_ref) {
|
|
39
|
-
var user = _ref.user,
|
|
40
|
-
changeUser = _ref.changeUser,
|
|
41
|
-
container = _ref.container,
|
|
42
|
-
_ref$style = _ref.style,
|
|
43
|
-
style = _ref$style === void 0 ? {} : _ref$style;
|
|
44
|
-
|
|
45
|
-
var _useState = (0, _react.useState)(false),
|
|
46
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
47
|
-
widthOverflow = _useState2[0],
|
|
48
|
-
setWidthOverflow = _useState2[1];
|
|
49
|
-
|
|
50
|
-
var spanRef = (0, _react.useRef)(document.createElement("span"));
|
|
51
|
-
|
|
52
|
-
var onUserSelectorSubmitHandler = function onUserSelectorSubmitHandler(users) {
|
|
53
|
-
changeUser && changeUser(users);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
(0, _react.useEffect)(function () {
|
|
57
|
-
if (spanRef.current.offsetWidth > 48) {
|
|
58
|
-
setWidthOverflow(true);
|
|
59
|
-
} else {
|
|
60
|
-
setWidthOverflow(false);
|
|
61
|
-
}
|
|
62
|
-
}, [user.Name]);
|
|
63
|
-
return /*#__PURE__*/_react["default"].createElement(_UserSelectorPop["default"], {
|
|
64
|
-
stopPropagation: true,
|
|
65
|
-
onSubmit: onUserSelectorSubmitHandler,
|
|
66
|
-
onCancel: function onCancel() {},
|
|
67
|
-
container: container.current && container.current.getRef(),
|
|
68
|
-
multi: false,
|
|
69
|
-
style: style
|
|
70
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
71
|
-
className: "user-info"
|
|
72
|
-
}, /*#__PURE__*/_react["default"].createElement(_titaUi.Avatar, {
|
|
73
|
-
size: {
|
|
74
|
-
width: 24,
|
|
75
|
-
textNum: 1,
|
|
76
|
-
fontSize: 12
|
|
77
|
-
},
|
|
78
|
-
src: user.Medium,
|
|
79
|
-
color: user.Color // @ts-ignore
|
|
80
|
-
,
|
|
81
|
-
name: user.Name,
|
|
82
|
-
userId: user.Id
|
|
83
|
-
}), widthOverflow ? /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
|
|
84
|
-
content: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
85
|
-
name: user.Name,
|
|
86
|
-
id: user.Id
|
|
87
|
-
}),
|
|
88
|
-
container: document.body
|
|
89
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
90
|
-
className: "user__name"
|
|
91
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
92
|
-
name: user.Name,
|
|
93
|
-
id: user.Id
|
|
94
|
-
}))) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
|
-
className: "user__name"
|
|
96
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
97
|
-
name: user.Name,
|
|
98
|
-
id: user.Id
|
|
99
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
100
|
-
className: "user__name--hidden",
|
|
101
|
-
ref: spanRef
|
|
102
|
-
}, user.Name)));
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
var _default = NewUserSelector;
|
|
106
|
-
exports["default"] = _default;
|
|
@@ -1,157 +0,0 @@
|
|
|
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 _helper = require("../utils/helper");
|
|
13
|
-
|
|
14
|
-
var _style = require("../style");
|
|
15
|
-
|
|
16
|
-
var _bsGlobal = require("../../../utils/bs-global");
|
|
17
|
-
|
|
18
|
-
var _changeOkr = _interopRequireDefault(require("../../change-okr"));
|
|
19
|
-
|
|
20
|
-
require("./index.css");
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
30
|
-
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."); }
|
|
31
|
-
|
|
32
|
-
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); }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
|
-
var _default = function _default(_ref) {
|
|
41
|
-
var parent = _ref.parent,
|
|
42
|
-
setParent = _ref.setParent,
|
|
43
|
-
modalRef = _ref.modalRef,
|
|
44
|
-
isCreateModal = _ref.isCreateModal,
|
|
45
|
-
_ref$setParentOkr = _ref.setParentOkr,
|
|
46
|
-
setParentOkr = _ref$setParentOkr === void 0 ? function () {} : _ref$setParentOkr;
|
|
47
|
-
|
|
48
|
-
var _getUserInfo = (0, _bsGlobal.getUserInfo)(),
|
|
49
|
-
Name = _getUserInfo.Name,
|
|
50
|
-
Id = _getUserInfo.Id,
|
|
51
|
-
UserAvatar = _getUserInfo.UserAvatar; //上级信息 对齐目标弹层用 【临时解决方案,做对齐目标弹层后在弹层中获取】
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var _useState = (0, _react.useState)(),
|
|
55
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
-
toUser = _useState2[0],
|
|
57
|
-
setToUser = _useState2[1];
|
|
58
|
-
|
|
59
|
-
var parentRef = (0, _react.useRef)();
|
|
60
|
-
|
|
61
|
-
var onSelectClickHandler = function onSelectClickHandler() {
|
|
62
|
-
parentRef.current && parentRef.current.show(modalRef.current && modalRef.current.getRef(), 0);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
var iconCrossClickHandler = function iconCrossClickHandler(e) {
|
|
66
|
-
e.stopPropagation();
|
|
67
|
-
setParent({
|
|
68
|
-
parentWorkId: 0,
|
|
69
|
-
parentWorkName: "",
|
|
70
|
-
parentType: 0,
|
|
71
|
-
parentKrId: 0
|
|
72
|
-
});
|
|
73
|
-
setParentOkr(null);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
var onChangeOkrConfirmHandler = function onChangeOkrConfirmHandler(confirm) {
|
|
77
|
-
var workId = confirm.workId,
|
|
78
|
-
_okrInfo = confirm._okrInfo;
|
|
79
|
-
|
|
80
|
-
if (workId === 0) {
|
|
81
|
-
// 说明对齐目标是KR
|
|
82
|
-
var mileStoneId = confirm.mileStoneId,
|
|
83
|
-
mileStoneName = confirm.mileStoneName,
|
|
84
|
-
workIdCopy = confirm.workIdCopy;
|
|
85
|
-
setParent({
|
|
86
|
-
parentWorkId: workIdCopy,
|
|
87
|
-
parentWorkName: mileStoneName,
|
|
88
|
-
parentType: 2,
|
|
89
|
-
parentKrId: mileStoneId
|
|
90
|
-
});
|
|
91
|
-
} else {
|
|
92
|
-
// 我就是对齐目标
|
|
93
|
-
var _workId = confirm.workId,
|
|
94
|
-
workName = confirm.workName;
|
|
95
|
-
setParent({
|
|
96
|
-
parentWorkId: _workId,
|
|
97
|
-
parentWorkName: workName,
|
|
98
|
-
parentType: 1,
|
|
99
|
-
parentKrId: 0
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
setParentOkr(_okrInfo);
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
(0, _react.useEffect)(function () {
|
|
107
|
-
// @ts-ignore
|
|
108
|
-
(0, _helper.taker)((0, _helper.getApiUrl)("org/Get"), "get").then(function (res) {
|
|
109
|
-
if (res.Code == 1) {
|
|
110
|
-
var SuperiorUser = res.Data.SuperiorUser;
|
|
111
|
-
|
|
112
|
-
if (SuperiorUser) {
|
|
113
|
-
setToUser({
|
|
114
|
-
name: SuperiorUser.Name,
|
|
115
|
-
userId: SuperiorUser.Id,
|
|
116
|
-
avatar: SuperiorUser.UserAvatar
|
|
117
|
-
});
|
|
118
|
-
} else {
|
|
119
|
-
setToUser({
|
|
120
|
-
name: Name,
|
|
121
|
-
userId: Id,
|
|
122
|
-
avatar: UserAvatar
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}, []);
|
|
128
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
129
|
-
className: "create-modal__sub-block"
|
|
130
|
-
}, isCreateModal ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
-
className: "create-modal__sub-title"
|
|
132
|
-
}, "\u5BF9\u9F50\u76EE\u6807") : /*#__PURE__*/_react["default"].createElement(_style.TitleLine, null, "\u5BF9\u9F50\u76EE\u6807"), /*#__PURE__*/_react["default"].createElement(_style.SelectBtn, {
|
|
133
|
-
onClick: onSelectClickHandler
|
|
134
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
|
-
style: {
|
|
136
|
-
color: !parent.parentWorkName ? "#BFC7D5" : ""
|
|
137
|
-
}
|
|
138
|
-
}, !parent.parentWorkName ? "选择对齐上级目标" : parent.parentWorkName), !!parent.parentWorkName && /*#__PURE__*/_react["default"].createElement("a", {
|
|
139
|
-
className: "tu-icon-cross",
|
|
140
|
-
onClick: iconCrossClickHandler
|
|
141
|
-
}), /*#__PURE__*/_react["default"].createElement("i", {
|
|
142
|
-
className: "tu-icon-sort-down"
|
|
143
|
-
}))), toUser && /*#__PURE__*/_react["default"].createElement(_changeOkr["default"], {
|
|
144
|
-
className: "parent-target-pop-index",
|
|
145
|
-
alilgn: "top",
|
|
146
|
-
container: modalRef.current && modalRef.current.getRef(),
|
|
147
|
-
eventBridge: "",
|
|
148
|
-
okrPopType: 1,
|
|
149
|
-
toUser: toUser // 这里异步数据
|
|
150
|
-
,
|
|
151
|
-
ref: parentRef,
|
|
152
|
-
parentId: parent.parentType == 1 ? parent.parentWorkId : parent.parentKrId,
|
|
153
|
-
onConfirm: onChangeOkrConfirmHandler
|
|
154
|
-
}), /*#__PURE__*/_react["default"].createElement(_style.Space, null));
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
exports["default"] = _default;
|