@titaui/pc 1.12.13 → 1.12.16
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/communication/index.js +6 -0
- package/lib/components/drawer/index.css +9 -0
- package/lib/components/drawer/index.js +11 -8
- package/lib/components/dynamic/dynamic-item/index.js +9 -1
- package/lib/components/dynamic/dynamic-list/index.js +19 -2
- package/lib/components/form/form-fields/date/index.js +13 -13
- package/lib/components/help-card/image/liaojie1.svg +50 -0
- package/lib/components/help-card/index.css +4 -4
- package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +110 -9
- package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
- package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/yuyue.png +0 -0
- package/lib/components/nav-top/components/app-center/index.css +170 -0
- package/lib/components/nav-top/components/app-center/index.js +211 -0
- package/lib/components/nav-top/components/app-center/interface.js +19 -0
- package/lib/components/nav-top/components/menu/index.js +2 -6
- package/lib/components/nav-top/components/user-message/images/bell-1.svg +13 -0
- package/lib/components/nav-top/components/user-message/index.js +21 -21
- package/lib/components/nav-top/images/app-center.png +0 -0
- package/lib/components/nav-top/images/home.svg +16 -0
- package/lib/components/nav-top/index.css +61 -8
- package/lib/components/nav-top/index.js +56 -35
- package/lib/components/nav-top/utils.js +464 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +82 -34
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/order-have-award/img/award.png +0 -0
- package/lib/components/order-have-award/index.css +5 -0
- package/lib/components/order-have-award/index.js +83 -0
- package/lib/components/order-have-award/interface.js +19 -0
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/picker/components/panels/date-panel/date-body.js +19 -31
- package/lib/components/picker/components/panels/date-panel/date-head.js +8 -8
- package/lib/components/picker/components/panels/date-panel/index.js +1 -1
- package/lib/components/picker/components/panels/month-panel/index.css +0 -5
- package/lib/components/picker/components/panels/month-panel/index.js +2 -2
- package/lib/components/picker/components/panels/month-panel/month-body.js +5 -4
- package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
- package/lib/components/picker/components/panels/year-panel/index.css +0 -5
- package/lib/components/picker/components/panels/year-panel/index.js +1 -1
- package/lib/components/picker/components/panels/year-panel/year-body.js +3 -10
- package/lib/components/picker/components/picker-trigger/index.css +1 -6
- package/lib/components/picker/components/picker-trigger/index.js +11 -16
- package/lib/components/picker/context.js +2 -17
- package/lib/components/picker/index.css +1 -29
- package/lib/components/picker/index.js +0 -3
- package/lib/components/picker/picker-panels.js +64 -79
- package/lib/components/picker/picker.js +30 -44
- package/lib/components/picker/utils.js +11 -168
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/request-api.js +5 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/tooltip/tooltip.js +9 -4
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/request-apis.js +39 -9
- package/lib/components/user-selector/searched-panel/index.js +7 -1
- package/lib/pages/aha2021/index.css +7 -0
- package/lib/pages/aha2021/index.js +14 -8
- package/lib/pages/aha2021/new-menu-switcher/index.css +44 -0
- package/lib/pages/aha2021/new-menu-switcher/index.js +85 -0
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +15 -0
- package/lib/pages/okr-map/level2-search/user.js +1 -0
- package/package.json +1 -1
- package/lib/components/picker/components/cross.svg +0 -17
- package/lib/components/picker/range-picker/components/picker-trigger/index.css +0 -97
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +0 -109
- package/lib/components/picker/range-picker/components/placeholder/index.js +0 -91
- package/lib/components/picker/range-picker/components/select-input/index.js +0 -72
- package/lib/components/picker/range-picker/components/shortcuts/index.js +0 -45
- package/lib/components/picker/range-picker/index.css +0 -158
- package/lib/components/picker/range-picker/index.js +0 -263
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -386,6 +386,9 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
386
386
|
userSelectorPopAlign = _this$props7.userSelectorPopAlign,
|
|
387
387
|
emotionsSelectorPopAlign = _this$props7.emotionsSelectorPopAlign,
|
|
388
388
|
showAtAll = _this$props7.showAtAll,
|
|
389
|
+
atAllTipText = _this$props7.atAllTipText,
|
|
390
|
+
atAllValue = _this$props7.atAllValue,
|
|
391
|
+
atAllText = _this$props7.atAllText,
|
|
389
392
|
commentCount = _this$props7.commentCount,
|
|
390
393
|
useCustomMblog = _this$props7.useCustomMblog,
|
|
391
394
|
_this$props7$submitTe = _this$props7.submitText,
|
|
@@ -471,6 +474,9 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
471
474
|
isShowSendSms: isShowSendSms,
|
|
472
475
|
submitText: submitText,
|
|
473
476
|
showAtAll: showAtAll,
|
|
477
|
+
atAllText: atAllText,
|
|
478
|
+
atAllTipText: atAllTipText,
|
|
479
|
+
atAllValue: atAllValue,
|
|
474
480
|
commentsTypeKey: feedId,
|
|
475
481
|
submitStatus: submitStatus,
|
|
476
482
|
userSelectorPopAlign: userSelectorPopAlign,
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.titaui-drawer.drawer-open.drawer-top .drawer-content-wrapper {
|
|
14
|
+
box-shadow: 0px 0px 24px 0px rgba(127, 145, 180, 0.2);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
.titaui-drawer-content {
|
|
14
18
|
height: 100%;
|
|
15
19
|
display: flex;
|
|
@@ -203,3 +207,8 @@
|
|
|
203
207
|
.drawer-right .drawer-content {
|
|
204
208
|
border-radius: 24px 0 0 24px;
|
|
205
209
|
}
|
|
210
|
+
|
|
211
|
+
.drawer-top .drawer-content-wrapper,
|
|
212
|
+
.drawer-top .drawer-content {
|
|
213
|
+
border-radius: 0 0 24px 24px;
|
|
214
|
+
}
|
|
@@ -56,7 +56,7 @@ var Drawer = function Drawer(props) {
|
|
|
56
56
|
|
|
57
57
|
var visible = props.visible,
|
|
58
58
|
_props$placement = props.placement,
|
|
59
|
-
placement = _props$placement === void 0 ?
|
|
59
|
+
placement = _props$placement === void 0 ? "right" : _props$placement,
|
|
60
60
|
children = props.children,
|
|
61
61
|
_props$mask = props.mask,
|
|
62
62
|
mask = _props$mask === void 0 ? false : _props$mask,
|
|
@@ -94,27 +94,30 @@ var Drawer = function Drawer(props) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
var autoClose = function autoClose(e) {
|
|
97
|
-
if ((0, _dom.hasAncestorElement)(e.target,
|
|
97
|
+
if ((0, _dom.hasAncestorElement)(e.target, "document-mouse-event-ignore,rc-tooltip,titaui-popup,rc-dialog-root,common-modal,in-modal,task-hot-add")) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
|
|
98
101
|
onClose();
|
|
99
102
|
};
|
|
100
103
|
|
|
101
104
|
(0, _react.useEffect)(function () {
|
|
102
105
|
if (autoClosable) {
|
|
103
|
-
document.addEventListener(
|
|
106
|
+
document.addEventListener("mousedown", autoClose);
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
return function () {
|
|
107
|
-
document.removeEventListener(
|
|
110
|
+
document.removeEventListener("mousedown", autoClose);
|
|
108
111
|
};
|
|
109
112
|
}, []);
|
|
110
113
|
return /*#__PURE__*/_react["default"].createElement(DrawerContext.Provider, {
|
|
111
114
|
value: {
|
|
112
115
|
close: function close() {
|
|
113
|
-
|
|
116
|
+
onClose();
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
}, /*#__PURE__*/_react["default"].createElement(_rcDrawer["default"], _extends({
|
|
117
|
-
className: (0, _classnames["default"])(
|
|
120
|
+
className: (0, _classnames["default"])("titaui-drawer", "document-mouse-event-ignore", className),
|
|
118
121
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
119
122
|
zIndex: zIndex
|
|
120
123
|
})
|
|
@@ -167,7 +170,7 @@ function DrawerHeader(_ref) {
|
|
|
167
170
|
onClick: manager && manager.goBack
|
|
168
171
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
169
172
|
className: "tu-icon-fanhui"
|
|
170
|
-
}), (0, _getLocale.getLocale)(
|
|
173
|
+
}), (0, _getLocale.getLocale)("Mod_Back")), showBackBtn && hasContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
174
|
className: "titaui-drawer-header-divider"
|
|
172
175
|
}), hasContent && content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
176
|
style: {
|
|
@@ -178,7 +181,7 @@ function DrawerHeader(_ref) {
|
|
|
178
181
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
179
182
|
approvalSetting: approvalSetting,
|
|
180
183
|
detailInfo: detailInfo,
|
|
181
|
-
title: (0, _getLocale.getLocale)(
|
|
184
|
+
title: (0, _getLocale.getLocale)("Mod_MoreOperate"),
|
|
182
185
|
icon: "tu-icon-10",
|
|
183
186
|
children: collapsedActions
|
|
184
187
|
}), showClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -154,7 +154,11 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
154
154
|
setUpvoteModalVisible = _useState12[1];
|
|
155
155
|
|
|
156
156
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
157
|
-
searchKeyWord = _useContext.searchKeyWord
|
|
157
|
+
searchKeyWord = _useContext.searchKeyWord,
|
|
158
|
+
atAllText = _useContext.atAllText,
|
|
159
|
+
atAllTipText = _useContext.atAllTipText,
|
|
160
|
+
atAllValue = _useContext.atAllValue,
|
|
161
|
+
isShowAtAll = _useContext.isShowAtAll;
|
|
158
162
|
|
|
159
163
|
var hasDynamicOpereateAuth = new _auth.DynamicManagerAuth().hasAuth();
|
|
160
164
|
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
|
|
@@ -515,6 +519,10 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
515
519
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
516
520
|
className: (0, _classnames["default"])("".concat(prefix, "__communication"))
|
|
517
521
|
}, /*#__PURE__*/_react["default"].createElement(_communication["default"], {
|
|
522
|
+
atAllText: atAllText,
|
|
523
|
+
atAllTipText: atAllTipText,
|
|
524
|
+
atAllValue: atAllValue,
|
|
525
|
+
showAtAll: isShowAtAll,
|
|
518
526
|
feedId: feedId,
|
|
519
527
|
commentCount: 3,
|
|
520
528
|
ref: communicationRef,
|
|
@@ -21,8 +21,14 @@ var _context = require("../context");
|
|
|
21
21
|
|
|
22
22
|
require("./index.css");
|
|
23
23
|
|
|
24
|
+
var _excluded = ["data", "dynamicShareIsShowToping", "onDeleteFeed", "height", "searchKeyWord", "atAllText", "atAllTipText", "atAllValue", "isShowAtAll"];
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
28
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
+
|
|
30
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
|
+
|
|
26
32
|
var prefix = 'titaui-dynamic-list';
|
|
27
33
|
|
|
28
34
|
var DynamicList = function DynamicList(_ref) {
|
|
@@ -32,7 +38,14 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
32
38
|
_ref$height = _ref.height,
|
|
33
39
|
height = _ref$height === void 0 ? -1 : _ref$height,
|
|
34
40
|
_ref$searchKeyWord = _ref.searchKeyWord,
|
|
35
|
-
searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord
|
|
41
|
+
searchKeyWord = _ref$searchKeyWord === void 0 ? "" : _ref$searchKeyWord,
|
|
42
|
+
atAllText = _ref.atAllText,
|
|
43
|
+
atAllTipText = _ref.atAllTipText,
|
|
44
|
+
atAllValue = _ref.atAllValue,
|
|
45
|
+
isShowAtAll = _ref.isShowAtAll,
|
|
46
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
47
|
+
|
|
48
|
+
console.log(123, restProps);
|
|
36
49
|
|
|
37
50
|
var handleDeleteFeed = function handleDeleteFeed(feedId) {
|
|
38
51
|
if (onDeleteFeed) {
|
|
@@ -42,7 +55,11 @@ var DynamicList = function DynamicList(_ref) {
|
|
|
42
55
|
|
|
43
56
|
return /*#__PURE__*/_react["default"].createElement(_context.SearchKeyContext.Provider, {
|
|
44
57
|
value: {
|
|
45
|
-
searchKeyWord: searchKeyWord
|
|
58
|
+
searchKeyWord: searchKeyWord,
|
|
59
|
+
atAllText: atAllText,
|
|
60
|
+
atAllTipText: atAllTipText,
|
|
61
|
+
atAllValue: atAllValue,
|
|
62
|
+
isShowAtAll: isShowAtAll
|
|
46
63
|
}
|
|
47
64
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
48
65
|
className: prefix,
|
|
@@ -29,7 +29,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
29
29
|
|
|
30
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
31
|
|
|
32
|
-
var prefixCls =
|
|
32
|
+
var prefixCls = "form-field-date";
|
|
33
33
|
|
|
34
34
|
var Date = function Date(props) {
|
|
35
35
|
var label = props.label,
|
|
@@ -46,18 +46,18 @@ var Date = function Date(props) {
|
|
|
46
46
|
var newDate;
|
|
47
47
|
|
|
48
48
|
switch (type) {
|
|
49
|
-
case
|
|
49
|
+
case "date":
|
|
50
50
|
newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
|
|
51
|
-
year: (0, _moment["default"])(date
|
|
52
|
-
month: (0, _moment["default"])(date
|
|
53
|
-
date: (0, _moment["default"])(date
|
|
51
|
+
year: (0, _moment["default"])(date).year(),
|
|
52
|
+
month: (0, _moment["default"])(date).month(),
|
|
53
|
+
date: (0, _moment["default"])(date).date()
|
|
54
54
|
});
|
|
55
55
|
break;
|
|
56
56
|
|
|
57
|
-
case
|
|
57
|
+
case "time":
|
|
58
58
|
newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
|
|
59
|
-
hour: (0, _moment["default"])(date
|
|
60
|
-
minute: (0, _moment["default"])(date
|
|
59
|
+
hour: (0, _moment["default"])(date, "HH:mm").hour(),
|
|
60
|
+
minute: (0, _moment["default"])(date, "HH:mm").minute()
|
|
61
61
|
});
|
|
62
62
|
break;
|
|
63
63
|
|
|
@@ -69,7 +69,7 @@ var Date = function Date(props) {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
-
className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout ===
|
|
72
|
+
className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout === "row"))
|
|
73
73
|
}, !!label && /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
74
|
className: "".concat(prefixCls, "__label")
|
|
75
75
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -79,23 +79,23 @@ var Date = function Date(props) {
|
|
|
79
79
|
}, "*")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
80
|
className: (0, _classnames["default"])("".concat(prefixCls, "__pickers"))
|
|
81
81
|
}, /*#__PURE__*/_react["default"].createElement(_picker["default"], _extends({
|
|
82
|
-
value:
|
|
82
|
+
value: value,
|
|
83
83
|
onChange: function onChange(date) {
|
|
84
|
-
return onDateChange(date,
|
|
84
|
+
return onDateChange(date, "date");
|
|
85
85
|
},
|
|
86
86
|
popupAlign: datePopupAlign
|
|
87
87
|
}, restProps)), /*#__PURE__*/_react["default"].createElement(_timePicker["default"], _extends({
|
|
88
88
|
value: value,
|
|
89
89
|
popupAlign: timePopupAlign,
|
|
90
90
|
onChange: function onChange(time) {
|
|
91
|
-
return onDateChange(time,
|
|
91
|
+
return onDateChange(time, "time");
|
|
92
92
|
}
|
|
93
93
|
}, restProps))));
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
Date.defaultProps = {
|
|
97
97
|
disabled: false,
|
|
98
|
-
layout:
|
|
98
|
+
layout: "column",
|
|
99
99
|
require: false
|
|
100
100
|
};
|
|
101
101
|
var _default = Date;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="42px" height="42px" viewBox="0 0 42 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>联系客服</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="50%" y1="3.061617e-15%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#4E90FF" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#2879FF" offset="100%"></stop>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<circle id="path-2" cx="21" cy="21" r="21"></circle>
|
|
10
|
+
<filter x="-9.5%" y="-9.5%" width="119.0%" height="119.0%" filterUnits="objectBoundingBox" id="filter-3">
|
|
11
|
+
<feMorphology radius="2" operator="erode" in="SourceAlpha" result="shadowSpreadInner1"></feMorphology>
|
|
12
|
+
<feGaussianBlur stdDeviation="3" in="shadowSpreadInner1" result="shadowBlurInner1"></feGaussianBlur>
|
|
13
|
+
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
|
14
|
+
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
|
15
|
+
<feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
|
16
|
+
</filter>
|
|
17
|
+
<path d="M16.0326322,22.3870375 C17.2658552,23.6988927 19.0348583,24.52 21,24.52 C22.9651417,24.52 24.7341448,23.6988927 25.9677254,22.3884226 C28.2561116,22.7713626 30,24.7620278 30,27.16 L30,28.48 C30,30.4240423 28.4240423,32 26.48,32 L15.52,32 C13.5759577,32 12,30.4240423 12,28.48 L12,27.16 C12,24.7620278 13.7438884,22.7713626 16.0326322,22.3870375 Z M21,12.75 C23.7338095,12.75 25.95,15.0646878 25.95,17.92 C25.95,20.7753122 23.7338095,23.09 21,23.09 C18.2661905,23.09 16.05,20.7753122 16.05,17.92 C16.05,15.0646878 18.2661905,12.75 21,12.75 Z" id="path-4"></path>
|
|
18
|
+
<filter x="-8.3%" y="-7.8%" width="116.7%" height="115.6%" filterUnits="objectBoundingBox" id="filter-5">
|
|
19
|
+
<feGaussianBlur stdDeviation="1.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
|
20
|
+
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
|
21
|
+
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
|
22
|
+
<feColorMatrix values="0 0 0 0 0.156862745 0 0 0 0 0.474509804 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
|
23
|
+
</filter>
|
|
24
|
+
<path d="M21,10 C24.9277825,10 28.2259218,12.625855 29.1450821,16.1736317 C29.6496186,16.4041954 30,16.914055 30,17.5057506 L30,19.053028 C30,19.8630456 29.343351,20.5196947 28.5333333,20.5196947 L28.3666667,20.5196947 C27.556649,20.5196947 26.9,19.8630456 26.9,19.053028 L26.9,17.5057506 C26.9,17.0104727 27.1454948,16.5725332 27.5214379,16.3069786 C26.6936147,13.562158 24.0870351,11.5584733 21,11.5584733 C17.9129808,11.5584733 15.3064121,13.5621374 14.4762481,16.3071469 C14.8545052,16.5725332 15.1,17.0104727 15.1,17.5057506 L15.1,19.053028 C15.1,19.8630456 14.443351,20.5196947 13.6333333,20.5196947 L13.4666667,20.5196947 C12.656649,20.5196947 12,19.8630456 12,19.053028 L12,17.5057506 C12,16.9136645 12.3508441,16.4035223 12.8559786,16.171878 C13.7744369,12.6255694 17.0724311,10 21,10 Z" id="path-6"></path>
|
|
25
|
+
<filter x="-2.8%" y="-4.8%" width="105.6%" height="109.5%" filterUnits="objectBoundingBox" id="filter-7">
|
|
26
|
+
<feGaussianBlur stdDeviation="0.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
|
27
|
+
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
|
28
|
+
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
|
29
|
+
<feColorMatrix values="0 0 0 0 0.156862745 0 0 0 0 0.474509804 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
|
30
|
+
</filter>
|
|
31
|
+
</defs>
|
|
32
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
33
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-1142.000000, -684.000000)">
|
|
34
|
+
<g id="联系客服" transform="translate(1142.000000, 684.000000)">
|
|
35
|
+
<g id="椭圆形">
|
|
36
|
+
<use fill="url(#linearGradient-1)" fill-rule="evenodd" xlink:href="#path-2"></use>
|
|
37
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-3)" xlink:href="#path-2"></use>
|
|
38
|
+
</g>
|
|
39
|
+
<g id="形状结合">
|
|
40
|
+
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-4"></use>
|
|
41
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-5)" xlink:href="#path-4"></use>
|
|
42
|
+
</g>
|
|
43
|
+
<g id="形状结合" fill-rule="nonzero">
|
|
44
|
+
<use fill="#FFFFFF" xlink:href="#path-6"></use>
|
|
45
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-7)" xlink:href="#path-6"></use>
|
|
46
|
+
</g>
|
|
47
|
+
</g>
|
|
48
|
+
</g>
|
|
49
|
+
</g>
|
|
50
|
+
</svg>
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.home-fixed-kefu-image {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
18
|
-
background: url("./image/
|
|
19
|
-
background-size:
|
|
16
|
+
width: 42px;
|
|
17
|
+
height: 42px;
|
|
18
|
+
background: url("./image/liaojie1.svg") 50% 50% no-repeat;
|
|
19
|
+
background-size: 42px 42px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.home-fixed-kefu-canceled {
|
|
@@ -29,6 +29,8 @@ var _precls = _interopRequireDefault(require("../../precls"));
|
|
|
29
29
|
|
|
30
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
31
|
|
|
32
|
+
var _tools = require("../../../../utils/tools");
|
|
33
|
+
|
|
32
34
|
require("../../index.css");
|
|
33
35
|
|
|
34
36
|
require("./index.css");
|
|
@@ -81,30 +83,45 @@ function AppraisalMenus(props) {
|
|
|
81
83
|
okrMenusData.current = new _menus["default"]();
|
|
82
84
|
return okrMenusData.current.getMenus();
|
|
83
85
|
}),
|
|
84
|
-
_useState6 = _slicedToArray(_useState5,
|
|
85
|
-
menus = _useState6[0]
|
|
86
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
87
|
+
menus = _useState6[0],
|
|
88
|
+
setMenus = _useState6[1];
|
|
86
89
|
|
|
90
|
+
(0, _react.useEffect)(function () {
|
|
91
|
+
okrMenusData.current = new _menus["default"]();
|
|
92
|
+
var newMenus = okrMenusData.current.getMenus();
|
|
93
|
+
setMenus(newMenus);
|
|
94
|
+
|
|
95
|
+
var _getQueryString = (0, _tools.getQueryString)(),
|
|
96
|
+
_getQueryString$react = _getQueryString.reactRouterName,
|
|
97
|
+
reactRouterName = _getQueryString$react === void 0 ? "" : _getQueryString$react;
|
|
98
|
+
|
|
99
|
+
if (!reactRouterName) {
|
|
100
|
+
window.location.href = newMenus[0].data.href;
|
|
101
|
+
}
|
|
102
|
+
}, [history.location.pathname]); // 判断路由高亮菜单
|
|
87
103
|
|
|
88
104
|
(0, _react.useEffect)(function () {
|
|
89
105
|
var menuHighlight = new _menuHighlight["default"](history);
|
|
90
106
|
menuHighlight.highlight(function (menu) {
|
|
91
|
-
|
|
107
|
+
setSelectedMenuKeys([menu]);
|
|
92
108
|
});
|
|
93
|
-
}, [history.location.pathname, history.location.search]);
|
|
109
|
+
}, [history.location.pathname, history.location.search, menus]);
|
|
94
110
|
|
|
95
111
|
var onSelectHandler = function onSelectHandler(selectedKyes, _ref) {
|
|
96
112
|
var node = _ref.node;
|
|
97
113
|
onSelect(node); // 处理菜单选中
|
|
98
114
|
|
|
99
115
|
if (!selectedKyes.length) return;
|
|
100
|
-
setSelectedMenuKeys(selectedKyes);
|
|
101
|
-
|
|
102
|
-
window.titaTracker
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
116
|
+
setSelectedMenuKeys(selectedKyes);
|
|
117
|
+
|
|
118
|
+
if (window.titaTracker) {
|
|
119
|
+
window.titaTracker("action").record({
|
|
120
|
+
actionName: "\u7EE9\u6548\u8003\u6838__".concat(node.title),
|
|
121
|
+
actionGroup: (0, _getLocale.getLocale)("Menu_Title_Performance"),
|
|
122
|
+
productName: (0, _getLocale.getLocale)("Menu_Title_Performance")
|
|
123
|
+
});
|
|
124
|
+
}
|
|
108
125
|
};
|
|
109
126
|
|
|
110
127
|
var collapseMenu = function collapseMenu(isHide) {
|
|
@@ -117,6 +134,7 @@ function AppraisalMenus(props) {
|
|
|
117
134
|
|
|
118
135
|
(0, _react.useEffect)(function () {
|
|
119
136
|
var obs = new _resizeObserverPolyfill["default"](function (entries) {
|
|
137
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
120
138
|
var _iterator = _createForOfIteratorHelper(entries),
|
|
121
139
|
_step;
|
|
122
140
|
|
|
@@ -25,7 +25,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
25
25
|
key: "highlight",
|
|
26
26
|
value: function highlight(cb) {
|
|
27
27
|
if (this.isMy()) cb(_menus.PAGE_MY_APPRAISAL);else if (this.isEvaluate()) cb(_menus.PAGE_EVALUATE_APPRAISAL);else if (this.isSubordinate()) cb(_menus.PAGE_SUBORDINATE_APPRAISAL);else if (this.isDepart()) cb(_menus.PAGE_DEPART_APPRAISAL);else if (this.isManage()) cb(_menus.PAGE_MANAGE_APPRAISAL);else if (this.isLibrary()) cb(_menus.PAGE_LIBRARY_APPRAISAL); // template library 正则匹配优先级
|
|
28
|
-
else if (this.isTemplate()) cb(_menus.PAGE_TEMPLATE_APPRAISAL);else if (this.isScore()) cb(_menus.PAGE_SCORE_APPRAISAL);else if (this.isHelp()) cb(_menus.PAGE_HELP_APPRAISAL);
|
|
28
|
+
else if (this.isTemplate()) cb(_menus.PAGE_TEMPLATE_APPRAISAL);else if (this.isDashboard()) cb(_menus.PAGE_DASHBOARD_APPRAISAL);else if (this.isReport()) cb(_menus.PAGE_STATISTICS_APPRAISAL);else if (this.isScore()) cb(_menus.PAGE_SCORE_APPRAISAL);else if (this.isHelp()) cb(_menus.PAGE_HELP_APPRAISAL);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isMy",
|
|
@@ -84,19 +84,35 @@ var _default = /*#__PURE__*/function () {
|
|
|
84
84
|
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?templateLibrary/);
|
|
85
85
|
}
|
|
86
86
|
}, {
|
|
87
|
-
key: "
|
|
88
|
-
value: function
|
|
87
|
+
key: "isDashboard",
|
|
88
|
+
value: function isDashboard() {
|
|
89
89
|
var _this$history$locatio8 = this.history.location,
|
|
90
90
|
pathname = _this$history$locatio8.pathname,
|
|
91
91
|
search = _this$history$locatio8.search;
|
|
92
|
-
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?
|
|
92
|
+
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?dashboard/);
|
|
93
93
|
}
|
|
94
94
|
}, {
|
|
95
|
-
key: "
|
|
96
|
-
value: function
|
|
95
|
+
key: "isReport",
|
|
96
|
+
value: function isReport() {
|
|
97
97
|
var _this$history$locatio9 = this.history.location,
|
|
98
98
|
pathname = _this$history$locatio9.pathname,
|
|
99
99
|
search = _this$history$locatio9.search;
|
|
100
|
+
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?report/);
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
key: "isScore",
|
|
104
|
+
value: function isScore() {
|
|
105
|
+
var _this$history$locatio10 = this.history.location,
|
|
106
|
+
pathname = _this$history$locatio10.pathname,
|
|
107
|
+
search = _this$history$locatio10.search;
|
|
108
|
+
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?setting/);
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "isHelp",
|
|
112
|
+
value: function isHelp() {
|
|
113
|
+
var _this$history$locatio11 = this.history.location,
|
|
114
|
+
pathname = _this$history$locatio11.pathname,
|
|
115
|
+
search = _this$history$locatio11.search;
|
|
100
116
|
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?help/);
|
|
101
117
|
}
|
|
102
118
|
}]);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.defaultRefObject = exports["default"] = exports.PAGE_TEMPLATE_APPRAISAL = exports.PAGE_SUBORDINATE_APPRAISAL = exports.PAGE_SCORE_APPRAISAL = exports.PAGE_MY_APPRAISAL = exports.PAGE_MANAGE_APPRAISAL = exports.PAGE_LIBRARY_APPRAISAL = exports.PAGE_HELP_APPRAISAL = exports.PAGE_EVALUATE_APPRAISAL = exports.PAGE_DEPART_APPRAISAL = void 0;
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_TEMPLATE_APPRAISAL = exports.PAGE_SUBORDINATE_APPRAISAL = exports.PAGE_STATISTICS_APPRAISAL = exports.PAGE_SCORE_APPRAISAL = exports.PAGE_MY_APPRAISAL = exports.PAGE_MANAGE_APPRAISAL = exports.PAGE_LIBRARY_APPRAISAL = exports.PAGE_HELP_APPRAISAL = exports.PAGE_EVALUATE_APPRAISAL = exports.PAGE_DEPART_APPRAISAL = exports.PAGE_DASHBOARD_APPRAISAL = void 0;
|
|
7
7
|
|
|
8
8
|
var _bsGlobal = require("../../../../utils/bs-global");
|
|
9
9
|
|
|
@@ -60,6 +60,10 @@ var PAGE_SCORE_APPRAISAL = "score-appraisal";
|
|
|
60
60
|
exports.PAGE_SCORE_APPRAISAL = PAGE_SCORE_APPRAISAL;
|
|
61
61
|
var PAGE_HELP_APPRAISAL = "help-appraisal";
|
|
62
62
|
exports.PAGE_HELP_APPRAISAL = PAGE_HELP_APPRAISAL;
|
|
63
|
+
var PAGE_DASHBOARD_APPRAISAL = "dashboard-appraisal";
|
|
64
|
+
exports.PAGE_DASHBOARD_APPRAISAL = PAGE_DASHBOARD_APPRAISAL;
|
|
65
|
+
var PAGE_STATISTICS_APPRAISAL = "statistics-appraisal";
|
|
66
|
+
exports.PAGE_STATISTICS_APPRAISAL = PAGE_STATISTICS_APPRAISAL;
|
|
63
67
|
|
|
64
68
|
var AppraisalMenus = /*#__PURE__*/function () {
|
|
65
69
|
function AppraisalMenus() {
|
|
@@ -113,13 +117,13 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
113
117
|
}, {
|
|
114
118
|
icon: "yibiao",
|
|
115
119
|
label: _i18n.locale.menu_dashboard_ass,
|
|
116
|
-
key:
|
|
120
|
+
key: PAGE_DASHBOARD_APPRAISAL,
|
|
117
121
|
href: "#/performance?reactRouterName=dashboard",
|
|
118
122
|
isShow: performanceStatisticsAuthority
|
|
119
123
|
}, {
|
|
120
124
|
icon: "baobiao",
|
|
121
125
|
label: _i18n.locale.menu_statistics_ass,
|
|
122
|
-
key:
|
|
126
|
+
key: PAGE_STATISTICS_APPRAISAL,
|
|
123
127
|
href: "#/performance?reactRouterName=report",
|
|
124
128
|
isShow: performanceStatisticsAuthority
|
|
125
129
|
}, {
|
|
@@ -148,21 +152,118 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
148
152
|
href: "#/performance?reactRouterName=help",
|
|
149
153
|
isShow: IsAssessManager
|
|
150
154
|
}];
|
|
155
|
+
this.newMenus = {
|
|
156
|
+
myPerformance: [{
|
|
157
|
+
icon: "kaohe",
|
|
158
|
+
label: _i18n.locale.menu_myass,
|
|
159
|
+
key: PAGE_MY_APPRAISAL,
|
|
160
|
+
href: "#/performance/my?reactRouterName=self",
|
|
161
|
+
isShow: true
|
|
162
|
+
}, {
|
|
163
|
+
icon: "mypingjia",
|
|
164
|
+
label: _i18n.locale.menu_evaluated_ass,
|
|
165
|
+
key: PAGE_EVALUATE_APPRAISAL,
|
|
166
|
+
href: "#/performance/my?reactRouterName=evaluated",
|
|
167
|
+
isShow: true
|
|
168
|
+
}, {
|
|
169
|
+
icon: "caidan-xiashu",
|
|
170
|
+
label: _i18n.locale.menu_subordinate_ass,
|
|
171
|
+
key: PAGE_SUBORDINATE_APPRAISAL,
|
|
172
|
+
href: "#/performance/my?reactRouterName=subordinate",
|
|
173
|
+
isShow: HasSub
|
|
174
|
+
}, {
|
|
175
|
+
icon: "bumen",
|
|
176
|
+
label: _i18n.locale.menu_department_ass,
|
|
177
|
+
key: PAGE_DEPART_APPRAISAL,
|
|
178
|
+
href: "#/performance/my?reactRouterName=department",
|
|
179
|
+
isShow: IsLeader || IsHrbp
|
|
180
|
+
}],
|
|
181
|
+
performanceManage: [{
|
|
182
|
+
icon: "uniEA10",
|
|
183
|
+
label: _i18n.locale.menu_template_ass,
|
|
184
|
+
key: PAGE_TEMPLATE_APPRAISAL,
|
|
185
|
+
type: _index.MENU_ASSESS_TEMPLATE,
|
|
186
|
+
href: "#/performance/manage?reactRouterName=template",
|
|
187
|
+
isShow: performanceManageAuthority
|
|
188
|
+
}, {
|
|
189
|
+
icon: "untitled",
|
|
190
|
+
label: _i18n.locale.menu_management_ass,
|
|
191
|
+
key: PAGE_MANAGE_APPRAISAL,
|
|
192
|
+
type: _index.MENU_ASSESS_MANAGE,
|
|
193
|
+
href: "#/performance/manage?reactRouterName=manage",
|
|
194
|
+
isShow: performanceManageAuthority
|
|
195
|
+
}, {
|
|
196
|
+
icon: "",
|
|
197
|
+
label: _i18n.locale.menu_basesetting,
|
|
198
|
+
key: "base-appraisal-group",
|
|
199
|
+
type: _index.GROUP_NAME_NODE,
|
|
200
|
+
href: "",
|
|
201
|
+
isShow: performanceManageAuthority || IsAssessManager
|
|
202
|
+
}, {
|
|
203
|
+
icon: "ZBmuban",
|
|
204
|
+
label: _i18n.locale.menu_library_ass,
|
|
205
|
+
key: PAGE_LIBRARY_APPRAISAL,
|
|
206
|
+
href: "#/performance/manage?reactRouterName=templateLibrary",
|
|
207
|
+
isShow: performanceManageAuthority
|
|
208
|
+
}, {
|
|
209
|
+
icon: "PF-shezhi",
|
|
210
|
+
label: _i18n.locale.menu_score_ass,
|
|
211
|
+
key: PAGE_SCORE_APPRAISAL,
|
|
212
|
+
href: "#/performance/manage?reactRouterName=setting",
|
|
213
|
+
isShow: IsAssessManager
|
|
214
|
+
}, {
|
|
215
|
+
icon: "KH-help",
|
|
216
|
+
label: _i18n.locale.menu_help_ass,
|
|
217
|
+
key: PAGE_HELP_APPRAISAL,
|
|
218
|
+
href: "#/performance?reactRouterName=help",
|
|
219
|
+
isShow: IsAssessManager
|
|
220
|
+
}],
|
|
221
|
+
performanceDashboard: [{
|
|
222
|
+
icon: "yibiao",
|
|
223
|
+
label: _i18n.locale.menu_dashboard_ass,
|
|
224
|
+
key: "dashboard-appraisal",
|
|
225
|
+
href: "#/performance/dashboard?reactRouterName=dashboard",
|
|
226
|
+
isShow: performanceStatisticsAuthority
|
|
227
|
+
}, {
|
|
228
|
+
icon: "baobiao",
|
|
229
|
+
label: _i18n.locale.menu_statistics_ass,
|
|
230
|
+
key: "statistics-appraisal",
|
|
231
|
+
href: "#/performance/dashboard?reactRouterName=report",
|
|
232
|
+
isShow: performanceStatisticsAuthority
|
|
233
|
+
}]
|
|
234
|
+
};
|
|
151
235
|
}
|
|
152
236
|
|
|
153
237
|
_createClass(AppraisalMenus, [{
|
|
154
238
|
key: "getMenus",
|
|
155
239
|
value: function getMenus() {
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
|
|
240
|
+
var isUseNewMenu = window.BSGlobal.isUseNewMenu;
|
|
241
|
+
var menus = this.menus;
|
|
242
|
+
|
|
243
|
+
if (isUseNewMenu) {
|
|
244
|
+
var hash = window.location.hash.split("?")[0] || "";
|
|
245
|
+
|
|
246
|
+
if (hash) {
|
|
247
|
+
if (hash.includes("performance/my")) {
|
|
248
|
+
menus = this.newMenus.myPerformance;
|
|
249
|
+
} else if (hash.includes("performance/manage")) {
|
|
250
|
+
menus = this.newMenus.performanceManage;
|
|
251
|
+
} else {
|
|
252
|
+
menus = this.newMenus.performanceDashboard;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
return this.formateToTreeNodeData(menus);
|
|
258
|
+
} // eslint-disable-next-line class-methods-use-this
|
|
259
|
+
|
|
159
260
|
}, {
|
|
160
261
|
key: "formateToTreeNodeData",
|
|
161
|
-
value: function formateToTreeNodeData() {
|
|
262
|
+
value: function formateToTreeNodeData(menus) {
|
|
162
263
|
var treeNodes = [];
|
|
163
264
|
|
|
164
|
-
for (var i = 0; i <
|
|
165
|
-
var menu =
|
|
265
|
+
for (var i = 0; i < menus.length; i += 1) {
|
|
266
|
+
var menu = menus[i];
|
|
166
267
|
|
|
167
268
|
if (menu.isShow) {
|
|
168
269
|
treeNodes.push({
|
|
@@ -78,6 +78,7 @@ var okrMenus = /*#__PURE__*/function () {
|
|
|
78
78
|
hasDashboardAuth = true;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
var isUseNewMenu = window.BSGlobal.isUseNewMenu;
|
|
81
82
|
this.menus = [{
|
|
82
83
|
icon: "okr",
|
|
83
84
|
label: _i18n.locale.menu_myokr,
|
|
@@ -132,20 +133,22 @@ var okrMenus = /*#__PURE__*/function () {
|
|
|
132
133
|
label: _i18n.locale.menu_okrmap,
|
|
133
134
|
key: PAGE_OKR_MAP,
|
|
134
135
|
type: _index.MENU_ITEM_NOE,
|
|
135
|
-
href: "#/okr/map"
|
|
136
|
+
href: "#/okr/map",
|
|
137
|
+
isShow: !isUseNewMenu
|
|
136
138
|
}, {
|
|
137
139
|
icon: "panel",
|
|
138
140
|
label: _i18n.locale.menu_okr_working_method,
|
|
139
141
|
type: _index.MENU_ITEM_NOE,
|
|
140
142
|
key: PAGE_OKR_FUNCTION,
|
|
141
|
-
href: "#/okr/panel"
|
|
143
|
+
href: "#/okr/panel",
|
|
144
|
+
isShow: !isUseNewMenu
|
|
142
145
|
}, {
|
|
143
146
|
icon: "yibiao",
|
|
144
147
|
label: _i18n.locale.menu_okrdashboard,
|
|
145
148
|
key: PAGE_OKR_DASHBOARD,
|
|
146
149
|
type: _index.MENU_ITEM_NOE,
|
|
147
150
|
href: "#/okr/chart?iTalentFrameType=iframe&iTalentFrame=%2F%2Fwww.tita.gift%2Fmenuroute%3FmenuId%3D44269%26roleId%3D",
|
|
148
|
-
isShow: hasDashboardAuth
|
|
151
|
+
isShow: hasDashboardAuth && !isUseNewMenu
|
|
149
152
|
}, {
|
|
150
153
|
icon: "cases",
|
|
151
154
|
label: _i18n.locale.menu_okrcases,
|