@titaui/pc 1.7.29 → 1.7.33
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/cascader/index.css +1 -1
- package/lib/components/create-okr-modal/createCycle.js +1 -1
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +19 -4
- package/lib/components/nav-top/components/user-message/constant.js +5 -2
- package/lib/components/weekly-report/board.js +10 -1
- package/lib/components/weekly-report/card.js +6 -3
- package/lib/components/weekly-report/index.css +39 -14
- package/lib/components/weekly-report/index.js +3 -3
- package/lib/index.js +2 -2
- package/lib/pages/dynamic/index.js +9 -3
- package/lib/pages/new-okr-list/index.js +2 -2
- package/lib/pages/okr-map/export-modules/okr-map/index.js +4 -483
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +499 -0
- package/lib/pages/okr-map/export-modules/share-okr-page/index.js +5 -156
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +171 -0
- package/lib/utils/error-level.js +5 -3
- package/package.json +1 -1
- package/src/components/create-okr-modal/createCycle.tsx +1 -1
- package/src/components/nav-top/components/user-message/components/inform/inform-item.tsx +17 -1
- package/src/components/nav-top/components/user-message/constant.ts +3 -0
- package/src/components/weekly-report/board.tsx +5 -0
- package/src/components/weekly-report/card.tsx +12 -12
- package/src/components/weekly-report/index.scss +37 -14
- package/src/components/weekly-report/index.tsx +3 -3
- package/src/index.js +1 -1
- package/src/pages/dynamic/index.tsx +14 -10
- package/src/pages/new-okr-list/index.tsx +1 -1
- package/src/pages/okr-map/export-modules/okr-map/index.tsx +11 -0
- package/src/pages/okr-map/export-modules/okr-map/{index.js → okr-map.js} +0 -0
- package/src/pages/okr-map/export-modules/share-okr-page/index.tsx +11 -0
- package/src/pages/okr-map/export-modules/share-okr-page/{index.js → share-okr-map.js} +0 -0
- package/src/utils/error-level.ts +3 -2
- package/yarn-error.log +0 -15894
|
@@ -72,7 +72,7 @@ function CreateCycle(_ref) {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
var onPeriodSelectorChangeHandler = function onPeriodSelectorChangeHandler(c) {
|
|
75
|
-
setSelfCycle(_objectSpread(_objectSpread(_objectSpread({}, selfCycle), c), _periodSelector["default"].getDateRangeByCycle(c)));
|
|
75
|
+
setSelfCycle(_objectSpread(_objectSpread(_objectSpread({}, selfCycle), c), _periodSelector["default"].getDateRangeByCycle(c, cycleSetting === null || cycleSetting === void 0 ? void 0 : cycleSetting.yearStartMonth)));
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
var onStartDateConfirmHandler = function onStartDateConfirmHandler(d) {
|
|
@@ -88,10 +88,13 @@ var Inform = function Inform(props) {
|
|
|
88
88
|
if (!isMessageMerging) {
|
|
89
89
|
if (messageType === _constant.informType.details) {
|
|
90
90
|
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/taskinfo?Id=").concat(item.objId), '_blank');
|
|
91
|
+
return;
|
|
91
92
|
} else if (item.objId && objType !== 8) {
|
|
92
93
|
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#work?work_id=").concat(item.objId));
|
|
94
|
+
return;
|
|
93
95
|
} else if (messageType === _constant.informType.todayJob) {
|
|
94
96
|
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#plan?tag_id=0&tag_type=0&filter=1"));
|
|
97
|
+
return;
|
|
95
98
|
} else if (messageType === _constant.informType.daily) {
|
|
96
99
|
var str = item.content.slice(0, 18);
|
|
97
100
|
var Year = str.slice(4, 8);
|
|
@@ -121,22 +124,34 @@ var Inform = function Inform(props) {
|
|
|
121
124
|
|
|
122
125
|
if (str.indexOf('日报') !== -1) {
|
|
123
126
|
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#/daily?to_user_id=").concat(_constant.userId, "&group_id=9&tag_type=1&date=").concat(Year, "/").concat(Month, "/").concat(Day, "&tag_id=").concat(parseInt(Month) + 1, "&dailyType=1"));
|
|
127
|
+
return;
|
|
124
128
|
} else if (str.indexOf('月报') !== -1) {
|
|
125
129
|
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#/daily?to_user_id=").concat(_constant.userId, "&group_id=9&tag_type=1&date=").concat(Year, "/").concat(Month, "/01&tag_id=").concat(parseInt(Month) + 1, "&dailyType=3"));
|
|
130
|
+
return;
|
|
126
131
|
} else {
|
|
127
132
|
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#/daily?to_user_id=").concat(_constant.userId, "&group_id=9&tag_type=1&date=").concat(Year, "/").concat(Month, "/").concat(parseInt(Week) * 7, "&tag_id=").concat(parseInt(Month) + 1, "&dailyType=2"));
|
|
133
|
+
return;
|
|
128
134
|
}
|
|
129
135
|
} else if (item.objUrl) {
|
|
130
136
|
window.open(item.objUrl);
|
|
137
|
+
return;
|
|
138
|
+
} else if (item.objType === _constant.informType.Okr) {
|
|
139
|
+
var url = item.content.match(/(http[s]?:\/\/([\w-]+.)+([:\d+])?(\/[\w-\.\/\?%&=]*))/g);
|
|
140
|
+
window.open(url, '_blank');
|
|
141
|
+
return;
|
|
142
|
+
} else if (item.objType === _constant.informType.okrRemind) {
|
|
143
|
+
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#/work?iTalentNavCode=tita-work&work_id=").concat(objId));
|
|
144
|
+
return;
|
|
131
145
|
} else {
|
|
132
146
|
var reg = /href='.*?(?=')/g;
|
|
133
|
-
var
|
|
147
|
+
var _url = '';
|
|
134
148
|
item.content.replace(reg, function ($0) {
|
|
135
|
-
|
|
149
|
+
_url = $0.slice(6);
|
|
136
150
|
});
|
|
137
151
|
|
|
138
|
-
if (
|
|
139
|
-
window.open(
|
|
152
|
+
if (_url) {
|
|
153
|
+
window.open(_url, '_blank');
|
|
154
|
+
return;
|
|
140
155
|
}
|
|
141
156
|
}
|
|
142
157
|
}
|
|
@@ -14,8 +14,15 @@ var preCls = 'weekly-report-card-board';
|
|
|
14
14
|
function Board(_ref) {
|
|
15
15
|
var percent = _ref.percent;
|
|
16
16
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
17
|
+
style: {
|
|
18
|
+
position: 'relative',
|
|
19
|
+
paddingBottom: 1
|
|
20
|
+
}
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
17
22
|
className: preCls
|
|
18
23
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
24
|
+
className: preCls + '__cover'
|
|
25
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
19
26
|
className: preCls + '__done'
|
|
20
27
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
21
28
|
className: preCls + '__undone',
|
|
@@ -36,7 +43,9 @@ function Board(_ref) {
|
|
|
36
43
|
}
|
|
37
44
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
38
45
|
className: preCls + '__center'
|
|
39
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, percent, "%")))
|
|
46
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, percent, "%"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
|
+
className: preCls + '__cover--bottom'
|
|
48
|
+
}));
|
|
40
49
|
}
|
|
41
50
|
|
|
42
51
|
var _default = Board;
|
|
@@ -191,13 +191,16 @@ function Card(_ref, ref) {
|
|
|
191
191
|
src: require("./img/bofang.png")
|
|
192
192
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
193
193
|
className: preCls + "__avatar"
|
|
194
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
194
|
+
}, !!avatarSrc && /*#__PURE__*/_react["default"].createElement("img", {
|
|
195
195
|
src: avatarSrc
|
|
196
196
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
197
197
|
className: preCls + "__body"
|
|
198
198
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
199
199
|
className: preCls + "__userName",
|
|
200
|
-
src: nameSrc
|
|
200
|
+
src: nameSrc,
|
|
201
|
+
style: {
|
|
202
|
+
opacity: nameSrc ? 1 : 0
|
|
203
|
+
}
|
|
201
204
|
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
202
205
|
className: preCls + "__quote",
|
|
203
206
|
src: require("./img/quote.png"),
|
|
@@ -208,7 +211,7 @@ function Card(_ref, ref) {
|
|
|
208
211
|
percent: Number(data.Complete)
|
|
209
212
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
210
213
|
className: preCls + "__comparison"
|
|
211
|
-
}, data.Increase != '0' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, "
|
|
214
|
+
}, "OKR \u5B8C\u6210\u5EA6", data.Increase != '0' ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, " ", /*#__PURE__*/_react["default"].createElement("img", {
|
|
212
215
|
className: preCls + "__direction",
|
|
213
216
|
src: Number(data.Increase) > 0 ? require("./img/up.png") : require("./img/down.png"),
|
|
214
217
|
alt: ""
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
.weekly-report-card-wrapper {
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
width: 336px;
|
|
8
|
-
height:
|
|
8
|
+
height: 534px;
|
|
9
9
|
border-radius: 24px;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.weekly-report-card-wrapper .weekly-report-card-content {
|
|
13
13
|
position: relative;
|
|
14
|
-
top: -
|
|
14
|
+
top: -52px;
|
|
15
15
|
left: -20px;
|
|
16
16
|
transform: scale(0.9);
|
|
17
17
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
align-items: center;
|
|
33
33
|
width: 375px;
|
|
34
34
|
height: 710px;
|
|
35
|
-
background: linear-gradient(180deg, #B7D5FF 0%, #186FFF
|
|
35
|
+
background: linear-gradient(180deg, #B7D5FF 0%, #186FFF 50%);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.weekly-report-card__title {
|
|
@@ -55,13 +55,14 @@
|
|
|
55
55
|
flex-direction: column;
|
|
56
56
|
align-items: center;
|
|
57
57
|
width: 335px;
|
|
58
|
-
height:
|
|
58
|
+
height: 422px;
|
|
59
59
|
background: transparent;
|
|
60
60
|
padding-top: 55px;
|
|
61
61
|
border-radius: 12px;
|
|
62
62
|
background-image: url("./img/body.png");
|
|
63
63
|
background-size: 100% 100%;
|
|
64
64
|
background-position-y: -1px;
|
|
65
|
+
box-sizing: content-box;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
.weekly-report-card__avatar {
|
|
@@ -129,17 +130,19 @@
|
|
|
129
130
|
|
|
130
131
|
.weekly-report-card-board__done {
|
|
131
132
|
position: absolute;
|
|
132
|
-
width:
|
|
133
|
-
height:
|
|
133
|
+
width: 150px;
|
|
134
|
+
height: 150px;
|
|
134
135
|
border-radius: 50%;
|
|
135
|
-
background: linear-gradient(
|
|
136
|
+
background: linear-gradient(90deg, #2879FF 0%, #5B8FF9 50%);
|
|
136
137
|
overflow: hidden;
|
|
138
|
+
top: 2px;
|
|
139
|
+
left: 2px;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
.weekly-report-card-board__undone {
|
|
140
143
|
position: absolute;
|
|
141
|
-
left: -
|
|
142
|
-
bottom:
|
|
144
|
+
left: -5px;
|
|
145
|
+
bottom: 75px;
|
|
143
146
|
width: 160px;
|
|
144
147
|
height: 80px;
|
|
145
148
|
background-color: #eaf1fe;
|
|
@@ -147,6 +150,26 @@
|
|
|
147
150
|
transform: rotate(90deg);
|
|
148
151
|
}
|
|
149
152
|
|
|
153
|
+
.weekly-report-card-board__cover {
|
|
154
|
+
width: 154px;
|
|
155
|
+
height: 154px;
|
|
156
|
+
position: absolute;
|
|
157
|
+
border-radius: 50%;
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
border: 2px solid #fff;
|
|
160
|
+
z-index: 10;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.weekly-report-card-board__cover--bottom {
|
|
164
|
+
width: 154px;
|
|
165
|
+
height: 2px;
|
|
166
|
+
position: absolute;
|
|
167
|
+
bottom: 0;
|
|
168
|
+
box-sizing: border-box;
|
|
169
|
+
background-color: #FFF;
|
|
170
|
+
z-index: 10;
|
|
171
|
+
}
|
|
172
|
+
|
|
150
173
|
.weekly-report-card-board__space {
|
|
151
174
|
position: absolute;
|
|
152
175
|
width: 2px;
|
|
@@ -232,7 +255,7 @@
|
|
|
232
255
|
display: flex;
|
|
233
256
|
align-items: center;
|
|
234
257
|
justify-content: space-between;
|
|
235
|
-
margin-top:
|
|
258
|
+
margin-top: 18px;
|
|
236
259
|
}
|
|
237
260
|
|
|
238
261
|
.weekly-report-card__statistics__item {
|
|
@@ -288,16 +311,16 @@
|
|
|
288
311
|
|
|
289
312
|
.weekly-report-card__laba {
|
|
290
313
|
position: absolute;
|
|
291
|
-
left:
|
|
292
|
-
top:
|
|
314
|
+
left: 6px;
|
|
315
|
+
top: 108px;
|
|
293
316
|
width: 94px;
|
|
294
317
|
height: 65px;
|
|
295
318
|
}
|
|
296
319
|
|
|
297
320
|
.weekly-report-card__bofang {
|
|
298
321
|
position: absolute;
|
|
299
|
-
right:
|
|
300
|
-
top:
|
|
322
|
+
right: 4px;
|
|
323
|
+
top: 124px;
|
|
301
324
|
width: 62px;
|
|
302
325
|
height: 66px;
|
|
303
326
|
z-index: 1;
|
|
@@ -327,6 +350,8 @@
|
|
|
327
350
|
background-color: transparent;
|
|
328
351
|
font-size: 14px;
|
|
329
352
|
color: #FFF;
|
|
353
|
+
backdrop-filter: blur(2px);
|
|
354
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
330
355
|
}
|
|
331
356
|
|
|
332
357
|
.weekly-report-card__download:hover {
|
|
@@ -67,7 +67,7 @@ function WeeklyReportPreview(_ref) {
|
|
|
67
67
|
position: "relative"
|
|
68
68
|
}
|
|
69
69
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
|
-
className: (0, _classnames["default"])(
|
|
70
|
+
className: (0, _classnames["default"])(preCls + "__close"),
|
|
71
71
|
onClick: onClose
|
|
72
72
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
73
|
style: {
|
|
@@ -172,12 +172,12 @@ function WeeklyReportModal(_ref4) {
|
|
|
172
172
|
|
|
173
173
|
return (_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$Talent = _window3.Talent) === null || _window3$Talent === void 0 ? void 0 : _window3$Talent.app.vent.off('open-weekly-report-modal');
|
|
174
174
|
};
|
|
175
|
-
}, []);
|
|
175
|
+
}, [visible]);
|
|
176
176
|
(0, _react.useEffect)(function () {
|
|
177
177
|
if (!visible) return;
|
|
178
178
|
var current = new Date();
|
|
179
179
|
var dateTimeTicks = current.getFullYear() + '/' + (current.getMonth() + 1) + '/' + current.getDate();
|
|
180
|
-
var param = "redisKey=".concat(redisKey ||
|
|
180
|
+
var param = "redisKey=".concat(redisKey || '', "&dateTimeTicks=").concat(dateTimeTicks || '');
|
|
181
181
|
|
|
182
182
|
if (data) {
|
|
183
183
|
setData(null);
|
package/lib/index.js
CHANGED
|
@@ -102,7 +102,7 @@ Object.defineProperty(exports, "EPriority", {
|
|
|
102
102
|
Object.defineProperty(exports, "ERROR_LEVEL", {
|
|
103
103
|
enumerable: true,
|
|
104
104
|
get: function get() {
|
|
105
|
-
return _errorLevel
|
|
105
|
+
return _errorLevel["default"];
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "EmotionsSelector", {
|
|
@@ -664,7 +664,7 @@ var _personalInfo = _interopRequireDefault(require("./pages/personal-info"));
|
|
|
664
664
|
|
|
665
665
|
var _errorBoundary = _interopRequireDefault(require("./components/error-boundary"));
|
|
666
666
|
|
|
667
|
-
var _errorLevel = require("./utils/error-level");
|
|
667
|
+
var _errorLevel = _interopRequireDefault(require("./utils/error-level"));
|
|
668
668
|
|
|
669
669
|
var _selectTags = _interopRequireDefault(require("./components/select-tags"));
|
|
670
670
|
|
|
@@ -9,16 +9,22 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _dynamic = _interopRequireDefault(require("../../components/dynamic/dynamic"));
|
|
11
11
|
|
|
12
|
+
var _errorBoundary = _interopRequireDefault(require("../../components/error-boundary"));
|
|
13
|
+
|
|
14
|
+
var _errorLevel = require("../../utils/error-level");
|
|
15
|
+
|
|
12
16
|
require("./index.css");
|
|
13
17
|
|
|
14
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
19
|
|
|
16
|
-
var prefix =
|
|
20
|
+
var prefix = "dynamic-page";
|
|
17
21
|
|
|
18
22
|
var DynamicPage = function DynamicPage() {
|
|
19
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
23
|
+
return /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
24
|
+
errorLevel: _errorLevel.ERROR_LEVEL.P0
|
|
25
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
26
|
className: prefix
|
|
21
|
-
}, /*#__PURE__*/_react["default"].createElement(_dynamic["default"], null));
|
|
27
|
+
}, /*#__PURE__*/_react["default"].createElement(_dynamic["default"], null)));
|
|
22
28
|
};
|
|
23
29
|
|
|
24
30
|
var _default = DynamicPage;
|
|
@@ -35,7 +35,7 @@ var _tools = require("../../utils/tools");
|
|
|
35
35
|
|
|
36
36
|
var _localStorage = require("../../utils/local-storage");
|
|
37
37
|
|
|
38
|
-
var _errorLevel = require("../../utils/error-level");
|
|
38
|
+
var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
|
|
39
39
|
|
|
40
40
|
var _requestApi = require("./request-api");
|
|
41
41
|
|
|
@@ -369,7 +369,7 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
369
369
|
|
|
370
370
|
var _default = function _default(props) {
|
|
371
371
|
return /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
372
|
-
errorLevel: _errorLevel.
|
|
372
|
+
errorLevel: _errorLevel["default"].P0
|
|
373
373
|
}, /*#__PURE__*/_react["default"].createElement(NewOkrList, props));
|
|
374
374
|
};
|
|
375
375
|
|