@luck-design-biz/luckda 1.0.3-13tl → 1.0.4-13tl
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.
|
@@ -802,7 +802,7 @@ function _clearProcess() {
|
|
|
802
802
|
while (1) switch (_context30.prev = _context30.next) {
|
|
803
803
|
case 0:
|
|
804
804
|
mdCode = getLDMetaAttr('dataModelKey');
|
|
805
|
-
return _context30.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/batch?batchNo=").concat(batchNo)));
|
|
805
|
+
return _context30.abrupt("return", request("".concat(api.API_HOST, "/").concat(mdCode, "/batch/clearProgress?batchNo=").concat(batchNo)));
|
|
806
806
|
case 2:
|
|
807
807
|
case "end":
|
|
808
808
|
return _context30.stop();
|
|
@@ -48,7 +48,10 @@ export var ImportUploadPop = function ImportUploadPop(_ref) {
|
|
|
48
48
|
|
|
49
49
|
// 清除进度
|
|
50
50
|
var clearProgress = function clearProgress(batchNo) {
|
|
51
|
-
clearProcess(batchNo).then()
|
|
51
|
+
clearProcess(batchNo).then(function () {
|
|
52
|
+
console.log(options.tableRef);
|
|
53
|
+
options.tableRef && options.tableRef.current && options.tableRef.current.onLdQuery();
|
|
54
|
+
});
|
|
52
55
|
};
|
|
53
56
|
var fecthFindExcelState = function fecthFindExcelState(_ref2, callback) {
|
|
54
57
|
var strategy = _ref2.strategy,
|
|
@@ -224,7 +227,8 @@ export var ImportUploadPop = function ImportUploadPop(_ref) {
|
|
|
224
227
|
// options: {import: 'templateId' | 'behaviorKey', importType: false | true}
|
|
225
228
|
export var TopUpload = function TopUpload(_ref4) {
|
|
226
229
|
var options = _ref4.options,
|
|
227
|
-
moduleCode = _ref4.moduleCode
|
|
230
|
+
moduleCode = _ref4.moduleCode,
|
|
231
|
+
tableRef = _ref4.tableRef;
|
|
228
232
|
var _useState7 = useState(false),
|
|
229
233
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
230
234
|
visible = _useState8[0],
|
|
@@ -241,7 +245,8 @@ export var TopUpload = function TopUpload(_ref4) {
|
|
|
241
245
|
visible: visible,
|
|
242
246
|
setVisible: setVisible,
|
|
243
247
|
options: _objectSpread(_objectSpread({}, options), {}, {
|
|
244
|
-
moduleCode: moduleCode
|
|
248
|
+
moduleCode: moduleCode,
|
|
249
|
+
tableRef: tableRef
|
|
245
250
|
})
|
|
246
251
|
}));
|
|
247
252
|
};
|
|
@@ -810,7 +810,7 @@ function _clearProcess() {
|
|
|
810
810
|
while (1) switch (_context30.prev = _context30.next) {
|
|
811
811
|
case 0:
|
|
812
812
|
mdCode = (0, _helper.getLDMetaAttr)('dataModelKey');
|
|
813
|
-
return _context30.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/batch?batchNo=").concat(batchNo)));
|
|
813
|
+
return _context30.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(mdCode, "/batch/clearProgress?batchNo=").concat(batchNo)));
|
|
814
814
|
case 2:
|
|
815
815
|
case "end":
|
|
816
816
|
return _context30.stop();
|
|
@@ -56,7 +56,10 @@ var ImportUploadPop = exports.ImportUploadPop = function ImportUploadPop(_ref) {
|
|
|
56
56
|
|
|
57
57
|
// 清除进度
|
|
58
58
|
var clearProgress = function clearProgress(batchNo) {
|
|
59
|
-
(0, _apiUrl.clearProcess)(batchNo).then()
|
|
59
|
+
(0, _apiUrl.clearProcess)(batchNo).then(function () {
|
|
60
|
+
console.log(options.tableRef);
|
|
61
|
+
options.tableRef && options.tableRef.current && options.tableRef.current.onLdQuery();
|
|
62
|
+
});
|
|
60
63
|
};
|
|
61
64
|
var fecthFindExcelState = function fecthFindExcelState(_ref2, callback) {
|
|
62
65
|
var strategy = _ref2.strategy,
|
|
@@ -232,7 +235,8 @@ var ImportUploadPop = exports.ImportUploadPop = function ImportUploadPop(_ref) {
|
|
|
232
235
|
// options: {import: 'templateId' | 'behaviorKey', importType: false | true}
|
|
233
236
|
var TopUpload = exports.TopUpload = function TopUpload(_ref4) {
|
|
234
237
|
var options = _ref4.options,
|
|
235
|
-
moduleCode = _ref4.moduleCode
|
|
238
|
+
moduleCode = _ref4.moduleCode,
|
|
239
|
+
tableRef = _ref4.tableRef;
|
|
236
240
|
var _useState7 = (0, _react.useState)(false),
|
|
237
241
|
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
238
242
|
visible = _useState8[0],
|
|
@@ -249,7 +253,8 @@ var TopUpload = exports.TopUpload = function TopUpload(_ref4) {
|
|
|
249
253
|
visible: visible,
|
|
250
254
|
setVisible: setVisible,
|
|
251
255
|
options: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, options), {}, {
|
|
252
|
-
moduleCode: moduleCode
|
|
256
|
+
moduleCode: moduleCode,
|
|
257
|
+
tableRef: tableRef
|
|
253
258
|
})
|
|
254
259
|
}));
|
|
255
260
|
};
|
package/package.json
CHANGED