@partex/one-core 2.0.18 → 2.0.19
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/lib/one-core.js
CHANGED
|
@@ -3585,24 +3585,13 @@ const v0 = /* @__PURE__ */ j(f0, [["render", g0]]), fn = (e) => {
|
|
|
3585
3585
|
type: Boolean,
|
|
3586
3586
|
default: !1
|
|
3587
3587
|
},
|
|
3588
|
-
|
|
3589
|
-
required: !0,
|
|
3590
|
-
type: String,
|
|
3591
|
-
default: ""
|
|
3592
|
-
},
|
|
3593
|
-
params: {
|
|
3594
|
-
required: !1,
|
|
3595
|
-
type: String,
|
|
3596
|
-
default: ""
|
|
3597
|
-
},
|
|
3598
|
-
file: {
|
|
3588
|
+
data: {
|
|
3599
3589
|
required: !0,
|
|
3600
|
-
type:
|
|
3601
|
-
default:
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
default: !1
|
|
3590
|
+
type: Object,
|
|
3591
|
+
default: () => ({
|
|
3592
|
+
type: "",
|
|
3593
|
+
file: ""
|
|
3594
|
+
})
|
|
3606
3595
|
}
|
|
3607
3596
|
},
|
|
3608
3597
|
emits: ["update:show"],
|
|
@@ -3691,8 +3680,8 @@ const v0 = /* @__PURE__ */ j(f0, [["render", g0]]), fn = (e) => {
|
|
|
3691
3680
|
}, y = (C) => new Promise((_, O) => {
|
|
3692
3681
|
C.file.file && fn({
|
|
3693
3682
|
jobType: "IMPORT",
|
|
3694
|
-
jobTypeName: e.type,
|
|
3695
|
-
jobParams: e.params,
|
|
3683
|
+
jobTypeName: e.data.type,
|
|
3684
|
+
jobParams: e.data.params,
|
|
3696
3685
|
file: C.file.file
|
|
3697
3686
|
}).then(() => {
|
|
3698
3687
|
b(), _();
|
|
@@ -3702,7 +3691,7 @@ const v0 = /* @__PURE__ */ j(f0, [["render", g0]]), fn = (e) => {
|
|
|
3702
3691
|
}), b = () => {
|
|
3703
3692
|
c.value = !0, y0({
|
|
3704
3693
|
jobType: "IMPORT",
|
|
3705
|
-
jobTypeName: e.type,
|
|
3694
|
+
jobTypeName: e.data.type,
|
|
3706
3695
|
query: i.value
|
|
3707
3696
|
}).then((C) => {
|
|
3708
3697
|
c.value = !1, d.value = C.records, i.value = C.query;
|
|
@@ -3710,7 +3699,7 @@ const v0 = /* @__PURE__ */ j(f0, [["render", g0]]), fn = (e) => {
|
|
|
3710
3699
|
c.value = !1;
|
|
3711
3700
|
});
|
|
3712
3701
|
}, T = () => {
|
|
3713
|
-
e.steam ? b0(e.file).then((C) => {
|
|
3702
|
+
e.data.steam ? b0(e.data.file).then((C) => {
|
|
3714
3703
|
const _ = document.createElement("a");
|
|
3715
3704
|
_.style.display = "none", _.download = "刀组品号导入模板.xls", _.href = URL.createObjectURL(C), document.body.appendChild(_), _.click(), URL.revokeObjectURL(_.href), document.body.removeChild(_);
|
|
3716
3705
|
}).catch(() => {
|
|
@@ -3718,7 +3707,7 @@ const v0 = /* @__PURE__ */ j(f0, [["render", g0]]), fn = (e) => {
|
|
|
3718
3707
|
content: () => t("Notice.error"),
|
|
3719
3708
|
duration: 3e3
|
|
3720
3709
|
});
|
|
3721
|
-
}) : window.open(`${e.file}?v=${Date.now()}`);
|
|
3710
|
+
}) : window.open(`${e.data.file}?v=${Date.now()}`);
|
|
3722
3711
|
};
|
|
3723
3712
|
return ae(
|
|
3724
3713
|
() => e.show,
|
|
@@ -6554,9 +6543,8 @@ function Zg(e, o, t, n, r, c) {
|
|
|
6554
6543
|
key: 0,
|
|
6555
6544
|
show: e.showImporter,
|
|
6556
6545
|
"onUpdate:show": o[2] || (o[2] = (B) => e.showImporter = B),
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
}, null, 8, ["show", "type", "file"])) : M("", !0)
|
|
6546
|
+
data: e.importer
|
|
6547
|
+
}, null, 8, ["show", "data"])) : M("", !0)
|
|
6560
6548
|
], 64);
|
|
6561
6549
|
}
|
|
6562
6550
|
const ev = /* @__PURE__ */ j(Xg, [["render", Zg]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -6731,7 +6719,7 @@ function Zv() {
|
|
|
6731
6719
|
gt = 3840, vt = 2160, window.removeEventListener("resize", e);
|
|
6732
6720
|
};
|
|
6733
6721
|
}
|
|
6734
|
-
const ey = (e) => !!($.kind === -1 || $.kind === 99 || $.iot_menu_authorization.includes(e)), oy = (e) => $.platform_tdm ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.tdm_menu_authorization.includes(e) : !1, ty = (e) => $.platform_qms ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.qms_menu_authorization.includes(e) : !1, ay = (e) => $.platform_twin ? ($.kind === -1 || $.kind === 99 || e === "home", !0) : !1, ny = (e) => !!($.kind === -1 || $.kind === 99 || $.maintain_menu_authorization.includes(e)), Mv = "2.0.
|
|
6722
|
+
const ey = (e) => !!($.kind === -1 || $.kind === 99 || $.iot_menu_authorization.includes(e)), oy = (e) => $.platform_tdm ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.tdm_menu_authorization.includes(e) : !1, ty = (e) => $.platform_qms ? $.kind === -1 || $.kind === 99 || e === "home" ? !0 : $.qms_menu_authorization.includes(e) : !1, ay = (e) => $.platform_twin ? ($.kind === -1 || $.kind === 99 || e === "home", !0) : !1, ny = (e) => !!($.kind === -1 || $.kind === 99 || $.maintain_menu_authorization.includes(e)), Mv = "2.0.19";
|
|
6735
6723
|
let vn;
|
|
6736
6724
|
async function yn() {
|
|
6737
6725
|
const e = await fetch(
|