@luck-design-biz/luckda 1.0.3-13tl → 1.0.5-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('clearProgress', 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
  };
@@ -413,6 +413,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
413
413
  }, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams, draggable]);
414
414
  var renderFunctionArea = useCallback(function () {
415
415
  var _topActionGroup$todoL;
416
+ var _moduleCode = getLDMetaAttr('moduleCode');
416
417
  var resultComp = [];
417
418
  if (!!(topActionGroup !== null && topActionGroup !== void 0 && (_topActionGroup$todoL = topActionGroup.todoList) !== null && _topActionGroup$todoL !== void 0 && _topActionGroup$todoL.length)) {
418
419
  resultComp.push( /*#__PURE__*/React.createElement(LDActions, _extends({}, topActionGroup, {
@@ -430,7 +431,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
430
431
  apiUrl = _instanceRef$current$2.apiUrl;
431
432
  resultComp.push( /*#__PURE__*/React.createElement(TopUpload, {
432
433
  apiUrl: apiUrl,
433
- moduleCode: moduleCode,
434
+ moduleCode: _moduleCode,
434
435
  options: impexp,
435
436
  tableRef: instanceRef
436
437
  }));
@@ -441,7 +442,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
441
442
  _apiUrl = _instanceRef$current$3.apiUrl;
442
443
  resultComp.push( /*#__PURE__*/React.createElement(TopExport, {
443
444
  apiUrl: _apiUrl,
444
- moduleCode: moduleCode,
445
+ moduleCode: _moduleCode,
445
446
  options: impexp,
446
447
  tableRef: instanceRef
447
448
  }));
@@ -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('clearProgress', 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
  };
@@ -421,6 +421,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
421
421
  }, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams, draggable]);
422
422
  var renderFunctionArea = (0, _react.useCallback)(function () {
423
423
  var _topActionGroup$todoL;
424
+ var _moduleCode = (0, _helper.getLDMetaAttr)('moduleCode');
424
425
  var resultComp = [];
425
426
  if (!!(topActionGroup !== null && topActionGroup !== void 0 && (_topActionGroup$todoL = topActionGroup.todoList) !== null && _topActionGroup$todoL !== void 0 && _topActionGroup$todoL.length)) {
426
427
  resultComp.push( /*#__PURE__*/_react.default.createElement(_index.LDActions, (0, _extends2.default)({}, topActionGroup, {
@@ -438,7 +439,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
438
439
  apiUrl = _instanceRef$current$2.apiUrl;
439
440
  resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopUpload, {
440
441
  apiUrl: apiUrl,
441
- moduleCode: moduleCode,
442
+ moduleCode: _moduleCode,
442
443
  options: impexp,
443
444
  tableRef: instanceRef
444
445
  }));
@@ -449,7 +450,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
449
450
  _apiUrl = _instanceRef$current$3.apiUrl;
450
451
  resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopExport, {
451
452
  apiUrl: _apiUrl,
452
- moduleCode: moduleCode,
453
+ moduleCode: _moduleCode,
453
454
  options: impexp,
454
455
  tableRef: instanceRef
455
456
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "1.0.3-13tl",
3
+ "version": "1.0.5-13tl",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",