@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,215 @@
|
|
|
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 _manager = _interopRequireDefault(require("../../../drawer/manager"));
|
|
19
|
+
|
|
20
|
+
var _context = require("../../context");
|
|
21
|
+
|
|
22
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
23
|
+
|
|
24
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
25
|
+
|
|
26
|
+
var _title = _interopRequireDefault(require("../../components/title"));
|
|
27
|
+
|
|
28
|
+
var _percent = _interopRequireDefault(require("../../components/percent"));
|
|
29
|
+
|
|
30
|
+
var _objStatus = _interopRequireDefault(require("../../components/obj-status"));
|
|
31
|
+
|
|
32
|
+
var _constant = require("../../constant");
|
|
33
|
+
|
|
34
|
+
var _util = require("../../util");
|
|
35
|
+
|
|
36
|
+
require("./index.css");
|
|
37
|
+
|
|
38
|
+
var _excluded = ["data"];
|
|
39
|
+
|
|
40
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
|
+
|
|
42
|
+
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); }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
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); }
|
|
47
|
+
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
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; }
|
|
53
|
+
|
|
54
|
+
var prefix = "titaui-dynamic-progress-item";
|
|
55
|
+
|
|
56
|
+
var DynamicProgress = function DynamicProgress(_ref) {
|
|
57
|
+
var data = _ref.data,
|
|
58
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
|
+
|
|
60
|
+
var progress = data.progress,
|
|
61
|
+
progressDescription = data.progressDescription,
|
|
62
|
+
progressGrow = data.progressGrow,
|
|
63
|
+
riskLevel = data.riskLevel,
|
|
64
|
+
obj = data.obj,
|
|
65
|
+
classify = data.classify,
|
|
66
|
+
relationParentName = data.relationParentName,
|
|
67
|
+
relationParentId = data.relationParentId,
|
|
68
|
+
publishUser = data.publishUser;
|
|
69
|
+
|
|
70
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
71
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
72
|
+
|
|
73
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
74
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
75
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
76
|
+
|
|
77
|
+
var handleClickTitle = function handleClickTitle() {
|
|
78
|
+
if (!obj) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var objType = obj.objType,
|
|
83
|
+
objId = obj.objId;
|
|
84
|
+
|
|
85
|
+
if (objType === _constant.EObjType.Kr) {
|
|
86
|
+
_manager["default"].open("krDetail", {
|
|
87
|
+
krId: objId
|
|
88
|
+
});
|
|
89
|
+
} else if (objType === _constant.EObjType.O) {
|
|
90
|
+
_manager["default"].open("okrDetail", {
|
|
91
|
+
okrId: objId
|
|
92
|
+
});
|
|
93
|
+
} else if (objType === _constant.EObjType.Task) {
|
|
94
|
+
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
95
|
+
} else if (objType === _constant.EObjType.Project) {
|
|
96
|
+
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + objId));
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
var handleClickOTitle = function handleClickOTitle() {
|
|
101
|
+
_manager["default"].open("okrDetail", {
|
|
102
|
+
okrId: relationParentId
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var renderTitle = (0, _react.useMemo)(function () {
|
|
107
|
+
if (!obj) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
var objType = obj.objType,
|
|
112
|
+
objName = obj.objName;
|
|
113
|
+
|
|
114
|
+
if (objType === _constant.EObjType.Kr) {
|
|
115
|
+
return "KR:" + objName;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (objType === _constant.EObjType.O) {
|
|
119
|
+
return "O:" + objName;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (objType === _constant.EObjType.Task) {
|
|
123
|
+
return "任务:" + objName;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (objType === _constant.EObjType.Project) {
|
|
127
|
+
return "项目:" + objName;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return "";
|
|
131
|
+
}, []);
|
|
132
|
+
var Classify = (0, _react.useMemo)(function () {
|
|
133
|
+
var _classNames;
|
|
134
|
+
|
|
135
|
+
if (!classify || Number(classify) == 0) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
140
|
+
className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify === 1), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify === 2), _classNames))
|
|
141
|
+
});
|
|
142
|
+
}, [classify]);
|
|
143
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
144
|
+
var dom;
|
|
145
|
+
|
|
146
|
+
if (obj && obj.objType === _constant.EObjType.Kr) {
|
|
147
|
+
dom = /*#__PURE__*/_react["default"].createElement("span", null, "\u66F4\u65B0\u4E86\u76EE\u6807", /*#__PURE__*/_react["default"].createElement("span", {
|
|
148
|
+
className: prefix + "__object-name",
|
|
149
|
+
onClick: handleClickOTitle
|
|
150
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
151
|
+
str: relationParentName,
|
|
152
|
+
keyWord: searchKeyWord
|
|
153
|
+
})), "\u4E0B\u5173\u952E\u6210\u679C\u8FDB\u5C55");
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (obj && obj.objType === _constant.EObjType.O) {
|
|
157
|
+
dom = "更新了目标进展";
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (obj && obj.objType === _constant.EObjType.Task) {
|
|
161
|
+
dom = "更新了任务进展";
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (obj && obj.objType === _constant.EObjType.Project) {
|
|
165
|
+
dom = "更新了项目进展";
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
169
|
+
className: prefix + "__operate-desc"
|
|
170
|
+
}, dom), /*#__PURE__*/_react["default"].createElement("span", {
|
|
171
|
+
className: prefix + "-desc-operate-type",
|
|
172
|
+
style: {
|
|
173
|
+
background: feedTypeColor
|
|
174
|
+
}
|
|
175
|
+
}, feedTypeText));
|
|
176
|
+
}, [searchKeyWord]);
|
|
177
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
|
+
className: prefix
|
|
179
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
180
|
+
data: data
|
|
181
|
+
}, restProps, {
|
|
182
|
+
desc: renderDesc,
|
|
183
|
+
user: publishUser
|
|
184
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
185
|
+
className: prefix + "__content"
|
|
186
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
|
+
className: prefix + "__title"
|
|
188
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
189
|
+
content: renderTitle,
|
|
190
|
+
onClickTitle: handleClickTitle,
|
|
191
|
+
suffixContent: Classify
|
|
192
|
+
}), /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
|
|
193
|
+
oStatus: 1,
|
|
194
|
+
riskLevel: riskLevel,
|
|
195
|
+
extraClass: "".concat(prefix, "__status-left")
|
|
196
|
+
}), /*#__PURE__*/_react["default"].createElement(_percent["default"], {
|
|
197
|
+
percent: progress,
|
|
198
|
+
growPercent: progressGrow,
|
|
199
|
+
extraClass: "".concat(prefix, "__percent-left")
|
|
200
|
+
})), progressDescription && /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
|
+
className: prefix + "__description"
|
|
202
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
203
|
+
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--left"),
|
|
204
|
+
src: _dynamicLeftQuoto["default"]
|
|
205
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
206
|
+
str: progressDescription,
|
|
207
|
+
keyWord: searchKeyWord
|
|
208
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
209
|
+
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--right"),
|
|
210
|
+
src: _dynamicRightQuoto["default"]
|
|
211
|
+
})))));
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
var _default = DynamicProgress;
|
|
215
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EStatusClass2StatusTypeText = void 0;
|
|
7
|
+
var EStatusClass2StatusTypeText = {
|
|
8
|
+
2: '已完成',
|
|
9
|
+
1: '进行中',
|
|
10
|
+
4: '已取消',
|
|
11
|
+
3: '已延迟',
|
|
12
|
+
6: '暂停中',
|
|
13
|
+
0: '未开始',
|
|
14
|
+
5: '未接受'
|
|
15
|
+
};
|
|
16
|
+
exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
.titaui-dynamic-project-item {
|
|
2
|
+
border-radius: 12px;
|
|
3
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
4
|
+
background: #ffffff;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-dynamic-project-item__content {
|
|
11
|
+
height: 78px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: #f6f7f9;
|
|
16
|
+
padding: 16px 12px 16px 16px;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
margin-left: 69px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-project-item__content-info {
|
|
22
|
+
flex: 1;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
margin-left: 16px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.titaui-dynamic-project-item__content-status-and-time-range {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
color: #89919f;
|
|
35
|
+
line-height: 18px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-dynamic-project-item__content-status-text {
|
|
39
|
+
margin-left: 4px;
|
|
40
|
+
margin-right: 20px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.titaui-dynamic-project-item__content-time-range {
|
|
44
|
+
margin-left: 4px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.titaui-dynamic-project-item__content-title {
|
|
48
|
+
flex: 1;
|
|
49
|
+
word-break: keep-all;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
color: #3f4755;
|
|
55
|
+
line-height: 24px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-dynamic-project-item__content-title-text:hover {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
color: #2879ff;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.titaui-dynamic-project-item__content-title-priority {
|
|
64
|
+
width: 18px;
|
|
65
|
+
height: 26px;
|
|
66
|
+
margin-right: 4px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.titaui-dynamic-project-item__operate-desc {
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
color: #89919f;
|
|
73
|
+
line-height: 22px;
|
|
74
|
+
margin: 0 8px 0 4px;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.titaui-dynamic-project-item-desc-operate-type {
|
|
79
|
+
display: inline-flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
padding: 0 2px;
|
|
83
|
+
height: 18px;
|
|
84
|
+
min-width: 40px;
|
|
85
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
86
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
87
|
+
border-radius: 14px 10px 10px 4px;
|
|
88
|
+
font-size: 12px;
|
|
89
|
+
color: #ffffff;
|
|
90
|
+
line-height: 18px;
|
|
91
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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 _header = _interopRequireDefault(require("../components/header"));
|
|
15
|
+
|
|
16
|
+
var _icon = _interopRequireDefault(require("../components/icon"));
|
|
17
|
+
|
|
18
|
+
var _constant = require("./constant");
|
|
19
|
+
|
|
20
|
+
var _constant2 = require("../../constant");
|
|
21
|
+
|
|
22
|
+
var _context = require("../../context");
|
|
23
|
+
|
|
24
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
25
|
+
|
|
26
|
+
var _tooltip = require("../../../tooltip");
|
|
27
|
+
|
|
28
|
+
var _project = _interopRequireDefault(require("./img/project.png"));
|
|
29
|
+
|
|
30
|
+
var _util = require("../../util");
|
|
31
|
+
|
|
32
|
+
require("./index.css");
|
|
33
|
+
|
|
34
|
+
var _excluded = ["data"];
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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); }
|
|
43
|
+
|
|
44
|
+
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; }
|
|
45
|
+
|
|
46
|
+
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; }
|
|
47
|
+
|
|
48
|
+
var prefix = "titaui-dynamic-project-item";
|
|
49
|
+
|
|
50
|
+
var DynamicProject = function DynamicProject(_ref) {
|
|
51
|
+
var data = _ref.data,
|
|
52
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
+
|
|
54
|
+
var status = data.status,
|
|
55
|
+
workName = data.workName,
|
|
56
|
+
startDate = data.startDate,
|
|
57
|
+
deadline = data.deadline,
|
|
58
|
+
principalUser = data.principalUser;
|
|
59
|
+
|
|
60
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
61
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
62
|
+
|
|
63
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
64
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
65
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
66
|
+
|
|
67
|
+
var handleClickTitle = function handleClickTitle() {
|
|
68
|
+
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + data.obj.objId));
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
var renderName = (0, _react.useMemo)(function () {
|
|
72
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
73
|
+
className: prefix + "__content-title-text",
|
|
74
|
+
onClick: handleClickTitle
|
|
75
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
76
|
+
str: workName,
|
|
77
|
+
keyWord: searchKeyWord
|
|
78
|
+
}));
|
|
79
|
+
}, [workName, searchKeyWord]);
|
|
80
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
81
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
|
+
className: prefix + "__operate-desc"
|
|
83
|
+
}, "\u8D1F\u8D23\u4E86\u9879\u76EE"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
84
|
+
className: prefix + "-desc-operate-type",
|
|
85
|
+
style: {
|
|
86
|
+
background: feedTypeColor
|
|
87
|
+
}
|
|
88
|
+
}, feedTypeText));
|
|
89
|
+
}, []);
|
|
90
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
+
className: prefix
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
93
|
+
data: data
|
|
94
|
+
}, restProps, {
|
|
95
|
+
desc: renderDesc,
|
|
96
|
+
user: principalUser
|
|
97
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: "".concat(prefix, "__content")
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
|
100
|
+
background: "#5C8EFF",
|
|
101
|
+
boxShadow: "0px 2px 6px 0px rgba(92, 142, 255, 0.4)",
|
|
102
|
+
imgUrl: _project["default"]
|
|
103
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: prefix + "__content-info"
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
className: prefix + "__content-title"
|
|
107
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
108
|
+
isPercent: true,
|
|
109
|
+
text: renderName,
|
|
110
|
+
minusWidth: 30
|
|
111
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
|
+
className: prefix + "__content-status-and-time-range"
|
|
113
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
114
|
+
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
|
|
115
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
116
|
+
className: prefix + "__content-status-text"
|
|
117
|
+
}, _constant.EStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
118
|
+
className: (0, _classnames["default"])("tu-icon-deferred")
|
|
119
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
120
|
+
className: prefix + "__content-time-range"
|
|
121
|
+
}, startDate, "-", deadline)))));
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var _default = DynamicProject;
|
|
125
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>关联-icon</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="50%" y1="50%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#2879FF" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#FFFFFF" offset="100%"></stop>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
</defs>
|
|
10
|
+
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
+
<g id="目标" transform="translate(-270.000000, -2013.000000)">
|
|
12
|
+
<g id="新建目标-负责目标" transform="translate(202.000000, 1901.000000)">
|
|
13
|
+
<g id="编组-19" transform="translate(68.000000, 78.000000)">
|
|
14
|
+
<g id="pull-up" transform="translate(0.000000, 34.000000)">
|
|
15
|
+
<rect id="Rectangle-5" x="0" y="0" width="18" height="18"></rect>
|
|
16
|
+
<path d="M6.05737522,9.80294126 C6.34805303,9.80193178 6.58393921,10.0378179 6.58397526,10.3295413 L6.58397526,10.3295413 L6.58430875,14.0309019 C6.58333532,14.5429815 6.78303323,15.0240195 7.14513215,15.3861184 C7.50723108,15.7482174 7.98932361,15.9448057 8.50139427,15.9458963 C9.01344689,15.9469869 9.49446685,15.7473611 9.85649367,15.3853343 C10.2185205,15.0233075 10.4171098,14.541251 10.4170557,14.0302169 L10.4170557,14.0302169 L10.4156676,10.3298748 C10.4166591,10.039197 10.6514727,9.80438339 10.9421685,9.8033739 C11.2328464,9.80238244 11.4687235,10.0382596 11.4687686,10.3299739 L11.4687686,10.3299739 L11.4691021,14.0313345 C11.4702197,14.8496128 11.1371886,15.5923329 10.5993129,16.1302086 C10.0624738,16.6670477 9.31973568,17.0000788 8.50043886,16.9999977 C7.7070011,17.0009711 6.96111733,16.6915998 6.40037504,16.1308575 C5.83965078,15.5701333 5.53025242,14.8242225 5.5301713,14.0297662 L5.5301713,14.0297662 L5.53087433,10.3294422 C5.52980175,10.0387553 5.76564286,9.80291422 6.05737522,9.80294126 Z M8.52047535,7.44504397 C8.81215364,7.44406152 9.04887804,7.68078593 9.04892311,7.97349172 L9.04892311,7.97349172 L9.04935574,10.0910323 C9.04836428,10.2373897 8.99129229,10.3671266 8.89477824,10.4636407 C8.79826419,10.5601547 8.66644519,10.6192727 8.52113332,10.6192547 C8.22944602,10.6202281 7.99273964,10.3835217 7.99267655,10.0907979 L7.99267655,10.0907979 L7.99225293,7.97326639 C7.99113528,7.68159712 8.22775153,7.44498088 8.52047535,7.44504397 Z M8.49961865,1.00000031 C10.137302,0.999252214 11.4700124,2.33196266 11.4703008,3.96860944 L11.4703008,3.96860944 L11.4709318,7.67019534 C11.4699313,7.81605702 11.412012,7.94640686 11.3158135,8.04260544 C11.2196329,8.138786 11.0882555,8.19773276 10.9434214,8.19770572 C10.6527165,8.19870619 10.4167943,7.96278397 10.4167492,7.67103357 L10.4167492,7.67103357 L10.4160913,3.96945669 C10.4170377,3.45736801 10.2172947,2.97626693 9.85514168,2.61411393 C9.49298867,2.25196092 9.01086009,2.05326348 8.49979892,2.05316434 C7.44249781,2.05299308 6.58295676,2.91253413 6.58313702,3.96982623 L6.58313702,3.96982623 L6.58378598,7.6713941 C6.58486757,7.96210797 6.34903548,8.19794006 6.05730312,8.19787697 C5.76659826,8.19887744 5.53067604,7.96295522 5.53063097,7.67120483 L5.53063097,7.67120483 L5.53000004,3.96965498 C5.52972063,2.33096219 6.86093488,0.999747943 8.49962767,1.00002735 Z" id="形状结合" fill="url(#linearGradient-1)" fill-rule="nonzero"></path>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
.titaui-dynamic-relative-item {
|
|
4
|
+
position: relative;
|
|
5
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.titaui-dynamic-relative-item__content {
|
|
9
|
+
margin-left: 69px;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.titaui-dynamic-relative-item__obj {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.titaui-dynamic-relative-item__obj-base-info {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titaui-dynamic-relative-item__obj-base-info-icon {
|
|
25
|
+
color: #89919F;
|
|
26
|
+
font-size: 18px;
|
|
27
|
+
margin-right: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.titaui-dynamic-relative-item__obj-title {
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
word-break: keep-all;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
color: #3F4755;
|
|
37
|
+
line-height: 22px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.titaui-dynamic-relative-item__obj-title:hover {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
color: #2879ff;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-relative-item__obj-principal-user {
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
color: #89919F;
|
|
48
|
+
line-height: 18px;
|
|
49
|
+
margin-left: 26px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.titaui-dynamic-relative-item__obj-principal-user::after {
|
|
53
|
+
content: '·';
|
|
54
|
+
display: inline-block;
|
|
55
|
+
margin: 0 4px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.titaui-dynamic-relative-item__obj-cycle {
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
color: #89919F;
|
|
61
|
+
line-height: 18px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.titaui-dynamic-relative-item__align-img {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 38px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.titaui-dynamic-relative-item__space {
|
|
70
|
+
height: 20px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-relative-item__operate-desc {
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
color: #89919f;
|
|
77
|
+
line-height: 22px;
|
|
78
|
+
margin: 0 8px 0 4px;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.titaui-dynamic-relative-item-desc-operate-type {
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
padding: 0 2px;
|
|
87
|
+
height: 18px;
|
|
88
|
+
min-width: 40px;
|
|
89
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
90
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
91
|
+
border-radius: 14px 10px 10px 4px;
|
|
92
|
+
font-size: 12px;
|
|
93
|
+
color: #ffffff;
|
|
94
|
+
line-height: 18px;
|
|
95
|
+
}
|