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

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.
@@ -62,7 +62,13 @@ function _default(props) {
62
62
  _props$endDate = props.endDate,
63
63
  endDate = _props$endDate === void 0 ? '' : _props$endDate,
64
64
  _props$toLevel = props.toLevel,
65
- toLevel = _props$toLevel === void 0 ? 999 : _props$toLevel;
65
+ toLevel = _props$toLevel === void 0 ? 999 : _props$toLevel,
66
+ _props$hasdivider = props.hasdivider,
67
+ hasdivider = _props$hasdivider === void 0 ? false : _props$hasdivider,
68
+ className = props.className,
69
+ changeData = props.changeData,
70
+ _props$includeWork = props.includeWork,
71
+ includeWork = _props$includeWork === void 0 ? true : _props$includeWork;
66
72
  var loginUser = (0, _bsGlobal.getUserInfo)().Id;
67
73
  var hasCondition = hasSearch && localStorage.getItem("hasRememberCondition".concat(loginUser));
68
74
 
@@ -135,10 +141,16 @@ function _default(props) {
135
141
  keyWord: searchKey,
136
142
  startDate: startDate,
137
143
  endDate: endDate,
138
- toLevel: toLevel
144
+ toLevel: toLevel,
145
+ includeWork: includeWork
139
146
  })
140
147
  }).then(function (krs) {
141
148
  debugger;
149
+
150
+ if (!krs || !krs.length) {
151
+ changeData(true);
152
+ }
153
+
142
154
  var formatKrs = formatEList(krs, okrId, (0, _util.getIfInitCondition)(selectName, checkedStatus, selectUsers, searchKey));
143
155
  var expandedKrEs = (formatKrs.krsEList || []).map(function (it) {
144
156
  return it.key;
@@ -167,7 +179,7 @@ function _default(props) {
167
179
  refreshEList: getKrEsData
168
180
  }
169
181
  }, /*#__PURE__*/_react["default"].createElement("div", {
170
- className: preCls
182
+ className: "".concat(preCls, " ").concat(className)
171
183
  }, hasSearch && /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], null, /*#__PURE__*/_react["default"].createElement(_searchForm["default"], {
172
184
  checkedStatus: checkedStatus,
173
185
  setCheckedStatus: setCheckedStatus,
@@ -188,7 +200,7 @@ function _default(props) {
188
200
  data: [kr],
189
201
  defaultExpandedKeys: expandedKrEs
190
202
  })), // kr左后一个节点 && 没有 OE 时,不显示横线
191
- !(index + 1 == krList.length && oEList.length == 0) && /*#__PURE__*/_react["default"].createElement("div", {
203
+ !(index + 1 == krList.length && oEList.length == 0) && hasdivider && /*#__PURE__*/_react["default"].createElement("div", {
192
204
  className: "e__divider"
193
205
  }));
194
206
  }), oEList.map(function (kr) {
@@ -166,7 +166,8 @@ var formatCondition = function formatCondition(_ref) {
166
166
  keyWord = _ref.keyWord,
167
167
  startDate = _ref.startDate,
168
168
  endDate = _ref.endDate,
169
- toLevel = _ref.toLevel;
169
+ toLevel = _ref.toLevel,
170
+ includeWork = _ref.includeWork;
170
171
  var resultStatus = [];
171
172
 
172
173
  if (checkedStatus.includes("all")) {
@@ -198,6 +199,7 @@ var formatCondition = function formatCondition(_ref) {
198
199
  FilterKey: keyWord,
199
200
  startDate: startDate || '',
200
201
  endDate: endDate || '',
202
+ includeWork: includeWork,
201
203
  status: resultStatus.join(","),
202
204
  userObjects: users.map(function (user) {
203
205
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.63.beta-3",
3
+ "version": "1.10.63.beta-4",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",