@titaui/pc 1.5.69-beta.2 → 1.5.69-beta.23
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.js +1 -1
- package/lib/components/avatar/index.js +5 -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/default-button/index.css +49 -0
- package/lib/components/button/default-button/index.js +51 -0
- package/lib/components/button/index.js +8 -2
- package/lib/components/communication/CommunicationRecord.js +110 -162
- package/lib/components/communication/index.css +4 -0
- package/lib/components/communication/index.js +34 -25
- package/lib/components/communication/style.js +1 -1
- package/lib/components/create-okr/index.css +4 -0
- package/lib/components/create-okr/index.js +43 -31
- package/lib/components/dropdown-layer/index.js +15 -12
- package/lib/components/dynamic/components/condition-render/index.js +20 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +6 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +4 -2
- 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/{dynamic-item/components/publish-content → components/title}/index.js +27 -31
- package/lib/components/dynamic/constant.js +19 -2
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.css +1 -1
- package/lib/components/dynamic/dynamic-item/components/{dynamic-item-header → header}/index.js +97 -73
- 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/{components/align → dynamic-align}/img/dynamic-align.svg +0 -0
- package/lib/components/dynamic/dynamic-item/{components/align → dynamic-align}/img/dynamic-relative.svg +0 -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 +54 -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/{components/task-project → dynamic-milestone}/constant.js +0 -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/{components/task-project-icon → 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/{components/relative → dynamic-relative}/img/dynamic-relative.svg +0 -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/{components/replay → dynamic-replay}/index.js +76 -11
- 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 +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/constant.js +13 -3
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → dynamic-task}/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/{components/task-project-icon → 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 +34 -10
- package/lib/components/dynamic/dynamic-item/index.js +155 -85
- package/lib/components/dynamic/dynamic-like-ranking/index.css +11 -8
- package/lib/components/dynamic/dynamic-like-ranking/index.js +69 -20
- package/lib/components/dynamic/dynamic-like-ranking/item.js +28 -51
- package/lib/components/dynamic/dynamic-liking/index.css +1 -8
- package/lib/components/dynamic/dynamic-liking/index.js +10 -4
- package/lib/components/dynamic/dynamic-liking/item.js +46 -25
- package/lib/components/dynamic/dynamic-list/index.css +1 -1
- package/lib/components/dynamic/dynamic-list/index.js +9 -7
- package/lib/components/dynamic/dynamic-topping/index.css +0 -5
- package/lib/components/dynamic/dynamic-topping/index.js +1 -1
- package/lib/components/dynamic/dynamic-topping/item.js +13 -17
- package/lib/components/dynamic/dynamic.css +54 -0
- package/lib/components/dynamic/dynamic.js +126 -58
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/quick-operation/index.css +3 -1
- package/lib/components/dynamic/quick-operation/index.js +14 -4
- package/lib/components/dynamic/request-api.js +20 -8
- package/lib/components/dynamic/util.js +41 -7
- package/lib/components/file-list/components/single-file/index.css +3 -3
- package/lib/components/grid-page/personal-info/index.js +4 -4
- package/lib/components/img-viewer/index.css +1 -1
- package/lib/components/mblog/index.js +2 -2
- package/lib/components/mblog/style.js +2 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +48 -25
- package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +62 -24
- package/lib/components/publish-dynamic-modal/requist-api.js +17 -2
- package/lib/components/table/index.css +0 -1
- package/lib/components/upload/style.js +1 -1
- package/lib/components/upvote/index.js +26 -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 +8 -6
- package/lib/index.js +5 -1
- package/lib/pages/dynamic/index.css +1 -0
- package/lib/pages/like-ranking/column.js +33 -14
- package/lib/pages/like-ranking/filter-buttons/department.js +8 -11
- package/lib/pages/like-ranking/filter-buttons/group.js +34 -0
- package/lib/pages/like-ranking/filter-buttons/index.css +4 -8
- package/lib/pages/like-ranking/filter-buttons/index.js +18 -11
- package/lib/pages/like-ranking/filter-buttons/modular.js +51 -28
- package/lib/pages/like-ranking/filter-buttons/name.js +33 -6
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +17 -0
- package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +8 -2
- package/lib/pages/like-ranking/filter-buttons/timer.js +28 -46
- 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/index.css +83 -4
- package/lib/pages/like-ranking/index.js +183 -22
- package/lib/pages/like-ranking/request-api.js +15 -0
- package/lib/utils/auth.js +16 -2
- package/lib/utils/bs-global.js +19 -2
- package/lib/utils/format-time.js +113 -8
- package/lib/utils/tools.js +50 -25
- package/package.json +1 -1
- package/lib/components/dynamic/components/common-title/index.css +0 -106
- package/lib/components/dynamic/components/common-title/index.js +0 -129
- package/lib/components/dynamic/dynamic-item/components/align/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/align/index.js +0 -109
- package/lib/components/dynamic/dynamic-item/components/assessment/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/assessment/index.js +0 -48
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.css +0 -34
- package/lib/components/dynamic/dynamic-item/components/common-dynamic/index.js +0 -142
- package/lib/components/dynamic/dynamic-item/components/create-o/index.css +0 -52
- package/lib/components/dynamic/dynamic-item/components/create-o/index.js +0 -104
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.css +0 -62
- package/lib/components/dynamic/dynamic-item/components/dynamic-desc/index.js +0 -256
- package/lib/components/dynamic/dynamic-item/components/publish-content/index.css +0 -22
- package/lib/components/dynamic/dynamic-item/components/relative/index.css +0 -66
- package/lib/components/dynamic/dynamic-item/components/relative/index.js +0 -124
- package/lib/components/dynamic/dynamic-item/components/replay/index.css +0 -93
- package/lib/components/dynamic/dynamic-item/components/report/index.css +0 -32
- package/lib/components/dynamic/dynamic-item/components/report/index.js +0 -82
- package/lib/components/dynamic/dynamic-item/components/task-project/index.css +0 -57
- package/lib/components/dynamic/dynamic-item/components/task-project/index.js +0 -87
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.css +0 -20
- package/lib/components/dynamic/dynamic-item/components/task-project-icon/index.js +0 -40
- package/lib/components/dynamic/dynamic-topping/mock.js +0 -1
- package/lib/pages/like-ranking/tab-bar/index.css +0 -22
- package/lib/pages/like-ranking/tab-bar/index.js +0 -65
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-common-title {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex: 1;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.titaui-dynamic-common-title__left-block {
|
|
8
|
-
display: flex;
|
|
9
|
-
height: 36px;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
background: #F6F7F9;
|
|
13
|
-
border-radius: 18px 18px 18px 1px;
|
|
14
|
-
word-break: keep-all;
|
|
15
|
-
white-space: nowrap;
|
|
16
|
-
padding: 7px 12px;
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
line-height: 22px;
|
|
19
|
-
color: #3F4755;
|
|
20
|
-
font-weight: 600;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.titaui-dynamic-common-title__left-block-symbol {
|
|
24
|
-
color: #2879FF;
|
|
25
|
-
margin-right: 4px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.titaui-dynamic-common-title__left-block-content {
|
|
29
|
-
flex: 1;
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.titaui-dynamic-common-title__left-block-content:hover {
|
|
35
|
-
color: #2879FF !important;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.titaui-dynamic-common-title__left-block-classify {
|
|
39
|
-
display: flex;
|
|
40
|
-
margin-left: 8px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.titaui-dynamic-common-title__left-block-complete-type {
|
|
44
|
-
display: flex;
|
|
45
|
-
margin-left: 8px;
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
line-height: 22px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.titaui-dynamic-common-title__left-block-complete-type-icon {
|
|
51
|
-
margin-right: 4px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.titaui-dynamic-common-title__left-block-complete-type--normal {
|
|
55
|
-
color: #5AD8A6;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.titaui-dynamic-common-title__left-block-complete-type--delay {
|
|
59
|
-
color: #624DFF;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.titaui-dynamic-common-title__left-block-priority {
|
|
63
|
-
max-width: 18px;
|
|
64
|
-
min-width: 18px;
|
|
65
|
-
margin-bottom: 2px;
|
|
66
|
-
margin-right: 4px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.titaui-dynamic-common-title__right-block {
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
margin-left: 12px;
|
|
73
|
-
white-space: nowrap;
|
|
74
|
-
word-break: keep-all;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.titaui-dynamic-common-title__right-block-status-icon {
|
|
78
|
-
width: 18px;
|
|
79
|
-
height: 18px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.titaui-dynamic-common-title__right-block-percent {
|
|
83
|
-
font-size: 16px;
|
|
84
|
-
font-weight: 600;
|
|
85
|
-
color: #3F4755;
|
|
86
|
-
line-height: 24px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.titaui-dynamic-common-title__right-block-percent--space {
|
|
90
|
-
margin-left: 8px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.titaui-dynamic-common-title__right-block-percent-grow {
|
|
94
|
-
font-size: 12px;
|
|
95
|
-
font-weight: 600;
|
|
96
|
-
line-height: 20px;
|
|
97
|
-
margin-left: 4px;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.titaui-dynamic-common-title__right-block-percent-grow--increase {
|
|
101
|
-
color: #5AD8A6;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.titaui-dynamic-common-title__right-block-percent-grow--decrease {
|
|
105
|
-
color: #F05E5E;
|
|
106
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _tooltip = require("../../../tooltip");
|
|
15
|
-
|
|
16
|
-
var _dynamicDesire = _interopRequireDefault(require("../../img/dynamic-desire.svg"));
|
|
17
|
-
|
|
18
|
-
var _dynamicPromise = _interopRequireDefault(require("../../img/dynamic-promise.svg"));
|
|
19
|
-
|
|
20
|
-
var _dynamicSubmitDelay = _interopRequireDefault(require("../../img/dynamic-submit-delay.svg"));
|
|
21
|
-
|
|
22
|
-
var _dynamicSubmitNormal = _interopRequireDefault(require("../../img/dynamic-submit-normal.svg"));
|
|
23
|
-
|
|
24
|
-
var _dynamicDelay = _interopRequireDefault(require("../../img/dynamic-delay.svg"));
|
|
25
|
-
|
|
26
|
-
var _dynamicNormal = _interopRequireDefault(require("../../img/dynamic-normal.svg"));
|
|
27
|
-
|
|
28
|
-
var _dynamicRisk = _interopRequireDefault(require("../../img/dynamic-risk.svg"));
|
|
29
|
-
|
|
30
|
-
var _dynamicEnd = _interopRequireDefault(require("../../img/dynamic-end.svg"));
|
|
31
|
-
|
|
32
|
-
var _util = require("../../util");
|
|
33
|
-
|
|
34
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
35
|
-
|
|
36
|
-
var _context = require("../../context");
|
|
37
|
-
|
|
38
|
-
require("./index.css");
|
|
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 _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; }
|
|
47
|
-
|
|
48
|
-
var prefix = "titaui-dynamic-common-title";
|
|
49
|
-
var StateIconMapping = {
|
|
50
|
-
delay: _dynamicDelay["default"],
|
|
51
|
-
normal: _dynamicNormal["default"],
|
|
52
|
-
risk: _dynamicRisk["default"],
|
|
53
|
-
end: _dynamicEnd["default"]
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var CommonTitle = function CommonTitle(_ref) {
|
|
57
|
-
var _classNames, _classNames3;
|
|
58
|
-
|
|
59
|
-
var content = _ref.content,
|
|
60
|
-
_ref$showPercent = _ref.showPercent,
|
|
61
|
-
showPercent = _ref$showPercent === void 0 ? false : _ref$showPercent,
|
|
62
|
-
_ref$showStatusIcon = _ref.showStatusIcon,
|
|
63
|
-
showStatusIcon = _ref$showStatusIcon === void 0 ? false : _ref$showStatusIcon,
|
|
64
|
-
_ref$percent = _ref.percent,
|
|
65
|
-
percent = _ref$percent === void 0 ? 0 : _ref$percent,
|
|
66
|
-
_ref$growPercent = _ref.growPercent,
|
|
67
|
-
growPercent = _ref$growPercent === void 0 ? 0 : _ref$growPercent,
|
|
68
|
-
_ref$oStatus = _ref.oStatus,
|
|
69
|
-
oStatus = _ref$oStatus === void 0 ? 1 : _ref$oStatus,
|
|
70
|
-
_ref$riskLevel = _ref.riskLevel,
|
|
71
|
-
riskLevel = _ref$riskLevel === void 0 ? 1 : _ref$riskLevel,
|
|
72
|
-
_ref$showCompleteType = _ref.showCompleteType,
|
|
73
|
-
showCompleteType = _ref$showCompleteType === void 0 ? false : _ref$showCompleteType,
|
|
74
|
-
_ref$completeType = _ref.completeType,
|
|
75
|
-
completeType = _ref$completeType === void 0 ? 1 : _ref$completeType,
|
|
76
|
-
_ref$showOClassify = _ref.showOClassify,
|
|
77
|
-
showOClassify = _ref$showOClassify === void 0 ? false : _ref$showOClassify,
|
|
78
|
-
_ref$oClassify = _ref.oClassify,
|
|
79
|
-
oClassify = _ref$oClassify === void 0 ? 0 : _ref$oClassify,
|
|
80
|
-
onClickTitle = _ref.onClickTitle;
|
|
81
|
-
|
|
82
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
83
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
84
|
-
|
|
85
|
-
var onTitleClick = function onTitleClick() {
|
|
86
|
-
onClickTitle && onClickTitle();
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
|
-
className: prefix
|
|
91
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
92
|
-
className: prefix + "__left-block"
|
|
93
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
94
|
-
className: prefix + "__left-block-symbol"
|
|
95
|
-
}, "#"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
96
|
-
className: prefix + "__left-block-content",
|
|
97
|
-
onClick: onTitleClick
|
|
98
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
99
|
-
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
100
|
-
str: content,
|
|
101
|
-
keyWord: searchKeyWord
|
|
102
|
-
}),
|
|
103
|
-
isPercent: true
|
|
104
|
-
})), showOClassify && oClassify && /*#__PURE__*/_react["default"].createElement("span", {
|
|
105
|
-
className: prefix + "__left-block-classify"
|
|
106
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
107
|
-
src: oClassify === 1 ? _dynamicDesire["default"] : _dynamicPromise["default"],
|
|
108
|
-
alt: ""
|
|
109
|
-
})), showCompleteType && /*#__PURE__*/_react["default"].createElement("span", {
|
|
110
|
-
className: (0, _classnames["default"])(prefix + "__left-block-complete-type", (_classNames = {}, _defineProperty(_classNames, prefix + "__left-block-complete-type--normal", completeType === 1), _defineProperty(_classNames, prefix + "__left-block-complete-type--delay", completeType === 2), _classNames))
|
|
111
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
112
|
-
className: prefix + "__left-block-complete-type-icon",
|
|
113
|
-
src: completeType === 1 ? _dynamicSubmitNormal["default"] : _dynamicSubmitDelay["default"]
|
|
114
|
-
}), completeType === 1 ? "按" : "延", "\u65F6\u63D0\u4EA4")), showPercent && /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
-
className: prefix + "__right-block"
|
|
116
|
-
}, showStatusIcon && /*#__PURE__*/_react["default"].createElement("img", {
|
|
117
|
-
className: prefix + "__right-block-status-icon",
|
|
118
|
-
src: StateIconMapping[(0, _util.getProgressState)(oStatus, riskLevel)]
|
|
119
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
120
|
-
className: (0, _classnames["default"])(prefix + "__right-block-percent", _defineProperty({}, prefix + "__right-block-percent--space", showStatusIcon))
|
|
121
|
-
}, percent, "%", growPercent !== 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
|
-
className: (0, _classnames["default"])(prefix + "__right-block-percent-grow", (_classNames3 = {}, _defineProperty(_classNames3, prefix + "__right-block-percent-grow--increase", growPercent > 0), _defineProperty(_classNames3, prefix + "__right-block-percent-grow--decrease", growPercent < 0), _classNames3))
|
|
123
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
124
|
-
className: growPercent > 0 ? "tu-icon-simple-sort-up" : "tu-icon-simple-sort-down"
|
|
125
|
-
}), growPercent, "%"))));
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
var _default = CommonTitle;
|
|
129
|
-
exports["default"] = _default;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
|
|
3
|
-
.titaui-dynamic-align {
|
|
4
|
-
position: relative;
|
|
5
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.titaui-dynamic-align__obj {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.titaui-dynamic-align__obj-base-info {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.titaui-dynamic-align__obj-base-info-icon {
|
|
20
|
-
color: #89919F;
|
|
21
|
-
font-size: 18px;
|
|
22
|
-
margin-right: 8px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.titaui-dynamic-align__obj-title {
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
word-break: keep-all;
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
font-weight: 600;
|
|
31
|
-
color: #3F4755;
|
|
32
|
-
line-height: 22px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.titaui-dynamic-align__obj-title:hover {
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
color: #2879ff;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.titaui-dynamic-align__obj-principal-user {
|
|
41
|
-
font-size: 12px;
|
|
42
|
-
color: #89919F;
|
|
43
|
-
line-height: 18px;
|
|
44
|
-
margin-left: 26px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.titaui-dynamic-align__obj-principal-user::after {
|
|
48
|
-
content: '·';
|
|
49
|
-
display: inline-block;
|
|
50
|
-
margin: 0 4px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.titaui-dynamic-align__obj-cycle {
|
|
54
|
-
font-size: 12px;
|
|
55
|
-
color: #89919F;
|
|
56
|
-
line-height: 18px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.titaui-dynamic-align__align-img {
|
|
60
|
-
position: absolute;
|
|
61
|
-
top: 38px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.titaui-dynamic-align__space {
|
|
65
|
-
height: 20px;
|
|
66
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _tooltip = require("../../../../tooltip");
|
|
13
|
-
|
|
14
|
-
var _manager = _interopRequireDefault(require("../../../../drawer/manager"));
|
|
15
|
-
|
|
16
|
-
var _constant = require("../../../constant");
|
|
17
|
-
|
|
18
|
-
var _openData = require("../../../../../utils/open-data");
|
|
19
|
-
|
|
20
|
-
var _dynamicAlign = _interopRequireDefault(require("./img/dynamic-align.svg"));
|
|
21
|
-
|
|
22
|
-
require("./index.css");
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
-
|
|
26
|
-
var prefix = "titaui-dynamic-align";
|
|
27
|
-
|
|
28
|
-
var DynamicAlign = function DynamicAlign(_ref) {
|
|
29
|
-
var data = _ref.data;
|
|
30
|
-
var okrName = data.okrName,
|
|
31
|
-
okrId = data.okrId,
|
|
32
|
-
principalUser = data.principalUser,
|
|
33
|
-
parentObjName = data.parentObjName,
|
|
34
|
-
parentObjType = data.parentObjType,
|
|
35
|
-
parentObjId = data.parentObjId,
|
|
36
|
-
parentPrincipalUser = data.parentPrincipalUser,
|
|
37
|
-
parentcycleName = data.parentcycleName;
|
|
38
|
-
|
|
39
|
-
var handleClickTitle = function handleClickTitle(id, type) {
|
|
40
|
-
if (type === _constant.EObjType.Kr) {
|
|
41
|
-
_manager["default"].open("krDetail", {
|
|
42
|
-
krId: id
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (type === _constant.EObjType.O) {
|
|
47
|
-
_manager["default"].open("okrDetail", {
|
|
48
|
-
okrId: id
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
54
|
-
className: prefix
|
|
55
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
-
className: prefix + "__obj"
|
|
57
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
58
|
-
className: prefix + "__obj-base-info"
|
|
59
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
60
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", {
|
|
61
|
-
"tu-icon-okr": parentObjType === _constant.EObjType.O,
|
|
62
|
-
"tu-icon-KR": parentObjType === _constant.EObjType.Kr
|
|
63
|
-
})
|
|
64
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
|
-
className: prefix + "__obj-title",
|
|
66
|
-
onClick: function onClick() {
|
|
67
|
-
handleClickTitle(parentObjId, parentObjType);
|
|
68
|
-
}
|
|
69
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
70
|
-
isPercent: true,
|
|
71
|
-
text: parentObjName
|
|
72
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
73
|
-
className: prefix + "__obj-principal-user"
|
|
74
|
-
}, principalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
75
|
-
id: principalUser.userId,
|
|
76
|
-
name: principalUser.name
|
|
77
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
78
|
-
className: prefix + "__obj-cycle"
|
|
79
|
-
}, data.cycleName))), /*#__PURE__*/_react["default"].createElement("img", {
|
|
80
|
-
className: prefix + "__align-img",
|
|
81
|
-
src: _dynamicAlign["default"]
|
|
82
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
83
|
-
className: prefix + '__space'
|
|
84
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
85
|
-
className: prefix + "__obj"
|
|
86
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
-
className: prefix + "__obj-base-info"
|
|
88
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
89
|
-
className: (0, _classnames["default"])(prefix + "__obj-base-info-icon", "tu-icon-okr")
|
|
90
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
|
-
className: prefix + "__obj-title",
|
|
92
|
-
onClick: function onClick() {
|
|
93
|
-
handleClickTitle(okrId, _constant.EObjType.O);
|
|
94
|
-
}
|
|
95
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
96
|
-
isPercent: true,
|
|
97
|
-
text: okrName
|
|
98
|
-
}))), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
99
|
-
className: prefix + "__obj-principal-user"
|
|
100
|
-
}, parentPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
101
|
-
id: parentPrincipalUser.userId,
|
|
102
|
-
name: parentPrincipalUser.name
|
|
103
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
104
|
-
className: prefix + "__obj-cycle"
|
|
105
|
-
}, parentcycleName))));
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
var _default = DynamicAlign;
|
|
109
|
-
exports["default"] = _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-assessment {
|
|
2
|
-
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.titaui-dynamic-assessment__infos {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
font-size: 12px;
|
|
9
|
-
color: #89919F;
|
|
10
|
-
line-height: 18px;
|
|
11
|
-
margin-top: 8px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-dynamic-assessment__infos-icon {
|
|
15
|
-
margin-right: 4px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.titaui-dynamic-assessment__infos-step-name {
|
|
19
|
-
margin-right: 20px;
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _commonTitle = _interopRequireDefault(require("../../../components/common-title"));
|
|
13
|
-
|
|
14
|
-
require("./index.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
var prefix = "titaui-dynamic-assessment"; // step信息 1:完成 2:当前阶段 3:未开始
|
|
19
|
-
|
|
20
|
-
var DynamicAssessment = function DynamicAssessment(_ref) {
|
|
21
|
-
var data = _ref.data;
|
|
22
|
-
var currentStep = JSON.parse(data.step).find(function (item) {
|
|
23
|
-
return item.status === 2;
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
var handleClickTitle = function handleClickTitle() {
|
|
27
|
-
var assessId = data.url.split('assessId=')[1];
|
|
28
|
-
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=" + assessId));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
32
|
-
className: prefix
|
|
33
|
-
}, /*#__PURE__*/_react["default"].createElement(_commonTitle["default"], {
|
|
34
|
-
content: '考核:' + data.assessName,
|
|
35
|
-
onClickTitle: handleClickTitle
|
|
36
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
37
|
-
className: prefix + "__infos"
|
|
38
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
39
|
-
className: (0, _classnames["default"])("tu-icon-jixiaojieduan", prefix + "__infos-icon")
|
|
40
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
41
|
-
className: prefix + '__infos-step-name'
|
|
42
|
-
}, currentStep.stepName), /*#__PURE__*/_react["default"].createElement("i", {
|
|
43
|
-
className: (0, _classnames["default"])("tu-icon-deferred", prefix + "__infos-icon")
|
|
44
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, data.startDate + "-" + data.deadline)));
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
var _default = DynamicAssessment;
|
|
48
|
-
exports["default"] = _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.titaui-dynamic-common-dynamic__title {
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.titaui-dynamic-common-dynamic__description {
|
|
7
|
-
font-size: 14px;
|
|
8
|
-
color: #3F4755;
|
|
9
|
-
line-height: 22px;
|
|
10
|
-
display: flex;
|
|
11
|
-
margin-top: 12px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.titaui-dynamic-common-dynamic__description-quoto {
|
|
15
|
-
width: 12px;
|
|
16
|
-
height: 12px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.titaui-dynamic-common-dynamic__description-quoto--left {
|
|
20
|
-
margin-right: 8px;
|
|
21
|
-
margin-top: -6px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.titaui-dynamic-common-dynamic__description-quoto--right {
|
|
25
|
-
margin-left: 8px;
|
|
26
|
-
margin-top: 4px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.titaui-dynamic-common-dynamic__reward-tag {
|
|
30
|
-
display: inline-block;
|
|
31
|
-
padding: 1px 12px;
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
line-height: 18px;
|
|
34
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
|
-
var _commonTitle = _interopRequireDefault(require("../../../components/common-title"));
|
|
15
|
-
|
|
16
|
-
var _dynamicLeftQuoto = _interopRequireDefault(require("../../../img/dynamic-left-quoto.svg"));
|
|
17
|
-
|
|
18
|
-
var _dynamicRightQuoto = _interopRequireDefault(require("../../../img/dynamic-right-quoto.svg"));
|
|
19
|
-
|
|
20
|
-
var _searchKeyHandle = _interopRequireDefault(require("../../../../search-key-handle"));
|
|
21
|
-
|
|
22
|
-
var _context = require("../../../context");
|
|
23
|
-
|
|
24
|
-
var _manager = _interopRequireDefault(require("../../../../drawer/manager"));
|
|
25
|
-
|
|
26
|
-
var _tools = require("../../../../..//utils/tools");
|
|
27
|
-
|
|
28
|
-
var _constant = require("../../../constant");
|
|
29
|
-
|
|
30
|
-
require("./index.css");
|
|
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
|
-
var prefix = "titaui-dynamic-common-dynamic";
|
|
39
|
-
|
|
40
|
-
var CommonDynamic = function CommonDynamic(_ref) {
|
|
41
|
-
var data = _ref.data;
|
|
42
|
-
var progress = data.progress,
|
|
43
|
-
progressDescription = data.progressDescription,
|
|
44
|
-
progressGrow = data.progressGrow,
|
|
45
|
-
riskLevel = data.riskLevel,
|
|
46
|
-
_data$obj = data.obj,
|
|
47
|
-
objType = _data$obj.objType,
|
|
48
|
-
objId = _data$obj.objId,
|
|
49
|
-
objName = _data$obj.objName,
|
|
50
|
-
rewardContent = data.rewardContent,
|
|
51
|
-
rewardTags = data.rewardTags;
|
|
52
|
-
|
|
53
|
-
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
54
|
-
searchKeyWord = _useContext.searchKeyWord;
|
|
55
|
-
|
|
56
|
-
var handleClickTitle = function handleClickTitle() {
|
|
57
|
-
if (objType === _constant.EObjType.Kr) {
|
|
58
|
-
_manager["default"].open("krDetail", {
|
|
59
|
-
krId: objId
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (objType === _constant.EObjType.O) {
|
|
64
|
-
_manager["default"].open("okrDetail", {
|
|
65
|
-
okrId: objId
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (objType === _constant.EObjType.Task) {
|
|
70
|
-
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (objType === _constant.EObjType.Project) {
|
|
74
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=" + objId));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (objType === _constant.EObjType.Assess) {
|
|
78
|
-
var assessId = data.url.split('assessId=')[1];
|
|
79
|
-
window.open(window.location.href.replace(location.hash, "#performance?reactRouterName=detail&formId=" + assessId));
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
var renderTitle = (0, _react.useMemo)(function () {
|
|
84
|
-
if (objType === _constant.EObjType.Kr) {
|
|
85
|
-
return "KR:" + objName;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (objType === _constant.EObjType.O) {
|
|
89
|
-
return "O:" + objName;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
if (objType === _constant.EObjType.Task) {
|
|
93
|
-
return "任务:" + objName;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (objType === _constant.EObjType.Project) {
|
|
97
|
-
return "项目:" + objName;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (objType === _constant.EObjType.Assess) {
|
|
101
|
-
return "考核:" + objName;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return "";
|
|
105
|
-
}, []);
|
|
106
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
|
-
className: prefix
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
|
-
className: prefix + "__title"
|
|
110
|
-
}, renderTitle && /*#__PURE__*/_react["default"].createElement(_commonTitle["default"], {
|
|
111
|
-
content: renderTitle,
|
|
112
|
-
showPercent: true,
|
|
113
|
-
percent: progress,
|
|
114
|
-
growPercent: progressGrow,
|
|
115
|
-
showStatusIcon: true,
|
|
116
|
-
oStatus: 1,
|
|
117
|
-
riskLevel: riskLevel,
|
|
118
|
-
onClickTitle: handleClickTitle
|
|
119
|
-
})), (progressDescription || rewardContent) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
-
className: prefix + "__description"
|
|
121
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
122
|
-
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--left"),
|
|
123
|
-
src: _dynamicLeftQuoto["default"]
|
|
124
|
-
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
125
|
-
str: progressDescription || rewardContent,
|
|
126
|
-
keyWord: searchKeyWord
|
|
127
|
-
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
128
|
-
className: (0, _classnames["default"])(prefix + "__description-quoto", prefix + "__description-quoto--right"),
|
|
129
|
-
src: _dynamicRightQuoto["default"]
|
|
130
|
-
}), rewardTags && rewardTags.length && rewardTags.map(function (reward) {
|
|
131
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
132
|
-
className: prefix + "__reward-tag",
|
|
133
|
-
style: {
|
|
134
|
-
background: (0, _tools.hexToRgba)(reward.color, 0.2),
|
|
135
|
-
color: reward.color
|
|
136
|
-
}
|
|
137
|
-
}, reward.tagName);
|
|
138
|
-
}))));
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
var _default = CommonDynamic;
|
|
142
|
-
exports["default"] = _default;
|