@titaui/pc 1.7.43 → 1.7.47

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.
@@ -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=17");
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]; // useEffect(() => {
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=15');
200
+ (0, _request.rdelete)('v1')('Indicator/Clear?message_type=0&indicator_type=mWeekStatisticIndicator');
195
201
  }
196
202
  }, [visible]);
197
203
  if (!data) return null;
@@ -52,8 +52,11 @@ var KeywordSearch = function KeywordSearch(props) {
52
52
 
53
53
  var handleSearchClick = function handleSearchClick() {
54
54
  if (!active) {
55
- setActive(true);
56
- inputRef.current.focus();
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.43",
3
+ "version": "1.7.47",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",