@unizhen/ui 0.1.11 → 0.1.13
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 +269 -265
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as re, openBlock as s, createElementBlock as d, createStaticVNode as A, createElementVNode as r, ref as M, watch as ce, nextTick as be, h as ee, reactive as At, resolveComponent as x, createBlock as B, withCtx as m, toDisplayString as P, createVNode as b, computed as Se, normalizeStyle as ye, inject as De, normalizeClass as ie, createSlots as Ce, createTextVNode as E, Fragment as se, renderList as we, provide as Tt, resolveDirective as Dn, withDirectives as Ge, createCommentVNode as
|
|
1
|
+
import { defineComponent as re, openBlock as s, createElementBlock as d, createStaticVNode as A, createElementVNode as r, ref as M, watch as ce, nextTick as be, h as ee, reactive as At, resolveComponent as x, createBlock as B, withCtx as m, toDisplayString as P, createVNode as b, computed as Se, normalizeStyle as ye, inject as De, normalizeClass as ie, createSlots as Ce, createTextVNode as E, Fragment as se, renderList as we, provide as Tt, resolveDirective as Dn, withDirectives as Ge, createCommentVNode as G, onMounted as Ee, mergeProps as Ft, withModifiers as at, watchEffect as Tn, onBeforeUnmount as Ot, withKeys as Va, renderSlot as ke, markRaw as Ua, defineAsyncComponent as ja, onUnmounted as Fn, vShow as Bt, resolveDynamicComponent as mn } from "vue";
|
|
2
2
|
import { createDiscreteApi as Aa, NPopover as Ze, NFlex as Bn, NButton as ve, NPopconfirm as Rt, NTooltip as In, NIcon as ge, NDropdown as Oa, NCascader as Ra, NCheckboxGroup as Vn, NCheckbox as Pt, NColorPicker as Pa, NSwitch as Ha, NTimePicker as Ea, NDatePicker as qa, NInputNumber as La, NSelect as Un, NInput as Ka, NDivider as Ht, NFormItem as Et, NForm as qt, NSpin as it, NInputGroup as Lt, NUploadDragger as Wa, NImage as jn, NUpload as Ga, useNotification as Kt, NImageGroup as Qa, NModal as Ja, NInputGroupLabel as An, NGridItem as On, NGrid as Rn, NButtonGroup as Xa, NDrawerContent as Pn, NDrawer as Hn, NEllipsis as Ya, NSkeleton as En, NDataTable as Wt, NRadioGroup as Za, NPagination as es, NRadio as ts, NTabPane as ns, NTabs as os, darkTheme as he, NConfigProvider as rs, dateZhCN as as, zhCN as ss } from "naive-ui";
|
|
3
3
|
import Gt from "axios";
|
|
4
4
|
import { createRouter as ls, createWebHistory as is, useRouter as cs, useRoute as ct } from "vue-router";
|
|
5
5
|
import { createI18n as us, useI18n as Qt } from "vue-i18n";
|
|
6
|
-
import { cloneDeep as
|
|
6
|
+
import { cloneDeep as Q, compact as ds, debounce as qn, throttle as ps } from "lodash-es";
|
|
7
7
|
import Be from "dayjs";
|
|
8
8
|
import Ln from "vuedraggable";
|
|
9
9
|
import je from "json5";
|
|
@@ -2855,8 +2855,8 @@ const mt = "/apiserver/", kn = () => {
|
|
|
2855
2855
|
return e.forEach((a) => {
|
|
2856
2856
|
if (a.type === "group") {
|
|
2857
2857
|
const p = [];
|
|
2858
|
-
a.children && a.children.length > 0 && a.children.forEach((
|
|
2859
|
-
delete
|
|
2858
|
+
a.children && a.children.length > 0 && a.children.forEach((_, z) => {
|
|
2859
|
+
delete _.tooltipText, p.push(bn(_, t, n, c, l)), z < a.children.length - 1 && p.push(
|
|
2860
2860
|
ee(
|
|
2861
2861
|
"div",
|
|
2862
2862
|
{
|
|
@@ -3072,8 +3072,8 @@ const mt = "/apiserver/", kn = () => {
|
|
|
3072
3072
|
}
|
|
3073
3073
|
});
|
|
3074
3074
|
function Xf(e, t, n, c, l, i) {
|
|
3075
|
-
const a = x("ArrowNarrowLeft"), p = x("NIcon"),
|
|
3076
|
-
return s(), B(
|
|
3075
|
+
const a = x("ArrowNarrowLeft"), p = x("NIcon"), _ = x("NButton");
|
|
3076
|
+
return s(), B(_, {
|
|
3077
3077
|
quaternary: "",
|
|
3078
3078
|
onClick: e.back
|
|
3079
3079
|
}, {
|
|
@@ -3471,7 +3471,7 @@ const xh = /* @__PURE__ */ w(nh, [["render", bh]]), _h = re({
|
|
|
3471
3471
|
}
|
|
3472
3472
|
},
|
|
3473
3473
|
handleFocus: (g) => {
|
|
3474
|
-
const S =
|
|
3474
|
+
const S = Q(e.item.params.options);
|
|
3475
3475
|
if (e.formValue && e.formValue[g]) {
|
|
3476
3476
|
const F = e.formValue[g].toLocaleLowerCase();
|
|
3477
3477
|
S.forEach((K) => {
|
|
@@ -3505,7 +3505,7 @@ const xh = /* @__PURE__ */ w(nh, [["render", bh]]), _h = re({
|
|
|
3505
3505
|
}
|
|
3506
3506
|
}), $h = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3507
3507
|
function Ch(e, t, n, c, l, i) {
|
|
3508
|
-
const a = x("NInput"), p = x("NDropdown"),
|
|
3508
|
+
const a = x("NInput"), p = x("NDropdown"), _ = x("NInputNumber"), z = x("NDatePicker"), D = x("NSelect"), N = x("NCascader"), v = x("NColorPicker"), o = x("NCheckbox"), h = x("NCheckboxGroup"), f = x("NTimePicker"), u = x("UzFormItemTimesPicker"), g = x("NSwitch"), S = x("UzFormItemUpload");
|
|
3509
3509
|
return e.item.input === "input" ? (s(), B(a, {
|
|
3510
3510
|
key: 0,
|
|
3511
3511
|
value: e.formValue[e.item.key],
|
|
@@ -3591,7 +3591,7 @@ function Ch(e, t, n, c, l, i) {
|
|
|
3591
3591
|
]), 1032, ["value", "type", "placeholder", "disabled", "readonly", "clearable", "minlength", "maxlength", "rows", "show-count", "class"])
|
|
3592
3592
|
]),
|
|
3593
3593
|
_: 1
|
|
3594
|
-
}, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (s(), B(
|
|
3594
|
+
}, 8, ["show", "options", "render-label"])) : e.item.input === "number" ? (s(), B(_, {
|
|
3595
3595
|
key: 3,
|
|
3596
3596
|
value: e.formValue[e.item.key],
|
|
3597
3597
|
placeholder: e.showPlaceholder(e.item),
|
|
@@ -3680,7 +3680,7 @@ function Ch(e, t, n, c, l, i) {
|
|
|
3680
3680
|
disabled: e.checkDisabled(),
|
|
3681
3681
|
show: e.checkReadonlyShow(),
|
|
3682
3682
|
clearable: e.checkClearable(),
|
|
3683
|
-
filterable: e.
|
|
3683
|
+
filterable: e.item.params.filterable,
|
|
3684
3684
|
tag: e.item.params.tag,
|
|
3685
3685
|
multiple: e.item.params.multiple,
|
|
3686
3686
|
"fallback-option": e.selectFallback,
|
|
@@ -3720,10 +3720,10 @@ function Ch(e, t, n, c, l, i) {
|
|
|
3720
3720
|
const Z = e.item;
|
|
3721
3721
|
let ne = y, T = y;
|
|
3722
3722
|
if (Z.params.multiple) {
|
|
3723
|
-
let
|
|
3724
|
-
|
|
3723
|
+
let $ = y.filter((I) => I);
|
|
3724
|
+
$.length === 0 ? (ne = [], T = []) : (ne = $, T = $);
|
|
3725
3725
|
}
|
|
3726
|
-
e.formValue[e.item.key] = ne, K && (e.formValue[`${e.item.key}Str`] = K.map((
|
|
3726
|
+
e.formValue[e.item.key] = ne, K && (e.formValue[`${e.item.key}Str`] = K.map(($) => $.label).join("/")), e.updateValue(e.item, T);
|
|
3727
3727
|
})
|
|
3728
3728
|
}, null, 8, ["value", "placeholder", "options", "disabled", "show", "clearable", "filterable", "multiple", "class", "loading", "on-focus"])) : e.item.input === "color" ? (s(), B(v, {
|
|
3729
3729
|
key: 8,
|
|
@@ -3870,7 +3870,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
3870
3870
|
}
|
|
3871
3871
|
},
|
|
3872
3872
|
setup(e, { expose: t }) {
|
|
3873
|
-
const n = De("userStore"), c = Se(() => fe.isMobile), l = M(), i = M(), a = M({}), p = M([]),
|
|
3873
|
+
const n = De("userStore"), c = Se(() => fe.isMobile), l = M(), i = M(), a = M({}), p = M([]), _ = M([]), z = M([]), D = M();
|
|
3874
3874
|
Tt("mainFormValue", {
|
|
3875
3875
|
value: () => a.value,
|
|
3876
3876
|
setValue: (T) => {
|
|
@@ -3878,8 +3878,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
3878
3878
|
}
|
|
3879
3879
|
});
|
|
3880
3880
|
const N = (T) => {
|
|
3881
|
-
const
|
|
3882
|
-
if (
|
|
3881
|
+
const $ = T.form.display;
|
|
3882
|
+
if (!$)
|
|
3883
3883
|
switch (e.status) {
|
|
3884
3884
|
case 0:
|
|
3885
3885
|
return T.form.create && T.form.create.show;
|
|
@@ -3888,8 +3888,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
3888
3888
|
case 2:
|
|
3889
3889
|
return T.form.show;
|
|
3890
3890
|
}
|
|
3891
|
-
if (
|
|
3892
|
-
const I = new Function("mainFormValue", "userStore",
|
|
3891
|
+
if ($ && typeof $ == "string") {
|
|
3892
|
+
const I = new Function("mainFormValue", "userStore", $);
|
|
3893
3893
|
try {
|
|
3894
3894
|
return I(
|
|
3895
3895
|
{
|
|
@@ -3904,103 +3904,103 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
3904
3904
|
return !0;
|
|
3905
3905
|
}
|
|
3906
3906
|
}
|
|
3907
|
-
}, v = (T,
|
|
3907
|
+
}, v = (T, $) => {
|
|
3908
3908
|
switch (T) {
|
|
3909
3909
|
case "datetime":
|
|
3910
3910
|
case "datetimerange":
|
|
3911
|
-
return Ie(
|
|
3911
|
+
return Ie($, "yyyy-MM-dd hh:mm:ss");
|
|
3912
3912
|
case "month":
|
|
3913
3913
|
case "monthrange":
|
|
3914
|
-
return Ie(
|
|
3914
|
+
return Ie($, "yyyy-MM");
|
|
3915
3915
|
case "year":
|
|
3916
3916
|
case "yearrange":
|
|
3917
|
-
return Ie(
|
|
3917
|
+
return Ie($, "yyyy");
|
|
3918
3918
|
default:
|
|
3919
|
-
return Ie(
|
|
3919
|
+
return Ie($);
|
|
3920
3920
|
}
|
|
3921
|
-
}, o = (T,
|
|
3921
|
+
}, o = (T, $ = !1) => {
|
|
3922
3922
|
const I = Be(T).startOf("day").diff(Be().startOf("day"), "day");
|
|
3923
|
-
return I >= 0 ?
|
|
3924
|
-
}, h = (T) => (z.value = [], T.forEach((
|
|
3925
|
-
if (
|
|
3926
|
-
if (
|
|
3927
|
-
a.value[
|
|
3928
|
-
else if (
|
|
3929
|
-
|
|
3930
|
-
const I =
|
|
3931
|
-
(U) => U.value === a.value[
|
|
3923
|
+
return I >= 0 ? $ ? "success" : `剩余${I}天` : $ ? "error" : `逾期${Math.abs(I)}天`;
|
|
3924
|
+
}, h = (T) => (z.value = [], T.forEach(($) => {
|
|
3925
|
+
if ($.form.defaultValue && !a.value[$.key])
|
|
3926
|
+
if ($.input === "number")
|
|
3927
|
+
a.value[$.key] = Number($.form.defaultValue);
|
|
3928
|
+
else if ($.input === "select" && $.params.options?.length > 0) {
|
|
3929
|
+
$.form.defaultValue === "userId" ? a.value[$.key] = n.userId : a.value[$.key] = $.form.defaultValue;
|
|
3930
|
+
const I = $.params.options.find(
|
|
3931
|
+
(U) => U.value === a.value[$.key]
|
|
3932
3932
|
);
|
|
3933
|
-
I && (a.value[`${
|
|
3934
|
-
} else if (
|
|
3935
|
-
if (
|
|
3936
|
-
switch (
|
|
3933
|
+
I && (a.value[`${$.key}Str`] = I.label);
|
|
3934
|
+
} else if ($.input === "date")
|
|
3935
|
+
if ($.params.type.indexOf("range") > -1)
|
|
3936
|
+
switch ($.form.defaultValue) {
|
|
3937
3937
|
case "now":
|
|
3938
3938
|
{
|
|
3939
3939
|
const U = Be().startOf("day").valueOf(), q = Be().endOf("day").valueOf();
|
|
3940
|
-
a.value[
|
|
3941
|
-
|
|
3940
|
+
a.value[$.key] = [U, q], a.value[`${$.key}StartStr`] = v(
|
|
3941
|
+
$.params.type,
|
|
3942
3942
|
U
|
|
3943
|
-
), a.value[`${
|
|
3944
|
-
|
|
3943
|
+
), a.value[`${$.key}EndStr`] = v(
|
|
3944
|
+
$.params.type,
|
|
3945
3945
|
q
|
|
3946
3946
|
);
|
|
3947
3947
|
}
|
|
3948
3948
|
break;
|
|
3949
3949
|
default:
|
|
3950
|
-
const I = Number(
|
|
3951
|
-
a.value[
|
|
3952
|
-
|
|
3950
|
+
const I = Number($.form.defaultValue);
|
|
3951
|
+
a.value[$.key] = Number.isNaN(I) ? null : [I, I], a.value[`${$.key}StartStr`] = v(
|
|
3952
|
+
$.params.type,
|
|
3953
3953
|
I
|
|
3954
|
-
), a.value[`${
|
|
3955
|
-
|
|
3954
|
+
), a.value[`${$.key}EndStr`] = v(
|
|
3955
|
+
$.params.type,
|
|
3956
3956
|
I
|
|
3957
3957
|
);
|
|
3958
3958
|
break;
|
|
3959
3959
|
}
|
|
3960
|
-
else if (
|
|
3961
|
-
a.value[
|
|
3962
|
-
|
|
3960
|
+
else if ($.form.defaultValue === "now")
|
|
3961
|
+
a.value[$.key] = Date.now(), a.value[`${$.key}Str`] = v(
|
|
3962
|
+
$.params.type,
|
|
3963
3963
|
Date.now()
|
|
3964
3964
|
);
|
|
3965
3965
|
else {
|
|
3966
|
-
const I = Number(
|
|
3967
|
-
a.value[
|
|
3968
|
-
|
|
3966
|
+
const I = Number($.form.defaultValue);
|
|
3967
|
+
a.value[$.key] = Number.isNaN(I) ? null : I, a.value[`${$.key}Str`] = v(
|
|
3968
|
+
$.params.type,
|
|
3969
3969
|
I
|
|
3970
3970
|
);
|
|
3971
3971
|
}
|
|
3972
3972
|
else
|
|
3973
|
-
a.value[
|
|
3974
|
-
if ((
|
|
3973
|
+
a.value[$.key] = $.form.defaultValue;
|
|
3974
|
+
if (($.input === "cascader" || $.input === "select") && $.params.multiple && z.value.push($.key), $.input === "date" && $.params.type.indexOf("range") > -1 && z.value.push($.key), $.input === "select" && $.params.multiple && a.value[$.key] && typeof a.value[$.key] == "string")
|
|
3975
3975
|
try {
|
|
3976
|
-
a.value[
|
|
3976
|
+
a.value[$.key] = JSON.parse(a.value[$.key]);
|
|
3977
3977
|
} catch {
|
|
3978
|
-
a.value[
|
|
3978
|
+
a.value[$.key] = [];
|
|
3979
3979
|
}
|
|
3980
|
-
if (typeof a.value[
|
|
3980
|
+
if (typeof a.value[$.key] == "string" && $.input === "date" && $.params.type.indexOf("range") > -1)
|
|
3981
3981
|
try {
|
|
3982
|
-
a.value[
|
|
3982
|
+
a.value[$.key] = JSON.parse(a.value[$.key]);
|
|
3983
3983
|
} catch {
|
|
3984
|
-
a.value[
|
|
3984
|
+
a.value[$.key] = [];
|
|
3985
3985
|
}
|
|
3986
3986
|
}), T), f = (T) => {
|
|
3987
|
-
T || (T =
|
|
3987
|
+
T || (T = Q(e.items)), T && Array.isArray(T) && T.length > 0 ? p.value = h(T) : p.value = [];
|
|
3988
3988
|
}, u = () => new Promise(async (T) => {
|
|
3989
|
-
let
|
|
3990
|
-
for await (const I of
|
|
3989
|
+
let $ = 0;
|
|
3990
|
+
for await (const I of _.value)
|
|
3991
3991
|
await I.validate().catch(() => {
|
|
3992
|
-
|
|
3992
|
+
$ = $ + 1;
|
|
3993
3993
|
});
|
|
3994
|
-
T(
|
|
3995
|
-
}), g = () => new Promise((T,
|
|
3996
|
-
|
|
3994
|
+
T($);
|
|
3995
|
+
}), g = () => new Promise((T, $) => {
|
|
3996
|
+
_.value.forEach((I) => {
|
|
3997
3997
|
I.validate().catch(() => null);
|
|
3998
3998
|
}), i.value?.validate(
|
|
3999
3999
|
async (I) => {
|
|
4000
4000
|
if (I)
|
|
4001
|
-
|
|
4001
|
+
$();
|
|
4002
4002
|
else if (await u() === 0) {
|
|
4003
|
-
const q =
|
|
4003
|
+
const q = Q(a.value);
|
|
4004
4004
|
z.value.forEach((H) => {
|
|
4005
4005
|
q[H] = JSON.stringify(q[H]);
|
|
4006
4006
|
}), Object.keys(q).forEach((H) => {
|
|
@@ -4016,7 +4016,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
4016
4016
|
), R = JSON.parse(C);
|
|
4017
4017
|
T(R);
|
|
4018
4018
|
} else
|
|
4019
|
-
|
|
4019
|
+
$();
|
|
4020
4020
|
}
|
|
4021
4021
|
);
|
|
4022
4022
|
}), S = () => {
|
|
@@ -4034,8 +4034,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
4034
4034
|
10: "md:col-span-10 lg:col-span-10 xl:col-span-10 2xl:col-span-10",
|
|
4035
4035
|
11: "md:col-span-11 lg:col-span-11 xl:col-span-11 2xl:col-span-11",
|
|
4036
4036
|
12: "md:col-span-12 lg:col-span-12 xl:col-span-12 2xl:col-span-12"
|
|
4037
|
-
})[T], F = (T,
|
|
4038
|
-
D.value =
|
|
4037
|
+
})[T], F = (T, $) => {
|
|
4038
|
+
D.value = $, l.value?.link(T.source, T.sourceFn);
|
|
4039
4039
|
}, K = (T) => {
|
|
4040
4040
|
D.value && (p.value[D.value].params.options = T);
|
|
4041
4041
|
};
|
|
@@ -4043,8 +4043,8 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
4043
4043
|
a.value = e.value, f(e.items);
|
|
4044
4044
|
} }), ce(
|
|
4045
4045
|
() => e.value,
|
|
4046
|
-
(T,
|
|
4047
|
-
JSON.stringify(T) !== JSON.stringify(
|
|
4046
|
+
(T, $) => {
|
|
4047
|
+
JSON.stringify(T) !== JSON.stringify($) && (a.value = T, p.value.length === 0 && f(e.items));
|
|
4048
4048
|
},
|
|
4049
4049
|
{
|
|
4050
4050
|
deep: !0,
|
|
@@ -4055,7 +4055,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
4055
4055
|
formRef: i,
|
|
4056
4056
|
formValue: a,
|
|
4057
4057
|
formItems: p,
|
|
4058
|
-
childRef:
|
|
4058
|
+
childRef: _,
|
|
4059
4059
|
isMobile: c,
|
|
4060
4060
|
diffDay: o,
|
|
4061
4061
|
sourceAdd: F,
|
|
@@ -4066,7 +4066,7 @@ const Le = /* @__PURE__ */ w(_h, [["render", Ch]]), Mh = re({
|
|
|
4066
4066
|
}
|
|
4067
4067
|
}), zh = ["onClick"];
|
|
4068
4068
|
function Nh(e, t, n, c, l, i) {
|
|
4069
|
-
const a = x("Plus"), p = x("NIcon"),
|
|
4069
|
+
const a = x("Plus"), p = x("NIcon"), _ = x("UzTableChild"), z = x("UzTableQuestChild"), D = x("NDivider"), N = x("UzFormItem"), v = x("NFormItem"), o = x("NForm"), h = x("UzTableDrawer"), f = Dn("media");
|
|
4070
4070
|
return s(), d(se, null, [
|
|
4071
4071
|
b(o, {
|
|
4072
4072
|
ref: "formRef",
|
|
@@ -4104,14 +4104,14 @@ function Nh(e, t, n, c, l, i) {
|
|
|
4104
4104
|
_: 1
|
|
4105
4105
|
}),
|
|
4106
4106
|
t[0] || (t[0] = E(" 新增 ", -1))
|
|
4107
|
-
], 8, zh)) :
|
|
4107
|
+
], 8, zh)) : G("", !0),
|
|
4108
4108
|
u.form.showDays ? (s(), d("span", {
|
|
4109
4109
|
key: 1,
|
|
4110
4110
|
class: ie(["uz-form-item-add", e.diffDay(e.formValue[u.key], !0)])
|
|
4111
|
-
}, P(e.diffDay(e.formValue[u.key])), 3)) :
|
|
4111
|
+
}, P(e.diffDay(e.formValue[u.key])), 3)) : G("", !0)
|
|
4112
4112
|
]),
|
|
4113
4113
|
default: m(() => [
|
|
4114
|
-
u.input === "subTable" && !u.params.quest ? (s(), B(
|
|
4114
|
+
u.input === "subTable" && !u.params.quest ? (s(), B(_, {
|
|
4115
4115
|
key: 0,
|
|
4116
4116
|
ref_for: !0,
|
|
4117
4117
|
ref: "childRef",
|
|
@@ -4140,7 +4140,7 @@ function Nh(e, t, n, c, l, i) {
|
|
|
4140
4140
|
}, null, 8, ["item", "formValue", "status"]))
|
|
4141
4141
|
]),
|
|
4142
4142
|
_: 2
|
|
4143
|
-
}, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) :
|
|
4143
|
+
}, 1032, ["path", "rule", "style", "show-label", "show-feedback"])) : G("", !0)
|
|
4144
4144
|
], 64))), 128))
|
|
4145
4145
|
], 2)), [
|
|
4146
4146
|
[f]
|
|
@@ -4206,7 +4206,7 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
|
|
|
4206
4206
|
},
|
|
4207
4207
|
emits: ["update:value", "on-select", "on-change"],
|
|
4208
4208
|
setup(e, { expose: t, emit: n }) {
|
|
4209
|
-
const c = De("userStore"), l = M(), i = M({}), a = M([]), p = M([-1, -1]),
|
|
4209
|
+
const c = De("userStore"), l = M(), i = M({}), a = M([]), p = M([-1, -1]), _ = (f, u, g) => {
|
|
4210
4210
|
p.value = [u, g ?? -1], n("on-select", f);
|
|
4211
4211
|
}, z = (f) => {
|
|
4212
4212
|
f && (p.value[1] === -1 ? a.value.splice(p.value[0], 1, f) : a.value[p.value[0]].params.children.splice(p.value[1], 1, f), v()), o();
|
|
@@ -4231,11 +4231,11 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
|
|
|
4231
4231
|
i.value[u.key] = u.form.defaultValue;
|
|
4232
4232
|
}), f), N = () => {
|
|
4233
4233
|
if (e.items && Array.isArray(e.items)) {
|
|
4234
|
-
const f =
|
|
4234
|
+
const f = Q(e.items);
|
|
4235
4235
|
a.value = D(f);
|
|
4236
4236
|
}
|
|
4237
4237
|
}, v = () => {
|
|
4238
|
-
n("on-change",
|
|
4238
|
+
n("on-change", Q(a.value));
|
|
4239
4239
|
}, o = () => {
|
|
4240
4240
|
p.value = [-1, -1], n("on-select", void 0);
|
|
4241
4241
|
}, h = () => {
|
|
@@ -4265,7 +4265,7 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
|
|
|
4265
4265
|
formItems: a,
|
|
4266
4266
|
formItemIndex: p,
|
|
4267
4267
|
onDragChange: v,
|
|
4268
|
-
onModeClick:
|
|
4268
|
+
onModeClick: _,
|
|
4269
4269
|
onCancel: o,
|
|
4270
4270
|
onDelete: h
|
|
4271
4271
|
};
|
|
@@ -4278,7 +4278,7 @@ const Sh = /* @__PURE__ */ w(Mh, [["render", Nh]]), Dh = re({
|
|
|
4278
4278
|
class: "uz-form-item-add"
|
|
4279
4279
|
};
|
|
4280
4280
|
function Bh(e, t, n, c, l, i) {
|
|
4281
|
-
const a = x("Plus"), p = x("NIcon"),
|
|
4281
|
+
const a = x("Plus"), p = x("NIcon"), _ = x("Trash"), z = x("NButton"), D = x("UzTableChild"), N = x("UzFormItem"), v = x("NFormItem"), o = x("Draggable", !0), h = x("NDivider"), f = x("NForm");
|
|
4282
4282
|
return s(), B(f, {
|
|
4283
4283
|
ref: "formRef",
|
|
4284
4284
|
class: "uz-w-full uz-h-full",
|
|
@@ -4328,8 +4328,8 @@ function Bh(e, t, n, c, l, i) {
|
|
|
4328
4328
|
_: 1
|
|
4329
4329
|
}),
|
|
4330
4330
|
t[1] || (t[1] = E(" 新增 ", -1))
|
|
4331
|
-
])) :
|
|
4332
|
-
u.form.showDays ? (s(), d("span", Fh, " showDays ")) :
|
|
4331
|
+
])) : G("", !0),
|
|
4332
|
+
u.form.showDays ? (s(), d("span", Fh, " showDays ")) : G("", !0)
|
|
4333
4333
|
]),
|
|
4334
4334
|
default: m(() => [
|
|
4335
4335
|
e.formItemIndex[0] === g && e.formItemIndex[1] === -1 ? (s(), B(z, {
|
|
@@ -4342,13 +4342,13 @@ function Bh(e, t, n, c, l, i) {
|
|
|
4342
4342
|
icon: m(() => [
|
|
4343
4343
|
b(p, { color: "#FFF" }, {
|
|
4344
4344
|
default: m(() => [
|
|
4345
|
-
b(
|
|
4345
|
+
b(_)
|
|
4346
4346
|
]),
|
|
4347
4347
|
_: 1
|
|
4348
4348
|
})
|
|
4349
4349
|
]),
|
|
4350
4350
|
_: 1
|
|
4351
|
-
}, 8, ["onClick"])) :
|
|
4351
|
+
}, 8, ["onClick"])) : G("", !0),
|
|
4352
4352
|
u.input === "subTable" ? (s(), B(D, {
|
|
4353
4353
|
key: 1,
|
|
4354
4354
|
formValue: e.formValue,
|
|
@@ -4394,13 +4394,13 @@ function Bh(e, t, n, c, l, i) {
|
|
|
4394
4394
|
icon: m(() => [
|
|
4395
4395
|
b(p, { color: "#FFF" }, {
|
|
4396
4396
|
default: m(() => [
|
|
4397
|
-
b(
|
|
4397
|
+
b(_)
|
|
4398
4398
|
]),
|
|
4399
4399
|
_: 1
|
|
4400
4400
|
})
|
|
4401
4401
|
]),
|
|
4402
4402
|
_: 1
|
|
4403
|
-
}, 8, ["onClick"])) :
|
|
4403
|
+
}, 8, ["onClick"])) : G("", !0),
|
|
4404
4404
|
b(N, {
|
|
4405
4405
|
item: S,
|
|
4406
4406
|
formValue: e.formValue,
|
|
@@ -4499,10 +4499,10 @@ const Ih = /* @__PURE__ */ w(Dh, [["render", Bh]]), Vh = re({
|
|
|
4499
4499
|
return ["png", "jpg", "jpeg", "bmp", "gif", "webp", "svg"].indexOf(
|
|
4500
4500
|
o.toLowerCase()
|
|
4501
4501
|
) !== -1;
|
|
4502
|
-
},
|
|
4502
|
+
}, _ = (N) => {
|
|
4503
4503
|
l.value.splice(N, 1), i();
|
|
4504
4504
|
}, z = () => {
|
|
4505
|
-
let N =
|
|
4505
|
+
let N = Q(e.value);
|
|
4506
4506
|
if (!N) {
|
|
4507
4507
|
l.value = [];
|
|
4508
4508
|
return;
|
|
@@ -4540,13 +4540,13 @@ const Ih = /* @__PURE__ */ w(Dh, [["render", Bh]]), Vh = re({
|
|
|
4540
4540
|
show: c,
|
|
4541
4541
|
beforeUpload: a,
|
|
4542
4542
|
isAssetTypeAnImage: p,
|
|
4543
|
-
doDelete:
|
|
4543
|
+
doDelete: _,
|
|
4544
4544
|
openFile: D
|
|
4545
4545
|
};
|
|
4546
4546
|
}
|
|
4547
4547
|
}), Uh = { class: "uz-form-upload-item-inner" }, jh = ["title"], Ah = { key: 0 };
|
|
4548
4548
|
function Oh(e, t, n, c, l, i) {
|
|
4549
|
-
const a = x("CloudUpload"), p = x("NIcon"),
|
|
4549
|
+
const a = x("CloudUpload"), p = x("NIcon"), _ = x("NUploadDragger"), z = x("NUpload"), D = x("PhotoOff"), N = x("NImage"), v = x("FileText"), o = x("Trash"), h = x("NButton"), f = x("NPopconfirm"), u = x("CloudDownload"), g = x("NSpin");
|
|
4550
4550
|
return s(), B(g, {
|
|
4551
4551
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
4552
4552
|
show: e.show
|
|
@@ -4564,7 +4564,7 @@ function Oh(e, t, n, c, l, i) {
|
|
|
4564
4564
|
"directory-dnd": ""
|
|
4565
4565
|
}, {
|
|
4566
4566
|
default: m(() => [
|
|
4567
|
-
b(
|
|
4567
|
+
b(_, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
|
|
4568
4568
|
default: m(() => [
|
|
4569
4569
|
b(p, { size: "28" }, {
|
|
4570
4570
|
default: m(() => [
|
|
@@ -4577,7 +4577,7 @@ function Oh(e, t, n, c, l, i) {
|
|
|
4577
4577
|
})
|
|
4578
4578
|
]),
|
|
4579
4579
|
_: 1
|
|
4580
|
-
}, 8, ["accept", "max", "on-before-upload"])) :
|
|
4580
|
+
}, 8, ["accept", "max", "on-before-upload"])) : G("", !0),
|
|
4581
4581
|
(s(!0), d(se, null, we(e.formValue, (S, y) => (s(), d("div", {
|
|
4582
4582
|
key: y,
|
|
4583
4583
|
class: "uz-form-upload-item uz-w-20 uz-h-20"
|
|
@@ -4658,7 +4658,7 @@ function Oh(e, t, n, c, l, i) {
|
|
|
4658
4658
|
]),
|
|
4659
4659
|
_: 1
|
|
4660
4660
|
}, 8, ["href"])
|
|
4661
|
-
])) :
|
|
4661
|
+
])) : G("", !0)
|
|
4662
4662
|
])
|
|
4663
4663
|
]))), 128))
|
|
4664
4664
|
]),
|
|
@@ -4702,12 +4702,12 @@ const Rh = /* @__PURE__ */ w(Vh, [["render", Oh], ["__scopeId", "data-v-d4bd872d
|
|
|
4702
4702
|
}
|
|
4703
4703
|
}), Hh = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
4704
4704
|
function Eh(e, t, n, c, l, i) {
|
|
4705
|
-
const a = x("PhotoOff"), p = x("NIcon"),
|
|
4705
|
+
const a = x("PhotoOff"), p = x("NIcon"), _ = x("NImage"), z = x("FileText"), D = x("NPopover"), N = x("NImageGroup");
|
|
4706
4706
|
return s(), B(N, null, {
|
|
4707
4707
|
default: m(() => [
|
|
4708
4708
|
r("div", Hh, [
|
|
4709
4709
|
(s(!0), d(se, null, we(e.imgs, (v) => (s(), d(se, null, [
|
|
4710
|
-
e.isAssetTypeAnImage(v) ? (s(), B(
|
|
4710
|
+
e.isAssetTypeAnImage(v) ? (s(), B(_, {
|
|
4711
4711
|
key: 0,
|
|
4712
4712
|
width: "40",
|
|
4713
4713
|
src: v
|
|
@@ -4772,7 +4772,7 @@ const da = /* @__PURE__ */ w(Ph, [["render", Eh]]), qh = re({
|
|
|
4772
4772
|
setup(e, { emit: t, expose: n }) {
|
|
4773
4773
|
const c = M([]), l = M("00"), i = M("00"), a = M("00"), p = () => {
|
|
4774
4774
|
l.value = "00", i.value = "00", a.value = "00";
|
|
4775
|
-
},
|
|
4775
|
+
}, _ = () => {
|
|
4776
4776
|
const o = [];
|
|
4777
4777
|
for (let h = 0; h <= 100; h++)
|
|
4778
4778
|
o.push({
|
|
@@ -4801,7 +4801,7 @@ const da = /* @__PURE__ */ w(Ph, [["render", Eh]]), qh = re({
|
|
|
4801
4801
|
{
|
|
4802
4802
|
immediate: !0
|
|
4803
4803
|
}
|
|
4804
|
-
),
|
|
4804
|
+
), _(), {
|
|
4805
4805
|
times: c,
|
|
4806
4806
|
h: l,
|
|
4807
4807
|
m: i,
|
|
@@ -4881,7 +4881,7 @@ const Wh = /* @__PURE__ */ w(qh, [["render", Kh], ["__scopeId", "data-v-c90165b1
|
|
|
4881
4881
|
setup(e, { emit: t }) {
|
|
4882
4882
|
const n = M(), c = M(!1), l = M(!1), i = Kt();
|
|
4883
4883
|
let a = null, p = null;
|
|
4884
|
-
const
|
|
4884
|
+
const _ = (f, u) => {
|
|
4885
4885
|
a.beginPath(), a.moveTo(f.x, f.y), a.lineTo(u.x, u.y), a.lineWidth = 2, a.strokeStyle = "green", a.stroke();
|
|
4886
4886
|
}, z = () => {
|
|
4887
4887
|
l.value && requestAnimationFrame(D);
|
|
@@ -4894,7 +4894,7 @@ const Wh = /* @__PURE__ */ w(qh, [["render", Kh], ["__scopeId", "data-v-c90165b1
|
|
|
4894
4894
|
const S = fs(g.data, f, u);
|
|
4895
4895
|
if (S) {
|
|
4896
4896
|
const { location: y, data: F } = S;
|
|
4897
|
-
F && (
|
|
4897
|
+
F && (_(y.topLeftCorner, y.topRightCorner), _(y.topRightCorner, y.bottomRightCorner), _(y.bottomRightCorner, y.bottomLeftCorner), _(y.bottomLeftCorner, y.topLeftCorner), t("on-update:value", F));
|
|
4898
4898
|
}
|
|
4899
4899
|
} catch {
|
|
4900
4900
|
l.value = !1, i.error({
|
|
@@ -4968,11 +4968,11 @@ function Zh(e, t, n, c, l, i) {
|
|
|
4968
4968
|
E(P(e.$t("Common.scan")), 1)
|
|
4969
4969
|
]),
|
|
4970
4970
|
_: 1
|
|
4971
|
-
}, 8, ["loading", "onClick"])) :
|
|
4971
|
+
}, 8, ["loading", "onClick"])) : G("", !0),
|
|
4972
4972
|
e.mode === "button" ? (s(), B(p, {
|
|
4973
4973
|
key: 1,
|
|
4974
4974
|
show: e.modal,
|
|
4975
|
-
"onUpdate:show": t[0] || (t[0] = (
|
|
4975
|
+
"onUpdate:show": t[0] || (t[0] = (_) => e.modal = _),
|
|
4976
4976
|
preset: "card",
|
|
4977
4977
|
title: e.$t("Common.scan"),
|
|
4978
4978
|
"auto-focus": !1,
|
|
@@ -4995,7 +4995,7 @@ function Zh(e, t, n, c, l, i) {
|
|
|
4995
4995
|
], 4)
|
|
4996
4996
|
]),
|
|
4997
4997
|
_: 1
|
|
4998
|
-
}, 8, ["show", "title", "on-after-leave"])) :
|
|
4998
|
+
}, 8, ["show", "title", "on-after-leave"])) : G("", !0),
|
|
4999
4999
|
e.mode === "video" ? (s(), d("div", {
|
|
5000
5000
|
key: 2,
|
|
5001
5001
|
class: "uz-scan-canvas-main",
|
|
@@ -5009,7 +5009,7 @@ function Zh(e, t, n, c, l, i) {
|
|
|
5009
5009
|
width: e.width,
|
|
5010
5010
|
height: e.height
|
|
5011
5011
|
}, null, 8, Jh)
|
|
5012
|
-
], 4)) :
|
|
5012
|
+
], 4)) : G("", !0),
|
|
5013
5013
|
r("div", Xh, [
|
|
5014
5014
|
r("video", Yh, null, 512)
|
|
5015
5015
|
])
|
|
@@ -5074,15 +5074,15 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5074
5074
|
},
|
|
5075
5075
|
emits: ["update:loading", "on-update:value"],
|
|
5076
5076
|
setup(e, { emit: t }) {
|
|
5077
|
-
const n = ct(), c = M(), l = M([]), i = M(), a = M(!0), p = M(!1),
|
|
5077
|
+
const n = ct(), c = M(), l = M([]), i = M(), a = M(!0), p = M(!1), _ = M(!1), z = M(0), D = M(0), N = M(0), v = M(1), o = M(""), h = M([]), f = M(!1), u = (T) => Array.isArray(T) && T.length > 0 || T ? T : !1, g = (T = !1) => {
|
|
5078
5078
|
if (e.loading)
|
|
5079
5079
|
return;
|
|
5080
|
-
const
|
|
5081
|
-
!T &&
|
|
5080
|
+
const $ = Q(c.value);
|
|
5081
|
+
!T && $.query && ($.query.page = 1);
|
|
5082
5082
|
const I = [];
|
|
5083
5083
|
l.value.forEach((U) => {
|
|
5084
|
-
if (
|
|
5085
|
-
const q = u(
|
|
5084
|
+
if ($[U.key]) {
|
|
5085
|
+
const q = u($[U.key]);
|
|
5086
5086
|
if (q) {
|
|
5087
5087
|
const C = {
|
|
5088
5088
|
key: U.key,
|
|
@@ -5095,18 +5095,18 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5095
5095
|
}
|
|
5096
5096
|
}), t("update:loading", !0), t("on-update:value", I);
|
|
5097
5097
|
}, S = () => {
|
|
5098
|
-
e.loading || (c.value =
|
|
5098
|
+
e.loading || (c.value = Q(i.value), g());
|
|
5099
5099
|
}, y = () => {
|
|
5100
5100
|
a.value = !a.value;
|
|
5101
5101
|
}, F = (T) => f.value ? c.value && Array.isArray(c.value[o.value]) && c.value[o.value].includes(T.value) ? "primary" : "default" : c.value[o.value] === T.value ? "primary" : "default", K = (T) => {
|
|
5102
|
-
const
|
|
5102
|
+
const $ = {};
|
|
5103
5103
|
let I = 0;
|
|
5104
5104
|
const U = e.cols ? e.cols : 4;
|
|
5105
5105
|
if (T.length > 0)
|
|
5106
5106
|
for (let C = 0; C <= U; C++)
|
|
5107
5107
|
T[C]?.search.show && (I = I + (T[C]?.search.span || 1));
|
|
5108
5108
|
const q = U - I >= 0 ? U - I - 1 : -1;
|
|
5109
|
-
D.value = q, N.value = q, z.value = I, I > U ? (p.value = !0,
|
|
5109
|
+
D.value = q, N.value = q, z.value = I, I > U ? (p.value = !0, _.value = !0) : (p.value = !1, _.value = !1);
|
|
5110
5110
|
for (const C of T)
|
|
5111
5111
|
if (C.search.tab && (h.value = C.params.options, f.value = C.params.multiple, o.value = C.key, C.search.show = !1), C.input === "input" && C.params.type === "textarea" && (C.params.type = "text"), C.search.show = C.search.show ?? !0, C.defaultValue)
|
|
5112
5112
|
if (C.input === "date")
|
|
@@ -5115,45 +5115,45 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5115
5115
|
case "now":
|
|
5116
5116
|
{
|
|
5117
5117
|
const H = Be().startOf("day").valueOf(), O = Be().endOf("day").valueOf();
|
|
5118
|
-
|
|
5118
|
+
$[C.key] = [H, O];
|
|
5119
5119
|
}
|
|
5120
5120
|
break;
|
|
5121
5121
|
default:
|
|
5122
5122
|
const R = Number(C.form.defaultValue);
|
|
5123
|
-
|
|
5123
|
+
$[C.key] = Number.isNaN(R) ? null : [R, R];
|
|
5124
5124
|
break;
|
|
5125
5125
|
}
|
|
5126
5126
|
else if (C.search.defaultValue === "now")
|
|
5127
|
-
|
|
5127
|
+
$[C.key] = Date.now();
|
|
5128
5128
|
else {
|
|
5129
5129
|
const R = Number(C.form.defaultValue);
|
|
5130
|
-
|
|
5130
|
+
$[C.key] = Number.isNaN(R) ? null : R;
|
|
5131
5131
|
}
|
|
5132
5132
|
else
|
|
5133
|
-
|
|
5133
|
+
$[C.key] = C.defaultValue;
|
|
5134
5134
|
else
|
|
5135
|
-
|
|
5136
|
-
return { data: T, values:
|
|
5135
|
+
$[C.key] = "", (C.input === "number" || C.input === "date" || C.input === "time") && ($[C.key] = null), (C.input === "cascader" || C.input === "select") && (C.params.multiple ? $[C.key] = [] : $[C.key] = null);
|
|
5136
|
+
return { data: T, values: $ };
|
|
5137
5137
|
}, Z = (T) => {
|
|
5138
5138
|
if (h.value = [], T && T.length > 0) {
|
|
5139
|
-
const { data:
|
|
5139
|
+
const { data: $, values: I } = K(Q(T)), U = {}, q = e.id || n.params.id;
|
|
5140
5140
|
if (e.cache && q) {
|
|
5141
5141
|
const C = Me(`tables_${q}`, !1);
|
|
5142
5142
|
C && C.params.forEach((R) => {
|
|
5143
5143
|
U[R.key] = R.value;
|
|
5144
5144
|
});
|
|
5145
5145
|
}
|
|
5146
|
-
l.value =
|
|
5146
|
+
l.value = $, c.value = Q({ ...I, ...U }), i.value = Q(I);
|
|
5147
5147
|
}
|
|
5148
5148
|
g(!0);
|
|
5149
5149
|
}, ne = (T) => {
|
|
5150
5150
|
if (f.value) {
|
|
5151
|
-
const
|
|
5152
|
-
if (
|
|
5153
|
-
const I =
|
|
5151
|
+
const $ = c.value[o.value];
|
|
5152
|
+
if ($.includes(T)) {
|
|
5153
|
+
const I = $.findIndex((U) => U === T);
|
|
5154
5154
|
c.value[o.value].splice(I, 1);
|
|
5155
5155
|
} else
|
|
5156
|
-
|
|
5156
|
+
$.push(T);
|
|
5157
5157
|
} else
|
|
5158
5158
|
c.value[o.value] = T;
|
|
5159
5159
|
g(!0);
|
|
@@ -5168,7 +5168,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5168
5168
|
itemData: l,
|
|
5169
5169
|
defaultValue: i,
|
|
5170
5170
|
more: p,
|
|
5171
|
-
moreCache:
|
|
5171
|
+
moreCache: _,
|
|
5172
5172
|
moreIndex: z,
|
|
5173
5173
|
offset: D,
|
|
5174
5174
|
offsetCache: N,
|
|
@@ -5191,7 +5191,7 @@ const e1 = /* @__PURE__ */ w(Gh, [["render", Zh]]), t1 = re({
|
|
|
5191
5191
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
5192
5192
|
};
|
|
5193
5193
|
function a1(e, t, n, c, l, i) {
|
|
5194
|
-
const a = x("NButton"), p = x("NButtonGroup"),
|
|
5194
|
+
const a = x("NButton"), p = x("NButtonGroup"), _ = x("NGridItem"), z = x("NInputGroupLabel"), D = x("NPopover"), N = x("UzFormItem"), v = x("NInputGroup"), o = x("NGrid"), h = x("CaretDown"), f = x("NIcon"), u = x("Search"), g = x("Refresh"), S = Dn("media");
|
|
5195
5195
|
return s(), d("div", {
|
|
5196
5196
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
5197
5197
|
onKeyup: t[1] || (t[1] = Va((y) => e.doSearch(!1), ["enter"]))
|
|
@@ -5207,7 +5207,7 @@ function a1(e, t, n, c, l, i) {
|
|
|
5207
5207
|
collapsed: e.collapsed
|
|
5208
5208
|
}, {
|
|
5209
5209
|
default: m(() => [
|
|
5210
|
-
e.tabList && e.tabList.length > 0 ? (s(), B(
|
|
5210
|
+
e.tabList && e.tabList.length > 0 ? (s(), B(_, {
|
|
5211
5211
|
key: 0,
|
|
5212
5212
|
span: e.gridSpan
|
|
5213
5213
|
}, {
|
|
@@ -5230,12 +5230,12 @@ function a1(e, t, n, c, l, i) {
|
|
|
5230
5230
|
})
|
|
5231
5231
|
]),
|
|
5232
5232
|
_: 1
|
|
5233
|
-
}, 8, ["span"])) :
|
|
5234
|
-
e.offset > -1 ? (s(), B(
|
|
5233
|
+
}, 8, ["span"])) : G("", !0),
|
|
5234
|
+
e.offset > -1 ? (s(), B(_, {
|
|
5235
5235
|
key: 1,
|
|
5236
5236
|
offset: e.offset
|
|
5237
|
-
}, null, 8, ["offset"])) :
|
|
5238
|
-
(s(!0), d(se, null, we(e.itemData, (y, F) => (s(), B(
|
|
5237
|
+
}, null, 8, ["offset"])) : G("", !0),
|
|
5238
|
+
(s(!0), d(se, null, we(e.itemData, (y, F) => (s(), B(_, {
|
|
5239
5239
|
key: `${F}_${Date.now()}`,
|
|
5240
5240
|
span: y.search.show ? y.search.span || e.gridSpan : 0
|
|
5241
5241
|
}, {
|
|
@@ -5277,7 +5277,7 @@ function a1(e, t, n, c, l, i) {
|
|
|
5277
5277
|
])), [
|
|
5278
5278
|
[S]
|
|
5279
5279
|
])
|
|
5280
|
-
])) :
|
|
5280
|
+
])) : G("", !0),
|
|
5281
5281
|
e.enableHeader ? (s(), d("div", r1, [
|
|
5282
5282
|
e.more ? (s(), B(a, {
|
|
5283
5283
|
key: 0,
|
|
@@ -5295,7 +5295,7 @@ function a1(e, t, n, c, l, i) {
|
|
|
5295
5295
|
}, 8, ["class"])
|
|
5296
5296
|
]),
|
|
5297
5297
|
_: 1
|
|
5298
|
-
}, 8, ["onClick"])) :
|
|
5298
|
+
}, 8, ["onClick"])) : G("", !0),
|
|
5299
5299
|
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(a, {
|
|
5300
5300
|
key: 1,
|
|
5301
5301
|
loading: e.loading,
|
|
@@ -5317,7 +5317,7 @@ function a1(e, t, n, c, l, i) {
|
|
|
5317
5317
|
E(" " + P(e.$t("Common.search")), 1)
|
|
5318
5318
|
]),
|
|
5319
5319
|
_: 1
|
|
5320
|
-
}, 8, ["loading"])) :
|
|
5320
|
+
}, 8, ["loading"])) : G("", !0),
|
|
5321
5321
|
e.defaultValue && Object.keys(e.defaultValue).length > 0 ? (s(), B(a, {
|
|
5322
5322
|
key: 2,
|
|
5323
5323
|
loading: e.loading,
|
|
@@ -5336,9 +5336,9 @@ function a1(e, t, n, c, l, i) {
|
|
|
5336
5336
|
E(" " + P(e.$t("Common.reset")), 1)
|
|
5337
5337
|
]),
|
|
5338
5338
|
_: 1
|
|
5339
|
-
}, 8, ["loading", "onClick"])) :
|
|
5339
|
+
}, 8, ["loading", "onClick"])) : G("", !0),
|
|
5340
5340
|
ke(e.$slots, "action")
|
|
5341
|
-
])) :
|
|
5341
|
+
])) : G("", !0)
|
|
5342
5342
|
], 32);
|
|
5343
5343
|
}
|
|
5344
5344
|
const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
@@ -5377,10 +5377,10 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
|
5377
5377
|
},
|
|
5378
5378
|
emits: ["update:loading", "on-update:value"],
|
|
5379
5379
|
setup(e, { emit: t }) {
|
|
5380
|
-
const n = ct(), c = M([]), l = M(!1), i = M(), a = M(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1,
|
|
5380
|
+
const n = ct(), c = M([]), l = M(!1), i = M(), a = M(), p = (v) => Array.isArray(v) && v.length > 0 || v ? v : !1, _ = (v = !1) => {
|
|
5381
5381
|
if (e.loading)
|
|
5382
5382
|
return;
|
|
5383
|
-
const o =
|
|
5383
|
+
const o = Q(i.value);
|
|
5384
5384
|
!v && o.query && (o.query.page = 1);
|
|
5385
5385
|
const h = [];
|
|
5386
5386
|
c.value.forEach((f) => {
|
|
@@ -5398,7 +5398,7 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
|
5398
5398
|
}
|
|
5399
5399
|
}), l.value = !1, t("update:loading", !0), t("on-update:value", h);
|
|
5400
5400
|
}, z = () => {
|
|
5401
|
-
e.loading || (i.value =
|
|
5401
|
+
e.loading || (i.value = Q(a.value), _());
|
|
5402
5402
|
}, D = (v) => {
|
|
5403
5403
|
const o = {};
|
|
5404
5404
|
for (const h of v)
|
|
@@ -5406,16 +5406,16 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
|
5406
5406
|
return { data: v, values: o };
|
|
5407
5407
|
}, N = (v) => {
|
|
5408
5408
|
if (v && v.length > 0) {
|
|
5409
|
-
const { data: o, values: h } = D(
|
|
5409
|
+
const { data: o, values: h } = D(Q(v)), f = {}, u = e.id || n.params.id;
|
|
5410
5410
|
if (e.cache && u) {
|
|
5411
5411
|
const g = Me(`tables_${u}`, !1);
|
|
5412
5412
|
g && g.params.forEach((S) => {
|
|
5413
5413
|
f[S.key] = S.value;
|
|
5414
5414
|
});
|
|
5415
5415
|
}
|
|
5416
|
-
c.value = o, i.value =
|
|
5416
|
+
c.value = o, i.value = Q({ ...h, ...f }), a.value = Q(h);
|
|
5417
5417
|
}
|
|
5418
|
-
|
|
5418
|
+
_(!0);
|
|
5419
5419
|
};
|
|
5420
5420
|
return ce(
|
|
5421
5421
|
() => e.data,
|
|
@@ -5426,18 +5426,18 @@ const s1 = /* @__PURE__ */ w(t1, [["render", a1]]), l1 = re({
|
|
|
5426
5426
|
drawer: l,
|
|
5427
5427
|
itemValue: i,
|
|
5428
5428
|
itemData: c,
|
|
5429
|
-
doSearch:
|
|
5429
|
+
doSearch: _,
|
|
5430
5430
|
clearAll: z
|
|
5431
5431
|
};
|
|
5432
5432
|
}
|
|
5433
5433
|
}), i1 = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, c1 = { class: "uz-flex uz-gap-2" }, u1 = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
5434
5434
|
function d1(e, t, n, c, l, i) {
|
|
5435
|
-
const a = x("Search"), p = x("NIcon"),
|
|
5435
|
+
const a = x("Search"), p = x("NIcon"), _ = x("NButton"), z = x("NInputGroupLabel"), D = x("UzFormItem"), N = x("NInputGroup"), v = x("NGridItem"), o = x("NGrid"), h = x("Refresh"), f = x("NDrawerContent"), u = x("NDrawer");
|
|
5436
5436
|
return s(), d(se, null, [
|
|
5437
5437
|
r("div", i1, [
|
|
5438
5438
|
ke(e.$slots, "header"),
|
|
5439
5439
|
r("div", c1, [
|
|
5440
|
-
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(
|
|
5440
|
+
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(_, {
|
|
5441
5441
|
key: 0,
|
|
5442
5442
|
secondary: "",
|
|
5443
5443
|
onClick: t[0] || (t[0] = (g) => e.drawer = !0)
|
|
@@ -5454,7 +5454,7 @@ function d1(e, t, n, c, l, i) {
|
|
|
5454
5454
|
E(" " + P(e.$t("Common.search")), 1)
|
|
5455
5455
|
]),
|
|
5456
5456
|
_: 1
|
|
5457
|
-
})) :
|
|
5457
|
+
})) : G("", !0),
|
|
5458
5458
|
ke(e.$slots, "action")
|
|
5459
5459
|
])
|
|
5460
5460
|
]),
|
|
@@ -5462,7 +5462,8 @@ function d1(e, t, n, c, l, i) {
|
|
|
5462
5462
|
show: e.drawer,
|
|
5463
5463
|
"onUpdate:show": t[2] || (t[2] = (g) => e.drawer = g),
|
|
5464
5464
|
width: "100%",
|
|
5465
|
-
height: "
|
|
5465
|
+
height: "50%",
|
|
5466
|
+
style: { overflow: "visible" },
|
|
5466
5467
|
placement: "bottom",
|
|
5467
5468
|
"auto-focus": !1,
|
|
5468
5469
|
"close-on-esc": !1
|
|
@@ -5474,7 +5475,7 @@ function d1(e, t, n, c, l, i) {
|
|
|
5474
5475
|
}, {
|
|
5475
5476
|
footer: m(() => [
|
|
5476
5477
|
r("div", u1, [
|
|
5477
|
-
b(
|
|
5478
|
+
b(_, {
|
|
5478
5479
|
secondary: "",
|
|
5479
5480
|
loading: e.loading,
|
|
5480
5481
|
onClick: e.clearAll,
|
|
@@ -5493,7 +5494,7 @@ function d1(e, t, n, c, l, i) {
|
|
|
5493
5494
|
]),
|
|
5494
5495
|
_: 1
|
|
5495
5496
|
}, 8, ["loading", "onClick"]),
|
|
5496
|
-
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(
|
|
5497
|
+
e.itemData && Object.keys(e.itemData).length > 0 ? (s(), B(_, {
|
|
5497
5498
|
key: 0,
|
|
5498
5499
|
loading: e.loading,
|
|
5499
5500
|
type: "primary",
|
|
@@ -5512,7 +5513,7 @@ function d1(e, t, n, c, l, i) {
|
|
|
5512
5513
|
E(" " + P(e.$t("Common.search")), 1)
|
|
5513
5514
|
]),
|
|
5514
5515
|
_: 1
|
|
5515
|
-
}, 8, ["loading"])) :
|
|
5516
|
+
}, 8, ["loading"])) : G("", !0)
|
|
5516
5517
|
])
|
|
5517
5518
|
]),
|
|
5518
5519
|
default: m(() => [
|
|
@@ -5612,8 +5613,8 @@ const w1 = () => new Promise((e) => {
|
|
|
5612
5613
|
if (l[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
5613
5614
|
const i = c[0].replace("modules:", ""), a = Object.keys(n).find((p) => p.includes(i));
|
|
5614
5615
|
if (a) {
|
|
5615
|
-
const p = n[a],
|
|
5616
|
-
return (z) => ee(
|
|
5616
|
+
const p = n[a], _ = Ua(ja(p));
|
|
5617
|
+
return (z) => ee(_, { rowData: z }, {});
|
|
5617
5618
|
} else
|
|
5618
5619
|
return ee("div", "Module not found");
|
|
5619
5620
|
}
|
|
@@ -5629,8 +5630,8 @@ const w1 = () => new Promise((e) => {
|
|
|
5629
5630
|
}, Re = (e, t, n) => {
|
|
5630
5631
|
const c = t.map((l) => {
|
|
5631
5632
|
let i = [], a = l.id;
|
|
5632
|
-
return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach((
|
|
5633
|
-
i.push(l[
|
|
5633
|
+
return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach((_) => {
|
|
5634
|
+
i.push(l[_]);
|
|
5634
5635
|
}), i = ds(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (a = l[e.params.valueKey]), {
|
|
5635
5636
|
label: i,
|
|
5636
5637
|
value: a,
|
|
@@ -5646,7 +5647,7 @@ function pa() {
|
|
|
5646
5647
|
async function Pe(e) {
|
|
5647
5648
|
const t = e.split(".");
|
|
5648
5649
|
let n = !1;
|
|
5649
|
-
return t.length > 1 && (Ue.has(t[0]) ? n =
|
|
5650
|
+
return t.length > 1 && (Ue.has(t[0]) ? n = Q(Ue.get(t[0])) : (n = await Ve({ tableId: t[0] }), Ue.set(t[0], n))), { sourceData: n, n: t };
|
|
5650
5651
|
}
|
|
5651
5652
|
async function Xe(e) {
|
|
5652
5653
|
return new Promise((t, n) => {
|
|
@@ -5855,11 +5856,11 @@ const v1 = (e) => e.map((t) => {
|
|
|
5855
5856
|
drawerHeight: e.h,
|
|
5856
5857
|
placement: e.l,
|
|
5857
5858
|
summary: e.r
|
|
5858
|
-
}), Object.assign({}, h1,
|
|
5859
|
+
}), Object.assign({}, h1, Q(t));
|
|
5859
5860
|
};
|
|
5860
5861
|
function wt(e, t, n) {
|
|
5861
5862
|
return new Promise(async (c, l) => {
|
|
5862
|
-
const i = [], a = {}, p = {},
|
|
5863
|
+
const i = [], a = {}, p = {}, _ = {}, z = [], D = [], N = Q(e), v = [];
|
|
5863
5864
|
for (const o of N)
|
|
5864
5865
|
o.input === "group" ? v.push(...o.params.children) : v.push(o);
|
|
5865
5866
|
for (const o of v) {
|
|
@@ -5929,7 +5930,7 @@ function wt(e, t, n) {
|
|
|
5929
5930
|
try {
|
|
5930
5931
|
Array.isArray(t) ? t.forEach((h, f) => {
|
|
5931
5932
|
D[f] || (D[f] = {}), z[f] && z[f][o.params.parentKey] && z[f][o.params.parentKey][o.key] ? (D[f][o.key] = z[f][o.params.parentKey][o.key], z[f][o.params.parentKey][`${o.key}Str`] && (D[f][`${o.key}Str`] = z[f][o.params.parentKey][`${o.key}Str`])) : (D[f][o.key] = null, D[f][`${o.key}Str`] = null);
|
|
5932
|
-
}) : p[o.params.parentKey] && p[o.params.parentKey][o.key] ? (
|
|
5933
|
+
}) : p[o.params.parentKey] && p[o.params.parentKey][o.key] ? (_[o.key] = p[o.params.parentKey][o.key], p[o.params.parentKey][`${o.key}Str`] && (_[`${o.key}Str`] = p[o.params.parentKey][`${o.key}Str`])) : (_[o.key] = null, _[`${o.key}Str`] = null);
|
|
5933
5934
|
} catch (h) {
|
|
5934
5935
|
oe(h);
|
|
5935
5936
|
}
|
|
@@ -6005,7 +6006,7 @@ function wt(e, t, n) {
|
|
|
6005
6006
|
c({
|
|
6006
6007
|
form: i,
|
|
6007
6008
|
formDefaultValue: a,
|
|
6008
|
-
fillingDefaultValue:
|
|
6009
|
+
fillingDefaultValue: _,
|
|
6009
6010
|
fillingDefaultArray: D
|
|
6010
6011
|
});
|
|
6011
6012
|
});
|
|
@@ -6014,8 +6015,8 @@ async function gt(e, t = !1, n = 0, c = () => {
|
|
|
6014
6015
|
}, l = {}) {
|
|
6015
6016
|
let i = 0;
|
|
6016
6017
|
const a = [], p = [];
|
|
6017
|
-
let
|
|
6018
|
-
const z =
|
|
6018
|
+
let _ = [];
|
|
6019
|
+
const z = Q(e), D = [], N = [];
|
|
6019
6020
|
for (const o of z)
|
|
6020
6021
|
o.input === "group" ? (D.push(...o.params.children), N.push({
|
|
6021
6022
|
title: o.label,
|
|
@@ -6114,7 +6115,7 @@ async function gt(e, t = !1, n = 0, c = () => {
|
|
|
6114
6115
|
);
|
|
6115
6116
|
};
|
|
6116
6117
|
}
|
|
6117
|
-
if (h && o.input !== "divider" && o.input !== "subTable" &&
|
|
6118
|
+
if (h && o.input !== "divider" && o.input !== "subTable" && _.push(h), o.input !== "divider" && o.input !== "switch" && o.input !== "subTable" && o.input !== "upload" && o.search.show) {
|
|
6118
6119
|
if (o.search.source)
|
|
6119
6120
|
if (o.input = "select", o.params.type = o.search.type, o.params.valueKey = o.search.valueKey, o.params.valueKey = o.search.valueKey, o.search.source === "from-up")
|
|
6120
6121
|
o.params.options = o.params.options;
|
|
@@ -6160,22 +6161,22 @@ async function gt(e, t = !1, n = 0, c = () => {
|
|
|
6160
6161
|
if (N.length > 0) {
|
|
6161
6162
|
for (const o of N) {
|
|
6162
6163
|
if (typeof o == "string") {
|
|
6163
|
-
const h =
|
|
6164
|
+
const h = _.find((f) => f.key === o);
|
|
6164
6165
|
h && v.push(h);
|
|
6165
6166
|
}
|
|
6166
6167
|
if (typeof o == "object") {
|
|
6167
6168
|
const h = o.children, f = [];
|
|
6168
6169
|
for (const u of h) {
|
|
6169
|
-
const g =
|
|
6170
|
+
const g = _.find((S) => S.key === u);
|
|
6170
6171
|
g && f.push(g);
|
|
6171
6172
|
}
|
|
6172
6173
|
o.children = f, v.push(o);
|
|
6173
6174
|
}
|
|
6174
6175
|
}
|
|
6175
|
-
|
|
6176
|
+
_ = v;
|
|
6176
6177
|
}
|
|
6177
6178
|
return {
|
|
6178
|
-
tableColumns:
|
|
6179
|
+
tableColumns: _,
|
|
6179
6180
|
search: a,
|
|
6180
6181
|
subTableIds: p,
|
|
6181
6182
|
tableWidth: i
|
|
@@ -6230,8 +6231,8 @@ const b1 = re({
|
|
|
6230
6231
|
}
|
|
6231
6232
|
});
|
|
6232
6233
|
function x1(e, t, n, c, l, i) {
|
|
6233
|
-
const a = x("NEllipsis"), p = x("NButton"),
|
|
6234
|
-
return s(), B(
|
|
6234
|
+
const a = x("NEllipsis"), p = x("NButton"), _ = x("NSpin");
|
|
6235
|
+
return s(), B(_, { show: e.value }, {
|
|
6235
6236
|
description: m(() => [
|
|
6236
6237
|
b(a, {
|
|
6237
6238
|
"expand-trigger": "click",
|
|
@@ -6412,21 +6413,21 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6412
6413
|
value: () => null,
|
|
6413
6414
|
setValue: () => null
|
|
6414
6415
|
});
|
|
6415
|
-
const l = ct(), { t: i } = Qt(), a = Kt(), p = Se(() => fe.isMobile),
|
|
6416
|
+
const l = ct(), { t: i } = Qt(), a = Kt(), p = Se(() => fe.isMobile), _ = M(), z = M(), D = M(), N = M(!!c.header), v = M(!1), o = M(!1), h = M(""), f = M(), u = M([]), g = M([]), S = M([]), y = M(void 0), F = M({
|
|
6416
6417
|
params: [],
|
|
6417
6418
|
query: {
|
|
6418
6419
|
page: 1,
|
|
6419
6420
|
pageMax: 1,
|
|
6420
6421
|
pageSize: e.pageSize || 30
|
|
6421
6422
|
}
|
|
6422
|
-
}), K = M([]), Z = M(void 0), ne = M(void 0), T = M([]),
|
|
6423
|
+
}), K = M([]), Z = M(void 0), ne = M(void 0), T = M([]), $ = M([]), I = M([]), U = M([]), q = M({
|
|
6423
6424
|
fetch: null,
|
|
6424
6425
|
when_drawer_open: "",
|
|
6425
6426
|
when_before_save: ""
|
|
6426
6427
|
}), C = M(He()), R = M(""), H = M(!1), O = M([]), L = M([]), ue = De("modules"), $e = (k) => k.id, vt = (k, V) => {
|
|
6427
6428
|
t("update:rowKeys", {
|
|
6428
6429
|
keys: k,
|
|
6429
|
-
rows:
|
|
6430
|
+
rows: Q(V)
|
|
6430
6431
|
});
|
|
6431
6432
|
}, Ke = (k, V, W) => {
|
|
6432
6433
|
if (O.value = k, W.action === "check" && L.value.push(W.row), W.action === "uncheck") {
|
|
@@ -6438,8 +6439,8 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6438
6439
|
W.action === "checkAll" && V.forEach((X) => {
|
|
6439
6440
|
X && L.value.push(X);
|
|
6440
6441
|
}), W.action === "uncheckAll" && (L.value = [], O.value = []), t("update:rowKeys", {
|
|
6441
|
-
keys:
|
|
6442
|
-
rows:
|
|
6442
|
+
keys: Q(O.value),
|
|
6443
|
+
rows: Q(L.value)
|
|
6443
6444
|
});
|
|
6444
6445
|
}, kt = (k) => {
|
|
6445
6446
|
const V = e.summary || C.value.summary;
|
|
@@ -6447,7 +6448,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6447
6448
|
}, ae = (k = !1) => {
|
|
6448
6449
|
const V = e.id || l.params.id;
|
|
6449
6450
|
e.enableLoading && (v.value = !0, t("update:loading", !0));
|
|
6450
|
-
const W =
|
|
6451
|
+
const W = Q(F.value);
|
|
6451
6452
|
if (k && delete W.orderby, q.value.fetch)
|
|
6452
6453
|
yn([q.value.fetch], "", W).then((X) => {
|
|
6453
6454
|
const j = vn(X);
|
|
@@ -6468,10 +6469,10 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6468
6469
|
});
|
|
6469
6470
|
}
|
|
6470
6471
|
}, ze = (k) => {
|
|
6471
|
-
F.value.query.page = k,
|
|
6472
|
+
F.value.query.page = k, _.value && (_.value.scrollTop = 0), $t(), ae();
|
|
6472
6473
|
}, yt = () => {
|
|
6473
6474
|
let k = F.value.query.page + 1;
|
|
6474
|
-
k > F.value.query.pageMax && (k = 1), F.value.query.page = k,
|
|
6475
|
+
k > F.value.query.pageMax && (k = 1), F.value.query.page = k, _.value && (_.value.scrollTop = 0), ae();
|
|
6475
6476
|
}, Ca = (k) => {
|
|
6476
6477
|
F.value.query.pageSize = k, F.value.query.page = 1, $t(), ae();
|
|
6477
6478
|
}, Ma = (k) => {
|
|
@@ -6551,7 +6552,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6551
6552
|
}
|
|
6552
6553
|
], ot = (k) => !e.ruleFetch || !T.value || T.value && T.value[0] === "*" ? !1 : !T.value?.includes(k), an = async (k) => {
|
|
6553
6554
|
const { form: V, fillingDefaultValue: W, formDefaultValue: X } = await wt(
|
|
6554
|
-
|
|
6555
|
+
$.value,
|
|
6555
6556
|
k,
|
|
6556
6557
|
() => D.value?.getFormValues()
|
|
6557
6558
|
);
|
|
@@ -6596,13 +6597,13 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6596
6597
|
}
|
|
6597
6598
|
return { form: X, data: Y };
|
|
6598
6599
|
}, cn = (k, V) => {
|
|
6599
|
-
const W =
|
|
6600
|
+
const W = Q(k.onClick), X = e.id || l.params.id;
|
|
6600
6601
|
if (k.disabled) {
|
|
6601
6602
|
if (typeof k.disabled == "string") {
|
|
6602
6603
|
const j = new Function("rowData", "rowIndex", k.disabled);
|
|
6603
6604
|
k.disabled = (Y, le) => j(Y, le) || ot(k.key);
|
|
6604
6605
|
} else if (typeof k.disabled == "function") {
|
|
6605
|
-
const j =
|
|
6606
|
+
const j = Q(k);
|
|
6606
6607
|
k.disabled = (Y, le) => j.disabled(Y, le) || ot(k.key);
|
|
6607
6608
|
}
|
|
6608
6609
|
} else
|
|
@@ -6645,7 +6646,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6645
6646
|
}).catch(() => null);
|
|
6646
6647
|
};
|
|
6647
6648
|
else if (k.type !== "group" && k.action === "detailInside") {
|
|
6648
|
-
const j =
|
|
6649
|
+
const j = Q(k.onClick);
|
|
6649
6650
|
k.onClick = (Y) => {
|
|
6650
6651
|
D.value?.addAndEdit(
|
|
6651
6652
|
() => ln(Y, j),
|
|
@@ -6656,7 +6657,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6656
6657
|
);
|
|
6657
6658
|
};
|
|
6658
6659
|
} else if (k.type !== "group" && k.action === "editInside") {
|
|
6659
|
-
const j =
|
|
6660
|
+
const j = Q(k.onClick);
|
|
6660
6661
|
k.onClick = (Y) => {
|
|
6661
6662
|
D.value?.addAndEdit(
|
|
6662
6663
|
() => ln(Y, j),
|
|
@@ -6704,7 +6705,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6704
6705
|
}).catch(() => null);
|
|
6705
6706
|
};
|
|
6706
6707
|
else if (k.type !== "group" && k.action) {
|
|
6707
|
-
const j =
|
|
6708
|
+
const j = Q(k.onClick);
|
|
6708
6709
|
k.onClick = (Y) => {
|
|
6709
6710
|
let le;
|
|
6710
6711
|
e.fetch ? le = e.fetch({
|
|
@@ -6760,7 +6761,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6760
6761
|
}, un = async () => {
|
|
6761
6762
|
H.value = !1, pa();
|
|
6762
6763
|
const { tableColumns: k, search: V, subTableIds: W, tableWidth: X } = await gt(
|
|
6763
|
-
|
|
6764
|
+
$.value,
|
|
6764
6765
|
e.child,
|
|
6765
6766
|
0,
|
|
6766
6767
|
() => ({}),
|
|
@@ -6799,7 +6800,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6799
6800
|
}), j = j + 60);
|
|
6800
6801
|
const Y = e.id || l.params.id;
|
|
6801
6802
|
if (!p.value && C.value.commonTime && k.push(...Ta()), e.enableAction === !0 && I.value && I.value.length > 0) {
|
|
6802
|
-
const le =
|
|
6803
|
+
const le = Q(I.value);
|
|
6803
6804
|
for (const me of le)
|
|
6804
6805
|
me.type === "group" ? me.children.forEach((Ae) => {
|
|
6805
6806
|
cn(Ae, W);
|
|
@@ -6859,14 +6860,14 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6859
6860
|
W(Y);
|
|
6860
6861
|
});
|
|
6861
6862
|
}, Fa = () => {
|
|
6862
|
-
h.value = "",
|
|
6863
|
+
h.value = "", $.value = [], I.value = [], U.value = [], q.value = {
|
|
6863
6864
|
fetch: null,
|
|
6864
6865
|
when_drawer_open: "",
|
|
6865
6866
|
when_before_save: ""
|
|
6866
6867
|
}, C.value = He();
|
|
6867
6868
|
}, Ba = (k) => {
|
|
6868
6869
|
const V = je.parse(k.viewJson);
|
|
6869
|
-
h.value = k.tableTitle,
|
|
6870
|
+
h.value = k.tableTitle, $.value = Ye(V.table), I.value = Je(e.actions || V.action);
|
|
6870
6871
|
const W = Je(V.suffix || []);
|
|
6871
6872
|
U.value = W.filter((j) => j.main).map((j) => (Ia(j), j)), q.value = fa(V.trigger);
|
|
6872
6873
|
const X = He(e.options ?? V.option);
|
|
@@ -6888,14 +6889,14 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6888
6889
|
R.value = i("Notice.network"), H.value = !0;
|
|
6889
6890
|
return;
|
|
6890
6891
|
}
|
|
6891
|
-
pn(), e.columns ? (
|
|
6892
|
+
pn(), e.columns ? ($.value = e.columns || [], I.value = e.actions || [], U.value = e.suffixes || [], C.value = He(e.options), await un()) : await Xe(k).then(async (V) => {
|
|
6892
6893
|
Ba(V), await un();
|
|
6893
6894
|
}).catch((V) => {
|
|
6894
6895
|
R.value = V.message, H.value = !0;
|
|
6895
6896
|
});
|
|
6896
6897
|
}, Ia = (k) => {
|
|
6897
6898
|
if (k.type !== "group" && k.optionsType) {
|
|
6898
|
-
const V =
|
|
6899
|
+
const V = Q(k.onClick);
|
|
6899
6900
|
k.onClick = () => {
|
|
6900
6901
|
t("update:suffixes", {
|
|
6901
6902
|
title: k.buttonText,
|
|
@@ -6910,7 +6911,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6910
6911
|
});
|
|
6911
6912
|
};
|
|
6912
6913
|
} else if (k.type !== "group") {
|
|
6913
|
-
const V =
|
|
6914
|
+
const V = Q(k.onClick);
|
|
6914
6915
|
k.onClick = async () => {
|
|
6915
6916
|
if (V && typeof V == "string") {
|
|
6916
6917
|
try {
|
|
@@ -6974,7 +6975,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
6974
6975
|
suffixes: U,
|
|
6975
6976
|
spinError: H,
|
|
6976
6977
|
isMobile: p,
|
|
6977
|
-
mRef:
|
|
6978
|
+
mRef: _,
|
|
6978
6979
|
checkRowKeys: O,
|
|
6979
6980
|
route: l,
|
|
6980
6981
|
rowKey: $e,
|
|
@@ -7001,7 +7002,7 @@ const ha = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
|
|
|
7001
7002
|
class: "uz-transform-fade-in"
|
|
7002
7003
|
}, D1 = { class: "uz-com-title" };
|
|
7003
7004
|
function T1(e, t, n, c, l, i) {
|
|
7004
|
-
const a = x("NSkeleton"), p = x("NButton"),
|
|
7005
|
+
const a = x("NSkeleton"), p = x("NButton"), _ = x("Plus"), z = x("NIcon"), D = x("UzActionButton"), N = x("UzSearchMobileBar"), v = x("UzTableMobile"), o = x("Filter"), h = x("NCheckbox"), f = x("GridDots"), u = x("Draggable"), g = x("NPopover"), S = x("UzSearchBar"), y = x("NDataTable"), F = x("NSpin"), K = x("UzTableDrawer");
|
|
7005
7006
|
return s(), d("div", {
|
|
7006
7007
|
class: "uz-table",
|
|
7007
7008
|
style: ye({
|
|
@@ -7089,7 +7090,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7089
7090
|
icon: m(() => [
|
|
7090
7091
|
b(z, null, {
|
|
7091
7092
|
default: m(() => [
|
|
7092
|
-
b(
|
|
7093
|
+
b(_)
|
|
7093
7094
|
]),
|
|
7094
7095
|
_: 1
|
|
7095
7096
|
})
|
|
@@ -7098,7 +7099,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7098
7099
|
E(" " + P(e.$t("Common.add")), 1)
|
|
7099
7100
|
]),
|
|
7100
7101
|
_: 1
|
|
7101
|
-
}, 8, ["disabled", "onClick"])) :
|
|
7102
|
+
}, 8, ["disabled", "onClick"])) : G("", !0),
|
|
7102
7103
|
e.suffixes && e.suffixes.length > 0 ? (s(), B(D, {
|
|
7103
7104
|
key: 1,
|
|
7104
7105
|
data: e.suffixes,
|
|
@@ -7107,7 +7108,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7107
7108
|
size: "medium",
|
|
7108
7109
|
text: !1
|
|
7109
7110
|
}
|
|
7110
|
-
}, null, 8, ["data"])) :
|
|
7111
|
+
}, null, 8, ["data"])) : G("", !0),
|
|
7111
7112
|
ke(e.$slots, "action")
|
|
7112
7113
|
]),
|
|
7113
7114
|
_: 2
|
|
@@ -7184,7 +7185,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7184
7185
|
onEnd: e.handleColumnChange
|
|
7185
7186
|
}), {
|
|
7186
7187
|
item: m(({ element: Z }) => [
|
|
7187
|
-
Z.hide ?
|
|
7188
|
+
Z.hide ? G("", !0) : (s(), d("div", {
|
|
7188
7189
|
key: Z.key,
|
|
7189
7190
|
class: "uz-table-sort"
|
|
7190
7191
|
}, [
|
|
@@ -7218,7 +7219,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7218
7219
|
}, 16, ["modelValue", "onEnd"])
|
|
7219
7220
|
]),
|
|
7220
7221
|
_: 1
|
|
7221
|
-
})) :
|
|
7222
|
+
})) : G("", !0),
|
|
7222
7223
|
e.addFetch && e.tableOption.addButton ? (s(), B(p, {
|
|
7223
7224
|
key: 1,
|
|
7224
7225
|
secondary: "",
|
|
@@ -7228,7 +7229,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7228
7229
|
icon: m(() => [
|
|
7229
7230
|
b(z, null, {
|
|
7230
7231
|
default: m(() => [
|
|
7231
|
-
b(
|
|
7232
|
+
b(_)
|
|
7232
7233
|
]),
|
|
7233
7234
|
_: 1
|
|
7234
7235
|
})
|
|
@@ -7237,7 +7238,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7237
7238
|
E(" " + P(e.$t("Common.add")), 1)
|
|
7238
7239
|
]),
|
|
7239
7240
|
_: 1
|
|
7240
|
-
}, 8, ["disabled", "onClick"])) :
|
|
7241
|
+
}, 8, ["disabled", "onClick"])) : G("", !0),
|
|
7241
7242
|
e.suffixes && e.suffixes.length > 0 ? (s(), B(D, {
|
|
7242
7243
|
key: 2,
|
|
7243
7244
|
data: e.suffixes,
|
|
@@ -7246,7 +7247,7 @@ function T1(e, t, n, c, l, i) {
|
|
|
7246
7247
|
size: "medium",
|
|
7247
7248
|
text: !1
|
|
7248
7249
|
}
|
|
7249
|
-
}, null, 8, ["data"])) :
|
|
7250
|
+
}, null, 8, ["data"])) : G("", !0),
|
|
7250
7251
|
ke(e.$slots, "action")
|
|
7251
7252
|
]),
|
|
7252
7253
|
_: 2
|
|
@@ -7317,7 +7318,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7317
7318
|
},
|
|
7318
7319
|
emits: ["update:value"],
|
|
7319
7320
|
setup(e, { emit: t, expose: n }) {
|
|
7320
|
-
const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(),
|
|
7321
|
+
const c = De("emitSuffix"), l = De("modules"), i = De("mainFormValue"), { t: a } = Qt(), p = M(), _ = M(), z = M(), D = M(!1), N = M(!0), v = M([]), o = M({ child: [] }), h = M(""), f = M({}), u = M([]), g = M(void 0), S = async (C) => {
|
|
7321
7322
|
const { formDefaultValue: R, fillingDefaultArray: H } = await wt(
|
|
7322
7323
|
e.item.params.columns,
|
|
7323
7324
|
C
|
|
@@ -7328,7 +7329,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7328
7329
|
return;
|
|
7329
7330
|
D.value = !0;
|
|
7330
7331
|
const R = await S(C);
|
|
7331
|
-
let H =
|
|
7332
|
+
let H = Q(C).map((O, L) => ({
|
|
7332
7333
|
...O,
|
|
7333
7334
|
...R[L]
|
|
7334
7335
|
}));
|
|
@@ -7357,7 +7358,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7357
7358
|
}, F = (C) => C.delete ? "uz-table-child-delete" : "", K = async (C) => {
|
|
7358
7359
|
e.item._suffix && (u.value = e.item._suffix.filter((ue) => ue.sub)), await S(C);
|
|
7359
7360
|
const { tableColumns: R, tableWidth: H } = await gt(
|
|
7360
|
-
|
|
7361
|
+
Q(C ?? e.item.params.columns),
|
|
7361
7362
|
!0,
|
|
7362
7363
|
e.status,
|
|
7363
7364
|
() => o.value.child,
|
|
@@ -7448,7 +7449,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7448
7449
|
}
|
|
7449
7450
|
return [];
|
|
7450
7451
|
}, ne = async () => {
|
|
7451
|
-
h.value = "", o.value.child.push(
|
|
7452
|
+
h.value = "", o.value.child.push(Q(f.value)), be(() => {
|
|
7452
7453
|
U();
|
|
7453
7454
|
});
|
|
7454
7455
|
}, T = async () => {
|
|
@@ -7482,7 +7483,7 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7482
7483
|
} catch (C) {
|
|
7483
7484
|
oe(C);
|
|
7484
7485
|
}
|
|
7485
|
-
},
|
|
7486
|
+
}, $ = () => {
|
|
7486
7487
|
z.value?.restoreValidation();
|
|
7487
7488
|
}, I = () => (h.value = "", new Promise((C, R) => {
|
|
7488
7489
|
const H = o.value.child.filter(
|
|
@@ -7496,16 +7497,16 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7496
7497
|
O ? (h.value = e.item.form.rule.message, R()) : C();
|
|
7497
7498
|
});
|
|
7498
7499
|
})), U = () => {
|
|
7499
|
-
if (e.item.params.draggable && e.status !== 2 && p.value &&
|
|
7500
|
+
if (e.item.params.draggable && e.status !== 2 && p.value && !_.value) {
|
|
7500
7501
|
const C = p.value.$el.querySelector(".n-data-table-tbody");
|
|
7501
|
-
C && (
|
|
7502
|
+
C && (_.value = hs.create(C, {
|
|
7502
7503
|
handle: ".uz-drag-handle",
|
|
7503
7504
|
// setData(dataTransfer: any) {
|
|
7504
7505
|
// dataTransfer.setData('Text', '')
|
|
7505
7506
|
// },
|
|
7506
7507
|
onEnd: ({ oldIndex: R, newIndex: H }) => {
|
|
7507
|
-
|
|
7508
|
-
let O =
|
|
7508
|
+
_.value?.destroy(), _.value = null, N.value = !1;
|
|
7509
|
+
let O = Q(o.value.child);
|
|
7509
7510
|
const L = O.splice(R, 1)[0];
|
|
7510
7511
|
O.splice(H, 0, L), O = O.map((ue, $e) => ({
|
|
7511
7512
|
...ue,
|
|
@@ -7529,8 +7530,8 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7529
7530
|
});
|
|
7530
7531
|
};
|
|
7531
7532
|
return Ot(() => {
|
|
7532
|
-
|
|
7533
|
-
}), n({ validate: I, restoreValidation:
|
|
7533
|
+
_.value?.destroy(), _.value = null;
|
|
7534
|
+
}), n({ validate: I, restoreValidation: $ }), ce(
|
|
7534
7535
|
() => e.item.params.columns,
|
|
7535
7536
|
(C, R) => {
|
|
7536
7537
|
JSON.stringify(C) !== JSON.stringify(R) && K(C);
|
|
@@ -7570,15 +7571,15 @@ const F1 = /* @__PURE__ */ w(_1, [["render", T1]]), B1 = re({
|
|
|
7570
7571
|
class: "uz-table-asterisk"
|
|
7571
7572
|
}, A1 = { class: "uz-flex uz-gap-2" }, O1 = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
7572
7573
|
function R1(e, t, n, c, l, i) {
|
|
7573
|
-
const a = x("UzIcon"), p = x("NIcon"),
|
|
7574
|
+
const a = x("UzIcon"), p = x("NIcon"), _ = x("NButton"), z = x("Plus"), D = x("NDataTable"), N = x("NForm");
|
|
7574
7575
|
return s(), d("div", I1, [
|
|
7575
7576
|
r("div", V1, [
|
|
7576
7577
|
r("div", U1, [
|
|
7577
7578
|
E(P(e.item.label) + " ", 1),
|
|
7578
|
-
e.item.form.rule.required ? (s(), d("span", j1, " * ")) :
|
|
7579
|
+
e.item.form.rule.required ? (s(), d("span", j1, " * ")) : G("", !0)
|
|
7579
7580
|
]),
|
|
7580
7581
|
r("div", A1, [
|
|
7581
|
-
(s(!0), d(se,
|
|
7582
|
+
e.status !== 2 ? (s(!0), d(se, { key: 0 }, we(e.suffixes, (v) => (s(), B(_, {
|
|
7582
7583
|
key: v.key,
|
|
7583
7584
|
type: v.color,
|
|
7584
7585
|
secondary: "",
|
|
@@ -7603,9 +7604,9 @@ function R1(e, t, n, c, l, i) {
|
|
|
7603
7604
|
]),
|
|
7604
7605
|
key: "0"
|
|
7605
7606
|
} : void 0
|
|
7606
|
-
]), 1032, ["type", "onClick"]))), 128)),
|
|
7607
|
-
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(
|
|
7608
|
-
key:
|
|
7607
|
+
]), 1032, ["type", "onClick"]))), 128)) : G("", !0),
|
|
7608
|
+
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7609
|
+
key: 1,
|
|
7609
7610
|
type: "success",
|
|
7610
7611
|
secondary: "",
|
|
7611
7612
|
onClick: e.onAddFormData
|
|
@@ -7622,9 +7623,9 @@ function R1(e, t, n, c, l, i) {
|
|
|
7622
7623
|
t[0] || (t[0] = E(" 从数据新增 ", -1))
|
|
7623
7624
|
]),
|
|
7624
7625
|
_: 1
|
|
7625
|
-
}, 8, ["onClick"])) :
|
|
7626
|
-
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(
|
|
7627
|
-
key:
|
|
7626
|
+
}, 8, ["onClick"])) : G("", !0),
|
|
7627
|
+
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7628
|
+
key: 2,
|
|
7628
7629
|
type: "success",
|
|
7629
7630
|
secondary: "",
|
|
7630
7631
|
onClick: e.onAdd
|
|
@@ -7641,7 +7642,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7641
7642
|
t[1] || (t[1] = E(" 新增 ", -1))
|
|
7642
7643
|
]),
|
|
7643
7644
|
_: 1
|
|
7644
|
-
}, 8, ["onClick"])) :
|
|
7645
|
+
}, 8, ["onClick"])) : G("", !0)
|
|
7645
7646
|
])
|
|
7646
7647
|
]),
|
|
7647
7648
|
t[4] || (t[4] = r("div", { class: "uz-br" }, null, -1)),
|
|
@@ -7666,9 +7667,9 @@ function R1(e, t, n, c, l, i) {
|
|
|
7666
7667
|
"row-class-name": e.rowClassName,
|
|
7667
7668
|
"scrollbar-props": { size: 8, trigger: "none" },
|
|
7668
7669
|
remote: ""
|
|
7669
|
-
}, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) :
|
|
7670
|
+
}, null, 8, ["columns", "data", "loading", "summary", "scroll-x", "class", "row-class-name"])) : G("", !0),
|
|
7670
7671
|
r("div", O1, [
|
|
7671
|
-
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(
|
|
7672
|
+
e.item.params.optionsType && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7672
7673
|
key: 0,
|
|
7673
7674
|
type: "success",
|
|
7674
7675
|
secondary: "",
|
|
@@ -7686,8 +7687,8 @@ function R1(e, t, n, c, l, i) {
|
|
|
7686
7687
|
t[2] || (t[2] = E(" 从数据新增 ", -1))
|
|
7687
7688
|
]),
|
|
7688
7689
|
_: 1
|
|
7689
|
-
}, 8, ["onClick"])) :
|
|
7690
|
-
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(
|
|
7690
|
+
}, 8, ["onClick"])) : G("", !0),
|
|
7691
|
+
e.item.params.addButton && (e.status !== 2 && (e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) ? (s(), B(_, {
|
|
7691
7692
|
key: 1,
|
|
7692
7693
|
type: "success",
|
|
7693
7694
|
secondary: "",
|
|
@@ -7705,7 +7706,7 @@ function R1(e, t, n, c, l, i) {
|
|
|
7705
7706
|
t[3] || (t[3] = E(" 新增 ", -1))
|
|
7706
7707
|
]),
|
|
7707
7708
|
_: 1
|
|
7708
|
-
}, 8, ["onClick"])) :
|
|
7709
|
+
}, 8, ["onClick"])) : G("", !0)
|
|
7709
7710
|
])
|
|
7710
7711
|
]),
|
|
7711
7712
|
_: 1
|
|
@@ -7726,7 +7727,7 @@ const P1 = /* @__PURE__ */ w(B1, [["render", R1]]), H1 = re({
|
|
|
7726
7727
|
},
|
|
7727
7728
|
emits: ["update:value"],
|
|
7728
7729
|
setup(e) {
|
|
7729
|
-
const t = De("modules"), { t: n } = Qt(), c = M(), l = M(!1), i = M([]), a = M([]), p = M(void 0),
|
|
7730
|
+
const t = De("modules"), { t: n } = Qt(), c = M(), l = M(!1), i = M([]), a = M([]), p = M(void 0), _ = (N) => {
|
|
7730
7731
|
if (l.value = !0, e.item.params.link) {
|
|
7731
7732
|
const v = [];
|
|
7732
7733
|
e.item.params.columns.forEach((o) => {
|
|
@@ -7739,7 +7740,7 @@ const P1 = /* @__PURE__ */ w(B1, [["render", R1]]), H1 = re({
|
|
|
7739
7740
|
}
|
|
7740
7741
|
}, z = async (N) => {
|
|
7741
7742
|
const { tableColumns: v, tableWidth: o } = await gt(
|
|
7742
|
-
|
|
7743
|
+
Q(e.item.params.columns),
|
|
7743
7744
|
!0,
|
|
7744
7745
|
2,
|
|
7745
7746
|
() => a.value,
|
|
@@ -7823,10 +7824,10 @@ const P1 = /* @__PURE__ */ w(B1, [["render", R1]]), H1 = re({
|
|
|
7823
7824
|
}
|
|
7824
7825
|
]
|
|
7825
7826
|
});
|
|
7826
|
-
|
|
7827
|
+
_(N);
|
|
7827
7828
|
}
|
|
7828
7829
|
} catch {
|
|
7829
|
-
|
|
7830
|
+
_([]);
|
|
7830
7831
|
}
|
|
7831
7832
|
}), {
|
|
7832
7833
|
drawerRef: c,
|
|
@@ -7874,7 +7875,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
|
|
|
7874
7875
|
const c = Se(() => fe.isMobile), l = M(), i = M(0), a = M({}), p = M({
|
|
7875
7876
|
link: "",
|
|
7876
7877
|
linkFn: ""
|
|
7877
|
-
}),
|
|
7878
|
+
}), _ = M(!1), z = M({
|
|
7878
7879
|
index: 1,
|
|
7879
7880
|
selection: 0,
|
|
7880
7881
|
// 0:false | 1:multiple:true | 2:multiple:false
|
|
@@ -7895,7 +7896,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
|
|
|
7895
7896
|
when_drawer_open: "",
|
|
7896
7897
|
when_before_save: ""
|
|
7897
7898
|
}), g = M(!1), S = M(), y = () => {
|
|
7898
|
-
l.value?.restoreValidation(), a.value = {}, N.value = !1, D.value = !1,
|
|
7899
|
+
l.value?.restoreValidation(), a.value = {}, N.value = !1, D.value = !1, _.value = !1, t("update:show", !1);
|
|
7899
7900
|
}, F = () => {
|
|
7900
7901
|
i.value !== 2 ? Cf.info({
|
|
7901
7902
|
title: "提示",
|
|
@@ -7922,11 +7923,11 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
|
|
|
7922
7923
|
else
|
|
7923
7924
|
a.value = I;
|
|
7924
7925
|
}, Z = async (I, U, q, C = 0, R) => {
|
|
7925
|
-
v.value = !0, i.value = C, z.value = U, u.value = q,
|
|
7926
|
+
v.value = !0, i.value = C, z.value = U, u.value = q, _.value = !0, I().then(({ form: H, data: O }) => {
|
|
7926
7927
|
f.value = H, a.value = O, S.value = R, v.value = !1;
|
|
7927
7928
|
}).catch(() => null);
|
|
7928
7929
|
}, ne = (I, U, q, C = 0) => {
|
|
7929
|
-
if (i.value = C, S.value = null, v.value = !0,
|
|
7930
|
+
if (i.value = C, S.value = null, v.value = !0, I) {
|
|
7930
7931
|
p.value = {
|
|
7931
7932
|
link: I,
|
|
7932
7933
|
linkFn: U
|
|
@@ -7934,17 +7935,20 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
|
|
|
7934
7935
|
const R = I.split(".")[0];
|
|
7935
7936
|
Xe(R).then((H) => {
|
|
7936
7937
|
be(async () => {
|
|
7937
|
-
const O = je.parse(H.viewJson)
|
|
7938
|
+
const O = je.parse(H.viewJson);
|
|
7939
|
+
z.value = He(O.option), _.value = !0;
|
|
7940
|
+
const { form: L } = await wt(
|
|
7938
7941
|
Ye(O.table)
|
|
7939
7942
|
);
|
|
7940
7943
|
u.value = O.trigger, q && K(q), be(() => {
|
|
7941
|
-
f.value = L,
|
|
7944
|
+
f.value = L, v.value = !1;
|
|
7942
7945
|
});
|
|
7943
7946
|
});
|
|
7944
7947
|
}).catch(() => {
|
|
7945
7948
|
g.value = !0, v.value = !1;
|
|
7946
7949
|
});
|
|
7947
|
-
}
|
|
7950
|
+
} else
|
|
7951
|
+
_.value = !0;
|
|
7948
7952
|
}, T = () => {
|
|
7949
7953
|
h.value = 0, N.value = !0, l.value?.validate().then(async (I) => {
|
|
7950
7954
|
if (u.value.when_before_save) {
|
|
@@ -8001,7 +8005,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
|
|
|
8001
8005
|
});
|
|
8002
8006
|
};
|
|
8003
8007
|
return n({ link: ne, addAndEdit: Z, getFormValues: () => l.value?.getValues() }), {
|
|
8004
|
-
drawer:
|
|
8008
|
+
drawer: _,
|
|
8005
8009
|
formRef: l,
|
|
8006
8010
|
tableOption: z,
|
|
8007
8011
|
ocrShow: D,
|
|
@@ -8024,7 +8028,7 @@ const W1 = /* @__PURE__ */ w(H1, [["render", K1]]), G1 = re({
|
|
|
8024
8028
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
8025
8029
|
}, X1 = { class: "uz-flex uz-gap-2" };
|
|
8026
8030
|
function Y1(e, t, n, c, l, i) {
|
|
8027
|
-
const a = x("NSkeleton"), p = x("UzForm"),
|
|
8031
|
+
const a = x("NSkeleton"), p = x("UzForm"), _ = x("UzSpin"), z = x("NSpin"), D = x("NButton"), N = x("NDrawerContent"), v = x("NDrawer");
|
|
8028
8032
|
return s(), B(v, {
|
|
8029
8033
|
show: e.drawer,
|
|
8030
8034
|
"onUpdate:show": t[1] || (t[1] = (o) => e.drawer = o),
|
|
@@ -8048,7 +8052,7 @@ function Y1(e, t, n, c, l, i) {
|
|
|
8048
8052
|
E(P(e.$t("Notice.error")), 1)
|
|
8049
8053
|
]),
|
|
8050
8054
|
default: m(() => [
|
|
8051
|
-
b(
|
|
8055
|
+
b(_, {
|
|
8052
8056
|
value: e.spinShow,
|
|
8053
8057
|
"onUpdate:value": t[0] || (t[0] = (o) => e.spinShow = o),
|
|
8054
8058
|
message: e.spinMsg,
|
|
@@ -8178,7 +8182,7 @@ function o0(e, t, n, c, l, i) {
|
|
|
8178
8182
|
), {
|
|
8179
8183
|
key: 0,
|
|
8180
8184
|
class: "mobile"
|
|
8181
|
-
})) :
|
|
8185
|
+
})) : G("", !0)
|
|
8182
8186
|
], 64)) : (s(), d(se, { key: 1 }, [
|
|
8183
8187
|
r("div", {
|
|
8184
8188
|
class: ie(["uz-table-mobile-group-title", a.lineBreak ? "line-break" : ""])
|
|
@@ -8246,7 +8250,7 @@ const r0 = /* @__PURE__ */ w(e0, [["render", o0], ["__scopeId", "data-v-01b68b92
|
|
|
8246
8250
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
8247
8251
|
};
|
|
8248
8252
|
function c0(e, t, n, c, l, i) {
|
|
8249
|
-
const a = x("UzTableMobileList"), p = x("NCheckbox"),
|
|
8253
|
+
const a = x("UzTableMobileList"), p = x("NCheckbox"), _ = x("NPagination"), z = x("NCheckboxGroup"), D = x("NRadio"), N = x("NRadioGroup");
|
|
8250
8254
|
return e.selection === 2 ? (s(), B(z, {
|
|
8251
8255
|
key: 0,
|
|
8252
8256
|
value: e.rowKeys,
|
|
@@ -8276,7 +8280,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8276
8280
|
_: 2
|
|
8277
8281
|
}, 1032, ["value"]))), 128)),
|
|
8278
8282
|
e.tableQueries && e.tableData && e.tableData.length > 0 ? (s(), d("div", s0, [
|
|
8279
|
-
b(
|
|
8283
|
+
b(_, {
|
|
8280
8284
|
page: e.tableQueries.query.page,
|
|
8281
8285
|
"onUpdate:page": [
|
|
8282
8286
|
t[0] || (t[0] = (v) => e.tableQueries.query.page = v),
|
|
@@ -8286,7 +8290,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8286
8290
|
"page-size": e.tableQueries.query.pageSize,
|
|
8287
8291
|
size: "large"
|
|
8288
8292
|
}, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
|
|
8289
|
-
])) :
|
|
8293
|
+
])) : G("", !0)
|
|
8290
8294
|
]),
|
|
8291
8295
|
_: 1
|
|
8292
8296
|
}, 8, ["value", "style", "onUpdate:value"])) : e.selection === 1 ? (s(), B(N, {
|
|
@@ -8318,7 +8322,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8318
8322
|
_: 2
|
|
8319
8323
|
}, 1032, ["value"]))), 128)),
|
|
8320
8324
|
e.tableQueries && e.tableData && e.tableData.length > 0 ? (s(), d("div", l0, [
|
|
8321
|
-
b(
|
|
8325
|
+
b(_, {
|
|
8322
8326
|
page: e.tableQueries.query.page,
|
|
8323
8327
|
"onUpdate:page": [
|
|
8324
8328
|
t[2] || (t[2] = (v) => e.tableQueries.query.page = v),
|
|
@@ -8328,7 +8332,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8328
8332
|
"page-size": e.tableQueries.query.pageSize,
|
|
8329
8333
|
size: "large"
|
|
8330
8334
|
}, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
|
|
8331
|
-
])) :
|
|
8335
|
+
])) : G("", !0)
|
|
8332
8336
|
]),
|
|
8333
8337
|
_: 1
|
|
8334
8338
|
}, 8, ["value", "style", "onUpdate:value"])) : (s(), d("div", {
|
|
@@ -8350,7 +8354,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8350
8354
|
}, null, 8, ["tableData", "tableIndex", "tableColumns"])
|
|
8351
8355
|
]))), 128)),
|
|
8352
8356
|
e.tableQueries && e.tableData && e.tableData.length > 0 ? (s(), d("div", i0, [
|
|
8353
|
-
b(
|
|
8357
|
+
b(_, {
|
|
8354
8358
|
page: e.tableQueries.query.page,
|
|
8355
8359
|
"onUpdate:page": [
|
|
8356
8360
|
t[4] || (t[4] = (v) => e.tableQueries.query.page = v),
|
|
@@ -8360,7 +8364,7 @@ function c0(e, t, n, c, l, i) {
|
|
|
8360
8364
|
"page-size": e.tableQueries.query.pageSize,
|
|
8361
8365
|
size: "large"
|
|
8362
8366
|
}, null, 8, ["page", "item-count", "page-size", "onUpdate:page"])
|
|
8363
|
-
])) :
|
|
8367
|
+
])) : G("", !0)
|
|
8364
8368
|
], 4));
|
|
8365
8369
|
}
|
|
8366
8370
|
const u0 = /* @__PURE__ */ w(a0, [["render", c0], ["__scopeId", "data-v-70b54e3b"]]), J = At({
|
|
@@ -8470,7 +8474,7 @@ const p0 = re({
|
|
|
8470
8474
|
}
|
|
8471
8475
|
});
|
|
8472
8476
|
function f0(e, t, n, c, l, i) {
|
|
8473
|
-
const a = x("NTabPane"), p = x("Trash"),
|
|
8477
|
+
const a = x("NTabPane"), p = x("Trash"), _ = x("NIcon"), z = x("NButton"), D = x("NPopconfirm"), N = x("NFlex"), v = x("NTabs");
|
|
8474
8478
|
return s(), B(v, {
|
|
8475
8479
|
value: e.thumbnailStore.active,
|
|
8476
8480
|
type: "card",
|
|
@@ -8487,7 +8491,7 @@ function f0(e, t, n, c, l, i) {
|
|
|
8487
8491
|
trigger: m(() => [
|
|
8488
8492
|
b(z, { class: "uz-button-glass" }, {
|
|
8489
8493
|
default: m(() => [
|
|
8490
|
-
b(
|
|
8494
|
+
b(_, { color: "#e65444" }, {
|
|
8491
8495
|
default: m(() => [
|
|
8492
8496
|
b(p)
|
|
8493
8497
|
]),
|
|
@@ -8858,7 +8862,7 @@ function em(e, t) {
|
|
|
8858
8862
|
}];
|
|
8859
8863
|
}
|
|
8860
8864
|
function tm(e, t, n) {
|
|
8861
|
-
const c = `useQuery-${e}`, l = M(), i = M(), a = M(), p = M(!1),
|
|
8865
|
+
const c = `useQuery-${e}`, l = M(), i = M(), a = M(), p = M(!1), _ = M("idle"), z = M(), D = M(0), N = M(0), v = () => {
|
|
8862
8866
|
kn(), clearInterval(a.value), a.value = null;
|
|
8863
8867
|
}, o = async () => {
|
|
8864
8868
|
if (!p.value) {
|
|
@@ -8892,7 +8896,7 @@ function tm(e, t, n) {
|
|
|
8892
8896
|
n?.formatResult && (F = n.formatResult(y)), i.value = F;
|
|
8893
8897
|
}
|
|
8894
8898
|
}, f = (y, F) => {
|
|
8895
|
-
p.value = y, F && (
|
|
8899
|
+
p.value = y, F && (_.value = F);
|
|
8896
8900
|
}, u = (y) => {
|
|
8897
8901
|
z.value = y;
|
|
8898
8902
|
}, g = () => {
|
|
@@ -8914,7 +8918,7 @@ function tm(e, t, n) {
|
|
|
8914
8918
|
}, n?.pollingInterval)) : (n === void 0 || n.manual === void 0 || n.manual === !1) && o(), Ot(() => {
|
|
8915
8919
|
v();
|
|
8916
8920
|
}), {
|
|
8917
|
-
status:
|
|
8921
|
+
status: _,
|
|
8918
8922
|
data: i,
|
|
8919
8923
|
loading: p,
|
|
8920
8924
|
error: z,
|
|
@@ -8923,7 +8927,7 @@ function tm(e, t, n) {
|
|
|
8923
8927
|
refetch: S
|
|
8924
8928
|
};
|
|
8925
8929
|
}
|
|
8926
|
-
const x0 = "0.1.
|
|
8930
|
+
const x0 = "0.1.13";
|
|
8927
8931
|
let _a;
|
|
8928
8932
|
async function $a() {
|
|
8929
8933
|
const e = await fetch(
|
|
@@ -8946,7 +8950,7 @@ async function $0() {
|
|
|
8946
8950
|
}
|
|
8947
8951
|
let Ut = "", jt;
|
|
8948
8952
|
const te = navigator.userAgent.toLocaleUpperCase(), C0 = () => {
|
|
8949
|
-
const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, c = /WINDOWS NT 10.[\d]+/, l = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, a = /IPHONE/, p = /IPAD/,
|
|
8953
|
+
const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, c = /WINDOWS NT 10.[\d]+/, l = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, a = /IPHONE/, p = /IPAD/, _ = /MAC/;
|
|
8950
8954
|
if (e.test(te)) return "Windows XP";
|
|
8951
8955
|
if (t.test(te)) return "Windows 7";
|
|
8952
8956
|
if (n.test(te)) return "Windows 8";
|
|
@@ -8966,20 +8970,20 @@ const te = navigator.userAgent.toLocaleUpperCase(), C0 = () => {
|
|
|
8966
8970
|
const D = /OS [\d_]+/.exec(te);
|
|
8967
8971
|
return `iPad${D ? D[0].split(" ")[1].replace(/_/g, ".") : ""}`;
|
|
8968
8972
|
}
|
|
8969
|
-
if (
|
|
8973
|
+
if (_.test(te)) {
|
|
8970
8974
|
const D = / [\d_]+/.exec(te);
|
|
8971
8975
|
return `MAC ${D ? D[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
8972
8976
|
}
|
|
8973
8977
|
return "Other Platform";
|
|
8974
8978
|
}, M0 = () => {
|
|
8975
|
-
const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, a = /SE \d/, p = /UCBROWSER/,
|
|
8979
|
+
const e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, c = /CHROME\/[\d.]+/, l = /SAFARI\/[\d.]+/, i = /OPR\/[\d.]+/, a = /SE \d/, p = /UCBROWSER/, _ = /ANDROID [\d.]+/;
|
|
8976
8980
|
if (e.test(te) && a.test(te))
|
|
8977
8981
|
return "SogouIE";
|
|
8978
8982
|
if (a.test(te))
|
|
8979
8983
|
return "SogouFast";
|
|
8980
8984
|
if (p.test(te))
|
|
8981
8985
|
return "UC";
|
|
8982
|
-
if (
|
|
8986
|
+
if (_.test(te))
|
|
8983
8987
|
return "Android";
|
|
8984
8988
|
if (i.test(te))
|
|
8985
8989
|
return "Opera";
|
|
@@ -9071,19 +9075,19 @@ function S0({ components: e = [] } = {}) {
|
|
|
9071
9075
|
}
|
|
9072
9076
|
function c(l, i) {
|
|
9073
9077
|
if (!t.includes(l) && (t.push(l), e.forEach((a) => {
|
|
9074
|
-
const { name: p, alias:
|
|
9075
|
-
n(l, p, a),
|
|
9078
|
+
const { name: p, alias: _ } = a;
|
|
9079
|
+
n(l, p, a), _ && _.forEach((z) => {
|
|
9076
9080
|
n(l, z, a);
|
|
9077
9081
|
});
|
|
9078
9082
|
}), i)) {
|
|
9079
9083
|
const {
|
|
9080
9084
|
monitor: a = !1,
|
|
9081
9085
|
monitorFn: p,
|
|
9082
|
-
version:
|
|
9086
|
+
version: _ = !0,
|
|
9083
9087
|
language: z = !1,
|
|
9084
9088
|
local: D = "zh-CN"
|
|
9085
9089
|
} = i, N = Me("theme", !1), v = Me("lang", D);
|
|
9086
|
-
jf(z), ta(v), na(N), Ne.global.locale.value = v,
|
|
9090
|
+
jf(z), ta(v), na(N), Ne.global.locale.value = v, _ && $0(), a && N0(l, a, p);
|
|
9087
9091
|
}
|
|
9088
9092
|
}
|
|
9089
9093
|
return {
|