kmkf-work-order-service-component 0.3.6-alpha.7 → 0.3.6-alpha.8
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.
@@ -76,6 +76,7 @@ var SingleShopWorkOrder = function SingleShopWorkOrder() {
|
|
76
76
|
var submit = search.submit;
|
77
77
|
var dataSource = tableProps.dataSource,
|
78
78
|
pagination = tableProps.pagination;
|
79
|
+
console.log('pagination', pagination);
|
79
80
|
useEffect(function () {
|
80
81
|
dispatch(fetchTemplateList);
|
81
82
|
}, []);
|
@@ -92,6 +93,13 @@ var SingleShopWorkOrder = function SingleShopWorkOrder() {
|
|
92
93
|
dispatch(setTemplateId(id));
|
93
94
|
};
|
94
95
|
|
96
|
+
var handleChangePagination = function handleChangePagination(page, pageSize) {
|
97
|
+
tableProps === null || tableProps === void 0 ? void 0 : tableProps.onChange(_objectSpread(_objectSpread({}, pagination), {}, {
|
98
|
+
current: page,
|
99
|
+
pageSize: pageSize
|
100
|
+
}));
|
101
|
+
};
|
102
|
+
|
95
103
|
return /*#__PURE__*/_jsxs(Spin, {
|
96
104
|
spinning: loading,
|
97
105
|
children: [(templateList === null || templateList === void 0 ? void 0 : templateList.length) === 0 ? /*#__PURE__*/_jsx(Empty, {}) : /*#__PURE__*/_jsx("div", {
|
@@ -140,7 +148,9 @@ var SingleShopWorkOrder = function SingleShopWorkOrder() {
|
|
140
148
|
})]
|
141
149
|
}), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 ? /*#__PURE__*/_jsx(OrderList, {
|
142
150
|
list: dataSource
|
143
|
-
}) : /*#__PURE__*/_jsx(Empty, {}), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 && /*#__PURE__*/_jsx(Pagination, _objectSpread({}, pagination)
|
151
|
+
}) : /*#__PURE__*/_jsx(Empty, {}), (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) > 0 && /*#__PURE__*/_jsx(Pagination, _objectSpread(_objectSpread({}, pagination), {}, {
|
152
|
+
onChange: handleChangePagination
|
153
|
+
})), /*#__PURE__*/_jsx(DeleteCustomizeOrderModal, {
|
144
154
|
submit: submit
|
145
155
|
}), /*#__PURE__*/_jsx(CustomizeFormModal, {
|
146
156
|
shopList: [],
|