@unizhen/ui 0.1.69 → 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/components/common.d.ts +1 -4
- package/lib/components/form/draggable.vue.d.ts +1 -1
- package/lib/components/form/index.vue.d.ts +1 -1
- package/lib/components/form/item.vue.d.ts +1 -1
- package/lib/components/form/upload.vue.d.ts +1 -1
- package/lib/components/local/en-US.json.d.ts +3 -1
- package/lib/components/local/index.d.ts +4 -0
- package/lib/components/local/zh-CN.json.d.ts +3 -1
- package/lib/components/searchBar/index.vue.d.ts +1 -1
- package/lib/components/searchBar/mobile.vue.d.ts +1 -1
- package/lib/components/table/child.vue.d.ts +1 -1
- package/lib/components/table/index.vue.d.ts +4 -0
- package/lib/ui.css +1 -1
- package/lib/ui.js +363 -334
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as
|
|
2
|
-
import { NButton as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as 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: "操作成功",
|
|
@@ -2349,15 +2353,15 @@ function vd(e, t) {
|
|
|
2349
2353
|
return n === "" || e.toLowerCase().includes(n) || _d(e).includes(n);
|
|
2350
2354
|
}
|
|
2351
2355
|
function yd(e, t) {
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
})
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2356
|
+
e.forEach((e) => {
|
|
2357
|
+
let n = t.find((t) => t.key === e.key);
|
|
2358
|
+
n && (e.hide = n.hide, e.show = n.show, e.width = n.width);
|
|
2359
|
+
});
|
|
2360
|
+
let n = new Map(t.map((e, t) => [e.key, t])), r = (e) => e.type === "expand" ? -2 : e.key === "index" ? -1 : e.key === "action" ? 2 ** 53 - 1 : n.has(e.key) ? n.get(e.key) : 2 ** 53 - 1 - 1;
|
|
2361
|
+
return e.map((e, t) => ({
|
|
2362
|
+
item: e,
|
|
2363
|
+
index: t
|
|
2364
|
+
})).sort((e, t) => r(e.item) - r(t.item) || e.index - t.index).map(({ item: e }) => e);
|
|
2361
2365
|
}
|
|
2362
2366
|
//#endregion
|
|
2363
2367
|
//#region components/fetch.ts
|
|
@@ -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,101 +6132,112 @@ 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
|
-
}),
|
|
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
|
-
})
|
|
6142
|
-
let
|
|
6143
|
-
if (!c.value &&
|
|
6144
|
-
let e = H(
|
|
6147
|
+
});
|
|
6148
|
+
let s = e.id || a.params.id;
|
|
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",
|
|
6151
6157
|
align: "center",
|
|
6152
6158
|
fixed: "right",
|
|
6153
|
-
width: F.value.actionWidth,
|
|
6154
6159
|
resizable: !1,
|
|
6155
6160
|
checked: !0,
|
|
6156
6161
|
show: !0,
|
|
6157
6162
|
hide: !0,
|
|
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:
|
|
6163
|
-
tableId:
|
|
6168
|
+
callback: z,
|
|
6169
|
+
tableId: s
|
|
6164
6170
|
});
|
|
6165
6171
|
}
|
|
6166
6172
|
};
|
|
6167
|
-
|
|
6173
|
+
t.push(n);
|
|
6168
6174
|
}
|
|
6169
|
-
let
|
|
6170
|
-
if (
|
|
6171
|
-
let e = Y(`tables_filter_${
|
|
6175
|
+
let l = t;
|
|
6176
|
+
if (s) {
|
|
6177
|
+
let e = Y(`tables_filter_${s}`, !1);
|
|
6172
6178
|
if (e) try {
|
|
6173
|
-
let n = await Id(
|
|
6174
|
-
n && (e = JSON.parse(n),
|
|
6179
|
+
let n = await Id(s);
|
|
6180
|
+
n && (e = JSON.parse(n), l = yd(t, e));
|
|
6175
6181
|
} catch {}
|
|
6176
6182
|
}
|
|
6177
|
-
i.link &&
|
|
6183
|
+
i.link && l.unshift({
|
|
6178
6184
|
type: "expand",
|
|
6179
6185
|
show: !0,
|
|
6180
6186
|
hide: !0,
|
|
6187
|
+
width: 40,
|
|
6181
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") })]),
|
|
6182
6192
|
renderExpand: (e) => f(Yp, {
|
|
6183
6193
|
data: i,
|
|
6184
6194
|
value: e
|
|
6185
6195
|
})
|
|
6186
|
-
})
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6196
|
+
});
|
|
6197
|
+
let u = 0;
|
|
6198
|
+
l.forEach((e) => {
|
|
6199
|
+
e.show && (u += Number(e.width || 140));
|
|
6200
|
+
}), C.value = l, ee.value = n, E.value = u;
|
|
6201
|
+
}, Te = (e) => typeof e == "number" ? `${e}px` : e, Ee = () => {
|
|
6190
6202
|
if (e.height) {
|
|
6191
|
-
let t =
|
|
6192
|
-
|
|
6203
|
+
let t = Te(e.height);
|
|
6204
|
+
k.value = t, te.value = t;
|
|
6193
6205
|
return;
|
|
6194
6206
|
}
|
|
6195
|
-
},
|
|
6207
|
+
}, De = (t) => {
|
|
6196
6208
|
let n = e.id || a.params.id;
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6209
|
+
if (n) {
|
|
6210
|
+
let e = 0;
|
|
6211
|
+
C.value.forEach((t) => {
|
|
6212
|
+
t.show && (e += Number(t.width || 140));
|
|
6213
|
+
}), E.value = e, J(`tables_filter_${n}`, t.filter((e) => e.key)), Ld({
|
|
6214
|
+
table_id: n,
|
|
6215
|
+
data: JSON.stringify(t)
|
|
6216
|
+
}).catch(() => null);
|
|
6217
|
+
}
|
|
6218
|
+
}, { run: Oe } = Tp(De), { run: ke } = Tp((e, t) => {
|
|
6202
6219
|
let n = [];
|
|
6203
6220
|
C.value.forEach((r) => {
|
|
6204
|
-
|
|
6221
|
+
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
6205
6222
|
key: r.key,
|
|
6206
6223
|
show: r.show,
|
|
6207
6224
|
hide: r.hide,
|
|
6208
6225
|
fixed: r.fixed,
|
|
6209
6226
|
width: r.key === t ? Number(e.toFixed(0)) : r.width
|
|
6210
6227
|
});
|
|
6211
|
-
}),
|
|
6212
|
-
}),
|
|
6228
|
+
}), De(n);
|
|
6229
|
+
}), Ae = () => {
|
|
6213
6230
|
let e = [];
|
|
6214
6231
|
C.value.forEach((t) => {
|
|
6215
|
-
|
|
6232
|
+
t.key !== "action" && t.key !== "index" && t.type !== "expand" && e.push({
|
|
6216
6233
|
key: t.key,
|
|
6217
6234
|
show: t.show,
|
|
6218
6235
|
hide: t.hide,
|
|
6219
6236
|
fixed: t.fixed,
|
|
6220
6237
|
width: t.width
|
|
6221
6238
|
});
|
|
6222
|
-
}),
|
|
6223
|
-
},
|
|
6239
|
+
}), Oe(e);
|
|
6240
|
+
}, je = (t, n, r) => {
|
|
6224
6241
|
let i, o = e.id || a.params.id;
|
|
6225
6242
|
i = e.formFetch ? e.formFetch({
|
|
6226
6243
|
tableId: o,
|
|
@@ -6229,27 +6246,27 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6229
6246
|
tableId: o,
|
|
6230
6247
|
...t
|
|
6231
6248
|
}), i.then(() => {
|
|
6232
|
-
|
|
6249
|
+
z(), n();
|
|
6233
6250
|
}).catch((e) => {
|
|
6234
6251
|
r(e);
|
|
6235
6252
|
});
|
|
6236
|
-
},
|
|
6237
|
-
v.value = "",
|
|
6253
|
+
}, Me = () => {
|
|
6254
|
+
v.value = "", M.value = [], N.value = [], P.value = [], F.value = {
|
|
6238
6255
|
fetch: null,
|
|
6239
6256
|
when_drawer_open: "",
|
|
6240
6257
|
when_before_save: ""
|
|
6241
|
-
},
|
|
6242
|
-
},
|
|
6258
|
+
}, I.value = Vp();
|
|
6259
|
+
}, Ne = (t) => {
|
|
6243
6260
|
let n = rt.parse(t.viewJson);
|
|
6244
|
-
v.value = t.tableTitle,
|
|
6261
|
+
v.value = t.tableTitle, M.value = Lp(n.table), N.value = Qd(e.actions || n.action);
|
|
6245
6262
|
let r = Qd(n.suffix || []);
|
|
6246
|
-
|
|
6263
|
+
P.value = r.filter((e) => e.main).map((e) => (Fe(e), e)), F.value = zp(n.trigger);
|
|
6247
6264
|
let i = Vp(e.options ?? n.option);
|
|
6248
|
-
t.tableTitle && i.title && fd(t.tableTitle),
|
|
6249
|
-
},
|
|
6250
|
-
_.value = !1,
|
|
6265
|
+
t.tableTitle && i.title && fd(t.tableTitle), I.value = i;
|
|
6266
|
+
}, Pe = async () => {
|
|
6267
|
+
_.value = !1, Me();
|
|
6251
6268
|
let t = e.id || a.params.id;
|
|
6252
|
-
if (
|
|
6269
|
+
if (O.value = {
|
|
6253
6270
|
params: [],
|
|
6254
6271
|
query: {
|
|
6255
6272
|
page: 1,
|
|
@@ -6257,17 +6274,17 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6257
6274
|
pageSize: e.pageSize || 30
|
|
6258
6275
|
}
|
|
6259
6276
|
}, T.value = [], e.ruleFetch) try {
|
|
6260
|
-
|
|
6277
|
+
A.value = await e.ruleFetch(t);
|
|
6261
6278
|
} catch {
|
|
6262
|
-
ne.value = o("Notice.network"),
|
|
6279
|
+
ne.value = o("Notice.network"), re.value = !0;
|
|
6263
6280
|
return;
|
|
6264
6281
|
}
|
|
6265
|
-
|
|
6266
|
-
|
|
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();
|
|
6267
6284
|
}).catch((e) => {
|
|
6268
|
-
ne.value = e?.message || o("Notice.network"),
|
|
6285
|
+
ne.value = e?.message || o("Notice.network"), re.value = !0;
|
|
6269
6286
|
});
|
|
6270
|
-
},
|
|
6287
|
+
}, Fe = (e) => {
|
|
6271
6288
|
if (e.type !== "group" && e.optionsType) {
|
|
6272
6289
|
let t = H(e.onClick);
|
|
6273
6290
|
e.onClick = () => {
|
|
@@ -6289,7 +6306,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6289
6306
|
if (t && typeof t == "string") {
|
|
6290
6307
|
try {
|
|
6291
6308
|
let e = Function("POST", "fnNotification", t);
|
|
6292
|
-
await e(Z, s, e),
|
|
6309
|
+
await e(Z, s, e), z();
|
|
6293
6310
|
} catch (e) {
|
|
6294
6311
|
q(e);
|
|
6295
6312
|
}
|
|
@@ -6297,36 +6314,52 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6297
6314
|
}
|
|
6298
6315
|
};
|
|
6299
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 = [];
|
|
6300
6333
|
};
|
|
6301
6334
|
return r({
|
|
6302
|
-
rebuild:
|
|
6303
|
-
init:
|
|
6304
|
-
nextPage:
|
|
6335
|
+
rebuild: Pe,
|
|
6336
|
+
init: z,
|
|
6337
|
+
nextPage: fe
|
|
6305
6338
|
}), y(async () => {
|
|
6306
|
-
await
|
|
6339
|
+
await Pe(), h(() => {
|
|
6307
6340
|
u.value?.scrollTo({
|
|
6308
6341
|
left: 0,
|
|
6309
6342
|
right: 0
|
|
6310
6343
|
});
|
|
6311
6344
|
});
|
|
6312
6345
|
}), j(() => C.value, (e) => {
|
|
6313
|
-
|
|
6346
|
+
_e(e);
|
|
6314
6347
|
}, { deep: !0 }), j(() => e.height, () => {
|
|
6315
|
-
|
|
6348
|
+
Ee();
|
|
6316
6349
|
}), j([() => a.params.id, () => e.id], async () => {
|
|
6317
|
-
ld(), await
|
|
6350
|
+
ld(), await Pe();
|
|
6318
6351
|
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
6319
|
-
let t = e || [], n =
|
|
6320
|
-
|
|
6352
|
+
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6353
|
+
ie.value = t, R.value = n;
|
|
6321
6354
|
}, { deep: !0 }), {
|
|
6322
6355
|
loading: g,
|
|
6323
|
-
minH:
|
|
6324
|
-
maxH:
|
|
6356
|
+
minH: k,
|
|
6357
|
+
maxH: te,
|
|
6325
6358
|
drawerRef: d,
|
|
6326
|
-
tableOption:
|
|
6359
|
+
tableOption: I,
|
|
6327
6360
|
tableCols: x,
|
|
6328
6361
|
tableData: T,
|
|
6329
|
-
tableQueries:
|
|
6362
|
+
tableQueries: O,
|
|
6330
6363
|
searchData: ee,
|
|
6331
6364
|
filterColumns: C,
|
|
6332
6365
|
isSlotHeader: m,
|
|
@@ -6334,40 +6367,32 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6334
6367
|
dynamicLoading: _,
|
|
6335
6368
|
spinMsg: ne,
|
|
6336
6369
|
tableScrollX: E,
|
|
6337
|
-
suffixes:
|
|
6338
|
-
spinError:
|
|
6370
|
+
suffixes: P,
|
|
6371
|
+
spinError: re,
|
|
6339
6372
|
isMobile: c,
|
|
6340
6373
|
mRef: l,
|
|
6341
|
-
checkRowKeys:
|
|
6374
|
+
checkRowKeys: ie,
|
|
6342
6375
|
route: a,
|
|
6343
|
-
rowKey:
|
|
6344
|
-
pageChange:
|
|
6345
|
-
pageSizeChange:
|
|
6346
|
-
pageSorter:
|
|
6347
|
-
showChange:
|
|
6348
|
-
submit:
|
|
6349
|
-
handleAdd:
|
|
6350
|
-
handleColumnChange:
|
|
6351
|
-
handleCheckRowKeys:
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
data: null
|
|
6364
|
-
}).catch(() => null).finally(() => {
|
|
6365
|
-
Se(), g.value = !1;
|
|
6366
|
-
}));
|
|
6367
|
-
},
|
|
6368
|
-
handleColumnResize: (e, t, n) => {
|
|
6369
|
-
De(e, n.key);
|
|
6370
|
-
}
|
|
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
|
|
6371
6396
|
};
|
|
6372
6397
|
}
|
|
6373
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 = {
|
|
@@ -6378,7 +6403,7 @@ var Yp = /*#__PURE__*/ U(qp, [["render", Jp]]), Xp = d({
|
|
|
6378
6403
|
class: "uz-transform-fade-in"
|
|
6379
6404
|
}, rm = { class: "uz-com-title" }, im = ["data-index"];
|
|
6380
6405
|
function am(t, s, u, d, f, p) {
|
|
6381
|
-
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");
|
|
6382
6407
|
return x(), i("div", {
|
|
6383
6408
|
class: "uz-table",
|
|
6384
6409
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
@@ -6416,12 +6441,12 @@ function am(t, s, u, d, f, p) {
|
|
|
6416
6441
|
width: "100%",
|
|
6417
6442
|
size: "medium"
|
|
6418
6443
|
})], 512), [[A, !t.dynamicLoading]]),
|
|
6419
|
-
P(l(
|
|
6444
|
+
P(l(I, {
|
|
6420
6445
|
show: t.spinError,
|
|
6421
6446
|
class: "uz-table-n-spin"
|
|
6422
6447
|
}, {
|
|
6423
6448
|
description: N(() => [
|
|
6424
|
-
a("div", null,
|
|
6449
|
+
a("div", null, k(t.spinMsg), 1),
|
|
6425
6450
|
s[2] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6426
6451
|
l(h, {
|
|
6427
6452
|
type: "primary",
|
|
@@ -6453,7 +6478,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6453
6478
|
default: N(() => [l(v)]),
|
|
6454
6479
|
_: 1
|
|
6455
6480
|
})]),
|
|
6456
|
-
default: N(() => [c(" " +
|
|
6481
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6457
6482
|
_: 1
|
|
6458
6483
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6459
6484
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6474,7 +6499,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6474
6499
|
key: "0"
|
|
6475
6500
|
} : {
|
|
6476
6501
|
name: "header",
|
|
6477
|
-
fn: N(() => [a("div", em,
|
|
6502
|
+
fn: N(() => [a("div", em, k(t.title), 1)]),
|
|
6478
6503
|
key: "1"
|
|
6479
6504
|
}]), 1032, [
|
|
6480
6505
|
"data",
|
|
@@ -6521,10 +6546,10 @@ function am(t, s, u, d, f, p) {
|
|
|
6521
6546
|
default: N(() => [l(w)]),
|
|
6522
6547
|
_: 1
|
|
6523
6548
|
})]),
|
|
6524
|
-
default: N(() => [c(" " +
|
|
6549
|
+
default: N(() => [c(" " + k(t.$t("Common.columns")), 1)]),
|
|
6525
6550
|
_: 1
|
|
6526
6551
|
})]),
|
|
6527
|
-
default: N(() => [l(
|
|
6552
|
+
default: N(() => [l(te, {
|
|
6528
6553
|
modelValue: t.filterColumns,
|
|
6529
6554
|
"onUpdate:modelValue": s[0] ||= (e) => t.filterColumns = e,
|
|
6530
6555
|
animation: 200,
|
|
@@ -6539,19 +6564,19 @@ function am(t, s, u, d, f, p) {
|
|
|
6539
6564
|
key: e.key,
|
|
6540
6565
|
class: "uz-table-sort",
|
|
6541
6566
|
"data-index": n
|
|
6542
|
-
}, [l(
|
|
6567
|
+
}, [l(O, {
|
|
6543
6568
|
checked: e.show,
|
|
6544
6569
|
"on-update:checked": () => t.showChange(e),
|
|
6545
6570
|
size: "large"
|
|
6546
6571
|
}, {
|
|
6547
|
-
default: N(() => [c(
|
|
6572
|
+
default: N(() => [c(k(typeof e.title == "string" ? e.title : e.title && e.title()), 1)]),
|
|
6548
6573
|
_: 2
|
|
6549
6574
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
6550
6575
|
quaternary: "",
|
|
6551
6576
|
class: "uz-drag-handle"
|
|
6552
6577
|
}, {
|
|
6553
6578
|
icon: N(() => [l(y, { size: "18" }, {
|
|
6554
|
-
default: N(() => [l(
|
|
6579
|
+
default: N(() => [l(ee)]),
|
|
6555
6580
|
_: 1
|
|
6556
6581
|
})]),
|
|
6557
6582
|
_: 1
|
|
@@ -6561,7 +6586,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6561
6586
|
loading: t.loading,
|
|
6562
6587
|
onClick: t.resetFilter
|
|
6563
6588
|
}, {
|
|
6564
|
-
default: N(() => [c(
|
|
6589
|
+
default: N(() => [c(k(t.$t("Common.reset")), 1)]),
|
|
6565
6590
|
_: 1
|
|
6566
6591
|
}, 8, ["loading", "onClick"])]),
|
|
6567
6592
|
_: 1
|
|
@@ -6578,7 +6603,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6578
6603
|
default: N(() => [l(v)]),
|
|
6579
6604
|
_: 1
|
|
6580
6605
|
})]),
|
|
6581
|
-
default: N(() => [c(" " +
|
|
6606
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6582
6607
|
_: 1
|
|
6583
6608
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6584
6609
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6599,7 +6624,7 @@ function am(t, s, u, d, f, p) {
|
|
|
6599
6624
|
key: "0"
|
|
6600
6625
|
} : {
|
|
6601
6626
|
name: "header",
|
|
6602
|
-
fn: N(() => [a("div", rm,
|
|
6627
|
+
fn: N(() => [a("div", rm, k(t.title), 1)]),
|
|
6603
6628
|
key: "1"
|
|
6604
6629
|
}]), 1032, [
|
|
6605
6630
|
"data",
|
|
@@ -6632,7 +6657,9 @@ function am(t, s, u, d, f, p) {
|
|
|
6632
6657
|
size: 8,
|
|
6633
6658
|
trigger: "hover"
|
|
6634
6659
|
},
|
|
6660
|
+
"expanded-row-keys": t.expandedRowKeys,
|
|
6635
6661
|
"onUpdate:checkedRowKeys": t.handleCheckRowKeys,
|
|
6662
|
+
"onUpdate:expandedRowKeys": t.handleExpandedRowKeys,
|
|
6636
6663
|
"sticky-expanded-rows": "",
|
|
6637
6664
|
remote: ""
|
|
6638
6665
|
}, null, 8, [
|
|
@@ -6652,21 +6679,23 @@ function am(t, s, u, d, f, p) {
|
|
|
6652
6679
|
"checked-row-keys",
|
|
6653
6680
|
"summary",
|
|
6654
6681
|
"on-unstable-column-resize",
|
|
6655
|
-
"
|
|
6682
|
+
"expanded-row-keys",
|
|
6683
|
+
"onUpdate:checkedRowKeys",
|
|
6684
|
+
"onUpdate:expandedRowKeys"
|
|
6656
6685
|
])]))]),
|
|
6657
6686
|
_: 3
|
|
6658
6687
|
}, 8, ["show"]), [[A, t.dynamicLoading]]),
|
|
6659
|
-
l(
|
|
6688
|
+
l(L, { ref: "drawerRef" }, null, 512)
|
|
6660
6689
|
], 4);
|
|
6661
6690
|
}
|
|
6662
6691
|
var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
6663
6692
|
name: "UzTableChild",
|
|
6664
6693
|
components: {
|
|
6665
6694
|
NSpin: Ne,
|
|
6666
|
-
NButton:
|
|
6667
|
-
NIcon:
|
|
6668
|
-
NDataTable:
|
|
6669
|
-
NForm:
|
|
6695
|
+
NButton: L,
|
|
6696
|
+
NIcon: B,
|
|
6697
|
+
NDataTable: se,
|
|
6698
|
+
NForm: me,
|
|
6670
6699
|
NDivider: le,
|
|
6671
6700
|
Plus: dc,
|
|
6672
6701
|
GridDots: ts
|
|
@@ -6691,7 +6720,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6691
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) => {
|
|
6692
6721
|
let { formDefaultValue: r, fillingDefaultArray: i } = await Hp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6693
6722
|
return C.value = r, i;
|
|
6694
|
-
},
|
|
6723
|
+
}, O = async (t) => {
|
|
6695
6724
|
if (_.value) return;
|
|
6696
6725
|
_.value = !0;
|
|
6697
6726
|
let n = await D(t), r = H(t).map((e, t) => ({
|
|
@@ -6718,7 +6747,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6718
6747
|
} else h(() => {
|
|
6719
6748
|
F();
|
|
6720
6749
|
});
|
|
6721
|
-
},
|
|
6750
|
+
}, ee = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6722
6751
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6723
6752
|
let { tableColumns: r, tableWidth: i } = await Up(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6724
6753
|
r.unshift({
|
|
@@ -6739,7 +6768,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6739
6768
|
hide: !0,
|
|
6740
6769
|
show: !0,
|
|
6741
6770
|
render() {
|
|
6742
|
-
return f("div", { class: "flex justify-center" }, f(
|
|
6771
|
+
return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(ts) }));
|
|
6743
6772
|
}
|
|
6744
6773
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
6745
6774
|
title: () => l("Common.action"),
|
|
@@ -6775,7 +6804,7 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6775
6804
|
r.forEach((e) => {
|
|
6776
6805
|
e.show && c.push(e);
|
|
6777
6806
|
}), b.value = c, s += 180, E.value = s, g.value = !1;
|
|
6778
|
-
},
|
|
6807
|
+
}, te = (t) => {
|
|
6779
6808
|
if (e.item.params.summary) {
|
|
6780
6809
|
if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
|
|
6781
6810
|
try {
|
|
@@ -6857,19 +6886,19 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6857
6886
|
validate: P,
|
|
6858
6887
|
restoreValidation: N
|
|
6859
6888
|
}), j(() => e.item.params.columns, (e, t) => {
|
|
6860
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
6889
|
+
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6861
6890
|
}, {
|
|
6862
6891
|
deep: !0,
|
|
6863
6892
|
immediate: !0
|
|
6864
6893
|
}), j(() => e.value, (e) => {
|
|
6865
|
-
JSON.stringify(e) !== JSON.stringify(x.value.child) &&
|
|
6894
|
+
JSON.stringify(e) !== JSON.stringify(x.value.child) && O(e);
|
|
6866
6895
|
}, {
|
|
6867
6896
|
deep: !0,
|
|
6868
6897
|
immediate: !0
|
|
6869
6898
|
}), j(() => x.value.child, (t) => {
|
|
6870
6899
|
e.status !== 2 && n("update:value", t);
|
|
6871
6900
|
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6872
|
-
await
|
|
6901
|
+
await k(void 0, !0);
|
|
6873
6902
|
}), {
|
|
6874
6903
|
spin: g,
|
|
6875
6904
|
loading: _,
|
|
@@ -6877,14 +6906,14 @@ var om = /*#__PURE__*/ U(Xp, [["render", am]]), sm = d({
|
|
|
6877
6906
|
tableRef: u,
|
|
6878
6907
|
columns: b,
|
|
6879
6908
|
tableData: x,
|
|
6880
|
-
summaryData:
|
|
6909
|
+
summaryData: te,
|
|
6881
6910
|
message: S,
|
|
6882
6911
|
tableScrollX: E,
|
|
6883
6912
|
tableShow: y,
|
|
6884
6913
|
suffixes: T,
|
|
6885
6914
|
onAdd: A,
|
|
6886
6915
|
onAddFormData: M,
|
|
6887
|
-
rowClassName:
|
|
6916
|
+
rowClassName: ee,
|
|
6888
6917
|
doSuffixClick: (e) => {
|
|
6889
6918
|
i({
|
|
6890
6919
|
open: e.optionsType,
|
|
@@ -6908,14 +6937,14 @@ function pm(t, s, u, d, f, p) {
|
|
|
6908
6937
|
class: "uz-flex-1 uz-w-full"
|
|
6909
6938
|
}, {
|
|
6910
6939
|
default: N(() => [
|
|
6911
|
-
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, [
|
|
6912
6941
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6913
6942
|
key: e.key,
|
|
6914
6943
|
type: e.color,
|
|
6915
6944
|
secondary: "",
|
|
6916
6945
|
onClick: (n) => t.doSuffixClick(e)
|
|
6917
6946
|
}, o({
|
|
6918
|
-
default: N(() => [c(" " +
|
|
6947
|
+
default: N(() => [c(" " + k(e.buttonText), 1)]),
|
|
6919
6948
|
_: 2
|
|
6920
6949
|
}, [e.icon ? {
|
|
6921
6950
|
name: "icon",
|
|
@@ -7017,7 +7046,7 @@ function pm(t, s, u, d, f, p) {
|
|
|
7017
7046
|
}
|
|
7018
7047
|
var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
7019
7048
|
name: "UzTableQuestChild",
|
|
7020
|
-
components: { NDataTable:
|
|
7049
|
+
components: { NDataTable: se },
|
|
7021
7050
|
props: {
|
|
7022
7051
|
formValue: {
|
|
7023
7052
|
type: Object,
|
|
@@ -7121,7 +7150,7 @@ var mm = /*#__PURE__*/ U(sm, [["render", pm]]), hm = d({
|
|
|
7121
7150
|
function ym(e, t, n, r, o, s) {
|
|
7122
7151
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
7123
7152
|
return x(), i("div", gm, [
|
|
7124
|
-
a("div", _m, [a("div", vm,
|
|
7153
|
+
a("div", _m, [a("div", vm, k(e.item.label), 1)]),
|
|
7125
7154
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
7126
7155
|
l(c, {
|
|
7127
7156
|
columns: e.columns,
|
|
@@ -7149,13 +7178,13 @@ function ym(e, t, n, r, o, s) {
|
|
|
7149
7178
|
var bm = /*#__PURE__*/ U(hm, [["render", ym]]), xm = d({
|
|
7150
7179
|
name: "UzTableDrawer",
|
|
7151
7180
|
components: {
|
|
7152
|
-
NButton:
|
|
7153
|
-
NDrawerContent:
|
|
7181
|
+
NButton: L,
|
|
7182
|
+
NDrawerContent: z,
|
|
7154
7183
|
NDrawer: ue,
|
|
7155
7184
|
NSkeleton: je,
|
|
7156
7185
|
NSpin: Ne,
|
|
7157
|
-
NPopover:
|
|
7158
|
-
NModal:
|
|
7186
|
+
NPopover: De,
|
|
7187
|
+
NModal: we
|
|
7159
7188
|
},
|
|
7160
7189
|
emits: ["update:show", "on-submit"],
|
|
7161
7190
|
setup(e, { emit: n, expose: r }) {
|
|
@@ -7335,7 +7364,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7335
7364
|
closable: ""
|
|
7336
7365
|
}, o({
|
|
7337
7366
|
default: N(() => [l(_, { show: t.spinError }, {
|
|
7338
|
-
description: N(() => [c(
|
|
7367
|
+
description: N(() => [c(k(t.$t("Notice.error")), 1)]),
|
|
7339
7368
|
default: N(() => [l(g, {
|
|
7340
7369
|
value: t.spinShow,
|
|
7341
7370
|
"onUpdate:value": s[0] ||= (e) => t.spinShow = e,
|
|
@@ -7411,7 +7440,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7411
7440
|
class: "uz-drawer-button",
|
|
7412
7441
|
onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
7413
7442
|
}, {
|
|
7414
|
-
default: N(() => [c(
|
|
7443
|
+
default: N(() => [c(k(t.$t("OCR.ocr")), 1)]),
|
|
7415
7444
|
_: 1
|
|
7416
7445
|
}, 8, ["loading"]), a("div", Tm, [
|
|
7417
7446
|
l(v, {
|
|
@@ -7420,7 +7449,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7420
7449
|
secondary: "",
|
|
7421
7450
|
onClick: t.drawerCheck
|
|
7422
7451
|
}, {
|
|
7423
|
-
default: N(() => [c(
|
|
7452
|
+
default: N(() => [c(k(t.$t("Common.cancel")), 1)]),
|
|
7424
7453
|
_: 1
|
|
7425
7454
|
}, 8, ["loading", "onClick"]),
|
|
7426
7455
|
t.formStatus === 0 ? (x(), n(y, {
|
|
@@ -7434,7 +7463,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7434
7463
|
secondary: "",
|
|
7435
7464
|
onClick: t.doCacheToStore
|
|
7436
7465
|
}, {
|
|
7437
|
-
default: N(() => [c(
|
|
7466
|
+
default: N(() => [c(k(t.$t("Common.cache")), 1)]),
|
|
7438
7467
|
_: 1
|
|
7439
7468
|
}, 8, ["loading", "onClick"])]),
|
|
7440
7469
|
default: N(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
|
|
@@ -7446,7 +7475,7 @@ function Em(t, s, u, d, f, p) {
|
|
|
7446
7475
|
type: "primary",
|
|
7447
7476
|
onClick: t.drawerSubmit
|
|
7448
7477
|
}, {
|
|
7449
|
-
default: N(() => [c(
|
|
7478
|
+
default: N(() => [c(k(t.$t("Common.apply")), 1)]),
|
|
7450
7479
|
_: 1
|
|
7451
7480
|
}, 8, ["loading", "onClick"])
|
|
7452
7481
|
])])]),
|
|
@@ -7508,14 +7537,14 @@ function jm(t, o, s, c, l, u) {
|
|
|
7508
7537
|
key: o.key,
|
|
7509
7538
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7510
7539
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
7511
|
-
}, [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(() => {
|
|
7512
7541
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7513
7542
|
}), {
|
|
7514
7543
|
key: 0,
|
|
7515
7544
|
class: "mobile"
|
|
7516
|
-
})) : 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(() => {
|
|
7517
7546
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7518
|
-
}), { key: 0 })) : (x(), i("div", Am,
|
|
7547
|
+
}), { key: 0 })) : (x(), i("div", Am, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7519
7548
|
}
|
|
7520
7549
|
//#endregion
|
|
7521
7550
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
@@ -7524,8 +7553,8 @@ var Mm = d({
|
|
|
7524
7553
|
components: {
|
|
7525
7554
|
NCheckbox: ie,
|
|
7526
7555
|
NRadio: Oe,
|
|
7527
|
-
NPagination:
|
|
7528
|
-
NCheckboxGroup:
|
|
7556
|
+
NPagination: Te,
|
|
7557
|
+
NCheckboxGroup: R,
|
|
7529
7558
|
NRadioGroup: ke,
|
|
7530
7559
|
UzTableMobileList: /* @__PURE__ */ U(Om, [["render", jm], ["__scopeId", "data-v-84c394fe"]])
|
|
7531
7560
|
},
|
|
@@ -7760,10 +7789,10 @@ var Wm = d({
|
|
|
7760
7789
|
components: {
|
|
7761
7790
|
NTabs: Ie,
|
|
7762
7791
|
NTabPane: Fe,
|
|
7763
|
-
NButton:
|
|
7764
|
-
NIcon:
|
|
7765
|
-
NPopconfirm:
|
|
7766
|
-
NFlex:
|
|
7792
|
+
NButton: L,
|
|
7793
|
+
NIcon: B,
|
|
7794
|
+
NPopconfirm: Ee,
|
|
7795
|
+
NFlex: pe,
|
|
7767
7796
|
Trash: xl
|
|
7768
7797
|
},
|
|
7769
7798
|
props: { option: {
|
|
@@ -7881,7 +7910,7 @@ var rh = {
|
|
|
7881
7910
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7882
7911
|
}, ih = V, ah = d({
|
|
7883
7912
|
name: "UzWrap",
|
|
7884
|
-
components: { NConfigProvider:
|
|
7913
|
+
components: { NConfigProvider: oe },
|
|
7885
7914
|
setup() {
|
|
7886
7915
|
return {
|
|
7887
7916
|
zhCN: We,
|
|
@@ -8005,7 +8034,7 @@ function uh(e, t) {
|
|
|
8005
8034
|
var dh = d({
|
|
8006
8035
|
name: "UzOcr",
|
|
8007
8036
|
components: {
|
|
8008
|
-
NButton:
|
|
8037
|
+
NButton: L,
|
|
8009
8038
|
NUpload: ze,
|
|
8010
8039
|
NSelect: Ae,
|
|
8011
8040
|
NSwitch: Pe,
|
|
@@ -8170,7 +8199,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8170
8199
|
src: e.processedImage,
|
|
8171
8200
|
alt: "Processed Preview",
|
|
8172
8201
|
class: "uz-ocr-preview-img"
|
|
8173
|
-
}, 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)])]),
|
|
8174
8203
|
_: 1
|
|
8175
8204
|
}, 8, ["tab"]), l(p, {
|
|
8176
8205
|
name: "raw",
|
|
@@ -8202,7 +8231,7 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8202
8231
|
loading: e.ocrLoading,
|
|
8203
8232
|
onClick: e.handleManualOcr
|
|
8204
8233
|
}, {
|
|
8205
|
-
default: N(() => [c(
|
|
8234
|
+
default: N(() => [c(k(e.t("OCR.reRecognize")), 1)]),
|
|
8206
8235
|
_: 1
|
|
8207
8236
|
}, 8, ["loading", "onClick"])]),
|
|
8208
8237
|
_: 1
|
|
@@ -8222,25 +8251,25 @@ function Ih(e, t, o, s, u, d) {
|
|
|
8222
8251
|
height: "40",
|
|
8223
8252
|
fill: "currentColor"
|
|
8224
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),
|
|
8225
|
-
a("div", hh,
|
|
8254
|
+
a("div", hh, k(e.t("OCR.scan")), 1),
|
|
8226
8255
|
t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8227
8256
|
])]),
|
|
8228
8257
|
_: 1
|
|
8229
|
-
}, 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(_, {
|
|
8230
8259
|
value: e.preEnabled,
|
|
8231
8260
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8232
8261
|
size: "small"
|
|
8233
|
-
}, 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, {
|
|
8234
8263
|
value: e.preScale,
|
|
8235
8264
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8236
8265
|
options: e.scaleOptions,
|
|
8237
8266
|
size: "small",
|
|
8238
8267
|
class: "uz-settings-select"
|
|
8239
|
-
}, 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(_, {
|
|
8240
8269
|
value: e.preContrast,
|
|
8241
8270
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8242
8271
|
size: "small"
|
|
8243
|
-
}, 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)]))])]);
|
|
8244
8273
|
}
|
|
8245
8274
|
var Lh = /*#__PURE__*/ U(dh, [["render", Ih], ["__scopeId", "data-v-c7224ff5"]]), Rh = /* @__PURE__ */ ut({
|
|
8246
8275
|
AccessPoint: () => ht,
|
|
@@ -8521,7 +8550,7 @@ function qh(e, t, n) {
|
|
|
8521
8550
|
}
|
|
8522
8551
|
//#endregion
|
|
8523
8552
|
//#region package.json
|
|
8524
|
-
var Jh = "0.1.
|
|
8553
|
+
var Jh = "0.1.71", Yh;
|
|
8525
8554
|
async function Xh() {
|
|
8526
8555
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8527
8556
|
method: "HEAD",
|