@yilianjituan/yilian_dgerm 0.0.1-alpha.40 → 0.0.1-alpha.41
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.
|
@@ -69,7 +69,6 @@ var Index = function Index(props) {
|
|
|
69
69
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
70
70
|
isFetchedData = _useState6[0],
|
|
71
71
|
setIsFetchedData = _useState6[1]; // 是否需要获取数据
|
|
72
|
-
var _additionalParameters = dynamicParameter && beforeSearch ? beforeSearch(dynamicParameter) : additionalParameters;
|
|
73
72
|
|
|
74
73
|
/**
|
|
75
74
|
* 查询接口
|
|
@@ -97,7 +96,7 @@ var Index = function Index(props) {
|
|
|
97
96
|
*/
|
|
98
97
|
var getStoreList = /*#__PURE__*/function () {
|
|
99
98
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(type) {
|
|
100
|
-
var data, target, options;
|
|
99
|
+
var _additionalParameters, data, target, options;
|
|
101
100
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
102
101
|
while (1) switch (_context2.prev = _context2.next) {
|
|
103
102
|
case 0:
|
|
@@ -107,10 +106,11 @@ var Index = function Index(props) {
|
|
|
107
106
|
}
|
|
108
107
|
return _context2.abrupt("return");
|
|
109
108
|
case 2:
|
|
109
|
+
_additionalParameters = dynamicParameter && beforeSearch ? beforeSearch(dynamicParameter) : additionalParameters;
|
|
110
110
|
setSelectState(true);
|
|
111
|
-
_context2.next =
|
|
111
|
+
_context2.next = 6;
|
|
112
112
|
return inquireDiseases(_objectSpread(_defineProperty(_defineProperty(_defineProperty({}, searchValue, paramsRef.current), "pageNo", pageRef.current), "pageSize", 10), _additionalParameters || {}));
|
|
113
|
-
case
|
|
113
|
+
case 6:
|
|
114
114
|
data = _context2.sent;
|
|
115
115
|
if (data.code === "OK") {
|
|
116
116
|
target = data.result;
|
|
@@ -121,7 +121,7 @@ var Index = function Index(props) {
|
|
|
121
121
|
setIsFetchedData(false); // 设置不需要获取数据
|
|
122
122
|
setSelectState(false);
|
|
123
123
|
}
|
|
124
|
-
case
|
|
124
|
+
case 8:
|
|
125
125
|
case "end":
|
|
126
126
|
return _context2.stop();
|
|
127
127
|
}
|
|
@@ -138,7 +138,7 @@ var Index = function Index(props) {
|
|
|
138
138
|
}, [isInitSearch]);
|
|
139
139
|
useEffect(function () {
|
|
140
140
|
setIsFetchedData(true); // 设置需要获取数据
|
|
141
|
-
}, [
|
|
141
|
+
}, [additionalParameters, dynamicParameter && (beforeSearch === null || beforeSearch === void 0 ? void 0 : beforeSearch(dynamicParameter))]);
|
|
142
142
|
|
|
143
143
|
// 搜索
|
|
144
144
|
var onFilterChange = _.debounce(function (e) {
|