@titaui/pc 1.12.9-beta.3 → 1.12.11
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/drawer/index.css +0 -9
- package/lib/components/drawer/index.js +8 -11
- package/lib/components/menus/export-modules/appraisal-menus/index.js +12 -30
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +6 -22
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +9 -104
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +19 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +34 -1
- package/lib/components/menus/export-modules/okr-menus/menus.js +3 -6
- package/lib/components/nav-top/components/menu/index.js +6 -2
- package/lib/components/nav-top/index.css +6 -41
- package/lib/components/nav-top/index.js +35 -69
- package/lib/components/nav-top/utils.js +5 -453
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +13 -28
- package/lib/components/okr-flow/export-modal/index.js +8 -51
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +0 -1
- package/lib/components/period-selector/index.js +2 -7
- package/lib/components/select-layer/index.js +8 -22
- package/lib/components/task-relation-modal/helper.js +56 -1
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +4 -1
- package/lib/components/task-relation-modal/okr-relation/request-api.js +6 -2
- package/lib/components/task-relation-modal/request-api.js +2 -5
- package/lib/components/task-relation-modal/tree/work-tree/index.js +31 -27
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +3 -22
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/tooltip/tooltip.js +4 -9
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +1 -3
- package/lib/components/user-selector/category-selector-panel/index.js +1 -0
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +1 -2
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +3 -21
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/request-apis.js +5 -20
- package/lib/components/user-selector/searched-panel/index.js +1 -5
- package/lib/pages/aha2021/index.js +5 -5
- package/lib/utils/planDataJson.js +11115 -0
- package/package.json +1 -1
- package/lib/components/nav-top/components/app-center/images/chart.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/file.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/interview.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/learning.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/okr.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/performance.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/plan.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/project.svg +0 -1
- package/lib/components/nav-top/components/app-center/images/summary.svg +0 -1
- package/lib/components/nav-top/components/app-center/index.css +0 -91
- package/lib/components/nav-top/components/app-center/index.js +0 -123
- package/lib/pages/aha2021/new-menu-switcher/index.css +0 -41
- package/lib/pages/aha2021/new-menu-switcher/index.js +0 -81
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +0 -15
|
@@ -10,10 +10,6 @@
|
|
|
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
|
-
|
|
17
13
|
.titaui-drawer-content {
|
|
18
14
|
height: 100%;
|
|
19
15
|
display: flex;
|
|
@@ -207,8 +203,3 @@
|
|
|
207
203
|
.drawer-right .drawer-content {
|
|
208
204
|
border-radius: 24px 0 0 24px;
|
|
209
205
|
}
|
|
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,30 +94,27 @@ var Drawer = function Drawer(props) {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
var autoClose = function autoClose(e) {
|
|
97
|
-
if ((0, _dom.hasAncestorElement)(e.target,
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
|
|
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')) return;
|
|
101
98
|
onClose();
|
|
102
99
|
};
|
|
103
100
|
|
|
104
101
|
(0, _react.useEffect)(function () {
|
|
105
102
|
if (autoClosable) {
|
|
106
|
-
document.addEventListener(
|
|
103
|
+
document.addEventListener('mousedown', autoClose);
|
|
107
104
|
}
|
|
108
105
|
|
|
109
106
|
return function () {
|
|
110
|
-
document.removeEventListener(
|
|
107
|
+
document.removeEventListener('mousedown', autoClose);
|
|
111
108
|
};
|
|
112
109
|
}, []);
|
|
113
110
|
return /*#__PURE__*/_react["default"].createElement(DrawerContext.Provider, {
|
|
114
111
|
value: {
|
|
115
112
|
close: function close() {
|
|
116
|
-
onClose();
|
|
113
|
+
props.onClose();
|
|
117
114
|
}
|
|
118
115
|
}
|
|
119
116
|
}, /*#__PURE__*/_react["default"].createElement(_rcDrawer["default"], _extends({
|
|
120
|
-
className: (0, _classnames["default"])(
|
|
117
|
+
className: (0, _classnames["default"])('titaui-drawer', 'document-mouse-event-ignore', className),
|
|
121
118
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
122
119
|
zIndex: zIndex
|
|
123
120
|
})
|
|
@@ -170,7 +167,7 @@ function DrawerHeader(_ref) {
|
|
|
170
167
|
onClick: manager && manager.goBack
|
|
171
168
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
172
169
|
className: "tu-icon-fanhui"
|
|
173
|
-
}), (0, _getLocale.getLocale)(
|
|
170
|
+
}), (0, _getLocale.getLocale)('Mod_Back')), showBackBtn && hasContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
171
|
className: "titaui-drawer-header-divider"
|
|
175
172
|
}), hasContent && content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
173
|
style: {
|
|
@@ -181,7 +178,7 @@ function DrawerHeader(_ref) {
|
|
|
181
178
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
182
179
|
approvalSetting: approvalSetting,
|
|
183
180
|
detailInfo: detailInfo,
|
|
184
|
-
title: (0, _getLocale.getLocale)(
|
|
181
|
+
title: (0, _getLocale.getLocale)('Mod_MoreOperate'),
|
|
185
182
|
icon: "tu-icon-10",
|
|
186
183
|
children: collapsedActions
|
|
187
184
|
}), showClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -29,8 +29,6 @@ var _precls = _interopRequireDefault(require("../../precls"));
|
|
|
29
29
|
|
|
30
30
|
var _getLocale = require("../../../../utils/getLocale");
|
|
31
31
|
|
|
32
|
-
var _tools = require("../../../../utils/tools");
|
|
33
|
-
|
|
34
32
|
require("../../index.css");
|
|
35
33
|
|
|
36
34
|
require("./index.css");
|
|
@@ -83,45 +81,30 @@ function AppraisalMenus(props) {
|
|
|
83
81
|
okrMenusData.current = new _menus["default"]();
|
|
84
82
|
return okrMenusData.current.getMenus();
|
|
85
83
|
}),
|
|
86
|
-
_useState6 = _slicedToArray(_useState5,
|
|
87
|
-
menus = _useState6[0]
|
|
88
|
-
setMenus = _useState6[1];
|
|
84
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
85
|
+
menus = _useState6[0]; // 判断路由高亮菜单
|
|
89
86
|
|
|
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]); // 判断路由高亮菜单
|
|
103
87
|
|
|
104
88
|
(0, _react.useEffect)(function () {
|
|
105
89
|
var menuHighlight = new _menuHighlight["default"](history);
|
|
106
90
|
menuHighlight.highlight(function (menu) {
|
|
107
|
-
setSelectedMenuKeys([menu]);
|
|
91
|
+
return setSelectedMenuKeys([menu]);
|
|
108
92
|
});
|
|
109
|
-
}, [history.location.pathname, history.location.search
|
|
93
|
+
}, [history.location.pathname, history.location.search]);
|
|
110
94
|
|
|
111
95
|
var onSelectHandler = function onSelectHandler(selectedKyes, _ref) {
|
|
112
96
|
var node = _ref.node;
|
|
113
97
|
onSelect(node); // 处理菜单选中
|
|
114
98
|
|
|
115
99
|
if (!selectedKyes.length) return;
|
|
116
|
-
setSelectedMenuKeys(selectedKyes);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
100
|
+
setSelectedMenuKeys(selectedKyes); // @ts-ignore
|
|
101
|
+
|
|
102
|
+
window.titaTracker // @ts-ignore
|
|
103
|
+
&& window.titaTracker("action").record({
|
|
104
|
+
actionName: "\u7EE9\u6548\u8003\u6838__".concat(node.title),
|
|
105
|
+
actionGroup: (0, _getLocale.getLocale)("Menu_Title_Performance"),
|
|
106
|
+
productName: (0, _getLocale.getLocale)("Menu_Title_Performance")
|
|
107
|
+
});
|
|
125
108
|
};
|
|
126
109
|
|
|
127
110
|
var collapseMenu = function collapseMenu(isHide) {
|
|
@@ -134,7 +117,6 @@ function AppraisalMenus(props) {
|
|
|
134
117
|
|
|
135
118
|
(0, _react.useEffect)(function () {
|
|
136
119
|
var obs = new _resizeObserverPolyfill["default"](function (entries) {
|
|
137
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
138
120
|
var _iterator = _createForOfIteratorHelper(entries),
|
|
139
121
|
_step;
|
|
140
122
|
|
|
@@ -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.
|
|
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);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isMy",
|
|
@@ -84,35 +84,19 @@ 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: "isScore",
|
|
88
|
+
value: function isScore() {
|
|
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]*?dashboard/);
|
|
93
|
-
}
|
|
94
|
-
}, {
|
|
95
|
-
key: "isReport",
|
|
96
|
-
value: function isReport() {
|
|
97
|
-
var _this$history$locatio9 = this.history.location,
|
|
98
|
-
pathname = _this$history$locatio9.pathname,
|
|
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
92
|
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?setting/);
|
|
109
93
|
}
|
|
110
94
|
}, {
|
|
111
95
|
key: "isHelp",
|
|
112
96
|
value: function isHelp() {
|
|
113
|
-
var _this$history$
|
|
114
|
-
pathname = _this$history$
|
|
115
|
-
search = _this$history$
|
|
97
|
+
var _this$history$locatio9 = this.history.location,
|
|
98
|
+
pathname = _this$history$locatio9.pathname,
|
|
99
|
+
search = _this$history$locatio9.search;
|
|
116
100
|
return pathname.match(/performance/) && search.match(/reactRouterName[\s]*?=[\s]*?help/);
|
|
117
101
|
}
|
|
118
102
|
}]);
|
|
@@ -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.
|
|
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;
|
|
7
7
|
|
|
8
8
|
var _bsGlobal = require("../../../../utils/bs-global");
|
|
9
9
|
|
|
@@ -60,10 +60,6 @@ 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;
|
|
67
63
|
|
|
68
64
|
var AppraisalMenus = /*#__PURE__*/function () {
|
|
69
65
|
function AppraisalMenus() {
|
|
@@ -117,13 +113,13 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
117
113
|
}, {
|
|
118
114
|
icon: "yibiao",
|
|
119
115
|
label: _i18n.locale.menu_dashboard_ass,
|
|
120
|
-
key:
|
|
116
|
+
key: "dashboard-appraisal",
|
|
121
117
|
href: "#/performance?reactRouterName=dashboard",
|
|
122
118
|
isShow: performanceStatisticsAuthority
|
|
123
119
|
}, {
|
|
124
120
|
icon: "baobiao",
|
|
125
121
|
label: _i18n.locale.menu_statistics_ass,
|
|
126
|
-
key:
|
|
122
|
+
key: "statistics-appraisal",
|
|
127
123
|
href: "#/performance?reactRouterName=report",
|
|
128
124
|
isShow: performanceStatisticsAuthority
|
|
129
125
|
}, {
|
|
@@ -152,112 +148,21 @@ var AppraisalMenus = /*#__PURE__*/function () {
|
|
|
152
148
|
href: "#/performance?reactRouterName=help",
|
|
153
149
|
isShow: IsAssessManager
|
|
154
150
|
}];
|
|
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
|
-
performanceDashboard: [{
|
|
216
|
-
icon: "yibiao",
|
|
217
|
-
label: _i18n.locale.menu_dashboard_ass,
|
|
218
|
-
key: "dashboard-appraisal",
|
|
219
|
-
href: "#/performance/dashboard?reactRouterName=dashboard",
|
|
220
|
-
isShow: performanceStatisticsAuthority
|
|
221
|
-
}, {
|
|
222
|
-
icon: "baobiao",
|
|
223
|
-
label: _i18n.locale.menu_statistics_ass,
|
|
224
|
-
key: "statistics-appraisal",
|
|
225
|
-
href: "#/performance/dashboard?reactRouterName=report",
|
|
226
|
-
isShow: performanceStatisticsAuthority
|
|
227
|
-
}]
|
|
228
|
-
};
|
|
229
151
|
}
|
|
230
152
|
|
|
231
153
|
_createClass(AppraisalMenus, [{
|
|
232
154
|
key: "getMenus",
|
|
233
155
|
value: function getMenus() {
|
|
234
|
-
var
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
if (isUseNewMenu) {
|
|
238
|
-
var hash = window.location.hash.split("?")[0] || "";
|
|
239
|
-
|
|
240
|
-
if (hash) {
|
|
241
|
-
if (hash.includes("performance/my")) {
|
|
242
|
-
menus = this.newMenus.myPerformance;
|
|
243
|
-
} else if (hash.includes("performance/manage")) {
|
|
244
|
-
menus = this.newMenus.performanceManage;
|
|
245
|
-
} else {
|
|
246
|
-
menus = this.newMenus.performanceDashboard;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
return this.formateToTreeNodeData(menus);
|
|
252
|
-
} // eslint-disable-next-line class-methods-use-this
|
|
253
|
-
|
|
156
|
+
var menus = this.formateToTreeNodeData();
|
|
157
|
+
return menus;
|
|
158
|
+
}
|
|
254
159
|
}, {
|
|
255
160
|
key: "formateToTreeNodeData",
|
|
256
|
-
value: function formateToTreeNodeData(
|
|
161
|
+
value: function formateToTreeNodeData() {
|
|
257
162
|
var treeNodes = [];
|
|
258
163
|
|
|
259
|
-
for (var i = 0; i < menus.length; i += 1) {
|
|
260
|
-
var menu = menus[i];
|
|
164
|
+
for (var i = 0; i < this.menus.length; i += 1) {
|
|
165
|
+
var menu = this.menus[i];
|
|
261
166
|
|
|
262
167
|
if (menu.isShow) {
|
|
263
168
|
treeNodes.push({
|
|
@@ -25,7 +25,7 @@ var _default = /*#__PURE__*/function () {
|
|
|
25
25
|
_createClass(_default, [{
|
|
26
26
|
key: "highlight",
|
|
27
27
|
value: function highlight(cb) {
|
|
28
|
-
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);
|
|
28
|
+
if (this.isUnAssigned()) cb(_menus.PAGE_UNASSIGNED_DEMOFREE);else if (this.isAssigned()) cb(_menus.PAGE_ASSIGNED_DEMOFREE);else if (this.isReserved()) cb(_menus.PAGE_RESERVED_DEMOFREE);else if (this.isDone()) cb(_menus.PAGE_DONE_DEMOFREE);else if (this.isIgnore()) cb(_menus.PAGE_IGNORED_DEMOFREE);else if (this.isChart()) cb(_menus.PAGE_CHARTS_DEMOFREE);else if (this.isRechargeList()) cb(_menus.PAGE_RECHARGE_LIST);else if (this.isRechargeStatistics()) cb(_menus.PAGE_RECHARGE_STATISTICS);else if (this.isRechargeStatus()) cb(_menus.PAGE_RECHARGE_STATUS);else if (this.isDueDateOrder()) cb(_menus.PAGE_DUEDATE_ORDER);else if (this.isAllCustomer()) cb(_menus.PAGE_ALL_CUSTOMER);else if (this.isPublicCustomer()) cb(_menus.PAGE_PUBLIC_CUSTOMER);else if (this.isMyCustomer()) cb(_menus.PAGE_MY_CUSTOMER);
|
|
29
29
|
}
|
|
30
30
|
}, {
|
|
31
31
|
key: "isChart",
|
|
@@ -102,6 +102,24 @@ var _default = /*#__PURE__*/function () {
|
|
|
102
102
|
search = _this$history$locatio5.search;
|
|
103
103
|
return pathname.match(/demofree/) && search.match(/selected[\s]*?=[\s]*?ignore/);
|
|
104
104
|
}
|
|
105
|
+
}, {
|
|
106
|
+
key: "isPublicCustomer",
|
|
107
|
+
value: function isPublicCustomer() {
|
|
108
|
+
var pathname = this.history.location.pathname;
|
|
109
|
+
return pathname.match(/demofree\/customer\/public/);
|
|
110
|
+
}
|
|
111
|
+
}, {
|
|
112
|
+
key: "isMyCustomer",
|
|
113
|
+
value: function isMyCustomer() {
|
|
114
|
+
var pathname = this.history.location.pathname;
|
|
115
|
+
return pathname.match(/demofree\/customer\/my/);
|
|
116
|
+
}
|
|
117
|
+
}, {
|
|
118
|
+
key: "isAllCustomer",
|
|
119
|
+
value: function isAllCustomer() {
|
|
120
|
+
var pathname = this.history.location.pathname;
|
|
121
|
+
return pathname.match(/demofree\/customer\/all/);
|
|
122
|
+
}
|
|
105
123
|
}]);
|
|
106
124
|
|
|
107
125
|
return _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_STATUS = exports.PAGE_RECHARGE_STATISTICS = exports.PAGE_RECHARGE_LIST = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DUEDATE_ORDER = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_ASSIGNED_DEMOFREE = void 0;
|
|
6
|
+
exports.defaultRefObject = exports["default"] = exports.PAGE_UNASSIGNED_DEMOFREE = exports.PAGE_RESERVED_DEMOFREE = exports.PAGE_RECHARGE_STATUS = exports.PAGE_RECHARGE_STATISTICS = exports.PAGE_RECHARGE_LIST = exports.PAGE_PUBLIC_CUSTOMER = exports.PAGE_MY_CUSTOMER = exports.PAGE_IGNORED_DEMOFREE = exports.PAGE_DUEDATE_ORDER = exports.PAGE_DONE_DEMOFREE = exports.PAGE_CHARTS_DEMOFREE = exports.PAGE_CHARTS = exports.PAGE_ASSIGNED_DEMOFREE = exports.PAGE_ALL_CUSTOMER = void 0;
|
|
7
7
|
|
|
8
8
|
var _index = require("../../components/menu-tree/tree-node/index");
|
|
9
9
|
|
|
@@ -40,6 +40,14 @@ var PAGE_IGNORED_DEMOFREE = "ignore";
|
|
|
40
40
|
exports.PAGE_IGNORED_DEMOFREE = PAGE_IGNORED_DEMOFREE;
|
|
41
41
|
var PAGE_CHARTS_DEMOFREE = "charts";
|
|
42
42
|
exports.PAGE_CHARTS_DEMOFREE = PAGE_CHARTS_DEMOFREE;
|
|
43
|
+
var PAGE_ALL_CUSTOMER = "allCustomer";
|
|
44
|
+
exports.PAGE_ALL_CUSTOMER = PAGE_ALL_CUSTOMER;
|
|
45
|
+
var PAGE_PUBLIC_CUSTOMER = "publicCustomer";
|
|
46
|
+
exports.PAGE_PUBLIC_CUSTOMER = PAGE_PUBLIC_CUSTOMER;
|
|
47
|
+
var PAGE_MY_CUSTOMER = "myCustomer";
|
|
48
|
+
exports.PAGE_MY_CUSTOMER = PAGE_MY_CUSTOMER;
|
|
49
|
+
var PAGE_CHARTS = "charts";
|
|
50
|
+
exports.PAGE_CHARTS = PAGE_CHARTS;
|
|
43
51
|
var PAGE_RECHARGE_LIST = "rechargeList";
|
|
44
52
|
exports.PAGE_RECHARGE_LIST = PAGE_RECHARGE_LIST;
|
|
45
53
|
var PAGE_DUEDATE_ORDER = "dueDateOrder";
|
|
@@ -91,6 +99,31 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
91
99
|
href: "#/demofree/list?selected=ignore",
|
|
92
100
|
isShow: this.isManager === EManagerType.Manager
|
|
93
101
|
}]
|
|
102
|
+
}, {
|
|
103
|
+
icon: "KH-help",
|
|
104
|
+
label: "公海资源",
|
|
105
|
+
key: "customer",
|
|
106
|
+
href: "#/demofree/customer/public",
|
|
107
|
+
isShow: true,
|
|
108
|
+
children: [{
|
|
109
|
+
icon: "",
|
|
110
|
+
label: "全部客户",
|
|
111
|
+
key: PAGE_ALL_CUSTOMER,
|
|
112
|
+
href: "#/demofree/customer/all",
|
|
113
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
114
|
+
}, {
|
|
115
|
+
icon: "",
|
|
116
|
+
label: "公海资源",
|
|
117
|
+
key: PAGE_PUBLIC_CUSTOMER,
|
|
118
|
+
href: "#/demofree/customer/public",
|
|
119
|
+
isShow: this.isManager !== EManagerType.ReCharge
|
|
120
|
+
}, {
|
|
121
|
+
icon: "",
|
|
122
|
+
label: "我的资源",
|
|
123
|
+
key: PAGE_MY_CUSTOMER,
|
|
124
|
+
href: "#/demofree/customer/my",
|
|
125
|
+
isShow: this.isManager !== EManagerType.ReCharge
|
|
126
|
+
}]
|
|
94
127
|
}, {
|
|
95
128
|
icon: "KH-help",
|
|
96
129
|
label: "客户续费",
|
|
@@ -78,7 +78,6 @@ var okrMenus = /*#__PURE__*/function () {
|
|
|
78
78
|
hasDashboardAuth = true;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
var isUseNewMenu = window.BSGlobal.isUseNewMenu;
|
|
82
81
|
this.menus = [{
|
|
83
82
|
icon: "okr",
|
|
84
83
|
label: _i18n.locale.menu_myokr,
|
|
@@ -133,22 +132,20 @@ var okrMenus = /*#__PURE__*/function () {
|
|
|
133
132
|
label: _i18n.locale.menu_okrmap,
|
|
134
133
|
key: PAGE_OKR_MAP,
|
|
135
134
|
type: _index.MENU_ITEM_NOE,
|
|
136
|
-
href: "#/okr/map"
|
|
137
|
-
isShow: !isUseNewMenu
|
|
135
|
+
href: "#/okr/map"
|
|
138
136
|
}, {
|
|
139
137
|
icon: "panel",
|
|
140
138
|
label: _i18n.locale.menu_okr_working_method,
|
|
141
139
|
type: _index.MENU_ITEM_NOE,
|
|
142
140
|
key: PAGE_OKR_FUNCTION,
|
|
143
|
-
href: "#/okr/panel"
|
|
144
|
-
isShow: !isUseNewMenu
|
|
141
|
+
href: "#/okr/panel"
|
|
145
142
|
}, {
|
|
146
143
|
icon: "yibiao",
|
|
147
144
|
label: _i18n.locale.menu_okrdashboard,
|
|
148
145
|
key: PAGE_OKR_DASHBOARD,
|
|
149
146
|
type: _index.MENU_ITEM_NOE,
|
|
150
147
|
href: "#/okr/chart?iTalentFrameType=iframe&iTalentFrame=%2F%2Fwww.tita.gift%2Fmenuroute%3FmenuId%3D44269%26roleId%3D",
|
|
151
|
-
isShow: hasDashboardAuth
|
|
148
|
+
isShow: hasDashboardAuth
|
|
152
149
|
}, {
|
|
153
150
|
icon: "cases",
|
|
154
151
|
label: _i18n.locale.menu_okrcases,
|
|
@@ -19,6 +19,8 @@ var _popup = _interopRequireDefault(require("../../../popup"));
|
|
|
19
19
|
|
|
20
20
|
var _conditionRender = _interopRequireDefault(require("../../../../components/condition-render"));
|
|
21
21
|
|
|
22
|
+
var _useGlobalValue3 = _interopRequireDefault(require("../../useGlobalValue"));
|
|
23
|
+
|
|
22
24
|
var _new = _interopRequireDefault(require("./img/new.svg"));
|
|
23
25
|
|
|
24
26
|
require("./index.css");
|
|
@@ -74,10 +76,12 @@ var Menu = function Menu(_ref) {
|
|
|
74
76
|
var _useState3 = (0, _react.useState)(false),
|
|
75
77
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
76
78
|
popupVisible = _useState4[0],
|
|
77
|
-
setPopupVisible = _useState4[1];
|
|
79
|
+
setPopupVisible = _useState4[1];
|
|
78
80
|
|
|
81
|
+
var _useGlobalValue = (0, _useGlobalValue3["default"])(),
|
|
82
|
+
_useGlobalValue2 = _slicedToArray(_useGlobalValue, 1),
|
|
83
|
+
feedNum = _useGlobalValue2[0];
|
|
79
84
|
|
|
80
|
-
var feedNum = 20;
|
|
81
85
|
var containerRef = (0, _react.useRef)();
|
|
82
86
|
var apiPath = (0, _bsGlobal.getBSGlobal)("apiPath");
|
|
83
87
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
height: 54px;
|
|
19
19
|
border-radius: 0px 0px 0px 24px;
|
|
20
20
|
box-sizing: border-box;
|
|
21
|
-
padding
|
|
21
|
+
padding: 0 10px 0 20px;
|
|
22
22
|
cursor: default;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.titaui-nav-top__left-home {
|
|
26
26
|
display: inline-flex;
|
|
27
27
|
border-radius: 4px;
|
|
28
|
-
|
|
28
|
+
padding: 4px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.titaui-nav-top__left-home--active {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.titaui-nav-top__left-home-img {
|
|
36
|
-
width:
|
|
37
|
-
height:
|
|
36
|
+
width: 20px;
|
|
37
|
+
height: 20px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.titaui-nav-top__left-home--hover:hover {
|
|
@@ -50,41 +50,6 @@
|
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.titaui-nav-top__left-dynamic, .titaui-nav-top__left-app-center {
|
|
54
|
-
font-size: 24px;
|
|
55
|
-
color: #ffffff;
|
|
56
|
-
padding: 2px;
|
|
57
|
-
margin-right: 14px;
|
|
58
|
-
border-radius: 8px;
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.titaui-nav-top__left-dynamic:hover, .titaui-nav-top__left-dynamic--active, .titaui-nav-top__left-app-center:hover, .titaui-nav-top__left-app-center--active {
|
|
63
|
-
background: rgba(255, 255, 255, 0.2);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.titaui-nav-top__left-dynamic {
|
|
67
|
-
position: relative;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.titaui-nav-top__left-dynamic-feed-num {
|
|
71
|
-
position: absolute;
|
|
72
|
-
right: -6px;
|
|
73
|
-
top: -2px;
|
|
74
|
-
background: #fe5042;
|
|
75
|
-
border-radius: 18px;
|
|
76
|
-
height: 16px;
|
|
77
|
-
font-size: 12px;
|
|
78
|
-
color: #ffffff;
|
|
79
|
-
line-height: 18px;
|
|
80
|
-
padding: 0 4px;
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
justify-content: center;
|
|
84
|
-
min-width: 8px;
|
|
85
|
-
font-weight: 400;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
53
|
.titaui-nav-top__line {
|
|
89
54
|
width: 1px;
|
|
90
55
|
min-width: 1px;
|
|
@@ -103,8 +68,8 @@
|
|
|
103
68
|
|
|
104
69
|
.titaui-nav-top__msg {
|
|
105
70
|
margin-right: 24px;
|
|
106
|
-
width:
|
|
107
|
-
height:
|
|
71
|
+
width: 20px;
|
|
72
|
+
height: 20px;
|
|
108
73
|
cursor: pointer;
|
|
109
74
|
display: inline-flex;
|
|
110
75
|
}
|