@titaui/pc 1.11.42 → 1.12.0-beta.0
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/avatar/text-avatar/index.css +2 -2
- package/lib/components/avatar/text-avatar/index.js +6 -6
- package/lib/components/dynamic/constant.js +33 -38
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +10 -48
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +2 -4
- package/lib/components/e-priority/index.css +4 -4
- package/lib/components/e-priority/index.js +2 -10
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +8 -7
- package/lib/components/nav-top/components/menu/index.css +0 -91
- package/lib/components/nav-top/components/menu/index.js +24 -72
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +2 -3
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -10
- package/lib/components/okr-detail/okr-list/index.js +3 -5
- package/lib/components/okr-flow/child-node/index.css +1 -1
- package/lib/components/okr-flow/export-modal/index.js +3 -66
- package/lib/components/survey-model/index.js +0 -3
- package/lib/components/task-tree/index.js +7 -1
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/task-item-node/constant.js +22 -39
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +8 -38
- package/lib/components/task-tree/task-item-node/e-task.js +24 -24
- package/lib/components/task-tree/task-item-node/index.css +18 -28
- package/lib/components/task-tree/task-tree.css +1 -1
- package/lib/components/time-picker/time-picker.js +102 -34
- package/lib/components/time-picker/timer-picker-input.js +6 -0
- package/package.json +1 -1
- package/lib/components/nav-top/components/menu/img/new.svg +0 -30
- package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
|
@@ -41,7 +41,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
41
|
|
|
42
42
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
43
|
|
|
44
|
-
var preCls =
|
|
44
|
+
var preCls = "titaui-text-avatar";
|
|
45
45
|
|
|
46
46
|
function TextAvatar(props) {
|
|
47
47
|
var name = props.name,
|
|
@@ -54,7 +54,7 @@ function TextAvatar(props) {
|
|
|
54
54
|
_props$isGetRoot = props.isGetRoot,
|
|
55
55
|
isGetRoot = _props$isGetRoot === void 0 ? false : _props$isGetRoot,
|
|
56
56
|
_props$extraCls = props.extraCls,
|
|
57
|
-
extraCls = _props$extraCls === void 0 ?
|
|
57
|
+
extraCls = _props$extraCls === void 0 ? "" : _props$extraCls,
|
|
58
58
|
_props$nameTips = props.nameTips,
|
|
59
59
|
nameTips = _props$nameTips === void 0 ? function (name) {
|
|
60
60
|
return name;
|
|
@@ -83,7 +83,7 @@ function TextAvatar(props) {
|
|
|
83
83
|
}; // 非编辑态,不可以弹出选人组件
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
var FieldPerson = editable ? _userSelector["default"] :
|
|
86
|
+
var FieldPerson = editable ? _userSelector["default"] : "span";
|
|
87
87
|
|
|
88
88
|
var renderAvatar = function renderAvatar() {
|
|
89
89
|
if (showAvatar) {
|
|
@@ -91,7 +91,7 @@ function TextAvatar(props) {
|
|
|
91
91
|
className: "".concat(preCls, "__img")
|
|
92
92
|
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
93
93
|
userId: id,
|
|
94
|
-
src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium :
|
|
94
|
+
src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium : "",
|
|
95
95
|
color: avatar === null || avatar === void 0 ? void 0 : avatar.color,
|
|
96
96
|
name: name,
|
|
97
97
|
size: {
|
|
@@ -132,7 +132,7 @@ function TextAvatar(props) {
|
|
|
132
132
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
133
|
className: (0, _classnames["default"])(preCls, extraCls, _defineProperty({}, "".concat(preCls, "--editable"), editable)),
|
|
134
134
|
style: {
|
|
135
|
-
|
|
135
|
+
maxWidth: width
|
|
136
136
|
}
|
|
137
137
|
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
138
138
|
ref: text,
|
|
@@ -143,7 +143,7 @@ function TextAvatar(props) {
|
|
|
143
143
|
})))), !showTooltip && /*#__PURE__*/_react["default"].createElement("span", {
|
|
144
144
|
className: (0, _classnames["default"])(preCls, extraCls, _defineProperty({}, "".concat(preCls, "--editable"), editable)),
|
|
145
145
|
style: {
|
|
146
|
-
|
|
146
|
+
maxWidth: width
|
|
147
147
|
}
|
|
148
148
|
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
149
149
|
ref: text,
|
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getObjTypeMapText = exports.PlanReportType = exports.
|
|
6
|
+
exports.getObjTypeMapText = exports.PlanReportType = exports.OkrRiskMapping = exports.ObjectType = exports.EStatusStatus2ClassType = exports.EShareType = exports.EObjType = exports.EFeedType = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
10
10
|
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; }
|
|
11
11
|
|
|
12
12
|
var OkrRiskMapping = {
|
|
13
|
-
0:
|
|
13
|
+
0: 'normal',
|
|
14
14
|
// 正常推进
|
|
15
|
-
1:
|
|
15
|
+
1: 'normal',
|
|
16
16
|
// 正常推进
|
|
17
|
-
2:
|
|
17
|
+
2: 'risk',
|
|
18
18
|
// 注意风险
|
|
19
|
-
3:
|
|
19
|
+
3: 'delay',
|
|
20
20
|
// 已有风险
|
|
21
|
-
4:
|
|
21
|
+
4: 'end',
|
|
22
22
|
// kr及o全都完成
|
|
23
|
-
5:
|
|
23
|
+
5: 'delay',
|
|
24
24
|
// 延期完成
|
|
25
|
-
6:
|
|
25
|
+
6: 'normal' // 正常推进
|
|
26
26
|
|
|
27
27
|
};
|
|
28
28
|
exports.OkrRiskMapping = OkrRiskMapping;
|
|
@@ -82,7 +82,7 @@ exports.EObjType = EObjType;
|
|
|
82
82
|
var getObjTypeMapText = function getObjTypeMapText(key) {
|
|
83
83
|
var _data;
|
|
84
84
|
|
|
85
|
-
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)(
|
|
85
|
+
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)('Menu_Title_Projects')), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)('Mod_Tasks')), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)('Mod_Objective')), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)('Mod_KeyResults')), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)('Pro_page_Plan_Milestone')), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)('Pro_page_V_Tab_Kanban')), _defineProperty(_data, EObjType.Report, '总结'), _data);
|
|
86
86
|
return data[key];
|
|
87
87
|
};
|
|
88
88
|
|
|
@@ -90,39 +90,34 @@ exports.getObjTypeMapText = getObjTypeMapText;
|
|
|
90
90
|
|
|
91
91
|
var ObjectType = function ObjectType() {
|
|
92
92
|
return {
|
|
93
|
-
1: (0, _getLocale.getLocale)(
|
|
94
|
-
4: (0, _getLocale.getLocale)(
|
|
95
|
-
5: (0, _getLocale.getLocale)(
|
|
96
|
-
6: (0, _getLocale.getLocale)(
|
|
97
|
-
7: (0, _getLocale.getLocale)(
|
|
98
|
-
8: (0, _getLocale.getLocale)(
|
|
99
|
-
10: (0, _getLocale.getLocale)(
|
|
100
|
-
11: (0, _getLocale.getLocale)(
|
|
101
|
-
12: (0, _getLocale.getLocale)(
|
|
102
|
-
62: (0, _getLocale.getLocale)(
|
|
103
|
-
65: (0, _getLocale.getLocale)(
|
|
104
|
-
70: (0, _getLocale.getLocale)(
|
|
105
|
-
79: (0, _getLocale.getLocale)(
|
|
106
|
-
80: (0, _getLocale.getLocale)(
|
|
107
|
-
42: (0, _getLocale.getLocale)(
|
|
93
|
+
1: (0, _getLocale.getLocale)('Mod_sannouncement'),
|
|
94
|
+
4: (0, _getLocale.getLocale)('Menu_Title_Projects'),
|
|
95
|
+
5: (0, _getLocale.getLocale)('Mod_sPerformanceForm'),
|
|
96
|
+
6: (0, _getLocale.getLocale)('Mod_sPerformanceGoals'),
|
|
97
|
+
7: (0, _getLocale.getLocale)('Mod_stasks'),
|
|
98
|
+
8: (0, _getLocale.getLocale)('Mod_sDailySummary'),
|
|
99
|
+
10: (0, _getLocale.getLocale)('Feed_sFeed'),
|
|
100
|
+
11: (0, _getLocale.getLocale)('Pro_page_Plan'),
|
|
101
|
+
12: (0, _getLocale.getLocale)('Feed_OperationTasks'),
|
|
102
|
+
62: (0, _getLocale.getLocale)('Mod_sobjective'),
|
|
103
|
+
65: (0, _getLocale.getLocale)('Feed_Keyresults'),
|
|
104
|
+
70: (0, _getLocale.getLocale)('OKR_MyO_KRP_Review'),
|
|
105
|
+
79: (0, _getLocale.getLocale)('Mod_skeyprogress'),
|
|
106
|
+
80: (0, _getLocale.getLocale)('Feed_sAnnouncement'),
|
|
107
|
+
42: (0, _getLocale.getLocale)('OKR_MyO_E_Reward')
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
exports.ObjectType = ObjectType;
|
|
112
112
|
var EStatusStatus2ClassType = {
|
|
113
|
-
2:
|
|
114
|
-
1:
|
|
115
|
-
4:
|
|
116
|
-
3:
|
|
117
|
-
6:
|
|
118
|
-
0:
|
|
119
|
-
5:
|
|
113
|
+
2: 'tu-icon-finished',
|
|
114
|
+
1: 'tu-icon-running',
|
|
115
|
+
4: 'tu-icon-canceled',
|
|
116
|
+
3: 'tu-icon-deferred',
|
|
117
|
+
6: 'tu-icon-paused',
|
|
118
|
+
0: 'tu-icon-notstart',
|
|
119
|
+
5: 'tu-icon-jiantou-right'
|
|
120
120
|
};
|
|
121
121
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
122
|
-
var PlanReportType = [
|
|
123
|
-
exports.PlanReportType = PlanReportType;
|
|
124
|
-
var PlanReportTrackActionNameMap = {
|
|
125
|
-
titaPlanReport: "动态日报推送",
|
|
126
|
-
titaPlanManagerReport: "动态日报推送-管理者"
|
|
127
|
-
};
|
|
128
|
-
exports.PlanReportTrackActionNameMap = PlanReportTrackActionNameMap;
|
|
122
|
+
var PlanReportType = ['titaPlanReport', 'titaPlanManagerReport'];
|
|
123
|
+
exports.PlanReportType = PlanReportType;
|
|
@@ -29,8 +29,6 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
29
29
|
|
|
30
30
|
var _context = require("../../context");
|
|
31
31
|
|
|
32
|
-
var _constant = require("../../constant");
|
|
33
|
-
|
|
34
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
33
|
|
|
36
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); }
|
|
@@ -63,13 +61,12 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
63
61
|
|
|
64
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
65
63
|
|
|
66
|
-
var prefix =
|
|
64
|
+
var prefix = 'titaui-dynamic-item';
|
|
67
65
|
|
|
68
66
|
var DynamicFooter = function DynamicFooter(_ref) {
|
|
69
67
|
var _getBSGlobal;
|
|
70
68
|
|
|
71
|
-
var data = _ref.data
|
|
72
|
-
dailyReportType = _ref.dailyReportType;
|
|
69
|
+
var data = _ref.data;
|
|
73
70
|
var feedId = data.feedId,
|
|
74
71
|
feedComments = data.feedComments,
|
|
75
72
|
praiseType = data.praiseType,
|
|
@@ -98,9 +95,8 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
98
95
|
setUpvoteModalVisible = _useState8[1];
|
|
99
96
|
|
|
100
97
|
var communicationRef = (0, _react.useRef)();
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
return item.AppId === "950";
|
|
98
|
+
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
|
|
99
|
+
return item.AppId === '950';
|
|
104
100
|
}));
|
|
105
101
|
|
|
106
102
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
@@ -112,18 +108,16 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
112
108
|
};
|
|
113
109
|
|
|
114
110
|
var onChangeParse = function onChangeParse(type) {
|
|
115
|
-
var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)(
|
|
111
|
+
var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)('loginUserInfo'),
|
|
116
112
|
Id = _getBSGlobal2.Id;
|
|
117
113
|
|
|
118
114
|
var data = _toConsumableArray(praiseData).filter(function (item) {
|
|
119
115
|
return Number("".concat(item.userId)) !== Number("".concat(Id));
|
|
120
116
|
});
|
|
121
117
|
|
|
122
|
-
var actionName = "";
|
|
123
|
-
|
|
124
118
|
if (type) {
|
|
125
|
-
var avatar = (0, _bsGlobal.getBSGlobal)(
|
|
126
|
-
var name = (0, _bsGlobal.getBSGlobal)(
|
|
119
|
+
var avatar = (0, _bsGlobal.getBSGlobal)('loginUserInfo').UserAvatar;
|
|
120
|
+
var name = (0, _bsGlobal.getBSGlobal)('loginUserInfo').Name;
|
|
127
121
|
avatar.color = avatar.Color;
|
|
128
122
|
avatar.medium = avatar.Medium;
|
|
129
123
|
var parseUser = {
|
|
@@ -133,18 +127,8 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
133
127
|
praiseType: type
|
|
134
128
|
};
|
|
135
129
|
setPraiseData([parseUser].concat(_toConsumableArray(data)));
|
|
136
|
-
actionName = "点赞";
|
|
137
130
|
} else {
|
|
138
131
|
setPraiseData(data);
|
|
139
|
-
actionName = "取消点赞";
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (window.titaTracker) {
|
|
143
|
-
window.titaTracker("action").record({
|
|
144
|
-
actionName: actionName,
|
|
145
|
-
actionGroup: "互动",
|
|
146
|
-
productName: productName
|
|
147
|
-
});
|
|
148
132
|
}
|
|
149
133
|
};
|
|
150
134
|
|
|
@@ -159,14 +143,6 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
159
143
|
};
|
|
160
144
|
|
|
161
145
|
if (window.util) {
|
|
162
|
-
if (window.titaTracker) {
|
|
163
|
-
window.titaTracker("action").record({
|
|
164
|
-
actionName: "打开打赏弹层",
|
|
165
|
-
actionGroup: "互动",
|
|
166
|
-
productName: productName
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
|
|
170
146
|
window.util.rewardGetFile(function (myReward) {
|
|
171
147
|
myReward.renderPayReward(data);
|
|
172
148
|
});
|
|
@@ -175,25 +151,12 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
175
151
|
|
|
176
152
|
var renderUpvoteCount = function renderUpvoteCount(type, count) {
|
|
177
153
|
if (count === 0) {
|
|
178
|
-
return
|
|
154
|
+
return '';
|
|
179
155
|
}
|
|
180
156
|
|
|
181
157
|
return count || type;
|
|
182
158
|
};
|
|
183
159
|
|
|
184
|
-
var handleReply = function handleReply(_ref2) {
|
|
185
|
-
var submitType = _ref2.submitType;
|
|
186
|
-
var actionName = submitType === "delete" ? "删除评论" : "评论";
|
|
187
|
-
|
|
188
|
-
if (window.titaTracker) {
|
|
189
|
-
window.titaTracker("action").record({
|
|
190
|
-
actionName: actionName,
|
|
191
|
-
actionGroup: "互动",
|
|
192
|
-
productName: productName
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
};
|
|
196
|
-
|
|
197
160
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
161
|
className: (0, _classnames["default"])("".concat(prefix, "__footer"))
|
|
199
162
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -226,7 +189,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
226
189
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
227
190
|
condition: hasRewardBtn
|
|
228
191
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
229
|
-
overlay: (0, _getLocale.getLocale)(
|
|
192
|
+
overlay: (0, _getLocale.getLocale)('Feed_Approval'),
|
|
230
193
|
align: {
|
|
231
194
|
offset: [0, 0]
|
|
232
195
|
},
|
|
@@ -236,7 +199,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
236
199
|
className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
|
|
237
200
|
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
238
201
|
onClick: handleCommentClick,
|
|
239
|
-
className: (0, _classnames["default"])(
|
|
202
|
+
className: (0, _classnames["default"])('tu-icon-pinglun-m', "".concat(prefix, "__footer-icon"))
|
|
240
203
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
241
204
|
condition: feedComments.total > 0
|
|
242
205
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -271,7 +234,6 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
271
234
|
usePropsComment: usePropsComment,
|
|
272
235
|
communication: feedComments.comments,
|
|
273
236
|
totalCommunicationNum: feedComments.total,
|
|
274
|
-
onReplyChange: handleReply,
|
|
275
237
|
showUser: true,
|
|
276
238
|
showDefaultInput: true
|
|
277
239
|
}))));
|
|
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
17
17
|
|
|
18
18
|
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); }
|
|
19
19
|
|
|
20
|
-
var prefixCls =
|
|
20
|
+
var prefixCls = 'titaui-dynamic-item';
|
|
21
21
|
|
|
22
22
|
var DynamicAIDialy = function DynamicAIDialy(_ref) {
|
|
23
23
|
var data = _ref.data;
|
|
@@ -26,14 +26,12 @@ var DynamicAIDialy = function DynamicAIDialy(_ref) {
|
|
|
26
26
|
return (0, _utils.getChartProps)(data.biId);
|
|
27
27
|
}, [data.biId]);
|
|
28
28
|
|
|
29
|
-
var type = chartQuery.type;
|
|
30
29
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
31
30
|
className: prefixCls
|
|
32
31
|
}, /*#__PURE__*/_react["default"].createElement(_supersetCharts["default"], _extends({
|
|
33
32
|
feedData: data
|
|
34
33
|
}, chartQuery)), /*#__PURE__*/_react["default"].createElement(_dynamicFooter["default"], {
|
|
35
|
-
data: data
|
|
36
|
-
dailyReportType: type
|
|
34
|
+
data: data
|
|
37
35
|
}));
|
|
38
36
|
};
|
|
39
37
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
vertical-align: top;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.tita-okrdt-tree__e-task-node-priority
|
|
37
|
+
.tita-okrdt-tree__e-task-node-priority > span {
|
|
38
38
|
display: inline-block;
|
|
39
39
|
vertical-align: text-bottom;
|
|
40
40
|
height: 16px;
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
vertical-align: top;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.tita-okrdt-tree__e-project-node-priority
|
|
106
|
+
.tita-okrdt-tree__e-project-node-priority > span {
|
|
107
107
|
display: inline-block;
|
|
108
108
|
vertical-align: text-bottom;
|
|
109
109
|
height: 16px;
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
vertical-align: top;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
.tita-okrdt-tree__e-task-level2-node-priority
|
|
167
|
+
.tita-okrdt-tree__e-task-level2-node-priority > span {
|
|
168
168
|
display: inline-block;
|
|
169
169
|
vertical-align: text-bottom;
|
|
170
170
|
height: 16px;
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
.tita-okrdt-tree__e-empty-node {
|
|
195
195
|
font-size: 12px;
|
|
196
196
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
197
|
-
color: #
|
|
197
|
+
color: #F6BD16;
|
|
198
198
|
line-height: 18px;
|
|
199
199
|
padding-left: 12px;
|
|
200
200
|
}
|
|
@@ -11,14 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
-
var _titaUi = require("tita-ui");
|
|
15
|
-
|
|
16
14
|
var _dropSelector = _interopRequireDefault(require("../drop-selector"));
|
|
17
15
|
|
|
18
16
|
var _getLocale = require("../../utils/getLocale");
|
|
19
17
|
|
|
20
|
-
var _constant = require("../task-tree/task-item-node/constant");
|
|
21
|
-
|
|
22
18
|
require("./index.css");
|
|
23
19
|
|
|
24
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -68,13 +64,9 @@ var EPriority = function EPriority(props) {
|
|
|
68
64
|
checked: level,
|
|
69
65
|
canEdit: hasAuth && status !== '5',
|
|
70
66
|
limitHeight: false,
|
|
71
|
-
trigger: /*#__PURE__*/_react["default"].createElement("
|
|
72
|
-
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-label"))
|
|
73
|
-
}, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
|
|
74
|
-
content: (0, _constant.getPriorityTextMapping)()[level]
|
|
75
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
|
+
trigger: /*#__PURE__*/_react["default"].createElement("span", {
|
|
76
68
|
className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p").concat(level))
|
|
77
|
-
})
|
|
69
|
+
})
|
|
78
70
|
}, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
|
|
79
71
|
name: "1"
|
|
80
72
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -36,10 +36,11 @@ var _getUserInfo = (0, _bsGlobal.getUserInfo)(),
|
|
|
36
36
|
IsLeader = _getUserInfo.IsLeader,
|
|
37
37
|
IsBoss = _getUserInfo.IsBoss,
|
|
38
38
|
IsRoot = _getUserInfo.IsRoot,
|
|
39
|
-
Role = _getUserInfo.Role
|
|
39
|
+
Role = _getUserInfo.Role,
|
|
40
|
+
IsHrbp = _getUserInfo.IsHrbp;
|
|
40
41
|
|
|
41
42
|
var performanceManageAuthority = IsAssessManager || IsLeader && StartAssessByDepartmentLeader || StartAssessByUser;
|
|
42
|
-
var performanceStatisticsAuthority = IsAssessManager || IsBoss || IsRoot && Role
|
|
43
|
+
var performanceStatisticsAuthority = IsAssessManager || IsBoss || IsRoot && Role !== 4 || IsLeader;
|
|
43
44
|
var PAGE_MY_APPRAISAL = "my-appraisal";
|
|
44
45
|
exports.PAGE_MY_APPRAISAL = PAGE_MY_APPRAISAL;
|
|
45
46
|
var PAGE_EVALUATE_APPRAISAL = "evaluate-appraisal";
|
|
@@ -86,7 +87,7 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
86
87
|
label: _i18n.locale.menu_department_ass,
|
|
87
88
|
key: PAGE_DEPART_APPRAISAL,
|
|
88
89
|
href: "#/performance?reactRouterName=department",
|
|
89
|
-
isShow: IsLeader
|
|
90
|
+
isShow: IsLeader || IsHrbp
|
|
90
91
|
}, {
|
|
91
92
|
icon: "",
|
|
92
93
|
label: _i18n.locale.menu_management_ass,
|
|
@@ -151,16 +152,16 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
151
152
|
_createClass(AppraisalMenus, [{
|
|
152
153
|
key: "getMenus",
|
|
153
154
|
value: function getMenus() {
|
|
154
|
-
var menus = this.formateToTreeNodeData(
|
|
155
|
+
var menus = this.formateToTreeNodeData();
|
|
155
156
|
return menus;
|
|
156
157
|
}
|
|
157
158
|
}, {
|
|
158
159
|
key: "formateToTreeNodeData",
|
|
159
|
-
value: function formateToTreeNodeData(
|
|
160
|
+
value: function formateToTreeNodeData() {
|
|
160
161
|
var treeNodes = [];
|
|
161
162
|
|
|
162
|
-
for (var i = 0; i < menus.length; i
|
|
163
|
-
var menu = menus[i];
|
|
163
|
+
for (var i = 0; i < this.menus.length; i += 1) {
|
|
164
|
+
var menu = this.menus[i];
|
|
164
165
|
|
|
165
166
|
if (menu.isShow) {
|
|
166
167
|
treeNodes.push({
|
|
@@ -117,97 +117,6 @@
|
|
|
117
117
|
position: relative;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.titaui-nav-top-menu__tips {
|
|
121
|
-
position: relative;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.titaui-nav-top-menu__tips-new {
|
|
125
|
-
width: 36px;
|
|
126
|
-
height: 26px;
|
|
127
|
-
position: absolute;
|
|
128
|
-
top: 4px;
|
|
129
|
-
right: -12px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.titaui-nav-top-menu__tips-box {
|
|
133
|
-
width: 308px;
|
|
134
|
-
height: 142px;
|
|
135
|
-
box-sizing: border-box;
|
|
136
|
-
padding: 16px;
|
|
137
|
-
background: #5c8eff;
|
|
138
|
-
box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.3);
|
|
139
|
-
border: 1px solid #eff0f1;
|
|
140
|
-
border-radius: 12px;
|
|
141
|
-
z-index: 99;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.titaui-nav-top-menu__tips-box-head {
|
|
145
|
-
padding-left: 24px;
|
|
146
|
-
background-image: url("./img/wecome-temp.png");
|
|
147
|
-
background-position: 0 0;
|
|
148
|
-
background-repeat: no-repeat;
|
|
149
|
-
background-size: 20px 20px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.titaui-nav-top-menu__tips-box-title {
|
|
153
|
-
display: block;
|
|
154
|
-
font-size: 14px;
|
|
155
|
-
color: #ffffff;
|
|
156
|
-
line-height: 22px;
|
|
157
|
-
font-weight: 600;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.titaui-nav-top-menu__tips-box-content {
|
|
161
|
-
font-size: 12px;
|
|
162
|
-
color: #ffffff;
|
|
163
|
-
line-height: 20px;
|
|
164
|
-
margin-top: 10px;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.titaui-nav-top-menu__tips-box-ok {
|
|
168
|
-
height: 28px;
|
|
169
|
-
margin-top: 8px;
|
|
170
|
-
margin-left: 210px;
|
|
171
|
-
background: #ffffff;
|
|
172
|
-
box-shadow: 0px -4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
173
|
-
border-radius: 14px;
|
|
174
|
-
box-sizing: border-box;
|
|
175
|
-
padding: 3px 17px;
|
|
176
|
-
font-size: 14px;
|
|
177
|
-
color: #2879ff;
|
|
178
|
-
line-height: 22px;
|
|
179
|
-
cursor: pointer;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.titaui-nav-top-menu__tips-triangle {
|
|
183
|
-
position: absolute;
|
|
184
|
-
top: -4px;
|
|
185
|
-
left: 50%;
|
|
186
|
-
margin-left: -4px;
|
|
187
|
-
width: 0;
|
|
188
|
-
height: 0;
|
|
189
|
-
border-left: 5px solid transparent;
|
|
190
|
-
border-right: 5px solid transparent;
|
|
191
|
-
border-bottom: 5px solid #fff;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.titaui-nav-top-menu__tips-triangle::after {
|
|
195
|
-
content: '';
|
|
196
|
-
width: 0;
|
|
197
|
-
height: 0;
|
|
198
|
-
position: absolute;
|
|
199
|
-
left: -4px;
|
|
200
|
-
top: 2px;
|
|
201
|
-
border-left: solid 4px transparent;
|
|
202
|
-
border-right: solid 4px transparent;
|
|
203
|
-
border-bottom: solid 4px #5c8eff;
|
|
204
|
-
z-index: 99;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.titaui-nav-top-menu__tips-hide {
|
|
208
|
-
display: none;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
120
|
.titaui-nav-top-menu .rc-overflow-item {
|
|
212
121
|
position: relative;
|
|
213
122
|
}
|