@titaui/pc 1.10.6-3.beta-4 → 1.10.6-3.beta-5

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.
@@ -68,7 +68,13 @@ function _default(props) {
68
68
  className = props.className,
69
69
  changeData = props.changeData,
70
70
  _props$includeWork = props.includeWork,
71
- includeWork = _props$includeWork === void 0 ? true : _props$includeWork;
71
+ includeWork = _props$includeWork === void 0 ? true : _props$includeWork,
72
+ _props$IncludeNoTaskK = props.IncludeNoTaskKr,
73
+ IncludeNoTaskKr = _props$IncludeNoTaskK === void 0 ? true : _props$IncludeNoTaskK,
74
+ _props$hasLoading = props.hasLoading,
75
+ hasLoading = _props$hasLoading === void 0 ? true : _props$hasLoading,
76
+ _props$IsDateFilter = props.IsDateFilter,
77
+ IsDateFilter = _props$IsDateFilter === void 0 ? false : _props$IsDateFilter;
72
78
  var loginUser = (0, _bsGlobal.getUserInfo)().Id;
73
79
  var hasCondition = hasSearch && localStorage.getItem("hasRememberCondition".concat(loginUser));
74
80
 
@@ -142,15 +148,12 @@ function _default(props) {
142
148
  startDate: startDate,
143
149
  endDate: endDate,
144
150
  toLevel: toLevel,
145
- includeWork: includeWork
151
+ includeWork: includeWork,
152
+ IncludeNoTaskKr: IncludeNoTaskKr,
153
+ IsDateFilter: IsDateFilter
146
154
  })
147
155
  }).then(function (krs) {
148
156
  debugger;
149
-
150
- if (!krs || !krs.length) {
151
- changeData(true);
152
- }
153
-
154
157
  var formatKrs = formatEList(krs, okrId, (0, _util.getIfInitCondition)(selectName, checkedStatus, selectUsers, searchKey));
155
158
  var expandedKrEs = (formatKrs.krsEList || []).map(function (it) {
156
159
  return it.key;
@@ -176,7 +179,9 @@ function _default(props) {
176
179
  }, [krList, oEList]);
177
180
  return /*#__PURE__*/_react["default"].createElement(_context.EListContext.Provider, {
178
181
  value: {
179
- refreshEList: getKrEsData
182
+ refreshEList: function refreshEList() {
183
+ return getKrEsData(formatTree);
184
+ }
180
185
  }
181
186
  }, /*#__PURE__*/_react["default"].createElement("div", {
182
187
  className: "".concat(preCls, " ").concat(className)
@@ -191,7 +196,7 @@ function _default(props) {
191
196
  selectUsers: selectUsers,
192
197
  setSelectUsers: setSelectUsers,
193
198
  okrId: okrId
194
- })), !loading ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
199
+ })), !loading || !hasLoading ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
195
200
  condition: totalDataNum !== 0
196
201
  }, krList.map(function (kr, index) {
197
202
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], {
@@ -167,7 +167,9 @@ var formatCondition = function formatCondition(_ref) {
167
167
  startDate = _ref.startDate,
168
168
  endDate = _ref.endDate,
169
169
  toLevel = _ref.toLevel,
170
- includeWork = _ref.includeWork;
170
+ includeWork = _ref.includeWork,
171
+ IncludeNoTaskKr = _ref.IncludeNoTaskKr,
172
+ IsDateFilter = _ref.IsDateFilter;
171
173
  var resultStatus = [];
172
174
 
173
175
  if (checkedStatus.includes("all")) {
@@ -200,6 +202,8 @@ var formatCondition = function formatCondition(_ref) {
200
202
  startDate: startDate || '',
201
203
  endDate: endDate || '',
202
204
  includeWork: includeWork,
205
+ IncludeNoTaskKr: IncludeNoTaskKr,
206
+ IsDateFilter: IsDateFilter,
203
207
  status: resultStatus.join(","),
204
208
  userObjects: users.map(function (user) {
205
209
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.63.beta-4",
3
+ "version": "1.10.63.beta-5",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",