@unizhen/ui 0.1.58 → 0.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/common.d.ts +1 -0
- package/lib/components/form/draggable.vue.d.ts +1 -1
- package/lib/components/form/index.vue.d.ts +1 -1
- package/lib/components/form/item.vue.d.ts +1 -1
- package/lib/components/searchBar/index.vue.d.ts +1 -1
- package/lib/components/searchBar/mobile.vue.d.ts +1 -1
- package/lib/ui.js +475 -464
- package/package.json +1 -1
package/lib/ui.js
CHANGED
|
@@ -40,7 +40,7 @@ var lt = Object.defineProperty, ut = (e, t) => {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
setup(e) {
|
|
43
|
-
return () =>
|
|
43
|
+
return () => Vd({
|
|
44
44
|
buttons: e.data,
|
|
45
45
|
rowData: e.rowData,
|
|
46
46
|
hProps: e.hProps
|
|
@@ -2198,12 +2198,12 @@ var Zu = "local-", Qu = new class {
|
|
|
2198
2198
|
deleteAll() {
|
|
2199
2199
|
for (let e in this.map) this.delete(e);
|
|
2200
2200
|
}
|
|
2201
|
-
}("qx"), { notification:
|
|
2201
|
+
}("qx"), $u = new Intl.Collator("zh-Hans-u-co-pinyin"), ed = [..."阿八嚓哒妸发旮哈讥咔垃妈拏噢妑七呥仨他屲夕丫帀"], td = [..."ABCDEFGHJKLMNOPQRSTWXYZ"], { notification: nd, dialog: rd } = Ve(["notification", "dialog"], {
|
|
2202
2202
|
configProviderProps: { themeOverrides: { common: { borderRadius: "12px" } } },
|
|
2203
2203
|
notificationProviderProps: { placement: "bottom-right" }
|
|
2204
|
-
}),
|
|
2204
|
+
}), id = nd, ad = rd;
|
|
2205
2205
|
function q(e) {
|
|
2206
|
-
console.log(e),
|
|
2206
|
+
console.log(e), nd.error({
|
|
2207
2207
|
content: e.message,
|
|
2208
2208
|
duration: 3e3
|
|
2209
2209
|
});
|
|
@@ -2232,13 +2232,13 @@ function J(e, t, n = "1 Day") {
|
|
|
2232
2232
|
function Y(e, t) {
|
|
2233
2233
|
return Qu.get(e, t);
|
|
2234
2234
|
}
|
|
2235
|
-
var
|
|
2235
|
+
var od = (e) => {
|
|
2236
2236
|
Qu.delete(e);
|
|
2237
|
-
},
|
|
2237
|
+
}, sd = (e) => {
|
|
2238
2238
|
Qu.deleteByPrefix(e);
|
|
2239
|
-
},
|
|
2239
|
+
}, cd = () => {
|
|
2240
2240
|
Qu.deleteAll();
|
|
2241
|
-
},
|
|
2241
|
+
}, ld = (e = 0) => {
|
|
2242
2242
|
let t = document.documentElement, n = document.querySelectorAll(".uz-table-m-content");
|
|
2243
2243
|
t && (t.scrollTop = e, setTimeout(() => {
|
|
2244
2244
|
t.scrollTop = e;
|
|
@@ -2246,7 +2246,7 @@ var rd = (e) => {
|
|
|
2246
2246
|
t.scrollTop = e;
|
|
2247
2247
|
});
|
|
2248
2248
|
};
|
|
2249
|
-
function
|
|
2249
|
+
function ud(e) {
|
|
2250
2250
|
if (!e.records) {
|
|
2251
2251
|
let t = e;
|
|
2252
2252
|
return {
|
|
@@ -2290,7 +2290,7 @@ function sd(e) {
|
|
|
2290
2290
|
records: e.records
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
2293
|
-
var
|
|
2293
|
+
var dd = (e, t = "yyyy-MM-dd") => {
|
|
2294
2294
|
if (!e) return "";
|
|
2295
2295
|
typeof e == "string" && (e = e.replace(/年/g, "-").replace(/月/g, "-").replace(/日/g, ""));
|
|
2296
2296
|
let n = new Date(e);
|
|
@@ -2308,9 +2308,9 @@ var cd = (e, t = "yyyy-MM-dd") => {
|
|
|
2308
2308
|
RegExp.$1.length !== 1 && (n = ("00" + r[e]).substr(("" + r[e]).length)), t = t.replace(RegExp.$1, n);
|
|
2309
2309
|
}
|
|
2310
2310
|
return t;
|
|
2311
|
-
},
|
|
2311
|
+
}, fd = (e) => {
|
|
2312
2312
|
document.title = `${e} - ${K.title}`;
|
|
2313
|
-
},
|
|
2313
|
+
}, pd = (e, t = 500) => {
|
|
2314
2314
|
let n = e, r, i = !1, a = function(...e) {
|
|
2315
2315
|
if (i) {
|
|
2316
2316
|
n.apply(a, e), i = !1;
|
|
@@ -2322,10 +2322,10 @@ var cd = (e, t = "yyyy-MM-dd") => {
|
|
|
2322
2322
|
};
|
|
2323
2323
|
return a;
|
|
2324
2324
|
};
|
|
2325
|
-
function
|
|
2325
|
+
function md(e, t) {
|
|
2326
2326
|
e.requestFullscreen ? (t && (e.onfullscreenchange = t), e.requestFullscreen()) : e.mozRequestFullScreen ? (t && (e.onmozfullscreenchange = t), e.mozRequestFullScreen()) : e.webkitRequestFullscreen ? (t && (e.onwebkitfullscreenchange = t), e.webkitRequestFullscreen()) : e.msRequestFullscreen && (t && (e.onmsfullscreenchange = t), e.msRequestFullscreen());
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function hd(e, t = 0) {
|
|
2329
2329
|
let n = [
|
|
2330
2330
|
"",
|
|
2331
2331
|
"k",
|
|
@@ -2335,44 +2335,57 @@ function fd(e, t = 0) {
|
|
|
2335
2335
|
], r = Math.floor(Math.log10(Math.abs(e)) / 3), i = Math.max(0, Math.min(r, n.length - 1)), a = n[i];
|
|
2336
2336
|
return a ? (e / 10 ** (i * 3)).toFixed(t) + a : (e / 10 ** (i * 3)).toFixed(0);
|
|
2337
2337
|
}
|
|
2338
|
+
function gd(e) {
|
|
2339
|
+
if (/^[a-z0-9]$/i.test(e)) return e.toLowerCase();
|
|
2340
|
+
if (!/^[\u4e00-\u9fff]$/.test(e)) return "";
|
|
2341
|
+
for (let t = ed.length - 1; t >= 0; --t) if ($u.compare(e, ed[t]) >= 0) return td[t].toLowerCase();
|
|
2342
|
+
return "";
|
|
2343
|
+
}
|
|
2344
|
+
function _d(e) {
|
|
2345
|
+
return [...String(e)].map(gd).join("");
|
|
2346
|
+
}
|
|
2347
|
+
function vd(e, t) {
|
|
2348
|
+
let n = String(t).trim().toLowerCase();
|
|
2349
|
+
return n === "" ? !0 : e.toLowerCase().includes(n) || _d(e).includes(n);
|
|
2350
|
+
}
|
|
2338
2351
|
//#endregion
|
|
2339
2352
|
//#region components/fetch.ts
|
|
2340
|
-
var X = /* @__PURE__ */ new Map(),
|
|
2341
|
-
function
|
|
2353
|
+
var X = /* @__PURE__ */ new Map(), yd = Object.prototype.hasOwnProperty;
|
|
2354
|
+
function bd(e, t) {
|
|
2342
2355
|
let n = [];
|
|
2343
2356
|
for (let r in e) {
|
|
2344
|
-
if (!
|
|
2357
|
+
if (!yd.call(e, r)) continue;
|
|
2345
2358
|
let i = e[r], a = encodeURIComponent(r), o;
|
|
2346
|
-
o = typeof i == "object" ?
|
|
2359
|
+
o = typeof i == "object" ? bd(i, t ? t + "[" + a + "]" : a) : (t ? t + "[" + a + "]" : a) + "=" + encodeURIComponent(i), n.push(o);
|
|
2347
2360
|
}
|
|
2348
2361
|
return n.join("&");
|
|
2349
2362
|
}
|
|
2350
|
-
var
|
|
2363
|
+
var xd = (e) => {
|
|
2351
2364
|
let t = e["content-disposition"];
|
|
2352
2365
|
if (t) {
|
|
2353
2366
|
let e = t.match(/filename=(?<fileName>.+)/);
|
|
2354
2367
|
return e && e.groups && e.groups.fileName;
|
|
2355
2368
|
}
|
|
2356
2369
|
return "";
|
|
2357
|
-
},
|
|
2370
|
+
}, Sd = Ge.create({
|
|
2358
2371
|
timeout: 3e5,
|
|
2359
2372
|
responseType: "json",
|
|
2360
2373
|
headers: { "Content-Type": "application/json" }
|
|
2361
2374
|
});
|
|
2362
|
-
|
|
2363
|
-
var
|
|
2364
|
-
|
|
2365
|
-
e.cancelToken =
|
|
2375
|
+
Sd.defaults.timeout = 3e5;
|
|
2376
|
+
var Cd = Ge.CancelToken.source();
|
|
2377
|
+
Sd.interceptors.request.use((e) => {
|
|
2378
|
+
e.cancelToken = Cd.token, e.headers.Language = K.lang, e.headers.Platform = K.isMobile ? "mobile" : "pc";
|
|
2366
2379
|
let t = Y("token", !1);
|
|
2367
2380
|
if (e.headers && t && (e.headers.token = t), e.method?.toLocaleUpperCase() === "GET") {
|
|
2368
|
-
let t =
|
|
2381
|
+
let t = bd(e.data);
|
|
2369
2382
|
t && (e.url = `${e.url}?${t}`);
|
|
2370
2383
|
}
|
|
2371
2384
|
return e.method?.toLocaleUpperCase() === "POST" && (e.data = e.data), e;
|
|
2372
|
-
}, (e) => Promise.reject(e)),
|
|
2385
|
+
}, (e) => Promise.reject(e)), Sd.interceptors.response.use((e) => {
|
|
2373
2386
|
let t = e.data;
|
|
2374
|
-
if (t.code === 401 && (
|
|
2375
|
-
let t =
|
|
2387
|
+
if (t.code === 401 && (od("token"), W.replace("/login")), e.config.responseType === "blob" || e.config.responseType === "text" || e.config.responseType === "arraybuffer") {
|
|
2388
|
+
let t = xd(e.headers);
|
|
2376
2389
|
return Promise.resolve({
|
|
2377
2390
|
fileName: decodeURIComponent(t),
|
|
2378
2391
|
data: e.data
|
|
@@ -2382,30 +2395,30 @@ gd.interceptors.request.use((e) => {
|
|
|
2382
2395
|
let e = t.data;
|
|
2383
2396
|
return Promise.resolve(e);
|
|
2384
2397
|
} else {
|
|
2385
|
-
|
|
2398
|
+
id.destroyAll();
|
|
2386
2399
|
let e = t.message;
|
|
2387
|
-
return
|
|
2400
|
+
return id.error({
|
|
2388
2401
|
content: e || G.global.t("Notice.error"),
|
|
2389
2402
|
duration: 3e3
|
|
2390
2403
|
}), Promise.reject(e);
|
|
2391
2404
|
}
|
|
2392
|
-
}, (e) => e ? (
|
|
2405
|
+
}, (e) => e ? (id.destroyAll(), e.code === "ERR_NETWORK" ? (id.error({
|
|
2393
2406
|
content: G.global.t("Notice.network"),
|
|
2394
2407
|
duration: 3e3
|
|
2395
|
-
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (
|
|
2408
|
+
}), Promise.reject("Notice.network")) : e.response ? (e.response.status === 401 && (od("token"), window.location.href = "/login"), id.error({
|
|
2396
2409
|
content: G.global.t("Notice.error"),
|
|
2397
2410
|
duration: 3e3
|
|
2398
2411
|
}), Promise.reject(G.global.t("Notice.error"))) : Promise.reject(e)) : Promise.reject(G.global.t("Notice.error")));
|
|
2399
|
-
var
|
|
2400
|
-
|
|
2401
|
-
},
|
|
2412
|
+
var wd = "/apiserver/", Td = () => {
|
|
2413
|
+
Cd.cancel(), Cd = Ge.CancelToken.source();
|
|
2414
|
+
}, Ed = (e, t, n = "json", r = 3e5) => {
|
|
2402
2415
|
let i = JSON.stringify({
|
|
2403
2416
|
fetchUri: e,
|
|
2404
2417
|
...t
|
|
2405
2418
|
});
|
|
2406
2419
|
if (X.has(i)) return X.get(i);
|
|
2407
|
-
let a =
|
|
2408
|
-
url: `${
|
|
2420
|
+
let a = Sd({
|
|
2421
|
+
url: `${wd}${e}`,
|
|
2409
2422
|
method: "GET",
|
|
2410
2423
|
data: t,
|
|
2411
2424
|
responseType: n,
|
|
@@ -2420,47 +2433,47 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2420
2433
|
...t
|
|
2421
2434
|
});
|
|
2422
2435
|
if (X.has(i)) return X.get(i);
|
|
2423
|
-
let a =
|
|
2424
|
-
url: `${
|
|
2436
|
+
let a = Sd({
|
|
2437
|
+
url: `${wd}${e}`,
|
|
2425
2438
|
method: "POST",
|
|
2426
2439
|
data: t,
|
|
2427
2440
|
responseType: n,
|
|
2428
2441
|
timeout: r
|
|
2429
2442
|
}).then((e) => (X.delete(i), Promise.resolve(e))).catch((e) => (X.delete(i), Promise.reject(e)));
|
|
2430
2443
|
return X.set(i, a), a;
|
|
2431
|
-
},
|
|
2432
|
-
url: `${
|
|
2444
|
+
}, Dd = (e, t = {}, n = "blob", r = 3e5) => Sd({
|
|
2445
|
+
url: `${wd}${e}`,
|
|
2433
2446
|
method: "POST",
|
|
2434
2447
|
data: t,
|
|
2435
2448
|
responseType: n,
|
|
2436
2449
|
timeout: r
|
|
2437
|
-
}),
|
|
2450
|
+
}), Od = (e) => Sd(e), kd = (e, t) => Sd({
|
|
2438
2451
|
headers: { "Content-Type": "multipart/form-data" },
|
|
2439
|
-
url: `${
|
|
2452
|
+
url: `${wd}${e}`,
|
|
2440
2453
|
method: "POST",
|
|
2441
2454
|
data: t
|
|
2442
|
-
}),
|
|
2455
|
+
}), Ad = (e) => Z("dynamic-table/queryById", { id: e }), jd = (e) => Z("dynamic-table/createTime", { id: e }), Md = (e) => Z("table/query", e), Nd = (e) => Z("table/submit", e), Pd = (e) => Z("table/delete", e), Fd = (e, t, n) => Z("calculation/sqlExecute", {
|
|
2443
2456
|
calculationIds: e,
|
|
2444
2457
|
linkId: t,
|
|
2445
2458
|
...n
|
|
2446
|
-
}),
|
|
2459
|
+
}), Id = (e, t) => f(Re, { style: { "max-width": "300px" } }, {
|
|
2447
2460
|
trigger: () => e,
|
|
2448
2461
|
default: () => typeof t == "function" ? t() : t
|
|
2449
|
-
}),
|
|
2462
|
+
}), Ld = (e, t, n, r) => {
|
|
2450
2463
|
try {
|
|
2451
2464
|
Function("rowData", "next", "fetchData", "submitData", "fnNotification", "POST", e)(t, () => {
|
|
2452
2465
|
n && n();
|
|
2453
|
-
}, (e) =>
|
|
2466
|
+
}, (e) => Md({
|
|
2454
2467
|
id: e,
|
|
2455
2468
|
tableId: r
|
|
2456
|
-
}), (e) =>
|
|
2469
|
+
}), (e) => Nd({
|
|
2457
2470
|
tableId: r,
|
|
2458
2471
|
...e
|
|
2459
|
-
}),
|
|
2472
|
+
}), id, Z);
|
|
2460
2473
|
} catch (e) {
|
|
2461
2474
|
q(e);
|
|
2462
2475
|
}
|
|
2463
|
-
},
|
|
2476
|
+
}, Rd = (e, t, n, r, i) => {
|
|
2464
2477
|
let a = {
|
|
2465
2478
|
quaternary: i?.quaternary || !1,
|
|
2466
2479
|
size: i?.size || "small",
|
|
@@ -2473,33 +2486,33 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2473
2486
|
if (!e.confirmText) {
|
|
2474
2487
|
if (e.onClick && typeof e.onClick == "string") {
|
|
2475
2488
|
let i = e.onClick;
|
|
2476
|
-
a.onClick = () =>
|
|
2489
|
+
a.onClick = () => Ld(i, t, n, r);
|
|
2477
2490
|
}
|
|
2478
2491
|
e.onClick && typeof e.onClick == "function" && (a.onClick = e.onClick.bind(void 0, t, n, r));
|
|
2479
2492
|
}
|
|
2480
2493
|
return e.icon && (o.icon = () => f(B, {}, { default: () => f(Lu, { icon: e.icon }, { default: () => null }) })), f(L, a, o);
|
|
2481
|
-
},
|
|
2494
|
+
}, zd = (e, t, n, r, i) => {
|
|
2482
2495
|
let a = { placement: "left" };
|
|
2483
2496
|
if (typeof t.onClick == "string") {
|
|
2484
2497
|
let e = t.onClick;
|
|
2485
|
-
a["on-positive-click"] = () =>
|
|
2498
|
+
a["on-positive-click"] = () => Ld(e, n, r, i);
|
|
2486
2499
|
} else t.onClick && (a["on-positive-click"] = t.onClick.bind(void 0, n, r, i));
|
|
2487
2500
|
return f(Ee, a, {
|
|
2488
2501
|
default: () => f("span", { style: { "max-width": "300px" } }, { default: () => typeof t.confirmText == "function" ? t.confirmText() : t.confirmText }),
|
|
2489
2502
|
trigger: () => e
|
|
2490
2503
|
});
|
|
2491
|
-
},
|
|
2492
|
-
let a =
|
|
2493
|
-
return e.confirmText && (a =
|
|
2494
|
-
},
|
|
2504
|
+
}, Bd = (e, t, n, r, i) => {
|
|
2505
|
+
let a = Rd(e, t, n, r, i);
|
|
2506
|
+
return e.confirmText && (a = zd(a, e, t, n, r)), !e.confirmText && e.tooltipText && (a = Id(a, e.tooltipText)), a;
|
|
2507
|
+
}, Vd = ({ buttons: e, rowData: t = {}, callback: n, tableId: r, hProps: i }) => {
|
|
2495
2508
|
let a = [];
|
|
2496
2509
|
return e.forEach((e) => {
|
|
2497
2510
|
if (e.type === "group") {
|
|
2498
2511
|
let o = [];
|
|
2499
2512
|
e.children && e.children.length > 0 && e.children.forEach((a, s) => {
|
|
2500
|
-
delete a.tooltipText, o.push(
|
|
2513
|
+
delete a.tooltipText, o.push(Bd(a, t, n, r, i)), s < e.children.length - 1 && o.push(f("div", { class: "uz-action-split" }, { default: () => "" }));
|
|
2501
2514
|
}), a.push(f(De, { trigger: "click" }, {
|
|
2502
|
-
trigger: () =>
|
|
2515
|
+
trigger: () => Rd({
|
|
2503
2516
|
icon: e.icon,
|
|
2504
2517
|
color: e.color || "default",
|
|
2505
2518
|
buttonText: typeof e.buttonText == "function" ? e.buttonText() : e.buttonText,
|
|
@@ -2513,11 +2526,11 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2513
2526
|
}));
|
|
2514
2527
|
}
|
|
2515
2528
|
if (e.type === "normal") {
|
|
2516
|
-
let o =
|
|
2529
|
+
let o = Bd(e, t, n, r, i);
|
|
2517
2530
|
a.push(o);
|
|
2518
2531
|
}
|
|
2519
2532
|
}), f("div", { class: "uz-action-flex" }, { default: () => a });
|
|
2520
|
-
},
|
|
2533
|
+
}, Hd = (e) => {
|
|
2521
2534
|
switch (e) {
|
|
2522
2535
|
case "tertiary": return 1;
|
|
2523
2536
|
case "primary": return 2;
|
|
@@ -2527,7 +2540,7 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2527
2540
|
case "error": return 6;
|
|
2528
2541
|
default: return 0;
|
|
2529
2542
|
}
|
|
2530
|
-
},
|
|
2543
|
+
}, Ud = (e) => {
|
|
2531
2544
|
switch (e) {
|
|
2532
2545
|
case 1: return "tertiary";
|
|
2533
2546
|
case 2: return "primary";
|
|
@@ -2537,7 +2550,7 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2537
2550
|
case 6: return "error";
|
|
2538
2551
|
default: return "default";
|
|
2539
2552
|
}
|
|
2540
|
-
},
|
|
2553
|
+
}, Wd = (e) => {
|
|
2541
2554
|
switch (e) {
|
|
2542
2555
|
case "detailInside": return 0;
|
|
2543
2556
|
case "editInside": return 1;
|
|
@@ -2546,7 +2559,7 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2546
2559
|
case "enabledInside": return 4;
|
|
2547
2560
|
default: return e;
|
|
2548
2561
|
}
|
|
2549
|
-
},
|
|
2562
|
+
}, Gd = (e) => {
|
|
2550
2563
|
switch (e) {
|
|
2551
2564
|
case 0: return "detailInside";
|
|
2552
2565
|
case 1: return "editInside";
|
|
@@ -2555,66 +2568,66 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2555
2568
|
case 4: return "enabledInside";
|
|
2556
2569
|
default: return e;
|
|
2557
2570
|
}
|
|
2558
|
-
},
|
|
2571
|
+
}, Kd = (e) => ({
|
|
2559
2572
|
t: 0,
|
|
2560
2573
|
k: e.key,
|
|
2561
2574
|
d: e?.disabled,
|
|
2562
2575
|
l: e?.loading,
|
|
2563
2576
|
i: e?.icon,
|
|
2564
|
-
c:
|
|
2577
|
+
c: Hd(e?.color),
|
|
2565
2578
|
b: e?.buttonText ? encodeURIComponent(e?.buttonText) : "",
|
|
2566
2579
|
o: e?.confirmText ? encodeURIComponent(e?.confirmText) : void 0,
|
|
2567
2580
|
p: e?.tooltipText ? encodeURIComponent(e?.tooltipText) : void 0,
|
|
2568
2581
|
s: e?.optionsType,
|
|
2569
2582
|
u: e?.optionsSource,
|
|
2570
|
-
a:
|
|
2583
|
+
a: Wd(e?.action),
|
|
2571
2584
|
r: +!!e.footer,
|
|
2572
2585
|
g: +!!e.main,
|
|
2573
2586
|
h: +!!e.sub,
|
|
2574
2587
|
w: e?.width,
|
|
2575
2588
|
z: e?.onClick
|
|
2576
|
-
}),
|
|
2589
|
+
}), qd = (e) => ({
|
|
2577
2590
|
type: "normal",
|
|
2578
2591
|
key: e.k,
|
|
2579
2592
|
disabled: e?.d,
|
|
2580
2593
|
loading: e?.l,
|
|
2581
2594
|
icon: e?.i,
|
|
2582
|
-
color:
|
|
2595
|
+
color: Ud(e?.c),
|
|
2583
2596
|
buttonText: e?.b ? decodeURIComponent(e?.b) : "",
|
|
2584
2597
|
confirmText: e?.o ? decodeURIComponent(e.o) : void 0,
|
|
2585
2598
|
tooltipText: e?.p ? decodeURIComponent(e.p) : void 0,
|
|
2586
2599
|
optionsType: e?.s,
|
|
2587
2600
|
optionsSource: e?.u,
|
|
2588
|
-
action:
|
|
2601
|
+
action: Gd(e?.a),
|
|
2589
2602
|
footer: !!e.r,
|
|
2590
2603
|
sub: !!e.h,
|
|
2591
2604
|
main: !!e.g,
|
|
2592
2605
|
width: e?.w,
|
|
2593
2606
|
onClick: e?.z
|
|
2594
|
-
}),
|
|
2607
|
+
}), Jd = (e) => {
|
|
2595
2608
|
let t = [];
|
|
2596
|
-
for (let n of e) n.type === "normal" && t.push(
|
|
2609
|
+
for (let n of e) n.type === "normal" && t.push(Kd(n)), n.type === "group" && t.push({
|
|
2597
2610
|
t: 1,
|
|
2598
2611
|
k: n.key,
|
|
2599
2612
|
i: n?.icon,
|
|
2600
|
-
x:
|
|
2613
|
+
x: Hd(n?.color),
|
|
2601
2614
|
b: n?.buttonText ? encodeURIComponent(n?.buttonText) : "",
|
|
2602
|
-
c: n.children.map((e) =>
|
|
2615
|
+
c: n.children.map((e) => Kd(e))
|
|
2603
2616
|
});
|
|
2604
2617
|
return t;
|
|
2605
|
-
},
|
|
2618
|
+
}, Yd = (e) => {
|
|
2606
2619
|
if (e && e[0] && e[0].type) return e;
|
|
2607
2620
|
let t = [];
|
|
2608
|
-
for (let n of e) n.t === 0 && t.push(
|
|
2621
|
+
for (let n of e) n.t === 0 && t.push(qd(n)), n.t === 1 && t.push({
|
|
2609
2622
|
type: "group",
|
|
2610
2623
|
key: n.k,
|
|
2611
2624
|
icon: n?.i,
|
|
2612
|
-
color:
|
|
2625
|
+
color: Ud(n?.x),
|
|
2613
2626
|
buttonText: n?.b ? decodeURIComponent(n?.b) : "",
|
|
2614
|
-
children: n.c.map((e) =>
|
|
2627
|
+
children: n.c.map((e) => qd(e))
|
|
2615
2628
|
});
|
|
2616
2629
|
return t;
|
|
2617
|
-
},
|
|
2630
|
+
}, Xd = d({
|
|
2618
2631
|
name: "UzBack",
|
|
2619
2632
|
components: {
|
|
2620
2633
|
ArrowNarrowLeft: on,
|
|
@@ -2640,7 +2653,7 @@ var vd = "/apiserver/", yd = () => {
|
|
|
2640
2653
|
});
|
|
2641
2654
|
//#endregion
|
|
2642
2655
|
//#region components/back/index.vue
|
|
2643
|
-
function
|
|
2656
|
+
function Zd(e, t, r, i, o, s) {
|
|
2644
2657
|
let c = D("ArrowNarrowLeft"), u = D("NIcon"), d = D("NButton");
|
|
2645
2658
|
return x(), n(d, {
|
|
2646
2659
|
quaternary: "",
|
|
@@ -2654,7 +2667,7 @@ function Gd(e, t, r, i, o, s) {
|
|
|
2654
2667
|
_: 1
|
|
2655
2668
|
}, 8, ["onClick"]);
|
|
2656
2669
|
}
|
|
2657
|
-
var
|
|
2670
|
+
var Qd = /*#__PURE__*/ U(Xd, [["render", Zd]]), $d = 120, ef = 10, tf = $d / 2, nf = ($d - 6 - ef) / 2, rf = nf * 2 * Math.PI, af = nf * 1.5 * Math.PI, of = (e) => {
|
|
2658
2671
|
if (!e) return "";
|
|
2659
2672
|
let t = e.toLowerCase();
|
|
2660
2673
|
if (t.length > 6 && (t = t.substring(0, 7)), t && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t)) {
|
|
@@ -2668,7 +2681,7 @@ var Kd = /*#__PURE__*/ U(Wd, [["render", Gd]]), qd = 120, Jd = 10, Yd = qd / 2,
|
|
|
2668
2681
|
return e.join(",");
|
|
2669
2682
|
}
|
|
2670
2683
|
return "0,0,0";
|
|
2671
|
-
},
|
|
2684
|
+
}, sf = d({
|
|
2672
2685
|
name: "UzCircle",
|
|
2673
2686
|
props: {
|
|
2674
2687
|
circle: {
|
|
@@ -2694,31 +2707,31 @@ var Kd = /*#__PURE__*/ U(Wd, [["render", Gd]]), qd = 120, Jd = 10, Yd = qd / 2,
|
|
|
2694
2707
|
let n = A(), r = w(), i = w(), a = w();
|
|
2695
2708
|
return {
|
|
2696
2709
|
uniqueId: n,
|
|
2697
|
-
backgroundBg: t(() => `rgba(${
|
|
2710
|
+
backgroundBg: t(() => `rgba(${of(e.color)},0.1)`),
|
|
2698
2711
|
strokeDasharray: r,
|
|
2699
2712
|
centerTransform: i,
|
|
2700
2713
|
centerTransformUnit: a,
|
|
2701
|
-
colorA: t(() => `rgba(${
|
|
2714
|
+
colorA: t(() => `rgba(${of(e.color).split(",").map((e) => {
|
|
2702
2715
|
let t = Number(e) - 50;
|
|
2703
2716
|
return t < 0 && (t = 0), t;
|
|
2704
2717
|
})},1)`),
|
|
2705
|
-
colorB: t(() => `rgba(${
|
|
2718
|
+
colorB: t(() => `rgba(${of(e.color)},1)`),
|
|
2706
2719
|
calculateCircle: () => {
|
|
2707
2720
|
let t = 314 - Number(e.circle) * Math.PI;
|
|
2708
2721
|
return t <= 0 && (t = 0), `stroke-dashoffset: ${t}`;
|
|
2709
2722
|
},
|
|
2710
2723
|
calculateSemicircle: (t) => {
|
|
2711
|
-
r.value = `${
|
|
2724
|
+
r.value = `${af} ${rf}`, i.value = `translate(${tf}, 69)`, a.value = `translate(${tf}, 84)`;
|
|
2712
2725
|
let n = t || Number(e.circle);
|
|
2713
|
-
return n > 100 && (n = 100), n <= 0 && (n = 1e-4),
|
|
2726
|
+
return n > 100 && (n = 100), n <= 0 && (n = 1e-4), af * (1 - n / 100);
|
|
2714
2727
|
},
|
|
2715
2728
|
calculatePoint: () => `rotate(${-90 + Number(e.circle) * 3.6} 100 80) translate(50, 0)`
|
|
2716
2729
|
};
|
|
2717
2730
|
}
|
|
2718
|
-
}),
|
|
2731
|
+
}), cf = { class: "uz-circle" }, lf = {
|
|
2719
2732
|
key: 0,
|
|
2720
2733
|
viewBox: "40 20 120 120"
|
|
2721
|
-
},
|
|
2734
|
+
}, uf = ["id"], df = ["stop-color"], ff = ["stop-color"], pf = ["stroke"], mf = ["stroke"], hf = ["transform"], gf = {
|
|
2722
2735
|
dx: "100",
|
|
2723
2736
|
dy: "90",
|
|
2724
2737
|
"text-anchor": "middle",
|
|
@@ -2727,7 +2740,7 @@ var Kd = /*#__PURE__*/ U(Wd, [["render", Gd]]), qd = 120, Jd = 10, Yd = qd / 2,
|
|
|
2727
2740
|
"font-size": "2rem",
|
|
2728
2741
|
"font-weight": "400"
|
|
2729
2742
|
}
|
|
2730
|
-
},
|
|
2743
|
+
}, _f = {
|
|
2731
2744
|
dx: "100",
|
|
2732
2745
|
dy: "105",
|
|
2733
2746
|
"text-anchor": "middle",
|
|
@@ -2736,20 +2749,20 @@ var Kd = /*#__PURE__*/ U(Wd, [["render", Gd]]), qd = 120, Jd = 10, Yd = qd / 2,
|
|
|
2736
2749
|
"font-size": "0.6rem",
|
|
2737
2750
|
"font-weight": "400"
|
|
2738
2751
|
}
|
|
2739
|
-
},
|
|
2752
|
+
}, vf = {
|
|
2740
2753
|
key: 1,
|
|
2741
2754
|
viewBox: "0 0 120 120"
|
|
2742
|
-
},
|
|
2755
|
+
}, yf = ["id"], bf = ["stop-color"], xf = ["stop-color"], Sf = [
|
|
2743
2756
|
"stroke-dasharray",
|
|
2744
2757
|
"stroke-dashoffset",
|
|
2745
2758
|
"transform"
|
|
2746
|
-
],
|
|
2759
|
+
], Cf = ["stroke"], wf = [
|
|
2747
2760
|
"stroke-dasharray",
|
|
2748
2761
|
"stroke-dashoffset",
|
|
2749
2762
|
"transform"
|
|
2750
|
-
],
|
|
2751
|
-
function
|
|
2752
|
-
return x(), i("div",
|
|
2763
|
+
], Tf = ["stroke"], Ef = ["transform"], Df = ["transform"];
|
|
2764
|
+
function Of(e, t, n, r, o, s) {
|
|
2765
|
+
return x(), i("div", cf, [e.mode === 0 ? (x(), i("svg", lf, [
|
|
2753
2766
|
a("defs", null, [a("linearGradient", {
|
|
2754
2767
|
id: `uz-progress-grad-${e.uniqueId}`,
|
|
2755
2768
|
x1: "1",
|
|
@@ -2759,10 +2772,10 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2759
2772
|
}, [a("stop", {
|
|
2760
2773
|
offset: "0%",
|
|
2761
2774
|
"stop-color": e.colorA
|
|
2762
|
-
}, null, 8,
|
|
2775
|
+
}, null, 8, df), a("stop", {
|
|
2763
2776
|
offset: "50%",
|
|
2764
2777
|
"stop-color": e.colorB
|
|
2765
|
-
}, null, 8,
|
|
2778
|
+
}, null, 8, ff)], 8, uf)]),
|
|
2766
2779
|
a("circle", {
|
|
2767
2780
|
transform: "rotate(-90 100 80)",
|
|
2768
2781
|
cx: "100",
|
|
@@ -2772,7 +2785,7 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2772
2785
|
"stroke-width": "10",
|
|
2773
2786
|
"stroke-dashoffset": "0",
|
|
2774
2787
|
stroke: e.backgroundBg
|
|
2775
|
-
}, null, 8,
|
|
2788
|
+
}, null, 8, pf),
|
|
2776
2789
|
a("circle", {
|
|
2777
2790
|
class: "uz-circle-round",
|
|
2778
2791
|
filter: "url(#uz-blurs)",
|
|
@@ -2785,7 +2798,7 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2785
2798
|
"stroke-width": "10",
|
|
2786
2799
|
style: _(e.calculateCircle()),
|
|
2787
2800
|
stroke: `url(#uz-progress-grad-${e.uniqueId})`
|
|
2788
|
-
}, null, 12,
|
|
2801
|
+
}, null, 12, mf),
|
|
2789
2802
|
a("circle", {
|
|
2790
2803
|
class: "uz-circle-round",
|
|
2791
2804
|
filter: "url(#uz-blurs)",
|
|
@@ -2795,10 +2808,10 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2795
2808
|
"stroke-width": "0",
|
|
2796
2809
|
transform: e.calculatePoint(),
|
|
2797
2810
|
fill: "#fff"
|
|
2798
|
-
}, null, 8,
|
|
2799
|
-
a("text",
|
|
2800
|
-
a("text",
|
|
2801
|
-
])) : (x(), i("svg",
|
|
2811
|
+
}, null, 8, hf),
|
|
2812
|
+
a("text", gf, k(e.circle), 1),
|
|
2813
|
+
a("text", _f, k(e.circleUnit), 1)
|
|
2814
|
+
])) : (x(), i("svg", vf, [
|
|
2802
2815
|
a("defs", null, [a("linearGradient", {
|
|
2803
2816
|
id: `uz-progress-grad-1-${e.uniqueId}`,
|
|
2804
2817
|
x1: "1",
|
|
@@ -2808,10 +2821,10 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2808
2821
|
}, [a("stop", {
|
|
2809
2822
|
offset: "0%",
|
|
2810
2823
|
"stop-color": e.colorA
|
|
2811
|
-
}, null, 8,
|
|
2824
|
+
}, null, 8, bf), a("stop", {
|
|
2812
2825
|
offset: "50%",
|
|
2813
2826
|
"stop-color": e.colorB
|
|
2814
|
-
}, null, 8,
|
|
2827
|
+
}, null, 8, xf)], 8, yf)]),
|
|
2815
2828
|
a("g", {
|
|
2816
2829
|
fill: "none",
|
|
2817
2830
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -2825,7 +2838,7 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2825
2838
|
stroke: `url(#uz-progress-grad-1-${e.uniqueId})`,
|
|
2826
2839
|
transform: "rotate(-225)",
|
|
2827
2840
|
class: "uz-semicircle-round"
|
|
2828
|
-
}, null, 8,
|
|
2841
|
+
}, null, 8, Cf)], 8, Sf),
|
|
2829
2842
|
a("g", {
|
|
2830
2843
|
fill: "none",
|
|
2831
2844
|
"stroke-dasharray": e.strokeDasharray,
|
|
@@ -2837,7 +2850,7 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2837
2850
|
r: "52",
|
|
2838
2851
|
stroke: e.backgroundBg,
|
|
2839
2852
|
transform: "rotate(-225)"
|
|
2840
|
-
}, null, 8,
|
|
2853
|
+
}, null, 8, Tf)], 8, wf),
|
|
2841
2854
|
a("text", {
|
|
2842
2855
|
fill: "var(--circle-color)",
|
|
2843
2856
|
"text-anchor": "middle",
|
|
@@ -2846,7 +2859,7 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2846
2859
|
"font-size": "2rem",
|
|
2847
2860
|
"font-weight": "400"
|
|
2848
2861
|
}
|
|
2849
|
-
}, k(e.circle), 9,
|
|
2862
|
+
}, k(e.circle), 9, Ef),
|
|
2850
2863
|
a("text", {
|
|
2851
2864
|
cy: "90",
|
|
2852
2865
|
fill: "var(--circle-unit-color)",
|
|
@@ -2856,10 +2869,10 @@ function Sf(e, t, n, r, o, s) {
|
|
|
2856
2869
|
"font-size": "0.6rem",
|
|
2857
2870
|
"font-weight": "400"
|
|
2858
2871
|
}
|
|
2859
|
-
}, k(e.circleUnit), 9,
|
|
2872
|
+
}, k(e.circleUnit), 9, Df)
|
|
2860
2873
|
]))]);
|
|
2861
2874
|
}
|
|
2862
|
-
var
|
|
2875
|
+
var kf = /*#__PURE__*/ U(sf, [["render", Of]]), Af = d({
|
|
2863
2876
|
name: "UzFormItem",
|
|
2864
2877
|
components: {
|
|
2865
2878
|
NIcon: B,
|
|
@@ -2930,10 +2943,6 @@ var Cf = /*#__PURE__*/ U(ef, [["render", Sf]]), wf = d({
|
|
|
2930
2943
|
else t.form.updateValue(r, a, i, Z);
|
|
2931
2944
|
}
|
|
2932
2945
|
},
|
|
2933
|
-
selectFallback: (e) => e ? {
|
|
2934
|
-
label: e,
|
|
2935
|
-
value: e
|
|
2936
|
-
} : !1,
|
|
2937
2946
|
showPlaceholder: (e) => typeof e.params.placeholder == "function" ? e.params.placeholder() : e.params.placeholder ? e.params.placeholder : typeof e.label == "function" ? e.label() : e.label,
|
|
2938
2947
|
checkDisabled: () => {
|
|
2939
2948
|
if (e.disabled) return !0;
|
|
@@ -2990,11 +2999,12 @@ var Cf = /*#__PURE__*/ U(ef, [["render", Sf]]), wf = d({
|
|
|
2990
2999
|
},
|
|
2991
3000
|
checkNumberMax: (t) => {
|
|
2992
3001
|
if (e.status !== 2) return t.params.maxKey ? Number(e.formValue[t.params.maxKey]) : t.params.max;
|
|
2993
|
-
}
|
|
3002
|
+
},
|
|
3003
|
+
selectFilter: (e, t) => vd(t.label, e)
|
|
2994
3004
|
};
|
|
2995
3005
|
}
|
|
2996
|
-
}),
|
|
2997
|
-
function
|
|
3006
|
+
}), jf = { class: "uz-flex uz-flex-wrap uz-gap-2" };
|
|
3007
|
+
function Mf(t, r, s, u, d, f) {
|
|
2998
3008
|
let p = D("NInput"), m = D("NDropdown"), h = D("NInputNumber"), _ = D("NDatePicker"), v = D("NSelect"), y = D("NCascader"), b = D("NColorPicker"), S = D("NCheckbox"), C = D("NCheckboxGroup"), w = D("NTimePicker"), E = D("UzFormItemTimesPicker"), ee = D("NSwitch"), O = D("UzFormItemUpload");
|
|
2999
3009
|
return t.item.input === "input" ? (x(), n(p, {
|
|
3000
3010
|
key: 0,
|
|
@@ -3200,10 +3210,11 @@ function Ef(t, r, s, u, d, f) {
|
|
|
3200
3210
|
disabled: t.checkDisabled(),
|
|
3201
3211
|
show: t.checkReadonlyShow(),
|
|
3202
3212
|
clearable: t.checkClearable(),
|
|
3203
|
-
filterable: t.item.params.filterable,
|
|
3204
3213
|
tag: t.item.params.tag,
|
|
3205
3214
|
multiple: t.item.params.multiple,
|
|
3206
|
-
"fallback-option":
|
|
3215
|
+
"fallback-option": !1,
|
|
3216
|
+
filterable: t.item.params.filterable,
|
|
3217
|
+
filter: t.item.params.filterable ? t.selectFilter : void 0,
|
|
3207
3218
|
maxTagCount: "responsive",
|
|
3208
3219
|
"render-label": t.item.params.renderLabel,
|
|
3209
3220
|
"render-tag": t.item.params.renderTag,
|
|
@@ -3226,10 +3237,10 @@ function Ef(t, r, s, u, d, f) {
|
|
|
3226
3237
|
"disabled",
|
|
3227
3238
|
"show",
|
|
3228
3239
|
"clearable",
|
|
3229
|
-
"filterable",
|
|
3230
3240
|
"tag",
|
|
3231
3241
|
"multiple",
|
|
3232
|
-
"
|
|
3242
|
+
"filterable",
|
|
3243
|
+
"filter",
|
|
3233
3244
|
"render-label",
|
|
3234
3245
|
"render-tag",
|
|
3235
3246
|
"loading",
|
|
@@ -3298,7 +3309,7 @@ function Ef(t, r, s, u, d, f) {
|
|
|
3298
3309
|
value: t.formValue[t.item.key],
|
|
3299
3310
|
disabled: t.checkDisabled()
|
|
3300
3311
|
}, {
|
|
3301
|
-
default: P(() => [a("div",
|
|
3312
|
+
default: P(() => [a("div", jf, [(x(!0), i(e, null, T(t.item.params.options, (e) => (x(), n(S, {
|
|
3302
3313
|
key: e.value,
|
|
3303
3314
|
label: e.label,
|
|
3304
3315
|
value: e.value
|
|
@@ -3367,7 +3378,7 @@ function Ef(t, r, s, u, d, f) {
|
|
|
3367
3378
|
"status"
|
|
3368
3379
|
])) : (x(), i(e, { key: 14 }, [], 64));
|
|
3369
3380
|
}
|
|
3370
|
-
var
|
|
3381
|
+
var Nf = /*#__PURE__*/ U(Af, [["render", Mf]]), Pf = d({
|
|
3371
3382
|
name: "UzForm",
|
|
3372
3383
|
components: {
|
|
3373
3384
|
NForm: me,
|
|
@@ -3375,7 +3386,7 @@ var Df = /*#__PURE__*/ U(wf, [["render", Ef]]), Of = d({
|
|
|
3375
3386
|
NDivider: ce,
|
|
3376
3387
|
NButton: L,
|
|
3377
3388
|
NIcon: B,
|
|
3378
|
-
UzFormItem:
|
|
3389
|
+
UzFormItem: Nf,
|
|
3379
3390
|
Plus: dc
|
|
3380
3391
|
},
|
|
3381
3392
|
props: {
|
|
@@ -3453,12 +3464,12 @@ var Df = /*#__PURE__*/ U(wf, [["render", Ef]]), Of = d({
|
|
|
3453
3464
|
}, m = (e, t) => {
|
|
3454
3465
|
switch (e) {
|
|
3455
3466
|
case "datetime":
|
|
3456
|
-
case "datetimerange": return
|
|
3467
|
+
case "datetimerange": return dd(t, "yyyy-MM-dd hh:mm:ss");
|
|
3457
3468
|
case "month":
|
|
3458
|
-
case "monthrange": return
|
|
3469
|
+
case "monthrange": return dd(t, "yyyy-MM");
|
|
3459
3470
|
case "year":
|
|
3460
|
-
case "yearrange": return
|
|
3461
|
-
default: return
|
|
3471
|
+
case "yearrange": return dd(t, "yyyy");
|
|
3472
|
+
default: return dd(t);
|
|
3462
3473
|
}
|
|
3463
3474
|
}, h = (e, t = !1) => {
|
|
3464
3475
|
let n = tt(e).startOf("day").diff(tt().startOf("day"), "day");
|
|
@@ -3581,8 +3592,8 @@ var Df = /*#__PURE__*/ U(wf, [["render", Ef]]), Of = d({
|
|
|
3581
3592
|
}
|
|
3582
3593
|
};
|
|
3583
3594
|
}
|
|
3584
|
-
}),
|
|
3585
|
-
function
|
|
3595
|
+
}), Ff = ["onClick"];
|
|
3596
|
+
function If(t, o, s, u, d, f) {
|
|
3586
3597
|
let p = D("Plus"), m = D("NIcon"), h = D("UzTableChild"), v = D("UzTableQuestChild"), y = D("NDivider"), b = D("UzFormItem"), S = D("NFormItem"), C = D("NForm"), w = D("UzTableDrawer"), E = ee("media");
|
|
3587
3598
|
return x(), i(e, null, [l(C, {
|
|
3588
3599
|
ref: "formRef",
|
|
@@ -3610,7 +3621,7 @@ function Af(t, o, s, u, d, f) {
|
|
|
3610
3621
|
}, [l(m, null, {
|
|
3611
3622
|
default: P(() => [l(p)]),
|
|
3612
3623
|
_: 1
|
|
3613
|
-
}), o[0] ||= c(" 新增 ", -1)], 8,
|
|
3624
|
+
}), o[0] ||= c(" 新增 ", -1)], 8, Ff)) : r("", !0),
|
|
3614
3625
|
s.form.showDays ? (x(), i("span", {
|
|
3615
3626
|
key: 1,
|
|
3616
3627
|
class: g(["uz-form-item-add", t.diffDay(t.formValue[s.key], !0)])
|
|
@@ -3671,7 +3682,7 @@ function Af(t, o, s, u, d, f) {
|
|
|
3671
3682
|
onOnSubmit: t.refreshOption
|
|
3672
3683
|
}, null, 8, ["onOnSubmit"])], 64);
|
|
3673
3684
|
}
|
|
3674
|
-
var
|
|
3685
|
+
var Lf = /*#__PURE__*/ U(Pf, [["render", If]]), Rf = d({
|
|
3675
3686
|
name: "UzDraggableForm",
|
|
3676
3687
|
components: {
|
|
3677
3688
|
NForm: me,
|
|
@@ -3679,7 +3690,7 @@ var jf = /*#__PURE__*/ U(Of, [["render", Af]]), Mf = d({
|
|
|
3679
3690
|
NButton: L,
|
|
3680
3691
|
NIcon: B,
|
|
3681
3692
|
NDivider: ce,
|
|
3682
|
-
UzFormItem:
|
|
3693
|
+
UzFormItem: Nf,
|
|
3683
3694
|
Trash: xl,
|
|
3684
3695
|
Plus: dc,
|
|
3685
3696
|
VueDraggable: nt
|
|
@@ -3775,14 +3786,14 @@ var jf = /*#__PURE__*/ U(Of, [["render", Af]]), Mf = d({
|
|
|
3775
3786
|
}
|
|
3776
3787
|
};
|
|
3777
3788
|
}
|
|
3778
|
-
}),
|
|
3789
|
+
}), zf = {
|
|
3779
3790
|
key: 0,
|
|
3780
3791
|
class: "uz-flex uz-items-center uz-gap-1 uz-form-item-add"
|
|
3781
|
-
},
|
|
3792
|
+
}, Bf = {
|
|
3782
3793
|
key: 1,
|
|
3783
3794
|
class: "uz-form-item-add"
|
|
3784
3795
|
};
|
|
3785
|
-
function
|
|
3796
|
+
function Vf(t, o, s, u, d, f) {
|
|
3786
3797
|
let p = D("Plus"), m = D("NIcon"), h = D("Trash"), v = D("NButton"), y = D("UzTableChild"), b = D("UzFormItem"), S = D("NFormItem"), C = D("VueDraggable"), w = D("NDivider"), E = D("NForm");
|
|
3787
3798
|
return x(), n(E, {
|
|
3788
3799
|
ref: "formRef",
|
|
@@ -3819,11 +3830,11 @@ function Ff(t, o, s, u, d, f) {
|
|
|
3819
3830
|
}, {
|
|
3820
3831
|
label: P(() => [
|
|
3821
3832
|
a("div", null, k(typeof s.label == "function" ? s.label() : s.label), 1),
|
|
3822
|
-
s.source && s.form.createButton ? (x(), i("a",
|
|
3833
|
+
s.source && s.form.createButton ? (x(), i("a", zf, [l(m, null, {
|
|
3823
3834
|
default: P(() => [l(p)]),
|
|
3824
3835
|
_: 1
|
|
3825
3836
|
}), o[1] ||= c(" 新增 ", -1)])) : r("", !0),
|
|
3826
|
-
s.form.showDays ? (x(), i("span",
|
|
3837
|
+
s.form.showDays ? (x(), i("span", Bf, " showDays ")) : r("", !0)
|
|
3827
3838
|
]),
|
|
3828
3839
|
default: P(() => [t.formItemIndex[0] === u && t.formItemIndex[1] === -1 ? (x(), n(v, {
|
|
3829
3840
|
key: 0,
|
|
@@ -3944,7 +3955,7 @@ function Ff(t, o, s, u, d, f) {
|
|
|
3944
3955
|
"onClick"
|
|
3945
3956
|
]);
|
|
3946
3957
|
}
|
|
3947
|
-
var
|
|
3958
|
+
var Hf = /*#__PURE__*/ U(Rf, [["render", Vf]]), Uf = d({
|
|
3948
3959
|
name: "UzFormItemUpload",
|
|
3949
3960
|
components: {
|
|
3950
3961
|
NUpload: ze,
|
|
@@ -3994,7 +4005,7 @@ var If = /*#__PURE__*/ U(Mf, [["render", Ff]]), Lf = d({
|
|
|
3994
4005
|
}), o();
|
|
3995
4006
|
else {
|
|
3996
4007
|
let s = new FormData();
|
|
3997
|
-
s.append("file", e.file.file), s.append("name", e.file.name),
|
|
4008
|
+
s.append("file", e.file.file), s.append("name", e.file.name), kd("file/cos/upload", s).then((o) => {
|
|
3998
4009
|
i.value.push({
|
|
3999
4010
|
id: e.file.id,
|
|
4000
4011
|
name: e.file.name,
|
|
@@ -4060,8 +4071,8 @@ var If = /*#__PURE__*/ U(Mf, [["render", Ff]]), Lf = d({
|
|
|
4060
4071
|
}
|
|
4061
4072
|
};
|
|
4062
4073
|
}
|
|
4063
|
-
}),
|
|
4064
|
-
function
|
|
4074
|
+
}), Wf = { class: "uz-form-upload-item-inner" }, Gf = ["title"], Kf = { key: 0 };
|
|
4075
|
+
function qf(t, o, s, u, d, f) {
|
|
4065
4076
|
let p = D("CloudUpload"), m = D("NIcon"), h = D("NUploadDragger"), g = D("NUpload"), _ = D("PhotoOff"), v = D("NImage"), y = D("FileText"), b = D("Trash"), S = D("NButton"), C = D("NPopconfirm"), w = D("CloudDownload"), E = D("NSpin");
|
|
4066
4077
|
return x(), n(E, {
|
|
4067
4078
|
"content-class": "uz-form-upload uz-flex uz-flex-wrap uz-gap-2 uz-items-center",
|
|
@@ -4115,10 +4126,10 @@ function Vf(t, o, s, u, d, f) {
|
|
|
4115
4126
|
}, {
|
|
4116
4127
|
default: P(() => [l(y)]),
|
|
4117
4128
|
_: 1
|
|
4118
|
-
}, 8, ["onClick"])), a("div",
|
|
4129
|
+
}, 8, ["onClick"])), a("div", Wf, [a("div", {
|
|
4119
4130
|
class: "uz-form-upload-title uz-truncate",
|
|
4120
4131
|
title: e.name
|
|
4121
|
-
}, k(e.name), 9,
|
|
4132
|
+
}, k(e.name), 9, Gf), t.status === 2 ? r("", !0) : (x(), i("div", Kf, [l(C, { onPositiveClick: (e) => t.doDelete(s) }, {
|
|
4122
4133
|
trigger: P(() => [l(S, {
|
|
4123
4134
|
size: "small",
|
|
4124
4135
|
tertiary: ""
|
|
@@ -4147,7 +4158,7 @@ function Vf(t, o, s, u, d, f) {
|
|
|
4147
4158
|
_: 1
|
|
4148
4159
|
}, 8, ["show"]);
|
|
4149
4160
|
}
|
|
4150
|
-
var
|
|
4161
|
+
var Jf = /*#__PURE__*/ U(Uf, [["render", qf], ["__scopeId", "data-v-d4bd872d"]]), Yf = d({
|
|
4151
4162
|
name: "UzFormItemImage",
|
|
4152
4163
|
components: {
|
|
4153
4164
|
NImageGroup: ye,
|
|
@@ -4193,11 +4204,11 @@ var Hf = /*#__PURE__*/ U(Lf, [["render", Vf], ["__scopeId", "data-v-d4bd872d"]])
|
|
|
4193
4204
|
}
|
|
4194
4205
|
};
|
|
4195
4206
|
}
|
|
4196
|
-
}),
|
|
4197
|
-
function
|
|
4207
|
+
}), Xf = { class: "uz-flex uz-gap-2 uz-max-w-sm uz-overflow-y-hidden uz-overflow-x-auto uz-items-center" };
|
|
4208
|
+
function Zf(t, r, o, s, u, d) {
|
|
4198
4209
|
let f = D("PhotoOff"), p = D("NIcon"), m = D("NImage"), h = D("FileText"), g = D("NPopover"), _ = D("NImageGroup");
|
|
4199
4210
|
return x(), n(_, null, {
|
|
4200
|
-
default: P(() => [a("div",
|
|
4211
|
+
default: P(() => [a("div", Xf, [(x(!0), i(e, null, T(t.imgs, (r) => (x(), i(e, null, [t.isAssetTypeAnImage(r) ? (x(), n(m, {
|
|
4201
4212
|
key: 0,
|
|
4202
4213
|
width: "40",
|
|
4203
4214
|
src: r
|
|
@@ -4229,7 +4240,7 @@ function Gf(t, r, o, s, u, d) {
|
|
|
4229
4240
|
_: 1
|
|
4230
4241
|
});
|
|
4231
4242
|
}
|
|
4232
|
-
var
|
|
4243
|
+
var Qf = /*#__PURE__*/ U(Yf, [["render", Zf]]), $f = d({
|
|
4233
4244
|
name: "UzFormItemTimesPicker",
|
|
4234
4245
|
components: { NSelect: Ae },
|
|
4235
4246
|
props: {
|
|
@@ -4279,10 +4290,10 @@ var Kf = /*#__PURE__*/ U(Uf, [["render", Gf]]), qf = d({
|
|
|
4279
4290
|
}
|
|
4280
4291
|
};
|
|
4281
4292
|
}
|
|
4282
|
-
}),
|
|
4283
|
-
function
|
|
4293
|
+
}), ep = { class: "times-picker" };
|
|
4294
|
+
function tp(e, t, n, r, a, o) {
|
|
4284
4295
|
let s = D("NSelect");
|
|
4285
|
-
return x(), i("div",
|
|
4296
|
+
return x(), i("div", ep, [
|
|
4286
4297
|
l(s, {
|
|
4287
4298
|
value: e.h,
|
|
4288
4299
|
options: e.times,
|
|
@@ -4330,7 +4341,7 @@ function Yf(e, t, n, r, a, o) {
|
|
|
4330
4341
|
])
|
|
4331
4342
|
]);
|
|
4332
4343
|
}
|
|
4333
|
-
var
|
|
4344
|
+
var np = /*#__PURE__*/ U($f, [["render", tp], ["__scopeId", "data-v-c90165b1"]]), rp = d({
|
|
4334
4345
|
name: "UzCamera",
|
|
4335
4346
|
components: {
|
|
4336
4347
|
NButton: L,
|
|
@@ -4422,11 +4433,11 @@ var Xf = /*#__PURE__*/ U(qf, [["render", Yf], ["__scopeId", "data-v-c90165b1"]])
|
|
|
4422
4433
|
closeAll: d
|
|
4423
4434
|
};
|
|
4424
4435
|
}
|
|
4425
|
-
}),
|
|
4436
|
+
}), ip = ["width", "height"], ap = ["width", "height"], op = { class: "uz-scan-video" }, sp = {
|
|
4426
4437
|
ref: "videoRef",
|
|
4427
4438
|
playsInline: ""
|
|
4428
4439
|
};
|
|
4429
|
-
function
|
|
4440
|
+
function cp(t, o, s, l, u, d) {
|
|
4430
4441
|
let f = D("NButton"), p = D("NModal");
|
|
4431
4442
|
return x(), i(e, null, [
|
|
4432
4443
|
t.mode === "button" ? (x(), n(f, {
|
|
@@ -4458,7 +4469,7 @@ function np(t, o, s, l, u, d) {
|
|
|
4458
4469
|
id: "uz-scan-canvas",
|
|
4459
4470
|
width: t.width,
|
|
4460
4471
|
height: t.height
|
|
4461
|
-
}, null, 8,
|
|
4472
|
+
}, null, 8, ip)], 4)]),
|
|
4462
4473
|
_: 1
|
|
4463
4474
|
}, 8, [
|
|
4464
4475
|
"show",
|
|
@@ -4476,11 +4487,11 @@ function np(t, o, s, l, u, d) {
|
|
|
4476
4487
|
id: "uz-scan-canvas",
|
|
4477
4488
|
width: t.width,
|
|
4478
4489
|
height: t.height
|
|
4479
|
-
}, null, 8,
|
|
4480
|
-
a("div",
|
|
4490
|
+
}, null, 8, ap)], 4)) : r("", !0),
|
|
4491
|
+
a("div", op, [a("video", sp, null, 512)])
|
|
4481
4492
|
], 64);
|
|
4482
4493
|
}
|
|
4483
|
-
var
|
|
4494
|
+
var lp = /*#__PURE__*/ U(rp, [["render", cp]]), up = d({
|
|
4484
4495
|
name: "UzSearchBar",
|
|
4485
4496
|
components: {
|
|
4486
4497
|
NIcon: B,
|
|
@@ -4491,7 +4502,7 @@ var rp = /*#__PURE__*/ U(Zf, [["render", np]]), ip = d({
|
|
|
4491
4502
|
NInputGroup: xe,
|
|
4492
4503
|
NInputGroupLabel: Se,
|
|
4493
4504
|
NPopover: De,
|
|
4494
|
-
UzFormItem:
|
|
4505
|
+
UzFormItem: Nf,
|
|
4495
4506
|
CaretDown: Ir,
|
|
4496
4507
|
Refresh: jc,
|
|
4497
4508
|
Search: Zc,
|
|
@@ -4644,19 +4655,19 @@ var rp = /*#__PURE__*/ U(Zf, [["render", np]]), ip = d({
|
|
|
4644
4655
|
tabButtonType: b
|
|
4645
4656
|
};
|
|
4646
4657
|
}
|
|
4647
|
-
}),
|
|
4658
|
+
}), dp = {
|
|
4648
4659
|
key: 0,
|
|
4649
4660
|
class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
|
|
4650
|
-
},
|
|
4661
|
+
}, fp = { class: "uz-flex-1" }, pp = {
|
|
4651
4662
|
key: 1,
|
|
4652
4663
|
class: "uz-flex uz-gap-2 uz-flex-1"
|
|
4653
4664
|
};
|
|
4654
|
-
function
|
|
4665
|
+
function mp(t, a, o, s, u, d) {
|
|
4655
4666
|
let f = D("NButton"), p = D("NButtonGroup"), m = D("NGridItem"), h = D("NInputGroupLabel"), _ = D("NPopover"), v = D("UzFormItem"), y = D("NInputGroup"), b = D("NGrid"), S = D("CaretDown"), C = D("NIcon"), w = D("Search"), O = D("Refresh"), A = ee("media");
|
|
4656
4667
|
return x(), i("div", {
|
|
4657
4668
|
class: "uz-search-bar uz-flex uz-justify-between uz-gap-2 uz-w-full",
|
|
4658
4669
|
onKeyup: a[1] ||= I((e) => t.doSearch(!1), ["enter"])
|
|
4659
|
-
}, [t.enableHeader ? (x(), i("div",
|
|
4670
|
+
}, [t.enableHeader ? (x(), i("div", dp, [E(t.$slots, "header"), F((x(), i("div", fp, [l(b, {
|
|
4660
4671
|
"x-gap": "8",
|
|
4661
4672
|
"y-gap": "8",
|
|
4662
4673
|
cols: t.cols,
|
|
@@ -4713,7 +4724,7 @@ function cp(t, a, o, s, u, d) {
|
|
|
4713
4724
|
}, 1032, ["span"]))), 128))
|
|
4714
4725
|
]),
|
|
4715
4726
|
_: 1
|
|
4716
|
-
}, 8, ["cols", "collapsed"])])), [[A]])])) : r("", !0), t.enableHeader ? (x(), i("div",
|
|
4727
|
+
}, 8, ["cols", "collapsed"])])), [[A]])])) : r("", !0), t.enableHeader ? (x(), i("div", pp, [
|
|
4717
4728
|
t.more ? (x(), n(f, {
|
|
4718
4729
|
key: 0,
|
|
4719
4730
|
quaternary: "",
|
|
@@ -4757,7 +4768,7 @@ function cp(t, a, o, s, u, d) {
|
|
|
4757
4768
|
E(t.$slots, "action")
|
|
4758
4769
|
])) : r("", !0)], 32);
|
|
4759
4770
|
}
|
|
4760
|
-
var
|
|
4771
|
+
var hp = /*#__PURE__*/ U(up, [["render", mp]]), gp = d({
|
|
4761
4772
|
name: "UzSearchMobileBar",
|
|
4762
4773
|
components: {
|
|
4763
4774
|
NIcon: B,
|
|
@@ -4770,7 +4781,7 @@ var lp = /*#__PURE__*/ U(ip, [["render", cp]]), up = d({
|
|
|
4770
4781
|
NInputGroupLabel: Se,
|
|
4771
4782
|
Refresh: jc,
|
|
4772
4783
|
Search: Zc,
|
|
4773
|
-
UzFormItem:
|
|
4784
|
+
UzFormItem: Nf
|
|
4774
4785
|
},
|
|
4775
4786
|
props: {
|
|
4776
4787
|
data: {
|
|
@@ -4847,10 +4858,10 @@ var lp = /*#__PURE__*/ U(ip, [["render", cp]]), up = d({
|
|
|
4847
4858
|
clearAll: l
|
|
4848
4859
|
};
|
|
4849
4860
|
}
|
|
4850
|
-
}),
|
|
4851
|
-
function
|
|
4861
|
+
}), _p = { class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-pb-2" }, vp = { class: "uz-flex uz-gap-2" }, yp = { class: "uz-flex uz-items-center uz-gap-2 uz-w-full" };
|
|
4862
|
+
function bp(t, o, s, u, d, f) {
|
|
4852
4863
|
let p = D("Search"), m = D("NIcon"), h = D("NButton"), g = D("NInputGroupLabel"), _ = D("UzFormItem"), v = D("NInputGroup"), y = D("NGridItem"), b = D("NGrid"), S = D("Refresh"), C = D("NDrawerContent"), w = D("NDrawer");
|
|
4853
|
-
return x(), i(e, null, [a("div",
|
|
4864
|
+
return x(), i(e, null, [a("div", _p, [E(t.$slots, "header"), a("div", vp, [t.itemData && Object.keys(t.itemData).length > 0 ? (x(), n(h, {
|
|
4854
4865
|
key: 0,
|
|
4855
4866
|
secondary: "",
|
|
4856
4867
|
onClick: o[0] ||= (e) => t.drawer = !0
|
|
@@ -4875,7 +4886,7 @@ function mp(t, o, s, u, d, f) {
|
|
|
4875
4886
|
title: "查询",
|
|
4876
4887
|
closable: ""
|
|
4877
4888
|
}, {
|
|
4878
|
-
footer: P(() => [a("div",
|
|
4889
|
+
footer: P(() => [a("div", yp, [l(h, {
|
|
4879
4890
|
secondary: "",
|
|
4880
4891
|
loading: t.loading,
|
|
4881
4892
|
onClick: t.clearAll,
|
|
@@ -4930,7 +4941,7 @@ function mp(t, o, s, u, d, f) {
|
|
|
4930
4941
|
_: 1
|
|
4931
4942
|
}, 8, ["show"])], 64);
|
|
4932
4943
|
}
|
|
4933
|
-
var
|
|
4944
|
+
var xp = /*#__PURE__*/ U(gp, [["render", bp]]), Sp = /(?<=\[)(.+?)(?=\])/g, Cp = {
|
|
4934
4945
|
index: 1,
|
|
4935
4946
|
selection: 0,
|
|
4936
4947
|
pagination: 1,
|
|
@@ -4946,10 +4957,10 @@ var hp = /*#__PURE__*/ U(up, [["render", mp]]), gp = /(?<=\[)(.+?)(?=\])/g, _p =
|
|
|
4946
4957
|
placement: "right",
|
|
4947
4958
|
summary: ""
|
|
4948
4959
|
};
|
|
4949
|
-
function
|
|
4960
|
+
function wp(e) {
|
|
4950
4961
|
return Function("return " + e)();
|
|
4951
4962
|
}
|
|
4952
|
-
var
|
|
4963
|
+
var Tp = () => new Promise((e) => {
|
|
4953
4964
|
let t = window.localStorage.getItem("city");
|
|
4954
4965
|
if (t) e(JSON.parse(t));
|
|
4955
4966
|
else {
|
|
@@ -4962,12 +4973,12 @@ var yp = () => new Promise((e) => {
|
|
|
4962
4973
|
t && (clearInterval(i), e(JSON.parse(t)));
|
|
4963
4974
|
}, 500);
|
|
4964
4975
|
}
|
|
4965
|
-
}),
|
|
4976
|
+
}), Ep = async (e, t, n) => {
|
|
4966
4977
|
if (t && typeof t == "string") {
|
|
4967
|
-
let r = t.match(
|
|
4978
|
+
let r = t.match(Sp);
|
|
4968
4979
|
if (r && t.indexOf("return") === -1) {
|
|
4969
4980
|
let t = r[0].split(":");
|
|
4970
|
-
if (t[0] === "date") return (t) =>
|
|
4981
|
+
if (t[0] === "date") return (t) => dd(t[e], r[0].replace("date:", "") || "YYYY-MM-DD");
|
|
4971
4982
|
if (t[0] === "city") return (t) => t[`${e}Str`];
|
|
4972
4983
|
if (t[0] === "modules" && n && Object.keys(n).length > 0) {
|
|
4973
4984
|
let e = r[0].replace("modules:", ""), t = Object.keys(n).find((t) => t.includes(e));
|
|
@@ -4984,7 +4995,7 @@ var yp = () => new Promise((e) => {
|
|
|
4984
4995
|
}
|
|
4985
4996
|
}
|
|
4986
4997
|
return t && typeof t == "function" ? (e, n) => t(e, n, f) : "";
|
|
4987
|
-
},
|
|
4998
|
+
}, Dp = (e, t, n) => {
|
|
4988
4999
|
let r = t.map((t) => {
|
|
4989
5000
|
let r = [], i = t.id;
|
|
4990
5001
|
return e.input === "select" && (e.params.labelKeys || e.search.labelKeys) ? ((e.params.labelKeys || e.search.labelKeys || "").split(",").forEach((e) => {
|
|
@@ -4997,37 +5008,37 @@ var yp = () => new Promise((e) => {
|
|
|
4997
5008
|
};
|
|
4998
5009
|
});
|
|
4999
5010
|
return r.sort((e, t) => Number(e.disabled) - Number(t.disabled)), r;
|
|
5000
|
-
},
|
|
5001
|
-
function
|
|
5002
|
-
|
|
5011
|
+
}, Op = /* @__PURE__ */ new Map();
|
|
5012
|
+
function kp() {
|
|
5013
|
+
Op.clear();
|
|
5003
5014
|
}
|
|
5004
|
-
async function
|
|
5015
|
+
async function Ap(e, t = !1) {
|
|
5005
5016
|
let n = e.split("."), r = !1;
|
|
5006
|
-
return n.length > 1 && (
|
|
5017
|
+
return n.length > 1 && (Op.has(n[0]) && !t ? r = H(Op.get(n[0])) : (r = await Md({ tableId: n[0] }), Op.set(n[0], r))), {
|
|
5007
5018
|
sourceData: r,
|
|
5008
5019
|
n
|
|
5009
5020
|
};
|
|
5010
5021
|
}
|
|
5011
|
-
async function
|
|
5022
|
+
async function jp(e) {
|
|
5012
5023
|
return new Promise((t, n) => {
|
|
5013
5024
|
let r = Y(`dynamicTable_${e}`, !1);
|
|
5014
|
-
r &&
|
|
5015
|
-
!r || r && r.createTime !== i.createTime ?
|
|
5025
|
+
r && Op.has(`dynamicTable_${e}`) ? t(r) : jd(e).then((i) => {
|
|
5026
|
+
!r || r && r.createTime !== i.createTime ? Ad(e).then((n) => {
|
|
5016
5027
|
let r = {
|
|
5017
5028
|
createTime: n.createTime,
|
|
5018
5029
|
tableTitle: n.tableTitle,
|
|
5019
5030
|
viewJson: n.viewJson
|
|
5020
5031
|
};
|
|
5021
|
-
J(`dynamicTable_${e}`, r, 0),
|
|
5032
|
+
J(`dynamicTable_${e}`, r, 0), Op.set(`dynamicTable_${e}`, !0), sd("tables_"), t(n);
|
|
5022
5033
|
}).catch(() => {
|
|
5023
5034
|
n();
|
|
5024
|
-
}) : (
|
|
5035
|
+
}) : (Op.set(`dynamicTable_${e}`, !0), t(r));
|
|
5025
5036
|
}).catch(() => {
|
|
5026
5037
|
n();
|
|
5027
5038
|
});
|
|
5028
5039
|
});
|
|
5029
5040
|
}
|
|
5030
|
-
var
|
|
5041
|
+
var Mp = (e) => e.map((e) => {
|
|
5031
5042
|
let t = {};
|
|
5032
5043
|
return t.z = e.params.placeholder, e.input === "group" ? t.n = e.params.children : t.c = +!!e.params.clearable, e.input === "input" && (e.params.type && (t.t = e.params.type), e.params.minlength && (t.i = e.params.minlength), e.params.maxlength && (t.a = e.params.maxlength), e.params.rows && (t.r = e.params.rows), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "auto" && (t.o = e.params.options, e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "number" && (t.b = +!!e.params.showButton, e.params.min && (t.i = e.params.min), e.params.max && (t.a = e.params.max), e.params.minKey && (t.x = e.params.minKey), e.params.maxKey && (t.y = e.params.maxKey), e.params.step && (t.t = e.params.step), e.params.precision && (t.p = e.params.precision), e.params.prefix && (t.e = e.params.prefix), e.params.suffix && (t.s = e.params.suffix)), e.input === "date" && (t.y = e.params.type, e.params.format && (t.f = e.params.format), e.params.isDateDisabled && (t.d = e.params.isDateDisabled), e.params.timePickerProps && (t.t = e.params.timePickerProps)), e.input === "select" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple, t.t = +!!e.params.tag, t.l = (e.params.labelKeys || "").replace(/\s*/g, ""), t.v = (e.params.valueKey || "").replace(/\s*/g, ""), t.r = e.params.renderLabel, t.g = e.params.renderTag), e.input === "cascader" && (t.o = e.params.options, t.y = e.params.immediately, t.f = +!!e.params.filterable, t.m = +!!e.params.multiple), e.input === "checkbox" && (t.o = e.params.options), e.input === "time" && (t.f = e.params.format), e.input === "upload" && (t.s = +!!e.params.small, t.a = e.params.accept, t.m = e.params.max), e.input === "switch" && (t.h = e.params.checked, t.u = e.params.unchecked), e.input === "divider" && (t.p = e.params.placement), e.input === "filling" && (t.k = e.params.parentKey), e.input === "subTable" && (t.i = +!!e.params.init, t.q = +!!e.params.quest, t.k = e.params.searchKey, t.l = e.params.link, t.c = e.params.columns, t.a = e.params.actions, t.b = +!!e.params.addButton, t.g = +!!e.params.draggable, t.h = +!!e.params.childActions, t.n = +!!e.params.showActions, t.d = +!!e.params.showDelete, e.params.optionsType && (t.t = e.params.optionsType), e.params.optionsSource && (t.u = e.params.optionsSource), e.params.options && (t.o = e.params.options), e.params.summary && (t.s = e.params.summary), e.params.merge && (t.m = e.params.merge), e.params.deleteFn && (t.f = e.params.deleteFn)), {
|
|
5033
5044
|
i: e.input,
|
|
@@ -5098,7 +5109,7 @@ var Ep = (e) => e.map((e) => {
|
|
|
5098
5109
|
}
|
|
5099
5110
|
}
|
|
5100
5111
|
};
|
|
5101
|
-
}),
|
|
5112
|
+
}), Np = (e) => !e[0] || e[0] && e[0].input ? e : e.map((e) => {
|
|
5102
5113
|
let t = {};
|
|
5103
5114
|
return t.placeholder = e.p.z, e.i === "group" ? t.children = e.p.n : t.clearable = !!e.p.c, e.i === "input" && (e.p.t && (t.type = e.p.t), e.p.i && (t.minlength = e.p.i), e.p.a && (t.maxlength = e.p.a), e.p.r && (t.rows = e.p.r), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "auto" && (t.options = e.p.o, e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "number" && (t.showButton = !!e.p.b, e.p.i && (t.min = e.p.i), e.p.a && (t.max = e.p.a), e.p.x && (t.minKey = e.p.x), e.p.y && (t.maxKey = e.p.y), e.p.t && (t.step = e.p.t), e.p.p && (t.precision = e.p.p), e.p.e && (t.prefix = e.p.e), e.p.s && (t.suffix = e.p.s)), e.i === "date" && (t.type = e.p.y, e.p.f && (t.format = e.p.f), e.p.d && (t.isDateDisabled = e.p.d), e.p.t && (t.timePickerProps = e.p.t)), e.i === "select" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m, t.tag = !!e.p.t, t.labelKeys = e.p.l, t.valueKey = e.p.v, t.renderLabel = e.p.r, t.renderTag = e.p.g), e.i === "cascader" && (t.options = e.p.o, t.immediately = e.p.y, t.filterable = !!e.p.f, t.multiple = !!e.p.m), e.i === "checkbox" && (t.options = e.p.o), e.i === "time" && (t.format = e.p.f), e.i === "upload" && (t.small = !!e.p.s, t.accept = e.p.a, t.max = e.p.m), e.i === "switch" && (t.checked = e.p.h, t.unchecked = e.p.u), e.i === "divider" && (t.placement = e.p.p), e.i === "filling" && (t.parentKey = e.p.k), e.i === "subTable" && (t.init = !!e.p.i, t.quest = !!e.p.q, t.searchKey = e.p.k, t.link = e.p.l, t.columns = e.p.c, t.actions = e.p.a, t.addButton = !!e.p.b, t.draggable = !!e.p.g, t.childActions = !!e.p.h, t.showActions = !!e.p.n, t.showDelete = !!(e.p.d ?? !0), e.p.t && (t.optionsType = e.p.t), e.p.u && (t.optionsSource = e.p.u), e.p.o && (t.options = e.p.o), e.p.s && (t.summary = e.p.s), e.p.m && (t.merge = e.p.m), e.p.f && (t.deleteFn = e.p.f)), {
|
|
5104
5115
|
input: e.i,
|
|
@@ -5169,11 +5180,11 @@ var Ep = (e) => e.map((e) => {
|
|
|
5169
5180
|
}
|
|
5170
5181
|
}
|
|
5171
5182
|
};
|
|
5172
|
-
}),
|
|
5183
|
+
}), Pp = (e) => ({
|
|
5173
5184
|
f: e.fetch,
|
|
5174
5185
|
o: e.when_drawer_open,
|
|
5175
5186
|
b: e.when_before_save
|
|
5176
|
-
}),
|
|
5187
|
+
}), Fp = (e) => e ? e.fetch ? e : {
|
|
5177
5188
|
fetch: e.f,
|
|
5178
5189
|
when_drawer_open: e.o,
|
|
5179
5190
|
when_before_save: e.b
|
|
@@ -5181,7 +5192,7 @@ var Ep = (e) => e.map((e) => {
|
|
|
5181
5192
|
fetch: null,
|
|
5182
5193
|
when_drawer_open: "",
|
|
5183
5194
|
when_before_save: ""
|
|
5184
|
-
},
|
|
5195
|
+
}, Ip = (e) => ({
|
|
5185
5196
|
i: e.index,
|
|
5186
5197
|
s: e.selection,
|
|
5187
5198
|
p: e.pagination,
|
|
@@ -5195,7 +5206,7 @@ var Ep = (e) => e.map((e) => {
|
|
|
5195
5206
|
h: e.drawerHeight,
|
|
5196
5207
|
l: e.placement,
|
|
5197
5208
|
r: e.summary
|
|
5198
|
-
}),
|
|
5209
|
+
}), Lp = (e) => {
|
|
5199
5210
|
let t = {};
|
|
5200
5211
|
return e && (t = e.index !== void 0 || e.selection !== void 0 || e.pagination !== void 0 || e.cache !== void 0 || e.draggable !== void 0 || e.addButton !== void 0 || e.filterButton !== void 0 || e.commonTime !== void 0 || e.actionWidth !== void 0 || e.drawerWidth !== void 0 || e.drawerHeight !== void 0 || e.placement !== void 0 || e.summary !== void 0 ? e : {
|
|
5201
5212
|
index: e.i,
|
|
@@ -5211,9 +5222,9 @@ var Ep = (e) => e.map((e) => {
|
|
|
5211
5222
|
drawerHeight: e.h,
|
|
5212
5223
|
placement: e.l,
|
|
5213
5224
|
summary: e.r
|
|
5214
|
-
}), Object.assign({},
|
|
5225
|
+
}), Object.assign({}, Cp, H(t));
|
|
5215
5226
|
};
|
|
5216
|
-
function
|
|
5227
|
+
function Rp(e, t, n, r) {
|
|
5217
5228
|
return new Promise(async (i, a) => {
|
|
5218
5229
|
let o = [], s = {}, c = {}, l = {}, u = [], d = [], f = H(e), p = [];
|
|
5219
5230
|
for (let e of f) e.input === "group" ? p.push(...e.params.children) : p.push(e);
|
|
@@ -5248,17 +5259,17 @@ function Mp(e, t, n, r) {
|
|
|
5248
5259
|
disabled: !0
|
|
5249
5260
|
}];
|
|
5250
5261
|
if (e.params.immediately || r) {
|
|
5251
|
-
let { sourceData: t, n: r } = await
|
|
5262
|
+
let { sourceData: t, n: r } = await Ap(e.source);
|
|
5252
5263
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5253
5264
|
let r = e.sourceFn;
|
|
5254
5265
|
n = Function("sourceData", r)(t);
|
|
5255
|
-
} else n =
|
|
5266
|
+
} else n = Dp(e, t, r);
|
|
5256
5267
|
} else e.params._async = !0, e.params._fetch = !1, e.params._asyncFn = async () => {
|
|
5257
|
-
let { sourceData: t, n } = await
|
|
5268
|
+
let { sourceData: t, n } = await Ap(e.source);
|
|
5258
5269
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5259
5270
|
let n = e.sourceFn;
|
|
5260
5271
|
return Function("sourceData", n)(t);
|
|
5261
|
-
} else return
|
|
5272
|
+
} else return Dp(e, t, n);
|
|
5262
5273
|
};
|
|
5263
5274
|
if (e.params.options = n, e.form.backfill && t) if (Array.isArray(t)) t.forEach((t, r) => {
|
|
5264
5275
|
let i = n.find((n) => n.value === t[e.key]);
|
|
@@ -5289,27 +5300,27 @@ function Mp(e, t, n, r) {
|
|
|
5289
5300
|
q(e);
|
|
5290
5301
|
}
|
|
5291
5302
|
if (e.input === "cascader" && e.table.render === "[city]") {
|
|
5292
|
-
let t = await
|
|
5303
|
+
let t = await Tp();
|
|
5293
5304
|
e.params.options = t;
|
|
5294
5305
|
}
|
|
5295
5306
|
if (e.input === "subTable" && e.params.link) {
|
|
5296
|
-
let t = await
|
|
5307
|
+
let t = await jp(e.params.link).catch(() => {
|
|
5297
5308
|
a();
|
|
5298
5309
|
});
|
|
5299
5310
|
if (t) try {
|
|
5300
5311
|
let n = rt.parse(t.viewJson);
|
|
5301
|
-
n.suffix && (e._suffix =
|
|
5302
|
-
let r =
|
|
5312
|
+
n.suffix && (e._suffix = Yd(n.suffix));
|
|
5313
|
+
let r = Np(n.table);
|
|
5303
5314
|
r.forEach((e) => {
|
|
5304
5315
|
e.table.sorter = !1;
|
|
5305
5316
|
});
|
|
5306
5317
|
let i = r.filter((e) => e.input === "subTable");
|
|
5307
5318
|
if (i) for await (let e of i) {
|
|
5308
|
-
let t = await
|
|
5319
|
+
let t = await jp(e.params.link).catch(() => {
|
|
5309
5320
|
a();
|
|
5310
5321
|
});
|
|
5311
5322
|
if (t) try {
|
|
5312
|
-
let n = rt.parse(t.viewJson), r =
|
|
5323
|
+
let n = rt.parse(t.viewJson), r = Np(n.table);
|
|
5313
5324
|
r.forEach((e) => {
|
|
5314
5325
|
e.table.sorter = !1;
|
|
5315
5326
|
}), e.params.columns = r, e.params.actions = n.action;
|
|
@@ -5343,7 +5354,7 @@ function Mp(e, t, n, r) {
|
|
|
5343
5354
|
});
|
|
5344
5355
|
});
|
|
5345
5356
|
}
|
|
5346
|
-
async function
|
|
5357
|
+
async function zp(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
5347
5358
|
let o = 0, s = [], c = [], l = [], u = H(e), d = [], p = [];
|
|
5348
5359
|
for (let e of u) e.input === "group" ? (d.push(...e.params.children), p.push({
|
|
5349
5360
|
title: e.label,
|
|
@@ -5353,27 +5364,27 @@ async function Np(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5353
5364
|
})) : (d.push(e), p.push(e.key));
|
|
5354
5365
|
for await (let [e, u] of d.entries()) {
|
|
5355
5366
|
if (u.source && !u.table.render && (u.input === "select" || u.input === "cascader")) if (u.table.render = (e) => e[`${u.key}Str`], t || u.params.immediately || u.search.defaultValue) {
|
|
5356
|
-
let { sourceData: t, n } = await
|
|
5367
|
+
let { sourceData: t, n } = await Ap(u.source, a && e === 0);
|
|
5357
5368
|
if (t && Array.isArray(t)) if (u.sourceFn) {
|
|
5358
5369
|
let e = u.sourceFn, n = Function("sourceData", e);
|
|
5359
5370
|
u.params.options = n(t);
|
|
5360
|
-
} else u.params.options =
|
|
5371
|
+
} else u.params.options = Dp(u, t, n);
|
|
5361
5372
|
} else u.params.options = [{
|
|
5362
5373
|
label: "加载中......",
|
|
5363
5374
|
value: "loading",
|
|
5364
5375
|
disabled: !0
|
|
5365
5376
|
}], u.params._async = !0, u.params._fetch = !1, u.params._asyncFn = async () => {
|
|
5366
|
-
let { sourceData: e, n: t } = await
|
|
5377
|
+
let { sourceData: e, n: t } = await Ap(u.source);
|
|
5367
5378
|
if (e && Array.isArray(e)) if (u.sourceFn) {
|
|
5368
5379
|
let t = u.sourceFn;
|
|
5369
5380
|
return Function("sourceData", t)(e);
|
|
5370
|
-
} else return
|
|
5381
|
+
} else return Dp(u, e, t);
|
|
5371
5382
|
};
|
|
5372
5383
|
!u.table.render && !u.source && u.input === "select" && typeof u.params.options != "function" && u.params.options.length > 0 && (u.table.render = (e) => {
|
|
5373
5384
|
let t = u.params.options.find((t) => t.value === e[u.key]);
|
|
5374
5385
|
if (t) return t.label;
|
|
5375
5386
|
}), u.input === "upload" && !u.table.render && (u.table.render = function(e) {
|
|
5376
|
-
return f(
|
|
5387
|
+
return f(Qf, { value: e[u.key] }, { default: () => null });
|
|
5377
5388
|
}), o += Number(u.table.width || 140);
|
|
5378
5389
|
let d = {
|
|
5379
5390
|
input: u.input,
|
|
@@ -5388,7 +5399,7 @@ async function Np(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5388
5399
|
tooltip: !0,
|
|
5389
5400
|
"line-clamp": u.table.clamp ?? 0
|
|
5390
5401
|
} : !1,
|
|
5391
|
-
render: u.table.render ? await
|
|
5402
|
+
render: u.table.render ? await Ep(u.key, u.table.render, i) : void 0,
|
|
5392
5403
|
show: K.isMobile ? u.table.mobile ?? !1 : u.table.show ?? !0,
|
|
5393
5404
|
pin: !!u.table.fixed,
|
|
5394
5405
|
fixTemp: u.table.fixed
|
|
@@ -5409,7 +5420,7 @@ async function Np(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5409
5420
|
...u.form.rule,
|
|
5410
5421
|
index: t
|
|
5411
5422
|
} : void 0
|
|
5412
|
-
}, { default: () => f(
|
|
5423
|
+
}, { default: () => f(Nf, {
|
|
5413
5424
|
item: u,
|
|
5414
5425
|
formValue: e,
|
|
5415
5426
|
status: n,
|
|
@@ -5420,26 +5431,26 @@ async function Np(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5420
5431
|
if (d && u.input !== "divider" && u.input !== "subTable" && l.push(d), u.input !== "divider" && u.input !== "switch" && u.input !== "subTable" && u.input !== "upload" && u.search.show) {
|
|
5421
5432
|
if (u.search.title && (u.label = u.search.title), u.search.source) if (u.input = "select", u.params.type = u.search.type, u.params.valueKey = u.search.valueKey, u.params.valueKey = u.search.valueKey, u.search.source === "from-up") u.params.options = u.params.options;
|
|
5422
5433
|
else if (u.params.immediately || u.search.defaultValue) {
|
|
5423
|
-
let { sourceData: e, n: t } = await
|
|
5434
|
+
let { sourceData: e, n: t } = await Ap(u.search.source);
|
|
5424
5435
|
if (e && Array.isArray(e)) if (u.sourceFn) {
|
|
5425
5436
|
let t = u.sourceFn, n = Function("sourceData", t);
|
|
5426
5437
|
u.params.options = n(e);
|
|
5427
|
-
} else u.params.options =
|
|
5438
|
+
} else u.params.options = Dp(u, e, t);
|
|
5428
5439
|
} else u.params._async = !0, u.params._fetch = !1, u.params._asyncFn = async () => {
|
|
5429
|
-
let { sourceData: e, n: t } = await
|
|
5440
|
+
let { sourceData: e, n: t } = await Ap(u.search.source);
|
|
5430
5441
|
if (e && Array.isArray(e)) if (u.sourceFn) {
|
|
5431
5442
|
let t = u.sourceFn;
|
|
5432
5443
|
return Function("sourceData", t)(e);
|
|
5433
|
-
} else return
|
|
5444
|
+
} else return Dp(u, e, t);
|
|
5434
5445
|
};
|
|
5435
|
-
if (u.search.multiple && (u.params.multiple = !0, u.search.defaultValue && (u.search.defaultValue =
|
|
5446
|
+
if (u.search.multiple && (u.params.multiple = !0, u.search.defaultValue && (u.search.defaultValue = wp(u.search.defaultValue))), u.search.show) {
|
|
5436
5447
|
let e = H(u);
|
|
5437
5448
|
e.params._async && (e.params._search = !0, e.params._asyncFn = async () => {
|
|
5438
|
-
let { sourceData: t, n } = await
|
|
5449
|
+
let { sourceData: t, n } = await Ap(e.source || e.search.source);
|
|
5439
5450
|
if (t && Array.isArray(t)) if (e.sourceFn) {
|
|
5440
5451
|
let n = e.sourceFn;
|
|
5441
5452
|
return Function("sourceData", n)(t);
|
|
5442
|
-
} else return
|
|
5453
|
+
} else return Dp(e, t, n);
|
|
5443
5454
|
}), s.push({
|
|
5444
5455
|
input: e.input,
|
|
5445
5456
|
label: e.label,
|
|
@@ -5485,7 +5496,7 @@ async function Np(e, t = !1, n = 0, r = () => {}, i = {}, a = !1) {
|
|
|
5485
5496
|
}
|
|
5486
5497
|
//#endregion
|
|
5487
5498
|
//#region components/spin/index.vue?vue&type=script&lang.ts
|
|
5488
|
-
var
|
|
5499
|
+
var Bp = d({
|
|
5489
5500
|
name: "UzSpin",
|
|
5490
5501
|
components: {
|
|
5491
5502
|
NButton: L,
|
|
@@ -5531,7 +5542,7 @@ var Pp = d({
|
|
|
5531
5542
|
});
|
|
5532
5543
|
//#endregion
|
|
5533
5544
|
//#region components/spin/index.vue
|
|
5534
|
-
function
|
|
5545
|
+
function Vp(e, t, r, i, o, s) {
|
|
5535
5546
|
let u = D("NEllipsis"), d = D("NButton"), f = D("NSpin");
|
|
5536
5547
|
return x(), n(f, { show: e.value }, {
|
|
5537
5548
|
description: P(() => [
|
|
@@ -5559,7 +5570,7 @@ function Fp(e, t, r, i, o, s) {
|
|
|
5559
5570
|
_: 3
|
|
5560
5571
|
}, 8, ["show"]);
|
|
5561
5572
|
}
|
|
5562
|
-
var
|
|
5573
|
+
var Hp = /*#__PURE__*/ U(Bp, [["render", Vp]]), Up = d({
|
|
5563
5574
|
name: "UzTable",
|
|
5564
5575
|
components: {
|
|
5565
5576
|
NDataTable: se,
|
|
@@ -5573,7 +5584,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5573
5584
|
GridDots: ts,
|
|
5574
5585
|
Plus: dc,
|
|
5575
5586
|
VueDraggable: nt,
|
|
5576
|
-
UzSpin:
|
|
5587
|
+
UzSpin: Hp,
|
|
5577
5588
|
UzIcon: Lu
|
|
5578
5589
|
},
|
|
5579
5590
|
props: {
|
|
@@ -5713,7 +5724,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5713
5724
|
fetch: null,
|
|
5714
5725
|
when_drawer_open: "",
|
|
5715
5726
|
when_before_save: ""
|
|
5716
|
-
}), I = w(
|
|
5727
|
+
}), I = w(Lp()), te = w(""), L = w(!1), ne = w([]), R = w([]), re = p("modules"), ie = (e) => e.id, ae = (e, t) => {
|
|
5717
5728
|
n("update:rowKeys", {
|
|
5718
5729
|
keys: e,
|
|
5719
5730
|
rows: H(t)
|
|
@@ -5736,8 +5747,8 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5736
5747
|
let r = e.id || a.params.id;
|
|
5737
5748
|
e.enableLoading && (g.value = !0, n("update:loading", !0));
|
|
5738
5749
|
let i = H(D.value);
|
|
5739
|
-
if (t && delete i.orderby, F.value.fetch)
|
|
5740
|
-
let t =
|
|
5750
|
+
if (t && delete i.orderby, F.value.fetch) Fd([F.value.fetch], "", i).then((e) => {
|
|
5751
|
+
let t = ud(e);
|
|
5741
5752
|
D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, D.value);
|
|
5742
5753
|
}).catch(() => {
|
|
5743
5754
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
@@ -5747,23 +5758,23 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5747
5758
|
t = e.fetch ? e.fetch({
|
|
5748
5759
|
...i,
|
|
5749
5760
|
tableId: r
|
|
5750
|
-
}) :
|
|
5761
|
+
}) : Md({
|
|
5751
5762
|
...i,
|
|
5752
5763
|
tableId: r
|
|
5753
5764
|
}), t.then((e) => {
|
|
5754
|
-
let t =
|
|
5765
|
+
let t = ud(e);
|
|
5755
5766
|
D.value.query = t.query, T.value = t.records, g.value = !1, _.value = !0, n("on-update:value", i), n("update:loading", !1), I.value.cache && r && J(`tables_${r}`, D.value);
|
|
5756
5767
|
}).catch(() => {
|
|
5757
5768
|
g.value = !1, _.value = !0, n("update:loading", !1);
|
|
5758
5769
|
});
|
|
5759
5770
|
}
|
|
5760
5771
|
}, ce = (e) => {
|
|
5761
|
-
D.value.query.page = e, l.value && (l.value.scrollTop = 0),
|
|
5772
|
+
D.value.query.page = e, l.value && (l.value.scrollTop = 0), ld(), z();
|
|
5762
5773
|
}, le = () => {
|
|
5763
5774
|
let e = D.value.query.page + 1;
|
|
5764
5775
|
e > D.value.query.pageMax && (e = 1), D.value.query.page = e, l.value && (l.value.scrollTop = 0), z();
|
|
5765
5776
|
}, ue = (e) => {
|
|
5766
|
-
D.value.query.pageSize = e, D.value.query.page = 1,
|
|
5777
|
+
D.value.query.pageSize = e, D.value.query.page = 1, ld(), z();
|
|
5767
5778
|
}, de = (e) => {
|
|
5768
5779
|
e && e.order ? D.value.orderby = `${e.columnKey} ${e.order.replace("end", "")}` : delete D.value.orderby, z();
|
|
5769
5780
|
}, fe = () => {
|
|
@@ -5792,7 +5803,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5792
5803
|
show: !0,
|
|
5793
5804
|
ellipsis: !1,
|
|
5794
5805
|
width: 180,
|
|
5795
|
-
render: (e) => [f("div", {}, { default: () => e.createBy }), f("div", {}, { default: () =>
|
|
5806
|
+
render: (e) => [f("div", {}, { default: () => e.createBy }), f("div", {}, { default: () => dd(e.createTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5796
5807
|
}, {
|
|
5797
5808
|
title: "更新人/时间",
|
|
5798
5809
|
key: "updateTime",
|
|
@@ -5801,9 +5812,9 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5801
5812
|
show: !0,
|
|
5802
5813
|
ellipsis: !0,
|
|
5803
5814
|
width: 180,
|
|
5804
|
-
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () =>
|
|
5815
|
+
render: (e) => [f("div", {}, { default: () => e.updateBy }), f("div", {}, { default: () => dd(e.updateTime, "yyyy-MM-dd hh:mm:ss") })]
|
|
5805
5816
|
}], _e = (t) => !e.ruleFetch || !A.value || A.value && A.value[0] === "*" ? !1 : !A.value?.includes(t), B = async (e) => {
|
|
5806
|
-
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await
|
|
5817
|
+
let { form: t, fillingDefaultValue: n, formDefaultValue: r } = await Rp(j.value, e, () => d.value?.getFormValues());
|
|
5807
5818
|
return b.value = t, {
|
|
5808
5819
|
form: t,
|
|
5809
5820
|
fillingDefaultValue: n,
|
|
@@ -5814,7 +5825,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5814
5825
|
o = e.fetch ? e.fetch({
|
|
5815
5826
|
id: t.id,
|
|
5816
5827
|
tableId: i
|
|
5817
|
-
}) :
|
|
5828
|
+
}) : Md({
|
|
5818
5829
|
id: t.id,
|
|
5819
5830
|
tableId: i
|
|
5820
5831
|
}), o.then((e) => {
|
|
@@ -5898,7 +5909,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5898
5909
|
...t,
|
|
5899
5910
|
tableId: c,
|
|
5900
5911
|
sub_table_ids: r
|
|
5901
|
-
}) :
|
|
5912
|
+
}) : Pd({
|
|
5902
5913
|
...t,
|
|
5903
5914
|
tableId: c,
|
|
5904
5915
|
sub_table_ids: r
|
|
@@ -5916,7 +5927,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5916
5927
|
});
|
|
5917
5928
|
};
|
|
5918
5929
|
} else if (t.type !== "group" && t.action === "disabledInside") t.onClick = (t) => {
|
|
5919
|
-
|
|
5930
|
+
Nd({
|
|
5920
5931
|
tableId: e.id || a.params.id,
|
|
5921
5932
|
...t,
|
|
5922
5933
|
is_disabled: "1"
|
|
@@ -5925,7 +5936,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5925
5936
|
}).catch(() => null);
|
|
5926
5937
|
};
|
|
5927
5938
|
else if (t.type !== "group" && t.action === "enabledInside") t.onClick = (t) => {
|
|
5928
|
-
|
|
5939
|
+
Nd({
|
|
5929
5940
|
tableId: e.id || a.params.id,
|
|
5930
5941
|
...t,
|
|
5931
5942
|
is_disabled: "0"
|
|
@@ -5940,12 +5951,12 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5940
5951
|
i = e.fetch ? e.fetch({
|
|
5941
5952
|
id: r.id,
|
|
5942
5953
|
tableId: c
|
|
5943
|
-
}) :
|
|
5954
|
+
}) : Md({
|
|
5944
5955
|
id: r.id,
|
|
5945
5956
|
tableId: c
|
|
5946
5957
|
}), i.then((e) => {
|
|
5947
5958
|
let r = e && e[0];
|
|
5948
|
-
|
|
5959
|
+
Fd([t.action], r.id, r).then((e) => {
|
|
5949
5960
|
if (n && typeof n == "string") {
|
|
5950
5961
|
try {
|
|
5951
5962
|
Function("rowData", "res", n)(r, e).then((e) => {
|
|
@@ -5984,8 +5995,8 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
5984
5995
|
};
|
|
5985
5996
|
}
|
|
5986
5997
|
}, xe = async () => {
|
|
5987
|
-
L.value = !1,
|
|
5988
|
-
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await
|
|
5998
|
+
L.value = !1, kp();
|
|
5999
|
+
let { tableColumns: t, search: n, subTableIds: r, tableWidth: i } = await zp(j.value, e.child, 0, () => ({}), re), s = i;
|
|
5989
6000
|
!c.value && I.value.index && (t.unshift({
|
|
5990
6001
|
title: "#",
|
|
5991
6002
|
key: "index",
|
|
@@ -6027,7 +6038,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
6027
6038
|
show: !0,
|
|
6028
6039
|
hide: !0,
|
|
6029
6040
|
render(t) {
|
|
6030
|
-
return
|
|
6041
|
+
return Vd({
|
|
6031
6042
|
buttons: e,
|
|
6032
6043
|
rowData: t,
|
|
6033
6044
|
callback: z,
|
|
@@ -6059,7 +6070,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
6059
6070
|
i = e.formFetch ? e.formFetch({
|
|
6060
6071
|
tableId: o,
|
|
6061
6072
|
...t
|
|
6062
|
-
}) :
|
|
6073
|
+
}) : Nd({
|
|
6063
6074
|
tableId: o,
|
|
6064
6075
|
...t
|
|
6065
6076
|
}), i.then(() => {
|
|
@@ -6072,12 +6083,12 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
6072
6083
|
fetch: null,
|
|
6073
6084
|
when_drawer_open: "",
|
|
6074
6085
|
when_before_save: ""
|
|
6075
|
-
}, I.value =
|
|
6086
|
+
}, I.value = Lp();
|
|
6076
6087
|
}, De = (t) => {
|
|
6077
6088
|
let n = rt.parse(t.viewJson);
|
|
6078
|
-
v.value = t.tableTitle, j.value =
|
|
6079
|
-
let r =
|
|
6080
|
-
t.tableTitle && r.title &&
|
|
6089
|
+
v.value = t.tableTitle, j.value = Np(n.table), N.value = Yd(e.actions || n.action), P.value = Yd(n.suffix || []).filter((e) => e.main).map((e) => (ke(e), e)), F.value = Fp(n.trigger);
|
|
6090
|
+
let r = Lp(e.options ?? n.option);
|
|
6091
|
+
t.tableTitle && r.title && fd(t.tableTitle), I.value = r;
|
|
6081
6092
|
}, Oe = async () => {
|
|
6082
6093
|
_.value = !1, Ee();
|
|
6083
6094
|
let t = e.id || a.params.id;
|
|
@@ -6094,7 +6105,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
6094
6105
|
te.value = o("Notice.network"), L.value = !0;
|
|
6095
6106
|
return;
|
|
6096
6107
|
}
|
|
6097
|
-
Ce(), e.columns ? (j.value = e.columns || [], N.value = e.actions || [], P.value = e.suffixes || [], I.value =
|
|
6108
|
+
Ce(), e.columns ? (j.value = e.columns || [], N.value = e.actions || [], P.value = e.suffixes || [], I.value = Lp(e.options), await xe()) : await jp(t).then(async (e) => {
|
|
6098
6109
|
De(e), await xe();
|
|
6099
6110
|
}).catch((e) => {
|
|
6100
6111
|
te.value = e?.message || o("Notice.network"), L.value = !0;
|
|
@@ -6146,7 +6157,7 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
6146
6157
|
}, { deep: !0 }), M(() => e.height, () => {
|
|
6147
6158
|
Ce();
|
|
6148
6159
|
}), M([() => a.params.id, () => e.id], async () => {
|
|
6149
|
-
|
|
6160
|
+
ld(), await Oe();
|
|
6150
6161
|
}), M(() => e.defaultCheckedRowKeys, (e) => {
|
|
6151
6162
|
let t = e || [], n = R.value.filter((e) => t.includes(e.id));
|
|
6152
6163
|
ne.value = t, R.value = n;
|
|
@@ -6188,23 +6199,23 @@ var Ip = /*#__PURE__*/ U(Pp, [["render", Fp]]), Lp = d({
|
|
|
6188
6199
|
isTypeofNumber: Se
|
|
6189
6200
|
};
|
|
6190
6201
|
}
|
|
6191
|
-
}),
|
|
6202
|
+
}), Wp = { class: "uz-flex uz-flex-col uz-gap-2 uz-flex-1 uz-h-full" }, Gp = { class: "uz-flex uz-justify-between" }, Kp = { class: "uz-flex uz-gap-1" }, qp = { class: "uz-com-title" }, Jp = {
|
|
6192
6203
|
ref: "mRef",
|
|
6193
6204
|
class: "uz-table-m-content"
|
|
6194
|
-
},
|
|
6205
|
+
}, Yp = {
|
|
6195
6206
|
key: 1,
|
|
6196
6207
|
class: "uz-transform-fade-in"
|
|
6197
|
-
},
|
|
6198
|
-
function
|
|
6208
|
+
}, Xp = { class: "uz-com-title" };
|
|
6209
|
+
function Zp(t, s, u, d, f, p) {
|
|
6199
6210
|
let m = D("NSkeleton"), h = D("NButton"), v = D("Plus"), y = D("NIcon"), b = D("UzActionButton"), S = D("UzSearchMobileBar"), C = D("UzTableMobile"), w = D("Filter"), ee = D("NCheckbox"), O = D("GridDots"), A = D("VueDraggable"), M = D("NPopover"), N = D("UzSearchBar"), I = D("NDataTable"), te = D("NSpin"), L = D("UzTableDrawer");
|
|
6200
6211
|
return x(), i("div", {
|
|
6201
6212
|
class: "uz-table",
|
|
6202
6213
|
style: _({ width: t.isTypeofNumber(t.width) })
|
|
6203
6214
|
}, [
|
|
6204
|
-
F(a("div",
|
|
6215
|
+
F(a("div", Wp, [a("div", Gp, [l(m, {
|
|
6205
6216
|
width: 120,
|
|
6206
6217
|
size: "medium"
|
|
6207
|
-
}), a("div",
|
|
6218
|
+
}), a("div", Kp, [
|
|
6208
6219
|
l(m, {
|
|
6209
6220
|
width: 180,
|
|
6210
6221
|
size: "medium"
|
|
@@ -6292,7 +6303,7 @@ function Gp(t, s, u, d, f, p) {
|
|
|
6292
6303
|
key: "0"
|
|
6293
6304
|
} : {
|
|
6294
6305
|
name: "header",
|
|
6295
|
-
fn: P(() => [a("div",
|
|
6306
|
+
fn: P(() => [a("div", qp, k(t.title), 1)]),
|
|
6296
6307
|
key: "1"
|
|
6297
6308
|
}]), 1032, [
|
|
6298
6309
|
"data",
|
|
@@ -6300,7 +6311,7 @@ function Gp(t, s, u, d, f, p) {
|
|
|
6300
6311
|
"cache",
|
|
6301
6312
|
"loading",
|
|
6302
6313
|
"onOnUpdate:value"
|
|
6303
|
-
]), a("div",
|
|
6314
|
+
]), a("div", Jp, [l(C, {
|
|
6304
6315
|
tableColumns: t.tableColumns,
|
|
6305
6316
|
tableData: t.tableData,
|
|
6306
6317
|
tableQueries: t.tableQueries,
|
|
@@ -6318,7 +6329,7 @@ function Gp(t, s, u, d, f, p) {
|
|
|
6318
6329
|
"minH",
|
|
6319
6330
|
"maxH",
|
|
6320
6331
|
"onUpdate:rowKeys"
|
|
6321
|
-
])], 512)], 2)) : (x(), i("div",
|
|
6332
|
+
])], 512)], 2)) : (x(), i("div", Yp, [l(N, {
|
|
6322
6333
|
data: t.searchData,
|
|
6323
6334
|
id: t.id || t.route.params.id,
|
|
6324
6335
|
cache: t.tableOption.cache,
|
|
@@ -6408,7 +6419,7 @@ function Gp(t, s, u, d, f, p) {
|
|
|
6408
6419
|
key: "0"
|
|
6409
6420
|
} : {
|
|
6410
6421
|
name: "header",
|
|
6411
|
-
fn: P(() => [a("div",
|
|
6422
|
+
fn: P(() => [a("div", Xp, k(t.title), 1)]),
|
|
6412
6423
|
key: "1"
|
|
6413
6424
|
}]), 1032, [
|
|
6414
6425
|
"data",
|
|
@@ -6465,7 +6476,7 @@ function Gp(t, s, u, d, f, p) {
|
|
|
6465
6476
|
l(L, { ref: "drawerRef" }, null, 512)
|
|
6466
6477
|
], 4);
|
|
6467
6478
|
}
|
|
6468
|
-
var
|
|
6479
|
+
var Qp = /*#__PURE__*/ U(Up, [["render", Zp]]), $p = d({
|
|
6469
6480
|
name: "UzTableChild",
|
|
6470
6481
|
components: {
|
|
6471
6482
|
NSpin: Ne,
|
|
@@ -6495,7 +6506,7 @@ var Kp = /*#__PURE__*/ U(Lp, [["render", Gp]]), qp = d({
|
|
|
6495
6506
|
emits: ["update:value"],
|
|
6496
6507
|
setup(e, { emit: n, expose: r }) {
|
|
6497
6508
|
let i = p("emitSuffix"), a = p("modules"), o = p("mainFormValue"), s = p("childFormReload"), c = t(() => s ? s() : 0), { t: l } = Ze(), u = w(), d = w(), m = w(), g = w(!0), _ = w(!1), y = w(!0), b = w([]), x = w({ child: [] }), S = w(""), C = w({}), T = w([]), E = w(void 0), D = async (t, n) => {
|
|
6498
|
-
let { formDefaultValue: r, fillingDefaultArray: i } = await
|
|
6509
|
+
let { formDefaultValue: r, fillingDefaultArray: i } = await Rp(H(n ?? e.item.params.columns), t, void 0, !0);
|
|
6499
6510
|
return C.value = r, i;
|
|
6500
6511
|
}, ee = async (t) => {
|
|
6501
6512
|
if (_.value) return;
|
|
@@ -6526,7 +6537,7 @@ var Kp = /*#__PURE__*/ U(Lp, [["render", Gp]]), qp = d({
|
|
|
6526
6537
|
});
|
|
6527
6538
|
}, O = (e) => e.delete ? "uz-table-child-delete" : "", k = async (t, n = !1) => {
|
|
6528
6539
|
g.value = !0, e.item._suffix && (T.value = e.item._suffix.filter((e) => e.sub)), await D(e.value, t);
|
|
6529
|
-
let { tableColumns: r, tableWidth: i } = await
|
|
6540
|
+
let { tableColumns: r, tableWidth: i } = await zp(H(t ?? e.item.params.columns), !0, e.status, () => x.value.child, a, n), s = i;
|
|
6530
6541
|
r.unshift({
|
|
6531
6542
|
title: " ",
|
|
6532
6543
|
key: "index",
|
|
@@ -6559,7 +6570,7 @@ var Kp = /*#__PURE__*/ U(Lp, [["render", Gp]]), qp = d({
|
|
|
6559
6570
|
width: 60,
|
|
6560
6571
|
render(t, n) {
|
|
6561
6572
|
let r = [];
|
|
6562
|
-
return e.item.params.childActions && e.item.params.actions &&
|
|
6573
|
+
return e.item.params.childActions && e.item.params.actions && Yd(e.item.params.actions).forEach((e) => {
|
|
6563
6574
|
e.disabled && typeof e.disabled == "string" && (e.disabled = Function("rowData", "rowIndex", e.disabled)(t, n)), r.push(e);
|
|
6564
6575
|
}), e.item.params.showDelete && e.status !== 2 && (x.value.child.length > 1 && e.item.form.edit ? !e.item.form.edit.readonly : !e.item.form.readonly) && r.push({
|
|
6565
6576
|
type: "normal",
|
|
@@ -6571,7 +6582,7 @@ var Kp = /*#__PURE__*/ U(Lp, [["render", Gp]]), qp = d({
|
|
|
6571
6582
|
let n = e.item.params.deleteFn;
|
|
6572
6583
|
n && typeof n == "string" ? t = Function("rowData", "mainFormValue", n)(t, o) : t.delete = !0;
|
|
6573
6584
|
}
|
|
6574
|
-
}),
|
|
6585
|
+
}), Vd({
|
|
6575
6586
|
buttons: r,
|
|
6576
6587
|
rowData: t
|
|
6577
6588
|
});
|
|
@@ -6703,18 +6714,18 @@ var Kp = /*#__PURE__*/ U(Lp, [["render", Gp]]), qp = d({
|
|
|
6703
6714
|
}
|
|
6704
6715
|
};
|
|
6705
6716
|
}
|
|
6706
|
-
}),
|
|
6717
|
+
}), em = { class: "uz-flex uz-justify-between" }, tm = { class: "uz-com-title" }, nm = {
|
|
6707
6718
|
key: 0,
|
|
6708
6719
|
class: "uz-table-asterisk"
|
|
6709
|
-
},
|
|
6710
|
-
function
|
|
6720
|
+
}, rm = { class: "uz-flex uz-gap-2" }, im = { class: "uz-flex uz-justify-end uz-gap-2" };
|
|
6721
|
+
function am(t, s, u, d, f, p) {
|
|
6711
6722
|
let m = D("UzIcon"), h = D("NIcon"), _ = D("NButton"), v = D("Plus"), y = D("NDataTable"), b = D("NForm"), S = D("NSpin");
|
|
6712
6723
|
return x(), n(S, {
|
|
6713
6724
|
show: t.spin,
|
|
6714
6725
|
class: "uz-flex-1 uz-w-full"
|
|
6715
6726
|
}, {
|
|
6716
6727
|
default: P(() => [
|
|
6717
|
-
a("div",
|
|
6728
|
+
a("div", em, [a("div", tm, [c(k(t.item.label) + " ", 1), t.item.form.rule.required ? (x(), i("span", nm, " \xA0* ")) : r("", !0)]), a("div", rm, [
|
|
6718
6729
|
t.status === 2 ? r("", !0) : (x(!0), i(e, { key: 0 }, T(t.suffixes, (e) => (x(), n(_, {
|
|
6719
6730
|
key: e.key,
|
|
6720
6731
|
type: e.color,
|
|
@@ -6790,7 +6801,7 @@ function $p(t, s, u, d, f, p) {
|
|
|
6790
6801
|
"scroll-x",
|
|
6791
6802
|
"class",
|
|
6792
6803
|
"row-class-name"
|
|
6793
|
-
])) : r("", !0), a("div",
|
|
6804
|
+
])) : r("", !0), a("div", im, [t.item.params.optionsType && t.status !== 2 && (t.item.form.edit ? !t.item.form.edit.readonly : !t.item.form.readonly) ? (x(), n(_, {
|
|
6794
6805
|
key: 0,
|
|
6795
6806
|
type: "success",
|
|
6796
6807
|
secondary: "",
|
|
@@ -6821,7 +6832,7 @@ function $p(t, s, u, d, f, p) {
|
|
|
6821
6832
|
_: 1
|
|
6822
6833
|
}, 8, ["show"]);
|
|
6823
6834
|
}
|
|
6824
|
-
var
|
|
6835
|
+
var om = /*#__PURE__*/ U($p, [["render", am]]), sm = d({
|
|
6825
6836
|
name: "UzTableQuestChild",
|
|
6826
6837
|
components: { NDataTable: se },
|
|
6827
6838
|
props: {
|
|
@@ -6849,7 +6860,7 @@ var em = /*#__PURE__*/ U(qp, [["render", $p]]), tm = d({
|
|
|
6849
6860
|
}), o.value = t, i.value = !1;
|
|
6850
6861
|
}
|
|
6851
6862
|
}, l = async (i) => {
|
|
6852
|
-
let { tableColumns: c, tableWidth: l } = await
|
|
6863
|
+
let { tableColumns: c, tableWidth: l } = await zp(H(i ?? e.item.params.columns), !0, 2, () => o.value, t), u = l;
|
|
6853
6864
|
c.unshift({
|
|
6854
6865
|
title: " ",
|
|
6855
6866
|
key: "index",
|
|
@@ -6868,7 +6879,7 @@ var em = /*#__PURE__*/ U(qp, [["render", $p]]), tm = d({
|
|
|
6868
6879
|
hide: !0,
|
|
6869
6880
|
width: 60,
|
|
6870
6881
|
render(t) {
|
|
6871
|
-
return
|
|
6882
|
+
return Vd({ buttons: [{
|
|
6872
6883
|
type: "normal",
|
|
6873
6884
|
color: "primary",
|
|
6874
6885
|
key: "detail",
|
|
@@ -6888,7 +6899,7 @@ var em = /*#__PURE__*/ U(qp, [["render", $p]]), tm = d({
|
|
|
6888
6899
|
l();
|
|
6889
6900
|
}), N(async () => {
|
|
6890
6901
|
try {
|
|
6891
|
-
e.formValue && e.formValue.id && e.item.params.searchKey && c(await
|
|
6902
|
+
e.formValue && e.formValue.id && e.item.params.searchKey && c(await Md({
|
|
6892
6903
|
tableId: e.item.params.link,
|
|
6893
6904
|
params: [{
|
|
6894
6905
|
key: e.item.params.searchKey,
|
|
@@ -6920,11 +6931,11 @@ var em = /*#__PURE__*/ U(qp, [["render", $p]]), tm = d({
|
|
|
6920
6931
|
tableScrollX: s
|
|
6921
6932
|
};
|
|
6922
6933
|
}
|
|
6923
|
-
}),
|
|
6924
|
-
function
|
|
6934
|
+
}), cm = { class: "uz-flex-1 uz-w-full" }, lm = { class: "uz-flex uz-justify-between" }, um = { class: "uz-com-title" };
|
|
6935
|
+
function dm(e, t, n, r, o, s) {
|
|
6925
6936
|
let c = D("NDataTable"), u = D("UzTableDrawer");
|
|
6926
|
-
return x(), i("div",
|
|
6927
|
-
a("div",
|
|
6937
|
+
return x(), i("div", cm, [
|
|
6938
|
+
a("div", lm, [a("div", um, k(e.item.label), 1)]),
|
|
6928
6939
|
t[0] ||= a("div", { class: "uz-br" }, null, -1),
|
|
6929
6940
|
l(c, {
|
|
6930
6941
|
columns: e.columns,
|
|
@@ -6949,7 +6960,7 @@ function am(e, t, n, r, o, s) {
|
|
|
6949
6960
|
l(u, { ref: "drawerRef" }, null, 512)
|
|
6950
6961
|
]);
|
|
6951
6962
|
}
|
|
6952
|
-
var
|
|
6963
|
+
var fm = /*#__PURE__*/ U(sm, [["render", dm]]), pm = d({
|
|
6953
6964
|
name: "UzTableDrawer",
|
|
6954
6965
|
components: {
|
|
6955
6966
|
NButton: L,
|
|
@@ -6987,7 +6998,7 @@ var om = /*#__PURE__*/ U(tm, [["render", am]]), sm = d({
|
|
|
6987
6998
|
}), b = w(!1), x = w(), S = () => {
|
|
6988
6999
|
a.value?.restoreValidation(), c.value = {}, p.value = !1, f.value = !1, u.value = !1, n("update:show", !1);
|
|
6989
7000
|
}, C = () => {
|
|
6990
|
-
s.value === 2 ? S() :
|
|
7001
|
+
s.value === 2 ? S() : ad.info({
|
|
6991
7002
|
title: "提示",
|
|
6992
7003
|
content: "关闭后修改的数据将不保留,确定关闭?",
|
|
6993
7004
|
positiveText: "确定",
|
|
@@ -7018,11 +7029,11 @@ var om = /*#__PURE__*/ U(tm, [["render", am]]), sm = d({
|
|
|
7018
7029
|
linkFn: t
|
|
7019
7030
|
};
|
|
7020
7031
|
let r = e.split(".")[0];
|
|
7021
|
-
|
|
7032
|
+
jp(r).then((e) => {
|
|
7022
7033
|
h(async () => {
|
|
7023
7034
|
let t = rt.parse(e.viewJson);
|
|
7024
|
-
d.value =
|
|
7025
|
-
let { form: i } = await
|
|
7035
|
+
d.value = Lp(t.option), u.value = !0;
|
|
7036
|
+
let { form: i } = await Rp(Np(t.table), n);
|
|
7026
7037
|
y.value = t.trigger, n && T(n);
|
|
7027
7038
|
let a = Y(`tables_cache_link_${r}`, !1);
|
|
7028
7039
|
a && (c.value = a), h(() => {
|
|
@@ -7073,18 +7084,18 @@ var om = /*#__PURE__*/ U(tm, [["render", am]]), sm = d({
|
|
|
7073
7084
|
}
|
|
7074
7085
|
if (x.value) {
|
|
7075
7086
|
x.value(e, () => {
|
|
7076
|
-
|
|
7087
|
+
od(`tables_cache_${o.value}`), S();
|
|
7077
7088
|
}, (e) => {
|
|
7078
7089
|
_.value = 1, g.value = e;
|
|
7079
7090
|
});
|
|
7080
7091
|
return;
|
|
7081
7092
|
} else {
|
|
7082
7093
|
let t = l.value.link.split(".")[0];
|
|
7083
|
-
|
|
7094
|
+
Nd({
|
|
7084
7095
|
tableId: t,
|
|
7085
7096
|
...e
|
|
7086
7097
|
}).then(() => {
|
|
7087
|
-
|
|
7098
|
+
kp(), Md({ tableId: t }).then((e) => {
|
|
7088
7099
|
let r = l.value.link.split("."), i;
|
|
7089
7100
|
if (l.value.linkFn) {
|
|
7090
7101
|
let t = l.value.linkFn;
|
|
@@ -7095,7 +7106,7 @@ var om = /*#__PURE__*/ U(tm, [["render", am]]), sm = d({
|
|
|
7095
7106
|
disabled: e?.status === "0",
|
|
7096
7107
|
params: e
|
|
7097
7108
|
}));
|
|
7098
|
-
p.value = !1,
|
|
7109
|
+
p.value = !1, od(`tables_cache_link_${t}`), n("on-submit", i), S();
|
|
7099
7110
|
});
|
|
7100
7111
|
}).catch((e) => {
|
|
7101
7112
|
_.value = 1, g.value = e;
|
|
@@ -7115,11 +7126,11 @@ var om = /*#__PURE__*/ U(tm, [["render", am]]), sm = d({
|
|
|
7115
7126
|
}
|
|
7116
7127
|
};
|
|
7117
7128
|
}
|
|
7118
|
-
}),
|
|
7129
|
+
}), mm = { class: "uz-flex uz-flex-col uz-gap-2 uz-h-full" }, hm = {
|
|
7119
7130
|
key: 0,
|
|
7120
7131
|
class: "uz-grid uz-grid-cols-2 uz-gap-2"
|
|
7121
|
-
},
|
|
7122
|
-
function
|
|
7132
|
+
}, gm = { class: "uz-flex uz-justify-between uz-gap-2 uz-w-full" }, _m = { class: "uz-flex uz-gap-2" };
|
|
7133
|
+
function vm(t, s, u, d, f, p) {
|
|
7123
7134
|
let m = D("NSkeleton"), h = D("UzForm"), g = D("UzSpin"), _ = D("NSpin"), v = D("NButton"), y = D("NPopover"), b = D("NDrawerContent"), S = D("NDrawer"), C = D("UzOcr"), w = D("NModal");
|
|
7124
7135
|
return x(), i(e, null, [l(S, {
|
|
7125
7136
|
show: t.drawer,
|
|
@@ -7145,7 +7156,7 @@ function fm(t, s, u, d, f, p) {
|
|
|
7145
7156
|
message: t.spinMsg,
|
|
7146
7157
|
status: t.spinStatus
|
|
7147
7158
|
}, {
|
|
7148
|
-
default: P(() => [a("div",
|
|
7159
|
+
default: P(() => [a("div", mm, [t.skeletonShow ? (x(), i("div", hm, [
|
|
7149
7160
|
l(m, {
|
|
7150
7161
|
size: "large",
|
|
7151
7162
|
style: { height: "156px" }
|
|
@@ -7208,7 +7219,7 @@ function fm(t, s, u, d, f, p) {
|
|
|
7208
7219
|
_: 2
|
|
7209
7220
|
}, [t.formStatus === 2 ? void 0 : {
|
|
7210
7221
|
name: "footer",
|
|
7211
|
-
fn: P(() => [a("div",
|
|
7222
|
+
fn: P(() => [a("div", gm, [l(v, {
|
|
7212
7223
|
loading: t.spinShow,
|
|
7213
7224
|
type: "success",
|
|
7214
7225
|
class: "uz-drawer-button",
|
|
@@ -7216,7 +7227,7 @@ function fm(t, s, u, d, f, p) {
|
|
|
7216
7227
|
}, {
|
|
7217
7228
|
default: P(() => [c(k(t.$t("OCR.ocr")), 1)]),
|
|
7218
7229
|
_: 1
|
|
7219
|
-
}, 8, ["loading"]), a("div",
|
|
7230
|
+
}, 8, ["loading"]), a("div", _m, [
|
|
7220
7231
|
l(v, {
|
|
7221
7232
|
loading: t.spinShow,
|
|
7222
7233
|
class: "uz-drawer-button",
|
|
@@ -7284,7 +7295,7 @@ function fm(t, s, u, d, f, p) {
|
|
|
7284
7295
|
_: 1
|
|
7285
7296
|
}, 8, ["show"])], 64);
|
|
7286
7297
|
}
|
|
7287
|
-
var
|
|
7298
|
+
var ym = /*#__PURE__*/ U(pm, [["render", vm]]), bm = d({
|
|
7288
7299
|
name: "UzTableMobileList",
|
|
7289
7300
|
props: {
|
|
7290
7301
|
tableData: {
|
|
@@ -7302,12 +7313,12 @@ var pm = /*#__PURE__*/ U(sm, [["render", fm]]), mm = d({
|
|
|
7302
7313
|
},
|
|
7303
7314
|
emits: ["update:row-keys"],
|
|
7304
7315
|
setup() {}
|
|
7305
|
-
}),
|
|
7316
|
+
}), xm = { class: "uz-grid uz-grid-cols-2 uz-gap-2" }, Sm = {
|
|
7306
7317
|
key: 1,
|
|
7307
7318
|
class: "uz-table-mobile-group-txt"
|
|
7308
7319
|
};
|
|
7309
|
-
function
|
|
7310
|
-
return x(), i("div",
|
|
7320
|
+
function Cm(t, o, s, c, l, u) {
|
|
7321
|
+
return x(), i("div", xm, [(x(!0), i(e, null, T(t.tableColumns, (o) => (x(), i("div", {
|
|
7311
7322
|
key: o.key,
|
|
7312
7323
|
class: g(["uz-flex uz-overflow-hidden", o.lineBreak ? "uz-flex-col" : ""]),
|
|
7313
7324
|
style: _(`grid-column: span ${o.lineCol || 2} / span ${o.lineCol || 2}`)
|
|
@@ -7318,11 +7329,11 @@ function _m(t, o, s, c, l, u) {
|
|
|
7318
7329
|
class: "mobile"
|
|
7319
7330
|
})) : r("", !0)], 64)) : (x(), i(e, { key: 1 }, [a("div", { class: g(["uz-table-mobile-group-title", o.lineBreak ? "line-break" : ""]) }, [a("div", null, k(typeof o.title == "string" ? o.title : o.title()), 1)], 2), a("div", { class: g(["uz-table-mobile-group-content", o.lineBreak ? "line-break" : ""]) }, [o.render ? (x(), n(O(() => {
|
|
7320
7331
|
if (t.tableData) return o.render(t.tableData, t.tableIndex);
|
|
7321
|
-
}), { key: 0 })) : (x(), i("div",
|
|
7332
|
+
}), { key: 0 })) : (x(), i("div", Sm, k(t.tableData[o.key] || "-"), 1))], 2)], 64))], 6))), 128))]);
|
|
7322
7333
|
}
|
|
7323
7334
|
//#endregion
|
|
7324
7335
|
//#region components/table/mobile.vue?vue&type=script&lang.ts
|
|
7325
|
-
var
|
|
7336
|
+
var wm = d({
|
|
7326
7337
|
name: "UzTableMobile",
|
|
7327
7338
|
components: {
|
|
7328
7339
|
NCheckbox: re,
|
|
@@ -7330,7 +7341,7 @@ var vm = d({
|
|
|
7330
7341
|
NPagination: Te,
|
|
7331
7342
|
NCheckboxGroup: ie,
|
|
7332
7343
|
NRadioGroup: ke,
|
|
7333
|
-
UzTableMobileList: /* @__PURE__ */ U(
|
|
7344
|
+
UzTableMobileList: /* @__PURE__ */ U(bm, [["render", Cm], ["__scopeId", "data-v-84c394fe"]])
|
|
7334
7345
|
},
|
|
7335
7346
|
props: {
|
|
7336
7347
|
tableData: {
|
|
@@ -7377,17 +7388,17 @@ var vm = d({
|
|
|
7377
7388
|
}
|
|
7378
7389
|
};
|
|
7379
7390
|
}
|
|
7380
|
-
}),
|
|
7391
|
+
}), Tm = {
|
|
7381
7392
|
key: 0,
|
|
7382
7393
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7383
|
-
},
|
|
7394
|
+
}, Em = {
|
|
7384
7395
|
key: 0,
|
|
7385
7396
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7386
|
-
},
|
|
7397
|
+
}, Dm = {
|
|
7387
7398
|
key: 0,
|
|
7388
7399
|
class: "uz-flex uz-justify-center uz-text-center uz-pb-4"
|
|
7389
7400
|
};
|
|
7390
|
-
function
|
|
7401
|
+
function Om(t, a, o, s, c, u) {
|
|
7391
7402
|
let d = D("UzTableMobileList"), f = D("NCheckbox"), p = D("NPagination"), m = D("NCheckboxGroup"), h = D("NRadio"), g = D("NRadioGroup");
|
|
7392
7403
|
return t.selection === 2 ? (x(), n(m, {
|
|
7393
7404
|
key: 0,
|
|
@@ -7414,7 +7425,7 @@ function Sm(t, a, o, s, c, u) {
|
|
|
7414
7425
|
"tableColumns"
|
|
7415
7426
|
])]),
|
|
7416
7427
|
_: 2
|
|
7417
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7428
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Tm, [l(p, {
|
|
7418
7429
|
page: t.tableQueries.query.page,
|
|
7419
7430
|
"onUpdate:page": [a[0] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7420
7431
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7456,7 +7467,7 @@ function Sm(t, a, o, s, c, u) {
|
|
|
7456
7467
|
"tableColumns"
|
|
7457
7468
|
])]),
|
|
7458
7469
|
_: 2
|
|
7459
|
-
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7470
|
+
}, 1032, ["value"]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Em, [l(p, {
|
|
7460
7471
|
page: t.tableQueries.query.page,
|
|
7461
7472
|
"onUpdate:page": [a[2] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7462
7473
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7491,7 +7502,7 @@ function Sm(t, a, o, s, c, u) {
|
|
|
7491
7502
|
"tableData",
|
|
7492
7503
|
"tableIndex",
|
|
7493
7504
|
"tableColumns"
|
|
7494
|
-
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div",
|
|
7505
|
+
])]))), 128)), t.tableQueries && t.tableData && t.tableData.length > 0 ? (x(), i("div", Dm, [l(p, {
|
|
7495
7506
|
page: t.tableQueries.query.page,
|
|
7496
7507
|
"onUpdate:page": [a[4] ||= (e) => t.tableQueries.query.page = e, t.pageChange],
|
|
7497
7508
|
"item-count": t.tableQueries.query.itemCount,
|
|
@@ -7504,7 +7515,7 @@ function Sm(t, a, o, s, c, u) {
|
|
|
7504
7515
|
"onUpdate:page"
|
|
7505
7516
|
])])) : r("", !0)], 4));
|
|
7506
7517
|
}
|
|
7507
|
-
var
|
|
7518
|
+
var km = /*#__PURE__*/ U(wm, [["render", Om], ["__scopeId", "data-v-70b54e3b"]]), Q = C({
|
|
7508
7519
|
page: {
|
|
7509
7520
|
label: "首页",
|
|
7510
7521
|
key: "/",
|
|
@@ -7515,7 +7526,7 @@ var Cm = /*#__PURE__*/ U(vm, [["render", Sm], ["__scopeId", "data-v-70b54e3b"]])
|
|
|
7515
7526
|
active: "/",
|
|
7516
7527
|
thumbnail: []
|
|
7517
7528
|
});
|
|
7518
|
-
function
|
|
7529
|
+
function Am(e) {
|
|
7519
7530
|
Q.cache = e.cache, Q.page = {
|
|
7520
7531
|
label: e.label,
|
|
7521
7532
|
key: e.key,
|
|
@@ -7530,14 +7541,14 @@ function wm(e) {
|
|
|
7530
7541
|
closable: !1
|
|
7531
7542
|
}];
|
|
7532
7543
|
}
|
|
7533
|
-
function
|
|
7544
|
+
function jm(e) {
|
|
7534
7545
|
Q.active = e, W.push(e), J(Q.cache, Q, 0);
|
|
7535
7546
|
}
|
|
7536
|
-
function
|
|
7547
|
+
function Mm(e, t) {
|
|
7537
7548
|
let n = Q.thumbnail.find((t) => t.key === e);
|
|
7538
7549
|
n && (n.key = t, Q.active = t, J(Q.cache, Q, 0));
|
|
7539
7550
|
}
|
|
7540
|
-
function
|
|
7551
|
+
function Nm(e) {
|
|
7541
7552
|
let t = Q.thumbnail.find((t) => t.path === e.key);
|
|
7542
7553
|
t ? (Q.active = t.key, J(Q.cache, Q, 0), W.push(t.key)) : (Q.active = e.key, Q.thumbnail.push({
|
|
7543
7554
|
...e,
|
|
@@ -7545,7 +7556,7 @@ function Dm(e) {
|
|
|
7545
7556
|
closable: !0
|
|
7546
7557
|
}), W.push(e.key));
|
|
7547
7558
|
}
|
|
7548
|
-
function
|
|
7559
|
+
function Pm(e) {
|
|
7549
7560
|
let t = Q.thumbnail.findIndex((t) => t.key === e);
|
|
7550
7561
|
if (Q.thumbnail.splice(t, 1), Q.active === e) {
|
|
7551
7562
|
let e = Q.thumbnail[t - 1]?.key || "";
|
|
@@ -7553,12 +7564,12 @@ function Om(e) {
|
|
|
7553
7564
|
}
|
|
7554
7565
|
J(Q.cache, Q, 0);
|
|
7555
7566
|
}
|
|
7556
|
-
function
|
|
7567
|
+
function Fm() {
|
|
7557
7568
|
Q.active = Q.page.path, Q.thumbnail = [Q.page], W.push(Q.page.path), J(Q.cache, Q, 0);
|
|
7558
7569
|
}
|
|
7559
7570
|
//#endregion
|
|
7560
7571
|
//#region components/thumbnail/index.vue?vue&type=script&lang.ts
|
|
7561
|
-
var
|
|
7572
|
+
var Im = d({
|
|
7562
7573
|
name: "UzThumbnail",
|
|
7563
7574
|
components: {
|
|
7564
7575
|
NTabs: Ie,
|
|
@@ -7580,29 +7591,29 @@ var Am = d({
|
|
|
7580
7591
|
setup(e, { slots: t }) {
|
|
7581
7592
|
let n = w(!!t.prefix), r = Je();
|
|
7582
7593
|
return y(() => {
|
|
7583
|
-
|
|
7594
|
+
Am(e.option), Q.active !== r.path && Mm(r.path, r.fullPath);
|
|
7584
7595
|
}), M(() => r, (e) => {
|
|
7585
|
-
Q.active === r.path &&
|
|
7596
|
+
Q.active === r.path && Mm(e.path, e.fullPath);
|
|
7586
7597
|
}, { deep: !0 }), M(() => e.option, (e) => {
|
|
7587
|
-
|
|
7598
|
+
Am(e);
|
|
7588
7599
|
}, { deep: !0 }), {
|
|
7589
7600
|
thumbnailStore: Q,
|
|
7590
7601
|
isSlotPrefix: n,
|
|
7591
7602
|
handleClose: (e) => {
|
|
7592
|
-
|
|
7603
|
+
Pm(e);
|
|
7593
7604
|
},
|
|
7594
7605
|
handleChange: (e) => {
|
|
7595
|
-
|
|
7606
|
+
jm(e);
|
|
7596
7607
|
},
|
|
7597
7608
|
handleClear: () => {
|
|
7598
|
-
|
|
7609
|
+
Fm();
|
|
7599
7610
|
}
|
|
7600
7611
|
};
|
|
7601
7612
|
}
|
|
7602
7613
|
});
|
|
7603
7614
|
//#endregion
|
|
7604
7615
|
//#region components/thumbnail/index.vue
|
|
7605
|
-
function
|
|
7616
|
+
function Lm(t, r, a, s, u, d) {
|
|
7606
7617
|
let f = D("NTabPane"), p = D("Trash"), m = D("NIcon"), h = D("NButton"), g = D("NPopconfirm"), _ = D("NFlex"), v = D("NTabs");
|
|
7607
7618
|
return x(), n(v, {
|
|
7608
7619
|
value: t.thumbnailStore.active,
|
|
@@ -7648,33 +7659,33 @@ function jm(t, r, a, s, u, d) {
|
|
|
7648
7659
|
"on-update:value"
|
|
7649
7660
|
]);
|
|
7650
7661
|
}
|
|
7651
|
-
var
|
|
7652
|
-
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover =
|
|
7653
|
-
var
|
|
7662
|
+
var Rm = /*#__PURE__*/ U(Im, [["render", Lm]]), zm = "#007AFF", Bm = "#0A84FF", Vm = "#FF9500", Hm = "#FF9F0A", Um = "#28CD41", Wm = "#32D74B", Gm = "#FFCC00", Km = "#FFD60A", qm = "#FF3B30", Jm = "#FF453A";
|
|
7663
|
+
V.common.cardColor = "#32323b", V.common.primaryColor = "#0A84FF", V.common.primaryColorHover = Bm, V.common.infoColor = "#FF9F0A", V.common.infoColorHover = Hm, V.common.successColor = "#32D74B", V.common.successColorHover = Wm, V.common.warningColor = "#FFD60A", V.common.successColorHover = Km, V.common.errorColor = "#FF453A", V.common.errorColorHover = Jm, V.common.borderRadius = "var(--borderRadius)", V.common.inputColor = "rgba(var(--input))", V.common.borderColor = "rgba(var(--border), 0.7)", V.DataTable.tdColor = "#2d2d31";
|
|
7664
|
+
var Ym = {
|
|
7654
7665
|
common: {
|
|
7655
7666
|
inputColor: "rgba(var(--input))",
|
|
7656
7667
|
borderColor: "rgba(var(--border), 0.7)",
|
|
7657
7668
|
borderRadius: "var(--borderRadius)",
|
|
7658
|
-
primaryColor:
|
|
7659
|
-
primaryColorHover:
|
|
7660
|
-
primaryColorPressed:
|
|
7661
|
-
primaryColorSuppl:
|
|
7662
|
-
infoColor:
|
|
7663
|
-
infoColorHover:
|
|
7664
|
-
infoColorPressed:
|
|
7665
|
-
infoColorSuppl:
|
|
7666
|
-
successColor:
|
|
7667
|
-
successColorHover:
|
|
7668
|
-
successColorPressed:
|
|
7669
|
-
successColorSuppl:
|
|
7670
|
-
warningColor:
|
|
7671
|
-
warningColorHover:
|
|
7672
|
-
warningColorPressed:
|
|
7673
|
-
warningColorSuppl:
|
|
7674
|
-
errorColor:
|
|
7675
|
-
errorColorHover:
|
|
7676
|
-
errorColorPressed:
|
|
7677
|
-
errorColorSuppl:
|
|
7669
|
+
primaryColor: zm,
|
|
7670
|
+
primaryColorHover: Bm,
|
|
7671
|
+
primaryColorPressed: zm,
|
|
7672
|
+
primaryColorSuppl: zm,
|
|
7673
|
+
infoColor: Vm,
|
|
7674
|
+
infoColorHover: Hm,
|
|
7675
|
+
infoColorPressed: Vm,
|
|
7676
|
+
infoColorSuppl: Vm,
|
|
7677
|
+
successColor: Um,
|
|
7678
|
+
successColorHover: Wm,
|
|
7679
|
+
successColorPressed: Um,
|
|
7680
|
+
successColorSuppl: Um,
|
|
7681
|
+
warningColor: Gm,
|
|
7682
|
+
warningColorHover: Km,
|
|
7683
|
+
warningColorPressed: Gm,
|
|
7684
|
+
warningColorSuppl: Gm,
|
|
7685
|
+
errorColor: qm,
|
|
7686
|
+
errorColorHover: Jm,
|
|
7687
|
+
errorColorPressed: qm,
|
|
7688
|
+
errorColorSuppl: qm,
|
|
7678
7689
|
cardColor: "#fff"
|
|
7679
7690
|
},
|
|
7680
7691
|
Button: { textColor: "rgb(var(--font))" },
|
|
@@ -7682,7 +7693,7 @@ var Um = {
|
|
|
7682
7693
|
DatePicker: { itemBorderRadius: "var(--borderRadius)" },
|
|
7683
7694
|
Notification: { borderRadius: "var(--borderRadius)" },
|
|
7684
7695
|
Radio: { boxShadow: "inset 0 0 0 1px rgb(var(--primary))" }
|
|
7685
|
-
},
|
|
7696
|
+
}, Xm = V, Zm = d({
|
|
7686
7697
|
name: "UzWrap",
|
|
7687
7698
|
components: { NConfigProvider: oe },
|
|
7688
7699
|
setup() {
|
|
@@ -7690,12 +7701,12 @@ var Um = {
|
|
|
7690
7701
|
zhCN: We,
|
|
7691
7702
|
dateZhCN: He,
|
|
7692
7703
|
commonStore: K,
|
|
7693
|
-
lightTheme:
|
|
7694
|
-
darkTheme:
|
|
7704
|
+
lightTheme: Ym,
|
|
7705
|
+
darkTheme: Xm
|
|
7695
7706
|
};
|
|
7696
7707
|
}
|
|
7697
|
-
}),
|
|
7698
|
-
function
|
|
7708
|
+
}), Qm = { style: { display: "none" } };
|
|
7709
|
+
function $m(e, t, r, o, s, c) {
|
|
7699
7710
|
let l = D("NConfigProvider");
|
|
7700
7711
|
return x(), n(l, {
|
|
7701
7712
|
theme: e.commonStore.theme ? { name: "darkTheme" } : null,
|
|
@@ -7705,7 +7716,7 @@ function qm(e, t, r, o, s, c) {
|
|
|
7705
7716
|
"inline-theme-disabled": "",
|
|
7706
7717
|
abstract: ""
|
|
7707
7718
|
}, {
|
|
7708
|
-
default: P(() => [E(e.$slots, "default"), (x(), i("svg",
|
|
7719
|
+
default: P(() => [E(e.$slots, "default"), (x(), i("svg", Qm, [...t[0] ||= [a("defs", null, [a("filter", { id: "uz-blurs" }, [
|
|
7709
7720
|
a("feOffset", {
|
|
7710
7721
|
result: "offOut",
|
|
7711
7722
|
in: "SourceGraphic",
|
|
@@ -7731,10 +7742,10 @@ function qm(e, t, r, o, s, c) {
|
|
|
7731
7742
|
"date-locale"
|
|
7732
7743
|
]);
|
|
7733
7744
|
}
|
|
7734
|
-
var
|
|
7745
|
+
var eh = /*#__PURE__*/ U(Zm, [["render", $m]]);
|
|
7735
7746
|
//#endregion
|
|
7736
7747
|
//#region components/ocr/preprocess.ts
|
|
7737
|
-
function
|
|
7748
|
+
function th(e) {
|
|
7738
7749
|
let t = new Int32Array(256), n = e.length;
|
|
7739
7750
|
for (let r = 0; r < n; r++) t[e[r]]++;
|
|
7740
7751
|
let r = 0;
|
|
@@ -7749,7 +7760,7 @@ function Ym(e) {
|
|
|
7749
7760
|
}
|
|
7750
7761
|
return c;
|
|
7751
7762
|
}
|
|
7752
|
-
function
|
|
7763
|
+
function nh(e, t) {
|
|
7753
7764
|
return new Promise((n, r) => {
|
|
7754
7765
|
let i = new Image();
|
|
7755
7766
|
i.crossOrigin = "anonymous", i.onload = () => {
|
|
@@ -7782,7 +7793,7 @@ function Xm(e, t) {
|
|
|
7782
7793
|
}
|
|
7783
7794
|
let u = t.threshold;
|
|
7784
7795
|
if (t.binarize) {
|
|
7785
|
-
t.autoThreshold && (u =
|
|
7796
|
+
t.autoThreshold && (u = th(l));
|
|
7786
7797
|
for (let e = 0, t = 0; e < s.length; e += 4, t++) {
|
|
7787
7798
|
let n = l[t] < u ? 0 : 255;
|
|
7788
7799
|
s[e] = n, s[e + 1] = n, s[e + 2] = n;
|
|
@@ -7805,7 +7816,7 @@ function Xm(e, t) {
|
|
|
7805
7816
|
}
|
|
7806
7817
|
//#endregion
|
|
7807
7818
|
//#region components/ocr/index.vue?vue&type=script&lang.ts
|
|
7808
|
-
var
|
|
7819
|
+
var rh = d({
|
|
7809
7820
|
name: "UzOcr",
|
|
7810
7821
|
components: {
|
|
7811
7822
|
NButton: L,
|
|
@@ -7842,7 +7853,7 @@ var Zm = d({
|
|
|
7842
7853
|
tessedit_char_blacklist: "|"
|
|
7843
7854
|
}), a.value), v = async () => {
|
|
7844
7855
|
if (f.value) try {
|
|
7845
|
-
let e = await
|
|
7856
|
+
let e = await nh(f.value, {
|
|
7846
7857
|
enabled: o.value,
|
|
7847
7858
|
scale: s.value,
|
|
7848
7859
|
grayscale: !0,
|
|
@@ -7879,7 +7890,7 @@ var Zm = d({
|
|
|
7879
7890
|
n.value = !0, r.value = e("OCR.analysis");
|
|
7880
7891
|
let a = t;
|
|
7881
7892
|
if (o.value || s.value > 1) try {
|
|
7882
|
-
let e = await
|
|
7893
|
+
let e = await nh(t, {
|
|
7883
7894
|
enabled: o.value,
|
|
7884
7895
|
scale: s.value,
|
|
7885
7896
|
grayscale: !0,
|
|
@@ -7941,25 +7952,25 @@ var Zm = d({
|
|
|
7941
7952
|
t: e
|
|
7942
7953
|
};
|
|
7943
7954
|
}
|
|
7944
|
-
}),
|
|
7955
|
+
}), ih = { class: "uz-ocr" }, ah = { class: "uz-ocr-left-col" }, oh = { class: "uz-ocr-upload-card" }, sh = { class: "uz-ocr-upload-title" }, ch = {
|
|
7945
7956
|
key: 1,
|
|
7946
7957
|
class: "uz-ocr-preview-panel"
|
|
7947
|
-
},
|
|
7958
|
+
}, lh = { class: "uz-ocr-preview-box" }, uh = ["src"], dh = {
|
|
7948
7959
|
key: 0,
|
|
7949
7960
|
class: "uz-ocr-threshold-badge"
|
|
7950
|
-
},
|
|
7961
|
+
}, fh = { class: "uz-ocr-preview-box" }, ph = ["src"], mh = { class: "uz-ocr-settings-form" }, hh = { class: "uz-settings-row" }, gh = { class: "uz-settings-label" }, _h = {
|
|
7951
7962
|
key: 0,
|
|
7952
7963
|
class: "uz-ocr-nested-settings animate-fade-in"
|
|
7953
|
-
},
|
|
7964
|
+
}, vh = { class: "uz-settings-row" }, yh = { class: "uz-settings-label" }, bh = { class: "uz-settings-row" }, xh = { class: "uz-settings-label" }, Sh = { class: "uz-ocr-right-col" }, Ch = { class: "uz-ocr-result-header" }, wh = { class: "uz-result-title" }, Th = {
|
|
7954
7965
|
key: 0,
|
|
7955
7966
|
class: "uz-ocr-empty-state"
|
|
7956
|
-
},
|
|
7967
|
+
}, Eh = { class: "uz-empty-text" }, Dh = {
|
|
7957
7968
|
key: 1,
|
|
7958
7969
|
class: "uz-ocr-result-tabs"
|
|
7959
7970
|
};
|
|
7960
|
-
function
|
|
7971
|
+
function Oh(e, t, o, s, u, d) {
|
|
7961
7972
|
let f = D("NUpload"), p = D("NTabPane"), m = D("NTabs"), h = D("NButton"), g = D("NSpace"), _ = D("NSwitch"), v = D("NSelect");
|
|
7962
|
-
return x(), i("div",
|
|
7973
|
+
return x(), i("div", ih, [a("div", ah, [e.rawImage ? (x(), i("div", ch, [l(m, {
|
|
7963
7974
|
value: e.imagePreviewTab,
|
|
7964
7975
|
"onUpdate:value": t[0] ||= (t) => e.imagePreviewTab = t,
|
|
7965
7976
|
type: "segment",
|
|
@@ -7969,21 +7980,21 @@ function Sh(e, t, o, s, u, d) {
|
|
|
7969
7980
|
name: "processed",
|
|
7970
7981
|
tab: e.t("OCR.previewProcessed")
|
|
7971
7982
|
}, {
|
|
7972
|
-
default: P(() => [a("div",
|
|
7983
|
+
default: P(() => [a("div", lh, [a("img", {
|
|
7973
7984
|
src: e.processedImage,
|
|
7974
7985
|
alt: "Processed Preview",
|
|
7975
7986
|
class: "uz-ocr-preview-img"
|
|
7976
|
-
}, null, 8,
|
|
7987
|
+
}, null, 8, uh), e.preEnabled && e.preBinarize ? (x(), i("div", dh, k(e.preAutoThreshold ? "大津自适应" : "手动") + "阈值: " + k(e.thresholdUsed), 1)) : r("", !0)])]),
|
|
7977
7988
|
_: 1
|
|
7978
7989
|
}, 8, ["tab"]), l(p, {
|
|
7979
7990
|
name: "raw",
|
|
7980
7991
|
tab: e.t("OCR.previewRaw")
|
|
7981
7992
|
}, {
|
|
7982
|
-
default: P(() => [a("div",
|
|
7993
|
+
default: P(() => [a("div", fh, [a("img", {
|
|
7983
7994
|
src: e.rawImage,
|
|
7984
7995
|
alt: "Raw Preview",
|
|
7985
7996
|
class: "uz-ocr-preview-img"
|
|
7986
|
-
}, null, 8,
|
|
7997
|
+
}, null, 8, ph)])]),
|
|
7987
7998
|
_: 1
|
|
7988
7999
|
}, 8, ["tab"])]),
|
|
7989
8000
|
_: 1
|
|
@@ -8017,7 +8028,7 @@ function Sh(e, t, o, s, u, d) {
|
|
|
8017
8028
|
"directory-dnd": "",
|
|
8018
8029
|
class: "uz-w-full"
|
|
8019
8030
|
}, {
|
|
8020
|
-
default: P(() => [a("div",
|
|
8031
|
+
default: P(() => [a("div", oh, [
|
|
8021
8032
|
t[4] ||= a("div", { class: "uz-ocr-upload-icon" }, [a("svg", {
|
|
8022
8033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8023
8034
|
viewBox: "0 0 24 24",
|
|
@@ -8025,27 +8036,27 @@ function Sh(e, t, o, s, u, d) {
|
|
|
8025
8036
|
height: "40",
|
|
8026
8037
|
fill: "currentColor"
|
|
8027
8038
|
}, [a("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })])], -1),
|
|
8028
|
-
a("div",
|
|
8039
|
+
a("div", sh, k(e.t("OCR.scan")), 1),
|
|
8029
8040
|
t[5] ||= a("div", { class: "uz-ocr-upload-subtitle" }, "拖拽或点击上传图片", -1)
|
|
8030
8041
|
])]),
|
|
8031
8042
|
_: 1
|
|
8032
|
-
}, 8, ["on-before-upload"])), a("div",
|
|
8043
|
+
}, 8, ["on-before-upload"])), a("div", mh, [a("div", hh, [a("span", gh, k(e.t("OCR.preprocess")), 1), l(_, {
|
|
8033
8044
|
value: e.preEnabled,
|
|
8034
8045
|
"onUpdate:value": t[1] ||= (t) => e.preEnabled = t,
|
|
8035
8046
|
size: "small"
|
|
8036
|
-
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div",
|
|
8047
|
+
}, null, 8, ["value"])]), e.preEnabled ? (x(), i("div", _h, [a("div", vh, [a("span", yh, k(e.t("OCR.scale")), 1), l(v, {
|
|
8037
8048
|
value: e.preScale,
|
|
8038
8049
|
"onUpdate:value": t[2] ||= (t) => e.preScale = t,
|
|
8039
8050
|
options: e.scaleOptions,
|
|
8040
8051
|
size: "small",
|
|
8041
8052
|
class: "uz-settings-select"
|
|
8042
|
-
}, null, 8, ["value", "options"])]), a("div",
|
|
8053
|
+
}, null, 8, ["value", "options"])]), a("div", bh, [a("span", xh, k(e.t("OCR.contrast")), 1), l(_, {
|
|
8043
8054
|
value: e.preContrast,
|
|
8044
8055
|
"onUpdate:value": t[3] ||= (t) => e.preContrast = t,
|
|
8045
8056
|
size: "small"
|
|
8046
|
-
}, null, 8, ["value"])])])) : r("", !0)])]), a("div",
|
|
8057
|
+
}, null, 8, ["value"])])])) : r("", !0)])]), a("div", Sh, [a("div", Ch, [a("span", wh, "识别结果 (" + k(e.text.length) + " 行)", 1)]), e.text.length ? (x(), i("div", Dh, k(e.fullText), 1)) : (x(), i("div", Th, [t[7] ||= a("div", { class: "uz-empty-icon" }, "📝", -1), a("div", Eh, k(e.ocrLoading ? "正在读取图像解析文字,请稍候..." : "暂无识别数据,请上传图像"), 1)]))])]);
|
|
8047
8058
|
}
|
|
8048
|
-
var
|
|
8059
|
+
var kh = /*#__PURE__*/ U(rh, [["render", Oh], ["__scopeId", "data-v-c7224ff5"]]), Ah = /* @__PURE__ */ ut({
|
|
8049
8060
|
AccessPoint: () => ht,
|
|
8050
8061
|
Activity: () => yt,
|
|
8051
8062
|
Adjustments: () => Ct,
|
|
@@ -8174,54 +8185,54 @@ var Ch = /*#__PURE__*/ U(Zm, [["render", Sh], ["__scopeId", "data-v-c7224ff5"]])
|
|
|
8174
8185
|
UserPlus: () => Nl,
|
|
8175
8186
|
Users: () => Ll,
|
|
8176
8187
|
UzActionButton: () => dt,
|
|
8177
|
-
UzBack: () =>
|
|
8178
|
-
UzCamera: () =>
|
|
8179
|
-
UzCircle: () =>
|
|
8180
|
-
UzDraggableForm: () =>
|
|
8181
|
-
UzForm: () =>
|
|
8182
|
-
UzFormItem: () =>
|
|
8183
|
-
UzFormItemImage: () =>
|
|
8184
|
-
UzFormItemTimesPicker: () =>
|
|
8185
|
-
UzFormItemUpload: () =>
|
|
8188
|
+
UzBack: () => Qd,
|
|
8189
|
+
UzCamera: () => lp,
|
|
8190
|
+
UzCircle: () => kf,
|
|
8191
|
+
UzDraggableForm: () => Hf,
|
|
8192
|
+
UzForm: () => Lf,
|
|
8193
|
+
UzFormItem: () => Nf,
|
|
8194
|
+
UzFormItemImage: () => Qf,
|
|
8195
|
+
UzFormItemTimesPicker: () => np,
|
|
8196
|
+
UzFormItemUpload: () => Jf,
|
|
8186
8197
|
UzIcon: () => Lu,
|
|
8187
|
-
UzOcr: () =>
|
|
8188
|
-
UzSearchBar: () =>
|
|
8189
|
-
UzSearchMobileBar: () =>
|
|
8190
|
-
UzSpin: () =>
|
|
8191
|
-
UzTable: () =>
|
|
8192
|
-
UzTableChild: () =>
|
|
8193
|
-
UzTableDrawer: () =>
|
|
8194
|
-
UzTableMobile: () =>
|
|
8195
|
-
UzTableQuestChild: () =>
|
|
8196
|
-
UzThumbnail: () =>
|
|
8197
|
-
UzWrap: () =>
|
|
8198
|
+
UzOcr: () => kh,
|
|
8199
|
+
UzSearchBar: () => hp,
|
|
8200
|
+
UzSearchMobileBar: () => xp,
|
|
8201
|
+
UzSpin: () => Hp,
|
|
8202
|
+
UzTable: () => Qp,
|
|
8203
|
+
UzTableChild: () => om,
|
|
8204
|
+
UzTableDrawer: () => ym,
|
|
8205
|
+
UzTableMobile: () => km,
|
|
8206
|
+
UzTableQuestChild: () => fm,
|
|
8207
|
+
UzThumbnail: () => Rm,
|
|
8208
|
+
UzWrap: () => eh,
|
|
8198
8209
|
X: () => Vl,
|
|
8199
8210
|
commonStore: () => K,
|
|
8200
|
-
fnActionReduction: () =>
|
|
8201
|
-
fnActionSimplify: () =>
|
|
8202
|
-
fnAddThumbnail: () =>
|
|
8203
|
-
fnClearAllThumbnail: () =>
|
|
8204
|
-
fnDeleteThumbnail: () =>
|
|
8205
|
-
fnGetTableData: () =>
|
|
8206
|
-
fnOptionReduction: () =>
|
|
8207
|
-
fnOptionSimplify: () =>
|
|
8208
|
-
fnPrepareFormData: () =>
|
|
8209
|
-
fnPrepareTableData: () =>
|
|
8210
|
-
fnRenderAction: () =>
|
|
8211
|
+
fnActionReduction: () => Yd,
|
|
8212
|
+
fnActionSimplify: () => Jd,
|
|
8213
|
+
fnAddThumbnail: () => Nm,
|
|
8214
|
+
fnClearAllThumbnail: () => Fm,
|
|
8215
|
+
fnDeleteThumbnail: () => Pm,
|
|
8216
|
+
fnGetTableData: () => jp,
|
|
8217
|
+
fnOptionReduction: () => Lp,
|
|
8218
|
+
fnOptionSimplify: () => Ip,
|
|
8219
|
+
fnPrepareFormData: () => Rp,
|
|
8220
|
+
fnPrepareTableData: () => zp,
|
|
8221
|
+
fnRenderAction: () => Vd,
|
|
8211
8222
|
fnSetLang: () => Vu,
|
|
8212
8223
|
fnSetTheme: () => Hu,
|
|
8213
|
-
fnSetThumbnail: () =>
|
|
8214
|
-
fnTableReduction: () =>
|
|
8215
|
-
fnTableSimplify: () =>
|
|
8216
|
-
fnTriggersReduction: () =>
|
|
8217
|
-
fnTriggersSimplify: () =>
|
|
8224
|
+
fnSetThumbnail: () => jm,
|
|
8225
|
+
fnTableReduction: () => Np,
|
|
8226
|
+
fnTableSimplify: () => Mp,
|
|
8227
|
+
fnTriggersReduction: () => Fp,
|
|
8228
|
+
fnTriggersSimplify: () => Pp,
|
|
8218
8229
|
i18n: () => G
|
|
8219
|
-
}),
|
|
8220
|
-
function
|
|
8221
|
-
|
|
8230
|
+
}), jh = 3840, Mh = 2160, Nh = C({ scale: 1 });
|
|
8231
|
+
function Ph(e, t) {
|
|
8232
|
+
jh = e, Mh = t;
|
|
8222
8233
|
}
|
|
8223
|
-
function
|
|
8224
|
-
let e = 1, t = window.innerWidth, n = window.innerHeight, r =
|
|
8234
|
+
function Fh() {
|
|
8235
|
+
let e = 1, t = window.innerWidth, n = window.innerHeight, r = jh, i = Mh, a = parseFloat((r / i).toFixed(5));
|
|
8225
8236
|
if (parseFloat((t / n).toFixed(5)) > a) {
|
|
8226
8237
|
let t = parseFloat((n * a / r).toFixed(5));
|
|
8227
8238
|
e = t > 1 ? 1 : t;
|
|
@@ -8229,17 +8240,17 @@ function kh() {
|
|
|
8229
8240
|
let n = parseFloat((t / a / i).toFixed(5));
|
|
8230
8241
|
e = n > 1 ? 1 : n;
|
|
8231
8242
|
}
|
|
8232
|
-
|
|
8243
|
+
Nh.scale = e;
|
|
8233
8244
|
}
|
|
8234
|
-
function
|
|
8235
|
-
let e = $e(
|
|
8245
|
+
function Ih() {
|
|
8246
|
+
let e = $e(Fh, 200);
|
|
8236
8247
|
return e(), window.addEventListener("resize", e), () => {
|
|
8237
|
-
|
|
8248
|
+
jh = 3840, Mh = 2160, window.removeEventListener("resize", e);
|
|
8238
8249
|
};
|
|
8239
8250
|
}
|
|
8240
8251
|
//#endregion
|
|
8241
8252
|
//#region components/hooks/useDebounceFn.ts
|
|
8242
|
-
function
|
|
8253
|
+
function Lh(e, t = 1e3) {
|
|
8243
8254
|
let n = $e(e, t);
|
|
8244
8255
|
return {
|
|
8245
8256
|
run: n,
|
|
@@ -8249,7 +8260,7 @@ function jh(e, t = 1e3) {
|
|
|
8249
8260
|
}
|
|
8250
8261
|
//#endregion
|
|
8251
8262
|
//#region components/hooks/useThrottleFn.ts
|
|
8252
|
-
function
|
|
8263
|
+
function Rh(e, n = 1e3) {
|
|
8253
8264
|
let r = w(e), i = t(() => et((...e) => r.value([...e]), n));
|
|
8254
8265
|
return b(() => {
|
|
8255
8266
|
i.value.cancel();
|
|
@@ -8261,16 +8272,16 @@ function Mh(e, n = 1e3) {
|
|
|
8261
8272
|
}
|
|
8262
8273
|
//#endregion
|
|
8263
8274
|
//#region components/hooks/useLocalStorage.ts
|
|
8264
|
-
function
|
|
8275
|
+
function zh(e, t) {
|
|
8265
8276
|
return [w(Y(e, t?.defaultValue)), (n) => {
|
|
8266
|
-
n === void 0 ?
|
|
8277
|
+
n === void 0 ? od(e) : J(e, n, t?.expired || "1 Day");
|
|
8267
8278
|
}];
|
|
8268
8279
|
}
|
|
8269
8280
|
//#endregion
|
|
8270
8281
|
//#region components/hooks/useQuery.ts
|
|
8271
|
-
function
|
|
8282
|
+
function Bh(e, t, n) {
|
|
8272
8283
|
let r = `useQuery-${e}`, i = w(), a = w(), o = w(), s = w(!1), c = w("idle"), l = w(), u = w(0), d = w(0), f = () => {
|
|
8273
|
-
|
|
8284
|
+
Td(), clearInterval(o.value), o.value = null;
|
|
8274
8285
|
}, p = async () => {
|
|
8275
8286
|
if (!s.value) {
|
|
8276
8287
|
h(!0, "loading");
|
|
@@ -8306,7 +8317,7 @@ function Ph(e, t, n) {
|
|
|
8306
8317
|
}, g = (e) => {
|
|
8307
8318
|
l.value = e;
|
|
8308
8319
|
}, _ = () => {
|
|
8309
|
-
|
|
8320
|
+
Td(), i.value && i.value();
|
|
8310
8321
|
}, y = () => {
|
|
8311
8322
|
_(), p(), n?.pollingInterval && (f(), o.value = setInterval(() => {
|
|
8312
8323
|
p();
|
|
@@ -8334,26 +8345,26 @@ function Ph(e, t, n) {
|
|
|
8334
8345
|
}
|
|
8335
8346
|
//#endregion
|
|
8336
8347
|
//#region package.json
|
|
8337
|
-
var
|
|
8338
|
-
async function
|
|
8348
|
+
var Vh = "0.1.59", Hh;
|
|
8349
|
+
async function Uh() {
|
|
8339
8350
|
let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
|
|
8340
8351
|
method: "HEAD",
|
|
8341
8352
|
cache: "no-cache"
|
|
8342
8353
|
});
|
|
8343
8354
|
return e.headers.get("etag") || e.headers.get("last-modified");
|
|
8344
8355
|
}
|
|
8345
|
-
async function
|
|
8346
|
-
let e = await
|
|
8347
|
-
|
|
8356
|
+
async function Wh() {
|
|
8357
|
+
let e = await Uh();
|
|
8358
|
+
Hh !== e && Uu(!0);
|
|
8348
8359
|
}
|
|
8349
|
-
async function
|
|
8350
|
-
|
|
8351
|
-
|
|
8360
|
+
async function Gh() {
|
|
8361
|
+
Hh = await Uh(), window.versionMonitor && clearInterval(window.versionMonitor), window.versionMonitor = setInterval(() => {
|
|
8362
|
+
Wh();
|
|
8352
8363
|
}, 60 * 1e3);
|
|
8353
8364
|
}
|
|
8354
8365
|
//#endregion
|
|
8355
8366
|
//#region components/monitor.ts
|
|
8356
|
-
var
|
|
8367
|
+
var Kh = "", qh, $ = navigator.userAgent.toLocaleUpperCase(), Jh = () => {
|
|
8357
8368
|
let e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, n = /WINDOWS NT 7.[\d]+/, r = /WINDOWS NT 10.[\d]+/, i = /WINDOWS NT 11.[\d]+/, a = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, c = /MAC/;
|
|
8358
8369
|
if (e.test($)) return "Windows XP";
|
|
8359
8370
|
if (t.test($)) return "Windows 7";
|
|
@@ -8377,7 +8388,7 @@ var Bh = "", Vh, $ = navigator.userAgent.toLocaleUpperCase(), Hh = () => {
|
|
|
8377
8388
|
return `MAC ${e ? e[0].replace(/_/g, ".").replace(/ /g, "") : ""}`;
|
|
8378
8389
|
}
|
|
8379
8390
|
return "Other Platform";
|
|
8380
|
-
},
|
|
8391
|
+
}, Yh = () => {
|
|
8381
8392
|
let e = /MSIE [\d]+/, t = /EDG\/[\d.]+/, n = /FIREFOX\/[\d.]+/, r = /CHROME\/[\d.]+/, i = /SAFARI\/[\d.]+/, a = /OPR\/[\d.]+/, o = /SE \d/, s = /UCBROWSER/, c = /ANDROID [\d.]+/;
|
|
8382
8393
|
if (e.test($) && o.test($)) return "SogouIE";
|
|
8383
8394
|
if (o.test($)) return "SogouFast";
|
|
@@ -8406,64 +8417,64 @@ var Bh = "", Vh, $ = navigator.userAgent.toLocaleUpperCase(), Hh = () => {
|
|
|
8406
8417
|
}
|
|
8407
8418
|
return "Others";
|
|
8408
8419
|
};
|
|
8409
|
-
function
|
|
8420
|
+
function Xh(e, t, n, r = !1) {
|
|
8410
8421
|
if (e !== void 0 && (t in e || r)) {
|
|
8411
8422
|
let r = e[t], i = n(r);
|
|
8412
8423
|
typeof i == "function" && (e[t] = i);
|
|
8413
8424
|
}
|
|
8414
8425
|
}
|
|
8415
|
-
function
|
|
8426
|
+
function Zh(e, t, n, r = !1) {
|
|
8416
8427
|
e.addEventListener(t, n, r);
|
|
8417
8428
|
}
|
|
8418
|
-
function
|
|
8429
|
+
function Qh() {
|
|
8419
8430
|
if (!("XMLHttpRequest" in window)) return;
|
|
8420
8431
|
let e = XMLHttpRequest.prototype;
|
|
8421
|
-
|
|
8432
|
+
Xh(e, "open", (e) => function(...t) {
|
|
8422
8433
|
this.xhr = {
|
|
8423
8434
|
method: t[0].toUpperCase(),
|
|
8424
8435
|
url: t[1],
|
|
8425
8436
|
startTime: Date.now(),
|
|
8426
8437
|
type: "xhr"
|
|
8427
|
-
},
|
|
8428
|
-
this.xhr.url.indexOf("log/submit") === -1 &&
|
|
8438
|
+
}, Zh(this, "error", function() {
|
|
8439
|
+
this.xhr.url.indexOf("log/submit") === -1 && eg(3, this.xhr.url, `Request-${this.status}`);
|
|
8429
8440
|
}), e.apply(this, t);
|
|
8430
|
-
}),
|
|
8441
|
+
}), Xh(e, "send", (e) => function(...t) {
|
|
8431
8442
|
let { url: n } = this.xhr;
|
|
8432
8443
|
this.ontimeout = function() {
|
|
8433
|
-
|
|
8434
|
-
},
|
|
8435
|
-
(this.status === 500 || this.status === 405) &&
|
|
8444
|
+
eg(3, n, "Network Timeout");
|
|
8445
|
+
}, Zh(this, "loadend", function() {
|
|
8446
|
+
(this.status === 500 || this.status === 405) && eg(3, n, `${t[0]}-${this.status}-${this.response}`);
|
|
8436
8447
|
}), e.apply(this, t);
|
|
8437
8448
|
});
|
|
8438
8449
|
}
|
|
8439
|
-
function
|
|
8440
|
-
t && (
|
|
8441
|
-
|
|
8450
|
+
function $h(e, t, n) {
|
|
8451
|
+
t && (Kh = t, qh = n, Qh(), e.config.errorHandler = (e) => {
|
|
8452
|
+
eg(2, window.location.href, e.message);
|
|
8442
8453
|
}, window.addEventListener("unhandledrejection", function(e) {
|
|
8443
8454
|
e.preventDefault();
|
|
8444
8455
|
}));
|
|
8445
8456
|
}
|
|
8446
|
-
var
|
|
8447
|
-
let r =
|
|
8457
|
+
var eg = (e, t, n) => {
|
|
8458
|
+
let r = qh ? JSON.stringify(qh()) : "", i = {
|
|
8448
8459
|
type: e,
|
|
8449
8460
|
time: Date.now(),
|
|
8450
8461
|
url: encodeURIComponent(t || location.href),
|
|
8451
|
-
browser:
|
|
8452
|
-
platform:
|
|
8462
|
+
browser: Yh(),
|
|
8463
|
+
platform: Jh(),
|
|
8453
8464
|
message: n,
|
|
8454
8465
|
info: r
|
|
8455
8466
|
}, a = window.btoa(JSON.stringify(i));
|
|
8456
|
-
if (window.navigator.sendBeacon) window.navigator.sendBeacon(
|
|
8467
|
+
if (window.navigator.sendBeacon) window.navigator.sendBeacon(Kh, a);
|
|
8457
8468
|
else {
|
|
8458
8469
|
let e = document.body, t = new Image();
|
|
8459
|
-
t.src =
|
|
8470
|
+
t.src = Kh + "?data=" + a, t.onload = t.onerror = function() {
|
|
8460
8471
|
e.removeChild(t), t = null;
|
|
8461
8472
|
}, e.append(t);
|
|
8462
8473
|
}
|
|
8463
8474
|
};
|
|
8464
8475
|
//#endregion
|
|
8465
8476
|
//#region components/create.ts
|
|
8466
|
-
function
|
|
8477
|
+
function tg({ components: e = [] } = {}) {
|
|
8467
8478
|
let t = [];
|
|
8468
8479
|
function n(e, t, n) {
|
|
8469
8480
|
e.component(t) || e.component(t, n);
|
|
@@ -8476,16 +8487,16 @@ function Yh({ components: e = [] } = {}) {
|
|
|
8476
8487
|
});
|
|
8477
8488
|
}), i)) {
|
|
8478
8489
|
let { title: e = "杭州宇臻智能", monitor: t = !1, monitorFn: n, version: a = !0, language: o = !1, local: s = "zh-CN" } = i, c = Y("theme", !1), l = Y("lang", s);
|
|
8479
|
-
Wu(e), Bu(o), Vu(l), Hu(c), G.global.locale.value = l, a &&
|
|
8490
|
+
Wu(e), Bu(o), Vu(l), Hu(c), G.global.locale.value = l, a && Gh(), t && $h(r, t, n);
|
|
8480
8491
|
}
|
|
8481
8492
|
}
|
|
8482
8493
|
return {
|
|
8483
|
-
version:
|
|
8494
|
+
version: Vh,
|
|
8484
8495
|
install: r
|
|
8485
8496
|
};
|
|
8486
8497
|
}
|
|
8487
8498
|
//#endregion
|
|
8488
8499
|
//#region components/preset.ts
|
|
8489
|
-
var
|
|
8500
|
+
var ng = tg({ components: Object.keys(Ah).map((e) => Ah[e]) }), rg = ng.install;
|
|
8490
8501
|
//#endregion
|
|
8491
|
-
export { ht as AccessPoint, yt as Activity, Ct as Adjustments, Dt as AdjustmentsHorizontal, jt as Affiliate, Ft as Alarm, zt as AlertCircle, Ut as ApiApp, Zt as AppWindow, qt as Apps, tn as Archive, on as ArrowNarrowLeft, un as AspectRatio, mn as Atom, vn as Atom2, Sn as Award,
|
|
8502
|
+
export { ht as AccessPoint, yt as Activity, Ct as Adjustments, Dt as AdjustmentsHorizontal, jt as Affiliate, Ft as Alarm, zt as AlertCircle, Ut as ApiApp, Zt as AppWindow, qt as Apps, tn as Archive, on as ArrowNarrowLeft, un as AspectRatio, mn as Atom, vn as Atom2, Sn as Award, Dd as BLOB, En as Barcode, An as Basket, Pn as Bell, Rn as Bluetooth, Hn as Book2, Cu as Books, Kn as Box, Xn as BrandAsana, Fu as BrandStackoverflow, er as Briefcase, ir as Building, cr as BuildingArch, su as BuildingWarehouse, Od as CUSTOM, gr as Calculator, br as Calendar, wr as CalendarPlus, Or as CalendarStats, Mr as Camera, Ir as CaretDown, Br as CaretUp, Wr as ChartArea, Jr as ChartBar, Qr as ChartBubble, ni as ChartDonut, oi as ChartLine, ui as ChartPie, mi as ChartRadar, $l as CheckMark, vi as Checkbox, Si as CheckupList, Yl as CircleMinus, Ei as Clipboard, Ai as ClipboardCheck, Pi as ClipboardList, Ri as ClipboardPlus, Hi as Clock, Ki as Cloud, Xi as CloudDownload, ea as CloudUpload, ia as Command, Du as Confetti, hu as Container, ca as Copy, fr as Cpu, fa as CreditCard, ga as Crosshair, ba as CurrencyYen, yu as Dashboard, wa as Database, Oa as DatabaseExport, Ma as DatabaseImport, Ia as DeviceAnalytics, Ba as DeviceDesktop, Wa as DeviceDesktopAnalytics, Ja as DeviceLaptop, Qa as DeviceMobile, no as Diamond, oo as Dots, uo as DotsVertical, ho as Edit, yo as Eraser, Co as Eye, kd as FILE, Do as File, jo as FileAlert, Fo as FileAnalytics, zo as FileText, Uo as Filter, Ed as GET, qo as GitCompare, Zo as GitPullRequest, ts as GridDots, as as Home, Ru as IconList, ls as Id, ps as LayoutSidebarLeftCollapse, _s as LayoutSidebarLeftExpand, xs as Link, Ts as List, ks as ListCheck, Ns as ListDetails, Ls as Mail, Vs as Map, Gs as MapPin, du as Menu2, ru as Message2, ju as MinusRound, Ys as MoonStars, Z as POST, $s as Paperclip, rc as Photo, sc as PhotoOff, dc as Plus, hc as Presentation, yc as PresentationAnalytics, Cc as Printer, Dc as Qrcode, jc as Refresh, Fc as Report, zc as ReportAnalytics, Uc as ReportMoney, qc as ReportSearch, Zc as Search, tl as Settings, al as SmartHome, ll as Sun, pl as TransferIn, _l as TransferOut, xl as Trash, Tl as User, Gl as UserCircle, kl as UserMinus, Nl as UserPlus, Ll as Users, dt as UzActionButton, Qd as UzBack, lp as UzCamera, kf as UzCircle, Hf as UzDraggableForm, Lf as UzForm, Nf as UzFormItem, Qf as UzFormItemImage, np as UzFormItemTimesPicker, Jf as UzFormItemUpload, Lu as UzIcon, kh as UzOcr, hp as UzSearchBar, xp as UzSearchMobileBar, Hp as UzSpin, Qp as UzTable, om as UzTableChild, ym as UzTableDrawer, km as UzTableMobile, fm as UzTableQuestChild, Rm as UzThumbnail, eh as UzWrap, Vl as X, K as commonStore, tg as create, Xm as darkTheme, ng as default, Yd as fnActionReduction, Jd as fnActionSimplify, Nm as fnAddThumbnail, Td as fnCancelFetch, Fm as fnClearAllThumbnail, Fh as fnComputedScale, zu as fnCreateRouter, od as fnDelStorage, cd as fnDelStorageAll, sd as fnDelStorageByPrefix, Pm as fnDeleteThumbnail, ad as fnDialog, q as fnErrorLog, vd as fnFilterByPinyinInitials, dd as fnFormatTime, hd as fnFormatUnits, md as fnFullScreen, Y as fnGetStorage, jp as fnGetTableData, Ih as fnListenerScale, id as fnNotification, Lp as fnOptionReduction, Ip as fnOptionSimplify, ud as fnPageModel2Naive, Rp as fnPrepareFormData, zp as fnPrepareTableData, Vd as fnRenderAction, ld as fnScrollTop, Vu as fnSetLang, Ph as fnSetNormalWidthAndHeight, J as fnSetStorage, Hu as fnSetTheme, jm as fnSetThumbnail, Np as fnTableReduction, Mp as fnTableSimplify, pd as fnThrottle, fd as fnTitle, Fp as fnTriggersReduction, Pp as fnTriggersSimplify, G as i18n, rg as install, Ym as lightTheme, W as router, Nh as scaleStore, Lh as useDebounceFn, zh as useLocalStorage, Bh as useQuery, Rh as useThrottleFn };
|