iv-npm 1.0.44 → 1.0.45
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 +57 -30
- package/packages/ui/dist/index.esm.js +58 -31
- package/packages/ui/dist/index.umd.js +57 -30
package/package.json
CHANGED
|
@@ -616,21 +616,51 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
616
616
|
* 生命周期-------------------------------------
|
|
617
617
|
* */
|
|
618
618
|
|
|
619
|
-
vue.onBeforeMount(function () {
|
|
620
|
-
getData();
|
|
619
|
+
vue.onBeforeMount(function () {// getData();
|
|
621
620
|
});
|
|
622
621
|
/**
|
|
623
622
|
* 侦听器-------------------------------------
|
|
624
623
|
* */
|
|
625
624
|
|
|
626
|
-
vue.
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
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);
|
|
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, () => {
|
|
646
|
+
// console.log(
|
|
647
|
+
// props.params,
|
|
648
|
+
// "props11111111111111111111111122222222222222222222"
|
|
649
|
+
// );
|
|
650
|
+
// });
|
|
651
|
+
// watch(
|
|
652
|
+
// () => props.params,
|
|
653
|
+
// () => {
|
|
654
|
+
// console.log(
|
|
655
|
+
// props.params,
|
|
656
|
+
// "props.params11111111111111111111111122222222222222222222"
|
|
657
|
+
// );
|
|
658
|
+
// },
|
|
659
|
+
// {
|
|
660
|
+
// deep: true,
|
|
661
|
+
// }
|
|
662
|
+
// );
|
|
663
|
+
|
|
634
664
|
/**
|
|
635
665
|
* 获取数据-------------------------------------
|
|
636
666
|
* */
|
|
@@ -638,41 +668,38 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
638
668
|
var dataV = vue.ref();
|
|
639
669
|
|
|
640
670
|
var getData = /*#__PURE__*/function () {
|
|
641
|
-
var
|
|
642
|
-
var
|
|
643
|
-
|
|
644
|
-
|
|
671
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
672
|
+
var _option,
|
|
673
|
+
_a,
|
|
674
|
+
_yield$formatHTTP,
|
|
675
|
+
items,
|
|
676
|
+
_args2 = arguments;
|
|
677
|
+
|
|
678
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
645
679
|
while (1) {
|
|
646
|
-
switch (
|
|
680
|
+
switch (_context2.prev = _context2.next) {
|
|
647
681
|
case 0:
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
651
|
-
type: 1
|
|
652
|
-
})
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
_context.next = 3;
|
|
682
|
+
_option = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
683
|
+
_context2.next = 3;
|
|
657
684
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
658
|
-
data: (
|
|
685
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
659
686
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
660
687
|
|
|
661
688
|
case 3:
|
|
662
|
-
_yield$formatHTTP =
|
|
689
|
+
_yield$formatHTTP = _context2.sent;
|
|
663
690
|
items = _yield$formatHTTP.items;
|
|
664
691
|
dataV.value = tranListToTreeData(items);
|
|
665
692
|
|
|
666
693
|
case 6:
|
|
667
694
|
case "end":
|
|
668
|
-
return
|
|
695
|
+
return _context2.stop();
|
|
669
696
|
}
|
|
670
697
|
}
|
|
671
|
-
},
|
|
698
|
+
}, _callee2);
|
|
672
699
|
}));
|
|
673
700
|
|
|
674
|
-
return function getData(
|
|
675
|
-
return
|
|
701
|
+
return function getData() {
|
|
702
|
+
return _ref3.apply(this, arguments);
|
|
676
703
|
};
|
|
677
704
|
}();
|
|
678
705
|
/**
|
|
@@ -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, watchEffect, computed, unref, isRef, createElementVNode } from 'vue';
|
|
2
2
|
|
|
3
3
|
var _hoisted_1$1 = /*#__PURE__*/createTextVNode("npm包");
|
|
4
4
|
/**
|
|
@@ -612,21 +612,51 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
612
612
|
* 生命周期-------------------------------------
|
|
613
613
|
* */
|
|
614
614
|
|
|
615
|
-
onBeforeMount(function () {
|
|
616
|
-
getData();
|
|
615
|
+
onBeforeMount(function () {// getData();
|
|
617
616
|
});
|
|
618
617
|
/**
|
|
619
618
|
* 侦听器-------------------------------------
|
|
620
619
|
* */
|
|
621
620
|
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
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);
|
|
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, () => {
|
|
642
|
+
// console.log(
|
|
643
|
+
// props.params,
|
|
644
|
+
// "props11111111111111111111111122222222222222222222"
|
|
645
|
+
// );
|
|
646
|
+
// });
|
|
647
|
+
// watch(
|
|
648
|
+
// () => props.params,
|
|
649
|
+
// () => {
|
|
650
|
+
// console.log(
|
|
651
|
+
// props.params,
|
|
652
|
+
// "props.params11111111111111111111111122222222222222222222"
|
|
653
|
+
// );
|
|
654
|
+
// },
|
|
655
|
+
// {
|
|
656
|
+
// deep: true,
|
|
657
|
+
// }
|
|
658
|
+
// );
|
|
659
|
+
|
|
630
660
|
/**
|
|
631
661
|
* 获取数据-------------------------------------
|
|
632
662
|
* */
|
|
@@ -634,41 +664,38 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
634
664
|
var dataV = ref();
|
|
635
665
|
|
|
636
666
|
var getData = /*#__PURE__*/function () {
|
|
637
|
-
var
|
|
638
|
-
var
|
|
639
|
-
|
|
640
|
-
|
|
667
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
668
|
+
var _option,
|
|
669
|
+
_a,
|
|
670
|
+
_yield$formatHTTP,
|
|
671
|
+
items,
|
|
672
|
+
_args2 = arguments;
|
|
673
|
+
|
|
674
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
641
675
|
while (1) {
|
|
642
|
-
switch (
|
|
676
|
+
switch (_context2.prev = _context2.next) {
|
|
643
677
|
case 0:
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
647
|
-
type: 1
|
|
648
|
-
})
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
_context.next = 3;
|
|
678
|
+
_option = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
679
|
+
_context2.next = 3;
|
|
653
680
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
654
|
-
data: (
|
|
681
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
655
682
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
656
683
|
|
|
657
684
|
case 3:
|
|
658
|
-
_yield$formatHTTP =
|
|
685
|
+
_yield$formatHTTP = _context2.sent;
|
|
659
686
|
items = _yield$formatHTTP.items;
|
|
660
687
|
dataV.value = tranListToTreeData(items);
|
|
661
688
|
|
|
662
689
|
case 6:
|
|
663
690
|
case "end":
|
|
664
|
-
return
|
|
691
|
+
return _context2.stop();
|
|
665
692
|
}
|
|
666
693
|
}
|
|
667
|
-
},
|
|
694
|
+
}, _callee2);
|
|
668
695
|
}));
|
|
669
696
|
|
|
670
|
-
return function getData(
|
|
671
|
-
return
|
|
697
|
+
return function getData() {
|
|
698
|
+
return _ref3.apply(this, arguments);
|
|
672
699
|
};
|
|
673
700
|
}();
|
|
674
701
|
/**
|
|
@@ -616,21 +616,51 @@
|
|
|
616
616
|
* 生命周期-------------------------------------
|
|
617
617
|
* */
|
|
618
618
|
|
|
619
|
-
vue.onBeforeMount(function () {
|
|
620
|
-
getData();
|
|
619
|
+
vue.onBeforeMount(function () {// getData();
|
|
621
620
|
});
|
|
622
621
|
/**
|
|
623
622
|
* 侦听器-------------------------------------
|
|
624
623
|
* */
|
|
625
624
|
|
|
626
|
-
vue.
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
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);
|
|
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, () => {
|
|
646
|
+
// console.log(
|
|
647
|
+
// props.params,
|
|
648
|
+
// "props11111111111111111111111122222222222222222222"
|
|
649
|
+
// );
|
|
650
|
+
// });
|
|
651
|
+
// watch(
|
|
652
|
+
// () => props.params,
|
|
653
|
+
// () => {
|
|
654
|
+
// console.log(
|
|
655
|
+
// props.params,
|
|
656
|
+
// "props.params11111111111111111111111122222222222222222222"
|
|
657
|
+
// );
|
|
658
|
+
// },
|
|
659
|
+
// {
|
|
660
|
+
// deep: true,
|
|
661
|
+
// }
|
|
662
|
+
// );
|
|
663
|
+
|
|
634
664
|
/**
|
|
635
665
|
* 获取数据-------------------------------------
|
|
636
666
|
* */
|
|
@@ -638,41 +668,38 @@
|
|
|
638
668
|
var dataV = vue.ref();
|
|
639
669
|
|
|
640
670
|
var getData = /*#__PURE__*/function () {
|
|
641
|
-
var
|
|
642
|
-
var
|
|
643
|
-
|
|
644
|
-
|
|
671
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
672
|
+
var _option,
|
|
673
|
+
_a,
|
|
674
|
+
_yield$formatHTTP,
|
|
675
|
+
items,
|
|
676
|
+
_args2 = arguments;
|
|
677
|
+
|
|
678
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
645
679
|
while (1) {
|
|
646
|
-
switch (
|
|
680
|
+
switch (_context2.prev = _context2.next) {
|
|
647
681
|
case 0:
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
params: assign((_a = props.params) !== null && _a !== void 0 ? _a : {}, {
|
|
651
|
-
type: 1
|
|
652
|
-
})
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
_context.next = 3;
|
|
682
|
+
_option = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
683
|
+
_context2.next = 3;
|
|
657
684
|
return formatHTTP(fetch(formatUrl(BASE_URL, API_OPTION.getIVMrpOrgDropdown.url, _option.params), assign({
|
|
658
|
-
data: (
|
|
685
|
+
data: (_a = _option.data) !== null && _a !== void 0 ? _a : null
|
|
659
686
|
}, API_OPTION.getIVMrpOrgDropdown.option)));
|
|
660
687
|
|
|
661
688
|
case 3:
|
|
662
|
-
_yield$formatHTTP =
|
|
689
|
+
_yield$formatHTTP = _context2.sent;
|
|
663
690
|
items = _yield$formatHTTP.items;
|
|
664
691
|
dataV.value = tranListToTreeData(items);
|
|
665
692
|
|
|
666
693
|
case 6:
|
|
667
694
|
case "end":
|
|
668
|
-
return
|
|
695
|
+
return _context2.stop();
|
|
669
696
|
}
|
|
670
697
|
}
|
|
671
|
-
},
|
|
698
|
+
}, _callee2);
|
|
672
699
|
}));
|
|
673
700
|
|
|
674
|
-
return function getData(
|
|
675
|
-
return
|
|
701
|
+
return function getData() {
|
|
702
|
+
return _ref3.apply(this, arguments);
|
|
676
703
|
};
|
|
677
704
|
}();
|
|
678
705
|
/**
|