@unizhen/ui 0.0.9 → 0.0.10
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/ui.js +968 -980
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Fc = Object.defineProperty;
|
|
2
2
|
var Vc = (e, t, r) => t in e ? Fc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var zt = (e, t, r) => Vc(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { createDiscreteApi as Lc, NPopover as ct, NFlex as Ul, NButton as ge, NPopconfirm as za, NTooltip as Pl, NIcon as ve, NDropdown as Hc, NCascader as El, NCheckboxGroup as Aa, NCheckbox as
|
|
4
|
+
import { defineComponent as le, createElementBlock as w, openBlock as c, createStaticVNode as E, createElementVNode as i, ref as S, watch as ce, nextTick as Ee, h as Z, reactive as ja, resolveComponent as $, createBlock as A, withCtx as k, toDisplayString as L, createVNode as T, normalizeStyle as $e, inject as He, computed as _t, Fragment as se, createCommentVNode as W, normalizeClass as ue, createSlots as Re, createTextVNode as H, renderList as ke, provide as ba, onMounted as Ge, resolveDirective as Bl, withDirectives as gt, mergeProps as _a, withModifiers as At, watchEffect as Fl, onBeforeUnmount as qa, withKeys as Uc, renderSlot as xe, markRaw as Pc, defineAsyncComponent as Ec, onUnmounted as Vl, vShow as xa, resolveDynamicComponent as go } from "vue";
|
|
5
|
+
import { createDiscreteApi as Lc, NPopover as ct, NFlex as Ul, NButton as ge, NPopconfirm as za, NTooltip as Pl, NIcon as ve, NDropdown as Hc, NCascader as El, NCheckboxGroup as Aa, NCheckbox as Ra, NColorPicker as Kc, NSwitch as Gc, NTimePicker as Wc, NDatePicker as Jc, NInputNumber as Qc, NSelect as Ll, NInput as Xc, NDivider as Oa, NFormItem as Ba, NForm as Fa, NInputGroup as Va, NUploadDragger as Yc, NImage as Hl, NUpload as Kl, useNotification as Ft, NImageGroup as Zc, NModal as ed, NInputGroupLabel as Gl, NGridItem as Wl, NGrid as Jl, NButtonGroup as td, NDrawerContent as Ua, NDrawer as Pa, NTag as rd, NEllipsis as nd, NSpin as Ea, NRadioGroup as Ql, NSkeleton as Xl, NDataTable as La, NPagination as ad, NRadio as od, NTabPane as sd, NTabs as ld, darkTheme as We, NConfigProvider as id, dateZhCN as ud, zhCN as cd } from "naive-ui";
|
|
6
6
|
import Ha from "axios";
|
|
7
7
|
import { createRouter as dd, createWebHistory as fd, useRouter as pd, useRoute as Vt } from "vue-router";
|
|
8
8
|
import { createI18n as hd, useI18n as Ut } from "vue-i18n";
|
|
@@ -13,7 +13,7 @@ import wd from "jsqr";
|
|
|
13
13
|
import md from "vue-clipboard3";
|
|
14
14
|
import { createWorker as vd } from "tesseract.js";
|
|
15
15
|
import gd from "sortablejs";
|
|
16
|
-
const yd =
|
|
16
|
+
const yd = le({
|
|
17
17
|
name: "UzActionButton",
|
|
18
18
|
props: {
|
|
19
19
|
data: {
|
|
@@ -104,17 +104,17 @@ function zd(e, t) {
|
|
|
104
104
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5.931 6.936l1.275 4.249m5.607 5.609l4.251 1.275"></path><path d="M11.683 12.317l5.759-5.759"></path><circle cx="5.5" cy="5.5" r="1.5"></circle><circle cx="18.5" cy="5.5" r="1.5"></circle><circle cx="18.5" cy="18.5" r="1.5"></circle><circle cx="8.5" cy="15.5" r="4.5"></circle></g>', 1)
|
|
105
105
|
]));
|
|
106
106
|
}
|
|
107
|
-
const ni = /* @__PURE__ */ _(jd, [["render", zd]]), Ad = {},
|
|
107
|
+
const ni = /* @__PURE__ */ _(jd, [["render", zd]]), Ad = {}, Rd = {
|
|
108
108
|
xmlns: "http://www.w3.org/2000/svg",
|
|
109
109
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
110
110
|
viewBox: "0 0 24 24"
|
|
111
111
|
};
|
|
112
|
-
function
|
|
113
|
-
return c(), w("svg",
|
|
112
|
+
function Od(e, t) {
|
|
113
|
+
return c(), w("svg", Rd, t[0] || (t[0] = [
|
|
114
114
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="13" r="7"></circle><path d="M12 10v3h2"></path><path d="M7 4L4.25 6"></path><path d="M17 4l2.75 2"></path></g>', 1)
|
|
115
115
|
]));
|
|
116
116
|
}
|
|
117
|
-
const ai = /* @__PURE__ */ _(Ad, [["render",
|
|
117
|
+
const ai = /* @__PURE__ */ _(Ad, [["render", Od]]), Bd = {}, Fd = {
|
|
118
118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
119
119
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
120
120
|
viewBox: "0 0 24 24"
|
|
@@ -442,17 +442,17 @@ function Af(e, t) {
|
|
|
442
442
|
], -1)
|
|
443
443
|
]));
|
|
444
444
|
}
|
|
445
|
-
const ki = /* @__PURE__ */ _(qf, [["render", Af]]),
|
|
445
|
+
const ki = /* @__PURE__ */ _(qf, [["render", Af]]), Rf = {}, Of = {
|
|
446
446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
447
447
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
448
448
|
viewBox: "0 0 24 24"
|
|
449
449
|
};
|
|
450
450
|
function Bf(e, t) {
|
|
451
|
-
return c(), w("svg",
|
|
451
|
+
return c(), w("svg", Of, t[0] || (t[0] = [
|
|
452
452
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="7" width="18" height="13" rx="2"></rect><path d="M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><path d="M12 12v.01"></path><path d="M3 13a20 20 0 0 0 18 0"></path></g>', 1)
|
|
453
453
|
]));
|
|
454
454
|
}
|
|
455
|
-
const bi = /* @__PURE__ */ _(
|
|
455
|
+
const bi = /* @__PURE__ */ _(Rf, [["render", Bf]]), Ff = {}, Vf = {
|
|
456
456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
457
457
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
458
458
|
viewBox: "0 0 24 24"
|
|
@@ -707,7 +707,7 @@ function jp(e, t) {
|
|
|
707
707
|
], -1)
|
|
708
708
|
]));
|
|
709
709
|
}
|
|
710
|
-
const
|
|
710
|
+
const Ri = /* @__PURE__ */ _(Ip, [["render", jp]]), qp = {}, zp = {
|
|
711
711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
712
712
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
713
713
|
viewBox: "0 0 24 24"
|
|
@@ -717,13 +717,13 @@ function Ap(e, t) {
|
|
|
717
717
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l9.5 7L18 21H6L2.5 10z"></path><path d="M12 7.5l5.5 4L15 17H8.5l-2-5.5z"></path><path d="M2.5 10l9.5 3l9.5-3"></path><path d="M12 3v10l6 8"></path><path d="M6 21l6-8"></path></g>', 1)
|
|
718
718
|
]));
|
|
719
719
|
}
|
|
720
|
-
const
|
|
720
|
+
const Oi = /* @__PURE__ */ _(qp, [["render", Ap]]), Rp = {}, Op = {
|
|
721
721
|
xmlns: "http://www.w3.org/2000/svg",
|
|
722
722
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
723
723
|
viewBox: "0 0 24 24"
|
|
724
724
|
};
|
|
725
725
|
function Bp(e, t) {
|
|
726
|
-
return c(), w("svg",
|
|
726
|
+
return c(), w("svg", Op, t[0] || (t[0] = [
|
|
727
727
|
i("g", {
|
|
728
728
|
fill: "none",
|
|
729
729
|
stroke: "currentColor",
|
|
@@ -736,7 +736,7 @@ function Bp(e, t) {
|
|
|
736
736
|
], -1)
|
|
737
737
|
]));
|
|
738
738
|
}
|
|
739
|
-
const Bi = /* @__PURE__ */ _(
|
|
739
|
+
const Bi = /* @__PURE__ */ _(Rp, [["render", Bp]]), Fp = {}, Vp = {
|
|
740
740
|
xmlns: "http://www.w3.org/2000/svg",
|
|
741
741
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
742
742
|
viewBox: "0 0 24 24"
|
|
@@ -1054,17 +1054,17 @@ function Ah(e, t) {
|
|
|
1054
1054
|
], -1)
|
|
1055
1055
|
]));
|
|
1056
1056
|
}
|
|
1057
|
-
const Yi = /* @__PURE__ */ _(qh, [["render", Ah]]),
|
|
1057
|
+
const Yi = /* @__PURE__ */ _(qh, [["render", Ah]]), Rh = {}, Oh = {
|
|
1058
1058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1059
1059
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1060
1060
|
viewBox: "0 0 24 24"
|
|
1061
1061
|
};
|
|
1062
1062
|
function Bh(e, t) {
|
|
1063
|
-
return c(), w("svg",
|
|
1063
|
+
return c(), w("svg", Oh, t[0] || (t[0] = [
|
|
1064
1064
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="12" rx="1"></rect><path d="M7 20h10"></path><path d="M9 16v4"></path><path d="M15 16v4"></path><path d="M8 12l3-3l2 2l3-3"></path></g>', 1)
|
|
1065
1065
|
]));
|
|
1066
1066
|
}
|
|
1067
|
-
const Zi = /* @__PURE__ */ _(
|
|
1067
|
+
const Zi = /* @__PURE__ */ _(Rh, [["render", Bh]]), Fh = {}, Vh = {
|
|
1068
1068
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1069
1069
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1070
1070
|
viewBox: "0 0 24 24"
|
|
@@ -1366,17 +1366,17 @@ function A1(e, t) {
|
|
|
1366
1366
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="18" r="2"></circle><circle cx="6" cy="6" r="2"></circle><circle cx="18" cy="18" r="2"></circle><path d="M6 8v8"></path><path d="M11 6h5a2 2 0 0 1 2 2v8"></path><path d="M14 9l-3-3l3-3"></path></g>', 1)
|
|
1367
1367
|
]));
|
|
1368
1368
|
}
|
|
1369
|
-
const hu = /* @__PURE__ */ _(q1, [["render", A1]]),
|
|
1369
|
+
const hu = /* @__PURE__ */ _(q1, [["render", A1]]), R1 = {}, O1 = {
|
|
1370
1370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1371
1371
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1372
1372
|
viewBox: "0 0 24 24"
|
|
1373
1373
|
};
|
|
1374
1374
|
function B1(e, t) {
|
|
1375
|
-
return c(), w("svg",
|
|
1375
|
+
return c(), w("svg", O1, t[0] || (t[0] = [
|
|
1376
1376
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="5" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="19" cy="5" r="1"></circle><circle cx="5" cy="12" r="1"></circle><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="19" r="1"></circle><circle cx="12" cy="19" r="1"></circle><circle cx="19" cy="19" r="1"></circle></g>', 1)
|
|
1377
1377
|
]));
|
|
1378
1378
|
}
|
|
1379
|
-
const yt = /* @__PURE__ */ _(
|
|
1379
|
+
const yt = /* @__PURE__ */ _(R1, [["render", B1]]), F1 = {}, V1 = {
|
|
1380
1380
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1381
1381
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1382
1382
|
viewBox: "0 0 24 24"
|
|
@@ -1652,17 +1652,17 @@ function A0(e, t) {
|
|
|
1652
1652
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 4h18"></path><path d="M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4"></path><path d="M12 16v4"></path><path d="M9 20h6"></path><path d="M8 12l3-3l2 2l3-3"></path></g>', 1)
|
|
1653
1653
|
]));
|
|
1654
1654
|
}
|
|
1655
|
-
const Nu = /* @__PURE__ */ _(q0, [["render", A0]]),
|
|
1655
|
+
const Nu = /* @__PURE__ */ _(q0, [["render", A0]]), R0 = {}, O0 = {
|
|
1656
1656
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1657
1657
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1658
1658
|
viewBox: "0 0 24 24"
|
|
1659
1659
|
};
|
|
1660
1660
|
function B0(e, t) {
|
|
1661
|
-
return c(), w("svg",
|
|
1661
|
+
return c(), w("svg", O0, t[0] || (t[0] = [
|
|
1662
1662
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 12V8"></path><path d="M15 12v-2"></path><path d="M12 12v-1"></path><path d="M3 4h18"></path><path d="M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V4"></path><path d="M12 16v4"></path><path d="M9 20h6"></path></g>', 1)
|
|
1663
1663
|
]));
|
|
1664
1664
|
}
|
|
1665
|
-
const Iu = /* @__PURE__ */ _(
|
|
1665
|
+
const Iu = /* @__PURE__ */ _(R0, [["render", B0]]), F0 = {}, V0 = {
|
|
1666
1666
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1667
1667
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1668
1668
|
viewBox: "0 0 24 24"
|
|
@@ -1757,7 +1757,7 @@ function ow(e, t) {
|
|
|
1757
1757
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 5H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.697"></path><path d="M18 12V7a2 2 0 0 0-2-2h-2"></path><rect x="8" y="3" width="6" height="4" rx="2"></rect><path d="M8 11h4"></path><path d="M8 15h3"></path><circle cx="16.5" cy="17.5" r="2.5"></circle><path d="M18.5 19.5L21 22"></path></g>', 1)
|
|
1758
1758
|
]));
|
|
1759
1759
|
}
|
|
1760
|
-
const
|
|
1760
|
+
const Ru = /* @__PURE__ */ _(nw, [["render", ow]]), sw = {}, lw = {
|
|
1761
1761
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1762
1762
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1763
1763
|
viewBox: "0 0 24 24"
|
|
@@ -1803,7 +1803,7 @@ function dw(e, t) {
|
|
|
1803
1803
|
], -1)
|
|
1804
1804
|
]));
|
|
1805
1805
|
}
|
|
1806
|
-
const
|
|
1806
|
+
const Ou = /* @__PURE__ */ _(uw, [["render", dw]]), fw = {}, pw = {
|
|
1807
1807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1808
1808
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1809
1809
|
viewBox: "0 0 24 24"
|
|
@@ -1966,17 +1966,17 @@ function Aw(e, t) {
|
|
|
1966
1966
|
], -1)
|
|
1967
1967
|
]));
|
|
1968
1968
|
}
|
|
1969
|
-
const Lu = /* @__PURE__ */ _(qw, [["render", Aw]]),
|
|
1969
|
+
const Lu = /* @__PURE__ */ _(qw, [["render", Aw]]), Rw = {}, Ow = {
|
|
1970
1970
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1971
1971
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1972
1972
|
viewBox: "0 0 24 24"
|
|
1973
1973
|
};
|
|
1974
1974
|
function Bw(e, t) {
|
|
1975
|
-
return c(), w("svg",
|
|
1975
|
+
return c(), w("svg", Ow, t[0] || (t[0] = [
|
|
1976
1976
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="7" r="4"></circle><path d="M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path><path d="M21 21v-2a4 4 0 0 0-3-3.85"></path></g>', 1)
|
|
1977
1977
|
]));
|
|
1978
1978
|
}
|
|
1979
|
-
const Hu = /* @__PURE__ */ _(
|
|
1979
|
+
const Hu = /* @__PURE__ */ _(Rw, [["render", Bw]]), Fw = {}, Vw = {
|
|
1980
1980
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1981
1981
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1982
1982
|
viewBox: "0 0 24 24"
|
|
@@ -2226,8 +2226,8 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2226
2226
|
ChartBubble: qi,
|
|
2227
2227
|
ChartDonut: zi,
|
|
2228
2228
|
ChartLine: Ai,
|
|
2229
|
-
ChartPie:
|
|
2230
|
-
ChartRadar:
|
|
2229
|
+
ChartPie: Ri,
|
|
2230
|
+
ChartRadar: Oi,
|
|
2231
2231
|
Checkbox: Bi,
|
|
2232
2232
|
CheckupList: Fi,
|
|
2233
2233
|
CircleMinus: Gu,
|
|
@@ -2297,9 +2297,9 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2297
2297
|
Report: qu,
|
|
2298
2298
|
ReportAnalytics: zu,
|
|
2299
2299
|
ReportMoney: Au,
|
|
2300
|
-
ReportSearch:
|
|
2300
|
+
ReportSearch: Ru,
|
|
2301
2301
|
Search: Kt,
|
|
2302
|
-
Settings:
|
|
2302
|
+
Settings: Ou,
|
|
2303
2303
|
SmartHome: Bu,
|
|
2304
2304
|
Sun: Fu,
|
|
2305
2305
|
TransferIn: Vu,
|
|
@@ -2311,7 +2311,7 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2311
2311
|
UserPlus: Lu,
|
|
2312
2312
|
Users: Hu,
|
|
2313
2313
|
X: Xa
|
|
2314
|
-
}, Symbol.toStringTag, { value: "Module" })), Ya =
|
|
2314
|
+
}, Symbol.toStringTag, { value: "Module" })), Ya = le({
|
|
2315
2315
|
name: "UzIcon",
|
|
2316
2316
|
props: {
|
|
2317
2317
|
icon: {
|
|
@@ -2330,7 +2330,7 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2330
2330
|
}
|
|
2331
2331
|
r.value = a;
|
|
2332
2332
|
};
|
|
2333
|
-
return n(e.icon),
|
|
2333
|
+
return n(e.icon), ce(
|
|
2334
2334
|
() => e.icon,
|
|
2335
2335
|
(a) => {
|
|
2336
2336
|
n(a);
|
|
@@ -2438,7 +2438,7 @@ function Me(e, t, r = "1 Day") {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
Ct.set(e, t, r);
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function Oe(e, t) {
|
|
2442
2442
|
return Ct.get(e, t);
|
|
2443
2443
|
}
|
|
2444
2444
|
const Ca = (e) => {
|
|
@@ -2680,7 +2680,7 @@ Je.interceptors.request.use(
|
|
|
2680
2680
|
(e) => {
|
|
2681
2681
|
var r, n;
|
|
2682
2682
|
e.cancelToken = $a.token, e.headers.Language = he.lang;
|
|
2683
|
-
const t =
|
|
2683
|
+
const t = Oe(
|
|
2684
2684
|
"token",
|
|
2685
2685
|
!1
|
|
2686
2686
|
);
|
|
@@ -2769,7 +2769,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2769
2769
|
url: `${Gt}${e}`,
|
|
2770
2770
|
method: "POST",
|
|
2771
2771
|
data: t
|
|
2772
|
-
}), Am = (e) => we("dynamic-table/queryById", { id: e }),
|
|
2772
|
+
}), Am = (e) => we("dynamic-table/queryById", { id: e }), Rm = (e) => we("dynamic-table/createTime", { id: e }), Ze = (e) => we("table/query", e), eo = (e) => we("table/submit", e), Om = (e) => we("table/delete", e), Pe = (e, t, r) => we("calculation/sqlExecute", {
|
|
2773
2773
|
calculationIds: e,
|
|
2774
2774
|
linkId: t,
|
|
2775
2775
|
...r
|
|
@@ -3067,7 +3067,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
3067
3067
|
children: r.c.map((n) => $o(n))
|
|
3068
3068
|
});
|
|
3069
3069
|
return t;
|
|
3070
|
-
}, Em =
|
|
3070
|
+
}, Em = le({
|
|
3071
3071
|
name: "UzBack",
|
|
3072
3072
|
components: {
|
|
3073
3073
|
ArrowNarrowLeft: Ka,
|
|
@@ -3091,7 +3091,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
3091
3091
|
});
|
|
3092
3092
|
function Lm(e, t, r, n, a, o) {
|
|
3093
3093
|
const s = $("ArrowNarrowLeft"), u = $("NIcon"), p = $("NButton");
|
|
3094
|
-
return c(),
|
|
3094
|
+
return c(), A(p, {
|
|
3095
3095
|
quaternary: "",
|
|
3096
3096
|
onClick: e.back
|
|
3097
3097
|
}, {
|
|
@@ -3104,12 +3104,12 @@ function Lm(e, t, r, n, a, o) {
|
|
|
3104
3104
|
})
|
|
3105
3105
|
]),
|
|
3106
3106
|
default: k(() => [
|
|
3107
|
-
i("span", null,
|
|
3107
|
+
i("span", null, L(e.$t("Common.back")), 1)
|
|
3108
3108
|
]),
|
|
3109
3109
|
_: 1
|
|
3110
3110
|
}, 8, ["onClick"]);
|
|
3111
3111
|
}
|
|
3112
|
-
const Hm = /* @__PURE__ */ _(Em, [["render", Lm]]), Km =
|
|
3112
|
+
const Hm = /* @__PURE__ */ _(Em, [["render", Lm]]), Km = le({
|
|
3113
3113
|
name: "UzCircle",
|
|
3114
3114
|
components: {
|
|
3115
3115
|
NPopover: ct
|
|
@@ -3214,11 +3214,11 @@ function Ym(e, t, r, n, a, o) {
|
|
|
3214
3214
|
transform: e.calculatePoint(),
|
|
3215
3215
|
fill: e.styles.pointBg
|
|
3216
3216
|
}, null, 8, Qm),
|
|
3217
|
-
i("text", Xm,
|
|
3217
|
+
i("text", Xm, L(e.circleTxt ? e.circleTxt : `${e.circle}%`), 1)
|
|
3218
3218
|
]);
|
|
3219
3219
|
}
|
|
3220
3220
|
const Zm = /* @__PURE__ */ _(Km, [["render", Ym]]);
|
|
3221
|
-
var
|
|
3221
|
+
var Rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3222
3222
|
function to(e) {
|
|
3223
3223
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3224
3224
|
}
|
|
@@ -3333,19 +3333,19 @@ function sv() {
|
|
|
3333
3333
|
}
|
|
3334
3334
|
return kr = e, kr;
|
|
3335
3335
|
}
|
|
3336
|
-
var br,
|
|
3336
|
+
var br, Ro;
|
|
3337
3337
|
function lv() {
|
|
3338
|
-
if (
|
|
3339
|
-
|
|
3338
|
+
if (Ro) return br;
|
|
3339
|
+
Ro = 1;
|
|
3340
3340
|
function e(t) {
|
|
3341
3341
|
return this.__data__.get(t);
|
|
3342
3342
|
}
|
|
3343
3343
|
return br = e, br;
|
|
3344
3344
|
}
|
|
3345
|
-
var _r,
|
|
3345
|
+
var _r, Oo;
|
|
3346
3346
|
function iv() {
|
|
3347
|
-
if (
|
|
3348
|
-
|
|
3347
|
+
if (Oo) return _r;
|
|
3348
|
+
Oo = 1;
|
|
3349
3349
|
function e(t) {
|
|
3350
3350
|
return this.__data__.has(t);
|
|
3351
3351
|
}
|
|
@@ -3355,7 +3355,7 @@ var xr, Bo;
|
|
|
3355
3355
|
function hc() {
|
|
3356
3356
|
if (Bo) return xr;
|
|
3357
3357
|
Bo = 1;
|
|
3358
|
-
var e = typeof
|
|
3358
|
+
var e = typeof Rt == "object" && Rt && Rt.Object === Object && Rt;
|
|
3359
3359
|
return xr = e, xr;
|
|
3360
3360
|
}
|
|
3361
3361
|
var Cr, Fo;
|
|
@@ -3479,13 +3479,13 @@ function pv() {
|
|
|
3479
3479
|
var e = wc(), t = fv(), r = Qe(), n = mc(), a = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, u = Object.prototype, p = s.toString, h = u.hasOwnProperty, b = RegExp(
|
|
3480
3480
|
"^" + p.call(h).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3481
3481
|
);
|
|
3482
|
-
function
|
|
3482
|
+
function D(y) {
|
|
3483
3483
|
if (!r(y) || t(y))
|
|
3484
3484
|
return !1;
|
|
3485
3485
|
var f = e(y) ? b : o;
|
|
3486
3486
|
return f.test(n(y));
|
|
3487
3487
|
}
|
|
3488
|
-
return zr =
|
|
3488
|
+
return zr = D, zr;
|
|
3489
3489
|
}
|
|
3490
3490
|
var Ar, Qo;
|
|
3491
3491
|
function hv() {
|
|
@@ -3496,23 +3496,23 @@ function hv() {
|
|
|
3496
3496
|
}
|
|
3497
3497
|
return Ar = e, Ar;
|
|
3498
3498
|
}
|
|
3499
|
-
var
|
|
3499
|
+
var Rr, Xo;
|
|
3500
3500
|
function rt() {
|
|
3501
|
-
if (Xo) return
|
|
3501
|
+
if (Xo) return Rr;
|
|
3502
3502
|
Xo = 1;
|
|
3503
3503
|
var e = pv(), t = hv();
|
|
3504
3504
|
function r(n, a) {
|
|
3505
3505
|
var o = t(n, a);
|
|
3506
3506
|
return e(o) ? o : void 0;
|
|
3507
3507
|
}
|
|
3508
|
-
return
|
|
3508
|
+
return Rr = r, Rr;
|
|
3509
3509
|
}
|
|
3510
|
-
var
|
|
3510
|
+
var Or, Yo;
|
|
3511
3511
|
function no() {
|
|
3512
|
-
if (Yo) return
|
|
3512
|
+
if (Yo) return Or;
|
|
3513
3513
|
Yo = 1;
|
|
3514
3514
|
var e = rt(), t = Se(), r = e(t, "Map");
|
|
3515
|
-
return
|
|
3515
|
+
return Or = r, Or;
|
|
3516
3516
|
}
|
|
3517
3517
|
var Br, Zo;
|
|
3518
3518
|
function Qt() {
|
|
@@ -3770,8 +3770,8 @@ function Yt() {
|
|
|
3770
3770
|
var u = !o;
|
|
3771
3771
|
o || (o = {});
|
|
3772
3772
|
for (var p = -1, h = a.length; ++p < h; ) {
|
|
3773
|
-
var b = a[p],
|
|
3774
|
-
|
|
3773
|
+
var b = a[p], D = s ? s(o[b], n[b], b, o, n) : void 0;
|
|
3774
|
+
D === void 0 && (D = n[b]), u ? t(o, b, D) : e(o, b, D);
|
|
3775
3775
|
}
|
|
3776
3776
|
return o;
|
|
3777
3777
|
}
|
|
@@ -3843,7 +3843,7 @@ function yc() {
|
|
|
3843
3843
|
}(wt, wt.exports)), wt.exports;
|
|
3844
3844
|
}
|
|
3845
3845
|
var pn, Ts;
|
|
3846
|
-
function
|
|
3846
|
+
function Rv() {
|
|
3847
3847
|
if (Ts) return pn;
|
|
3848
3848
|
Ts = 1;
|
|
3849
3849
|
var e = 9007199254740991, t = /^(?:0|[1-9]\d*)$/;
|
|
@@ -3864,15 +3864,15 @@ function kc() {
|
|
|
3864
3864
|
return hn = t, hn;
|
|
3865
3865
|
}
|
|
3866
3866
|
var wn, Is;
|
|
3867
|
-
function
|
|
3867
|
+
function Ov() {
|
|
3868
3868
|
if (Is) return wn;
|
|
3869
3869
|
Is = 1;
|
|
3870
|
-
var e = Mt(), t = kc(), r = ft(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", p = "[object Function]", h = "[object Map]", b = "[object Number]",
|
|
3871
|
-
|
|
3872
|
-
function
|
|
3873
|
-
return r(
|
|
3870
|
+
var e = Mt(), t = kc(), r = ft(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", p = "[object Function]", h = "[object Map]", b = "[object Number]", D = "[object Object]", y = "[object RegExp]", f = "[object Set]", g = "[object String]", l = "[object WeakMap]", v = "[object ArrayBuffer]", m = "[object DataView]", d = "[object Float32Array]", x = "[object Float64Array]", N = "[object Int8Array]", V = "[object Int16Array]", U = "[object Int32Array]", B = "[object Uint8Array]", q = "[object Uint8ClampedArray]", j = "[object Uint16Array]", C = "[object Uint32Array]", I = {};
|
|
3871
|
+
I[d] = I[x] = I[N] = I[V] = I[U] = I[B] = I[q] = I[j] = I[C] = !0, I[n] = I[a] = I[v] = I[o] = I[m] = I[s] = I[u] = I[p] = I[h] = I[b] = I[D] = I[y] = I[f] = I[g] = I[l] = !1;
|
|
3872
|
+
function R(F) {
|
|
3873
|
+
return r(F) && t(F.length) && !!I[e(F)];
|
|
3874
3874
|
}
|
|
3875
|
-
return wn =
|
|
3875
|
+
return wn = R, wn;
|
|
3876
3876
|
}
|
|
3877
3877
|
var mn, Ds;
|
|
3878
3878
|
function oo() {
|
|
@@ -3904,16 +3904,16 @@ var vn, qs;
|
|
|
3904
3904
|
function Bv() {
|
|
3905
3905
|
if (qs) return vn;
|
|
3906
3906
|
qs = 1;
|
|
3907
|
-
var e =
|
|
3907
|
+
var e = Ov(), t = oo(), r = so(), n = r && r.isTypedArray, a = n ? t(n) : e;
|
|
3908
3908
|
return vn = a, vn;
|
|
3909
3909
|
}
|
|
3910
3910
|
var gn, zs;
|
|
3911
3911
|
function bc() {
|
|
3912
3912
|
if (zs) return gn;
|
|
3913
3913
|
zs = 1;
|
|
3914
|
-
var e = jv(), t = zv(), r = ao(), n = yc(), a =
|
|
3914
|
+
var e = jv(), t = zv(), r = ao(), n = yc(), a = Rv(), o = Bv(), s = Object.prototype, u = s.hasOwnProperty;
|
|
3915
3915
|
function p(h, b) {
|
|
3916
|
-
var
|
|
3916
|
+
var D = r(h), y = !D && t(h), f = !D && !y && n(h), g = !D && !y && !f && o(h), l = D || y || f || g, v = l ? e(h.length, String) : [], m = v.length;
|
|
3917
3917
|
for (var d in h)
|
|
3918
3918
|
(b || u.call(h, d)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
3919
3919
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -3935,10 +3935,10 @@ function lo() {
|
|
|
3935
3935
|
}
|
|
3936
3936
|
return yn = t, yn;
|
|
3937
3937
|
}
|
|
3938
|
-
var kn,
|
|
3938
|
+
var kn, Rs;
|
|
3939
3939
|
function _c() {
|
|
3940
|
-
if (
|
|
3941
|
-
|
|
3940
|
+
if (Rs) return kn;
|
|
3941
|
+
Rs = 1;
|
|
3942
3942
|
function e(t, r) {
|
|
3943
3943
|
return function(n) {
|
|
3944
3944
|
return t(r(n));
|
|
@@ -3946,10 +3946,10 @@ function _c() {
|
|
|
3946
3946
|
}
|
|
3947
3947
|
return kn = e, kn;
|
|
3948
3948
|
}
|
|
3949
|
-
var bn,
|
|
3949
|
+
var bn, Os;
|
|
3950
3950
|
function Fv() {
|
|
3951
|
-
if (
|
|
3952
|
-
|
|
3951
|
+
if (Os) return bn;
|
|
3952
|
+
Os = 1;
|
|
3953
3953
|
var e = _c(), t = e(Object.keys, Object);
|
|
3954
3954
|
return bn = t, bn;
|
|
3955
3955
|
}
|
|
@@ -4055,7 +4055,7 @@ function Hv() {
|
|
|
4055
4055
|
function p(h, b) {
|
|
4056
4056
|
if (b)
|
|
4057
4057
|
return h.slice();
|
|
4058
|
-
var
|
|
4058
|
+
var D = h.length, y = u ? u(D) : new h.constructor(D);
|
|
4059
4059
|
return h.copy(y), y;
|
|
4060
4060
|
}
|
|
4061
4061
|
e.exports = p;
|
|
@@ -4127,23 +4127,23 @@ function $c() {
|
|
|
4127
4127
|
}
|
|
4128
4128
|
return An = e, An;
|
|
4129
4129
|
}
|
|
4130
|
-
var
|
|
4130
|
+
var Rn, Zs;
|
|
4131
4131
|
function Mc() {
|
|
4132
|
-
if (Zs) return
|
|
4132
|
+
if (Zs) return Rn;
|
|
4133
4133
|
Zs = 1;
|
|
4134
4134
|
var e = _c(), t = e(Object.getPrototypeOf, Object);
|
|
4135
|
-
return
|
|
4135
|
+
return Rn = t, Rn;
|
|
4136
4136
|
}
|
|
4137
|
-
var
|
|
4137
|
+
var On, el;
|
|
4138
4138
|
function Sc() {
|
|
4139
|
-
if (el) return
|
|
4139
|
+
if (el) return On;
|
|
4140
4140
|
el = 1;
|
|
4141
4141
|
var e = $c(), t = Mc(), r = co(), n = Cc(), a = Object.getOwnPropertySymbols, o = a ? function(s) {
|
|
4142
4142
|
for (var u = []; s; )
|
|
4143
4143
|
e(u, r(s)), s = t(s);
|
|
4144
4144
|
return u;
|
|
4145
4145
|
} : n;
|
|
4146
|
-
return
|
|
4146
|
+
return On = o, On;
|
|
4147
4147
|
}
|
|
4148
4148
|
var Bn, tl;
|
|
4149
4149
|
function Jv() {
|
|
@@ -4218,8 +4218,8 @@ var Kn, ul;
|
|
|
4218
4218
|
function fo() {
|
|
4219
4219
|
if (ul) return Kn;
|
|
4220
4220
|
ul = 1;
|
|
4221
|
-
var e = Yv(), t = no(), r = Zv(), n = eg(), a = tg(), o = Mt(), s = mc(), u = "[object Map]", p = "[object Object]", h = "[object Promise]", b = "[object Set]",
|
|
4222
|
-
return (e && d(new e(new ArrayBuffer(1))) != y || t && d(new t()) != u || r && d(r.resolve()) != h || n && d(new n()) != b || a && d(new a()) !=
|
|
4221
|
+
var e = Yv(), t = no(), r = Zv(), n = eg(), a = tg(), o = Mt(), s = mc(), u = "[object Map]", p = "[object Object]", h = "[object Promise]", b = "[object Set]", D = "[object WeakMap]", y = "[object DataView]", f = s(e), g = s(t), l = s(r), v = s(n), m = s(a), d = o;
|
|
4222
|
+
return (e && d(new e(new ArrayBuffer(1))) != y || t && d(new t()) != u || r && d(r.resolve()) != h || n && d(new n()) != b || a && d(new a()) != D) && (d = function(x) {
|
|
4223
4223
|
var N = o(x), V = N == p ? x.constructor : void 0, U = V ? s(V) : "";
|
|
4224
4224
|
if (U)
|
|
4225
4225
|
switch (U) {
|
|
@@ -4232,7 +4232,7 @@ function fo() {
|
|
|
4232
4232
|
case v:
|
|
4233
4233
|
return b;
|
|
4234
4234
|
case m:
|
|
4235
|
-
return
|
|
4235
|
+
return D;
|
|
4236
4236
|
}
|
|
4237
4237
|
return N;
|
|
4238
4238
|
}), Kn = d, Kn;
|
|
@@ -4313,17 +4313,17 @@ var ea, vl;
|
|
|
4313
4313
|
function ig() {
|
|
4314
4314
|
if (vl) return ea;
|
|
4315
4315
|
vl = 1;
|
|
4316
|
-
var e = po(), t = ag(), r = og(), n = sg(), a = lg(), o = "[object Boolean]", s = "[object Date]", u = "[object Map]", p = "[object Number]", h = "[object RegExp]", b = "[object Set]",
|
|
4317
|
-
function q(
|
|
4318
|
-
var
|
|
4316
|
+
var e = po(), t = ag(), r = og(), n = sg(), a = lg(), o = "[object Boolean]", s = "[object Date]", u = "[object Map]", p = "[object Number]", h = "[object RegExp]", b = "[object Set]", D = "[object String]", y = "[object Symbol]", f = "[object ArrayBuffer]", g = "[object DataView]", l = "[object Float32Array]", v = "[object Float64Array]", m = "[object Int8Array]", d = "[object Int16Array]", x = "[object Int32Array]", N = "[object Uint8Array]", V = "[object Uint8ClampedArray]", U = "[object Uint16Array]", B = "[object Uint32Array]";
|
|
4317
|
+
function q(j, C, I) {
|
|
4318
|
+
var R = j.constructor;
|
|
4319
4319
|
switch (C) {
|
|
4320
4320
|
case f:
|
|
4321
|
-
return e(
|
|
4321
|
+
return e(j);
|
|
4322
4322
|
case o:
|
|
4323
4323
|
case s:
|
|
4324
|
-
return new
|
|
4324
|
+
return new R(+j);
|
|
4325
4325
|
case g:
|
|
4326
|
-
return t(
|
|
4326
|
+
return t(j, I);
|
|
4327
4327
|
case l:
|
|
4328
4328
|
case v:
|
|
4329
4329
|
case m:
|
|
@@ -4332,19 +4332,19 @@ function ig() {
|
|
|
4332
4332
|
case N:
|
|
4333
4333
|
case V:
|
|
4334
4334
|
case U:
|
|
4335
|
-
case
|
|
4336
|
-
return a(
|
|
4335
|
+
case B:
|
|
4336
|
+
return a(j, I);
|
|
4337
4337
|
case u:
|
|
4338
|
-
return new
|
|
4338
|
+
return new R();
|
|
4339
4339
|
case p:
|
|
4340
|
-
case
|
|
4341
|
-
return new
|
|
4340
|
+
case D:
|
|
4341
|
+
return new R(j);
|
|
4342
4342
|
case h:
|
|
4343
|
-
return r(
|
|
4343
|
+
return r(j);
|
|
4344
4344
|
case b:
|
|
4345
|
-
return new
|
|
4345
|
+
return new R();
|
|
4346
4346
|
case y:
|
|
4347
|
-
return n(
|
|
4347
|
+
return n(j);
|
|
4348
4348
|
}
|
|
4349
4349
|
}
|
|
4350
4350
|
return ea = q, ea;
|
|
@@ -4416,44 +4416,44 @@ var la, Cl;
|
|
|
4416
4416
|
function wg() {
|
|
4417
4417
|
if (Cl) return la;
|
|
4418
4418
|
Cl = 1;
|
|
4419
|
-
var e = Nv(), t = Iv(), r = gc(), n = Uv(), a = Lv(), o = Hv(), s = Kv(), u = Wv(), p = Jv(), h = Qv(), b = Xv(),
|
|
4420
|
-
ne[
|
|
4421
|
-
function nt(
|
|
4422
|
-
var
|
|
4423
|
-
if (Fe && (
|
|
4424
|
-
return
|
|
4425
|
-
if (!d(
|
|
4426
|
-
return
|
|
4427
|
-
var ht = l(
|
|
4419
|
+
var e = Nv(), t = Iv(), r = gc(), n = Uv(), a = Lv(), o = Hv(), s = Kv(), u = Wv(), p = Jv(), h = Qv(), b = Xv(), D = fo(), y = rg(), f = ig(), g = cg(), l = ao(), v = yc(), m = fg(), d = Qe(), x = hg(), N = io(), V = uo(), U = 1, B = 2, q = 4, j = "[object Arguments]", C = "[object Array]", I = "[object Boolean]", R = "[object Date]", F = "[object Error]", z = "[object Function]", G = "[object GeneratorFunction]", ee = "[object Map]", J = "[object Number]", ie = "[object Object]", pe = "[object RegExp]", Te = "[object Set]", Ce = "[object String]", ye = "[object Symbol]", Ne = "[object WeakMap]", St = "[object ArrayBuffer]", Tt = "[object DataView]", Nt = "[object Float32Array]", tr = "[object Float64Array]", rr = "[object Int8Array]", nr = "[object Int16Array]", ar = "[object Int32Array]", Xe = "[object Uint8Array]", or = "[object Uint8ClampedArray]", me = "[object Uint16Array]", sr = "[object Uint32Array]", ne = {};
|
|
4420
|
+
ne[j] = ne[C] = ne[St] = ne[Tt] = ne[I] = ne[R] = ne[Nt] = ne[tr] = ne[rr] = ne[nr] = ne[ar] = ne[ee] = ne[J] = ne[ie] = ne[pe] = ne[Te] = ne[Ce] = ne[ye] = ne[Xe] = ne[or] = ne[me] = ne[sr] = !0, ne[F] = ne[z] = ne[Ne] = !1;
|
|
4421
|
+
function nt(te, Be, Fe, lr, at, Ie) {
|
|
4422
|
+
var de, Ve = Be & U, Ue = Be & B, It = Be & q;
|
|
4423
|
+
if (Fe && (de = at ? Fe(te, lr, at, Ie) : Fe(te)), de !== void 0)
|
|
4424
|
+
return de;
|
|
4425
|
+
if (!d(te))
|
|
4426
|
+
return te;
|
|
4427
|
+
var ht = l(te);
|
|
4428
4428
|
if (ht) {
|
|
4429
|
-
if (
|
|
4430
|
-
return s(
|
|
4429
|
+
if (de = y(te), !Ve)
|
|
4430
|
+
return s(te, de);
|
|
4431
4431
|
} else {
|
|
4432
|
-
var De =
|
|
4433
|
-
if (v(
|
|
4434
|
-
return o(
|
|
4435
|
-
if (De ==
|
|
4436
|
-
if (
|
|
4437
|
-
return Ue ? p(
|
|
4432
|
+
var De = D(te), Dt = De == z || De == G;
|
|
4433
|
+
if (v(te))
|
|
4434
|
+
return o(te, Ve);
|
|
4435
|
+
if (De == ie || De == j || Dt && !at) {
|
|
4436
|
+
if (de = Ue || Dt ? {} : g(te), !Ve)
|
|
4437
|
+
return Ue ? p(te, a(de, te)) : u(te, n(de, te));
|
|
4438
4438
|
} else {
|
|
4439
4439
|
if (!ne[De])
|
|
4440
|
-
return at ?
|
|
4441
|
-
|
|
4440
|
+
return at ? te : {};
|
|
4441
|
+
de = f(te, De, Ve);
|
|
4442
4442
|
}
|
|
4443
4443
|
}
|
|
4444
4444
|
Ie || (Ie = new e());
|
|
4445
|
-
var ot = Ie.get(
|
|
4445
|
+
var ot = Ie.get(te);
|
|
4446
4446
|
if (ot)
|
|
4447
4447
|
return ot;
|
|
4448
|
-
Ie.set(
|
|
4449
|
-
|
|
4450
|
-
}) : m(
|
|
4451
|
-
|
|
4448
|
+
Ie.set(te, de), x(te) ? te.forEach(function(je) {
|
|
4449
|
+
de.add(nt(je, Be, Fe, je, te, Ie));
|
|
4450
|
+
}) : m(te) && te.forEach(function(je, Ae) {
|
|
4451
|
+
de.set(Ae, nt(je, Be, Fe, Ae, te, Ie));
|
|
4452
4452
|
});
|
|
4453
|
-
var st = It ? Ue ? b : h : Ue ? V : N, jt = ht ? void 0 : st(
|
|
4454
|
-
return t(jt ||
|
|
4455
|
-
jt && (Ae = je, je =
|
|
4456
|
-
}),
|
|
4453
|
+
var st = It ? Ue ? b : h : Ue ? V : N, jt = ht ? void 0 : st(te);
|
|
4454
|
+
return t(jt || te, function(je, Ae) {
|
|
4455
|
+
jt && (Ae = je, je = te[Ae]), r(de, Ae, nt(je, Be, Fe, Ae, te, Ie));
|
|
4456
|
+
}), de;
|
|
4457
4457
|
}
|
|
4458
4458
|
return la = nt, la;
|
|
4459
4459
|
}
|
|
@@ -4468,7 +4468,7 @@ function mg() {
|
|
|
4468
4468
|
return ia = n, ia;
|
|
4469
4469
|
}
|
|
4470
4470
|
var vg = mg();
|
|
4471
|
-
const
|
|
4471
|
+
const X = /* @__PURE__ */ to(vg), gg = le({
|
|
4472
4472
|
name: "UzFormItem",
|
|
4473
4473
|
components: {
|
|
4474
4474
|
NIcon: ve,
|
|
@@ -4479,7 +4479,7 @@ const Q = /* @__PURE__ */ to(vg), gg = ie({
|
|
|
4479
4479
|
NTimePicker: Wc,
|
|
4480
4480
|
NSwitch: Gc,
|
|
4481
4481
|
NColorPicker: Kc,
|
|
4482
|
-
NCheckbox:
|
|
4482
|
+
NCheckbox: Ra,
|
|
4483
4483
|
NCheckboxGroup: Aa,
|
|
4484
4484
|
NCascader: El,
|
|
4485
4485
|
NTooltip: Pl,
|
|
@@ -4609,7 +4609,7 @@ const Q = /* @__PURE__ */ to(vg), gg = ie({
|
|
|
4609
4609
|
}
|
|
4610
4610
|
},
|
|
4611
4611
|
handleFocus: (l) => {
|
|
4612
|
-
const v =
|
|
4612
|
+
const v = X(e.item.params.options);
|
|
4613
4613
|
if (e.formValue && e.formValue[l]) {
|
|
4614
4614
|
const d = e.formValue[l].toLocaleLowerCase();
|
|
4615
4615
|
v.forEach((x) => {
|
|
@@ -4635,9 +4635,9 @@ const Q = /* @__PURE__ */ to(vg), gg = ie({
|
|
|
4635
4635
|
}
|
|
4636
4636
|
}), yg = { class: "flex flex-wrap gap-2" };
|
|
4637
4637
|
function kg(e, t, r, n, a, o) {
|
|
4638
|
-
const s = $("NInput"), u = $("NDropdown"), p = $("NInputNumber"), h = $("NDatePicker"), b = $("NSelect"),
|
|
4639
|
-
return c(), w(
|
|
4640
|
-
e.item.input === "input" ? (c(),
|
|
4638
|
+
const s = $("NInput"), u = $("NDropdown"), p = $("NInputNumber"), h = $("NDatePicker"), b = $("NSelect"), D = $("NCascader"), y = $("NColorPicker"), f = $("NCheckbox"), g = $("NCheckboxGroup"), l = $("NTimePicker"), v = $("NSwitch"), m = $("UzFormItemUpload");
|
|
4639
|
+
return c(), w(se, null, [
|
|
4640
|
+
e.item.input === "input" ? (c(), A(s, {
|
|
4641
4641
|
key: 0,
|
|
4642
4642
|
value: e.formValue[e.item.key],
|
|
4643
4643
|
"onUpdate:value": [
|
|
@@ -4656,30 +4656,30 @@ function kg(e, t, r, n, a, o) {
|
|
|
4656
4656
|
maxlength: e.item.params.maxlength,
|
|
4657
4657
|
rows: e.item.params.rows,
|
|
4658
4658
|
"show-count": !!e.item.params.maxlength,
|
|
4659
|
-
class:
|
|
4660
|
-
},
|
|
4659
|
+
class: ue(e.checkClassReadonly())
|
|
4660
|
+
}, Re({ _: 2 }, [
|
|
4661
4661
|
e.item.params.prefix ? {
|
|
4662
4662
|
name: "prefix",
|
|
4663
4663
|
fn: k(() => [
|
|
4664
|
-
|
|
4664
|
+
H(L(e.item.params.prefix), 1)
|
|
4665
4665
|
]),
|
|
4666
4666
|
key: "0"
|
|
4667
4667
|
} : void 0,
|
|
4668
4668
|
e.item.params.suffix ? {
|
|
4669
4669
|
name: "suffix",
|
|
4670
4670
|
fn: k(() => [
|
|
4671
|
-
|
|
4671
|
+
H(L(e.item.params.suffix), 1)
|
|
4672
4672
|
]),
|
|
4673
4673
|
key: "1"
|
|
4674
4674
|
} : void 0
|
|
4675
|
-
]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (c(),
|
|
4675
|
+
]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (c(), A(s, {
|
|
4676
4676
|
key: 1,
|
|
4677
4677
|
value: String(e.formValue[e.item.key] ?? ""),
|
|
4678
4678
|
placeholder: e.showPlaceholder(e.item),
|
|
4679
4679
|
class: "uz-input-readonly",
|
|
4680
4680
|
readonly: ""
|
|
4681
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
4682
|
-
e.item.input === "auto" ? (c(),
|
|
4681
|
+
}, null, 8, ["value", "placeholder"])) : W("", !0),
|
|
4682
|
+
e.item.input === "auto" ? (c(), A(u, {
|
|
4683
4683
|
key: 2,
|
|
4684
4684
|
width: "trigger",
|
|
4685
4685
|
show: e.showDropdown,
|
|
@@ -4710,26 +4710,26 @@ function kg(e, t, r, n, a, o) {
|
|
|
4710
4710
|
maxlength: e.item.params.maxlength,
|
|
4711
4711
|
rows: e.item.params.rows,
|
|
4712
4712
|
"show-count": !!e.item.params.maxlength,
|
|
4713
|
-
class:
|
|
4714
|
-
},
|
|
4713
|
+
class: ue(e.checkClassReadonly())
|
|
4714
|
+
}, Re({ _: 2 }, [
|
|
4715
4715
|
e.item.params.prefix ? {
|
|
4716
4716
|
name: "prefix",
|
|
4717
4717
|
fn: k(() => [
|
|
4718
|
-
|
|
4718
|
+
H(L(e.item.params.prefix), 1)
|
|
4719
4719
|
]),
|
|
4720
4720
|
key: "0"
|
|
4721
4721
|
} : void 0,
|
|
4722
4722
|
e.item.params.suffix ? {
|
|
4723
4723
|
name: "suffix",
|
|
4724
4724
|
fn: k(() => [
|
|
4725
|
-
|
|
4725
|
+
H(L(e.item.params.suffix), 1)
|
|
4726
4726
|
]),
|
|
4727
4727
|
key: "1"
|
|
4728
4728
|
} : void 0
|
|
4729
4729
|
]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])
|
|
4730
4730
|
]),
|
|
4731
4731
|
_: 1
|
|
4732
|
-
}, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (c(),
|
|
4732
|
+
}, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (c(), A(p, {
|
|
4733
4733
|
key: 3,
|
|
4734
4734
|
value: e.formValue[e.item.key],
|
|
4735
4735
|
"onUpdate:value": [
|
|
@@ -4747,23 +4747,23 @@ function kg(e, t, r, n, a, o) {
|
|
|
4747
4747
|
step: e.item.params.step,
|
|
4748
4748
|
showButton: e.item.params.showButton,
|
|
4749
4749
|
precision: e.item.params.precision,
|
|
4750
|
-
class:
|
|
4751
|
-
},
|
|
4750
|
+
class: ue(e.checkClassReadonly())
|
|
4751
|
+
}, Re({ _: 2 }, [
|
|
4752
4752
|
e.item.params.prefix ? {
|
|
4753
4753
|
name: "prefix",
|
|
4754
4754
|
fn: k(() => [
|
|
4755
|
-
|
|
4755
|
+
H(L(e.item.params.prefix), 1)
|
|
4756
4756
|
]),
|
|
4757
4757
|
key: "0"
|
|
4758
4758
|
} : void 0,
|
|
4759
4759
|
e.item.params.suffix ? {
|
|
4760
4760
|
name: "suffix",
|
|
4761
4761
|
fn: k(() => [
|
|
4762
|
-
|
|
4762
|
+
H(L(e.item.params.suffix), 1)
|
|
4763
4763
|
]),
|
|
4764
4764
|
key: "1"
|
|
4765
4765
|
} : void 0
|
|
4766
|
-
]), 1032, ["value", "placeholder", "disabled", "readonly", "clearable", "min", "max", "step", "showButton", "precision", "class"])) : e.item.input === "date" && !e.item.params.format ? (c(),
|
|
4766
|
+
]), 1032, ["value", "placeholder", "disabled", "readonly", "clearable", "min", "max", "step", "showButton", "precision", "class"])) : e.item.input === "date" && !e.item.params.format ? (c(), A(h, {
|
|
4767
4767
|
key: 4,
|
|
4768
4768
|
value: e.formValue[e.item.key],
|
|
4769
4769
|
"onUpdate:value": [
|
|
@@ -4784,8 +4784,8 @@ function kg(e, t, r, n, a, o) {
|
|
|
4784
4784
|
return N.params.isDateDisabled ? N.params.isDateDisabled(d, x) : !1;
|
|
4785
4785
|
},
|
|
4786
4786
|
"close-on-select": !0,
|
|
4787
|
-
class:
|
|
4788
|
-
}, null, 8, ["value", "type", "placeholder", "disabled", "show", "clearable", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "date" && e.item.params.format ? (c(),
|
|
4787
|
+
class: ue(e.checkClassReadonly())
|
|
4788
|
+
}, null, 8, ["value", "type", "placeholder", "disabled", "show", "clearable", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "date" && e.item.params.format ? (c(), A(h, {
|
|
4789
4789
|
key: 5,
|
|
4790
4790
|
"formatted-value": e.formValue[e.item.key],
|
|
4791
4791
|
"onUpdate:formattedValue": [
|
|
@@ -4807,8 +4807,8 @@ function kg(e, t, r, n, a, o) {
|
|
|
4807
4807
|
return N.params.isDateDisabled ? N.params.isDateDisabled(d, x) : !1;
|
|
4808
4808
|
},
|
|
4809
4809
|
"close-on-select": !0,
|
|
4810
|
-
class:
|
|
4811
|
-
}, null, 8, ["formatted-value", "type", "placeholder", "disabled", "show", "clearable", "format", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "select" ? (c(),
|
|
4810
|
+
class: ue(e.checkClassReadonly())
|
|
4811
|
+
}, null, 8, ["formatted-value", "type", "placeholder", "disabled", "show", "clearable", "format", "time-picker-props", "is-date-disabled", "class"])) : e.item.input === "select" ? (c(), A(b, {
|
|
4812
4812
|
key: 6,
|
|
4813
4813
|
value: e.formValue[e.item.key],
|
|
4814
4814
|
"onUpdate:value": [
|
|
@@ -4834,20 +4834,20 @@ function kg(e, t, r, n, a, o) {
|
|
|
4834
4834
|
label: d,
|
|
4835
4835
|
value: `op${Date.now()}-#create#-${d}`
|
|
4836
4836
|
}) : void 0,
|
|
4837
|
-
class:
|
|
4838
|
-
}, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (c(),
|
|
4837
|
+
class: ue(e.checkClassReadonly())
|
|
4838
|
+
}, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "tag", "multiple", "fallback-option", "render-label", "render-tag", "on-create", "class"])) : e.item.input === "cascader" ? (c(), A(D, {
|
|
4839
4839
|
key: 7,
|
|
4840
4840
|
value: e.formValue[e.item.key],
|
|
4841
4841
|
"onUpdate:value": [
|
|
4842
4842
|
t[13] || (t[13] = (d) => e.formValue[e.item.key] = d),
|
|
4843
4843
|
t[14] || (t[14] = (d, x, N) => {
|
|
4844
4844
|
const V = e.item;
|
|
4845
|
-
let U = d,
|
|
4845
|
+
let U = d, B = d;
|
|
4846
4846
|
if (V.params.multiple) {
|
|
4847
|
-
let q = d.filter((
|
|
4848
|
-
q.length === 0 ? (U = [],
|
|
4847
|
+
let q = d.filter((j) => j);
|
|
4848
|
+
q.length === 0 ? (U = [], B = []) : (U = q, B = q);
|
|
4849
4849
|
}
|
|
4850
|
-
e.formValue[e.item.key] = U, N && (e.formValue[`${e.item.key}Str`] = N.map((q) => q.label).join("/")), e.updateValue(e.item,
|
|
4850
|
+
e.formValue[e.item.key] = U, N && (e.formValue[`${e.item.key}Str`] = N.map((q) => q.label).join("/")), e.updateValue(e.item, B);
|
|
4851
4851
|
})
|
|
4852
4852
|
],
|
|
4853
4853
|
placeholder: e.showPlaceholder(e.item),
|
|
@@ -4857,10 +4857,10 @@ function kg(e, t, r, n, a, o) {
|
|
|
4857
4857
|
clearable: e.checkClearable(),
|
|
4858
4858
|
filterable: e.item.params.filterable,
|
|
4859
4859
|
multiple: e.item.params.multiple,
|
|
4860
|
-
class:
|
|
4860
|
+
class: ue(e.checkClassReadonly()),
|
|
4861
4861
|
"check-strategy": "all",
|
|
4862
4862
|
maxTagCount: "responsive"
|
|
4863
|
-
}, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (c(),
|
|
4863
|
+
}, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class"])) : e.item.input === "color" ? (c(), A(y, {
|
|
4864
4864
|
key: 8,
|
|
4865
4865
|
value: e.formValue[e.item.key],
|
|
4866
4866
|
"onUpdate:value": t[15] || (t[15] = (d) => e.formValue[e.item.key] = d),
|
|
@@ -4875,8 +4875,8 @@ function kg(e, t, r, n, a, o) {
|
|
|
4875
4875
|
"#F0A020",
|
|
4876
4876
|
"rgba(208, 48, 80, 1)"
|
|
4877
4877
|
],
|
|
4878
|
-
class:
|
|
4879
|
-
}, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (c(),
|
|
4878
|
+
class: ue(e.checkClassReadonly())
|
|
4879
|
+
}, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (c(), A(g, {
|
|
4880
4880
|
key: 9,
|
|
4881
4881
|
value: e.formValue[e.item.key],
|
|
4882
4882
|
"onUpdate:value": t[16] || (t[16] = (d) => e.formValue[e.item.key] = d),
|
|
@@ -4884,7 +4884,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4884
4884
|
}, {
|
|
4885
4885
|
default: k(() => [
|
|
4886
4886
|
i("div", yg, [
|
|
4887
|
-
(c(!0), w(
|
|
4887
|
+
(c(!0), w(se, null, ke(e.item.params.options, (d) => (c(), A(f, {
|
|
4888
4888
|
key: d.value,
|
|
4889
4889
|
label: d.label,
|
|
4890
4890
|
value: d.value
|
|
@@ -4892,7 +4892,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4892
4892
|
])
|
|
4893
4893
|
]),
|
|
4894
4894
|
_: 1
|
|
4895
|
-
}, 8, ["value", "disabled"])) : e.item.input === "time" ? (c(),
|
|
4895
|
+
}, 8, ["value", "disabled"])) : e.item.input === "time" ? (c(), A(l, {
|
|
4896
4896
|
key: 10,
|
|
4897
4897
|
value: e.formValue[e.item.key],
|
|
4898
4898
|
"onUpdate:value": [
|
|
@@ -4907,8 +4907,8 @@ function kg(e, t, r, n, a, o) {
|
|
|
4907
4907
|
disabled: e.checkDisabled(),
|
|
4908
4908
|
show: e.checkReadonlyShow(),
|
|
4909
4909
|
clearable: e.checkClearable(),
|
|
4910
|
-
class:
|
|
4911
|
-
}, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (c(),
|
|
4910
|
+
class: ue(e.checkClassReadonly())
|
|
4911
|
+
}, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "switch" ? (c(), A(v, {
|
|
4912
4912
|
key: 11,
|
|
4913
4913
|
"checked-value": 1,
|
|
4914
4914
|
"unchecked-value": 0,
|
|
@@ -4921,36 +4921,36 @@ function kg(e, t, r, n, a, o) {
|
|
|
4921
4921
|
],
|
|
4922
4922
|
disabled: e.checkDisabled(),
|
|
4923
4923
|
size: "large"
|
|
4924
|
-
},
|
|
4924
|
+
}, Re({ _: 2 }, [
|
|
4925
4925
|
e.item.params.checked ? {
|
|
4926
4926
|
name: "checked",
|
|
4927
4927
|
fn: k(() => [
|
|
4928
|
-
|
|
4928
|
+
H(L(e.item.params.checked), 1)
|
|
4929
4929
|
]),
|
|
4930
4930
|
key: "0"
|
|
4931
4931
|
} : void 0,
|
|
4932
4932
|
e.item.params.unchecked ? {
|
|
4933
4933
|
name: "unchecked",
|
|
4934
4934
|
fn: k(() => [
|
|
4935
|
-
|
|
4935
|
+
H(L(e.item.params.unchecked), 1)
|
|
4936
4936
|
]),
|
|
4937
4937
|
key: "1"
|
|
4938
4938
|
} : void 0
|
|
4939
|
-
]), 1032, ["value", "disabled"])) : e.item.input === "upload" ? (c(),
|
|
4939
|
+
]), 1032, ["value", "disabled"])) : e.item.input === "upload" ? (c(), A(m, {
|
|
4940
4940
|
key: 12,
|
|
4941
4941
|
value: e.formValue[e.item.key],
|
|
4942
4942
|
"onUpdate:value": t[21] || (t[21] = (d) => e.formValue[e.item.key] = d),
|
|
4943
4943
|
item: e.item,
|
|
4944
4944
|
status: e.status
|
|
4945
|
-
}, null, 8, ["value", "item", "status"])) : (c(), w(
|
|
4945
|
+
}, null, 8, ["value", "item", "status"])) : (c(), w(se, { key: 13 }, [], 64))
|
|
4946
4946
|
], 64);
|
|
4947
4947
|
}
|
|
4948
|
-
const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg =
|
|
4948
|
+
const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
4949
4949
|
name: "UzForm",
|
|
4950
4950
|
components: {
|
|
4951
4951
|
NForm: Fa,
|
|
4952
4952
|
NFormItem: Ba,
|
|
4953
|
-
NDivider:
|
|
4953
|
+
NDivider: Oa,
|
|
4954
4954
|
NButton: ge,
|
|
4955
4955
|
NIcon: ve,
|
|
4956
4956
|
UzFormItem: pt,
|
|
@@ -5006,24 +5006,24 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
|
5006
5006
|
}
|
|
5007
5007
|
},
|
|
5008
5008
|
setup(e, { expose: t }) {
|
|
5009
|
-
const r = He("userStore"), n = _t(() => he.isMobile), a = S(), o = S({}), s = S([]), u = S([]), p = S([]), h = S(), b = S(!1),
|
|
5009
|
+
const r = He("userStore"), n = _t(() => he.isMobile), a = S(), o = S({}), s = S([]), u = S([]), p = S([]), h = S(), b = S(!1), D = S(""), y = S("");
|
|
5010
5010
|
ba("mainFormValue", {
|
|
5011
5011
|
value: () => o.value,
|
|
5012
|
-
setValue: (
|
|
5013
|
-
o.value =
|
|
5012
|
+
setValue: (j) => {
|
|
5013
|
+
o.value = j;
|
|
5014
5014
|
}
|
|
5015
5015
|
});
|
|
5016
|
-
const f = (
|
|
5016
|
+
const f = (j) => {
|
|
5017
5017
|
switch (e.status) {
|
|
5018
5018
|
case 0:
|
|
5019
|
-
return
|
|
5019
|
+
return j.form.create && j.form.create.show;
|
|
5020
5020
|
case 1:
|
|
5021
|
-
return
|
|
5021
|
+
return j.form.edit && j.form.edit.show;
|
|
5022
5022
|
case 2:
|
|
5023
|
-
return
|
|
5023
|
+
return j.form.show;
|
|
5024
5024
|
}
|
|
5025
|
-
}, g = (
|
|
5026
|
-
switch (
|
|
5025
|
+
}, g = (j, C) => {
|
|
5026
|
+
switch (j) {
|
|
5027
5027
|
case "datetime":
|
|
5028
5028
|
case "datetimerange":
|
|
5029
5029
|
return Ye(C, "yyyy-MM-dd hh:mm:ss");
|
|
@@ -5036,20 +5036,20 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
|
5036
5036
|
default:
|
|
5037
5037
|
return Ye(C);
|
|
5038
5038
|
}
|
|
5039
|
-
}, l = (
|
|
5040
|
-
const
|
|
5041
|
-
return
|
|
5042
|
-
}, v = (
|
|
5043
|
-
var
|
|
5039
|
+
}, l = (j, C = !1) => {
|
|
5040
|
+
const I = _e(j).startOf("day").diff(_e().startOf("day"), "day");
|
|
5041
|
+
return I >= 0 ? C ? "success" : `剩余${I}天` : C ? "error" : `逾期${Math.abs(I)}天`;
|
|
5042
|
+
}, v = (j) => (p.value = [], j.forEach((C) => {
|
|
5043
|
+
var I;
|
|
5044
5044
|
if (C.form.defaultValue && !o.value[C.key])
|
|
5045
5045
|
if (C.input === "number")
|
|
5046
5046
|
o.value[C.key] = Number(C.form.defaultValue);
|
|
5047
|
-
else if (C.input === "select" && ((
|
|
5047
|
+
else if (C.input === "select" && ((I = C.params.options) == null ? void 0 : I.length) > 0) {
|
|
5048
5048
|
C.form.defaultValue === "userId" ? o.value[C.key] = r.userId : o.value[C.key] = C.form.defaultValue;
|
|
5049
|
-
const
|
|
5050
|
-
(
|
|
5049
|
+
const R = C.params.options.find(
|
|
5050
|
+
(F) => F.value === o.value[C.key]
|
|
5051
5051
|
);
|
|
5052
|
-
|
|
5052
|
+
R && (o.value[`${C.key}Str`] = R.label);
|
|
5053
5053
|
} else if (C.input === "date")
|
|
5054
5054
|
if (C.params.type.indexOf("range") > -1)
|
|
5055
5055
|
switch (C.form.defaultValue) {
|
|
@@ -5063,33 +5063,33 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
|
5063
5063
|
);
|
|
5064
5064
|
break;
|
|
5065
5065
|
case "start-now":
|
|
5066
|
-
const
|
|
5067
|
-
o.value[C.key] = [
|
|
5066
|
+
const R = _e().startOf("day").valueOf();
|
|
5067
|
+
o.value[C.key] = [R, R], o.value[`${C.key}StartStr`] = g(
|
|
5068
5068
|
C.params.type,
|
|
5069
|
-
|
|
5069
|
+
R
|
|
5070
5070
|
), o.value[`${C.key}EndStr`] = g(
|
|
5071
5071
|
C.params.type,
|
|
5072
|
-
|
|
5072
|
+
R
|
|
5073
5073
|
);
|
|
5074
5074
|
break;
|
|
5075
5075
|
case "end-now":
|
|
5076
|
-
const
|
|
5077
|
-
o.value[C.key] = [
|
|
5076
|
+
const F = _e().endOf("day").valueOf();
|
|
5077
|
+
o.value[C.key] = [F, F], o.value[`${C.key}StartStr`] = g(
|
|
5078
5078
|
C.params.type,
|
|
5079
|
-
|
|
5079
|
+
F
|
|
5080
5080
|
), o.value[`${C.key}EndStr`] = g(
|
|
5081
5081
|
C.params.type,
|
|
5082
|
-
|
|
5082
|
+
F
|
|
5083
5083
|
);
|
|
5084
5084
|
break;
|
|
5085
5085
|
default:
|
|
5086
|
-
const
|
|
5087
|
-
o.value[C.key] = Number.isNaN(
|
|
5086
|
+
const z = Number(C.form.defaultValue);
|
|
5087
|
+
o.value[C.key] = Number.isNaN(z) ? null : [z, z], o.value[`${C.key}StartStr`] = g(
|
|
5088
5088
|
C.params.type,
|
|
5089
|
-
|
|
5089
|
+
z
|
|
5090
5090
|
), o.value[`${C.key}EndStr`] = g(
|
|
5091
5091
|
C.params.type,
|
|
5092
|
-
|
|
5092
|
+
z
|
|
5093
5093
|
);
|
|
5094
5094
|
break;
|
|
5095
5095
|
}
|
|
@@ -5102,24 +5102,24 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
|
5102
5102
|
);
|
|
5103
5103
|
break;
|
|
5104
5104
|
case "start-now":
|
|
5105
|
-
const
|
|
5105
|
+
const R = _e().startOf("day").valueOf();
|
|
5106
5106
|
o.value[C.key] = _e().startOf("day").valueOf(), o.value[`${C.key}StartStr`] = g(
|
|
5107
5107
|
C.params.type,
|
|
5108
|
-
|
|
5108
|
+
R
|
|
5109
5109
|
);
|
|
5110
5110
|
break;
|
|
5111
5111
|
case "end-now":
|
|
5112
|
-
const
|
|
5112
|
+
const F = _e().endOf("day").valueOf();
|
|
5113
5113
|
o.value[C.key] = _e().endOf("day").valueOf(), o.value[`${C.key}Str`] = g(
|
|
5114
5114
|
C.params.type,
|
|
5115
|
-
|
|
5115
|
+
F
|
|
5116
5116
|
);
|
|
5117
5117
|
break;
|
|
5118
5118
|
default:
|
|
5119
|
-
const
|
|
5120
|
-
o.value[C.key] = Number.isNaN(
|
|
5119
|
+
const z = Number(C.form.defaultValue);
|
|
5120
|
+
o.value[C.key] = Number.isNaN(z) ? null : z, o.value[`${C.key}Str`] = g(
|
|
5121
5121
|
C.params.type,
|
|
5122
|
-
|
|
5122
|
+
z
|
|
5123
5123
|
);
|
|
5124
5124
|
break;
|
|
5125
5125
|
}
|
|
@@ -5137,47 +5137,47 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
|
5137
5137
|
} catch {
|
|
5138
5138
|
o.value[C.key] = [];
|
|
5139
5139
|
}
|
|
5140
|
-
}),
|
|
5141
|
-
|
|
5142
|
-
}, d = () => new Promise(async (
|
|
5140
|
+
}), j), m = (j) => {
|
|
5141
|
+
j || (j = X(e.items)), j && Array.isArray(j) && j.length > 0 ? s.value = v(j) : s.value = [];
|
|
5142
|
+
}, d = () => new Promise(async (j) => {
|
|
5143
5143
|
let C = 0;
|
|
5144
|
-
for await (const
|
|
5145
|
-
await
|
|
5144
|
+
for await (const I of u.value)
|
|
5145
|
+
await I.validate().catch(() => {
|
|
5146
5146
|
C = C + 1;
|
|
5147
5147
|
});
|
|
5148
|
-
|
|
5149
|
-
}), x = () => new Promise((
|
|
5150
|
-
var
|
|
5151
|
-
u.value.forEach((
|
|
5152
|
-
|
|
5153
|
-
}), (
|
|
5154
|
-
async (
|
|
5155
|
-
if (
|
|
5148
|
+
j(C);
|
|
5149
|
+
}), x = () => new Promise((j, C) => {
|
|
5150
|
+
var I;
|
|
5151
|
+
u.value.forEach((R) => {
|
|
5152
|
+
R.validate().catch(() => null);
|
|
5153
|
+
}), (I = a.value) == null || I.validate(
|
|
5154
|
+
async (R) => {
|
|
5155
|
+
if (R)
|
|
5156
5156
|
C();
|
|
5157
5157
|
else if (await d() === 0) {
|
|
5158
|
-
const
|
|
5159
|
-
p.value.forEach((
|
|
5160
|
-
|
|
5161
|
-
}), Object.keys(
|
|
5162
|
-
|
|
5163
|
-
Object.keys(
|
|
5164
|
-
Array.isArray(
|
|
5158
|
+
const z = X(o.value);
|
|
5159
|
+
p.value.forEach((J) => {
|
|
5160
|
+
z[J] = JSON.stringify(z[J]);
|
|
5161
|
+
}), Object.keys(z).forEach((J) => {
|
|
5162
|
+
J.includes("sub_") && z[J].forEach((ie) => {
|
|
5163
|
+
Object.keys(ie).forEach((pe) => {
|
|
5164
|
+
Array.isArray(ie[pe]) && (ie[pe] = JSON.stringify(ie[pe]));
|
|
5165
5165
|
});
|
|
5166
5166
|
});
|
|
5167
5167
|
});
|
|
5168
|
-
const
|
|
5169
|
-
|
|
5170
|
-
(
|
|
5171
|
-
),
|
|
5172
|
-
|
|
5168
|
+
const G = JSON.stringify(
|
|
5169
|
+
z,
|
|
5170
|
+
(J, ie) => ie === void 0 ? null : Array.isArray(ie) ? ie.filter((pe) => pe !== "") : ie
|
|
5171
|
+
), ee = JSON.parse(G);
|
|
5172
|
+
j(ee);
|
|
5173
5173
|
} else
|
|
5174
5174
|
C();
|
|
5175
5175
|
}
|
|
5176
5176
|
);
|
|
5177
5177
|
}), N = () => {
|
|
5178
|
-
var
|
|
5179
|
-
(
|
|
5180
|
-
}, V = (
|
|
5178
|
+
var j;
|
|
5179
|
+
(j = a.value) == null || j.restoreValidation();
|
|
5180
|
+
}, V = (j = 6) => ({
|
|
5181
5181
|
1: "md:col-span-1 lg:col-span-1 xl:col-span-1 2xl:col-span-1",
|
|
5182
5182
|
2: "md:col-span-2 lg:col-span-2 xl:col-span-2 2xl:col-span-2",
|
|
5183
5183
|
3: "md:col-span-3 lg:col-span-3 xl:col-span-3 2xl:col-span-3",
|
|
@@ -5190,25 +5190,25 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
|
5190
5190
|
10: "md:col-span-10 lg:col-span-10 xl:col-span-10 2xl:col-span-10",
|
|
5191
5191
|
11: "md:col-span-11 lg:col-span-11 xl:col-span-11 2xl:col-span-11",
|
|
5192
5192
|
12: "md:col-span-12 lg:col-span-12 xl:col-span-12 2xl:col-span-12"
|
|
5193
|
-
})[
|
|
5194
|
-
h.value = C,
|
|
5195
|
-
},
|
|
5196
|
-
h.value && (s.value[h.value].params.options =
|
|
5193
|
+
})[j], U = (j, C) => {
|
|
5194
|
+
h.value = C, D.value = j.source, y.value = j.sourceFn, b.value = !0;
|
|
5195
|
+
}, B = (j) => {
|
|
5196
|
+
h.value && (s.value[h.value].params.options = j);
|
|
5197
5197
|
}, q = () => o.value;
|
|
5198
5198
|
return Ge(() => {
|
|
5199
5199
|
e.status !== 0 && (o.value = e.value, m());
|
|
5200
|
-
}), t({ validate: x, restoreValidation: N, getValues: q }),
|
|
5200
|
+
}), t({ validate: x, restoreValidation: N, getValues: q }), ce(
|
|
5201
5201
|
() => e.items,
|
|
5202
|
-
(
|
|
5203
|
-
m(
|
|
5202
|
+
(j) => {
|
|
5203
|
+
m(j);
|
|
5204
5204
|
},
|
|
5205
5205
|
{
|
|
5206
5206
|
deep: !0
|
|
5207
5207
|
}
|
|
5208
|
-
),
|
|
5208
|
+
), ce(
|
|
5209
5209
|
() => e.value,
|
|
5210
|
-
(
|
|
5211
|
-
o.value =
|
|
5210
|
+
(j) => {
|
|
5211
|
+
o.value = j, m();
|
|
5212
5212
|
},
|
|
5213
5213
|
{
|
|
5214
5214
|
deep: !0
|
|
@@ -5219,20 +5219,20 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = ie({
|
|
|
5219
5219
|
formItems: s,
|
|
5220
5220
|
childRef: u,
|
|
5221
5221
|
drawer: b,
|
|
5222
|
-
link:
|
|
5222
|
+
link: D,
|
|
5223
5223
|
linkFn: y,
|
|
5224
5224
|
isMobile: n,
|
|
5225
5225
|
diffDay: l,
|
|
5226
5226
|
sourceAdd: U,
|
|
5227
5227
|
itemShow: f,
|
|
5228
5228
|
setSpan: V,
|
|
5229
|
-
refreshOption:
|
|
5229
|
+
refreshOption: B
|
|
5230
5230
|
};
|
|
5231
5231
|
}
|
|
5232
5232
|
}), _g = ["onClick"];
|
|
5233
5233
|
function xg(e, t, r, n, a, o) {
|
|
5234
|
-
const s = $("Plus"), u = $("NIcon"), p = $("UzTableChild"), h = $("UzTableQuestChild"), b = $("NDivider"),
|
|
5235
|
-
return c(), w(
|
|
5234
|
+
const s = $("Plus"), u = $("NIcon"), p = $("UzTableChild"), h = $("UzTableQuestChild"), b = $("NDivider"), D = $("UzFormItem"), y = $("NFormItem"), f = $("NForm"), g = $("UzTableDrawer"), l = Bl("media");
|
|
5235
|
+
return c(), w(se, null, [
|
|
5236
5236
|
T(f, {
|
|
5237
5237
|
ref: "formRef",
|
|
5238
5238
|
class: "w-full h-full",
|
|
@@ -5244,12 +5244,12 @@ function xg(e, t, r, n, a, o) {
|
|
|
5244
5244
|
}, {
|
|
5245
5245
|
default: k(() => [
|
|
5246
5246
|
gt((c(), w("div", {
|
|
5247
|
-
class:
|
|
5247
|
+
class: ue(e.isMobile ? "" : "uz-form-grid")
|
|
5248
5248
|
}, [
|
|
5249
|
-
(c(!0), w(
|
|
5249
|
+
(c(!0), w(se, null, ke(e.formItems, (v, m) => {
|
|
5250
5250
|
var d;
|
|
5251
|
-
return c(), w(
|
|
5252
|
-
e.itemShow(v) ? (c(),
|
|
5251
|
+
return c(), w(se, { key: m }, [
|
|
5252
|
+
e.itemShow(v) ? (c(), A(y, {
|
|
5253
5253
|
key: 0,
|
|
5254
5254
|
path: v.key,
|
|
5255
5255
|
rule: v.input === "subTable" ? void 0 : (d = v.form.rule) != null && d.required ? v.form.rule : void 0,
|
|
@@ -5258,7 +5258,7 @@ function xg(e, t, r, n, a, o) {
|
|
|
5258
5258
|
"show-feedback": e.showFeedback && v.input !== "divider"
|
|
5259
5259
|
}, {
|
|
5260
5260
|
label: k(() => [
|
|
5261
|
-
i("div", null,
|
|
5261
|
+
i("div", null, L(typeof v.label == "function" ? v.label() : v.label), 1),
|
|
5262
5262
|
e.status !== 2 && v.source && v.form.createButton ? (c(), w("a", {
|
|
5263
5263
|
key: 0,
|
|
5264
5264
|
class: "flex items-center gap-1 uz-form-item-add",
|
|
@@ -5270,15 +5270,15 @@ function xg(e, t, r, n, a, o) {
|
|
|
5270
5270
|
]),
|
|
5271
5271
|
_: 1
|
|
5272
5272
|
}),
|
|
5273
|
-
t[1] || (t[1] =
|
|
5274
|
-
], 8, _g)) :
|
|
5273
|
+
t[1] || (t[1] = H(" 新增 ", -1))
|
|
5274
|
+
], 8, _g)) : W("", !0),
|
|
5275
5275
|
v.form.showDays ? (c(), w("span", {
|
|
5276
5276
|
key: 1,
|
|
5277
|
-
class:
|
|
5278
|
-
},
|
|
5277
|
+
class: ue(["uz-form-item-add", e.diffDay(e.formValue[v.key], !0)])
|
|
5278
|
+
}, L(e.diffDay(e.formValue[v.key])), 3)) : W("", !0)
|
|
5279
5279
|
]),
|
|
5280
5280
|
default: k(() => [
|
|
5281
|
-
v.input === "subTable" && !v.params.quest ? (c(),
|
|
5281
|
+
v.input === "subTable" && !v.params.quest ? (c(), A(p, {
|
|
5282
5282
|
key: 0,
|
|
5283
5283
|
ref_for: !0,
|
|
5284
5284
|
ref: "childRef",
|
|
@@ -5287,19 +5287,19 @@ function xg(e, t, r, n, a, o) {
|
|
|
5287
5287
|
formValue: e.formValue,
|
|
5288
5288
|
item: v,
|
|
5289
5289
|
status: e.status
|
|
5290
|
-
}, null, 8, ["value", "onUpdate:value", "formValue", "item", "status"])) : v.input === "subTable" && v.params.quest ? (c(),
|
|
5290
|
+
}, null, 8, ["value", "onUpdate:value", "formValue", "item", "status"])) : v.input === "subTable" && v.params.quest ? (c(), A(h, {
|
|
5291
5291
|
key: 1,
|
|
5292
5292
|
formValue: e.formValue,
|
|
5293
5293
|
item: v
|
|
5294
|
-
}, null, 8, ["formValue", "item"])) : v.input === "divider" ? (c(),
|
|
5294
|
+
}, null, 8, ["formValue", "item"])) : v.input === "divider" ? (c(), A(b, {
|
|
5295
5295
|
key: 2,
|
|
5296
5296
|
"title-placement": v.params.placement
|
|
5297
5297
|
}, {
|
|
5298
5298
|
default: k(() => [
|
|
5299
|
-
|
|
5299
|
+
H(L(typeof v.label == "function" ? v.label() : v.label), 1)
|
|
5300
5300
|
]),
|
|
5301
5301
|
_: 2
|
|
5302
|
-
}, 1032, ["title-placement"])) : (c(),
|
|
5302
|
+
}, 1032, ["title-placement"])) : (c(), A(D, {
|
|
5303
5303
|
key: 3,
|
|
5304
5304
|
item: v,
|
|
5305
5305
|
formValue: e.formValue,
|
|
@@ -5307,7 +5307,7 @@ function xg(e, t, r, n, a, o) {
|
|
|
5307
5307
|
}, null, 8, ["item", "formValue", "status"]))
|
|
5308
5308
|
]),
|
|
5309
5309
|
_: 2
|
|
5310
|
-
}, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) :
|
|
5310
|
+
}, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : W("", !0)
|
|
5311
5311
|
], 64);
|
|
5312
5312
|
}), 128))
|
|
5313
5313
|
], 2)), [
|
|
@@ -5325,14 +5325,14 @@ function xg(e, t, r, n, a, o) {
|
|
|
5325
5325
|
}, null, 8, ["show", "link", "linkFn", "onOnSubmit"])
|
|
5326
5326
|
], 64);
|
|
5327
5327
|
}
|
|
5328
|
-
const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g =
|
|
5328
|
+
const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
5329
5329
|
name: "UzDraggableForm",
|
|
5330
5330
|
components: {
|
|
5331
5331
|
NForm: Fa,
|
|
5332
5332
|
NFormItem: Ba,
|
|
5333
5333
|
NButton: ge,
|
|
5334
5334
|
NIcon: ve,
|
|
5335
|
-
NDivider:
|
|
5335
|
+
NDivider: Oa,
|
|
5336
5336
|
UzFormItem: pt,
|
|
5337
5337
|
Trash: xt,
|
|
5338
5338
|
Plus: dt,
|
|
@@ -5377,22 +5377,22 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = ie({
|
|
|
5377
5377
|
},
|
|
5378
5378
|
emits: ["update:value", "on-select", "on-change"],
|
|
5379
5379
|
setup(e, { expose: t, emit: r }) {
|
|
5380
|
-
const n = He("userStore"), a = S(), o = S({}), s = S([]), u = S([]), p = S(), h = S(!1), b = S(""),
|
|
5381
|
-
y.value = [q,
|
|
5382
|
-
}, g = (
|
|
5383
|
-
|
|
5384
|
-
}, l = (
|
|
5385
|
-
const
|
|
5386
|
-
return
|
|
5387
|
-
}, v = (
|
|
5388
|
-
var
|
|
5380
|
+
const n = He("userStore"), a = S(), o = S({}), s = S([]), u = S([]), p = S(), h = S(!1), b = S(""), D = S(""), y = S([-1, -1]), f = (B, q, j) => {
|
|
5381
|
+
y.value = [q, j ?? -1], r("on-select", B);
|
|
5382
|
+
}, g = (B) => {
|
|
5383
|
+
B && (y.value[1] === -1 ? s.value.splice(y.value[0], 1, B) : s.value[y.value[0]].params.children.splice(y.value[1], 1, B), d()), x();
|
|
5384
|
+
}, l = (B, q = !1) => {
|
|
5385
|
+
const j = _e(B).startOf("day").diff(_e().startOf("day"), "day");
|
|
5386
|
+
return j >= 0 ? q ? "success" : `剩余${j}天` : q ? "error" : `逾期${Math.abs(j)}天`;
|
|
5387
|
+
}, v = (B) => (B.forEach((q) => {
|
|
5388
|
+
var j;
|
|
5389
5389
|
if (q.form.defaultValue && !o.value[q.key])
|
|
5390
5390
|
if (q.input === "number")
|
|
5391
5391
|
o.value[q.key] = Number(q.form.defaultValue);
|
|
5392
|
-
else if (q.input === "select" && ((
|
|
5392
|
+
else if (q.input === "select" && ((j = q.params.options) == null ? void 0 : j.length) > 0) {
|
|
5393
5393
|
q.form.defaultValue === "userId" ? o.value[q.key] = n.userId : o.value[q.key] = q.form.defaultValue;
|
|
5394
5394
|
const C = q.params.options.find(
|
|
5395
|
-
(
|
|
5395
|
+
(I) => I.value === o.value[q.key]
|
|
5396
5396
|
);
|
|
5397
5397
|
C && (o.value[`${q.key}Str`] = C.label);
|
|
5398
5398
|
} else if (q.input === "date")
|
|
@@ -5413,25 +5413,25 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = ie({
|
|
|
5413
5413
|
}
|
|
5414
5414
|
else
|
|
5415
5415
|
o.value[q.key] = q.form.defaultValue;
|
|
5416
|
-
}),
|
|
5416
|
+
}), B), m = () => {
|
|
5417
5417
|
if (e.items && Array.isArray(e.items)) {
|
|
5418
|
-
const
|
|
5419
|
-
s.value = v(
|
|
5418
|
+
const B = X(e.items);
|
|
5419
|
+
s.value = v(B);
|
|
5420
5420
|
}
|
|
5421
5421
|
}, d = () => {
|
|
5422
|
-
r("on-change",
|
|
5422
|
+
r("on-change", X(s.value));
|
|
5423
5423
|
}, x = () => {
|
|
5424
5424
|
y.value = [-1, -1], r("on-select", void 0);
|
|
5425
5425
|
}, N = () => {
|
|
5426
5426
|
y.value[1] === -1 ? s.value.splice(y.value[0], 1) : s.value[y.value[0]].params.children.splice(y.value[1], 1), d(), x();
|
|
5427
|
-
}, V = (
|
|
5428
|
-
p.value = q, b.value =
|
|
5429
|
-
}, U = (
|
|
5430
|
-
p.value && (s.value[p.value].params.options =
|
|
5427
|
+
}, V = (B, q) => {
|
|
5428
|
+
p.value = q, b.value = B.source, D.value = B.sourceFn, h.value = !0;
|
|
5429
|
+
}, U = (B) => {
|
|
5430
|
+
p.value && (s.value[p.value].params.options = B);
|
|
5431
5431
|
};
|
|
5432
5432
|
return Ge(() => {
|
|
5433
5433
|
o.value = e.value, m();
|
|
5434
|
-
}), t({ changeItem: g }),
|
|
5434
|
+
}), t({ changeItem: g }), ce(
|
|
5435
5435
|
() => e.items,
|
|
5436
5436
|
() => {
|
|
5437
5437
|
m();
|
|
@@ -5439,10 +5439,10 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = ie({
|
|
|
5439
5439
|
{
|
|
5440
5440
|
deep: !0
|
|
5441
5441
|
}
|
|
5442
|
-
),
|
|
5442
|
+
), ce(
|
|
5443
5443
|
() => e.value,
|
|
5444
|
-
(
|
|
5445
|
-
o.value =
|
|
5444
|
+
(B) => {
|
|
5445
|
+
o.value = B;
|
|
5446
5446
|
},
|
|
5447
5447
|
{
|
|
5448
5448
|
deep: !0
|
|
@@ -5454,7 +5454,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = ie({
|
|
|
5454
5454
|
childRef: u,
|
|
5455
5455
|
drawer: h,
|
|
5456
5456
|
link: b,
|
|
5457
|
-
linkFn:
|
|
5457
|
+
linkFn: D,
|
|
5458
5458
|
formItemIndex: y,
|
|
5459
5459
|
diffDay: l,
|
|
5460
5460
|
onDragChange: d,
|
|
@@ -5467,8 +5467,8 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = ie({
|
|
|
5467
5467
|
}
|
|
5468
5468
|
}), Mg = ["onClick"];
|
|
5469
5469
|
function Sg(e, t, r, n, a, o) {
|
|
5470
|
-
const s = $("Plus"), u = $("NIcon"), p = $("Trash"), h = $("NButton"), b = $("UzTableChild"),
|
|
5471
|
-
return c(), w(
|
|
5470
|
+
const s = $("Plus"), u = $("NIcon"), p = $("Trash"), h = $("NButton"), b = $("UzTableChild"), D = $("UzFormItem"), y = $("NFormItem"), f = $("Draggable", !0), g = $("NDivider"), l = $("NForm"), v = $("UzTableDrawer");
|
|
5471
|
+
return c(), w(se, null, [
|
|
5472
5472
|
T(l, {
|
|
5473
5473
|
ref: "formRef",
|
|
5474
5474
|
class: "w-full h-full",
|
|
@@ -5497,10 +5497,10 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5497
5497
|
item: k(({ element: m, index: d }) => {
|
|
5498
5498
|
var x;
|
|
5499
5499
|
return [
|
|
5500
|
-
(c(),
|
|
5500
|
+
(c(), A(y, {
|
|
5501
5501
|
path: m.key,
|
|
5502
5502
|
rule: (x = m.rule) != null && x.required ? m.rule : void 0,
|
|
5503
|
-
class:
|
|
5503
|
+
class: ue([
|
|
5504
5504
|
"uz-form-grid-item uz-form-mode",
|
|
5505
5505
|
e.formItemIndex[0] === d && e.formItemIndex[1] === -1 ? "select" : m.input === "group" ? "group" : ""
|
|
5506
5506
|
]),
|
|
@@ -5511,7 +5511,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5511
5511
|
"show-feedback": e.showFeedback && m.input !== "divider"
|
|
5512
5512
|
}, {
|
|
5513
5513
|
label: k(() => [
|
|
5514
|
-
i("div", null,
|
|
5514
|
+
i("div", null, L(typeof m.label == "function" ? m.label() : m.label), 1),
|
|
5515
5515
|
m.source && m.form.createButton ? (c(), w("a", {
|
|
5516
5516
|
key: 0,
|
|
5517
5517
|
class: "flex items-center gap-1 uz-form-item-add",
|
|
@@ -5523,15 +5523,15 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5523
5523
|
]),
|
|
5524
5524
|
_: 1
|
|
5525
5525
|
}),
|
|
5526
|
-
t[2] || (t[2] =
|
|
5527
|
-
], 8, Mg)) :
|
|
5526
|
+
t[2] || (t[2] = H(" 新增 ", -1))
|
|
5527
|
+
], 8, Mg)) : W("", !0),
|
|
5528
5528
|
m.form.showDays ? (c(), w("span", {
|
|
5529
5529
|
key: 1,
|
|
5530
|
-
class:
|
|
5531
|
-
},
|
|
5530
|
+
class: ue(["uz-form-item-add", e.diffDay(e.formValue[m.key], !0)])
|
|
5531
|
+
}, L(e.diffDay(e.formValue[m.key])), 3)) : W("", !0)
|
|
5532
5532
|
]),
|
|
5533
5533
|
default: k(() => [
|
|
5534
|
-
e.formItemIndex[0] === d && e.formItemIndex[1] === -1 ? (c(),
|
|
5534
|
+
e.formItemIndex[0] === d && e.formItemIndex[1] === -1 ? (c(), A(h, {
|
|
5535
5535
|
key: 0,
|
|
5536
5536
|
size: "small",
|
|
5537
5537
|
type: "error",
|
|
@@ -5547,13 +5547,13 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5547
5547
|
})
|
|
5548
5548
|
]),
|
|
5549
5549
|
_: 1
|
|
5550
|
-
}, 8, ["onClick"])) :
|
|
5551
|
-
m.input === "subTable" ? (c(),
|
|
5550
|
+
}, 8, ["onClick"])) : W("", !0),
|
|
5551
|
+
m.input === "subTable" ? (c(), A(b, {
|
|
5552
5552
|
key: 1,
|
|
5553
5553
|
formValue: e.formValue,
|
|
5554
5554
|
item: m,
|
|
5555
5555
|
status: e.status
|
|
5556
|
-
}, null, 8, ["formValue", "item", "status"])) : m.input === "group" ? (c(),
|
|
5556
|
+
}, null, 8, ["formValue", "item", "status"])) : m.input === "group" ? (c(), A(f, _a({
|
|
5557
5557
|
key: 2,
|
|
5558
5558
|
modelValue: m.params.children,
|
|
5559
5559
|
"onUpdate:modelValue": (N) => m.params.children = N
|
|
@@ -5570,22 +5570,22 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5570
5570
|
item: k(({ element: N, index: V }) => {
|
|
5571
5571
|
var U;
|
|
5572
5572
|
return [
|
|
5573
|
-
(c(),
|
|
5573
|
+
(c(), A(y, {
|
|
5574
5574
|
label: N.input !== "divider" ? typeof N.label == "function" ? N.label() : N.label : "",
|
|
5575
5575
|
path: N.key,
|
|
5576
5576
|
rule: (U = N.rule) != null && U.required ? N.rule : void 0,
|
|
5577
|
-
class:
|
|
5577
|
+
class: ue([
|
|
5578
5578
|
"uz-form-grid-item uz-form-mode",
|
|
5579
5579
|
e.formItemIndex[0] === d && e.formItemIndex[1] === V ? "select" : ""
|
|
5580
5580
|
]),
|
|
5581
|
-
onClick: At((
|
|
5581
|
+
onClick: At((B) => e.onModeClick(N, d, V), ["stop"]),
|
|
5582
5582
|
key: V,
|
|
5583
5583
|
style: $e(`grid-column: span ${N.form.span || 6} / span ${N.form.span || 6};`),
|
|
5584
5584
|
"show-label": N.input !== "divider" && N.input !== "subTable",
|
|
5585
5585
|
"show-feedback": e.showFeedback && N.input !== "divider"
|
|
5586
5586
|
}, {
|
|
5587
5587
|
default: k(() => [
|
|
5588
|
-
e.formItemIndex[0] === d && e.formItemIndex[1] === V ? (c(),
|
|
5588
|
+
e.formItemIndex[0] === d && e.formItemIndex[1] === V ? (c(), A(h, {
|
|
5589
5589
|
key: 0,
|
|
5590
5590
|
size: "small",
|
|
5591
5591
|
type: "error",
|
|
@@ -5601,8 +5601,8 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5601
5601
|
})
|
|
5602
5602
|
]),
|
|
5603
5603
|
_: 1
|
|
5604
|
-
}, 8, ["onClick"])) :
|
|
5605
|
-
T(
|
|
5604
|
+
}, 8, ["onClick"])) : W("", !0),
|
|
5605
|
+
T(D, {
|
|
5606
5606
|
item: N,
|
|
5607
5607
|
formValue: e.formValue,
|
|
5608
5608
|
status: e.status
|
|
@@ -5613,15 +5613,15 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5613
5613
|
];
|
|
5614
5614
|
}),
|
|
5615
5615
|
_: 2
|
|
5616
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : m.input === "divider" ? (c(),
|
|
5616
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : m.input === "divider" ? (c(), A(g, {
|
|
5617
5617
|
key: 3,
|
|
5618
5618
|
"title-placement": m.params.placement
|
|
5619
5619
|
}, {
|
|
5620
5620
|
default: k(() => [
|
|
5621
|
-
|
|
5621
|
+
H(L(typeof m.label == "function" ? m.label() : m.label), 1)
|
|
5622
5622
|
]),
|
|
5623
5623
|
_: 2
|
|
5624
|
-
}, 1032, ["title-placement"])) : (c(),
|
|
5624
|
+
}, 1032, ["title-placement"])) : (c(), A(D, {
|
|
5625
5625
|
key: 4,
|
|
5626
5626
|
item: m,
|
|
5627
5627
|
formValue: e.formValue,
|
|
@@ -5646,7 +5646,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5646
5646
|
}, null, 8, ["show", "link", "linkFn", "onOnSubmit"])
|
|
5647
5647
|
], 64);
|
|
5648
5648
|
}
|
|
5649
|
-
const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng =
|
|
5649
|
+
const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = le({
|
|
5650
5650
|
name: "UzFormItemUpload",
|
|
5651
5651
|
components: {
|
|
5652
5652
|
NUpload: Kl,
|
|
@@ -5687,7 +5687,7 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = ie({
|
|
|
5687
5687
|
"update:value",
|
|
5688
5688
|
tt.stringify(n.value.map((b) => b.url))
|
|
5689
5689
|
);
|
|
5690
|
-
}, o = (b) => new Promise((
|
|
5690
|
+
}, o = (b) => new Promise((D, y) => {
|
|
5691
5691
|
if (b.file.file)
|
|
5692
5692
|
if (b.file.file.size > 10485760)
|
|
5693
5693
|
r.error({ content: "请上传小于10MB的文件", duration: 3e3 }), y();
|
|
@@ -5699,20 +5699,20 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = ie({
|
|
|
5699
5699
|
name: b.file.name,
|
|
5700
5700
|
status: "finished",
|
|
5701
5701
|
url: g
|
|
5702
|
-
}), r.success({ content: "上传成功", duration: 3e3 }), a(),
|
|
5702
|
+
}), r.success({ content: "上传成功", duration: 3e3 }), a(), D();
|
|
5703
5703
|
}).catch((g) => {
|
|
5704
5704
|
throw y(), r.error({ content: "上传失败", duration: 3e3 }), new Error(g);
|
|
5705
5705
|
});
|
|
5706
5706
|
}
|
|
5707
5707
|
}), s = (b) => {
|
|
5708
|
-
const
|
|
5708
|
+
const D = b.lastIndexOf("."), y = b.substring(D + 1);
|
|
5709
5709
|
return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
|
|
5710
5710
|
y.toLowerCase()
|
|
5711
5711
|
) !== -1;
|
|
5712
5712
|
}, u = (b) => {
|
|
5713
5713
|
n.value.splice(b, 1), a();
|
|
5714
5714
|
}, p = () => {
|
|
5715
|
-
let b =
|
|
5715
|
+
let b = X(e.value);
|
|
5716
5716
|
if (!b) {
|
|
5717
5717
|
n.value = [];
|
|
5718
5718
|
return;
|
|
@@ -5720,8 +5720,8 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = ie({
|
|
|
5720
5720
|
if (typeof b == "string")
|
|
5721
5721
|
try {
|
|
5722
5722
|
b = tt.parse(b), n.value = b.map(
|
|
5723
|
-
(
|
|
5724
|
-
const f = decodeURIComponent(
|
|
5723
|
+
(D, y) => {
|
|
5724
|
+
const f = decodeURIComponent(D), g = f.lastIndexOf("/"), l = f.substring(g + 1);
|
|
5725
5725
|
return {
|
|
5726
5726
|
id: String(y + 1),
|
|
5727
5727
|
name: l,
|
|
@@ -5740,7 +5740,7 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = ie({
|
|
|
5740
5740
|
};
|
|
5741
5741
|
return Ge(() => {
|
|
5742
5742
|
p();
|
|
5743
|
-
}),
|
|
5743
|
+
}), ce(
|
|
5744
5744
|
() => e.value,
|
|
5745
5745
|
() => {
|
|
5746
5746
|
p();
|
|
@@ -5755,9 +5755,9 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = ie({
|
|
|
5755
5755
|
}
|
|
5756
5756
|
}), Ig = { class: "uz-form-upload flex flex-wrap gap-2 items-center" }, Dg = { class: "uz-form-upload-item-inner" }, jg = ["title"], qg = { key: 0 };
|
|
5757
5757
|
function zg(e, t, r, n, a, o) {
|
|
5758
|
-
const s = $("CloudUpload"), u = $("NIcon"), p = $("NUploadDragger"), h = $("NUpload"), b = $("PhotoOff"),
|
|
5758
|
+
const s = $("CloudUpload"), u = $("NIcon"), p = $("NUploadDragger"), h = $("NUpload"), b = $("PhotoOff"), D = $("NImage"), y = $("FileText"), f = $("Trash"), g = $("NButton"), l = $("NPopconfirm"), v = $("CloudDownload");
|
|
5759
5759
|
return c(), w("div", Ig, [
|
|
5760
|
-
e.status !== 2 ? (c(),
|
|
5760
|
+
e.status !== 2 ? (c(), A(h, {
|
|
5761
5761
|
key: 0,
|
|
5762
5762
|
accept: e.item.params.accept,
|
|
5763
5763
|
max: e.item.params.max,
|
|
@@ -5782,12 +5782,12 @@ function zg(e, t, r, n, a, o) {
|
|
|
5782
5782
|
})
|
|
5783
5783
|
]),
|
|
5784
5784
|
_: 1
|
|
5785
|
-
}, 8, ["accept", "max", "on-before-upload"])) :
|
|
5786
|
-
(c(!0), w(
|
|
5785
|
+
}, 8, ["accept", "max", "on-before-upload"])) : W("", !0),
|
|
5786
|
+
(c(!0), w(se, null, ke(e.formValue, (m, d) => (c(), w("div", {
|
|
5787
5787
|
key: d,
|
|
5788
5788
|
class: "uz-form-upload-item w-20 h-20"
|
|
5789
5789
|
}, [
|
|
5790
|
-
e.isAssetTypeAnImage(m.url) ? (c(),
|
|
5790
|
+
e.isAssetTypeAnImage(m.url) ? (c(), A(D, {
|
|
5791
5791
|
key: 0,
|
|
5792
5792
|
width: "80",
|
|
5793
5793
|
src: m.url
|
|
@@ -5804,7 +5804,7 @@ function zg(e, t, r, n, a, o) {
|
|
|
5804
5804
|
})
|
|
5805
5805
|
]),
|
|
5806
5806
|
_: 2
|
|
5807
|
-
}, 1032, ["src"])) : (c(),
|
|
5807
|
+
}, 1032, ["src"])) : (c(), A(u, {
|
|
5808
5808
|
key: 1,
|
|
5809
5809
|
size: "60",
|
|
5810
5810
|
color: "lightGrey",
|
|
@@ -5820,7 +5820,7 @@ function zg(e, t, r, n, a, o) {
|
|
|
5820
5820
|
i("div", {
|
|
5821
5821
|
class: "uz-form-upload-title truncate",
|
|
5822
5822
|
title: m.name
|
|
5823
|
-
},
|
|
5823
|
+
}, L(m.name), 9, jg),
|
|
5824
5824
|
e.status !== 2 ? (c(), w("div", qg, [
|
|
5825
5825
|
T(l, {
|
|
5826
5826
|
onPositiveClick: (x) => e.doDelete(d)
|
|
@@ -5842,7 +5842,7 @@ function zg(e, t, r, n, a, o) {
|
|
|
5842
5842
|
})
|
|
5843
5843
|
]),
|
|
5844
5844
|
default: k(() => [
|
|
5845
|
-
t[0] || (t[0] =
|
|
5845
|
+
t[0] || (t[0] = H(" 确认删除? ", -1))
|
|
5846
5846
|
]),
|
|
5847
5847
|
_: 2,
|
|
5848
5848
|
__: [0]
|
|
@@ -5864,12 +5864,12 @@ function zg(e, t, r, n, a, o) {
|
|
|
5864
5864
|
]),
|
|
5865
5865
|
_: 2
|
|
5866
5866
|
}, 1032, ["href"])
|
|
5867
|
-
])) :
|
|
5867
|
+
])) : W("", !0)
|
|
5868
5868
|
])
|
|
5869
5869
|
]))), 128))
|
|
5870
5870
|
]);
|
|
5871
5871
|
}
|
|
5872
|
-
const Ag = /* @__PURE__ */ _(Ng, [["render", zg], ["__scopeId", "data-v-b11a603c"]]),
|
|
5872
|
+
const Ag = /* @__PURE__ */ _(Ng, [["render", zg], ["__scopeId", "data-v-b11a603c"]]), Rg = le({
|
|
5873
5873
|
name: "UzFormItemImage",
|
|
5874
5874
|
components: { NImageGroup: Zc, NImage: Hl, NIcon: ve, NPopover: ct, PhotoOff: Lt, FileText: Pt },
|
|
5875
5875
|
props: {
|
|
@@ -5904,14 +5904,14 @@ const Ag = /* @__PURE__ */ _(Ng, [["render", zg], ["__scopeId", "data-v-b11a603c
|
|
|
5904
5904
|
isAssetTypeAnImage: r
|
|
5905
5905
|
};
|
|
5906
5906
|
}
|
|
5907
|
-
}),
|
|
5907
|
+
}), Og = { class: "flex gap-2 max-w-sm overflow-y-hidden overflow-x-auto items-center" };
|
|
5908
5908
|
function Bg(e, t, r, n, a, o) {
|
|
5909
|
-
const s = $("PhotoOff"), u = $("NIcon"), p = $("NImage"), h = $("FileText"), b = $("NPopover"),
|
|
5910
|
-
return c(),
|
|
5909
|
+
const s = $("PhotoOff"), u = $("NIcon"), p = $("NImage"), h = $("FileText"), b = $("NPopover"), D = $("NImageGroup");
|
|
5910
|
+
return c(), A(D, null, {
|
|
5911
5911
|
default: k(() => [
|
|
5912
|
-
i("div",
|
|
5913
|
-
(c(!0), w(
|
|
5914
|
-
e.isAssetTypeAnImage(y) ? (c(),
|
|
5912
|
+
i("div", Og, [
|
|
5913
|
+
(c(!0), w(se, null, ke(e.imgs, (y) => (c(), w(se, null, [
|
|
5914
|
+
e.isAssetTypeAnImage(y) ? (c(), A(p, {
|
|
5915
5915
|
key: 0,
|
|
5916
5916
|
width: "40",
|
|
5917
5917
|
src: y
|
|
@@ -5928,7 +5928,7 @@ function Bg(e, t, r, n, a, o) {
|
|
|
5928
5928
|
})
|
|
5929
5929
|
]),
|
|
5930
5930
|
_: 2
|
|
5931
|
-
}, 1032, ["src"])) : (c(),
|
|
5931
|
+
}, 1032, ["src"])) : (c(), A(b, {
|
|
5932
5932
|
key: 1,
|
|
5933
5933
|
trigger: "hover"
|
|
5934
5934
|
}, {
|
|
@@ -5946,7 +5946,7 @@ function Bg(e, t, r, n, a, o) {
|
|
|
5946
5946
|
}, 1032, ["onClick"])
|
|
5947
5947
|
]),
|
|
5948
5948
|
default: k(() => [
|
|
5949
|
-
|
|
5949
|
+
H(L(e.getFileName(y)), 1)
|
|
5950
5950
|
]),
|
|
5951
5951
|
_: 2
|
|
5952
5952
|
}, 1024))
|
|
@@ -5956,7 +5956,7 @@ function Bg(e, t, r, n, a, o) {
|
|
|
5956
5956
|
_: 1
|
|
5957
5957
|
});
|
|
5958
5958
|
}
|
|
5959
|
-
const Nc = /* @__PURE__ */ _(
|
|
5959
|
+
const Nc = /* @__PURE__ */ _(Rg, [["render", Bg]]), Fg = le({
|
|
5960
5960
|
name: "UzNumberRoll",
|
|
5961
5961
|
props: {
|
|
5962
5962
|
value: {
|
|
@@ -5981,20 +5981,20 @@ const Nc = /* @__PURE__ */ _(Og, [["render", Bg]]), Fg = ie({
|
|
|
5981
5981
|
const t = S(!1), r = S(0), n = (u) => 1 - Math.pow(1 - u, 5), a = (u) => e.format ? e.format(u) : u;
|
|
5982
5982
|
function o(u, p, h = e.duration) {
|
|
5983
5983
|
const b = () => {
|
|
5984
|
-
const y = performance.now(), f = Math.min(y -
|
|
5984
|
+
const y = performance.now(), f = Math.min(y - D, h), g = u + (p - u) * n(f / h);
|
|
5985
5985
|
if (f === h) {
|
|
5986
5986
|
r.value = a(Number(e.value)), t.value = !1;
|
|
5987
5987
|
return;
|
|
5988
5988
|
}
|
|
5989
5989
|
const l = Number(g.toFixed(e.precision));
|
|
5990
5990
|
r.value = a(l), requestAnimationFrame(b);
|
|
5991
|
-
},
|
|
5991
|
+
}, D = performance.now();
|
|
5992
5992
|
b();
|
|
5993
5993
|
}
|
|
5994
5994
|
const s = (u = 0, p = e.value) => {
|
|
5995
5995
|
t.value = !0, r.value = a(u), String(u) !== String(p) && o(u, Number(p));
|
|
5996
5996
|
};
|
|
5997
|
-
return
|
|
5997
|
+
return ce(
|
|
5998
5998
|
() => e.value,
|
|
5999
5999
|
(u, p) => {
|
|
6000
6000
|
s(Number(p) || 0, Number(u));
|
|
@@ -6007,9 +6007,9 @@ const Nc = /* @__PURE__ */ _(Og, [["render", Bg]]), Fg = ie({
|
|
|
6007
6007
|
}
|
|
6008
6008
|
});
|
|
6009
6009
|
function Vg(e, t, r, n, a, o) {
|
|
6010
|
-
return
|
|
6010
|
+
return L(e.displayedValueRef);
|
|
6011
6011
|
}
|
|
6012
|
-
const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg =
|
|
6012
|
+
const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = le({
|
|
6013
6013
|
name: "UzCamera",
|
|
6014
6014
|
components: {
|
|
6015
6015
|
NButton: ge,
|
|
@@ -6060,7 +6060,7 @@ const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = ie({
|
|
|
6060
6060
|
}
|
|
6061
6061
|
}
|
|
6062
6062
|
h();
|
|
6063
|
-
},
|
|
6063
|
+
}, D = () => {
|
|
6064
6064
|
r.value && r.value.srcObject && (r.value.srcObject.getTracks().forEach((l) => l.stop()), s = null, u = null, r.value.srcObject = null, r.value.src = null), a.value = !1, n.value = !1;
|
|
6065
6065
|
}, y = async (l) => {
|
|
6066
6066
|
r.value.srcObject !== void 0 ? r.value.srcObject = l : window.videoEl.mozSrcObject !== void 0 ? r.value.mozSrcObject = l : window.URL.createObjectURL ? r.value.src = window.URL.createObjectURL(l) : window.webkitURL ? r.value.src = window.webkitURL.createObjectURL(l) : r.value.src = l, r.value.play().then(h);
|
|
@@ -6096,15 +6096,15 @@ const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = ie({
|
|
|
6096
6096
|
return Ge(() => {
|
|
6097
6097
|
e.mode === "video" && g();
|
|
6098
6098
|
}), qa(() => {
|
|
6099
|
-
|
|
6100
|
-
}),
|
|
6101
|
-
e.mode === "video" && (
|
|
6099
|
+
D();
|
|
6100
|
+
}), ce([() => e.width, () => e.width], () => {
|
|
6101
|
+
e.mode === "video" && (D(), g());
|
|
6102
6102
|
}), {
|
|
6103
6103
|
videoRef: r,
|
|
6104
6104
|
modal: n,
|
|
6105
6105
|
loading: a,
|
|
6106
6106
|
doScan: g,
|
|
6107
|
-
closeAll:
|
|
6107
|
+
closeAll: D
|
|
6108
6108
|
};
|
|
6109
6109
|
}
|
|
6110
6110
|
}), Eg = ["width", "height"], Lg = ["width", "height"], Hg = { class: "uz-scan-video" }, Kg = {
|
|
@@ -6113,19 +6113,19 @@ const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = ie({
|
|
|
6113
6113
|
};
|
|
6114
6114
|
function Gg(e, t, r, n, a, o) {
|
|
6115
6115
|
const s = $("NButton"), u = $("NModal");
|
|
6116
|
-
return c(), w(
|
|
6117
|
-
e.mode === "button" ? (c(),
|
|
6116
|
+
return c(), w(se, null, [
|
|
6117
|
+
e.mode === "button" ? (c(), A(s, {
|
|
6118
6118
|
key: 0,
|
|
6119
6119
|
type: "primary",
|
|
6120
6120
|
loading: e.loading,
|
|
6121
6121
|
onClick: e.doScan
|
|
6122
6122
|
}, {
|
|
6123
6123
|
default: k(() => [
|
|
6124
|
-
|
|
6124
|
+
H(L(e.$t("Common.scan")), 1)
|
|
6125
6125
|
]),
|
|
6126
6126
|
_: 1
|
|
6127
|
-
}, 8, ["loading", "onClick"])) :
|
|
6128
|
-
e.mode === "button" ? (c(),
|
|
6127
|
+
}, 8, ["loading", "onClick"])) : W("", !0),
|
|
6128
|
+
e.mode === "button" ? (c(), A(u, {
|
|
6129
6129
|
key: 1,
|
|
6130
6130
|
show: e.modal,
|
|
6131
6131
|
"onUpdate:show": t[0] || (t[0] = (p) => e.modal = p),
|
|
@@ -6151,7 +6151,7 @@ function Gg(e, t, r, n, a, o) {
|
|
|
6151
6151
|
], 4)
|
|
6152
6152
|
]),
|
|
6153
6153
|
_: 1
|
|
6154
|
-
}, 8, ["show", "title", "on-after-leave"])) :
|
|
6154
|
+
}, 8, ["show", "title", "on-after-leave"])) : W("", !0),
|
|
6155
6155
|
e.mode === "video" ? (c(), w("div", {
|
|
6156
6156
|
key: 2,
|
|
6157
6157
|
class: "uz-scan-canvas-main",
|
|
@@ -6165,13 +6165,13 @@ function Gg(e, t, r, n, a, o) {
|
|
|
6165
6165
|
width: e.width,
|
|
6166
6166
|
height: e.height
|
|
6167
6167
|
}, null, 8, Lg)
|
|
6168
|
-
], 4)) :
|
|
6168
|
+
], 4)) : W("", !0),
|
|
6169
6169
|
i("div", Hg, [
|
|
6170
6170
|
i("video", Kg, null, 512)
|
|
6171
6171
|
])
|
|
6172
6172
|
], 64);
|
|
6173
6173
|
}
|
|
6174
|
-
const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg =
|
|
6174
|
+
const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = le({
|
|
6175
6175
|
name: "UzSearchBar",
|
|
6176
6176
|
components: {
|
|
6177
6177
|
NIcon: ve,
|
|
@@ -6226,68 +6226,68 @@ const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = ie({
|
|
|
6226
6226
|
},
|
|
6227
6227
|
emits: ["update:loading", "on-update:value"],
|
|
6228
6228
|
setup(e, { emit: t }) {
|
|
6229
|
-
const r = Vt(), n = S(), a = S([]), o = S(), s = S(!0), u = S(!1), p = S(!1), h = S(0), b = S(0),
|
|
6229
|
+
const r = Vt(), n = S(), a = S([]), o = S(), s = S(!0), u = S(!1), p = S(!1), h = S(0), b = S(0), D = S(0), y = S(1), f = S(""), g = S([]), l = S(!1), v = (q) => Array.isArray(q) && q.length > 0 || q ? q : !1, m = (q = !1) => {
|
|
6230
6230
|
if (e.loading)
|
|
6231
6231
|
return;
|
|
6232
|
-
const
|
|
6233
|
-
!q &&
|
|
6232
|
+
const j = X(n.value);
|
|
6233
|
+
!q && j.query && (j.query.page = 1);
|
|
6234
6234
|
const C = [];
|
|
6235
|
-
a.value.forEach((
|
|
6236
|
-
if (
|
|
6237
|
-
const
|
|
6238
|
-
if (
|
|
6239
|
-
const
|
|
6240
|
-
key:
|
|
6241
|
-
value:
|
|
6235
|
+
a.value.forEach((I) => {
|
|
6236
|
+
if (j[I.key]) {
|
|
6237
|
+
const R = v(j[I.key]);
|
|
6238
|
+
if (R) {
|
|
6239
|
+
const F = {
|
|
6240
|
+
key: I.key,
|
|
6241
|
+
value: R,
|
|
6242
6242
|
range: !1,
|
|
6243
|
-
fuzzy:
|
|
6243
|
+
fuzzy: I.search.fuzzy
|
|
6244
6244
|
};
|
|
6245
|
-
(
|
|
6245
|
+
(I.input === "cascader" || I.input === "select") && I.params.multiple && (F.range = !0), I.input === "date" && I.params.type.indexOf("range") > -1 && (F.range = !0, F.time = !0), C.push(F);
|
|
6246
6246
|
}
|
|
6247
6247
|
}
|
|
6248
6248
|
}), t("update:loading", !0), t("on-update:value", C);
|
|
6249
6249
|
}, d = () => {
|
|
6250
|
-
e.loading || (n.value =
|
|
6250
|
+
e.loading || (n.value = X(o.value), m());
|
|
6251
6251
|
}, x = () => {
|
|
6252
6252
|
s.value = !s.value;
|
|
6253
6253
|
}, N = (q) => l.value ? n.value && Array.isArray(n.value[f.value]) && n.value[f.value].includes(q.value) ? "primary" : "default" : n.value[f.value] === q.value ? "primary" : "default", V = (q) => {
|
|
6254
|
-
var
|
|
6255
|
-
const
|
|
6254
|
+
var F;
|
|
6255
|
+
const j = {};
|
|
6256
6256
|
let C = 0;
|
|
6257
|
-
const
|
|
6257
|
+
const I = e.cols ? e.cols : 4;
|
|
6258
6258
|
if (q.length > 0)
|
|
6259
|
-
for (let
|
|
6260
|
-
(
|
|
6261
|
-
const
|
|
6262
|
-
b.value =
|
|
6263
|
-
for (const
|
|
6264
|
-
|
|
6265
|
-
return { data: q, values:
|
|
6259
|
+
for (let z = 0; z <= I; z++)
|
|
6260
|
+
(F = q[z]) != null && F.search.show && (C = C + 1);
|
|
6261
|
+
const R = I - C >= 0 ? I - C - 1 : -1;
|
|
6262
|
+
b.value = R, D.value = R, h.value = C, C > I ? (u.value = !0, p.value = !0) : (u.value = !1, p.value = !1);
|
|
6263
|
+
for (const z of q)
|
|
6264
|
+
z.search.tab && (g.value = z.params.options, l.value = z.params.multiple, f.value = z.key, z.search.show = !1), z.input === "input" && z.params.type === "textarea" && (z.params.type = "text"), z.search.show = z.search.show ?? !0, z.defaultValue ? j[z.key] = z.defaultValue : (j[z.key] = "", (z.input === "number" || z.input === "date" || z.input === "time") && (j[z.key] = null), (z.input === "cascader" || z.input === "select") && (z.params.multiple ? j[z.key] = [] : j[z.key] = null));
|
|
6265
|
+
return { data: q, values: j };
|
|
6266
6266
|
}, U = (q) => {
|
|
6267
6267
|
if (g.value = [], q && q.length > 0) {
|
|
6268
|
-
const { data:
|
|
6269
|
-
if (e.cache &&
|
|
6270
|
-
const
|
|
6271
|
-
|
|
6272
|
-
|
|
6268
|
+
const { data: j, values: C } = V(X(q)), I = {}, R = e.id || r.params.id;
|
|
6269
|
+
if (e.cache && R) {
|
|
6270
|
+
const F = Oe(`tables_${R}`, !1);
|
|
6271
|
+
F && F.params.forEach((z) => {
|
|
6272
|
+
I[z.key] = z.value;
|
|
6273
6273
|
});
|
|
6274
6274
|
}
|
|
6275
|
-
a.value =
|
|
6275
|
+
a.value = j, n.value = X({ ...C, ...I }), o.value = X(C);
|
|
6276
6276
|
}
|
|
6277
6277
|
m(!0);
|
|
6278
|
-
},
|
|
6278
|
+
}, B = (q) => {
|
|
6279
6279
|
if (l.value) {
|
|
6280
|
-
const
|
|
6281
|
-
if (
|
|
6282
|
-
const C =
|
|
6280
|
+
const j = n.value[f.value];
|
|
6281
|
+
if (j.includes(q)) {
|
|
6282
|
+
const C = j.findIndex((I) => I === q);
|
|
6283
6283
|
n.value[f.value].splice(C, 1);
|
|
6284
6284
|
} else
|
|
6285
|
-
|
|
6285
|
+
j.push(q);
|
|
6286
6286
|
} else
|
|
6287
6287
|
n.value[f.value] = q;
|
|
6288
6288
|
m(!0);
|
|
6289
6289
|
};
|
|
6290
|
-
return
|
|
6290
|
+
return ce(
|
|
6291
6291
|
() => e.data,
|
|
6292
6292
|
(q) => {
|
|
6293
6293
|
U(q);
|
|
@@ -6300,7 +6300,7 @@ const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = ie({
|
|
|
6300
6300
|
moreCache: p,
|
|
6301
6301
|
moreIndex: h,
|
|
6302
6302
|
offset: b,
|
|
6303
|
-
offsetCache:
|
|
6303
|
+
offsetCache: D,
|
|
6304
6304
|
collapsed: s,
|
|
6305
6305
|
gridSpan: y,
|
|
6306
6306
|
tabKey: f,
|
|
@@ -6308,13 +6308,13 @@ const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = ie({
|
|
|
6308
6308
|
doSearch: m,
|
|
6309
6309
|
clearAll: d,
|
|
6310
6310
|
showMore: x,
|
|
6311
|
-
tabItemChange:
|
|
6311
|
+
tabItemChange: B,
|
|
6312
6312
|
tabButtonType: N
|
|
6313
6313
|
};
|
|
6314
6314
|
}
|
|
6315
6315
|
}), Qg = { class: "flex items-start justify-between gap-8 w-full" }, Xg = { class: "flex-1" }, Yg = { class: "flex gap-2 flex-1" };
|
|
6316
6316
|
function Zg(e, t, r, n, a, o) {
|
|
6317
|
-
const s = $("NButton"), u = $("NButtonGroup"), p = $("NGridItem"), h = $("NInputGroupLabel"), b = $("NPopover"),
|
|
6317
|
+
const s = $("NButton"), u = $("NButtonGroup"), p = $("NGridItem"), h = $("NInputGroupLabel"), b = $("NPopover"), D = $("UzFormItem"), y = $("NInputGroup"), f = $("NGrid"), g = $("CaretDown"), l = $("NIcon"), v = $("Search"), m = $("Refresh"), d = Bl("media");
|
|
6318
6318
|
return c(), w("div", {
|
|
6319
6319
|
class: "uz-search-bar flex justify-between gap-2 w-full",
|
|
6320
6320
|
onKeyup: t[1] || (t[1] = Uc((x) => e.doSearch(!1), ["enter"]))
|
|
@@ -6330,21 +6330,21 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6330
6330
|
collapsed: e.collapsed
|
|
6331
6331
|
}, {
|
|
6332
6332
|
default: k(() => [
|
|
6333
|
-
e.tabList && e.tabList.length > 0 ? (c(),
|
|
6333
|
+
e.tabList && e.tabList.length > 0 ? (c(), A(p, {
|
|
6334
6334
|
key: 0,
|
|
6335
6335
|
span: e.gridSpan
|
|
6336
6336
|
}, {
|
|
6337
6337
|
default: k(() => [
|
|
6338
6338
|
T(u, null, {
|
|
6339
6339
|
default: k(() => [
|
|
6340
|
-
(c(!0), w(
|
|
6340
|
+
(c(!0), w(se, null, ke(e.tabList, (x) => (c(), A(s, {
|
|
6341
6341
|
key: x.value,
|
|
6342
6342
|
type: e.tabButtonType(x),
|
|
6343
6343
|
secondary: "",
|
|
6344
6344
|
onClick: (N) => e.tabItemChange(x.value)
|
|
6345
6345
|
}, {
|
|
6346
6346
|
default: k(() => [
|
|
6347
|
-
|
|
6347
|
+
H(L(x.label), 1)
|
|
6348
6348
|
]),
|
|
6349
6349
|
_: 2
|
|
6350
6350
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -6353,12 +6353,12 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6353
6353
|
})
|
|
6354
6354
|
]),
|
|
6355
6355
|
_: 1
|
|
6356
|
-
}, 8, ["span"])) :
|
|
6357
|
-
e.offset > -1 ? (c(),
|
|
6356
|
+
}, 8, ["span"])) : W("", !0),
|
|
6357
|
+
e.offset > -1 ? (c(), A(p, {
|
|
6358
6358
|
key: 1,
|
|
6359
6359
|
offset: e.offset
|
|
6360
|
-
}, null, 8, ["offset"])) :
|
|
6361
|
-
(c(!0), w(
|
|
6360
|
+
}, null, 8, ["offset"])) : W("", !0),
|
|
6361
|
+
(c(!0), w(se, null, ke(e.itemData, (x, N) => (c(), A(p, {
|
|
6362
6362
|
key: `${N}_${Date.now()}`,
|
|
6363
6363
|
span: x.search.show ? e.gridSpan : 0
|
|
6364
6364
|
}, {
|
|
@@ -6373,17 +6373,17 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6373
6373
|
trigger: k(() => [
|
|
6374
6374
|
T(h, { class: "uz-group-label" }, {
|
|
6375
6375
|
default: k(() => [
|
|
6376
|
-
|
|
6376
|
+
H(L(typeof x.label == "function" ? x.label() : x.label), 1)
|
|
6377
6377
|
]),
|
|
6378
6378
|
_: 2
|
|
6379
6379
|
}, 1024)
|
|
6380
6380
|
]),
|
|
6381
6381
|
default: k(() => [
|
|
6382
|
-
|
|
6382
|
+
H(L(typeof x.label == "function" ? x.label() : x.label), 1)
|
|
6383
6383
|
]),
|
|
6384
6384
|
_: 2
|
|
6385
6385
|
}, 1024),
|
|
6386
|
-
T(
|
|
6386
|
+
T(D, {
|
|
6387
6387
|
item: x,
|
|
6388
6388
|
formValue: e.itemValue,
|
|
6389
6389
|
clearable: ""
|
|
@@ -6402,14 +6402,14 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6402
6402
|
])
|
|
6403
6403
|
]),
|
|
6404
6404
|
i("div", Yg, [
|
|
6405
|
-
e.more ? (c(),
|
|
6405
|
+
e.more ? (c(), A(s, {
|
|
6406
6406
|
key: 0,
|
|
6407
6407
|
quaternary: "",
|
|
6408
6408
|
onClick: e.showMore
|
|
6409
6409
|
}, {
|
|
6410
6410
|
icon: k(() => [
|
|
6411
6411
|
T(l, {
|
|
6412
|
-
class:
|
|
6412
|
+
class: ue(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
|
|
6413
6413
|
}, {
|
|
6414
6414
|
default: k(() => [
|
|
6415
6415
|
T(g)
|
|
@@ -6418,8 +6418,8 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6418
6418
|
}, 8, ["class"])
|
|
6419
6419
|
]),
|
|
6420
6420
|
_: 1
|
|
6421
|
-
}, 8, ["onClick"])) :
|
|
6422
|
-
e.itemData && Object.keys(e.itemData).length > 0 ? (c(),
|
|
6421
|
+
}, 8, ["onClick"])) : W("", !0),
|
|
6422
|
+
e.itemData && Object.keys(e.itemData).length > 0 ? (c(), A(s, {
|
|
6423
6423
|
key: 1,
|
|
6424
6424
|
loading: e.loading,
|
|
6425
6425
|
secondary: "",
|
|
@@ -6437,11 +6437,11 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6437
6437
|
})
|
|
6438
6438
|
]),
|
|
6439
6439
|
default: k(() => [
|
|
6440
|
-
|
|
6440
|
+
H(" " + L(e.$t("Common.search")), 1)
|
|
6441
6441
|
]),
|
|
6442
6442
|
_: 1
|
|
6443
|
-
}, 8, ["loading"])) :
|
|
6444
|
-
e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (c(),
|
|
6443
|
+
}, 8, ["loading"])) : W("", !0),
|
|
6444
|
+
e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (c(), A(s, {
|
|
6445
6445
|
key: 2,
|
|
6446
6446
|
loading: e.loading,
|
|
6447
6447
|
secondary: "",
|
|
@@ -6456,15 +6456,15 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6456
6456
|
})
|
|
6457
6457
|
]),
|
|
6458
6458
|
default: k(() => [
|
|
6459
|
-
|
|
6459
|
+
H(" " + L(e.$t("Common.reset")), 1)
|
|
6460
6460
|
]),
|
|
6461
6461
|
_: 1
|
|
6462
|
-
}, 8, ["loading", "onClick"])) :
|
|
6462
|
+
}, 8, ["loading", "onClick"])) : W("", !0),
|
|
6463
6463
|
xe(e.$slots, "action")
|
|
6464
6464
|
])
|
|
6465
6465
|
], 32);
|
|
6466
6466
|
}
|
|
6467
|
-
const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 =
|
|
6467
|
+
const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = le({
|
|
6468
6468
|
name: "UzSearchMobileBar",
|
|
6469
6469
|
components: {
|
|
6470
6470
|
NIcon: ve,
|
|
@@ -6503,7 +6503,7 @@ const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = ie({
|
|
|
6503
6503
|
const r = Vt(), n = S([]), a = S(!1), o = S(), s = S(), u = (y) => Array.isArray(y) && y.length > 0 || y ? y : !1, p = (y = !1) => {
|
|
6504
6504
|
if (e.loading)
|
|
6505
6505
|
return;
|
|
6506
|
-
const f =
|
|
6506
|
+
const f = X(o.value);
|
|
6507
6507
|
!y && f.query && (f.query.page = 1);
|
|
6508
6508
|
const g = [];
|
|
6509
6509
|
n.value.forEach((l) => {
|
|
@@ -6521,29 +6521,29 @@ const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = ie({
|
|
|
6521
6521
|
}
|
|
6522
6522
|
}), a.value = !1, t("update:loading", !0), t("on-update:value", g);
|
|
6523
6523
|
}, h = () => {
|
|
6524
|
-
e.loading || (o.value =
|
|
6524
|
+
e.loading || (o.value = X(s.value), p());
|
|
6525
6525
|
}, b = (y) => {
|
|
6526
6526
|
const f = {};
|
|
6527
6527
|
for (const g of y)
|
|
6528
6528
|
g.input === "input" && g.params.type === "textarea" && (g.params.type = "text"), g.search.show = g.search.show ?? !0, g.defaultValue ? f[g.key] = g.defaultValue : (f[g.key] = "", (g.input === "number" || g.input === "date" || g.input === "time") && (f[g.key] = null), g.input === "cascader" && (g.params.multiple ? f[g.key] = [] : f[g.key] = null), g.input === "select" && (g.params.multiple ? f[g.key] = [] : f[g.key] = null));
|
|
6529
6529
|
return { data: y, values: f };
|
|
6530
|
-
},
|
|
6530
|
+
}, D = (y) => {
|
|
6531
6531
|
if (y && y.length > 0) {
|
|
6532
|
-
const { data: f, values: g } = b(
|
|
6532
|
+
const { data: f, values: g } = b(X(y)), l = {}, v = e.id || r.params.id;
|
|
6533
6533
|
if (e.cache && v) {
|
|
6534
|
-
const m =
|
|
6534
|
+
const m = Oe(`tables_${v}`, !1);
|
|
6535
6535
|
m && m.params.forEach((d) => {
|
|
6536
6536
|
l[d.key] = d.value;
|
|
6537
6537
|
});
|
|
6538
6538
|
}
|
|
6539
|
-
n.value = f, o.value =
|
|
6539
|
+
n.value = f, o.value = X({ ...g, ...l }), s.value = X(g);
|
|
6540
6540
|
}
|
|
6541
6541
|
p(!0);
|
|
6542
6542
|
};
|
|
6543
|
-
return
|
|
6543
|
+
return ce(
|
|
6544
6544
|
() => e.data,
|
|
6545
6545
|
(y) => {
|
|
6546
|
-
|
|
6546
|
+
D(y);
|
|
6547
6547
|
}
|
|
6548
6548
|
), {
|
|
6549
6549
|
drawer: a,
|
|
@@ -6555,8 +6555,8 @@ const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = ie({
|
|
|
6555
6555
|
}
|
|
6556
6556
|
}), r2 = { class: "flex items-start justify-between gap-8 pb-2" }, n2 = { class: "flex gap-2" }, a2 = { class: "flex items-center gap-2 w-full" };
|
|
6557
6557
|
function o2(e, t, r, n, a, o) {
|
|
6558
|
-
const s = $("Search"), u = $("NIcon"), p = $("NButton"), h = $("NInputGroupLabel"), b = $("UzFormItem"),
|
|
6559
|
-
return c(), w(
|
|
6558
|
+
const s = $("Search"), u = $("NIcon"), p = $("NButton"), h = $("NInputGroupLabel"), b = $("UzFormItem"), D = $("NInputGroup"), y = $("NGridItem"), f = $("NGrid"), g = $("Refresh"), l = $("NDrawerContent"), v = $("NDrawer");
|
|
6559
|
+
return c(), w(se, null, [
|
|
6560
6560
|
i("div", r2, [
|
|
6561
6561
|
xe(e.$slots, "header"),
|
|
6562
6562
|
i("div", n2, [
|
|
@@ -6573,7 +6573,7 @@ function o2(e, t, r, n, a, o) {
|
|
|
6573
6573
|
})
|
|
6574
6574
|
]),
|
|
6575
6575
|
default: k(() => [
|
|
6576
|
-
|
|
6576
|
+
H(" " + L(e.$t("Common.search")), 1)
|
|
6577
6577
|
]),
|
|
6578
6578
|
_: 1
|
|
6579
6579
|
}),
|
|
@@ -6609,11 +6609,11 @@ function o2(e, t, r, n, a, o) {
|
|
|
6609
6609
|
})
|
|
6610
6610
|
]),
|
|
6611
6611
|
default: k(() => [
|
|
6612
|
-
|
|
6612
|
+
H(" " + L(e.$t("Common.reset")), 1)
|
|
6613
6613
|
]),
|
|
6614
6614
|
_: 1
|
|
6615
6615
|
}, 8, ["loading", "onClick"]),
|
|
6616
|
-
e.itemData && Object.keys(e.itemData).length > 0 ? (c(),
|
|
6616
|
+
e.itemData && Object.keys(e.itemData).length > 0 ? (c(), A(p, {
|
|
6617
6617
|
key: 0,
|
|
6618
6618
|
loading: e.loading,
|
|
6619
6619
|
type: "primary",
|
|
@@ -6629,10 +6629,10 @@ function o2(e, t, r, n, a, o) {
|
|
|
6629
6629
|
})
|
|
6630
6630
|
]),
|
|
6631
6631
|
default: k(() => [
|
|
6632
|
-
|
|
6632
|
+
H(" " + L(e.$t("Common.search")), 1)
|
|
6633
6633
|
]),
|
|
6634
6634
|
_: 1
|
|
6635
|
-
}, 8, ["loading"])) :
|
|
6635
|
+
}, 8, ["loading"])) : W("", !0)
|
|
6636
6636
|
])
|
|
6637
6637
|
]),
|
|
6638
6638
|
default: k(() => [
|
|
@@ -6642,16 +6642,16 @@ function o2(e, t, r, n, a, o) {
|
|
|
6642
6642
|
cols: "1"
|
|
6643
6643
|
}, {
|
|
6644
6644
|
default: k(() => [
|
|
6645
|
-
(c(!0), w(
|
|
6645
|
+
(c(!0), w(se, null, ke(e.itemData, (m, d) => (c(), A(y, {
|
|
6646
6646
|
key: `${d}_${Date.now()}`,
|
|
6647
6647
|
span: m.search.show ? 1 : 0
|
|
6648
6648
|
}, {
|
|
6649
6649
|
default: k(() => [
|
|
6650
|
-
T(
|
|
6650
|
+
T(D, null, {
|
|
6651
6651
|
default: k(() => [
|
|
6652
6652
|
T(h, { class: "uz-group-label" }, {
|
|
6653
6653
|
default: k(() => [
|
|
6654
|
-
|
|
6654
|
+
H(L(typeof m.label == "function" ? m.label() : m.label), 1)
|
|
6655
6655
|
]),
|
|
6656
6656
|
_: 2
|
|
6657
6657
|
}, 1024),
|
|
@@ -6775,12 +6775,12 @@ function Sa() {
|
|
|
6775
6775
|
async function Ta(e) {
|
|
6776
6776
|
const t = e.split(".");
|
|
6777
6777
|
let r = !1;
|
|
6778
|
-
return t.length > 1 && (et.has(t[0]) ? r =
|
|
6778
|
+
return t.length > 1 && (et.has(t[0]) ? r = X(et.get(t[0])) : (r = await Ze({ tableId: t[0] }), et.set(t[0], r))), { sourceData: r, n: t };
|
|
6779
6779
|
}
|
|
6780
6780
|
async function kt(e) {
|
|
6781
6781
|
return new Promise((t, r) => {
|
|
6782
|
-
const n =
|
|
6783
|
-
n && et.has(`dynamicTable_${e}`) ? t(n) :
|
|
6782
|
+
const n = Oe(`dynamicTable_${e}`, !1);
|
|
6783
|
+
n && et.has(`dynamicTable_${e}`) ? t(n) : Rm(e).then((a) => {
|
|
6784
6784
|
!n || n && n.createTime !== a.createTime ? Am(e).then((o) => {
|
|
6785
6785
|
const s = {
|
|
6786
6786
|
createTime: o.createTime,
|
|
@@ -6989,12 +6989,12 @@ const d2 = (e) => e.map((t) => {
|
|
|
6989
6989
|
drawerHeight: e.h,
|
|
6990
6990
|
placement: e.l,
|
|
6991
6991
|
summary: e.r
|
|
6992
|
-
}), Object.assign({}, i2,
|
|
6992
|
+
}), Object.assign({}, i2, X(t));
|
|
6993
6993
|
};
|
|
6994
6994
|
function Zt(e, t, r) {
|
|
6995
6995
|
return new Promise(async (n, a) => {
|
|
6996
|
-
const o = [], s = {}, u = {}, p = {}, h = [], b = [],
|
|
6997
|
-
for (const f of
|
|
6996
|
+
const o = [], s = {}, u = {}, p = {}, h = [], b = [], D = X(e), y = [];
|
|
6997
|
+
for (const f of D)
|
|
6998
6998
|
f.input === "group" ? y.push(...f.params.children) : y.push(f);
|
|
6999
6999
|
for await (const f of y) {
|
|
7000
7000
|
if (f.source) {
|
|
@@ -7105,14 +7105,14 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7105
7105
|
let o = 0;
|
|
7106
7106
|
const s = [], u = [];
|
|
7107
7107
|
let p = [];
|
|
7108
|
-
const h =
|
|
7108
|
+
const h = X(e), b = [], D = [];
|
|
7109
7109
|
for (const l of h)
|
|
7110
|
-
l.input === "group" ? (b.push(...l.params.children),
|
|
7110
|
+
l.input === "group" ? (b.push(...l.params.children), D.push({
|
|
7111
7111
|
title: l.label,
|
|
7112
7112
|
key: l.key,
|
|
7113
7113
|
...l.table,
|
|
7114
7114
|
children: l.params.children.map((v) => v.key)
|
|
7115
|
-
})) : (b.push(l),
|
|
7115
|
+
})) : (b.push(l), D.push(l.key));
|
|
7116
7116
|
const y = [];
|
|
7117
7117
|
e.forEach((l) => {
|
|
7118
7118
|
(l.input === "cascader" || l.input === "select") && l.params.multiple && y.push(l.key);
|
|
@@ -7127,17 +7127,17 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7127
7127
|
const N = [], V = JSON.parse(x[l.key]);
|
|
7128
7128
|
if (V)
|
|
7129
7129
|
for (const U of V) {
|
|
7130
|
-
const
|
|
7130
|
+
const B = m.find(
|
|
7131
7131
|
(q) => String(q.id) === U
|
|
7132
7132
|
);
|
|
7133
|
-
|
|
7133
|
+
B && N.push(
|
|
7134
7134
|
Z(
|
|
7135
7135
|
rd,
|
|
7136
7136
|
{
|
|
7137
7137
|
type: "info"
|
|
7138
7138
|
},
|
|
7139
7139
|
{
|
|
7140
|
-
default: () =>
|
|
7140
|
+
default: () => B[d[1]]
|
|
7141
7141
|
}
|
|
7142
7142
|
)
|
|
7143
7143
|
);
|
|
@@ -7146,12 +7146,12 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7146
7146
|
} else {
|
|
7147
7147
|
const N = m.find(
|
|
7148
7148
|
(V) => {
|
|
7149
|
-
var U,
|
|
7149
|
+
var U, B;
|
|
7150
7150
|
return (
|
|
7151
7151
|
// @ts-ignore
|
|
7152
7152
|
((U = l.params) != null && U.valueKey ? (
|
|
7153
7153
|
// @ts-ignore
|
|
7154
|
-
V[(
|
|
7154
|
+
V[(B = l.params) == null ? void 0 : B.valueKey]
|
|
7155
7155
|
) : String(V.id)) === x[l.key]
|
|
7156
7156
|
);
|
|
7157
7157
|
}
|
|
@@ -7266,8 +7266,8 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7266
7266
|
l.input === "subTable" && l.params.link && u.push(l.params.link);
|
|
7267
7267
|
}
|
|
7268
7268
|
const f = [];
|
|
7269
|
-
if (
|
|
7270
|
-
for (const l of
|
|
7269
|
+
if (D.length > 0) {
|
|
7270
|
+
for (const l of D) {
|
|
7271
7271
|
if (typeof l == "string") {
|
|
7272
7272
|
const v = p.find((m) => m.key === l);
|
|
7273
7273
|
v && f.push(v);
|
|
@@ -7290,7 +7290,7 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7290
7290
|
tableWidth: o
|
|
7291
7291
|
};
|
|
7292
7292
|
}
|
|
7293
|
-
const h2 =
|
|
7293
|
+
const h2 = le({
|
|
7294
7294
|
name: "UzSpin",
|
|
7295
7295
|
components: {
|
|
7296
7296
|
NButton: ge,
|
|
@@ -7326,7 +7326,7 @@ const h2 = ie({
|
|
|
7326
7326
|
};
|
|
7327
7327
|
return Vl(() => {
|
|
7328
7328
|
clearInterval(r.value);
|
|
7329
|
-
}),
|
|
7329
|
+
}), ce(
|
|
7330
7330
|
() => e.status,
|
|
7331
7331
|
(u) => {
|
|
7332
7332
|
u === 1 && s();
|
|
@@ -7340,7 +7340,7 @@ const h2 = ie({
|
|
|
7340
7340
|
});
|
|
7341
7341
|
function w2(e, t, r, n, a, o) {
|
|
7342
7342
|
const s = $("NEllipsis"), u = $("NButton"), p = $("NSpin");
|
|
7343
|
-
return c(),
|
|
7343
|
+
return c(), A(p, { show: e.value }, {
|
|
7344
7344
|
description: k(() => [
|
|
7345
7345
|
T(s, {
|
|
7346
7346
|
"expand-trigger": "click",
|
|
@@ -7348,7 +7348,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7348
7348
|
tooltip: !1
|
|
7349
7349
|
}, {
|
|
7350
7350
|
default: k(() => [
|
|
7351
|
-
|
|
7351
|
+
H(L(e.status === 0 ? "操作进行中..." : e.message), 1)
|
|
7352
7352
|
]),
|
|
7353
7353
|
_: 1
|
|
7354
7354
|
}),
|
|
@@ -7361,7 +7361,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7361
7361
|
onClick: e.handleClose
|
|
7362
7362
|
}, {
|
|
7363
7363
|
default: k(() => [
|
|
7364
|
-
|
|
7364
|
+
H(" 关闭(" + L(e.counts) + "s) ", 1)
|
|
7365
7365
|
]),
|
|
7366
7366
|
_: 1
|
|
7367
7367
|
}, 8, ["onMouseover", "onClick"]), [
|
|
@@ -7374,7 +7374,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7374
7374
|
_: 3
|
|
7375
7375
|
}, 8, ["show"]);
|
|
7376
7376
|
}
|
|
7377
|
-
const Ic = /* @__PURE__ */ _(h2, [["render", w2]]), m2 =
|
|
7377
|
+
const Ic = /* @__PURE__ */ _(h2, [["render", w2]]), m2 = le({
|
|
7378
7378
|
name: "UzOcr",
|
|
7379
7379
|
components: {
|
|
7380
7380
|
NButton: ge,
|
|
@@ -7459,7 +7459,7 @@ function y2(e, t, r, n, a, o) {
|
|
|
7459
7459
|
block: ""
|
|
7460
7460
|
}, {
|
|
7461
7461
|
default: k(() => [
|
|
7462
|
-
|
|
7462
|
+
H(L(e.ocrText), 1)
|
|
7463
7463
|
]),
|
|
7464
7464
|
_: 1
|
|
7465
7465
|
}, 8, ["loading"])
|
|
@@ -7468,14 +7468,14 @@ function y2(e, t, r, n, a, o) {
|
|
|
7468
7468
|
}, 8, ["on-before-upload"]),
|
|
7469
7469
|
t[0] || (t[0] = i("br", null, null, -1)),
|
|
7470
7470
|
i("div", g2, [
|
|
7471
|
-
(c(!0), w(
|
|
7471
|
+
(c(!0), w(se, null, ke(e.text, (b) => (c(), w("div", {
|
|
7472
7472
|
key: b,
|
|
7473
7473
|
class: "uz-ocr-text flex items-center"
|
|
7474
7474
|
}, [
|
|
7475
|
-
i("span", null,
|
|
7475
|
+
i("span", null, L(b), 1),
|
|
7476
7476
|
T(h, {
|
|
7477
7477
|
color: "#0186ff",
|
|
7478
|
-
onClick: (
|
|
7478
|
+
onClick: (D) => e.copy(b)
|
|
7479
7479
|
}, {
|
|
7480
7480
|
default: k(() => [
|
|
7481
7481
|
T(p)
|
|
@@ -7486,7 +7486,7 @@ function y2(e, t, r, n, a, o) {
|
|
|
7486
7486
|
], 512)
|
|
7487
7487
|
]);
|
|
7488
7488
|
}
|
|
7489
|
-
const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14"]]), k2 =
|
|
7489
|
+
const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14"]]), k2 = le({
|
|
7490
7490
|
name: "UzTable",
|
|
7491
7491
|
components: {
|
|
7492
7492
|
NDataTable: La,
|
|
@@ -7496,7 +7496,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7496
7496
|
NDrawer: Pa,
|
|
7497
7497
|
NDrawerContent: Ua,
|
|
7498
7498
|
NSkeleton: Xl,
|
|
7499
|
-
NCheckbox:
|
|
7499
|
+
NCheckbox: Ra,
|
|
7500
7500
|
NSpin: Ea,
|
|
7501
7501
|
NCheckboxGroup: Aa,
|
|
7502
7502
|
NRadioGroup: Ql,
|
|
@@ -7638,73 +7638,73 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7638
7638
|
value: () => null,
|
|
7639
7639
|
setValue: () => null
|
|
7640
7640
|
});
|
|
7641
|
-
const a = Vt(), { t: o } = Ut(), s = Ft(), u = _t(() => he.isMobile), p = S(), h = S(!!n.header), b = S(),
|
|
7641
|
+
const a = Vt(), { t: o } = Ut(), s = Ft(), u = _t(() => he.isMobile), p = S(), h = S(!!n.header), b = S(), D = S(!1), y = S(!1), f = S(!1), g = S(""), l = S(), v = S([]), m = S([]), d = S([]), x = S(void 0), N = S({
|
|
7642
7642
|
params: [],
|
|
7643
7643
|
query: {
|
|
7644
7644
|
page: 1
|
|
7645
7645
|
}
|
|
7646
|
-
}), V = S([]), U = S(void 0),
|
|
7646
|
+
}), V = S([]), U = S(void 0), B = S(void 0), q = S(!1), j = S(0), C = S({}), I = S([]), R = S([]), F = S([]), z = S([]), G = S({
|
|
7647
7647
|
fetch: null,
|
|
7648
7648
|
when_open: null,
|
|
7649
7649
|
when_create: null,
|
|
7650
7650
|
when_edit: null,
|
|
7651
7651
|
when_delete: null,
|
|
7652
7652
|
when_before_save: ""
|
|
7653
|
-
}),
|
|
7653
|
+
}), ee = S({
|
|
7654
7654
|
fetch: null,
|
|
7655
7655
|
when_open: null,
|
|
7656
7656
|
when_create: null,
|
|
7657
7657
|
when_edit: null,
|
|
7658
7658
|
when_delete: null,
|
|
7659
7659
|
when_before_save: ""
|
|
7660
|
-
}),
|
|
7660
|
+
}), J = S(ut()), ie = S(!1), pe = S(0), Te = S(""), Ce = S(!1), ye = S([]), Ne = S([]), St = S(!1), Tt = S(""), Nt = S({}), tr = He("modules"), rr = (M) => M.id, nr = (M, O) => {
|
|
7661
7661
|
t("update:rowKeys", {
|
|
7662
7662
|
keys: M,
|
|
7663
|
-
rows:
|
|
7663
|
+
rows: X(O)
|
|
7664
7664
|
});
|
|
7665
|
-
}, ar = (M,
|
|
7666
|
-
if (ye.value = M,
|
|
7665
|
+
}, ar = (M, O, K) => {
|
|
7666
|
+
if (ye.value = M, K.action === "check" && Ne.value.push(K.row), K.action === "uncheck") {
|
|
7667
7667
|
const ae = Ne.value.findIndex(
|
|
7668
7668
|
(P) => {
|
|
7669
|
-
var
|
|
7670
|
-
return P.id === ((
|
|
7669
|
+
var Q;
|
|
7670
|
+
return P.id === ((Q = K.row) == null ? void 0 : Q.id);
|
|
7671
7671
|
}
|
|
7672
7672
|
);
|
|
7673
7673
|
Ne.value.splice(ae, 1);
|
|
7674
7674
|
}
|
|
7675
|
-
|
|
7675
|
+
K.action === "checkAll" && O.forEach((ae) => {
|
|
7676
7676
|
ae && Ne.value.push(ae);
|
|
7677
|
-
}),
|
|
7678
|
-
keys:
|
|
7679
|
-
rows:
|
|
7677
|
+
}), K.action === "uncheckAll" && (Ne.value = [], ye.value = []), t("update:rowKeys", {
|
|
7678
|
+
keys: X(ye.value),
|
|
7679
|
+
rows: X(Ne.value)
|
|
7680
7680
|
});
|
|
7681
7681
|
}, Xe = (M) => {
|
|
7682
|
-
const
|
|
7683
|
-
return
|
|
7682
|
+
const O = M.filter((K) => K !== null && typeof K < "u" && K !== "");
|
|
7683
|
+
return O.length > 0 ? O : !1;
|
|
7684
7684
|
}, or = (M) => {
|
|
7685
|
-
const
|
|
7686
|
-
return
|
|
7685
|
+
const O = e.summary || J.value.summary;
|
|
7686
|
+
return O && typeof O == "string" ? new Function("pageData", "h", O)(M, "h", Z) : O && typeof O == "function" ? O(M) : [];
|
|
7687
7687
|
}, me = (M = !1) => {
|
|
7688
|
-
const
|
|
7689
|
-
e.enableLoading && (
|
|
7690
|
-
const
|
|
7691
|
-
if (M && delete
|
|
7692
|
-
Pe([
|
|
7688
|
+
const O = e.id || a.params.id;
|
|
7689
|
+
e.enableLoading && (D.value = !0, t("update:loading", !0));
|
|
7690
|
+
const K = X(N.value);
|
|
7691
|
+
if (M && delete K.orderby, G.value.fetch)
|
|
7692
|
+
Pe([G.value.fetch], "", K).then((ae) => {
|
|
7693
7693
|
const P = bo(ae);
|
|
7694
|
-
N.value.query = P.query, d.value = P.records,
|
|
7694
|
+
N.value.query = P.query, d.value = P.records, D.value = !1, y.value = !0, t("on-update:value", K), t("update:loading", !1), J.value.cache && O && Me(`tables_${O}`, N.value);
|
|
7695
7695
|
}).catch(() => {
|
|
7696
|
-
|
|
7696
|
+
D.value = !1, y.value = !0, t("update:loading", !1);
|
|
7697
7697
|
});
|
|
7698
7698
|
else {
|
|
7699
7699
|
let ae;
|
|
7700
|
-
e.fetch ? ae = e.fetch({ ...
|
|
7701
|
-
...
|
|
7702
|
-
tableId:
|
|
7700
|
+
e.fetch ? ae = e.fetch({ ...K, tableId: O }) : ae = Ze({
|
|
7701
|
+
...K,
|
|
7702
|
+
tableId: O
|
|
7703
7703
|
}), ae.then((P) => {
|
|
7704
|
-
const
|
|
7705
|
-
N.value.query =
|
|
7704
|
+
const Q = bo(P);
|
|
7705
|
+
N.value.query = Q.query, d.value = Q.records, D.value = !1, y.value = !0, t("on-update:value", K), t("update:loading", !1), J.value.cache && O && Me(`tables_${O}`, N.value);
|
|
7706
7706
|
}).catch(() => {
|
|
7707
|
-
|
|
7707
|
+
D.value = !1, y.value = !0, t("update:loading", !1);
|
|
7708
7708
|
});
|
|
7709
7709
|
}
|
|
7710
7710
|
}, sr = (M) => {
|
|
@@ -7713,16 +7713,16 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7713
7713
|
N.value.query.pageSize = M, N.value.query.page = 1, cr(), me();
|
|
7714
7714
|
}, nt = (M) => {
|
|
7715
7715
|
M && M.order ? N.value.orderby = `${M.columnKey} ${M.order.replace("end", "")}` : delete N.value.orderby, me();
|
|
7716
|
-
},
|
|
7717
|
-
Ve(), typeof e.addFetch == "function" ? e.addFetch() : (
|
|
7716
|
+
}, te = () => {
|
|
7717
|
+
Ve(), typeof e.addFetch == "function" ? e.addFetch() : (j.value = 0, q.value = !0);
|
|
7718
7718
|
}, Be = (M) => {
|
|
7719
7719
|
M.pin = !M.pin, M.pin ? M.fixed = "left" : M.fixed = M.fixTemp ?? void 0, ot();
|
|
7720
7720
|
}, Fe = (M) => {
|
|
7721
7721
|
M.show = !M.show, ot();
|
|
7722
7722
|
}, lr = () => {
|
|
7723
7723
|
const M = [];
|
|
7724
|
-
m.value.forEach((
|
|
7725
|
-
|
|
7724
|
+
m.value.forEach((O) => {
|
|
7725
|
+
O.show && M.push(O);
|
|
7726
7726
|
}), v.value = M;
|
|
7727
7727
|
}, at = (M) => {
|
|
7728
7728
|
N.value.params = M, me();
|
|
@@ -7777,17 +7777,17 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7777
7777
|
)
|
|
7778
7778
|
]
|
|
7779
7779
|
}
|
|
7780
|
-
],
|
|
7781
|
-
var
|
|
7782
|
-
return !e.ruleFetch || !
|
|
7780
|
+
], de = (M) => {
|
|
7781
|
+
var O;
|
|
7782
|
+
return !e.ruleFetch || !I.value || I.value && I.value[0] === "*" ? !1 : !((O = I.value) != null && O.includes(M));
|
|
7783
7783
|
}, Ve = async (M) => {
|
|
7784
|
-
const { form:
|
|
7785
|
-
|
|
7784
|
+
const { form: O, fillingDefaultValue: K } = await Zt(
|
|
7785
|
+
R.value,
|
|
7786
7786
|
M,
|
|
7787
7787
|
() => b.value.getValues()
|
|
7788
7788
|
);
|
|
7789
|
-
return l.value =
|
|
7790
|
-
}, Ue = async (M) => new Promise((
|
|
7789
|
+
return l.value = O, G.value = ee.value, K;
|
|
7790
|
+
}, Ue = async (M) => new Promise((O, K) => {
|
|
7791
7791
|
const ae = e.id || a.params.id;
|
|
7792
7792
|
let P;
|
|
7793
7793
|
e.fetch ? P = e.fetch({
|
|
@@ -7796,35 +7796,35 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7796
7796
|
}) : P = Ze({
|
|
7797
7797
|
id: M.id,
|
|
7798
7798
|
tableId: ae
|
|
7799
|
-
}), P.then((
|
|
7800
|
-
|
|
7799
|
+
}), P.then((Q) => {
|
|
7800
|
+
O(Q && Q[0]);
|
|
7801
7801
|
}).catch(() => {
|
|
7802
|
-
|
|
7802
|
+
K();
|
|
7803
7803
|
});
|
|
7804
|
-
}), It = (M,
|
|
7805
|
-
const
|
|
7804
|
+
}), It = (M, O) => {
|
|
7805
|
+
const K = X(M.onClick), ae = e.id || a.params.id;
|
|
7806
7806
|
if (M.disabled) {
|
|
7807
7807
|
if (typeof M.disabled == "string") {
|
|
7808
7808
|
const P = new Function("rowData", "rowIndex", M.disabled);
|
|
7809
|
-
M.disabled = (
|
|
7809
|
+
M.disabled = (Q, oe) => P(Q, oe) || de(M.key);
|
|
7810
7810
|
} else if (typeof M.disabled == "function") {
|
|
7811
|
-
const P =
|
|
7812
|
-
M.disabled = (
|
|
7811
|
+
const P = X(M);
|
|
7812
|
+
M.disabled = (Q, oe) => P.disabled(Q, oe) || de(M.key);
|
|
7813
7813
|
}
|
|
7814
7814
|
} else
|
|
7815
|
-
M.disabled = () =>
|
|
7816
|
-
if (M.loading =
|
|
7815
|
+
M.disabled = () => de(M.key);
|
|
7816
|
+
if (M.loading = D.value, M.type !== "group" && M.optionsType)
|
|
7817
7817
|
M.onClick = async (P) => {
|
|
7818
|
-
Ue(P).then((
|
|
7818
|
+
Ue(P).then((Q) => {
|
|
7819
7819
|
if (M.optionsType === "drawer:insider") {
|
|
7820
|
-
if (
|
|
7820
|
+
if (K)
|
|
7821
7821
|
try {
|
|
7822
7822
|
new Function(
|
|
7823
7823
|
"rowData",
|
|
7824
7824
|
"POST",
|
|
7825
7825
|
"fnNotification",
|
|
7826
|
-
|
|
7827
|
-
)(
|
|
7826
|
+
K
|
|
7827
|
+
)(Q, we, s).then((be) => {
|
|
7828
7828
|
Nt.value = be;
|
|
7829
7829
|
}).catch(() => null);
|
|
7830
7830
|
} catch {
|
|
@@ -7836,17 +7836,17 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7836
7836
|
footer: M.footer,
|
|
7837
7837
|
width: M.width,
|
|
7838
7838
|
open: M.optionsType,
|
|
7839
|
-
mainFormValue:
|
|
7839
|
+
mainFormValue: Q,
|
|
7840
7840
|
children: () => P,
|
|
7841
7841
|
callback: null
|
|
7842
7842
|
});
|
|
7843
7843
|
}).catch(() => null);
|
|
7844
7844
|
};
|
|
7845
7845
|
else if (M.type !== "group" && M.action === "detailInside") {
|
|
7846
|
-
const P =
|
|
7847
|
-
M.onClick = (
|
|
7848
|
-
q.value = !0,
|
|
7849
|
-
const be = await Ve(oe),
|
|
7846
|
+
const P = X(M.onClick);
|
|
7847
|
+
M.onClick = (Q) => {
|
|
7848
|
+
q.value = !0, j.value = 2, Ue(Q).then(async (oe) => {
|
|
7849
|
+
const be = await Ve(oe), fe = { ...oe, ...be };
|
|
7850
7850
|
if (P && typeof P == "string")
|
|
7851
7851
|
try {
|
|
7852
7852
|
new Function(
|
|
@@ -7854,22 +7854,22 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7854
7854
|
"POST",
|
|
7855
7855
|
"fnNotification",
|
|
7856
7856
|
P
|
|
7857
|
-
)(
|
|
7857
|
+
)(fe, we, s).then((lt) => {
|
|
7858
7858
|
C.value = lt;
|
|
7859
7859
|
}).catch(() => null);
|
|
7860
7860
|
} catch {
|
|
7861
7861
|
}
|
|
7862
7862
|
else
|
|
7863
|
-
C.value =
|
|
7863
|
+
C.value = fe;
|
|
7864
7864
|
}).catch(() => {
|
|
7865
7865
|
st();
|
|
7866
7866
|
});
|
|
7867
7867
|
};
|
|
7868
7868
|
} else if (M.type !== "group" && M.action === "editInside") {
|
|
7869
|
-
const P =
|
|
7870
|
-
M.onClick = (
|
|
7871
|
-
q.value = !0,
|
|
7872
|
-
const be = await Ve(oe),
|
|
7869
|
+
const P = X(M.onClick);
|
|
7870
|
+
M.onClick = (Q) => {
|
|
7871
|
+
q.value = !0, j.value = 1, Ue(Q).then(async (oe) => {
|
|
7872
|
+
const be = await Ve(oe), fe = { ...oe, ...be };
|
|
7873
7873
|
if (P && typeof P == "string")
|
|
7874
7874
|
try {
|
|
7875
7875
|
new Function(
|
|
@@ -7877,56 +7877,56 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7877
7877
|
"POST",
|
|
7878
7878
|
"fnNotification",
|
|
7879
7879
|
P
|
|
7880
|
-
)(
|
|
7880
|
+
)(fe, we, s).then((lt) => {
|
|
7881
7881
|
C.value = lt;
|
|
7882
7882
|
}).catch(() => null);
|
|
7883
7883
|
} catch {
|
|
7884
7884
|
}
|
|
7885
7885
|
else
|
|
7886
|
-
C.value =
|
|
7886
|
+
C.value = fe;
|
|
7887
7887
|
}).catch(() => {
|
|
7888
7888
|
st();
|
|
7889
7889
|
});
|
|
7890
7890
|
};
|
|
7891
7891
|
} else if (M.type !== "group" && M.action === "deleteInside")
|
|
7892
7892
|
M.onClick = (P) => {
|
|
7893
|
-
let
|
|
7894
|
-
e.deleteFetch ?
|
|
7893
|
+
let Q;
|
|
7894
|
+
e.deleteFetch ? Q = e.deleteFetch({
|
|
7895
7895
|
...P,
|
|
7896
7896
|
tableId: ae,
|
|
7897
|
-
sub_table_ids:
|
|
7898
|
-
}) :
|
|
7897
|
+
sub_table_ids: O
|
|
7898
|
+
}) : Q = Om({
|
|
7899
7899
|
...P,
|
|
7900
7900
|
tableId: ae,
|
|
7901
|
-
sub_table_ids:
|
|
7902
|
-
}),
|
|
7903
|
-
if (me(),
|
|
7904
|
-
const oe = Xe(
|
|
7901
|
+
sub_table_ids: O
|
|
7902
|
+
}), Q.then(() => {
|
|
7903
|
+
if (me(), G.value.when_delete) {
|
|
7904
|
+
const oe = Xe(G.value.when_delete);
|
|
7905
7905
|
oe && Pe(oe, P.id);
|
|
7906
7906
|
}
|
|
7907
7907
|
}).catch(() => {
|
|
7908
7908
|
});
|
|
7909
7909
|
};
|
|
7910
7910
|
else if (M.type !== "group" && M.action) {
|
|
7911
|
-
const P =
|
|
7912
|
-
M.onClick = (
|
|
7911
|
+
const P = X(M.onClick);
|
|
7912
|
+
M.onClick = (Q) => {
|
|
7913
7913
|
let oe;
|
|
7914
7914
|
e.fetch ? oe = e.fetch({
|
|
7915
|
-
id:
|
|
7915
|
+
id: Q.id,
|
|
7916
7916
|
tableId: ae
|
|
7917
7917
|
}) : oe = Ze({
|
|
7918
|
-
id:
|
|
7918
|
+
id: Q.id,
|
|
7919
7919
|
tableId: ae
|
|
7920
7920
|
}), oe.then((be) => {
|
|
7921
|
-
const
|
|
7921
|
+
const fe = be && be[0];
|
|
7922
7922
|
Pe(
|
|
7923
7923
|
[M.action],
|
|
7924
|
-
|
|
7925
|
-
|
|
7924
|
+
fe.id,
|
|
7925
|
+
fe
|
|
7926
7926
|
).then((qe) => {
|
|
7927
7927
|
if (P && typeof P == "string") {
|
|
7928
7928
|
try {
|
|
7929
|
-
new Function("rowData", "res", P)(
|
|
7929
|
+
new Function("rowData", "res", P)(fe, qe).then((ir) => {
|
|
7930
7930
|
s.success({
|
|
7931
7931
|
content: ir,
|
|
7932
7932
|
duration: 3e3
|
|
@@ -7943,7 +7943,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7943
7943
|
return;
|
|
7944
7944
|
}
|
|
7945
7945
|
if (P && typeof P == "function") {
|
|
7946
|
-
P(
|
|
7946
|
+
P(fe, qe, () => {
|
|
7947
7947
|
s.success({
|
|
7948
7948
|
content: () => o("Notice.success"),
|
|
7949
7949
|
duration: 3e3
|
|
@@ -7967,15 +7967,15 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7967
7967
|
}
|
|
7968
7968
|
}, ht = async () => {
|
|
7969
7969
|
Ce.value = !1, Sa();
|
|
7970
|
-
const { tableColumns: M, search:
|
|
7971
|
-
|
|
7970
|
+
const { tableColumns: M, search: O, subTableIds: K, tableWidth: ae } = await er(
|
|
7971
|
+
R.value,
|
|
7972
7972
|
e.child,
|
|
7973
|
-
|
|
7973
|
+
j.value,
|
|
7974
7974
|
() => C.value,
|
|
7975
7975
|
tr
|
|
7976
7976
|
);
|
|
7977
7977
|
let P = ae;
|
|
7978
|
-
!u.value &&
|
|
7978
|
+
!u.value && J.value.index && (M.unshift({
|
|
7979
7979
|
title: "#",
|
|
7980
7980
|
key: "index",
|
|
7981
7981
|
align: "center",
|
|
@@ -7990,67 +7990,67 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7990
7990
|
{},
|
|
7991
7991
|
{
|
|
7992
7992
|
default: () => {
|
|
7993
|
-
const
|
|
7994
|
-
return (
|
|
7993
|
+
const fe = N.value.query.page || 1, qe = N.value.query.pageSize || 30;
|
|
7994
|
+
return (fe - 1) * qe + (be + 1);
|
|
7995
7995
|
}
|
|
7996
7996
|
}
|
|
7997
7997
|
);
|
|
7998
7998
|
}
|
|
7999
|
-
}), P = P + 60), !u.value && (e.selection ||
|
|
7999
|
+
}), P = P + 60), !u.value && (e.selection || J.value.selection !== 0) && (M.unshift({
|
|
8000
8000
|
type: "selection",
|
|
8001
8001
|
fixed: "left",
|
|
8002
8002
|
width: 60,
|
|
8003
8003
|
hide: !0,
|
|
8004
8004
|
show: !0,
|
|
8005
|
-
multiple: e.selection === 2 ||
|
|
8005
|
+
multiple: e.selection === 2 || J.value.selection === 2,
|
|
8006
8006
|
options: ["all", "none"]
|
|
8007
8007
|
}), P = P + 60);
|
|
8008
|
-
const
|
|
8009
|
-
if (!u.value &&
|
|
8010
|
-
const oe =
|
|
8011
|
-
for (const
|
|
8012
|
-
|
|
8013
|
-
It(qe,
|
|
8014
|
-
}) : It(
|
|
8008
|
+
const Q = e.id || a.params.id;
|
|
8009
|
+
if (!u.value && J.value.commonTime && M.push(...Ie()), e.enableAction === !0 && F.value && F.value.length > 0) {
|
|
8010
|
+
const oe = X(F.value);
|
|
8011
|
+
for (const fe of oe)
|
|
8012
|
+
fe.type === "group" ? fe.children.forEach((qe) => {
|
|
8013
|
+
It(qe, K);
|
|
8014
|
+
}) : It(fe, K);
|
|
8015
8015
|
const be = {
|
|
8016
8016
|
title: () => o("Common.action"),
|
|
8017
8017
|
key: "action",
|
|
8018
8018
|
align: "center",
|
|
8019
8019
|
fixed: "right",
|
|
8020
|
-
width:
|
|
8020
|
+
width: J.value.actionWidth,
|
|
8021
8021
|
resizable: !0,
|
|
8022
8022
|
checked: !0,
|
|
8023
8023
|
show: !0,
|
|
8024
8024
|
hide: !0,
|
|
8025
|
-
render(
|
|
8025
|
+
render(fe) {
|
|
8026
8026
|
return $t({
|
|
8027
8027
|
buttons: oe,
|
|
8028
|
-
rowData:
|
|
8028
|
+
rowData: fe,
|
|
8029
8029
|
callback: me,
|
|
8030
|
-
tableId:
|
|
8030
|
+
tableId: Q
|
|
8031
8031
|
});
|
|
8032
8032
|
}
|
|
8033
8033
|
};
|
|
8034
8034
|
P = P + Number(
|
|
8035
|
-
typeof
|
|
8035
|
+
typeof J.value.actionWidth == "string" ? J.value.actionWidth.replace("px", "") : J.value.actionWidth
|
|
8036
8036
|
), M.push(be);
|
|
8037
8037
|
}
|
|
8038
|
-
m.value = M, V.value =
|
|
8038
|
+
m.value = M, V.value = O, x.value = P;
|
|
8039
8039
|
}, De = (M) => typeof M == "number" ? `${M}px` : M, Dt = () => {
|
|
8040
8040
|
if (e.height) {
|
|
8041
8041
|
const M = De(e.height);
|
|
8042
|
-
U.value = M,
|
|
8042
|
+
U.value = M, B.value = M;
|
|
8043
8043
|
return;
|
|
8044
8044
|
}
|
|
8045
|
-
e.minHeight && (U.value = De(e.minHeight)), e.maxHeight && (
|
|
8045
|
+
e.minHeight && (U.value = De(e.minHeight)), e.maxHeight && (B.value = De(e.maxHeight));
|
|
8046
8046
|
}, ot = () => {
|
|
8047
8047
|
const M = [];
|
|
8048
|
-
m.value.forEach((
|
|
8049
|
-
|
|
8050
|
-
key:
|
|
8051
|
-
show:
|
|
8052
|
-
hide:
|
|
8053
|
-
fixed:
|
|
8048
|
+
m.value.forEach((O) => {
|
|
8049
|
+
O.key !== "action" && M.push({
|
|
8050
|
+
key: O.key,
|
|
8051
|
+
show: O.show,
|
|
8052
|
+
hide: O.hide,
|
|
8053
|
+
fixed: O.fixed
|
|
8054
8054
|
});
|
|
8055
8055
|
}), t("on-update:columns", M);
|
|
8056
8056
|
}, st = () => {
|
|
@@ -8058,64 +8058,64 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8058
8058
|
(M = b.value) == null || M.restoreValidation(), C.value = {}, f.value = !1, q.value = !1;
|
|
8059
8059
|
}, jt = () => {
|
|
8060
8060
|
var M;
|
|
8061
|
-
|
|
8062
|
-
if (
|
|
8063
|
-
const P =
|
|
8061
|
+
pe.value = 0, ie.value = !0, (M = b.value) == null || M.validate().then(async (O) => {
|
|
8062
|
+
if (G.value.when_before_save) {
|
|
8063
|
+
const P = G.value.when_before_save, Q = new Function("data", "POST", P);
|
|
8064
8064
|
try {
|
|
8065
|
-
|
|
8066
|
-
|
|
8065
|
+
O = await Q(O, we).catch((oe) => {
|
|
8066
|
+
pe.value = 1, Te.value = oe.message;
|
|
8067
8067
|
});
|
|
8068
8068
|
} catch (oe) {
|
|
8069
|
-
|
|
8069
|
+
pe.value = 1, Te.value = oe.message;
|
|
8070
8070
|
return;
|
|
8071
8071
|
}
|
|
8072
8072
|
}
|
|
8073
|
-
let
|
|
8073
|
+
let K;
|
|
8074
8074
|
const ae = e.id || a.params.id;
|
|
8075
|
-
e.formFetch ?
|
|
8075
|
+
e.formFetch ? K = e.formFetch({
|
|
8076
8076
|
tableId: ae,
|
|
8077
|
-
...
|
|
8078
|
-
}) :
|
|
8077
|
+
...O
|
|
8078
|
+
}) : K = eo({
|
|
8079
8079
|
tableId: ae,
|
|
8080
|
-
...
|
|
8081
|
-
}),
|
|
8082
|
-
if (Sa(),
|
|
8083
|
-
const
|
|
8084
|
-
|
|
8080
|
+
...O
|
|
8081
|
+
}), K.then((P) => {
|
|
8082
|
+
if (Sa(), ie.value = !1, me(), st(), !j.value && G.value.when_create) {
|
|
8083
|
+
const Q = Xe(G.value.when_create);
|
|
8084
|
+
Q && Pe(Q, P.id);
|
|
8085
8085
|
}
|
|
8086
|
-
if (
|
|
8087
|
-
const
|
|
8088
|
-
|
|
8086
|
+
if (j.value && G.value.when_edit) {
|
|
8087
|
+
const Q = Xe(G.value.when_edit);
|
|
8088
|
+
Q && Pe(Q, O.id);
|
|
8089
8089
|
}
|
|
8090
8090
|
}).catch((P) => {
|
|
8091
|
-
|
|
8091
|
+
pe.value = 1, Te.value = P;
|
|
8092
8092
|
});
|
|
8093
8093
|
}).catch(() => {
|
|
8094
|
-
|
|
8094
|
+
ie.value = !1;
|
|
8095
8095
|
});
|
|
8096
8096
|
}, je = () => {
|
|
8097
|
-
g.value = "",
|
|
8097
|
+
g.value = "", R.value = [], F.value = [], z.value = [], G.value = {
|
|
8098
8098
|
fetch: null,
|
|
8099
8099
|
when_open: null,
|
|
8100
8100
|
when_create: null,
|
|
8101
8101
|
when_edit: null,
|
|
8102
8102
|
when_delete: null,
|
|
8103
8103
|
when_before_save: ""
|
|
8104
|
-
},
|
|
8104
|
+
}, ee.value = {
|
|
8105
8105
|
fetch: null,
|
|
8106
8106
|
when_open: null,
|
|
8107
8107
|
when_create: null,
|
|
8108
8108
|
when_edit: null,
|
|
8109
8109
|
when_delete: null,
|
|
8110
8110
|
when_before_save: ""
|
|
8111
|
-
},
|
|
8111
|
+
}, J.value = ut();
|
|
8112
8112
|
}, Ae = (M) => {
|
|
8113
|
-
const
|
|
8114
|
-
g.value = M.tableTitle,
|
|
8115
|
-
const
|
|
8116
|
-
|
|
8117
|
-
const ae = ut(e.options ??
|
|
8118
|
-
M.tableTitle && ae.title && Sm(M.tableTitle),
|
|
8113
|
+
const O = tt.parse(M.viewJson);
|
|
8114
|
+
g.value = M.tableTitle, R.value = bt(O.table), F.value = Bt(e.actions || O.action);
|
|
8115
|
+
const K = Bt(O.suffix || []);
|
|
8116
|
+
z.value = K.map((P) => (vo(P), P)), G.value = Na(O.trigger), ee.value = Na(O.trigger);
|
|
8117
|
+
const ae = ut(e.options ?? O.option);
|
|
8118
|
+
M.tableTitle && ae.title && Sm(M.tableTitle), J.value = ae;
|
|
8119
8119
|
}, qt = async () => {
|
|
8120
8120
|
y.value = !1, je();
|
|
8121
8121
|
const M = e.id || a.params.id;
|
|
@@ -8126,21 +8126,21 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8126
8126
|
}
|
|
8127
8127
|
}, d.value = [], e.ruleFetch)
|
|
8128
8128
|
try {
|
|
8129
|
-
|
|
8129
|
+
I.value = await e.ruleFetch(M);
|
|
8130
8130
|
} catch {
|
|
8131
8131
|
Te.value = o("Notice.network"), Ce.value = !0;
|
|
8132
8132
|
return;
|
|
8133
8133
|
}
|
|
8134
|
-
if (Dt(), e.columns ? (
|
|
8135
|
-
if (Ae(
|
|
8136
|
-
const
|
|
8137
|
-
|
|
8134
|
+
if (Dt(), e.columns ? (R.value = e.columns || [], F.value = e.actions || [], z.value = e.suffixes || [], J.value = ut(e.options), await ht()) : await kt(M).then(async (O) => {
|
|
8135
|
+
if (Ae(O), await ht(), G.value.when_open) {
|
|
8136
|
+
const K = Xe(G.value.when_open);
|
|
8137
|
+
K && await Pe(K);
|
|
8138
8138
|
}
|
|
8139
|
-
}).catch((
|
|
8140
|
-
Te.value =
|
|
8141
|
-
}),
|
|
8142
|
-
const
|
|
8143
|
-
|
|
8139
|
+
}).catch((O) => {
|
|
8140
|
+
Te.value = O.message, Ce.value = !0;
|
|
8141
|
+
}), G.value.when_open) {
|
|
8142
|
+
const O = Xe(G.value.when_open);
|
|
8143
|
+
O && await Pe(O);
|
|
8144
8144
|
}
|
|
8145
8145
|
}, vo = (M) => {
|
|
8146
8146
|
if (M.type !== "group" && M.optionsType)
|
|
@@ -8156,14 +8156,14 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8156
8156
|
});
|
|
8157
8157
|
};
|
|
8158
8158
|
else if (M.type !== "group") {
|
|
8159
|
-
const
|
|
8159
|
+
const O = X(M.onClick);
|
|
8160
8160
|
M.onClick = async () => {
|
|
8161
|
-
if (
|
|
8161
|
+
if (O && typeof O == "string") {
|
|
8162
8162
|
try {
|
|
8163
|
-
const
|
|
8164
|
-
await
|
|
8165
|
-
} catch (
|
|
8166
|
-
throw new Error(
|
|
8163
|
+
const K = new Function("POST", "fnNotification", O);
|
|
8164
|
+
await K(we, s, K), me();
|
|
8165
|
+
} catch (K) {
|
|
8166
|
+
throw new Error(K);
|
|
8167
8167
|
}
|
|
8168
8168
|
return;
|
|
8169
8169
|
}
|
|
@@ -8172,23 +8172,23 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8172
8172
|
};
|
|
8173
8173
|
return r({ rebuild: qt, init: me }), Ge(async () => {
|
|
8174
8174
|
await qt();
|
|
8175
|
-
}),
|
|
8175
|
+
}), ce(
|
|
8176
8176
|
() => m.value,
|
|
8177
8177
|
() => {
|
|
8178
8178
|
lr();
|
|
8179
8179
|
},
|
|
8180
8180
|
{ deep: !0 }
|
|
8181
|
-
),
|
|
8181
|
+
), ce([() => a.params.id, () => e.id], async () => {
|
|
8182
8182
|
cr(), await qt();
|
|
8183
8183
|
}), {
|
|
8184
|
-
loading:
|
|
8184
|
+
loading: D,
|
|
8185
8185
|
minH: U,
|
|
8186
|
-
maxH:
|
|
8186
|
+
maxH: B,
|
|
8187
8187
|
drawer: q,
|
|
8188
8188
|
formRef: b,
|
|
8189
|
-
ocFormStatus:
|
|
8189
|
+
ocFormStatus: j,
|
|
8190
8190
|
formValues: C,
|
|
8191
|
-
tableOption:
|
|
8191
|
+
tableOption: J,
|
|
8192
8192
|
tableColumns: v,
|
|
8193
8193
|
tableData: d,
|
|
8194
8194
|
tableQueries: N,
|
|
@@ -8198,12 +8198,12 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8198
8198
|
formData: l,
|
|
8199
8199
|
title: g,
|
|
8200
8200
|
dynamicLoading: y,
|
|
8201
|
-
spinShow:
|
|
8201
|
+
spinShow: ie,
|
|
8202
8202
|
spinMsg: Te,
|
|
8203
|
-
spinStatus:
|
|
8203
|
+
spinStatus: pe,
|
|
8204
8204
|
tableScrollX: x,
|
|
8205
8205
|
ocrShow: f,
|
|
8206
|
-
suffixes:
|
|
8206
|
+
suffixes: z,
|
|
8207
8207
|
spinError: Ce,
|
|
8208
8208
|
isMobile: u,
|
|
8209
8209
|
mRef: p,
|
|
@@ -8219,12 +8219,12 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8219
8219
|
pinChange: Be,
|
|
8220
8220
|
showChange: Fe,
|
|
8221
8221
|
submit: at,
|
|
8222
|
-
handleAdd:
|
|
8222
|
+
handleAdd: te,
|
|
8223
8223
|
handleColumnChange: ot,
|
|
8224
8224
|
handleCheckRowKeys: ar,
|
|
8225
8225
|
drawerCancel: st,
|
|
8226
8226
|
drawerSubmit: jt,
|
|
8227
|
-
checkRole:
|
|
8227
|
+
checkRole: de,
|
|
8228
8228
|
handleSuffixClick: vo,
|
|
8229
8229
|
rebuild: qt,
|
|
8230
8230
|
summaryFn: or,
|
|
@@ -8239,7 +8239,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8239
8239
|
class: "uz-transform-fade-in"
|
|
8240
8240
|
}, T2 = { class: "uz-com-title" }, N2 = { class: "flex gap-2 h-full" }, I2 = { class: "flex justify-between w-full" }, D2 = { class: "flex gap-2" };
|
|
8241
8241
|
function j2(e, t, r, n, a, o) {
|
|
8242
|
-
const s = $("NSkeleton"), u = $("NButton"), p = $("Plus"), h = $("NIcon"), b = $("UzActionButton"),
|
|
8242
|
+
const s = $("NSkeleton"), u = $("NButton"), p = $("Plus"), h = $("NIcon"), b = $("UzActionButton"), D = $("UzSearchMobileBar"), y = $("UzTableMobile"), f = $("Filter"), g = $("NCheckbox"), l = $("GridDots"), v = $("Draggable"), m = $("NPopover"), d = $("UzSearchBar"), x = $("NDataTable"), N = $("NSpin"), V = $("UzOcr"), U = $("UzForm"), B = $("UzSpin"), q = $("NDrawerContent"), j = $("NDrawer"), C = $("UzTableDrawer");
|
|
8243
8243
|
return c(), w("div", b2, [
|
|
8244
8244
|
gt(i("div", _2, [
|
|
8245
8245
|
i("div", x2, [
|
|
@@ -8287,7 +8287,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8287
8287
|
class: "uz-table-n-spin"
|
|
8288
8288
|
}, {
|
|
8289
8289
|
description: k(() => [
|
|
8290
|
-
i("div", null,
|
|
8290
|
+
i("div", null, L(e.spinMsg), 1),
|
|
8291
8291
|
t[6] || (t[6] = i("br", null, null, -1)),
|
|
8292
8292
|
T(u, {
|
|
8293
8293
|
type: "primary",
|
|
@@ -8295,7 +8295,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8295
8295
|
block: ""
|
|
8296
8296
|
}, {
|
|
8297
8297
|
default: k(() => t[5] || (t[5] = [
|
|
8298
|
-
|
|
8298
|
+
H("重试", -1)
|
|
8299
8299
|
])),
|
|
8300
8300
|
_: 1,
|
|
8301
8301
|
__: [5]
|
|
@@ -8304,17 +8304,17 @@ function j2(e, t, r, n, a, o) {
|
|
|
8304
8304
|
default: k(() => [
|
|
8305
8305
|
e.isMobile ? (c(), w("div", {
|
|
8306
8306
|
key: 0,
|
|
8307
|
-
class:
|
|
8307
|
+
class: ue([e.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
8308
8308
|
}, [
|
|
8309
|
-
T(
|
|
8309
|
+
T(D, {
|
|
8310
8310
|
data: e.searchData,
|
|
8311
8311
|
id: e.id || e.route.params.id,
|
|
8312
8312
|
cache: e.tableOption.cache,
|
|
8313
8313
|
loading: e.loading,
|
|
8314
8314
|
"onOnUpdate:value": e.submit
|
|
8315
|
-
},
|
|
8315
|
+
}, Re({
|
|
8316
8316
|
action: k(() => [
|
|
8317
|
-
e.addFetch && e.tableOption.addButton ? (c(),
|
|
8317
|
+
e.addFetch && e.tableOption.addButton ? (c(), A(u, {
|
|
8318
8318
|
key: 0,
|
|
8319
8319
|
secondary: "",
|
|
8320
8320
|
disabled: e.checkRole("add"),
|
|
@@ -8329,11 +8329,11 @@ function j2(e, t, r, n, a, o) {
|
|
|
8329
8329
|
})
|
|
8330
8330
|
]),
|
|
8331
8331
|
default: k(() => [
|
|
8332
|
-
|
|
8332
|
+
H(" " + L(e.$t("Common.add")), 1)
|
|
8333
8333
|
]),
|
|
8334
8334
|
_: 1
|
|
8335
|
-
}, 8, ["disabled", "onClick"])) :
|
|
8336
|
-
e.suffixes && e.suffixes.length > 0 ? (c(),
|
|
8335
|
+
}, 8, ["disabled", "onClick"])) : W("", !0),
|
|
8336
|
+
e.suffixes && e.suffixes.length > 0 ? (c(), A(b, {
|
|
8337
8337
|
key: 1,
|
|
8338
8338
|
data: e.suffixes,
|
|
8339
8339
|
hProps: {
|
|
@@ -8341,7 +8341,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8341
8341
|
size: "medium",
|
|
8342
8342
|
text: !1
|
|
8343
8343
|
}
|
|
8344
|
-
}, null, 8, ["data"])) :
|
|
8344
|
+
}, null, 8, ["data"])) : W("", !0),
|
|
8345
8345
|
xe(e.$slots, "action")
|
|
8346
8346
|
]),
|
|
8347
8347
|
_: 2
|
|
@@ -8355,7 +8355,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8355
8355
|
} : {
|
|
8356
8356
|
name: "header",
|
|
8357
8357
|
fn: k(() => [
|
|
8358
|
-
i("div", $2,
|
|
8358
|
+
i("div", $2, L(e.title), 1)
|
|
8359
8359
|
]),
|
|
8360
8360
|
key: "1"
|
|
8361
8361
|
}
|
|
@@ -8373,7 +8373,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8373
8373
|
}, null, 8, ["tableColumns", "tableData", "tableQueries", "pageChange", "selection", "minH", "maxH", "onUpdate:rowKeys"])
|
|
8374
8374
|
], 512)
|
|
8375
8375
|
], 2)) : (c(), w("div", S2, [
|
|
8376
|
-
e.enableHeader ? (c(),
|
|
8376
|
+
e.enableHeader ? (c(), A(d, {
|
|
8377
8377
|
key: 0,
|
|
8378
8378
|
data: e.searchData,
|
|
8379
8379
|
id: e.id || e.route.params.id,
|
|
@@ -8381,9 +8381,9 @@ function j2(e, t, r, n, a, o) {
|
|
|
8381
8381
|
loading: e.loading,
|
|
8382
8382
|
cols: e.searchCols,
|
|
8383
8383
|
"onOnUpdate:value": e.submit
|
|
8384
|
-
},
|
|
8384
|
+
}, Re({
|
|
8385
8385
|
action: k(() => [
|
|
8386
|
-
e.tableOption.filterButton && e.baseColumns.length > 0 ? (c(),
|
|
8386
|
+
e.tableOption.filterButton && e.baseColumns.length > 0 ? (c(), A(m, {
|
|
8387
8387
|
key: 0,
|
|
8388
8388
|
placement: "bottom-end",
|
|
8389
8389
|
trigger: "click",
|
|
@@ -8400,7 +8400,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8400
8400
|
})
|
|
8401
8401
|
]),
|
|
8402
8402
|
default: k(() => [
|
|
8403
|
-
|
|
8403
|
+
H(" " + L(e.$t("Common.columns")), 1)
|
|
8404
8404
|
]),
|
|
8405
8405
|
_: 1
|
|
8406
8406
|
})
|
|
@@ -8408,7 +8408,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8408
8408
|
default: k(() => [
|
|
8409
8409
|
T(v, _a({
|
|
8410
8410
|
modelValue: e.baseColumns,
|
|
8411
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
8411
|
+
"onUpdate:modelValue": t[0] || (t[0] = (I) => e.baseColumns = I)
|
|
8412
8412
|
}, {
|
|
8413
8413
|
animation: 200
|
|
8414
8414
|
}, {
|
|
@@ -8417,18 +8417,18 @@ function j2(e, t, r, n, a, o) {
|
|
|
8417
8417
|
handle: ".uz-drag-handle",
|
|
8418
8418
|
onEnd: e.handleColumnChange
|
|
8419
8419
|
}), {
|
|
8420
|
-
item: k(({ element:
|
|
8421
|
-
|
|
8422
|
-
key:
|
|
8420
|
+
item: k(({ element: I }) => [
|
|
8421
|
+
I.hide ? W("", !0) : (c(), w("div", {
|
|
8422
|
+
key: I.key,
|
|
8423
8423
|
class: "uz-table-sort"
|
|
8424
8424
|
}, [
|
|
8425
8425
|
T(g, {
|
|
8426
|
-
checked:
|
|
8427
|
-
"on-update:checked": () => e.showChange(
|
|
8426
|
+
checked: I.show,
|
|
8427
|
+
"on-update:checked": () => e.showChange(I),
|
|
8428
8428
|
size: "large"
|
|
8429
8429
|
}, {
|
|
8430
8430
|
default: k(() => [
|
|
8431
|
-
|
|
8431
|
+
H(L(typeof I.title == "string" ? I.title : I.title && I.title()), 1)
|
|
8432
8432
|
]),
|
|
8433
8433
|
_: 2
|
|
8434
8434
|
}, 1032, ["checked", "on-update:checked"]),
|
|
@@ -8452,8 +8452,8 @@ function j2(e, t, r, n, a, o) {
|
|
|
8452
8452
|
}, 16, ["modelValue", "onEnd"])
|
|
8453
8453
|
]),
|
|
8454
8454
|
_: 1
|
|
8455
|
-
})) :
|
|
8456
|
-
e.addFetch && e.tableOption.addButton ? (c(),
|
|
8455
|
+
})) : W("", !0),
|
|
8456
|
+
e.addFetch && e.tableOption.addButton ? (c(), A(u, {
|
|
8457
8457
|
key: 1,
|
|
8458
8458
|
secondary: "",
|
|
8459
8459
|
disabled: e.checkRole("add"),
|
|
@@ -8468,11 +8468,11 @@ function j2(e, t, r, n, a, o) {
|
|
|
8468
8468
|
})
|
|
8469
8469
|
]),
|
|
8470
8470
|
default: k(() => [
|
|
8471
|
-
|
|
8471
|
+
H(" " + L(e.$t("Common.add")), 1)
|
|
8472
8472
|
]),
|
|
8473
8473
|
_: 1
|
|
8474
|
-
}, 8, ["disabled", "onClick"])) :
|
|
8475
|
-
e.suffixes && e.suffixes.length > 0 ? (c(),
|
|
8474
|
+
}, 8, ["disabled", "onClick"])) : W("", !0),
|
|
8475
|
+
e.suffixes && e.suffixes.length > 0 ? (c(), A(b, {
|
|
8476
8476
|
key: 2,
|
|
8477
8477
|
data: e.suffixes,
|
|
8478
8478
|
hProps: {
|
|
@@ -8480,7 +8480,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8480
8480
|
size: "medium",
|
|
8481
8481
|
text: !1
|
|
8482
8482
|
}
|
|
8483
|
-
}, null, 8, ["data"])) :
|
|
8483
|
+
}, null, 8, ["data"])) : W("", !0),
|
|
8484
8484
|
xe(e.$slots, "action")
|
|
8485
8485
|
]),
|
|
8486
8486
|
_: 2
|
|
@@ -8494,11 +8494,11 @@ function j2(e, t, r, n, a, o) {
|
|
|
8494
8494
|
} : {
|
|
8495
8495
|
name: "header",
|
|
8496
8496
|
fn: k(() => [
|
|
8497
|
-
i("div", T2,
|
|
8497
|
+
i("div", T2, L(e.title), 1)
|
|
8498
8498
|
]),
|
|
8499
8499
|
key: "1"
|
|
8500
8500
|
}
|
|
8501
|
-
]), 1032, ["data", "id", "cache", "loading", "cols", "onOnUpdate:value"])) :
|
|
8501
|
+
]), 1032, ["data", "id", "cache", "loading", "cols", "onOnUpdate:value"])) : W("", !0),
|
|
8502
8502
|
T(x, {
|
|
8503
8503
|
columns: e.tableColumns,
|
|
8504
8504
|
data: e.tableData,
|
|
@@ -8529,9 +8529,9 @@ function j2(e, t, r, n, a, o) {
|
|
|
8529
8529
|
}, 8, ["show"]), [
|
|
8530
8530
|
[xa, e.dynamicLoading]
|
|
8531
8531
|
]),
|
|
8532
|
-
T(
|
|
8532
|
+
T(j, {
|
|
8533
8533
|
show: e.drawer,
|
|
8534
|
-
"onUpdate:show": t[3] || (t[3] = (
|
|
8534
|
+
"onUpdate:show": t[3] || (t[3] = (I) => e.drawer = I),
|
|
8535
8535
|
width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
|
|
8536
8536
|
height: e.isMobile ? "96%" : e.tableOption.drawerHeight,
|
|
8537
8537
|
placement: e.isMobile ? "bottom" : e.tableOption.placement,
|
|
@@ -8544,13 +8544,13 @@ function j2(e, t, r, n, a, o) {
|
|
|
8544
8544
|
T(q, {
|
|
8545
8545
|
title: e.ocFormStatus === 1 ? e.$t("Common.edit") : e.ocFormStatus === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
|
|
8546
8546
|
closable: ""
|
|
8547
|
-
},
|
|
8547
|
+
}, Re({
|
|
8548
8548
|
default: k(() => [
|
|
8549
8549
|
i("div", N2, [
|
|
8550
|
-
e.ocrShow ? (c(),
|
|
8551
|
-
T(
|
|
8550
|
+
e.ocrShow ? (c(), A(V, { key: 0 })) : W("", !0),
|
|
8551
|
+
T(B, {
|
|
8552
8552
|
value: e.spinShow,
|
|
8553
|
-
"onUpdate:value": t[1] || (t[1] = (
|
|
8553
|
+
"onUpdate:value": t[1] || (t[1] = (I) => e.spinShow = I),
|
|
8554
8554
|
message: e.spinMsg,
|
|
8555
8555
|
status: e.spinStatus,
|
|
8556
8556
|
class: "flex-1"
|
|
@@ -8574,14 +8574,14 @@ function j2(e, t, r, n, a, o) {
|
|
|
8574
8574
|
fn: k(() => [
|
|
8575
8575
|
i("div", I2, [
|
|
8576
8576
|
i("div", null, [
|
|
8577
|
-
e.isMobile ?
|
|
8577
|
+
e.isMobile ? W("", !0) : (c(), A(u, {
|
|
8578
8578
|
key: 0,
|
|
8579
8579
|
type: "primary",
|
|
8580
|
-
onClick: t[2] || (t[2] = (
|
|
8580
|
+
onClick: t[2] || (t[2] = (I) => e.ocrShow = !e.ocrShow),
|
|
8581
8581
|
tertiary: ""
|
|
8582
8582
|
}, {
|
|
8583
8583
|
default: k(() => [
|
|
8584
|
-
|
|
8584
|
+
H(L(e.$t("OCR.ocr")), 1)
|
|
8585
8585
|
]),
|
|
8586
8586
|
_: 1
|
|
8587
8587
|
}))
|
|
@@ -8593,7 +8593,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8593
8593
|
onClick: e.drawerCancel
|
|
8594
8594
|
}, {
|
|
8595
8595
|
default: k(() => [
|
|
8596
|
-
|
|
8596
|
+
H(L(e.$t("Common.cancel")), 1)
|
|
8597
8597
|
]),
|
|
8598
8598
|
_: 1
|
|
8599
8599
|
}, 8, ["loading", "onClick"]),
|
|
@@ -8603,7 +8603,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8603
8603
|
onClick: e.drawerSubmit
|
|
8604
8604
|
}, {
|
|
8605
8605
|
default: k(() => [
|
|
8606
|
-
|
|
8606
|
+
H(L(e.$t("Common.apply")), 1)
|
|
8607
8607
|
]),
|
|
8608
8608
|
_: 1
|
|
8609
8609
|
}, 8, ["loading", "onClick"])
|
|
@@ -8618,15 +8618,15 @@ function j2(e, t, r, n, a, o) {
|
|
|
8618
8618
|
}, 8, ["show", "width", "height", "placement", "on-after-leave"]),
|
|
8619
8619
|
T(C, {
|
|
8620
8620
|
show: e.insiderShow,
|
|
8621
|
-
"onUpdate:show": t[4] || (t[4] = (
|
|
8621
|
+
"onUpdate:show": t[4] || (t[4] = (I) => e.insiderShow = I),
|
|
8622
8622
|
link: e.insiderLink,
|
|
8623
8623
|
mainData: e.insiderData
|
|
8624
8624
|
}, null, 8, ["show", "link", "mainData"])
|
|
8625
8625
|
]);
|
|
8626
8626
|
}
|
|
8627
|
-
const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 =
|
|
8627
|
+
const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
8628
8628
|
name: "UzTableChild",
|
|
8629
|
-
components: { NButton: ge, NIcon: ve, NDataTable: La, NForm: Fa, NDivider:
|
|
8629
|
+
components: { NButton: ge, NIcon: ve, NDataTable: La, NForm: Fa, NDivider: Oa, Plus: dt, GridDots: yt },
|
|
8630
8630
|
props: {
|
|
8631
8631
|
value: { type: Array, default: () => [] },
|
|
8632
8632
|
item: {
|
|
@@ -8642,47 +8642,42 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8642
8642
|
},
|
|
8643
8643
|
emits: ["update:value"],
|
|
8644
8644
|
setup(e, { emit: t, expose: r }) {
|
|
8645
|
-
const n = He("emitSuffix"), a = He("modules"), o = He("mainFormValue"), { t: s } = Ut(), u = S(), p = S(), h = S(), b = S(!1),
|
|
8645
|
+
const n = He("emitSuffix"), a = He("modules"), o = He("mainFormValue"), { t: s } = Ut(), u = S(), p = S(), h = S(), b = S(!1), D = S(!0), y = S([]), f = S([]), g = S({ child: [] }), l = S(""), v = S({}), m = S(void 0), d = async (I) => {
|
|
8646
8646
|
b.value = !0;
|
|
8647
|
-
const { formDefaultValue:
|
|
8647
|
+
const { formDefaultValue: R, fillingDefaultArray: F } = await Zt(
|
|
8648
8648
|
e.item.params.columns,
|
|
8649
|
-
|
|
8649
|
+
I
|
|
8650
8650
|
);
|
|
8651
|
-
|
|
8652
|
-
const
|
|
8653
|
-
...
|
|
8654
|
-
...
|
|
8651
|
+
v.value = R;
|
|
8652
|
+
const z = X(I).map((G, ee) => ({
|
|
8653
|
+
...G,
|
|
8654
|
+
...F[ee]
|
|
8655
8655
|
}));
|
|
8656
8656
|
if (e.item.params.link) {
|
|
8657
|
-
const
|
|
8658
|
-
e.item.params.columns.forEach((
|
|
8659
|
-
(
|
|
8660
|
-
}), e.item.params.draggable &&
|
|
8661
|
-
|
|
8662
|
-
|
|
8657
|
+
const G = [];
|
|
8658
|
+
e.item.params.columns.forEach((ee) => {
|
|
8659
|
+
(ee.input === "cascader" || ee.input === "select") && ee.params.multiple && G.push(ee.key);
|
|
8660
|
+
}), e.item.params.draggable && z.sort((ee, J) => ee.sort_index - J.sort_index), z && z.forEach((ee) => {
|
|
8661
|
+
G.forEach((J) => {
|
|
8662
|
+
ee[J] && typeof ee[J] == "string" && (ee[J] = JSON.parse(ee[J]));
|
|
8663
8663
|
});
|
|
8664
|
-
}), e.item.params.init &&
|
|
8665
|
-
|
|
8664
|
+
}), e.item.params.init && z.length === 0 && e.status === 0 ? g.value.child = [R] : g.value.child = z, b.value = !1, Ee(() => {
|
|
8665
|
+
C();
|
|
8666
8666
|
});
|
|
8667
8667
|
} else
|
|
8668
8668
|
Ee(() => {
|
|
8669
|
-
|
|
8669
|
+
C();
|
|
8670
8670
|
});
|
|
8671
|
-
}, x = () => {
|
|
8672
|
-
const
|
|
8673
|
-
|
|
8674
|
-
A.show && z.push(A);
|
|
8675
|
-
}), y.value = z;
|
|
8676
|
-
}, N = (z) => z.delete ? "uz-table-child-delete" : "", V = async (z) => {
|
|
8677
|
-
const { tableColumns: A, tableWidth: O } = await er(
|
|
8678
|
-
Q(z),
|
|
8671
|
+
}, x = (I) => I.delete ? "uz-table-child-delete" : "", N = async (I) => {
|
|
8672
|
+
const { tableColumns: R, tableWidth: F } = await er(
|
|
8673
|
+
X(e.item.params.columns),
|
|
8679
8674
|
!0,
|
|
8680
8675
|
e.status,
|
|
8681
8676
|
() => g.value.child,
|
|
8682
8677
|
a
|
|
8683
8678
|
);
|
|
8684
|
-
let
|
|
8685
|
-
if (
|
|
8679
|
+
let z = F;
|
|
8680
|
+
if (R.unshift({
|
|
8686
8681
|
title: " ",
|
|
8687
8682
|
key: "index",
|
|
8688
8683
|
align: "center",
|
|
@@ -8693,7 +8688,7 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8693
8688
|
// render(_: ObjectKey, rowIndex: number) {
|
|
8694
8689
|
// return h('span', {}, { default: () => rowIndex + 1 })
|
|
8695
8690
|
// }
|
|
8696
|
-
}),
|
|
8691
|
+
}), z = z + 60, e.item.params.draggable && e.status !== 2 && (R.unshift({
|
|
8697
8692
|
title: " ",
|
|
8698
8693
|
key: "draggable",
|
|
8699
8694
|
align: "center",
|
|
@@ -8712,8 +8707,8 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8712
8707
|
Z(ve, {}, { default: () => Z(yt) })
|
|
8713
8708
|
);
|
|
8714
8709
|
}
|
|
8715
|
-
}),
|
|
8716
|
-
const
|
|
8710
|
+
}), z = z + 40), e.status !== 2) {
|
|
8711
|
+
const ee = {
|
|
8717
8712
|
title: () => s("Common.action"),
|
|
8718
8713
|
key: "action",
|
|
8719
8714
|
align: "center",
|
|
@@ -8723,8 +8718,8 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8723
8718
|
show: !0,
|
|
8724
8719
|
hide: !0,
|
|
8725
8720
|
width: 60,
|
|
8726
|
-
render(
|
|
8727
|
-
const
|
|
8721
|
+
render(J, ie) {
|
|
8722
|
+
const pe = [], Te = {
|
|
8728
8723
|
type: "normal",
|
|
8729
8724
|
color: "error",
|
|
8730
8725
|
key: "delete",
|
|
@@ -8732,54 +8727,57 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8732
8727
|
confirmText: "确认删除?",
|
|
8733
8728
|
onClick: () => {
|
|
8734
8729
|
const Ce = e.item.params.deleteFn;
|
|
8735
|
-
Ce && typeof Ce == "string" ?
|
|
8730
|
+
Ce && typeof Ce == "string" ? J = new Function("rowData", "mainFormValue", Ce)(J, o) : J.delete = !0;
|
|
8736
8731
|
}
|
|
8737
8732
|
};
|
|
8738
8733
|
return e.item.params.childActions && e.item.params.actions && Bt(e.item.params.actions).forEach((ye) => {
|
|
8739
8734
|
if (ye.disabled && typeof ye.disabled == "string") {
|
|
8740
8735
|
const Ne = new Function("rowData", "rowIndex", ye.disabled);
|
|
8741
|
-
ye.disabled = Ne(
|
|
8736
|
+
ye.disabled = Ne(J, ie);
|
|
8742
8737
|
}
|
|
8743
|
-
|
|
8744
|
-
}), e.item.params.showDelete && (e.status !== 2 && (g.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) &&
|
|
8745
|
-
buttons:
|
|
8746
|
-
rowData:
|
|
8738
|
+
pe.push(ye);
|
|
8739
|
+
}), e.item.params.showDelete && (e.status !== 2 && (g.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && pe.push(Te), $t({
|
|
8740
|
+
buttons: pe,
|
|
8741
|
+
rowData: J
|
|
8747
8742
|
});
|
|
8748
8743
|
}
|
|
8749
8744
|
};
|
|
8750
|
-
|
|
8745
|
+
R.push(ee);
|
|
8751
8746
|
}
|
|
8752
|
-
|
|
8753
|
-
|
|
8747
|
+
const G = [];
|
|
8748
|
+
R.forEach((ee) => {
|
|
8749
|
+
ee.show && G.push(ee);
|
|
8750
|
+
}), y.value = G, z = z + 180, m.value = z;
|
|
8751
|
+
}, V = (I) => {
|
|
8754
8752
|
if (e.item.params.summary) {
|
|
8755
8753
|
if (typeof e.item.params.summary == "function")
|
|
8756
|
-
return e.item.params.summary(
|
|
8754
|
+
return e.item.params.summary(I);
|
|
8757
8755
|
try {
|
|
8758
|
-
const
|
|
8759
|
-
return new Function("pageData", "h",
|
|
8760
|
-
} catch (
|
|
8761
|
-
throw new Error(
|
|
8756
|
+
const R = e.item.params.summary;
|
|
8757
|
+
return new Function("pageData", "h", R)(I, Z);
|
|
8758
|
+
} catch (R) {
|
|
8759
|
+
throw new Error(R);
|
|
8762
8760
|
}
|
|
8763
8761
|
}
|
|
8764
8762
|
return [];
|
|
8765
|
-
},
|
|
8766
|
-
l.value = "", g.value.child.push(
|
|
8767
|
-
|
|
8763
|
+
}, U = async () => {
|
|
8764
|
+
l.value = "", g.value.child.push(X(v.value)), Ee(() => {
|
|
8765
|
+
C();
|
|
8768
8766
|
});
|
|
8769
|
-
},
|
|
8767
|
+
}, B = async () => {
|
|
8770
8768
|
l.value = "";
|
|
8771
8769
|
try {
|
|
8772
|
-
const
|
|
8773
|
-
if (
|
|
8774
|
-
const
|
|
8770
|
+
const I = e.item.params.options;
|
|
8771
|
+
if (I) {
|
|
8772
|
+
const R = new Function("formValue", "mainFormValue", "POST", I);
|
|
8775
8773
|
e.item.params.optionsType && n({
|
|
8776
8774
|
open: e.item.params.optionsType,
|
|
8777
8775
|
mainFormValue: o,
|
|
8778
8776
|
children: () => g.value.child,
|
|
8779
|
-
callback: async (
|
|
8780
|
-
const
|
|
8781
|
-
g.value.child = [...g.value.child, ...
|
|
8782
|
-
|
|
8777
|
+
callback: async (F) => {
|
|
8778
|
+
const z = await R(F, o, we);
|
|
8779
|
+
g.value.child = [...g.value.child, ...z], Ee(() => {
|
|
8780
|
+
C();
|
|
8783
8781
|
});
|
|
8784
8782
|
}
|
|
8785
8783
|
});
|
|
@@ -8788,79 +8786,68 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8788
8786
|
open: e.item.params.optionsType,
|
|
8789
8787
|
mainFormValue: o,
|
|
8790
8788
|
children: () => g.value.child,
|
|
8791
|
-
callback: async (
|
|
8792
|
-
g.value.child = [...g.value.child, ...
|
|
8793
|
-
|
|
8789
|
+
callback: async (R) => {
|
|
8790
|
+
g.value.child = [...g.value.child, ...R], Ee(() => {
|
|
8791
|
+
C();
|
|
8794
8792
|
});
|
|
8795
8793
|
}
|
|
8796
8794
|
});
|
|
8797
|
-
} catch (
|
|
8798
|
-
throw new Error(
|
|
8795
|
+
} catch (I) {
|
|
8796
|
+
throw new Error(I);
|
|
8799
8797
|
}
|
|
8800
|
-
},
|
|
8798
|
+
}, q = () => {
|
|
8799
|
+
var I;
|
|
8800
|
+
(I = h.value) == null || I.restoreValidation();
|
|
8801
|
+
}, j = () => (l.value = "", new Promise((I, R) => {
|
|
8801
8802
|
var z;
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
var L;
|
|
8805
|
-
const O = g.value.child.filter(
|
|
8806
|
-
(se) => !se.delete
|
|
8803
|
+
const F = g.value.child.filter(
|
|
8804
|
+
(G) => !G.delete
|
|
8807
8805
|
).length;
|
|
8808
|
-
if (e.item.form.rule.required &&
|
|
8809
|
-
l.value = e.item.form.rule.message,
|
|
8806
|
+
if (e.item.form.rule.required && F === 0) {
|
|
8807
|
+
l.value = e.item.form.rule.message, R();
|
|
8810
8808
|
return;
|
|
8811
8809
|
}
|
|
8812
|
-
(
|
|
8813
|
-
|
|
8810
|
+
(z = h.value) == null || z.validate((G) => {
|
|
8811
|
+
G ? R() : I();
|
|
8814
8812
|
});
|
|
8815
|
-
})),
|
|
8813
|
+
})), C = () => {
|
|
8816
8814
|
if (e.item.params.draggable && e.status !== 2 && u.value && !p.value) {
|
|
8817
|
-
const
|
|
8818
|
-
|
|
8815
|
+
const I = u.value.$el.querySelector(".n-data-table-tbody");
|
|
8816
|
+
I && (p.value = gd.create(I, {
|
|
8819
8817
|
handle: ".uz-drag-handle",
|
|
8820
8818
|
// setData(dataTransfer: any) {
|
|
8821
8819
|
// dataTransfer.setData('Text', '')
|
|
8822
8820
|
// },
|
|
8823
|
-
onEnd: ({ oldIndex:
|
|
8824
|
-
var
|
|
8825
|
-
(
|
|
8826
|
-
let
|
|
8827
|
-
const
|
|
8828
|
-
|
|
8829
|
-
...
|
|
8830
|
-
sort_index:
|
|
8831
|
-
})), g.value.child =
|
|
8832
|
-
|
|
8821
|
+
onEnd: ({ oldIndex: R, newIndex: F }) => {
|
|
8822
|
+
var ee;
|
|
8823
|
+
(ee = p.value) == null || ee.destroy(), p.value = null, D.value = !1;
|
|
8824
|
+
let z = X(g.value.child);
|
|
8825
|
+
const G = z.splice(R, 1)[0];
|
|
8826
|
+
z.splice(F, 0, G), z = z.map((J, ie) => ({
|
|
8827
|
+
...J,
|
|
8828
|
+
sort_index: ie
|
|
8829
|
+
})), g.value.child = z, Ee(() => {
|
|
8830
|
+
D.value = !0;
|
|
8833
8831
|
});
|
|
8834
8832
|
}
|
|
8835
8833
|
}));
|
|
8836
8834
|
}
|
|
8837
8835
|
};
|
|
8838
|
-
return Ge(
|
|
8839
|
-
(
|
|
8836
|
+
return Ge(() => {
|
|
8837
|
+
N(), d(e.value);
|
|
8840
8838
|
}), qa(() => {
|
|
8841
|
-
var
|
|
8842
|
-
(
|
|
8843
|
-
}), r({ validate:
|
|
8844
|
-
() => e.item.params.columns,
|
|
8845
|
-
async (z) => {
|
|
8846
|
-
await V(z), d(e.value);
|
|
8847
|
-
}
|
|
8848
|
-
), ue(
|
|
8849
|
-
() => f.value,
|
|
8850
|
-
() => {
|
|
8851
|
-
x();
|
|
8852
|
-
},
|
|
8853
|
-
{ deep: !0 }
|
|
8854
|
-
), ue(
|
|
8839
|
+
var I;
|
|
8840
|
+
(I = p.value) == null || I.destroy(), p.value = null;
|
|
8841
|
+
}), r({ validate: j, restoreValidation: q }), ce(
|
|
8855
8842
|
() => e.value,
|
|
8856
|
-
(
|
|
8857
|
-
JSON.stringify(
|
|
8843
|
+
(I, R) => {
|
|
8844
|
+
JSON.stringify(I) !== JSON.stringify(R) && d(I);
|
|
8858
8845
|
},
|
|
8859
8846
|
{ deep: !0 }
|
|
8860
|
-
),
|
|
8847
|
+
), ce(
|
|
8861
8848
|
() => g.value.child,
|
|
8862
|
-
(
|
|
8863
|
-
|
|
8849
|
+
(I) => {
|
|
8850
|
+
t("update:value", I);
|
|
8864
8851
|
},
|
|
8865
8852
|
{ deep: !0 }
|
|
8866
8853
|
), {
|
|
@@ -8870,29 +8857,29 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8870
8857
|
columns: y,
|
|
8871
8858
|
tableData: g,
|
|
8872
8859
|
baseColumns: f,
|
|
8873
|
-
summaryData:
|
|
8860
|
+
summaryData: V,
|
|
8874
8861
|
message: l,
|
|
8875
8862
|
tableScrollX: m,
|
|
8876
|
-
tableShow:
|
|
8877
|
-
onAdd:
|
|
8878
|
-
onAddFormData:
|
|
8879
|
-
rowClassName:
|
|
8863
|
+
tableShow: D,
|
|
8864
|
+
onAdd: U,
|
|
8865
|
+
onAddFormData: B,
|
|
8866
|
+
rowClassName: x
|
|
8880
8867
|
};
|
|
8881
8868
|
}
|
|
8882
|
-
}), A2 = { class: "flex-1 w-full" },
|
|
8869
|
+
}), A2 = { class: "flex-1 w-full" }, R2 = { class: "flex justify-between" }, O2 = { class: "uz-com-title" }, B2 = {
|
|
8883
8870
|
key: 0,
|
|
8884
8871
|
class: "uz-table-asterisk"
|
|
8885
8872
|
}, F2 = { class: "flex gap-2" }, V2 = { class: "flex justify-end gap-2" };
|
|
8886
8873
|
function U2(e, t, r, n, a, o) {
|
|
8887
8874
|
const s = $("Plus"), u = $("NIcon"), p = $("NButton"), h = $("NDataTable"), b = $("NForm");
|
|
8888
8875
|
return c(), w("div", A2, [
|
|
8889
|
-
i("div",
|
|
8890
|
-
i("div",
|
|
8891
|
-
|
|
8892
|
-
e.item.form.rule.required ? (c(), w("span", B2, " * ")) :
|
|
8876
|
+
i("div", R2, [
|
|
8877
|
+
i("div", O2, [
|
|
8878
|
+
H(L(e.item.label) + " ", 1),
|
|
8879
|
+
e.item.form.rule.required ? (c(), w("span", B2, " * ")) : W("", !0)
|
|
8893
8880
|
]),
|
|
8894
8881
|
i("div", F2, [
|
|
8895
|
-
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(),
|
|
8882
|
+
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), A(p, {
|
|
8896
8883
|
key: 0,
|
|
8897
8884
|
type: "success",
|
|
8898
8885
|
secondary: "",
|
|
@@ -8907,12 +8894,12 @@ function U2(e, t, r, n, a, o) {
|
|
|
8907
8894
|
})
|
|
8908
8895
|
]),
|
|
8909
8896
|
default: k(() => [
|
|
8910
|
-
t[0] || (t[0] =
|
|
8897
|
+
t[0] || (t[0] = H(" 从数据新增 ", -1))
|
|
8911
8898
|
]),
|
|
8912
8899
|
_: 1,
|
|
8913
8900
|
__: [0]
|
|
8914
|
-
}, 8, ["onClick"])) :
|
|
8915
|
-
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(),
|
|
8901
|
+
}, 8, ["onClick"])) : W("", !0),
|
|
8902
|
+
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), A(p, {
|
|
8916
8903
|
key: 1,
|
|
8917
8904
|
type: "success",
|
|
8918
8905
|
secondary: "",
|
|
@@ -8927,11 +8914,11 @@ function U2(e, t, r, n, a, o) {
|
|
|
8927
8914
|
})
|
|
8928
8915
|
]),
|
|
8929
8916
|
default: k(() => [
|
|
8930
|
-
t[1] || (t[1] =
|
|
8917
|
+
t[1] || (t[1] = H(" 新增 ", -1))
|
|
8931
8918
|
]),
|
|
8932
8919
|
_: 1,
|
|
8933
8920
|
__: [1]
|
|
8934
|
-
}, 8, ["onClick"])) :
|
|
8921
|
+
}, 8, ["onClick"])) : W("", !0)
|
|
8935
8922
|
])
|
|
8936
8923
|
]),
|
|
8937
8924
|
t[4] || (t[4] = i("br", null, null, -1)),
|
|
@@ -8942,22 +8929,23 @@ function U2(e, t, r, n, a, o) {
|
|
|
8942
8929
|
class: "flex flex-col gap-2"
|
|
8943
8930
|
}, {
|
|
8944
8931
|
default: k(() => [
|
|
8945
|
-
e.tableShow ? (c(),
|
|
8932
|
+
e.tableShow ? (c(), A(h, {
|
|
8946
8933
|
key: 0,
|
|
8947
8934
|
ref: "tableRef",
|
|
8948
8935
|
columns: e.columns,
|
|
8949
8936
|
data: e.tableData.child,
|
|
8950
8937
|
pagination: !1,
|
|
8938
|
+
loading: e.loading,
|
|
8951
8939
|
summary: e.summaryData,
|
|
8952
8940
|
"scroll-x": e.tableScrollX,
|
|
8953
|
-
class:
|
|
8941
|
+
class: ue([e.message ? "error-border" : void 0, "uz-table-child"]),
|
|
8954
8942
|
size: "small",
|
|
8955
8943
|
"row-class-name": e.rowClassName,
|
|
8956
8944
|
"scrollbar-props": { size: 8, trigger: "hover" },
|
|
8957
8945
|
remote: ""
|
|
8958
|
-
}, null, 8, ["columns", "data", "summary", "scroll-x", "class", "row-class-name"])) :
|
|
8946
|
+
}, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : W("", !0),
|
|
8959
8947
|
i("div", V2, [
|
|
8960
|
-
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(),
|
|
8948
|
+
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), A(p, {
|
|
8961
8949
|
key: 0,
|
|
8962
8950
|
type: "success",
|
|
8963
8951
|
secondary: "",
|
|
@@ -8972,12 +8960,12 @@ function U2(e, t, r, n, a, o) {
|
|
|
8972
8960
|
})
|
|
8973
8961
|
]),
|
|
8974
8962
|
default: k(() => [
|
|
8975
|
-
t[2] || (t[2] =
|
|
8963
|
+
t[2] || (t[2] = H(" 从数据新增 ", -1))
|
|
8976
8964
|
]),
|
|
8977
8965
|
_: 1,
|
|
8978
8966
|
__: [2]
|
|
8979
|
-
}, 8, ["onClick"])) :
|
|
8980
|
-
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(),
|
|
8967
|
+
}, 8, ["onClick"])) : W("", !0),
|
|
8968
|
+
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (c(), A(p, {
|
|
8981
8969
|
key: 1,
|
|
8982
8970
|
type: "success",
|
|
8983
8971
|
secondary: "",
|
|
@@ -8992,18 +8980,18 @@ function U2(e, t, r, n, a, o) {
|
|
|
8992
8980
|
})
|
|
8993
8981
|
]),
|
|
8994
8982
|
default: k(() => [
|
|
8995
|
-
t[3] || (t[3] =
|
|
8983
|
+
t[3] || (t[3] = H(" 新增 ", -1))
|
|
8996
8984
|
]),
|
|
8997
8985
|
_: 1,
|
|
8998
8986
|
__: [3]
|
|
8999
|
-
}, 8, ["onClick"])) :
|
|
8987
|
+
}, 8, ["onClick"])) : W("", !0)
|
|
9000
8988
|
])
|
|
9001
8989
|
]),
|
|
9002
8990
|
_: 1
|
|
9003
8991
|
}, 8, ["model"])
|
|
9004
8992
|
]);
|
|
9005
8993
|
}
|
|
9006
|
-
const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 =
|
|
8994
|
+
const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = le({
|
|
9007
8995
|
name: "UzTableQuestChild",
|
|
9008
8996
|
components: { NDataTable: La },
|
|
9009
8997
|
props: {
|
|
@@ -9016,7 +9004,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9016
9004
|
},
|
|
9017
9005
|
emits: ["update:value"],
|
|
9018
9006
|
setup(e) {
|
|
9019
|
-
const t = He("modules"), { t: r } = Ut(), n = S(!1), a = S(!1), o = S(""), s = S({}), u = S([]), p = S([]), h = S([]), b = S(void 0),
|
|
9007
|
+
const t = He("modules"), { t: r } = Ut(), n = S(!1), a = S(!1), o = S(""), s = S({}), u = S([]), p = S([]), h = S([]), b = S(void 0), D = (l) => {
|
|
9020
9008
|
if (n.value = !0, e.item.params.link) {
|
|
9021
9009
|
const v = [];
|
|
9022
9010
|
e.item.params.columns.forEach((m) => {
|
|
@@ -9034,7 +9022,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9034
9022
|
}), u.value = l;
|
|
9035
9023
|
}, f = async (l) => {
|
|
9036
9024
|
const { tableColumns: v, tableWidth: m } = await er(
|
|
9037
|
-
|
|
9025
|
+
X(l),
|
|
9038
9026
|
!0,
|
|
9039
9027
|
2,
|
|
9040
9028
|
() => h.value,
|
|
@@ -9093,7 +9081,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9093
9081
|
}
|
|
9094
9082
|
return [];
|
|
9095
9083
|
};
|
|
9096
|
-
return
|
|
9084
|
+
return ce(
|
|
9097
9085
|
() => e.item.params.columns,
|
|
9098
9086
|
async (l) => {
|
|
9099
9087
|
await f(l);
|
|
@@ -9112,12 +9100,12 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9112
9100
|
}
|
|
9113
9101
|
]
|
|
9114
9102
|
});
|
|
9115
|
-
|
|
9103
|
+
D(l);
|
|
9116
9104
|
}
|
|
9117
9105
|
} catch {
|
|
9118
|
-
|
|
9106
|
+
D([]);
|
|
9119
9107
|
}
|
|
9120
|
-
}),
|
|
9108
|
+
}), ce(
|
|
9121
9109
|
() => p.value,
|
|
9122
9110
|
() => {
|
|
9123
9111
|
y();
|
|
@@ -9140,7 +9128,7 @@ function G2(e, t, r, n, a, o) {
|
|
|
9140
9128
|
const s = $("NDataTable"), u = $("UzTableDrawer");
|
|
9141
9129
|
return c(), w("div", L2, [
|
|
9142
9130
|
i("div", H2, [
|
|
9143
|
-
i("div", K2,
|
|
9131
|
+
i("div", K2, L(e.item.label), 1)
|
|
9144
9132
|
]),
|
|
9145
9133
|
t[1] || (t[1] = i("br", null, null, -1)),
|
|
9146
9134
|
T(s, {
|
|
@@ -9164,7 +9152,7 @@ function G2(e, t, r, n, a, o) {
|
|
|
9164
9152
|
}, null, 8, ["show", "link", "mainData"])
|
|
9165
9153
|
]);
|
|
9166
9154
|
}
|
|
9167
|
-
const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 =
|
|
9155
|
+
const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = le({
|
|
9168
9156
|
name: "UzTableDrawer",
|
|
9169
9157
|
components: {
|
|
9170
9158
|
NButton: ge,
|
|
@@ -9219,7 +9207,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9219
9207
|
drawerHeight: "96vh",
|
|
9220
9208
|
placement: "right",
|
|
9221
9209
|
summary: ""
|
|
9222
|
-
}), u = S(!1), p = S(!1), h = S(""), b = S(0),
|
|
9210
|
+
}), u = S(!1), p = S(!1), h = S(""), b = S(0), D = S(), y = S({
|
|
9223
9211
|
fetch: null,
|
|
9224
9212
|
when_open: null,
|
|
9225
9213
|
when_create: null,
|
|
@@ -9237,7 +9225,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9237
9225
|
const N = tt.parse(x.viewJson), { form: V } = await Zt(
|
|
9238
9226
|
bt(N.table)
|
|
9239
9227
|
);
|
|
9240
|
-
|
|
9228
|
+
D.value = V, s.value = ut(N.option), y.value = N.trigger, e.mainData && (a.value = e.mainData);
|
|
9241
9229
|
}).catch(() => {
|
|
9242
9230
|
f.value = !0;
|
|
9243
9231
|
});
|
|
@@ -9251,11 +9239,11 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9251
9239
|
if (y.value.when_before_save) {
|
|
9252
9240
|
const V = y.value.when_before_save, U = new Function("data", "POST", V);
|
|
9253
9241
|
try {
|
|
9254
|
-
x = await U(x, we).catch((
|
|
9255
|
-
b.value = 1, h.value =
|
|
9242
|
+
x = await U(x, we).catch((B) => {
|
|
9243
|
+
b.value = 1, h.value = B.message;
|
|
9256
9244
|
});
|
|
9257
|
-
} catch (
|
|
9258
|
-
b.value = 1, h.value =
|
|
9245
|
+
} catch (B) {
|
|
9246
|
+
b.value = 1, h.value = B.message;
|
|
9259
9247
|
return;
|
|
9260
9248
|
}
|
|
9261
9249
|
}
|
|
@@ -9271,17 +9259,17 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9271
9259
|
Ze({
|
|
9272
9260
|
tableId: N
|
|
9273
9261
|
}).then((U) => {
|
|
9274
|
-
const
|
|
9262
|
+
const B = e.link.split(".");
|
|
9275
9263
|
let q;
|
|
9276
9264
|
if (e.linkFn) {
|
|
9277
|
-
const
|
|
9278
|
-
q = new Function("sourceData",
|
|
9265
|
+
const j = e.linkFn;
|
|
9266
|
+
q = new Function("sourceData", j)(U);
|
|
9279
9267
|
} else
|
|
9280
|
-
q = U.map((
|
|
9281
|
-
label:
|
|
9282
|
-
value:
|
|
9283
|
-
disabled: (
|
|
9284
|
-
params:
|
|
9268
|
+
q = U.map((j) => ({
|
|
9269
|
+
label: j[B[1]],
|
|
9270
|
+
value: j.id,
|
|
9271
|
+
disabled: (j == null ? void 0 : j.status) === "0",
|
|
9272
|
+
params: j
|
|
9285
9273
|
}));
|
|
9286
9274
|
p.value = !1, t("on-submit", q), g();
|
|
9287
9275
|
});
|
|
@@ -9292,7 +9280,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9292
9280
|
p.value = !1;
|
|
9293
9281
|
});
|
|
9294
9282
|
};
|
|
9295
|
-
return
|
|
9283
|
+
return ce(
|
|
9296
9284
|
() => e.show,
|
|
9297
9285
|
(d) => {
|
|
9298
9286
|
d && l();
|
|
@@ -9305,7 +9293,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9305
9293
|
spinShow: p,
|
|
9306
9294
|
spinMsg: h,
|
|
9307
9295
|
spinStatus: b,
|
|
9308
|
-
formData:
|
|
9296
|
+
formData: D,
|
|
9309
9297
|
formValues: a,
|
|
9310
9298
|
spinError: f,
|
|
9311
9299
|
isMobile: r,
|
|
@@ -9316,8 +9304,8 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9316
9304
|
}
|
|
9317
9305
|
}), Q2 = { class: "flex gap-2 h-full" }, X2 = { class: "flex justify-between w-full" }, Y2 = { class: "flex gap-2" };
|
|
9318
9306
|
function Z2(e, t, r, n, a, o) {
|
|
9319
|
-
const s = $("NButton"), u = $("UzOcr"), p = $("UzForm"), h = $("UzSpin"), b = $("NSpin"),
|
|
9320
|
-
return c(),
|
|
9307
|
+
const s = $("NButton"), u = $("UzOcr"), p = $("UzForm"), h = $("UzSpin"), b = $("NSpin"), D = $("NDrawerContent"), y = $("NDrawer");
|
|
9308
|
+
return c(), A(y, {
|
|
9321
9309
|
show: e.drawer,
|
|
9322
9310
|
"onUpdate:show": t[2] || (t[2] = (f) => e.drawer = f),
|
|
9323
9311
|
width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
|
|
@@ -9329,14 +9317,14 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9329
9317
|
"mask-closable": !1
|
|
9330
9318
|
}, {
|
|
9331
9319
|
default: k(() => [
|
|
9332
|
-
T(
|
|
9320
|
+
T(D, {
|
|
9333
9321
|
title: e.status === 1 ? e.$t("Common.edit") : e.status === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
|
|
9334
9322
|
closable: ""
|
|
9335
|
-
},
|
|
9323
|
+
}, Re({
|
|
9336
9324
|
default: k(() => [
|
|
9337
9325
|
T(b, { show: e.spinError }, {
|
|
9338
9326
|
description: k(() => [
|
|
9339
|
-
i("div", null,
|
|
9327
|
+
i("div", null, L(e.$t("Notice.error")), 1),
|
|
9340
9328
|
t[4] || (t[4] = i("br", null, null, -1)),
|
|
9341
9329
|
T(s, {
|
|
9342
9330
|
type: "primary",
|
|
@@ -9344,7 +9332,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9344
9332
|
block: ""
|
|
9345
9333
|
}, {
|
|
9346
9334
|
default: k(() => t[3] || (t[3] = [
|
|
9347
|
-
|
|
9335
|
+
H("重试", -1)
|
|
9348
9336
|
])),
|
|
9349
9337
|
_: 1,
|
|
9350
9338
|
__: [3]
|
|
@@ -9352,7 +9340,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9352
9340
|
]),
|
|
9353
9341
|
default: k(() => [
|
|
9354
9342
|
i("div", Q2, [
|
|
9355
|
-
e.ocrShow ? (c(),
|
|
9343
|
+
e.ocrShow ? (c(), A(u, { key: 0 })) : W("", !0),
|
|
9356
9344
|
T(h, {
|
|
9357
9345
|
class: "flex-1",
|
|
9358
9346
|
value: e.spinShow,
|
|
@@ -9382,14 +9370,14 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9382
9370
|
fn: k(() => [
|
|
9383
9371
|
i("div", X2, [
|
|
9384
9372
|
i("div", null, [
|
|
9385
|
-
e.isMobile ?
|
|
9373
|
+
e.isMobile ? W("", !0) : (c(), A(s, {
|
|
9386
9374
|
key: 0,
|
|
9387
9375
|
type: "primary",
|
|
9388
9376
|
onClick: t[1] || (t[1] = (f) => e.ocrShow = !e.ocrShow),
|
|
9389
9377
|
tertiary: ""
|
|
9390
9378
|
}, {
|
|
9391
9379
|
default: k(() => [
|
|
9392
|
-
|
|
9380
|
+
H(L(e.$t("OCR.ocr")), 1)
|
|
9393
9381
|
]),
|
|
9394
9382
|
_: 1
|
|
9395
9383
|
}))
|
|
@@ -9401,7 +9389,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9401
9389
|
onClick: e.drawerCancel
|
|
9402
9390
|
}, {
|
|
9403
9391
|
default: k(() => [
|
|
9404
|
-
|
|
9392
|
+
H(L(e.$t("Common.cancel")), 1)
|
|
9405
9393
|
]),
|
|
9406
9394
|
_: 1
|
|
9407
9395
|
}, 8, ["loading", "onClick"]),
|
|
@@ -9411,7 +9399,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9411
9399
|
onClick: e.drawerSubmit
|
|
9412
9400
|
}, {
|
|
9413
9401
|
default: k(() => [
|
|
9414
|
-
|
|
9402
|
+
H(L(e.$t("Common.apply")), 1)
|
|
9415
9403
|
]),
|
|
9416
9404
|
_: 1
|
|
9417
9405
|
}, 8, ["loading", "onClick"])
|
|
@@ -9425,7 +9413,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9425
9413
|
_: 1
|
|
9426
9414
|
}, 8, ["show", "width", "height", "placement", "on-after-leave"]);
|
|
9427
9415
|
}
|
|
9428
|
-
const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty =
|
|
9416
|
+
const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty = le({
|
|
9429
9417
|
name: "UzTableMobileList",
|
|
9430
9418
|
props: {
|
|
9431
9419
|
tableData: { type: Object, default: () => {
|
|
@@ -9442,13 +9430,13 @@ const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty = ie({
|
|
|
9442
9430
|
};
|
|
9443
9431
|
function ay(e, t, r, n, a, o) {
|
|
9444
9432
|
return c(), w("div", ry, [
|
|
9445
|
-
(c(!0), w(
|
|
9433
|
+
(c(!0), w(se, null, ke(e.tableColumns, (s) => (c(), w("div", {
|
|
9446
9434
|
key: s.key,
|
|
9447
|
-
class:
|
|
9435
|
+
class: ue(["flex overflow-hidden", s.lineBreak ? "flex-col" : ""]),
|
|
9448
9436
|
style: $e(`grid-column: span ${s.lineCol || 2} / span ${s.lineCol || 2}`)
|
|
9449
9437
|
}, [
|
|
9450
|
-
s.key === "action" ? (c(), w(
|
|
9451
|
-
s.render ? (c(),
|
|
9438
|
+
s.key === "action" ? (c(), w(se, { key: 0 }, [
|
|
9439
|
+
s.render ? (c(), A(go(
|
|
9452
9440
|
() => {
|
|
9453
9441
|
if (e.tableData)
|
|
9454
9442
|
return s.render(e.tableData, e.tableIndex);
|
|
@@ -9456,31 +9444,31 @@ function ay(e, t, r, n, a, o) {
|
|
|
9456
9444
|
), {
|
|
9457
9445
|
key: 0,
|
|
9458
9446
|
class: "mobile"
|
|
9459
|
-
})) :
|
|
9460
|
-
], 64)) : (c(), w(
|
|
9447
|
+
})) : W("", !0)
|
|
9448
|
+
], 64)) : (c(), w(se, { key: 1 }, [
|
|
9461
9449
|
i("div", {
|
|
9462
|
-
class:
|
|
9450
|
+
class: ue(["uz-table-mobile-group-title", s.lineBreak ? "line-break" : ""])
|
|
9463
9451
|
}, [
|
|
9464
|
-
i("div", null,
|
|
9452
|
+
i("div", null, L(typeof s.title == "string" ? s.title : s.title()), 1)
|
|
9465
9453
|
], 2),
|
|
9466
9454
|
i("div", {
|
|
9467
|
-
class:
|
|
9455
|
+
class: ue(["uz-table-mobile-group-content", s.lineBreak ? "line-break" : ""])
|
|
9468
9456
|
}, [
|
|
9469
|
-
s.render ? (c(),
|
|
9457
|
+
s.render ? (c(), A(go(
|
|
9470
9458
|
() => {
|
|
9471
9459
|
if (e.tableData)
|
|
9472
9460
|
return s.render(e.tableData, e.tableIndex);
|
|
9473
9461
|
}
|
|
9474
|
-
), { key: 0 })) : (c(), w("div", ny,
|
|
9462
|
+
), { key: 0 })) : (c(), w("div", ny, L(e.tableData[s.key] || "-"), 1))
|
|
9475
9463
|
], 2)
|
|
9476
9464
|
], 64))
|
|
9477
9465
|
], 6))), 128))
|
|
9478
9466
|
]);
|
|
9479
9467
|
}
|
|
9480
|
-
const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935"]]), sy =
|
|
9468
|
+
const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935"]]), sy = le({
|
|
9481
9469
|
name: "UzTableMobile",
|
|
9482
9470
|
components: {
|
|
9483
|
-
NCheckbox:
|
|
9471
|
+
NCheckbox: Ra,
|
|
9484
9472
|
NRadio: od,
|
|
9485
9473
|
NPagination: ad,
|
|
9486
9474
|
NCheckboxGroup: Aa,
|
|
@@ -9524,8 +9512,8 @@ const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935
|
|
|
9524
9512
|
class: "flex justify-center text-center pb-4"
|
|
9525
9513
|
};
|
|
9526
9514
|
function cy(e, t, r, n, a, o) {
|
|
9527
|
-
const s = $("UzTableMobileList"), u = $("NCheckbox"), p = $("NPagination"), h = $("NCheckboxGroup"), b = $("NRadio"),
|
|
9528
|
-
return e.selection === 2 ? (c(),
|
|
9515
|
+
const s = $("UzTableMobileList"), u = $("NCheckbox"), p = $("NPagination"), h = $("NCheckboxGroup"), b = $("NRadio"), D = $("NRadioGroup");
|
|
9516
|
+
return e.selection === 2 ? (c(), A(h, {
|
|
9529
9517
|
key: 0,
|
|
9530
9518
|
value: e.rowKeys,
|
|
9531
9519
|
"onUpdate:value": t[1] || (t[1] = (y) => e.rowKeys = y),
|
|
@@ -9537,7 +9525,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9537
9525
|
"on-update:value": e.checkChange
|
|
9538
9526
|
}, {
|
|
9539
9527
|
default: k(() => [
|
|
9540
|
-
(c(!0), w(
|
|
9528
|
+
(c(!0), w(se, null, ke(e.tableData, (y, f) => (c(), A(u, {
|
|
9541
9529
|
key: y.id,
|
|
9542
9530
|
class: "uz-com-card flex gap-2",
|
|
9543
9531
|
value: y.id
|
|
@@ -9560,10 +9548,10 @@ function cy(e, t, r, n, a, o) {
|
|
|
9560
9548
|
"on-update:page": e.pageChange,
|
|
9561
9549
|
size: "large"
|
|
9562
9550
|
}, null, 8, ["page", "item-count", "page-size", "on-update:page"])
|
|
9563
|
-
])) :
|
|
9551
|
+
])) : W("", !0)
|
|
9564
9552
|
]),
|
|
9565
9553
|
_: 1
|
|
9566
|
-
}, 8, ["value", "style", "on-update:value"])) : e.selection === 1 ? (c(),
|
|
9554
|
+
}, 8, ["value", "style", "on-update:value"])) : e.selection === 1 ? (c(), A(D, {
|
|
9567
9555
|
key: 1,
|
|
9568
9556
|
value: e.rowKeys[0],
|
|
9569
9557
|
"onUpdate:value": t[3] || (t[3] = (y) => e.rowKeys[0] = y),
|
|
@@ -9575,7 +9563,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9575
9563
|
"on-update:value": e.radioChange
|
|
9576
9564
|
}, {
|
|
9577
9565
|
default: k(() => [
|
|
9578
|
-
(c(!0), w(
|
|
9566
|
+
(c(!0), w(se, null, ke(e.tableData, (y, f) => (c(), A(b, {
|
|
9579
9567
|
key: y.id,
|
|
9580
9568
|
class: "uz-com-card flex gap-2",
|
|
9581
9569
|
value: y.id
|
|
@@ -9598,7 +9586,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9598
9586
|
"on-update:page": e.pageChange,
|
|
9599
9587
|
size: "large"
|
|
9600
9588
|
}, null, 8, ["page", "item-count", "page-size", "on-update:page"])
|
|
9601
|
-
])) :
|
|
9589
|
+
])) : W("", !0)
|
|
9602
9590
|
]),
|
|
9603
9591
|
_: 1
|
|
9604
9592
|
}, 8, ["value", "style", "on-update:value"])) : (c(), w("div", {
|
|
@@ -9609,7 +9597,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9609
9597
|
maxHeight: e.maxH
|
|
9610
9598
|
})
|
|
9611
9599
|
}, [
|
|
9612
|
-
(c(!0), w(
|
|
9600
|
+
(c(!0), w(se, null, ke(e.tableData, (y, f) => (c(), w("div", {
|
|
9613
9601
|
key: y.id,
|
|
9614
9602
|
class: "uz-com-card flex flex-col gap-2"
|
|
9615
9603
|
}, [
|
|
@@ -9628,7 +9616,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9628
9616
|
"on-update:page": e.pageChange,
|
|
9629
9617
|
size: "large"
|
|
9630
9618
|
}, null, 8, ["page", "item-count", "page-size", "on-update:page"])
|
|
9631
|
-
])) :
|
|
9619
|
+
])) : W("", !0)
|
|
9632
9620
|
], 4));
|
|
9633
9621
|
}
|
|
9634
9622
|
const dy = /* @__PURE__ */ _(sy, [["render", cy], ["__scopeId", "data-v-35aff9a4"]]), Y = ja({
|
|
@@ -9649,7 +9637,7 @@ function Ml(e) {
|
|
|
9649
9637
|
path: e.key,
|
|
9650
9638
|
closable: !1
|
|
9651
9639
|
};
|
|
9652
|
-
const t =
|
|
9640
|
+
const t = Oe(Y.cache, !1);
|
|
9653
9641
|
t ? (Y.active = t.active, t.thumbnail && (Y.thumbnail = t.thumbnail)) : Y.thumbnail = [
|
|
9654
9642
|
{
|
|
9655
9643
|
label: e.label,
|
|
@@ -9682,7 +9670,7 @@ function qc(e) {
|
|
|
9682
9670
|
function zc() {
|
|
9683
9671
|
Y.active = Y.page.path, Y.thumbnail = [Y.page], Ke.push(Y.page.path), Me(Y.cache, Y, 0);
|
|
9684
9672
|
}
|
|
9685
|
-
const py =
|
|
9673
|
+
const py = le({
|
|
9686
9674
|
name: "UzThumbnail",
|
|
9687
9675
|
components: {
|
|
9688
9676
|
NTabs: ld,
|
|
@@ -9713,7 +9701,7 @@ const py = ie({
|
|
|
9713
9701
|
};
|
|
9714
9702
|
return Ge(() => {
|
|
9715
9703
|
Ml(e.option), Y.active !== n.path && Sl(n.path, n.fullPath);
|
|
9716
|
-
}),
|
|
9704
|
+
}), ce(
|
|
9717
9705
|
() => n,
|
|
9718
9706
|
(u) => {
|
|
9719
9707
|
Y.active === n.path && Sl(u.path, u.fullPath);
|
|
@@ -9721,7 +9709,7 @@ const py = ie({
|
|
|
9721
9709
|
{
|
|
9722
9710
|
deep: !0
|
|
9723
9711
|
}
|
|
9724
|
-
),
|
|
9712
|
+
), ce(
|
|
9725
9713
|
() => e.option,
|
|
9726
9714
|
(u) => {
|
|
9727
9715
|
Ml(u);
|
|
@@ -9739,8 +9727,8 @@ const py = ie({
|
|
|
9739
9727
|
}
|
|
9740
9728
|
});
|
|
9741
9729
|
function hy(e, t, r, n, a, o) {
|
|
9742
|
-
const s = $("NTabPane"), u = $("Trash"), p = $("NIcon"), h = $("NButton"), b = $("NPopconfirm"),
|
|
9743
|
-
return c(),
|
|
9730
|
+
const s = $("NTabPane"), u = $("Trash"), p = $("NIcon"), h = $("NButton"), b = $("NPopconfirm"), D = $("NFlex"), y = $("NTabs");
|
|
9731
|
+
return c(), A(y, {
|
|
9744
9732
|
value: e.thumbnailStore.active,
|
|
9745
9733
|
type: "card",
|
|
9746
9734
|
closable: "",
|
|
@@ -9748,9 +9736,9 @@ function hy(e, t, r, n, a, o) {
|
|
|
9748
9736
|
"on-close": e.handleClose,
|
|
9749
9737
|
"on-update:value": e.handleChange,
|
|
9750
9738
|
class: "uz-thumbnail"
|
|
9751
|
-
},
|
|
9739
|
+
}, Re({
|
|
9752
9740
|
suffix: k(() => [
|
|
9753
|
-
T(
|
|
9741
|
+
T(D, null, {
|
|
9754
9742
|
default: k(() => [
|
|
9755
9743
|
T(b, { onPositiveClick: e.handleClear }, {
|
|
9756
9744
|
trigger: k(() => [
|
|
@@ -9767,7 +9755,7 @@ function hy(e, t, r, n, a, o) {
|
|
|
9767
9755
|
})
|
|
9768
9756
|
]),
|
|
9769
9757
|
default: k(() => [
|
|
9770
|
-
t[0] || (t[0] =
|
|
9758
|
+
t[0] || (t[0] = H(" 清空所有打开的标签? ", -1))
|
|
9771
9759
|
]),
|
|
9772
9760
|
_: 1,
|
|
9773
9761
|
__: [0]
|
|
@@ -9778,7 +9766,7 @@ function hy(e, t, r, n, a, o) {
|
|
|
9778
9766
|
})
|
|
9779
9767
|
]),
|
|
9780
9768
|
default: k(() => [
|
|
9781
|
-
(c(!0), w(
|
|
9769
|
+
(c(!0), w(se, null, ke(e.thumbnailStore.thumbnail, (f) => (c(), A(s, {
|
|
9782
9770
|
key: f.key,
|
|
9783
9771
|
name: f.key,
|
|
9784
9772
|
tab: f.label,
|
|
@@ -9846,7 +9834,7 @@ const by = {
|
|
|
9846
9834
|
Radio: {
|
|
9847
9835
|
boxShadow: "inset 0 0 0 1px rgb(var(--primary))"
|
|
9848
9836
|
}
|
|
9849
|
-
}, _y = We, xy =
|
|
9837
|
+
}, _y = We, xy = le({
|
|
9850
9838
|
name: "UzWrap",
|
|
9851
9839
|
components: {
|
|
9852
9840
|
NConfigProvider: id
|
|
@@ -9863,7 +9851,7 @@ const by = {
|
|
|
9863
9851
|
});
|
|
9864
9852
|
function Cy(e, t, r, n, a, o) {
|
|
9865
9853
|
const s = $("NConfigProvider");
|
|
9866
|
-
return c(),
|
|
9854
|
+
return c(), A(s, {
|
|
9867
9855
|
theme: e.commonStore.theme ? {
|
|
9868
9856
|
name: "darkTheme"
|
|
9869
9857
|
} : null,
|
|
@@ -9922,8 +9910,8 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9922
9910
|
ChartBubble: qi,
|
|
9923
9911
|
ChartDonut: zi,
|
|
9924
9912
|
ChartLine: Ai,
|
|
9925
|
-
ChartPie:
|
|
9926
|
-
ChartRadar:
|
|
9913
|
+
ChartPie: Ri,
|
|
9914
|
+
ChartRadar: Oi,
|
|
9927
9915
|
Checkbox: Bi,
|
|
9928
9916
|
CheckupList: Fi,
|
|
9929
9917
|
CircleMinus: Gu,
|
|
@@ -9994,9 +9982,9 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9994
9982
|
Report: qu,
|
|
9995
9983
|
ReportAnalytics: zu,
|
|
9996
9984
|
ReportMoney: Au,
|
|
9997
|
-
ReportSearch:
|
|
9985
|
+
ReportSearch: Ru,
|
|
9998
9986
|
Search: Kt,
|
|
9999
|
-
Settings:
|
|
9987
|
+
Settings: Ou,
|
|
10000
9988
|
SmartHome: Bu,
|
|
10001
9989
|
Sun: Fu,
|
|
10002
9990
|
TransferIn: Vu,
|
|
@@ -10108,8 +10096,8 @@ function Iy() {
|
|
|
10108
10096
|
if (typeof h != "string")
|
|
10109
10097
|
return h === 0 ? h : +h;
|
|
10110
10098
|
h = e(h);
|
|
10111
|
-
var
|
|
10112
|
-
return
|
|
10099
|
+
var D = o.test(h);
|
|
10100
|
+
return D || s.test(h) ? u(h.slice(2), D ? 2 : 8) : a.test(h) ? n : +h;
|
|
10113
10101
|
}
|
|
10114
10102
|
return ga = p, ga;
|
|
10115
10103
|
}
|
|
@@ -10119,43 +10107,43 @@ function Ac() {
|
|
|
10119
10107
|
zl = 1;
|
|
10120
10108
|
var e = Qe(), t = My(), r = Iy(), n = "Expected a function", a = Math.max, o = Math.min;
|
|
10121
10109
|
function s(u, p, h) {
|
|
10122
|
-
var b,
|
|
10110
|
+
var b, D, y, f, g, l, v = 0, m = !1, d = !1, x = !0;
|
|
10123
10111
|
if (typeof u != "function")
|
|
10124
10112
|
throw new TypeError(n);
|
|
10125
10113
|
p = r(p) || 0, e(h) && (m = !!h.leading, d = "maxWait" in h, y = d ? a(r(h.maxWait) || 0, p) : y, x = "trailing" in h ? !!h.trailing : x);
|
|
10126
|
-
function N(
|
|
10127
|
-
var
|
|
10128
|
-
return b =
|
|
10114
|
+
function N(F) {
|
|
10115
|
+
var z = b, G = D;
|
|
10116
|
+
return b = D = void 0, v = F, f = u.apply(G, z), f;
|
|
10129
10117
|
}
|
|
10130
|
-
function V(
|
|
10131
|
-
return v =
|
|
10118
|
+
function V(F) {
|
|
10119
|
+
return v = F, g = setTimeout(q, p), m ? N(F) : f;
|
|
10132
10120
|
}
|
|
10133
|
-
function U(
|
|
10134
|
-
var
|
|
10135
|
-
return d ? o(
|
|
10121
|
+
function U(F) {
|
|
10122
|
+
var z = F - l, G = F - v, ee = p - z;
|
|
10123
|
+
return d ? o(ee, y - G) : ee;
|
|
10136
10124
|
}
|
|
10137
|
-
function F
|
|
10138
|
-
var
|
|
10139
|
-
return l === void 0 ||
|
|
10125
|
+
function B(F) {
|
|
10126
|
+
var z = F - l, G = F - v;
|
|
10127
|
+
return l === void 0 || z >= p || z < 0 || d && G >= y;
|
|
10140
10128
|
}
|
|
10141
10129
|
function q() {
|
|
10142
|
-
var
|
|
10143
|
-
if (F
|
|
10144
|
-
return
|
|
10145
|
-
g = setTimeout(q, U(
|
|
10130
|
+
var F = t();
|
|
10131
|
+
if (B(F))
|
|
10132
|
+
return j(F);
|
|
10133
|
+
g = setTimeout(q, U(F));
|
|
10146
10134
|
}
|
|
10147
|
-
function
|
|
10148
|
-
return g = void 0, x && b ? N(
|
|
10135
|
+
function j(F) {
|
|
10136
|
+
return g = void 0, x && b ? N(F) : (b = D = void 0, f);
|
|
10149
10137
|
}
|
|
10150
10138
|
function C() {
|
|
10151
|
-
g !== void 0 && clearTimeout(g), v = 0, b = l =
|
|
10139
|
+
g !== void 0 && clearTimeout(g), v = 0, b = l = D = g = void 0;
|
|
10152
10140
|
}
|
|
10153
|
-
function
|
|
10154
|
-
return g === void 0 ? f :
|
|
10141
|
+
function I() {
|
|
10142
|
+
return g === void 0 ? f : j(t());
|
|
10155
10143
|
}
|
|
10156
|
-
function
|
|
10157
|
-
var
|
|
10158
|
-
if (b = arguments,
|
|
10144
|
+
function R() {
|
|
10145
|
+
var F = t(), z = B(F);
|
|
10146
|
+
if (b = arguments, D = this, l = F, z) {
|
|
10159
10147
|
if (g === void 0)
|
|
10160
10148
|
return V(l);
|
|
10161
10149
|
if (d)
|
|
@@ -10163,12 +10151,12 @@ function Ac() {
|
|
|
10163
10151
|
}
|
|
10164
10152
|
return g === void 0 && (g = setTimeout(q, p)), f;
|
|
10165
10153
|
}
|
|
10166
|
-
return
|
|
10154
|
+
return R.cancel = C, R.flush = I, R;
|
|
10167
10155
|
}
|
|
10168
10156
|
return ya = s, ya;
|
|
10169
10157
|
}
|
|
10170
10158
|
var Dy = Ac();
|
|
10171
|
-
const
|
|
10159
|
+
const Rc = /* @__PURE__ */ to(Dy);
|
|
10172
10160
|
let wo = 3840, mo = 2160;
|
|
10173
10161
|
const jy = ja({
|
|
10174
10162
|
scale: 1
|
|
@@ -10195,13 +10183,13 @@ function qy() {
|
|
|
10195
10183
|
jy.scale = e;
|
|
10196
10184
|
}
|
|
10197
10185
|
function hk() {
|
|
10198
|
-
const e =
|
|
10186
|
+
const e = Rc(qy, 200);
|
|
10199
10187
|
return e(), window.addEventListener("resize", e), () => {
|
|
10200
10188
|
wo = 3840, mo = 2160, window.removeEventListener("resize", e);
|
|
10201
10189
|
};
|
|
10202
10190
|
}
|
|
10203
10191
|
function wk(e, t = 1e3) {
|
|
10204
|
-
const r =
|
|
10192
|
+
const r = Rc(e, t);
|
|
10205
10193
|
return {
|
|
10206
10194
|
/**
|
|
10207
10195
|
* Invode and pass parameters to fn.
|
|
@@ -10238,10 +10226,10 @@ function zy() {
|
|
|
10238
10226
|
return ka = n, ka;
|
|
10239
10227
|
}
|
|
10240
10228
|
var Ay = zy();
|
|
10241
|
-
const
|
|
10229
|
+
const Ry = /* @__PURE__ */ to(Ay);
|
|
10242
10230
|
function mk(e, t = 1e3) {
|
|
10243
10231
|
const r = S(e), n = _t(
|
|
10244
|
-
() =>
|
|
10232
|
+
() => Ry((...a) => r.value([...a]), t)
|
|
10245
10233
|
);
|
|
10246
10234
|
return Vl(() => {
|
|
10247
10235
|
n.value.cancel();
|
|
@@ -10252,12 +10240,12 @@ function mk(e, t = 1e3) {
|
|
|
10252
10240
|
};
|
|
10253
10241
|
}
|
|
10254
10242
|
function vk(e, t) {
|
|
10255
|
-
return [S(
|
|
10243
|
+
return [S(Oe(e, t == null ? void 0 : t.defaultValue)), (o) => {
|
|
10256
10244
|
typeof o > "u" ? Ca(e) : Me(e, o, (t == null ? void 0 : t.expired) || "1 Day");
|
|
10257
10245
|
}];
|
|
10258
10246
|
}
|
|
10259
10247
|
function gk(e, t, r) {
|
|
10260
|
-
const n = `useQuery-${e}`, a = S(), o = S(), s = S(), u = S(!1), p = S("idle"), h = S(), b = S(0),
|
|
10248
|
+
const n = `useQuery-${e}`, a = S(), o = S(), s = S(), u = S(!1), p = S("idle"), h = S(), b = S(0), D = S(0), y = () => {
|
|
10261
10249
|
_o(), clearInterval(s.value), s.value = null;
|
|
10262
10250
|
}, f = async () => {
|
|
10263
10251
|
if (!u.value) {
|
|
@@ -10266,10 +10254,10 @@ function gk(e, t, r) {
|
|
|
10266
10254
|
let x;
|
|
10267
10255
|
if (Array.isArray(t))
|
|
10268
10256
|
x = await new Promise((V, U) => {
|
|
10269
|
-
a.value = U, Promise.all(t.map((
|
|
10270
|
-
V(
|
|
10271
|
-
}).catch((
|
|
10272
|
-
U(
|
|
10257
|
+
a.value = U, Promise.all(t.map((B) => B.call(null))).then((B) => {
|
|
10258
|
+
V(B);
|
|
10259
|
+
}).catch((B) => {
|
|
10260
|
+
U(B);
|
|
10273
10261
|
});
|
|
10274
10262
|
});
|
|
10275
10263
|
else {
|
|
@@ -10282,7 +10270,7 @@ function gk(e, t, r) {
|
|
|
10282
10270
|
} catch (x) {
|
|
10283
10271
|
v(x), l(!1, "error"), b.value > 0 && (b.value = b.value - 1, setTimeout(() => {
|
|
10284
10272
|
f();
|
|
10285
|
-
},
|
|
10273
|
+
}, D.value));
|
|
10286
10274
|
}
|
|
10287
10275
|
}
|
|
10288
10276
|
}, g = (x) => {
|
|
@@ -10301,9 +10289,9 @@ function gk(e, t, r) {
|
|
|
10301
10289
|
f();
|
|
10302
10290
|
}, r == null ? void 0 : r.pollingInterval));
|
|
10303
10291
|
};
|
|
10304
|
-
if (r != null && r.retry && r.pollingInterval === void 0 && (b.value = r.retry.retryCount || 3,
|
|
10292
|
+
if (r != null && r.retry && r.pollingInterval === void 0 && (b.value = r.retry.retryCount || 3, D.value = r.retry.retryInterval || 1e3 * 2 ** 3), r != null && r.initialData && g(r.initialData()), r === void 0 || r.initialData === void 0 || r.cache === void 0 || r.cache === !0)
|
|
10305
10293
|
try {
|
|
10306
|
-
const x =
|
|
10294
|
+
const x = Oe(n, !1);
|
|
10307
10295
|
x && g(x);
|
|
10308
10296
|
} catch {
|
|
10309
10297
|
g(!1);
|
|
@@ -10322,8 +10310,8 @@ function gk(e, t, r) {
|
|
|
10322
10310
|
refetch: d
|
|
10323
10311
|
};
|
|
10324
10312
|
}
|
|
10325
|
-
const
|
|
10326
|
-
let
|
|
10313
|
+
const Oy = "0.0.10";
|
|
10314
|
+
let Oc;
|
|
10327
10315
|
async function Bc() {
|
|
10328
10316
|
const e = await fetch(
|
|
10329
10317
|
`${window.location.protocol}//${window.location.host}`,
|
|
@@ -10336,113 +10324,113 @@ async function Bc() {
|
|
|
10336
10324
|
}
|
|
10337
10325
|
async function By() {
|
|
10338
10326
|
const e = await Bc();
|
|
10339
|
-
|
|
10327
|
+
Oc !== e && jm(!0);
|
|
10340
10328
|
}
|
|
10341
10329
|
async function Fy() {
|
|
10342
|
-
|
|
10330
|
+
Oc = await Bc(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
10343
10331
|
By();
|
|
10344
10332
|
}, 60 * 1e3);
|
|
10345
10333
|
}
|
|
10346
10334
|
let Ia = "", Da;
|
|
10347
|
-
const
|
|
10335
|
+
const re = navigator.userAgent.toLocaleUpperCase(), Vy = () => {
|
|
10348
10336
|
const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, r = /WINDOWS NT 7.[\d]+/, n = /WINDOWS NT 10.[\d]+/, a = /WINDOWS NT 11.[\d]+/, o = /ANDROID [\d.]+/, s = /IPHONE/, u = /IPAD/, p = /MAC/;
|
|
10349
|
-
if (e.test(
|
|
10350
|
-
if (t.test(
|
|
10351
|
-
if (r.test(
|
|
10352
|
-
if (n.test(
|
|
10337
|
+
if (e.test(re)) return "Windows XP";
|
|
10338
|
+
if (t.test(re)) return "Windows 7";
|
|
10339
|
+
if (r.test(re)) return "Windows 8";
|
|
10340
|
+
if (n.test(re))
|
|
10353
10341
|
return "Windows 10";
|
|
10354
|
-
if (a.test(
|
|
10342
|
+
if (a.test(re))
|
|
10355
10343
|
return "Windows 11";
|
|
10356
|
-
if (o.test(
|
|
10357
|
-
const h = o.exec(
|
|
10344
|
+
if (o.test(re)) {
|
|
10345
|
+
const h = o.exec(re);
|
|
10358
10346
|
return `Android ${h ? h[0].split(" ")[1] : ""}`;
|
|
10359
10347
|
}
|
|
10360
|
-
if (s.test(
|
|
10361
|
-
const b = /OS [\d_]+/.exec(
|
|
10348
|
+
if (s.test(re)) {
|
|
10349
|
+
const b = /OS [\d_]+/.exec(re);
|
|
10362
10350
|
return `iPhone ${b ? b[0].split(" ")[1].replace(/_/g, ".") : ""}`;
|
|
10363
10351
|
}
|
|
10364
|
-
if (u.test(
|
|
10365
|
-
const b = /OS [\d_]+/.exec(
|
|
10352
|
+
if (u.test(re)) {
|
|
10353
|
+
const b = /OS [\d_]+/.exec(re);
|
|
10366
10354
|
return `iPad${b ? b[0].split(" ")[1].replace(/_/g, ".") : ""}`;
|
|
10367
10355
|
}
|
|
10368
|
-
if (p.test(
|
|
10369
|
-
const b = / [\d_]+/.exec(
|
|
10356
|
+
if (p.test(re)) {
|
|
10357
|
+
const b = / [\d_]+/.exec(re);
|
|
10370
10358
|
return `MAC ${b ? b[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
10371
10359
|
}
|
|
10372
10360
|
return "Other Platform";
|
|
10373
10361
|
}, Uy = () => {
|
|
10374
10362
|
const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, r = /FIREFOX\/[\d.]+/, n = /CHROME\/[\d.]+/, a = /SAFARI\/[\d.]+/, o = /OPR\/[\d.]+/, s = /SE \d/, u = /UCBROWSER/, p = /ANDROID [\d.]+/;
|
|
10375
|
-
if (e.test(
|
|
10363
|
+
if (e.test(re) && s.test(re))
|
|
10376
10364
|
return "SogouIE";
|
|
10377
|
-
if (s.test(
|
|
10365
|
+
if (s.test(re))
|
|
10378
10366
|
return "SogouFast";
|
|
10379
|
-
if (u.test(
|
|
10367
|
+
if (u.test(re))
|
|
10380
10368
|
return "UC";
|
|
10381
|
-
if (p.test(
|
|
10369
|
+
if (p.test(re))
|
|
10382
10370
|
return "Android";
|
|
10383
|
-
if (o.test(
|
|
10371
|
+
if (o.test(re))
|
|
10384
10372
|
return "Opera";
|
|
10385
|
-
if (e.test(
|
|
10386
|
-
const h = e.exec(
|
|
10373
|
+
if (e.test(re)) {
|
|
10374
|
+
const h = e.exec(re);
|
|
10387
10375
|
return `IE ${h ? h[0].split("/")[1] : ""}`;
|
|
10388
10376
|
}
|
|
10389
|
-
if (t.test(
|
|
10390
|
-
const h = t.exec(
|
|
10377
|
+
if (t.test(re)) {
|
|
10378
|
+
const h = t.exec(re);
|
|
10391
10379
|
return `Edge ${h ? h[0].split("/")[1] : ""}`;
|
|
10392
10380
|
}
|
|
10393
|
-
if (n.test(
|
|
10394
|
-
const h = n.exec(
|
|
10381
|
+
if (n.test(re)) {
|
|
10382
|
+
const h = n.exec(re);
|
|
10395
10383
|
return `Chrome ${h ? h[0].split("/")[1] : ""}`;
|
|
10396
10384
|
}
|
|
10397
|
-
if (r.test(
|
|
10398
|
-
const h = r.exec(
|
|
10385
|
+
if (r.test(re)) {
|
|
10386
|
+
const h = r.exec(re);
|
|
10399
10387
|
return `Firefox ${h ? h[0].split("/")[1] : ""}`;
|
|
10400
10388
|
}
|
|
10401
|
-
if (a.test(
|
|
10402
|
-
const h = a.exec(
|
|
10389
|
+
if (a.test(re)) {
|
|
10390
|
+
const h = a.exec(re);
|
|
10403
10391
|
return `Safari ${h ? h[0].split("/")[1] : ""}`;
|
|
10404
10392
|
}
|
|
10405
10393
|
return "Others";
|
|
10406
10394
|
};
|
|
10407
|
-
function
|
|
10395
|
+
function Rl(e, t, r, n = !1) {
|
|
10408
10396
|
if (e !== void 0 && (t in e || n)) {
|
|
10409
10397
|
const a = e[t], o = r(a);
|
|
10410
10398
|
typeof o == "function" && (e[t] = o);
|
|
10411
10399
|
}
|
|
10412
10400
|
}
|
|
10413
|
-
function
|
|
10401
|
+
function Ol(e, t, r, n = !1) {
|
|
10414
10402
|
e.addEventListener(t, r, n);
|
|
10415
10403
|
}
|
|
10416
10404
|
function Py() {
|
|
10417
10405
|
if (!("XMLHttpRequest" in window))
|
|
10418
10406
|
return;
|
|
10419
10407
|
const e = XMLHttpRequest.prototype;
|
|
10420
|
-
|
|
10408
|
+
Rl(e, "open", (t) => function(...r) {
|
|
10421
10409
|
this.xhr = {
|
|
10422
10410
|
method: r[0].toUpperCase(),
|
|
10423
10411
|
url: r[1],
|
|
10424
10412
|
startTime: Date.now(),
|
|
10425
10413
|
type: "xhr"
|
|
10426
|
-
},
|
|
10427
|
-
this.xhr.url.indexOf("log/submit") === -1 &&
|
|
10414
|
+
}, Ol(this, "error", function() {
|
|
10415
|
+
this.xhr.url.indexOf("log/submit") === -1 && Ot(3, this.xhr.url, `Request-${this.status}`);
|
|
10428
10416
|
}), t.apply(this, r);
|
|
10429
|
-
}),
|
|
10417
|
+
}), Rl(e, "send", (t) => function(...r) {
|
|
10430
10418
|
const { url: n } = this.xhr;
|
|
10431
10419
|
this.ontimeout = function() {
|
|
10432
|
-
|
|
10433
|
-
},
|
|
10434
|
-
(this.status === 500 || this.status === 405) &&
|
|
10420
|
+
Ot(3, n, "Network Timeout");
|
|
10421
|
+
}, Ol(this, "loadend", function() {
|
|
10422
|
+
(this.status === 500 || this.status === 405) && Ot(3, n, `${r[0]}-${this.status}-${this.response}`);
|
|
10435
10423
|
}), t.apply(this, r);
|
|
10436
10424
|
});
|
|
10437
10425
|
}
|
|
10438
10426
|
function Ey(e, t, r) {
|
|
10439
10427
|
t && (Ia = t, Da = r, Py(), e.config.errorHandler = (n) => {
|
|
10440
|
-
|
|
10428
|
+
Ot(2, window.location.href, n.message);
|
|
10441
10429
|
}, window.addEventListener("unhandledrejection", function(n) {
|
|
10442
10430
|
n.preventDefault();
|
|
10443
10431
|
}));
|
|
10444
10432
|
}
|
|
10445
|
-
const
|
|
10433
|
+
const Ot = (e, t, r) => {
|
|
10446
10434
|
const n = Da ? JSON.stringify(Da()) : "", a = {
|
|
10447
10435
|
type: e,
|
|
10448
10436
|
time: Date.now(),
|
|
@@ -10481,12 +10469,12 @@ function Ly({ components: e = [] } = {}) {
|
|
|
10481
10469
|
version: p = !0,
|
|
10482
10470
|
language: h = !1,
|
|
10483
10471
|
local: b = "zh-CN"
|
|
10484
|
-
} = o,
|
|
10485
|
-
Dm(h), ac(y), oc(
|
|
10472
|
+
} = o, D = Oe("theme", !1), y = Oe("lang", b);
|
|
10473
|
+
Dm(h), ac(y), oc(D), Le.global.locale.value = y, p && Fy(), s && Ey(a, s, u);
|
|
10486
10474
|
}
|
|
10487
10475
|
}
|
|
10488
10476
|
return {
|
|
10489
|
-
version:
|
|
10477
|
+
version: Oy,
|
|
10490
10478
|
install: n
|
|
10491
10479
|
};
|
|
10492
10480
|
}
|
|
@@ -10539,8 +10527,8 @@ export {
|
|
|
10539
10527
|
qi as ChartBubble,
|
|
10540
10528
|
zi as ChartDonut,
|
|
10541
10529
|
Ai as ChartLine,
|
|
10542
|
-
|
|
10543
|
-
|
|
10530
|
+
Ri as ChartPie,
|
|
10531
|
+
Oi as ChartRadar,
|
|
10544
10532
|
Bi as Checkbox,
|
|
10545
10533
|
Fi as CheckupList,
|
|
10546
10534
|
Gu as CircleMinus,
|
|
@@ -10614,9 +10602,9 @@ export {
|
|
|
10614
10602
|
qu as Report,
|
|
10615
10603
|
zu as ReportAnalytics,
|
|
10616
10604
|
Au as ReportMoney,
|
|
10617
|
-
|
|
10605
|
+
Ru as ReportSearch,
|
|
10618
10606
|
Kt as Search,
|
|
10619
|
-
|
|
10607
|
+
Ou as Settings,
|
|
10620
10608
|
Bu as SmartHome,
|
|
10621
10609
|
Fu as Sun,
|
|
10622
10610
|
Vu as TransferIn,
|
|
@@ -10667,7 +10655,7 @@ export {
|
|
|
10667
10655
|
Ye as fnFormatTime,
|
|
10668
10656
|
uk as fnFormatUnits,
|
|
10669
10657
|
ik as fnFullScreen,
|
|
10670
|
-
|
|
10658
|
+
Oe as fnGetStorage,
|
|
10671
10659
|
kt as fnGetTableData,
|
|
10672
10660
|
hk as fnListenerScale,
|
|
10673
10661
|
it as fnNotification,
|