@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,192 +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 _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
|
-
|
|
16
|
-
var _tooltip = require("../../../tooltip");
|
|
17
|
-
|
|
18
|
-
var _openData = require("../../../../utils/open-data");
|
|
19
|
-
|
|
20
|
-
var _constant = require("../../constant");
|
|
21
|
-
|
|
22
|
-
var _dynamicRelative = _interopRequireDefault(require("./img/dynamic-relative.svg"));
|
|
23
|
-
|
|
24
|
-
var _conditionRender = _interopRequireDefault(require("../../components/condition-render"));
|
|
25
|
-
|
|
26
|
-
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
27
|
-
|
|
28
|
-
var _util = require("../../util");
|
|
29
|
-
|
|
30
|
-
var _context = require("../../context");
|
|
31
|
-
|
|
32
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
33
|
-
|
|
34
|
-
require("./index.css");
|
|
35
|
-
|
|
36
|
-
var _excluded = ["data"];
|
|
37
|
-
|
|
38
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
39
|
-
|
|
40
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
|
-
|
|
42
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
-
|
|
44
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
|
-
|
|
46
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
47
|
-
|
|
48
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
49
|
-
|
|
50
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
51
|
-
|
|
52
|
-
var prefix = "titaui-dynamic-relative-item";
|
|
53
|
-
|
|
54
|
-
var DynamicRelative = function DynamicRelative(_ref) {
|
|
55
|
-
var _classNames;
|
|
56
|
-
|
|
57
|
-
var data = _ref.data,
|
|
58
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
|
-
|
|
60
|
-
var objName = data.objName,
|
|
61
|
-
objId = data.objId,
|
|
62
|
-
objType = data.objType,
|
|
63
|
-
relateObjType = data.relateObjType,
|
|
64
|
-
relateObjName = data.relateObjName,
|
|
65
|
-
relateObjId = data.relateObjId,
|
|
66
|
-
objCycleName = data.objCycleName,
|
|
67
|
-
status = data.status,
|
|
68
|
-
objPrincipalUser = data.objPrincipalUser,
|
|
69
|
-
rObjprincipalUser = data.rObjprincipalUser,
|
|
70
|
-
rObjCycleName = data.rObjCycleName,
|
|
71
|
-
publishUser = data.publishUser;
|
|
72
|
-
|
|
73
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
74
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
75
|
-
|
|
76
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
77
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
78
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
79
|
-
|
|
80
|
-
var handleClickTitle = function handleClickTitle(id, type) {
|
|
81
|
-
if (type === _constant.EObjType.Kr) {
|
|
82
|
-
_manager["default"].open("krDetail", {
|
|
83
|
-
krId: id
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (type === _constant.EObjType.O) {
|
|
88
|
-
_manager["default"].open("okrDetail", {
|
|
89
|
-
okrId: id
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (type === _constant.EObjType.Project) {
|
|
94
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + id));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (type === _constant.EObjType.Task) {
|
|
98
|
-
window.Talent.app.vent.trigger("global-pull-screen", id, "task");
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
var renderDesc = (0, _react.useMemo)(function () {
|
|
103
|
-
var text;
|
|
104
|
-
|
|
105
|
-
if (relateObjType === _constant.EObjType.Kr) {
|
|
106
|
-
text = "关联了关键成果";
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (relateObjType === _constant.EObjType.O) {
|
|
110
|
-
text = "关联了目标";
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
114
|
-
className: prefix + "__operate-desc"
|
|
115
|
-
}, text), /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
-
className: prefix + "-desc-operate-type",
|
|
117
|
-
style: {
|
|
118
|
-
background: feedTypeColor
|
|
119
|
-
}
|
|
120
|
-
}, feedTypeText));
|
|
121
|
-
}, []);
|
|
122
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
-
className: prefix
|
|
124
|
-
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
125
|
-
data: data
|
|
126
|
-
}, restProps, {
|
|
127
|
-
desc: renderDesc,
|
|
128
|
-
user: publishUser
|
|
129
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
-
className: "".concat(prefix, "__content")
|
|
131
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
|
-
className: prefix + "__obj"
|
|
133
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
-
className: prefix + "__obj-base-info"
|
|
135
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
136
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", {
|
|
137
|
-
"tu-icon-okr": relateObjType === _constant.EObjType.O,
|
|
138
|
-
"tu-icon-KR": relateObjType === _constant.EObjType.Kr
|
|
139
|
-
})
|
|
140
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
141
|
-
className: prefix + "__obj-title",
|
|
142
|
-
onClick: function onClick() {
|
|
143
|
-
handleClickTitle(relateObjId, relateObjType);
|
|
144
|
-
}
|
|
145
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
146
|
-
isPercent: true,
|
|
147
|
-
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
148
|
-
str: relateObjName,
|
|
149
|
-
keyWord: searchKeyWord
|
|
150
|
-
})
|
|
151
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
152
|
-
className: prefix + "__obj-principal-user"
|
|
153
|
-
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
154
|
-
condition: rObjprincipalUser
|
|
155
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
156
|
-
id: rObjprincipalUser.userId,
|
|
157
|
-
name: rObjprincipalUser.name
|
|
158
|
-
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
159
|
-
className: prefix + "__obj-cycle"
|
|
160
|
-
}, rObjCycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
161
|
-
className: prefix + "__relative-img",
|
|
162
|
-
src: _dynamicRelative["default"]
|
|
163
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
-
className: prefix + "__space"
|
|
165
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
|
-
className: prefix + "__obj"
|
|
167
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
|
-
className: prefix + "__obj-base-info"
|
|
169
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
170
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", (_classNames = {}, _defineProperty(_classNames, _constant.EStatusStatus2ClassType[status], objType === _constant.EObjType.Task), _defineProperty(_classNames, "tu-icon-project-s", objType === _constant.EObjType.Project), _classNames))
|
|
171
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
172
|
-
className: prefix + "__obj-title",
|
|
173
|
-
onClick: function onClick() {
|
|
174
|
-
handleClickTitle(objId, objType);
|
|
175
|
-
}
|
|
176
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
177
|
-
isPercent: true,
|
|
178
|
-
text: objName
|
|
179
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
180
|
-
className: prefix + "__obj-principal-user"
|
|
181
|
-
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
182
|
-
condition: objPrincipalUser
|
|
183
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
184
|
-
id: objPrincipalUser.userId,
|
|
185
|
-
name: objPrincipalUser.name
|
|
186
|
-
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
187
|
-
className: prefix + "__obj-cycle"
|
|
188
|
-
}, objCycleName)))));
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
var _default = DynamicRelative;
|
|
192
|
-
exports["default"] = _default;
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-reply-item {
|
|
2
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-dynamic-reply-item__content {
|
|
6
|
-
margin-left: 69px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-dynamic-reply-item__detail {
|
|
10
|
-
margin-top: 16px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-reply-item__detail-gain {
|
|
14
|
-
margin-bottom: 16px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.titaui-dynamic-reply-item__detail-drawback {
|
|
18
|
-
margin-bottom: 16px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-dynamic-reply-item__detail-tasks-item {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
margin-left: 8px;
|
|
25
|
-
font-size: 14px;
|
|
26
|
-
color: #6f7886;
|
|
27
|
-
line-height: 22px;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.titaui-dynamic-reply-item__detail-tasks-item::before {
|
|
32
|
-
content: "";
|
|
33
|
-
display: inline-block;
|
|
34
|
-
width: 6px;
|
|
35
|
-
height: 6px;
|
|
36
|
-
background: #2879ff;
|
|
37
|
-
border-radius: 50%;
|
|
38
|
-
margin-right: 6px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.titaui-dynamic-reply-item__detail-tasks-item:hover {
|
|
42
|
-
color: #2879ff;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.titaui-dynamic-reply-item__detail-block-title {
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
color: #3f4755;
|
|
49
|
-
line-height: 22px;
|
|
50
|
-
display: flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
margin-bottom: 8px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.titaui-dynamic-reply-item__detail-block-title::before {
|
|
56
|
-
content: "";
|
|
57
|
-
display: inline-block;
|
|
58
|
-
width: 4px;
|
|
59
|
-
height: 12px;
|
|
60
|
-
background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
|
|
61
|
-
border-radius: 2px;
|
|
62
|
-
margin-right: 4px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.titaui-dynamic-reply-item__detail-block-title--sub {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
margin-bottom: 4px;
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
font-weight: 600;
|
|
71
|
-
color: #3f4755;
|
|
72
|
-
line-height: 22px;
|
|
73
|
-
margin-left: 8px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.titaui-dynamic-reply-item__detail-block-title--sub::before {
|
|
77
|
-
content: "";
|
|
78
|
-
display: inline-block;
|
|
79
|
-
width: 6px;
|
|
80
|
-
height: 6px;
|
|
81
|
-
background: #2879ff;
|
|
82
|
-
border-radius: 50%;
|
|
83
|
-
margin-right: 6px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.titaui-dynamic-reply-item__detail-block-content {
|
|
87
|
-
font-size: 14px;
|
|
88
|
-
font-weight: 400;
|
|
89
|
-
color: #6f7886;
|
|
90
|
-
line-height: 22px;
|
|
91
|
-
margin-bottom: 4px;
|
|
92
|
-
margin-left: 8px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.titaui-dynamic-reply-item__detail-block-content--sub {
|
|
96
|
-
margin-left: 20px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.titaui-dynamic-reply-item__object-name {
|
|
100
|
-
font-size: 14px;
|
|
101
|
-
color: #2879ff;
|
|
102
|
-
line-height: 22px;
|
|
103
|
-
margin: 0 4px;
|
|
104
|
-
overflow: hidden;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.titaui-dynamic-reply-item__object-name:hover {
|
|
108
|
-
cursor: pointer;
|
|
109
|
-
color: #5c8eff;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.titaui-dynamic-reply-item__operate-desc {
|
|
113
|
-
font-size: 14px;
|
|
114
|
-
font-weight: 400;
|
|
115
|
-
color: #89919f;
|
|
116
|
-
line-height: 22px;
|
|
117
|
-
margin: 0 8px 0 4px;
|
|
118
|
-
overflow: hidden;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.titaui-dynamic-reply-item__operate-desc-wrapper {
|
|
122
|
-
display: flex;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.titaui-dynamic-reply-item-desc-operate-type {
|
|
126
|
-
display: inline-flex;
|
|
127
|
-
align-items: center;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
padding: 0 2px;
|
|
130
|
-
height: 18px;
|
|
131
|
-
min-width: 40px;
|
|
132
|
-
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
133
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
134
|
-
border-radius: 14px 10px 10px 4px;
|
|
135
|
-
font-size: 12px;
|
|
136
|
-
color: #ffffff;
|
|
137
|
-
line-height: 18px;
|
|
138
|
-
}
|
|
@@ -1,183 +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 _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _context = require("../../context");
|
|
15
|
-
|
|
16
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
17
|
-
|
|
18
|
-
var _header = _interopRequireDefault(require("../components/header"));
|
|
19
|
-
|
|
20
|
-
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
21
|
-
|
|
22
|
-
var _constant = require("../../constant");
|
|
23
|
-
|
|
24
|
-
var _title = _interopRequireDefault(require("../../components/title"));
|
|
25
|
-
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
|
-
var _tooltip = require("../../../tooltip");
|
|
29
|
-
|
|
30
|
-
require("./index.css");
|
|
31
|
-
|
|
32
|
-
var _excluded = ["data"];
|
|
33
|
-
|
|
34
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
-
|
|
36
|
-
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); }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
|
-
|
|
42
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
-
|
|
44
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
-
|
|
46
|
-
var prefix = "titaui-dynamic-reply-item";
|
|
47
|
-
|
|
48
|
-
var DynamicReply = function DynamicReply(_ref) {
|
|
49
|
-
var data = _ref.data,
|
|
50
|
-
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
-
|
|
52
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
53
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
54
|
-
|
|
55
|
-
var replayObjType = data.replayObjType,
|
|
56
|
-
feedType = data.feedType,
|
|
57
|
-
publishUser = data.publishUser;
|
|
58
|
-
|
|
59
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
60
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
61
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
62
|
-
|
|
63
|
-
var handleShowTaskDrawer = function handleShowTaskDrawer(taskId) {
|
|
64
|
-
window.Talent.app.vent.trigger("global-pull-screen", taskId, "task");
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
var handleClickTitle = function handleClickTitle() {
|
|
68
|
-
if (data.replayObjType === _constant.EObjType.Kr) {
|
|
69
|
-
_manager["default"].open("krDetail", {
|
|
70
|
-
krId: data.replayObjId
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
if (data.replayObjType === _constant.EObjType.O) {
|
|
75
|
-
_manager["default"].open("okrDetail", {
|
|
76
|
-
okrId: data.replayObjId
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
var handleClickOTitle = function handleClickOTitle() {
|
|
82
|
-
_manager["default"].open("okrDetail", {
|
|
83
|
-
okrId: data.obj.objId
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
var renderDesc = (0, _react.useMemo)(function () {
|
|
88
|
-
var dom;
|
|
89
|
-
|
|
90
|
-
if (replayObjType === _constant.EObjType.O) {
|
|
91
|
-
dom = "的目标复盘";
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (replayObjType === _constant.EObjType.Kr) {
|
|
95
|
-
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
|
-
className: prefix + "__operate-desc-wrapper"
|
|
97
|
-
}, "\u5728\u76EE\u6807", /*#__PURE__*/_react["default"].createElement("span", {
|
|
98
|
-
className: prefix + "__object-name",
|
|
99
|
-
onClick: handleClickOTitle
|
|
100
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
101
|
-
text: data.obj.objName,
|
|
102
|
-
isPercent: true
|
|
103
|
-
})), "\u4E0B\u5173\u952E\u6210\u679C\u7684\u590D\u76D8");
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
107
|
-
className: prefix + "__operate-desc"
|
|
108
|
-
}, dom), /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
|
-
className: prefix + "-desc-operate-type",
|
|
110
|
-
style: {
|
|
111
|
-
background: feedTypeColor
|
|
112
|
-
}
|
|
113
|
-
}, feedTypeText));
|
|
114
|
-
}, []);
|
|
115
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
|
-
className: prefix
|
|
117
|
-
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
118
|
-
data: data
|
|
119
|
-
}, restProps, {
|
|
120
|
-
desc: renderDesc,
|
|
121
|
-
user: publishUser
|
|
122
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
-
className: prefix + "__content"
|
|
124
|
-
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
125
|
-
content: "".concat(data.replayObjType === 65 ? "KR:" : "O:").concat(data.replayObjName),
|
|
126
|
-
onClickTitle: handleClickTitle
|
|
127
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
|
-
className: prefix + "__detail"
|
|
129
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
-
className: prefix + "__detail-gain"
|
|
131
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
132
|
-
className: prefix + "__detail-block-title"
|
|
133
|
-
}, "\u4EF7\u503C\u4E0E\u6536\u83B7"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
|
-
className: prefix + "__detail-block-content"
|
|
135
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
136
|
-
str: data.gains,
|
|
137
|
-
keyWord: searchKeyWord
|
|
138
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, data.drawbacks && data.drawbacks.map(function (item, index) {
|
|
139
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
|
-
key: item.drawbackId,
|
|
141
|
-
className: prefix + "__detail-drawback"
|
|
142
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
-
className: prefix + "__detail-block-title"
|
|
144
|
-
}, "\u95EE\u9898\u4E0E\u4E0D\u8DB3", index + 1), /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
-
className: prefix + "__detail-block-content"
|
|
146
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
147
|
-
str: item.drawback,
|
|
148
|
-
keyWord: searchKeyWord
|
|
149
|
-
})), item.cause && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
|
-
className: prefix + "__detail-block-title--sub"
|
|
151
|
-
}, "\u6839\u672C\u539F\u56E0:"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
|
-
className: (0, _classnames["default"])(prefix + "__detail-block-content", prefix + "__detail-block-content--sub")
|
|
153
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
154
|
-
str: item.cause,
|
|
155
|
-
keyWord: searchKeyWord
|
|
156
|
-
}))), item.measures && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
157
|
-
className: prefix + "__detail-block-title--sub"
|
|
158
|
-
}, "\u76F8\u5E94\u63AA\u65BD:"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
|
-
className: (0, _classnames["default"])(prefix + "__detail-block-content", prefix + "__detail-block-content--sub")
|
|
160
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
161
|
-
str: item.measures,
|
|
162
|
-
keyWord: searchKeyWord
|
|
163
|
-
}))));
|
|
164
|
-
})), data.tasks && data.tasks.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
165
|
-
className: prefix + "__detail-tasks"
|
|
166
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
|
-
className: prefix + "__detail-block-title"
|
|
168
|
-
}, "\u884C\u52A8\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
|
|
169
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
-
key: task.taskId,
|
|
171
|
-
className: prefix + "__detail-tasks-item",
|
|
172
|
-
onClick: function onClick() {
|
|
173
|
-
handleShowTaskDrawer(task.taskId);
|
|
174
|
-
}
|
|
175
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
176
|
-
str: task.taskName,
|
|
177
|
-
keyWord: searchKeyWord
|
|
178
|
-
}));
|
|
179
|
-
})))));
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
var _default = DynamicReply;
|
|
183
|
-
exports["default"] = _default;
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-report-item {
|
|
2
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-dynamic-report-item__content {
|
|
6
|
-
margin-left: 69px;
|
|
7
|
-
line-height: 24px;
|
|
8
|
-
word-wrap: break-word;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.titaui-dynamic-report-item__content ul {
|
|
12
|
-
list-style-type: disc;
|
|
13
|
-
padding-left: 20px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.titaui-dynamic-report-item__content ol {
|
|
17
|
-
list-style-type: decimal;
|
|
18
|
-
padding-left: 20px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.titaui-dynamic-report-item__content li {
|
|
22
|
-
list-style-type: inherit;
|
|
23
|
-
margin: 5px 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.titaui-dynamic-report-item__content table {
|
|
27
|
-
margin: 5px 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.titaui-dynamic-report-item__content table td {
|
|
31
|
-
border: 1px solid #999;
|
|
32
|
-
padding: 3px 5px;
|
|
33
|
-
min-width: 50px;
|
|
34
|
-
height: 20px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.titaui-dynamic-report-item__content p {
|
|
38
|
-
margin: 5px 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.titaui-dynamic-report-item__content blockquote {
|
|
42
|
-
display: block;
|
|
43
|
-
border-left: 4px solid #e3ecf1;
|
|
44
|
-
padding: 5px;
|
|
45
|
-
font-size: 12px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.titaui-dynamic-report-item__content p,
|
|
49
|
-
.titaui-dynamic-report-item__content li {
|
|
50
|
-
line-height: 1.7;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.titaui-dynamic-report-item__content a {
|
|
54
|
-
word-wrap: break-word;
|
|
55
|
-
word-break: break-all;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.titaui-dynamic-report-item__content pre {
|
|
59
|
-
padding: 10px;
|
|
60
|
-
margin: 5px 0px;
|
|
61
|
-
font-size: 0.8em;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.titaui-dynamic-report-item__content pre code {
|
|
65
|
-
line-height: 1.5;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.titaui-dynamic-report-item__summary {
|
|
69
|
-
margin-bottom: 16px;
|
|
70
|
-
margin-top: 12px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.titaui-dynamic-report-item__block-title {
|
|
74
|
-
font-size: 14px;
|
|
75
|
-
font-weight: 600;
|
|
76
|
-
color: #3f4755;
|
|
77
|
-
line-height: 22px;
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: center;
|
|
80
|
-
margin-bottom: 8px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.titaui-dynamic-report-item__block-title::before {
|
|
84
|
-
content: "";
|
|
85
|
-
display: inline-block;
|
|
86
|
-
width: 4px;
|
|
87
|
-
height: 12px;
|
|
88
|
-
background: linear-gradient(180deg, #2879ff 0%, #9fbfff 100%);
|
|
89
|
-
border-radius: 2px;
|
|
90
|
-
margin-right: 4px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.titaui-dynamic-report-item__content-text {
|
|
94
|
-
margin-left: 8px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.titaui-dynamic-report-item__complete-type {
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
font-size: 14px;
|
|
101
|
-
line-height: 22px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.titaui-dynamic-report-item__complete-type-icon {
|
|
105
|
-
margin-right: 4px;
|
|
106
|
-
display: inline-block;
|
|
107
|
-
width: 16px;
|
|
108
|
-
height: 16px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.titaui-dynamic-report-item__complete-type-icon--normal {
|
|
112
|
-
background: url("../../img/dynamic-submit-normal.svg") no-repeat;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.titaui-dynamic-report-item__complete-type-icon--delay {
|
|
116
|
-
background: url("../../img/dynamic-submit-delay.svg") no-repeat;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.titaui-dynamic-report-item__complete-type--normal {
|
|
120
|
-
color: #5ad8a6;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.titaui-dynamic-report-item__complete-type--delay {
|
|
124
|
-
color: #624dff;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.titaui-dynamic-report-item .highlight {
|
|
128
|
-
color: #f05e5e;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.titaui-dynamic-report-item__operate-desc {
|
|
132
|
-
font-size: 14px;
|
|
133
|
-
font-weight: 400;
|
|
134
|
-
color: #89919f;
|
|
135
|
-
line-height: 22px;
|
|
136
|
-
margin: 0 8px 0 4px;
|
|
137
|
-
overflow: hidden;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.titaui-dynamic-report-item-desc-operate-type {
|
|
141
|
-
display: inline-flex;
|
|
142
|
-
align-items: center;
|
|
143
|
-
justify-content: center;
|
|
144
|
-
padding: 0 2px;
|
|
145
|
-
height: 18px;
|
|
146
|
-
min-width: 40px;
|
|
147
|
-
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
148
|
-
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
149
|
-
border-radius: 14px 10px 10px 4px;
|
|
150
|
-
font-size: 12px;
|
|
151
|
-
color: #ffffff;
|
|
152
|
-
line-height: 18px;
|
|
153
|
-
}
|