@titaui/pc 1.10.5 → 1.10.8
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 +3 -0
- 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/create-okr-modal/fields/okr-parent.js +1 -5
- package/lib/components/dynamic/components/obj-status/index.css +3 -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 +15 -57
- 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-node/e-empty.js +7 -4
- package/lib/components/okr-detail/okr-list/index.js +1 -5
- 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/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
|
@@ -23,10 +23,6 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
23
23
|
|
|
24
24
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
25
25
|
|
|
26
|
-
var _util = require("../../util");
|
|
27
|
-
|
|
28
|
-
var _dynamicMilestone = _interopRequireDefault(require("./img/dynamic-milestone.png"));
|
|
29
|
-
|
|
30
26
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
27
|
|
|
32
28
|
require("./index.css");
|
|
@@ -55,17 +51,12 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
55
51
|
name = data.name,
|
|
56
52
|
startDate = data.startDate,
|
|
57
53
|
endDate = data.endDate,
|
|
58
|
-
feedType = data.feedType,
|
|
59
54
|
obj = data.obj,
|
|
60
55
|
principalUser = data.principalUser;
|
|
61
56
|
|
|
62
57
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
63
58
|
searchKeyWord = _useContext.searchKeyWord;
|
|
64
59
|
|
|
65
|
-
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
66
|
-
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
67
|
-
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
68
|
-
|
|
69
60
|
var handleClickTaskTitle = function handleClickTaskTitle() {
|
|
70
61
|
window.Talent.app.vent.trigger("global-pull-screen", data.mileStoneId, "milestone", new window.Talent.Model(data), {
|
|
71
62
|
option: true,
|
|
@@ -81,7 +72,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
81
72
|
objId = obj.objId;
|
|
82
73
|
|
|
83
74
|
if (objType === _constant2.EObjType.Project) {
|
|
84
|
-
window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
75
|
+
window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
|
|
85
76
|
}
|
|
86
77
|
};
|
|
87
78
|
|
|
@@ -95,7 +86,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
95
86
|
}));
|
|
96
87
|
}, [name, searchKeyWord]);
|
|
97
88
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
98
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
89
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
99
90
|
className: "".concat(prefix, "__operate-desc")
|
|
100
91
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
92
|
className: "".concat(prefix, "__operate-desc-wrapper")
|
|
@@ -105,12 +96,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
105
96
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
106
97
|
text: obj.objName,
|
|
107
98
|
isPercent: true
|
|
108
|
-
})), (0, _getLocale.getLocale)("Mod_smilestone")))
|
|
109
|
-
className: "".concat(prefix, "-desc-operate-type"),
|
|
110
|
-
style: {
|
|
111
|
-
background: feedTypeColor
|
|
112
|
-
}
|
|
113
|
-
}, feedTypeText));
|
|
99
|
+
})), (0, _getLocale.getLocale)("Mod_smilestone")));
|
|
114
100
|
}, []);
|
|
115
101
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
116
102
|
className: prefix
|
|
@@ -121,25 +107,26 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
|
|
|
121
107
|
user: principalUser
|
|
122
108
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
109
|
className: "".concat(prefix, "__content")
|
|
124
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
125
|
-
className: "".concat(prefix, "__content-img"),
|
|
126
|
-
src: _dynamicMilestone["default"]
|
|
127
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
128
111
|
className: "".concat(prefix, "__content-info")
|
|
129
112
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
130
113
|
className: "".concat(prefix, "__content-title")
|
|
114
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
115
|
+
className: "".concat(prefix, "__content-title-type")
|
|
116
|
+
}, (0, _getLocale.getLocale)("Pro_page_Plan_Milestone")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
117
|
+
className: "".concat(prefix, "__content-title-text")
|
|
131
118
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
132
119
|
isPercent: true,
|
|
133
120
|
text: renderName,
|
|
134
121
|
minusWidth: 30
|
|
135
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
122
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
136
123
|
className: "".concat(prefix, "__content-status-and-time-range")
|
|
137
124
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
138
|
-
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
|
|
125
|
+
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
|
|
139
126
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
140
127
|
className: "".concat(prefix, "__content-status-text")
|
|
141
128
|
}, _constant.MileStoneStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
142
|
-
className: (0, _classnames["default"])("tu-icon-deferred")
|
|
129
|
+
className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__content-status-icon"))
|
|
143
130
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
131
|
className: "".concat(prefix, "__content-time-range")
|
|
145
132
|
}, startDate, "-", endDate)))));
|
|
@@ -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,24 @@
|
|
|
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-
|
|
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;
|
|
27
|
+
.titaui-dynamic-progress-item__status {
|
|
28
|
+
margin-top: 12px;
|
|
62
29
|
}
|
|
63
30
|
|
|
64
31
|
.titaui-dynamic-progress-item__object-name {
|
|
65
|
-
font-size:
|
|
32
|
+
font-size: 16px;
|
|
66
33
|
color: #2879ff;
|
|
67
|
-
line-height:
|
|
34
|
+
line-height: 24px;
|
|
68
35
|
margin: 0 4px;
|
|
69
36
|
overflow: hidden;
|
|
70
37
|
}
|
|
@@ -74,24 +41,15 @@
|
|
|
74
41
|
color: #5c8eff;
|
|
75
42
|
}
|
|
76
43
|
|
|
44
|
+
.titaui-dynamic-progress-item__obj-wrapper {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
|
|
77
48
|
.titaui-dynamic-progress-item__operate-desc {
|
|
78
|
-
font-size:
|
|
49
|
+
font-size: 16px;
|
|
79
50
|
font-weight: 400;
|
|
80
51
|
color: #89919f;
|
|
81
|
-
line-height:
|
|
82
|
-
margin:
|
|
52
|
+
line-height: 24px;
|
|
53
|
+
margin-left: 4px;
|
|
83
54
|
overflow: hidden;
|
|
84
55
|
}
|
|
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
|
-
}
|