iv-npm 1.0.46 → 1.0.47
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 +1 -1
- package/packages/ui/dist/index.cjs.js +36 -36
- package/packages/ui/dist/index.esm.js +37 -37
- package/packages/ui/dist/index.umd.js +36 -36
package/package.json
CHANGED
|
@@ -617,32 +617,7 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
617
617
|
* */
|
|
618
618
|
|
|
619
619
|
vue.onBeforeMount(function () {// getData();
|
|
620
|
-
});
|
|
621
|
-
/**
|
|
622
|
-
* 侦听器-------------------------------------
|
|
623
|
-
* */
|
|
624
|
-
|
|
625
|
-
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
626
|
-
var _a;
|
|
627
|
-
|
|
628
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
629
|
-
while (1) {
|
|
630
|
-
switch (_context.prev = _context.next) {
|
|
631
|
-
case 0:
|
|
632
|
-
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
633
|
-
getData({
|
|
634
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
635
|
-
type: 1
|
|
636
|
-
})
|
|
637
|
-
});
|
|
638
|
-
|
|
639
|
-
case 2:
|
|
640
|
-
case "end":
|
|
641
|
-
return _context.stop();
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}, _callee);
|
|
645
|
-
}))); // watch(props, () => {
|
|
620
|
+
}); // watch(props, () => {
|
|
646
621
|
// console.log(
|
|
647
622
|
// props.params,
|
|
648
623
|
// "props11111111111111111111111122222222222222222222"
|
|
@@ -668,38 +643,38 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
668
643
|
var dataV = vue.ref();
|
|
669
644
|
|
|
670
645
|
var getData = /*#__PURE__*/function () {
|
|
671
|
-
var
|
|
646
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
672
647
|
var _option,
|
|
673
648
|
_a,
|
|
674
649
|
_yield$formatHTTP,
|
|
675
650
|
items,
|
|
676
|
-
|
|
651
|
+
_args = arguments;
|
|
677
652
|
|
|
678
|
-
return _regeneratorRuntime().wrap(function
|
|
653
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
679
654
|
while (1) {
|
|
680
|
-
switch (
|
|
655
|
+
switch (_context.prev = _context.next) {
|
|
681
656
|
case 0:
|
|
682
|
-
_option =
|
|
683
|
-
|
|
657
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
658
|
+
_context.next = 3;
|
|
684
659
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
685
660
|
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
686
661
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
687
662
|
|
|
688
663
|
case 3:
|
|
689
|
-
_yield$formatHTTP =
|
|
664
|
+
_yield$formatHTTP = _context.sent;
|
|
690
665
|
items = _yield$formatHTTP.items;
|
|
691
666
|
dataV.value = tranListToTreeData(items);
|
|
692
667
|
|
|
693
668
|
case 6:
|
|
694
669
|
case "end":
|
|
695
|
-
return
|
|
670
|
+
return _context.stop();
|
|
696
671
|
}
|
|
697
672
|
}
|
|
698
|
-
},
|
|
673
|
+
}, _callee);
|
|
699
674
|
}));
|
|
700
675
|
|
|
701
676
|
return function getData() {
|
|
702
|
-
return
|
|
677
|
+
return _ref2.apply(this, arguments);
|
|
703
678
|
};
|
|
704
679
|
}();
|
|
705
680
|
/**
|
|
@@ -721,6 +696,31 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
721
696
|
emit("update:value", value);
|
|
722
697
|
}
|
|
723
698
|
});
|
|
699
|
+
/**
|
|
700
|
+
* 侦听器-------------------------------------
|
|
701
|
+
* */
|
|
702
|
+
|
|
703
|
+
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
704
|
+
var _a;
|
|
705
|
+
|
|
706
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
707
|
+
while (1) {
|
|
708
|
+
switch (_context2.prev = _context2.next) {
|
|
709
|
+
case 0:
|
|
710
|
+
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
711
|
+
getData({
|
|
712
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
713
|
+
type: 1
|
|
714
|
+
})
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
case 2:
|
|
718
|
+
case "end":
|
|
719
|
+
return _context2.stop();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}, _callee2);
|
|
723
|
+
})));
|
|
724
724
|
return function (_ctx, _cache) {
|
|
725
725
|
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
726
726
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, onBeforeMount,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createVNode, createTextVNode, onBeforeMount, computed, watchEffect, unref, isRef, createElementVNode } from 'vue';
|
|
2
2
|
|
|
3
3
|
var _hoisted_1$1 = /*#__PURE__*/createTextVNode("npm包");
|
|
4
4
|
/**
|
|
@@ -613,32 +613,7 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
613
613
|
* */
|
|
614
614
|
|
|
615
615
|
onBeforeMount(function () {// getData();
|
|
616
|
-
});
|
|
617
|
-
/**
|
|
618
|
-
* 侦听器-------------------------------------
|
|
619
|
-
* */
|
|
620
|
-
|
|
621
|
-
watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
622
|
-
var _a;
|
|
623
|
-
|
|
624
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
625
|
-
while (1) {
|
|
626
|
-
switch (_context.prev = _context.next) {
|
|
627
|
-
case 0:
|
|
628
|
-
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
629
|
-
getData({
|
|
630
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
631
|
-
type: 1
|
|
632
|
-
})
|
|
633
|
-
});
|
|
634
|
-
|
|
635
|
-
case 2:
|
|
636
|
-
case "end":
|
|
637
|
-
return _context.stop();
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}, _callee);
|
|
641
|
-
}))); // watch(props, () => {
|
|
616
|
+
}); // watch(props, () => {
|
|
642
617
|
// console.log(
|
|
643
618
|
// props.params,
|
|
644
619
|
// "props11111111111111111111111122222222222222222222"
|
|
@@ -664,38 +639,38 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
664
639
|
var dataV = ref();
|
|
665
640
|
|
|
666
641
|
var getData = /*#__PURE__*/function () {
|
|
667
|
-
var
|
|
642
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
668
643
|
var _option,
|
|
669
644
|
_a,
|
|
670
645
|
_yield$formatHTTP,
|
|
671
646
|
items,
|
|
672
|
-
|
|
647
|
+
_args = arguments;
|
|
673
648
|
|
|
674
|
-
return _regeneratorRuntime().wrap(function
|
|
649
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
675
650
|
while (1) {
|
|
676
|
-
switch (
|
|
651
|
+
switch (_context.prev = _context.next) {
|
|
677
652
|
case 0:
|
|
678
|
-
_option =
|
|
679
|
-
|
|
653
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
654
|
+
_context.next = 3;
|
|
680
655
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
681
656
|
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
682
657
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
683
658
|
|
|
684
659
|
case 3:
|
|
685
|
-
_yield$formatHTTP =
|
|
660
|
+
_yield$formatHTTP = _context.sent;
|
|
686
661
|
items = _yield$formatHTTP.items;
|
|
687
662
|
dataV.value = tranListToTreeData(items);
|
|
688
663
|
|
|
689
664
|
case 6:
|
|
690
665
|
case "end":
|
|
691
|
-
return
|
|
666
|
+
return _context.stop();
|
|
692
667
|
}
|
|
693
668
|
}
|
|
694
|
-
},
|
|
669
|
+
}, _callee);
|
|
695
670
|
}));
|
|
696
671
|
|
|
697
672
|
return function getData() {
|
|
698
|
-
return
|
|
673
|
+
return _ref2.apply(this, arguments);
|
|
699
674
|
};
|
|
700
675
|
}();
|
|
701
676
|
/**
|
|
@@ -717,6 +692,31 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
717
692
|
emit("update:value", value);
|
|
718
693
|
}
|
|
719
694
|
});
|
|
695
|
+
/**
|
|
696
|
+
* 侦听器-------------------------------------
|
|
697
|
+
* */
|
|
698
|
+
|
|
699
|
+
watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
700
|
+
var _a;
|
|
701
|
+
|
|
702
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
703
|
+
while (1) {
|
|
704
|
+
switch (_context2.prev = _context2.next) {
|
|
705
|
+
case 0:
|
|
706
|
+
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
707
|
+
getData({
|
|
708
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
709
|
+
type: 1
|
|
710
|
+
})
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
case 2:
|
|
714
|
+
case "end":
|
|
715
|
+
return _context2.stop();
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}, _callee2);
|
|
719
|
+
})));
|
|
720
720
|
return function (_ctx, _cache) {
|
|
721
721
|
var _component_a_tree_select = resolveComponent("a-tree-select");
|
|
722
722
|
|
|
@@ -617,32 +617,7 @@
|
|
|
617
617
|
* */
|
|
618
618
|
|
|
619
619
|
vue.onBeforeMount(function () {// getData();
|
|
620
|
-
});
|
|
621
|
-
/**
|
|
622
|
-
* 侦听器-------------------------------------
|
|
623
|
-
* */
|
|
624
|
-
|
|
625
|
-
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
626
|
-
var _a;
|
|
627
|
-
|
|
628
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
629
|
-
while (1) {
|
|
630
|
-
switch (_context.prev = _context.next) {
|
|
631
|
-
case 0:
|
|
632
|
-
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
633
|
-
getData({
|
|
634
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
635
|
-
type: 1
|
|
636
|
-
})
|
|
637
|
-
});
|
|
638
|
-
|
|
639
|
-
case 2:
|
|
640
|
-
case "end":
|
|
641
|
-
return _context.stop();
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}, _callee);
|
|
645
|
-
}))); // watch(props, () => {
|
|
620
|
+
}); // watch(props, () => {
|
|
646
621
|
// console.log(
|
|
647
622
|
// props.params,
|
|
648
623
|
// "props11111111111111111111111122222222222222222222"
|
|
@@ -668,38 +643,38 @@
|
|
|
668
643
|
var dataV = vue.ref();
|
|
669
644
|
|
|
670
645
|
var getData = /*#__PURE__*/function () {
|
|
671
|
-
var
|
|
646
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
672
647
|
var _option,
|
|
673
648
|
_a,
|
|
674
649
|
_yield$formatHTTP,
|
|
675
650
|
items,
|
|
676
|
-
|
|
651
|
+
_args = arguments;
|
|
677
652
|
|
|
678
|
-
return _regeneratorRuntime().wrap(function
|
|
653
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
679
654
|
while (1) {
|
|
680
|
-
switch (
|
|
655
|
+
switch (_context.prev = _context.next) {
|
|
681
656
|
case 0:
|
|
682
|
-
_option =
|
|
683
|
-
|
|
657
|
+
_option = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
658
|
+
_context.next = 3;
|
|
684
659
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
685
660
|
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
686
661
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
687
662
|
|
|
688
663
|
case 3:
|
|
689
|
-
_yield$formatHTTP =
|
|
664
|
+
_yield$formatHTTP = _context.sent;
|
|
690
665
|
items = _yield$formatHTTP.items;
|
|
691
666
|
dataV.value = tranListToTreeData(items);
|
|
692
667
|
|
|
693
668
|
case 6:
|
|
694
669
|
case "end":
|
|
695
|
-
return
|
|
670
|
+
return _context.stop();
|
|
696
671
|
}
|
|
697
672
|
}
|
|
698
|
-
},
|
|
673
|
+
}, _callee);
|
|
699
674
|
}));
|
|
700
675
|
|
|
701
676
|
return function getData() {
|
|
702
|
-
return
|
|
677
|
+
return _ref2.apply(this, arguments);
|
|
703
678
|
};
|
|
704
679
|
}();
|
|
705
680
|
/**
|
|
@@ -721,6 +696,31 @@
|
|
|
721
696
|
emit("update:value", value);
|
|
722
697
|
}
|
|
723
698
|
});
|
|
699
|
+
/**
|
|
700
|
+
* 侦听器-------------------------------------
|
|
701
|
+
* */
|
|
702
|
+
|
|
703
|
+
vue.watchEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
704
|
+
var _a;
|
|
705
|
+
|
|
706
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
707
|
+
while (1) {
|
|
708
|
+
switch (_context2.prev = _context2.next) {
|
|
709
|
+
case 0:
|
|
710
|
+
console.log(props.params, "props11111111111111111111111122222222222222222222");
|
|
711
|
+
getData({
|
|
712
|
+
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
713
|
+
type: 1
|
|
714
|
+
})
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
case 2:
|
|
718
|
+
case "end":
|
|
719
|
+
return _context2.stop();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}, _callee2);
|
|
723
|
+
})));
|
|
724
724
|
return function (_ctx, _cache) {
|
|
725
725
|
var _component_a_tree_select = vue.resolveComponent("a-tree-select");
|
|
726
726
|
|