@partex/one-core 3.0.10 → 3.0.13
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 +404 -397
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Wt = Object.defineProperty;
|
|
2
2
|
var Kt = (e, o, a) => o in e ? Wt(e, o, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[o] = a;
|
|
3
3
|
var eo = (e, o, a) => Kt(e, typeof o != "symbol" ? o + "" : o, a);
|
|
4
|
-
import { defineComponent as X, openBlock as p, createElementBlock as z, createElementVNode as h, h as H, reactive as
|
|
5
|
-
import { NPopover as De, NFlex as be, NButton as te, NTooltip as Me, NIcon as fe, NPopconfirm as it, NInput as Ye, NSelect as ut, NInputNumber as dt, NDatePicker as
|
|
4
|
+
import { defineComponent as X, openBlock as p, createElementBlock as z, createElementVNode as h, h as H, reactive as wo, resolveComponent as u, createBlock as P, withCtx as l, createVNode as r, toDisplayString as R, ref as C, Fragment as ie, normalizeStyle as lo, createCommentVNode as A, createTextVNode as E, onMounted as Ie, onBeforeUnmount as ro, renderList as Ke, createSlots as Re, withDirectives as Le, vShow as Ue, watch as ve, renderSlot as ke, withKeys as go, computed as Qt, onUnmounted as Xt, nextTick as Yt, normalizeClass as at, mergeProps as Zt } from "vue";
|
|
5
|
+
import { NPopover as De, NFlex as be, NButton as te, NTooltip as Me, NIcon as fe, NPopconfirm as it, NInput as Ye, NSelect as ut, NInputNumber as dt, NDatePicker as vo, NTimePicker as ct, NSwitch as xt, NUpload as pt, NUploadDragger as ea, NDivider as ft, NColorPicker as oa, NCheckbox as ta, NCheckboxGroup as aa, NCascader as mt, NGrid as qe, NForm as ko, NFormItem as Co, createDiscreteApi as na, NDataTable as Ee, useNotification as ze, NBadge as la, NRadioGroup as ra, NRadioButton as sa, NDropdown as ht, NMenu as ia, NDrawer as ua, NDrawerContent as da, NCard as No, NModal as gt, NTabs as ca, NTabPane as pa, NGi as so, darkTheme as Be, NConfigProvider as fa, NDialogProvider as ma, NNotificationProvider as ha, zhCN as ga, dateZhCN as ya, NInputGroup as So, NInputGroupLabel as yt, NGridItem as ba, NTreeSelect as wa, NSkeleton as va } from "naive-ui";
|
|
6
6
|
import { useRoute as io, useRouter as je, createRouter as ka, createWebHistory as Ca } from "vue-router";
|
|
7
7
|
import * as uo from "echarts/core";
|
|
8
8
|
import { BarChart as Na, LineChart as Sa, PieChart as $a, CustomChart as Ta } from "echarts/charts";
|
|
@@ -33,13 +33,13 @@ const La = X({
|
|
|
33
33
|
for (const [s, n] of o)
|
|
34
34
|
a[s] = n;
|
|
35
35
|
return a;
|
|
36
|
-
}, Ua = {},
|
|
36
|
+
}, Ua = {}, _a = {
|
|
37
37
|
xmlns: "http://www.w3.org/2000/svg",
|
|
38
38
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
39
39
|
viewBox: "0 0 24 24"
|
|
40
40
|
};
|
|
41
|
-
function
|
|
42
|
-
return p(), z("svg",
|
|
41
|
+
function qa(e, o) {
|
|
42
|
+
return p(), z("svg", _a, o[0] || (o[0] = [
|
|
43
43
|
h("g", { fill: "none" }, [
|
|
44
44
|
h("path", {
|
|
45
45
|
d: "M11.75 3a.75.75 0 0 1 .743.648l.007.102l.001 7.25h7.253a.75.75 0 0 1 .102 1.493l-.102.007h-7.253l.002 7.25a.75.75 0 0 1-1.493.101l-.007-.102l-.002-7.249H3.752a.75.75 0 0 1-.102-1.493L3.752 11h7.25L11 3.75a.75.75 0 0 1 .75-.75z",
|
|
@@ -48,7 +48,7 @@ function _a(e, o) {
|
|
|
48
48
|
], -1)
|
|
49
49
|
]));
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const wt = /* @__PURE__ */ L(Ua, [["render", qa]]), Ea = {}, ja = {
|
|
52
52
|
xmlns: "http://www.w3.org/2000/svg",
|
|
53
53
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
54
54
|
viewBox: "0 0 24 24"
|
|
@@ -63,7 +63,7 @@ function Ha(e, o) {
|
|
|
63
63
|
], -1)
|
|
64
64
|
]));
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const vt = /* @__PURE__ */ L(Ea, [["render", Ha]]), Ga = {}, Ja = {
|
|
67
67
|
xmlns: "http://www.w3.org/2000/svg",
|
|
68
68
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
69
69
|
viewBox: "0 0 24 24"
|
|
@@ -203,13 +203,13 @@ function bn(e, o) {
|
|
|
203
203
|
], -1)
|
|
204
204
|
]));
|
|
205
205
|
}
|
|
206
|
-
const co = /* @__PURE__ */ L(gn, [["render", bn]]),
|
|
206
|
+
const co = /* @__PURE__ */ L(gn, [["render", bn]]), wn = {}, vn = {
|
|
207
207
|
xmlns: "http://www.w3.org/2000/svg",
|
|
208
208
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
209
209
|
viewBox: "0 0 24 24"
|
|
210
210
|
};
|
|
211
211
|
function kn(e, o) {
|
|
212
|
-
return p(), z("svg",
|
|
212
|
+
return p(), z("svg", vn, o[0] || (o[0] = [
|
|
213
213
|
h("g", { fill: "none" }, [
|
|
214
214
|
h("path", {
|
|
215
215
|
d: "M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5h9zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5h15z",
|
|
@@ -218,7 +218,7 @@ function kn(e, o) {
|
|
|
218
218
|
], -1)
|
|
219
219
|
]));
|
|
220
220
|
}
|
|
221
|
-
const Io = /* @__PURE__ */ L(
|
|
221
|
+
const Io = /* @__PURE__ */ L(wn, [["render", kn]]), Cn = {}, Nn = {
|
|
222
222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
223
223
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
224
224
|
viewBox: "0 0 24 24"
|
|
@@ -298,7 +298,7 @@ const Ot = /* @__PURE__ */ L(Vn, [["render", Rn]]), Ln = {}, Un = {
|
|
|
298
298
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
299
299
|
viewBox: "0 0 24 24"
|
|
300
300
|
};
|
|
301
|
-
function
|
|
301
|
+
function _n(e, o) {
|
|
302
302
|
return p(), z("svg", Un, o[0] || (o[0] = [
|
|
303
303
|
h("g", { fill: "none" }, [
|
|
304
304
|
h("path", {
|
|
@@ -308,7 +308,7 @@ function qn(e, o) {
|
|
|
308
308
|
], -1)
|
|
309
309
|
]));
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const _e = /* @__PURE__ */ L(Ln, [["render", _n]]), qn = {}, En = {
|
|
312
312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
313
313
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
314
314
|
viewBox: "0 0 24 24"
|
|
@@ -323,7 +323,7 @@ function jn(e, o) {
|
|
|
323
323
|
], -1)
|
|
324
324
|
]));
|
|
325
325
|
}
|
|
326
|
-
const po = /* @__PURE__ */ L(
|
|
326
|
+
const po = /* @__PURE__ */ L(qn, [["render", jn]]), Hn = {}, Gn = {
|
|
327
327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
328
328
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
329
329
|
viewBox: "0 0 24 24"
|
|
@@ -589,7 +589,7 @@ function Fo(e, o = !1) {
|
|
|
589
589
|
"div",
|
|
590
590
|
{},
|
|
591
591
|
{
|
|
592
|
-
default: () =>
|
|
592
|
+
default: () => _.lang === "zh-CN" ? `共${e.total}条` : `${e.total} items`
|
|
593
593
|
}
|
|
594
594
|
)
|
|
595
595
|
},
|
|
@@ -767,7 +767,7 @@ const bl = {
|
|
|
767
767
|
label: "扫一扫"
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
},
|
|
770
|
+
}, wl = {
|
|
771
771
|
Platform: {
|
|
772
772
|
components: "Components",
|
|
773
773
|
iot: "SMART LEAN IOT PLATFORM",
|
|
@@ -872,15 +872,15 @@ const bl = {
|
|
|
872
872
|
label: "Scan"
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
},
|
|
875
|
+
}, vl = Ba({
|
|
876
876
|
legacy: !1,
|
|
877
877
|
locale: "zh-CN",
|
|
878
878
|
messages: {
|
|
879
|
-
"en-US": { ...
|
|
879
|
+
"en-US": { ...wl },
|
|
880
880
|
"zh-CN": { ...bl },
|
|
881
881
|
"fr-FR": {}
|
|
882
882
|
}
|
|
883
|
-
}), Se =
|
|
883
|
+
}), Se = vl, _ = wo({
|
|
884
884
|
needUpdate: !1,
|
|
885
885
|
download: !1,
|
|
886
886
|
theme: !1,
|
|
@@ -911,33 +911,33 @@ const bl = {
|
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
function kl(e) {
|
|
914
|
-
|
|
914
|
+
_.platformMenu = e;
|
|
915
915
|
}
|
|
916
916
|
function Lo(e) {
|
|
917
|
-
|
|
917
|
+
_.download = e;
|
|
918
918
|
}
|
|
919
919
|
function Cl(e) {
|
|
920
|
-
|
|
920
|
+
_.language = e;
|
|
921
921
|
}
|
|
922
922
|
function Nl(e) {
|
|
923
|
-
|
|
923
|
+
_.ownedProducts = e;
|
|
924
924
|
}
|
|
925
925
|
function Xe(e) {
|
|
926
926
|
let o;
|
|
927
|
-
e ? o = e :
|
|
927
|
+
e ? o = e : _.lang === "zh-CN" ? o = "en-US" : o = "zh-CN", ye("lang", o, 0), _.lang = o;
|
|
928
928
|
const a = document.body;
|
|
929
929
|
a.dataset.lang = o, Se.global.locale.value = o;
|
|
930
930
|
}
|
|
931
931
|
function fo(e) {
|
|
932
|
-
|
|
932
|
+
_.theme = e;
|
|
933
933
|
const o = document.body, a = document.querySelector("meta[name=theme-color]");
|
|
934
934
|
e ? o.dataset.theme = "dark" : o.dataset.theme = "", a && (e ? a.setAttribute("content", "#2b2b2d") : a.setAttribute("content", "#ffffff"));
|
|
935
935
|
}
|
|
936
936
|
function Sl(e) {
|
|
937
|
-
|
|
937
|
+
_.options = Object.assign({}, _.options, e);
|
|
938
938
|
}
|
|
939
939
|
const Mt = () => {
|
|
940
|
-
|
|
940
|
+
_.isMobile = window.screen.availWidth < 769, _.isPad = window.screen.availWidth < 1024;
|
|
941
941
|
};
|
|
942
942
|
window.addEventListener("resize", Mt);
|
|
943
943
|
Mt();
|
|
@@ -1021,7 +1021,7 @@ const oo = (e, o) => H(
|
|
|
1021
1021
|
);
|
|
1022
1022
|
e.buttonText ? s = n : s = oo(
|
|
1023
1023
|
n,
|
|
1024
|
-
|
|
1024
|
+
_.lang === "zh-CN" ? "详情" : "Detail"
|
|
1025
1025
|
);
|
|
1026
1026
|
}
|
|
1027
1027
|
if (e.type === "edit") {
|
|
@@ -1032,7 +1032,7 @@ const oo = (e, o) => H(
|
|
|
1032
1032
|
o,
|
|
1033
1033
|
a
|
|
1034
1034
|
);
|
|
1035
|
-
e.buttonText ? s = n : s = oo(n,
|
|
1035
|
+
e.buttonText ? s = n : s = oo(n, _.lang === "zh-CN" ? "编辑" : "Edit");
|
|
1036
1036
|
}
|
|
1037
1037
|
if (e.type === "delete") {
|
|
1038
1038
|
let n = Pe(
|
|
@@ -1044,12 +1044,12 @@ const oo = (e, o) => H(
|
|
|
1044
1044
|
);
|
|
1045
1045
|
e.buttonText ? n = n : n = oo(
|
|
1046
1046
|
n,
|
|
1047
|
-
|
|
1047
|
+
_.lang === "zh-CN" ? "删除" : "Delete"
|
|
1048
1048
|
), s = no(
|
|
1049
1049
|
n,
|
|
1050
1050
|
{
|
|
1051
1051
|
...e,
|
|
1052
|
-
confirmText:
|
|
1052
|
+
confirmText: _.lang === "zh-CN" ? "删除后无法恢复,是否确认删除?" : "Are you sure you want to delete ?"
|
|
1053
1053
|
},
|
|
1054
1054
|
o,
|
|
1055
1055
|
a
|
|
@@ -1073,14 +1073,14 @@ const oo = (e, o) => H(
|
|
|
1073
1073
|
n.type === "detail" && (d = Pe(
|
|
1074
1074
|
{
|
|
1075
1075
|
...n,
|
|
1076
|
-
buttonText:
|
|
1076
|
+
buttonText: _.lang === "zh-CN" ? "详情" : "Detail"
|
|
1077
1077
|
},
|
|
1078
1078
|
"primary",
|
|
1079
1079
|
void 0,
|
|
1080
1080
|
o,
|
|
1081
1081
|
a
|
|
1082
1082
|
)), n.type === "edit" && (d = Pe(
|
|
1083
|
-
{ ...n, buttonText:
|
|
1083
|
+
{ ...n, buttonText: _.lang === "zh-CN" ? "编辑" : "Edit" },
|
|
1084
1084
|
"success",
|
|
1085
1085
|
void 0,
|
|
1086
1086
|
o,
|
|
@@ -1090,7 +1090,7 @@ const oo = (e, o) => H(
|
|
|
1090
1090
|
{
|
|
1091
1091
|
...n,
|
|
1092
1092
|
onClick: "",
|
|
1093
|
-
buttonText:
|
|
1093
|
+
buttonText: _.lang === "zh-CN" ? "删除" : "Delete"
|
|
1094
1094
|
},
|
|
1095
1095
|
"error",
|
|
1096
1096
|
void 0,
|
|
@@ -1099,7 +1099,7 @@ const oo = (e, o) => H(
|
|
|
1099
1099
|
),
|
|
1100
1100
|
{
|
|
1101
1101
|
...n,
|
|
1102
|
-
confirmText:
|
|
1102
|
+
confirmText: _.lang === "zh-CN" ? "删除后无法恢复,是否确认删除?" : "Are you sure you want to delete ?"
|
|
1103
1103
|
},
|
|
1104
1104
|
o,
|
|
1105
1105
|
a
|
|
@@ -1279,14 +1279,14 @@ const Ml = /* @__PURE__ */ L(zl, [["render", Al]]), Bl = X({
|
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
1281
|
}
|
|
1282
|
-
}), Vl = { viewBox: "40 20 120 120" }, Fl = ["stroke"], Rl = ["stroke"], Ll = ["r", "transform", "fill"], Ul = ["r", "transform", "fill"],
|
|
1282
|
+
}), Vl = { viewBox: "40 20 120 120" }, Fl = ["stroke"], Rl = ["stroke"], Ll = ["r", "transform", "fill"], Ul = ["r", "transform", "fill"], _l = {
|
|
1283
1283
|
dx: "100",
|
|
1284
1284
|
dy: "90",
|
|
1285
1285
|
fill: "#333",
|
|
1286
1286
|
"text-anchor": "middle",
|
|
1287
1287
|
style: { "font-size": "28px" }
|
|
1288
1288
|
};
|
|
1289
|
-
function
|
|
1289
|
+
function ql(e, o, a, s, n, d) {
|
|
1290
1290
|
const i = u("NPopover");
|
|
1291
1291
|
return p(), z(ie, null, [
|
|
1292
1292
|
(p(), z("svg", Vl, [
|
|
@@ -1362,7 +1362,7 @@ function _l(e, o, a, s, n, d) {
|
|
|
1362
1362
|
}),
|
|
1363
1363
|
onMouseout: o[3] || (o[3] = (...c) => e.mouseOut && e.mouseOut(...c))
|
|
1364
1364
|
}, null, 40, Ul)) : A("", !0),
|
|
1365
|
-
h("text",
|
|
1365
|
+
h("text", _l, R(e.circleTxt ? e.circleTxt : `${e.circle}%`), 1)
|
|
1366
1366
|
])),
|
|
1367
1367
|
r(i, {
|
|
1368
1368
|
show: e.popover.show,
|
|
@@ -1378,7 +1378,7 @@ function _l(e, o, a, s, n, d) {
|
|
|
1378
1378
|
}, 8, ["show", "x", "y"])
|
|
1379
1379
|
], 64);
|
|
1380
1380
|
}
|
|
1381
|
-
const El = /* @__PURE__ */ L(Bl, [["render",
|
|
1381
|
+
const El = /* @__PURE__ */ L(Bl, [["render", ql]]), jl = {
|
|
1382
1382
|
color: [
|
|
1383
1383
|
"#8e54c8",
|
|
1384
1384
|
"#fe9546",
|
|
@@ -2062,7 +2062,7 @@ const Gl = {
|
|
|
2062
2062
|
},
|
|
2063
2063
|
mounted() {
|
|
2064
2064
|
this.$watch(
|
|
2065
|
-
() =>
|
|
2065
|
+
() => _.theme,
|
|
2066
2066
|
() => {
|
|
2067
2067
|
this.dispose(), this.init();
|
|
2068
2068
|
}
|
|
@@ -2083,7 +2083,7 @@ const Gl = {
|
|
|
2083
2083
|
const o = this.renderer || "canvas";
|
|
2084
2084
|
return new Promise((a) => {
|
|
2085
2085
|
this.$nextTick(() => {
|
|
2086
|
-
const s = this.theme ? this.theme :
|
|
2086
|
+
const s = this.theme ? this.theme : _.theme ? "dark" : "white", n = uo.init(e, s, {
|
|
2087
2087
|
renderer: o,
|
|
2088
2088
|
// width: undefined,
|
|
2089
2089
|
// height: undefined,
|
|
@@ -2171,11 +2171,11 @@ const Wl = X({
|
|
|
2171
2171
|
title: "404 页面走丢了",
|
|
2172
2172
|
title2: "Something's missing."
|
|
2173
2173
|
}), s = () => {
|
|
2174
|
-
Oe.push(
|
|
2174
|
+
Oe.push(_.platformUrl);
|
|
2175
2175
|
}, n = C();
|
|
2176
2176
|
return Ie(() => {
|
|
2177
2177
|
a.value = o[e.type], n.value = setInterval(() => {
|
|
2178
|
-
Oe.push(
|
|
2178
|
+
Oe.push(_.platformUrl);
|
|
2179
2179
|
}, 3e3);
|
|
2180
2180
|
}), ro(() => {
|
|
2181
2181
|
clearInterval(n.value);
|
|
@@ -2238,7 +2238,7 @@ const nr = /* @__PURE__ */ L(or, [["render", ar]]), lr = X({
|
|
|
2238
2238
|
NInput: Ye,
|
|
2239
2239
|
NSelect: ut,
|
|
2240
2240
|
NInputNumber: dt,
|
|
2241
|
-
NDatePicker:
|
|
2241
|
+
NDatePicker: vo,
|
|
2242
2242
|
NTimePicker: ct,
|
|
2243
2243
|
NSwitch: xt,
|
|
2244
2244
|
NUpload: pt,
|
|
@@ -2298,7 +2298,7 @@ const nr = /* @__PURE__ */ L(or, [["render", ar]]), lr = X({
|
|
|
2298
2298
|
}
|
|
2299
2299
|
});
|
|
2300
2300
|
function rr(e, o, a, s, n, d) {
|
|
2301
|
-
const i = u("NDivider"), c = u("NInput"), m = u("NInputNumber"), f = u("NDatePicker"), g = u("NSelect"), v = u("NCascader"), y = u("NColorPicker"),
|
|
2301
|
+
const i = u("NDivider"), c = u("NInput"), m = u("NInputNumber"), f = u("NDatePicker"), g = u("NSelect"), v = u("NCascader"), y = u("NColorPicker"), N = u("NCheckbox"), I = u("NFlex"), T = u("NCheckboxGroup"), $ = u("NTimePicker"), B = u("NSwitch"), j = u("IconMailInboxAdd"), O = u("NIcon"), V = u("NUploadDragger"), F = u("NUpload");
|
|
2302
2302
|
return p(), z(ie, null, [
|
|
2303
2303
|
e.item.input === "divider" ? (p(), P(i, {
|
|
2304
2304
|
key: 0,
|
|
@@ -2340,8 +2340,8 @@ function rr(e, o, a, s, n, d) {
|
|
|
2340
2340
|
showButton: e.item.showButton,
|
|
2341
2341
|
"update-value-on-input": !1,
|
|
2342
2342
|
parse: (S) => {
|
|
2343
|
-
const
|
|
2344
|
-
return
|
|
2343
|
+
const w = e.item;
|
|
2344
|
+
return w.precision && w.precision > -1 ? Number(Number(S).toFixed(w.precision)) : Number(S);
|
|
2345
2345
|
},
|
|
2346
2346
|
"on-update:value": (S) => {
|
|
2347
2347
|
e.formValue[e.item.key] = S, e.updateValue(e.item, S);
|
|
@@ -2357,11 +2357,11 @@ function rr(e, o, a, s, n, d) {
|
|
|
2357
2357
|
"input-readonly": e.edit && e.item.edit ? e.item.edit.readonly : e.item.readonly,
|
|
2358
2358
|
clearable: e.item.clearable,
|
|
2359
2359
|
"time-picker-props": e.item.timePickerProps,
|
|
2360
|
-
"is-date-disabled": (S,
|
|
2360
|
+
"is-date-disabled": (S, w) => {
|
|
2361
2361
|
const t = e.item;
|
|
2362
2362
|
return t.isDateDisabled ? t.isDateDisabled(
|
|
2363
2363
|
S,
|
|
2364
|
-
|
|
2364
|
+
w
|
|
2365
2365
|
) : !1;
|
|
2366
2366
|
},
|
|
2367
2367
|
"close-on-select": "",
|
|
@@ -2380,11 +2380,11 @@ function rr(e, o, a, s, n, d) {
|
|
|
2380
2380
|
clearable: e.item.clearable,
|
|
2381
2381
|
format: e.item.format,
|
|
2382
2382
|
"time-picker-props": e.item.timePickerProps,
|
|
2383
|
-
"is-date-disabled": (S,
|
|
2383
|
+
"is-date-disabled": (S, w) => {
|
|
2384
2384
|
const t = e.item;
|
|
2385
2385
|
return t.isDateDisabled ? t.isDateDisabled(
|
|
2386
2386
|
S,
|
|
2387
|
-
|
|
2387
|
+
w
|
|
2388
2388
|
) : !1;
|
|
2389
2389
|
},
|
|
2390
2390
|
"close-on-select": "",
|
|
@@ -2410,9 +2410,9 @@ function rr(e, o, a, s, n, d) {
|
|
|
2410
2410
|
"render-option": e.item.renderOption,
|
|
2411
2411
|
"render-tag": e.item.renderTag,
|
|
2412
2412
|
"on-update:value": (S) => {
|
|
2413
|
-
const
|
|
2413
|
+
const w = e.item;
|
|
2414
2414
|
let t = S, D = S;
|
|
2415
|
-
if (
|
|
2415
|
+
if (w.multiple) {
|
|
2416
2416
|
let G = S.filter((ae) => ae);
|
|
2417
2417
|
G.length === 0 ? (t = [""], D = []) : (t = G, D = G);
|
|
2418
2418
|
}
|
|
@@ -2434,9 +2434,9 @@ function rr(e, o, a, s, n, d) {
|
|
|
2434
2434
|
multiple: e.item.multiple,
|
|
2435
2435
|
maxTagCount: e.item.maxTagCount,
|
|
2436
2436
|
"on-update:value": (S) => {
|
|
2437
|
-
const
|
|
2437
|
+
const w = e.item;
|
|
2438
2438
|
let t = S, D = S;
|
|
2439
|
-
if (
|
|
2439
|
+
if (w.multiple) {
|
|
2440
2440
|
let G = S.filter((ae) => ae);
|
|
2441
2441
|
G.length === 0 ? (t = [""], D = []) : (t = G, D = G);
|
|
2442
2442
|
}
|
|
@@ -2467,7 +2467,7 @@ function rr(e, o, a, s, n, d) {
|
|
|
2467
2467
|
default: l(() => [
|
|
2468
2468
|
r(I, null, {
|
|
2469
2469
|
default: l(() => [
|
|
2470
|
-
(p(!0), z(ie, null, Ke(e.item.options, (S) => (p(), P(
|
|
2470
|
+
(p(!0), z(ie, null, Ke(e.item.options, (S) => (p(), P(N, {
|
|
2471
2471
|
label: S.label,
|
|
2472
2472
|
value: S.value
|
|
2473
2473
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -2561,7 +2561,7 @@ function rr(e, o, a, s, n, d) {
|
|
|
2561
2561
|
const sr = /* @__PURE__ */ L(lr, [["render", rr]]), ir = X({
|
|
2562
2562
|
name: "OcForm",
|
|
2563
2563
|
components: {
|
|
2564
|
-
NGrid:
|
|
2564
|
+
NGrid: qe,
|
|
2565
2565
|
NForm: ko,
|
|
2566
2566
|
NFormItem: Co,
|
|
2567
2567
|
OcFormItem: sr
|
|
@@ -2608,19 +2608,19 @@ const sr = /* @__PURE__ */ L(lr, [["render", rr]]), ir = X({
|
|
|
2608
2608
|
const g = de(e.items);
|
|
2609
2609
|
g.forEach((v) => {
|
|
2610
2610
|
if (typeof v.show > "u" && (v.show = !0), v.input !== "divider" && v.rule && v.rule.validator && typeof v.rule.validator == "string") {
|
|
2611
|
-
const y = v.rule.validator,
|
|
2612
|
-
v.rule.validator = (I, T) =>
|
|
2611
|
+
const y = v.rule.validator, N = new Function("rule", "value", y);
|
|
2612
|
+
v.rule.validator = (I, T) => N(I, T);
|
|
2613
2613
|
}
|
|
2614
2614
|
if (v.input === "date" && v.isDateDisabled && typeof v.isDateDisabled == "string") {
|
|
2615
|
-
const y = v.isDateDisabled,
|
|
2616
|
-
v.isDateDisabled = (I, T) =>
|
|
2615
|
+
const y = v.isDateDisabled, N = new Function("ts", "detail", y);
|
|
2616
|
+
v.isDateDisabled = (I, T) => N(I, T);
|
|
2617
2617
|
}
|
|
2618
2618
|
v.input === "select" && v.fallbackOption && v.multiple && (!n.value[v.key] || n.value[v.key].length === 0) && (n.value[v.key] = [""]);
|
|
2619
2619
|
}), d.value = g;
|
|
2620
2620
|
}, m = () => new Promise((g, v) => {
|
|
2621
2621
|
var y;
|
|
2622
|
-
(y = s.value) == null || y.validate((
|
|
2623
|
-
if (
|
|
2622
|
+
(y = s.value) == null || y.validate((N) => {
|
|
2623
|
+
if (N)
|
|
2624
2624
|
v();
|
|
2625
2625
|
else {
|
|
2626
2626
|
const I = de(n.value), T = JSON.stringify(
|
|
@@ -2636,7 +2636,7 @@ const sr = /* @__PURE__ */ L(lr, [["render", rr]]), ir = X({
|
|
|
2636
2636
|
};
|
|
2637
2637
|
return Ie(() => {
|
|
2638
2638
|
n.value = de(e.data), c();
|
|
2639
|
-
}), o({ validate: m, restoreValidation: f }),
|
|
2639
|
+
}), o({ validate: m, restoreValidation: f }), ve(
|
|
2640
2640
|
() => e.items,
|
|
2641
2641
|
() => {
|
|
2642
2642
|
c();
|
|
@@ -2644,7 +2644,7 @@ const sr = /* @__PURE__ */ L(lr, [["render", rr]]), ir = X({
|
|
|
2644
2644
|
{
|
|
2645
2645
|
deep: !0
|
|
2646
2646
|
}
|
|
2647
|
-
),
|
|
2647
|
+
), ve(
|
|
2648
2648
|
() => e.data,
|
|
2649
2649
|
(g) => {
|
|
2650
2650
|
n.value = de(g);
|
|
@@ -2764,7 +2764,7 @@ let bo = $o.CancelToken.source();
|
|
|
2764
2764
|
He.interceptors.request.use(
|
|
2765
2765
|
(e) => {
|
|
2766
2766
|
var a;
|
|
2767
|
-
e.cancelToken = bo.token, e.headers.TimezoneOffset = fr, e.headers.Language =
|
|
2767
|
+
e.cancelToken = bo.token, e.headers.TimezoneOffset = fr, e.headers.Language = _.lang;
|
|
2768
2768
|
const o = pe("token", !1);
|
|
2769
2769
|
if (e.headers && o && (e.headers["X-Auth-Token"] = o), ((a = e.method) == null ? void 0 : a.toLocaleUpperCase()) === "GET") {
|
|
2770
2770
|
const s = Bt(e.data);
|
|
@@ -2847,10 +2847,10 @@ const mr = () => {
|
|
|
2847
2847
|
key: a.industryCategory === "0" ? "/iot/home/all" : "/prt/home/all"
|
|
2848
2848
|
}
|
|
2849
2849
|
];
|
|
2850
|
-
switch (Object.keys(
|
|
2850
|
+
switch (Object.keys(_.owned).forEach((i) => {
|
|
2851
2851
|
const c = n.includes(Number(i));
|
|
2852
|
-
if (a[
|
|
2853
|
-
const m =
|
|
2852
|
+
if (a[_.owned[i]] = c, c) {
|
|
2853
|
+
const m = _.owned[i].split("_")[1], f = _.platformList[m];
|
|
2854
2854
|
f && d.push({
|
|
2855
2855
|
label: () => Se.global.t(f.platformName),
|
|
2856
2856
|
key: f.platformUrl
|
|
@@ -2874,16 +2874,16 @@ const mr = () => {
|
|
|
2874
2874
|
}).catch((a) => {
|
|
2875
2875
|
o(a);
|
|
2876
2876
|
});
|
|
2877
|
-
}), yr = () => me("api/auth/user/logout"), br = () => me("api/manager/message/markReadAll"),
|
|
2877
|
+
}), yr = () => me("api/auth/user/logout"), br = () => me("api/manager/message/markReadAll"), wr = () => me("api/auth/user/updateTenantRenewalStatus"), vr = (e) => me(_.options.removeUrl, e), kr = (e) => me("api/manager/job/retry", {
|
|
2878
2878
|
jobId: e
|
|
2879
2879
|
}), Cr = (e, o = {}) => hr(e, o, "blob"), Ft = (e) => {
|
|
2880
2880
|
const o = new FormData();
|
|
2881
2881
|
return Object.keys(e).forEach((a) => {
|
|
2882
2882
|
e.query && a === "query" ? o.append("query", JSON.stringify(e.query)) : o.append(a, e[a]);
|
|
2883
|
-
}), Vt(
|
|
2883
|
+
}), Vt(_.options.importUrl, o);
|
|
2884
2884
|
}, Rt = (e) => new Promise((o, a) => {
|
|
2885
2885
|
const s = Ro(e);
|
|
2886
|
-
me(
|
|
2886
|
+
me(_.options.pageUrl, s).then((n) => {
|
|
2887
2887
|
const d = Fo(n);
|
|
2888
2888
|
o(d);
|
|
2889
2889
|
}).catch(() => {
|
|
@@ -2893,7 +2893,7 @@ const mr = () => {
|
|
|
2893
2893
|
const s = new FormData();
|
|
2894
2894
|
s.append("jobType", "EXPORT"), Object.keys(e).forEach((n) => {
|
|
2895
2895
|
e.query && n === "query" ? s.append("query", JSON.stringify(e.query)) : s.append(n, e[n]);
|
|
2896
|
-
}), Vt(
|
|
2896
|
+
}), Vt(_.options.importUrl, s).then(() => {
|
|
2897
2897
|
Lo(!0), o();
|
|
2898
2898
|
}).catch((n) => {
|
|
2899
2899
|
a(n);
|
|
@@ -2913,8 +2913,9 @@ const mr = () => {
|
|
|
2913
2913
|
messageId: e
|
|
2914
2914
|
});
|
|
2915
2915
|
let Ut = !0;
|
|
2916
|
-
const
|
|
2916
|
+
const k = wo({
|
|
2917
2917
|
commissioner: !1,
|
|
2918
|
+
isHy: !1,
|
|
2918
2919
|
factoryId: "",
|
|
2919
2920
|
tenantLoginCode: "",
|
|
2920
2921
|
thirdUserId: "",
|
|
@@ -2960,14 +2961,14 @@ const N = vo({
|
|
|
2960
2961
|
function $r(e) {
|
|
2961
2962
|
Ut = e;
|
|
2962
2963
|
}
|
|
2963
|
-
function
|
|
2964
|
+
function _t(e) {
|
|
2964
2965
|
try {
|
|
2965
2966
|
const o = window.location.host;
|
|
2966
2967
|
if (o.includes("partexiot.cn")) {
|
|
2967
2968
|
const a = pe("token", !1);
|
|
2968
|
-
|
|
2969
|
+
k.industryCategory = e.industryCategory || "0", (!o.includes("test") || !o.includes("vpn")) && Ut && (e.industryCategory === "0" && o.includes("printing") && (window.location.href = `https://www.partexiot.cn/auth?auth=${a}`), e.industryCategory === "1" && !o.includes("printing") && (window.location.href = `https://printing.partexiot.cn/auth?auth=${a}`));
|
|
2969
2970
|
}
|
|
2970
|
-
if (
|
|
2971
|
+
if (k.isHy = e.isHy, k.commissioner = e.commissioner, k.factoryId = e.factoryId, k.tenantLoginCode = e.tenantLoginCode, k.userId = e.userId, k.email = e.email, k.name = e.name, k.realName = e.realName, k.tenantName = e.tenantName, k.phone = e.phone, k.info = e.info, k.kind = e.kind, k.oeeStatus = e.oeeStatus || 0, k.ncFlg = e.ncFlg || 0, k.systemType = e.systemType, k.platform_tdm = e.platform_tdm, k.platform_qms = e.platform_qms, k.platform_twin = e.platform_twin, k.platform_maintain = e.platform_maintain, k.platform_order = e.platform_order, k.platform_simple_tdm = e.platform_simple_tdm, k.authorizationGroupArray = e.authorizationGroupArray || [], k.authorizationMachineArray = e.authorizationMachineArray || [], k.iot_menu_authorization = e.iot_menu_authorization || [], k.tdm_menu_authorization = e.tdm_menu_authorization || [], k.qms_menu_authorization = e.qms_menu_authorization || [], k.maintain_menu_authorization = e.maintain_menu_authorization || [], k.order_menu_authorization = e.order_menu_authorization || [], k.endTime = e.endTime ?? 0, k.tenantStatus = e.tenantStatus ?? 1, k.renewalStatus = e.renewalStatus ?? 0, k.roleId = e.roleId || 0, k.kind === 1) {
|
|
2971
2972
|
const a = e.info, s = String(e.info.type);
|
|
2972
2973
|
s === "0" && Oe.replace(
|
|
2973
2974
|
`/dashboard/list?machGroupId=${a.id}&theme=${a.theme || "light"}`
|
|
@@ -2981,26 +2982,26 @@ function qt(e) {
|
|
|
2981
2982
|
console.log(o);
|
|
2982
2983
|
}
|
|
2983
2984
|
}
|
|
2984
|
-
function
|
|
2985
|
+
function _o() {
|
|
2985
2986
|
return new Promise((e, o) => {
|
|
2986
2987
|
gr().then((a) => {
|
|
2987
|
-
|
|
2988
|
+
_t(a), e(a);
|
|
2988
2989
|
}).catch(() => {
|
|
2989
2990
|
o();
|
|
2990
2991
|
});
|
|
2991
2992
|
});
|
|
2992
2993
|
}
|
|
2993
|
-
function
|
|
2994
|
-
|
|
2994
|
+
function qo() {
|
|
2995
|
+
k.factoryId = "", k.isHy = !1, k.commissioner = !1, k.tenantLoginCode = "", k.userId = "", k.email = "", k.name = "", k.realName = "", k.tenantName = "", k.phone = "", k.description = "", k.info = {
|
|
2995
2996
|
type: 0,
|
|
2996
2997
|
id: "",
|
|
2997
2998
|
viewType: 1,
|
|
2998
2999
|
interval: 5,
|
|
2999
3000
|
theme: "light"
|
|
3000
|
-
},
|
|
3001
|
+
}, k.kind = 0, k.systemType = 0, k.oeeStatus = 0, k.ncFlg = 0, k.password = "", k.enable = !0, k.platform_tdm = !1, k.platform_qms = !1, k.platform_twin = !1, k.platform_maintain = !1, k.platform_order = !1, k.platform_simple_tdm = !1, k.authorizationGroupArray = [], k.authorizationMachineArray = [], k.iot_menu_authorization = [], k.tdm_menu_authorization = [], k.qms_menu_authorization = [], k.maintain_menu_authorization = [], k.order_menu_authorization = [], k.endTime = 0, k.tenantStatus = 1, k.renewalStatus = 0, k.roleId = 1;
|
|
3001
3002
|
}
|
|
3002
|
-
async function
|
|
3003
|
-
await yr().catch(() => null), Ze("token"),
|
|
3003
|
+
async function qt() {
|
|
3004
|
+
await yr().catch(() => null), Ze("token"), qo(), window.location.href = "/login";
|
|
3004
3005
|
}
|
|
3005
3006
|
const Tr = X({
|
|
3006
3007
|
name: "HeaderPop",
|
|
@@ -3027,7 +3028,7 @@ const Tr = X({
|
|
|
3027
3028
|
title: () => e("Common.importer.fileName"),
|
|
3028
3029
|
key: "jobName",
|
|
3029
3030
|
width: 300,
|
|
3030
|
-
render(
|
|
3031
|
+
render(N) {
|
|
3031
3032
|
return H(
|
|
3032
3033
|
"div",
|
|
3033
3034
|
{},
|
|
@@ -3037,7 +3038,7 @@ const Tr = X({
|
|
|
3037
3038
|
"p",
|
|
3038
3039
|
{},
|
|
3039
3040
|
{
|
|
3040
|
-
default: () =>
|
|
3041
|
+
default: () => N.jobName || "--"
|
|
3041
3042
|
}
|
|
3042
3043
|
),
|
|
3043
3044
|
H(
|
|
@@ -3048,7 +3049,7 @@ const Tr = X({
|
|
|
3048
3049
|
}
|
|
3049
3050
|
},
|
|
3050
3051
|
{
|
|
3051
|
-
default: () => Ae(
|
|
3052
|
+
default: () => Ae(N.commitTime, "yyyy-MM-dd hh:mm:ss")
|
|
3052
3053
|
}
|
|
3053
3054
|
)
|
|
3054
3055
|
]
|
|
@@ -3061,9 +3062,9 @@ const Tr = X({
|
|
|
3061
3062
|
key: "jobStatus",
|
|
3062
3063
|
align: "center",
|
|
3063
3064
|
width: 90,
|
|
3064
|
-
render(
|
|
3065
|
+
render(N) {
|
|
3065
3066
|
let I = e("Common.processing");
|
|
3066
|
-
return
|
|
3067
|
+
return N.jobStatus === 1 && (I = e("Common.success")), N.jobStatus === 2 && (I = e("Common.failed")), H(
|
|
3067
3068
|
"span",
|
|
3068
3069
|
{},
|
|
3069
3070
|
{
|
|
@@ -3078,12 +3079,12 @@ const Tr = X({
|
|
|
3078
3079
|
align: "center",
|
|
3079
3080
|
fixed: "right",
|
|
3080
3081
|
width: 90,
|
|
3081
|
-
render(
|
|
3082
|
+
render(N) {
|
|
3082
3083
|
const I = [
|
|
3083
3084
|
{
|
|
3084
3085
|
type: "delete",
|
|
3085
3086
|
onClick: () => {
|
|
3086
|
-
|
|
3087
|
+
vr([N.jobId]).then(() => {
|
|
3087
3088
|
a.success({
|
|
3088
3089
|
content: () => e("Notice.success"),
|
|
3089
3090
|
duration: 3e3
|
|
@@ -3097,10 +3098,10 @@ const Tr = X({
|
|
|
3097
3098
|
}
|
|
3098
3099
|
}
|
|
3099
3100
|
];
|
|
3100
|
-
return
|
|
3101
|
+
return N.jobStatus === 2 ? I.unshift({
|
|
3101
3102
|
type: "custom",
|
|
3102
3103
|
onClick: () => {
|
|
3103
|
-
kr(
|
|
3104
|
+
kr(N.jobId).then(() => {
|
|
3104
3105
|
a.success({
|
|
3105
3106
|
content: () => e("Notice.success"),
|
|
3106
3107
|
duration: 3e3
|
|
@@ -3117,9 +3118,9 @@ const Tr = X({
|
|
|
3117
3118
|
tooltipText: () => e("Common.importer.retry")
|
|
3118
3119
|
}) : I.unshift({
|
|
3119
3120
|
type: "custom",
|
|
3120
|
-
disabled:
|
|
3121
|
+
disabled: N.jobStatus !== 1,
|
|
3121
3122
|
onClick: () => {
|
|
3122
|
-
window.open(
|
|
3123
|
+
window.open(N.downloadUrl);
|
|
3123
3124
|
},
|
|
3124
3125
|
icon: co,
|
|
3125
3126
|
color: "success",
|
|
@@ -3127,10 +3128,10 @@ const Tr = X({
|
|
|
3127
3128
|
}), Ve(I);
|
|
3128
3129
|
}
|
|
3129
3130
|
}
|
|
3130
|
-
]), m = (
|
|
3131
|
-
i.value.page =
|
|
3132
|
-
}, f = (
|
|
3133
|
-
i.value.pageSize =
|
|
3131
|
+
]), m = (N) => {
|
|
3132
|
+
i.value.page = N, v();
|
|
3133
|
+
}, f = (N) => {
|
|
3134
|
+
i.value.pageSize = N, i.value.page = 1, v();
|
|
3134
3135
|
}, g = () => {
|
|
3135
3136
|
i.value.page = 1, v();
|
|
3136
3137
|
}, v = () => {
|
|
@@ -3138,18 +3139,18 @@ const Tr = X({
|
|
|
3138
3139
|
jobType: "EXPORT",
|
|
3139
3140
|
jobName: n.value,
|
|
3140
3141
|
query: i.value
|
|
3141
|
-
}).then((
|
|
3142
|
-
i.value =
|
|
3142
|
+
}).then((N) => {
|
|
3143
|
+
i.value = N.query, s.value = N.records, d.value = !1;
|
|
3143
3144
|
}).catch(() => {
|
|
3144
3145
|
d.value = !1;
|
|
3145
3146
|
}));
|
|
3146
|
-
}, y = (
|
|
3147
|
-
Lo(
|
|
3147
|
+
}, y = (N) => {
|
|
3148
|
+
Lo(N), o.value = N;
|
|
3148
3149
|
};
|
|
3149
|
-
return v(),
|
|
3150
|
-
() =>
|
|
3151
|
-
(
|
|
3152
|
-
o.value =
|
|
3150
|
+
return v(), ve(
|
|
3151
|
+
() => _.download,
|
|
3152
|
+
(N) => {
|
|
3153
|
+
o.value = N, N && v();
|
|
3153
3154
|
}
|
|
3154
3155
|
), {
|
|
3155
3156
|
jobName: n,
|
|
@@ -3167,7 +3168,7 @@ const Tr = X({
|
|
|
3167
3168
|
}
|
|
3168
3169
|
}), Or = { class: "oc-header-download" };
|
|
3169
3170
|
function Pr(e, o, a, s, n, d) {
|
|
3170
|
-
const i = u("IconArrowSquareDown"), c = u("NIcon"), m = u("NButton"), f = u("NInput"), g = u("IconSearch"), v = u("NTooltip"), y = u("IconArrowClockwise"),
|
|
3171
|
+
const i = u("IconArrowSquareDown"), c = u("NIcon"), m = u("NButton"), f = u("NInput"), g = u("IconSearch"), v = u("NTooltip"), y = u("IconArrowClockwise"), N = u("NFlex"), I = u("NDataTable"), T = u("NPopover");
|
|
3171
3172
|
return p(), P(T, {
|
|
3172
3173
|
trigger: "click",
|
|
3173
3174
|
placement: "bottom-end",
|
|
@@ -3193,7 +3194,7 @@ function Pr(e, o, a, s, n, d) {
|
|
|
3193
3194
|
})
|
|
3194
3195
|
]),
|
|
3195
3196
|
default: l(() => [
|
|
3196
|
-
r(
|
|
3197
|
+
r(N, {
|
|
3197
3198
|
justify: "end",
|
|
3198
3199
|
wrap: !1
|
|
3199
3200
|
}, {
|
|
@@ -3283,7 +3284,7 @@ const Ir = /* @__PURE__ */ L(Tr, [["render", Pr]]), Dr = X({
|
|
|
3283
3284
|
NDataTable: Ee,
|
|
3284
3285
|
NRadioGroup: ra,
|
|
3285
3286
|
NRadioButton: sa,
|
|
3286
|
-
IconAlert:
|
|
3287
|
+
IconAlert: vt,
|
|
3287
3288
|
IconClear: kt,
|
|
3288
3289
|
IconArrowClockwise: Qe
|
|
3289
3290
|
},
|
|
@@ -3297,15 +3298,15 @@ const Ir = /* @__PURE__ */ L(Tr, [["render", Pr]]), Dr = X({
|
|
|
3297
3298
|
title: () => e("Common.message.title2"),
|
|
3298
3299
|
key: "messageContent",
|
|
3299
3300
|
width: 300,
|
|
3300
|
-
render(
|
|
3301
|
+
render(N) {
|
|
3301
3302
|
return [
|
|
3302
3303
|
H(
|
|
3303
3304
|
"div",
|
|
3304
3305
|
{
|
|
3305
|
-
class:
|
|
3306
|
+
class: N.status === 1 ? "card-grey-txt" : ""
|
|
3306
3307
|
},
|
|
3307
3308
|
{
|
|
3308
|
-
default: () =>
|
|
3309
|
+
default: () => N.messageContent
|
|
3309
3310
|
}
|
|
3310
3311
|
),
|
|
3311
3312
|
H(
|
|
@@ -3314,7 +3315,7 @@ const Ir = /* @__PURE__ */ L(Tr, [["render", Pr]]), Dr = X({
|
|
|
3314
3315
|
class: "card-grey-txt"
|
|
3315
3316
|
},
|
|
3316
3317
|
{
|
|
3317
|
-
default: () => Ae(
|
|
3318
|
+
default: () => Ae(N.createTime, "yyyy-MM-dd hh:mm:ss")
|
|
3318
3319
|
}
|
|
3319
3320
|
)
|
|
3320
3321
|
];
|
|
@@ -3326,15 +3327,15 @@ const Ir = /* @__PURE__ */ L(Tr, [["render", Pr]]), Dr = X({
|
|
|
3326
3327
|
align: "center",
|
|
3327
3328
|
fixed: "right",
|
|
3328
3329
|
width: 90,
|
|
3329
|
-
render(
|
|
3330
|
-
return
|
|
3330
|
+
render(N) {
|
|
3331
|
+
return N.status === 0 ? Ve([
|
|
3331
3332
|
{
|
|
3332
3333
|
type: "custom",
|
|
3333
3334
|
color: "primary",
|
|
3334
3335
|
tooltipText: () => e("Common.message.read"),
|
|
3335
3336
|
buttonText: () => e("Common.message.read"),
|
|
3336
3337
|
onClick: () => {
|
|
3337
|
-
Sr(
|
|
3338
|
+
Sr(N.messageId).then(() => {
|
|
3338
3339
|
y();
|
|
3339
3340
|
}).catch(() => {
|
|
3340
3341
|
y();
|
|
@@ -3345,29 +3346,29 @@ const Ir = /* @__PURE__ */ L(Tr, [["render", Pr]]), Dr = X({
|
|
|
3345
3346
|
"div",
|
|
3346
3347
|
{},
|
|
3347
3348
|
{
|
|
3348
|
-
default: () => `${
|
|
3349
|
+
default: () => `${N.updateByName} ${e("Common.message.read")}`
|
|
3349
3350
|
}
|
|
3350
3351
|
);
|
|
3351
3352
|
}
|
|
3352
3353
|
}
|
|
3353
|
-
]), m = (
|
|
3354
|
-
i.value.page = 1, o.value =
|
|
3354
|
+
]), m = (N) => {
|
|
3355
|
+
i.value.page = 1, o.value = N, y();
|
|
3355
3356
|
}, f = () => {
|
|
3356
3357
|
br().then(() => {
|
|
3357
3358
|
y();
|
|
3358
3359
|
}).catch(() => {
|
|
3359
3360
|
y();
|
|
3360
3361
|
});
|
|
3361
|
-
}, g = (
|
|
3362
|
-
i.value.page =
|
|
3363
|
-
}, v = (
|
|
3364
|
-
i.value.pageSize =
|
|
3362
|
+
}, g = (N) => {
|
|
3363
|
+
i.value.page = N, y();
|
|
3364
|
+
}, v = (N) => {
|
|
3365
|
+
i.value.pageSize = N, i.value.page = 1, y();
|
|
3365
3366
|
}, y = () => {
|
|
3366
3367
|
d.value || (d.value = !0, Nr({
|
|
3367
3368
|
status: o.value,
|
|
3368
3369
|
query: i.value
|
|
3369
|
-
}).then((
|
|
3370
|
-
a.value =
|
|
3370
|
+
}).then((N) => {
|
|
3371
|
+
a.value = N.unRead, i.value = N.data.query, s.value = N.data.records, d.value = !1;
|
|
3371
3372
|
}).catch(() => {
|
|
3372
3373
|
d.value = !1;
|
|
3373
3374
|
}));
|
|
@@ -3389,7 +3390,7 @@ const Ir = /* @__PURE__ */ L(Tr, [["render", Pr]]), Dr = X({
|
|
|
3389
3390
|
}
|
|
3390
3391
|
}), zr = { class: "com-title" };
|
|
3391
3392
|
function Ar(e, o, a, s, n, d) {
|
|
3392
|
-
const i = u("IconAlert"), c = u("NIcon"), m = u("NButton"), f = u("NBadge"), g = u("NRadioButton"), v = u("NRadioGroup"), y = u("IconClear"),
|
|
3393
|
+
const i = u("IconAlert"), c = u("NIcon"), m = u("NButton"), f = u("NBadge"), g = u("NRadioButton"), v = u("NRadioGroup"), y = u("IconClear"), N = u("NTooltip"), I = u("IconArrowClockwise"), T = u("NFlex"), $ = u("NDataTable"), B = u("NPopover");
|
|
3393
3394
|
return p(), P(B, {
|
|
3394
3395
|
trigger: "click",
|
|
3395
3396
|
placement: "bottom-end",
|
|
@@ -3451,7 +3452,7 @@ function Ar(e, o, a, s, n, d) {
|
|
|
3451
3452
|
_: 1
|
|
3452
3453
|
}, 8, ["value", "on-update:value"]),
|
|
3453
3454
|
h("div", null, [
|
|
3454
|
-
r(
|
|
3455
|
+
r(N, { trigger: "hover" }, {
|
|
3455
3456
|
trigger: l(() => [
|
|
3456
3457
|
r(m, { onClick: e.clearAll }, {
|
|
3457
3458
|
icon: l(() => [
|
|
@@ -3470,7 +3471,7 @@ function Ar(e, o, a, s, n, d) {
|
|
|
3470
3471
|
]),
|
|
3471
3472
|
_: 1
|
|
3472
3473
|
}),
|
|
3473
|
-
r(
|
|
3474
|
+
r(N, { trigger: "hover" }, {
|
|
3474
3475
|
trigger: l(() => [
|
|
3475
3476
|
r(m, { onClick: e.init }, {
|
|
3476
3477
|
icon: l(() => [
|
|
@@ -3527,7 +3528,7 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3527
3528
|
IconWeatherSunny: Oo,
|
|
3528
3529
|
IconWeatherMoon: To,
|
|
3529
3530
|
IconGridDots: St,
|
|
3530
|
-
IconDismiss:
|
|
3531
|
+
IconDismiss: _e,
|
|
3531
3532
|
IconNavigation: Ao,
|
|
3532
3533
|
IconUser: At
|
|
3533
3534
|
},
|
|
@@ -3555,69 +3556,69 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3555
3556
|
}
|
|
3556
3557
|
},
|
|
3557
3558
|
setup(e) {
|
|
3558
|
-
const { t: o } = $e(), a = io(), s = je(), n = ze(), d = C(
|
|
3559
|
+
const { t: o } = $e(), a = io(), s = je(), n = ze(), d = C(_.platformUrl), i = C(!1);
|
|
3559
3560
|
C(void 0), C(10);
|
|
3560
|
-
const c = C(
|
|
3561
|
-
fo(
|
|
3562
|
-
}, f = (
|
|
3563
|
-
|
|
3564
|
-
}, g = (
|
|
3561
|
+
const c = C(_.platformMenu), m = (w) => {
|
|
3562
|
+
fo(w), ye("theme", w, 0);
|
|
3563
|
+
}, f = (w) => {
|
|
3564
|
+
w.indexOf("/iot/home") > -1 && (w = "/iot/home/all"), w.indexOf("/iot/timeline") > -1 && (w = "/iot/timeline/all"), d.value = w, yo();
|
|
3565
|
+
}, g = (w) => {
|
|
3565
3566
|
var t;
|
|
3566
|
-
if (!
|
|
3567
|
-
if (
|
|
3567
|
+
if (!w.disabled) {
|
|
3568
|
+
if (w.children && (t = w.children[0]) != null && t.disabled)
|
|
3568
3569
|
return;
|
|
3569
|
-
f(
|
|
3570
|
+
f(w.key), s.push(w.key);
|
|
3570
3571
|
}
|
|
3571
|
-
}, v = (
|
|
3572
|
-
if (!
|
|
3573
|
-
if (
|
|
3572
|
+
}, v = (w) => {
|
|
3573
|
+
if (!w.disabled) {
|
|
3574
|
+
if (w.children)
|
|
3574
3575
|
return;
|
|
3575
|
-
f(
|
|
3576
|
+
f(w.key), s.push(w.key), i.value = !1;
|
|
3576
3577
|
}
|
|
3577
|
-
}, y = (
|
|
3578
|
+
}, y = (w) => H(
|
|
3578
3579
|
"div",
|
|
3579
3580
|
{
|
|
3580
|
-
onClick: () => g(
|
|
3581
|
+
onClick: () => g(w)
|
|
3581
3582
|
},
|
|
3582
3583
|
{
|
|
3583
|
-
default: () => typeof
|
|
3584
|
+
default: () => typeof w.label == "function" ? w.label() : w.label
|
|
3584
3585
|
}
|
|
3585
|
-
),
|
|
3586
|
+
), N = (w) => H(
|
|
3586
3587
|
"div",
|
|
3587
3588
|
{
|
|
3588
|
-
onClick: () => v(
|
|
3589
|
+
onClick: () => v(w)
|
|
3589
3590
|
},
|
|
3590
3591
|
{
|
|
3591
|
-
default: () => typeof
|
|
3592
|
+
default: () => typeof w.label == "function" ? w.label() : w.label
|
|
3592
3593
|
}
|
|
3593
|
-
), I = (
|
|
3594
|
+
), I = (w) => w.icon ? H(
|
|
3594
3595
|
fe,
|
|
3595
3596
|
{
|
|
3596
3597
|
size: 24,
|
|
3597
|
-
onClick: () => g(
|
|
3598
|
+
onClick: () => g(w)
|
|
3598
3599
|
},
|
|
3599
3600
|
{
|
|
3600
|
-
default: () =>
|
|
3601
|
+
default: () => w.icon && w.icon()
|
|
3601
3602
|
}
|
|
3602
|
-
) : !1, T = (
|
|
3603
|
-
s.replace(
|
|
3603
|
+
) : !1, T = (w) => {
|
|
3604
|
+
s.replace(w);
|
|
3604
3605
|
}, $ = () => {
|
|
3605
3606
|
i.value = !1;
|
|
3606
3607
|
}, B = () => {
|
|
3607
|
-
const
|
|
3608
|
+
const w = [
|
|
3608
3609
|
{
|
|
3609
|
-
label:
|
|
3610
|
+
label: k.tenantName,
|
|
3610
3611
|
key: "tenantName"
|
|
3611
3612
|
},
|
|
3612
3613
|
{
|
|
3613
|
-
label: `${o("Common.dropdownMenu.theme")} ${
|
|
3614
|
+
label: `${o("Common.dropdownMenu.theme")} ${_.theme ? o("Common.dropdownMenu.light") : o("Common.dropdownMenu.dark")}`,
|
|
3614
3615
|
key: "theme"
|
|
3615
3616
|
}
|
|
3616
3617
|
];
|
|
3617
|
-
return
|
|
3618
|
-
label: `${o("Common.dropdownMenu.language")} ${
|
|
3618
|
+
return _.language && w.push({
|
|
3619
|
+
label: `${o("Common.dropdownMenu.language")} ${_.lang === "zh-CN" ? "EN" : "中文"}`,
|
|
3619
3620
|
key: "language"
|
|
3620
|
-
}),
|
|
3621
|
+
}), w.push({
|
|
3621
3622
|
label: o("Common.dropdownMenu.software"),
|
|
3622
3623
|
key: "app",
|
|
3623
3624
|
children: [
|
|
@@ -3646,10 +3647,10 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3646
3647
|
key: "dashboard_Prt"
|
|
3647
3648
|
}
|
|
3648
3649
|
]
|
|
3649
|
-
}), e.report &&
|
|
3650
|
+
}), e.report && w.push({
|
|
3650
3651
|
label: o("Common.dropdownMenu.report"),
|
|
3651
3652
|
key: "report"
|
|
3652
|
-
}),
|
|
3653
|
+
}), w.push(
|
|
3653
3654
|
{
|
|
3654
3655
|
label: o("Common.dropdownMenu.info"),
|
|
3655
3656
|
key: "info"
|
|
@@ -3658,19 +3659,19 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3658
3659
|
label: o("Common.dropdownMenu.logout"),
|
|
3659
3660
|
key: "logout"
|
|
3660
3661
|
}
|
|
3661
|
-
),
|
|
3662
|
-
}, j = async (
|
|
3663
|
-
|
|
3662
|
+
), w;
|
|
3663
|
+
}, j = async (w) => {
|
|
3664
|
+
w === "logout" && (window.__TAURI__ ? window.location.href = "http://localhost:1420/clear" : qt()), w === "theme" && m(!_.theme), w === "language" && Xe(), w === "info" && s.push("/custom/my"), w === "report" && s.push("/custom/report"), w === "android" && window.open("http://miiot.partexiot.cn/dk7u"), w === "ios" && window.open("https://apps.apple.com/cn/app/id1587313547"), w === "chrome" && window.open(
|
|
3664
3665
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"
|
|
3665
|
-
),
|
|
3666
|
+
), w === "edge" && window.open(
|
|
3666
3667
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"
|
|
3667
|
-
),
|
|
3668
|
+
), w === "dashboard_IoT" && window.open(
|
|
3668
3669
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"
|
|
3669
|
-
),
|
|
3670
|
+
), w === "dashboard_Prt" && window.open(
|
|
3670
3671
|
"http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip"
|
|
3671
3672
|
);
|
|
3672
3673
|
}, O = () => {
|
|
3673
|
-
|
|
3674
|
+
wr().then(() => {
|
|
3674
3675
|
n.success({
|
|
3675
3676
|
content: "续订请求已发送,七个工作日内将会有专人联系",
|
|
3676
3677
|
duration: 3e3
|
|
@@ -3682,9 +3683,9 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3682
3683
|
});
|
|
3683
3684
|
});
|
|
3684
3685
|
}, V = () => {
|
|
3685
|
-
if (
|
|
3686
|
-
const
|
|
3687
|
-
|
|
3686
|
+
if (k.tenantStatus === 0 && k.renewalStatus === 0) {
|
|
3687
|
+
const w = document.getElementById("app");
|
|
3688
|
+
w && w.classList.add("outrange"), n.info({
|
|
3688
3689
|
action: () => H(
|
|
3689
3690
|
be,
|
|
3690
3691
|
{
|
|
@@ -3707,14 +3708,14 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3707
3708
|
),
|
|
3708
3709
|
closable: !1,
|
|
3709
3710
|
content: `您的订阅已于${Ae(
|
|
3710
|
-
|
|
3711
|
+
k.endTime
|
|
3711
3712
|
)}到期,如需继续使用请联系我们`,
|
|
3712
3713
|
title: "到期提示"
|
|
3713
3714
|
});
|
|
3714
3715
|
}
|
|
3715
|
-
if (
|
|
3716
|
-
let
|
|
3717
|
-
|
|
3716
|
+
if (k.tenantStatus === 2 && k.renewalStatus === 0) {
|
|
3717
|
+
let w = `您的订阅即将于${Ae(
|
|
3718
|
+
k.endTime
|
|
3718
3719
|
)}到期,请联系管理员进行续订`, t = [
|
|
3719
3720
|
H(
|
|
3720
3721
|
te,
|
|
@@ -3729,8 +3730,8 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3729
3730
|
}
|
|
3730
3731
|
)
|
|
3731
3732
|
];
|
|
3732
|
-
|
|
3733
|
-
|
|
3733
|
+
k.kind === 99 && (w = `您的订阅即将于${Ae(
|
|
3734
|
+
k.endTime
|
|
3734
3735
|
)}到期,为保证持续有效的提供服务请立即续订`, t = [
|
|
3735
3736
|
H(
|
|
3736
3737
|
te,
|
|
@@ -3767,37 +3768,37 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3767
3768
|
}
|
|
3768
3769
|
),
|
|
3769
3770
|
closable: !1,
|
|
3770
|
-
content:
|
|
3771
|
+
content: w,
|
|
3771
3772
|
title: "温馨提示"
|
|
3772
3773
|
});
|
|
3773
3774
|
}
|
|
3774
3775
|
}, F = () => {
|
|
3775
|
-
s.push(
|
|
3776
|
+
s.push(_.platformUrl);
|
|
3776
3777
|
};
|
|
3777
3778
|
"backdropFilter" in document.documentElement.style || "WebkitBackdropFilter" in document.documentElement.style || document.body.classList.add("not-support-backdrop");
|
|
3778
3779
|
const S = () => {
|
|
3779
|
-
if (
|
|
3780
|
-
const
|
|
3781
|
-
|
|
3780
|
+
if (k.tenantStatus === 0) {
|
|
3781
|
+
const w = document.body;
|
|
3782
|
+
w && w.classList.add("outrange");
|
|
3782
3783
|
}
|
|
3783
3784
|
};
|
|
3784
3785
|
return Ie(() => {
|
|
3785
3786
|
V(), f(a.path), S();
|
|
3786
|
-
}),
|
|
3787
|
+
}), ve(
|
|
3787
3788
|
() => a.path,
|
|
3788
|
-
(
|
|
3789
|
-
f(
|
|
3789
|
+
(w) => {
|
|
3790
|
+
f(w), S();
|
|
3790
3791
|
}
|
|
3791
3792
|
), {
|
|
3792
|
-
userStore:
|
|
3793
|
-
commonStore:
|
|
3793
|
+
userStore: k,
|
|
3794
|
+
commonStore: _,
|
|
3794
3795
|
activeMenu: d,
|
|
3795
3796
|
platformOption: c,
|
|
3796
3797
|
showMenu: i,
|
|
3797
3798
|
fnSetLang: Xe,
|
|
3798
3799
|
setDropdownMenu: B,
|
|
3799
3800
|
renderMenuLabel: y,
|
|
3800
|
-
renderMenuLabel2:
|
|
3801
|
+
renderMenuLabel2: N,
|
|
3801
3802
|
renderMenuIcon: I,
|
|
3802
3803
|
indexClick: F,
|
|
3803
3804
|
platformClick: T,
|
|
@@ -3808,7 +3809,7 @@ const Mr = /* @__PURE__ */ L(Dr, [["render", Ar]]), Br = X({
|
|
|
3808
3809
|
}
|
|
3809
3810
|
}), Vr = { class: "oc-header" }, Fr = { class: "menu" };
|
|
3810
3811
|
function Rr(e, o, a, s, n, d) {
|
|
3811
|
-
const i = u("IconGridDots"), c = u("NIcon"), m = u("NButton"), f = u("NDropdown"), g = u("IconNavigation"), v = u("NMenu"), y = u("Pop"),
|
|
3812
|
+
const i = u("IconGridDots"), c = u("NIcon"), m = u("NButton"), f = u("NDropdown"), g = u("IconNavigation"), v = u("NMenu"), y = u("Pop"), N = u("Message"), I = u("IconWeatherMoon"), T = u("IconWeatherSunny"), $ = u("IconUser"), B = u("NDrawerContent"), j = u("NDrawer");
|
|
3812
3813
|
return p(), z("header", Vr, [
|
|
3813
3814
|
e.platformOption.length > 1 && e.platformShow ? (p(), P(f, {
|
|
3814
3815
|
key: 0,
|
|
@@ -3868,7 +3869,7 @@ function Rr(e, o, a, s, n, d) {
|
|
|
3868
3869
|
class: "oc-header-menu"
|
|
3869
3870
|
}, null, 8, ["value", "options", "render-icon", "render-label"])),
|
|
3870
3871
|
e.download && !e.commonStore.isPad ? (p(), P(y, { key: 2 })) : A("", !0),
|
|
3871
|
-
e.message && !e.commonStore.isPad ? (p(), P(
|
|
3872
|
+
e.message && !e.commonStore.isPad ? (p(), P(N, { key: 3 })) : A("", !0),
|
|
3872
3873
|
e.commonStore.isPad ? A("", !0) : (p(), P(m, {
|
|
3873
3874
|
key: 4,
|
|
3874
3875
|
style: { "margin-left": "15px" },
|
|
@@ -3968,7 +3969,7 @@ function Rr(e, o, a, s, n, d) {
|
|
|
3968
3969
|
const Lr = /* @__PURE__ */ L(Br, [["render", Rr]]), Ur = X({
|
|
3969
3970
|
name: "OcImporter",
|
|
3970
3971
|
components: {
|
|
3971
|
-
IconDismiss:
|
|
3972
|
+
IconDismiss: _e,
|
|
3972
3973
|
IconArrowClockwise: Qe,
|
|
3973
3974
|
IconMailInboxAdd: po,
|
|
3974
3975
|
IconCloudArrowDown: zo,
|
|
@@ -4076,9 +4077,9 @@ const Lr = /* @__PURE__ */ L(Br, [["render", Rr]]), Ur = X({
|
|
|
4076
4077
|
]), m = C([]), f = () => {
|
|
4077
4078
|
o("update:show", !1);
|
|
4078
4079
|
}, g = (T) => {
|
|
4079
|
-
i.value.page = T,
|
|
4080
|
+
i.value.page = T, N();
|
|
4080
4081
|
}, v = (T) => {
|
|
4081
|
-
i.value.pageSize = T, i.value.page = 1,
|
|
4082
|
+
i.value.pageSize = T, i.value.page = 1, N();
|
|
4082
4083
|
}, y = (T) => new Promise(($, B) => {
|
|
4083
4084
|
T.file.file && Ft({
|
|
4084
4085
|
jobType: "IMPORT",
|
|
@@ -4086,11 +4087,11 @@ const Lr = /* @__PURE__ */ L(Br, [["render", Rr]]), Ur = X({
|
|
|
4086
4087
|
jobParams: e.data.params,
|
|
4087
4088
|
file: T.file.file
|
|
4088
4089
|
}).then(() => {
|
|
4089
|
-
|
|
4090
|
+
N(), $();
|
|
4090
4091
|
}).catch(() => {
|
|
4091
|
-
|
|
4092
|
+
N(), B();
|
|
4092
4093
|
}), B();
|
|
4093
|
-
}),
|
|
4094
|
+
}), N = () => {
|
|
4094
4095
|
d.value = !0, Rt({
|
|
4095
4096
|
jobType: "IMPORT",
|
|
4096
4097
|
jobTypeName: e.data.type,
|
|
@@ -4111,14 +4112,14 @@ const Lr = /* @__PURE__ */ L(Br, [["render", Rr]]), Ur = X({
|
|
|
4111
4112
|
});
|
|
4112
4113
|
}) : window.open(`${e.data.file}?v=${Date.now()}`);
|
|
4113
4114
|
};
|
|
4114
|
-
return
|
|
4115
|
+
return ve(
|
|
4115
4116
|
() => e.show,
|
|
4116
4117
|
(T) => {
|
|
4117
4118
|
n.value = T, T && (i.value = {
|
|
4118
4119
|
page: 1,
|
|
4119
4120
|
pageCount: 1,
|
|
4120
4121
|
pageSize: 30
|
|
4121
|
-
},
|
|
4122
|
+
}, N());
|
|
4122
4123
|
}
|
|
4123
4124
|
), {
|
|
4124
4125
|
modal: n,
|
|
@@ -4126,7 +4127,7 @@ const Lr = /* @__PURE__ */ L(Br, [["render", Rr]]), Ur = X({
|
|
|
4126
4127
|
coldata: m,
|
|
4127
4128
|
query: i,
|
|
4128
4129
|
loading: d,
|
|
4129
|
-
init:
|
|
4130
|
+
init: N,
|
|
4130
4131
|
closeModel: f,
|
|
4131
4132
|
pageChange: g,
|
|
4132
4133
|
pageSizeChange: v,
|
|
@@ -4134,9 +4135,9 @@ const Lr = /* @__PURE__ */ L(Br, [["render", Rr]]), Ur = X({
|
|
|
4134
4135
|
downloadFile: I
|
|
4135
4136
|
};
|
|
4136
4137
|
}
|
|
4137
|
-
}),
|
|
4138
|
-
function
|
|
4139
|
-
const i = u("IconMailInboxAdd"), c = u("NIcon"), m = u("NButton"), f = u("NUpload"), g = u("IconCloudArrowDown"), v = u("IconArrowClockwise"), y = u("NTooltip"),
|
|
4138
|
+
}), _r = { class: "oc-header-download" };
|
|
4139
|
+
function qr(e, o, a, s, n, d) {
|
|
4140
|
+
const i = u("IconMailInboxAdd"), c = u("NIcon"), m = u("NButton"), f = u("NUpload"), g = u("IconCloudArrowDown"), v = u("IconArrowClockwise"), y = u("NTooltip"), N = u("IconDismiss"), I = u("NFlex"), T = u("NDataTable"), $ = u("NCard"), B = u("NModal");
|
|
4140
4141
|
return p(), P(B, {
|
|
4141
4142
|
show: e.modal,
|
|
4142
4143
|
"onUpdate:show": o[0] || (o[0] = (j) => e.modal = j),
|
|
@@ -4146,7 +4147,7 @@ function _r(e, o, a, s, n, d) {
|
|
|
4146
4147
|
r($, { style: { width: "900px" } }, {
|
|
4147
4148
|
header: l(() => [
|
|
4148
4149
|
E(R(e.$t("Common.importer.title")) + " ", 1),
|
|
4149
|
-
h("span",
|
|
4150
|
+
h("span", _r, R(e.$t("Common.validDays")), 1)
|
|
4150
4151
|
]),
|
|
4151
4152
|
"header-extra": l(() => [
|
|
4152
4153
|
r(I, {
|
|
@@ -4221,7 +4222,7 @@ function _r(e, o, a, s, n, d) {
|
|
|
4221
4222
|
icon: l(() => [
|
|
4222
4223
|
r(c, null, {
|
|
4223
4224
|
default: l(() => [
|
|
4224
|
-
r(
|
|
4225
|
+
r(N)
|
|
4225
4226
|
]),
|
|
4226
4227
|
_: 1
|
|
4227
4228
|
})
|
|
@@ -4252,7 +4253,7 @@ function _r(e, o, a, s, n, d) {
|
|
|
4252
4253
|
_: 3
|
|
4253
4254
|
}, 8, ["show", "on-mask-click"]);
|
|
4254
4255
|
}
|
|
4255
|
-
const Et = /* @__PURE__ */ L(Ur, [["render",
|
|
4256
|
+
const Et = /* @__PURE__ */ L(Ur, [["render", qr]]), Er = X({
|
|
4256
4257
|
name: "OcLogin",
|
|
4257
4258
|
components: {
|
|
4258
4259
|
NTabs: ca,
|
|
@@ -4262,7 +4263,7 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4262
4263
|
NDropdown: ht,
|
|
4263
4264
|
NInput: Ye,
|
|
4264
4265
|
NButton: te,
|
|
4265
|
-
NGrid:
|
|
4266
|
+
NGrid: qe,
|
|
4266
4267
|
NGi: so,
|
|
4267
4268
|
NIcon: fe,
|
|
4268
4269
|
NPopover: De,
|
|
@@ -4292,7 +4293,7 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4292
4293
|
phone: "",
|
|
4293
4294
|
name: "",
|
|
4294
4295
|
password: ""
|
|
4295
|
-
}),
|
|
4296
|
+
}), N = C({
|
|
4296
4297
|
name: {
|
|
4297
4298
|
required: !0,
|
|
4298
4299
|
// validator: (rule: string, value: string) => {
|
|
@@ -4309,7 +4310,7 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4309
4310
|
},
|
|
4310
4311
|
phone: {
|
|
4311
4312
|
required: !0,
|
|
4312
|
-
validator: (
|
|
4313
|
+
validator: (q, U) => U ? /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(U) : !1,
|
|
4313
4314
|
message: () => e("Common.login.mobileMessage"),
|
|
4314
4315
|
trigger: "blur"
|
|
4315
4316
|
},
|
|
@@ -4319,27 +4320,27 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4319
4320
|
trigger: "input"
|
|
4320
4321
|
}
|
|
4321
4322
|
}), I = C([]), T = C([]), $ = C([]), B = C([]), j = () => {
|
|
4322
|
-
const
|
|
4323
|
-
Object.keys(
|
|
4323
|
+
const q = pe("loginOption", {}), U = [];
|
|
4324
|
+
Object.keys(q).forEach((J) => {
|
|
4324
4325
|
U.push({
|
|
4325
4326
|
label: J,
|
|
4326
4327
|
key: J
|
|
4327
4328
|
});
|
|
4328
4329
|
}), I.value = U, T.value = U;
|
|
4329
4330
|
}, O = () => {
|
|
4330
|
-
const
|
|
4331
|
-
Object.keys(
|
|
4331
|
+
const q = pe("phoneOption", {}), U = [];
|
|
4332
|
+
Object.keys(q).forEach((J) => {
|
|
4332
4333
|
U.push({
|
|
4333
4334
|
label: J,
|
|
4334
4335
|
key: J
|
|
4335
4336
|
});
|
|
4336
4337
|
}), $.value = U, B.value = U;
|
|
4337
|
-
}, V = (
|
|
4338
|
-
ye("token",
|
|
4338
|
+
}, V = (q) => {
|
|
4339
|
+
ye("token", q, 0), _o().then((U) => {
|
|
4339
4340
|
o.success({
|
|
4340
4341
|
content: () => e("Notice.success"),
|
|
4341
4342
|
duration: 3e3
|
|
4342
|
-
}), U.kind !== 1 && a.replace(
|
|
4343
|
+
}), U.kind !== 1 && a.replace(_.platformUrl);
|
|
4343
4344
|
}).catch(() => {
|
|
4344
4345
|
o.error({
|
|
4345
4346
|
content: () => e("Notice.error"),
|
|
@@ -4347,8 +4348,8 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4347
4348
|
}), y.value.password = "", f.value = !1;
|
|
4348
4349
|
});
|
|
4349
4350
|
}, F = () => {
|
|
4350
|
-
var
|
|
4351
|
-
f.value || (f.value = !0, s.value === "0" ? (
|
|
4351
|
+
var q, U;
|
|
4352
|
+
f.value || (f.value = !0, s.value === "0" ? (q = d.value) == null || q.validate((J) => {
|
|
4352
4353
|
J ? f.value = !1 : rt({
|
|
4353
4354
|
type: s.value,
|
|
4354
4355
|
...y.value
|
|
@@ -4369,44 +4370,44 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4369
4370
|
y.value.password = "", f.value = !1;
|
|
4370
4371
|
});
|
|
4371
4372
|
}));
|
|
4372
|
-
}, S = (
|
|
4373
|
-
y.value.name =
|
|
4373
|
+
}, S = (q) => {
|
|
4374
|
+
y.value.name = q;
|
|
4374
4375
|
const U = T.value.filter(
|
|
4375
|
-
(J) => J.label.indexOf(
|
|
4376
|
+
(J) => J.label.indexOf(q) > -1
|
|
4376
4377
|
);
|
|
4377
4378
|
I.value = U, U.length === 0 ? v.value = !1 : v.value = !0;
|
|
4378
|
-
},
|
|
4379
|
-
y.value.name =
|
|
4379
|
+
}, w = (q) => {
|
|
4380
|
+
y.value.name = q, v.value = !1, i.value.focus(), setTimeout(() => {
|
|
4380
4381
|
var U;
|
|
4381
4382
|
(U = d.value) == null || U.restoreValidation();
|
|
4382
4383
|
}, 80);
|
|
4383
|
-
}, t = (
|
|
4384
|
+
}, t = (q) => {
|
|
4384
4385
|
var U;
|
|
4385
|
-
I.value.length === 0 ? v.value = !1 : v.value =
|
|
4386
|
-
}, D = (
|
|
4387
|
-
y.value.phone =
|
|
4386
|
+
I.value.length === 0 ? v.value = !1 : v.value = q, (U = d.value) == null || U.restoreValidation();
|
|
4387
|
+
}, D = (q) => {
|
|
4388
|
+
y.value.phone = q;
|
|
4388
4389
|
const U = B.value.filter(
|
|
4389
|
-
(J) => J.label.indexOf(
|
|
4390
|
+
(J) => J.label.indexOf(q) > -1
|
|
4390
4391
|
);
|
|
4391
4392
|
$.value = U, U.length === 0 ? g.value = !1 : g.value = !0;
|
|
4392
|
-
}, G = (
|
|
4393
|
-
y.value.phone =
|
|
4393
|
+
}, G = (q) => {
|
|
4394
|
+
y.value.phone = q, g.value = !1, c.value.focus(), setTimeout(() => {
|
|
4394
4395
|
var U;
|
|
4395
4396
|
(U = n.value) == null || U.restoreValidation();
|
|
4396
4397
|
}, 80);
|
|
4397
|
-
}, ae = (
|
|
4398
|
+
}, ae = (q) => {
|
|
4398
4399
|
var U;
|
|
4399
|
-
$.value.length === 0 ? g.value = !1 : g.value =
|
|
4400
|
-
}, M = (
|
|
4401
|
-
m.value =
|
|
4402
|
-
}, Q = (
|
|
4400
|
+
$.value.length === 0 ? g.value = !1 : g.value = q, (U = n.value) == null || U.restoreValidation();
|
|
4401
|
+
}, M = (q) => {
|
|
4402
|
+
m.value = q, fo(q), ye("theme", q, 0);
|
|
4403
|
+
}, Q = (q) => {
|
|
4403
4404
|
var U, J;
|
|
4404
|
-
s.value =
|
|
4405
|
+
s.value = q, y.value = {
|
|
4405
4406
|
phone: "",
|
|
4406
4407
|
name: "",
|
|
4407
4408
|
password: ""
|
|
4408
|
-
}, ye("loginTab",
|
|
4409
|
-
}, Ce = (
|
|
4409
|
+
}, ye("loginTab", q, 0), (U = d.value) == null || U.restoreValidation(), (J = n.value) == null || J.restoreValidation();
|
|
4410
|
+
}, Ce = (q) => H(
|
|
4410
4411
|
"div",
|
|
4411
4412
|
{
|
|
4412
4413
|
style: {
|
|
@@ -4419,19 +4420,19 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4419
4420
|
"div",
|
|
4420
4421
|
{},
|
|
4421
4422
|
{
|
|
4422
|
-
default: () =>
|
|
4423
|
+
default: () => q.label
|
|
4423
4424
|
}
|
|
4424
4425
|
),
|
|
4425
4426
|
H(
|
|
4426
|
-
|
|
4427
|
+
_e,
|
|
4427
4428
|
{
|
|
4428
4429
|
class: "oc-login-drop-menu",
|
|
4429
4430
|
onclick: (U) => {
|
|
4430
4431
|
U.stopPropagation(), U.stopImmediatePropagation();
|
|
4431
4432
|
const J = pe("loginOption", {});
|
|
4432
|
-
delete J[
|
|
4433
|
+
delete J[q.label], ye("loginOption", J, 0), j();
|
|
4433
4434
|
const ge = y.value.name, ne = T.value.filter(
|
|
4434
|
-
(
|
|
4435
|
+
(b) => b.label.indexOf(ge) > -1
|
|
4435
4436
|
);
|
|
4436
4437
|
I.value = ne;
|
|
4437
4438
|
}
|
|
@@ -4442,7 +4443,7 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4442
4443
|
)
|
|
4443
4444
|
]
|
|
4444
4445
|
}
|
|
4445
|
-
), he = (
|
|
4446
|
+
), he = (q) => H(
|
|
4446
4447
|
"div",
|
|
4447
4448
|
{
|
|
4448
4449
|
style: {
|
|
@@ -4455,19 +4456,19 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4455
4456
|
"div",
|
|
4456
4457
|
{},
|
|
4457
4458
|
{
|
|
4458
|
-
default: () =>
|
|
4459
|
+
default: () => q.label
|
|
4459
4460
|
}
|
|
4460
4461
|
),
|
|
4461
4462
|
H(
|
|
4462
|
-
|
|
4463
|
+
_e,
|
|
4463
4464
|
{
|
|
4464
4465
|
class: "oc-login-drop-menu",
|
|
4465
4466
|
onclick: (U) => {
|
|
4466
4467
|
U.stopPropagation(), U.stopImmediatePropagation();
|
|
4467
4468
|
const J = pe("phoneOption", {});
|
|
4468
|
-
delete J[
|
|
4469
|
+
delete J[q.label], ye("phoneOption", J, 0), O();
|
|
4469
4470
|
const ge = y.value.name, ne = B.value.filter(
|
|
4470
|
-
(
|
|
4471
|
+
(b) => b.label.indexOf(ge) > -1
|
|
4471
4472
|
);
|
|
4472
4473
|
$.value = ne;
|
|
4473
4474
|
}
|
|
@@ -4479,15 +4480,15 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4479
4480
|
]
|
|
4480
4481
|
}
|
|
4481
4482
|
);
|
|
4482
|
-
return
|
|
4483
|
+
return qo(), Ze("token"), j(), O(), {
|
|
4483
4484
|
tabs: s,
|
|
4484
|
-
commonStore:
|
|
4485
|
+
commonStore: _,
|
|
4485
4486
|
pwdRef: i,
|
|
4486
4487
|
pwdPhoneRef: c,
|
|
4487
4488
|
formRef: d,
|
|
4488
4489
|
formPhoneRef: n,
|
|
4489
4490
|
formValue: y,
|
|
4490
|
-
formRules:
|
|
4491
|
+
formRules: N,
|
|
4491
4492
|
showPhoneDropdown: g,
|
|
4492
4493
|
showNameDropdown: v,
|
|
4493
4494
|
optionsName: I,
|
|
@@ -4500,7 +4501,7 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4500
4501
|
phoneChange: D,
|
|
4501
4502
|
changeTheme: M,
|
|
4502
4503
|
fnSetLang: Xe,
|
|
4503
|
-
dropNameSelect:
|
|
4504
|
+
dropNameSelect: w,
|
|
4504
4505
|
dropPhoneSelect: G,
|
|
4505
4506
|
showDropdownNameChange: t,
|
|
4506
4507
|
showDropdownPhoneChange: ae,
|
|
@@ -4510,7 +4511,7 @@ const Et = /* @__PURE__ */ L(Ur, [["render", _r]]), Er = X({
|
|
|
4510
4511
|
}
|
|
4511
4512
|
}), jr = { class: "oc-login" }, Hr = { class: "oc-login-right" }, Gr = { class: "oc-login-language" }, Jr = { class: "oc-login-platform" }, Wr = { class: "oc-login-form" }, Kr = { class: "oc-login-submit" }, Qr = ["href"], Xr = { class: "oc-login-footer" };
|
|
4512
4513
|
function Yr(e, o, a, s, n, d) {
|
|
4513
|
-
const i = u("IconWeatherMoon"), c = u("NIcon"), m = u("IconWeatherSunny"), f = u("NButton"), g = u("NInput"), v = u("NDropdown"), y = u("NFormItem"),
|
|
4514
|
+
const i = u("IconWeatherMoon"), c = u("NIcon"), m = u("IconWeatherSunny"), f = u("NButton"), g = u("NInput"), v = u("NDropdown"), y = u("NFormItem"), N = u("NForm"), I = u("NTabPane"), T = u("NTabs"), $ = u("NPopover"), B = u("NGi"), j = u("NGrid");
|
|
4514
4515
|
return p(), z("div", jr, [
|
|
4515
4516
|
h("div", {
|
|
4516
4517
|
class: "oc-login-left",
|
|
@@ -4574,7 +4575,7 @@ function Yr(e, o, a, s, n, d) {
|
|
|
4574
4575
|
}, {
|
|
4575
4576
|
default: l(() => [
|
|
4576
4577
|
o[14] || (o[14] = h("br", null, null, -1)),
|
|
4577
|
-
r(
|
|
4578
|
+
r(N, {
|
|
4578
4579
|
ref: "formPhoneRef",
|
|
4579
4580
|
model: e.formValue,
|
|
4580
4581
|
rules: e.formRules,
|
|
@@ -4642,7 +4643,7 @@ function Yr(e, o, a, s, n, d) {
|
|
|
4642
4643
|
}, {
|
|
4643
4644
|
default: l(() => [
|
|
4644
4645
|
o[15] || (o[15] = h("br", null, null, -1)),
|
|
4645
|
-
r(
|
|
4646
|
+
r(N, {
|
|
4646
4647
|
ref: "formRef",
|
|
4647
4648
|
model: e.formValue,
|
|
4648
4649
|
rules: e.formRules,
|
|
@@ -4817,8 +4818,8 @@ const Zr = /* @__PURE__ */ L(Er, [["render", Yr]]), xr = X({
|
|
|
4817
4818
|
const o = C(!1), a = C(0), s = (c) => 1 - Math.pow(1 - c, 5), n = (c) => e.format ? e.format(c) : c;
|
|
4818
4819
|
function d(c, m, f = e.duration) {
|
|
4819
4820
|
const g = () => {
|
|
4820
|
-
const y = performance.now(),
|
|
4821
|
-
if (
|
|
4821
|
+
const y = performance.now(), N = Math.min(y - v, f), I = c + (m - c) * s(N / f);
|
|
4822
|
+
if (N === f) {
|
|
4822
4823
|
a.value = n(Number(e.value)), o.value = !1;
|
|
4823
4824
|
return;
|
|
4824
4825
|
}
|
|
@@ -4830,7 +4831,7 @@ const Zr = /* @__PURE__ */ L(Er, [["render", Yr]]), xr = X({
|
|
|
4830
4831
|
const i = (c = 0, m = e.value) => {
|
|
4831
4832
|
o.value = !0, a.value = n(c), String(c) !== String(m) && d(c, Number(m));
|
|
4832
4833
|
};
|
|
4833
|
-
return
|
|
4834
|
+
return ve(
|
|
4834
4835
|
() => e.value,
|
|
4835
4836
|
(c, m) => {
|
|
4836
4837
|
i(Number(m) || 0, Number(c));
|
|
@@ -4848,7 +4849,7 @@ function es(e, o, a, s, n, d) {
|
|
|
4848
4849
|
const jt = /* @__PURE__ */ L(xr, [["render", es]]), os = X({
|
|
4849
4850
|
name: "OcLogo",
|
|
4850
4851
|
components: {
|
|
4851
|
-
NGrid:
|
|
4852
|
+
NGrid: qe,
|
|
4852
4853
|
NGi: so,
|
|
4853
4854
|
NDivider: ft,
|
|
4854
4855
|
NumberRoll: jt
|
|
@@ -4969,7 +4970,7 @@ const ns = {
|
|
|
4969
4970
|
return {
|
|
4970
4971
|
zhCN: ga,
|
|
4971
4972
|
dateZhCN: ya,
|
|
4972
|
-
commonStore:
|
|
4973
|
+
commonStore: _,
|
|
4973
4974
|
lightTheme: ns,
|
|
4974
4975
|
darkTheme: ls
|
|
4975
4976
|
};
|
|
@@ -5009,7 +5010,7 @@ const is = /* @__PURE__ */ L(rs, [["render", ss]]), us = (e) => {
|
|
|
5009
5010
|
}, ds = (e) => me("api/auth/user/update", e), cs = X({
|
|
5010
5011
|
name: "OcMy",
|
|
5011
5012
|
components: {
|
|
5012
|
-
NGrid:
|
|
5013
|
+
NGrid: qe,
|
|
5013
5014
|
NGi: so,
|
|
5014
5015
|
NForm: ko,
|
|
5015
5016
|
NFormItem: Co,
|
|
@@ -5037,7 +5038,7 @@ const is = /* @__PURE__ */ L(rs, [["render", ss]]), us = (e) => {
|
|
|
5037
5038
|
message: () => e("Common.my.checkPasswordMessage"),
|
|
5038
5039
|
trigger: "blur"
|
|
5039
5040
|
}
|
|
5040
|
-
}), c = C(
|
|
5041
|
+
}), c = C(k), m = C({
|
|
5041
5042
|
// realName: {
|
|
5042
5043
|
// required: false,
|
|
5043
5044
|
// trigger: 'blur',
|
|
@@ -5076,12 +5077,12 @@ const is = /* @__PURE__ */ L(rs, [["render", ss]]), us = (e) => {
|
|
|
5076
5077
|
var v;
|
|
5077
5078
|
n.value || (n.value = !0, (v = a.value) == null || v.validate((y) => {
|
|
5078
5079
|
y ? n.value = !1 : us(d.value).then(() => {
|
|
5079
|
-
var
|
|
5080
|
+
var N;
|
|
5080
5081
|
d.value = {
|
|
5081
5082
|
oldPassword: "",
|
|
5082
5083
|
newPassword: "",
|
|
5083
5084
|
comfirmPassword: ""
|
|
5084
|
-
}, (
|
|
5085
|
+
}, (N = a.value) == null || N.restoreValidation(), o.success({
|
|
5085
5086
|
content: () => e("Notice.success"),
|
|
5086
5087
|
duration: 3e3
|
|
5087
5088
|
}), setTimeout(() => {
|
|
@@ -5099,7 +5100,7 @@ const is = /* @__PURE__ */ L(rs, [["render", ss]]), us = (e) => {
|
|
|
5099
5100
|
o.success({
|
|
5100
5101
|
content: () => e("Notice.success"),
|
|
5101
5102
|
duration: 3e3
|
|
5102
|
-
}), n.value = !1,
|
|
5103
|
+
}), n.value = !1, _o().catch(() => null);
|
|
5103
5104
|
}).catch(() => {
|
|
5104
5105
|
n.value = !1;
|
|
5105
5106
|
});
|
|
@@ -5305,8 +5306,8 @@ function bs(e, o, a, s, n, d) {
|
|
|
5305
5306
|
_: 1
|
|
5306
5307
|
});
|
|
5307
5308
|
}
|
|
5308
|
-
const
|
|
5309
|
-
function
|
|
5309
|
+
const ws = /* @__PURE__ */ L(cs, [["render", bs]]);
|
|
5310
|
+
function vs(e) {
|
|
5310
5311
|
return new Promise((o, a) => {
|
|
5311
5312
|
me("api/manager/factory-params/detail", { keyName: e }).then((s) => {
|
|
5312
5313
|
const n = JSON.parse(s.valueJson ?? "[]");
|
|
@@ -5321,7 +5322,7 @@ const ks = X({
|
|
|
5321
5322
|
components: {
|
|
5322
5323
|
NFlex: be,
|
|
5323
5324
|
NDataTable: Ee,
|
|
5324
|
-
NDatePicker:
|
|
5325
|
+
NDatePicker: vo,
|
|
5325
5326
|
NInputGroup: So,
|
|
5326
5327
|
NInputGroupLabel: yt
|
|
5327
5328
|
},
|
|
@@ -5390,7 +5391,7 @@ const ks = X({
|
|
|
5390
5391
|
});
|
|
5391
5392
|
});
|
|
5392
5393
|
}, c = (m) => m > Date.now();
|
|
5393
|
-
return
|
|
5394
|
+
return vs("individuation_report_download").then((m) => {
|
|
5394
5395
|
n.value = m.map((f) => ({
|
|
5395
5396
|
key: f.key,
|
|
5396
5397
|
name: f.name,
|
|
@@ -5488,16 +5489,16 @@ function Ai(e, o, a) {
|
|
|
5488
5489
|
try {
|
|
5489
5490
|
let V;
|
|
5490
5491
|
if (Array.isArray(o))
|
|
5491
|
-
V = await new Promise((S,
|
|
5492
|
-
n.value =
|
|
5492
|
+
V = await new Promise((S, w) => {
|
|
5493
|
+
n.value = w, Promise.all(o.map((t) => t.call(null))).then((t) => {
|
|
5493
5494
|
S(t);
|
|
5494
5495
|
}).catch((t) => {
|
|
5495
|
-
|
|
5496
|
+
w(t);
|
|
5496
5497
|
});
|
|
5497
5498
|
});
|
|
5498
5499
|
else {
|
|
5499
|
-
const F = new Promise((S,
|
|
5500
|
-
n.value =
|
|
5500
|
+
const F = new Promise((S, w) => {
|
|
5501
|
+
n.value = w;
|
|
5501
5502
|
});
|
|
5502
5503
|
V = await Promise.race([F, o()]);
|
|
5503
5504
|
}
|
|
@@ -5508,7 +5509,7 @@ function Ai(e, o, a) {
|
|
|
5508
5509
|
}, v.value));
|
|
5509
5510
|
}
|
|
5510
5511
|
}
|
|
5511
|
-
}, { run:
|
|
5512
|
+
}, { run: N } = Ht(
|
|
5512
5513
|
y,
|
|
5513
5514
|
a != null && a.pollingInterval ? a.pollingInterval - 100 > 0 ? a.pollingInterval - 100 : 0 : 300
|
|
5514
5515
|
), I = (V) => {
|
|
@@ -5523,9 +5524,9 @@ function Ai(e, o, a) {
|
|
|
5523
5524
|
}, B = () => {
|
|
5524
5525
|
mr(), n.value && n.value();
|
|
5525
5526
|
}, j = () => {
|
|
5526
|
-
B(),
|
|
5527
|
+
B(), y(), a != null && a.pollingInterval && (O(), i.value = setInterval(
|
|
5527
5528
|
() => {
|
|
5528
|
-
|
|
5529
|
+
N();
|
|
5529
5530
|
},
|
|
5530
5531
|
a == null ? void 0 : a.pollingInterval
|
|
5531
5532
|
));
|
|
@@ -5539,9 +5540,9 @@ function Ai(e, o, a) {
|
|
|
5539
5540
|
} catch {
|
|
5540
5541
|
I(!1);
|
|
5541
5542
|
}
|
|
5542
|
-
return (a === void 0 || a.manual === void 0 || a.manual === !1) && y(), a != null && a.pollingInterval && (
|
|
5543
|
+
return (a === void 0 || a.manual === void 0 || a.manual === !1) && y(), a != null && a.pollingInterval && (y(), i.value = setInterval(
|
|
5543
5544
|
() => {
|
|
5544
|
-
|
|
5545
|
+
N();
|
|
5545
5546
|
},
|
|
5546
5547
|
a == null ? void 0 : a.pollingInterval
|
|
5547
5548
|
)), ro(() => {
|
|
@@ -5564,7 +5565,7 @@ const $s = X({
|
|
|
5564
5565
|
NCard: No,
|
|
5565
5566
|
NFlex: be,
|
|
5566
5567
|
NIcon: fe,
|
|
5567
|
-
IconDismiss:
|
|
5568
|
+
IconDismiss: _e
|
|
5568
5569
|
},
|
|
5569
5570
|
emits: ["on-update:value"],
|
|
5570
5571
|
setup(e, { emit: o }) {
|
|
@@ -5573,16 +5574,16 @@ const $s = X({
|
|
|
5573
5574
|
const v = (F, S) => {
|
|
5574
5575
|
f.beginPath(), f.moveTo(F.x, F.y), f.lineTo(S.x, S.y), f.lineWidth = 2, f.strokeStyle = "green", f.stroke();
|
|
5575
5576
|
}, y = () => {
|
|
5576
|
-
d.value && requestAnimationFrame(
|
|
5577
|
-
},
|
|
5577
|
+
d.value && requestAnimationFrame(N);
|
|
5578
|
+
}, N = () => {
|
|
5578
5579
|
if (g && g.readyState === g.HAVE_ENOUGH_DATA) {
|
|
5579
5580
|
g.width = c, g.height = m, f.drawImage(a.value, 0, 0, c, m);
|
|
5580
5581
|
const F = f.getImageData(0, 0, c, m);
|
|
5581
5582
|
try {
|
|
5582
5583
|
const S = Fa(F.data, c, m);
|
|
5583
5584
|
if (S) {
|
|
5584
|
-
const { location:
|
|
5585
|
-
v(
|
|
5585
|
+
const { location: w, data: t } = S;
|
|
5586
|
+
v(w.topLeftCorner, w.topRightCorner), v(w.topRightCorner, w.bottomRightCorner), v(w.bottomRightCorner, w.bottomLeftCorner), v(w.bottomLeftCorner, w.topLeftCorner), o("on-update:value", t), I();
|
|
5586
5587
|
}
|
|
5587
5588
|
} catch {
|
|
5588
5589
|
d.value = !1, i.error({
|
|
@@ -5740,7 +5741,7 @@ const Ds = /* @__PURE__ */ L($s, [["render", Is]]), zs = X({
|
|
|
5740
5741
|
};
|
|
5741
5742
|
return Ie(() => {
|
|
5742
5743
|
e.value && (a.value = e.value[0], s.value = e.value[1]);
|
|
5743
|
-
}),
|
|
5744
|
+
}), ve(() => e.value, (i) => {
|
|
5744
5745
|
i && (a.value = i[0], s.value = i[1]);
|
|
5745
5746
|
}), {
|
|
5746
5747
|
startTime: a,
|
|
@@ -5778,7 +5779,7 @@ const Ms = /* @__PURE__ */ L(zs, [["render", As]]), Bs = X({
|
|
|
5778
5779
|
components: {
|
|
5779
5780
|
NIcon: fe,
|
|
5780
5781
|
NButton: te,
|
|
5781
|
-
NGrid:
|
|
5782
|
+
NGrid: qe,
|
|
5782
5783
|
NGridItem: ba,
|
|
5783
5784
|
NInput: Ye,
|
|
5784
5785
|
NInputNumber: dt,
|
|
@@ -5787,8 +5788,8 @@ const Ms = /* @__PURE__ */ L(zs, [["render", As]]), Bs = X({
|
|
|
5787
5788
|
NPopover: De,
|
|
5788
5789
|
NDataTable: Ee,
|
|
5789
5790
|
NCascader: mt,
|
|
5790
|
-
NTreeSelect:
|
|
5791
|
-
NDatePicker:
|
|
5791
|
+
NTreeSelect: wa,
|
|
5792
|
+
NDatePicker: vo,
|
|
5792
5793
|
NInputGroup: So,
|
|
5793
5794
|
NInputGroupLabel: yt,
|
|
5794
5795
|
OcTimePickRange: Ms,
|
|
@@ -5817,9 +5818,9 @@ const Ms = /* @__PURE__ */ L(zs, [["render", As]]), Bs = X({
|
|
|
5817
5818
|
}) : () => ({
|
|
5818
5819
|
label: "匹配失败",
|
|
5819
5820
|
value: "匹配失败"
|
|
5820
|
-
}) : O.fallbackOption : !1,
|
|
5821
|
+
}) : O.fallbackOption : !1, N = (O, V, F) => {
|
|
5821
5822
|
const S = F.options.filter(
|
|
5822
|
-
(
|
|
5823
|
+
(w) => String(w.label).toLocaleLowerCase().indexOf(String(V).toLocaleLowerCase()) > -1
|
|
5823
5824
|
) || [];
|
|
5824
5825
|
f.value[O].options = S, S.length === 0 ? f.value[O].display = !1 : f.value[O].display = !0;
|
|
5825
5826
|
}, I = (O) => {
|
|
@@ -5837,8 +5838,8 @@ const Ms = /* @__PURE__ */ L(zs, [["render", As]]), Bs = X({
|
|
|
5837
5838
|
if (Object.keys(O).length > 0)
|
|
5838
5839
|
for (let D = 0; D <= F; D++)
|
|
5839
5840
|
(t = O[S[D]]) != null && t.show && (V = V + 1);
|
|
5840
|
-
let
|
|
5841
|
-
n.value && (
|
|
5841
|
+
let w = F - V >= 0 ? F - V - 1 : -1;
|
|
5842
|
+
n.value && (w = w - 1, V = V + 1), m.value = w, V > F ? c.value = !0 : c.value = !1, e.small && (i.value = !1, c.value = !1), d.value = O;
|
|
5842
5843
|
}, T = (O) => {
|
|
5843
5844
|
f.value[O].options.length === 0 ? f.value[O].display = !1 : f.value[O].display = !0;
|
|
5844
5845
|
}, $ = () => {
|
|
@@ -5863,7 +5864,7 @@ const Ms = /* @__PURE__ */ L(zs, [["render", As]]), Bs = X({
|
|
|
5863
5864
|
isSlotHeader: n,
|
|
5864
5865
|
showMore: $,
|
|
5865
5866
|
setValues: j,
|
|
5866
|
-
dropValueChange:
|
|
5867
|
+
dropValueChange: N,
|
|
5867
5868
|
dropDisplayToggle: T,
|
|
5868
5869
|
getDefaultDate: We,
|
|
5869
5870
|
selectFallback: y
|
|
@@ -5874,7 +5875,7 @@ const Ms = /* @__PURE__ */ L(zs, [["render", As]]), Bs = X({
|
|
|
5874
5875
|
class: "oc-search-action-more"
|
|
5875
5876
|
};
|
|
5876
5877
|
function Ls(e, o, a, s, n, d) {
|
|
5877
|
-
const i = u("NGridItem"), c = u("NInputGroupLabel"), m = u("NInput"), f = u("NInputNumber"), g = u("NSelect"), v = u("NDataTable"), y = u("NPopover"),
|
|
5878
|
+
const i = u("NGridItem"), c = u("NInputGroupLabel"), m = u("NInput"), f = u("NInputNumber"), g = u("NSelect"), v = u("NDataTable"), y = u("NPopover"), N = u("NCascader"), I = u("NTreeSelect"), T = u("OcTimePickRange"), $ = u("NDatePicker"), B = u("NInputGroup"), j = u("NGrid"), O = u("IconArrowDown"), V = u("NIcon"), F = u("IconArrowUp"), S = u("NButton"), w = u("NTooltip");
|
|
5878
5879
|
return p(), z("div", Vs, [
|
|
5879
5880
|
r(j, {
|
|
5880
5881
|
"x-gap": "15",
|
|
@@ -5973,7 +5974,7 @@ function Ls(e, o, a, s, n, d) {
|
|
|
5973
5974
|
"on-update:value": (M) => {
|
|
5974
5975
|
let Q = M, Ce = M;
|
|
5975
5976
|
if (t.multiple) {
|
|
5976
|
-
let he = M.filter((
|
|
5977
|
+
let he = M.filter((q) => q !== "");
|
|
5977
5978
|
he.length === 0 ? (Q = [""], Ce = []) : (Q = he, Ce = he);
|
|
5978
5979
|
}
|
|
5979
5980
|
t.updateValue ? t.updateValue(
|
|
@@ -6034,7 +6035,7 @@ function Ls(e, o, a, s, n, d) {
|
|
|
6034
6035
|
}),
|
|
6035
6036
|
_: 2
|
|
6036
6037
|
}, 1032, ["show", "on-clickoutside"])) : A("", !0),
|
|
6037
|
-
t.type === "cascader" ? (p(), P(
|
|
6038
|
+
t.type === "cascader" ? (p(), P(N, {
|
|
6038
6039
|
key: 4,
|
|
6039
6040
|
value: e.searchData[D],
|
|
6040
6041
|
"onUpdate:value": (M) => e.searchData[D] = M,
|
|
@@ -6116,7 +6117,7 @@ function Ls(e, o, a, s, n, d) {
|
|
|
6116
6117
|
}, 1024)) : A("", !0),
|
|
6117
6118
|
t.type === "group" ? (p(), P(B, { key: 1 }, {
|
|
6118
6119
|
default: l(() => {
|
|
6119
|
-
var ae, M, Q, Ce, he,
|
|
6120
|
+
var ae, M, Q, Ce, he, q, U, J, ge, ne, b, x, le, Y, se, we, ee, W, re, oe, ce, ue, xe, Ho, Go, Jo, Wo, Ko, Qo, Xo, Yo, Zo, xo;
|
|
6120
6121
|
return [
|
|
6121
6122
|
r(g, {
|
|
6122
6123
|
value: e.searchData[D],
|
|
@@ -6149,7 +6150,7 @@ function Ls(e, o, a, s, n, d) {
|
|
|
6149
6150
|
value: e.searchData[t.input.key],
|
|
6150
6151
|
"onUpdate:value": (K) => e.searchData[t.input.key] = K,
|
|
6151
6152
|
disabled: (M = t.inputTemp) == null ? void 0 : M.disabled,
|
|
6152
|
-
placeholder: typeof ((Q = t.inputTemp) == null ? void 0 : Q.placeholder) == "string" ? (Ce = t.inputTemp) == null ? void 0 : Ce.placeholder : ((he = t.inputTemp) == null ? void 0 : he.placeholder) && ((
|
|
6153
|
+
placeholder: typeof ((Q = t.inputTemp) == null ? void 0 : Q.placeholder) == "string" ? (Ce = t.inputTemp) == null ? void 0 : Ce.placeholder : ((he = t.inputTemp) == null ? void 0 : he.placeholder) && ((q = t.inputTemp) == null ? void 0 : q.placeholder()),
|
|
6153
6154
|
"on-update:value": (K) => {
|
|
6154
6155
|
var Z;
|
|
6155
6156
|
(Z = t.inputTemp) != null && Z.updateValue ? t.inputTemp.updateValue(
|
|
@@ -6166,11 +6167,11 @@ function Ls(e, o, a, s, n, d) {
|
|
|
6166
6167
|
value: e.searchData[t.input.key],
|
|
6167
6168
|
"onUpdate:value": (K) => e.searchData[t.input.key] = K,
|
|
6168
6169
|
disabled: (J = t.inputTemp) == null ? void 0 : J.disabled,
|
|
6169
|
-
placeholder: typeof ((ge = t.inputTemp) == null ? void 0 : ge.placeholder) == "string" ? (ne = t.inputTemp) == null ? void 0 : ne.placeholder : ((
|
|
6170
|
+
placeholder: typeof ((ge = t.inputTemp) == null ? void 0 : ge.placeholder) == "string" ? (ne = t.inputTemp) == null ? void 0 : ne.placeholder : ((b = t.inputTemp) == null ? void 0 : b.placeholder) && ((x = t.inputTemp) == null ? void 0 : x.placeholder()),
|
|
6170
6171
|
min: (le = t.inputTemp) == null ? void 0 : le.min,
|
|
6171
6172
|
max: (Y = t.inputTemp) == null ? void 0 : Y.max,
|
|
6172
6173
|
step: ((se = t.inputTemp) == null ? void 0 : se.step) || 1,
|
|
6173
|
-
"show-button": ((
|
|
6174
|
+
"show-button": ((we = t.inputTemp) == null ? void 0 : we.showButton) || !0,
|
|
6174
6175
|
"update-value-on-input": !1,
|
|
6175
6176
|
validator: (ee = t.inputTemp) == null ? void 0 : ee.validator,
|
|
6176
6177
|
"on-update:value": (K) => {
|
|
@@ -6257,7 +6258,7 @@ function Ls(e, o, a, s, n, d) {
|
|
|
6257
6258
|
_: 3
|
|
6258
6259
|
}, 8, ["cols", "collapsed"]),
|
|
6259
6260
|
e.more ? (p(), z("div", Rs, [
|
|
6260
|
-
r(
|
|
6261
|
+
r(w, { trigger: "hover" }, {
|
|
6261
6262
|
trigger: l(() => [
|
|
6262
6263
|
r(S, { onClick: e.showMore }, {
|
|
6263
6264
|
icon: l(() => [
|
|
@@ -6284,7 +6285,7 @@ function Ls(e, o, a, s, n, d) {
|
|
|
6284
6285
|
])) : A("", !0)
|
|
6285
6286
|
]);
|
|
6286
6287
|
}
|
|
6287
|
-
const Us = /* @__PURE__ */ L(Bs, [["render", Ls]]),
|
|
6288
|
+
const Us = /* @__PURE__ */ L(Bs, [["render", Ls]]), _s = X({
|
|
6288
6289
|
name: "OcSearchBarPop",
|
|
6289
6290
|
props: {
|
|
6290
6291
|
value: {
|
|
@@ -6301,9 +6302,9 @@ const Us = /* @__PURE__ */ L(Bs, [["render", Ls]]), qs = X({
|
|
|
6301
6302
|
}
|
|
6302
6303
|
};
|
|
6303
6304
|
}
|
|
6304
|
-
}),
|
|
6305
|
+
}), qs = { class: "oc-search-bar-pop" }, Es = { class: "oc-search-bar-pop-plan" }, js = { class: "oc-search-bar-pop-action" }, Hs = { class: "oc-search-bar-pop-content" };
|
|
6305
6306
|
function Gs(e, o, a, s, n, d) {
|
|
6306
|
-
return Le((p(), z("div",
|
|
6307
|
+
return Le((p(), z("div", qs, [
|
|
6307
6308
|
h("div", {
|
|
6308
6309
|
class: "oc-search-bar-pop-mask",
|
|
6309
6310
|
onClick: o[0] || (o[0] = (...i) => e.close && e.close(...i))
|
|
@@ -6320,7 +6321,7 @@ function Gs(e, o, a, s, n, d) {
|
|
|
6320
6321
|
[Ue, e.value]
|
|
6321
6322
|
]);
|
|
6322
6323
|
}
|
|
6323
|
-
const Js = /* @__PURE__ */ L(
|
|
6324
|
+
const Js = /* @__PURE__ */ L(_s, [["render", Gs]]), Ws = X({
|
|
6324
6325
|
name: "OcSearchBar",
|
|
6325
6326
|
components: {
|
|
6326
6327
|
NFlex: be,
|
|
@@ -6387,8 +6388,8 @@ const Js = /* @__PURE__ */ L(qs, [["render", Gs]]), Ws = X({
|
|
|
6387
6388
|
}
|
|
6388
6389
|
}
|
|
6389
6390
|
}, y = () => {
|
|
6390
|
-
e.loading || (
|
|
6391
|
-
},
|
|
6391
|
+
e.loading || (N(JSON.parse(JSON.stringify(e.defaultValue))), v());
|
|
6392
|
+
}, N = (T, $ = !1) => {
|
|
6392
6393
|
if (i.value && i.value.setValues(JSON.parse(JSON.stringify(T))), I(e.data), $)
|
|
6393
6394
|
d.replace(n.path);
|
|
6394
6395
|
else if (e.cache) {
|
|
@@ -6398,7 +6399,7 @@ const Js = /* @__PURE__ */ L(qs, [["render", Gs]]), Ws = X({
|
|
|
6398
6399
|
}, I = (T) => {
|
|
6399
6400
|
i.value && i.value.dataFactory(T);
|
|
6400
6401
|
};
|
|
6401
|
-
return s({ setValues:
|
|
6402
|
+
return s({ setValues: N, setData: I }), Ie(() => {
|
|
6402
6403
|
setTimeout(() => {
|
|
6403
6404
|
let T = e.value;
|
|
6404
6405
|
if (e.cache) {
|
|
@@ -6415,7 +6416,7 @@ const Js = /* @__PURE__ */ L(qs, [["render", Gs]]), Ws = X({
|
|
|
6415
6416
|
drawer: m,
|
|
6416
6417
|
isSlotHeader: f,
|
|
6417
6418
|
isSlotAction: g,
|
|
6418
|
-
commonStore:
|
|
6419
|
+
commonStore: _,
|
|
6419
6420
|
itemData: c,
|
|
6420
6421
|
doSearch: v,
|
|
6421
6422
|
clearAll: y
|
|
@@ -6426,7 +6427,7 @@ const Js = /* @__PURE__ */ L(qs, [["render", Gs]]), Ws = X({
|
|
|
6426
6427
|
class: "oc-search-bar-popover"
|
|
6427
6428
|
}, Qs = { key: 0 }, Xs = { class: "oc-search-bar-center" };
|
|
6428
6429
|
function Ys(e, o, a, s, n, d) {
|
|
6429
|
-
const i = u("OcSearchBarItem"), c = u("IconArrowDown"), m = u("NIcon"), f = u("NButton"), g = u("IconReset"), v = u("IconSearch"), y = u("NFlex"),
|
|
6430
|
+
const i = u("OcSearchBarItem"), c = u("IconArrowDown"), m = u("NIcon"), f = u("NButton"), g = u("IconReset"), v = u("IconSearch"), y = u("NFlex"), N = u("OcSearchBarPop"), I = u("IconFilter"), T = u("NTooltip");
|
|
6430
6431
|
return p(), z("div", {
|
|
6431
6432
|
class: at(["oc-search-bar", {
|
|
6432
6433
|
small: !e.isSlotHeader && (e.small || e.commonStore.isMobile)
|
|
@@ -6440,7 +6441,7 @@ function Ys(e, o, a, s, n, d) {
|
|
|
6440
6441
|
ke(e.$slots, "header")
|
|
6441
6442
|
], 2)) : A("", !0),
|
|
6442
6443
|
e.small || e.commonStore.isMobile ? (p(), z("div", Ks, [
|
|
6443
|
-
r(
|
|
6444
|
+
r(N, {
|
|
6444
6445
|
value: e.drawer,
|
|
6445
6446
|
"onUpdate:value": o[2] || (o[2] = ($) => e.drawer = $),
|
|
6446
6447
|
"onOnUpdate:value": o[3] || (o[3] = ($) => e.drawer = $)
|
|
@@ -6628,9 +6629,9 @@ function Ys(e, o, a, s, n, d) {
|
|
|
6628
6629
|
const Gt = /* @__PURE__ */ L(Ws, [["render", Ys]]), Zs = X({
|
|
6629
6630
|
name: "OcSkeleton",
|
|
6630
6631
|
components: {
|
|
6631
|
-
NGrid:
|
|
6632
|
+
NGrid: qe,
|
|
6632
6633
|
NGi: so,
|
|
6633
|
-
NSkeleton:
|
|
6634
|
+
NSkeleton: va
|
|
6634
6635
|
},
|
|
6635
6636
|
props: {
|
|
6636
6637
|
cols: {
|
|
@@ -6691,7 +6692,7 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6691
6692
|
IconEyeOff: Tt,
|
|
6692
6693
|
IconPin: Pt,
|
|
6693
6694
|
IconPinOff: It,
|
|
6694
|
-
IconAdd:
|
|
6695
|
+
IconAdd: wt,
|
|
6695
6696
|
IconMailInboxAdd: po,
|
|
6696
6697
|
IconCloudArrowDown: zo,
|
|
6697
6698
|
Draggable: Ra,
|
|
@@ -6784,18 +6785,22 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6784
6785
|
exporter: {
|
|
6785
6786
|
type: Object,
|
|
6786
6787
|
default: void 0
|
|
6788
|
+
},
|
|
6789
|
+
exporterFn: {
|
|
6790
|
+
type: Function,
|
|
6791
|
+
default: void 0
|
|
6787
6792
|
}
|
|
6788
6793
|
},
|
|
6789
6794
|
emits: ["update:loading", "on-update:value", "on-update:filter"],
|
|
6790
6795
|
setup(e, { emit: o, expose: a, slots: s }) {
|
|
6791
|
-
const n = C(!!s.header), d = C(), { t: i } = $e(), c = io(), m = je(), f = ze(), g = C(!1), v = C(!1), y = C(!1),
|
|
6796
|
+
const n = C(!!s.header), d = C(), { t: i } = $e(), c = io(), m = je(), f = ze(), g = C(!1), v = C(!1), y = C(!1), N = C([]), I = C([]), T = C([]), $ = C({
|
|
6792
6797
|
query: {
|
|
6793
6798
|
page: 1
|
|
6794
6799
|
}
|
|
6795
|
-
}), B = C({}), j = C({}), O = C(void 0), V = C(void 0), F = c.path, S = (
|
|
6796
|
-
g.value = !0, o("update:loading", !0),
|
|
6800
|
+
}), B = C({}), j = C({}), O = C(void 0), V = C(void 0), F = c.path, S = (b) => {
|
|
6801
|
+
g.value = !0, o("update:loading", !0), b && ($.value.query = {
|
|
6797
6802
|
...$.value.query,
|
|
6798
|
-
...
|
|
6803
|
+
...b
|
|
6799
6804
|
});
|
|
6800
6805
|
const x = Ro($.value);
|
|
6801
6806
|
e.fetch && e.fetch(x).then((le) => {
|
|
@@ -6804,32 +6809,34 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6804
6809
|
}).catch(() => {
|
|
6805
6810
|
g.value = !1, o("update:loading", !1);
|
|
6806
6811
|
});
|
|
6807
|
-
},
|
|
6808
|
-
$.value.query.page =
|
|
6809
|
-
}, t = (
|
|
6810
|
-
$.value.query.pageSize =
|
|
6811
|
-
}, D = (
|
|
6812
|
-
|
|
6813
|
-
}, G = (
|
|
6814
|
-
|
|
6815
|
-
}, ae = (
|
|
6816
|
-
|
|
6812
|
+
}, w = (b) => {
|
|
6813
|
+
$.value.query.page = b, yo(), S();
|
|
6814
|
+
}, t = (b) => {
|
|
6815
|
+
$.value.query.pageSize = b, $.value.query.page = 1, yo(), S();
|
|
6816
|
+
}, D = (b) => {
|
|
6817
|
+
b ? ($.value.query.columnKey = b.columnKey, $.value.query.order = b.order) : ($.value.query.columnKey = null, $.value.query.order = null), S();
|
|
6818
|
+
}, G = (b) => {
|
|
6819
|
+
b.pin = !b.pin, b.pin ? b.fixed = "left" : b.fixed = void 0, ne();
|
|
6820
|
+
}, ae = (b) => {
|
|
6821
|
+
b.show = !b.show, ne();
|
|
6817
6822
|
}, M = () => {
|
|
6818
|
-
const
|
|
6823
|
+
const b = [];
|
|
6819
6824
|
I.value.forEach((x) => {
|
|
6820
|
-
x.show &&
|
|
6821
|
-
}),
|
|
6822
|
-
}, Q = (
|
|
6823
|
-
if ($.value =
|
|
6825
|
+
x.show && b.push(x);
|
|
6826
|
+
}), N.value = b;
|
|
6827
|
+
}, Q = (b) => {
|
|
6828
|
+
if ($.value = b, e.cache) {
|
|
6824
6829
|
const x = Fe(F), le = Fe($.value);
|
|
6825
6830
|
m.replace(`${F}?cursor=${le}&routerId=${x}`);
|
|
6826
6831
|
}
|
|
6827
6832
|
S();
|
|
6828
|
-
}, Ce = () => {
|
|
6829
|
-
v.value = !0
|
|
6833
|
+
}, Ce = async () => {
|
|
6834
|
+
v.value = !0;
|
|
6835
|
+
let b = {
|
|
6830
6836
|
...e.exporter,
|
|
6831
6837
|
jobParams: JSON.stringify($.value)
|
|
6832
|
-
}
|
|
6838
|
+
};
|
|
6839
|
+
e.exporterFn && (b = await e.exporterFn(b)), Lt(b).then(() => {
|
|
6833
6840
|
f.success({
|
|
6834
6841
|
content: () => i("Notice.success"),
|
|
6835
6842
|
duration: 3e3
|
|
@@ -6839,42 +6846,42 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6839
6846
|
}).catch(() => {
|
|
6840
6847
|
v.value = !1;
|
|
6841
6848
|
});
|
|
6842
|
-
}, he = (
|
|
6849
|
+
}, he = (b) => {
|
|
6843
6850
|
const x = de(e.columns), le = [], Y = /* @__PURE__ */ new Set(), se = {};
|
|
6844
|
-
|
|
6851
|
+
b || (b = e.filters), x.forEach((ee) => {
|
|
6845
6852
|
if (!Y.has(ee.key)) {
|
|
6846
|
-
const W =
|
|
6853
|
+
const W = b == null ? void 0 : b.find((oe) => oe.key === ee.key), re = b == null ? void 0 : b.findIndex((oe) => oe.key === ee.key);
|
|
6847
6854
|
W ? (ee.show = W.show, ee.hide = W.hide, ee.pin = W.pin, ee.fixed = W.fixed, se[re] = ee, Y.add(ee.key)) : le.push(ee);
|
|
6848
6855
|
}
|
|
6849
6856
|
});
|
|
6850
|
-
const
|
|
6851
|
-
return Y.clear(), [...
|
|
6852
|
-
},
|
|
6853
|
-
var se,
|
|
6857
|
+
const we = Object.keys(se).map((ee) => se[ee]);
|
|
6858
|
+
return Y.clear(), [...we, ...le];
|
|
6859
|
+
}, q = (b) => new Promise(async (x) => {
|
|
6860
|
+
var se, we, ee, W, re, oe, ce;
|
|
6854
6861
|
const le = {}, Y = {};
|
|
6855
|
-
if (
|
|
6856
|
-
Y[
|
|
6862
|
+
if (b.search.title || (b.search.title = b.title), b.search.defaultValue !== void 0)
|
|
6863
|
+
Y[b.search.key || b.key] = b.search.defaultValue;
|
|
6857
6864
|
else {
|
|
6858
|
-
if (
|
|
6865
|
+
if (b.search.type === "input" && (Y[b.search.key || b.key] = ""), b.search.type === "number" && (Y[b.search.key || b.key] = null), b.search.type === "dropdown" && (Y[b.search.key || b.key] = null), (b.search.type === "cascader" || b.search.type === "treeSelect") && ((se = b.search) != null && se.multiple ? Y[b.search.key || b.key] = [] : Y[b.search.key || b.key] = null), b.search.type === "datePicker") {
|
|
6859
6866
|
let ue = 0;
|
|
6860
|
-
(
|
|
6867
|
+
(b.search.dateType.indexOf("date") > -1 || b.search.dateType.indexOf("quarter") > -1 || b.search.dateType.indexOf("week") > -1) && (ue = We()), b.search.dateType.indexOf("month") > -1 && (ue = We(void 0, void 0, 1)), b.search.dateType.indexOf("year") > -1 && (ue = We(void 0, 1, 1)), b.search.dateType.indexOf("range") > -1 && (ue = [ue, ue]), Y[((we = b.search) == null ? void 0 : we.key) || b.key] = ue;
|
|
6861
6868
|
}
|
|
6862
|
-
|
|
6869
|
+
b.search.type === "select" && ((ee = b.search) != null && ee.multiple ? b.search.fallbackOption ? Y[((W = b.search) == null ? void 0 : W.key) || b.key] = [""] : Y[((re = b.search) == null ? void 0 : re.key) || b.key] = [] : Y[((oe = b.search) == null ? void 0 : oe.key) || b.key] = null);
|
|
6863
6870
|
}
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
}), le[((ce =
|
|
6871
|
+
b.search.type === "select" && typeof b.search.options == "function" && await b.search.options().then((ue) => {
|
|
6872
|
+
b.search.options = ue;
|
|
6873
|
+
}), le[((ce = b.search) == null ? void 0 : ce.key) || b.key] = b.search, x({
|
|
6867
6874
|
value: Y,
|
|
6868
6875
|
data: le
|
|
6869
6876
|
});
|
|
6870
|
-
}), U = async (
|
|
6877
|
+
}), U = async (b = !1, x) => {
|
|
6871
6878
|
const le = [], Y = [];
|
|
6872
|
-
let se = {},
|
|
6879
|
+
let se = {}, we = {};
|
|
6873
6880
|
const ee = he(x);
|
|
6874
6881
|
for await (const W of ee) {
|
|
6875
6882
|
if (W.search) {
|
|
6876
|
-
const { value: oe, data: ce } = await
|
|
6877
|
-
se = { ...se, ...oe },
|
|
6883
|
+
const { value: oe, data: ce } = await q(de(W));
|
|
6884
|
+
se = { ...se, ...oe }, we = { ...we, ...ce };
|
|
6878
6885
|
}
|
|
6879
6886
|
if (delete W.search, W.render && typeof W.render == "string") {
|
|
6880
6887
|
const oe = W.render, ce = new Function("rowData", "rowIndex", "h", oe);
|
|
@@ -6904,7 +6911,7 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6904
6911
|
};
|
|
6905
6912
|
le.push(re), Y.push(re);
|
|
6906
6913
|
}
|
|
6907
|
-
if (
|
|
6914
|
+
if (b && e.cache) {
|
|
6908
6915
|
const { cursor: W, routerId: re } = c.query;
|
|
6909
6916
|
if (W && re) {
|
|
6910
6917
|
const oe = ao(re), ce = ao(W);
|
|
@@ -6922,34 +6929,34 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6922
6929
|
...$.value,
|
|
6923
6930
|
...se
|
|
6924
6931
|
};
|
|
6925
|
-
|
|
6926
|
-
}, J = (
|
|
6932
|
+
N.value = le, j.value = we, I.value = Y, d.value && d.value.setValues(de($.value)), d.value && d.value.setData(de(j.value));
|
|
6933
|
+
}, J = (b) => typeof b == "number" ? `${b}px` : b, ge = () => {
|
|
6927
6934
|
if (e.height) {
|
|
6928
|
-
const
|
|
6929
|
-
O.value =
|
|
6935
|
+
const b = J(e.height);
|
|
6936
|
+
O.value = b, V.value = b;
|
|
6930
6937
|
return;
|
|
6931
6938
|
}
|
|
6932
6939
|
e.minHeight && (O.value = J(e.minHeight)), e.maxHeight && (V.value = J(e.maxHeight));
|
|
6933
6940
|
}, ne = () => {
|
|
6934
|
-
const
|
|
6941
|
+
const b = [];
|
|
6935
6942
|
I.value.forEach((x) => {
|
|
6936
|
-
|
|
6943
|
+
b.push({
|
|
6937
6944
|
key: x.key,
|
|
6938
6945
|
show: x.show,
|
|
6939
6946
|
hide: x.hide,
|
|
6940
6947
|
fixed: x.fixed
|
|
6941
6948
|
});
|
|
6942
|
-
}), o("on-update:filter",
|
|
6949
|
+
}), o("on-update:filter", b);
|
|
6943
6950
|
};
|
|
6944
6951
|
return a({ init: S }), Ie(() => {
|
|
6945
6952
|
U(!0), ge();
|
|
6946
|
-
}),
|
|
6953
|
+
}), ve(
|
|
6947
6954
|
() => I.value,
|
|
6948
6955
|
() => {
|
|
6949
6956
|
M();
|
|
6950
6957
|
},
|
|
6951
6958
|
{ deep: !0 }
|
|
6952
|
-
),
|
|
6959
|
+
), ve(
|
|
6953
6960
|
() => e.columns,
|
|
6954
6961
|
() => {
|
|
6955
6962
|
e.realtime && U();
|
|
@@ -6957,7 +6964,7 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6957
6964
|
{
|
|
6958
6965
|
deep: !0
|
|
6959
6966
|
}
|
|
6960
|
-
),
|
|
6967
|
+
), ve(
|
|
6961
6968
|
() => e.actions,
|
|
6962
6969
|
() => {
|
|
6963
6970
|
e.realtime && U();
|
|
@@ -6965,10 +6972,10 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6965
6972
|
{
|
|
6966
6973
|
deep: !0
|
|
6967
6974
|
}
|
|
6968
|
-
),
|
|
6975
|
+
), ve(
|
|
6969
6976
|
() => e.filters,
|
|
6970
|
-
(
|
|
6971
|
-
U(!0,
|
|
6977
|
+
(b) => {
|
|
6978
|
+
U(!0, b);
|
|
6972
6979
|
},
|
|
6973
6980
|
{
|
|
6974
6981
|
deep: !0
|
|
@@ -6979,7 +6986,7 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6979
6986
|
maxH: V,
|
|
6980
6987
|
searchRef: d,
|
|
6981
6988
|
exportLoading: v,
|
|
6982
|
-
tableColumns:
|
|
6989
|
+
tableColumns: N,
|
|
6983
6990
|
tableData: T,
|
|
6984
6991
|
tableQuery: $,
|
|
6985
6992
|
searchDefaultValue: B,
|
|
@@ -6987,7 +6994,7 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
6987
6994
|
baseColumns: I,
|
|
6988
6995
|
showImporter: y,
|
|
6989
6996
|
isSlotHeader: n,
|
|
6990
|
-
pageChange:
|
|
6997
|
+
pageChange: w,
|
|
6991
6998
|
pageSizeChange: t,
|
|
6992
6999
|
pageSorter: D,
|
|
6993
7000
|
pinChange: G,
|
|
@@ -7000,7 +7007,7 @@ const oi = /* @__PURE__ */ L(Zs, [["render", ei]]), ti = X({
|
|
|
7000
7007
|
}
|
|
7001
7008
|
}), ai = { class: "com-card" };
|
|
7002
7009
|
function ni(e, o, a, s, n, d) {
|
|
7003
|
-
const i = u("IconAdd"), c = u("NIcon"), m = u("NButton"), f = u("NTooltip"), g = u("IconMailInboxAdd"), v = u("IconCloudArrowDown"), y = u("NPopconfirm"),
|
|
7010
|
+
const i = u("IconAdd"), c = u("NIcon"), m = u("NButton"), f = u("NTooltip"), g = u("IconMailInboxAdd"), v = u("IconCloudArrowDown"), y = u("NPopconfirm"), N = u("IconFilter"), I = u("IconNavigation"), T = u("IconPin"), $ = u("IconPinOff"), B = u("IconEye"), j = u("IconEyeOff"), O = u("Draggable"), V = u("NPopover"), F = u("OcSearchBar"), S = u("NDataTable"), w = u("OcImporter");
|
|
7004
7011
|
return p(), z(ie, null, [
|
|
7005
7012
|
r(F, {
|
|
7006
7013
|
ref: "searchRef",
|
|
@@ -7110,7 +7117,7 @@ function ni(e, o, a, s, n, d) {
|
|
|
7110
7117
|
icon: l(() => [
|
|
7111
7118
|
r(c, null, {
|
|
7112
7119
|
default: l(() => [
|
|
7113
|
-
r(
|
|
7120
|
+
r(N)
|
|
7114
7121
|
]),
|
|
7115
7122
|
_: 1
|
|
7116
7123
|
})
|
|
@@ -7230,7 +7237,7 @@ function ni(e, o, a, s, n, d) {
|
|
|
7230
7237
|
remote: ""
|
|
7231
7238
|
}, null, 8, ["columns", "data", "pagination", "loading", "default-checked-row-keys", "scroll-x", "flex-height", "min-height", "max-height", "on-update:page", "on-update:page-size", "on-update:sorter"])
|
|
7232
7239
|
]),
|
|
7233
|
-
e.importer ? (p(), P(
|
|
7240
|
+
e.importer ? (p(), P(w, {
|
|
7234
7241
|
key: 0,
|
|
7235
7242
|
show: e.showImporter,
|
|
7236
7243
|
"onUpdate:show": o[2] || (o[2] = (t) => e.showImporter = t),
|
|
@@ -7240,8 +7247,8 @@ function ni(e, o, a, s, n, d) {
|
|
|
7240
7247
|
}
|
|
7241
7248
|
const li = /* @__PURE__ */ L(ti, [["render", ni]]), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7242
7249
|
__proto__: null,
|
|
7243
|
-
IconAdd:
|
|
7244
|
-
IconAlert:
|
|
7250
|
+
IconAdd: wt,
|
|
7251
|
+
IconAlert: vt,
|
|
7245
7252
|
IconArrowClockwise: Qe,
|
|
7246
7253
|
IconArrowDown: Mo,
|
|
7247
7254
|
IconArrowSquareDown: Nt,
|
|
@@ -7251,7 +7258,7 @@ const li = /* @__PURE__ */ L(ti, [["render", ni]]), st = /* @__PURE__ */ Object.
|
|
|
7251
7258
|
IconClear: kt,
|
|
7252
7259
|
IconCloudArrowDown: zo,
|
|
7253
7260
|
IconDelete: $t,
|
|
7254
|
-
IconDismiss:
|
|
7261
|
+
IconDismiss: _e,
|
|
7255
7262
|
IconDrafts: Ot,
|
|
7256
7263
|
IconEye: Do,
|
|
7257
7264
|
IconEyeOff: Tt,
|
|
@@ -7280,27 +7287,27 @@ const li = /* @__PURE__ */ L(ti, [["render", ni]]), st = /* @__PURE__ */ Object.
|
|
|
7280
7287
|
OcLogin: Zr,
|
|
7281
7288
|
OcLogo: as,
|
|
7282
7289
|
OcMain: is,
|
|
7283
|
-
OcMy:
|
|
7290
|
+
OcMy: ws,
|
|
7284
7291
|
OcNumberRoll: jt,
|
|
7285
7292
|
OcReport: Ss,
|
|
7286
7293
|
OcScan: Ds,
|
|
7287
7294
|
OcSearchBar: Gt,
|
|
7288
7295
|
OcSkeleton: oi,
|
|
7289
7296
|
OcTable: li,
|
|
7290
|
-
commonStore:
|
|
7291
|
-
fnClearUser:
|
|
7297
|
+
commonStore: _,
|
|
7298
|
+
fnClearUser: qo,
|
|
7292
7299
|
fnDownload: Lt,
|
|
7293
|
-
fnGetUser:
|
|
7300
|
+
fnGetUser: _o,
|
|
7294
7301
|
fnRenderAction: Ve,
|
|
7295
7302
|
fnSetLang: Xe,
|
|
7296
7303
|
fnSetTheme: fo,
|
|
7297
|
-
fnSetUser:
|
|
7298
|
-
fnUserLogout:
|
|
7304
|
+
fnSetUser: _t,
|
|
7305
|
+
fnUserLogout: qt,
|
|
7299
7306
|
i18n: Se,
|
|
7300
|
-
userStore:
|
|
7307
|
+
userStore: k
|
|
7301
7308
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7302
7309
|
let Eo = 3840, jo = 2160;
|
|
7303
|
-
const ri =
|
|
7310
|
+
const ri = wo({
|
|
7304
7311
|
scale: 1
|
|
7305
7312
|
});
|
|
7306
7313
|
function Mi(e, o) {
|
|
@@ -7330,7 +7337,7 @@ function Bi() {
|
|
|
7330
7337
|
Eo = 3840, jo = 2160, window.removeEventListener("resize", e);
|
|
7331
7338
|
};
|
|
7332
7339
|
}
|
|
7333
|
-
const Vi = (e) => !!(
|
|
7340
|
+
const Vi = (e) => !!(k.kind === -1 || k.kind === 99 || k.iot_menu_authorization.includes(e)), Fi = (e) => k.platform_tdm ? k.kind === -1 || k.kind === 99 || e === "home" ? !0 : k.tdm_menu_authorization.includes(e) : !1, Ri = (e) => k.platform_qms ? k.kind === -1 || k.kind === 99 || e === "home" ? !0 : k.qms_menu_authorization.includes(e) : !1, Li = (e) => k.platform_twin ? (k.kind === -1 || k.kind === 99 || e === "home", !0) : !1, Ui = (e) => !!(k.kind === -1 || k.kind === 99 || k.maintain_menu_authorization.includes(e)), _i = (e) => !!(k.kind === -1 || k.kind === 99 || k.order_menu_authorization.includes(e)), ii = "3.0.13";
|
|
7334
7341
|
function ui({ components: e = [] } = {}) {
|
|
7335
7342
|
const o = [];
|
|
7336
7343
|
function a(n, d, i) {
|
|
@@ -7360,13 +7367,13 @@ const di = ui({
|
|
|
7360
7367
|
components: Object.keys(st).map(
|
|
7361
7368
|
(e) => st[e]
|
|
7362
7369
|
)
|
|
7363
|
-
}),
|
|
7370
|
+
}), qi = di.install;
|
|
7364
7371
|
export {
|
|
7365
7372
|
Ii as CUSTOM,
|
|
7366
7373
|
Vt as FILE,
|
|
7367
7374
|
hr as GET,
|
|
7368
|
-
|
|
7369
|
-
|
|
7375
|
+
wt as IconAdd,
|
|
7376
|
+
vt as IconAlert,
|
|
7370
7377
|
Qe as IconArrowClockwise,
|
|
7371
7378
|
Mo as IconArrowDown,
|
|
7372
7379
|
Nt as IconArrowSquareDown,
|
|
@@ -7376,7 +7383,7 @@ export {
|
|
|
7376
7383
|
kt as IconClear,
|
|
7377
7384
|
zo as IconCloudArrowDown,
|
|
7378
7385
|
$t as IconDelete,
|
|
7379
|
-
|
|
7386
|
+
_e as IconDismiss,
|
|
7380
7387
|
Ot as IconDrafts,
|
|
7381
7388
|
Do as IconEye,
|
|
7382
7389
|
Tt as IconEyeOff,
|
|
@@ -7405,7 +7412,7 @@ export {
|
|
|
7405
7412
|
Zr as OcLogin,
|
|
7406
7413
|
as as OcLogo,
|
|
7407
7414
|
is as OcMain,
|
|
7408
|
-
|
|
7415
|
+
ws as OcMy,
|
|
7409
7416
|
jt as OcNumberRoll,
|
|
7410
7417
|
Ss as OcReport,
|
|
7411
7418
|
Ds as OcScan,
|
|
@@ -7413,7 +7420,7 @@ export {
|
|
|
7413
7420
|
oi as OcSkeleton,
|
|
7414
7421
|
li as OcTable,
|
|
7415
7422
|
me as POST,
|
|
7416
|
-
|
|
7423
|
+
_ as commonStore,
|
|
7417
7424
|
ui as create,
|
|
7418
7425
|
ls as darkTheme,
|
|
7419
7426
|
di as default,
|
|
@@ -7421,10 +7428,10 @@ export {
|
|
|
7421
7428
|
Li as fnCheckDashRole,
|
|
7422
7429
|
Vi as fnCheckIoTRole,
|
|
7423
7430
|
Ui as fnCheckMaintainRole,
|
|
7424
|
-
|
|
7431
|
+
_i as fnCheckOrderRole,
|
|
7425
7432
|
Ri as fnCheckQMSRole,
|
|
7426
7433
|
Fi as fnCheckTDMRole,
|
|
7427
|
-
|
|
7434
|
+
qo as fnClearUser,
|
|
7428
7435
|
si as fnComputedScale,
|
|
7429
7436
|
ao as fnDecodeCursor,
|
|
7430
7437
|
Ze as fnDelStorage,
|
|
@@ -7435,7 +7442,7 @@ export {
|
|
|
7435
7442
|
Pi as fnFormatUnits,
|
|
7436
7443
|
Oi as fnFullScreen,
|
|
7437
7444
|
pe as fnGetStorage,
|
|
7438
|
-
|
|
7445
|
+
_o as fnGetUser,
|
|
7439
7446
|
Bi as fnListenerScale,
|
|
7440
7447
|
Fo as fnPageModel2Naive,
|
|
7441
7448
|
Ro as fnPageNaive2Model,
|
|
@@ -7445,17 +7452,17 @@ export {
|
|
|
7445
7452
|
Mi as fnSetNormalWidthAndHeight,
|
|
7446
7453
|
ye as fnSetStorage,
|
|
7447
7454
|
fo as fnSetTheme,
|
|
7448
|
-
|
|
7455
|
+
_t as fnSetUser,
|
|
7449
7456
|
Ti as fnThrottle,
|
|
7450
|
-
|
|
7457
|
+
qt as fnUserLogout,
|
|
7451
7458
|
We as getDefaultDate,
|
|
7452
7459
|
Se as i18n,
|
|
7453
|
-
|
|
7460
|
+
qi as install,
|
|
7454
7461
|
ns as lightTheme,
|
|
7455
7462
|
ri as scaleStore,
|
|
7456
7463
|
Ht as useDebounceFn,
|
|
7457
7464
|
zi as useLocalStorage,
|
|
7458
7465
|
Ai as useQuery,
|
|
7459
7466
|
Di as useThrottleFn,
|
|
7460
|
-
|
|
7467
|
+
k as userStore
|
|
7461
7468
|
};
|