iv-npm 1.0.40 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iv-npm",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "公共通用包",
5
5
  "author": "Mr.Cong",
6
6
  "license": "ISC",
@@ -598,7 +598,7 @@ var script = /*#__PURE__*/vue.defineComponent({
598
598
  },
599
599
  params: {
600
600
  type: Object,
601
- required: true
601
+ required: false
602
602
  },
603
603
  replaceFields: {
604
604
  type: Object,
@@ -623,6 +623,7 @@ var script = /*#__PURE__*/vue.defineComponent({
623
623
  * 侦听器-------------------------------------
624
624
  * */
625
625
 
626
+ console.log(props);
626
627
  vue.watch(function () {
627
628
  return props.params;
628
629
  }, function () {
@@ -635,25 +636,24 @@ var script = /*#__PURE__*/vue.defineComponent({
635
636
  var dataV = vue.ref();
636
637
 
637
638
  var getData = /*#__PURE__*/function () {
638
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
639
- var _option,
640
- _a,
641
- _yield$formatHTTP,
642
- items,
643
- _args = arguments;
639
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_option) {
640
+ var _a, _b, _yield$formatHTTP, items;
644
641
 
645
642
  return _regeneratorRuntime().wrap(function _callee$(_context) {
646
643
  while (1) {
647
644
  switch (_context.prev = _context.next) {
648
645
  case 0:
649
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {
650
- params: assign(props.params, {
651
- type: 1
652
- })
653
- };
646
+ if (_option === void 0) {
647
+ _option = {
648
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
649
+ type: 1
650
+ })
651
+ };
652
+ }
653
+
654
654
  _context.next = 3;
655
655
  return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
656
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
656
+ data: (_b = _option.data) !== null && _b !== void 0 ? _b : null
657
657
  }, API_OPTION.getIVMrpOrgDropdown.option)));
658
658
 
659
659
  case 3:
@@ -669,7 +669,7 @@ var script = /*#__PURE__*/vue.defineComponent({
669
669
  }, _callee);
670
670
  }));
671
671
 
672
- return function getData() {
672
+ return function getData(_x) {
673
673
  return _ref2.apply(this, arguments);
674
674
  };
675
675
  }();
@@ -594,7 +594,7 @@ var script = /*#__PURE__*/defineComponent({
594
594
  },
595
595
  params: {
596
596
  type: Object,
597
- required: true
597
+ required: false
598
598
  },
599
599
  replaceFields: {
600
600
  type: Object,
@@ -619,6 +619,7 @@ var script = /*#__PURE__*/defineComponent({
619
619
  * 侦听器-------------------------------------
620
620
  * */
621
621
 
622
+ console.log(props);
622
623
  watch(function () {
623
624
  return props.params;
624
625
  }, function () {
@@ -631,25 +632,24 @@ var script = /*#__PURE__*/defineComponent({
631
632
  var dataV = ref();
632
633
 
633
634
  var getData = /*#__PURE__*/function () {
634
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
635
- var _option,
636
- _a,
637
- _yield$formatHTTP,
638
- items,
639
- _args = arguments;
635
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_option) {
636
+ var _a, _b, _yield$formatHTTP, items;
640
637
 
641
638
  return _regeneratorRuntime().wrap(function _callee$(_context) {
642
639
  while (1) {
643
640
  switch (_context.prev = _context.next) {
644
641
  case 0:
645
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {
646
- params: assign(props.params, {
647
- type: 1
648
- })
649
- };
642
+ if (_option === void 0) {
643
+ _option = {
644
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
645
+ type: 1
646
+ })
647
+ };
648
+ }
649
+
650
650
  _context.next = 3;
651
651
  return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
652
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
652
+ data: (_b = _option.data) !== null && _b !== void 0 ? _b : null
653
653
  }, API_OPTION.getIVMrpOrgDropdown.option)));
654
654
 
655
655
  case 3:
@@ -665,7 +665,7 @@ var script = /*#__PURE__*/defineComponent({
665
665
  }, _callee);
666
666
  }));
667
667
 
668
- return function getData() {
668
+ return function getData(_x) {
669
669
  return _ref2.apply(this, arguments);
670
670
  };
671
671
  }();
@@ -598,7 +598,7 @@
598
598
  },
599
599
  params: {
600
600
  type: Object,
601
- required: true
601
+ required: false
602
602
  },
603
603
  replaceFields: {
604
604
  type: Object,
@@ -623,6 +623,7 @@
623
623
  * 侦听器-------------------------------------
624
624
  * */
625
625
 
626
+ console.log(props);
626
627
  vue.watch(function () {
627
628
  return props.params;
628
629
  }, function () {
@@ -635,25 +636,24 @@
635
636
  var dataV = vue.ref();
636
637
 
637
638
  var getData = /*#__PURE__*/function () {
638
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
639
- var _option,
640
- _a,
641
- _yield$formatHTTP,
642
- items,
643
- _args = arguments;
639
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_option) {
640
+ var _a, _b, _yield$formatHTTP, items;
644
641
 
645
642
  return _regeneratorRuntime().wrap(function _callee$(_context) {
646
643
  while (1) {
647
644
  switch (_context.prev = _context.next) {
648
645
  case 0:
649
- _option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {
650
- params: assign(props.params, {
651
- type: 1
652
- })
653
- };
646
+ if (_option === void 0) {
647
+ _option = {
648
+ params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
649
+ type: 1
650
+ })
651
+ };
652
+ }
653
+
654
654
  _context.next = 3;
655
655
  return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
656
- data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
656
+ data: (_b = _option.data) !== null && _b !== void 0 ? _b : null
657
657
  }, API_OPTION.getIVMrpOrgDropdown.option)));
658
658
 
659
659
  case 3:
@@ -669,7 +669,7 @@
669
669
  }, _callee);
670
670
  }));
671
671
 
672
- return function getData() {
672
+ return function getData(_x) {
673
673
  return _ref2.apply(this, arguments);
674
674
  };
675
675
  }();