@titaui/pc 1.5.78 → 1.5.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/avatar/index.js +1 -9
- package/lib/components/change-okr/Filter.js +65 -133
- package/lib/components/change-okr/Item.js +0 -6
- package/lib/components/change-okr/filterTab.js +0 -2
- package/lib/components/change-okr/index.js +2 -2
- package/lib/components/checkbox/index.js +3 -4
- package/lib/components/communication/CommunicationRecord.js +161 -116
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.js +28 -53
- package/lib/components/communication/style.js +25 -21
- package/lib/components/dropdown-layer/icon-item.js +3 -5
- package/lib/components/dropdown-layer/index.css +0 -16
- package/lib/components/dropdown-layer/index.js +14 -21
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/form/form-fields/input/index.css +0 -11
- package/lib/components/form/form-fields/input/index.js +1 -3
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/mblog/components/MblogAction.js +6 -10
- package/lib/components/mblog/index.js +11 -24
- package/lib/components/mblog/style.js +8 -8
- package/lib/components/okr-detail/components/header/index.css +0 -4
- package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +8 -15
- package/lib/components/okr-flow/child-node/work-node.js +1 -7
- package/lib/components/okr-period-selector/select-cycle.js +151 -139
- package/lib/components/okr-progress-detail/index.css +0 -1
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
- package/lib/components/okr-review/ReviewPop/index.js +4 -4
- package/lib/components/period-selector/common.js +4 -149
- package/lib/components/period-selector/components/selector/index.js +38 -103
- package/lib/components/period-selector/components/selector/style.js +9 -23
- package/lib/components/period-selector/index.js +28 -29
- package/lib/components/popup/index.js +1 -3
- package/lib/components/radio/index.css +0 -5
- package/lib/components/radio/radio.js +4 -12
- package/lib/components/table/index.css +1 -0
- package/lib/components/upload/components/uploadedPreview.js +54 -62
- package/lib/components/upload/index.js +57 -89
- package/lib/components/upload/style.js +7 -7
- package/lib/components/upload/type.js +15 -15
- package/lib/components/upvote/index.js +14 -37
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +0 -4
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +24 -50
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +2 -11
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/index.js +5 -49
- package/lib/pages/home-page/components/data-list/nav-selector/index.js +0 -18
- package/lib/pages/home-page/components/data-list/table/utils-function.js +3 -6
- package/lib/utils/auth.js +5 -46
- package/lib/utils/bs-global.js +2 -26
- package/lib/utils/tools.js +20 -140
- package/package.json +2 -2
- package/lib/components/avatar/icon-avatar/index.css +0 -15
- package/lib/components/avatar/icon-avatar/index.js +0 -50
- package/lib/components/avatar/num-avatar/index.css +0 -12
- package/lib/components/avatar/num-avatar/index.js +0 -34
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/drop-down-arrow.js +0 -93
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/primary.js +0 -33
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/default-button/index.css +0 -49
- package/lib/components/button/default-button/index.js +0 -51
- package/lib/components/button/export-button/index.css +0 -51
- package/lib/components/button/export-button/index.js +0 -81
- package/lib/components/button/images/daoru.svg +0 -18
- package/lib/components/button/index.js +0 -23
- package/lib/components/button/interface.js +0 -5
- package/lib/components/communication/index.css +0 -63
- package/lib/components/create-okr/animation/check-animation.js +0 -2746
- package/lib/components/create-okr/constant.js +0 -27
- package/lib/components/create-okr/createCycle.js +0 -171
- package/lib/components/create-okr/createSuccessCmp.js +0 -233
- package/lib/components/create-okr/createSuccessCmpWrapper.js +0 -20
- package/lib/components/create-okr/fields/date-cycle.js +0 -98
- package/lib/components/create-okr/fields/index.css +0 -346
- package/lib/components/create-okr/fields/index.js +0 -17
- package/lib/components/create-okr/fields/input-with-err-popup.js +0 -57
- package/lib/components/create-okr/fields/o-new-name.js +0 -197
- package/lib/components/create-okr/fields/okr-case.js +0 -98
- package/lib/components/create-okr/fields/okr-classify.js +0 -51
- package/lib/components/create-okr/fields/okr-create-suggest.js +0 -147
- package/lib/components/create-okr/fields/okr-new-user-selector.js +0 -106
- package/lib/components/create-okr/fields/okr-parent.js +0 -157
- package/lib/components/create-okr/fields/okr-type-detail.js +0 -196
- package/lib/components/create-okr/fields/okr-type.js +0 -131
- package/lib/components/create-okr/fields/okr-visibility-detail.js +0 -224
- package/lib/components/create-okr/fields/okr-visibility.js +0 -169
- package/lib/components/create-okr/img/check-normal.svg +0 -29
- package/lib/components/create-okr/img/check-right.svg +0 -16
- package/lib/components/create-okr/img/check-wrong.svg +0 -29
- package/lib/components/create-okr/img/create-success-head.png +0 -0
- package/lib/components/create-okr/img/create-success-left-quotation.svg +0 -14
- package/lib/components/create-okr/img/create-success-message.svg +0 -1
- package/lib/components/create-okr/img/create-success-right-quotation.svg +0 -14
- package/lib/components/create-okr/img/create-success-shadow.svg +0 -23
- package/lib/components/create-okr/img/example.svg +0 -11
- package/lib/components/create-okr/img/hand.svg +0 -12
- package/lib/components/create-okr/img/kr-add.svg +0 -12
- package/lib/components/create-okr/img/left-quotation.svg +0 -12
- package/lib/components/create-okr/img/light.svg +0 -1
- package/lib/components/create-okr/img/pack-up.js +0 -28
- package/lib/components/create-okr/img/qr-code.png +0 -0
- package/lib/components/create-okr/img/right-quotation.svg +0 -12
- package/lib/components/create-okr/img/shower.png +0 -0
- package/lib/components/create-okr/img/target.svg +0 -19
- package/lib/components/create-okr/img/teach-okr.svg +0 -17
- package/lib/components/create-okr/img/wave.png +0 -0
- package/lib/components/create-okr/img/weight.svg +0 -12
- package/lib/components/create-okr/index.css +0 -446
- package/lib/components/create-okr/index.js +0 -911
- package/lib/components/create-okr/interface.js +0 -5
- package/lib/components/create-okr/kr-items/index.css +0 -180
- package/lib/components/create-okr/kr-items/kr-item-weight.js +0 -194
- package/lib/components/create-okr/kr-items/krDatas.js +0 -299
- package/lib/components/create-okr/kr-items/krItem.js +0 -167
- package/lib/components/create-okr/objectType.js +0 -273
- package/lib/components/create-okr/request-api.js +0 -220
- package/lib/components/create-okr/style.js +0 -100
- package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +0 -124
- package/lib/components/create-okr/utils/helper.js +0 -99
- package/lib/components/create-okr/utils/index.js +0 -23
- package/lib/components/dynamic/components/condition-render/index.js +0 -20
- package/lib/components/dynamic/components/dangerous-html/index.js +0 -22
- package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -78
- package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -192
- package/lib/components/dynamic/components/obj-status/index.css +0 -22
- package/lib/components/dynamic/components/obj-status/index.js +0 -38
- package/lib/components/dynamic/components/percent/index.css +0 -21
- package/lib/components/dynamic/components/percent/index.js +0 -38
- package/lib/components/dynamic/components/title/index.css +0 -35
- package/lib/components/dynamic/components/title/index.js +0 -59
- package/lib/components/dynamic/constant.js +0 -96
- package/lib/components/dynamic/context/index.js +0 -13
- package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -101
- package/lib/components/dynamic/dynamic-item/components/header/index.js +0 -294
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +0 -173
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +0 -54
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +0 -107
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +0 -48
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +0 -89
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +0 -96
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +0 -171
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +0 -67
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +0 -110
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +0 -16
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +0 -111
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +0 -158
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +0 -215
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +0 -16
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +0 -91
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +0 -125
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +0 -95
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +0 -192
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +0 -138
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +0 -183
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +0 -153
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +0 -138
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +0 -97
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +0 -207
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +0 -54
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +0 -107
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +0 -50
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +0 -111
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +0 -164
- package/lib/components/dynamic/dynamic-item/index.css +0 -128
- package/lib/components/dynamic/dynamic-item/index.js +0 -352
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -126
- package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -157
- package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -107
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
- package/lib/components/dynamic/dynamic-liking/index.css +0 -81
- package/lib/components/dynamic/dynamic-liking/index.js +0 -76
- package/lib/components/dynamic/dynamic-liking/item.js +0 -90
- package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
- package/lib/components/dynamic/dynamic-list/index.css +0 -36
- package/lib/components/dynamic/dynamic-list/index.js +0 -61
- package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +0 -16
- package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +0 -30
- package/lib/components/dynamic/dynamic-topping/index.css +0 -130
- package/lib/components/dynamic/dynamic-topping/index.js +0 -78
- package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
- package/lib/components/dynamic/dynamic-topping/item.js +0 -138
- package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
- package/lib/components/dynamic/dynamic.css +0 -204
- package/lib/components/dynamic/dynamic.js +0 -391
- package/lib/components/dynamic/export-module/index.js +0 -33
- package/lib/components/dynamic/img/dynamic-P1.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P2.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P3.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P4.svg +0 -15
- package/lib/components/dynamic/img/dynamic-P5.svg +0 -15
- package/lib/components/dynamic/img/dynamic-delay.svg +0 -17
- package/lib/components/dynamic/img/dynamic-desire.svg +0 -61
- package/lib/components/dynamic/img/dynamic-empty.png +0 -0
- package/lib/components/dynamic/img/dynamic-end.svg +0 -17
- package/lib/components/dynamic/img/dynamic-left-quoto.svg +0 -13
- package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
- package/lib/components/dynamic/img/dynamic-normal.svg +0 -17
- package/lib/components/dynamic/img/dynamic-promise.svg +0 -61
- package/lib/components/dynamic/img/dynamic-reword.svg +0 -24
- package/lib/components/dynamic/img/dynamic-right-quoto.svg +0 -13
- package/lib/components/dynamic/img/dynamic-risk.svg +0 -17
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
- package/lib/components/dynamic/img/dynamic-top.svg +0 -14
- package/lib/components/dynamic/index.js +0 -27
- package/lib/components/dynamic/interface.js +0 -5
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -37
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -42
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +0 -51
- package/lib/components/dynamic/quick-operation/index.js +0 -112
- package/lib/components/dynamic/request-api.js +0 -92
- package/lib/components/dynamic/util.js +0 -140
- package/lib/components/file-list/components/single-file/index.css +0 -84
- package/lib/components/file-list/components/single-file/index.js +0 -115
- package/lib/components/file-list/img/new-file-list-doc.svg +0 -1
- package/lib/components/file-list/img/new-file-list-other.svg +0 -1
- package/lib/components/file-list/img/new-file-list-pdf.svg +0 -1
- package/lib/components/file-list/img/new-file-list-ppt.svg +0 -1
- package/lib/components/file-list/img/new-file-list-radio.svg +0 -1
- package/lib/components/file-list/img/new-file-list-video.svg +0 -1
- package/lib/components/file-list/img/new-file-list-xls.svg +0 -1
- package/lib/components/file-list/index.css +0 -5
- package/lib/components/file-list/index.js +0 -61
- package/lib/components/file-list/interface.js +0 -5
- package/lib/components/file-list/util.js +0 -78
- package/lib/components/img-viewer/icon/enlarge.js +0 -30
- package/lib/components/img-viewer/icon/left-rotate.js +0 -46
- package/lib/components/img-viewer/icon/right-rotate.js +0 -44
- package/lib/components/img-viewer/icon/shrink.js +0 -37
- package/lib/components/img-viewer/image/loading.gif +0 -0
- package/lib/components/img-viewer/index.css +0 -155
- package/lib/components/img-viewer/index.js +0 -228
- package/lib/components/img-viewer/interface.js +0 -5
- package/lib/components/img-viewer/util.js +0 -16
- package/lib/components/publish-dynamic-modal/index.js +0 -13
- package/lib/components/publish-dynamic-modal/interface.js +0 -5
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +0 -3
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +0 -191
- package/lib/components/publish-dynamic-modal/requist-api.js +0 -48
- package/lib/components/search-key-handle/index.js +0 -39
- package/lib/components/upload/img/doc.svg +0 -1
- package/lib/components/upload/img/other.svg +0 -1
- package/lib/components/upload/img/pdf.svg +0 -1
- package/lib/components/upload/img/ppt.svg +0 -1
- package/lib/components/upload/img/radio.svg +0 -1
- package/lib/components/upload/img/video.svg +0 -1
- package/lib/components/upload/img/xls.svg +0 -1
- package/lib/components/upload/index.css +0 -26
- package/lib/components/upload/util.js +0 -102
- package/lib/components-v1/buttonv2/ButtonLinked.js +0 -35
- package/lib/components-v1/buttonv2/ButtonOutlined.js +0 -64
- package/lib/components-v1/buttonv2/ButtonRounded.js +0 -101
- package/lib/components-v1/buttonv2/DefaultButton.js +0 -86
- package/lib/components-v1/buttonv2/index.js +0 -37
- package/lib/components-v1/buttonv2/style/style.js +0 -53
- package/lib/components-v1/buttonv2/style/theme.css +0 -3
- package/lib/components-v1/confirm/index.js +0 -158
- package/lib/pages/dynamic/index.css +0 -5
- package/lib/pages/dynamic/index.js +0 -25
- package/lib/pages/like-ranking/column.js +0 -141
- package/lib/pages/like-ranking/filter-buttons/department.js +0 -44
- package/lib/pages/like-ranking/filter-buttons/group.js +0 -34
- package/lib/pages/like-ranking/filter-buttons/index.css +0 -19
- package/lib/pages/like-ranking/filter-buttons/index.js +0 -44
- package/lib/pages/like-ranking/filter-buttons/modular.js +0 -110
- package/lib/pages/like-ranking/filter-buttons/name.js +0 -73
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +0 -27
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +0 -38
- package/lib/pages/like-ranking/filter-buttons/timer.js +0 -56
- package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
- package/lib/pages/like-ranking/image/loading.gif +0 -0
- package/lib/pages/like-ranking/image/ranking-1.png +0 -0
- package/lib/pages/like-ranking/image/ranking-2.png +0 -0
- package/lib/pages/like-ranking/image/ranking-3.png +0 -0
- package/lib/pages/like-ranking/index.css +0 -185
- package/lib/pages/like-ranking/index.js +0 -252
- package/lib/pages/like-ranking/mock.js +0 -366
- package/lib/pages/like-ranking/request-api.js +0 -15
- package/lib/utils/format-time.js +0 -161
- package/lib/utils/helpers.js +0 -41
- package/lib/utils/roundWeight.js +0 -105
- package/yarn-error.log +0 -15894
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _dynamic = _interopRequireDefault(require("../../components/dynamic/dynamic"));
|
|
11
|
-
|
|
12
|
-
require("./index.css");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var prefix = 'dynamic-page';
|
|
17
|
-
|
|
18
|
-
var DynamicPage = function DynamicPage() {
|
|
19
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
|
-
className: prefix
|
|
21
|
-
}, /*#__PURE__*/_react["default"].createElement(_dynamic["default"], null));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
var _default = DynamicPage;
|
|
25
|
-
exports["default"] = _default;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.columns = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _tooltipText = _interopRequireDefault(require("../../components/tooltip/tooltip-text"));
|
|
11
|
-
|
|
12
|
-
var _default = _interopRequireDefault(require("../../components/avatar/default"));
|
|
13
|
-
|
|
14
|
-
var _bsGlobal = require("../../utils/bs-global");
|
|
15
|
-
|
|
16
|
-
var _openData = require("../../utils/open-data");
|
|
17
|
-
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
var preCls = "like-ranking-table";
|
|
23
|
-
|
|
24
|
-
var columns = function columns() {
|
|
25
|
-
var formatRaking = function formatRaking(num) {
|
|
26
|
-
if (num === 1) {
|
|
27
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
28
|
-
className: "".concat(preCls, "-medal"),
|
|
29
|
-
src: require("./image/ranking-1.png"),
|
|
30
|
-
alt: "\u91D1\u724C"
|
|
31
|
-
});
|
|
32
|
-
} else if (num === 2) {
|
|
33
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
34
|
-
className: "".concat(preCls, "-medal"),
|
|
35
|
-
src: require("./image/ranking-2.png"),
|
|
36
|
-
alt: "\u94F6\u724C"
|
|
37
|
-
});
|
|
38
|
-
} else if (num === 3) {
|
|
39
|
-
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
40
|
-
className: "".concat(preCls, "-medal"),
|
|
41
|
-
src: require("./image/ranking-3.png"),
|
|
42
|
-
alt: "\u94DC\u724C"
|
|
43
|
-
});
|
|
44
|
-
} else {
|
|
45
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
46
|
-
className: "".concat(preCls, "-ranking")
|
|
47
|
-
}, num);
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return [{
|
|
52
|
-
title: "排名",
|
|
53
|
-
dataIndex: "rankNum",
|
|
54
|
-
width: 100,
|
|
55
|
-
key: "rankNum",
|
|
56
|
-
className: "".concat(preCls, "__td ").concat(preCls, "__td-raking"),
|
|
57
|
-
render: function render(text, data) {
|
|
58
|
-
return formatRaking(data.rankNum);
|
|
59
|
-
}
|
|
60
|
-
}, {
|
|
61
|
-
title: "姓名",
|
|
62
|
-
dataIndex: "name",
|
|
63
|
-
key: "name",
|
|
64
|
-
width: 100,
|
|
65
|
-
className: "".concat(preCls, "__td"),
|
|
66
|
-
render: function render(text, data) {
|
|
67
|
-
var user = data.user; // const url = getUrlForUserPage({
|
|
68
|
-
// userId: user.userId,
|
|
69
|
-
// userType: user.userType || 2,
|
|
70
|
-
// });
|
|
71
|
-
// const handleOpenUserPage = () => {
|
|
72
|
-
// window.open(url, "_blank");
|
|
73
|
-
// };
|
|
74
|
-
|
|
75
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
76
|
-
className: "".concat(preCls, "__td-name")
|
|
77
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
|
-
className: "".concat(preCls, "__td-name-avatar")
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement(_default["default"], {
|
|
80
|
-
name: user.name,
|
|
81
|
-
src: user.avatar.small,
|
|
82
|
-
color: user.avatar.color,
|
|
83
|
-
userId: user.userId
|
|
84
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
|
-
className: "".concat(preCls, "__td-name-text")
|
|
86
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
87
|
-
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
88
|
-
id: user.userId,
|
|
89
|
-
name: user.name
|
|
90
|
-
}),
|
|
91
|
-
isPercent: true
|
|
92
|
-
})));
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
title: "所属部门",
|
|
96
|
-
width: 100,
|
|
97
|
-
dataIndex: "departmentName",
|
|
98
|
-
key: "departmentName",
|
|
99
|
-
className: "".concat(preCls, "__td"),
|
|
100
|
-
render: function render(text, data) {
|
|
101
|
-
var user = data.user;
|
|
102
|
-
return /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
103
|
-
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
104
|
-
id: user.departmentId,
|
|
105
|
-
name: user.departmentName
|
|
106
|
-
}),
|
|
107
|
-
isPercent: true
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}, {
|
|
111
|
-
title: "一级部门",
|
|
112
|
-
width: 100,
|
|
113
|
-
dataIndex: "oneLevelDepName",
|
|
114
|
-
key: "oneLevelDepName",
|
|
115
|
-
className: "".concat(preCls, "__td"),
|
|
116
|
-
render: function render(text, data) {
|
|
117
|
-
return /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
118
|
-
text: /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
119
|
-
id: data.oneLevelDepName,
|
|
120
|
-
name: data.oneLevelDepName
|
|
121
|
-
}),
|
|
122
|
-
isPercent: true
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
title: "点赞数",
|
|
127
|
-
width: 100,
|
|
128
|
-
dataIndex: "pariseNums",
|
|
129
|
-
key: "pariseNums",
|
|
130
|
-
className: "".concat(preCls, "__td"),
|
|
131
|
-
render: function render(text, data) {
|
|
132
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
|
-
className: "".concat(preCls, "__td-like")
|
|
134
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
|
-
className: "".concat(preCls, "__td-num")
|
|
136
|
-
}, (0, _bsGlobal.formatNum)(data.pariseNums)), "\u70B9\u8D5E");
|
|
137
|
-
}
|
|
138
|
-
}];
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
exports.columns = columns;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _userSelector = require("../../../components/user-selector");
|
|
13
|
-
|
|
14
|
-
var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));
|
|
15
|
-
|
|
16
|
-
require("./index.css");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
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); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
var DepartMent = function DepartMent(_ref) {
|
|
25
|
-
var setParma = _ref.setParma;
|
|
26
|
-
|
|
27
|
-
var onDepartSelect = function onDepartSelect(keys, data) {
|
|
28
|
-
setParma("depIds", keys[0]["id"]);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
var departRef = (0, _react.useRef)();
|
|
32
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_userSelector.FieldPersonSelector, {
|
|
33
|
-
ref: departRef,
|
|
34
|
-
auth: true,
|
|
35
|
-
departOnly: true,
|
|
36
|
-
isGetRoot: true // selectNodes={selected}
|
|
37
|
-
,
|
|
38
|
-
onSelect: onDepartSelect,
|
|
39
|
-
position: "bottomLeft"
|
|
40
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], null, "\u90E8\u95E8")));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var _default = DepartMent;
|
|
44
|
-
exports["default"] = _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _userSelector = require("../../../components/user-selector");
|
|
11
|
-
|
|
12
|
-
var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));
|
|
13
|
-
|
|
14
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
var DepartMent = function DepartMent(_ref) {
|
|
19
|
-
var setParma = _ref.setParma;
|
|
20
|
-
|
|
21
|
-
var onSelect = function onSelect(keys) {
|
|
22
|
-
setParma("groupIds", keys[0]["id"]);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_userSelector.GroupSelector, {
|
|
26
|
-
auth: true,
|
|
27
|
-
isGetRoot: true,
|
|
28
|
-
onSelect: onSelect,
|
|
29
|
-
position: "bottomLeft"
|
|
30
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], null, "\u7FA4\u7EC4"))));
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
var _default = DepartMent;
|
|
34
|
-
exports["default"] = _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
.filter-buttons {
|
|
2
|
-
display: flex;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.filter-buttons-line {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
width: 1px;
|
|
8
|
-
height: 22px;
|
|
9
|
-
background: linear-gradient(150deg, rgba(191, 199, 213, 0) 0%, #BFC7D5 50%, rgba(240, 242, 245, 0) 100%);
|
|
10
|
-
margin: 0 10px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.filter-buttons-modular__btn-ok {
|
|
14
|
-
margin: 12px 0 0 28px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.filter-buttons-modular-checked {
|
|
18
|
-
color: #2879FF;
|
|
19
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _department = _interopRequireDefault(require("./department"));
|
|
11
|
-
|
|
12
|
-
var _group = _interopRequireDefault(require("./group"));
|
|
13
|
-
|
|
14
|
-
var _timer = _interopRequireDefault(require("./timer"));
|
|
15
|
-
|
|
16
|
-
var _modular = _interopRequireDefault(require("./modular"));
|
|
17
|
-
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
var preCls = "filter-buttons";
|
|
23
|
-
|
|
24
|
-
var FilterButton = function FilterButton(_ref) {
|
|
25
|
-
var parmas = _ref.parmas,
|
|
26
|
-
setParma = _ref.setParma,
|
|
27
|
-
setType = _ref.setType;
|
|
28
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
29
|
-
className: "".concat(preCls)
|
|
30
|
-
}, /*#__PURE__*/_react["default"].createElement(_department["default"], {
|
|
31
|
-
setParma: setParma
|
|
32
|
-
}), /*#__PURE__*/_react["default"].createElement(_group["default"], {
|
|
33
|
-
setParma: setParma
|
|
34
|
-
}), /*#__PURE__*/_react["default"].createElement(_timer["default"], {
|
|
35
|
-
setParma: setParma,
|
|
36
|
-
parmas: parmas,
|
|
37
|
-
setType: setType
|
|
38
|
-
}), /*#__PURE__*/_react["default"].createElement(_modular["default"], {
|
|
39
|
-
setParma: setParma
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var _default = FilterButton;
|
|
44
|
-
exports["default"] = _default;
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _dropdownLayer = _interopRequireWildcard(require("../../../components/dropdown-layer"));
|
|
13
|
-
|
|
14
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
|
-
var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));
|
|
17
|
-
|
|
18
|
-
var _bsGlobal = require("../../../utils/bs-global");
|
|
19
|
-
|
|
20
|
-
require("./index.css");
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
-
|
|
24
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
28
|
-
function _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; }
|
|
29
|
-
|
|
30
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
31
|
-
|
|
32
|
-
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."); }
|
|
33
|
-
|
|
34
|
-
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); }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
39
|
-
|
|
40
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
|
-
|
|
42
|
-
var preCls = "filter-buttons-modular";
|
|
43
|
-
|
|
44
|
-
var Modular = function Modular(_ref) {
|
|
45
|
-
var setParma = _ref.setParma;
|
|
46
|
-
|
|
47
|
-
var _useState = (0, _react.useState)("0"),
|
|
48
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
49
|
-
value = _useState2[0],
|
|
50
|
-
setValue = _useState2[1];
|
|
51
|
-
|
|
52
|
-
var _useState3 = (0, _react.useState)(false),
|
|
53
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
54
|
-
visible = _useState4[0],
|
|
55
|
-
setVisible = _useState4[1];
|
|
56
|
-
|
|
57
|
-
var list = [{
|
|
58
|
-
value: "0",
|
|
59
|
-
label: "全部"
|
|
60
|
-
}, (0, _bsGlobal.hasWebHead)("okr") && {
|
|
61
|
-
value: "1",
|
|
62
|
-
label: "目标"
|
|
63
|
-
}, (0, _bsGlobal.hasWebHead)("okr") && {
|
|
64
|
-
value: "2",
|
|
65
|
-
label: "关键成果"
|
|
66
|
-
}, (0, _bsGlobal.hasWebHead)("project") && {
|
|
67
|
-
value: "3",
|
|
68
|
-
label: "项目"
|
|
69
|
-
}, (0, _bsGlobal.hasWebHead)("task") && {
|
|
70
|
-
value: "4",
|
|
71
|
-
label: "任务"
|
|
72
|
-
}, {
|
|
73
|
-
value: "5",
|
|
74
|
-
label: "总结"
|
|
75
|
-
}, (0, _bsGlobal.hasWebHead)("kaohe") && {
|
|
76
|
-
value: "6",
|
|
77
|
-
label: "绩效考核"
|
|
78
|
-
}];
|
|
79
|
-
|
|
80
|
-
var onMenuClickHandler = function onMenuClickHandler(name) {
|
|
81
|
-
setValue(name);
|
|
82
|
-
setParma("ObjectType", Number(name));
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_dropdownLayer["default"], {
|
|
86
|
-
multi: false,
|
|
87
|
-
onChange: onMenuClickHandler,
|
|
88
|
-
popupPlacement: "bottom",
|
|
89
|
-
hideOnChange: true,
|
|
90
|
-
checked: value,
|
|
91
|
-
limitHeight: false,
|
|
92
|
-
visible: visible,
|
|
93
|
-
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
|
-
onClick: function onClick() {
|
|
95
|
-
return setVisible(true);
|
|
96
|
-
}
|
|
97
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], {
|
|
98
|
-
noRightLine: true
|
|
99
|
-
}, "\u70B9\u8D5E\u6A21\u5757"))
|
|
100
|
-
}, list.map(function (item, key) {
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement(_dropdownLayer.Item, {
|
|
102
|
-
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "-checked"), item.value === value)),
|
|
103
|
-
key: key,
|
|
104
|
-
name: item.value
|
|
105
|
-
}, item.label);
|
|
106
|
-
})));
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
var _default = Modular;
|
|
110
|
-
exports["default"] = _default;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _userSelector = require("../../../components/user-selector");
|
|
13
|
-
|
|
14
|
-
var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));
|
|
15
|
-
|
|
16
|
-
require("./index.css");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
20
|
-
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); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
|
-
|
|
26
|
-
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."); }
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
33
|
-
|
|
34
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
|
-
|
|
36
|
-
var Name = function Name(_ref) {
|
|
37
|
-
var setParma = _ref.setParma;
|
|
38
|
-
|
|
39
|
-
var _useState = (0, _react.useState)({}),
|
|
40
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
41
|
-
selected = _useState2[0],
|
|
42
|
-
setSelected = _useState2[1];
|
|
43
|
-
|
|
44
|
-
var onEditUserHandler = function onEditUserHandler(selectNodes) {
|
|
45
|
-
setSelected(selectNodes);
|
|
46
|
-
var users = selectNodes.users;
|
|
47
|
-
var userIds = "";
|
|
48
|
-
users.forEach(function (item, key) {
|
|
49
|
-
userIds = userIds + item.userId;
|
|
50
|
-
|
|
51
|
-
if (key != users.length - 1) {
|
|
52
|
-
userIds = userIds + ",";
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
setParma("ToUserIds", userIds);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_userSelector.FieldPersonSelector, {
|
|
59
|
-
multiple: true,
|
|
60
|
-
selectNodes: selected,
|
|
61
|
-
onOk: onEditUserHandler,
|
|
62
|
-
position: "bottomLeft",
|
|
63
|
-
disabledDepartSelect: true,
|
|
64
|
-
isGetRoot: false,
|
|
65
|
-
panes: {
|
|
66
|
-
depart: true,
|
|
67
|
-
group: false
|
|
68
|
-
}
|
|
69
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], null, "\u59D3\u540D")));
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
var _default = Name;
|
|
73
|
-
exports["default"] = _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.like-search-dropdown {
|
|
2
|
-
display: flex;
|
|
3
|
-
font-size: 12px;
|
|
4
|
-
align-items: center;
|
|
5
|
-
cursor: pointer;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.like-search-dropdown:hover {
|
|
9
|
-
color: #2879ff;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.like-search-dropdown::after {
|
|
13
|
-
content: '';
|
|
14
|
-
display: inline-block;
|
|
15
|
-
width: 1px;
|
|
16
|
-
height: 22px;
|
|
17
|
-
background: linear-gradient(150deg, rgba(191, 199, 213, 0) 0%, #BFC7D5 50%, rgba(240, 242, 245, 0) 100%);
|
|
18
|
-
margin: 0 10px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.like-search-dropdown-noRightLine::after {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.like-search-dropdown__text {
|
|
26
|
-
margin-right: 4px;
|
|
27
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
require("./index.css");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
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
|
-
var preCls = "like-search-dropdown";
|
|
19
|
-
|
|
20
|
-
var SearchDropDown = function SearchDropDown(props) {
|
|
21
|
-
var children = props.children,
|
|
22
|
-
maxWidth = props.maxWidth,
|
|
23
|
-
_props$noRightLine = props.noRightLine,
|
|
24
|
-
noRightLine = _props$noRightLine === void 0 ? false : _props$noRightLine;
|
|
25
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
26
|
-
className: (0, _classnames["default"])(preCls, _defineProperty({}, "".concat(preCls, "-noRightLine"), noRightLine))
|
|
27
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
28
|
-
className: "".concat(preCls, "__text"),
|
|
29
|
-
style: {
|
|
30
|
-
maxWidth: maxWidth
|
|
31
|
-
}
|
|
32
|
-
}, children), /*#__PURE__*/_react["default"].createElement("span", {
|
|
33
|
-
className: "tu-icon-arrow-down1"
|
|
34
|
-
}));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var _default = SearchDropDown;
|
|
38
|
-
exports["default"] = _default;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _rangePickerPop = _interopRequireDefault(require("../../../components/range-picker-pop"));
|
|
13
|
-
|
|
14
|
-
var _formatTime = require("../../../utils/format-time");
|
|
15
|
-
|
|
16
|
-
var _searchDropdown = _interopRequireDefault(require("./search-dropdown"));
|
|
17
|
-
|
|
18
|
-
require("./index.css");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
-
|
|
22
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
|
-
var Timer = function Timer(_ref) {
|
|
27
|
-
var setParma = _ref.setParma,
|
|
28
|
-
parmas = _ref.parmas,
|
|
29
|
-
setType = _ref.setType;
|
|
30
|
-
var _parmas$date = parmas.date,
|
|
31
|
-
createDate = _parmas$date.createDate,
|
|
32
|
-
endDate = _parmas$date.endDate;
|
|
33
|
-
|
|
34
|
-
var onStartDateConfirmHandler = function onStartDateConfirmHandler(data) {
|
|
35
|
-
setType("");
|
|
36
|
-
var date = {
|
|
37
|
-
createDate: data.startDate,
|
|
38
|
-
endDate: data.endDate
|
|
39
|
-
};
|
|
40
|
-
setParma("date", date);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_rangePickerPop["default"], {
|
|
44
|
-
format: "YYYY-MM-DD",
|
|
45
|
-
controlled: true,
|
|
46
|
-
onConfirm: onStartDateConfirmHandler,
|
|
47
|
-
defaultRange: {
|
|
48
|
-
startDate: createDate || (0, _formatTime.showMonthFirstDay)(),
|
|
49
|
-
endDate: endDate || (0, _formatTime.showMonthLastDay)()
|
|
50
|
-
} // container={container}
|
|
51
|
-
|
|
52
|
-
}, /*#__PURE__*/_react["default"].createElement(_searchDropdown["default"], null, "\u65F6\u95F4")));
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
var _default = Timer;
|
|
56
|
-
exports["default"] = _default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|