@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
|
@@ -8,27 +8,30 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.titaui-dynamic-task-item__content {
|
|
11
|
-
height:
|
|
12
|
-
background: rgba(40, 121, 255, 0.06);
|
|
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:
|
|
18
|
+
margin-left: 69px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-task-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
.titaui-dynamic-task-item__content-info {
|
|
22
28
|
flex: 1;
|
|
23
29
|
display: flex;
|
|
24
30
|
flex-direction: column;
|
|
31
|
+
margin-left: 16px;
|
|
25
32
|
overflow: hidden;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
|
-
.titaui-dynamic-task-item__content-status-icon {
|
|
29
|
-
font-size: 14px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
35
|
.titaui-dynamic-task-item__content-status-and-time-range {
|
|
33
36
|
display: flex;
|
|
34
37
|
align-items: center;
|
|
@@ -56,30 +59,10 @@
|
|
|
56
59
|
font-weight: 600;
|
|
57
60
|
color: #3f4755;
|
|
58
61
|
line-height: 24px;
|
|
59
|
-
display: flex;
|
|
60
|
-
margin-bottom: 4px;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.titaui-dynamic-task-item__content-title-type {
|
|
65
|
-
border-radius: 18px;
|
|
66
|
-
background: rgba(92, 142, 255, 0.5);
|
|
67
|
-
color: #ffffff;
|
|
68
|
-
margin-right: 8px;
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
line-height: 20px;
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
padding: 0 6px;
|
|
75
|
-
font-weight: 400;
|
|
76
|
-
height: 20px;
|
|
77
62
|
}
|
|
78
63
|
|
|
79
64
|
.titaui-dynamic-task-item__content-title-text {
|
|
80
|
-
flex: 1;
|
|
81
65
|
cursor: pointer;
|
|
82
|
-
overflow: hidden;
|
|
83
66
|
}
|
|
84
67
|
|
|
85
68
|
.titaui-dynamic-task-item__content-title-text:hover {
|
|
@@ -93,9 +76,9 @@
|
|
|
93
76
|
}
|
|
94
77
|
|
|
95
78
|
.titaui-dynamic-task-item__object-name {
|
|
96
|
-
font-size:
|
|
79
|
+
font-size: 14px;
|
|
97
80
|
color: #2879ff;
|
|
98
|
-
line-height:
|
|
81
|
+
line-height: 22px;
|
|
99
82
|
margin: 0 4px;
|
|
100
83
|
overflow: hidden;
|
|
101
84
|
}
|
|
@@ -106,14 +89,27 @@
|
|
|
106
89
|
}
|
|
107
90
|
|
|
108
91
|
.titaui-dynamic-task-item__operate-desc {
|
|
109
|
-
font-size:
|
|
92
|
+
font-size: 14px;
|
|
110
93
|
font-weight: 400;
|
|
111
94
|
color: #89919f;
|
|
112
|
-
line-height:
|
|
113
|
-
margin
|
|
95
|
+
line-height: 22px;
|
|
96
|
+
margin: 0 8px 0 4px;
|
|
114
97
|
overflow: hidden;
|
|
115
98
|
}
|
|
116
99
|
|
|
117
100
|
.titaui-dynamic-task-item__operate-desc-wrapper {
|
|
118
101
|
display: flex;
|
|
119
102
|
}
|
|
103
|
+
|
|
104
|
+
.titaui-dynamic-task-item-desc-operate-type {
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
padding: 0 6px;
|
|
109
|
+
height: 18px;
|
|
110
|
+
min-width: 40px;
|
|
111
|
+
border-radius: 10px 10px 10px 2px;
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
color: #ffffff;
|
|
114
|
+
line-height: 18px;
|
|
115
|
+
}
|
|
@@ -15,6 +15,8 @@ var _header = _interopRequireDefault(require("../components/header"));
|
|
|
15
15
|
|
|
16
16
|
var _constant = require("./constant");
|
|
17
17
|
|
|
18
|
+
var _taskIcon = _interopRequireDefault(require("./img/task-icon.png"));
|
|
19
|
+
|
|
18
20
|
var _constant2 = require("../../constant");
|
|
19
21
|
|
|
20
22
|
var _context = require("../../context");
|
|
@@ -23,6 +25,8 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
23
25
|
|
|
24
26
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
25
27
|
|
|
28
|
+
var _util = require("../../util");
|
|
29
|
+
|
|
26
30
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
27
31
|
|
|
28
32
|
var _getLocale = require("../../../../utils/getLocale");
|
|
@@ -55,6 +59,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
55
59
|
taskName = data.taskName,
|
|
56
60
|
startDate = data.startDate,
|
|
57
61
|
deadline = data.deadline,
|
|
62
|
+
feedType = data.feedType,
|
|
58
63
|
obj = data.obj,
|
|
59
64
|
principalUser = data.principalUser,
|
|
60
65
|
workId = data.workId;
|
|
@@ -62,6 +67,10 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
62
67
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
63
68
|
searchKeyWord = _useContext.searchKeyWord;
|
|
64
69
|
|
|
70
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
71
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
72
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
73
|
+
|
|
65
74
|
var handleClickTaskTitle = function handleClickTaskTitle() {
|
|
66
75
|
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
67
76
|
};
|
|
@@ -123,9 +132,14 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
123
132
|
})), (0, _getLocale.getLocale)("Mod_stask"));
|
|
124
133
|
}
|
|
125
134
|
|
|
126
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
135
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
127
136
|
className: "".concat(prefix, "__operate-desc")
|
|
128
|
-
}, dom)
|
|
137
|
+
}, dom), /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
|
+
className: "".concat(prefix, "-desc-operate-type"),
|
|
139
|
+
style: {
|
|
140
|
+
background: feedTypeColor
|
|
141
|
+
}
|
|
142
|
+
}, feedTypeText));
|
|
129
143
|
}, []);
|
|
130
144
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
145
|
className: prefix
|
|
@@ -136,26 +150,26 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
136
150
|
user: principalUser
|
|
137
151
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
138
152
|
className: "".concat(prefix, "__content")
|
|
139
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
153
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
154
|
+
className: "".concat(prefix, "__content-img"),
|
|
155
|
+
src: _taskIcon["default"],
|
|
156
|
+
alt: ""
|
|
157
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
140
158
|
className: "".concat(prefix, "__content-info")
|
|
141
159
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
160
|
className: "".concat(prefix, "__content-title")
|
|
143
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
|
-
className: "".concat(prefix, "__content-title-type")
|
|
145
|
-
}, (0, _getLocale.getLocale)("Feed_Tab_Title_Task")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
|
-
className: "".concat(prefix, "__content-title-text")
|
|
147
161
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
148
162
|
isPercent: true,
|
|
149
163
|
text: renderName,
|
|
150
164
|
minusWidth: 30
|
|
151
|
-
}))
|
|
165
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
166
|
className: "".concat(prefix, "__content-status-and-time-range")
|
|
153
167
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
154
|
-
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status]
|
|
168
|
+
className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
|
|
155
169
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
156
170
|
className: "".concat(prefix, "__content-status-text")
|
|
157
171
|
}, (0, _constant.getEStatusClass2StatusTypeText)()[status]), /*#__PURE__*/_react["default"].createElement("i", {
|
|
158
|
-
className: (0, _classnames["default"])("tu-icon-deferred"
|
|
172
|
+
className: (0, _classnames["default"])("tu-icon-deferred")
|
|
159
173
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
160
174
|
className: "".concat(prefix, "__content-time-range")
|
|
161
175
|
}, startDate, "-", deadline)))));
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
.titaui-dynamic-item__content {
|
|
11
11
|
position: relative;
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
margin-right:
|
|
13
|
+
margin-right: 20px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.titaui-dynamic-item__content-show-more {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.titaui-dynamic-item__footer {
|
|
39
|
-
margin: 12px
|
|
39
|
+
margin: 12px 20px 0 68px;
|
|
40
40
|
height: 54px;
|
|
41
41
|
border-radius: 0px 0px 6px 6px;
|
|
42
42
|
display: flex;
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
align-items: center;
|
|
45
45
|
color: #89919f;
|
|
46
46
|
position: relative;
|
|
47
|
-
border-bottom: 1px solid #F0F4FA;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
.titaui-dynamic-item__footer-left {
|
|
@@ -116,7 +115,8 @@
|
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
.titaui-dynamic-item__communication {
|
|
119
|
-
padding:
|
|
118
|
+
padding: 12px 20px 20px 68px;
|
|
119
|
+
box-shadow: inset 0px 12px 12px -12px rgba(127, 145, 180, 0.14);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.titaui-dynamic-item__upvote-btn {
|
|
@@ -274,38 +274,11 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
274
274
|
return null;
|
|
275
275
|
}
|
|
276
276
|
}, [data]);
|
|
277
|
-
|
|
278
|
-
var renderUpvoteCount = function renderUpvoteCount(type, count) {
|
|
279
|
-
if (count === 0) {
|
|
280
|
-
return "";
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
return count || type;
|
|
284
|
-
}; // const handlePayReward = () => {
|
|
285
|
-
// const data = {
|
|
286
|
-
// multi: false,
|
|
287
|
-
// toUserInfo: publishUser,
|
|
288
|
-
// objId: feedId,
|
|
289
|
-
// objType: feedType,
|
|
290
|
-
// };
|
|
291
|
-
// if (window.util) {
|
|
292
|
-
// window.util.rewardGetFile((myReward) => {
|
|
293
|
-
// myReward.renderPayReward(data);
|
|
294
|
-
// });
|
|
295
|
-
// }
|
|
296
|
-
// };
|
|
297
|
-
|
|
298
|
-
|
|
299
277
|
(0, _react.useEffect)(function () {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}, 0);
|
|
305
|
-
}, [data]);
|
|
306
|
-
(0, _react.useEffect)(function () {
|
|
307
|
-
setShowComment(feedComments.total > 0);
|
|
308
|
-
}, [feedComments]);
|
|
278
|
+
if (dynamicContentRef.current && dynamicContentRef.current.offsetHeight > 288) {
|
|
279
|
+
setContentIsOverflow(true);
|
|
280
|
+
}
|
|
281
|
+
}, []);
|
|
309
282
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
310
283
|
className: prefix
|
|
311
284
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -322,7 +295,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
322
295
|
}, (0, _getLocale.getLocale)("Tasks_Tab_MyS_Butt_Seemoral"), /*#__PURE__*/_react["default"].createElement("i", {
|
|
323
296
|
className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"))
|
|
324
297
|
})))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
|
-
className:
|
|
298
|
+
className: "".concat(prefix, "__footer")
|
|
326
299
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
327
300
|
className: "".concat(prefix, "__footer-left")
|
|
328
301
|
}, praiseData.map(function (item, index) {
|
|
@@ -373,8 +346,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
373
346
|
marginLeft: 30
|
|
374
347
|
},
|
|
375
348
|
buttonType: "tu-icon-tyle-column",
|
|
376
|
-
customUpvoteBtnCls: "".concat(prefix, "__upvote-btn")
|
|
377
|
-
renderCount: renderUpvoteCount
|
|
349
|
+
customUpvoteBtnCls: "".concat(prefix, "__upvote-btn")
|
|
378
350
|
}), /*#__PURE__*/_react["default"].createElement(_upvoteListModal["default"], {
|
|
379
351
|
feedId: feedId,
|
|
380
352
|
visible: upvoteModalVisible,
|
|
@@ -384,7 +356,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
384
356
|
}))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
385
357
|
condition: showComment
|
|
386
358
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
387
|
-
className:
|
|
359
|
+
className: "".concat(prefix, "__communication")
|
|
388
360
|
}, /*#__PURE__*/_react["default"].createElement(_communication["default"], {
|
|
389
361
|
feedId: feedId,
|
|
390
362
|
commentCount: 3,
|
|
@@ -393,9 +365,7 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
393
365
|
autoFocus: feedComments.total === 0,
|
|
394
366
|
usePropsComment: usePropsComment,
|
|
395
367
|
communication: feedComments.comments,
|
|
396
|
-
totalCommunicationNum: feedComments.total
|
|
397
|
-
showUser: true,
|
|
398
|
-
showDefaultInput: true
|
|
368
|
+
totalCommunicationNum: feedComments.total
|
|
399
369
|
}))));
|
|
400
370
|
};
|
|
401
371
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getProgressState = exports.
|
|
6
|
+
exports.getProgressState = exports.getFeedTypeAndTypeColor = exports.formatMenu = exports.formatCycleData = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
@@ -20,13 +20,90 @@ var getProgressState = function getProgressState(oStatus, riskLevel) {
|
|
|
20
20
|
|
|
21
21
|
exports.getProgressState = getProgressState;
|
|
22
22
|
|
|
23
|
+
var getFeedTypeAndTypeColor = function getFeedTypeAndTypeColor(feedType) {
|
|
24
|
+
var feedTypeText = "";
|
|
25
|
+
var feedTypeColor = "";
|
|
26
|
+
|
|
27
|
+
if (feedType === _constant.EFeedType.Assessment) {
|
|
28
|
+
feedTypeText = (0, _getLocale.getLocale)("Mod_Performance");
|
|
29
|
+
feedTypeColor = "linear-gradient(90deg, #5AD9D8 0%, #94EDEC 100%)";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (feedType === _constant.EFeedType.Report) {
|
|
33
|
+
feedTypeText = (0, _getLocale.getLocale)("Menu_Title_Reports");
|
|
34
|
+
feedTypeColor = "linear-gradient(270deg, #FF9EC3 0%, #FF4D91 100%)";
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (feedType === _constant.EFeedType.Reply) {
|
|
38
|
+
feedTypeText = (0, _getLocale.getLocale)("OKR_MyO_KRP_Review");
|
|
39
|
+
feedTypeColor = "linear-gradient(270deg, #FFA5A5 0%, #F05E5E 100%)";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (feedType === _constant.EFeedType.Align) {
|
|
43
|
+
feedTypeText = "对齐";
|
|
44
|
+
feedTypeColor = "linear-gradient(270deg, #93EED2 0%, rgba(90, 216, 166, 0.85) 100%)";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (feedType === _constant.EFeedType.Progress) {
|
|
48
|
+
feedTypeText = (0, _getLocale.getLocale)("Feed_Tab_Title_Progress");
|
|
49
|
+
feedTypeColor = "linear-gradient(90deg, #FFAB67 0%, #FFD5A0 100%)";
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (feedType === _constant.EFeedType.Relative) {
|
|
53
|
+
feedTypeText = (0, _getLocale.getLocale)("Mod_Associate");
|
|
54
|
+
feedTypeColor = "linear-gradient(270deg, #FFE18B 0%, #F6BD16 100%)";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (feedType === _constant.EFeedType.O) {
|
|
58
|
+
feedTypeText = "OKRs";
|
|
59
|
+
feedTypeColor = "linear-gradient(90deg, #2879FF 0%, #9FBFFF 100%)";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (feedType === _constant.EFeedType.Kr) {
|
|
63
|
+
feedTypeText = "KR";
|
|
64
|
+
feedTypeColor = "linear-gradient(90deg, #2879FF 0%, #9FBFFF 100%)";
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (feedType === _constant.EFeedType.Project) {
|
|
68
|
+
feedTypeText = (0, _getLocale.getLocale)("Menu_Title_Projects");
|
|
69
|
+
feedTypeColor = "linear-gradient(90deg, #624DFF 0%, #CDC7FF 100%)";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (feedType === _constant.EFeedType.MileStone) {
|
|
73
|
+
feedTypeText = (0, _getLocale.getLocale)("Pro_page_Plan_Milestone");
|
|
74
|
+
feedTypeColor = "linear-gradient(90deg, #624DFF 0%, #CDC7FF 100%)";
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (feedType === _constant.EFeedType.Task) {
|
|
78
|
+
feedTypeText = (0, _getLocale.getLocale)("Mod_Tasks");
|
|
79
|
+
feedTypeColor = "linear-gradient(90deg, #0080FF 0%, #8FC7FF 100%)";
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (feedType === _constant.EFeedType.PlanCommunication) {
|
|
83
|
+
feedTypeText = "计划表";
|
|
84
|
+
feedTypeColor = "linear-gradient(90deg, #0080FF 0%, #8FC7FF 100%)";
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (feedType === _constant.EFeedType.OKRsCommunication) {
|
|
88
|
+
feedTypeText = "OKRs";
|
|
89
|
+
feedTypeColor = "linear-gradient(90deg, #2879FF 0%, #9FBFFF 100%)";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
feedTypeText: feedTypeText,
|
|
94
|
+
feedTypeColor: feedTypeColor
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.getFeedTypeAndTypeColor = getFeedTypeAndTypeColor;
|
|
99
|
+
|
|
23
100
|
var formatCycleData = function formatCycleData(periodParams, isGetCycleRange) {
|
|
24
101
|
if (!periodParams) return "";
|
|
25
102
|
var quarter = ["", (0, _getLocale.getLocale)("OKR_MyO_Pop_1stQuarter"), (0, _getLocale.getLocale)("OKR_MyO_Pop_2ndQuarter"), (0, _getLocale.getLocale)("OKR_MyO_Pop_3rdQuarter"), (0, _getLocale.getLocale)("OKR_MyO_Pop_4thQuarter")];
|
|
26
103
|
var cycleDate = "";
|
|
27
104
|
var startDate = periodParams.startDate;
|
|
28
105
|
var endDate = periodParams.endDate;
|
|
29
|
-
var annualNum =
|
|
106
|
+
var annualNum = periodParams.annualNum == "-1" ? (0, _getLocale.getLocale)("OKR_MyO_Butt_Allyears") : periodParams.annualNum;
|
|
30
107
|
|
|
31
108
|
switch (periodParams.cycleType.toString()) {
|
|
32
109
|
case "-1":
|
|
@@ -50,7 +127,7 @@ var formatCycleData = function formatCycleData(periodParams, isGetCycleRange) {
|
|
|
50
127
|
cycleDate = (0, _getLocale.getLocale)("Mod_Customization");
|
|
51
128
|
}
|
|
52
129
|
|
|
53
|
-
if (new Date(periodParams.startDate).getFullYear()
|
|
130
|
+
if (new Date(periodParams.startDate).getFullYear() == new Date().getFullYear()) {
|
|
54
131
|
startDate = periodParams.startDate.slice(5);
|
|
55
132
|
endDate = periodParams.endDate.slice(5);
|
|
56
133
|
}
|
|
@@ -72,41 +149,4 @@ var formatMenu = function formatMenu(data) {
|
|
|
72
149
|
return data;
|
|
73
150
|
};
|
|
74
151
|
|
|
75
|
-
exports.formatMenu = formatMenu;
|
|
76
|
-
|
|
77
|
-
var getProcessColor = function getProcessColor(status, level, type) {
|
|
78
|
-
var processColor = {
|
|
79
|
-
1: {
|
|
80
|
-
riskLevel: 1,
|
|
81
|
-
linearStartColor: "#4E90FF",
|
|
82
|
-
linearEndColor: "#2879ff",
|
|
83
|
-
backgroundColor: "rgba(40,121,255,0.11)"
|
|
84
|
-
},
|
|
85
|
-
3: {
|
|
86
|
-
riskLevel: 3,
|
|
87
|
-
linearStartColor: "#FFA5A5",
|
|
88
|
-
linearEndColor: "#F05E5E",
|
|
89
|
-
backgroundColor: "rgba(222,89,89,0.1)"
|
|
90
|
-
},
|
|
91
|
-
2: {
|
|
92
|
-
riskLevel: 2,
|
|
93
|
-
linearStartColor: "#FDCD41",
|
|
94
|
-
linearEndColor: "#FFE18B",
|
|
95
|
-
backgroundColor: "#FEF5DC"
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
if (status === 2) {
|
|
100
|
-
var tempColor = processColor[2];
|
|
101
|
-
return tempColor[type];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
var color = processColor["".concat(level)];
|
|
105
|
-
if (level === 0) color = processColor["1"];
|
|
106
|
-
if (!color) return {};
|
|
107
|
-
return color[type];
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
exports.getProcessColor = getProcessColor;
|
|
111
|
-
var _default = {};
|
|
112
|
-
exports["default"] = _default;
|
|
152
|
+
exports.formatMenu = formatMenu;
|
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.titaui-new-file-list-single-file__file-preview {
|
|
7
|
-
width:
|
|
8
|
-
height:
|
|
9
|
-
border-radius:
|
|
7
|
+
width: 180px;
|
|
8
|
+
height: 180px;
|
|
9
|
+
border-radius: 8px;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
margin-right: 10px;
|
|
14
|
-
background: #F0F2F5;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
.titaui-new-file-list-single-file__file-preview-img {
|
|
18
|
-
max-width:
|
|
19
|
-
max-height:
|
|
17
|
+
max-width: 180px;
|
|
18
|
+
max-height: 180px;
|
|
20
19
|
border-radius: 8px;
|
|
21
20
|
}
|
|
22
21
|
|
|
@@ -35,8 +34,8 @@
|
|
|
35
34
|
position: absolute;
|
|
36
35
|
top: 0;
|
|
37
36
|
left: 0;
|
|
38
|
-
width:
|
|
39
|
-
height:
|
|
37
|
+
width: 180px;
|
|
38
|
+
height: 180px;
|
|
40
39
|
background: rgba(20, 28, 40, 0.3);
|
|
41
40
|
border-radius: 8px;
|
|
42
41
|
display: flex;
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
.titaui-new-file-list-single-file__operate-item:first-of-type {
|
|
58
|
-
margin-right:
|
|
57
|
+
margin-right: 32px;
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
.titaui-new-file-list-single-file__operate-item-icon {
|
|
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
var _default = /*#__PURE__*/_react["default"].createContext({
|
|
13
|
-
popContainer: document.body
|
|
14
|
-
});
|
|
12
|
+
var _default = /*#__PURE__*/_react["default"].createContext({});
|
|
15
13
|
|
|
16
14
|
exports["default"] = _default;
|
|
@@ -15,8 +15,6 @@ var _MblogContent = _interopRequireDefault(require("./components/MblogContent"))
|
|
|
15
15
|
|
|
16
16
|
var _MblogAction = _interopRequireDefault(require("./components/MblogAction"));
|
|
17
17
|
|
|
18
|
-
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
19
|
-
|
|
20
18
|
var _bsGlobal = require("../../utils/bs-global");
|
|
21
19
|
|
|
22
20
|
var _index = require("./common/index");
|
|
@@ -27,8 +25,6 @@ var _platform = require("../../utils/platform");
|
|
|
27
25
|
|
|
28
26
|
var _getLocale = require("../../utils/getLocale");
|
|
29
27
|
|
|
30
|
-
require("./index.css");
|
|
31
|
-
|
|
32
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
29
|
|
|
34
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -55,8 +51,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
55
51
|
|
|
56
52
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
57
53
|
|
|
58
|
-
var prefix = 'titaui-mblog';
|
|
59
|
-
|
|
60
54
|
var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
61
55
|
_inherits(MBlog, _PureComponent);
|
|
62
56
|
|
|
@@ -241,11 +235,6 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
241
235
|
// 取消
|
|
242
236
|
_this.props.onMblogSubmit(submitType);
|
|
243
237
|
}
|
|
244
|
-
|
|
245
|
-
_this.setState({
|
|
246
|
-
textareaValue: '',
|
|
247
|
-
uploadSuccessFilesPath: []
|
|
248
|
-
});
|
|
249
238
|
};
|
|
250
239
|
|
|
251
240
|
_this._dropHandler = function (event) {
|
|
@@ -409,8 +398,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
409
398
|
_this$props3$submitTe = _this$props3.submitText,
|
|
410
399
|
submitText = _this$props3$submitTe === void 0 ? (0, _getLocale.getLocale)("Mod_Publish") : _this$props3$submitTe,
|
|
411
400
|
setTextareaRef = _this$props3.setTextareaRef,
|
|
412
|
-
disableRangeSelect = _this$props3.disableRangeSelect
|
|
413
|
-
showUser = _this$props3.showUser;
|
|
401
|
+
disableRangeSelect = _this$props3.disableRangeSelect;
|
|
414
402
|
var _this$state2 = this.state,
|
|
415
403
|
localStroageKey = _this$state2.localStroageKey,
|
|
416
404
|
visibility = _this$state2.visibility,
|
|
@@ -423,21 +411,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
423
411
|
isAtAll = _this$state2.isAtAll;
|
|
424
412
|
var fSize = (0, _bsGlobal.getUploadMaxSize)();
|
|
425
413
|
var fTip = attachmentTipText || (0, _getLocale.getLocale)("OKR_MyO_KRP_Draganddropu").replace("50MB", "".concat(fSize, "MB"));
|
|
426
|
-
|
|
427
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
428
|
-
className: prefix
|
|
429
|
-
}, showUser && /*#__PURE__*/_react["default"].createElement("div", {
|
|
430
|
-
className: "".concat(prefix, "__avatar")
|
|
431
|
-
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
432
|
-
size: {
|
|
433
|
-
width: 28,
|
|
434
|
-
textNum: 1,
|
|
435
|
-
fontSize: 14
|
|
436
|
-
},
|
|
437
|
-
name: user.Name,
|
|
438
|
-
color: user.UserAvatar.Color,
|
|
439
|
-
src: user.UserAvatar.Medium
|
|
440
|
-
})), /*#__PURE__*/_react["default"].createElement(_style.MBlogBox, {
|
|
414
|
+
return /*#__PURE__*/_react["default"].createElement(_style.MBlogBox, {
|
|
441
415
|
className: className,
|
|
442
416
|
ref: "mblogbox",
|
|
443
417
|
onDrop: this._dropHandler,
|
|
@@ -516,7 +490,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
516
490
|
id: this.previewid
|
|
517
491
|
}), !(0, _platform.isPlatform)("wx") && isShowDragMask && /*#__PURE__*/_react["default"].createElement(_style.DragEffect, {
|
|
518
492
|
className: "tu-icon-inbox-upload"
|
|
519
|
-
}))
|
|
493
|
+
}));
|
|
520
494
|
}
|
|
521
495
|
}]);
|
|
522
496
|
|
|
@@ -557,6 +531,5 @@ MBlog.defaultProps = {
|
|
|
557
531
|
// 1公开,2私密 3部门
|
|
558
532
|
isShowRangeDropDown: true,
|
|
559
533
|
isShowBtnCancel: true,
|
|
560
|
-
submitStatus: 0
|
|
561
|
-
showUser: false
|
|
534
|
+
submitStatus: 0
|
|
562
535
|
};
|
|
@@ -13,12 +13,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
15
15
|
|
|
16
|
-
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n
|
|
16
|
+
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n .uploadFile__preview__list {\n padding-bottom: 10px;\n background: #ffffff;\n display: flex;\n flex-wrap: wrap;\n max-height: 300px;\n overflow-y: auto;\n\n .preview__content {\n margin-top: 10px;\n margin-right: 10px;\n border-radius: 8px;\n }\n }\n"]))); // MblogContent
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
exports.MBlogBox = MBlogBox;
|
|
20
20
|
|
|
21
|
-
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius:
|
|
21
|
+
var DivMblogContent = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 8px 10px 6px;\n border: 1px solid #DFE3EA;\n border-radius: 8px;\n background-color: #fff;\n position: relative;\n transition: all .2s ease-in-out;\n height: 120px;\n box-sizing: border-box;\n\n &.input_default-active {\n box-shadow: inset 0px 0px 4px 0px rgba(40, 121, 255, 0.3);\n border-color: #2879ff;\n }\n"])));
|
|
22
22
|
|
|
23
23
|
exports.DivMblogContent = DivMblogContent;
|
|
24
24
|
|
|
@@ -47,7 +47,7 @@ var Tips = _styledComponents["default"].div(_templateObject7 || (_templateObject
|
|
|
47
47
|
|
|
48
48
|
exports.Tips = Tips;
|
|
49
49
|
|
|
50
|
-
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding:
|
|
50
|
+
var MblogActionWrapper = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 30px;\n padding: 28px 0 2px 0;\n font-size: 13px;\n line-height: 20px;\n color: #565E66;\n background-color: #ffffff;\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))); // 左侧按钮
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
exports.MblogActionWrapper = MblogActionWrapper;
|
|
@@ -66,7 +66,7 @@ var IconSpan = _styledComponents["default"].span(_templateObject11 || (_template
|
|
|
66
66
|
|
|
67
67
|
exports.IconSpan = IconSpan;
|
|
68
68
|
|
|
69
|
-
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width:
|
|
69
|
+
var RightBtnGroupWrapper = _styledComponents["default"].div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n height: 100%;\n display: flex;\n align-items: center;\n\n button {\n min-width: 90px;\n height: 32px;\n box-sizing: border-box;\n border-radius: 18px;\n border: none;\n }\n"])));
|
|
70
70
|
|
|
71
71
|
exports.RightBtnGroupWrapper = RightBtnGroupWrapper;
|
|
72
72
|
|