@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
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _shareDialog = _interopRequireDefault(require("../../share-dialog"));
|
|
15
|
+
|
|
16
|
+
var _header = _interopRequireDefault(require("./header"));
|
|
17
|
+
|
|
18
|
+
var _level2Search = _interopRequireDefault(require("../../level2-search"));
|
|
19
|
+
|
|
20
|
+
var _precls = _interopRequireDefault(require("../../precls"));
|
|
21
|
+
|
|
22
|
+
var _noOkr = _interopRequireDefault(require("../../no-okr"));
|
|
23
|
+
|
|
24
|
+
var _requestApis = require("../../request-apis");
|
|
25
|
+
|
|
26
|
+
var _utils = require("../../utils");
|
|
27
|
+
|
|
28
|
+
var _unsupportIe = _interopRequireDefault(require("../../unsupport-ie"));
|
|
29
|
+
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
43
|
+
|
|
44
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
45
|
+
|
|
46
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
47
|
+
|
|
48
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
49
|
+
|
|
50
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
51
|
+
|
|
52
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
|
+
|
|
54
|
+
var _default = function _default() {
|
|
55
|
+
var _useState = (0, _react.useState)(function () {
|
|
56
|
+
var hashQuery = {};
|
|
57
|
+
var urlHash = decodeURIComponent(window.location.hash);
|
|
58
|
+
var hashQueryStr = urlHash.split('?')[1];
|
|
59
|
+
hashQueryStr.split('&').forEach(function (it) {
|
|
60
|
+
var _it$split = it.split('='),
|
|
61
|
+
_it$split2 = _slicedToArray(_it$split, 2),
|
|
62
|
+
key = _it$split2[0],
|
|
63
|
+
value = _it$split2[1];
|
|
64
|
+
|
|
65
|
+
if (key == 'level2Selected' || key == 'period' || key == 'rootNode') hashQuery[key] = JSON.parse(value);else if (key == 'showkr' || key == 'darkTheme') hashQuery[key] = value == 'true' ? true : false;else hashQuery[key] = value;
|
|
66
|
+
});
|
|
67
|
+
return hashQuery;
|
|
68
|
+
}),
|
|
69
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
70
|
+
hashQuery = _useState2[0];
|
|
71
|
+
|
|
72
|
+
var _useState3 = (0, _react.useState)(hashQuery.searchType),
|
|
73
|
+
_useState4 = _slicedToArray(_useState3, 1),
|
|
74
|
+
searchType = _useState4[0];
|
|
75
|
+
|
|
76
|
+
var _useState5 = (0, _react.useState)(hashQuery.period),
|
|
77
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
78
|
+
period = _useState6[0],
|
|
79
|
+
setPeriod = _useState6[1];
|
|
80
|
+
|
|
81
|
+
var _useState7 = (0, _react.useState)(hashQuery.showkr),
|
|
82
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
83
|
+
showkr = _useState8[0],
|
|
84
|
+
setShowKr = _useState8[1];
|
|
85
|
+
|
|
86
|
+
var _useState9 = (0, _react.useState)(hashQuery.darkTheme),
|
|
87
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
88
|
+
darkTheme = _useState10[0],
|
|
89
|
+
setDarkTheme = _useState10[1];
|
|
90
|
+
|
|
91
|
+
var _useState11 = (0, _react.useState)(hashQuery.direction),
|
|
92
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
93
|
+
direction = _useState12[0],
|
|
94
|
+
setDirection = _useState12[1];
|
|
95
|
+
|
|
96
|
+
var _useState13 = (0, _react.useState)(hashQuery.rootNode),
|
|
97
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
98
|
+
rootNode = _useState14[0],
|
|
99
|
+
setRootNode = _useState14[1];
|
|
100
|
+
|
|
101
|
+
var _useState15 = (0, _react.useState)(false),
|
|
102
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
103
|
+
forceRender = _useState16[0],
|
|
104
|
+
setForceRender = _useState16[1];
|
|
105
|
+
|
|
106
|
+
var okrMapRef = (0, _react.useRef)();
|
|
107
|
+
|
|
108
|
+
var onMapActionsHandler = function onMapActionsHandler(iconType) {
|
|
109
|
+
switch (iconType) {
|
|
110
|
+
case 'export':
|
|
111
|
+
exportCurrentFlow();
|
|
112
|
+
break;
|
|
113
|
+
|
|
114
|
+
case 'horizontal':
|
|
115
|
+
setDirection(iconType);
|
|
116
|
+
setForceRender(true);
|
|
117
|
+
setTimeout(function () {
|
|
118
|
+
return setForceRender(false);
|
|
119
|
+
}, 100);
|
|
120
|
+
break;
|
|
121
|
+
|
|
122
|
+
case 'vertical':
|
|
123
|
+
setDirection(iconType);
|
|
124
|
+
setForceRender(true);
|
|
125
|
+
setTimeout(function () {
|
|
126
|
+
return setForceRender(false);
|
|
127
|
+
}, 100);
|
|
128
|
+
break;
|
|
129
|
+
|
|
130
|
+
default:
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}; // 导出图片
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
var exportCurrentFlow = function exportCurrentFlow() {
|
|
137
|
+
okrMapRef.current.exportCurrentFlow();
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
return /*#__PURE__*/_react["default"].createElement(_unsupportIe["default"], null, function (OkrSearchPanel) {
|
|
141
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(_precls["default"], "__dark"), darkTheme))
|
|
143
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
144
|
+
className: (0, _classnames["default"])(_precls["default"], "".concat(_precls["default"], "-share"))
|
|
145
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], {
|
|
146
|
+
showkr: showkr,
|
|
147
|
+
darkTheme: darkTheme,
|
|
148
|
+
direction: direction,
|
|
149
|
+
setShowKr: setShowKr,
|
|
150
|
+
setDirection: setDirection,
|
|
151
|
+
onBtnClick: onMapActionsHandler,
|
|
152
|
+
setDarkTheme: setDarkTheme
|
|
153
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
154
|
+
className: (0, _classnames["default"])("".concat(_precls["default"], "__content"))
|
|
155
|
+
}, function () {
|
|
156
|
+
if (forceRender) return /*#__PURE__*/_react["default"].createElement("span", null);else {
|
|
157
|
+
return /*#__PURE__*/_react["default"].createElement(OkrSearchPanel, _extends({
|
|
158
|
+
ref: okrMapRef,
|
|
159
|
+
searchType: searchType,
|
|
160
|
+
showkr: showkr,
|
|
161
|
+
direction: direction,
|
|
162
|
+
darkTheme: darkTheme
|
|
163
|
+
}, period, rootNode, {
|
|
164
|
+
okrType: _utils.OkrTypeSetting ? _utils.okrTypeMap[searchType] : ''
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
}())));
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
exports["default"] = _default;
|
package/lib/utils/error-level.js
CHANGED
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
var ERROR_LEVEL;
|
|
8
|
-
exports.ERROR_LEVEL = ERROR_LEVEL;
|
|
9
8
|
|
|
10
9
|
(function (ERROR_LEVEL) {
|
|
11
10
|
ERROR_LEVEL[ERROR_LEVEL["P0"] = 0] = "P0";
|
|
12
11
|
ERROR_LEVEL[ERROR_LEVEL["P1"] = 1] = "P1";
|
|
13
12
|
ERROR_LEVEL[ERROR_LEVEL["P2"] = 2] = "P2";
|
|
14
13
|
ERROR_LEVEL[ERROR_LEVEL["P3"] = 3] = "P3";
|
|
15
|
-
})(ERROR_LEVEL || (
|
|
14
|
+
})(ERROR_LEVEL || (ERROR_LEVEL = {}));
|
|
15
|
+
|
|
16
|
+
var _default = ERROR_LEVEL;
|
|
17
|
+
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ function CreateCycle({ cycle, container, onChange }: Props): ReactElement {
|
|
|
53
53
|
setSelfCycle({
|
|
54
54
|
...selfCycle,
|
|
55
55
|
...c,
|
|
56
|
-
...PeriodSelector.getDateRangeByCycle(c as any)
|
|
56
|
+
...PeriodSelector.getDateRangeByCycle(c as any,cycleSetting?.yearStartMonth)
|
|
57
57
|
} as any);
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -48,10 +48,13 @@ const Inform = (props) => {
|
|
|
48
48
|
if (!isMessageMerging) {
|
|
49
49
|
if (messageType === informType.details) {
|
|
50
50
|
window.open(`${apiServer}/u/${userId}/Home#more/taskinfo?Id=${item.objId}`, '_blank');
|
|
51
|
+
return;
|
|
51
52
|
} else if (item.objId && objType !== 8) {
|
|
52
53
|
window.open(`${apiServer}/u/${userId}/Home#work?work_id=${item.objId}`);
|
|
54
|
+
return;
|
|
53
55
|
} else if (messageType === informType.todayJob) {
|
|
54
56
|
window.open(`${apiServer}/u/${userId}/Home#plan?tag_id=0&tag_type=0&filter=1`);
|
|
57
|
+
return;
|
|
55
58
|
} else if (messageType === informType.daily) {
|
|
56
59
|
const str = item.content.slice(0, 18);
|
|
57
60
|
const Year = str.slice(4, 8);
|
|
@@ -81,22 +84,33 @@ const Inform = (props) => {
|
|
|
81
84
|
Month
|
|
82
85
|
) + 1}&dailyType=1`
|
|
83
86
|
);
|
|
87
|
+
return;
|
|
84
88
|
} else if (str.indexOf('月报') !== -1) {
|
|
85
89
|
window.open(
|
|
86
90
|
`${apiServer}/u/${userId}/Home#/daily?to_user_id=${userId}&group_id=9&tag_type=1&date=${Year}/${Month}/01&tag_id=${parseInt(
|
|
87
91
|
Month
|
|
88
92
|
) + 1}&dailyType=3`
|
|
89
93
|
);
|
|
94
|
+
return;
|
|
90
95
|
} else {
|
|
91
96
|
window.open(
|
|
92
97
|
`${apiServer}/u/${userId}/Home#/daily?to_user_id=${userId}&group_id=9&tag_type=1&date=${Year}/${Month}/${parseInt(
|
|
93
98
|
Week
|
|
94
99
|
) * 7}&tag_id=${parseInt(Month) + 1}&dailyType=2`
|
|
95
100
|
);
|
|
101
|
+
return;
|
|
96
102
|
}
|
|
97
103
|
} else if (item.objUrl) {
|
|
98
104
|
window.open(item.objUrl);
|
|
99
|
-
|
|
105
|
+
return;
|
|
106
|
+
} else if (item.objType === informType.Okr) {
|
|
107
|
+
let url = item.content.match(/(http[s]?:\/\/([\w-]+.)+([:\d+])?(\/[\w-\.\/\?%&=]*))/g);
|
|
108
|
+
window.open(url, '_blank');
|
|
109
|
+
return;
|
|
110
|
+
} else if(item.objType === informType.okrRemind) {
|
|
111
|
+
window.open(`${apiServer}/u/${userId}/Home#/work?iTalentNavCode=tita-work&work_id=${objId}`);
|
|
112
|
+
return;
|
|
113
|
+
} else {
|
|
100
114
|
const reg = /href='.*?(?=')/g;
|
|
101
115
|
let url = '';
|
|
102
116
|
item.content.replace(reg, ($0) => {
|
|
@@ -104,9 +118,11 @@ const Inform = (props) => {
|
|
|
104
118
|
})
|
|
105
119
|
if(url) {
|
|
106
120
|
window.open(url, '_blank');
|
|
121
|
+
return;
|
|
107
122
|
}
|
|
108
123
|
}
|
|
109
124
|
}
|
|
125
|
+
|
|
110
126
|
let type = 'eReport'; // E-周报提醒消息合并
|
|
111
127
|
if (messageType == '83') {
|
|
112
128
|
// 项目,目标进展提醒消息合并
|
|
@@ -15,6 +15,8 @@ export const informType = {
|
|
|
15
15
|
"details": 69, //查看详情
|
|
16
16
|
"daily": 55, //日报月报周报
|
|
17
17
|
"todayJob": 81, //进入今日工作
|
|
18
|
+
"Okr": 0, //Okr
|
|
19
|
+
"okrRemind": 4
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export enum EObjType {
|
|
@@ -26,4 +28,5 @@ export enum EObjType {
|
|
|
26
28
|
MileStone = 27, // 里程碑
|
|
27
29
|
KanBan = 66, // 看板
|
|
28
30
|
Remind = 8,//提醒
|
|
31
|
+
|
|
29
32
|
}
|
|
@@ -7,7 +7,9 @@ const preCls = 'weekly-report-card-board'
|
|
|
7
7
|
|
|
8
8
|
function Board({percent}: Props): ReactElement {
|
|
9
9
|
return (
|
|
10
|
+
<div style={{position:'relative',paddingBottom:1}}>
|
|
10
11
|
<div className={preCls}>
|
|
12
|
+
<div className={preCls+'__cover'}/>
|
|
11
13
|
<div className={preCls+'__done'}>
|
|
12
14
|
<div className={preCls+'__undone'}style={{transform:`rotate(${percent/100 * 180}deg)`}}/>
|
|
13
15
|
<div className={preCls+'__space'} style={{transform:'rotate(45deg)'}}/>
|
|
@@ -18,6 +20,9 @@ function Board({percent}: Props): ReactElement {
|
|
|
18
20
|
<div className={preCls+'__center'}>
|
|
19
21
|
<div>{percent}%</div>
|
|
20
22
|
</div>
|
|
23
|
+
|
|
24
|
+
</div>
|
|
25
|
+
<div className={preCls+'__cover--bottom'}/>
|
|
21
26
|
</div>
|
|
22
27
|
)
|
|
23
28
|
}
|
|
@@ -117,11 +117,11 @@ function Card({data}: Props, ref): ReactElement {
|
|
|
117
117
|
<img className={preCls + "__laba"} src={require("./img/laba.png")} />
|
|
118
118
|
<img className={preCls + "__bofang"} src={require("./img/bofang.png")} />
|
|
119
119
|
<div className={preCls + "__avatar"}>
|
|
120
|
-
<img src={avatarSrc} />
|
|
120
|
+
{!!avatarSrc && <img src={avatarSrc} />}
|
|
121
121
|
</div>
|
|
122
122
|
<div className={preCls + "__body"}>
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
<img className={preCls + "__userName"} src={nameSrc} style={{opacity:nameSrc ? 1:0}}/>
|
|
125
125
|
<img
|
|
126
126
|
className={preCls + "__quote"}
|
|
127
127
|
src={require("./img/quote.png")}
|
|
@@ -132,17 +132,17 @@ function Card({data}: Props, ref): ReactElement {
|
|
|
132
132
|
</div>
|
|
133
133
|
<Board percent={Number(data.Complete)} />
|
|
134
134
|
<div className={preCls + "__comparison"}>
|
|
135
|
-
|
|
136
|
-
data.Increase != '0' ? <>
|
|
135
|
+
|
|
137
136
|
OKR 完成度
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
{
|
|
138
|
+
data.Increase != '0' ? <> <img
|
|
139
|
+
className={preCls + "__direction"}
|
|
140
|
+
src={Number( data.Increase) > 0 ? require("./img/up.png") : require('./img/down.png')}
|
|
141
|
+
alt=""
|
|
142
|
+
/>
|
|
143
|
+
<span style={{ color: Number( data.Increase) > 0 ? "#4DC591" : '#F05E5E'}}>{Math.abs(Number(data.Increase))}%</span></> : ''
|
|
144
|
+
}
|
|
145
|
+
|
|
146
146
|
</div>
|
|
147
147
|
<div className={preCls + "__colleague"}>
|
|
148
148
|
{data.PromptLanguage}
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
&-wrapper {
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
width: 336px;
|
|
10
|
-
height:
|
|
10
|
+
height: 534px;
|
|
11
11
|
border-radius: 24px;
|
|
12
12
|
.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
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
align-items: center;
|
|
32
32
|
width: 375px;
|
|
33
33
|
height: 710px;
|
|
34
|
-
background: linear-gradient(180deg, #B7D5FF 0%, #186FFF
|
|
34
|
+
background: linear-gradient(180deg, #B7D5FF 0%, #186FFF 50%);
|
|
35
35
|
}
|
|
36
36
|
&__title {
|
|
37
37
|
width: 220px;
|
|
@@ -51,13 +51,14 @@
|
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
align-items: center;
|
|
53
53
|
width: 335px;
|
|
54
|
-
height:
|
|
54
|
+
height: 422px;
|
|
55
55
|
background: transparent;
|
|
56
56
|
padding-top: 55px;
|
|
57
57
|
border-radius: 12px;
|
|
58
58
|
background-image: url('./img/body.png');
|
|
59
59
|
background-size: 100% 100%;
|
|
60
60
|
background-position-y: -1px;
|
|
61
|
+
box-sizing: content-box;
|
|
61
62
|
}
|
|
62
63
|
&__avatar {
|
|
63
64
|
position: absolute;
|
|
@@ -117,16 +118,18 @@
|
|
|
117
118
|
position: relative;
|
|
118
119
|
&__done {
|
|
119
120
|
position: absolute;
|
|
120
|
-
width:
|
|
121
|
-
height:
|
|
121
|
+
width: 150px;
|
|
122
|
+
height: 150px;
|
|
122
123
|
border-radius: 50%;
|
|
123
|
-
background: linear-gradient(
|
|
124
|
+
background: linear-gradient(90deg, #2879FF 0%, #5B8FF9 50%);
|
|
124
125
|
overflow: hidden;
|
|
126
|
+
top: 2px;
|
|
127
|
+
left: 2px;
|
|
125
128
|
}
|
|
126
129
|
&__undone {
|
|
127
130
|
position: absolute;
|
|
128
|
-
left: -
|
|
129
|
-
bottom:
|
|
131
|
+
left: -5px;
|
|
132
|
+
bottom: 75px;
|
|
130
133
|
width: 160px;
|
|
131
134
|
height: 80px;
|
|
132
135
|
background-color: rgb(234, 241, 254);
|
|
@@ -134,6 +137,24 @@
|
|
|
134
137
|
transform: rotate(90deg);
|
|
135
138
|
// background: radial-gradient(at bottom center,rgb(234, 241, 254) 0,rgb(234, 241, 254) 77px,transparent 77px);
|
|
136
139
|
}
|
|
140
|
+
&__cover {
|
|
141
|
+
width: 154px;
|
|
142
|
+
height: 154px;
|
|
143
|
+
position: absolute;
|
|
144
|
+
border-radius: 50%;
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
border: 2px solid #fff;
|
|
147
|
+
z-index: 10;
|
|
148
|
+
}
|
|
149
|
+
&__cover--bottom {
|
|
150
|
+
width: 154px;
|
|
151
|
+
height: 2px;
|
|
152
|
+
position: absolute;
|
|
153
|
+
bottom: 0;
|
|
154
|
+
box-sizing: border-box;
|
|
155
|
+
background-color: #FFF;
|
|
156
|
+
z-index: 10;
|
|
157
|
+
}
|
|
137
158
|
&__space {
|
|
138
159
|
position: absolute;
|
|
139
160
|
width: 2px;
|
|
@@ -212,7 +233,7 @@
|
|
|
212
233
|
display: flex;
|
|
213
234
|
align-items: center;
|
|
214
235
|
justify-content: space-between;
|
|
215
|
-
margin-top:
|
|
236
|
+
margin-top: 18px;
|
|
216
237
|
|
|
217
238
|
&__item {
|
|
218
239
|
position: relative;
|
|
@@ -261,15 +282,15 @@
|
|
|
261
282
|
}
|
|
262
283
|
&__laba {
|
|
263
284
|
position: absolute;
|
|
264
|
-
left:
|
|
265
|
-
top:
|
|
285
|
+
left: 6px;
|
|
286
|
+
top: 108px;
|
|
266
287
|
width: 94px;
|
|
267
288
|
height: 65px;
|
|
268
289
|
}
|
|
269
290
|
&__bofang {
|
|
270
291
|
position: absolute;
|
|
271
|
-
right:
|
|
272
|
-
top:
|
|
292
|
+
right: 4px;
|
|
293
|
+
top: 124px;
|
|
273
294
|
width: 62px;
|
|
274
295
|
height: 66px;
|
|
275
296
|
z-index: 1;
|
|
@@ -296,6 +317,8 @@
|
|
|
296
317
|
background-color: transparent;
|
|
297
318
|
font-size: 14px;
|
|
298
319
|
color: #FFF;
|
|
320
|
+
backdrop-filter: blur(2px);
|
|
321
|
+
background-color: rgba($color: #FFF, $alpha: .1);
|
|
299
322
|
&:hover{
|
|
300
323
|
background-color: transparent;
|
|
301
324
|
}
|
|
@@ -26,7 +26,7 @@ function WeeklyReportPreview({ onShare,onClose,data }) {
|
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
28
|
<div style={{ position: "relative"}}>
|
|
29
|
-
<div className={classnames(
|
|
29
|
+
<div className={classnames(preCls + "__close")} onClick={onClose}/>
|
|
30
30
|
<div style={{ position: "absolute", left: "-99999999px" }}>
|
|
31
31
|
<Card data={data} ref={cardRef} />
|
|
32
32
|
</div>
|
|
@@ -73,13 +73,13 @@ function WeeklyReportModal({}: Props) {
|
|
|
73
73
|
setVisible(true)
|
|
74
74
|
})
|
|
75
75
|
return () => window?.Talent?.app.vent.off('open-weekly-report-modal')
|
|
76
|
-
}, [])
|
|
76
|
+
}, [visible])
|
|
77
77
|
|
|
78
78
|
useEffect(()=>{
|
|
79
79
|
if(!visible) return
|
|
80
80
|
const current = new Date()
|
|
81
81
|
const dateTimeTicks=(current.getFullYear()+'/'+(current.getMonth()+1)+'/'+current.getDate())
|
|
82
|
-
let param = `redisKey=${redisKey||
|
|
82
|
+
let param = `redisKey=${redisKey || ''}&dateTimeTicks=${dateTimeTicks||''}`
|
|
83
83
|
if(data) {
|
|
84
84
|
setData(null)
|
|
85
85
|
}
|
package/src/index.js
CHANGED
|
@@ -77,7 +77,7 @@ export { default as LikeRankingPage } from "./pages/like-ranking";
|
|
|
77
77
|
export { default as NewOkrListPage } from "./pages/new-okr-list";
|
|
78
78
|
export { default as PersonalInfoPage } from "./pages/personal-info";
|
|
79
79
|
export { default as ErrorBoundary } from "./components/error-boundary";
|
|
80
|
-
export {
|
|
80
|
+
export { default as ERROR_LEVEL } from "./utils/error-level";
|
|
81
81
|
export { default as SelectTags } from "./components/select-tags";
|
|
82
82
|
export { default as Cascader } from "./components/cascader";
|
|
83
83
|
export { default as requestApi } from "./utils/request";
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import React, { FC } from
|
|
2
|
-
import Dynamic from
|
|
3
|
-
import
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import Dynamic from "../../components/dynamic/dynamic";
|
|
3
|
+
import ErrorBoundary from "../../components/error-boundary";
|
|
4
|
+
import { ERROR_LEVEL } from '../../utils/error-level';
|
|
5
|
+
import "./index.scss";
|
|
4
6
|
|
|
5
|
-
const prefix =
|
|
7
|
+
const prefix = "dynamic-page";
|
|
6
8
|
|
|
7
9
|
const DynamicPage: FC = () => {
|
|
8
10
|
return (
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
<ErrorBoundary errorLevel={ERROR_LEVEL.P0} >
|
|
12
|
+
<div className={prefix}>
|
|
13
|
+
<Dynamic />
|
|
14
|
+
</div>
|
|
15
|
+
</ErrorBoundary>
|
|
16
|
+
);
|
|
17
|
+
};
|
|
14
18
|
|
|
15
|
-
export default DynamicPage;
|
|
19
|
+
export default DynamicPage;
|
|
@@ -18,7 +18,7 @@ import InitCycleSetting from "./init-cycle-setting";
|
|
|
18
18
|
import { getBSGlobal, getUserInfo } from "../../utils/bs-global";
|
|
19
19
|
import { getQueryString } from "../../utils/tools";
|
|
20
20
|
import { localStorage } from "../../utils/local-storage";
|
|
21
|
-
import
|
|
21
|
+
import ERROR_LEVEL from "../../utils/error-level";
|
|
22
22
|
import { okrSearch, okrList, visitOkrCyclePag } from "./request-api";
|
|
23
23
|
import { Context } from "./context";
|
|
24
24
|
import { precls } from "./precls";
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ErrorBoundary from "../../../../components/error-boundary";
|
|
3
|
+
import ShareOkrMap from "./share-okr-map";
|
|
4
|
+
|
|
5
|
+
export default (props) => {
|
|
6
|
+
return (
|
|
7
|
+
<ErrorBoundary>
|
|
8
|
+
<ShareOkrMap {...props} />
|
|
9
|
+
</ErrorBoundary>
|
|
10
|
+
);
|
|
11
|
+
};
|
|
File without changes
|