@unizhen/ui 0.0.8 → 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.css +1 -1
- package/lib/ui.js +980 -988
- package/package.json +14 -14
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,
|
|
@@ -4518,7 +4518,7 @@ const Q = /* @__PURE__ */ to(vg), gg = ie({
|
|
|
4518
4518
|
dropdownOptions: n,
|
|
4519
4519
|
updateValue: async (l, v, m) => {
|
|
4520
4520
|
if (l.form.updateValue) {
|
|
4521
|
-
const d =
|
|
4521
|
+
const d = { ...e.formValue };
|
|
4522
4522
|
if (typeof l.form.updateValue == "string")
|
|
4523
4523
|
try {
|
|
4524
4524
|
const x = l.form.updateValue, N = new Function(
|
|
@@ -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
|
}),
|
|
@@ -6586,7 +6586,9 @@ function o2(e, t, r, n, a, o) {
|
|
|
6586
6586
|
width: "100%",
|
|
6587
6587
|
height: "40%",
|
|
6588
6588
|
placement: "bottom",
|
|
6589
|
-
"auto-focus": !1
|
|
6589
|
+
"auto-focus": !1,
|
|
6590
|
+
"close-on-esc": !1,
|
|
6591
|
+
"mask-closable": !1
|
|
6590
6592
|
}, {
|
|
6591
6593
|
default: k(() => [
|
|
6592
6594
|
T(l, { title: "查询" }, {
|
|
@@ -6607,11 +6609,11 @@ function o2(e, t, r, n, a, o) {
|
|
|
6607
6609
|
})
|
|
6608
6610
|
]),
|
|
6609
6611
|
default: k(() => [
|
|
6610
|
-
|
|
6612
|
+
H(" " + L(e.$t("Common.reset")), 1)
|
|
6611
6613
|
]),
|
|
6612
6614
|
_: 1
|
|
6613
6615
|
}, 8, ["loading", "onClick"]),
|
|
6614
|
-
e.itemData && Object.keys(e.itemData).length > 0 ? (c(),
|
|
6616
|
+
e.itemData && Object.keys(e.itemData).length > 0 ? (c(), A(p, {
|
|
6615
6617
|
key: 0,
|
|
6616
6618
|
loading: e.loading,
|
|
6617
6619
|
type: "primary",
|
|
@@ -6627,10 +6629,10 @@ function o2(e, t, r, n, a, o) {
|
|
|
6627
6629
|
})
|
|
6628
6630
|
]),
|
|
6629
6631
|
default: k(() => [
|
|
6630
|
-
|
|
6632
|
+
H(" " + L(e.$t("Common.search")), 1)
|
|
6631
6633
|
]),
|
|
6632
6634
|
_: 1
|
|
6633
|
-
}, 8, ["loading"])) :
|
|
6635
|
+
}, 8, ["loading"])) : W("", !0)
|
|
6634
6636
|
])
|
|
6635
6637
|
]),
|
|
6636
6638
|
default: k(() => [
|
|
@@ -6640,16 +6642,16 @@ function o2(e, t, r, n, a, o) {
|
|
|
6640
6642
|
cols: "1"
|
|
6641
6643
|
}, {
|
|
6642
6644
|
default: k(() => [
|
|
6643
|
-
(c(!0), w(
|
|
6645
|
+
(c(!0), w(se, null, ke(e.itemData, (m, d) => (c(), A(y, {
|
|
6644
6646
|
key: `${d}_${Date.now()}`,
|
|
6645
6647
|
span: m.search.show ? 1 : 0
|
|
6646
6648
|
}, {
|
|
6647
6649
|
default: k(() => [
|
|
6648
|
-
T(
|
|
6650
|
+
T(D, null, {
|
|
6649
6651
|
default: k(() => [
|
|
6650
6652
|
T(h, { class: "uz-group-label" }, {
|
|
6651
6653
|
default: k(() => [
|
|
6652
|
-
|
|
6654
|
+
H(L(typeof m.label == "function" ? m.label() : m.label), 1)
|
|
6653
6655
|
]),
|
|
6654
6656
|
_: 2
|
|
6655
6657
|
}, 1024),
|
|
@@ -6773,12 +6775,12 @@ function Sa() {
|
|
|
6773
6775
|
async function Ta(e) {
|
|
6774
6776
|
const t = e.split(".");
|
|
6775
6777
|
let r = !1;
|
|
6776
|
-
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 };
|
|
6777
6779
|
}
|
|
6778
6780
|
async function kt(e) {
|
|
6779
6781
|
return new Promise((t, r) => {
|
|
6780
|
-
const n =
|
|
6781
|
-
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) => {
|
|
6782
6784
|
!n || n && n.createTime !== a.createTime ? Am(e).then((o) => {
|
|
6783
6785
|
const s = {
|
|
6784
6786
|
createTime: o.createTime,
|
|
@@ -6987,12 +6989,12 @@ const d2 = (e) => e.map((t) => {
|
|
|
6987
6989
|
drawerHeight: e.h,
|
|
6988
6990
|
placement: e.l,
|
|
6989
6991
|
summary: e.r
|
|
6990
|
-
}), Object.assign({}, i2,
|
|
6992
|
+
}), Object.assign({}, i2, X(t));
|
|
6991
6993
|
};
|
|
6992
6994
|
function Zt(e, t, r) {
|
|
6993
6995
|
return new Promise(async (n, a) => {
|
|
6994
|
-
const o = [], s = {}, u = {}, p = {}, h = [], b = [],
|
|
6995
|
-
for (const f of
|
|
6996
|
+
const o = [], s = {}, u = {}, p = {}, h = [], b = [], D = X(e), y = [];
|
|
6997
|
+
for (const f of D)
|
|
6996
6998
|
f.input === "group" ? y.push(...f.params.children) : y.push(f);
|
|
6997
6999
|
for await (const f of y) {
|
|
6998
7000
|
if (f.source) {
|
|
@@ -7103,14 +7105,14 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7103
7105
|
let o = 0;
|
|
7104
7106
|
const s = [], u = [];
|
|
7105
7107
|
let p = [];
|
|
7106
|
-
const h =
|
|
7108
|
+
const h = X(e), b = [], D = [];
|
|
7107
7109
|
for (const l of h)
|
|
7108
|
-
l.input === "group" ? (b.push(...l.params.children),
|
|
7110
|
+
l.input === "group" ? (b.push(...l.params.children), D.push({
|
|
7109
7111
|
title: l.label,
|
|
7110
7112
|
key: l.key,
|
|
7111
7113
|
...l.table,
|
|
7112
7114
|
children: l.params.children.map((v) => v.key)
|
|
7113
|
-
})) : (b.push(l),
|
|
7115
|
+
})) : (b.push(l), D.push(l.key));
|
|
7114
7116
|
const y = [];
|
|
7115
7117
|
e.forEach((l) => {
|
|
7116
7118
|
(l.input === "cascader" || l.input === "select") && l.params.multiple && y.push(l.key);
|
|
@@ -7125,17 +7127,17 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7125
7127
|
const N = [], V = JSON.parse(x[l.key]);
|
|
7126
7128
|
if (V)
|
|
7127
7129
|
for (const U of V) {
|
|
7128
|
-
const
|
|
7130
|
+
const B = m.find(
|
|
7129
7131
|
(q) => String(q.id) === U
|
|
7130
7132
|
);
|
|
7131
|
-
|
|
7133
|
+
B && N.push(
|
|
7132
7134
|
Z(
|
|
7133
7135
|
rd,
|
|
7134
7136
|
{
|
|
7135
7137
|
type: "info"
|
|
7136
7138
|
},
|
|
7137
7139
|
{
|
|
7138
|
-
default: () =>
|
|
7140
|
+
default: () => B[d[1]]
|
|
7139
7141
|
}
|
|
7140
7142
|
)
|
|
7141
7143
|
);
|
|
@@ -7144,12 +7146,12 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7144
7146
|
} else {
|
|
7145
7147
|
const N = m.find(
|
|
7146
7148
|
(V) => {
|
|
7147
|
-
var U,
|
|
7149
|
+
var U, B;
|
|
7148
7150
|
return (
|
|
7149
7151
|
// @ts-ignore
|
|
7150
7152
|
((U = l.params) != null && U.valueKey ? (
|
|
7151
7153
|
// @ts-ignore
|
|
7152
|
-
V[(
|
|
7154
|
+
V[(B = l.params) == null ? void 0 : B.valueKey]
|
|
7153
7155
|
) : String(V.id)) === x[l.key]
|
|
7154
7156
|
);
|
|
7155
7157
|
}
|
|
@@ -7264,8 +7266,8 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7264
7266
|
l.input === "subTable" && l.params.link && u.push(l.params.link);
|
|
7265
7267
|
}
|
|
7266
7268
|
const f = [];
|
|
7267
|
-
if (
|
|
7268
|
-
for (const l of
|
|
7269
|
+
if (D.length > 0) {
|
|
7270
|
+
for (const l of D) {
|
|
7269
7271
|
if (typeof l == "string") {
|
|
7270
7272
|
const v = p.find((m) => m.key === l);
|
|
7271
7273
|
v && f.push(v);
|
|
@@ -7288,7 +7290,7 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7288
7290
|
tableWidth: o
|
|
7289
7291
|
};
|
|
7290
7292
|
}
|
|
7291
|
-
const h2 =
|
|
7293
|
+
const h2 = le({
|
|
7292
7294
|
name: "UzSpin",
|
|
7293
7295
|
components: {
|
|
7294
7296
|
NButton: ge,
|
|
@@ -7324,7 +7326,7 @@ const h2 = ie({
|
|
|
7324
7326
|
};
|
|
7325
7327
|
return Vl(() => {
|
|
7326
7328
|
clearInterval(r.value);
|
|
7327
|
-
}),
|
|
7329
|
+
}), ce(
|
|
7328
7330
|
() => e.status,
|
|
7329
7331
|
(u) => {
|
|
7330
7332
|
u === 1 && s();
|
|
@@ -7338,7 +7340,7 @@ const h2 = ie({
|
|
|
7338
7340
|
});
|
|
7339
7341
|
function w2(e, t, r, n, a, o) {
|
|
7340
7342
|
const s = $("NEllipsis"), u = $("NButton"), p = $("NSpin");
|
|
7341
|
-
return c(),
|
|
7343
|
+
return c(), A(p, { show: e.value }, {
|
|
7342
7344
|
description: k(() => [
|
|
7343
7345
|
T(s, {
|
|
7344
7346
|
"expand-trigger": "click",
|
|
@@ -7346,7 +7348,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7346
7348
|
tooltip: !1
|
|
7347
7349
|
}, {
|
|
7348
7350
|
default: k(() => [
|
|
7349
|
-
|
|
7351
|
+
H(L(e.status === 0 ? "操作进行中..." : e.message), 1)
|
|
7350
7352
|
]),
|
|
7351
7353
|
_: 1
|
|
7352
7354
|
}),
|
|
@@ -7359,7 +7361,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7359
7361
|
onClick: e.handleClose
|
|
7360
7362
|
}, {
|
|
7361
7363
|
default: k(() => [
|
|
7362
|
-
|
|
7364
|
+
H(" 关闭(" + L(e.counts) + "s) ", 1)
|
|
7363
7365
|
]),
|
|
7364
7366
|
_: 1
|
|
7365
7367
|
}, 8, ["onMouseover", "onClick"]), [
|
|
@@ -7372,7 +7374,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7372
7374
|
_: 3
|
|
7373
7375
|
}, 8, ["show"]);
|
|
7374
7376
|
}
|
|
7375
|
-
const Ic = /* @__PURE__ */ _(h2, [["render", w2]]), m2 =
|
|
7377
|
+
const Ic = /* @__PURE__ */ _(h2, [["render", w2]]), m2 = le({
|
|
7376
7378
|
name: "UzOcr",
|
|
7377
7379
|
components: {
|
|
7378
7380
|
NButton: ge,
|
|
@@ -7457,7 +7459,7 @@ function y2(e, t, r, n, a, o) {
|
|
|
7457
7459
|
block: ""
|
|
7458
7460
|
}, {
|
|
7459
7461
|
default: k(() => [
|
|
7460
|
-
|
|
7462
|
+
H(L(e.ocrText), 1)
|
|
7461
7463
|
]),
|
|
7462
7464
|
_: 1
|
|
7463
7465
|
}, 8, ["loading"])
|
|
@@ -7466,14 +7468,14 @@ function y2(e, t, r, n, a, o) {
|
|
|
7466
7468
|
}, 8, ["on-before-upload"]),
|
|
7467
7469
|
t[0] || (t[0] = i("br", null, null, -1)),
|
|
7468
7470
|
i("div", g2, [
|
|
7469
|
-
(c(!0), w(
|
|
7471
|
+
(c(!0), w(se, null, ke(e.text, (b) => (c(), w("div", {
|
|
7470
7472
|
key: b,
|
|
7471
7473
|
class: "uz-ocr-text flex items-center"
|
|
7472
7474
|
}, [
|
|
7473
|
-
i("span", null,
|
|
7475
|
+
i("span", null, L(b), 1),
|
|
7474
7476
|
T(h, {
|
|
7475
7477
|
color: "#0186ff",
|
|
7476
|
-
onClick: (
|
|
7478
|
+
onClick: (D) => e.copy(b)
|
|
7477
7479
|
}, {
|
|
7478
7480
|
default: k(() => [
|
|
7479
7481
|
T(p)
|
|
@@ -7484,7 +7486,7 @@ function y2(e, t, r, n, a, o) {
|
|
|
7484
7486
|
], 512)
|
|
7485
7487
|
]);
|
|
7486
7488
|
}
|
|
7487
|
-
const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14"]]), k2 =
|
|
7489
|
+
const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14"]]), k2 = le({
|
|
7488
7490
|
name: "UzTable",
|
|
7489
7491
|
components: {
|
|
7490
7492
|
NDataTable: La,
|
|
@@ -7494,7 +7496,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7494
7496
|
NDrawer: Pa,
|
|
7495
7497
|
NDrawerContent: Ua,
|
|
7496
7498
|
NSkeleton: Xl,
|
|
7497
|
-
NCheckbox:
|
|
7499
|
+
NCheckbox: Ra,
|
|
7498
7500
|
NSpin: Ea,
|
|
7499
7501
|
NCheckboxGroup: Aa,
|
|
7500
7502
|
NRadioGroup: Ql,
|
|
@@ -7636,73 +7638,73 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7636
7638
|
value: () => null,
|
|
7637
7639
|
setValue: () => null
|
|
7638
7640
|
});
|
|
7639
|
-
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({
|
|
7640
7642
|
params: [],
|
|
7641
7643
|
query: {
|
|
7642
7644
|
page: 1
|
|
7643
7645
|
}
|
|
7644
|
-
}), 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({
|
|
7645
7647
|
fetch: null,
|
|
7646
7648
|
when_open: null,
|
|
7647
7649
|
when_create: null,
|
|
7648
7650
|
when_edit: null,
|
|
7649
7651
|
when_delete: null,
|
|
7650
7652
|
when_before_save: ""
|
|
7651
|
-
}),
|
|
7653
|
+
}), ee = S({
|
|
7652
7654
|
fetch: null,
|
|
7653
7655
|
when_open: null,
|
|
7654
7656
|
when_create: null,
|
|
7655
7657
|
when_edit: null,
|
|
7656
7658
|
when_delete: null,
|
|
7657
7659
|
when_before_save: ""
|
|
7658
|
-
}),
|
|
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) => {
|
|
7659
7661
|
t("update:rowKeys", {
|
|
7660
7662
|
keys: M,
|
|
7661
|
-
rows:
|
|
7663
|
+
rows: X(O)
|
|
7662
7664
|
});
|
|
7663
|
-
}, ar = (M,
|
|
7664
|
-
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") {
|
|
7665
7667
|
const ae = Ne.value.findIndex(
|
|
7666
7668
|
(P) => {
|
|
7667
|
-
var
|
|
7668
|
-
return P.id === ((
|
|
7669
|
+
var Q;
|
|
7670
|
+
return P.id === ((Q = K.row) == null ? void 0 : Q.id);
|
|
7669
7671
|
}
|
|
7670
7672
|
);
|
|
7671
7673
|
Ne.value.splice(ae, 1);
|
|
7672
7674
|
}
|
|
7673
|
-
|
|
7675
|
+
K.action === "checkAll" && O.forEach((ae) => {
|
|
7674
7676
|
ae && Ne.value.push(ae);
|
|
7675
|
-
}),
|
|
7676
|
-
keys:
|
|
7677
|
-
rows:
|
|
7677
|
+
}), K.action === "uncheckAll" && (Ne.value = [], ye.value = []), t("update:rowKeys", {
|
|
7678
|
+
keys: X(ye.value),
|
|
7679
|
+
rows: X(Ne.value)
|
|
7678
7680
|
});
|
|
7679
7681
|
}, Xe = (M) => {
|
|
7680
|
-
const
|
|
7681
|
-
return
|
|
7682
|
+
const O = M.filter((K) => K !== null && typeof K < "u" && K !== "");
|
|
7683
|
+
return O.length > 0 ? O : !1;
|
|
7682
7684
|
}, or = (M) => {
|
|
7683
|
-
const
|
|
7684
|
-
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) : [];
|
|
7685
7687
|
}, me = (M = !1) => {
|
|
7686
|
-
const
|
|
7687
|
-
e.enableLoading && (
|
|
7688
|
-
const
|
|
7689
|
-
if (M && delete
|
|
7690
|
-
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) => {
|
|
7691
7693
|
const P = bo(ae);
|
|
7692
|
-
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);
|
|
7693
7695
|
}).catch(() => {
|
|
7694
|
-
|
|
7696
|
+
D.value = !1, y.value = !0, t("update:loading", !1);
|
|
7695
7697
|
});
|
|
7696
7698
|
else {
|
|
7697
7699
|
let ae;
|
|
7698
|
-
e.fetch ? ae = e.fetch({ ...
|
|
7699
|
-
...
|
|
7700
|
-
tableId:
|
|
7700
|
+
e.fetch ? ae = e.fetch({ ...K, tableId: O }) : ae = Ze({
|
|
7701
|
+
...K,
|
|
7702
|
+
tableId: O
|
|
7701
7703
|
}), ae.then((P) => {
|
|
7702
|
-
const
|
|
7703
|
-
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);
|
|
7704
7706
|
}).catch(() => {
|
|
7705
|
-
|
|
7707
|
+
D.value = !1, y.value = !0, t("update:loading", !1);
|
|
7706
7708
|
});
|
|
7707
7709
|
}
|
|
7708
7710
|
}, sr = (M) => {
|
|
@@ -7711,16 +7713,16 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7711
7713
|
N.value.query.pageSize = M, N.value.query.page = 1, cr(), me();
|
|
7712
7714
|
}, nt = (M) => {
|
|
7713
7715
|
M && M.order ? N.value.orderby = `${M.columnKey} ${M.order.replace("end", "")}` : delete N.value.orderby, me();
|
|
7714
|
-
},
|
|
7715
|
-
Ve(), typeof e.addFetch == "function" ? e.addFetch() : (
|
|
7716
|
+
}, te = () => {
|
|
7717
|
+
Ve(), typeof e.addFetch == "function" ? e.addFetch() : (j.value = 0, q.value = !0);
|
|
7716
7718
|
}, Be = (M) => {
|
|
7717
7719
|
M.pin = !M.pin, M.pin ? M.fixed = "left" : M.fixed = M.fixTemp ?? void 0, ot();
|
|
7718
7720
|
}, Fe = (M) => {
|
|
7719
7721
|
M.show = !M.show, ot();
|
|
7720
7722
|
}, lr = () => {
|
|
7721
7723
|
const M = [];
|
|
7722
|
-
m.value.forEach((
|
|
7723
|
-
|
|
7724
|
+
m.value.forEach((O) => {
|
|
7725
|
+
O.show && M.push(O);
|
|
7724
7726
|
}), v.value = M;
|
|
7725
7727
|
}, at = (M) => {
|
|
7726
7728
|
N.value.params = M, me();
|
|
@@ -7775,17 +7777,17 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7775
7777
|
)
|
|
7776
7778
|
]
|
|
7777
7779
|
}
|
|
7778
|
-
],
|
|
7779
|
-
var
|
|
7780
|
-
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));
|
|
7781
7783
|
}, Ve = async (M) => {
|
|
7782
|
-
const { form:
|
|
7783
|
-
|
|
7784
|
+
const { form: O, fillingDefaultValue: K } = await Zt(
|
|
7785
|
+
R.value,
|
|
7784
7786
|
M,
|
|
7785
7787
|
() => b.value.getValues()
|
|
7786
7788
|
);
|
|
7787
|
-
return l.value =
|
|
7788
|
-
}, Ue = async (M) => new Promise((
|
|
7789
|
+
return l.value = O, G.value = ee.value, K;
|
|
7790
|
+
}, Ue = async (M) => new Promise((O, K) => {
|
|
7789
7791
|
const ae = e.id || a.params.id;
|
|
7790
7792
|
let P;
|
|
7791
7793
|
e.fetch ? P = e.fetch({
|
|
@@ -7794,35 +7796,35 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7794
7796
|
}) : P = Ze({
|
|
7795
7797
|
id: M.id,
|
|
7796
7798
|
tableId: ae
|
|
7797
|
-
}), P.then((
|
|
7798
|
-
|
|
7799
|
+
}), P.then((Q) => {
|
|
7800
|
+
O(Q && Q[0]);
|
|
7799
7801
|
}).catch(() => {
|
|
7800
|
-
|
|
7802
|
+
K();
|
|
7801
7803
|
});
|
|
7802
|
-
}), It = (M,
|
|
7803
|
-
const
|
|
7804
|
+
}), It = (M, O) => {
|
|
7805
|
+
const K = X(M.onClick), ae = e.id || a.params.id;
|
|
7804
7806
|
if (M.disabled) {
|
|
7805
7807
|
if (typeof M.disabled == "string") {
|
|
7806
7808
|
const P = new Function("rowData", "rowIndex", M.disabled);
|
|
7807
|
-
M.disabled = (
|
|
7809
|
+
M.disabled = (Q, oe) => P(Q, oe) || de(M.key);
|
|
7808
7810
|
} else if (typeof M.disabled == "function") {
|
|
7809
|
-
const P =
|
|
7810
|
-
M.disabled = (
|
|
7811
|
+
const P = X(M);
|
|
7812
|
+
M.disabled = (Q, oe) => P.disabled(Q, oe) || de(M.key);
|
|
7811
7813
|
}
|
|
7812
7814
|
} else
|
|
7813
|
-
M.disabled = () =>
|
|
7814
|
-
if (M.loading =
|
|
7815
|
+
M.disabled = () => de(M.key);
|
|
7816
|
+
if (M.loading = D.value, M.type !== "group" && M.optionsType)
|
|
7815
7817
|
M.onClick = async (P) => {
|
|
7816
|
-
Ue(P).then((
|
|
7818
|
+
Ue(P).then((Q) => {
|
|
7817
7819
|
if (M.optionsType === "drawer:insider") {
|
|
7818
|
-
if (
|
|
7820
|
+
if (K)
|
|
7819
7821
|
try {
|
|
7820
7822
|
new Function(
|
|
7821
7823
|
"rowData",
|
|
7822
7824
|
"POST",
|
|
7823
7825
|
"fnNotification",
|
|
7824
|
-
|
|
7825
|
-
)(
|
|
7826
|
+
K
|
|
7827
|
+
)(Q, we, s).then((be) => {
|
|
7826
7828
|
Nt.value = be;
|
|
7827
7829
|
}).catch(() => null);
|
|
7828
7830
|
} catch {
|
|
@@ -7834,17 +7836,17 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7834
7836
|
footer: M.footer,
|
|
7835
7837
|
width: M.width,
|
|
7836
7838
|
open: M.optionsType,
|
|
7837
|
-
mainFormValue:
|
|
7839
|
+
mainFormValue: Q,
|
|
7838
7840
|
children: () => P,
|
|
7839
7841
|
callback: null
|
|
7840
7842
|
});
|
|
7841
7843
|
}).catch(() => null);
|
|
7842
7844
|
};
|
|
7843
7845
|
else if (M.type !== "group" && M.action === "detailInside") {
|
|
7844
|
-
const P =
|
|
7845
|
-
M.onClick = (
|
|
7846
|
-
q.value = !0,
|
|
7847
|
-
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 };
|
|
7848
7850
|
if (P && typeof P == "string")
|
|
7849
7851
|
try {
|
|
7850
7852
|
new Function(
|
|
@@ -7852,22 +7854,22 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7852
7854
|
"POST",
|
|
7853
7855
|
"fnNotification",
|
|
7854
7856
|
P
|
|
7855
|
-
)(
|
|
7857
|
+
)(fe, we, s).then((lt) => {
|
|
7856
7858
|
C.value = lt;
|
|
7857
7859
|
}).catch(() => null);
|
|
7858
7860
|
} catch {
|
|
7859
7861
|
}
|
|
7860
7862
|
else
|
|
7861
|
-
C.value =
|
|
7863
|
+
C.value = fe;
|
|
7862
7864
|
}).catch(() => {
|
|
7863
7865
|
st();
|
|
7864
7866
|
});
|
|
7865
7867
|
};
|
|
7866
7868
|
} else if (M.type !== "group" && M.action === "editInside") {
|
|
7867
|
-
const P =
|
|
7868
|
-
M.onClick = (
|
|
7869
|
-
q.value = !0,
|
|
7870
|
-
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 };
|
|
7871
7873
|
if (P && typeof P == "string")
|
|
7872
7874
|
try {
|
|
7873
7875
|
new Function(
|
|
@@ -7875,56 +7877,56 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7875
7877
|
"POST",
|
|
7876
7878
|
"fnNotification",
|
|
7877
7879
|
P
|
|
7878
|
-
)(
|
|
7880
|
+
)(fe, we, s).then((lt) => {
|
|
7879
7881
|
C.value = lt;
|
|
7880
7882
|
}).catch(() => null);
|
|
7881
7883
|
} catch {
|
|
7882
7884
|
}
|
|
7883
7885
|
else
|
|
7884
|
-
C.value =
|
|
7886
|
+
C.value = fe;
|
|
7885
7887
|
}).catch(() => {
|
|
7886
7888
|
st();
|
|
7887
7889
|
});
|
|
7888
7890
|
};
|
|
7889
7891
|
} else if (M.type !== "group" && M.action === "deleteInside")
|
|
7890
7892
|
M.onClick = (P) => {
|
|
7891
|
-
let
|
|
7892
|
-
e.deleteFetch ?
|
|
7893
|
+
let Q;
|
|
7894
|
+
e.deleteFetch ? Q = e.deleteFetch({
|
|
7893
7895
|
...P,
|
|
7894
7896
|
tableId: ae,
|
|
7895
|
-
sub_table_ids:
|
|
7896
|
-
}) :
|
|
7897
|
+
sub_table_ids: O
|
|
7898
|
+
}) : Q = Om({
|
|
7897
7899
|
...P,
|
|
7898
7900
|
tableId: ae,
|
|
7899
|
-
sub_table_ids:
|
|
7900
|
-
}),
|
|
7901
|
-
if (me(),
|
|
7902
|
-
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);
|
|
7903
7905
|
oe && Pe(oe, P.id);
|
|
7904
7906
|
}
|
|
7905
7907
|
}).catch(() => {
|
|
7906
7908
|
});
|
|
7907
7909
|
};
|
|
7908
7910
|
else if (M.type !== "group" && M.action) {
|
|
7909
|
-
const P =
|
|
7910
|
-
M.onClick = (
|
|
7911
|
+
const P = X(M.onClick);
|
|
7912
|
+
M.onClick = (Q) => {
|
|
7911
7913
|
let oe;
|
|
7912
7914
|
e.fetch ? oe = e.fetch({
|
|
7913
|
-
id:
|
|
7915
|
+
id: Q.id,
|
|
7914
7916
|
tableId: ae
|
|
7915
7917
|
}) : oe = Ze({
|
|
7916
|
-
id:
|
|
7918
|
+
id: Q.id,
|
|
7917
7919
|
tableId: ae
|
|
7918
7920
|
}), oe.then((be) => {
|
|
7919
|
-
const
|
|
7921
|
+
const fe = be && be[0];
|
|
7920
7922
|
Pe(
|
|
7921
7923
|
[M.action],
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
+
fe.id,
|
|
7925
|
+
fe
|
|
7924
7926
|
).then((qe) => {
|
|
7925
7927
|
if (P && typeof P == "string") {
|
|
7926
7928
|
try {
|
|
7927
|
-
new Function("rowData", "res", P)(
|
|
7929
|
+
new Function("rowData", "res", P)(fe, qe).then((ir) => {
|
|
7928
7930
|
s.success({
|
|
7929
7931
|
content: ir,
|
|
7930
7932
|
duration: 3e3
|
|
@@ -7941,7 +7943,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7941
7943
|
return;
|
|
7942
7944
|
}
|
|
7943
7945
|
if (P && typeof P == "function") {
|
|
7944
|
-
P(
|
|
7946
|
+
P(fe, qe, () => {
|
|
7945
7947
|
s.success({
|
|
7946
7948
|
content: () => o("Notice.success"),
|
|
7947
7949
|
duration: 3e3
|
|
@@ -7965,15 +7967,15 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7965
7967
|
}
|
|
7966
7968
|
}, ht = async () => {
|
|
7967
7969
|
Ce.value = !1, Sa();
|
|
7968
|
-
const { tableColumns: M, search:
|
|
7969
|
-
|
|
7970
|
+
const { tableColumns: M, search: O, subTableIds: K, tableWidth: ae } = await er(
|
|
7971
|
+
R.value,
|
|
7970
7972
|
e.child,
|
|
7971
|
-
|
|
7973
|
+
j.value,
|
|
7972
7974
|
() => C.value,
|
|
7973
7975
|
tr
|
|
7974
7976
|
);
|
|
7975
7977
|
let P = ae;
|
|
7976
|
-
!u.value &&
|
|
7978
|
+
!u.value && J.value.index && (M.unshift({
|
|
7977
7979
|
title: "#",
|
|
7978
7980
|
key: "index",
|
|
7979
7981
|
align: "center",
|
|
@@ -7988,67 +7990,67 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
7988
7990
|
{},
|
|
7989
7991
|
{
|
|
7990
7992
|
default: () => {
|
|
7991
|
-
const
|
|
7992
|
-
return (
|
|
7993
|
+
const fe = N.value.query.page || 1, qe = N.value.query.pageSize || 30;
|
|
7994
|
+
return (fe - 1) * qe + (be + 1);
|
|
7993
7995
|
}
|
|
7994
7996
|
}
|
|
7995
7997
|
);
|
|
7996
7998
|
}
|
|
7997
|
-
}), P = P + 60), !u.value && (e.selection ||
|
|
7999
|
+
}), P = P + 60), !u.value && (e.selection || J.value.selection !== 0) && (M.unshift({
|
|
7998
8000
|
type: "selection",
|
|
7999
8001
|
fixed: "left",
|
|
8000
8002
|
width: 60,
|
|
8001
8003
|
hide: !0,
|
|
8002
8004
|
show: !0,
|
|
8003
|
-
multiple: e.selection === 2 ||
|
|
8005
|
+
multiple: e.selection === 2 || J.value.selection === 2,
|
|
8004
8006
|
options: ["all", "none"]
|
|
8005
8007
|
}), P = P + 60);
|
|
8006
|
-
const
|
|
8007
|
-
if (!u.value &&
|
|
8008
|
-
const oe =
|
|
8009
|
-
for (const
|
|
8010
|
-
|
|
8011
|
-
It(qe,
|
|
8012
|
-
}) : 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);
|
|
8013
8015
|
const be = {
|
|
8014
8016
|
title: () => o("Common.action"),
|
|
8015
8017
|
key: "action",
|
|
8016
8018
|
align: "center",
|
|
8017
8019
|
fixed: "right",
|
|
8018
|
-
width:
|
|
8020
|
+
width: J.value.actionWidth,
|
|
8019
8021
|
resizable: !0,
|
|
8020
8022
|
checked: !0,
|
|
8021
8023
|
show: !0,
|
|
8022
8024
|
hide: !0,
|
|
8023
|
-
render(
|
|
8025
|
+
render(fe) {
|
|
8024
8026
|
return $t({
|
|
8025
8027
|
buttons: oe,
|
|
8026
|
-
rowData:
|
|
8028
|
+
rowData: fe,
|
|
8027
8029
|
callback: me,
|
|
8028
|
-
tableId:
|
|
8030
|
+
tableId: Q
|
|
8029
8031
|
});
|
|
8030
8032
|
}
|
|
8031
8033
|
};
|
|
8032
8034
|
P = P + Number(
|
|
8033
|
-
typeof
|
|
8035
|
+
typeof J.value.actionWidth == "string" ? J.value.actionWidth.replace("px", "") : J.value.actionWidth
|
|
8034
8036
|
), M.push(be);
|
|
8035
8037
|
}
|
|
8036
|
-
m.value = M, V.value =
|
|
8038
|
+
m.value = M, V.value = O, x.value = P;
|
|
8037
8039
|
}, De = (M) => typeof M == "number" ? `${M}px` : M, Dt = () => {
|
|
8038
8040
|
if (e.height) {
|
|
8039
8041
|
const M = De(e.height);
|
|
8040
|
-
U.value = M,
|
|
8042
|
+
U.value = M, B.value = M;
|
|
8041
8043
|
return;
|
|
8042
8044
|
}
|
|
8043
|
-
e.minHeight && (U.value = De(e.minHeight)), e.maxHeight && (
|
|
8045
|
+
e.minHeight && (U.value = De(e.minHeight)), e.maxHeight && (B.value = De(e.maxHeight));
|
|
8044
8046
|
}, ot = () => {
|
|
8045
8047
|
const M = [];
|
|
8046
|
-
m.value.forEach((
|
|
8047
|
-
|
|
8048
|
-
key:
|
|
8049
|
-
show:
|
|
8050
|
-
hide:
|
|
8051
|
-
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
|
|
8052
8054
|
});
|
|
8053
8055
|
}), t("on-update:columns", M);
|
|
8054
8056
|
}, st = () => {
|
|
@@ -8056,64 +8058,64 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8056
8058
|
(M = b.value) == null || M.restoreValidation(), C.value = {}, f.value = !1, q.value = !1;
|
|
8057
8059
|
}, jt = () => {
|
|
8058
8060
|
var M;
|
|
8059
|
-
|
|
8060
|
-
if (
|
|
8061
|
-
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);
|
|
8062
8064
|
try {
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
+
O = await Q(O, we).catch((oe) => {
|
|
8066
|
+
pe.value = 1, Te.value = oe.message;
|
|
8065
8067
|
});
|
|
8066
8068
|
} catch (oe) {
|
|
8067
|
-
|
|
8069
|
+
pe.value = 1, Te.value = oe.message;
|
|
8068
8070
|
return;
|
|
8069
8071
|
}
|
|
8070
8072
|
}
|
|
8071
|
-
let
|
|
8073
|
+
let K;
|
|
8072
8074
|
const ae = e.id || a.params.id;
|
|
8073
|
-
e.formFetch ?
|
|
8075
|
+
e.formFetch ? K = e.formFetch({
|
|
8074
8076
|
tableId: ae,
|
|
8075
|
-
...
|
|
8076
|
-
}) :
|
|
8077
|
+
...O
|
|
8078
|
+
}) : K = eo({
|
|
8077
8079
|
tableId: ae,
|
|
8078
|
-
...
|
|
8079
|
-
}),
|
|
8080
|
-
if (Sa(),
|
|
8081
|
-
const
|
|
8082
|
-
|
|
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);
|
|
8083
8085
|
}
|
|
8084
|
-
if (
|
|
8085
|
-
const
|
|
8086
|
-
|
|
8086
|
+
if (j.value && G.value.when_edit) {
|
|
8087
|
+
const Q = Xe(G.value.when_edit);
|
|
8088
|
+
Q && Pe(Q, O.id);
|
|
8087
8089
|
}
|
|
8088
8090
|
}).catch((P) => {
|
|
8089
|
-
|
|
8091
|
+
pe.value = 1, Te.value = P;
|
|
8090
8092
|
});
|
|
8091
8093
|
}).catch(() => {
|
|
8092
|
-
|
|
8094
|
+
ie.value = !1;
|
|
8093
8095
|
});
|
|
8094
8096
|
}, je = () => {
|
|
8095
|
-
g.value = "",
|
|
8097
|
+
g.value = "", R.value = [], F.value = [], z.value = [], G.value = {
|
|
8096
8098
|
fetch: null,
|
|
8097
8099
|
when_open: null,
|
|
8098
8100
|
when_create: null,
|
|
8099
8101
|
when_edit: null,
|
|
8100
8102
|
when_delete: null,
|
|
8101
8103
|
when_before_save: ""
|
|
8102
|
-
},
|
|
8104
|
+
}, ee.value = {
|
|
8103
8105
|
fetch: null,
|
|
8104
8106
|
when_open: null,
|
|
8105
8107
|
when_create: null,
|
|
8106
8108
|
when_edit: null,
|
|
8107
8109
|
when_delete: null,
|
|
8108
8110
|
when_before_save: ""
|
|
8109
|
-
},
|
|
8111
|
+
}, J.value = ut();
|
|
8110
8112
|
}, Ae = (M) => {
|
|
8111
|
-
const
|
|
8112
|
-
g.value = M.tableTitle,
|
|
8113
|
-
const
|
|
8114
|
-
|
|
8115
|
-
const ae = ut(e.options ??
|
|
8116
|
-
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;
|
|
8117
8119
|
}, qt = async () => {
|
|
8118
8120
|
y.value = !1, je();
|
|
8119
8121
|
const M = e.id || a.params.id;
|
|
@@ -8124,21 +8126,21 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8124
8126
|
}
|
|
8125
8127
|
}, d.value = [], e.ruleFetch)
|
|
8126
8128
|
try {
|
|
8127
|
-
|
|
8129
|
+
I.value = await e.ruleFetch(M);
|
|
8128
8130
|
} catch {
|
|
8129
8131
|
Te.value = o("Notice.network"), Ce.value = !0;
|
|
8130
8132
|
return;
|
|
8131
8133
|
}
|
|
8132
|
-
if (Dt(), e.columns ? (
|
|
8133
|
-
if (Ae(
|
|
8134
|
-
const
|
|
8135
|
-
|
|
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);
|
|
8136
8138
|
}
|
|
8137
|
-
}).catch((
|
|
8138
|
-
Te.value =
|
|
8139
|
-
}),
|
|
8140
|
-
const
|
|
8141
|
-
|
|
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);
|
|
8142
8144
|
}
|
|
8143
8145
|
}, vo = (M) => {
|
|
8144
8146
|
if (M.type !== "group" && M.optionsType)
|
|
@@ -8154,14 +8156,14 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8154
8156
|
});
|
|
8155
8157
|
};
|
|
8156
8158
|
else if (M.type !== "group") {
|
|
8157
|
-
const
|
|
8159
|
+
const O = X(M.onClick);
|
|
8158
8160
|
M.onClick = async () => {
|
|
8159
|
-
if (
|
|
8161
|
+
if (O && typeof O == "string") {
|
|
8160
8162
|
try {
|
|
8161
|
-
const
|
|
8162
|
-
await
|
|
8163
|
-
} catch (
|
|
8164
|
-
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);
|
|
8165
8167
|
}
|
|
8166
8168
|
return;
|
|
8167
8169
|
}
|
|
@@ -8170,23 +8172,23 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8170
8172
|
};
|
|
8171
8173
|
return r({ rebuild: qt, init: me }), Ge(async () => {
|
|
8172
8174
|
await qt();
|
|
8173
|
-
}),
|
|
8175
|
+
}), ce(
|
|
8174
8176
|
() => m.value,
|
|
8175
8177
|
() => {
|
|
8176
8178
|
lr();
|
|
8177
8179
|
},
|
|
8178
8180
|
{ deep: !0 }
|
|
8179
|
-
),
|
|
8181
|
+
), ce([() => a.params.id, () => e.id], async () => {
|
|
8180
8182
|
cr(), await qt();
|
|
8181
8183
|
}), {
|
|
8182
|
-
loading:
|
|
8184
|
+
loading: D,
|
|
8183
8185
|
minH: U,
|
|
8184
|
-
maxH:
|
|
8186
|
+
maxH: B,
|
|
8185
8187
|
drawer: q,
|
|
8186
8188
|
formRef: b,
|
|
8187
|
-
ocFormStatus:
|
|
8189
|
+
ocFormStatus: j,
|
|
8188
8190
|
formValues: C,
|
|
8189
|
-
tableOption:
|
|
8191
|
+
tableOption: J,
|
|
8190
8192
|
tableColumns: v,
|
|
8191
8193
|
tableData: d,
|
|
8192
8194
|
tableQueries: N,
|
|
@@ -8196,12 +8198,12 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8196
8198
|
formData: l,
|
|
8197
8199
|
title: g,
|
|
8198
8200
|
dynamicLoading: y,
|
|
8199
|
-
spinShow:
|
|
8201
|
+
spinShow: ie,
|
|
8200
8202
|
spinMsg: Te,
|
|
8201
|
-
spinStatus:
|
|
8203
|
+
spinStatus: pe,
|
|
8202
8204
|
tableScrollX: x,
|
|
8203
8205
|
ocrShow: f,
|
|
8204
|
-
suffixes:
|
|
8206
|
+
suffixes: z,
|
|
8205
8207
|
spinError: Ce,
|
|
8206
8208
|
isMobile: u,
|
|
8207
8209
|
mRef: p,
|
|
@@ -8217,12 +8219,12 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8217
8219
|
pinChange: Be,
|
|
8218
8220
|
showChange: Fe,
|
|
8219
8221
|
submit: at,
|
|
8220
|
-
handleAdd:
|
|
8222
|
+
handleAdd: te,
|
|
8221
8223
|
handleColumnChange: ot,
|
|
8222
8224
|
handleCheckRowKeys: ar,
|
|
8223
8225
|
drawerCancel: st,
|
|
8224
8226
|
drawerSubmit: jt,
|
|
8225
|
-
checkRole:
|
|
8227
|
+
checkRole: de,
|
|
8226
8228
|
handleSuffixClick: vo,
|
|
8227
8229
|
rebuild: qt,
|
|
8228
8230
|
summaryFn: or,
|
|
@@ -8237,7 +8239,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-8949ab14
|
|
|
8237
8239
|
class: "uz-transform-fade-in"
|
|
8238
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" };
|
|
8239
8241
|
function j2(e, t, r, n, a, o) {
|
|
8240
|
-
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");
|
|
8241
8243
|
return c(), w("div", b2, [
|
|
8242
8244
|
gt(i("div", _2, [
|
|
8243
8245
|
i("div", x2, [
|
|
@@ -8285,7 +8287,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8285
8287
|
class: "uz-table-n-spin"
|
|
8286
8288
|
}, {
|
|
8287
8289
|
description: k(() => [
|
|
8288
|
-
i("div", null,
|
|
8290
|
+
i("div", null, L(e.spinMsg), 1),
|
|
8289
8291
|
t[6] || (t[6] = i("br", null, null, -1)),
|
|
8290
8292
|
T(u, {
|
|
8291
8293
|
type: "primary",
|
|
@@ -8293,7 +8295,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8293
8295
|
block: ""
|
|
8294
8296
|
}, {
|
|
8295
8297
|
default: k(() => t[5] || (t[5] = [
|
|
8296
|
-
|
|
8298
|
+
H("重试", -1)
|
|
8297
8299
|
])),
|
|
8298
8300
|
_: 1,
|
|
8299
8301
|
__: [5]
|
|
@@ -8302,17 +8304,17 @@ function j2(e, t, r, n, a, o) {
|
|
|
8302
8304
|
default: k(() => [
|
|
8303
8305
|
e.isMobile ? (c(), w("div", {
|
|
8304
8306
|
key: 0,
|
|
8305
|
-
class:
|
|
8307
|
+
class: ue([e.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
8306
8308
|
}, [
|
|
8307
|
-
T(
|
|
8309
|
+
T(D, {
|
|
8308
8310
|
data: e.searchData,
|
|
8309
8311
|
id: e.id || e.route.params.id,
|
|
8310
8312
|
cache: e.tableOption.cache,
|
|
8311
8313
|
loading: e.loading,
|
|
8312
8314
|
"onOnUpdate:value": e.submit
|
|
8313
|
-
},
|
|
8315
|
+
}, Re({
|
|
8314
8316
|
action: k(() => [
|
|
8315
|
-
e.addFetch && e.tableOption.addButton ? (c(),
|
|
8317
|
+
e.addFetch && e.tableOption.addButton ? (c(), A(u, {
|
|
8316
8318
|
key: 0,
|
|
8317
8319
|
secondary: "",
|
|
8318
8320
|
disabled: e.checkRole("add"),
|
|
@@ -8327,11 +8329,11 @@ function j2(e, t, r, n, a, o) {
|
|
|
8327
8329
|
})
|
|
8328
8330
|
]),
|
|
8329
8331
|
default: k(() => [
|
|
8330
|
-
|
|
8332
|
+
H(" " + L(e.$t("Common.add")), 1)
|
|
8331
8333
|
]),
|
|
8332
8334
|
_: 1
|
|
8333
|
-
}, 8, ["disabled", "onClick"])) :
|
|
8334
|
-
e.suffixes && e.suffixes.length > 0 ? (c(),
|
|
8335
|
+
}, 8, ["disabled", "onClick"])) : W("", !0),
|
|
8336
|
+
e.suffixes && e.suffixes.length > 0 ? (c(), A(b, {
|
|
8335
8337
|
key: 1,
|
|
8336
8338
|
data: e.suffixes,
|
|
8337
8339
|
hProps: {
|
|
@@ -8339,7 +8341,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8339
8341
|
size: "medium",
|
|
8340
8342
|
text: !1
|
|
8341
8343
|
}
|
|
8342
|
-
}, null, 8, ["data"])) :
|
|
8344
|
+
}, null, 8, ["data"])) : W("", !0),
|
|
8343
8345
|
xe(e.$slots, "action")
|
|
8344
8346
|
]),
|
|
8345
8347
|
_: 2
|
|
@@ -8353,7 +8355,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8353
8355
|
} : {
|
|
8354
8356
|
name: "header",
|
|
8355
8357
|
fn: k(() => [
|
|
8356
|
-
i("div", $2,
|
|
8358
|
+
i("div", $2, L(e.title), 1)
|
|
8357
8359
|
]),
|
|
8358
8360
|
key: "1"
|
|
8359
8361
|
}
|
|
@@ -8371,7 +8373,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8371
8373
|
}, null, 8, ["tableColumns", "tableData", "tableQueries", "pageChange", "selection", "minH", "maxH", "onUpdate:rowKeys"])
|
|
8372
8374
|
], 512)
|
|
8373
8375
|
], 2)) : (c(), w("div", S2, [
|
|
8374
|
-
e.enableHeader ? (c(),
|
|
8376
|
+
e.enableHeader ? (c(), A(d, {
|
|
8375
8377
|
key: 0,
|
|
8376
8378
|
data: e.searchData,
|
|
8377
8379
|
id: e.id || e.route.params.id,
|
|
@@ -8379,9 +8381,9 @@ function j2(e, t, r, n, a, o) {
|
|
|
8379
8381
|
loading: e.loading,
|
|
8380
8382
|
cols: e.searchCols,
|
|
8381
8383
|
"onOnUpdate:value": e.submit
|
|
8382
|
-
},
|
|
8384
|
+
}, Re({
|
|
8383
8385
|
action: k(() => [
|
|
8384
|
-
e.tableOption.filterButton && e.baseColumns.length > 0 ? (c(),
|
|
8386
|
+
e.tableOption.filterButton && e.baseColumns.length > 0 ? (c(), A(m, {
|
|
8385
8387
|
key: 0,
|
|
8386
8388
|
placement: "bottom-end",
|
|
8387
8389
|
trigger: "click",
|
|
@@ -8398,7 +8400,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8398
8400
|
})
|
|
8399
8401
|
]),
|
|
8400
8402
|
default: k(() => [
|
|
8401
|
-
|
|
8403
|
+
H(" " + L(e.$t("Common.columns")), 1)
|
|
8402
8404
|
]),
|
|
8403
8405
|
_: 1
|
|
8404
8406
|
})
|
|
@@ -8406,7 +8408,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8406
8408
|
default: k(() => [
|
|
8407
8409
|
T(v, _a({
|
|
8408
8410
|
modelValue: e.baseColumns,
|
|
8409
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
8411
|
+
"onUpdate:modelValue": t[0] || (t[0] = (I) => e.baseColumns = I)
|
|
8410
8412
|
}, {
|
|
8411
8413
|
animation: 200
|
|
8412
8414
|
}, {
|
|
@@ -8415,18 +8417,18 @@ function j2(e, t, r, n, a, o) {
|
|
|
8415
8417
|
handle: ".uz-drag-handle",
|
|
8416
8418
|
onEnd: e.handleColumnChange
|
|
8417
8419
|
}), {
|
|
8418
|
-
item: k(({ element:
|
|
8419
|
-
|
|
8420
|
-
key:
|
|
8420
|
+
item: k(({ element: I }) => [
|
|
8421
|
+
I.hide ? W("", !0) : (c(), w("div", {
|
|
8422
|
+
key: I.key,
|
|
8421
8423
|
class: "uz-table-sort"
|
|
8422
8424
|
}, [
|
|
8423
8425
|
T(g, {
|
|
8424
|
-
checked:
|
|
8425
|
-
"on-update:checked": () => e.showChange(
|
|
8426
|
+
checked: I.show,
|
|
8427
|
+
"on-update:checked": () => e.showChange(I),
|
|
8426
8428
|
size: "large"
|
|
8427
8429
|
}, {
|
|
8428
8430
|
default: k(() => [
|
|
8429
|
-
|
|
8431
|
+
H(L(typeof I.title == "string" ? I.title : I.title && I.title()), 1)
|
|
8430
8432
|
]),
|
|
8431
8433
|
_: 2
|
|
8432
8434
|
}, 1032, ["checked", "on-update:checked"]),
|
|
@@ -8450,8 +8452,8 @@ function j2(e, t, r, n, a, o) {
|
|
|
8450
8452
|
}, 16, ["modelValue", "onEnd"])
|
|
8451
8453
|
]),
|
|
8452
8454
|
_: 1
|
|
8453
|
-
})) :
|
|
8454
|
-
e.addFetch && e.tableOption.addButton ? (c(),
|
|
8455
|
+
})) : W("", !0),
|
|
8456
|
+
e.addFetch && e.tableOption.addButton ? (c(), A(u, {
|
|
8455
8457
|
key: 1,
|
|
8456
8458
|
secondary: "",
|
|
8457
8459
|
disabled: e.checkRole("add"),
|
|
@@ -8466,11 +8468,11 @@ function j2(e, t, r, n, a, o) {
|
|
|
8466
8468
|
})
|
|
8467
8469
|
]),
|
|
8468
8470
|
default: k(() => [
|
|
8469
|
-
|
|
8471
|
+
H(" " + L(e.$t("Common.add")), 1)
|
|
8470
8472
|
]),
|
|
8471
8473
|
_: 1
|
|
8472
|
-
}, 8, ["disabled", "onClick"])) :
|
|
8473
|
-
e.suffixes && e.suffixes.length > 0 ? (c(),
|
|
8474
|
+
}, 8, ["disabled", "onClick"])) : W("", !0),
|
|
8475
|
+
e.suffixes && e.suffixes.length > 0 ? (c(), A(b, {
|
|
8474
8476
|
key: 2,
|
|
8475
8477
|
data: e.suffixes,
|
|
8476
8478
|
hProps: {
|
|
@@ -8478,7 +8480,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8478
8480
|
size: "medium",
|
|
8479
8481
|
text: !1
|
|
8480
8482
|
}
|
|
8481
|
-
}, null, 8, ["data"])) :
|
|
8483
|
+
}, null, 8, ["data"])) : W("", !0),
|
|
8482
8484
|
xe(e.$slots, "action")
|
|
8483
8485
|
]),
|
|
8484
8486
|
_: 2
|
|
@@ -8492,11 +8494,11 @@ function j2(e, t, r, n, a, o) {
|
|
|
8492
8494
|
} : {
|
|
8493
8495
|
name: "header",
|
|
8494
8496
|
fn: k(() => [
|
|
8495
|
-
i("div", T2,
|
|
8497
|
+
i("div", T2, L(e.title), 1)
|
|
8496
8498
|
]),
|
|
8497
8499
|
key: "1"
|
|
8498
8500
|
}
|
|
8499
|
-
]), 1032, ["data", "id", "cache", "loading", "cols", "onOnUpdate:value"])) :
|
|
8501
|
+
]), 1032, ["data", "id", "cache", "loading", "cols", "onOnUpdate:value"])) : W("", !0),
|
|
8500
8502
|
T(x, {
|
|
8501
8503
|
columns: e.tableColumns,
|
|
8502
8504
|
data: e.tableData,
|
|
@@ -8527,27 +8529,28 @@ function j2(e, t, r, n, a, o) {
|
|
|
8527
8529
|
}, 8, ["show"]), [
|
|
8528
8530
|
[xa, e.dynamicLoading]
|
|
8529
8531
|
]),
|
|
8530
|
-
T(
|
|
8532
|
+
T(j, {
|
|
8531
8533
|
show: e.drawer,
|
|
8532
|
-
"onUpdate:show": t[3] || (t[3] = (
|
|
8534
|
+
"onUpdate:show": t[3] || (t[3] = (I) => e.drawer = I),
|
|
8533
8535
|
width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
|
|
8534
8536
|
height: e.isMobile ? "96%" : e.tableOption.drawerHeight,
|
|
8535
8537
|
placement: e.isMobile ? "bottom" : e.tableOption.placement,
|
|
8536
8538
|
"on-after-leave": e.drawerCancel,
|
|
8537
|
-
"
|
|
8538
|
-
"
|
|
8539
|
+
"auto-focus": !1,
|
|
8540
|
+
"close-on-esc": !1,
|
|
8541
|
+
"mask-closable": !1
|
|
8539
8542
|
}, {
|
|
8540
8543
|
default: k(() => [
|
|
8541
8544
|
T(q, {
|
|
8542
8545
|
title: e.ocFormStatus === 1 ? e.$t("Common.edit") : e.ocFormStatus === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
|
|
8543
8546
|
closable: ""
|
|
8544
|
-
},
|
|
8547
|
+
}, Re({
|
|
8545
8548
|
default: k(() => [
|
|
8546
8549
|
i("div", N2, [
|
|
8547
|
-
e.ocrShow ? (c(),
|
|
8548
|
-
T(
|
|
8550
|
+
e.ocrShow ? (c(), A(V, { key: 0 })) : W("", !0),
|
|
8551
|
+
T(B, {
|
|
8549
8552
|
value: e.spinShow,
|
|
8550
|
-
"onUpdate:value": t[1] || (t[1] = (
|
|
8553
|
+
"onUpdate:value": t[1] || (t[1] = (I) => e.spinShow = I),
|
|
8551
8554
|
message: e.spinMsg,
|
|
8552
8555
|
status: e.spinStatus,
|
|
8553
8556
|
class: "flex-1"
|
|
@@ -8571,14 +8574,14 @@ function j2(e, t, r, n, a, o) {
|
|
|
8571
8574
|
fn: k(() => [
|
|
8572
8575
|
i("div", I2, [
|
|
8573
8576
|
i("div", null, [
|
|
8574
|
-
e.isMobile ?
|
|
8577
|
+
e.isMobile ? W("", !0) : (c(), A(u, {
|
|
8575
8578
|
key: 0,
|
|
8576
8579
|
type: "primary",
|
|
8577
|
-
onClick: t[2] || (t[2] = (
|
|
8580
|
+
onClick: t[2] || (t[2] = (I) => e.ocrShow = !e.ocrShow),
|
|
8578
8581
|
tertiary: ""
|
|
8579
8582
|
}, {
|
|
8580
8583
|
default: k(() => [
|
|
8581
|
-
|
|
8584
|
+
H(L(e.$t("OCR.ocr")), 1)
|
|
8582
8585
|
]),
|
|
8583
8586
|
_: 1
|
|
8584
8587
|
}))
|
|
@@ -8590,7 +8593,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8590
8593
|
onClick: e.drawerCancel
|
|
8591
8594
|
}, {
|
|
8592
8595
|
default: k(() => [
|
|
8593
|
-
|
|
8596
|
+
H(L(e.$t("Common.cancel")), 1)
|
|
8594
8597
|
]),
|
|
8595
8598
|
_: 1
|
|
8596
8599
|
}, 8, ["loading", "onClick"]),
|
|
@@ -8600,7 +8603,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8600
8603
|
onClick: e.drawerSubmit
|
|
8601
8604
|
}, {
|
|
8602
8605
|
default: k(() => [
|
|
8603
|
-
|
|
8606
|
+
H(L(e.$t("Common.apply")), 1)
|
|
8604
8607
|
]),
|
|
8605
8608
|
_: 1
|
|
8606
8609
|
}, 8, ["loading", "onClick"])
|
|
@@ -8612,18 +8615,18 @@ function j2(e, t, r, n, a, o) {
|
|
|
8612
8615
|
]), 1032, ["title"])
|
|
8613
8616
|
]),
|
|
8614
8617
|
_: 1
|
|
8615
|
-
}, 8, ["show", "width", "height", "placement", "on-after-leave"
|
|
8618
|
+
}, 8, ["show", "width", "height", "placement", "on-after-leave"]),
|
|
8616
8619
|
T(C, {
|
|
8617
8620
|
show: e.insiderShow,
|
|
8618
|
-
"onUpdate:show": t[4] || (t[4] = (
|
|
8621
|
+
"onUpdate:show": t[4] || (t[4] = (I) => e.insiderShow = I),
|
|
8619
8622
|
link: e.insiderLink,
|
|
8620
8623
|
mainData: e.insiderData
|
|
8621
8624
|
}, null, 8, ["show", "link", "mainData"])
|
|
8622
8625
|
]);
|
|
8623
8626
|
}
|
|
8624
|
-
const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 =
|
|
8627
|
+
const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = le({
|
|
8625
8628
|
name: "UzTableChild",
|
|
8626
|
-
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 },
|
|
8627
8630
|
props: {
|
|
8628
8631
|
value: { type: Array, default: () => [] },
|
|
8629
8632
|
item: {
|
|
@@ -8639,47 +8642,42 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8639
8642
|
},
|
|
8640
8643
|
emits: ["update:value"],
|
|
8641
8644
|
setup(e, { emit: t, expose: r }) {
|
|
8642
|
-
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) => {
|
|
8643
8646
|
b.value = !0;
|
|
8644
|
-
const { formDefaultValue:
|
|
8647
|
+
const { formDefaultValue: R, fillingDefaultArray: F } = await Zt(
|
|
8645
8648
|
e.item.params.columns,
|
|
8646
|
-
|
|
8649
|
+
I
|
|
8647
8650
|
);
|
|
8648
|
-
|
|
8649
|
-
const
|
|
8650
|
-
...
|
|
8651
|
-
...
|
|
8651
|
+
v.value = R;
|
|
8652
|
+
const z = X(I).map((G, ee) => ({
|
|
8653
|
+
...G,
|
|
8654
|
+
...F[ee]
|
|
8652
8655
|
}));
|
|
8653
8656
|
if (e.item.params.link) {
|
|
8654
|
-
const
|
|
8655
|
-
e.item.params.columns.forEach((
|
|
8656
|
-
(
|
|
8657
|
-
}), e.item.params.draggable &&
|
|
8658
|
-
|
|
8659
|
-
|
|
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]));
|
|
8660
8663
|
});
|
|
8661
|
-
}), e.item.params.init &&
|
|
8662
|
-
|
|
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();
|
|
8663
8666
|
});
|
|
8664
8667
|
} else
|
|
8665
8668
|
Ee(() => {
|
|
8666
|
-
|
|
8669
|
+
C();
|
|
8667
8670
|
});
|
|
8668
|
-
}, x = () => {
|
|
8669
|
-
const
|
|
8670
|
-
|
|
8671
|
-
A.show && z.push(A);
|
|
8672
|
-
}), y.value = z;
|
|
8673
|
-
}, N = (z) => z.delete ? "uz-table-child-delete" : "", V = async (z) => {
|
|
8674
|
-
const { tableColumns: A, tableWidth: O } = await er(
|
|
8675
|
-
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),
|
|
8676
8674
|
!0,
|
|
8677
8675
|
e.status,
|
|
8678
8676
|
() => g.value.child,
|
|
8679
8677
|
a
|
|
8680
8678
|
);
|
|
8681
|
-
let
|
|
8682
|
-
if (
|
|
8679
|
+
let z = F;
|
|
8680
|
+
if (R.unshift({
|
|
8683
8681
|
title: " ",
|
|
8684
8682
|
key: "index",
|
|
8685
8683
|
align: "center",
|
|
@@ -8690,7 +8688,7 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8690
8688
|
// render(_: ObjectKey, rowIndex: number) {
|
|
8691
8689
|
// return h('span', {}, { default: () => rowIndex + 1 })
|
|
8692
8690
|
// }
|
|
8693
|
-
}),
|
|
8691
|
+
}), z = z + 60, e.item.params.draggable && e.status !== 2 && (R.unshift({
|
|
8694
8692
|
title: " ",
|
|
8695
8693
|
key: "draggable",
|
|
8696
8694
|
align: "center",
|
|
@@ -8709,8 +8707,8 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8709
8707
|
Z(ve, {}, { default: () => Z(yt) })
|
|
8710
8708
|
);
|
|
8711
8709
|
}
|
|
8712
|
-
}),
|
|
8713
|
-
const
|
|
8710
|
+
}), z = z + 40), e.status !== 2) {
|
|
8711
|
+
const ee = {
|
|
8714
8712
|
title: () => s("Common.action"),
|
|
8715
8713
|
key: "action",
|
|
8716
8714
|
align: "center",
|
|
@@ -8720,8 +8718,8 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8720
8718
|
show: !0,
|
|
8721
8719
|
hide: !0,
|
|
8722
8720
|
width: 60,
|
|
8723
|
-
render(
|
|
8724
|
-
const
|
|
8721
|
+
render(J, ie) {
|
|
8722
|
+
const pe = [], Te = {
|
|
8725
8723
|
type: "normal",
|
|
8726
8724
|
color: "error",
|
|
8727
8725
|
key: "delete",
|
|
@@ -8729,54 +8727,57 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8729
8727
|
confirmText: "确认删除?",
|
|
8730
8728
|
onClick: () => {
|
|
8731
8729
|
const Ce = e.item.params.deleteFn;
|
|
8732
|
-
Ce && typeof Ce == "string" ?
|
|
8730
|
+
Ce && typeof Ce == "string" ? J = new Function("rowData", "mainFormValue", Ce)(J, o) : J.delete = !0;
|
|
8733
8731
|
}
|
|
8734
8732
|
};
|
|
8735
8733
|
return e.item.params.childActions && e.item.params.actions && Bt(e.item.params.actions).forEach((ye) => {
|
|
8736
8734
|
if (ye.disabled && typeof ye.disabled == "string") {
|
|
8737
8735
|
const Ne = new Function("rowData", "rowIndex", ye.disabled);
|
|
8738
|
-
ye.disabled = Ne(
|
|
8736
|
+
ye.disabled = Ne(J, ie);
|
|
8739
8737
|
}
|
|
8740
|
-
|
|
8741
|
-
}), 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)) &&
|
|
8742
|
-
buttons:
|
|
8743
|
-
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
|
|
8744
8742
|
});
|
|
8745
8743
|
}
|
|
8746
8744
|
};
|
|
8747
|
-
|
|
8745
|
+
R.push(ee);
|
|
8748
8746
|
}
|
|
8749
|
-
|
|
8750
|
-
|
|
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) => {
|
|
8751
8752
|
if (e.item.params.summary) {
|
|
8752
8753
|
if (typeof e.item.params.summary == "function")
|
|
8753
|
-
return e.item.params.summary(
|
|
8754
|
+
return e.item.params.summary(I);
|
|
8754
8755
|
try {
|
|
8755
|
-
const
|
|
8756
|
-
return new Function("pageData", "h",
|
|
8757
|
-
} catch (
|
|
8758
|
-
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);
|
|
8759
8760
|
}
|
|
8760
8761
|
}
|
|
8761
8762
|
return [];
|
|
8762
|
-
},
|
|
8763
|
-
l.value = "", g.value.child.push(
|
|
8764
|
-
|
|
8763
|
+
}, U = async () => {
|
|
8764
|
+
l.value = "", g.value.child.push(X(v.value)), Ee(() => {
|
|
8765
|
+
C();
|
|
8765
8766
|
});
|
|
8766
|
-
},
|
|
8767
|
+
}, B = async () => {
|
|
8767
8768
|
l.value = "";
|
|
8768
8769
|
try {
|
|
8769
|
-
const
|
|
8770
|
-
if (
|
|
8771
|
-
const
|
|
8770
|
+
const I = e.item.params.options;
|
|
8771
|
+
if (I) {
|
|
8772
|
+
const R = new Function("formValue", "mainFormValue", "POST", I);
|
|
8772
8773
|
e.item.params.optionsType && n({
|
|
8773
8774
|
open: e.item.params.optionsType,
|
|
8774
8775
|
mainFormValue: o,
|
|
8775
8776
|
children: () => g.value.child,
|
|
8776
|
-
callback: async (
|
|
8777
|
-
const
|
|
8778
|
-
g.value.child = [...g.value.child, ...
|
|
8779
|
-
|
|
8777
|
+
callback: async (F) => {
|
|
8778
|
+
const z = await R(F, o, we);
|
|
8779
|
+
g.value.child = [...g.value.child, ...z], Ee(() => {
|
|
8780
|
+
C();
|
|
8780
8781
|
});
|
|
8781
8782
|
}
|
|
8782
8783
|
});
|
|
@@ -8785,79 +8786,68 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8785
8786
|
open: e.item.params.optionsType,
|
|
8786
8787
|
mainFormValue: o,
|
|
8787
8788
|
children: () => g.value.child,
|
|
8788
|
-
callback: async (
|
|
8789
|
-
g.value.child = [...g.value.child, ...
|
|
8790
|
-
|
|
8789
|
+
callback: async (R) => {
|
|
8790
|
+
g.value.child = [...g.value.child, ...R], Ee(() => {
|
|
8791
|
+
C();
|
|
8791
8792
|
});
|
|
8792
8793
|
}
|
|
8793
8794
|
});
|
|
8794
|
-
} catch (
|
|
8795
|
-
throw new Error(
|
|
8795
|
+
} catch (I) {
|
|
8796
|
+
throw new Error(I);
|
|
8796
8797
|
}
|
|
8797
|
-
},
|
|
8798
|
+
}, q = () => {
|
|
8799
|
+
var I;
|
|
8800
|
+
(I = h.value) == null || I.restoreValidation();
|
|
8801
|
+
}, j = () => (l.value = "", new Promise((I, R) => {
|
|
8798
8802
|
var z;
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
var L;
|
|
8802
|
-
const O = g.value.child.filter(
|
|
8803
|
-
(se) => !se.delete
|
|
8803
|
+
const F = g.value.child.filter(
|
|
8804
|
+
(G) => !G.delete
|
|
8804
8805
|
).length;
|
|
8805
|
-
if (e.item.form.rule.required &&
|
|
8806
|
-
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();
|
|
8807
8808
|
return;
|
|
8808
8809
|
}
|
|
8809
|
-
(
|
|
8810
|
-
|
|
8810
|
+
(z = h.value) == null || z.validate((G) => {
|
|
8811
|
+
G ? R() : I();
|
|
8811
8812
|
});
|
|
8812
|
-
})),
|
|
8813
|
+
})), C = () => {
|
|
8813
8814
|
if (e.item.params.draggable && e.status !== 2 && u.value && !p.value) {
|
|
8814
|
-
const
|
|
8815
|
-
|
|
8815
|
+
const I = u.value.$el.querySelector(".n-data-table-tbody");
|
|
8816
|
+
I && (p.value = gd.create(I, {
|
|
8816
8817
|
handle: ".uz-drag-handle",
|
|
8817
8818
|
// setData(dataTransfer: any) {
|
|
8818
8819
|
// dataTransfer.setData('Text', '')
|
|
8819
8820
|
// },
|
|
8820
|
-
onEnd: ({ oldIndex:
|
|
8821
|
-
var
|
|
8822
|
-
(
|
|
8823
|
-
let
|
|
8824
|
-
const
|
|
8825
|
-
|
|
8826
|
-
...
|
|
8827
|
-
sort_index:
|
|
8828
|
-
})), g.value.child =
|
|
8829
|
-
|
|
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;
|
|
8830
8831
|
});
|
|
8831
8832
|
}
|
|
8832
8833
|
}));
|
|
8833
8834
|
}
|
|
8834
8835
|
};
|
|
8835
|
-
return Ge(
|
|
8836
|
-
(
|
|
8836
|
+
return Ge(() => {
|
|
8837
|
+
N(), d(e.value);
|
|
8837
8838
|
}), qa(() => {
|
|
8838
|
-
var
|
|
8839
|
-
(
|
|
8840
|
-
}), r({ validate:
|
|
8841
|
-
() => e.item.params.columns,
|
|
8842
|
-
async (z) => {
|
|
8843
|
-
await V(z), d(e.value);
|
|
8844
|
-
}
|
|
8845
|
-
), ue(
|
|
8846
|
-
() => f.value,
|
|
8847
|
-
() => {
|
|
8848
|
-
x();
|
|
8849
|
-
},
|
|
8850
|
-
{ deep: !0 }
|
|
8851
|
-
), ue(
|
|
8839
|
+
var I;
|
|
8840
|
+
(I = p.value) == null || I.destroy(), p.value = null;
|
|
8841
|
+
}), r({ validate: j, restoreValidation: q }), ce(
|
|
8852
8842
|
() => e.value,
|
|
8853
|
-
(
|
|
8854
|
-
JSON.stringify(
|
|
8843
|
+
(I, R) => {
|
|
8844
|
+
JSON.stringify(I) !== JSON.stringify(R) && d(I);
|
|
8855
8845
|
},
|
|
8856
8846
|
{ deep: !0 }
|
|
8857
|
-
),
|
|
8847
|
+
), ce(
|
|
8858
8848
|
() => g.value.child,
|
|
8859
|
-
(
|
|
8860
|
-
|
|
8849
|
+
(I) => {
|
|
8850
|
+
t("update:value", I);
|
|
8861
8851
|
},
|
|
8862
8852
|
{ deep: !0 }
|
|
8863
8853
|
), {
|
|
@@ -8867,29 +8857,29 @@ const q2 = /* @__PURE__ */ _(k2, [["render", j2]]), z2 = ie({
|
|
|
8867
8857
|
columns: y,
|
|
8868
8858
|
tableData: g,
|
|
8869
8859
|
baseColumns: f,
|
|
8870
|
-
summaryData:
|
|
8860
|
+
summaryData: V,
|
|
8871
8861
|
message: l,
|
|
8872
8862
|
tableScrollX: m,
|
|
8873
|
-
tableShow:
|
|
8874
|
-
onAdd:
|
|
8875
|
-
onAddFormData:
|
|
8876
|
-
rowClassName:
|
|
8863
|
+
tableShow: D,
|
|
8864
|
+
onAdd: U,
|
|
8865
|
+
onAddFormData: B,
|
|
8866
|
+
rowClassName: x
|
|
8877
8867
|
};
|
|
8878
8868
|
}
|
|
8879
|
-
}), A2 = { class: "flex-1 w-full" },
|
|
8869
|
+
}), A2 = { class: "flex-1 w-full" }, R2 = { class: "flex justify-between" }, O2 = { class: "uz-com-title" }, B2 = {
|
|
8880
8870
|
key: 0,
|
|
8881
8871
|
class: "uz-table-asterisk"
|
|
8882
8872
|
}, F2 = { class: "flex gap-2" }, V2 = { class: "flex justify-end gap-2" };
|
|
8883
8873
|
function U2(e, t, r, n, a, o) {
|
|
8884
8874
|
const s = $("Plus"), u = $("NIcon"), p = $("NButton"), h = $("NDataTable"), b = $("NForm");
|
|
8885
8875
|
return c(), w("div", A2, [
|
|
8886
|
-
i("div",
|
|
8887
|
-
i("div",
|
|
8888
|
-
|
|
8889
|
-
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)
|
|
8890
8880
|
]),
|
|
8891
8881
|
i("div", F2, [
|
|
8892
|
-
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, {
|
|
8893
8883
|
key: 0,
|
|
8894
8884
|
type: "success",
|
|
8895
8885
|
secondary: "",
|
|
@@ -8904,12 +8894,12 @@ function U2(e, t, r, n, a, o) {
|
|
|
8904
8894
|
})
|
|
8905
8895
|
]),
|
|
8906
8896
|
default: k(() => [
|
|
8907
|
-
t[0] || (t[0] =
|
|
8897
|
+
t[0] || (t[0] = H(" 从数据新增 ", -1))
|
|
8908
8898
|
]),
|
|
8909
8899
|
_: 1,
|
|
8910
8900
|
__: [0]
|
|
8911
|
-
}, 8, ["onClick"])) :
|
|
8912
|
-
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, {
|
|
8913
8903
|
key: 1,
|
|
8914
8904
|
type: "success",
|
|
8915
8905
|
secondary: "",
|
|
@@ -8924,11 +8914,11 @@ function U2(e, t, r, n, a, o) {
|
|
|
8924
8914
|
})
|
|
8925
8915
|
]),
|
|
8926
8916
|
default: k(() => [
|
|
8927
|
-
t[1] || (t[1] =
|
|
8917
|
+
t[1] || (t[1] = H(" 新增 ", -1))
|
|
8928
8918
|
]),
|
|
8929
8919
|
_: 1,
|
|
8930
8920
|
__: [1]
|
|
8931
|
-
}, 8, ["onClick"])) :
|
|
8921
|
+
}, 8, ["onClick"])) : W("", !0)
|
|
8932
8922
|
])
|
|
8933
8923
|
]),
|
|
8934
8924
|
t[4] || (t[4] = i("br", null, null, -1)),
|
|
@@ -8939,22 +8929,23 @@ function U2(e, t, r, n, a, o) {
|
|
|
8939
8929
|
class: "flex flex-col gap-2"
|
|
8940
8930
|
}, {
|
|
8941
8931
|
default: k(() => [
|
|
8942
|
-
e.tableShow ? (c(),
|
|
8932
|
+
e.tableShow ? (c(), A(h, {
|
|
8943
8933
|
key: 0,
|
|
8944
8934
|
ref: "tableRef",
|
|
8945
8935
|
columns: e.columns,
|
|
8946
8936
|
data: e.tableData.child,
|
|
8947
8937
|
pagination: !1,
|
|
8938
|
+
loading: e.loading,
|
|
8948
8939
|
summary: e.summaryData,
|
|
8949
8940
|
"scroll-x": e.tableScrollX,
|
|
8950
|
-
class:
|
|
8941
|
+
class: ue([e.message ? "error-border" : void 0, "uz-table-child"]),
|
|
8951
8942
|
size: "small",
|
|
8952
8943
|
"row-class-name": e.rowClassName,
|
|
8953
8944
|
"scrollbar-props": { size: 8, trigger: "hover" },
|
|
8954
8945
|
remote: ""
|
|
8955
|
-
}, 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),
|
|
8956
8947
|
i("div", V2, [
|
|
8957
|
-
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, {
|
|
8958
8949
|
key: 0,
|
|
8959
8950
|
type: "success",
|
|
8960
8951
|
secondary: "",
|
|
@@ -8969,12 +8960,12 @@ function U2(e, t, r, n, a, o) {
|
|
|
8969
8960
|
})
|
|
8970
8961
|
]),
|
|
8971
8962
|
default: k(() => [
|
|
8972
|
-
t[2] || (t[2] =
|
|
8963
|
+
t[2] || (t[2] = H(" 从数据新增 ", -1))
|
|
8973
8964
|
]),
|
|
8974
8965
|
_: 1,
|
|
8975
8966
|
__: [2]
|
|
8976
|
-
}, 8, ["onClick"])) :
|
|
8977
|
-
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, {
|
|
8978
8969
|
key: 1,
|
|
8979
8970
|
type: "success",
|
|
8980
8971
|
secondary: "",
|
|
@@ -8989,18 +8980,18 @@ function U2(e, t, r, n, a, o) {
|
|
|
8989
8980
|
})
|
|
8990
8981
|
]),
|
|
8991
8982
|
default: k(() => [
|
|
8992
|
-
t[3] || (t[3] =
|
|
8983
|
+
t[3] || (t[3] = H(" 新增 ", -1))
|
|
8993
8984
|
]),
|
|
8994
8985
|
_: 1,
|
|
8995
8986
|
__: [3]
|
|
8996
|
-
}, 8, ["onClick"])) :
|
|
8987
|
+
}, 8, ["onClick"])) : W("", !0)
|
|
8997
8988
|
])
|
|
8998
8989
|
]),
|
|
8999
8990
|
_: 1
|
|
9000
8991
|
}, 8, ["model"])
|
|
9001
8992
|
]);
|
|
9002
8993
|
}
|
|
9003
|
-
const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 =
|
|
8994
|
+
const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = le({
|
|
9004
8995
|
name: "UzTableQuestChild",
|
|
9005
8996
|
components: { NDataTable: La },
|
|
9006
8997
|
props: {
|
|
@@ -9013,7 +9004,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9013
9004
|
},
|
|
9014
9005
|
emits: ["update:value"],
|
|
9015
9006
|
setup(e) {
|
|
9016
|
-
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) => {
|
|
9017
9008
|
if (n.value = !0, e.item.params.link) {
|
|
9018
9009
|
const v = [];
|
|
9019
9010
|
e.item.params.columns.forEach((m) => {
|
|
@@ -9031,7 +9022,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9031
9022
|
}), u.value = l;
|
|
9032
9023
|
}, f = async (l) => {
|
|
9033
9024
|
const { tableColumns: v, tableWidth: m } = await er(
|
|
9034
|
-
|
|
9025
|
+
X(l),
|
|
9035
9026
|
!0,
|
|
9036
9027
|
2,
|
|
9037
9028
|
() => h.value,
|
|
@@ -9090,7 +9081,7 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9090
9081
|
}
|
|
9091
9082
|
return [];
|
|
9092
9083
|
};
|
|
9093
|
-
return
|
|
9084
|
+
return ce(
|
|
9094
9085
|
() => e.item.params.columns,
|
|
9095
9086
|
async (l) => {
|
|
9096
9087
|
await f(l);
|
|
@@ -9109,12 +9100,12 @@ const P2 = /* @__PURE__ */ _(z2, [["render", U2]]), E2 = ie({
|
|
|
9109
9100
|
}
|
|
9110
9101
|
]
|
|
9111
9102
|
});
|
|
9112
|
-
|
|
9103
|
+
D(l);
|
|
9113
9104
|
}
|
|
9114
9105
|
} catch {
|
|
9115
|
-
|
|
9106
|
+
D([]);
|
|
9116
9107
|
}
|
|
9117
|
-
}),
|
|
9108
|
+
}), ce(
|
|
9118
9109
|
() => p.value,
|
|
9119
9110
|
() => {
|
|
9120
9111
|
y();
|
|
@@ -9137,7 +9128,7 @@ function G2(e, t, r, n, a, o) {
|
|
|
9137
9128
|
const s = $("NDataTable"), u = $("UzTableDrawer");
|
|
9138
9129
|
return c(), w("div", L2, [
|
|
9139
9130
|
i("div", H2, [
|
|
9140
|
-
i("div", K2,
|
|
9131
|
+
i("div", K2, L(e.item.label), 1)
|
|
9141
9132
|
]),
|
|
9142
9133
|
t[1] || (t[1] = i("br", null, null, -1)),
|
|
9143
9134
|
T(s, {
|
|
@@ -9161,7 +9152,7 @@ function G2(e, t, r, n, a, o) {
|
|
|
9161
9152
|
}, null, 8, ["show", "link", "mainData"])
|
|
9162
9153
|
]);
|
|
9163
9154
|
}
|
|
9164
|
-
const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 =
|
|
9155
|
+
const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = le({
|
|
9165
9156
|
name: "UzTableDrawer",
|
|
9166
9157
|
components: {
|
|
9167
9158
|
NButton: ge,
|
|
@@ -9216,7 +9207,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9216
9207
|
drawerHeight: "96vh",
|
|
9217
9208
|
placement: "right",
|
|
9218
9209
|
summary: ""
|
|
9219
|
-
}), 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({
|
|
9220
9211
|
fetch: null,
|
|
9221
9212
|
when_open: null,
|
|
9222
9213
|
when_create: null,
|
|
@@ -9234,7 +9225,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9234
9225
|
const N = tt.parse(x.viewJson), { form: V } = await Zt(
|
|
9235
9226
|
bt(N.table)
|
|
9236
9227
|
);
|
|
9237
|
-
|
|
9228
|
+
D.value = V, s.value = ut(N.option), y.value = N.trigger, e.mainData && (a.value = e.mainData);
|
|
9238
9229
|
}).catch(() => {
|
|
9239
9230
|
f.value = !0;
|
|
9240
9231
|
});
|
|
@@ -9248,11 +9239,11 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9248
9239
|
if (y.value.when_before_save) {
|
|
9249
9240
|
const V = y.value.when_before_save, U = new Function("data", "POST", V);
|
|
9250
9241
|
try {
|
|
9251
|
-
x = await U(x, we).catch((
|
|
9252
|
-
b.value = 1, h.value =
|
|
9242
|
+
x = await U(x, we).catch((B) => {
|
|
9243
|
+
b.value = 1, h.value = B.message;
|
|
9253
9244
|
});
|
|
9254
|
-
} catch (
|
|
9255
|
-
b.value = 1, h.value =
|
|
9245
|
+
} catch (B) {
|
|
9246
|
+
b.value = 1, h.value = B.message;
|
|
9256
9247
|
return;
|
|
9257
9248
|
}
|
|
9258
9249
|
}
|
|
@@ -9268,17 +9259,17 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9268
9259
|
Ze({
|
|
9269
9260
|
tableId: N
|
|
9270
9261
|
}).then((U) => {
|
|
9271
|
-
const
|
|
9262
|
+
const B = e.link.split(".");
|
|
9272
9263
|
let q;
|
|
9273
9264
|
if (e.linkFn) {
|
|
9274
|
-
const
|
|
9275
|
-
q = new Function("sourceData",
|
|
9265
|
+
const j = e.linkFn;
|
|
9266
|
+
q = new Function("sourceData", j)(U);
|
|
9276
9267
|
} else
|
|
9277
|
-
q = U.map((
|
|
9278
|
-
label:
|
|
9279
|
-
value:
|
|
9280
|
-
disabled: (
|
|
9281
|
-
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
|
|
9282
9273
|
}));
|
|
9283
9274
|
p.value = !1, t("on-submit", q), g();
|
|
9284
9275
|
});
|
|
@@ -9289,7 +9280,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9289
9280
|
p.value = !1;
|
|
9290
9281
|
});
|
|
9291
9282
|
};
|
|
9292
|
-
return
|
|
9283
|
+
return ce(
|
|
9293
9284
|
() => e.show,
|
|
9294
9285
|
(d) => {
|
|
9295
9286
|
d && l();
|
|
@@ -9302,7 +9293,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9302
9293
|
spinShow: p,
|
|
9303
9294
|
spinMsg: h,
|
|
9304
9295
|
spinStatus: b,
|
|
9305
|
-
formData:
|
|
9296
|
+
formData: D,
|
|
9306
9297
|
formValues: a,
|
|
9307
9298
|
spinError: f,
|
|
9308
9299
|
isMobile: r,
|
|
@@ -9313,26 +9304,27 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = ie({
|
|
|
9313
9304
|
}
|
|
9314
9305
|
}), Q2 = { class: "flex gap-2 h-full" }, X2 = { class: "flex justify-between w-full" }, Y2 = { class: "flex gap-2" };
|
|
9315
9306
|
function Z2(e, t, r, n, a, o) {
|
|
9316
|
-
const s = $("NButton"), u = $("UzOcr"), p = $("UzForm"), h = $("UzSpin"), b = $("NSpin"),
|
|
9317
|
-
return c(),
|
|
9307
|
+
const s = $("NButton"), u = $("UzOcr"), p = $("UzForm"), h = $("UzSpin"), b = $("NSpin"), D = $("NDrawerContent"), y = $("NDrawer");
|
|
9308
|
+
return c(), A(y, {
|
|
9318
9309
|
show: e.drawer,
|
|
9319
9310
|
"onUpdate:show": t[2] || (t[2] = (f) => e.drawer = f),
|
|
9320
9311
|
width: e.isMobile ? "96%" : e.tableOption.drawerWidth,
|
|
9321
9312
|
height: e.isMobile ? "96%" : e.tableOption.drawerHeight,
|
|
9322
9313
|
placement: e.isMobile ? "bottom" : e.tableOption.placement,
|
|
9323
9314
|
"on-after-leave": e.drawerCancel,
|
|
9324
|
-
"
|
|
9325
|
-
"
|
|
9315
|
+
"auto-focus": !1,
|
|
9316
|
+
"close-on-esc": !1,
|
|
9317
|
+
"mask-closable": !1
|
|
9326
9318
|
}, {
|
|
9327
9319
|
default: k(() => [
|
|
9328
|
-
T(
|
|
9320
|
+
T(D, {
|
|
9329
9321
|
title: e.status === 1 ? e.$t("Common.edit") : e.status === 2 ? e.$t("Common.detail") : e.$t("Common.add"),
|
|
9330
9322
|
closable: ""
|
|
9331
|
-
},
|
|
9323
|
+
}, Re({
|
|
9332
9324
|
default: k(() => [
|
|
9333
9325
|
T(b, { show: e.spinError }, {
|
|
9334
9326
|
description: k(() => [
|
|
9335
|
-
i("div", null,
|
|
9327
|
+
i("div", null, L(e.$t("Notice.error")), 1),
|
|
9336
9328
|
t[4] || (t[4] = i("br", null, null, -1)),
|
|
9337
9329
|
T(s, {
|
|
9338
9330
|
type: "primary",
|
|
@@ -9340,7 +9332,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9340
9332
|
block: ""
|
|
9341
9333
|
}, {
|
|
9342
9334
|
default: k(() => t[3] || (t[3] = [
|
|
9343
|
-
|
|
9335
|
+
H("重试", -1)
|
|
9344
9336
|
])),
|
|
9345
9337
|
_: 1,
|
|
9346
9338
|
__: [3]
|
|
@@ -9348,7 +9340,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9348
9340
|
]),
|
|
9349
9341
|
default: k(() => [
|
|
9350
9342
|
i("div", Q2, [
|
|
9351
|
-
e.ocrShow ? (c(),
|
|
9343
|
+
e.ocrShow ? (c(), A(u, { key: 0 })) : W("", !0),
|
|
9352
9344
|
T(h, {
|
|
9353
9345
|
class: "flex-1",
|
|
9354
9346
|
value: e.spinShow,
|
|
@@ -9378,14 +9370,14 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9378
9370
|
fn: k(() => [
|
|
9379
9371
|
i("div", X2, [
|
|
9380
9372
|
i("div", null, [
|
|
9381
|
-
e.isMobile ?
|
|
9373
|
+
e.isMobile ? W("", !0) : (c(), A(s, {
|
|
9382
9374
|
key: 0,
|
|
9383
9375
|
type: "primary",
|
|
9384
9376
|
onClick: t[1] || (t[1] = (f) => e.ocrShow = !e.ocrShow),
|
|
9385
9377
|
tertiary: ""
|
|
9386
9378
|
}, {
|
|
9387
9379
|
default: k(() => [
|
|
9388
|
-
|
|
9380
|
+
H(L(e.$t("OCR.ocr")), 1)
|
|
9389
9381
|
]),
|
|
9390
9382
|
_: 1
|
|
9391
9383
|
}))
|
|
@@ -9397,7 +9389,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9397
9389
|
onClick: e.drawerCancel
|
|
9398
9390
|
}, {
|
|
9399
9391
|
default: k(() => [
|
|
9400
|
-
|
|
9392
|
+
H(L(e.$t("Common.cancel")), 1)
|
|
9401
9393
|
]),
|
|
9402
9394
|
_: 1
|
|
9403
9395
|
}, 8, ["loading", "onClick"]),
|
|
@@ -9407,7 +9399,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9407
9399
|
onClick: e.drawerSubmit
|
|
9408
9400
|
}, {
|
|
9409
9401
|
default: k(() => [
|
|
9410
|
-
|
|
9402
|
+
H(L(e.$t("Common.apply")), 1)
|
|
9411
9403
|
]),
|
|
9412
9404
|
_: 1
|
|
9413
9405
|
}, 8, ["loading", "onClick"])
|
|
@@ -9419,9 +9411,9 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9419
9411
|
]), 1032, ["title"])
|
|
9420
9412
|
]),
|
|
9421
9413
|
_: 1
|
|
9422
|
-
}, 8, ["show", "width", "height", "placement", "on-after-leave"
|
|
9414
|
+
}, 8, ["show", "width", "height", "placement", "on-after-leave"]);
|
|
9423
9415
|
}
|
|
9424
|
-
const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty =
|
|
9416
|
+
const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty = le({
|
|
9425
9417
|
name: "UzTableMobileList",
|
|
9426
9418
|
props: {
|
|
9427
9419
|
tableData: { type: Object, default: () => {
|
|
@@ -9438,13 +9430,13 @@ const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty = ie({
|
|
|
9438
9430
|
};
|
|
9439
9431
|
function ay(e, t, r, n, a, o) {
|
|
9440
9432
|
return c(), w("div", ry, [
|
|
9441
|
-
(c(!0), w(
|
|
9433
|
+
(c(!0), w(se, null, ke(e.tableColumns, (s) => (c(), w("div", {
|
|
9442
9434
|
key: s.key,
|
|
9443
|
-
class:
|
|
9435
|
+
class: ue(["flex overflow-hidden", s.lineBreak ? "flex-col" : ""]),
|
|
9444
9436
|
style: $e(`grid-column: span ${s.lineCol || 2} / span ${s.lineCol || 2}`)
|
|
9445
9437
|
}, [
|
|
9446
|
-
s.key === "action" ? (c(), w(
|
|
9447
|
-
s.render ? (c(),
|
|
9438
|
+
s.key === "action" ? (c(), w(se, { key: 0 }, [
|
|
9439
|
+
s.render ? (c(), A(go(
|
|
9448
9440
|
() => {
|
|
9449
9441
|
if (e.tableData)
|
|
9450
9442
|
return s.render(e.tableData, e.tableIndex);
|
|
@@ -9452,31 +9444,31 @@ function ay(e, t, r, n, a, o) {
|
|
|
9452
9444
|
), {
|
|
9453
9445
|
key: 0,
|
|
9454
9446
|
class: "mobile"
|
|
9455
|
-
})) :
|
|
9456
|
-
], 64)) : (c(), w(
|
|
9447
|
+
})) : W("", !0)
|
|
9448
|
+
], 64)) : (c(), w(se, { key: 1 }, [
|
|
9457
9449
|
i("div", {
|
|
9458
|
-
class:
|
|
9450
|
+
class: ue(["uz-table-mobile-group-title", s.lineBreak ? "line-break" : ""])
|
|
9459
9451
|
}, [
|
|
9460
|
-
i("div", null,
|
|
9452
|
+
i("div", null, L(typeof s.title == "string" ? s.title : s.title()), 1)
|
|
9461
9453
|
], 2),
|
|
9462
9454
|
i("div", {
|
|
9463
|
-
class:
|
|
9455
|
+
class: ue(["uz-table-mobile-group-content", s.lineBreak ? "line-break" : ""])
|
|
9464
9456
|
}, [
|
|
9465
|
-
s.render ? (c(),
|
|
9457
|
+
s.render ? (c(), A(go(
|
|
9466
9458
|
() => {
|
|
9467
9459
|
if (e.tableData)
|
|
9468
9460
|
return s.render(e.tableData, e.tableIndex);
|
|
9469
9461
|
}
|
|
9470
|
-
), { key: 0 })) : (c(), w("div", ny,
|
|
9462
|
+
), { key: 0 })) : (c(), w("div", ny, L(e.tableData[s.key] || "-"), 1))
|
|
9471
9463
|
], 2)
|
|
9472
9464
|
], 64))
|
|
9473
9465
|
], 6))), 128))
|
|
9474
9466
|
]);
|
|
9475
9467
|
}
|
|
9476
|
-
const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935"]]), sy =
|
|
9468
|
+
const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935"]]), sy = le({
|
|
9477
9469
|
name: "UzTableMobile",
|
|
9478
9470
|
components: {
|
|
9479
|
-
NCheckbox:
|
|
9471
|
+
NCheckbox: Ra,
|
|
9480
9472
|
NRadio: od,
|
|
9481
9473
|
NPagination: ad,
|
|
9482
9474
|
NCheckboxGroup: Aa,
|
|
@@ -9520,8 +9512,8 @@ const oy = /* @__PURE__ */ _(ty, [["render", ay], ["__scopeId", "data-v-1e15c935
|
|
|
9520
9512
|
class: "flex justify-center text-center pb-4"
|
|
9521
9513
|
};
|
|
9522
9514
|
function cy(e, t, r, n, a, o) {
|
|
9523
|
-
const s = $("UzTableMobileList"), u = $("NCheckbox"), p = $("NPagination"), h = $("NCheckboxGroup"), b = $("NRadio"),
|
|
9524
|
-
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, {
|
|
9525
9517
|
key: 0,
|
|
9526
9518
|
value: e.rowKeys,
|
|
9527
9519
|
"onUpdate:value": t[1] || (t[1] = (y) => e.rowKeys = y),
|
|
@@ -9533,7 +9525,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9533
9525
|
"on-update:value": e.checkChange
|
|
9534
9526
|
}, {
|
|
9535
9527
|
default: k(() => [
|
|
9536
|
-
(c(!0), w(
|
|
9528
|
+
(c(!0), w(se, null, ke(e.tableData, (y, f) => (c(), A(u, {
|
|
9537
9529
|
key: y.id,
|
|
9538
9530
|
class: "uz-com-card flex gap-2",
|
|
9539
9531
|
value: y.id
|
|
@@ -9556,10 +9548,10 @@ function cy(e, t, r, n, a, o) {
|
|
|
9556
9548
|
"on-update:page": e.pageChange,
|
|
9557
9549
|
size: "large"
|
|
9558
9550
|
}, null, 8, ["page", "item-count", "page-size", "on-update:page"])
|
|
9559
|
-
])) :
|
|
9551
|
+
])) : W("", !0)
|
|
9560
9552
|
]),
|
|
9561
9553
|
_: 1
|
|
9562
|
-
}, 8, ["value", "style", "on-update:value"])) : e.selection === 1 ? (c(),
|
|
9554
|
+
}, 8, ["value", "style", "on-update:value"])) : e.selection === 1 ? (c(), A(D, {
|
|
9563
9555
|
key: 1,
|
|
9564
9556
|
value: e.rowKeys[0],
|
|
9565
9557
|
"onUpdate:value": t[3] || (t[3] = (y) => e.rowKeys[0] = y),
|
|
@@ -9571,7 +9563,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9571
9563
|
"on-update:value": e.radioChange
|
|
9572
9564
|
}, {
|
|
9573
9565
|
default: k(() => [
|
|
9574
|
-
(c(!0), w(
|
|
9566
|
+
(c(!0), w(se, null, ke(e.tableData, (y, f) => (c(), A(b, {
|
|
9575
9567
|
key: y.id,
|
|
9576
9568
|
class: "uz-com-card flex gap-2",
|
|
9577
9569
|
value: y.id
|
|
@@ -9594,7 +9586,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9594
9586
|
"on-update:page": e.pageChange,
|
|
9595
9587
|
size: "large"
|
|
9596
9588
|
}, null, 8, ["page", "item-count", "page-size", "on-update:page"])
|
|
9597
|
-
])) :
|
|
9589
|
+
])) : W("", !0)
|
|
9598
9590
|
]),
|
|
9599
9591
|
_: 1
|
|
9600
9592
|
}, 8, ["value", "style", "on-update:value"])) : (c(), w("div", {
|
|
@@ -9605,7 +9597,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9605
9597
|
maxHeight: e.maxH
|
|
9606
9598
|
})
|
|
9607
9599
|
}, [
|
|
9608
|
-
(c(!0), w(
|
|
9600
|
+
(c(!0), w(se, null, ke(e.tableData, (y, f) => (c(), w("div", {
|
|
9609
9601
|
key: y.id,
|
|
9610
9602
|
class: "uz-com-card flex flex-col gap-2"
|
|
9611
9603
|
}, [
|
|
@@ -9624,7 +9616,7 @@ function cy(e, t, r, n, a, o) {
|
|
|
9624
9616
|
"on-update:page": e.pageChange,
|
|
9625
9617
|
size: "large"
|
|
9626
9618
|
}, null, 8, ["page", "item-count", "page-size", "on-update:page"])
|
|
9627
|
-
])) :
|
|
9619
|
+
])) : W("", !0)
|
|
9628
9620
|
], 4));
|
|
9629
9621
|
}
|
|
9630
9622
|
const dy = /* @__PURE__ */ _(sy, [["render", cy], ["__scopeId", "data-v-35aff9a4"]]), Y = ja({
|
|
@@ -9645,7 +9637,7 @@ function Ml(e) {
|
|
|
9645
9637
|
path: e.key,
|
|
9646
9638
|
closable: !1
|
|
9647
9639
|
};
|
|
9648
|
-
const t =
|
|
9640
|
+
const t = Oe(Y.cache, !1);
|
|
9649
9641
|
t ? (Y.active = t.active, t.thumbnail && (Y.thumbnail = t.thumbnail)) : Y.thumbnail = [
|
|
9650
9642
|
{
|
|
9651
9643
|
label: e.label,
|
|
@@ -9678,7 +9670,7 @@ function qc(e) {
|
|
|
9678
9670
|
function zc() {
|
|
9679
9671
|
Y.active = Y.page.path, Y.thumbnail = [Y.page], Ke.push(Y.page.path), Me(Y.cache, Y, 0);
|
|
9680
9672
|
}
|
|
9681
|
-
const py =
|
|
9673
|
+
const py = le({
|
|
9682
9674
|
name: "UzThumbnail",
|
|
9683
9675
|
components: {
|
|
9684
9676
|
NTabs: ld,
|
|
@@ -9709,7 +9701,7 @@ const py = ie({
|
|
|
9709
9701
|
};
|
|
9710
9702
|
return Ge(() => {
|
|
9711
9703
|
Ml(e.option), Y.active !== n.path && Sl(n.path, n.fullPath);
|
|
9712
|
-
}),
|
|
9704
|
+
}), ce(
|
|
9713
9705
|
() => n,
|
|
9714
9706
|
(u) => {
|
|
9715
9707
|
Y.active === n.path && Sl(u.path, u.fullPath);
|
|
@@ -9717,7 +9709,7 @@ const py = ie({
|
|
|
9717
9709
|
{
|
|
9718
9710
|
deep: !0
|
|
9719
9711
|
}
|
|
9720
|
-
),
|
|
9712
|
+
), ce(
|
|
9721
9713
|
() => e.option,
|
|
9722
9714
|
(u) => {
|
|
9723
9715
|
Ml(u);
|
|
@@ -9735,8 +9727,8 @@ const py = ie({
|
|
|
9735
9727
|
}
|
|
9736
9728
|
});
|
|
9737
9729
|
function hy(e, t, r, n, a, o) {
|
|
9738
|
-
const s = $("NTabPane"), u = $("Trash"), p = $("NIcon"), h = $("NButton"), b = $("NPopconfirm"),
|
|
9739
|
-
return c(),
|
|
9730
|
+
const s = $("NTabPane"), u = $("Trash"), p = $("NIcon"), h = $("NButton"), b = $("NPopconfirm"), D = $("NFlex"), y = $("NTabs");
|
|
9731
|
+
return c(), A(y, {
|
|
9740
9732
|
value: e.thumbnailStore.active,
|
|
9741
9733
|
type: "card",
|
|
9742
9734
|
closable: "",
|
|
@@ -9744,9 +9736,9 @@ function hy(e, t, r, n, a, o) {
|
|
|
9744
9736
|
"on-close": e.handleClose,
|
|
9745
9737
|
"on-update:value": e.handleChange,
|
|
9746
9738
|
class: "uz-thumbnail"
|
|
9747
|
-
},
|
|
9739
|
+
}, Re({
|
|
9748
9740
|
suffix: k(() => [
|
|
9749
|
-
T(
|
|
9741
|
+
T(D, null, {
|
|
9750
9742
|
default: k(() => [
|
|
9751
9743
|
T(b, { onPositiveClick: e.handleClear }, {
|
|
9752
9744
|
trigger: k(() => [
|
|
@@ -9763,7 +9755,7 @@ function hy(e, t, r, n, a, o) {
|
|
|
9763
9755
|
})
|
|
9764
9756
|
]),
|
|
9765
9757
|
default: k(() => [
|
|
9766
|
-
t[0] || (t[0] =
|
|
9758
|
+
t[0] || (t[0] = H(" 清空所有打开的标签? ", -1))
|
|
9767
9759
|
]),
|
|
9768
9760
|
_: 1,
|
|
9769
9761
|
__: [0]
|
|
@@ -9774,7 +9766,7 @@ function hy(e, t, r, n, a, o) {
|
|
|
9774
9766
|
})
|
|
9775
9767
|
]),
|
|
9776
9768
|
default: k(() => [
|
|
9777
|
-
(c(!0), w(
|
|
9769
|
+
(c(!0), w(se, null, ke(e.thumbnailStore.thumbnail, (f) => (c(), A(s, {
|
|
9778
9770
|
key: f.key,
|
|
9779
9771
|
name: f.key,
|
|
9780
9772
|
tab: f.label,
|
|
@@ -9842,7 +9834,7 @@ const by = {
|
|
|
9842
9834
|
Radio: {
|
|
9843
9835
|
boxShadow: "inset 0 0 0 1px rgb(var(--primary))"
|
|
9844
9836
|
}
|
|
9845
|
-
}, _y = We, xy =
|
|
9837
|
+
}, _y = We, xy = le({
|
|
9846
9838
|
name: "UzWrap",
|
|
9847
9839
|
components: {
|
|
9848
9840
|
NConfigProvider: id
|
|
@@ -9859,7 +9851,7 @@ const by = {
|
|
|
9859
9851
|
});
|
|
9860
9852
|
function Cy(e, t, r, n, a, o) {
|
|
9861
9853
|
const s = $("NConfigProvider");
|
|
9862
|
-
return c(),
|
|
9854
|
+
return c(), A(s, {
|
|
9863
9855
|
theme: e.commonStore.theme ? {
|
|
9864
9856
|
name: "darkTheme"
|
|
9865
9857
|
} : null,
|
|
@@ -9918,8 +9910,8 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9918
9910
|
ChartBubble: qi,
|
|
9919
9911
|
ChartDonut: zi,
|
|
9920
9912
|
ChartLine: Ai,
|
|
9921
|
-
ChartPie:
|
|
9922
|
-
ChartRadar:
|
|
9913
|
+
ChartPie: Ri,
|
|
9914
|
+
ChartRadar: Oi,
|
|
9923
9915
|
Checkbox: Bi,
|
|
9924
9916
|
CheckupList: Fi,
|
|
9925
9917
|
CircleMinus: Gu,
|
|
@@ -9990,9 +9982,9 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9990
9982
|
Report: qu,
|
|
9991
9983
|
ReportAnalytics: zu,
|
|
9992
9984
|
ReportMoney: Au,
|
|
9993
|
-
ReportSearch:
|
|
9985
|
+
ReportSearch: Ru,
|
|
9994
9986
|
Search: Kt,
|
|
9995
|
-
Settings:
|
|
9987
|
+
Settings: Ou,
|
|
9996
9988
|
SmartHome: Bu,
|
|
9997
9989
|
Sun: Fu,
|
|
9998
9990
|
TransferIn: Vu,
|
|
@@ -10104,8 +10096,8 @@ function Iy() {
|
|
|
10104
10096
|
if (typeof h != "string")
|
|
10105
10097
|
return h === 0 ? h : +h;
|
|
10106
10098
|
h = e(h);
|
|
10107
|
-
var
|
|
10108
|
-
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;
|
|
10109
10101
|
}
|
|
10110
10102
|
return ga = p, ga;
|
|
10111
10103
|
}
|
|
@@ -10115,43 +10107,43 @@ function Ac() {
|
|
|
10115
10107
|
zl = 1;
|
|
10116
10108
|
var e = Qe(), t = My(), r = Iy(), n = "Expected a function", a = Math.max, o = Math.min;
|
|
10117
10109
|
function s(u, p, h) {
|
|
10118
|
-
var b,
|
|
10110
|
+
var b, D, y, f, g, l, v = 0, m = !1, d = !1, x = !0;
|
|
10119
10111
|
if (typeof u != "function")
|
|
10120
10112
|
throw new TypeError(n);
|
|
10121
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);
|
|
10122
|
-
function N(
|
|
10123
|
-
var
|
|
10124
|
-
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;
|
|
10125
10117
|
}
|
|
10126
|
-
function V(
|
|
10127
|
-
return v =
|
|
10118
|
+
function V(F) {
|
|
10119
|
+
return v = F, g = setTimeout(q, p), m ? N(F) : f;
|
|
10128
10120
|
}
|
|
10129
|
-
function U(
|
|
10130
|
-
var
|
|
10131
|
-
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;
|
|
10132
10124
|
}
|
|
10133
|
-
function F
|
|
10134
|
-
var
|
|
10135
|
-
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;
|
|
10136
10128
|
}
|
|
10137
10129
|
function q() {
|
|
10138
|
-
var
|
|
10139
|
-
if (F
|
|
10140
|
-
return
|
|
10141
|
-
g = setTimeout(q, U(
|
|
10130
|
+
var F = t();
|
|
10131
|
+
if (B(F))
|
|
10132
|
+
return j(F);
|
|
10133
|
+
g = setTimeout(q, U(F));
|
|
10142
10134
|
}
|
|
10143
|
-
function
|
|
10144
|
-
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);
|
|
10145
10137
|
}
|
|
10146
10138
|
function C() {
|
|
10147
|
-
g !== void 0 && clearTimeout(g), v = 0, b = l =
|
|
10139
|
+
g !== void 0 && clearTimeout(g), v = 0, b = l = D = g = void 0;
|
|
10148
10140
|
}
|
|
10149
|
-
function
|
|
10150
|
-
return g === void 0 ? f :
|
|
10141
|
+
function I() {
|
|
10142
|
+
return g === void 0 ? f : j(t());
|
|
10151
10143
|
}
|
|
10152
|
-
function
|
|
10153
|
-
var
|
|
10154
|
-
if (b = arguments,
|
|
10144
|
+
function R() {
|
|
10145
|
+
var F = t(), z = B(F);
|
|
10146
|
+
if (b = arguments, D = this, l = F, z) {
|
|
10155
10147
|
if (g === void 0)
|
|
10156
10148
|
return V(l);
|
|
10157
10149
|
if (d)
|
|
@@ -10159,12 +10151,12 @@ function Ac() {
|
|
|
10159
10151
|
}
|
|
10160
10152
|
return g === void 0 && (g = setTimeout(q, p)), f;
|
|
10161
10153
|
}
|
|
10162
|
-
return
|
|
10154
|
+
return R.cancel = C, R.flush = I, R;
|
|
10163
10155
|
}
|
|
10164
10156
|
return ya = s, ya;
|
|
10165
10157
|
}
|
|
10166
10158
|
var Dy = Ac();
|
|
10167
|
-
const
|
|
10159
|
+
const Rc = /* @__PURE__ */ to(Dy);
|
|
10168
10160
|
let wo = 3840, mo = 2160;
|
|
10169
10161
|
const jy = ja({
|
|
10170
10162
|
scale: 1
|
|
@@ -10191,13 +10183,13 @@ function qy() {
|
|
|
10191
10183
|
jy.scale = e;
|
|
10192
10184
|
}
|
|
10193
10185
|
function hk() {
|
|
10194
|
-
const e =
|
|
10186
|
+
const e = Rc(qy, 200);
|
|
10195
10187
|
return e(), window.addEventListener("resize", e), () => {
|
|
10196
10188
|
wo = 3840, mo = 2160, window.removeEventListener("resize", e);
|
|
10197
10189
|
};
|
|
10198
10190
|
}
|
|
10199
10191
|
function wk(e, t = 1e3) {
|
|
10200
|
-
const r =
|
|
10192
|
+
const r = Rc(e, t);
|
|
10201
10193
|
return {
|
|
10202
10194
|
/**
|
|
10203
10195
|
* Invode and pass parameters to fn.
|
|
@@ -10234,10 +10226,10 @@ function zy() {
|
|
|
10234
10226
|
return ka = n, ka;
|
|
10235
10227
|
}
|
|
10236
10228
|
var Ay = zy();
|
|
10237
|
-
const
|
|
10229
|
+
const Ry = /* @__PURE__ */ to(Ay);
|
|
10238
10230
|
function mk(e, t = 1e3) {
|
|
10239
10231
|
const r = S(e), n = _t(
|
|
10240
|
-
() =>
|
|
10232
|
+
() => Ry((...a) => r.value([...a]), t)
|
|
10241
10233
|
);
|
|
10242
10234
|
return Vl(() => {
|
|
10243
10235
|
n.value.cancel();
|
|
@@ -10248,12 +10240,12 @@ function mk(e, t = 1e3) {
|
|
|
10248
10240
|
};
|
|
10249
10241
|
}
|
|
10250
10242
|
function vk(e, t) {
|
|
10251
|
-
return [S(
|
|
10243
|
+
return [S(Oe(e, t == null ? void 0 : t.defaultValue)), (o) => {
|
|
10252
10244
|
typeof o > "u" ? Ca(e) : Me(e, o, (t == null ? void 0 : t.expired) || "1 Day");
|
|
10253
10245
|
}];
|
|
10254
10246
|
}
|
|
10255
10247
|
function gk(e, t, r) {
|
|
10256
|
-
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 = () => {
|
|
10257
10249
|
_o(), clearInterval(s.value), s.value = null;
|
|
10258
10250
|
}, f = async () => {
|
|
10259
10251
|
if (!u.value) {
|
|
@@ -10262,10 +10254,10 @@ function gk(e, t, r) {
|
|
|
10262
10254
|
let x;
|
|
10263
10255
|
if (Array.isArray(t))
|
|
10264
10256
|
x = await new Promise((V, U) => {
|
|
10265
|
-
a.value = U, Promise.all(t.map((
|
|
10266
|
-
V(
|
|
10267
|
-
}).catch((
|
|
10268
|
-
U(
|
|
10257
|
+
a.value = U, Promise.all(t.map((B) => B.call(null))).then((B) => {
|
|
10258
|
+
V(B);
|
|
10259
|
+
}).catch((B) => {
|
|
10260
|
+
U(B);
|
|
10269
10261
|
});
|
|
10270
10262
|
});
|
|
10271
10263
|
else {
|
|
@@ -10278,7 +10270,7 @@ function gk(e, t, r) {
|
|
|
10278
10270
|
} catch (x) {
|
|
10279
10271
|
v(x), l(!1, "error"), b.value > 0 && (b.value = b.value - 1, setTimeout(() => {
|
|
10280
10272
|
f();
|
|
10281
|
-
},
|
|
10273
|
+
}, D.value));
|
|
10282
10274
|
}
|
|
10283
10275
|
}
|
|
10284
10276
|
}, g = (x) => {
|
|
@@ -10297,9 +10289,9 @@ function gk(e, t, r) {
|
|
|
10297
10289
|
f();
|
|
10298
10290
|
}, r == null ? void 0 : r.pollingInterval));
|
|
10299
10291
|
};
|
|
10300
|
-
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)
|
|
10301
10293
|
try {
|
|
10302
|
-
const x =
|
|
10294
|
+
const x = Oe(n, !1);
|
|
10303
10295
|
x && g(x);
|
|
10304
10296
|
} catch {
|
|
10305
10297
|
g(!1);
|
|
@@ -10318,8 +10310,8 @@ function gk(e, t, r) {
|
|
|
10318
10310
|
refetch: d
|
|
10319
10311
|
};
|
|
10320
10312
|
}
|
|
10321
|
-
const
|
|
10322
|
-
let
|
|
10313
|
+
const Oy = "0.0.10";
|
|
10314
|
+
let Oc;
|
|
10323
10315
|
async function Bc() {
|
|
10324
10316
|
const e = await fetch(
|
|
10325
10317
|
`${window.location.protocol}//${window.location.host}`,
|
|
@@ -10332,113 +10324,113 @@ async function Bc() {
|
|
|
10332
10324
|
}
|
|
10333
10325
|
async function By() {
|
|
10334
10326
|
const e = await Bc();
|
|
10335
|
-
|
|
10327
|
+
Oc !== e && jm(!0);
|
|
10336
10328
|
}
|
|
10337
10329
|
async function Fy() {
|
|
10338
|
-
|
|
10330
|
+
Oc = await Bc(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
10339
10331
|
By();
|
|
10340
10332
|
}, 60 * 1e3);
|
|
10341
10333
|
}
|
|
10342
10334
|
let Ia = "", Da;
|
|
10343
|
-
const
|
|
10335
|
+
const re = navigator.userAgent.toLocaleUpperCase(), Vy = () => {
|
|
10344
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/;
|
|
10345
|
-
if (e.test(
|
|
10346
|
-
if (t.test(
|
|
10347
|
-
if (r.test(
|
|
10348
|
-
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))
|
|
10349
10341
|
return "Windows 10";
|
|
10350
|
-
if (a.test(
|
|
10342
|
+
if (a.test(re))
|
|
10351
10343
|
return "Windows 11";
|
|
10352
|
-
if (o.test(
|
|
10353
|
-
const h = o.exec(
|
|
10344
|
+
if (o.test(re)) {
|
|
10345
|
+
const h = o.exec(re);
|
|
10354
10346
|
return `Android ${h ? h[0].split(" ")[1] : ""}`;
|
|
10355
10347
|
}
|
|
10356
|
-
if (s.test(
|
|
10357
|
-
const b = /OS [\d_]+/.exec(
|
|
10348
|
+
if (s.test(re)) {
|
|
10349
|
+
const b = /OS [\d_]+/.exec(re);
|
|
10358
10350
|
return `iPhone ${b ? b[0].split(" ")[1].replace(/_/g, ".") : ""}`;
|
|
10359
10351
|
}
|
|
10360
|
-
if (u.test(
|
|
10361
|
-
const b = /OS [\d_]+/.exec(
|
|
10352
|
+
if (u.test(re)) {
|
|
10353
|
+
const b = /OS [\d_]+/.exec(re);
|
|
10362
10354
|
return `iPad${b ? b[0].split(" ")[1].replace(/_/g, ".") : ""}`;
|
|
10363
10355
|
}
|
|
10364
|
-
if (p.test(
|
|
10365
|
-
const b = / [\d_]+/.exec(
|
|
10356
|
+
if (p.test(re)) {
|
|
10357
|
+
const b = / [\d_]+/.exec(re);
|
|
10366
10358
|
return `MAC ${b ? b[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
10367
10359
|
}
|
|
10368
10360
|
return "Other Platform";
|
|
10369
10361
|
}, Uy = () => {
|
|
10370
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.]+/;
|
|
10371
|
-
if (e.test(
|
|
10363
|
+
if (e.test(re) && s.test(re))
|
|
10372
10364
|
return "SogouIE";
|
|
10373
|
-
if (s.test(
|
|
10365
|
+
if (s.test(re))
|
|
10374
10366
|
return "SogouFast";
|
|
10375
|
-
if (u.test(
|
|
10367
|
+
if (u.test(re))
|
|
10376
10368
|
return "UC";
|
|
10377
|
-
if (p.test(
|
|
10369
|
+
if (p.test(re))
|
|
10378
10370
|
return "Android";
|
|
10379
|
-
if (o.test(
|
|
10371
|
+
if (o.test(re))
|
|
10380
10372
|
return "Opera";
|
|
10381
|
-
if (e.test(
|
|
10382
|
-
const h = e.exec(
|
|
10373
|
+
if (e.test(re)) {
|
|
10374
|
+
const h = e.exec(re);
|
|
10383
10375
|
return `IE ${h ? h[0].split("/")[1] : ""}`;
|
|
10384
10376
|
}
|
|
10385
|
-
if (t.test(
|
|
10386
|
-
const h = t.exec(
|
|
10377
|
+
if (t.test(re)) {
|
|
10378
|
+
const h = t.exec(re);
|
|
10387
10379
|
return `Edge ${h ? h[0].split("/")[1] : ""}`;
|
|
10388
10380
|
}
|
|
10389
|
-
if (n.test(
|
|
10390
|
-
const h = n.exec(
|
|
10381
|
+
if (n.test(re)) {
|
|
10382
|
+
const h = n.exec(re);
|
|
10391
10383
|
return `Chrome ${h ? h[0].split("/")[1] : ""}`;
|
|
10392
10384
|
}
|
|
10393
|
-
if (r.test(
|
|
10394
|
-
const h = r.exec(
|
|
10385
|
+
if (r.test(re)) {
|
|
10386
|
+
const h = r.exec(re);
|
|
10395
10387
|
return `Firefox ${h ? h[0].split("/")[1] : ""}`;
|
|
10396
10388
|
}
|
|
10397
|
-
if (a.test(
|
|
10398
|
-
const h = a.exec(
|
|
10389
|
+
if (a.test(re)) {
|
|
10390
|
+
const h = a.exec(re);
|
|
10399
10391
|
return `Safari ${h ? h[0].split("/")[1] : ""}`;
|
|
10400
10392
|
}
|
|
10401
10393
|
return "Others";
|
|
10402
10394
|
};
|
|
10403
|
-
function
|
|
10395
|
+
function Rl(e, t, r, n = !1) {
|
|
10404
10396
|
if (e !== void 0 && (t in e || n)) {
|
|
10405
10397
|
const a = e[t], o = r(a);
|
|
10406
10398
|
typeof o == "function" && (e[t] = o);
|
|
10407
10399
|
}
|
|
10408
10400
|
}
|
|
10409
|
-
function
|
|
10401
|
+
function Ol(e, t, r, n = !1) {
|
|
10410
10402
|
e.addEventListener(t, r, n);
|
|
10411
10403
|
}
|
|
10412
10404
|
function Py() {
|
|
10413
10405
|
if (!("XMLHttpRequest" in window))
|
|
10414
10406
|
return;
|
|
10415
10407
|
const e = XMLHttpRequest.prototype;
|
|
10416
|
-
|
|
10408
|
+
Rl(e, "open", (t) => function(...r) {
|
|
10417
10409
|
this.xhr = {
|
|
10418
10410
|
method: r[0].toUpperCase(),
|
|
10419
10411
|
url: r[1],
|
|
10420
10412
|
startTime: Date.now(),
|
|
10421
10413
|
type: "xhr"
|
|
10422
|
-
},
|
|
10423
|
-
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}`);
|
|
10424
10416
|
}), t.apply(this, r);
|
|
10425
|
-
}),
|
|
10417
|
+
}), Rl(e, "send", (t) => function(...r) {
|
|
10426
10418
|
const { url: n } = this.xhr;
|
|
10427
10419
|
this.ontimeout = function() {
|
|
10428
|
-
|
|
10429
|
-
},
|
|
10430
|
-
(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}`);
|
|
10431
10423
|
}), t.apply(this, r);
|
|
10432
10424
|
});
|
|
10433
10425
|
}
|
|
10434
10426
|
function Ey(e, t, r) {
|
|
10435
10427
|
t && (Ia = t, Da = r, Py(), e.config.errorHandler = (n) => {
|
|
10436
|
-
|
|
10428
|
+
Ot(2, window.location.href, n.message);
|
|
10437
10429
|
}, window.addEventListener("unhandledrejection", function(n) {
|
|
10438
10430
|
n.preventDefault();
|
|
10439
10431
|
}));
|
|
10440
10432
|
}
|
|
10441
|
-
const
|
|
10433
|
+
const Ot = (e, t, r) => {
|
|
10442
10434
|
const n = Da ? JSON.stringify(Da()) : "", a = {
|
|
10443
10435
|
type: e,
|
|
10444
10436
|
time: Date.now(),
|
|
@@ -10477,12 +10469,12 @@ function Ly({ components: e = [] } = {}) {
|
|
|
10477
10469
|
version: p = !0,
|
|
10478
10470
|
language: h = !1,
|
|
10479
10471
|
local: b = "zh-CN"
|
|
10480
|
-
} = o,
|
|
10481
|
-
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);
|
|
10482
10474
|
}
|
|
10483
10475
|
}
|
|
10484
10476
|
return {
|
|
10485
|
-
version:
|
|
10477
|
+
version: Oy,
|
|
10486
10478
|
install: n
|
|
10487
10479
|
};
|
|
10488
10480
|
}
|
|
@@ -10535,8 +10527,8 @@ export {
|
|
|
10535
10527
|
qi as ChartBubble,
|
|
10536
10528
|
zi as ChartDonut,
|
|
10537
10529
|
Ai as ChartLine,
|
|
10538
|
-
|
|
10539
|
-
|
|
10530
|
+
Ri as ChartPie,
|
|
10531
|
+
Oi as ChartRadar,
|
|
10540
10532
|
Bi as Checkbox,
|
|
10541
10533
|
Fi as CheckupList,
|
|
10542
10534
|
Gu as CircleMinus,
|
|
@@ -10610,9 +10602,9 @@ export {
|
|
|
10610
10602
|
qu as Report,
|
|
10611
10603
|
zu as ReportAnalytics,
|
|
10612
10604
|
Au as ReportMoney,
|
|
10613
|
-
|
|
10605
|
+
Ru as ReportSearch,
|
|
10614
10606
|
Kt as Search,
|
|
10615
|
-
|
|
10607
|
+
Ou as Settings,
|
|
10616
10608
|
Bu as SmartHome,
|
|
10617
10609
|
Fu as Sun,
|
|
10618
10610
|
Vu as TransferIn,
|
|
@@ -10663,7 +10655,7 @@ export {
|
|
|
10663
10655
|
Ye as fnFormatTime,
|
|
10664
10656
|
uk as fnFormatUnits,
|
|
10665
10657
|
ik as fnFullScreen,
|
|
10666
|
-
|
|
10658
|
+
Oe as fnGetStorage,
|
|
10667
10659
|
kt as fnGetTableData,
|
|
10668
10660
|
hk as fnListenerScale,
|
|
10669
10661
|
it as fnNotification,
|