@titaui/pc 1.5.82 → 1.5.83
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/icon-avatar/index.css +15 -0
- package/lib/components/avatar/icon-avatar/index.js +50 -0
- package/lib/components/avatar/index.js +9 -1
- package/lib/components/avatar/num-avatar/index.css +12 -0
- package/lib/components/avatar/num-avatar/index.js +34 -0
- package/lib/components/button/admin-button/default.js +35 -0
- package/lib/components/button/admin-button/drop-down-arrow.js +93 -0
- package/lib/components/button/admin-button/index.css +86 -0
- package/lib/components/button/admin-button/index.js +40 -0
- package/lib/components/button/admin-button/primary.js +33 -0
- package/lib/components/button/admin-button/secondary.js +35 -0
- package/lib/components/button/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/export-button/index.css +51 -0
- package/lib/components/button/export-button/index.js +81 -0
- package/lib/components/button/images/daoru.svg +18 -0
- package/lib/components/button/index.js +23 -0
- package/lib/components/button/interface.js +5 -0
- package/lib/components/change-okr/Filter.js +133 -65
- package/lib/components/change-okr/Item.js +6 -0
- package/lib/components/change-okr/filterTab.js +2 -0
- package/lib/components/change-okr/index.js +2 -2
- package/lib/components/checkbox/index.js +4 -3
- package/lib/components/communication/CommunicationRecord.js +116 -161
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.css +63 -0
- package/lib/components/communication/index.js +53 -28
- package/lib/components/communication/style.js +21 -25
- package/lib/components/create-okr/animation/check-animation.js +2746 -0
- package/lib/components/create-okr/constant.js +27 -0
- package/lib/components/create-okr/createCycle.js +193 -0
- package/lib/components/create-okr/createSuccessCmp.js +233 -0
- package/lib/components/create-okr/createSuccessCmpWrapper.js +20 -0
- package/lib/components/create-okr/fields/date-cycle.js +98 -0
- package/lib/components/create-okr/fields/index.css +346 -0
- package/lib/components/create-okr/fields/index.js +17 -0
- package/lib/components/create-okr/fields/input-with-err-popup.js +57 -0
- package/lib/components/create-okr/fields/o-new-name.js +197 -0
- package/lib/components/create-okr/fields/okr-case.js +98 -0
- package/lib/components/create-okr/fields/okr-classify.js +51 -0
- package/lib/components/create-okr/fields/okr-create-suggest.js +147 -0
- package/lib/components/create-okr/fields/okr-new-user-selector.js +106 -0
- package/lib/components/create-okr/fields/okr-parent.js +157 -0
- package/lib/components/create-okr/fields/okr-type-detail.js +196 -0
- package/lib/components/create-okr/fields/okr-type.js +131 -0
- package/lib/components/create-okr/fields/okr-visibility-detail.js +224 -0
- package/lib/components/create-okr/fields/okr-visibility.js +169 -0
- package/lib/components/create-okr/img/check-normal.svg +29 -0
- package/lib/components/create-okr/img/check-right.svg +16 -0
- package/lib/components/create-okr/img/check-wrong.svg +29 -0
- package/lib/components/create-okr/img/create-success-head.png +0 -0
- package/lib/components/create-okr/img/create-success-left-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-message.svg +1 -0
- package/lib/components/create-okr/img/create-success-right-quotation.svg +14 -0
- package/lib/components/create-okr/img/create-success-shadow.svg +23 -0
- package/lib/components/create-okr/img/example.svg +11 -0
- package/lib/components/create-okr/img/hand.svg +12 -0
- package/lib/components/create-okr/img/kr-add.svg +12 -0
- package/lib/components/create-okr/img/left-quotation.svg +12 -0
- package/lib/components/create-okr/img/light.svg +1 -0
- package/lib/components/create-okr/img/pack-up.js +28 -0
- package/lib/components/create-okr/img/qr-code.png +0 -0
- package/lib/components/create-okr/img/right-quotation.svg +12 -0
- package/lib/components/create-okr/img/shower.png +0 -0
- package/lib/components/create-okr/img/target.svg +19 -0
- package/lib/components/create-okr/img/teach-okr.svg +17 -0
- package/lib/components/create-okr/img/wave.png +0 -0
- package/lib/components/create-okr/img/weight.svg +12 -0
- package/lib/components/create-okr/index.css +446 -0
- package/lib/components/create-okr/index.js +911 -0
- package/lib/components/create-okr/interface.js +5 -0
- package/lib/components/create-okr/kr-items/index.css +180 -0
- package/lib/components/create-okr/kr-items/kr-item-weight.js +194 -0
- package/lib/components/create-okr/kr-items/krDatas.js +299 -0
- package/lib/components/create-okr/kr-items/krItem.js +167 -0
- package/lib/components/create-okr/objectType.js +273 -0
- package/lib/components/create-okr/request-api.js +220 -0
- package/lib/components/create-okr/style.js +100 -0
- package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +124 -0
- package/lib/components/create-okr/utils/helper.js +99 -0
- package/lib/components/create-okr/utils/index.js +23 -0
- package/lib/components/dropdown-layer/icon-item.js +5 -3
- package/lib/components/dropdown-layer/index.css +16 -0
- package/lib/components/dropdown-layer/index.js +21 -14
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dangerous-html/index.js +22 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +78 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +192 -0
- package/lib/components/dynamic/components/obj-status/index.css +22 -0
- package/lib/components/dynamic/components/obj-status/index.js +38 -0
- package/lib/components/dynamic/components/percent/index.css +21 -0
- package/lib/components/dynamic/components/percent/index.js +38 -0
- package/lib/components/dynamic/components/title/index.css +35 -0
- package/lib/components/dynamic/components/title/index.js +59 -0
- package/lib/components/dynamic/constant.js +97 -0
- package/lib/components/dynamic/context/index.js +13 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.css +101 -0
- package/lib/components/dynamic/dynamic-item/components/header/index.js +299 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +35 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +173 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +48 -0
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +89 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +96 -0
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +171 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +67 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +158 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +215 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +16 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +91 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +125 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +95 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +192 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +183 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +153 -0
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +138 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +97 -0
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +207 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +59 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +50 -0
- 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 +111 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +164 -0
- package/lib/components/dynamic/dynamic-item/index.css +128 -0
- package/lib/components/dynamic/dynamic-item/index.js +352 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- 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 +126 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +157 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +107 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/dynamic/dynamic-liking/index.js +76 -0
- package/lib/components/dynamic/dynamic-liking/item.js +91 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.css +36 -0
- package/lib/components/dynamic/dynamic-list/index.js +61 -0
- package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +148 -0
- package/lib/components/dynamic/dynamic-topping/index.js +80 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +140 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +204 -0
- package/lib/components/dynamic/dynamic.js +391 -0
- package/lib/components/dynamic/export-module/index.js +33 -0
- package/lib/components/dynamic/img/dynamic-P1.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P2.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P3.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P4.svg +15 -0
- package/lib/components/dynamic/img/dynamic-P5.svg +15 -0
- package/lib/components/dynamic/img/dynamic-delay.svg +17 -0
- package/lib/components/dynamic/img/dynamic-desire.svg +61 -0
- package/lib/components/dynamic/img/dynamic-empty.png +0 -0
- package/lib/components/dynamic/img/dynamic-end.svg +17 -0
- package/lib/components/dynamic/img/dynamic-left-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
- package/lib/components/dynamic/img/dynamic-normal.svg +17 -0
- package/lib/components/dynamic/img/dynamic-promise.svg +61 -0
- package/lib/components/dynamic/img/dynamic-reword.svg +24 -0
- package/lib/components/dynamic/img/dynamic-right-quoto.svg +13 -0
- package/lib/components/dynamic/img/dynamic-risk.svg +17 -0
- package/lib/components/dynamic/img/dynamic-submit-delay.svg +16 -0
- package/lib/components/dynamic/img/dynamic-submit-normal.svg +18 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +27 -0
- package/lib/components/dynamic/interface.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +37 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +42 -0
- 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 +51 -0
- package/lib/components/dynamic/quick-operation/index.js +112 -0
- package/lib/components/dynamic/request-api.js +92 -0
- package/lib/components/dynamic/util.js +140 -0
- package/lib/components/emotionsSelector/style.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +84 -0
- package/lib/components/file-list/components/single-file/index.js +115 -0
- package/lib/components/file-list/img/new-file-list-doc.svg +1 -0
- package/lib/components/file-list/img/new-file-list-other.svg +1 -0
- package/lib/components/file-list/img/new-file-list-pdf.svg +1 -0
- package/lib/components/file-list/img/new-file-list-ppt.svg +1 -0
- package/lib/components/file-list/img/new-file-list-radio.svg +1 -0
- package/lib/components/file-list/img/new-file-list-video.svg +1 -0
- package/lib/components/file-list/img/new-file-list-xls.svg +1 -0
- package/lib/components/file-list/index.css +5 -0
- package/lib/components/file-list/index.js +61 -0
- package/lib/components/file-list/interface.js +5 -0
- package/lib/components/file-list/util.js +78 -0
- package/lib/components/form/form-fields/input/index.css +11 -0
- package/lib/components/form/form-fields/input/index.js +3 -1
- package/lib/components/grid-page/image/{Assistant.svg → assistant.svg} +0 -0
- package/lib/components/grid-page/image/{Boss.svg → boss.svg} +0 -0
- package/lib/components/grid-page/image/{Default-background.png → default-background.png} +0 -0
- package/lib/components/grid-page/image/{UserManager.svg → userManager.svg} +0 -0
- package/lib/components/grid-page/personal-info/index.js +5 -5
- package/lib/components/img-viewer/icon/enlarge.js +30 -0
- package/lib/components/img-viewer/icon/left-rotate.js +46 -0
- package/lib/components/img-viewer/icon/right-rotate.js +44 -0
- package/lib/components/img-viewer/icon/shrink.js +37 -0
- package/lib/components/img-viewer/image/loading.gif +0 -0
- package/lib/components/img-viewer/index.css +155 -0
- package/lib/components/img-viewer/index.js +228 -0
- package/lib/components/img-viewer/interface.js +5 -0
- package/lib/components/img-viewer/util.js +16 -0
- package/lib/components/mblog/components/MblogAction.js +10 -6
- package/lib/components/mblog/index.js +24 -11
- package/lib/components/mblog/style.js +8 -8
- package/lib/components/okr-detail/components/header/index.css +4 -0
- 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 +15 -8
- package/lib/components/okr-flow/child-node/work-node.js +7 -1
- package/lib/components/okr-period-selector/select-cycle.js +139 -151
- package/lib/components/okr-progress-detail/index.css +1 -0
- 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 +168 -17
- package/lib/components/period-selector/components/selector/index.js +103 -38
- package/lib/components/period-selector/components/selector/style.js +23 -9
- package/lib/components/period-selector/index.js +29 -28
- package/lib/components/popup/index.js +3 -1
- package/lib/components/publish-dynamic-modal/index.js +13 -0
- package/lib/components/publish-dynamic-modal/interface.js +5 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +3 -0
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +191 -0
- package/lib/components/publish-dynamic-modal/requist-api.js +48 -0
- package/lib/components/radio/index.css +5 -0
- package/lib/components/radio/radio.js +12 -4
- package/lib/components/search-key-handle/index.js +39 -0
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/components/uploadedPreview.js +62 -54
- package/lib/components/upload/img/doc.svg +1 -0
- package/lib/components/upload/img/other.svg +1 -0
- package/lib/components/upload/img/pdf.svg +1 -0
- package/lib/components/upload/img/ppt.svg +1 -0
- package/lib/components/upload/img/radio.svg +1 -0
- package/lib/components/upload/img/video.svg +1 -0
- package/lib/components/upload/img/xls.svg +1 -0
- package/lib/components/upload/index.css +26 -0
- package/lib/components/upload/index.js +89 -57
- package/lib/components/upload/style.js +7 -7
- package/lib/components/upload/type.js +15 -15
- package/lib/components/upload/util.js +102 -0
- package/lib/components/upvote/index.js +37 -14
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +4 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +50 -24
- package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +11 -2
- package/lib/components/user-selector/layout/index.css +1 -1
- package/lib/components-v1/buttonv2/ButtonLinked.js +35 -0
- package/lib/components-v1/buttonv2/ButtonOutlined.js +64 -0
- package/lib/components-v1/buttonv2/ButtonRounded.js +101 -0
- package/lib/components-v1/buttonv2/DefaultButton.js +86 -0
- package/lib/components-v1/buttonv2/index.js +37 -0
- package/lib/components-v1/buttonv2/style/style.js +53 -0
- package/lib/components-v1/buttonv2/style/theme.css +3 -0
- package/lib/components-v1/confirm/index.js +158 -0
- package/lib/index.js +49 -5
- package/lib/pages/dynamic/index.css +5 -0
- package/lib/pages/dynamic/index.js +25 -0
- package/lib/pages/home-page/components/data-list/nav-selector/index.js +18 -0
- package/lib/pages/home-page/components/data-list/table/utils-function.js +6 -3
- package/lib/pages/like-ranking/column.js +141 -0
- package/lib/pages/like-ranking/filter-buttons/department.js +44 -0
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +19 -0
- package/lib/pages/like-ranking/filter-buttons/index.js +40 -0
- package/lib/pages/like-ranking/filter-buttons/modular.js +110 -0
- package/lib/pages/like-ranking/filter-buttons/name.js +73 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +27 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +38 -0
- package/lib/pages/like-ranking/filter-buttons/timer.js +56 -0
- 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 +185 -0
- package/lib/pages/like-ranking/index.js +252 -0
- package/lib/pages/like-ranking/mock.js +366 -0
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +46 -5
- package/lib/utils/bs-global.js +26 -2
- package/lib/utils/format-time.js +161 -0
- package/lib/utils/helpers.js +41 -0
- package/lib/utils/roundWeight.js +105 -0
- package/lib/utils/tools.js +140 -20
- package/package.json +2 -2
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
.like-ranking-page {
|
|
2
|
+
height: 100%;
|
|
3
|
+
background: #f0f4fa;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
overflow: scroll;
|
|
7
|
+
margin-right: -10px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.like-ranking-page__tab-bar {
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.like-ranking-page__tab-bar-item {
|
|
15
|
+
text-align: center;
|
|
16
|
+
width: 64px;
|
|
17
|
+
height: 32px;
|
|
18
|
+
line-height: 32px;
|
|
19
|
+
background: #F7F8FA;
|
|
20
|
+
border-radius: 18px;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
color: #3F4755;
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
margin-right: 6px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.like-ranking-page__tab-bar-item--selected {
|
|
29
|
+
color: #2879ff;
|
|
30
|
+
background: rgba(40, 121, 255, 0.1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.like-ranking-page__header {
|
|
34
|
+
width: 100%;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
min-height: 68px;
|
|
37
|
+
height: 68px;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0px;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
background: #FFFFFF;
|
|
43
|
+
box-shadow: 0px 0px 8px 0px #E9ECF0;
|
|
44
|
+
padding-left: 21px;
|
|
45
|
+
z-index: 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.like-ranking-page__header-line {
|
|
49
|
+
display: inline-block;
|
|
50
|
+
width: 1px;
|
|
51
|
+
height: 22px;
|
|
52
|
+
background: linear-gradient(150deg, rgba(191, 199, 213, 0) 0%, #BFC7D5 50%, rgba(240, 242, 245, 0) 100%);
|
|
53
|
+
margin: 0 10px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.like-ranking-page__header-back {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
color: #6F7886;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.like-ranking-page__header-back-icon {
|
|
64
|
+
margin-right: 5px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.like-ranking-page__header-back:hover {
|
|
68
|
+
color: #2879ff;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.like-ranking-page__header-text {
|
|
72
|
+
font-size: 20px;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
color: #141C28;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.like-ranking-page__btns {
|
|
78
|
+
margin-top: 80px;
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
padding: 0 20px;
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.like-ranking-page__btns-right-btn {
|
|
86
|
+
width: 90px;
|
|
87
|
+
height: 32px;
|
|
88
|
+
line-height: 30px;
|
|
89
|
+
background: #FBFBFD;
|
|
90
|
+
border-radius: 3px;
|
|
91
|
+
border: 1px solid #2879FF;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
color: #2879FF;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.like-ranking-page__content {
|
|
98
|
+
flex: 1;
|
|
99
|
+
margin: 12px 8px 0 20px;
|
|
100
|
+
background: #FFFFFF;
|
|
101
|
+
box-shadow: 0px 0px 8px 0px #F7F9FB;
|
|
102
|
+
border-radius: 6px;
|
|
103
|
+
padding: 16px 20px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.like-ranking-page__loading {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex: 1;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
padding-top: 160px;
|
|
111
|
+
align-items: center;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.like-ranking-page__loading-image {
|
|
115
|
+
width: 100px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.like-ranking-page__empty {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex: 1;
|
|
121
|
+
align-items: center;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
background: #ffffff;
|
|
124
|
+
padding-top: 160px;
|
|
125
|
+
border-radius: 6px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.like-ranking-page__empty-img {
|
|
129
|
+
width: 128px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.like-ranking-page__empty-text {
|
|
133
|
+
margin-top: 16px;
|
|
134
|
+
color: #3F4755;
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
line-height: 22px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.like-ranking-table__td {
|
|
140
|
+
font-size: 14px;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
margin-right: 4px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.like-ranking-table__td-raking {
|
|
146
|
+
padding-left: 24px !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.like-ranking-table__td-name {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.like-ranking-table__td-name-avatar {
|
|
155
|
+
position: relative;
|
|
156
|
+
top: 3px;
|
|
157
|
+
margin-right: 8px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.like-ranking-table__td-num {
|
|
161
|
+
font-size: 16px;
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
color: #F05E5E;
|
|
164
|
+
line-height: 22px;
|
|
165
|
+
margin-right: 4px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.like-ranking-table__td-like {
|
|
169
|
+
font-size: 13px;
|
|
170
|
+
font-weight: 400;
|
|
171
|
+
color: #89919F;
|
|
172
|
+
line-height: 22px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.like-ranking-table-medal {
|
|
176
|
+
width: 28px;
|
|
177
|
+
height: 32px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.like-ranking-table-ranking {
|
|
181
|
+
display: inline-block;
|
|
182
|
+
font-size: 18px;
|
|
183
|
+
width: 28px;
|
|
184
|
+
text-align: center;
|
|
185
|
+
}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _filterButtons = _interopRequireDefault(require("./filter-buttons"));
|
|
15
|
+
|
|
16
|
+
var _formatTime = require("../../utils/format-time");
|
|
17
|
+
|
|
18
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
19
|
+
|
|
20
|
+
var _auth = require("../../utils/auth");
|
|
21
|
+
|
|
22
|
+
var _table = _interopRequireDefault(require("../../components/table"));
|
|
23
|
+
|
|
24
|
+
var _column = require("./column");
|
|
25
|
+
|
|
26
|
+
var _requestApi = require("./request-api");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
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; }
|
|
37
|
+
|
|
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; }
|
|
39
|
+
|
|
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; }
|
|
41
|
+
|
|
42
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
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."); }
|
|
45
|
+
|
|
46
|
+
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); }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
|
+
|
|
54
|
+
var preCls = "like-ranking-page";
|
|
55
|
+
var hasAuth = new _auth.DynamicManagerAuth();
|
|
56
|
+
|
|
57
|
+
var LikeRanking = function LikeRanking() {
|
|
58
|
+
var _useState = (0, _react.useState)(function () {
|
|
59
|
+
var depIds = "";
|
|
60
|
+
|
|
61
|
+
if (hasAuth.isOnlyLeader()) {
|
|
62
|
+
depIds = "" + (0, _bsGlobal.getUserInfo)().DepartmentId;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
date: {
|
|
67
|
+
createDate: "",
|
|
68
|
+
endDate: ""
|
|
69
|
+
},
|
|
70
|
+
depIds: depIds
|
|
71
|
+
};
|
|
72
|
+
}),
|
|
73
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
74
|
+
parmas = _useState2[0],
|
|
75
|
+
setParmas = _useState2[1];
|
|
76
|
+
|
|
77
|
+
var _useState3 = (0, _react.useState)(10),
|
|
78
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
79
|
+
pageSize = _useState4[0],
|
|
80
|
+
setPageSize = _useState4[1];
|
|
81
|
+
|
|
82
|
+
var _useState5 = (0, _react.useState)(1),
|
|
83
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
84
|
+
pageNum = _useState6[0],
|
|
85
|
+
setPageNum = _useState6[1];
|
|
86
|
+
|
|
87
|
+
var _useState7 = (0, _react.useState)(0),
|
|
88
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
89
|
+
total = _useState8[0],
|
|
90
|
+
setTotal = _useState8[1];
|
|
91
|
+
|
|
92
|
+
var _useState9 = (0, _react.useState)([]),
|
|
93
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
94
|
+
pariseInfos = _useState10[0],
|
|
95
|
+
setPariseInfos = _useState10[1];
|
|
96
|
+
|
|
97
|
+
var _useState11 = (0, _react.useState)(false),
|
|
98
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
99
|
+
isLoading = _useState12[0],
|
|
100
|
+
setIsloading = _useState12[1];
|
|
101
|
+
|
|
102
|
+
var _useState13 = (0, _react.useState)("全部"),
|
|
103
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
104
|
+
type = _useState14[0],
|
|
105
|
+
setType = _useState14[1];
|
|
106
|
+
|
|
107
|
+
var setParma = function setParma(key, value) {
|
|
108
|
+
var obj = _objectSpread({}, parmas);
|
|
109
|
+
|
|
110
|
+
obj[key] = value;
|
|
111
|
+
|
|
112
|
+
switch (key) {
|
|
113
|
+
case "depIds":
|
|
114
|
+
obj["groupIds"] = "";
|
|
115
|
+
break;
|
|
116
|
+
|
|
117
|
+
case "groupIds":
|
|
118
|
+
obj["depIds"] = "";
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
setPageNum(1);
|
|
123
|
+
setParmas(obj);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
(0, _react.useEffect)(function () {
|
|
127
|
+
setIsloading(true);
|
|
128
|
+
(0, _requestApi.getRanking)({
|
|
129
|
+
ToDepIds: parmas["depIds"] || "",
|
|
130
|
+
ToGroupIds: parmas["groupIds"] || "",
|
|
131
|
+
CreateDate: parmas["date"] ? parmas["date"]["createDate"] || "" : "",
|
|
132
|
+
EndDate: parmas["date"] ? parmas["date"]["endDate"] || "" : "",
|
|
133
|
+
ObjectType: parmas["ObjectType"] || "",
|
|
134
|
+
ObjectTypeAction: 0,
|
|
135
|
+
PageNum: pageNum,
|
|
136
|
+
PageSize: pageSize
|
|
137
|
+
}).then(function (res) {
|
|
138
|
+
if (res.Code === 1) {
|
|
139
|
+
var _res$Data = res.Data,
|
|
140
|
+
_total = _res$Data.total,
|
|
141
|
+
userPariseinfos = _res$Data.userPariseinfos;
|
|
142
|
+
setTotal(_total);
|
|
143
|
+
setPariseInfos(userPariseinfos);
|
|
144
|
+
setIsloading(false);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}, [parmas, pageNum, pageSize]);
|
|
148
|
+
|
|
149
|
+
var handlerChangeDate = function handlerChangeDate(item) {
|
|
150
|
+
setType(item);
|
|
151
|
+
var createDate = "";
|
|
152
|
+
var endDate = "";
|
|
153
|
+
|
|
154
|
+
if (item == "本月") {
|
|
155
|
+
createDate = (0, _formatTime.showMonthFirstDay)();
|
|
156
|
+
endDate = (0, _formatTime.showNextMonthFirstDay)();
|
|
157
|
+
} else if (item == "本周") {
|
|
158
|
+
createDate = (0, _formatTime.showWeekFirstDay)();
|
|
159
|
+
endDate = (0, _formatTime.showNextWeekFirstDay)();
|
|
160
|
+
} else if (item == "本年") {
|
|
161
|
+
createDate = (0, _formatTime.getFirstDayOfYear)();
|
|
162
|
+
endDate = (0, _formatTime.getNextDayOfYear)();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var date = {
|
|
166
|
+
createDate: createDate,
|
|
167
|
+
endDate: endDate
|
|
168
|
+
};
|
|
169
|
+
setParma("date", date);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
var TabBar = function TabBar() {
|
|
173
|
+
var typeData = ["全部", "本周", "本月", "本年"];
|
|
174
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
+
className: "".concat(preCls, "__tab-bar")
|
|
176
|
+
}, typeData.map(function (item, key) {
|
|
177
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
|
+
key: key,
|
|
179
|
+
className: (0, _classnames["default"])("".concat(preCls, "__tab-bar-item"), _defineProperty({}, "".concat(preCls, "__tab-bar-item--selected"), type === item)),
|
|
180
|
+
onClick: function onClick() {
|
|
181
|
+
return handlerChangeDate(item);
|
|
182
|
+
}
|
|
183
|
+
}, item);
|
|
184
|
+
}));
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
var renderEmpty = function renderEmpty() {
|
|
188
|
+
if (isLoading || pariseInfos && pariseInfos.length > 0) return;
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: preCls + "__empty"
|
|
191
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
192
|
+
className: preCls + "__empty-img",
|
|
193
|
+
src: require("./image/dynamic-empty.png")
|
|
194
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
|
+
className: preCls + "__empty-text"
|
|
196
|
+
}, "\u6682\u65E0\u6570\u636E"));
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
var isLoadingPage = function isLoadingPage() {
|
|
200
|
+
if (!isLoading) return;
|
|
201
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
202
|
+
className: "".concat(preCls, "__loading")
|
|
203
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
204
|
+
className: "".concat(preCls, "__loading-image"),
|
|
205
|
+
src: require("./image/loading.gif"),
|
|
206
|
+
alt: ""
|
|
207
|
+
}));
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
var handleLinkToPraiseRaking = function handleLinkToPraiseRaking() {
|
|
211
|
+
var href = window.location.href;
|
|
212
|
+
var url = "".concat(href.split("#")[0], "#dev");
|
|
213
|
+
window.open(url, "self");
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
217
|
+
className: "".concat(preCls)
|
|
218
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
219
|
+
className: "".concat(preCls, "__header")
|
|
220
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
221
|
+
className: "".concat(preCls, "__header-back"),
|
|
222
|
+
onClick: handleLinkToPraiseRaking
|
|
223
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
224
|
+
className: "tu-icon-fanhui ".concat(preCls, "__header-back-icon")
|
|
225
|
+
}), "\u8FD4\u56DE"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
226
|
+
className: "".concat(preCls, "__header-line")
|
|
227
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
228
|
+
className: "".concat(preCls, "__header-text")
|
|
229
|
+
}, "\u70B9\u8D5E\u6392\u884C\u699C")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
230
|
+
className: "".concat(preCls, "__btns")
|
|
231
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
232
|
+
className: "".concat(preCls, "__btns-left")
|
|
233
|
+
}, /*#__PURE__*/_react["default"].createElement(_filterButtons["default"], {
|
|
234
|
+
setParma: setParma,
|
|
235
|
+
parmas: parmas,
|
|
236
|
+
setType: setType
|
|
237
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
238
|
+
className: "".concat(preCls, "__content")
|
|
239
|
+
}, TabBar(), renderEmpty(), isLoadingPage(), !isLoading && /*#__PURE__*/_react["default"].createElement(_table["default"], {
|
|
240
|
+
tableLayout: "fixed",
|
|
241
|
+
columns: (0, _column.columns)(),
|
|
242
|
+
tableData: pariseInfos,
|
|
243
|
+
total: total,
|
|
244
|
+
pageSize: pageSize,
|
|
245
|
+
setPageSize: setPageSize,
|
|
246
|
+
pageNum: pageNum,
|
|
247
|
+
setPageNum: setPageNum
|
|
248
|
+
})));
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
var _default = LikeRanking;
|
|
252
|
+
exports["default"] = _default;
|