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