@unizhen/ui 0.1.78 → 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/api.d.ts +3 -0
- package/lib/components/local/en-US.json.d.ts +4 -1
- package/lib/components/local/index.d.ts +6 -0
- package/lib/components/local/zh-CN.json.d.ts +4 -1
- package/lib/components/table/drawer.vue.d.ts +2 -0
- package/lib/components/table/factory.d.ts +1 -0
- package/lib/components/table/file_port.vue.d.ts +13639 -0
- package/lib/components/table/index.d.ts +1 -0
- package/lib/components/table/index.vue.d.ts +3 -0
- package/lib/components/table/interface.d.ts +1 -0
- package/lib/ui.css +1 -1
- package/lib/ui.js +688 -408
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -40,7 +40,7 @@ var ct = Object.defineProperty, lt = (e, t) => {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
setup(e) {
|
|
43
|
-
return () =>
|
|
43
|
+
return () => Nf({
|
|
44
44
|
buttons: e.data,
|
|
45
45
|
rowData: e.rowData,
|
|
46
46
|
hProps: e.hProps
|
|
@@ -2049,7 +2049,10 @@ var K = Ye({
|
|
|
2049
2049
|
scan: "Scan",
|
|
2050
2050
|
download: "Download",
|
|
2051
2051
|
expand: "Expand",
|
|
2052
|
-
contract: "Contract"
|
|
2052
|
+
contract: "Contract",
|
|
2053
|
+
import: "Import",
|
|
2054
|
+
export: "Export",
|
|
2055
|
+
file: "File"
|
|
2053
2056
|
},
|
|
2054
2057
|
Notice: {
|
|
2055
2058
|
success: "Operation Success",
|
|
@@ -2089,7 +2092,10 @@ var K = Ye({
|
|
|
2089
2092
|
scan: "扫一扫",
|
|
2090
2093
|
download: "下载",
|
|
2091
2094
|
expand: "全部展开",
|
|
2092
|
-
contract: "全部收起"
|
|
2095
|
+
contract: "全部收起",
|
|
2096
|
+
import: "导入",
|
|
2097
|
+
export: "导出",
|
|
2098
|
+
file: "文件"
|
|
2093
2099
|
},
|
|
2094
2100
|
Notice: {
|
|
2095
2101
|
success: "操作成功",
|
|
@@ -2202,7 +2208,7 @@ var Xu = "local-", Zu = new class {
|
|
|
2202
2208
|
deleteAll() {
|
|
2203
2209
|
for (let e in this.map) this.delete(e);
|
|
2204
2210
|
}
|
|
2205
|
-
}("
|
|
2211
|
+
}("uz"), Qu = new Intl.Collator("zh-Hans-u-co-pinyin"), $u = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], ed = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: td, dialog: nd } = Be(["notification", "dialog"], {
|
|
2206
2212
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
2207
2213
|
notificationProviderProps: { placement: "bottom-right" }
|
|
2208
2214
|
}), rd = td, id = nd;
|
|
@@ -2415,8 +2421,8 @@ var yd = 500, bd = 300, xd = [], Sd = /* @__PURE__ */ new WeakMap(), Cd = /* @__
|
|
|
2415
2421
|
let t = String(e || "");
|
|
2416
2422
|
if (!t) return "";
|
|
2417
2423
|
try {
|
|
2418
|
-
let e = typeof location > "u" ? void 0 : location.href
|
|
2419
|
-
return
|
|
2424
|
+
let e = typeof location > "u" ? void 0 : location.href;
|
|
2425
|
+
return new URL(t, e).pathname;
|
|
2420
2426
|
} catch {
|
|
2421
2427
|
return t.split(/[?#]/, 1)[0];
|
|
2422
2428
|
}
|
|
@@ -2480,13 +2486,14 @@ var yd = 500, bd = 300, xd = [], Sd = /* @__PURE__ */ new WeakMap(), Cd = /* @__
|
|
|
2480
2486
|
if (!jd) {
|
|
2481
2487
|
jd = !0;
|
|
2482
2488
|
try {
|
|
2483
|
-
|
|
2489
|
+
let a = Rd(i);
|
|
2490
|
+
a && a.indexOf("ResizeObserver loop") === -1 && Hd(e, Ld({
|
|
2484
2491
|
type: n,
|
|
2485
2492
|
time: Date.now(),
|
|
2486
2493
|
url: zd(r) || zd(location.href),
|
|
2487
2494
|
browser: Pd(),
|
|
2488
2495
|
platform: Nd(),
|
|
2489
|
-
message: `[${n}] [${window.document.title}] [${
|
|
2496
|
+
message: `[${n}] [${window.document.title}] [${a}]`,
|
|
2490
2497
|
info: t ? t() : ""
|
|
2491
2498
|
}));
|
|
2492
2499
|
} catch {} finally {
|
|
@@ -2569,7 +2576,7 @@ function tf(e, t, n) {
|
|
|
2569
2576
|
return Sd.set(e, l), e.onUnmount(l), l;
|
|
2570
2577
|
}
|
|
2571
2578
|
var nf = (e, t, n) => {
|
|
2572
|
-
|
|
2579
|
+
Wd(e, t, n);
|
|
2573
2580
|
}, Z = /* @__PURE__ */ new Map(), rf = Object.prototype.hasOwnProperty, af = 300, of = (e) => {
|
|
2574
2581
|
if (e == null) return "";
|
|
2575
2582
|
let t;
|
|
@@ -2614,7 +2621,8 @@ lf.interceptors.request.use((e) => {
|
|
|
2614
2621
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
2615
2622
|
}, (e) => Promise.reject(e)), lf.interceptors.response.use((e) => {
|
|
2616
2623
|
let t = e.data;
|
|
2617
|
-
if (t.code === 401
|
|
2624
|
+
if (t.code === 401) return ad("token"), G.replace("/login"), Promise.reject(!1);
|
|
2625
|
+
if (e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
2618
2626
|
let t = cf(e.headers);
|
|
2619
2627
|
return Promise.resolve({
|
|
2620
2628
|
fileName: decodeURIComponent(t),
|
|
@@ -2686,10 +2694,13 @@ var df = "/apiserver/", ff = () => {
|
|
|
2686
2694
|
calculationIds: e,
|
|
2687
2695
|
linkId: t,
|
|
2688
2696
|
...n
|
|
2689
|
-
}), Tf = (e
|
|
2697
|
+
}), Tf = (e) => mf("excel/template", { tableKey: e }, "arraybuffer"), Ef = (e) => Q("excel/record/query", {
|
|
2698
|
+
recordType: "import",
|
|
2699
|
+
tableKey: e
|
|
2700
|
+
}), Df = (e) => Q("excel/exportData", e), Of = (e, t) => f(Le, { style: { "max-width": "300px" } }, {
|
|
2690
2701
|
trigger: () => e,
|
|
2691
2702
|
default: () => typeof t == "function" ? t() : t
|
|
2692
|
-
}),
|
|
2703
|
+
}), kf = (e, t, n, r) => {
|
|
2693
2704
|
try {
|
|
2694
2705
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
2695
2706
|
n && n();
|
|
@@ -2703,7 +2714,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2703
2714
|
} catch (e) {
|
|
2704
2715
|
J(e);
|
|
2705
2716
|
}
|
|
2706
|
-
},
|
|
2717
|
+
}, Af = (e, t, n, r, i) => {
|
|
2707
2718
|
let a = {
|
|
2708
2719
|
quaternary: i?.quaternary || !1,
|
|
2709
2720
|
size: i?.size || "small",
|
|
@@ -2716,36 +2727,36 @@ var df = "/apiserver/", ff = () => {
|
|
|
2716
2727
|
if (!e.confirmText) {
|
|
2717
2728
|
if (e.onClick && typeof e.onClick == "string") {
|
|
2718
2729
|
let i = e.onClick;
|
|
2719
|
-
a.onClick = () =>
|
|
2730
|
+
a.onClick = () => kf(i, t, n, r);
|
|
2720
2731
|
}
|
|
2721
2732
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
2722
2733
|
}
|
|
2723
2734
|
return e.icon && (o.icon = () => f(V, {}, { default: () => f(Iu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
|
|
2724
|
-
},
|
|
2735
|
+
}, jf = (e, t, n, r, i) => {
|
|
2725
2736
|
let a = { placement: "left" };
|
|
2726
2737
|
if (typeof t.onClick == "string") {
|
|
2727
2738
|
let e = t.onClick;
|
|
2728
|
-
a["on-positive-click"] = () =>
|
|
2739
|
+
a["on-positive-click"] = () => kf(e, n, r, i);
|
|
2729
2740
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
2730
2741
|
return f(Te, a, {
|
|
2731
2742
|
default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
2732
2743
|
trigger: () => e
|
|
2733
2744
|
});
|
|
2734
|
-
},
|
|
2735
|
-
let a =
|
|
2736
|
-
return e.confirmText && (a =
|
|
2737
|
-
},
|
|
2745
|
+
}, Mf = (e, t, n, r, i) => {
|
|
2746
|
+
let a = Af(e, t, n, r, i);
|
|
2747
|
+
return e.confirmText && (a = jf(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = Of(a, e.tooltipText)), a;
|
|
2748
|
+
}, Nf = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
|
|
2738
2749
|
let a = [];
|
|
2739
2750
|
return e.forEach((e) => {
|
|
2740
2751
|
if (e.type === "group") {
|
|
2741
2752
|
let o = [];
|
|
2742
2753
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
2743
|
-
o.push(
|
|
2754
|
+
o.push(Mf({
|
|
2744
2755
|
...a,
|
|
2745
2756
|
tooltipText: void 0
|
|
2746
2757
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
2747
2758
|
}), a.push(f(Ee, { trigger: "click" }, {
|
|
2748
|
-
trigger: () =>
|
|
2759
|
+
trigger: () => Af({
|
|
2749
2760
|
type: "normal",
|
|
2750
2761
|
key: e.key,
|
|
2751
2762
|
icon: e.icon,
|
|
@@ -2761,11 +2772,11 @@ var df = "/apiserver/", ff = () => {
|
|
|
2761
2772
|
}));
|
|
2762
2773
|
}
|
|
2763
2774
|
if (e.type === "normal") {
|
|
2764
|
-
let o =
|
|
2775
|
+
let o = Mf(e, t, n, r, i);
|
|
2765
2776
|
a.push(o);
|
|
2766
2777
|
}
|
|
2767
2778
|
}), f("div", { class: "uz-action-flex" }, { default: () => a });
|
|
2768
|
-
},
|
|
2779
|
+
}, Pf = (e) => {
|
|
2769
2780
|
switch (e) {
|
|
2770
2781
|
case "tertiary": return 1;
|
|
2771
2782
|
case "primary": return 2;
|
|
@@ -2775,7 +2786,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2775
2786
|
case "error": return 6;
|
|
2776
2787
|
default: return 0;
|
|
2777
2788
|
}
|
|
2778
|
-
},
|
|
2789
|
+
}, Ff = (e) => {
|
|
2779
2790
|
switch (e) {
|
|
2780
2791
|
case 1: return "tertiary";
|
|
2781
2792
|
case 2: return "primary";
|
|
@@ -2785,7 +2796,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2785
2796
|
case 6: return "error";
|
|
2786
2797
|
default: return "default";
|
|
2787
2798
|
}
|
|
2788
|
-
},
|
|
2799
|
+
}, If = (e) => {
|
|
2789
2800
|
switch (e) {
|
|
2790
2801
|
case "detailInside": return 0;
|
|
2791
2802
|
case "editInside": return 1;
|
|
@@ -2794,7 +2805,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2794
2805
|
case "enabledInside": return 4;
|
|
2795
2806
|
default: return e;
|
|
2796
2807
|
}
|
|
2797
|
-
},
|
|
2808
|
+
}, Lf = (e) => {
|
|
2798
2809
|
switch (e) {
|
|
2799
2810
|
case 0: return "detailInside";
|
|
2800
2811
|
case 1: return "editInside";
|
|
@@ -2803,66 +2814,66 @@ var df = "/apiserver/", ff = () => {
|
|
|
2803
2814
|
case 4: return "enabledInside";
|
|
2804
2815
|
default: return e;
|
|
2805
2816
|
}
|
|
2806
|
-
},
|
|
2817
|
+
}, Rf = (e) => ({
|
|
2807
2818
|
t: 0,
|
|
2808
2819
|
k: e.key,
|
|
2809
2820
|
d: e?.disabled,
|
|
2810
2821
|
l: e?.loading,
|
|
2811
2822
|
i: e?.icon,
|
|
2812
|
-
c:
|
|
2823
|
+
c: Pf(e?.color),
|
|
2813
2824
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
2814
2825
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
2815
2826
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
2816
2827
|
s: e?.optionsType,
|
|
2817
2828
|
u: e?.optionsSource,
|
|
2818
|
-
a:
|
|
2829
|
+
a: If(e?.action),
|
|
2819
2830
|
r: +!!e.footer,
|
|
2820
2831
|
g: +!!e.main,
|
|
2821
2832
|
h: +!!e.sub,
|
|
2822
2833
|
w: e?.width,
|
|
2823
2834
|
z: e?.onClick
|
|
2824
|
-
}),
|
|
2835
|
+
}), zf = (e) => ({
|
|
2825
2836
|
type: "normal",
|
|
2826
2837
|
key: e.k,
|
|
2827
2838
|
disabled: e?.d,
|
|
2828
2839
|
loading: e?.l,
|
|
2829
2840
|
icon: e?.i,
|
|
2830
|
-
color:
|
|
2841
|
+
color: Ff(e?.c),
|
|
2831
2842
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
2832
2843
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
2833
2844
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
2834
2845
|
optionsType: e?.s,
|
|
2835
2846
|
optionsSource: e?.u,
|
|
2836
|
-
action:
|
|
2847
|
+
action: Lf(e?.a),
|
|
2837
2848
|
footer: !!e.r,
|
|
2838
2849
|
sub: !!e.h,
|
|
2839
2850
|
main: !!e.g,
|
|
2840
2851
|
width: e?.w,
|
|
2841
2852
|
onClick: e?.z
|
|
2842
|
-
}),
|
|
2853
|
+
}), Bf = (e) => {
|
|
2843
2854
|
let t = [];
|
|
2844
|
-
for (let n of e) n.type === "normal" && t.push(
|
|
2855
|
+
for (let n of e) n.type === "normal" && t.push(Rf(n)), n.type === "group" && t.push({
|
|
2845
2856
|
t: 1,
|
|
2846
2857
|
k: n.key,
|
|
2847
2858
|
i: n?.icon,
|
|
2848
|
-
x:
|
|
2859
|
+
x: Pf(n?.color),
|
|
2849
2860
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
2850
|
-
c: n.children.map((e) =>
|
|
2861
|
+
c: n.children.map((e) => Rf(e))
|
|
2851
2862
|
});
|
|
2852
2863
|
return t;
|
|
2853
|
-
},
|
|
2864
|
+
}, Vf = (e) => {
|
|
2854
2865
|
if (e && e[0] && e[0].type) return e;
|
|
2855
2866
|
let t = [];
|
|
2856
|
-
for (let n of e) n.t === 0 && t.push(
|
|
2867
|
+
for (let n of e) n.t === 0 && t.push(zf(n)), n.t === 1 && t.push({
|
|
2857
2868
|
type: "group",
|
|
2858
2869
|
key: n.k,
|
|
2859
2870
|
icon: n?.i,
|
|
2860
|
-
color:
|
|
2871
|
+
color: Ff(n?.x),
|
|
2861
2872
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
2862
|
-
children: n.c.map((e) =>
|
|
2873
|
+
children: n.c.map((e) => zf(e))
|
|
2863
2874
|
});
|
|
2864
2875
|
return t;
|
|
2865
|
-
},
|
|
2876
|
+
}, Hf = d({
|
|
2866
2877
|
name: "UzBack",
|
|
2867
2878
|
components: {
|
|
2868
2879
|
ArrowNarrowLeft: an,
|
|
@@ -2888,7 +2899,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2888
2899
|
});
|
|
2889
2900
|
//#endregion
|
|
2890
2901
|
//#region components/back/index.vue
|
|
2891
|
-
function
|
|
2902
|
+
function Uf(e, t, r, i, o, s) {
|
|
2892
2903
|
let c = D("ArrowNarrowLeft"), u = D("NIcon"), d = D("NButton");
|
|
2893
2904
|
return x(), n(d, {
|
|
2894
2905
|
quaternary: "",
|
|
@@ -2902,7 +2913,7 @@ function Bf(e, t, r, i, o, s) {
|
|
|
2902
2913
|
_: 1
|
|
2903
2914
|
}, 8, ["onClick"]);
|
|
2904
2915
|
}
|
|
2905
|
-
var
|
|
2916
|
+
var Wf = /*#__PURE__*/ W(Hf, [["render", Uf]]), Gf = 120, Kf = 10, qf = Gf / 2, Jf = (Gf - 6 - Kf) / 2, Yf = Jf * 2 * Math.PI, Xf = Jf * 1.5 * Math.PI, Zf = `${Xf} ${Yf}`, Qf = `translate(${qf}, 69)`, $f = `translate(${qf}, 84)`, ep = (e) => {
|
|
2906
2917
|
if (!e) return "";
|
|
2907
2918
|
let t = e.toLowerCase();
|
|
2908
2919
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -2916,7 +2927,7 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2916
2927
|
return e.join(",");
|
|
2917
2928
|
}
|
|
2918
2929
|
return "0,0,0";
|
|
2919
|
-
},
|
|
2930
|
+
}, tp = d({
|
|
2920
2931
|
name: "UzCircle",
|
|
2921
2932
|
props: {
|
|
2922
2933
|
circle: {
|
|
@@ -2942,30 +2953,30 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2942
2953
|
return {
|
|
2943
2954
|
uniqueId: n,
|
|
2944
2955
|
blurFilterId: `uz-blurs-${n}`,
|
|
2945
|
-
backgroundBg: t(() => `rgba(${
|
|
2946
|
-
strokeDasharray:
|
|
2947
|
-
centerTransform:
|
|
2948
|
-
centerTransformUnit:
|
|
2949
|
-
colorA: t(() => `rgba(${
|
|
2956
|
+
backgroundBg: t(() => `rgba(${ep(e.color)},0.1)`),
|
|
2957
|
+
strokeDasharray: Zf,
|
|
2958
|
+
centerTransform: Qf,
|
|
2959
|
+
centerTransformUnit: $f,
|
|
2960
|
+
colorA: t(() => `rgba(${ep(e.color).split(",").map((e) => {
|
|
2950
2961
|
let t = Number(e) - 50;
|
|
2951
2962
|
return t < 0 && (t = 0), t;
|
|
2952
2963
|
})},1)`),
|
|
2953
|
-
colorB: t(() => `rgba(${
|
|
2964
|
+
colorB: t(() => `rgba(${ep(e.color)},1)`),
|
|
2954
2965
|
calculateCircle: () => {
|
|
2955
2966
|
let t = 314 - Number(e.circle) * Math.PI;
|
|
2956
2967
|
return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
|
|
2957
2968
|
},
|
|
2958
2969
|
calculateSemicircle: (t) => {
|
|
2959
2970
|
let n = t ?? Number(e.circle);
|
|
2960
|
-
return n > 100 && (n = 100), n <= 0 && (n = 1e-4),
|
|
2971
|
+
return n > 100 && (n = 100), n <= 0 && (n = 1e-4), Xf * (1 - n / 100);
|
|
2961
2972
|
},
|
|
2962
2973
|
calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
|
|
2963
2974
|
};
|
|
2964
2975
|
}
|
|
2965
|
-
}),
|
|
2976
|
+
}), np = { class: "uz-circle" }, rp = {
|
|
2966
2977
|
key: 0,
|
|
2967
2978
|
viewBox: "40 20 120 120"
|
|
2968
|
-
},
|
|
2979
|
+
}, ip = ["id"], ap = ["stop-color"], op = ["stop-color"], sp = ["id"], cp = ["stroke"], lp = ["filter", "stroke"], up = ["filter", "transform"], dp = {
|
|
2969
2980
|
dx: "100",
|
|
2970
2981
|
dy: "90",
|
|
2971
2982
|
"text-anchor": "middle",
|
|
@@ -2974,7 +2985,7 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2974
2985
|
"font-size": "2rem",
|
|
2975
2986
|
"font-weight": "400"
|
|
2976
2987
|
}
|
|
2977
|
-
},
|
|
2988
|
+
}, fp = {
|
|
2978
2989
|
dx: "100",
|
|
2979
2990
|
dy: "105",
|
|
2980
2991
|
"text-anchor": "middle",
|
|
@@ -2983,20 +2994,20 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2983
2994
|
"font-size": "0.6rem",
|
|
2984
2995
|
"font-weight": "400"
|
|
2985
2996
|
}
|
|
2986
|
-
},
|
|
2997
|
+
}, pp = {
|
|
2987
2998
|
key: 1,
|
|
2988
2999
|
viewBox: "0 0 120 120"
|
|
2989
|
-
},
|
|
3000
|
+
}, mp = ["id"], hp = ["stop-color"], gp = ["stop-color"], _p = ["id"], vp = [
|
|
2990
3001
|
"stroke-dasharray",
|
|
2991
3002
|
"stroke-dashoffset",
|
|
2992
3003
|
"transform"
|
|
2993
|
-
],
|
|
3004
|
+
], yp = ["filter", "stroke"], bp = [
|
|
2994
3005
|
"stroke-dasharray",
|
|
2995
3006
|
"stroke-dashoffset",
|
|
2996
3007
|
"transform"
|
|
2997
|
-
],
|
|
2998
|
-
function
|
|
2999
|
-
return x(), i("div",
|
|
3008
|
+
], xp = ["stroke"], Sp = ["transform"], Cp = ["transform"];
|
|
3009
|
+
function wp(e, t, n, r, o, s) {
|
|
3010
|
+
return x(), i("div", np, [e.mode === 0 ? (x(), i("svg", rp, [
|
|
3000
3011
|
a("defs", null, [a("linearGradient", {
|
|
3001
3012
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3002
3013
|
x1: "1",
|
|
@@ -3006,10 +3017,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3006
3017
|
}, [a("stop", {
|
|
3007
3018
|
offset: "0%",
|
|
3008
3019
|
"stop-color": e.colorA
|
|
3009
|
-
}, null, 8,
|
|
3020
|
+
}, null, 8, ap), a("stop", {
|
|
3010
3021
|
offset: "50%",
|
|
3011
3022
|
"stop-color": e.colorB
|
|
3012
|
-
}, null, 8,
|
|
3023
|
+
}, null, 8, op)], 8, ip), a("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3013
3024
|
a("feOffset", {
|
|
3014
3025
|
result: "offOut",
|
|
3015
3026
|
in: "SourceGraphic",
|
|
@@ -3026,7 +3037,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3026
3037
|
in2: "blurOut",
|
|
3027
3038
|
mode: "normal"
|
|
3028
3039
|
}, null, -1)
|
|
3029
|
-
]], 8,
|
|
3040
|
+
]], 8, sp)]),
|
|
3030
3041
|
a("circle", {
|
|
3031
3042
|
transform: "rotate(-90 100 80)",
|
|
3032
3043
|
cx: "100",
|
|
@@ -3036,7 +3047,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3036
3047
|
"stroke-width": "10",
|
|
3037
3048
|
"stroke-dashoffset": "0",
|
|
3038
3049
|
stroke: e.backgroundBg
|
|
3039
|
-
}, null, 8,
|
|
3050
|
+
}, null, 8, cp),
|
|
3040
3051
|
a("circle", {
|
|
3041
3052
|
class: "uz-circle-round",
|
|
3042
3053
|
filter: `url(#${e.blurFilterId})`,
|
|
@@ -3049,7 +3060,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3049
3060
|
"stroke-width": "10",
|
|
3050
3061
|
style: _(e.calculateCircle()),
|
|
3051
3062
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3052
|
-
}, null, 12,
|
|
3063
|
+
}, null, 12, lp),
|
|
3053
3064
|
a("circle", {
|
|
3054
3065
|
class: "uz-circle-round",
|
|
3055
3066
|
filter: `url(#${e.blurFilterId})`,
|
|
@@ -3059,10 +3070,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3059
3070
|
"stroke-width": "0",
|
|
3060
3071
|
transform: e.calculatePoint(),
|
|
3061
3072
|
fill: "#fff"
|
|
3062
|
-
}, null, 8,
|
|
3063
|
-
a("text",
|
|
3064
|
-
a("text",
|
|
3065
|
-
])) : (x(), i("svg",
|
|
3073
|
+
}, null, 8, up),
|
|
3074
|
+
a("text", dp, A(e.circle), 1),
|
|
3075
|
+
a("text", fp, A(e.circleUnit), 1)
|
|
3076
|
+
])) : (x(), i("svg", pp, [
|
|
3066
3077
|
a("defs", null, [a("linearGradient", {
|
|
3067
3078
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3068
3079
|
x1: "1",
|
|
@@ -3072,10 +3083,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3072
3083
|
}, [a("stop", {
|
|
3073
3084
|
offset: "0%",
|
|
3074
3085
|
"stop-color": e.colorA
|
|
3075
|
-
}, null, 8,
|
|
3086
|
+
}, null, 8, hp), a("stop", {
|
|
3076
3087
|
offset: "50%",
|
|
3077
3088
|
"stop-color": e.colorB
|
|
3078
|
-
}, null, 8,
|
|
3089
|
+
}, null, 8, gp)], 8, mp), a("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3079
3090
|
a("feOffset", {
|
|
3080
3091
|
result: "offOut",
|
|
3081
3092
|
in: "SourceGraphic",
|
|
@@ -3092,7 +3103,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3092
3103
|
in2: "blurOut",
|
|
3093
3104
|
mode: "normal"
|
|
3094
3105
|
}, null, -1)
|
|
3095
|
-
]], 8,
|
|
3106
|
+
]], 8, _p)]),
|
|
3096
3107
|
a("g", {
|
|
3097
3108
|
fill: "none",
|
|
3098
3109
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -3106,7 +3117,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3106
3117
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`,
|
|
3107
3118
|
transform: "rotate(-225)",
|
|
3108
3119
|
class: "uz-semicircle-round"
|
|
3109
|
-
}, null, 8,
|
|
3120
|
+
}, null, 8, yp)], 8, vp),
|
|
3110
3121
|
a("g", {
|
|
3111
3122
|
fill: "none",
|
|
3112
3123
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -3118,7 +3129,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3118
3129
|
r: "52",
|
|
3119
3130
|
stroke: e.backgroundBg,
|
|
3120
3131
|
transform: "rotate(-225)"
|
|
3121
|
-
}, null, 8,
|
|
3132
|
+
}, null, 8, xp)], 8, bp),
|
|
3122
3133
|
a("text", {
|
|
3123
3134
|
fill: "var(--circle-color)",
|
|
3124
3135
|
"text-anchor": "middle",
|
|
@@ -3127,7 +3138,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3127
3138
|
"font-size": "2rem",
|
|
3128
3139
|
"font-weight": "400"
|
|
3129
3140
|
}
|
|
3130
|
-
}, A(e.circle), 9,
|
|
3141
|
+
}, A(e.circle), 9, Sp),
|
|
3131
3142
|
a("text", {
|
|
3132
3143
|
cy: "90",
|
|
3133
3144
|
fill: "var(--circle-unit-color)",
|
|
@@ -3137,10 +3148,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3137
3148
|
"font-size": "0.6rem",
|
|
3138
3149
|
"font-weight": "400"
|
|
3139
3150
|
}
|
|
3140
|
-
}, A(e.circleUnit), 9,
|
|
3151
|
+
}, A(e.circleUnit), 9, Cp)
|
|
3141
3152
|
]))]);
|
|
3142
3153
|
}
|
|
3143
|
-
var
|
|
3154
|
+
var Tp = /*#__PURE__*/ W(tp, [["render", wp]]), Ep = d({
|
|
3144
3155
|
name: "UzFormItem",
|
|
3145
3156
|
components: {
|
|
3146
3157
|
NIcon: V,
|
|
@@ -3271,8 +3282,8 @@ var Sp = /*#__PURE__*/ W(Qf, [["render", xp]]), Cp = d({
|
|
|
3271
3282
|
selectFilter: (e, t) => _d(t.label, e)
|
|
3272
3283
|
};
|
|
3273
3284
|
}
|
|
3274
|
-
}),
|
|
3275
|
-
function
|
|
3285
|
+
}), Dp = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3286
|
+
function Op(t, r, s, u, d, f) {
|
|
3276
3287
|
let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), O = D("NSwitch"), k = D("UzFormItemUpload");
|
|
3277
3288
|
return t.item.input === "input" ? (x(), n(p, {
|
|
3278
3289
|
key: 0,
|
|
@@ -3577,7 +3588,7 @@ function Tp(t, r, s, u, d, f) {
|
|
|
3577
3588
|
value: t.formValue[t.item.key],
|
|
3578
3589
|
disabled: t.checkDisabled()
|
|
3579
3590
|
}, {
|
|
3580
|
-
default: N(() => [a("div",
|
|
3591
|
+
default: N(() => [a("div", Dp, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
|
|
3581
3592
|
key: e.value,
|
|
3582
3593
|
label: e.label,
|
|
3583
3594
|
value: e.value
|
|
@@ -3646,7 +3657,7 @@ function Tp(t, r, s, u, d, f) {
|
|
|
3646
3657
|
"status"
|
|
3647
3658
|
])) : (x(), i(e, { key: 14 }, [], 64));
|
|
3648
3659
|
}
|
|
3649
|
-
var
|
|
3660
|
+
var kp = /*#__PURE__*/ W(Ep, [["render", Op]]), Ap = d({
|
|
3650
3661
|
name: "UzForm",
|
|
3651
3662
|
components: {
|
|
3652
3663
|
NForm: pe,
|
|
@@ -3654,7 +3665,7 @@ var Ep = /*#__PURE__*/ W(Cp, [["render", Tp]]), Dp = d({
|
|
|
3654
3665
|
NDivider: ce,
|
|
3655
3666
|
NButton: L,
|
|
3656
3667
|
NIcon: V,
|
|
3657
|
-
UzFormItem:
|
|
3668
|
+
UzFormItem: kp,
|
|
3658
3669
|
Plus: uc
|
|
3659
3670
|
},
|
|
3660
3671
|
props: {
|
|
@@ -3859,8 +3870,8 @@ var Ep = /*#__PURE__*/ W(Cp, [["render", Tp]]), Dp = d({
|
|
|
3859
3870
|
}
|
|
3860
3871
|
};
|
|
3861
3872
|
}
|
|
3862
|
-
}),
|
|
3863
|
-
function
|
|
3873
|
+
}), jp = ["onClick"];
|
|
3874
|
+
function Mp(t, o, s, u, d, f) {
|
|
3864
3875
|
let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = O("media");
|
|
3865
3876
|
return x(), i(e, null, [l(C, {
|
|
3866
3877
|
ref: "formRef",
|
|
@@ -3888,7 +3899,7 @@ function kp(t, o, s, u, d, f) {
|
|
|
3888
3899
|
}, [l(m, null, {
|
|
3889
3900
|
default: N(() => [l(p)]),
|
|
3890
3901
|
_: 1
|
|
3891
|
-
}), o[0] ||= c(" 新增 ", -1)], 8,
|
|
3902
|
+
}), o[0] ||= c(" 新增 ", -1)], 8, jp)) : r("", !0),
|
|
3892
3903
|
s.form.showDays ? (x(), i("span", {
|
|
3893
3904
|
key: 1,
|
|
3894
3905
|
class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -3949,7 +3960,7 @@ function kp(t, o, s, u, d, f) {
|
|
|
3949
3960
|
onOnSubmit: t.refreshOption
|
|
3950
3961
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
3951
3962
|
}
|
|
3952
|
-
var
|
|
3963
|
+
var Np = /*#__PURE__*/ W(Ap, [["render", Mp]]), Pp = d({
|
|
3953
3964
|
name: "UzDraggableForm",
|
|
3954
3965
|
components: {
|
|
3955
3966
|
NForm: pe,
|
|
@@ -3957,7 +3968,7 @@ var Ap = /*#__PURE__*/ W(Dp, [["render", kp]]), jp = d({
|
|
|
3957
3968
|
NButton: L,
|
|
3958
3969
|
NIcon: V,
|
|
3959
3970
|
NDivider: ce,
|
|
3960
|
-
UzFormItem:
|
|
3971
|
+
UzFormItem: kp,
|
|
3961
3972
|
Trash: bl,
|
|
3962
3973
|
Plus: uc,
|
|
3963
3974
|
VueDraggable: tt
|
|
@@ -4056,14 +4067,14 @@ var Ap = /*#__PURE__*/ W(Dp, [["render", kp]]), jp = d({
|
|
|
4056
4067
|
}
|
|
4057
4068
|
};
|
|
4058
4069
|
}
|
|
4059
|
-
}),
|
|
4070
|
+
}), Fp = {
|
|
4060
4071
|
key: 0,
|
|
4061
4072
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
4062
|
-
},
|
|
4073
|
+
}, Ip = {
|
|
4063
4074
|
key: 1,
|
|
4064
4075
|
class: "uz-form-item-add"
|
|
4065
4076
|
};
|
|
4066
|
-
function
|
|
4077
|
+
function Lp(t, o, s, u, d, f) {
|
|
4067
4078
|
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");
|
|
4068
4079
|
return x(), n(E, {
|
|
4069
4080
|
ref: "formRef",
|
|
@@ -4101,11 +4112,11 @@ function Pp(t, o, s, u, d, f) {
|
|
|
4101
4112
|
}, {
|
|
4102
4113
|
label: N(() => [
|
|
4103
4114
|
a("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
4104
|
-
s.source && s.form.createButton ? (x(), i("a",
|
|
4115
|
+
s.source && s.form.createButton ? (x(), i("a", Fp, [l(m, null, {
|
|
4105
4116
|
default: N(() => [l(p)]),
|
|
4106
4117
|
_: 1
|
|
4107
4118
|
}), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
|
|
4108
|
-
s.form.showDays ? (x(), i("span",
|
|
4119
|
+
s.form.showDays ? (x(), i("span", Ip, " showDays ")) : r("", !0)
|
|
4109
4120
|
]),
|
|
4110
4121
|
default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
|
|
4111
4122
|
key: 0,
|
|
@@ -4232,7 +4243,7 @@ function Pp(t, o, s, u, d, f) {
|
|
|
4232
4243
|
"onClick"
|
|
4233
4244
|
]);
|
|
4234
4245
|
}
|
|
4235
|
-
var
|
|
4246
|
+
var Rp = /*#__PURE__*/ W(Pp, [["render", Lp]]), zp = d({
|
|
4236
4247
|
name: "UzFormItemUpload",
|
|
4237
4248
|
components: {
|
|
4238
4249
|
NUpload: Re,
|
|
@@ -4348,8 +4359,8 @@ var Fp = /*#__PURE__*/ W(jp, [["render", Pp]]), Ip = d({
|
|
|
4348
4359
|
}
|
|
4349
4360
|
};
|
|
4350
4361
|
}
|
|
4351
|
-
}),
|
|
4352
|
-
function
|
|
4362
|
+
}), Bp = { class: "uz-form-upload-item-inner" }, Vp = ["title"], Hp = { key: 0 };
|
|
4363
|
+
function Up(t, o, s, u, d, f) {
|
|
4353
4364
|
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");
|
|
4354
4365
|
return x(), n(E, {
|
|
4355
4366
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -4403,10 +4414,10 @@ function Bp(t, o, s, u, d, f) {
|
|
|
4403
4414
|
}, {
|
|
4404
4415
|
default: N(() => [l(y)]),
|
|
4405
4416
|
_: 1
|
|
4406
|
-
}, 8, ["onClick"])), a("div",
|
|
4417
|
+
}, 8, ["onClick"])), a("div", Bp, [a("div", {
|
|
4407
4418
|
class: "uz-form-upload-title uz-truncate",
|
|
4408
4419
|
title: e.name
|
|
4409
|
-
}, A(e.name), 9,
|
|
4420
|
+
}, A(e.name), 9, Vp), t.status === 2 ? r("", !0) : (x(), i("div", Hp, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
4410
4421
|
trigger: N(() => [l(S, {
|
|
4411
4422
|
size: "small",
|
|
4412
4423
|
tertiary: ""
|
|
@@ -4435,7 +4446,7 @@ function Bp(t, o, s, u, d, f) {
|
|
|
4435
4446
|
_: 1
|
|
4436
4447
|
}, 8, ["show"]);
|
|
4437
4448
|
}
|
|
4438
|
-
var
|
|
4449
|
+
var Wp = /*#__PURE__*/ W(zp, [["render", Up], ["__scopeId", "data-v-2daf6715"]]), Gp = d({
|
|
4439
4450
|
name: "UzFormItemImage",
|
|
4440
4451
|
components: {
|
|
4441
4452
|
NImageGroup: ve,
|
|
@@ -4481,11 +4492,11 @@ var Vp = /*#__PURE__*/ W(Ip, [["render", Bp], ["__scopeId", "data-v-2daf6715"]])
|
|
|
4481
4492
|
}
|
|
4482
4493
|
};
|
|
4483
4494
|
}
|
|
4484
|
-
}),
|
|
4485
|
-
function
|
|
4495
|
+
}), Kp = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
4496
|
+
function qp(t, r, o, s, u, d) {
|
|
4486
4497
|
let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
|
|
4487
4498
|
return x(), n(_, null, {
|
|
4488
|
-
default: N(() => [a("div",
|
|
4499
|
+
default: N(() => [a("div", Kp, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
|
|
4489
4500
|
key: 0,
|
|
4490
4501
|
width: "40",
|
|
4491
4502
|
src: r
|
|
@@ -4517,7 +4528,7 @@ function Wp(t, r, o, s, u, d) {
|
|
|
4517
4528
|
_: 1
|
|
4518
4529
|
});
|
|
4519
4530
|
}
|
|
4520
|
-
var
|
|
4531
|
+
var Jp = /*#__PURE__*/ W(Gp, [["render", qp]]), Yp = d({
|
|
4521
4532
|
name: "UzFormItemTimesPicker",
|
|
4522
4533
|
components: { NSelect: ke },
|
|
4523
4534
|
props: {
|
|
@@ -4567,10 +4578,10 @@ var Gp = /*#__PURE__*/ W(Hp, [["render", Wp]]), Kp = d({
|
|
|
4567
4578
|
}
|
|
4568
4579
|
};
|
|
4569
4580
|
}
|
|
4570
|
-
}),
|
|
4571
|
-
function
|
|
4581
|
+
}), Xp = { class: "times-picker" };
|
|
4582
|
+
function Zp(e, t, n, r, a, o) {
|
|
4572
4583
|
let s = D("NSelect");
|
|
4573
|
-
return x(), i("div",
|
|
4584
|
+
return x(), i("div", Xp, [
|
|
4574
4585
|
l(s, {
|
|
4575
4586
|
value: e.h,
|
|
4576
4587
|
options: e.times,
|
|
@@ -4618,7 +4629,7 @@ function Jp(e, t, n, r, a, o) {
|
|
|
4618
4629
|
])
|
|
4619
4630
|
]);
|
|
4620
4631
|
}
|
|
4621
|
-
var
|
|
4632
|
+
var Qp = /*#__PURE__*/ W(Yp, [["render", Zp], ["__scopeId", "data-v-12b4d7e3"]]), $p = d({
|
|
4622
4633
|
name: "UzCamera",
|
|
4623
4634
|
components: {
|
|
4624
4635
|
NButton: L,
|
|
@@ -4710,11 +4721,11 @@ var Yp = /*#__PURE__*/ W(Kp, [["render", Jp], ["__scopeId", "data-v-12b4d7e3"]])
|
|
|
4710
4721
|
closeAll: d
|
|
4711
4722
|
};
|
|
4712
4723
|
}
|
|
4713
|
-
}),
|
|
4724
|
+
}), em = ["width", "height"], tm = ["width", "height"], nm = { class: "uz-scan-video" }, rm = {
|
|
4714
4725
|
ref: "videoRef",
|
|
4715
4726
|
playsInline: ""
|
|
4716
4727
|
};
|
|
4717
|
-
function
|
|
4728
|
+
function im(t, o, s, l, u, d) {
|
|
4718
4729
|
let f = D("NButton"), p = D("NModal");
|
|
4719
4730
|
return x(), i(e, null, [
|
|
4720
4731
|
t.mode === "button" ? (x(), n(f, {
|
|
@@ -4746,7 +4757,7 @@ function tm(t, o, s, l, u, d) {
|
|
|
4746
4757
|
id: "uz-scan-canvas",
|
|
4747
4758
|
width: t.width,
|
|
4748
4759
|
height: t.height
|
|
4749
|
-
}, null, 8,
|
|
4760
|
+
}, null, 8, em)], 4)]),
|
|
4750
4761
|
_: 1
|
|
4751
4762
|
}, 8, [
|
|
4752
4763
|
"show",
|
|
@@ -4764,11 +4775,11 @@ function tm(t, o, s, l, u, d) {
|
|
|
4764
4775
|
id: "uz-scan-canvas",
|
|
4765
4776
|
width: t.width,
|
|
4766
4777
|
height: t.height
|
|
4767
|
-
}, null, 8,
|
|
4768
|
-
a("div",
|
|
4778
|
+
}, null, 8, tm)], 4)) : r("", !0),
|
|
4779
|
+
a("div", nm, [a("video", rm, null, 512)])
|
|
4769
4780
|
], 64);
|
|
4770
4781
|
}
|
|
4771
|
-
var
|
|
4782
|
+
var am = /*#__PURE__*/ W($p, [["render", im]]), om = /* @__PURE__ */ new WeakMap(), sm = d({
|
|
4772
4783
|
name: "UzSearchBar",
|
|
4773
4784
|
components: {
|
|
4774
4785
|
NIcon: V,
|
|
@@ -4779,7 +4790,7 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
|
|
|
4779
4790
|
NInputGroup: be,
|
|
4780
4791
|
NInputGroupLabel: xe,
|
|
4781
4792
|
NPopover: Ee,
|
|
4782
|
-
UzFormItem:
|
|
4793
|
+
UzFormItem: kp,
|
|
4783
4794
|
CaretDown: Fr,
|
|
4784
4795
|
Refresh: Ac,
|
|
4785
4796
|
Search: Xc,
|
|
@@ -4821,10 +4832,10 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
|
|
|
4821
4832
|
e.offsetWidth > 1100 ? (t.instance.gridSpan = 1, t.instance.more = t.instance.moreCache, t.instance.offset = t.instance.offsetCache) : e.offsetWidth <= 1100 && e.offsetWidth > 550 ? (t.instance.gridSpan = 2, t.instance.more = t.instance.moreIndex > 2, t.instance.offset = t.instance.moreIndex === 1 ? 1 : -1) : (t.instance.gridSpan = 4, t.instance.more = t.instance.moreIndex > 1, t.instance.offset = -1);
|
|
4822
4833
|
}
|
|
4823
4834
|
});
|
|
4824
|
-
n.observe(e),
|
|
4835
|
+
n.observe(e), om.set(e, n);
|
|
4825
4836
|
},
|
|
4826
4837
|
unmounted: (e) => {
|
|
4827
|
-
|
|
4838
|
+
om.get(e)?.disconnect(), om.delete(e);
|
|
4828
4839
|
}
|
|
4829
4840
|
} },
|
|
4830
4841
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -4939,19 +4950,19 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
|
|
|
4939
4950
|
tabButtonType: b
|
|
4940
4951
|
};
|
|
4941
4952
|
}
|
|
4942
|
-
}),
|
|
4953
|
+
}), cm = {
|
|
4943
4954
|
key: 0,
|
|
4944
4955
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
|
|
4945
|
-
},
|
|
4956
|
+
}, lm = { class: "uz-flex-1" }, um = {
|
|
4946
4957
|
key: 1,
|
|
4947
4958
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
4948
4959
|
};
|
|
4949
|
-
function
|
|
4960
|
+
function dm(t, a, o, s, u, d) {
|
|
4950
4961
|
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"), k = D("Refresh"), ee = O("media");
|
|
4951
4962
|
return x(), i("div", {
|
|
4952
4963
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
4953
4964
|
onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
|
|
4954
|
-
}, [t.enableHeader ? (x(), i("div",
|
|
4965
|
+
}, [t.enableHeader ? (x(), i("div", cm, [E(t.$slots, "header"), P((x(), i("div", lm, [l(b, {
|
|
4955
4966
|
"x-gap": "8",
|
|
4956
4967
|
"y-gap": "8",
|
|
4957
4968
|
cols: t.cols,
|
|
@@ -5008,7 +5019,7 @@ function cm(t, a, o, s, u, d) {
|
|
|
5008
5019
|
}, 1032, ["span"]))), 128))
|
|
5009
5020
|
]),
|
|
5010
5021
|
_: 1
|
|
5011
|
-
}, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div",
|
|
5022
|
+
}, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div", um, [
|
|
5012
5023
|
t.more ? (x(), n(f, {
|
|
5013
5024
|
key: 0,
|
|
5014
5025
|
quaternary: "",
|
|
@@ -5020,39 +5031,46 @@ function cm(t, a, o, s, u, d) {
|
|
|
5020
5031
|
}, 8, ["class"])]),
|
|
5021
5032
|
_: 1
|
|
5022
5033
|
}, 8, ["onClick"])) : r("", !0),
|
|
5023
|
-
t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(
|
|
5034
|
+
t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(_, {
|
|
5024
5035
|
key: 1,
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5036
|
+
trigger: "hover",
|
|
5037
|
+
placement: "bottom",
|
|
5038
|
+
"show-arrow": !1,
|
|
5039
|
+
style: { padding: "0" }
|
|
5028
5040
|
}, {
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5041
|
+
trigger: N(() => [l(f, {
|
|
5042
|
+
loading: t.loading,
|
|
5043
|
+
secondary: "",
|
|
5044
|
+
onClick: a[0] ||= (e) => t.doSearch(!1)
|
|
5032
5045
|
}, {
|
|
5033
|
-
|
|
5046
|
+
icon: N(() => [l(C, {
|
|
5047
|
+
size: "18",
|
|
5048
|
+
color: "#0086ff"
|
|
5049
|
+
}, {
|
|
5050
|
+
default: N(() => [l(w)]),
|
|
5051
|
+
_: 1
|
|
5052
|
+
})]),
|
|
5053
|
+
default: N(() => [c(" " + A(t.$t("Common.search")), 1)]),
|
|
5034
5054
|
_: 1
|
|
5035
|
-
})]),
|
|
5036
|
-
default: N(() => [
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
default: N(() => [l(k)]),
|
|
5055
|
+
}, 8, ["loading"])]),
|
|
5056
|
+
default: N(() => [l(f, {
|
|
5057
|
+
loading: t.loading,
|
|
5058
|
+
secondary: "",
|
|
5059
|
+
onClick: t.clearAll
|
|
5060
|
+
}, {
|
|
5061
|
+
icon: N(() => [l(C, null, {
|
|
5062
|
+
default: N(() => [l(k)]),
|
|
5063
|
+
_: 1
|
|
5064
|
+
})]),
|
|
5065
|
+
default: N(() => [c(" " + A(t.$t("Common.reset")), 1)]),
|
|
5047
5066
|
_: 1
|
|
5048
|
-
})]),
|
|
5049
|
-
default: N(() => [c(" " + A(t.$t("Common.reset")), 1)]),
|
|
5067
|
+
}, 8, ["loading", "onClick"])]),
|
|
5050
5068
|
_: 1
|
|
5051
|
-
}
|
|
5069
|
+
})) : r("", !0),
|
|
5052
5070
|
E(t.$slots, "action")
|
|
5053
5071
|
])) : r("", !0)], 32);
|
|
5054
5072
|
}
|
|
5055
|
-
var
|
|
5073
|
+
var fm = /*#__PURE__*/ W(sm, [["render", dm]]), pm = d({
|
|
5056
5074
|
name: "UzSearchMobileBar",
|
|
5057
5075
|
components: {
|
|
5058
5076
|
NIcon: V,
|
|
@@ -5065,7 +5083,7 @@ var lm = /*#__PURE__*/ W(im, [["render", cm]]), um = d({
|
|
|
5065
5083
|
NInputGroupLabel: xe,
|
|
5066
5084
|
Refresh: Ac,
|
|
5067
5085
|
Search: Xc,
|
|
5068
|
-
UzFormItem:
|
|
5086
|
+
UzFormItem: kp
|
|
5069
5087
|
},
|
|
5070
5088
|
props: {
|
|
5071
5089
|
data: {
|
|
@@ -5143,10 +5161,10 @@ var lm = /*#__PURE__*/ W(im, [["render", cm]]), um = d({
|
|
|
5143
5161
|
clearAll: l
|
|
5144
5162
|
};
|
|
5145
5163
|
}
|
|
5146
|
-
}),
|
|
5147
|
-
function
|
|
5164
|
+
}), mm = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, hm = { class: "uz-flex uz-gap-2" }, gm = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
5165
|
+
function _m(t, o, s, u, d, f) {
|
|
5148
5166
|
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");
|
|
5149
|
-
return x(), i(e, null, [a("div",
|
|
5167
|
+
return x(), i(e, null, [a("div", mm, [E(t.$slots, "header"), a("div", hm, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
|
|
5150
5168
|
key: 0,
|
|
5151
5169
|
secondary: "",
|
|
5152
5170
|
onClick: o[0] ||= (e) => t.drawer = !0
|
|
@@ -5171,7 +5189,7 @@ function mm(t, o, s, u, d, f) {
|
|
|
5171
5189
|
title: "查询",
|
|
5172
5190
|
closable: ""
|
|
5173
5191
|
}, {
|
|
5174
|
-
footer: N(() => [a("div",
|
|
5192
|
+
footer: N(() => [a("div", gm, [l(h, {
|
|
5175
5193
|
secondary: "",
|
|
5176
5194
|
loading: t.loading,
|
|
5177
5195
|
onClick: t.clearAll,
|
|
@@ -5226,10 +5244,10 @@ function mm(t, o, s, u, d, f) {
|
|
|
5226
5244
|
_: 1
|
|
5227
5245
|
}, 8, ["show"])], 64);
|
|
5228
5246
|
}
|
|
5229
|
-
var
|
|
5247
|
+
var vm = /*#__PURE__*/ W(pm, [["render", _m]]);
|
|
5230
5248
|
//#endregion
|
|
5231
5249
|
//#region components/hooks/useDebounceFn.ts
|
|
5232
|
-
function
|
|
5250
|
+
function ym(e, t = 1e3) {
|
|
5233
5251
|
let n = Qe(e, t);
|
|
5234
5252
|
return {
|
|
5235
5253
|
run: n,
|
|
@@ -5239,7 +5257,7 @@ function gm(e, t = 1e3) {
|
|
|
5239
5257
|
}
|
|
5240
5258
|
//#endregion
|
|
5241
5259
|
//#region components/table/factory.ts
|
|
5242
|
-
var
|
|
5260
|
+
var bm = /(?<=\[)(.+?)(?=\])/g, xm = {
|
|
5243
5261
|
index: 1,
|
|
5244
5262
|
selection: 0,
|
|
5245
5263
|
pagination: 1,
|
|
@@ -5249,16 +5267,17 @@ var _m = /(?<=\[)(.+?)(?=\])/g, vm = {
|
|
|
5249
5267
|
addButton: 1,
|
|
5250
5268
|
filterButton: 1,
|
|
5251
5269
|
commonTime: 1,
|
|
5270
|
+
filePort: 0,
|
|
5252
5271
|
actionWidth: 300,
|
|
5253
5272
|
drawerWidth: "70%",
|
|
5254
5273
|
drawerHeight: "96vh",
|
|
5255
5274
|
placement: "right",
|
|
5256
5275
|
summary: ""
|
|
5257
5276
|
};
|
|
5258
|
-
function
|
|
5277
|
+
function Sm(e) {
|
|
5259
5278
|
return Function("return " + e)();
|
|
5260
5279
|
}
|
|
5261
|
-
var
|
|
5280
|
+
var Cm = () => new Promise((e) => {
|
|
5262
5281
|
let t = window.localStorage.getItem("city");
|
|
5263
5282
|
if (t) e(JSON.parse(t));
|
|
5264
5283
|
else {
|
|
@@ -5271,9 +5290,9 @@ var bm = () => new Promise((e) => {
|
|
|
5271
5290
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
5272
5291
|
}, 500);
|
|
5273
5292
|
}
|
|
5274
|
-
}),
|
|
5293
|
+
}), wm = async (e, t, n) => {
|
|
5275
5294
|
if (t && typeof t == "string") {
|
|
5276
|
-
let r = t.match(
|
|
5295
|
+
let r = t.match(bm);
|
|
5277
5296
|
if (r && t.indexOf("return") === -1) {
|
|
5278
5297
|
let t = r[0].split(":");
|
|
5279
5298
|
if (t[0] === "date") return (t) => ud(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
@@ -5293,7 +5312,7 @@ var bm = () => new Promise((e) => {
|
|
|
5293
5312
|
}
|
|
5294
5313
|
}
|
|
5295
5314
|
return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
|
|
5296
|
-
},
|
|
5315
|
+
}, Tm = (e, t, n) => {
|
|
5297
5316
|
let r = t.map((t) => {
|
|
5298
5317
|
let r = [], i = t.id;
|
|
5299
5318
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -5306,37 +5325,37 @@ var bm = () => new Promise((e) => {
|
|
|
5306
5325
|
};
|
|
5307
5326
|
});
|
|
5308
5327
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5309
|
-
},
|
|
5310
|
-
function
|
|
5311
|
-
|
|
5328
|
+
}, Em = /* @__PURE__ */ new Map();
|
|
5329
|
+
function Dm() {
|
|
5330
|
+
Em.clear();
|
|
5312
5331
|
}
|
|
5313
|
-
async function
|
|
5332
|
+
async function Om(e, t = !1) {
|
|
5314
5333
|
let n = e.split("."), r = !1;
|
|
5315
|
-
return n.length > 1 && (
|
|
5334
|
+
return n.length > 1 && (Em.has(n[0]) && !t ? r = U(Em.get(n[0])) : (r = await yf({ tableId: n[0] }), Em.set(n[0], r))), {
|
|
5316
5335
|
sourceData: r,
|
|
5317
5336
|
n
|
|
5318
5337
|
};
|
|
5319
5338
|
}
|
|
5320
|
-
async function
|
|
5339
|
+
async function km(e) {
|
|
5321
5340
|
return new Promise((t, n) => {
|
|
5322
5341
|
let r = X(`dynamicTable_${e}`, !1);
|
|
5323
|
-
r &&
|
|
5342
|
+
r && Em.has(`dynamicTable_${e}`) ? t(r) : vf(e).then((i) => {
|
|
5324
5343
|
!r || r && r.createTime !== i.createTime ? _f(e).then((n) => {
|
|
5325
5344
|
let r = {
|
|
5326
5345
|
createTime: n.createTime,
|
|
5327
5346
|
tableTitle: n.tableTitle,
|
|
5328
5347
|
viewJson: n.viewJson
|
|
5329
5348
|
};
|
|
5330
|
-
Y(`dynamicTable_${e}`, r, 0),
|
|
5349
|
+
Y(`dynamicTable_${e}`, r, 0), Em.set(`dynamicTable_${e}`, !0), od("tables_"), t(n);
|
|
5331
5350
|
}).catch(() => {
|
|
5332
5351
|
n();
|
|
5333
|
-
}) : (
|
|
5352
|
+
}) : (Em.set(`dynamicTable_${e}`, !0), t(r));
|
|
5334
5353
|
}).catch(() => {
|
|
5335
5354
|
n();
|
|
5336
5355
|
});
|
|
5337
5356
|
});
|
|
5338
5357
|
}
|
|
5339
|
-
var
|
|
5358
|
+
var Am = (e) => e.map((e) => {
|
|
5340
5359
|
let t = {};
|
|
5341
5360
|
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.x = +!!e.params.expandable, 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)), {
|
|
5342
5361
|
i: e.input,
|
|
@@ -5409,7 +5428,7 @@ var Dm = (e) => e.map((e) => {
|
|
|
5409
5428
|
p: { s: +!!e.form.expand.show }
|
|
5410
5429
|
}
|
|
5411
5430
|
};
|
|
5412
|
-
}),
|
|
5431
|
+
}), jm = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5413
5432
|
let t = {};
|
|
5414
5433
|
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), t.expandable = !!e.p.x, 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)), {
|
|
5415
5434
|
input: e.i,
|
|
@@ -5482,11 +5501,11 @@ var Dm = (e) => e.map((e) => {
|
|
|
5482
5501
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
5483
5502
|
}
|
|
5484
5503
|
};
|
|
5485
|
-
}),
|
|
5504
|
+
}), Mm = (e) => ({
|
|
5486
5505
|
f: e.fetch,
|
|
5487
5506
|
o: e.when_drawer_open,
|
|
5488
5507
|
b: e.when_before_save
|
|
5489
|
-
}),
|
|
5508
|
+
}), Nm = (e) => e ? e.fetch ? e : {
|
|
5490
5509
|
fetch: e.f,
|
|
5491
5510
|
when_drawer_open: e.o,
|
|
5492
5511
|
when_before_save: e.b
|
|
@@ -5494,7 +5513,7 @@ var Dm = (e) => e.map((e) => {
|
|
|
5494
5513
|
fetch: null,
|
|
5495
5514
|
when_drawer_open: "",
|
|
5496
5515
|
when_before_save: ""
|
|
5497
|
-
},
|
|
5516
|
+
}, Pm = (e) => ({
|
|
5498
5517
|
i: e.index,
|
|
5499
5518
|
s: e.selection,
|
|
5500
5519
|
p: e.pagination,
|
|
@@ -5503,14 +5522,15 @@ var Dm = (e) => e.map((e) => {
|
|
|
5503
5522
|
a: e.addButton,
|
|
5504
5523
|
f: e.filterButton,
|
|
5505
5524
|
o: e.commonTime,
|
|
5525
|
+
e: e.filePort,
|
|
5506
5526
|
t: e.actionWidth,
|
|
5507
5527
|
w: e.drawerWidth,
|
|
5508
5528
|
h: e.drawerHeight,
|
|
5509
5529
|
l: e.placement,
|
|
5510
5530
|
r: e.summary
|
|
5511
|
-
}),
|
|
5531
|
+
}), Fm = (e) => {
|
|
5512
5532
|
let t = {};
|
|
5513
|
-
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 : {
|
|
5533
|
+
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.filePort !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
5514
5534
|
index: e.i,
|
|
5515
5535
|
selection: e.s,
|
|
5516
5536
|
pagination: e.p,
|
|
@@ -5519,14 +5539,15 @@ var Dm = (e) => e.map((e) => {
|
|
|
5519
5539
|
addButton: e.a,
|
|
5520
5540
|
filterButton: e.f,
|
|
5521
5541
|
commonTime: e.o,
|
|
5542
|
+
filePort: e.e,
|
|
5522
5543
|
actionWidth: e.t,
|
|
5523
5544
|
drawerWidth: e.w,
|
|
5524
5545
|
drawerHeight: e.h,
|
|
5525
5546
|
placement: e.l,
|
|
5526
5547
|
summary: e.r
|
|
5527
|
-
}), Object.assign({},
|
|
5548
|
+
}), Object.assign({}, xm, U(t));
|
|
5528
5549
|
};
|
|
5529
|
-
function
|
|
5550
|
+
function Im(e, t, n, r) {
|
|
5530
5551
|
return new Promise(async (i, a) => {
|
|
5531
5552
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
5532
5553
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -5561,17 +5582,17 @@ function Nm(e, t, n, r) {
|
|
|
5561
5582
|
disabled: !0
|
|
5562
5583
|
}];
|
|
5563
5584
|
if (e.params.immediately || r) {
|
|
5564
|
-
let { sourceData: t, n: r } = await
|
|
5585
|
+
let { sourceData: t, n: r } = await Om(e.source);
|
|
5565
5586
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5566
5587
|
let r = e.sourceFn;
|
|
5567
5588
|
n = Function("sourceData", r)(t);
|
|
5568
|
-
} else n =
|
|
5589
|
+
} else n = Tm(e, t, r);
|
|
5569
5590
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5570
|
-
let { sourceData: t, n } = await
|
|
5591
|
+
let { sourceData: t, n } = await Om(e.source);
|
|
5571
5592
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5572
5593
|
let n = e.sourceFn;
|
|
5573
5594
|
return Function("sourceData", n)(t);
|
|
5574
|
-
} else return
|
|
5595
|
+
} else return Tm(e, t, n);
|
|
5575
5596
|
};
|
|
5576
5597
|
if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
|
|
5577
5598
|
let i = n.find((n) => n.value === t[e.key]);
|
|
@@ -5602,27 +5623,27 @@ function Nm(e, t, n, r) {
|
|
|
5602
5623
|
J(e);
|
|
5603
5624
|
}
|
|
5604
5625
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
5605
|
-
let t = await
|
|
5626
|
+
let t = await Cm();
|
|
5606
5627
|
e.params.options = t;
|
|
5607
5628
|
}
|
|
5608
5629
|
if (e.input === "subTable" && e.params.link) {
|
|
5609
|
-
let t = await
|
|
5630
|
+
let t = await km(e.params.link).catch(() => {
|
|
5610
5631
|
a();
|
|
5611
5632
|
});
|
|
5612
5633
|
if (t) try {
|
|
5613
5634
|
let n = nt.parse(t.viewJson);
|
|
5614
|
-
n.suffix && (e._suffix =
|
|
5615
|
-
let r =
|
|
5635
|
+
n.suffix && (e._suffix = Vf(n.suffix));
|
|
5636
|
+
let r = jm(n.table);
|
|
5616
5637
|
r.forEach((e) => {
|
|
5617
5638
|
e.table.sorter = !1;
|
|
5618
5639
|
});
|
|
5619
5640
|
let i = r.filter((e) => e.input === "subTable");
|
|
5620
5641
|
if (i) for await (let e of i) {
|
|
5621
|
-
let t = await
|
|
5642
|
+
let t = await km(e.params.link).catch(() => {
|
|
5622
5643
|
a();
|
|
5623
5644
|
});
|
|
5624
5645
|
if (t) try {
|
|
5625
|
-
let n = nt.parse(t.viewJson), r =
|
|
5646
|
+
let n = nt.parse(t.viewJson), r = jm(n.table);
|
|
5626
5647
|
r.forEach((e) => {
|
|
5627
5648
|
e.table.sorter = !1;
|
|
5628
5649
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -5656,7 +5677,7 @@ function Nm(e, t, n, r) {
|
|
|
5656
5677
|
});
|
|
5657
5678
|
});
|
|
5658
5679
|
}
|
|
5659
|
-
async function
|
|
5680
|
+
async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
5660
5681
|
let s = 0, c = [], l = [], u = {
|
|
5661
5682
|
key: "",
|
|
5662
5683
|
link: "",
|
|
@@ -5670,27 +5691,27 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5670
5691
|
})) : (m.push(e), h.push(e.key));
|
|
5671
5692
|
for await (let [e, s] of m.entries()) {
|
|
5672
5693
|
if (s.source && !s.table.render && (s.input === "select" || s.input === "cascader")) if (s.table.render = (e) => e[`${s.key}Str`], t || s.params.immediately || s.search.defaultValue) {
|
|
5673
|
-
let { sourceData: t, n } = await
|
|
5694
|
+
let { sourceData: t, n } = await Om(s.source, a && e === 0);
|
|
5674
5695
|
if (t && Array.isArray(t)) if (s.sourceFn) {
|
|
5675
5696
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
5676
5697
|
s.params.options = n(t);
|
|
5677
|
-
} else s.params.options =
|
|
5698
|
+
} else s.params.options = Tm(s, t, n);
|
|
5678
5699
|
} else s.params.options = [{
|
|
5679
5700
|
label: "加载中......",
|
|
5680
5701
|
value: "loading",
|
|
5681
5702
|
disabled: !0
|
|
5682
5703
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5683
|
-
let { sourceData: e, n: t } = await
|
|
5704
|
+
let { sourceData: e, n: t } = await Om(s.source);
|
|
5684
5705
|
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5685
5706
|
let t = s.sourceFn;
|
|
5686
5707
|
return Function("sourceData", t)(e);
|
|
5687
|
-
} else return
|
|
5708
|
+
} else return Tm(s, e, t);
|
|
5688
5709
|
};
|
|
5689
5710
|
!s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
|
|
5690
5711
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
5691
5712
|
if (t) return t.label;
|
|
5692
5713
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
5693
|
-
return f(
|
|
5714
|
+
return f(Jp, { value: e[s.key] }, { default: () => null });
|
|
5694
5715
|
});
|
|
5695
5716
|
let p = {
|
|
5696
5717
|
input: s.input,
|
|
@@ -5705,7 +5726,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5705
5726
|
tooltip: !0,
|
|
5706
5727
|
"line-clamp": s.table.clamp ?? 0
|
|
5707
5728
|
} : !1,
|
|
5708
|
-
render: s.table.render ? await
|
|
5729
|
+
render: s.table.render ? await wm(s.key, s.table.render, i) : void 0,
|
|
5709
5730
|
show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
5710
5731
|
pin: !!s.table.fixed,
|
|
5711
5732
|
fixTemp: s.table.fixed
|
|
@@ -5726,7 +5747,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5726
5747
|
...s.form.rule,
|
|
5727
5748
|
index: t
|
|
5728
5749
|
} : void 0
|
|
5729
|
-
}, { default: () => f(
|
|
5750
|
+
}, { default: () => f(kp, {
|
|
5730
5751
|
item: s,
|
|
5731
5752
|
formValue: e,
|
|
5732
5753
|
status: n,
|
|
@@ -5737,26 +5758,26 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5737
5758
|
if (p && s.input !== "divider" && s.input !== "subTable" && (o && (p.show = s.form.expand.show), d.push(p)), s.input !== "divider" && s.input !== "switch" && s.input !== "subTable" && s.input !== "upload" && s.search.show) {
|
|
5738
5759
|
if (s.search.title && (s.label = s.search.title), s.search.source) if (s.input = "select", s.params.type = s.search.type, s.params.valueKey = s.search.valueKey, s.params.valueKey = s.search.valueKey, s.search.source === "from-up") s.params.options = s.params.options;
|
|
5739
5760
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
5740
|
-
let { sourceData: e, n: t } = await
|
|
5761
|
+
let { sourceData: e, n: t } = await Om(s.search.source);
|
|
5741
5762
|
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5742
5763
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
5743
5764
|
s.params.options = n(e);
|
|
5744
|
-
} else s.params.options =
|
|
5765
|
+
} else s.params.options = Tm(s, e, t);
|
|
5745
5766
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5746
|
-
let { sourceData: e, n: t } = await
|
|
5767
|
+
let { sourceData: e, n: t } = await Om(s.search.source);
|
|
5747
5768
|
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5748
5769
|
let t = s.sourceFn;
|
|
5749
5770
|
return Function("sourceData", t)(e);
|
|
5750
|
-
} else return
|
|
5771
|
+
} else return Tm(s, e, t);
|
|
5751
5772
|
};
|
|
5752
|
-
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue =
|
|
5773
|
+
if (s.search.multiple && (s.params.multiple = !0, s.search.defaultValue && (s.search.defaultValue = Sm(s.search.defaultValue))), s.search.show) {
|
|
5753
5774
|
let e = U(s);
|
|
5754
5775
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
5755
|
-
let { sourceData: t, n } = await
|
|
5776
|
+
let { sourceData: t, n } = await Om(e.source || e.search.source);
|
|
5756
5777
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5757
5778
|
let n = e.sourceFn;
|
|
5758
5779
|
return Function("sourceData", n)(t);
|
|
5759
|
-
} else return
|
|
5780
|
+
} else return Tm(e, t, n);
|
|
5760
5781
|
}), c.push({
|
|
5761
5782
|
input: e.input,
|
|
5762
5783
|
label: e.label,
|
|
@@ -5809,7 +5830,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5809
5830
|
}
|
|
5810
5831
|
//#endregion
|
|
5811
5832
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
5812
|
-
var
|
|
5833
|
+
var Rm = d({
|
|
5813
5834
|
name: "UzSpin",
|
|
5814
5835
|
components: {
|
|
5815
5836
|
NButton: L,
|
|
@@ -5855,7 +5876,7 @@ var Fm = d({
|
|
|
5855
5876
|
});
|
|
5856
5877
|
//#endregion
|
|
5857
5878
|
//#region components/spin/index.vue
|
|
5858
|
-
function
|
|
5879
|
+
function zm(e, t, r, i, o, s) {
|
|
5859
5880
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
5860
5881
|
return x(), n(f, { show: e.value }, {
|
|
5861
5882
|
description: N(() => [
|
|
@@ -5883,7 +5904,7 @@ function Im(e, t, r, i, o, s) {
|
|
|
5883
5904
|
_: 3
|
|
5884
5905
|
}, 8, ["show"]);
|
|
5885
5906
|
}
|
|
5886
|
-
var
|
|
5907
|
+
var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
5887
5908
|
name: "UzTableExpand",
|
|
5888
5909
|
components: {
|
|
5889
5910
|
NDataTable: oe,
|
|
@@ -5909,8 +5930,8 @@ var Lm = /*#__PURE__*/ W(Fm, [["render", Im]]), Rm = d({
|
|
|
5909
5930
|
} catch (e) {
|
|
5910
5931
|
J(e);
|
|
5911
5932
|
}
|
|
5912
|
-
|
|
5913
|
-
let { tableColumns: r } = await
|
|
5933
|
+
km(e.data.link).then(async (e) => {
|
|
5934
|
+
let { tableColumns: r } = await Lm(jm(nt.parse(e.viewJson).table), !0, 2, () => {}, {}, !1, !0), a = 0, o = r.map((e) => ({
|
|
5914
5935
|
...e,
|
|
5915
5936
|
sorter: !1,
|
|
5916
5937
|
resizable: !1
|
|
@@ -5931,7 +5952,7 @@ var Lm = /*#__PURE__*/ W(Fm, [["render", Im]]), Rm = d({
|
|
|
5931
5952
|
});
|
|
5932
5953
|
//#endregion
|
|
5933
5954
|
//#region components/table/expand.vue
|
|
5934
|
-
function
|
|
5955
|
+
function Hm(e, t, r, i, a, o) {
|
|
5935
5956
|
let s = D("NDataTable");
|
|
5936
5957
|
return x(), n(s, {
|
|
5937
5958
|
columns: e.columns,
|
|
@@ -5953,7 +5974,257 @@ function zm(e, t, r, i, a, o) {
|
|
|
5953
5974
|
"scroll-x"
|
|
5954
5975
|
]);
|
|
5955
5976
|
}
|
|
5956
|
-
var
|
|
5977
|
+
var Um = /*#__PURE__*/ W(Vm, [["render", Hm]]), Wm = d({
|
|
5978
|
+
name: "UzTableFilePort",
|
|
5979
|
+
components: {
|
|
5980
|
+
NDropdown: B,
|
|
5981
|
+
NButton: L,
|
|
5982
|
+
NModal: Ce,
|
|
5983
|
+
NUpload: Re,
|
|
5984
|
+
NSpace: je,
|
|
5985
|
+
NIcon: V,
|
|
5986
|
+
NDataTable: oe,
|
|
5987
|
+
FileText: Ro
|
|
5988
|
+
},
|
|
5989
|
+
props: { query: {
|
|
5990
|
+
required: !1,
|
|
5991
|
+
type: Object,
|
|
5992
|
+
default: () => {}
|
|
5993
|
+
} },
|
|
5994
|
+
emits: ["on-update:change"],
|
|
5995
|
+
setup(e, { emit: t }) {
|
|
5996
|
+
let { t: n } = Xe(), r = qe(), i = He(), a = w(!1), o = w(!1), s = w(), c = w(""), l = w([{
|
|
5997
|
+
label: n("Common.import"),
|
|
5998
|
+
key: "import",
|
|
5999
|
+
icon: () => f(V, null, { default: () => f($i) })
|
|
6000
|
+
}, {
|
|
6001
|
+
label: n("Common.export"),
|
|
6002
|
+
key: "export",
|
|
6003
|
+
icon: () => f(V, null, { default: () => f(Yi) })
|
|
6004
|
+
}]), u = w([
|
|
6005
|
+
{
|
|
6006
|
+
title: "文件名称",
|
|
6007
|
+
key: "fileName"
|
|
6008
|
+
},
|
|
6009
|
+
{
|
|
6010
|
+
title: "状态",
|
|
6011
|
+
key: "status",
|
|
6012
|
+
render(e) {
|
|
6013
|
+
switch (e.status) {
|
|
6014
|
+
case "1": return f("div", { style: "color: rgb(var(--green))" }, "成功");
|
|
6015
|
+
case "2": return f("div", { style: "color: rgb(var(--red))" }, "失败");
|
|
6016
|
+
default: return "处理中";
|
|
6017
|
+
}
|
|
6018
|
+
}
|
|
6019
|
+
},
|
|
6020
|
+
{
|
|
6021
|
+
title: "信息(文件保留7日)",
|
|
6022
|
+
key: "failMessage"
|
|
6023
|
+
},
|
|
6024
|
+
{
|
|
6025
|
+
title: "操作",
|
|
6026
|
+
key: "action",
|
|
6027
|
+
align: "center",
|
|
6028
|
+
render(e) {
|
|
6029
|
+
return f(L, {
|
|
6030
|
+
tertiary: !0,
|
|
6031
|
+
onClick: () => {
|
|
6032
|
+
window.open(e.cosUrl);
|
|
6033
|
+
}
|
|
6034
|
+
}, { default: () => "下载" });
|
|
6035
|
+
}
|
|
6036
|
+
}
|
|
6037
|
+
]), d = w([]), p = (e) => new Promise((t) => {
|
|
6038
|
+
if (e.file.file) {
|
|
6039
|
+
let t = new FormData();
|
|
6040
|
+
t.append("file", e.file.file), c.value = e.file.name, t.append("tableKey", r.params.id), s.value = t;
|
|
6041
|
+
}
|
|
6042
|
+
}), m = () => {
|
|
6043
|
+
s.value = null;
|
|
6044
|
+
}, h = () => {
|
|
6045
|
+
o.value || (o.value = !0, Tf(r.params.id).then((e) => {
|
|
6046
|
+
let t = document.createElement("a");
|
|
6047
|
+
t.download = "模板.xlsx", t.target = "_blank", t.style.display = "none", t.href = URL.createObjectURL(new Blob([e.data], { type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" })), document.body.appendChild(t), t.click(), URL.revokeObjectURL(t.href), document.body.removeChild(t);
|
|
6048
|
+
}).catch(() => null).finally(() => {
|
|
6049
|
+
o.value = !1;
|
|
6050
|
+
}));
|
|
6051
|
+
}, g = () => {
|
|
6052
|
+
o.value || (o.value = !0, gf("excel/import", s.value).then((e) => {
|
|
6053
|
+
i.success({
|
|
6054
|
+
content: "导入执行中...",
|
|
6055
|
+
duration: 3e3
|
|
6056
|
+
}), s.value = null, c.value = "";
|
|
6057
|
+
}).catch(() => {
|
|
6058
|
+
i.error({
|
|
6059
|
+
content: "上传失败",
|
|
6060
|
+
duration: 3e3
|
|
6061
|
+
});
|
|
6062
|
+
}).finally(() => {
|
|
6063
|
+
_(), o.value = !1;
|
|
6064
|
+
}));
|
|
6065
|
+
}, _ = () => {
|
|
6066
|
+
o.value || (o.value = !0, Ef(r.params.id).then((e) => {
|
|
6067
|
+
d.value = e;
|
|
6068
|
+
}).catch(() => null).finally(() => {
|
|
6069
|
+
o.value = !1;
|
|
6070
|
+
}));
|
|
6071
|
+
};
|
|
6072
|
+
return {
|
|
6073
|
+
show: a,
|
|
6074
|
+
rawFile: s,
|
|
6075
|
+
loading: o,
|
|
6076
|
+
rawFileName: c,
|
|
6077
|
+
dropOption: l,
|
|
6078
|
+
dropSelect: (t) => {
|
|
6079
|
+
if (t === "import") {
|
|
6080
|
+
a.value = !0, _();
|
|
6081
|
+
return;
|
|
6082
|
+
}
|
|
6083
|
+
if (t === "export") {
|
|
6084
|
+
id.info({
|
|
6085
|
+
title: "提示",
|
|
6086
|
+
content: "确认导出数据?导出过程较慢,稍后请在文件中心查看",
|
|
6087
|
+
positiveText: "确定",
|
|
6088
|
+
negativeText: "取消",
|
|
6089
|
+
draggable: !0,
|
|
6090
|
+
onPositiveClick: () => {
|
|
6091
|
+
let t = e.query ?? {};
|
|
6092
|
+
Df({
|
|
6093
|
+
tableKey: r.params.id,
|
|
6094
|
+
...t
|
|
6095
|
+
}).then((e) => {
|
|
6096
|
+
i.success({
|
|
6097
|
+
content: "导出中...稍后请在文件中心查看",
|
|
6098
|
+
duration: 3e3
|
|
6099
|
+
});
|
|
6100
|
+
}).catch(() => null);
|
|
6101
|
+
}
|
|
6102
|
+
});
|
|
6103
|
+
return;
|
|
6104
|
+
}
|
|
6105
|
+
},
|
|
6106
|
+
beforeUpload: p,
|
|
6107
|
+
clearFile: m,
|
|
6108
|
+
manualImport: g,
|
|
6109
|
+
downloadTemplate: h,
|
|
6110
|
+
columns: u,
|
|
6111
|
+
coldata: d,
|
|
6112
|
+
init: _,
|
|
6113
|
+
modalLeave: () => {
|
|
6114
|
+
t("on-update:change", !0);
|
|
6115
|
+
}
|
|
6116
|
+
};
|
|
6117
|
+
}
|
|
6118
|
+
}), Gm = { class: "uz-file-port-modal" }, Km = {
|
|
6119
|
+
key: 1,
|
|
6120
|
+
class: "uz-file-port-panel"
|
|
6121
|
+
}, qm = { class: "uz-flex uz-justify-between" };
|
|
6122
|
+
function Jm(t, r, o, s, u, d) {
|
|
6123
|
+
let f = D("FileText"), p = D("NIcon"), m = D("NButton"), h = D("NDropdown"), g = D("NUpload"), _ = D("NSpace"), v = D("NDataTable"), y = D("NModal");
|
|
6124
|
+
return x(), i(e, null, [l(h, {
|
|
6125
|
+
trigger: "hover",
|
|
6126
|
+
options: t.dropOption,
|
|
6127
|
+
onSelect: t.dropSelect
|
|
6128
|
+
}, {
|
|
6129
|
+
default: N(() => [l(m, { secondary: "" }, {
|
|
6130
|
+
icon: N(() => [l(p, null, {
|
|
6131
|
+
default: N(() => [l(f)]),
|
|
6132
|
+
_: 1
|
|
6133
|
+
})]),
|
|
6134
|
+
default: N(() => [c(" " + A(t.$t("Common.file")), 1)]),
|
|
6135
|
+
_: 1
|
|
6136
|
+
})]),
|
|
6137
|
+
_: 1
|
|
6138
|
+
}, 8, ["options", "onSelect"]), l(y, {
|
|
6139
|
+
show: t.show,
|
|
6140
|
+
"onUpdate:show": r[0] ||= (e) => t.show = e,
|
|
6141
|
+
"mask-closable": !1,
|
|
6142
|
+
"close-on-esc": !1,
|
|
6143
|
+
title: "批量导入",
|
|
6144
|
+
preset: "card",
|
|
6145
|
+
style: { width: "70%" },
|
|
6146
|
+
"auto-focus": !1,
|
|
6147
|
+
"on-after-leave": t.modalLeave
|
|
6148
|
+
}, {
|
|
6149
|
+
"header-extra": N(() => [l(m, {
|
|
6150
|
+
type: "success",
|
|
6151
|
+
loading: t.loading,
|
|
6152
|
+
onClick: t.downloadTemplate,
|
|
6153
|
+
secondary: ""
|
|
6154
|
+
}, {
|
|
6155
|
+
default: N(() => [...r[1] ||= [c(" 下载模板 ", -1)]]),
|
|
6156
|
+
_: 1
|
|
6157
|
+
}, 8, ["loading", "onClick"])]),
|
|
6158
|
+
default: N(() => [a("div", Gm, [
|
|
6159
|
+
t.rawFile ? (x(), i("div", Km, [
|
|
6160
|
+
r[5] ||= a("div", { class: "uz-file-port-icon" }, [a("svg", {
|
|
6161
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6162
|
+
viewBox: "0 0 24 24",
|
|
6163
|
+
width: "40",
|
|
6164
|
+
height: "40",
|
|
6165
|
+
fill: "currentColor"
|
|
6166
|
+
}, [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),
|
|
6167
|
+
a("div", null, A(t.rawFileName), 1),
|
|
6168
|
+
r[6] ||= a("div", { class: "uz-file-port-subtitle" }, " 导入文件过程较慢,程序会静默处理,不需要留在本页面等待。 ", -1),
|
|
6169
|
+
l(_, { justify: "space-between" }, {
|
|
6170
|
+
default: N(() => [l(m, {
|
|
6171
|
+
size: "small",
|
|
6172
|
+
secondary: "",
|
|
6173
|
+
type: "default",
|
|
6174
|
+
onClick: t.clearFile
|
|
6175
|
+
}, {
|
|
6176
|
+
default: N(() => [...r[3] ||= [c(" 重新选择 ", -1)]]),
|
|
6177
|
+
_: 1
|
|
6178
|
+
}, 8, ["onClick"]), l(m, {
|
|
6179
|
+
size: "small",
|
|
6180
|
+
type: "primary",
|
|
6181
|
+
loading: t.loading,
|
|
6182
|
+
onClick: t.manualImport
|
|
6183
|
+
}, {
|
|
6184
|
+
default: N(() => [...r[4] ||= [c(" 开始导入 ", -1)]]),
|
|
6185
|
+
_: 1
|
|
6186
|
+
}, 8, ["loading", "onClick"])]),
|
|
6187
|
+
_: 1
|
|
6188
|
+
})
|
|
6189
|
+
])) : (x(), n(g, {
|
|
6190
|
+
key: 0,
|
|
6191
|
+
accept: ".xlsx",
|
|
6192
|
+
"show-file-list": !1,
|
|
6193
|
+
"on-before-upload": t.beforeUpload,
|
|
6194
|
+
"directory-dnd": "",
|
|
6195
|
+
class: "uz-w-full"
|
|
6196
|
+
}, {
|
|
6197
|
+
default: N(() => [...r[2] ||= [a("div", { class: "uz-file-port-card" }, [a("div", { class: "uz-file-port-icon" }, [a("svg", {
|
|
6198
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6199
|
+
viewBox: "0 0 24 24",
|
|
6200
|
+
width: "40",
|
|
6201
|
+
height: "40",
|
|
6202
|
+
fill: "currentColor"
|
|
6203
|
+
}, [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" })])]), a("div", { class: "uz-file-port-subtitle" }, "拖拽或点击上传Excel文件")], -1)]]),
|
|
6204
|
+
_: 1
|
|
6205
|
+
}, 8, ["on-before-upload"])),
|
|
6206
|
+
a("div", qm, [r[8] ||= a("div", { class: "uz-com-title" }, "导入历史", -1), l(m, {
|
|
6207
|
+
onClick: t.init,
|
|
6208
|
+
loading: t.loading,
|
|
6209
|
+
secondary: ""
|
|
6210
|
+
}, {
|
|
6211
|
+
default: N(() => [...r[7] ||= [c("刷新", -1)]]),
|
|
6212
|
+
_: 1
|
|
6213
|
+
}, 8, ["onClick", "loading"])]),
|
|
6214
|
+
l(v, {
|
|
6215
|
+
columns: t.columns,
|
|
6216
|
+
data: t.coldata,
|
|
6217
|
+
loading: t.loading
|
|
6218
|
+
}, null, 8, [
|
|
6219
|
+
"columns",
|
|
6220
|
+
"data",
|
|
6221
|
+
"loading"
|
|
6222
|
+
])
|
|
6223
|
+
])]),
|
|
6224
|
+
_: 1
|
|
6225
|
+
}, 8, ["show", "on-after-leave"])], 64);
|
|
6226
|
+
}
|
|
6227
|
+
var Ym = /*#__PURE__*/ W(Wm, [["render", Jm], ["__scopeId", "data-v-21e16834"]]), Xm = d({
|
|
5957
6228
|
name: "UzTable",
|
|
5958
6229
|
components: {
|
|
5959
6230
|
NDataTable: oe,
|
|
@@ -5967,7 +6238,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
5967
6238
|
GridDots: es,
|
|
5968
6239
|
Plus: uc,
|
|
5969
6240
|
VueDraggable: tt,
|
|
5970
|
-
UzSpin:
|
|
6241
|
+
UzSpin: Bm,
|
|
5971
6242
|
UzIcon: Iu
|
|
5972
6243
|
},
|
|
5973
6244
|
props: {
|
|
@@ -6106,7 +6377,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6106
6377
|
fetch: null,
|
|
6107
6378
|
when_drawer_open: "",
|
|
6108
6379
|
when_before_save: ""
|
|
6109
|
-
}), R = w(
|
|
6380
|
+
}), R = w(Fm()), ne = w(""), re = w(!1), ie = w([]), z = w([]), ae = p("modules"), oe = (e) => e.id, se = (e, t) => {
|
|
6110
6381
|
n("update:rowKeys", {
|
|
6111
6382
|
keys: e,
|
|
6112
6383
|
rows: U(t)
|
|
@@ -6197,7 +6468,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6197
6468
|
width: 180,
|
|
6198
6469
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => ud(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
6199
6470
|
}], ve = (t) => a?.remainingDays < 0 && t === "add" ? !0 : !e.ruleFetch || !M.value || M.value && M.value[0] === "*" ? !1 : !M.value?.includes(t), ye = async (e) => {
|
|
6200
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
6471
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Im(N.value, e, () => m.value?.getFormValues());
|
|
6201
6472
|
return x.value = t, {
|
|
6202
6473
|
form: t,
|
|
6203
6474
|
fillingDefaultValue: n,
|
|
@@ -6378,8 +6649,8 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6378
6649
|
};
|
|
6379
6650
|
}
|
|
6380
6651
|
}, Ce = async () => {
|
|
6381
|
-
re.value = !1,
|
|
6382
|
-
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await
|
|
6652
|
+
re.value = !1, Dm();
|
|
6653
|
+
let { tableColumns: t, search: n, subTableIds: r, subTableExpand: i } = await Lm(N.value, e.child, 0, () => ({}), ae);
|
|
6383
6654
|
!l.value && R.value.index && t.unshift({
|
|
6384
6655
|
title: "#",
|
|
6385
6656
|
key: "index",
|
|
@@ -6421,7 +6692,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6421
6692
|
hide: !0,
|
|
6422
6693
|
width: Number(typeof R.value.actionWidth == "string" ? R.value.actionWidth.replace("px", "") : R.value.actionWidth),
|
|
6423
6694
|
render(t) {
|
|
6424
|
-
return
|
|
6695
|
+
return Nf({
|
|
6425
6696
|
buttons: e,
|
|
6426
6697
|
rowData: t,
|
|
6427
6698
|
callback: B,
|
|
@@ -6448,7 +6719,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6448
6719
|
filter: "default",
|
|
6449
6720
|
filterOptionValue: null,
|
|
6450
6721
|
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Le }, { default: () => s("Common.expand") }), f(L, { onClick: Re }, { default: () => s("Common.contract") })]),
|
|
6451
|
-
renderExpand: (e) => f(
|
|
6722
|
+
renderExpand: (e) => f(Um, {
|
|
6452
6723
|
data: i,
|
|
6453
6724
|
value: e
|
|
6454
6725
|
})
|
|
@@ -6474,7 +6745,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6474
6745
|
data: JSON.stringify(t)
|
|
6475
6746
|
}).catch(() => null);
|
|
6476
6747
|
}
|
|
6477
|
-
}, { run: De } =
|
|
6748
|
+
}, { run: De } = ym(Ee), { run: Oe } = ym((e, t) => {
|
|
6478
6749
|
let n = [];
|
|
6479
6750
|
C.value.forEach((r) => {
|
|
6480
6751
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -6514,13 +6785,13 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6514
6785
|
fetch: null,
|
|
6515
6786
|
when_drawer_open: "",
|
|
6516
6787
|
when_before_save: ""
|
|
6517
|
-
}, R.value =
|
|
6788
|
+
}, R.value = Fm();
|
|
6518
6789
|
}, Me = (t) => {
|
|
6519
6790
|
let n = nt.parse(t.viewJson);
|
|
6520
|
-
b.value = t.tableTitle, N.value =
|
|
6521
|
-
let r =
|
|
6522
|
-
F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value =
|
|
6523
|
-
let i =
|
|
6791
|
+
b.value = t.tableTitle, N.value = jm(n.table), P.value = Vf(e.actions || n.action);
|
|
6792
|
+
let r = Vf(n.suffix || []);
|
|
6793
|
+
F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value = Nm(n.trigger);
|
|
6794
|
+
let i = Fm(e.options ?? n.option);
|
|
6524
6795
|
t.tableTitle && i.title && dd(t.tableTitle), R.value = i;
|
|
6525
6796
|
}, Ne = async () => {
|
|
6526
6797
|
v.value = !1, je();
|
|
@@ -6538,7 +6809,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6538
6809
|
ne.value = s("Notice.network"), re.value = !0;
|
|
6539
6810
|
return;
|
|
6540
6811
|
}
|
|
6541
|
-
Te(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], R.value =
|
|
6812
|
+
Te(), e.columns ? (N.value = e.columns || [], P.value = e.actions || [], F.value = e.suffixes || [], R.value = Fm(e.options), await Ce()) : await km(t).then(async (e) => {
|
|
6542
6813
|
Me(e), await Ce();
|
|
6543
6814
|
}).catch((e) => {
|
|
6544
6815
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -6649,26 +6920,29 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6649
6920
|
handleColumnResize: Ie,
|
|
6650
6921
|
expandedRowKeys: O,
|
|
6651
6922
|
handleExpandAll: Le,
|
|
6652
|
-
handleContractAll: Re
|
|
6923
|
+
handleContractAll: Re,
|
|
6924
|
+
doPortChange: () => {
|
|
6925
|
+
B();
|
|
6926
|
+
}
|
|
6653
6927
|
};
|
|
6654
6928
|
}
|
|
6655
|
-
}),
|
|
6929
|
+
}), Zm = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Qm = { class: "uz-flex uz-justify-between" }, $m = { class: "uz-flex uz-gap-1" }, eh = { class: "uz-com-title" }, th = {
|
|
6656
6930
|
ref: "mRef",
|
|
6657
6931
|
class: "uz-table-m-content"
|
|
6658
|
-
},
|
|
6932
|
+
}, nh = {
|
|
6659
6933
|
key: 1,
|
|
6660
6934
|
class: "uz-transform-fade-in"
|
|
6661
|
-
},
|
|
6662
|
-
function
|
|
6663
|
-
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), O = D("NCheckbox"), k = D("GridDots"), ee = D("VueDraggable"), j = D("NPopover"), M = D("
|
|
6935
|
+
}, rh = { class: "uz-com-title" }, ih = ["data-index"];
|
|
6936
|
+
function ah(t, s, u, d, f, p) {
|
|
6937
|
+
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), O = D("NCheckbox"), k = D("GridDots"), ee = D("VueDraggable"), j = D("NPopover"), M = D("UzTableFilePort"), F = D("UzSearchBar"), I = D("NDataTable"), L = D("NSpin"), R = D("UzTableDrawer");
|
|
6664
6938
|
return x(), i("div", {
|
|
6665
6939
|
class: "uz-table",
|
|
6666
6940
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
6667
6941
|
}, [
|
|
6668
|
-
P(a("div",
|
|
6942
|
+
P(a("div", Zm, [a("div", Qm, [l(m, {
|
|
6669
6943
|
width: 120,
|
|
6670
6944
|
size: "medium"
|
|
6671
|
-
}), a("div",
|
|
6945
|
+
}), a("div", $m, [
|
|
6672
6946
|
l(m, {
|
|
6673
6947
|
width: 180,
|
|
6674
6948
|
size: "medium"
|
|
@@ -6698,7 +6972,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6698
6972
|
width: "100%",
|
|
6699
6973
|
size: "medium"
|
|
6700
6974
|
})], 512), [[te, !t.dynamicLoading]]),
|
|
6701
|
-
P(l(
|
|
6975
|
+
P(l(L, {
|
|
6702
6976
|
show: t.spinError,
|
|
6703
6977
|
class: "uz-table-n-spin"
|
|
6704
6978
|
}, {
|
|
@@ -6756,7 +7030,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6756
7030
|
key: "0"
|
|
6757
7031
|
} : {
|
|
6758
7032
|
name: "header",
|
|
6759
|
-
fn: N(() => [a("div",
|
|
7033
|
+
fn: N(() => [a("div", eh, A(t.title), 1)]),
|
|
6760
7034
|
key: "1"
|
|
6761
7035
|
}]), 1032, [
|
|
6762
7036
|
"data",
|
|
@@ -6764,7 +7038,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6764
7038
|
"cache",
|
|
6765
7039
|
"loading",
|
|
6766
7040
|
"onOnUpdate:value"
|
|
6767
|
-
]), a("div",
|
|
7041
|
+
]), a("div", th, [l(C, {
|
|
6768
7042
|
tableColumns: t.tableCols,
|
|
6769
7043
|
tableData: t.tableData,
|
|
6770
7044
|
tableQueries: t.tableQueries,
|
|
@@ -6782,7 +7056,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6782
7056
|
"minH",
|
|
6783
7057
|
"maxH",
|
|
6784
7058
|
"onUpdate:rowKeys"
|
|
6785
|
-
])], 512)], 2)) : (x(), i("div",
|
|
7059
|
+
])], 512)], 2)) : (x(), i("div", nh, [l(F, {
|
|
6786
7060
|
data: t.searchData,
|
|
6787
7061
|
id: t.id || t.route.params.id,
|
|
6788
7062
|
cache: t.tableOption.cache,
|
|
@@ -6837,7 +7111,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6837
7111
|
_: 1
|
|
6838
7112
|
})]),
|
|
6839
7113
|
_: 1
|
|
6840
|
-
})], 8,
|
|
7114
|
+
})], 8, ih)), [[te, !e.hide]])), 128)), l(h, {
|
|
6841
7115
|
block: "",
|
|
6842
7116
|
tertiary: "",
|
|
6843
7117
|
loading: t.loading,
|
|
@@ -6863,6 +7137,10 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6863
7137
|
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
6864
7138
|
_: 1
|
|
6865
7139
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
7140
|
+
l(M, {
|
|
7141
|
+
query: t.tableQueries,
|
|
7142
|
+
"onOnUpdate:change": t.doPortChange
|
|
7143
|
+
}, null, 8, ["query", "onOnUpdate:change"]),
|
|
6866
7144
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
6867
7145
|
key: 2,
|
|
6868
7146
|
data: t.suffixes,
|
|
@@ -6881,7 +7159,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6881
7159
|
key: "0"
|
|
6882
7160
|
} : {
|
|
6883
7161
|
name: "header",
|
|
6884
|
-
fn: N(() => [a("div",
|
|
7162
|
+
fn: N(() => [a("div", rh, A(t.title), 1)]),
|
|
6885
7163
|
key: "1"
|
|
6886
7164
|
}]), 1032, [
|
|
6887
7165
|
"data",
|
|
@@ -6891,7 +7169,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6891
7169
|
"cols",
|
|
6892
7170
|
"enableHeader",
|
|
6893
7171
|
"onOnUpdate:value"
|
|
6894
|
-
]), l(
|
|
7172
|
+
]), l(I, {
|
|
6895
7173
|
ref: "tableRef",
|
|
6896
7174
|
columns: t.tableCols,
|
|
6897
7175
|
data: t.tableData,
|
|
@@ -6942,10 +7220,10 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6942
7220
|
])]))]),
|
|
6943
7221
|
_: 3
|
|
6944
7222
|
}, 8, ["show"]), [[te, t.dynamicLoading]]),
|
|
6945
|
-
l(
|
|
7223
|
+
l(R, { ref: "drawerRef" }, null, 512)
|
|
6946
7224
|
], 4);
|
|
6947
7225
|
}
|
|
6948
|
-
var
|
|
7226
|
+
var oh = /*#__PURE__*/ W(Xm, [["render", ah]]), sh = d({
|
|
6949
7227
|
name: "UzTableChild",
|
|
6950
7228
|
components: {
|
|
6951
7229
|
NSpin: Me,
|
|
@@ -6975,7 +7253,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
6975
7253
|
emits: ["update:value"],
|
|
6976
7254
|
setup(e, { emit: n, expose: r }) {
|
|
6977
7255
|
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) => {
|
|
6978
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
7256
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Im(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
6979
7257
|
return C.value = r, i;
|
|
6980
7258
|
}, O = async (t) => {
|
|
6981
7259
|
if (_.value) return;
|
|
@@ -7006,7 +7284,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7006
7284
|
});
|
|
7007
7285
|
}, k = (e) => e.delete ? "uz-table-child-delete" : "", A = async (t, n = !1) => {
|
|
7008
7286
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
7009
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
7287
|
+
let { tableColumns: r, tableWidth: i } = await Lm(U(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
7010
7288
|
r.unshift({
|
|
7011
7289
|
title: " ",
|
|
7012
7290
|
key: "index",
|
|
@@ -7039,7 +7317,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7039
7317
|
width: 60,
|
|
7040
7318
|
render(t, n) {
|
|
7041
7319
|
let r = [];
|
|
7042
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
7320
|
+
return e.item.params.childActions && e.item.params.actions && Vf(e.item.params.actions).forEach((e) => {
|
|
7043
7321
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
7044
7322
|
}), e.item.params.showDelete && e.status !== 2 && (x.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
|
|
7045
7323
|
type: "normal",
|
|
@@ -7051,7 +7329,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7051
7329
|
let n = e.item.params.deleteFn;
|
|
7052
7330
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
7053
7331
|
}
|
|
7054
|
-
}),
|
|
7332
|
+
}), Nf({
|
|
7055
7333
|
buttons: r,
|
|
7056
7334
|
rowData: t
|
|
7057
7335
|
});
|
|
@@ -7183,18 +7461,18 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7183
7461
|
}
|
|
7184
7462
|
};
|
|
7185
7463
|
}
|
|
7186
|
-
}),
|
|
7464
|
+
}), ch = { class: "uz-flex uz-justify-between" }, lh = { class: "uz-com-title" }, uh = {
|
|
7187
7465
|
key: 0,
|
|
7188
7466
|
class: "uz-table-asterisk"
|
|
7189
|
-
},
|
|
7190
|
-
function
|
|
7467
|
+
}, dh = { class: "uz-flex uz-gap-2" }, fh = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
7468
|
+
function ph(t, s, u, d, f, p) {
|
|
7191
7469
|
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
|
|
7192
7470
|
return x(), n(S, {
|
|
7193
7471
|
show: t.spin,
|
|
7194
7472
|
class: "uz-flex-1 uz-w-full"
|
|
7195
7473
|
}, {
|
|
7196
7474
|
default: N(() => [
|
|
7197
|
-
a("div",
|
|
7475
|
+
a("div", ch, [a("div", lh, [c(A(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", uh, " \xA0* ")) : r("", !0)]), a("div", dh, [
|
|
7198
7476
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
7199
7477
|
key: e.key,
|
|
7200
7478
|
type: e.color,
|
|
@@ -7270,7 +7548,7 @@ function ih(t, s, u, d, f, p) {
|
|
|
7270
7548
|
"scroll-x",
|
|
7271
7549
|
"class",
|
|
7272
7550
|
"row-class-name"
|
|
7273
|
-
])) : r("", !0), a("div",
|
|
7551
|
+
])) : r("", !0), a("div", fh, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
7274
7552
|
key: 0,
|
|
7275
7553
|
type: "success",
|
|
7276
7554
|
secondary: "",
|
|
@@ -7301,7 +7579,7 @@ function ih(t, s, u, d, f, p) {
|
|
|
7301
7579
|
_: 1
|
|
7302
7580
|
}, 8, ["show"]);
|
|
7303
7581
|
}
|
|
7304
|
-
var
|
|
7582
|
+
var mh = /*#__PURE__*/ W(sh, [["render", ph]]), hh = d({
|
|
7305
7583
|
name: "UzTableQuestChild",
|
|
7306
7584
|
components: { NDataTable: oe },
|
|
7307
7585
|
props: {
|
|
@@ -7329,7 +7607,7 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
|
|
|
7329
7607
|
}), o.value = t, i.value = !1;
|
|
7330
7608
|
}
|
|
7331
7609
|
}, l = async (i) => {
|
|
7332
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
7610
|
+
let { tableColumns: c, tableWidth: l } = await Lm(U(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
7333
7611
|
c.unshift({
|
|
7334
7612
|
title: " ",
|
|
7335
7613
|
key: "index",
|
|
@@ -7348,7 +7626,7 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
|
|
|
7348
7626
|
hide: !0,
|
|
7349
7627
|
width: 60,
|
|
7350
7628
|
render(t) {
|
|
7351
|
-
return
|
|
7629
|
+
return Nf({ buttons: [{
|
|
7352
7630
|
type: "normal",
|
|
7353
7631
|
color: "primary",
|
|
7354
7632
|
key: "detail",
|
|
@@ -7403,11 +7681,11 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
|
|
|
7403
7681
|
tableScrollX: s
|
|
7404
7682
|
};
|
|
7405
7683
|
}
|
|
7406
|
-
}),
|
|
7407
|
-
function
|
|
7684
|
+
}), gh = { class: "uz-flex-1 uz-w-full" }, _h = { class: "uz-flex uz-justify-between" }, vh = { class: "uz-com-title" };
|
|
7685
|
+
function yh(e, t, n, r, o, s) {
|
|
7408
7686
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
7409
|
-
return x(), i("div",
|
|
7410
|
-
a("div",
|
|
7687
|
+
return x(), i("div", gh, [
|
|
7688
|
+
a("div", _h, [a("div", vh, A(e.item.label), 1)]),
|
|
7411
7689
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
7412
7690
|
l(c, {
|
|
7413
7691
|
columns: e.columns,
|
|
@@ -7432,7 +7710,7 @@ function uh(e, t, n, r, o, s) {
|
|
|
7432
7710
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
7433
7711
|
]);
|
|
7434
7712
|
}
|
|
7435
|
-
var
|
|
7713
|
+
var bh = /*#__PURE__*/ W(hh, [["render", yh]]), xh = d({
|
|
7436
7714
|
name: "UzTableDrawer",
|
|
7437
7715
|
components: {
|
|
7438
7716
|
NButton: L,
|
|
@@ -7458,6 +7736,7 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7458
7736
|
addButton: 1,
|
|
7459
7737
|
filterButton: 1,
|
|
7460
7738
|
commonTime: 1,
|
|
7739
|
+
filePort: 0,
|
|
7461
7740
|
actionWidth: 300,
|
|
7462
7741
|
drawerWidth: "70%",
|
|
7463
7742
|
drawerHeight: "96vh",
|
|
@@ -7501,11 +7780,11 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7501
7780
|
linkFn: t
|
|
7502
7781
|
};
|
|
7503
7782
|
let r = e.split(".")[0];
|
|
7504
|
-
|
|
7783
|
+
km(r).then((e) => {
|
|
7505
7784
|
h(async () => {
|
|
7506
7785
|
let t = nt.parse(e.viewJson);
|
|
7507
|
-
d.value =
|
|
7508
|
-
let { form: i } = await
|
|
7786
|
+
d.value = Fm(t.option), u.value = !0;
|
|
7787
|
+
let { form: i } = await Im(jm(t.table), n);
|
|
7509
7788
|
y.value = t.trigger, n && T(n);
|
|
7510
7789
|
let a = X(`tables_cache_link_${r}`, !1);
|
|
7511
7790
|
a && (c.value = a), h(() => {
|
|
@@ -7565,7 +7844,7 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7565
7844
|
tableId: t,
|
|
7566
7845
|
...e
|
|
7567
7846
|
}).then(() => {
|
|
7568
|
-
|
|
7847
|
+
Dm(), yf({ tableId: t }).then((e) => {
|
|
7569
7848
|
let r = l.value.link.split("."), i;
|
|
7570
7849
|
if (l.value.linkFn) {
|
|
7571
7850
|
let t = l.value.linkFn;
|
|
@@ -7598,11 +7877,11 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7598
7877
|
}
|
|
7599
7878
|
};
|
|
7600
7879
|
}
|
|
7601
|
-
}),
|
|
7880
|
+
}), Sh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Ch = {
|
|
7602
7881
|
key: 0,
|
|
7603
7882
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7604
|
-
},
|
|
7605
|
-
function
|
|
7883
|
+
}, wh = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, Th = { class: "uz-flex uz-gap-2" };
|
|
7884
|
+
function Eh(t, s, u, d, f, p) {
|
|
7606
7885
|
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");
|
|
7607
7886
|
return x(), i(e, null, [l(S, {
|
|
7608
7887
|
show: t.drawer,
|
|
@@ -7628,7 +7907,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7628
7907
|
message: t.spinMsg,
|
|
7629
7908
|
status: t.spinStatus
|
|
7630
7909
|
}, {
|
|
7631
|
-
default: N(() => [a("div",
|
|
7910
|
+
default: N(() => [a("div", Sh, [t.skeletonShow ? (x(), i("div", Ch, [
|
|
7632
7911
|
l(m, {
|
|
7633
7912
|
size: "large",
|
|
7634
7913
|
style: { height: "156px" }
|
|
@@ -7691,7 +7970,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7691
7970
|
_: 2
|
|
7692
7971
|
}, [t.formStatus === 2 ? void 0 : {
|
|
7693
7972
|
name: "footer",
|
|
7694
|
-
fn: N(() => [a("div",
|
|
7973
|
+
fn: N(() => [a("div", wh, [t.isMobile ? r("", !0) : (x(), n(v, {
|
|
7695
7974
|
key: 0,
|
|
7696
7975
|
loading: t.spinShow,
|
|
7697
7976
|
type: "success",
|
|
@@ -7700,7 +7979,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7700
7979
|
}, {
|
|
7701
7980
|
default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
|
|
7702
7981
|
_: 1
|
|
7703
|
-
}, 8, ["loading"])), a("div",
|
|
7982
|
+
}, 8, ["loading"])), a("div", Th, [
|
|
7704
7983
|
l(v, {
|
|
7705
7984
|
loading: t.spinShow,
|
|
7706
7985
|
class: "uz-drawer-button",
|
|
@@ -7768,7 +8047,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7768
8047
|
_: 1
|
|
7769
8048
|
}, 8, ["show"])], 64);
|
|
7770
8049
|
}
|
|
7771
|
-
var
|
|
8050
|
+
var Dh = /*#__PURE__*/ W(xh, [["render", Eh]]), Oh = d({
|
|
7772
8051
|
name: "UzTableMobileList",
|
|
7773
8052
|
props: {
|
|
7774
8053
|
tableData: {
|
|
@@ -7786,12 +8065,12 @@ var vh = /*#__PURE__*/ W(fh, [["render", _h]]), yh = d({
|
|
|
7786
8065
|
},
|
|
7787
8066
|
emits: ["update:row-keys"],
|
|
7788
8067
|
setup() {}
|
|
7789
|
-
}),
|
|
8068
|
+
}), kh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Ah = {
|
|
7790
8069
|
key: 1,
|
|
7791
8070
|
class: "uz-table-mobile-group-txt"
|
|
7792
8071
|
};
|
|
7793
|
-
function
|
|
7794
|
-
return x(), i("div",
|
|
8072
|
+
function jh(t, o, s, c, l, u) {
|
|
8073
|
+
return x(), i("div", kh, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
|
|
7795
8074
|
key: o.key,
|
|
7796
8075
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7797
8076
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
@@ -7802,11 +8081,11 @@ function Sh(t, o, s, c, l, u) {
|
|
|
7802
8081
|
class: "mobile"
|
|
7803
8082
|
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, A(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(k(() => {
|
|
7804
8083
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7805
|
-
}), { key: 0 })) : (x(), i("div",
|
|
8084
|
+
}), { key: 0 })) : (x(), i("div", Ah, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7806
8085
|
}
|
|
7807
8086
|
//#endregion
|
|
7808
8087
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7809
|
-
var
|
|
8088
|
+
var Mh = d({
|
|
7810
8089
|
name: "UzTableMobile",
|
|
7811
8090
|
components: {
|
|
7812
8091
|
NCheckbox: re,
|
|
@@ -7814,7 +8093,7 @@ var Ch = d({
|
|
|
7814
8093
|
NPagination: we,
|
|
7815
8094
|
NCheckboxGroup: ie,
|
|
7816
8095
|
NRadioGroup: Oe,
|
|
7817
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
8096
|
+
UzTableMobileList: /* @__PURE__ */ W(Oh, [["render", jh], ["__scopeId", "data-v-84c394fe"]])
|
|
7818
8097
|
},
|
|
7819
8098
|
props: {
|
|
7820
8099
|
tableData: {
|
|
@@ -7861,17 +8140,17 @@ var Ch = d({
|
|
|
7861
8140
|
}
|
|
7862
8141
|
};
|
|
7863
8142
|
}
|
|
7864
|
-
}),
|
|
8143
|
+
}), Nh = {
|
|
7865
8144
|
key: 0,
|
|
7866
8145
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7867
|
-
},
|
|
8146
|
+
}, Ph = {
|
|
7868
8147
|
key: 0,
|
|
7869
8148
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7870
|
-
},
|
|
8149
|
+
}, Fh = {
|
|
7871
8150
|
key: 0,
|
|
7872
8151
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7873
8152
|
};
|
|
7874
|
-
function
|
|
8153
|
+
function Ih(t, a, o, s, c, u) {
|
|
7875
8154
|
let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
|
|
7876
8155
|
return t.selection === 2 ? (x(), n(m, {
|
|
7877
8156
|
key: 0,
|
|
@@ -7898,7 +8177,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7898
8177
|
"tableColumns"
|
|
7899
8178
|
])]),
|
|
7900
8179
|
_: 2
|
|
7901
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
8180
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Nh, [l(p, {
|
|
7902
8181
|
page: t.tableQueries.query.page,
|
|
7903
8182
|
"onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7904
8183
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7940,7 +8219,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7940
8219
|
"tableColumns"
|
|
7941
8220
|
])]),
|
|
7942
8221
|
_: 2
|
|
7943
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
8222
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Ph, [l(p, {
|
|
7944
8223
|
page: t.tableQueries.query.page,
|
|
7945
8224
|
"onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7946
8225
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7975,7 +8254,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7975
8254
|
"tableData",
|
|
7976
8255
|
"tableIndex",
|
|
7977
8256
|
"tableColumns"
|
|
7978
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
8257
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Fh, [l(p, {
|
|
7979
8258
|
page: t.tableQueries.query.page,
|
|
7980
8259
|
"onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7981
8260
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7988,7 +8267,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7988
8267
|
"onUpdate:page"
|
|
7989
8268
|
])])) : r("", !0)], 4));
|
|
7990
8269
|
}
|
|
7991
|
-
var
|
|
8270
|
+
var Lh = /*#__PURE__*/ W(Mh, [["render", Ih], ["__scopeId", "data-v-70b54e3b"]]), $ = C({
|
|
7992
8271
|
page: {
|
|
7993
8272
|
label: "首页",
|
|
7994
8273
|
key: "/",
|
|
@@ -7999,7 +8278,7 @@ var Oh = /*#__PURE__*/ W(Ch, [["render", Dh], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7999
8278
|
active: "/",
|
|
8000
8279
|
thumbnail: []
|
|
8001
8280
|
});
|
|
8002
|
-
function
|
|
8281
|
+
function Rh(e) {
|
|
8003
8282
|
$.cache = e.cache, $.page = {
|
|
8004
8283
|
label: e.label,
|
|
8005
8284
|
key: e.key,
|
|
@@ -8014,14 +8293,14 @@ function kh(e) {
|
|
|
8014
8293
|
closable: !1
|
|
8015
8294
|
}];
|
|
8016
8295
|
}
|
|
8017
|
-
function
|
|
8296
|
+
function zh(e) {
|
|
8018
8297
|
$.active = e, G.push(e), Y($.cache, $, 0);
|
|
8019
8298
|
}
|
|
8020
|
-
function
|
|
8299
|
+
function Bh(e, t) {
|
|
8021
8300
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
8022
8301
|
n && (n.key = t, $.active = t, Y($.cache, $, 0));
|
|
8023
8302
|
}
|
|
8024
|
-
function
|
|
8303
|
+
function Vh(e) {
|
|
8025
8304
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
8026
8305
|
t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
8027
8306
|
...e,
|
|
@@ -8029,7 +8308,7 @@ function Mh(e) {
|
|
|
8029
8308
|
closable: !0
|
|
8030
8309
|
}), G.push(e.key));
|
|
8031
8310
|
}
|
|
8032
|
-
function
|
|
8311
|
+
function Hh(e) {
|
|
8033
8312
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
8034
8313
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
8035
8314
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
@@ -8037,12 +8316,12 @@ function Nh(e) {
|
|
|
8037
8316
|
}
|
|
8038
8317
|
Y($.cache, $, 0);
|
|
8039
8318
|
}
|
|
8040
|
-
function
|
|
8319
|
+
function Uh() {
|
|
8041
8320
|
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
|
|
8042
8321
|
}
|
|
8043
8322
|
//#endregion
|
|
8044
8323
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
8045
|
-
var
|
|
8324
|
+
var Wh = d({
|
|
8046
8325
|
name: "UzThumbnail",
|
|
8047
8326
|
components: {
|
|
8048
8327
|
NTabs: Fe,
|
|
@@ -8064,29 +8343,29 @@ var Fh = d({
|
|
|
8064
8343
|
setup(e, { slots: t }) {
|
|
8065
8344
|
let n = w(!!t.prefix), r = qe();
|
|
8066
8345
|
return y(() => {
|
|
8067
|
-
|
|
8346
|
+
Rh(e.option), $.active !== r.path && Bh(r.path, r.fullPath);
|
|
8068
8347
|
}), j(() => r, (e) => {
|
|
8069
|
-
$.active === r.path &&
|
|
8348
|
+
$.active === r.path && Bh(e.path, e.fullPath);
|
|
8070
8349
|
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
8071
|
-
|
|
8350
|
+
Rh(e);
|
|
8072
8351
|
}, { deep: !0 }), {
|
|
8073
8352
|
thumbnailStore: $,
|
|
8074
8353
|
isSlotPrefix: n,
|
|
8075
8354
|
handleClose: (e) => {
|
|
8076
|
-
|
|
8355
|
+
Hh(e);
|
|
8077
8356
|
},
|
|
8078
8357
|
handleChange: (e) => {
|
|
8079
|
-
|
|
8358
|
+
zh(e);
|
|
8080
8359
|
},
|
|
8081
8360
|
handleClear: () => {
|
|
8082
|
-
|
|
8361
|
+
Uh();
|
|
8083
8362
|
}
|
|
8084
8363
|
};
|
|
8085
8364
|
}
|
|
8086
8365
|
});
|
|
8087
8366
|
//#endregion
|
|
8088
8367
|
//#region components/thumbnail/index.vue
|
|
8089
|
-
function
|
|
8368
|
+
function Gh(t, r, a, s, u, d) {
|
|
8090
8369
|
let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
|
|
8091
8370
|
return x(), n(v, {
|
|
8092
8371
|
value: t.thumbnailStore.active,
|
|
@@ -8132,33 +8411,33 @@ function Ih(t, r, a, s, u, d) {
|
|
|
8132
8411
|
"on-update:value"
|
|
8133
8412
|
]);
|
|
8134
8413
|
}
|
|
8135
|
-
var
|
|
8136
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
8137
|
-
var
|
|
8414
|
+
var Kh = /*#__PURE__*/ W(Wh, [["render", Gh]]), qh = "#007AFF", Jh = "#0A84FF", Yh = "#FF9500", Xh = "#FF9F0A", Zh = "#28CD41", Qh = "#32D74B", $h = "#FFCC00", eg = "#FFD60A", tg = "#FF3B30", ng = "#FF453A";
|
|
8415
|
+
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover = Jh, H.common.infoColor = "#FF9F0A", H.common.infoColorHover = Xh, H.common.successColor = "#32D74B", H.common.successColorHover = Qh, H.common.warningColor = "#FFD60A", H.common.successColorHover = eg, H.common.errorColor = "#FF453A", H.common.errorColorHover = ng, H.common.borderRadius = "var(--borderRadius)", H.common.inputColor = "rgba(var(--input))", H.common.borderColor = "rgba(var(--border), 0.7)", H.DataTable.tdColor = "#2d2d31";
|
|
8416
|
+
var rg = {
|
|
8138
8417
|
common: {
|
|
8139
8418
|
inputColor: "rgba(var(--input))",
|
|
8140
8419
|
borderColor: "rgba(var(--border), 0.7)",
|
|
8141
8420
|
borderRadius: "var(--borderRadius)",
|
|
8142
|
-
primaryColor:
|
|
8143
|
-
primaryColorHover:
|
|
8144
|
-
primaryColorPressed:
|
|
8145
|
-
primaryColorSuppl:
|
|
8146
|
-
infoColor:
|
|
8147
|
-
infoColorHover:
|
|
8148
|
-
infoColorPressed:
|
|
8149
|
-
infoColorSuppl:
|
|
8150
|
-
successColor:
|
|
8151
|
-
successColorHover:
|
|
8152
|
-
successColorPressed:
|
|
8153
|
-
successColorSuppl:
|
|
8154
|
-
warningColor:
|
|
8155
|
-
warningColorHover:
|
|
8156
|
-
warningColorPressed:
|
|
8157
|
-
warningColorSuppl:
|
|
8158
|
-
errorColor:
|
|
8159
|
-
errorColorHover:
|
|
8160
|
-
errorColorPressed:
|
|
8161
|
-
errorColorSuppl:
|
|
8421
|
+
primaryColor: qh,
|
|
8422
|
+
primaryColorHover: Jh,
|
|
8423
|
+
primaryColorPressed: qh,
|
|
8424
|
+
primaryColorSuppl: qh,
|
|
8425
|
+
infoColor: Yh,
|
|
8426
|
+
infoColorHover: Xh,
|
|
8427
|
+
infoColorPressed: Yh,
|
|
8428
|
+
infoColorSuppl: Yh,
|
|
8429
|
+
successColor: Zh,
|
|
8430
|
+
successColorHover: Qh,
|
|
8431
|
+
successColorPressed: Zh,
|
|
8432
|
+
successColorSuppl: Zh,
|
|
8433
|
+
warningColor: $h,
|
|
8434
|
+
warningColorHover: eg,
|
|
8435
|
+
warningColorPressed: $h,
|
|
8436
|
+
warningColorSuppl: $h,
|
|
8437
|
+
errorColor: tg,
|
|
8438
|
+
errorColorHover: ng,
|
|
8439
|
+
errorColorPressed: tg,
|
|
8440
|
+
errorColorSuppl: tg,
|
|
8162
8441
|
cardColor: "#fff"
|
|
8163
8442
|
},
|
|
8164
8443
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -8166,7 +8445,7 @@ var Jh = {
|
|
|
8166
8445
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
8167
8446
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
8168
8447
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
8169
|
-
},
|
|
8448
|
+
}, ig = H, ag = d({
|
|
8170
8449
|
name: "UzWrap",
|
|
8171
8450
|
components: { NConfigProvider: ae },
|
|
8172
8451
|
setup() {
|
|
@@ -8174,14 +8453,14 @@ var Jh = {
|
|
|
8174
8453
|
zhCN: Ue,
|
|
8175
8454
|
dateZhCN: Ve,
|
|
8176
8455
|
commonStore: q,
|
|
8177
|
-
lightTheme:
|
|
8178
|
-
darkTheme:
|
|
8456
|
+
lightTheme: rg,
|
|
8457
|
+
darkTheme: ig
|
|
8179
8458
|
};
|
|
8180
8459
|
}
|
|
8181
8460
|
});
|
|
8182
8461
|
//#endregion
|
|
8183
8462
|
//#region components/wrap/index.vue
|
|
8184
|
-
function
|
|
8463
|
+
function og(e, t, r, i, a, o) {
|
|
8185
8464
|
let s = D("NConfigProvider");
|
|
8186
8465
|
return x(), n(s, {
|
|
8187
8466
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -8200,10 +8479,10 @@ function Zh(e, t, r, i, a, o) {
|
|
|
8200
8479
|
"date-locale"
|
|
8201
8480
|
]);
|
|
8202
8481
|
}
|
|
8203
|
-
var
|
|
8482
|
+
var sg = /*#__PURE__*/ W(ag, [["render", og]]);
|
|
8204
8483
|
//#endregion
|
|
8205
8484
|
//#region components/ocr/preprocess.ts
|
|
8206
|
-
function
|
|
8485
|
+
function cg(e) {
|
|
8207
8486
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
8208
8487
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
8209
8488
|
let r = 0;
|
|
@@ -8218,7 +8497,7 @@ function $h(e) {
|
|
|
8218
8497
|
}
|
|
8219
8498
|
return c;
|
|
8220
8499
|
}
|
|
8221
|
-
function
|
|
8500
|
+
function lg(e, t) {
|
|
8222
8501
|
return new Promise((n, r) => {
|
|
8223
8502
|
let i = new Image();
|
|
8224
8503
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -8251,7 +8530,7 @@ function eg(e, t) {
|
|
|
8251
8530
|
}
|
|
8252
8531
|
let u = t.threshold;
|
|
8253
8532
|
if (t.binarize) {
|
|
8254
|
-
t.autoThreshold && (u =
|
|
8533
|
+
t.autoThreshold && (u = cg(l));
|
|
8255
8534
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
8256
8535
|
let n = l[t] < u ? 0 : 255;
|
|
8257
8536
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -8274,7 +8553,7 @@ function eg(e, t) {
|
|
|
8274
8553
|
}
|
|
8275
8554
|
//#endregion
|
|
8276
8555
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
8277
|
-
var
|
|
8556
|
+
var ug = d({
|
|
8278
8557
|
name: "UzOcr",
|
|
8279
8558
|
components: {
|
|
8280
8559
|
NButton: L,
|
|
@@ -8311,7 +8590,7 @@ var tg = d({
|
|
|
8311
8590
|
tessedit_char_blacklist: "|"
|
|
8312
8591
|
}), a.value), v = async () => {
|
|
8313
8592
|
if (f.value) try {
|
|
8314
|
-
let e = await
|
|
8593
|
+
let e = await lg(f.value, {
|
|
8315
8594
|
enabled: o.value,
|
|
8316
8595
|
scale: s.value,
|
|
8317
8596
|
grayscale: !0,
|
|
@@ -8348,7 +8627,7 @@ var tg = d({
|
|
|
8348
8627
|
n.value = !0, r.value = e("OCR.analysis");
|
|
8349
8628
|
let a = t;
|
|
8350
8629
|
if (o.value || s.value > 1) try {
|
|
8351
|
-
let e = await
|
|
8630
|
+
let e = await lg(t, {
|
|
8352
8631
|
enabled: o.value,
|
|
8353
8632
|
scale: s.value,
|
|
8354
8633
|
grayscale: !0,
|
|
@@ -8410,25 +8689,25 @@ var tg = d({
|
|
|
8410
8689
|
t: e
|
|
8411
8690
|
};
|
|
8412
8691
|
}
|
|
8413
|
-
}),
|
|
8692
|
+
}), dg = { class: "uz-ocr" }, fg = { class: "uz-ocr-left-col" }, pg = { class: "uz-ocr-upload-card" }, mg = { class: "uz-ocr-upload-title" }, hg = {
|
|
8414
8693
|
key: 1,
|
|
8415
8694
|
class: "uz-ocr-preview-panel"
|
|
8416
|
-
},
|
|
8695
|
+
}, gg = { class: "uz-ocr-preview-box" }, _g = ["src"], vg = {
|
|
8417
8696
|
key: 0,
|
|
8418
8697
|
class: "uz-ocr-threshold-badge"
|
|
8419
|
-
},
|
|
8698
|
+
}, yg = { class: "uz-ocr-preview-box" }, bg = ["src"], xg = { class: "uz-ocr-settings-form" }, Sg = { class: "uz-settings-row" }, Cg = { class: "uz-settings-label" }, wg = {
|
|
8420
8699
|
key: 0,
|
|
8421
8700
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
8422
|
-
},
|
|
8701
|
+
}, Tg = { class: "uz-settings-row" }, Eg = { class: "uz-settings-label" }, Dg = { class: "uz-settings-row" }, Og = { class: "uz-settings-label" }, kg = { class: "uz-ocr-right-col" }, Ag = { class: "uz-ocr-result-header" }, jg = { class: "uz-result-title" }, Mg = {
|
|
8423
8702
|
key: 0,
|
|
8424
8703
|
class: "uz-ocr-empty-state"
|
|
8425
|
-
},
|
|
8704
|
+
}, Ng = { class: "uz-empty-text" }, Pg = {
|
|
8426
8705
|
key: 1,
|
|
8427
8706
|
class: "uz-ocr-result-tabs"
|
|
8428
8707
|
};
|
|
8429
|
-
function
|
|
8708
|
+
function Fg(e, t, o, s, u, d) {
|
|
8430
8709
|
let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
|
|
8431
|
-
return x(), i("div",
|
|
8710
|
+
return x(), i("div", dg, [a("div", fg, [e.rawImage ? (x(), i("div", hg, [l(m, {
|
|
8432
8711
|
value: e.imagePreviewTab,
|
|
8433
8712
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
8434
8713
|
type: "segment",
|
|
@@ -8438,21 +8717,21 @@ function Eg(e, t, o, s, u, d) {
|
|
|
8438
8717
|
name: "processed",
|
|
8439
8718
|
tab: e.t("OCR.previewProcessed")
|
|
8440
8719
|
}, {
|
|
8441
|
-
default: N(() => [a("div",
|
|
8720
|
+
default: N(() => [a("div", gg, [a("img", {
|
|
8442
8721
|
src: e.processedImage,
|
|
8443
8722
|
alt: "Processed Preview",
|
|
8444
8723
|
class: "uz-ocr-preview-img"
|
|
8445
|
-
}, null, 8,
|
|
8724
|
+
}, null, 8, _g), e.preEnabled && e.preBinarize ? (x(), i("div", vg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
|
|
8446
8725
|
_: 1
|
|
8447
8726
|
}, 8, ["tab"]), l(p, {
|
|
8448
8727
|
name: "raw",
|
|
8449
8728
|
tab: e.t("OCR.previewRaw")
|
|
8450
8729
|
}, {
|
|
8451
|
-
default: N(() => [a("div",
|
|
8730
|
+
default: N(() => [a("div", yg, [a("img", {
|
|
8452
8731
|
src: e.rawImage,
|
|
8453
8732
|
alt: "Raw Preview",
|
|
8454
8733
|
class: "uz-ocr-preview-img"
|
|
8455
|
-
}, null, 8,
|
|
8734
|
+
}, null, 8, bg)])]),
|
|
8456
8735
|
_: 1
|
|
8457
8736
|
}, 8, ["tab"])]),
|
|
8458
8737
|
_: 1
|
|
@@ -8486,7 +8765,7 @@ function Eg(e, t, o, s, u, d) {
|
|
|
8486
8765
|
"directory-dnd": "",
|
|
8487
8766
|
class: "uz-w-full"
|
|
8488
8767
|
}, {
|
|
8489
|
-
default: N(() => [a("div",
|
|
8768
|
+
default: N(() => [a("div", pg, [
|
|
8490
8769
|
t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
|
|
8491
8770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8492
8771
|
viewBox: "0 0 24 24",
|
|
@@ -8494,27 +8773,27 @@ function Eg(e, t, o, s, u, d) {
|
|
|
8494
8773
|
height: "40",
|
|
8495
8774
|
fill: "currentColor"
|
|
8496
8775
|
}, [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),
|
|
8497
|
-
a("div",
|
|
8776
|
+
a("div", mg, A(e.t("OCR.scan")), 1),
|
|
8498
8777
|
t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8499
8778
|
])]),
|
|
8500
8779
|
_: 1
|
|
8501
|
-
}, 8, ["on-before-upload"])), a("div",
|
|
8780
|
+
}, 8, ["on-before-upload"])), a("div", xg, [a("div", Sg, [a("span", Cg, A(e.t("OCR.preprocess")), 1), l(_, {
|
|
8502
8781
|
value: e.preEnabled,
|
|
8503
8782
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8504
8783
|
size: "small"
|
|
8505
|
-
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div",
|
|
8784
|
+
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", wg, [a("div", Tg, [a("span", Eg, A(e.t("OCR.scale")), 1), l(v, {
|
|
8506
8785
|
value: e.preScale,
|
|
8507
8786
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8508
8787
|
options: e.scaleOptions,
|
|
8509
8788
|
size: "small",
|
|
8510
8789
|
class: "uz-settings-select"
|
|
8511
|
-
}, null, 8, ["value", "options"])]), a("div",
|
|
8790
|
+
}, null, 8, ["value", "options"])]), a("div", Dg, [a("span", Og, A(e.t("OCR.contrast")), 1), l(_, {
|
|
8512
8791
|
value: e.preContrast,
|
|
8513
8792
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8514
8793
|
size: "small"
|
|
8515
|
-
}, null, 8, ["value"])])])) : r("", !0)])]), a("div",
|
|
8794
|
+
}, null, 8, ["value"])])])) : r("", !0)])]), a("div", kg, [a("div", Ag, [a("span", jg, "识别结果 (" + A(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Pg, A(e.fullText), 1)) : (x(), i("div", Mg, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Ng, A(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
8516
8795
|
}
|
|
8517
|
-
var
|
|
8796
|
+
var Ig = /*#__PURE__*/ W(ug, [["render", Fg], ["__scopeId", "data-v-c7224ff5"]]), Lg = /* @__PURE__ */ lt({
|
|
8518
8797
|
AccessPoint: () => mt,
|
|
8519
8798
|
Activity: () => vt,
|
|
8520
8799
|
Adjustments: () => St,
|
|
@@ -8643,54 +8922,55 @@ var Dg = /*#__PURE__*/ W(tg, [["render", Eg], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
8643
8922
|
UserPlus: () => Ml,
|
|
8644
8923
|
Users: () => Il,
|
|
8645
8924
|
UzActionButton: () => ut,
|
|
8646
|
-
UzBack: () =>
|
|
8647
|
-
UzCamera: () =>
|
|
8648
|
-
UzCircle: () =>
|
|
8649
|
-
UzDraggableForm: () =>
|
|
8650
|
-
UzForm: () =>
|
|
8651
|
-
UzFormItem: () =>
|
|
8652
|
-
UzFormItemImage: () =>
|
|
8653
|
-
UzFormItemTimesPicker: () =>
|
|
8654
|
-
UzFormItemUpload: () =>
|
|
8925
|
+
UzBack: () => Wf,
|
|
8926
|
+
UzCamera: () => am,
|
|
8927
|
+
UzCircle: () => Tp,
|
|
8928
|
+
UzDraggableForm: () => Rp,
|
|
8929
|
+
UzForm: () => Np,
|
|
8930
|
+
UzFormItem: () => kp,
|
|
8931
|
+
UzFormItemImage: () => Jp,
|
|
8932
|
+
UzFormItemTimesPicker: () => Qp,
|
|
8933
|
+
UzFormItemUpload: () => Wp,
|
|
8655
8934
|
UzIcon: () => Iu,
|
|
8656
|
-
UzOcr: () =>
|
|
8657
|
-
UzSearchBar: () =>
|
|
8658
|
-
UzSearchMobileBar: () =>
|
|
8659
|
-
UzSpin: () =>
|
|
8660
|
-
UzTable: () =>
|
|
8661
|
-
UzTableChild: () =>
|
|
8662
|
-
UzTableDrawer: () =>
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8935
|
+
UzOcr: () => Ig,
|
|
8936
|
+
UzSearchBar: () => fm,
|
|
8937
|
+
UzSearchMobileBar: () => vm,
|
|
8938
|
+
UzSpin: () => Bm,
|
|
8939
|
+
UzTable: () => oh,
|
|
8940
|
+
UzTableChild: () => mh,
|
|
8941
|
+
UzTableDrawer: () => Dh,
|
|
8942
|
+
UzTableFilePort: () => Ym,
|
|
8943
|
+
UzTableMobile: () => Lh,
|
|
8944
|
+
UzTableQuestChild: () => bh,
|
|
8945
|
+
UzThumbnail: () => Kh,
|
|
8946
|
+
UzWrap: () => sg,
|
|
8667
8947
|
X: () => Bl,
|
|
8668
8948
|
commonStore: () => q,
|
|
8669
|
-
fnActionReduction: () =>
|
|
8670
|
-
fnActionSimplify: () =>
|
|
8671
|
-
fnAddThumbnail: () =>
|
|
8672
|
-
fnClearAllThumbnail: () =>
|
|
8673
|
-
fnDeleteThumbnail: () =>
|
|
8674
|
-
fnGetTableData: () =>
|
|
8675
|
-
fnOptionReduction: () =>
|
|
8676
|
-
fnOptionSimplify: () =>
|
|
8677
|
-
fnPrepareFormData: () =>
|
|
8678
|
-
fnPrepareTableData: () =>
|
|
8679
|
-
fnRenderAction: () =>
|
|
8949
|
+
fnActionReduction: () => Vf,
|
|
8950
|
+
fnActionSimplify: () => Bf,
|
|
8951
|
+
fnAddThumbnail: () => Vh,
|
|
8952
|
+
fnClearAllThumbnail: () => Uh,
|
|
8953
|
+
fnDeleteThumbnail: () => Hh,
|
|
8954
|
+
fnGetTableData: () => km,
|
|
8955
|
+
fnOptionReduction: () => Fm,
|
|
8956
|
+
fnOptionSimplify: () => Pm,
|
|
8957
|
+
fnPrepareFormData: () => Im,
|
|
8958
|
+
fnPrepareTableData: () => Lm,
|
|
8959
|
+
fnRenderAction: () => Nf,
|
|
8680
8960
|
fnSetLang: () => Bu,
|
|
8681
8961
|
fnSetTheme: () => Vu,
|
|
8682
|
-
fnSetThumbnail: () =>
|
|
8683
|
-
fnTableReduction: () =>
|
|
8684
|
-
fnTableSimplify: () =>
|
|
8685
|
-
fnTriggersReduction: () =>
|
|
8686
|
-
fnTriggersSimplify: () =>
|
|
8962
|
+
fnSetThumbnail: () => zh,
|
|
8963
|
+
fnTableReduction: () => jm,
|
|
8964
|
+
fnTableSimplify: () => Am,
|
|
8965
|
+
fnTriggersReduction: () => Nm,
|
|
8966
|
+
fnTriggersSimplify: () => Mm,
|
|
8687
8967
|
i18n: () => K
|
|
8688
|
-
}),
|
|
8689
|
-
function
|
|
8690
|
-
|
|
8968
|
+
}), Rg = 3840, zg = 2160, Bg = C({ scale: 1 });
|
|
8969
|
+
function Vg(e, t) {
|
|
8970
|
+
Rg = e, zg = t;
|
|
8691
8971
|
}
|
|
8692
|
-
function
|
|
8693
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
8972
|
+
function Hg() {
|
|
8973
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = Rg, i = zg, a = parseFloat((r / i).toFixed(5));
|
|
8694
8974
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
8695
8975
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
8696
8976
|
e = t > 1 ? 1 : t;
|
|
@@ -8698,17 +8978,17 @@ function Ng() {
|
|
|
8698
8978
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
8699
8979
|
e = n > 1 ? 1 : n;
|
|
8700
8980
|
}
|
|
8701
|
-
|
|
8981
|
+
Bg.scale = e;
|
|
8702
8982
|
}
|
|
8703
|
-
function
|
|
8704
|
-
let e = Qe(
|
|
8983
|
+
function Ug() {
|
|
8984
|
+
let e = Qe(Hg, 200);
|
|
8705
8985
|
return e(), window.addEventListener("resize", e), () => {
|
|
8706
|
-
|
|
8986
|
+
Rg = 3840, zg = 2160, window.removeEventListener("resize", e);
|
|
8707
8987
|
};
|
|
8708
8988
|
}
|
|
8709
8989
|
//#endregion
|
|
8710
8990
|
//#region components/hooks/useThrottleFn.ts
|
|
8711
|
-
function
|
|
8991
|
+
function Wg(e, n = 1e3) {
|
|
8712
8992
|
let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
|
|
8713
8993
|
return b(() => {
|
|
8714
8994
|
i.value.cancel();
|
|
@@ -8720,14 +9000,14 @@ function Fg(e, n = 1e3) {
|
|
|
8720
9000
|
}
|
|
8721
9001
|
//#endregion
|
|
8722
9002
|
//#region components/hooks/useLocalStorage.ts
|
|
8723
|
-
function
|
|
9003
|
+
function Gg(e, t) {
|
|
8724
9004
|
return [w(X(e, t?.defaultValue)), (n) => {
|
|
8725
9005
|
n === void 0 ? ad(e) : Y(e, n, t?.expired || "1 Day");
|
|
8726
9006
|
}];
|
|
8727
9007
|
}
|
|
8728
9008
|
//#endregion
|
|
8729
9009
|
//#region components/hooks/useQuery.ts
|
|
8730
|
-
function
|
|
9010
|
+
function Kg(e, t, n) {
|
|
8731
9011
|
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 = () => {
|
|
8732
9012
|
ff(), clearInterval(o.value), o.value = null;
|
|
8733
9013
|
}, p = async () => {
|
|
@@ -8793,26 +9073,26 @@ function Lg(e, t, n) {
|
|
|
8793
9073
|
}
|
|
8794
9074
|
//#endregion
|
|
8795
9075
|
//#region package.json
|
|
8796
|
-
var
|
|
8797
|
-
async function
|
|
9076
|
+
var qg = "0.1.80", Jg;
|
|
9077
|
+
async function Yg() {
|
|
8798
9078
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8799
9079
|
method: "HEAD",
|
|
8800
9080
|
cache: "no-cache"
|
|
8801
9081
|
});
|
|
8802
9082
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
8803
9083
|
}
|
|
8804
|
-
async function
|
|
8805
|
-
let e = await
|
|
8806
|
-
|
|
9084
|
+
async function Xg() {
|
|
9085
|
+
let e = await Yg();
|
|
9086
|
+
Jg !== e && Hu(!0);
|
|
8807
9087
|
}
|
|
8808
|
-
async function
|
|
8809
|
-
|
|
8810
|
-
|
|
9088
|
+
async function Zg() {
|
|
9089
|
+
Jg = await Yg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
9090
|
+
Xg();
|
|
8811
9091
|
}, 60 * 1e3);
|
|
8812
9092
|
}
|
|
8813
9093
|
//#endregion
|
|
8814
9094
|
//#region components/create.ts
|
|
8815
|
-
function
|
|
9095
|
+
function Qg({ components: e = [] } = {}) {
|
|
8816
9096
|
let t = [];
|
|
8817
9097
|
function n(e, t, n) {
|
|
8818
9098
|
e.component(t) || e.component(t, n);
|
|
@@ -8825,16 +9105,16 @@ function Ug({ components: e = [] } = {}) {
|
|
|
8825
9105
|
});
|
|
8826
9106
|
}), i)) {
|
|
8827
9107
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorInfo: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = X("theme", !1), l = X("lang", s);
|
|
8828
|
-
Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a &&
|
|
9108
|
+
Uu(e), zu(o), Bu(l), Vu(c), K.global.locale.value = l, a && Zg(), t && tf(r, t, n);
|
|
8829
9109
|
}
|
|
8830
9110
|
}
|
|
8831
9111
|
return {
|
|
8832
|
-
version:
|
|
9112
|
+
version: qg,
|
|
8833
9113
|
install: r
|
|
8834
9114
|
};
|
|
8835
9115
|
}
|
|
8836
9116
|
//#endregion
|
|
8837
9117
|
//#region components/preset.ts
|
|
8838
|
-
var
|
|
9118
|
+
var $g = Qg({ components: Object.keys(Lg).map((e) => Lg[e]) }), e_ = $g.install;
|
|
8839
9119
|
//#endregion
|
|
8840
|
-
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, mf 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, hf 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, gf as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, pf 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, Q 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,
|
|
9120
|
+
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, mf 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, hf 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, gf as FILE, Eo as File, Ao as FileAlert, Po as FileAnalytics, Ro as FileText, Ho as Filter, pf 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, Q 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, Wf as UzBack, am as UzCamera, Tp as UzCircle, Rp as UzDraggableForm, Np as UzForm, kp as UzFormItem, Jp as UzFormItemImage, Qp as UzFormItemTimesPicker, Wp as UzFormItemUpload, Iu as UzIcon, Ig as UzOcr, fm as UzSearchBar, vm as UzSearchMobileBar, Bm as UzSpin, oh as UzTable, mh as UzTableChild, Dh as UzTableDrawer, Ym as UzTableFilePort, Lh as UzTableMobile, bh as UzTableQuestChild, Kh as UzThumbnail, sg as UzWrap, Bl as X, q as commonStore, Qg as create, ig as darkTheme, $g as default, Vf as fnActionReduction, Bf as fnActionSimplify, Vh as fnAddThumbnail, ff as fnCancelFetch, Uh as fnClearAllThumbnail, Hg as fnComputedScale, Ru as fnCreateRouter, ad as fnDelStorage, sd as fnDelStorageAll, od as fnDelStorageByPrefix, Hh as fnDeleteThumbnail, id as fnDialog, J as fnErrorLog, _d as fnFilterByPinyinInitials, ud as fnFormatTime, md as fnFormatUnits, pd as fnFullScreen, X as fnGetStorage, km as fnGetTableData, Ug as fnListenerScale, rd as fnNotification, Fm as fnOptionReduction, Pm as fnOptionSimplify, ld as fnPageModel2Naive, Im as fnPrepareFormData, Lm as fnPrepareTableData, Nf as fnRenderAction, cd as fnScrollTop, Bu as fnSetLang, Vg as fnSetNormalWidthAndHeight, Y as fnSetStorage, Vu as fnSetTheme, zh as fnSetThumbnail, jm as fnTableReduction, Am as fnTableSimplify, fd as fnThrottle, dd as fnTitle, Nm as fnTriggersReduction, Mm as fnTriggersSimplify, K as i18n, e_ as install, rg as lightTheme, vd as mergeColumns, G as router, Bg as scaleStore, ym as useDebounceFn, Gg as useLocalStorage, Kg as useQuery, Wg as useThrottleFn };
|