@unizhen/ui 0.0.74 → 0.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/form/draggable.vue.d.ts +4 -4
- package/lib/components/form/index.d.ts +1 -1
- package/lib/components/form/index.vue.d.ts +4 -4
- package/lib/components/form/interface.d.ts +3 -3
- package/lib/components/form/timesPicker.vue.d.ts +0 -9
- package/lib/components/table/factory.d.ts +2 -2
- package/lib/ui.css +1 -1
- package/lib/ui.js +426 -440
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, openBlock as s, createElementBlock as f, createStaticVNode as R, createElementVNode as o, ref as C, watch as
|
|
1
|
+
import { defineComponent as oe, openBlock as s, createElementBlock as f, createStaticVNode as R, createElementVNode as o, ref as C, watch as le, nextTick as ye, h as ee, reactive as It, resolveComponent as $, createBlock as V, withCtx as m, toDisplayString as E, createVNode as x, computed as ze, normalizeStyle as ve, inject as Ne, normalizeClass as ae, createSlots as Me, createTextVNode as q, Fragment as se, renderList as ke, provide as Mt, resolveDirective as Sn, withDirectives as Le, createCommentVNode as W, onMounted as Re, mergeProps as zt, withModifiers as et, watchEffect as Dn, onBeforeUnmount as Ut, withKeys as Ua, renderSlot as ge, markRaw as ja, defineAsyncComponent as Oa, onUnmounted as Tn, vShow as Nt, resolveDynamicComponent as hn } from "vue";
|
|
2
2
|
import { createDiscreteApi as Aa, NPopover as Pe, NFlex as Bn, NButton as we, NPopconfirm as jt, NTooltip as Vn, NIcon as me, NDropdown as Ra, NCascader as Fn, NCheckboxGroup as In, NCheckbox as Ot, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as At, NFormItem as Rt, NForm as Pt, NSpin as rt, NInputGroup as Ht, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Et, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as On, NGridItem as An, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NTag as Ya, NEllipsis as Za, NSkeleton as En, NDataTable as qt, NRadioGroup as es, NPagination as ts, NRadio as ns, NTabPane as os, NTabs as rs, darkTheme as fe, NConfigProvider as as, dateZhCN as ss, zhCN as ls } from "naive-ui";
|
|
3
3
|
import Lt from "axios";
|
|
4
4
|
import { createRouter as is, createWebHistory as us, useRouter as cs, useRoute as at } from "vue-router";
|
|
@@ -2326,7 +2326,7 @@ const Xr = /* @__PURE__ */ w(mf, [["render", gf]]), Yr = /* @__PURE__ */ Object.
|
|
|
2326
2326
|
}
|
|
2327
2327
|
n.value = l;
|
|
2328
2328
|
};
|
|
2329
|
-
return c(e.icon),
|
|
2329
|
+
return c(e.icon), le(
|
|
2330
2330
|
() => e.icon,
|
|
2331
2331
|
(l) => {
|
|
2332
2332
|
c(l);
|
|
@@ -2534,9 +2534,9 @@ const Be = (e, t = "yyyy-MM-dd") => {
|
|
|
2534
2534
|
}, P0 = (e, t = 500) => {
|
|
2535
2535
|
const n = e;
|
|
2536
2536
|
let c;
|
|
2537
|
-
const l = function(...
|
|
2537
|
+
const l = function(...a) {
|
|
2538
2538
|
c || (c = setTimeout(function() {
|
|
2539
|
-
c && clearTimeout(c), c = void 0, n.apply(l,
|
|
2539
|
+
c && clearTimeout(c), c = void 0, n.apply(l, a);
|
|
2540
2540
|
}, t));
|
|
2541
2541
|
};
|
|
2542
2542
|
return l;
|
|
@@ -2603,11 +2603,11 @@ function oa(e, t) {
|
|
|
2603
2603
|
if (!jf.call(e, c))
|
|
2604
2604
|
continue;
|
|
2605
2605
|
const l = e[c], i = encodeURIComponent(c);
|
|
2606
|
-
let
|
|
2607
|
-
typeof l == "object" ?
|
|
2606
|
+
let a;
|
|
2607
|
+
typeof l == "object" ? a = oa(
|
|
2608
2608
|
l,
|
|
2609
2609
|
t ? t + "[" + i + "]" : i
|
|
2610
|
-
) :
|
|
2610
|
+
) : a = (t ? t + "[" + i + "]" : i) + "=" + encodeURIComponent(l), n.push(a);
|
|
2611
2611
|
}
|
|
2612
2612
|
return n.join("&");
|
|
2613
2613
|
}
|
|
@@ -2687,7 +2687,7 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2687
2687
|
data: t,
|
|
2688
2688
|
responseType: n,
|
|
2689
2689
|
timeout: c
|
|
2690
|
-
}).then((
|
|
2690
|
+
}).then((a) => (xe.delete(l), a)).catch(() => {
|
|
2691
2691
|
xe.delete(l);
|
|
2692
2692
|
});
|
|
2693
2693
|
return xe.set(l, i), i;
|
|
@@ -2704,7 +2704,7 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2704
2704
|
data: t,
|
|
2705
2705
|
responseType: n,
|
|
2706
2706
|
timeout: c
|
|
2707
|
-
}).then((
|
|
2707
|
+
}).then((a) => (xe.delete(l), Promise.resolve(a))).catch((a) => (xe.delete(l), Promise.reject(a)));
|
|
2708
2708
|
return xe.set(l, i), i;
|
|
2709
2709
|
}, L0 = (e, t = {}, n = "blob", c = 3e5) => De({
|
|
2710
2710
|
url: `${dt}${e}`,
|
|
@@ -2772,7 +2772,7 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2772
2772
|
class: l?.class ?? "",
|
|
2773
2773
|
disabled: typeof e.disabled == "function" ? e.disabled(t) : e.disabled || !1,
|
|
2774
2774
|
loading: t[e.key] ?? !1
|
|
2775
|
-
},
|
|
2775
|
+
}, a = {
|
|
2776
2776
|
default: () => typeof e.buttonText == "function" ? e.buttonText() : e.buttonText || null
|
|
2777
2777
|
};
|
|
2778
2778
|
if (!e.confirmText) {
|
|
@@ -2782,7 +2782,7 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
e.onClick && typeof e.onClick == "function" && (i.onClick = e.onClick.bind(void 0, t, n, c));
|
|
2784
2784
|
}
|
|
2785
|
-
return e.icon && (
|
|
2785
|
+
return e.icon && (a.icon = () => ee(
|
|
2786
2786
|
me,
|
|
2787
2787
|
{},
|
|
2788
2788
|
{
|
|
@@ -2796,14 +2796,14 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2796
2796
|
}
|
|
2797
2797
|
)
|
|
2798
2798
|
}
|
|
2799
|
-
)), ee(we, i,
|
|
2799
|
+
)), ee(we, i, a);
|
|
2800
2800
|
}, qf = (e, t, n, c, l) => {
|
|
2801
2801
|
const i = {
|
|
2802
2802
|
placement: "left"
|
|
2803
2803
|
};
|
|
2804
2804
|
if (typeof t.onClick == "string") {
|
|
2805
|
-
const
|
|
2806
|
-
i["on-positive-click"] = () => ra(
|
|
2805
|
+
const a = t.onClick;
|
|
2806
|
+
i["on-positive-click"] = () => ra(a, n, c, l);
|
|
2807
2807
|
} else
|
|
2808
2808
|
t.onClick && (i["on-positive-click"] = t.onClick.bind(
|
|
2809
2809
|
void 0,
|
|
@@ -2836,11 +2836,11 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2836
2836
|
hProps: l
|
|
2837
2837
|
}) => {
|
|
2838
2838
|
const i = [];
|
|
2839
|
-
return e.forEach((
|
|
2840
|
-
if (
|
|
2839
|
+
return e.forEach((a) => {
|
|
2840
|
+
if (a.type === "group") {
|
|
2841
2841
|
const p = [];
|
|
2842
|
-
|
|
2843
|
-
delete _.tooltipText, p.push(yn(_, t, n, c, l)), M <
|
|
2842
|
+
a.children && a.children.length > 0 && a.children.forEach((_, M) => {
|
|
2843
|
+
delete _.tooltipText, p.push(yn(_, t, n, c, l)), M < a.children.length - 1 && p.push(
|
|
2844
2844
|
ee(
|
|
2845
2845
|
"div",
|
|
2846
2846
|
{
|
|
@@ -2859,11 +2859,11 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2859
2859
|
trigger: () => aa(
|
|
2860
2860
|
// @ts-ignore
|
|
2861
2861
|
{
|
|
2862
|
-
icon:
|
|
2863
|
-
color:
|
|
2864
|
-
buttonText: typeof
|
|
2865
|
-
disabled: typeof
|
|
2866
|
-
loading: t[
|
|
2862
|
+
icon: a.icon,
|
|
2863
|
+
color: a.color || "default",
|
|
2864
|
+
buttonText: typeof a.buttonText == "function" ? a.buttonText() : a.buttonText,
|
|
2865
|
+
disabled: typeof a.disabled == "function" ? a.disabled(t) : a.disabled,
|
|
2866
|
+
loading: t[a.key] ?? !1
|
|
2867
2867
|
},
|
|
2868
2868
|
t,
|
|
2869
2869
|
n,
|
|
@@ -2884,9 +2884,9 @@ const dt = "/apiserver/", vn = () => {
|
|
|
2884
2884
|
)
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
|
-
if (
|
|
2887
|
+
if (a.type === "normal") {
|
|
2888
2888
|
const p = yn(
|
|
2889
|
-
|
|
2889
|
+
a,
|
|
2890
2890
|
t,
|
|
2891
2891
|
n,
|
|
2892
2892
|
c,
|
|
@@ -3040,7 +3040,7 @@ const dt = "/apiserver/", vn = () => {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
});
|
|
3042
3042
|
function Qf(e, t, n, c, l, i) {
|
|
3043
|
-
const
|
|
3043
|
+
const a = $("ArrowNarrowLeft"), p = $("NIcon"), _ = $("NButton");
|
|
3044
3044
|
return s(), V(_, {
|
|
3045
3045
|
quaternary: "",
|
|
3046
3046
|
onClick: e.back
|
|
@@ -3048,7 +3048,7 @@ function Qf(e, t, n, c, l, i) {
|
|
|
3048
3048
|
icon: m(() => [
|
|
3049
3049
|
x(p, null, {
|
|
3050
3050
|
default: m(() => [
|
|
3051
|
-
x(
|
|
3051
|
+
x(a)
|
|
3052
3052
|
]),
|
|
3053
3053
|
_: 1
|
|
3054
3054
|
})
|
|
@@ -3107,9 +3107,9 @@ const Jf = /* @__PURE__ */ w(Gf, [["render", Qf]]), ia = 120, Xf = 10, tt = ia /
|
|
|
3107
3107
|
text: "",
|
|
3108
3108
|
x: 0,
|
|
3109
3109
|
y: 0
|
|
3110
|
-
}), n = C(), c = C(), l = C(), i = ze(() => `rgba(${yt(e.color)},0.1)`),
|
|
3111
|
-
let
|
|
3112
|
-
return
|
|
3110
|
+
}), n = C(), c = C(), l = C(), i = ze(() => `rgba(${yt(e.color)},0.1)`), a = ze(() => `rgba(${yt(e.color).split(",").map((u) => {
|
|
3111
|
+
let r = Number(u) - 50;
|
|
3112
|
+
return r < 0 && (r = 0), r;
|
|
3113
3113
|
})},1)`), p = ze(() => `rgba(${yt(e.color)},1)`);
|
|
3114
3114
|
return {
|
|
3115
3115
|
popover: t,
|
|
@@ -3117,7 +3117,7 @@ const Jf = /* @__PURE__ */ w(Gf, [["render", Qf]]), ia = 120, Xf = 10, tt = ia /
|
|
|
3117
3117
|
strokeDasharray: n,
|
|
3118
3118
|
centerTransform: c,
|
|
3119
3119
|
centerTransformUnit: l,
|
|
3120
|
-
colorA:
|
|
3120
|
+
colorA: a,
|
|
3121
3121
|
colorB: p,
|
|
3122
3122
|
calculateCircle: () => {
|
|
3123
3123
|
let z = 314 - Number(e.circle) * Math.PI;
|
|
@@ -3482,8 +3482,8 @@ const yh = /* @__PURE__ */ w(eh, [["render", kh]]), bh = oe({
|
|
|
3482
3482
|
}
|
|
3483
3483
|
}), xh = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3484
3484
|
function $h(e, t, n, c, l, i) {
|
|
3485
|
-
const
|
|
3486
|
-
return e.item.input === "input" ? (s(), V(
|
|
3485
|
+
const a = $("NInput"), p = $("NDropdown"), _ = $("NInputNumber"), M = $("NDatePicker"), D = $("NSelect"), z = $("NCascader"), v = $("NColorPicker"), u = $("NCheckbox"), r = $("NCheckboxGroup"), k = $("NTimePicker"), d = $("UzFormItemTimesPicker"), g = $("NSwitch"), N = $("UzFormItemUpload");
|
|
3486
|
+
return e.item.input === "input" ? (s(), V(a, {
|
|
3487
3487
|
key: 0,
|
|
3488
3488
|
value: e.formValue[e.item.key],
|
|
3489
3489
|
"onUpdate:value": [
|
|
@@ -3518,7 +3518,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3518
3518
|
]),
|
|
3519
3519
|
key: "1"
|
|
3520
3520
|
} : void 0
|
|
3521
|
-
]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (s(), V(
|
|
3521
|
+
]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])) : e.item.input === "filling" ? (s(), V(a, {
|
|
3522
3522
|
key: 1,
|
|
3523
3523
|
value: String(e.formValue[e.item.key] ?? ""),
|
|
3524
3524
|
placeholder: e.showPlaceholder(e.item),
|
|
@@ -3537,7 +3537,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3537
3537
|
})
|
|
3538
3538
|
}, {
|
|
3539
3539
|
default: m(() => [
|
|
3540
|
-
x(
|
|
3540
|
+
x(a, {
|
|
3541
3541
|
value: e.formValue[e.item.key],
|
|
3542
3542
|
"onUpdate:value": [
|
|
3543
3543
|
t[2] || (t[2] = (h) => e.formValue[e.item.key] = h),
|
|
@@ -3731,7 +3731,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3731
3731
|
"rgba(208, 48, 80, 1)"
|
|
3732
3732
|
],
|
|
3733
3733
|
class: ae(e.checkClassReadonly())
|
|
3734
|
-
}, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (s(), V(
|
|
3734
|
+
}, null, 8, ["value", "disabled", "show", "class"])) : e.item.input === "checkbox" ? (s(), V(r, {
|
|
3735
3735
|
key: 9,
|
|
3736
3736
|
value: e.formValue[e.item.key],
|
|
3737
3737
|
"onUpdate:value": t[16] || (t[16] = (h) => e.formValue[e.item.key] = h),
|
|
@@ -3739,7 +3739,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3739
3739
|
}, {
|
|
3740
3740
|
default: m(() => [
|
|
3741
3741
|
o("div", xh, [
|
|
3742
|
-
(s(!0), f(
|
|
3742
|
+
(s(!0), f(se, null, ke(e.item.params.options, (h) => (s(), V(u, {
|
|
3743
3743
|
key: h.value,
|
|
3744
3744
|
label: h.label,
|
|
3745
3745
|
value: h.value
|
|
@@ -3763,7 +3763,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3763
3763
|
show: e.checkReadonlyShow(),
|
|
3764
3764
|
clearable: e.checkClearable(),
|
|
3765
3765
|
class: ae(e.checkClassReadonly())
|
|
3766
|
-
}, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "
|
|
3766
|
+
}, null, 8, ["value", "placeholder", "format", "disabled", "show", "clearable", "class"])) : e.item.input === "timesPicker" ? (s(), V(d, {
|
|
3767
3767
|
key: 11,
|
|
3768
3768
|
value: e.formValue[e.item.key],
|
|
3769
3769
|
"onUpdate:value": [
|
|
@@ -3773,9 +3773,9 @@ function $h(e, t, n, c, l, i) {
|
|
|
3773
3773
|
})
|
|
3774
3774
|
],
|
|
3775
3775
|
disabled: e.checkDisabled(),
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
}, null, 8, ["value", "disabled", "
|
|
3776
|
+
class: ae(e.checkClassReadonly()),
|
|
3777
|
+
title: e.formValue[e.item.key]
|
|
3778
|
+
}, null, 8, ["value", "disabled", "class", "title"])) : e.item.input === "switch" ? (s(), V(g, {
|
|
3779
3779
|
key: 12,
|
|
3780
3780
|
"checked-value": 1,
|
|
3781
3781
|
"unchecked-value": 0,
|
|
@@ -3809,7 +3809,7 @@ function $h(e, t, n, c, l, i) {
|
|
|
3809
3809
|
"onUpdate:value": t[23] || (t[23] = (h) => e.formValue[e.item.key] = h),
|
|
3810
3810
|
item: e.item,
|
|
3811
3811
|
status: e.status
|
|
3812
|
-
}, null, 8, ["value", "item", "status"])) : (s(), f(
|
|
3812
|
+
}, null, 8, ["value", "item", "status"])) : (s(), f(se, { key: 14 }, [], 64));
|
|
3813
3813
|
}
|
|
3814
3814
|
const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
3815
3815
|
name: "UzForm",
|
|
@@ -3872,11 +3872,11 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
3872
3872
|
}
|
|
3873
3873
|
},
|
|
3874
3874
|
setup(e, { expose: t }) {
|
|
3875
|
-
const n = Ne("userStore"), c = ze(() => pe.isMobile), l = C(), i = C(),
|
|
3875
|
+
const n = Ne("userStore"), c = ze(() => pe.isMobile), l = C(), i = C(), a = C({}), p = C([]), _ = C([]), M = C([]), D = C();
|
|
3876
3876
|
Mt("mainFormValue", {
|
|
3877
|
-
value: () =>
|
|
3877
|
+
value: () => a.value,
|
|
3878
3878
|
setValue: (F) => {
|
|
3879
|
-
|
|
3879
|
+
a.value = F;
|
|
3880
3880
|
}
|
|
3881
3881
|
});
|
|
3882
3882
|
const z = (F) => {
|
|
@@ -3894,9 +3894,9 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
3894
3894
|
const I = new Function("mainFormValue", b);
|
|
3895
3895
|
try {
|
|
3896
3896
|
return I({
|
|
3897
|
-
value: () =>
|
|
3897
|
+
value: () => a.value,
|
|
3898
3898
|
setValue: (O) => {
|
|
3899
|
-
|
|
3899
|
+
a.value = O;
|
|
3900
3900
|
}
|
|
3901
3901
|
});
|
|
3902
3902
|
} catch {
|
|
@@ -3920,26 +3920,26 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
3920
3920
|
}, u = (F, b = !1) => {
|
|
3921
3921
|
const I = Te(F).startOf("day").diff(Te().startOf("day"), "day");
|
|
3922
3922
|
return I >= 0 ? b ? "success" : `剩余${I}天` : b ? "error" : `逾期${Math.abs(I)}天`;
|
|
3923
|
-
},
|
|
3924
|
-
if (b.form.defaultValue && !
|
|
3923
|
+
}, r = (F) => (M.value = [], F.forEach((b) => {
|
|
3924
|
+
if (b.form.defaultValue && !a.value[b.key])
|
|
3925
3925
|
if (b.input === "number")
|
|
3926
|
-
|
|
3926
|
+
a.value[b.key] = Number(b.form.defaultValue);
|
|
3927
3927
|
else if (b.input === "select" && b.params.options?.length > 0) {
|
|
3928
|
-
b.form.defaultValue === "userId" ?
|
|
3928
|
+
b.form.defaultValue === "userId" ? a.value[b.key] = n.userId : a.value[b.key] = b.form.defaultValue;
|
|
3929
3929
|
const I = b.params.options.find(
|
|
3930
|
-
(O) => O.value ===
|
|
3930
|
+
(O) => O.value === a.value[b.key]
|
|
3931
3931
|
);
|
|
3932
|
-
I && (
|
|
3932
|
+
I && (a.value[`${b.key}Str`] = I.label);
|
|
3933
3933
|
} else if (b.input === "date")
|
|
3934
3934
|
if (b.params.type.indexOf("range") > -1)
|
|
3935
3935
|
switch (b.form.defaultValue) {
|
|
3936
3936
|
case "now":
|
|
3937
3937
|
{
|
|
3938
3938
|
const O = Te().startOf("day").valueOf(), B = Te().endOf("day").valueOf();
|
|
3939
|
-
|
|
3939
|
+
a.value[b.key] = [O, B], a.value[`${b.key}StartStr`] = v(
|
|
3940
3940
|
b.params.type,
|
|
3941
3941
|
O
|
|
3942
|
-
),
|
|
3942
|
+
), a.value[`${b.key}EndStr`] = v(
|
|
3943
3943
|
b.params.type,
|
|
3944
3944
|
B
|
|
3945
3945
|
);
|
|
@@ -3947,43 +3947,43 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
3947
3947
|
break;
|
|
3948
3948
|
default:
|
|
3949
3949
|
const I = Number(b.form.defaultValue);
|
|
3950
|
-
|
|
3950
|
+
a.value[b.key] = Number.isNaN(I) ? null : [I, I], a.value[`${b.key}StartStr`] = v(
|
|
3951
3951
|
b.params.type,
|
|
3952
3952
|
I
|
|
3953
|
-
),
|
|
3953
|
+
), a.value[`${b.key}EndStr`] = v(
|
|
3954
3954
|
b.params.type,
|
|
3955
3955
|
I
|
|
3956
3956
|
);
|
|
3957
3957
|
break;
|
|
3958
3958
|
}
|
|
3959
3959
|
else if (b.form.defaultValue === "now")
|
|
3960
|
-
|
|
3960
|
+
a.value[b.key] = Date.now(), a.value[`${b.key}Str`] = v(
|
|
3961
3961
|
b.params.type,
|
|
3962
3962
|
Date.now()
|
|
3963
3963
|
);
|
|
3964
3964
|
else {
|
|
3965
3965
|
const I = Number(b.form.defaultValue);
|
|
3966
|
-
|
|
3966
|
+
a.value[b.key] = Number.isNaN(I) ? null : I, a.value[`${b.key}Str`] = v(
|
|
3967
3967
|
b.params.type,
|
|
3968
3968
|
I
|
|
3969
3969
|
);
|
|
3970
3970
|
}
|
|
3971
3971
|
else
|
|
3972
|
-
|
|
3973
|
-
if ((b.input === "cascader" || b.input === "select") && b.params.multiple && M.value.push(b.key), b.input === "date" && b.params.type.indexOf("range") > -1 && M.value.push(b.key), b.input === "select" && b.params.multiple &&
|
|
3972
|
+
a.value[b.key] = b.form.defaultValue;
|
|
3973
|
+
if ((b.input === "cascader" || b.input === "select") && b.params.multiple && M.value.push(b.key), b.input === "date" && b.params.type.indexOf("range") > -1 && M.value.push(b.key), b.input === "select" && b.params.multiple && a.value[b.key] && typeof a.value[b.key] == "string")
|
|
3974
3974
|
try {
|
|
3975
|
-
|
|
3975
|
+
a.value[b.key] = JSON.parse(a.value[b.key]);
|
|
3976
3976
|
} catch {
|
|
3977
|
-
|
|
3977
|
+
a.value[b.key] = [];
|
|
3978
3978
|
}
|
|
3979
|
-
if (typeof
|
|
3979
|
+
if (typeof a.value[b.key] == "string" && b.input === "date" && b.params.type.indexOf("range") > -1)
|
|
3980
3980
|
try {
|
|
3981
|
-
|
|
3981
|
+
a.value[b.key] = JSON.parse(a.value[b.key]);
|
|
3982
3982
|
} catch {
|
|
3983
|
-
|
|
3983
|
+
a.value[b.key] = [];
|
|
3984
3984
|
}
|
|
3985
3985
|
}), F), k = (F) => {
|
|
3986
|
-
F || (F = G(e.items)), F && Array.isArray(F) && F.length > 0 ? p.value =
|
|
3986
|
+
F || (F = G(e.items)), F && Array.isArray(F) && F.length > 0 ? p.value = r(F) : p.value = [];
|
|
3987
3987
|
}, d = () => new Promise(async (F) => {
|
|
3988
3988
|
let b = 0;
|
|
3989
3989
|
for await (const I of _.value)
|
|
@@ -3999,7 +3999,7 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
3999
3999
|
if (I)
|
|
4000
4000
|
b();
|
|
4001
4001
|
else if (await d() === 0) {
|
|
4002
|
-
const B = G(
|
|
4002
|
+
const B = G(a.value);
|
|
4003
4003
|
M.value.forEach((A) => {
|
|
4004
4004
|
B[A] = JSON.stringify(B[A]);
|
|
4005
4005
|
}), Object.keys(B).forEach((A) => {
|
|
@@ -4038,19 +4038,10 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
4038
4038
|
}, L = (F) => {
|
|
4039
4039
|
D.value && (p.value[D.value].params.options = F);
|
|
4040
4040
|
};
|
|
4041
|
-
return t({ validate: g, restoreValidation: N, getValues: () =>
|
|
4042
|
-
() => e.items,
|
|
4043
|
-
(F) => {
|
|
4044
|
-
k(F);
|
|
4045
|
-
},
|
|
4046
|
-
{
|
|
4047
|
-
deep: !0,
|
|
4048
|
-
immediate: !0
|
|
4049
|
-
}
|
|
4050
|
-
), se(
|
|
4041
|
+
return t({ validate: g, restoreValidation: N, getValues: () => a.value }), le(
|
|
4051
4042
|
() => e.value,
|
|
4052
4043
|
(F, b) => {
|
|
4053
|
-
JSON.stringify(F) !== JSON.stringify(b) && (
|
|
4044
|
+
JSON.stringify(F) !== JSON.stringify(b) && (a.value = F, p.value.length === 0 && k(e.items));
|
|
4054
4045
|
},
|
|
4055
4046
|
{
|
|
4056
4047
|
deep: !0,
|
|
@@ -4059,7 +4050,7 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
4059
4050
|
), {
|
|
4060
4051
|
drawerRef: l,
|
|
4061
4052
|
formRef: i,
|
|
4062
|
-
formValue:
|
|
4053
|
+
formValue: a,
|
|
4063
4054
|
formItems: p,
|
|
4064
4055
|
childRef: _,
|
|
4065
4056
|
isMobile: c,
|
|
@@ -4072,8 +4063,8 @@ const Ee = /* @__PURE__ */ w(bh, [["render", $h]]), _h = oe({
|
|
|
4072
4063
|
}
|
|
4073
4064
|
}), Ch = ["onClick"];
|
|
4074
4065
|
function Mh(e, t, n, c, l, i) {
|
|
4075
|
-
const
|
|
4076
|
-
return s(), f(
|
|
4066
|
+
const a = $("Plus"), p = $("NIcon"), _ = $("UzTableChild"), M = $("UzTableQuestChild"), D = $("NDivider"), z = $("UzFormItem"), v = $("NFormItem"), u = $("NForm"), r = $("UzTableDrawer"), k = Sn("media");
|
|
4067
|
+
return s(), f(se, null, [
|
|
4077
4068
|
x(u, {
|
|
4078
4069
|
ref: "formRef",
|
|
4079
4070
|
class: "uz-w-full uz-h-full",
|
|
@@ -4087,7 +4078,7 @@ function Mh(e, t, n, c, l, i) {
|
|
|
4087
4078
|
Le((s(), f("div", {
|
|
4088
4079
|
class: ae(e.isMobile ? "" : "uz-form-grid")
|
|
4089
4080
|
}, [
|
|
4090
|
-
(s(!0), f(
|
|
4081
|
+
(s(!0), f(se, null, ke(e.formItems, (d, g) => (s(), f(se, { key: g }, [
|
|
4091
4082
|
e.itemShow(d) ? (s(), V(v, {
|
|
4092
4083
|
key: 0,
|
|
4093
4084
|
path: d.key,
|
|
@@ -4105,7 +4096,7 @@ function Mh(e, t, n, c, l, i) {
|
|
|
4105
4096
|
}, [
|
|
4106
4097
|
x(p, null, {
|
|
4107
4098
|
default: m(() => [
|
|
4108
|
-
x(
|
|
4099
|
+
x(a)
|
|
4109
4100
|
]),
|
|
4110
4101
|
_: 1
|
|
4111
4102
|
}),
|
|
@@ -4154,7 +4145,7 @@ function Mh(e, t, n, c, l, i) {
|
|
|
4154
4145
|
]),
|
|
4155
4146
|
_: 1
|
|
4156
4147
|
}, 8, ["model", "inline", "labelWidth", "labelAlign", "labelPlacement"]),
|
|
4157
|
-
x(
|
|
4148
|
+
x(r, {
|
|
4158
4149
|
ref: "drawerRef",
|
|
4159
4150
|
onOnSubmit: e.refreshOption
|
|
4160
4151
|
}, null, 8, ["onOnSubmit"])
|
|
@@ -4212,10 +4203,10 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
|
|
|
4212
4203
|
},
|
|
4213
4204
|
emits: ["update:value", "on-select", "on-change"],
|
|
4214
4205
|
setup(e, { expose: t, emit: n }) {
|
|
4215
|
-
const c = Ne("userStore"), l = C(), i = C({}),
|
|
4206
|
+
const c = Ne("userStore"), l = C(), i = C({}), a = C([]), p = C([-1, -1]), _ = (k, d, g) => {
|
|
4216
4207
|
p.value = [d, g ?? -1], n("on-select", k);
|
|
4217
4208
|
}, M = (k) => {
|
|
4218
|
-
k && (p.value[1] === -1 ?
|
|
4209
|
+
k && (p.value[1] === -1 ? a.value.splice(p.value[0], 1, k) : a.value[p.value[0]].params.children.splice(p.value[1], 1, k), v()), u();
|
|
4219
4210
|
}, D = (k) => (k.forEach((d) => {
|
|
4220
4211
|
if (d.form.defaultValue && !i.value[d.key])
|
|
4221
4212
|
if (d.input === "number")
|
|
@@ -4238,18 +4229,18 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
|
|
|
4238
4229
|
}), k), z = () => {
|
|
4239
4230
|
if (e.items && Array.isArray(e.items)) {
|
|
4240
4231
|
const k = G(e.items);
|
|
4241
|
-
|
|
4232
|
+
a.value = D(k);
|
|
4242
4233
|
}
|
|
4243
4234
|
}, v = () => {
|
|
4244
|
-
n("on-change", G(
|
|
4235
|
+
n("on-change", G(a.value));
|
|
4245
4236
|
}, u = () => {
|
|
4246
4237
|
p.value = [-1, -1], n("on-select", void 0);
|
|
4247
|
-
},
|
|
4248
|
-
p.value[1] === -1 ?
|
|
4238
|
+
}, r = () => {
|
|
4239
|
+
p.value[1] === -1 ? a.value.splice(p.value[0], 1) : a.value[p.value[0]].params.children.splice(p.value[1], 1), v(), u();
|
|
4249
4240
|
};
|
|
4250
4241
|
return Re(() => {
|
|
4251
4242
|
i.value = e.value, z();
|
|
4252
|
-
}), t({ changeItem: M }),
|
|
4243
|
+
}), t({ changeItem: M }), le(
|
|
4253
4244
|
() => e.items,
|
|
4254
4245
|
() => {
|
|
4255
4246
|
z();
|
|
@@ -4257,7 +4248,7 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
|
|
|
4257
4248
|
{
|
|
4258
4249
|
deep: !0
|
|
4259
4250
|
}
|
|
4260
|
-
),
|
|
4251
|
+
), le(
|
|
4261
4252
|
() => e.value,
|
|
4262
4253
|
(k) => {
|
|
4263
4254
|
i.value = k;
|
|
@@ -4268,12 +4259,12 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
|
|
|
4268
4259
|
), {
|
|
4269
4260
|
formRef: l,
|
|
4270
4261
|
formValue: i,
|
|
4271
|
-
formItems:
|
|
4262
|
+
formItems: a,
|
|
4272
4263
|
formItemIndex: p,
|
|
4273
4264
|
onDragChange: v,
|
|
4274
4265
|
onModeClick: _,
|
|
4275
4266
|
onCancel: u,
|
|
4276
|
-
onDelete:
|
|
4267
|
+
onDelete: r
|
|
4277
4268
|
};
|
|
4278
4269
|
}
|
|
4279
4270
|
}), Sh = {
|
|
@@ -4284,7 +4275,7 @@ const zh = /* @__PURE__ */ w(_h, [["render", Mh]]), Nh = oe({
|
|
|
4284
4275
|
class: "uz-form-item-add"
|
|
4285
4276
|
};
|
|
4286
4277
|
function Th(e, t, n, c, l, i) {
|
|
4287
|
-
const
|
|
4278
|
+
const a = $("Plus"), p = $("NIcon"), _ = $("Trash"), M = $("NButton"), D = $("UzTableChild"), z = $("UzFormItem"), v = $("NFormItem"), u = $("Draggable", !0), r = $("NDivider"), k = $("NForm");
|
|
4288
4279
|
return s(), V(k, {
|
|
4289
4280
|
ref: "formRef",
|
|
4290
4281
|
class: "uz-w-full uz-h-full",
|
|
@@ -4329,7 +4320,7 @@ function Th(e, t, n, c, l, i) {
|
|
|
4329
4320
|
d.source && d.form.createButton ? (s(), f("a", Sh, [
|
|
4330
4321
|
x(p, null, {
|
|
4331
4322
|
default: m(() => [
|
|
4332
|
-
x(
|
|
4323
|
+
x(a)
|
|
4333
4324
|
]),
|
|
4334
4325
|
_: 1
|
|
4335
4326
|
}),
|
|
@@ -4417,7 +4408,7 @@ function Th(e, t, n, c, l, i) {
|
|
|
4417
4408
|
}, 1032, ["label", "path", "rule", "class", "onClick", "style", "show-label", "show-feedback"]))
|
|
4418
4409
|
]),
|
|
4419
4410
|
_: 2
|
|
4420
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : d.input === "divider" ? (s(), V(
|
|
4411
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "onEnd", "onChange"])) : d.input === "divider" ? (s(), V(r, {
|
|
4421
4412
|
key: 3,
|
|
4422
4413
|
"title-placement": d.params.placement
|
|
4423
4414
|
}, {
|
|
@@ -4483,13 +4474,13 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
|
|
|
4483
4474
|
"update:value",
|
|
4484
4475
|
Ie.stringify(l.value.map((z) => z.url))
|
|
4485
4476
|
);
|
|
4486
|
-
},
|
|
4477
|
+
}, a = (z) => new Promise((v, u) => {
|
|
4487
4478
|
if (z.file.file)
|
|
4488
4479
|
if (c.value = !0, z.file.file.size > 10485760)
|
|
4489
4480
|
n.error({ content: "请上传小于10MB的文件", duration: 3e3 }), u();
|
|
4490
4481
|
else {
|
|
4491
|
-
const
|
|
4492
|
-
|
|
4482
|
+
const r = new FormData();
|
|
4483
|
+
r.append("file", z.file.file), r.append("name", z.file.name), Af("file/cos/upload", r).then((k) => {
|
|
4493
4484
|
l.value.push({
|
|
4494
4485
|
id: z.file.id,
|
|
4495
4486
|
name: z.file.name,
|
|
@@ -4517,12 +4508,12 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
|
|
|
4517
4508
|
try {
|
|
4518
4509
|
z = Ie.parse(z), l.value = z.map(
|
|
4519
4510
|
(v, u) => {
|
|
4520
|
-
const
|
|
4511
|
+
const r = decodeURIComponent(v), k = r.lastIndexOf("/"), d = r.substring(k + 1);
|
|
4521
4512
|
return {
|
|
4522
4513
|
id: String(u + 1),
|
|
4523
4514
|
name: d,
|
|
4524
4515
|
status: "finished",
|
|
4525
|
-
url:
|
|
4516
|
+
url: r
|
|
4526
4517
|
};
|
|
4527
4518
|
}
|
|
4528
4519
|
);
|
|
@@ -4536,7 +4527,7 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
|
|
|
4536
4527
|
};
|
|
4537
4528
|
return Re(() => {
|
|
4538
4529
|
M();
|
|
4539
|
-
}),
|
|
4530
|
+
}), le(
|
|
4540
4531
|
() => e.value,
|
|
4541
4532
|
() => {
|
|
4542
4533
|
M();
|
|
@@ -4544,7 +4535,7 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
|
|
|
4544
4535
|
), {
|
|
4545
4536
|
formValue: l,
|
|
4546
4537
|
show: c,
|
|
4547
|
-
beforeUpload:
|
|
4538
|
+
beforeUpload: a,
|
|
4548
4539
|
isAssetTypeAnImage: p,
|
|
4549
4540
|
doDelete: _,
|
|
4550
4541
|
openFile: D
|
|
@@ -4552,7 +4543,7 @@ const Bh = /* @__PURE__ */ w(Nh, [["render", Th]]), Vh = oe({
|
|
|
4552
4543
|
}
|
|
4553
4544
|
}), Fh = { class: "uz-form-upload-item-inner" }, Ih = ["title"], Uh = { key: 0 };
|
|
4554
4545
|
function jh(e, t, n, c, l, i) {
|
|
4555
|
-
const
|
|
4546
|
+
const a = $("CloudUpload"), p = $("NIcon"), _ = $("NUploadDragger"), M = $("NUpload"), D = $("PhotoOff"), z = $("NImage"), v = $("FileText"), u = $("Trash"), r = $("NButton"), k = $("NPopconfirm"), d = $("CloudDownload"), g = $("NSpin");
|
|
4556
4547
|
return s(), V(g, {
|
|
4557
4548
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
4558
4549
|
show: e.show
|
|
@@ -4574,7 +4565,7 @@ function jh(e, t, n, c, l, i) {
|
|
|
4574
4565
|
default: m(() => [
|
|
4575
4566
|
x(p, { size: "28" }, {
|
|
4576
4567
|
default: m(() => [
|
|
4577
|
-
x(
|
|
4568
|
+
x(a)
|
|
4578
4569
|
]),
|
|
4579
4570
|
_: 1
|
|
4580
4571
|
})
|
|
@@ -4584,7 +4575,7 @@ function jh(e, t, n, c, l, i) {
|
|
|
4584
4575
|
]),
|
|
4585
4576
|
_: 1
|
|
4586
4577
|
}, 8, ["accept", "max", "on-before-upload"])) : W("", !0),
|
|
4587
|
-
(s(!0), f(
|
|
4578
|
+
(s(!0), f(se, null, ke(e.formValue, (N, h) => (s(), f("div", {
|
|
4588
4579
|
key: h,
|
|
4589
4580
|
class: "uz-form-upload-item uz-w-20 uz-h-20"
|
|
4590
4581
|
}, [
|
|
@@ -4627,7 +4618,7 @@ function jh(e, t, n, c, l, i) {
|
|
|
4627
4618
|
onPositiveClick: (T) => e.doDelete(h)
|
|
4628
4619
|
}, {
|
|
4629
4620
|
trigger: m(() => [
|
|
4630
|
-
x(
|
|
4621
|
+
x(r, {
|
|
4631
4622
|
size: "small",
|
|
4632
4623
|
tertiary: ""
|
|
4633
4624
|
}, {
|
|
@@ -4647,7 +4638,7 @@ function jh(e, t, n, c, l, i) {
|
|
|
4647
4638
|
]),
|
|
4648
4639
|
_: 1
|
|
4649
4640
|
}, 8, ["onPositiveClick"]),
|
|
4650
|
-
x(
|
|
4641
|
+
x(r, {
|
|
4651
4642
|
tag: "a",
|
|
4652
4643
|
href: N.url,
|
|
4653
4644
|
download: "",
|
|
@@ -4683,13 +4674,13 @@ const Oh = /* @__PURE__ */ w(Vh, [["render", jh], ["__scopeId", "data-v-d4bd872d
|
|
|
4683
4674
|
},
|
|
4684
4675
|
setup(e) {
|
|
4685
4676
|
const t = C([]), n = (i) => {
|
|
4686
|
-
const
|
|
4677
|
+
const a = i.lastIndexOf("."), p = i.substring(a + 1);
|
|
4687
4678
|
return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
|
|
4688
4679
|
p.toLowerCase()
|
|
4689
4680
|
) !== -1;
|
|
4690
4681
|
}, c = (i) => {
|
|
4691
|
-
const
|
|
4692
|
-
return
|
|
4682
|
+
const a = decodeURIComponent(i), p = a.lastIndexOf("/");
|
|
4683
|
+
return a.substring(p + 1);
|
|
4693
4684
|
}, l = (i) => {
|
|
4694
4685
|
window.open(i);
|
|
4695
4686
|
};
|
|
@@ -4708,11 +4699,11 @@ const Oh = /* @__PURE__ */ w(Vh, [["render", jh], ["__scopeId", "data-v-d4bd872d
|
|
|
4708
4699
|
}
|
|
4709
4700
|
}), Rh = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
4710
4701
|
function Ph(e, t, n, c, l, i) {
|
|
4711
|
-
const
|
|
4702
|
+
const a = $("PhotoOff"), p = $("NIcon"), _ = $("NImage"), M = $("FileText"), D = $("NPopover"), z = $("NImageGroup");
|
|
4712
4703
|
return s(), V(z, null, {
|
|
4713
4704
|
default: m(() => [
|
|
4714
4705
|
o("div", Rh, [
|
|
4715
|
-
(s(!0), f(
|
|
4706
|
+
(s(!0), f(se, null, ke(e.imgs, (v) => (s(), f(se, null, [
|
|
4716
4707
|
e.isAssetTypeAnImage(v) ? (s(), V(_, {
|
|
4717
4708
|
key: 0,
|
|
4718
4709
|
width: "40",
|
|
@@ -4724,7 +4715,7 @@ function Ph(e, t, n, c, l, i) {
|
|
|
4724
4715
|
color: "lightGrey"
|
|
4725
4716
|
}, {
|
|
4726
4717
|
default: m(() => [
|
|
4727
|
-
x(
|
|
4718
|
+
x(a)
|
|
4728
4719
|
]),
|
|
4729
4720
|
_: 1
|
|
4730
4721
|
})
|
|
@@ -4772,40 +4763,38 @@ const ca = /* @__PURE__ */ w(Ah, [["render", Ph]]), Hh = oe({
|
|
|
4772
4763
|
disabled: {
|
|
4773
4764
|
type: Boolean,
|
|
4774
4765
|
default: !1
|
|
4775
|
-
},
|
|
4776
|
-
show: {
|
|
4777
|
-
type: Boolean,
|
|
4778
|
-
default: !1
|
|
4779
4766
|
}
|
|
4780
4767
|
},
|
|
4781
4768
|
emits: ["on-update:value"],
|
|
4782
4769
|
setup(e, { emit: t, expose: n }) {
|
|
4783
|
-
const c = C([]), l = C("00"), i = C("00"),
|
|
4784
|
-
l.value = "00", i.value = "00",
|
|
4770
|
+
const c = C([]), l = C("00"), i = C("00"), a = C("00"), p = () => {
|
|
4771
|
+
l.value = "00", i.value = "00", a.value = "00";
|
|
4785
4772
|
}, _ = () => {
|
|
4786
4773
|
const u = [];
|
|
4787
|
-
for (let
|
|
4774
|
+
for (let r = 0; r <= 100; r++)
|
|
4788
4775
|
u.push({
|
|
4789
|
-
label:
|
|
4790
|
-
value:
|
|
4776
|
+
label: r < 10 ? `0${r}` : String(r),
|
|
4777
|
+
value: r < 10 ? `0${r}` : String(r)
|
|
4791
4778
|
});
|
|
4792
4779
|
c.value = u;
|
|
4793
4780
|
}, M = () => {
|
|
4794
|
-
|
|
4781
|
+
t("on-update:value", `${l.value}:${i.value}:${a.value}`);
|
|
4795
4782
|
}, D = (u) => {
|
|
4796
4783
|
l.value = u, M();
|
|
4797
4784
|
}, z = (u) => {
|
|
4798
4785
|
i.value = u, M();
|
|
4799
4786
|
}, v = (u) => {
|
|
4800
|
-
|
|
4787
|
+
a.value = u, M();
|
|
4801
4788
|
};
|
|
4802
|
-
return n({ clearAll: p }),
|
|
4789
|
+
return n({ clearAll: p }), le(
|
|
4803
4790
|
() => e.value,
|
|
4804
4791
|
(u) => {
|
|
4805
|
-
if (u)
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4792
|
+
if (u)
|
|
4793
|
+
try {
|
|
4794
|
+
const r = u.split(":");
|
|
4795
|
+
l.value = r[0], i.value = r[1], a.value = r[2];
|
|
4796
|
+
} catch {
|
|
4797
|
+
}
|
|
4809
4798
|
},
|
|
4810
4799
|
{
|
|
4811
4800
|
immediate: !0
|
|
@@ -4814,7 +4803,7 @@ const ca = /* @__PURE__ */ w(Ah, [["render", Ph]]), Hh = oe({
|
|
|
4814
4803
|
times: c,
|
|
4815
4804
|
h: l,
|
|
4816
4805
|
m: i,
|
|
4817
|
-
s:
|
|
4806
|
+
s: a,
|
|
4818
4807
|
changeH: D,
|
|
4819
4808
|
changeM: z,
|
|
4820
4809
|
changeS: v
|
|
@@ -4822,50 +4811,47 @@ const ca = /* @__PURE__ */ w(Ah, [["render", Ph]]), Hh = oe({
|
|
|
4822
4811
|
}
|
|
4823
4812
|
}), Eh = { class: "times-picker" };
|
|
4824
4813
|
function qh(e, t, n, c, l, i) {
|
|
4825
|
-
const
|
|
4814
|
+
const a = $("NSelect");
|
|
4826
4815
|
return s(), f("div", Eh, [
|
|
4827
|
-
x(
|
|
4816
|
+
x(a, {
|
|
4828
4817
|
value: e.h,
|
|
4829
4818
|
options: e.times,
|
|
4830
4819
|
"consistent-menu-width": !1,
|
|
4831
4820
|
disabled: e.disabled,
|
|
4832
|
-
show: e.show,
|
|
4833
4821
|
"on-update:value": e.changeH
|
|
4834
4822
|
}, {
|
|
4835
4823
|
arrow: m(() => [...t[0] || (t[0] = [
|
|
4836
4824
|
q("时", -1)
|
|
4837
4825
|
])]),
|
|
4838
4826
|
_: 1
|
|
4839
|
-
}, 8, ["value", "options", "disabled", "
|
|
4840
|
-
x(
|
|
4827
|
+
}, 8, ["value", "options", "disabled", "on-update:value"]),
|
|
4828
|
+
x(a, {
|
|
4841
4829
|
value: e.m,
|
|
4842
4830
|
options: e.times,
|
|
4843
4831
|
"consistent-menu-width": !1,
|
|
4844
4832
|
disabled: e.disabled,
|
|
4845
|
-
show: e.show,
|
|
4846
4833
|
"on-update:value": e.changeM
|
|
4847
4834
|
}, {
|
|
4848
4835
|
arrow: m(() => [...t[1] || (t[1] = [
|
|
4849
4836
|
q("分", -1)
|
|
4850
4837
|
])]),
|
|
4851
4838
|
_: 1
|
|
4852
|
-
}, 8, ["value", "options", "disabled", "
|
|
4853
|
-
x(
|
|
4839
|
+
}, 8, ["value", "options", "disabled", "on-update:value"]),
|
|
4840
|
+
x(a, {
|
|
4854
4841
|
value: e.s,
|
|
4855
4842
|
options: e.times,
|
|
4856
4843
|
"consistent-menu-width": !1,
|
|
4857
4844
|
disabled: e.disabled,
|
|
4858
|
-
show: e.show,
|
|
4859
4845
|
"on-update:value": e.changeS
|
|
4860
4846
|
}, {
|
|
4861
4847
|
arrow: m(() => [...t[2] || (t[2] = [
|
|
4862
4848
|
q("秒", -1)
|
|
4863
4849
|
])]),
|
|
4864
4850
|
_: 1
|
|
4865
|
-
}, 8, ["value", "options", "disabled", "
|
|
4851
|
+
}, 8, ["value", "options", "disabled", "on-update:value"])
|
|
4866
4852
|
]);
|
|
4867
4853
|
}
|
|
4868
|
-
const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-
|
|
4854
|
+
const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-9e3bc606"]]), Kh = oe({
|
|
4869
4855
|
name: "UzCamera",
|
|
4870
4856
|
components: {
|
|
4871
4857
|
NButton: we,
|
|
@@ -4892,16 +4878,16 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-79a42e8c
|
|
|
4892
4878
|
emits: ["on-update:value"],
|
|
4893
4879
|
setup(e, { emit: t }) {
|
|
4894
4880
|
const n = C(), c = C(!1), l = C(!1), i = Et();
|
|
4895
|
-
let
|
|
4881
|
+
let a = null, p = null;
|
|
4896
4882
|
const _ = (k, d) => {
|
|
4897
|
-
|
|
4883
|
+
a.beginPath(), a.moveTo(k.x, k.y), a.lineTo(d.x, d.y), a.lineWidth = 2, a.strokeStyle = "green", a.stroke();
|
|
4898
4884
|
}, M = () => {
|
|
4899
4885
|
l.value && requestAnimationFrame(D);
|
|
4900
4886
|
}, D = () => {
|
|
4901
4887
|
const k = parseInt(String(e.width)), d = parseInt(String(e.height));
|
|
4902
4888
|
if (p && p.readyState === p.HAVE_ENOUGH_DATA) {
|
|
4903
|
-
p.width = k, p.height = d,
|
|
4904
|
-
const g =
|
|
4889
|
+
p.width = k, p.height = d, a.drawImage(n.value, 0, 0, k, d);
|
|
4890
|
+
const g = a.getImageData(0, 0, k, d);
|
|
4905
4891
|
try {
|
|
4906
4892
|
const N = hs(g.data, k, d);
|
|
4907
4893
|
if (N) {
|
|
@@ -4917,7 +4903,7 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-79a42e8c
|
|
|
4917
4903
|
}
|
|
4918
4904
|
M();
|
|
4919
4905
|
}, z = () => {
|
|
4920
|
-
n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((k) => k.stop()),
|
|
4906
|
+
n.value && n.value.srcObject && (n.value.srcObject.getTracks().forEach((k) => k.stop()), a = null, p = null, n.value.srcObject = null, n.value.src = null), l.value = !1, c.value = !1;
|
|
4921
4907
|
}, v = async (k) => {
|
|
4922
4908
|
n.value.srcObject !== void 0 ? n.value.srcObject = k : window.videoEl.mozSrcObject !== void 0 ? n.value.mozSrcObject = k : window.URL.createObjectURL ? n.value.src = window.URL.createObjectURL(k) : window.webkitURL ? n.value.src = window.webkitURL.createObjectURL(k) : n.value.src = k, n.value.play().then(M);
|
|
4923
4909
|
const g = k.getVideoTracks()[0];
|
|
@@ -4930,9 +4916,9 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-79a42e8c
|
|
|
4930
4916
|
} catch (d) {
|
|
4931
4917
|
ne(d);
|
|
4932
4918
|
}
|
|
4933
|
-
},
|
|
4919
|
+
}, r = () => {
|
|
4934
4920
|
c.value = !0, ye(async () => {
|
|
4935
|
-
navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (l.value = !0, p = document.getElementById("uz-scan-canvas"), p && (
|
|
4921
|
+
navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (l.value = !0, p = document.getElementById("uz-scan-canvas"), p && (a = p.getContext("2d", { willReadFrequently: !0 })), await navigator.mediaDevices.getUserMedia({
|
|
4936
4922
|
video: {
|
|
4937
4923
|
width: parseInt(String(e.width)),
|
|
4938
4924
|
height: parseInt(String(e.height)),
|
|
@@ -4950,16 +4936,16 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-79a42e8c
|
|
|
4950
4936
|
});
|
|
4951
4937
|
};
|
|
4952
4938
|
return Re(() => {
|
|
4953
|
-
e.mode === "video" &&
|
|
4939
|
+
e.mode === "video" && r();
|
|
4954
4940
|
}), Ut(() => {
|
|
4955
4941
|
z();
|
|
4956
|
-
}),
|
|
4957
|
-
e.mode === "video" && (z(),
|
|
4942
|
+
}), le([() => e.width, () => e.width], () => {
|
|
4943
|
+
e.mode === "video" && (z(), r());
|
|
4958
4944
|
}), {
|
|
4959
4945
|
videoRef: n,
|
|
4960
4946
|
modal: c,
|
|
4961
4947
|
loading: l,
|
|
4962
|
-
doScan:
|
|
4948
|
+
doScan: r,
|
|
4963
4949
|
closeAll: z
|
|
4964
4950
|
};
|
|
4965
4951
|
}
|
|
@@ -4968,9 +4954,9 @@ const Lh = /* @__PURE__ */ w(Hh, [["render", qh], ["__scopeId", "data-v-79a42e8c
|
|
|
4968
4954
|
playsInline: ""
|
|
4969
4955
|
};
|
|
4970
4956
|
function Xh(e, t, n, c, l, i) {
|
|
4971
|
-
const
|
|
4972
|
-
return s(), f(
|
|
4973
|
-
e.mode === "button" ? (s(), V(
|
|
4957
|
+
const a = $("NButton"), p = $("NModal");
|
|
4958
|
+
return s(), f(se, null, [
|
|
4959
|
+
e.mode === "button" ? (s(), V(a, {
|
|
4974
4960
|
key: 0,
|
|
4975
4961
|
type: "primary",
|
|
4976
4962
|
loading: e.loading,
|
|
@@ -5086,7 +5072,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5086
5072
|
},
|
|
5087
5073
|
emits: ["update:loading", "on-update:value"],
|
|
5088
5074
|
setup(e, { emit: t }) {
|
|
5089
|
-
const n = at(), c = C(), l = C([]), i = C(),
|
|
5075
|
+
const n = at(), c = C(), l = C([]), i = C(), a = C(!0), p = C(!1), _ = C(!1), M = C(0), D = C(0), z = C(0), v = C(1), u = C(""), r = C([]), k = C(!1), d = (b) => Array.isArray(b) && b.length > 0 || b ? b : !1, g = (b = !1) => {
|
|
5090
5076
|
if (e.loading)
|
|
5091
5077
|
return;
|
|
5092
5078
|
const I = G(c.value);
|
|
@@ -5109,7 +5095,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5109
5095
|
}, N = () => {
|
|
5110
5096
|
e.loading || (c.value = G(i.value), g());
|
|
5111
5097
|
}, h = () => {
|
|
5112
|
-
|
|
5098
|
+
a.value = !a.value;
|
|
5113
5099
|
}, T = (b) => k.value ? c.value && Array.isArray(c.value[u.value]) && c.value[u.value].includes(b.value) ? "primary" : "default" : c.value[u.value] === b.value ? "primary" : "default", L = (b) => {
|
|
5114
5100
|
const I = {};
|
|
5115
5101
|
let O = 0;
|
|
@@ -5120,7 +5106,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5120
5106
|
const j = B - O >= 0 ? B - O - 1 : -1;
|
|
5121
5107
|
D.value = j, z.value = j, M.value = O, O > B ? (p.value = !0, _.value = !0) : (p.value = !1, _.value = !1);
|
|
5122
5108
|
for (const S of b)
|
|
5123
|
-
if (S.search.tab && (
|
|
5109
|
+
if (S.search.tab && (r.value = S.params.options, k.value = S.params.multiple, u.value = S.key, S.search.show = !1), S.input === "input" && S.params.type === "textarea" && (S.params.type = "text"), S.search.show = S.search.show ?? !0, S.defaultValue)
|
|
5124
5110
|
if (S.input === "date")
|
|
5125
5111
|
if (S.params.type.indexOf("range") > -1)
|
|
5126
5112
|
switch (S.search.defaultValue) {
|
|
@@ -5147,7 +5133,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5147
5133
|
I[S.key] = "", (S.input === "number" || S.input === "date" || S.input === "time") && (I[S.key] = null), (S.input === "cascader" || S.input === "select") && (S.params.multiple ? I[S.key] = [] : I[S.key] = null);
|
|
5148
5134
|
return { data: b, values: I };
|
|
5149
5135
|
}, X = (b) => {
|
|
5150
|
-
if (
|
|
5136
|
+
if (r.value = [], b && b.length > 0) {
|
|
5151
5137
|
const { data: I, values: O } = L(G(b)), B = {}, j = e.id || n.params.id;
|
|
5152
5138
|
if (e.cache && j) {
|
|
5153
5139
|
const S = $e(`tables_${j}`, !1);
|
|
@@ -5170,7 +5156,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5170
5156
|
c.value[u.value] = b;
|
|
5171
5157
|
g(!0);
|
|
5172
5158
|
};
|
|
5173
|
-
return
|
|
5159
|
+
return le(
|
|
5174
5160
|
() => e.data,
|
|
5175
5161
|
(b) => {
|
|
5176
5162
|
X(b);
|
|
@@ -5184,10 +5170,10 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5184
5170
|
moreIndex: M,
|
|
5185
5171
|
offset: D,
|
|
5186
5172
|
offsetCache: z,
|
|
5187
|
-
collapsed:
|
|
5173
|
+
collapsed: a,
|
|
5188
5174
|
gridSpan: v,
|
|
5189
5175
|
tabKey: u,
|
|
5190
|
-
tabList:
|
|
5176
|
+
tabList: r,
|
|
5191
5177
|
doSearch: g,
|
|
5192
5178
|
clearAll: N,
|
|
5193
5179
|
showMore: h,
|
|
@@ -5203,7 +5189,7 @@ const Yh = /* @__PURE__ */ w(Kh, [["render", Xh]]), Zh = oe({
|
|
|
5203
5189
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
5204
5190
|
};
|
|
5205
5191
|
function o1(e, t, n, c, l, i) {
|
|
5206
|
-
const
|
|
5192
|
+
const a = $("NButton"), p = $("NButtonGroup"), _ = $("NGridItem"), M = $("NInputGroupLabel"), D = $("NPopover"), z = $("UzFormItem"), v = $("NInputGroup"), u = $("NGrid"), r = $("CaretDown"), k = $("NIcon"), d = $("Search"), g = $("Refresh"), N = Sn("media");
|
|
5207
5193
|
return s(), f("div", {
|
|
5208
5194
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
5209
5195
|
onKeyup: t[1] || (t[1] = Ua((h) => e.doSearch(!1), ["enter"]))
|
|
@@ -5226,7 +5212,7 @@ function o1(e, t, n, c, l, i) {
|
|
|
5226
5212
|
default: m(() => [
|
|
5227
5213
|
x(p, null, {
|
|
5228
5214
|
default: m(() => [
|
|
5229
|
-
(s(!0), f(
|
|
5215
|
+
(s(!0), f(se, null, ke(e.tabList, (h) => (s(), V(a, {
|
|
5230
5216
|
key: h.value,
|
|
5231
5217
|
type: e.tabButtonType(h),
|
|
5232
5218
|
secondary: "",
|
|
@@ -5247,7 +5233,7 @@ function o1(e, t, n, c, l, i) {
|
|
|
5247
5233
|
key: 1,
|
|
5248
5234
|
offset: e.offset
|
|
5249
5235
|
}, null, 8, ["offset"])) : W("", !0),
|
|
5250
|
-
(s(!0), f(
|
|
5236
|
+
(s(!0), f(se, null, ke(e.itemData, (h, T) => (s(), V(_, {
|
|
5251
5237
|
key: `${T}_${Date.now()}`,
|
|
5252
5238
|
span: h.search.show ? e.gridSpan : 0
|
|
5253
5239
|
}, {
|
|
@@ -5291,7 +5277,7 @@ function o1(e, t, n, c, l, i) {
|
|
|
5291
5277
|
])
|
|
5292
5278
|
])) : W("", !0),
|
|
5293
5279
|
e.enableHeader ? (s(), f("div", n1, [
|
|
5294
|
-
e.more ? (s(), V(
|
|
5280
|
+
e.more ? (s(), V(a, {
|
|
5295
5281
|
key: 0,
|
|
5296
5282
|
quaternary: "",
|
|
5297
5283
|
onClick: e.showMore
|
|
@@ -5301,14 +5287,14 @@ function o1(e, t, n, c, l, i) {
|
|
|
5301
5287
|
class: ae(["uz-search-more", e.collapsed ? void 0 : "uz-search-rotate"])
|
|
5302
5288
|
}, {
|
|
5303
5289
|
default: m(() => [
|
|
5304
|
-
x(
|
|
5290
|
+
x(r)
|
|
5305
5291
|
]),
|
|
5306
5292
|
_: 1
|
|
5307
5293
|
}, 8, ["class"])
|
|
5308
5294
|
]),
|
|
5309
5295
|
_: 1
|
|
5310
5296
|
}, 8, ["onClick"])) : W("", !0),
|
|
5311
|
-
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), V(
|
|
5297
|
+
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), V(a, {
|
|
5312
5298
|
key: 1,
|
|
5313
5299
|
loading: e.loading,
|
|
5314
5300
|
secondary: "",
|
|
@@ -5330,7 +5316,7 @@ function o1(e, t, n, c, l, i) {
|
|
|
5330
5316
|
]),
|
|
5331
5317
|
_: 1
|
|
5332
5318
|
}, 8, ["loading"])) : W("", !0),
|
|
5333
|
-
e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (s(), V(
|
|
5319
|
+
e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (s(), V(a, {
|
|
5334
5320
|
key: 2,
|
|
5335
5321
|
loading: e.loading,
|
|
5336
5322
|
secondary: "",
|
|
@@ -5389,12 +5375,12 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
|
|
|
5389
5375
|
},
|
|
5390
5376
|
emits: ["update:loading", "on-update:value"],
|
|
5391
5377
|
setup(e, { emit: t }) {
|
|
5392
|
-
const n = at(), c = C([]), l = C(!1), i = C(),
|
|
5378
|
+
const n = at(), c = C([]), l = C(!1), i = C(), a = C(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, _ = (v = !1) => {
|
|
5393
5379
|
if (e.loading)
|
|
5394
5380
|
return;
|
|
5395
5381
|
const u = G(i.value);
|
|
5396
5382
|
!v && u.query && (u.query.page = 1);
|
|
5397
|
-
const
|
|
5383
|
+
const r = [];
|
|
5398
5384
|
c.value.forEach((k) => {
|
|
5399
5385
|
if (u[k.key]) {
|
|
5400
5386
|
const d = p(u[k.key]);
|
|
@@ -5405,31 +5391,31 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
|
|
|
5405
5391
|
range: !1,
|
|
5406
5392
|
fuzzy: k.search.fuzzy
|
|
5407
5393
|
};
|
|
5408
|
-
(k.input === "cascader" || k.input === "select") && k.params.multiple && (g.range = !0), k.input === "date" && k.params.type.indexOf("range") > -1 && (g.range = !0, g.time = !0),
|
|
5394
|
+
(k.input === "cascader" || k.input === "select") && k.params.multiple && (g.range = !0), k.input === "date" && k.params.type.indexOf("range") > -1 && (g.range = !0, g.time = !0), r.push(g);
|
|
5409
5395
|
}
|
|
5410
5396
|
}
|
|
5411
|
-
}), l.value = !1, t("update:loading", !0), t("on-update:value",
|
|
5397
|
+
}), l.value = !1, t("update:loading", !0), t("on-update:value", r);
|
|
5412
5398
|
}, M = () => {
|
|
5413
|
-
e.loading || (i.value = G(
|
|
5399
|
+
e.loading || (i.value = G(a.value), _());
|
|
5414
5400
|
}, D = (v) => {
|
|
5415
5401
|
const u = {};
|
|
5416
|
-
for (const
|
|
5417
|
-
|
|
5402
|
+
for (const r of v)
|
|
5403
|
+
r.input === "input" && r.params.type === "textarea" && (r.params.type = "text"), r.search.show = r.search.show ?? !0, r.defaultValue ? u[r.key] = r.defaultValue : (u[r.key] = "", (r.input === "number" || r.input === "date" || r.input === "time") && (u[r.key] = null), r.input === "cascader" && (r.params.multiple ? u[r.key] = [] : u[r.key] = null), r.input === "select" && (r.params.multiple ? u[r.key] = [] : u[r.key] = null));
|
|
5418
5404
|
return { data: v, values: u };
|
|
5419
5405
|
}, z = (v) => {
|
|
5420
5406
|
if (v && v.length > 0) {
|
|
5421
|
-
const { data: u, values:
|
|
5407
|
+
const { data: u, values: r } = D(G(v)), k = {}, d = e.id || n.params.id;
|
|
5422
5408
|
if (e.cache && d) {
|
|
5423
5409
|
const g = $e(`tables_${d}`, !1);
|
|
5424
5410
|
g && g.params.forEach((N) => {
|
|
5425
5411
|
k[N.key] = N.value;
|
|
5426
5412
|
});
|
|
5427
5413
|
}
|
|
5428
|
-
c.value = u, i.value = G({ ...
|
|
5414
|
+
c.value = u, i.value = G({ ...r, ...k }), a.value = G(r);
|
|
5429
5415
|
}
|
|
5430
5416
|
_(!0);
|
|
5431
5417
|
};
|
|
5432
|
-
return
|
|
5418
|
+
return le(
|
|
5433
5419
|
() => e.data,
|
|
5434
5420
|
(v) => {
|
|
5435
5421
|
z(v);
|
|
@@ -5444,8 +5430,8 @@ const r1 = /* @__PURE__ */ w(Zh, [["render", o1]]), a1 = oe({
|
|
|
5444
5430
|
}
|
|
5445
5431
|
}), s1 = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, l1 = { class: "uz-flex uz-gap-2" }, i1 = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
5446
5432
|
function u1(e, t, n, c, l, i) {
|
|
5447
|
-
const
|
|
5448
|
-
return s(), f(
|
|
5433
|
+
const a = $("Search"), p = $("NIcon"), _ = $("NButton"), M = $("NInputGroupLabel"), D = $("UzFormItem"), z = $("NInputGroup"), v = $("NGridItem"), u = $("NGrid"), r = $("Refresh"), k = $("NDrawerContent"), d = $("NDrawer");
|
|
5434
|
+
return s(), f(se, null, [
|
|
5449
5435
|
o("div", s1, [
|
|
5450
5436
|
ge(e.$slots, "header"),
|
|
5451
5437
|
o("div", l1, [
|
|
@@ -5457,7 +5443,7 @@ function u1(e, t, n, c, l, i) {
|
|
|
5457
5443
|
icon: m(() => [
|
|
5458
5444
|
x(p, { size: "18" }, {
|
|
5459
5445
|
default: m(() => [
|
|
5460
|
-
x(
|
|
5446
|
+
x(a)
|
|
5461
5447
|
]),
|
|
5462
5448
|
_: 1
|
|
5463
5449
|
})
|
|
@@ -5495,7 +5481,7 @@ function u1(e, t, n, c, l, i) {
|
|
|
5495
5481
|
icon: m(() => [
|
|
5496
5482
|
x(p, null, {
|
|
5497
5483
|
default: m(() => [
|
|
5498
|
-
x(
|
|
5484
|
+
x(r)
|
|
5499
5485
|
]),
|
|
5500
5486
|
_: 1
|
|
5501
5487
|
})
|
|
@@ -5515,7 +5501,7 @@ function u1(e, t, n, c, l, i) {
|
|
|
5515
5501
|
icon: m(() => [
|
|
5516
5502
|
x(p, { size: "18" }, {
|
|
5517
5503
|
default: m(() => [
|
|
5518
|
-
x(
|
|
5504
|
+
x(a)
|
|
5519
5505
|
]),
|
|
5520
5506
|
_: 1
|
|
5521
5507
|
})
|
|
@@ -5534,7 +5520,7 @@ function u1(e, t, n, c, l, i) {
|
|
|
5534
5520
|
cols: "1"
|
|
5535
5521
|
}, {
|
|
5536
5522
|
default: m(() => [
|
|
5537
|
-
(s(!0), f(
|
|
5523
|
+
(s(!0), f(se, null, ke(e.itemData, (g, N) => (s(), V(v, {
|
|
5538
5524
|
key: `${N}_${Date.now()}`,
|
|
5539
5525
|
span: g.search.show ? 1 : 0
|
|
5540
5526
|
}, {
|
|
@@ -5605,8 +5591,8 @@ const tn = () => new Promise((e) => {
|
|
|
5605
5591
|
const l = document.createElement("script");
|
|
5606
5592
|
l.src = "https://spark-1355708620.cos.ap-shanghai.myqcloud.com/static/city.js?callback=cityFn", n?.appendChild(l);
|
|
5607
5593
|
const i = setInterval(() => {
|
|
5608
|
-
const
|
|
5609
|
-
|
|
5594
|
+
const a = window.localStorage.getItem("city");
|
|
5595
|
+
a && (clearInterval(i), e(JSON.parse(a)));
|
|
5610
5596
|
}, 500);
|
|
5611
5597
|
}
|
|
5612
5598
|
}), h1 = async (e, t, n) => {
|
|
@@ -5621,10 +5607,10 @@ const tn = () => new Promise((e) => {
|
|
|
5621
5607
|
);
|
|
5622
5608
|
if (l[0] === "city") {
|
|
5623
5609
|
const i = await tn();
|
|
5624
|
-
return (
|
|
5610
|
+
return (a) => ee(
|
|
5625
5611
|
Fn,
|
|
5626
5612
|
{
|
|
5627
|
-
value:
|
|
5613
|
+
value: a[e],
|
|
5628
5614
|
options: i,
|
|
5629
5615
|
disabled: !0,
|
|
5630
5616
|
checkStrategy: "all",
|
|
@@ -5634,9 +5620,9 @@ const tn = () => new Promise((e) => {
|
|
|
5634
5620
|
);
|
|
5635
5621
|
}
|
|
5636
5622
|
if (l[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
5637
|
-
const i = c[0].replace("modules:", ""),
|
|
5638
|
-
if (
|
|
5639
|
-
const p = n[
|
|
5623
|
+
const i = c[0].replace("modules:", ""), a = Object.keys(n).find((p) => p.includes(i));
|
|
5624
|
+
if (a) {
|
|
5625
|
+
const p = n[a], _ = ja(Oa(p));
|
|
5640
5626
|
return (M) => ee(_, { rowData: M }, {});
|
|
5641
5627
|
} else
|
|
5642
5628
|
return ee("div", "Module not found");
|
|
@@ -5644,19 +5630,19 @@ const tn = () => new Promise((e) => {
|
|
|
5644
5630
|
} else
|
|
5645
5631
|
try {
|
|
5646
5632
|
const l = t, i = new Function("rowData", "rowIndex", "h", l);
|
|
5647
|
-
return (
|
|
5633
|
+
return (a, p) => i(a, p, ee);
|
|
5648
5634
|
} catch (l) {
|
|
5649
5635
|
ne(l);
|
|
5650
5636
|
}
|
|
5651
5637
|
}
|
|
5652
5638
|
return t && typeof t == "function" ? (c, l) => t(c, l, ee) : "";
|
|
5653
5639
|
}, Tt = (e, t, n) => t.map((l) => {
|
|
5654
|
-
let i = [],
|
|
5640
|
+
let i = [], a = l.id;
|
|
5655
5641
|
return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach((_) => {
|
|
5656
5642
|
i.push(l[_]);
|
|
5657
|
-
}), i = ps(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (
|
|
5643
|
+
}), i = ps(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (a = l[e.params.valueKey]), {
|
|
5658
5644
|
label: i,
|
|
5659
|
-
value:
|
|
5645
|
+
value: a,
|
|
5660
5646
|
disabled: l?.status === "0",
|
|
5661
5647
|
params: l
|
|
5662
5648
|
};
|
|
@@ -5674,12 +5660,12 @@ async function We(e) {
|
|
|
5674
5660
|
const c = $e(`dynamicTable_${e}`, !1);
|
|
5675
5661
|
c && Fe.has(`dynamicTable_${e}`) ? t(c) : Pf(e).then((l) => {
|
|
5676
5662
|
!c || c && c.createTime !== l.createTime ? Rf(e).then((i) => {
|
|
5677
|
-
const
|
|
5663
|
+
const a = {
|
|
5678
5664
|
createTime: i.createTime,
|
|
5679
5665
|
tableTitle: i.tableTitle,
|
|
5680
5666
|
viewJson: i.viewJson
|
|
5681
5667
|
};
|
|
5682
|
-
be(`dynamicTable_${e}`,
|
|
5668
|
+
be(`dynamicTable_${e}`, a, 0), Fe.set(`dynamicTable_${e}`, !0), _f("tables_"), t(i);
|
|
5683
5669
|
}).catch(() => {
|
|
5684
5670
|
n();
|
|
5685
5671
|
}) : (Fe.set(`dynamicTable_${e}`, !0), t(c));
|
|
@@ -5878,19 +5864,19 @@ const m1 = (e) => e.map((t) => {
|
|
|
5878
5864
|
};
|
|
5879
5865
|
function pt(e, t, n) {
|
|
5880
5866
|
return new Promise(async (c, l) => {
|
|
5881
|
-
const i = [],
|
|
5867
|
+
const i = [], a = {}, p = {}, _ = {}, M = [], D = [], z = G(e), v = [];
|
|
5882
5868
|
for (const u of z)
|
|
5883
5869
|
u.input === "group" ? v.push(...u.params.children) : v.push(u);
|
|
5884
5870
|
for await (const u of v) {
|
|
5885
5871
|
if (u.source) {
|
|
5886
|
-
const { sourceData:
|
|
5887
|
-
if (
|
|
5872
|
+
const { sourceData: r, n: k } = await Bt(u.source);
|
|
5873
|
+
if (r && Array.isArray(r)) {
|
|
5888
5874
|
let d = [];
|
|
5889
5875
|
if (u.sourceFn) {
|
|
5890
5876
|
const g = u.sourceFn;
|
|
5891
|
-
d = new Function("sourceData", g)(
|
|
5877
|
+
d = new Function("sourceData", g)(r);
|
|
5892
5878
|
} else
|
|
5893
|
-
d = Tt(u,
|
|
5879
|
+
d = Tt(u, r, k);
|
|
5894
5880
|
if (u.params.options = d, u.form.backfill && t)
|
|
5895
5881
|
if (Array.isArray(t))
|
|
5896
5882
|
t.forEach((g, N) => {
|
|
@@ -5905,37 +5891,37 @@ function pt(e, t, n) {
|
|
|
5905
5891
|
}
|
|
5906
5892
|
if (u.input === "filling")
|
|
5907
5893
|
try {
|
|
5908
|
-
Array.isArray(t) ? t.forEach((
|
|
5894
|
+
Array.isArray(t) ? t.forEach((r, k) => {
|
|
5909
5895
|
D[k] || (D[k] = {}), M[k] && M[k][u.params.parentKey] && M[k][u.params.parentKey][u.key] ? (D[k][u.key] = M[k][u.params.parentKey][u.key], M[k][u.params.parentKey][`${u.key}Str`] && (D[k][`${u.key}Str`] = M[k][u.params.parentKey][`${u.key}Str`])) : (D[k][u.key] = null, D[k][`${u.key}Str`] = null);
|
|
5910
5896
|
}) : p[u.params.parentKey] && p[u.params.parentKey][u.key] ? (_[u.key] = p[u.params.parentKey][u.key], p[u.params.parentKey][`${u.key}Str`] && (_[`${u.key}Str`] = p[u.params.parentKey][`${u.key}Str`])) : (_[u.key] = null, _[`${u.key}Str`] = null);
|
|
5911
|
-
} catch (
|
|
5912
|
-
ne(
|
|
5897
|
+
} catch (r) {
|
|
5898
|
+
ne(r);
|
|
5913
5899
|
}
|
|
5914
5900
|
if (u.input !== "divider" && u.form.rule && u.form.rule.validator && typeof u.form.rule.validator == "string")
|
|
5915
5901
|
try {
|
|
5916
|
-
const
|
|
5902
|
+
const r = u.form.rule.validator, k = new Function("rule", "value", "index", "formValues", r);
|
|
5917
5903
|
u.form.rule.validator = (d, g) => k(d, g, null, n);
|
|
5918
|
-
} catch (
|
|
5919
|
-
ne(
|
|
5904
|
+
} catch (r) {
|
|
5905
|
+
ne(r);
|
|
5920
5906
|
}
|
|
5921
5907
|
if (u.input === "date" && u.params.isDateDisabled && typeof u.params.isDateDisabled == "string")
|
|
5922
5908
|
try {
|
|
5923
|
-
const
|
|
5909
|
+
const r = u.params.isDateDisabled, k = new Function("ts", "detail", r);
|
|
5924
5910
|
u.params.isDateDisabled = (d, g) => k(d, g);
|
|
5925
|
-
} catch (
|
|
5926
|
-
ne(
|
|
5911
|
+
} catch (r) {
|
|
5912
|
+
ne(r);
|
|
5927
5913
|
}
|
|
5928
5914
|
if (u.input === "cascader" && u.table.render === "[city]") {
|
|
5929
|
-
const
|
|
5930
|
-
u.params.options =
|
|
5915
|
+
const r = await tn();
|
|
5916
|
+
u.params.options = r;
|
|
5931
5917
|
}
|
|
5932
5918
|
if (u.input === "subTable" && u.params.link) {
|
|
5933
|
-
const
|
|
5919
|
+
const r = await We(u.params.link).catch(() => {
|
|
5934
5920
|
l();
|
|
5935
5921
|
});
|
|
5936
|
-
if (
|
|
5922
|
+
if (r)
|
|
5937
5923
|
try {
|
|
5938
|
-
const k = Ie.parse(
|
|
5924
|
+
const k = Ie.parse(r.viewJson), d = Ge(k.table);
|
|
5939
5925
|
d.forEach((N) => {
|
|
5940
5926
|
N.table.sorter = !1;
|
|
5941
5927
|
});
|
|
@@ -5974,11 +5960,11 @@ function pt(e, t, n) {
|
|
|
5974
5960
|
sourceFn: u.sourceFn,
|
|
5975
5961
|
params: u.params,
|
|
5976
5962
|
form: u.form
|
|
5977
|
-
}), u.input === "date" || u.input === "number" || u.input === "time" ?
|
|
5963
|
+
}), u.input === "date" || u.input === "number" || u.input === "time" ? a[u.key] = Number(u.form.defaultValue) || 0 : a[u.key] = u.form.defaultValue;
|
|
5978
5964
|
}
|
|
5979
5965
|
c({
|
|
5980
5966
|
form: i,
|
|
5981
|
-
formDefaultValue:
|
|
5967
|
+
formDefaultValue: a,
|
|
5982
5968
|
fillingDefaultValue: _,
|
|
5983
5969
|
fillingDefaultArray: D
|
|
5984
5970
|
});
|
|
@@ -5987,28 +5973,28 @@ function pt(e, t, n) {
|
|
|
5987
5973
|
async function ft(e, t = !1, n = 0, c = () => {
|
|
5988
5974
|
}, l = {}) {
|
|
5989
5975
|
let i = 0;
|
|
5990
|
-
const
|
|
5976
|
+
const a = [], p = [];
|
|
5991
5977
|
let _ = [];
|
|
5992
5978
|
const M = G(e), D = [], z = [];
|
|
5993
|
-
for (const
|
|
5994
|
-
|
|
5995
|
-
title:
|
|
5996
|
-
key:
|
|
5997
|
-
...
|
|
5998
|
-
children:
|
|
5999
|
-
})) : (D.push(
|
|
5979
|
+
for (const r of M)
|
|
5980
|
+
r.input === "group" ? (D.push(...r.params.children), z.push({
|
|
5981
|
+
title: r.label,
|
|
5982
|
+
key: r.key,
|
|
5983
|
+
...r.table,
|
|
5984
|
+
children: r.params.children.map((k) => k.key)
|
|
5985
|
+
})) : (D.push(r), z.push(r.key));
|
|
6000
5986
|
const v = [];
|
|
6001
|
-
e.forEach((
|
|
6002
|
-
(
|
|
5987
|
+
e.forEach((r) => {
|
|
5988
|
+
(r.input === "cascader" || r.input === "select") && r.params.multiple && v.push(r.key);
|
|
6003
5989
|
});
|
|
6004
|
-
for await (const
|
|
6005
|
-
if (
|
|
6006
|
-
const { sourceData: d, n: g } = await Bt(
|
|
5990
|
+
for await (const r of D) {
|
|
5991
|
+
if (r.source && !r.table.render && r.input !== "auto") {
|
|
5992
|
+
const { sourceData: d, n: g } = await Bt(r.source);
|
|
6007
5993
|
if (d && Array.isArray(d))
|
|
6008
|
-
if (
|
|
5994
|
+
if (r.table.render = (N) => {
|
|
6009
5995
|
if (d && d.length > 0)
|
|
6010
|
-
if (v.includes(
|
|
6011
|
-
const h = [], T = JSON.parse(N[
|
|
5996
|
+
if (v.includes(r.key) && N[r.key]) {
|
|
5997
|
+
const h = [], T = JSON.parse(N[r.key]);
|
|
6012
5998
|
if (T)
|
|
6013
5999
|
for (const L of T) {
|
|
6014
6000
|
const X = d.find(
|
|
@@ -6031,65 +6017,65 @@ async function ft(e, t = !1, n = 0, c = () => {
|
|
|
6031
6017
|
const h = d.find(
|
|
6032
6018
|
(T) => (
|
|
6033
6019
|
// @ts-ignore
|
|
6034
|
-
(
|
|
6020
|
+
(r.params?.valueKey ? (
|
|
6035
6021
|
// @ts-ignore
|
|
6036
|
-
T[
|
|
6037
|
-
) : String(T.id)) === N[
|
|
6022
|
+
T[r.params?.valueKey]
|
|
6023
|
+
) : String(T.id)) === N[r.key]
|
|
6038
6024
|
)
|
|
6039
6025
|
);
|
|
6040
6026
|
if (h)
|
|
6041
6027
|
return h[g[1]];
|
|
6042
6028
|
}
|
|
6043
|
-
},
|
|
6044
|
-
const N =
|
|
6045
|
-
|
|
6029
|
+
}, r.sourceFn) {
|
|
6030
|
+
const N = r.sourceFn, h = new Function("sourceData", N);
|
|
6031
|
+
r.params.options = h(d);
|
|
6046
6032
|
} else
|
|
6047
|
-
|
|
6033
|
+
r.params.options = Tt(r, d, g);
|
|
6048
6034
|
}
|
|
6049
|
-
if (!
|
|
6050
|
-
const g =
|
|
6051
|
-
(N) => N.value === d[
|
|
6035
|
+
if (!r.table.render && !r.source && r.input === "select" && typeof r.params.options != "function" && r.params.options.length > 0 && (r.table.render = (d) => {
|
|
6036
|
+
const g = r.params.options.find(
|
|
6037
|
+
(N) => N.value === d[r.key]
|
|
6052
6038
|
);
|
|
6053
6039
|
if (g)
|
|
6054
6040
|
return g.label;
|
|
6055
|
-
}),
|
|
6041
|
+
}), r.input === "cascader" && r.table.render === "[city]") {
|
|
6056
6042
|
const d = await tn();
|
|
6057
|
-
|
|
6043
|
+
r.params.options = d;
|
|
6058
6044
|
}
|
|
6059
|
-
|
|
6045
|
+
r.input === "upload" && !r.table.render && (r.table.render = function(d) {
|
|
6060
6046
|
return ee(
|
|
6061
6047
|
ca,
|
|
6062
6048
|
{
|
|
6063
|
-
value: d[
|
|
6049
|
+
value: d[r.key]
|
|
6064
6050
|
},
|
|
6065
6051
|
{
|
|
6066
6052
|
default: () => null
|
|
6067
6053
|
}
|
|
6068
6054
|
);
|
|
6069
|
-
}), i = i + Number(
|
|
6055
|
+
}), i = i + Number(r.table.width || 140);
|
|
6070
6056
|
let k = {
|
|
6071
|
-
input:
|
|
6072
|
-
title:
|
|
6073
|
-
key:
|
|
6074
|
-
params:
|
|
6075
|
-
form:
|
|
6057
|
+
input: r.input,
|
|
6058
|
+
title: r.label,
|
|
6059
|
+
key: r.key,
|
|
6060
|
+
params: r.params,
|
|
6061
|
+
form: r.form,
|
|
6076
6062
|
ellipsisComponent: "performant-ellipsis",
|
|
6077
|
-
...
|
|
6078
|
-
width: Number(
|
|
6079
|
-
ellipsis:
|
|
6080
|
-
render:
|
|
6081
|
-
show: pe.isMobile ?
|
|
6082
|
-
pin: !!
|
|
6083
|
-
fixTemp:
|
|
6063
|
+
...r.table,
|
|
6064
|
+
width: Number(r.table.width || 140),
|
|
6065
|
+
ellipsis: r.table.ellipsis ? { tooltip: !0, "line-clamp": r.table.clamp ?? 0 } : !1,
|
|
6066
|
+
render: r.table.render ? await h1(r.key, r.table.render, l) : void 0,
|
|
6067
|
+
show: pe.isMobile ? r.table.mobile ?? !1 : r.table.show ?? !0,
|
|
6068
|
+
pin: !!r.table.fixed,
|
|
6069
|
+
fixTemp: r.table.fixed
|
|
6084
6070
|
};
|
|
6085
6071
|
if (t)
|
|
6086
6072
|
if (!k.form.edit.show)
|
|
6087
6073
|
k = null;
|
|
6088
6074
|
else {
|
|
6089
|
-
if (k.ellipsis = !1, k.resizable = !0, pe.isMobile && (k.show =
|
|
6090
|
-
delete
|
|
6091
|
-
const d =
|
|
6092
|
-
|
|
6075
|
+
if (k.ellipsis = !1, k.resizable = !0, pe.isMobile && (k.show = r.table.mobile), r.table.show && (n === 0 && (k.show = r.form.create.show), n === 1 && (k.show = r.form.edit.show), n === 2 && (k.show = r.form.show)), r.form.rule?.required && typeof r.form.rule.validator == "string") {
|
|
6076
|
+
delete r.form.rule.message;
|
|
6077
|
+
const d = r.form.rule.validator, g = new Function("rule", "value", "index", "formValues", d);
|
|
6078
|
+
r.form.rule.validator !== "" ? r.form.rule.validator = (N, h) => c()[N.index].delete ? !0 : g(N, h, N.index, () => c()) : r.form.rule.validator = (N, h) => c()[N.index].delete || h ? !0 : new Error(r.form.rule.message);
|
|
6093
6079
|
}
|
|
6094
6080
|
k.render = function(d, g) {
|
|
6095
6081
|
return ee(
|
|
@@ -6097,16 +6083,16 @@ async function ft(e, t = !1, n = 0, c = () => {
|
|
|
6097
6083
|
{
|
|
6098
6084
|
showLabel: !1,
|
|
6099
6085
|
showFeedback: !1,
|
|
6100
|
-
path: `child[${g}].${
|
|
6101
|
-
rule:
|
|
6102
|
-
...
|
|
6086
|
+
path: `child[${g}].${r.key}`,
|
|
6087
|
+
rule: r.form.rule?.required ? {
|
|
6088
|
+
...r.form.rule,
|
|
6103
6089
|
// @ts-ignore
|
|
6104
6090
|
index: g
|
|
6105
6091
|
} : void 0
|
|
6106
6092
|
},
|
|
6107
6093
|
{
|
|
6108
6094
|
default: () => ee(Ee, {
|
|
6109
|
-
item:
|
|
6095
|
+
item: r,
|
|
6110
6096
|
formValue: d,
|
|
6111
6097
|
status: n,
|
|
6112
6098
|
itemIndex: g
|
|
@@ -6115,58 +6101,58 @@ async function ft(e, t = !1, n = 0, c = () => {
|
|
|
6115
6101
|
);
|
|
6116
6102
|
};
|
|
6117
6103
|
}
|
|
6118
|
-
if (k &&
|
|
6119
|
-
if (
|
|
6120
|
-
if (
|
|
6121
|
-
|
|
6104
|
+
if (k && r.input !== "divider" && r.input !== "subTable" && _.push(k), r.input !== "divider" && r.input !== "switch" && r.input !== "subTable" && r.input !== "upload" && r.search.show) {
|
|
6105
|
+
if (r.search.source)
|
|
6106
|
+
if (r.input = "select", r.params.type = r.search.type, r.params.valueKey = r.search.valueKey, r.params.valueKey = r.search.valueKey, r.search.source === "from-up")
|
|
6107
|
+
r.params.options = r.params.options;
|
|
6122
6108
|
else {
|
|
6123
|
-
const { sourceData: d, n: g } = await Bt(
|
|
6109
|
+
const { sourceData: d, n: g } = await Bt(r.search.source);
|
|
6124
6110
|
if (d && Array.isArray(d))
|
|
6125
|
-
if (
|
|
6126
|
-
const N =
|
|
6127
|
-
|
|
6111
|
+
if (r.sourceFn) {
|
|
6112
|
+
const N = r.sourceFn, h = new Function("sourceData", N);
|
|
6113
|
+
r.params.options = h(d);
|
|
6128
6114
|
} else
|
|
6129
|
-
|
|
6115
|
+
r.params.options = Tt(r, d, g);
|
|
6130
6116
|
}
|
|
6131
|
-
|
|
6132
|
-
input:
|
|
6133
|
-
label:
|
|
6134
|
-
key:
|
|
6135
|
-
defaultValue:
|
|
6117
|
+
r.search.multiple && (r.params.multiple = !0, r.search.defaultValue && (r.search.defaultValue = f1(r.search.defaultValue))), a.push({
|
|
6118
|
+
input: r.input,
|
|
6119
|
+
label: r.label,
|
|
6120
|
+
key: r.key,
|
|
6121
|
+
defaultValue: r.search.defaultValue,
|
|
6136
6122
|
params: {
|
|
6137
|
-
...
|
|
6138
|
-
placeholder:
|
|
6123
|
+
...r.params,
|
|
6124
|
+
placeholder: r.label,
|
|
6139
6125
|
filterable: !0,
|
|
6140
6126
|
// @ts-ignore
|
|
6141
|
-
type:
|
|
6127
|
+
type: r.params.type
|
|
6142
6128
|
},
|
|
6143
|
-
form: { show:
|
|
6144
|
-
search:
|
|
6129
|
+
form: { show: r.search.show },
|
|
6130
|
+
search: r.search
|
|
6145
6131
|
});
|
|
6146
6132
|
}
|
|
6147
|
-
|
|
6133
|
+
r.input === "subTable" && r.params.link && !r.params.quest && p.push(r.params.link);
|
|
6148
6134
|
}
|
|
6149
6135
|
const u = [];
|
|
6150
6136
|
if (z.length > 0) {
|
|
6151
|
-
for (const
|
|
6152
|
-
if (typeof
|
|
6153
|
-
const k = _.find((d) => d.key ===
|
|
6137
|
+
for (const r of z) {
|
|
6138
|
+
if (typeof r == "string") {
|
|
6139
|
+
const k = _.find((d) => d.key === r);
|
|
6154
6140
|
k && u.push(k);
|
|
6155
6141
|
}
|
|
6156
|
-
if (typeof
|
|
6157
|
-
const k =
|
|
6142
|
+
if (typeof r == "object") {
|
|
6143
|
+
const k = r.children, d = [];
|
|
6158
6144
|
for (const g of k) {
|
|
6159
6145
|
const N = _.find((h) => h.key === g);
|
|
6160
6146
|
N && d.push(N);
|
|
6161
6147
|
}
|
|
6162
|
-
|
|
6148
|
+
r.children = d, u.push(r);
|
|
6163
6149
|
}
|
|
6164
6150
|
}
|
|
6165
6151
|
_ = u;
|
|
6166
6152
|
}
|
|
6167
6153
|
return {
|
|
6168
6154
|
tableColumns: _,
|
|
6169
|
-
search:
|
|
6155
|
+
search: a,
|
|
6170
6156
|
subTableIds: p,
|
|
6171
6157
|
tableWidth: i
|
|
6172
6158
|
};
|
|
@@ -6199,7 +6185,7 @@ const v1 = oe({
|
|
|
6199
6185
|
t("update:value", !1);
|
|
6200
6186
|
}, i = () => {
|
|
6201
6187
|
clearInterval(n.value);
|
|
6202
|
-
},
|
|
6188
|
+
}, a = () => {
|
|
6203
6189
|
c.value = 5, n.value = setInterval(() => {
|
|
6204
6190
|
const p = c.value;
|
|
6205
6191
|
p <= 0 ? (clearInterval(n.value), l()) : c.value = p - 1;
|
|
@@ -6207,10 +6193,10 @@ const v1 = oe({
|
|
|
6207
6193
|
};
|
|
6208
6194
|
return Tn(() => {
|
|
6209
6195
|
clearInterval(n.value);
|
|
6210
|
-
}),
|
|
6196
|
+
}), le(
|
|
6211
6197
|
() => e.status,
|
|
6212
6198
|
(p) => {
|
|
6213
|
-
p === 1 &&
|
|
6199
|
+
p === 1 && a();
|
|
6214
6200
|
}
|
|
6215
6201
|
), {
|
|
6216
6202
|
counts: c,
|
|
@@ -6220,10 +6206,10 @@ const v1 = oe({
|
|
|
6220
6206
|
}
|
|
6221
6207
|
});
|
|
6222
6208
|
function k1(e, t, n, c, l, i) {
|
|
6223
|
-
const
|
|
6209
|
+
const a = $("NEllipsis"), p = $("NButton"), _ = $("NSpin");
|
|
6224
6210
|
return s(), V(_, { show: e.value }, {
|
|
6225
6211
|
description: m(() => [
|
|
6226
|
-
x(
|
|
6212
|
+
x(a, {
|
|
6227
6213
|
"expand-trigger": "click",
|
|
6228
6214
|
"line-clamp": "3",
|
|
6229
6215
|
tooltip: !1
|
|
@@ -6402,7 +6388,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6402
6388
|
value: () => null,
|
|
6403
6389
|
setValue: () => null
|
|
6404
6390
|
});
|
|
6405
|
-
const l = at(), { t: i } = Kt(),
|
|
6391
|
+
const l = at(), { t: i } = Kt(), a = Et(), p = ze(() => pe.isMobile), _ = C(), M = C(), D = C(), z = C(!!c.header), v = C(!1), u = C(!1), r = C(""), k = C(), d = C([]), g = C([]), N = C([]), h = C(void 0), T = C({
|
|
6406
6392
|
params: [],
|
|
6407
6393
|
query: {
|
|
6408
6394
|
page: 1,
|
|
@@ -6571,7 +6557,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6571
6557
|
"POST",
|
|
6572
6558
|
"fnNotification",
|
|
6573
6559
|
U
|
|
6574
|
-
)(Y, ue,
|
|
6560
|
+
)(Y, ue, a).catch(() => null);
|
|
6575
6561
|
} catch (de) {
|
|
6576
6562
|
ne(de);
|
|
6577
6563
|
}
|
|
@@ -6608,7 +6594,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6608
6594
|
"POST",
|
|
6609
6595
|
"fnNotification",
|
|
6610
6596
|
K
|
|
6611
|
-
)(Y, ue,
|
|
6597
|
+
)(Y, ue, a).then((de) => {
|
|
6612
6598
|
D.value?.link(
|
|
6613
6599
|
y.optionsSource || "",
|
|
6614
6600
|
void 0,
|
|
@@ -6691,7 +6677,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6691
6677
|
if (H && typeof H == "string") {
|
|
6692
6678
|
try {
|
|
6693
6679
|
new Function("rowData", "res", H)(he, je).then((gt) => {
|
|
6694
|
-
|
|
6680
|
+
a.success({
|
|
6695
6681
|
content: gt,
|
|
6696
6682
|
duration: 3e3
|
|
6697
6683
|
}), ce();
|
|
@@ -6705,19 +6691,19 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6705
6691
|
}
|
|
6706
6692
|
if (H && typeof H == "function") {
|
|
6707
6693
|
H(he, je, () => {
|
|
6708
|
-
|
|
6694
|
+
a.success({
|
|
6709
6695
|
content: () => i("Notice.success"),
|
|
6710
6696
|
duration: 3e3
|
|
6711
6697
|
}), ce();
|
|
6712
6698
|
});
|
|
6713
6699
|
return;
|
|
6714
6700
|
}
|
|
6715
|
-
|
|
6701
|
+
a.success({
|
|
6716
6702
|
content: () => i("Notice.success"),
|
|
6717
6703
|
duration: 3e3
|
|
6718
6704
|
}), ce();
|
|
6719
6705
|
}).catch(() => {
|
|
6720
|
-
|
|
6706
|
+
a.error({
|
|
6721
6707
|
content: () => i("Notice.failed"),
|
|
6722
6708
|
duration: 3e3
|
|
6723
6709
|
}), ce();
|
|
@@ -6827,14 +6813,14 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6827
6813
|
Y(Y);
|
|
6828
6814
|
});
|
|
6829
6815
|
}, Va = () => {
|
|
6830
|
-
|
|
6816
|
+
r.value = "", I.value = [], O.value = [], B.value = [], j.value = {
|
|
6831
6817
|
fetch: null,
|
|
6832
6818
|
when_drawer_open: "",
|
|
6833
6819
|
when_before_save: ""
|
|
6834
6820
|
}, S.value = Ae();
|
|
6835
6821
|
}, Fa = (y) => {
|
|
6836
6822
|
const U = Ie.parse(y.viewJson);
|
|
6837
|
-
|
|
6823
|
+
r.value = y.tableTitle, I.value = Ge(U.table), O.value = ot(e.actions || U.action);
|
|
6838
6824
|
const K = ot(U.suffix || []);
|
|
6839
6825
|
B.value = K.map((H) => (Ia(H), H)), j.value = pa(U.trigger);
|
|
6840
6826
|
const Z = Ae(e.options ?? U.option);
|
|
@@ -6880,7 +6866,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6880
6866
|
if (U && typeof U == "string") {
|
|
6881
6867
|
try {
|
|
6882
6868
|
const K = new Function("POST", "fnNotification", U);
|
|
6883
|
-
await K(ue,
|
|
6869
|
+
await K(ue, a, K), ce();
|
|
6884
6870
|
} catch (K) {
|
|
6885
6871
|
ne(K);
|
|
6886
6872
|
}
|
|
@@ -6896,20 +6882,20 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6896
6882
|
right: 0
|
|
6897
6883
|
});
|
|
6898
6884
|
});
|
|
6899
|
-
}),
|
|
6885
|
+
}), le(
|
|
6900
6886
|
() => g.value,
|
|
6901
6887
|
() => {
|
|
6902
6888
|
Da();
|
|
6903
6889
|
},
|
|
6904
6890
|
{ deep: !0 }
|
|
6905
|
-
),
|
|
6891
|
+
), le(
|
|
6906
6892
|
() => e.height,
|
|
6907
6893
|
() => {
|
|
6908
6894
|
dn();
|
|
6909
6895
|
}
|
|
6910
|
-
),
|
|
6896
|
+
), le([() => l.params.id, () => e.id], async () => {
|
|
6911
6897
|
kt(), await Ze();
|
|
6912
|
-
}),
|
|
6898
|
+
}), le(
|
|
6913
6899
|
() => e.defaultCheckedRowKeys,
|
|
6914
6900
|
(y) => {
|
|
6915
6901
|
const U = y || [], K = ie.value.filter(
|
|
@@ -6932,7 +6918,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6932
6918
|
searchData: L,
|
|
6933
6919
|
baseColumns: g,
|
|
6934
6920
|
isSlotHeader: z,
|
|
6935
|
-
title:
|
|
6921
|
+
title: r,
|
|
6936
6922
|
dynamicLoading: u,
|
|
6937
6923
|
spinMsg: A,
|
|
6938
6924
|
tableScrollX: h,
|
|
@@ -6966,7 +6952,7 @@ const fa = /* @__PURE__ */ w(v1, [["render", k1]]), y1 = oe({
|
|
|
6966
6952
|
class: "uz-transform-fade-in"
|
|
6967
6953
|
}, z1 = { class: "uz-com-title" };
|
|
6968
6954
|
function N1(e, t, n, c, l, i) {
|
|
6969
|
-
const
|
|
6955
|
+
const a = $("NSkeleton"), p = $("NButton"), _ = $("Plus"), M = $("NIcon"), D = $("UzActionButton"), z = $("UzSearchMobileBar"), v = $("UzTableMobile"), u = $("Filter"), r = $("NCheckbox"), k = $("GridDots"), d = $("Draggable"), g = $("NPopover"), N = $("UzSearchBar"), h = $("NDataTable"), T = $("NSpin"), L = $("UzTableDrawer");
|
|
6970
6956
|
return s(), f("div", {
|
|
6971
6957
|
class: "uz-table",
|
|
6972
6958
|
style: ve({
|
|
@@ -6975,38 +6961,38 @@ function N1(e, t, n, c, l, i) {
|
|
|
6975
6961
|
}, [
|
|
6976
6962
|
Le(o("div", b1, [
|
|
6977
6963
|
o("div", x1, [
|
|
6978
|
-
x(
|
|
6964
|
+
x(a, {
|
|
6979
6965
|
width: 120,
|
|
6980
6966
|
size: "medium"
|
|
6981
6967
|
}),
|
|
6982
6968
|
o("div", $1, [
|
|
6983
|
-
x(
|
|
6969
|
+
x(a, {
|
|
6984
6970
|
width: 180,
|
|
6985
6971
|
size: "medium"
|
|
6986
6972
|
}),
|
|
6987
|
-
x(
|
|
6973
|
+
x(a, {
|
|
6988
6974
|
width: 180,
|
|
6989
6975
|
size: "medium"
|
|
6990
6976
|
}),
|
|
6991
|
-
x(
|
|
6977
|
+
x(a, {
|
|
6992
6978
|
width: 46,
|
|
6993
6979
|
size: "medium"
|
|
6994
6980
|
}),
|
|
6995
|
-
x(
|
|
6981
|
+
x(a, {
|
|
6996
6982
|
width: 46,
|
|
6997
6983
|
size: "medium"
|
|
6998
6984
|
}),
|
|
6999
|
-
x(
|
|
6985
|
+
x(a, {
|
|
7000
6986
|
width: 46,
|
|
7001
6987
|
size: "medium"
|
|
7002
6988
|
}),
|
|
7003
|
-
x(
|
|
6989
|
+
x(a, {
|
|
7004
6990
|
width: 46,
|
|
7005
6991
|
size: "medium"
|
|
7006
6992
|
})
|
|
7007
6993
|
])
|
|
7008
6994
|
]),
|
|
7009
|
-
x(
|
|
6995
|
+
x(a, {
|
|
7010
6996
|
class: "uz-flex-1",
|
|
7011
6997
|
width: "100%",
|
|
7012
6998
|
size: "medium"
|
|
@@ -7153,7 +7139,7 @@ function N1(e, t, n, c, l, i) {
|
|
|
7153
7139
|
key: X.key,
|
|
7154
7140
|
class: "uz-table-sort"
|
|
7155
7141
|
}, [
|
|
7156
|
-
x(
|
|
7142
|
+
x(r, {
|
|
7157
7143
|
checked: X.show,
|
|
7158
7144
|
"on-update:checked": () => e.showChange(X),
|
|
7159
7145
|
size: "large"
|
|
@@ -7282,7 +7268,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7282
7268
|
},
|
|
7283
7269
|
emits: ["update:value"],
|
|
7284
7270
|
setup(e, { emit: t, expose: n }) {
|
|
7285
|
-
const c = Ne("emitSuffix"), l = Ne("modules"), i = Ne("mainFormValue"), { t:
|
|
7271
|
+
const c = Ne("emitSuffix"), l = Ne("modules"), i = Ne("mainFormValue"), { t: a } = Kt(), p = C(), _ = C(), M = C(), D = C(!1), z = C(!0), v = C([]), u = C({ child: [] }), r = C(""), k = C({}), d = C(void 0), g = async (B) => {
|
|
7286
7272
|
const { formDefaultValue: j, fillingDefaultArray: S } = await pt(
|
|
7287
7273
|
e.item.params.columns,
|
|
7288
7274
|
B
|
|
@@ -7361,7 +7347,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7361
7347
|
}
|
|
7362
7348
|
}), A = A + 40), e.status !== 2 && e.item.params.showActions) {
|
|
7363
7349
|
const J = {
|
|
7364
|
-
title: () =>
|
|
7350
|
+
title: () => a("Common.action"),
|
|
7365
7351
|
key: "action",
|
|
7366
7352
|
align: "center",
|
|
7367
7353
|
fixed: "right",
|
|
@@ -7413,11 +7399,11 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7413
7399
|
}
|
|
7414
7400
|
return [];
|
|
7415
7401
|
}, X = async () => {
|
|
7416
|
-
|
|
7402
|
+
r.value = "", u.value.child.push(G(k.value)), ye(() => {
|
|
7417
7403
|
O();
|
|
7418
7404
|
});
|
|
7419
7405
|
}, F = async () => {
|
|
7420
|
-
|
|
7406
|
+
r.value = "";
|
|
7421
7407
|
try {
|
|
7422
7408
|
const B = e.item.params.options;
|
|
7423
7409
|
if (B) {
|
|
@@ -7449,16 +7435,16 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7449
7435
|
}
|
|
7450
7436
|
}, b = () => {
|
|
7451
7437
|
M.value?.restoreValidation();
|
|
7452
|
-
}, I = () => (
|
|
7438
|
+
}, I = () => (r.value = "", new Promise((B, j) => {
|
|
7453
7439
|
const S = u.value.child.filter(
|
|
7454
7440
|
(A) => !A.delete
|
|
7455
7441
|
).length;
|
|
7456
7442
|
if (e.item.form.rule.required && S === 0) {
|
|
7457
|
-
|
|
7443
|
+
r.value = e.item.form.rule.message, j();
|
|
7458
7444
|
return;
|
|
7459
7445
|
}
|
|
7460
7446
|
M.value?.validate((A) => {
|
|
7461
|
-
A ? (
|
|
7447
|
+
A ? (r.value = e.item.form.rule.message, j()) : B();
|
|
7462
7448
|
});
|
|
7463
7449
|
})), O = () => {
|
|
7464
7450
|
if (e.item.params.draggable && e.status !== 2 && p.value && !_.value) {
|
|
@@ -7486,19 +7472,19 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7486
7472
|
};
|
|
7487
7473
|
return Ut(() => {
|
|
7488
7474
|
_.value?.destroy(), _.value = null;
|
|
7489
|
-
}), n({ validate: I, restoreValidation: b }),
|
|
7475
|
+
}), n({ validate: I, restoreValidation: b }), le(
|
|
7490
7476
|
() => e.item.params.columns,
|
|
7491
7477
|
(B, j) => {
|
|
7492
7478
|
JSON.stringify(B) !== JSON.stringify(j) && T(B);
|
|
7493
7479
|
},
|
|
7494
7480
|
{ deep: !0, immediate: !0 }
|
|
7495
|
-
),
|
|
7481
|
+
), le(
|
|
7496
7482
|
() => e.value,
|
|
7497
7483
|
(B) => {
|
|
7498
7484
|
JSON.stringify(B) !== JSON.stringify(u.value.child) && N(B);
|
|
7499
7485
|
},
|
|
7500
7486
|
{ deep: !0, immediate: !0 }
|
|
7501
|
-
),
|
|
7487
|
+
), le(
|
|
7502
7488
|
() => u.value.child,
|
|
7503
7489
|
(B) => {
|
|
7504
7490
|
e.status !== 2 && t("update:value", B);
|
|
@@ -7511,7 +7497,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7511
7497
|
columns: v,
|
|
7512
7498
|
tableData: u,
|
|
7513
7499
|
summaryData: L,
|
|
7514
|
-
message:
|
|
7500
|
+
message: r,
|
|
7515
7501
|
tableScrollX: d,
|
|
7516
7502
|
tableShow: z,
|
|
7517
7503
|
onAdd: X,
|
|
@@ -7524,7 +7510,7 @@ const S1 = /* @__PURE__ */ w(y1, [["render", N1]]), D1 = oe({
|
|
|
7524
7510
|
class: "uz-table-asterisk"
|
|
7525
7511
|
}, I1 = { class: "uz-flex uz-gap-2" }, U1 = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
7526
7512
|
function j1(e, t, n, c, l, i) {
|
|
7527
|
-
const
|
|
7513
|
+
const a = $("Plus"), p = $("NIcon"), _ = $("NButton"), M = $("NDataTable"), D = $("NForm");
|
|
7528
7514
|
return s(), f("div", T1, [
|
|
7529
7515
|
o("div", B1, [
|
|
7530
7516
|
o("div", V1, [
|
|
@@ -7541,7 +7527,7 @@ function j1(e, t, n, c, l, i) {
|
|
|
7541
7527
|
icon: m(() => [
|
|
7542
7528
|
x(p, null, {
|
|
7543
7529
|
default: m(() => [
|
|
7544
|
-
x(
|
|
7530
|
+
x(a)
|
|
7545
7531
|
]),
|
|
7546
7532
|
_: 1
|
|
7547
7533
|
})
|
|
@@ -7560,7 +7546,7 @@ function j1(e, t, n, c, l, i) {
|
|
|
7560
7546
|
icon: m(() => [
|
|
7561
7547
|
x(p, null, {
|
|
7562
7548
|
default: m(() => [
|
|
7563
|
-
x(
|
|
7549
|
+
x(a)
|
|
7564
7550
|
]),
|
|
7565
7551
|
_: 1
|
|
7566
7552
|
})
|
|
@@ -7605,7 +7591,7 @@ function j1(e, t, n, c, l, i) {
|
|
|
7605
7591
|
icon: m(() => [
|
|
7606
7592
|
x(p, null, {
|
|
7607
7593
|
default: m(() => [
|
|
7608
|
-
x(
|
|
7594
|
+
x(a)
|
|
7609
7595
|
]),
|
|
7610
7596
|
_: 1
|
|
7611
7597
|
})
|
|
@@ -7624,7 +7610,7 @@ function j1(e, t, n, c, l, i) {
|
|
|
7624
7610
|
icon: m(() => [
|
|
7625
7611
|
x(p, null, {
|
|
7626
7612
|
default: m(() => [
|
|
7627
|
-
x(
|
|
7613
|
+
x(a)
|
|
7628
7614
|
]),
|
|
7629
7615
|
_: 1
|
|
7630
7616
|
})
|
|
@@ -7654,26 +7640,26 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
|
|
|
7654
7640
|
},
|
|
7655
7641
|
emits: ["update:value"],
|
|
7656
7642
|
setup(e) {
|
|
7657
|
-
const t = Ne("modules"), { t: n } = Kt(), c = C(), l = C(!1), i = C([]),
|
|
7643
|
+
const t = Ne("modules"), { t: n } = Kt(), c = C(), l = C(!1), i = C([]), a = C([]), p = C(void 0), _ = (z) => {
|
|
7658
7644
|
if (l.value = !0, e.item.params.link) {
|
|
7659
7645
|
const v = [];
|
|
7660
7646
|
e.item.params.columns.forEach((u) => {
|
|
7661
7647
|
(u.input === "cascader" || u.input === "select") && u.params.multiple && v.push(u.key);
|
|
7662
7648
|
}), z && z.forEach((u) => {
|
|
7663
|
-
v.forEach((
|
|
7664
|
-
u[
|
|
7649
|
+
v.forEach((r) => {
|
|
7650
|
+
u[r] && typeof u[r] == "string" && (u[r] = JSON.parse(u[r]));
|
|
7665
7651
|
});
|
|
7666
|
-
}),
|
|
7652
|
+
}), a.value = z, l.value = !1;
|
|
7667
7653
|
}
|
|
7668
7654
|
}, M = async (z) => {
|
|
7669
7655
|
const { tableColumns: v, tableWidth: u } = await ft(
|
|
7670
7656
|
G(e.item.params.columns),
|
|
7671
7657
|
!0,
|
|
7672
7658
|
2,
|
|
7673
|
-
() =>
|
|
7659
|
+
() => a.value,
|
|
7674
7660
|
t
|
|
7675
7661
|
);
|
|
7676
|
-
let
|
|
7662
|
+
let r = u;
|
|
7677
7663
|
v.unshift({
|
|
7678
7664
|
title: " ",
|
|
7679
7665
|
key: "index",
|
|
@@ -7685,7 +7671,7 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
|
|
|
7685
7671
|
// render(_: ObjectKey, rowIndex: number) {
|
|
7686
7672
|
// return h('span', {}, { default: () => rowIndex + 1 })
|
|
7687
7673
|
// }
|
|
7688
|
-
}),
|
|
7674
|
+
}), r = r + 60;
|
|
7689
7675
|
const k = {
|
|
7690
7676
|
title: () => n("Common.action"),
|
|
7691
7677
|
key: "action",
|
|
@@ -7721,7 +7707,7 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
|
|
|
7721
7707
|
const d = [];
|
|
7722
7708
|
v.forEach((g) => {
|
|
7723
7709
|
g.show && d.push(g);
|
|
7724
|
-
}), i.value = d,
|
|
7710
|
+
}), i.value = d, r = r + 180, p.value = r;
|
|
7725
7711
|
}, D = (z) => {
|
|
7726
7712
|
if (e.item.params.summary) {
|
|
7727
7713
|
if (typeof e.item.params.summary == "function")
|
|
@@ -7760,20 +7746,20 @@ const O1 = /* @__PURE__ */ w(D1, [["render", j1]]), A1 = oe({
|
|
|
7760
7746
|
drawerRef: c,
|
|
7761
7747
|
loading: l,
|
|
7762
7748
|
columns: i,
|
|
7763
|
-
normalData:
|
|
7749
|
+
normalData: a,
|
|
7764
7750
|
summaryData: D,
|
|
7765
7751
|
tableScrollX: p
|
|
7766
7752
|
};
|
|
7767
7753
|
}
|
|
7768
7754
|
}), R1 = { class: "uz-flex-1 uz-w-full" }, P1 = { class: "uz-flex uz-justify-between" }, H1 = { class: "uz-com-title" };
|
|
7769
7755
|
function E1(e, t, n, c, l, i) {
|
|
7770
|
-
const
|
|
7756
|
+
const a = $("NDataTable"), p = $("UzTableDrawer");
|
|
7771
7757
|
return s(), f("div", R1, [
|
|
7772
7758
|
o("div", P1, [
|
|
7773
7759
|
o("div", H1, E(e.item.label), 1)
|
|
7774
7760
|
]),
|
|
7775
7761
|
t[0] || (t[0] = o("div", { class: "uz-br" }, null, -1)),
|
|
7776
|
-
x(
|
|
7762
|
+
x(a, {
|
|
7777
7763
|
columns: e.columns,
|
|
7778
7764
|
data: e.normalData,
|
|
7779
7765
|
pagination: !1,
|
|
@@ -7799,7 +7785,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7799
7785
|
},
|
|
7800
7786
|
emits: ["update:show", "on-submit"],
|
|
7801
7787
|
setup(e, { emit: t, expose: n }) {
|
|
7802
|
-
const c = ze(() => pe.isMobile), l = C(), i = C(0),
|
|
7788
|
+
const c = ze(() => pe.isMobile), l = C(), i = C(0), a = C({}), p = C({
|
|
7803
7789
|
link: "",
|
|
7804
7790
|
linkFn: ""
|
|
7805
7791
|
}), _ = C(!1), M = C({
|
|
@@ -7818,12 +7804,12 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7818
7804
|
drawerHeight: "96vh",
|
|
7819
7805
|
placement: "right",
|
|
7820
7806
|
summary: ""
|
|
7821
|
-
}), D = C(!1), z = C(!1), v = C(!1), u = C(""),
|
|
7807
|
+
}), D = C(!1), z = C(!1), v = C(!1), u = C(""), r = C(0), k = C(), d = C({
|
|
7822
7808
|
fetch: null,
|
|
7823
7809
|
when_drawer_open: "",
|
|
7824
7810
|
when_before_save: ""
|
|
7825
7811
|
}), g = C(!1), N = C(), h = () => {
|
|
7826
|
-
l.value?.restoreValidation(),
|
|
7812
|
+
l.value?.restoreValidation(), a.value = {}, z.value = !1, D.value = !1, _.value = !1, t("update:show", !1);
|
|
7827
7813
|
}, T = () => {
|
|
7828
7814
|
i.value !== 2 ? $f.info({
|
|
7829
7815
|
title: "提示",
|
|
@@ -7840,7 +7826,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7840
7826
|
if (B && typeof B == "string")
|
|
7841
7827
|
try {
|
|
7842
7828
|
new Function("formValues", "POST", B)(O, ue).then((S) => {
|
|
7843
|
-
|
|
7829
|
+
a.value = S;
|
|
7844
7830
|
}).catch((S) => {
|
|
7845
7831
|
ne(S);
|
|
7846
7832
|
});
|
|
@@ -7848,10 +7834,10 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7848
7834
|
ne(j);
|
|
7849
7835
|
}
|
|
7850
7836
|
else
|
|
7851
|
-
|
|
7837
|
+
a.value = O;
|
|
7852
7838
|
}, X = async (O, B, j, S = 0, A) => {
|
|
7853
7839
|
v.value = !0, i.value = S, M.value = B, d.value = j, _.value = !0, O().then(({ form: P, data: J }) => {
|
|
7854
|
-
k.value = P,
|
|
7840
|
+
k.value = P, a.value = J, N.value = A, v.value = !1;
|
|
7855
7841
|
}).catch(() => null);
|
|
7856
7842
|
}, F = (O, B, j, S = 0) => {
|
|
7857
7843
|
if (i.value = S, N.value = null, v.value = !0, _.value = !0, O) {
|
|
@@ -7874,15 +7860,15 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7874
7860
|
});
|
|
7875
7861
|
}
|
|
7876
7862
|
}, b = () => {
|
|
7877
|
-
|
|
7863
|
+
r.value = 0, z.value = !0, l.value?.validate().then(async (O) => {
|
|
7878
7864
|
if (d.value.when_before_save) {
|
|
7879
7865
|
const B = d.value.when_before_save, j = new Function("data", "POST", B);
|
|
7880
7866
|
try {
|
|
7881
7867
|
O = await j(O, ue).catch((S) => {
|
|
7882
|
-
|
|
7868
|
+
r.value = 1, u.value = S.message;
|
|
7883
7869
|
});
|
|
7884
7870
|
} catch (S) {
|
|
7885
|
-
|
|
7871
|
+
r.value = 1, u.value = S.message;
|
|
7886
7872
|
return;
|
|
7887
7873
|
}
|
|
7888
7874
|
}
|
|
@@ -7893,7 +7879,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7893
7879
|
h();
|
|
7894
7880
|
},
|
|
7895
7881
|
(B) => {
|
|
7896
|
-
|
|
7882
|
+
r.value = 1, u.value = B;
|
|
7897
7883
|
}
|
|
7898
7884
|
);
|
|
7899
7885
|
return;
|
|
@@ -7921,7 +7907,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7921
7907
|
z.value = !1, t("on-submit", A), h();
|
|
7922
7908
|
});
|
|
7923
7909
|
}).catch((j) => {
|
|
7924
|
-
|
|
7910
|
+
r.value = 1, u.value = j;
|
|
7925
7911
|
});
|
|
7926
7912
|
}
|
|
7927
7913
|
}).catch(() => {
|
|
@@ -7936,9 +7922,9 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7936
7922
|
spinShow: z,
|
|
7937
7923
|
spinMsg: u,
|
|
7938
7924
|
skeletonShow: v,
|
|
7939
|
-
spinStatus:
|
|
7925
|
+
spinStatus: r,
|
|
7940
7926
|
formData: k,
|
|
7941
|
-
formValues:
|
|
7927
|
+
formValues: a,
|
|
7942
7928
|
spinError: g,
|
|
7943
7929
|
isMobile: c,
|
|
7944
7930
|
formStatus: i,
|
|
@@ -7952,7 +7938,7 @@ const q1 = /* @__PURE__ */ w(A1, [["render", E1]]), L1 = oe({
|
|
|
7952
7938
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7953
7939
|
}, G1 = { class: "uz-flex uz-gap-2" };
|
|
7954
7940
|
function Q1(e, t, n, c, l, i) {
|
|
7955
|
-
const
|
|
7941
|
+
const a = $("NSkeleton"), p = $("UzForm"), _ = $("UzSpin"), M = $("NSpin"), D = $("NButton"), z = $("NDrawerContent"), v = $("NDrawer");
|
|
7956
7942
|
return s(), V(v, {
|
|
7957
7943
|
show: e.drawer,
|
|
7958
7944
|
"onUpdate:show": t[1] || (t[1] = (u) => e.drawer = u),
|
|
@@ -7985,43 +7971,43 @@ function Q1(e, t, n, c, l, i) {
|
|
|
7985
7971
|
default: m(() => [
|
|
7986
7972
|
o("div", K1, [
|
|
7987
7973
|
e.skeletonShow ? (s(), f("div", W1, [
|
|
7988
|
-
x(
|
|
7974
|
+
x(a, {
|
|
7989
7975
|
size: "large",
|
|
7990
7976
|
style: { height: "156px" }
|
|
7991
7977
|
}),
|
|
7992
|
-
x(
|
|
7978
|
+
x(a, {
|
|
7993
7979
|
size: "large",
|
|
7994
7980
|
style: { height: "156px" }
|
|
7995
7981
|
}),
|
|
7996
|
-
x(
|
|
7982
|
+
x(a, {
|
|
7997
7983
|
size: "large",
|
|
7998
7984
|
style: { height: "156px" }
|
|
7999
7985
|
}),
|
|
8000
|
-
x(
|
|
7986
|
+
x(a, {
|
|
8001
7987
|
size: "large",
|
|
8002
7988
|
style: { height: "156px" }
|
|
8003
7989
|
}),
|
|
8004
|
-
x(
|
|
7990
|
+
x(a, {
|
|
8005
7991
|
size: "large",
|
|
8006
7992
|
style: { height: "156px" }
|
|
8007
7993
|
}),
|
|
8008
|
-
x(
|
|
7994
|
+
x(a, {
|
|
8009
7995
|
size: "large",
|
|
8010
7996
|
style: { height: "156px" }
|
|
8011
7997
|
}),
|
|
8012
|
-
x(
|
|
7998
|
+
x(a, {
|
|
8013
7999
|
size: "large",
|
|
8014
8000
|
style: { height: "156px" }
|
|
8015
8001
|
}),
|
|
8016
|
-
x(
|
|
8002
|
+
x(a, {
|
|
8017
8003
|
size: "large",
|
|
8018
8004
|
style: { height: "156px" }
|
|
8019
8005
|
}),
|
|
8020
|
-
x(
|
|
8006
|
+
x(a, {
|
|
8021
8007
|
size: "large",
|
|
8022
8008
|
style: { height: "156px" }
|
|
8023
8009
|
}),
|
|
8024
|
-
x(
|
|
8010
|
+
x(a, {
|
|
8025
8011
|
size: "large",
|
|
8026
8012
|
style: { height: "156px" }
|
|
8027
8013
|
})
|
|
@@ -8092,36 +8078,36 @@ const J1 = /* @__PURE__ */ w(L1, [["render", Q1]]), X1 = oe({
|
|
|
8092
8078
|
};
|
|
8093
8079
|
function e0(e, t, n, c, l, i) {
|
|
8094
8080
|
return s(), f("div", Y1, [
|
|
8095
|
-
(s(!0), f(
|
|
8096
|
-
key:
|
|
8097
|
-
class: ae(["uz-flex uz-overflow-hidden",
|
|
8098
|
-
style: ve(`grid-column: span ${
|
|
8081
|
+
(s(!0), f(se, null, ke(e.tableColumns, (a) => (s(), f("div", {
|
|
8082
|
+
key: a.key,
|
|
8083
|
+
class: ae(["uz-flex uz-overflow-hidden", a.lineBreak ? "uz-flex-col" : ""]),
|
|
8084
|
+
style: ve(`grid-column: span ${a.lineCol || 2} / span ${a.lineCol || 2}`)
|
|
8099
8085
|
}, [
|
|
8100
|
-
|
|
8101
|
-
|
|
8086
|
+
a.key === "action" ? (s(), f(se, { key: 0 }, [
|
|
8087
|
+
a.render ? (s(), V(hn(
|
|
8102
8088
|
() => {
|
|
8103
8089
|
if (e.tableData)
|
|
8104
|
-
return
|
|
8090
|
+
return a.render(e.tableData, e.tableIndex);
|
|
8105
8091
|
}
|
|
8106
8092
|
), {
|
|
8107
8093
|
key: 0,
|
|
8108
8094
|
class: "mobile"
|
|
8109
8095
|
})) : W("", !0)
|
|
8110
|
-
], 64)) : (s(), f(
|
|
8096
|
+
], 64)) : (s(), f(se, { key: 1 }, [
|
|
8111
8097
|
o("div", {
|
|
8112
|
-
class: ae(["uz-table-mobile-group-title",
|
|
8098
|
+
class: ae(["uz-table-mobile-group-title", a.lineBreak ? "line-break" : ""])
|
|
8113
8099
|
}, [
|
|
8114
|
-
o("div", null, E(typeof
|
|
8100
|
+
o("div", null, E(typeof a.title == "string" ? a.title : a.title()), 1)
|
|
8115
8101
|
], 2),
|
|
8116
8102
|
o("div", {
|
|
8117
|
-
class: ae(["uz-table-mobile-group-content",
|
|
8103
|
+
class: ae(["uz-table-mobile-group-content", a.lineBreak ? "line-break" : ""])
|
|
8118
8104
|
}, [
|
|
8119
|
-
|
|
8105
|
+
a.render ? (s(), V(hn(
|
|
8120
8106
|
() => {
|
|
8121
8107
|
if (e.tableData)
|
|
8122
|
-
return
|
|
8108
|
+
return a.render(e.tableData, e.tableIndex);
|
|
8123
8109
|
}
|
|
8124
|
-
), { key: 0 })) : (s(), f("div", Z1, E(e.tableData[
|
|
8110
|
+
), { key: 0 })) : (s(), f("div", Z1, E(e.tableData[a.key] || "-"), 1))
|
|
8125
8111
|
], 2)
|
|
8126
8112
|
], 64))
|
|
8127
8113
|
], 6))), 128))
|
|
@@ -8153,13 +8139,13 @@ const t0 = /* @__PURE__ */ w(X1, [["render", e0], ["__scopeId", "data-v-01b68b92
|
|
|
8153
8139
|
rowKeys: n,
|
|
8154
8140
|
checkChange: (i) => {
|
|
8155
8141
|
n.value = i;
|
|
8156
|
-
const
|
|
8157
|
-
t("update:row-keys", i,
|
|
8142
|
+
const a = e.tableData.filter((p) => i.includes(p.id));
|
|
8143
|
+
t("update:row-keys", i, a);
|
|
8158
8144
|
},
|
|
8159
8145
|
radioChange: (i) => {
|
|
8160
8146
|
n.value = [i];
|
|
8161
|
-
const
|
|
8162
|
-
t("update:row-keys", [i], [
|
|
8147
|
+
const a = e.tableData.find((p) => p.id === i);
|
|
8148
|
+
t("update:row-keys", [i], [a]);
|
|
8163
8149
|
}
|
|
8164
8150
|
};
|
|
8165
8151
|
}
|
|
@@ -8174,7 +8160,7 @@ const t0 = /* @__PURE__ */ w(X1, [["render", e0], ["__scopeId", "data-v-01b68b92
|
|
|
8174
8160
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8175
8161
|
};
|
|
8176
8162
|
function s0(e, t, n, c, l, i) {
|
|
8177
|
-
const
|
|
8163
|
+
const a = $("UzTableMobileList"), p = $("NCheckbox"), _ = $("NPagination"), M = $("NCheckboxGroup"), D = $("NRadio"), z = $("NRadioGroup");
|
|
8178
8164
|
return e.selection === 2 ? (s(), V(M, {
|
|
8179
8165
|
key: 0,
|
|
8180
8166
|
value: e.rowKeys,
|
|
@@ -8189,13 +8175,13 @@ function s0(e, t, n, c, l, i) {
|
|
|
8189
8175
|
})
|
|
8190
8176
|
}, {
|
|
8191
8177
|
default: m(() => [
|
|
8192
|
-
(s(!0), f(
|
|
8178
|
+
(s(!0), f(se, null, ke(e.tableData, (v, u) => (s(), V(p, {
|
|
8193
8179
|
key: v.id,
|
|
8194
8180
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
8195
8181
|
value: v.id
|
|
8196
8182
|
}, {
|
|
8197
8183
|
default: m(() => [
|
|
8198
|
-
x(
|
|
8184
|
+
x(a, {
|
|
8199
8185
|
tableData: v,
|
|
8200
8186
|
tableIndex: u,
|
|
8201
8187
|
tableColumns: e.tableColumns
|
|
@@ -8231,13 +8217,13 @@ function s0(e, t, n, c, l, i) {
|
|
|
8231
8217
|
})
|
|
8232
8218
|
}, {
|
|
8233
8219
|
default: m(() => [
|
|
8234
|
-
(s(!0), f(
|
|
8220
|
+
(s(!0), f(se, null, ke(e.tableData, (v, u) => (s(), V(D, {
|
|
8235
8221
|
key: v.id,
|
|
8236
8222
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
8237
8223
|
value: v.id
|
|
8238
8224
|
}, {
|
|
8239
8225
|
default: m(() => [
|
|
8240
|
-
x(
|
|
8226
|
+
x(a, {
|
|
8241
8227
|
tableData: v,
|
|
8242
8228
|
tableIndex: u,
|
|
8243
8229
|
tableColumns: e.tableColumns
|
|
@@ -8267,11 +8253,11 @@ function s0(e, t, n, c, l, i) {
|
|
|
8267
8253
|
maxHeight: e.maxH
|
|
8268
8254
|
})
|
|
8269
8255
|
}, [
|
|
8270
|
-
(s(!0), f(
|
|
8256
|
+
(s(!0), f(se, null, ke(e.tableData, (v, u) => (s(), f("div", {
|
|
8271
8257
|
key: v.id,
|
|
8272
8258
|
class: "uz-com-card uz-flex uz-flex-col uz-gap-2"
|
|
8273
8259
|
}, [
|
|
8274
|
-
x(
|
|
8260
|
+
x(a, {
|
|
8275
8261
|
tableData: v,
|
|
8276
8262
|
tableIndex: u,
|
|
8277
8263
|
tableColumns: e.tableColumns
|
|
@@ -8367,12 +8353,12 @@ const u0 = oe({
|
|
|
8367
8353
|
ma(p);
|
|
8368
8354
|
}, i = (p) => {
|
|
8369
8355
|
ha(p);
|
|
8370
|
-
},
|
|
8356
|
+
}, a = () => {
|
|
8371
8357
|
wa();
|
|
8372
8358
|
};
|
|
8373
8359
|
return Re(() => {
|
|
8374
8360
|
_n(e.option), Q.active !== c.path && Cn(c.path, c.fullPath);
|
|
8375
|
-
}),
|
|
8361
|
+
}), le(
|
|
8376
8362
|
() => c,
|
|
8377
8363
|
(p) => {
|
|
8378
8364
|
Q.active === c.path && Cn(p.path, p.fullPath);
|
|
@@ -8380,7 +8366,7 @@ const u0 = oe({
|
|
|
8380
8366
|
{
|
|
8381
8367
|
deep: !0
|
|
8382
8368
|
}
|
|
8383
|
-
),
|
|
8369
|
+
), le(
|
|
8384
8370
|
() => e.option,
|
|
8385
8371
|
(p) => {
|
|
8386
8372
|
_n(p);
|
|
@@ -8393,12 +8379,12 @@ const u0 = oe({
|
|
|
8393
8379
|
isSlotPrefix: n,
|
|
8394
8380
|
handleClose: l,
|
|
8395
8381
|
handleChange: i,
|
|
8396
|
-
handleClear:
|
|
8382
|
+
handleClear: a
|
|
8397
8383
|
};
|
|
8398
8384
|
}
|
|
8399
8385
|
});
|
|
8400
8386
|
function c0(e, t, n, c, l, i) {
|
|
8401
|
-
const
|
|
8387
|
+
const a = $("NTabPane"), p = $("Trash"), _ = $("NIcon"), M = $("NButton"), D = $("NPopconfirm"), z = $("NFlex"), v = $("NTabs");
|
|
8402
8388
|
return s(), V(v, {
|
|
8403
8389
|
value: e.thumbnailStore.active,
|
|
8404
8390
|
type: "card",
|
|
@@ -8436,7 +8422,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8436
8422
|
})
|
|
8437
8423
|
]),
|
|
8438
8424
|
default: m(() => [
|
|
8439
|
-
(s(!0), f(
|
|
8425
|
+
(s(!0), f(se, null, ke(e.thumbnailStore.thumbnail, (u) => (s(), V(a, {
|
|
8440
8426
|
key: u.key,
|
|
8441
8427
|
name: u.key,
|
|
8442
8428
|
tab: u.label,
|
|
@@ -8528,8 +8514,8 @@ const p0 = {
|
|
|
8528
8514
|
}
|
|
8529
8515
|
});
|
|
8530
8516
|
function m0(e, t, n, c, l, i) {
|
|
8531
|
-
const
|
|
8532
|
-
return s(), V(
|
|
8517
|
+
const a = $("NConfigProvider");
|
|
8518
|
+
return s(), V(a, {
|
|
8533
8519
|
theme: e.commonStore.theme ? {
|
|
8534
8520
|
name: "darkTheme"
|
|
8535
8521
|
} : null,
|
|
@@ -8785,8 +8771,8 @@ function X0(e, t) {
|
|
|
8785
8771
|
}];
|
|
8786
8772
|
}
|
|
8787
8773
|
function Y0(e, t, n) {
|
|
8788
|
-
const c = `useQuery-${e}`, l = C(), i = C(),
|
|
8789
|
-
vn(), clearInterval(
|
|
8774
|
+
const c = `useQuery-${e}`, l = C(), i = C(), a = C(), p = C(!1), _ = C("idle"), M = C(), D = C(0), z = C(0), v = () => {
|
|
8775
|
+
vn(), clearInterval(a.value), a.value = null;
|
|
8790
8776
|
}, u = async () => {
|
|
8791
8777
|
if (!p.value) {
|
|
8792
8778
|
k(!0, "loading");
|
|
@@ -8806,14 +8792,14 @@ function Y0(e, t, n) {
|
|
|
8806
8792
|
});
|
|
8807
8793
|
h = await Promise.race([T, t()]);
|
|
8808
8794
|
}
|
|
8809
|
-
k(!1, "success"),
|
|
8795
|
+
k(!1, "success"), r(h), be(c, h, 0);
|
|
8810
8796
|
} catch (h) {
|
|
8811
8797
|
d(h), k(!1, "error"), D.value > 0 && (D.value = D.value - 1, setTimeout(() => {
|
|
8812
8798
|
u();
|
|
8813
8799
|
}, z.value));
|
|
8814
8800
|
}
|
|
8815
8801
|
}
|
|
8816
|
-
},
|
|
8802
|
+
}, r = (h) => {
|
|
8817
8803
|
if (h) {
|
|
8818
8804
|
let T = h;
|
|
8819
8805
|
n?.formatResult && (T = n.formatResult(h)), i.value = T;
|
|
@@ -8825,18 +8811,18 @@ function Y0(e, t, n) {
|
|
|
8825
8811
|
}, g = () => {
|
|
8826
8812
|
vn(), l.value && l.value();
|
|
8827
8813
|
}, N = () => {
|
|
8828
|
-
g(), u(), n?.pollingInterval && (v(),
|
|
8814
|
+
g(), u(), n?.pollingInterval && (v(), a.value = setInterval(() => {
|
|
8829
8815
|
u();
|
|
8830
8816
|
}, n?.pollingInterval));
|
|
8831
8817
|
};
|
|
8832
|
-
if (n?.retry && n.pollingInterval === void 0 && (D.value = n.retry.retryCount || 3, z.value = n.retry.retryInterval || 1e3 * 2 ** 3), n?.initialData &&
|
|
8818
|
+
if (n?.retry && n.pollingInterval === void 0 && (D.value = n.retry.retryCount || 3, z.value = n.retry.retryInterval || 1e3 * 2 ** 3), n?.initialData && r(n.initialData()), n === void 0 || n.initialData === void 0 || n.cache === void 0 || n.cache === !0)
|
|
8833
8819
|
try {
|
|
8834
8820
|
const h = $e(c, !1);
|
|
8835
|
-
h &&
|
|
8821
|
+
h && r(h);
|
|
8836
8822
|
} catch {
|
|
8837
|
-
|
|
8823
|
+
r(!1);
|
|
8838
8824
|
}
|
|
8839
|
-
return n?.pollingInterval ? (u(),
|
|
8825
|
+
return n?.pollingInterval ? (u(), a.value = setInterval(() => {
|
|
8840
8826
|
u();
|
|
8841
8827
|
}, n?.pollingInterval)) : (n === void 0 || n.manual === void 0 || n.manual === !1) && u(), Ut(() => {
|
|
8842
8828
|
v();
|
|
@@ -8850,7 +8836,7 @@ function Y0(e, t, n) {
|
|
|
8850
8836
|
refetch: N
|
|
8851
8837
|
};
|
|
8852
8838
|
}
|
|
8853
|
-
const k0 = "0.0.
|
|
8839
|
+
const k0 = "0.0.76";
|
|
8854
8840
|
let xa;
|
|
8855
8841
|
async function $a() {
|
|
8856
8842
|
const e = await fetch(
|
|
@@ -8873,7 +8859,7 @@ async function b0() {
|
|
|
8873
8859
|
}
|
|
8874
8860
|
let Vt = "", Ft;
|
|
8875
8861
|
const te = navigator.userAgent.toLocaleUpperCase(), x0 = () => {
|
|
8876
|
-
const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, c = /WINDOWS NT 10.[\d]+/, l = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/,
|
|
8862
|
+
const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, c = /WINDOWS NT 10.[\d]+/, l = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, a = /IPHONE/, p = /IPAD/, _ = /MAC/;
|
|
8877
8863
|
if (e.test(te)) return "Windows XP";
|
|
8878
8864
|
if (t.test(te)) return "Windows 7";
|
|
8879
8865
|
if (n.test(te)) return "Windows 8";
|
|
@@ -8885,7 +8871,7 @@ const te = navigator.userAgent.toLocaleUpperCase(), x0 = () => {
|
|
|
8885
8871
|
const M = i.exec(te);
|
|
8886
8872
|
return `Android ${M ? M[0].split(" ")[1] : ""}`;
|
|
8887
8873
|
}
|
|
8888
|
-
if (
|
|
8874
|
+
if (a.test(te)) {
|
|
8889
8875
|
const D = /OS [\d_]+/.exec(te);
|
|
8890
8876
|
return `iPhone ${D ? D[0].split(" ")[1].replace(/_/g, ".") : ""}`;
|
|
8891
8877
|
}
|
|
@@ -8899,10 +8885,10 @@ const te = navigator.userAgent.toLocaleUpperCase(), x0 = () => {
|
|
|
8899
8885
|
}
|
|
8900
8886
|
return "Other Platform";
|
|
8901
8887
|
}, $0 = () => {
|
|
8902
|
-
const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/,
|
|
8903
|
-
if (e.test(te) &&
|
|
8888
|
+
const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, a = /SE \d/, p = /UCBROWSER/, _ = /ANDROID [\d.]+/;
|
|
8889
|
+
if (e.test(te) && a.test(te))
|
|
8904
8890
|
return "SogouIE";
|
|
8905
|
-
if (
|
|
8891
|
+
if (a.test(te))
|
|
8906
8892
|
return "SogouFast";
|
|
8907
8893
|
if (p.test(te))
|
|
8908
8894
|
return "UC";
|
|
@@ -8984,33 +8970,33 @@ const nt = (e, t, n) => {
|
|
|
8984
8970
|
if (window.navigator.sendBeacon)
|
|
8985
8971
|
window.navigator.sendBeacon(Vt, i);
|
|
8986
8972
|
else {
|
|
8987
|
-
const
|
|
8973
|
+
const a = document.body;
|
|
8988
8974
|
let p = new Image();
|
|
8989
8975
|
p.src = Vt + "?data=" + i, p.onload = p.onerror = function() {
|
|
8990
|
-
|
|
8991
|
-
},
|
|
8976
|
+
a.removeChild(p), p = null;
|
|
8977
|
+
}, a.append(p);
|
|
8992
8978
|
}
|
|
8993
8979
|
};
|
|
8994
8980
|
function M0({ components: e = [] } = {}) {
|
|
8995
8981
|
const t = [];
|
|
8996
|
-
function n(l, i,
|
|
8997
|
-
l.component(i) || l.component(i,
|
|
8982
|
+
function n(l, i, a) {
|
|
8983
|
+
l.component(i) || l.component(i, a);
|
|
8998
8984
|
}
|
|
8999
8985
|
function c(l, i) {
|
|
9000
|
-
if (!t.includes(l) && (t.push(l), e.forEach((
|
|
9001
|
-
const { name: p, alias: _ } =
|
|
9002
|
-
n(l, p,
|
|
9003
|
-
n(l, M,
|
|
8986
|
+
if (!t.includes(l) && (t.push(l), e.forEach((a) => {
|
|
8987
|
+
const { name: p, alias: _ } = a;
|
|
8988
|
+
n(l, p, a), _ && _.forEach((M) => {
|
|
8989
|
+
n(l, M, a);
|
|
9004
8990
|
});
|
|
9005
8991
|
}), i)) {
|
|
9006
8992
|
const {
|
|
9007
|
-
monitor:
|
|
8993
|
+
monitor: a = !1,
|
|
9008
8994
|
monitorFn: p,
|
|
9009
8995
|
version: _ = !0,
|
|
9010
8996
|
language: M = !1,
|
|
9011
8997
|
local: D = "zh-CN"
|
|
9012
8998
|
} = i, z = $e("theme", !1), v = $e("lang", D);
|
|
9013
|
-
If(M), ea(v), ta(z), Ce.global.locale.value = v, _ && b0(),
|
|
8999
|
+
If(M), ea(v), ta(z), Ce.global.locale.value = v, _ && b0(), a && C0(l, a, p);
|
|
9014
9000
|
}
|
|
9015
9001
|
}
|
|
9016
9002
|
return {
|