@titaui/pc 1.7.44 → 1.7.48
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/dynamic/dynamic-item/dynamic-kr/index.js +1 -3
- package/lib/components/nav-top/request.apis.js +1 -1
- package/lib/components/weekly-report/index.js +16 -10
- package/lib/pages/group-management/components/table/index.css +15 -0
- package/lib/pages/group-management/components/table/index.js +11 -12
- package/lib/pages/group-management/table/index.css +5 -0
- package/lib/pages/new-okr-list/keyword-search/index.js +5 -2
- package/lib/pages/personal-info/components/base-info/index.js +3 -1
- package/package.json +1 -1
- package/yarn-error.log +0 -15894
|
@@ -19,8 +19,6 @@ var _title = _interopRequireDefault(require("../../components/title"));
|
|
|
19
19
|
|
|
20
20
|
var _util = require("../../util");
|
|
21
21
|
|
|
22
|
-
var _constant = require("../../constant");
|
|
23
|
-
|
|
24
22
|
var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
25
23
|
|
|
26
24
|
require("./index.css");
|
|
@@ -72,7 +70,7 @@ var DynamicKr = function DynamicKr(_ref) {
|
|
|
72
70
|
className: prefix + '__operate-desc'
|
|
73
71
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
74
72
|
className: prefix + '__operate-desc-wrapper'
|
|
75
|
-
}, "\u8D1F\u8D23\u4E86",
|
|
73
|
+
}, "\u8D1F\u8D23\u4E86\u76EE\u6807", /*#__PURE__*/_react["default"].createElement("span", {
|
|
76
74
|
className: prefix + '__object-name',
|
|
77
75
|
onClick: handleClickOTitle
|
|
78
76
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
@@ -60,7 +60,7 @@ var clearInforms = function clearInforms() {
|
|
|
60
60
|
exports.clearInforms = clearInforms;
|
|
61
61
|
|
|
62
62
|
var clearReplys = function clearReplys() {
|
|
63
|
-
return (0, _request.rdelete)("v1")("Indicator/Clear?message_type=0&indicator_type=
|
|
63
|
+
return (0, _request.rdelete)("v1")("Indicator/Clear?message_type=0&indicator_type=mLeaveandComment");
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
exports.clearReplys = clearReplys;
|
|
@@ -156,17 +156,23 @@ function WeeklyReportModal(_ref4) {
|
|
|
156
156
|
var _useState5 = (0, _react.useState)(),
|
|
157
157
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
158
158
|
data = _useState6[0],
|
|
159
|
-
setData = _useState6[1];
|
|
160
|
-
// window?.Talent?.app.vent.off('open-weekly-report-modal')
|
|
161
|
-
// window?.Talent?.app.vent.on('open-weekly-report-modal',(redisKey)=>{
|
|
162
|
-
// if(visible) return;
|
|
163
|
-
// setRedisKey(redisKey)
|
|
164
|
-
// setVisible(true)
|
|
165
|
-
// })
|
|
166
|
-
// return () => window?.Talent?.app.vent.off('open-weekly-report-modal')
|
|
167
|
-
// }, [visible])
|
|
159
|
+
setData = _useState6[1];
|
|
168
160
|
|
|
161
|
+
(0, _react.useEffect)(function () {
|
|
162
|
+
var _window, _window$Talent, _window2, _window2$Talent;
|
|
163
|
+
|
|
164
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$Talent = _window.Talent) === null || _window$Talent === void 0 ? void 0 : _window$Talent.app.vent.off('open-weekly-report-modal');
|
|
165
|
+
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Talent = _window2.Talent) === null || _window2$Talent === void 0 ? void 0 : _window2$Talent.app.vent.on('open-weekly-report-modal', function (redisKey) {
|
|
166
|
+
if (visible) return;
|
|
167
|
+
setRedisKey(redisKey);
|
|
168
|
+
setVisible(true);
|
|
169
|
+
});
|
|
170
|
+
return function () {
|
|
171
|
+
var _window3, _window3$Talent;
|
|
169
172
|
|
|
173
|
+
return (_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$Talent = _window3.Talent) === null || _window3$Talent === void 0 ? void 0 : _window3$Talent.app.vent.off('open-weekly-report-modal');
|
|
174
|
+
};
|
|
175
|
+
}, [visible]);
|
|
170
176
|
(0, _react.useEffect)(function () {
|
|
171
177
|
if (!visible) return;
|
|
172
178
|
var current = new Date();
|
|
@@ -191,7 +197,7 @@ function WeeklyReportModal(_ref4) {
|
|
|
191
197
|
}
|
|
192
198
|
|
|
193
199
|
if (visible) {
|
|
194
|
-
(0, _request.rdelete)('v1')('Indicator/Clear?message_type=0&indicator_type=
|
|
200
|
+
(0, _request.rdelete)('v1')('Indicator/Clear?message_type=0&indicator_type=mWeekStatisticIndicator');
|
|
195
201
|
}
|
|
196
202
|
}, [visible]);
|
|
197
203
|
if (!data) return null;
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
font-size: 14px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
.tita-components__table .rc-table-cell-row-hover {
|
|
41
|
+
background: #F7F8FA !important;
|
|
42
|
+
}
|
|
43
|
+
|
|
40
44
|
.tita-components__table__select-td {
|
|
41
45
|
display: inline-block;
|
|
42
46
|
min-width: 23px;
|
|
@@ -61,3 +65,14 @@
|
|
|
61
65
|
border-width: 1px;
|
|
62
66
|
padding: 4px;
|
|
63
67
|
}
|
|
68
|
+
|
|
69
|
+
.tita-components__select-td {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
position: relative;
|
|
73
|
+
top: -1px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.rc-table-cell-row-hover {
|
|
77
|
+
background: #F7F8FA !important;
|
|
78
|
+
}
|
|
@@ -15,7 +15,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
|
|
16
16
|
var _rcPagination = _interopRequireDefault(require("rc-pagination"));
|
|
17
17
|
|
|
18
|
-
var _checkbox = _interopRequireDefault(require("
|
|
18
|
+
var _checkbox = _interopRequireDefault(require("../../../../components/checkbox"));
|
|
19
19
|
|
|
20
20
|
require("rc-table/assets/index.css");
|
|
21
21
|
|
|
@@ -97,10 +97,10 @@ var _default = function _default(props) {
|
|
|
97
97
|
return status;
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
var onCheckAllHandler = function onCheckAllHandler(
|
|
100
|
+
var onCheckAllHandler = function onCheckAllHandler(checked) {
|
|
101
101
|
var arr = [];
|
|
102
102
|
|
|
103
|
-
if (
|
|
103
|
+
if (checked) {
|
|
104
104
|
for (var i = 0; i < tdata.length; i++) {
|
|
105
105
|
arr.push(i);
|
|
106
106
|
}
|
|
@@ -109,10 +109,10 @@ var _default = function _default(props) {
|
|
|
109
109
|
setRowSelected(arr);
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
var onCheckHandler = function onCheckHandler(
|
|
112
|
+
var onCheckHandler = function onCheckHandler(checked, id) {
|
|
113
113
|
var arr = _toConsumableArray(rowSelected);
|
|
114
114
|
|
|
115
|
-
if (
|
|
115
|
+
if (checked) {
|
|
116
116
|
arr.push(id);
|
|
117
117
|
arr.sort(function (a, b) {
|
|
118
118
|
return a - b;
|
|
@@ -129,12 +129,12 @@ var _default = function _default(props) {
|
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
var selectCloumn = {
|
|
132
|
-
title: /*#__PURE__*/_react["default"].createElement("span",
|
|
132
|
+
title: /*#__PURE__*/_react["default"].createElement("span", {
|
|
133
|
+
className: (0, _classnames["default"])("".concat(preCls, "__select-td"))
|
|
134
|
+
}, " ", /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
133
135
|
className: "tita-checkbox",
|
|
134
136
|
checked: rowSelected.length === tdata.length,
|
|
135
|
-
onChange:
|
|
136
|
-
return onCheckAllHandler(e);
|
|
137
|
-
}
|
|
137
|
+
onChange: onCheckAllHandler
|
|
138
138
|
}), " "),
|
|
139
139
|
dataIndex: 'key',
|
|
140
140
|
key: 'key',
|
|
@@ -146,9 +146,8 @@ var _default = function _default(props) {
|
|
|
146
146
|
}, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
|
|
147
147
|
className: "tita-checkbox",
|
|
148
148
|
checked: has(id),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
149
|
+
name: id,
|
|
150
|
+
onChange: onCheckHandler
|
|
152
151
|
}));
|
|
153
152
|
}
|
|
154
153
|
};
|
|
@@ -52,8 +52,11 @@ var KeywordSearch = function KeywordSearch(props) {
|
|
|
52
52
|
|
|
53
53
|
var handleSearchClick = function handleSearchClick() {
|
|
54
54
|
if (!active) {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
var _inputRef$current;
|
|
56
|
+
|
|
57
|
+
setActive(true); //@ts-ignore
|
|
58
|
+
|
|
59
|
+
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
57
60
|
} else {
|
|
58
61
|
handleSearch();
|
|
59
62
|
}
|
|
@@ -117,7 +117,9 @@ var BaseInfo = function BaseInfo() {
|
|
|
117
117
|
(0, _react.useEffect)(function () {
|
|
118
118
|
(0, _requestApi.getUserInfoFun)().then(function (resp) {
|
|
119
119
|
if (resp.Code === 1 && resp.Data) {
|
|
120
|
-
setUserInfo(resp.Data)
|
|
120
|
+
setUserInfo(_objectSpread(_objectSpread({}, resp.Data), {}, {
|
|
121
|
+
position: resp.Data.positionCode
|
|
122
|
+
}));
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
125
|
}, []);
|