@unizhen/ui 0.1.72 → 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 +440 -440
- 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,
|
|
@@ -5554,7 +5554,7 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5554
5554
|
var Wp = d({
|
|
5555
5555
|
name: "UzSpin",
|
|
5556
5556
|
components: {
|
|
5557
|
-
NButton:
|
|
5557
|
+
NButton: I,
|
|
5558
5558
|
NSpin: Ne,
|
|
5559
5559
|
NEllipsis: fe
|
|
5560
5560
|
},
|
|
@@ -5586,7 +5586,7 @@ var Wp = d({
|
|
|
5586
5586
|
};
|
|
5587
5587
|
return b(() => {
|
|
5588
5588
|
clearInterval(n.value);
|
|
5589
|
-
}),
|
|
5589
|
+
}), A(() => e.status, (e) => {
|
|
5590
5590
|
e === 1 && o();
|
|
5591
5591
|
}), {
|
|
5592
5592
|
counts: r,
|
|
@@ -5600,28 +5600,28 @@ var Wp = d({
|
|
|
5600
5600
|
function Gp(e, t, r, i, o, s) {
|
|
5601
5601
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
5602
5602
|
return x(), n(f, { show: e.value }, {
|
|
5603
|
-
description:
|
|
5603
|
+
description: M(() => [
|
|
5604
5604
|
l(u, {
|
|
5605
5605
|
"expand-trigger": "click",
|
|
5606
5606
|
"line-clamp": "3",
|
|
5607
5607
|
tooltip: !1
|
|
5608
5608
|
}, {
|
|
5609
|
-
default:
|
|
5609
|
+
default: M(() => [c(k(e.status === 0 ? "操作进行中..." : e.message), 1)]),
|
|
5610
5610
|
_: 1
|
|
5611
5611
|
}),
|
|
5612
5612
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
5613
|
-
|
|
5613
|
+
N(l(d, {
|
|
5614
5614
|
type: "warning",
|
|
5615
5615
|
block: "",
|
|
5616
5616
|
secondary: "",
|
|
5617
5617
|
onMouseover: e.stopCountdown,
|
|
5618
5618
|
onClick: e.handleClose
|
|
5619
5619
|
}, {
|
|
5620
|
-
default:
|
|
5620
|
+
default: M(() => [c(" 关闭(" + k(e.counts) + "s) ", 1)]),
|
|
5621
5621
|
_: 1
|
|
5622
|
-
}, 8, ["onMouseover", "onClick"]), [[
|
|
5622
|
+
}, 8, ["onMouseover", "onClick"]), [[ne, e.status === 1]])
|
|
5623
5623
|
]),
|
|
5624
|
-
default:
|
|
5624
|
+
default: M(() => [E(e.$slots, "default")]),
|
|
5625
5625
|
_: 3
|
|
5626
5626
|
}, 8, ["show"]);
|
|
5627
5627
|
}
|
|
@@ -5700,7 +5700,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5700
5700
|
components: {
|
|
5701
5701
|
NDataTable: se,
|
|
5702
5702
|
NPopover: De,
|
|
5703
|
-
NButton:
|
|
5703
|
+
NButton: I,
|
|
5704
5704
|
NIcon: B,
|
|
5705
5705
|
NSkeleton: je,
|
|
5706
5706
|
NCheckbox: ie,
|
|
@@ -5837,47 +5837,47 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5837
5837
|
value: () => null,
|
|
5838
5838
|
setValue: () => null
|
|
5839
5839
|
});
|
|
5840
|
-
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({
|
|
5841
5841
|
params: [],
|
|
5842
5842
|
query: {
|
|
5843
5843
|
page: 1,
|
|
5844
5844
|
pageMax: 1,
|
|
5845
5845
|
pageSize: e.pageSize || 30
|
|
5846
5846
|
}
|
|
5847
|
-
}),
|
|
5847
|
+
}), k = w([]), te = w(void 0), ne = w(void 0), j = w([]), M = w([]), N = w([]), P = w([]), F = w({
|
|
5848
5848
|
fetch: null,
|
|
5849
5849
|
when_drawer_open: "",
|
|
5850
5850
|
when_before_save: ""
|
|
5851
|
-
}),
|
|
5851
|
+
}), L = w(Vp()), re = w(""), ie = w(!1), ae = w([]), R = w([]), oe = p("modules"), se = (e) => e.id, ce = (e, t) => {
|
|
5852
5852
|
n("update:rowKeys", {
|
|
5853
5853
|
keys: e,
|
|
5854
5854
|
rows: H(t)
|
|
5855
5855
|
});
|
|
5856
|
-
},
|
|
5857
|
-
if (
|
|
5856
|
+
}, le = (e, t, r) => {
|
|
5857
|
+
if (ae.value = e, r.action === "check" && R.value.push(r.row), r.action === "uncheck") {
|
|
5858
5858
|
let e = R.value.findIndex((e) => e.id === r.row?.id);
|
|
5859
5859
|
R.value.splice(e, 1);
|
|
5860
5860
|
}
|
|
5861
5861
|
r.action === "checkAll" && t.forEach((e) => {
|
|
5862
5862
|
e && R.value.push(e);
|
|
5863
|
-
}), r.action === "uncheckAll" && (R.value = [],
|
|
5864
|
-
keys: H(
|
|
5863
|
+
}), r.action === "uncheckAll" && (R.value = [], ae.value = []), n("update:rowKeys", {
|
|
5864
|
+
keys: H(ae.value),
|
|
5865
5865
|
rows: H(R.value)
|
|
5866
5866
|
});
|
|
5867
|
-
},
|
|
5868
|
-
|
|
5869
|
-
},
|
|
5870
|
-
let n = e.summary ||
|
|
5867
|
+
}, ue = (e) => {
|
|
5868
|
+
ee.value = e;
|
|
5869
|
+
}, de = (t) => {
|
|
5870
|
+
let n = e.summary || L.value.summary;
|
|
5871
5871
|
return n && typeof n == "string" ? Function("pageData", "h", n)(t, "h", f) : n && typeof n == "function" ? n(t) : [];
|
|
5872
5872
|
}, z = (t = !1) => {
|
|
5873
|
-
let r = e.id ||
|
|
5874
|
-
e.enableLoading && (
|
|
5873
|
+
let r = e.id || o.params.id;
|
|
5874
|
+
e.enableLoading && (_.value = !0, n("update:loading", !0));
|
|
5875
5875
|
let i = H(O.value);
|
|
5876
5876
|
if (t && delete i.orderby, F.value.fetch) Rd([F.value.fetch], "", i).then((e) => {
|
|
5877
5877
|
let t = ud(e);
|
|
5878
|
-
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);
|
|
5879
5879
|
}).catch(() => {
|
|
5880
|
-
|
|
5880
|
+
_.value = !1, v.value = !0, n("update:loading", !1);
|
|
5881
5881
|
});
|
|
5882
5882
|
else {
|
|
5883
5883
|
let t;
|
|
@@ -5889,39 +5889,39 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5889
5889
|
tableId: r
|
|
5890
5890
|
}), t.then((e) => {
|
|
5891
5891
|
let t = ud(e);
|
|
5892
|
-
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);
|
|
5893
5893
|
}).catch(() => {
|
|
5894
|
-
|
|
5894
|
+
_.value = !1, v.value = !0, n("update:loading", !1);
|
|
5895
5895
|
});
|
|
5896
5896
|
}
|
|
5897
|
-
},
|
|
5898
|
-
O.value.query.page = e,
|
|
5899
|
-
},
|
|
5897
|
+
}, fe = (e) => {
|
|
5898
|
+
O.value.query.page = e, u.value && (u.value.scrollTop = 0), ld(), z();
|
|
5899
|
+
}, pe = () => {
|
|
5900
5900
|
let e = O.value.query.page + 1;
|
|
5901
|
-
e > O.value.query.pageMax && (e = 1), O.value.query.page = e,
|
|
5902
|
-
}, pe = (e) => {
|
|
5903
|
-
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();
|
|
5904
5902
|
}, me = (e) => {
|
|
5903
|
+
O.value.query.pageSize = e, O.value.query.page = 1, ld(), z();
|
|
5904
|
+
}, he = (e) => {
|
|
5905
5905
|
e && e.order ? O.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete O.value.orderby, z();
|
|
5906
|
-
},
|
|
5906
|
+
}, ge = () => {
|
|
5907
5907
|
if (typeof e.addFetch == "function") return e.addFetch();
|
|
5908
|
-
|
|
5909
|
-
let { form: e } = await
|
|
5908
|
+
m.value?.addAndEdit(e.id || o.params.id, async () => {
|
|
5909
|
+
let { form: e } = await xe();
|
|
5910
5910
|
return {
|
|
5911
5911
|
form: e,
|
|
5912
5912
|
data: {}
|
|
5913
5913
|
};
|
|
5914
|
-
},
|
|
5915
|
-
}, ge = (e) => {
|
|
5916
|
-
e.show = !e.show, Ae();
|
|
5914
|
+
}, L.value, F.value, 0, Me);
|
|
5917
5915
|
}, _e = (e) => {
|
|
5916
|
+
e.show = !e.show, je();
|
|
5917
|
+
}, B = (e) => {
|
|
5918
5918
|
let t = [];
|
|
5919
5919
|
e.forEach((e) => {
|
|
5920
5920
|
e.show && t.push(e);
|
|
5921
|
-
}),
|
|
5922
|
-
},
|
|
5921
|
+
}), C.value = t;
|
|
5922
|
+
}, ve = (e) => {
|
|
5923
5923
|
O.value.params = e, z();
|
|
5924
|
-
},
|
|
5924
|
+
}, ye = () => [{
|
|
5925
5925
|
title: "创建人/时间",
|
|
5926
5926
|
key: "createTime",
|
|
5927
5927
|
resizable: !0,
|
|
@@ -5939,33 +5939,33 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5939
5939
|
ellipsis: !0,
|
|
5940
5940
|
width: 180,
|
|
5941
5941
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => dd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5942
|
-
}],
|
|
5943
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(M.value, e, () =>
|
|
5944
|
-
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, {
|
|
5945
5945
|
form: t,
|
|
5946
5946
|
fillingDefaultValue: n,
|
|
5947
5947
|
formDefaultValue: r
|
|
5948
5948
|
};
|
|
5949
|
-
},
|
|
5950
|
-
let i = e.id ||
|
|
5951
|
-
|
|
5949
|
+
}, Se = async (t) => new Promise((n, r) => {
|
|
5950
|
+
let i = e.id || o.params.id, a;
|
|
5951
|
+
a = e.fetch ? e.fetch({
|
|
5952
5952
|
id: t.id,
|
|
5953
5953
|
tableId: i
|
|
5954
5954
|
}) : Nd({
|
|
5955
5955
|
id: t.id,
|
|
5956
5956
|
tableId: i
|
|
5957
|
-
}),
|
|
5957
|
+
}), a.then((e) => {
|
|
5958
5958
|
n(e && e[0]);
|
|
5959
5959
|
}).catch(() => {
|
|
5960
5960
|
r();
|
|
5961
5961
|
});
|
|
5962
|
-
}),
|
|
5963
|
-
let n = await
|
|
5962
|
+
}), Ce = async (e, t) => {
|
|
5963
|
+
let n = await Se(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await xe(n || {}), a = {
|
|
5964
5964
|
...n,
|
|
5965
5965
|
...i
|
|
5966
5966
|
};
|
|
5967
5967
|
if (t && typeof t == "string") try {
|
|
5968
|
-
a = await Function("rowData", "POST", "fnNotification", t)(a, Z,
|
|
5968
|
+
a = await Function("rowData", "POST", "fnNotification", t)(a, Z, c).catch(() => null);
|
|
5969
5969
|
} catch (e) {
|
|
5970
5970
|
q(e);
|
|
5971
5971
|
}
|
|
@@ -5981,23 +5981,23 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5981
5981
|
form: r,
|
|
5982
5982
|
data: a
|
|
5983
5983
|
};
|
|
5984
|
-
},
|
|
5985
|
-
let i = H(t.onClick),
|
|
5984
|
+
}, we = (t, r) => {
|
|
5985
|
+
let i = H(t.onClick), a = e.id || o.params.id;
|
|
5986
5986
|
if (t.disabled) {
|
|
5987
5987
|
if (typeof t.disabled == "string") {
|
|
5988
5988
|
let e = Function("rowData", "rowIndex", t.disabled);
|
|
5989
|
-
t.disabled = (n, r) => e(n, r) ||
|
|
5989
|
+
t.disabled = (n, r) => e(n, r) || be(t.key);
|
|
5990
5990
|
} else if (typeof t.disabled == "function") {
|
|
5991
5991
|
let e = H(t);
|
|
5992
|
-
t.disabled = (n, r) => e.disabled(n, r) ||
|
|
5992
|
+
t.disabled = (n, r) => e.disabled(n, r) || be(t.key);
|
|
5993
5993
|
}
|
|
5994
|
-
} else t.disabled = () =>
|
|
5995
|
-
if (t.loading =
|
|
5996
|
-
|
|
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) => {
|
|
5997
5997
|
if (t.optionsType === "drawer:insider") {
|
|
5998
5998
|
if (i) try {
|
|
5999
|
-
Function("rowData", "POST", "fnNotification", i)(r, Z,
|
|
6000
|
-
|
|
5999
|
+
Function("rowData", "POST", "fnNotification", i)(r, Z, c).then((e) => {
|
|
6000
|
+
m.value?.link(t.optionsSource || "", void 0, e);
|
|
6001
6001
|
}).catch((e) => {
|
|
6002
6002
|
q(e);
|
|
6003
6003
|
});
|
|
@@ -6020,12 +6020,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6020
6020
|
else if (t.type !== "group" && t.action === "detailInside") {
|
|
6021
6021
|
let n = H(t.onClick);
|
|
6022
6022
|
t.onClick = (t) => {
|
|
6023
|
-
|
|
6023
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(t, n), L.value, F.value, 2, Me);
|
|
6024
6024
|
};
|
|
6025
6025
|
} else if (t.type !== "group" && t.action === "editInside") {
|
|
6026
6026
|
let n = H(t.onClick);
|
|
6027
6027
|
t.onClick = (t) => {
|
|
6028
|
-
|
|
6028
|
+
m.value?.addAndEdit(e.id || o.params.id, () => Ce(t, n), L.value, F.value, 1, Me);
|
|
6029
6029
|
};
|
|
6030
6030
|
} else if (t.type !== "group" && t.action === "deleteInside") {
|
|
6031
6031
|
let n = H(t.onClick);
|
|
@@ -6033,15 +6033,15 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6033
6033
|
let i;
|
|
6034
6034
|
i = e.deleteFetch ? e.deleteFetch({
|
|
6035
6035
|
...t,
|
|
6036
|
-
tableId:
|
|
6036
|
+
tableId: a,
|
|
6037
6037
|
sub_table_ids: r
|
|
6038
6038
|
}) : Fd({
|
|
6039
6039
|
...t,
|
|
6040
|
-
tableId:
|
|
6040
|
+
tableId: a,
|
|
6041
6041
|
sub_table_ids: r
|
|
6042
6042
|
}), i.then(() => {
|
|
6043
6043
|
if (n) try {
|
|
6044
|
-
Function("rowData", "fnNotification", "POST", n)(t,
|
|
6044
|
+
Function("rowData", "fnNotification", "POST", n)(t, c, Z).then(() => {
|
|
6045
6045
|
z();
|
|
6046
6046
|
}).catch(() => null);
|
|
6047
6047
|
} catch (e) {
|
|
@@ -6054,7 +6054,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6054
6054
|
};
|
|
6055
6055
|
} else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
|
|
6056
6056
|
Pd({
|
|
6057
|
-
tableId: e.id ||
|
|
6057
|
+
tableId: e.id || o.params.id,
|
|
6058
6058
|
...t,
|
|
6059
6059
|
is_disabled: "1"
|
|
6060
6060
|
}).then(() => {
|
|
@@ -6063,7 +6063,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6063
6063
|
};
|
|
6064
6064
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
6065
6065
|
Pd({
|
|
6066
|
-
tableId: e.id ||
|
|
6066
|
+
tableId: e.id || o.params.id,
|
|
6067
6067
|
...t,
|
|
6068
6068
|
is_disabled: "0"
|
|
6069
6069
|
}).then(() => {
|
|
@@ -6076,17 +6076,17 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6076
6076
|
let i;
|
|
6077
6077
|
i = e.fetch ? e.fetch({
|
|
6078
6078
|
id: r.id,
|
|
6079
|
-
tableId:
|
|
6079
|
+
tableId: a
|
|
6080
6080
|
}) : Nd({
|
|
6081
6081
|
id: r.id,
|
|
6082
|
-
tableId:
|
|
6082
|
+
tableId: a
|
|
6083
6083
|
}), i.then((e) => {
|
|
6084
6084
|
let r = e && e[0];
|
|
6085
6085
|
Rd([t.action], r.id, r).then((e) => {
|
|
6086
6086
|
if (n && typeof n == "string") {
|
|
6087
6087
|
try {
|
|
6088
6088
|
Function("rowData", "res", n)(r, e).then((e) => {
|
|
6089
|
-
|
|
6089
|
+
c.success({
|
|
6090
6090
|
content: e,
|
|
6091
6091
|
duration: 3e3
|
|
6092
6092
|
}), z();
|
|
@@ -6100,30 +6100,30 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6100
6100
|
}
|
|
6101
6101
|
if (n && typeof n == "function") {
|
|
6102
6102
|
n(r, e, () => {
|
|
6103
|
-
|
|
6104
|
-
content: () =>
|
|
6103
|
+
c.success({
|
|
6104
|
+
content: () => s("Notice.success"),
|
|
6105
6105
|
duration: 3e3
|
|
6106
6106
|
}), z();
|
|
6107
6107
|
});
|
|
6108
6108
|
return;
|
|
6109
6109
|
}
|
|
6110
|
-
|
|
6111
|
-
content: () =>
|
|
6110
|
+
c.success({
|
|
6111
|
+
content: () => s("Notice.success"),
|
|
6112
6112
|
duration: 3e3
|
|
6113
6113
|
}), z();
|
|
6114
6114
|
}).catch(() => {
|
|
6115
|
-
|
|
6116
|
-
content: () =>
|
|
6115
|
+
c.error({
|
|
6116
|
+
content: () => s("Notice.failed"),
|
|
6117
6117
|
duration: 3e3
|
|
6118
6118
|
}), z();
|
|
6119
6119
|
});
|
|
6120
6120
|
}).catch(() => null);
|
|
6121
6121
|
};
|
|
6122
6122
|
}
|
|
6123
|
-
},
|
|
6124
|
-
|
|
6125
|
-
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(M.value, e.child, 0, () => ({}),
|
|
6126
|
-
!
|
|
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({
|
|
6127
6127
|
title: "#",
|
|
6128
6128
|
key: "index",
|
|
6129
6129
|
align: "center",
|
|
@@ -6138,23 +6138,23 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6138
6138
|
return (e - 1) * n + (t + 1);
|
|
6139
6139
|
} });
|
|
6140
6140
|
}
|
|
6141
|
-
}), !
|
|
6141
|
+
}), !l.value && (e.selection || L.value.selection !== 0) && t.unshift({
|
|
6142
6142
|
type: "selection",
|
|
6143
6143
|
fixed: "left",
|
|
6144
6144
|
width: 60,
|
|
6145
6145
|
hide: !0,
|
|
6146
6146
|
show: !0,
|
|
6147
|
-
multiple: e.selection === 2 ||
|
|
6147
|
+
multiple: e.selection === 2 || L.value.selection === 2,
|
|
6148
6148
|
options: ["all", "none"]
|
|
6149
6149
|
});
|
|
6150
|
-
let
|
|
6151
|
-
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) {
|
|
6152
6152
|
let e = H(N.value);
|
|
6153
6153
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
6154
|
-
|
|
6155
|
-
}) :
|
|
6154
|
+
we(e, r);
|
|
6155
|
+
}) : we(t, r);
|
|
6156
6156
|
let n = {
|
|
6157
|
-
title: () =>
|
|
6157
|
+
title: () => s("Common.action"),
|
|
6158
6158
|
key: "action",
|
|
6159
6159
|
align: "center",
|
|
6160
6160
|
fixed: "right",
|
|
@@ -6162,27 +6162,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6162
6162
|
checked: !0,
|
|
6163
6163
|
show: !0,
|
|
6164
6164
|
hide: !0,
|
|
6165
|
-
width: Number(typeof
|
|
6165
|
+
width: Number(typeof L.value.actionWidth == "string" ? L.value.actionWidth.replace("px", "") : L.value.actionWidth),
|
|
6166
6166
|
render(t) {
|
|
6167
6167
|
return Wd({
|
|
6168
6168
|
buttons: e,
|
|
6169
6169
|
rowData: t,
|
|
6170
6170
|
callback: z,
|
|
6171
|
-
tableId:
|
|
6171
|
+
tableId: a
|
|
6172
6172
|
});
|
|
6173
6173
|
}
|
|
6174
6174
|
};
|
|
6175
6175
|
t.push(n);
|
|
6176
6176
|
}
|
|
6177
|
-
let
|
|
6178
|
-
if (
|
|
6179
|
-
let e = Y(`tables_filter_${
|
|
6177
|
+
let c = t;
|
|
6178
|
+
if (a) {
|
|
6179
|
+
let e = Y(`tables_filter_${a}`, !1);
|
|
6180
6180
|
if (e) try {
|
|
6181
|
-
let n = await Id(
|
|
6182
|
-
n && (e = JSON.parse(n),
|
|
6181
|
+
let n = await Id(a);
|
|
6182
|
+
n && (e = JSON.parse(n), c = yd(t, e));
|
|
6183
6183
|
} catch {}
|
|
6184
6184
|
}
|
|
6185
|
-
i.link &&
|
|
6185
|
+
i.link && c.unshift({
|
|
6186
6186
|
type: "expand",
|
|
6187
6187
|
show: !0,
|
|
6188
6188
|
hide: !0,
|
|
@@ -6190,36 +6190,36 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6190
6190
|
fixed: "left",
|
|
6191
6191
|
filter: "default",
|
|
6192
6192
|
filterOptionValue: null,
|
|
6193
|
-
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") })]),
|
|
6194
6194
|
renderExpand: (e) => f(Yp, {
|
|
6195
6195
|
data: i,
|
|
6196
6196
|
value: e
|
|
6197
6197
|
})
|
|
6198
6198
|
});
|
|
6199
6199
|
let u = 0;
|
|
6200
|
-
|
|
6200
|
+
c.forEach((e) => {
|
|
6201
6201
|
e.show && (u += Number(e.width || 140));
|
|
6202
|
-
}),
|
|
6203
|
-
},
|
|
6202
|
+
}), T.value = c, k.value = n, D.value = u;
|
|
6203
|
+
}, Ee = (e) => typeof e == "number" ? `${e}px` : e, De = () => {
|
|
6204
6204
|
if (e.height) {
|
|
6205
|
-
let t =
|
|
6206
|
-
|
|
6205
|
+
let t = Ee(e.height);
|
|
6206
|
+
te.value = t, ne.value = t;
|
|
6207
6207
|
return;
|
|
6208
6208
|
}
|
|
6209
|
-
},
|
|
6210
|
-
let n = e.id ||
|
|
6209
|
+
}, Oe = (t) => {
|
|
6210
|
+
let n = e.id || o.params.id;
|
|
6211
6211
|
if (n) {
|
|
6212
6212
|
let e = 0;
|
|
6213
|
-
|
|
6213
|
+
T.value.forEach((t) => {
|
|
6214
6214
|
t.show && (e += Number(t.width || 140));
|
|
6215
|
-
}),
|
|
6215
|
+
}), D.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)), Ld({
|
|
6216
6216
|
table_id: n,
|
|
6217
6217
|
data: JSON.stringify(t)
|
|
6218
6218
|
}).catch(() => null);
|
|
6219
6219
|
}
|
|
6220
|
-
}, { run:
|
|
6220
|
+
}, { run: ke } = Tp(Oe), { run: Ae } = Tp((e, t) => {
|
|
6221
6221
|
let n = [];
|
|
6222
|
-
|
|
6222
|
+
T.value.forEach((r) => {
|
|
6223
6223
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
6224
6224
|
key: r.key,
|
|
6225
6225
|
show: r.show,
|
|
@@ -6227,10 +6227,10 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6227
6227
|
fixed: r.fixed,
|
|
6228
6228
|
width: r.key === t ? Number(e.toFixed(0)) : r.width
|
|
6229
6229
|
});
|
|
6230
|
-
}),
|
|
6231
|
-
}),
|
|
6230
|
+
}), Oe(n);
|
|
6231
|
+
}), je = () => {
|
|
6232
6232
|
let e = [];
|
|
6233
|
-
|
|
6233
|
+
T.value.forEach((t) => {
|
|
6234
6234
|
t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
|
|
6235
6235
|
key: t.key,
|
|
6236
6236
|
show: t.show,
|
|
@@ -6238,36 +6238,36 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6238
6238
|
fixed: t.fixed,
|
|
6239
6239
|
width: t.width
|
|
6240
6240
|
});
|
|
6241
|
-
}),
|
|
6242
|
-
},
|
|
6243
|
-
let i,
|
|
6241
|
+
}), ke(e);
|
|
6242
|
+
}, Me = (t, n, r) => {
|
|
6243
|
+
let i, a = e.id || o.params.id;
|
|
6244
6244
|
i = e.formFetch ? e.formFetch({
|
|
6245
|
-
tableId:
|
|
6245
|
+
tableId: a,
|
|
6246
6246
|
...t
|
|
6247
6247
|
}) : Pd({
|
|
6248
|
-
tableId:
|
|
6248
|
+
tableId: a,
|
|
6249
6249
|
...t
|
|
6250
6250
|
}), i.then(() => {
|
|
6251
6251
|
z(), n();
|
|
6252
6252
|
}).catch((e) => {
|
|
6253
6253
|
r(e);
|
|
6254
6254
|
});
|
|
6255
|
-
},
|
|
6256
|
-
|
|
6255
|
+
}, Ne = () => {
|
|
6256
|
+
b.value = "", M.value = [], N.value = [], P.value = [], F.value = {
|
|
6257
6257
|
fetch: null,
|
|
6258
6258
|
when_drawer_open: "",
|
|
6259
6259
|
when_before_save: ""
|
|
6260
|
-
},
|
|
6261
|
-
},
|
|
6260
|
+
}, L.value = Vp();
|
|
6261
|
+
}, Pe = (t) => {
|
|
6262
6262
|
let n = rt.parse(t.viewJson);
|
|
6263
|
-
|
|
6263
|
+
b.value = t.tableTitle, M.value = Lp(n.table), N.value = Qd(e.actions || n.action);
|
|
6264
6264
|
let r = Qd(n.suffix || []);
|
|
6265
|
-
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);
|
|
6266
6266
|
let i = Vp(e.options ?? n.option);
|
|
6267
|
-
t.tableTitle && i.title && fd(t.tableTitle),
|
|
6268
|
-
},
|
|
6269
|
-
|
|
6270
|
-
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;
|
|
6271
6271
|
if (O.value = {
|
|
6272
6272
|
params: [],
|
|
6273
6273
|
query: {
|
|
@@ -6275,18 +6275,18 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6275
6275
|
pageMax: 1,
|
|
6276
6276
|
pageSize: e.pageSize || 30
|
|
6277
6277
|
}
|
|
6278
|
-
},
|
|
6279
|
-
|
|
6278
|
+
}, E.value = [], e.ruleFetch) try {
|
|
6279
|
+
j.value = await e.ruleFetch(t);
|
|
6280
6280
|
} catch {
|
|
6281
|
-
|
|
6281
|
+
re.value = s("Notice.network"), ie.value = !0;
|
|
6282
6282
|
return;
|
|
6283
6283
|
}
|
|
6284
|
-
|
|
6285
|
-
|
|
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();
|
|
6286
6286
|
}).catch((e) => {
|
|
6287
|
-
|
|
6287
|
+
re.value = e?.message || s("Notice.network"), ie.value = !0;
|
|
6288
6288
|
});
|
|
6289
|
-
},
|
|
6289
|
+
}, Ie = (e) => {
|
|
6290
6290
|
if (e.type !== "group" && e.optionsType) {
|
|
6291
6291
|
let t = H(e.onClick);
|
|
6292
6292
|
e.onClick = () => {
|
|
@@ -6297,7 +6297,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6297
6297
|
open: e.optionsType,
|
|
6298
6298
|
onClick: t,
|
|
6299
6299
|
optionsSource: e.optionsSource,
|
|
6300
|
-
mainFormValue: () =>
|
|
6300
|
+
mainFormValue: () => E.value,
|
|
6301
6301
|
children: null,
|
|
6302
6302
|
callback: null
|
|
6303
6303
|
});
|
|
@@ -6308,7 +6308,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6308
6308
|
if (t && typeof t == "string") {
|
|
6309
6309
|
try {
|
|
6310
6310
|
let e = Function("POST", "fnNotification", t);
|
|
6311
|
-
await e(Z,
|
|
6311
|
+
await e(Z, c, e), z();
|
|
6312
6312
|
} catch (e) {
|
|
6313
6313
|
q(e);
|
|
6314
6314
|
}
|
|
@@ -6316,85 +6316,85 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6316
6316
|
}
|
|
6317
6317
|
};
|
|
6318
6318
|
}
|
|
6319
|
-
},
|
|
6320
|
-
if (
|
|
6321
|
-
|
|
6322
|
-
let t = e.id ||
|
|
6319
|
+
}, Le = () => {
|
|
6320
|
+
if (_.value) return;
|
|
6321
|
+
_.value = !0;
|
|
6322
|
+
let t = e.id || o.params.id;
|
|
6323
6323
|
t && (od(`tables_filter_${t}`), Ld({
|
|
6324
6324
|
table_id: t,
|
|
6325
6325
|
data: null
|
|
6326
6326
|
}).catch(() => null).finally(() => {
|
|
6327
|
-
|
|
6327
|
+
Te(), _.value = !1;
|
|
6328
6328
|
}));
|
|
6329
|
-
},
|
|
6330
|
-
|
|
6331
|
-
}, Re = () => {
|
|
6332
|
-
D.value = T.value.map((e) => e.id);
|
|
6329
|
+
}, Re = (e, t, n) => {
|
|
6330
|
+
Ae(e, n.key);
|
|
6333
6331
|
}, ze = () => {
|
|
6334
|
-
|
|
6332
|
+
ee.value = E.value.map((e) => e.id);
|
|
6333
|
+
}, Be = () => {
|
|
6334
|
+
ee.value = [];
|
|
6335
6335
|
};
|
|
6336
6336
|
return r({
|
|
6337
|
-
rebuild:
|
|
6337
|
+
rebuild: Fe,
|
|
6338
6338
|
init: z,
|
|
6339
|
-
nextPage:
|
|
6339
|
+
nextPage: pe
|
|
6340
6340
|
}), y(async () => {
|
|
6341
|
-
await
|
|
6342
|
-
|
|
6341
|
+
await Fe(), h(() => {
|
|
6342
|
+
d.value?.scrollTo({
|
|
6343
6343
|
left: 0,
|
|
6344
6344
|
right: 0
|
|
6345
6345
|
});
|
|
6346
6346
|
});
|
|
6347
|
-
}),
|
|
6348
|
-
|
|
6349
|
-
}, { deep: !0 }),
|
|
6350
|
-
|
|
6351
|
-
}),
|
|
6352
|
-
ld(), await
|
|
6353
|
-
}),
|
|
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) => {
|
|
6354
6354
|
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6355
|
-
|
|
6355
|
+
ae.value = t, R.value = n;
|
|
6356
6356
|
}, { deep: !0 }), {
|
|
6357
|
-
loading:
|
|
6358
|
-
minH:
|
|
6359
|
-
maxH:
|
|
6360
|
-
drawerRef:
|
|
6361
|
-
tableOption:
|
|
6362
|
-
tableCols:
|
|
6363
|
-
tableData:
|
|
6357
|
+
loading: _,
|
|
6358
|
+
minH: te,
|
|
6359
|
+
maxH: ne,
|
|
6360
|
+
drawerRef: m,
|
|
6361
|
+
tableOption: L,
|
|
6362
|
+
tableCols: C,
|
|
6363
|
+
tableData: E,
|
|
6364
6364
|
tableQueries: O,
|
|
6365
|
-
searchData:
|
|
6366
|
-
filterColumns:
|
|
6367
|
-
isSlotHeader:
|
|
6368
|
-
title:
|
|
6369
|
-
dynamicLoading:
|
|
6370
|
-
spinMsg:
|
|
6371
|
-
tableScrollX:
|
|
6365
|
+
searchData: k,
|
|
6366
|
+
filterColumns: T,
|
|
6367
|
+
isSlotHeader: g,
|
|
6368
|
+
title: b,
|
|
6369
|
+
dynamicLoading: v,
|
|
6370
|
+
spinMsg: re,
|
|
6371
|
+
tableScrollX: D,
|
|
6372
6372
|
suffixes: P,
|
|
6373
|
-
spinError:
|
|
6374
|
-
isMobile:
|
|
6375
|
-
mRef:
|
|
6376
|
-
checkRowKeys:
|
|
6377
|
-
route:
|
|
6378
|
-
rowKey:
|
|
6379
|
-
pageChange:
|
|
6380
|
-
pageSizeChange:
|
|
6381
|
-
pageSorter:
|
|
6382
|
-
showChange:
|
|
6383
|
-
submit:
|
|
6384
|
-
handleAdd:
|
|
6385
|
-
handleColumnChange:
|
|
6386
|
-
handleCheckRowKeys:
|
|
6387
|
-
handleExpandedRowKeys:
|
|
6388
|
-
checkRole:
|
|
6389
|
-
rebuild:
|
|
6390
|
-
summaryFn:
|
|
6391
|
-
handleMobileCheckRowKeys:
|
|
6392
|
-
isTypeofNumber:
|
|
6393
|
-
resetFilter:
|
|
6394
|
-
handleColumnResize:
|
|
6395
|
-
expandedRowKeys:
|
|
6396
|
-
handleExpandAll:
|
|
6397
|
-
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
|
|
6398
6398
|
};
|
|
6399
6399
|
}
|
|
6400
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 = {
|
|
@@ -6405,12 +6405,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6405
6405
|
class: "uz-transform-fade-in"
|
|
6406
6406
|
}, rm = { class: "uz-com-title" }, im = ["data-index"];
|
|
6407
6407
|
function am(t, s, u, d, f, p) {
|
|
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"),
|
|
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");
|
|
6409
6409
|
return x(), i("div", {
|
|
6410
6410
|
class: "uz-table",
|
|
6411
6411
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
6412
6412
|
}, [
|
|
6413
|
-
|
|
6413
|
+
N(a("div", Zp, [a("div", Qp, [l(m, {
|
|
6414
6414
|
width: 120,
|
|
6415
6415
|
size: "medium"
|
|
6416
6416
|
}), a("div", $p, [
|
|
@@ -6442,12 +6442,12 @@ function am(t, s, u, d, f, p) {
|
|
|
6442
6442
|
class: "uz-flex-1",
|
|
6443
6443
|
width: "100%",
|
|
6444
6444
|
size: "medium"
|
|
6445
|
-
})], 512), [[
|
|
6446
|
-
|
|
6445
|
+
})], 512), [[ne, !t.dynamicLoading]]),
|
|
6446
|
+
N(l(F, {
|
|
6447
6447
|
show: t.spinError,
|
|
6448
6448
|
class: "uz-table-n-spin"
|
|
6449
6449
|
}, {
|
|
6450
|
-
description:
|
|
6450
|
+
description: M(() => [
|
|
6451
6451
|
a("div", null, k(t.spinMsg), 1),
|
|
6452
6452
|
s[2] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6453
6453
|
l(h, {
|
|
@@ -6455,11 +6455,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6455
6455
|
onClick: t.rebuild,
|
|
6456
6456
|
block: ""
|
|
6457
6457
|
}, {
|
|
6458
|
-
default:
|
|
6458
|
+
default: M(() => [...s[1] ||= [c("重试", -1)]]),
|
|
6459
6459
|
_: 1
|
|
6460
6460
|
}, 8, ["onClick"])
|
|
6461
6461
|
]),
|
|
6462
|
-
default:
|
|
6462
|
+
default: M(() => [t.isMobile ? (x(), i("div", {
|
|
6463
6463
|
key: 0,
|
|
6464
6464
|
class: g([t.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
6465
6465
|
}, [l(S, {
|
|
@@ -6469,18 +6469,18 @@ function am(t, s, u, d, f, p) {
|
|
|
6469
6469
|
loading: t.loading,
|
|
6470
6470
|
"onOnUpdate:value": t.submit
|
|
6471
6471
|
}, o({
|
|
6472
|
-
action:
|
|
6472
|
+
action: M(() => [
|
|
6473
6473
|
t.addFetch && t.tableOption.addButton ? (x(), n(h, {
|
|
6474
6474
|
key: 0,
|
|
6475
6475
|
secondary: "",
|
|
6476
6476
|
disabled: t.checkRole("add"),
|
|
6477
6477
|
onClick: t.handleAdd
|
|
6478
6478
|
}, {
|
|
6479
|
-
icon:
|
|
6480
|
-
default:
|
|
6479
|
+
icon: M(() => [l(y, null, {
|
|
6480
|
+
default: M(() => [l(v)]),
|
|
6481
6481
|
_: 1
|
|
6482
6482
|
})]),
|
|
6483
|
-
default:
|
|
6483
|
+
default: M(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6484
6484
|
_: 1
|
|
6485
6485
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6486
6486
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6497,11 +6497,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6497
6497
|
_: 2
|
|
6498
6498
|
}, [t.isSlotHeader ? {
|
|
6499
6499
|
name: "header",
|
|
6500
|
-
fn:
|
|
6500
|
+
fn: M(() => [E(t.$slots, "header")]),
|
|
6501
6501
|
key: "0"
|
|
6502
6502
|
} : {
|
|
6503
6503
|
name: "header",
|
|
6504
|
-
fn:
|
|
6504
|
+
fn: M(() => [a("div", em, k(t.title), 1)]),
|
|
6505
6505
|
key: "1"
|
|
6506
6506
|
}]), 1032, [
|
|
6507
6507
|
"data",
|
|
@@ -6527,7 +6527,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6527
6527
|
"minH",
|
|
6528
6528
|
"maxH",
|
|
6529
6529
|
"onUpdate:rowKeys"
|
|
6530
|
-
])], 512)], 2)) : (x(), i("div", nm, [l(
|
|
6530
|
+
])], 512)], 2)) : (x(), i("div", nm, [l(j, {
|
|
6531
6531
|
data: t.searchData,
|
|
6532
6532
|
id: t.id || t.route.params.id,
|
|
6533
6533
|
cache: t.tableOption.cache,
|
|
@@ -6536,22 +6536,22 @@ function am(t, s, u, d, f, p) {
|
|
|
6536
6536
|
enableHeader: t.enableHeader,
|
|
6537
6537
|
"onOnUpdate:value": t.submit
|
|
6538
6538
|
}, o({
|
|
6539
|
-
action:
|
|
6540
|
-
t.tableOption.filterButton && t.filterColumns.length > 0 ? (x(), n(
|
|
6539
|
+
action: M(() => [
|
|
6540
|
+
t.tableOption.filterButton && t.filterColumns.length > 0 ? (x(), n(A, {
|
|
6541
6541
|
key: 0,
|
|
6542
6542
|
placement: "bottom-end",
|
|
6543
6543
|
trigger: "click",
|
|
6544
6544
|
"show-arrow": !1
|
|
6545
6545
|
}, {
|
|
6546
|
-
trigger:
|
|
6547
|
-
icon:
|
|
6548
|
-
default:
|
|
6546
|
+
trigger: M(() => [l(h, { secondary: "" }, {
|
|
6547
|
+
icon: M(() => [l(y, null, {
|
|
6548
|
+
default: M(() => [l(w)]),
|
|
6549
6549
|
_: 1
|
|
6550
6550
|
})]),
|
|
6551
|
-
default:
|
|
6551
|
+
default: M(() => [c(" " + k(t.$t("Common.columns")), 1)]),
|
|
6552
6552
|
_: 1
|
|
6553
6553
|
})]),
|
|
6554
|
-
default:
|
|
6554
|
+
default: M(() => [l(te, {
|
|
6555
6555
|
modelValue: t.filterColumns,
|
|
6556
6556
|
"onUpdate:modelValue": s[0] ||= (e) => t.filterColumns = e,
|
|
6557
6557
|
animation: 200,
|
|
@@ -6562,33 +6562,33 @@ function am(t, s, u, d, f, p) {
|
|
|
6562
6562
|
handle: ".uz-drag-handle",
|
|
6563
6563
|
onEnd: t.handleColumnChange
|
|
6564
6564
|
}, {
|
|
6565
|
-
default:
|
|
6565
|
+
default: M(() => [(x(!0), i(e, null, T(t.filterColumns, (e, n) => N((x(), i("div", {
|
|
6566
6566
|
key: e.key,
|
|
6567
6567
|
class: "uz-table-sort",
|
|
6568
6568
|
"data-index": n
|
|
6569
|
-
}, [l(
|
|
6569
|
+
}, [l(ee, {
|
|
6570
6570
|
checked: e.show,
|
|
6571
6571
|
"on-update:checked": () => t.showChange(e),
|
|
6572
6572
|
size: "large"
|
|
6573
6573
|
}, {
|
|
6574
|
-
default:
|
|
6574
|
+
default: M(() => [c(k(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
6575
6575
|
_: 2
|
|
6576
6576
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
6577
6577
|
quaternary: "",
|
|
6578
6578
|
class: "uz-drag-handle"
|
|
6579
6579
|
}, {
|
|
6580
|
-
icon:
|
|
6581
|
-
default:
|
|
6580
|
+
icon: M(() => [l(y, { size: "18" }, {
|
|
6581
|
+
default: M(() => [l(O)]),
|
|
6582
6582
|
_: 1
|
|
6583
6583
|
})]),
|
|
6584
6584
|
_: 1
|
|
6585
|
-
})], 8, im)), [[
|
|
6585
|
+
})], 8, im)), [[ne, !e.hide]])), 128)), l(h, {
|
|
6586
6586
|
block: "",
|
|
6587
6587
|
tertiary: "",
|
|
6588
6588
|
loading: t.loading,
|
|
6589
6589
|
onClick: t.resetFilter
|
|
6590
6590
|
}, {
|
|
6591
|
-
default:
|
|
6591
|
+
default: M(() => [c(k(t.$t("Common.reset")), 1)]),
|
|
6592
6592
|
_: 1
|
|
6593
6593
|
}, 8, ["loading", "onClick"])]),
|
|
6594
6594
|
_: 1
|
|
@@ -6601,11 +6601,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6601
6601
|
disabled: t.checkRole("add"),
|
|
6602
6602
|
onClick: t.handleAdd
|
|
6603
6603
|
}, {
|
|
6604
|
-
icon:
|
|
6605
|
-
default:
|
|
6604
|
+
icon: M(() => [l(y, null, {
|
|
6605
|
+
default: M(() => [l(v)]),
|
|
6606
6606
|
_: 1
|
|
6607
6607
|
})]),
|
|
6608
|
-
default:
|
|
6608
|
+
default: M(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6609
6609
|
_: 1
|
|
6610
6610
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6611
6611
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6622,11 +6622,11 @@ function am(t, s, u, d, f, p) {
|
|
|
6622
6622
|
_: 2
|
|
6623
6623
|
}, [t.isSlotHeader ? {
|
|
6624
6624
|
name: "header",
|
|
6625
|
-
fn:
|
|
6625
|
+
fn: M(() => [E(t.$slots, "header")]),
|
|
6626
6626
|
key: "0"
|
|
6627
6627
|
} : {
|
|
6628
6628
|
name: "header",
|
|
6629
|
-
fn:
|
|
6629
|
+
fn: M(() => [a("div", rm, k(t.title), 1)]),
|
|
6630
6630
|
key: "1"
|
|
6631
6631
|
}]), 1032, [
|
|
6632
6632
|
"data",
|
|
@@ -6636,7 +6636,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6636
6636
|
"cols",
|
|
6637
6637
|
"enableHeader",
|
|
6638
6638
|
"onOnUpdate:value"
|
|
6639
|
-
]), l(
|
|
6639
|
+
]), l(P, {
|
|
6640
6640
|
ref: "tableRef",
|
|
6641
6641
|
columns: t.tableCols,
|
|
6642
6642
|
data: t.tableData,
|
|
@@ -6686,15 +6686,15 @@ function am(t, s, u, d, f, p) {
|
|
|
6686
6686
|
"onUpdate:expandedRowKeys"
|
|
6687
6687
|
])]))]),
|
|
6688
6688
|
_: 3
|
|
6689
|
-
}, 8, ["show"]), [[
|
|
6690
|
-
l(
|
|
6689
|
+
}, 8, ["show"]), [[ne, t.dynamicLoading]]),
|
|
6690
|
+
l(I, { ref: "drawerRef" }, null, 512)
|
|
6691
6691
|
], 4);
|
|
6692
6692
|
}
|
|
6693
6693
|
var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
6694
6694
|
name: "UzTableChild",
|
|
6695
6695
|
components: {
|
|
6696
6696
|
NSpin: Ne,
|
|
6697
|
-
NButton:
|
|
6697
|
+
NButton: I,
|
|
6698
6698
|
NIcon: B,
|
|
6699
6699
|
NDataTable: se,
|
|
6700
6700
|
NForm: me,
|
|
@@ -6722,7 +6722,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6722
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) => {
|
|
6723
6723
|
let { formDefaultValue: r, fillingDefaultArray: i } = await Hp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6724
6724
|
return C.value = r, i;
|
|
6725
|
-
},
|
|
6725
|
+
}, ee = async (t) => {
|
|
6726
6726
|
if (_.value) return;
|
|
6727
6727
|
_.value = !0;
|
|
6728
6728
|
let n = await D(t), r = H(t).map((e, t) => ({
|
|
@@ -6744,12 +6744,12 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6744
6744
|
q(e);
|
|
6745
6745
|
}
|
|
6746
6746
|
x.value.child = r, _.value = !1, h(() => {
|
|
6747
|
-
|
|
6747
|
+
P();
|
|
6748
6748
|
});
|
|
6749
6749
|
} else h(() => {
|
|
6750
|
-
|
|
6750
|
+
P();
|
|
6751
6751
|
});
|
|
6752
|
-
},
|
|
6752
|
+
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6753
6753
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6754
6754
|
let { tableColumns: r, tableWidth: i } = await Up(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6755
6755
|
r.unshift({
|
|
@@ -6817,11 +6817,11 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6817
6817
|
}
|
|
6818
6818
|
}
|
|
6819
6819
|
return [];
|
|
6820
|
-
},
|
|
6820
|
+
}, ne = async () => {
|
|
6821
6821
|
S.value = "", x.value.child.push(H(C.value)), h(() => {
|
|
6822
|
-
|
|
6822
|
+
P();
|
|
6823
6823
|
});
|
|
6824
|
-
},
|
|
6824
|
+
}, j = async () => {
|
|
6825
6825
|
S.value = "";
|
|
6826
6826
|
try {
|
|
6827
6827
|
let t = e.item.params.options;
|
|
@@ -6834,7 +6834,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6834
6834
|
callback: async (e) => {
|
|
6835
6835
|
let t = await n(e, o, Z);
|
|
6836
6836
|
x.value.child = [...x.value.child, ...t], h(() => {
|
|
6837
|
-
|
|
6837
|
+
P();
|
|
6838
6838
|
});
|
|
6839
6839
|
}
|
|
6840
6840
|
});
|
|
@@ -6844,16 +6844,16 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6844
6844
|
children: () => x.value.child,
|
|
6845
6845
|
callback: async (e) => {
|
|
6846
6846
|
x.value.child = [...x.value.child, ...e], h(() => {
|
|
6847
|
-
|
|
6847
|
+
P();
|
|
6848
6848
|
});
|
|
6849
6849
|
}
|
|
6850
6850
|
});
|
|
6851
6851
|
} catch (e) {
|
|
6852
6852
|
q(e);
|
|
6853
6853
|
}
|
|
6854
|
-
},
|
|
6854
|
+
}, M = () => {
|
|
6855
6855
|
m.value?.restoreValidation();
|
|
6856
|
-
},
|
|
6856
|
+
}, N = () => (S.value = "", new Promise((t, n) => {
|
|
6857
6857
|
let r = x.value.child.filter((e) => !e.delete).length;
|
|
6858
6858
|
if (e.item.form.rule.required && r === 0) {
|
|
6859
6859
|
S.value = e.item.form.rule.message, n();
|
|
@@ -6862,7 +6862,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6862
6862
|
m.value?.validate((r) => {
|
|
6863
6863
|
r ? (S.value = e.item.form.rule.message, n()) : t();
|
|
6864
6864
|
});
|
|
6865
|
-
})),
|
|
6865
|
+
})), P = () => {
|
|
6866
6866
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
6867
6867
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
6868
6868
|
e && (d.value = at.create(e, {
|
|
@@ -6875,7 +6875,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6875
6875
|
sort_index: t
|
|
6876
6876
|
})), x.value.child = n, h(() => {
|
|
6877
6877
|
y.value = !0, setTimeout(() => {
|
|
6878
|
-
|
|
6878
|
+
P();
|
|
6879
6879
|
}, 0);
|
|
6880
6880
|
});
|
|
6881
6881
|
}
|
|
@@ -6885,21 +6885,21 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6885
6885
|
return v(() => {
|
|
6886
6886
|
d.value?.destroy(), d.value = null;
|
|
6887
6887
|
}), r({
|
|
6888
|
-
validate:
|
|
6889
|
-
restoreValidation:
|
|
6890
|
-
}),
|
|
6888
|
+
validate: N,
|
|
6889
|
+
restoreValidation: M
|
|
6890
|
+
}), A(() => e.item.params.columns, (e, t) => {
|
|
6891
6891
|
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6892
6892
|
}, {
|
|
6893
6893
|
deep: !0,
|
|
6894
6894
|
immediate: !0
|
|
6895
|
-
}),
|
|
6896
|
-
JSON.stringify(e) !== JSON.stringify(x.value.child) &&
|
|
6895
|
+
}), A(() => e.value, (e) => {
|
|
6896
|
+
JSON.stringify(e) !== JSON.stringify(x.value.child) && ee(e);
|
|
6897
6897
|
}, {
|
|
6898
6898
|
deep: !0,
|
|
6899
6899
|
immediate: !0
|
|
6900
|
-
}),
|
|
6900
|
+
}), A(() => x.value.child, (t) => {
|
|
6901
6901
|
e.status !== 2 && n("update:value", t);
|
|
6902
|
-
}, { deep: !0 }),
|
|
6902
|
+
}, { deep: !0 }), A(() => c.value, async () => {
|
|
6903
6903
|
await k(void 0, !0);
|
|
6904
6904
|
}), {
|
|
6905
6905
|
spin: g,
|
|
@@ -6913,9 +6913,9 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6913
6913
|
tableScrollX: E,
|
|
6914
6914
|
tableShow: y,
|
|
6915
6915
|
suffixes: T,
|
|
6916
|
-
onAdd:
|
|
6917
|
-
onAddFormData:
|
|
6918
|
-
rowClassName:
|
|
6916
|
+
onAdd: ne,
|
|
6917
|
+
onAddFormData: j,
|
|
6918
|
+
rowClassName: O,
|
|
6919
6919
|
doSuffixClick: (e) => {
|
|
6920
6920
|
i({
|
|
6921
6921
|
open: e.optionsType,
|
|
@@ -6938,7 +6938,7 @@ function pm(t, s, u, d, f, p) {
|
|
|
6938
6938
|
show: t.spin,
|
|
6939
6939
|
class: "uz-flex-1 uz-w-full"
|
|
6940
6940
|
}, {
|
|
6941
|
-
default:
|
|
6941
|
+
default: M(() => [
|
|
6942
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, [
|
|
6943
6943
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6944
6944
|
key: e.key,
|
|
@@ -6946,12 +6946,12 @@ function pm(t, s, u, d, f, p) {
|
|
|
6946
6946
|
secondary: "",
|
|
6947
6947
|
onClick: (n) => t.doSuffixClick(e)
|
|
6948
6948
|
}, o({
|
|
6949
|
-
default:
|
|
6949
|
+
default: M(() => [c(" " + k(e.buttonText), 1)]),
|
|
6950
6950
|
_: 2
|
|
6951
6951
|
}, [e.icon ? {
|
|
6952
6952
|
name: "icon",
|
|
6953
|
-
fn:
|
|
6954
|
-
default:
|
|
6953
|
+
fn: M(() => [l(h, null, {
|
|
6954
|
+
default: M(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6955
6955
|
_: 2
|
|
6956
6956
|
}, 1024)]),
|
|
6957
6957
|
key: "0"
|
|
@@ -6962,11 +6962,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
6962
6962
|
secondary: "",
|
|
6963
6963
|
onClick: t.onAddFormData
|
|
6964
6964
|
}, {
|
|
6965
|
-
icon:
|
|
6966
|
-
default:
|
|
6965
|
+
icon: M(() => [l(h, null, {
|
|
6966
|
+
default: M(() => [l(v)]),
|
|
6967
6967
|
_: 1
|
|
6968
6968
|
})]),
|
|
6969
|
-
default:
|
|
6969
|
+
default: M(() => [s[0] ||= c(" 从数据新增 ", -1)]),
|
|
6970
6970
|
_: 1
|
|
6971
6971
|
}, 8, ["onClick"])) : r("", !0),
|
|
6972
6972
|
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
@@ -6975,11 +6975,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
6975
6975
|
secondary: "",
|
|
6976
6976
|
onClick: t.onAdd
|
|
6977
6977
|
}, {
|
|
6978
|
-
icon:
|
|
6979
|
-
default:
|
|
6978
|
+
icon: M(() => [l(h, null, {
|
|
6979
|
+
default: M(() => [l(v)]),
|
|
6980
6980
|
_: 1
|
|
6981
6981
|
})]),
|
|
6982
|
-
default:
|
|
6982
|
+
default: M(() => [s[1] ||= c(" 新增 ", -1)]),
|
|
6983
6983
|
_: 1
|
|
6984
6984
|
}, 8, ["onClick"])) : r("", !0)
|
|
6985
6985
|
])]),
|
|
@@ -6990,7 +6990,7 @@ function pm(t, s, u, d, f, p) {
|
|
|
6990
6990
|
model: t.tableData,
|
|
6991
6991
|
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6992
6992
|
}, {
|
|
6993
|
-
default:
|
|
6993
|
+
default: M(() => [t.tableShow ? (x(), n(y, {
|
|
6994
6994
|
key: 0,
|
|
6995
6995
|
ref: "tableRef",
|
|
6996
6996
|
columns: t.columns,
|
|
@@ -7021,11 +7021,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
7021
7021
|
secondary: "",
|
|
7022
7022
|
onClick: t.onAddFormData
|
|
7023
7023
|
}, {
|
|
7024
|
-
icon:
|
|
7025
|
-
default:
|
|
7024
|
+
icon: M(() => [l(h, null, {
|
|
7025
|
+
default: M(() => [l(v)]),
|
|
7026
7026
|
_: 1
|
|
7027
7027
|
})]),
|
|
7028
|
-
default:
|
|
7028
|
+
default: M(() => [s[2] ||= c(" 从数据新增 ", -1)]),
|
|
7029
7029
|
_: 1
|
|
7030
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(_, {
|
|
7031
7031
|
key: 1,
|
|
@@ -7033,11 +7033,11 @@ function pm(t, s, u, d, f, p) {
|
|
|
7033
7033
|
secondary: "",
|
|
7034
7034
|
onClick: t.onAdd
|
|
7035
7035
|
}, {
|
|
7036
|
-
icon:
|
|
7037
|
-
default:
|
|
7036
|
+
icon: M(() => [l(h, null, {
|
|
7037
|
+
default: M(() => [l(v)]),
|
|
7038
7038
|
_: 1
|
|
7039
7039
|
})]),
|
|
7040
|
-
default:
|
|
7040
|
+
default: M(() => [s[3] ||= c(" 新增 ", -1)]),
|
|
7041
7041
|
_: 1
|
|
7042
7042
|
}, 8, ["onClick"])) : r("", !0)])]),
|
|
7043
7043
|
_: 1
|
|
@@ -7111,7 +7111,7 @@ var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
|
7111
7111
|
};
|
|
7112
7112
|
return y(() => {
|
|
7113
7113
|
l();
|
|
7114
|
-
}),
|
|
7114
|
+
}), j(async () => {
|
|
7115
7115
|
try {
|
|
7116
7116
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
7117
7117
|
let t = await Nd({
|
|
@@ -7180,8 +7180,8 @@ function ym(e, t, n, r, o, s) {
|
|
|
7180
7180
|
var bm = /*#__PURE__*/ U(hm, [["render", ym]]), xm = d({
|
|
7181
7181
|
name: "UzTableDrawer",
|
|
7182
7182
|
components: {
|
|
7183
|
-
NButton:
|
|
7184
|
-
NDrawerContent:
|
|
7183
|
+
NButton: I,
|
|
7184
|
+
NDrawerContent: de,
|
|
7185
7185
|
NDrawer: ue,
|
|
7186
7186
|
NSkeleton: je,
|
|
7187
7187
|
NSpin: Ne,
|
|
@@ -7361,19 +7361,19 @@ function Em(t, s, u, d, f, p) {
|
|
|
7361
7361
|
"auto-focus": !1,
|
|
7362
7362
|
"mask-closable": !1
|
|
7363
7363
|
}, {
|
|
7364
|
-
default:
|
|
7364
|
+
default: M(() => [l(b, {
|
|
7365
7365
|
title: t.formStatus === 1 ? t.$t("Common.edit") : t.formStatus === 2 ? t.$t("Common.detail") : t.$t("Common.add"),
|
|
7366
7366
|
closable: ""
|
|
7367
7367
|
}, o({
|
|
7368
|
-
default:
|
|
7369
|
-
description:
|
|
7370
|
-
default:
|
|
7368
|
+
default: M(() => [l(_, { show: t.spinError }, {
|
|
7369
|
+
description: M(() => [c(k(t.$t("Notice.error")), 1)]),
|
|
7370
|
+
default: M(() => [l(g, {
|
|
7371
7371
|
value: t.spinShow,
|
|
7372
7372
|
"onUpdate:value": s[0] ||= (e) => t.spinShow = e,
|
|
7373
7373
|
message: t.spinMsg,
|
|
7374
7374
|
status: t.spinStatus
|
|
7375
7375
|
}, {
|
|
7376
|
-
default:
|
|
7376
|
+
default: M(() => [a("div", Sm, [t.skeletonShow ? (x(), i("div", Cm, [
|
|
7377
7377
|
l(m, {
|
|
7378
7378
|
size: "large",
|
|
7379
7379
|
style: { height: "156px" }
|
|
@@ -7436,13 +7436,13 @@ function Em(t, s, u, d, f, p) {
|
|
|
7436
7436
|
_: 2
|
|
7437
7437
|
}, [t.formStatus === 2 ? void 0 : {
|
|
7438
7438
|
name: "footer",
|
|
7439
|
-
fn:
|
|
7439
|
+
fn: M(() => [a("div", wm, [l(v, {
|
|
7440
7440
|
loading: t.spinShow,
|
|
7441
7441
|
type: "success",
|
|
7442
7442
|
class: "uz-drawer-button",
|
|
7443
7443
|
onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
7444
7444
|
}, {
|
|
7445
|
-
default:
|
|
7445
|
+
default: M(() => [c(k(t.$t("OCR.ocr")), 1)]),
|
|
7446
7446
|
_: 1
|
|
7447
7447
|
}, 8, ["loading"]), a("div", Tm, [
|
|
7448
7448
|
l(v, {
|
|
@@ -7451,24 +7451,24 @@ function Em(t, s, u, d, f, p) {
|
|
|
7451
7451
|
secondary: "",
|
|
7452
7452
|
onClick: t.drawerCheck
|
|
7453
7453
|
}, {
|
|
7454
|
-
default:
|
|
7454
|
+
default: M(() => [c(k(t.$t("Common.cancel")), 1)]),
|
|
7455
7455
|
_: 1
|
|
7456
7456
|
}, 8, ["loading", "onClick"]),
|
|
7457
7457
|
t.formStatus === 0 ? (x(), n(y, {
|
|
7458
7458
|
key: 0,
|
|
7459
7459
|
trigger: "hover"
|
|
7460
7460
|
}, {
|
|
7461
|
-
trigger:
|
|
7461
|
+
trigger: M(() => [l(v, {
|
|
7462
7462
|
type: "success",
|
|
7463
7463
|
loading: t.spinShow,
|
|
7464
7464
|
class: "uz-drawer-button",
|
|
7465
7465
|
secondary: "",
|
|
7466
7466
|
onClick: t.doCacheToStore
|
|
7467
7467
|
}, {
|
|
7468
|
-
default:
|
|
7468
|
+
default: M(() => [c(k(t.$t("Common.cache")), 1)]),
|
|
7469
7469
|
_: 1
|
|
7470
7470
|
}, 8, ["loading", "onClick"])]),
|
|
7471
|
-
default:
|
|
7471
|
+
default: M(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
|
|
7472
7472
|
_: 1
|
|
7473
7473
|
})) : r("", !0),
|
|
7474
7474
|
l(v, {
|
|
@@ -7477,7 +7477,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7477
7477
|
type: "primary",
|
|
7478
7478
|
onClick: t.drawerSubmit
|
|
7479
7479
|
}, {
|
|
7480
|
-
default:
|
|
7480
|
+
default: M(() => [c(k(t.$t("Common.apply")), 1)]),
|
|
7481
7481
|
_: 1
|
|
7482
7482
|
}, 8, ["loading", "onClick"])
|
|
7483
7483
|
])])]),
|
|
@@ -7508,7 +7508,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7508
7508
|
bottom: "0"
|
|
7509
7509
|
}
|
|
7510
7510
|
}, {
|
|
7511
|
-
default:
|
|
7511
|
+
default: M(() => [l(C)]),
|
|
7512
7512
|
_: 1
|
|
7513
7513
|
}, 8, ["show"])], 64);
|
|
7514
7514
|
}
|
|
@@ -7539,12 +7539,12 @@ function jm(t, o, s, c, l, u) {
|
|
|
7539
7539
|
key: o.key,
|
|
7540
7540
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7541
7541
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
7542
|
-
}, [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(() => {
|
|
7543
7543
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7544
7544
|
}), {
|
|
7545
7545
|
key: 0,
|
|
7546
7546
|
class: "mobile"
|
|
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(
|
|
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(() => {
|
|
7548
7548
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7549
7549
|
}), { key: 0 })) : (x(), i("div", Am, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7550
7550
|
}
|
|
@@ -7556,7 +7556,7 @@ var Mm = d({
|
|
|
7556
7556
|
NCheckbox: ie,
|
|
7557
7557
|
NRadio: Oe,
|
|
7558
7558
|
NPagination: Te,
|
|
7559
|
-
NCheckboxGroup:
|
|
7559
|
+
NCheckboxGroup: ae,
|
|
7560
7560
|
NRadioGroup: ke,
|
|
7561
7561
|
UzTableMobileList: /* @__PURE__ */ U(Om, [["render", jm], ["__scopeId", "data-v-84c394fe"]])
|
|
7562
7562
|
},
|
|
@@ -7627,12 +7627,12 @@ function Im(t, a, o, s, c, u) {
|
|
|
7627
7627
|
maxHeight: t.maxH
|
|
7628
7628
|
})
|
|
7629
7629
|
}, {
|
|
7630
|
-
default:
|
|
7630
|
+
default: M(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(f, {
|
|
7631
7631
|
key: e.id,
|
|
7632
7632
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
7633
7633
|
value: e.id
|
|
7634
7634
|
}, {
|
|
7635
|
-
default:
|
|
7635
|
+
default: M(() => [l(d, {
|
|
7636
7636
|
tableData: e,
|
|
7637
7637
|
tableIndex: r,
|
|
7638
7638
|
tableColumns: t.tableColumns
|
|
@@ -7669,12 +7669,12 @@ function Im(t, a, o, s, c, u) {
|
|
|
7669
7669
|
maxHeight: t.maxH
|
|
7670
7670
|
})
|
|
7671
7671
|
}, {
|
|
7672
|
-
default:
|
|
7672
|
+
default: M(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(h, {
|
|
7673
7673
|
key: e.id,
|
|
7674
7674
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
7675
7675
|
value: e.id
|
|
7676
7676
|
}, {
|
|
7677
|
-
default:
|
|
7677
|
+
default: M(() => [l(d, {
|
|
7678
7678
|
tableData: e,
|
|
7679
7679
|
tableIndex: r,
|
|
7680
7680
|
tableColumns: t.tableColumns
|
|
@@ -7791,7 +7791,7 @@ var Wm = d({
|
|
|
7791
7791
|
components: {
|
|
7792
7792
|
NTabs: Ie,
|
|
7793
7793
|
NTabPane: Fe,
|
|
7794
|
-
NButton:
|
|
7794
|
+
NButton: I,
|
|
7795
7795
|
NIcon: B,
|
|
7796
7796
|
NPopconfirm: Ee,
|
|
7797
7797
|
NFlex: pe,
|
|
@@ -7809,9 +7809,9 @@ var Wm = d({
|
|
|
7809
7809
|
let n = w(!!t.prefix), r = Je();
|
|
7810
7810
|
return y(() => {
|
|
7811
7811
|
Rm(e.option), Q.active !== r.path && Bm(r.path, r.fullPath);
|
|
7812
|
-
}),
|
|
7812
|
+
}), A(() => r, (e) => {
|
|
7813
7813
|
Q.active === r.path && Bm(e.path, e.fullPath);
|
|
7814
|
-
}, { deep: !0 }),
|
|
7814
|
+
}, { deep: !0 }), A(() => e.option, (e) => {
|
|
7815
7815
|
Rm(e);
|
|
7816
7816
|
}, { deep: !0 }), {
|
|
7817
7817
|
thumbnailStore: Q,
|
|
@@ -7841,21 +7841,21 @@ function Gm(t, r, a, s, u, d) {
|
|
|
7841
7841
|
"on-update:value": t.handleChange,
|
|
7842
7842
|
class: "uz-thumbnail"
|
|
7843
7843
|
}, o({
|
|
7844
|
-
suffix:
|
|
7845
|
-
default:
|
|
7846
|
-
trigger:
|
|
7847
|
-
default:
|
|
7848
|
-
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)]),
|
|
7849
7849
|
_: 1
|
|
7850
7850
|
})]),
|
|
7851
7851
|
_: 1
|
|
7852
7852
|
})]),
|
|
7853
|
-
default:
|
|
7853
|
+
default: M(() => [r[0] ||= c(" 清空所有打开的标签? ", -1)]),
|
|
7854
7854
|
_: 1
|
|
7855
7855
|
}, 8, ["onPositiveClick"]), E(t.$slots, "suffix")]),
|
|
7856
7856
|
_: 3
|
|
7857
7857
|
})]),
|
|
7858
|
-
default:
|
|
7858
|
+
default: M(() => [(x(!0), i(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), n(f, {
|
|
7859
7859
|
key: e.key,
|
|
7860
7860
|
name: e.key,
|
|
7861
7861
|
tab: e.label,
|
|
@@ -7868,7 +7868,7 @@ function Gm(t, r, a, s, u, d) {
|
|
|
7868
7868
|
_: 2
|
|
7869
7869
|
}, [t.isSlotPrefix ? {
|
|
7870
7870
|
name: "prefix",
|
|
7871
|
-
fn:
|
|
7871
|
+
fn: M(() => [E(t.$slots, "prefix")]),
|
|
7872
7872
|
key: "0"
|
|
7873
7873
|
} : void 0]), 1032, [
|
|
7874
7874
|
"value",
|
|
@@ -7933,7 +7933,7 @@ function sh(e, t, r, o, s, c) {
|
|
|
7933
7933
|
"inline-theme-disabled": "",
|
|
7934
7934
|
abstract: ""
|
|
7935
7935
|
}, {
|
|
7936
|
-
default:
|
|
7936
|
+
default: M(() => [E(e.$slots, "default"), (x(), i("svg", oh, [...t[0] ||= [a("defs", null, [a("filter", { id: "uz-blurs" }, [
|
|
7937
7937
|
a("feOffset", {
|
|
7938
7938
|
result: "offOut",
|
|
7939
7939
|
in: "SourceGraphic",
|
|
@@ -8036,7 +8036,7 @@ function uh(e, t) {
|
|
|
8036
8036
|
var dh = d({
|
|
8037
8037
|
name: "UzOcr",
|
|
8038
8038
|
components: {
|
|
8039
|
-
NButton:
|
|
8039
|
+
NButton: I,
|
|
8040
8040
|
NUpload: ze,
|
|
8041
8041
|
NSelect: Ae,
|
|
8042
8042
|
NSwitch: Pe,
|
|
@@ -8084,7 +8084,7 @@ var dh = d({
|
|
|
8084
8084
|
console.error("实时预处理失败", e);
|
|
8085
8085
|
}
|
|
8086
8086
|
};
|
|
8087
|
-
|
|
8087
|
+
A([
|
|
8088
8088
|
f,
|
|
8089
8089
|
o,
|
|
8090
8090
|
s,
|
|
@@ -8193,11 +8193,11 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8193
8193
|
type: "segment",
|
|
8194
8194
|
size: "small"
|
|
8195
8195
|
}, {
|
|
8196
|
-
default:
|
|
8196
|
+
default: M(() => [l(p, {
|
|
8197
8197
|
name: "processed",
|
|
8198
8198
|
tab: e.t("OCR.previewProcessed")
|
|
8199
8199
|
}, {
|
|
8200
|
-
default:
|
|
8200
|
+
default: M(() => [a("div", _h, [a("img", {
|
|
8201
8201
|
src: e.processedImage,
|
|
8202
8202
|
alt: "Processed Preview",
|
|
8203
8203
|
class: "uz-ocr-preview-img"
|
|
@@ -8207,7 +8207,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8207
8207
|
name: "raw",
|
|
8208
8208
|
tab: e.t("OCR.previewRaw")
|
|
8209
8209
|
}, {
|
|
8210
|
-
default:
|
|
8210
|
+
default: M(() => [a("div", bh, [a("img", {
|
|
8211
8211
|
src: e.rawImage,
|
|
8212
8212
|
alt: "Raw Preview",
|
|
8213
8213
|
class: "uz-ocr-preview-img"
|
|
@@ -8219,13 +8219,13 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8219
8219
|
justify: "space-between",
|
|
8220
8220
|
class: "uz-ocr-preview-actions"
|
|
8221
8221
|
}, {
|
|
8222
|
-
default:
|
|
8222
|
+
default: M(() => [l(h, {
|
|
8223
8223
|
size: "small",
|
|
8224
8224
|
secondary: "",
|
|
8225
8225
|
type: "warning",
|
|
8226
8226
|
onClick: e.clearImage
|
|
8227
8227
|
}, {
|
|
8228
|
-
default:
|
|
8228
|
+
default: M(() => [...t[6] ||= [c(" 重新选择 ", -1)]]),
|
|
8229
8229
|
_: 1
|
|
8230
8230
|
}, 8, ["onClick"]), l(h, {
|
|
8231
8231
|
size: "small",
|
|
@@ -8233,7 +8233,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8233
8233
|
loading: e.ocrLoading,
|
|
8234
8234
|
onClick: e.handleManualOcr
|
|
8235
8235
|
}, {
|
|
8236
|
-
default:
|
|
8236
|
+
default: M(() => [c(k(e.t("OCR.reRecognize")), 1)]),
|
|
8237
8237
|
_: 1
|
|
8238
8238
|
}, 8, ["loading", "onClick"])]),
|
|
8239
8239
|
_: 1
|
|
@@ -8245,7 +8245,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8245
8245
|
"directory-dnd": "",
|
|
8246
8246
|
class: "uz-w-full"
|
|
8247
8247
|
}, {
|
|
8248
|
-
default:
|
|
8248
|
+
default: M(() => [a("div", mh, [
|
|
8249
8249
|
t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
|
|
8250
8250
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8251
8251
|
viewBox: "0 0 24 24",
|
|
@@ -8552,7 +8552,7 @@ function qh(e, t, n) {
|
|
|
8552
8552
|
}
|
|
8553
8553
|
//#endregion
|
|
8554
8554
|
//#region package.json
|
|
8555
|
-
var Jh = "0.1.
|
|
8555
|
+
var Jh = "0.1.73", Yh;
|
|
8556
8556
|
async function Xh() {
|
|
8557
8557
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8558
8558
|
method: "HEAD",
|