@unizhen/ui 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/form/draggable.vue.d.ts +9 -0
- package/lib/components/form/index.vue.d.ts +9 -0
- package/lib/components/form/item.vue.d.ts +9 -0
- package/lib/components/searchBar/index.vue.d.ts +9 -0
- package/lib/components/searchBar/mobile.vue.d.ts +9 -0
- package/lib/ui.js +469 -454
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var Fc = Object.defineProperty;
|
|
2
2
|
var Vc = (e, t, r) => t in e ? Fc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var qt = (e, t, r) => Vc(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { defineComponent as le, createElementBlock as w, openBlock as c, createStaticVNode as E, createElementVNode as i, ref as S, watch as
|
|
5
|
-
import { createDiscreteApi as Lc, NPopover as
|
|
4
|
+
import { defineComponent as le, createElementBlock as w, openBlock as c, createStaticVNode as E, createElementVNode as i, ref as S, watch as de, nextTick as Le, h as Y, reactive as ja, resolveComponent as $, createBlock as A, withCtx as y, toDisplayString as L, createVNode as T, normalizeStyle as $e, inject as Ke, computed as _t, Fragment as se, createCommentVNode as W, normalizeClass as ue, createSlots as Re, createTextVNode as K, renderList as ke, provide as ba, onMounted as Be, resolveDirective as Bl, withDirectives as gt, mergeProps as _a, withModifiers as At, watchEffect as Fl, onBeforeUnmount as za, withKeys as Uc, renderSlot as xe, markRaw as Pc, defineAsyncComponent as Ec, onUnmounted as Vl, vShow as xa, resolveDynamicComponent as go } from "vue";
|
|
5
|
+
import { createDiscreteApi as Lc, NPopover as ct, NFlex as Ul, NButton as ge, NPopconfirm as qa, NTooltip as Pl, NIcon as ve, NDropdown as Hc, NCascader as El, NCheckboxGroup as Aa, NCheckbox as Ra, NColorPicker as Kc, NSwitch as Gc, NTimePicker as Wc, NDatePicker as Jc, NInputNumber as Qc, NSelect as Ll, NInput as Xc, NDivider as Oa, NFormItem as Ba, NForm as Fa, NInputGroup as Va, NUploadDragger as Yc, NImage as Hl, NUpload as Kl, useNotification as Ft, NImageGroup as Zc, NModal as ed, NInputGroupLabel as Gl, NGridItem as Wl, NGrid as Jl, NButtonGroup as td, NDrawerContent as Ua, NDrawer as Pa, NTag as rd, NEllipsis as nd, NSpin as Ea, NRadioGroup as Ql, NSkeleton as Xl, NDataTable as La, NPagination as ad, NRadio as od, NTabPane as sd, NTabs as ld, darkTheme as We, NConfigProvider as id, dateZhCN as ud, zhCN as cd } from "naive-ui";
|
|
6
6
|
import Ha from "axios";
|
|
7
7
|
import { createRouter as dd, createWebHistory as fd, useRouter as pd, useRoute as Vt } from "vue-router";
|
|
8
8
|
import { createI18n as hd, useI18n as Ut } from "vue-i18n";
|
|
9
9
|
import _e from "dayjs";
|
|
10
10
|
import Yl from "vuedraggable";
|
|
11
|
-
import
|
|
11
|
+
import tt from "json5";
|
|
12
12
|
import wd from "jsqr";
|
|
13
13
|
import md from "vue-clipboard3";
|
|
14
14
|
import { createWorker as vd } from "tesseract.js";
|
|
@@ -36,7 +36,7 @@ const yd = le({
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
setup(e) {
|
|
39
|
-
return () =>
|
|
39
|
+
return () => $t({
|
|
40
40
|
buttons: e.data,
|
|
41
41
|
rowData: e.rowData,
|
|
42
42
|
hProps: e.hProps
|
|
@@ -1376,7 +1376,7 @@ function B1(e, t) {
|
|
|
1376
1376
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="5" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="19" cy="5" r="1"></circle><circle cx="5" cy="12" r="1"></circle><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="19" r="1"></circle><circle cx="12" cy="19" r="1"></circle><circle cx="19" cy="19" r="1"></circle></g>', 1)
|
|
1377
1377
|
]));
|
|
1378
1378
|
}
|
|
1379
|
-
const
|
|
1379
|
+
const yt = /* @__PURE__ */ _(R1, [["render", B1]]), F1 = {}, V1 = {
|
|
1380
1380
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1381
1381
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1382
1382
|
viewBox: "0 0 24 24"
|
|
@@ -1642,7 +1642,7 @@ function j0(e, t) {
|
|
|
1642
1642
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="6" height="6" rx="1"></rect><rect x="14" y="4" width="6" height="6" rx="1"></rect><rect x="4" y="14" width="6" height="6" rx="1"></rect><path d="M14 17h6m-3-3v6"></path></g>', 1)
|
|
1643
1643
|
]));
|
|
1644
1644
|
}
|
|
1645
|
-
const
|
|
1645
|
+
const dt = /* @__PURE__ */ _(I0, [["render", j0]]), z0 = {}, q0 = {
|
|
1646
1646
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1647
1647
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1648
1648
|
viewBox: "0 0 24 24"
|
|
@@ -1895,7 +1895,7 @@ function Mw(e, t) {
|
|
|
1895
1895
|
E('<g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 7h16"></path><path d="M10 11v6"></path><path d="M14 11v6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12"></path><path d="M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"></path></g>', 1)
|
|
1896
1896
|
]));
|
|
1897
1897
|
}
|
|
1898
|
-
const
|
|
1898
|
+
const xt = /* @__PURE__ */ _(Cw, [["render", Mw]]), Sw = {}, Tw = {
|
|
1899
1899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1900
1900
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
1901
1901
|
viewBox: "0 0 24 24"
|
|
@@ -2269,7 +2269,7 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2269
2269
|
Filter: Et,
|
|
2270
2270
|
GitCompare: pu,
|
|
2271
2271
|
GitPullRequest: hu,
|
|
2272
|
-
GridDots:
|
|
2272
|
+
GridDots: yt,
|
|
2273
2273
|
Home: wu,
|
|
2274
2274
|
Id: mu,
|
|
2275
2275
|
LayoutSidebarLeftCollapse: vu,
|
|
@@ -2288,7 +2288,7 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2288
2288
|
Paperclip: Su,
|
|
2289
2289
|
Photo: Tu,
|
|
2290
2290
|
PhotoOff: Lt,
|
|
2291
|
-
Plus:
|
|
2291
|
+
Plus: dt,
|
|
2292
2292
|
Presentation: Nu,
|
|
2293
2293
|
PresentationAnalytics: Iu,
|
|
2294
2294
|
Printer: Du,
|
|
@@ -2304,7 +2304,7 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2304
2304
|
Sun: Fu,
|
|
2305
2305
|
TransferIn: Vu,
|
|
2306
2306
|
TransferOut: Uu,
|
|
2307
|
-
Trash:
|
|
2307
|
+
Trash: xt,
|
|
2308
2308
|
User: Pu,
|
|
2309
2309
|
UserCircle: Ku,
|
|
2310
2310
|
UserMinus: Eu,
|
|
@@ -2323,14 +2323,14 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2323
2323
|
setup(e) {
|
|
2324
2324
|
const t = S(!0), r = S(), n = (a) => {
|
|
2325
2325
|
if (t.value = !1, a && typeof a == "string") {
|
|
2326
|
-
r.value = nc[a],
|
|
2326
|
+
r.value = nc[a], Le(() => {
|
|
2327
2327
|
t.value = !0;
|
|
2328
2328
|
});
|
|
2329
2329
|
return;
|
|
2330
2330
|
}
|
|
2331
2331
|
r.value = a;
|
|
2332
2332
|
};
|
|
2333
|
-
return n(e.icon),
|
|
2333
|
+
return n(e.icon), de(
|
|
2334
2334
|
() => e.icon,
|
|
2335
2335
|
(a) => {
|
|
2336
2336
|
n(a);
|
|
@@ -2338,13 +2338,13 @@ const rc = /* @__PURE__ */ _(gm, [["render", km]]), nc = /* @__PURE__ */ Object.
|
|
|
2338
2338
|
), () => t.value ? r.value && r.value.render(null, []) : null;
|
|
2339
2339
|
}
|
|
2340
2340
|
}), bm = nc;
|
|
2341
|
-
let
|
|
2341
|
+
let Ge;
|
|
2342
2342
|
function ok(e, t = "/") {
|
|
2343
|
-
return
|
|
2343
|
+
return Ge = dd({
|
|
2344
2344
|
history: fd(t),
|
|
2345
2345
|
routes: e,
|
|
2346
2346
|
scrollBehavior: () => ({ left: 0, top: 0 })
|
|
2347
|
-
}),
|
|
2347
|
+
}), Ge;
|
|
2348
2348
|
}
|
|
2349
2349
|
const Za = window.localStorage;
|
|
2350
2350
|
function ur(e, t) {
|
|
@@ -2412,10 +2412,10 @@ class Cm {
|
|
|
2412
2412
|
this.delete(t);
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
|
-
const
|
|
2415
|
+
const Ct = new Cm("qx"), { notification: $m } = Lc(["notification"], {
|
|
2416
2416
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
2417
2417
|
notificationProviderProps: { placement: "bottom-right" }
|
|
2418
|
-
}),
|
|
2418
|
+
}), it = $m;
|
|
2419
2419
|
function Me(e, t, r = "1 Day") {
|
|
2420
2420
|
if (typeof r == "string") {
|
|
2421
2421
|
let n = 0;
|
|
@@ -2436,17 +2436,17 @@ function Me(e, t, r = "1 Day") {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
r = Number(a[0]) * n;
|
|
2438
2438
|
}
|
|
2439
|
-
|
|
2439
|
+
Ct.set(e, t, r);
|
|
2440
2440
|
}
|
|
2441
2441
|
function Oe(e, t) {
|
|
2442
|
-
return
|
|
2442
|
+
return Ct.get(e, t);
|
|
2443
2443
|
}
|
|
2444
2444
|
const Ca = (e) => {
|
|
2445
|
-
|
|
2445
|
+
Ct.delete(e);
|
|
2446
2446
|
}, Mm = (e) => {
|
|
2447
|
-
|
|
2447
|
+
Ct.deleteByPrefix(e);
|
|
2448
2448
|
}, sk = () => {
|
|
2449
|
-
|
|
2449
|
+
Ct.deleteAll();
|
|
2450
2450
|
}, cr = (e = 0) => {
|
|
2451
2451
|
const t = document.documentElement, r = document.querySelectorAll(".uz-table-m-content");
|
|
2452
2452
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
@@ -2495,7 +2495,7 @@ function bo(e) {
|
|
|
2495
2495
|
records: e.records
|
|
2496
2496
|
};
|
|
2497
2497
|
}
|
|
2498
|
-
const
|
|
2498
|
+
const Ye = (e, t = "yyyy-MM-dd") => {
|
|
2499
2499
|
if (!e)
|
|
2500
2500
|
return "";
|
|
2501
2501
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
@@ -2613,7 +2613,7 @@ const Tm = {
|
|
|
2613
2613
|
"zh-CN": { ...Tm },
|
|
2614
2614
|
"fr-FR": {}
|
|
2615
2615
|
}
|
|
2616
|
-
}),
|
|
2616
|
+
}), He = Im, he = ja({
|
|
2617
2617
|
needUpdate: !1,
|
|
2618
2618
|
theme: !1,
|
|
2619
2619
|
isMobile: !1,
|
|
@@ -2627,7 +2627,7 @@ function ac(e) {
|
|
|
2627
2627
|
let t;
|
|
2628
2628
|
e ? t = e : he.lang === "zh-CN" ? t = "en-US" : t = "zh-CN", Me("lang", t, 0), he.lang = t;
|
|
2629
2629
|
const r = document.body;
|
|
2630
|
-
r.dataset.lang = t,
|
|
2630
|
+
r.dataset.lang = t, He.global.locale.value = t;
|
|
2631
2631
|
}
|
|
2632
2632
|
function oc(e) {
|
|
2633
2633
|
const t = document.body;
|
|
@@ -2667,16 +2667,16 @@ const qm = (e) => {
|
|
|
2667
2667
|
return r && r.groups && r.groups.fileName;
|
|
2668
2668
|
}
|
|
2669
2669
|
return "";
|
|
2670
|
-
},
|
|
2670
|
+
}, Je = Ha.create({
|
|
2671
2671
|
timeout: 3e5,
|
|
2672
2672
|
responseType: "json",
|
|
2673
2673
|
headers: {
|
|
2674
2674
|
"Content-Type": "application/json"
|
|
2675
2675
|
}
|
|
2676
2676
|
});
|
|
2677
|
-
|
|
2677
|
+
Je.defaults.timeout = 3e5;
|
|
2678
2678
|
let $a = Ha.CancelToken.source();
|
|
2679
|
-
|
|
2679
|
+
Je.interceptors.request.use(
|
|
2680
2680
|
(e) => {
|
|
2681
2681
|
var r, n;
|
|
2682
2682
|
e.cancelToken = $a.token, e.headers.Language = he.lang;
|
|
@@ -2692,10 +2692,10 @@ Qe.interceptors.request.use(
|
|
|
2692
2692
|
},
|
|
2693
2693
|
(e) => Promise.reject(e)
|
|
2694
2694
|
);
|
|
2695
|
-
|
|
2695
|
+
Je.interceptors.response.use(
|
|
2696
2696
|
(e) => {
|
|
2697
2697
|
const t = e.data;
|
|
2698
|
-
if (t.code === 401 && (Ca("token"),
|
|
2698
|
+
if (t.code === 401 && (Ca("token"), Ge.replace("/login")), e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
2699
2699
|
const r = qm(e.headers);
|
|
2700
2700
|
return Promise.resolve({
|
|
2701
2701
|
fileName: decodeURIComponent(r),
|
|
@@ -2706,21 +2706,21 @@ Qe.interceptors.response.use(
|
|
|
2706
2706
|
const r = t.data;
|
|
2707
2707
|
return Promise.resolve(r);
|
|
2708
2708
|
} else {
|
|
2709
|
-
|
|
2709
|
+
it.destroyAll();
|
|
2710
2710
|
const r = t.message;
|
|
2711
|
-
return
|
|
2712
|
-
content: r ||
|
|
2711
|
+
return it.error({
|
|
2712
|
+
content: r || He.global.t("Notice.error"),
|
|
2713
2713
|
duration: 3e3
|
|
2714
2714
|
}), Promise.reject(r);
|
|
2715
2715
|
}
|
|
2716
2716
|
},
|
|
2717
|
-
(e) => e ? (
|
|
2718
|
-
content:
|
|
2717
|
+
(e) => e ? (it.destroyAll(), e.code === "ERR_NETWORK" ? (it.error({
|
|
2718
|
+
content: He.global.t("Notice.network"),
|
|
2719
2719
|
duration: 3e3
|
|
2720
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (Ca("token"), window.location.href = "/login"),
|
|
2721
|
-
content:
|
|
2720
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (Ca("token"), window.location.href = "/login"), it.error({
|
|
2721
|
+
content: He.global.t("Notice.error"),
|
|
2722
2722
|
duration: 3e3
|
|
2723
|
-
}), Promise.reject(
|
|
2723
|
+
}), Promise.reject(He.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(He.global.t("Notice.error"))
|
|
2724
2724
|
);
|
|
2725
2725
|
const Gt = "/apiserver/", _o = () => {
|
|
2726
2726
|
$a.cancel(), $a = Ha.CancelToken.source();
|
|
@@ -2731,7 +2731,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2731
2731
|
});
|
|
2732
2732
|
if (qe.has(a))
|
|
2733
2733
|
return qe.get(a);
|
|
2734
|
-
const o =
|
|
2734
|
+
const o = Je({
|
|
2735
2735
|
url: `${Gt}${e}`,
|
|
2736
2736
|
method: "GET",
|
|
2737
2737
|
data: t,
|
|
@@ -2748,7 +2748,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2748
2748
|
});
|
|
2749
2749
|
if (qe.has(a))
|
|
2750
2750
|
return qe.get(a);
|
|
2751
|
-
const o =
|
|
2751
|
+
const o = Je({
|
|
2752
2752
|
url: `${Gt}${e}`,
|
|
2753
2753
|
method: "POST",
|
|
2754
2754
|
data: t,
|
|
@@ -2756,20 +2756,20 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2756
2756
|
timeout: n
|
|
2757
2757
|
}).then((s) => (qe.delete(a), Promise.resolve(s))).catch((s) => (qe.delete(a), Promise.reject(s)));
|
|
2758
2758
|
return qe.set(a, o), o;
|
|
2759
|
-
}, dk = (e, t = {}, r = "blob", n = 3e5) =>
|
|
2759
|
+
}, dk = (e, t = {}, r = "blob", n = 3e5) => Je({
|
|
2760
2760
|
url: `${Gt}${e}`,
|
|
2761
2761
|
method: "POST",
|
|
2762
2762
|
data: t,
|
|
2763
2763
|
responseType: r,
|
|
2764
2764
|
timeout: n
|
|
2765
|
-
}), fk = (e) =>
|
|
2765
|
+
}), fk = (e) => Je(e), ic = (e, t) => Je({
|
|
2766
2766
|
headers: {
|
|
2767
2767
|
"Content-Type": "multipart/form-data"
|
|
2768
2768
|
},
|
|
2769
2769
|
url: `${Gt}${e}`,
|
|
2770
2770
|
method: "POST",
|
|
2771
2771
|
data: t
|
|
2772
|
-
}), Am = (e) => we("dynamic-table/queryById", { id: e }), Rm = (e) => we("dynamic-table/createTime", { id: e }),
|
|
2772
|
+
}), Am = (e) => we("dynamic-table/queryById", { id: e }), Rm = (e) => we("dynamic-table/createTime", { id: e }), Ze = (e) => we("table/query", e), eo = (e) => we("table/submit", e), Om = (e) => we("table/delete", e), Ee = (e, t, r) => we("calculation/sqlExecute", {
|
|
2773
2773
|
calculationIds: e,
|
|
2774
2774
|
linkId: t,
|
|
2775
2775
|
...r
|
|
@@ -2799,7 +2799,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2799
2799
|
() => {
|
|
2800
2800
|
r && r();
|
|
2801
2801
|
},
|
|
2802
|
-
(o) =>
|
|
2802
|
+
(o) => Ze({
|
|
2803
2803
|
id: o,
|
|
2804
2804
|
tableId: n
|
|
2805
2805
|
}),
|
|
@@ -2807,7 +2807,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2807
2807
|
tableId: n,
|
|
2808
2808
|
...o
|
|
2809
2809
|
}),
|
|
2810
|
-
|
|
2810
|
+
it,
|
|
2811
2811
|
we
|
|
2812
2812
|
);
|
|
2813
2813
|
} catch (a) {
|
|
@@ -2878,7 +2878,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2878
2878
|
}, xo = (e, t, r, n, a) => {
|
|
2879
2879
|
let o = cc(e, t, r, n, a);
|
|
2880
2880
|
return e.confirmText && (o = Fm(o, e, t, r, n)), !e.confirmText && e.tooltipText && (o = Bm(o, e.tooltipText)), o;
|
|
2881
|
-
},
|
|
2881
|
+
}, $t = ({
|
|
2882
2882
|
buttons: e,
|
|
2883
2883
|
rowData: t = {},
|
|
2884
2884
|
callback: r,
|
|
@@ -2901,7 +2901,7 @@ const Gt = "/apiserver/", _o = () => {
|
|
|
2901
2901
|
);
|
|
2902
2902
|
}), o.push(
|
|
2903
2903
|
Y(
|
|
2904
|
-
|
|
2904
|
+
ct,
|
|
2905
2905
|
{
|
|
2906
2906
|
trigger: "click"
|
|
2907
2907
|
},
|
|
@@ -3112,7 +3112,7 @@ function Lm(e, t, r, n, a, o) {
|
|
|
3112
3112
|
const Hm = /* @__PURE__ */ _(Em, [["render", Lm]]), Km = le({
|
|
3113
3113
|
name: "UzCircle",
|
|
3114
3114
|
components: {
|
|
3115
|
-
NPopover:
|
|
3115
|
+
NPopover: ct
|
|
3116
3116
|
},
|
|
3117
3117
|
props: {
|
|
3118
3118
|
circle: {
|
|
@@ -3400,7 +3400,7 @@ function cv() {
|
|
|
3400
3400
|
return Sr = r, Sr;
|
|
3401
3401
|
}
|
|
3402
3402
|
var Tr, Eo;
|
|
3403
|
-
function
|
|
3403
|
+
function Mt() {
|
|
3404
3404
|
if (Eo) return Tr;
|
|
3405
3405
|
Eo = 1;
|
|
3406
3406
|
var e = ro(), t = uv(), r = cv(), n = "[object Null]", a = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
@@ -3410,7 +3410,7 @@ function Tt() {
|
|
|
3410
3410
|
return Tr = s, Tr;
|
|
3411
3411
|
}
|
|
3412
3412
|
var Nr, Lo;
|
|
3413
|
-
function
|
|
3413
|
+
function Qe() {
|
|
3414
3414
|
if (Lo) return Nr;
|
|
3415
3415
|
Lo = 1;
|
|
3416
3416
|
function e(t) {
|
|
@@ -3423,7 +3423,7 @@ var Ir, Ho;
|
|
|
3423
3423
|
function wc() {
|
|
3424
3424
|
if (Ho) return Ir;
|
|
3425
3425
|
Ho = 1;
|
|
3426
|
-
var e =
|
|
3426
|
+
var e = Mt(), t = Qe(), r = "[object AsyncFunction]", n = "[object Function]", a = "[object GeneratorFunction]", o = "[object Proxy]";
|
|
3427
3427
|
function s(u) {
|
|
3428
3428
|
if (!t(u))
|
|
3429
3429
|
return !1;
|
|
@@ -3476,7 +3476,7 @@ var qr, Jo;
|
|
|
3476
3476
|
function pv() {
|
|
3477
3477
|
if (Jo) return qr;
|
|
3478
3478
|
Jo = 1;
|
|
3479
|
-
var e = wc(), t = fv(), r =
|
|
3479
|
+
var e = wc(), t = fv(), r = Qe(), n = mc(), a = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, u = Object.prototype, p = s.toString, h = u.hasOwnProperty, b = RegExp(
|
|
3480
3480
|
"^" + p.call(h).replace(a, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3481
3481
|
);
|
|
3482
3482
|
function D(g) {
|
|
@@ -3497,7 +3497,7 @@ function hv() {
|
|
|
3497
3497
|
return Ar = e, Ar;
|
|
3498
3498
|
}
|
|
3499
3499
|
var Rr, Xo;
|
|
3500
|
-
function
|
|
3500
|
+
function rt() {
|
|
3501
3501
|
if (Xo) return Rr;
|
|
3502
3502
|
Xo = 1;
|
|
3503
3503
|
var e = pv(), t = hv();
|
|
@@ -3511,14 +3511,14 @@ var Or, Yo;
|
|
|
3511
3511
|
function no() {
|
|
3512
3512
|
if (Yo) return Or;
|
|
3513
3513
|
Yo = 1;
|
|
3514
|
-
var e =
|
|
3514
|
+
var e = rt(), t = Se(), r = e(t, "Map");
|
|
3515
3515
|
return Or = r, Or;
|
|
3516
3516
|
}
|
|
3517
3517
|
var Br, Zo;
|
|
3518
3518
|
function Qt() {
|
|
3519
3519
|
if (Zo) return Br;
|
|
3520
3520
|
Zo = 1;
|
|
3521
|
-
var e =
|
|
3521
|
+
var e = rt(), t = e(Object, "create");
|
|
3522
3522
|
return Br = t, Br;
|
|
3523
3523
|
}
|
|
3524
3524
|
var Fr, es;
|
|
@@ -3726,7 +3726,7 @@ var rn, vs;
|
|
|
3726
3726
|
function Dv() {
|
|
3727
3727
|
if (vs) return rn;
|
|
3728
3728
|
vs = 1;
|
|
3729
|
-
var e =
|
|
3729
|
+
var e = rt(), t = function() {
|
|
3730
3730
|
try {
|
|
3731
3731
|
var r = e(Object, "defineProperty");
|
|
3732
3732
|
return r({}, "", {}), r;
|
|
@@ -3789,7 +3789,7 @@ function jv() {
|
|
|
3789
3789
|
return sn = e, sn;
|
|
3790
3790
|
}
|
|
3791
3791
|
var ln, _s;
|
|
3792
|
-
function
|
|
3792
|
+
function ft() {
|
|
3793
3793
|
if (_s) return ln;
|
|
3794
3794
|
_s = 1;
|
|
3795
3795
|
function e(t) {
|
|
@@ -3801,7 +3801,7 @@ var un, xs;
|
|
|
3801
3801
|
function zv() {
|
|
3802
3802
|
if (xs) return un;
|
|
3803
3803
|
xs = 1;
|
|
3804
|
-
var e =
|
|
3804
|
+
var e = Mt(), t = ft(), r = "[object Arguments]";
|
|
3805
3805
|
function n(a) {
|
|
3806
3806
|
return t(a) && e(a) == r;
|
|
3807
3807
|
}
|
|
@@ -3811,7 +3811,7 @@ var cn, Cs;
|
|
|
3811
3811
|
function qv() {
|
|
3812
3812
|
if (Cs) return cn;
|
|
3813
3813
|
Cs = 1;
|
|
3814
|
-
var e = zv(), t =
|
|
3814
|
+
var e = zv(), t = ft(), r = Object.prototype, n = r.hasOwnProperty, a = r.propertyIsEnumerable, o = e(/* @__PURE__ */ function() {
|
|
3815
3815
|
return arguments;
|
|
3816
3816
|
}()) ? e : function(s) {
|
|
3817
3817
|
return t(s) && n.call(s, "callee") && !a.call(s, "callee");
|
|
@@ -3825,7 +3825,7 @@ function ao() {
|
|
|
3825
3825
|
var e = Array.isArray;
|
|
3826
3826
|
return dn = e, dn;
|
|
3827
3827
|
}
|
|
3828
|
-
var
|
|
3828
|
+
var wt = { exports: {} }, fn, Ms;
|
|
3829
3829
|
function Av() {
|
|
3830
3830
|
if (Ms) return fn;
|
|
3831
3831
|
Ms = 1;
|
|
@@ -3834,13 +3834,13 @@ function Av() {
|
|
|
3834
3834
|
}
|
|
3835
3835
|
return fn = e, fn;
|
|
3836
3836
|
}
|
|
3837
|
-
|
|
3837
|
+
wt.exports;
|
|
3838
3838
|
var Ss;
|
|
3839
3839
|
function yc() {
|
|
3840
3840
|
return Ss || (Ss = 1, function(e, t) {
|
|
3841
3841
|
var r = Se(), n = Av(), a = t && !t.nodeType && t, o = a && !0 && e && !e.nodeType && e, s = o && o.exports === a, u = s ? r.Buffer : void 0, p = u ? u.isBuffer : void 0, h = p || n;
|
|
3842
3842
|
e.exports = h;
|
|
3843
|
-
}(
|
|
3843
|
+
}(wt, wt.exports)), wt.exports;
|
|
3844
3844
|
}
|
|
3845
3845
|
var pn, Ts;
|
|
3846
3846
|
function Rv() {
|
|
@@ -3867,7 +3867,7 @@ var wn, Is;
|
|
|
3867
3867
|
function Ov() {
|
|
3868
3868
|
if (Is) return wn;
|
|
3869
3869
|
Is = 1;
|
|
3870
|
-
var e =
|
|
3870
|
+
var e = Mt(), t = kc(), r = ft(), n = "[object Arguments]", a = "[object Array]", o = "[object Boolean]", s = "[object Date]", u = "[object Error]", p = "[object Function]", h = "[object Map]", b = "[object Number]", D = "[object Object]", g = "[object RegExp]", d = "[object Set]", k = "[object String]", l = "[object WeakMap]", v = "[object ArrayBuffer]", m = "[object DataView]", f = "[object Float32Array]", x = "[object Float64Array]", I = "[object Int8Array]", V = "[object Int16Array]", U = "[object Int32Array]", F = "[object Uint8Array]", z = "[object Uint8ClampedArray]", j = "[object Uint16Array]", C = "[object Uint32Array]", N = {};
|
|
3871
3871
|
N[f] = N[x] = N[I] = N[V] = N[U] = N[F] = N[z] = N[j] = N[C] = !0, N[n] = N[a] = N[v] = N[o] = N[m] = N[s] = N[u] = N[p] = N[h] = N[b] = N[D] = N[g] = N[d] = N[k] = N[l] = !1;
|
|
3872
3872
|
function O(R) {
|
|
3873
3873
|
return r(R) && t(R.length) && !!N[e(R)];
|
|
@@ -3885,8 +3885,8 @@ function oo() {
|
|
|
3885
3885
|
}
|
|
3886
3886
|
return mn = e, mn;
|
|
3887
3887
|
}
|
|
3888
|
-
var
|
|
3889
|
-
|
|
3888
|
+
var mt = { exports: {} };
|
|
3889
|
+
mt.exports;
|
|
3890
3890
|
var js;
|
|
3891
3891
|
function so() {
|
|
3892
3892
|
return js || (js = 1, function(e, t) {
|
|
@@ -3898,7 +3898,7 @@ function so() {
|
|
|
3898
3898
|
}
|
|
3899
3899
|
}();
|
|
3900
3900
|
e.exports = u;
|
|
3901
|
-
}(
|
|
3901
|
+
}(mt, mt.exports)), mt.exports;
|
|
3902
3902
|
}
|
|
3903
3903
|
var vn, zs;
|
|
3904
3904
|
function Bv() {
|
|
@@ -4015,7 +4015,7 @@ var Sn, Es;
|
|
|
4015
4015
|
function Ev() {
|
|
4016
4016
|
if (Es) return Sn;
|
|
4017
4017
|
Es = 1;
|
|
4018
|
-
var e =
|
|
4018
|
+
var e = Qe(), t = lo(), r = Pv(), n = Object.prototype, a = n.hasOwnProperty;
|
|
4019
4019
|
function o(s) {
|
|
4020
4020
|
if (!e(s))
|
|
4021
4021
|
return r(s);
|
|
@@ -4046,8 +4046,8 @@ function Lv() {
|
|
|
4046
4046
|
}
|
|
4047
4047
|
return Nn = r, Nn;
|
|
4048
4048
|
}
|
|
4049
|
-
var
|
|
4050
|
-
|
|
4049
|
+
var vt = { exports: {} };
|
|
4050
|
+
vt.exports;
|
|
4051
4051
|
var Ks;
|
|
4052
4052
|
function Hv() {
|
|
4053
4053
|
return Ks || (Ks = 1, function(e, t) {
|
|
@@ -4059,7 +4059,7 @@ function Hv() {
|
|
|
4059
4059
|
return h.copy(g), g;
|
|
4060
4060
|
}
|
|
4061
4061
|
e.exports = p;
|
|
4062
|
-
}(
|
|
4062
|
+
}(vt, vt.exports)), vt.exports;
|
|
4063
4063
|
}
|
|
4064
4064
|
var In, Gs;
|
|
4065
4065
|
function Kv() {
|
|
@@ -4190,35 +4190,35 @@ var Pn, ol;
|
|
|
4190
4190
|
function Yv() {
|
|
4191
4191
|
if (ol) return Pn;
|
|
4192
4192
|
ol = 1;
|
|
4193
|
-
var e =
|
|
4193
|
+
var e = rt(), t = Se(), r = e(t, "DataView");
|
|
4194
4194
|
return Pn = r, Pn;
|
|
4195
4195
|
}
|
|
4196
4196
|
var En, sl;
|
|
4197
4197
|
function Zv() {
|
|
4198
4198
|
if (sl) return En;
|
|
4199
4199
|
sl = 1;
|
|
4200
|
-
var e =
|
|
4200
|
+
var e = rt(), t = Se(), r = e(t, "Promise");
|
|
4201
4201
|
return En = r, En;
|
|
4202
4202
|
}
|
|
4203
4203
|
var Ln, ll;
|
|
4204
4204
|
function eg() {
|
|
4205
4205
|
if (ll) return Ln;
|
|
4206
4206
|
ll = 1;
|
|
4207
|
-
var e =
|
|
4207
|
+
var e = rt(), t = Se(), r = e(t, "Set");
|
|
4208
4208
|
return Ln = r, Ln;
|
|
4209
4209
|
}
|
|
4210
4210
|
var Hn, il;
|
|
4211
4211
|
function tg() {
|
|
4212
4212
|
if (il) return Hn;
|
|
4213
4213
|
il = 1;
|
|
4214
|
-
var e =
|
|
4214
|
+
var e = rt(), t = Se(), r = e(t, "WeakMap");
|
|
4215
4215
|
return Hn = r, Hn;
|
|
4216
4216
|
}
|
|
4217
4217
|
var Kn, ul;
|
|
4218
4218
|
function fo() {
|
|
4219
4219
|
if (ul) return Kn;
|
|
4220
4220
|
ul = 1;
|
|
4221
|
-
var e = Yv(), t = no(), r = Zv(), n = eg(), a = tg(), o =
|
|
4221
|
+
var e = Yv(), t = no(), r = Zv(), n = eg(), a = tg(), o = Mt(), s = mc(), u = "[object Map]", p = "[object Object]", h = "[object Promise]", b = "[object Set]", D = "[object WeakMap]", g = "[object DataView]", d = s(e), k = s(t), l = s(r), v = s(n), m = s(a), f = o;
|
|
4222
4222
|
return (e && f(new e(new ArrayBuffer(1))) != g || t && f(new t()) != u || r && f(r.resolve()) != h || n && f(new n()) != b || a && f(new a()) != D) && (f = function(x) {
|
|
4223
4223
|
var I = o(x), V = I == p ? x.constructor : void 0, U = V ? s(V) : "";
|
|
4224
4224
|
if (U)
|
|
@@ -4353,7 +4353,7 @@ var ta, gl;
|
|
|
4353
4353
|
function ug() {
|
|
4354
4354
|
if (gl) return ta;
|
|
4355
4355
|
gl = 1;
|
|
4356
|
-
var e =
|
|
4356
|
+
var e = Qe(), t = Object.create, r = /* @__PURE__ */ function() {
|
|
4357
4357
|
function n() {
|
|
4358
4358
|
}
|
|
4359
4359
|
return function(a) {
|
|
@@ -4382,7 +4382,7 @@ var na, kl;
|
|
|
4382
4382
|
function dg() {
|
|
4383
4383
|
if (kl) return na;
|
|
4384
4384
|
kl = 1;
|
|
4385
|
-
var e = fo(), t =
|
|
4385
|
+
var e = fo(), t = ft(), r = "[object Map]";
|
|
4386
4386
|
function n(a) {
|
|
4387
4387
|
return t(a) && e(a) == r;
|
|
4388
4388
|
}
|
|
@@ -4399,7 +4399,7 @@ var oa, _l;
|
|
|
4399
4399
|
function pg() {
|
|
4400
4400
|
if (_l) return oa;
|
|
4401
4401
|
_l = 1;
|
|
4402
|
-
var e = fo(), t =
|
|
4402
|
+
var e = fo(), t = ft(), r = "[object Set]";
|
|
4403
4403
|
function n(a) {
|
|
4404
4404
|
return t(a) && e(a) == r;
|
|
4405
4405
|
}
|
|
@@ -4416,46 +4416,46 @@ var la, Cl;
|
|
|
4416
4416
|
function wg() {
|
|
4417
4417
|
if (Cl) return la;
|
|
4418
4418
|
Cl = 1;
|
|
4419
|
-
var e = Nv(), t = Iv(), r = gc(), n = Uv(), a = Lv(), o = Hv(), s = Kv(), u = Wv(), p = Jv(), h = Qv(), b = Xv(), D = fo(), g = rg(), d = ig(), k = cg(), l = ao(), v = yc(), m = fg(), f =
|
|
4420
|
-
re[j] = re[C] = re[
|
|
4421
|
-
function
|
|
4422
|
-
var
|
|
4423
|
-
if (
|
|
4424
|
-
return
|
|
4425
|
-
if (!f(
|
|
4426
|
-
return
|
|
4427
|
-
var
|
|
4428
|
-
if (
|
|
4429
|
-
if (
|
|
4430
|
-
return s(
|
|
4419
|
+
var e = Nv(), t = Iv(), r = gc(), n = Uv(), a = Lv(), o = Hv(), s = Kv(), u = Wv(), p = Jv(), h = Qv(), b = Xv(), D = fo(), g = rg(), d = ig(), k = cg(), l = ao(), v = yc(), m = fg(), f = Qe(), x = hg(), I = io(), V = uo(), U = 1, F = 2, z = 4, j = "[object Arguments]", C = "[object Array]", N = "[object Boolean]", O = "[object Date]", R = "[object Error]", q = "[object Function]", H = "[object GeneratorFunction]", oe = "[object Map]", Z = "[object Number]", ie = "[object Object]", pe = "[object RegExp]", Te = "[object Set]", Ce = "[object String]", ye = "[object Symbol]", Ne = "[object WeakMap]", St = "[object ArrayBuffer]", Tt = "[object DataView]", Nt = "[object Float32Array]", tr = "[object Float64Array]", rr = "[object Int8Array]", nr = "[object Int16Array]", ar = "[object Int32Array]", Xe = "[object Uint8Array]", or = "[object Uint8ClampedArray]", me = "[object Uint16Array]", sr = "[object Uint32Array]", re = {};
|
|
4420
|
+
re[j] = re[C] = re[St] = re[Tt] = re[N] = re[O] = re[Nt] = re[tr] = re[rr] = re[nr] = re[ar] = re[oe] = re[Z] = re[ie] = re[pe] = re[Te] = re[Ce] = re[ye] = re[Xe] = re[or] = re[me] = re[sr] = !0, re[R] = re[q] = re[Ne] = !1;
|
|
4421
|
+
function nt(ee, Fe, Ve, lr, at, Ie) {
|
|
4422
|
+
var ce, Ue = Fe & U, Pe = Fe & F, It = Fe & z;
|
|
4423
|
+
if (Ve && (ce = at ? Ve(ee, lr, at, Ie) : Ve(ee)), ce !== void 0)
|
|
4424
|
+
return ce;
|
|
4425
|
+
if (!f(ee))
|
|
4426
|
+
return ee;
|
|
4427
|
+
var ht = l(ee);
|
|
4428
|
+
if (ht) {
|
|
4429
|
+
if (ce = g(ee), !Ue)
|
|
4430
|
+
return s(ee, ce);
|
|
4431
4431
|
} else {
|
|
4432
|
-
var De = D(
|
|
4433
|
-
if (v(
|
|
4434
|
-
return o(
|
|
4435
|
-
if (De ==
|
|
4436
|
-
if (
|
|
4437
|
-
return
|
|
4432
|
+
var De = D(ee), Dt = De == q || De == H;
|
|
4433
|
+
if (v(ee))
|
|
4434
|
+
return o(ee, Ue);
|
|
4435
|
+
if (De == ie || De == j || Dt && !at) {
|
|
4436
|
+
if (ce = Pe || Dt ? {} : k(ee), !Ue)
|
|
4437
|
+
return Pe ? p(ee, a(ce, ee)) : u(ee, n(ce, ee));
|
|
4438
4438
|
} else {
|
|
4439
4439
|
if (!re[De])
|
|
4440
|
-
return
|
|
4441
|
-
|
|
4440
|
+
return at ? ee : {};
|
|
4441
|
+
ce = d(ee, De, Ue);
|
|
4442
4442
|
}
|
|
4443
4443
|
}
|
|
4444
4444
|
Ie || (Ie = new e());
|
|
4445
|
-
var
|
|
4446
|
-
if (
|
|
4447
|
-
return
|
|
4448
|
-
Ie.set(
|
|
4449
|
-
|
|
4450
|
-
}) : m(
|
|
4451
|
-
|
|
4445
|
+
var ot = Ie.get(ee);
|
|
4446
|
+
if (ot)
|
|
4447
|
+
return ot;
|
|
4448
|
+
Ie.set(ee, ce), x(ee) ? ee.forEach(function(je) {
|
|
4449
|
+
ce.add(nt(je, Fe, Ve, je, ee, Ie));
|
|
4450
|
+
}) : m(ee) && ee.forEach(function(je, Ae) {
|
|
4451
|
+
ce.set(Ae, nt(je, Fe, Ve, Ae, ee, Ie));
|
|
4452
4452
|
});
|
|
4453
|
-
var
|
|
4454
|
-
return t(jt ||
|
|
4455
|
-
jt && (Ae = je, je =
|
|
4456
|
-
}),
|
|
4453
|
+
var st = It ? Pe ? b : h : Pe ? V : I, jt = ht ? void 0 : st(ee);
|
|
4454
|
+
return t(jt || ee, function(je, Ae) {
|
|
4455
|
+
jt && (Ae = je, je = ee[Ae]), r(ce, Ae, nt(je, Fe, Ve, Ae, ee, Ie));
|
|
4456
|
+
}), ce;
|
|
4457
4457
|
}
|
|
4458
|
-
return la =
|
|
4458
|
+
return la = nt, la;
|
|
4459
4459
|
}
|
|
4460
4460
|
var ia, $l;
|
|
4461
4461
|
function mg() {
|
|
@@ -4501,6 +4501,10 @@ const Q = /* @__PURE__ */ to(vg), gg = le({
|
|
|
4501
4501
|
type: Number,
|
|
4502
4502
|
default: 0
|
|
4503
4503
|
},
|
|
4504
|
+
itemIndex: {
|
|
4505
|
+
type: Number,
|
|
4506
|
+
default: 0
|
|
4507
|
+
},
|
|
4504
4508
|
clearable: {
|
|
4505
4509
|
type: Boolean,
|
|
4506
4510
|
default: void 0
|
|
@@ -4511,9 +4515,9 @@ const Q = /* @__PURE__ */ to(vg), gg = le({
|
|
|
4511
4515
|
}
|
|
4512
4516
|
},
|
|
4513
4517
|
setup(e) {
|
|
4514
|
-
const t =
|
|
4518
|
+
const t = Ke("mainFormValue"), r = S(!1), n = S([]);
|
|
4515
4519
|
return {
|
|
4516
|
-
isMobile:
|
|
4520
|
+
isMobile: _t(() => he.isMobile),
|
|
4517
4521
|
showDropdown: r,
|
|
4518
4522
|
dropdownOptions: n,
|
|
4519
4523
|
updateValue: async (l, v, m) => {
|
|
@@ -4525,6 +4529,7 @@ const Q = /* @__PURE__ */ to(vg), gg = le({
|
|
|
4525
4529
|
"value",
|
|
4526
4530
|
"formValue",
|
|
4527
4531
|
"mainFormValue",
|
|
4532
|
+
"index",
|
|
4528
4533
|
"option",
|
|
4529
4534
|
"POST",
|
|
4530
4535
|
x
|
|
@@ -4534,6 +4539,7 @@ const Q = /* @__PURE__ */ to(vg), gg = le({
|
|
|
4534
4539
|
v,
|
|
4535
4540
|
f,
|
|
4536
4541
|
t,
|
|
4542
|
+
e.itemIndex,
|
|
4537
4543
|
m,
|
|
4538
4544
|
we
|
|
4539
4545
|
);
|
|
@@ -4661,14 +4667,14 @@ function kg(e, t, r, n, a, o) {
|
|
|
4661
4667
|
e.item.params.prefix ? {
|
|
4662
4668
|
name: "prefix",
|
|
4663
4669
|
fn: y(() => [
|
|
4664
|
-
|
|
4670
|
+
K(L(e.item.params.prefix), 1)
|
|
4665
4671
|
]),
|
|
4666
4672
|
key: "0"
|
|
4667
4673
|
} : void 0,
|
|
4668
4674
|
e.item.params.suffix ? {
|
|
4669
4675
|
name: "suffix",
|
|
4670
4676
|
fn: y(() => [
|
|
4671
|
-
|
|
4677
|
+
K(L(e.item.params.suffix), 1)
|
|
4672
4678
|
]),
|
|
4673
4679
|
key: "1"
|
|
4674
4680
|
} : void 0
|
|
@@ -4715,14 +4721,14 @@ function kg(e, t, r, n, a, o) {
|
|
|
4715
4721
|
e.item.params.prefix ? {
|
|
4716
4722
|
name: "prefix",
|
|
4717
4723
|
fn: y(() => [
|
|
4718
|
-
|
|
4724
|
+
K(L(e.item.params.prefix), 1)
|
|
4719
4725
|
]),
|
|
4720
4726
|
key: "0"
|
|
4721
4727
|
} : void 0,
|
|
4722
4728
|
e.item.params.suffix ? {
|
|
4723
4729
|
name: "suffix",
|
|
4724
4730
|
fn: y(() => [
|
|
4725
|
-
|
|
4731
|
+
K(L(e.item.params.suffix), 1)
|
|
4726
4732
|
]),
|
|
4727
4733
|
key: "1"
|
|
4728
4734
|
} : void 0
|
|
@@ -4752,14 +4758,14 @@ function kg(e, t, r, n, a, o) {
|
|
|
4752
4758
|
e.item.params.prefix ? {
|
|
4753
4759
|
name: "prefix",
|
|
4754
4760
|
fn: y(() => [
|
|
4755
|
-
|
|
4761
|
+
K(L(e.item.params.prefix), 1)
|
|
4756
4762
|
]),
|
|
4757
4763
|
key: "0"
|
|
4758
4764
|
} : void 0,
|
|
4759
4765
|
e.item.params.suffix ? {
|
|
4760
4766
|
name: "suffix",
|
|
4761
4767
|
fn: y(() => [
|
|
4762
|
-
|
|
4768
|
+
K(L(e.item.params.suffix), 1)
|
|
4763
4769
|
]),
|
|
4764
4770
|
key: "1"
|
|
4765
4771
|
} : void 0
|
|
@@ -4925,14 +4931,14 @@ function kg(e, t, r, n, a, o) {
|
|
|
4925
4931
|
e.item.params.checked ? {
|
|
4926
4932
|
name: "checked",
|
|
4927
4933
|
fn: y(() => [
|
|
4928
|
-
|
|
4934
|
+
K(L(e.item.params.checked), 1)
|
|
4929
4935
|
]),
|
|
4930
4936
|
key: "0"
|
|
4931
4937
|
} : void 0,
|
|
4932
4938
|
e.item.params.unchecked ? {
|
|
4933
4939
|
name: "unchecked",
|
|
4934
4940
|
fn: y(() => [
|
|
4935
|
-
|
|
4941
|
+
K(L(e.item.params.unchecked), 1)
|
|
4936
4942
|
]),
|
|
4937
4943
|
key: "1"
|
|
4938
4944
|
} : void 0
|
|
@@ -4945,7 +4951,7 @@ function kg(e, t, r, n, a, o) {
|
|
|
4945
4951
|
}, null, 8, ["value", "item", "status"])) : (c(), w(se, { key: 13 }, [], 64))
|
|
4946
4952
|
], 64);
|
|
4947
4953
|
}
|
|
4948
|
-
const
|
|
4954
|
+
const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
4949
4955
|
name: "UzForm",
|
|
4950
4956
|
components: {
|
|
4951
4957
|
NForm: Fa,
|
|
@@ -4953,8 +4959,8 @@ const wt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
4953
4959
|
NDivider: Oa,
|
|
4954
4960
|
NButton: ge,
|
|
4955
4961
|
NIcon: ve,
|
|
4956
|
-
UzFormItem:
|
|
4957
|
-
Plus:
|
|
4962
|
+
UzFormItem: pt,
|
|
4963
|
+
Plus: dt
|
|
4958
4964
|
},
|
|
4959
4965
|
props: {
|
|
4960
4966
|
items: {
|
|
@@ -5006,7 +5012,7 @@ const wt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5006
5012
|
}
|
|
5007
5013
|
},
|
|
5008
5014
|
setup(e, { expose: t }) {
|
|
5009
|
-
const r =
|
|
5015
|
+
const r = Ke("userStore"), n = _t(() => he.isMobile), a = S(), o = S({}), s = S([]), u = S([]), p = S([]), h = S(), b = S(!1), D = S(""), g = S("");
|
|
5010
5016
|
ba("mainFormValue", {
|
|
5011
5017
|
value: () => o.value,
|
|
5012
5018
|
setValue: (j) => {
|
|
@@ -5026,15 +5032,15 @@ const wt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5026
5032
|
switch (j) {
|
|
5027
5033
|
case "datetime":
|
|
5028
5034
|
case "datetimerange":
|
|
5029
|
-
return
|
|
5035
|
+
return Ye(C, "yyyy-MM-dd hh:mm:ss");
|
|
5030
5036
|
case "month":
|
|
5031
5037
|
case "monthrange":
|
|
5032
|
-
return
|
|
5038
|
+
return Ye(C, "yyyy-MM");
|
|
5033
5039
|
case "year":
|
|
5034
5040
|
case "yearrange":
|
|
5035
|
-
return
|
|
5041
|
+
return Ye(C, "yyyy");
|
|
5036
5042
|
default:
|
|
5037
|
-
return
|
|
5043
|
+
return Ye(C);
|
|
5038
5044
|
}
|
|
5039
5045
|
}, l = (j, C = !1) => {
|
|
5040
5046
|
const N = _e(j).startOf("day").diff(_e().startOf("day"), "day");
|
|
@@ -5156,20 +5162,20 @@ const wt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5156
5162
|
C();
|
|
5157
5163
|
else if (await f() === 0) {
|
|
5158
5164
|
const q = Q(o.value);
|
|
5159
|
-
p.value.forEach((
|
|
5160
|
-
q[
|
|
5161
|
-
}), Object.keys(q).forEach((
|
|
5162
|
-
|
|
5163
|
-
Object.keys(
|
|
5164
|
-
Array.isArray(
|
|
5165
|
+
p.value.forEach((Z) => {
|
|
5166
|
+
q[Z] = JSON.stringify(q[Z]);
|
|
5167
|
+
}), Object.keys(q).forEach((Z) => {
|
|
5168
|
+
Z.includes("sub_") && q[Z].forEach((ie) => {
|
|
5169
|
+
Object.keys(ie).forEach((pe) => {
|
|
5170
|
+
Array.isArray(ie[pe]) && (ie[pe] = JSON.stringify(ie[pe]));
|
|
5165
5171
|
});
|
|
5166
5172
|
});
|
|
5167
5173
|
});
|
|
5168
|
-
const
|
|
5174
|
+
const H = JSON.stringify(
|
|
5169
5175
|
q,
|
|
5170
|
-
(
|
|
5171
|
-
),
|
|
5172
|
-
j(
|
|
5176
|
+
(Z, ie) => ie === void 0 ? null : Array.isArray(ie) ? ie.filter((pe) => pe !== "") : ie
|
|
5177
|
+
), oe = JSON.parse(H);
|
|
5178
|
+
j(oe);
|
|
5173
5179
|
} else
|
|
5174
5180
|
C();
|
|
5175
5181
|
}
|
|
@@ -5197,7 +5203,7 @@ const wt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5197
5203
|
}, z = () => o.value;
|
|
5198
5204
|
return Be(() => {
|
|
5199
5205
|
e.status !== 0 && (o.value = e.value, m());
|
|
5200
|
-
}), t({ validate: x, restoreValidation: I, getValues: z }),
|
|
5206
|
+
}), t({ validate: x, restoreValidation: I, getValues: z }), de(
|
|
5201
5207
|
() => e.items,
|
|
5202
5208
|
(j) => {
|
|
5203
5209
|
m(j);
|
|
@@ -5205,7 +5211,7 @@ const wt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = le({
|
|
|
5205
5211
|
{
|
|
5206
5212
|
deep: !0
|
|
5207
5213
|
}
|
|
5208
|
-
),
|
|
5214
|
+
), de(
|
|
5209
5215
|
() => e.value,
|
|
5210
5216
|
(j) => {
|
|
5211
5217
|
o.value = j, m();
|
|
@@ -5243,7 +5249,7 @@ function xg(e, t, r, n, a, o) {
|
|
|
5243
5249
|
labelPlacement: e.labelPlacement
|
|
5244
5250
|
}, {
|
|
5245
5251
|
default: y(() => [
|
|
5246
|
-
|
|
5252
|
+
gt((c(), w("div", {
|
|
5247
5253
|
class: ue(e.isMobile ? "" : "uz-form-grid")
|
|
5248
5254
|
}, [
|
|
5249
5255
|
(c(!0), w(se, null, ke(e.formItems, (v, m) => {
|
|
@@ -5270,7 +5276,7 @@ function xg(e, t, r, n, a, o) {
|
|
|
5270
5276
|
]),
|
|
5271
5277
|
_: 1
|
|
5272
5278
|
}),
|
|
5273
|
-
t[1] || (t[1] =
|
|
5279
|
+
t[1] || (t[1] = K(" 新增 ", -1))
|
|
5274
5280
|
], 8, _g)) : W("", !0),
|
|
5275
5281
|
v.form.showDays ? (c(), w("span", {
|
|
5276
5282
|
key: 1,
|
|
@@ -5296,7 +5302,7 @@ function xg(e, t, r, n, a, o) {
|
|
|
5296
5302
|
"title-placement": v.params.placement
|
|
5297
5303
|
}, {
|
|
5298
5304
|
default: y(() => [
|
|
5299
|
-
|
|
5305
|
+
K(L(typeof v.label == "function" ? v.label() : v.label), 1)
|
|
5300
5306
|
]),
|
|
5301
5307
|
_: 2
|
|
5302
5308
|
}, 1032, ["title-placement"])) : (c(), A(D, {
|
|
@@ -5333,9 +5339,9 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
|
5333
5339
|
NButton: ge,
|
|
5334
5340
|
NIcon: ve,
|
|
5335
5341
|
NDivider: Oa,
|
|
5336
|
-
UzFormItem:
|
|
5337
|
-
Trash:
|
|
5338
|
-
Plus:
|
|
5342
|
+
UzFormItem: pt,
|
|
5343
|
+
Trash: xt,
|
|
5344
|
+
Plus: dt,
|
|
5339
5345
|
Draggable: Yl
|
|
5340
5346
|
},
|
|
5341
5347
|
props: {
|
|
@@ -5377,7 +5383,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
|
5377
5383
|
},
|
|
5378
5384
|
emits: ["update:value", "on-select", "on-change"],
|
|
5379
5385
|
setup(e, { expose: t, emit: r }) {
|
|
5380
|
-
const n =
|
|
5386
|
+
const n = Ke("userStore"), a = S(), o = S({}), s = S([]), u = S([]), p = S(), h = S(!1), b = S(""), D = S(""), g = S([-1, -1]), d = (F, z, j) => {
|
|
5381
5387
|
g.value = [z, j ?? -1], r("on-select", F);
|
|
5382
5388
|
}, k = (F) => {
|
|
5383
5389
|
F && (g.value[1] === -1 ? s.value.splice(g.value[0], 1, F) : s.value[g.value[0]].params.children.splice(g.value[1], 1, F), f()), x();
|
|
@@ -5431,7 +5437,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
|
5431
5437
|
};
|
|
5432
5438
|
return Be(() => {
|
|
5433
5439
|
o.value = e.value, m();
|
|
5434
|
-
}), t({ changeItem: k }),
|
|
5440
|
+
}), t({ changeItem: k }), de(
|
|
5435
5441
|
() => e.items,
|
|
5436
5442
|
() => {
|
|
5437
5443
|
m();
|
|
@@ -5439,7 +5445,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = le({
|
|
|
5439
5445
|
{
|
|
5440
5446
|
deep: !0
|
|
5441
5447
|
}
|
|
5442
|
-
),
|
|
5448
|
+
), de(
|
|
5443
5449
|
() => e.value,
|
|
5444
5450
|
(F) => {
|
|
5445
5451
|
o.value = F;
|
|
@@ -5523,7 +5529,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5523
5529
|
]),
|
|
5524
5530
|
_: 1
|
|
5525
5531
|
}),
|
|
5526
|
-
t[2] || (t[2] =
|
|
5532
|
+
t[2] || (t[2] = K(" 新增 ", -1))
|
|
5527
5533
|
], 8, Mg)) : W("", !0),
|
|
5528
5534
|
m.form.showDays ? (c(), w("span", {
|
|
5529
5535
|
key: 1,
|
|
@@ -5618,7 +5624,7 @@ function Sg(e, t, r, n, a, o) {
|
|
|
5618
5624
|
"title-placement": m.params.placement
|
|
5619
5625
|
}, {
|
|
5620
5626
|
default: y(() => [
|
|
5621
|
-
|
|
5627
|
+
K(L(typeof m.label == "function" ? m.label() : m.label), 1)
|
|
5622
5628
|
]),
|
|
5623
5629
|
_: 2
|
|
5624
5630
|
}, 1032, ["title-placement"])) : (c(), A(D, {
|
|
@@ -5653,11 +5659,11 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = le({
|
|
|
5653
5659
|
NButton: ge,
|
|
5654
5660
|
NIcon: ve,
|
|
5655
5661
|
NImage: Hl,
|
|
5656
|
-
NPopover:
|
|
5662
|
+
NPopover: ct,
|
|
5657
5663
|
NPopconfirm: qa,
|
|
5658
5664
|
NUploadDragger: Yc,
|
|
5659
5665
|
NInputGroup: Va,
|
|
5660
|
-
Trash:
|
|
5666
|
+
Trash: xt,
|
|
5661
5667
|
FileText: Pt,
|
|
5662
5668
|
CloudDownload: Wa,
|
|
5663
5669
|
CloudUpload: Ja,
|
|
@@ -5685,7 +5691,7 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = le({
|
|
|
5685
5691
|
const r = Ft(), n = S([]), a = () => {
|
|
5686
5692
|
t(
|
|
5687
5693
|
"update:value",
|
|
5688
|
-
|
|
5694
|
+
tt.stringify(n.value.map((b) => b.url))
|
|
5689
5695
|
);
|
|
5690
5696
|
}, o = (b) => new Promise((D, g) => {
|
|
5691
5697
|
if (b.file.file)
|
|
@@ -5719,7 +5725,7 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = le({
|
|
|
5719
5725
|
}
|
|
5720
5726
|
if (typeof b == "string")
|
|
5721
5727
|
try {
|
|
5722
|
-
b =
|
|
5728
|
+
b = tt.parse(b), n.value = b.map(
|
|
5723
5729
|
(D, g) => {
|
|
5724
5730
|
const d = decodeURIComponent(D), k = d.lastIndexOf("/"), l = d.substring(k + 1);
|
|
5725
5731
|
return {
|
|
@@ -5740,7 +5746,7 @@ const Tg = /* @__PURE__ */ _($g, [["render", Sg]]), Ng = le({
|
|
|
5740
5746
|
};
|
|
5741
5747
|
return Be(() => {
|
|
5742
5748
|
p();
|
|
5743
|
-
}),
|
|
5749
|
+
}), de(
|
|
5744
5750
|
() => e.value,
|
|
5745
5751
|
() => {
|
|
5746
5752
|
p();
|
|
@@ -5842,7 +5848,7 @@ function qg(e, t, r, n, a, o) {
|
|
|
5842
5848
|
})
|
|
5843
5849
|
]),
|
|
5844
5850
|
default: y(() => [
|
|
5845
|
-
t[0] || (t[0] =
|
|
5851
|
+
t[0] || (t[0] = K(" 确认删除? ", -1))
|
|
5846
5852
|
]),
|
|
5847
5853
|
_: 2,
|
|
5848
5854
|
__: [0]
|
|
@@ -5871,7 +5877,7 @@ function qg(e, t, r, n, a, o) {
|
|
|
5871
5877
|
}
|
|
5872
5878
|
const Ag = /* @__PURE__ */ _(Ng, [["render", qg], ["__scopeId", "data-v-b11a603c"]]), Rg = le({
|
|
5873
5879
|
name: "UzFormItemImage",
|
|
5874
|
-
components: { NImageGroup: Zc, NImage: Hl, NIcon: ve, NPopover:
|
|
5880
|
+
components: { NImageGroup: Zc, NImage: Hl, NIcon: ve, NPopover: ct, PhotoOff: Lt, FileText: Pt },
|
|
5875
5881
|
props: {
|
|
5876
5882
|
value: {
|
|
5877
5883
|
required: !0,
|
|
@@ -5893,7 +5899,7 @@ const Ag = /* @__PURE__ */ _(Ng, [["render", qg], ["__scopeId", "data-v-b11a603c
|
|
|
5893
5899
|
};
|
|
5894
5900
|
return Fl(() => {
|
|
5895
5901
|
try {
|
|
5896
|
-
e.value && (t.value =
|
|
5902
|
+
e.value && (t.value = tt.parse(e.value));
|
|
5897
5903
|
} catch {
|
|
5898
5904
|
t.value = [];
|
|
5899
5905
|
}
|
|
@@ -5946,7 +5952,7 @@ function Bg(e, t, r, n, a, o) {
|
|
|
5946
5952
|
}, 1032, ["onClick"])
|
|
5947
5953
|
]),
|
|
5948
5954
|
default: y(() => [
|
|
5949
|
-
|
|
5955
|
+
K(L(e.getFileName(g)), 1)
|
|
5950
5956
|
]),
|
|
5951
5957
|
_: 2
|
|
5952
5958
|
}, 1024))
|
|
@@ -5994,7 +6000,7 @@ const Nc = /* @__PURE__ */ _(Rg, [["render", Bg]]), Fg = le({
|
|
|
5994
6000
|
const s = (u = 0, p = e.value) => {
|
|
5995
6001
|
t.value = !0, r.value = a(u), String(u) !== String(p) && o(u, Number(p));
|
|
5996
6002
|
};
|
|
5997
|
-
return
|
|
6003
|
+
return de(
|
|
5998
6004
|
() => e.value,
|
|
5999
6005
|
(u, p) => {
|
|
6000
6006
|
s(Number(p) || 0, Number(u));
|
|
@@ -6075,7 +6081,7 @@ const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = le({
|
|
|
6075
6081
|
console.error("Error enabling autofocus:", v);
|
|
6076
6082
|
}
|
|
6077
6083
|
}, k = () => {
|
|
6078
|
-
n.value = !0,
|
|
6084
|
+
n.value = !0, Le(async () => {
|
|
6079
6085
|
navigator.mediaDevices && navigator.mediaDevices.getUserMedia ? (a.value = !0, u = document.getElementById("uz-scan-canvas"), u && (s = u.getContext("2d", { willReadFrequently: !0 })), await navigator.mediaDevices.getUserMedia({
|
|
6080
6086
|
video: {
|
|
6081
6087
|
width: parseInt(String(e.width)),
|
|
@@ -6097,7 +6103,7 @@ const Ug = /* @__PURE__ */ _(Fg, [["render", Vg]]), Pg = le({
|
|
|
6097
6103
|
e.mode === "video" && k();
|
|
6098
6104
|
}), za(() => {
|
|
6099
6105
|
D();
|
|
6100
|
-
}),
|
|
6106
|
+
}), de([() => e.width, () => e.width], () => {
|
|
6101
6107
|
e.mode === "video" && (D(), k());
|
|
6102
6108
|
}), {
|
|
6103
6109
|
videoRef: r,
|
|
@@ -6121,7 +6127,7 @@ function Gg(e, t, r, n, a, o) {
|
|
|
6121
6127
|
onClick: e.doScan
|
|
6122
6128
|
}, {
|
|
6123
6129
|
default: y(() => [
|
|
6124
|
-
|
|
6130
|
+
K(L(e.$t("Common.scan")), 1)
|
|
6125
6131
|
]),
|
|
6126
6132
|
_: 1
|
|
6127
6133
|
}, 8, ["loading", "onClick"])) : W("", !0),
|
|
@@ -6182,8 +6188,8 @@ const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = le({
|
|
|
6182
6188
|
NSelect: Ll,
|
|
6183
6189
|
NInputGroup: Va,
|
|
6184
6190
|
NInputGroupLabel: Gl,
|
|
6185
|
-
NPopover:
|
|
6186
|
-
UzFormItem:
|
|
6191
|
+
NPopover: ct,
|
|
6192
|
+
UzFormItem: pt,
|
|
6187
6193
|
CaretDown: Ga,
|
|
6188
6194
|
Refresh: Ht,
|
|
6189
6195
|
Search: Kt,
|
|
@@ -6287,7 +6293,7 @@ const Wg = /* @__PURE__ */ _(Pg, [["render", Gg]]), Jg = le({
|
|
|
6287
6293
|
n.value[d.value] = z;
|
|
6288
6294
|
m(!0);
|
|
6289
6295
|
};
|
|
6290
|
-
return
|
|
6296
|
+
return de(
|
|
6291
6297
|
() => e.data,
|
|
6292
6298
|
(z) => {
|
|
6293
6299
|
U(z);
|
|
@@ -6321,7 +6327,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6321
6327
|
}, [
|
|
6322
6328
|
i("div", Qg, [
|
|
6323
6329
|
xe(e.$slots, "header"),
|
|
6324
|
-
|
|
6330
|
+
gt((c(), w("div", Xg, [
|
|
6325
6331
|
T(d, {
|
|
6326
6332
|
"x-gap": "8",
|
|
6327
6333
|
"y-gap": "8",
|
|
@@ -6344,7 +6350,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6344
6350
|
onClick: (I) => e.tabItemChange(x.value)
|
|
6345
6351
|
}, {
|
|
6346
6352
|
default: y(() => [
|
|
6347
|
-
|
|
6353
|
+
K(L(x.label), 1)
|
|
6348
6354
|
]),
|
|
6349
6355
|
_: 2
|
|
6350
6356
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -6373,13 +6379,13 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6373
6379
|
trigger: y(() => [
|
|
6374
6380
|
T(h, { class: "uz-group-label" }, {
|
|
6375
6381
|
default: y(() => [
|
|
6376
|
-
|
|
6382
|
+
K(L(typeof x.label == "function" ? x.label() : x.label), 1)
|
|
6377
6383
|
]),
|
|
6378
6384
|
_: 2
|
|
6379
6385
|
}, 1024)
|
|
6380
6386
|
]),
|
|
6381
6387
|
default: y(() => [
|
|
6382
|
-
|
|
6388
|
+
K(L(typeof x.label == "function" ? x.label() : x.label), 1)
|
|
6383
6389
|
]),
|
|
6384
6390
|
_: 2
|
|
6385
6391
|
}, 1024),
|
|
@@ -6437,7 +6443,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6437
6443
|
})
|
|
6438
6444
|
]),
|
|
6439
6445
|
default: y(() => [
|
|
6440
|
-
|
|
6446
|
+
K(" " + L(e.$t("Common.search")), 1)
|
|
6441
6447
|
]),
|
|
6442
6448
|
_: 1
|
|
6443
6449
|
}, 8, ["loading"])) : W("", !0),
|
|
@@ -6456,7 +6462,7 @@ function Zg(e, t, r, n, a, o) {
|
|
|
6456
6462
|
})
|
|
6457
6463
|
]),
|
|
6458
6464
|
default: y(() => [
|
|
6459
|
-
|
|
6465
|
+
K(" " + L(e.$t("Common.reset")), 1)
|
|
6460
6466
|
]),
|
|
6461
6467
|
_: 1
|
|
6462
6468
|
}, 8, ["loading", "onClick"])) : W("", !0),
|
|
@@ -6477,7 +6483,7 @@ const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = le({
|
|
|
6477
6483
|
NInputGroupLabel: Gl,
|
|
6478
6484
|
Refresh: Ht,
|
|
6479
6485
|
Search: Kt,
|
|
6480
|
-
UzFormItem:
|
|
6486
|
+
UzFormItem: pt
|
|
6481
6487
|
},
|
|
6482
6488
|
props: {
|
|
6483
6489
|
data: {
|
|
@@ -6540,7 +6546,7 @@ const e2 = /* @__PURE__ */ _(Jg, [["render", Zg]]), t2 = le({
|
|
|
6540
6546
|
}
|
|
6541
6547
|
p(!0);
|
|
6542
6548
|
};
|
|
6543
|
-
return
|
|
6549
|
+
return de(
|
|
6544
6550
|
() => e.data,
|
|
6545
6551
|
(g) => {
|
|
6546
6552
|
D(g);
|
|
@@ -6573,7 +6579,7 @@ function o2(e, t, r, n, a, o) {
|
|
|
6573
6579
|
})
|
|
6574
6580
|
]),
|
|
6575
6581
|
default: y(() => [
|
|
6576
|
-
|
|
6582
|
+
K(" " + L(e.$t("Common.search")), 1)
|
|
6577
6583
|
]),
|
|
6578
6584
|
_: 1
|
|
6579
6585
|
}),
|
|
@@ -6609,7 +6615,7 @@ function o2(e, t, r, n, a, o) {
|
|
|
6609
6615
|
})
|
|
6610
6616
|
]),
|
|
6611
6617
|
default: y(() => [
|
|
6612
|
-
|
|
6618
|
+
K(" " + L(e.$t("Common.reset")), 1)
|
|
6613
6619
|
]),
|
|
6614
6620
|
_: 1
|
|
6615
6621
|
}, 8, ["loading", "onClick"]),
|
|
@@ -6629,7 +6635,7 @@ function o2(e, t, r, n, a, o) {
|
|
|
6629
6635
|
})
|
|
6630
6636
|
]),
|
|
6631
6637
|
default: y(() => [
|
|
6632
|
-
|
|
6638
|
+
K(" " + L(e.$t("Common.search")), 1)
|
|
6633
6639
|
]),
|
|
6634
6640
|
_: 1
|
|
6635
6641
|
}, 8, ["loading"])) : W("", !0)
|
|
@@ -6651,7 +6657,7 @@ function o2(e, t, r, n, a, o) {
|
|
|
6651
6657
|
default: y(() => [
|
|
6652
6658
|
T(h, { class: "uz-group-label" }, {
|
|
6653
6659
|
default: y(() => [
|
|
6654
|
-
|
|
6660
|
+
K(L(typeof m.label == "function" ? m.label() : m.label), 1)
|
|
6655
6661
|
]),
|
|
6656
6662
|
_: 2
|
|
6657
6663
|
}, 1024),
|
|
@@ -6723,7 +6729,7 @@ const ho = () => new Promise((e) => {
|
|
|
6723
6729
|
if (n && t.indexOf("return") === -1) {
|
|
6724
6730
|
const a = n[0].split(":");
|
|
6725
6731
|
if (a[0] === "date")
|
|
6726
|
-
return (o) =>
|
|
6732
|
+
return (o) => Ye(
|
|
6727
6733
|
o[e],
|
|
6728
6734
|
n[0].replace("date:", "") || "YYYY-MM-DD"
|
|
6729
6735
|
);
|
|
@@ -6768,29 +6774,29 @@ const ho = () => new Promise((e) => {
|
|
|
6768
6774
|
disabled: (a == null ? void 0 : a.status) === "0",
|
|
6769
6775
|
params: a
|
|
6770
6776
|
};
|
|
6771
|
-
}),
|
|
6777
|
+
}), et = /* @__PURE__ */ new Map();
|
|
6772
6778
|
function Sa() {
|
|
6773
|
-
|
|
6779
|
+
et.clear();
|
|
6774
6780
|
}
|
|
6775
6781
|
async function Ta(e) {
|
|
6776
6782
|
const t = e.split(".");
|
|
6777
6783
|
let r = !1;
|
|
6778
|
-
return t.length > 1 && (
|
|
6784
|
+
return t.length > 1 && (et.has(t[0]) ? r = Q(et.get(t[0])) : (r = await Ze({ tableId: t[0] }), et.set(t[0], r))), { sourceData: r, n: t };
|
|
6779
6785
|
}
|
|
6780
|
-
async function
|
|
6786
|
+
async function kt(e) {
|
|
6781
6787
|
return new Promise((t, r) => {
|
|
6782
6788
|
const n = Oe(`dynamicTable_${e}`, !1);
|
|
6783
|
-
n &&
|
|
6789
|
+
n && et.has(`dynamicTable_${e}`) ? t(n) : Rm(e).then((a) => {
|
|
6784
6790
|
!n || n && n.createTime !== a.createTime ? Am(e).then((o) => {
|
|
6785
6791
|
const s = {
|
|
6786
6792
|
createTime: o.createTime,
|
|
6787
6793
|
tableTitle: o.tableTitle,
|
|
6788
6794
|
viewJson: o.viewJson
|
|
6789
6795
|
};
|
|
6790
|
-
Me(`dynamicTable_${e}`, s, 0),
|
|
6796
|
+
Me(`dynamicTable_${e}`, s, 0), et.set(`dynamicTable_${e}`, !0), Mm("tables_"), t(o);
|
|
6791
6797
|
}).catch(() => {
|
|
6792
6798
|
r();
|
|
6793
|
-
}) : (
|
|
6799
|
+
}) : (et.set(`dynamicTable_${e}`, !0), t(n));
|
|
6794
6800
|
}).catch(() => {
|
|
6795
6801
|
r();
|
|
6796
6802
|
});
|
|
@@ -6870,7 +6876,7 @@ const d2 = (e) => e.map((t) => {
|
|
|
6870
6876
|
}
|
|
6871
6877
|
}
|
|
6872
6878
|
};
|
|
6873
|
-
}),
|
|
6879
|
+
}), bt = (e) => !e[0] || e[0] && e[0].input ? e : e.map((t) => {
|
|
6874
6880
|
const r = {};
|
|
6875
6881
|
return r.placeholder = t.p.z, t.i === "group" ? r.children = t.p.n : r.clearable = !!t.p.c, t.i === "input" && (t.p.t && (r.type = t.p.t), t.p.i && (r.minlength = t.p.i), t.p.a && (r.maxlength = t.p.a), t.p.r && (r.rows = t.p.r), t.p.e && (r.prefix = t.p.e), t.p.s && (r.suffix = t.p.s)), t.i === "auto" && (r.options = t.p.o, t.p.e && (r.prefix = t.p.e), t.p.s && (r.suffix = t.p.s)), t.i === "number" && (r.showButton = !!t.p.b, t.p.i && (r.min = t.p.i), t.p.a && (r.max = t.p.a), t.p.x && (r.minKey = t.p.x), t.p.y && (r.maxKey = t.p.y), t.p.t && (r.step = t.p.t), t.p.p && (r.precision = t.p.p), t.p.e && (r.prefix = t.p.e), t.p.s && (r.suffix = t.p.s)), t.i === "date" && (r.type = t.p.y, t.p.f && (r.format = t.p.f), t.p.d && (r.isDateDisabled = t.p.d), t.p.t && (r.timePickerProps = t.p.t)), t.i === "select" && (r.options = t.p.o, r.filterable = !!t.p.f, r.multiple = !!t.p.m, r.tag = !!t.p.t, r.labelKeys = t.p.l, r.valueKey = t.p.v, r.renderLabel = t.p.r, r.renderTag = t.p.g), t.i === "cascader" && (r.options = t.p.o, r.filterable = !!t.p.f, r.multiple = !!t.p.m), t.i === "checkbox" && (r.options = t.p.o), t.i === "time" && (r.format = t.p.f), t.i === "upload" && (r.small = !!t.p.s, r.accept = t.p.a, r.max = t.p.m), t.i === "switch" && (r.checked = t.p.h, r.unchecked = t.p.u), t.i === "divider" && (r.placement = t.p.p), t.i === "filling" && (r.parentKey = t.p.k), t.i === "subTable" && (r.init = !!t.p.i, r.quest = !!t.p.q, r.searchKey = t.p.k, r.link = t.p.l, r.columns = t.p.c, r.actions = t.p.a, r.addButton = !!t.p.b, r.draggable = !!t.p.g, r.childActions = !!t.p.h, r.showDelete = !!(t.p.d ?? !0), t.p.t && (r.optionsType = t.p.t), t.p.u && (r.optionsSource = t.p.u), t.p.o && (r.options = t.p.o), t.p.s && (r.summary = t.p.s), t.p.f && (r.deleteFn = t.p.f)), {
|
|
6876
6882
|
input: t.i,
|
|
@@ -6973,7 +6979,7 @@ const d2 = (e) => e.map((t) => {
|
|
|
6973
6979
|
h: e.drawerHeight,
|
|
6974
6980
|
l: e.placement,
|
|
6975
6981
|
r: e.summary
|
|
6976
|
-
}),
|
|
6982
|
+
}), ut = (e) => {
|
|
6977
6983
|
let t = {};
|
|
6978
6984
|
return e && (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 ? t = e : t = {
|
|
6979
6985
|
index: e.i,
|
|
@@ -7045,12 +7051,12 @@ function Zt(e, t, r) {
|
|
|
7045
7051
|
d.params.options = k;
|
|
7046
7052
|
}
|
|
7047
7053
|
if (d.input === "subTable" && d.params.link) {
|
|
7048
|
-
const k = await
|
|
7054
|
+
const k = await kt(d.params.link).catch(() => {
|
|
7049
7055
|
a();
|
|
7050
7056
|
});
|
|
7051
7057
|
if (k)
|
|
7052
7058
|
try {
|
|
7053
|
-
const l =
|
|
7059
|
+
const l = tt.parse(k.viewJson), v = bt(l.table);
|
|
7054
7060
|
v.forEach((f) => {
|
|
7055
7061
|
f.table.sorter = !1;
|
|
7056
7062
|
});
|
|
@@ -7059,14 +7065,14 @@ function Zt(e, t, r) {
|
|
|
7059
7065
|
);
|
|
7060
7066
|
if (m)
|
|
7061
7067
|
for await (const f of m) {
|
|
7062
|
-
const x = await
|
|
7068
|
+
const x = await kt(
|
|
7063
7069
|
f.params.link
|
|
7064
7070
|
).catch(() => {
|
|
7065
7071
|
a();
|
|
7066
7072
|
});
|
|
7067
7073
|
if (x)
|
|
7068
7074
|
try {
|
|
7069
|
-
const I =
|
|
7075
|
+
const I = tt.parse(x.viewJson), V = bt(I.table);
|
|
7070
7076
|
V.forEach((U) => {
|
|
7071
7077
|
U.table.sorter = !1;
|
|
7072
7078
|
}), f.params.columns = V, f.params.actions = I.action;
|
|
@@ -7225,10 +7231,11 @@ async function er(e, t = !1, r = 0, n = () => {
|
|
|
7225
7231
|
} : void 0
|
|
7226
7232
|
},
|
|
7227
7233
|
{
|
|
7228
|
-
default: () => Y(
|
|
7234
|
+
default: () => Y(pt, {
|
|
7229
7235
|
item: l,
|
|
7230
7236
|
formValue: m,
|
|
7231
|
-
status: r
|
|
7237
|
+
status: r,
|
|
7238
|
+
itemIndex: f
|
|
7232
7239
|
})
|
|
7233
7240
|
}
|
|
7234
7241
|
);
|
|
@@ -7326,7 +7333,7 @@ const h2 = le({
|
|
|
7326
7333
|
};
|
|
7327
7334
|
return Vl(() => {
|
|
7328
7335
|
clearInterval(r.value);
|
|
7329
|
-
}),
|
|
7336
|
+
}), de(
|
|
7330
7337
|
() => e.status,
|
|
7331
7338
|
(u) => {
|
|
7332
7339
|
u === 1 && s();
|
|
@@ -7348,12 +7355,12 @@ function w2(e, t, r, n, a, o) {
|
|
|
7348
7355
|
tooltip: !1
|
|
7349
7356
|
}, {
|
|
7350
7357
|
default: y(() => [
|
|
7351
|
-
|
|
7358
|
+
K(L(e.status === 0 ? "操作进行中..." : e.message), 1)
|
|
7352
7359
|
]),
|
|
7353
7360
|
_: 1
|
|
7354
7361
|
}),
|
|
7355
7362
|
t[0] || (t[0] = i("div", { class: "uz-br" }, null, -1)),
|
|
7356
|
-
|
|
7363
|
+
gt(T(u, {
|
|
7357
7364
|
type: "warning",
|
|
7358
7365
|
block: "",
|
|
7359
7366
|
secondary: "",
|
|
@@ -7361,7 +7368,7 @@ function w2(e, t, r, n, a, o) {
|
|
|
7361
7368
|
onClick: e.handleClose
|
|
7362
7369
|
}, {
|
|
7363
7370
|
default: y(() => [
|
|
7364
|
-
|
|
7371
|
+
K(" 关闭(" + L(e.counts) + "s) ", 1)
|
|
7365
7372
|
]),
|
|
7366
7373
|
_: 1
|
|
7367
7374
|
}, 8, ["onMouseover", "onClick"]), [
|
|
@@ -7459,7 +7466,7 @@ function y2(e, t, r, n, a, o) {
|
|
|
7459
7466
|
block: ""
|
|
7460
7467
|
}, {
|
|
7461
7468
|
default: y(() => [
|
|
7462
|
-
|
|
7469
|
+
K(L(e.ocrText), 1)
|
|
7463
7470
|
]),
|
|
7464
7471
|
_: 1
|
|
7465
7472
|
}, 8, ["loading"])
|
|
@@ -7490,7 +7497,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7490
7497
|
name: "UzTable",
|
|
7491
7498
|
components: {
|
|
7492
7499
|
NDataTable: La,
|
|
7493
|
-
NPopover:
|
|
7500
|
+
NPopover: ct,
|
|
7494
7501
|
NButton: ge,
|
|
7495
7502
|
NIcon: ve,
|
|
7496
7503
|
NDrawer: Pa,
|
|
@@ -7501,8 +7508,8 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7501
7508
|
NCheckboxGroup: Aa,
|
|
7502
7509
|
NRadioGroup: Ql,
|
|
7503
7510
|
Filter: Et,
|
|
7504
|
-
GridDots:
|
|
7505
|
-
Plus:
|
|
7511
|
+
GridDots: yt,
|
|
7512
|
+
Plus: dt,
|
|
7506
7513
|
Draggable: Yl,
|
|
7507
7514
|
UzSpin: Ic,
|
|
7508
7515
|
UzOcr: Dc,
|
|
@@ -7638,71 +7645,71 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7638
7645
|
value: () => null,
|
|
7639
7646
|
setValue: () => null
|
|
7640
7647
|
});
|
|
7641
|
-
const a = Vt(), { t: o } = Ut(), s = Ft(), u =
|
|
7648
|
+
const a = Vt(), { t: o } = Ut(), s = Ft(), u = _t(() => he.isMobile), p = S(), h = S(!!n.header), b = S(), D = S(!1), g = S(!1), d = S(!1), k = S(""), l = S(), v = S([]), m = S([]), f = S([]), x = S(void 0), I = S({
|
|
7642
7649
|
params: [],
|
|
7643
7650
|
query: {
|
|
7644
7651
|
page: 1
|
|
7645
7652
|
}
|
|
7646
|
-
}), V = S([]), U = S(void 0), F = S(void 0), z = S(!1), j = S(0), C = S({}), N = S([]), O = S([]), R = S([]), q = S([]),
|
|
7653
|
+
}), V = S([]), U = S(void 0), F = S(void 0), z = S(!1), j = S(0), C = S({}), N = S([]), O = S([]), R = S([]), q = S([]), H = S({
|
|
7647
7654
|
fetch: null,
|
|
7648
7655
|
when_open: null,
|
|
7649
7656
|
when_create: null,
|
|
7650
7657
|
when_edit: null,
|
|
7651
7658
|
when_delete: null,
|
|
7652
7659
|
when_before_save: ""
|
|
7653
|
-
}),
|
|
7660
|
+
}), oe = S({
|
|
7654
7661
|
fetch: null,
|
|
7655
7662
|
when_open: null,
|
|
7656
7663
|
when_create: null,
|
|
7657
7664
|
when_edit: null,
|
|
7658
7665
|
when_delete: null,
|
|
7659
7666
|
when_before_save: ""
|
|
7660
|
-
}),
|
|
7667
|
+
}), Z = S(ut()), ie = S(!1), pe = S(0), Te = S(""), Ce = S(!1), ye = S([]), Ne = S([]), St = S(!1), Tt = S(""), Nt = S({}), tr = Ke("modules"), rr = (M) => M.id, nr = (M, B) => {
|
|
7661
7668
|
t("update:rowKeys", {
|
|
7662
7669
|
keys: M,
|
|
7663
7670
|
rows: Q(B)
|
|
7664
7671
|
});
|
|
7665
7672
|
}, ar = (M, B, G) => {
|
|
7666
|
-
if (
|
|
7667
|
-
const ne =
|
|
7673
|
+
if (ye.value = M, G.action === "check" && Ne.value.push(G.row), G.action === "uncheck") {
|
|
7674
|
+
const ne = Ne.value.findIndex(
|
|
7668
7675
|
(P) => {
|
|
7669
7676
|
var J;
|
|
7670
7677
|
return P.id === ((J = G.row) == null ? void 0 : J.id);
|
|
7671
7678
|
}
|
|
7672
7679
|
);
|
|
7673
|
-
|
|
7680
|
+
Ne.value.splice(ne, 1);
|
|
7674
7681
|
}
|
|
7675
7682
|
G.action === "checkAll" && B.forEach((ne) => {
|
|
7676
|
-
ne &&
|
|
7677
|
-
}), G.action === "uncheckAll" && (
|
|
7678
|
-
keys: Q(
|
|
7679
|
-
rows: Q(
|
|
7683
|
+
ne && Ne.value.push(ne);
|
|
7684
|
+
}), G.action === "uncheckAll" && (Ne.value = [], ye.value = []), t("update:rowKeys", {
|
|
7685
|
+
keys: Q(ye.value),
|
|
7686
|
+
rows: Q(Ne.value)
|
|
7680
7687
|
});
|
|
7681
|
-
},
|
|
7688
|
+
}, Xe = (M) => {
|
|
7682
7689
|
const B = M.filter((G) => G !== null && typeof G < "u" && G !== "");
|
|
7683
7690
|
return B.length > 0 ? B : !1;
|
|
7684
7691
|
}, or = (M) => {
|
|
7685
|
-
const B = e.summary ||
|
|
7692
|
+
const B = e.summary || Z.value.summary;
|
|
7686
7693
|
return B && typeof B == "string" ? new Function("pageData", "h", B)(M, "h", Y) : B && typeof B == "function" ? B(M) : [];
|
|
7687
7694
|
}, me = (M = !1) => {
|
|
7688
7695
|
const B = e.id || a.params.id;
|
|
7689
7696
|
e.enableLoading && (D.value = !0, t("update:loading", !0));
|
|
7690
7697
|
const G = Q(I.value);
|
|
7691
|
-
if (M && delete G.orderby,
|
|
7692
|
-
|
|
7698
|
+
if (M && delete G.orderby, H.value.fetch)
|
|
7699
|
+
Ee([H.value.fetch], "", G).then((ne) => {
|
|
7693
7700
|
const P = bo(ne);
|
|
7694
|
-
I.value.query = P.query, f.value = P.records, D.value = !1, g.value = !0, t("on-update:value", G), t("update:loading", !1),
|
|
7701
|
+
I.value.query = P.query, f.value = P.records, D.value = !1, g.value = !0, t("on-update:value", G), t("update:loading", !1), Z.value.cache && B && Me(`tables_${B}`, I.value);
|
|
7695
7702
|
}).catch(() => {
|
|
7696
7703
|
D.value = !1, g.value = !0, t("update:loading", !1);
|
|
7697
7704
|
});
|
|
7698
7705
|
else {
|
|
7699
7706
|
let ne;
|
|
7700
|
-
e.fetch ? ne = e.fetch({ ...G, tableId: B }) : ne =
|
|
7707
|
+
e.fetch ? ne = e.fetch({ ...G, tableId: B }) : ne = Ze({
|
|
7701
7708
|
...G,
|
|
7702
7709
|
tableId: B
|
|
7703
7710
|
}), ne.then((P) => {
|
|
7704
7711
|
const J = bo(P);
|
|
7705
|
-
I.value.query = J.query, f.value = J.records, D.value = !1, g.value = !0, t("on-update:value", G), t("update:loading", !1),
|
|
7712
|
+
I.value.query = J.query, f.value = J.records, D.value = !1, g.value = !0, t("on-update:value", G), t("update:loading", !1), Z.value.cache && B && Me(`tables_${B}`, I.value);
|
|
7706
7713
|
}).catch(() => {
|
|
7707
7714
|
D.value = !1, g.value = !0, t("update:loading", !1);
|
|
7708
7715
|
});
|
|
@@ -7711,20 +7718,20 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7711
7718
|
I.value.query.page = M, p.value && (p.value.scrollTop = 0), cr(), me();
|
|
7712
7719
|
}, re = (M) => {
|
|
7713
7720
|
I.value.query.pageSize = M, I.value.query.page = 1, cr(), me();
|
|
7714
|
-
},
|
|
7721
|
+
}, nt = (M) => {
|
|
7715
7722
|
M && M.order ? I.value.orderby = `${M.columnKey} ${M.order.replace("end", "")}` : delete I.value.orderby, me();
|
|
7716
|
-
},
|
|
7717
|
-
|
|
7723
|
+
}, ee = () => {
|
|
7724
|
+
Ue(), typeof e.addFetch == "function" ? e.addFetch() : (j.value = 0, z.value = !0);
|
|
7725
|
+
}, Fe = (M) => {
|
|
7726
|
+
M.pin = !M.pin, M.pin ? M.fixed = "left" : M.fixed = M.fixTemp ?? void 0, ot();
|
|
7718
7727
|
}, Ve = (M) => {
|
|
7719
|
-
M.
|
|
7720
|
-
}, Ue = (M) => {
|
|
7721
|
-
M.show = !M.show, lt();
|
|
7728
|
+
M.show = !M.show, ot();
|
|
7722
7729
|
}, lr = () => {
|
|
7723
7730
|
const M = [];
|
|
7724
7731
|
m.value.forEach((B) => {
|
|
7725
7732
|
B.show && M.push(B);
|
|
7726
7733
|
}), v.value = M;
|
|
7727
|
-
},
|
|
7734
|
+
}, at = (M) => {
|
|
7728
7735
|
I.value.params = M, me();
|
|
7729
7736
|
}, Ie = () => [
|
|
7730
7737
|
{
|
|
@@ -7747,7 +7754,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7747
7754
|
"div",
|
|
7748
7755
|
{},
|
|
7749
7756
|
{
|
|
7750
|
-
default: () =>
|
|
7757
|
+
default: () => Ye(M.createTime, "yyyy-MM-dd hh:mm:ss")
|
|
7751
7758
|
}
|
|
7752
7759
|
)
|
|
7753
7760
|
]
|
|
@@ -7772,28 +7779,28 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7772
7779
|
"div",
|
|
7773
7780
|
{},
|
|
7774
7781
|
{
|
|
7775
|
-
default: () =>
|
|
7782
|
+
default: () => Ye(M.updateTime, "yyyy-MM-dd hh:mm:ss")
|
|
7776
7783
|
}
|
|
7777
7784
|
)
|
|
7778
7785
|
]
|
|
7779
7786
|
}
|
|
7780
|
-
],
|
|
7787
|
+
], ce = (M) => {
|
|
7781
7788
|
var B;
|
|
7782
7789
|
return !e.ruleFetch || !N.value || N.value && N.value[0] === "*" ? !1 : !((B = N.value) != null && B.includes(M));
|
|
7783
|
-
},
|
|
7790
|
+
}, Ue = async (M) => {
|
|
7784
7791
|
const { form: B, fillingDefaultValue: G } = await Zt(
|
|
7785
7792
|
O.value,
|
|
7786
7793
|
M,
|
|
7787
7794
|
() => b.value.getValues()
|
|
7788
7795
|
);
|
|
7789
|
-
return l.value = B,
|
|
7790
|
-
},
|
|
7796
|
+
return l.value = B, H.value = oe.value, G;
|
|
7797
|
+
}, Pe = async (M) => new Promise((B, G) => {
|
|
7791
7798
|
const ne = e.id || a.params.id;
|
|
7792
7799
|
let P;
|
|
7793
7800
|
e.fetch ? P = e.fetch({
|
|
7794
7801
|
id: M.id,
|
|
7795
7802
|
tableId: ne
|
|
7796
|
-
}) : P =
|
|
7803
|
+
}) : P = Ze({
|
|
7797
7804
|
id: M.id,
|
|
7798
7805
|
tableId: ne
|
|
7799
7806
|
}), P.then((J) => {
|
|
@@ -7806,16 +7813,16 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7806
7813
|
if (M.disabled) {
|
|
7807
7814
|
if (typeof M.disabled == "string") {
|
|
7808
7815
|
const P = new Function("rowData", "rowIndex", M.disabled);
|
|
7809
|
-
M.disabled = (J, ae) => P(J, ae) ||
|
|
7816
|
+
M.disabled = (J, ae) => P(J, ae) || ce(M.key);
|
|
7810
7817
|
} else if (typeof M.disabled == "function") {
|
|
7811
7818
|
const P = Q(M);
|
|
7812
|
-
M.disabled = (J, ae) => P.disabled(J, ae) ||
|
|
7819
|
+
M.disabled = (J, ae) => P.disabled(J, ae) || ce(M.key);
|
|
7813
7820
|
}
|
|
7814
7821
|
} else
|
|
7815
|
-
M.disabled = () =>
|
|
7822
|
+
M.disabled = () => ce(M.key);
|
|
7816
7823
|
if (M.loading = D.value, M.type !== "group" && M.optionsType)
|
|
7817
7824
|
M.onClick = async (P) => {
|
|
7818
|
-
|
|
7825
|
+
Pe(P).then((J) => {
|
|
7819
7826
|
if (M.optionsType === "drawer:insider") {
|
|
7820
7827
|
if (G)
|
|
7821
7828
|
try {
|
|
@@ -7829,7 +7836,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7829
7836
|
}).catch(() => null);
|
|
7830
7837
|
} catch {
|
|
7831
7838
|
}
|
|
7832
|
-
|
|
7839
|
+
Tt.value = M.optionsSource || "", St.value = !0;
|
|
7833
7840
|
} else
|
|
7834
7841
|
t("update:suffixes", {
|
|
7835
7842
|
title: M.buttonText,
|
|
@@ -7845,8 +7852,8 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7845
7852
|
else if (M.type !== "group" && M.action === "detailInside") {
|
|
7846
7853
|
const P = Q(M.onClick);
|
|
7847
7854
|
M.onClick = (J) => {
|
|
7848
|
-
z.value = !0, j.value = 2,
|
|
7849
|
-
const be = await
|
|
7855
|
+
z.value = !0, j.value = 2, Pe(J).then(async (ae) => {
|
|
7856
|
+
const be = await Ue(ae), fe = { ...ae, ...be };
|
|
7850
7857
|
if (P && typeof P == "string")
|
|
7851
7858
|
try {
|
|
7852
7859
|
new Function(
|
|
@@ -7854,22 +7861,22 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7854
7861
|
"POST",
|
|
7855
7862
|
"fnNotification",
|
|
7856
7863
|
P
|
|
7857
|
-
)(fe, we, s).then((
|
|
7858
|
-
C.value =
|
|
7864
|
+
)(fe, we, s).then((lt) => {
|
|
7865
|
+
C.value = lt;
|
|
7859
7866
|
}).catch(() => null);
|
|
7860
7867
|
} catch {
|
|
7861
7868
|
}
|
|
7862
7869
|
else
|
|
7863
7870
|
C.value = fe;
|
|
7864
7871
|
}).catch(() => {
|
|
7865
|
-
|
|
7872
|
+
st();
|
|
7866
7873
|
});
|
|
7867
7874
|
};
|
|
7868
7875
|
} else if (M.type !== "group" && M.action === "editInside") {
|
|
7869
7876
|
const P = Q(M.onClick);
|
|
7870
7877
|
M.onClick = (J) => {
|
|
7871
|
-
z.value = !0, j.value = 1,
|
|
7872
|
-
const be = await
|
|
7878
|
+
z.value = !0, j.value = 1, Pe(J).then(async (ae) => {
|
|
7879
|
+
const be = await Ue(ae), fe = { ...ae, ...be };
|
|
7873
7880
|
if (P && typeof P == "string")
|
|
7874
7881
|
try {
|
|
7875
7882
|
new Function(
|
|
@@ -7877,15 +7884,15 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7877
7884
|
"POST",
|
|
7878
7885
|
"fnNotification",
|
|
7879
7886
|
P
|
|
7880
|
-
)(fe, we, s).then((
|
|
7881
|
-
C.value =
|
|
7887
|
+
)(fe, we, s).then((lt) => {
|
|
7888
|
+
C.value = lt;
|
|
7882
7889
|
}).catch(() => null);
|
|
7883
7890
|
} catch {
|
|
7884
7891
|
}
|
|
7885
7892
|
else
|
|
7886
7893
|
C.value = fe;
|
|
7887
7894
|
}).catch(() => {
|
|
7888
|
-
|
|
7895
|
+
st();
|
|
7889
7896
|
});
|
|
7890
7897
|
};
|
|
7891
7898
|
} else if (M.type !== "group" && M.action === "deleteInside")
|
|
@@ -7900,9 +7907,9 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7900
7907
|
tableId: ne,
|
|
7901
7908
|
sub_table_ids: B
|
|
7902
7909
|
}), J.then(() => {
|
|
7903
|
-
if (me(),
|
|
7904
|
-
const ae =
|
|
7905
|
-
ae &&
|
|
7910
|
+
if (me(), H.value.when_delete) {
|
|
7911
|
+
const ae = Xe(H.value.when_delete);
|
|
7912
|
+
ae && Ee(ae, P.id);
|
|
7906
7913
|
}
|
|
7907
7914
|
}).catch(() => {
|
|
7908
7915
|
});
|
|
@@ -7914,12 +7921,12 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7914
7921
|
e.fetch ? ae = e.fetch({
|
|
7915
7922
|
id: J.id,
|
|
7916
7923
|
tableId: ne
|
|
7917
|
-
}) : ae =
|
|
7924
|
+
}) : ae = Ze({
|
|
7918
7925
|
id: J.id,
|
|
7919
7926
|
tableId: ne
|
|
7920
7927
|
}), ae.then((be) => {
|
|
7921
7928
|
const fe = be && be[0];
|
|
7922
|
-
|
|
7929
|
+
Ee(
|
|
7923
7930
|
[M.action],
|
|
7924
7931
|
fe.id,
|
|
7925
7932
|
fe
|
|
@@ -7937,8 +7944,8 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7937
7944
|
duration: 3e3
|
|
7938
7945
|
});
|
|
7939
7946
|
});
|
|
7940
|
-
} catch (
|
|
7941
|
-
throw new Error(
|
|
7947
|
+
} catch (lt) {
|
|
7948
|
+
throw new Error(lt);
|
|
7942
7949
|
}
|
|
7943
7950
|
return;
|
|
7944
7951
|
}
|
|
@@ -7965,8 +7972,8 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7965
7972
|
});
|
|
7966
7973
|
};
|
|
7967
7974
|
}
|
|
7968
|
-
},
|
|
7969
|
-
|
|
7975
|
+
}, ht = async () => {
|
|
7976
|
+
Ce.value = !1, Sa();
|
|
7970
7977
|
const { tableColumns: M, search: B, subTableIds: G, tableWidth: ne } = await er(
|
|
7971
7978
|
O.value,
|
|
7972
7979
|
e.child,
|
|
@@ -7975,7 +7982,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7975
7982
|
tr
|
|
7976
7983
|
);
|
|
7977
7984
|
let P = ne;
|
|
7978
|
-
!u.value &&
|
|
7985
|
+
!u.value && Z.value.index && (M.unshift({
|
|
7979
7986
|
title: "#",
|
|
7980
7987
|
key: "index",
|
|
7981
7988
|
align: "center",
|
|
@@ -7996,17 +8003,17 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
7996
8003
|
}
|
|
7997
8004
|
);
|
|
7998
8005
|
}
|
|
7999
|
-
}), P = P + 60), !u.value && (e.selection ||
|
|
8006
|
+
}), P = P + 60), !u.value && (e.selection || Z.value.selection !== 0) && (M.unshift({
|
|
8000
8007
|
type: "selection",
|
|
8001
8008
|
fixed: "left",
|
|
8002
8009
|
width: 60,
|
|
8003
8010
|
hide: !0,
|
|
8004
8011
|
show: !0,
|
|
8005
|
-
multiple: e.selection === 2 ||
|
|
8012
|
+
multiple: e.selection === 2 || Z.value.selection === 2,
|
|
8006
8013
|
options: ["all", "none"]
|
|
8007
8014
|
}), P = P + 60);
|
|
8008
8015
|
const J = e.id || a.params.id;
|
|
8009
|
-
if (!u.value &&
|
|
8016
|
+
if (!u.value && Z.value.commonTime && M.push(...Ie()), e.enableAction === !0 && R.value && R.value.length > 0) {
|
|
8010
8017
|
const ae = Q(R.value);
|
|
8011
8018
|
for (const fe of ae)
|
|
8012
8019
|
fe.type === "group" ? fe.children.forEach((ze) => {
|
|
@@ -8017,13 +8024,13 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8017
8024
|
key: "action",
|
|
8018
8025
|
align: "center",
|
|
8019
8026
|
fixed: "right",
|
|
8020
|
-
width:
|
|
8027
|
+
width: Z.value.actionWidth,
|
|
8021
8028
|
resizable: !0,
|
|
8022
8029
|
checked: !0,
|
|
8023
8030
|
show: !0,
|
|
8024
8031
|
hide: !0,
|
|
8025
8032
|
render(fe) {
|
|
8026
|
-
return
|
|
8033
|
+
return $t({
|
|
8027
8034
|
buttons: ae,
|
|
8028
8035
|
rowData: fe,
|
|
8029
8036
|
callback: me,
|
|
@@ -8032,7 +8039,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8032
8039
|
}
|
|
8033
8040
|
};
|
|
8034
8041
|
P = P + Number(
|
|
8035
|
-
typeof
|
|
8042
|
+
typeof Z.value.actionWidth == "string" ? Z.value.actionWidth.replace("px", "") : Z.value.actionWidth
|
|
8036
8043
|
), M.push(be);
|
|
8037
8044
|
}
|
|
8038
8045
|
m.value = M, V.value = B, x.value = P;
|
|
@@ -8043,7 +8050,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8043
8050
|
return;
|
|
8044
8051
|
}
|
|
8045
8052
|
e.minHeight && (U.value = De(e.minHeight)), e.maxHeight && (F.value = De(e.maxHeight));
|
|
8046
|
-
},
|
|
8053
|
+
}, ot = () => {
|
|
8047
8054
|
const M = [];
|
|
8048
8055
|
m.value.forEach((B) => {
|
|
8049
8056
|
B.key !== "action" && M.push({
|
|
@@ -8053,20 +8060,20 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8053
8060
|
fixed: B.fixed
|
|
8054
8061
|
});
|
|
8055
8062
|
}), t("on-update:columns", M);
|
|
8056
|
-
},
|
|
8063
|
+
}, st = () => {
|
|
8057
8064
|
var M;
|
|
8058
8065
|
(M = b.value) == null || M.restoreValidation(), C.value = {}, d.value = !1, z.value = !1;
|
|
8059
8066
|
}, jt = () => {
|
|
8060
8067
|
var M;
|
|
8061
|
-
|
|
8062
|
-
if (
|
|
8063
|
-
const P =
|
|
8068
|
+
pe.value = 0, ie.value = !0, (M = b.value) == null || M.validate().then(async (B) => {
|
|
8069
|
+
if (H.value.when_before_save) {
|
|
8070
|
+
const P = H.value.when_before_save, J = new Function("data", "POST", P);
|
|
8064
8071
|
try {
|
|
8065
8072
|
B = await J(B, we).catch((ae) => {
|
|
8066
|
-
|
|
8073
|
+
pe.value = 1, Te.value = ae.message;
|
|
8067
8074
|
});
|
|
8068
8075
|
} catch (ae) {
|
|
8069
|
-
|
|
8076
|
+
pe.value = 1, Te.value = ae.message;
|
|
8070
8077
|
return;
|
|
8071
8078
|
}
|
|
8072
8079
|
}
|
|
@@ -8079,43 +8086,43 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8079
8086
|
tableId: ne,
|
|
8080
8087
|
...B
|
|
8081
8088
|
}), G.then((P) => {
|
|
8082
|
-
if (Sa(),
|
|
8083
|
-
const J =
|
|
8084
|
-
J &&
|
|
8089
|
+
if (Sa(), ie.value = !1, me(), st(), !j.value && H.value.when_create) {
|
|
8090
|
+
const J = Xe(H.value.when_create);
|
|
8091
|
+
J && Ee(J, P.id);
|
|
8085
8092
|
}
|
|
8086
|
-
if (j.value &&
|
|
8087
|
-
const J =
|
|
8088
|
-
J &&
|
|
8093
|
+
if (j.value && H.value.when_edit) {
|
|
8094
|
+
const J = Xe(H.value.when_edit);
|
|
8095
|
+
J && Ee(J, B.id);
|
|
8089
8096
|
}
|
|
8090
8097
|
}).catch((P) => {
|
|
8091
|
-
|
|
8098
|
+
pe.value = 1, Te.value = P;
|
|
8092
8099
|
});
|
|
8093
8100
|
}).catch(() => {
|
|
8094
|
-
|
|
8101
|
+
ie.value = !1;
|
|
8095
8102
|
});
|
|
8096
8103
|
}, je = () => {
|
|
8097
|
-
k.value = "", O.value = [], R.value = [], q.value = [],
|
|
8104
|
+
k.value = "", O.value = [], R.value = [], q.value = [], H.value = {
|
|
8098
8105
|
fetch: null,
|
|
8099
8106
|
when_open: null,
|
|
8100
8107
|
when_create: null,
|
|
8101
8108
|
when_edit: null,
|
|
8102
8109
|
when_delete: null,
|
|
8103
8110
|
when_before_save: ""
|
|
8104
|
-
},
|
|
8111
|
+
}, oe.value = {
|
|
8105
8112
|
fetch: null,
|
|
8106
8113
|
when_open: null,
|
|
8107
8114
|
when_create: null,
|
|
8108
8115
|
when_edit: null,
|
|
8109
8116
|
when_delete: null,
|
|
8110
8117
|
when_before_save: ""
|
|
8111
|
-
},
|
|
8118
|
+
}, Z.value = ut();
|
|
8112
8119
|
}, Ae = (M) => {
|
|
8113
|
-
const B =
|
|
8114
|
-
k.value = M.tableTitle, O.value =
|
|
8120
|
+
const B = tt.parse(M.viewJson);
|
|
8121
|
+
k.value = M.tableTitle, O.value = bt(B.table), R.value = Bt(e.actions || B.action);
|
|
8115
8122
|
const G = Bt(B.suffix || []);
|
|
8116
|
-
q.value = G.map((P) => (vo(P), P)),
|
|
8117
|
-
const ne =
|
|
8118
|
-
M.tableTitle && ne.title && Sm(M.tableTitle),
|
|
8123
|
+
q.value = G.map((P) => (vo(P), P)), H.value = Na(B.trigger), oe.value = Na(B.trigger);
|
|
8124
|
+
const ne = ut(e.options ?? B.option);
|
|
8125
|
+
M.tableTitle && ne.title && Sm(M.tableTitle), Z.value = ne;
|
|
8119
8126
|
}, zt = async () => {
|
|
8120
8127
|
g.value = !1, je();
|
|
8121
8128
|
const M = e.id || a.params.id;
|
|
@@ -8128,19 +8135,19 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8128
8135
|
try {
|
|
8129
8136
|
N.value = await e.ruleFetch(M);
|
|
8130
8137
|
} catch {
|
|
8131
|
-
Te.value = o("Notice.network"),
|
|
8138
|
+
Te.value = o("Notice.network"), Ce.value = !0;
|
|
8132
8139
|
return;
|
|
8133
8140
|
}
|
|
8134
|
-
if (Dt(), e.columns ? (O.value = e.columns || [], R.value = e.actions || [], q.value = e.suffixes || [],
|
|
8135
|
-
if (Ae(B), await
|
|
8136
|
-
const G =
|
|
8137
|
-
G && await
|
|
8141
|
+
if (Dt(), e.columns ? (O.value = e.columns || [], R.value = e.actions || [], q.value = e.suffixes || [], Z.value = ut(e.options), await ht()) : await kt(M).then(async (B) => {
|
|
8142
|
+
if (Ae(B), await ht(), H.value.when_open) {
|
|
8143
|
+
const G = Xe(H.value.when_open);
|
|
8144
|
+
G && await Ee(G);
|
|
8138
8145
|
}
|
|
8139
8146
|
}).catch((B) => {
|
|
8140
|
-
Te.value = B.message,
|
|
8141
|
-
}),
|
|
8142
|
-
const B =
|
|
8143
|
-
B && await
|
|
8147
|
+
Te.value = B.message, Ce.value = !0;
|
|
8148
|
+
}), H.value.when_open) {
|
|
8149
|
+
const B = Xe(H.value.when_open);
|
|
8150
|
+
B && await Ee(B);
|
|
8144
8151
|
}
|
|
8145
8152
|
}, vo = (M) => {
|
|
8146
8153
|
if (M.type !== "group" && M.optionsType)
|
|
@@ -8172,13 +8179,13 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8172
8179
|
};
|
|
8173
8180
|
return r({ rebuild: zt, init: me }), Be(async () => {
|
|
8174
8181
|
await zt();
|
|
8175
|
-
}),
|
|
8182
|
+
}), de(
|
|
8176
8183
|
() => m.value,
|
|
8177
8184
|
() => {
|
|
8178
8185
|
lr();
|
|
8179
8186
|
},
|
|
8180
8187
|
{ deep: !0 }
|
|
8181
|
-
),
|
|
8188
|
+
), de([() => a.params.id, () => e.id], async () => {
|
|
8182
8189
|
cr(), await zt();
|
|
8183
8190
|
}), {
|
|
8184
8191
|
loading: D,
|
|
@@ -8188,7 +8195,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8188
8195
|
formRef: b,
|
|
8189
8196
|
ocFormStatus: j,
|
|
8190
8197
|
formValues: C,
|
|
8191
|
-
tableOption:
|
|
8198
|
+
tableOption: Z,
|
|
8192
8199
|
tableColumns: v,
|
|
8193
8200
|
tableData: f,
|
|
8194
8201
|
tableQueries: I,
|
|
@@ -8198,33 +8205,33 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8198
8205
|
formData: l,
|
|
8199
8206
|
title: k,
|
|
8200
8207
|
dynamicLoading: g,
|
|
8201
|
-
spinShow:
|
|
8208
|
+
spinShow: ie,
|
|
8202
8209
|
spinMsg: Te,
|
|
8203
|
-
spinStatus:
|
|
8210
|
+
spinStatus: pe,
|
|
8204
8211
|
tableScrollX: x,
|
|
8205
8212
|
ocrShow: d,
|
|
8206
8213
|
suffixes: q,
|
|
8207
|
-
spinError:
|
|
8214
|
+
spinError: Ce,
|
|
8208
8215
|
isMobile: u,
|
|
8209
8216
|
mRef: p,
|
|
8210
|
-
checkRowKeys:
|
|
8217
|
+
checkRowKeys: ye,
|
|
8211
8218
|
route: a,
|
|
8212
|
-
insiderShow:
|
|
8213
|
-
insiderLink:
|
|
8219
|
+
insiderShow: St,
|
|
8220
|
+
insiderLink: Tt,
|
|
8214
8221
|
insiderData: Nt,
|
|
8215
8222
|
rowKey: rr,
|
|
8216
8223
|
pageChange: sr,
|
|
8217
8224
|
pageSizeChange: re,
|
|
8218
|
-
pageSorter:
|
|
8219
|
-
pinChange:
|
|
8220
|
-
showChange:
|
|
8221
|
-
submit:
|
|
8222
|
-
handleAdd:
|
|
8223
|
-
handleColumnChange:
|
|
8225
|
+
pageSorter: nt,
|
|
8226
|
+
pinChange: Fe,
|
|
8227
|
+
showChange: Ve,
|
|
8228
|
+
submit: at,
|
|
8229
|
+
handleAdd: ee,
|
|
8230
|
+
handleColumnChange: ot,
|
|
8224
8231
|
handleCheckRowKeys: ar,
|
|
8225
|
-
drawerCancel:
|
|
8232
|
+
drawerCancel: st,
|
|
8226
8233
|
drawerSubmit: jt,
|
|
8227
|
-
checkRole:
|
|
8234
|
+
checkRole: ce,
|
|
8228
8235
|
handleSuffixClick: vo,
|
|
8229
8236
|
rebuild: zt,
|
|
8230
8237
|
summaryFn: or,
|
|
@@ -8241,7 +8248,7 @@ const Dc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-e91e9583
|
|
|
8241
8248
|
function j2(e, t, r, n, a, o) {
|
|
8242
8249
|
const s = $("NSkeleton"), u = $("NButton"), p = $("Plus"), h = $("NIcon"), b = $("UzActionButton"), D = $("UzSearchMobileBar"), g = $("UzTableMobile"), d = $("Filter"), k = $("NCheckbox"), l = $("GridDots"), v = $("Draggable"), m = $("NPopover"), f = $("UzSearchBar"), x = $("NDataTable"), I = $("NSpin"), V = $("UzOcr"), U = $("UzForm"), F = $("UzSpin"), z = $("NDrawerContent"), j = $("NDrawer"), C = $("UzTableDrawer");
|
|
8243
8250
|
return c(), w("div", b2, [
|
|
8244
|
-
|
|
8251
|
+
gt(i("div", _2, [
|
|
8245
8252
|
i("div", x2, [
|
|
8246
8253
|
T(s, {
|
|
8247
8254
|
width: 120,
|
|
@@ -8282,7 +8289,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8282
8289
|
], 512), [
|
|
8283
8290
|
[xa, !e.dynamicLoading]
|
|
8284
8291
|
]),
|
|
8285
|
-
|
|
8292
|
+
gt(T(I, {
|
|
8286
8293
|
show: e.spinError,
|
|
8287
8294
|
class: "uz-table-n-spin"
|
|
8288
8295
|
}, {
|
|
@@ -8295,7 +8302,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8295
8302
|
block: ""
|
|
8296
8303
|
}, {
|
|
8297
8304
|
default: y(() => t[5] || (t[5] = [
|
|
8298
|
-
|
|
8305
|
+
K("重试", -1)
|
|
8299
8306
|
])),
|
|
8300
8307
|
_: 1,
|
|
8301
8308
|
__: [5]
|
|
@@ -8329,7 +8336,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8329
8336
|
})
|
|
8330
8337
|
]),
|
|
8331
8338
|
default: y(() => [
|
|
8332
|
-
|
|
8339
|
+
K(" " + L(e.$t("Common.add")), 1)
|
|
8333
8340
|
]),
|
|
8334
8341
|
_: 1
|
|
8335
8342
|
}, 8, ["disabled", "onClick"])) : W("", !0),
|
|
@@ -8400,7 +8407,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8400
8407
|
})
|
|
8401
8408
|
]),
|
|
8402
8409
|
default: y(() => [
|
|
8403
|
-
|
|
8410
|
+
K(" " + L(e.$t("Common.columns")), 1)
|
|
8404
8411
|
]),
|
|
8405
8412
|
_: 1
|
|
8406
8413
|
})
|
|
@@ -8428,7 +8435,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8428
8435
|
size: "large"
|
|
8429
8436
|
}, {
|
|
8430
8437
|
default: y(() => [
|
|
8431
|
-
|
|
8438
|
+
K(L(typeof N.title == "string" ? N.title : N.title && N.title()), 1)
|
|
8432
8439
|
]),
|
|
8433
8440
|
_: 2
|
|
8434
8441
|
}, 1032, ["checked", "on-update:checked"]),
|
|
@@ -8468,7 +8475,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8468
8475
|
})
|
|
8469
8476
|
]),
|
|
8470
8477
|
default: y(() => [
|
|
8471
|
-
|
|
8478
|
+
K(" " + L(e.$t("Common.add")), 1)
|
|
8472
8479
|
]),
|
|
8473
8480
|
_: 1
|
|
8474
8481
|
}, 8, ["disabled", "onClick"])) : W("", !0),
|
|
@@ -8581,7 +8588,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8581
8588
|
tertiary: ""
|
|
8582
8589
|
}, {
|
|
8583
8590
|
default: y(() => [
|
|
8584
|
-
|
|
8591
|
+
K(L(e.$t("OCR.ocr")), 1)
|
|
8585
8592
|
]),
|
|
8586
8593
|
_: 1
|
|
8587
8594
|
}))
|
|
@@ -8593,7 +8600,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8593
8600
|
onClick: e.drawerCancel
|
|
8594
8601
|
}, {
|
|
8595
8602
|
default: y(() => [
|
|
8596
|
-
|
|
8603
|
+
K(L(e.$t("Common.cancel")), 1)
|
|
8597
8604
|
]),
|
|
8598
8605
|
_: 1
|
|
8599
8606
|
}, 8, ["loading", "onClick"]),
|
|
@@ -8603,7 +8610,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8603
8610
|
onClick: e.drawerSubmit
|
|
8604
8611
|
}, {
|
|
8605
8612
|
default: y(() => [
|
|
8606
|
-
|
|
8613
|
+
K(L(e.$t("Common.apply")), 1)
|
|
8607
8614
|
]),
|
|
8608
8615
|
_: 1
|
|
8609
8616
|
}, 8, ["loading", "onClick"])
|
|
@@ -8626,7 +8633,7 @@ function j2(e, t, r, n, a, o) {
|
|
|
8626
8633
|
}
|
|
8627
8634
|
const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
8628
8635
|
name: "UzTableChild",
|
|
8629
|
-
components: { NButton: ge, NIcon: ve, NDataTable: La, NForm: Fa, NDivider: Oa, Plus:
|
|
8636
|
+
components: { NButton: ge, NIcon: ve, NDataTable: La, NForm: Fa, NDivider: Oa, Plus: dt, GridDots: yt },
|
|
8630
8637
|
props: {
|
|
8631
8638
|
value: { type: Array, default: () => [] },
|
|
8632
8639
|
item: {
|
|
@@ -8642,44 +8649,46 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8642
8649
|
},
|
|
8643
8650
|
emits: ["update:value"],
|
|
8644
8651
|
setup(e, { emit: t, expose: r }) {
|
|
8645
|
-
const n =
|
|
8652
|
+
const n = Ke("emitSuffix"), a = Ke("modules"), o = Ke("mainFormValue"), { t: s } = Ut(), u = S(), p = S(), h = S(), b = S(!1), D = S(!0), g = S([]), d = S({ child: [] }), k = S(""), l = S({}), v = S(void 0), m = async (N) => {
|
|
8653
|
+
const { formDefaultValue: O, fillingDefaultArray: R } = await Zt(
|
|
8654
|
+
e.item.params.columns,
|
|
8655
|
+
N
|
|
8656
|
+
);
|
|
8657
|
+
return l.value = O, R;
|
|
8658
|
+
}, f = async (N) => {
|
|
8646
8659
|
if (b.value)
|
|
8647
8660
|
return;
|
|
8648
8661
|
b.value = !0;
|
|
8649
|
-
const O = Q(N).map((
|
|
8650
|
-
...
|
|
8651
|
-
...
|
|
8662
|
+
const O = await m(N), R = Q(N).map((q, H) => ({
|
|
8663
|
+
...q,
|
|
8664
|
+
...O[H]
|
|
8652
8665
|
}));
|
|
8653
8666
|
if (e.item.params.link) {
|
|
8654
|
-
const
|
|
8655
|
-
e.item.params.columns.forEach((
|
|
8656
|
-
(
|
|
8657
|
-
}), e.item.params.draggable &&
|
|
8658
|
-
|
|
8659
|
-
|
|
8667
|
+
const q = [];
|
|
8668
|
+
e.item.params.columns.forEach((H) => {
|
|
8669
|
+
(H.input === "cascader" || H.input === "select") && H.params.multiple && q.push(H.key);
|
|
8670
|
+
}), e.item.params.draggable && R.sort((H, oe) => H.sort_index - oe.sort_index), R && R.forEach((H) => {
|
|
8671
|
+
q.forEach((oe) => {
|
|
8672
|
+
H[oe] && typeof H[oe] == "string" && (H[oe] = JSON.parse(H[oe]));
|
|
8660
8673
|
});
|
|
8661
|
-
}), e.item.params.init &&
|
|
8674
|
+
}), e.item.params.init && R.length === 0 && e.status === 0 ? d.value.child = [l.value] : d.value.child = R, b.value = !1, Le(() => {
|
|
8662
8675
|
C();
|
|
8663
8676
|
});
|
|
8664
8677
|
} else
|
|
8665
|
-
|
|
8678
|
+
Le(() => {
|
|
8666
8679
|
C();
|
|
8667
8680
|
});
|
|
8668
8681
|
}, x = (N) => N.delete ? "uz-table-child-delete" : "", I = async (N) => {
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
N
|
|
8672
|
-
);
|
|
8673
|
-
l.value = O, v.value = R;
|
|
8674
|
-
const { tableColumns: q, tableWidth: K } = await er(
|
|
8675
|
-
Q(e.item.params.columns),
|
|
8682
|
+
await m(N);
|
|
8683
|
+
const { tableColumns: O, tableWidth: R } = await er(
|
|
8684
|
+
Q(N ?? e.item.params.columns),
|
|
8676
8685
|
!0,
|
|
8677
8686
|
e.status,
|
|
8678
8687
|
() => d.value.child,
|
|
8679
8688
|
a
|
|
8680
8689
|
);
|
|
8681
|
-
let
|
|
8682
|
-
if (
|
|
8690
|
+
let q = R;
|
|
8691
|
+
if (O.unshift({
|
|
8683
8692
|
title: " ",
|
|
8684
8693
|
key: "index",
|
|
8685
8694
|
align: "center",
|
|
@@ -8690,7 +8699,7 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8690
8699
|
// render(_: ObjectKey, rowIndex: number) {
|
|
8691
8700
|
// return h('span', {}, { default: () => rowIndex + 1 })
|
|
8692
8701
|
// }
|
|
8693
|
-
}),
|
|
8702
|
+
}), q = q + 60, e.item.params.draggable && e.status !== 2 && (O.unshift({
|
|
8694
8703
|
title: " ",
|
|
8695
8704
|
key: "draggable",
|
|
8696
8705
|
align: "center",
|
|
@@ -8706,10 +8715,10 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8706
8715
|
{
|
|
8707
8716
|
class: "flex justify-center"
|
|
8708
8717
|
},
|
|
8709
|
-
Y(ve, {}, { default: () => Y(
|
|
8718
|
+
Y(ve, {}, { default: () => Y(yt) })
|
|
8710
8719
|
);
|
|
8711
8720
|
}
|
|
8712
|
-
}),
|
|
8721
|
+
}), q = q + 40), e.status !== 2) {
|
|
8713
8722
|
const oe = {
|
|
8714
8723
|
title: () => s("Common.action"),
|
|
8715
8724
|
key: "action",
|
|
@@ -8720,36 +8729,36 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8720
8729
|
show: !0,
|
|
8721
8730
|
hide: !0,
|
|
8722
8731
|
width: 60,
|
|
8723
|
-
render(
|
|
8724
|
-
const
|
|
8732
|
+
render(Z, ie) {
|
|
8733
|
+
const pe = [], Te = {
|
|
8725
8734
|
type: "normal",
|
|
8726
8735
|
color: "error",
|
|
8727
8736
|
key: "delete",
|
|
8728
8737
|
buttonText: "删除",
|
|
8729
8738
|
confirmText: "确认删除?",
|
|
8730
8739
|
onClick: () => {
|
|
8731
|
-
const
|
|
8732
|
-
|
|
8740
|
+
const Ce = e.item.params.deleteFn;
|
|
8741
|
+
Ce && typeof Ce == "string" ? Z = new Function("rowData", "mainFormValue", Ce)(Z, o) : Z.delete = !0;
|
|
8733
8742
|
}
|
|
8734
8743
|
};
|
|
8735
|
-
return e.item.params.childActions && e.item.params.actions && Bt(e.item.params.actions).forEach((
|
|
8736
|
-
if (
|
|
8737
|
-
const
|
|
8738
|
-
|
|
8744
|
+
return e.item.params.childActions && e.item.params.actions && Bt(e.item.params.actions).forEach((ye) => {
|
|
8745
|
+
if (ye.disabled && typeof ye.disabled == "string") {
|
|
8746
|
+
const Ne = new Function("rowData", "rowIndex", ye.disabled);
|
|
8747
|
+
ye.disabled = Ne(Z, ie);
|
|
8739
8748
|
}
|
|
8740
|
-
|
|
8741
|
-
}), e.item.params.showDelete && (e.status !== 2 && (d.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) &&
|
|
8742
|
-
buttons:
|
|
8743
|
-
rowData:
|
|
8749
|
+
pe.push(ye);
|
|
8750
|
+
}), e.item.params.showDelete && (e.status !== 2 && (d.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly)) && pe.push(Te), $t({
|
|
8751
|
+
buttons: pe,
|
|
8752
|
+
rowData: Z
|
|
8744
8753
|
});
|
|
8745
8754
|
}
|
|
8746
8755
|
};
|
|
8747
|
-
|
|
8756
|
+
O.push(oe);
|
|
8748
8757
|
}
|
|
8749
|
-
const
|
|
8750
|
-
|
|
8751
|
-
oe.show &&
|
|
8752
|
-
}), g.value =
|
|
8758
|
+
const H = [];
|
|
8759
|
+
O.forEach((oe) => {
|
|
8760
|
+
oe.show && H.push(oe);
|
|
8761
|
+
}), g.value = H, q = q + 180, v.value = q;
|
|
8753
8762
|
}, V = (N) => {
|
|
8754
8763
|
if (e.item.params.summary) {
|
|
8755
8764
|
if (typeof e.item.params.summary == "function")
|
|
@@ -8763,7 +8772,7 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8763
8772
|
}
|
|
8764
8773
|
return [];
|
|
8765
8774
|
}, U = async () => {
|
|
8766
|
-
k.value = "", d.value.child.push(Q(l.value)),
|
|
8775
|
+
k.value = "", d.value.child.push(Q(l.value)), Le(() => {
|
|
8767
8776
|
C();
|
|
8768
8777
|
});
|
|
8769
8778
|
}, F = async () => {
|
|
@@ -8778,7 +8787,7 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8778
8787
|
children: () => d.value.child,
|
|
8779
8788
|
callback: async (R) => {
|
|
8780
8789
|
const q = await O(R, o, we);
|
|
8781
|
-
d.value.child = [...d.value.child, ...q],
|
|
8790
|
+
d.value.child = [...d.value.child, ...q], Le(() => {
|
|
8782
8791
|
C();
|
|
8783
8792
|
});
|
|
8784
8793
|
}
|
|
@@ -8789,7 +8798,7 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8789
8798
|
mainFormValue: o,
|
|
8790
8799
|
children: () => d.value.child,
|
|
8791
8800
|
callback: async (O) => {
|
|
8792
|
-
d.value.child = [...d.value.child, ...O],
|
|
8801
|
+
d.value.child = [...d.value.child, ...O], Le(() => {
|
|
8793
8802
|
C();
|
|
8794
8803
|
});
|
|
8795
8804
|
}
|
|
@@ -8803,14 +8812,14 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8803
8812
|
}, j = () => (k.value = "", new Promise((N, O) => {
|
|
8804
8813
|
var q;
|
|
8805
8814
|
const R = d.value.child.filter(
|
|
8806
|
-
(
|
|
8815
|
+
(H) => !H.delete
|
|
8807
8816
|
).length;
|
|
8808
8817
|
if (e.item.form.rule.required && R === 0) {
|
|
8809
8818
|
k.value = e.item.form.rule.message, O();
|
|
8810
8819
|
return;
|
|
8811
8820
|
}
|
|
8812
|
-
(q = h.value) == null || q.validate((
|
|
8813
|
-
|
|
8821
|
+
(q = h.value) == null || q.validate((H) => {
|
|
8822
|
+
H ? O() : N();
|
|
8814
8823
|
});
|
|
8815
8824
|
})), C = () => {
|
|
8816
8825
|
if (e.item.params.draggable && e.status !== 2 && u.value && !p.value) {
|
|
@@ -8821,14 +8830,14 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8821
8830
|
// dataTransfer.setData('Text', '')
|
|
8822
8831
|
// },
|
|
8823
8832
|
onEnd: ({ oldIndex: O, newIndex: R }) => {
|
|
8824
|
-
var
|
|
8825
|
-
(
|
|
8833
|
+
var oe;
|
|
8834
|
+
(oe = p.value) == null || oe.destroy(), p.value = null, D.value = !1;
|
|
8826
8835
|
let q = Q(d.value.child);
|
|
8827
|
-
const
|
|
8828
|
-
q.splice(R, 0,
|
|
8829
|
-
...
|
|
8830
|
-
sort_index:
|
|
8831
|
-
})), d.value.child = q,
|
|
8836
|
+
const H = q.splice(O, 1)[0];
|
|
8837
|
+
q.splice(R, 0, H), q = q.map((Z, ie) => ({
|
|
8838
|
+
...Z,
|
|
8839
|
+
sort_index: ie
|
|
8840
|
+
})), d.value.child = q, Le(() => {
|
|
8832
8841
|
D.value = !0, setTimeout(() => {
|
|
8833
8842
|
C();
|
|
8834
8843
|
}, 0);
|
|
@@ -8838,17 +8847,23 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8838
8847
|
}
|
|
8839
8848
|
};
|
|
8840
8849
|
return Be(() => {
|
|
8841
|
-
I(), e.value && e.value.length > 0
|
|
8850
|
+
I(), e.value && e.value.length > 0 ? f(e.value) : m(e.value);
|
|
8842
8851
|
}), za(() => {
|
|
8843
8852
|
var N;
|
|
8844
8853
|
(N = p.value) == null || N.destroy(), p.value = null;
|
|
8845
|
-
}), r({ validate: j, restoreValidation: z }),
|
|
8854
|
+
}), r({ validate: j, restoreValidation: z }), de(
|
|
8855
|
+
() => e.item.params.columns,
|
|
8856
|
+
(N) => {
|
|
8857
|
+
I(N);
|
|
8858
|
+
},
|
|
8859
|
+
{ deep: !0 }
|
|
8860
|
+
), de(
|
|
8846
8861
|
() => e.value,
|
|
8847
8862
|
(N, O) => {
|
|
8848
8863
|
JSON.stringify(N) !== JSON.stringify(O) && f(N);
|
|
8849
8864
|
},
|
|
8850
8865
|
{ deep: !0 }
|
|
8851
|
-
),
|
|
8866
|
+
), de(
|
|
8852
8867
|
() => d.value.child,
|
|
8853
8868
|
(N) => {
|
|
8854
8869
|
t("update:value", N);
|
|
@@ -8862,7 +8877,7 @@ const z2 = /* @__PURE__ */ _(k2, [["render", j2]]), q2 = le({
|
|
|
8862
8877
|
tableData: d,
|
|
8863
8878
|
summaryData: V,
|
|
8864
8879
|
message: k,
|
|
8865
|
-
tableScrollX:
|
|
8880
|
+
tableScrollX: v,
|
|
8866
8881
|
tableShow: D,
|
|
8867
8882
|
onAdd: U,
|
|
8868
8883
|
onAddFormData: F,
|
|
@@ -8878,7 +8893,7 @@ function U2(e, t, r, n, a, o) {
|
|
|
8878
8893
|
return c(), w("div", A2, [
|
|
8879
8894
|
i("div", R2, [
|
|
8880
8895
|
i("div", O2, [
|
|
8881
|
-
|
|
8896
|
+
K(L(e.item.label) + " ", 1),
|
|
8882
8897
|
e.item.form.rule.required ? (c(), w("span", B2, " * ")) : W("", !0)
|
|
8883
8898
|
]),
|
|
8884
8899
|
i("div", F2, [
|
|
@@ -8897,7 +8912,7 @@ function U2(e, t, r, n, a, o) {
|
|
|
8897
8912
|
})
|
|
8898
8913
|
]),
|
|
8899
8914
|
default: y(() => [
|
|
8900
|
-
t[0] || (t[0] =
|
|
8915
|
+
t[0] || (t[0] = K(" 从数据新增 ", -1))
|
|
8901
8916
|
]),
|
|
8902
8917
|
_: 1,
|
|
8903
8918
|
__: [0]
|
|
@@ -8917,7 +8932,7 @@ function U2(e, t, r, n, a, o) {
|
|
|
8917
8932
|
})
|
|
8918
8933
|
]),
|
|
8919
8934
|
default: y(() => [
|
|
8920
|
-
t[1] || (t[1] =
|
|
8935
|
+
t[1] || (t[1] = K(" 新增 ", -1))
|
|
8921
8936
|
]),
|
|
8922
8937
|
_: 1,
|
|
8923
8938
|
__: [1]
|
|
@@ -8963,7 +8978,7 @@ function U2(e, t, r, n, a, o) {
|
|
|
8963
8978
|
})
|
|
8964
8979
|
]),
|
|
8965
8980
|
default: y(() => [
|
|
8966
|
-
t[2] || (t[2] =
|
|
8981
|
+
t[2] || (t[2] = K(" 从数据新增 ", -1))
|
|
8967
8982
|
]),
|
|
8968
8983
|
_: 1,
|
|
8969
8984
|
__: [2]
|
|
@@ -8983,7 +8998,7 @@ function U2(e, t, r, n, a, o) {
|
|
|
8983
8998
|
})
|
|
8984
8999
|
]),
|
|
8985
9000
|
default: y(() => [
|
|
8986
|
-
t[3] || (t[3] =
|
|
9001
|
+
t[3] || (t[3] = K(" 新增 ", -1))
|
|
8987
9002
|
]),
|
|
8988
9003
|
_: 1,
|
|
8989
9004
|
__: [3]
|
|
@@ -9007,7 +9022,7 @@ const P2 = /* @__PURE__ */ _(q2, [["render", U2]]), E2 = le({
|
|
|
9007
9022
|
},
|
|
9008
9023
|
emits: ["update:value"],
|
|
9009
9024
|
setup(e) {
|
|
9010
|
-
const t =
|
|
9025
|
+
const t = Ke("modules"), { t: r } = Ut(), n = S(!1), a = S(!1), o = S(""), s = S({}), u = S([]), p = S([]), h = S(void 0), b = (d) => {
|
|
9011
9026
|
if (n.value = !0, e.item.params.link) {
|
|
9012
9027
|
const k = [];
|
|
9013
9028
|
e.item.params.columns.forEach((l) => {
|
|
@@ -9050,7 +9065,7 @@ const P2 = /* @__PURE__ */ _(q2, [["render", U2]]), E2 = le({
|
|
|
9050
9065
|
hide: !0,
|
|
9051
9066
|
width: 60,
|
|
9052
9067
|
render(x) {
|
|
9053
|
-
return
|
|
9068
|
+
return $t({
|
|
9054
9069
|
buttons: [
|
|
9055
9070
|
{
|
|
9056
9071
|
type: "normal",
|
|
@@ -9088,7 +9103,7 @@ const P2 = /* @__PURE__ */ _(q2, [["render", U2]]), E2 = le({
|
|
|
9088
9103
|
}), Fl(async () => {
|
|
9089
9104
|
try {
|
|
9090
9105
|
if (e.formValue && e.formValue.id && e.item.params.searchKey) {
|
|
9091
|
-
const d = await
|
|
9106
|
+
const d = await Ze({
|
|
9092
9107
|
tableId: e.item.params.link,
|
|
9093
9108
|
params: [
|
|
9094
9109
|
{
|
|
@@ -9183,7 +9198,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = le({
|
|
|
9183
9198
|
},
|
|
9184
9199
|
emits: ["update:show", "on-submit"],
|
|
9185
9200
|
setup(e, { emit: t }) {
|
|
9186
|
-
const r =
|
|
9201
|
+
const r = _t(() => he.isMobile), n = S(), a = S({}), o = S(!1), s = S({
|
|
9187
9202
|
index: 1,
|
|
9188
9203
|
selection: 0,
|
|
9189
9204
|
// 0:false | 1:multiple:true | 2:multiple:false
|
|
@@ -9212,12 +9227,12 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = le({
|
|
|
9212
9227
|
}, l = async () => {
|
|
9213
9228
|
if (e.link) {
|
|
9214
9229
|
const f = e.link.split(".")[0];
|
|
9215
|
-
await
|
|
9230
|
+
await kt(f).then(async (x) => {
|
|
9216
9231
|
o.value = !0;
|
|
9217
|
-
const I =
|
|
9218
|
-
|
|
9232
|
+
const I = tt.parse(x.viewJson), { form: V } = await Zt(
|
|
9233
|
+
bt(I.table)
|
|
9219
9234
|
);
|
|
9220
|
-
D.value = V, s.value =
|
|
9235
|
+
D.value = V, s.value = ut(I.option), g.value = I.trigger, e.mainData && (a.value = e.mainData);
|
|
9221
9236
|
}).catch(() => {
|
|
9222
9237
|
d.value = !0;
|
|
9223
9238
|
});
|
|
@@ -9246,9 +9261,9 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = le({
|
|
|
9246
9261
|
}).then((V) => {
|
|
9247
9262
|
if (Sa(), g.value.when_create) {
|
|
9248
9263
|
const U = v(g.value.when_create);
|
|
9249
|
-
U &&
|
|
9264
|
+
U && Ee(U, V.id);
|
|
9250
9265
|
}
|
|
9251
|
-
|
|
9266
|
+
Ze({
|
|
9252
9267
|
tableId: I
|
|
9253
9268
|
}).then((U) => {
|
|
9254
9269
|
const F = e.link.split(".");
|
|
@@ -9272,7 +9287,7 @@ const W2 = /* @__PURE__ */ _(E2, [["render", G2]]), J2 = le({
|
|
|
9272
9287
|
p.value = !1;
|
|
9273
9288
|
});
|
|
9274
9289
|
};
|
|
9275
|
-
return
|
|
9290
|
+
return de(
|
|
9276
9291
|
() => e.show,
|
|
9277
9292
|
(f) => {
|
|
9278
9293
|
f && l();
|
|
@@ -9324,7 +9339,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9324
9339
|
block: ""
|
|
9325
9340
|
}, {
|
|
9326
9341
|
default: y(() => t[3] || (t[3] = [
|
|
9327
|
-
|
|
9342
|
+
K("重试", -1)
|
|
9328
9343
|
])),
|
|
9329
9344
|
_: 1,
|
|
9330
9345
|
__: [3]
|
|
@@ -9369,7 +9384,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9369
9384
|
tertiary: ""
|
|
9370
9385
|
}, {
|
|
9371
9386
|
default: y(() => [
|
|
9372
|
-
|
|
9387
|
+
K(L(e.$t("OCR.ocr")), 1)
|
|
9373
9388
|
]),
|
|
9374
9389
|
_: 1
|
|
9375
9390
|
}))
|
|
@@ -9381,7 +9396,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9381
9396
|
onClick: e.drawerCancel
|
|
9382
9397
|
}, {
|
|
9383
9398
|
default: y(() => [
|
|
9384
|
-
|
|
9399
|
+
K(L(e.$t("Common.cancel")), 1)
|
|
9385
9400
|
]),
|
|
9386
9401
|
_: 1
|
|
9387
9402
|
}, 8, ["loading", "onClick"]),
|
|
@@ -9391,7 +9406,7 @@ function Z2(e, t, r, n, a, o) {
|
|
|
9391
9406
|
onClick: e.drawerSubmit
|
|
9392
9407
|
}, {
|
|
9393
9408
|
default: y(() => [
|
|
9394
|
-
|
|
9409
|
+
K(L(e.$t("Common.apply")), 1)
|
|
9395
9410
|
]),
|
|
9396
9411
|
_: 1
|
|
9397
9412
|
}, 8, ["loading", "onClick"])
|
|
@@ -9640,7 +9655,7 @@ function Ml(e) {
|
|
|
9640
9655
|
];
|
|
9641
9656
|
}
|
|
9642
9657
|
function jc(e) {
|
|
9643
|
-
X.active = e,
|
|
9658
|
+
X.active = e, Ge.push(e), Me(X.cache, X, 0);
|
|
9644
9659
|
}
|
|
9645
9660
|
function Sl(e, t) {
|
|
9646
9661
|
const r = X.thumbnail.find((n) => n.key === e);
|
|
@@ -9648,19 +9663,19 @@ function Sl(e, t) {
|
|
|
9648
9663
|
}
|
|
9649
9664
|
function fy(e) {
|
|
9650
9665
|
const t = X.thumbnail.find((r) => r.path === e.key);
|
|
9651
|
-
t ? (X.active = t.key, Me(X.cache, X, 0),
|
|
9666
|
+
t ? (X.active = t.key, Me(X.cache, X, 0), Ge.push(t.key)) : (X.active = e.key, X.thumbnail.push({ ...e, path: e.key, closable: !0 }), Ge.push(e.key));
|
|
9652
9667
|
}
|
|
9653
9668
|
function zc(e) {
|
|
9654
9669
|
var n;
|
|
9655
9670
|
const r = X.thumbnail.findIndex((a) => a.key === e);
|
|
9656
9671
|
if (X.thumbnail.splice(r, 1), X.active === e) {
|
|
9657
9672
|
const a = ((n = X.thumbnail[r - 1]) == null ? void 0 : n.key) || "";
|
|
9658
|
-
X.active = a,
|
|
9673
|
+
X.active = a, Ge.push(a);
|
|
9659
9674
|
}
|
|
9660
9675
|
Me(X.cache, X, 0);
|
|
9661
9676
|
}
|
|
9662
9677
|
function qc() {
|
|
9663
|
-
X.active = X.page.path, X.thumbnail = [X.page],
|
|
9678
|
+
X.active = X.page.path, X.thumbnail = [X.page], Ge.push(X.page.path), Me(X.cache, X, 0);
|
|
9664
9679
|
}
|
|
9665
9680
|
const py = le({
|
|
9666
9681
|
name: "UzThumbnail",
|
|
@@ -9671,7 +9686,7 @@ const py = le({
|
|
|
9671
9686
|
NIcon: ve,
|
|
9672
9687
|
NPopconfirm: qa,
|
|
9673
9688
|
NFlex: Ul,
|
|
9674
|
-
Trash:
|
|
9689
|
+
Trash: xt
|
|
9675
9690
|
},
|
|
9676
9691
|
props: {
|
|
9677
9692
|
option: {
|
|
@@ -9693,7 +9708,7 @@ const py = le({
|
|
|
9693
9708
|
};
|
|
9694
9709
|
return Be(() => {
|
|
9695
9710
|
Ml(e.option), X.active !== n.path && Sl(n.path, n.fullPath);
|
|
9696
|
-
}),
|
|
9711
|
+
}), de(
|
|
9697
9712
|
() => n,
|
|
9698
9713
|
(u) => {
|
|
9699
9714
|
X.active === n.path && Sl(u.path, u.fullPath);
|
|
@@ -9701,7 +9716,7 @@ const py = le({
|
|
|
9701
9716
|
{
|
|
9702
9717
|
deep: !0
|
|
9703
9718
|
}
|
|
9704
|
-
),
|
|
9719
|
+
), de(
|
|
9705
9720
|
() => e.option,
|
|
9706
9721
|
(u) => {
|
|
9707
9722
|
Ml(u);
|
|
@@ -9747,7 +9762,7 @@ function hy(e, t, r, n, a, o) {
|
|
|
9747
9762
|
})
|
|
9748
9763
|
]),
|
|
9749
9764
|
default: y(() => [
|
|
9750
|
-
t[0] || (t[0] =
|
|
9765
|
+
t[0] || (t[0] = K(" 清空所有打开的标签? ", -1))
|
|
9751
9766
|
]),
|
|
9752
9767
|
_: 1,
|
|
9753
9768
|
__: [0]
|
|
@@ -9777,13 +9792,13 @@ function hy(e, t, r, n, a, o) {
|
|
|
9777
9792
|
]), 1032, ["value", "on-close", "on-update:value"]);
|
|
9778
9793
|
}
|
|
9779
9794
|
const wy = /* @__PURE__ */ _(py, [["render", hy]]), ua = "#0086ff", my = "#2a9aff", ca = "#FF8400", vy = "#ff9d33", da = "#1AB233", gy = "#49c35d", fa = "#ffba33", yy = "#ffcb63", pa = "#FB0023", ky = "#ff5f75";
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9795
|
+
We.common.cardColor = "#32323b";
|
|
9796
|
+
We.common.primaryColor = "#0086ff";
|
|
9797
|
+
We.common.primaryColorHover = "#0086ff";
|
|
9798
|
+
We.common.borderRadius = "var(--borderRadius)";
|
|
9799
|
+
We.common.inputColor = "rgba(var(--input))";
|
|
9800
|
+
We.common.borderColor = "rgba(var(--border), 0.7)";
|
|
9801
|
+
We.DataTable.tdColor = "#2d2d31";
|
|
9787
9802
|
const by = {
|
|
9788
9803
|
common: {
|
|
9789
9804
|
inputColor: "rgba(var(--input))",
|
|
@@ -9826,7 +9841,7 @@ const by = {
|
|
|
9826
9841
|
Radio: {
|
|
9827
9842
|
boxShadow: "inset 0 0 0 1px rgb(var(--primary))"
|
|
9828
9843
|
}
|
|
9829
|
-
}, _y =
|
|
9844
|
+
}, _y = We, xy = le({
|
|
9830
9845
|
name: "UzWrap",
|
|
9831
9846
|
components: {
|
|
9832
9847
|
NConfigProvider: id
|
|
@@ -9945,7 +9960,7 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9945
9960
|
Filter: Et,
|
|
9946
9961
|
GitCompare: pu,
|
|
9947
9962
|
GitPullRequest: hu,
|
|
9948
|
-
GridDots:
|
|
9963
|
+
GridDots: yt,
|
|
9949
9964
|
Home: wu,
|
|
9950
9965
|
IconList: bm,
|
|
9951
9966
|
Id: mu,
|
|
@@ -9965,7 +9980,7 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9965
9980
|
Paperclip: Su,
|
|
9966
9981
|
Photo: Tu,
|
|
9967
9982
|
PhotoOff: Lt,
|
|
9968
|
-
Plus:
|
|
9983
|
+
Plus: dt,
|
|
9969
9984
|
Presentation: Nu,
|
|
9970
9985
|
PresentationAnalytics: Iu,
|
|
9971
9986
|
Printer: Du,
|
|
@@ -9981,7 +9996,7 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9981
9996
|
Sun: Fu,
|
|
9982
9997
|
TransferIn: Vu,
|
|
9983
9998
|
TransferOut: Uu,
|
|
9984
|
-
Trash:
|
|
9999
|
+
Trash: xt,
|
|
9985
10000
|
User: Pu,
|
|
9986
10001
|
UserCircle: Ku,
|
|
9987
10002
|
UserMinus: Eu,
|
|
@@ -9993,7 +10008,7 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
9993
10008
|
UzCircle: Zm,
|
|
9994
10009
|
UzDraggableForm: Tg,
|
|
9995
10010
|
UzForm: Cg,
|
|
9996
|
-
UzFormItem:
|
|
10011
|
+
UzFormItem: pt,
|
|
9997
10012
|
UzFormItemImage: Nc,
|
|
9998
10013
|
UzFormItemUpload: Ag,
|
|
9999
10014
|
UzIcon: Ya,
|
|
@@ -10015,20 +10030,20 @@ const $y = /* @__PURE__ */ _(xy, [["render", Cy]]), Tl = /* @__PURE__ */ Object.
|
|
|
10015
10030
|
fnAddThumbnail: fy,
|
|
10016
10031
|
fnClearAllThumbnail: qc,
|
|
10017
10032
|
fnDeleteThumbnail: zc,
|
|
10018
|
-
fnGetTableData:
|
|
10019
|
-
fnOptionReduction:
|
|
10033
|
+
fnGetTableData: kt,
|
|
10034
|
+
fnOptionReduction: ut,
|
|
10020
10035
|
fnOptionSimplify: p2,
|
|
10021
10036
|
fnPrepareFormData: Zt,
|
|
10022
10037
|
fnPrepareTableData: er,
|
|
10023
|
-
fnRenderAction:
|
|
10038
|
+
fnRenderAction: $t,
|
|
10024
10039
|
fnSetLang: ac,
|
|
10025
10040
|
fnSetTheme: oc,
|
|
10026
10041
|
fnSetThumbnail: jc,
|
|
10027
|
-
fnTableReduction:
|
|
10042
|
+
fnTableReduction: bt,
|
|
10028
10043
|
fnTableSimplify: d2,
|
|
10029
10044
|
fnTriggersReduction: Na,
|
|
10030
10045
|
fnTriggersSimplify: f2,
|
|
10031
|
-
i18n:
|
|
10046
|
+
i18n: He
|
|
10032
10047
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10033
10048
|
var ha, Nl;
|
|
10034
10049
|
function My() {
|
|
@@ -10065,7 +10080,7 @@ var va, jl;
|
|
|
10065
10080
|
function Ny() {
|
|
10066
10081
|
if (jl) return va;
|
|
10067
10082
|
jl = 1;
|
|
10068
|
-
var e =
|
|
10083
|
+
var e = Mt(), t = ft(), r = "[object Symbol]";
|
|
10069
10084
|
function n(a) {
|
|
10070
10085
|
return typeof a == "symbol" || t(a) && e(a) == r;
|
|
10071
10086
|
}
|
|
@@ -10075,7 +10090,7 @@ var ga, zl;
|
|
|
10075
10090
|
function Iy() {
|
|
10076
10091
|
if (zl) return ga;
|
|
10077
10092
|
zl = 1;
|
|
10078
|
-
var e = Ty(), t =
|
|
10093
|
+
var e = Ty(), t = Qe(), r = Ny(), n = NaN, a = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, u = parseInt;
|
|
10079
10094
|
function p(h) {
|
|
10080
10095
|
if (typeof h == "number")
|
|
10081
10096
|
return h;
|
|
@@ -10097,26 +10112,26 @@ var ya, ql;
|
|
|
10097
10112
|
function Ac() {
|
|
10098
10113
|
if (ql) return ya;
|
|
10099
10114
|
ql = 1;
|
|
10100
|
-
var e =
|
|
10115
|
+
var e = Qe(), t = My(), r = Iy(), n = "Expected a function", a = Math.max, o = Math.min;
|
|
10101
10116
|
function s(u, p, h) {
|
|
10102
10117
|
var b, D, g, d, k, l, v = 0, m = !1, f = !1, x = !0;
|
|
10103
10118
|
if (typeof u != "function")
|
|
10104
10119
|
throw new TypeError(n);
|
|
10105
10120
|
p = r(p) || 0, e(h) && (m = !!h.leading, f = "maxWait" in h, g = f ? a(r(h.maxWait) || 0, p) : g, x = "trailing" in h ? !!h.trailing : x);
|
|
10106
10121
|
function I(R) {
|
|
10107
|
-
var q = b,
|
|
10108
|
-
return b = D = void 0, v = R, d = u.apply(
|
|
10122
|
+
var q = b, H = D;
|
|
10123
|
+
return b = D = void 0, v = R, d = u.apply(H, q), d;
|
|
10109
10124
|
}
|
|
10110
10125
|
function V(R) {
|
|
10111
10126
|
return v = R, k = setTimeout(z, p), m ? I(R) : d;
|
|
10112
10127
|
}
|
|
10113
10128
|
function U(R) {
|
|
10114
|
-
var q = R - l,
|
|
10115
|
-
return f ? o(
|
|
10129
|
+
var q = R - l, H = R - v, oe = p - q;
|
|
10130
|
+
return f ? o(oe, g - H) : oe;
|
|
10116
10131
|
}
|
|
10117
10132
|
function F(R) {
|
|
10118
|
-
var q = R - l,
|
|
10119
|
-
return l === void 0 || q >= p || q < 0 || f &&
|
|
10133
|
+
var q = R - l, H = R - v;
|
|
10134
|
+
return l === void 0 || q >= p || q < 0 || f && H >= g;
|
|
10120
10135
|
}
|
|
10121
10136
|
function z() {
|
|
10122
10137
|
var R = t();
|
|
@@ -10204,7 +10219,7 @@ var ka, Al;
|
|
|
10204
10219
|
function qy() {
|
|
10205
10220
|
if (Al) return ka;
|
|
10206
10221
|
Al = 1;
|
|
10207
|
-
var e = Ac(), t =
|
|
10222
|
+
var e = Ac(), t = Qe(), r = "Expected a function";
|
|
10208
10223
|
function n(a, o, s) {
|
|
10209
10224
|
var u = !0, p = !0;
|
|
10210
10225
|
if (typeof a != "function")
|
|
@@ -10220,7 +10235,7 @@ function qy() {
|
|
|
10220
10235
|
var Ay = qy();
|
|
10221
10236
|
const Ry = /* @__PURE__ */ to(Ay);
|
|
10222
10237
|
function mk(e, t = 1e3) {
|
|
10223
|
-
const r = S(e), n =
|
|
10238
|
+
const r = S(e), n = _t(
|
|
10224
10239
|
() => Ry((...a) => r.value([...a]), t)
|
|
10225
10240
|
);
|
|
10226
10241
|
return Vl(() => {
|
|
@@ -10302,7 +10317,7 @@ function gk(e, t, r) {
|
|
|
10302
10317
|
refetch: f
|
|
10303
10318
|
};
|
|
10304
10319
|
}
|
|
10305
|
-
const Oy = "0.0.
|
|
10320
|
+
const Oy = "0.0.13";
|
|
10306
10321
|
let Oc;
|
|
10307
10322
|
async function Bc() {
|
|
10308
10323
|
const e = await fetch(
|
|
@@ -10462,7 +10477,7 @@ function Ly({ components: e = [] } = {}) {
|
|
|
10462
10477
|
language: h = !1,
|
|
10463
10478
|
local: b = "zh-CN"
|
|
10464
10479
|
} = o, D = Oe("theme", !1), g = Oe("lang", b);
|
|
10465
|
-
Dm(h), ac(g), oc(D),
|
|
10480
|
+
Dm(h), ac(g), oc(D), He.global.locale.value = g, p && Fy(), s && Ey(a, s, u);
|
|
10466
10481
|
}
|
|
10467
10482
|
}
|
|
10468
10483
|
return {
|
|
@@ -10564,7 +10579,7 @@ export {
|
|
|
10564
10579
|
ck as GET,
|
|
10565
10580
|
pu as GitCompare,
|
|
10566
10581
|
hu as GitPullRequest,
|
|
10567
|
-
|
|
10582
|
+
yt as GridDots,
|
|
10568
10583
|
wu as Home,
|
|
10569
10584
|
bm as IconList,
|
|
10570
10585
|
mu as Id,
|
|
@@ -10585,7 +10600,7 @@ export {
|
|
|
10585
10600
|
Su as Paperclip,
|
|
10586
10601
|
Tu as Photo,
|
|
10587
10602
|
Lt as PhotoOff,
|
|
10588
|
-
|
|
10603
|
+
dt as Plus,
|
|
10589
10604
|
Nu as Presentation,
|
|
10590
10605
|
Iu as PresentationAnalytics,
|
|
10591
10606
|
Du as Printer,
|
|
@@ -10601,7 +10616,7 @@ export {
|
|
|
10601
10616
|
Fu as Sun,
|
|
10602
10617
|
Vu as TransferIn,
|
|
10603
10618
|
Uu as TransferOut,
|
|
10604
|
-
|
|
10619
|
+
xt as Trash,
|
|
10605
10620
|
Pu as User,
|
|
10606
10621
|
Ku as UserCircle,
|
|
10607
10622
|
Eu as UserMinus,
|
|
@@ -10613,7 +10628,7 @@ export {
|
|
|
10613
10628
|
Zm as UzCircle,
|
|
10614
10629
|
Tg as UzDraggableForm,
|
|
10615
10630
|
Cg as UzForm,
|
|
10616
|
-
|
|
10631
|
+
pt as UzFormItem,
|
|
10617
10632
|
Nc as UzFormItemImage,
|
|
10618
10633
|
Ag as UzFormItemUpload,
|
|
10619
10634
|
Ya as UzIcon,
|
|
@@ -10644,35 +10659,35 @@ export {
|
|
|
10644
10659
|
sk as fnDelStorageAll,
|
|
10645
10660
|
Mm as fnDelStorageByPrefix,
|
|
10646
10661
|
zc as fnDeleteThumbnail,
|
|
10647
|
-
|
|
10662
|
+
Ye as fnFormatTime,
|
|
10648
10663
|
uk as fnFormatUnits,
|
|
10649
10664
|
ik as fnFullScreen,
|
|
10650
10665
|
Oe as fnGetStorage,
|
|
10651
|
-
|
|
10666
|
+
kt as fnGetTableData,
|
|
10652
10667
|
hk as fnListenerScale,
|
|
10653
|
-
|
|
10654
|
-
|
|
10668
|
+
it as fnNotification,
|
|
10669
|
+
ut as fnOptionReduction,
|
|
10655
10670
|
p2 as fnOptionSimplify,
|
|
10656
10671
|
bo as fnPageModel2Naive,
|
|
10657
10672
|
Zt as fnPrepareFormData,
|
|
10658
10673
|
er as fnPrepareTableData,
|
|
10659
|
-
|
|
10674
|
+
$t as fnRenderAction,
|
|
10660
10675
|
cr as fnScrollTop,
|
|
10661
10676
|
ac as fnSetLang,
|
|
10662
10677
|
pk as fnSetNormalWidthAndHeight,
|
|
10663
10678
|
Me as fnSetStorage,
|
|
10664
10679
|
oc as fnSetTheme,
|
|
10665
10680
|
jc as fnSetThumbnail,
|
|
10666
|
-
|
|
10681
|
+
bt as fnTableReduction,
|
|
10667
10682
|
d2 as fnTableSimplify,
|
|
10668
10683
|
lk as fnThrottle,
|
|
10669
10684
|
Sm as fnTitle,
|
|
10670
10685
|
Na as fnTriggersReduction,
|
|
10671
10686
|
f2 as fnTriggersSimplify,
|
|
10672
|
-
|
|
10687
|
+
He as i18n,
|
|
10673
10688
|
yk as install,
|
|
10674
10689
|
by as lightTheme,
|
|
10675
|
-
|
|
10690
|
+
Ge as router,
|
|
10676
10691
|
jy as scaleStore,
|
|
10677
10692
|
wk as useDebounceFn,
|
|
10678
10693
|
vk as useLocalStorage,
|