@titaui/pc 1.12.48-beta.2 → 1.12.48-beta.3
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/attachments-preview/index.css +5 -0
- package/lib/components/dynamic/constant.js +5 -1
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +44 -2
- package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +24 -6
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +10 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +61 -60
- package/lib/components/dynamic/dynamic-item/components/summary-header/request-api.js +9 -3
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +91 -45
- package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +22 -8
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +13 -0
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +5 -3
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +2 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +44 -2
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +25 -7
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/util.js +1 -1
- package/lib/components/dynamic/dynamic-item/index.css +1 -1
- package/lib/components/guide-tip/index.css +1 -1
- package/lib/components/guide-tip/index.js +15 -27
- package/lib/components/menus/components/menu-tree/tree-node/menu-item.js +5 -1
- package/lib/components/menus/export-modules/demo-menus/menus.js +5 -4
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +8 -3
- package/lib/components/menus/export-modules/summary-menus/index.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/menus.js +57 -7
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +28 -6
- package/lib/components/menus/request-apis.js +15 -1
- package/lib/components/nav-top/components/app-center/images/new.svg +30 -0
- package/lib/components/nav-top/components/app-center/index.css +20 -1
- package/lib/components/nav-top/components/app-center/index.js +9 -1
- package/lib/components/nav-top/components/menu/index.css +11 -0
- package/lib/components/nav-top/components/menu/index.js +46 -54
- package/lib/components/nav-top/index.css +5 -0
- package/lib/components/nav-top/index.js +57 -20
- package/lib/components/okr-flow/okr-map/index.js +3 -1
- package/lib/components/picker/range-picker/components/picker-trigger/index.css +2 -3
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +2 -2
- package/lib/components/rate/index.css +1 -1
- package/lib/components/rate/index.js +29 -2
- package/lib/utils/auth.js +5 -0
- package/lib/utils/open-data.js +1 -1
- package/package.json +2 -2
|
@@ -17,7 +17,7 @@ var _button = _interopRequireDefault(require("../button"));
|
|
|
17
17
|
|
|
18
18
|
require("./index.css");
|
|
19
19
|
|
|
20
|
-
var _excluded = ["type", "width", "time", "children", "popupPlacement", "classnames", "content", "onClickClose", "buttonTitle"];
|
|
20
|
+
var _excluded = ["type", "width", "time", "children", "popupPlacement", "classnames", "content", "onClickClose", "buttonTitle", "visible"];
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
@@ -33,30 +33,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
33
33
|
|
|
34
34
|
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; }
|
|
35
35
|
|
|
36
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
37
|
-
|
|
38
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39
|
-
|
|
40
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
41
|
-
|
|
42
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
43
|
-
|
|
44
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
45
|
-
|
|
46
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
|
-
|
|
48
36
|
var preCls = 'titaui-pc__guide-tip';
|
|
49
37
|
var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
50
|
-
var _useState = (0, _react.useState)(false),
|
|
51
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
52
|
-
popupVisible = _useState2[0],
|
|
53
|
-
setPopupVisible = _useState2[1];
|
|
54
|
-
|
|
55
|
-
var popupRef = (0, _react.useRef)({
|
|
56
|
-
open: function open() {},
|
|
57
|
-
close: function close() {}
|
|
58
|
-
});
|
|
59
|
-
|
|
60
38
|
var _props$type = props.type,
|
|
61
39
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
62
40
|
_props$width = props.width,
|
|
@@ -69,11 +47,19 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
69
47
|
_props$classnames = props.classnames,
|
|
70
48
|
classnames = _props$classnames === void 0 ? "".concat(preCls, "__popup") : _props$classnames,
|
|
71
49
|
content = props.content,
|
|
72
|
-
onClickClose = props.onClickClose,
|
|
50
|
+
_props$onClickClose = props.onClickClose,
|
|
51
|
+
onClickClose = _props$onClickClose === void 0 ? function () {} : _props$onClickClose,
|
|
73
52
|
_props$buttonTitle = props.buttonTitle,
|
|
74
53
|
buttonTitle = _props$buttonTitle === void 0 ? '好哒' : _props$buttonTitle,
|
|
54
|
+
_props$visible = props.visible,
|
|
55
|
+
visible = _props$visible === void 0 ? false : _props$visible,
|
|
75
56
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
76
57
|
|
|
58
|
+
var popupRef = (0, _react.useRef)({
|
|
59
|
+
open: function open() {},
|
|
60
|
+
close: function close() {}
|
|
61
|
+
});
|
|
62
|
+
|
|
77
63
|
var handleCloseGuidePopup = function handleCloseGuidePopup() {
|
|
78
64
|
onClickClose();
|
|
79
65
|
popupRef.current.close();
|
|
@@ -92,7 +78,8 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
92
78
|
onClick: handleCloseGuidePopup
|
|
93
79
|
})), type === 'button' && /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
94
80
|
text: buttonTitle,
|
|
95
|
-
size: "small"
|
|
81
|
+
size: "small",
|
|
82
|
+
onClick: handleCloseGuidePopup
|
|
96
83
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
84
|
className: (0, _classnames["default"])("".concat(preCls, "__popup-triangle"), "".concat(preCls, "__popup-triangle--").concat(popupPlacement))
|
|
98
85
|
}));
|
|
@@ -111,16 +98,17 @@ var GuideTip = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
111
98
|
(0, _react.useEffect)(function () {
|
|
112
99
|
if (type === 'time') {
|
|
113
100
|
setTimeout(function () {
|
|
114
|
-
|
|
101
|
+
popupRef.current.close();
|
|
115
102
|
}, time);
|
|
116
103
|
}
|
|
117
104
|
}, []);
|
|
118
105
|
return /*#__PURE__*/_react["default"].createElement(_popup["default"], _extends({
|
|
119
106
|
ref: popupRef,
|
|
120
107
|
action: ['focus'],
|
|
108
|
+
maskClosable: false,
|
|
121
109
|
popupPlacement: popupPlacement,
|
|
122
110
|
popup: renderPopupContent(),
|
|
123
|
-
popupVisible:
|
|
111
|
+
popupVisible: visible
|
|
124
112
|
}, restProps), children);
|
|
125
113
|
});
|
|
126
114
|
var _default = GuideTip;
|
|
@@ -21,7 +21,11 @@ function _default(props) {
|
|
|
21
21
|
|
|
22
22
|
var onNodeClickHandler = function onNodeClickHandler() {
|
|
23
23
|
if (data.href) {
|
|
24
|
-
|
|
24
|
+
if (data.openBlank) {
|
|
25
|
+
window.open(data.href, '_blank');
|
|
26
|
+
} else {
|
|
27
|
+
window.location.href = data.href;
|
|
28
|
+
}
|
|
25
29
|
}
|
|
26
30
|
};
|
|
27
31
|
|
|
@@ -21,6 +21,7 @@ var EManagerType;
|
|
|
21
21
|
EManagerType[EManagerType["Supervisor"] = 2] = "Supervisor";
|
|
22
22
|
EManagerType[EManagerType["ReCharge"] = 3] = "ReCharge";
|
|
23
23
|
EManagerType[EManagerType["DemoFreeReadOnly"] = 4] = "DemoFreeReadOnly";
|
|
24
|
+
EManagerType[EManagerType["ReadOnlyAll"] = 5] = "ReadOnlyAll";
|
|
24
25
|
})(EManagerType || (EManagerType = {}));
|
|
25
26
|
|
|
26
27
|
var defaultRefObject = {
|
|
@@ -104,7 +105,7 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
104
105
|
label: "公海资源",
|
|
105
106
|
key: "customer",
|
|
106
107
|
href: "#/demofree/customer/public",
|
|
107
|
-
isShow:
|
|
108
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
|
|
108
109
|
children: [{
|
|
109
110
|
icon: "",
|
|
110
111
|
label: "全部客户",
|
|
@@ -129,19 +130,19 @@ var DemoMenuData = /*#__PURE__*/function () {
|
|
|
129
130
|
label: "客户续费",
|
|
130
131
|
key: "recharge",
|
|
131
132
|
href: "#/demofree/recharge",
|
|
132
|
-
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager,
|
|
133
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager || this.isManager === EManagerType.ReadOnlyAll,
|
|
133
134
|
children: [{
|
|
134
135
|
icon: "",
|
|
135
136
|
label: "客户",
|
|
136
137
|
key: PAGE_RECHARGE_LIST,
|
|
137
138
|
href: "#/demofree/recharge/list",
|
|
138
|
-
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
139
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager || this.isManager === EManagerType.ReadOnlyAll
|
|
139
140
|
}, {
|
|
140
141
|
icon: "",
|
|
141
142
|
label: "到期订单",
|
|
142
143
|
key: PAGE_DUEDATE_ORDER,
|
|
143
144
|
href: "#/demofree/recharge/order",
|
|
144
|
-
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager
|
|
145
|
+
isShow: this.isManager === EManagerType.ReCharge || this.isManager === EManagerType.Manager || this.isManager === EManagerType.ReadOnlyAll
|
|
145
146
|
}]
|
|
146
147
|
}];
|
|
147
148
|
}
|
|
@@ -100,7 +100,7 @@ var _default = function _default() {
|
|
|
100
100
|
var showCompanyAll = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager();
|
|
101
101
|
(0, _react.useEffect)(function () {
|
|
102
102
|
if (showCompanyAll) {
|
|
103
|
-
window.location.href = '#/summary/manage?departmentName=公司全部&departmentId=0';
|
|
103
|
+
window.location.href = '#/summary/manage?departmentName=公司全部&departmentId=0&modeType=date';
|
|
104
104
|
|
|
105
105
|
var allDepartmentText = window.getLocale && window.getLocale(_i18n.locale.menu_alldeparment) || _i18n.locale.menu_alldeparment;
|
|
106
106
|
|
|
@@ -124,7 +124,6 @@ var _default = function _default() {
|
|
|
124
124
|
});
|
|
125
125
|
} else {
|
|
126
126
|
(0, _requestApis.getMyDepartMent)().then(function (res) {
|
|
127
|
-
location.href = "#/summary/manage?departmentName=".concat(res.Data.departments[0].name, "&departmentId=").concat(res.Data.departments[0].id);
|
|
128
127
|
var rawTreeData = (0, _helper.translateDepartsToTreeNode)(res.Data.departments);
|
|
129
128
|
var rootNode = {
|
|
130
129
|
async: true,
|
|
@@ -133,14 +132,20 @@ var _default = function _default() {
|
|
|
133
132
|
name: '全部管理部门'
|
|
134
133
|
},
|
|
135
134
|
pid: 0,
|
|
136
|
-
id:
|
|
135
|
+
id: -1,
|
|
137
136
|
key: -1,
|
|
137
|
+
isLeaf: true,
|
|
138
138
|
nodeType: _index.DEPART_NODE,
|
|
139
139
|
title: '全部管理部门'
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
if (rawTreeData.length > 1) {
|
|
143
|
+
location.href = "#/summary/manage?departmentName=".concat(res.Data.departments[0].name, "&departmentId=-1&modeType=date");
|
|
143
144
|
rawTreeData.unshift(rootNode);
|
|
145
|
+
setSelectedMenuKeys([-1]);
|
|
146
|
+
} else {
|
|
147
|
+
location.href = "#/summary/manage?departmentName=".concat(res.Data.departments[0].name, "&departmentId=").concat(res.Data.departments[0].id, "&modeType=date");
|
|
148
|
+
setSelectedMenuKeys([rawTreeData[0].id]);
|
|
144
149
|
}
|
|
145
150
|
|
|
146
151
|
setRawTreeData(_toConsumableArray(rawTreeData));
|
|
@@ -74,7 +74,7 @@ function SummaryMenus(props) {
|
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
var onUserSelectHandler = function onUserSelectHandler(user) {
|
|
77
|
-
location.href = "#/summary/manage?toUserId=".concat(user.id);
|
|
77
|
+
location.href = "#/summary/manage?toUserId=".concat(user.id, "&modeType=date");
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
var flipGoNext = function flipGoNext(opt) {
|
|
@@ -58,7 +58,7 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
58
58
|
|
|
59
59
|
this.COMPANYALL = _index.COMPANY_ALL_NODE;
|
|
60
60
|
this.SHARE = _index.SHARE_NODE;
|
|
61
|
-
this.SUBORDINATES =
|
|
61
|
+
this.SUBORDINATES = _index.SUBORDINATES_NODE;
|
|
62
62
|
this.menus = [{
|
|
63
63
|
icon: "caidan-my",
|
|
64
64
|
label: _i18n.locale.menu_my_summary,
|
|
@@ -77,7 +77,7 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
77
77
|
icon: "caidan-xiashu",
|
|
78
78
|
label: _i18n.locale.menu_my_subordinates,
|
|
79
79
|
key: this.SUBORDINATES,
|
|
80
|
-
type:
|
|
80
|
+
type: this.SUBORDINATES,
|
|
81
81
|
isLeaf: false,
|
|
82
82
|
children: [],
|
|
83
83
|
href: "#/summary/subordinates",
|
|
@@ -85,8 +85,10 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
85
85
|
}, {
|
|
86
86
|
icon: "caidan-enjoy",
|
|
87
87
|
label: _i18n.locale.menu_my_share,
|
|
88
|
-
key:
|
|
89
|
-
type:
|
|
88
|
+
key: this.SHARE,
|
|
89
|
+
type: this.SHARE,
|
|
90
|
+
isLeaf: false,
|
|
91
|
+
children: [],
|
|
90
92
|
href: "#/summary/share",
|
|
91
93
|
isShow: props.isShowShare
|
|
92
94
|
}, {
|
|
@@ -109,17 +111,18 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
109
111
|
key: PAGE_SUMMARY_ROLE,
|
|
110
112
|
type: _index.MENU_ITEM_NOE,
|
|
111
113
|
href: "#/enterprise/manage?reactRouterName=daily",
|
|
112
|
-
isShow: isShowManage
|
|
114
|
+
isShow: isShowManage,
|
|
115
|
+
openBlank: true
|
|
113
116
|
}];
|
|
114
117
|
}
|
|
115
118
|
|
|
116
119
|
_createClass(summaryMenus, [{
|
|
117
120
|
key: "setSubordinatesLoading",
|
|
118
121
|
value: function setSubordinatesLoading(loading) {
|
|
119
|
-
this.menus[
|
|
122
|
+
this.menus[2].children = [];
|
|
120
123
|
|
|
121
124
|
if (loading) {
|
|
122
|
-
this.menus[
|
|
125
|
+
this.menus[2].children.push({
|
|
123
126
|
icon: "",
|
|
124
127
|
label: "loading",
|
|
125
128
|
key: "loading-subordinates",
|
|
@@ -160,6 +163,53 @@ var summaryMenus = /*#__PURE__*/function () {
|
|
|
160
163
|
|
|
161
164
|
this.menus[2].children = treeNodeUsers;
|
|
162
165
|
}
|
|
166
|
+
}, {
|
|
167
|
+
key: "setShareLoading",
|
|
168
|
+
value: function setShareLoading(loading) {
|
|
169
|
+
this.menus[3].children = [];
|
|
170
|
+
|
|
171
|
+
if (loading) {
|
|
172
|
+
this.menus[3].children.push({
|
|
173
|
+
icon: "",
|
|
174
|
+
label: "loading",
|
|
175
|
+
key: "loading-subordinates",
|
|
176
|
+
type: _index.LOADING_NODE,
|
|
177
|
+
href: "",
|
|
178
|
+
data: {}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, {
|
|
183
|
+
key: "insertShare",
|
|
184
|
+
value: function insertShare(users) {
|
|
185
|
+
if (!users || !users.length) {
|
|
186
|
+
this.menus[3].children = [{
|
|
187
|
+
icon: "",
|
|
188
|
+
label: "empty-subordinates",
|
|
189
|
+
key: "empty-subordinates",
|
|
190
|
+
type: _index.NO_SUBORDINATES_NODE,
|
|
191
|
+
href: "",
|
|
192
|
+
data: {}
|
|
193
|
+
}];
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
var treeNodeUsers = [];
|
|
198
|
+
|
|
199
|
+
for (var i = 0; i < users.length; i++) {
|
|
200
|
+
var user = users[i];
|
|
201
|
+
treeNodeUsers.push({
|
|
202
|
+
icon: "",
|
|
203
|
+
label: user.name,
|
|
204
|
+
key: "".concat(user.userId),
|
|
205
|
+
type: _index.USER_NODE,
|
|
206
|
+
href: "",
|
|
207
|
+
data: user
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
this.menus[3].children = treeNodeUsers;
|
|
212
|
+
}
|
|
163
213
|
}, {
|
|
164
214
|
key: "getMenus",
|
|
165
215
|
value: function getMenus() {
|
|
@@ -79,7 +79,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
79
79
|
isShowShare = _useState8[0],
|
|
80
80
|
setIsShowShare = _useState8[1];
|
|
81
81
|
|
|
82
|
-
var isShowDepartment = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader();
|
|
82
|
+
var isShowDepartment = baseAuth.isBoss() || baseAuth.isAssistant() || baseAuth.isPlanDailyManager() || baseAuth.isDepartmentLeader() || baseAuth.isHrbp();
|
|
83
83
|
var flipRef = (0, _react.useRef)({
|
|
84
84
|
next: function next() {},
|
|
85
85
|
goback: function goback() {}
|
|
@@ -121,8 +121,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
121
121
|
|
|
122
122
|
onSelect(node); // 处理菜单选中
|
|
123
123
|
|
|
124
|
-
if (!selectedKyes.length) return;
|
|
125
|
-
setSelectedMenuKeys(selectedKyes);
|
|
124
|
+
if (!selectedKyes.length) return; // setSelectedMenuKeys(selectedKyes) // 为了点总结管理规定的时候不高亮这个菜单,这个菜单新页面打开的,自测没影响,有影响了再说
|
|
126
125
|
}; // 获取下属数据列表
|
|
127
126
|
|
|
128
127
|
|
|
@@ -145,18 +144,41 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
145
144
|
resolve(true);
|
|
146
145
|
})["catch"](reject);
|
|
147
146
|
});
|
|
147
|
+
}; // 获取共享我的数据列表
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
var getShareUsers = function getShareUsers() {
|
|
151
|
+
return new Promise(function (resolve, reject) {
|
|
152
|
+
var mdata = summaryMenusData.current; // 初始化 Loading
|
|
153
|
+
|
|
154
|
+
mdata.setShareLoading(true);
|
|
155
|
+
setMenus(mdata.getMenus());
|
|
156
|
+
resolve(true); // 获取数据
|
|
157
|
+
|
|
158
|
+
(0, _requestApis.getShareUsersData)().then(function (users) {
|
|
159
|
+
console.log(users);
|
|
160
|
+
mdata.setShareLoading(false);
|
|
161
|
+
mdata.insertShare(users);
|
|
162
|
+
setMenus(mdata.getMenus());
|
|
163
|
+
resolve(true);
|
|
164
|
+
})["catch"](reject);
|
|
165
|
+
});
|
|
148
166
|
};
|
|
149
167
|
|
|
150
168
|
var onLoadTreeNodeDataHandler = function onLoadTreeNodeDataHandler(treeNode) {
|
|
151
169
|
return new Promise(function (resolve) {
|
|
152
|
-
if (treeNode.key
|
|
153
|
-
resolve(true);
|
|
154
|
-
} else if (treeNode.key == summaryMenusData.current.SUBORDINATES) {
|
|
170
|
+
if (treeNode.key == summaryMenusData.current.SUBORDINATES) {
|
|
155
171
|
getSubordinaters().then(function () {
|
|
156
172
|
return resolve(true);
|
|
157
173
|
})["catch"](function () {
|
|
158
174
|
return resolve(true);
|
|
159
175
|
});
|
|
176
|
+
} else if (treeNode.key == summaryMenusData.current.SHARE) {
|
|
177
|
+
getShareUsers().then(function () {
|
|
178
|
+
return resolve(true);
|
|
179
|
+
})["catch"](function () {
|
|
180
|
+
return resolve(true);
|
|
181
|
+
});
|
|
160
182
|
} else {
|
|
161
183
|
resolve(true);
|
|
162
184
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.removeFollower = exports.getSubordinates = exports.getMyDepartMent = exports.getFollowerList = exports.getDepsAndUsers = exports.addFollower = void 0;
|
|
6
|
+
exports.removeFollower = exports.getSubordinates = exports.getShareUsersData = exports.getMyDepartMent = exports.getFollowerList = exports.getDepsAndUsers = exports.addFollower = void 0;
|
|
7
7
|
|
|
8
8
|
var _axios = _interopRequireDefault(require("axios"));
|
|
9
9
|
|
|
@@ -96,6 +96,20 @@ var getSubordinates = function getSubordinates(_ref) {
|
|
|
96
96
|
|
|
97
97
|
exports.getSubordinates = getSubordinates;
|
|
98
98
|
|
|
99
|
+
var getShareUsersData = function getShareUsersData() {
|
|
100
|
+
return (0, _request.rget)("v1")("summary/getShareUsers?toUserId=".concat(userId)).then(function (res) {
|
|
101
|
+
var users = [];
|
|
102
|
+
|
|
103
|
+
if (res.Code === 1) {
|
|
104
|
+
users = res.Data;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return users;
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
exports.getShareUsersData = getShareUsersData;
|
|
112
|
+
|
|
99
113
|
var addFollower = function addFollower(id) {
|
|
100
114
|
return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/follow/addFollower?followerId=").concat(id), null, {
|
|
101
115
|
headers: {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="36px" height="26px" viewBox="0 0 36 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>气泡</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<path d="M26.0757238,0 C26.0757238,0 26.5924276,0.590963041 26.752784,2.04150869 C26.8839846,3.22831876 26.7408566,3.5759702 26.6844729,3.66315551 L26.6693863,3.6833642 L26.6693863,3.6833642 C26.6636971,3.68904201 27.2516704,3.6353181 27.3942094,3.25925071 C27.5358931,2.88547554 28.1011492,5.62102555 27.2497105,6.55512322 C27.2725189,6.60410922 27.2788178,6.63812034 27.2701648,6.65847289 C27.7385548,7.67365164 28,8.80629392 28,10 C28,14.418278 24.418278,18 20,18 L8,18 C3.581722,18 5.41083001e-16,14.418278 0,10 C-5.41083001e-16,5.581722 3.581722,2 8,2 L20,2 C20.4454205,2 20.8823388,2.03640207 21.3079422,2.10639354 C21.2551772,2.04616026 21.2417596,2.01501277 21.2749755,2.02035937 C21.4000713,1.99627315 21.6377016,1.90182651 22.0846325,1.61171738 C22.9398664,1.05657029 23.1002227,0.823766663 23.1002227,0.823766663 C23.1002227,0.823766663 23.2249443,1.19983405 23.1714922,1.53113152 C23.1180401,1.86242898 23.064588,2.05941666 23.064588,2.05941666 C23.064588,2.05941666 24.2583519,1.98778477 24.9888641,1.27146594 C25.7193764,0.555147099 26.0757238,0 26.0757238,0 Z" id="path-1"></path>
|
|
6
|
+
<filter x="-25.0%" y="-27.8%" width="150.0%" height="177.8%" filterUnits="objectBoundingBox" id="filter-2">
|
|
7
|
+
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
8
|
+
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
9
|
+
<feColorMatrix values="0 0 0 0 0.941176471 0 0 0 0 0.368627451 0 0 0 0 0.368627451 0 0 0 0.4 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
|
|
10
|
+
</filter>
|
|
11
|
+
</defs>
|
|
12
|
+
<g id="控件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
13
|
+
<g id="top-面谈" transform="translate(-797.000000, -7.000000)">
|
|
14
|
+
<g id="一级菜单" transform="translate(204.000000, 3.000000)">
|
|
15
|
+
<g id="气泡" transform="translate(597.000000, 6.000000)">
|
|
16
|
+
<text id="new" font-family="Arial-BoldMT, Arial" font-size="12" font-weight="bold" line-spacing="18" fill="#FFFFFF">
|
|
17
|
+
<tspan x="1" y="11">new</tspan>
|
|
18
|
+
</text>
|
|
19
|
+
<g id="hot" fill-rule="nonzero">
|
|
20
|
+
<g id="形状">
|
|
21
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-2)" xlink:href="#path-1"></use>
|
|
22
|
+
<use fill="#F05E5E" xlink:href="#path-1"></use>
|
|
23
|
+
</g>
|
|
24
|
+
<path d="M4.61115455,12.8702703 L4.61115455,10.2702703 C4.61115455,9.62882883 4.65224568,9.18918919 4.73442794,8.95135135 C4.8166102,8.71351351 4.96855182,8.52252252 5.1902528,8.37837838 C5.41195378,8.23423423 5.662323,8.16216216 5.94136044,8.16216216 C6.15923899,8.16216216 6.34558249,8.21261261 6.50039093,8.31351351 C6.65519937,8.41441441 6.76700547,8.55585586 6.83580923,8.73783784 C6.90461298,8.91981982 6.93901486,9.32072072 6.93901486,9.94054054 L6.93901486,9.94054054 L6.93901486,12.8702703 L8.5501694,12.8702703 L8.5501694,9.3027027 C8.5501694,8.85945946 8.52054557,8.51891892 8.46129789,8.28108108 C8.40205021,8.04324324 8.29693337,7.83063063 8.14594735,7.64324324 C7.99496134,7.45585586 7.77230475,7.3018018 7.47797759,7.18108108 C7.18365042,7.06036036 6.85874381,7 6.50325775,7 C5.69672487,7 5.0277995,7.32432432 4.49648163,7.97297297 L4.49648163,7.97297297 L4.49648163,7.12972973 L3,7.12972973 L3,12.8702703 L4.61115455,12.8702703 Z M12.6669273,13 C13.3358527,13 13.8929719,12.854955 14.3382851,12.5648649 C14.7835983,12.2747748 15.1094605,11.8522523 15.3158718,11.2972973 L15.3158718,11.2972973 L13.7104509,11.0432432 C13.622535,11.3315315 13.4925723,11.5405405 13.3205629,11.6702703 C13.1485536,11.8 12.9364087,11.8648649 12.6841282,11.8648649 C12.3133524,11.8648649 12.0037356,11.7396396 11.7552776,11.4891892 C11.5068196,11.2387387 11.3768569,10.8882883 11.3653896,10.4378378 L11.3653896,10.4378378 L15.4018765,10.4378378 C15.4248111,9.27387387 15.1744418,8.40990991 14.6507688,7.84594595 C14.1270958,7.28198198 13.4123013,7 12.5063852,7 C11.6998523,7 11.0328382,7.26936937 10.5053427,7.80810811 C9.97784728,8.34684685 9.71409956,9.09189189 9.71409956,10.0432432 C9.71409956,10.8396396 9.91477717,11.4990991 10.3161324,12.0216216 C10.8245157,12.6738739 11.608114,13 12.6669273,13 Z M13.8021892,9.50810811 L11.3940579,9.50810811 C11.3902354,9.09369369 11.5029971,8.76576577 11.732343,8.52432432 C11.9616888,8.28288288 12.2521936,8.16216216 12.6038572,8.16216216 C12.9325862,8.16216216 13.2116237,8.27657658 13.4409695,8.50540541 C13.6703154,8.73423423 13.7907219,9.06846847 13.8021892,9.50810811 L13.8021892,9.50810811 Z M19.4154287,12.8702703 L20.447485,9.17837838 L21.4967422,12.8702703 L23.0448267,12.8702703 L25,7.12972973 L23.41178,7.12972973 L22.2478499,10.8918919 L21.2329945,7.12972973 L19.6791764,7.12972973 L18.6299192,10.8918919 L17.4889236,7.12972973 L15.9236383,7.12972973 L17.8501433,12.8702703 L19.4154287,12.8702703 Z" id="new" fill="#FFFFFF"></path>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.app-center__app-item {
|
|
21
|
+
position: relative;
|
|
21
22
|
flex: 1;
|
|
22
23
|
box-sizing: border-box;
|
|
23
24
|
min-width: 260px;
|
|
@@ -29,6 +30,12 @@
|
|
|
29
30
|
cursor: pointer;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
.app-center__app-item-new {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 15px;
|
|
36
|
+
left: 100px;
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
.app-center__app-item-icon {
|
|
33
40
|
position: absolute;
|
|
34
41
|
left: 16px;
|
|
@@ -137,7 +144,7 @@
|
|
|
137
144
|
background-color: rgba(240, 94, 94, 0.1);
|
|
138
145
|
}
|
|
139
146
|
|
|
140
|
-
.app-center__app-item--
|
|
147
|
+
.app-center__app-item--summary:hover {
|
|
141
148
|
background-color: rgba(255, 168, 28, 0.1);
|
|
142
149
|
}
|
|
143
150
|
|
|
@@ -145,6 +152,18 @@
|
|
|
145
152
|
background-color: rgba(90, 216, 166, 0.1);
|
|
146
153
|
}
|
|
147
154
|
|
|
155
|
+
.app-center__app-guide .titaui-pc__guide-tip__popup-triangle {
|
|
156
|
+
left: 18%;
|
|
157
|
+
top: -5px;
|
|
158
|
+
transform: rotate(180deg);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.app-center__app-guide-content {
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
color: #FFFFFF;
|
|
164
|
+
line-height: 22px;
|
|
165
|
+
}
|
|
166
|
+
|
|
148
167
|
.app-center__drawer {
|
|
149
168
|
transform: translateY(54px);
|
|
150
169
|
}
|
|
@@ -21,10 +21,14 @@ var _utils = require("../../utils");
|
|
|
21
21
|
|
|
22
22
|
var _errorLevel = _interopRequireDefault(require("../../../../utils/error-level"));
|
|
23
23
|
|
|
24
|
+
var _helpers = require("../../../../utils/helpers");
|
|
25
|
+
|
|
24
26
|
require("./index.css");
|
|
25
27
|
|
|
26
28
|
var _interface = require("./interface");
|
|
27
29
|
|
|
30
|
+
var _new = _interopRequireDefault(require("./images/new.svg"));
|
|
31
|
+
|
|
28
32
|
var _yuyueAward = _interopRequireDefault(require("./images/yuyue-award.png"));
|
|
29
33
|
|
|
30
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -54,6 +58,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
54
58
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
59
|
|
|
56
60
|
var precls = 'app-center';
|
|
61
|
+
var userId = (0, _helpers.getLoginUserInfo)().Id;
|
|
57
62
|
|
|
58
63
|
var AppCenter = function AppCenter(props) {
|
|
59
64
|
var _props$appCenterVisib = props.appCenterVisible,
|
|
@@ -185,7 +190,10 @@ var AppCenter = function AppCenter(props) {
|
|
|
185
190
|
className: "".concat(precls, "__app-item-name")
|
|
186
191
|
}, app.title), isTrial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
187
192
|
className: "".concat(precls, "__app-item-sub-title")
|
|
188
|
-
}, app.subTitle))
|
|
193
|
+
}, app.subTitle)), app.code === 'summary' && /*#__PURE__*/_react["default"].createElement("img", {
|
|
194
|
+
src: _new["default"],
|
|
195
|
+
className: "".concat(precls, "__app-item-new")
|
|
196
|
+
}));
|
|
189
197
|
}), new Array(20).fill(1).map(function () {
|
|
190
198
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
191
199
|
className: "".concat(precls, "__app-item-placeholder")
|
|
@@ -117,6 +117,17 @@
|
|
|
117
117
|
position: relative;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
.titaui-nav-top-menu__guide .titaui-pc__guide-tip__popup-triangle {
|
|
121
|
+
top: -5px;
|
|
122
|
+
transform: rotate(180deg);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.titaui-nav-top-menu__guide-content {
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
color: #FFFFFF;
|
|
128
|
+
line-height: 22px;
|
|
129
|
+
}
|
|
130
|
+
|
|
120
131
|
.titaui-nav-top-menu__tips {
|
|
121
132
|
position: relative;
|
|
122
133
|
}
|