@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
|
@@ -43,7 +43,7 @@ function WorkNode(props) {
|
|
|
43
43
|
checked = _props$checked === void 0 ? false : _props$checked,
|
|
44
44
|
_props$disabled = props.disabled,
|
|
45
45
|
disabled = _props$disabled === void 0 ? false : _props$disabled;
|
|
46
|
-
var
|
|
46
|
+
var PrincipalUser = data.PrincipalUser;
|
|
47
47
|
|
|
48
48
|
var _useContext = (0, _react.useContext)(_context.Context),
|
|
49
49
|
multiple = _useContext.multiple,
|
|
@@ -58,13 +58,13 @@ function WorkNode(props) {
|
|
|
58
58
|
if (checked) {
|
|
59
59
|
addSelected({
|
|
60
60
|
type: "work",
|
|
61
|
-
workId: data.
|
|
61
|
+
workId: data.WorkId,
|
|
62
62
|
krId: 0,
|
|
63
|
-
id: data.
|
|
64
|
-
name: data.
|
|
63
|
+
id: data.WorkId,
|
|
64
|
+
name: data.WorkName
|
|
65
65
|
});
|
|
66
66
|
} else {
|
|
67
|
-
removeSelected(data.
|
|
67
|
+
removeSelected(data.WorkId);
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
|
|
@@ -87,7 +87,7 @@ function WorkNode(props) {
|
|
|
87
87
|
className: "".concat(precls, "__checkbox")
|
|
88
88
|
}, /*#__PURE__*/_react["default"].createElement(_radio["default"], {
|
|
89
89
|
onChange: onCheckHandler,
|
|
90
|
-
id: data.
|
|
90
|
+
id: data.WorkId,
|
|
91
91
|
checked: checked
|
|
92
92
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
93
|
className: "".concat(precls, "__name")
|
|
@@ -95,16 +95,16 @@ function WorkNode(props) {
|
|
|
95
95
|
className: (0, _classnames["default"])("tu-icon-project-s", "".concat(precls, "__name-icon"))
|
|
96
96
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
97
97
|
onClick: gotoWorkDetail
|
|
98
|
-
}, (0, _tools.htmlDecodeByHtmlRegExp)(data.
|
|
98
|
+
}, (0, _tools.htmlDecodeByHtmlRegExp)(data.WorkName))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
99
99
|
className: "".concat(precls, "__status")
|
|
100
|
-
}, statusMap[data.
|
|
100
|
+
}, statusMap[data.Status]), /*#__PURE__*/_react["default"].createElement("span", {
|
|
101
101
|
className: "".concat(precls, "__principle")
|
|
102
102
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
103
|
-
name:
|
|
104
|
-
id:
|
|
103
|
+
name: PrincipalUser.Name,
|
|
104
|
+
id: PrincipalUser.UserId
|
|
105
105
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
106
|
className: "".concat(precls, "__time")
|
|
107
|
-
}, (0, _helper.formatDateStr)(data.startDate), "-", (0, _helper.formatDateStr)(data.
|
|
107
|
+
}, (0, _helper.formatDateStr)(data.startDate), "-", (0, _helper.formatDateStr)(data.EndDate)));
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
WorkNode.defaultProps = {
|
|
@@ -18,15 +18,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
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
20
|
function _default(props) {
|
|
21
|
-
var align = props.align,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
align = {
|
|
26
|
-
offset: [0, 5]
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
21
|
+
var _props$align = props.align,
|
|
22
|
+
align = _props$align === void 0 ? {
|
|
23
|
+
offset: [0, 5]
|
|
24
|
+
} : _props$align;
|
|
30
25
|
return /*#__PURE__*/_react["default"].createElement(_rcTooltip["default"], _extends({}, props, {
|
|
31
26
|
align: align,
|
|
32
27
|
transitionName: props.transitionName || "tita-common-fade"
|
|
@@ -31,8 +31,6 @@ function _default(props) {
|
|
|
31
31
|
height = props.height;
|
|
32
32
|
|
|
33
33
|
var _useContext = (0, _react.useContext)(_context.CommonContext),
|
|
34
|
-
_useContext$departId = _useContext.departId,
|
|
35
|
-
departId = _useContext$departId === void 0 ? "-1" : _useContext$departId,
|
|
36
34
|
departOnly = _useContext.departOnly,
|
|
37
35
|
sourceFrom = _useContext.sourceFrom,
|
|
38
36
|
auth = _useContext.auth,
|
|
@@ -41,7 +39,7 @@ function _default(props) {
|
|
|
41
39
|
disabledDepartSelect = _useContext.disabledDepartSelect;
|
|
42
40
|
|
|
43
41
|
var onGetDepartTreeData = function onGetDepartTreeData() {
|
|
44
|
-
return (0, _requestApis.getTreeData)(
|
|
42
|
+
return (0, _requestApis.getTreeData)("-1", {
|
|
45
43
|
departOnly: departOnly,
|
|
46
44
|
auth: auth,
|
|
47
45
|
authType: authType,
|
|
@@ -80,6 +80,7 @@ function _default(props) {
|
|
|
80
80
|
tabPane: true
|
|
81
81
|
}
|
|
82
82
|
}, Object.keys(panes).map(function (panelKey) {
|
|
83
|
+
if (!panes[panelKey]) return;
|
|
83
84
|
var _getPanesConfig$panel = (0, _constant.getPanesConfig)()[panelKey],
|
|
84
85
|
label = _getPanesConfig$panel.label,
|
|
85
86
|
Component = _getPanesConfig$panel.Component;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
.persel-selector-field {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
max-width: 100%;
|
|
4
3
|
min-width: 120px;
|
|
5
4
|
height: 36px;
|
|
6
5
|
line-height: 36px;
|
|
7
6
|
background: #ffffff;
|
|
8
|
-
border-radius:
|
|
7
|
+
border-radius: 3px;
|
|
9
8
|
border: 1px solid #e9ecf0;
|
|
10
9
|
padding: 8px 12px;
|
|
11
10
|
box-sizing: border-box;
|
|
@@ -51,8 +51,6 @@ var defauleSelectNodes = {
|
|
|
51
51
|
|
|
52
52
|
var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
53
53
|
var multiple = props.multiple,
|
|
54
|
-
_props$disabled = props.disabled,
|
|
55
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
56
54
|
trigger = props.trigger,
|
|
57
55
|
children = props.children,
|
|
58
56
|
_props$onOk = props.onOk,
|
|
@@ -66,10 +64,6 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
66
64
|
selectNodes = _props$selectNodes === void 0 ? defauleSelectNodes : _props$selectNodes,
|
|
67
65
|
sourceFrom = props.sourceFrom,
|
|
68
66
|
departOnly = props.departOnly,
|
|
69
|
-
searchUserOnly = props.searchUserOnly,
|
|
70
|
-
isVerify = props.isVerify,
|
|
71
|
-
_props$departId = props.departId,
|
|
72
|
-
departId = _props$departId === void 0 ? "-1" : _props$departId,
|
|
73
67
|
_props$auth = props.auth,
|
|
74
68
|
auth = _props$auth === void 0 ? false : _props$auth,
|
|
75
69
|
_props$placeholder = props.placeholder,
|
|
@@ -285,10 +279,6 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
285
279
|
onCancel && onCancel();
|
|
286
280
|
};
|
|
287
281
|
|
|
288
|
-
var onChangeVisible = function onChangeVisible() {
|
|
289
|
-
setVisible(!visible);
|
|
290
|
-
};
|
|
291
|
-
|
|
292
282
|
var popup = /*#__PURE__*/_react["default"].createElement(_selectorGenerater["default"], {
|
|
293
283
|
multiple: multiple,
|
|
294
284
|
onCancel: onCancelHandler,
|
|
@@ -298,21 +288,11 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
298
288
|
showSearchInput: showSearchInput
|
|
299
289
|
});
|
|
300
290
|
|
|
301
|
-
if (disabled) return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
302
|
-
className: "persel-selector-field"
|
|
303
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
304
|
-
className: "persel-selector-field__text"
|
|
305
|
-
}, (0, _openData.isWechat)() ? jsxDomValues : selectedText || /*#__PURE__*/_react["default"].createElement("span", {
|
|
306
|
-
className: "persel-selector-field__text-holder"
|
|
307
|
-
}, placeholder))));
|
|
308
291
|
return /*#__PURE__*/_react["default"].createElement(_context.CommonContext.Provider, {
|
|
309
292
|
value: {
|
|
310
293
|
sourceFrom: sourceFrom,
|
|
311
294
|
departOnly: departOnly,
|
|
312
|
-
searchUserOnly: searchUserOnly,
|
|
313
|
-
isVerify: isVerify,
|
|
314
295
|
auth: auth,
|
|
315
|
-
departId: departId,
|
|
316
296
|
authType: authType,
|
|
317
297
|
isGetRoot: isGetRoot,
|
|
318
298
|
disabledDepartSelect: disabledDepartSelect,
|
|
@@ -339,7 +319,9 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
339
319
|
}
|
|
340
320
|
}, children || trigger) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
341
321
|
className: "persel-selector-field",
|
|
342
|
-
onClick:
|
|
322
|
+
onClick: function onClick() {
|
|
323
|
+
return setVisible(!visible);
|
|
324
|
+
}
|
|
343
325
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
344
326
|
className: "persel-selector-field__text"
|
|
345
327
|
}, (0, _openData.isWechat)() ? jsxDomValues : selectedText || /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -159,28 +159,13 @@ exports.getSubordinateData = getSubordinateData;
|
|
|
159
159
|
var search = function search(_ref4) {
|
|
160
160
|
var searchKey = _ref4.searchKey,
|
|
161
161
|
departOnly = _ref4.departOnly,
|
|
162
|
-
|
|
163
|
-
sourceFrom = _ref4.sourceFrom,
|
|
164
|
-
_ref4$isVerify = _ref4.isVerify,
|
|
165
|
-
isVerify = _ref4$isVerify === void 0 ? false : _ref4$isVerify;
|
|
162
|
+
sourceFrom = _ref4.sourceFrom;
|
|
166
163
|
var args = [];
|
|
164
|
+
if (departOnly) args.push("isGetUser=false");
|
|
165
|
+
if (sourceFrom) args.push("sourceFrom=".concat(sourceFrom)); // 追加来源,用于企业微信搜索
|
|
167
166
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
} else if (searchUserOnly) {
|
|
171
|
-
args.push("isGetUser=true&isGetDep=false&isGetGroup=false");
|
|
172
|
-
} else {
|
|
173
|
-
args.push("isGetUser=true&isGetDep=true&isGetGroup=true");
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
;
|
|
177
|
-
|
|
178
|
-
if (!!sourceFrom) {
|
|
179
|
-
// 这个是遗留的管控群组的,后面逐步替换掉
|
|
180
|
-
isVerify = true;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/search/searchAll?keyWord=").concat(searchKey, "&isVerify=").concat(isVerify, "&").concat(args[0])).then(function (searchRes) {
|
|
167
|
+
args.push("source=".concat((0, _openData.getSource)()));
|
|
168
|
+
return _axios["default"].get("".concat(requestDomain(), "/api/v2/").concat(tenantId, "/").concat(userId, "/search/searchAll?keyWork=").concat(searchKey).concat(args.length ? "&".concat(args.join("&")) : "")).then(function (searchRes) {
|
|
184
169
|
return searchRes.data;
|
|
185
170
|
});
|
|
186
171
|
};
|
|
@@ -59,9 +59,7 @@ function _default(props) {
|
|
|
59
59
|
|
|
60
60
|
var _useContext = (0, _react.useContext)(_context.CommonContext),
|
|
61
61
|
departOnly = _useContext.departOnly,
|
|
62
|
-
searchUserOnly = _useContext.searchUserOnly,
|
|
63
62
|
sourceFrom = _useContext.sourceFrom,
|
|
64
|
-
isVerify = _useContext.isVerify,
|
|
65
63
|
_useContext$panes = _useContext.panes,
|
|
66
64
|
panes = _useContext$panes === void 0 ? {
|
|
67
65
|
depart: true,
|
|
@@ -99,9 +97,7 @@ function _default(props) {
|
|
|
99
97
|
(0, _requestApis.search)({
|
|
100
98
|
searchKey: searchKey,
|
|
101
99
|
departOnly: departOnly,
|
|
102
|
-
|
|
103
|
-
sourceFrom: sourceFrom,
|
|
104
|
-
isVerify: isVerify
|
|
100
|
+
sourceFrom: sourceFrom
|
|
105
101
|
}).then(function (res) {
|
|
106
102
|
var Code = res.Code,
|
|
107
103
|
Data = res.Data;
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _contactKefu = _interopRequireDefault(require("../../components/contact-kefu"));
|
|
15
|
+
|
|
14
16
|
var _navTop = _interopRequireDefault(require("../../components/nav-top"));
|
|
15
17
|
|
|
16
18
|
var _followerVisitor = _interopRequireDefault(require("../../components/follower-visitor"));
|
|
@@ -35,12 +37,10 @@ var _errorBoundary = _interopRequireDefault(require("../../components/error-boun
|
|
|
35
37
|
|
|
36
38
|
var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
|
|
37
39
|
|
|
38
|
-
var _hooks = _interopRequireDefault(require("../../utils/hooks"));
|
|
39
|
-
|
|
40
|
-
var _newMenuSwitcher = _interopRequireDefault(require("./new-menu-switcher"));
|
|
41
|
-
|
|
42
40
|
require("./index.css");
|
|
43
41
|
|
|
42
|
+
var _hooks = _interopRequireDefault(require("../../utils/hooks"));
|
|
43
|
+
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
45
45
|
|
|
46
46
|
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); }
|
|
@@ -103,7 +103,7 @@ function PageLayout(props) {
|
|
|
103
103
|
}
|
|
104
104
|
}, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
105
105
|
className: (0, _classnames["default"])("".concat(preCls, "__help"))
|
|
106
|
-
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), /*#__PURE__*/_react["default"].createElement(
|
|
106
|
+
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTencentHr && !(0, _helpers.isDingDing)() && !(0, _helpers.isFeishu)() && /*#__PURE__*/_react["default"].createElement(_contactKefu["default"], null), isTrial && !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
107
107
|
className: "".concat(preCls, "__invite")
|
|
108
108
|
}, /*#__PURE__*/_react["default"].createElement(_invitePeople["default"], null)), isTencentHr && /*#__PURE__*/_react["default"].createElement(_hrMessage["default"], null), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
109
109
|
errorLevel: _errorLevel["default"].P0,
|