@unizhen/ui 0.1.79 → 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 +682 -403
- 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;
|
|
@@ -2615,7 +2621,8 @@ lf.interceptors.request.use((e) => {
|
|
|
2615
2621
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
2616
2622
|
}, (e) => Promise.reject(e)), lf.interceptors.response.use((e) => {
|
|
2617
2623
|
let t = e.data;
|
|
2618
|
-
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") {
|
|
2619
2626
|
let t = cf(e.headers);
|
|
2620
2627
|
return Promise.resolve({
|
|
2621
2628
|
fileName: decodeURIComponent(t),
|
|
@@ -2687,10 +2694,13 @@ var df = "/apiserver/", ff = () => {
|
|
|
2687
2694
|
calculationIds: e,
|
|
2688
2695
|
linkId: t,
|
|
2689
2696
|
...n
|
|
2690
|
-
}), 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" } }, {
|
|
2691
2701
|
trigger: () => e,
|
|
2692
2702
|
default: () => typeof t == "function" ? t() : t
|
|
2693
|
-
}),
|
|
2703
|
+
}), kf = (e, t, n, r) => {
|
|
2694
2704
|
try {
|
|
2695
2705
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
2696
2706
|
n && n();
|
|
@@ -2704,7 +2714,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2704
2714
|
} catch (e) {
|
|
2705
2715
|
J(e);
|
|
2706
2716
|
}
|
|
2707
|
-
},
|
|
2717
|
+
}, Af = (e, t, n, r, i) => {
|
|
2708
2718
|
let a = {
|
|
2709
2719
|
quaternary: i?.quaternary || !1,
|
|
2710
2720
|
size: i?.size || "small",
|
|
@@ -2717,36 +2727,36 @@ var df = "/apiserver/", ff = () => {
|
|
|
2717
2727
|
if (!e.confirmText) {
|
|
2718
2728
|
if (e.onClick && typeof e.onClick == "string") {
|
|
2719
2729
|
let i = e.onClick;
|
|
2720
|
-
a.onClick = () =>
|
|
2730
|
+
a.onClick = () => kf(i, t, n, r);
|
|
2721
2731
|
}
|
|
2722
2732
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
2723
2733
|
}
|
|
2724
2734
|
return e.icon && (o.icon = () => f(V, {}, { default: () => f(Iu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
|
|
2725
|
-
},
|
|
2735
|
+
}, jf = (e, t, n, r, i) => {
|
|
2726
2736
|
let a = { placement: "left" };
|
|
2727
2737
|
if (typeof t.onClick == "string") {
|
|
2728
2738
|
let e = t.onClick;
|
|
2729
|
-
a["on-positive-click"] = () =>
|
|
2739
|
+
a["on-positive-click"] = () => kf(e, n, r, i);
|
|
2730
2740
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
2731
2741
|
return f(Te, a, {
|
|
2732
2742
|
default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
2733
2743
|
trigger: () => e
|
|
2734
2744
|
});
|
|
2735
|
-
},
|
|
2736
|
-
let a =
|
|
2737
|
-
return e.confirmText && (a =
|
|
2738
|
-
},
|
|
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 }) => {
|
|
2739
2749
|
let a = [];
|
|
2740
2750
|
return e.forEach((e) => {
|
|
2741
2751
|
if (e.type === "group") {
|
|
2742
2752
|
let o = [];
|
|
2743
2753
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
2744
|
-
o.push(
|
|
2754
|
+
o.push(Mf({
|
|
2745
2755
|
...a,
|
|
2746
2756
|
tooltipText: void 0
|
|
2747
2757
|
}, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
2748
2758
|
}), a.push(f(Ee, { trigger: "click" }, {
|
|
2749
|
-
trigger: () =>
|
|
2759
|
+
trigger: () => Af({
|
|
2750
2760
|
type: "normal",
|
|
2751
2761
|
key: e.key,
|
|
2752
2762
|
icon: e.icon,
|
|
@@ -2762,11 +2772,11 @@ var df = "/apiserver/", ff = () => {
|
|
|
2762
2772
|
}));
|
|
2763
2773
|
}
|
|
2764
2774
|
if (e.type === "normal") {
|
|
2765
|
-
let o =
|
|
2775
|
+
let o = Mf(e, t, n, r, i);
|
|
2766
2776
|
a.push(o);
|
|
2767
2777
|
}
|
|
2768
2778
|
}), f("div", { class: "uz-action-flex" }, { default: () => a });
|
|
2769
|
-
},
|
|
2779
|
+
}, Pf = (e) => {
|
|
2770
2780
|
switch (e) {
|
|
2771
2781
|
case "tertiary": return 1;
|
|
2772
2782
|
case "primary": return 2;
|
|
@@ -2776,7 +2786,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2776
2786
|
case "error": return 6;
|
|
2777
2787
|
default: return 0;
|
|
2778
2788
|
}
|
|
2779
|
-
},
|
|
2789
|
+
}, Ff = (e) => {
|
|
2780
2790
|
switch (e) {
|
|
2781
2791
|
case 1: return "tertiary";
|
|
2782
2792
|
case 2: return "primary";
|
|
@@ -2786,7 +2796,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2786
2796
|
case 6: return "error";
|
|
2787
2797
|
default: return "default";
|
|
2788
2798
|
}
|
|
2789
|
-
},
|
|
2799
|
+
}, If = (e) => {
|
|
2790
2800
|
switch (e) {
|
|
2791
2801
|
case "detailInside": return 0;
|
|
2792
2802
|
case "editInside": return 1;
|
|
@@ -2795,7 +2805,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2795
2805
|
case "enabledInside": return 4;
|
|
2796
2806
|
default: return e;
|
|
2797
2807
|
}
|
|
2798
|
-
},
|
|
2808
|
+
}, Lf = (e) => {
|
|
2799
2809
|
switch (e) {
|
|
2800
2810
|
case 0: return "detailInside";
|
|
2801
2811
|
case 1: return "editInside";
|
|
@@ -2804,66 +2814,66 @@ var df = "/apiserver/", ff = () => {
|
|
|
2804
2814
|
case 4: return "enabledInside";
|
|
2805
2815
|
default: return e;
|
|
2806
2816
|
}
|
|
2807
|
-
},
|
|
2817
|
+
}, Rf = (e) => ({
|
|
2808
2818
|
t: 0,
|
|
2809
2819
|
k: e.key,
|
|
2810
2820
|
d: e?.disabled,
|
|
2811
2821
|
l: e?.loading,
|
|
2812
2822
|
i: e?.icon,
|
|
2813
|
-
c:
|
|
2823
|
+
c: Pf(e?.color),
|
|
2814
2824
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
2815
2825
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
2816
2826
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
2817
2827
|
s: e?.optionsType,
|
|
2818
2828
|
u: e?.optionsSource,
|
|
2819
|
-
a:
|
|
2829
|
+
a: If(e?.action),
|
|
2820
2830
|
r: +!!e.footer,
|
|
2821
2831
|
g: +!!e.main,
|
|
2822
2832
|
h: +!!e.sub,
|
|
2823
2833
|
w: e?.width,
|
|
2824
2834
|
z: e?.onClick
|
|
2825
|
-
}),
|
|
2835
|
+
}), zf = (e) => ({
|
|
2826
2836
|
type: "normal",
|
|
2827
2837
|
key: e.k,
|
|
2828
2838
|
disabled: e?.d,
|
|
2829
2839
|
loading: e?.l,
|
|
2830
2840
|
icon: e?.i,
|
|
2831
|
-
color:
|
|
2841
|
+
color: Ff(e?.c),
|
|
2832
2842
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
2833
2843
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
2834
2844
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
2835
2845
|
optionsType: e?.s,
|
|
2836
2846
|
optionsSource: e?.u,
|
|
2837
|
-
action:
|
|
2847
|
+
action: Lf(e?.a),
|
|
2838
2848
|
footer: !!e.r,
|
|
2839
2849
|
sub: !!e.h,
|
|
2840
2850
|
main: !!e.g,
|
|
2841
2851
|
width: e?.w,
|
|
2842
2852
|
onClick: e?.z
|
|
2843
|
-
}),
|
|
2853
|
+
}), Bf = (e) => {
|
|
2844
2854
|
let t = [];
|
|
2845
|
-
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({
|
|
2846
2856
|
t: 1,
|
|
2847
2857
|
k: n.key,
|
|
2848
2858
|
i: n?.icon,
|
|
2849
|
-
x:
|
|
2859
|
+
x: Pf(n?.color),
|
|
2850
2860
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
2851
|
-
c: n.children.map((e) =>
|
|
2861
|
+
c: n.children.map((e) => Rf(e))
|
|
2852
2862
|
});
|
|
2853
2863
|
return t;
|
|
2854
|
-
},
|
|
2864
|
+
}, Vf = (e) => {
|
|
2855
2865
|
if (e && e[0] && e[0].type) return e;
|
|
2856
2866
|
let t = [];
|
|
2857
|
-
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({
|
|
2858
2868
|
type: "group",
|
|
2859
2869
|
key: n.k,
|
|
2860
2870
|
icon: n?.i,
|
|
2861
|
-
color:
|
|
2871
|
+
color: Ff(n?.x),
|
|
2862
2872
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
2863
|
-
children: n.c.map((e) =>
|
|
2873
|
+
children: n.c.map((e) => zf(e))
|
|
2864
2874
|
});
|
|
2865
2875
|
return t;
|
|
2866
|
-
},
|
|
2876
|
+
}, Hf = d({
|
|
2867
2877
|
name: "UzBack",
|
|
2868
2878
|
components: {
|
|
2869
2879
|
ArrowNarrowLeft: an,
|
|
@@ -2889,7 +2899,7 @@ var df = "/apiserver/", ff = () => {
|
|
|
2889
2899
|
});
|
|
2890
2900
|
//#endregion
|
|
2891
2901
|
//#region components/back/index.vue
|
|
2892
|
-
function
|
|
2902
|
+
function Uf(e, t, r, i, o, s) {
|
|
2893
2903
|
let c = D("ArrowNarrowLeft"), u = D("NIcon"), d = D("NButton");
|
|
2894
2904
|
return x(), n(d, {
|
|
2895
2905
|
quaternary: "",
|
|
@@ -2903,7 +2913,7 @@ function Bf(e, t, r, i, o, s) {
|
|
|
2903
2913
|
_: 1
|
|
2904
2914
|
}, 8, ["onClick"]);
|
|
2905
2915
|
}
|
|
2906
|
-
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) => {
|
|
2907
2917
|
if (!e) return "";
|
|
2908
2918
|
let t = e.toLowerCase();
|
|
2909
2919
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -2917,7 +2927,7 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2917
2927
|
return e.join(",");
|
|
2918
2928
|
}
|
|
2919
2929
|
return "0,0,0";
|
|
2920
|
-
},
|
|
2930
|
+
}, tp = d({
|
|
2921
2931
|
name: "UzCircle",
|
|
2922
2932
|
props: {
|
|
2923
2933
|
circle: {
|
|
@@ -2943,30 +2953,30 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2943
2953
|
return {
|
|
2944
2954
|
uniqueId: n,
|
|
2945
2955
|
blurFilterId: `uz-blurs-${n}`,
|
|
2946
|
-
backgroundBg: t(() => `rgba(${
|
|
2947
|
-
strokeDasharray:
|
|
2948
|
-
centerTransform:
|
|
2949
|
-
centerTransformUnit:
|
|
2950
|
-
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) => {
|
|
2951
2961
|
let t = Number(e) - 50;
|
|
2952
2962
|
return t < 0 && (t = 0), t;
|
|
2953
2963
|
})},1)`),
|
|
2954
|
-
colorB: t(() => `rgba(${
|
|
2964
|
+
colorB: t(() => `rgba(${ep(e.color)},1)`),
|
|
2955
2965
|
calculateCircle: () => {
|
|
2956
2966
|
let t = 314 - Number(e.circle) * Math.PI;
|
|
2957
2967
|
return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
|
|
2958
2968
|
},
|
|
2959
2969
|
calculateSemicircle: (t) => {
|
|
2960
2970
|
let n = t ?? Number(e.circle);
|
|
2961
|
-
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);
|
|
2962
2972
|
},
|
|
2963
2973
|
calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
|
|
2964
2974
|
};
|
|
2965
2975
|
}
|
|
2966
|
-
}),
|
|
2976
|
+
}), np = { class: "uz-circle" }, rp = {
|
|
2967
2977
|
key: 0,
|
|
2968
2978
|
viewBox: "40 20 120 120"
|
|
2969
|
-
},
|
|
2979
|
+
}, ip = ["id"], ap = ["stop-color"], op = ["stop-color"], sp = ["id"], cp = ["stroke"], lp = ["filter", "stroke"], up = ["filter", "transform"], dp = {
|
|
2970
2980
|
dx: "100",
|
|
2971
2981
|
dy: "90",
|
|
2972
2982
|
"text-anchor": "middle",
|
|
@@ -2975,7 +2985,7 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2975
2985
|
"font-size": "2rem",
|
|
2976
2986
|
"font-weight": "400"
|
|
2977
2987
|
}
|
|
2978
|
-
},
|
|
2988
|
+
}, fp = {
|
|
2979
2989
|
dx: "100",
|
|
2980
2990
|
dy: "105",
|
|
2981
2991
|
"text-anchor": "middle",
|
|
@@ -2984,20 +2994,20 @@ var Vf = /*#__PURE__*/ W(zf, [["render", Bf]]), Hf = 120, Uf = 10, Wf = Hf / 2,
|
|
|
2984
2994
|
"font-size": "0.6rem",
|
|
2985
2995
|
"font-weight": "400"
|
|
2986
2996
|
}
|
|
2987
|
-
},
|
|
2997
|
+
}, pp = {
|
|
2988
2998
|
key: 1,
|
|
2989
2999
|
viewBox: "0 0 120 120"
|
|
2990
|
-
},
|
|
3000
|
+
}, mp = ["id"], hp = ["stop-color"], gp = ["stop-color"], _p = ["id"], vp = [
|
|
2991
3001
|
"stroke-dasharray",
|
|
2992
3002
|
"stroke-dashoffset",
|
|
2993
3003
|
"transform"
|
|
2994
|
-
],
|
|
3004
|
+
], yp = ["filter", "stroke"], bp = [
|
|
2995
3005
|
"stroke-dasharray",
|
|
2996
3006
|
"stroke-dashoffset",
|
|
2997
3007
|
"transform"
|
|
2998
|
-
],
|
|
2999
|
-
function
|
|
3000
|
-
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, [
|
|
3001
3011
|
a("defs", null, [a("linearGradient", {
|
|
3002
3012
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
3003
3013
|
x1: "1",
|
|
@@ -3007,10 +3017,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3007
3017
|
}, [a("stop", {
|
|
3008
3018
|
offset: "0%",
|
|
3009
3019
|
"stop-color": e.colorA
|
|
3010
|
-
}, null, 8,
|
|
3020
|
+
}, null, 8, ap), a("stop", {
|
|
3011
3021
|
offset: "50%",
|
|
3012
3022
|
"stop-color": e.colorB
|
|
3013
|
-
}, null, 8,
|
|
3023
|
+
}, null, 8, op)], 8, ip), a("filter", { id: e.blurFilterId }, [...t[0] ||= [
|
|
3014
3024
|
a("feOffset", {
|
|
3015
3025
|
result: "offOut",
|
|
3016
3026
|
in: "SourceGraphic",
|
|
@@ -3027,7 +3037,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3027
3037
|
in2: "blurOut",
|
|
3028
3038
|
mode: "normal"
|
|
3029
3039
|
}, null, -1)
|
|
3030
|
-
]], 8,
|
|
3040
|
+
]], 8, sp)]),
|
|
3031
3041
|
a("circle", {
|
|
3032
3042
|
transform: "rotate(-90 100 80)",
|
|
3033
3043
|
cx: "100",
|
|
@@ -3037,7 +3047,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3037
3047
|
"stroke-width": "10",
|
|
3038
3048
|
"stroke-dashoffset": "0",
|
|
3039
3049
|
stroke: e.backgroundBg
|
|
3040
|
-
}, null, 8,
|
|
3050
|
+
}, null, 8, cp),
|
|
3041
3051
|
a("circle", {
|
|
3042
3052
|
class: "uz-circle-round",
|
|
3043
3053
|
filter: `url(#${e.blurFilterId})`,
|
|
@@ -3050,7 +3060,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3050
3060
|
"stroke-width": "10",
|
|
3051
3061
|
style: _(e.calculateCircle()),
|
|
3052
3062
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
3053
|
-
}, null, 12,
|
|
3063
|
+
}, null, 12, lp),
|
|
3054
3064
|
a("circle", {
|
|
3055
3065
|
class: "uz-circle-round",
|
|
3056
3066
|
filter: `url(#${e.blurFilterId})`,
|
|
@@ -3060,10 +3070,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3060
3070
|
"stroke-width": "0",
|
|
3061
3071
|
transform: e.calculatePoint(),
|
|
3062
3072
|
fill: "#fff"
|
|
3063
|
-
}, null, 8,
|
|
3064
|
-
a("text",
|
|
3065
|
-
a("text",
|
|
3066
|
-
])) : (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, [
|
|
3067
3077
|
a("defs", null, [a("linearGradient", {
|
|
3068
3078
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
3069
3079
|
x1: "1",
|
|
@@ -3073,10 +3083,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3073
3083
|
}, [a("stop", {
|
|
3074
3084
|
offset: "0%",
|
|
3075
3085
|
"stop-color": e.colorA
|
|
3076
|
-
}, null, 8,
|
|
3086
|
+
}, null, 8, hp), a("stop", {
|
|
3077
3087
|
offset: "50%",
|
|
3078
3088
|
"stop-color": e.colorB
|
|
3079
|
-
}, null, 8,
|
|
3089
|
+
}, null, 8, gp)], 8, mp), a("filter", { id: e.blurFilterId }, [...t[1] ||= [
|
|
3080
3090
|
a("feOffset", {
|
|
3081
3091
|
result: "offOut",
|
|
3082
3092
|
in: "SourceGraphic",
|
|
@@ -3093,7 +3103,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3093
3103
|
in2: "blurOut",
|
|
3094
3104
|
mode: "normal"
|
|
3095
3105
|
}, null, -1)
|
|
3096
|
-
]], 8,
|
|
3106
|
+
]], 8, _p)]),
|
|
3097
3107
|
a("g", {
|
|
3098
3108
|
fill: "none",
|
|
3099
3109
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -3107,7 +3117,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3107
3117
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`,
|
|
3108
3118
|
transform: "rotate(-225)",
|
|
3109
3119
|
class: "uz-semicircle-round"
|
|
3110
|
-
}, null, 8,
|
|
3120
|
+
}, null, 8, yp)], 8, vp),
|
|
3111
3121
|
a("g", {
|
|
3112
3122
|
fill: "none",
|
|
3113
3123
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -3119,7 +3129,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3119
3129
|
r: "52",
|
|
3120
3130
|
stroke: e.backgroundBg,
|
|
3121
3131
|
transform: "rotate(-225)"
|
|
3122
|
-
}, null, 8,
|
|
3132
|
+
}, null, 8, xp)], 8, bp),
|
|
3123
3133
|
a("text", {
|
|
3124
3134
|
fill: "var(--circle-color)",
|
|
3125
3135
|
"text-anchor": "middle",
|
|
@@ -3128,7 +3138,7 @@ function xp(e, t, n, r, o, s) {
|
|
|
3128
3138
|
"font-size": "2rem",
|
|
3129
3139
|
"font-weight": "400"
|
|
3130
3140
|
}
|
|
3131
|
-
}, A(e.circle), 9,
|
|
3141
|
+
}, A(e.circle), 9, Sp),
|
|
3132
3142
|
a("text", {
|
|
3133
3143
|
cy: "90",
|
|
3134
3144
|
fill: "var(--circle-unit-color)",
|
|
@@ -3138,10 +3148,10 @@ function xp(e, t, n, r, o, s) {
|
|
|
3138
3148
|
"font-size": "0.6rem",
|
|
3139
3149
|
"font-weight": "400"
|
|
3140
3150
|
}
|
|
3141
|
-
}, A(e.circleUnit), 9,
|
|
3151
|
+
}, A(e.circleUnit), 9, Cp)
|
|
3142
3152
|
]))]);
|
|
3143
3153
|
}
|
|
3144
|
-
var
|
|
3154
|
+
var Tp = /*#__PURE__*/ W(tp, [["render", wp]]), Ep = d({
|
|
3145
3155
|
name: "UzFormItem",
|
|
3146
3156
|
components: {
|
|
3147
3157
|
NIcon: V,
|
|
@@ -3272,8 +3282,8 @@ var Sp = /*#__PURE__*/ W(Qf, [["render", xp]]), Cp = d({
|
|
|
3272
3282
|
selectFilter: (e, t) => _d(t.label, e)
|
|
3273
3283
|
};
|
|
3274
3284
|
}
|
|
3275
|
-
}),
|
|
3276
|
-
function
|
|
3285
|
+
}), Dp = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3286
|
+
function Op(t, r, s, u, d, f) {
|
|
3277
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");
|
|
3278
3288
|
return t.item.input === "input" ? (x(), n(p, {
|
|
3279
3289
|
key: 0,
|
|
@@ -3578,7 +3588,7 @@ function Tp(t, r, s, u, d, f) {
|
|
|
3578
3588
|
value: t.formValue[t.item.key],
|
|
3579
3589
|
disabled: t.checkDisabled()
|
|
3580
3590
|
}, {
|
|
3581
|
-
default: N(() => [a("div",
|
|
3591
|
+
default: N(() => [a("div", Dp, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
|
|
3582
3592
|
key: e.value,
|
|
3583
3593
|
label: e.label,
|
|
3584
3594
|
value: e.value
|
|
@@ -3647,7 +3657,7 @@ function Tp(t, r, s, u, d, f) {
|
|
|
3647
3657
|
"status"
|
|
3648
3658
|
])) : (x(), i(e, { key: 14 }, [], 64));
|
|
3649
3659
|
}
|
|
3650
|
-
var
|
|
3660
|
+
var kp = /*#__PURE__*/ W(Ep, [["render", Op]]), Ap = d({
|
|
3651
3661
|
name: "UzForm",
|
|
3652
3662
|
components: {
|
|
3653
3663
|
NForm: pe,
|
|
@@ -3655,7 +3665,7 @@ var Ep = /*#__PURE__*/ W(Cp, [["render", Tp]]), Dp = d({
|
|
|
3655
3665
|
NDivider: ce,
|
|
3656
3666
|
NButton: L,
|
|
3657
3667
|
NIcon: V,
|
|
3658
|
-
UzFormItem:
|
|
3668
|
+
UzFormItem: kp,
|
|
3659
3669
|
Plus: uc
|
|
3660
3670
|
},
|
|
3661
3671
|
props: {
|
|
@@ -3860,8 +3870,8 @@ var Ep = /*#__PURE__*/ W(Cp, [["render", Tp]]), Dp = d({
|
|
|
3860
3870
|
}
|
|
3861
3871
|
};
|
|
3862
3872
|
}
|
|
3863
|
-
}),
|
|
3864
|
-
function
|
|
3873
|
+
}), jp = ["onClick"];
|
|
3874
|
+
function Mp(t, o, s, u, d, f) {
|
|
3865
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");
|
|
3866
3876
|
return x(), i(e, null, [l(C, {
|
|
3867
3877
|
ref: "formRef",
|
|
@@ -3889,7 +3899,7 @@ function kp(t, o, s, u, d, f) {
|
|
|
3889
3899
|
}, [l(m, null, {
|
|
3890
3900
|
default: N(() => [l(p)]),
|
|
3891
3901
|
_: 1
|
|
3892
|
-
}), o[0] ||= c(" 新增 ", -1)], 8,
|
|
3902
|
+
}), o[0] ||= c(" 新增 ", -1)], 8, jp)) : r("", !0),
|
|
3893
3903
|
s.form.showDays ? (x(), i("span", {
|
|
3894
3904
|
key: 1,
|
|
3895
3905
|
class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -3950,7 +3960,7 @@ function kp(t, o, s, u, d, f) {
|
|
|
3950
3960
|
onOnSubmit: t.refreshOption
|
|
3951
3961
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
3952
3962
|
}
|
|
3953
|
-
var
|
|
3963
|
+
var Np = /*#__PURE__*/ W(Ap, [["render", Mp]]), Pp = d({
|
|
3954
3964
|
name: "UzDraggableForm",
|
|
3955
3965
|
components: {
|
|
3956
3966
|
NForm: pe,
|
|
@@ -3958,7 +3968,7 @@ var Ap = /*#__PURE__*/ W(Dp, [["render", kp]]), jp = d({
|
|
|
3958
3968
|
NButton: L,
|
|
3959
3969
|
NIcon: V,
|
|
3960
3970
|
NDivider: ce,
|
|
3961
|
-
UzFormItem:
|
|
3971
|
+
UzFormItem: kp,
|
|
3962
3972
|
Trash: bl,
|
|
3963
3973
|
Plus: uc,
|
|
3964
3974
|
VueDraggable: tt
|
|
@@ -4057,14 +4067,14 @@ var Ap = /*#__PURE__*/ W(Dp, [["render", kp]]), jp = d({
|
|
|
4057
4067
|
}
|
|
4058
4068
|
};
|
|
4059
4069
|
}
|
|
4060
|
-
}),
|
|
4070
|
+
}), Fp = {
|
|
4061
4071
|
key: 0,
|
|
4062
4072
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
4063
|
-
},
|
|
4073
|
+
}, Ip = {
|
|
4064
4074
|
key: 1,
|
|
4065
4075
|
class: "uz-form-item-add"
|
|
4066
4076
|
};
|
|
4067
|
-
function
|
|
4077
|
+
function Lp(t, o, s, u, d, f) {
|
|
4068
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");
|
|
4069
4079
|
return x(), n(E, {
|
|
4070
4080
|
ref: "formRef",
|
|
@@ -4102,11 +4112,11 @@ function Pp(t, o, s, u, d, f) {
|
|
|
4102
4112
|
}, {
|
|
4103
4113
|
label: N(() => [
|
|
4104
4114
|
a("div", null, A(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
4105
|
-
s.source && s.form.createButton ? (x(), i("a",
|
|
4115
|
+
s.source && s.form.createButton ? (x(), i("a", Fp, [l(m, null, {
|
|
4106
4116
|
default: N(() => [l(p)]),
|
|
4107
4117
|
_: 1
|
|
4108
4118
|
}), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
|
|
4109
|
-
s.form.showDays ? (x(), i("span",
|
|
4119
|
+
s.form.showDays ? (x(), i("span", Ip, " showDays ")) : r("", !0)
|
|
4110
4120
|
]),
|
|
4111
4121
|
default: N(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
|
|
4112
4122
|
key: 0,
|
|
@@ -4233,7 +4243,7 @@ function Pp(t, o, s, u, d, f) {
|
|
|
4233
4243
|
"onClick"
|
|
4234
4244
|
]);
|
|
4235
4245
|
}
|
|
4236
|
-
var
|
|
4246
|
+
var Rp = /*#__PURE__*/ W(Pp, [["render", Lp]]), zp = d({
|
|
4237
4247
|
name: "UzFormItemUpload",
|
|
4238
4248
|
components: {
|
|
4239
4249
|
NUpload: Re,
|
|
@@ -4349,8 +4359,8 @@ var Fp = /*#__PURE__*/ W(jp, [["render", Pp]]), Ip = d({
|
|
|
4349
4359
|
}
|
|
4350
4360
|
};
|
|
4351
4361
|
}
|
|
4352
|
-
}),
|
|
4353
|
-
function
|
|
4362
|
+
}), Bp = { class: "uz-form-upload-item-inner" }, Vp = ["title"], Hp = { key: 0 };
|
|
4363
|
+
function Up(t, o, s, u, d, f) {
|
|
4354
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");
|
|
4355
4365
|
return x(), n(E, {
|
|
4356
4366
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -4404,10 +4414,10 @@ function Bp(t, o, s, u, d, f) {
|
|
|
4404
4414
|
}, {
|
|
4405
4415
|
default: N(() => [l(y)]),
|
|
4406
4416
|
_: 1
|
|
4407
|
-
}, 8, ["onClick"])), a("div",
|
|
4417
|
+
}, 8, ["onClick"])), a("div", Bp, [a("div", {
|
|
4408
4418
|
class: "uz-form-upload-title uz-truncate",
|
|
4409
4419
|
title: e.name
|
|
4410
|
-
}, 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) }, {
|
|
4411
4421
|
trigger: N(() => [l(S, {
|
|
4412
4422
|
size: "small",
|
|
4413
4423
|
tertiary: ""
|
|
@@ -4436,7 +4446,7 @@ function Bp(t, o, s, u, d, f) {
|
|
|
4436
4446
|
_: 1
|
|
4437
4447
|
}, 8, ["show"]);
|
|
4438
4448
|
}
|
|
4439
|
-
var
|
|
4449
|
+
var Wp = /*#__PURE__*/ W(zp, [["render", Up], ["__scopeId", "data-v-2daf6715"]]), Gp = d({
|
|
4440
4450
|
name: "UzFormItemImage",
|
|
4441
4451
|
components: {
|
|
4442
4452
|
NImageGroup: ve,
|
|
@@ -4482,11 +4492,11 @@ var Vp = /*#__PURE__*/ W(Ip, [["render", Bp], ["__scopeId", "data-v-2daf6715"]])
|
|
|
4482
4492
|
}
|
|
4483
4493
|
};
|
|
4484
4494
|
}
|
|
4485
|
-
}),
|
|
4486
|
-
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) {
|
|
4487
4497
|
let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
|
|
4488
4498
|
return x(), n(_, null, {
|
|
4489
|
-
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, {
|
|
4490
4500
|
key: 0,
|
|
4491
4501
|
width: "40",
|
|
4492
4502
|
src: r
|
|
@@ -4518,7 +4528,7 @@ function Wp(t, r, o, s, u, d) {
|
|
|
4518
4528
|
_: 1
|
|
4519
4529
|
});
|
|
4520
4530
|
}
|
|
4521
|
-
var
|
|
4531
|
+
var Jp = /*#__PURE__*/ W(Gp, [["render", qp]]), Yp = d({
|
|
4522
4532
|
name: "UzFormItemTimesPicker",
|
|
4523
4533
|
components: { NSelect: ke },
|
|
4524
4534
|
props: {
|
|
@@ -4568,10 +4578,10 @@ var Gp = /*#__PURE__*/ W(Hp, [["render", Wp]]), Kp = d({
|
|
|
4568
4578
|
}
|
|
4569
4579
|
};
|
|
4570
4580
|
}
|
|
4571
|
-
}),
|
|
4572
|
-
function
|
|
4581
|
+
}), Xp = { class: "times-picker" };
|
|
4582
|
+
function Zp(e, t, n, r, a, o) {
|
|
4573
4583
|
let s = D("NSelect");
|
|
4574
|
-
return x(), i("div",
|
|
4584
|
+
return x(), i("div", Xp, [
|
|
4575
4585
|
l(s, {
|
|
4576
4586
|
value: e.h,
|
|
4577
4587
|
options: e.times,
|
|
@@ -4619,7 +4629,7 @@ function Jp(e, t, n, r, a, o) {
|
|
|
4619
4629
|
])
|
|
4620
4630
|
]);
|
|
4621
4631
|
}
|
|
4622
|
-
var
|
|
4632
|
+
var Qp = /*#__PURE__*/ W(Yp, [["render", Zp], ["__scopeId", "data-v-12b4d7e3"]]), $p = d({
|
|
4623
4633
|
name: "UzCamera",
|
|
4624
4634
|
components: {
|
|
4625
4635
|
NButton: L,
|
|
@@ -4711,11 +4721,11 @@ var Yp = /*#__PURE__*/ W(Kp, [["render", Jp], ["__scopeId", "data-v-12b4d7e3"]])
|
|
|
4711
4721
|
closeAll: d
|
|
4712
4722
|
};
|
|
4713
4723
|
}
|
|
4714
|
-
}),
|
|
4724
|
+
}), em = ["width", "height"], tm = ["width", "height"], nm = { class: "uz-scan-video" }, rm = {
|
|
4715
4725
|
ref: "videoRef",
|
|
4716
4726
|
playsInline: ""
|
|
4717
4727
|
};
|
|
4718
|
-
function
|
|
4728
|
+
function im(t, o, s, l, u, d) {
|
|
4719
4729
|
let f = D("NButton"), p = D("NModal");
|
|
4720
4730
|
return x(), i(e, null, [
|
|
4721
4731
|
t.mode === "button" ? (x(), n(f, {
|
|
@@ -4747,7 +4757,7 @@ function tm(t, o, s, l, u, d) {
|
|
|
4747
4757
|
id: "uz-scan-canvas",
|
|
4748
4758
|
width: t.width,
|
|
4749
4759
|
height: t.height
|
|
4750
|
-
}, null, 8,
|
|
4760
|
+
}, null, 8, em)], 4)]),
|
|
4751
4761
|
_: 1
|
|
4752
4762
|
}, 8, [
|
|
4753
4763
|
"show",
|
|
@@ -4765,11 +4775,11 @@ function tm(t, o, s, l, u, d) {
|
|
|
4765
4775
|
id: "uz-scan-canvas",
|
|
4766
4776
|
width: t.width,
|
|
4767
4777
|
height: t.height
|
|
4768
|
-
}, null, 8,
|
|
4769
|
-
a("div",
|
|
4778
|
+
}, null, 8, tm)], 4)) : r("", !0),
|
|
4779
|
+
a("div", nm, [a("video", rm, null, 512)])
|
|
4770
4780
|
], 64);
|
|
4771
4781
|
}
|
|
4772
|
-
var
|
|
4782
|
+
var am = /*#__PURE__*/ W($p, [["render", im]]), om = /* @__PURE__ */ new WeakMap(), sm = d({
|
|
4773
4783
|
name: "UzSearchBar",
|
|
4774
4784
|
components: {
|
|
4775
4785
|
NIcon: V,
|
|
@@ -4780,7 +4790,7 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
|
|
|
4780
4790
|
NInputGroup: be,
|
|
4781
4791
|
NInputGroupLabel: xe,
|
|
4782
4792
|
NPopover: Ee,
|
|
4783
|
-
UzFormItem:
|
|
4793
|
+
UzFormItem: kp,
|
|
4784
4794
|
CaretDown: Fr,
|
|
4785
4795
|
Refresh: Ac,
|
|
4786
4796
|
Search: Xc,
|
|
@@ -4822,10 +4832,10 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
|
|
|
4822
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);
|
|
4823
4833
|
}
|
|
4824
4834
|
});
|
|
4825
|
-
n.observe(e),
|
|
4835
|
+
n.observe(e), om.set(e, n);
|
|
4826
4836
|
},
|
|
4827
4837
|
unmounted: (e) => {
|
|
4828
|
-
|
|
4838
|
+
om.get(e)?.disconnect(), om.delete(e);
|
|
4829
4839
|
}
|
|
4830
4840
|
} },
|
|
4831
4841
|
emits: ["update:loading", "on-update:value"],
|
|
@@ -4940,19 +4950,19 @@ var nm = /*#__PURE__*/ W(Xp, [["render", tm]]), rm = /* @__PURE__ */ new WeakMap
|
|
|
4940
4950
|
tabButtonType: b
|
|
4941
4951
|
};
|
|
4942
4952
|
}
|
|
4943
|
-
}),
|
|
4953
|
+
}), cm = {
|
|
4944
4954
|
key: 0,
|
|
4945
4955
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
|
|
4946
|
-
},
|
|
4956
|
+
}, lm = { class: "uz-flex-1" }, um = {
|
|
4947
4957
|
key: 1,
|
|
4948
4958
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
4949
4959
|
};
|
|
4950
|
-
function
|
|
4960
|
+
function dm(t, a, o, s, u, d) {
|
|
4951
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");
|
|
4952
4962
|
return x(), i("div", {
|
|
4953
4963
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
4954
4964
|
onKeyup: a[1] ||= F((e) => t.doSearch(!1), ["enter"])
|
|
4955
|
-
}, [t.enableHeader ? (x(), i("div",
|
|
4965
|
+
}, [t.enableHeader ? (x(), i("div", cm, [E(t.$slots, "header"), P((x(), i("div", lm, [l(b, {
|
|
4956
4966
|
"x-gap": "8",
|
|
4957
4967
|
"y-gap": "8",
|
|
4958
4968
|
cols: t.cols,
|
|
@@ -5009,7 +5019,7 @@ function cm(t, a, o, s, u, d) {
|
|
|
5009
5019
|
}, 1032, ["span"]))), 128))
|
|
5010
5020
|
]),
|
|
5011
5021
|
_: 1
|
|
5012
|
-
}, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div",
|
|
5022
|
+
}, 8, ["cols", "collapsed"])])), [[ee]])])) : r("", !0), t.enableHeader ? (x(), i("div", um, [
|
|
5013
5023
|
t.more ? (x(), n(f, {
|
|
5014
5024
|
key: 0,
|
|
5015
5025
|
quaternary: "",
|
|
@@ -5021,39 +5031,46 @@ function cm(t, a, o, s, u, d) {
|
|
|
5021
5031
|
}, 8, ["class"])]),
|
|
5022
5032
|
_: 1
|
|
5023
5033
|
}, 8, ["onClick"])) : r("", !0),
|
|
5024
|
-
t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(
|
|
5034
|
+
t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(_, {
|
|
5025
5035
|
key: 1,
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5036
|
+
trigger: "hover",
|
|
5037
|
+
placement: "bottom",
|
|
5038
|
+
"show-arrow": !1,
|
|
5039
|
+
style: { padding: "0" }
|
|
5029
5040
|
}, {
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5041
|
+
trigger: N(() => [l(f, {
|
|
5042
|
+
loading: t.loading,
|
|
5043
|
+
secondary: "",
|
|
5044
|
+
onClick: a[0] ||= (e) => t.doSearch(!1)
|
|
5033
5045
|
}, {
|
|
5034
|
-
|
|
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)]),
|
|
5035
5054
|
_: 1
|
|
5036
|
-
})]),
|
|
5037
|
-
default: N(() => [
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
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)]),
|
|
5048
5066
|
_: 1
|
|
5049
|
-
})]),
|
|
5050
|
-
default: N(() => [c(" " + A(t.$t("Common.reset")), 1)]),
|
|
5067
|
+
}, 8, ["loading", "onClick"])]),
|
|
5051
5068
|
_: 1
|
|
5052
|
-
}
|
|
5069
|
+
})) : r("", !0),
|
|
5053
5070
|
E(t.$slots, "action")
|
|
5054
5071
|
])) : r("", !0)], 32);
|
|
5055
5072
|
}
|
|
5056
|
-
var
|
|
5073
|
+
var fm = /*#__PURE__*/ W(sm, [["render", dm]]), pm = d({
|
|
5057
5074
|
name: "UzSearchMobileBar",
|
|
5058
5075
|
components: {
|
|
5059
5076
|
NIcon: V,
|
|
@@ -5066,7 +5083,7 @@ var lm = /*#__PURE__*/ W(im, [["render", cm]]), um = d({
|
|
|
5066
5083
|
NInputGroupLabel: xe,
|
|
5067
5084
|
Refresh: Ac,
|
|
5068
5085
|
Search: Xc,
|
|
5069
|
-
UzFormItem:
|
|
5086
|
+
UzFormItem: kp
|
|
5070
5087
|
},
|
|
5071
5088
|
props: {
|
|
5072
5089
|
data: {
|
|
@@ -5144,10 +5161,10 @@ var lm = /*#__PURE__*/ W(im, [["render", cm]]), um = d({
|
|
|
5144
5161
|
clearAll: l
|
|
5145
5162
|
};
|
|
5146
5163
|
}
|
|
5147
|
-
}),
|
|
5148
|
-
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) {
|
|
5149
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");
|
|
5150
|
-
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, {
|
|
5151
5168
|
key: 0,
|
|
5152
5169
|
secondary: "",
|
|
5153
5170
|
onClick: o[0] ||= (e) => t.drawer = !0
|
|
@@ -5172,7 +5189,7 @@ function mm(t, o, s, u, d, f) {
|
|
|
5172
5189
|
title: "查询",
|
|
5173
5190
|
closable: ""
|
|
5174
5191
|
}, {
|
|
5175
|
-
footer: N(() => [a("div",
|
|
5192
|
+
footer: N(() => [a("div", gm, [l(h, {
|
|
5176
5193
|
secondary: "",
|
|
5177
5194
|
loading: t.loading,
|
|
5178
5195
|
onClick: t.clearAll,
|
|
@@ -5227,10 +5244,10 @@ function mm(t, o, s, u, d, f) {
|
|
|
5227
5244
|
_: 1
|
|
5228
5245
|
}, 8, ["show"])], 64);
|
|
5229
5246
|
}
|
|
5230
|
-
var
|
|
5247
|
+
var vm = /*#__PURE__*/ W(pm, [["render", _m]]);
|
|
5231
5248
|
//#endregion
|
|
5232
5249
|
//#region components/hooks/useDebounceFn.ts
|
|
5233
|
-
function
|
|
5250
|
+
function ym(e, t = 1e3) {
|
|
5234
5251
|
let n = Qe(e, t);
|
|
5235
5252
|
return {
|
|
5236
5253
|
run: n,
|
|
@@ -5240,7 +5257,7 @@ function gm(e, t = 1e3) {
|
|
|
5240
5257
|
}
|
|
5241
5258
|
//#endregion
|
|
5242
5259
|
//#region components/table/factory.ts
|
|
5243
|
-
var
|
|
5260
|
+
var bm = /(?<=\[)(.+?)(?=\])/g, xm = {
|
|
5244
5261
|
index: 1,
|
|
5245
5262
|
selection: 0,
|
|
5246
5263
|
pagination: 1,
|
|
@@ -5250,16 +5267,17 @@ var _m = /(?<=\[)(.+?)(?=\])/g, vm = {
|
|
|
5250
5267
|
addButton: 1,
|
|
5251
5268
|
filterButton: 1,
|
|
5252
5269
|
commonTime: 1,
|
|
5270
|
+
filePort: 0,
|
|
5253
5271
|
actionWidth: 300,
|
|
5254
5272
|
drawerWidth: "70%",
|
|
5255
5273
|
drawerHeight: "96vh",
|
|
5256
5274
|
placement: "right",
|
|
5257
5275
|
summary: ""
|
|
5258
5276
|
};
|
|
5259
|
-
function
|
|
5277
|
+
function Sm(e) {
|
|
5260
5278
|
return Function("return " + e)();
|
|
5261
5279
|
}
|
|
5262
|
-
var
|
|
5280
|
+
var Cm = () => new Promise((e) => {
|
|
5263
5281
|
let t = window.localStorage.getItem("city");
|
|
5264
5282
|
if (t) e(JSON.parse(t));
|
|
5265
5283
|
else {
|
|
@@ -5272,9 +5290,9 @@ var bm = () => new Promise((e) => {
|
|
|
5272
5290
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
5273
5291
|
}, 500);
|
|
5274
5292
|
}
|
|
5275
|
-
}),
|
|
5293
|
+
}), wm = async (e, t, n) => {
|
|
5276
5294
|
if (t && typeof t == "string") {
|
|
5277
|
-
let r = t.match(
|
|
5295
|
+
let r = t.match(bm);
|
|
5278
5296
|
if (r && t.indexOf("return") === -1) {
|
|
5279
5297
|
let t = r[0].split(":");
|
|
5280
5298
|
if (t[0] === "date") return (t) => ud(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
@@ -5294,7 +5312,7 @@ var bm = () => new Promise((e) => {
|
|
|
5294
5312
|
}
|
|
5295
5313
|
}
|
|
5296
5314
|
return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
|
|
5297
|
-
},
|
|
5315
|
+
}, Tm = (e, t, n) => {
|
|
5298
5316
|
let r = t.map((t) => {
|
|
5299
5317
|
let r = [], i = t.id;
|
|
5300
5318
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -5307,37 +5325,37 @@ var bm = () => new Promise((e) => {
|
|
|
5307
5325
|
};
|
|
5308
5326
|
});
|
|
5309
5327
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5310
|
-
},
|
|
5311
|
-
function
|
|
5312
|
-
|
|
5328
|
+
}, Em = /* @__PURE__ */ new Map();
|
|
5329
|
+
function Dm() {
|
|
5330
|
+
Em.clear();
|
|
5313
5331
|
}
|
|
5314
|
-
async function
|
|
5332
|
+
async function Om(e, t = !1) {
|
|
5315
5333
|
let n = e.split("."), r = !1;
|
|
5316
|
-
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))), {
|
|
5317
5335
|
sourceData: r,
|
|
5318
5336
|
n
|
|
5319
5337
|
};
|
|
5320
5338
|
}
|
|
5321
|
-
async function
|
|
5339
|
+
async function km(e) {
|
|
5322
5340
|
return new Promise((t, n) => {
|
|
5323
5341
|
let r = X(`dynamicTable_${e}`, !1);
|
|
5324
|
-
r &&
|
|
5342
|
+
r && Em.has(`dynamicTable_${e}`) ? t(r) : vf(e).then((i) => {
|
|
5325
5343
|
!r || r && r.createTime !== i.createTime ? _f(e).then((n) => {
|
|
5326
5344
|
let r = {
|
|
5327
5345
|
createTime: n.createTime,
|
|
5328
5346
|
tableTitle: n.tableTitle,
|
|
5329
5347
|
viewJson: n.viewJson
|
|
5330
5348
|
};
|
|
5331
|
-
Y(`dynamicTable_${e}`, r, 0),
|
|
5349
|
+
Y(`dynamicTable_${e}`, r, 0), Em.set(`dynamicTable_${e}`, !0), od("tables_"), t(n);
|
|
5332
5350
|
}).catch(() => {
|
|
5333
5351
|
n();
|
|
5334
|
-
}) : (
|
|
5352
|
+
}) : (Em.set(`dynamicTable_${e}`, !0), t(r));
|
|
5335
5353
|
}).catch(() => {
|
|
5336
5354
|
n();
|
|
5337
5355
|
});
|
|
5338
5356
|
});
|
|
5339
5357
|
}
|
|
5340
|
-
var
|
|
5358
|
+
var Am = (e) => e.map((e) => {
|
|
5341
5359
|
let t = {};
|
|
5342
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)), {
|
|
5343
5361
|
i: e.input,
|
|
@@ -5410,7 +5428,7 @@ var Dm = (e) => e.map((e) => {
|
|
|
5410
5428
|
p: { s: +!!e.form.expand.show }
|
|
5411
5429
|
}
|
|
5412
5430
|
};
|
|
5413
|
-
}),
|
|
5431
|
+
}), jm = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5414
5432
|
let t = {};
|
|
5415
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)), {
|
|
5416
5434
|
input: e.i,
|
|
@@ -5483,11 +5501,11 @@ var Dm = (e) => e.map((e) => {
|
|
|
5483
5501
|
expand: { show: e.f && e.f.p ? !!e.f.p.s : !0 }
|
|
5484
5502
|
}
|
|
5485
5503
|
};
|
|
5486
|
-
}),
|
|
5504
|
+
}), Mm = (e) => ({
|
|
5487
5505
|
f: e.fetch,
|
|
5488
5506
|
o: e.when_drawer_open,
|
|
5489
5507
|
b: e.when_before_save
|
|
5490
|
-
}),
|
|
5508
|
+
}), Nm = (e) => e ? e.fetch ? e : {
|
|
5491
5509
|
fetch: e.f,
|
|
5492
5510
|
when_drawer_open: e.o,
|
|
5493
5511
|
when_before_save: e.b
|
|
@@ -5495,7 +5513,7 @@ var Dm = (e) => e.map((e) => {
|
|
|
5495
5513
|
fetch: null,
|
|
5496
5514
|
when_drawer_open: "",
|
|
5497
5515
|
when_before_save: ""
|
|
5498
|
-
},
|
|
5516
|
+
}, Pm = (e) => ({
|
|
5499
5517
|
i: e.index,
|
|
5500
5518
|
s: e.selection,
|
|
5501
5519
|
p: e.pagination,
|
|
@@ -5504,14 +5522,15 @@ var Dm = (e) => e.map((e) => {
|
|
|
5504
5522
|
a: e.addButton,
|
|
5505
5523
|
f: e.filterButton,
|
|
5506
5524
|
o: e.commonTime,
|
|
5525
|
+
e: e.filePort,
|
|
5507
5526
|
t: e.actionWidth,
|
|
5508
5527
|
w: e.drawerWidth,
|
|
5509
5528
|
h: e.drawerHeight,
|
|
5510
5529
|
l: e.placement,
|
|
5511
5530
|
r: e.summary
|
|
5512
|
-
}),
|
|
5531
|
+
}), Fm = (e) => {
|
|
5513
5532
|
let t = {};
|
|
5514
|
-
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 : {
|
|
5515
5534
|
index: e.i,
|
|
5516
5535
|
selection: e.s,
|
|
5517
5536
|
pagination: e.p,
|
|
@@ -5520,14 +5539,15 @@ var Dm = (e) => e.map((e) => {
|
|
|
5520
5539
|
addButton: e.a,
|
|
5521
5540
|
filterButton: e.f,
|
|
5522
5541
|
commonTime: e.o,
|
|
5542
|
+
filePort: e.e,
|
|
5523
5543
|
actionWidth: e.t,
|
|
5524
5544
|
drawerWidth: e.w,
|
|
5525
5545
|
drawerHeight: e.h,
|
|
5526
5546
|
placement: e.l,
|
|
5527
5547
|
summary: e.r
|
|
5528
|
-
}), Object.assign({},
|
|
5548
|
+
}), Object.assign({}, xm, U(t));
|
|
5529
5549
|
};
|
|
5530
|
-
function
|
|
5550
|
+
function Im(e, t, n, r) {
|
|
5531
5551
|
return new Promise(async (i, a) => {
|
|
5532
5552
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = U(e), p = [];
|
|
5533
5553
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -5562,17 +5582,17 @@ function Nm(e, t, n, r) {
|
|
|
5562
5582
|
disabled: !0
|
|
5563
5583
|
}];
|
|
5564
5584
|
if (e.params.immediately || r) {
|
|
5565
|
-
let { sourceData: t, n: r } = await
|
|
5585
|
+
let { sourceData: t, n: r } = await Om(e.source);
|
|
5566
5586
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5567
5587
|
let r = e.sourceFn;
|
|
5568
5588
|
n = Function("sourceData", r)(t);
|
|
5569
|
-
} else n =
|
|
5589
|
+
} else n = Tm(e, t, r);
|
|
5570
5590
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5571
|
-
let { sourceData: t, n } = await
|
|
5591
|
+
let { sourceData: t, n } = await Om(e.source);
|
|
5572
5592
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5573
5593
|
let n = e.sourceFn;
|
|
5574
5594
|
return Function("sourceData", n)(t);
|
|
5575
|
-
} else return
|
|
5595
|
+
} else return Tm(e, t, n);
|
|
5576
5596
|
};
|
|
5577
5597
|
if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
|
|
5578
5598
|
let i = n.find((n) => n.value === t[e.key]);
|
|
@@ -5603,27 +5623,27 @@ function Nm(e, t, n, r) {
|
|
|
5603
5623
|
J(e);
|
|
5604
5624
|
}
|
|
5605
5625
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
5606
|
-
let t = await
|
|
5626
|
+
let t = await Cm();
|
|
5607
5627
|
e.params.options = t;
|
|
5608
5628
|
}
|
|
5609
5629
|
if (e.input === "subTable" && e.params.link) {
|
|
5610
|
-
let t = await
|
|
5630
|
+
let t = await km(e.params.link).catch(() => {
|
|
5611
5631
|
a();
|
|
5612
5632
|
});
|
|
5613
5633
|
if (t) try {
|
|
5614
5634
|
let n = nt.parse(t.viewJson);
|
|
5615
|
-
n.suffix && (e._suffix =
|
|
5616
|
-
let r =
|
|
5635
|
+
n.suffix && (e._suffix = Vf(n.suffix));
|
|
5636
|
+
let r = jm(n.table);
|
|
5617
5637
|
r.forEach((e) => {
|
|
5618
5638
|
e.table.sorter = !1;
|
|
5619
5639
|
});
|
|
5620
5640
|
let i = r.filter((e) => e.input === "subTable");
|
|
5621
5641
|
if (i) for await (let e of i) {
|
|
5622
|
-
let t = await
|
|
5642
|
+
let t = await km(e.params.link).catch(() => {
|
|
5623
5643
|
a();
|
|
5624
5644
|
});
|
|
5625
5645
|
if (t) try {
|
|
5626
|
-
let n = nt.parse(t.viewJson), r =
|
|
5646
|
+
let n = nt.parse(t.viewJson), r = jm(n.table);
|
|
5627
5647
|
r.forEach((e) => {
|
|
5628
5648
|
e.table.sorter = !1;
|
|
5629
5649
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -5657,7 +5677,7 @@ function Nm(e, t, n, r) {
|
|
|
5657
5677
|
});
|
|
5658
5678
|
});
|
|
5659
5679
|
}
|
|
5660
|
-
async function
|
|
5680
|
+
async function Lm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
5661
5681
|
let s = 0, c = [], l = [], u = {
|
|
5662
5682
|
key: "",
|
|
5663
5683
|
link: "",
|
|
@@ -5671,27 +5691,27 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5671
5691
|
})) : (m.push(e), h.push(e.key));
|
|
5672
5692
|
for await (let [e, s] of m.entries()) {
|
|
5673
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) {
|
|
5674
|
-
let { sourceData: t, n } = await
|
|
5694
|
+
let { sourceData: t, n } = await Om(s.source, a && e === 0);
|
|
5675
5695
|
if (t && Array.isArray(t)) if (s.sourceFn) {
|
|
5676
5696
|
let e = s.sourceFn, n = Function("sourceData", e);
|
|
5677
5697
|
s.params.options = n(t);
|
|
5678
|
-
} else s.params.options =
|
|
5698
|
+
} else s.params.options = Tm(s, t, n);
|
|
5679
5699
|
} else s.params.options = [{
|
|
5680
5700
|
label: "加载中......",
|
|
5681
5701
|
value: "loading",
|
|
5682
5702
|
disabled: !0
|
|
5683
5703
|
}], s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5684
|
-
let { sourceData: e, n: t } = await
|
|
5704
|
+
let { sourceData: e, n: t } = await Om(s.source);
|
|
5685
5705
|
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5686
5706
|
let t = s.sourceFn;
|
|
5687
5707
|
return Function("sourceData", t)(e);
|
|
5688
|
-
} else return
|
|
5708
|
+
} else return Tm(s, e, t);
|
|
5689
5709
|
};
|
|
5690
5710
|
!s.table.render && !s.source && s.input === "select" && typeof s.params.options != "function" && s.params.options.length > 0 && (s.table.render = (e) => {
|
|
5691
5711
|
let t = s.params.options.find((t) => t.value === e[s.key]);
|
|
5692
5712
|
if (t) return t.label;
|
|
5693
5713
|
}), s.input === "upload" && !s.table.render && (s.table.render = function(e) {
|
|
5694
|
-
return f(
|
|
5714
|
+
return f(Jp, { value: e[s.key] }, { default: () => null });
|
|
5695
5715
|
});
|
|
5696
5716
|
let p = {
|
|
5697
5717
|
input: s.input,
|
|
@@ -5706,7 +5726,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5706
5726
|
tooltip: !0,
|
|
5707
5727
|
"line-clamp": s.table.clamp ?? 0
|
|
5708
5728
|
} : !1,
|
|
5709
|
-
render: s.table.render ? await
|
|
5729
|
+
render: s.table.render ? await wm(s.key, s.table.render, i) : void 0,
|
|
5710
5730
|
show: q.isMobile ? s.table.mobile ?? !1 : s.table.show ?? !0,
|
|
5711
5731
|
pin: !!s.table.fixed,
|
|
5712
5732
|
fixTemp: s.table.fixed
|
|
@@ -5727,7 +5747,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5727
5747
|
...s.form.rule,
|
|
5728
5748
|
index: t
|
|
5729
5749
|
} : void 0
|
|
5730
|
-
}, { default: () => f(
|
|
5750
|
+
}, { default: () => f(kp, {
|
|
5731
5751
|
item: s,
|
|
5732
5752
|
formValue: e,
|
|
5733
5753
|
status: n,
|
|
@@ -5738,26 +5758,26 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5738
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) {
|
|
5739
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;
|
|
5740
5760
|
else if (s.params.immediately || s.search.defaultValue) {
|
|
5741
|
-
let { sourceData: e, n: t } = await
|
|
5761
|
+
let { sourceData: e, n: t } = await Om(s.search.source);
|
|
5742
5762
|
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5743
5763
|
let t = s.sourceFn, n = Function("sourceData", t);
|
|
5744
5764
|
s.params.options = n(e);
|
|
5745
|
-
} else s.params.options =
|
|
5765
|
+
} else s.params.options = Tm(s, e, t);
|
|
5746
5766
|
} else s.params._async = !0, s.params._fetch = !1, s.params._asyncFn = async () => {
|
|
5747
|
-
let { sourceData: e, n: t } = await
|
|
5767
|
+
let { sourceData: e, n: t } = await Om(s.search.source);
|
|
5748
5768
|
if (e && Array.isArray(e)) if (s.sourceFn) {
|
|
5749
5769
|
let t = s.sourceFn;
|
|
5750
5770
|
return Function("sourceData", t)(e);
|
|
5751
|
-
} else return
|
|
5771
|
+
} else return Tm(s, e, t);
|
|
5752
5772
|
};
|
|
5753
|
-
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) {
|
|
5754
5774
|
let e = U(s);
|
|
5755
5775
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
5756
|
-
let { sourceData: t, n } = await
|
|
5776
|
+
let { sourceData: t, n } = await Om(e.source || e.search.source);
|
|
5757
5777
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5758
5778
|
let n = e.sourceFn;
|
|
5759
5779
|
return Function("sourceData", n)(t);
|
|
5760
|
-
} else return
|
|
5780
|
+
} else return Tm(e, t, n);
|
|
5761
5781
|
}), c.push({
|
|
5762
5782
|
input: e.input,
|
|
5763
5783
|
label: e.label,
|
|
@@ -5810,7 +5830,7 @@ async function Pm(e, t = !1, n = 0, r = () => {}, i = {}, a = !1, o = !1) {
|
|
|
5810
5830
|
}
|
|
5811
5831
|
//#endregion
|
|
5812
5832
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
5813
|
-
var
|
|
5833
|
+
var Rm = d({
|
|
5814
5834
|
name: "UzSpin",
|
|
5815
5835
|
components: {
|
|
5816
5836
|
NButton: L,
|
|
@@ -5856,7 +5876,7 @@ var Fm = d({
|
|
|
5856
5876
|
});
|
|
5857
5877
|
//#endregion
|
|
5858
5878
|
//#region components/spin/index.vue
|
|
5859
|
-
function
|
|
5879
|
+
function zm(e, t, r, i, o, s) {
|
|
5860
5880
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
5861
5881
|
return x(), n(f, { show: e.value }, {
|
|
5862
5882
|
description: N(() => [
|
|
@@ -5884,7 +5904,7 @@ function Im(e, t, r, i, o, s) {
|
|
|
5884
5904
|
_: 3
|
|
5885
5905
|
}, 8, ["show"]);
|
|
5886
5906
|
}
|
|
5887
|
-
var
|
|
5907
|
+
var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
5888
5908
|
name: "UzTableExpand",
|
|
5889
5909
|
components: {
|
|
5890
5910
|
NDataTable: oe,
|
|
@@ -5910,8 +5930,8 @@ var Lm = /*#__PURE__*/ W(Fm, [["render", Im]]), Rm = d({
|
|
|
5910
5930
|
} catch (e) {
|
|
5911
5931
|
J(e);
|
|
5912
5932
|
}
|
|
5913
|
-
|
|
5914
|
-
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) => ({
|
|
5915
5935
|
...e,
|
|
5916
5936
|
sorter: !1,
|
|
5917
5937
|
resizable: !1
|
|
@@ -5932,7 +5952,7 @@ var Lm = /*#__PURE__*/ W(Fm, [["render", Im]]), Rm = d({
|
|
|
5932
5952
|
});
|
|
5933
5953
|
//#endregion
|
|
5934
5954
|
//#region components/table/expand.vue
|
|
5935
|
-
function
|
|
5955
|
+
function Hm(e, t, r, i, a, o) {
|
|
5936
5956
|
let s = D("NDataTable");
|
|
5937
5957
|
return x(), n(s, {
|
|
5938
5958
|
columns: e.columns,
|
|
@@ -5954,7 +5974,257 @@ function zm(e, t, r, i, a, o) {
|
|
|
5954
5974
|
"scroll-x"
|
|
5955
5975
|
]);
|
|
5956
5976
|
}
|
|
5957
|
-
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({
|
|
5958
6228
|
name: "UzTable",
|
|
5959
6229
|
components: {
|
|
5960
6230
|
NDataTable: oe,
|
|
@@ -5968,7 +6238,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
5968
6238
|
GridDots: es,
|
|
5969
6239
|
Plus: uc,
|
|
5970
6240
|
VueDraggable: tt,
|
|
5971
|
-
UzSpin:
|
|
6241
|
+
UzSpin: Bm,
|
|
5972
6242
|
UzIcon: Iu
|
|
5973
6243
|
},
|
|
5974
6244
|
props: {
|
|
@@ -6107,7 +6377,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6107
6377
|
fetch: null,
|
|
6108
6378
|
when_drawer_open: "",
|
|
6109
6379
|
when_before_save: ""
|
|
6110
|
-
}), 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) => {
|
|
6111
6381
|
n("update:rowKeys", {
|
|
6112
6382
|
keys: e,
|
|
6113
6383
|
rows: U(t)
|
|
@@ -6198,7 +6468,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6198
6468
|
width: 180,
|
|
6199
6469
|
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => ud(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
6200
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) => {
|
|
6201
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
6471
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Im(N.value, e, () => m.value?.getFormValues());
|
|
6202
6472
|
return x.value = t, {
|
|
6203
6473
|
form: t,
|
|
6204
6474
|
fillingDefaultValue: n,
|
|
@@ -6379,8 +6649,8 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6379
6649
|
};
|
|
6380
6650
|
}
|
|
6381
6651
|
}, Ce = async () => {
|
|
6382
|
-
re.value = !1,
|
|
6383
|
-
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);
|
|
6384
6654
|
!l.value && R.value.index && t.unshift({
|
|
6385
6655
|
title: "#",
|
|
6386
6656
|
key: "index",
|
|
@@ -6422,7 +6692,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6422
6692
|
hide: !0,
|
|
6423
6693
|
width: Number(typeof R.value.actionWidth == "string" ? R.value.actionWidth.replace("px", "") : R.value.actionWidth),
|
|
6424
6694
|
render(t) {
|
|
6425
|
-
return
|
|
6695
|
+
return Nf({
|
|
6426
6696
|
buttons: e,
|
|
6427
6697
|
rowData: t,
|
|
6428
6698
|
callback: B,
|
|
@@ -6449,7 +6719,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6449
6719
|
filter: "default",
|
|
6450
6720
|
filterOptionValue: null,
|
|
6451
6721
|
renderFilterMenu: () => f("div", { class: "uz-table-filter" }, [f(L, { onClick: Le }, { default: () => s("Common.expand") }), f(L, { onClick: Re }, { default: () => s("Common.contract") })]),
|
|
6452
|
-
renderExpand: (e) => f(
|
|
6722
|
+
renderExpand: (e) => f(Um, {
|
|
6453
6723
|
data: i,
|
|
6454
6724
|
value: e
|
|
6455
6725
|
})
|
|
@@ -6475,7 +6745,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6475
6745
|
data: JSON.stringify(t)
|
|
6476
6746
|
}).catch(() => null);
|
|
6477
6747
|
}
|
|
6478
|
-
}, { run: De } =
|
|
6748
|
+
}, { run: De } = ym(Ee), { run: Oe } = ym((e, t) => {
|
|
6479
6749
|
let n = [];
|
|
6480
6750
|
C.value.forEach((r) => {
|
|
6481
6751
|
r.key !== "action" && r.key !== "index" && r.type !== "expand" && n.push({
|
|
@@ -6515,13 +6785,13 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6515
6785
|
fetch: null,
|
|
6516
6786
|
when_drawer_open: "",
|
|
6517
6787
|
when_before_save: ""
|
|
6518
|
-
}, R.value =
|
|
6788
|
+
}, R.value = Fm();
|
|
6519
6789
|
}, Me = (t) => {
|
|
6520
6790
|
let n = nt.parse(t.viewJson);
|
|
6521
|
-
b.value = t.tableTitle, N.value =
|
|
6522
|
-
let r =
|
|
6523
|
-
F.value = r.filter((e) => e.main).map((e) => (Pe(e), e)), I.value =
|
|
6524
|
-
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);
|
|
6525
6795
|
t.tableTitle && i.title && dd(t.tableTitle), R.value = i;
|
|
6526
6796
|
}, Ne = async () => {
|
|
6527
6797
|
v.value = !1, je();
|
|
@@ -6539,7 +6809,7 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6539
6809
|
ne.value = s("Notice.network"), re.value = !0;
|
|
6540
6810
|
return;
|
|
6541
6811
|
}
|
|
6542
|
-
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) => {
|
|
6543
6813
|
Me(e), await Ce();
|
|
6544
6814
|
}).catch((e) => {
|
|
6545
6815
|
ne.value = e?.message || s("Notice.network"), re.value = !0;
|
|
@@ -6650,26 +6920,29 @@ var Bm = /*#__PURE__*/ W(Rm, [["render", zm]]), Vm = d({
|
|
|
6650
6920
|
handleColumnResize: Ie,
|
|
6651
6921
|
expandedRowKeys: O,
|
|
6652
6922
|
handleExpandAll: Le,
|
|
6653
|
-
handleContractAll: Re
|
|
6923
|
+
handleContractAll: Re,
|
|
6924
|
+
doPortChange: () => {
|
|
6925
|
+
B();
|
|
6926
|
+
}
|
|
6654
6927
|
};
|
|
6655
6928
|
}
|
|
6656
|
-
}),
|
|
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 = {
|
|
6657
6930
|
ref: "mRef",
|
|
6658
6931
|
class: "uz-table-m-content"
|
|
6659
|
-
},
|
|
6932
|
+
}, nh = {
|
|
6660
6933
|
key: 1,
|
|
6661
6934
|
class: "uz-transform-fade-in"
|
|
6662
|
-
},
|
|
6663
|
-
function
|
|
6664
|
-
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");
|
|
6665
6938
|
return x(), i("div", {
|
|
6666
6939
|
class: "uz-table",
|
|
6667
6940
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
6668
6941
|
}, [
|
|
6669
|
-
P(a("div",
|
|
6942
|
+
P(a("div", Zm, [a("div", Qm, [l(m, {
|
|
6670
6943
|
width: 120,
|
|
6671
6944
|
size: "medium"
|
|
6672
|
-
}), a("div",
|
|
6945
|
+
}), a("div", $m, [
|
|
6673
6946
|
l(m, {
|
|
6674
6947
|
width: 180,
|
|
6675
6948
|
size: "medium"
|
|
@@ -6699,7 +6972,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6699
6972
|
width: "100%",
|
|
6700
6973
|
size: "medium"
|
|
6701
6974
|
})], 512), [[te, !t.dynamicLoading]]),
|
|
6702
|
-
P(l(
|
|
6975
|
+
P(l(L, {
|
|
6703
6976
|
show: t.spinError,
|
|
6704
6977
|
class: "uz-table-n-spin"
|
|
6705
6978
|
}, {
|
|
@@ -6757,7 +7030,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6757
7030
|
key: "0"
|
|
6758
7031
|
} : {
|
|
6759
7032
|
name: "header",
|
|
6760
|
-
fn: N(() => [a("div",
|
|
7033
|
+
fn: N(() => [a("div", eh, A(t.title), 1)]),
|
|
6761
7034
|
key: "1"
|
|
6762
7035
|
}]), 1032, [
|
|
6763
7036
|
"data",
|
|
@@ -6765,7 +7038,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6765
7038
|
"cache",
|
|
6766
7039
|
"loading",
|
|
6767
7040
|
"onOnUpdate:value"
|
|
6768
|
-
]), a("div",
|
|
7041
|
+
]), a("div", th, [l(C, {
|
|
6769
7042
|
tableColumns: t.tableCols,
|
|
6770
7043
|
tableData: t.tableData,
|
|
6771
7044
|
tableQueries: t.tableQueries,
|
|
@@ -6783,7 +7056,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6783
7056
|
"minH",
|
|
6784
7057
|
"maxH",
|
|
6785
7058
|
"onUpdate:rowKeys"
|
|
6786
|
-
])], 512)], 2)) : (x(), i("div",
|
|
7059
|
+
])], 512)], 2)) : (x(), i("div", nh, [l(F, {
|
|
6787
7060
|
data: t.searchData,
|
|
6788
7061
|
id: t.id || t.route.params.id,
|
|
6789
7062
|
cache: t.tableOption.cache,
|
|
@@ -6838,7 +7111,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6838
7111
|
_: 1
|
|
6839
7112
|
})]),
|
|
6840
7113
|
_: 1
|
|
6841
|
-
})], 8,
|
|
7114
|
+
})], 8, ih)), [[te, !e.hide]])), 128)), l(h, {
|
|
6842
7115
|
block: "",
|
|
6843
7116
|
tertiary: "",
|
|
6844
7117
|
loading: t.loading,
|
|
@@ -6864,6 +7137,10 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6864
7137
|
default: N(() => [c(" " + A(t.$t("Common.add")), 1)]),
|
|
6865
7138
|
_: 1
|
|
6866
7139
|
}, 8, ["disabled", "onClick"])) : r("", !0),
|
|
7140
|
+
l(M, {
|
|
7141
|
+
query: t.tableQueries,
|
|
7142
|
+
"onOnUpdate:change": t.doPortChange
|
|
7143
|
+
}, null, 8, ["query", "onOnUpdate:change"]),
|
|
6867
7144
|
t.suffixes && t.suffixes.length > 0 ? (x(), n(b, {
|
|
6868
7145
|
key: 2,
|
|
6869
7146
|
data: t.suffixes,
|
|
@@ -6882,7 +7159,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6882
7159
|
key: "0"
|
|
6883
7160
|
} : {
|
|
6884
7161
|
name: "header",
|
|
6885
|
-
fn: N(() => [a("div",
|
|
7162
|
+
fn: N(() => [a("div", rh, A(t.title), 1)]),
|
|
6886
7163
|
key: "1"
|
|
6887
7164
|
}]), 1032, [
|
|
6888
7165
|
"data",
|
|
@@ -6892,7 +7169,7 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6892
7169
|
"cols",
|
|
6893
7170
|
"enableHeader",
|
|
6894
7171
|
"onOnUpdate:value"
|
|
6895
|
-
]), l(
|
|
7172
|
+
]), l(I, {
|
|
6896
7173
|
ref: "tableRef",
|
|
6897
7174
|
columns: t.tableCols,
|
|
6898
7175
|
data: t.tableData,
|
|
@@ -6943,10 +7220,10 @@ function Xm(t, s, u, d, f, p) {
|
|
|
6943
7220
|
])]))]),
|
|
6944
7221
|
_: 3
|
|
6945
7222
|
}, 8, ["show"]), [[te, t.dynamicLoading]]),
|
|
6946
|
-
l(
|
|
7223
|
+
l(R, { ref: "drawerRef" }, null, 512)
|
|
6947
7224
|
], 4);
|
|
6948
7225
|
}
|
|
6949
|
-
var
|
|
7226
|
+
var oh = /*#__PURE__*/ W(Xm, [["render", ah]]), sh = d({
|
|
6950
7227
|
name: "UzTableChild",
|
|
6951
7228
|
components: {
|
|
6952
7229
|
NSpin: Me,
|
|
@@ -6976,7 +7253,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
6976
7253
|
emits: ["update:value"],
|
|
6977
7254
|
setup(e, { emit: n, expose: r }) {
|
|
6978
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) => {
|
|
6979
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
7256
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Im(U(n ?? e.item.params.columns), t, void 0, !0);
|
|
6980
7257
|
return C.value = r, i;
|
|
6981
7258
|
}, O = async (t) => {
|
|
6982
7259
|
if (_.value) return;
|
|
@@ -7007,7 +7284,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7007
7284
|
});
|
|
7008
7285
|
}, k = (e) => e.delete ? "uz-table-child-delete" : "", A = async (t, n = !1) => {
|
|
7009
7286
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
7010
|
-
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;
|
|
7011
7288
|
r.unshift({
|
|
7012
7289
|
title: " ",
|
|
7013
7290
|
key: "index",
|
|
@@ -7040,7 +7317,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7040
7317
|
width: 60,
|
|
7041
7318
|
render(t, n) {
|
|
7042
7319
|
let r = [];
|
|
7043
|
-
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) => {
|
|
7044
7321
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
7045
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({
|
|
7046
7323
|
type: "normal",
|
|
@@ -7052,7 +7329,7 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7052
7329
|
let n = e.item.params.deleteFn;
|
|
7053
7330
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
7054
7331
|
}
|
|
7055
|
-
}),
|
|
7332
|
+
}), Nf({
|
|
7056
7333
|
buttons: r,
|
|
7057
7334
|
rowData: t
|
|
7058
7335
|
});
|
|
@@ -7184,18 +7461,18 @@ var Zm = /*#__PURE__*/ W(Vm, [["render", Xm]]), Qm = d({
|
|
|
7184
7461
|
}
|
|
7185
7462
|
};
|
|
7186
7463
|
}
|
|
7187
|
-
}),
|
|
7464
|
+
}), ch = { class: "uz-flex uz-justify-between" }, lh = { class: "uz-com-title" }, uh = {
|
|
7188
7465
|
key: 0,
|
|
7189
7466
|
class: "uz-table-asterisk"
|
|
7190
|
-
},
|
|
7191
|
-
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) {
|
|
7192
7469
|
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
|
|
7193
7470
|
return x(), n(S, {
|
|
7194
7471
|
show: t.spin,
|
|
7195
7472
|
class: "uz-flex-1 uz-w-full"
|
|
7196
7473
|
}, {
|
|
7197
7474
|
default: N(() => [
|
|
7198
|
-
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, [
|
|
7199
7476
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
7200
7477
|
key: e.key,
|
|
7201
7478
|
type: e.color,
|
|
@@ -7271,7 +7548,7 @@ function ih(t, s, u, d, f, p) {
|
|
|
7271
7548
|
"scroll-x",
|
|
7272
7549
|
"class",
|
|
7273
7550
|
"row-class-name"
|
|
7274
|
-
])) : 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(_, {
|
|
7275
7552
|
key: 0,
|
|
7276
7553
|
type: "success",
|
|
7277
7554
|
secondary: "",
|
|
@@ -7302,7 +7579,7 @@ function ih(t, s, u, d, f, p) {
|
|
|
7302
7579
|
_: 1
|
|
7303
7580
|
}, 8, ["show"]);
|
|
7304
7581
|
}
|
|
7305
|
-
var
|
|
7582
|
+
var mh = /*#__PURE__*/ W(sh, [["render", ph]]), hh = d({
|
|
7306
7583
|
name: "UzTableQuestChild",
|
|
7307
7584
|
components: { NDataTable: oe },
|
|
7308
7585
|
props: {
|
|
@@ -7330,7 +7607,7 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
|
|
|
7330
7607
|
}), o.value = t, i.value = !1;
|
|
7331
7608
|
}
|
|
7332
7609
|
}, l = async (i) => {
|
|
7333
|
-
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;
|
|
7334
7611
|
c.unshift({
|
|
7335
7612
|
title: " ",
|
|
7336
7613
|
key: "index",
|
|
@@ -7349,7 +7626,7 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
|
|
|
7349
7626
|
hide: !0,
|
|
7350
7627
|
width: 60,
|
|
7351
7628
|
render(t) {
|
|
7352
|
-
return
|
|
7629
|
+
return Nf({ buttons: [{
|
|
7353
7630
|
type: "normal",
|
|
7354
7631
|
color: "primary",
|
|
7355
7632
|
key: "detail",
|
|
@@ -7404,11 +7681,11 @@ var ah = /*#__PURE__*/ W(Qm, [["render", ih]]), oh = d({
|
|
|
7404
7681
|
tableScrollX: s
|
|
7405
7682
|
};
|
|
7406
7683
|
}
|
|
7407
|
-
}),
|
|
7408
|
-
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) {
|
|
7409
7686
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
7410
|
-
return x(), i("div",
|
|
7411
|
-
a("div",
|
|
7687
|
+
return x(), i("div", gh, [
|
|
7688
|
+
a("div", _h, [a("div", vh, A(e.item.label), 1)]),
|
|
7412
7689
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
7413
7690
|
l(c, {
|
|
7414
7691
|
columns: e.columns,
|
|
@@ -7433,7 +7710,7 @@ function uh(e, t, n, r, o, s) {
|
|
|
7433
7710
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
7434
7711
|
]);
|
|
7435
7712
|
}
|
|
7436
|
-
var
|
|
7713
|
+
var bh = /*#__PURE__*/ W(hh, [["render", yh]]), xh = d({
|
|
7437
7714
|
name: "UzTableDrawer",
|
|
7438
7715
|
components: {
|
|
7439
7716
|
NButton: L,
|
|
@@ -7459,6 +7736,7 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7459
7736
|
addButton: 1,
|
|
7460
7737
|
filterButton: 1,
|
|
7461
7738
|
commonTime: 1,
|
|
7739
|
+
filePort: 0,
|
|
7462
7740
|
actionWidth: 300,
|
|
7463
7741
|
drawerWidth: "70%",
|
|
7464
7742
|
drawerHeight: "96vh",
|
|
@@ -7502,11 +7780,11 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7502
7780
|
linkFn: t
|
|
7503
7781
|
};
|
|
7504
7782
|
let r = e.split(".")[0];
|
|
7505
|
-
|
|
7783
|
+
km(r).then((e) => {
|
|
7506
7784
|
h(async () => {
|
|
7507
7785
|
let t = nt.parse(e.viewJson);
|
|
7508
|
-
d.value =
|
|
7509
|
-
let { form: i } = await
|
|
7786
|
+
d.value = Fm(t.option), u.value = !0;
|
|
7787
|
+
let { form: i } = await Im(jm(t.table), n);
|
|
7510
7788
|
y.value = t.trigger, n && T(n);
|
|
7511
7789
|
let a = X(`tables_cache_link_${r}`, !1);
|
|
7512
7790
|
a && (c.value = a), h(() => {
|
|
@@ -7566,7 +7844,7 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7566
7844
|
tableId: t,
|
|
7567
7845
|
...e
|
|
7568
7846
|
}).then(() => {
|
|
7569
|
-
|
|
7847
|
+
Dm(), yf({ tableId: t }).then((e) => {
|
|
7570
7848
|
let r = l.value.link.split("."), i;
|
|
7571
7849
|
if (l.value.linkFn) {
|
|
7572
7850
|
let t = l.value.linkFn;
|
|
@@ -7599,11 +7877,11 @@ var dh = /*#__PURE__*/ W(oh, [["render", uh]]), fh = d({
|
|
|
7599
7877
|
}
|
|
7600
7878
|
};
|
|
7601
7879
|
}
|
|
7602
|
-
}),
|
|
7880
|
+
}), Sh = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, Ch = {
|
|
7603
7881
|
key: 0,
|
|
7604
7882
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7605
|
-
},
|
|
7606
|
-
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) {
|
|
7607
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");
|
|
7608
7886
|
return x(), i(e, null, [l(S, {
|
|
7609
7887
|
show: t.drawer,
|
|
@@ -7629,7 +7907,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7629
7907
|
message: t.spinMsg,
|
|
7630
7908
|
status: t.spinStatus
|
|
7631
7909
|
}, {
|
|
7632
|
-
default: N(() => [a("div",
|
|
7910
|
+
default: N(() => [a("div", Sh, [t.skeletonShow ? (x(), i("div", Ch, [
|
|
7633
7911
|
l(m, {
|
|
7634
7912
|
size: "large",
|
|
7635
7913
|
style: { height: "156px" }
|
|
@@ -7692,7 +7970,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7692
7970
|
_: 2
|
|
7693
7971
|
}, [t.formStatus === 2 ? void 0 : {
|
|
7694
7972
|
name: "footer",
|
|
7695
|
-
fn: N(() => [a("div",
|
|
7973
|
+
fn: N(() => [a("div", wh, [t.isMobile ? r("", !0) : (x(), n(v, {
|
|
7696
7974
|
key: 0,
|
|
7697
7975
|
loading: t.spinShow,
|
|
7698
7976
|
type: "success",
|
|
@@ -7701,7 +7979,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7701
7979
|
}, {
|
|
7702
7980
|
default: N(() => [c(A(t.$t("OCR.ocr")), 1)]),
|
|
7703
7981
|
_: 1
|
|
7704
|
-
}, 8, ["loading"])), a("div",
|
|
7982
|
+
}, 8, ["loading"])), a("div", Th, [
|
|
7705
7983
|
l(v, {
|
|
7706
7984
|
loading: t.spinShow,
|
|
7707
7985
|
class: "uz-drawer-button",
|
|
@@ -7769,7 +8047,7 @@ function _h(t, s, u, d, f, p) {
|
|
|
7769
8047
|
_: 1
|
|
7770
8048
|
}, 8, ["show"])], 64);
|
|
7771
8049
|
}
|
|
7772
|
-
var
|
|
8050
|
+
var Dh = /*#__PURE__*/ W(xh, [["render", Eh]]), Oh = d({
|
|
7773
8051
|
name: "UzTableMobileList",
|
|
7774
8052
|
props: {
|
|
7775
8053
|
tableData: {
|
|
@@ -7787,12 +8065,12 @@ var vh = /*#__PURE__*/ W(fh, [["render", _h]]), yh = d({
|
|
|
7787
8065
|
},
|
|
7788
8066
|
emits: ["update:row-keys"],
|
|
7789
8067
|
setup() {}
|
|
7790
|
-
}),
|
|
8068
|
+
}), kh = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Ah = {
|
|
7791
8069
|
key: 1,
|
|
7792
8070
|
class: "uz-table-mobile-group-txt"
|
|
7793
8071
|
};
|
|
7794
|
-
function
|
|
7795
|
-
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", {
|
|
7796
8074
|
key: o.key,
|
|
7797
8075
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7798
8076
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
@@ -7803,11 +8081,11 @@ function Sh(t, o, s, c, l, u) {
|
|
|
7803
8081
|
class: "mobile"
|
|
7804
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(() => {
|
|
7805
8083
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7806
|
-
}), { key: 0 })) : (x(), i("div",
|
|
8084
|
+
}), { key: 0 })) : (x(), i("div", Ah, A(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7807
8085
|
}
|
|
7808
8086
|
//#endregion
|
|
7809
8087
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7810
|
-
var
|
|
8088
|
+
var Mh = d({
|
|
7811
8089
|
name: "UzTableMobile",
|
|
7812
8090
|
components: {
|
|
7813
8091
|
NCheckbox: re,
|
|
@@ -7815,7 +8093,7 @@ var Ch = d({
|
|
|
7815
8093
|
NPagination: we,
|
|
7816
8094
|
NCheckboxGroup: ie,
|
|
7817
8095
|
NRadioGroup: Oe,
|
|
7818
|
-
UzTableMobileList: /* @__PURE__ */ W(
|
|
8096
|
+
UzTableMobileList: /* @__PURE__ */ W(Oh, [["render", jh], ["__scopeId", "data-v-84c394fe"]])
|
|
7819
8097
|
},
|
|
7820
8098
|
props: {
|
|
7821
8099
|
tableData: {
|
|
@@ -7862,17 +8140,17 @@ var Ch = d({
|
|
|
7862
8140
|
}
|
|
7863
8141
|
};
|
|
7864
8142
|
}
|
|
7865
|
-
}),
|
|
8143
|
+
}), Nh = {
|
|
7866
8144
|
key: 0,
|
|
7867
8145
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7868
|
-
},
|
|
8146
|
+
}, Ph = {
|
|
7869
8147
|
key: 0,
|
|
7870
8148
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7871
|
-
},
|
|
8149
|
+
}, Fh = {
|
|
7872
8150
|
key: 0,
|
|
7873
8151
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7874
8152
|
};
|
|
7875
|
-
function
|
|
8153
|
+
function Ih(t, a, o, s, c, u) {
|
|
7876
8154
|
let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
|
|
7877
8155
|
return t.selection === 2 ? (x(), n(m, {
|
|
7878
8156
|
key: 0,
|
|
@@ -7899,7 +8177,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7899
8177
|
"tableColumns"
|
|
7900
8178
|
])]),
|
|
7901
8179
|
_: 2
|
|
7902
|
-
}, 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, {
|
|
7903
8181
|
page: t.tableQueries.query.page,
|
|
7904
8182
|
"onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7905
8183
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7941,7 +8219,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7941
8219
|
"tableColumns"
|
|
7942
8220
|
])]),
|
|
7943
8221
|
_: 2
|
|
7944
|
-
}, 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, {
|
|
7945
8223
|
page: t.tableQueries.query.page,
|
|
7946
8224
|
"onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7947
8225
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7976,7 +8254,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7976
8254
|
"tableData",
|
|
7977
8255
|
"tableIndex",
|
|
7978
8256
|
"tableColumns"
|
|
7979
|
-
])]))), 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, {
|
|
7980
8258
|
page: t.tableQueries.query.page,
|
|
7981
8259
|
"onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7982
8260
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7989,7 +8267,7 @@ function Dh(t, a, o, s, c, u) {
|
|
|
7989
8267
|
"onUpdate:page"
|
|
7990
8268
|
])])) : r("", !0)], 4));
|
|
7991
8269
|
}
|
|
7992
|
-
var
|
|
8270
|
+
var Lh = /*#__PURE__*/ W(Mh, [["render", Ih], ["__scopeId", "data-v-70b54e3b"]]), $ = C({
|
|
7993
8271
|
page: {
|
|
7994
8272
|
label: "首页",
|
|
7995
8273
|
key: "/",
|
|
@@ -8000,7 +8278,7 @@ var Oh = /*#__PURE__*/ W(Ch, [["render", Dh], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
8000
8278
|
active: "/",
|
|
8001
8279
|
thumbnail: []
|
|
8002
8280
|
});
|
|
8003
|
-
function
|
|
8281
|
+
function Rh(e) {
|
|
8004
8282
|
$.cache = e.cache, $.page = {
|
|
8005
8283
|
label: e.label,
|
|
8006
8284
|
key: e.key,
|
|
@@ -8015,14 +8293,14 @@ function kh(e) {
|
|
|
8015
8293
|
closable: !1
|
|
8016
8294
|
}];
|
|
8017
8295
|
}
|
|
8018
|
-
function
|
|
8296
|
+
function zh(e) {
|
|
8019
8297
|
$.active = e, G.push(e), Y($.cache, $, 0);
|
|
8020
8298
|
}
|
|
8021
|
-
function
|
|
8299
|
+
function Bh(e, t) {
|
|
8022
8300
|
let n = $.thumbnail.find((t) => t.key === e);
|
|
8023
8301
|
n && (n.key = t, $.active = t, Y($.cache, $, 0));
|
|
8024
8302
|
}
|
|
8025
|
-
function
|
|
8303
|
+
function Vh(e) {
|
|
8026
8304
|
let t = $.thumbnail.find((t) => t.path === e.key);
|
|
8027
8305
|
t ? ($.active = t.key, Y($.cache, $, 0), G.push(t.key)) : ($.active = e.key, $.thumbnail.push({
|
|
8028
8306
|
...e,
|
|
@@ -8030,7 +8308,7 @@ function Mh(e) {
|
|
|
8030
8308
|
closable: !0
|
|
8031
8309
|
}), G.push(e.key));
|
|
8032
8310
|
}
|
|
8033
|
-
function
|
|
8311
|
+
function Hh(e) {
|
|
8034
8312
|
let t = $.thumbnail.findIndex((t) => t.key === e);
|
|
8035
8313
|
if ($.thumbnail.splice(t, 1), $.active === e) {
|
|
8036
8314
|
let e = $.thumbnail[t - 1]?.key || "";
|
|
@@ -8038,12 +8316,12 @@ function Nh(e) {
|
|
|
8038
8316
|
}
|
|
8039
8317
|
Y($.cache, $, 0);
|
|
8040
8318
|
}
|
|
8041
|
-
function
|
|
8319
|
+
function Uh() {
|
|
8042
8320
|
$.active = $.page.path, $.thumbnail = [$.page], G.push($.page.path), Y($.cache, $, 0);
|
|
8043
8321
|
}
|
|
8044
8322
|
//#endregion
|
|
8045
8323
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
8046
|
-
var
|
|
8324
|
+
var Wh = d({
|
|
8047
8325
|
name: "UzThumbnail",
|
|
8048
8326
|
components: {
|
|
8049
8327
|
NTabs: Fe,
|
|
@@ -8065,29 +8343,29 @@ var Fh = d({
|
|
|
8065
8343
|
setup(e, { slots: t }) {
|
|
8066
8344
|
let n = w(!!t.prefix), r = qe();
|
|
8067
8345
|
return y(() => {
|
|
8068
|
-
|
|
8346
|
+
Rh(e.option), $.active !== r.path && Bh(r.path, r.fullPath);
|
|
8069
8347
|
}), j(() => r, (e) => {
|
|
8070
|
-
$.active === r.path &&
|
|
8348
|
+
$.active === r.path && Bh(e.path, e.fullPath);
|
|
8071
8349
|
}, { deep: !0 }), j(() => e.option, (e) => {
|
|
8072
|
-
|
|
8350
|
+
Rh(e);
|
|
8073
8351
|
}, { deep: !0 }), {
|
|
8074
8352
|
thumbnailStore: $,
|
|
8075
8353
|
isSlotPrefix: n,
|
|
8076
8354
|
handleClose: (e) => {
|
|
8077
|
-
|
|
8355
|
+
Hh(e);
|
|
8078
8356
|
},
|
|
8079
8357
|
handleChange: (e) => {
|
|
8080
|
-
|
|
8358
|
+
zh(e);
|
|
8081
8359
|
},
|
|
8082
8360
|
handleClear: () => {
|
|
8083
|
-
|
|
8361
|
+
Uh();
|
|
8084
8362
|
}
|
|
8085
8363
|
};
|
|
8086
8364
|
}
|
|
8087
8365
|
});
|
|
8088
8366
|
//#endregion
|
|
8089
8367
|
//#region components/thumbnail/index.vue
|
|
8090
|
-
function
|
|
8368
|
+
function Gh(t, r, a, s, u, d) {
|
|
8091
8369
|
let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
|
|
8092
8370
|
return x(), n(v, {
|
|
8093
8371
|
value: t.thumbnailStore.active,
|
|
@@ -8133,33 +8411,33 @@ function Ih(t, r, a, s, u, d) {
|
|
|
8133
8411
|
"on-update:value"
|
|
8134
8412
|
]);
|
|
8135
8413
|
}
|
|
8136
|
-
var
|
|
8137
|
-
H.common.cardColor = "#32323b", H.common.primaryColor = "#0A84FF", H.common.primaryColorHover =
|
|
8138
|
-
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 = {
|
|
8139
8417
|
common: {
|
|
8140
8418
|
inputColor: "rgba(var(--input))",
|
|
8141
8419
|
borderColor: "rgba(var(--border), 0.7)",
|
|
8142
8420
|
borderRadius: "var(--borderRadius)",
|
|
8143
|
-
primaryColor:
|
|
8144
|
-
primaryColorHover:
|
|
8145
|
-
primaryColorPressed:
|
|
8146
|
-
primaryColorSuppl:
|
|
8147
|
-
infoColor:
|
|
8148
|
-
infoColorHover:
|
|
8149
|
-
infoColorPressed:
|
|
8150
|
-
infoColorSuppl:
|
|
8151
|
-
successColor:
|
|
8152
|
-
successColorHover:
|
|
8153
|
-
successColorPressed:
|
|
8154
|
-
successColorSuppl:
|
|
8155
|
-
warningColor:
|
|
8156
|
-
warningColorHover:
|
|
8157
|
-
warningColorPressed:
|
|
8158
|
-
warningColorSuppl:
|
|
8159
|
-
errorColor:
|
|
8160
|
-
errorColorHover:
|
|
8161
|
-
errorColorPressed:
|
|
8162
|
-
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,
|
|
8163
8441
|
cardColor: "#fff"
|
|
8164
8442
|
},
|
|
8165
8443
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -8167,7 +8445,7 @@ var Jh = {
|
|
|
8167
8445
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
8168
8446
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
8169
8447
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
8170
|
-
},
|
|
8448
|
+
}, ig = H, ag = d({
|
|
8171
8449
|
name: "UzWrap",
|
|
8172
8450
|
components: { NConfigProvider: ae },
|
|
8173
8451
|
setup() {
|
|
@@ -8175,14 +8453,14 @@ var Jh = {
|
|
|
8175
8453
|
zhCN: Ue,
|
|
8176
8454
|
dateZhCN: Ve,
|
|
8177
8455
|
commonStore: q,
|
|
8178
|
-
lightTheme:
|
|
8179
|
-
darkTheme:
|
|
8456
|
+
lightTheme: rg,
|
|
8457
|
+
darkTheme: ig
|
|
8180
8458
|
};
|
|
8181
8459
|
}
|
|
8182
8460
|
});
|
|
8183
8461
|
//#endregion
|
|
8184
8462
|
//#region components/wrap/index.vue
|
|
8185
|
-
function
|
|
8463
|
+
function og(e, t, r, i, a, o) {
|
|
8186
8464
|
let s = D("NConfigProvider");
|
|
8187
8465
|
return x(), n(s, {
|
|
8188
8466
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -8201,10 +8479,10 @@ function Zh(e, t, r, i, a, o) {
|
|
|
8201
8479
|
"date-locale"
|
|
8202
8480
|
]);
|
|
8203
8481
|
}
|
|
8204
|
-
var
|
|
8482
|
+
var sg = /*#__PURE__*/ W(ag, [["render", og]]);
|
|
8205
8483
|
//#endregion
|
|
8206
8484
|
//#region components/ocr/preprocess.ts
|
|
8207
|
-
function
|
|
8485
|
+
function cg(e) {
|
|
8208
8486
|
let t = /* @__PURE__ */ new Int32Array(256), n = e.length;
|
|
8209
8487
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
8210
8488
|
let r = 0;
|
|
@@ -8219,7 +8497,7 @@ function $h(e) {
|
|
|
8219
8497
|
}
|
|
8220
8498
|
return c;
|
|
8221
8499
|
}
|
|
8222
|
-
function
|
|
8500
|
+
function lg(e, t) {
|
|
8223
8501
|
return new Promise((n, r) => {
|
|
8224
8502
|
let i = new Image();
|
|
8225
8503
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -8252,7 +8530,7 @@ function eg(e, t) {
|
|
|
8252
8530
|
}
|
|
8253
8531
|
let u = t.threshold;
|
|
8254
8532
|
if (t.binarize) {
|
|
8255
|
-
t.autoThreshold && (u =
|
|
8533
|
+
t.autoThreshold && (u = cg(l));
|
|
8256
8534
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
8257
8535
|
let n = l[t] < u ? 0 : 255;
|
|
8258
8536
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -8275,7 +8553,7 @@ function eg(e, t) {
|
|
|
8275
8553
|
}
|
|
8276
8554
|
//#endregion
|
|
8277
8555
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
8278
|
-
var
|
|
8556
|
+
var ug = d({
|
|
8279
8557
|
name: "UzOcr",
|
|
8280
8558
|
components: {
|
|
8281
8559
|
NButton: L,
|
|
@@ -8312,7 +8590,7 @@ var tg = d({
|
|
|
8312
8590
|
tessedit_char_blacklist: "|"
|
|
8313
8591
|
}), a.value), v = async () => {
|
|
8314
8592
|
if (f.value) try {
|
|
8315
|
-
let e = await
|
|
8593
|
+
let e = await lg(f.value, {
|
|
8316
8594
|
enabled: o.value,
|
|
8317
8595
|
scale: s.value,
|
|
8318
8596
|
grayscale: !0,
|
|
@@ -8349,7 +8627,7 @@ var tg = d({
|
|
|
8349
8627
|
n.value = !0, r.value = e("OCR.analysis");
|
|
8350
8628
|
let a = t;
|
|
8351
8629
|
if (o.value || s.value > 1) try {
|
|
8352
|
-
let e = await
|
|
8630
|
+
let e = await lg(t, {
|
|
8353
8631
|
enabled: o.value,
|
|
8354
8632
|
scale: s.value,
|
|
8355
8633
|
grayscale: !0,
|
|
@@ -8411,25 +8689,25 @@ var tg = d({
|
|
|
8411
8689
|
t: e
|
|
8412
8690
|
};
|
|
8413
8691
|
}
|
|
8414
|
-
}),
|
|
8692
|
+
}), dg = { class: "uz-ocr" }, fg = { class: "uz-ocr-left-col" }, pg = { class: "uz-ocr-upload-card" }, mg = { class: "uz-ocr-upload-title" }, hg = {
|
|
8415
8693
|
key: 1,
|
|
8416
8694
|
class: "uz-ocr-preview-panel"
|
|
8417
|
-
},
|
|
8695
|
+
}, gg = { class: "uz-ocr-preview-box" }, _g = ["src"], vg = {
|
|
8418
8696
|
key: 0,
|
|
8419
8697
|
class: "uz-ocr-threshold-badge"
|
|
8420
|
-
},
|
|
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 = {
|
|
8421
8699
|
key: 0,
|
|
8422
8700
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
8423
|
-
},
|
|
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 = {
|
|
8424
8702
|
key: 0,
|
|
8425
8703
|
class: "uz-ocr-empty-state"
|
|
8426
|
-
},
|
|
8704
|
+
}, Ng = { class: "uz-empty-text" }, Pg = {
|
|
8427
8705
|
key: 1,
|
|
8428
8706
|
class: "uz-ocr-result-tabs"
|
|
8429
8707
|
};
|
|
8430
|
-
function
|
|
8708
|
+
function Fg(e, t, o, s, u, d) {
|
|
8431
8709
|
let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
|
|
8432
|
-
return x(), i("div",
|
|
8710
|
+
return x(), i("div", dg, [a("div", fg, [e.rawImage ? (x(), i("div", hg, [l(m, {
|
|
8433
8711
|
value: e.imagePreviewTab,
|
|
8434
8712
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
8435
8713
|
type: "segment",
|
|
@@ -8439,21 +8717,21 @@ function Eg(e, t, o, s, u, d) {
|
|
|
8439
8717
|
name: "processed",
|
|
8440
8718
|
tab: e.t("OCR.previewProcessed")
|
|
8441
8719
|
}, {
|
|
8442
|
-
default: N(() => [a("div",
|
|
8720
|
+
default: N(() => [a("div", gg, [a("img", {
|
|
8443
8721
|
src: e.processedImage,
|
|
8444
8722
|
alt: "Processed Preview",
|
|
8445
8723
|
class: "uz-ocr-preview-img"
|
|
8446
|
-
}, null, 8,
|
|
8724
|
+
}, null, 8, _g), e.preEnabled && e.preBinarize ? (x(), i("div", vg, A(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + A(e.thresholdUsed), 1)) : r("", !0)])]),
|
|
8447
8725
|
_: 1
|
|
8448
8726
|
}, 8, ["tab"]), l(p, {
|
|
8449
8727
|
name: "raw",
|
|
8450
8728
|
tab: e.t("OCR.previewRaw")
|
|
8451
8729
|
}, {
|
|
8452
|
-
default: N(() => [a("div",
|
|
8730
|
+
default: N(() => [a("div", yg, [a("img", {
|
|
8453
8731
|
src: e.rawImage,
|
|
8454
8732
|
alt: "Raw Preview",
|
|
8455
8733
|
class: "uz-ocr-preview-img"
|
|
8456
|
-
}, null, 8,
|
|
8734
|
+
}, null, 8, bg)])]),
|
|
8457
8735
|
_: 1
|
|
8458
8736
|
}, 8, ["tab"])]),
|
|
8459
8737
|
_: 1
|
|
@@ -8487,7 +8765,7 @@ function Eg(e, t, o, s, u, d) {
|
|
|
8487
8765
|
"directory-dnd": "",
|
|
8488
8766
|
class: "uz-w-full"
|
|
8489
8767
|
}, {
|
|
8490
|
-
default: N(() => [a("div",
|
|
8768
|
+
default: N(() => [a("div", pg, [
|
|
8491
8769
|
t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
|
|
8492
8770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8493
8771
|
viewBox: "0 0 24 24",
|
|
@@ -8495,27 +8773,27 @@ function Eg(e, t, o, s, u, d) {
|
|
|
8495
8773
|
height: "40",
|
|
8496
8774
|
fill: "currentColor"
|
|
8497
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),
|
|
8498
|
-
a("div",
|
|
8776
|
+
a("div", mg, A(e.t("OCR.scan")), 1),
|
|
8499
8777
|
t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8500
8778
|
])]),
|
|
8501
8779
|
_: 1
|
|
8502
|
-
}, 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(_, {
|
|
8503
8781
|
value: e.preEnabled,
|
|
8504
8782
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8505
8783
|
size: "small"
|
|
8506
|
-
}, 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, {
|
|
8507
8785
|
value: e.preScale,
|
|
8508
8786
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8509
8787
|
options: e.scaleOptions,
|
|
8510
8788
|
size: "small",
|
|
8511
8789
|
class: "uz-settings-select"
|
|
8512
|
-
}, null, 8, ["value", "options"])]), a("div",
|
|
8790
|
+
}, null, 8, ["value", "options"])]), a("div", Dg, [a("span", Og, A(e.t("OCR.contrast")), 1), l(_, {
|
|
8513
8791
|
value: e.preContrast,
|
|
8514
8792
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8515
8793
|
size: "small"
|
|
8516
|
-
}, 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)]))])]);
|
|
8517
8795
|
}
|
|
8518
|
-
var
|
|
8796
|
+
var Ig = /*#__PURE__*/ W(ug, [["render", Fg], ["__scopeId", "data-v-c7224ff5"]]), Lg = /* @__PURE__ */ lt({
|
|
8519
8797
|
AccessPoint: () => mt,
|
|
8520
8798
|
Activity: () => vt,
|
|
8521
8799
|
Adjustments: () => St,
|
|
@@ -8644,54 +8922,55 @@ var Dg = /*#__PURE__*/ W(tg, [["render", Eg], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
8644
8922
|
UserPlus: () => Ml,
|
|
8645
8923
|
Users: () => Il,
|
|
8646
8924
|
UzActionButton: () => ut,
|
|
8647
|
-
UzBack: () =>
|
|
8648
|
-
UzCamera: () =>
|
|
8649
|
-
UzCircle: () =>
|
|
8650
|
-
UzDraggableForm: () =>
|
|
8651
|
-
UzForm: () =>
|
|
8652
|
-
UzFormItem: () =>
|
|
8653
|
-
UzFormItemImage: () =>
|
|
8654
|
-
UzFormItemTimesPicker: () =>
|
|
8655
|
-
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,
|
|
8656
8934
|
UzIcon: () => Iu,
|
|
8657
|
-
UzOcr: () =>
|
|
8658
|
-
UzSearchBar: () =>
|
|
8659
|
-
UzSearchMobileBar: () =>
|
|
8660
|
-
UzSpin: () =>
|
|
8661
|
-
UzTable: () =>
|
|
8662
|
-
UzTableChild: () =>
|
|
8663
|
-
UzTableDrawer: () =>
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
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,
|
|
8668
8947
|
X: () => Bl,
|
|
8669
8948
|
commonStore: () => q,
|
|
8670
|
-
fnActionReduction: () =>
|
|
8671
|
-
fnActionSimplify: () =>
|
|
8672
|
-
fnAddThumbnail: () =>
|
|
8673
|
-
fnClearAllThumbnail: () =>
|
|
8674
|
-
fnDeleteThumbnail: () =>
|
|
8675
|
-
fnGetTableData: () =>
|
|
8676
|
-
fnOptionReduction: () =>
|
|
8677
|
-
fnOptionSimplify: () =>
|
|
8678
|
-
fnPrepareFormData: () =>
|
|
8679
|
-
fnPrepareTableData: () =>
|
|
8680
|
-
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,
|
|
8681
8960
|
fnSetLang: () => Bu,
|
|
8682
8961
|
fnSetTheme: () => Vu,
|
|
8683
|
-
fnSetThumbnail: () =>
|
|
8684
|
-
fnTableReduction: () =>
|
|
8685
|
-
fnTableSimplify: () =>
|
|
8686
|
-
fnTriggersReduction: () =>
|
|
8687
|
-
fnTriggersSimplify: () =>
|
|
8962
|
+
fnSetThumbnail: () => zh,
|
|
8963
|
+
fnTableReduction: () => jm,
|
|
8964
|
+
fnTableSimplify: () => Am,
|
|
8965
|
+
fnTriggersReduction: () => Nm,
|
|
8966
|
+
fnTriggersSimplify: () => Mm,
|
|
8688
8967
|
i18n: () => K
|
|
8689
|
-
}),
|
|
8690
|
-
function
|
|
8691
|
-
|
|
8968
|
+
}), Rg = 3840, zg = 2160, Bg = C({ scale: 1 });
|
|
8969
|
+
function Vg(e, t) {
|
|
8970
|
+
Rg = e, zg = t;
|
|
8692
8971
|
}
|
|
8693
|
-
function
|
|
8694
|
-
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));
|
|
8695
8974
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
8696
8975
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
8697
8976
|
e = t > 1 ? 1 : t;
|
|
@@ -8699,17 +8978,17 @@ function Ng() {
|
|
|
8699
8978
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
8700
8979
|
e = n > 1 ? 1 : n;
|
|
8701
8980
|
}
|
|
8702
|
-
|
|
8981
|
+
Bg.scale = e;
|
|
8703
8982
|
}
|
|
8704
|
-
function
|
|
8705
|
-
let e = Qe(
|
|
8983
|
+
function Ug() {
|
|
8984
|
+
let e = Qe(Hg, 200);
|
|
8706
8985
|
return e(), window.addEventListener("resize", e), () => {
|
|
8707
|
-
|
|
8986
|
+
Rg = 3840, zg = 2160, window.removeEventListener("resize", e);
|
|
8708
8987
|
};
|
|
8709
8988
|
}
|
|
8710
8989
|
//#endregion
|
|
8711
8990
|
//#region components/hooks/useThrottleFn.ts
|
|
8712
|
-
function
|
|
8991
|
+
function Wg(e, n = 1e3) {
|
|
8713
8992
|
let r = w(e), i = t(() => $e((...e) => r.value([...e]), n));
|
|
8714
8993
|
return b(() => {
|
|
8715
8994
|
i.value.cancel();
|
|
@@ -8721,14 +9000,14 @@ function Fg(e, n = 1e3) {
|
|
|
8721
9000
|
}
|
|
8722
9001
|
//#endregion
|
|
8723
9002
|
//#region components/hooks/useLocalStorage.ts
|
|
8724
|
-
function
|
|
9003
|
+
function Gg(e, t) {
|
|
8725
9004
|
return [w(X(e, t?.defaultValue)), (n) => {
|
|
8726
9005
|
n === void 0 ? ad(e) : Y(e, n, t?.expired || "1 Day");
|
|
8727
9006
|
}];
|
|
8728
9007
|
}
|
|
8729
9008
|
//#endregion
|
|
8730
9009
|
//#region components/hooks/useQuery.ts
|
|
8731
|
-
function
|
|
9010
|
+
function Kg(e, t, n) {
|
|
8732
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 = () => {
|
|
8733
9012
|
ff(), clearInterval(o.value), o.value = null;
|
|
8734
9013
|
}, p = async () => {
|
|
@@ -8794,26 +9073,26 @@ function Lg(e, t, n) {
|
|
|
8794
9073
|
}
|
|
8795
9074
|
//#endregion
|
|
8796
9075
|
//#region package.json
|
|
8797
|
-
var
|
|
8798
|
-
async function
|
|
9076
|
+
var qg = "0.1.80", Jg;
|
|
9077
|
+
async function Yg() {
|
|
8799
9078
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8800
9079
|
method: "HEAD",
|
|
8801
9080
|
cache: "no-cache"
|
|
8802
9081
|
});
|
|
8803
9082
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
8804
9083
|
}
|
|
8805
|
-
async function
|
|
8806
|
-
let e = await
|
|
8807
|
-
|
|
9084
|
+
async function Xg() {
|
|
9085
|
+
let e = await Yg();
|
|
9086
|
+
Jg !== e && Hu(!0);
|
|
8808
9087
|
}
|
|
8809
|
-
async function
|
|
8810
|
-
|
|
8811
|
-
|
|
9088
|
+
async function Zg() {
|
|
9089
|
+
Jg = await Yg(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
9090
|
+
Xg();
|
|
8812
9091
|
}, 60 * 1e3);
|
|
8813
9092
|
}
|
|
8814
9093
|
//#endregion
|
|
8815
9094
|
//#region components/create.ts
|
|
8816
|
-
function
|
|
9095
|
+
function Qg({ components: e = [] } = {}) {
|
|
8817
9096
|
let t = [];
|
|
8818
9097
|
function n(e, t, n) {
|
|
8819
9098
|
e.component(t) || e.component(t, n);
|
|
@@ -8826,16 +9105,16 @@ function Ug({ components: e = [] } = {}) {
|
|
|
8826
9105
|
});
|
|
8827
9106
|
}), i)) {
|
|
8828
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);
|
|
8829
|
-
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);
|
|
8830
9109
|
}
|
|
8831
9110
|
}
|
|
8832
9111
|
return {
|
|
8833
|
-
version:
|
|
9112
|
+
version: qg,
|
|
8834
9113
|
install: r
|
|
8835
9114
|
};
|
|
8836
9115
|
}
|
|
8837
9116
|
//#endregion
|
|
8838
9117
|
//#region components/preset.ts
|
|
8839
|
-
var
|
|
9118
|
+
var $g = Qg({ components: Object.keys(Lg).map((e) => Lg[e]) }), e_ = $g.install;
|
|
8840
9119
|
//#endregion
|
|
8841
|
-
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 };
|