@titaui/pc 1.10.9 → 1.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/change-okr-modal/index.js +108 -87
- package/lib/components/communication/CommunicationRecord.js +26 -16
- package/lib/components/communication/index.css +54 -10
- package/lib/components/communication/index.js +67 -28
- package/lib/components/communication/style.js +8 -6
- 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 +8 -7
- package/lib/components/dynamic/dynamic-item/components/header/index.js +13 -7
- 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 +46 -27
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +39 -29
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +5 -33
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +58 -18
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +27 -19
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +55 -42
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +49 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +39 -27
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +23 -29
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +31 -14
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -24
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +25 -40
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +13 -55
- 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 +56 -31
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +45 -33
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +19 -17
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +11 -17
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +20 -22
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +31 -27
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +3 -3
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +8 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +5 -20
- 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 +32 -28
- 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/dynamic-like-ranking/item.js +1 -1
- package/lib/components/dynamic/img/dynamic-point.svg +13 -0
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/file-list/components/single-file/index.css +9 -8
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/follower-visitor/index.js +6 -4
- package/lib/components/grid-layout/okr-progress/index.js +20 -30
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +31 -4
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +21 -12
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/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 +8 -3
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/utils/bs-global.js +13 -9
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getProgressState = exports.
|
|
6
|
+
exports.getProgressState = exports.getProcessColor = exports.formatMenu = exports.formatCycleData = exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
@@ -20,90 +20,13 @@ 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
|
-
|
|
100
23
|
var formatCycleData = function formatCycleData(periodParams, isGetCycleRange) {
|
|
101
24
|
if (!periodParams) return "";
|
|
102
25
|
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")];
|
|
103
26
|
var cycleDate = "";
|
|
104
27
|
var startDate = periodParams.startDate;
|
|
105
28
|
var endDate = periodParams.endDate;
|
|
106
|
-
var annualNum = periodParams.annualNum
|
|
29
|
+
var annualNum = Number("".concat(periodParams.annualNum)) === -1 ? (0, _getLocale.getLocale)("OKR_MyO_Butt_Allyears") : periodParams.annualNum;
|
|
107
30
|
|
|
108
31
|
switch (periodParams.cycleType.toString()) {
|
|
109
32
|
case "-1":
|
|
@@ -127,7 +50,7 @@ var formatCycleData = function formatCycleData(periodParams, isGetCycleRange) {
|
|
|
127
50
|
cycleDate = (0, _getLocale.getLocale)("Mod_Customization");
|
|
128
51
|
}
|
|
129
52
|
|
|
130
|
-
if (new Date(periodParams.startDate).getFullYear()
|
|
53
|
+
if (new Date(periodParams.startDate).getFullYear() === new Date().getFullYear()) {
|
|
131
54
|
startDate = periodParams.startDate.slice(5);
|
|
132
55
|
endDate = periodParams.endDate.slice(5);
|
|
133
56
|
}
|
|
@@ -149,4 +72,41 @@ var formatMenu = function formatMenu(data) {
|
|
|
149
72
|
return data;
|
|
150
73
|
};
|
|
151
74
|
|
|
152
|
-
exports.formatMenu = formatMenu;
|
|
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;
|
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.titaui-new-file-list-single-file__file-preview {
|
|
7
|
-
width:
|
|
8
|
-
height:
|
|
9
|
-
border-radius:
|
|
7
|
+
width: 120px;
|
|
8
|
+
height: 120px;
|
|
9
|
+
border-radius: 12px;
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
margin-right: 10px;
|
|
14
|
+
background: #F0F2F5;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.titaui-new-file-list-single-file__file-preview-img {
|
|
17
|
-
max-width:
|
|
18
|
-
max-height:
|
|
18
|
+
max-width: 120px;
|
|
19
|
+
max-height: 120px;
|
|
19
20
|
border-radius: 8px;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
position: absolute;
|
|
35
36
|
top: 0;
|
|
36
37
|
left: 0;
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
38
|
+
width: 120px;
|
|
39
|
+
height: 120px;
|
|
39
40
|
background: rgba(20, 28, 40, 0.3);
|
|
40
41
|
border-radius: 8px;
|
|
41
42
|
display: flex;
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
.titaui-new-file-list-single-file__operate-item:first-of-type {
|
|
57
|
-
margin-right:
|
|
58
|
+
margin-right: 20px;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
.titaui-new-file-list-single-file__operate-item-icon {
|
|
@@ -110,7 +110,7 @@ var SingleFile = function SingleFile(_ref) {
|
|
|
110
110
|
className: "".concat(prefix, "__file-name")
|
|
111
111
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
112
112
|
text: data.fileName,
|
|
113
|
-
maxWidth:
|
|
113
|
+
maxWidth: 120
|
|
114
114
|
})));
|
|
115
115
|
};
|
|
116
116
|
|
|
@@ -9,6 +9,8 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
12
14
|
var _requestApi = require("./request-api");
|
|
13
15
|
|
|
14
16
|
var _openData = require("../../utils/open-data");
|
|
@@ -19,9 +21,9 @@ var _followerVisitorFollower = _interopRequireDefault(require("./img/follower-vi
|
|
|
19
21
|
|
|
20
22
|
var _followerVisitorVisitor = _interopRequireDefault(require("./img/follower-visitor-visitor.png"));
|
|
21
23
|
|
|
22
|
-
require("
|
|
24
|
+
var _getLocale = require("../../utils/getLocale");
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
require("./index.css");
|
|
25
27
|
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
29
|
|
|
@@ -135,14 +137,14 @@ var FollowerVisitor = function FollowerVisitor() {
|
|
|
135
137
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
136
138
|
className: (0, _classnames["default"])("".concat(prefix, "__follower-icon")),
|
|
137
139
|
src: _followerVisitorFollower["default"]
|
|
138
|
-
}), renderPerson(followerInofs), getPrefixStrDesc(followerInofs),
|
|
140
|
+
}), renderPerson(followerInofs), getPrefixStrDesc(followerInofs), (0, _getLocale.getLocale)('OKR_MyO_Followedyou'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
141
|
className: "".concat(prefix, "__info-wrapper")
|
|
140
142
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
141
143
|
condition: visitorInofs && visitorInofs.length > 0
|
|
142
144
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
143
145
|
className: (0, _classnames["default"])("".concat(prefix, "__visitor-icon")),
|
|
144
146
|
src: _followerVisitorVisitor["default"]
|
|
145
|
-
}), renderPerson(visitorInofs), getPrefixStrDesc(visitorInofs),
|
|
147
|
+
}), renderPerson(visitorInofs), getPrefixStrDesc(visitorInofs), (0, _getLocale.getLocale)('OKR_MyO_Visitedyou'))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
146
148
|
className: (0, _classnames["default"])("tu-icon-canceled", "".concat(prefix, "__close")),
|
|
147
149
|
onClick: handleCloseMessage
|
|
148
150
|
}));
|
|
@@ -19,6 +19,10 @@ var _clickLink = _interopRequireWildcard(require("../util/click-link"));
|
|
|
19
19
|
|
|
20
20
|
var _getLocale = require("../../../utils/getLocale");
|
|
21
21
|
|
|
22
|
+
var _OKRprogressEmpty = _interopRequireDefault(require("../image/OKRprogress-empty.png"));
|
|
23
|
+
|
|
24
|
+
var _Progress = _interopRequireDefault(require("../image/Progress.png"));
|
|
25
|
+
|
|
22
26
|
require("../index.css");
|
|
23
27
|
|
|
24
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -27,8 +31,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
27
31
|
|
|
28
32
|
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; }
|
|
29
33
|
|
|
30
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
31
|
-
|
|
32
34
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
35
|
|
|
34
36
|
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."); }
|
|
@@ -71,38 +73,26 @@ function OKRProgressComponent() {
|
|
|
71
73
|
|
|
72
74
|
(0, _react.useEffect)(function () {
|
|
73
75
|
(0, _network["default"])(ComponentId).then(function (res) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
79
|
-
var item = _step.value;
|
|
80
|
-
|
|
81
|
-
switch (item.componentDataProp) {
|
|
82
|
-
case "allMyProgressCount":
|
|
83
|
-
setHadUpdateOkrNum(item.componentDataCount);
|
|
84
|
-
break;
|
|
76
|
+
Object.values(res).forEach(function (item) {
|
|
77
|
+
if (item.componentDataProp === "allMyProgressCount") {
|
|
78
|
+
setHadUpdateOkrNum(item.componentDataCount);
|
|
79
|
+
}
|
|
85
80
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
if (item.componentDataProp === "allMyNoProgressCount") {
|
|
82
|
+
setHadNotUpdateOkrNum(item.componentDataCount);
|
|
83
|
+
}
|
|
89
84
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
85
|
+
if (item.componentDataProp === "weekLatelyUpdatekrProgress") {
|
|
86
|
+
setWeekLatelyUpdatekrProgress(item.componentDataCount);
|
|
93
87
|
}
|
|
94
|
-
}
|
|
95
|
-
_iterator.e(err);
|
|
96
|
-
} finally {
|
|
97
|
-
_iterator.f();
|
|
98
|
-
}
|
|
88
|
+
});
|
|
99
89
|
});
|
|
100
90
|
}, []);
|
|
101
91
|
(0, _react.useEffect)(function () {
|
|
102
92
|
if (hadUpdateOkrNum + hadNotUpdateOkrNum === 0) {
|
|
103
|
-
|
|
93
|
+
setIsMyOKREmpty(isMyOKREmpty);
|
|
104
94
|
} else {
|
|
105
|
-
|
|
95
|
+
setIsMyOKREmpty(!isMyOKREmpty);
|
|
106
96
|
setUpdatePercent(Number.parseFloat((hadUpdateOkrNum / (hadNotUpdateOkrNum + hadUpdateOkrNum)).toFixed(2)) * 100);
|
|
107
97
|
}
|
|
108
98
|
}, [hadUpdateOkrNum + hadNotUpdateOkrNum]);
|
|
@@ -119,16 +109,16 @@ function OKRProgressComponent() {
|
|
|
119
109
|
padding: "20px 22px 0"
|
|
120
110
|
}
|
|
121
111
|
}, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
|
|
122
|
-
content: (0, _getLocale.getLocale)("
|
|
123
|
-
iconUrl:
|
|
112
|
+
content: (0, _getLocale.getLocale)("HP_KRProgress"),
|
|
113
|
+
iconUrl: _Progress["default"],
|
|
124
114
|
tips: (0, _getLocale.getLocale)("HP_ProgressKROKR")
|
|
125
|
-
}, !isMyOKREmpty && /*#__PURE__*/_react["default"].createElement("
|
|
115
|
+
}, !isMyOKREmpty && /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
116
|
onClick: function onClick() {
|
|
127
117
|
return (0, _clickLink["default"])("okr%2Fmanage");
|
|
128
118
|
},
|
|
129
119
|
className: "grid-component-card-title__behave"
|
|
130
120
|
}, (0, _getLocale.getLocale)("OKR_OKRW_Gotoupdate"))), isMyOKREmpty ? /*#__PURE__*/_react["default"].createElement(_commenComponents.EmptyBackGround, {
|
|
131
|
-
imgSrc:
|
|
121
|
+
imgSrc: _OKRprogressEmpty["default"],
|
|
132
122
|
content: (0, _getLocale.getLocale)("HP_Regulgoodwork"),
|
|
133
123
|
behave: {
|
|
134
124
|
type: "moreinfo",
|
|
@@ -9,6 +9,8 @@ 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({
|
|
12
|
+
var _default = /*#__PURE__*/_react["default"].createContext({
|
|
13
|
+
popContainer: document.body
|
|
14
|
+
});
|
|
13
15
|
|
|
14
16
|
exports["default"] = _default;
|
|
@@ -15,6 +15,8 @@ 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
|
+
|
|
18
20
|
var _bsGlobal = require("../../utils/bs-global");
|
|
19
21
|
|
|
20
22
|
var _index = require("./common/index");
|
|
@@ -25,6 +27,8 @@ var _platform = require("../../utils/platform");
|
|
|
25
27
|
|
|
26
28
|
var _getLocale = require("../../utils/getLocale");
|
|
27
29
|
|
|
30
|
+
require("./index.css");
|
|
31
|
+
|
|
28
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
33
|
|
|
30
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); }
|
|
@@ -51,6 +55,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
51
55
|
|
|
52
56
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
53
57
|
|
|
58
|
+
var prefix = 'titaui-mblog';
|
|
59
|
+
|
|
54
60
|
var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
55
61
|
_inherits(MBlog, _PureComponent);
|
|
56
62
|
|
|
@@ -235,6 +241,11 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
235
241
|
// 取消
|
|
236
242
|
_this.props.onMblogSubmit(submitType);
|
|
237
243
|
}
|
|
244
|
+
|
|
245
|
+
_this.setState({
|
|
246
|
+
textareaValue: '',
|
|
247
|
+
uploadSuccessFilesPath: []
|
|
248
|
+
});
|
|
238
249
|
};
|
|
239
250
|
|
|
240
251
|
_this._dropHandler = function (event) {
|
|
@@ -398,7 +409,8 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
398
409
|
_this$props3$submitTe = _this$props3.submitText,
|
|
399
410
|
submitText = _this$props3$submitTe === void 0 ? (0, _getLocale.getLocale)("Mod_Publish") : _this$props3$submitTe,
|
|
400
411
|
setTextareaRef = _this$props3.setTextareaRef,
|
|
401
|
-
disableRangeSelect = _this$props3.disableRangeSelect
|
|
412
|
+
disableRangeSelect = _this$props3.disableRangeSelect,
|
|
413
|
+
showUser = _this$props3.showUser;
|
|
402
414
|
var _this$state2 = this.state,
|
|
403
415
|
localStroageKey = _this$state2.localStroageKey,
|
|
404
416
|
visibility = _this$state2.visibility,
|
|
@@ -411,7 +423,21 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
411
423
|
isAtAll = _this$state2.isAtAll;
|
|
412
424
|
var fSize = (0, _bsGlobal.getUploadMaxSize)();
|
|
413
425
|
var fTip = attachmentTipText || (0, _getLocale.getLocale)("OKR_MyO_KRP_Draganddropu").replace("50MB", "".concat(fSize, "MB"));
|
|
414
|
-
|
|
426
|
+
var user = (0, _bsGlobal.getUserInfo)();
|
|
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, {
|
|
415
441
|
className: className,
|
|
416
442
|
ref: "mblogbox",
|
|
417
443
|
onDrop: this._dropHandler,
|
|
@@ -490,7 +516,7 @@ var MBlog = /*#__PURE__*/function (_PureComponent) {
|
|
|
490
516
|
id: this.previewid
|
|
491
517
|
}), !(0, _platform.isPlatform)("wx") && isShowDragMask && /*#__PURE__*/_react["default"].createElement(_style.DragEffect, {
|
|
492
518
|
className: "tu-icon-inbox-upload"
|
|
493
|
-
}));
|
|
519
|
+
})));
|
|
494
520
|
}
|
|
495
521
|
}]);
|
|
496
522
|
|
|
@@ -531,5 +557,6 @@ MBlog.defaultProps = {
|
|
|
531
557
|
// 1公开,2私密 3部门
|
|
532
558
|
isShowRangeDropDown: true,
|
|
533
559
|
isShowBtnCancel: true,
|
|
534
|
-
submitStatus: 0
|
|
560
|
+
submitStatus: 0,
|
|
561
|
+
showUser: false
|
|
535
562
|
};
|
|
@@ -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\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
|
|
16
|
+
var MBlogBox = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n flex: 1;\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: 12px;\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: 16px 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: 80px;\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
|
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports["default"] =
|
|
8
|
+
exports["default"] = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -27,6 +27,8 @@ var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/toolti
|
|
|
27
27
|
|
|
28
28
|
var _getLocale = require("../../../../../../utils/getLocale");
|
|
29
29
|
|
|
30
|
+
var _bsGlobal = require("../../../../../../utils/bs-global");
|
|
31
|
+
|
|
30
32
|
require("./index.css");
|
|
31
33
|
|
|
32
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -39,7 +41,9 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
39
41
|
|
|
40
42
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
41
43
|
|
|
42
|
-
|
|
44
|
+
var hasProject = (0, _bsGlobal.hasWebHead)("project");
|
|
45
|
+
|
|
46
|
+
var EKrNode = function EKrNode(props) {
|
|
43
47
|
var index = props.index,
|
|
44
48
|
title = props.title,
|
|
45
49
|
data = props.data,
|
|
@@ -77,7 +81,7 @@ function _default(props) {
|
|
|
77
81
|
while (1) {
|
|
78
82
|
switch (_context.prev = _context.next) {
|
|
79
83
|
case 0:
|
|
80
|
-
if (name
|
|
84
|
+
if (name === "addTask") {
|
|
81
85
|
params = {
|
|
82
86
|
objId: data.workId,
|
|
83
87
|
objType: 4,
|
|
@@ -129,7 +133,7 @@ function _default(props) {
|
|
|
129
133
|
};
|
|
130
134
|
}(), []);
|
|
131
135
|
var openRelatePop = (0, _react.useCallback)(function (name) {
|
|
132
|
-
if (name
|
|
136
|
+
if (name === "relateTask") {
|
|
133
137
|
window.openRelateTaskPop(btnRef.current, {
|
|
134
138
|
okrId: data.workId,
|
|
135
139
|
krId: data.mileStoneId
|
|
@@ -169,9 +173,11 @@ function _default(props) {
|
|
|
169
173
|
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
170
174
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-title")),
|
|
171
175
|
onClick: function onClick() {
|
|
172
|
-
data.mileStoneId
|
|
173
|
-
|
|
174
|
-
|
|
176
|
+
if (data.mileStoneId) {
|
|
177
|
+
_drawerManager["default"].open("krDetail", {
|
|
178
|
+
krId: data.mileStoneId
|
|
179
|
+
});
|
|
180
|
+
}
|
|
175
181
|
}
|
|
176
182
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
177
183
|
text: title,
|
|
@@ -192,11 +198,11 @@ function _default(props) {
|
|
|
192
198
|
icon: "tu-icon-Add-renwu",
|
|
193
199
|
exIconClass: "e-kr-node-layer-icon",
|
|
194
200
|
name: "addTask"
|
|
195
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Addtask"))), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
201
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Addtask"))), hasProject ? /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
196
202
|
icon: "tu-icon-Add-xiangmu",
|
|
197
203
|
exIconClass: "e-kr-node-layer-icon",
|
|
198
204
|
name: "addProject"
|
|
199
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Addproject")))), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
205
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Addproject"))) : /*#__PURE__*/_react["default"].createElement("span", null)), /*#__PURE__*/_react["default"].createElement(_dropSelector["default"], {
|
|
200
206
|
popupPlacement: "bottomRight",
|
|
201
207
|
onChange: openRelatePop,
|
|
202
208
|
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -208,9 +214,12 @@ function _default(props) {
|
|
|
208
214
|
icon: "tu-icon-GL-renwu",
|
|
209
215
|
exIconClass: "e-kr-node-layer-icon",
|
|
210
216
|
name: "relateTask"
|
|
211
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Assotask"))), /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
217
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_Assotask"))), hasProject ? /*#__PURE__*/_react["default"].createElement(_dropSelector.IconItem, {
|
|
212
218
|
icon: "tu-icon-GL-xiangmu",
|
|
213
219
|
exIconClass: "e-kr-node-layer-icon",
|
|
214
220
|
name: "relateProject"
|
|
215
|
-
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_AssProjects"))))) : null);
|
|
216
|
-
}
|
|
221
|
+
}, /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("OKR_MyO_E_Butt_AssProjects"))) : /*#__PURE__*/_react["default"].createElement("span", null))) : null);
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
var _default = EKrNode;
|
|
225
|
+
exports["default"] = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -17,10 +17,13 @@ require("./index.css");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
var EEmpty = function EEmpty(props) {
|
|
21
21
|
var index = props.index;
|
|
22
22
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
23
23
|
key: index,
|
|
24
24
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-empty-node"))
|
|
25
|
-
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject")
|
|
26
|
-
}
|
|
25
|
+
}, (0, _getLocale.getLocale)("OKR_MyO_E_SupportedtaskProject"));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var _default = EEmpty;
|
|
29
|
+
exports["default"] = _default;
|
|
@@ -345,11 +345,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
345
345
|
avatar: SuperiorUser.UserAvatar
|
|
346
346
|
});
|
|
347
347
|
} else {
|
|
348
|
-
setToUser({
|
|
349
|
-
name: Name,
|
|
350
|
-
userId: Id,
|
|
351
|
-
avatar: UserAvatar
|
|
352
|
-
});
|
|
348
|
+
setToUser({});
|
|
353
349
|
}
|
|
354
350
|
|
|
355
351
|
parenOkrtRef.current && parenOkrtRef.current.show(document.body, 0);
|
|
@@ -19,7 +19,7 @@ function CircleProgress(props) {
|
|
|
19
19
|
_props$color = props.color,
|
|
20
20
|
color = _props$color === void 0 ? "#419BFF" : _props$color,
|
|
21
21
|
_props$percent = props.percent,
|
|
22
|
-
percent = _props$percent === void 0 ?
|
|
22
|
+
percent = _props$percent === void 0 ? 0 : _props$percent,
|
|
23
23
|
_props$width = props.width,
|
|
24
24
|
width = _props$width === void 0 ? 8 : _props$width,
|
|
25
25
|
_props$backgroundColo = props.backgroundColor,
|
|
@@ -35,7 +35,9 @@ function CircleProgress(props) {
|
|
|
35
35
|
_props$showTextConten = props.showTextContent,
|
|
36
36
|
showTextContent = _props$showTextConten === void 0 ? true : _props$showTextConten,
|
|
37
37
|
_props$textcolor = props.textcolor,
|
|
38
|
-
textcolor = _props$textcolor === void 0 ? "#89919F" : _props$textcolor
|
|
38
|
+
textcolor = _props$textcolor === void 0 ? "#89919F" : _props$textcolor,
|
|
39
|
+
_props$textClass = props.textClass,
|
|
40
|
+
textClass = _props$textClass === void 0 ? "" : _props$textClass;
|
|
39
41
|
var p = percent > 100 ? 100 : percent;
|
|
40
42
|
var c = Math.round((size - width * 2) * Math.PI);
|
|
41
43
|
var remainC = Math.round(c * (100 - p) / 100);
|
|
@@ -83,7 +85,7 @@ function CircleProgress(props) {
|
|
|
83
85
|
text: "".concat(percent, "%"),
|
|
84
86
|
maxWidth: 50
|
|
85
87
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
|
-
className: "text-content",
|
|
88
|
+
className: "".concat(textClass, " text-content"),
|
|
87
89
|
style: {
|
|
88
90
|
marginLeft: 2,
|
|
89
91
|
color: textcolor
|
|
@@ -91,5 +93,8 @@ function CircleProgress(props) {
|
|
|
91
93
|
}, "".concat(percent, "%"))));
|
|
92
94
|
}
|
|
93
95
|
|
|
96
|
+
CircleProgress.defaultProps = {
|
|
97
|
+
textClass: ""
|
|
98
|
+
};
|
|
94
99
|
var _default = CircleProgress;
|
|
95
100
|
exports["default"] = _default;
|