@partex/one-core 2.0.103 → 2.0.104
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/components/hooks/index.d.ts +2 -0
- package/lib/components/hooks/memoryCache.d.ts +50 -0
- package/lib/components/hooks/useDebounceFn.d.ts +10 -0
- package/lib/components/hooks/useThrottleFn.d.ts +10 -0
- package/lib/components/hooks/utils.d.ts +15 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/one-core.cjs +15 -15
- package/lib/one-core.js +187 -170
- package/lib/one-core.umd.cjs +15 -15
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -638,7 +638,7 @@ const pn = (e, t = "yyyy-MM-dd") => {
|
|
|
638
638
|
} catch {
|
|
639
639
|
return "";
|
|
640
640
|
}
|
|
641
|
-
},
|
|
641
|
+
}, TY = (e, t = 500) => {
|
|
642
642
|
const r = e;
|
|
643
643
|
let n;
|
|
644
644
|
const a = function(...o) {
|
|
@@ -648,10 +648,10 @@ const pn = (e, t = "yyyy-MM-dd") => {
|
|
|
648
648
|
};
|
|
649
649
|
return a;
|
|
650
650
|
};
|
|
651
|
-
function
|
|
651
|
+
function xY(e, t) {
|
|
652
652
|
e.requestFullscreen ? (t && (e.onfullscreenchange = t), e.requestFullscreen()) : e.mozRequestFullScreen ? (t && (e.onmozfullscreenchange = t), e.mozRequestFullScreen()) : e.webkitRequestFullscreen ? (t && (e.onwebkitfullscreenchange = t), e.webkitRequestFullscreen()) : e.msRequestFullscreen && (t && (e.onmsfullscreenchange = t), e.msRequestFullscreen());
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function DY(e, t = 0) {
|
|
655
655
|
const r = ["", "k", "m", "b", "t"], n = Math.floor(Math.log10(Math.abs(e)) / 3), a = Math.max(0, Math.min(n, r.length - 1)), i = r[a];
|
|
656
656
|
return i ? (e / Math.pow(10, a * 3)).toFixed(t) + i : (e / Math.pow(10, a * 3)).toFixed(0);
|
|
657
657
|
}
|
|
@@ -980,7 +980,7 @@ xi.interceptors.response.use(
|
|
|
980
980
|
return Promise.reject();
|
|
981
981
|
}
|
|
982
982
|
);
|
|
983
|
-
const
|
|
983
|
+
const AY = () => {
|
|
984
984
|
th.cancel(), th = _d.CancelToken.source();
|
|
985
985
|
}, kd = "/apiserver/", lD = (e, t, r = "json") => xi({
|
|
986
986
|
url: `${kd}${e}`,
|
|
@@ -30804,7 +30804,23 @@ function hW(e, t, r, n, a, i) {
|
|
|
30804
30804
|
}, null, 8, ["columns", "data", "loading"])
|
|
30805
30805
|
]);
|
|
30806
30806
|
}
|
|
30807
|
-
const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW =
|
|
30807
|
+
const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = (e, t) => {
|
|
30808
|
+
let r = null;
|
|
30809
|
+
return function(...n) {
|
|
30810
|
+
r && clearTimeout(r), r = setTimeout(() => {
|
|
30811
|
+
e.call(this, ...n);
|
|
30812
|
+
}, t);
|
|
30813
|
+
};
|
|
30814
|
+
}, pW = (e, t = 500) => {
|
|
30815
|
+
const r = e;
|
|
30816
|
+
let n;
|
|
30817
|
+
const a = function(...o) {
|
|
30818
|
+
n || (n = setTimeout(function() {
|
|
30819
|
+
n && clearTimeout(n), n = void 0, r.apply(a, o);
|
|
30820
|
+
}, t));
|
|
30821
|
+
};
|
|
30822
|
+
return a;
|
|
30823
|
+
}, gW = 1e3, mW = (e, t) => ({ run: vW(e, typeof t == "number" ? t : gW) }), MY = (e, t) => ({ run: pW(e, typeof t == "number" ? t : 500) }), yW = Ie({
|
|
30808
30824
|
name: "OcScan",
|
|
30809
30825
|
components: {
|
|
30810
30826
|
NButton: qe,
|
|
@@ -30818,17 +30834,17 @@ const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = Ie({
|
|
|
30818
30834
|
setup(e, { emit: t }) {
|
|
30819
30835
|
const r = U(), n = U(), a = U(!1), i = U(!1), o = Pn(), s = 1280, l = 720;
|
|
30820
30836
|
let u = null, c = null;
|
|
30821
|
-
const f = (
|
|
30822
|
-
u.beginPath(), u.moveTo(
|
|
30837
|
+
const f = (w, C) => {
|
|
30838
|
+
u.beginPath(), u.moveTo(w.x, w.y), u.lineTo(C.x, C.y), u.lineWidth = 2, u.strokeStyle = "green", u.stroke();
|
|
30823
30839
|
}, d = () => {
|
|
30824
30840
|
if (c && c.readyState === c.HAVE_ENOUGH_DATA) {
|
|
30825
30841
|
c.width = s, c.height = l, u.drawImage(r.value, 0, 0, s, l);
|
|
30826
|
-
const
|
|
30842
|
+
const w = u.getImageData(0, 0, s, l);
|
|
30827
30843
|
try {
|
|
30828
|
-
const
|
|
30829
|
-
if (
|
|
30830
|
-
const { location:
|
|
30831
|
-
f(
|
|
30844
|
+
const C = _C(w.data, s, l);
|
|
30845
|
+
if (C) {
|
|
30846
|
+
const { location: S, data: x } = C;
|
|
30847
|
+
f(S.topLeftCorner, S.topRightCorner), f(S.topRightCorner, S.bottomRightCorner), f(S.bottomRightCorner, S.bottomLeftCorner), f(S.bottomLeftCorner, S.topLeftCorner), t("on-update:value", x), v();
|
|
30832
30848
|
}
|
|
30833
30849
|
} catch {
|
|
30834
30850
|
i.value = !1, o.error({
|
|
@@ -30841,12 +30857,12 @@ const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = Ie({
|
|
|
30841
30857
|
}, h = () => {
|
|
30842
30858
|
i.value && requestAnimationFrame(d);
|
|
30843
30859
|
}, v = () => {
|
|
30844
|
-
r.value && r.value.srcObject && (r.value.srcObject.getTracks().forEach((
|
|
30845
|
-
}, g = (
|
|
30846
|
-
r.value.srcObject !== void 0 ? r.value.srcObject =
|
|
30860
|
+
r.value && r.value.srcObject && (r.value.srcObject.getTracks().forEach((w) => w.stop()), i.value = !1, u = null, c = null, r.value.srcObject = null, r.value.src = null), a.value = !1;
|
|
30861
|
+
}, g = (w) => {
|
|
30862
|
+
r.value.srcObject !== void 0 ? r.value.srcObject = w : window.videoEl.mozSrcObject !== void 0 ? r.value.mozSrcObject = w : window.URL.createObjectURL ? r.value.src = window.URL.createObjectURL(w) : window.webkitURL ? r.value.src = window.webkitURL.createObjectURL(w) : r.value.src = w, r.value.play().then(h);
|
|
30847
30863
|
}, p = () => {
|
|
30848
|
-
var
|
|
30849
|
-
(
|
|
30864
|
+
var w, C;
|
|
30865
|
+
(w = n.value) == null || w.focus(), (C = n.value) == null || C.select(), a.value = !0, U2(() => {
|
|
30850
30866
|
navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (i.value = !0, c = document.getElementById("oc-scan-canvas"), c && (u = c.getContext("2d", { willReadFrequently: !0 })), navigator.mediaDevices.getUserMedia({ video: !0 }).then(g).catch(() => {
|
|
30851
30867
|
i.value = !1, o.error({
|
|
30852
30868
|
content: "未获取到摄像头权限,请确认赋予相关权限",
|
|
@@ -30859,17 +30875,16 @@ const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = Ie({
|
|
|
30859
30875
|
});
|
|
30860
30876
|
};
|
|
30861
30877
|
let m = "";
|
|
30862
|
-
|
|
30863
|
-
|
|
30864
|
-
|
|
30865
|
-
|
|
30866
|
-
|
|
30867
|
-
m += y.key;
|
|
30878
|
+
const _ = mW(() => {
|
|
30879
|
+
m && t("on-update:value", m), m = "";
|
|
30880
|
+
}, 300);
|
|
30881
|
+
function y(w) {
|
|
30882
|
+
m += w.key, _.run();
|
|
30868
30883
|
}
|
|
30869
30884
|
return Jr(() => {
|
|
30870
|
-
window.addEventListener("keypress",
|
|
30885
|
+
window.addEventListener("keypress", y);
|
|
30871
30886
|
}), dd(() => {
|
|
30872
|
-
window.removeEventListener("keypress",
|
|
30887
|
+
window.removeEventListener("keypress", y), v();
|
|
30873
30888
|
}), {
|
|
30874
30889
|
videoRef: r,
|
|
30875
30890
|
inputRef: n,
|
|
@@ -30879,21 +30894,21 @@ const dW = /* @__PURE__ */ re(uW, [["render", hW]]), vW = Ie({
|
|
|
30879
30894
|
closeAll: v
|
|
30880
30895
|
};
|
|
30881
30896
|
}
|
|
30882
|
-
}),
|
|
30897
|
+
}), _W = /* @__PURE__ */ F("div", { class: "oc-scan-canvas-main" }, [
|
|
30883
30898
|
/* @__PURE__ */ F("canvas", {
|
|
30884
30899
|
id: "oc-scan-canvas",
|
|
30885
30900
|
width: "1280",
|
|
30886
30901
|
height: "720"
|
|
30887
30902
|
})
|
|
30888
|
-
], -1),
|
|
30903
|
+
], -1), bW = { class: "oc-scan-video" }, wW = {
|
|
30889
30904
|
ref: "videoRef",
|
|
30890
30905
|
playsInline: ""
|
|
30891
|
-
},
|
|
30906
|
+
}, SW = {
|
|
30892
30907
|
ref: "inputRef",
|
|
30893
30908
|
type: "text",
|
|
30894
30909
|
class: "oc-scan-input"
|
|
30895
30910
|
};
|
|
30896
|
-
function
|
|
30911
|
+
function CW(e, t, r, n, a, i) {
|
|
30897
30912
|
const o = R("NButton"), s = R("IconDismiss"), l = R("NIcon"), u = R("NFlex"), c = R("NCard"), f = R("NModal");
|
|
30898
30913
|
return V(), K(ht, null, [
|
|
30899
30914
|
P(o, {
|
|
@@ -30938,20 +30953,20 @@ function _W(e, t, r, n, a, i) {
|
|
|
30938
30953
|
})
|
|
30939
30954
|
]),
|
|
30940
30955
|
default: k(() => [
|
|
30941
|
-
|
|
30956
|
+
_W
|
|
30942
30957
|
]),
|
|
30943
30958
|
_: 1
|
|
30944
30959
|
})
|
|
30945
30960
|
]),
|
|
30946
30961
|
_: 1
|
|
30947
30962
|
}, 8, ["show", "on-mask-click"]),
|
|
30948
|
-
F("div",
|
|
30949
|
-
F("video",
|
|
30963
|
+
F("div", bW, [
|
|
30964
|
+
F("video", wW, null, 512)
|
|
30950
30965
|
]),
|
|
30951
|
-
F("input",
|
|
30966
|
+
F("input", SW, null, 512)
|
|
30952
30967
|
], 64);
|
|
30953
30968
|
}
|
|
30954
|
-
const
|
|
30969
|
+
const TW = /* @__PURE__ */ re(yW, [["render", CW]]), xW = Ie({
|
|
30955
30970
|
name: "OcTimePickRange",
|
|
30956
30971
|
components: {
|
|
30957
30972
|
NInputGroup: yd,
|
|
@@ -30997,8 +31012,8 @@ const bW = /* @__PURE__ */ re(vW, [["render", _W]]), wW = Ie({
|
|
|
30997
31012
|
updateEndValue: i
|
|
30998
31013
|
};
|
|
30999
31014
|
}
|
|
31000
|
-
}),
|
|
31001
|
-
function
|
|
31015
|
+
}), DW = /* @__PURE__ */ F("span", { class: "oc-time-picker-separator" }, "-", -1);
|
|
31016
|
+
function AW(e, t, r, n, a, i) {
|
|
31002
31017
|
const o = R("NTimePicker"), s = R("NInputGroup");
|
|
31003
31018
|
return V(), J(s, { class: "oc-time-picker" }, {
|
|
31004
31019
|
default: k(() => [
|
|
@@ -31009,7 +31024,7 @@ function CW(e, t, r, n, a, i) {
|
|
|
31009
31024
|
format: e.format,
|
|
31010
31025
|
disabled: e.disabled
|
|
31011
31026
|
}, null, 8, ["value", "clearable", "on-update:value", "format", "disabled"]),
|
|
31012
|
-
|
|
31027
|
+
DW,
|
|
31013
31028
|
P(o, {
|
|
31014
31029
|
value: e.endTime,
|
|
31015
31030
|
clearable: e.clearable,
|
|
@@ -31021,7 +31036,7 @@ function CW(e, t, r, n, a, i) {
|
|
|
31021
31036
|
_: 1
|
|
31022
31037
|
});
|
|
31023
31038
|
}
|
|
31024
|
-
const
|
|
31039
|
+
const MW = /* @__PURE__ */ re(xW, [["render", AW]]), NW = Ie({
|
|
31025
31040
|
name: "OcSearchBarItem",
|
|
31026
31041
|
components: {
|
|
31027
31042
|
NIcon: At,
|
|
@@ -31039,7 +31054,7 @@ const TW = /* @__PURE__ */ re(wW, [["render", CW]]), xW = Ie({
|
|
|
31039
31054
|
NDatePicker: gd,
|
|
31040
31055
|
NInputGroup: yd,
|
|
31041
31056
|
NInputGroupLabel: C_,
|
|
31042
|
-
OcTimePickRange:
|
|
31057
|
+
OcTimePickRange: MW,
|
|
31043
31058
|
IconArrowDown: Md,
|
|
31044
31059
|
IconArrowUp: L_
|
|
31045
31060
|
},
|
|
@@ -31114,13 +31129,13 @@ const TW = /* @__PURE__ */ re(wW, [["render", CW]]), xW = Ie({
|
|
|
31114
31129
|
selectFallback: d
|
|
31115
31130
|
};
|
|
31116
31131
|
}
|
|
31117
|
-
}),
|
|
31132
|
+
}), PW = { class: "oc-search-bar-line" }, kW = { class: "oc-search-bar-title" }, EW = {
|
|
31118
31133
|
key: 0,
|
|
31119
31134
|
class: "oc-search-action-more"
|
|
31120
31135
|
};
|
|
31121
|
-
function
|
|
31136
|
+
function IW(e, t, r, n, a, i) {
|
|
31122
31137
|
const o = R("NGridItem"), s = R("NInputGroupLabel"), l = R("NInput"), u = R("NInputNumber"), c = R("NSelect"), f = R("NDataTable"), d = R("NPopover"), h = R("NCascader"), v = R("NTreeSelect"), g = R("OcTimePickRange"), p = R("NDatePicker"), m = R("NInputGroup"), _ = R("NGrid"), y = R("IconArrowDown"), w = R("NIcon"), C = R("IconArrowUp"), S = R("NButton"), x = R("NTooltip");
|
|
31123
|
-
return V(), K("div",
|
|
31138
|
+
return V(), K("div", PW, [
|
|
31124
31139
|
P(_, {
|
|
31125
31140
|
"x-gap": "15",
|
|
31126
31141
|
"y-gap": "15",
|
|
@@ -31136,7 +31151,7 @@ function NW(e, t, r, n, a, i) {
|
|
|
31136
31151
|
span: e.small ? 1 : `${e.cols} s:2 l:1`
|
|
31137
31152
|
}, {
|
|
31138
31153
|
default: k(() => [
|
|
31139
|
-
F("div",
|
|
31154
|
+
F("div", kW, [
|
|
31140
31155
|
Tr(e.$slots, "header")
|
|
31141
31156
|
])
|
|
31142
31157
|
]),
|
|
@@ -31502,7 +31517,7 @@ function NW(e, t, r, n, a, i) {
|
|
|
31502
31517
|
]),
|
|
31503
31518
|
_: 3
|
|
31504
31519
|
}, 8, ["cols", "collapsed"]),
|
|
31505
|
-
e.more ? (V(), K("div",
|
|
31520
|
+
e.more ? (V(), K("div", EW, [
|
|
31506
31521
|
P(x, { trigger: "hover" }, {
|
|
31507
31522
|
trigger: k(() => [
|
|
31508
31523
|
P(S, { onClick: e.showMore }, {
|
|
@@ -31530,7 +31545,7 @@ function NW(e, t, r, n, a, i) {
|
|
|
31530
31545
|
])) : te("", !0)
|
|
31531
31546
|
]);
|
|
31532
31547
|
}
|
|
31533
|
-
const
|
|
31548
|
+
const LW = /* @__PURE__ */ re(NW, [["render", IW]]), OW = Ie({
|
|
31534
31549
|
name: "OcSearchBarPop",
|
|
31535
31550
|
props: {
|
|
31536
31551
|
value: {
|
|
@@ -31547,18 +31562,18 @@ const PW = /* @__PURE__ */ re(xW, [["render", NW]]), kW = Ie({
|
|
|
31547
31562
|
}
|
|
31548
31563
|
};
|
|
31549
31564
|
}
|
|
31550
|
-
}),
|
|
31551
|
-
function
|
|
31552
|
-
return hi((V(), K("div",
|
|
31565
|
+
}), RW = { class: "oc-search-bar-pop" }, $W = { class: "oc-search-bar-pop-plan" }, BW = { class: "oc-search-bar-pop-action" }, VW = { class: "oc-search-bar-pop-content" };
|
|
31566
|
+
function FW(e, t, r, n, a, i) {
|
|
31567
|
+
return hi((V(), K("div", RW, [
|
|
31553
31568
|
F("div", {
|
|
31554
31569
|
class: "oc-search-bar-pop-mask",
|
|
31555
31570
|
onClick: t[0] || (t[0] = (...o) => e.close && e.close(...o))
|
|
31556
31571
|
}),
|
|
31557
|
-
F("div",
|
|
31558
|
-
F("div",
|
|
31572
|
+
F("div", $W, [
|
|
31573
|
+
F("div", BW, [
|
|
31559
31574
|
Tr(e.$slots, "action")
|
|
31560
31575
|
]),
|
|
31561
|
-
F("div",
|
|
31576
|
+
F("div", VW, [
|
|
31562
31577
|
Tr(e.$slots, "default")
|
|
31563
31578
|
])
|
|
31564
31579
|
])
|
|
@@ -31566,7 +31581,7 @@ function RW(e, t, r, n, a, i) {
|
|
|
31566
31581
|
[di, e.value]
|
|
31567
31582
|
]);
|
|
31568
31583
|
}
|
|
31569
|
-
const
|
|
31584
|
+
const zW = /* @__PURE__ */ re(OW, [["render", FW]]), GW = Ie({
|
|
31570
31585
|
name: "OcSearchBar",
|
|
31571
31586
|
components: {
|
|
31572
31587
|
NFlex: Lt,
|
|
@@ -31578,8 +31593,8 @@ const $W = /* @__PURE__ */ re(kW, [["render", RW]]), BW = Ie({
|
|
|
31578
31593
|
IconReset: O_,
|
|
31579
31594
|
IconSearch: Cd,
|
|
31580
31595
|
IconFilter: Td,
|
|
31581
|
-
OcSearchBarItem:
|
|
31582
|
-
OcSearchBarPop:
|
|
31596
|
+
OcSearchBarItem: LW,
|
|
31597
|
+
OcSearchBarPop: zW
|
|
31583
31598
|
},
|
|
31584
31599
|
props: {
|
|
31585
31600
|
value: {
|
|
@@ -31667,11 +31682,11 @@ const $W = /* @__PURE__ */ re(kW, [["render", RW]]), BW = Ie({
|
|
|
31667
31682
|
clearAll: d
|
|
31668
31683
|
};
|
|
31669
31684
|
}
|
|
31670
|
-
}),
|
|
31685
|
+
}), HW = {
|
|
31671
31686
|
key: 1,
|
|
31672
31687
|
class: "oc-search-bar-popover"
|
|
31673
|
-
},
|
|
31674
|
-
function
|
|
31688
|
+
}, WW = { key: 0 }, UW = { class: "oc-search-bar-center" };
|
|
31689
|
+
function YW(e, t, r, n, a, i) {
|
|
31675
31690
|
const o = R("OcSearchBarItem"), s = R("IconArrowDown"), l = R("NIcon"), u = R("NButton"), c = R("IconReset"), f = R("IconSearch"), d = R("NFlex"), h = R("OcSearchBarPop"), v = R("IconFilter"), g = R("NTooltip");
|
|
31676
31691
|
return V(), K("div", {
|
|
31677
31692
|
class: mp(["oc-search-bar", {
|
|
@@ -31685,7 +31700,7 @@ function GW(e, t, r, n, a, i) {
|
|
|
31685
31700
|
}, [
|
|
31686
31701
|
Tr(e.$slots, "header")
|
|
31687
31702
|
], 2)) : te("", !0),
|
|
31688
|
-
e.small || e.commonStore.isMobile ? (V(), K("div",
|
|
31703
|
+
e.small || e.commonStore.isMobile ? (V(), K("div", HW, [
|
|
31689
31704
|
P(h, {
|
|
31690
31705
|
value: e.drawer,
|
|
31691
31706
|
"onUpdate:value": t[2] || (t[2] = (p) => e.drawer = p),
|
|
@@ -31747,7 +31762,7 @@ function GW(e, t, r, n, a, i) {
|
|
|
31747
31762
|
]),
|
|
31748
31763
|
_: 1
|
|
31749
31764
|
}),
|
|
31750
|
-
e.isSlotAction ? (V(), K("br",
|
|
31765
|
+
e.isSlotAction ? (V(), K("br", WW)) : te("", !0),
|
|
31751
31766
|
e.isSlotAction ? (V(), J(d, {
|
|
31752
31767
|
key: 1,
|
|
31753
31768
|
size: 15,
|
|
@@ -31783,7 +31798,7 @@ function GW(e, t, r, n, a, i) {
|
|
|
31783
31798
|
_: 1
|
|
31784
31799
|
})
|
|
31785
31800
|
])) : (V(), K(ht, { key: 2 }, [
|
|
31786
|
-
F("div",
|
|
31801
|
+
F("div", UW, [
|
|
31787
31802
|
P(o, {
|
|
31788
31803
|
ref: "itemRef",
|
|
31789
31804
|
loading: e.loading,
|
|
@@ -31871,7 +31886,7 @@ function GW(e, t, r, n, a, i) {
|
|
|
31871
31886
|
], 64))
|
|
31872
31887
|
], 34);
|
|
31873
31888
|
}
|
|
31874
|
-
const B2 = /* @__PURE__ */ re(
|
|
31889
|
+
const B2 = /* @__PURE__ */ re(GW, [["render", YW]]), qW = Ie({
|
|
31875
31890
|
name: "OcSkeleton",
|
|
31876
31891
|
components: {
|
|
31877
31892
|
NGrid: Si,
|
|
@@ -31891,10 +31906,10 @@ const B2 = /* @__PURE__ */ re(BW, [["render", GW]]), HW = Ie({
|
|
|
31891
31906
|
setup() {
|
|
31892
31907
|
return {};
|
|
31893
31908
|
}
|
|
31894
|
-
}),
|
|
31895
|
-
function
|
|
31909
|
+
}), jW = { class: "com-skeleton" };
|
|
31910
|
+
function XW(e, t, r, n, a, i) {
|
|
31896
31911
|
const o = R("NSkeleton"), s = R("NGi"), l = R("NGrid");
|
|
31897
|
-
return V(), K("div",
|
|
31912
|
+
return V(), K("div", jW, [
|
|
31898
31913
|
P(l, {
|
|
31899
31914
|
"x-gap": "15",
|
|
31900
31915
|
"y-gap": "15",
|
|
@@ -31921,7 +31936,7 @@ function UW(e, t, r, n, a, i) {
|
|
|
31921
31936
|
}, 8, ["cols"])
|
|
31922
31937
|
]);
|
|
31923
31938
|
}
|
|
31924
|
-
const
|
|
31939
|
+
const ZW = /* @__PURE__ */ re(qW, [["render", XW]]), KW = Ie({
|
|
31925
31940
|
name: "OcTable",
|
|
31926
31941
|
components: {
|
|
31927
31942
|
NDataTable: Ci,
|
|
@@ -32211,8 +32226,8 @@ const YW = /* @__PURE__ */ re(HW, [["render", UW]]), qW = Ie({
|
|
|
32211
32226
|
handleColumnChange: O
|
|
32212
32227
|
};
|
|
32213
32228
|
}
|
|
32214
|
-
}),
|
|
32215
|
-
function
|
|
32229
|
+
}), JW = { class: "com-card" };
|
|
32230
|
+
function QW(e, t, r, n, a, i) {
|
|
32216
32231
|
const o = R("IconAdd"), s = R("NIcon"), l = R("NButton"), u = R("NTooltip"), c = R("IconMailInboxAdd"), f = R("IconCloudArrowDown"), d = R("NPopconfirm"), h = R("IconFilter"), v = R("IconNavigation"), g = R("IconPin"), p = R("IconPinOff"), m = R("IconEye"), _ = R("IconEyeOff"), y = R("Draggable"), w = R("NPopover"), C = R("OcSearchBar"), S = R("NDataTable"), x = R("OcImporter");
|
|
32217
32232
|
return V(), K(ht, null, [
|
|
32218
32233
|
P(C, {
|
|
@@ -32418,7 +32433,7 @@ function XW(e, t, r, n, a, i) {
|
|
|
32418
32433
|
]),
|
|
32419
32434
|
_: 3
|
|
32420
32435
|
}, 8, ["value", "defaultValue", "data", "loading", "autoSubmit", "resetButton", "onOnUpdate:value"]),
|
|
32421
|
-
F("div",
|
|
32436
|
+
F("div", JW, [
|
|
32422
32437
|
P(S, {
|
|
32423
32438
|
columns: e.tableColumns,
|
|
32424
32439
|
data: e.tableData,
|
|
@@ -32443,7 +32458,7 @@ function XW(e, t, r, n, a, i) {
|
|
|
32443
32458
|
}, null, 8, ["show", "data"])) : te("", !0)
|
|
32444
32459
|
], 64);
|
|
32445
32460
|
}
|
|
32446
|
-
const
|
|
32461
|
+
const eU = /* @__PURE__ */ re(KW, [["render", QW]]), tU = Ie({
|
|
32447
32462
|
name: "OcWorkflowAdd",
|
|
32448
32463
|
components: {
|
|
32449
32464
|
IconAdd: bd,
|
|
@@ -32462,7 +32477,7 @@ const ZW = /* @__PURE__ */ re(qW, [["render", XW]]), KW = Ie({
|
|
|
32462
32477
|
};
|
|
32463
32478
|
}
|
|
32464
32479
|
});
|
|
32465
|
-
function
|
|
32480
|
+
function rU(e, t, r, n, a, i) {
|
|
32466
32481
|
const o = R("IconAdd"), s = R("NIcon"), l = R("NButton"), u = R("NFlex"), c = R("NPopover");
|
|
32467
32482
|
return V(), J(c, {
|
|
32468
32483
|
trigger: "manual",
|
|
@@ -32512,7 +32527,7 @@ function JW(e, t, r, n, a, i) {
|
|
|
32512
32527
|
_: 1
|
|
32513
32528
|
}, 8, ["show"]);
|
|
32514
32529
|
}
|
|
32515
|
-
const V2 = /* @__PURE__ */ re(
|
|
32530
|
+
const V2 = /* @__PURE__ */ re(tU, [["render", rU]]), nU = Ie({
|
|
32516
32531
|
name: "OcWorkflowCard",
|
|
32517
32532
|
components: {
|
|
32518
32533
|
NFlex: Lt,
|
|
@@ -32536,11 +32551,11 @@ const V2 = /* @__PURE__ */ re(KW, [["render", JW]]), QW = Ie({
|
|
|
32536
32551
|
}
|
|
32537
32552
|
};
|
|
32538
32553
|
}
|
|
32539
|
-
}),
|
|
32540
|
-
function
|
|
32554
|
+
}), aU = { class: "oc-workflow-node" }, iU = { class: "oc-workflow-node-ctx" }, oU = /* @__PURE__ */ F("div", { class: "oc-workflow-node-desc" }, "功能", -1), sU = { class: "oc-workflow-node-more" };
|
|
32555
|
+
function lU(e, t, r, n, a, i) {
|
|
32541
32556
|
const o = R("IconDismiss"), s = R("NIcon"), l = R("NButton"), u = R("NFlex"), c = R("OcWorkflowAdd");
|
|
32542
|
-
return V(), K("div",
|
|
32543
|
-
F("div",
|
|
32557
|
+
return V(), K("div", aU, [
|
|
32558
|
+
F("div", iU, [
|
|
32544
32559
|
P(u, {
|
|
32545
32560
|
justify: "space-between",
|
|
32546
32561
|
class: "oc-workflow-node-title"
|
|
@@ -32564,9 +32579,9 @@ function aU(e, t, r, n, a, i) {
|
|
|
32564
32579
|
]),
|
|
32565
32580
|
_: 1
|
|
32566
32581
|
}),
|
|
32567
|
-
|
|
32582
|
+
oU
|
|
32568
32583
|
]),
|
|
32569
|
-
F("div",
|
|
32584
|
+
F("div", sU, [
|
|
32570
32585
|
P(c, {
|
|
32571
32586
|
"onUpdate:add": t[0] || (t[0] = (f) => {
|
|
32572
32587
|
e.addOne(f);
|
|
@@ -32575,12 +32590,12 @@ function aU(e, t, r, n, a, i) {
|
|
|
32575
32590
|
])
|
|
32576
32591
|
]);
|
|
32577
32592
|
}
|
|
32578
|
-
const
|
|
32593
|
+
const uU = /* @__PURE__ */ re(nU, [["render", lU]]), cU = Ie({
|
|
32579
32594
|
name: "OcWorkflowNode",
|
|
32580
32595
|
components: {
|
|
32581
32596
|
NButton: qe,
|
|
32582
32597
|
OcWorkflowAdd: V2,
|
|
32583
|
-
OcWorkflowCard:
|
|
32598
|
+
OcWorkflowCard: uU
|
|
32584
32599
|
},
|
|
32585
32600
|
props: {
|
|
32586
32601
|
data: {
|
|
@@ -32689,13 +32704,13 @@ const iU = /* @__PURE__ */ re(QW, [["render", aU]]), oU = Ie({
|
|
|
32689
32704
|
}
|
|
32690
32705
|
};
|
|
32691
32706
|
}
|
|
32692
|
-
}),
|
|
32707
|
+
}), fU = { key: 2 }, hU = { class: "oc-workflow-node-branch-add" }, dU = { class: "oc-workflow-branch-ctx" }, vU = { class: "oc-workflow-node-branch-add-bottom" }, pU = {
|
|
32693
32708
|
key: 3,
|
|
32694
32709
|
class: "oc-workflow-node-end"
|
|
32695
|
-
},
|
|
32696
|
-
|
|
32710
|
+
}, gU = /* @__PURE__ */ F("div", { class: "oc-workflow-node-title-end" }, "流程结束", -1), mU = [
|
|
32711
|
+
gU
|
|
32697
32712
|
];
|
|
32698
|
-
function
|
|
32713
|
+
function yU(e, t, r, n, a, i) {
|
|
32699
32714
|
const o = R("OcWorkflowCard"), s = R("NButton"), l = R("OcWorkflowNode"), u = R("OcWorkflowAdd");
|
|
32700
32715
|
return V(!0), K(ht, null, fi(e.data, (c, f) => (V(), K(ht, {
|
|
32701
32716
|
key: c.key
|
|
@@ -32714,12 +32729,12 @@ function vU(e, t, r, n, a, i) {
|
|
|
32714
32729
|
},
|
|
32715
32730
|
"onUpdate:delete": (d) => e.deleteNodeOne(f)
|
|
32716
32731
|
}, null, 8, ["data", "onUpdate:add", "onUpdate:delete"])) : te("", !0),
|
|
32717
|
-
c.type === 1 ? (V(), K("div",
|
|
32732
|
+
c.type === 1 ? (V(), K("div", fU, [
|
|
32718
32733
|
(V(), K("div", {
|
|
32719
32734
|
class: "oc-workflow-branch",
|
|
32720
32735
|
key: f
|
|
32721
32736
|
}, [
|
|
32722
|
-
F("div",
|
|
32737
|
+
F("div", hU, [
|
|
32723
32738
|
P(s, {
|
|
32724
32739
|
type: "success",
|
|
32725
32740
|
onClick: (d) => e.addCondition(c)
|
|
@@ -32730,7 +32745,7 @@ function vU(e, t, r, n, a, i) {
|
|
|
32730
32745
|
_: 2
|
|
32731
32746
|
}, 1032, ["onClick"])
|
|
32732
32747
|
]),
|
|
32733
|
-
F("div",
|
|
32748
|
+
F("div", dU, [
|
|
32734
32749
|
(V(!0), K(ht, null, fi(c.children, (d, h) => (V(), K("div", {
|
|
32735
32750
|
key: `children-${h}`
|
|
32736
32751
|
}, [
|
|
@@ -32747,7 +32762,7 @@ function vU(e, t, r, n, a, i) {
|
|
|
32747
32762
|
]))), 128))
|
|
32748
32763
|
])
|
|
32749
32764
|
])),
|
|
32750
|
-
F("div",
|
|
32765
|
+
F("div", vU, [
|
|
32751
32766
|
P(u, {
|
|
32752
32767
|
"onUpdate:add": (d) => {
|
|
32753
32768
|
e.addConditionBottom(c, d);
|
|
@@ -32755,13 +32770,13 @@ function vU(e, t, r, n, a, i) {
|
|
|
32755
32770
|
}, null, 8, ["onUpdate:add"])
|
|
32756
32771
|
])
|
|
32757
32772
|
])) : te("", !0),
|
|
32758
|
-
c.type === 99 ? (V(), K("div",
|
|
32773
|
+
c.type === 99 ? (V(), K("div", pU, mU)) : te("", !0)
|
|
32759
32774
|
], 64))), 128);
|
|
32760
32775
|
}
|
|
32761
|
-
const
|
|
32776
|
+
const _U = /* @__PURE__ */ re(cU, [["render", yU]]), bU = Ie({
|
|
32762
32777
|
name: "OcWorkflow",
|
|
32763
32778
|
components: {
|
|
32764
|
-
OcWorkflowNode:
|
|
32779
|
+
OcWorkflowNode: _U,
|
|
32765
32780
|
NSlider: pC,
|
|
32766
32781
|
NSelect: pd
|
|
32767
32782
|
},
|
|
@@ -32826,11 +32841,11 @@ const pU = /* @__PURE__ */ re(oU, [["render", vU]]), gU = Ie({
|
|
|
32826
32841
|
)
|
|
32827
32842
|
};
|
|
32828
32843
|
}
|
|
32829
|
-
}),
|
|
32830
|
-
function
|
|
32844
|
+
}), wU = { class: "oc-workflow" }, SU = { class: "oc-workflow-tools" }, CU = { class: "oc-workflow-ctx" }, TU = { class: "oc-workflow-main" };
|
|
32845
|
+
function xU(e, t, r, n, a, i) {
|
|
32831
32846
|
const o = R("NSelect"), s = R("NSlider"), l = R("OcWorkflowNode");
|
|
32832
|
-
return V(), K("div",
|
|
32833
|
-
F("div",
|
|
32847
|
+
return V(), K("div", wU, [
|
|
32848
|
+
F("div", SU, [
|
|
32834
32849
|
P(o, {
|
|
32835
32850
|
value: e.scaleFilter,
|
|
32836
32851
|
"onUpdate:value": t[0] || (t[0] = (u) => e.scaleFilter = u),
|
|
@@ -32851,8 +32866,8 @@ function wU(e, t, r, n, a, i) {
|
|
|
32851
32866
|
class: "oc-workflow-slider"
|
|
32852
32867
|
}, null, 8, ["value", "on-update:value", "format-tooltip"])
|
|
32853
32868
|
]),
|
|
32854
|
-
F("div",
|
|
32855
|
-
F("div",
|
|
32869
|
+
F("div", CU, [
|
|
32870
|
+
F("div", TU, [
|
|
32856
32871
|
F("div", {
|
|
32857
32872
|
class: "oc-workflow-warp",
|
|
32858
32873
|
style: hu({
|
|
@@ -32865,7 +32880,7 @@ function wU(e, t, r, n, a, i) {
|
|
|
32865
32880
|
])
|
|
32866
32881
|
]);
|
|
32867
32882
|
}
|
|
32868
|
-
const
|
|
32883
|
+
const DU = /* @__PURE__ */ re(bU, [["render", xU]]), f_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32869
32884
|
__proto__: null,
|
|
32870
32885
|
IconAdd: bd,
|
|
32871
32886
|
IconAlert: T_,
|
|
@@ -32910,11 +32925,11 @@ const SU = /* @__PURE__ */ re(gU, [["render", wU]]), f_ = /* @__PURE__ */ Object
|
|
|
32910
32925
|
OcMy: sW,
|
|
32911
32926
|
OcNumberRoll: $2,
|
|
32912
32927
|
OcReport: dW,
|
|
32913
|
-
OcScan:
|
|
32928
|
+
OcScan: TW,
|
|
32914
32929
|
OcSearchBar: B2,
|
|
32915
|
-
OcSkeleton:
|
|
32916
|
-
OcTable:
|
|
32917
|
-
OcWorkflow:
|
|
32930
|
+
OcSkeleton: ZW,
|
|
32931
|
+
OcTable: eU,
|
|
32932
|
+
OcWorkflow: DU,
|
|
32918
32933
|
commonStore: oe,
|
|
32919
32934
|
fnClearUser: fp,
|
|
32920
32935
|
fnDownload: k2,
|
|
@@ -32927,27 +32942,27 @@ const SU = /* @__PURE__ */ re(gU, [["render", wU]]), f_ = /* @__PURE__ */ Object
|
|
|
32927
32942
|
i18n: fa,
|
|
32928
32943
|
userStore: G
|
|
32929
32944
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
32930
|
-
var
|
|
32931
|
-
return
|
|
32932
|
-
},
|
|
32933
|
-
function
|
|
32934
|
-
for (var t = e.length; t-- &&
|
|
32945
|
+
var AU = pr, MU = function() {
|
|
32946
|
+
return AU.Date.now();
|
|
32947
|
+
}, NU = MU, PU = /\s/;
|
|
32948
|
+
function kU(e) {
|
|
32949
|
+
for (var t = e.length; t-- && PU.test(e.charAt(t)); )
|
|
32935
32950
|
;
|
|
32936
32951
|
return t;
|
|
32937
32952
|
}
|
|
32938
|
-
var
|
|
32939
|
-
function
|
|
32940
|
-
return e && e.slice(0,
|
|
32953
|
+
var EU = kU, IU = EU, LU = /^\s+/;
|
|
32954
|
+
function OU(e) {
|
|
32955
|
+
return e && e.slice(0, IU(e) + 1).replace(LU, "");
|
|
32941
32956
|
}
|
|
32942
|
-
var
|
|
32943
|
-
function
|
|
32944
|
-
return typeof e == "symbol" ||
|
|
32957
|
+
var RU = OU, $U = ss, BU = Bi, VU = "[object Symbol]";
|
|
32958
|
+
function FU(e) {
|
|
32959
|
+
return typeof e == "symbol" || BU(e) && $U(e) == VU;
|
|
32945
32960
|
}
|
|
32946
|
-
var
|
|
32947
|
-
function
|
|
32961
|
+
var zU = FU, GU = RU, h_ = Na, HU = zU, d_ = NaN, WU = /^[-+]0x[0-9a-f]+$/i, UU = /^0b[01]+$/i, YU = /^0o[0-7]+$/i, qU = parseInt;
|
|
32962
|
+
function jU(e) {
|
|
32948
32963
|
if (typeof e == "number")
|
|
32949
32964
|
return e;
|
|
32950
|
-
if (
|
|
32965
|
+
if (HU(e))
|
|
32951
32966
|
return d_;
|
|
32952
32967
|
if (h_(e)) {
|
|
32953
32968
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -32955,16 +32970,16 @@ function WU(e) {
|
|
|
32955
32970
|
}
|
|
32956
32971
|
if (typeof e != "string")
|
|
32957
32972
|
return e === 0 ? e : +e;
|
|
32958
|
-
e =
|
|
32959
|
-
var r =
|
|
32960
|
-
return r ||
|
|
32973
|
+
e = GU(e);
|
|
32974
|
+
var r = UU.test(e);
|
|
32975
|
+
return r || YU.test(e) ? qU(e.slice(2), r ? 2 : 8) : WU.test(e) ? d_ : +e;
|
|
32961
32976
|
}
|
|
32962
|
-
var
|
|
32963
|
-
function
|
|
32977
|
+
var XU = jU, ZU = Na, Jf = NU, v_ = XU, KU = "Expected a function", JU = Math.max, QU = Math.min;
|
|
32978
|
+
function eY(e, t, r) {
|
|
32964
32979
|
var n, a, i, o, s, l, u = 0, c = !1, f = !1, d = !0;
|
|
32965
32980
|
if (typeof e != "function")
|
|
32966
|
-
throw new TypeError(
|
|
32967
|
-
t = v_(t) || 0,
|
|
32981
|
+
throw new TypeError(KU);
|
|
32982
|
+
t = v_(t) || 0, ZU(r) && (c = !!r.leading, f = "maxWait" in r, i = f ? JU(v_(r.maxWait) || 0, t) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
32968
32983
|
function h(S) {
|
|
32969
32984
|
var x = n, b = a;
|
|
32970
32985
|
return n = a = void 0, u = S, o = e.apply(b, x), o;
|
|
@@ -32974,7 +32989,7 @@ function ZU(e, t, r) {
|
|
|
32974
32989
|
}
|
|
32975
32990
|
function g(S) {
|
|
32976
32991
|
var x = S - l, b = S - u, T = t - x;
|
|
32977
|
-
return f ?
|
|
32992
|
+
return f ? QU(T, i - b) : T;
|
|
32978
32993
|
}
|
|
32979
32994
|
function p(S) {
|
|
32980
32995
|
var x = S - l, b = S - u;
|
|
@@ -33007,16 +33022,16 @@ function ZU(e, t, r) {
|
|
|
33007
33022
|
}
|
|
33008
33023
|
return C.cancel = y, C.flush = w, C;
|
|
33009
33024
|
}
|
|
33010
|
-
var
|
|
33011
|
-
const
|
|
33025
|
+
var tY = eY;
|
|
33026
|
+
const rY = /* @__PURE__ */ l2(tY);
|
|
33012
33027
|
let hp = 3840, dp = 2160;
|
|
33013
|
-
const
|
|
33028
|
+
const nY = hd({
|
|
33014
33029
|
scale: 1
|
|
33015
33030
|
});
|
|
33016
|
-
function
|
|
33031
|
+
function NY(e, t) {
|
|
33017
33032
|
hp = e, dp = t;
|
|
33018
33033
|
}
|
|
33019
|
-
function
|
|
33034
|
+
function aY() {
|
|
33020
33035
|
let e = 1;
|
|
33021
33036
|
const t = window.innerWidth, r = window.innerHeight, n = hp, a = dp, i = parseFloat(
|
|
33022
33037
|
(n / a).toFixed(5)
|
|
@@ -33032,17 +33047,17 @@ function eY() {
|
|
|
33032
33047
|
);
|
|
33033
33048
|
e = s > 1 ? 1 : s;
|
|
33034
33049
|
}
|
|
33035
|
-
|
|
33050
|
+
nY.scale = e;
|
|
33036
33051
|
}
|
|
33037
|
-
function
|
|
33038
|
-
const e =
|
|
33052
|
+
function PY() {
|
|
33053
|
+
const e = rY(aY, 200);
|
|
33039
33054
|
return e(), window.addEventListener("resize", e), () => {
|
|
33040
33055
|
hp = 3840, dp = 2160, window.removeEventListener("resize", e);
|
|
33041
33056
|
};
|
|
33042
33057
|
}
|
|
33043
|
-
const
|
|
33058
|
+
const kY = (e) => !!(G.kind === -1 || G.kind === 99 || G.iot_menu_authorization.includes(e)), EY = (e) => G.platform_tdm ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.tdm_menu_authorization.includes(e) : !1, IY = (e) => G.platform_qms ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.qms_menu_authorization.includes(e) : !1, LY = (e) => G.platform_twin ? (G.kind === -1 || G.kind === 99 || e === "home", !0) : !1, OY = (e) => !!(G.kind === -1 || G.kind === 99 || G.maintain_menu_authorization.includes(e)), RY = (e) => !!(G.kind === -1 || G.kind === 99 || G.order_menu_authorization.includes(e)), iY = "2.0.104";
|
|
33044
33059
|
let ml = "";
|
|
33045
|
-
const Me = navigator.userAgent.toLocaleUpperCase(),
|
|
33060
|
+
const Me = navigator.userAgent.toLocaleUpperCase(), oY = () => {
|
|
33046
33061
|
const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, r = /WINDOWS NT 7.[\d]+/, n = /WINDOWS NT 10.[\d]+/, a = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, l = /MAC/;
|
|
33047
33062
|
if (e.test(Me))
|
|
33048
33063
|
return "Windows XP";
|
|
@@ -33071,7 +33086,7 @@ const Me = navigator.userAgent.toLocaleUpperCase(), rY = () => {
|
|
|
33071
33086
|
return `MAC ${c ? c[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
33072
33087
|
}
|
|
33073
33088
|
return "Other Platform";
|
|
33074
|
-
},
|
|
33089
|
+
}, sY = () => {
|
|
33075
33090
|
const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, r = /FIREFOX\/[\d.]+/, n = /CHROME\/[\d.]+/, a = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, o = /SE \d/, s = /UCBROWSER/, l = /ANDROID [\d.]+/;
|
|
33076
33091
|
if (e.test(Me) && o.test(Me))
|
|
33077
33092
|
return "SogouIE";
|
|
@@ -33111,10 +33126,10 @@ function p_(e, t, r, n = !1) {
|
|
|
33111
33126
|
typeof i == "function" && (e[t] = i);
|
|
33112
33127
|
}
|
|
33113
33128
|
}
|
|
33114
|
-
function
|
|
33129
|
+
function lY(e, t, r, n = !1) {
|
|
33115
33130
|
e.addEventListener(t, r, n);
|
|
33116
33131
|
}
|
|
33117
|
-
function
|
|
33132
|
+
function uY() {
|
|
33118
33133
|
if (!("XMLHttpRequest" in window))
|
|
33119
33134
|
return;
|
|
33120
33135
|
const e = XMLHttpRequest.prototype;
|
|
@@ -33129,7 +33144,7 @@ function iY() {
|
|
|
33129
33144
|
const { url: n } = this.xhr;
|
|
33130
33145
|
this.ontimeout = function() {
|
|
33131
33146
|
fu(3, n, "Network Timeout");
|
|
33132
|
-
},
|
|
33147
|
+
}, lY(this, "loadend", function() {
|
|
33133
33148
|
try {
|
|
33134
33149
|
const a = JSON.parse(this.response);
|
|
33135
33150
|
(this.status === 500 || this.status === 405) && fu(3, n, `${r[0]}-${this.status}-${this.response}`);
|
|
@@ -33138,8 +33153,8 @@ function iY() {
|
|
|
33138
33153
|
}), t.apply(this, r);
|
|
33139
33154
|
});
|
|
33140
33155
|
}
|
|
33141
|
-
function
|
|
33142
|
-
ml = typeof t == "string" ? t : ml, !(!t || !ml) && (
|
|
33156
|
+
function cY(e, t) {
|
|
33157
|
+
ml = typeof t == "string" ? t : ml, !(!t || !ml) && (uY(), window.addEventListener(
|
|
33143
33158
|
"error",
|
|
33144
33159
|
function(r) {
|
|
33145
33160
|
fu(1, window.location.href, r);
|
|
@@ -33160,8 +33175,8 @@ const fu = (e, t, r) => {
|
|
|
33160
33175
|
key: "c604902e-4088-4c64-bc73-edfbc971805b",
|
|
33161
33176
|
url: encodeURIComponent(t || location.href),
|
|
33162
33177
|
title: document.title,
|
|
33163
|
-
browser:
|
|
33164
|
-
platform:
|
|
33178
|
+
browser: sY(),
|
|
33179
|
+
platform: oY(),
|
|
33165
33180
|
system: oe.platformName,
|
|
33166
33181
|
message: e === 1 || e === 2 ? r.message : r,
|
|
33167
33182
|
// routerHistory: [], // historyStore.history
|
|
@@ -33194,16 +33209,16 @@ async function z2() {
|
|
|
33194
33209
|
);
|
|
33195
33210
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
33196
33211
|
}
|
|
33197
|
-
async function
|
|
33212
|
+
async function fY() {
|
|
33198
33213
|
const e = await z2();
|
|
33199
33214
|
F2 !== e && dD(!0);
|
|
33200
33215
|
}
|
|
33201
|
-
async function
|
|
33216
|
+
async function hY() {
|
|
33202
33217
|
F2 = await z2(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
33203
|
-
|
|
33218
|
+
fY();
|
|
33204
33219
|
}, 60 * 1e3);
|
|
33205
33220
|
}
|
|
33206
|
-
function
|
|
33221
|
+
function dY({ components: e = [] } = {}) {
|
|
33207
33222
|
const t = [];
|
|
33208
33223
|
function r(a, i, o) {
|
|
33209
33224
|
a.component(i) || a.component(i, o);
|
|
@@ -33223,19 +33238,19 @@ function uY({ components: e = [] } = {}) {
|
|
|
33223
33238
|
language: c = !1,
|
|
33224
33239
|
local: f = "zh-CN"
|
|
33225
33240
|
} = i, d = Yt("theme", !1), h = Yt("lang", f);
|
|
33226
|
-
hD(o), KG(u), fD(c), Fo(h), bu(d), fa.global.locale.value = h, l &&
|
|
33241
|
+
hD(o), KG(u), fD(c), Fo(h), bu(d), fa.global.locale.value = h, l && hY(), s && cY(a, s);
|
|
33227
33242
|
}
|
|
33228
33243
|
}
|
|
33229
33244
|
return {
|
|
33230
|
-
version:
|
|
33245
|
+
version: iY,
|
|
33231
33246
|
install: n
|
|
33232
33247
|
};
|
|
33233
33248
|
}
|
|
33234
|
-
const
|
|
33249
|
+
const vY = dY({
|
|
33235
33250
|
components: Object.keys(f_).map(
|
|
33236
33251
|
(e) => f_[e]
|
|
33237
33252
|
)
|
|
33238
|
-
}),
|
|
33253
|
+
}), $Y = vY.install;
|
|
33239
33254
|
export {
|
|
33240
33255
|
uD as CUSTOM,
|
|
33241
33256
|
B_ as FILE,
|
|
@@ -33283,51 +33298,53 @@ export {
|
|
|
33283
33298
|
sW as OcMy,
|
|
33284
33299
|
$2 as OcNumberRoll,
|
|
33285
33300
|
dW as OcReport,
|
|
33286
|
-
|
|
33301
|
+
TW as OcScan,
|
|
33287
33302
|
B2 as OcSearchBar,
|
|
33288
|
-
|
|
33289
|
-
|
|
33290
|
-
|
|
33303
|
+
ZW as OcSkeleton,
|
|
33304
|
+
eU as OcTable,
|
|
33305
|
+
DU as OcWorkflow,
|
|
33291
33306
|
Pt as POST,
|
|
33292
33307
|
oe as commonStore,
|
|
33293
|
-
|
|
33308
|
+
dY as create,
|
|
33294
33309
|
UH as darkTheme,
|
|
33295
|
-
|
|
33296
|
-
|
|
33297
|
-
|
|
33298
|
-
|
|
33299
|
-
|
|
33300
|
-
|
|
33301
|
-
|
|
33302
|
-
|
|
33310
|
+
vY as default,
|
|
33311
|
+
AY as fnCancelFetch,
|
|
33312
|
+
LY as fnCheckDashRole,
|
|
33313
|
+
kY as fnCheckIoTRole,
|
|
33314
|
+
OY as fnCheckMaintainRole,
|
|
33315
|
+
RY as fnCheckOrderRole,
|
|
33316
|
+
IY as fnCheckQMSRole,
|
|
33317
|
+
EY as fnCheckTDMRole,
|
|
33303
33318
|
fp as fnClearUser,
|
|
33304
|
-
|
|
33319
|
+
aY as fnComputedScale,
|
|
33305
33320
|
_l as fnDecodeCursor,
|
|
33306
33321
|
mu as fnDelStorage,
|
|
33307
33322
|
nD as fnDeleteLoad,
|
|
33308
33323
|
k2 as fnDownload,
|
|
33309
33324
|
ra as fnEncodeCursor,
|
|
33310
33325
|
pn as fnFormatTime,
|
|
33311
|
-
|
|
33312
|
-
|
|
33326
|
+
DY as fnFormatUnits,
|
|
33327
|
+
xY as fnFullScreen,
|
|
33313
33328
|
Yt as fnGetStorage,
|
|
33314
33329
|
cp as fnGetUser,
|
|
33315
|
-
|
|
33330
|
+
PY as fnListenerScale,
|
|
33316
33331
|
yu as fnPageModel2Naive,
|
|
33317
33332
|
_u as fnPageNaive2Model,
|
|
33318
33333
|
Sa as fnRenderAction,
|
|
33319
33334
|
eh as fnScrollTop,
|
|
33320
33335
|
Fo as fnSetLang,
|
|
33321
|
-
|
|
33336
|
+
NY as fnSetNormalWidthAndHeight,
|
|
33322
33337
|
ir as fnSetStorage,
|
|
33323
33338
|
bu as fnSetTheme,
|
|
33324
33339
|
I2 as fnSetUser,
|
|
33325
|
-
|
|
33340
|
+
TY as fnThrottle,
|
|
33326
33341
|
L2 as fnUserLogout,
|
|
33327
33342
|
fo as getDefaultDate,
|
|
33328
33343
|
fa as i18n,
|
|
33329
|
-
|
|
33344
|
+
$Y as install,
|
|
33330
33345
|
WH as lightTheme,
|
|
33331
|
-
|
|
33346
|
+
nY as scaleStore,
|
|
33347
|
+
mW as useDebounceFn,
|
|
33348
|
+
MY as useThrottleFn,
|
|
33332
33349
|
G as userStore
|
|
33333
33350
|
};
|