@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,59 @@
|
|
|
1
|
+
.titaui-dynamic-announcement-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-announcement-item__content {
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
color: #3F4755;
|
|
8
|
+
line-height: 22px;
|
|
9
|
+
display: flex;
|
|
10
|
+
margin-left: 69px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-announcement-item__content-quoto {
|
|
14
|
+
width: 12px;
|
|
15
|
+
height: 12px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-dynamic-announcement-item__content-quoto--left {
|
|
19
|
+
margin-right: 8px;
|
|
20
|
+
margin-top: -6px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-announcement-item__content-quoto--right {
|
|
24
|
+
margin-left: 8px;
|
|
25
|
+
margin-top: 4px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-dynamic-announcement-item__operate-desc {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
color: #89919f;
|
|
32
|
+
line-height: 22px;
|
|
33
|
+
margin: 0 8px 0 4px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-announcement-item-desc-operate-type {
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
padding: 0 2px;
|
|
42
|
+
height: 18px;
|
|
43
|
+
min-width: 40px;
|
|
44
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
45
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
46
|
+
border-radius: 14px 10px 10px 4px;
|
|
47
|
+
font-size: 12px;
|
|
48
|
+
color: #ffffff;
|
|
49
|
+
line-height: 18px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.titaui-dynamic-announcement-item__files {
|
|
53
|
+
margin-left: 69px;
|
|
54
|
+
margin-top: 12px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.titaui-dynamic-announcement-item .highlight {
|
|
58
|
+
color: #f05e5e;
|
|
59
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
+
|
|
16
|
+
var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
|
|
17
|
+
|
|
18
|
+
var _fileList = _interopRequireDefault(require("../../../file-list"));
|
|
19
|
+
|
|
20
|
+
var _context = require("../../context");
|
|
21
|
+
|
|
22
|
+
var _tools = require("../../../../utils/tools");
|
|
23
|
+
|
|
24
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
25
|
+
|
|
26
|
+
var _util = require("../../util");
|
|
27
|
+
|
|
28
|
+
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
29
|
+
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
32
|
+
var _excluded = ["data", "hasDynamicOpereateAuth"];
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
|
+
|
|
38
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
39
|
+
|
|
40
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
|
+
|
|
42
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
+
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
+
|
|
46
|
+
var prefix = "titaui-dynamic-announcement-item";
|
|
47
|
+
|
|
48
|
+
var DynamicAnnouncement = function DynamicAnnouncement(_ref) {
|
|
49
|
+
var data = _ref.data,
|
|
50
|
+
_ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
|
|
51
|
+
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
52
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
+
|
|
54
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
55
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
56
|
+
|
|
57
|
+
var contentRef = (0, _react.useRef)();
|
|
58
|
+
|
|
59
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
60
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
61
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
62
|
+
|
|
63
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
64
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
|
+
className: prefix + "__operate-desc"
|
|
66
|
+
}, "\u53D1\u5E03\u7684\u516C\u544A"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
|
+
className: prefix + "-desc-operate-type",
|
|
68
|
+
style: {
|
|
69
|
+
background: feedTypeColor
|
|
70
|
+
}
|
|
71
|
+
}, feedTypeText));
|
|
72
|
+
}, []);
|
|
73
|
+
(0, _react.useEffect)(function () {
|
|
74
|
+
(0, _tools.highLightWord)({
|
|
75
|
+
parentDom: contentRef.current,
|
|
76
|
+
keyWord: searchKeyWord
|
|
77
|
+
});
|
|
78
|
+
}, [data, searchKeyWord]);
|
|
79
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
+
className: prefix
|
|
81
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
82
|
+
data: data,
|
|
83
|
+
desc: renderDesc,
|
|
84
|
+
showDelete: hasDynamicOpereateAuth,
|
|
85
|
+
showTopping: hasDynamicOpereateAuth,
|
|
86
|
+
user: data.publishUser
|
|
87
|
+
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
+
className: prefix + "__content"
|
|
89
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
90
|
+
className: (0, _classnames["default"])(prefix + "__content-quoto", prefix + "__content-quoto--left"),
|
|
91
|
+
src: _dynamicLeftQuoto["default"]
|
|
92
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
ref: contentRef
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
95
|
+
htmlText: data.content
|
|
96
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
97
|
+
className: (0, _classnames["default"])(prefix + "__content-quoto", prefix + "__content-quoto--right"),
|
|
98
|
+
src: _dynamicRightQuoto["default"]
|
|
99
|
+
}))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: prefix + "__files"
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
102
|
+
data: data.attachments
|
|
103
|
+
})));
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var _default = DynamicAnnouncement;
|
|
107
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.titaui-dynamic-assessment-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-assessment-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-assessment-item__infos {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
color: #89919f;
|
|
14
|
+
line-height: 18px;
|
|
15
|
+
margin-top: 8px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-dynamic-assessment-item__infos-icon {
|
|
19
|
+
margin-right: 4px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-dynamic-assessment-item__infos-step-name {
|
|
23
|
+
margin-right: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.titaui-dynamic-assessment-item__operate-desc {
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
color: #89919f;
|
|
30
|
+
line-height: 22px;
|
|
31
|
+
margin: 0 8px 0 4px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-assessment-item-desc-operate-type {
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
padding: 0 2px;
|
|
40
|
+
height: 18px;
|
|
41
|
+
min-width: 40px;
|
|
42
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
43
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
44
|
+
border-radius: 14px 10px 10px 4px;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: #ffffff;
|
|
47
|
+
line-height: 18px;
|
|
48
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 _title = _interopRequireDefault(require("../../components/title"));
|
|
15
|
+
|
|
16
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
|
+
|
|
18
|
+
var _util = require("../../util");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
var _excluded = ["data"];
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
+
|
|
28
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
+
|
|
30
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
32
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
33
|
+
|
|
34
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
35
|
+
|
|
36
|
+
var prefix = "titaui-dynamic-assessment-item";
|
|
37
|
+
|
|
38
|
+
var DynamicShare = function DynamicShare(_ref) {
|
|
39
|
+
var data = _ref.data,
|
|
40
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
+
|
|
42
|
+
var currentStep = JSON.parse(data.step).find(function (item) {
|
|
43
|
+
return item.status === 2;
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
47
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
48
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
49
|
+
|
|
50
|
+
var handleClickTitle = function handleClickTitle() {
|
|
51
|
+
var assessId = data.url.split("assessId=")[1];
|
|
52
|
+
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=" + assessId));
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
56
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
|
+
className: prefix + "__operate-desc"
|
|
58
|
+
}, "\u7684\u8003\u6838"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
|
+
className: prefix + "-desc-operate-type",
|
|
60
|
+
style: {
|
|
61
|
+
background: feedTypeColor
|
|
62
|
+
}
|
|
63
|
+
}, feedTypeText));
|
|
64
|
+
}, []);
|
|
65
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
66
|
+
className: prefix
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
68
|
+
data: data
|
|
69
|
+
}, restProps, {
|
|
70
|
+
desc: renderDesc,
|
|
71
|
+
user: data.principalUser
|
|
72
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: "".concat(prefix, "__content")
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
75
|
+
content: "考核:" + data.assessName,
|
|
76
|
+
onClickTitle: handleClickTitle
|
|
77
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
|
+
className: prefix + "__infos"
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
80
|
+
className: (0, _classnames["default"])("tu-icon-jixiaojieduan", prefix + "__infos-icon")
|
|
81
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
|
+
className: prefix + "__infos-step-name"
|
|
83
|
+
}, currentStep.stepName), /*#__PURE__*/_react["default"].createElement("i", {
|
|
84
|
+
className: (0, _classnames["default"])("tu-icon-deferred", prefix + "__infos-icon")
|
|
85
|
+
}), /*#__PURE__*/_react["default"].createElement("span", null, data.startDate + "-" + data.deadline))));
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
var _default = DynamicShare;
|
|
89
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
.titaui-dynamic-create-o-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-create-o-item__content {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
margin-left: 69px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-dynamic-create-o-item__infos-wrapper {
|
|
12
|
+
margin-top: 12px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-dynamic-create-o-item__okr {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
color: #89919f;
|
|
20
|
+
line-height: 18px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-create-o-item__okr-type-icon, .titaui-dynamic-create-o-item__okr-cycle-icon {
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-create-o-item__okr-cycle-icon {
|
|
28
|
+
margin-left: 20px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.titaui-dynamic-create-o-item__okr-krs {
|
|
32
|
+
margin-top: 4px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-create-o-item__kr {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
margin-top: 8px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-create-o-item__kr-order {
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
color: #2879ff;
|
|
44
|
+
line-height: 18px;
|
|
45
|
+
margin-right: 4px;
|
|
46
|
+
margin-top: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.titaui-dynamic-create-o-item__kr-name {
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
color: #3f4755;
|
|
52
|
+
line-height: 22px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.titaui-dynamic-create-o-item__kr-name:hover {
|
|
56
|
+
color: #2879ff;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-dynamic-create-o-item__classify {
|
|
61
|
+
display: flex;
|
|
62
|
+
width: 18px;
|
|
63
|
+
margin-left: 8px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.titaui-dynamic-create-o-item__classify--desire {
|
|
67
|
+
background: url("../../img/dynamic-desire.svg") no-repeat;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.titaui-dynamic-create-o-item__classify--promise {
|
|
71
|
+
background: url("../../img/dynamic-promise.svg") no-repeat;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.titaui-dynamic-create-o-item__operate-desc {
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
font-weight: 400;
|
|
77
|
+
color: #89919f;
|
|
78
|
+
line-height: 22px;
|
|
79
|
+
margin: 0 8px 0 4px;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.titaui-dynamic-create-o-item-desc-operate-type {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
padding: 0 2px;
|
|
88
|
+
height: 18px;
|
|
89
|
+
min-width: 40px;
|
|
90
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
92
|
+
border-radius: 14px 10px 10px 4px;
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
color: #ffffff;
|
|
95
|
+
line-height: 18px;
|
|
96
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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 _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
15
|
+
|
|
16
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
17
|
+
|
|
18
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
19
|
+
|
|
20
|
+
var _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
21
|
+
|
|
22
|
+
var _openData = require("../../../../utils/open-data");
|
|
23
|
+
|
|
24
|
+
var _context = require("../../context");
|
|
25
|
+
|
|
26
|
+
var _util = require("../../util");
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["data"];
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
+
|
|
38
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
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 _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
43
|
+
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
45
|
+
|
|
46
|
+
var prefix = "titaui-dynamic-create-o-item";
|
|
47
|
+
|
|
48
|
+
var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
49
|
+
var data = _ref.data,
|
|
50
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
+
|
|
52
|
+
var okrId = data.okrId,
|
|
53
|
+
okrName = data.okrName,
|
|
54
|
+
krs = data.krs,
|
|
55
|
+
okrType = data.okrType,
|
|
56
|
+
cycleName = data.cycleName,
|
|
57
|
+
okrTypeName = data.okrTypeName,
|
|
58
|
+
okrTypeId = data.okrTypeId,
|
|
59
|
+
classify = data.classify,
|
|
60
|
+
principalUser = data.principalUser;
|
|
61
|
+
|
|
62
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
63
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
64
|
+
|
|
65
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
66
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
+
|
|
69
|
+
var handleClickOTitle = function handleClickOTitle() {
|
|
70
|
+
_manager["default"].open("okrDetail", {
|
|
71
|
+
okrId: okrId
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
var handleClickKrTitle = function handleClickKrTitle(id) {
|
|
76
|
+
_manager["default"].open("krDetail", {
|
|
77
|
+
krId: id
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var okrTypeMap = {
|
|
82
|
+
1: {
|
|
83
|
+
icon: "tu-icon-liebiao-geren",
|
|
84
|
+
text: "个人"
|
|
85
|
+
},
|
|
86
|
+
// 个人
|
|
87
|
+
2: {
|
|
88
|
+
icon: "tu-icon-liebiao-xiashu",
|
|
89
|
+
text: // @ts-ignore
|
|
90
|
+
"departmentId" == -1 ? "默认部门" : /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
91
|
+
id: okrTypeId,
|
|
92
|
+
name: okrTypeName
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
// 部门
|
|
96
|
+
3: {
|
|
97
|
+
icon: "tu-icon-gong_si",
|
|
98
|
+
text: "公司"
|
|
99
|
+
},
|
|
100
|
+
// 公司
|
|
101
|
+
4: {
|
|
102
|
+
icon: "tu-icon-liebiao-tuandui",
|
|
103
|
+
text: okrTypeName || "团队"
|
|
104
|
+
} // 团队
|
|
105
|
+
|
|
106
|
+
};
|
|
107
|
+
var okrTypeInfo = okrTypeMap[okrType];
|
|
108
|
+
var Classify = (0, _react.useMemo)(function () {
|
|
109
|
+
var _classNames;
|
|
110
|
+
|
|
111
|
+
if (+classify == 0) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
+
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify == 2), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify == 1), _classNames))
|
|
117
|
+
});
|
|
118
|
+
}, [classify]);
|
|
119
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
120
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
121
|
+
className: prefix + "__operate-desc"
|
|
122
|
+
}, "\u8D1F\u8D23\u4E86\u76EE\u6807"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
|
+
className: prefix + "-desc-operate-type",
|
|
124
|
+
style: {
|
|
125
|
+
background: feedTypeColor
|
|
126
|
+
}
|
|
127
|
+
}, feedTypeText));
|
|
128
|
+
}, []);
|
|
129
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
|
+
className: prefix
|
|
131
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
132
|
+
data: data
|
|
133
|
+
}, restProps, {
|
|
134
|
+
desc: renderDesc,
|
|
135
|
+
user: principalUser
|
|
136
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
|
+
className: prefix + "__content"
|
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
139
|
+
content: "O:" + okrName,
|
|
140
|
+
onClickTitle: handleClickOTitle,
|
|
141
|
+
suffixContent: Classify
|
|
142
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
|
+
className: "".concat(prefix, "__infos-wrapper")
|
|
144
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
|
+
className: "".concat(prefix, "__okr")
|
|
146
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
147
|
+
className: (0, _classnames["default"])(okrTypeInfo.icon, "".concat(prefix, "__okr-type-icon"))
|
|
148
|
+
}), okrTypeInfo.text, /*#__PURE__*/_react["default"].createElement("i", {
|
|
149
|
+
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__okr-cycle-icon"))
|
|
150
|
+
}), cycleName), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
151
|
+
className: "".concat(prefix, "__okr-krs")
|
|
152
|
+
}, krs.map(function (kr, index) {
|
|
153
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
+
className: "".concat(prefix, "__kr"),
|
|
155
|
+
key: kr.krId
|
|
156
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
157
|
+
className: "".concat(prefix, "__kr-order")
|
|
158
|
+
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
159
|
+
className: "".concat(prefix, "__kr-name"),
|
|
160
|
+
onClick: function onClick() {
|
|
161
|
+
handleClickKrTitle(kr.krId);
|
|
162
|
+
}
|
|
163
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
164
|
+
str: kr.krName,
|
|
165
|
+
keyWord: searchKeyWord
|
|
166
|
+
})));
|
|
167
|
+
})))));
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
var _default = DynamicCreateO;
|
|
171
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.titaui-dynamic-kr-item {
|
|
2
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.titaui-dynamic-kr-item__content {
|
|
6
|
+
margin-left: 69px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.titaui-dynamic-kr-item__content-time-range {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
color: #89919f;
|
|
14
|
+
line-height: 18px;
|
|
15
|
+
margin-top: 8px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-dynamic-kr-item__content-time-range-icon {
|
|
19
|
+
margin-right: 4px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.titaui-dynamic-kr-item__title {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-dynamic-kr-item__object-name {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
color: #2879ff;
|
|
31
|
+
line-height: 22px;
|
|
32
|
+
margin: 0 4px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.titaui-dynamic-kr-item__object-name:hover {
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
color: #5c8eff;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-kr-item__operate-desc {
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
color: #89919f;
|
|
45
|
+
line-height: 22px;
|
|
46
|
+
margin: 0 8px 0 4px;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.titaui-dynamic-kr-item__operate-desc-wrapper {
|
|
51
|
+
display: flex;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.titaui-dynamic-kr-item-desc-operate-type {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
padding: 0 2px;
|
|
59
|
+
height: 18px;
|
|
60
|
+
min-width: 40px;
|
|
61
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
62
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
63
|
+
border-radius: 14px 10px 10px 4px;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
color: #ffffff;
|
|
66
|
+
line-height: 18px;
|
|
67
|
+
}
|