@unizhen/ui 0.1.70 → 0.1.72
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
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 O, resolveDynamicComponent as ee, toDisplayString as k, useId as te, vShow as A, watch as j, watchEffect as M, withCtx as N, withDirectives as P, withKeys as F, withModifiers as I } from "vue";
|
|
2
|
+
import { NButton as L, NButtonGroup as ne, NCascader as re, NCheckbox as ie, NCheckboxGroup as R, NColorPicker as ae, NConfigProvider as oe, NDataTable as se, NDatePicker as ce, NDivider as le, NDrawer as ue, NDrawerContent as z, NDropdown as de, 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";
|
|
@@ -2047,7 +2047,9 @@ var G = Xe({
|
|
|
2047
2047
|
action: "Action",
|
|
2048
2048
|
back: "Back",
|
|
2049
2049
|
scan: "Scan",
|
|
2050
|
-
download: "Download"
|
|
2050
|
+
download: "Download",
|
|
2051
|
+
expand: "Expand",
|
|
2052
|
+
contract: "Contract"
|
|
2051
2053
|
},
|
|
2052
2054
|
Notice: {
|
|
2053
2055
|
success: "Operation Success",
|
|
@@ -2085,7 +2087,9 @@ var G = Xe({
|
|
|
2085
2087
|
action: "操作",
|
|
2086
2088
|
back: "返回",
|
|
2087
2089
|
scan: "扫一扫",
|
|
2088
|
-
download: "下载"
|
|
2090
|
+
download: "下载",
|
|
2091
|
+
expand: "全部展开",
|
|
2092
|
+
contract: "全部收起"
|
|
2089
2093
|
},
|
|
2090
2094
|
Notice: {
|
|
2091
2095
|
success: "操作成功",
|
|
@@ -2501,14 +2505,14 @@ var Td = "/apiserver/", Ed = () => {
|
|
|
2501
2505
|
}
|
|
2502
2506
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
2503
2507
|
}
|
|
2504
|
-
return e.icon && (o.icon = () => f(
|
|
2508
|
+
return e.icon && (o.icon = () => f(B, {}, { default: () => f(Lu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
|
|
2505
2509
|
}, Hd = (e, t, n, r, i) => {
|
|
2506
2510
|
let a = { placement: "left" };
|
|
2507
2511
|
if (typeof t.onClick == "string") {
|
|
2508
2512
|
let e = t.onClick;
|
|
2509
2513
|
a["on-positive-click"] = () => Bd(e, n, r, i);
|
|
2510
2514
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
2511
|
-
return f(
|
|
2515
|
+
return f(Ee, a, {
|
|
2512
2516
|
default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
2513
2517
|
trigger: () => e
|
|
2514
2518
|
});
|
|
@@ -2522,7 +2526,7 @@ var Td = "/apiserver/", Ed = () => {
|
|
|
2522
2526
|
let o = [];
|
|
2523
2527
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
2524
2528
|
delete a.tooltipText, o.push(Ud(a, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
2525
|
-
}), a.push(f(
|
|
2529
|
+
}), a.push(f(De, { trigger: "click" }, {
|
|
2526
2530
|
trigger: () => Vd({
|
|
2527
2531
|
icon: e.icon,
|
|
2528
2532
|
color: e.color || "default",
|
|
@@ -2530,7 +2534,7 @@ var Td = "/apiserver/", Ed = () => {
|
|
|
2530
2534
|
disabled: typeof e.disabled == "function" ? e.disabled(t) : e.disabled,
|
|
2531
2535
|
loading: t[e.key] ?? !1
|
|
2532
2536
|
}, t, n, r, i),
|
|
2533
|
-
default: () => f(
|
|
2537
|
+
default: () => f(pe, {
|
|
2534
2538
|
vertical: !0,
|
|
2535
2539
|
size: 12
|
|
2536
2540
|
}, { default: () => o })
|
|
@@ -2642,8 +2646,8 @@ var Td = "/apiserver/", Ed = () => {
|
|
|
2642
2646
|
name: "UzBack",
|
|
2643
2647
|
components: {
|
|
2644
2648
|
ArrowNarrowLeft: on,
|
|
2645
|
-
NButton:
|
|
2646
|
-
NIcon:
|
|
2649
|
+
NButton: L,
|
|
2650
|
+
NIcon: B
|
|
2647
2651
|
},
|
|
2648
2652
|
props: {
|
|
2649
2653
|
to: {
|
|
@@ -2674,7 +2678,7 @@ function ef(e, t, r, i, o, s) {
|
|
|
2674
2678
|
default: N(() => [l(c)]),
|
|
2675
2679
|
_: 1
|
|
2676
2680
|
})]),
|
|
2677
|
-
default: N(() => [a("span", null,
|
|
2681
|
+
default: N(() => [a("span", null, k(e.text || e.$t("Common.back")), 1)]),
|
|
2678
2682
|
_: 1
|
|
2679
2683
|
}, 8, ["onClick"]);
|
|
2680
2684
|
}
|
|
@@ -2715,7 +2719,7 @@ var tf = /*#__PURE__*/ U($d, [["render", ef]]), nf = 120, rf = 10, af = nf / 2,
|
|
|
2715
2719
|
}
|
|
2716
2720
|
},
|
|
2717
2721
|
setup(e) {
|
|
2718
|
-
let n =
|
|
2722
|
+
let n = te(), r = w(), i = w(), a = w();
|
|
2719
2723
|
return {
|
|
2720
2724
|
uniqueId: n,
|
|
2721
2725
|
backgroundBg: t(() => `rgba(${lf(e.color)},0.1)`),
|
|
@@ -2820,8 +2824,8 @@ function jf(e, t, n, r, o, s) {
|
|
|
2820
2824
|
transform: e.calculatePoint(),
|
|
2821
2825
|
fill: "#fff"
|
|
2822
2826
|
}, null, 8, vf),
|
|
2823
|
-
a("text", yf,
|
|
2824
|
-
a("text", bf,
|
|
2827
|
+
a("text", yf, k(e.circle), 1),
|
|
2828
|
+
a("text", bf, k(e.circleUnit), 1)
|
|
2825
2829
|
])) : (x(), i("svg", xf, [
|
|
2826
2830
|
a("defs", null, [a("linearGradient", {
|
|
2827
2831
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
@@ -2870,7 +2874,7 @@ function jf(e, t, n, r, o, s) {
|
|
|
2870
2874
|
"font-size": "2rem",
|
|
2871
2875
|
"font-weight": "400"
|
|
2872
2876
|
}
|
|
2873
|
-
},
|
|
2877
|
+
}, k(e.circle), 9, kf),
|
|
2874
2878
|
a("text", {
|
|
2875
2879
|
cy: "90",
|
|
2876
2880
|
fill: "var(--circle-unit-color)",
|
|
@@ -2880,25 +2884,25 @@ function jf(e, t, n, r, o, s) {
|
|
|
2880
2884
|
"font-size": "0.6rem",
|
|
2881
2885
|
"font-weight": "400"
|
|
2882
2886
|
}
|
|
2883
|
-
},
|
|
2887
|
+
}, k(e.circleUnit), 9, Af)
|
|
2884
2888
|
]))]);
|
|
2885
2889
|
}
|
|
2886
2890
|
var Mf = /*#__PURE__*/ U(uf, [["render", jf]]), Nf = d({
|
|
2887
2891
|
name: "UzFormItem",
|
|
2888
2892
|
components: {
|
|
2889
|
-
NIcon:
|
|
2890
|
-
NInput:
|
|
2893
|
+
NIcon: B,
|
|
2894
|
+
NInput: be,
|
|
2891
2895
|
NSelect: Ae,
|
|
2892
|
-
NInputNumber:
|
|
2893
|
-
NDatePicker:
|
|
2896
|
+
NInputNumber: Ce,
|
|
2897
|
+
NDatePicker: ce,
|
|
2894
2898
|
NTimePicker: Le,
|
|
2895
2899
|
NSwitch: Pe,
|
|
2896
|
-
NColorPicker:
|
|
2900
|
+
NColorPicker: ae,
|
|
2897
2901
|
NCheckbox: ie,
|
|
2898
|
-
NCheckboxGroup:
|
|
2899
|
-
NCascader:
|
|
2902
|
+
NCheckboxGroup: R,
|
|
2903
|
+
NCascader: re,
|
|
2900
2904
|
NTooltip: Re,
|
|
2901
|
-
NDropdown:
|
|
2905
|
+
NDropdown: de
|
|
2902
2906
|
},
|
|
2903
2907
|
props: {
|
|
2904
2908
|
item: {
|
|
@@ -3016,7 +3020,7 @@ var Mf = /*#__PURE__*/ U(uf, [["render", jf]]), Nf = d({
|
|
|
3016
3020
|
}
|
|
3017
3021
|
}), Pf = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3018
3022
|
function Ff(t, r, s, u, d, f) {
|
|
3019
|
-
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"), O = D("NSwitch"), ee = D("UzFormItemUpload");
|
|
3020
3024
|
return t.item.input === "input" ? (x(), n(p, {
|
|
3021
3025
|
key: 0,
|
|
3022
3026
|
value: t.formValue[t.item.key],
|
|
@@ -3036,11 +3040,11 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3036
3040
|
}
|
|
3037
3041
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3038
3042
|
name: "prefix",
|
|
3039
|
-
fn: N(() => [c(
|
|
3043
|
+
fn: N(() => [c(k(t.item.params.prefix), 1)]),
|
|
3040
3044
|
key: "0"
|
|
3041
3045
|
} : void 0, t.item.params.suffix ? {
|
|
3042
3046
|
name: "suffix",
|
|
3043
|
-
fn: N(() => [c(
|
|
3047
|
+
fn: N(() => [c(k(t.item.params.suffix), 1)]),
|
|
3044
3048
|
key: "1"
|
|
3045
3049
|
} : void 0]), 1032, [
|
|
3046
3050
|
"value",
|
|
@@ -3090,11 +3094,11 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3090
3094
|
}
|
|
3091
3095
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3092
3096
|
name: "prefix",
|
|
3093
|
-
fn: N(() => [c(
|
|
3097
|
+
fn: N(() => [c(k(t.item.params.prefix), 1)]),
|
|
3094
3098
|
key: "0"
|
|
3095
3099
|
} : void 0, t.item.params.suffix ? {
|
|
3096
3100
|
name: "suffix",
|
|
3097
|
-
fn: N(() => [c(
|
|
3101
|
+
fn: N(() => [c(k(t.item.params.suffix), 1)]),
|
|
3098
3102
|
key: "1"
|
|
3099
3103
|
} : void 0]), 1032, [
|
|
3100
3104
|
"value",
|
|
@@ -3132,11 +3136,11 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3132
3136
|
}
|
|
3133
3137
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3134
3138
|
name: "prefix",
|
|
3135
|
-
fn: N(() => [c(
|
|
3139
|
+
fn: N(() => [c(k(t.item.params.prefix), 1)]),
|
|
3136
3140
|
key: "0"
|
|
3137
3141
|
} : void 0, t.item.params.suffix ? {
|
|
3138
3142
|
name: "suffix",
|
|
3139
|
-
fn: N(() => [c(
|
|
3143
|
+
fn: N(() => [c(k(t.item.params.suffix), 1)]),
|
|
3140
3144
|
key: "1"
|
|
3141
3145
|
} : void 0]), 1032, [
|
|
3142
3146
|
"value",
|
|
@@ -3359,7 +3363,7 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3359
3363
|
"value",
|
|
3360
3364
|
"disabled",
|
|
3361
3365
|
"class"
|
|
3362
|
-
])) : t.item.input === "switch" ? (x(), n(
|
|
3366
|
+
])) : t.item.input === "switch" ? (x(), n(O, {
|
|
3363
3367
|
key: 12,
|
|
3364
3368
|
"checked-value": 1,
|
|
3365
3369
|
"unchecked-value": 0,
|
|
@@ -3371,13 +3375,13 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3371
3375
|
}
|
|
3372
3376
|
}, o({ _: 2 }, [t.item.params.checked ? {
|
|
3373
3377
|
name: "checked",
|
|
3374
|
-
fn: N(() => [c(
|
|
3378
|
+
fn: N(() => [c(k(t.item.params.checked), 1)]),
|
|
3375
3379
|
key: "0"
|
|
3376
3380
|
} : void 0, t.item.params.unchecked ? {
|
|
3377
3381
|
name: "unchecked",
|
|
3378
|
-
fn: N(() => [c(
|
|
3382
|
+
fn: N(() => [c(k(t.item.params.unchecked), 1)]),
|
|
3379
3383
|
key: "1"
|
|
3380
|
-
} : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(
|
|
3384
|
+
} : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(ee, {
|
|
3381
3385
|
key: 13,
|
|
3382
3386
|
value: t.formValue[t.item.key],
|
|
3383
3387
|
"onUpdate:value": r[11] ||= (e) => t.formValue[t.item.key] = e,
|
|
@@ -3392,11 +3396,11 @@ function Ff(t, r, s, u, d, f) {
|
|
|
3392
3396
|
var If = /*#__PURE__*/ U(Nf, [["render", Ff]]), Lf = d({
|
|
3393
3397
|
name: "UzForm",
|
|
3394
3398
|
components: {
|
|
3395
|
-
NForm:
|
|
3396
|
-
NFormItem:
|
|
3399
|
+
NForm: me,
|
|
3400
|
+
NFormItem: he,
|
|
3397
3401
|
NDivider: le,
|
|
3398
|
-
NButton:
|
|
3399
|
-
NIcon:
|
|
3402
|
+
NButton: L,
|
|
3403
|
+
NIcon: B,
|
|
3400
3404
|
UzFormItem: If,
|
|
3401
3405
|
Plus: dc
|
|
3402
3406
|
},
|
|
@@ -3605,7 +3609,7 @@ var If = /*#__PURE__*/ U(Nf, [["render", Ff]]), Lf = d({
|
|
|
3605
3609
|
}
|
|
3606
3610
|
}), Rf = ["onClick"];
|
|
3607
3611
|
function zf(t, o, s, u, d, f) {
|
|
3608
|
-
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 = O("media");
|
|
3609
3613
|
return x(), i(e, null, [l(C, {
|
|
3610
3614
|
ref: "formRef",
|
|
3611
3615
|
class: "uz-w-full uz-h-full",
|
|
@@ -3624,7 +3628,7 @@ function zf(t, o, s, u, d, f) {
|
|
|
3624
3628
|
"show-feedback": t.showFeedback && s.input !== "divider"
|
|
3625
3629
|
}, {
|
|
3626
3630
|
label: N(() => [
|
|
3627
|
-
a("div", null,
|
|
3631
|
+
a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
3628
3632
|
t.status !== 2 && s.source && s.form.createButton ? (x(), i("a", {
|
|
3629
3633
|
key: 0,
|
|
3630
3634
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add",
|
|
@@ -3636,7 +3640,7 @@ function zf(t, o, s, u, d, f) {
|
|
|
3636
3640
|
s.form.showDays ? (x(), i("span", {
|
|
3637
3641
|
key: 1,
|
|
3638
3642
|
class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
3639
|
-
},
|
|
3643
|
+
}, k(t.diffDay(t.formValue[s.key])), 3)) : r("", !0)
|
|
3640
3644
|
]),
|
|
3641
3645
|
default: N(() => [s.input === "subTable" && !s.params.quest ? (x(), n(h, {
|
|
3642
3646
|
key: 0,
|
|
@@ -3661,7 +3665,7 @@ function zf(t, o, s, u, d, f) {
|
|
|
3661
3665
|
key: 2,
|
|
3662
3666
|
"title-placement": s.params.placement
|
|
3663
3667
|
}, {
|
|
3664
|
-
default: N(() => [c(
|
|
3668
|
+
default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
|
|
3665
3669
|
_: 2
|
|
3666
3670
|
}, 1032, ["title-placement"])) : (x(), n(b, {
|
|
3667
3671
|
key: 3,
|
|
@@ -3696,10 +3700,10 @@ function zf(t, o, s, u, d, f) {
|
|
|
3696
3700
|
var Bf = /*#__PURE__*/ U(Lf, [["render", zf]]), Vf = d({
|
|
3697
3701
|
name: "UzDraggableForm",
|
|
3698
3702
|
components: {
|
|
3699
|
-
NForm:
|
|
3700
|
-
NFormItem:
|
|
3701
|
-
NButton:
|
|
3702
|
-
NIcon:
|
|
3703
|
+
NForm: me,
|
|
3704
|
+
NFormItem: he,
|
|
3705
|
+
NButton: L,
|
|
3706
|
+
NIcon: B,
|
|
3703
3707
|
NDivider: le,
|
|
3704
3708
|
UzFormItem: If,
|
|
3705
3709
|
Trash: xl,
|
|
@@ -3837,14 +3841,14 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3837
3841
|
path: s.key,
|
|
3838
3842
|
rule: s.form.rule?.required ? s.form.rule : void 0,
|
|
3839
3843
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? "select" : s.input === "group" ? "group" : ""]),
|
|
3840
|
-
onClick:
|
|
3844
|
+
onClick: I((e) => t.onModeClick(s, u), ["stop"]),
|
|
3841
3845
|
key: u,
|
|
3842
3846
|
style: _(`grid-column: span ${s.form.span || 6} / span ${s.form.span || 6};`),
|
|
3843
3847
|
"show-label": s.input !== "divider" && s.input !== "subTable",
|
|
3844
3848
|
"show-feedback": t.showFeedback && s.input !== "divider"
|
|
3845
3849
|
}, {
|
|
3846
3850
|
label: N(() => [
|
|
3847
|
-
a("div", null,
|
|
3851
|
+
a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
3848
3852
|
s.source && s.form.createButton ? (x(), i("a", Hf, [l(m, null, {
|
|
3849
3853
|
default: N(() => [l(p)]),
|
|
3850
3854
|
_: 1
|
|
@@ -3856,7 +3860,7 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3856
3860
|
size: "small",
|
|
3857
3861
|
type: "error",
|
|
3858
3862
|
class: "uz-form-delete",
|
|
3859
|
-
onClick:
|
|
3863
|
+
onClick: I(t.onDelete, ["stop"])
|
|
3860
3864
|
}, {
|
|
3861
3865
|
icon: N(() => [l(m, { color: "#FFF" }, {
|
|
3862
3866
|
default: N(() => [l(h)]),
|
|
@@ -3890,7 +3894,7 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3890
3894
|
path: e.key,
|
|
3891
3895
|
rule: e.form.rule?.required ? e.form.rule : void 0,
|
|
3892
3896
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === i ? "select" : ""]),
|
|
3893
|
-
onClick:
|
|
3897
|
+
onClick: I((n) => t.onModeClick(e, u, i), ["stop"]),
|
|
3894
3898
|
key: i,
|
|
3895
3899
|
style: _(`grid-column: span ${e.form.span || 6} / span ${e.form.span || 6};`),
|
|
3896
3900
|
"show-label": e.input !== "divider" && e.input !== "subTable",
|
|
@@ -3901,7 +3905,7 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3901
3905
|
size: "small",
|
|
3902
3906
|
type: "error",
|
|
3903
3907
|
class: "uz-form-delete",
|
|
3904
|
-
onClick:
|
|
3908
|
+
onClick: I(t.onDelete, ["stop"])
|
|
3905
3909
|
}, {
|
|
3906
3910
|
icon: N(() => [l(m, { color: "#FFF" }, {
|
|
3907
3911
|
default: N(() => [l(h)]),
|
|
@@ -3938,7 +3942,7 @@ function Wf(t, o, s, u, d, f) {
|
|
|
3938
3942
|
key: 3,
|
|
3939
3943
|
"title-placement": s.params.placement
|
|
3940
3944
|
}, {
|
|
3941
|
-
default: N(() => [c(
|
|
3945
|
+
default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
|
|
3942
3946
|
_: 2
|
|
3943
3947
|
}, 1032, ["title-placement"])) : (x(), n(b, {
|
|
3944
3948
|
key: 4,
|
|
@@ -3980,13 +3984,13 @@ var Gf = /*#__PURE__*/ U(Vf, [["render", Wf]]), Kf = d({
|
|
|
3980
3984
|
name: "UzFormItemUpload",
|
|
3981
3985
|
components: {
|
|
3982
3986
|
NUpload: ze,
|
|
3983
|
-
NButton:
|
|
3984
|
-
NIcon:
|
|
3985
|
-
NImage:
|
|
3986
|
-
NPopover:
|
|
3987
|
-
NPopconfirm:
|
|
3987
|
+
NButton: L,
|
|
3988
|
+
NIcon: B,
|
|
3989
|
+
NImage: ve,
|
|
3990
|
+
NPopover: De,
|
|
3991
|
+
NPopconfirm: Ee,
|
|
3988
3992
|
NUploadDragger: Be,
|
|
3989
|
-
NInputGroup:
|
|
3993
|
+
NInputGroup: xe,
|
|
3990
3994
|
NSpin: Ne,
|
|
3991
3995
|
Trash: xl,
|
|
3992
3996
|
FileText: zo,
|
|
@@ -4150,7 +4154,7 @@ function Xf(t, o, s, u, d, f) {
|
|
|
4150
4154
|
}, 8, ["onClick"])), a("div", qf, [a("div", {
|
|
4151
4155
|
class: "uz-form-upload-title uz-truncate",
|
|
4152
4156
|
title: e.name
|
|
4153
|
-
},
|
|
4157
|
+
}, k(e.name), 9, Jf), t.status === 2 ? r("", !0) : (x(), i("div", Yf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
4154
4158
|
trigger: N(() => [l(S, {
|
|
4155
4159
|
size: "small",
|
|
4156
4160
|
tertiary: ""
|
|
@@ -4182,10 +4186,10 @@ function Xf(t, o, s, u, d, f) {
|
|
|
4182
4186
|
var Zf = /*#__PURE__*/ U(Kf, [["render", Xf], ["__scopeId", "data-v-d4bd872d"]]), Qf = d({
|
|
4183
4187
|
name: "UzFormItemImage",
|
|
4184
4188
|
components: {
|
|
4185
|
-
NImageGroup:
|
|
4186
|
-
NImage:
|
|
4187
|
-
NIcon:
|
|
4188
|
-
NPopover:
|
|
4189
|
+
NImageGroup: ye,
|
|
4190
|
+
NImage: ve,
|
|
4191
|
+
NIcon: B,
|
|
4192
|
+
NPopover: De,
|
|
4189
4193
|
PhotoOff: sc,
|
|
4190
4194
|
FileText: zo
|
|
4191
4195
|
},
|
|
@@ -4255,7 +4259,7 @@ function ep(t, r, o, s, u, d) {
|
|
|
4255
4259
|
default: N(() => [l(h)]),
|
|
4256
4260
|
_: 1
|
|
4257
4261
|
}, 8, ["onClick"])]),
|
|
4258
|
-
default: N(() => [c(
|
|
4262
|
+
default: N(() => [c(k(t.getFileName(r)), 1)]),
|
|
4259
4263
|
_: 2
|
|
4260
4264
|
}, 1024))], 64))), 256))])]),
|
|
4261
4265
|
_: 1
|
|
@@ -4365,8 +4369,8 @@ function ip(e, t, n, r, a, o) {
|
|
|
4365
4369
|
var ap = /*#__PURE__*/ U(np, [["render", ip], ["__scopeId", "data-v-c90165b1"]]), op = d({
|
|
4366
4370
|
name: "UzCamera",
|
|
4367
4371
|
components: {
|
|
4368
|
-
NButton:
|
|
4369
|
-
NModal:
|
|
4372
|
+
NButton: L,
|
|
4373
|
+
NModal: we
|
|
4370
4374
|
},
|
|
4371
4375
|
props: {
|
|
4372
4376
|
mode: {
|
|
@@ -4467,7 +4471,7 @@ function dp(t, o, s, l, u, d) {
|
|
|
4467
4471
|
loading: t.loading,
|
|
4468
4472
|
onClick: t.doScan
|
|
4469
4473
|
}, {
|
|
4470
|
-
default: N(() => [c(
|
|
4474
|
+
default: N(() => [c(k(t.$t("Common.scan")), 1)]),
|
|
4471
4475
|
_: 1
|
|
4472
4476
|
}, 8, ["loading", "onClick"])) : r("", !0),
|
|
4473
4477
|
t.mode === "button" ? (x(), n(p, {
|
|
@@ -4515,14 +4519,14 @@ function dp(t, o, s, l, u, d) {
|
|
|
4515
4519
|
var fp = /*#__PURE__*/ U(op, [["render", dp]]), pp = d({
|
|
4516
4520
|
name: "UzSearchBar",
|
|
4517
4521
|
components: {
|
|
4518
|
-
NIcon:
|
|
4519
|
-
NButton:
|
|
4520
|
-
NButtonGroup:
|
|
4521
|
-
NGrid:
|
|
4522
|
-
NGridItem:
|
|
4523
|
-
NInputGroup:
|
|
4524
|
-
NInputGroupLabel:
|
|
4525
|
-
NPopover:
|
|
4522
|
+
NIcon: B,
|
|
4523
|
+
NButton: L,
|
|
4524
|
+
NButtonGroup: ne,
|
|
4525
|
+
NGrid: ge,
|
|
4526
|
+
NGridItem: _e,
|
|
4527
|
+
NInputGroup: xe,
|
|
4528
|
+
NInputGroupLabel: Se,
|
|
4529
|
+
NPopover: De,
|
|
4526
4530
|
UzFormItem: If,
|
|
4527
4531
|
CaretDown: Ir,
|
|
4528
4532
|
Refresh: jc,
|
|
@@ -4685,7 +4689,7 @@ var fp = /*#__PURE__*/ U(op, [["render", dp]]), pp = d({
|
|
|
4685
4689
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
4686
4690
|
};
|
|
4687
4691
|
function _p(t, a, o, s, u, d) {
|
|
4688
|
-
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"), ee = D("Refresh"), te = O("media");
|
|
4689
4693
|
return x(), i("div", {
|
|
4690
4694
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
4691
4695
|
onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
|
|
@@ -4708,7 +4712,7 @@ function _p(t, a, o, s, u, d) {
|
|
|
4708
4712
|
secondary: "",
|
|
4709
4713
|
onClick: (n) => t.tabItemChange(e.value)
|
|
4710
4714
|
}, {
|
|
4711
|
-
default: N(() => [c(
|
|
4715
|
+
default: N(() => [c(k(e.label), 1)]),
|
|
4712
4716
|
_: 2
|
|
4713
4717
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
4714
4718
|
_: 1
|
|
@@ -4730,10 +4734,10 @@ function _p(t, a, o, s, u, d) {
|
|
|
4730
4734
|
overlap: ""
|
|
4731
4735
|
}, {
|
|
4732
4736
|
trigger: N(() => [l(h, { class: "uz-group-label" }, {
|
|
4733
|
-
default: N(() => [c(
|
|
4737
|
+
default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4734
4738
|
_: 2
|
|
4735
4739
|
}, 1024)]),
|
|
4736
|
-
default: N(() => [c(
|
|
4740
|
+
default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4737
4741
|
_: 2
|
|
4738
4742
|
}, 1024), l(v, {
|
|
4739
4743
|
item: e,
|
|
@@ -4746,7 +4750,7 @@ function _p(t, a, o, s, u, d) {
|
|
|
4746
4750
|
}, 1032, ["span"]))), 128))
|
|
4747
4751
|
]),
|
|
4748
4752
|
_: 1
|
|
4749
|
-
}, 8, ["cols", "collapsed"])])), [[
|
|
4753
|
+
}, 8, ["cols", "collapsed"])])), [[te]])])) : r("", !0), t.enableHeader ? (x(), i("div", gp, [
|
|
4750
4754
|
t.more ? (x(), n(f, {
|
|
4751
4755
|
key: 0,
|
|
4752
4756
|
quaternary: "",
|
|
@@ -4771,7 +4775,7 @@ function _p(t, a, o, s, u, d) {
|
|
|
4771
4775
|
default: N(() => [l(w)]),
|
|
4772
4776
|
_: 1
|
|
4773
4777
|
})]),
|
|
4774
|
-
default: N(() => [c(" " +
|
|
4778
|
+
default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4775
4779
|
_: 1
|
|
4776
4780
|
}, 8, ["loading"])) : r("", !0),
|
|
4777
4781
|
t.defaultValue && Object.keys(t.defaultValue).length > 0 ? (x(), n(f, {
|
|
@@ -4781,10 +4785,10 @@ function _p(t, a, o, s, u, d) {
|
|
|
4781
4785
|
onClick: t.clearAll
|
|
4782
4786
|
}, {
|
|
4783
4787
|
icon: N(() => [l(C, null, {
|
|
4784
|
-
default: N(() => [l(
|
|
4788
|
+
default: N(() => [l(ee)]),
|
|
4785
4789
|
_: 1
|
|
4786
4790
|
})]),
|
|
4787
|
-
default: N(() => [c(" " +
|
|
4791
|
+
default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
|
|
4788
4792
|
_: 1
|
|
4789
4793
|
}, 8, ["loading", "onClick"])) : r("", !0),
|
|
4790
4794
|
E(t.$slots, "action")
|
|
@@ -4793,14 +4797,14 @@ function _p(t, a, o, s, u, d) {
|
|
|
4793
4797
|
var vp = /*#__PURE__*/ U(pp, [["render", _p]]), yp = d({
|
|
4794
4798
|
name: "UzSearchMobileBar",
|
|
4795
4799
|
components: {
|
|
4796
|
-
NIcon:
|
|
4797
|
-
NButton:
|
|
4800
|
+
NIcon: B,
|
|
4801
|
+
NButton: L,
|
|
4798
4802
|
NDrawer: ue,
|
|
4799
|
-
NDrawerContent:
|
|
4800
|
-
NGrid:
|
|
4801
|
-
NGridItem:
|
|
4802
|
-
NInputGroup:
|
|
4803
|
-
NInputGroupLabel:
|
|
4803
|
+
NDrawerContent: z,
|
|
4804
|
+
NGrid: ge,
|
|
4805
|
+
NGridItem: _e,
|
|
4806
|
+
NInputGroup: xe,
|
|
4807
|
+
NInputGroupLabel: Se,
|
|
4804
4808
|
Refresh: jc,
|
|
4805
4809
|
Search: Zc,
|
|
4806
4810
|
UzFormItem: If
|
|
@@ -4893,7 +4897,7 @@ function Cp(t, o, s, u, d, f) {
|
|
|
4893
4897
|
default: N(() => [l(p)]),
|
|
4894
4898
|
_: 1
|
|
4895
4899
|
})]),
|
|
4896
|
-
default: N(() => [c(" " +
|
|
4900
|
+
default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4897
4901
|
_: 1
|
|
4898
4902
|
})) : r("", !0), E(t.$slots, "action")])]), l(w, {
|
|
4899
4903
|
show: t.drawer,
|
|
@@ -4919,7 +4923,7 @@ function Cp(t, o, s, u, d, f) {
|
|
|
4919
4923
|
default: N(() => [l(S)]),
|
|
4920
4924
|
_: 1
|
|
4921
4925
|
})]),
|
|
4922
|
-
default: N(() => [c(" " +
|
|
4926
|
+
default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
|
|
4923
4927
|
_: 1
|
|
4924
4928
|
}, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
|
|
4925
4929
|
key: 0,
|
|
@@ -4932,7 +4936,7 @@ function Cp(t, o, s, u, d, f) {
|
|
|
4932
4936
|
default: N(() => [l(p)]),
|
|
4933
4937
|
_: 1
|
|
4934
4938
|
})]),
|
|
4935
|
-
default: N(() => [c(" " +
|
|
4939
|
+
default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4936
4940
|
_: 1
|
|
4937
4941
|
}, 8, ["loading"])) : r("", !0)])]),
|
|
4938
4942
|
default: N(() => [l(b, {
|
|
@@ -4946,7 +4950,7 @@ function Cp(t, o, s, u, d, f) {
|
|
|
4946
4950
|
}, {
|
|
4947
4951
|
default: N(() => [l(v, null, {
|
|
4948
4952
|
default: N(() => [l(g, { class: "uz-group-label" }, {
|
|
4949
|
-
default: N(() => [c(
|
|
4953
|
+
default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4950
4954
|
_: 2
|
|
4951
4955
|
}, 1024), l(_, {
|
|
4952
4956
|
item: e,
|
|
@@ -5406,89 +5410,89 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5406
5410
|
...e.table,
|
|
5407
5411
|
children: e.params.children.map((e) => e.key)
|
|
5408
5412
|
})) : (m.push(e), h.push(e.key));
|
|
5409
|
-
for await (let [e,
|
|
5410
|
-
if (
|
|
5411
|
-
let { sourceData: t, n } = await Pp(
|
|
5412
|
-
if (t && Array.isArray(t)) if (
|
|
5413
|
-
let e =
|
|
5414
|
-
|
|
5415
|
-
} else
|
|
5416
|
-
} else
|
|
5413
|
+
for await (let [e, s] of m.entries()) {
|
|
5414
|
+
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
5415
|
+
let { sourceData: t, n } = await Pp(s.source, a && e === 0);
|
|
5416
|
+
if (t && Array.isArray(t)) if (s.sourceFn) {
|
|
5417
|
+
let e = s.sourceFn, n = Function("sourceData", e);
|
|
5418
|
+
s.params.options = n(t);
|
|
5419
|
+
} else s.params.options = jp(s, t, n);
|
|
5420
|
+
} else s.params.options = [{
|
|
5417
5421
|
label: "加载中......",
|
|
5418
5422
|
value: "loading",
|
|
5419
5423
|
disabled: !0
|
|
5420
|
-
}],
|
|
5421
|
-
let { sourceData: e, n: t } = await Pp(
|
|
5422
|
-
if (e && Array.isArray(e)) if (
|
|
5423
|
-
let t =
|
|
5424
|
+
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5425
|
+
let { sourceData: e, n: t } = await Pp(s.source);
|
|
5426
|
+
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5427
|
+
let t = s.sourceFn;
|
|
5424
5428
|
return Function("sourceData", t)(e);
|
|
5425
|
-
} else return jp(
|
|
5429
|
+
} else return jp(s, e, t);
|
|
5426
5430
|
};
|
|
5427
|
-
!
|
|
5428
|
-
let t =
|
|
5431
|
+
!s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
|
|
5432
|
+
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
5429
5433
|
if (t) return t.label;
|
|
5430
|
-
}),
|
|
5431
|
-
return f(tp, { value: e[
|
|
5432
|
-
})
|
|
5433
|
-
let
|
|
5434
|
-
input:
|
|
5435
|
-
title:
|
|
5436
|
-
key:
|
|
5437
|
-
params:
|
|
5438
|
-
form:
|
|
5434
|
+
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
5435
|
+
return f(tp, { value: e[s.key] }, { default: () => null });
|
|
5436
|
+
});
|
|
5437
|
+
let p = {
|
|
5438
|
+
input: s.input,
|
|
5439
|
+
title: s.label,
|
|
5440
|
+
key: s.key,
|
|
5441
|
+
params: s.params,
|
|
5442
|
+
form: s.form,
|
|
5439
5443
|
ellipsisComponent: "performant-ellipsis",
|
|
5440
|
-
...
|
|
5441
|
-
width: Number(
|
|
5442
|
-
ellipsis:
|
|
5444
|
+
...s.table,
|
|
5445
|
+
width: Number(s.table.width || 140),
|
|
5446
|
+
ellipsis: s.table.ellipsis ? {
|
|
5443
5447
|
tooltip: !0,
|
|
5444
|
-
"line-clamp":
|
|
5448
|
+
"line-clamp": s.table.clamp ?? 0
|
|
5445
5449
|
} : !1,
|
|
5446
|
-
render:
|
|
5447
|
-
show: K.isMobile ?
|
|
5448
|
-
pin: !!
|
|
5449
|
-
fixTemp:
|
|
5450
|
+
render: s.table.render ? await Ap(s.key, s.table.render, i) : void 0,
|
|
5451
|
+
show: K.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
5452
|
+
pin: !!s.table.fixed,
|
|
5453
|
+
fixTemp: s.table.fixed
|
|
5450
5454
|
};
|
|
5451
|
-
if (
|
|
5455
|
+
if (p.resizable && (p.minWidth = 80), t) if (!p.form.edit.show) p = null;
|
|
5452
5456
|
else {
|
|
5453
|
-
if (
|
|
5454
|
-
delete
|
|
5455
|
-
let e =
|
|
5456
|
-
|
|
5457
|
+
if (p.ellipsis = !1, p.resizable = !0, K.isMobile && (p.show = s.table.mobile), s.table.show && (n === 0 && (p.show = s.form.create.show), n === 1 && (p.show = s.form.edit.show), n === 2 && (p.show = s.form.show)), o && (s.form.rule.validator = () => !0), o === !1 && s.form.rule?.required && typeof s.form.rule.validator == "string") {
|
|
5458
|
+
delete s.form.rule.message;
|
|
5459
|
+
let e = s.form.rule.validator, t = Function("rule", "value", "index", "formValues", e);
|
|
5460
|
+
s.form.rule.validator === "" ? s.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(s.form.rule.message) : s.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
|
|
5457
5461
|
}
|
|
5458
|
-
|
|
5459
|
-
return f(
|
|
5462
|
+
p.render = function(e, t) {
|
|
5463
|
+
return f(he, {
|
|
5460
5464
|
showLabel: !1,
|
|
5461
5465
|
showFeedback: !1,
|
|
5462
|
-
path: `child[${t}].${
|
|
5463
|
-
rule:
|
|
5464
|
-
...
|
|
5466
|
+
path: `child[${t}].${s.key}`,
|
|
5467
|
+
rule: s.form.rule?.required ? {
|
|
5468
|
+
...s.form.rule,
|
|
5465
5469
|
index: t
|
|
5466
5470
|
} : void 0
|
|
5467
5471
|
}, { default: () => f(If, {
|
|
5468
|
-
item:
|
|
5472
|
+
item: s,
|
|
5469
5473
|
formValue: e,
|
|
5470
5474
|
status: n,
|
|
5471
5475
|
itemIndex: t
|
|
5472
5476
|
}) });
|
|
5473
5477
|
};
|
|
5474
5478
|
}
|
|
5475
|
-
if (
|
|
5476
|
-
if (
|
|
5477
|
-
else if (
|
|
5478
|
-
let { sourceData: e, n: t } = await Pp(
|
|
5479
|
-
if (e && Array.isArray(e)) if (
|
|
5480
|
-
let t =
|
|
5481
|
-
|
|
5482
|
-
} else
|
|
5483
|
-
} else
|
|
5484
|
-
let { sourceData: e, n: t } = await Pp(
|
|
5485
|
-
if (e && Array.isArray(e)) if (
|
|
5486
|
-
let t =
|
|
5479
|
+
if (p && s.input !== "divider" && s.input !== "subTable" && (o && (p.show = s.form.expand.show), d.push(p)), s.input !== "divider" && s.input !== "switch" && s.input !== "subTable" && s.input !== "upload" && s.search.show) {
|
|
5480
|
+
if (s.search.title && (s.label = s.search.title), s.search.source) if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
5481
|
+
else if (s.params.immediately || s.search.defaultValue) {
|
|
5482
|
+
let { sourceData: e, n: t } = await Pp(s.search.source);
|
|
5483
|
+
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5484
|
+
let t = s.sourceFn, n = Function("sourceData", t);
|
|
5485
|
+
s.params.options = n(e);
|
|
5486
|
+
} else s.params.options = jp(s, e, t);
|
|
5487
|
+
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5488
|
+
let { sourceData: e, n: t } = await Pp(s.search.source);
|
|
5489
|
+
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5490
|
+
let t = s.sourceFn;
|
|
5487
5491
|
return Function("sourceData", t)(e);
|
|
5488
|
-
} else return jp(
|
|
5492
|
+
} else return jp(s, e, t);
|
|
5489
5493
|
};
|
|
5490
|
-
if (
|
|
5491
|
-
let e = H(
|
|
5494
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Op(s.search.defaultValue))), s.search.show) {
|
|
5495
|
+
let e = H(s);
|
|
5492
5496
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
5493
5497
|
let { sourceData: t, n } = await Pp(e.source || e.search.source);
|
|
5494
5498
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
@@ -5511,10 +5515,10 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5511
5515
|
});
|
|
5512
5516
|
}
|
|
5513
5517
|
}
|
|
5514
|
-
|
|
5515
|
-
key:
|
|
5516
|
-
link:
|
|
5517
|
-
merge:
|
|
5518
|
+
s.input === "subTable" && s.params.link && !s.params.quest && (l.push(s.params.link), s.params.expandable && (u = {
|
|
5519
|
+
key: s.key,
|
|
5520
|
+
link: s.params.link,
|
|
5521
|
+
merge: s.params.merge
|
|
5518
5522
|
}));
|
|
5519
5523
|
}
|
|
5520
5524
|
let g = [];
|
|
@@ -5535,7 +5539,9 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5535
5539
|
}
|
|
5536
5540
|
d = g;
|
|
5537
5541
|
}
|
|
5538
|
-
return {
|
|
5542
|
+
return d.forEach((e) => {
|
|
5543
|
+
e.show && (s += e.width);
|
|
5544
|
+
}), {
|
|
5539
5545
|
tableColumns: d,
|
|
5540
5546
|
search: c,
|
|
5541
5547
|
subTableIds: l,
|
|
@@ -5548,9 +5554,9 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5548
5554
|
var Wp = d({
|
|
5549
5555
|
name: "UzSpin",
|
|
5550
5556
|
components: {
|
|
5551
|
-
NButton:
|
|
5557
|
+
NButton: L,
|
|
5552
5558
|
NSpin: Ne,
|
|
5553
|
-
NEllipsis:
|
|
5559
|
+
NEllipsis: fe
|
|
5554
5560
|
},
|
|
5555
5561
|
emits: ["update:value"],
|
|
5556
5562
|
props: {
|
|
@@ -5600,7 +5606,7 @@ function Gp(e, t, r, i, o, s) {
|
|
|
5600
5606
|
"line-clamp": "3",
|
|
5601
5607
|
tooltip: !1
|
|
5602
5608
|
}, {
|
|
5603
|
-
default: N(() => [c(
|
|
5609
|
+
default: N(() => [c(k(e.status === 0 ? "操作进行中..." : e.message), 1)]),
|
|
5604
5610
|
_: 1
|
|
5605
5611
|
}),
|
|
5606
5612
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
@@ -5611,7 +5617,7 @@ function Gp(e, t, r, i, o, s) {
|
|
|
5611
5617
|
onMouseover: e.stopCountdown,
|
|
5612
5618
|
onClick: e.handleClose
|
|
5613
5619
|
}, {
|
|
5614
|
-
default: N(() => [c(" 关闭(" +
|
|
5620
|
+
default: N(() => [c(" 关闭(" + k(e.counts) + "s) ", 1)]),
|
|
5615
5621
|
_: 1
|
|
5616
5622
|
}, 8, ["onMouseover", "onClick"]), [[A, e.status === 1]])
|
|
5617
5623
|
]),
|
|
@@ -5622,8 +5628,8 @@ function Gp(e, t, r, i, o, s) {
|
|
|
5622
5628
|
var Kp = /*#__PURE__*/ U(Wp, [["render", Gp]]), qp = d({
|
|
5623
5629
|
name: "UzTableExpand",
|
|
5624
5630
|
components: {
|
|
5625
|
-
NDataTable:
|
|
5626
|
-
NForm:
|
|
5631
|
+
NDataTable: se,
|
|
5632
|
+
NForm: me
|
|
5627
5633
|
},
|
|
5628
5634
|
props: {
|
|
5629
5635
|
data: {
|
|
@@ -5692,10 +5698,10 @@ function Jp(e, t, r, i, a, o) {
|
|
|
5692
5698
|
var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
5693
5699
|
name: "UzTable",
|
|
5694
5700
|
components: {
|
|
5695
|
-
NDataTable:
|
|
5696
|
-
NPopover:
|
|
5697
|
-
NButton:
|
|
5698
|
-
NIcon:
|
|
5701
|
+
NDataTable: se,
|
|
5702
|
+
NPopover: De,
|
|
5703
|
+
NButton: L,
|
|
5704
|
+
NIcon: B,
|
|
5699
5705
|
NSkeleton: je,
|
|
5700
5706
|
NCheckbox: ie,
|
|
5701
5707
|
NSpin: Ne,
|
|
@@ -5831,43 +5837,45 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5831
5837
|
value: () => null,
|
|
5832
5838
|
setValue: () => null
|
|
5833
5839
|
});
|
|
5834
|
-
let a = Je(), { t: o } = Ze(), s = Ue(), c = t(() => K.isMobile), l = w(), u = w(), d = w(), m = w(!!i.header), g = w(!1), _ = w(!1), v = w(""), b = w(), x = w([]), C = w([]), T = w([]), E = w(void 0), D = w({
|
|
5840
|
+
let a = Je(), { t: o } = Ze(), s = Ue(), c = t(() => K.isMobile), l = w(), u = w(), d = w(), m = w(!!i.header), g = w(!1), _ = w(!1), v = w(""), b = w(), x = w([]), C = w([]), T = w([]), E = w(void 0), D = w([]), O = w({
|
|
5835
5841
|
params: [],
|
|
5836
5842
|
query: {
|
|
5837
5843
|
page: 1,
|
|
5838
5844
|
pageMax: 1,
|
|
5839
5845
|
pageSize: e.pageSize || 30
|
|
5840
5846
|
}
|
|
5841
|
-
}), ee = w([]),
|
|
5847
|
+
}), ee = w([]), k = w(void 0), te = w(void 0), A = w([]), M = w([]), N = w([]), P = w([]), F = w({
|
|
5842
5848
|
fetch: null,
|
|
5843
5849
|
when_drawer_open: "",
|
|
5844
5850
|
when_before_save: ""
|
|
5845
|
-
}),
|
|
5851
|
+
}), I = w(Vp()), ne = w(""), re = w(!1), ie = w([]), R = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
|
|
5846
5852
|
n("update:rowKeys", {
|
|
5847
5853
|
keys: e,
|
|
5848
5854
|
rows: H(t)
|
|
5849
5855
|
});
|
|
5850
|
-
},
|
|
5851
|
-
if (
|
|
5852
|
-
let e =
|
|
5853
|
-
|
|
5856
|
+
}, ce = (e, t, r) => {
|
|
5857
|
+
if (ie.value = e, r.action === "check" && R.value.push(r.row), r.action === "uncheck") {
|
|
5858
|
+
let e = R.value.findIndex((e) => e.id === r.row?.id);
|
|
5859
|
+
R.value.splice(e, 1);
|
|
5854
5860
|
}
|
|
5855
5861
|
r.action === "checkAll" && t.forEach((e) => {
|
|
5856
|
-
e &&
|
|
5857
|
-
}), r.action === "uncheckAll" && (
|
|
5858
|
-
keys: H(
|
|
5859
|
-
rows: H(
|
|
5862
|
+
e && R.value.push(e);
|
|
5863
|
+
}), r.action === "uncheckAll" && (R.value = [], ie.value = []), n("update:rowKeys", {
|
|
5864
|
+
keys: H(ie.value),
|
|
5865
|
+
rows: H(R.value)
|
|
5860
5866
|
});
|
|
5861
|
-
},
|
|
5862
|
-
|
|
5867
|
+
}, le = (e) => {
|
|
5868
|
+
D.value = e;
|
|
5869
|
+
}, ue = (t) => {
|
|
5870
|
+
let n = e.summary || I.value.summary;
|
|
5863
5871
|
return n && typeof n == "string" ? Function("pageData", "h", n)(t, "h", f) : n && typeof n == "function" ? n(t) : [];
|
|
5864
|
-
},
|
|
5872
|
+
}, z = (t = !1) => {
|
|
5865
5873
|
let r = e.id || a.params.id;
|
|
5866
5874
|
e.enableLoading && (g.value = !0, n("update:loading", !0));
|
|
5867
|
-
let i = H(
|
|
5868
|
-
if (t && delete i.orderby,
|
|
5875
|
+
let i = H(O.value);
|
|
5876
|
+
if (t && delete i.orderby, F.value.fetch) Rd([F.value.fetch], "", i).then((e) => {
|
|
5869
5877
|
let t = ud(e);
|
|
5870
|
-
|
|
5878
|
+
O.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, O.value);
|
|
5871
5879
|
}).catch(() => {
|
|
5872
5880
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
5873
5881
|
});
|
|
@@ -5881,39 +5889,39 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5881
5889
|
tableId: r
|
|
5882
5890
|
}), t.then((e) => {
|
|
5883
5891
|
let t = ud(e);
|
|
5884
|
-
|
|
5892
|
+
O.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, O.value);
|
|
5885
5893
|
}).catch(() => {
|
|
5886
5894
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
5887
5895
|
});
|
|
5888
5896
|
}
|
|
5889
|
-
}, le = (e) => {
|
|
5890
|
-
D.value.query.page = e, l.value && (l.value.scrollTop = 0), ld(), R();
|
|
5891
|
-
}, ue = () => {
|
|
5892
|
-
let e = D.value.query.page + 1;
|
|
5893
|
-
e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), R();
|
|
5894
5897
|
}, de = (e) => {
|
|
5895
|
-
|
|
5896
|
-
}, fe = (
|
|
5897
|
-
|
|
5898
|
-
|
|
5898
|
+
O.value.query.page = e, l.value && (l.value.scrollTop = 0), ld(), z();
|
|
5899
|
+
}, fe = () => {
|
|
5900
|
+
let e = O.value.query.page + 1;
|
|
5901
|
+
e > O.value.query.pageMax && (e = 1), O.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
|
|
5902
|
+
}, pe = (e) => {
|
|
5903
|
+
O.value.query.pageSize = e, O.value.query.page = 1, ld(), z();
|
|
5904
|
+
}, me = (e) => {
|
|
5905
|
+
e && e.order ? O.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete O.value.orderby, z();
|
|
5906
|
+
}, he = () => {
|
|
5899
5907
|
if (typeof e.addFetch == "function") return e.addFetch();
|
|
5900
5908
|
d.value?.addAndEdit(e.id || a.params.id, async () => {
|
|
5901
|
-
let { form: e } = await
|
|
5909
|
+
let { form: e } = await be();
|
|
5902
5910
|
return {
|
|
5903
5911
|
form: e,
|
|
5904
5912
|
data: {}
|
|
5905
5913
|
};
|
|
5906
|
-
},
|
|
5907
|
-
},
|
|
5908
|
-
e.show = !e.show,
|
|
5909
|
-
},
|
|
5914
|
+
}, I.value, F.value, 0, je);
|
|
5915
|
+
}, ge = (e) => {
|
|
5916
|
+
e.show = !e.show, Ae();
|
|
5917
|
+
}, _e = (e) => {
|
|
5910
5918
|
let t = [];
|
|
5911
5919
|
e.forEach((e) => {
|
|
5912
5920
|
e.show && t.push(e);
|
|
5913
5921
|
}), x.value = t;
|
|
5914
|
-
},
|
|
5915
|
-
|
|
5916
|
-
},
|
|
5922
|
+
}, B = (e) => {
|
|
5923
|
+
O.value.params = e, z();
|
|
5924
|
+
}, ve = () => [{
|
|
5917
5925
|
title: "创建人/时间",
|
|
5918
5926
|
key: "createTime",
|
|
5919
5927
|
resizable: !0,
|
|
@@ -5931,14 +5939,14 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5931
5939
|
ellipsis: !0,
|
|
5932
5940
|
width: 180,
|
|
5933
5941
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => dd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5934
|
-
}],
|
|
5935
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(
|
|
5942
|
+
}], ye = (t) => !e.ruleFetch || !A.value || A.value && A.value[0] === "*" ? !1 : !A.value?.includes(t), be = async (e) => {
|
|
5943
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(M.value, e, () => d.value?.getFormValues());
|
|
5936
5944
|
return b.value = t, {
|
|
5937
5945
|
form: t,
|
|
5938
5946
|
fillingDefaultValue: n,
|
|
5939
5947
|
formDefaultValue: r
|
|
5940
5948
|
};
|
|
5941
|
-
},
|
|
5949
|
+
}, xe = async (t) => new Promise((n, r) => {
|
|
5942
5950
|
let i = e.id || a.params.id, o;
|
|
5943
5951
|
o = e.fetch ? e.fetch({
|
|
5944
5952
|
id: t.id,
|
|
@@ -5951,8 +5959,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5951
5959
|
}).catch(() => {
|
|
5952
5960
|
r();
|
|
5953
5961
|
});
|
|
5954
|
-
}),
|
|
5955
|
-
let n = await
|
|
5962
|
+
}), Se = async (e, t) => {
|
|
5963
|
+
let n = await xe(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await be(n || {}), a = {
|
|
5956
5964
|
...n,
|
|
5957
5965
|
...i
|
|
5958
5966
|
};
|
|
@@ -5961,7 +5969,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5961
5969
|
} catch (e) {
|
|
5962
5970
|
q(e);
|
|
5963
5971
|
}
|
|
5964
|
-
let o =
|
|
5972
|
+
let o = F.value.when_drawer_open;
|
|
5965
5973
|
if (o && typeof o == "string") try {
|
|
5966
5974
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5967
5975
|
q(e);
|
|
@@ -5973,19 +5981,19 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5973
5981
|
form: r,
|
|
5974
5982
|
data: a
|
|
5975
5983
|
};
|
|
5976
|
-
},
|
|
5984
|
+
}, Ce = (t, r) => {
|
|
5977
5985
|
let i = H(t.onClick), c = e.id || a.params.id;
|
|
5978
5986
|
if (t.disabled) {
|
|
5979
5987
|
if (typeof t.disabled == "string") {
|
|
5980
5988
|
let e = Function("rowData", "rowIndex", t.disabled);
|
|
5981
|
-
t.disabled = (n, r) => e(n, r) ||
|
|
5989
|
+
t.disabled = (n, r) => e(n, r) || ye(t.key);
|
|
5982
5990
|
} else if (typeof t.disabled == "function") {
|
|
5983
5991
|
let e = H(t);
|
|
5984
|
-
t.disabled = (n, r) => e.disabled(n, r) ||
|
|
5992
|
+
t.disabled = (n, r) => e.disabled(n, r) || ye(t.key);
|
|
5985
5993
|
}
|
|
5986
|
-
} else t.disabled = () =>
|
|
5994
|
+
} else t.disabled = () => ye(t.key);
|
|
5987
5995
|
if (t.loading = g.value, t.type !== "group" && t.optionsType) t.onClick = async (e) => {
|
|
5988
|
-
|
|
5996
|
+
xe(e).then((r) => {
|
|
5989
5997
|
if (t.optionsType === "drawer:insider") {
|
|
5990
5998
|
if (i) try {
|
|
5991
5999
|
Function("rowData", "POST", "fnNotification", i)(r, Z, s).then((e) => {
|
|
@@ -6012,12 +6020,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6012
6020
|
else if (t.type !== "group" && t.action === "detailInside") {
|
|
6013
6021
|
let n = H(t.onClick);
|
|
6014
6022
|
t.onClick = (t) => {
|
|
6015
|
-
d.value?.addAndEdit(e.id || a.params.id, () =>
|
|
6023
|
+
d.value?.addAndEdit(e.id || a.params.id, () => Se(t, n), I.value, F.value, 2, je);
|
|
6016
6024
|
};
|
|
6017
6025
|
} else if (t.type !== "group" && t.action === "editInside") {
|
|
6018
6026
|
let n = H(t.onClick);
|
|
6019
6027
|
t.onClick = (t) => {
|
|
6020
|
-
d.value?.addAndEdit(e.id || a.params.id, () =>
|
|
6028
|
+
d.value?.addAndEdit(e.id || a.params.id, () => Se(t, n), I.value, F.value, 1, je);
|
|
6021
6029
|
};
|
|
6022
6030
|
} else if (t.type !== "group" && t.action === "deleteInside") {
|
|
6023
6031
|
let n = H(t.onClick);
|
|
@@ -6034,12 +6042,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6034
6042
|
}), i.then(() => {
|
|
6035
6043
|
if (n) try {
|
|
6036
6044
|
Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
|
|
6037
|
-
|
|
6045
|
+
z();
|
|
6038
6046
|
}).catch(() => null);
|
|
6039
6047
|
} catch (e) {
|
|
6040
6048
|
q(e);
|
|
6041
6049
|
}
|
|
6042
|
-
else
|
|
6050
|
+
else z();
|
|
6043
6051
|
}).catch((e) => {
|
|
6044
6052
|
q(e);
|
|
6045
6053
|
});
|
|
@@ -6050,7 +6058,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6050
6058
|
...t,
|
|
6051
6059
|
is_disabled: "1"
|
|
6052
6060
|
}).then(() => {
|
|
6053
|
-
|
|
6061
|
+
z();
|
|
6054
6062
|
}).catch(() => null);
|
|
6055
6063
|
};
|
|
6056
6064
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
@@ -6059,7 +6067,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6059
6067
|
...t,
|
|
6060
6068
|
is_disabled: "0"
|
|
6061
6069
|
}).then(() => {
|
|
6062
|
-
|
|
6070
|
+
z();
|
|
6063
6071
|
}).catch(() => null);
|
|
6064
6072
|
};
|
|
6065
6073
|
else if (t.type !== "group" && t.action) {
|
|
@@ -6081,7 +6089,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6081
6089
|
s.success({
|
|
6082
6090
|
content: e,
|
|
6083
6091
|
duration: 3e3
|
|
6084
|
-
}),
|
|
6092
|
+
}), z();
|
|
6085
6093
|
}).catch((e) => {
|
|
6086
6094
|
q(e);
|
|
6087
6095
|
});
|
|
@@ -6095,27 +6103,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6095
6103
|
s.success({
|
|
6096
6104
|
content: () => o("Notice.success"),
|
|
6097
6105
|
duration: 3e3
|
|
6098
|
-
}),
|
|
6106
|
+
}), z();
|
|
6099
6107
|
});
|
|
6100
6108
|
return;
|
|
6101
6109
|
}
|
|
6102
6110
|
s.success({
|
|
6103
6111
|
content: () => o("Notice.success"),
|
|
6104
6112
|
duration: 3e3
|
|
6105
|
-
}),
|
|
6113
|
+
}), z();
|
|
6106
6114
|
}).catch(() => {
|
|
6107
6115
|
s.error({
|
|
6108
6116
|
content: () => o("Notice.failed"),
|
|
6109
6117
|
duration: 3e3
|
|
6110
|
-
}),
|
|
6118
|
+
}), z();
|
|
6111
6119
|
});
|
|
6112
6120
|
}).catch(() => null);
|
|
6113
6121
|
};
|
|
6114
6122
|
}
|
|
6115
|
-
},
|
|
6116
|
-
|
|
6117
|
-
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(
|
|
6118
|
-
!c.value &&
|
|
6123
|
+
}, we = async () => {
|
|
6124
|
+
re.value = !1, Np();
|
|
6125
|
+
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(M.value, e.child, 0, () => ({}), ae);
|
|
6126
|
+
!c.value && I.value.index && t.unshift({
|
|
6119
6127
|
title: "#",
|
|
6120
6128
|
key: "index",
|
|
6121
6129
|
align: "center",
|
|
@@ -6126,25 +6134,25 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6126
6134
|
show: !0,
|
|
6127
6135
|
render(e, t) {
|
|
6128
6136
|
return f("span", {}, { default: () => {
|
|
6129
|
-
let e =
|
|
6137
|
+
let e = O.value.query.page || 1, n = O.value.query.pageSize || 30;
|
|
6130
6138
|
return (e - 1) * n + (t + 1);
|
|
6131
6139
|
} });
|
|
6132
6140
|
}
|
|
6133
|
-
}), !c.value && (e.selection ||
|
|
6141
|
+
}), !c.value && (e.selection || I.value.selection !== 0) && t.unshift({
|
|
6134
6142
|
type: "selection",
|
|
6135
6143
|
fixed: "left",
|
|
6136
6144
|
width: 60,
|
|
6137
6145
|
hide: !0,
|
|
6138
6146
|
show: !0,
|
|
6139
|
-
multiple: e.selection === 2 ||
|
|
6147
|
+
multiple: e.selection === 2 || I.value.selection === 2,
|
|
6140
6148
|
options: ["all", "none"]
|
|
6141
6149
|
});
|
|
6142
6150
|
let s = e.id || a.params.id;
|
|
6143
|
-
if (!c.value &&
|
|
6144
|
-
let e = H(
|
|
6151
|
+
if (!c.value && I.value.commonTime && t.push(...ve()), e.enableAction === !0 && N.value && N.value.length > 0) {
|
|
6152
|
+
let e = H(N.value);
|
|
6145
6153
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
6146
|
-
|
|
6147
|
-
}) :
|
|
6154
|
+
Ce(e, r);
|
|
6155
|
+
}) : Ce(t, r);
|
|
6148
6156
|
let n = {
|
|
6149
6157
|
title: () => o("Common.action"),
|
|
6150
6158
|
key: "action",
|
|
@@ -6154,12 +6162,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6154
6162
|
checked: !0,
|
|
6155
6163
|
show: !0,
|
|
6156
6164
|
hide: !0,
|
|
6157
|
-
width: Number(typeof
|
|
6165
|
+
width: Number(typeof I.value.actionWidth == "string" ? I.value.actionWidth.replace("px", "") : I.value.actionWidth),
|
|
6158
6166
|
render(t) {
|
|
6159
6167
|
return Wd({
|
|
6160
6168
|
buttons: e,
|
|
6161
6169
|
rowData: t,
|
|
6162
|
-
callback:
|
|
6170
|
+
callback: z,
|
|
6163
6171
|
tableId: s
|
|
6164
6172
|
});
|
|
6165
6173
|
}
|
|
@@ -6180,6 +6188,9 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6180
6188
|
hide: !0,
|
|
6181
6189
|
width: 40,
|
|
6182
6190
|
fixed: "left",
|
|
6191
|
+
filter: "default",
|
|
6192
|
+
filterOptionValue: null,
|
|
6193
|
+
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Re }, { default: () => o("Common.expand") }), f(L, { onClick: ze }, { default: () => o("Common.contract") })]),
|
|
6183
6194
|
renderExpand: (e) => f(Yp, {
|
|
6184
6195
|
data: i,
|
|
6185
6196
|
value: e
|
|
@@ -6189,13 +6200,13 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6189
6200
|
l.forEach((e) => {
|
|
6190
6201
|
e.show && (u += Number(e.width || 140));
|
|
6191
6202
|
}), C.value = l, ee.value = n, E.value = u;
|
|
6192
|
-
},
|
|
6203
|
+
}, Te = (e) => typeof e == "number" ? `${e}px` : e, Ee = () => {
|
|
6193
6204
|
if (e.height) {
|
|
6194
|
-
let t =
|
|
6195
|
-
|
|
6205
|
+
let t = Te(e.height);
|
|
6206
|
+
k.value = t, te.value = t;
|
|
6196
6207
|
return;
|
|
6197
6208
|
}
|
|
6198
|
-
},
|
|
6209
|
+
}, De = (t) => {
|
|
6199
6210
|
let n = e.id || a.params.id;
|
|
6200
6211
|
if (n) {
|
|
6201
6212
|
let e = 0;
|
|
@@ -6206,7 +6217,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6206
6217
|
data: JSON.stringify(t)
|
|
6207
6218
|
}).catch(() => null);
|
|
6208
6219
|
}
|
|
6209
|
-
}, { run:
|
|
6220
|
+
}, { run: Oe } = Tp(De), { run: ke } = Tp((e, t) => {
|
|
6210
6221
|
let n = [];
|
|
6211
6222
|
C.value.forEach((r) => {
|
|
6212
6223
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -6216,8 +6227,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6216
6227
|
fixed: r.fixed,
|
|
6217
6228
|
width: r.key === t ? Number(e.toFixed(0)) : r.width
|
|
6218
6229
|
});
|
|
6219
|
-
}),
|
|
6220
|
-
}),
|
|
6230
|
+
}), De(n);
|
|
6231
|
+
}), Ae = () => {
|
|
6221
6232
|
let e = [];
|
|
6222
6233
|
C.value.forEach((t) => {
|
|
6223
6234
|
t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
|
|
@@ -6227,8 +6238,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6227
6238
|
fixed: t.fixed,
|
|
6228
6239
|
width: t.width
|
|
6229
6240
|
});
|
|
6230
|
-
}),
|
|
6231
|
-
},
|
|
6241
|
+
}), Oe(e);
|
|
6242
|
+
}, je = (t, n, r) => {
|
|
6232
6243
|
let i, o = e.id || a.params.id;
|
|
6233
6244
|
i = e.formFetch ? e.formFetch({
|
|
6234
6245
|
tableId: o,
|
|
@@ -6237,27 +6248,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6237
6248
|
tableId: o,
|
|
6238
6249
|
...t
|
|
6239
6250
|
}), i.then(() => {
|
|
6240
|
-
|
|
6251
|
+
z(), n();
|
|
6241
6252
|
}).catch((e) => {
|
|
6242
6253
|
r(e);
|
|
6243
6254
|
});
|
|
6244
|
-
},
|
|
6245
|
-
v.value = "",
|
|
6255
|
+
}, Me = () => {
|
|
6256
|
+
v.value = "", M.value = [], N.value = [], P.value = [], F.value = {
|
|
6246
6257
|
fetch: null,
|
|
6247
6258
|
when_drawer_open: "",
|
|
6248
6259
|
when_before_save: ""
|
|
6249
|
-
},
|
|
6250
|
-
},
|
|
6260
|
+
}, I.value = Vp();
|
|
6261
|
+
}, Ne = (t) => {
|
|
6251
6262
|
let n = rt.parse(t.viewJson);
|
|
6252
|
-
v.value = t.tableTitle,
|
|
6263
|
+
v.value = t.tableTitle, M.value = Lp(n.table), N.value = Qd(e.actions || n.action);
|
|
6253
6264
|
let r = Qd(n.suffix || []);
|
|
6254
|
-
|
|
6265
|
+
P.value = r.filter((e) => e.main).map((e) => (Fe(e), e)), F.value = zp(n.trigger);
|
|
6255
6266
|
let i = Vp(e.options ?? n.option);
|
|
6256
|
-
t.tableTitle && i.title && fd(t.tableTitle),
|
|
6257
|
-
},
|
|
6258
|
-
_.value = !1,
|
|
6267
|
+
t.tableTitle && i.title && fd(t.tableTitle), I.value = i;
|
|
6268
|
+
}, Pe = async () => {
|
|
6269
|
+
_.value = !1, Me();
|
|
6259
6270
|
let t = e.id || a.params.id;
|
|
6260
|
-
if (
|
|
6271
|
+
if (O.value = {
|
|
6261
6272
|
params: [],
|
|
6262
6273
|
query: {
|
|
6263
6274
|
page: 1,
|
|
@@ -6265,17 +6276,17 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6265
6276
|
pageSize: e.pageSize || 30
|
|
6266
6277
|
}
|
|
6267
6278
|
}, T.value = [], e.ruleFetch) try {
|
|
6268
|
-
|
|
6279
|
+
A.value = await e.ruleFetch(t);
|
|
6269
6280
|
} catch {
|
|
6270
|
-
ne.value = o("Notice.network"),
|
|
6281
|
+
ne.value = o("Notice.network"), re.value = !0;
|
|
6271
6282
|
return;
|
|
6272
6283
|
}
|
|
6273
|
-
|
|
6274
|
-
|
|
6284
|
+
Ee(), e.columns ? (M.value = e.columns || [], N.value = e.actions || [], P.value = e.suffixes || [], I.value = Vp(e.options), await we()) : await Fp(t).then(async (e) => {
|
|
6285
|
+
Ne(e), await we();
|
|
6275
6286
|
}).catch((e) => {
|
|
6276
|
-
ne.value = e?.message || o("Notice.network"),
|
|
6287
|
+
ne.value = e?.message || o("Notice.network"), re.value = !0;
|
|
6277
6288
|
});
|
|
6278
|
-
},
|
|
6289
|
+
}, Fe = (e) => {
|
|
6279
6290
|
if (e.type !== "group" && e.optionsType) {
|
|
6280
6291
|
let t = H(e.onClick);
|
|
6281
6292
|
e.onClick = () => {
|
|
@@ -6297,7 +6308,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6297
6308
|
if (t && typeof t == "string") {
|
|
6298
6309
|
try {
|
|
6299
6310
|
let e = Function("POST", "fnNotification", t);
|
|
6300
|
-
await e(Z, s, e),
|
|
6311
|
+
await e(Z, s, e), z();
|
|
6301
6312
|
} catch (e) {
|
|
6302
6313
|
q(e);
|
|
6303
6314
|
}
|
|
@@ -6305,36 +6316,52 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6305
6316
|
}
|
|
6306
6317
|
};
|
|
6307
6318
|
}
|
|
6319
|
+
}, Ie = () => {
|
|
6320
|
+
if (g.value) return;
|
|
6321
|
+
g.value = !0;
|
|
6322
|
+
let t = e.id || a.params.id;
|
|
6323
|
+
t && (od(`tables_filter_${t}`), Ld({
|
|
6324
|
+
table_id: t,
|
|
6325
|
+
data: null
|
|
6326
|
+
}).catch(() => null).finally(() => {
|
|
6327
|
+
we(), g.value = !1;
|
|
6328
|
+
}));
|
|
6329
|
+
}, Le = (e, t, n) => {
|
|
6330
|
+
ke(e, n.key);
|
|
6331
|
+
}, Re = () => {
|
|
6332
|
+
D.value = T.value.map((e) => e.id);
|
|
6333
|
+
}, ze = () => {
|
|
6334
|
+
D.value = [];
|
|
6308
6335
|
};
|
|
6309
6336
|
return r({
|
|
6310
|
-
rebuild:
|
|
6311
|
-
init:
|
|
6312
|
-
nextPage:
|
|
6337
|
+
rebuild: Pe,
|
|
6338
|
+
init: z,
|
|
6339
|
+
nextPage: fe
|
|
6313
6340
|
}), y(async () => {
|
|
6314
|
-
await
|
|
6341
|
+
await Pe(), h(() => {
|
|
6315
6342
|
u.value?.scrollTo({
|
|
6316
6343
|
left: 0,
|
|
6317
6344
|
right: 0
|
|
6318
6345
|
});
|
|
6319
6346
|
});
|
|
6320
6347
|
}), j(() => C.value, (e) => {
|
|
6321
|
-
|
|
6348
|
+
_e(e);
|
|
6322
6349
|
}, { deep: !0 }), j(() => e.height, () => {
|
|
6323
|
-
|
|
6350
|
+
Ee();
|
|
6324
6351
|
}), j([() => a.params.id, () => e.id], async () => {
|
|
6325
|
-
ld(), await
|
|
6352
|
+
ld(), await Pe();
|
|
6326
6353
|
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
6327
|
-
let t = e || [], n =
|
|
6328
|
-
|
|
6354
|
+
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6355
|
+
ie.value = t, R.value = n;
|
|
6329
6356
|
}, { deep: !0 }), {
|
|
6330
6357
|
loading: g,
|
|
6331
|
-
minH:
|
|
6332
|
-
maxH:
|
|
6358
|
+
minH: k,
|
|
6359
|
+
maxH: te,
|
|
6333
6360
|
drawerRef: d,
|
|
6334
|
-
tableOption:
|
|
6361
|
+
tableOption: I,
|
|
6335
6362
|
tableCols: x,
|
|
6336
6363
|
tableData: T,
|
|
6337
|
-
tableQueries:
|
|
6364
|
+
tableQueries: O,
|
|
6338
6365
|
searchData: ee,
|
|
6339
6366
|
filterColumns: C,
|
|
6340
6367
|
isSlotHeader: m,
|
|
@@ -6342,40 +6369,32 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6342
6369
|
dynamicLoading: _,
|
|
6343
6370
|
spinMsg: ne,
|
|
6344
6371
|
tableScrollX: E,
|
|
6345
|
-
suffixes:
|
|
6346
|
-
spinError:
|
|
6372
|
+
suffixes: P,
|
|
6373
|
+
spinError: re,
|
|
6347
6374
|
isMobile: c,
|
|
6348
6375
|
mRef: l,
|
|
6349
|
-
checkRowKeys:
|
|
6376
|
+
checkRowKeys: ie,
|
|
6350
6377
|
route: a,
|
|
6351
|
-
rowKey:
|
|
6352
|
-
pageChange:
|
|
6353
|
-
pageSizeChange:
|
|
6354
|
-
pageSorter:
|
|
6355
|
-
showChange:
|
|
6356
|
-
submit:
|
|
6357
|
-
handleAdd:
|
|
6358
|
-
handleColumnChange:
|
|
6359
|
-
handleCheckRowKeys:
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
data: null
|
|
6372
|
-
}).catch(() => null).finally(() => {
|
|
6373
|
-
Se(), g.value = !1;
|
|
6374
|
-
}));
|
|
6375
|
-
},
|
|
6376
|
-
handleColumnResize: (e, t, n) => {
|
|
6377
|
-
De(e, n.key);
|
|
6378
|
-
}
|
|
6378
|
+
rowKey: oe,
|
|
6379
|
+
pageChange: de,
|
|
6380
|
+
pageSizeChange: pe,
|
|
6381
|
+
pageSorter: me,
|
|
6382
|
+
showChange: ge,
|
|
6383
|
+
submit: B,
|
|
6384
|
+
handleAdd: he,
|
|
6385
|
+
handleColumnChange: Ae,
|
|
6386
|
+
handleCheckRowKeys: ce,
|
|
6387
|
+
handleExpandedRowKeys: le,
|
|
6388
|
+
checkRole: ye,
|
|
6389
|
+
rebuild: Pe,
|
|
6390
|
+
summaryFn: ue,
|
|
6391
|
+
handleMobileCheckRowKeys: se,
|
|
6392
|
+
isTypeofNumber: Te,
|
|
6393
|
+
resetFilter: Ie,
|
|
6394
|
+
handleColumnResize: Le,
|
|
6395
|
+
expandedRowKeys: D,
|
|
6396
|
+
handleExpandAll: Re,
|
|
6397
|
+
handleContractAll: ze
|
|
6379
6398
|
};
|
|
6380
6399
|
}
|
|
6381
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 = {
|
|
@@ -6386,7 +6405,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6386
6405
|
class: "uz-transform-fade-in"
|
|
6387
6406
|
}, rm = { class: "uz-com-title" }, im = ["data-index"];
|
|
6388
6407
|
function am(t, s, u, d, f, p) {
|
|
6389
|
-
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"), O = D("NCheckbox"), ee = D("GridDots"), te = D("VueDraggable"), j = D("NPopover"), M = D("UzSearchBar"), F = D("NDataTable"), I = D("NSpin"), L = D("UzTableDrawer");
|
|
6390
6409
|
return x(), i("div", {
|
|
6391
6410
|
class: "uz-table",
|
|
6392
6411
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
@@ -6424,12 +6443,12 @@ function am(t, s, u, d, f, p) {
|
|
|
6424
6443
|
width: "100%",
|
|
6425
6444
|
size: "medium"
|
|
6426
6445
|
})], 512), [[A, !t.dynamicLoading]]),
|
|
6427
|
-
P(l(
|
|
6446
|
+
P(l(I, {
|
|
6428
6447
|
show: t.spinError,
|
|
6429
6448
|
class: "uz-table-n-spin"
|
|
6430
6449
|
}, {
|
|
6431
6450
|
description: N(() => [
|
|
6432
|
-
a("div", null,
|
|
6451
|
+
a("div", null, k(t.spinMsg), 1),
|
|
6433
6452
|
s[2] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6434
6453
|
l(h, {
|
|
6435
6454
|
type: "primary",
|
|
@@ -6461,7 +6480,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6461
6480
|
default: N(() => [l(v)]),
|
|
6462
6481
|
_: 1
|
|
6463
6482
|
})]),
|
|
6464
|
-
default: N(() => [c(" " +
|
|
6483
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6465
6484
|
_: 1
|
|
6466
6485
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6467
6486
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6482,7 +6501,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6482
6501
|
key: "0"
|
|
6483
6502
|
} : {
|
|
6484
6503
|
name: "header",
|
|
6485
|
-
fn: N(() => [a("div", em,
|
|
6504
|
+
fn: N(() => [a("div", em, k(t.title), 1)]),
|
|
6486
6505
|
key: "1"
|
|
6487
6506
|
}]), 1032, [
|
|
6488
6507
|
"data",
|
|
@@ -6529,10 +6548,10 @@ function am(t, s, u, d, f, p) {
|
|
|
6529
6548
|
default: N(() => [l(w)]),
|
|
6530
6549
|
_: 1
|
|
6531
6550
|
})]),
|
|
6532
|
-
default: N(() => [c(" " +
|
|
6551
|
+
default: N(() => [c(" " + k(t.$t("Common.columns")), 1)]),
|
|
6533
6552
|
_: 1
|
|
6534
6553
|
})]),
|
|
6535
|
-
default: N(() => [l(
|
|
6554
|
+
default: N(() => [l(te, {
|
|
6536
6555
|
modelValue: t.filterColumns,
|
|
6537
6556
|
"onUpdate:modelValue": s[0] ||= (e) => t.filterColumns = e,
|
|
6538
6557
|
animation: 200,
|
|
@@ -6547,19 +6566,19 @@ function am(t, s, u, d, f, p) {
|
|
|
6547
6566
|
key: e.key,
|
|
6548
6567
|
class: "uz-table-sort",
|
|
6549
6568
|
"data-index": n
|
|
6550
|
-
}, [l(
|
|
6569
|
+
}, [l(O, {
|
|
6551
6570
|
checked: e.show,
|
|
6552
6571
|
"on-update:checked": () => t.showChange(e),
|
|
6553
6572
|
size: "large"
|
|
6554
6573
|
}, {
|
|
6555
|
-
default: N(() => [c(
|
|
6574
|
+
default: N(() => [c(k(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
6556
6575
|
_: 2
|
|
6557
6576
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
6558
6577
|
quaternary: "",
|
|
6559
6578
|
class: "uz-drag-handle"
|
|
6560
6579
|
}, {
|
|
6561
6580
|
icon: N(() => [l(y, { size: "18" }, {
|
|
6562
|
-
default: N(() => [l(
|
|
6581
|
+
default: N(() => [l(ee)]),
|
|
6563
6582
|
_: 1
|
|
6564
6583
|
})]),
|
|
6565
6584
|
_: 1
|
|
@@ -6569,7 +6588,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6569
6588
|
loading: t.loading,
|
|
6570
6589
|
onClick: t.resetFilter
|
|
6571
6590
|
}, {
|
|
6572
|
-
default: N(() => [c(
|
|
6591
|
+
default: N(() => [c(k(t.$t("Common.reset")), 1)]),
|
|
6573
6592
|
_: 1
|
|
6574
6593
|
}, 8, ["loading", "onClick"])]),
|
|
6575
6594
|
_: 1
|
|
@@ -6586,7 +6605,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6586
6605
|
default: N(() => [l(v)]),
|
|
6587
6606
|
_: 1
|
|
6588
6607
|
})]),
|
|
6589
|
-
default: N(() => [c(" " +
|
|
6608
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6590
6609
|
_: 1
|
|
6591
6610
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6592
6611
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6607,7 +6626,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6607
6626
|
key: "0"
|
|
6608
6627
|
} : {
|
|
6609
6628
|
name: "header",
|
|
6610
|
-
fn: N(() => [a("div", rm,
|
|
6629
|
+
fn: N(() => [a("div", rm, k(t.title), 1)]),
|
|
6611
6630
|
key: "1"
|
|
6612
6631
|
}]), 1032, [
|
|
6613
6632
|
"data",
|
|
@@ -6640,7 +6659,9 @@ function am(t, s, u, d, f, p) {
|
|
|
6640
6659
|
size: 8,
|
|
6641
6660
|
trigger: "hover"
|
|
6642
6661
|
},
|
|
6662
|
+
"expanded-row-keys": t.expandedRowKeys,
|
|
6643
6663
|
"onUpdate:checkedRowKeys": t.handleCheckRowKeys,
|
|
6664
|
+
"onUpdate:expandedRowKeys": t.handleExpandedRowKeys,
|
|
6644
6665
|
"sticky-expanded-rows": "",
|
|
6645
6666
|
remote: ""
|
|
6646
6667
|
}, null, 8, [
|
|
@@ -6660,21 +6681,23 @@ function am(t, s, u, d, f, p) {
|
|
|
6660
6681
|
"checked-row-keys",
|
|
6661
6682
|
"summary",
|
|
6662
6683
|
"on-unstable-column-resize",
|
|
6663
|
-
"
|
|
6684
|
+
"expanded-row-keys",
|
|
6685
|
+
"onUpdate:checkedRowKeys",
|
|
6686
|
+
"onUpdate:expandedRowKeys"
|
|
6664
6687
|
])]))]),
|
|
6665
6688
|
_: 3
|
|
6666
6689
|
}, 8, ["show"]), [[A, t.dynamicLoading]]),
|
|
6667
|
-
l(
|
|
6690
|
+
l(L, { ref: "drawerRef" }, null, 512)
|
|
6668
6691
|
], 4);
|
|
6669
6692
|
}
|
|
6670
6693
|
var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
6671
6694
|
name: "UzTableChild",
|
|
6672
6695
|
components: {
|
|
6673
6696
|
NSpin: Ne,
|
|
6674
|
-
NButton:
|
|
6675
|
-
NIcon:
|
|
6676
|
-
NDataTable:
|
|
6677
|
-
NForm:
|
|
6697
|
+
NButton: L,
|
|
6698
|
+
NIcon: B,
|
|
6699
|
+
NDataTable: se,
|
|
6700
|
+
NForm: me,
|
|
6678
6701
|
NDivider: le,
|
|
6679
6702
|
Plus: dc,
|
|
6680
6703
|
GridDots: ts
|
|
@@ -6699,7 +6722,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6699
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) => {
|
|
6700
6723
|
let { formDefaultValue: r, fillingDefaultArray: i } = await Hp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6701
6724
|
return C.value = r, i;
|
|
6702
|
-
},
|
|
6725
|
+
}, O = async (t) => {
|
|
6703
6726
|
if (_.value) return;
|
|
6704
6727
|
_.value = !0;
|
|
6705
6728
|
let n = await D(t), r = H(t).map((e, t) => ({
|
|
@@ -6726,7 +6749,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6726
6749
|
} else h(() => {
|
|
6727
6750
|
F();
|
|
6728
6751
|
});
|
|
6729
|
-
},
|
|
6752
|
+
}, ee = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6730
6753
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6731
6754
|
let { tableColumns: r, tableWidth: i } = await Up(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6732
6755
|
r.unshift({
|
|
@@ -6736,7 +6759,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6736
6759
|
titleAlign: "center",
|
|
6737
6760
|
width: 10,
|
|
6738
6761
|
show: !0
|
|
6739
|
-
}), s +=
|
|
6762
|
+
}), s += 10, e.item.params.draggable && e.status !== 2 && (r.unshift({
|
|
6740
6763
|
title: " ",
|
|
6741
6764
|
key: "draggable",
|
|
6742
6765
|
align: "center",
|
|
@@ -6747,7 +6770,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6747
6770
|
hide: !0,
|
|
6748
6771
|
show: !0,
|
|
6749
6772
|
render() {
|
|
6750
|
-
return f("div", { class: "flex justify-center" }, f(
|
|
6773
|
+
return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(ts) }));
|
|
6751
6774
|
}
|
|
6752
6775
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
6753
6776
|
title: () => l("Common.action"),
|
|
@@ -6782,8 +6805,8 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6782
6805
|
let c = [];
|
|
6783
6806
|
r.forEach((e) => {
|
|
6784
6807
|
e.show && c.push(e);
|
|
6785
|
-
}), b.value = c, s +=
|
|
6786
|
-
},
|
|
6808
|
+
}), b.value = c, s += 60, E.value = s, g.value = !1;
|
|
6809
|
+
}, te = (t) => {
|
|
6787
6810
|
if (e.item.params.summary) {
|
|
6788
6811
|
if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
|
|
6789
6812
|
try {
|
|
@@ -6865,19 +6888,19 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6865
6888
|
validate: P,
|
|
6866
6889
|
restoreValidation: N
|
|
6867
6890
|
}), j(() => e.item.params.columns, (e, t) => {
|
|
6868
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
6891
|
+
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6869
6892
|
}, {
|
|
6870
6893
|
deep: !0,
|
|
6871
6894
|
immediate: !0
|
|
6872
6895
|
}), j(() => e.value, (e) => {
|
|
6873
|
-
JSON.stringify(e) !== JSON.stringify(x.value.child) &&
|
|
6896
|
+
JSON.stringify(e) !== JSON.stringify(x.value.child) && O(e);
|
|
6874
6897
|
}, {
|
|
6875
6898
|
deep: !0,
|
|
6876
6899
|
immediate: !0
|
|
6877
6900
|
}), j(() => x.value.child, (t) => {
|
|
6878
6901
|
e.status !== 2 && n("update:value", t);
|
|
6879
6902
|
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6880
|
-
await
|
|
6903
|
+
await k(void 0, !0);
|
|
6881
6904
|
}), {
|
|
6882
6905
|
spin: g,
|
|
6883
6906
|
loading: _,
|
|
@@ -6885,14 +6908,14 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6885
6908
|
tableRef: u,
|
|
6886
6909
|
columns: b,
|
|
6887
6910
|
tableData: x,
|
|
6888
|
-
summaryData:
|
|
6911
|
+
summaryData: te,
|
|
6889
6912
|
message: S,
|
|
6890
6913
|
tableScrollX: E,
|
|
6891
6914
|
tableShow: y,
|
|
6892
6915
|
suffixes: T,
|
|
6893
6916
|
onAdd: A,
|
|
6894
6917
|
onAddFormData: M,
|
|
6895
|
-
rowClassName:
|
|
6918
|
+
rowClassName: ee,
|
|
6896
6919
|
doSuffixClick: (e) => {
|
|
6897
6920
|
i({
|
|
6898
6921
|
open: e.optionsType,
|
|
@@ -6916,14 +6939,14 @@ function pm(t, s, u, d, f, p) {
|
|
|
6916
6939
|
class: "uz-flex-1 uz-w-full"
|
|
6917
6940
|
}, {
|
|
6918
6941
|
default: N(() => [
|
|
6919
|
-
a("div", cm, [a("div", lm, [c(
|
|
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, [
|
|
6920
6943
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6921
6944
|
key: e.key,
|
|
6922
6945
|
type: e.color,
|
|
6923
6946
|
secondary: "",
|
|
6924
6947
|
onClick: (n) => t.doSuffixClick(e)
|
|
6925
6948
|
}, o({
|
|
6926
|
-
default: N(() => [c(" " +
|
|
6949
|
+
default: N(() => [c(" " + k(e.buttonText), 1)]),
|
|
6927
6950
|
_: 2
|
|
6928
6951
|
}, [e.icon ? {
|
|
6929
6952
|
name: "icon",
|
|
@@ -7025,7 +7048,7 @@ function pm(t, s, u, d, f, p) {
|
|
|
7025
7048
|
}
|
|
7026
7049
|
var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
7027
7050
|
name: "UzTableQuestChild",
|
|
7028
|
-
components: { NDataTable:
|
|
7051
|
+
components: { NDataTable: se },
|
|
7029
7052
|
props: {
|
|
7030
7053
|
formValue: {
|
|
7031
7054
|
type: Object,
|
|
@@ -7129,7 +7152,7 @@ var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
|
7129
7152
|
function ym(e, t, n, r, o, s) {
|
|
7130
7153
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
7131
7154
|
return x(), i("div", gm, [
|
|
7132
|
-
a("div", _m, [a("div", vm,
|
|
7155
|
+
a("div", _m, [a("div", vm, k(e.item.label), 1)]),
|
|
7133
7156
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
7134
7157
|
l(c, {
|
|
7135
7158
|
columns: e.columns,
|
|
@@ -7157,13 +7180,13 @@ function ym(e, t, n, r, o, s) {
|
|
|
7157
7180
|
var bm = /*#__PURE__*/ U(hm, [["render", ym]]), xm = d({
|
|
7158
7181
|
name: "UzTableDrawer",
|
|
7159
7182
|
components: {
|
|
7160
|
-
NButton:
|
|
7161
|
-
NDrawerContent:
|
|
7183
|
+
NButton: L,
|
|
7184
|
+
NDrawerContent: z,
|
|
7162
7185
|
NDrawer: ue,
|
|
7163
7186
|
NSkeleton: je,
|
|
7164
7187
|
NSpin: Ne,
|
|
7165
|
-
NPopover:
|
|
7166
|
-
NModal:
|
|
7188
|
+
NPopover: De,
|
|
7189
|
+
NModal: we
|
|
7167
7190
|
},
|
|
7168
7191
|
emits: ["update:show", "on-submit"],
|
|
7169
7192
|
setup(e, { emit: n, expose: r }) {
|
|
@@ -7343,7 +7366,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7343
7366
|
closable: ""
|
|
7344
7367
|
}, o({
|
|
7345
7368
|
default: N(() => [l(_, { show: t.spinError }, {
|
|
7346
|
-
description: N(() => [c(
|
|
7369
|
+
description: N(() => [c(k(t.$t("Notice.error")), 1)]),
|
|
7347
7370
|
default: N(() => [l(g, {
|
|
7348
7371
|
value: t.spinShow,
|
|
7349
7372
|
"onUpdate:value": s[0] ||= (e) => t.spinShow = e,
|
|
@@ -7419,7 +7442,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7419
7442
|
class: "uz-drawer-button",
|
|
7420
7443
|
onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
7421
7444
|
}, {
|
|
7422
|
-
default: N(() => [c(
|
|
7445
|
+
default: N(() => [c(k(t.$t("OCR.ocr")), 1)]),
|
|
7423
7446
|
_: 1
|
|
7424
7447
|
}, 8, ["loading"]), a("div", Tm, [
|
|
7425
7448
|
l(v, {
|
|
@@ -7428,7 +7451,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7428
7451
|
secondary: "",
|
|
7429
7452
|
onClick: t.drawerCheck
|
|
7430
7453
|
}, {
|
|
7431
|
-
default: N(() => [c(
|
|
7454
|
+
default: N(() => [c(k(t.$t("Common.cancel")), 1)]),
|
|
7432
7455
|
_: 1
|
|
7433
7456
|
}, 8, ["loading", "onClick"]),
|
|
7434
7457
|
t.formStatus === 0 ? (x(), n(y, {
|
|
@@ -7442,7 +7465,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7442
7465
|
secondary: "",
|
|
7443
7466
|
onClick: t.doCacheToStore
|
|
7444
7467
|
}, {
|
|
7445
|
-
default: N(() => [c(
|
|
7468
|
+
default: N(() => [c(k(t.$t("Common.cache")), 1)]),
|
|
7446
7469
|
_: 1
|
|
7447
7470
|
}, 8, ["loading", "onClick"])]),
|
|
7448
7471
|
default: N(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
|
|
@@ -7454,7 +7477,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7454
7477
|
type: "primary",
|
|
7455
7478
|
onClick: t.drawerSubmit
|
|
7456
7479
|
}, {
|
|
7457
|
-
default: N(() => [c(
|
|
7480
|
+
default: N(() => [c(k(t.$t("Common.apply")), 1)]),
|
|
7458
7481
|
_: 1
|
|
7459
7482
|
}, 8, ["loading", "onClick"])
|
|
7460
7483
|
])])]),
|
|
@@ -7516,14 +7539,14 @@ function jm(t, o, s, c, l, u) {
|
|
|
7516
7539
|
key: o.key,
|
|
7517
7540
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7518
7541
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
7519
|
-
}, [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(ee(() => {
|
|
7520
7543
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7521
7544
|
}), {
|
|
7522
7545
|
key: 0,
|
|
7523
7546
|
class: "mobile"
|
|
7524
|
-
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null,
|
|
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(ee(() => {
|
|
7525
7548
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7526
|
-
}), { key: 0 })) : (x(), i("div", Am,
|
|
7549
|
+
}), { key: 0 })) : (x(), i("div", Am, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7527
7550
|
}
|
|
7528
7551
|
//#endregion
|
|
7529
7552
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
@@ -7532,8 +7555,8 @@ var Mm = d({
|
|
|
7532
7555
|
components: {
|
|
7533
7556
|
NCheckbox: ie,
|
|
7534
7557
|
NRadio: Oe,
|
|
7535
|
-
NPagination:
|
|
7536
|
-
NCheckboxGroup:
|
|
7558
|
+
NPagination: Te,
|
|
7559
|
+
NCheckboxGroup: R,
|
|
7537
7560
|
NRadioGroup: ke,
|
|
7538
7561
|
UzTableMobileList: /* @__PURE__ */ U(Om, [["render", jm], ["__scopeId", "data-v-84c394fe"]])
|
|
7539
7562
|
},
|
|
@@ -7768,10 +7791,10 @@ var Wm = d({
|
|
|
7768
7791
|
components: {
|
|
7769
7792
|
NTabs: Ie,
|
|
7770
7793
|
NTabPane: Fe,
|
|
7771
|
-
NButton:
|
|
7772
|
-
NIcon:
|
|
7773
|
-
NPopconfirm:
|
|
7774
|
-
NFlex:
|
|
7794
|
+
NButton: L,
|
|
7795
|
+
NIcon: B,
|
|
7796
|
+
NPopconfirm: Ee,
|
|
7797
|
+
NFlex: pe,
|
|
7775
7798
|
Trash: xl
|
|
7776
7799
|
},
|
|
7777
7800
|
props: { option: {
|
|
@@ -7889,7 +7912,7 @@ var rh = {
|
|
|
7889
7912
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7890
7913
|
}, ih = V, ah = d({
|
|
7891
7914
|
name: "UzWrap",
|
|
7892
|
-
components: { NConfigProvider:
|
|
7915
|
+
components: { NConfigProvider: oe },
|
|
7893
7916
|
setup() {
|
|
7894
7917
|
return {
|
|
7895
7918
|
zhCN: We,
|
|
@@ -8013,7 +8036,7 @@ function uh(e, t) {
|
|
|
8013
8036
|
var dh = d({
|
|
8014
8037
|
name: "UzOcr",
|
|
8015
8038
|
components: {
|
|
8016
|
-
NButton:
|
|
8039
|
+
NButton: L,
|
|
8017
8040
|
NUpload: ze,
|
|
8018
8041
|
NSelect: Ae,
|
|
8019
8042
|
NSwitch: Pe,
|
|
@@ -8178,7 +8201,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8178
8201
|
src: e.processedImage,
|
|
8179
8202
|
alt: "Processed Preview",
|
|
8180
8203
|
class: "uz-ocr-preview-img"
|
|
8181
|
-
}, null, 8, vh), e.preEnabled && e.preBinarize ? (x(), i("div", yh,
|
|
8204
|
+
}, null, 8, vh), e.preEnabled && e.preBinarize ? (x(), i("div", yh, k(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + k(e.thresholdUsed), 1)) : r("", !0)])]),
|
|
8182
8205
|
_: 1
|
|
8183
8206
|
}, 8, ["tab"]), l(p, {
|
|
8184
8207
|
name: "raw",
|
|
@@ -8210,7 +8233,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8210
8233
|
loading: e.ocrLoading,
|
|
8211
8234
|
onClick: e.handleManualOcr
|
|
8212
8235
|
}, {
|
|
8213
|
-
default: N(() => [c(
|
|
8236
|
+
default: N(() => [c(k(e.t("OCR.reRecognize")), 1)]),
|
|
8214
8237
|
_: 1
|
|
8215
8238
|
}, 8, ["loading", "onClick"])]),
|
|
8216
8239
|
_: 1
|
|
@@ -8230,25 +8253,25 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8230
8253
|
height: "40",
|
|
8231
8254
|
fill: "currentColor"
|
|
8232
8255
|
}, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
|
|
8233
|
-
a("div", hh,
|
|
8256
|
+
a("div", hh, k(e.t("OCR.scan")), 1),
|
|
8234
8257
|
t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8235
8258
|
])]),
|
|
8236
8259
|
_: 1
|
|
8237
|
-
}, 8, ["on-before-upload"])), a("div", Sh, [a("div", Ch, [a("span", wh,
|
|
8260
|
+
}, 8, ["on-before-upload"])), a("div", Sh, [a("div", Ch, [a("span", wh, k(e.t("OCR.preprocess")), 1), l(_, {
|
|
8238
8261
|
value: e.preEnabled,
|
|
8239
8262
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8240
8263
|
size: "small"
|
|
8241
|
-
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Th, [a("div", Eh, [a("span", Dh,
|
|
8264
|
+
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Th, [a("div", Eh, [a("span", Dh, k(e.t("OCR.scale")), 1), l(v, {
|
|
8242
8265
|
value: e.preScale,
|
|
8243
8266
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8244
8267
|
options: e.scaleOptions,
|
|
8245
8268
|
size: "small",
|
|
8246
8269
|
class: "uz-settings-select"
|
|
8247
|
-
}, null, 8, ["value", "options"])]), a("div", Oh, [a("span", kh,
|
|
8270
|
+
}, null, 8, ["value", "options"])]), a("div", Oh, [a("span", kh, k(e.t("OCR.contrast")), 1), l(_, {
|
|
8248
8271
|
value: e.preContrast,
|
|
8249
8272
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8250
8273
|
size: "small"
|
|
8251
|
-
}, null, 8, ["value"])])])) : r("", !0)])]), a("div", Ah, [a("div", jh, [a("span", Mh, "识别结果 (" +
|
|
8274
|
+
}, null, 8, ["value"])])])) : r("", !0)])]), a("div", Ah, [a("div", jh, [a("span", Mh, "识别结果 (" + k(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Fh, k(e.fullText), 1)) : (x(), i("div", Nh, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Ph, k(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
8252
8275
|
}
|
|
8253
8276
|
var Lh = /*#__PURE__*/ U(dh, [["render", Ih], ["__scopeId", "data-v-c7224ff5"]]), Rh = /* @__PURE__ */ ut({
|
|
8254
8277
|
AccessPoint: () => ht,
|
|
@@ -8529,7 +8552,7 @@ function qh(e, t, n) {
|
|
|
8529
8552
|
}
|
|
8530
8553
|
//#endregion
|
|
8531
8554
|
//#region package.json
|
|
8532
|
-
var Jh = "0.1.
|
|
8555
|
+
var Jh = "0.1.72", Yh;
|
|
8533
8556
|
async function Xh() {
|
|
8534
8557
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8535
8558
|
method: "HEAD",
|