@titaui/pc 1.10.8 → 1.10.9
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/change-okr-modal/index.js +88 -108
- package/lib/components/communication/CommunicationRecord.js +12 -18
- package/lib/components/communication/index.css +9 -48
- package/lib/components/communication/index.js +28 -67
- package/lib/components/communication/style.js +5 -7
- package/lib/components/create-okr-modal/fields/okr-parent.js +5 -1
- package/lib/components/dynamic/components/obj-status/index.css +19 -3
- package/lib/components/dynamic/components/obj-status/index.js +8 -7
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +22 -21
- package/lib/components/dynamic/components/title/index.js +8 -20
- package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
- package/lib/components/dynamic/dynamic-item/components/header/index.js +6 -12
- 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 +24 -35
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +29 -35
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +34 -6
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +32 -6
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +19 -59
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +19 -27
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +38 -49
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +44 -49
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +29 -41
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +29 -23
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +16 -33
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +24 -11
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +41 -26
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +29 -10
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +41 -26
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +30 -13
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +57 -15
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +80 -31
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +28 -35
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +23 -10
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +22 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +26 -45
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +33 -41
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +6 -19
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +17 -11
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +23 -21
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +27 -31
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -8
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +21 -6
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +36 -6
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +18 -10
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +25 -9
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +30 -34
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +24 -10
- package/lib/components/dynamic/dynamic-item/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/index.js +8 -38
- package/lib/components/dynamic/util.js +81 -41
- package/lib/components/file-list/components/single-file/index.css +8 -9
- package/lib/components/mblog/context.js +1 -3
- package/lib/components/mblog/index.js +4 -31
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +12 -21
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +4 -7
- package/lib/components/okr-detail/okr-list/index.js +5 -1
- package/lib/components/okr-progress-modal/helper.js +20 -27
- package/lib/components/progress/circle-progress/index.css +0 -1
- package/lib/components/progress/circle-progress/index.js +2 -7
- package/lib/components/search-key-handle/index.js +2 -7
- package/lib/index.js +0 -16
- package/lib/utils/bs-global.js +4 -8
- package/lib/utils/tools.js +2 -11
- package/package.json +1 -1
- package/lib/components/dynamic/components/obj-status/utils.js +0 -37
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +0 -72
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +0 -23
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
- package/lib/components/float-fixed-video-modal/img/close.png +0 -0
- package/lib/components/float-fixed-video-modal/img/full.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
- package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
- package/lib/components/float-fixed-video-modal/index.css +0 -243
- package/lib/components/float-fixed-video-modal/index.js +0 -334
- package/lib/components/float-fixed-video-modal/utils.js +0 -25
- package/lib/components/mblog/index.css +0 -7
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/muted.svg +0 -16
- package/lib/components/video-modal/img/not-muted.svg +0 -16
- package/lib/components/video-modal/img/pause.svg +0 -17
- package/lib/components/video-modal/img/play.png +0 -0
- package/lib/components/video-modal/img/play.svg +0 -16
- package/lib/components/video-modal/img/small.svg +0 -22
- package/lib/components/video-modal/index.css +0 -213
- package/lib/components/video-modal/index.js +0 -322
- package/lib/components/video-modal/utils.js +0 -25
|
Binary file
|
|
@@ -8,18 +8,31 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-okrs-communication-item__content {
|
|
11
|
-
|
|
12
|
-
background: rgba(90, 216, 166, 0.1);
|
|
13
|
-
border-radius: 12px;
|
|
11
|
+
height: 78px;
|
|
14
12
|
display: flex;
|
|
15
13
|
align-items: center;
|
|
16
|
-
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
|
+
padding: 16px 12px 16px 16px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
|
+
margin-left: 69px;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
.titaui-dynamic-okrs-communication-item__content-
|
|
21
|
+
.titaui-dynamic-okrs-communication-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-okrs-communication-item__content-info {
|
|
28
|
+
flex: 1;
|
|
21
29
|
display: flex;
|
|
22
|
-
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
margin-left: 16px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-okrs-communication-item__content-title {
|
|
23
36
|
flex: 1;
|
|
24
37
|
word-break: keep-all;
|
|
25
38
|
white-space: nowrap;
|
|
@@ -30,40 +43,42 @@
|
|
|
30
43
|
line-height: 24px;
|
|
31
44
|
}
|
|
32
45
|
|
|
33
|
-
.titaui-dynamic-okrs-communication-item__content-title-type {
|
|
34
|
-
border-radius: 18px;
|
|
35
|
-
background: rgba(90, 216, 166, 0.5);
|
|
36
|
-
color: #ffffff;
|
|
37
|
-
margin-right: 8px;
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
line-height: 20px;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
padding: 0 6px;
|
|
44
|
-
font-weight: 400;
|
|
45
|
-
height: 20px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
46
|
.titaui-dynamic-okrs-communication-item__content-title-text {
|
|
49
|
-
flex: 1;
|
|
50
47
|
cursor: pointer;
|
|
51
|
-
overflow: hidden;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
.titaui-dynamic-okrs-communication-item__content-title-text:hover {
|
|
55
51
|
color: #2879ff;
|
|
56
52
|
}
|
|
57
53
|
|
|
54
|
+
.titaui-dynamic-okrs-communication-item__content-title-priority {
|
|
55
|
+
width: 18px;
|
|
56
|
+
height: 26px;
|
|
57
|
+
margin-right: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
58
60
|
.titaui-dynamic-okrs-communication-item__operate-desc {
|
|
59
|
-
font-size:
|
|
61
|
+
font-size: 14px;
|
|
60
62
|
font-weight: 400;
|
|
61
63
|
color: #89919f;
|
|
62
|
-
line-height:
|
|
63
|
-
margin
|
|
64
|
+
line-height: 22px;
|
|
65
|
+
margin: 0 8px 0 4px;
|
|
64
66
|
overflow: hidden;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.titaui-dynamic-okrs-communication-item__operate-desc-wrapper {
|
|
68
70
|
display: flex;
|
|
69
71
|
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-okrs-communication-item-desc-operate-type {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
padding: 0 6px;
|
|
78
|
+
height: 18px;
|
|
79
|
+
min-width: 40px;
|
|
80
|
+
border-radius: 10px 10px 10px 2px;
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
color: #ffffff;
|
|
83
|
+
line-height: 18px;
|
|
84
|
+
}
|
|
@@ -11,11 +11,15 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _header = _interopRequireDefault(require("../components/header"));
|
|
13
13
|
|
|
14
|
+
var _okrsIcon = _interopRequireDefault(require("./img/okrs-icon.png"));
|
|
15
|
+
|
|
14
16
|
var _context = require("../../context");
|
|
15
17
|
|
|
16
18
|
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
17
19
|
|
|
18
|
-
var _tooltip =
|
|
20
|
+
var _tooltip = require("../../../tooltip");
|
|
21
|
+
|
|
22
|
+
var _util = require("../../util");
|
|
19
23
|
|
|
20
24
|
require("./index.css");
|
|
21
25
|
|
|
@@ -39,12 +43,20 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
39
43
|
var data = _ref.data,
|
|
40
44
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
41
45
|
|
|
42
|
-
var
|
|
46
|
+
var status = data.status,
|
|
47
|
+
taskName = data.taskName,
|
|
48
|
+
startDate = data.startDate,
|
|
49
|
+
deadline = data.deadline,
|
|
50
|
+
feedType = data.feedType,
|
|
43
51
|
principalUser = data.principalUser;
|
|
44
52
|
|
|
45
53
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
46
54
|
searchKeyWord = _useContext.searchKeyWord;
|
|
47
55
|
|
|
56
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
57
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
+
|
|
48
60
|
var handleClickPlanTitle = function handleClickPlanTitle() {
|
|
49
61
|
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
50
62
|
};
|
|
@@ -59,9 +71,14 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
59
71
|
}));
|
|
60
72
|
}, [taskName, searchKeyWord]);
|
|
61
73
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
74
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
63
75
|
className: "".concat(prefix, "__operate-desc")
|
|
64
|
-
}, "\
|
|
76
|
+
}, "\u7684\u8BA1\u5212\u8868"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
78
|
+
style: {
|
|
79
|
+
background: feedTypeColor
|
|
80
|
+
}
|
|
81
|
+
}, feedTypeText));
|
|
65
82
|
}, []);
|
|
66
83
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
84
|
className: prefix
|
|
@@ -72,15 +89,17 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
72
89
|
user: principalUser
|
|
73
90
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
91
|
className: "".concat(prefix, "__content")
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
93
|
+
className: "".concat(prefix, "__content-img"),
|
|
94
|
+
src: _okrsIcon["default"]
|
|
95
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
+
className: "".concat(prefix, "__content-info")
|
|
75
97
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
98
|
className: "".concat(prefix, "__content-title")
|
|
77
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
78
|
-
|
|
79
|
-
}, "OKR"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
-
className: "".concat(prefix, "__content-title-text")
|
|
81
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
100
|
+
isPercent: true,
|
|
82
101
|
text: renderName,
|
|
83
|
-
|
|
102
|
+
minusWidth: 30
|
|
84
103
|
})))));
|
|
85
104
|
};
|
|
86
105
|
|
|
Binary file
|
|
@@ -8,18 +8,31 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-plan-communication-item__content {
|
|
11
|
-
|
|
12
|
-
background: rgba(90, 216, 166, 0.1);
|
|
13
|
-
border-radius: 12px;
|
|
11
|
+
height: 78px;
|
|
14
12
|
display: flex;
|
|
15
13
|
align-items: center;
|
|
16
|
-
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
|
+
padding: 16px 12px 16px 16px;
|
|
17
17
|
box-sizing: border-box;
|
|
18
|
+
margin-left: 69px;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
.titaui-dynamic-plan-communication-item__content-
|
|
21
|
+
.titaui-dynamic-plan-communication-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-plan-communication-item__content-info {
|
|
28
|
+
flex: 1;
|
|
21
29
|
display: flex;
|
|
22
|
-
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
margin-left: 16px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-plan-communication-item__content-title {
|
|
23
36
|
flex: 1;
|
|
24
37
|
word-break: keep-all;
|
|
25
38
|
white-space: nowrap;
|
|
@@ -30,40 +43,42 @@
|
|
|
30
43
|
line-height: 24px;
|
|
31
44
|
}
|
|
32
45
|
|
|
33
|
-
.titaui-dynamic-plan-communication-item__content-title-type {
|
|
34
|
-
border-radius: 18px;
|
|
35
|
-
background: rgba(90, 216, 166, 0.5);
|
|
36
|
-
color: #ffffff;
|
|
37
|
-
margin-right: 8px;
|
|
38
|
-
font-size: 14px;
|
|
39
|
-
line-height: 20px;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
padding: 0 6px;
|
|
44
|
-
font-weight: 400;
|
|
45
|
-
height: 20px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
46
|
.titaui-dynamic-plan-communication-item__content-title-text {
|
|
49
|
-
flex: 1;
|
|
50
47
|
cursor: pointer;
|
|
51
|
-
overflow: hidden;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
.titaui-dynamic-plan-communication-item__content-title-text:hover {
|
|
55
51
|
color: #2879ff;
|
|
56
52
|
}
|
|
57
53
|
|
|
54
|
+
.titaui-dynamic-plan-communication-item__content-title-priority {
|
|
55
|
+
width: 18px;
|
|
56
|
+
height: 26px;
|
|
57
|
+
margin-right: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
58
60
|
.titaui-dynamic-plan-communication-item__operate-desc {
|
|
59
|
-
font-size:
|
|
61
|
+
font-size: 14px;
|
|
60
62
|
font-weight: 400;
|
|
61
63
|
color: #89919f;
|
|
62
|
-
line-height:
|
|
63
|
-
margin
|
|
64
|
+
line-height: 22px;
|
|
65
|
+
margin: 0 8px 0 4px;
|
|
64
66
|
overflow: hidden;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.titaui-dynamic-plan-communication-item__operate-desc-wrapper {
|
|
68
70
|
display: flex;
|
|
69
71
|
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-plan-communication-item-desc-operate-type {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
padding: 0 6px;
|
|
78
|
+
height: 18px;
|
|
79
|
+
min-width: 40px;
|
|
80
|
+
border-radius: 10px 10px 10px 2px;
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
color: #ffffff;
|
|
83
|
+
line-height: 18px;
|
|
84
|
+
}
|
|
@@ -9,15 +9,17 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
13
|
+
|
|
14
|
+
var _planIcon = _interopRequireDefault(require("./img/plan-icon.png"));
|
|
13
15
|
|
|
14
16
|
var _context = require("../../context");
|
|
15
17
|
|
|
16
|
-
var
|
|
18
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
17
19
|
|
|
18
|
-
var _tooltip =
|
|
20
|
+
var _tooltip = require("../../../tooltip");
|
|
19
21
|
|
|
20
|
-
var
|
|
22
|
+
var _util = require("../../util");
|
|
21
23
|
|
|
22
24
|
require("./index.css");
|
|
23
25
|
|
|
@@ -41,12 +43,20 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
41
43
|
var data = _ref.data,
|
|
42
44
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
43
45
|
|
|
44
|
-
var
|
|
46
|
+
var status = data.status,
|
|
47
|
+
taskName = data.taskName,
|
|
48
|
+
startDate = data.startDate,
|
|
49
|
+
deadline = data.deadline,
|
|
50
|
+
feedType = data.feedType,
|
|
45
51
|
principalUser = data.principalUser;
|
|
46
52
|
|
|
47
53
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
48
54
|
searchKeyWord = _useContext.searchKeyWord;
|
|
49
55
|
|
|
56
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
57
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
+
|
|
50
60
|
var handleClickPlanTitle = function handleClickPlanTitle() {
|
|
51
61
|
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
52
62
|
};
|
|
@@ -61,9 +71,14 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
61
71
|
}));
|
|
62
72
|
}, [taskName, searchKeyWord]);
|
|
63
73
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
64
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
74
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
75
|
className: "".concat(prefix, "__operate-desc")
|
|
66
|
-
}, "\u7684\u8BA1\u5212\u8868")
|
|
76
|
+
}, "\u7684\u8BA1\u5212\u8868"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
78
|
+
style: {
|
|
79
|
+
background: feedTypeColor
|
|
80
|
+
}
|
|
81
|
+
}, feedTypeText));
|
|
67
82
|
}, []);
|
|
68
83
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
84
|
className: prefix
|
|
@@ -74,15 +89,17 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
74
89
|
user: principalUser
|
|
75
90
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
91
|
className: "".concat(prefix, "__content")
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
93
|
+
className: "".concat(prefix, "__content-img"),
|
|
94
|
+
src: _planIcon["default"]
|
|
95
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
+
className: "".concat(prefix, "__content-info")
|
|
77
97
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
98
|
className: "".concat(prefix, "__content-title")
|
|
79
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
80
|
-
|
|
81
|
-
}, (0, _getLocale.getLocale)("Menu_Title_Tasks")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
82
|
-
className: "".concat(prefix, "__content-title-text")
|
|
83
|
-
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
100
|
+
isPercent: true,
|
|
84
101
|
text: renderName,
|
|
85
|
-
|
|
102
|
+
minusWidth: 30
|
|
86
103
|
})))));
|
|
87
104
|
};
|
|
88
105
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.titaui-dynamic-progress-item__content {
|
|
6
|
-
margin-left:
|
|
6
|
+
margin-left: 69px;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.titaui-dynamic-progress-item__title {
|
|
@@ -14,24 +14,57 @@
|
|
|
14
14
|
|
|
15
15
|
.titaui-dynamic-progress-item__description {
|
|
16
16
|
font-size: 14px;
|
|
17
|
-
color: #
|
|
18
|
-
line-height:
|
|
19
|
-
margin-top: 4px;
|
|
17
|
+
color: #3F4755;
|
|
18
|
+
line-height: 22px;
|
|
20
19
|
display: flex;
|
|
20
|
+
margin-top: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.titaui-dynamic-progress-item__description-quoto {
|
|
24
|
+
width: 12px;
|
|
25
|
+
height: 12px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-dynamic-progress-item__description-quoto--left {
|
|
29
|
+
margin-right: 8px;
|
|
30
|
+
margin-top: -6px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-progress-item__description-quoto--right {
|
|
34
|
+
margin-left: 8px;
|
|
35
|
+
margin-top: 4px;
|
|
21
36
|
}
|
|
22
37
|
|
|
23
38
|
.titaui-dynamic-progress-item__description-text {
|
|
24
39
|
white-space: pre-wrap;
|
|
25
40
|
}
|
|
26
41
|
|
|
27
|
-
.titaui-dynamic-progress-item__status {
|
|
28
|
-
margin-
|
|
42
|
+
.titaui-dynamic-progress-item__status-left {
|
|
43
|
+
margin-left: 12px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-dynamic-progress-item__percent-left {
|
|
47
|
+
margin-left: 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.titaui-dynamic-progress-item__classify {
|
|
51
|
+
display: flex;
|
|
52
|
+
width: 18px;
|
|
53
|
+
margin-left: 8px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.titaui-dynamic-progress-item__classify--desire {
|
|
57
|
+
background: url("../../img/dynamic-desire.svg") no-repeat;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-dynamic-progress-item__classify--promise {
|
|
61
|
+
background: url("../../img/dynamic-promise.svg") no-repeat;
|
|
29
62
|
}
|
|
30
63
|
|
|
31
64
|
.titaui-dynamic-progress-item__object-name {
|
|
32
|
-
font-size:
|
|
65
|
+
font-size: 14px;
|
|
33
66
|
color: #2879ff;
|
|
34
|
-
line-height:
|
|
67
|
+
line-height: 22px;
|
|
35
68
|
margin: 0 4px;
|
|
36
69
|
overflow: hidden;
|
|
37
70
|
}
|
|
@@ -41,15 +74,24 @@
|
|
|
41
74
|
color: #5c8eff;
|
|
42
75
|
}
|
|
43
76
|
|
|
44
|
-
.titaui-dynamic-progress-item__obj-wrapper {
|
|
45
|
-
display: flex;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
77
|
.titaui-dynamic-progress-item__operate-desc {
|
|
49
|
-
font-size:
|
|
78
|
+
font-size: 14px;
|
|
50
79
|
font-weight: 400;
|
|
51
80
|
color: #89919f;
|
|
52
|
-
line-height:
|
|
53
|
-
margin
|
|
81
|
+
line-height: 22px;
|
|
82
|
+
margin: 0 8px 0 4px;
|
|
54
83
|
overflow: hidden;
|
|
55
84
|
}
|
|
85
|
+
|
|
86
|
+
.titaui-dynamic-progress-item-desc-operate-type {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
padding: 0 6px;
|
|
91
|
+
height: 18px;
|
|
92
|
+
min-width: 40px;
|
|
93
|
+
border-radius: 10px 10px 10px 2px;
|
|
94
|
+
font-size: 12px;
|
|
95
|
+
color: #ffffff;
|
|
96
|
+
line-height: 18px;
|
|
97
|
+
}
|
|
@@ -9,6 +9,12 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
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
|
+
|
|
12
18
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
13
19
|
|
|
14
20
|
var _context = require("../../context");
|
|
@@ -25,13 +31,9 @@ var _objStatus = _interopRequireDefault(require("../../components/obj-status"));
|
|
|
25
31
|
|
|
26
32
|
var _constant = require("../../constant");
|
|
27
33
|
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
var _utils = require("./utils");
|
|
31
|
-
|
|
32
|
-
var _conditionRender = _interopRequireDefault(require("../../../condition-render"));
|
|
34
|
+
var _util = require("../../util");
|
|
33
35
|
|
|
34
|
-
var
|
|
36
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
35
37
|
|
|
36
38
|
require("./index.css");
|
|
37
39
|
|
|
@@ -45,6 +47,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
45
47
|
|
|
46
48
|
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
49
|
|
|
50
|
+
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; }
|
|
51
|
+
|
|
48
52
|
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; }
|
|
49
53
|
|
|
50
54
|
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; }
|
|
@@ -60,6 +64,7 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
60
64
|
progressGrow = data.progressGrow,
|
|
61
65
|
riskLevel = data.riskLevel,
|
|
62
66
|
obj = data.obj,
|
|
67
|
+
classify = data.classify,
|
|
63
68
|
relationParentName = data.relationParentName,
|
|
64
69
|
relationParentId = data.relationParentId,
|
|
65
70
|
publishUser = data.publishUser;
|
|
@@ -67,6 +72,10 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
67
72
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
68
73
|
searchKeyWord = _useContext.searchKeyWord;
|
|
69
74
|
|
|
75
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
76
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
77
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
78
|
+
|
|
70
79
|
var handleClickTitle = function handleClickTitle() {
|
|
71
80
|
if (!obj) {
|
|
72
81
|
return;
|
|
@@ -86,7 +95,7 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
86
95
|
} else if (objType === _constant.EObjType.Task) {
|
|
87
96
|
window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
|
|
88
97
|
} else if (objType === _constant.EObjType.Project) {
|
|
89
|
-
window.open(window.location.href.replace(
|
|
98
|
+
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
90
99
|
}
|
|
91
100
|
};
|
|
92
101
|
|
|
@@ -96,21 +105,53 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
96
105
|
});
|
|
97
106
|
};
|
|
98
107
|
|
|
108
|
+
var renderTitle = (0, _react.useMemo)(function () {
|
|
109
|
+
if (!obj) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
var objType = obj.objType,
|
|
114
|
+
objName = obj.objName;
|
|
115
|
+
|
|
116
|
+
if (objType === _constant.EObjType.Kr) {
|
|
117
|
+
return "KR\uFF1A".concat(objName);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (objType === _constant.EObjType.O) {
|
|
121
|
+
return "O\uFF1A".concat(objName);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (objType === _constant.EObjType.Task) {
|
|
125
|
+
return "".concat((0, _getLocale.getLocale)("Mod_Tasks"), "\uFF1A").concat(objName);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (objType === _constant.EObjType.Project) {
|
|
129
|
+
return "".concat((0, _getLocale.getLocale)("Mod_Project"), "\uFF1A").concat(objName);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return "";
|
|
133
|
+
}, []);
|
|
134
|
+
var Classify = (0, _react.useMemo)(function () {
|
|
135
|
+
var _classNames;
|
|
136
|
+
|
|
137
|
+
if (!classify || Number(classify) == 0) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
142
|
+
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))
|
|
143
|
+
});
|
|
144
|
+
}, [classify]);
|
|
99
145
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
100
146
|
var dom;
|
|
101
147
|
|
|
102
148
|
if (obj && obj.objType === _constant.EObjType.Kr) {
|
|
103
|
-
dom = /*#__PURE__*/_react["default"].createElement("span", {
|
|
104
|
-
className: "".concat(prefix, "__obj-wrapper")
|
|
105
|
-
}, (0, _getLocale.getLocale)("Mod_Updated"), (0, _getLocale.getLocale)("Mod_Objective"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
149
|
+
dom = /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Mod_Updated"), (0, _getLocale.getLocale)("Mod_Objective"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
150
|
className: "".concat(prefix, "__object-name"),
|
|
107
151
|
onClick: handleClickOTitle
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
keyWord: searchKeyWord
|
|
112
|
-
}),
|
|
113
|
-
isPercent: true
|
|
152
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
153
|
+
str: relationParentName,
|
|
154
|
+
keyWord: searchKeyWord
|
|
114
155
|
})), (0, _getLocale.getLocale)("Mod_skeyrprogress"));
|
|
115
156
|
}
|
|
116
157
|
|
|
@@ -126,9 +167,14 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
126
167
|
dom = "".concat((0, _getLocale.getLocale)("Mod_Updated")).concat((0, _getLocale.getLocale)("Mod_ProjectProgress"));
|
|
127
168
|
}
|
|
128
169
|
|
|
129
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
170
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
130
171
|
className: "".concat(prefix, "__operate-desc")
|
|
131
|
-
}, dom)
|
|
172
|
+
}, dom), /*#__PURE__*/_react["default"].createElement("span", {
|
|
173
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
174
|
+
style: {
|
|
175
|
+
background: feedTypeColor
|
|
176
|
+
}
|
|
177
|
+
}, feedTypeText));
|
|
132
178
|
}, [searchKeyWord]);
|
|
133
179
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
134
180
|
className: prefix
|
|
@@ -141,29 +187,32 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
141
187
|
className: "".concat(prefix, "__content")
|
|
142
188
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
143
189
|
className: "".concat(prefix, "__title")
|
|
144
|
-
}, /*#__PURE__*/_react["default"].createElement(_title["default"],
|
|
145
|
-
content:
|
|
146
|
-
onClickTitle: handleClickTitle
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
150
|
-
condition: obj && obj.objType !== _constant.EObjType.Task && obj.objType !== _constant.EObjType.Project
|
|
151
|
-
}, /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
|
|
190
|
+
}, /*#__PURE__*/_react["default"].createElement(_title["default"], {
|
|
191
|
+
content: renderTitle,
|
|
192
|
+
onClickTitle: handleClickTitle,
|
|
193
|
+
suffixContent: Classify
|
|
194
|
+
}), /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
|
|
152
195
|
oStatus: 1,
|
|
153
196
|
riskLevel: riskLevel,
|
|
154
|
-
extraClass: "".concat(prefix, "__status-
|
|
155
|
-
})
|
|
197
|
+
extraClass: "".concat(prefix, "__status-left")
|
|
198
|
+
}), /*#__PURE__*/_react["default"].createElement(_percent["default"], {
|
|
156
199
|
percent: progress,
|
|
157
200
|
growPercent: progressGrow,
|
|
158
|
-
extraClass: "".concat(prefix, "
|
|
201
|
+
extraClass: "".concat(prefix, "__percent-left")
|
|
159
202
|
})), progressDescription && /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
203
|
className: "".concat(prefix, "__description")
|
|
161
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("
|
|
204
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
205
|
+
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
|
|
206
|
+
src: _dynamicLeftQuoto["default"]
|
|
207
|
+
})), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
162
208
|
className: "".concat(prefix, "__description-text")
|
|
163
209
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
164
210
|
str: progressDescription,
|
|
165
211
|
keyWord: searchKeyWord
|
|
166
|
-
}))
|
|
212
|
+
})), /*#__PURE__*/_react["default"].createElement("img", {
|
|
213
|
+
className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
|
|
214
|
+
src: _dynamicRightQuoto["default"]
|
|
215
|
+
})))));
|
|
167
216
|
};
|
|
168
217
|
|
|
169
218
|
var _default = DynamicProgress;
|