ls-pro-common 1.0.31 → 1.0.34

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.
@@ -757,35 +757,44 @@ function useDtl(dtlParam) {
757
757
  case 9:
758
758
  result = _context8.sent;
759
759
 
760
+ if (!(result.data && typeof result.data === 'string')) {
761
+ _context8.next = 13;
762
+ break;
763
+ }
764
+
765
+ window.open(result.data);
766
+ return _context8.abrupt("return", true);
767
+
768
+ case 13:
760
769
  if (!(((_result$flag5 = result.flag) === null || _result$flag5 === void 0 ? void 0 : _result$flag5.retCode) === '0')) {
761
- _context8.next = 15;
770
+ _context8.next = 18;
762
771
  break;
763
772
  }
764
773
 
765
774
  (0, _utils.showSuccess)(((_result$flag6 = result.flag) === null || _result$flag6 === void 0 ? void 0 : _result$flag6.retMsg) || '导出成功');
766
775
  return _context8.abrupt("return", true);
767
776
 
768
- case 15:
777
+ case 18:
769
778
  (0, _utils.showError)(((_result$flag7 = result.flag) === null || _result$flag7 === void 0 ? void 0 : _result$flag7.retMsg) || '导出失败,请联系系统管理员');
770
779
  return _context8.abrupt("return", false);
771
780
 
772
- case 17:
773
- _context8.next = 24;
781
+ case 20:
782
+ _context8.next = 27;
774
783
  break;
775
784
 
776
- case 19:
777
- _context8.prev = 19;
785
+ case 22:
786
+ _context8.prev = 22;
778
787
  _context8.t0 = _context8["catch"](6);
779
788
  console.log(_context8.t0);
780
789
  (0, _utils.showError)(_context8.t0.message);
781
790
  return _context8.abrupt("return", false);
782
791
 
783
- case 24:
792
+ case 27:
784
793
  case "end":
785
794
  return _context8.stop();
786
795
  }
787
796
  }
788
- }, _callee8, null, [[6, 19]]);
797
+ }, _callee8, null, [[6, 22]]);
789
798
  }));
790
799
 
791
800
  return function onExportDtl(_x6, _x7) {
@@ -628,35 +628,44 @@ function useSingle(inParam) {
628
628
  case 9:
629
629
  result = _context7.sent;
630
630
 
631
+ if (!(result.data && typeof result.data === 'string')) {
632
+ _context7.next = 13;
633
+ break;
634
+ }
635
+
636
+ window.open(result.data);
637
+ return _context7.abrupt("return", true);
638
+
639
+ case 13:
631
640
  if (!(((_result$flag4 = result.flag) === null || _result$flag4 === void 0 ? void 0 : _result$flag4.retCode) === '0')) {
632
- _context7.next = 15;
641
+ _context7.next = 18;
633
642
  break;
634
643
  }
635
644
 
636
645
  (0, _utils.showSuccess)(((_result$flag5 = result.flag) === null || _result$flag5 === void 0 ? void 0 : _result$flag5.retMsg) || '导出成功');
637
646
  return _context7.abrupt("return", true);
638
647
 
639
- case 15:
648
+ case 18:
640
649
  (0, _utils.showError)(((_result$flag6 = result.flag) === null || _result$flag6 === void 0 ? void 0 : _result$flag6.retMsg) || '导出失败,请联系系统管理员');
641
650
  return _context7.abrupt("return", false);
642
651
 
643
- case 17:
644
- _context7.next = 24;
652
+ case 20:
653
+ _context7.next = 27;
645
654
  break;
646
655
 
647
- case 19:
648
- _context7.prev = 19;
656
+ case 22:
657
+ _context7.prev = 22;
649
658
  _context7.t0 = _context7["catch"](6);
650
659
  console.log(_context7.t0);
651
660
  (0, _utils.showError)(_context7.t0.message);
652
661
  return _context7.abrupt("return", false);
653
662
 
654
- case 24:
663
+ case 27:
655
664
  case "end":
656
665
  return _context7.stop();
657
666
  }
658
667
  }
659
- }, _callee7, null, [[6, 19]]);
668
+ }, _callee7, null, [[6, 22]]);
660
669
  }));
661
670
 
662
671
  return function onExport(_x8, _x9) {
package/lib/http/index.js CHANGED
@@ -307,12 +307,9 @@ function _getDict() {
307
307
  case 0:
308
308
  showValue = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : true;
309
309
  needGateWay = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : true;
310
- api = '/lesoon-integration/sysDictDtl';
310
+ api = '/lesoon-integration/sysDictDtl/listByProperties';
311
311
  param = {
312
- where: {
313
- dictCode: dictCode
314
- },
315
- ifPage: 0
312
+ dictCode: dictCode
316
313
  };
317
314
  return _context6.abrupt("return", fetchOptions(api, param, 'dictValue', 'displayName', showValue, needGateWay));
318
315
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-pro-common",
3
- "version": "1.0.31",
3
+ "version": "1.0.34",
4
4
  "description": "ls-pro-common",
5
5
  "keywords": [
6
6
  "antd",
@@ -28,8 +28,8 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@ant-design/icons": "^4.3.0",
31
- "ls-pro-table": "2.62.26",
32
- "ls-pro-form": "1.52.24",
31
+ "ls-pro-table": "2.62.27",
32
+ "ls-pro-form": "1.52.25",
33
33
  "@babel/runtime": "^7.16.3",
34
34
  "classnames": "^2.2.6",
35
35
  "moment": "^2.27.0",