@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.
|
|
6
|
+
exports["default"] = exports.NameAvatar = exports.DefaultAvatar = exports.TextAvatar = void 0;
|
|
7
7
|
|
|
8
8
|
var _default2 = _interopRequireDefault(require("./default"));
|
|
9
9
|
|
|
@@ -11,10 +11,6 @@ var _textAvatar = _interopRequireDefault(require("./text-avatar"));
|
|
|
11
11
|
|
|
12
12
|
var _nameAvatar = _interopRequireDefault(require("./name-avatar"));
|
|
13
13
|
|
|
14
|
-
var _iconAvatar = _interopRequireDefault(require("./icon-avatar"));
|
|
15
|
-
|
|
16
|
-
var _numAvatar = _interopRequireDefault(require("./num-avatar"));
|
|
17
|
-
|
|
18
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
15
|
|
|
20
16
|
var TextAvatar = _textAvatar["default"];
|
|
@@ -23,9 +19,5 @@ var DefaultAvatar = _default2["default"];
|
|
|
23
19
|
exports.DefaultAvatar = DefaultAvatar;
|
|
24
20
|
var NameAvatar = _nameAvatar["default"];
|
|
25
21
|
exports.NameAvatar = NameAvatar;
|
|
26
|
-
var IconAvatar = _iconAvatar["default"];
|
|
27
|
-
exports.IconAvatar = IconAvatar;
|
|
28
|
-
var NumAvatar = _numAvatar["default"];
|
|
29
|
-
exports.NumAvatar = NumAvatar;
|
|
30
22
|
var _default = _default2["default"];
|
|
31
23
|
exports["default"] = _default;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] = void 0;
|
|
8
|
+
exports["default"] = exports.cycleTypes = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -27,8 +27,6 @@ var _filterTab = _interopRequireDefault(require("./filterTab"));
|
|
|
27
27
|
|
|
28
28
|
var _bsGlobal = require("../../utils/bs-global");
|
|
29
29
|
|
|
30
|
-
var _request = require("../../utils/request");
|
|
31
|
-
|
|
32
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
31
|
|
|
34
32
|
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,18 +39,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
41
39
|
|
|
42
40
|
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; }
|
|
43
41
|
|
|
44
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
45
|
-
|
|
46
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
47
|
-
|
|
48
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
49
|
-
|
|
50
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
51
|
-
|
|
52
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
53
|
-
|
|
54
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
55
|
-
|
|
56
42
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
43
|
|
|
58
44
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -85,6 +71,65 @@ for (var i = 2013; i < 2051; i++) {
|
|
|
85
71
|
});
|
|
86
72
|
}
|
|
87
73
|
|
|
74
|
+
var cycleTypes = [{
|
|
75
|
+
title: '全部周期',
|
|
76
|
+
value: '-1'
|
|
77
|
+
}, {
|
|
78
|
+
title: '年度',
|
|
79
|
+
value: '1'
|
|
80
|
+
}, {
|
|
81
|
+
title: '第一季度',
|
|
82
|
+
value: '2,1'
|
|
83
|
+
}, {
|
|
84
|
+
title: '第二季度',
|
|
85
|
+
value: '2,2'
|
|
86
|
+
}, {
|
|
87
|
+
title: '第三季度',
|
|
88
|
+
value: '2,3'
|
|
89
|
+
}, {
|
|
90
|
+
title: '第四季度',
|
|
91
|
+
value: '2,4'
|
|
92
|
+
}, {
|
|
93
|
+
title: '1月',
|
|
94
|
+
value: '3,1'
|
|
95
|
+
}, {
|
|
96
|
+
title: '2月',
|
|
97
|
+
value: '3,2'
|
|
98
|
+
}, {
|
|
99
|
+
title: '3月',
|
|
100
|
+
value: '3,3'
|
|
101
|
+
}, {
|
|
102
|
+
title: '4月',
|
|
103
|
+
value: '3,4'
|
|
104
|
+
}, {
|
|
105
|
+
title: '5月',
|
|
106
|
+
value: '3,5'
|
|
107
|
+
}, {
|
|
108
|
+
title: '6月',
|
|
109
|
+
value: '3,6'
|
|
110
|
+
}, {
|
|
111
|
+
title: '7月',
|
|
112
|
+
value: '3,7'
|
|
113
|
+
}, {
|
|
114
|
+
title: '8月',
|
|
115
|
+
value: '3,8'
|
|
116
|
+
}, {
|
|
117
|
+
title: '9月',
|
|
118
|
+
value: '3,9'
|
|
119
|
+
}, {
|
|
120
|
+
title: '10月',
|
|
121
|
+
value: '3,10'
|
|
122
|
+
}, {
|
|
123
|
+
title: '11月',
|
|
124
|
+
value: '3,11'
|
|
125
|
+
}, {
|
|
126
|
+
title: '12月',
|
|
127
|
+
value: '3,12'
|
|
128
|
+
}, {
|
|
129
|
+
title: '自定义',
|
|
130
|
+
value: '0,0'
|
|
131
|
+
}];
|
|
132
|
+
exports.cycleTypes = cycleTypes;
|
|
88
133
|
var statusType = [{
|
|
89
134
|
title: '全部状态',
|
|
90
135
|
value: 0
|
|
@@ -143,87 +188,6 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
143
188
|
}));
|
|
144
189
|
};
|
|
145
190
|
|
|
146
|
-
_this.getCycleTypes = function () {
|
|
147
|
-
(0, _request.rget)('v1')("okr/cycleSetting").then(function (res) {
|
|
148
|
-
var data = res.Data;
|
|
149
|
-
var cycles = [{
|
|
150
|
-
title: '全部周期',
|
|
151
|
-
value: '-1'
|
|
152
|
-
}];
|
|
153
|
-
|
|
154
|
-
if (data.isOpenYear) {
|
|
155
|
-
cycles.push({
|
|
156
|
-
title: '年度',
|
|
157
|
-
value: '1'
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (data.isOpenHalfYear) {
|
|
162
|
-
cycles.push({
|
|
163
|
-
title: '上半年',
|
|
164
|
-
value: '5,1'
|
|
165
|
-
});
|
|
166
|
-
cycles.push({
|
|
167
|
-
title: '下半年',
|
|
168
|
-
value: '5,2'
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (data.isOpenQuarter) {
|
|
173
|
-
var num = ['一', '二', '三', '四'];
|
|
174
|
-
|
|
175
|
-
for (var _i = 0; _i < 4; _i++) {
|
|
176
|
-
cycles.push({
|
|
177
|
-
title: "\u7B2C".concat(num[_i], "\u5B63\u5EA6"),
|
|
178
|
-
value: "2,".concat(_i + 1)
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (data.isOpenBimonthly) {
|
|
184
|
-
var start = data.yearStartMonth % 2 == 1 ? 1 : 2;
|
|
185
|
-
var month = start;
|
|
186
|
-
|
|
187
|
-
while (1) {
|
|
188
|
-
var next = (month + 1) % 12 || 12;
|
|
189
|
-
cycles.push({
|
|
190
|
-
title: "".concat(month, "-").concat(next, "\u6708"),
|
|
191
|
-
value: "4,".concat(month)
|
|
192
|
-
});
|
|
193
|
-
month = (month + 2) % 12 || 12;
|
|
194
|
-
if (month == start) break;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
if (data.isOpenMonth) {
|
|
199
|
-
for (var _i2 = 1; _i2 <= 12; _i2++) {
|
|
200
|
-
cycles.push({
|
|
201
|
-
title: "".concat(_i2, "\u6708"),
|
|
202
|
-
value: "3,".concat(_i2)
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
if (data.isOpenCustom) {
|
|
208
|
-
cycles.push({
|
|
209
|
-
title: "\u81EA\u5B9A\u4E49",
|
|
210
|
-
value: "0,0"
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
var newOptions = _toConsumableArray(_this.state.OptionsArray);
|
|
215
|
-
|
|
216
|
-
newOptions[1] = _objectSpread({}, newOptions[1]);
|
|
217
|
-
newOptions[1].valuesArray = cycles;
|
|
218
|
-
console.log(newOptions);
|
|
219
|
-
|
|
220
|
-
_this.setState({
|
|
221
|
-
OptionsArray: newOptions,
|
|
222
|
-
cycles: cycles
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
};
|
|
226
|
-
|
|
227
191
|
_this.handleDeleteDepartment = function (id) {
|
|
228
192
|
var _this$props2 = _this.props,
|
|
229
193
|
onChange = _this$props2.onChange,
|
|
@@ -291,32 +255,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
291
255
|
};
|
|
292
256
|
|
|
293
257
|
_this.state = {
|
|
294
|
-
OptionsArray: [
|
|
295
|
-
index: 0,
|
|
296
|
-
title: '年份',
|
|
297
|
-
name: 'year',
|
|
298
|
-
valuesArray: years,
|
|
299
|
-
value: p.year
|
|
300
|
-
}, {
|
|
301
|
-
index: 1,
|
|
302
|
-
title: '周期',
|
|
303
|
-
name: 'cycle',
|
|
304
|
-
valuesArray: [],
|
|
305
|
-
value: p.cycle
|
|
306
|
-
}, {
|
|
307
|
-
index: 2,
|
|
308
|
-
title: '状态',
|
|
309
|
-
name: 'status',
|
|
310
|
-
valuesArray: statusType,
|
|
311
|
-
value: p.status
|
|
312
|
-
}, {
|
|
313
|
-
index: 3,
|
|
314
|
-
title: '类型',
|
|
315
|
-
name: 'type',
|
|
316
|
-
valuesArray: okrTypes,
|
|
317
|
-
value: p.type
|
|
318
|
-
}],
|
|
319
|
-
cycles: []
|
|
258
|
+
OptionsArray: []
|
|
320
259
|
};
|
|
321
260
|
return _this;
|
|
322
261
|
}
|
|
@@ -339,7 +278,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
339
278
|
index: 1,
|
|
340
279
|
title: '周期',
|
|
341
280
|
name: 'cycle',
|
|
342
|
-
valuesArray:
|
|
281
|
+
valuesArray: cycleTypes,
|
|
343
282
|
value: cycle
|
|
344
283
|
}, {
|
|
345
284
|
index: 2,
|
|
@@ -355,11 +294,6 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
355
294
|
value: type
|
|
356
295
|
}]
|
|
357
296
|
});
|
|
358
|
-
}
|
|
359
|
-
}, {
|
|
360
|
-
key: "componentDidMount",
|
|
361
|
-
value: function componentDidMount() {
|
|
362
|
-
this.getCycleTypes();
|
|
363
297
|
} // NOTE componentWillReceiveProps 会导致筛选条件无法出现 全部周期这种默认选项
|
|
364
298
|
|
|
365
299
|
}, {
|
|
@@ -383,9 +317,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
383
317
|
status: status,
|
|
384
318
|
type: type
|
|
385
319
|
};
|
|
386
|
-
var
|
|
387
|
-
OptionsArray = _this$state.OptionsArray,
|
|
388
|
-
cycles = _this$state.cycles;
|
|
320
|
+
var OptionsArray = this.state.OptionsArray;
|
|
389
321
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.Filter, null, /*#__PURE__*/_react["default"].createElement(_styledComponents.FilterTop, null, /*#__PURE__*/_react["default"].createElement(_styledComponents.FilterLeftWrapper, null, /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
390
322
|
container: document.querySelector('.pg-tmpl-honour-scroll') || document.body,
|
|
391
323
|
data: years,
|
|
@@ -401,7 +333,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
401
333
|
}
|
|
402
334
|
}), /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
403
335
|
container: document.querySelector('.pg-tmpl-honour-scroll') || document.body,
|
|
404
|
-
data:
|
|
336
|
+
data: cycleTypes,
|
|
405
337
|
value: cycle,
|
|
406
338
|
title: "\u5468\u671F ",
|
|
407
339
|
textField: "title",
|
|
@@ -410,7 +342,7 @@ var FilterComp = /*#__PURE__*/function (_PureComponent) {
|
|
|
410
342
|
type: "old",
|
|
411
343
|
width: "64px",
|
|
412
344
|
onSelect: function onSelect(value) {
|
|
413
|
-
return _this2.handleSelected(
|
|
345
|
+
return _this2.handleSelected(cycleTypes, value, 'cycle');
|
|
414
346
|
}
|
|
415
347
|
}), okrPopType == 1 && /*#__PURE__*/_react["default"].createElement(_select["default"], {
|
|
416
348
|
container: document.querySelector('.pg-tmpl-honour-scroll') || document.body,
|
|
@@ -123,12 +123,6 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
123
123
|
case 3:
|
|
124
124
|
return "".concat(data.yqmnum, "\u6708");
|
|
125
125
|
|
|
126
|
-
case 4:
|
|
127
|
-
return "".concat(data.yqmnum, "-").concat(data.yqmnum + 1 % 12 || 12, "\u6708");
|
|
128
|
-
|
|
129
|
-
case 5:
|
|
130
|
-
return data.yqmnum == 1 ? '上半年' : '下半年';
|
|
131
|
-
|
|
132
126
|
default:
|
|
133
127
|
return '自定义';
|
|
134
128
|
}
|
|
@@ -40,8 +40,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
40
40
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
41
|
|
|
42
42
|
function keyValueMapper(array, value) {
|
|
43
|
-
console.log(array);
|
|
44
|
-
console.log(value);
|
|
45
43
|
var val = array.filter(function (key) {
|
|
46
44
|
return key.value == value;
|
|
47
45
|
});
|
|
@@ -265,8 +265,8 @@ var ChangeOkr = /*#__PURE__*/function (_PureComponent) {
|
|
|
265
265
|
onBeforeShow: this.onBeforeShow,
|
|
266
266
|
onAfterShow: this.onAfterShow,
|
|
267
267
|
onBeforeHide: this.onBeforeShow,
|
|
268
|
-
className: "okr-panel-changeOkrPop ".concat(className)
|
|
269
|
-
,
|
|
268
|
+
className: "okr-panel-changeOkrPop ".concat(className),
|
|
269
|
+
transitionName: "okr-panel-changeOkrPop",
|
|
270
270
|
container: container ? container : document.querySelector('.pg-tmpl-honour-scroll')
|
|
271
271
|
}, /*#__PURE__*/_react["default"].createElement(_styledComponents.Wrapper, {
|
|
272
272
|
okrPopType: okrPopType
|
|
@@ -41,8 +41,8 @@ var _default = function _default(props) {
|
|
|
41
41
|
var onChange = props.onChange,
|
|
42
42
|
_props$defaultChecked = props.defaultChecked,
|
|
43
43
|
defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,
|
|
44
|
-
_props$
|
|
45
|
-
|
|
44
|
+
_props$id = props.id,
|
|
45
|
+
id = _props$id === void 0 ? 0 : _props$id,
|
|
46
46
|
_props$disabled = props.disabled,
|
|
47
47
|
disabled = _props$disabled === void 0 ? false : _props$disabled;
|
|
48
48
|
|
|
@@ -55,14 +55,13 @@ var _default = function _default(props) {
|
|
|
55
55
|
setChecked = _useState2[1];
|
|
56
56
|
|
|
57
57
|
(0, _react.useEffect)(function () {
|
|
58
|
-
// @ts-ignore
|
|
59
58
|
setChecked(props.checked);
|
|
60
59
|
}, [props.checked]);
|
|
61
60
|
|
|
62
61
|
var onClickHandle = function onClickHandle() {
|
|
63
62
|
if (disabled) return;
|
|
64
63
|
setChecked(!checked);
|
|
65
|
-
onChange && onChange(!checked,
|
|
64
|
+
onChange && onChange(!checked, id);
|
|
66
65
|
};
|
|
67
66
|
|
|
68
67
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -15,17 +15,15 @@ var _avatar = _interopRequireDefault(require("../../components-v1/avatar"));
|
|
|
15
15
|
|
|
16
16
|
var _Portals = _interopRequireDefault(require("../../components-v1/portals/Portals"));
|
|
17
17
|
|
|
18
|
+
var _CommunicationAttachments = _interopRequireDefault(require("./CommunicationAttachments"));
|
|
19
|
+
|
|
18
20
|
var _ConfirmPop = _interopRequireDefault(require("../delete-confirm-pop/ConfirmPop"));
|
|
19
21
|
|
|
20
22
|
var _ConvertUserName = _interopRequireDefault(require("./ConvertUserName"));
|
|
21
23
|
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
var _fileList = _interopRequireDefault(require("../file-list"));
|
|
25
|
-
|
|
26
|
-
var _tools = require("../../utils/tools");
|
|
24
|
+
var _requestV = require("../../utils/request-v1");
|
|
27
25
|
|
|
28
|
-
require("
|
|
26
|
+
var _openData = require("../../utils/open-data");
|
|
29
27
|
|
|
30
28
|
var _style = require("./style");
|
|
31
29
|
|
|
@@ -35,115 +33,162 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
33
|
|
|
36
34
|
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
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37
|
+
|
|
38
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
39
|
+
|
|
40
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
41
|
+
|
|
42
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
43
|
+
|
|
44
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
45
|
+
|
|
46
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
47
|
+
|
|
48
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
49
|
+
|
|
50
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
51
|
+
|
|
52
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
53
|
+
|
|
54
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
55
|
+
|
|
56
|
+
var CommunicationRecord = /*#__PURE__*/function (_PureComponent) {
|
|
57
|
+
_inherits(CommunicationRecord, _PureComponent);
|
|
58
|
+
|
|
59
|
+
var _super = _createSuper(CommunicationRecord);
|
|
60
|
+
|
|
61
|
+
function CommunicationRecord(props) {
|
|
62
|
+
var _this;
|
|
63
|
+
|
|
64
|
+
_classCallCheck(this, CommunicationRecord);
|
|
65
|
+
|
|
66
|
+
_this = _super.call(this, props);
|
|
67
|
+
|
|
68
|
+
_this.getCommentGetByIds = function (commentId) {
|
|
69
|
+
var url = (0, _requestV.getApiUrl2)("comment/GetByIds?comment_id=".concat(commentId));
|
|
70
|
+
(0, _requestV.taker)(url, 'GET').then(function (res) {
|
|
71
|
+
if (res.Code == 1) {
|
|
72
|
+
_this.setState({
|
|
73
|
+
'replyedContent': res.Data.content
|
|
74
|
+
});
|
|
75
|
+
}
|
|
59
76
|
});
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
_this.state = {
|
|
80
|
+
replyedContent: ''
|
|
81
|
+
};
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
_createClass(CommunicationRecord, [{
|
|
86
|
+
key: "componentWillMount",
|
|
87
|
+
value: function componentWillMount() {
|
|
88
|
+
var parentCommentId = this.props.communicationTrack.parentCommentId;
|
|
89
|
+
|
|
90
|
+
if (parentCommentId) {
|
|
91
|
+
this.getCommentGetByIds(parentCommentId);
|
|
92
|
+
}
|
|
93
|
+
} // 获取被回复人发布的沟通内容:“的话”上的tips信息
|
|
94
|
+
|
|
95
|
+
}, {
|
|
96
|
+
key: "render",
|
|
97
|
+
value: function render() {
|
|
98
|
+
var _this2 = this;
|
|
99
|
+
|
|
100
|
+
var _this$props = this.props,
|
|
101
|
+
communicationTrack = _this$props.communicationTrack,
|
|
102
|
+
index = _this$props.index,
|
|
103
|
+
onCommunicationRecordChange = _this$props.onCommunicationRecordChange,
|
|
104
|
+
className = _this$props.className,
|
|
105
|
+
confirmPopAlign = _this$props.confirmPopAlign,
|
|
106
|
+
praiseStatus = _this$props.praiseStatus;
|
|
107
|
+
var replyedContent = this.state.replyedContent;
|
|
108
|
+
return /*#__PURE__*/_react["default"].createElement(_style.CommunicationItem, {
|
|
109
|
+
className: className
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
111
|
+
size: _avatar["default"].size(7),
|
|
112
|
+
name: communicationTrack.publishUser.name,
|
|
113
|
+
src: communicationTrack.publishUser.avatar.small,
|
|
114
|
+
color: communicationTrack.publishUser.avatar.color,
|
|
115
|
+
userId: communicationTrack.publishUser.userId
|
|
116
|
+
}), /*#__PURE__*/_react["default"].createElement(_style.CommunicationDetail, null, /*#__PURE__*/_react["default"].createElement("p", {
|
|
117
|
+
style: {
|
|
118
|
+
color: '#3a4247',
|
|
119
|
+
wordBreak: 'break-all'
|
|
120
|
+
}
|
|
121
|
+
}, communicationTrack.commentType != 2 ? /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
|
|
122
|
+
userName: communicationTrack.publishUser.name,
|
|
123
|
+
userId: communicationTrack.publishUser.userId
|
|
124
|
+
}) : /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
|
|
125
|
+
userName: communicationTrack.publishUser.name,
|
|
126
|
+
userId: communicationTrack.publishUser.userId
|
|
127
|
+
}), "\xA0\u56DE\u590D\xA0", /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
|
|
128
|
+
userName: communicationTrack.parentUser.name,
|
|
129
|
+
userId: communicationTrack.parentUser.userId
|
|
130
|
+
}), /*#__PURE__*/_react["default"].createElement(_style.CommunicationReplyedContent, {
|
|
131
|
+
"data-tip": replyedContent,
|
|
132
|
+
"data-html": true,
|
|
133
|
+
onMouseEnter: function onMouseEnter() {
|
|
134
|
+
return _this2.getCommentGetByIds(communicationTrack.parentCommentId);
|
|
135
|
+
}
|
|
136
|
+
}, "\xA0\u7684\u8BDD"), "\uFF1A", /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
|
|
137
|
+
html: true,
|
|
138
|
+
className: "tt-react-tooltip",
|
|
139
|
+
place: "top",
|
|
140
|
+
type: "dark",
|
|
141
|
+
effect: "solid"
|
|
142
|
+
})))), /*#__PURE__*/_react["default"].createElement(_style.CommunicationContent, null, (0, _openData.parseTag)(communicationTrack.content)), communicationTrack.attachments && /*#__PURE__*/_react["default"].createElement(_CommunicationAttachments["default"], {
|
|
143
|
+
attachments: communicationTrack.attachments ? communicationTrack.attachments : []
|
|
144
|
+
}), /*#__PURE__*/_react["default"].createElement("p", {
|
|
145
|
+
className: "communication__date"
|
|
146
|
+
}, communicationTrack.createDate)), /*#__PURE__*/_react["default"].createElement(_style.CommunicationActionbar, {
|
|
147
|
+
className: "communication__actionbar"
|
|
148
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.ActionbarList, null, /*#__PURE__*/_react["default"].createElement(_style.ActionbarItem, {
|
|
149
|
+
onMouseDown: function onMouseDown(event) {
|
|
150
|
+
praiseStatus != 2 && onCommunicationRecordChange(event, 'reply', index);
|
|
151
|
+
}
|
|
152
|
+
}, "\u56DE\u590D"), /*#__PURE__*/_react["default"].createElement(_style.ActionbarItem, {
|
|
153
|
+
onMouseDown: function onMouseDown(event) {
|
|
154
|
+
praiseStatus != 2 && onCommunicationRecordChange(event, 'praise', index);
|
|
155
|
+
}
|
|
156
|
+
}, communicationTrack.isPraise ? '已赞' : '点赞'), communicationTrack.praiseTotal > 0 &&
|
|
157
|
+
/*#__PURE__*/
|
|
158
|
+
// <ToolTip title='点击查看点赞记录'>
|
|
159
|
+
_react["default"].createElement(_style.CommunicationPraiseTotal, {
|
|
160
|
+
className: "communication__praise__total",
|
|
161
|
+
onMouseDown: function onMouseDown(event) {
|
|
162
|
+
onCommunicationRecordChange(event, 'showPraiseRecord', index);
|
|
163
|
+
event.stopPropagation();
|
|
164
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
165
|
+
},
|
|
166
|
+
onClick: function onClick(event) {
|
|
167
|
+
event.stopPropagation();
|
|
168
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
169
|
+
},
|
|
170
|
+
"data-for": "praise-record",
|
|
171
|
+
"data-tip": !!communicationTrack.praiseTotal ? '点击查看点赞记录' : ''
|
|
172
|
+
}, communicationTrack.praiseTotal) // </ToolTip>
|
|
173
|
+
, communicationTrack.isEdit && /*#__PURE__*/_react["default"].createElement(_ConfirmPop["default"], {
|
|
174
|
+
align: confirmPopAlign,
|
|
175
|
+
onSubmit: function onSubmit(event) {
|
|
176
|
+
return onCommunicationRecordChange(event, 'delete', index);
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.ActionbarItem, null, "\u5220\u9664")))), /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
|
|
179
|
+
id: "praise-record",
|
|
180
|
+
className: "tt-react-tooltip",
|
|
181
|
+
place: "top",
|
|
182
|
+
type: "dark",
|
|
183
|
+
effect: "solid"
|
|
184
|
+
}));
|
|
60
185
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}), /*#__PURE__*/_react["default"].createElement(_style.CommunicationDetail, null, /*#__PURE__*/_react["default"].createElement("p", {
|
|
71
|
-
style: {
|
|
72
|
-
color: "#3a4247",
|
|
73
|
-
wordBreak: "break-all"
|
|
74
|
-
}
|
|
75
|
-
}, communicationTrack.commentType != 2 ? /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
|
|
76
|
-
userName: communicationTrack.publishUser.name,
|
|
77
|
-
userId: communicationTrack.publishUser.userId
|
|
78
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
79
|
-
className: prefix + "__communication-colon"
|
|
80
|
-
}, "\uFF1A")) : /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
|
|
81
|
-
userName: communicationTrack.publishUser.name,
|
|
82
|
-
userId: communicationTrack.publishUser.userId
|
|
83
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
84
|
-
className: prefix + "__communication-text"
|
|
85
|
-
}, "\u56DE\u590D"), /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
|
|
86
|
-
userName: communicationTrack.parentUser.name,
|
|
87
|
-
userId: communicationTrack.parentUser.userId
|
|
88
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
89
|
-
className: prefix + "__communication-colon"
|
|
90
|
-
}, "\uFF1A"), /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
|
|
91
|
-
html: true,
|
|
92
|
-
className: "tt-react-tooltip",
|
|
93
|
-
place: "top",
|
|
94
|
-
type: "dark",
|
|
95
|
-
effect: "solid"
|
|
96
|
-
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
|
-
className: prefix + "__communication-content",
|
|
98
|
-
ref: contentRef
|
|
99
|
-
}, (0, _openData.parseTag)(communicationTrack.content))), communicationTrack.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
-
className: prefix + "__communication-attachments"
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
102
|
-
data: communicationTrack.attachments
|
|
103
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
-
className: prefix + "__communication-bottom"
|
|
105
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
-
className: prefix + "__communication-time"
|
|
107
|
-
}, communicationTrack.createDate), /*#__PURE__*/_react["default"].createElement(_style.CommunicationActionbar, {
|
|
108
|
-
className: "communication__actionbar"
|
|
109
|
-
}, /*#__PURE__*/_react["default"].createElement(_style.ActionbarList, null, /*#__PURE__*/_react["default"].createElement(_style.ActionbarItem, {
|
|
110
|
-
onMouseDown: function onMouseDown(event) {
|
|
111
|
-
praiseStatus != 2 && onCommunicationRecordChange(event, "reply", index);
|
|
112
|
-
}
|
|
113
|
-
}, "\u56DE\u590D"), /*#__PURE__*/_react["default"].createElement(_style.ActionbarItem, {
|
|
114
|
-
onMouseDown: function onMouseDown(event) {
|
|
115
|
-
praiseStatus != 2 && onCommunicationRecordChange(event, "praise", index);
|
|
116
|
-
}
|
|
117
|
-
}, communicationTrack.isPraise ? "已赞" : "点赞"), communicationTrack.praiseTotal > 0 &&
|
|
118
|
-
/*#__PURE__*/
|
|
119
|
-
// <ToolTip title='点击查看点赞记录'>
|
|
120
|
-
_react["default"].createElement(_style.CommunicationPraiseTotal, {
|
|
121
|
-
className: "communication__praise__total",
|
|
122
|
-
onMouseDown: function onMouseDown(event) {
|
|
123
|
-
onCommunicationRecordChange(event, "showPraiseRecord", index);
|
|
124
|
-
event.stopPropagation();
|
|
125
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
126
|
-
},
|
|
127
|
-
onClick: function onClick(event) {
|
|
128
|
-
event.stopPropagation();
|
|
129
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
130
|
-
},
|
|
131
|
-
"data-for": "praise-record",
|
|
132
|
-
"data-tip": !!communicationTrack.praiseTotal ? "点击查看点赞记录" : ""
|
|
133
|
-
}, communicationTrack.praiseTotal) // </ToolTip>
|
|
134
|
-
, communicationTrack.isEdit && /*#__PURE__*/_react["default"].createElement(_ConfirmPop["default"], {
|
|
135
|
-
align: confirmPopAlign,
|
|
136
|
-
onSubmit: function onSubmit(event) {
|
|
137
|
-
return onCommunicationRecordChange(event, "delete", index);
|
|
138
|
-
}
|
|
139
|
-
}, /*#__PURE__*/_react["default"].createElement(_style.ActionbarItem, null, "\u5220\u9664")))))), /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
|
|
140
|
-
id: "praise-record",
|
|
141
|
-
className: "tt-react-tooltip",
|
|
142
|
-
place: "top",
|
|
143
|
-
type: "dark",
|
|
144
|
-
effect: "solid"
|
|
145
|
-
}));
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
var _default = CommunicationRecord;
|
|
149
|
-
exports["default"] = _default;
|
|
186
|
+
}]);
|
|
187
|
+
|
|
188
|
+
return CommunicationRecord;
|
|
189
|
+
}(_react.PureComponent);
|
|
190
|
+
|
|
191
|
+
exports["default"] = CommunicationRecord;
|
|
192
|
+
CommunicationRecord.defaultProps = {
|
|
193
|
+
confirmPopAlign: 'top right'
|
|
194
|
+
};
|