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