@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
|
@@ -45,7 +45,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
45
45
|
|
|
46
46
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
47
47
|
|
|
48
|
-
var UserLink = _styledComponents["default"].a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size:
|
|
48
|
+
var UserLink = _styledComponents["default"].a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-size: 12px;\n color: #3A4247;\n\n &:hover {\n color: #1687d9;\n }\n"])));
|
|
49
49
|
|
|
50
50
|
var ConvertUserName = /*#__PURE__*/function (_PureComponent) {
|
|
51
51
|
_inherits(ConvertUserName, _PureComponent);
|
|
@@ -9,8 +9,6 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
12
|
var _mblog = _interopRequireDefault(require("../mblog"));
|
|
15
13
|
|
|
16
14
|
var _praiseRecord = _interopRequireDefault(require("../praise-record"));
|
|
@@ -23,8 +21,6 @@ var _style = require("./style");
|
|
|
23
21
|
|
|
24
22
|
var _openData = require("../../utils/open-data");
|
|
25
23
|
|
|
26
|
-
require("./index.css");
|
|
27
|
-
|
|
28
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
25
|
|
|
30
26
|
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); }
|
|
@@ -63,8 +59,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
63
59
|
|
|
64
60
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
65
61
|
|
|
66
|
-
var prefix = "titaui-communication";
|
|
67
|
-
|
|
68
62
|
var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
69
63
|
_inherits(Communication, _PureComponent);
|
|
70
64
|
|
|
@@ -83,14 +77,14 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
77
|
okrFeedParams = _this$props.okrFeedParams;
|
|
84
78
|
var isShowAllCommunicationRecord = _this.state.isShowAllCommunicationRecord;
|
|
85
79
|
var url = commentType == 1 ? isShowAllCommunicationRecord ? (0, _requestV.getApiUrl2)("comment/Get?feed_id=".concat(feedId, "&comment_type=0")) : (0, _requestV.getApiUrl2)("user/feed/GetById?feed_id=".concat(feedId, "&comment_count=").concat(commentCount)) : (0, _requestV.getApiUrl)("okr/cycle/getFeed?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum, "&commentCount=").concat(commentCount));
|
|
86
|
-
(0, _requestV.taker)(url,
|
|
80
|
+
(0, _requestV.taker)(url, 'GET').then(function (res) {
|
|
87
81
|
if (res.Code === 1) {
|
|
88
82
|
var data = res.Data && (res.Data.feedComments || res.Data);
|
|
89
83
|
|
|
90
84
|
_this.setState({
|
|
91
85
|
communicationTrackList: data.comments ? data.comments : [],
|
|
92
86
|
communicationTrackTotal: data.total,
|
|
93
|
-
okrCommentFeedId: commentType == 2 ? res.Data.feedId :
|
|
87
|
+
okrCommentFeedId: commentType == 2 ? res.Data.feedId : ''
|
|
94
88
|
});
|
|
95
89
|
} else {
|
|
96
90
|
_this.setState({
|
|
@@ -110,11 +104,10 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
110
104
|
|
|
111
105
|
var isShowAllCommunicationRecord = _this.state.isShowAllCommunicationRecord;
|
|
112
106
|
isShowAllCommunicationRecord = !isShowAllCommunicationRecord;
|
|
107
|
+
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal) : _this.getFeedInfo(feedId, commentCount);
|
|
113
108
|
|
|
114
109
|
_this.setState({
|
|
115
110
|
isShowAllCommunicationRecord: isShowAllCommunicationRecord
|
|
116
|
-
}, function () {
|
|
117
|
-
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal) : _this.getFeedInfo(feedId, commentCount);
|
|
118
111
|
});
|
|
119
112
|
};
|
|
120
113
|
|
|
@@ -130,15 +123,15 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
130
123
|
|
|
131
124
|
var communicationTrackList = _toConsumableArray(_this.state.communicationTrackList);
|
|
132
125
|
|
|
133
|
-
if (actionType ===
|
|
126
|
+
if (actionType === 'delete') {
|
|
134
127
|
// 删除
|
|
135
128
|
var url = (0, _requestV.getApiUrl2)("comment/Delete?comment_id=".concat(communicationTrackList[index].commentId, "&feed_id=").concat(feedId || _this.state.okrCommentFeedId));
|
|
136
|
-
(0, _requestV.taker)(url,
|
|
129
|
+
(0, _requestV.taker)(url, 'DELETE').then(function (res) {
|
|
137
130
|
if (res.Code === 1) {
|
|
138
131
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal - 1) : _this.getFeedInfo(feedId, commentCount);
|
|
139
132
|
}
|
|
140
133
|
});
|
|
141
|
-
} else if (actionType ===
|
|
134
|
+
} else if (actionType === 'reply') {
|
|
142
135
|
// 沟通里的回复
|
|
143
136
|
if (_this.props.useCustomMblog && _this.props.onComment) {
|
|
144
137
|
_this.props.onComment({
|
|
@@ -163,7 +156,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
163
156
|
replyUserId: communicationTrackList[index].publishUser.userId,
|
|
164
157
|
replyUserCommentId: communicationTrackList[index].commentId
|
|
165
158
|
});
|
|
166
|
-
} else if (actionType ===
|
|
159
|
+
} else if (actionType === 'praise') {
|
|
167
160
|
// 沟通里的点赞
|
|
168
161
|
var isPraise = communicationTrackList[index].isPraise;
|
|
169
162
|
isPraise = !isPraise;
|
|
@@ -174,7 +167,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
174
167
|
|
|
175
168
|
var _url = isPraise ? (0, _requestV.getApiUrl)("praise/add?objId=".concat(communicationTrackList[index].commentId, "&objType=19&praiseType=1")) : (0, _requestV.getApiUrl)("praise/cancel?objId=".concat(communicationTrackList[index].commentId, "&objType=19"));
|
|
176
169
|
|
|
177
|
-
(0, _requestV.taker)(_url,
|
|
170
|
+
(0, _requestV.taker)(_url, 'POST').then(function (res) {
|
|
178
171
|
if (res.Code === 1) {
|
|
179
172
|
var praiseTotal = communicationTrackList[index].praiseTotal;
|
|
180
173
|
communicationTrackList[index].isPraise = isPraise;
|
|
@@ -190,7 +183,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
190
183
|
});
|
|
191
184
|
}
|
|
192
185
|
});
|
|
193
|
-
} else if (actionType ===
|
|
186
|
+
} else if (actionType === 'showPraiseRecord') {
|
|
194
187
|
// 显示点赞记录
|
|
195
188
|
_this.setState({
|
|
196
189
|
isShowPraiseRecordPop: true,
|
|
@@ -225,13 +218,12 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
225
218
|
communicationTrackTotal = _this$state3.communicationTrackTotal,
|
|
226
219
|
isShowAllCommunicationRecord = _this$state3.isShowAllCommunicationRecord;
|
|
227
220
|
|
|
228
|
-
if (submitType ===
|
|
221
|
+
if (submitType === 'submit') {
|
|
229
222
|
// 发送
|
|
230
223
|
sentData.FeedId = feedId;
|
|
231
224
|
sentData.CommentId = 0;
|
|
232
225
|
sentData.ObjId = 0;
|
|
233
226
|
sentData.ObjType = 0;
|
|
234
|
-
sentData.Content = sentData.Content || ' ';
|
|
235
227
|
|
|
236
228
|
if (isShowReplyToUser) {
|
|
237
229
|
sentData.CommentId = replyUserCommentId;
|
|
@@ -241,8 +233,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
241
233
|
submitStatus: 2
|
|
242
234
|
});
|
|
243
235
|
|
|
244
|
-
var url = commentType == 1 ? (0, _requestV.getApiUrl2)(
|
|
245
|
-
(0, _requestV.taker)(url,
|
|
236
|
+
var url = commentType == 1 ? (0, _requestV.getApiUrl2)('comment/Add') : (0, _requestV.getApiUrl)("okr/cycle/addComment?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum));
|
|
237
|
+
(0, _requestV.taker)(url, 'POST', sentData).then(function (res) {
|
|
246
238
|
if (res.Code === 1) {
|
|
247
239
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal + 1) : _this.getFeedInfo(feedId, commentCount);
|
|
248
240
|
|
|
@@ -278,17 +270,17 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
278
270
|
isShowAllCommunicationRecord: false,
|
|
279
271
|
// 是否显示所有记录
|
|
280
272
|
// 回复
|
|
281
|
-
replyUser:
|
|
282
|
-
replyUserId:
|
|
283
|
-
replyUserCommentId:
|
|
273
|
+
replyUser: '',
|
|
274
|
+
replyUserId: '',
|
|
275
|
+
replyUserCommentId: '0',
|
|
284
276
|
isShowReplyToUser: false,
|
|
285
277
|
// 是否显示回复谁
|
|
286
278
|
submitStatus: 0,
|
|
287
279
|
praiseStatus: 0,
|
|
288
280
|
// 点赞记录
|
|
289
|
-
praiseObjId:
|
|
281
|
+
praiseObjId: '',
|
|
290
282
|
isShowPraiseRecordPop: false,
|
|
291
|
-
okrCommentFeedId:
|
|
283
|
+
okrCommentFeedId: ''
|
|
292
284
|
};
|
|
293
285
|
return _this;
|
|
294
286
|
}
|
|
@@ -346,32 +338,19 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
346
338
|
userSelectorPopAlign = _this$props8.userSelectorPopAlign,
|
|
347
339
|
emotionsSelectorPopAlign = _this$props8.emotionsSelectorPopAlign,
|
|
348
340
|
showAtAll = _this$props8.showAtAll,
|
|
349
|
-
|
|
350
|
-
useCustomMblog = _this$props8.useCustomMblog,
|
|
351
|
-
_this$props8$submitTe = _this$props8.submitText,
|
|
352
|
-
submitText = _this$props8$submitTe === void 0 ? "回复" : _this$props8$submitTe,
|
|
353
|
-
_this$props8$highLigh = _this$props8.highLightKeyWord,
|
|
354
|
-
highLightKeyWord = _this$props8$highLigh === void 0 ? '' : _this$props8$highLigh,
|
|
355
|
-
_this$props8$autoFocu = _this$props8.autoFocus,
|
|
356
|
-
autoFocus = _this$props8$autoFocu === void 0 ? false : _this$props8$autoFocu;
|
|
341
|
+
useCustomMblog = _this$props8.useCustomMblog;
|
|
357
342
|
return /*#__PURE__*/_react["default"].createElement(_style.CommunicationWrapper, {
|
|
358
343
|
className: "communcation-wrapper ".concat(className)
|
|
359
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null,
|
|
360
|
-
className:
|
|
344
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_style.CommunicationRecordTotal, null, communicationTrackTotal > 0 && /*#__PURE__*/_react["default"].createElement("p", {
|
|
345
|
+
className: isShowAllCommunicationRecord ? "tu-icon-angles-up" : "tu-icon-angles-down",
|
|
361
346
|
onMouseDown: function onMouseDown() {
|
|
362
347
|
return _this2.handlerSwitchShowRecord();
|
|
363
348
|
}
|
|
364
|
-
}, "\u5168\u90E8\u6C9F\u901A\xA0", /*#__PURE__*/_react["default"].createElement("span", null, communicationTrackTotal),
|
|
365
|
-
className:
|
|
366
|
-
"tu-icon-APP-xi": isShowAllCommunicationRecord,
|
|
367
|
-
"tu-icon-arrow-down1": !isShowAllCommunicationRecord
|
|
368
|
-
})
|
|
369
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
370
|
-
className: prefix + "__communication-list"
|
|
349
|
+
}, "\u5168\u90E8\u6C9F\u901A\xA0", /*#__PURE__*/_react["default"].createElement("span", null, communicationTrackTotal))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
350
|
+
className: "communication__list"
|
|
371
351
|
}, communicationTrackList.length > 0 && communicationTrackList.map(function (item, index) {
|
|
372
352
|
return /*#__PURE__*/_react["default"].createElement(_CommunicationRecord["default"], {
|
|
373
353
|
communicationTrack: item,
|
|
374
|
-
highLightKeyWord: highLightKeyWord,
|
|
375
354
|
index: index,
|
|
376
355
|
key: item.commentId,
|
|
377
356
|
praiseStatus: _this2.state.praiseStatus,
|
|
@@ -383,12 +362,12 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
383
362
|
}))), !useCustomMblog && /*#__PURE__*/_react["default"].createElement("div", {
|
|
384
363
|
className: "communication__reply__cintainer"
|
|
385
364
|
}, /*#__PURE__*/_react["default"].createElement(_style.ReplyToUser, {
|
|
386
|
-
height: isShowReplyToUser ?
|
|
387
|
-
padding: isShowReplyToUser ?
|
|
365
|
+
height: isShowReplyToUser ? 'auto' : '0',
|
|
366
|
+
padding: isShowReplyToUser ? '3px 0' : '0'
|
|
388
367
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
389
368
|
style: {
|
|
390
|
-
position:
|
|
391
|
-
top:
|
|
369
|
+
position: 'relative',
|
|
370
|
+
top: '2px'
|
|
392
371
|
}
|
|
393
372
|
}, "\u56DE\u590D"), /*#__PURE__*/_react["default"].createElement(_style.ReplyUser, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
394
373
|
className: "name"
|
|
@@ -400,19 +379,15 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
400
379
|
onMouseDown: this.handlerCancelReplyUser
|
|
401
380
|
}))), /*#__PURE__*/_react["default"].createElement(_mblog["default"], {
|
|
402
381
|
setTextareaRef: setTextareaRef || function () {},
|
|
403
|
-
isHasPlaceholder: true,
|
|
404
|
-
placeholderText: "请输入沟通内容",
|
|
405
382
|
isShowRange: false,
|
|
406
383
|
isShowBtnCancel: false,
|
|
407
384
|
isShowSendSms: isShowSendSms,
|
|
408
|
-
submitText:
|
|
385
|
+
submitText: "\u56DE\u590D",
|
|
409
386
|
showAtAll: showAtAll,
|
|
410
387
|
commentsTypeKey: feedId,
|
|
411
388
|
submitStatus: submitStatus,
|
|
412
389
|
userSelectorPopAlign: userSelectorPopAlign,
|
|
413
390
|
emotionsSelectorPopAlign: emotionsSelectorPopAlign,
|
|
414
|
-
autoFocus: autoFocus,
|
|
415
|
-
autoResizing: false,
|
|
416
391
|
onMblogSubmit: function onMblogSubmit(submitType, sentData) {
|
|
417
392
|
return _this2.handlerReply(submitType, sentData);
|
|
418
393
|
}
|
|
@@ -422,7 +397,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
422
397
|
onSubmit: function onSubmit() {
|
|
423
398
|
return _this2.setState({
|
|
424
399
|
isShowPraiseRecordPop: false,
|
|
425
|
-
praiseObjId:
|
|
400
|
+
praiseObjId: ''
|
|
426
401
|
});
|
|
427
402
|
}
|
|
428
403
|
}));
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ButtonConfirm = exports.ButtonCancel = exports.ConfirmBtnGroup = exports.ConfirmText = exports.ConfirmWrapper = exports.AttachmentAction = exports.AttachmentItemName = exports.AttachmentItemIcon = exports.AttachmentItemWrapper = exports.CommunicationAttachmentContainer = exports.CommunicationPraiseTotal = exports.ActionbarItem = exports.ActionbarList = exports.CommunicationActionbar = exports.CommunicationContent = exports.CommunicationDetail = exports.CommunicationItem = exports.ReplyUser = exports.ReplyToUser = exports.CommunicationRecordTotal = exports.CommunicationWrapper = void 0;
|
|
6
|
+
exports.ButtonConfirm = exports.ButtonCancel = exports.ConfirmBtnGroup = exports.ConfirmText = exports.ConfirmWrapper = exports.AttachmentAction = exports.AttachmentItemName = exports.AttachmentItemIcon = exports.AttachmentItemWrapper = exports.CommunicationAttachmentContainer = exports.CommunicationPraiseTotal = exports.ActionbarItem = exports.ActionbarList = exports.CommunicationActionbar = exports.CommunicationContent = exports.CommunicationReplyedContent = exports.CommunicationDetail = exports.CommunicationItem = exports.ReplyUser = exports.ReplyToUser = exports.CommunicationRecordTotal = exports.CommunicationWrapper = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var CommunicationWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
16
|
+
var CommunicationWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n"])));
|
|
17
17
|
|
|
18
18
|
exports.CommunicationWrapper = CommunicationWrapper;
|
|
19
19
|
|
|
20
|
-
var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size: 12px;\n color: #8f9ca6;\n display: inline-block;\n cursor: pointer;\n\n &:hover {\n color: #2879ff;\n }\n"])));
|
|
20
|
+
var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size: 12px;\n color: #8f9ca6;\n display: inline-block;\n cursor: pointer;\n\n &:hover {\n color: #2879ff;\n }\n\n p {\n line-height: 17px;\n\n &::before {\n float: right;\n margin-left: 4px;\n }\n }\n"])));
|
|
21
21
|
|
|
22
22
|
exports.CommunicationRecordTotal = CommunicationRecordTotal;
|
|
23
23
|
|
|
@@ -33,70 +33,74 @@ var ReplyUser = _styledComponents["default"].div(_templateObject4 || (_templateO
|
|
|
33
33
|
|
|
34
34
|
exports.ReplyUser = ReplyUser;
|
|
35
35
|
|
|
36
|
-
var CommunicationItem = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n
|
|
36
|
+
var CommunicationItem = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n min-height: 66px;\n padding: 8px 15px;\n margin-bottom: 10px;\n font-size: 12px;\n color: #83898f;\n border-radius: 3px;\n background: #fafbfc;\n display: flex;\n position: relative;\n\n &:hover {\n background: #eff5fb;\n .communication__actionbar {\n display: block;\n }\n }\n"])));
|
|
37
37
|
|
|
38
38
|
exports.CommunicationItem = CommunicationItem;
|
|
39
39
|
|
|
40
|
-
var CommunicationDetail = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: calc(100% - 35px);\n margin-top: 2px;\n margin-left:
|
|
40
|
+
var CommunicationDetail = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: calc(100% - 35px);\n margin-top: 2px;\n margin-left: 12px;\n display: flex;\n flex-direction: column;\n\n p {\n line-height: 17px;\n }\n"])));
|
|
41
41
|
|
|
42
42
|
exports.CommunicationDetail = CommunicationDetail;
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var CommunicationReplyedContent = _styledComponents["default"].span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-weight: bold;\n cursor: pointer;\n"])));
|
|
45
|
+
|
|
46
|
+
exports.CommunicationReplyedContent = CommunicationReplyedContent;
|
|
47
|
+
|
|
48
|
+
var CommunicationContent = _styledComponents["default"].p(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n font-size: 13px;\n margin: 7px 0 8px;\n line-height: 18px;\n word-wrap: break-word;\n word-break: break-all;\n\n img {\n vertical-align: text-bottom;\n }\n"])));
|
|
45
49
|
|
|
46
50
|
exports.CommunicationContent = CommunicationContent;
|
|
47
51
|
|
|
48
|
-
var CommunicationActionbar = _styledComponents["default"].div(
|
|
52
|
+
var CommunicationActionbar = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: none;\n position: absolute;\n right: 15px;\n bottom: 8px;\n"])));
|
|
49
53
|
|
|
50
54
|
exports.CommunicationActionbar = CommunicationActionbar;
|
|
51
55
|
|
|
52
|
-
var ActionbarList = _styledComponents["default"].div(
|
|
56
|
+
var ActionbarList = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n display: flex;\n color: #2879ff;\n"])));
|
|
53
57
|
|
|
54
58
|
exports.ActionbarList = ActionbarList;
|
|
55
59
|
|
|
56
|
-
var ActionbarItem = _styledComponents["default"].div(
|
|
60
|
+
var ActionbarItem = _styledComponents["default"].div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding-left: 10px;\n font-size: 12px;\n line-height: 24px;\n cursor: pointer;\n"])));
|
|
57
61
|
|
|
58
62
|
exports.ActionbarItem = ActionbarItem;
|
|
59
63
|
|
|
60
|
-
var CommunicationPraiseTotal = _styledComponents["default"].span(
|
|
64
|
+
var CommunicationPraiseTotal = _styledComponents["default"].span(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n margin-left: 5px;\n cursor: pointer;\n"])));
|
|
61
65
|
|
|
62
66
|
exports.CommunicationPraiseTotal = CommunicationPraiseTotal;
|
|
63
67
|
|
|
64
|
-
var CommunicationAttachmentContainer = _styledComponents["default"].div(
|
|
68
|
+
var CommunicationAttachmentContainer = _styledComponents["default"].div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-top: 20px;\n display: flex;\n flex-wrap: wrap;\n"])));
|
|
65
69
|
|
|
66
70
|
exports.CommunicationAttachmentContainer = CommunicationAttachmentContainer;
|
|
67
71
|
|
|
68
|
-
var AttachmentItemWrapper = _styledComponents["default"].div(
|
|
72
|
+
var AttachmentItemWrapper = _styledComponents["default"].div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin: 0 40px 5px 0;\n display: flex;\n flex-direction: column;\n\n &.row-wrapper {\n width: 310px;\n height: 30px;\n padding: 5px;\n font-size: 12px;\n background-color: #f5f8fa;\n align-items: center;\n flex-direction: row;\n\n .file-icon {\n width: 30px;\n height: 30px;\n margin-right: 10px;\n line-height: 30px;\n\n .ico_afb {\n font-size: 24px;\n line-height: 30px;\n }\n }\n\n .file-name {\n flex: 1;\n margin: 0 20px 0 0;\n color: #647481;\n }\n\n .item__action {\n display: flex;\n opacity: 1;\n\n a, span {\n transition: all .3s ease-in;\n color: #a9b8bf !important;\n\n &:hover {\n color: #2879ff !important;\n }\n }\n }\n }\n\n &:hover {\n .item__action {\n opacity: 1;\n }\n }\n"])));
|
|
69
73
|
|
|
70
74
|
exports.AttachmentItemWrapper = AttachmentItemWrapper;
|
|
71
75
|
|
|
72
|
-
var AttachmentItemIcon = _styledComponents["default"].div(
|
|
76
|
+
var AttachmentItemIcon = _styledComponents["default"].div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 98px;\n height: 98px;\n line-height: 97px;\n border: 1px solid #e9edf0;\n border-radius: 1px;\n background: #f5f8fa;\n text-align: center;\n\n img {\n max-width: 100%;\n max-height: 100%;\n }\n\n span {\n font-size: 50px;\n line-height: 98px;\n }\n"])));
|
|
73
77
|
|
|
74
78
|
exports.AttachmentItemIcon = AttachmentItemIcon;
|
|
75
79
|
|
|
76
|
-
var AttachmentItemName = _styledComponents["default"].div(
|
|
80
|
+
var AttachmentItemName = _styledComponents["default"].div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 100px;\n margin-top: 5px;\n font-size: 12px;\n line-height: 20px;\n color: #36434d;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
77
81
|
|
|
78
82
|
exports.AttachmentItemName = AttachmentItemName;
|
|
79
83
|
|
|
80
|
-
var AttachmentAction = _styledComponents["default"].div(
|
|
84
|
+
var AttachmentAction = _styledComponents["default"].div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n height: 20px;\n line-height: 20px;\n opacity: 0;\n\n a {\n font-size: 12px;\n color: #2879ff;\n &:first-child {\n margin-right: 10px;\n }\n }\n"])));
|
|
81
85
|
|
|
82
86
|
exports.AttachmentAction = AttachmentAction;
|
|
83
87
|
|
|
84
|
-
var ConfirmWrapper = _styledComponents["default"].div(
|
|
88
|
+
var ConfirmWrapper = _styledComponents["default"].div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n min-width: 300px;\n border-radius: 2px;\n box-shadow: 0 0 4px 0 rgba(0,0,0,0.20);\n background-color: #ffffff;\n \n &.bg {\n background: url(", ") no-repeat 0 0 / 101% 105%;\n box-shadow: 0 6px 15px 0 rgba(0,0,0,0.15);\n }\n"])), require("./praise-bg.png"));
|
|
85
89
|
|
|
86
90
|
exports.ConfirmWrapper = ConfirmWrapper;
|
|
87
91
|
|
|
88
|
-
var ConfirmText = _styledComponents["default"].div(
|
|
92
|
+
var ConfirmText = _styledComponents["default"].div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n padding: 12px 20px;\n font-size: 14px;\n line-height: 24px;\n text-align: left;\n word-break: break-all;\n word-wrap: break-word;\n word-break: break-all;\n"])));
|
|
89
93
|
|
|
90
94
|
exports.ConfirmText = ConfirmText;
|
|
91
95
|
|
|
92
|
-
var ConfirmBtnGroup = _styledComponents["default"].div(
|
|
96
|
+
var ConfirmBtnGroup = _styledComponents["default"].div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n padding: 0 15px 15px 10px;\n text-align: right;\n\n button {\n margin-left: 5px;\n padding: 0px 15px;\n font-size: 14px;\n line-height: 30px;\n border-radius: 2px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.18);\n border: none;\n }\n"])));
|
|
93
97
|
|
|
94
98
|
exports.ConfirmBtnGroup = ConfirmBtnGroup;
|
|
95
99
|
|
|
96
|
-
var ButtonCancel = _styledComponents["default"].button(
|
|
100
|
+
var ButtonCancel = _styledComponents["default"].button(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n background-color: #f5f8fa;\n color: #34434e;\n"])));
|
|
97
101
|
|
|
98
102
|
exports.ButtonCancel = ButtonCancel;
|
|
99
103
|
|
|
100
|
-
var ButtonConfirm = _styledComponents["default"].button(
|
|
104
|
+
var ButtonConfirm = _styledComponents["default"].button(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n background-color: #2879FF;\n color: #fff;\n"])));
|
|
101
105
|
|
|
102
106
|
exports.ButtonConfirm = ButtonConfirm;
|
|
@@ -13,8 +13,6 @@ require("./index.css");
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
15
|
|
|
16
|
-
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; }
|
|
17
|
-
|
|
18
16
|
var preCls = 'titaui-dropdown-layer';
|
|
19
17
|
|
|
20
18
|
var _default = function _default(props) {
|
|
@@ -30,10 +28,10 @@ var _default = function _default(props) {
|
|
|
30
28
|
|
|
31
29
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
30
|
key: name,
|
|
33
|
-
className: (0, _classnames["default"])("".concat(preCls, "__icon-item")
|
|
31
|
+
className: (0, _classnames["default"])("".concat(preCls, "__icon-item")),
|
|
34
32
|
onClick: onClickHandler
|
|
35
|
-
},
|
|
36
|
-
className: (0, _classnames["default"])(icon, "".concat(preCls, "__icon-item-icon"), exIconClass)
|
|
33
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
34
|
+
className: (0, _classnames["default"])(icon || name, "".concat(preCls, "__icon-item-icon"), exIconClass)
|
|
37
35
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
38
36
|
className: (0, _classnames["default"])("".concat(preCls, "__icon-item-text"))
|
|
39
37
|
}, children));
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
.titaui-dropdown-layer__radio {
|
|
2
|
-
margin-right: 0px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-dropdown-layer__radio .titaui-radio-inner {
|
|
6
|
-
color: #2879FF;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.titaui-dropdown-layer__radio .titaui-radio-inner::after {
|
|
10
|
-
color: #2879FF;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
1
|
.titaui-dropdown-layer__icon-item {
|
|
14
2
|
position: relative;
|
|
15
3
|
height: 32px;
|
|
@@ -33,10 +21,6 @@
|
|
|
33
21
|
vertical-align: text-bottom;
|
|
34
22
|
}
|
|
35
23
|
|
|
36
|
-
.titaui-dropdown-layer__icon-item-icon--noicon {
|
|
37
|
-
margin-right: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
24
|
.titaui-dropdown-layer__icon-item-text {
|
|
41
25
|
font-size: 14px;
|
|
42
26
|
font-weight: 400;
|
|
@@ -15,14 +15,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
17
17
|
|
|
18
|
-
var _radio = _interopRequireDefault(require("../radio"));
|
|
19
|
-
|
|
20
18
|
require("./index.css");
|
|
21
19
|
|
|
22
20
|
var _iconItem = _interopRequireDefault(require("./icon-item"));
|
|
23
21
|
|
|
24
|
-
var _excluded = ["
|
|
25
|
-
_excluded2 = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit"];
|
|
22
|
+
var _excluded = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit"];
|
|
26
23
|
|
|
27
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
28
25
|
|
|
@@ -30,14 +27,18 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
30
27
|
|
|
31
28
|
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; }
|
|
32
29
|
|
|
30
|
+
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); }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
33
36
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
34
37
|
|
|
35
38
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
36
39
|
|
|
37
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; }
|
|
38
41
|
|
|
39
|
-
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); }
|
|
40
|
-
|
|
41
42
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
42
43
|
|
|
43
44
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -50,10 +51,6 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
50
51
|
|
|
51
52
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
52
53
|
|
|
53
|
-
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; }
|
|
54
|
-
|
|
55
|
-
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; }
|
|
56
|
-
|
|
57
54
|
var preCls = 'titaui-dropdown-layer';
|
|
58
55
|
var IconItem = _iconItem["default"];
|
|
59
56
|
exports.IconItem = IconItem;
|
|
@@ -62,9 +59,7 @@ var Item = function Item(props) {
|
|
|
62
59
|
var name = props.name,
|
|
63
60
|
multi = props.multi,
|
|
64
61
|
children = props.children,
|
|
65
|
-
onClick = props.onClick
|
|
66
|
-
className = props.className,
|
|
67
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
62
|
+
onClick = props.onClick;
|
|
68
63
|
|
|
69
64
|
var _useState = (0, _react.useState)(props.checked),
|
|
70
65
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -80,11 +75,11 @@ var Item = function Item(props) {
|
|
|
80
75
|
onClick && onClick(name, !checked);
|
|
81
76
|
};
|
|
82
77
|
|
|
83
|
-
return /*#__PURE__*/_react["default"].createElement("div",
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
79
|
key: name,
|
|
85
|
-
className: (0, _classnames["default"])("".concat(preCls, "__operation-item")
|
|
80
|
+
className: (0, _classnames["default"])("".concat(preCls, "__operation-item")),
|
|
86
81
|
onClick: onClickHandler
|
|
87
|
-
},
|
|
82
|
+
}, multi && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
88
83
|
checked: checked
|
|
89
84
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
90
85
|
className: (0, _classnames["default"])("".concat(preCls, "__operation-item-text"))
|
|
@@ -104,9 +99,7 @@ var DropSelectorLayer = function DropSelectorLayer(props) {
|
|
|
104
99
|
trigger = props.trigger,
|
|
105
100
|
children = props.children,
|
|
106
101
|
_props$limitHeight = props.limitHeight,
|
|
107
|
-
limitHeight = _props$limitHeight === void 0 ? false : _props$limitHeight
|
|
108
|
-
_props$footerBtn = props.footerBtn,
|
|
109
|
-
footerBtn = _props$footerBtn === void 0 ? null : _props$footerBtn;
|
|
102
|
+
limitHeight = _props$limitHeight === void 0 ? false : _props$limitHeight;
|
|
110
103
|
|
|
111
104
|
var onMenuClickHandler = function onMenuClickHandler(name, checked) {
|
|
112
105
|
onItemClick && onItemClick(name, checked);
|
|
@@ -123,7 +116,7 @@ var DropSelectorLayer = function DropSelectorLayer(props) {
|
|
|
123
116
|
'onClick': onMenuClickHandler,
|
|
124
117
|
'multi': multi
|
|
125
118
|
}, child.props));
|
|
126
|
-
})
|
|
119
|
+
}));
|
|
127
120
|
};
|
|
128
121
|
|
|
129
122
|
exports.DropSelectorLayer = DropSelectorLayer;
|
|
@@ -140,7 +133,7 @@ var _default = function _default(props) {
|
|
|
140
133
|
onChange = props.onChange,
|
|
141
134
|
_props$canEdit = props.canEdit,
|
|
142
135
|
canEdit = _props$canEdit === void 0 ? true : _props$canEdit,
|
|
143
|
-
restProps = _objectWithoutProperties(props,
|
|
136
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
144
137
|
|
|
145
138
|
var _useState3 = (0, _react.useState)(false),
|
|
146
139
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var EmotionWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-block;\n z-index:
|
|
16
|
+
var EmotionWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-block;\n z-index: 1010;\n"])));
|
|
17
17
|
|
|
18
18
|
exports.EmotionWrapper = EmotionWrapper;
|
|
19
19
|
|
|
@@ -23,17 +23,6 @@
|
|
|
23
23
|
box-sizing: border-box;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.form-field-input__border--disabled {
|
|
27
|
-
background-color: #fafafa;
|
|
28
|
-
cursor: not-allowed;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.form-field-input__border--disabled input:disabled {
|
|
32
|
-
background-color: #fafafa;
|
|
33
|
-
cursor: not-allowed;
|
|
34
|
-
color: #3f475594;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
26
|
.form-field-input__border--error {
|
|
38
27
|
box-shadow: inset 0px 0px 4px 0px rgba(240, 94, 94, 0.3) !important;
|
|
39
28
|
border: 1px solid #f05e5e !important;
|
|
@@ -64,7 +64,6 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
64
64
|
require = props.require,
|
|
65
65
|
type = props.type,
|
|
66
66
|
name = props.name,
|
|
67
|
-
disabled = props.disabled,
|
|
68
67
|
getContainer = props.getContainer;
|
|
69
68
|
var inputRef = (0, _react.useRef)();
|
|
70
69
|
|
|
@@ -163,7 +162,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
163
162
|
}, label), require && /*#__PURE__*/_react["default"].createElement("span", {
|
|
164
163
|
className: (0, _classnames["default"])("".concat(preCls, "__label-require"))
|
|
165
164
|
}, "*")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
|
-
className: (0, _classnames["default"])("".concat(preCls, "__border"), (_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "__border--error"), hasError), _defineProperty(_classNames, "".concat(preCls, "__border--active"), hasActive),
|
|
165
|
+
className: (0, _classnames["default"])("".concat(preCls, "__border"), (_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "__border--error"), hasError), _defineProperty(_classNames, "".concat(preCls, "__border--active"), hasActive), _classNames))
|
|
167
166
|
}, /*#__PURE__*/_react["default"].createElement(_errorTip["default"], {
|
|
168
167
|
placement: 'topLeft',
|
|
169
168
|
destroyTooltipOnHide: true,
|
|
@@ -177,7 +176,6 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
177
176
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
178
177
|
ref: inputRef,
|
|
179
178
|
type: type,
|
|
180
|
-
disabled: disabled,
|
|
181
179
|
className: (0, _classnames["default"])("".concat(preCls, "__input")),
|
|
182
180
|
value: value,
|
|
183
181
|
placeholder: placeholder,
|
|
@@ -106,16 +106,16 @@ function PersonalInfoComponent() {
|
|
|
106
106
|
for (var item in loginUserInfo) {
|
|
107
107
|
switch (item) {
|
|
108
108
|
case 'IsBoss':
|
|
109
|
-
loginUserInfo['IsBoss'] && userRoleList.push('
|
|
109
|
+
loginUserInfo['IsBoss'] && userRoleList.push('Boss');
|
|
110
110
|
break;
|
|
111
111
|
|
|
112
112
|
case 'Role':
|
|
113
113
|
loginUserInfo['Role'] === 2 && userRoleList.push('super');
|
|
114
|
-
loginUserInfo['Role'] === 4 && userRoleList.push('
|
|
114
|
+
loginUserInfo['Role'] === 4 && userRoleList.push('UserManager');
|
|
115
115
|
break;
|
|
116
116
|
|
|
117
117
|
case 'IsTitaFeedSystemManager':
|
|
118
|
-
loginUserInfo['IsTitaFeedSystemManager'] && userRoleList.push('
|
|
118
|
+
loginUserInfo['IsTitaFeedSystemManager'] && userRoleList.push('Assistant');
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -181,7 +181,7 @@ function PersonalInfoComponent() {
|
|
|
181
181
|
style: {
|
|
182
182
|
filter: avatarUrl ? 'blur(10px)' : 'blur(6px)'
|
|
183
183
|
},
|
|
184
|
-
src: avatarUrl || require("../image/
|
|
184
|
+
src: avatarUrl || require("../image/Default-background.png")
|
|
185
185
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
186
|
className: "PersonalInfoComponent-PersonalInfo__personInfo",
|
|
187
187
|
ref: toolTipRef
|