@unizhen/ui 0.1.53 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/ui.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as ee, resolveDynamicComponent as
|
|
2
|
-
import { NButton as
|
|
3
|
-
import
|
|
4
|
-
import { createRouter as
|
|
5
|
-
import { createI18n as
|
|
6
|
-
import { cloneDeep as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createStaticVNode as s, createTextVNode as c, createVNode as l, defineAsyncComponent as u, defineComponent as d, h as f, inject as p, markRaw as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, reactive as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as ee, resolveDynamicComponent as O, toDisplayString as k, 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 te, NCascader as ne, NCheckbox as R, NCheckboxGroup as re, NColorPicker as ie, NConfigProvider as ae, NDataTable as oe, NDatePicker as se, NDivider as z, NDrawer as ce, NDrawerContent as le, NDropdown as ue, NEllipsis as de, NFlex as fe, NForm as pe, NFormItem as me, NGrid as he, NGridItem as ge, NIcon as B, NImage as _e, NImageGroup as ve, NInput as ye, NInputGroup as be, NInputGroupLabel as xe, NInputNumber as Se, NModal as Ce, NPagination as we, NPopconfirm as Te, NPopover as Ee, NRadio as De, NRadioGroup as Oe, NSelect as ke, NSkeleton as Ae, NSpace as je, NSpin as Me, NSwitch as Ne, NTabPane as Pe, NTabs as Fe, NTimePicker as Ie, NTooltip as Le, NUpload as Re, NUploadDragger as ze, createDiscreteApi as Be, darkTheme as V, dateZhCN as Ve, useNotification as He, zhCN as Ue } from "naive-ui";
|
|
3
|
+
import We from "axios";
|
|
4
|
+
import { createRouter as Ge, createWebHistory as Ke, useRoute as qe, useRouter as Je } from "vue-router";
|
|
5
|
+
import { createI18n as Ye, useI18n as Xe } from "vue-i18n";
|
|
6
|
+
import { cloneDeep as H, compact as Ze, debounce as Qe, throttle as $e } from "lodash-es";
|
|
7
|
+
import et from "dayjs";
|
|
8
|
+
import { VueDraggable as tt } from "vue-draggable-plus";
|
|
9
|
+
import nt from "json5";
|
|
10
10
|
import rt from "jsqr";
|
|
11
11
|
import it from "sortablejs";
|
|
12
12
|
import { OEM as at, PSM as ot, createWorker as st } from "tesseract.js";
|
|
@@ -2012,14 +2012,14 @@ var Pu = /*#__PURE__*/ U(ju, [["render", Nu]]), Fu = /* @__PURE__ */ lt({
|
|
|
2012
2012
|
}
|
|
2013
2013
|
n.value = e;
|
|
2014
2014
|
};
|
|
2015
|
-
return r(e.icon),
|
|
2015
|
+
return r(e.icon), j(() => e.icon, (e) => {
|
|
2016
2016
|
r(e);
|
|
2017
2017
|
}), () => t.value ? n.value && n.value.render(null, []) : null;
|
|
2018
2018
|
}
|
|
2019
2019
|
}), Lu = Fu, W;
|
|
2020
2020
|
function Ru(e, t = "/") {
|
|
2021
|
-
return W =
|
|
2022
|
-
history:
|
|
2021
|
+
return W = Ge({
|
|
2022
|
+
history: Ke(t),
|
|
2023
2023
|
routes: e,
|
|
2024
2024
|
scrollBehavior: () => ({
|
|
2025
2025
|
left: 0,
|
|
@@ -2027,7 +2027,7 @@ function Ru(e, t = "/") {
|
|
|
2027
2027
|
})
|
|
2028
2028
|
}), W;
|
|
2029
2029
|
}
|
|
2030
|
-
var G =
|
|
2030
|
+
var G = Ye({
|
|
2031
2031
|
legacy: !1,
|
|
2032
2032
|
locale: "zh-CN",
|
|
2033
2033
|
messages: {
|
|
@@ -2198,7 +2198,7 @@ var Xu = "local-", Zu = new class {
|
|
|
2198
2198
|
deleteAll() {
|
|
2199
2199
|
for (let e in this.map) this.delete(e);
|
|
2200
2200
|
}
|
|
2201
|
-
}("qx"), { notification: Qu, dialog: $u } =
|
|
2201
|
+
}("qx"), { notification: Qu, dialog: $u } = Be(["notification", "dialog"], {
|
|
2202
2202
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
2203
2203
|
notificationProviderProps: { placement: "bottom-right" }
|
|
2204
2204
|
}), ed = Qu, td = $u;
|
|
@@ -2354,13 +2354,13 @@ var md = (e) => {
|
|
|
2354
2354
|
return e && e.groups && e.groups.fileName;
|
|
2355
2355
|
}
|
|
2356
2356
|
return "";
|
|
2357
|
-
}, hd =
|
|
2357
|
+
}, hd = We.create({
|
|
2358
2358
|
timeout: 3e5,
|
|
2359
2359
|
responseType: "json",
|
|
2360
2360
|
headers: { "Content-Type": "application/json" }
|
|
2361
2361
|
});
|
|
2362
2362
|
hd.defaults.timeout = 3e5;
|
|
2363
|
-
var gd =
|
|
2363
|
+
var gd = We.CancelToken.source();
|
|
2364
2364
|
hd.interceptors.request.use((e) => {
|
|
2365
2365
|
e.cancelToken = gd.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
|
|
2366
2366
|
let t = Y("token", !1);
|
|
@@ -2397,7 +2397,7 @@ hd.interceptors.request.use((e) => {
|
|
|
2397
2397
|
duration: 3e3
|
|
2398
2398
|
}), Promise.reject(G.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(G.global.t("Notice.error")));
|
|
2399
2399
|
var _d = "/apiserver/", vd = () => {
|
|
2400
|
-
gd.cancel(), gd =
|
|
2400
|
+
gd.cancel(), gd = We.CancelToken.source();
|
|
2401
2401
|
}, yd = (e, t, n = "json", r = 3e5) => {
|
|
2402
2402
|
let i = JSON.stringify({
|
|
2403
2403
|
fetchUri: e,
|
|
@@ -2443,7 +2443,7 @@ var _d = "/apiserver/", vd = () => {
|
|
|
2443
2443
|
calculationIds: e,
|
|
2444
2444
|
linkId: t,
|
|
2445
2445
|
...n
|
|
2446
|
-
}), kd = (e, t) => f(
|
|
2446
|
+
}), kd = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
|
|
2447
2447
|
trigger: () => e,
|
|
2448
2448
|
default: () => typeof t == "function" ? t() : t
|
|
2449
2449
|
}), Ad = (e, t, n, r) => {
|
|
@@ -2477,14 +2477,14 @@ var _d = "/apiserver/", vd = () => {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
2479
2479
|
}
|
|
2480
|
-
return e.icon && (o.icon = () => f(
|
|
2480
|
+
return e.icon && (o.icon = () => f(B, {}, { default: () => f(Iu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
|
|
2481
2481
|
}, Md = (e, t, n, r, i) => {
|
|
2482
2482
|
let a = { placement: "left" };
|
|
2483
2483
|
if (typeof t.onClick == "string") {
|
|
2484
2484
|
let e = t.onClick;
|
|
2485
2485
|
a["on-positive-click"] = () => Ad(e, n, r, i);
|
|
2486
2486
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
2487
|
-
return f(
|
|
2487
|
+
return f(Te, a, {
|
|
2488
2488
|
default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
2489
2489
|
trigger: () => e
|
|
2490
2490
|
});
|
|
@@ -2498,7 +2498,7 @@ var _d = "/apiserver/", vd = () => {
|
|
|
2498
2498
|
let o = [];
|
|
2499
2499
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
2500
2500
|
delete a.tooltipText, o.push(Nd(a, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
2501
|
-
}), a.push(f(
|
|
2501
|
+
}), a.push(f(Ee, { trigger: "click" }, {
|
|
2502
2502
|
trigger: () => jd({
|
|
2503
2503
|
icon: e.icon,
|
|
2504
2504
|
color: e.color || "default",
|
|
@@ -2506,7 +2506,7 @@ var _d = "/apiserver/", vd = () => {
|
|
|
2506
2506
|
disabled: typeof e.disabled == "function" ? e.disabled(t) : e.disabled,
|
|
2507
2507
|
loading: t[e.key] ?? !1
|
|
2508
2508
|
}, t, n, r, i),
|
|
2509
|
-
default: () => f(
|
|
2509
|
+
default: () => f(fe, {
|
|
2510
2510
|
vertical: !0,
|
|
2511
2511
|
size: 12
|
|
2512
2512
|
}, { default: () => o })
|
|
@@ -2618,8 +2618,8 @@ var _d = "/apiserver/", vd = () => {
|
|
|
2618
2618
|
name: "UzBack",
|
|
2619
2619
|
components: {
|
|
2620
2620
|
ArrowNarrowLeft: an,
|
|
2621
|
-
NButton:
|
|
2622
|
-
NIcon:
|
|
2621
|
+
NButton: L,
|
|
2622
|
+
NIcon: B
|
|
2623
2623
|
},
|
|
2624
2624
|
props: {
|
|
2625
2625
|
to: {
|
|
@@ -2632,7 +2632,7 @@ var _d = "/apiserver/", vd = () => {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
},
|
|
2634
2634
|
setup(e) {
|
|
2635
|
-
let t =
|
|
2635
|
+
let t = Je();
|
|
2636
2636
|
return { back: () => {
|
|
2637
2637
|
e.to ? t.push(e.to) : t.back();
|
|
2638
2638
|
} };
|
|
@@ -2646,15 +2646,21 @@ function Wd(e, t, r, i, o, s) {
|
|
|
2646
2646
|
quaternary: "",
|
|
2647
2647
|
onClick: e.back
|
|
2648
2648
|
}, {
|
|
2649
|
-
icon:
|
|
2650
|
-
default:
|
|
2649
|
+
icon: N(() => [l(u, null, {
|
|
2650
|
+
default: N(() => [l(c)]),
|
|
2651
2651
|
_: 1
|
|
2652
2652
|
})]),
|
|
2653
|
-
default:
|
|
2653
|
+
default: N(() => [a("span", null, k(e.text || e.$t("Common.back")), 1)]),
|
|
2654
2654
|
_: 1
|
|
2655
2655
|
}, 8, ["onClick"]);
|
|
2656
2656
|
}
|
|
2657
|
-
var Gd = /*#__PURE__*/ U(Ud, [["render", Wd]]), Kd =
|
|
2657
|
+
var Gd = /*#__PURE__*/ U(Ud, [["render", Wd]]), Kd = 0;
|
|
2658
|
+
function qd() {
|
|
2659
|
+
return `comp${Kd++}`;
|
|
2660
|
+
}
|
|
2661
|
+
//#endregion
|
|
2662
|
+
//#region components/circle/index.vue?vue&type=script&lang.ts
|
|
2663
|
+
var Jd = qd(), Yd = 120, Xd = 10, Zd = Yd / 2, Qd = (Yd - 6 - Xd) / 2, $d = Qd * 2 * Math.PI, ef = Qd * 1.5 * Math.PI, tf = (e) => {
|
|
2658
2664
|
if (!e) return "";
|
|
2659
2665
|
let t = e.toLowerCase();
|
|
2660
2666
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -2668,7 +2674,7 @@ var Gd = /*#__PURE__*/ U(Ud, [["render", Wd]]), Kd = 120, qd = 10, Jd = Kd / 2,
|
|
|
2668
2674
|
return e.join(",");
|
|
2669
2675
|
}
|
|
2670
2676
|
return "0,0,0";
|
|
2671
|
-
},
|
|
2677
|
+
}, nf = d({
|
|
2672
2678
|
name: "UzCircle",
|
|
2673
2679
|
props: {
|
|
2674
2680
|
circle: {
|
|
@@ -2693,37 +2699,32 @@ var Gd = /*#__PURE__*/ U(Ud, [["render", Wd]]), Kd = 120, qd = 10, Jd = Kd / 2,
|
|
|
2693
2699
|
setup(e) {
|
|
2694
2700
|
let n = w(), r = w(), i = w();
|
|
2695
2701
|
return {
|
|
2696
|
-
|
|
2702
|
+
uniqueId: Jd,
|
|
2703
|
+
backgroundBg: t(() => `rgba(${tf(e.color)},0.1)`),
|
|
2697
2704
|
strokeDasharray: n,
|
|
2698
2705
|
centerTransform: r,
|
|
2699
2706
|
centerTransformUnit: i,
|
|
2700
|
-
colorA: t(() => `rgba(${
|
|
2707
|
+
colorA: t(() => `rgba(${tf(e.color).split(",").map((e) => {
|
|
2701
2708
|
let t = Number(e) - 50;
|
|
2702
2709
|
return t < 0 && (t = 0), t;
|
|
2703
2710
|
})},1)`),
|
|
2704
|
-
colorB: t(() => `rgba(${
|
|
2711
|
+
colorB: t(() => `rgba(${tf(e.color)},1)`),
|
|
2705
2712
|
calculateCircle: () => {
|
|
2706
2713
|
let t = 314 - Number(e.circle) * Math.PI;
|
|
2707
2714
|
return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
|
|
2708
2715
|
},
|
|
2709
2716
|
calculateSemicircle: (t) => {
|
|
2710
|
-
n.value = `${
|
|
2717
|
+
n.value = `${ef} ${$d}`, r.value = `translate(${Zd}, 69)`, i.value = `translate(${Zd}, 84)`;
|
|
2711
2718
|
let a = t || Number(e.circle);
|
|
2712
|
-
return a > 100 && (a = 100), a <= 0 && (a = 1e-4),
|
|
2719
|
+
return a > 100 && (a = 100), a <= 0 && (a = 1e-4), ef * (1 - a / 100);
|
|
2713
2720
|
},
|
|
2714
2721
|
calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
|
|
2715
2722
|
};
|
|
2716
2723
|
}
|
|
2717
|
-
}),
|
|
2724
|
+
}), rf = { class: "uz-circle" }, af = {
|
|
2718
2725
|
key: 0,
|
|
2719
2726
|
viewBox: "40 20 120 120"
|
|
2720
|
-
},
|
|
2721
|
-
id: "uz-progress-grad",
|
|
2722
|
-
x1: "1",
|
|
2723
|
-
y1: "1",
|
|
2724
|
-
x2: "0",
|
|
2725
|
-
y2: "0"
|
|
2726
|
-
}, rf = ["stop-color"], af = ["stop-color"], of = ["stroke"], sf = ["transform"], cf = {
|
|
2727
|
+
}, of = ["id"], sf = ["stop-color"], cf = ["stop-color"], lf = ["stroke"], uf = ["stroke"], df = ["transform"], ff = {
|
|
2727
2728
|
dx: "100",
|
|
2728
2729
|
dy: "90",
|
|
2729
2730
|
"text-anchor": "middle",
|
|
@@ -2732,7 +2733,7 @@ var Gd = /*#__PURE__*/ U(Ud, [["render", Wd]]), Kd = 120, qd = 10, Jd = Kd / 2,
|
|
|
2732
2733
|
"font-size": "2rem",
|
|
2733
2734
|
"font-weight": "400"
|
|
2734
2735
|
}
|
|
2735
|
-
},
|
|
2736
|
+
}, pf = {
|
|
2736
2737
|
dx: "100",
|
|
2737
2738
|
dy: "105",
|
|
2738
2739
|
"text-anchor": "middle",
|
|
@@ -2741,50 +2742,33 @@ var Gd = /*#__PURE__*/ U(Ud, [["render", Wd]]), Kd = 120, qd = 10, Jd = Kd / 2,
|
|
|
2741
2742
|
"font-size": "0.6rem",
|
|
2742
2743
|
"font-weight": "400"
|
|
2743
2744
|
}
|
|
2744
|
-
},
|
|
2745
|
+
}, mf = {
|
|
2745
2746
|
key: 1,
|
|
2746
2747
|
viewBox: "0 0 120 120"
|
|
2747
|
-
},
|
|
2748
|
-
id: "progress-grad",
|
|
2749
|
-
x1: "1",
|
|
2750
|
-
y1: "1",
|
|
2751
|
-
x2: "0",
|
|
2752
|
-
y2: "0"
|
|
2753
|
-
}, ff = ["stop-color"], pf = ["stop-color"], mf = [
|
|
2748
|
+
}, hf = ["id"], gf = ["stop-color"], _f = ["stop-color"], vf = [
|
|
2754
2749
|
"stroke-dasharray",
|
|
2755
2750
|
"stroke-dashoffset",
|
|
2756
2751
|
"transform"
|
|
2757
|
-
],
|
|
2752
|
+
], yf = ["stroke"], bf = [
|
|
2758
2753
|
"stroke-dasharray",
|
|
2759
2754
|
"stroke-dashoffset",
|
|
2760
2755
|
"transform"
|
|
2761
|
-
],
|
|
2762
|
-
function
|
|
2763
|
-
return x(), i("div",
|
|
2764
|
-
a("defs", null, [
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
a("feGaussianBlur", {
|
|
2772
|
-
result: "blurOut",
|
|
2773
|
-
in: "offOut",
|
|
2774
|
-
stdDeviation: "0.8"
|
|
2775
|
-
}),
|
|
2776
|
-
a("feBlend", {
|
|
2777
|
-
in: "SourceGraphic",
|
|
2778
|
-
in2: "blurOut",
|
|
2779
|
-
mode: "normal"
|
|
2780
|
-
})
|
|
2781
|
-
], -1), a("linearGradient", nf, [a("stop", {
|
|
2756
|
+
], xf = ["stroke"], Sf = ["transform"], Cf = ["transform"];
|
|
2757
|
+
function wf(e, t, n, r, o, s) {
|
|
2758
|
+
return x(), i("div", rf, [e.mode === 0 ? (x(), i("svg", af, [
|
|
2759
|
+
a("defs", null, [a("linearGradient", {
|
|
2760
|
+
id: `uz-progress-grad-${e.uniqueId}`,
|
|
2761
|
+
x1: "1",
|
|
2762
|
+
y1: "1",
|
|
2763
|
+
x2: "0",
|
|
2764
|
+
y2: "0"
|
|
2765
|
+
}, [a("stop", {
|
|
2782
2766
|
offset: "0%",
|
|
2783
2767
|
"stop-color": e.colorA
|
|
2784
|
-
}, null, 8,
|
|
2768
|
+
}, null, 8, sf), a("stop", {
|
|
2785
2769
|
offset: "50%",
|
|
2786
2770
|
"stop-color": e.colorB
|
|
2787
|
-
}, null, 8,
|
|
2771
|
+
}, null, 8, cf)], 8, of)]),
|
|
2788
2772
|
a("circle", {
|
|
2789
2773
|
transform: "rotate(-90 100 80)",
|
|
2790
2774
|
cx: "100",
|
|
@@ -2794,7 +2778,7 @@ function yf(e, t, n, r, o, s) {
|
|
|
2794
2778
|
"stroke-width": "10",
|
|
2795
2779
|
"stroke-dashoffset": "0",
|
|
2796
2780
|
stroke: e.backgroundBg
|
|
2797
|
-
}, null, 8,
|
|
2781
|
+
}, null, 8, lf),
|
|
2798
2782
|
a("circle", {
|
|
2799
2783
|
class: "uz-circle-round",
|
|
2800
2784
|
filter: "url(#uz-blurs)",
|
|
@@ -2806,8 +2790,8 @@ function yf(e, t, n, r, o, s) {
|
|
|
2806
2790
|
fill: "none",
|
|
2807
2791
|
"stroke-width": "10",
|
|
2808
2792
|
style: _(e.calculateCircle()),
|
|
2809
|
-
stroke:
|
|
2810
|
-
}, null,
|
|
2793
|
+
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
2794
|
+
}, null, 12, uf),
|
|
2811
2795
|
a("circle", {
|
|
2812
2796
|
class: "uz-circle-round",
|
|
2813
2797
|
filter: "url(#uz-blurs)",
|
|
@@ -2817,34 +2801,23 @@ function yf(e, t, n, r, o, s) {
|
|
|
2817
2801
|
"stroke-width": "0",
|
|
2818
2802
|
transform: e.calculatePoint(),
|
|
2819
2803
|
fill: "#fff"
|
|
2820
|
-
}, null, 8,
|
|
2821
|
-
a("text",
|
|
2822
|
-
a("text",
|
|
2823
|
-
])) : (x(), i("svg",
|
|
2824
|
-
a("defs", null, [
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
a("feGaussianBlur", {
|
|
2832
|
-
result: "blurOut",
|
|
2833
|
-
in: "offOut",
|
|
2834
|
-
stdDeviation: "0.8"
|
|
2835
|
-
}),
|
|
2836
|
-
a("feBlend", {
|
|
2837
|
-
in: "SourceGraphic",
|
|
2838
|
-
in2: "blurOut",
|
|
2839
|
-
mode: "normal"
|
|
2840
|
-
})
|
|
2841
|
-
], -1), a("linearGradient", df, [a("stop", {
|
|
2804
|
+
}, null, 8, df),
|
|
2805
|
+
a("text", ff, k(e.circle), 1),
|
|
2806
|
+
a("text", pf, k(e.circleUnit), 1)
|
|
2807
|
+
])) : (x(), i("svg", mf, [
|
|
2808
|
+
a("defs", null, [a("linearGradient", {
|
|
2809
|
+
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
2810
|
+
x1: "1",
|
|
2811
|
+
y1: "1",
|
|
2812
|
+
x2: "0",
|
|
2813
|
+
y2: "0"
|
|
2814
|
+
}, [a("stop", {
|
|
2842
2815
|
offset: "0%",
|
|
2843
2816
|
"stop-color": e.colorA
|
|
2844
|
-
}, null, 8,
|
|
2817
|
+
}, null, 8, gf), a("stop", {
|
|
2845
2818
|
offset: "50%",
|
|
2846
2819
|
"stop-color": e.colorB
|
|
2847
|
-
}, null, 8,
|
|
2820
|
+
}, null, 8, _f)], 8, hf)]),
|
|
2848
2821
|
a("g", {
|
|
2849
2822
|
fill: "none",
|
|
2850
2823
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -2852,13 +2825,13 @@ function yf(e, t, n, r, o, s) {
|
|
|
2852
2825
|
"stroke-linecap": "round",
|
|
2853
2826
|
"stroke-width": "10",
|
|
2854
2827
|
transform: e.centerTransform
|
|
2855
|
-
}, [
|
|
2828
|
+
}, [a("circle", {
|
|
2856
2829
|
r: "52",
|
|
2857
2830
|
filter: "url(#uz-blurs)",
|
|
2858
|
-
stroke:
|
|
2831
|
+
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`,
|
|
2859
2832
|
transform: "rotate(-225)",
|
|
2860
2833
|
class: "uz-semicircle-round"
|
|
2861
|
-
}, null,
|
|
2834
|
+
}, null, 8, yf)], 8, vf),
|
|
2862
2835
|
a("g", {
|
|
2863
2836
|
fill: "none",
|
|
2864
2837
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -2870,7 +2843,7 @@ function yf(e, t, n, r, o, s) {
|
|
|
2870
2843
|
r: "52",
|
|
2871
2844
|
stroke: e.backgroundBg,
|
|
2872
2845
|
transform: "rotate(-225)"
|
|
2873
|
-
}, null, 8,
|
|
2846
|
+
}, null, 8, xf)], 8, bf),
|
|
2874
2847
|
a("text", {
|
|
2875
2848
|
fill: "var(--circle-color)",
|
|
2876
2849
|
"text-anchor": "middle",
|
|
@@ -2879,7 +2852,7 @@ function yf(e, t, n, r, o, s) {
|
|
|
2879
2852
|
"font-size": "2rem",
|
|
2880
2853
|
"font-weight": "400"
|
|
2881
2854
|
}
|
|
2882
|
-
},
|
|
2855
|
+
}, k(e.circle), 9, Sf),
|
|
2883
2856
|
a("text", {
|
|
2884
2857
|
cy: "90",
|
|
2885
2858
|
fill: "var(--circle-unit-color)",
|
|
@@ -2889,25 +2862,25 @@ function yf(e, t, n, r, o, s) {
|
|
|
2889
2862
|
"font-size": "0.6rem",
|
|
2890
2863
|
"font-weight": "400"
|
|
2891
2864
|
}
|
|
2892
|
-
},
|
|
2865
|
+
}, k(e.circleUnit), 9, Cf)
|
|
2893
2866
|
]))]);
|
|
2894
2867
|
}
|
|
2895
|
-
var
|
|
2868
|
+
var Tf = /*#__PURE__*/ U(nf, [["render", wf]]), Ef = d({
|
|
2896
2869
|
name: "UzFormItem",
|
|
2897
2870
|
components: {
|
|
2898
|
-
NIcon:
|
|
2899
|
-
NInput:
|
|
2900
|
-
NSelect:
|
|
2901
|
-
NInputNumber:
|
|
2902
|
-
NDatePicker:
|
|
2903
|
-
NTimePicker:
|
|
2904
|
-
NSwitch:
|
|
2905
|
-
NColorPicker:
|
|
2906
|
-
NCheckbox:
|
|
2907
|
-
NCheckboxGroup:
|
|
2908
|
-
NCascader:
|
|
2909
|
-
NTooltip:
|
|
2910
|
-
NDropdown:
|
|
2871
|
+
NIcon: B,
|
|
2872
|
+
NInput: ye,
|
|
2873
|
+
NSelect: ke,
|
|
2874
|
+
NInputNumber: Se,
|
|
2875
|
+
NDatePicker: se,
|
|
2876
|
+
NTimePicker: Ie,
|
|
2877
|
+
NSwitch: Ne,
|
|
2878
|
+
NColorPicker: ie,
|
|
2879
|
+
NCheckbox: R,
|
|
2880
|
+
NCheckboxGroup: re,
|
|
2881
|
+
NCascader: ne,
|
|
2882
|
+
NTooltip: Le,
|
|
2883
|
+
NDropdown: ue
|
|
2911
2884
|
},
|
|
2912
2885
|
props: {
|
|
2913
2886
|
item: {
|
|
@@ -2943,14 +2916,14 @@ var bf = /*#__PURE__*/ U($d, [["render", yf]]), xf = d({
|
|
|
2943
2916
|
isMobile: t(() => K.isMobile),
|
|
2944
2917
|
showDropdown: r,
|
|
2945
2918
|
dropdownOptions: i,
|
|
2946
|
-
dayjs:
|
|
2919
|
+
dayjs: et,
|
|
2947
2920
|
updateValue: async (t, r, i) => {
|
|
2948
2921
|
if (t.form.updateValue) {
|
|
2949
2922
|
let a = { ...e.formValue };
|
|
2950
2923
|
if (typeof t.form.updateValue == "string") try {
|
|
2951
|
-
let o = t.form.updateValue, s = Function("value", "formValue", "mainFormValue", "index", "option", "POST",
|
|
2924
|
+
let o = t.form.updateValue, s = Function("value", "formValue", "mainFormValue", "index", "option", "POST", o);
|
|
2952
2925
|
try {
|
|
2953
|
-
let t = await s(r, a, n, e.itemIndex, i, Z
|
|
2926
|
+
let t = await s(r, a, n, e.itemIndex, i, Z);
|
|
2954
2927
|
t && typeof t == "object" && Object.keys(t).forEach((n) => {
|
|
2955
2928
|
e.formValue[n] = t[n];
|
|
2956
2929
|
});
|
|
@@ -2999,7 +2972,7 @@ var bf = /*#__PURE__*/ U($d, [["render", yf]]), xf = d({
|
|
|
2999
2972
|
}
|
|
3000
2973
|
},
|
|
3001
2974
|
handleFocus: (t) => {
|
|
3002
|
-
let n =
|
|
2975
|
+
let n = H(e.item.params.options);
|
|
3003
2976
|
if (n) {
|
|
3004
2977
|
if (e.formValue && e.formValue[t]) {
|
|
3005
2978
|
let r = e.formValue[t].toLocaleLowerCase();
|
|
@@ -3026,9 +2999,9 @@ var bf = /*#__PURE__*/ U($d, [["render", yf]]), xf = d({
|
|
|
3026
2999
|
}
|
|
3027
3000
|
};
|
|
3028
3001
|
}
|
|
3029
|
-
}),
|
|
3030
|
-
function
|
|
3031
|
-
let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), ee = D("NSwitch"),
|
|
3002
|
+
}), Df = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3003
|
+
function Of(t, r, s, u, d, f) {
|
|
3004
|
+
let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), ee = D("NSwitch"), O = D("UzFormItemUpload");
|
|
3032
3005
|
return t.item.input === "input" ? (x(), n(p, {
|
|
3033
3006
|
key: 0,
|
|
3034
3007
|
value: t.formValue[t.item.key],
|
|
@@ -3048,11 +3021,11 @@ function Cf(t, r, s, u, d, f) {
|
|
|
3048
3021
|
}
|
|
3049
3022
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3050
3023
|
name: "prefix",
|
|
3051
|
-
fn:
|
|
3024
|
+
fn: N(() => [c(k(t.item.params.prefix), 1)]),
|
|
3052
3025
|
key: "0"
|
|
3053
3026
|
} : void 0, t.item.params.suffix ? {
|
|
3054
3027
|
name: "suffix",
|
|
3055
|
-
fn:
|
|
3028
|
+
fn: N(() => [c(k(t.item.params.suffix), 1)]),
|
|
3056
3029
|
key: "1"
|
|
3057
3030
|
} : void 0]), 1032, [
|
|
3058
3031
|
"value",
|
|
@@ -3084,7 +3057,7 @@ function Cf(t, r, s, u, d, f) {
|
|
|
3084
3057
|
t.showDropdown = !1;
|
|
3085
3058
|
}
|
|
3086
3059
|
}, {
|
|
3087
|
-
default:
|
|
3060
|
+
default: N(() => [l(p, {
|
|
3088
3061
|
value: t.formValue[t.item.key],
|
|
3089
3062
|
"show-password-on": "click",
|
|
3090
3063
|
type: t.item.params.type,
|
|
@@ -3102,11 +3075,11 @@ function Cf(t, r, s, u, d, f) {
|
|
|
3102
3075
|
}
|
|
3103
3076
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3104
3077
|
name: "prefix",
|
|
3105
|
-
fn:
|
|
3078
|
+
fn: N(() => [c(k(t.item.params.prefix), 1)]),
|
|
3106
3079
|
key: "0"
|
|
3107
3080
|
} : void 0, t.item.params.suffix ? {
|
|
3108
3081
|
name: "suffix",
|
|
3109
|
-
fn:
|
|
3082
|
+
fn: N(() => [c(k(t.item.params.suffix), 1)]),
|
|
3110
3083
|
key: "1"
|
|
3111
3084
|
} : void 0]), 1032, [
|
|
3112
3085
|
"value",
|
|
@@ -3144,11 +3117,11 @@ function Cf(t, r, s, u, d, f) {
|
|
|
3144
3117
|
}
|
|
3145
3118
|
}, o({ _: 2 }, [t.item.params.prefix ? {
|
|
3146
3119
|
name: "prefix",
|
|
3147
|
-
fn:
|
|
3120
|
+
fn: N(() => [c(k(t.item.params.prefix), 1)]),
|
|
3148
3121
|
key: "0"
|
|
3149
3122
|
} : void 0, t.item.params.suffix ? {
|
|
3150
3123
|
name: "suffix",
|
|
3151
|
-
fn:
|
|
3124
|
+
fn: N(() => [c(k(t.item.params.suffix), 1)]),
|
|
3152
3125
|
key: "1"
|
|
3153
3126
|
} : void 0]), 1032, [
|
|
3154
3127
|
"value",
|
|
@@ -3331,7 +3304,7 @@ function Cf(t, r, s, u, d, f) {
|
|
|
3331
3304
|
value: t.formValue[t.item.key],
|
|
3332
3305
|
disabled: t.checkDisabled()
|
|
3333
3306
|
}, {
|
|
3334
|
-
default:
|
|
3307
|
+
default: N(() => [a("div", Df, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
|
|
3335
3308
|
key: e.value,
|
|
3336
3309
|
label: e.label,
|
|
3337
3310
|
value: e.value
|
|
@@ -3382,13 +3355,13 @@ function Cf(t, r, s, u, d, f) {
|
|
|
3382
3355
|
}
|
|
3383
3356
|
}, o({ _: 2 }, [t.item.params.checked ? {
|
|
3384
3357
|
name: "checked",
|
|
3385
|
-
fn:
|
|
3358
|
+
fn: N(() => [c(k(t.item.params.checked), 1)]),
|
|
3386
3359
|
key: "0"
|
|
3387
3360
|
} : void 0, t.item.params.unchecked ? {
|
|
3388
3361
|
name: "unchecked",
|
|
3389
|
-
fn:
|
|
3362
|
+
fn: N(() => [c(k(t.item.params.unchecked), 1)]),
|
|
3390
3363
|
key: "1"
|
|
3391
|
-
} : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(
|
|
3364
|
+
} : void 0]), 1032, ["value", "disabled"])) : t.item.input === "upload" ? (x(), n(O, {
|
|
3392
3365
|
key: 13,
|
|
3393
3366
|
value: t.formValue[t.item.key],
|
|
3394
3367
|
"onUpdate:value": r[11] ||= (e) => t.formValue[t.item.key] = e,
|
|
@@ -3400,15 +3373,15 @@ function Cf(t, r, s, u, d, f) {
|
|
|
3400
3373
|
"status"
|
|
3401
3374
|
])) : (x(), i(e, { key: 14 }, [], 64));
|
|
3402
3375
|
}
|
|
3403
|
-
var
|
|
3376
|
+
var kf = /*#__PURE__*/ U(Ef, [["render", Of]]), Af = d({
|
|
3404
3377
|
name: "UzForm",
|
|
3405
3378
|
components: {
|
|
3406
|
-
NForm:
|
|
3407
|
-
NFormItem:
|
|
3408
|
-
NDivider:
|
|
3409
|
-
NButton:
|
|
3410
|
-
NIcon:
|
|
3411
|
-
UzFormItem:
|
|
3379
|
+
NForm: pe,
|
|
3380
|
+
NFormItem: me,
|
|
3381
|
+
NDivider: z,
|
|
3382
|
+
NButton: L,
|
|
3383
|
+
NIcon: B,
|
|
3384
|
+
UzFormItem: kf,
|
|
3412
3385
|
Plus: uc
|
|
3413
3386
|
},
|
|
3414
3387
|
props: {
|
|
@@ -3494,7 +3467,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3494
3467
|
default: return sd(t);
|
|
3495
3468
|
}
|
|
3496
3469
|
}, h = (e, t = !1) => {
|
|
3497
|
-
let n =
|
|
3470
|
+
let n = et(e).startOf("day").diff(et().startOf("day"), "day");
|
|
3498
3471
|
return n >= 0 ? t ? "success" : `剩余${n}天` : t ? "error" : `逾期${Math.abs(n)}天`;
|
|
3499
3472
|
}, g = (e) => (u.value = [], e.forEach((e) => {
|
|
3500
3473
|
if (e.form.defaultValue && !s.value[e.key]) if (e.input === "number") s.value[e.key] = Number(e.form.defaultValue);
|
|
@@ -3508,7 +3481,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3508
3481
|
} else if (e.input === "date") if (e.params.type.indexOf("range") > -1) switch (e.form.defaultValue) {
|
|
3509
3482
|
case "now":
|
|
3510
3483
|
{
|
|
3511
|
-
let t =
|
|
3484
|
+
let t = et().startOf("day").valueOf(), n = et().endOf("day").valueOf();
|
|
3512
3485
|
s.value[e.key] = [t, n], s.value[`${e.key}StartStr`] = m(e.params.type, t), s.value[`${e.key}EndStr`] = m(e.params.type, n);
|
|
3513
3486
|
}
|
|
3514
3487
|
break;
|
|
@@ -3541,7 +3514,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3541
3514
|
s.value[e.key] = [];
|
|
3542
3515
|
}
|
|
3543
3516
|
}), e), _ = (t) => {
|
|
3544
|
-
t ||=
|
|
3517
|
+
t ||= H(e.items), t && Array.isArray(t) && t.length > 0 ? c.value = g(t) : c.value = [];
|
|
3545
3518
|
}, v = () => new Promise(async (e) => {
|
|
3546
3519
|
let t = 0;
|
|
3547
3520
|
for await (let e of l.value) await e.validate().catch(() => {
|
|
@@ -3556,7 +3529,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3556
3529
|
}), o.value?.validate(async (n) => {
|
|
3557
3530
|
if (n) t();
|
|
3558
3531
|
else if (await v() === 0) {
|
|
3559
|
-
let t =
|
|
3532
|
+
let t = H(s.value);
|
|
3560
3533
|
u.value.forEach((e) => {
|
|
3561
3534
|
t[e] = JSON.stringify(t[e]);
|
|
3562
3535
|
}), Object.keys(t).forEach((e) => {
|
|
@@ -3578,7 +3551,7 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3578
3551
|
manual: () => {
|
|
3579
3552
|
s.value = e.value, _(e.items);
|
|
3580
3553
|
}
|
|
3581
|
-
}),
|
|
3554
|
+
}), j(() => e.value, (t, n) => {
|
|
3582
3555
|
JSON.stringify(t) !== JSON.stringify(n) && (s.value = t, c.value.length === 0 && _(e.items));
|
|
3583
3556
|
}, {
|
|
3584
3557
|
deep: !0,
|
|
@@ -3614,8 +3587,8 @@ var wf = /*#__PURE__*/ U(xf, [["render", Cf]]), Tf = d({
|
|
|
3614
3587
|
}
|
|
3615
3588
|
};
|
|
3616
3589
|
}
|
|
3617
|
-
}),
|
|
3618
|
-
function
|
|
3590
|
+
}), jf = ["onClick"];
|
|
3591
|
+
function Mf(t, o, s, u, d, f) {
|
|
3619
3592
|
let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = ee("media");
|
|
3620
3593
|
return x(), i(e, null, [l(C, {
|
|
3621
3594
|
ref: "formRef",
|
|
@@ -3626,7 +3599,7 @@ function Df(t, o, s, u, d, f) {
|
|
|
3626
3599
|
labelAlign: t.labelAlign,
|
|
3627
3600
|
labelPlacement: t.labelPlacement
|
|
3628
3601
|
}, {
|
|
3629
|
-
default:
|
|
3602
|
+
default: N(() => [P((x(), i("div", { class: g(t.isMobile ? "" : "uz-form-grid") }, [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), i(e, { key: u }, [t.itemShow(s) ? (x(), n(S, {
|
|
3630
3603
|
key: 0,
|
|
3631
3604
|
path: s.key,
|
|
3632
3605
|
rule: s.input === "subTable" ? void 0 : s.form.rule?.required ? s.form.rule : void 0,
|
|
@@ -3634,22 +3607,22 @@ function Df(t, o, s, u, d, f) {
|
|
|
3634
3607
|
"show-label": s.input !== "divider" && s.input !== "subTable",
|
|
3635
3608
|
"show-feedback": t.showFeedback && s.input !== "divider"
|
|
3636
3609
|
}, {
|
|
3637
|
-
label:
|
|
3638
|
-
a("div", null,
|
|
3610
|
+
label: N(() => [
|
|
3611
|
+
a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
3639
3612
|
t.status !== 2 && s.source && s.form.createButton ? (x(), i("a", {
|
|
3640
3613
|
key: 0,
|
|
3641
3614
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add",
|
|
3642
3615
|
onClick: (e) => t.sourceAdd(s, u)
|
|
3643
3616
|
}, [l(m, null, {
|
|
3644
|
-
default:
|
|
3617
|
+
default: N(() => [l(p)]),
|
|
3645
3618
|
_: 1
|
|
3646
|
-
}), o[0] ||= c(" 新增 ", -1)], 8,
|
|
3619
|
+
}), o[0] ||= c(" 新增 ", -1)], 8, jf)) : r("", !0),
|
|
3647
3620
|
s.form.showDays ? (x(), i("span", {
|
|
3648
3621
|
key: 1,
|
|
3649
3622
|
class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
3650
|
-
},
|
|
3623
|
+
}, k(t.diffDay(t.formValue[s.key])), 3)) : r("", !0)
|
|
3651
3624
|
]),
|
|
3652
|
-
default:
|
|
3625
|
+
default: N(() => [s.input === "subTable" && !s.params.quest ? (x(), n(h, {
|
|
3653
3626
|
key: 0,
|
|
3654
3627
|
ref_for: !0,
|
|
3655
3628
|
ref: "childRef",
|
|
@@ -3672,7 +3645,7 @@ function Df(t, o, s, u, d, f) {
|
|
|
3672
3645
|
key: 2,
|
|
3673
3646
|
"title-placement": s.params.placement
|
|
3674
3647
|
}, {
|
|
3675
|
-
default:
|
|
3648
|
+
default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
|
|
3676
3649
|
_: 2
|
|
3677
3650
|
}, 1032, ["title-placement"])) : (x(), n(b, {
|
|
3678
3651
|
key: 3,
|
|
@@ -3704,18 +3677,18 @@ function Df(t, o, s, u, d, f) {
|
|
|
3704
3677
|
onOnSubmit: t.refreshOption
|
|
3705
3678
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
3706
3679
|
}
|
|
3707
|
-
var
|
|
3680
|
+
var Nf = /*#__PURE__*/ U(Af, [["render", Mf]]), Pf = d({
|
|
3708
3681
|
name: "UzDraggableForm",
|
|
3709
3682
|
components: {
|
|
3710
|
-
NForm:
|
|
3711
|
-
NFormItem:
|
|
3712
|
-
NButton:
|
|
3713
|
-
NIcon:
|
|
3714
|
-
NDivider:
|
|
3715
|
-
UzFormItem:
|
|
3683
|
+
NForm: pe,
|
|
3684
|
+
NFormItem: me,
|
|
3685
|
+
NButton: L,
|
|
3686
|
+
NIcon: B,
|
|
3687
|
+
NDivider: z,
|
|
3688
|
+
UzFormItem: kf,
|
|
3716
3689
|
Trash: bl,
|
|
3717
3690
|
Plus: uc,
|
|
3718
|
-
VueDraggable:
|
|
3691
|
+
VueDraggable: tt
|
|
3719
3692
|
},
|
|
3720
3693
|
props: {
|
|
3721
3694
|
items: {
|
|
@@ -3783,17 +3756,17 @@ var Of = /*#__PURE__*/ U(Tf, [["render", Df]]), kf = d({
|
|
|
3783
3756
|
}
|
|
3784
3757
|
else a.value[e.key] = e.form.defaultValue;
|
|
3785
3758
|
}), e), d = () => {
|
|
3786
|
-
e.items && Array.isArray(e.items) && (o.value = u(
|
|
3759
|
+
e.items && Array.isArray(e.items) && (o.value = u(H(e.items)));
|
|
3787
3760
|
}, f = () => {
|
|
3788
|
-
n("on-change",
|
|
3761
|
+
n("on-change", H(o.value)), m();
|
|
3789
3762
|
}, m = () => {
|
|
3790
3763
|
s.value = [-1, -1], n("on-select", void 0);
|
|
3791
3764
|
};
|
|
3792
3765
|
return y(() => {
|
|
3793
3766
|
a.value = e.value, d();
|
|
3794
|
-
}), t({ changeItem: l }),
|
|
3767
|
+
}), t({ changeItem: l }), j(() => e.items, () => {
|
|
3795
3768
|
d();
|
|
3796
|
-
}, { deep: !0 }),
|
|
3769
|
+
}, { deep: !0 }), j(() => e.value, (e) => {
|
|
3797
3770
|
a.value = e;
|
|
3798
3771
|
}, { deep: !0 }), {
|
|
3799
3772
|
formRef: i,
|
|
@@ -3808,14 +3781,14 @@ var Of = /*#__PURE__*/ U(Tf, [["render", Df]]), kf = d({
|
|
|
3808
3781
|
}
|
|
3809
3782
|
};
|
|
3810
3783
|
}
|
|
3811
|
-
}),
|
|
3784
|
+
}), Ff = {
|
|
3812
3785
|
key: 0,
|
|
3813
3786
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
3814
|
-
},
|
|
3787
|
+
}, If = {
|
|
3815
3788
|
key: 1,
|
|
3816
3789
|
class: "uz-form-item-add"
|
|
3817
3790
|
};
|
|
3818
|
-
function
|
|
3791
|
+
function Lf(t, o, s, u, d, f) {
|
|
3819
3792
|
let p = D("Plus"), m = D("NIcon"), h = D("Trash"), v = D("NButton"), y = D("UzTableChild"), b = D("UzFormItem"), S = D("NFormItem"), C = D("VueDraggable"), w = D("NDivider"), E = D("NForm");
|
|
3820
3793
|
return x(), n(E, {
|
|
3821
3794
|
ref: "formRef",
|
|
@@ -3827,7 +3800,7 @@ function Mf(t, o, s, u, d, f) {
|
|
|
3827
3800
|
labelPlacement: t.labelPlacement,
|
|
3828
3801
|
onClick: t.onCancel
|
|
3829
3802
|
}, {
|
|
3830
|
-
default:
|
|
3803
|
+
default: N(() => [l(C, {
|
|
3831
3804
|
modelValue: t.formItems,
|
|
3832
3805
|
"onUpdate:modelValue": o[0] ||= (e) => t.formItems = e,
|
|
3833
3806
|
animation: 200,
|
|
@@ -3840,33 +3813,33 @@ function Mf(t, o, s, u, d, f) {
|
|
|
3840
3813
|
style: { "grid-template-columns": "repeat(12, minmax(0px, 1fr))" },
|
|
3841
3814
|
onEnd: t.onDragChange
|
|
3842
3815
|
}, {
|
|
3843
|
-
default:
|
|
3816
|
+
default: N(() => [(x(!0), i(e, null, T(t.formItems, (s, u) => (x(), n(S, {
|
|
3844
3817
|
path: s.key,
|
|
3845
3818
|
rule: s.form.rule?.required ? s.form.rule : void 0,
|
|
3846
3819
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? "select" : s.input === "group" ? "group" : ""]),
|
|
3847
|
-
onClick:
|
|
3820
|
+
onClick: I((e) => t.onModeClick(s, u), ["stop"]),
|
|
3848
3821
|
key: u,
|
|
3849
3822
|
style: _(`grid-column: span ${s.form.span || 6} / span ${s.form.span || 6};`),
|
|
3850
3823
|
"show-label": s.input !== "divider" && s.input !== "subTable",
|
|
3851
3824
|
"show-feedback": t.showFeedback && s.input !== "divider"
|
|
3852
3825
|
}, {
|
|
3853
|
-
label:
|
|
3854
|
-
a("div", null,
|
|
3855
|
-
s.source && s.form.createButton ? (x(), i("a",
|
|
3856
|
-
default:
|
|
3826
|
+
label: N(() => [
|
|
3827
|
+
a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
3828
|
+
s.source && s.form.createButton ? (x(), i("a", Ff, [l(m, null, {
|
|
3829
|
+
default: N(() => [l(p)]),
|
|
3857
3830
|
_: 1
|
|
3858
3831
|
}), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
|
|
3859
|
-
s.form.showDays ? (x(), i("span",
|
|
3832
|
+
s.form.showDays ? (x(), i("span", If, " showDays ")) : r("", !0)
|
|
3860
3833
|
]),
|
|
3861
|
-
default:
|
|
3834
|
+
default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
|
|
3862
3835
|
key: 0,
|
|
3863
3836
|
size: "small",
|
|
3864
3837
|
type: "error",
|
|
3865
3838
|
class: "uz-form-delete",
|
|
3866
|
-
onClick:
|
|
3839
|
+
onClick: I(t.onDelete, ["stop"])
|
|
3867
3840
|
}, {
|
|
3868
|
-
icon:
|
|
3869
|
-
default:
|
|
3841
|
+
icon: N(() => [l(m, { color: "#FFF" }, {
|
|
3842
|
+
default: N(() => [l(h)]),
|
|
3870
3843
|
_: 1
|
|
3871
3844
|
})]),
|
|
3872
3845
|
_: 1
|
|
@@ -3891,26 +3864,26 @@ function Mf(t, o, s, u, d, f) {
|
|
|
3891
3864
|
class: "uz-form-grid",
|
|
3892
3865
|
onEnd: t.onDragChange
|
|
3893
3866
|
}, {
|
|
3894
|
-
default:
|
|
3867
|
+
default: N(() => [(x(!0), i(e, null, T(s.params.children, (e, i) => (x(), n(S, {
|
|
3895
3868
|
label: e.input === "divider" ? "" : typeof e.label == "function" ? e.label() : e.label,
|
|
3896
3869
|
path: e.key,
|
|
3897
3870
|
rule: e.form.rule?.required ? e.form.rule : void 0,
|
|
3898
3871
|
class: g(["uz-form-grid-item uz-form-mode", t.formItemIndex[0] === u && t.formItemIndex[1] === i ? "select" : ""]),
|
|
3899
|
-
onClick:
|
|
3872
|
+
onClick: I((n) => t.onModeClick(e, u, i), ["stop"]),
|
|
3900
3873
|
key: i,
|
|
3901
3874
|
style: _(`grid-column: span ${e.form.span || 6} / span ${e.form.span || 6};`),
|
|
3902
3875
|
"show-label": e.input !== "divider" && e.input !== "subTable",
|
|
3903
3876
|
"show-feedback": t.showFeedback && e.input !== "divider"
|
|
3904
3877
|
}, {
|
|
3905
|
-
default:
|
|
3878
|
+
default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === i ? (x(), n(v, {
|
|
3906
3879
|
key: 0,
|
|
3907
3880
|
size: "small",
|
|
3908
3881
|
type: "error",
|
|
3909
3882
|
class: "uz-form-delete",
|
|
3910
|
-
onClick:
|
|
3883
|
+
onClick: I(t.onDelete, ["stop"])
|
|
3911
3884
|
}, {
|
|
3912
|
-
icon:
|
|
3913
|
-
default:
|
|
3885
|
+
icon: N(() => [l(m, { color: "#FFF" }, {
|
|
3886
|
+
default: N(() => [l(h)]),
|
|
3914
3887
|
_: 1
|
|
3915
3888
|
})]),
|
|
3916
3889
|
_: 1
|
|
@@ -3943,7 +3916,7 @@ function Mf(t, o, s, u, d, f) {
|
|
|
3943
3916
|
key: 3,
|
|
3944
3917
|
"title-placement": s.params.placement
|
|
3945
3918
|
}, {
|
|
3946
|
-
default:
|
|
3919
|
+
default: N(() => [c(k(typeof s.label == "function" ? s.label() : s.label), 1)]),
|
|
3947
3920
|
_: 2
|
|
3948
3921
|
}, 1032, ["title-placement"])) : (x(), n(b, {
|
|
3949
3922
|
key: 4,
|
|
@@ -3977,18 +3950,18 @@ function Mf(t, o, s, u, d, f) {
|
|
|
3977
3950
|
"onClick"
|
|
3978
3951
|
]);
|
|
3979
3952
|
}
|
|
3980
|
-
var
|
|
3953
|
+
var Rf = /*#__PURE__*/ U(Pf, [["render", Lf]]), zf = d({
|
|
3981
3954
|
name: "UzFormItemUpload",
|
|
3982
3955
|
components: {
|
|
3983
|
-
NUpload:
|
|
3984
|
-
NButton:
|
|
3985
|
-
NIcon:
|
|
3986
|
-
NImage:
|
|
3987
|
-
NPopover:
|
|
3988
|
-
NPopconfirm:
|
|
3989
|
-
NUploadDragger:
|
|
3990
|
-
NInputGroup:
|
|
3991
|
-
NSpin:
|
|
3956
|
+
NUpload: Re,
|
|
3957
|
+
NButton: L,
|
|
3958
|
+
NIcon: B,
|
|
3959
|
+
NImage: _e,
|
|
3960
|
+
NPopover: Ee,
|
|
3961
|
+
NPopconfirm: Te,
|
|
3962
|
+
NUploadDragger: ze,
|
|
3963
|
+
NInputGroup: be,
|
|
3964
|
+
NSpin: Me,
|
|
3992
3965
|
Trash: bl,
|
|
3993
3966
|
FileText: Ro,
|
|
3994
3967
|
CloudDownload: Yi,
|
|
@@ -4018,8 +3991,8 @@ var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
|
|
|
4018
3991
|
},
|
|
4019
3992
|
emits: ["update:value"],
|
|
4020
3993
|
setup(e, { emit: t }) {
|
|
4021
|
-
let n =
|
|
4022
|
-
t("update:value",
|
|
3994
|
+
let n = He(), r = w(!1), i = w([]), a = () => {
|
|
3995
|
+
t("update:value", nt.stringify(i.value.map((e) => e.url)));
|
|
4023
3996
|
}, o = (e) => new Promise((t, o) => {
|
|
4024
3997
|
if (e.file.file) if (r.value = !0, e.file.file.size > 10485760) n.error({
|
|
4025
3998
|
content: "请上传小于10MB的文件",
|
|
@@ -4058,13 +4031,13 @@ var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
|
|
|
4058
4031
|
}, c = (e) => {
|
|
4059
4032
|
i.value.splice(e, 1), a();
|
|
4060
4033
|
}, l = () => {
|
|
4061
|
-
let t =
|
|
4034
|
+
let t = H(e.value);
|
|
4062
4035
|
if (!t) {
|
|
4063
4036
|
i.value = [];
|
|
4064
4037
|
return;
|
|
4065
4038
|
}
|
|
4066
4039
|
if (typeof t == "string") try {
|
|
4067
|
-
t =
|
|
4040
|
+
t = nt.parse(t), i.value = t.map((e, t) => {
|
|
4068
4041
|
let n = decodeURIComponent(e), r = n.lastIndexOf("/"), i = n.substring(r + 1);
|
|
4069
4042
|
return {
|
|
4070
4043
|
id: String(t + 1),
|
|
@@ -4080,7 +4053,7 @@ var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
|
|
|
4080
4053
|
};
|
|
4081
4054
|
return y(() => {
|
|
4082
4055
|
l();
|
|
4083
|
-
}),
|
|
4056
|
+
}), j(() => e.value, () => {
|
|
4084
4057
|
l();
|
|
4085
4058
|
}), {
|
|
4086
4059
|
formValue: i,
|
|
@@ -4093,14 +4066,14 @@ var Nf = /*#__PURE__*/ U(kf, [["render", Mf]]), Pf = d({
|
|
|
4093
4066
|
}
|
|
4094
4067
|
};
|
|
4095
4068
|
}
|
|
4096
|
-
}),
|
|
4097
|
-
function
|
|
4069
|
+
}), Bf = { class: "uz-form-upload-item-inner" }, Vf = ["title"], Hf = { key: 0 };
|
|
4070
|
+
function Uf(t, o, s, u, d, f) {
|
|
4098
4071
|
let p = D("CloudUpload"), m = D("NIcon"), h = D("NUploadDragger"), g = D("NUpload"), _ = D("PhotoOff"), v = D("NImage"), y = D("FileText"), b = D("Trash"), S = D("NButton"), C = D("NPopconfirm"), w = D("CloudDownload"), E = D("NSpin");
|
|
4099
4072
|
return x(), n(E, {
|
|
4100
4073
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
4101
4074
|
show: t.show
|
|
4102
4075
|
}, {
|
|
4103
|
-
default:
|
|
4076
|
+
default: N(() => [t.status === 2 ? r("", !0) : (x(), n(g, {
|
|
4104
4077
|
key: 0,
|
|
4105
4078
|
accept: t.item.params.accept,
|
|
4106
4079
|
max: t.item.params.max,
|
|
@@ -4111,9 +4084,9 @@ function Rf(t, o, s, u, d, f) {
|
|
|
4111
4084
|
class: "!uz-w-20",
|
|
4112
4085
|
"directory-dnd": ""
|
|
4113
4086
|
}, {
|
|
4114
|
-
default:
|
|
4115
|
-
default:
|
|
4116
|
-
default:
|
|
4087
|
+
default: N(() => [l(h, { class: "uz-flex uz-items-center uz-justify-center uz-h-20" }, {
|
|
4088
|
+
default: N(() => [l(m, { size: "28" }, {
|
|
4089
|
+
default: N(() => [l(p)]),
|
|
4117
4090
|
_: 1
|
|
4118
4091
|
})]),
|
|
4119
4092
|
_: 1
|
|
@@ -4131,11 +4104,11 @@ function Rf(t, o, s, u, d, f) {
|
|
|
4131
4104
|
width: "80",
|
|
4132
4105
|
src: e.url
|
|
4133
4106
|
}, {
|
|
4134
|
-
error:
|
|
4107
|
+
error: N(() => [l(m, {
|
|
4135
4108
|
size: "60",
|
|
4136
4109
|
color: "lightGrey"
|
|
4137
4110
|
}, {
|
|
4138
|
-
default:
|
|
4111
|
+
default: N(() => [l(_)]),
|
|
4139
4112
|
_: 1
|
|
4140
4113
|
})]),
|
|
4141
4114
|
_: 1
|
|
@@ -4146,23 +4119,23 @@ function Rf(t, o, s, u, d, f) {
|
|
|
4146
4119
|
class: "uz-cursor-pointer",
|
|
4147
4120
|
onClick: (n) => t.openFile(e.url)
|
|
4148
4121
|
}, {
|
|
4149
|
-
default:
|
|
4122
|
+
default: N(() => [l(y)]),
|
|
4150
4123
|
_: 1
|
|
4151
|
-
}, 8, ["onClick"])), a("div",
|
|
4124
|
+
}, 8, ["onClick"])), a("div", Bf, [a("div", {
|
|
4152
4125
|
class: "uz-form-upload-title uz-truncate",
|
|
4153
4126
|
title: e.name
|
|
4154
|
-
},
|
|
4155
|
-
trigger:
|
|
4127
|
+
}, k(e.name), 9, Vf), t.status === 2 ? r("", !0) : (x(), i("div", Hf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
4128
|
+
trigger: N(() => [l(S, {
|
|
4156
4129
|
size: "small",
|
|
4157
4130
|
tertiary: ""
|
|
4158
4131
|
}, {
|
|
4159
|
-
icon:
|
|
4160
|
-
default:
|
|
4132
|
+
icon: N(() => [l(m, { size: "14" }, {
|
|
4133
|
+
default: N(() => [l(b)]),
|
|
4161
4134
|
_: 1
|
|
4162
4135
|
})]),
|
|
4163
4136
|
_: 1
|
|
4164
4137
|
})]),
|
|
4165
|
-
default:
|
|
4138
|
+
default: N(() => [o[0] ||= c(" 确认删除? ", -1)]),
|
|
4166
4139
|
_: 1
|
|
4167
4140
|
}, 8, ["onPositiveClick"]), l(S, {
|
|
4168
4141
|
tag: "a",
|
|
@@ -4171,8 +4144,8 @@ function Rf(t, o, s, u, d, f) {
|
|
|
4171
4144
|
size: "small",
|
|
4172
4145
|
tertiary: ""
|
|
4173
4146
|
}, {
|
|
4174
|
-
icon:
|
|
4175
|
-
default:
|
|
4147
|
+
icon: N(() => [l(m, { size: "14" }, {
|
|
4148
|
+
default: N(() => [l(w)]),
|
|
4176
4149
|
_: 1
|
|
4177
4150
|
})]),
|
|
4178
4151
|
_: 1
|
|
@@ -4180,13 +4153,13 @@ function Rf(t, o, s, u, d, f) {
|
|
|
4180
4153
|
_: 1
|
|
4181
4154
|
}, 8, ["show"]);
|
|
4182
4155
|
}
|
|
4183
|
-
var
|
|
4156
|
+
var Wf = /*#__PURE__*/ U(zf, [["render", Uf], ["__scopeId", "data-v-d4bd872d"]]), Gf = d({
|
|
4184
4157
|
name: "UzFormItemImage",
|
|
4185
4158
|
components: {
|
|
4186
|
-
NImageGroup:
|
|
4187
|
-
NImage:
|
|
4188
|
-
NIcon:
|
|
4189
|
-
NPopover:
|
|
4159
|
+
NImageGroup: ve,
|
|
4160
|
+
NImage: _e,
|
|
4161
|
+
NIcon: B,
|
|
4162
|
+
NPopover: Ee,
|
|
4190
4163
|
PhotoOff: oc,
|
|
4191
4164
|
FileText: Ro
|
|
4192
4165
|
},
|
|
@@ -4197,9 +4170,9 @@ var zf = /*#__PURE__*/ U(Pf, [["render", Rf], ["__scopeId", "data-v-d4bd872d"]])
|
|
|
4197
4170
|
} },
|
|
4198
4171
|
setup(e) {
|
|
4199
4172
|
let t = w([]);
|
|
4200
|
-
return
|
|
4173
|
+
return M(() => {
|
|
4201
4174
|
try {
|
|
4202
|
-
e.value && (t.value =
|
|
4175
|
+
e.value && (t.value = nt.parse(e.value));
|
|
4203
4176
|
} catch {
|
|
4204
4177
|
t.value = [];
|
|
4205
4178
|
}
|
|
@@ -4226,20 +4199,20 @@ var zf = /*#__PURE__*/ U(Pf, [["render", Rf], ["__scopeId", "data-v-d4bd872d"]])
|
|
|
4226
4199
|
}
|
|
4227
4200
|
};
|
|
4228
4201
|
}
|
|
4229
|
-
}),
|
|
4230
|
-
function
|
|
4202
|
+
}), Kf = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
4203
|
+
function qf(t, r, o, s, u, d) {
|
|
4231
4204
|
let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
|
|
4232
4205
|
return x(), n(_, null, {
|
|
4233
|
-
default:
|
|
4206
|
+
default: N(() => [a("div", Kf, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
|
|
4234
4207
|
key: 0,
|
|
4235
4208
|
width: "40",
|
|
4236
4209
|
src: r
|
|
4237
4210
|
}, {
|
|
4238
|
-
error:
|
|
4211
|
+
error: N(() => [l(p, {
|
|
4239
4212
|
size: "40",
|
|
4240
4213
|
color: "lightGrey"
|
|
4241
4214
|
}, {
|
|
4242
|
-
default:
|
|
4215
|
+
default: N(() => [l(f)]),
|
|
4243
4216
|
_: 1
|
|
4244
4217
|
})]),
|
|
4245
4218
|
_: 1
|
|
@@ -4247,24 +4220,24 @@ function Hf(t, r, o, s, u, d) {
|
|
|
4247
4220
|
key: 1,
|
|
4248
4221
|
trigger: "hover"
|
|
4249
4222
|
}, {
|
|
4250
|
-
trigger:
|
|
4223
|
+
trigger: N(() => [l(p, {
|
|
4251
4224
|
size: "40",
|
|
4252
4225
|
color: "lightGrey",
|
|
4253
4226
|
onClick: (e) => t.openFile(r),
|
|
4254
4227
|
class: "uz-cursor-pointer"
|
|
4255
4228
|
}, {
|
|
4256
|
-
default:
|
|
4229
|
+
default: N(() => [l(h)]),
|
|
4257
4230
|
_: 1
|
|
4258
4231
|
}, 8, ["onClick"])]),
|
|
4259
|
-
default:
|
|
4232
|
+
default: N(() => [c(k(t.getFileName(r)), 1)]),
|
|
4260
4233
|
_: 2
|
|
4261
4234
|
}, 1024))], 64))), 256))])]),
|
|
4262
4235
|
_: 1
|
|
4263
4236
|
});
|
|
4264
4237
|
}
|
|
4265
|
-
var
|
|
4238
|
+
var Jf = /*#__PURE__*/ U(Gf, [["render", qf]]), Yf = d({
|
|
4266
4239
|
name: "UzFormItemTimesPicker",
|
|
4267
|
-
components: { NSelect:
|
|
4240
|
+
components: { NSelect: ke },
|
|
4268
4241
|
props: {
|
|
4269
4242
|
value: {
|
|
4270
4243
|
required: !0,
|
|
@@ -4290,7 +4263,7 @@ var Uf = /*#__PURE__*/ U(Bf, [["render", Hf]]), Wf = d({
|
|
|
4290
4263
|
}, l = () => {
|
|
4291
4264
|
t("update:value", `${i.value}:${a.value}:${o.value}`);
|
|
4292
4265
|
};
|
|
4293
|
-
return n({ clearAll: s }),
|
|
4266
|
+
return n({ clearAll: s }), j(() => e.value, (e) => {
|
|
4294
4267
|
if (e && e.indexOf(":") > -1) {
|
|
4295
4268
|
let t = e.split(":");
|
|
4296
4269
|
i.value = t[0], a.value = t[1], o.value = t[2];
|
|
@@ -4312,10 +4285,10 @@ var Uf = /*#__PURE__*/ U(Bf, [["render", Hf]]), Wf = d({
|
|
|
4312
4285
|
}
|
|
4313
4286
|
};
|
|
4314
4287
|
}
|
|
4315
|
-
}),
|
|
4316
|
-
function
|
|
4288
|
+
}), Xf = { class: "times-picker" };
|
|
4289
|
+
function Zf(e, t, n, r, a, o) {
|
|
4317
4290
|
let s = D("NSelect");
|
|
4318
|
-
return x(), i("div",
|
|
4291
|
+
return x(), i("div", Xf, [
|
|
4319
4292
|
l(s, {
|
|
4320
4293
|
value: e.h,
|
|
4321
4294
|
options: e.times,
|
|
@@ -4323,7 +4296,7 @@ function Kf(e, t, n, r, a, o) {
|
|
|
4323
4296
|
disabled: e.disabled,
|
|
4324
4297
|
"on-update:value": e.changeH
|
|
4325
4298
|
}, {
|
|
4326
|
-
arrow:
|
|
4299
|
+
arrow: N(() => [...t[0] ||= [c("时", -1)]]),
|
|
4327
4300
|
_: 1
|
|
4328
4301
|
}, 8, [
|
|
4329
4302
|
"value",
|
|
@@ -4338,7 +4311,7 @@ function Kf(e, t, n, r, a, o) {
|
|
|
4338
4311
|
disabled: e.disabled,
|
|
4339
4312
|
"on-update:value": e.changeM
|
|
4340
4313
|
}, {
|
|
4341
|
-
arrow:
|
|
4314
|
+
arrow: N(() => [...t[1] ||= [c("分", -1)]]),
|
|
4342
4315
|
_: 1
|
|
4343
4316
|
}, 8, [
|
|
4344
4317
|
"value",
|
|
@@ -4353,7 +4326,7 @@ function Kf(e, t, n, r, a, o) {
|
|
|
4353
4326
|
disabled: e.disabled,
|
|
4354
4327
|
"on-update:value": e.changeS
|
|
4355
4328
|
}, {
|
|
4356
|
-
arrow:
|
|
4329
|
+
arrow: N(() => [...t[2] ||= [c("秒", -1)]]),
|
|
4357
4330
|
_: 1
|
|
4358
4331
|
}, 8, [
|
|
4359
4332
|
"value",
|
|
@@ -4363,11 +4336,11 @@ function Kf(e, t, n, r, a, o) {
|
|
|
4363
4336
|
])
|
|
4364
4337
|
]);
|
|
4365
4338
|
}
|
|
4366
|
-
var
|
|
4339
|
+
var Qf = /*#__PURE__*/ U(Yf, [["render", Zf], ["__scopeId", "data-v-c90165b1"]]), $f = d({
|
|
4367
4340
|
name: "UzCamera",
|
|
4368
4341
|
components: {
|
|
4369
|
-
NButton:
|
|
4370
|
-
NModal:
|
|
4342
|
+
NButton: L,
|
|
4343
|
+
NModal: Ce
|
|
4371
4344
|
},
|
|
4372
4345
|
props: {
|
|
4373
4346
|
mode: {
|
|
@@ -4389,7 +4362,7 @@ var qf = /*#__PURE__*/ U(Wf, [["render", Kf], ["__scopeId", "data-v-c90165b1"]])
|
|
|
4389
4362
|
},
|
|
4390
4363
|
emits: ["on-update:value"],
|
|
4391
4364
|
setup(e, { emit: t }) {
|
|
4392
|
-
let n = w(), r = w(!1), i = w(!1), a =
|
|
4365
|
+
let n = w(), r = w(!1), i = w(!1), a = He(), o = null, s = null, c = (e, t) => {
|
|
4393
4366
|
o.beginPath(), o.moveTo(e.x, e.y), o.lineTo(t.x, t.y), o.lineWidth = 2, o.strokeStyle = "green", o.stroke();
|
|
4394
4367
|
}, l = () => {
|
|
4395
4368
|
i.value && requestAnimationFrame(u);
|
|
@@ -4445,7 +4418,7 @@ var qf = /*#__PURE__*/ U(Wf, [["render", Kf], ["__scopeId", "data-v-c90165b1"]])
|
|
|
4445
4418
|
e.mode === "video" && m();
|
|
4446
4419
|
}), v(() => {
|
|
4447
4420
|
d();
|
|
4448
|
-
}),
|
|
4421
|
+
}), j([() => e.width, () => e.width], () => {
|
|
4449
4422
|
e.mode === "video" && (d(), m());
|
|
4450
4423
|
}), {
|
|
4451
4424
|
videoRef: n,
|
|
@@ -4455,11 +4428,11 @@ var qf = /*#__PURE__*/ U(Wf, [["render", Kf], ["__scopeId", "data-v-c90165b1"]])
|
|
|
4455
4428
|
closeAll: d
|
|
4456
4429
|
};
|
|
4457
4430
|
}
|
|
4458
|
-
}),
|
|
4431
|
+
}), ep = ["width", "height"], tp = ["width", "height"], np = { class: "uz-scan-video" }, rp = {
|
|
4459
4432
|
ref: "videoRef",
|
|
4460
4433
|
playsInline: ""
|
|
4461
4434
|
};
|
|
4462
|
-
function
|
|
4435
|
+
function ip(t, o, s, l, u, d) {
|
|
4463
4436
|
let f = D("NButton"), p = D("NModal");
|
|
4464
4437
|
return x(), i(e, null, [
|
|
4465
4438
|
t.mode === "button" ? (x(), n(f, {
|
|
@@ -4468,7 +4441,7 @@ function $f(t, o, s, l, u, d) {
|
|
|
4468
4441
|
loading: t.loading,
|
|
4469
4442
|
onClick: t.doScan
|
|
4470
4443
|
}, {
|
|
4471
|
-
default:
|
|
4444
|
+
default: N(() => [c(k(t.$t("Common.scan")), 1)]),
|
|
4472
4445
|
_: 1
|
|
4473
4446
|
}, 8, ["loading", "onClick"])) : r("", !0),
|
|
4474
4447
|
t.mode === "button" ? (x(), n(p, {
|
|
@@ -4481,7 +4454,7 @@ function $f(t, o, s, l, u, d) {
|
|
|
4481
4454
|
"mask-closable": !1,
|
|
4482
4455
|
"on-after-leave": t.closeAll
|
|
4483
4456
|
}, {
|
|
4484
|
-
default:
|
|
4457
|
+
default: N(() => [a("div", {
|
|
4485
4458
|
class: "uz-scan-canvas-main",
|
|
4486
4459
|
style: _({
|
|
4487
4460
|
width: `${t.width}px`,
|
|
@@ -4491,7 +4464,7 @@ function $f(t, o, s, l, u, d) {
|
|
|
4491
4464
|
id: "uz-scan-canvas",
|
|
4492
4465
|
width: t.width,
|
|
4493
4466
|
height: t.height
|
|
4494
|
-
}, null, 8,
|
|
4467
|
+
}, null, 8, ep)], 4)]),
|
|
4495
4468
|
_: 1
|
|
4496
4469
|
}, 8, [
|
|
4497
4470
|
"show",
|
|
@@ -4509,22 +4482,22 @@ function $f(t, o, s, l, u, d) {
|
|
|
4509
4482
|
id: "uz-scan-canvas",
|
|
4510
4483
|
width: t.width,
|
|
4511
4484
|
height: t.height
|
|
4512
|
-
}, null, 8,
|
|
4513
|
-
a("div",
|
|
4485
|
+
}, null, 8, tp)], 4)) : r("", !0),
|
|
4486
|
+
a("div", np, [a("video", rp, null, 512)])
|
|
4514
4487
|
], 64);
|
|
4515
4488
|
}
|
|
4516
|
-
var
|
|
4489
|
+
var ap = /*#__PURE__*/ U($f, [["render", ip]]), op = d({
|
|
4517
4490
|
name: "UzSearchBar",
|
|
4518
4491
|
components: {
|
|
4519
|
-
NIcon:
|
|
4520
|
-
NButton:
|
|
4521
|
-
NButtonGroup:
|
|
4522
|
-
NGrid:
|
|
4523
|
-
NGridItem:
|
|
4524
|
-
NInputGroup:
|
|
4525
|
-
NInputGroupLabel:
|
|
4526
|
-
NPopover:
|
|
4527
|
-
UzFormItem:
|
|
4492
|
+
NIcon: B,
|
|
4493
|
+
NButton: L,
|
|
4494
|
+
NButtonGroup: te,
|
|
4495
|
+
NGrid: he,
|
|
4496
|
+
NGridItem: ge,
|
|
4497
|
+
NInputGroup: be,
|
|
4498
|
+
NInputGroupLabel: xe,
|
|
4499
|
+
NPopover: Ee,
|
|
4500
|
+
UzFormItem: kf,
|
|
4528
4501
|
CaretDown: Fr,
|
|
4529
4502
|
Refresh: Ac,
|
|
4530
4503
|
Search: Xc,
|
|
@@ -4568,9 +4541,9 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
|
|
|
4568
4541
|
} } },
|
|
4569
4542
|
emits: ["update:loading", "on-update:value"],
|
|
4570
4543
|
setup(e, { emit: t }) {
|
|
4571
|
-
let n =
|
|
4544
|
+
let n = qe(), r = w(), i = w([]), a = w(), o = w(!0), s = w(!1), c = w(!1), l = w(0), u = w(0), d = w(0), f = w(1), p = w(""), m = w([]), h = w(!1), g = (e) => Array.isArray(e) && e.length > 0 || e ? e : !1, _ = (n = !1) => {
|
|
4572
4545
|
if (e.loading) return;
|
|
4573
|
-
let a =
|
|
4546
|
+
let a = H(r.value);
|
|
4574
4547
|
!n && a.query && (a.query.page = 1);
|
|
4575
4548
|
let o = [];
|
|
4576
4549
|
i.value.forEach((e) => {
|
|
@@ -4588,7 +4561,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
|
|
|
4588
4561
|
}
|
|
4589
4562
|
}), t("update:loading", !0), t("on-update:value", o);
|
|
4590
4563
|
}, v = () => {
|
|
4591
|
-
e.loading || (r.value =
|
|
4564
|
+
e.loading || (r.value = H(a.value), _());
|
|
4592
4565
|
}, y = () => {
|
|
4593
4566
|
o.value = !o.value;
|
|
4594
4567
|
}, b = (e) => h.value ? r.value && Array.isArray(r.value[p.value]) && r.value[p.value].includes(e.value) ? "primary" : "default" : r.value[p.value] === e.value ? "primary" : "default", x = (t) => {
|
|
@@ -4599,7 +4572,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
|
|
|
4599
4572
|
for (let e of t) if (e.search.tab && (m.value = e.params.options, h.value = e.params.multiple, p.value = e.key, e.search.show = !1), e.input === "input" && e.params.type === "textarea" && (e.params.type = "text"), e.search.show = e.search.show ?? !0, e.defaultValue) if (e.input === "date") if (e.params.type.indexOf("range") > -1) switch (e.search.defaultValue) {
|
|
4600
4573
|
case "now":
|
|
4601
4574
|
{
|
|
4602
|
-
let t =
|
|
4575
|
+
let t = et().startOf("day").valueOf(), r = et().endOf("day").valueOf();
|
|
4603
4576
|
n[e.key] = [t, r];
|
|
4604
4577
|
}
|
|
4605
4578
|
break;
|
|
@@ -4625,7 +4598,7 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
|
|
|
4625
4598
|
};
|
|
4626
4599
|
}, S = (t) => {
|
|
4627
4600
|
if (m.value = [], t && t.length > 0) {
|
|
4628
|
-
let { data: o, values: s } = x(
|
|
4601
|
+
let { data: o, values: s } = x(H(t)), c = {}, l = e.id || n.params.id;
|
|
4629
4602
|
if (e.cache && l) {
|
|
4630
4603
|
let e = Y(`tables_${l}`, !1);
|
|
4631
4604
|
e && e.params.forEach((e) => {
|
|
@@ -4639,14 +4612,14 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
|
|
|
4639
4612
|
c[e.key] = e.value;
|
|
4640
4613
|
});
|
|
4641
4614
|
}
|
|
4642
|
-
i.value = o, r.value =
|
|
4615
|
+
i.value = o, r.value = H({
|
|
4643
4616
|
...s,
|
|
4644
4617
|
...c
|
|
4645
|
-
}), a.value =
|
|
4618
|
+
}), a.value = H(s);
|
|
4646
4619
|
}
|
|
4647
4620
|
_(!0);
|
|
4648
4621
|
};
|
|
4649
|
-
return
|
|
4622
|
+
return j(() => e.data, (e) => {
|
|
4650
4623
|
S(e);
|
|
4651
4624
|
}), {
|
|
4652
4625
|
itemValue: r,
|
|
@@ -4677,38 +4650,38 @@ var ep = /*#__PURE__*/ U(Jf, [["render", $f]]), tp = d({
|
|
|
4677
4650
|
tabButtonType: b
|
|
4678
4651
|
};
|
|
4679
4652
|
}
|
|
4680
|
-
}),
|
|
4653
|
+
}), sp = {
|
|
4681
4654
|
key: 0,
|
|
4682
4655
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
|
|
4683
|
-
},
|
|
4656
|
+
}, cp = { class: "uz-flex-1" }, lp = {
|
|
4684
4657
|
key: 1,
|
|
4685
4658
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
4686
4659
|
};
|
|
4687
|
-
function
|
|
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"),
|
|
4660
|
+
function up(t, a, o, s, u, d) {
|
|
4661
|
+
let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), O = D("Refresh"), A = ee("media");
|
|
4689
4662
|
return x(), i("div", {
|
|
4690
4663
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
4691
|
-
onKeyup: a[1] ||=
|
|
4692
|
-
}, [t.enableHeader ? (x(), i("div",
|
|
4664
|
+
onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
|
|
4665
|
+
}, [t.enableHeader ? (x(), i("div", sp, [E(t.$slots, "header"), P((x(), i("div", cp, [l(b, {
|
|
4693
4666
|
"x-gap": "8",
|
|
4694
4667
|
"y-gap": "8",
|
|
4695
4668
|
cols: t.cols,
|
|
4696
4669
|
"collapsed-rows": 1,
|
|
4697
4670
|
collapsed: t.collapsed
|
|
4698
4671
|
}, {
|
|
4699
|
-
default:
|
|
4672
|
+
default: N(() => [
|
|
4700
4673
|
t.tabList && t.tabList.length > 0 ? (x(), n(m, {
|
|
4701
4674
|
key: 0,
|
|
4702
4675
|
span: t.gridSpan
|
|
4703
4676
|
}, {
|
|
4704
|
-
default:
|
|
4705
|
-
default:
|
|
4677
|
+
default: N(() => [l(p, null, {
|
|
4678
|
+
default: N(() => [(x(!0), i(e, null, T(t.tabList, (e) => (x(), n(f, {
|
|
4706
4679
|
key: e.value,
|
|
4707
4680
|
type: t.tabButtonType(e),
|
|
4708
4681
|
secondary: "",
|
|
4709
4682
|
onClick: (n) => t.tabItemChange(e.value)
|
|
4710
4683
|
}, {
|
|
4711
|
-
default:
|
|
4684
|
+
default: N(() => [c(k(e.label), 1)]),
|
|
4712
4685
|
_: 2
|
|
4713
4686
|
}, 1032, ["type", "onClick"]))), 128))]),
|
|
4714
4687
|
_: 1
|
|
@@ -4723,17 +4696,17 @@ function ap(t, a, o, s, u, d) {
|
|
|
4723
4696
|
key: `${r}_${Date.now()}`,
|
|
4724
4697
|
span: e.search.show ? e.search.span === 1 ? t.gridSpan : e.search.span || t.gridSpan : 0
|
|
4725
4698
|
}, {
|
|
4726
|
-
default:
|
|
4727
|
-
default:
|
|
4699
|
+
default: N(() => [l(y, null, {
|
|
4700
|
+
default: N(() => [l(_, {
|
|
4728
4701
|
trigger: "hover",
|
|
4729
4702
|
placement: "top-start",
|
|
4730
4703
|
overlap: ""
|
|
4731
4704
|
}, {
|
|
4732
|
-
trigger:
|
|
4733
|
-
default:
|
|
4705
|
+
trigger: N(() => [l(h, { class: "uz-group-label" }, {
|
|
4706
|
+
default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4734
4707
|
_: 2
|
|
4735
4708
|
}, 1024)]),
|
|
4736
|
-
default:
|
|
4709
|
+
default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4737
4710
|
_: 2
|
|
4738
4711
|
}, 1024), l(v, {
|
|
4739
4712
|
item: e,
|
|
@@ -4746,14 +4719,14 @@ function ap(t, a, o, s, u, d) {
|
|
|
4746
4719
|
}, 1032, ["span"]))), 128))
|
|
4747
4720
|
]),
|
|
4748
4721
|
_: 1
|
|
4749
|
-
}, 8, ["cols", "collapsed"])])), [[
|
|
4722
|
+
}, 8, ["cols", "collapsed"])])), [[A]])])) : r("", !0), t.enableHeader ? (x(), i("div", lp, [
|
|
4750
4723
|
t.more ? (x(), n(f, {
|
|
4751
4724
|
key: 0,
|
|
4752
4725
|
quaternary: "",
|
|
4753
4726
|
onClick: t.showMore
|
|
4754
4727
|
}, {
|
|
4755
|
-
icon:
|
|
4756
|
-
default:
|
|
4728
|
+
icon: N(() => [l(C, { class: g(["uz-search-more", t.collapsed ? void 0 : "uz-search-rotate"]) }, {
|
|
4729
|
+
default: N(() => [l(S)]),
|
|
4757
4730
|
_: 1
|
|
4758
4731
|
}, 8, ["class"])]),
|
|
4759
4732
|
_: 1
|
|
@@ -4764,14 +4737,14 @@ function ap(t, a, o, s, u, d) {
|
|
|
4764
4737
|
secondary: "",
|
|
4765
4738
|
onClick: a[0] ||= (e) => t.doSearch(!1)
|
|
4766
4739
|
}, {
|
|
4767
|
-
icon:
|
|
4740
|
+
icon: N(() => [l(C, {
|
|
4768
4741
|
size: "18",
|
|
4769
4742
|
color: "#0086ff"
|
|
4770
4743
|
}, {
|
|
4771
|
-
default:
|
|
4744
|
+
default: N(() => [l(w)]),
|
|
4772
4745
|
_: 1
|
|
4773
4746
|
})]),
|
|
4774
|
-
default:
|
|
4747
|
+
default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4775
4748
|
_: 1
|
|
4776
4749
|
}, 8, ["loading"])) : r("", !0),
|
|
4777
4750
|
t.defaultValue && Object.keys(t.defaultValue).length > 0 ? (x(), n(f, {
|
|
@@ -4780,30 +4753,30 @@ function ap(t, a, o, s, u, d) {
|
|
|
4780
4753
|
secondary: "",
|
|
4781
4754
|
onClick: t.clearAll
|
|
4782
4755
|
}, {
|
|
4783
|
-
icon:
|
|
4784
|
-
default:
|
|
4756
|
+
icon: N(() => [l(C, null, {
|
|
4757
|
+
default: N(() => [l(O)]),
|
|
4785
4758
|
_: 1
|
|
4786
4759
|
})]),
|
|
4787
|
-
default:
|
|
4760
|
+
default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
|
|
4788
4761
|
_: 1
|
|
4789
4762
|
}, 8, ["loading", "onClick"])) : r("", !0),
|
|
4790
4763
|
E(t.$slots, "action")
|
|
4791
4764
|
])) : r("", !0)], 32);
|
|
4792
4765
|
}
|
|
4793
|
-
var
|
|
4766
|
+
var dp = /*#__PURE__*/ U(op, [["render", up]]), fp = d({
|
|
4794
4767
|
name: "UzSearchMobileBar",
|
|
4795
4768
|
components: {
|
|
4796
|
-
NIcon:
|
|
4797
|
-
NButton:
|
|
4798
|
-
NDrawer:
|
|
4799
|
-
NDrawerContent:
|
|
4800
|
-
NGrid:
|
|
4801
|
-
NGridItem:
|
|
4802
|
-
NInputGroup:
|
|
4803
|
-
NInputGroupLabel:
|
|
4769
|
+
NIcon: B,
|
|
4770
|
+
NButton: L,
|
|
4771
|
+
NDrawer: ce,
|
|
4772
|
+
NDrawerContent: le,
|
|
4773
|
+
NGrid: he,
|
|
4774
|
+
NGridItem: ge,
|
|
4775
|
+
NInputGroup: be,
|
|
4776
|
+
NInputGroupLabel: xe,
|
|
4804
4777
|
Refresh: Ac,
|
|
4805
4778
|
Search: Xc,
|
|
4806
|
-
UzFormItem:
|
|
4779
|
+
UzFormItem: kf
|
|
4807
4780
|
},
|
|
4808
4781
|
props: {
|
|
4809
4782
|
data: {
|
|
@@ -4826,9 +4799,9 @@ var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
|
|
|
4826
4799
|
},
|
|
4827
4800
|
emits: ["update:loading", "on-update:value"],
|
|
4828
4801
|
setup(e, { emit: t }) {
|
|
4829
|
-
let n =
|
|
4802
|
+
let n = qe(), r = w([]), i = w(!1), a = w(), o = w(), s = (e) => Array.isArray(e) && e.length > 0 || e ? e : !1, c = (n = !1) => {
|
|
4830
4803
|
if (e.loading) return;
|
|
4831
|
-
let o =
|
|
4804
|
+
let o = H(a.value);
|
|
4832
4805
|
!n && o.query && (o.query.page = 1);
|
|
4833
4806
|
let c = [];
|
|
4834
4807
|
r.value.forEach((e) => {
|
|
@@ -4846,7 +4819,7 @@ var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
|
|
|
4846
4819
|
}
|
|
4847
4820
|
}), i.value = !1, t("update:loading", !0), t("on-update:value", c);
|
|
4848
4821
|
}, l = () => {
|
|
4849
|
-
e.loading || (a.value =
|
|
4822
|
+
e.loading || (a.value = H(o.value), c());
|
|
4850
4823
|
}, u = (e) => {
|
|
4851
4824
|
let t = {};
|
|
4852
4825
|
for (let n of e) n.input === "input" && n.params.type === "textarea" && (n.params.type = "text"), n.search.show = n.search.show ?? !0, n.defaultValue ? t[n.key] = n.defaultValue : (t[n.key] = "", (n.input === "number" || n.input === "date" || n.input === "time") && (t[n.key] = null), n.input === "cascader" && (n.params.multiple ? t[n.key] = [] : t[n.key] = null), n.input === "select" && (n.params.multiple ? t[n.key] = [] : t[n.key] = null));
|
|
@@ -4856,21 +4829,21 @@ var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
|
|
|
4856
4829
|
};
|
|
4857
4830
|
}, d = (t) => {
|
|
4858
4831
|
if (t && t.length > 0) {
|
|
4859
|
-
let { data: i, values: s } = u(
|
|
4832
|
+
let { data: i, values: s } = u(H(t)), c = {}, l = e.id || n.params.id;
|
|
4860
4833
|
if (e.cache && l) {
|
|
4861
4834
|
let e = Y(`tables_${l}`, !1);
|
|
4862
4835
|
e && e.params.forEach((e) => {
|
|
4863
4836
|
c[e.key] = e.value;
|
|
4864
4837
|
});
|
|
4865
4838
|
}
|
|
4866
|
-
r.value = i, a.value =
|
|
4839
|
+
r.value = i, a.value = H({
|
|
4867
4840
|
...s,
|
|
4868
4841
|
...c
|
|
4869
|
-
}), o.value =
|
|
4842
|
+
}), o.value = H(s);
|
|
4870
4843
|
}
|
|
4871
4844
|
c(!0);
|
|
4872
4845
|
};
|
|
4873
|
-
return
|
|
4846
|
+
return j(() => e.data, (e) => {
|
|
4874
4847
|
d(e);
|
|
4875
4848
|
}), {
|
|
4876
4849
|
drawer: i,
|
|
@@ -4880,19 +4853,19 @@ var op = /*#__PURE__*/ U(tp, [["render", ap]]), sp = d({
|
|
|
4880
4853
|
clearAll: l
|
|
4881
4854
|
};
|
|
4882
4855
|
}
|
|
4883
|
-
}),
|
|
4884
|
-
function
|
|
4856
|
+
}), pp = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, mp = { class: "uz-flex uz-gap-2" }, hp = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
4857
|
+
function gp(t, o, s, u, d, f) {
|
|
4885
4858
|
let p = D("Search"), m = D("NIcon"), h = D("NButton"), g = D("NInputGroupLabel"), _ = D("UzFormItem"), v = D("NInputGroup"), y = D("NGridItem"), b = D("NGrid"), S = D("Refresh"), C = D("NDrawerContent"), w = D("NDrawer");
|
|
4886
|
-
return x(), i(e, null, [a("div",
|
|
4859
|
+
return x(), i(e, null, [a("div", pp, [E(t.$slots, "header"), a("div", mp, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
|
|
4887
4860
|
key: 0,
|
|
4888
4861
|
secondary: "",
|
|
4889
4862
|
onClick: o[0] ||= (e) => t.drawer = !0
|
|
4890
4863
|
}, {
|
|
4891
|
-
icon:
|
|
4892
|
-
default:
|
|
4864
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4865
|
+
default: N(() => [l(p)]),
|
|
4893
4866
|
_: 1
|
|
4894
4867
|
})]),
|
|
4895
|
-
default:
|
|
4868
|
+
default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4896
4869
|
_: 1
|
|
4897
4870
|
})) : r("", !0), E(t.$slots, "action")])]), l(w, {
|
|
4898
4871
|
show: t.drawer,
|
|
@@ -4904,21 +4877,21 @@ function dp(t, o, s, u, d, f) {
|
|
|
4904
4877
|
"auto-focus": !1,
|
|
4905
4878
|
"close-on-esc": !1
|
|
4906
4879
|
}, {
|
|
4907
|
-
default:
|
|
4880
|
+
default: N(() => [l(C, {
|
|
4908
4881
|
title: "查询",
|
|
4909
4882
|
closable: ""
|
|
4910
4883
|
}, {
|
|
4911
|
-
footer:
|
|
4884
|
+
footer: N(() => [a("div", hp, [l(h, {
|
|
4912
4885
|
secondary: "",
|
|
4913
4886
|
loading: t.loading,
|
|
4914
4887
|
onClick: t.clearAll,
|
|
4915
4888
|
class: "uz-flex-1"
|
|
4916
4889
|
}, {
|
|
4917
|
-
icon:
|
|
4918
|
-
default:
|
|
4890
|
+
icon: N(() => [l(m, null, {
|
|
4891
|
+
default: N(() => [l(S)]),
|
|
4919
4892
|
_: 1
|
|
4920
4893
|
})]),
|
|
4921
|
-
default:
|
|
4894
|
+
default: N(() => [c(" " + k(t.$t("Common.reset")), 1)]),
|
|
4922
4895
|
_: 1
|
|
4923
4896
|
}, 8, ["loading", "onClick"]), t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
|
|
4924
4897
|
key: 0,
|
|
@@ -4927,25 +4900,25 @@ function dp(t, o, s, u, d, f) {
|
|
|
4927
4900
|
class: "uz-flex-1",
|
|
4928
4901
|
onClick: o[1] ||= (e) => t.doSearch(!1)
|
|
4929
4902
|
}, {
|
|
4930
|
-
icon:
|
|
4931
|
-
default:
|
|
4903
|
+
icon: N(() => [l(m, { size: "18" }, {
|
|
4904
|
+
default: N(() => [l(p)]),
|
|
4932
4905
|
_: 1
|
|
4933
4906
|
})]),
|
|
4934
|
-
default:
|
|
4907
|
+
default: N(() => [c(" " + k(t.$t("Common.search")), 1)]),
|
|
4935
4908
|
_: 1
|
|
4936
4909
|
}, 8, ["loading"])) : r("", !0)])]),
|
|
4937
|
-
default:
|
|
4910
|
+
default: N(() => [l(b, {
|
|
4938
4911
|
"x-gap": "8",
|
|
4939
4912
|
"y-gap": "8",
|
|
4940
4913
|
cols: "1"
|
|
4941
4914
|
}, {
|
|
4942
|
-
default:
|
|
4915
|
+
default: N(() => [(x(!0), i(e, null, T(t.itemData, (e, r) => (x(), n(y, {
|
|
4943
4916
|
key: `${r}_${Date.now()}`,
|
|
4944
4917
|
span: +!!e.search.show
|
|
4945
4918
|
}, {
|
|
4946
|
-
default:
|
|
4947
|
-
default:
|
|
4948
|
-
default:
|
|
4919
|
+
default: N(() => [l(v, null, {
|
|
4920
|
+
default: N(() => [l(g, { class: "uz-group-label" }, {
|
|
4921
|
+
default: N(() => [c(k(typeof e.label == "function" ? e.label() : e.label), 1)]),
|
|
4949
4922
|
_: 2
|
|
4950
4923
|
}, 1024), l(_, {
|
|
4951
4924
|
item: e,
|
|
@@ -4963,7 +4936,7 @@ function dp(t, o, s, u, d, f) {
|
|
|
4963
4936
|
_: 1
|
|
4964
4937
|
}, 8, ["show"])], 64);
|
|
4965
4938
|
}
|
|
4966
|
-
var
|
|
4939
|
+
var _p = /*#__PURE__*/ U(fp, [["render", gp]]), vp = /(?<=\[)(.+?)(?=\])/g, yp = {
|
|
4967
4940
|
index: 1,
|
|
4968
4941
|
selection: 0,
|
|
4969
4942
|
pagination: 1,
|
|
@@ -4979,10 +4952,10 @@ var fp = /*#__PURE__*/ U(sp, [["render", dp]]), pp = /(?<=\[)(.+?)(?=\])/g, mp =
|
|
|
4979
4952
|
placement: "right",
|
|
4980
4953
|
summary: ""
|
|
4981
4954
|
};
|
|
4982
|
-
function
|
|
4955
|
+
function bp(e) {
|
|
4983
4956
|
return Function("return " + e)();
|
|
4984
4957
|
}
|
|
4985
|
-
var
|
|
4958
|
+
var xp = () => new Promise((e) => {
|
|
4986
4959
|
let t = window.localStorage.getItem("city");
|
|
4987
4960
|
if (t) e(JSON.parse(t));
|
|
4988
4961
|
else {
|
|
@@ -4995,9 +4968,9 @@ var gp = () => new Promise((e) => {
|
|
|
4995
4968
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4996
4969
|
}, 500);
|
|
4997
4970
|
}
|
|
4998
|
-
}),
|
|
4971
|
+
}), Sp = async (e, t, n) => {
|
|
4999
4972
|
if (t && typeof t == "string") {
|
|
5000
|
-
let r = t.match(
|
|
4973
|
+
let r = t.match(vp);
|
|
5001
4974
|
if (r && t.indexOf("return") === -1) {
|
|
5002
4975
|
let t = r[0].split(":");
|
|
5003
4976
|
if (t[0] === "date") return (t) => sd(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
@@ -5017,12 +4990,12 @@ var gp = () => new Promise((e) => {
|
|
|
5017
4990
|
}
|
|
5018
4991
|
}
|
|
5019
4992
|
return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
|
|
5020
|
-
},
|
|
4993
|
+
}, Cp = (e, t, n) => {
|
|
5021
4994
|
let r = t.map((t) => {
|
|
5022
4995
|
let r = [], i = t.id;
|
|
5023
4996
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
5024
4997
|
r.push(t[e]);
|
|
5025
|
-
}), r =
|
|
4998
|
+
}), r = Ze(r).join("-")) : r = t[n[1]], e.input === "select" && e.params.valueKey && (i = t[e.params.valueKey]), {
|
|
5026
4999
|
label: t?.is_disabled === "1" ? `${r}-已禁用` : r,
|
|
5027
5000
|
value: i,
|
|
5028
5001
|
disabled: e.params._search ? !1 : t?.is_disabled === "1",
|
|
@@ -5030,37 +5003,37 @@ var gp = () => new Promise((e) => {
|
|
|
5030
5003
|
};
|
|
5031
5004
|
});
|
|
5032
5005
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5033
|
-
},
|
|
5034
|
-
function
|
|
5035
|
-
|
|
5006
|
+
}, wp = /* @__PURE__ */ new Map();
|
|
5007
|
+
function Tp() {
|
|
5008
|
+
wp.clear();
|
|
5036
5009
|
}
|
|
5037
|
-
async function
|
|
5010
|
+
async function Ep(e, t = !1) {
|
|
5038
5011
|
let n = e.split("."), r = !1;
|
|
5039
|
-
return n.length > 1 && (
|
|
5012
|
+
return n.length > 1 && (wp.has(n[0]) && !t ? r = H(wp.get(n[0])) : (r = await Td({ tableId: n[0] }), wp.set(n[0], r))), {
|
|
5040
5013
|
sourceData: r,
|
|
5041
5014
|
n
|
|
5042
5015
|
};
|
|
5043
5016
|
}
|
|
5044
|
-
async function
|
|
5017
|
+
async function Dp(e) {
|
|
5045
5018
|
return new Promise((t, n) => {
|
|
5046
5019
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
5047
|
-
r &&
|
|
5020
|
+
r && wp.has(`dynamicTable_${e}`) ? t(r) : wd(e).then((i) => {
|
|
5048
5021
|
!r || r && r.createTime !== i.createTime ? Cd(e).then((n) => {
|
|
5049
5022
|
let r = {
|
|
5050
5023
|
createTime: n.createTime,
|
|
5051
5024
|
tableTitle: n.tableTitle,
|
|
5052
5025
|
viewJson: n.viewJson
|
|
5053
5026
|
};
|
|
5054
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
5027
|
+
J(`dynamicTable_${e}`, r, 0), wp.set(`dynamicTable_${e}`, !0), rd("tables_"), t(n);
|
|
5055
5028
|
}).catch(() => {
|
|
5056
5029
|
n();
|
|
5057
|
-
}) : (
|
|
5030
|
+
}) : (wp.set(`dynamicTable_${e}`, !0), t(r));
|
|
5058
5031
|
}).catch(() => {
|
|
5059
5032
|
n();
|
|
5060
5033
|
});
|
|
5061
5034
|
});
|
|
5062
5035
|
}
|
|
5063
|
-
var
|
|
5036
|
+
var Op = (e) => e.map((e) => {
|
|
5064
5037
|
let t = {};
|
|
5065
5038
|
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
5066
5039
|
i: e.input,
|
|
@@ -5131,7 +5104,7 @@ var Cp = (e) => e.map((e) => {
|
|
|
5131
5104
|
}
|
|
5132
5105
|
}
|
|
5133
5106
|
};
|
|
5134
|
-
}),
|
|
5107
|
+
}), kp = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5135
5108
|
let t = {};
|
|
5136
5109
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
5137
5110
|
input: e.i,
|
|
@@ -5202,11 +5175,11 @@ var Cp = (e) => e.map((e) => {
|
|
|
5202
5175
|
}
|
|
5203
5176
|
}
|
|
5204
5177
|
};
|
|
5205
|
-
}),
|
|
5178
|
+
}), Ap = (e) => ({
|
|
5206
5179
|
f: e.fetch,
|
|
5207
5180
|
o: e.when_drawer_open,
|
|
5208
5181
|
b: e.when_before_save
|
|
5209
|
-
}),
|
|
5182
|
+
}), jp = (e) => e ? e.fetch ? e : {
|
|
5210
5183
|
fetch: e.f,
|
|
5211
5184
|
when_drawer_open: e.o,
|
|
5212
5185
|
when_before_save: e.b
|
|
@@ -5214,7 +5187,7 @@ var Cp = (e) => e.map((e) => {
|
|
|
5214
5187
|
fetch: null,
|
|
5215
5188
|
when_drawer_open: "",
|
|
5216
5189
|
when_before_save: ""
|
|
5217
|
-
},
|
|
5190
|
+
}, Mp = (e) => ({
|
|
5218
5191
|
i: e.index,
|
|
5219
5192
|
s: e.selection,
|
|
5220
5193
|
p: e.pagination,
|
|
@@ -5228,7 +5201,7 @@ var Cp = (e) => e.map((e) => {
|
|
|
5228
5201
|
h: e.drawerHeight,
|
|
5229
5202
|
l: e.placement,
|
|
5230
5203
|
r: e.summary
|
|
5231
|
-
}),
|
|
5204
|
+
}), Np = (e) => {
|
|
5232
5205
|
let t = {};
|
|
5233
5206
|
return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
5234
5207
|
index: e.i,
|
|
@@ -5244,11 +5217,11 @@ var Cp = (e) => e.map((e) => {
|
|
|
5244
5217
|
drawerHeight: e.h,
|
|
5245
5218
|
placement: e.l,
|
|
5246
5219
|
summary: e.r
|
|
5247
|
-
}), Object.assign({},
|
|
5220
|
+
}), Object.assign({}, yp, H(t));
|
|
5248
5221
|
};
|
|
5249
|
-
function
|
|
5222
|
+
function Pp(e, t, n, r) {
|
|
5250
5223
|
return new Promise(async (i, a) => {
|
|
5251
|
-
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f =
|
|
5224
|
+
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = H(e), p = [];
|
|
5252
5225
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
5253
5226
|
for (let e of p) {
|
|
5254
5227
|
if (e.source && (e.input === "select" || e.input === "cascader")) {
|
|
@@ -5281,17 +5254,17 @@ function kp(e, t, n, r) {
|
|
|
5281
5254
|
disabled: !0
|
|
5282
5255
|
}];
|
|
5283
5256
|
if (e.params.immediately || r) {
|
|
5284
|
-
let { sourceData: t, n: r } = await
|
|
5257
|
+
let { sourceData: t, n: r } = await Ep(e.source);
|
|
5285
5258
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5286
5259
|
let r = e.sourceFn;
|
|
5287
5260
|
n = Function("sourceData", r)(t);
|
|
5288
|
-
} else n =
|
|
5261
|
+
} else n = Cp(e, t, r);
|
|
5289
5262
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5290
|
-
let { sourceData: t, n } = await
|
|
5263
|
+
let { sourceData: t, n } = await Ep(e.source);
|
|
5291
5264
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5292
5265
|
let n = e.sourceFn;
|
|
5293
5266
|
return Function("sourceData", n)(t);
|
|
5294
|
-
} else return
|
|
5267
|
+
} else return Cp(e, t, n);
|
|
5295
5268
|
};
|
|
5296
5269
|
if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
|
|
5297
5270
|
let i = n.find((n) => n.value === t[e.key]);
|
|
@@ -5322,27 +5295,27 @@ function kp(e, t, n, r) {
|
|
|
5322
5295
|
q(e);
|
|
5323
5296
|
}
|
|
5324
5297
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
5325
|
-
let t = await
|
|
5298
|
+
let t = await xp();
|
|
5326
5299
|
e.params.options = t;
|
|
5327
5300
|
}
|
|
5328
5301
|
if (e.input === "subTable" && e.params.link) {
|
|
5329
|
-
let t = await
|
|
5302
|
+
let t = await Dp(e.params.link).catch(() => {
|
|
5330
5303
|
a();
|
|
5331
5304
|
});
|
|
5332
5305
|
if (t) try {
|
|
5333
|
-
let n =
|
|
5306
|
+
let n = nt.parse(t.viewJson);
|
|
5334
5307
|
n.suffix && (e._suffix = Hd(n.suffix));
|
|
5335
|
-
let r =
|
|
5308
|
+
let r = kp(n.table);
|
|
5336
5309
|
r.forEach((e) => {
|
|
5337
5310
|
e.table.sorter = !1;
|
|
5338
5311
|
});
|
|
5339
5312
|
let i = r.filter((e) => e.input === "subTable");
|
|
5340
5313
|
if (i) for await (let e of i) {
|
|
5341
|
-
let t = await
|
|
5314
|
+
let t = await Dp(e.params.link).catch(() => {
|
|
5342
5315
|
a();
|
|
5343
5316
|
});
|
|
5344
5317
|
if (t) try {
|
|
5345
|
-
let n =
|
|
5318
|
+
let n = nt.parse(t.viewJson), r = kp(n.table);
|
|
5346
5319
|
r.forEach((e) => {
|
|
5347
5320
|
e.table.sorter = !1;
|
|
5348
5321
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -5376,8 +5349,8 @@ function kp(e, t, n, r) {
|
|
|
5376
5349
|
});
|
|
5377
5350
|
});
|
|
5378
5351
|
}
|
|
5379
|
-
async function
|
|
5380
|
-
let o = 0, s = [], c = [], l = [], u =
|
|
5352
|
+
async function Fp(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
5353
|
+
let o = 0, s = [], c = [], l = [], u = H(e), d = [], p = [];
|
|
5381
5354
|
for (let e of u) e.input === "group" ? (d.push(...e.params.children), p.push({
|
|
5382
5355
|
title: e.label,
|
|
5383
5356
|
key: e.key,
|
|
@@ -5386,27 +5359,27 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5386
5359
|
})) : (d.push(e), p.push(e.key));
|
|
5387
5360
|
for await (let [e, u] of d.entries()) {
|
|
5388
5361
|
if (u.source && !u.table.render && (u.input === "select" || u.input === "cascader")) if (u.table.render = (e) => e[`${u.key}Str`], t || u.params.immediately || u.search.defaultValue) {
|
|
5389
|
-
let { sourceData: t, n } = await
|
|
5362
|
+
let { sourceData: t, n } = await Ep(u.source, a && e === 0);
|
|
5390
5363
|
if (t && Array.isArray(t)) if (u.sourceFn) {
|
|
5391
5364
|
let e = u.sourceFn, n = Function("sourceData", e);
|
|
5392
5365
|
u.params.options = n(t);
|
|
5393
|
-
} else u.params.options =
|
|
5366
|
+
} else u.params.options = Cp(u, t, n);
|
|
5394
5367
|
} else u.params.options = [{
|
|
5395
5368
|
label: "加载中......",
|
|
5396
5369
|
value: "loading",
|
|
5397
5370
|
disabled: !0
|
|
5398
5371
|
}], u.params._async = !0, u.params._fetch = !1, u.params._asyncFn = async () => {
|
|
5399
|
-
let { sourceData: e, n: t } = await
|
|
5372
|
+
let { sourceData: e, n: t } = await Ep(u.source);
|
|
5400
5373
|
if (e && Array.isArray(e)) if (u.sourceFn) {
|
|
5401
5374
|
let t = u.sourceFn;
|
|
5402
5375
|
return Function("sourceData", t)(e);
|
|
5403
|
-
} else return
|
|
5376
|
+
} else return Cp(u, e, t);
|
|
5404
5377
|
};
|
|
5405
5378
|
!u.table.render && !u.source && u.input === "select" && typeof u.params.options != "function" && u.params.options.length > 0 && (u.table.render = (e) => {
|
|
5406
5379
|
let t = u.params.options.find((t) => t.value === e[u.key]);
|
|
5407
5380
|
if (t) return t.label;
|
|
5408
5381
|
}), u.input === "upload" && !u.table.render && (u.table.render = function(e) {
|
|
5409
|
-
return f(
|
|
5382
|
+
return f(Jf, { value: e[u.key] }, { default: () => null });
|
|
5410
5383
|
}), o += Number(u.table.width || 140);
|
|
5411
5384
|
let d = {
|
|
5412
5385
|
input: u.input,
|
|
@@ -5421,7 +5394,7 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5421
5394
|
tooltip: !0,
|
|
5422
5395
|
"line-clamp": u.table.clamp ?? 0
|
|
5423
5396
|
} : !1,
|
|
5424
|
-
render: u.table.render ? await
|
|
5397
|
+
render: u.table.render ? await Sp(u.key, u.table.render, i) : void 0,
|
|
5425
5398
|
show: K.isMobile ? u.table.mobile ?? !1 : u.table.show ?? !0,
|
|
5426
5399
|
pin: !!u.table.fixed,
|
|
5427
5400
|
fixTemp: u.table.fixed
|
|
@@ -5434,7 +5407,7 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5434
5407
|
u.form.rule.validator === "" ? u.form.rule.validator = (e, t) => r()[e.index].delete || t ? !0 : Error(u.form.rule.message) : u.form.rule.validator = (e, n) => r()[e.index].delete ? !0 : t(e, n, e.index, () => r());
|
|
5435
5408
|
}
|
|
5436
5409
|
d.render = function(e, t) {
|
|
5437
|
-
return f(
|
|
5410
|
+
return f(me, {
|
|
5438
5411
|
showLabel: !1,
|
|
5439
5412
|
showFeedback: !1,
|
|
5440
5413
|
path: `child[${t}].${u.key}`,
|
|
@@ -5442,7 +5415,7 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5442
5415
|
...u.form.rule,
|
|
5443
5416
|
index: t
|
|
5444
5417
|
} : void 0
|
|
5445
|
-
}, { default: () => f(
|
|
5418
|
+
}, { default: () => f(kf, {
|
|
5446
5419
|
item: u,
|
|
5447
5420
|
formValue: e,
|
|
5448
5421
|
status: n,
|
|
@@ -5453,26 +5426,26 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5453
5426
|
if (d && u.input !== "divider" && u.input !== "subTable" && l.push(d), u.input !== "divider" && u.input !== "switch" && u.input !== "subTable" && u.input !== "upload" && u.search.show) {
|
|
5454
5427
|
if (u.search.title && (u.label = u.search.title), u.search.source) if (u.input = "select", u.params.type = u.search.type, u.params.valueKey = u.search.valueKey, u.params.valueKey = u.search.valueKey, u.search.source === "from-up") u.params.options = u.params.options;
|
|
5455
5428
|
else if (u.params.immediately || u.search.defaultValue) {
|
|
5456
|
-
let { sourceData: e, n: t } = await
|
|
5429
|
+
let { sourceData: e, n: t } = await Ep(u.search.source);
|
|
5457
5430
|
if (e && Array.isArray(e)) if (u.sourceFn) {
|
|
5458
5431
|
let t = u.sourceFn, n = Function("sourceData", t);
|
|
5459
5432
|
u.params.options = n(e);
|
|
5460
|
-
} else u.params.options =
|
|
5433
|
+
} else u.params.options = Cp(u, e, t);
|
|
5461
5434
|
} else u.params._async = !0, u.params._fetch = !1, u.params._asyncFn = async () => {
|
|
5462
|
-
let { sourceData: e, n: t } = await
|
|
5435
|
+
let { sourceData: e, n: t } = await Ep(u.search.source);
|
|
5463
5436
|
if (e && Array.isArray(e)) if (u.sourceFn) {
|
|
5464
5437
|
let t = u.sourceFn;
|
|
5465
5438
|
return Function("sourceData", t)(e);
|
|
5466
|
-
} else return
|
|
5439
|
+
} else return Cp(u, e, t);
|
|
5467
5440
|
};
|
|
5468
|
-
if (u.search.multiple && (u.params.multiple = !0, u.search.defaultValue && (u.search.defaultValue =
|
|
5469
|
-
let e =
|
|
5441
|
+
if (u.search.multiple && (u.params.multiple = !0, u.search.defaultValue && (u.search.defaultValue = bp(u.search.defaultValue))), u.search.show) {
|
|
5442
|
+
let e = H(u);
|
|
5470
5443
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
5471
|
-
let { sourceData: t, n } = await
|
|
5444
|
+
let { sourceData: t, n } = await Ep(e.source || e.search.source);
|
|
5472
5445
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5473
5446
|
let n = e.sourceFn;
|
|
5474
5447
|
return Function("sourceData", n)(t);
|
|
5475
|
-
} else return
|
|
5448
|
+
} else return Cp(e, t, n);
|
|
5476
5449
|
}), s.push({
|
|
5477
5450
|
input: e.input,
|
|
5478
5451
|
label: e.label,
|
|
@@ -5518,12 +5491,12 @@ async function Ap(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5518
5491
|
}
|
|
5519
5492
|
//#endregion
|
|
5520
5493
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
5521
|
-
var
|
|
5494
|
+
var Ip = d({
|
|
5522
5495
|
name: "UzSpin",
|
|
5523
5496
|
components: {
|
|
5524
|
-
NButton:
|
|
5525
|
-
NSpin:
|
|
5526
|
-
NEllipsis:
|
|
5497
|
+
NButton: L,
|
|
5498
|
+
NSpin: Me,
|
|
5499
|
+
NEllipsis: de
|
|
5527
5500
|
},
|
|
5528
5501
|
emits: ["update:value"],
|
|
5529
5502
|
props: {
|
|
@@ -5553,7 +5526,7 @@ var jp = d({
|
|
|
5553
5526
|
};
|
|
5554
5527
|
return b(() => {
|
|
5555
5528
|
clearInterval(n.value);
|
|
5556
|
-
}),
|
|
5529
|
+
}), j(() => e.status, (e) => {
|
|
5557
5530
|
e === 1 && o();
|
|
5558
5531
|
}), {
|
|
5559
5532
|
counts: r,
|
|
@@ -5564,49 +5537,49 @@ var jp = d({
|
|
|
5564
5537
|
});
|
|
5565
5538
|
//#endregion
|
|
5566
5539
|
//#region components/spin/index.vue
|
|
5567
|
-
function
|
|
5540
|
+
function Lp(e, t, r, i, o, s) {
|
|
5568
5541
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
5569
5542
|
return x(), n(f, { show: e.value }, {
|
|
5570
|
-
description:
|
|
5543
|
+
description: N(() => [
|
|
5571
5544
|
l(u, {
|
|
5572
5545
|
"expand-trigger": "click",
|
|
5573
5546
|
"line-clamp": "3",
|
|
5574
5547
|
tooltip: !1
|
|
5575
5548
|
}, {
|
|
5576
|
-
default:
|
|
5549
|
+
default: N(() => [c(k(e.status === 0 ? "操作进行中..." : e.message), 1)]),
|
|
5577
5550
|
_: 1
|
|
5578
5551
|
}),
|
|
5579
5552
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
5580
|
-
|
|
5553
|
+
P(l(d, {
|
|
5581
5554
|
type: "warning",
|
|
5582
5555
|
block: "",
|
|
5583
5556
|
secondary: "",
|
|
5584
5557
|
onMouseover: e.stopCountdown,
|
|
5585
5558
|
onClick: e.handleClose
|
|
5586
5559
|
}, {
|
|
5587
|
-
default:
|
|
5560
|
+
default: N(() => [c(" 关闭(" + k(e.counts) + "s) ", 1)]),
|
|
5588
5561
|
_: 1
|
|
5589
|
-
}, 8, ["onMouseover", "onClick"]), [[
|
|
5562
|
+
}, 8, ["onMouseover", "onClick"]), [[A, e.status === 1]])
|
|
5590
5563
|
]),
|
|
5591
|
-
default:
|
|
5564
|
+
default: N(() => [E(e.$slots, "default")]),
|
|
5592
5565
|
_: 3
|
|
5593
5566
|
}, 8, ["show"]);
|
|
5594
5567
|
}
|
|
5595
|
-
var
|
|
5568
|
+
var Rp = /*#__PURE__*/ U(Ip, [["render", Lp]]), zp = d({
|
|
5596
5569
|
name: "UzTable",
|
|
5597
5570
|
components: {
|
|
5598
|
-
NDataTable:
|
|
5599
|
-
NPopover:
|
|
5600
|
-
NButton:
|
|
5601
|
-
NIcon:
|
|
5602
|
-
NSkeleton:
|
|
5603
|
-
NCheckbox:
|
|
5604
|
-
NSpin:
|
|
5571
|
+
NDataTable: oe,
|
|
5572
|
+
NPopover: Ee,
|
|
5573
|
+
NButton: L,
|
|
5574
|
+
NIcon: B,
|
|
5575
|
+
NSkeleton: Ae,
|
|
5576
|
+
NCheckbox: R,
|
|
5577
|
+
NSpin: Me,
|
|
5605
5578
|
Filter: Ho,
|
|
5606
5579
|
GridDots: es,
|
|
5607
5580
|
Plus: uc,
|
|
5608
|
-
VueDraggable:
|
|
5609
|
-
UzSpin:
|
|
5581
|
+
VueDraggable: tt,
|
|
5582
|
+
UzSpin: Rp,
|
|
5610
5583
|
UzIcon: Iu
|
|
5611
5584
|
},
|
|
5612
5585
|
props: {
|
|
@@ -5735,43 +5708,43 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5735
5708
|
value: () => null,
|
|
5736
5709
|
setValue: () => null
|
|
5737
5710
|
});
|
|
5738
|
-
let a =
|
|
5711
|
+
let a = qe(), { t: o } = Xe(), s = He(), 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({
|
|
5739
5712
|
params: [],
|
|
5740
5713
|
query: {
|
|
5741
5714
|
page: 1,
|
|
5742
5715
|
pageMax: 1,
|
|
5743
5716
|
pageSize: e.pageSize || 30
|
|
5744
5717
|
}
|
|
5745
|
-
}), ee = w([]),
|
|
5718
|
+
}), ee = w([]), O = w(void 0), k = w(void 0), A = w([]), M = w([]), N = w([]), P = w([]), F = w({
|
|
5746
5719
|
fetch: null,
|
|
5747
5720
|
when_drawer_open: "",
|
|
5748
5721
|
when_before_save: ""
|
|
5749
|
-
}),
|
|
5722
|
+
}), I = w(Np()), L = w(""), te = w(!1), ne = w([]), R = w([]), re = p("modules"), ie = (e) => e.id, ae = (e, t) => {
|
|
5750
5723
|
n("update:rowKeys", {
|
|
5751
5724
|
keys: e,
|
|
5752
|
-
rows:
|
|
5725
|
+
rows: H(t)
|
|
5753
5726
|
});
|
|
5754
|
-
},
|
|
5755
|
-
if (
|
|
5756
|
-
let e =
|
|
5757
|
-
|
|
5727
|
+
}, oe = (e, t, r) => {
|
|
5728
|
+
if (ne.value = e, r.action === "check" && R.value.push(r.row), r.action === "uncheck") {
|
|
5729
|
+
let e = R.value.findIndex((e) => e.id === r.row?.id);
|
|
5730
|
+
R.value.splice(e, 1);
|
|
5758
5731
|
}
|
|
5759
5732
|
r.action === "checkAll" && t.forEach((e) => {
|
|
5760
|
-
e &&
|
|
5761
|
-
}), r.action === "uncheckAll" && (
|
|
5762
|
-
keys:
|
|
5763
|
-
rows:
|
|
5733
|
+
e && R.value.push(e);
|
|
5734
|
+
}), r.action === "uncheckAll" && (R.value = [], ne.value = []), n("update:rowKeys", {
|
|
5735
|
+
keys: H(ne.value),
|
|
5736
|
+
rows: H(R.value)
|
|
5764
5737
|
});
|
|
5765
|
-
},
|
|
5766
|
-
let n = e.summary ||
|
|
5738
|
+
}, se = (t) => {
|
|
5739
|
+
let n = e.summary || I.value.summary;
|
|
5767
5740
|
return n && typeof n == "string" ? Function("pageData", "h", n)(t, "h", f) : n && typeof n == "function" ? n(t) : [];
|
|
5768
|
-
},
|
|
5741
|
+
}, z = (t = !1) => {
|
|
5769
5742
|
let r = e.id || a.params.id;
|
|
5770
5743
|
e.enableLoading && (g.value = !0, n("update:loading", !0));
|
|
5771
|
-
let i =
|
|
5772
|
-
if (t && delete i.orderby,
|
|
5744
|
+
let i = H(D.value);
|
|
5745
|
+
if (t && delete i.orderby, F.value.fetch) Od([F.value.fetch], "", i).then((e) => {
|
|
5773
5746
|
let t = od(e);
|
|
5774
|
-
D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1),
|
|
5747
|
+
D.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}`, D.value);
|
|
5775
5748
|
}).catch(() => {
|
|
5776
5749
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
5777
5750
|
});
|
|
@@ -5785,39 +5758,39 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5785
5758
|
tableId: r
|
|
5786
5759
|
}), t.then((e) => {
|
|
5787
5760
|
let t = od(e);
|
|
5788
|
-
D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1),
|
|
5761
|
+
D.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}`, D.value);
|
|
5789
5762
|
}).catch(() => {
|
|
5790
5763
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
5791
5764
|
});
|
|
5792
5765
|
}
|
|
5793
|
-
},
|
|
5794
|
-
D.value.query.page = e, l.value && (l.value.scrollTop = 0), ad(),
|
|
5795
|
-
},
|
|
5766
|
+
}, ce = (e) => {
|
|
5767
|
+
D.value.query.page = e, l.value && (l.value.scrollTop = 0), ad(), z();
|
|
5768
|
+
}, le = () => {
|
|
5796
5769
|
let e = D.value.query.page + 1;
|
|
5797
|
-
e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0),
|
|
5770
|
+
e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
|
|
5771
|
+
}, ue = (e) => {
|
|
5772
|
+
D.value.query.pageSize = e, D.value.query.page = 1, ad(), z();
|
|
5798
5773
|
}, de = (e) => {
|
|
5799
|
-
D.value.
|
|
5800
|
-
}, fe = (
|
|
5801
|
-
e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, R();
|
|
5802
|
-
}, pe = () => {
|
|
5774
|
+
e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, z();
|
|
5775
|
+
}, fe = () => {
|
|
5803
5776
|
if (typeof e.addFetch == "function") return e.addFetch();
|
|
5804
5777
|
d.value?.addAndEdit(e.id || a.params.id, async () => {
|
|
5805
|
-
let { form: e } = await
|
|
5778
|
+
let { form: e } = await _e();
|
|
5806
5779
|
return {
|
|
5807
5780
|
form: e,
|
|
5808
5781
|
data: {}
|
|
5809
5782
|
};
|
|
5810
|
-
},
|
|
5811
|
-
},
|
|
5812
|
-
e.show = !e.show,
|
|
5813
|
-
},
|
|
5783
|
+
}, I.value, F.value, 0, Te);
|
|
5784
|
+
}, pe = (e) => {
|
|
5785
|
+
e.show = !e.show, we();
|
|
5786
|
+
}, me = () => {
|
|
5814
5787
|
let e = [];
|
|
5815
5788
|
C.value.forEach((t) => {
|
|
5816
5789
|
t.show && e.push(t);
|
|
5817
5790
|
}), x.value = e;
|
|
5818
|
-
},
|
|
5819
|
-
D.value.params = e,
|
|
5820
|
-
},
|
|
5791
|
+
}, he = (e) => {
|
|
5792
|
+
D.value.params = e, z();
|
|
5793
|
+
}, ge = () => [{
|
|
5821
5794
|
title: "创建人/时间",
|
|
5822
5795
|
key: "createTime",
|
|
5823
5796
|
resizable: !0,
|
|
@@ -5835,14 +5808,14 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5835
5808
|
ellipsis: !0,
|
|
5836
5809
|
width: 180,
|
|
5837
5810
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => sd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5838
|
-
}],
|
|
5839
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5811
|
+
}], B = (t) => !e.ruleFetch || !A.value || A.value && A.value[0] === "*" ? !1 : !A.value?.includes(t), _e = async (e) => {
|
|
5812
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Pp(M.value, e, () => d.value?.getFormValues());
|
|
5840
5813
|
return b.value = t, {
|
|
5841
5814
|
form: t,
|
|
5842
5815
|
fillingDefaultValue: n,
|
|
5843
5816
|
formDefaultValue: r
|
|
5844
5817
|
};
|
|
5845
|
-
},
|
|
5818
|
+
}, ve = async (t) => new Promise((n, r) => {
|
|
5846
5819
|
let i = e.id || a.params.id, o;
|
|
5847
5820
|
o = e.fetch ? e.fetch({
|
|
5848
5821
|
id: t.id,
|
|
@@ -5855,8 +5828,8 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5855
5828
|
}).catch(() => {
|
|
5856
5829
|
r();
|
|
5857
5830
|
});
|
|
5858
|
-
}),
|
|
5859
|
-
let n = await
|
|
5831
|
+
}), ye = async (e, t) => {
|
|
5832
|
+
let n = await ve(e).catch(() => {}), { form: r, fillingDefaultValue: i } = await _e(n || {}), a = {
|
|
5860
5833
|
...n,
|
|
5861
5834
|
...i
|
|
5862
5835
|
};
|
|
@@ -5865,7 +5838,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5865
5838
|
} catch (e) {
|
|
5866
5839
|
q(e);
|
|
5867
5840
|
}
|
|
5868
|
-
let o =
|
|
5841
|
+
let o = F.value.when_drawer_open;
|
|
5869
5842
|
if (o && typeof o == "string") try {
|
|
5870
5843
|
a = await Function("data", "POST", o)(a, Z).catch((e) => {
|
|
5871
5844
|
q(e);
|
|
@@ -5877,19 +5850,19 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5877
5850
|
form: r,
|
|
5878
5851
|
data: a
|
|
5879
5852
|
};
|
|
5880
|
-
},
|
|
5881
|
-
let i =
|
|
5853
|
+
}, be = (t, r) => {
|
|
5854
|
+
let i = H(t.onClick), c = e.id || a.params.id;
|
|
5882
5855
|
if (t.disabled) {
|
|
5883
5856
|
if (typeof t.disabled == "string") {
|
|
5884
5857
|
let e = Function("rowData", "rowIndex", t.disabled);
|
|
5885
|
-
t.disabled = (n, r) => e(n, r) ||
|
|
5858
|
+
t.disabled = (n, r) => e(n, r) || B(t.key);
|
|
5886
5859
|
} else if (typeof t.disabled == "function") {
|
|
5887
|
-
let e =
|
|
5888
|
-
t.disabled = (n, r) => e.disabled(n, r) ||
|
|
5860
|
+
let e = H(t);
|
|
5861
|
+
t.disabled = (n, r) => e.disabled(n, r) || B(t.key);
|
|
5889
5862
|
}
|
|
5890
|
-
} else t.disabled = () =>
|
|
5863
|
+
} else t.disabled = () => B(t.key);
|
|
5891
5864
|
if (t.loading = g.value, t.type !== "group" && t.optionsType) t.onClick = async (e) => {
|
|
5892
|
-
|
|
5865
|
+
ve(e).then((r) => {
|
|
5893
5866
|
if (t.optionsType === "drawer:insider") {
|
|
5894
5867
|
if (i) try {
|
|
5895
5868
|
Function("rowData", "POST", "fnNotification", i)(r, Z, s).then((e) => {
|
|
@@ -5914,17 +5887,17 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5914
5887
|
}).catch(() => null);
|
|
5915
5888
|
};
|
|
5916
5889
|
else if (t.type !== "group" && t.action === "detailInside") {
|
|
5917
|
-
let n =
|
|
5890
|
+
let n = H(t.onClick);
|
|
5918
5891
|
t.onClick = (t) => {
|
|
5919
|
-
d.value?.addAndEdit(e.id || a.params.id, () =>
|
|
5892
|
+
d.value?.addAndEdit(e.id || a.params.id, () => ye(t, n), I.value, F.value, 2, Te);
|
|
5920
5893
|
};
|
|
5921
5894
|
} else if (t.type !== "group" && t.action === "editInside") {
|
|
5922
|
-
let n =
|
|
5895
|
+
let n = H(t.onClick);
|
|
5923
5896
|
t.onClick = (t) => {
|
|
5924
|
-
d.value?.addAndEdit(e.id || a.params.id, () =>
|
|
5897
|
+
d.value?.addAndEdit(e.id || a.params.id, () => ye(t, n), I.value, F.value, 1, Te);
|
|
5925
5898
|
};
|
|
5926
5899
|
} else if (t.type !== "group" && t.action === "deleteInside") {
|
|
5927
|
-
let n =
|
|
5900
|
+
let n = H(t.onClick);
|
|
5928
5901
|
t.onClick = (t) => {
|
|
5929
5902
|
let i;
|
|
5930
5903
|
i = e.deleteFetch ? e.deleteFetch({
|
|
@@ -5938,12 +5911,12 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5938
5911
|
}), i.then(() => {
|
|
5939
5912
|
if (n) try {
|
|
5940
5913
|
Function("rowData", "fnNotification", "POST", n)(t, s, Z).then(() => {
|
|
5941
|
-
|
|
5914
|
+
z();
|
|
5942
5915
|
}).catch(() => null);
|
|
5943
5916
|
} catch (e) {
|
|
5944
5917
|
q(e);
|
|
5945
5918
|
}
|
|
5946
|
-
else
|
|
5919
|
+
else z();
|
|
5947
5920
|
}).catch((e) => {
|
|
5948
5921
|
q(e);
|
|
5949
5922
|
});
|
|
@@ -5954,7 +5927,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5954
5927
|
...t,
|
|
5955
5928
|
is_disabled: "1"
|
|
5956
5929
|
}).then(() => {
|
|
5957
|
-
|
|
5930
|
+
z();
|
|
5958
5931
|
}).catch(() => null);
|
|
5959
5932
|
};
|
|
5960
5933
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
@@ -5963,11 +5936,11 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5963
5936
|
...t,
|
|
5964
5937
|
is_disabled: "0"
|
|
5965
5938
|
}).then(() => {
|
|
5966
|
-
|
|
5939
|
+
z();
|
|
5967
5940
|
}).catch(() => null);
|
|
5968
5941
|
};
|
|
5969
5942
|
else if (t.type !== "group" && t.action) {
|
|
5970
|
-
let n =
|
|
5943
|
+
let n = H(t.onClick);
|
|
5971
5944
|
t.onClick = (r) => {
|
|
5972
5945
|
let i;
|
|
5973
5946
|
i = e.fetch ? e.fetch({
|
|
@@ -5985,7 +5958,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5985
5958
|
s.success({
|
|
5986
5959
|
content: e,
|
|
5987
5960
|
duration: 3e3
|
|
5988
|
-
}),
|
|
5961
|
+
}), z();
|
|
5989
5962
|
}).catch((e) => {
|
|
5990
5963
|
q(e);
|
|
5991
5964
|
});
|
|
@@ -5999,27 +5972,27 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
5999
5972
|
s.success({
|
|
6000
5973
|
content: () => o("Notice.success"),
|
|
6001
5974
|
duration: 3e3
|
|
6002
|
-
}),
|
|
5975
|
+
}), z();
|
|
6003
5976
|
});
|
|
6004
5977
|
return;
|
|
6005
5978
|
}
|
|
6006
5979
|
s.success({
|
|
6007
5980
|
content: () => o("Notice.success"),
|
|
6008
5981
|
duration: 3e3
|
|
6009
|
-
}),
|
|
5982
|
+
}), z();
|
|
6010
5983
|
}).catch(() => {
|
|
6011
5984
|
s.error({
|
|
6012
5985
|
content: () => o("Notice.failed"),
|
|
6013
5986
|
duration: 3e3
|
|
6014
|
-
}),
|
|
5987
|
+
}), z();
|
|
6015
5988
|
});
|
|
6016
5989
|
}).catch(() => null);
|
|
6017
5990
|
};
|
|
6018
5991
|
}
|
|
6019
|
-
},
|
|
6020
|
-
|
|
6021
|
-
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await
|
|
6022
|
-
!c.value &&
|
|
5992
|
+
}, xe = async () => {
|
|
5993
|
+
te.value = !1, Tp();
|
|
5994
|
+
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await Fp(M.value, e.child, 0, () => ({}), re), s = i;
|
|
5995
|
+
!c.value && I.value.index && (t.unshift({
|
|
6023
5996
|
title: "#",
|
|
6024
5997
|
key: "index",
|
|
6025
5998
|
align: "center",
|
|
@@ -6034,27 +6007,27 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6034
6007
|
return (e - 1) * n + (t + 1);
|
|
6035
6008
|
} });
|
|
6036
6009
|
}
|
|
6037
|
-
}), s += 60), !c.value && (e.selection ||
|
|
6010
|
+
}), s += 60), !c.value && (e.selection || I.value.selection !== 0) && (t.unshift({
|
|
6038
6011
|
type: "selection",
|
|
6039
6012
|
fixed: "left",
|
|
6040
6013
|
width: 60,
|
|
6041
6014
|
hide: !0,
|
|
6042
6015
|
show: !0,
|
|
6043
|
-
multiple: e.selection === 2 ||
|
|
6016
|
+
multiple: e.selection === 2 || I.value.selection === 2,
|
|
6044
6017
|
options: ["all", "none"]
|
|
6045
6018
|
}), s += 60);
|
|
6046
6019
|
let l = e.id || a.params.id;
|
|
6047
|
-
if (!c.value &&
|
|
6048
|
-
let e =
|
|
6020
|
+
if (!c.value && I.value.commonTime && t.push(...ge()), e.enableAction === !0 && N.value && N.value.length > 0) {
|
|
6021
|
+
let e = H(N.value);
|
|
6049
6022
|
for (let t of e) t.type === "group" ? t.children.forEach((e) => {
|
|
6050
|
-
|
|
6051
|
-
}) :
|
|
6023
|
+
be(e, r);
|
|
6024
|
+
}) : be(t, r);
|
|
6052
6025
|
let n = {
|
|
6053
6026
|
title: () => o("Common.action"),
|
|
6054
6027
|
key: "action",
|
|
6055
6028
|
align: "center",
|
|
6056
6029
|
fixed: "right",
|
|
6057
|
-
width:
|
|
6030
|
+
width: I.value.actionWidth,
|
|
6058
6031
|
resizable: !0,
|
|
6059
6032
|
checked: !0,
|
|
6060
6033
|
show: !0,
|
|
@@ -6063,21 +6036,21 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6063
6036
|
return Pd({
|
|
6064
6037
|
buttons: e,
|
|
6065
6038
|
rowData: t,
|
|
6066
|
-
callback:
|
|
6039
|
+
callback: z,
|
|
6067
6040
|
tableId: l
|
|
6068
6041
|
});
|
|
6069
6042
|
}
|
|
6070
6043
|
};
|
|
6071
|
-
s += Number(typeof
|
|
6044
|
+
s += Number(typeof I.value.actionWidth == "string" ? I.value.actionWidth.replace("px", "") : I.value.actionWidth), t.push(n);
|
|
6072
6045
|
}
|
|
6073
6046
|
C.value = t, ee.value = n, E.value = s;
|
|
6074
|
-
},
|
|
6047
|
+
}, Se = (e) => typeof e == "number" ? `${e}px` : e, Ce = () => {
|
|
6075
6048
|
if (e.height) {
|
|
6076
|
-
let t =
|
|
6077
|
-
|
|
6049
|
+
let t = Se(e.height);
|
|
6050
|
+
O.value = t, k.value = t;
|
|
6078
6051
|
return;
|
|
6079
6052
|
}
|
|
6080
|
-
},
|
|
6053
|
+
}, we = () => {
|
|
6081
6054
|
let e = [];
|
|
6082
6055
|
C.value.forEach((t) => {
|
|
6083
6056
|
t.key !== "action" && e.push({
|
|
@@ -6087,7 +6060,7 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6087
6060
|
fixed: t.fixed
|
|
6088
6061
|
});
|
|
6089
6062
|
}), n("on-update:columns", e);
|
|
6090
|
-
},
|
|
6063
|
+
}, Te = (t, n, r) => {
|
|
6091
6064
|
let i, o = e.id || a.params.id;
|
|
6092
6065
|
i = e.formFetch ? e.formFetch({
|
|
6093
6066
|
tableId: o,
|
|
@@ -6096,23 +6069,23 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6096
6069
|
tableId: o,
|
|
6097
6070
|
...t
|
|
6098
6071
|
}), i.then(() => {
|
|
6099
|
-
|
|
6072
|
+
z(), n();
|
|
6100
6073
|
}).catch((e) => {
|
|
6101
6074
|
r(e);
|
|
6102
6075
|
});
|
|
6103
|
-
},
|
|
6104
|
-
v.value = "",
|
|
6076
|
+
}, Ee = () => {
|
|
6077
|
+
v.value = "", M.value = [], N.value = [], P.value = [], F.value = {
|
|
6105
6078
|
fetch: null,
|
|
6106
6079
|
when_drawer_open: "",
|
|
6107
6080
|
when_before_save: ""
|
|
6108
|
-
},
|
|
6109
|
-
},
|
|
6110
|
-
let n =
|
|
6111
|
-
v.value = t.tableTitle,
|
|
6112
|
-
let r =
|
|
6113
|
-
t.tableTitle && r.title && cd(t.tableTitle),
|
|
6114
|
-
},
|
|
6115
|
-
_.value = !1,
|
|
6081
|
+
}, I.value = Np();
|
|
6082
|
+
}, De = (t) => {
|
|
6083
|
+
let n = nt.parse(t.viewJson);
|
|
6084
|
+
v.value = t.tableTitle, M.value = kp(n.table), N.value = Hd(e.actions || n.action), P.value = Hd(n.suffix || []).filter((e) => e.main).map((e) => (ke(e), e)), F.value = jp(n.trigger);
|
|
6085
|
+
let r = Np(e.options ?? n.option);
|
|
6086
|
+
t.tableTitle && r.title && cd(t.tableTitle), I.value = r;
|
|
6087
|
+
}, Oe = async () => {
|
|
6088
|
+
_.value = !1, Ee();
|
|
6116
6089
|
let t = e.id || a.params.id;
|
|
6117
6090
|
if (D.value = {
|
|
6118
6091
|
params: [],
|
|
@@ -6122,19 +6095,19 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6122
6095
|
pageSize: e.pageSize || 30
|
|
6123
6096
|
}
|
|
6124
6097
|
}, T.value = [], e.ruleFetch) try {
|
|
6125
|
-
|
|
6098
|
+
A.value = await e.ruleFetch(t);
|
|
6126
6099
|
} catch {
|
|
6127
|
-
|
|
6100
|
+
L.value = o("Notice.network"), te.value = !0;
|
|
6128
6101
|
return;
|
|
6129
6102
|
}
|
|
6130
|
-
|
|
6131
|
-
|
|
6103
|
+
Ce(), e.columns ? (M.value = e.columns || [], N.value = e.actions || [], P.value = e.suffixes || [], I.value = Np(e.options), await xe()) : await Dp(t).then(async (e) => {
|
|
6104
|
+
De(e), await xe();
|
|
6132
6105
|
}).catch((e) => {
|
|
6133
|
-
|
|
6106
|
+
L.value = e?.message || o("Notice.network"), te.value = !0;
|
|
6134
6107
|
});
|
|
6135
|
-
},
|
|
6108
|
+
}, ke = (e) => {
|
|
6136
6109
|
if (e.type !== "group" && e.optionsType) {
|
|
6137
|
-
let t =
|
|
6110
|
+
let t = H(e.onClick);
|
|
6138
6111
|
e.onClick = () => {
|
|
6139
6112
|
n("update:suffixes", {
|
|
6140
6113
|
title: e.buttonText,
|
|
@@ -6149,12 +6122,12 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6149
6122
|
});
|
|
6150
6123
|
};
|
|
6151
6124
|
} else if (e.type !== "group") {
|
|
6152
|
-
let t =
|
|
6125
|
+
let t = H(e.onClick);
|
|
6153
6126
|
e.onClick = async () => {
|
|
6154
6127
|
if (t && typeof t == "string") {
|
|
6155
6128
|
try {
|
|
6156
6129
|
let e = Function("POST", "fnNotification", t);
|
|
6157
|
-
await e(Z, s, e),
|
|
6130
|
+
await e(Z, s, e), z();
|
|
6158
6131
|
} catch (e) {
|
|
6159
6132
|
q(e);
|
|
6160
6133
|
}
|
|
@@ -6164,31 +6137,31 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6164
6137
|
}
|
|
6165
6138
|
};
|
|
6166
6139
|
return r({
|
|
6167
|
-
rebuild:
|
|
6168
|
-
init:
|
|
6169
|
-
nextPage:
|
|
6140
|
+
rebuild: Oe,
|
|
6141
|
+
init: z,
|
|
6142
|
+
nextPage: le
|
|
6170
6143
|
}), y(async () => {
|
|
6171
|
-
await
|
|
6144
|
+
await Oe(), h(() => {
|
|
6172
6145
|
u.value?.scrollTo({
|
|
6173
6146
|
left: 0,
|
|
6174
6147
|
right: 0
|
|
6175
6148
|
});
|
|
6176
6149
|
});
|
|
6177
|
-
}),
|
|
6178
|
-
|
|
6179
|
-
}, { deep: !0 }),
|
|
6180
|
-
|
|
6181
|
-
}),
|
|
6182
|
-
ad(), await
|
|
6183
|
-
}),
|
|
6184
|
-
let t = e || [], n =
|
|
6185
|
-
|
|
6150
|
+
}), j(() => C.value, () => {
|
|
6151
|
+
me();
|
|
6152
|
+
}, { deep: !0 }), j(() => e.height, () => {
|
|
6153
|
+
Ce();
|
|
6154
|
+
}), j([() => a.params.id, () => e.id], async () => {
|
|
6155
|
+
ad(), await Oe();
|
|
6156
|
+
}), j(() => e.defaultCheckedRowKeys, (e) => {
|
|
6157
|
+
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6158
|
+
ne.value = t, R.value = n;
|
|
6186
6159
|
}, { deep: !0 }), {
|
|
6187
6160
|
loading: g,
|
|
6188
|
-
minH:
|
|
6189
|
-
maxH:
|
|
6161
|
+
minH: O,
|
|
6162
|
+
maxH: k,
|
|
6190
6163
|
drawerRef: d,
|
|
6191
|
-
tableOption:
|
|
6164
|
+
tableOption: I,
|
|
6192
6165
|
tableColumns: x,
|
|
6193
6166
|
tableData: T,
|
|
6194
6167
|
tableQueries: D,
|
|
@@ -6197,47 +6170,47 @@ var Np = /*#__PURE__*/ U(jp, [["render", Mp]]), Pp = d({
|
|
|
6197
6170
|
isSlotHeader: m,
|
|
6198
6171
|
title: v,
|
|
6199
6172
|
dynamicLoading: _,
|
|
6200
|
-
spinMsg:
|
|
6173
|
+
spinMsg: L,
|
|
6201
6174
|
tableScrollX: E,
|
|
6202
|
-
suffixes:
|
|
6203
|
-
spinError:
|
|
6175
|
+
suffixes: P,
|
|
6176
|
+
spinError: te,
|
|
6204
6177
|
isMobile: c,
|
|
6205
6178
|
mRef: l,
|
|
6206
|
-
checkRowKeys:
|
|
6179
|
+
checkRowKeys: ne,
|
|
6207
6180
|
route: a,
|
|
6208
|
-
rowKey:
|
|
6209
|
-
pageChange:
|
|
6210
|
-
pageSizeChange:
|
|
6211
|
-
pageSorter:
|
|
6212
|
-
showChange:
|
|
6213
|
-
submit:
|
|
6214
|
-
handleAdd:
|
|
6215
|
-
handleColumnChange:
|
|
6216
|
-
handleCheckRowKeys:
|
|
6217
|
-
checkRole:
|
|
6218
|
-
rebuild:
|
|
6219
|
-
summaryFn:
|
|
6220
|
-
handleMobileCheckRowKeys:
|
|
6221
|
-
isTypeofNumber:
|
|
6181
|
+
rowKey: ie,
|
|
6182
|
+
pageChange: ce,
|
|
6183
|
+
pageSizeChange: ue,
|
|
6184
|
+
pageSorter: de,
|
|
6185
|
+
showChange: pe,
|
|
6186
|
+
submit: he,
|
|
6187
|
+
handleAdd: fe,
|
|
6188
|
+
handleColumnChange: we,
|
|
6189
|
+
handleCheckRowKeys: oe,
|
|
6190
|
+
checkRole: B,
|
|
6191
|
+
rebuild: Oe,
|
|
6192
|
+
summaryFn: se,
|
|
6193
|
+
handleMobileCheckRowKeys: ae,
|
|
6194
|
+
isTypeofNumber: Se
|
|
6222
6195
|
};
|
|
6223
6196
|
}
|
|
6224
|
-
}),
|
|
6197
|
+
}), Bp = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Vp = { class: "uz-flex uz-justify-between" }, Hp = { class: "uz-flex uz-gap-1" }, Up = { class: "uz-com-title" }, Wp = {
|
|
6225
6198
|
ref: "mRef",
|
|
6226
6199
|
class: "uz-table-m-content"
|
|
6227
|
-
},
|
|
6200
|
+
}, Gp = {
|
|
6228
6201
|
key: 1,
|
|
6229
6202
|
class: "uz-transform-fade-in"
|
|
6230
|
-
},
|
|
6231
|
-
function
|
|
6232
|
-
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), ee = D("NCheckbox"),
|
|
6203
|
+
}, Kp = { class: "uz-com-title" };
|
|
6204
|
+
function qp(t, s, u, d, f, p) {
|
|
6205
|
+
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), ee = D("NCheckbox"), O = D("GridDots"), j = D("VueDraggable"), M = D("NPopover"), F = D("UzSearchBar"), I = D("NDataTable"), L = D("NSpin"), te = D("UzTableDrawer");
|
|
6233
6206
|
return x(), i("div", {
|
|
6234
6207
|
class: "uz-table",
|
|
6235
6208
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
6236
6209
|
}, [
|
|
6237
|
-
|
|
6210
|
+
P(a("div", Bp, [a("div", Vp, [l(m, {
|
|
6238
6211
|
width: 120,
|
|
6239
6212
|
size: "medium"
|
|
6240
|
-
}), a("div",
|
|
6213
|
+
}), a("div", Hp, [
|
|
6241
6214
|
l(m, {
|
|
6242
6215
|
width: 180,
|
|
6243
6216
|
size: "medium"
|
|
@@ -6266,24 +6239,24 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6266
6239
|
class: "uz-flex-1",
|
|
6267
6240
|
width: "100%",
|
|
6268
6241
|
size: "medium"
|
|
6269
|
-
})], 512), [[
|
|
6270
|
-
|
|
6242
|
+
})], 512), [[A, !t.dynamicLoading]]),
|
|
6243
|
+
P(l(L, {
|
|
6271
6244
|
show: t.spinError,
|
|
6272
6245
|
class: "uz-table-n-spin"
|
|
6273
6246
|
}, {
|
|
6274
|
-
description:
|
|
6275
|
-
a("div", null,
|
|
6247
|
+
description: N(() => [
|
|
6248
|
+
a("div", null, k(t.spinMsg), 1),
|
|
6276
6249
|
s[2] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6277
6250
|
l(h, {
|
|
6278
6251
|
type: "primary",
|
|
6279
6252
|
onClick: t.rebuild,
|
|
6280
6253
|
block: ""
|
|
6281
6254
|
}, {
|
|
6282
|
-
default:
|
|
6255
|
+
default: N(() => [...s[1] ||= [c("重试", -1)]]),
|
|
6283
6256
|
_: 1
|
|
6284
6257
|
}, 8, ["onClick"])
|
|
6285
6258
|
]),
|
|
6286
|
-
default:
|
|
6259
|
+
default: N(() => [t.isMobile ? (x(), i("div", {
|
|
6287
6260
|
key: 0,
|
|
6288
6261
|
class: g([t.enableTransform ? "uz-transform-fade-in" : "", "uz-table-m-main"])
|
|
6289
6262
|
}, [l(S, {
|
|
@@ -6293,18 +6266,18 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6293
6266
|
loading: t.loading,
|
|
6294
6267
|
"onOnUpdate:value": t.submit
|
|
6295
6268
|
}, o({
|
|
6296
|
-
action:
|
|
6269
|
+
action: N(() => [
|
|
6297
6270
|
t.addFetch && t.tableOption.addButton ? (x(), n(h, {
|
|
6298
6271
|
key: 0,
|
|
6299
6272
|
secondary: "",
|
|
6300
6273
|
disabled: t.checkRole("add"),
|
|
6301
6274
|
onClick: t.handleAdd
|
|
6302
6275
|
}, {
|
|
6303
|
-
icon:
|
|
6304
|
-
default:
|
|
6276
|
+
icon: N(() => [l(y, null, {
|
|
6277
|
+
default: N(() => [l(v)]),
|
|
6305
6278
|
_: 1
|
|
6306
6279
|
})]),
|
|
6307
|
-
default:
|
|
6280
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6308
6281
|
_: 1
|
|
6309
6282
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6310
6283
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6321,11 +6294,11 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6321
6294
|
_: 2
|
|
6322
6295
|
}, [t.isSlotHeader ? {
|
|
6323
6296
|
name: "header",
|
|
6324
|
-
fn:
|
|
6297
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
6325
6298
|
key: "0"
|
|
6326
6299
|
} : {
|
|
6327
6300
|
name: "header",
|
|
6328
|
-
fn:
|
|
6301
|
+
fn: N(() => [a("div", Up, k(t.title), 1)]),
|
|
6329
6302
|
key: "1"
|
|
6330
6303
|
}]), 1032, [
|
|
6331
6304
|
"data",
|
|
@@ -6333,7 +6306,7 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6333
6306
|
"cache",
|
|
6334
6307
|
"loading",
|
|
6335
6308
|
"onOnUpdate:value"
|
|
6336
|
-
]), a("div",
|
|
6309
|
+
]), a("div", Wp, [l(C, {
|
|
6337
6310
|
tableColumns: t.tableColumns,
|
|
6338
6311
|
tableData: t.tableData,
|
|
6339
6312
|
tableQueries: t.tableQueries,
|
|
@@ -6351,7 +6324,7 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6351
6324
|
"minH",
|
|
6352
6325
|
"maxH",
|
|
6353
6326
|
"onUpdate:rowKeys"
|
|
6354
|
-
])], 512)], 2)) : (x(), i("div",
|
|
6327
|
+
])], 512)], 2)) : (x(), i("div", Gp, [l(F, {
|
|
6355
6328
|
data: t.searchData,
|
|
6356
6329
|
id: t.id || t.route.params.id,
|
|
6357
6330
|
cache: t.tableOption.cache,
|
|
@@ -6360,22 +6333,22 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6360
6333
|
enableHeader: t.enableHeader,
|
|
6361
6334
|
"onOnUpdate:value": t.submit
|
|
6362
6335
|
}, o({
|
|
6363
|
-
action:
|
|
6364
|
-
t.tableOption.filterButton && t.baseColumns.length > 0 ? (x(), n(
|
|
6336
|
+
action: N(() => [
|
|
6337
|
+
t.tableOption.filterButton && t.baseColumns.length > 0 ? (x(), n(M, {
|
|
6365
6338
|
key: 0,
|
|
6366
6339
|
placement: "bottom-end",
|
|
6367
6340
|
trigger: "click",
|
|
6368
6341
|
"show-arrow": !1
|
|
6369
6342
|
}, {
|
|
6370
|
-
trigger:
|
|
6371
|
-
icon:
|
|
6372
|
-
default:
|
|
6343
|
+
trigger: N(() => [l(h, { secondary: "" }, {
|
|
6344
|
+
icon: N(() => [l(y, null, {
|
|
6345
|
+
default: N(() => [l(w)]),
|
|
6373
6346
|
_: 1
|
|
6374
6347
|
})]),
|
|
6375
|
-
default:
|
|
6348
|
+
default: N(() => [c(" " + k(t.$t("Common.columns")), 1)]),
|
|
6376
6349
|
_: 1
|
|
6377
6350
|
})]),
|
|
6378
|
-
default:
|
|
6351
|
+
default: N(() => [l(j, {
|
|
6379
6352
|
modelValue: t.baseColumns,
|
|
6380
6353
|
"onUpdate:modelValue": s[0] ||= (e) => t.baseColumns = e,
|
|
6381
6354
|
animation: 200,
|
|
@@ -6386,7 +6359,7 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6386
6359
|
handle: ".uz-drag-handle",
|
|
6387
6360
|
onEnd: t.handleColumnChange
|
|
6388
6361
|
}, {
|
|
6389
|
-
default:
|
|
6362
|
+
default: N(() => [(x(!0), i(e, null, T(t.baseColumns, (n) => (x(), i(e, null, [n.hide ? r("", !0) : (x(), i("div", {
|
|
6390
6363
|
key: n.key,
|
|
6391
6364
|
class: "uz-table-sort"
|
|
6392
6365
|
}, [l(ee, {
|
|
@@ -6394,14 +6367,14 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6394
6367
|
"on-update:checked": () => t.showChange(n),
|
|
6395
6368
|
size: "large"
|
|
6396
6369
|
}, {
|
|
6397
|
-
default:
|
|
6370
|
+
default: N(() => [c(k(typeof n.title == "string" ? n.title : n.title && n.title()), 1)]),
|
|
6398
6371
|
_: 2
|
|
6399
6372
|
}, 1032, ["checked", "on-update:checked"]), l(h, {
|
|
6400
6373
|
quaternary: "",
|
|
6401
6374
|
class: "uz-drag-handle"
|
|
6402
6375
|
}, {
|
|
6403
|
-
icon:
|
|
6404
|
-
default:
|
|
6376
|
+
icon: N(() => [l(y, { size: "18" }, {
|
|
6377
|
+
default: N(() => [l(O)]),
|
|
6405
6378
|
_: 1
|
|
6406
6379
|
})]),
|
|
6407
6380
|
_: 1
|
|
@@ -6416,11 +6389,11 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6416
6389
|
disabled: t.checkRole("add"),
|
|
6417
6390
|
onClick: t.handleAdd
|
|
6418
6391
|
}, {
|
|
6419
|
-
icon:
|
|
6420
|
-
default:
|
|
6392
|
+
icon: N(() => [l(y, null, {
|
|
6393
|
+
default: N(() => [l(v)]),
|
|
6421
6394
|
_: 1
|
|
6422
6395
|
})]),
|
|
6423
|
-
default:
|
|
6396
|
+
default: N(() => [c(" " + k(t.$t("Common.add")), 1)]),
|
|
6424
6397
|
_: 1
|
|
6425
6398
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
6426
6399
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
@@ -6437,11 +6410,11 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6437
6410
|
_: 2
|
|
6438
6411
|
}, [t.isSlotHeader ? {
|
|
6439
6412
|
name: "header",
|
|
6440
|
-
fn:
|
|
6413
|
+
fn: N(() => [E(t.$slots, "header")]),
|
|
6441
6414
|
key: "0"
|
|
6442
6415
|
} : {
|
|
6443
6416
|
name: "header",
|
|
6444
|
-
fn:
|
|
6417
|
+
fn: N(() => [a("div", Kp, k(t.title), 1)]),
|
|
6445
6418
|
key: "1"
|
|
6446
6419
|
}]), 1032, [
|
|
6447
6420
|
"data",
|
|
@@ -6451,7 +6424,7 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6451
6424
|
"cols",
|
|
6452
6425
|
"enableHeader",
|
|
6453
6426
|
"onOnUpdate:value"
|
|
6454
|
-
]), l(
|
|
6427
|
+
]), l(I, {
|
|
6455
6428
|
ref: "tableRef",
|
|
6456
6429
|
columns: t.tableColumns,
|
|
6457
6430
|
data: t.tableData,
|
|
@@ -6494,19 +6467,19 @@ function Hp(t, s, u, d, f, p) {
|
|
|
6494
6467
|
"onUpdate:checkedRowKeys"
|
|
6495
6468
|
])]))]),
|
|
6496
6469
|
_: 3
|
|
6497
|
-
}, 8, ["show"]), [[
|
|
6498
|
-
l(
|
|
6470
|
+
}, 8, ["show"]), [[A, t.dynamicLoading]]),
|
|
6471
|
+
l(te, { ref: "drawerRef" }, null, 512)
|
|
6499
6472
|
], 4);
|
|
6500
6473
|
}
|
|
6501
|
-
var
|
|
6474
|
+
var Jp = /*#__PURE__*/ U(zp, [["render", qp]]), Yp = d({
|
|
6502
6475
|
name: "UzTableChild",
|
|
6503
6476
|
components: {
|
|
6504
|
-
NSpin:
|
|
6505
|
-
NButton:
|
|
6506
|
-
NIcon:
|
|
6507
|
-
NDataTable:
|
|
6508
|
-
NForm:
|
|
6509
|
-
NDivider:
|
|
6477
|
+
NSpin: Me,
|
|
6478
|
+
NButton: L,
|
|
6479
|
+
NIcon: B,
|
|
6480
|
+
NDataTable: oe,
|
|
6481
|
+
NForm: pe,
|
|
6482
|
+
NDivider: z,
|
|
6510
6483
|
Plus: uc,
|
|
6511
6484
|
GridDots: es
|
|
6512
6485
|
},
|
|
@@ -6527,13 +6500,13 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6527
6500
|
},
|
|
6528
6501
|
emits: ["update:value"],
|
|
6529
6502
|
setup(e, { emit: n, expose: r }) {
|
|
6530
|
-
let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } =
|
|
6531
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
6503
|
+
let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } = Xe(), 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) => {
|
|
6504
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Pp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6532
6505
|
return C.value = r, i;
|
|
6533
6506
|
}, ee = async (t) => {
|
|
6534
6507
|
if (_.value) return;
|
|
6535
6508
|
_.value = !0;
|
|
6536
|
-
let n = await D(t), r =
|
|
6509
|
+
let n = await D(t), r = H(t).map((e, t) => ({
|
|
6537
6510
|
...e,
|
|
6538
6511
|
...n[t]
|
|
6539
6512
|
}));
|
|
@@ -6552,14 +6525,14 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6552
6525
|
q(e);
|
|
6553
6526
|
}
|
|
6554
6527
|
x.value.child = r, _.value = !1, h(() => {
|
|
6555
|
-
|
|
6528
|
+
I();
|
|
6556
6529
|
});
|
|
6557
6530
|
} else h(() => {
|
|
6558
|
-
|
|
6531
|
+
I();
|
|
6559
6532
|
});
|
|
6560
|
-
},
|
|
6533
|
+
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6561
6534
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6562
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
6535
|
+
let { tableColumns: r, tableWidth: i } = await Fp(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6563
6536
|
r.unshift({
|
|
6564
6537
|
title: " ",
|
|
6565
6538
|
key: "index",
|
|
@@ -6578,7 +6551,7 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6578
6551
|
hide: !0,
|
|
6579
6552
|
show: !0,
|
|
6580
6553
|
render() {
|
|
6581
|
-
return f("div", { class: "flex justify-center" }, f(
|
|
6554
|
+
return f("div", { class: "flex justify-center" }, f(B, {}, { default: () => f(es) }));
|
|
6582
6555
|
}
|
|
6583
6556
|
}), s += 40), e.status !== 2 && e.item.params.showActions && r.push({
|
|
6584
6557
|
title: () => l("Common.action"),
|
|
@@ -6614,7 +6587,7 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6614
6587
|
r.forEach((e) => {
|
|
6615
6588
|
e.show && c.push(e);
|
|
6616
6589
|
}), b.value = c, s += 180, E.value = s, g.value = !1;
|
|
6617
|
-
},
|
|
6590
|
+
}, A = (t) => {
|
|
6618
6591
|
if (e.item.params.summary) {
|
|
6619
6592
|
if (typeof e.item.params.summary == "function") return e.item.params.summary(t);
|
|
6620
6593
|
try {
|
|
@@ -6625,11 +6598,11 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6625
6598
|
}
|
|
6626
6599
|
}
|
|
6627
6600
|
return [];
|
|
6628
|
-
}, j = async () => {
|
|
6629
|
-
S.value = "", x.value.child.push(V(C.value)), h(() => {
|
|
6630
|
-
F();
|
|
6631
|
-
});
|
|
6632
6601
|
}, M = async () => {
|
|
6602
|
+
S.value = "", x.value.child.push(H(C.value)), h(() => {
|
|
6603
|
+
I();
|
|
6604
|
+
});
|
|
6605
|
+
}, N = async () => {
|
|
6633
6606
|
S.value = "";
|
|
6634
6607
|
try {
|
|
6635
6608
|
let t = e.item.params.options;
|
|
@@ -6642,7 +6615,7 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6642
6615
|
callback: async (e) => {
|
|
6643
6616
|
let t = await n(e, o, Z);
|
|
6644
6617
|
x.value.child = [...x.value.child, ...t], h(() => {
|
|
6645
|
-
|
|
6618
|
+
I();
|
|
6646
6619
|
});
|
|
6647
6620
|
}
|
|
6648
6621
|
});
|
|
@@ -6652,16 +6625,16 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6652
6625
|
children: () => x.value.child,
|
|
6653
6626
|
callback: async (e) => {
|
|
6654
6627
|
x.value.child = [...x.value.child, ...e], h(() => {
|
|
6655
|
-
|
|
6628
|
+
I();
|
|
6656
6629
|
});
|
|
6657
6630
|
}
|
|
6658
6631
|
});
|
|
6659
6632
|
} catch (e) {
|
|
6660
6633
|
q(e);
|
|
6661
6634
|
}
|
|
6662
|
-
},
|
|
6635
|
+
}, P = () => {
|
|
6663
6636
|
m.value?.restoreValidation();
|
|
6664
|
-
},
|
|
6637
|
+
}, F = () => (S.value = "", new Promise((t, n) => {
|
|
6665
6638
|
let r = x.value.child.filter((e) => !e.delete).length;
|
|
6666
6639
|
if (e.item.form.rule.required && r === 0) {
|
|
6667
6640
|
S.value = e.item.form.rule.message, n();
|
|
@@ -6670,20 +6643,20 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6670
6643
|
m.value?.validate((r) => {
|
|
6671
6644
|
r ? (S.value = e.item.form.rule.message, n()) : t();
|
|
6672
6645
|
});
|
|
6673
|
-
})),
|
|
6646
|
+
})), I = () => {
|
|
6674
6647
|
if (e.item.params.draggable && e.status !== 2 && u.value && !d.value) {
|
|
6675
6648
|
let e = u.value.$el.querySelector(".n-data-table-tbody");
|
|
6676
6649
|
e && (d.value = it.create(e, {
|
|
6677
6650
|
handle: ".uz-drag-handle",
|
|
6678
6651
|
onEnd: ({ oldIndex: e, newIndex: t }) => {
|
|
6679
6652
|
d.value?.destroy(), d.value = null, y.value = !1;
|
|
6680
|
-
let n =
|
|
6653
|
+
let n = H(x.value.child), r = n.splice(e, 1)[0];
|
|
6681
6654
|
n.splice(t, 0, r), n = n.map((e, t) => ({
|
|
6682
6655
|
...e,
|
|
6683
6656
|
sort_index: t
|
|
6684
6657
|
})), x.value.child = n, h(() => {
|
|
6685
6658
|
y.value = !0, setTimeout(() => {
|
|
6686
|
-
|
|
6659
|
+
I();
|
|
6687
6660
|
}, 0);
|
|
6688
6661
|
});
|
|
6689
6662
|
}
|
|
@@ -6693,22 +6666,22 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6693
6666
|
return v(() => {
|
|
6694
6667
|
d.value?.destroy(), d.value = null;
|
|
6695
6668
|
}), r({
|
|
6696
|
-
validate:
|
|
6697
|
-
restoreValidation:
|
|
6698
|
-
}),
|
|
6699
|
-
JSON.stringify(e) !== JSON.stringify(t) &&
|
|
6669
|
+
validate: F,
|
|
6670
|
+
restoreValidation: P
|
|
6671
|
+
}), j(() => e.item.params.columns, (e, t) => {
|
|
6672
|
+
JSON.stringify(e) !== JSON.stringify(t) && k(e);
|
|
6700
6673
|
}, {
|
|
6701
6674
|
deep: !0,
|
|
6702
6675
|
immediate: !0
|
|
6703
|
-
}),
|
|
6676
|
+
}), j(() => e.value, (e) => {
|
|
6704
6677
|
JSON.stringify(e) !== JSON.stringify(x.value.child) && ee(e);
|
|
6705
6678
|
}, {
|
|
6706
6679
|
deep: !0,
|
|
6707
6680
|
immediate: !0
|
|
6708
|
-
}),
|
|
6681
|
+
}), j(() => x.value.child, (t) => {
|
|
6709
6682
|
e.status !== 2 && n("update:value", t);
|
|
6710
|
-
}, { deep: !0 }),
|
|
6711
|
-
await
|
|
6683
|
+
}, { deep: !0 }), j(() => c.value, async () => {
|
|
6684
|
+
await k(void 0, !0);
|
|
6712
6685
|
}), {
|
|
6713
6686
|
spin: g,
|
|
6714
6687
|
loading: _,
|
|
@@ -6716,14 +6689,14 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6716
6689
|
tableRef: u,
|
|
6717
6690
|
columns: b,
|
|
6718
6691
|
tableData: x,
|
|
6719
|
-
summaryData:
|
|
6692
|
+
summaryData: A,
|
|
6720
6693
|
message: S,
|
|
6721
6694
|
tableScrollX: E,
|
|
6722
6695
|
tableShow: y,
|
|
6723
6696
|
suffixes: T,
|
|
6724
|
-
onAdd:
|
|
6725
|
-
onAddFormData:
|
|
6726
|
-
rowClassName:
|
|
6697
|
+
onAdd: M,
|
|
6698
|
+
onAddFormData: N,
|
|
6699
|
+
rowClassName: O,
|
|
6727
6700
|
doSuffixClick: (e) => {
|
|
6728
6701
|
i({
|
|
6729
6702
|
open: e.optionsType,
|
|
@@ -6736,30 +6709,30 @@ var Up = /*#__PURE__*/ U(Pp, [["render", Hp]]), Wp = d({
|
|
|
6736
6709
|
}
|
|
6737
6710
|
};
|
|
6738
6711
|
}
|
|
6739
|
-
}),
|
|
6712
|
+
}), Xp = { class: "uz-flex uz-justify-between" }, Zp = { class: "uz-com-title" }, Qp = {
|
|
6740
6713
|
key: 0,
|
|
6741
6714
|
class: "uz-table-asterisk"
|
|
6742
|
-
},
|
|
6743
|
-
function
|
|
6715
|
+
}, $p = { class: "uz-flex uz-gap-2" }, em = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6716
|
+
function tm(t, s, u, d, f, p) {
|
|
6744
6717
|
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
|
|
6745
6718
|
return x(), n(S, {
|
|
6746
6719
|
show: t.spin,
|
|
6747
6720
|
class: "uz-flex-1 uz-w-full"
|
|
6748
6721
|
}, {
|
|
6749
|
-
default:
|
|
6750
|
-
a("div",
|
|
6722
|
+
default: N(() => [
|
|
6723
|
+
a("div", Xp, [a("div", Zp, [c(k(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", Qp, " \xA0* ")) : r("", !0)]), a("div", $p, [
|
|
6751
6724
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6752
6725
|
key: e.key,
|
|
6753
6726
|
type: e.color,
|
|
6754
6727
|
secondary: "",
|
|
6755
6728
|
onClick: (n) => t.doSuffixClick(e)
|
|
6756
6729
|
}, o({
|
|
6757
|
-
default:
|
|
6730
|
+
default: N(() => [c(" " + k(e.buttonText), 1)]),
|
|
6758
6731
|
_: 2
|
|
6759
6732
|
}, [e.icon ? {
|
|
6760
6733
|
name: "icon",
|
|
6761
|
-
fn:
|
|
6762
|
-
default:
|
|
6734
|
+
fn: N(() => [l(h, null, {
|
|
6735
|
+
default: N(() => [l(m, { icon: e.icon }, null, 8, ["icon"])]),
|
|
6763
6736
|
_: 2
|
|
6764
6737
|
}, 1024)]),
|
|
6765
6738
|
key: "0"
|
|
@@ -6770,11 +6743,11 @@ function Xp(t, s, u, d, f, p) {
|
|
|
6770
6743
|
secondary: "",
|
|
6771
6744
|
onClick: t.onAddFormData
|
|
6772
6745
|
}, {
|
|
6773
|
-
icon:
|
|
6774
|
-
default:
|
|
6746
|
+
icon: N(() => [l(h, null, {
|
|
6747
|
+
default: N(() => [l(v)]),
|
|
6775
6748
|
_: 1
|
|
6776
6749
|
})]),
|
|
6777
|
-
default:
|
|
6750
|
+
default: N(() => [s[0] ||= c(" 从数据新增 ", -1)]),
|
|
6778
6751
|
_: 1
|
|
6779
6752
|
}, 8, ["onClick"])) : r("", !0),
|
|
6780
6753
|
t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
@@ -6783,11 +6756,11 @@ function Xp(t, s, u, d, f, p) {
|
|
|
6783
6756
|
secondary: "",
|
|
6784
6757
|
onClick: t.onAdd
|
|
6785
6758
|
}, {
|
|
6786
|
-
icon:
|
|
6787
|
-
default:
|
|
6759
|
+
icon: N(() => [l(h, null, {
|
|
6760
|
+
default: N(() => [l(v)]),
|
|
6788
6761
|
_: 1
|
|
6789
6762
|
})]),
|
|
6790
|
-
default:
|
|
6763
|
+
default: N(() => [s[1] ||= c(" 新增 ", -1)]),
|
|
6791
6764
|
_: 1
|
|
6792
6765
|
}, 8, ["onClick"])) : r("", !0)
|
|
6793
6766
|
])]),
|
|
@@ -6798,7 +6771,7 @@ function Xp(t, s, u, d, f, p) {
|
|
|
6798
6771
|
model: t.tableData,
|
|
6799
6772
|
class: "uz-flex uz-flex-col uz-gap-2"
|
|
6800
6773
|
}, {
|
|
6801
|
-
default:
|
|
6774
|
+
default: N(() => [t.tableShow ? (x(), n(y, {
|
|
6802
6775
|
key: 0,
|
|
6803
6776
|
ref: "tableRef",
|
|
6804
6777
|
columns: t.columns,
|
|
@@ -6823,17 +6796,17 @@ function Xp(t, s, u, d, f, p) {
|
|
|
6823
6796
|
"scroll-x",
|
|
6824
6797
|
"class",
|
|
6825
6798
|
"row-class-name"
|
|
6826
|
-
])) : r("", !0), a("div",
|
|
6799
|
+
])) : r("", !0), a("div", em, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6827
6800
|
key: 0,
|
|
6828
6801
|
type: "success",
|
|
6829
6802
|
secondary: "",
|
|
6830
6803
|
onClick: t.onAddFormData
|
|
6831
6804
|
}, {
|
|
6832
|
-
icon:
|
|
6833
|
-
default:
|
|
6805
|
+
icon: N(() => [l(h, null, {
|
|
6806
|
+
default: N(() => [l(v)]),
|
|
6834
6807
|
_: 1
|
|
6835
6808
|
})]),
|
|
6836
|
-
default:
|
|
6809
|
+
default: N(() => [s[2] ||= c(" 从数据新增 ", -1)]),
|
|
6837
6810
|
_: 1
|
|
6838
6811
|
}, 8, ["onClick"])) : r("", !0), t.item.params.addButton && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6839
6812
|
key: 1,
|
|
@@ -6841,11 +6814,11 @@ function Xp(t, s, u, d, f, p) {
|
|
|
6841
6814
|
secondary: "",
|
|
6842
6815
|
onClick: t.onAdd
|
|
6843
6816
|
}, {
|
|
6844
|
-
icon:
|
|
6845
|
-
default:
|
|
6817
|
+
icon: N(() => [l(h, null, {
|
|
6818
|
+
default: N(() => [l(v)]),
|
|
6846
6819
|
_: 1
|
|
6847
6820
|
})]),
|
|
6848
|
-
default:
|
|
6821
|
+
default: N(() => [s[3] ||= c(" 新增 ", -1)]),
|
|
6849
6822
|
_: 1
|
|
6850
6823
|
}, 8, ["onClick"])) : r("", !0)])]),
|
|
6851
6824
|
_: 1
|
|
@@ -6854,9 +6827,9 @@ function Xp(t, s, u, d, f, p) {
|
|
|
6854
6827
|
_: 1
|
|
6855
6828
|
}, 8, ["show"]);
|
|
6856
6829
|
}
|
|
6857
|
-
var
|
|
6830
|
+
var nm = /*#__PURE__*/ U(Yp, [["render", tm]]), rm = d({
|
|
6858
6831
|
name: "UzTableQuestChild",
|
|
6859
|
-
components: { NDataTable:
|
|
6832
|
+
components: { NDataTable: oe },
|
|
6860
6833
|
props: {
|
|
6861
6834
|
formValue: {
|
|
6862
6835
|
type: Object,
|
|
@@ -6870,7 +6843,7 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
|
|
|
6870
6843
|
},
|
|
6871
6844
|
emits: ["update:value"],
|
|
6872
6845
|
setup(e) {
|
|
6873
|
-
let t = p("modules"), { t: n } =
|
|
6846
|
+
let t = p("modules"), { t: n } = Xe(), r = w(), i = w(!1), a = w([]), o = w([]), s = w(void 0), c = (t) => {
|
|
6874
6847
|
if (i.value = !0, e.item.params.link) {
|
|
6875
6848
|
let n = [];
|
|
6876
6849
|
e.item.params.columns.forEach((e) => {
|
|
@@ -6882,7 +6855,7 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
|
|
|
6882
6855
|
}), o.value = t, i.value = !1;
|
|
6883
6856
|
}
|
|
6884
6857
|
}, l = async (i) => {
|
|
6885
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6858
|
+
let { tableColumns: c, tableWidth: l } = await Fp(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6886
6859
|
c.unshift({
|
|
6887
6860
|
title: " ",
|
|
6888
6861
|
key: "index",
|
|
@@ -6919,7 +6892,7 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
|
|
|
6919
6892
|
};
|
|
6920
6893
|
return y(() => {
|
|
6921
6894
|
l();
|
|
6922
|
-
}),
|
|
6895
|
+
}), M(async () => {
|
|
6923
6896
|
try {
|
|
6924
6897
|
e.formValue && e.formValue.id && e.item.params.searchKey && c(await Td({
|
|
6925
6898
|
tableId: e.item.params.link,
|
|
@@ -6953,11 +6926,11 @@ var Zp = /*#__PURE__*/ U(Wp, [["render", Xp]]), Qp = d({
|
|
|
6953
6926
|
tableScrollX: s
|
|
6954
6927
|
};
|
|
6955
6928
|
}
|
|
6956
|
-
}),
|
|
6957
|
-
function
|
|
6929
|
+
}), im = { class: "uz-flex-1 uz-w-full" }, am = { class: "uz-flex uz-justify-between" }, om = { class: "uz-com-title" };
|
|
6930
|
+
function sm(e, t, n, r, o, s) {
|
|
6958
6931
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
6959
|
-
return x(), i("div",
|
|
6960
|
-
a("div",
|
|
6932
|
+
return x(), i("div", im, [
|
|
6933
|
+
a("div", am, [a("div", om, k(e.item.label), 1)]),
|
|
6961
6934
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6962
6935
|
l(c, {
|
|
6963
6936
|
columns: e.columns,
|
|
@@ -6982,16 +6955,16 @@ function nm(e, t, n, r, o, s) {
|
|
|
6982
6955
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
6983
6956
|
]);
|
|
6984
6957
|
}
|
|
6985
|
-
var
|
|
6958
|
+
var cm = /*#__PURE__*/ U(rm, [["render", sm]]), lm = d({
|
|
6986
6959
|
name: "UzTableDrawer",
|
|
6987
6960
|
components: {
|
|
6988
|
-
NButton:
|
|
6989
|
-
NDrawerContent:
|
|
6990
|
-
NDrawer:
|
|
6991
|
-
NSkeleton:
|
|
6992
|
-
NSpin:
|
|
6993
|
-
NPopover:
|
|
6994
|
-
NModal:
|
|
6961
|
+
NButton: L,
|
|
6962
|
+
NDrawerContent: le,
|
|
6963
|
+
NDrawer: ce,
|
|
6964
|
+
NSkeleton: Ae,
|
|
6965
|
+
NSpin: Me,
|
|
6966
|
+
NPopover: Ee,
|
|
6967
|
+
NModal: Ce
|
|
6995
6968
|
},
|
|
6996
6969
|
emits: ["update:show", "on-submit"],
|
|
6997
6970
|
setup(e, { emit: n, expose: r }) {
|
|
@@ -7051,11 +7024,11 @@ var rm = /*#__PURE__*/ U(Qp, [["render", nm]]), im = d({
|
|
|
7051
7024
|
linkFn: t
|
|
7052
7025
|
};
|
|
7053
7026
|
let r = e.split(".")[0];
|
|
7054
|
-
|
|
7027
|
+
Dp(r).then((e) => {
|
|
7055
7028
|
h(async () => {
|
|
7056
|
-
let t =
|
|
7057
|
-
d.value =
|
|
7058
|
-
let { form: i } = await kp(
|
|
7029
|
+
let t = nt.parse(e.viewJson);
|
|
7030
|
+
d.value = Np(t.option), u.value = !0;
|
|
7031
|
+
let { form: i } = await Pp(kp(t.table), n);
|
|
7059
7032
|
y.value = t.trigger, n && T(n);
|
|
7060
7033
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
7061
7034
|
a && (c.value = a), h(() => {
|
|
@@ -7117,7 +7090,7 @@ var rm = /*#__PURE__*/ U(Qp, [["render", nm]]), im = d({
|
|
|
7117
7090
|
tableId: t,
|
|
7118
7091
|
...e
|
|
7119
7092
|
}).then(() => {
|
|
7120
|
-
|
|
7093
|
+
Tp(), Td({ tableId: t }).then((e) => {
|
|
7121
7094
|
let r = l.value.link.split("."), i;
|
|
7122
7095
|
if (l.value.linkFn) {
|
|
7123
7096
|
let t = l.value.linkFn;
|
|
@@ -7148,11 +7121,11 @@ var rm = /*#__PURE__*/ U(Qp, [["render", nm]]), im = d({
|
|
|
7148
7121
|
}
|
|
7149
7122
|
};
|
|
7150
7123
|
}
|
|
7151
|
-
}),
|
|
7124
|
+
}), um = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, dm = {
|
|
7152
7125
|
key: 0,
|
|
7153
7126
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7154
|
-
},
|
|
7155
|
-
function
|
|
7127
|
+
}, fm = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, pm = { class: "uz-flex uz-gap-2" };
|
|
7128
|
+
function mm(t, s, u, d, f, p) {
|
|
7156
7129
|
let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("NModal");
|
|
7157
7130
|
return x(), i(e, null, [l(S, {
|
|
7158
7131
|
show: t.drawer,
|
|
@@ -7166,19 +7139,19 @@ function lm(t, s, u, d, f, p) {
|
|
|
7166
7139
|
"auto-focus": !1,
|
|
7167
7140
|
"mask-closable": !1
|
|
7168
7141
|
}, {
|
|
7169
|
-
default:
|
|
7142
|
+
default: N(() => [l(b, {
|
|
7170
7143
|
title: t.formStatus === 1 ? t.$t("Common.edit") : t.formStatus === 2 ? t.$t("Common.detail") : t.$t("Common.add"),
|
|
7171
7144
|
closable: ""
|
|
7172
7145
|
}, o({
|
|
7173
|
-
default:
|
|
7174
|
-
description:
|
|
7175
|
-
default:
|
|
7146
|
+
default: N(() => [l(_, { show: t.spinError }, {
|
|
7147
|
+
description: N(() => [c(k(t.$t("Notice.error")), 1)]),
|
|
7148
|
+
default: N(() => [l(g, {
|
|
7176
7149
|
value: t.spinShow,
|
|
7177
7150
|
"onUpdate:value": s[0] ||= (e) => t.spinShow = e,
|
|
7178
7151
|
message: t.spinMsg,
|
|
7179
7152
|
status: t.spinStatus
|
|
7180
7153
|
}, {
|
|
7181
|
-
default:
|
|
7154
|
+
default: N(() => [a("div", um, [t.skeletonShow ? (x(), i("div", dm, [
|
|
7182
7155
|
l(m, {
|
|
7183
7156
|
size: "large",
|
|
7184
7157
|
style: { height: "156px" }
|
|
@@ -7241,39 +7214,39 @@ function lm(t, s, u, d, f, p) {
|
|
|
7241
7214
|
_: 2
|
|
7242
7215
|
}, [t.formStatus === 2 ? void 0 : {
|
|
7243
7216
|
name: "footer",
|
|
7244
|
-
fn:
|
|
7217
|
+
fn: N(() => [a("div", fm, [l(v, {
|
|
7245
7218
|
loading: t.spinShow,
|
|
7246
7219
|
type: "success",
|
|
7247
7220
|
class: "uz-drawer-button",
|
|
7248
7221
|
onClick: s[1] ||= (e) => t.ocrShow = !t.ocrShow
|
|
7249
7222
|
}, {
|
|
7250
|
-
default:
|
|
7223
|
+
default: N(() => [c(k(t.$t("OCR.ocr")), 1)]),
|
|
7251
7224
|
_: 1
|
|
7252
|
-
}, 8, ["loading"]), a("div",
|
|
7225
|
+
}, 8, ["loading"]), a("div", pm, [
|
|
7253
7226
|
l(v, {
|
|
7254
7227
|
loading: t.spinShow,
|
|
7255
7228
|
class: "uz-drawer-button",
|
|
7256
7229
|
secondary: "",
|
|
7257
7230
|
onClick: t.drawerCheck
|
|
7258
7231
|
}, {
|
|
7259
|
-
default:
|
|
7232
|
+
default: N(() => [c(k(t.$t("Common.cancel")), 1)]),
|
|
7260
7233
|
_: 1
|
|
7261
7234
|
}, 8, ["loading", "onClick"]),
|
|
7262
7235
|
t.formStatus === 0 ? (x(), n(y, {
|
|
7263
7236
|
key: 0,
|
|
7264
7237
|
trigger: "hover"
|
|
7265
7238
|
}, {
|
|
7266
|
-
trigger:
|
|
7239
|
+
trigger: N(() => [l(v, {
|
|
7267
7240
|
type: "success",
|
|
7268
7241
|
loading: t.spinShow,
|
|
7269
7242
|
class: "uz-drawer-button",
|
|
7270
7243
|
secondary: "",
|
|
7271
7244
|
onClick: t.doCacheToStore
|
|
7272
7245
|
}, {
|
|
7273
|
-
default:
|
|
7246
|
+
default: N(() => [c(k(t.$t("Common.cache")), 1)]),
|
|
7274
7247
|
_: 1
|
|
7275
7248
|
}, 8, ["loading", "onClick"])]),
|
|
7276
|
-
default:
|
|
7249
|
+
default: N(() => [s[4] ||= a("span", null, "暂存表单,暂存内容一天有效", -1)]),
|
|
7277
7250
|
_: 1
|
|
7278
7251
|
})) : r("", !0),
|
|
7279
7252
|
l(v, {
|
|
@@ -7282,7 +7255,7 @@ function lm(t, s, u, d, f, p) {
|
|
|
7282
7255
|
type: "primary",
|
|
7283
7256
|
onClick: t.drawerSubmit
|
|
7284
7257
|
}, {
|
|
7285
|
-
default:
|
|
7258
|
+
default: N(() => [c(k(t.$t("Common.apply")), 1)]),
|
|
7286
7259
|
_: 1
|
|
7287
7260
|
}, 8, ["loading", "onClick"])
|
|
7288
7261
|
])])]),
|
|
@@ -7313,11 +7286,11 @@ function lm(t, s, u, d, f, p) {
|
|
|
7313
7286
|
bottom: "0"
|
|
7314
7287
|
}
|
|
7315
7288
|
}, {
|
|
7316
|
-
default:
|
|
7289
|
+
default: N(() => [l(C)]),
|
|
7317
7290
|
_: 1
|
|
7318
7291
|
}, 8, ["show"])], 64);
|
|
7319
7292
|
}
|
|
7320
|
-
var
|
|
7293
|
+
var hm = /*#__PURE__*/ U(lm, [["render", mm]]), gm = d({
|
|
7321
7294
|
name: "UzTableMobileList",
|
|
7322
7295
|
props: {
|
|
7323
7296
|
tableData: {
|
|
@@ -7335,35 +7308,35 @@ var um = /*#__PURE__*/ U(im, [["render", lm]]), dm = d({
|
|
|
7335
7308
|
},
|
|
7336
7309
|
emits: ["update:row-keys"],
|
|
7337
7310
|
setup() {}
|
|
7338
|
-
}),
|
|
7311
|
+
}), _m = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, vm = {
|
|
7339
7312
|
key: 1,
|
|
7340
7313
|
class: "uz-table-mobile-group-txt"
|
|
7341
7314
|
};
|
|
7342
|
-
function
|
|
7343
|
-
return x(), i("div",
|
|
7315
|
+
function ym(t, o, s, c, l, u) {
|
|
7316
|
+
return x(), i("div", _m, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
|
|
7344
7317
|
key: o.key,
|
|
7345
7318
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7346
7319
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
7347
|
-
}, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(
|
|
7320
|
+
}, [o.key === "action" ? (x(), i(e, { key: 0 }, [o.render ? (x(), n(O(() => {
|
|
7348
7321
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7349
7322
|
}), {
|
|
7350
7323
|
key: 0,
|
|
7351
7324
|
class: "mobile"
|
|
7352
|
-
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null,
|
|
7325
|
+
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(O(() => {
|
|
7353
7326
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7354
|
-
}), { key: 0 })) : (x(), i("div",
|
|
7327
|
+
}), { key: 0 })) : (x(), i("div", vm, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7355
7328
|
}
|
|
7356
7329
|
//#endregion
|
|
7357
7330
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7358
|
-
var
|
|
7331
|
+
var bm = d({
|
|
7359
7332
|
name: "UzTableMobile",
|
|
7360
7333
|
components: {
|
|
7361
|
-
NCheckbox:
|
|
7362
|
-
NRadio:
|
|
7363
|
-
NPagination:
|
|
7364
|
-
NCheckboxGroup:
|
|
7365
|
-
NRadioGroup:
|
|
7366
|
-
UzTableMobileList: /* @__PURE__ */ U(
|
|
7334
|
+
NCheckbox: R,
|
|
7335
|
+
NRadio: De,
|
|
7336
|
+
NPagination: we,
|
|
7337
|
+
NCheckboxGroup: re,
|
|
7338
|
+
NRadioGroup: Oe,
|
|
7339
|
+
UzTableMobileList: /* @__PURE__ */ U(gm, [["render", ym], ["__scopeId", "data-v-84c394fe"]])
|
|
7367
7340
|
},
|
|
7368
7341
|
props: {
|
|
7369
7342
|
tableData: {
|
|
@@ -7410,17 +7383,17 @@ var hm = d({
|
|
|
7410
7383
|
}
|
|
7411
7384
|
};
|
|
7412
7385
|
}
|
|
7413
|
-
}),
|
|
7386
|
+
}), xm = {
|
|
7414
7387
|
key: 0,
|
|
7415
7388
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7416
|
-
},
|
|
7389
|
+
}, Sm = {
|
|
7417
7390
|
key: 0,
|
|
7418
7391
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7419
|
-
},
|
|
7392
|
+
}, Cm = {
|
|
7420
7393
|
key: 0,
|
|
7421
7394
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7422
7395
|
};
|
|
7423
|
-
function
|
|
7396
|
+
function wm(t, a, o, s, c, u) {
|
|
7424
7397
|
let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
|
|
7425
7398
|
return t.selection === 2 ? (x(), n(m, {
|
|
7426
7399
|
key: 0,
|
|
@@ -7432,12 +7405,12 @@ function ym(t, a, o, s, c, u) {
|
|
|
7432
7405
|
maxHeight: t.maxH
|
|
7433
7406
|
})
|
|
7434
7407
|
}, {
|
|
7435
|
-
default:
|
|
7408
|
+
default: N(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(f, {
|
|
7436
7409
|
key: e.id,
|
|
7437
7410
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
7438
7411
|
value: e.id
|
|
7439
7412
|
}, {
|
|
7440
|
-
default:
|
|
7413
|
+
default: N(() => [l(d, {
|
|
7441
7414
|
tableData: e,
|
|
7442
7415
|
tableIndex: r,
|
|
7443
7416
|
tableColumns: t.tableColumns
|
|
@@ -7447,7 +7420,7 @@ function ym(t, a, o, s, c, u) {
|
|
|
7447
7420
|
"tableColumns"
|
|
7448
7421
|
])]),
|
|
7449
7422
|
_: 2
|
|
7450
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7423
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", xm, [l(p, {
|
|
7451
7424
|
page: t.tableQueries.query.page,
|
|
7452
7425
|
"onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7453
7426
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7474,12 +7447,12 @@ function ym(t, a, o, s, c, u) {
|
|
|
7474
7447
|
maxHeight: t.maxH
|
|
7475
7448
|
})
|
|
7476
7449
|
}, {
|
|
7477
|
-
default:
|
|
7450
|
+
default: N(() => [(x(!0), i(e, null, T(t.tableData, (e, r) => (x(), n(h, {
|
|
7478
7451
|
key: e.id,
|
|
7479
7452
|
class: "uz-com-card uz-flex uz-gap-2",
|
|
7480
7453
|
value: e.id
|
|
7481
7454
|
}, {
|
|
7482
|
-
default:
|
|
7455
|
+
default: N(() => [l(d, {
|
|
7483
7456
|
tableData: e,
|
|
7484
7457
|
tableIndex: r,
|
|
7485
7458
|
tableColumns: t.tableColumns
|
|
@@ -7489,7 +7462,7 @@ function ym(t, a, o, s, c, u) {
|
|
|
7489
7462
|
"tableColumns"
|
|
7490
7463
|
])]),
|
|
7491
7464
|
_: 2
|
|
7492
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7465
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Sm, [l(p, {
|
|
7493
7466
|
page: t.tableQueries.query.page,
|
|
7494
7467
|
"onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7495
7468
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7524,7 +7497,7 @@ function ym(t, a, o, s, c, u) {
|
|
|
7524
7497
|
"tableData",
|
|
7525
7498
|
"tableIndex",
|
|
7526
7499
|
"tableColumns"
|
|
7527
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7500
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Cm, [l(p, {
|
|
7528
7501
|
page: t.tableQueries.query.page,
|
|
7529
7502
|
"onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7530
7503
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7537,7 +7510,7 @@ function ym(t, a, o, s, c, u) {
|
|
|
7537
7510
|
"onUpdate:page"
|
|
7538
7511
|
])])) : r("", !0)], 4));
|
|
7539
7512
|
}
|
|
7540
|
-
var
|
|
7513
|
+
var Tm = /*#__PURE__*/ U(bm, [["render", wm], ["__scopeId", "data-v-70b54e3b"]]), Q = C({
|
|
7541
7514
|
page: {
|
|
7542
7515
|
label: "首页",
|
|
7543
7516
|
key: "/",
|
|
@@ -7548,7 +7521,7 @@ var bm = /*#__PURE__*/ U(hm, [["render", ym], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7548
7521
|
active: "/",
|
|
7549
7522
|
thumbnail: []
|
|
7550
7523
|
});
|
|
7551
|
-
function
|
|
7524
|
+
function Em(e) {
|
|
7552
7525
|
Q.cache = e.cache, Q.page = {
|
|
7553
7526
|
label: e.label,
|
|
7554
7527
|
key: e.key,
|
|
@@ -7563,14 +7536,14 @@ function xm(e) {
|
|
|
7563
7536
|
closable: !1
|
|
7564
7537
|
}];
|
|
7565
7538
|
}
|
|
7566
|
-
function
|
|
7539
|
+
function Dm(e) {
|
|
7567
7540
|
Q.active = e, W.push(e), J(Q.cache, Q, 0);
|
|
7568
7541
|
}
|
|
7569
|
-
function
|
|
7542
|
+
function Om(e, t) {
|
|
7570
7543
|
let n = Q.thumbnail.find((t) => t.key === e);
|
|
7571
7544
|
n && (n.key = t, Q.active = t, J(Q.cache, Q, 0));
|
|
7572
7545
|
}
|
|
7573
|
-
function
|
|
7546
|
+
function km(e) {
|
|
7574
7547
|
let t = Q.thumbnail.find((t) => t.path === e.key);
|
|
7575
7548
|
t ? (Q.active = t.key, J(Q.cache, Q, 0), W.push(t.key)) : (Q.active = e.key, Q.thumbnail.push({
|
|
7576
7549
|
...e,
|
|
@@ -7578,7 +7551,7 @@ function wm(e) {
|
|
|
7578
7551
|
closable: !0
|
|
7579
7552
|
}), W.push(e.key));
|
|
7580
7553
|
}
|
|
7581
|
-
function
|
|
7554
|
+
function Am(e) {
|
|
7582
7555
|
let t = Q.thumbnail.findIndex((t) => t.key === e);
|
|
7583
7556
|
if (Q.thumbnail.splice(t, 1), Q.active === e) {
|
|
7584
7557
|
let e = Q.thumbnail[t - 1]?.key || "";
|
|
@@ -7586,20 +7559,20 @@ function Tm(e) {
|
|
|
7586
7559
|
}
|
|
7587
7560
|
J(Q.cache, Q, 0);
|
|
7588
7561
|
}
|
|
7589
|
-
function
|
|
7562
|
+
function jm() {
|
|
7590
7563
|
Q.active = Q.page.path, Q.thumbnail = [Q.page], W.push(Q.page.path), J(Q.cache, Q, 0);
|
|
7591
7564
|
}
|
|
7592
7565
|
//#endregion
|
|
7593
7566
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7594
|
-
var
|
|
7567
|
+
var Mm = d({
|
|
7595
7568
|
name: "UzThumbnail",
|
|
7596
7569
|
components: {
|
|
7597
|
-
NTabs:
|
|
7598
|
-
NTabPane:
|
|
7599
|
-
NButton:
|
|
7600
|
-
NIcon:
|
|
7601
|
-
NPopconfirm:
|
|
7602
|
-
NFlex:
|
|
7570
|
+
NTabs: Fe,
|
|
7571
|
+
NTabPane: Pe,
|
|
7572
|
+
NButton: L,
|
|
7573
|
+
NIcon: B,
|
|
7574
|
+
NPopconfirm: Te,
|
|
7575
|
+
NFlex: fe,
|
|
7603
7576
|
Trash: bl
|
|
7604
7577
|
},
|
|
7605
7578
|
props: { option: {
|
|
@@ -7611,31 +7584,31 @@ var Dm = d({
|
|
|
7611
7584
|
})
|
|
7612
7585
|
} },
|
|
7613
7586
|
setup(e, { slots: t }) {
|
|
7614
|
-
let n = w(!!t.prefix), r =
|
|
7587
|
+
let n = w(!!t.prefix), r = qe();
|
|
7615
7588
|
return y(() => {
|
|
7616
|
-
|
|
7617
|
-
}),
|
|
7618
|
-
Q.active === r.path &&
|
|
7619
|
-
}, { deep: !0 }),
|
|
7620
|
-
|
|
7589
|
+
Em(e.option), Q.active !== r.path && Om(r.path, r.fullPath);
|
|
7590
|
+
}), j(() => r, (e) => {
|
|
7591
|
+
Q.active === r.path && Om(e.path, e.fullPath);
|
|
7592
|
+
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
7593
|
+
Em(e);
|
|
7621
7594
|
}, { deep: !0 }), {
|
|
7622
7595
|
thumbnailStore: Q,
|
|
7623
7596
|
isSlotPrefix: n,
|
|
7624
7597
|
handleClose: (e) => {
|
|
7625
|
-
|
|
7598
|
+
Am(e);
|
|
7626
7599
|
},
|
|
7627
7600
|
handleChange: (e) => {
|
|
7628
|
-
|
|
7601
|
+
Dm(e);
|
|
7629
7602
|
},
|
|
7630
7603
|
handleClear: () => {
|
|
7631
|
-
|
|
7604
|
+
jm();
|
|
7632
7605
|
}
|
|
7633
7606
|
};
|
|
7634
7607
|
}
|
|
7635
7608
|
});
|
|
7636
7609
|
//#endregion
|
|
7637
7610
|
//#region components/thumbnail/index.vue
|
|
7638
|
-
function
|
|
7611
|
+
function Nm(t, r, a, s, u, d) {
|
|
7639
7612
|
let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
|
|
7640
7613
|
return x(), n(v, {
|
|
7641
7614
|
value: t.thumbnailStore.active,
|
|
@@ -7646,21 +7619,21 @@ function Om(t, r, a, s, u, d) {
|
|
|
7646
7619
|
"on-update:value": t.handleChange,
|
|
7647
7620
|
class: "uz-thumbnail"
|
|
7648
7621
|
}, o({
|
|
7649
|
-
suffix:
|
|
7650
|
-
default:
|
|
7651
|
-
trigger:
|
|
7652
|
-
default:
|
|
7653
|
-
default:
|
|
7622
|
+
suffix: N(() => [l(_, null, {
|
|
7623
|
+
default: N(() => [l(g, { onPositiveClick: t.handleClear }, {
|
|
7624
|
+
trigger: N(() => [l(h, { class: "uz-button-glass" }, {
|
|
7625
|
+
default: N(() => [l(m, { color: "#e65444" }, {
|
|
7626
|
+
default: N(() => [l(p)]),
|
|
7654
7627
|
_: 1
|
|
7655
7628
|
})]),
|
|
7656
7629
|
_: 1
|
|
7657
7630
|
})]),
|
|
7658
|
-
default:
|
|
7631
|
+
default: N(() => [r[0] ||= c(" 清空所有打开的标签? ", -1)]),
|
|
7659
7632
|
_: 1
|
|
7660
7633
|
}, 8, ["onPositiveClick"]), E(t.$slots, "suffix")]),
|
|
7661
7634
|
_: 3
|
|
7662
7635
|
})]),
|
|
7663
|
-
default:
|
|
7636
|
+
default: N(() => [(x(!0), i(e, null, T(t.thumbnailStore.thumbnail, (e) => (x(), n(f, {
|
|
7664
7637
|
key: e.key,
|
|
7665
7638
|
name: e.key,
|
|
7666
7639
|
tab: e.label,
|
|
@@ -7673,7 +7646,7 @@ function Om(t, r, a, s, u, d) {
|
|
|
7673
7646
|
_: 2
|
|
7674
7647
|
}, [t.isSlotPrefix ? {
|
|
7675
7648
|
name: "prefix",
|
|
7676
|
-
fn:
|
|
7649
|
+
fn: N(() => [E(t.$slots, "prefix")]),
|
|
7677
7650
|
key: "0"
|
|
7678
7651
|
} : void 0]), 1032, [
|
|
7679
7652
|
"value",
|
|
@@ -7681,33 +7654,33 @@ function Om(t, r, a, s, u, d) {
|
|
|
7681
7654
|
"on-update:value"
|
|
7682
7655
|
]);
|
|
7683
7656
|
}
|
|
7684
|
-
var
|
|
7685
|
-
|
|
7686
|
-
var
|
|
7657
|
+
var Pm = /*#__PURE__*/ U(Mm, [["render", Nm]]), Fm = "#007AFF", Im = "#0A84FF", Lm = "#FF9500", Rm = "#FF9F0A", zm = "#28CD41", Bm = "#32D74B", Vm = "#FFCC00", Hm = "#FFD60A", Um = "#FF3B30", Wm = "#FF453A";
|
|
7658
|
+
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Im, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Rm, V.common.successColor = "#32D74B", V.common.successColorHover = Bm, V.common.warningColor = "#FFD60A", V.common.successColorHover = Hm, V.common.errorColor = "#FF453A", V.common.errorColorHover = Wm, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31";
|
|
7659
|
+
var Gm = {
|
|
7687
7660
|
common: {
|
|
7688
7661
|
inputColor: "rgba(var(--input))",
|
|
7689
7662
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7690
7663
|
borderRadius: "var(--borderRadius)",
|
|
7691
|
-
primaryColor:
|
|
7692
|
-
primaryColorHover:
|
|
7693
|
-
primaryColorPressed:
|
|
7694
|
-
primaryColorSuppl:
|
|
7695
|
-
infoColor:
|
|
7696
|
-
infoColorHover:
|
|
7697
|
-
infoColorPressed:
|
|
7698
|
-
infoColorSuppl:
|
|
7699
|
-
successColor:
|
|
7700
|
-
successColorHover:
|
|
7701
|
-
successColorPressed:
|
|
7702
|
-
successColorSuppl:
|
|
7703
|
-
warningColor:
|
|
7704
|
-
warningColorHover:
|
|
7705
|
-
warningColorPressed:
|
|
7706
|
-
warningColorSuppl:
|
|
7707
|
-
errorColor:
|
|
7708
|
-
errorColorHover:
|
|
7709
|
-
errorColorPressed:
|
|
7710
|
-
errorColorSuppl:
|
|
7664
|
+
primaryColor: Fm,
|
|
7665
|
+
primaryColorHover: Im,
|
|
7666
|
+
primaryColorPressed: Fm,
|
|
7667
|
+
primaryColorSuppl: Fm,
|
|
7668
|
+
infoColor: Lm,
|
|
7669
|
+
infoColorHover: Rm,
|
|
7670
|
+
infoColorPressed: Lm,
|
|
7671
|
+
infoColorSuppl: Lm,
|
|
7672
|
+
successColor: zm,
|
|
7673
|
+
successColorHover: Bm,
|
|
7674
|
+
successColorPressed: zm,
|
|
7675
|
+
successColorSuppl: zm,
|
|
7676
|
+
warningColor: Vm,
|
|
7677
|
+
warningColorHover: Hm,
|
|
7678
|
+
warningColorPressed: Vm,
|
|
7679
|
+
warningColorSuppl: Vm,
|
|
7680
|
+
errorColor: Um,
|
|
7681
|
+
errorColorHover: Wm,
|
|
7682
|
+
errorColorPressed: Um,
|
|
7683
|
+
errorColorSuppl: Um,
|
|
7711
7684
|
cardColor: "#fff"
|
|
7712
7685
|
},
|
|
7713
7686
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7715,24 +7688,22 @@ var Bm = {
|
|
|
7715
7688
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
7716
7689
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
7717
7690
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7718
|
-
},
|
|
7691
|
+
}, Km = V, qm = d({
|
|
7719
7692
|
name: "UzWrap",
|
|
7720
|
-
components: { NConfigProvider:
|
|
7693
|
+
components: { NConfigProvider: ae },
|
|
7721
7694
|
setup() {
|
|
7722
7695
|
return {
|
|
7723
|
-
zhCN:
|
|
7724
|
-
dateZhCN:
|
|
7696
|
+
zhCN: Ue,
|
|
7697
|
+
dateZhCN: Ve,
|
|
7725
7698
|
commonStore: K,
|
|
7726
|
-
lightTheme:
|
|
7727
|
-
darkTheme:
|
|
7699
|
+
lightTheme: Gm,
|
|
7700
|
+
darkTheme: Km
|
|
7728
7701
|
};
|
|
7729
7702
|
}
|
|
7730
|
-
});
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
let s = D("NConfigProvider");
|
|
7735
|
-
return x(), n(s, {
|
|
7703
|
+
}), Jm = { style: { display: "none" } };
|
|
7704
|
+
function Ym(e, t, r, o, s, c) {
|
|
7705
|
+
let l = D("NConfigProvider");
|
|
7706
|
+
return x(), n(l, {
|
|
7736
7707
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
7737
7708
|
"theme-overrides": e.commonStore.theme ? e.darkTheme : e.lightTheme,
|
|
7738
7709
|
locale: e.commonStore.lang === "zh-CN" ? e.zhCN : null,
|
|
@@ -7740,7 +7711,24 @@ function Um(e, t, r, i, a, o) {
|
|
|
7740
7711
|
"inline-theme-disabled": "",
|
|
7741
7712
|
abstract: ""
|
|
7742
7713
|
}, {
|
|
7743
|
-
default:
|
|
7714
|
+
default: N(() => [E(e.$slots, "default"), (x(), i("svg", Jm, [...t[0] ||= [a("defs", null, [a("filter", { id: "uz-blurs" }, [
|
|
7715
|
+
a("feOffset", {
|
|
7716
|
+
result: "offOut",
|
|
7717
|
+
in: "SourceGraphic",
|
|
7718
|
+
dx: "0",
|
|
7719
|
+
dy: "0"
|
|
7720
|
+
}),
|
|
7721
|
+
a("feGaussianBlur", {
|
|
7722
|
+
result: "blurOut",
|
|
7723
|
+
in: "offOut",
|
|
7724
|
+
stdDeviation: "0.8"
|
|
7725
|
+
}),
|
|
7726
|
+
a("feBlend", {
|
|
7727
|
+
in: "SourceGraphic",
|
|
7728
|
+
in2: "blurOut",
|
|
7729
|
+
mode: "normal"
|
|
7730
|
+
})
|
|
7731
|
+
])], -1)]]))]),
|
|
7744
7732
|
_: 3
|
|
7745
7733
|
}, 8, [
|
|
7746
7734
|
"theme",
|
|
@@ -7749,10 +7737,10 @@ function Um(e, t, r, i, a, o) {
|
|
|
7749
7737
|
"date-locale"
|
|
7750
7738
|
]);
|
|
7751
7739
|
}
|
|
7752
|
-
var
|
|
7740
|
+
var Xm = /*#__PURE__*/ U(qm, [["render", Ym]]);
|
|
7753
7741
|
//#endregion
|
|
7754
7742
|
//#region components/ocr/preprocess.ts
|
|
7755
|
-
function
|
|
7743
|
+
function Zm(e) {
|
|
7756
7744
|
let t = new Int32Array(256), n = e.length;
|
|
7757
7745
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7758
7746
|
let r = 0;
|
|
@@ -7767,7 +7755,7 @@ function Gm(e) {
|
|
|
7767
7755
|
}
|
|
7768
7756
|
return c;
|
|
7769
7757
|
}
|
|
7770
|
-
function
|
|
7758
|
+
function Qm(e, t) {
|
|
7771
7759
|
return new Promise((n, r) => {
|
|
7772
7760
|
let i = new Image();
|
|
7773
7761
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7800,7 +7788,7 @@ function Km(e, t) {
|
|
|
7800
7788
|
}
|
|
7801
7789
|
let u = t.threshold;
|
|
7802
7790
|
if (t.binarize) {
|
|
7803
|
-
t.autoThreshold && (u =
|
|
7791
|
+
t.autoThreshold && (u = Zm(l));
|
|
7804
7792
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7805
7793
|
let n = l[t] < u ? 0 : 255;
|
|
7806
7794
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7823,19 +7811,19 @@ function Km(e, t) {
|
|
|
7823
7811
|
}
|
|
7824
7812
|
//#endregion
|
|
7825
7813
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7826
|
-
var
|
|
7814
|
+
var $m = d({
|
|
7827
7815
|
name: "UzOcr",
|
|
7828
7816
|
components: {
|
|
7829
|
-
NButton:
|
|
7830
|
-
NUpload:
|
|
7831
|
-
NSelect:
|
|
7832
|
-
NSwitch:
|
|
7833
|
-
NTabs:
|
|
7834
|
-
NTabPane:
|
|
7835
|
-
NSpace:
|
|
7817
|
+
NButton: L,
|
|
7818
|
+
NUpload: Re,
|
|
7819
|
+
NSelect: ke,
|
|
7820
|
+
NSwitch: Ne,
|
|
7821
|
+
NTabs: Fe,
|
|
7822
|
+
NTabPane: Pe,
|
|
7823
|
+
NSpace: je
|
|
7836
7824
|
},
|
|
7837
7825
|
setup() {
|
|
7838
|
-
let { t: e } =
|
|
7826
|
+
let { t: e } = Xe(), n = w(!1), r = w(e("OCR.scan")), i = w([]), a = w(null), o = w(!0), s = w(3), c = w(!0), l = w(!0), u = w(!0), d = w(128), f = w(""), p = w(""), m = w(128), h = w("processed"), g = [
|
|
7839
7827
|
{
|
|
7840
7828
|
label: "不放大 (1x)",
|
|
7841
7829
|
value: 1
|
|
@@ -7860,7 +7848,7 @@ var qm = d({
|
|
|
7860
7848
|
tessedit_char_blacklist: "|"
|
|
7861
7849
|
}), a.value), v = async () => {
|
|
7862
7850
|
if (f.value) try {
|
|
7863
|
-
let e = await
|
|
7851
|
+
let e = await Qm(f.value, {
|
|
7864
7852
|
enabled: o.value,
|
|
7865
7853
|
scale: s.value,
|
|
7866
7854
|
grayscale: !0,
|
|
@@ -7874,7 +7862,7 @@ var qm = d({
|
|
|
7874
7862
|
console.error("实时预处理失败", e);
|
|
7875
7863
|
}
|
|
7876
7864
|
};
|
|
7877
|
-
|
|
7865
|
+
j([
|
|
7878
7866
|
f,
|
|
7879
7867
|
o,
|
|
7880
7868
|
s,
|
|
@@ -7897,7 +7885,7 @@ var qm = d({
|
|
|
7897
7885
|
n.value = !0, r.value = e("OCR.analysis");
|
|
7898
7886
|
let a = t;
|
|
7899
7887
|
if (o.value || s.value > 1) try {
|
|
7900
|
-
let e = await
|
|
7888
|
+
let e = await Qm(t, {
|
|
7901
7889
|
enabled: o.value,
|
|
7902
7890
|
scale: s.value,
|
|
7903
7891
|
grayscale: !0,
|
|
@@ -7959,49 +7947,49 @@ var qm = d({
|
|
|
7959
7947
|
t: e
|
|
7960
7948
|
};
|
|
7961
7949
|
}
|
|
7962
|
-
}),
|
|
7950
|
+
}), eh = { class: "uz-ocr" }, th = { class: "uz-ocr-left-col" }, nh = { class: "uz-ocr-upload-card" }, rh = { class: "uz-ocr-upload-title" }, ih = {
|
|
7963
7951
|
key: 1,
|
|
7964
7952
|
class: "uz-ocr-preview-panel"
|
|
7965
|
-
},
|
|
7953
|
+
}, ah = { class: "uz-ocr-preview-box" }, oh = ["src"], sh = {
|
|
7966
7954
|
key: 0,
|
|
7967
7955
|
class: "uz-ocr-threshold-badge"
|
|
7968
|
-
},
|
|
7956
|
+
}, ch = { class: "uz-ocr-preview-box" }, lh = ["src"], uh = { class: "uz-ocr-settings-form" }, dh = { class: "uz-settings-row" }, fh = { class: "uz-settings-label" }, ph = {
|
|
7969
7957
|
key: 0,
|
|
7970
7958
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7971
|
-
},
|
|
7959
|
+
}, mh = { class: "uz-settings-row" }, hh = { class: "uz-settings-label" }, gh = { class: "uz-settings-row" }, _h = { class: "uz-settings-label" }, vh = { class: "uz-ocr-right-col" }, yh = { class: "uz-ocr-result-header" }, bh = { class: "uz-result-title" }, xh = {
|
|
7972
7960
|
key: 0,
|
|
7973
7961
|
class: "uz-ocr-empty-state"
|
|
7974
|
-
},
|
|
7962
|
+
}, Sh = { class: "uz-empty-text" }, Ch = {
|
|
7975
7963
|
key: 1,
|
|
7976
7964
|
class: "uz-ocr-result-tabs"
|
|
7977
7965
|
};
|
|
7978
|
-
function
|
|
7966
|
+
function wh(e, t, o, s, u, d) {
|
|
7979
7967
|
let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
|
|
7980
|
-
return x(), i("div",
|
|
7968
|
+
return x(), i("div", eh, [a("div", th, [e.rawImage ? (x(), i("div", ih, [l(m, {
|
|
7981
7969
|
value: e.imagePreviewTab,
|
|
7982
7970
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7983
7971
|
type: "segment",
|
|
7984
7972
|
size: "small"
|
|
7985
7973
|
}, {
|
|
7986
|
-
default:
|
|
7974
|
+
default: N(() => [l(p, {
|
|
7987
7975
|
name: "processed",
|
|
7988
7976
|
tab: e.t("OCR.previewProcessed")
|
|
7989
7977
|
}, {
|
|
7990
|
-
default:
|
|
7978
|
+
default: N(() => [a("div", ah, [a("img", {
|
|
7991
7979
|
src: e.processedImage,
|
|
7992
7980
|
alt: "Processed Preview",
|
|
7993
7981
|
class: "uz-ocr-preview-img"
|
|
7994
|
-
}, null, 8,
|
|
7982
|
+
}, null, 8, oh), e.preEnabled && e.preBinarize ? (x(), i("div", sh, k(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + k(e.thresholdUsed), 1)) : r("", !0)])]),
|
|
7995
7983
|
_: 1
|
|
7996
7984
|
}, 8, ["tab"]), l(p, {
|
|
7997
7985
|
name: "raw",
|
|
7998
7986
|
tab: e.t("OCR.previewRaw")
|
|
7999
7987
|
}, {
|
|
8000
|
-
default:
|
|
7988
|
+
default: N(() => [a("div", ch, [a("img", {
|
|
8001
7989
|
src: e.rawImage,
|
|
8002
7990
|
alt: "Raw Preview",
|
|
8003
7991
|
class: "uz-ocr-preview-img"
|
|
8004
|
-
}, null, 8,
|
|
7992
|
+
}, null, 8, lh)])]),
|
|
8005
7993
|
_: 1
|
|
8006
7994
|
}, 8, ["tab"])]),
|
|
8007
7995
|
_: 1
|
|
@@ -8009,13 +7997,13 @@ function vh(e, t, o, s, u, d) {
|
|
|
8009
7997
|
justify: "space-between",
|
|
8010
7998
|
class: "uz-ocr-preview-actions"
|
|
8011
7999
|
}, {
|
|
8012
|
-
default:
|
|
8000
|
+
default: N(() => [l(h, {
|
|
8013
8001
|
size: "small",
|
|
8014
8002
|
secondary: "",
|
|
8015
8003
|
type: "warning",
|
|
8016
8004
|
onClick: e.clearImage
|
|
8017
8005
|
}, {
|
|
8018
|
-
default:
|
|
8006
|
+
default: N(() => [...t[6] ||= [c(" 重新选择 ", -1)]]),
|
|
8019
8007
|
_: 1
|
|
8020
8008
|
}, 8, ["onClick"]), l(h, {
|
|
8021
8009
|
size: "small",
|
|
@@ -8023,7 +8011,7 @@ function vh(e, t, o, s, u, d) {
|
|
|
8023
8011
|
loading: e.ocrLoading,
|
|
8024
8012
|
onClick: e.handleManualOcr
|
|
8025
8013
|
}, {
|
|
8026
|
-
default:
|
|
8014
|
+
default: N(() => [c(k(e.t("OCR.reRecognize")), 1)]),
|
|
8027
8015
|
_: 1
|
|
8028
8016
|
}, 8, ["loading", "onClick"])]),
|
|
8029
8017
|
_: 1
|
|
@@ -8035,7 +8023,7 @@ function vh(e, t, o, s, u, d) {
|
|
|
8035
8023
|
"directory-dnd": "",
|
|
8036
8024
|
class: "uz-w-full"
|
|
8037
8025
|
}, {
|
|
8038
|
-
default:
|
|
8026
|
+
default: N(() => [a("div", nh, [
|
|
8039
8027
|
t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
|
|
8040
8028
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8041
8029
|
viewBox: "0 0 24 24",
|
|
@@ -8043,27 +8031,27 @@ function vh(e, t, o, s, u, d) {
|
|
|
8043
8031
|
height: "40",
|
|
8044
8032
|
fill: "currentColor"
|
|
8045
8033
|
}, [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),
|
|
8046
|
-
a("div",
|
|
8034
|
+
a("div", rh, k(e.t("OCR.scan")), 1),
|
|
8047
8035
|
t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8048
8036
|
])]),
|
|
8049
8037
|
_: 1
|
|
8050
|
-
}, 8, ["on-before-upload"])), a("div",
|
|
8038
|
+
}, 8, ["on-before-upload"])), a("div", uh, [a("div", dh, [a("span", fh, k(e.t("OCR.preprocess")), 1), l(_, {
|
|
8051
8039
|
value: e.preEnabled,
|
|
8052
8040
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8053
8041
|
size: "small"
|
|
8054
|
-
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div",
|
|
8042
|
+
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", ph, [a("div", mh, [a("span", hh, k(e.t("OCR.scale")), 1), l(v, {
|
|
8055
8043
|
value: e.preScale,
|
|
8056
8044
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8057
8045
|
options: e.scaleOptions,
|
|
8058
8046
|
size: "small",
|
|
8059
8047
|
class: "uz-settings-select"
|
|
8060
|
-
}, null, 8, ["value", "options"])]), a("div",
|
|
8048
|
+
}, null, 8, ["value", "options"])]), a("div", gh, [a("span", _h, k(e.t("OCR.contrast")), 1), l(_, {
|
|
8061
8049
|
value: e.preContrast,
|
|
8062
8050
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8063
8051
|
size: "small"
|
|
8064
|
-
}, null, 8, ["value"])])])) : r("", !0)])]), a("div",
|
|
8052
|
+
}, null, 8, ["value"])])])) : r("", !0)])]), a("div", vh, [a("div", yh, [a("span", bh, "识别结果 (" + k(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Ch, k(e.fullText), 1)) : (x(), i("div", xh, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Sh, k(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
8065
8053
|
}
|
|
8066
|
-
var
|
|
8054
|
+
var Th = /*#__PURE__*/ U($m, [["render", wh], ["__scopeId", "data-v-c7224ff5"]]), Eh = /* @__PURE__ */ lt({
|
|
8067
8055
|
AccessPoint: () => mt,
|
|
8068
8056
|
Activity: () => vt,
|
|
8069
8057
|
Adjustments: () => St,
|
|
@@ -8193,53 +8181,53 @@ var yh = /*#__PURE__*/ U(qm, [["render", vh], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
8193
8181
|
Users: () => Il,
|
|
8194
8182
|
UzActionButton: () => ut,
|
|
8195
8183
|
UzBack: () => Gd,
|
|
8196
|
-
UzCamera: () =>
|
|
8197
|
-
UzCircle: () =>
|
|
8198
|
-
UzDraggableForm: () =>
|
|
8199
|
-
UzForm: () =>
|
|
8200
|
-
UzFormItem: () =>
|
|
8201
|
-
UzFormItemImage: () =>
|
|
8202
|
-
UzFormItemTimesPicker: () =>
|
|
8203
|
-
UzFormItemUpload: () =>
|
|
8184
|
+
UzCamera: () => ap,
|
|
8185
|
+
UzCircle: () => Tf,
|
|
8186
|
+
UzDraggableForm: () => Rf,
|
|
8187
|
+
UzForm: () => Nf,
|
|
8188
|
+
UzFormItem: () => kf,
|
|
8189
|
+
UzFormItemImage: () => Jf,
|
|
8190
|
+
UzFormItemTimesPicker: () => Qf,
|
|
8191
|
+
UzFormItemUpload: () => Wf,
|
|
8204
8192
|
UzIcon: () => Iu,
|
|
8205
|
-
UzOcr: () =>
|
|
8206
|
-
UzSearchBar: () =>
|
|
8207
|
-
UzSearchMobileBar: () =>
|
|
8208
|
-
UzSpin: () =>
|
|
8209
|
-
UzTable: () =>
|
|
8210
|
-
UzTableChild: () =>
|
|
8211
|
-
UzTableDrawer: () =>
|
|
8212
|
-
UzTableMobile: () =>
|
|
8213
|
-
UzTableQuestChild: () =>
|
|
8214
|
-
UzThumbnail: () =>
|
|
8215
|
-
UzWrap: () =>
|
|
8193
|
+
UzOcr: () => Th,
|
|
8194
|
+
UzSearchBar: () => dp,
|
|
8195
|
+
UzSearchMobileBar: () => _p,
|
|
8196
|
+
UzSpin: () => Rp,
|
|
8197
|
+
UzTable: () => Jp,
|
|
8198
|
+
UzTableChild: () => nm,
|
|
8199
|
+
UzTableDrawer: () => hm,
|
|
8200
|
+
UzTableMobile: () => Tm,
|
|
8201
|
+
UzTableQuestChild: () => cm,
|
|
8202
|
+
UzThumbnail: () => Pm,
|
|
8203
|
+
UzWrap: () => Xm,
|
|
8216
8204
|
X: () => Bl,
|
|
8217
8205
|
commonStore: () => K,
|
|
8218
8206
|
fnActionReduction: () => Hd,
|
|
8219
8207
|
fnActionSimplify: () => Vd,
|
|
8220
|
-
fnAddThumbnail: () =>
|
|
8221
|
-
fnClearAllThumbnail: () =>
|
|
8222
|
-
fnDeleteThumbnail: () =>
|
|
8223
|
-
fnGetTableData: () =>
|
|
8224
|
-
fnOptionReduction: () =>
|
|
8225
|
-
fnOptionSimplify: () =>
|
|
8226
|
-
fnPrepareFormData: () =>
|
|
8227
|
-
fnPrepareTableData: () =>
|
|
8208
|
+
fnAddThumbnail: () => km,
|
|
8209
|
+
fnClearAllThumbnail: () => jm,
|
|
8210
|
+
fnDeleteThumbnail: () => Am,
|
|
8211
|
+
fnGetTableData: () => Dp,
|
|
8212
|
+
fnOptionReduction: () => Np,
|
|
8213
|
+
fnOptionSimplify: () => Mp,
|
|
8214
|
+
fnPrepareFormData: () => Pp,
|
|
8215
|
+
fnPrepareTableData: () => Fp,
|
|
8228
8216
|
fnRenderAction: () => Pd,
|
|
8229
8217
|
fnSetLang: () => Bu,
|
|
8230
8218
|
fnSetTheme: () => Vu,
|
|
8231
|
-
fnSetThumbnail: () =>
|
|
8232
|
-
fnTableReduction: () =>
|
|
8233
|
-
fnTableSimplify: () =>
|
|
8234
|
-
fnTriggersReduction: () =>
|
|
8235
|
-
fnTriggersSimplify: () =>
|
|
8219
|
+
fnSetThumbnail: () => Dm,
|
|
8220
|
+
fnTableReduction: () => kp,
|
|
8221
|
+
fnTableSimplify: () => Op,
|
|
8222
|
+
fnTriggersReduction: () => jp,
|
|
8223
|
+
fnTriggersSimplify: () => Ap,
|
|
8236
8224
|
i18n: () => G
|
|
8237
|
-
}),
|
|
8238
|
-
function
|
|
8239
|
-
|
|
8225
|
+
}), Dh = 3840, Oh = 2160, kh = C({ scale: 1 });
|
|
8226
|
+
function Ah(e, t) {
|
|
8227
|
+
Dh = e, Oh = t;
|
|
8240
8228
|
}
|
|
8241
|
-
function
|
|
8242
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
8229
|
+
function jh() {
|
|
8230
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Dh, i = Oh, a = parseFloat((r / i).toFixed(5));
|
|
8243
8231
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
8244
8232
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
8245
8233
|
e = t > 1 ? 1 : t;
|
|
@@ -8247,18 +8235,18 @@ function Th() {
|
|
|
8247
8235
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
8248
8236
|
e = n > 1 ? 1 : n;
|
|
8249
8237
|
}
|
|
8250
|
-
|
|
8238
|
+
kh.scale = e;
|
|
8251
8239
|
}
|
|
8252
|
-
function
|
|
8253
|
-
let e =
|
|
8240
|
+
function Mh() {
|
|
8241
|
+
let e = Qe(jh, 200);
|
|
8254
8242
|
return e(), window.addEventListener("resize", e), () => {
|
|
8255
|
-
|
|
8243
|
+
Dh = 3840, Oh = 2160, window.removeEventListener("resize", e);
|
|
8256
8244
|
};
|
|
8257
8245
|
}
|
|
8258
8246
|
//#endregion
|
|
8259
8247
|
//#region components/hooks/useDebounceFn.ts
|
|
8260
|
-
function
|
|
8261
|
-
let n =
|
|
8248
|
+
function Nh(e, t = 1e3) {
|
|
8249
|
+
let n = Qe(e, t);
|
|
8262
8250
|
return {
|
|
8263
8251
|
run: n,
|
|
8264
8252
|
cancel: n.cancel,
|
|
@@ -8267,8 +8255,8 @@ function Dh(e, t = 1e3) {
|
|
|
8267
8255
|
}
|
|
8268
8256
|
//#endregion
|
|
8269
8257
|
//#region components/hooks/useThrottleFn.ts
|
|
8270
|
-
function
|
|
8271
|
-
let r = w(e), i = t(() =>
|
|
8258
|
+
function Ph(e, n = 1e3) {
|
|
8259
|
+
let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
|
|
8272
8260
|
return b(() => {
|
|
8273
8261
|
i.value.cancel();
|
|
8274
8262
|
}), {
|
|
@@ -8279,14 +8267,14 @@ function Oh(e, n = 1e3) {
|
|
|
8279
8267
|
}
|
|
8280
8268
|
//#endregion
|
|
8281
8269
|
//#region components/hooks/useLocalStorage.ts
|
|
8282
|
-
function
|
|
8270
|
+
function Fh(e, t) {
|
|
8283
8271
|
return [w(Y(e, t?.defaultValue)), (n) => {
|
|
8284
8272
|
n === void 0 ? nd(e) : J(e, n, t?.expired || "1 Day");
|
|
8285
8273
|
}];
|
|
8286
8274
|
}
|
|
8287
8275
|
//#endregion
|
|
8288
8276
|
//#region components/hooks/useQuery.ts
|
|
8289
|
-
function
|
|
8277
|
+
function Ih(e, t, n) {
|
|
8290
8278
|
let r = `useQuery-${e}`, i = w(), a = w(), o = w(), s = w(!1), c = w("idle"), l = w(), u = w(0), d = w(0), f = () => {
|
|
8291
8279
|
vd(), clearInterval(o.value), o.value = null;
|
|
8292
8280
|
}, p = async () => {
|
|
@@ -8352,26 +8340,26 @@ function Ah(e, t, n) {
|
|
|
8352
8340
|
}
|
|
8353
8341
|
//#endregion
|
|
8354
8342
|
//#region package.json
|
|
8355
|
-
var
|
|
8356
|
-
async function
|
|
8343
|
+
var Lh = "0.1.55", Rh;
|
|
8344
|
+
async function zh() {
|
|
8357
8345
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8358
8346
|
method: "HEAD",
|
|
8359
8347
|
cache: "no-cache"
|
|
8360
8348
|
});
|
|
8361
8349
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
8362
8350
|
}
|
|
8363
|
-
async function
|
|
8364
|
-
let e = await
|
|
8365
|
-
|
|
8351
|
+
async function Bh() {
|
|
8352
|
+
let e = await zh();
|
|
8353
|
+
Rh !== e && Hu(!0);
|
|
8366
8354
|
}
|
|
8367
|
-
async function
|
|
8368
|
-
|
|
8369
|
-
|
|
8355
|
+
async function Vh() {
|
|
8356
|
+
Rh = await zh(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
8357
|
+
Bh();
|
|
8370
8358
|
}, 60 * 1e3);
|
|
8371
8359
|
}
|
|
8372
8360
|
//#endregion
|
|
8373
8361
|
//#region components/monitor.ts
|
|
8374
|
-
var
|
|
8362
|
+
var Hh = "", Uh, $ = navigator.userAgent.toLocaleUpperCase(), Wh = () => {
|
|
8375
8363
|
let e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, r = /WINDOWS NT 10.[\d]+/, i = /WINDOWS NT 11.[\d]+/, a = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, c = /MAC/;
|
|
8376
8364
|
if (e.test($)) return "Windows XP";
|
|
8377
8365
|
if (t.test($)) return "Windows 7";
|
|
@@ -8395,7 +8383,7 @@ var Ih = "", Lh, $ = navigator.userAgent.toLocaleUpperCase(), Rh = () => {
|
|
|
8395
8383
|
return `MAC ${e ? e[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
8396
8384
|
}
|
|
8397
8385
|
return "Other Platform";
|
|
8398
|
-
},
|
|
8386
|
+
}, Gh = () => {
|
|
8399
8387
|
let e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, r = /CHROME\/[\d.]+/, i = /SAFARI\/[\d.]+/, a = /OPR\/[\d.]+/, o = /SE \d/, s = /UCBROWSER/, c = /ANDROID [\d.]+/;
|
|
8400
8388
|
if (e.test($) && o.test($)) return "SogouIE";
|
|
8401
8389
|
if (o.test($)) return "SogouFast";
|
|
@@ -8424,64 +8412,64 @@ var Ih = "", Lh, $ = navigator.userAgent.toLocaleUpperCase(), Rh = () => {
|
|
|
8424
8412
|
}
|
|
8425
8413
|
return "Others";
|
|
8426
8414
|
};
|
|
8427
|
-
function
|
|
8415
|
+
function Kh(e, t, n, r = !1) {
|
|
8428
8416
|
if (e !== void 0 && (t in e || r)) {
|
|
8429
8417
|
let r = e[t], i = n(r);
|
|
8430
8418
|
typeof i == "function" && (e[t] = i);
|
|
8431
8419
|
}
|
|
8432
8420
|
}
|
|
8433
|
-
function
|
|
8421
|
+
function qh(e, t, n, r = !1) {
|
|
8434
8422
|
e.addEventListener(t, n, r);
|
|
8435
8423
|
}
|
|
8436
|
-
function
|
|
8424
|
+
function Jh() {
|
|
8437
8425
|
if (!("XMLHttpRequest" in window)) return;
|
|
8438
8426
|
let e = XMLHttpRequest.prototype;
|
|
8439
|
-
|
|
8427
|
+
Kh(e, "open", (e) => function(...t) {
|
|
8440
8428
|
this.xhr = {
|
|
8441
8429
|
method: t[0].toUpperCase(),
|
|
8442
8430
|
url: t[1],
|
|
8443
8431
|
startTime: Date.now(),
|
|
8444
8432
|
type: "xhr"
|
|
8445
|
-
},
|
|
8446
|
-
this.xhr.url.indexOf("log/submit") === -1 &&
|
|
8433
|
+
}, qh(this, "error", function() {
|
|
8434
|
+
this.xhr.url.indexOf("log/submit") === -1 && Xh(3, this.xhr.url, `Request-${this.status}`);
|
|
8447
8435
|
}), e.apply(this, t);
|
|
8448
|
-
}),
|
|
8436
|
+
}), Kh(e, "send", (e) => function(...t) {
|
|
8449
8437
|
let { url: n } = this.xhr;
|
|
8450
8438
|
this.ontimeout = function() {
|
|
8451
|
-
|
|
8452
|
-
},
|
|
8453
|
-
(this.status === 500 || this.status === 405) &&
|
|
8439
|
+
Xh(3, n, "Network Timeout");
|
|
8440
|
+
}, qh(this, "loadend", function() {
|
|
8441
|
+
(this.status === 500 || this.status === 405) && Xh(3, n, `${t[0]}-${this.status}-${this.response}`);
|
|
8454
8442
|
}), e.apply(this, t);
|
|
8455
8443
|
});
|
|
8456
8444
|
}
|
|
8457
|
-
function
|
|
8458
|
-
t && (
|
|
8459
|
-
|
|
8445
|
+
function Yh(e, t, n) {
|
|
8446
|
+
t && (Hh = t, Uh = n, Jh(), e.config.errorHandler = (e) => {
|
|
8447
|
+
Xh(2, window.location.href, e.message);
|
|
8460
8448
|
}, window.addEventListener("unhandledrejection", function(e) {
|
|
8461
8449
|
e.preventDefault();
|
|
8462
8450
|
}));
|
|
8463
8451
|
}
|
|
8464
|
-
var
|
|
8465
|
-
let r =
|
|
8452
|
+
var Xh = (e, t, n) => {
|
|
8453
|
+
let r = Uh ? JSON.stringify(Uh()) : "", i = {
|
|
8466
8454
|
type: e,
|
|
8467
8455
|
time: Date.now(),
|
|
8468
8456
|
url: encodeURIComponent(t || location.href),
|
|
8469
|
-
browser:
|
|
8470
|
-
platform:
|
|
8457
|
+
browser: Gh(),
|
|
8458
|
+
platform: Wh(),
|
|
8471
8459
|
message: n,
|
|
8472
8460
|
info: r
|
|
8473
8461
|
}, a = window.btoa(JSON.stringify(i));
|
|
8474
|
-
if (window.navigator.sendBeacon) window.navigator.sendBeacon(
|
|
8462
|
+
if (window.navigator.sendBeacon) window.navigator.sendBeacon(Hh, a);
|
|
8475
8463
|
else {
|
|
8476
8464
|
let e = document.body, t = new Image();
|
|
8477
|
-
t.src =
|
|
8465
|
+
t.src = Hh + "?data=" + a, t.onload = t.onerror = function() {
|
|
8478
8466
|
e.removeChild(t), t = null;
|
|
8479
8467
|
}, e.append(t);
|
|
8480
8468
|
}
|
|
8481
8469
|
};
|
|
8482
8470
|
//#endregion
|
|
8483
8471
|
//#region components/create.ts
|
|
8484
|
-
function
|
|
8472
|
+
function Zh({ components: e = [] } = {}) {
|
|
8485
8473
|
let t = [];
|
|
8486
8474
|
function n(e, t, n) {
|
|
8487
8475
|
e.component(t) || e.component(t, n);
|
|
@@ -8494,16 +8482,16 @@ function Gh({ components: e = [] } = {}) {
|
|
|
8494
8482
|
});
|
|
8495
8483
|
}), i)) {
|
|
8496
8484
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorFn: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = Y("theme", !1), l = Y("lang", s);
|
|
8497
|
-
Uu(e), zu(o), Bu(l), Vu(c), G.global.locale.value = l, a &&
|
|
8485
|
+
Uu(e), zu(o), Bu(l), Vu(c), G.global.locale.value = l, a && Vh(), t && Yh(r, t, n);
|
|
8498
8486
|
}
|
|
8499
8487
|
}
|
|
8500
8488
|
return {
|
|
8501
|
-
version:
|
|
8489
|
+
version: Lh,
|
|
8502
8490
|
install: r
|
|
8503
8491
|
};
|
|
8504
8492
|
}
|
|
8505
8493
|
//#endregion
|
|
8506
8494
|
//#region components/preset.ts
|
|
8507
|
-
var
|
|
8495
|
+
var Qh = Zh({ components: Object.keys(Eh).map((e) => Eh[e]) }), $h = Qh.install;
|
|
8508
8496
|
//#endregion
|
|
8509
|
-
export { mt as AccessPoint, vt as Activity, St as Adjustments, Et as AdjustmentsHorizontal, At as Affiliate, Pt as Alarm, Rt as AlertCircle, Ht as ApiApp, Xt as AppWindow, Kt as Apps, en as Archive, an as ArrowNarrowLeft, ln as AspectRatio, pn as Atom, _n as Atom2, xn as Award, bd as BLOB, Tn as Barcode, kn as Basket, Nn as Bell, Ln as Bluetooth, Vn as Book2, Su as Books, Gn as Box, Yn as BrandAsana, Pu as BrandStackoverflow, $n as Briefcase, rr as Building, sr as BuildingArch, ou as BuildingWarehouse, xd as CUSTOM, hr as Calculator, yr as Calendar, Cr as CalendarPlus, Dr as CalendarStats, jr as Camera, Fr as CaretDown, zr as CaretUp, Ur as ChartArea, qr as ChartBar, Zr as ChartBubble, ti as ChartDonut, ai as ChartLine, li as ChartPie, pi as ChartRadar, Ql as CheckMark, _i as Checkbox, xi as CheckupList, Jl as CircleMinus, Ti as Clipboard, ki as ClipboardCheck, Ni as ClipboardList, Li as ClipboardPlus, Vi as Clock, Gi as Cloud, Yi as CloudDownload, $i as CloudUpload, ra as Command, Eu as Confetti, mu as Container, sa as Copy, dr as Cpu, da as CreditCard, ha as Crosshair, ya as CurrencyYen, vu as Dashboard, Ca as Database, Da as DatabaseExport, ja as DatabaseImport, Fa as DeviceAnalytics, za as DeviceDesktop, Ua as DeviceDesktopAnalytics, qa as DeviceLaptop, Za as DeviceMobile, to as Diamond, ao as Dots, lo as DotsVertical, mo as Edit, vo as Eraser, So as Eye, Sd as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, yd as GET, Ko as GitCompare, Xo as GitPullRequest, es as GridDots, is as Home, Lu as IconList, cs as Id, fs as LayoutSidebarLeftCollapse, gs as LayoutSidebarLeftExpand, bs as Link, ws as List, Os as ListCheck, Ms as ListDetails, Is as Mail, Bs as Map, Ws as MapPin, uu as Menu2, nu as Message2, Au as MinusRound, Js as MoonStars, Z as POST, Qs as Paperclip, nc as Photo, oc as PhotoOff, uc as Plus, mc as Presentation, vc as PresentationAnalytics, Sc as Printer, Ec as Qrcode, Ac as Refresh, Pc as Report, Rc as ReportAnalytics, Hc as ReportMoney, Kc as ReportSearch, Xc as Search, el as Settings, il as SmartHome, cl as Sun, fl as TransferIn, gl as TransferOut, bl as Trash, wl as User, Wl as UserCircle, Ol as UserMinus, Ml as UserPlus, Il as Users, ut as UzActionButton, Gd as UzBack,
|
|
8497
|
+
export { mt as AccessPoint, vt as Activity, St as Adjustments, Et as AdjustmentsHorizontal, At as Affiliate, Pt as Alarm, Rt as AlertCircle, Ht as ApiApp, Xt as AppWindow, Kt as Apps, en as Archive, an as ArrowNarrowLeft, ln as AspectRatio, pn as Atom, _n as Atom2, xn as Award, bd as BLOB, Tn as Barcode, kn as Basket, Nn as Bell, Ln as Bluetooth, Vn as Book2, Su as Books, Gn as Box, Yn as BrandAsana, Pu as BrandStackoverflow, $n as Briefcase, rr as Building, sr as BuildingArch, ou as BuildingWarehouse, xd as CUSTOM, hr as Calculator, yr as Calendar, Cr as CalendarPlus, Dr as CalendarStats, jr as Camera, Fr as CaretDown, zr as CaretUp, Ur as ChartArea, qr as ChartBar, Zr as ChartBubble, ti as ChartDonut, ai as ChartLine, li as ChartPie, pi as ChartRadar, Ql as CheckMark, _i as Checkbox, xi as CheckupList, Jl as CircleMinus, Ti as Clipboard, ki as ClipboardCheck, Ni as ClipboardList, Li as ClipboardPlus, Vi as Clock, Gi as Cloud, Yi as CloudDownload, $i as CloudUpload, ra as Command, Eu as Confetti, mu as Container, sa as Copy, dr as Cpu, da as CreditCard, ha as Crosshair, ya as CurrencyYen, vu as Dashboard, Ca as Database, Da as DatabaseExport, ja as DatabaseImport, Fa as DeviceAnalytics, za as DeviceDesktop, Ua as DeviceDesktopAnalytics, qa as DeviceLaptop, Za as DeviceMobile, to as Diamond, ao as Dots, lo as DotsVertical, mo as Edit, vo as Eraser, So as Eye, Sd as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, yd as GET, Ko as GitCompare, Xo as GitPullRequest, es as GridDots, is as Home, Lu as IconList, cs as Id, fs as LayoutSidebarLeftCollapse, gs as LayoutSidebarLeftExpand, bs as Link, ws as List, Os as ListCheck, Ms as ListDetails, Is as Mail, Bs as Map, Ws as MapPin, uu as Menu2, nu as Message2, Au as MinusRound, Js as MoonStars, Z as POST, Qs as Paperclip, nc as Photo, oc as PhotoOff, uc as Plus, mc as Presentation, vc as PresentationAnalytics, Sc as Printer, Ec as Qrcode, Ac as Refresh, Pc as Report, Rc as ReportAnalytics, Hc as ReportMoney, Kc as ReportSearch, Xc as Search, el as Settings, il as SmartHome, cl as Sun, fl as TransferIn, gl as TransferOut, bl as Trash, wl as User, Wl as UserCircle, Ol as UserMinus, Ml as UserPlus, Il as Users, ut as UzActionButton, Gd as UzBack, ap as UzCamera, Tf as UzCircle, Rf as UzDraggableForm, Nf as UzForm, kf as UzFormItem, Jf as UzFormItemImage, Qf as UzFormItemTimesPicker, Wf as UzFormItemUpload, Iu as UzIcon, Th as UzOcr, dp as UzSearchBar, _p as UzSearchMobileBar, Rp as UzSpin, Jp as UzTable, nm as UzTableChild, hm as UzTableDrawer, Tm as UzTableMobile, cm as UzTableQuestChild, Pm as UzThumbnail, Xm as UzWrap, Bl as X, K as commonStore, Zh as create, Km as darkTheme, Qh as default, Hd as fnActionReduction, Vd as fnActionSimplify, km as fnAddThumbnail, vd as fnCancelFetch, jm as fnClearAllThumbnail, jh as fnComputedScale, Ru as fnCreateRouter, nd as fnDelStorage, id as fnDelStorageAll, rd as fnDelStorageByPrefix, Am as fnDeleteThumbnail, td as fnDialog, q as fnErrorLog, sd as fnFormatTime, dd as fnFormatUnits, ud as fnFullScreen, Y as fnGetStorage, Dp as fnGetTableData, Mh as fnListenerScale, ed as fnNotification, Np as fnOptionReduction, Mp as fnOptionSimplify, od as fnPageModel2Naive, Pp as fnPrepareFormData, Fp as fnPrepareTableData, Pd as fnRenderAction, ad as fnScrollTop, Bu as fnSetLang, Ah as fnSetNormalWidthAndHeight, J as fnSetStorage, Vu as fnSetTheme, Dm as fnSetThumbnail, kp as fnTableReduction, Op as fnTableSimplify, ld as fnThrottle, cd as fnTitle, jp as fnTriggersReduction, Ap as fnTriggersSimplify, G as i18n, $h as install, Gm as lightTheme, W as router, kh as scaleStore, Nh as useDebounceFn, Fh as useLocalStorage, Ih as useQuery, Ph as useThrottleFn };
|