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