@unizhen/ui 0.1.71 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ui.js +506 -504
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as
|
|
2
|
-
import { NButton as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as ee, resolveDynamicComponent as O, toDisplayString as k, useId as te, vShow as ne, watch as A, watchEffect as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
|
|
2
|
+
import { NButton as I, NButtonGroup as L, NCascader as re, NCheckbox as ie, NCheckboxGroup as ae, NColorPicker as R, NConfigProvider as oe, NDataTable as se, NDatePicker as ce, NDivider as le, NDrawer as ue, NDrawerContent as de, NDropdown as z, NEllipsis as fe, NFlex as pe, NForm as me, NFormItem as he, NGrid as ge, NGridItem as _e, NIcon as B, NImage as ve, NImageGroup as ye, NInput as be, NInputGroup as xe, NInputGroupLabel as Se, NInputNumber as Ce, NModal as we, NPagination as Te, NPopconfirm as Ee, NPopover as De, NRadio as Oe, NRadioGroup as ke, NSelect as Ae, NSkeleton as je, NSpace as Me, NSpin as Ne, NSwitch as Pe, NTabPane as Fe, NTabs as Ie, NTimePicker as Le, NTooltip as Re, NUpload as ze, NUploadDragger as Be, createDiscreteApi as Ve, darkTheme as V, dateZhCN as He, useNotification as Ue, zhCN as We } from "naive-ui";
|
|
3
3
|
import Ge from "axios";
|
|
4
4
|
import { createRouter as Ke, createWebHistory as qe, useRoute as Je, useRouter as Ye } from "vue-router";
|
|
5
5
|
import { createI18n as Xe, useI18n as Ze } from "vue-i18n";
|
|
@@ -2012,7 +2012,7 @@ var Fu = /*#__PURE__*/ U(Mu, [["render", Pu]]), Iu = /* @__PURE__ */ ut({
|
|
|
2012
2012
|
}
|
|
2013
2013
|
n.value = e;
|
|
2014
2014
|
};
|
|
2015
|
-
return r(e.icon),
|
|
2015
|
+
return r(e.icon), A(() => e.icon, (e) => {
|
|
2016
2016
|
r(e);
|
|
2017
2017
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
2018
2018
|
}
|
|
@@ -2505,7 +2505,7 @@ var Td = "/apiserver/", Ed = () => {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
2507
2507
|
}
|
|
2508
|
-
return e.icon && (o.icon = () => f(B, {}, { default: () => f(Lu, { icon: e.icon }, { default: () => null }) })), f(
|
|
2508
|
+
return e.icon && (o.icon = () => f(B, {}, { default: () => f(Lu, { icon: e.icon }, { default: () => null }) })), f(I, a, o);
|
|
2509
2509
|
}, Hd = (e, t, n, r, i) => {
|
|
2510
2510
|
let a = { placement: "left" };
|
|
2511
2511
|
if (typeof t.onClick == "string") {
|
|
@@ -2646,7 +2646,7 @@ var Td = "/apiserver/", Ed = () => {
|
|
|
2646
2646
|
name: "UzBack",
|
|
2647
2647
|
components: {
|
|
2648
2648
|
ArrowNarrowLeft: on,
|
|
2649
|
-
NButton:
|
|
2649
|
+
NButton: I,
|
|
2650
2650
|
NIcon: B
|
|
2651
2651
|
},
|
|
2652
2652
|
props: {
|
|
@@ -2674,11 +2674,11 @@ function ef(e, t, r, i, o, s) {
|
|
|
2674
2674
|
quaternary: "",
|
|
2675
2675
|
onClick: e.back
|
|
2676
2676
|
}, {
|
|
2677
|
-
icon:
|
|
2678
|
-
default:
|
|
2677
|
+
icon: M(() => [l(u, null, {
|
|
2678
|
+
default: M(() => [l(c)]),
|
|
2679
2679
|
_: 1
|
|
2680
2680
|
})]),
|
|
2681
|
-
default:
|
|
2681
|
+
default: M(() => [a("span", null, k(e.text || e.$t("Common.back")), 1)]),
|
|
2682
2682
|
_: 1
|
|
2683
2683
|
}, 8, ["onClick"]);
|
|
2684
2684
|
}
|
|
@@ -2897,12 +2897,12 @@ var Mf = /*#__PURE__*/ U(uf, [["render", jf]]), Nf = d({
|
|
|
2897
2897
|
NDatePicker: ce,
|
|
2898
2898
|
NTimePicker: Le,
|
|
2899
2899
|
NSwitch: Pe,
|
|
2900
|
-
NColorPicker:
|
|
2900
|
+
NColorPicker: R,
|
|
2901
2901
|
NCheckbox: ie,
|
|
2902
|
-
NCheckboxGroup:
|
|
2902
|
+
NCheckboxGroup: ae,
|
|
2903
2903
|
NCascader: re,
|
|
2904
2904
|
NTooltip: Re,
|
|
2905
|
-
NDropdown:
|
|
2905
|
+
NDropdown: z
|
|
2906
2906
|
},
|
|
2907
2907
|
props: {
|
|
2908
2908
|
item: {
|
|
@@ -3020,7 +3020,7 @@ var Mf = /*#__PURE__*/ U(uf, [["render", jf]]), Nf = d({
|
|
|
3020
3020
|
}
|
|
3021
3021
|
}), Pf = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3022
3022
|
function Ff(t, r, s, u, d, f) {
|
|
3023
|
-
let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"),
|
|
3023
|
+
let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), ee = D("NSwitch"), O = D("UzFormItemUpload");
|
|
3024
3024
|
return t.item.input === "input" ? (x(), n(p, {
|
|
3025
3025
|
key: 0,
|
|
3026
3026
|
value: t.formValue[t.item.key],
|
|
@@ -3040,11 +3040,11 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3042
3042
|
name: "prefix",
|
|
3043
|
-
fn:
|
|
3043
|
+
fn: M(() => [c(k(t.item.params.prefix), 1)]),
|
|
3044
3044
|
key: "0"
|
|
3045
3045
|
} : void 0, t.item.params.suffix ? {
|
|
3046
3046
|
name: "suffix",
|
|
3047
|
-
fn:
|
|
3047
|
+
fn: M(() => [c(k(t.item.params.suffix), 1)]),
|
|
3048
3048
|
key: "1"
|
|
3049
3049
|
} : void 0]), 1032, [
|
|
3050
3050
|
"value",
|
|
@@ -3076,7 +3076,7 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3076
3076
|
t.showDropdown = !1;
|
|
3077
3077
|
}
|
|
3078
3078
|
}, {
|
|
3079
|
-
default:
|
|
3079
|
+
default: M(() => [l(p, {
|
|
3080
3080
|
value: t.formValue[t.item.key],
|
|
3081
3081
|
"show-password-on": "click",
|
|
3082
3082
|
type: t.item.params.type,
|
|
@@ -3094,11 +3094,11 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3094
3094
|
}
|
|
3095
3095
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3096
3096
|
name: "prefix",
|
|
3097
|
-
fn:
|
|
3097
|
+
fn: M(() => [c(k(t.item.params.prefix), 1)]),
|
|
3098
3098
|
key: "0"
|
|
3099
3099
|
} : void 0, t.item.params.suffix ? {
|
|
3100
3100
|
name: "suffix",
|
|
3101
|
-
fn:
|
|
3101
|
+
fn: M(() => [c(k(t.item.params.suffix), 1)]),
|
|
3102
3102
|
key: "1"
|
|
3103
3103
|
} : void 0]), 1032, [
|
|
3104
3104
|
"value",
|
|
@@ -3136,11 +3136,11 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3136
3136
|
}
|
|
3137
3137
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3138
3138
|
name: "prefix",
|
|
3139
|
-
fn:
|
|
3139
|
+
fn: M(() => [c(k(t.item.params.prefix), 1)]),
|
|
3140
3140
|
key: "0"
|
|
3141
3141
|
} : void 0, t.item.params.suffix ? {
|
|
3142
3142
|
name: "suffix",
|
|
3143
|
-
fn:
|
|
3143
|
+
fn: M(() => [c(k(t.item.params.suffix), 1)]),
|
|
3144
3144
|
key: "1"
|
|
3145
3145
|
} : void 0]), 1032, [
|
|
3146
3146
|
"value",
|
|
@@ -3324,7 +3324,7 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3324
3324
|
value: t.formValue[t.item.key],
|
|
3325
3325
|
disabled: t.checkDisabled()
|
|
3326
3326
|
}, {
|
|
3327
|
-
default:
|
|
3327
|
+
default: M(() => [a("div", Pf, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
|
|
3328
3328
|
key: e.value,
|
|
3329
3329
|
label: e.label,
|
|
3330
3330
|
value: e.value
|
|
@@ -3363,7 +3363,7 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3363
3363
|
"value",
|
|
3364
3364
|
"disabled",
|
|
3365
3365
|
"class"
|
|
3366
|
-
])) : t.item.input === "switch" ? (x(), n(
|
|
3366
|
+
])) : t.item.input === "switch" ? (x(), n(ee, {
|
|
3367
3367
|
key: 12,
|
|
3368
3368
|
"checked-value": 1,
|
|
3369
3369
|
"unchecked-value": 0,
|
|
@@ -3375,13 +3375,13 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3375
3375
|
}
|
|
3376
3376
|
}, o({ _: 2 }, [t.item.params.checked ? {
|
|
3377
3377
|
name: "checked",
|
|
3378
|
-
fn:
|
|
3378
|
+
fn: M(() => [c(k(t.item.params.checked), 1)]),
|
|
3379
3379
|
key: "0"
|
|
3380
3380
|
} : void 0, t.item.params.unchecked ? {
|
|
3381
3381
|
name: "unchecked",
|
|
3382
|
-
fn:
|
|
3382
|
+
fn: M(() => [c(k(t.item.params.unchecked), 1)]),
|
|
3383
3383
|
key: "1"
|
|
3384
|
-
} : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(
|
|
3384
|
+
} : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(O, {
|
|
3385
3385
|
key: 13,
|
|
3386
3386
|
value: t.formValue[t.item.key],
|
|
3387
3387
|
"onUpdate:value": r[11] ||= (e) => t.formValue[t.item.key] = e,
|
|
@@ -3399,7 +3399,7 @@ var If = /*#__PURE__*/ U(Nf, [["render", Ff]]), Lf = d({
|
|
|
3399
3399
|
NForm: me,
|
|
3400
3400
|
NFormItem: he,
|
|
3401
3401
|
NDivider: le,
|
|
3402
|
-
NButton:
|
|
3402
|
+
NButton: I,
|
|
3403
3403
|
NIcon: B,
|
|
3404
3404
|
UzFormItem: If,
|
|
3405
3405
|
Plus: dc
|
|
@@ -3571,7 +3571,7 @@ var If = /*#__PURE__*/ U(Nf, [["render", Ff]]), Lf = d({
|
|
|
3571
3571
|
manual: () => {
|
|
3572
3572
|
s.value = e.value, _(e.items);
|
|
3573
3573
|
}
|
|
3574
|
-
}),
|
|
3574
|
+
}), A(() => e.value, (t, n) => {
|
|
3575
3575
|
JSON.stringify(t) !== JSON.stringify(n) && (s.value = t, c.value.length === 0 && _(e.items));
|
|
3576
3576
|
}, {
|
|
3577
3577
|
deep: !0,
|
|
@@ -3609,7 +3609,7 @@ var If = /*#__PURE__*/ U(Nf, [["render", Ff]]), Lf = d({
|
|
|
3609
3609
|
}
|
|
3610
3610
|
}), Rf = ["onClick"];
|
|
3611
3611
|
function zf(t, o, s, u, d, f) {
|
|
3612
|
-
let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E =
|
|
3612
|
+
let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = ee("media");
|
|
3613
3613
|
return x(), i(e, null, [l(C, {
|
|
3614
3614
|
ref: "formRef",
|
|
3615
3615
|
class: "uz-w-full uz-h-full",
|
|
@@ -3619,7 +3619,7 @@ function zf(t, o, s, u, d, f) {
|
|
|
3619
3619
|
labelAlign: t.labelAlign,
|
|
3620
3620
|
labelPlacement: t.labelPlacement
|
|
3621
3621
|
}, {
|
|
3622
|
-
default:
|
|
3622
|
+
default: M(() => [N((x(), i("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), i(e, { key: u }, [t.itemShow(s) ? (x(), n(S, {
|
|
3623
3623
|
key: 0,
|
|
3624
3624
|
path: s.key,
|
|
3625
3625
|
rule: s.input === "subTable" ? void 0 : s.form.rule?.required ? s.form.rule : void 0,
|
|
@@ -3627,14 +3627,14 @@ function zf(t, o, s, u, d, f) {
|
|
|
3627
3627
|
"show-label": s.input !== "divider" && s.input !== "subTable",
|
|
3628
3628
|
"show-feedback": t.showFeedback && s.input !== "divider"
|
|
3629
3629
|
}, {
|
|
3630
|
-
label:
|
|
3630
|
+
label: M(() => [
|
|
3631
3631
|
a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
3632
3632
|
t.status !== 2 && s.source && s.form.createButton ? (x(), i("a", {
|
|
3633
3633
|
key: 0,
|
|
3634
3634
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add",
|
|
3635
3635
|
onClick: (e) => t.sourceAdd(s, u)
|
|
3636
3636
|
}, [l(m, null, {
|
|
3637
|
-
default:
|
|
3637
|
+
default: M(() => [l(p)]),
|
|
3638
3638
|
_: 1
|
|
3639
3639
|
}), o[0] ||= c(" 新增 ", -1)], 8, Rf)) : r("", !0),
|
|
3640
3640
|
s.form.showDays ? (x(), i("span", {
|
|
@@ -3642,7 +3642,7 @@ function zf(t, o, s, u, d, f) {
|
|
|
3642
3642
|
class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
3643
3643
|
}, k(t.diffDay(t.formValue[s.key])), 3)) : r("", !0)
|
|
3644
3644
|
]),
|
|
3645
|
-
default:
|
|
3645
|
+
default: M(() => [s.input === "subTable" && !s.params.quest ? (x(), n(h, {
|
|
3646
3646
|
key: 0,
|
|
3647
3647
|
ref_for: !0,
|
|
3648
3648
|
ref: "childRef",
|
|
@@ -3665,7 +3665,7 @@ function zf(t, o, s, u, d, f) {
|
|
|
3665
3665
|
key: 2,
|
|
3666
3666
|
"title-placement": s.params.placement
|
|
3667
3667
|
}, {
|
|
3668
|
-
default:
|
|
3668
|
+
default: M(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
|
|
3669
3669
|
_: 2
|
|
3670
3670
|
}, 1032, ["title-placement"])) : (x(), n(b, {
|
|
3671
3671
|
key: 3,
|
|
@@ -3702,7 +3702,7 @@ var Bf = /*#__PURE__*/ U(Lf, [["render", zf]]), Vf = d({
|
|
|
3702
3702
|
components: {
|
|
3703
3703
|
NForm: me,
|
|
3704
3704
|
NFormItem: he,
|
|
3705
|
-
NButton:
|
|
3705
|
+
NButton: I,
|
|
3706
3706
|
NIcon: B,
|
|
3707
3707
|
NDivider: le,
|
|
3708
3708
|
UzFormItem: If,
|
|
@@ -3787,9 +3787,9 @@ var Bf = /*#__PURE__*/ U(Lf, [["render", zf]]), Vf = d({
|
|
|
3787
3787
|
};
|
|
3788
3788
|
return y(() => {
|
|
3789
3789
|
a.value = e.value, d();
|
|
3790
|
-
}), t({ changeItem: l }),
|
|
3790
|
+
}), t({ changeItem: l }), A(() => e.items, () => {
|
|
3791
3791
|
d();
|
|
3792
|
-
}, { deep: !0 }),
|
|
3792
|
+
}, { deep: !0 }), A(() => e.value, (e) => {
|
|
3793
3793
|
a.value = e;
|
|
3794
3794
|
}, { deep: !0 }), {
|
|
3795
3795
|
formRef: i,
|
|
@@ -3823,7 +3823,7 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3823
3823
|
labelPlacement: t.labelPlacement,
|
|
3824
3824
|
onClick: t.onCancel
|
|
3825
3825
|
}, {
|
|
3826
|
-
default:
|
|
3826
|
+
default: M(() => [l(C, {
|
|
3827
3827
|
modelValue: t.formItems,
|
|
3828
3828
|
"onUpdate:modelValue": o[0] ||= (e) => t.formItems = e,
|
|
3829
3829
|
animation: 200,
|
|
@@ -3837,33 +3837,33 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3837
3837
|
onAdd: t.onDragChange,
|
|
3838
3838
|
onEnd: t.onDragChange
|
|
3839
3839
|
}, {
|
|
3840
|
-
default:
|
|
3840
|
+
default: M(() => [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), n(S, {
|
|
3841
3841
|
path: s.key,
|
|
3842
3842
|
rule: s.form.rule?.required ? s.form.rule : void 0,
|
|
3843
3843
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? "select" : s.input === "group" ? "group" : ""]),
|
|
3844
|
-
onClick:
|
|
3844
|
+
onClick: F((e) => t.onModeClick(s, u), ["stop"]),
|
|
3845
3845
|
key: u,
|
|
3846
3846
|
style: _(`grid-column: span ${s.form.span || 6} / span ${s.form.span || 6};`),
|
|
3847
3847
|
"show-label": s.input !== "divider" && s.input !== "subTable",
|
|
3848
3848
|
"show-feedback": t.showFeedback && s.input !== "divider"
|
|
3849
3849
|
}, {
|
|
3850
|
-
label:
|
|
3850
|
+
label: M(() => [
|
|
3851
3851
|
a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
3852
3852
|
s.source && s.form.createButton ? (x(), i("a", Hf, [l(m, null, {
|
|
3853
|
-
default:
|
|
3853
|
+
default: M(() => [l(p)]),
|
|
3854
3854
|
_: 1
|
|
3855
3855
|
}), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
|
|
3856
3856
|
s.form.showDays ? (x(), i("span", Uf, " showDays ")) : r("", !0)
|
|
3857
3857
|
]),
|
|
3858
|
-
default:
|
|
3858
|
+
default: M(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
|
|
3859
3859
|
key: 0,
|
|
3860
3860
|
size: "small",
|
|
3861
3861
|
type: "error",
|
|
3862
3862
|
class: "uz-form-delete",
|
|
3863
|
-
onClick:
|
|
3863
|
+
onClick: F(t.onDelete, ["stop"])
|
|
3864
3864
|
}, {
|
|
3865
|
-
icon:
|
|
3866
|
-
default:
|
|
3865
|
+
icon: M(() => [l(m, { color: "#FFF" }, {
|
|
3866
|
+
default: M(() => [l(h)]),
|
|
3867
3867
|
_: 1
|
|
3868
3868
|
})]),
|
|
3869
3869
|
_: 1
|
|
@@ -3889,26 +3889,26 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3889
3889
|
onAdd: t.onDragChange,
|
|
3890
3890
|
onEnd: t.onDragChange
|
|
3891
3891
|
}, {
|
|
3892
|
-
default:
|
|
3892
|
+
default: M(() => [(x(!0), i(e, null, T(s.params.children, (e, i) => (x(), n(S, {
|
|
3893
3893
|
label: e.input === "divider" ? "" : typeof e.label == "function" ? e.label() : e.label,
|
|
3894
3894
|
path: e.key,
|
|
3895
3895
|
rule: e.form.rule?.required ? e.form.rule : void 0,
|
|
3896
3896
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === i ? "select" : ""]),
|
|
3897
|
-
onClick:
|
|
3897
|
+
onClick: F((n) => t.onModeClick(e, u, i), ["stop"]),
|
|
3898
3898
|
key: i,
|
|
3899
3899
|
style: _(`grid-column: span ${e.form.span || 6} / span ${e.form.span || 6};`),
|
|
3900
3900
|
"show-label": e.input !== "divider" && e.input !== "subTable",
|
|
3901
3901
|
"show-feedback": t.showFeedback && e.input !== "divider"
|
|
3902
3902
|
}, {
|
|
3903
|
-
default:
|
|
3903
|
+
default: M(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === i ? (x(), n(v, {
|
|
3904
3904
|
key: 0,
|
|
3905
3905
|
size: "small",
|
|
3906
3906
|
type: "error",
|
|
3907
3907
|
class: "uz-form-delete",
|
|
3908
|
-
onClick:
|
|
3908
|
+
onClick: F(t.onDelete, ["stop"])
|
|
3909
3909
|
}, {
|
|
3910
|
-
icon:
|
|
3911
|
-
default:
|
|
3910
|
+
icon: M(() => [l(m, { color: "#FFF" }, {
|
|
3911
|
+
default: M(() => [l(h)]),
|
|
3912
3912
|
_: 1
|
|
3913
3913
|
})]),
|
|
3914
3914
|
_: 1
|
|
@@ -3942,7 +3942,7 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3942
3942
|
key: 3,
|
|
3943
3943
|
"title-placement": s.params.placement
|
|
3944
3944
|
}, {
|
|
3945
|
-
default:
|
|
3945
|
+
default: M(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
|
|
3946
3946
|
_: 2
|
|
3947
3947
|
}, 1032, ["title-placement"])) : (x(), n(b, {
|
|
3948
3948
|
key: 4,
|
|
@@ -3984,7 +3984,7 @@ var Gf = /*#__PURE__*/ U(Vf, [["render", Wf]]), Kf = d({
|
|
|
3984
3984
|
name: "UzFormItemUpload",
|
|
3985
3985
|
components: {
|
|
3986
3986
|
NUpload: ze,
|
|
3987
|
-
NButton:
|
|
3987
|
+
NButton: I,
|
|
3988
3988
|
NIcon: B,
|
|
3989
3989
|
NImage: ve,
|
|
3990
3990
|
NPopover: De,
|
|
@@ -4083,7 +4083,7 @@ var Gf = /*#__PURE__*/ U(Vf, [["render", Wf]]), Kf = d({
|
|
|
4083
4083
|
};
|
|
4084
4084
|
return y(() => {
|
|
4085
4085
|
l();
|
|
4086
|
-
}),
|
|
4086
|
+
}), A(() => e.value, () => {
|
|
4087
4087
|
l();
|
|
4088
4088
|
}), {
|
|
4089
4089
|
formValue: i,
|
|
@@ -4103,7 +4103,7 @@ function Xf(t, o, s, u, d, f) {
|
|
|
4103
4103
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
4104
4104
|
show: t.show
|
|
4105
4105
|
}, {
|
|
4106
|
-
default:
|
|
4106
|
+
default: M(() => [t.status === 2 ? r("", !0) : (x(), n(g, {
|
|
4107
4107
|
key: 0,
|
|
4108
4108
|
accept: t.item.params.accept,
|
|
4109
4109
|
max: t.item.params.max,
|
|
@@ -4114,9 +4114,9 @@ function Xf(t, o, s, u, d, f) {
|
|
|
4114
4114
|
class: "!uz-w-20",
|
|
4115
4115
|
"directory-dnd": ""
|
|
4116
4116
|
}, {
|
|
4117
|
-
default:
|
|
4118
|
-
default:
|
|
4119
|
-
default:
|
|
4117
|
+
default: M(() => [l(h, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
|
|
4118
|
+
default: M(() => [l(m, { size: "28" }, {
|
|
4119
|
+
default: M(() => [l(p)]),
|
|
4120
4120
|
_: 1
|
|
4121
4121
|
})]),
|
|
4122
4122
|
_: 1
|
|
@@ -4134,11 +4134,11 @@ function Xf(t, o, s, u, d, f) {
|
|
|
4134
4134
|
width: "80",
|
|
4135
4135
|
src: e.url
|
|
4136
4136
|
}, {
|
|
4137
|
-
error:
|
|
4137
|
+
error: M(() => [l(m, {
|
|
4138
4138
|
size: "60",
|
|
4139
4139
|
color: "lightGrey"
|
|
4140
4140
|
}, {
|
|
4141
|
-
default:
|
|
4141
|
+
default: M(() => [l(_)]),
|
|
4142
4142
|
_: 1
|
|
4143
4143
|
})]),
|
|
4144
4144
|
_: 1
|
|
@@ -4149,23 +4149,23 @@ function Xf(t, o, s, u, d, f) {
|
|
|
4149
4149
|
class: "uz-cursor-pointer",
|
|
4150
4150
|
onClick: (n) => t.openFile(e.url)
|
|
4151
4151
|
}, {
|
|
4152
|
-
default:
|
|
4152
|
+
default: M(() => [l(y)]),
|
|
4153
4153
|
_: 1
|
|
4154
4154
|
}, 8, ["onClick"])), a("div", qf, [a("div", {
|
|
4155
4155
|
class: "uz-form-upload-title uz-truncate",
|
|
4156
4156
|
title: e.name
|
|
4157
4157
|
}, k(e.name), 9, Jf), t.status === 2 ? r("", !0) : (x(), i("div", Yf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
4158
|
-
trigger:
|
|
4158
|
+
trigger: M(() => [l(S, {
|
|
4159
4159
|
size: "small",
|
|
4160
4160
|
tertiary: ""
|
|
4161
4161
|
}, {
|
|
4162
|
-
icon:
|
|
4163
|
-
default:
|
|
4162
|
+
icon: M(() => [l(m, { size: "14" }, {
|
|
4163
|
+
default: M(() => [l(b)]),
|
|
4164
4164
|
_: 1
|
|
4165
4165
|
})]),
|
|
4166
4166
|
_: 1
|
|
4167
4167
|
})]),
|
|
4168
|
-
default:
|
|
4168
|
+
default: M(() => [o[0] ||= c(" 确认删除? ", -1)]),
|
|
4169
4169
|
_: 1
|
|
4170
4170
|
}, 8, ["onPositiveClick"]), l(S, {
|
|
4171
4171
|
tag: "a",
|
|
@@ -4174,8 +4174,8 @@ function Xf(t, o, s, u, d, f) {
|
|
|
4174
4174
|
size: "small",
|
|
4175
4175
|
tertiary: ""
|
|
4176
4176
|
}, {
|
|
4177
|
-
icon:
|
|
4178
|
-
default:
|
|
4177
|
+
icon: M(() => [l(m, { size: "14" }, {
|
|
4178
|
+
default: M(() => [l(w)]),
|
|
4179
4179
|
_: 1
|
|
4180
4180
|
})]),
|
|
4181
4181
|
_: 1
|
|
@@ -4200,7 +4200,7 @@ var Zf = /*#__PURE__*/ U(Kf, [["render", Xf], ["__scopeId", "data-v-d4bd872d"]])
|
|
|
4200
4200
|
} },
|
|
4201
4201
|
setup(e) {
|
|
4202
4202
|
let t = w([]);
|
|
4203
|
-
return
|
|
4203
|
+
return j(() => {
|
|
4204
4204
|
try {
|
|
4205
4205
|
e.value && (t.value = rt.parse(e.value));
|
|
4206
4206
|
} catch {
|
|
@@ -4233,16 +4233,16 @@ var Zf = /*#__PURE__*/ U(Kf, [["render", Xf], ["__scopeId", "data-v-d4bd872d"]])
|
|
|
4233
4233
|
function ep(t, r, o, s, u, d) {
|
|
4234
4234
|
let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
|
|
4235
4235
|
return x(), n(_, null, {
|
|
4236
|
-
default:
|
|
4236
|
+
default: M(() => [a("div", $f, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
|
|
4237
4237
|
key: 0,
|
|
4238
4238
|
width: "40",
|
|
4239
4239
|
src: r
|
|
4240
4240
|
}, {
|
|
4241
|
-
error:
|
|
4241
|
+
error: M(() => [l(p, {
|
|
4242
4242
|
size: "40",
|
|
4243
4243
|
color: "lightGrey"
|
|
4244
4244
|
}, {
|
|
4245
|
-
default:
|
|
4245
|
+
default: M(() => [l(f)]),
|
|
4246
4246
|
_: 1
|
|
4247
4247
|
})]),
|
|
4248
4248
|
_: 1
|
|
@@ -4250,16 +4250,16 @@ function ep(t, r, o, s, u, d) {
|
|
|
4250
4250
|
key: 1,
|
|
4251
4251
|
trigger: "hover"
|
|
4252
4252
|
}, {
|
|
4253
|
-
trigger:
|
|
4253
|
+
trigger: M(() => [l(p, {
|
|
4254
4254
|
size: "40",
|
|
4255
4255
|
color: "lightGrey",
|
|
4256
4256
|
onClick: (e) => t.openFile(r),
|
|
4257
4257
|
class: "uz-cursor-pointer"
|
|
4258
4258
|
}, {
|
|
4259
|
-
default:
|
|
4259
|
+
default: M(() => [l(h)]),
|
|
4260
4260
|
_: 1
|
|
4261
4261
|
}, 8, ["onClick"])]),
|
|
4262
|
-
default:
|
|
4262
|
+
default: M(() => [c(k(t.getFileName(r)), 1)]),
|
|
4263
4263
|
_: 2
|
|
4264
4264
|
}, 1024))], 64))), 256))])]),
|
|
4265
4265
|
_: 1
|
|
@@ -4293,7 +4293,7 @@ var tp = /*#__PURE__*/ U(Qf, [["render", ep]]), np = d({
|
|
|
4293
4293
|
}, l = () => {
|
|
4294
4294
|
t("update:value", `${i.value}:${a.value}:${o.value}`);
|
|
4295
4295
|
};
|
|
4296
|
-
return n({ clearAll: s }),
|
|
4296
|
+
return n({ clearAll: s }), A(() => e.value, (e) => {
|
|
4297
4297
|
if (e && e.indexOf(":") > -1) {
|
|
4298
4298
|
let t = e.split(":");
|
|
4299
4299
|
i.value = t[0], a.value = t[1], o.value = t[2];
|
|
@@ -4326,7 +4326,7 @@ function ip(e, t, n, r, a, o) {
|
|
|
4326
4326
|
disabled: e.disabled,
|
|
4327
4327
|
"on-update:value": e.changeH
|
|
4328
4328
|
}, {
|
|
4329
|
-
arrow:
|
|
4329
|
+
arrow: M(() => [...t[0] ||= [c("时", -1)]]),
|
|
4330
4330
|
_: 1
|
|
4331
4331
|
}, 8, [
|
|
4332
4332
|
"value",
|
|
@@ -4341,7 +4341,7 @@ function ip(e, t, n, r, a, o) {
|
|
|
4341
4341
|
disabled: e.disabled,
|
|
4342
4342
|
"on-update:value": e.changeM
|
|
4343
4343
|
}, {
|
|
4344
|
-
arrow:
|
|
4344
|
+
arrow: M(() => [...t[1] ||= [c("分", -1)]]),
|
|
4345
4345
|
_: 1
|
|
4346
4346
|
}, 8, [
|
|
4347
4347
|
"value",
|
|
@@ -4356,7 +4356,7 @@ function ip(e, t, n, r, a, o) {
|
|
|
4356
4356
|
disabled: e.disabled,
|
|
4357
4357
|
"on-update:value": e.changeS
|
|
4358
4358
|
}, {
|
|
4359
|
-
arrow:
|
|
4359
|
+
arrow: M(() => [...t[2] ||= [c("秒", -1)]]),
|
|
4360
4360
|
_: 1
|
|
4361
4361
|
}, 8, [
|
|
4362
4362
|
"value",
|
|
@@ -4369,7 +4369,7 @@ function ip(e, t, n, r, a, o) {
|
|
|
4369
4369
|
var ap = /*#__PURE__*/ U(np, [["render", ip], ["__scopeId", "data-v-c90165b1"]]), op = d({
|
|
4370
4370
|
name: "UzCamera",
|
|
4371
4371
|
components: {
|
|
4372
|
-
NButton:
|
|
4372
|
+
NButton: I,
|
|
4373
4373
|
NModal: we
|
|
4374
4374
|
},
|
|
4375
4375
|
props: {
|
|
@@ -4448,7 +4448,7 @@ var ap = /*#__PURE__*/ U(np, [["render", ip], ["__scopeId", "data-v-c90165b1"]])
|
|
|
4448
4448
|
e.mode === "video" && m();
|
|
4449
4449
|
}), v(() => {
|
|
4450
4450
|
d();
|
|
4451
|
-
}),
|
|
4451
|
+
}), A([() => e.width, () => e.width], () => {
|
|
4452
4452
|
e.mode === "video" && (d(), m());
|
|
4453
4453
|
}), {
|
|
4454
4454
|
videoRef: n,
|
|
@@ -4471,7 +4471,7 @@ function dp(t, o, s, l, u, d) {
|
|
|
4471
4471
|
loading: t.loading,
|
|
4472
4472
|
onClick: t.doScan
|
|
4473
4473
|
}, {
|
|
4474
|
-
default:
|
|
4474
|
+
default: M(() => [c(k(t.$t("Common.scan")), 1)]),
|
|
4475
4475
|
_: 1
|
|
4476
4476
|
}, 8, ["loading", "onClick"])) : r("", !0),
|
|
4477
4477
|
t.mode === "button" ? (x(), n(p, {
|
|
@@ -4484,7 +4484,7 @@ function dp(t, o, s, l, u, d) {
|
|
|
4484
4484
|
"mask-closable": !1,
|
|
4485
4485
|
"on-after-leave": t.closeAll
|
|
4486
4486
|
}, {
|
|
4487
|
-
default:
|
|
4487
|
+
default: M(() => [a("div", {
|
|
4488
4488
|
class: "uz-scan-canvas-main",
|
|
4489
4489
|
style: _({
|
|
4490
4490
|
width: `${t.width}px`,
|
|
@@ -4520,8 +4520,8 @@ var fp = /*#__PURE__*/ U(op, [["render", dp]]), pp = d({
|
|
|
4520
4520
|
name: "UzSearchBar",
|
|
4521
4521
|
components: {
|
|
4522
4522
|
NIcon: B,
|
|
4523
|
-
NButton:
|
|
4524
|
-
NButtonGroup:
|
|
4523
|
+
NButton: I,
|
|
4524
|
+
NButtonGroup: L,
|
|
4525
4525
|
NGrid: ge,
|
|
4526
4526
|
NGridItem: _e,
|
|
4527
4527
|
NInputGroup: xe,
|
|
@@ -4650,7 +4650,7 @@ var fp = /*#__PURE__*/ U(op, [["render", dp]]), pp = d({
|
|
|
4650
4650
|
}
|
|
4651
4651
|
_(!0);
|
|
4652
4652
|
};
|
|
4653
|
-
return
|
|
4653
|
+
return A(() => e.data, (e) => {
|
|
4654
4654
|
S(e);
|
|
4655
4655
|
}), {
|
|
4656
4656
|
itemValue: r,
|
|
@@ -4689,30 +4689,30 @@ var fp = /*#__PURE__*/ U(op, [["render", dp]]), pp = d({
|
|
|
4689
4689
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
4690
4690
|
};
|
|
4691
4691
|
function _p(t, a, o, s, u, d) {
|
|
4692
|
-
let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"),
|
|
4692
|
+
let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), O = D("Refresh"), te = ee("media");
|
|
4693
4693
|
return x(), i("div", {
|
|
4694
4694
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
4695
|
-
onKeyup: a[1] ||=
|
|
4696
|
-
}, [t.enableHeader ? (x(), i("div", mp, [E(t.$slots, "header"),
|
|
4695
|
+
onKeyup: a[1] ||= P((e) => t.doSearch(!1), ["enter"])
|
|
4696
|
+
}, [t.enableHeader ? (x(), i("div", mp, [E(t.$slots, "header"), N((x(), i("div", hp, [l(b, {
|
|
4697
4697
|
"x-gap": "8",
|
|
4698
4698
|
"y-gap": "8",
|
|
4699
4699
|
cols: t.cols,
|
|
4700
4700
|
"collapsed-rows": 1,
|
|
4701
4701
|
collapsed: t.collapsed
|
|
4702
4702
|
}, {
|
|
4703
|
-
default:
|
|
4703
|
+
default: M(() => [
|
|
4704
4704
|
t.tabList && t.tabList.length > 0 ? (x(), n(m, {
|
|
4705
4705
|
key: 0,
|
|
4706
4706
|
span: t.gridSpan
|
|
4707
4707
|
}, {
|
|
4708
|
-
default:
|
|
4709
|
-
default:
|
|
4708
|
+
default: M(() => [l(p, null, {
|
|
4709
|
+
default: M(() => [(x(!0), i(e, null, T(t.tabList, (e) => (x(), n(f, {
|
|
4710
4710
|
key: e.value,
|
|
4711
4711
|
type: t.tabButtonType(e),
|
|
4712
4712
|
secondary: "",
|
|
4713
4713
|
onClick: (n) => t.tabItemChange(e.value)
|
|
4714
4714
|
}, {
|
|
4715
|
-
default:
|
|
4715
|
+
default: M(() => [c(k(e.label), 1)]),
|
|
4716
4716
|
_: 2
|
|
4717
4717
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
4718
4718
|
_: 1
|
|
@@ -4727,17 +4727,17 @@ function _p(t, a, o, s, u, d) {
|
|
|
4727
4727
|
key: `${r}_${Date.now()}`,
|
|
4728
4728
|
span: e.search.show ? e.search.span === 1 ? t.gridSpan : e.search.span || t.gridSpan : 0
|
|
4729
4729
|
}, {
|
|
4730
|
-
default:
|
|
4731
|
-
default:
|
|
4730
|
+
default: M(() => [l(y, null, {
|
|
4731
|
+
default: M(() => [l(_, {
|
|
4732
4732
|
trigger: "hover",
|
|
4733
4733
|
placement: "top-start",
|
|
4734
4734
|
overlap: ""
|
|
4735
4735
|
}, {
|
|
4736
|
-
trigger:
|
|
4737
|
-
default:
|
|
4736
|
+
trigger: M(() => [l(h, { class: "uz-group-label" }, {
|
|
4737
|
+
default: M(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4738
4738
|
_: 2
|
|
4739
4739
|
}, 1024)]),
|
|
4740
|
-
default:
|
|
4740
|
+
default: M(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4741
4741
|
_: 2
|
|
4742
4742
|
}, 1024), l(v, {
|
|
4743
4743
|
item: e,
|
|
@@ -4756,8 +4756,8 @@ function _p(t, a, o, s, u, d) {
|
|
|
4756
4756
|
quaternary: "",
|
|
4757
4757
|
onClick: t.showMore
|
|
4758
4758
|
}, {
|
|
4759
|
-
icon:
|
|
4760
|
-
default:
|
|
4759
|
+
icon: M(() => [l(C, { class: g(["uz-search-more", t.collapsed ? void 0 : "uz-search-rotate"]) }, {
|
|
4760
|
+
default: M(() => [l(S)]),
|
|
4761
4761
|
_: 1
|
|
4762
4762
|
}, 8, ["class"])]),
|
|
4763
4763
|
_: 1
|
|
@@ -4768,14 +4768,14 @@ function _p(t, a, o, s, u, d) {
|
|
|
4768
4768
|
secondary: "",
|
|
4769
4769
|
onClick: a[0] ||= (e) => t.doSearch(!1)
|
|
4770
4770
|
}, {
|
|
4771
|
-
icon:
|
|
4771
|
+
icon: M(() => [l(C, {
|
|
4772
4772
|
size: "18",
|
|
4773
4773
|
color: "#0086ff"
|
|
4774
4774
|
}, {
|
|
4775
|
-
default:
|
|
4775
|
+
default: M(() => [l(w)]),
|
|
4776
4776
|
_: 1
|
|
4777
4777
|
})]),
|
|
4778
|
-
default:
|
|
4778
|
+
default: M(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4779
4779
|
_: 1
|
|
4780
4780
|
}, 8, ["loading"])) : r("", !0),
|
|
4781
4781
|
t.defaultValue && Object.keys(t.defaultValue).length > 0 ? (x(), n(f, {
|
|
@@ -4784,11 +4784,11 @@ function _p(t, a, o, s, u, d) {
|
|
|
4784
4784
|
secondary: "",
|
|
4785
4785
|
onClick: t.clearAll
|
|
4786
4786
|
}, {
|
|
4787
|
-
icon:
|
|
4788
|
-
default:
|
|
4787
|
+
icon: M(() => [l(C, null, {
|
|
4788
|
+
default: M(() => [l(O)]),
|
|
4789
4789
|
_: 1
|
|
4790
4790
|
})]),
|
|
4791
|
-
default:
|
|
4791
|
+
default: M(() => [c(" " + k(t.$t("Common.reset")), 1)]),
|
|
4792
4792
|
_: 1
|
|
4793
4793
|
}, 8, ["loading", "onClick"])) : r("", !0),
|
|
4794
4794
|
E(t.$slots, "action")
|
|
@@ -4798,9 +4798,9 @@ var vp = /*#__PURE__*/ U(pp, [["render", _p]]), yp = d({
|
|
|
4798
4798
|
name: "UzSearchMobileBar",
|
|
4799
4799
|
components: {
|
|
4800
4800
|
NIcon: B,
|
|
4801
|
-
NButton:
|
|
4801
|
+
NButton: I,
|
|
4802
4802
|
NDrawer: ue,
|
|
4803
|
-
NDrawerContent:
|
|
4803
|
+
NDrawerContent: de,
|
|
4804
4804
|
NGrid: ge,
|
|
4805
4805
|
NGridItem: _e,
|
|
4806
4806
|
NInputGroup: xe,
|
|
@@ -4875,7 +4875,7 @@ var vp = /*#__PURE__*/ U(pp, [["render", _p]]), yp = d({
|
|
|
4875
4875
|
}
|
|
4876
4876
|
c(!0);
|
|
4877
4877
|
};
|
|
4878
|
-
return
|
|
4878
|
+
return A(() => e.data, (e) => {
|
|
4879
4879
|
d(e);
|
|
4880
4880
|
}), {
|
|
4881
4881
|
drawer: i,
|
|
@@ -4893,11 +4893,11 @@ function Cp(t, o, s, u, d, f) {
|
|
|
4893
4893
|
secondary: "",
|
|
4894
4894
|
onClick: o[0] ||= (e) => t.drawer = !0
|
|
4895
4895
|
}, {
|
|
4896
|
-
icon:
|
|
4897
|
-
default:
|
|
4896
|
+
icon: M(() => [l(m, { size: "18" }, {
|
|
4897
|
+
default: M(() => [l(p)]),
|
|
4898
4898
|
_: 1
|
|
4899
4899
|
})]),
|
|
4900
|
-
default:
|
|
4900
|
+
default: M(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4901
4901
|
_: 1
|
|
4902
4902
|
})) : r("", !0), E(t.$slots, "action")])]), l(w, {
|
|
4903
4903
|
show: t.drawer,
|
|
@@ -4909,21 +4909,21 @@ function Cp(t, o, s, u, d, f) {
|
|
|
4909
4909
|
"auto-focus": !1,
|
|
4910
4910
|
"close-on-esc": !1
|
|
4911
4911
|
}, {
|
|
4912
|
-
default:
|
|
4912
|
+
default: M(() => [l(C, {
|
|
4913
4913
|
title: "查询",
|
|
4914
4914
|
closable: ""
|
|
4915
4915
|
}, {
|
|
4916
|
-
footer:
|
|
4916
|
+
footer: M(() => [a("div", Sp, [l(h, {
|
|
4917
4917
|
secondary: "",
|
|
4918
4918
|
loading: t.loading,
|
|
4919
4919
|
onClick: t.clearAll,
|
|
4920
4920
|
class: "uz-flex-1"
|
|
4921
4921
|
}, {
|
|
4922
|
-
icon:
|
|
4923
|
-
default:
|
|
4922
|
+
icon: M(() => [l(m, null, {
|
|
4923
|
+
default: M(() => [l(S)]),
|
|
4924
4924
|
_: 1
|
|
4925
4925
|
})]),
|
|
4926
|
-
default:
|
|
4926
|
+
default: M(() => [c(" " + k(t.$t("Common.reset")), 1)]),
|
|
4927
4927
|
_: 1
|
|
4928
4928
|
}, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
|
|
4929
4929
|
key: 0,
|
|
@@ -4932,25 +4932,25 @@ function Cp(t, o, s, u, d, f) {
|
|
|
4932
4932
|
class: "uz-flex-1",
|
|
4933
4933
|
onClick: o[1] ||= (e) => t.doSearch(!1)
|
|
4934
4934
|
}, {
|
|
4935
|
-
icon:
|
|
4936
|
-
default:
|
|
4935
|
+
icon: M(() => [l(m, { size: "18" }, {
|
|
4936
|
+
default: M(() => [l(p)]),
|
|
4937
4937
|
_: 1
|
|
4938
4938
|
})]),
|
|
4939
|
-
default:
|
|
4939
|
+
default: M(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4940
4940
|
_: 1
|
|
4941
4941
|
}, 8, ["loading"])) : r("", !0)])]),
|
|
4942
|
-
default:
|
|
4942
|
+
default: M(() => [l(b, {
|
|
4943
4943
|
"x-gap": "8",
|
|
4944
4944
|
"y-gap": "8",
|
|
4945
4945
|
cols: "1"
|
|
4946
4946
|
}, {
|
|
4947
|
-
default:
|
|
4947
|
+
default: M(() => [(x(!0), i(e, null, T(t.itemData, (e, r) => (x(), n(y, {
|
|
4948
4948
|
key: `${r}_${Date.now()}`,
|
|
4949
4949
|
span: +!!e.search.show
|
|
4950
4950
|
}, {
|
|
4951
|
-
default:
|
|
4952
|
-
default:
|
|
4953
|
-
default:
|
|
4951
|
+
default: M(() => [l(v, null, {
|
|
4952
|
+
default: M(() => [l(g, { class: "uz-group-label" }, {
|
|
4953
|
+
default: M(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4954
4954
|
_: 2
|
|
4955
4955
|
}, 1024), l(_, {
|
|
4956
4956
|
item: e,
|
|
@@ -5410,89 +5410,89 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5410
5410
|
...e.table,
|
|
5411
5411
|
children: e.params.children.map((e) => e.key)
|
|
5412
5412
|
})) : (m.push(e), h.push(e.key));
|
|
5413
|
-
for await (let [e,
|
|
5414
|
-
if (
|
|
5415
|
-
let { sourceData: t, n } = await Pp(
|
|
5416
|
-
if (t && Array.isArray(t)) if (
|
|
5417
|
-
let e =
|
|
5418
|
-
|
|
5419
|
-
} else
|
|
5420
|
-
} else
|
|
5413
|
+
for await (let [e, s] of m.entries()) {
|
|
5414
|
+
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
5415
|
+
let { sourceData: t, n } = await Pp(s.source, a && e === 0);
|
|
5416
|
+
if (t && Array.isArray(t)) if (s.sourceFn) {
|
|
5417
|
+
let e = s.sourceFn, n = Function("sourceData", e);
|
|
5418
|
+
s.params.options = n(t);
|
|
5419
|
+
} else s.params.options = jp(s, t, n);
|
|
5420
|
+
} else s.params.options = [{
|
|
5421
5421
|
label: "加载中......",
|
|
5422
5422
|
value: "loading",
|
|
5423
5423
|
disabled: !0
|
|
5424
|
-
}],
|
|
5425
|
-
let { sourceData: e, n: t } = await Pp(
|
|
5426
|
-
if (e && Array.isArray(e)) if (
|
|
5427
|
-
let t =
|
|
5424
|
+
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5425
|
+
let { sourceData: e, n: t } = await Pp(s.source);
|
|
5426
|
+
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5427
|
+
let t = s.sourceFn;
|
|
5428
5428
|
return Function("sourceData", t)(e);
|
|
5429
|
-
} else return jp(
|
|
5429
|
+
} else return jp(s, e, t);
|
|
5430
5430
|
};
|
|
5431
|
-
!
|
|
5432
|
-
let t =
|
|
5431
|
+
!s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
|
|
5432
|
+
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
5433
5433
|
if (t) return t.label;
|
|
5434
|
-
}),
|
|
5435
|
-
return f(tp, { value: e[
|
|
5436
|
-
})
|
|
5437
|
-
let
|
|
5438
|
-
input:
|
|
5439
|
-
title:
|
|
5440
|
-
key:
|
|
5441
|
-
params:
|
|
5442
|
-
form:
|
|
5434
|
+
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
5435
|
+
return f(tp, { value: e[s.key] }, { default: () => null });
|
|
5436
|
+
});
|
|
5437
|
+
let p = {
|
|
5438
|
+
input: s.input,
|
|
5439
|
+
title: s.label,
|
|
5440
|
+
key: s.key,
|
|
5441
|
+
params: s.params,
|
|
5442
|
+
form: s.form,
|
|
5443
5443
|
ellipsisComponent: "performant-ellipsis",
|
|
5444
|
-
...
|
|
5445
|
-
width: Number(
|
|
5446
|
-
ellipsis:
|
|
5444
|
+
...s.table,
|
|
5445
|
+
width: Number(s.table.width || 140),
|
|
5446
|
+
ellipsis: s.table.ellipsis ? {
|
|
5447
5447
|
tooltip: !0,
|
|
5448
|
-
"line-clamp":
|
|
5448
|
+
"line-clamp": s.table.clamp ?? 0
|
|
5449
5449
|
} : !1,
|
|
5450
|
-
render:
|
|
5451
|
-
show: K.isMobile ?
|
|
5452
|
-
pin: !!
|
|
5453
|
-
fixTemp:
|
|
5450
|
+
render: s.table.render ? await Ap(s.key, s.table.render, i) : void 0,
|
|
5451
|
+
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
5452
|
+
pin: !!s.table.fixed,
|
|
5453
|
+
fixTemp: s.table.fixed
|
|
5454
5454
|
};
|
|
5455
|
-
if (
|
|
5455
|
+
if (p.resizable && (p.minWidth = 80), t) if (!p.form.edit.show) p = null;
|
|
5456
5456
|
else {
|
|
5457
|
-
if (
|
|
5458
|
-
delete
|
|
5459
|
-
let e =
|
|
5460
|
-
|
|
5457
|
+
if (p.ellipsis = !1, p.resizable = !0, K.isMobile && (p.show = s.table.mobile), s.table.show && (n === 0 && (p.show = s.form.create.show), n === 1 && (p.show = s.form.edit.show), n === 2 && (p.show = s.form.show)), o && (s.form.rule.validator = () => !0), o === !1 && s.form.rule?.required && typeof s.form.rule.validator == "string") {
|
|
5458
|
+
delete s.form.rule.message;
|
|
5459
|
+
let e = s.form.rule.validator, t = Function("rule", "value", "index", "formValues", e);
|
|
5460
|
+
s.form.rule.validator === "" ? s.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(s.form.rule.message) : s.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
|
|
5461
5461
|
}
|
|
5462
|
-
|
|
5462
|
+
p.render = function(e, t) {
|
|
5463
5463
|
return f(he, {
|
|
5464
5464
|
showLabel: !1,
|
|
5465
5465
|
showFeedback: !1,
|
|
5466
|
-
path: `child[${t}].${
|
|
5467
|
-
rule:
|
|
5468
|
-
...
|
|
5466
|
+
path: `child[${t}].${s.key}`,
|
|
5467
|
+
rule: s.form.rule?.required ? {
|
|
5468
|
+
...s.form.rule,
|
|
5469
5469
|
index: t
|
|
5470
5470
|
} : void 0
|
|
5471
5471
|
}, { default: () => f(If, {
|
|
5472
|
-
item:
|
|
5472
|
+
item: s,
|
|
5473
5473
|
formValue: e,
|
|
5474
5474
|
status: n,
|
|
5475
5475
|
itemIndex: t
|
|
5476
5476
|
}) });
|
|
5477
5477
|
};
|
|
5478
5478
|
}
|
|
5479
|
-
if (
|
|
5480
|
-
if (
|
|
5481
|
-
else if (
|
|
5482
|
-
let { sourceData: e, n: t } = await Pp(
|
|
5483
|
-
if (e && Array.isArray(e)) if (
|
|
5484
|
-
let t =
|
|
5485
|
-
|
|
5486
|
-
} else
|
|
5487
|
-
} else
|
|
5488
|
-
let { sourceData: e, n: t } = await Pp(
|
|
5489
|
-
if (e && Array.isArray(e)) if (
|
|
5490
|
-
let t =
|
|
5479
|
+
if (p && s.input !== "divider" && s.input !== "subTable" && (o && (p.show = s.form.expand.show), d.push(p)), s.input !== "divider" && s.input !== "switch" && s.input !== "subTable" && s.input !== "upload" && s.search.show) {
|
|
5480
|
+
if (s.search.title && (s.label = s.search.title), s.search.source) if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
5481
|
+
else if (s.params.immediately || s.search.defaultValue) {
|
|
5482
|
+
let { sourceData: e, n: t } = await Pp(s.search.source);
|
|
5483
|
+
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5484
|
+
let t = s.sourceFn, n = Function("sourceData", t);
|
|
5485
|
+
s.params.options = n(e);
|
|
5486
|
+
} else s.params.options = jp(s, e, t);
|
|
5487
|
+
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5488
|
+
let { sourceData: e, n: t } = await Pp(s.search.source);
|
|
5489
|
+
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5490
|
+
let t = s.sourceFn;
|
|
5491
5491
|
return Function("sourceData", t)(e);
|
|
5492
|
-
} else return jp(
|
|
5492
|
+
} else return jp(s, e, t);
|
|
5493
5493
|
};
|
|
5494
|
-
if (
|
|
5495
|
-
let e = H(
|
|
5494
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Op(s.search.defaultValue))), s.search.show) {
|
|
5495
|
+
let e = H(s);
|
|
5496
5496
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
5497
5497
|
let { sourceData: t, n } = await Pp(e.source || e.search.source);
|
|
5498
5498
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
@@ -5515,10 +5515,10 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5515
5515
|
});
|
|
5516
5516
|
}
|
|
5517
5517
|
}
|
|
5518
|
-
|
|
5519
|
-
key:
|
|
5520
|
-
link:
|
|
5521
|
-
merge:
|
|
5518
|
+
s.input === "subTable" && s.params.link && !s.params.quest && (l.push(s.params.link), s.params.expandable && (u = {
|
|
5519
|
+
key: s.key,
|
|
5520
|
+
link: s.params.link,
|
|
5521
|
+
merge: s.params.merge
|
|
5522
5522
|
}));
|
|
5523
5523
|
}
|
|
5524
5524
|
let g = [];
|
|
@@ -5539,7 +5539,9 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5539
5539
|
}
|
|
5540
5540
|
d = g;
|
|
5541
5541
|
}
|
|
5542
|
-
return {
|
|
5542
|
+
return d.forEach((e) => {
|
|
5543
|
+
e.show && (s += e.width);
|
|
5544
|
+
}), {
|
|
5543
5545
|
tableColumns: d,
|
|
5544
5546
|
search: c,
|
|
5545
5547
|
subTableIds: l,
|
|
@@ -5552,7 +5554,7 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5552
5554
|
var Wp = d({
|
|
5553
5555
|
name: "UzSpin",
|
|
5554
5556
|
components: {
|
|
5555
|
-
NButton:
|
|
5557
|
+
NButton: I,
|
|
5556
5558
|
NSpin: Ne,
|
|
5557
5559
|
NEllipsis: fe
|
|
5558
5560
|
},
|
|
@@ -5584,7 +5586,7 @@ var Wp = d({
|
|
|
5584
5586
|
};
|
|
5585
5587
|
return b(() => {
|
|
5586
5588
|
clearInterval(n.value);
|
|
5587
|
-
}),
|
|
5589
|
+
}), A(() => e.status, (e) => {
|
|
5588
5590
|
e === 1 && o();
|
|
5589
5591
|
}), {
|
|
5590
5592
|
counts: r,
|
|
@@ -5598,28 +5600,28 @@ var Wp = d({
|
|
|
5598
5600
|
function Gp(e, t, r, i, o, s) {
|
|
5599
5601
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
5600
5602
|
return x(), n(f, { show: e.value }, {
|
|
5601
|
-
description:
|
|
5603
|
+
description: M(() => [
|
|
5602
5604
|
l(u, {
|
|
5603
5605
|
"expand-trigger": "click",
|
|
5604
5606
|
"line-clamp": "3",
|
|
5605
5607
|
tooltip: !1
|
|
5606
5608
|
}, {
|
|
5607
|
-
default:
|
|
5609
|
+
default: M(() => [c(k(e.status === 0 ? "操作进行中..." : e.message), 1)]),
|
|
5608
5610
|
_: 1
|
|
5609
5611
|
}),
|
|
5610
5612
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
5611
|
-
|
|
5613
|
+
N(l(d, {
|
|
5612
5614
|
type: "warning",
|
|
5613
5615
|
block: "",
|
|
5614
5616
|
secondary: "",
|
|
5615
5617
|
onMouseover: e.stopCountdown,
|
|
5616
5618
|
onClick: e.handleClose
|
|
5617
5619
|
}, {
|
|
5618
|
-
default:
|
|
5620
|
+
default: M(() => [c(" 关闭(" + k(e.counts) + "s) ", 1)]),
|
|
5619
5621
|
_: 1
|
|
5620
|
-
}, 8, ["onMouseover", "onClick"]), [[
|
|
5622
|
+
}, 8, ["onMouseover", "onClick"]), [[ne, e.status === 1]])
|
|
5621
5623
|
]),
|
|
5622
|
-
default:
|
|
5624
|
+
default: M(() => [E(e.$slots, "default")]),
|
|
5623
5625
|
_: 3
|
|
5624
5626
|
}, 8, ["show"]);
|
|
5625
5627
|
}
|
|
@@ -5698,7 +5700,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5698
5700
|
components: {
|
|
5699
5701
|
NDataTable: se,
|
|
5700
5702
|
NPopover: De,
|
|
5701
|
-
NButton:
|
|
5703
|
+
NButton: I,
|
|
5702
5704
|
NIcon: B,
|
|
5703
5705
|
NSkeleton: je,
|
|
5704
5706
|
NCheckbox: ie,
|
|
@@ -5835,47 +5837,47 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5835
5837
|
value: () => null,
|
|
5836
5838
|
setValue: () => null
|
|
5837
5839
|
});
|
|
5838
|
-
let a = Je(), { t:
|
|
5840
|
+
let a = p("userStore"), o = Je(), { t: s } = Ze(), c = Ue(), l = t(() => K.isMobile), u = w(), d = w(), m = w(), g = w(!!i.header), _ = w(!1), v = w(!1), b = w(""), x = w(), C = w([]), T = w([]), E = w([]), D = w(void 0), ee = w([]), O = w({
|
|
5839
5841
|
params: [],
|
|
5840
5842
|
query: {
|
|
5841
5843
|
page: 1,
|
|
5842
5844
|
pageMax: 1,
|
|
5843
5845
|
pageSize: e.pageSize || 30
|
|
5844
5846
|
}
|
|
5845
|
-
}),
|
|
5847
|
+
}), k = w([]), te = w(void 0), ne = w(void 0), j = w([]), M = w([]), N = w([]), P = w([]), F = w({
|
|
5846
5848
|
fetch: null,
|
|
5847
5849
|
when_drawer_open: "",
|
|
5848
5850
|
when_before_save: ""
|
|
5849
|
-
}),
|
|
5851
|
+
}), L = w(Vp()), re = w(""), ie = w(!1), ae = w([]), R = w([]), oe = p("modules"), se = (e) => e.id, ce = (e, t) => {
|
|
5850
5852
|
n("update:rowKeys", {
|
|
5851
5853
|
keys: e,
|
|
5852
5854
|
rows: H(t)
|
|
5853
5855
|
});
|
|
5854
|
-
},
|
|
5855
|
-
if (
|
|
5856
|
+
}, le = (e, t, r) => {
|
|
5857
|
+
if (ae.value = e, r.action === "check" && R.value.push(r.row), r.action === "uncheck") {
|
|
5856
5858
|
let e = R.value.findIndex((e) => e.id === r.row?.id);
|
|
5857
5859
|
R.value.splice(e, 1);
|
|
5858
5860
|
}
|
|
5859
5861
|
r.action === "checkAll" && t.forEach((e) => {
|
|
5860
5862
|
e && R.value.push(e);
|
|
5861
|
-
}), r.action === "uncheckAll" && (R.value = [],
|
|
5862
|
-
keys: H(
|
|
5863
|
+
}), r.action === "uncheckAll" && (R.value = [], ae.value = []), n("update:rowKeys", {
|
|
5864
|
+
keys: H(ae.value),
|
|
5863
5865
|
rows: H(R.value)
|
|
5864
5866
|
});
|
|
5865
|
-
},
|
|
5866
|
-
|
|
5867
|
-
},
|
|
5868
|
-
let n = e.summary ||
|
|
5867
|
+
}, ue = (e) => {
|
|
5868
|
+
ee.value = e;
|
|
5869
|
+
}, de = (t) => {
|
|
5870
|
+
let n = e.summary || L.value.summary;
|
|
5869
5871
|
return n && typeof n == "string" ? Function("pageData", "h", n)(t, "h", f) : n && typeof n == "function" ? n(t) : [];
|
|
5870
5872
|
}, z = (t = !1) => {
|
|
5871
|
-
let r = e.id ||
|
|
5872
|
-
e.enableLoading && (
|
|
5873
|
+
let r = e.id || o.params.id;
|
|
5874
|
+
e.enableLoading && (_.value = !0, n("update:loading", !0));
|
|
5873
5875
|
let i = H(O.value);
|
|
5874
5876
|
if (t && delete i.orderby, F.value.fetch) Rd([F.value.fetch], "", i).then((e) => {
|
|
5875
5877
|
let t = ud(e);
|
|
5876
|
-
O.value.query = t.query,
|
|
5878
|
+
O.value.query = t.query, E.value = t.records, _.value = !1, v.value = !0, n("on-update:value", i), n("update:loading", !1), L.value.cache && r && J(`tables_${r}`, O.value);
|
|
5877
5879
|
}).catch(() => {
|
|
5878
|
-
|
|
5880
|
+
_.value = !1, v.value = !0, n("update:loading", !1);
|
|
5879
5881
|
});
|
|
5880
5882
|
else {
|
|
5881
5883
|
let t;
|
|
@@ -5887,39 +5889,39 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5887
5889
|
tableId: r
|
|
5888
5890
|
}), t.then((e) => {
|
|
5889
5891
|
let t = ud(e);
|
|
5890
|
-
O.value.query = t.query,
|
|
5892
|
+
O.value.query = t.query, E.value = t.records, _.value = !1, v.value = !0, n("on-update:value", i), n("update:loading", !1), L.value.cache && r && J(`tables_${r}`, O.value);
|
|
5891
5893
|
}).catch(() => {
|
|
5892
|
-
|
|
5894
|
+
_.value = !1, v.value = !0, n("update:loading", !1);
|
|
5893
5895
|
});
|
|
5894
5896
|
}
|
|
5895
|
-
},
|
|
5896
|
-
O.value.query.page = e,
|
|
5897
|
-
},
|
|
5897
|
+
}, fe = (e) => {
|
|
5898
|
+
O.value.query.page = e, u.value && (u.value.scrollTop = 0), ld(), z();
|
|
5899
|
+
}, pe = () => {
|
|
5898
5900
|
let e = O.value.query.page + 1;
|
|
5899
|
-
e > O.value.query.pageMax && (e = 1), O.value.query.page = e,
|
|
5900
|
-
}, pe = (e) => {
|
|
5901
|
-
O.value.query.pageSize = e, O.value.query.page = 1, ld(), z();
|
|
5901
|
+
e > O.value.query.pageMax && (e = 1), O.value.query.page = e, u.value && (u.value.scrollTop = 0), z();
|
|
5902
5902
|
}, me = (e) => {
|
|
5903
|
+
O.value.query.pageSize = e, O.value.query.page = 1, ld(), z();
|
|
5904
|
+
}, he = (e) => {
|
|
5903
5905
|
e && e.order ? O.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete O.value.orderby, z();
|
|
5904
|
-
},
|
|
5906
|
+
}, ge = () => {
|
|
5905
5907
|
if (typeof e.addFetch == "function") return e.addFetch();
|
|
5906
|
-
|
|
5907
|
-
let { form: e } = await
|
|
5908
|
+
m.value?.addAndEdit(e.id || o.params.id, async () => {
|
|
5909
|
+
let { form: e } = await xe();
|
|
5908
5910
|
return {
|
|
5909
5911
|
form: e,
|
|
5910
5912
|
data: {}
|
|
5911
5913
|
};
|
|
5912
|
-
},
|
|
5913
|
-
}, ge = (e) => {
|
|
5914
|
-
e.show = !e.show, Ae();
|
|
5914
|
+
}, L.value, F.value, 0, Me);
|
|
5915
5915
|
}, _e = (e) => {
|
|
5916
|
+
e.show = !e.show, je();
|
|
5917
|
+
}, B = (e) => {
|
|
5916
5918
|
let t = [];
|
|
5917
5919
|
e.forEach((e) => {
|
|
5918
5920
|
e.show && t.push(e);
|
|
5919
|
-
}),
|
|
5920
|
-
},
|
|
5921
|
+
}), C.value = t;
|
|
5922
|
+
}, ve = (e) => {
|
|
5921
5923
|
O.value.params = e, z();
|
|
5922
|
-
},
|
|
5924
|
+
}, ye = () => [{
|
|
5923
5925
|
title: "创建人/时间",
|
|
5924
5926
|
key: "createTime",
|
|
5925
5927
|
resizable: !0,
|
|
@@ -5937,33 +5939,33 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5937
5939
|
ellipsis: !0,
|
|
5938
5940
|
width: 180,
|
|
5939
5941
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => dd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5940
|
-
}],
|
|
5941
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(M.value, e, () =>
|
|
5942
|
-
return
|
|
5942
|
+
}], be = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !j.value || j.value && j.value[0] === "*" ? !1 : !j.value?.includes(t), xe = async (e) => {
|
|
5943
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(M.value, e, () => m.value?.getFormValues());
|
|
5944
|
+
return x.value = t, {
|
|
5943
5945
|
form: t,
|
|
5944
5946
|
fillingDefaultValue: n,
|
|
5945
5947
|
formDefaultValue: r
|
|
5946
5948
|
};
|
|
5947
|
-
},
|
|
5948
|
-
let i = e.id ||
|
|
5949
|
-
|
|
5949
|
+
}, Se = async (t) => new Promise((n, r) => {
|
|
5950
|
+
let i = e.id || o.params.id, a;
|
|
5951
|
+
a = e.fetch ? e.fetch({
|
|
5950
5952
|
id: t.id,
|
|
5951
5953
|
tableId: i
|
|
5952
5954
|
}) : Nd({
|
|
5953
5955
|
id: t.id,
|
|
5954
5956
|
tableId: i
|
|
5955
|
-
}),
|
|
5957
|
+
}), a.then((e) => {
|
|
5956
5958
|
n(e && e[0]);
|
|
5957
5959
|
}).catch(() => {
|
|
5958
5960
|
r();
|
|
5959
5961
|
});
|
|
5960
|
-
}),
|
|
5961
|
-
let n = await
|
|
5962
|
+
}), Ce = async (e, t) => {
|
|
5963
|
+
let n = await Se(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await xe(n || {}), a = {
|
|
5962
5964
|
...n,
|
|
5963
5965
|
...i
|
|
5964
5966
|
};
|
|
5965
5967
|
if (t && typeof t == "string") try {
|
|
5966
|
-
a = await Function("rowData", "POST", "fnNotification", t)(a, Z,
|
|
5968
|
+
a = await Function("rowData", "POST", "fnNotification", t)(a, Z, c).catch(() => null);
|
|
5967
5969
|
} catch (e) {
|
|
5968
5970
|
q(e);
|
|
5969
5971
|
}
|
|
@@ -5979,23 +5981,23 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5979
5981
|
form: r,
|
|
5980
5982
|
data: a
|
|
5981
5983
|
};
|
|
5982
|
-
},
|
|
5983
|
-
let i = H(t.onClick),
|
|
5984
|
+
}, we = (t, r) => {
|
|
5985
|
+
let i = H(t.onClick), a = e.id || o.params.id;
|
|
5984
5986
|
if (t.disabled) {
|
|
5985
5987
|
if (typeof t.disabled == "string") {
|
|
5986
5988
|
let e = Function("rowData", "rowIndex", t.disabled);
|
|
5987
|
-
t.disabled = (n, r) => e(n, r) ||
|
|
5989
|
+
t.disabled = (n, r) => e(n, r) || be(t.key);
|
|
5988
5990
|
} else if (typeof t.disabled == "function") {
|
|
5989
5991
|
let e = H(t);
|
|
5990
|
-
t.disabled = (n, r) => e.disabled(n, r) ||
|
|
5992
|
+
t.disabled = (n, r) => e.disabled(n, r) || be(t.key);
|
|
5991
5993
|
}
|
|
5992
|
-
} else t.disabled = () =>
|
|
5993
|
-
if (t.loading =
|
|
5994
|
-
|
|
5994
|
+
} else t.disabled = () => be(t.key);
|
|
5995
|
+
if (t.loading = _.value, t.type !== "group" && t.optionsType) t.onClick = async (e) => {
|
|
5996
|
+
Se(e).then((r) => {
|
|
5995
5997
|
if (t.optionsType === "drawer:insider") {
|
|
5996
5998
|
if (i) try {
|
|
5997
|
-
Function("rowData", "POST", "fnNotification", i)(r, Z,
|
|
5998
|
-
|
|
5999
|
+
Function("rowData", "POST", "fnNotification", i)(r, Z, c).then((e) => {
|
|
6000
|
+
m.value?.link(t.optionsSource || "", void 0, e);
|
|
5999
6001
|
}).catch((e) => {
|
|
6000
6002
|
q(e);
|
|
6001
6003
|
});
|
|
@@ -6018,12 +6020,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6018
6020
|
else if (t.type !== "group" && t.action === "detailInside") {
|
|
6019
6021
|
let n = H(t.onClick);
|
|
6020
6022
|
t.onClick = (t) => {
|
|
6021
|
-
|
|
6023
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(t, n), L.value, F.value, 2, Me);
|
|
6022
6024
|
};
|
|
6023
6025
|
} else if (t.type !== "group" && t.action === "editInside") {
|
|
6024
6026
|
let n = H(t.onClick);
|
|
6025
6027
|
t.onClick = (t) => {
|
|
6026
|
-
|
|
6028
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(t, n), L.value, F.value, 1, Me);
|
|
6027
6029
|
};
|
|
6028
6030
|
} else if (t.type !== "group" && t.action === "deleteInside") {
|
|
6029
6031
|
let n = H(t.onClick);
|
|
@@ -6031,15 +6033,15 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6031
6033
|
let i;
|
|
6032
6034
|
i = e.deleteFetch ? e.deleteFetch({
|
|
6033
6035
|
...t,
|
|
6034
|
-
tableId:
|
|
6036
|
+
tableId: a,
|
|
6035
6037
|
sub_table_ids: r
|
|
6036
6038
|
}) : Fd({
|
|
6037
6039
|
...t,
|
|
6038
|
-
tableId:
|
|
6040
|
+
tableId: a,
|
|
6039
6041
|
sub_table_ids: r
|
|
6040
6042
|
}), i.then(() => {
|
|
6041
6043
|
if (n) try {
|
|
6042
|
-
Function("rowData", "fnNotification", "POST", n)(t,
|
|
6044
|
+
Function("rowData", "fnNotification", "POST", n)(t, c, Z).then(() => {
|
|
6043
6045
|
z();
|
|
6044
6046
|
}).catch(() => null);
|
|
6045
6047
|
} catch (e) {
|
|
@@ -6052,7 +6054,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6052
6054
|
};
|
|
6053
6055
|
} else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
|
|
6054
6056
|
Pd({
|
|
6055
|
-
tableId: e.id ||
|
|
6057
|
+
tableId: e.id || o.params.id,
|
|
6056
6058
|
...t,
|
|
6057
6059
|
is_disabled: "1"
|
|
6058
6060
|
}).then(() => {
|
|
@@ -6061,7 +6063,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6061
6063
|
};
|
|
6062
6064
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
6063
6065
|
Pd({
|
|
6064
|
-
tableId: e.id ||
|
|
6066
|
+
tableId: e.id || o.params.id,
|
|
6065
6067
|
...t,
|
|
6066
6068
|
is_disabled: "0"
|
|
6067
6069
|
}).then(() => {
|
|
@@ -6074,17 +6076,17 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6074
6076
|
let i;
|
|
6075
6077
|
i = e.fetch ? e.fetch({
|
|
6076
6078
|
id: r.id,
|
|
6077
|
-
tableId:
|
|
6079
|
+
tableId: a
|
|
6078
6080
|
}) : Nd({
|
|
6079
6081
|
id: r.id,
|
|
6080
|
-
tableId:
|
|
6082
|
+
tableId: a
|
|
6081
6083
|
}), i.then((e) => {
|
|
6082
6084
|
let r = e && e[0];
|
|
6083
6085
|
Rd([t.action], r.id, r).then((e) => {
|
|
6084
6086
|
if (n && typeof n == "string") {
|
|
6085
6087
|
try {
|
|
6086
6088
|
Function("rowData", "res", n)(r, e).then((e) => {
|
|
6087
|
-
|
|
6089
|
+
c.success({
|
|
6088
6090
|
content: e,
|
|
6089
6091
|
duration: 3e3
|
|
6090
6092
|
}), z();
|
|
@@ -6098,30 +6100,30 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6098
6100
|
}
|
|
6099
6101
|
if (n && typeof n == "function") {
|
|
6100
6102
|
n(r, e, () => {
|
|
6101
|
-
|
|
6102
|
-
content: () =>
|
|
6103
|
+
c.success({
|
|
6104
|
+
content: () => s("Notice.success"),
|
|
6103
6105
|
duration: 3e3
|
|
6104
6106
|
}), z();
|
|
6105
6107
|
});
|
|
6106
6108
|
return;
|
|
6107
6109
|
}
|
|
6108
|
-
|
|
6109
|
-
content: () =>
|
|
6110
|
+
c.success({
|
|
6111
|
+
content: () => s("Notice.success"),
|
|
6110
6112
|
duration: 3e3
|
|
6111
6113
|
}), z();
|
|
6112
6114
|
}).catch(() => {
|
|
6113
|
-
|
|
6114
|
-
content: () =>
|
|
6115
|
+
c.error({
|
|
6116
|
+
content: () => s("Notice.failed"),
|
|
6115
6117
|
duration: 3e3
|
|
6116
6118
|
}), z();
|
|
6117
6119
|
});
|
|
6118
6120
|
}).catch(() => null);
|
|
6119
6121
|
};
|
|
6120
6122
|
}
|
|
6121
|
-
},
|
|
6122
|
-
|
|
6123
|
-
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(M.value, e.child, 0, () => ({}),
|
|
6124
|
-
!
|
|
6123
|
+
}, Te = async () => {
|
|
6124
|
+
ie.value = !1, Np();
|
|
6125
|
+
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(M.value, e.child, 0, () => ({}), oe);
|
|
6126
|
+
!l.value && L.value.index && t.unshift({
|
|
6125
6127
|
title: "#",
|
|
6126
6128
|
key: "index",
|
|
6127
6129
|
align: "center",
|
|
@@ -6136,23 +6138,23 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6136
6138
|
return (e - 1) * n + (t + 1);
|
|
6137
6139
|
} });
|
|
6138
6140
|
}
|
|
6139
|
-
}), !
|
|
6141
|
+
}), !l.value && (e.selection || L.value.selection !== 0) && t.unshift({
|
|
6140
6142
|
type: "selection",
|
|
6141
6143
|
fixed: "left",
|
|
6142
6144
|
width: 60,
|
|
6143
6145
|
hide: !0,
|
|
6144
6146
|
show: !0,
|
|
6145
|
-
multiple: e.selection === 2 ||
|
|
6147
|
+
multiple: e.selection === 2 || L.value.selection === 2,
|
|
6146
6148
|
options: ["all", "none"]
|
|
6147
6149
|
});
|
|
6148
|
-
let
|
|
6149
|
-
if (!
|
|
6150
|
+
let a = e.id || o.params.id;
|
|
6151
|
+
if (!l.value && L.value.commonTime && t.push(...ye()), e.enableAction === !0 && N.value && N.value.length > 0) {
|
|
6150
6152
|
let e = H(N.value);
|
|
6151
6153
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
6152
|
-
|
|
6153
|
-
}) :
|
|
6154
|
+
we(e, r);
|
|
6155
|
+
}) : we(t, r);
|
|
6154
6156
|
let n = {
|
|
6155
|
-
title: () =>
|
|
6157
|
+
title: () => s("Common.action"),
|
|
6156
6158
|
key: "action",
|
|
6157
6159
|
align: "center",
|
|
6158
6160
|
fixed: "right",
|
|
@@ -6160,27 +6162,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6160
6162
|
checked: !0,
|
|
6161
6163
|
show: !0,
|
|
6162
6164
|
hide: !0,
|
|
6163
|
-
width: Number(typeof
|
|
6165
|
+
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
6164
6166
|
render(t) {
|
|
6165
6167
|
return Wd({
|
|
6166
6168
|
buttons: e,
|
|
6167
6169
|
rowData: t,
|
|
6168
6170
|
callback: z,
|
|
6169
|
-
tableId:
|
|
6171
|
+
tableId: a
|
|
6170
6172
|
});
|
|
6171
6173
|
}
|
|
6172
6174
|
};
|
|
6173
6175
|
t.push(n);
|
|
6174
6176
|
}
|
|
6175
|
-
let
|
|
6176
|
-
if (
|
|
6177
|
-
let e = Y(`tables_filter_${
|
|
6177
|
+
let c = t;
|
|
6178
|
+
if (a) {
|
|
6179
|
+
let e = Y(`tables_filter_${a}`, !1);
|
|
6178
6180
|
if (e) try {
|
|
6179
|
-
let n = await Id(
|
|
6180
|
-
n && (e = JSON.parse(n),
|
|
6181
|
+
let n = await Id(a);
|
|
6182
|
+
n && (e = JSON.parse(n), c = yd(t, e));
|
|
6181
6183
|
} catch {}
|
|
6182
6184
|
}
|
|
6183
|
-
i.link &&
|
|
6185
|
+
i.link && c.unshift({
|
|
6184
6186
|
type: "expand",
|
|
6185
6187
|
show: !0,
|
|
6186
6188
|
hide: !0,
|
|
@@ -6188,36 +6190,36 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6188
6190
|
fixed: "left",
|
|
6189
6191
|
filter: "default",
|
|
6190
6192
|
filterOptionValue: null,
|
|
6191
|
-
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(
|
|
6193
|
+
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(I, { onClick: ze }, { default: () => s("Common.expand") }), f(I, { onClick: Be }, { default: () => s("Common.contract") })]),
|
|
6192
6194
|
renderExpand: (e) => f(Yp, {
|
|
6193
6195
|
data: i,
|
|
6194
6196
|
value: e
|
|
6195
6197
|
})
|
|
6196
6198
|
});
|
|
6197
6199
|
let u = 0;
|
|
6198
|
-
|
|
6200
|
+
c.forEach((e) => {
|
|
6199
6201
|
e.show && (u += Number(e.width || 140));
|
|
6200
|
-
}),
|
|
6201
|
-
},
|
|
6202
|
+
}), T.value = c, k.value = n, D.value = u;
|
|
6203
|
+
}, Ee = (e) => typeof e == "number" ? `${e}px` : e, De = () => {
|
|
6202
6204
|
if (e.height) {
|
|
6203
|
-
let t =
|
|
6204
|
-
|
|
6205
|
+
let t = Ee(e.height);
|
|
6206
|
+
te.value = t, ne.value = t;
|
|
6205
6207
|
return;
|
|
6206
6208
|
}
|
|
6207
|
-
},
|
|
6208
|
-
let n = e.id ||
|
|
6209
|
+
}, Oe = (t) => {
|
|
6210
|
+
let n = e.id || o.params.id;
|
|
6209
6211
|
if (n) {
|
|
6210
6212
|
let e = 0;
|
|
6211
|
-
|
|
6213
|
+
T.value.forEach((t) => {
|
|
6212
6214
|
t.show && (e += Number(t.width || 140));
|
|
6213
|
-
}),
|
|
6215
|
+
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)), Ld({
|
|
6214
6216
|
table_id: n,
|
|
6215
6217
|
data: JSON.stringify(t)
|
|
6216
6218
|
}).catch(() => null);
|
|
6217
6219
|
}
|
|
6218
|
-
}, { run:
|
|
6220
|
+
}, { run: ke } = Tp(Oe), { run: Ae } = Tp((e, t) => {
|
|
6219
6221
|
let n = [];
|
|
6220
|
-
|
|
6222
|
+
T.value.forEach((r) => {
|
|
6221
6223
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
6222
6224
|
key: r.key,
|
|
6223
6225
|
show: r.show,
|
|
@@ -6225,10 +6227,10 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6225
6227
|
fixed: r.fixed,
|
|
6226
6228
|
width: r.key === t ? Number(e.toFixed(0)) : r.width
|
|
6227
6229
|
});
|
|
6228
|
-
}),
|
|
6229
|
-
}),
|
|
6230
|
+
}), Oe(n);
|
|
6231
|
+
}), je = () => {
|
|
6230
6232
|
let e = [];
|
|
6231
|
-
|
|
6233
|
+
T.value.forEach((t) => {
|
|
6232
6234
|
t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
|
|
6233
6235
|
key: t.key,
|
|
6234
6236
|
show: t.show,
|
|
@@ -6236,36 +6238,36 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6236
6238
|
fixed: t.fixed,
|
|
6237
6239
|
width: t.width
|
|
6238
6240
|
});
|
|
6239
|
-
}),
|
|
6240
|
-
},
|
|
6241
|
-
let i,
|
|
6241
|
+
}), ke(e);
|
|
6242
|
+
}, Me = (t, n, r) => {
|
|
6243
|
+
let i, a = e.id || o.params.id;
|
|
6242
6244
|
i = e.formFetch ? e.formFetch({
|
|
6243
|
-
tableId:
|
|
6245
|
+
tableId: a,
|
|
6244
6246
|
...t
|
|
6245
6247
|
}) : Pd({
|
|
6246
|
-
tableId:
|
|
6248
|
+
tableId: a,
|
|
6247
6249
|
...t
|
|
6248
6250
|
}), i.then(() => {
|
|
6249
6251
|
z(), n();
|
|
6250
6252
|
}).catch((e) => {
|
|
6251
6253
|
r(e);
|
|
6252
6254
|
});
|
|
6253
|
-
},
|
|
6254
|
-
|
|
6255
|
+
}, Ne = () => {
|
|
6256
|
+
b.value = "", M.value = [], N.value = [], P.value = [], F.value = {
|
|
6255
6257
|
fetch: null,
|
|
6256
6258
|
when_drawer_open: "",
|
|
6257
6259
|
when_before_save: ""
|
|
6258
|
-
},
|
|
6259
|
-
},
|
|
6260
|
+
}, L.value = Vp();
|
|
6261
|
+
}, Pe = (t) => {
|
|
6260
6262
|
let n = rt.parse(t.viewJson);
|
|
6261
|
-
|
|
6263
|
+
b.value = t.tableTitle, M.value = Lp(n.table), N.value = Qd(e.actions || n.action);
|
|
6262
6264
|
let r = Qd(n.suffix || []);
|
|
6263
|
-
P.value = r.filter((e) => e.main).map((e) => (
|
|
6265
|
+
P.value = r.filter((e) => e.main).map((e) => (Ie(e), e)), F.value = zp(n.trigger);
|
|
6264
6266
|
let i = Vp(e.options ?? n.option);
|
|
6265
|
-
t.tableTitle && i.title && fd(t.tableTitle),
|
|
6266
|
-
},
|
|
6267
|
-
|
|
6268
|
-
let t = e.id ||
|
|
6267
|
+
t.tableTitle && i.title && fd(t.tableTitle), L.value = i;
|
|
6268
|
+
}, Fe = async () => {
|
|
6269
|
+
v.value = !1, Ne();
|
|
6270
|
+
let t = e.id || o.params.id;
|
|
6269
6271
|
if (O.value = {
|
|
6270
6272
|
params: [],
|
|
6271
6273
|
query: {
|
|
@@ -6273,18 +6275,18 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6273
6275
|
pageMax: 1,
|
|
6274
6276
|
pageSize: e.pageSize || 30
|
|
6275
6277
|
}
|
|
6276
|
-
},
|
|
6277
|
-
|
|
6278
|
+
}, E.value = [], e.ruleFetch) try {
|
|
6279
|
+
j.value = await e.ruleFetch(t);
|
|
6278
6280
|
} catch {
|
|
6279
|
-
|
|
6281
|
+
re.value = s("Notice.network"), ie.value = !0;
|
|
6280
6282
|
return;
|
|
6281
6283
|
}
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
+
De(), e.columns ? (M.value = e.columns || [], N.value = e.actions || [], P.value = e.suffixes || [], L.value = Vp(e.options), await Te()) : await Fp(t).then(async (e) => {
|
|
6285
|
+
Pe(e), await Te();
|
|
6284
6286
|
}).catch((e) => {
|
|
6285
|
-
|
|
6287
|
+
re.value = e?.message || s("Notice.network"), ie.value = !0;
|
|
6286
6288
|
});
|
|
6287
|
-
},
|
|
6289
|
+
}, Ie = (e) => {
|
|
6288
6290
|
if (e.type !== "group" && e.optionsType) {
|
|
6289
6291
|
let t = H(e.onClick);
|
|
6290
6292
|
e.onClick = () => {
|
|
@@ -6295,7 +6297,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6295
6297
|
open: e.optionsType,
|
|
6296
6298
|
onClick: t,
|
|
6297
6299
|
optionsSource: e.optionsSource,
|
|
6298
|
-
mainFormValue: () =>
|
|
6300
|
+
mainFormValue: () => E.value,
|
|
6299
6301
|
children: null,
|
|
6300
6302
|
callback: null
|
|
6301
6303
|
});
|
|
@@ -6306,7 +6308,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6306
6308
|
if (t && typeof t == "string") {
|
|
6307
6309
|
try {
|
|
6308
6310
|
let e = Function("POST", "fnNotification", t);
|
|
6309
|
-
await e(Z,
|
|
6311
|
+
await e(Z, c, e), z();
|
|
6310
6312
|
} catch (e) {
|
|
6311
6313
|
q(e);
|
|
6312
6314
|
}
|
|
@@ -6314,85 +6316,85 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6314
6316
|
}
|
|
6315
6317
|
};
|
|
6316
6318
|
}
|
|
6317
|
-
},
|
|
6318
|
-
if (
|
|
6319
|
-
|
|
6320
|
-
let t = e.id ||
|
|
6319
|
+
}, Le = () => {
|
|
6320
|
+
if (_.value) return;
|
|
6321
|
+
_.value = !0;
|
|
6322
|
+
let t = e.id || o.params.id;
|
|
6321
6323
|
t && (od(`tables_filter_${t}`), Ld({
|
|
6322
6324
|
table_id: t,
|
|
6323
6325
|
data: null
|
|
6324
6326
|
}).catch(() => null).finally(() => {
|
|
6325
|
-
|
|
6327
|
+
Te(), _.value = !1;
|
|
6326
6328
|
}));
|
|
6327
|
-
},
|
|
6328
|
-
|
|
6329
|
-
}, Re = () => {
|
|
6330
|
-
D.value = T.value.map((e) => e.id);
|
|
6329
|
+
}, Re = (e, t, n) => {
|
|
6330
|
+
Ae(e, n.key);
|
|
6331
6331
|
}, ze = () => {
|
|
6332
|
-
|
|
6332
|
+
ee.value = E.value.map((e) => e.id);
|
|
6333
|
+
}, Be = () => {
|
|
6334
|
+
ee.value = [];
|
|
6333
6335
|
};
|
|
6334
6336
|
return r({
|
|
6335
|
-
rebuild:
|
|
6337
|
+
rebuild: Fe,
|
|
6336
6338
|
init: z,
|
|
6337
|
-
nextPage:
|
|
6339
|
+
nextPage: pe
|
|
6338
6340
|
}), y(async () => {
|
|
6339
|
-
await
|
|
6340
|
-
|
|
6341
|
+
await Fe(), h(() => {
|
|
6342
|
+
d.value?.scrollTo({
|
|
6341
6343
|
left: 0,
|
|
6342
6344
|
right: 0
|
|
6343
6345
|
});
|
|
6344
6346
|
});
|
|
6345
|
-
}),
|
|
6346
|
-
|
|
6347
|
-
}, { deep: !0 }),
|
|
6348
|
-
|
|
6349
|
-
}),
|
|
6350
|
-
ld(), await
|
|
6351
|
-
}),
|
|
6347
|
+
}), A(() => T.value, (e) => {
|
|
6348
|
+
B(e);
|
|
6349
|
+
}, { deep: !0 }), A(() => e.height, () => {
|
|
6350
|
+
De();
|
|
6351
|
+
}), A([() => o.params.id, () => e.id], async () => {
|
|
6352
|
+
ld(), await Fe();
|
|
6353
|
+
}), A(() => e.defaultCheckedRowKeys, (e) => {
|
|
6352
6354
|
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6353
|
-
|
|
6355
|
+
ae.value = t, R.value = n;
|
|
6354
6356
|
}, { deep: !0 }), {
|
|
6355
|
-
loading:
|
|
6356
|
-
minH:
|
|
6357
|
-
maxH:
|
|
6358
|
-
drawerRef:
|
|
6359
|
-
tableOption:
|
|
6360
|
-
tableCols:
|
|
6361
|
-
tableData:
|
|
6357
|
+
loading: _,
|
|
6358
|
+
minH: te,
|
|
6359
|
+
maxH: ne,
|
|
6360
|
+
drawerRef: m,
|
|
6361
|
+
tableOption: L,
|
|
6362
|
+
tableCols: C,
|
|
6363
|
+
tableData: E,
|
|
6362
6364
|
tableQueries: O,
|
|
6363
|
-
searchData:
|
|
6364
|
-
filterColumns:
|
|
6365
|
-
isSlotHeader:
|
|
6366
|
-
title:
|
|
6367
|
-
dynamicLoading:
|
|
6368
|
-
spinMsg:
|
|
6369
|
-
tableScrollX:
|
|
6365
|
+
searchData: k,
|
|
6366
|
+
filterColumns: T,
|
|
6367
|
+
isSlotHeader: g,
|
|
6368
|
+
title: b,
|
|
6369
|
+
dynamicLoading: v,
|
|
6370
|
+
spinMsg: re,
|
|
6371
|
+
tableScrollX: D,
|
|
6370
6372
|
suffixes: P,
|
|
6371
|
-
spinError:
|
|
6372
|
-
isMobile:
|
|
6373
|
-
mRef:
|
|
6374
|
-
checkRowKeys:
|
|
6375
|
-
route:
|
|
6376
|
-
rowKey:
|
|
6377
|
-
pageChange:
|
|
6378
|
-
pageSizeChange:
|
|
6379
|
-
pageSorter:
|
|
6380
|
-
showChange:
|
|
6381
|
-
submit:
|
|
6382
|
-
handleAdd:
|
|
6383
|
-
handleColumnChange:
|
|
6384
|
-
handleCheckRowKeys:
|
|
6385
|
-
handleExpandedRowKeys:
|
|
6386
|
-
checkRole:
|
|
6387
|
-
rebuild:
|
|
6388
|
-
summaryFn:
|
|
6389
|
-
handleMobileCheckRowKeys:
|
|
6390
|
-
isTypeofNumber:
|
|
6391
|
-
resetFilter:
|
|
6392
|
-
handleColumnResize:
|
|
6393
|
-
expandedRowKeys:
|
|
6394
|
-
handleExpandAll:
|
|
6395
|
-
handleContractAll:
|
|
6373
|
+
spinError: ie,
|
|
6374
|
+
isMobile: l,
|
|
6375
|
+
mRef: u,
|
|
6376
|
+
checkRowKeys: ae,
|
|
6377
|
+
route: o,
|
|
6378
|
+
rowKey: se,
|
|
6379
|
+
pageChange: fe,
|
|
6380
|
+
pageSizeChange: me,
|
|
6381
|
+
pageSorter: he,
|
|
6382
|
+
showChange: _e,
|
|
6383
|
+
submit: ve,
|
|
6384
|
+
handleAdd: ge,
|
|
6385
|
+
handleColumnChange: je,
|
|
6386
|
+
handleCheckRowKeys: le,
|
|
6387
|
+
handleExpandedRowKeys: ue,
|
|
6388
|
+
checkRole: be,
|
|
6389
|
+
rebuild: Fe,
|
|
6390
|
+
summaryFn: de,
|
|
6391
|
+
handleMobileCheckRowKeys: ce,
|
|
6392
|
+
isTypeofNumber: Ee,
|
|
6393
|
+
resetFilter: Le,
|
|
6394
|
+
handleColumnResize: Re,
|
|
6395
|
+
expandedRowKeys: ee,
|
|
6396
|
+
handleExpandAll: ze,
|
|
6397
|
+
handleContractAll: Be
|
|
6396
6398
|
};
|
|
6397
6399
|
}
|
|
6398
6400
|
}), Zp = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Qp = { class: "uz-flex uz-justify-between" }, $p = { class: "uz-flex uz-gap-1" }, em = { class: "uz-com-title" }, tm = {
|
|
@@ -6403,12 +6405,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6403
6405
|
class: "uz-transform-fade-in"
|
|
6404
6406
|
}, rm = { class: "uz-com-title" }, im = ["data-index"];
|
|
6405
6407
|
function am(t, s, u, d, f, p) {
|
|
6406
|
-
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"),
|
|
6408
|
+
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), ee = D("NCheckbox"), O = D("GridDots"), te = D("VueDraggable"), A = D("NPopover"), j = D("UzSearchBar"), P = D("NDataTable"), F = D("NSpin"), I = D("UzTableDrawer");
|
|
6407
6409
|
return x(), i("div", {
|
|
6408
6410
|
class: "uz-table",
|
|
6409
6411
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
6410
6412
|
}, [
|
|
6411
|
-
|
|
6413
|
+
N(a("div", Zp, [a("div", Qp, [l(m, {
|
|
6412
6414
|
width: 120,
|
|
6413
6415
|
size: "medium"
|
|
6414
6416
|
}), a("div", $p, [
|
|
@@ -6440,12 +6442,12 @@ function am(t, s, u, d, f, p) {
|
|
|
6440
6442
|
class: "uz-flex-1",
|
|
6441
6443
|
width: "100%",
|
|
6442
6444
|
size: "medium"
|
|
6443
|
-
})], 512), [[
|
|
6444
|
-
|
|
6445
|
+
})], 512), [[ne, !t.dynamicLoading]]),
|
|
6446
|
+
N(l(F, {
|
|
6445
6447
|
show: t.spinError,
|
|
6446
6448
|
class: "uz-table-n-spin"
|
|
6447
6449
|
}, {
|
|
6448
|
-
description:
|
|
6450
|
+
description: M(() => [
|
|
6449
6451
|
a("div", null, k(t.spinMsg), 1),
|
|
6450
6452
|
s[2] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6451
6453
|
l(h, {
|
|
@@ -6453,11 +6455,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6453
6455
|
onClick: t.rebuild,
|
|
6454
6456
|
block: ""
|
|
6455
6457
|
}, {
|
|
6456
|
-
default:
|
|
6458
|
+
default: M(() => [...s[1] ||= [c("重试", -1)]]),
|
|
6457
6459
|
_: 1
|
|
6458
6460
|
}, 8, ["onClick"])
|
|
6459
6461
|
]),
|
|
6460
|
-
default:
|
|
6462
|
+
default: M(() => [t.isMobile ? (x(), i("div", {
|
|
6461
6463
|
key: 0,
|
|
6462
6464
|
class: g([t.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
6463
6465
|
}, [l(S, {
|
|
@@ -6467,18 +6469,18 @@ function am(t, s, u, d, f, p) {
|
|
|
6467
6469
|
loading: t.loading,
|
|
6468
6470
|
"onOnUpdate:value": t.submit
|
|
6469
6471
|
}, o({
|
|
6470
|
-
action:
|
|
6472
|
+
action: M(() => [
|
|
6471
6473
|
t.addFetch && t.tableOption.addButton ? (x(), n(h, {
|
|
6472
6474
|
key: 0,
|
|
6473
6475
|
secondary: "",
|
|
6474
6476
|
disabled: t.checkRole("add"),
|
|
6475
6477
|
onClick: t.handleAdd
|
|
6476
6478
|
}, {
|
|
6477
|
-
icon:
|
|
6478
|
-
default:
|
|
6479
|
+
icon: M(() => [l(y, null, {
|
|
6480
|
+
default: M(() => [l(v)]),
|
|
6479
6481
|
_: 1
|
|
6480
6482
|
})]),
|
|
6481
|
-
default:
|
|
6483
|
+
default: M(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6482
6484
|
_: 1
|
|
6483
6485
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6484
6486
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6495,11 +6497,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6495
6497
|
_: 2
|
|
6496
6498
|
}, [t.isSlotHeader ? {
|
|
6497
6499
|
name: "header",
|
|
6498
|
-
fn:
|
|
6500
|
+
fn: M(() => [E(t.$slots, "header")]),
|
|
6499
6501
|
key: "0"
|
|
6500
6502
|
} : {
|
|
6501
6503
|
name: "header",
|
|
6502
|
-
fn:
|
|
6504
|
+
fn: M(() => [a("div", em, k(t.title), 1)]),
|
|
6503
6505
|
key: "1"
|
|
6504
6506
|
}]), 1032, [
|
|
6505
6507
|
"data",
|
|
@@ -6525,7 +6527,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6525
6527
|
"minH",
|
|
6526
6528
|
"maxH",
|
|
6527
6529
|
"onUpdate:rowKeys"
|
|
6528
|
-
])], 512)], 2)) : (x(), i("div", nm, [l(
|
|
6530
|
+
])], 512)], 2)) : (x(), i("div", nm, [l(j, {
|
|
6529
6531
|
data: t.searchData,
|
|
6530
6532
|
id: t.id || t.route.params.id,
|
|
6531
6533
|
cache: t.tableOption.cache,
|
|
@@ -6534,22 +6536,22 @@ function am(t, s, u, d, f, p) {
|
|
|
6534
6536
|
enableHeader: t.enableHeader,
|
|
6535
6537
|
"onOnUpdate:value": t.submit
|
|
6536
6538
|
}, o({
|
|
6537
|
-
action:
|
|
6538
|
-
t.tableOption.filterButton && t.filterColumns.length > 0 ? (x(), n(
|
|
6539
|
+
action: M(() => [
|
|
6540
|
+
t.tableOption.filterButton && t.filterColumns.length > 0 ? (x(), n(A, {
|
|
6539
6541
|
key: 0,
|
|
6540
6542
|
placement: "bottom-end",
|
|
6541
6543
|
trigger: "click",
|
|
6542
6544
|
"show-arrow": !1
|
|
6543
6545
|
}, {
|
|
6544
|
-
trigger:
|
|
6545
|
-
icon:
|
|
6546
|
-
default:
|
|
6546
|
+
trigger: M(() => [l(h, { secondary: "" }, {
|
|
6547
|
+
icon: M(() => [l(y, null, {
|
|
6548
|
+
default: M(() => [l(w)]),
|
|
6547
6549
|
_: 1
|
|
6548
6550
|
})]),
|
|
6549
|
-
default:
|
|
6551
|
+
default: M(() => [c(" " + k(t.$t("Common.columns")), 1)]),
|
|
6550
6552
|
_: 1
|
|
6551
6553
|
})]),
|
|
6552
|
-
default:
|
|
6554
|
+
default: M(() => [l(te, {
|
|
6553
6555
|
modelValue: t.filterColumns,
|
|
6554
6556
|
"onUpdate:modelValue": s[0] ||= (e) => t.filterColumns = e,
|
|
6555
6557
|
animation: 200,
|
|
@@ -6560,33 +6562,33 @@ function am(t, s, u, d, f, p) {
|
|
|
6560
6562
|
handle: ".uz-drag-handle",
|
|
6561
6563
|
onEnd: t.handleColumnChange
|
|
6562
6564
|
}, {
|
|
6563
|
-
default:
|
|
6565
|
+
default: M(() => [(x(!0), i(e, null, T(t.filterColumns, (e, n) => N((x(), i("div", {
|
|
6564
6566
|
key: e.key,
|
|
6565
6567
|
class: "uz-table-sort",
|
|
6566
6568
|
"data-index": n
|
|
6567
|
-
}, [l(
|
|
6569
|
+
}, [l(ee, {
|
|
6568
6570
|
checked: e.show,
|
|
6569
6571
|
"on-update:checked": () => t.showChange(e),
|
|
6570
6572
|
size: "large"
|
|
6571
6573
|
}, {
|
|
6572
|
-
default:
|
|
6574
|
+
default: M(() => [c(k(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
6573
6575
|
_: 2
|
|
6574
6576
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
6575
6577
|
quaternary: "",
|
|
6576
6578
|
class: "uz-drag-handle"
|
|
6577
6579
|
}, {
|
|
6578
|
-
icon:
|
|
6579
|
-
default:
|
|
6580
|
+
icon: M(() => [l(y, { size: "18" }, {
|
|
6581
|
+
default: M(() => [l(O)]),
|
|
6580
6582
|
_: 1
|
|
6581
6583
|
})]),
|
|
6582
6584
|
_: 1
|
|
6583
|
-
})], 8, im)), [[
|
|
6585
|
+
})], 8, im)), [[ne, !e.hide]])), 128)), l(h, {
|
|
6584
6586
|
block: "",
|
|
6585
6587
|
tertiary: "",
|
|
6586
6588
|
loading: t.loading,
|
|
6587
6589
|
onClick: t.resetFilter
|
|
6588
6590
|
}, {
|
|
6589
|
-
default:
|
|
6591
|
+
default: M(() => [c(k(t.$t("Common.reset")), 1)]),
|
|
6590
6592
|
_: 1
|
|
6591
6593
|
}, 8, ["loading", "onClick"])]),
|
|
6592
6594
|
_: 1
|
|
@@ -6599,11 +6601,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6599
6601
|
disabled: t.checkRole("add"),
|
|
6600
6602
|
onClick: t.handleAdd
|
|
6601
6603
|
}, {
|
|
6602
|
-
icon:
|
|
6603
|
-
default:
|
|
6604
|
+
icon: M(() => [l(y, null, {
|
|
6605
|
+
default: M(() => [l(v)]),
|
|
6604
6606
|
_: 1
|
|
6605
6607
|
})]),
|
|
6606
|
-
default:
|
|
6608
|
+
default: M(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6607
6609
|
_: 1
|
|
6608
6610
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6609
6611
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6620,11 +6622,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6620
6622
|
_: 2
|
|
6621
6623
|
}, [t.isSlotHeader ? {
|
|
6622
6624
|
name: "header",
|
|
6623
|
-
fn:
|
|
6625
|
+
fn: M(() => [E(t.$slots, "header")]),
|
|
6624
6626
|
key: "0"
|
|
6625
6627
|
} : {
|
|
6626
6628
|
name: "header",
|
|
6627
|
-
fn:
|
|
6629
|
+
fn: M(() => [a("div", rm, k(t.title), 1)]),
|
|
6628
6630
|
key: "1"
|
|
6629
6631
|
}]), 1032, [
|
|
6630
6632
|
"data",
|
|
@@ -6634,7 +6636,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6634
6636
|
"cols",
|
|
6635
6637
|
"enableHeader",
|
|
6636
6638
|
"onOnUpdate:value"
|
|
6637
|
-
]), l(
|
|
6639
|
+
]), l(P, {
|
|
6638
6640
|
ref: "tableRef",
|
|
6639
6641
|
columns: t.tableCols,
|
|
6640
6642
|
data: t.tableData,
|
|
@@ -6684,15 +6686,15 @@ function am(t, s, u, d, f, p) {
|
|
|
6684
6686
|
"onUpdate:expandedRowKeys"
|
|
6685
6687
|
])]))]),
|
|
6686
6688
|
_: 3
|
|
6687
|
-
}, 8, ["show"]), [[
|
|
6688
|
-
l(
|
|
6689
|
+
}, 8, ["show"]), [[ne, t.dynamicLoading]]),
|
|
6690
|
+
l(I, { ref: "drawerRef" }, null, 512)
|
|
6689
6691
|
], 4);
|
|
6690
6692
|
}
|
|
6691
6693
|
var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
6692
6694
|
name: "UzTableChild",
|
|
6693
6695
|
components: {
|
|
6694
6696
|
NSpin: Ne,
|
|
6695
|
-
NButton:
|
|
6697
|
+
NButton: I,
|
|
6696
6698
|
NIcon: B,
|
|
6697
6699
|
NDataTable: se,
|
|
6698
6700
|
NForm: me,
|
|
@@ -6720,7 +6722,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6720
6722
|
let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } = Ze(), u = w(), d = w(), m = w(), g = w(!0), _ = w(!1), y = w(!0), b = w([]), x = w({ child: [] }), S = w(""), C = w({}), T = w([]), E = w(void 0), D = async (t, n) => {
|
|
6721
6723
|
let { formDefaultValue: r, fillingDefaultArray: i } = await Hp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6722
6724
|
return C.value = r, i;
|
|
6723
|
-
},
|
|
6725
|
+
}, ee = async (t) => {
|
|
6724
6726
|
if (_.value) return;
|
|
6725
6727
|
_.value = !0;
|
|
6726
6728
|
let n = await D(t), r = H(t).map((e, t) => ({
|
|
@@ -6742,12 +6744,12 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6742
6744
|
q(e);
|
|
6743
6745
|
}
|
|
6744
6746
|
x.value.child = r, _.value = !1, h(() => {
|
|
6745
|
-
|
|
6747
|
+
P();
|
|
6746
6748
|
});
|
|
6747
6749
|
} else h(() => {
|
|
6748
|
-
|
|
6750
|
+
P();
|
|
6749
6751
|
});
|
|
6750
|
-
},
|
|
6752
|
+
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6751
6753
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6752
6754
|
let { tableColumns: r, tableWidth: i } = await Up(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6753
6755
|
r.unshift({
|
|
@@ -6757,7 +6759,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6757
6759
|
titleAlign: "center",
|
|
6758
6760
|
width: 10,
|
|
6759
6761
|
show: !0
|
|
6760
|
-
}), s +=
|
|
6762
|
+
}), s += 10, e.item.params.draggable && e.status !== 2 && (r.unshift({
|
|
6761
6763
|
title: " ",
|
|
6762
6764
|
key: "draggable",
|
|
6763
6765
|
align: "center",
|
|
@@ -6803,7 +6805,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6803
6805
|
let c = [];
|
|
6804
6806
|
r.forEach((e) => {
|
|
6805
6807
|
e.show && c.push(e);
|
|
6806
|
-
}), b.value = c, s +=
|
|
6808
|
+
}), b.value = c, s += 60, E.value = s, g.value = !1;
|
|
6807
6809
|
}, te = (t) => {
|
|
6808
6810
|
if (e.item.params.summary) {
|
|
6809
6811
|
if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
|
|
@@ -6815,11 +6817,11 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6815
6817
|
}
|
|
6816
6818
|
}
|
|
6817
6819
|
return [];
|
|
6818
|
-
},
|
|
6820
|
+
}, ne = async () => {
|
|
6819
6821
|
S.value = "", x.value.child.push(H(C.value)), h(() => {
|
|
6820
|
-
|
|
6822
|
+
P();
|
|
6821
6823
|
});
|
|
6822
|
-
},
|
|
6824
|
+
}, j = async () => {
|
|
6823
6825
|
S.value = "";
|
|
6824
6826
|
try {
|
|
6825
6827
|
let t = e.item.params.options;
|
|
@@ -6832,7 +6834,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6832
6834
|
callback: async (e) => {
|
|
6833
6835
|
let t = await n(e, o, Z);
|
|
6834
6836
|
x.value.child = [...x.value.child, ...t], h(() => {
|
|
6835
|
-
|
|
6837
|
+
P();
|
|
6836
6838
|
});
|
|
6837
6839
|
}
|
|
6838
6840
|
});
|
|
@@ -6842,16 +6844,16 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6842
6844
|
children: () => x.value.child,
|
|
6843
6845
|
callback: async (e) => {
|
|
6844
6846
|
x.value.child = [...x.value.child, ...e], h(() => {
|
|
6845
|
-
|
|
6847
|
+
P();
|
|
6846
6848
|
});
|
|
6847
6849
|
}
|
|
6848
6850
|
});
|
|
6849
6851
|
} catch (e) {
|
|
6850
6852
|
q(e);
|
|
6851
6853
|
}
|
|
6852
|
-
},
|
|
6854
|
+
}, M = () => {
|
|
6853
6855
|
m.value?.restoreValidation();
|
|
6854
|
-
},
|
|
6856
|
+
}, N = () => (S.value = "", new Promise((t, n) => {
|
|
6855
6857
|
let r = x.value.child.filter((e) => !e.delete).length;
|
|
6856
6858
|
if (e.item.form.rule.required && r === 0) {
|
|
6857
6859
|
S.value = e.item.form.rule.message, n();
|
|
@@ -6860,7 +6862,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6860
6862
|
m.value?.validate((r) => {
|
|
6861
6863
|
r ? (S.value = e.item.form.rule.message, n()) : t();
|
|
6862
6864
|
});
|
|
6863
|
-
})),
|
|
6865
|
+
})), P = () => {
|
|
6864
6866
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
6865
6867
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
6866
6868
|
e && (d.value = at.create(e, {
|
|
@@ -6873,7 +6875,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6873
6875
|
sort_index: t
|
|
6874
6876
|
})), x.value.child = n, h(() => {
|
|
6875
6877
|
y.value = !0, setTimeout(() => {
|
|
6876
|
-
|
|
6878
|
+
P();
|
|
6877
6879
|
}, 0);
|
|
6878
6880
|
});
|
|
6879
6881
|
}
|
|
@@ -6883,21 +6885,21 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6883
6885
|
return v(() => {
|
|
6884
6886
|
d.value?.destroy(), d.value = null;
|
|
6885
6887
|
}), r({
|
|
6886
|
-
validate:
|
|
6887
|
-
restoreValidation:
|
|
6888
|
-
}),
|
|
6888
|
+
validate: N,
|
|
6889
|
+
restoreValidation: M
|
|
6890
|
+
}), A(() => e.item.params.columns, (e, t) => {
|
|
6889
6891
|
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6890
6892
|
}, {
|
|
6891
6893
|
deep: !0,
|
|
6892
6894
|
immediate: !0
|
|
6893
|
-
}),
|
|
6894
|
-
JSON.stringify(e) !== JSON.stringify(x.value.child) &&
|
|
6895
|
+
}), A(() => e.value, (e) => {
|
|
6896
|
+
JSON.stringify(e) !== JSON.stringify(x.value.child) && ee(e);
|
|
6895
6897
|
}, {
|
|
6896
6898
|
deep: !0,
|
|
6897
6899
|
immediate: !0
|
|
6898
|
-
}),
|
|
6900
|
+
}), A(() => x.value.child, (t) => {
|
|
6899
6901
|
e.status !== 2 && n("update:value", t);
|
|
6900
|
-
}, { deep: !0 }),
|
|
6902
|
+
}, { deep: !0 }), A(() => c.value, async () => {
|
|
6901
6903
|
await k(void 0, !0);
|
|
6902
6904
|
}), {
|
|
6903
6905
|
spin: g,
|
|
@@ -6911,9 +6913,9 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6911
6913
|
tableScrollX: E,
|
|
6912
6914
|
tableShow: y,
|
|
6913
6915
|
suffixes: T,
|
|
6914
|
-
onAdd:
|
|
6915
|
-
onAddFormData:
|
|
6916
|
-
rowClassName:
|
|
6916
|
+
onAdd: ne,
|
|
6917
|
+
onAddFormData: j,
|
|
6918
|
+
rowClassName: O,
|
|
6917
6919
|
doSuffixClick: (e) => {
|
|
6918
6920
|
i({
|
|
6919
6921
|
open: e.optionsType,
|
|
@@ -6936,7 +6938,7 @@ function pm(t, s, u, d, f, p) {
|
|
|
6936
6938
|
show: t.spin,
|
|
6937
6939
|
class: "uz-flex-1 uz-w-full"
|
|
6938
6940
|
}, {
|
|
6939
|
-
default:
|
|
6941
|
+
default: M(() => [
|
|
6940
6942
|
a("div", cm, [a("div", lm, [c(k(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", um, " \xA0* ")) : r("", !0)]), a("div", dm, [
|
|
6941
6943
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6942
6944
|
key: e.key,
|
|
@@ -6944,12 +6946,12 @@ function pm(t, s, u, d, f, p) {
|
|
|
6944
6946
|
secondary: "",
|
|
6945
6947
|
onClick: (n) => t.doSuffixClick(e)
|
|
6946
6948
|
}, o({
|
|
6947
|
-
default:
|
|
6949
|
+
default: M(() => [c(" " + k(e.buttonText), 1)]),
|
|
6948
6950
|
_: 2
|
|
6949
6951
|
}, [e.icon ? {
|
|
6950
6952
|
name: "icon",
|
|
6951
|
-
fn:
|
|
6952
|
-
default:
|
|
6953
|
+
fn: M(() => [l(h, null, {
|
|
6954
|
+
default: M(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6953
6955
|
_: 2
|
|
6954
6956
|
}, 1024)]),
|
|
6955
6957
|
key: "0"
|
|
@@ -6960,11 +6962,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
6960
6962
|
secondary: "",
|
|
6961
6963
|
onClick: t.onAddFormData
|
|
6962
6964
|
}, {
|
|
6963
|
-
icon:
|
|
6964
|
-
default:
|
|
6965
|
+
icon: M(() => [l(h, null, {
|
|
6966
|
+
default: M(() => [l(v)]),
|
|
6965
6967
|
_: 1
|
|
6966
6968
|
})]),
|
|
6967
|
-
default:
|
|
6969
|
+
default: M(() => [s[0] ||= c(" 从数据新增 ", -1)]),
|
|
6968
6970
|
_: 1
|
|
6969
6971
|
}, 8, ["onClick"])) : r("", !0),
|
|
6970
6972
|
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
@@ -6973,11 +6975,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
6973
6975
|
secondary: "",
|
|
6974
6976
|
onClick: t.onAdd
|
|
6975
6977
|
}, {
|
|
6976
|
-
icon:
|
|
6977
|
-
default:
|
|
6978
|
+
icon: M(() => [l(h, null, {
|
|
6979
|
+
default: M(() => [l(v)]),
|
|
6978
6980
|
_: 1
|
|
6979
6981
|
})]),
|
|
6980
|
-
default:
|
|
6982
|
+
default: M(() => [s[1] ||= c(" 新增 ", -1)]),
|
|
6981
6983
|
_: 1
|
|
6982
6984
|
}, 8, ["onClick"])) : r("", !0)
|
|
6983
6985
|
])]),
|
|
@@ -6988,7 +6990,7 @@ function pm(t, s, u, d, f, p) {
|
|
|
6988
6990
|
model: t.tableData,
|
|
6989
6991
|
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6990
6992
|
}, {
|
|
6991
|
-
default:
|
|
6993
|
+
default: M(() => [t.tableShow ? (x(), n(y, {
|
|
6992
6994
|
key: 0,
|
|
6993
6995
|
ref: "tableRef",
|
|
6994
6996
|
columns: t.columns,
|
|
@@ -7019,11 +7021,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
7019
7021
|
secondary: "",
|
|
7020
7022
|
onClick: t.onAddFormData
|
|
7021
7023
|
}, {
|
|
7022
|
-
icon:
|
|
7023
|
-
default:
|
|
7024
|
+
icon: M(() => [l(h, null, {
|
|
7025
|
+
default: M(() => [l(v)]),
|
|
7024
7026
|
_: 1
|
|
7025
7027
|
})]),
|
|
7026
|
-
default:
|
|
7028
|
+
default: M(() => [s[2] ||= c(" 从数据新增 ", -1)]),
|
|
7027
7029
|
_: 1
|
|
7028
7030
|
}, 8, ["onClick"])) : r("", !0), t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
7029
7031
|
key: 1,
|
|
@@ -7031,11 +7033,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
7031
7033
|
secondary: "",
|
|
7032
7034
|
onClick: t.onAdd
|
|
7033
7035
|
}, {
|
|
7034
|
-
icon:
|
|
7035
|
-
default:
|
|
7036
|
+
icon: M(() => [l(h, null, {
|
|
7037
|
+
default: M(() => [l(v)]),
|
|
7036
7038
|
_: 1
|
|
7037
7039
|
})]),
|
|
7038
|
-
default:
|
|
7040
|
+
default: M(() => [s[3] ||= c(" 新增 ", -1)]),
|
|
7039
7041
|
_: 1
|
|
7040
7042
|
}, 8, ["onClick"])) : r("", !0)])]),
|
|
7041
7043
|
_: 1
|
|
@@ -7109,7 +7111,7 @@ var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
|
7109
7111
|
};
|
|
7110
7112
|
return y(() => {
|
|
7111
7113
|
l();
|
|
7112
|
-
}),
|
|
7114
|
+
}), j(async () => {
|
|
7113
7115
|
try {
|
|
7114
7116
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
7115
7117
|
let t = await Nd({
|
|
@@ -7178,8 +7180,8 @@ function ym(e, t, n, r, o, s) {
|
|
|
7178
7180
|
var bm = /*#__PURE__*/ U(hm, [["render", ym]]), xm = d({
|
|
7179
7181
|
name: "UzTableDrawer",
|
|
7180
7182
|
components: {
|
|
7181
|
-
NButton:
|
|
7182
|
-
NDrawerContent:
|
|
7183
|
+
NButton: I,
|
|
7184
|
+
NDrawerContent: de,
|
|
7183
7185
|
NDrawer: ue,
|
|
7184
7186
|
NSkeleton: je,
|
|
7185
7187
|
NSpin: Ne,
|
|
@@ -7359,19 +7361,19 @@ function Em(t, s, u, d, f, p) {
|
|
|
7359
7361
|
"auto-focus": !1,
|
|
7360
7362
|
"mask-closable": !1
|
|
7361
7363
|
}, {
|
|
7362
|
-
default:
|
|
7364
|
+
default: M(() => [l(b, {
|
|
7363
7365
|
title: t.formStatus === 1 ? t.$t("Common.edit") : t.formStatus === 2 ? t.$t("Common.detail") : t.$t("Common.add"),
|
|
7364
7366
|
closable: ""
|
|
7365
7367
|
}, o({
|
|
7366
|
-
default:
|
|
7367
|
-
description:
|
|
7368
|
-
default:
|
|
7368
|
+
default: M(() => [l(_, { show: t.spinError }, {
|
|
7369
|
+
description: M(() => [c(k(t.$t("Notice.error")), 1)]),
|
|
7370
|
+
default: M(() => [l(g, {
|
|
7369
7371
|
value: t.spinShow,
|
|
7370
7372
|
"onUpdate:value": s[0] ||= (e) => t.spinShow = e,
|
|
7371
7373
|
message: t.spinMsg,
|
|
7372
7374
|
status: t.spinStatus
|
|
7373
7375
|
}, {
|
|
7374
|
-
default:
|
|
7376
|
+
default: M(() => [a("div", Sm, [t.skeletonShow ? (x(), i("div", Cm, [
|
|
7375
7377
|
l(m, {
|
|
7376
7378
|
size: "large",
|
|
7377
7379
|
style: { height: "156px" }
|
|
@@ -7434,13 +7436,13 @@ function Em(t, s, u, d, f, p) {
|
|
|
7434
7436
|
_: 2
|
|
7435
7437
|
}, [t.formStatus === 2 ? void 0 : {
|
|
7436
7438
|
name: "footer",
|
|
7437
|
-
fn:
|
|
7439
|
+
fn: M(() => [a("div", wm, [l(v, {
|
|
7438
7440
|
loading: t.spinShow,
|
|
7439
7441
|
type: "success",
|
|
7440
7442
|
class: "uz-drawer-button",
|
|
7441
7443
|
onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
7442
7444
|
}, {
|
|
7443
|
-
default:
|
|
7445
|
+
default: M(() => [c(k(t.$t("OCR.ocr")), 1)]),
|
|
7444
7446
|
_: 1
|
|
7445
7447
|
}, 8, ["loading"]), a("div", Tm, [
|
|
7446
7448
|
l(v, {
|
|
@@ -7449,24 +7451,24 @@ function Em(t, s, u, d, f, p) {
|
|
|
7449
7451
|
secondary: "",
|
|
7450
7452
|
onClick: t.drawerCheck
|
|
7451
7453
|
}, {
|
|
7452
|
-
default:
|
|
7454
|
+
default: M(() => [c(k(t.$t("Common.cancel")), 1)]),
|
|
7453
7455
|
_: 1
|
|
7454
7456
|
}, 8, ["loading", "onClick"]),
|
|
7455
7457
|
t.formStatus === 0 ? (x(), n(y, {
|
|
7456
7458
|
key: 0,
|
|
7457
7459
|
trigger: "hover"
|
|
7458
7460
|
}, {
|
|
7459
|
-
trigger:
|
|
7461
|
+
trigger: M(() => [l(v, {
|
|
7460
7462
|
type: "success",
|
|
7461
7463
|
loading: t.spinShow,
|
|
7462
7464
|
class: "uz-drawer-button",
|
|
7463
7465
|
secondary: "",
|
|
7464
7466
|
onClick: t.doCacheToStore
|
|
7465
7467
|
}, {
|
|
7466
|
-
default:
|
|
7468
|
+
default: M(() => [c(k(t.$t("Common.cache")), 1)]),
|
|
7467
7469
|
_: 1
|
|
7468
7470
|
}, 8, ["loading", "onClick"])]),
|
|
7469
|
-
default:
|
|
7471
|
+
default: M(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
|
|
7470
7472
|
_: 1
|
|
7471
7473
|
})) : r("", !0),
|
|
7472
7474
|
l(v, {
|
|
@@ -7475,7 +7477,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7475
7477
|
type: "primary",
|
|
7476
7478
|
onClick: t.drawerSubmit
|
|
7477
7479
|
}, {
|
|
7478
|
-
default:
|
|
7480
|
+
default: M(() => [c(k(t.$t("Common.apply")), 1)]),
|
|
7479
7481
|
_: 1
|
|
7480
7482
|
}, 8, ["loading", "onClick"])
|
|
7481
7483
|
])])]),
|
|
@@ -7506,7 +7508,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7506
7508
|
bottom: "0"
|
|
7507
7509
|
}
|
|
7508
7510
|
}, {
|
|
7509
|
-
default:
|
|
7511
|
+
default: M(() => [l(C)]),
|
|
7510
7512
|
_: 1
|
|
7511
7513
|
}, 8, ["show"])], 64);
|
|
7512
7514
|
}
|
|
@@ -7537,12 +7539,12 @@ function jm(t, o, s, c, l, u) {
|
|
|
7537
7539
|
key: o.key,
|
|
7538
7540
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7539
7541
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
7540
|
-
}, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(
|
|
7542
|
+
}, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(O(() => {
|
|
7541
7543
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7542
7544
|
}), {
|
|
7543
7545
|
key: 0,
|
|
7544
7546
|
class: "mobile"
|
|
7545
|
-
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(
|
|
7547
|
+
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(O(() => {
|
|
7546
7548
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7547
7549
|
}), { key: 0 })) : (x(), i("div", Am, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7548
7550
|
}
|
|
@@ -7554,7 +7556,7 @@ var Mm = d({
|
|
|
7554
7556
|
NCheckbox: ie,
|
|
7555
7557
|
NRadio: Oe,
|
|
7556
7558
|
NPagination: Te,
|
|
7557
|
-
NCheckboxGroup:
|
|
7559
|
+
NCheckboxGroup: ae,
|
|
7558
7560
|
NRadioGroup: ke,
|
|
7559
7561
|
UzTableMobileList: /* @__PURE__ */ U(Om, [["render", jm], ["__scopeId", "data-v-84c394fe"]])
|
|
7560
7562
|
},
|
|
@@ -7625,12 +7627,12 @@ function Im(t, a, o, s, c, u) {
|
|
|
7625
7627
|
maxHeight: t.maxH
|
|
7626
7628
|
})
|
|
7627
7629
|
}, {
|
|
7628
|
-
default:
|
|
7630
|
+
default: M(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(f, {
|
|
7629
7631
|
key: e.id,
|
|
7630
7632
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
7631
7633
|
value: e.id
|
|
7632
7634
|
}, {
|
|
7633
|
-
default:
|
|
7635
|
+
default: M(() => [l(d, {
|
|
7634
7636
|
tableData: e,
|
|
7635
7637
|
tableIndex: r,
|
|
7636
7638
|
tableColumns: t.tableColumns
|
|
@@ -7667,12 +7669,12 @@ function Im(t, a, o, s, c, u) {
|
|
|
7667
7669
|
maxHeight: t.maxH
|
|
7668
7670
|
})
|
|
7669
7671
|
}, {
|
|
7670
|
-
default:
|
|
7672
|
+
default: M(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(h, {
|
|
7671
7673
|
key: e.id,
|
|
7672
7674
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
7673
7675
|
value: e.id
|
|
7674
7676
|
}, {
|
|
7675
|
-
default:
|
|
7677
|
+
default: M(() => [l(d, {
|
|
7676
7678
|
tableData: e,
|
|
7677
7679
|
tableIndex: r,
|
|
7678
7680
|
tableColumns: t.tableColumns
|
|
@@ -7789,7 +7791,7 @@ var Wm = d({
|
|
|
7789
7791
|
components: {
|
|
7790
7792
|
NTabs: Ie,
|
|
7791
7793
|
NTabPane: Fe,
|
|
7792
|
-
NButton:
|
|
7794
|
+
NButton: I,
|
|
7793
7795
|
NIcon: B,
|
|
7794
7796
|
NPopconfirm: Ee,
|
|
7795
7797
|
NFlex: pe,
|
|
@@ -7807,9 +7809,9 @@ var Wm = d({
|
|
|
7807
7809
|
let n = w(!!t.prefix), r = Je();
|
|
7808
7810
|
return y(() => {
|
|
7809
7811
|
Rm(e.option), Q.active !== r.path && Bm(r.path, r.fullPath);
|
|
7810
|
-
}),
|
|
7812
|
+
}), A(() => r, (e) => {
|
|
7811
7813
|
Q.active === r.path && Bm(e.path, e.fullPath);
|
|
7812
|
-
}, { deep: !0 }),
|
|
7814
|
+
}, { deep: !0 }), A(() => e.option, (e) => {
|
|
7813
7815
|
Rm(e);
|
|
7814
7816
|
}, { deep: !0 }), {
|
|
7815
7817
|
thumbnailStore: Q,
|
|
@@ -7839,21 +7841,21 @@ function Gm(t, r, a, s, u, d) {
|
|
|
7839
7841
|
"on-update:value": t.handleChange,
|
|
7840
7842
|
class: "uz-thumbnail"
|
|
7841
7843
|
}, o({
|
|
7842
|
-
suffix:
|
|
7843
|
-
default:
|
|
7844
|
-
trigger:
|
|
7845
|
-
default:
|
|
7846
|
-
default:
|
|
7844
|
+
suffix: M(() => [l(_, null, {
|
|
7845
|
+
default: M(() => [l(g, { onPositiveClick: t.handleClear }, {
|
|
7846
|
+
trigger: M(() => [l(h, { class: "uz-button-glass" }, {
|
|
7847
|
+
default: M(() => [l(m, { color: "#e65444" }, {
|
|
7848
|
+
default: M(() => [l(p)]),
|
|
7847
7849
|
_: 1
|
|
7848
7850
|
})]),
|
|
7849
7851
|
_: 1
|
|
7850
7852
|
})]),
|
|
7851
|
-
default:
|
|
7853
|
+
default: M(() => [r[0] ||= c(" 清空所有打开的标签? ", -1)]),
|
|
7852
7854
|
_: 1
|
|
7853
7855
|
}, 8, ["onPositiveClick"]), E(t.$slots, "suffix")]),
|
|
7854
7856
|
_: 3
|
|
7855
7857
|
})]),
|
|
7856
|
-
default:
|
|
7858
|
+
default: M(() => [(x(!0), i(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), n(f, {
|
|
7857
7859
|
key: e.key,
|
|
7858
7860
|
name: e.key,
|
|
7859
7861
|
tab: e.label,
|
|
@@ -7866,7 +7868,7 @@ function Gm(t, r, a, s, u, d) {
|
|
|
7866
7868
|
_: 2
|
|
7867
7869
|
}, [t.isSlotPrefix ? {
|
|
7868
7870
|
name: "prefix",
|
|
7869
|
-
fn:
|
|
7871
|
+
fn: M(() => [E(t.$slots, "prefix")]),
|
|
7870
7872
|
key: "0"
|
|
7871
7873
|
} : void 0]), 1032, [
|
|
7872
7874
|
"value",
|
|
@@ -7931,7 +7933,7 @@ function sh(e, t, r, o, s, c) {
|
|
|
7931
7933
|
"inline-theme-disabled": "",
|
|
7932
7934
|
abstract: ""
|
|
7933
7935
|
}, {
|
|
7934
|
-
default:
|
|
7936
|
+
default: M(() => [E(e.$slots, "default"), (x(), i("svg", oh, [...t[0] ||= [a("defs", null, [a("filter", { id: "uz-blurs" }, [
|
|
7935
7937
|
a("feOffset", {
|
|
7936
7938
|
result: "offOut",
|
|
7937
7939
|
in: "SourceGraphic",
|
|
@@ -8034,7 +8036,7 @@ function uh(e, t) {
|
|
|
8034
8036
|
var dh = d({
|
|
8035
8037
|
name: "UzOcr",
|
|
8036
8038
|
components: {
|
|
8037
|
-
NButton:
|
|
8039
|
+
NButton: I,
|
|
8038
8040
|
NUpload: ze,
|
|
8039
8041
|
NSelect: Ae,
|
|
8040
8042
|
NSwitch: Pe,
|
|
@@ -8082,7 +8084,7 @@ var dh = d({
|
|
|
8082
8084
|
console.error("实时预处理失败", e);
|
|
8083
8085
|
}
|
|
8084
8086
|
};
|
|
8085
|
-
|
|
8087
|
+
A([
|
|
8086
8088
|
f,
|
|
8087
8089
|
o,
|
|
8088
8090
|
s,
|
|
@@ -8191,11 +8193,11 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8191
8193
|
type: "segment",
|
|
8192
8194
|
size: "small"
|
|
8193
8195
|
}, {
|
|
8194
|
-
default:
|
|
8196
|
+
default: M(() => [l(p, {
|
|
8195
8197
|
name: "processed",
|
|
8196
8198
|
tab: e.t("OCR.previewProcessed")
|
|
8197
8199
|
}, {
|
|
8198
|
-
default:
|
|
8200
|
+
default: M(() => [a("div", _h, [a("img", {
|
|
8199
8201
|
src: e.processedImage,
|
|
8200
8202
|
alt: "Processed Preview",
|
|
8201
8203
|
class: "uz-ocr-preview-img"
|
|
@@ -8205,7 +8207,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8205
8207
|
name: "raw",
|
|
8206
8208
|
tab: e.t("OCR.previewRaw")
|
|
8207
8209
|
}, {
|
|
8208
|
-
default:
|
|
8210
|
+
default: M(() => [a("div", bh, [a("img", {
|
|
8209
8211
|
src: e.rawImage,
|
|
8210
8212
|
alt: "Raw Preview",
|
|
8211
8213
|
class: "uz-ocr-preview-img"
|
|
@@ -8217,13 +8219,13 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8217
8219
|
justify: "space-between",
|
|
8218
8220
|
class: "uz-ocr-preview-actions"
|
|
8219
8221
|
}, {
|
|
8220
|
-
default:
|
|
8222
|
+
default: M(() => [l(h, {
|
|
8221
8223
|
size: "small",
|
|
8222
8224
|
secondary: "",
|
|
8223
8225
|
type: "warning",
|
|
8224
8226
|
onClick: e.clearImage
|
|
8225
8227
|
}, {
|
|
8226
|
-
default:
|
|
8228
|
+
default: M(() => [...t[6] ||= [c(" 重新选择 ", -1)]]),
|
|
8227
8229
|
_: 1
|
|
8228
8230
|
}, 8, ["onClick"]), l(h, {
|
|
8229
8231
|
size: "small",
|
|
@@ -8231,7 +8233,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8231
8233
|
loading: e.ocrLoading,
|
|
8232
8234
|
onClick: e.handleManualOcr
|
|
8233
8235
|
}, {
|
|
8234
|
-
default:
|
|
8236
|
+
default: M(() => [c(k(e.t("OCR.reRecognize")), 1)]),
|
|
8235
8237
|
_: 1
|
|
8236
8238
|
}, 8, ["loading", "onClick"])]),
|
|
8237
8239
|
_: 1
|
|
@@ -8243,7 +8245,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8243
8245
|
"directory-dnd": "",
|
|
8244
8246
|
class: "uz-w-full"
|
|
8245
8247
|
}, {
|
|
8246
|
-
default:
|
|
8248
|
+
default: M(() => [a("div", mh, [
|
|
8247
8249
|
t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
|
|
8248
8250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8249
8251
|
viewBox: "0 0 24 24",
|
|
@@ -8550,7 +8552,7 @@ function qh(e, t, n) {
|
|
|
8550
8552
|
}
|
|
8551
8553
|
//#endregion
|
|
8552
8554
|
//#region package.json
|
|
8553
|
-
var Jh = "0.1.
|
|
8555
|
+
var Jh = "0.1.73", Yh;
|
|
8554
8556
|
async function Xh() {
|
|
8555
8557
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8556
8558
|
method: "HEAD",
|