@unizhen/ui 0.1.70 → 0.1.71
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,
|
|
@@ -5456,7 +5460,7 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5456
5460
|
p.form.rule.validator === "" ? p.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(p.form.rule.message) : p.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
|
|
5457
5461
|
}
|
|
5458
5462
|
m.render = function(e, t) {
|
|
5459
|
-
return f(
|
|
5463
|
+
return f(he, {
|
|
5460
5464
|
showLabel: !1,
|
|
5461
5465
|
showFeedback: !1,
|
|
5462
5466
|
path: `child[${t}].${p.key}`,
|
|
@@ -5548,9 +5552,9 @@ async function Up(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5548
5552
|
var Wp = d({
|
|
5549
5553
|
name: "UzSpin",
|
|
5550
5554
|
components: {
|
|
5551
|
-
NButton:
|
|
5555
|
+
NButton: L,
|
|
5552
5556
|
NSpin: Ne,
|
|
5553
|
-
NEllipsis:
|
|
5557
|
+
NEllipsis: fe
|
|
5554
5558
|
},
|
|
5555
5559
|
emits: ["update:value"],
|
|
5556
5560
|
props: {
|
|
@@ -5600,7 +5604,7 @@ function Gp(e, t, r, i, o, s) {
|
|
|
5600
5604
|
"line-clamp": "3",
|
|
5601
5605
|
tooltip: !1
|
|
5602
5606
|
}, {
|
|
5603
|
-
default: N(() => [c(
|
|
5607
|
+
default: N(() => [c(k(e.status === 0 ? "操作进行中..." : e.message), 1)]),
|
|
5604
5608
|
_: 1
|
|
5605
5609
|
}),
|
|
5606
5610
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
@@ -5611,7 +5615,7 @@ function Gp(e, t, r, i, o, s) {
|
|
|
5611
5615
|
onMouseover: e.stopCountdown,
|
|
5612
5616
|
onClick: e.handleClose
|
|
5613
5617
|
}, {
|
|
5614
|
-
default: N(() => [c(" 关闭(" +
|
|
5618
|
+
default: N(() => [c(" 关闭(" + k(e.counts) + "s) ", 1)]),
|
|
5615
5619
|
_: 1
|
|
5616
5620
|
}, 8, ["onMouseover", "onClick"]), [[A, e.status === 1]])
|
|
5617
5621
|
]),
|
|
@@ -5622,8 +5626,8 @@ function Gp(e, t, r, i, o, s) {
|
|
|
5622
5626
|
var Kp = /*#__PURE__*/ U(Wp, [["render", Gp]]), qp = d({
|
|
5623
5627
|
name: "UzTableExpand",
|
|
5624
5628
|
components: {
|
|
5625
|
-
NDataTable:
|
|
5626
|
-
NForm:
|
|
5629
|
+
NDataTable: se,
|
|
5630
|
+
NForm: me
|
|
5627
5631
|
},
|
|
5628
5632
|
props: {
|
|
5629
5633
|
data: {
|
|
@@ -5692,10 +5696,10 @@ function Jp(e, t, r, i, a, o) {
|
|
|
5692
5696
|
var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
5693
5697
|
name: "UzTable",
|
|
5694
5698
|
components: {
|
|
5695
|
-
NDataTable:
|
|
5696
|
-
NPopover:
|
|
5697
|
-
NButton:
|
|
5698
|
-
NIcon:
|
|
5699
|
+
NDataTable: se,
|
|
5700
|
+
NPopover: De,
|
|
5701
|
+
NButton: L,
|
|
5702
|
+
NIcon: B,
|
|
5699
5703
|
NSkeleton: je,
|
|
5700
5704
|
NCheckbox: ie,
|
|
5701
5705
|
NSpin: Ne,
|
|
@@ -5831,43 +5835,45 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5831
5835
|
value: () => null,
|
|
5832
5836
|
setValue: () => null
|
|
5833
5837
|
});
|
|
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({
|
|
5838
|
+
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
5839
|
params: [],
|
|
5836
5840
|
query: {
|
|
5837
5841
|
page: 1,
|
|
5838
5842
|
pageMax: 1,
|
|
5839
5843
|
pageSize: e.pageSize || 30
|
|
5840
5844
|
}
|
|
5841
|
-
}), ee = w([]),
|
|
5845
|
+
}), ee = w([]), k = w(void 0), te = w(void 0), A = w([]), M = w([]), N = w([]), P = w([]), F = w({
|
|
5842
5846
|
fetch: null,
|
|
5843
5847
|
when_drawer_open: "",
|
|
5844
5848
|
when_before_save: ""
|
|
5845
|
-
}),
|
|
5849
|
+
}), I = w(Vp()), ne = w(""), re = w(!1), ie = w([]), R = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
|
|
5846
5850
|
n("update:rowKeys", {
|
|
5847
5851
|
keys: e,
|
|
5848
5852
|
rows: H(t)
|
|
5849
5853
|
});
|
|
5850
|
-
},
|
|
5851
|
-
if (
|
|
5852
|
-
let e =
|
|
5853
|
-
|
|
5854
|
+
}, ce = (e, t, r) => {
|
|
5855
|
+
if (ie.value = e, r.action === "check" && R.value.push(r.row), r.action === "uncheck") {
|
|
5856
|
+
let e = R.value.findIndex((e) => e.id === r.row?.id);
|
|
5857
|
+
R.value.splice(e, 1);
|
|
5854
5858
|
}
|
|
5855
5859
|
r.action === "checkAll" && t.forEach((e) => {
|
|
5856
|
-
e &&
|
|
5857
|
-
}), r.action === "uncheckAll" && (
|
|
5858
|
-
keys: H(
|
|
5859
|
-
rows: H(
|
|
5860
|
+
e && R.value.push(e);
|
|
5861
|
+
}), r.action === "uncheckAll" && (R.value = [], ie.value = []), n("update:rowKeys", {
|
|
5862
|
+
keys: H(ie.value),
|
|
5863
|
+
rows: H(R.value)
|
|
5860
5864
|
});
|
|
5861
|
-
},
|
|
5862
|
-
|
|
5865
|
+
}, le = (e) => {
|
|
5866
|
+
D.value = e;
|
|
5867
|
+
}, ue = (t) => {
|
|
5868
|
+
let n = e.summary || I.value.summary;
|
|
5863
5869
|
return n && typeof n == "string" ? Function("pageData", "h", n)(t, "h", f) : n && typeof n == "function" ? n(t) : [];
|
|
5864
|
-
},
|
|
5870
|
+
}, z = (t = !1) => {
|
|
5865
5871
|
let r = e.id || a.params.id;
|
|
5866
5872
|
e.enableLoading && (g.value = !0, n("update:loading", !0));
|
|
5867
|
-
let i = H(
|
|
5868
|
-
if (t && delete i.orderby,
|
|
5873
|
+
let i = H(O.value);
|
|
5874
|
+
if (t && delete i.orderby, F.value.fetch) Rd([F.value.fetch], "", i).then((e) => {
|
|
5869
5875
|
let t = ud(e);
|
|
5870
|
-
|
|
5876
|
+
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
5877
|
}).catch(() => {
|
|
5872
5878
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
5873
5879
|
});
|
|
@@ -5881,39 +5887,39 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5881
5887
|
tableId: r
|
|
5882
5888
|
}), t.then((e) => {
|
|
5883
5889
|
let t = ud(e);
|
|
5884
|
-
|
|
5890
|
+
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
5891
|
}).catch(() => {
|
|
5886
5892
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
5887
5893
|
});
|
|
5888
5894
|
}
|
|
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
5895
|
}, de = (e) => {
|
|
5895
|
-
|
|
5896
|
-
}, fe = (
|
|
5897
|
-
|
|
5898
|
-
|
|
5896
|
+
O.value.query.page = e, l.value && (l.value.scrollTop = 0), ld(), z();
|
|
5897
|
+
}, fe = () => {
|
|
5898
|
+
let e = O.value.query.page + 1;
|
|
5899
|
+
e > O.value.query.pageMax && (e = 1), O.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
|
|
5900
|
+
}, pe = (e) => {
|
|
5901
|
+
O.value.query.pageSize = e, O.value.query.page = 1, ld(), z();
|
|
5902
|
+
}, me = (e) => {
|
|
5903
|
+
e && e.order ? O.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete O.value.orderby, z();
|
|
5904
|
+
}, he = () => {
|
|
5899
5905
|
if (typeof e.addFetch == "function") return e.addFetch();
|
|
5900
5906
|
d.value?.addAndEdit(e.id || a.params.id, async () => {
|
|
5901
|
-
let { form: e } = await
|
|
5907
|
+
let { form: e } = await be();
|
|
5902
5908
|
return {
|
|
5903
5909
|
form: e,
|
|
5904
5910
|
data: {}
|
|
5905
5911
|
};
|
|
5906
|
-
},
|
|
5907
|
-
},
|
|
5908
|
-
e.show = !e.show,
|
|
5909
|
-
},
|
|
5912
|
+
}, I.value, F.value, 0, je);
|
|
5913
|
+
}, ge = (e) => {
|
|
5914
|
+
e.show = !e.show, Ae();
|
|
5915
|
+
}, _e = (e) => {
|
|
5910
5916
|
let t = [];
|
|
5911
5917
|
e.forEach((e) => {
|
|
5912
5918
|
e.show && t.push(e);
|
|
5913
5919
|
}), x.value = t;
|
|
5914
|
-
},
|
|
5915
|
-
|
|
5916
|
-
},
|
|
5920
|
+
}, B = (e) => {
|
|
5921
|
+
O.value.params = e, z();
|
|
5922
|
+
}, ve = () => [{
|
|
5917
5923
|
title: "创建人/时间",
|
|
5918
5924
|
key: "createTime",
|
|
5919
5925
|
resizable: !0,
|
|
@@ -5931,14 +5937,14 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5931
5937
|
ellipsis: !0,
|
|
5932
5938
|
width: 180,
|
|
5933
5939
|
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(
|
|
5940
|
+
}], ye = (t) => !e.ruleFetch || !A.value || A.value && A.value[0] === "*" ? !1 : !A.value?.includes(t), be = async (e) => {
|
|
5941
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Hp(M.value, e, () => d.value?.getFormValues());
|
|
5936
5942
|
return b.value = t, {
|
|
5937
5943
|
form: t,
|
|
5938
5944
|
fillingDefaultValue: n,
|
|
5939
5945
|
formDefaultValue: r
|
|
5940
5946
|
};
|
|
5941
|
-
},
|
|
5947
|
+
}, xe = async (t) => new Promise((n, r) => {
|
|
5942
5948
|
let i = e.id || a.params.id, o;
|
|
5943
5949
|
o = e.fetch ? e.fetch({
|
|
5944
5950
|
id: t.id,
|
|
@@ -5951,8 +5957,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5951
5957
|
}).catch(() => {
|
|
5952
5958
|
r();
|
|
5953
5959
|
});
|
|
5954
|
-
}),
|
|
5955
|
-
let n = await
|
|
5960
|
+
}), Se = async (e, t) => {
|
|
5961
|
+
let n = await xe(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await be(n || {}), a = {
|
|
5956
5962
|
...n,
|
|
5957
5963
|
...i
|
|
5958
5964
|
};
|
|
@@ -5961,7 +5967,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5961
5967
|
} catch (e) {
|
|
5962
5968
|
q(e);
|
|
5963
5969
|
}
|
|
5964
|
-
let o =
|
|
5970
|
+
let o = F.value.when_drawer_open;
|
|
5965
5971
|
if (o && typeof o == "string") try {
|
|
5966
5972
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5967
5973
|
q(e);
|
|
@@ -5973,19 +5979,19 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
5973
5979
|
form: r,
|
|
5974
5980
|
data: a
|
|
5975
5981
|
};
|
|
5976
|
-
},
|
|
5982
|
+
}, Ce = (t, r) => {
|
|
5977
5983
|
let i = H(t.onClick), c = e.id || a.params.id;
|
|
5978
5984
|
if (t.disabled) {
|
|
5979
5985
|
if (typeof t.disabled == "string") {
|
|
5980
5986
|
let e = Function("rowData", "rowIndex", t.disabled);
|
|
5981
|
-
t.disabled = (n, r) => e(n, r) ||
|
|
5987
|
+
t.disabled = (n, r) => e(n, r) || ye(t.key);
|
|
5982
5988
|
} else if (typeof t.disabled == "function") {
|
|
5983
5989
|
let e = H(t);
|
|
5984
|
-
t.disabled = (n, r) => e.disabled(n, r) ||
|
|
5990
|
+
t.disabled = (n, r) => e.disabled(n, r) || ye(t.key);
|
|
5985
5991
|
}
|
|
5986
|
-
} else t.disabled = () =>
|
|
5992
|
+
} else t.disabled = () => ye(t.key);
|
|
5987
5993
|
if (t.loading = g.value, t.type !== "group" && t.optionsType) t.onClick = async (e) => {
|
|
5988
|
-
|
|
5994
|
+
xe(e).then((r) => {
|
|
5989
5995
|
if (t.optionsType === "drawer:insider") {
|
|
5990
5996
|
if (i) try {
|
|
5991
5997
|
Function("rowData", "POST", "fnNotification", i)(r, Z, s).then((e) => {
|
|
@@ -6012,12 +6018,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6012
6018
|
else if (t.type !== "group" && t.action === "detailInside") {
|
|
6013
6019
|
let n = H(t.onClick);
|
|
6014
6020
|
t.onClick = (t) => {
|
|
6015
|
-
d.value?.addAndEdit(e.id || a.params.id, () =>
|
|
6021
|
+
d.value?.addAndEdit(e.id || a.params.id, () => Se(t, n), I.value, F.value, 2, je);
|
|
6016
6022
|
};
|
|
6017
6023
|
} else if (t.type !== "group" && t.action === "editInside") {
|
|
6018
6024
|
let n = H(t.onClick);
|
|
6019
6025
|
t.onClick = (t) => {
|
|
6020
|
-
d.value?.addAndEdit(e.id || a.params.id, () =>
|
|
6026
|
+
d.value?.addAndEdit(e.id || a.params.id, () => Se(t, n), I.value, F.value, 1, je);
|
|
6021
6027
|
};
|
|
6022
6028
|
} else if (t.type !== "group" && t.action === "deleteInside") {
|
|
6023
6029
|
let n = H(t.onClick);
|
|
@@ -6034,12 +6040,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6034
6040
|
}), i.then(() => {
|
|
6035
6041
|
if (n) try {
|
|
6036
6042
|
Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
|
|
6037
|
-
|
|
6043
|
+
z();
|
|
6038
6044
|
}).catch(() => null);
|
|
6039
6045
|
} catch (e) {
|
|
6040
6046
|
q(e);
|
|
6041
6047
|
}
|
|
6042
|
-
else
|
|
6048
|
+
else z();
|
|
6043
6049
|
}).catch((e) => {
|
|
6044
6050
|
q(e);
|
|
6045
6051
|
});
|
|
@@ -6050,7 +6056,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6050
6056
|
...t,
|
|
6051
6057
|
is_disabled: "1"
|
|
6052
6058
|
}).then(() => {
|
|
6053
|
-
|
|
6059
|
+
z();
|
|
6054
6060
|
}).catch(() => null);
|
|
6055
6061
|
};
|
|
6056
6062
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
@@ -6059,7 +6065,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6059
6065
|
...t,
|
|
6060
6066
|
is_disabled: "0"
|
|
6061
6067
|
}).then(() => {
|
|
6062
|
-
|
|
6068
|
+
z();
|
|
6063
6069
|
}).catch(() => null);
|
|
6064
6070
|
};
|
|
6065
6071
|
else if (t.type !== "group" && t.action) {
|
|
@@ -6081,7 +6087,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6081
6087
|
s.success({
|
|
6082
6088
|
content: e,
|
|
6083
6089
|
duration: 3e3
|
|
6084
|
-
}),
|
|
6090
|
+
}), z();
|
|
6085
6091
|
}).catch((e) => {
|
|
6086
6092
|
q(e);
|
|
6087
6093
|
});
|
|
@@ -6095,27 +6101,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6095
6101
|
s.success({
|
|
6096
6102
|
content: () => o("Notice.success"),
|
|
6097
6103
|
duration: 3e3
|
|
6098
|
-
}),
|
|
6104
|
+
}), z();
|
|
6099
6105
|
});
|
|
6100
6106
|
return;
|
|
6101
6107
|
}
|
|
6102
6108
|
s.success({
|
|
6103
6109
|
content: () => o("Notice.success"),
|
|
6104
6110
|
duration: 3e3
|
|
6105
|
-
}),
|
|
6111
|
+
}), z();
|
|
6106
6112
|
}).catch(() => {
|
|
6107
6113
|
s.error({
|
|
6108
6114
|
content: () => o("Notice.failed"),
|
|
6109
6115
|
duration: 3e3
|
|
6110
|
-
}),
|
|
6116
|
+
}), z();
|
|
6111
6117
|
});
|
|
6112
6118
|
}).catch(() => null);
|
|
6113
6119
|
};
|
|
6114
6120
|
}
|
|
6115
|
-
},
|
|
6116
|
-
|
|
6117
|
-
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(
|
|
6118
|
-
!c.value &&
|
|
6121
|
+
}, we = async () => {
|
|
6122
|
+
re.value = !1, Np();
|
|
6123
|
+
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Up(M.value, e.child, 0, () => ({}), ae);
|
|
6124
|
+
!c.value && I.value.index && t.unshift({
|
|
6119
6125
|
title: "#",
|
|
6120
6126
|
key: "index",
|
|
6121
6127
|
align: "center",
|
|
@@ -6126,25 +6132,25 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6126
6132
|
show: !0,
|
|
6127
6133
|
render(e, t) {
|
|
6128
6134
|
return f("span", {}, { default: () => {
|
|
6129
|
-
let e =
|
|
6135
|
+
let e = O.value.query.page || 1, n = O.value.query.pageSize || 30;
|
|
6130
6136
|
return (e - 1) * n + (t + 1);
|
|
6131
6137
|
} });
|
|
6132
6138
|
}
|
|
6133
|
-
}), !c.value && (e.selection ||
|
|
6139
|
+
}), !c.value && (e.selection || I.value.selection !== 0) && t.unshift({
|
|
6134
6140
|
type: "selection",
|
|
6135
6141
|
fixed: "left",
|
|
6136
6142
|
width: 60,
|
|
6137
6143
|
hide: !0,
|
|
6138
6144
|
show: !0,
|
|
6139
|
-
multiple: e.selection === 2 ||
|
|
6145
|
+
multiple: e.selection === 2 || I.value.selection === 2,
|
|
6140
6146
|
options: ["all", "none"]
|
|
6141
6147
|
});
|
|
6142
6148
|
let s = e.id || a.params.id;
|
|
6143
|
-
if (!c.value &&
|
|
6144
|
-
let e = H(
|
|
6149
|
+
if (!c.value && I.value.commonTime && t.push(...ve()), e.enableAction === !0 && N.value && N.value.length > 0) {
|
|
6150
|
+
let e = H(N.value);
|
|
6145
6151
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
6146
|
-
|
|
6147
|
-
}) :
|
|
6152
|
+
Ce(e, r);
|
|
6153
|
+
}) : Ce(t, r);
|
|
6148
6154
|
let n = {
|
|
6149
6155
|
title: () => o("Common.action"),
|
|
6150
6156
|
key: "action",
|
|
@@ -6154,12 +6160,12 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6154
6160
|
checked: !0,
|
|
6155
6161
|
show: !0,
|
|
6156
6162
|
hide: !0,
|
|
6157
|
-
width: Number(typeof
|
|
6163
|
+
width: Number(typeof I.value.actionWidth == "string" ? I.value.actionWidth.replace("px", "") : I.value.actionWidth),
|
|
6158
6164
|
render(t) {
|
|
6159
6165
|
return Wd({
|
|
6160
6166
|
buttons: e,
|
|
6161
6167
|
rowData: t,
|
|
6162
|
-
callback:
|
|
6168
|
+
callback: z,
|
|
6163
6169
|
tableId: s
|
|
6164
6170
|
});
|
|
6165
6171
|
}
|
|
@@ -6180,6 +6186,9 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6180
6186
|
hide: !0,
|
|
6181
6187
|
width: 40,
|
|
6182
6188
|
fixed: "left",
|
|
6189
|
+
filter: "default",
|
|
6190
|
+
filterOptionValue: null,
|
|
6191
|
+
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Re }, { default: () => o("Common.expand") }), f(L, { onClick: ze }, { default: () => o("Common.contract") })]),
|
|
6183
6192
|
renderExpand: (e) => f(Yp, {
|
|
6184
6193
|
data: i,
|
|
6185
6194
|
value: e
|
|
@@ -6189,13 +6198,13 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6189
6198
|
l.forEach((e) => {
|
|
6190
6199
|
e.show && (u += Number(e.width || 140));
|
|
6191
6200
|
}), C.value = l, ee.value = n, E.value = u;
|
|
6192
|
-
},
|
|
6201
|
+
}, Te = (e) => typeof e == "number" ? `${e}px` : e, Ee = () => {
|
|
6193
6202
|
if (e.height) {
|
|
6194
|
-
let t =
|
|
6195
|
-
|
|
6203
|
+
let t = Te(e.height);
|
|
6204
|
+
k.value = t, te.value = t;
|
|
6196
6205
|
return;
|
|
6197
6206
|
}
|
|
6198
|
-
},
|
|
6207
|
+
}, De = (t) => {
|
|
6199
6208
|
let n = e.id || a.params.id;
|
|
6200
6209
|
if (n) {
|
|
6201
6210
|
let e = 0;
|
|
@@ -6206,7 +6215,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6206
6215
|
data: JSON.stringify(t)
|
|
6207
6216
|
}).catch(() => null);
|
|
6208
6217
|
}
|
|
6209
|
-
}, { run:
|
|
6218
|
+
}, { run: Oe } = Tp(De), { run: ke } = Tp((e, t) => {
|
|
6210
6219
|
let n = [];
|
|
6211
6220
|
C.value.forEach((r) => {
|
|
6212
6221
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -6216,8 +6225,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6216
6225
|
fixed: r.fixed,
|
|
6217
6226
|
width: r.key === t ? Number(e.toFixed(0)) : r.width
|
|
6218
6227
|
});
|
|
6219
|
-
}),
|
|
6220
|
-
}),
|
|
6228
|
+
}), De(n);
|
|
6229
|
+
}), Ae = () => {
|
|
6221
6230
|
let e = [];
|
|
6222
6231
|
C.value.forEach((t) => {
|
|
6223
6232
|
t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
|
|
@@ -6227,8 +6236,8 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6227
6236
|
fixed: t.fixed,
|
|
6228
6237
|
width: t.width
|
|
6229
6238
|
});
|
|
6230
|
-
}),
|
|
6231
|
-
},
|
|
6239
|
+
}), Oe(e);
|
|
6240
|
+
}, je = (t, n, r) => {
|
|
6232
6241
|
let i, o = e.id || a.params.id;
|
|
6233
6242
|
i = e.formFetch ? e.formFetch({
|
|
6234
6243
|
tableId: o,
|
|
@@ -6237,27 +6246,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6237
6246
|
tableId: o,
|
|
6238
6247
|
...t
|
|
6239
6248
|
}), i.then(() => {
|
|
6240
|
-
|
|
6249
|
+
z(), n();
|
|
6241
6250
|
}).catch((e) => {
|
|
6242
6251
|
r(e);
|
|
6243
6252
|
});
|
|
6244
|
-
},
|
|
6245
|
-
v.value = "",
|
|
6253
|
+
}, Me = () => {
|
|
6254
|
+
v.value = "", M.value = [], N.value = [], P.value = [], F.value = {
|
|
6246
6255
|
fetch: null,
|
|
6247
6256
|
when_drawer_open: "",
|
|
6248
6257
|
when_before_save: ""
|
|
6249
|
-
},
|
|
6250
|
-
},
|
|
6258
|
+
}, I.value = Vp();
|
|
6259
|
+
}, Ne = (t) => {
|
|
6251
6260
|
let n = rt.parse(t.viewJson);
|
|
6252
|
-
v.value = t.tableTitle,
|
|
6261
|
+
v.value = t.tableTitle, M.value = Lp(n.table), N.value = Qd(e.actions || n.action);
|
|
6253
6262
|
let r = Qd(n.suffix || []);
|
|
6254
|
-
|
|
6263
|
+
P.value = r.filter((e) => e.main).map((e) => (Fe(e), e)), F.value = zp(n.trigger);
|
|
6255
6264
|
let i = Vp(e.options ?? n.option);
|
|
6256
|
-
t.tableTitle && i.title && fd(t.tableTitle),
|
|
6257
|
-
},
|
|
6258
|
-
_.value = !1,
|
|
6265
|
+
t.tableTitle && i.title && fd(t.tableTitle), I.value = i;
|
|
6266
|
+
}, Pe = async () => {
|
|
6267
|
+
_.value = !1, Me();
|
|
6259
6268
|
let t = e.id || a.params.id;
|
|
6260
|
-
if (
|
|
6269
|
+
if (O.value = {
|
|
6261
6270
|
params: [],
|
|
6262
6271
|
query: {
|
|
6263
6272
|
page: 1,
|
|
@@ -6265,17 +6274,17 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6265
6274
|
pageSize: e.pageSize || 30
|
|
6266
6275
|
}
|
|
6267
6276
|
}, T.value = [], e.ruleFetch) try {
|
|
6268
|
-
|
|
6277
|
+
A.value = await e.ruleFetch(t);
|
|
6269
6278
|
} catch {
|
|
6270
|
-
ne.value = o("Notice.network"),
|
|
6279
|
+
ne.value = o("Notice.network"), re.value = !0;
|
|
6271
6280
|
return;
|
|
6272
6281
|
}
|
|
6273
|
-
|
|
6274
|
-
|
|
6282
|
+
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) => {
|
|
6283
|
+
Ne(e), await we();
|
|
6275
6284
|
}).catch((e) => {
|
|
6276
|
-
ne.value = e?.message || o("Notice.network"),
|
|
6285
|
+
ne.value = e?.message || o("Notice.network"), re.value = !0;
|
|
6277
6286
|
});
|
|
6278
|
-
},
|
|
6287
|
+
}, Fe = (e) => {
|
|
6279
6288
|
if (e.type !== "group" && e.optionsType) {
|
|
6280
6289
|
let t = H(e.onClick);
|
|
6281
6290
|
e.onClick = () => {
|
|
@@ -6297,7 +6306,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6297
6306
|
if (t && typeof t == "string") {
|
|
6298
6307
|
try {
|
|
6299
6308
|
let e = Function("POST", "fnNotification", t);
|
|
6300
|
-
await e(Z, s, e),
|
|
6309
|
+
await e(Z, s, e), z();
|
|
6301
6310
|
} catch (e) {
|
|
6302
6311
|
q(e);
|
|
6303
6312
|
}
|
|
@@ -6305,36 +6314,52 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6305
6314
|
}
|
|
6306
6315
|
};
|
|
6307
6316
|
}
|
|
6317
|
+
}, Ie = () => {
|
|
6318
|
+
if (g.value) return;
|
|
6319
|
+
g.value = !0;
|
|
6320
|
+
let t = e.id || a.params.id;
|
|
6321
|
+
t && (od(`tables_filter_${t}`), Ld({
|
|
6322
|
+
table_id: t,
|
|
6323
|
+
data: null
|
|
6324
|
+
}).catch(() => null).finally(() => {
|
|
6325
|
+
we(), g.value = !1;
|
|
6326
|
+
}));
|
|
6327
|
+
}, Le = (e, t, n) => {
|
|
6328
|
+
ke(e, n.key);
|
|
6329
|
+
}, Re = () => {
|
|
6330
|
+
D.value = T.value.map((e) => e.id);
|
|
6331
|
+
}, ze = () => {
|
|
6332
|
+
D.value = [];
|
|
6308
6333
|
};
|
|
6309
6334
|
return r({
|
|
6310
|
-
rebuild:
|
|
6311
|
-
init:
|
|
6312
|
-
nextPage:
|
|
6335
|
+
rebuild: Pe,
|
|
6336
|
+
init: z,
|
|
6337
|
+
nextPage: fe
|
|
6313
6338
|
}), y(async () => {
|
|
6314
|
-
await
|
|
6339
|
+
await Pe(), h(() => {
|
|
6315
6340
|
u.value?.scrollTo({
|
|
6316
6341
|
left: 0,
|
|
6317
6342
|
right: 0
|
|
6318
6343
|
});
|
|
6319
6344
|
});
|
|
6320
6345
|
}), j(() => C.value, (e) => {
|
|
6321
|
-
|
|
6346
|
+
_e(e);
|
|
6322
6347
|
}, { deep: !0 }), j(() => e.height, () => {
|
|
6323
|
-
|
|
6348
|
+
Ee();
|
|
6324
6349
|
}), j([() => a.params.id, () => e.id], async () => {
|
|
6325
|
-
ld(), await
|
|
6350
|
+
ld(), await Pe();
|
|
6326
6351
|
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
6327
|
-
let t = e || [], n =
|
|
6328
|
-
|
|
6352
|
+
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6353
|
+
ie.value = t, R.value = n;
|
|
6329
6354
|
}, { deep: !0 }), {
|
|
6330
6355
|
loading: g,
|
|
6331
|
-
minH:
|
|
6332
|
-
maxH:
|
|
6356
|
+
minH: k,
|
|
6357
|
+
maxH: te,
|
|
6333
6358
|
drawerRef: d,
|
|
6334
|
-
tableOption:
|
|
6359
|
+
tableOption: I,
|
|
6335
6360
|
tableCols: x,
|
|
6336
6361
|
tableData: T,
|
|
6337
|
-
tableQueries:
|
|
6362
|
+
tableQueries: O,
|
|
6338
6363
|
searchData: ee,
|
|
6339
6364
|
filterColumns: C,
|
|
6340
6365
|
isSlotHeader: m,
|
|
@@ -6342,40 +6367,32 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6342
6367
|
dynamicLoading: _,
|
|
6343
6368
|
spinMsg: ne,
|
|
6344
6369
|
tableScrollX: E,
|
|
6345
|
-
suffixes:
|
|
6346
|
-
spinError:
|
|
6370
|
+
suffixes: P,
|
|
6371
|
+
spinError: re,
|
|
6347
6372
|
isMobile: c,
|
|
6348
6373
|
mRef: l,
|
|
6349
|
-
checkRowKeys:
|
|
6374
|
+
checkRowKeys: ie,
|
|
6350
6375
|
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
|
-
}
|
|
6376
|
+
rowKey: oe,
|
|
6377
|
+
pageChange: de,
|
|
6378
|
+
pageSizeChange: pe,
|
|
6379
|
+
pageSorter: me,
|
|
6380
|
+
showChange: ge,
|
|
6381
|
+
submit: B,
|
|
6382
|
+
handleAdd: he,
|
|
6383
|
+
handleColumnChange: Ae,
|
|
6384
|
+
handleCheckRowKeys: ce,
|
|
6385
|
+
handleExpandedRowKeys: le,
|
|
6386
|
+
checkRole: ye,
|
|
6387
|
+
rebuild: Pe,
|
|
6388
|
+
summaryFn: ue,
|
|
6389
|
+
handleMobileCheckRowKeys: se,
|
|
6390
|
+
isTypeofNumber: Te,
|
|
6391
|
+
resetFilter: Ie,
|
|
6392
|
+
handleColumnResize: Le,
|
|
6393
|
+
expandedRowKeys: D,
|
|
6394
|
+
handleExpandAll: Re,
|
|
6395
|
+
handleContractAll: ze
|
|
6379
6396
|
};
|
|
6380
6397
|
}
|
|
6381
6398
|
}), 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 +6403,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6386
6403
|
class: "uz-transform-fade-in"
|
|
6387
6404
|
}, rm = { class: "uz-com-title" }, im = ["data-index"];
|
|
6388
6405
|
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"),
|
|
6406
|
+
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), 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
6407
|
return x(), i("div", {
|
|
6391
6408
|
class: "uz-table",
|
|
6392
6409
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
@@ -6424,12 +6441,12 @@ function am(t, s, u, d, f, p) {
|
|
|
6424
6441
|
width: "100%",
|
|
6425
6442
|
size: "medium"
|
|
6426
6443
|
})], 512), [[A, !t.dynamicLoading]]),
|
|
6427
|
-
P(l(
|
|
6444
|
+
P(l(I, {
|
|
6428
6445
|
show: t.spinError,
|
|
6429
6446
|
class: "uz-table-n-spin"
|
|
6430
6447
|
}, {
|
|
6431
6448
|
description: N(() => [
|
|
6432
|
-
a("div", null,
|
|
6449
|
+
a("div", null, k(t.spinMsg), 1),
|
|
6433
6450
|
s[2] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6434
6451
|
l(h, {
|
|
6435
6452
|
type: "primary",
|
|
@@ -6461,7 +6478,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6461
6478
|
default: N(() => [l(v)]),
|
|
6462
6479
|
_: 1
|
|
6463
6480
|
})]),
|
|
6464
|
-
default: N(() => [c(" " +
|
|
6481
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6465
6482
|
_: 1
|
|
6466
6483
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6467
6484
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6482,7 +6499,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6482
6499
|
key: "0"
|
|
6483
6500
|
} : {
|
|
6484
6501
|
name: "header",
|
|
6485
|
-
fn: N(() => [a("div", em,
|
|
6502
|
+
fn: N(() => [a("div", em, k(t.title), 1)]),
|
|
6486
6503
|
key: "1"
|
|
6487
6504
|
}]), 1032, [
|
|
6488
6505
|
"data",
|
|
@@ -6529,10 +6546,10 @@ function am(t, s, u, d, f, p) {
|
|
|
6529
6546
|
default: N(() => [l(w)]),
|
|
6530
6547
|
_: 1
|
|
6531
6548
|
})]),
|
|
6532
|
-
default: N(() => [c(" " +
|
|
6549
|
+
default: N(() => [c(" " + k(t.$t("Common.columns")), 1)]),
|
|
6533
6550
|
_: 1
|
|
6534
6551
|
})]),
|
|
6535
|
-
default: N(() => [l(
|
|
6552
|
+
default: N(() => [l(te, {
|
|
6536
6553
|
modelValue: t.filterColumns,
|
|
6537
6554
|
"onUpdate:modelValue": s[0] ||= (e) => t.filterColumns = e,
|
|
6538
6555
|
animation: 200,
|
|
@@ -6547,19 +6564,19 @@ function am(t, s, u, d, f, p) {
|
|
|
6547
6564
|
key: e.key,
|
|
6548
6565
|
class: "uz-table-sort",
|
|
6549
6566
|
"data-index": n
|
|
6550
|
-
}, [l(
|
|
6567
|
+
}, [l(O, {
|
|
6551
6568
|
checked: e.show,
|
|
6552
6569
|
"on-update:checked": () => t.showChange(e),
|
|
6553
6570
|
size: "large"
|
|
6554
6571
|
}, {
|
|
6555
|
-
default: N(() => [c(
|
|
6572
|
+
default: N(() => [c(k(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
6556
6573
|
_: 2
|
|
6557
6574
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
6558
6575
|
quaternary: "",
|
|
6559
6576
|
class: "uz-drag-handle"
|
|
6560
6577
|
}, {
|
|
6561
6578
|
icon: N(() => [l(y, { size: "18" }, {
|
|
6562
|
-
default: N(() => [l(
|
|
6579
|
+
default: N(() => [l(ee)]),
|
|
6563
6580
|
_: 1
|
|
6564
6581
|
})]),
|
|
6565
6582
|
_: 1
|
|
@@ -6569,7 +6586,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6569
6586
|
loading: t.loading,
|
|
6570
6587
|
onClick: t.resetFilter
|
|
6571
6588
|
}, {
|
|
6572
|
-
default: N(() => [c(
|
|
6589
|
+
default: N(() => [c(k(t.$t("Common.reset")), 1)]),
|
|
6573
6590
|
_: 1
|
|
6574
6591
|
}, 8, ["loading", "onClick"])]),
|
|
6575
6592
|
_: 1
|
|
@@ -6586,7 +6603,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6586
6603
|
default: N(() => [l(v)]),
|
|
6587
6604
|
_: 1
|
|
6588
6605
|
})]),
|
|
6589
|
-
default: N(() => [c(" " +
|
|
6606
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6590
6607
|
_: 1
|
|
6591
6608
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6592
6609
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6607,7 +6624,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6607
6624
|
key: "0"
|
|
6608
6625
|
} : {
|
|
6609
6626
|
name: "header",
|
|
6610
|
-
fn: N(() => [a("div", rm,
|
|
6627
|
+
fn: N(() => [a("div", rm, k(t.title), 1)]),
|
|
6611
6628
|
key: "1"
|
|
6612
6629
|
}]), 1032, [
|
|
6613
6630
|
"data",
|
|
@@ -6640,7 +6657,9 @@ function am(t, s, u, d, f, p) {
|
|
|
6640
6657
|
size: 8,
|
|
6641
6658
|
trigger: "hover"
|
|
6642
6659
|
},
|
|
6660
|
+
"expanded-row-keys": t.expandedRowKeys,
|
|
6643
6661
|
"onUpdate:checkedRowKeys": t.handleCheckRowKeys,
|
|
6662
|
+
"onUpdate:expandedRowKeys": t.handleExpandedRowKeys,
|
|
6644
6663
|
"sticky-expanded-rows": "",
|
|
6645
6664
|
remote: ""
|
|
6646
6665
|
}, null, 8, [
|
|
@@ -6660,21 +6679,23 @@ function am(t, s, u, d, f, p) {
|
|
|
6660
6679
|
"checked-row-keys",
|
|
6661
6680
|
"summary",
|
|
6662
6681
|
"on-unstable-column-resize",
|
|
6663
|
-
"
|
|
6682
|
+
"expanded-row-keys",
|
|
6683
|
+
"onUpdate:checkedRowKeys",
|
|
6684
|
+
"onUpdate:expandedRowKeys"
|
|
6664
6685
|
])]))]),
|
|
6665
6686
|
_: 3
|
|
6666
6687
|
}, 8, ["show"]), [[A, t.dynamicLoading]]),
|
|
6667
|
-
l(
|
|
6688
|
+
l(L, { ref: "drawerRef" }, null, 512)
|
|
6668
6689
|
], 4);
|
|
6669
6690
|
}
|
|
6670
6691
|
var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
6671
6692
|
name: "UzTableChild",
|
|
6672
6693
|
components: {
|
|
6673
6694
|
NSpin: Ne,
|
|
6674
|
-
NButton:
|
|
6675
|
-
NIcon:
|
|
6676
|
-
NDataTable:
|
|
6677
|
-
NForm:
|
|
6695
|
+
NButton: L,
|
|
6696
|
+
NIcon: B,
|
|
6697
|
+
NDataTable: se,
|
|
6698
|
+
NForm: me,
|
|
6678
6699
|
NDivider: le,
|
|
6679
6700
|
Plus: dc,
|
|
6680
6701
|
GridDots: ts
|
|
@@ -6699,7 +6720,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6699
6720
|
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
6721
|
let { formDefaultValue: r, fillingDefaultArray: i } = await Hp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6701
6722
|
return C.value = r, i;
|
|
6702
|
-
},
|
|
6723
|
+
}, O = async (t) => {
|
|
6703
6724
|
if (_.value) return;
|
|
6704
6725
|
_.value = !0;
|
|
6705
6726
|
let n = await D(t), r = H(t).map((e, t) => ({
|
|
@@ -6726,7 +6747,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6726
6747
|
} else h(() => {
|
|
6727
6748
|
F();
|
|
6728
6749
|
});
|
|
6729
|
-
},
|
|
6750
|
+
}, ee = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6730
6751
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6731
6752
|
let { tableColumns: r, tableWidth: i } = await Up(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6732
6753
|
r.unshift({
|
|
@@ -6747,7 +6768,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6747
6768
|
hide: !0,
|
|
6748
6769
|
show: !0,
|
|
6749
6770
|
render() {
|
|
6750
|
-
return f("div", { class: "flex justify-center" }, f(
|
|
6771
|
+
return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(ts) }));
|
|
6751
6772
|
}
|
|
6752
6773
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
6753
6774
|
title: () => l("Common.action"),
|
|
@@ -6783,7 +6804,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6783
6804
|
r.forEach((e) => {
|
|
6784
6805
|
e.show && c.push(e);
|
|
6785
6806
|
}), b.value = c, s += 180, E.value = s, g.value = !1;
|
|
6786
|
-
},
|
|
6807
|
+
}, te = (t) => {
|
|
6787
6808
|
if (e.item.params.summary) {
|
|
6788
6809
|
if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
|
|
6789
6810
|
try {
|
|
@@ -6865,19 +6886,19 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6865
6886
|
validate: P,
|
|
6866
6887
|
restoreValidation: N
|
|
6867
6888
|
}), j(() => e.item.params.columns, (e, t) => {
|
|
6868
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
6889
|
+
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6869
6890
|
}, {
|
|
6870
6891
|
deep: !0,
|
|
6871
6892
|
immediate: !0
|
|
6872
6893
|
}), j(() => e.value, (e) => {
|
|
6873
|
-
JSON.stringify(e) !== JSON.stringify(x.value.child) &&
|
|
6894
|
+
JSON.stringify(e) !== JSON.stringify(x.value.child) && O(e);
|
|
6874
6895
|
}, {
|
|
6875
6896
|
deep: !0,
|
|
6876
6897
|
immediate: !0
|
|
6877
6898
|
}), j(() => x.value.child, (t) => {
|
|
6878
6899
|
e.status !== 2 && n("update:value", t);
|
|
6879
6900
|
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6880
|
-
await
|
|
6901
|
+
await k(void 0, !0);
|
|
6881
6902
|
}), {
|
|
6882
6903
|
spin: g,
|
|
6883
6904
|
loading: _,
|
|
@@ -6885,14 +6906,14 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6885
6906
|
tableRef: u,
|
|
6886
6907
|
columns: b,
|
|
6887
6908
|
tableData: x,
|
|
6888
|
-
summaryData:
|
|
6909
|
+
summaryData: te,
|
|
6889
6910
|
message: S,
|
|
6890
6911
|
tableScrollX: E,
|
|
6891
6912
|
tableShow: y,
|
|
6892
6913
|
suffixes: T,
|
|
6893
6914
|
onAdd: A,
|
|
6894
6915
|
onAddFormData: M,
|
|
6895
|
-
rowClassName:
|
|
6916
|
+
rowClassName: ee,
|
|
6896
6917
|
doSuffixClick: (e) => {
|
|
6897
6918
|
i({
|
|
6898
6919
|
open: e.optionsType,
|
|
@@ -6916,14 +6937,14 @@ function pm(t, s, u, d, f, p) {
|
|
|
6916
6937
|
class: "uz-flex-1 uz-w-full"
|
|
6917
6938
|
}, {
|
|
6918
6939
|
default: N(() => [
|
|
6919
|
-
a("div", cm, [a("div", lm, [c(
|
|
6940
|
+
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
6941
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6921
6942
|
key: e.key,
|
|
6922
6943
|
type: e.color,
|
|
6923
6944
|
secondary: "",
|
|
6924
6945
|
onClick: (n) => t.doSuffixClick(e)
|
|
6925
6946
|
}, o({
|
|
6926
|
-
default: N(() => [c(" " +
|
|
6947
|
+
default: N(() => [c(" " + k(e.buttonText), 1)]),
|
|
6927
6948
|
_: 2
|
|
6928
6949
|
}, [e.icon ? {
|
|
6929
6950
|
name: "icon",
|
|
@@ -7025,7 +7046,7 @@ function pm(t, s, u, d, f, p) {
|
|
|
7025
7046
|
}
|
|
7026
7047
|
var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
7027
7048
|
name: "UzTableQuestChild",
|
|
7028
|
-
components: { NDataTable:
|
|
7049
|
+
components: { NDataTable: se },
|
|
7029
7050
|
props: {
|
|
7030
7051
|
formValue: {
|
|
7031
7052
|
type: Object,
|
|
@@ -7129,7 +7150,7 @@ var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
|
7129
7150
|
function ym(e, t, n, r, o, s) {
|
|
7130
7151
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
7131
7152
|
return x(), i("div", gm, [
|
|
7132
|
-
a("div", _m, [a("div", vm,
|
|
7153
|
+
a("div", _m, [a("div", vm, k(e.item.label), 1)]),
|
|
7133
7154
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
7134
7155
|
l(c, {
|
|
7135
7156
|
columns: e.columns,
|
|
@@ -7157,13 +7178,13 @@ function ym(e, t, n, r, o, s) {
|
|
|
7157
7178
|
var bm = /*#__PURE__*/ U(hm, [["render", ym]]), xm = d({
|
|
7158
7179
|
name: "UzTableDrawer",
|
|
7159
7180
|
components: {
|
|
7160
|
-
NButton:
|
|
7161
|
-
NDrawerContent:
|
|
7181
|
+
NButton: L,
|
|
7182
|
+
NDrawerContent: z,
|
|
7162
7183
|
NDrawer: ue,
|
|
7163
7184
|
NSkeleton: je,
|
|
7164
7185
|
NSpin: Ne,
|
|
7165
|
-
NPopover:
|
|
7166
|
-
NModal:
|
|
7186
|
+
NPopover: De,
|
|
7187
|
+
NModal: we
|
|
7167
7188
|
},
|
|
7168
7189
|
emits: ["update:show", "on-submit"],
|
|
7169
7190
|
setup(e, { emit: n, expose: r }) {
|
|
@@ -7343,7 +7364,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7343
7364
|
closable: ""
|
|
7344
7365
|
}, o({
|
|
7345
7366
|
default: N(() => [l(_, { show: t.spinError }, {
|
|
7346
|
-
description: N(() => [c(
|
|
7367
|
+
description: N(() => [c(k(t.$t("Notice.error")), 1)]),
|
|
7347
7368
|
default: N(() => [l(g, {
|
|
7348
7369
|
value: t.spinShow,
|
|
7349
7370
|
"onUpdate:value": s[0] ||= (e) => t.spinShow = e,
|
|
@@ -7419,7 +7440,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7419
7440
|
class: "uz-drawer-button",
|
|
7420
7441
|
onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
7421
7442
|
}, {
|
|
7422
|
-
default: N(() => [c(
|
|
7443
|
+
default: N(() => [c(k(t.$t("OCR.ocr")), 1)]),
|
|
7423
7444
|
_: 1
|
|
7424
7445
|
}, 8, ["loading"]), a("div", Tm, [
|
|
7425
7446
|
l(v, {
|
|
@@ -7428,7 +7449,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7428
7449
|
secondary: "",
|
|
7429
7450
|
onClick: t.drawerCheck
|
|
7430
7451
|
}, {
|
|
7431
|
-
default: N(() => [c(
|
|
7452
|
+
default: N(() => [c(k(t.$t("Common.cancel")), 1)]),
|
|
7432
7453
|
_: 1
|
|
7433
7454
|
}, 8, ["loading", "onClick"]),
|
|
7434
7455
|
t.formStatus === 0 ? (x(), n(y, {
|
|
@@ -7442,7 +7463,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7442
7463
|
secondary: "",
|
|
7443
7464
|
onClick: t.doCacheToStore
|
|
7444
7465
|
}, {
|
|
7445
|
-
default: N(() => [c(
|
|
7466
|
+
default: N(() => [c(k(t.$t("Common.cache")), 1)]),
|
|
7446
7467
|
_: 1
|
|
7447
7468
|
}, 8, ["loading", "onClick"])]),
|
|
7448
7469
|
default: N(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
|
|
@@ -7454,7 +7475,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7454
7475
|
type: "primary",
|
|
7455
7476
|
onClick: t.drawerSubmit
|
|
7456
7477
|
}, {
|
|
7457
|
-
default: N(() => [c(
|
|
7478
|
+
default: N(() => [c(k(t.$t("Common.apply")), 1)]),
|
|
7458
7479
|
_: 1
|
|
7459
7480
|
}, 8, ["loading", "onClick"])
|
|
7460
7481
|
])])]),
|
|
@@ -7516,14 +7537,14 @@ function jm(t, o, s, c, l, u) {
|
|
|
7516
7537
|
key: o.key,
|
|
7517
7538
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7518
7539
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
7519
|
-
}, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(
|
|
7540
|
+
}, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(ee(() => {
|
|
7520
7541
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7521
7542
|
}), {
|
|
7522
7543
|
key: 0,
|
|
7523
7544
|
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,
|
|
7545
|
+
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(ee(() => {
|
|
7525
7546
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7526
|
-
}), { key: 0 })) : (x(), i("div", Am,
|
|
7547
|
+
}), { key: 0 })) : (x(), i("div", Am, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7527
7548
|
}
|
|
7528
7549
|
//#endregion
|
|
7529
7550
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
@@ -7532,8 +7553,8 @@ var Mm = d({
|
|
|
7532
7553
|
components: {
|
|
7533
7554
|
NCheckbox: ie,
|
|
7534
7555
|
NRadio: Oe,
|
|
7535
|
-
NPagination:
|
|
7536
|
-
NCheckboxGroup:
|
|
7556
|
+
NPagination: Te,
|
|
7557
|
+
NCheckboxGroup: R,
|
|
7537
7558
|
NRadioGroup: ke,
|
|
7538
7559
|
UzTableMobileList: /* @__PURE__ */ U(Om, [["render", jm], ["__scopeId", "data-v-84c394fe"]])
|
|
7539
7560
|
},
|
|
@@ -7768,10 +7789,10 @@ var Wm = d({
|
|
|
7768
7789
|
components: {
|
|
7769
7790
|
NTabs: Ie,
|
|
7770
7791
|
NTabPane: Fe,
|
|
7771
|
-
NButton:
|
|
7772
|
-
NIcon:
|
|
7773
|
-
NPopconfirm:
|
|
7774
|
-
NFlex:
|
|
7792
|
+
NButton: L,
|
|
7793
|
+
NIcon: B,
|
|
7794
|
+
NPopconfirm: Ee,
|
|
7795
|
+
NFlex: pe,
|
|
7775
7796
|
Trash: xl
|
|
7776
7797
|
},
|
|
7777
7798
|
props: { option: {
|
|
@@ -7889,7 +7910,7 @@ var rh = {
|
|
|
7889
7910
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7890
7911
|
}, ih = V, ah = d({
|
|
7891
7912
|
name: "UzWrap",
|
|
7892
|
-
components: { NConfigProvider:
|
|
7913
|
+
components: { NConfigProvider: oe },
|
|
7893
7914
|
setup() {
|
|
7894
7915
|
return {
|
|
7895
7916
|
zhCN: We,
|
|
@@ -8013,7 +8034,7 @@ function uh(e, t) {
|
|
|
8013
8034
|
var dh = d({
|
|
8014
8035
|
name: "UzOcr",
|
|
8015
8036
|
components: {
|
|
8016
|
-
NButton:
|
|
8037
|
+
NButton: L,
|
|
8017
8038
|
NUpload: ze,
|
|
8018
8039
|
NSelect: Ae,
|
|
8019
8040
|
NSwitch: Pe,
|
|
@@ -8178,7 +8199,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8178
8199
|
src: e.processedImage,
|
|
8179
8200
|
alt: "Processed Preview",
|
|
8180
8201
|
class: "uz-ocr-preview-img"
|
|
8181
|
-
}, null, 8, vh), e.preEnabled && e.preBinarize ? (x(), i("div", yh,
|
|
8202
|
+
}, null, 8, vh), e.preEnabled && e.preBinarize ? (x(), i("div", yh, k(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + k(e.thresholdUsed), 1)) : r("", !0)])]),
|
|
8182
8203
|
_: 1
|
|
8183
8204
|
}, 8, ["tab"]), l(p, {
|
|
8184
8205
|
name: "raw",
|
|
@@ -8210,7 +8231,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8210
8231
|
loading: e.ocrLoading,
|
|
8211
8232
|
onClick: e.handleManualOcr
|
|
8212
8233
|
}, {
|
|
8213
|
-
default: N(() => [c(
|
|
8234
|
+
default: N(() => [c(k(e.t("OCR.reRecognize")), 1)]),
|
|
8214
8235
|
_: 1
|
|
8215
8236
|
}, 8, ["loading", "onClick"])]),
|
|
8216
8237
|
_: 1
|
|
@@ -8230,25 +8251,25 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8230
8251
|
height: "40",
|
|
8231
8252
|
fill: "currentColor"
|
|
8232
8253
|
}, [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,
|
|
8254
|
+
a("div", hh, k(e.t("OCR.scan")), 1),
|
|
8234
8255
|
t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8235
8256
|
])]),
|
|
8236
8257
|
_: 1
|
|
8237
|
-
}, 8, ["on-before-upload"])), a("div", Sh, [a("div", Ch, [a("span", wh,
|
|
8258
|
+
}, 8, ["on-before-upload"])), a("div", Sh, [a("div", Ch, [a("span", wh, k(e.t("OCR.preprocess")), 1), l(_, {
|
|
8238
8259
|
value: e.preEnabled,
|
|
8239
8260
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8240
8261
|
size: "small"
|
|
8241
|
-
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Th, [a("div", Eh, [a("span", Dh,
|
|
8262
|
+
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", Th, [a("div", Eh, [a("span", Dh, k(e.t("OCR.scale")), 1), l(v, {
|
|
8242
8263
|
value: e.preScale,
|
|
8243
8264
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8244
8265
|
options: e.scaleOptions,
|
|
8245
8266
|
size: "small",
|
|
8246
8267
|
class: "uz-settings-select"
|
|
8247
|
-
}, null, 8, ["value", "options"])]), a("div", Oh, [a("span", kh,
|
|
8268
|
+
}, null, 8, ["value", "options"])]), a("div", Oh, [a("span", kh, k(e.t("OCR.contrast")), 1), l(_, {
|
|
8248
8269
|
value: e.preContrast,
|
|
8249
8270
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8250
8271
|
size: "small"
|
|
8251
|
-
}, null, 8, ["value"])])])) : r("", !0)])]), a("div", Ah, [a("div", jh, [a("span", Mh, "识别结果 (" +
|
|
8272
|
+
}, 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
8273
|
}
|
|
8253
8274
|
var Lh = /*#__PURE__*/ U(dh, [["render", Ih], ["__scopeId", "data-v-c7224ff5"]]), Rh = /* @__PURE__ */ ut({
|
|
8254
8275
|
AccessPoint: () => ht,
|
|
@@ -8529,7 +8550,7 @@ function qh(e, t, n) {
|
|
|
8529
8550
|
}
|
|
8530
8551
|
//#endregion
|
|
8531
8552
|
//#region package.json
|
|
8532
|
-
var Jh = "0.1.
|
|
8553
|
+
var Jh = "0.1.71", Yh;
|
|
8533
8554
|
async function Xh() {
|
|
8534
8555
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8535
8556
|
method: "HEAD",
|