@gonsin/gview 2.0.47 → 2.0.49
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/CHANGELOG.md +6 -1
- package/dist/index.mjs +635 -627
- package/dist/types/stores/setting.d.ts +1 -0
- package/dist/types/stores/tabMenu.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var va = Object.defineProperty;
|
|
2
2
|
var ya = (o, e, t) => e in o ? va(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var De = (o, e, t) => (ya(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { defineComponent as ae, ref as j, computed as _, resolveComponent as G, openBlock as
|
|
4
|
+
import { defineComponent as ae, ref as j, computed as _, resolveComponent as G, openBlock as y, createBlock as L, normalizeClass as R, unref as i, withCtx as T, createElementBlock as W, Fragment as ke, renderList as Ae, createVNode as V, createElementVNode as ee, createTextVNode as re, toDisplayString as J, createCommentVNode as K, nextTick as ba, normalizeStyle as Gt, renderSlot as $e, watch as we, withModifiers as Ot, onMounted as Fe, onBeforeUnmount as ht, isRef as Bo, Transition as wa, mergeProps as st, createSlots as Nt, normalizeProps as no, guardReactiveProps as ao, inject as qe, useSlots as Nn, resolveDynamicComponent as Ta, TransitionGroup as Ma, toRefs as Ca, provide as Ln, reactive as Co, defineAsyncComponent as ka, onBeforeMount as Kt, toRaw as Ho, shallowRef as Ia } from "vue";
|
|
5
5
|
import { useRouter as pt, useRoute as At } from "vue-router";
|
|
6
|
-
import { defineStore as
|
|
6
|
+
import { defineStore as po, storeToRefs as Sa } from "pinia";
|
|
7
7
|
import { createI18n as Na, useI18n as La } from "vue-i18n";
|
|
8
|
-
import
|
|
8
|
+
import zt from "axios";
|
|
9
9
|
import rt from "dayjs";
|
|
10
|
-
import { MessagePlugin as ue, Button as xa, Loading as Aa, Tooltip as bt, Link as Ea, Tree as Da, Card as Va, DialogPlugin as
|
|
11
|
-
import { RefreshIcon as xn, ArrowLeftIcon as Ba, ArrowRightIcon as Pa, CloseCircleIcon as Ua, MenuFoldIcon as _a, MenuUnfoldIcon as Fa, PoweroffIcon as $a, UserCircleIcon as Oa, ChevronDownIcon as Ra, SettingIcon as An, AppIcon as
|
|
12
|
-
import
|
|
10
|
+
import { MessagePlugin as ue, Button as xa, Loading as Aa, Tooltip as bt, Link as Ea, Tree as Da, Card as Va, DialogPlugin as lo } from "tdesign-vue-next";
|
|
11
|
+
import { RefreshIcon as xn, ArrowLeftIcon as Ba, ArrowRightIcon as Pa, CloseCircleIcon as Ua, MenuFoldIcon as _a, MenuUnfoldIcon as Fa, PoweroffIcon as $a, UserCircleIcon as Oa, ChevronDownIcon as Ra, SettingIcon as An, AppIcon as Po, UploadIcon as ja, CheckCircleFilledIcon as Ga, PlayCircleFilledIcon as Ka, PauseCircleFilledIcon as za, LinkIcon as Ha, ErrorCircleFilledIcon as Wa, CloseIcon as Ya, FileImageIcon as Ft, FilePdfIcon as En, VideoIcon as Uo, FileIconIcon as _o, FolderOpenIcon as qa, FolderIcon as Qa, UserIcon as ko, BrowseIcon as Xa, ChevronRightIcon as Za, ChevronUpIcon as Ja, MoveIcon as el } from "tdesign-icons-vue-next";
|
|
12
|
+
import ro from "number-precision";
|
|
13
13
|
import { customAlphabet as tl } from "nanoid";
|
|
14
14
|
import Dn from "qs";
|
|
15
15
|
import ol from "nprogress";
|
|
16
16
|
import { default as Nc } from "nprogress";
|
|
17
|
-
import { get as ce, set as it, cloneDeep as
|
|
17
|
+
import { get as ce, set as it, cloneDeep as $t } from "lodash-es";
|
|
18
18
|
import { Toolbar as nl, Editor as al } from "@wangeditor/editor-for-vue";
|
|
19
19
|
import ft from "mustache";
|
|
20
20
|
import nn from "he";
|
|
@@ -24,16 +24,16 @@ function He(o, e, t) {
|
|
|
24
24
|
a.component(e || l || n.name, o), t && a.directive(t.name, t.comp);
|
|
25
25
|
}, n;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const Io = "config", an = "themeConfig", ll = "user", so = "langConfig", rc = "menu", ln = "initTabMenuList", rn = "tabMenu", Wt = "sideMenuConfig", sn = "token", cn = "tokenExpiredTime", ic = "dataId", Rt = "sessionId", rl = {
|
|
28
28
|
brandTheme: "default",
|
|
29
29
|
// 主题色
|
|
30
30
|
displayMode: "light"
|
|
31
31
|
// 主题模式 light | dark | auto
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function co(o, e, t) {
|
|
34
34
|
return o.filter((n) => n.parent === e).map((n) => ({
|
|
35
35
|
...n,
|
|
36
|
-
children:
|
|
36
|
+
children: co(o, n.name, t + 1),
|
|
37
37
|
path: n.url,
|
|
38
38
|
// 菜单路径
|
|
39
39
|
alias: n.title,
|
|
@@ -114,7 +114,7 @@ class Pn {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
const Ke = new Pn("session"), Ge = new Pn("local");
|
|
117
|
-
class
|
|
117
|
+
class uo {
|
|
118
118
|
//加密
|
|
119
119
|
/*
|
|
120
120
|
* {param} crytoJsKey 秘钥
|
|
@@ -2248,49 +2248,49 @@ function sl(o) {
|
|
|
2248
2248
|
return (e = il.find((t) => t.code.toLowerCase() == o.toLowerCase())) == null ? void 0 : e.locale;
|
|
2249
2249
|
}
|
|
2250
2250
|
async function cl() {
|
|
2251
|
-
const { data: o } = await
|
|
2251
|
+
const { data: o } = await zt.create()({
|
|
2252
2252
|
method: "POST",
|
|
2253
2253
|
url: "https://api.ip.sb/geoip"
|
|
2254
2254
|
});
|
|
2255
2255
|
return o;
|
|
2256
2256
|
}
|
|
2257
2257
|
async function dn(o, e) {
|
|
2258
|
-
const { data: t } = await
|
|
2258
|
+
const { data: t } = await zt.create()({
|
|
2259
2259
|
method: "POST",
|
|
2260
2260
|
url: `/api/i18n/${o}/${e}`
|
|
2261
2261
|
});
|
|
2262
2262
|
return t;
|
|
2263
2263
|
}
|
|
2264
2264
|
async function ul(o, e, t) {
|
|
2265
|
-
const { data: n } = await
|
|
2265
|
+
const { data: n } = await zt.create()({
|
|
2266
2266
|
method: "PUT",
|
|
2267
2267
|
url: `/api/i18n/${o}/${e}?keyword=${t}`
|
|
2268
2268
|
});
|
|
2269
2269
|
return n;
|
|
2270
2270
|
}
|
|
2271
|
-
const
|
|
2271
|
+
const Fo = Ge.getItem(so) || "", dt = {
|
|
2272
2272
|
IP: "",
|
|
2273
2273
|
PORT: "",
|
|
2274
2274
|
PROJECT: "venus",
|
|
2275
2275
|
KEY: "nusTIdVQFhQs2lrz"
|
|
2276
|
-
},
|
|
2276
|
+
}, $o = [];
|
|
2277
2277
|
function dl(o) {
|
|
2278
|
-
const { locale: e } =
|
|
2279
|
-
return e.value = o, Ge.setItem(
|
|
2278
|
+
const { locale: e } = Ht.global;
|
|
2279
|
+
return e.value = o, Ge.setItem(so, o), console.log("当前语言为", o), o;
|
|
2280
2280
|
}
|
|
2281
|
-
async function
|
|
2281
|
+
async function mo(o) {
|
|
2282
2282
|
let e = "";
|
|
2283
|
-
const { setLocaleMessage: t } =
|
|
2283
|
+
const { setLocaleMessage: t } = Ht.global, n = await dn(dt.PROJECT, o);
|
|
2284
2284
|
let a = "";
|
|
2285
2285
|
if (typeof n != "object")
|
|
2286
|
-
e =
|
|
2286
|
+
e = uo.decrypt(dt.KEY, n), a = o;
|
|
2287
2287
|
else if (o.includes("-")) {
|
|
2288
2288
|
const l = o.split("-")[0], r = await dn(dt.PROJECT, l);
|
|
2289
|
-
typeof r != "object" && (e =
|
|
2289
|
+
typeof r != "object" && (e = uo.decrypt(dt.KEY, r), a = l);
|
|
2290
2290
|
}
|
|
2291
2291
|
if ((e ?? "") != "") {
|
|
2292
2292
|
const l = JSON.parse(e);
|
|
2293
|
-
|
|
2293
|
+
!$o.includes(a) && $o.push(a), t(a, l.data), dl(a);
|
|
2294
2294
|
} else
|
|
2295
2295
|
throw `未找到 ${o}`;
|
|
2296
2296
|
}
|
|
@@ -2301,26 +2301,26 @@ async function ml() {
|
|
|
2301
2301
|
if (e && e.country_code) {
|
|
2302
2302
|
const { country_code: t } = e;
|
|
2303
2303
|
if (o = sl(t) ?? "", o ?? !1)
|
|
2304
|
-
console.log("获取IP所在的语言为", o), await
|
|
2304
|
+
console.log("获取IP所在的语言为", o), await mo(o);
|
|
2305
2305
|
else
|
|
2306
2306
|
throw "未找到IP所在的地区";
|
|
2307
2307
|
} else
|
|
2308
2308
|
throw `未找到IP所在的地区 ${e}`;
|
|
2309
2309
|
} catch (e) {
|
|
2310
|
-
console.warn("获取语言出错,转为默认语言 zh-CN", e), await
|
|
2310
|
+
console.warn("获取语言出错,转为默认语言 zh-CN", e), await mo("zh-CN");
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
2313
|
async function fl(o, e) {
|
|
2314
|
-
const t =
|
|
2314
|
+
const t = Ht.global.locale;
|
|
2315
2315
|
if (o == t.value) {
|
|
2316
|
-
const n = encodeURIComponent(
|
|
2317
|
-
typeof a != "object" &&
|
|
2316
|
+
const n = encodeURIComponent(uo.encrypt(dt.KEY, e)), a = await ul(dt.PROJECT, o, n);
|
|
2317
|
+
typeof a != "object" && uo.decrypt(dt.KEY, a);
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
2320
|
function hl(o, e) {
|
|
2321
|
-
const { locale: t } =
|
|
2321
|
+
const { locale: t } = Ht.global;
|
|
2322
2322
|
try {
|
|
2323
|
-
|
|
2323
|
+
$o.includes(o) && o == t.value && fl(o, e);
|
|
2324
2324
|
} catch {
|
|
2325
2325
|
}
|
|
2326
2326
|
}
|
|
@@ -2339,18 +2339,18 @@ const Ve = () => ({
|
|
|
2339
2339
|
*/
|
|
2340
2340
|
async setupI18n(o = "") {
|
|
2341
2341
|
try {
|
|
2342
|
-
o == "" ?
|
|
2342
|
+
o == "" ? Fo === "" ? await ml() : await mo(Fo) : await mo(o);
|
|
2343
2343
|
} catch (e) {
|
|
2344
2344
|
console.warn("i18n", e);
|
|
2345
2345
|
}
|
|
2346
2346
|
},
|
|
2347
2347
|
t(o) {
|
|
2348
|
-
const { t: e } =
|
|
2348
|
+
const { t: e } = Ht.global;
|
|
2349
2349
|
return e(o);
|
|
2350
2350
|
}
|
|
2351
|
-
}),
|
|
2351
|
+
}), Ht = Na({
|
|
2352
2352
|
legacy: !1,
|
|
2353
|
-
locale:
|
|
2353
|
+
locale: Fo,
|
|
2354
2354
|
messages: {},
|
|
2355
2355
|
missing: hl,
|
|
2356
2356
|
fallbackWarn: !1
|
|
@@ -2486,7 +2486,7 @@ const Ve = () => ({
|
|
|
2486
2486
|
case "https:":
|
|
2487
2487
|
return `${e.replace(t, "wss:")}${o}`;
|
|
2488
2488
|
}
|
|
2489
|
-
}, vl = gl("/gview/websocket"),
|
|
2489
|
+
}, vl = gl("/gview/websocket"), So = (o, e = "", t = "") => e ? {
|
|
2490
2490
|
head: "gonsin",
|
|
2491
2491
|
cmd: {
|
|
2492
2492
|
cmd: "gview_client",
|
|
@@ -2503,7 +2503,7 @@ const Ve = () => ({
|
|
|
2503
2503
|
subcmd: o,
|
|
2504
2504
|
response: 0
|
|
2505
2505
|
}
|
|
2506
|
-
}, yl = 3e4, bl = 3e3,
|
|
2506
|
+
}, yl = 3e4, bl = 3e3, io = "g-dialog-plugin", wl = "g-common-dialog", Yt = "g-common-form", qt = "g-common-header", Tl = "g-common-table", Ml = "g-board", dc = "g-dialog", Cl = "g-form", mn = "g-form-item", kl = "g-header", Il = "g-tab", St = "g-table", Ze = "g-layout", Qt = "g-uploader", vt = "g-login";
|
|
2507
2507
|
function Sl(o) {
|
|
2508
2508
|
return o.replace(/([A-Z])/g, "_$1").toUpperCase();
|
|
2509
2509
|
}
|
|
@@ -2524,7 +2524,7 @@ function xl(o, e) {
|
|
|
2524
2524
|
let t = Ll(o, e);
|
|
2525
2525
|
return Function(t)();
|
|
2526
2526
|
}
|
|
2527
|
-
function
|
|
2527
|
+
function Oo(o, e = {}) {
|
|
2528
2528
|
return xl(o, e)(e);
|
|
2529
2529
|
}
|
|
2530
2530
|
function Al(o) {
|
|
@@ -2593,11 +2593,11 @@ function Pl(o) {
|
|
|
2593
2593
|
ellipsis: { props: { theme: "light", showArrow: !1, placement: "bottom" } },
|
|
2594
2594
|
attrs: {
|
|
2595
2595
|
style: {
|
|
2596
|
-
width: `calc(${
|
|
2596
|
+
width: `calc(${No(
|
|
2597
2597
|
t.weight ?? 1,
|
|
2598
2598
|
a.length + 1
|
|
2599
2599
|
)} * 100vw - 32px)`,
|
|
2600
|
-
maxWidth: `calc(${
|
|
2600
|
+
maxWidth: `calc(${No(
|
|
2601
2601
|
t.weight ?? 1,
|
|
2602
2602
|
a.length + 1
|
|
2603
2603
|
)} * 100vw - 32px)`
|
|
@@ -2609,7 +2609,7 @@ function Pl(o) {
|
|
|
2609
2609
|
const c = ((r = t.buttons) == null ? void 0 : r.length) || 1;
|
|
2610
2610
|
l.ellipsis = void 0, l.attrs = {
|
|
2611
2611
|
style: {
|
|
2612
|
-
width: `calc(${
|
|
2612
|
+
width: `calc(${No(
|
|
2613
2613
|
t.weight ?? 1,
|
|
2614
2614
|
a.length + 1
|
|
2615
2615
|
)} * 100vw - 32px)`,
|
|
@@ -2620,10 +2620,10 @@ function Pl(o) {
|
|
|
2620
2620
|
n == o.length - 1 && (l.ellipsis = void 0, l.fixed = "right"), e.push(l);
|
|
2621
2621
|
}), e;
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function No(o, e) {
|
|
2624
2624
|
return o / e;
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function Ut(o) {
|
|
2627
2627
|
let e = {};
|
|
2628
2628
|
return o.indexOf("?") !== -1 && o.split("?")[1].split("&").forEach((n) => {
|
|
2629
2629
|
e[n.split("=")[0]] = n.split("=")[1];
|
|
@@ -2631,9 +2631,9 @@ function Oo(o) {
|
|
|
2631
2631
|
}
|
|
2632
2632
|
function Lt(o, e, t = !0) {
|
|
2633
2633
|
const n = new URLSearchParams(e), a = `?${n.toString()}`;
|
|
2634
|
-
return t && !
|
|
2634
|
+
return t && !go(o) && (o = `http://${o}`), n.toString() ? `${o}${a}` : o;
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2636
|
+
function go(o) {
|
|
2637
2637
|
return /^(?:https?|ftp):\/\/(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|localhost|(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(:\d+)?(\/[^\s]*)?$/i.test(o);
|
|
2638
2638
|
}
|
|
2639
2639
|
function Ul(o) {
|
|
@@ -2643,7 +2643,7 @@ const _l = {
|
|
|
2643
2643
|
refreshTokenUrl: "/api/base/token/refresh"
|
|
2644
2644
|
};
|
|
2645
2645
|
async function Fl(o) {
|
|
2646
|
-
const e = Ke.getItem(
|
|
2646
|
+
const e = Ke.getItem(Rt), { data: t } = await zt.create()({
|
|
2647
2647
|
method: "POST",
|
|
2648
2648
|
url: `${_l.refreshTokenUrl}?sessionId=${e}`,
|
|
2649
2649
|
headers: {
|
|
@@ -2652,7 +2652,7 @@ async function Fl(o) {
|
|
|
2652
2652
|
});
|
|
2653
2653
|
return t;
|
|
2654
2654
|
}
|
|
2655
|
-
const
|
|
2655
|
+
const _e = po("setting", {
|
|
2656
2656
|
state: () => ({
|
|
2657
2657
|
// 登录标志
|
|
2658
2658
|
isUserLogin: !!Ke.getItem(ll) || !1,
|
|
@@ -2667,31 +2667,33 @@ const Pe = ho("setting", {
|
|
|
2667
2667
|
...rl
|
|
2668
2668
|
},
|
|
2669
2669
|
// 侧边菜单配置
|
|
2670
|
-
sideMenuTree: Ge.getItem(
|
|
2670
|
+
sideMenuTree: Ge.getItem(Wt) || [],
|
|
2671
2671
|
sideMenuExpanded: [],
|
|
2672
2672
|
sideMenuScrollTop: 0,
|
|
2673
2673
|
// 用户传入GView的信息与配置
|
|
2674
|
-
userConfig: Ge.getItem(
|
|
2674
|
+
userConfig: Ge.getItem(Io) || {
|
|
2675
2675
|
userInfo: {
|
|
2676
2676
|
realName: "",
|
|
2677
|
-
token: ""
|
|
2677
|
+
token: "",
|
|
2678
|
+
userType: ""
|
|
2678
2679
|
},
|
|
2679
2680
|
userMenu: [],
|
|
2680
2681
|
homeUrl: "",
|
|
2681
2682
|
logoUrl: ""
|
|
2682
2683
|
},
|
|
2683
2684
|
// 用户语言
|
|
2684
|
-
userLang: Ge.getItem(
|
|
2685
|
+
userLang: Ge.getItem(so) ?? "zh-CN",
|
|
2685
2686
|
// 用户token
|
|
2686
2687
|
token: Ke.getItem(sn) || "",
|
|
2687
2688
|
tokenExpiredTime: Ke.getItem(cn) || 0,
|
|
2688
2689
|
isTokenRefreshing: !1
|
|
2689
2690
|
}),
|
|
2690
2691
|
getters: {
|
|
2692
|
+
userType: (o) => o.userConfig.userInfo.userType || "",
|
|
2691
2693
|
userRealName: (o) => o.userConfig.userInfo.realName || "",
|
|
2692
2694
|
userEdificeKey: (o) => o.userConfig.userInfo.edificeKey || "",
|
|
2693
2695
|
homeUrl: (o) => (o.userConfig.homeUrl ?? "") != "" ? o.userConfig.homeUrl : Bn(o.sideMenuTree),
|
|
2694
|
-
logoUrl: (o) => o.userConfig.logoUrl ? o.userConfig.logoUrl : "",
|
|
2696
|
+
logoUrl: (o) => (o.userConfig.logoUrl ?? "") != "" ? o.userConfig.logoUrl : "",
|
|
2695
2697
|
displayMode: (o) => o.themeConfig.displayMode === "auto" ? window.matchMedia("(prefers-color-scheme:dark)").matches ? "dark" : "light" : o.themeConfig.displayMode
|
|
2696
2698
|
},
|
|
2697
2699
|
actions: {
|
|
@@ -2723,14 +2725,13 @@ const Pe = ho("setting", {
|
|
|
2723
2725
|
},
|
|
2724
2726
|
setSideMenuConfig(o) {
|
|
2725
2727
|
const e = Vn(o);
|
|
2726
|
-
this.sideMenuTree = e, Ge.setItem(
|
|
2728
|
+
this.sideMenuTree = e, Ge.setItem(Wt, e);
|
|
2727
2729
|
},
|
|
2728
2730
|
async initUserLang(o) {
|
|
2729
2731
|
if (o)
|
|
2730
2732
|
try {
|
|
2731
|
-
Ge.setItem(io, o), this.userLang = o;
|
|
2732
2733
|
const { setupI18n: e } = Ve();
|
|
2733
|
-
await e(o);
|
|
2734
|
+
await e(o), Ge.setItem(so, o), this.userLang = o;
|
|
2734
2735
|
} catch {
|
|
2735
2736
|
}
|
|
2736
2737
|
},
|
|
@@ -2760,15 +2761,15 @@ const Pe = ho("setting", {
|
|
|
2760
2761
|
}
|
|
2761
2762
|
},
|
|
2762
2763
|
setSideMenuTree(o) {
|
|
2763
|
-
const e =
|
|
2764
|
-
this.sideMenuTree = e, Ge.setItem(
|
|
2764
|
+
const e = co(o, null, 1);
|
|
2765
|
+
this.sideMenuTree = e, Ge.setItem(Wt, e);
|
|
2765
2766
|
},
|
|
2766
2767
|
/**
|
|
2767
2768
|
* @description 用户登录后初始化配置
|
|
2768
2769
|
*/
|
|
2769
2770
|
async initUserConfig(o) {
|
|
2770
2771
|
var n;
|
|
2771
|
-
Ge.setItem(
|
|
2772
|
+
Ge.setItem(Io, o), this.userConfig = { ...o }, this.initUserToken(((n = o.userInfo) == null ? void 0 : n.token) ?? "");
|
|
2772
2773
|
const { userMenu: e } = o;
|
|
2773
2774
|
this.setSideMenuTree(e);
|
|
2774
2775
|
const { language: t } = o.userInfo;
|
|
@@ -2778,7 +2779,7 @@ const Pe = ho("setting", {
|
|
|
2778
2779
|
* @description: 初始化各种变量的值
|
|
2779
2780
|
*/
|
|
2780
2781
|
resetInitValue() {
|
|
2781
|
-
this.isSideMenuCollapse = !1, this.isSettingPanelShow = !1, this.sideMenuTree = [], Ge.removeItem(
|
|
2782
|
+
this.isSideMenuCollapse = !1, this.isSettingPanelShow = !1, this.sideMenuTree = [], Ge.removeItem(Wt), this.sideMenuExpanded = [], this.sideMenuScrollTop = 0, Ge.removeItem(Io), this.userConfig = {
|
|
2782
2783
|
userInfo: {
|
|
2783
2784
|
realName: "",
|
|
2784
2785
|
token: ""
|
|
@@ -2823,7 +2824,7 @@ const Pe = ho("setting", {
|
|
|
2823
2824
|
this.changeMode(o), this.changeBrandTheme(o), this.changeTheme(o);
|
|
2824
2825
|
}
|
|
2825
2826
|
}
|
|
2826
|
-
}), Et =
|
|
2827
|
+
}), Et = po("tabMenu", {
|
|
2827
2828
|
state: () => ({
|
|
2828
2829
|
// 初始化tab菜单列表
|
|
2829
2830
|
initTabMenuList: Ke.getItem(ln) || [],
|
|
@@ -2849,16 +2850,15 @@ const Pe = ho("setting", {
|
|
|
2849
2850
|
/**
|
|
2850
2851
|
* @description 初始化tab菜单列表
|
|
2851
2852
|
*/
|
|
2852
|
-
async initTabMenu(
|
|
2853
|
+
async initTabMenu() {
|
|
2853
2854
|
await this.clearTabMenu();
|
|
2854
|
-
|
|
2855
|
-
let t = "", n = {
|
|
2855
|
+
let o = {
|
|
2856
2856
|
itemIdx: 0,
|
|
2857
|
-
path: "/
|
|
2857
|
+
path: "/HomePage",
|
|
2858
2858
|
title: "首页",
|
|
2859
2859
|
isHome: !0
|
|
2860
2860
|
};
|
|
2861
|
-
|
|
2861
|
+
this.setInitTabMenuList([o]), this.setTabMenuList([o]);
|
|
2862
2862
|
},
|
|
2863
2863
|
findExistTabMenuItem(o) {
|
|
2864
2864
|
return this.tabMenuList.find((e) => {
|
|
@@ -2919,7 +2919,7 @@ const Pe = ho("setting", {
|
|
|
2919
2919
|
this.tabMenuList[t].activeTab = e, this.setTabMenuList(this.tabMenuList);
|
|
2920
2920
|
}
|
|
2921
2921
|
}
|
|
2922
|
-
}), qo =
|
|
2922
|
+
}), qo = po("socket", {
|
|
2923
2923
|
state: () => ({
|
|
2924
2924
|
socket: null,
|
|
2925
2925
|
socketInterval: void 0,
|
|
@@ -2940,7 +2940,7 @@ const Pe = ho("setting", {
|
|
|
2940
2940
|
initSocket() {
|
|
2941
2941
|
const o = this;
|
|
2942
2942
|
this.isSocketLinked = !1, this.socket = new WebSocket(vl), this.socket.onopen = function(e) {
|
|
2943
|
-
let t =
|
|
2943
|
+
let t = So("heart");
|
|
2944
2944
|
o.socketInterval = setInterval(function() {
|
|
2945
2945
|
o.socket && o.socket.send(JSON.stringify(t));
|
|
2946
2946
|
}, yl);
|
|
@@ -2964,17 +2964,17 @@ const Pe = ho("setting", {
|
|
|
2964
2964
|
}, o.isSocketLinked = !0;
|
|
2965
2965
|
},
|
|
2966
2966
|
sendRegisterMessage(o) {
|
|
2967
|
-
const t =
|
|
2968
|
-
let n =
|
|
2967
|
+
const t = _e().userEdificeKey ?? "";
|
|
2968
|
+
let n = So("register", o, t);
|
|
2969
2969
|
fn(this.socket) || this.socket.send(JSON.stringify(n));
|
|
2970
2970
|
},
|
|
2971
2971
|
sendUnregisterMessage(o) {
|
|
2972
|
-
const t =
|
|
2973
|
-
let n =
|
|
2972
|
+
const t = _e().userEdificeKey ?? "";
|
|
2973
|
+
let n = So("unregister", o, t);
|
|
2974
2974
|
fn(this.socket) || this.socket.send(JSON.stringify(n));
|
|
2975
2975
|
}
|
|
2976
2976
|
}
|
|
2977
|
-
}), Qo =
|
|
2977
|
+
}), Qo = po("props", {
|
|
2978
2978
|
state: () => ({
|
|
2979
2979
|
propsSource: {}
|
|
2980
2980
|
}),
|
|
@@ -2992,17 +2992,17 @@ const Pe = ho("setting", {
|
|
|
2992
2992
|
}), $l = /* @__PURE__ */ ae({
|
|
2993
2993
|
__name: "GLayoutHeaderTab",
|
|
2994
2994
|
setup(o) {
|
|
2995
|
-
const { t: e } = Ve(), t = `${Ze}__layoutHeaderTab`, n = pt(), a = At(), l = j(""), r = Et(), c =
|
|
2996
|
-
function d(I, k,
|
|
2997
|
-
k.trigger === "document" && (l.value = null), I && (l.value =
|
|
2995
|
+
const { t: e } = Ve(), t = `${Ze}__layoutHeaderTab`, n = pt(), a = At(), l = j(""), r = Et(), c = _e(), s = _(() => r.tabMenuList), u = _(() => c.homeUrl);
|
|
2996
|
+
function d(I, k, v) {
|
|
2997
|
+
k.trigger === "document" && (l.value = null), I && (l.value = v);
|
|
2998
2998
|
}
|
|
2999
2999
|
function f(I) {
|
|
3000
|
-
I === "/
|
|
3000
|
+
I === "/HomePage" ? n.push({ path: u.value, query: Ut(u.value) }) : n.push({ path: I, query: Ut(I) });
|
|
3001
3001
|
}
|
|
3002
3002
|
function h({ value: I, index: k }) {
|
|
3003
|
-
const { tabMenuList:
|
|
3004
|
-
if (
|
|
3005
|
-
const g =
|
|
3003
|
+
const { tabMenuList: v } = r;
|
|
3004
|
+
if (v.length > 2) {
|
|
3005
|
+
const g = v[k + 1] || v[k - 1];
|
|
3006
3006
|
r.subtractCurrentTabMenuItem({ path: I, itemIdx: k });
|
|
3007
3007
|
const p = decodeURIComponent(a.fullPath);
|
|
3008
3008
|
I === p && n.push({
|
|
@@ -3012,11 +3012,9 @@ const Pe = ho("setting", {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
3014
|
function m(I, k) {
|
|
3015
|
+
const { path: v } = I;
|
|
3015
3016
|
ba(() => {
|
|
3016
|
-
n.push({
|
|
3017
|
-
path: I.path,
|
|
3018
|
-
query: I.query
|
|
3019
|
-
});
|
|
3017
|
+
v === "/HomePage" ? n.push({ path: u.value, query: Ut(u.value) }) : n.push({ path: v, query: Ut(v) });
|
|
3020
3018
|
}), c.toggleGlobalReload(), l.value = null;
|
|
3021
3019
|
}
|
|
3022
3020
|
function N(I, k) {
|
|
@@ -3029,7 +3027,7 @@ const Pe = ho("setting", {
|
|
|
3029
3027
|
s.value.length > 2 && (r.subtractTabMenuItemOther({ path: I, itemIdx: k }), b("other", k));
|
|
3030
3028
|
}
|
|
3031
3029
|
function b(I, k) {
|
|
3032
|
-
const
|
|
3030
|
+
const v = a.fullPath, { tabMenuList: g } = r, p = g.findIndex((x) => x.path === v);
|
|
3033
3031
|
if (I === "other" && p !== k || I === "ahead" && p < k || I === "behind" && p === -1) {
|
|
3034
3032
|
const x = I === "behind" ? g.length - 1 : 1, D = g[x];
|
|
3035
3033
|
n.push({
|
|
@@ -3041,8 +3039,8 @@ const Pe = ho("setting", {
|
|
|
3041
3039
|
}
|
|
3042
3040
|
const S = _(() => decodeURIComponent(a.fullPath));
|
|
3043
3041
|
return (I, k) => {
|
|
3044
|
-
const
|
|
3045
|
-
return
|
|
3042
|
+
const v = G("t-dropdown-item"), g = G("t-dropdown-menu"), p = G("t-dropdown"), C = G("t-tab-panel"), x = G("t-tabs");
|
|
3043
|
+
return y(), L(x, {
|
|
3046
3044
|
class: R(`${t}`),
|
|
3047
3045
|
size: "large",
|
|
3048
3046
|
value: i(S),
|
|
@@ -3050,7 +3048,7 @@ const Pe = ho("setting", {
|
|
|
3050
3048
|
onRemove: h
|
|
3051
3049
|
}, {
|
|
3052
3050
|
default: T(() => [
|
|
3053
|
-
(
|
|
3051
|
+
(y(!0), W(ke, null, Ae(i(s), (D, w) => (y(), L(C, {
|
|
3054
3052
|
key: D.path,
|
|
3055
3053
|
value: D.path,
|
|
3056
3054
|
removable: !D.isHome
|
|
@@ -3067,7 +3065,7 @@ const Pe = ho("setting", {
|
|
|
3067
3065
|
dropdown: T(() => [
|
|
3068
3066
|
V(g, null, {
|
|
3069
3067
|
default: T(() => [
|
|
3070
|
-
V(
|
|
3068
|
+
V(v, {
|
|
3071
3069
|
onClick: () => m(D)
|
|
3072
3070
|
}, {
|
|
3073
3071
|
default: T(() => [
|
|
@@ -3078,7 +3076,7 @@ const Pe = ho("setting", {
|
|
|
3078
3076
|
]),
|
|
3079
3077
|
_: 2
|
|
3080
3078
|
}, 1032, ["onClick"]),
|
|
3081
|
-
w > 1 ? (
|
|
3079
|
+
w > 1 ? (y(), L(v, {
|
|
3082
3080
|
key: 0,
|
|
3083
3081
|
onClick: () => N(D.path, w)
|
|
3084
3082
|
}, {
|
|
@@ -3090,7 +3088,7 @@ const Pe = ho("setting", {
|
|
|
3090
3088
|
]),
|
|
3091
3089
|
_: 2
|
|
3092
3090
|
}, 1032, ["onClick"])) : K("", !0),
|
|
3093
|
-
w > 0 && w < i(s).length - 1 ? (
|
|
3091
|
+
w > 0 && w < i(s).length - 1 ? (y(), L(v, {
|
|
3094
3092
|
key: 1,
|
|
3095
3093
|
onClick: () => A(D.path, w)
|
|
3096
3094
|
}, {
|
|
@@ -3102,7 +3100,7 @@ const Pe = ho("setting", {
|
|
|
3102
3100
|
]),
|
|
3103
3101
|
_: 2
|
|
3104
3102
|
}, 1032, ["onClick"])) : K("", !0),
|
|
3105
|
-
w > 0 && i(s).length > 2 ? (
|
|
3103
|
+
w > 0 && i(s).length > 2 ? (y(), L(v, {
|
|
3106
3104
|
key: 2,
|
|
3107
3105
|
onClick: () => B(D.path, w)
|
|
3108
3106
|
}, {
|
|
@@ -3119,9 +3117,9 @@ const Pe = ho("setting", {
|
|
|
3119
3117
|
}, 1024)
|
|
3120
3118
|
]),
|
|
3121
3119
|
default: T(() => [
|
|
3122
|
-
D.isHome ? (
|
|
3120
|
+
D.isHome ? (y(), W(ke, { key: 0 }, [
|
|
3123
3121
|
re(J(i(e)(`${D.title}`)), 1)
|
|
3124
|
-
], 64)) : (
|
|
3122
|
+
], 64)) : (y(), W(ke, { key: 1 }, [
|
|
3125
3123
|
re(J(D.title), 1)
|
|
3126
3124
|
], 64))
|
|
3127
3125
|
]),
|
|
@@ -3138,47 +3136,57 @@ const Pe = ho("setting", {
|
|
|
3138
3136
|
}), Ol = "data:image/png;base64,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", Rl = { class: "username" }, jl = /* @__PURE__ */ ae({
|
|
3139
3137
|
__name: "GLayoutHeader",
|
|
3140
3138
|
setup(o) {
|
|
3141
|
-
const { t: e } = Ve(), t = `${Ze}__header`, n = pt(), a =
|
|
3142
|
-
|
|
3139
|
+
const { t: e } = Ve(), t = `${Ze}__header`, n = pt(), a = _e(), l = _(() => a.userType), r = _(() => {
|
|
3140
|
+
if ((l.value ?? "") != "")
|
|
3141
|
+
switch (l.value) {
|
|
3142
|
+
case "normal":
|
|
3143
|
+
return a.userRealName;
|
|
3144
|
+
case "admin":
|
|
3145
|
+
case "root":
|
|
3146
|
+
return `${e(a.userRealName)}`;
|
|
3147
|
+
}
|
|
3148
|
+
return a.userRealName;
|
|
3149
|
+
}), c = _(() => a.displayMode), s = _(() => a.logoUrl), u = _(() => (s.value ?? "") != "" ? { backgroundImage: `url(${s.value})` } : { backgroundImage: `url(${Ol})` }), d = _(() => a.isSideMenuCollapse);
|
|
3150
|
+
function f() {
|
|
3143
3151
|
a.toggleSideMenuCollapse();
|
|
3144
3152
|
}
|
|
3145
|
-
function
|
|
3153
|
+
function h() {
|
|
3146
3154
|
a.toggleSettingPanel();
|
|
3147
3155
|
}
|
|
3148
|
-
const
|
|
3149
|
-
function
|
|
3150
|
-
n.push({ name: "login" }), a.userLogout(),
|
|
3156
|
+
const m = Et();
|
|
3157
|
+
function N() {
|
|
3158
|
+
n.push({ name: "login" }), a.userLogout(), m.clearTabMenu();
|
|
3151
3159
|
}
|
|
3152
|
-
return (
|
|
3153
|
-
const
|
|
3154
|
-
return
|
|
3160
|
+
return (A, B) => {
|
|
3161
|
+
const b = G("t-button"), S = G("t-dropdown-item"), I = G("t-dropdown-menu"), k = G("t-dropdown"), v = G("t-head-menu"), g = G("t-header");
|
|
3162
|
+
return y(), L(g, {
|
|
3155
3163
|
class: R(t)
|
|
3156
3164
|
}, {
|
|
3157
3165
|
default: T(() => [
|
|
3158
|
-
V(
|
|
3166
|
+
V(v, { theme: i(c) }, {
|
|
3159
3167
|
logo: T(() => [
|
|
3160
3168
|
ee("div", {
|
|
3161
3169
|
class: R(`${t}--logo`)
|
|
3162
3170
|
}, [
|
|
3163
3171
|
ee("div", {
|
|
3164
3172
|
class: R(`${t}--logo-image`),
|
|
3165
|
-
style:
|
|
3173
|
+
style: Gt(i(u))
|
|
3166
3174
|
}, null, 6)
|
|
3167
3175
|
], 2),
|
|
3168
3176
|
ee("div", {
|
|
3169
3177
|
class: R(`${t}--collapse-button`)
|
|
3170
3178
|
}, [
|
|
3171
|
-
V(
|
|
3179
|
+
V(b, {
|
|
3172
3180
|
theme: "default",
|
|
3173
3181
|
shape: "square",
|
|
3174
3182
|
variant: "text",
|
|
3175
|
-
onClick:
|
|
3183
|
+
onClick: f
|
|
3176
3184
|
}, {
|
|
3177
3185
|
default: T(() => [
|
|
3178
|
-
i(
|
|
3186
|
+
i(d) ? (y(), L(i(Fa), {
|
|
3179
3187
|
key: 1,
|
|
3180
3188
|
size: "large"
|
|
3181
|
-
})) : (
|
|
3189
|
+
})) : (y(), L(i(_a), {
|
|
3182
3190
|
key: 0,
|
|
3183
3191
|
size: "large"
|
|
3184
3192
|
}))
|
|
@@ -3191,15 +3199,15 @@ const Pe = ho("setting", {
|
|
|
3191
3199
|
ee("div", {
|
|
3192
3200
|
class: R(`${t}--operations`)
|
|
3193
3201
|
}, [
|
|
3194
|
-
V(
|
|
3202
|
+
V(k, {
|
|
3195
3203
|
trigger: "click",
|
|
3196
3204
|
placement: "bottom-right",
|
|
3197
3205
|
class: R(`${t}--operations-userInfo`)
|
|
3198
3206
|
}, {
|
|
3199
3207
|
dropdown: T(() => [
|
|
3200
|
-
V(
|
|
3208
|
+
V(I, null, {
|
|
3201
3209
|
default: T(() => [
|
|
3202
|
-
V(
|
|
3210
|
+
V(S, { onClick: N }, {
|
|
3203
3211
|
default: T(() => [
|
|
3204
3212
|
V(i($a)),
|
|
3205
3213
|
re(" " + J(i(e)("退出登录")), 1)
|
|
@@ -3211,7 +3219,7 @@ const Pe = ho("setting", {
|
|
|
3211
3219
|
})
|
|
3212
3220
|
]),
|
|
3213
3221
|
default: T(() => [
|
|
3214
|
-
V(
|
|
3222
|
+
V(b, {
|
|
3215
3223
|
theme: "default",
|
|
3216
3224
|
variant: "text",
|
|
3217
3225
|
style: { width: "150px" }
|
|
@@ -3223,18 +3231,18 @@ const Pe = ho("setting", {
|
|
|
3223
3231
|
V(i(Ra))
|
|
3224
3232
|
]),
|
|
3225
3233
|
default: T(() => [
|
|
3226
|
-
ee("span", Rl, J(i(
|
|
3234
|
+
ee("span", Rl, J(i(r)), 1)
|
|
3227
3235
|
]),
|
|
3228
3236
|
_: 1
|
|
3229
3237
|
})
|
|
3230
3238
|
]),
|
|
3231
3239
|
_: 1
|
|
3232
3240
|
}, 8, ["class"]),
|
|
3233
|
-
V(
|
|
3241
|
+
V(b, {
|
|
3234
3242
|
theme: "default",
|
|
3235
3243
|
shape: "square",
|
|
3236
3244
|
variant: "text",
|
|
3237
|
-
onClick:
|
|
3245
|
+
onClick: h
|
|
3238
3246
|
}, {
|
|
3239
3247
|
default: T(() => [
|
|
3240
3248
|
V(i(An))
|
|
@@ -3256,10 +3264,10 @@ const Pe = ho("setting", {
|
|
|
3256
3264
|
}), Gl = /* @__PURE__ */ ae({
|
|
3257
3265
|
__name: "GLayoutContent",
|
|
3258
3266
|
setup(o) {
|
|
3259
|
-
const e =
|
|
3267
|
+
const e = _e(), t = _(() => e.isSideMenuCollapse);
|
|
3260
3268
|
return (n, a) => {
|
|
3261
3269
|
const l = G("t-content"), r = G("t-layout");
|
|
3262
|
-
return
|
|
3270
|
+
return y(), L(r, {
|
|
3263
3271
|
class: R(`${i(Ze)}`)
|
|
3264
3272
|
}, {
|
|
3265
3273
|
default: T(() => [
|
|
@@ -3307,7 +3315,7 @@ const Pe = ho("setting", {
|
|
|
3307
3315
|
}
|
|
3308
3316
|
), (l, r) => {
|
|
3309
3317
|
const c = G("t-tooltip");
|
|
3310
|
-
return
|
|
3318
|
+
return y(), L(c, {
|
|
3311
3319
|
visible: t.value,
|
|
3312
3320
|
content: o.title,
|
|
3313
3321
|
showArrow: !1,
|
|
@@ -3318,7 +3326,7 @@ const Pe = ho("setting", {
|
|
|
3318
3326
|
ee("span", {
|
|
3319
3327
|
ref_key: "titleRef",
|
|
3320
3328
|
ref: e,
|
|
3321
|
-
onMouseover: r[0] || (r[0] =
|
|
3329
|
+
onMouseover: r[0] || (r[0] = Ot((s) => n(s), ["self"])),
|
|
3322
3330
|
onMouseleave: a
|
|
3323
3331
|
}, J(o.title), 545)
|
|
3324
3332
|
]),
|
|
@@ -3332,8 +3340,8 @@ const Pe = ho("setting", {
|
|
|
3332
3340
|
sideMenuTree: null
|
|
3333
3341
|
},
|
|
3334
3342
|
setup(o) {
|
|
3335
|
-
const { t: e } = Ve(), t = `${Ze}__sideMenuContent`, n =
|
|
3336
|
-
if (
|
|
3343
|
+
const { t: e } = Ve(), t = `${Ze}__sideMenuContent`, n = _e(), a = pt(), l = (r) => {
|
|
3344
|
+
if (go(r)) {
|
|
3337
3345
|
const s = Lt(r, { token: n.token, _venuServType: 2 });
|
|
3338
3346
|
window.open(s, "_blank");
|
|
3339
3347
|
} else if (r.startsWith(":")) {
|
|
@@ -3347,11 +3355,11 @@ const Pe = ho("setting", {
|
|
|
3347
3355
|
};
|
|
3348
3356
|
return (r, c) => {
|
|
3349
3357
|
const s = G("t-icon"), u = G("t-menu-item"), d = G("GLayoutSideMenuContent", !0), f = G("t-submenu");
|
|
3350
|
-
return
|
|
3358
|
+
return y(!0), W(ke, null, Ae(o.sideMenuTree, (h) => (y(), W("div", {
|
|
3351
3359
|
class: R(`${t}`),
|
|
3352
3360
|
key: h.name
|
|
3353
3361
|
}, [
|
|
3354
|
-
!h.children || !h.children.length ? (
|
|
3362
|
+
!h.children || !h.children.length ? (y(), L(u, {
|
|
3355
3363
|
class: R(`${t}--level${h.level}`),
|
|
3356
3364
|
name: h.path,
|
|
3357
3365
|
value: h.path,
|
|
@@ -3359,12 +3367,12 @@ const Pe = ho("setting", {
|
|
|
3359
3367
|
onClick: (m) => l(h.path)
|
|
3360
3368
|
}, {
|
|
3361
3369
|
icon: T(() => [
|
|
3362
|
-
h.level == 1 ? (
|
|
3363
|
-
h.icon ? (
|
|
3370
|
+
h.level == 1 ? (y(), W(ke, { key: 0 }, [
|
|
3371
|
+
h.icon ? (y(), L(s, {
|
|
3364
3372
|
key: 0,
|
|
3365
3373
|
name: h.icon,
|
|
3366
3374
|
size: "large"
|
|
3367
|
-
}, null, 8, ["name"])) : (
|
|
3375
|
+
}, null, 8, ["name"])) : (y(), L(i(Po), {
|
|
3368
3376
|
key: 1,
|
|
3369
3377
|
size: "large"
|
|
3370
3378
|
}))
|
|
@@ -3376,19 +3384,19 @@ const Pe = ho("setting", {
|
|
|
3376
3384
|
}, null, 8, ["title"])
|
|
3377
3385
|
]),
|
|
3378
3386
|
_: 2
|
|
3379
|
-
}, 1032, ["class", "name", "value", "onClick"])) : (
|
|
3387
|
+
}, 1032, ["class", "name", "value", "onClick"])) : (y(), L(f, {
|
|
3380
3388
|
class: R(`${t}--level${h.level}`),
|
|
3381
3389
|
name: h.name,
|
|
3382
3390
|
value: h.name,
|
|
3383
3391
|
key: h.name
|
|
3384
3392
|
}, {
|
|
3385
3393
|
icon: T(() => [
|
|
3386
|
-
h.level == 1 ? (
|
|
3387
|
-
h.icon ? (
|
|
3394
|
+
h.level == 1 ? (y(), W(ke, { key: 0 }, [
|
|
3395
|
+
h.icon ? (y(), L(s, {
|
|
3388
3396
|
key: 0,
|
|
3389
3397
|
name: h.icon,
|
|
3390
3398
|
size: "large"
|
|
3391
|
-
}, null, 8, ["name"])) : (
|
|
3399
|
+
}, null, 8, ["name"])) : (y(), L(i(Po), {
|
|
3392
3400
|
key: 1,
|
|
3393
3401
|
size: "large"
|
|
3394
3402
|
}))
|
|
@@ -3400,7 +3408,7 @@ const Pe = ho("setting", {
|
|
|
3400
3408
|
}, null, 8, ["title"])
|
|
3401
3409
|
]),
|
|
3402
3410
|
default: T(() => [
|
|
3403
|
-
h.children ? (
|
|
3411
|
+
h.children ? (y(), L(d, {
|
|
3404
3412
|
sideMenuTree: h.children,
|
|
3405
3413
|
key: h.name
|
|
3406
3414
|
}, null, 8, ["sideMenuTree"])) : K("", !0)
|
|
@@ -3421,7 +3429,7 @@ const gt = (o, e) => {
|
|
|
3421
3429
|
setup(o) {
|
|
3422
3430
|
const e = `${Ze}__sideMenu`;
|
|
3423
3431
|
pt();
|
|
3424
|
-
const t = At(), n =
|
|
3432
|
+
const t = At(), n = _e(), a = _(() => n.sideMenuTree), l = _(() => n.displayMode), r = _({
|
|
3425
3433
|
get() {
|
|
3426
3434
|
return n.isSideMenuCollapse;
|
|
3427
3435
|
},
|
|
@@ -3440,12 +3448,12 @@ const gt = (o, e) => {
|
|
|
3440
3448
|
d && (u.value = d.scrollTop);
|
|
3441
3449
|
}), (d, f) => {
|
|
3442
3450
|
const h = G("t-menu"), m = G("t-drawer");
|
|
3443
|
-
return
|
|
3451
|
+
return y(), L(m, {
|
|
3444
3452
|
class: R(`${e}`),
|
|
3445
3453
|
size: "232px",
|
|
3446
3454
|
placement: "left",
|
|
3447
3455
|
visible: i(r),
|
|
3448
|
-
"onUpdate:visible": f[1] || (f[1] = (N) =>
|
|
3456
|
+
"onUpdate:visible": f[1] || (f[1] = (N) => Bo(r) ? r.value = N : null),
|
|
3449
3457
|
showOverlay: !1,
|
|
3450
3458
|
header: !1,
|
|
3451
3459
|
footer: !1,
|
|
@@ -3457,7 +3465,7 @@ const gt = (o, e) => {
|
|
|
3457
3465
|
theme: i(l),
|
|
3458
3466
|
value: i(c),
|
|
3459
3467
|
expanded: i(s),
|
|
3460
|
-
"onUpdate:expanded": f[0] || (f[0] = (N) =>
|
|
3468
|
+
"onUpdate:expanded": f[0] || (f[0] = (N) => Bo(s) ? s.value = N : null)
|
|
3461
3469
|
}, {
|
|
3462
3470
|
default: T(() => [
|
|
3463
3471
|
V(zl, { sideMenuTree: i(a) }, null, 8, ["sideMenuTree"])
|
|
@@ -3472,7 +3480,7 @@ const gt = (o, e) => {
|
|
|
3472
3480
|
}), Wl = /* @__PURE__ */ ae({
|
|
3473
3481
|
__name: "GLayoutSettingPanel",
|
|
3474
3482
|
setup(o) {
|
|
3475
|
-
const { t: e } = Ve(), t = `${Ze}__settingPanel`, n =
|
|
3483
|
+
const { t: e } = Ve(), t = `${Ze}__settingPanel`, n = _e(), a = [
|
|
3476
3484
|
"default",
|
|
3477
3485
|
"cyan",
|
|
3478
3486
|
"green",
|
|
@@ -3500,10 +3508,10 @@ const gt = (o, e) => {
|
|
|
3500
3508
|
});
|
|
3501
3509
|
return (d, f) => {
|
|
3502
3510
|
const h = G("t-radio-button"), m = G("t-radio-group"), N = G("t-drawer");
|
|
3503
|
-
return
|
|
3511
|
+
return y(), L(N, {
|
|
3504
3512
|
class: R(`${t}`),
|
|
3505
3513
|
visible: i(c),
|
|
3506
|
-
"onUpdate:visible": f[2] || (f[2] = (A) =>
|
|
3514
|
+
"onUpdate:visible": f[2] || (f[2] = (A) => Bo(c) ? c.value = A : null),
|
|
3507
3515
|
closeOnEscKeydown: !1,
|
|
3508
3516
|
footer: !1
|
|
3509
3517
|
}, {
|
|
@@ -3524,15 +3532,15 @@ const gt = (o, e) => {
|
|
|
3524
3532
|
onChange: s
|
|
3525
3533
|
}, {
|
|
3526
3534
|
default: T(() => [
|
|
3527
|
-
(
|
|
3528
|
-
(
|
|
3535
|
+
(y(!0), W(ke, null, Ae(a.slice(0, a.length - 1), (A, B) => (y(), W("div", { key: B }, [
|
|
3536
|
+
(y(), L(h, {
|
|
3529
3537
|
key: B,
|
|
3530
3538
|
value: A,
|
|
3531
3539
|
class: R(`${t}--container-color-group`)
|
|
3532
3540
|
}, {
|
|
3533
3541
|
default: T(() => [
|
|
3534
3542
|
ee("div", {
|
|
3535
|
-
style:
|
|
3543
|
+
style: Gt(u(A)),
|
|
3536
3544
|
class: R(`${t}--container-color-item`)
|
|
3537
3545
|
}, null, 6)
|
|
3538
3546
|
]),
|
|
@@ -3552,8 +3560,8 @@ const gt = (o, e) => {
|
|
|
3552
3560
|
onChange: s
|
|
3553
3561
|
}, {
|
|
3554
3562
|
default: T(() => [
|
|
3555
|
-
(
|
|
3556
|
-
(
|
|
3563
|
+
(y(), W(ke, null, Ae(l, (A, B) => ee("div", { key: B }, [
|
|
3564
|
+
(y(), L(h, {
|
|
3557
3565
|
key: B,
|
|
3558
3566
|
value: A.type
|
|
3559
3567
|
}, {
|
|
@@ -3574,7 +3582,7 @@ const gt = (o, e) => {
|
|
|
3574
3582
|
}
|
|
3575
3583
|
}), Yl = {};
|
|
3576
3584
|
function ql(o, e) {
|
|
3577
|
-
return
|
|
3585
|
+
return y(), L(wa, {
|
|
3578
3586
|
name: "scale",
|
|
3579
3587
|
mode: "out-in",
|
|
3580
3588
|
appear: ""
|
|
@@ -3594,7 +3602,7 @@ const Ql = /* @__PURE__ */ gt(Yl, [["render", ql]]), Xl = /* @__PURE__ */ ae({
|
|
|
3594
3602
|
const e = `${Ze}__main`, t = `${Ze}__card`;
|
|
3595
3603
|
return (n, a) => {
|
|
3596
3604
|
const l = G("t-card"), r = G("t-content"), c = G("t-layout");
|
|
3597
|
-
return
|
|
3605
|
+
return y(), W("div", {
|
|
3598
3606
|
class: R(`${e}`)
|
|
3599
3607
|
}, [
|
|
3600
3608
|
V(c, null, {
|
|
@@ -3606,7 +3614,7 @@ const Ql = /* @__PURE__ */ gt(Yl, [["render", ql]]), Xl = /* @__PURE__ */ ae({
|
|
|
3606
3614
|
default: T(() => [
|
|
3607
3615
|
V(Ql, null, {
|
|
3608
3616
|
default: T(() => [
|
|
3609
|
-
(
|
|
3617
|
+
(y(), L(l, {
|
|
3610
3618
|
key: `${o.title}}`,
|
|
3611
3619
|
class: R(`${t}`),
|
|
3612
3620
|
bordered: !1,
|
|
@@ -3640,10 +3648,10 @@ const Ql = /* @__PURE__ */ gt(Yl, [["render", ql]]), Xl = /* @__PURE__ */ ae({
|
|
|
3640
3648
|
title: null
|
|
3641
3649
|
},
|
|
3642
3650
|
setup(o) {
|
|
3643
|
-
const e =
|
|
3651
|
+
const e = _e();
|
|
3644
3652
|
return Fe(() => {
|
|
3645
3653
|
e.loadLocalThemeConfig();
|
|
3646
|
-
}), (t, n) => (
|
|
3654
|
+
}), (t, n) => (y(), L(Xl, { title: o.title }, {
|
|
3647
3655
|
default: T(() => [
|
|
3648
3656
|
$e(t.$slots, "default")
|
|
3649
3657
|
]),
|
|
@@ -3659,14 +3667,14 @@ const Fn = He(Zl), Jl = /* @__PURE__ */ ae({
|
|
|
3659
3667
|
setup(o) {
|
|
3660
3668
|
return (e, t) => {
|
|
3661
3669
|
const n = G("t-dialog");
|
|
3662
|
-
return
|
|
3670
|
+
return y(), L(n, st({
|
|
3663
3671
|
class: i(wl),
|
|
3664
3672
|
placement: "center"
|
|
3665
3673
|
}, o.commonDialogProps), Nt({ _: 2 }, [
|
|
3666
3674
|
Ae(e.$slots, (a, l) => ({
|
|
3667
3675
|
name: l,
|
|
3668
3676
|
fn: T((r) => [
|
|
3669
|
-
$e(e.$slots, l,
|
|
3677
|
+
$e(e.$slots, l, no(ao({ ...r })))
|
|
3670
3678
|
])
|
|
3671
3679
|
}))
|
|
3672
3680
|
]), 1040, ["class"]);
|
|
@@ -3684,17 +3692,17 @@ const $n = He(Jl), er = /* @__PURE__ */ ae({
|
|
|
3684
3692
|
tFormRef: t
|
|
3685
3693
|
}), (n, a) => {
|
|
3686
3694
|
const l = G("t-form");
|
|
3687
|
-
return
|
|
3688
|
-
class: R(`${i(
|
|
3695
|
+
return y(), W("div", {
|
|
3696
|
+
class: R(`${i(Yt)}`)
|
|
3689
3697
|
}, [
|
|
3690
3698
|
V(l, st({
|
|
3691
3699
|
ref_key: "tFormRef",
|
|
3692
3700
|
ref: t,
|
|
3693
|
-
class: `${i(
|
|
3701
|
+
class: `${i(Yt)}--main`
|
|
3694
3702
|
}, o.commonFormProps), {
|
|
3695
3703
|
default: T(() => [
|
|
3696
3704
|
ee("div", {
|
|
3697
|
-
class: R(`${i(
|
|
3705
|
+
class: R(`${i(Yt)}--main-body`),
|
|
3698
3706
|
ref: "commonFormBodyRef"
|
|
3699
3707
|
}, [
|
|
3700
3708
|
$e(n.$slots, "body")
|
|
@@ -3703,7 +3711,7 @@ const $n = He(Jl), er = /* @__PURE__ */ ae({
|
|
|
3703
3711
|
_: 3
|
|
3704
3712
|
}, 16, ["class"]),
|
|
3705
3713
|
ee("div", {
|
|
3706
|
-
class: R(`${i(
|
|
3714
|
+
class: R(`${i(Yt)}--footer`)
|
|
3707
3715
|
}, [
|
|
3708
3716
|
$e(n.$slots, "footer")
|
|
3709
3717
|
], 2)
|
|
@@ -3716,16 +3724,16 @@ const On = He(er), tr = /* @__PURE__ */ ae({
|
|
|
3716
3724
|
setup(o) {
|
|
3717
3725
|
return (e, t) => {
|
|
3718
3726
|
const n = G("t-row");
|
|
3719
|
-
return
|
|
3720
|
-
class: R(`${i(
|
|
3727
|
+
return y(), W("div", {
|
|
3728
|
+
class: R(`${i(qt)}`)
|
|
3721
3729
|
}, [
|
|
3722
3730
|
V(n, { justify: "space-between" }, {
|
|
3723
3731
|
default: T(() => [
|
|
3724
3732
|
ee("div", {
|
|
3725
|
-
class: R(`${i(
|
|
3733
|
+
class: R(`${i(qt)}--left`)
|
|
3726
3734
|
}, [
|
|
3727
3735
|
V(n, {
|
|
3728
|
-
class: R(`${i(
|
|
3736
|
+
class: R(`${i(qt)}--left-row`)
|
|
3729
3737
|
}, {
|
|
3730
3738
|
default: T(() => [
|
|
3731
3739
|
$e(e.$slots, "left-operations")
|
|
@@ -3734,7 +3742,7 @@ const On = He(er), tr = /* @__PURE__ */ ae({
|
|
|
3734
3742
|
}, 8, ["class"])
|
|
3735
3743
|
], 2),
|
|
3736
3744
|
ee("div", {
|
|
3737
|
-
class: R(`${i(
|
|
3745
|
+
class: R(`${i(qt)}--right`)
|
|
3738
3746
|
}, [
|
|
3739
3747
|
$e(e.$slots, "right-operations")
|
|
3740
3748
|
], 2)
|
|
@@ -3767,12 +3775,12 @@ const Rn = He(tr), or = /* @__PURE__ */ ae({
|
|
|
3767
3775
|
tTableRef: a
|
|
3768
3776
|
}), (l, r) => {
|
|
3769
3777
|
const c = G("t-table"), s = G("t-primary-table"), u = G("t-enhanced-table"), d = G("t-config-provider");
|
|
3770
|
-
return
|
|
3778
|
+
return y(), W("div", {
|
|
3771
3779
|
class: R(`${i(Tl)}`)
|
|
3772
3780
|
}, [
|
|
3773
3781
|
V(d, { "global-config": n }, {
|
|
3774
3782
|
default: T(() => [
|
|
3775
|
-
o.tableType === "base" ? (
|
|
3783
|
+
o.tableType === "base" ? (y(), L(c, st({
|
|
3776
3784
|
key: 0,
|
|
3777
3785
|
ref_key: "tTableRef",
|
|
3778
3786
|
ref: a,
|
|
@@ -3786,10 +3794,10 @@ const Rn = He(tr), or = /* @__PURE__ */ ae({
|
|
|
3786
3794
|
Ae(l.$slots, (f, h) => ({
|
|
3787
3795
|
name: h,
|
|
3788
3796
|
fn: T((m) => [
|
|
3789
|
-
$e(l.$slots, h,
|
|
3797
|
+
$e(l.$slots, h, no(ao({ ...m })))
|
|
3790
3798
|
])
|
|
3791
3799
|
}))
|
|
3792
|
-
]), 1040)) : o.tableType == "primary" ? (
|
|
3800
|
+
]), 1040)) : o.tableType == "primary" ? (y(), L(s, st({
|
|
3793
3801
|
key: 1,
|
|
3794
3802
|
ref_key: "tTableRef",
|
|
3795
3803
|
ref: a,
|
|
@@ -3803,10 +3811,10 @@ const Rn = He(tr), or = /* @__PURE__ */ ae({
|
|
|
3803
3811
|
Ae(l.$slots, (f, h) => ({
|
|
3804
3812
|
name: h,
|
|
3805
3813
|
fn: T((m) => [
|
|
3806
|
-
$e(l.$slots, h,
|
|
3814
|
+
$e(l.$slots, h, no(ao({ ...m })))
|
|
3807
3815
|
])
|
|
3808
3816
|
}))
|
|
3809
|
-
]), 1040)) : o.tableType === "enhanced" ? (
|
|
3817
|
+
]), 1040)) : o.tableType === "enhanced" ? (y(), L(u, st({
|
|
3810
3818
|
key: 2,
|
|
3811
3819
|
ref_key: "tTableRef",
|
|
3812
3820
|
ref: a,
|
|
@@ -3820,7 +3828,7 @@ const Rn = He(tr), or = /* @__PURE__ */ ae({
|
|
|
3820
3828
|
Ae(l.$slots, (f, h) => ({
|
|
3821
3829
|
name: h,
|
|
3822
3830
|
fn: T((m) => [
|
|
3823
|
-
$e(l.$slots, h,
|
|
3831
|
+
$e(l.$slots, h, no(ao({ ...m })))
|
|
3824
3832
|
])
|
|
3825
3833
|
}))
|
|
3826
3834
|
]), 1040)) : K("", !0)
|
|
@@ -3831,21 +3839,21 @@ const Rn = He(tr), or = /* @__PURE__ */ ae({
|
|
|
3831
3839
|
};
|
|
3832
3840
|
}
|
|
3833
3841
|
});
|
|
3834
|
-
const jn = He(or),
|
|
3842
|
+
const jn = He(or), Lo = () => {
|
|
3835
3843
|
};
|
|
3836
|
-
function
|
|
3844
|
+
function jt(o) {
|
|
3837
3845
|
return tl(
|
|
3838
3846
|
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
|
3839
3847
|
32
|
|
3840
3848
|
)(o);
|
|
3841
3849
|
}
|
|
3842
3850
|
function nr() {
|
|
3843
|
-
const o = sessionStorage.getItem(
|
|
3851
|
+
const o = sessionStorage.getItem(Rt);
|
|
3844
3852
|
if ((o ?? "") != "")
|
|
3845
3853
|
return o;
|
|
3846
3854
|
{
|
|
3847
|
-
const e =
|
|
3848
|
-
return sessionStorage.setItem(
|
|
3855
|
+
const e = jt(32);
|
|
3856
|
+
return sessionStorage.setItem(Rt, e), e;
|
|
3849
3857
|
}
|
|
3850
3858
|
}
|
|
3851
3859
|
const ar = {
|
|
@@ -3855,7 +3863,7 @@ const ar = {
|
|
|
3855
3863
|
// withCredentials: true,
|
|
3856
3864
|
// crossDomain: true,
|
|
3857
3865
|
};
|
|
3858
|
-
function
|
|
3866
|
+
function Xt(o, e) {
|
|
3859
3867
|
return e ? o.indexOf("?") > -1 ? o += "&sessionId=" + e : o += "?sessionId=" + e : o;
|
|
3860
3868
|
}
|
|
3861
3869
|
class lr {
|
|
@@ -3863,9 +3871,9 @@ class lr {
|
|
|
3863
3871
|
De(this, "sessionId");
|
|
3864
3872
|
De(this, "service");
|
|
3865
3873
|
De(this, "router");
|
|
3866
|
-
this.sessionId = nr, this.service =
|
|
3874
|
+
this.sessionId = nr, this.service = zt.create(e), this.router = null, this.service.interceptors.request.use(
|
|
3867
3875
|
async (t) => {
|
|
3868
|
-
const n =
|
|
3876
|
+
const n = _e();
|
|
3869
3877
|
n.checkUserToken();
|
|
3870
3878
|
const a = n.token ?? "", l = n.userLang ?? "zh-CN";
|
|
3871
3879
|
return t.headers = {
|
|
@@ -3910,16 +3918,16 @@ class lr {
|
|
|
3910
3918
|
);
|
|
3911
3919
|
}
|
|
3912
3920
|
get(e, t, n = {}) {
|
|
3913
|
-
return this.service.get(`${
|
|
3921
|
+
return this.service.get(`${Xt(e, this.sessionId())}`, { params: t, ...n });
|
|
3914
3922
|
}
|
|
3915
3923
|
post(e, t, n = {}) {
|
|
3916
|
-
return this.service.post(`${
|
|
3924
|
+
return this.service.post(`${Xt(e, this.sessionId())}`, t, n);
|
|
3917
3925
|
}
|
|
3918
3926
|
put(e, t, n = {}) {
|
|
3919
|
-
return this.service.put(`${
|
|
3927
|
+
return this.service.put(`${Xt(e, this.sessionId())}`, t, n);
|
|
3920
3928
|
}
|
|
3921
3929
|
delete(e, t, n = {}) {
|
|
3922
|
-
return this.service.delete(`${
|
|
3930
|
+
return this.service.delete(`${Xt(e, this.sessionId())}`, {
|
|
3923
3931
|
params: t,
|
|
3924
3932
|
...n
|
|
3925
3933
|
});
|
|
@@ -3928,7 +3936,7 @@ class lr {
|
|
|
3928
3936
|
this.router = e;
|
|
3929
3937
|
}
|
|
3930
3938
|
}
|
|
3931
|
-
const We = new lr(ar),
|
|
3939
|
+
const We = new lr(ar), fo = {
|
|
3932
3940
|
// 普通上传文件 POST
|
|
3933
3941
|
baseUploadFile: "/api/base/upload",
|
|
3934
3942
|
// 准备上传文件 POST
|
|
@@ -3939,17 +3947,17 @@ const We = new lr(ar), mo = {
|
|
|
3939
3947
|
getFileUrl: "/api/base/upload/files/url"
|
|
3940
3948
|
};
|
|
3941
3949
|
function rr(o) {
|
|
3942
|
-
return We.post(`${
|
|
3950
|
+
return We.post(`${fo.uploadReady}`, Dn.stringify(o));
|
|
3943
3951
|
}
|
|
3944
3952
|
function ir(o) {
|
|
3945
|
-
const e = Ke.getItem(
|
|
3946
|
-
return We.service.get(`${
|
|
3953
|
+
const e = Ke.getItem(Rt);
|
|
3954
|
+
return We.service.get(`${fo.getFileUrl}?sessionId=${e}`, {
|
|
3947
3955
|
timeout: 0,
|
|
3948
3956
|
params: o
|
|
3949
3957
|
});
|
|
3950
3958
|
}
|
|
3951
|
-
|
|
3952
|
-
const
|
|
3959
|
+
ro.enableBoundaryChecking(!1);
|
|
3960
|
+
const Zt = (o) => {
|
|
3953
3961
|
const e = o.responseText || o.response;
|
|
3954
3962
|
if (!e)
|
|
3955
3963
|
return;
|
|
@@ -3972,38 +3980,38 @@ const Xt = (o) => {
|
|
|
3972
3980
|
fileReadyKey: c,
|
|
3973
3981
|
thread: s,
|
|
3974
3982
|
chunkSize: u,
|
|
3975
|
-
onProgress: d =
|
|
3976
|
-
onSuccess: f =
|
|
3977
|
-
onError: h =
|
|
3983
|
+
onProgress: d = Lo,
|
|
3984
|
+
onSuccess: f = Lo,
|
|
3985
|
+
onError: h = Lo
|
|
3978
3986
|
}) => {
|
|
3979
3987
|
var k;
|
|
3980
|
-
const m = pn(e, o) || "file", N = pn(t, o), A = Ke.getItem(
|
|
3981
|
-
function S(
|
|
3988
|
+
const m = pn(e, o) || "file", N = pn(t, o), A = Ke.getItem(Rt), B = r ? `${fo.pieceUploadFiles}?sessionId=${A}` : `${fo.baseUploadFile}?sessionId=${A}`, b = [];
|
|
3989
|
+
function S(v, g) {
|
|
3982
3990
|
let p = 0;
|
|
3983
3991
|
b.forEach((C) => {
|
|
3984
3992
|
p += C;
|
|
3985
|
-
}),
|
|
3993
|
+
}), v = p > 0 ? ro.round(p / l, 2) : 0, d(v, g);
|
|
3986
3994
|
}
|
|
3987
|
-
function I(
|
|
3995
|
+
function I(v, g) {
|
|
3988
3996
|
let p = 0, C = 0, x = !1, D = [];
|
|
3989
|
-
const w =
|
|
3997
|
+
const w = v.length, O = async () => {
|
|
3990
3998
|
if (x)
|
|
3991
3999
|
return;
|
|
3992
|
-
const U =
|
|
4000
|
+
const U = v.shift();
|
|
3993
4001
|
if (U) {
|
|
3994
4002
|
const le = C++, M = new XMLHttpRequest();
|
|
3995
4003
|
a && (M.withCredentials = !0), M.upload.onprogress = (q) => {
|
|
3996
|
-
const Y = q.total > 0 ?
|
|
4004
|
+
const Y = q.total > 0 ? ro.round(q.loaded / q.total, 2) : 0;
|
|
3997
4005
|
b[le] = q.loaded, S(Y, q);
|
|
3998
4006
|
}, M.onerror = function(Y) {
|
|
3999
4007
|
x = !0, h(Y);
|
|
4000
4008
|
}, M.onload = () => {
|
|
4001
4009
|
if (M.status < 200 || M.status >= 300) {
|
|
4002
|
-
h(
|
|
4010
|
+
h(Zt(M));
|
|
4003
4011
|
return;
|
|
4004
4012
|
}
|
|
4005
4013
|
if (p == w - 1) {
|
|
4006
|
-
const q = D.map((Y) =>
|
|
4014
|
+
const q = D.map((Y) => Zt(Y));
|
|
4007
4015
|
f(q);
|
|
4008
4016
|
} else
|
|
4009
4017
|
p++, O();
|
|
@@ -4020,15 +4028,15 @@ const Xt = (o) => {
|
|
|
4020
4028
|
return D;
|
|
4021
4029
|
}
|
|
4022
4030
|
if (r && c) {
|
|
4023
|
-
let
|
|
4031
|
+
let v = [];
|
|
4024
4032
|
for (let C = 0; C < l; C = C + u) {
|
|
4025
4033
|
const x = (k = o.file) == null ? void 0 : k.slice(C, Math.min(C + u, l));
|
|
4026
|
-
|
|
4034
|
+
v.push(x);
|
|
4027
4035
|
}
|
|
4028
|
-
const g =
|
|
4036
|
+
const g = v == null ? void 0 : v.map((C, x) => {
|
|
4029
4037
|
const D = new FormData(), w = {
|
|
4030
4038
|
key: c,
|
|
4031
|
-
end: x ==
|
|
4039
|
+
end: x == v.length - 1,
|
|
4032
4040
|
index: x,
|
|
4033
4041
|
piece: C
|
|
4034
4042
|
};
|
|
@@ -4047,29 +4055,29 @@ const Xt = (o) => {
|
|
|
4047
4055
|
}
|
|
4048
4056
|
return p;
|
|
4049
4057
|
} else {
|
|
4050
|
-
const
|
|
4051
|
-
a && (
|
|
4052
|
-
const C = p.total > 0 ?
|
|
4058
|
+
const v = new XMLHttpRequest();
|
|
4059
|
+
a && (v.withCredentials = a), v.upload.onprogress = (p) => {
|
|
4060
|
+
const C = p.total > 0 ? ro.round(p.loaded / p.total, 2) : 0;
|
|
4053
4061
|
d(C, p);
|
|
4054
|
-
},
|
|
4062
|
+
}, v.onerror = function(C) {
|
|
4055
4063
|
h(C);
|
|
4056
|
-
},
|
|
4057
|
-
if (
|
|
4058
|
-
h(
|
|
4064
|
+
}, v.onload = () => {
|
|
4065
|
+
if (v.status < 200 || v.status >= 300) {
|
|
4066
|
+
h(Zt(v));
|
|
4059
4067
|
return;
|
|
4060
4068
|
}
|
|
4061
|
-
f(
|
|
4069
|
+
f(Zt(v));
|
|
4062
4070
|
};
|
|
4063
4071
|
const g = new FormData();
|
|
4064
4072
|
if (N)
|
|
4065
4073
|
for (const p of Object.keys(N))
|
|
4066
4074
|
g.append(p, N[p]);
|
|
4067
|
-
o.file && g.append(m, o.file),
|
|
4075
|
+
o.file && g.append(m, o.file), v.open("post", B ?? "", !0);
|
|
4068
4076
|
for (const p of Object.keys(n))
|
|
4069
|
-
|
|
4070
|
-
return
|
|
4077
|
+
v.setRequestHeader(p, n[p]);
|
|
4078
|
+
return v.send(g), {
|
|
4071
4079
|
abort() {
|
|
4072
|
-
|
|
4080
|
+
v.abort();
|
|
4073
4081
|
}
|
|
4074
4082
|
};
|
|
4075
4083
|
}
|
|
@@ -4097,7 +4105,7 @@ const Xt = (o) => {
|
|
|
4097
4105
|
return e ? t.filter((n) => cr(n, e)) : t;
|
|
4098
4106
|
}, Kn = (o) => {
|
|
4099
4107
|
var t, n, a, l;
|
|
4100
|
-
const e = { fileId: `${
|
|
4108
|
+
const e = { fileId: `${jt(10)}-root`, filename: "root", childFiles: [] };
|
|
4101
4109
|
for (const r of o) {
|
|
4102
4110
|
const c = (t = r == null ? void 0 : r.relativePath) == null ? void 0 : t.split("/");
|
|
4103
4111
|
let s = e;
|
|
@@ -4107,7 +4115,7 @@ const Xt = (o) => {
|
|
|
4107
4115
|
(f) => f.filename === u
|
|
4108
4116
|
);
|
|
4109
4117
|
d || (d = {
|
|
4110
|
-
fileId: `${
|
|
4118
|
+
fileId: `${jt(10)}-${u}`,
|
|
4111
4119
|
filename: u,
|
|
4112
4120
|
fileUploadType: "path",
|
|
4113
4121
|
childFiles: []
|
|
@@ -4187,7 +4195,7 @@ const Xt = (o) => {
|
|
|
4187
4195
|
const d = u.target;
|
|
4188
4196
|
d.files && e.uploadFiles(gn(d.files)), d.value = "";
|
|
4189
4197
|
};
|
|
4190
|
-
return (u, d) => (
|
|
4198
|
+
return (u, d) => (y(), W("span", {
|
|
4191
4199
|
ref_key: "dropRef",
|
|
4192
4200
|
ref: r,
|
|
4193
4201
|
class: R(i(a)),
|
|
@@ -4214,7 +4222,7 @@ const Xt = (o) => {
|
|
|
4214
4222
|
]),
|
|
4215
4223
|
_: 1
|
|
4216
4224
|
}, 16, ["disabled"]),
|
|
4217
|
-
o.tip ? (
|
|
4225
|
+
o.tip ? (y(), W("div", {
|
|
4218
4226
|
key: 0,
|
|
4219
4227
|
class: R(`${i(n)}-tip`)
|
|
4220
4228
|
}, J(o.tip), 3)) : K("", !0)
|
|
@@ -4232,15 +4240,15 @@ const Xt = (o) => {
|
|
|
4232
4240
|
const e = qe(kt, void 0), n = `${_(() => `${e == null ? void 0 : e.uploaderClass}`).value}__progress`, a = (l) => `${Math.round(l * 1e4) / 100}%`;
|
|
4233
4241
|
return (l, r) => {
|
|
4234
4242
|
var c, s, u, d, f;
|
|
4235
|
-
return
|
|
4243
|
+
return y(), W("span", {
|
|
4236
4244
|
class: R(n)
|
|
4237
4245
|
}, [
|
|
4238
|
-
["uploading"].includes(o.file.status ?? "") ? (
|
|
4246
|
+
["uploading"].includes(o.file.status ?? "") ? (y(), L(i(Aa), {
|
|
4239
4247
|
key: 0,
|
|
4240
4248
|
size: "small",
|
|
4241
4249
|
text: `${a(((c = o.file) == null ? void 0 : c.percent) ?? 1)}`
|
|
4242
4250
|
}, null, 8, ["text"])) : K("", !0),
|
|
4243
|
-
o.file.status == "error" ? (
|
|
4251
|
+
o.file.status == "error" ? (y(), W("span", {
|
|
4244
4252
|
key: 1,
|
|
4245
4253
|
class: R([(s = i(e)) == null ? void 0 : s.iconClass, `${(u = i(e)) == null ? void 0 : u.iconClass}-upload`]),
|
|
4246
4254
|
onClick: r[0] || (r[0] = (h) => {
|
|
@@ -4257,17 +4265,17 @@ const Xt = (o) => {
|
|
|
4257
4265
|
default: T(() => {
|
|
4258
4266
|
var h;
|
|
4259
4267
|
return [
|
|
4260
|
-
(h = i(e)) != null && h.showRetryButton ? (
|
|
4268
|
+
(h = i(e)) != null && h.showRetryButton ? (y(), L(i(xn), { key: 0 })) : K("", !0)
|
|
4261
4269
|
];
|
|
4262
4270
|
}),
|
|
4263
4271
|
_: 1
|
|
4264
4272
|
})
|
|
4265
|
-
], 2)) : o.file.status == "done" ? (
|
|
4273
|
+
], 2)) : o.file.status == "done" ? (y(), W("span", {
|
|
4266
4274
|
key: 2,
|
|
4267
4275
|
class: R([(d = i(e)) == null ? void 0 : d.iconClass, `${(f = i(e)) == null ? void 0 : f.iconClass}-success`])
|
|
4268
4276
|
}, [
|
|
4269
4277
|
V(i(Ga))
|
|
4270
|
-
], 2)) : o.file.status == "init" ? (
|
|
4278
|
+
], 2)) : o.file.status == "init" ? (y(), L(i(bt), {
|
|
4271
4279
|
key: 3,
|
|
4272
4280
|
content: "开始上传",
|
|
4273
4281
|
placement: "mouse",
|
|
@@ -4289,7 +4297,7 @@ const Xt = (o) => {
|
|
|
4289
4297
|
];
|
|
4290
4298
|
}),
|
|
4291
4299
|
_: 1
|
|
4292
|
-
})) : (
|
|
4300
|
+
})) : (y(), L(i(bt), {
|
|
4293
4301
|
key: 4,
|
|
4294
4302
|
content: "暂停上传",
|
|
4295
4303
|
placement: "mouse",
|
|
@@ -4330,10 +4338,10 @@ const Xt = (o) => {
|
|
|
4330
4338
|
}
|
|
4331
4339
|
return (l, r) => {
|
|
4332
4340
|
var c;
|
|
4333
|
-
return
|
|
4341
|
+
return y(), W("div", {
|
|
4334
4342
|
class: R(n)
|
|
4335
4343
|
}, [
|
|
4336
|
-
o.file.url ? (
|
|
4344
|
+
o.file.url ? (y(), L(i(bt), {
|
|
4337
4345
|
key: 0,
|
|
4338
4346
|
content: "打开文件",
|
|
4339
4347
|
placement: "mouse",
|
|
@@ -4345,7 +4353,7 @@ const Xt = (o) => {
|
|
|
4345
4353
|
return [
|
|
4346
4354
|
ee("span", {
|
|
4347
4355
|
class: R([(s = i(e)) == null ? void 0 : s.iconClass]),
|
|
4348
|
-
onClick: r[0] || (r[0] =
|
|
4356
|
+
onClick: r[0] || (r[0] = Ot((u) => a(o.file), ["stop"]))
|
|
4349
4357
|
}, [
|
|
4350
4358
|
V(i(Ha))
|
|
4351
4359
|
], 2)
|
|
@@ -4353,7 +4361,7 @@ const Xt = (o) => {
|
|
|
4353
4361
|
}),
|
|
4354
4362
|
_: 1
|
|
4355
4363
|
})) : K("", !0),
|
|
4356
|
-
o.file.status == "error" ? (
|
|
4364
|
+
o.file.status == "error" ? (y(), L(i(bt), {
|
|
4357
4365
|
key: 1,
|
|
4358
4366
|
content: "上传出错",
|
|
4359
4367
|
placement: "mouse",
|
|
@@ -4373,9 +4381,9 @@ const Xt = (o) => {
|
|
|
4373
4381
|
_: 1
|
|
4374
4382
|
})) : K("", !0),
|
|
4375
4383
|
V(mr, { file: o.file }, null, 8, ["file"]),
|
|
4376
|
-
(c = i(e)) != null && c.showRemoveButton ? (
|
|
4384
|
+
(c = i(e)) != null && c.showRemoveButton ? (y(), W("span", {
|
|
4377
4385
|
key: 2,
|
|
4378
|
-
onClick: r[1] || (r[1] =
|
|
4386
|
+
onClick: r[1] || (r[1] = Ot((s) => {
|
|
4379
4387
|
var u, d;
|
|
4380
4388
|
return (d = (u = i(e)) == null ? void 0 : u.onRemove) == null ? void 0 : d.call(u, o.file);
|
|
4381
4389
|
}, ["stop"]))
|
|
@@ -4422,11 +4430,11 @@ const zn = /* @__PURE__ */ gt(fr, [["__scopeId", "data-v-0ae4cb76"]]), hr = /* @
|
|
|
4422
4430
|
const u = ((s = e.file.filename) == null ? void 0 : s.split(".")[1]) ?? "";
|
|
4423
4431
|
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(u) ? c = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(u) ? c = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(u) && (c = "audio");
|
|
4424
4432
|
}
|
|
4425
|
-
return c.includes("image") ?
|
|
4433
|
+
return c.includes("image") ? Ft : c.includes("pdf") ? En : c.includes("video") ? Uo : _o;
|
|
4426
4434
|
});
|
|
4427
4435
|
return (c, s) => {
|
|
4428
4436
|
var u;
|
|
4429
|
-
return
|
|
4437
|
+
return y(), W("div", {
|
|
4430
4438
|
class: R([l, `${l}--${o.file.status}`])
|
|
4431
4439
|
}, [
|
|
4432
4440
|
ee("div", {
|
|
@@ -4435,11 +4443,11 @@ const zn = /* @__PURE__ */ gt(fr, [["__scopeId", "data-v-0ae4cb76"]]), hr = /* @
|
|
|
4435
4443
|
ee("div", {
|
|
4436
4444
|
class: R(`${l}-name`)
|
|
4437
4445
|
}, [
|
|
4438
|
-
((u = i(t)) == null ? void 0 : u.listType) == "text" ? (
|
|
4446
|
+
((u = i(t)) == null ? void 0 : u.listType) == "text" ? (y(), W("span", {
|
|
4439
4447
|
key: 0,
|
|
4440
4448
|
class: R(`${l}-file-icon`)
|
|
4441
4449
|
}, [
|
|
4442
|
-
(
|
|
4450
|
+
(y(), L(Ta(i(r))))
|
|
4443
4451
|
], 2)) : K("", !0),
|
|
4444
4452
|
V(i(bt), {
|
|
4445
4453
|
content: o.file.filename,
|
|
@@ -4450,7 +4458,7 @@ const zn = /* @__PURE__ */ gt(fr, [["__scopeId", "data-v-0ae4cb76"]]), hr = /* @
|
|
|
4450
4458
|
default: T(() => {
|
|
4451
4459
|
var d;
|
|
4452
4460
|
return [
|
|
4453
|
-
(d = i(t)) != null && d.showLink && e.file.url ? (
|
|
4461
|
+
(d = i(t)) != null && d.showLink && e.file.url ? (y(), L(i(Ea), {
|
|
4454
4462
|
key: 0,
|
|
4455
4463
|
class: R(`${l}-name-text`),
|
|
4456
4464
|
theme: "primary",
|
|
@@ -4463,7 +4471,7 @@ const zn = /* @__PURE__ */ gt(fr, [["__scopeId", "data-v-0ae4cb76"]]), hr = /* @
|
|
|
4463
4471
|
re(J(o.file.filename), 1)
|
|
4464
4472
|
]),
|
|
4465
4473
|
_: 1
|
|
4466
|
-
}, 8, ["class", "href"])) : (
|
|
4474
|
+
}, 8, ["class", "href"])) : (y(), W("span", {
|
|
4467
4475
|
key: 1,
|
|
4468
4476
|
class: R(`${l}-name-text`)
|
|
4469
4477
|
}, J(o.file.filename), 3))
|
|
@@ -4494,12 +4502,12 @@ const zn = /* @__PURE__ */ gt(fr, [["__scopeId", "data-v-0ae4cb76"]]), hr = /* @
|
|
|
4494
4502
|
`${n.value}__list`,
|
|
4495
4503
|
`${n.value}__list--type-${e.listType}`
|
|
4496
4504
|
]);
|
|
4497
|
-
return (l, r) => (
|
|
4505
|
+
return (l, r) => (y(), L(Ma, {
|
|
4498
4506
|
tag: "div",
|
|
4499
4507
|
class: R(i(a))
|
|
4500
4508
|
}, {
|
|
4501
4509
|
default: T(() => [
|
|
4502
|
-
(
|
|
4510
|
+
(y(!0), W(ke, null, Ae(o.fileList, (c, s) => (y(), L(hr, {
|
|
4503
4511
|
key: `fileItem-${s}`,
|
|
4504
4512
|
file: c,
|
|
4505
4513
|
listType: o.listType
|
|
@@ -4530,14 +4538,14 @@ const zn = /* @__PURE__ */ gt(fr, [["__scopeId", "data-v-0ae4cb76"]]), hr = /* @
|
|
|
4530
4538
|
const m = ((f = u.data.filename) == null ? void 0 : f.split(".")[1]) ?? "";
|
|
4531
4539
|
["png", "jpg", "jpeg", "bmp", "gif", "webp"].includes(m) ? h = "image" : ["mp4", "m2v", "mkv", "m4v", "mov"].includes(m) ? h = "video" : ["mp3", "wav", "wmv", "m4a", "acc", "flac"].includes(m) && (h = "audio");
|
|
4532
4540
|
}
|
|
4533
|
-
h.includes("image") && (d =
|
|
4541
|
+
h.includes("image") && (d = Ft), h.includes("pdf") && (d = En), h.includes("audio") && (d = Uo), h.includes("video") && (d = Uo), d = _o;
|
|
4534
4542
|
} else
|
|
4535
|
-
d =
|
|
4543
|
+
d = _o;
|
|
4536
4544
|
return d && s(d, {});
|
|
4537
4545
|
}, c = _(() => e.fileTree.childFiles);
|
|
4538
4546
|
return (s, u) => {
|
|
4539
4547
|
var d, f;
|
|
4540
|
-
return o.fileTree && ((f = (d = o.fileTree) == null ? void 0 : d.childFiles) != null && f.length) ? (
|
|
4548
|
+
return o.fileTree && ((f = (d = o.fileTree) == null ? void 0 : d.childFiles) != null && f.length) ? (y(), L(i(Da), {
|
|
4541
4549
|
key: 0,
|
|
4542
4550
|
hover: "",
|
|
4543
4551
|
icon: r,
|
|
@@ -4549,7 +4557,7 @@ const zn = /* @__PURE__ */ gt(fr, [["__scopeId", "data-v-0ae4cb76"]]), hr = /* @
|
|
|
4549
4557
|
keys: { value: "fileId", label: "filename", children: "childFiles" }
|
|
4550
4558
|
}, {
|
|
4551
4559
|
operations: T(({ node: h }) => [
|
|
4552
|
-
h.data.fileUploadType == "file" ? (
|
|
4560
|
+
h.data.fileUploadType == "file" ? (y(), L(zn, {
|
|
4553
4561
|
key: 0,
|
|
4554
4562
|
file: h.data
|
|
4555
4563
|
}, null, 8, ["file"])) : K("", !0)
|
|
@@ -4863,12 +4871,12 @@ const vr = /* @__PURE__ */ ae({
|
|
|
4863
4871
|
imageLoading: h,
|
|
4864
4872
|
download: m,
|
|
4865
4873
|
showLink: N
|
|
4866
|
-
} = Ca(t), A = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), b = j([]), S = _(() => t.directory ? b.value.length ? Kn(b.value) : { fileId: "" } : { fileId: "" }), I = _(() => t.limit > 0 && b.value.length >= t.limit), k = _(() => t.buttonText ? t.buttonText : t.directory ? I.value ? `${n("重新选择")}` : `${n("上传文件夹")}` : I.value ? `${n("重新选择")}` : `${n("上传文件")}`),
|
|
4874
|
+
} = Ca(t), A = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), b = j([]), S = _(() => t.directory ? b.value.length ? Kn(b.value) : { fileId: "" } : { fileId: "" }), I = _(() => t.limit > 0 && b.value.length >= t.limit), k = _(() => t.buttonText ? t.buttonText : t.directory ? I.value ? `${n("重新选择")}` : `${n("上传文件夹")}` : I.value ? `${n("重新选择")}` : `${n("上传文件")}`), v = (M) => {
|
|
4867
4875
|
A.clear();
|
|
4868
4876
|
const q = M == null ? void 0 : M.map((Y, ie) => {
|
|
4869
|
-
const Me = Y.status ? Y.status : Y.url ? "done" : "error", he =
|
|
4877
|
+
const Me = Y.status ? Y.status : Y.url ? "done" : "error", he = Co({
|
|
4870
4878
|
...Y,
|
|
4871
|
-
fileId: Y.fileId ?? `${
|
|
4879
|
+
fileId: Y.fileId ?? `${jt(10)}-${Y.filename}`,
|
|
4872
4880
|
status: Me,
|
|
4873
4881
|
percent: Y.percent ?? (["error", "init"].indexOf(Me) > -1 ? 0 : 1)
|
|
4874
4882
|
});
|
|
@@ -4876,10 +4884,10 @@ const vr = /* @__PURE__ */ ae({
|
|
|
4876
4884
|
});
|
|
4877
4885
|
b.value = q ?? [];
|
|
4878
4886
|
};
|
|
4879
|
-
|
|
4887
|
+
v(t.defaultFileList), we(
|
|
4880
4888
|
() => l == null ? void 0 : l.value,
|
|
4881
4889
|
(M) => {
|
|
4882
|
-
M &&
|
|
4890
|
+
M && v(M);
|
|
4883
4891
|
},
|
|
4884
4892
|
{ immediate: !0, deep: !0 }
|
|
4885
4893
|
);
|
|
@@ -4953,7 +4961,7 @@ const vr = /* @__PURE__ */ ae({
|
|
|
4953
4961
|
ie && (ie.status = "error", ie.percent = 0, g(ie));
|
|
4954
4962
|
}
|
|
4955
4963
|
}, D = async (M, q) => {
|
|
4956
|
-
const Y = `${
|
|
4964
|
+
const Y = `${jt(10)}-${M.name}`, ie = void 0, Me = Co({
|
|
4957
4965
|
fileId: Y,
|
|
4958
4966
|
file: M,
|
|
4959
4967
|
filename: M.name,
|
|
@@ -4995,11 +5003,11 @@ const vr = /* @__PURE__ */ ae({
|
|
|
4995
5003
|
});
|
|
4996
5004
|
return Ln(
|
|
4997
5005
|
kt,
|
|
4998
|
-
|
|
5006
|
+
Co({
|
|
4999
5007
|
disabled: r,
|
|
5000
5008
|
listType: c,
|
|
5001
|
-
uploaderClass:
|
|
5002
|
-
iconClass: `${
|
|
5009
|
+
uploaderClass: Qt,
|
|
5010
|
+
iconClass: `${Qt}--icon`,
|
|
5003
5011
|
showRemoveButton: d,
|
|
5004
5012
|
showRetryButton: s,
|
|
5005
5013
|
showCancelButton: u,
|
|
@@ -5014,10 +5022,10 @@ const vr = /* @__PURE__ */ ae({
|
|
|
5014
5022
|
})
|
|
5015
5023
|
), (M, q) => {
|
|
5016
5024
|
var Y;
|
|
5017
|
-
return
|
|
5018
|
-
class: R([`${i(
|
|
5025
|
+
return y(), W("div", {
|
|
5026
|
+
class: R([`${i(Qt)}`])
|
|
5019
5027
|
}, [
|
|
5020
|
-
o.showUploadButton ? (
|
|
5028
|
+
o.showUploadButton ? (y(), L(dr, st({
|
|
5021
5029
|
key: 0,
|
|
5022
5030
|
disabled: i(r),
|
|
5023
5031
|
listType: i(c),
|
|
@@ -5030,16 +5038,16 @@ const vr = /* @__PURE__ */ ae({
|
|
|
5030
5038
|
onButtonClick: o.onButtonClick,
|
|
5031
5039
|
buttonProps: o.buttonProps
|
|
5032
5040
|
}, { ...(Y = b.value) != null && Y.length ? {} : { tip: o.tip } }), null, 16, ["disabled", "listType", "uploaderText", "multiple", "directory", "hide", "accept", "onButtonClick", "buttonProps"])) : K("", !0),
|
|
5033
|
-
o.showFileList && b.value.length ? (
|
|
5041
|
+
o.showFileList && b.value.length ? (y(), L(i(Va), {
|
|
5034
5042
|
key: 1,
|
|
5035
|
-
class: R(`${i(
|
|
5043
|
+
class: R(`${i(Qt)}__card`),
|
|
5036
5044
|
size: "small"
|
|
5037
5045
|
}, {
|
|
5038
5046
|
default: T(() => [
|
|
5039
|
-
o.directory ? o.directory && i(S) ? (
|
|
5047
|
+
o.directory ? o.directory && i(S) ? (y(), L(gr, {
|
|
5040
5048
|
key: 1,
|
|
5041
5049
|
fileTree: i(S)
|
|
5042
|
-
}, null, 8, ["fileTree"])) : K("", !0) : (
|
|
5050
|
+
}, null, 8, ["fileTree"])) : K("", !0) : (y(), L(pr, {
|
|
5043
5051
|
key: 0,
|
|
5044
5052
|
fileList: b.value,
|
|
5045
5053
|
listType: i(c)
|
|
@@ -5084,7 +5092,7 @@ const Ro = He(vr), yr = ["src"], br = /* @__PURE__ */ ae({
|
|
|
5084
5092
|
e("close-dialog");
|
|
5085
5093
|
}
|
|
5086
5094
|
const m = pt(), N = _(() => {
|
|
5087
|
-
const S =
|
|
5095
|
+
const S = go(t.dialogViewInfo.link);
|
|
5088
5096
|
let I = "";
|
|
5089
5097
|
if (S)
|
|
5090
5098
|
I = Lt(t.dialogViewInfo.link ?? "", {
|
|
@@ -5101,7 +5109,7 @@ const Ro = He(vr), yr = ["src"], br = /* @__PURE__ */ ae({
|
|
|
5101
5109
|
}
|
|
5102
5110
|
return (S, I) => {
|
|
5103
5111
|
const k = G("t-loading");
|
|
5104
|
-
return
|
|
5112
|
+
return y(), L(i($n), {
|
|
5105
5113
|
commonDialogProps: {
|
|
5106
5114
|
visible: o.isDialogVisible,
|
|
5107
5115
|
width: i(u),
|
|
@@ -5118,13 +5126,13 @@ const Ro = He(vr), yr = ["src"], br = /* @__PURE__ */ ae({
|
|
|
5118
5126
|
text: `${i(n)("加载中")}`
|
|
5119
5127
|
}, {
|
|
5120
5128
|
default: T(() => [
|
|
5121
|
-
o.dialogType === "view" ? (
|
|
5129
|
+
o.dialogType === "view" ? (y(), L(i(a), {
|
|
5122
5130
|
key: 0,
|
|
5123
5131
|
viewName: i(r),
|
|
5124
5132
|
board: o.dialogViewBoard,
|
|
5125
5133
|
dialogProps: i(d),
|
|
5126
5134
|
onCloseDialog: h
|
|
5127
|
-
}, null, 8, ["viewName", "board", "dialogProps"])) : o.dialogType === "iframe" ? (
|
|
5135
|
+
}, null, 8, ["viewName", "board", "dialogProps"])) : o.dialogType === "iframe" ? (y(), W("iframe", {
|
|
5128
5136
|
key: 1,
|
|
5129
5137
|
class: "g-iframe",
|
|
5130
5138
|
ref_key: "dialogIframeRef",
|
|
@@ -5154,7 +5162,7 @@ const wr = He(br), Tr = /* @__PURE__ */ ae({
|
|
|
5154
5162
|
const e = o, t = _(() => e.formItem.keyName), n = _(() => (t.value === "startTime" || t.value === "endTime") && typeof e.modelValue == "number" ? rt(e.modelValue).format("YYYY/MM/DD HH:mm:ss") : e.modelValue);
|
|
5155
5163
|
return (a, l) => {
|
|
5156
5164
|
const r = G("t-tag");
|
|
5157
|
-
return
|
|
5165
|
+
return y(), L(r, { class: "g-label" }, {
|
|
5158
5166
|
default: T(() => [
|
|
5159
5167
|
re(J(i(n)), 1)
|
|
5160
5168
|
]),
|
|
@@ -5164,7 +5172,7 @@ const wr = He(br), Tr = /* @__PURE__ */ ae({
|
|
|
5164
5172
|
}
|
|
5165
5173
|
});
|
|
5166
5174
|
const Hn = /* @__PURE__ */ gt(Tr, [["__scopeId", "data-v-48c19901"]]);
|
|
5167
|
-
function
|
|
5175
|
+
function Pe(o) {
|
|
5168
5176
|
switch (o) {
|
|
5169
5177
|
case "check_box":
|
|
5170
5178
|
case "switch":
|
|
@@ -5188,18 +5196,18 @@ function Xo(o, e) {
|
|
|
5188
5196
|
t.keyName && _n(ce(o, t.keyName)) && (t.itemType === "check_box" || t.itemType === "switch") && it(
|
|
5189
5197
|
o,
|
|
5190
5198
|
t.keyName,
|
|
5191
|
-
|
|
5199
|
+
Pe(t.itemType)
|
|
5192
5200
|
);
|
|
5193
|
-
}),
|
|
5201
|
+
}), $t(o, {});
|
|
5194
5202
|
{
|
|
5195
5203
|
let t = {};
|
|
5196
5204
|
return e.forEach((n) => {
|
|
5197
5205
|
Oe(n.keyName) || it(
|
|
5198
5206
|
t,
|
|
5199
5207
|
n.keyName,
|
|
5200
|
-
|
|
5208
|
+
Pe(n.itemType)
|
|
5201
5209
|
);
|
|
5202
|
-
}),
|
|
5210
|
+
}), $t(t, {});
|
|
5203
5211
|
}
|
|
5204
5212
|
}
|
|
5205
5213
|
}
|
|
@@ -5263,14 +5271,14 @@ const jo = /* @__PURE__ */ ae({
|
|
|
5263
5271
|
t.originValue && t.originValue != d && e("blur:modelValue", d);
|
|
5264
5272
|
}
|
|
5265
5273
|
ht(() => {
|
|
5266
|
-
r(
|
|
5274
|
+
r(Pe(n.value));
|
|
5267
5275
|
});
|
|
5268
5276
|
const s = j(), u = j(!1);
|
|
5269
5277
|
return Fe(() => {
|
|
5270
5278
|
u.value = Dt(s.value);
|
|
5271
5279
|
}), (d, f) => {
|
|
5272
5280
|
const h = G("t-input"), m = G("t-tooltip");
|
|
5273
|
-
return
|
|
5281
|
+
return y(), W("div", {
|
|
5274
5282
|
ref_key: "formInputRef",
|
|
5275
5283
|
ref: s,
|
|
5276
5284
|
style: { width: "100%" }
|
|
@@ -5325,7 +5333,7 @@ const jo = /* @__PURE__ */ ae({
|
|
|
5325
5333
|
}
|
|
5326
5334
|
return (l, r) => {
|
|
5327
5335
|
const c = G("t-checkbox");
|
|
5328
|
-
return
|
|
5336
|
+
return y(), L(c, {
|
|
5329
5337
|
modelValue: n.value,
|
|
5330
5338
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
|
|
5331
5339
|
onChange: a,
|
|
@@ -5360,13 +5368,13 @@ const jo = /* @__PURE__ */ ae({
|
|
|
5360
5368
|
return we(
|
|
5361
5369
|
() => t.disabled,
|
|
5362
5370
|
() => {
|
|
5363
|
-
t.disabled && e("update:modelValue",
|
|
5371
|
+
t.disabled && e("update:modelValue", Pe(n.value));
|
|
5364
5372
|
}
|
|
5365
|
-
),
|
|
5366
|
-
e("update:modelValue",
|
|
5373
|
+
), Kt(() => {
|
|
5374
|
+
e("update:modelValue", Pe(n.value));
|
|
5367
5375
|
}), (r, c) => {
|
|
5368
5376
|
const s = G("t-switch");
|
|
5369
|
-
return
|
|
5377
|
+
return y(), L(s, {
|
|
5370
5378
|
modelValue: a.value,
|
|
5371
5379
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => a.value = u),
|
|
5372
5380
|
onChange: l,
|
|
@@ -5391,9 +5399,9 @@ const jo = /* @__PURE__ */ ae({
|
|
|
5391
5399
|
confirm: "/restapi/s09/gview/active/confirm",
|
|
5392
5400
|
// 触发 - 触发批量操作事件 POST
|
|
5393
5401
|
batch: "/restapi/s09/gview/active/batch"
|
|
5394
|
-
}, Qn = (o) => We.get(Vt.getOneView, o),
|
|
5402
|
+
}, Qn = (o) => We.get(Vt.getOneView, o), vo = (o) => We.post(Vt.getBoardData, o), Mr = (o) => We.post(Vt.confirm, o), Cr = (o) => We.post(Vt.batch, o), kr = (o) => We.post(Vt.activeFile, o), Ir = (o) => We.post(Vt.downloadFile, o);
|
|
5395
5403
|
async function Sr(o, e, t, n) {
|
|
5396
|
-
const a = await
|
|
5404
|
+
const a = await vo({
|
|
5397
5405
|
viewName: e,
|
|
5398
5406
|
dataId: t,
|
|
5399
5407
|
props: n
|
|
@@ -5412,7 +5420,7 @@ async function Sr(o, e, t, n) {
|
|
|
5412
5420
|
}
|
|
5413
5421
|
}
|
|
5414
5422
|
async function Nr(o, e, t, n) {
|
|
5415
|
-
const a = await
|
|
5423
|
+
const a = await vo({
|
|
5416
5424
|
viewName: e,
|
|
5417
5425
|
dataId: t,
|
|
5418
5426
|
props: n
|
|
@@ -5431,7 +5439,7 @@ async function Nr(o, e, t, n) {
|
|
|
5431
5439
|
}
|
|
5432
5440
|
}
|
|
5433
5441
|
async function Lr(o, e, t, n) {
|
|
5434
|
-
const a = await
|
|
5442
|
+
const a = await vo({
|
|
5435
5443
|
viewName: e,
|
|
5436
5444
|
dataId: t,
|
|
5437
5445
|
props: n
|
|
@@ -5450,9 +5458,9 @@ async function Lr(o, e, t, n) {
|
|
|
5450
5458
|
}
|
|
5451
5459
|
}
|
|
5452
5460
|
}
|
|
5453
|
-
function
|
|
5461
|
+
function yo(o) {
|
|
5454
5462
|
const e = j([]);
|
|
5455
|
-
return
|
|
5463
|
+
return Kt(async () => {
|
|
5456
5464
|
switch (o.itemType) {
|
|
5457
5465
|
case "tree_check_box": {
|
|
5458
5466
|
const { treeData: t, viewName: n, dataId: a, propsModel: l } = o;
|
|
@@ -5512,7 +5520,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5512
5520
|
}), l = _(() => {
|
|
5513
5521
|
var d, f;
|
|
5514
5522
|
return ((f = (d = t.formItem) == null ? void 0 : d.listData) == null ? void 0 : f.dataId) ?? "";
|
|
5515
|
-
}), r = qe(Bt, void 0), { options: c } =
|
|
5523
|
+
}), r = qe(Bt, void 0), { options: c } = yo({
|
|
5516
5524
|
itemType: n.value,
|
|
5517
5525
|
viewName: t.viewName,
|
|
5518
5526
|
listData: a.value,
|
|
@@ -5535,20 +5543,20 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5535
5543
|
return we(
|
|
5536
5544
|
() => t.disabled,
|
|
5537
5545
|
() => {
|
|
5538
|
-
t.disabled && e("update:modelValue",
|
|
5546
|
+
t.disabled && e("update:modelValue", Pe(n.value));
|
|
5539
5547
|
}
|
|
5540
|
-
),
|
|
5541
|
-
e("update:modelValue",
|
|
5548
|
+
), Kt(() => {
|
|
5549
|
+
e("update:modelValue", Pe(n.value));
|
|
5542
5550
|
}), (d, f) => {
|
|
5543
5551
|
const h = G("t-radio"), m = G("t-radio-group");
|
|
5544
|
-
return
|
|
5552
|
+
return y(), L(m, {
|
|
5545
5553
|
modelValue: s.value,
|
|
5546
5554
|
"onUpdate:modelValue": f[0] || (f[0] = (N) => s.value = N),
|
|
5547
5555
|
onChange: u,
|
|
5548
5556
|
disabled: o.disabled
|
|
5549
5557
|
}, {
|
|
5550
5558
|
default: T(() => [
|
|
5551
|
-
(
|
|
5559
|
+
(y(!0), W(ke, null, Ae(i(c), (N) => (y(), L(h, {
|
|
5552
5560
|
key: N.key,
|
|
5553
5561
|
value: N.value
|
|
5554
5562
|
}, {
|
|
@@ -5584,7 +5592,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5584
5592
|
}), l = _(() => {
|
|
5585
5593
|
var m, N;
|
|
5586
5594
|
return ((N = (m = t.formItem) == null ? void 0 : m.listData) == null ? void 0 : N.dataId) ?? "";
|
|
5587
|
-
}), r = qe(Bt, void 0), { options: c } =
|
|
5595
|
+
}), r = qe(Bt, void 0), { options: c } = yo({
|
|
5588
5596
|
itemType: n.value,
|
|
5589
5597
|
viewName: t.viewName,
|
|
5590
5598
|
listData: a.value,
|
|
@@ -5610,17 +5618,17 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5610
5618
|
we(
|
|
5611
5619
|
() => t.disabled,
|
|
5612
5620
|
() => {
|
|
5613
|
-
t.disabled || u(
|
|
5621
|
+
t.disabled || u(Pe(n.value));
|
|
5614
5622
|
}
|
|
5615
5623
|
), ht(() => {
|
|
5616
|
-
u(
|
|
5624
|
+
u(Pe(n.value));
|
|
5617
5625
|
});
|
|
5618
5626
|
const f = j(), h = j(!1);
|
|
5619
5627
|
return Fe(() => {
|
|
5620
5628
|
f.value && (h.value = Dt(f.value));
|
|
5621
5629
|
}), (m, N) => {
|
|
5622
5630
|
const A = G("t-select"), B = G("t-tooltip");
|
|
5623
|
-
return
|
|
5631
|
+
return y(), W("div", {
|
|
5624
5632
|
ref_key: "formSelectRef",
|
|
5625
5633
|
ref: f,
|
|
5626
5634
|
style: { width: "100%" }
|
|
@@ -5690,7 +5698,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5690
5698
|
we(
|
|
5691
5699
|
() => t.disabled,
|
|
5692
5700
|
() => {
|
|
5693
|
-
t.disabled && e("update:modelValue",
|
|
5701
|
+
t.disabled && e("update:modelValue", Pe(n.value));
|
|
5694
5702
|
}
|
|
5695
5703
|
);
|
|
5696
5704
|
const c = j(), s = j(!1);
|
|
@@ -5698,7 +5706,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5698
5706
|
c.value && (s.value = Dt(c.value));
|
|
5699
5707
|
}), (u, d) => {
|
|
5700
5708
|
const f = G("t-date-picker"), h = G("t-time-picker"), m = G("t-tooltip");
|
|
5701
|
-
return
|
|
5709
|
+
return y(), W("div", {
|
|
5702
5710
|
ref_key: "formSelectDateTimeRef",
|
|
5703
5711
|
ref: c,
|
|
5704
5712
|
style: { width: "100%" }
|
|
@@ -5714,7 +5722,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5714
5722
|
default: T(() => {
|
|
5715
5723
|
var N, A, B, b, S;
|
|
5716
5724
|
return [
|
|
5717
|
-
((N = o.formItem) == null ? void 0 : N.itemType) === "date_selector" || ((A = o.formItem) == null ? void 0 : A.itemType) === "date_time_selector" ? (
|
|
5725
|
+
((N = o.formItem) == null ? void 0 : N.itemType) === "date_selector" || ((A = o.formItem) == null ? void 0 : A.itemType) === "date_time_selector" ? (y(), L(f, {
|
|
5718
5726
|
key: 0,
|
|
5719
5727
|
"enable-time-picker": ((B = o.formItem) == null ? void 0 : B.itemType) === "date_time_selector",
|
|
5720
5728
|
placeholder: o.placeholder,
|
|
@@ -5727,7 +5735,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5727
5735
|
onBlur: r,
|
|
5728
5736
|
clearable: ""
|
|
5729
5737
|
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : K("", !0),
|
|
5730
|
-
((b = o.formItem) == null ? void 0 : b.itemType) === "time_selector" ? (
|
|
5738
|
+
((b = o.formItem) == null ? void 0 : b.itemType) === "time_selector" ? (y(), L(h, {
|
|
5731
5739
|
key: 1,
|
|
5732
5740
|
placeholder: o.placeholder,
|
|
5733
5741
|
disabled: o.disabled,
|
|
@@ -5779,7 +5787,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5779
5787
|
}), r = _(() => {
|
|
5780
5788
|
var m, N;
|
|
5781
5789
|
return ((N = (m = t.formItem) == null ? void 0 : m.treeData) == null ? void 0 : N.dataId) ?? "";
|
|
5782
|
-
}), c = qe(Bt, void 0), { options: s } =
|
|
5790
|
+
}), c = qe(Bt, void 0), { options: s } = yo({
|
|
5783
5791
|
itemType: a.value,
|
|
5784
5792
|
viewName: t.viewName,
|
|
5785
5793
|
treeData: l.value,
|
|
@@ -5795,17 +5803,17 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5795
5803
|
we(
|
|
5796
5804
|
() => t.disabled,
|
|
5797
5805
|
() => {
|
|
5798
|
-
t.disabled || u(
|
|
5806
|
+
t.disabled || u(Pe(a.value));
|
|
5799
5807
|
}
|
|
5800
5808
|
), ht(() => {
|
|
5801
|
-
u(
|
|
5809
|
+
u(Pe(a.value));
|
|
5802
5810
|
});
|
|
5803
5811
|
const f = j(), h = j(!1);
|
|
5804
5812
|
return Fe(() => {
|
|
5805
5813
|
f.value && (h.value = Dt(f.value));
|
|
5806
5814
|
}), (m, N) => {
|
|
5807
5815
|
const A = G("t-tree-select"), B = G("t-tooltip");
|
|
5808
|
-
return
|
|
5816
|
+
return y(), W("div", {
|
|
5809
5817
|
ref_key: "formTreeCheckBoxRef",
|
|
5810
5818
|
ref: f,
|
|
5811
5819
|
style: { width: "100%" }
|
|
@@ -5860,7 +5868,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5860
5868
|
}), l = _(() => {
|
|
5861
5869
|
var m, N;
|
|
5862
5870
|
return ((N = (m = t.formItem) == null ? void 0 : m.treeData) == null ? void 0 : N.dataId) ?? "";
|
|
5863
|
-
}), r = qe(Bt, void 0), { options: c } =
|
|
5871
|
+
}), r = qe(Bt, void 0), { options: c } = yo({
|
|
5864
5872
|
itemType: n.value,
|
|
5865
5873
|
viewName: t.viewName,
|
|
5866
5874
|
treeData: a.value,
|
|
@@ -5886,17 +5894,17 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5886
5894
|
we(
|
|
5887
5895
|
() => t.disabled,
|
|
5888
5896
|
() => {
|
|
5889
|
-
t.disabled || u(
|
|
5897
|
+
t.disabled || u(Pe(n.value));
|
|
5890
5898
|
}
|
|
5891
5899
|
), ht(() => {
|
|
5892
|
-
u(
|
|
5900
|
+
u(Pe(n.value));
|
|
5893
5901
|
});
|
|
5894
5902
|
const f = j(), h = j(!1);
|
|
5895
5903
|
return Fe(() => {
|
|
5896
5904
|
f.value && (h.value = Dt(f.value));
|
|
5897
5905
|
}), (m, N) => {
|
|
5898
5906
|
const A = G("t-cascader"), B = G("t-tooltip");
|
|
5899
|
-
return
|
|
5907
|
+
return y(), W("div", {
|
|
5900
5908
|
ref_key: "formCascaderRef",
|
|
5901
5909
|
ref: f,
|
|
5902
5910
|
style: { width: "100%" }
|
|
@@ -5990,7 +5998,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
5990
5998
|
}
|
|
5991
5999
|
return (s, u) => {
|
|
5992
6000
|
var d, f;
|
|
5993
|
-
return o.formItem.fileUploadType != "path" ? (
|
|
6001
|
+
return o.formItem.fileUploadType != "path" ? (y(), L(i(Ro), {
|
|
5994
6002
|
key: 0,
|
|
5995
6003
|
fileList: a.value,
|
|
5996
6004
|
tip: o.placeholder,
|
|
@@ -6001,7 +6009,7 @@ const Bt = Symbol("PropsModel"), Xn = /* @__PURE__ */ ae({
|
|
|
6001
6009
|
onRemove: r,
|
|
6002
6010
|
onChange: l,
|
|
6003
6011
|
onError: c
|
|
6004
|
-
}, null, 8, ["fileList", "tip", "disabled", "accept"])) : (
|
|
6012
|
+
}, null, 8, ["fileList", "tip", "disabled", "accept"])) : (y(), L(i(Ro), {
|
|
6005
6013
|
key: 1,
|
|
6006
6014
|
directory: !0,
|
|
6007
6015
|
fileList: a.value,
|
|
@@ -6027,22 +6035,22 @@ var xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
6027
6035
|
(function(t, n) {
|
|
6028
6036
|
o.exports = n();
|
|
6029
6037
|
})(xr, function() {
|
|
6030
|
-
var t, n, a = 1e3, l = 6e4, r = 36e5, c = 864e5, s = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, d = 2592e6, f = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: c, hours: r, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, m = function(
|
|
6031
|
-
return
|
|
6032
|
-
}, N = function(
|
|
6033
|
-
return new k(
|
|
6034
|
-
}, A = function(
|
|
6035
|
-
return n.p(
|
|
6036
|
-
}, B = function(
|
|
6037
|
-
return
|
|
6038
|
-
}, b = function(
|
|
6039
|
-
return B(
|
|
6040
|
-
}, S = function(
|
|
6041
|
-
return Math.abs(
|
|
6042
|
-
}, I = function(
|
|
6043
|
-
return
|
|
6038
|
+
var t, n, a = 1e3, l = 6e4, r = 36e5, c = 864e5, s = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, d = 2592e6, f = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: c, hours: r, minutes: l, seconds: a, milliseconds: 1, weeks: 6048e5 }, m = function(v) {
|
|
6039
|
+
return v instanceof k;
|
|
6040
|
+
}, N = function(v, g, p) {
|
|
6041
|
+
return new k(v, p, g.$l);
|
|
6042
|
+
}, A = function(v) {
|
|
6043
|
+
return n.p(v) + "s";
|
|
6044
|
+
}, B = function(v) {
|
|
6045
|
+
return v < 0;
|
|
6046
|
+
}, b = function(v) {
|
|
6047
|
+
return B(v) ? Math.ceil(v) : Math.floor(v);
|
|
6048
|
+
}, S = function(v) {
|
|
6049
|
+
return Math.abs(v);
|
|
6050
|
+
}, I = function(v, g) {
|
|
6051
|
+
return v ? B(v) ? { negative: !0, format: "" + S(v) + g } : { negative: !1, format: "" + v + g } : { negative: !1, format: "" };
|
|
6044
6052
|
}, k = function() {
|
|
6045
|
-
function
|
|
6053
|
+
function v(p, C, x) {
|
|
6046
6054
|
var D = this;
|
|
6047
6055
|
if (this.$d = {}, this.$l = x, p === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), C)
|
|
6048
6056
|
return N(p * h[A(C)], this);
|
|
@@ -6063,7 +6071,7 @@ var xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
6063
6071
|
}
|
|
6064
6072
|
return this;
|
|
6065
6073
|
}
|
|
6066
|
-
var g =
|
|
6074
|
+
var g = v.prototype;
|
|
6067
6075
|
return g.calMilliseconds = function() {
|
|
6068
6076
|
var p = this;
|
|
6069
6077
|
this.$ms = Object.keys(this.$d).reduce(function(C, x) {
|
|
@@ -6135,9 +6143,9 @@ var xr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
6135
6143
|
return this.get("years");
|
|
6136
6144
|
}, g.asYears = function() {
|
|
6137
6145
|
return this.as("years");
|
|
6138
|
-
},
|
|
6146
|
+
}, v;
|
|
6139
6147
|
}();
|
|
6140
|
-
return function(
|
|
6148
|
+
return function(v, g, p) {
|
|
6141
6149
|
t = p, n = p().$utils(), p.duration = function(D, w) {
|
|
6142
6150
|
var O = p.locale();
|
|
6143
6151
|
return N(D, { $l: O }, w);
|
|
@@ -6197,7 +6205,7 @@ const Er = Go, Dr = /* @__PURE__ */ ae({
|
|
|
6197
6205
|
we(
|
|
6198
6206
|
() => t.disabled,
|
|
6199
6207
|
() => {
|
|
6200
|
-
t.disabled && e("update:modelValue",
|
|
6208
|
+
t.disabled && e("update:modelValue", Pe(n.value));
|
|
6201
6209
|
}
|
|
6202
6210
|
);
|
|
6203
6211
|
const c = j(), s = j(!1);
|
|
@@ -6205,7 +6213,7 @@ const Er = Go, Dr = /* @__PURE__ */ ae({
|
|
|
6205
6213
|
c.value && (s.value = Dt(c.value));
|
|
6206
6214
|
}), (u, d) => {
|
|
6207
6215
|
const f = G("t-time-picker"), h = G("t-tooltip");
|
|
6208
|
-
return
|
|
6216
|
+
return y(), W("div", {
|
|
6209
6217
|
ref_key: "formSelectDelayRef",
|
|
6210
6218
|
ref: c,
|
|
6211
6219
|
style: { width: "100%" }
|
|
@@ -6301,7 +6309,7 @@ const Vr = /* @__PURE__ */ ae({
|
|
|
6301
6309
|
}
|
|
6302
6310
|
), ht(() => {
|
|
6303
6311
|
e("update:modelValue", "");
|
|
6304
|
-
}), (b, S) => (
|
|
6312
|
+
}), (b, S) => (y(), W("div", {
|
|
6305
6313
|
class: R([`${n}`, `${h.value ? `${n}--focused` : ""}`])
|
|
6306
6314
|
}, [
|
|
6307
6315
|
V(i(nl), {
|
|
@@ -6376,12 +6384,12 @@ const Vr = /* @__PURE__ */ ae({
|
|
|
6376
6384
|
e("blur:modelValue", l.value);
|
|
6377
6385
|
}
|
|
6378
6386
|
return ht(() => {
|
|
6379
|
-
r(
|
|
6387
|
+
r(Pe(a.value));
|
|
6380
6388
|
}), (f, h) => {
|
|
6381
6389
|
const m = G("t-button"), N = G("t-input"), A = G("t-input-group"), B = G("t-space");
|
|
6382
|
-
return
|
|
6390
|
+
return y(), L(B, null, {
|
|
6383
6391
|
default: T(() => [
|
|
6384
|
-
l.value.length == 0 ? (
|
|
6392
|
+
l.value.length == 0 ? (y(), L(m, {
|
|
6385
6393
|
key: 0,
|
|
6386
6394
|
onClick: c,
|
|
6387
6395
|
variant: "outline"
|
|
@@ -6390,12 +6398,12 @@ const Vr = /* @__PURE__ */ ae({
|
|
|
6390
6398
|
re(J(`${i(n)("添加")}${o.formItem.name}`), 1)
|
|
6391
6399
|
]),
|
|
6392
6400
|
_: 1
|
|
6393
|
-
})) : (
|
|
6401
|
+
})) : (y(), L(B, {
|
|
6394
6402
|
key: 1,
|
|
6395
6403
|
direction: "vertical"
|
|
6396
6404
|
}, {
|
|
6397
6405
|
default: T(() => [
|
|
6398
|
-
(
|
|
6406
|
+
(y(!0), W(ke, null, Ae(l.value, (b, S) => (y(), L(A, { key: S }, {
|
|
6399
6407
|
default: T(() => [
|
|
6400
6408
|
V(N, {
|
|
6401
6409
|
style: { width: "200px" },
|
|
@@ -6415,7 +6423,7 @@ const Vr = /* @__PURE__ */ ae({
|
|
|
6415
6423
|
]),
|
|
6416
6424
|
_: 2
|
|
6417
6425
|
}, 1032, ["onClick"]),
|
|
6418
|
-
S == l.value.length - 1 ? (
|
|
6426
|
+
S == l.value.length - 1 ? (y(), L(m, {
|
|
6419
6427
|
key: 0,
|
|
6420
6428
|
variant: "outline",
|
|
6421
6429
|
theme: "default",
|
|
@@ -6443,7 +6451,7 @@ function na(o = {}) {
|
|
|
6443
6451
|
if (!Oe(n) && n !== 1) {
|
|
6444
6452
|
let l, r;
|
|
6445
6453
|
try {
|
|
6446
|
-
return l = ft.render(n, { form: o.formModel.value }), r =
|
|
6454
|
+
return l = ft.render(n, { form: o.formModel.value }), r = Oo(l, { form: o.formModel.value }), r;
|
|
6447
6455
|
} catch (c) {
|
|
6448
6456
|
console.error(n, c.message);
|
|
6449
6457
|
}
|
|
@@ -6454,7 +6462,7 @@ function na(o = {}) {
|
|
|
6454
6462
|
if (!Oe(n) && n !== 0) {
|
|
6455
6463
|
let l, r;
|
|
6456
6464
|
try {
|
|
6457
|
-
l = ft.render(n, { form: o.formModel.value }), r =
|
|
6465
|
+
l = ft.render(n, { form: o.formModel.value }), r = Oo(l, { form: o.formModel.value });
|
|
6458
6466
|
} catch (c) {
|
|
6459
6467
|
console.error(n, c.message);
|
|
6460
6468
|
}
|
|
@@ -6478,15 +6486,15 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6478
6486
|
emits: ["after-update-value"],
|
|
6479
6487
|
setup(o, { expose: e, emit: t }) {
|
|
6480
6488
|
const n = o, { t: a } = Ve(), l = _(() => n.formModel), { handleItemShowIf: r, handleItemDisableIf: c } = na({ formModel: l });
|
|
6481
|
-
function s(
|
|
6482
|
-
t("after-update-value",
|
|
6489
|
+
function s(v, g) {
|
|
6490
|
+
t("after-update-value", v, g);
|
|
6483
6491
|
}
|
|
6484
6492
|
const u = _(() => n.formItem.disableIf ? c(n.formItem.disableIf, n.formItem) : !1), d = j(!0);
|
|
6485
6493
|
function f() {
|
|
6486
6494
|
return u.value;
|
|
6487
6495
|
}
|
|
6488
|
-
function h(
|
|
6489
|
-
d.value =
|
|
6496
|
+
function h(v) {
|
|
6497
|
+
d.value = v;
|
|
6490
6498
|
}
|
|
6491
6499
|
const m = _(
|
|
6492
6500
|
() => n.formItem.keyName ? n.formItem.keyName : n.formItem.name
|
|
@@ -6512,8 +6520,8 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6512
6520
|
}), A = _(() => {
|
|
6513
6521
|
if (n.formItem.placeholder && n.formItem.placeholder !== "")
|
|
6514
6522
|
return n.formItem.placeholder;
|
|
6515
|
-
const
|
|
6516
|
-
return
|
|
6523
|
+
const v = n.formItem.name.trim().replace(/[::]/g, "").replace(/ {2,}/g, "");
|
|
6524
|
+
return v !== "" ? `${N.value}${v}` : "";
|
|
6517
6525
|
});
|
|
6518
6526
|
e({
|
|
6519
6527
|
formItem: n.formItem,
|
|
@@ -6525,8 +6533,8 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6525
6533
|
Fe(() => {
|
|
6526
6534
|
if (b.value && n.isLabelNameShow) {
|
|
6527
6535
|
I.value = b.value.parentElement.parentElement.clientWidth;
|
|
6528
|
-
const
|
|
6529
|
-
|
|
6536
|
+
const v = b.value.clientWidth;
|
|
6537
|
+
v && v && v - I.value > -15 && (S.value = !0);
|
|
6530
6538
|
}
|
|
6531
6539
|
});
|
|
6532
6540
|
const k = {
|
|
@@ -6576,19 +6584,19 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6576
6584
|
empty: `${a("暂无数据")}`
|
|
6577
6585
|
}
|
|
6578
6586
|
};
|
|
6579
|
-
return (
|
|
6587
|
+
return (v, g) => {
|
|
6580
6588
|
const p = G("t-divider"), C = G("t-tooltip"), x = G("t-form-item"), D = G("t-config-provider");
|
|
6581
|
-
return
|
|
6589
|
+
return y(), W("div", {
|
|
6582
6590
|
ref: "formItemRef",
|
|
6583
6591
|
class: R(`${i(mn)}`),
|
|
6584
6592
|
id: i(m)
|
|
6585
6593
|
}, [
|
|
6586
|
-
d.value ? (
|
|
6594
|
+
d.value ? (y(), L(D, {
|
|
6587
6595
|
key: 0,
|
|
6588
6596
|
"global-config": k
|
|
6589
6597
|
}, {
|
|
6590
6598
|
default: T(() => [
|
|
6591
|
-
o.formItem.itemType === "line" && o.formItem.name && i(r)(o.formItem.showIf, o.formItem) ? (
|
|
6599
|
+
o.formItem.itemType === "line" && o.formItem.name && i(r)(o.formItem.showIf, o.formItem) ? (y(), L(p, {
|
|
6592
6600
|
key: 0,
|
|
6593
6601
|
align: "left"
|
|
6594
6602
|
}, {
|
|
@@ -6596,7 +6604,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6596
6604
|
re(J(o.formItem.name), 1)
|
|
6597
6605
|
]),
|
|
6598
6606
|
_: 1
|
|
6599
|
-
})) : o.formItem.itemType !== "hidden" && i(r)(o.formItem.showIf, o.formItem) ? (
|
|
6607
|
+
})) : o.formItem.itemType !== "hidden" && i(r)(o.formItem.showIf, o.formItem) ? (y(), L(x, {
|
|
6600
6608
|
key: 1,
|
|
6601
6609
|
ref: `item_${o.formItem.keyName}`,
|
|
6602
6610
|
id: o.formItem.keyName,
|
|
@@ -6621,7 +6629,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6621
6629
|
"formItem__label",
|
|
6622
6630
|
S.value ? "formItem__label--ellipsis" : ""
|
|
6623
6631
|
]),
|
|
6624
|
-
style:
|
|
6632
|
+
style: Gt({
|
|
6625
6633
|
...S.value ? { width: `${I.value - 20}px` } : {}
|
|
6626
6634
|
})
|
|
6627
6635
|
}, J(i(B)), 7)
|
|
@@ -6632,12 +6640,12 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6632
6640
|
default: T(() => {
|
|
6633
6641
|
var w, O, U, le;
|
|
6634
6642
|
return [
|
|
6635
|
-
o.formItem.itemType === "label" ? (
|
|
6643
|
+
o.formItem.itemType === "label" ? (y(), L(Hn, {
|
|
6636
6644
|
key: 0,
|
|
6637
6645
|
formItem: o.formItem,
|
|
6638
6646
|
modelValue: i(ce)(i(l), o.formItem.keyName)
|
|
6639
6647
|
}, null, 8, ["formItem", "modelValue"])) : K("", !0),
|
|
6640
|
-
o.formItem.itemType === "text_input" && o.formItem.inputType != "RE_PASSWORD" ? (
|
|
6648
|
+
o.formItem.itemType === "text_input" && o.formItem.inputType != "RE_PASSWORD" ? (y(), L(jo, {
|
|
6641
6649
|
key: 1,
|
|
6642
6650
|
formItem: o.formItem,
|
|
6643
6651
|
inputType: (O = (w = o.formItem) == null ? void 0 : w.inputType) == null ? void 0 : O.toLowerCase(),
|
|
@@ -6646,7 +6654,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6646
6654
|
disabled: i(u),
|
|
6647
6655
|
"onUpdate:modelValue": g[0] || (g[0] = (M) => s(o.formItem.keyName, M))
|
|
6648
6656
|
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : K("", !0),
|
|
6649
|
-
o.formItem.itemType === "text_input" && o.formItem.inputType == "RE_PASSWORD" ? (
|
|
6657
|
+
o.formItem.itemType === "text_input" && o.formItem.inputType == "RE_PASSWORD" ? (y(), L(jo, {
|
|
6650
6658
|
key: 2,
|
|
6651
6659
|
formItem: o.formItem,
|
|
6652
6660
|
inputType: o.formItem.inputType.toLowerCase(),
|
|
@@ -6655,13 +6663,13 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6655
6663
|
disabled: i(u),
|
|
6656
6664
|
"onUpdate:modelValue": g[1] || (g[1] = (M) => s("rePassword", M))
|
|
6657
6665
|
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : K("", !0),
|
|
6658
|
-
o.formItem.itemType === "check_box" ? (
|
|
6666
|
+
o.formItem.itemType === "check_box" ? (y(), L(Yn, {
|
|
6659
6667
|
key: 3,
|
|
6660
6668
|
modelValue: i(ce)(i(l), o.formItem.keyName, !1),
|
|
6661
6669
|
disabled: i(u),
|
|
6662
6670
|
"onUpdate:modelValue": g[2] || (g[2] = (M) => s(o.formItem.keyName, M))
|
|
6663
6671
|
}, null, 8, ["modelValue", "disabled"])) : K("", !0),
|
|
6664
|
-
o.formItem.itemType === "switch" ? (
|
|
6672
|
+
o.formItem.itemType === "switch" ? (y(), L(qn, {
|
|
6665
6673
|
key: 4,
|
|
6666
6674
|
formItem: o.formItem,
|
|
6667
6675
|
viewName: o.viewName,
|
|
@@ -6669,7 +6677,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6669
6677
|
disabled: i(u),
|
|
6670
6678
|
"onUpdate:modelValue": g[3] || (g[3] = (M) => s(o.formItem.keyName, M))
|
|
6671
6679
|
}, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : K("", !0),
|
|
6672
|
-
o.formItem.itemType === "radio" ? (
|
|
6680
|
+
o.formItem.itemType === "radio" ? (y(), L(Xn, {
|
|
6673
6681
|
key: 5,
|
|
6674
6682
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6675
6683
|
formItem: o.formItem,
|
|
@@ -6677,7 +6685,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6677
6685
|
disabled: i(u),
|
|
6678
6686
|
"onUpdate:modelValue": g[4] || (g[4] = (M) => s(o.formItem.keyName, M))
|
|
6679
6687
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : K("", !0),
|
|
6680
|
-
o.formItem.itemType === "selector" || o.formItem.itemType === "multi_selector" ? (
|
|
6688
|
+
o.formItem.itemType === "selector" || o.formItem.itemType === "multi_selector" ? (y(), L(Zn, {
|
|
6681
6689
|
key: (U = o.formItem.listData) == null ? void 0 : U.dataId,
|
|
6682
6690
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6683
6691
|
formItem: o.formItem,
|
|
@@ -6687,7 +6695,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6687
6695
|
placeholder: i(A),
|
|
6688
6696
|
"onUpdate:modelValue": g[5] || (g[5] = (M) => s(o.formItem.keyName, M))
|
|
6689
6697
|
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : K("", !0),
|
|
6690
|
-
o.formItem.itemType === "date_selector" || o.formItem.itemType === "time_selector" || o.formItem.itemType === "date_time_selector" ? (
|
|
6698
|
+
o.formItem.itemType === "date_selector" || o.formItem.itemType === "time_selector" || o.formItem.itemType === "date_time_selector" ? (y(), L(Jn, {
|
|
6691
6699
|
key: 7,
|
|
6692
6700
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6693
6701
|
formItem: o.formItem,
|
|
@@ -6696,7 +6704,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6696
6704
|
placeholder: i(A),
|
|
6697
6705
|
"onUpdate:modelValue": g[6] || (g[6] = (M) => s(o.formItem.keyName, M))
|
|
6698
6706
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : K("", !0),
|
|
6699
|
-
o.formItem.itemType == "delay_selector" ? (
|
|
6707
|
+
o.formItem.itemType == "delay_selector" ? (y(), L(Dr, {
|
|
6700
6708
|
key: 8,
|
|
6701
6709
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6702
6710
|
formItem: o.formItem,
|
|
@@ -6705,7 +6713,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6705
6713
|
placeholder: i(A),
|
|
6706
6714
|
"onUpdate:modelValue": g[7] || (g[7] = (M) => s(o.formItem.keyName, M))
|
|
6707
6715
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : K("", !0),
|
|
6708
|
-
o.formItem.itemType === "tree_check_box" ? (
|
|
6716
|
+
o.formItem.itemType === "tree_check_box" ? (y(), L(ea, {
|
|
6709
6717
|
key: 9,
|
|
6710
6718
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6711
6719
|
formItem: o.formItem,
|
|
@@ -6714,7 +6722,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6714
6722
|
placeholder: i(A),
|
|
6715
6723
|
"onUpdate:modelValue": g[8] || (g[8] = (M) => s(o.formItem.keyName, M))
|
|
6716
6724
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : K("", !0),
|
|
6717
|
-
o.formItem.itemType === "multi_tree_selector" || o.formItem.itemType === "tree_selector" ? (
|
|
6725
|
+
o.formItem.itemType === "multi_tree_selector" || o.formItem.itemType === "tree_selector" ? (y(), L(ta, {
|
|
6718
6726
|
key: 10,
|
|
6719
6727
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6720
6728
|
formItem: o.formItem,
|
|
@@ -6724,7 +6732,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6724
6732
|
placeholder: i(A),
|
|
6725
6733
|
"onUpdate:modelValue": g[9] || (g[9] = (M) => s(o.formItem.keyName, M))
|
|
6726
6734
|
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled", "placeholder"])) : K("", !0),
|
|
6727
|
-
o.formItem.itemType === "file" ? (
|
|
6735
|
+
o.formItem.itemType === "file" ? (y(), L(oa, {
|
|
6728
6736
|
key: 11,
|
|
6729
6737
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6730
6738
|
formItem: o.formItem,
|
|
@@ -6735,7 +6743,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6735
6743
|
"onUpdate:fileName": g[10] || (g[10] = (M) => o.formItem.filenameKeyName && s(o.formItem.filenameKeyName, M)),
|
|
6736
6744
|
"onUpdate:modelValue": g[11] || (g[11] = (M) => s(o.formItem.keyName, M))
|
|
6737
6745
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder", "fileName"])) : K("", !0),
|
|
6738
|
-
o.formItem.itemType === "tag" ? (
|
|
6746
|
+
o.formItem.itemType === "tag" ? (y(), L(Br, {
|
|
6739
6747
|
key: 12,
|
|
6740
6748
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6741
6749
|
formItem: o.formItem,
|
|
@@ -6744,7 +6752,7 @@ const Pr = ["id"], Ur = /* @__PURE__ */ ae({
|
|
|
6744
6752
|
placeholder: i(A),
|
|
6745
6753
|
"onUpdate:modelValue": g[12] || (g[12] = (M) => s(o.formItem.keyName, M))
|
|
6746
6754
|
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "placeholder"])) : K("", !0),
|
|
6747
|
-
o.formItem.itemType === "rich_text" ? (
|
|
6755
|
+
o.formItem.itemType === "rich_text" ? (y(), L(Vr, {
|
|
6748
6756
|
key: 13,
|
|
6749
6757
|
modelValue: i(ce)(i(l), o.formItem.keyName),
|
|
6750
6758
|
formItem: o.formItem,
|
|
@@ -6787,7 +6795,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6787
6795
|
u.length && e("block-show-if-change", t.name, u, s);
|
|
6788
6796
|
}
|
|
6789
6797
|
}
|
|
6790
|
-
return
|
|
6798
|
+
return Kt(() => {
|
|
6791
6799
|
a();
|
|
6792
6800
|
}), Fe(() => {
|
|
6793
6801
|
r();
|
|
@@ -6796,7 +6804,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6796
6804
|
() => {
|
|
6797
6805
|
a(), r();
|
|
6798
6806
|
}
|
|
6799
|
-
), (c, s) => (
|
|
6807
|
+
), (c, s) => (y(), W("div", {
|
|
6800
6808
|
id: n.value,
|
|
6801
6809
|
ref_key: "blockRef",
|
|
6802
6810
|
ref: l
|
|
@@ -6899,7 +6907,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6899
6907
|
}
|
|
6900
6908
|
return null;
|
|
6901
6909
|
}
|
|
6902
|
-
function
|
|
6910
|
+
function v(p) {
|
|
6903
6911
|
let C = Ho(p);
|
|
6904
6912
|
const x = Object.keys(C);
|
|
6905
6913
|
if (l.value && x.length) {
|
|
@@ -6920,7 +6928,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6920
6928
|
const x = k(C);
|
|
6921
6929
|
ue.warning(x == null ? void 0 : x.message);
|
|
6922
6930
|
} else {
|
|
6923
|
-
const x =
|
|
6931
|
+
const x = v(r.value);
|
|
6924
6932
|
e("confirm-form", x, p.buttonId);
|
|
6925
6933
|
}
|
|
6926
6934
|
});
|
|
@@ -6932,7 +6940,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6932
6940
|
const x = k(C);
|
|
6933
6941
|
ue.warning(x == null ? void 0 : x.message);
|
|
6934
6942
|
} else {
|
|
6935
|
-
const x =
|
|
6943
|
+
const x = v(r.value);
|
|
6936
6944
|
e("confirm-and-close", x, p.buttonId);
|
|
6937
6945
|
}
|
|
6938
6946
|
});
|
|
@@ -6950,7 +6958,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6950
6958
|
}
|
|
6951
6959
|
return (p, C) => {
|
|
6952
6960
|
const x = G("t-button");
|
|
6953
|
-
return
|
|
6961
|
+
return y(), L(i(On), {
|
|
6954
6962
|
ref_key: "commonFormRef",
|
|
6955
6963
|
ref: s,
|
|
6956
6964
|
commonFormProps: {
|
|
@@ -6961,10 +6969,10 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6961
6969
|
}
|
|
6962
6970
|
}, {
|
|
6963
6971
|
body: T(() => [
|
|
6964
|
-
(
|
|
6972
|
+
(y(!0), W(ke, null, Ae(i(l), (D) => (y(), W(ke, {
|
|
6965
6973
|
key: `${D.name}_${D.keyName}`
|
|
6966
6974
|
}, [
|
|
6967
|
-
D.itemType === "block_start" || D.itemType === "block_end" ? (
|
|
6975
|
+
D.itemType === "block_start" || D.itemType === "block_end" ? (y(), L(Fr, {
|
|
6968
6976
|
key: 0,
|
|
6969
6977
|
ref_for: !0,
|
|
6970
6978
|
ref_key: "formBlockRef",
|
|
@@ -6973,7 +6981,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6973
6981
|
blockType: D.itemType,
|
|
6974
6982
|
showIf: i(c)(D.showIf),
|
|
6975
6983
|
onBlockShowIfChange: N
|
|
6976
|
-
}, null, 8, ["name", "blockType", "showIf"])) : (
|
|
6984
|
+
}, null, 8, ["name", "blockType", "showIf"])) : (y(), L(aa, {
|
|
6977
6985
|
key: 1,
|
|
6978
6986
|
ref_for: !0,
|
|
6979
6987
|
ref_key: "formItemRef",
|
|
@@ -6988,7 +6996,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
6988
6996
|
footer: T(() => {
|
|
6989
6997
|
var D;
|
|
6990
6998
|
return [
|
|
6991
|
-
i(I) && i(I).name != "" && i(I).action !== "NONE" ? (
|
|
6999
|
+
i(I) && i(I).name != "" && i(I).action !== "NONE" ? (y(), L(x, {
|
|
6992
7000
|
key: 0,
|
|
6993
7001
|
theme: "default",
|
|
6994
7002
|
onClick: C[0] || (C[0] = (w) => i(I) && g(i(I)))
|
|
@@ -7001,7 +7009,7 @@ const aa = /* @__PURE__ */ gt(Ur, [["__scopeId", "data-v-f6f3b390"]]), _r = ["id
|
|
|
7001
7009
|
}),
|
|
7002
7010
|
_: 1
|
|
7003
7011
|
})) : K("", !0),
|
|
7004
|
-
i(S) && i(S).name != "" && ((D = i(S)) == null ? void 0 : D.action) !== "NONE" ? (
|
|
7012
|
+
i(S) && i(S).name != "" && ((D = i(S)) == null ? void 0 : D.action) !== "NONE" ? (y(), L(x, {
|
|
7005
7013
|
key: 1,
|
|
7006
7014
|
theme: "primary",
|
|
7007
7015
|
onClick: C[1] || (C[1] = (w) => i(S) && g(i(S)))
|
|
@@ -7067,7 +7075,7 @@ const Or = He($r), Rr = /* @__PURE__ */ ae({
|
|
|
7067
7075
|
}
|
|
7068
7076
|
return (s, u) => {
|
|
7069
7077
|
var d, f;
|
|
7070
|
-
return
|
|
7078
|
+
return y(), L(i(Ro), st({
|
|
7071
7079
|
limit: 1,
|
|
7072
7080
|
multiple: !1,
|
|
7073
7081
|
showFileList: !1,
|
|
@@ -7109,16 +7117,16 @@ const Or = He($r), Rr = /* @__PURE__ */ ae({
|
|
|
7109
7117
|
}
|
|
7110
7118
|
return (u, d) => {
|
|
7111
7119
|
const f = G("t-button");
|
|
7112
|
-
return
|
|
7120
|
+
return y(), L(i(Rn), null, Nt({
|
|
7113
7121
|
"left-operations": T(() => [
|
|
7114
|
-
(
|
|
7122
|
+
(y(!0), W(ke, null, Ae(i(n), (h) => (y(), W(ke, {
|
|
7115
7123
|
key: h.buttonId
|
|
7116
7124
|
}, [
|
|
7117
|
-
h.action == "UPLOAD_FILE" ? (
|
|
7125
|
+
h.action == "UPLOAD_FILE" ? (y(), L(Rr, {
|
|
7118
7126
|
key: 0,
|
|
7119
7127
|
button: h,
|
|
7120
7128
|
viewName: o.viewName
|
|
7121
|
-
}, null, 8, ["button", "viewName"])) : (
|
|
7129
|
+
}, null, 8, ["button", "viewName"])) : (y(), L(f, {
|
|
7122
7130
|
key: 1,
|
|
7123
7131
|
theme: "primary",
|
|
7124
7132
|
onClick: (m) => a(h)
|
|
@@ -7135,7 +7143,7 @@ const Or = He($r), Rr = /* @__PURE__ */ ae({
|
|
|
7135
7143
|
i(l) ? {
|
|
7136
7144
|
name: "right-operations",
|
|
7137
7145
|
fn: T(() => [
|
|
7138
|
-
(
|
|
7146
|
+
(y(!0), W(ke, null, Ae(i(l), (h, m) => (y(), W("div", {
|
|
7139
7147
|
class: R(`${i(kl)}--right-item`),
|
|
7140
7148
|
key: m
|
|
7141
7149
|
}, [
|
|
@@ -7173,20 +7181,20 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7173
7181
|
function s(u, d) {
|
|
7174
7182
|
e("blur", u, r.value);
|
|
7175
7183
|
}
|
|
7176
|
-
return (u, d) => (
|
|
7184
|
+
return (u, d) => (y(), W("div", {
|
|
7177
7185
|
class: R(`${a}`)
|
|
7178
7186
|
}, [
|
|
7179
|
-
(
|
|
7187
|
+
(y(!0), W(ke, null, Ae(i(l), (f) => {
|
|
7180
7188
|
var h;
|
|
7181
|
-
return
|
|
7189
|
+
return y(), W("div", {
|
|
7182
7190
|
key: f.keyName
|
|
7183
7191
|
}, [
|
|
7184
|
-
f.itemType === "label" ? (
|
|
7192
|
+
f.itemType === "label" ? (y(), L(Hn, {
|
|
7185
7193
|
key: 0,
|
|
7186
7194
|
modelValue: i(ce)(i(r), o.col.colKey),
|
|
7187
7195
|
formItem: f
|
|
7188
7196
|
}, null, 8, ["modelValue", "formItem"])) : K("", !0),
|
|
7189
|
-
f.itemType == "text_input" ? (
|
|
7197
|
+
f.itemType == "text_input" ? (y(), L(jo, {
|
|
7190
7198
|
key: 1,
|
|
7191
7199
|
formItem: f,
|
|
7192
7200
|
viewName: o.viewName,
|
|
@@ -7196,7 +7204,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7196
7204
|
"onUpdate:modelValue": d[0] || (d[0] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7197
7205
|
"onBlur:modelValue": (m) => s(f)
|
|
7198
7206
|
}, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) : K("", !0),
|
|
7199
|
-
f.itemType === "check_box" ? (
|
|
7207
|
+
f.itemType === "check_box" ? (y(), L(Yn, {
|
|
7200
7208
|
key: 2,
|
|
7201
7209
|
formItem: f,
|
|
7202
7210
|
viewName: o.viewName,
|
|
@@ -7205,7 +7213,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7205
7213
|
"onUpdate:modelValue": d[1] || (d[1] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7206
7214
|
"onBlur:modelValue": (m) => s(f)
|
|
7207
7215
|
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : K("", !0),
|
|
7208
|
-
f.itemType === "switch" ? (
|
|
7216
|
+
f.itemType === "switch" ? (y(), L(qn, {
|
|
7209
7217
|
key: 3,
|
|
7210
7218
|
formItem: f,
|
|
7211
7219
|
viewName: o.viewName,
|
|
@@ -7214,7 +7222,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7214
7222
|
"onUpdate:modelValue": d[2] || (d[2] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7215
7223
|
"onBlur:modelValue": (m) => s(f)
|
|
7216
7224
|
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : K("", !0),
|
|
7217
|
-
f.itemType === "radio" ? (
|
|
7225
|
+
f.itemType === "radio" ? (y(), L(Xn, {
|
|
7218
7226
|
key: 4,
|
|
7219
7227
|
originValue: i(ce)(o.row, o.col.colKey),
|
|
7220
7228
|
modelValue: i(ce)(i(r), o.col.colKey),
|
|
@@ -7223,7 +7231,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7223
7231
|
"onUpdate:modelValue": d[3] || (d[3] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7224
7232
|
"onBlur:modelValue": (m) => s(f)
|
|
7225
7233
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : K("", !0),
|
|
7226
|
-
f.itemType === "selector" || f.itemType === "multi_selector" ? (
|
|
7234
|
+
f.itemType === "selector" || f.itemType === "multi_selector" ? (y(), L(Zn, {
|
|
7227
7235
|
key: 5,
|
|
7228
7236
|
originValue: i(ce)(o.row, o.col.colKey),
|
|
7229
7237
|
modelValue: i(ce)(i(r), o.col.colKey),
|
|
@@ -7233,7 +7241,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7233
7241
|
"onUpdate:modelValue": d[4] || (d[4] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7234
7242
|
"onBlur:modelValue": (m) => s(f)
|
|
7235
7243
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : K("", !0),
|
|
7236
|
-
f.itemType === "date_selector" || f.itemType === "time_selector" || f.itemType === "date_time_selector" ? (
|
|
7244
|
+
f.itemType === "date_selector" || f.itemType === "time_selector" || f.itemType === "date_time_selector" ? (y(), L(Jn, {
|
|
7237
7245
|
key: 6,
|
|
7238
7246
|
originValue: i(ce)(o.row, o.col.colKey),
|
|
7239
7247
|
modelValue: i(ce)(i(r), o.col.colKey),
|
|
@@ -7242,7 +7250,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7242
7250
|
"onUpdate:modelValue": d[5] || (d[5] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7243
7251
|
"onBlur:modelValue": (m) => s(f)
|
|
7244
7252
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : K("", !0),
|
|
7245
|
-
f.itemType === "tree_check_box" ? (
|
|
7253
|
+
f.itemType === "tree_check_box" ? (y(), L(ea, {
|
|
7246
7254
|
key: 7,
|
|
7247
7255
|
originValue: i(ce)(o.row, o.col.colKey),
|
|
7248
7256
|
modelValue: i(ce)(i(r), o.col.colKey),
|
|
@@ -7251,7 +7259,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7251
7259
|
"onUpdate:modelValue": d[6] || (d[6] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7252
7260
|
"onBlur:modelValue": (m) => s(f)
|
|
7253
7261
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : K("", !0),
|
|
7254
|
-
f.itemType === "multi_tree_selector" || f.itemType === "tree_selector" ? (
|
|
7262
|
+
f.itemType === "multi_tree_selector" || f.itemType === "tree_selector" ? (y(), L(ta, {
|
|
7255
7263
|
key: 8,
|
|
7256
7264
|
originValue: i(ce)(o.row, o.col.colKey),
|
|
7257
7265
|
modelValue: i(ce)(i(r), o.col.colKey),
|
|
@@ -7261,7 +7269,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7261
7269
|
"onUpdate:modelValue": d[7] || (d[7] = (m) => o.col.colKey && c(o.col.colKey, m)),
|
|
7262
7270
|
"onBlur:modelValue": (m) => s(f)
|
|
7263
7271
|
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : K("", !0),
|
|
7264
|
-
f.itemType === "file" ? (
|
|
7272
|
+
f.itemType === "file" ? (y(), L(oa, {
|
|
7265
7273
|
key: 9,
|
|
7266
7274
|
modelValue: i(ce)(i(r), o.col.colKey),
|
|
7267
7275
|
formItem: f,
|
|
@@ -7275,7 +7283,7 @@ const Gr = /* @__PURE__ */ gt(jr, [["__scopeId", "data-v-cca3891b"]]), Kr = He(G
|
|
|
7275
7283
|
], 2));
|
|
7276
7284
|
}
|
|
7277
7285
|
});
|
|
7278
|
-
function
|
|
7286
|
+
function xo(o) {
|
|
7279
7287
|
return o === "" ? o : o === "true" || o == "1";
|
|
7280
7288
|
}
|
|
7281
7289
|
function Hr(o, e) {
|
|
@@ -7523,12 +7531,12 @@ function Qr(o, {
|
|
|
7523
7531
|
throw new RangeError(
|
|
7524
7532
|
"Canvas has no associated contexts (try calling getContext or newPage first)"
|
|
7525
7533
|
);
|
|
7526
|
-
let S, I, k = e.replace(/{(\d*)}/g, (g, p) => (I = !0, p = parseInt(p, 10), S = isFinite(p) ? p : isFinite(S) ? S : -1, "{}")),
|
|
7527
|
-
if (isFinite(
|
|
7534
|
+
let S, I, k = e.replace(/{(\d*)}/g, (g, p) => (I = !0, p = parseInt(p, 10), S = isFinite(p) ? p : isFinite(S) ? S : -1, "{}")), v = a > 0 ? a - 1 : a < 0 ? b + a : void 0;
|
|
7535
|
+
if (isFinite(v) && v < 0 || v >= b)
|
|
7528
7536
|
throw new RangeError(
|
|
7529
|
-
b == 1 ? `Canvas only has a ‘page 1’ (${
|
|
7537
|
+
b == 1 ? `Canvas only has a ‘page 1’ (${v} is out of bounds)` : `Canvas has pages 1–${b} (${v} is out of bounds)`
|
|
7530
7538
|
);
|
|
7531
|
-
if (o = isFinite(
|
|
7539
|
+
if (o = isFinite(v) ? [o[v]] : I || A == "pdf" ? o : o.slice(-1), l === void 0)
|
|
7532
7540
|
l = 0.92;
|
|
7533
7541
|
else if (typeof l != "number" || !isFinite(l) || l < 0 || l > 1)
|
|
7534
7542
|
throw new TypeError(
|
|
@@ -7553,9 +7561,9 @@ function Qr(o, {
|
|
|
7553
7561
|
archive: m
|
|
7554
7562
|
};
|
|
7555
7563
|
}
|
|
7556
|
-
class
|
|
7564
|
+
class bo {
|
|
7557
7565
|
static for(e) {
|
|
7558
|
-
return new
|
|
7566
|
+
return new bo().append(e).get();
|
|
7559
7567
|
}
|
|
7560
7568
|
constructor() {
|
|
7561
7569
|
this.crc = -1;
|
|
@@ -7569,7 +7577,7 @@ class yo {
|
|
|
7569
7577
|
return this.crc = t, this;
|
|
7570
7578
|
}
|
|
7571
7579
|
}
|
|
7572
|
-
|
|
7580
|
+
bo.prototype.table = (() => {
|
|
7573
7581
|
var o, e, t, n = [];
|
|
7574
7582
|
for (o = 0; o < 256; o++) {
|
|
7575
7583
|
for (t = o, e = 0; e < 8; e++)
|
|
@@ -7578,7 +7586,7 @@ yo.prototype.table = (() => {
|
|
|
7578
7586
|
}
|
|
7579
7587
|
return n;
|
|
7580
7588
|
})();
|
|
7581
|
-
function
|
|
7589
|
+
function Ao(o) {
|
|
7582
7590
|
let e = new Uint8Array(o), t = new DataView(e.buffer), n = {
|
|
7583
7591
|
array: e,
|
|
7584
7592
|
view: t,
|
|
@@ -7598,7 +7606,7 @@ function xo(o) {
|
|
|
7598
7606
|
};
|
|
7599
7607
|
return n;
|
|
7600
7608
|
}
|
|
7601
|
-
class
|
|
7609
|
+
class wo {
|
|
7602
7610
|
constructor(e) {
|
|
7603
7611
|
let t = new Date();
|
|
7604
7612
|
Object.assign(this, {
|
|
@@ -7610,16 +7618,16 @@ class bo {
|
|
|
7610
7618
|
}), this.add(e);
|
|
7611
7619
|
}
|
|
7612
7620
|
async add(e, t) {
|
|
7613
|
-
let n = !t, a =
|
|
7621
|
+
let n = !t, a = wo.encoder.encode(`${this.directory}/${n ? "" : e}`), l = new Uint8Array(n ? 0 : await t.arrayBuffer()), r = 30 + a.length, c = r + l.length, s = 16, { offset: u } = this, d = Ao(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, bo.for(l)).set32(14, l.length).set32(18, l.length).set16(22, a.length);
|
|
7614
7622
|
u += r;
|
|
7615
|
-
let f =
|
|
7623
|
+
let f = Ao(r + l.length + s).set32(0, 67324752).bytes(4, d.array).bytes(30, a).bytes(r, l);
|
|
7616
7624
|
u += l.length, f.set32(c, 134695760).bytes(c + 4, d.array.slice(10, 22)), u += s, this.files.push({ offset: u, folder: n, name: a, header: d, payload: f }), this.offset = u;
|
|
7617
7625
|
}
|
|
7618
7626
|
toBuffer() {
|
|
7619
7627
|
let e = this.files.reduce(
|
|
7620
7628
|
(f, { name: h }) => 46 + h.length + f,
|
|
7621
7629
|
0
|
|
7622
|
-
), t =
|
|
7630
|
+
), t = Ao(e + 22), n = 0;
|
|
7623
7631
|
for (var { offset: a, name: l, header: r, folder: c } of this.files)
|
|
7624
7632
|
t.set32(n, 33639248).set16(n + 4, 20).bytes(n + 6, r.array).set8(n + 38, c ? 16 : 0).set32(n + 42, a).bytes(n + 46, l), n += 46 + l.length;
|
|
7625
7633
|
t.set32(n, 101010256).set16(n + 8, this.files.length).set16(n + 10, this.files.length).set32(n + 12, e).set32(n + 16, this.offset);
|
|
@@ -7632,7 +7640,7 @@ class bo {
|
|
|
7632
7640
|
return new Blob([this.toBuffer()], { type: "application/zip" });
|
|
7633
7641
|
}
|
|
7634
7642
|
}
|
|
7635
|
-
|
|
7643
|
+
wo.encoder = new TextEncoder();
|
|
7636
7644
|
const Zo = (o, e, t, n) => {
|
|
7637
7645
|
if (n) {
|
|
7638
7646
|
let { width: a, height: l } = o, r = Object.assign(document.createElement("canvas"), { width: a, height: l }), c = r.getContext("2d");
|
|
@@ -7642,7 +7650,7 @@ const Zo = (o, e, t, n) => {
|
|
|
7642
7650
|
}, Xr = (...o) => Zo(...o).then((e) => e.arrayBuffer()), Zr = async (o, e, t, n, a) => {
|
|
7643
7651
|
ra(a, await Zo(o, e, t, n));
|
|
7644
7652
|
}, Jr = async (o, e, t, n, a, l, r) => {
|
|
7645
|
-
let c = (d) => l.replace("{}", String(d + 1).padStart(r, "0")), s = la(a, ".zip") || "archive", u = new
|
|
7653
|
+
let c = (d) => l.replace("{}", String(d + 1).padStart(r, "0")), s = la(a, ".zip") || "archive", u = new wo(s);
|
|
7646
7654
|
await Promise.all(
|
|
7647
7655
|
o.map(async (d, f) => {
|
|
7648
7656
|
let h = c(f);
|
|
@@ -7657,7 +7665,7 @@ const Zo = (o, e, t, n) => {
|
|
|
7657
7665
|
return n.canvas;
|
|
7658
7666
|
let a = document.createElement("canvas"), l = a.getContext("2d"), r = n.canvas ? n.canvas : n;
|
|
7659
7667
|
return a.width = r.width * e, a.height = r.height * e, t && (l.fillStyle = t, l.fillRect(0, 0, a.width, a.height)), l.scale(e, e), l.drawImage(r, 0, 0), a;
|
|
7660
|
-
}), ti = { asBuffer: Xr, asDownload: Zr, asZipDownload: Jr, atScale: ei, options: Qr }, { asBuffer:
|
|
7668
|
+
}), ti = { asBuffer: Xr, asDownload: Zr, asZipDownload: Jr, atScale: ei, options: Qr }, { asBuffer: Eo, asDownload: oi, asZipDownload: ni, atScale: Do, options: Vo } = ti, yn = Symbol.for("toDataURL"), ai = (o) => new Promise(
|
|
7661
7669
|
(e, t) => Object.assign(new ia(), {
|
|
7662
7670
|
crossOrigin: "Anonymous",
|
|
7663
7671
|
onload: e,
|
|
@@ -7674,8 +7682,8 @@ let li = class {
|
|
|
7674
7682
|
enumerable: !0
|
|
7675
7683
|
});
|
|
7676
7684
|
for (var [l, r] of Object.entries({
|
|
7677
|
-
png: () =>
|
|
7678
|
-
jpg: () =>
|
|
7685
|
+
png: () => Eo(n, "image/png"),
|
|
7686
|
+
jpg: () => Eo(n, "image/jpeg"),
|
|
7679
7687
|
pages: () => a.concat(n).map((c) => c.getContext("2d"))
|
|
7680
7688
|
}))
|
|
7681
7689
|
Object.defineProperty(n, l, { get: r });
|
|
@@ -7693,7 +7701,7 @@ let li = class {
|
|
|
7693
7701
|
},
|
|
7694
7702
|
saveAs(c, s) {
|
|
7695
7703
|
s = typeof s == "number" ? { quality: s } : s;
|
|
7696
|
-
let u =
|
|
7704
|
+
let u = Vo(this.pages, { filename: c, ...s }), { pattern: d, padding: f, mime: h, quality: m, matte: N, density: A, archive: B } = u, b = Do(u.pages, A);
|
|
7697
7705
|
return f == null ? oi(b[0], h, m, N, c) : ni(
|
|
7698
7706
|
b,
|
|
7699
7707
|
h,
|
|
@@ -7706,13 +7714,13 @@ let li = class {
|
|
|
7706
7714
|
},
|
|
7707
7715
|
toBuffer(c = "png", s = {}) {
|
|
7708
7716
|
s = typeof s == "number" ? { quality: s } : s;
|
|
7709
|
-
let u =
|
|
7710
|
-
return
|
|
7717
|
+
let u = Vo(this.pages, { extension: c, ...s }), { mime: d, quality: f, matte: h, pages: m, density: N } = u, A = Do(m, N, h)[0];
|
|
7718
|
+
return Eo(A, d, f, h);
|
|
7711
7719
|
},
|
|
7712
7720
|
[yn]: n.toDataURL.bind(n),
|
|
7713
7721
|
toDataURL(c = "png", s = {}) {
|
|
7714
7722
|
s = typeof s == "number" ? { quality: s } : s;
|
|
7715
|
-
let u =
|
|
7723
|
+
let u = Vo(this.pages, { extension: c, ...s }), { mime: d, quality: f, matte: h, pages: m, density: N } = u, A = Do(m, N, h)[0], B = A[A === n ? yn : "toDataURL"](d, f);
|
|
7716
7724
|
return Promise.resolve(B);
|
|
7717
7725
|
}
|
|
7718
7726
|
});
|
|
@@ -7740,14 +7748,14 @@ const {
|
|
|
7740
7748
|
DOMMatrix: di,
|
|
7741
7749
|
DOMRect: mi,
|
|
7742
7750
|
DOMPoint: fi
|
|
7743
|
-
},
|
|
7751
|
+
}, _t = (o, e, t = {}, n = t) => {
|
|
7744
7752
|
if (Array.isArray(e))
|
|
7745
|
-
e.forEach((a) =>
|
|
7753
|
+
e.forEach((a) => _t(o, a, t, n));
|
|
7746
7754
|
else if (typeof e == "function")
|
|
7747
|
-
e(o, t, n,
|
|
7755
|
+
e(o, t, n, _t);
|
|
7748
7756
|
else {
|
|
7749
7757
|
const a = Object.keys(e)[0];
|
|
7750
|
-
Array.isArray(e[a]) ? (n[a] = {},
|
|
7758
|
+
Array.isArray(e[a]) ? (n[a] = {}, _t(o, e[a], t, n[a])) : n[a] = e[a](o, t, n, _t);
|
|
7751
7759
|
}
|
|
7752
7760
|
return t;
|
|
7753
7761
|
}, Ct = (o, e) => (t, n, a, l) => {
|
|
@@ -7765,7 +7773,7 @@ const {
|
|
|
7765
7773
|
}, gi = (o) => ({
|
|
7766
7774
|
data: o,
|
|
7767
7775
|
pos: 0
|
|
7768
|
-
}), ze = () => (o) => o.data[o.pos++], sa = (o = 0) => (e) => e.data[e.pos + o], Je = (o) => (e) => e.data.subarray(e.pos, e.pos += o),
|
|
7776
|
+
}), ze = () => (o) => o.data[o.pos++], sa = (o = 0) => (e) => e.data[e.pos + o], Je = (o) => (e) => e.data.subarray(e.pos, e.pos += o), To = (o) => (e) => e.data.subarray(e.pos, e.pos + o), Ko = (o) => (e) => Array.from(Je(o)(e)).map((t) => String.fromCharCode(t)).join(""), yt = (o) => (e) => {
|
|
7769
7777
|
const t = Je(2)(e);
|
|
7770
7778
|
return o ? (t[1] << 8) + t[0] : (t[0] << 8) + t[1];
|
|
7771
7779
|
}, ca = (o, e) => (t, n, a) => {
|
|
@@ -7786,7 +7794,7 @@ const {
|
|
|
7786
7794
|
return c.length ? l[r] = vi(n, c.index, c.length) : l[r] = n[c.index], l;
|
|
7787
7795
|
}, {});
|
|
7788
7796
|
};
|
|
7789
|
-
var
|
|
7797
|
+
var Mo = {
|
|
7790
7798
|
blocks: (o) => {
|
|
7791
7799
|
const t = [], n = o.data.length;
|
|
7792
7800
|
for (var a = 0, l = ze()(o); l !== 0 && l; l = ze()(o)) {
|
|
@@ -7822,7 +7830,7 @@ const yi = Ct(
|
|
|
7822
7830
|
]
|
|
7823
7831
|
},
|
|
7824
7832
|
(o) => {
|
|
7825
|
-
var e =
|
|
7833
|
+
var e = To(2)(o);
|
|
7826
7834
|
return e[0] === 33 && e[1] === 249;
|
|
7827
7835
|
}
|
|
7828
7836
|
), bi = Ct(
|
|
@@ -7852,7 +7860,7 @@ const yi = Ct(
|
|
|
7852
7860
|
},
|
|
7853
7861
|
(o, e, t) => t.descriptor.lct.exists
|
|
7854
7862
|
),
|
|
7855
|
-
{ data: [{ minCodeSize: ze() },
|
|
7863
|
+
{ data: [{ minCodeSize: ze() }, Mo] }
|
|
7856
7864
|
]
|
|
7857
7865
|
},
|
|
7858
7866
|
(o) => sa()(o) === 44
|
|
@@ -7864,11 +7872,11 @@ const yi = Ct(
|
|
|
7864
7872
|
{
|
|
7865
7873
|
preData: (o, e, t) => Je(t.text.blockSize)(o)
|
|
7866
7874
|
},
|
|
7867
|
-
|
|
7875
|
+
Mo
|
|
7868
7876
|
]
|
|
7869
7877
|
},
|
|
7870
7878
|
(o) => {
|
|
7871
|
-
var e =
|
|
7879
|
+
var e = To(2)(o);
|
|
7872
7880
|
return e[0] === 33 && e[1] === 1;
|
|
7873
7881
|
}
|
|
7874
7882
|
), Ti = Ct(
|
|
@@ -7877,19 +7885,19 @@ const yi = Ct(
|
|
|
7877
7885
|
{ codes: Je(2) },
|
|
7878
7886
|
{ blockSize: ze() },
|
|
7879
7887
|
{ id: (o, e, t) => Ko(t.blockSize)(o) },
|
|
7880
|
-
|
|
7888
|
+
Mo
|
|
7881
7889
|
]
|
|
7882
7890
|
},
|
|
7883
7891
|
(o) => {
|
|
7884
|
-
var e =
|
|
7892
|
+
var e = To(2)(o);
|
|
7885
7893
|
return e[0] === 33 && e[1] === 255;
|
|
7886
7894
|
}
|
|
7887
7895
|
), Mi = Ct(
|
|
7888
7896
|
{
|
|
7889
|
-
comment: [{ codes: Je(2) },
|
|
7897
|
+
comment: [{ codes: Je(2) }, Mo]
|
|
7890
7898
|
},
|
|
7891
7899
|
(o) => {
|
|
7892
|
-
var e =
|
|
7900
|
+
var e = To(2)(o);
|
|
7893
7901
|
return e[0] === 33 && e[1] === 254;
|
|
7894
7902
|
}
|
|
7895
7903
|
), Ci = [
|
|
@@ -7940,18 +7948,18 @@ const yi = Ct(
|
|
|
7940
7948
|
return t;
|
|
7941
7949
|
}, Ii = (o, e, t) => {
|
|
7942
7950
|
const l = t;
|
|
7943
|
-
var r, c, s, u, d, f, h,
|
|
7951
|
+
var r, c, s, u, d, f, h, v, m, N, k, A, g, p, x, C;
|
|
7944
7952
|
const B = new Array(t), b = new Array(4096), S = new Array(4096), I = new Array(4096 + 1);
|
|
7945
7953
|
for (A = o, c = 1 << A, d = c + 1, r = c + 2, h = -1, u = A + 1, s = (1 << u) - 1, m = 0; m < c; m++)
|
|
7946
7954
|
b[m] = 0, S[m] = m;
|
|
7947
|
-
var k,
|
|
7948
|
-
for (k =
|
|
7955
|
+
var k, v, g, p, C, x;
|
|
7956
|
+
for (k = v = g = p = C = x = 0, N = 0; N < l; ) {
|
|
7949
7957
|
if (p === 0) {
|
|
7950
|
-
if (
|
|
7951
|
-
k += e[x] <<
|
|
7958
|
+
if (v < u) {
|
|
7959
|
+
k += e[x] << v, v += 8, x++;
|
|
7952
7960
|
continue;
|
|
7953
7961
|
}
|
|
7954
|
-
if (m = k & s, k >>= u,
|
|
7962
|
+
if (m = k & s, k >>= u, v -= u, m > r || m == d)
|
|
7955
7963
|
break;
|
|
7956
7964
|
if (m == c) {
|
|
7957
7965
|
u = A + 1, s = (1 << u) - 1, r = c + 2, h = -1;
|
|
@@ -7972,7 +7980,7 @@ const yi = Ct(
|
|
|
7972
7980
|
return B;
|
|
7973
7981
|
}, Si = (o) => {
|
|
7974
7982
|
const e = new Uint8Array(o);
|
|
7975
|
-
return
|
|
7983
|
+
return _t(gi(e), Ci);
|
|
7976
7984
|
}, Ni = (o) => {
|
|
7977
7985
|
const e = o.pixels.length, t = new Uint8ClampedArray(e * 4);
|
|
7978
7986
|
for (var n = 0; n < e; n++) {
|
|
@@ -8003,16 +8011,16 @@ function Ai(o, e, t) {
|
|
|
8003
8011
|
const n = ua(e), a = o - 1;
|
|
8004
8012
|
let l = 0;
|
|
8005
8013
|
switch (t) {
|
|
8006
|
-
case
|
|
8014
|
+
case Ue.L:
|
|
8007
8015
|
l = Xe[a][0];
|
|
8008
8016
|
break;
|
|
8009
|
-
case
|
|
8017
|
+
case Ue.M:
|
|
8010
8018
|
l = Xe[a][1];
|
|
8011
8019
|
break;
|
|
8012
|
-
case
|
|
8020
|
+
case Ue.Q:
|
|
8013
8021
|
l = Xe[a][2];
|
|
8014
8022
|
break;
|
|
8015
|
-
case
|
|
8023
|
+
case Ue.H:
|
|
8016
8024
|
l = Xe[a][3];
|
|
8017
8025
|
break;
|
|
8018
8026
|
}
|
|
@@ -8022,16 +8030,16 @@ function Ei(o, e) {
|
|
|
8022
8030
|
for (var t = 1, n = ua(o), a = 0, l = Xe.length; a < l; a++) {
|
|
8023
8031
|
var r = 0;
|
|
8024
8032
|
switch (e) {
|
|
8025
|
-
case
|
|
8033
|
+
case Ue.L:
|
|
8026
8034
|
r = Xe[a][0];
|
|
8027
8035
|
break;
|
|
8028
|
-
case
|
|
8036
|
+
case Ue.M:
|
|
8029
8037
|
r = Xe[a][1];
|
|
8030
8038
|
break;
|
|
8031
|
-
case
|
|
8039
|
+
case Ue.Q:
|
|
8032
8040
|
r = Xe[a][2];
|
|
8033
8041
|
break;
|
|
8034
|
-
case
|
|
8042
|
+
case Ue.H:
|
|
8035
8043
|
r = Xe[a][3];
|
|
8036
8044
|
break;
|
|
8037
8045
|
}
|
|
@@ -8066,7 +8074,7 @@ class Di {
|
|
|
8066
8074
|
}
|
|
8067
8075
|
}
|
|
8068
8076
|
class mt {
|
|
8069
|
-
constructor(e = -1, t =
|
|
8077
|
+
constructor(e = -1, t = Ue.L) {
|
|
8070
8078
|
this.moduleCount = 0, this.dataList = [], this.typeNumber = e, this.errorCorrectLevel = t, this.moduleCount = 0, this.dataList = [];
|
|
8071
8079
|
}
|
|
8072
8080
|
addData(e) {
|
|
@@ -8222,7 +8230,7 @@ class mt {
|
|
|
8222
8230
|
}
|
|
8223
8231
|
mt.PAD0 = 236;
|
|
8224
8232
|
mt.PAD1 = 17;
|
|
8225
|
-
const
|
|
8233
|
+
const Ue = { L: 1, M: 0, Q: 3, H: 2 }, je = { MODE_NUMBER: 1 << 0, MODE_ALPHA_NUM: 1 << 1, MODE_8BIT_BYTE: 1 << 2, MODE_KANJI: 1 << 3 }, nt = {
|
|
8226
8234
|
PATTERN000: 0,
|
|
8227
8235
|
PATTERN001: 1,
|
|
8228
8236
|
PATTERN010: 2,
|
|
@@ -8479,13 +8487,13 @@ class lt {
|
|
|
8479
8487
|
}
|
|
8480
8488
|
static getRsBlockTable(e, t) {
|
|
8481
8489
|
switch (t) {
|
|
8482
|
-
case
|
|
8490
|
+
case Ue.L:
|
|
8483
8491
|
return lt.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
|
|
8484
|
-
case
|
|
8492
|
+
case Ue.M:
|
|
8485
8493
|
return lt.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
|
|
8486
|
-
case
|
|
8494
|
+
case Ue.Q:
|
|
8487
8495
|
return lt.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
|
|
8488
|
-
case
|
|
8496
|
+
case Ue.H:
|
|
8489
8497
|
return lt.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
|
|
8490
8498
|
default:
|
|
8491
8499
|
return;
|
|
@@ -8716,7 +8724,7 @@ const Xe = [
|
|
|
8716
8724
|
[2809, 2213, 1579, 1219],
|
|
8717
8725
|
[2953, 2331, 1663, 1273]
|
|
8718
8726
|
];
|
|
8719
|
-
var Bi = 100, Ee = 256, bn = Ee - 1, ut = 4, da = 16, en = 1 << da, ma = 10, tn = 10, Pi = en >> tn, Ui = en << ma - tn, _i = Ee >> 3, zo = 6, Fi = 1 << zo, $i = _i * Fi, Oi = 30, fa = 10,
|
|
8727
|
+
var Bi = 100, Ee = 256, bn = Ee - 1, ut = 4, da = 16, en = 1 << da, ma = 10, tn = 10, Pi = en >> tn, Ui = en << ma - tn, _i = Ee >> 3, zo = 6, Fi = 1 << zo, $i = _i * Fi, Oi = 30, fa = 10, Jt = 1 << fa, ha = 8, wn = 1 << ha, Ri = fa + ha, It = 1 << Ri, Tn = 499, Mn = 491, Cn = 487, pa = 503, ji = 3 * pa;
|
|
8720
8728
|
function Gi(o, e) {
|
|
8721
8729
|
var t, n, a, l, r;
|
|
8722
8730
|
function c() {
|
|
@@ -8729,25 +8737,25 @@ function Gi(o, e) {
|
|
|
8729
8737
|
for (var b = 0; b < Ee; b++)
|
|
8730
8738
|
t[b][0] >>= ut, t[b][1] >>= ut, t[b][2] >>= ut, t[b][3] = b;
|
|
8731
8739
|
}
|
|
8732
|
-
function u(b, S, I, k,
|
|
8733
|
-
t[S][0] -= b * (t[S][0] - I) /
|
|
8740
|
+
function u(b, S, I, k, v) {
|
|
8741
|
+
t[S][0] -= b * (t[S][0] - I) / Jt, t[S][1] -= b * (t[S][1] - k) / Jt, t[S][2] -= b * (t[S][2] - v) / Jt;
|
|
8734
8742
|
}
|
|
8735
|
-
function d(b, S, I, k,
|
|
8743
|
+
function d(b, S, I, k, v) {
|
|
8736
8744
|
for (var g = Math.abs(S - b), p = Math.min(S + b, Ee), C = S + 1, x = S - 1, D = 1, w, O; C < p || x > g; )
|
|
8737
|
-
O = r[D++], C < p && (w = t[C++], w[0] -= O * (w[0] - I) / It, w[1] -= O * (w[1] - k) / It, w[2] -= O * (w[2] -
|
|
8745
|
+
O = r[D++], C < p && (w = t[C++], w[0] -= O * (w[0] - I) / It, w[1] -= O * (w[1] - k) / It, w[2] -= O * (w[2] - v) / It), x > g && (w = t[x--], w[0] -= O * (w[0] - I) / It, w[1] -= O * (w[1] - k) / It, w[2] -= O * (w[2] - v) / It);
|
|
8738
8746
|
}
|
|
8739
8747
|
function f(b, S, I) {
|
|
8740
|
-
var k = 2147483647,
|
|
8748
|
+
var k = 2147483647, v = k, g = -1, p = g, C, x, D, w, O;
|
|
8741
8749
|
for (C = 0; C < Ee; C++)
|
|
8742
|
-
x = t[C], D = Math.abs(x[0] - b) + Math.abs(x[1] - S) + Math.abs(x[2] - I), D < k && (k = D, g = C), w = D - (a[C] >> da - ut), w <
|
|
8750
|
+
x = t[C], D = Math.abs(x[0] - b) + Math.abs(x[1] - S) + Math.abs(x[2] - I), D < k && (k = D, g = C), w = D - (a[C] >> da - ut), w < v && (v = w, p = C), O = l[C] >> tn, l[C] -= O, a[C] += O << ma;
|
|
8743
8751
|
return l[g] += Pi, a[g] -= Ui, p;
|
|
8744
8752
|
}
|
|
8745
8753
|
function h() {
|
|
8746
|
-
var b, S, I, k,
|
|
8754
|
+
var b, S, I, k, v, g, p = 0, C = 0;
|
|
8747
8755
|
for (b = 0; b < Ee; b++) {
|
|
8748
|
-
for (I = t[b],
|
|
8749
|
-
k = t[S], k[1] < g && (
|
|
8750
|
-
if (k = t[
|
|
8756
|
+
for (I = t[b], v = b, g = I[1], S = b + 1; S < Ee; S++)
|
|
8757
|
+
k = t[S], k[1] < g && (v = S, g = k[1]);
|
|
8758
|
+
if (k = t[v], b != v && (S = k[0], k[0] = I[0], I[0] = S, S = k[1], k[1] = I[1], I[1] = S, S = k[2], k[2] = I[2], I[2] = S, S = k[3], k[3] = I[3], I[3] = S), g != p) {
|
|
8751
8759
|
for (n[p] = C + b >> 1, S = p + 1; S < g; S++)
|
|
8752
8760
|
n[S] = b;
|
|
8753
8761
|
p = g, C = b;
|
|
@@ -8757,19 +8765,19 @@ function Gi(o, e) {
|
|
|
8757
8765
|
n[S] = bn;
|
|
8758
8766
|
}
|
|
8759
8767
|
function m(b, S, I) {
|
|
8760
|
-
for (var k,
|
|
8761
|
-
x < Ee && (
|
|
8768
|
+
for (var k, v, g, p = 1e3, C = -1, x = n[S], D = x - 1; x < Ee || D >= 0; )
|
|
8769
|
+
x < Ee && (v = t[x], g = v[1] - S, g >= p ? x = Ee : (x++, g < 0 && (g = -g), k = v[0] - b, k < 0 && (k = -k), g += k, g < p && (k = v[2] - I, k < 0 && (k = -k), g += k, g < p && (p = g, C = v[3])))), D >= 0 && (v = t[D], g = S - v[1], g >= p ? D = -1 : (D--, g < 0 && (g = -g), k = v[0] - b, k < 0 && (k = -k), g += k, g < p && (k = v[2] - I, k < 0 && (k = -k), g += k, g < p && (p = g, C = v[3]))));
|
|
8762
8770
|
return C;
|
|
8763
8771
|
}
|
|
8764
8772
|
function N() {
|
|
8765
|
-
var b, S = o.length, I = 30 + (e - 1) / 3, k = S / (3 * e),
|
|
8773
|
+
var b, S = o.length, I = 30 + (e - 1) / 3, k = S / (3 * e), v = ~~(k / Bi), g = Jt, p = $i, C = p >> zo;
|
|
8766
8774
|
for (C <= 1 && (C = 0), b = 0; b < C; b++)
|
|
8767
8775
|
r[b] = g * ((C * C - b * b) * wn / (C * C));
|
|
8768
8776
|
var x;
|
|
8769
8777
|
S < ji ? (e = 1, x = 3) : S % Tn !== 0 ? x = 3 * Tn : S % Mn !== 0 ? x = 3 * Mn : S % Cn !== 0 ? x = 3 * Cn : x = 3 * pa;
|
|
8770
8778
|
var D, w, O, U, le = 0;
|
|
8771
8779
|
for (b = 0; b < k; )
|
|
8772
|
-
if (D = (o[le] & 255) << ut, w = (o[le + 1] & 255) << ut, O = (o[le + 2] & 255) << ut, U = f(D, w, O), u(g, U, D, w, O), C !== 0 && d(C, U, D, w, O), le += x, le >= S && (le -= S), b++,
|
|
8780
|
+
if (D = (o[le] & 255) << ut, w = (o[le + 1] & 255) << ut, O = (o[le + 2] & 255) << ut, U = f(D, w, O), u(g, U, D, w, O), C !== 0 && d(C, U, D, w, O), le += x, le >= S && (le -= S), b++, v === 0 && (v = 1), b % v === 0)
|
|
8773
8781
|
for (g -= g / I, p -= p / Oi, C = p >> zo, C <= 1 && (C = 0), U = 0; U < C; U++)
|
|
8774
8782
|
r[U] = g * ((C * C - U * U) * wn / (C * C));
|
|
8775
8783
|
}
|
|
@@ -8780,15 +8788,15 @@ function Gi(o, e) {
|
|
|
8780
8788
|
function B() {
|
|
8781
8789
|
for (var b = [], S = [], I = 0; I < Ee; I++)
|
|
8782
8790
|
S[t[I][3]] = I;
|
|
8783
|
-
for (var k = 0,
|
|
8784
|
-
var g = S[
|
|
8791
|
+
for (var k = 0, v = 0; v < Ee; v++) {
|
|
8792
|
+
var g = S[v];
|
|
8785
8793
|
b[k++] = t[g][0], b[k++] = t[g][1], b[k++] = t[g][2];
|
|
8786
8794
|
}
|
|
8787
8795
|
return b;
|
|
8788
8796
|
}
|
|
8789
8797
|
this.getColormap = B, this.lookupRGB = m;
|
|
8790
8798
|
}
|
|
8791
|
-
var kn = -1,
|
|
8799
|
+
var kn = -1, eo = 12, Pt = 5003, Ki = [
|
|
8792
8800
|
0,
|
|
8793
8801
|
1,
|
|
8794
8802
|
3,
|
|
@@ -8812,7 +8820,7 @@ function zi(o, e, t, n) {
|
|
|
8812
8820
|
function k(U, le) {
|
|
8813
8821
|
l[d++] = U, d >= 254 && x(le);
|
|
8814
8822
|
}
|
|
8815
|
-
function
|
|
8823
|
+
function v(U) {
|
|
8816
8824
|
g(Pt), f = A + 2, m = !0, O(A, U);
|
|
8817
8825
|
}
|
|
8818
8826
|
function g(U) {
|
|
@@ -8826,7 +8834,7 @@ function zi(o, e, t, n) {
|
|
|
8826
8834
|
Ie = 8 - Ie, he = Pt, g(he), O(A, le);
|
|
8827
8835
|
e:
|
|
8828
8836
|
for (; (q = w()) != kn; ) {
|
|
8829
|
-
if (M = (q <<
|
|
8837
|
+
if (M = (q << eo) + ie, Y = q << Ie ^ ie, r[Y] === M) {
|
|
8830
8838
|
ie = c[Y];
|
|
8831
8839
|
continue;
|
|
8832
8840
|
} else if (r[Y] >= 0) {
|
|
@@ -8838,7 +8846,7 @@ function zi(o, e, t, n) {
|
|
|
8838
8846
|
}
|
|
8839
8847
|
while (r[Y] >= 0);
|
|
8840
8848
|
}
|
|
8841
|
-
O(ie, le), ie = q, f < 1 <<
|
|
8849
|
+
O(ie, le), ie = q, f < 1 << eo ? (c[Y] = f++, r[Y] = M) : v(le);
|
|
8842
8850
|
}
|
|
8843
8851
|
O(ie, le), O(B, le);
|
|
8844
8852
|
}
|
|
@@ -8861,7 +8869,7 @@ function zi(o, e, t, n) {
|
|
|
8861
8869
|
function O(U, le) {
|
|
8862
8870
|
for (s &= Ki[u], u > 0 ? s |= U << u : s = U, u += I; u >= 8; )
|
|
8863
8871
|
k(s & 255, le), s >>= 8, u -= 8;
|
|
8864
|
-
if ((f > h || m) && (m ? (h = D(I = N), m = !1) : (++I, I ==
|
|
8872
|
+
if ((f > h || m) && (m ? (h = D(I = N), m = !1) : (++I, I == eo ? h = 1 << eo : h = D(I))), U == B) {
|
|
8865
8873
|
for (; u > 0; )
|
|
8866
8874
|
k(s & 255, le), s >>= 8, u -= 8;
|
|
8867
8875
|
x(le);
|
|
@@ -8874,8 +8882,8 @@ function Re() {
|
|
|
8874
8882
|
}
|
|
8875
8883
|
Re.pageSize = 4096;
|
|
8876
8884
|
Re.charMap = {};
|
|
8877
|
-
for (var
|
|
8878
|
-
Re.charMap[
|
|
8885
|
+
for (var to = 0; to < 256; to++)
|
|
8886
|
+
Re.charMap[to] = String.fromCharCode(to);
|
|
8879
8887
|
Re.prototype.newPage = function() {
|
|
8880
8888
|
this.pages[++this.page] = new Uint8Array(Re.pageSize), this.cursor = 0;
|
|
8881
8889
|
};
|
|
@@ -9003,11 +9011,11 @@ Te.prototype.ditherPixels = function(o, e) {
|
|
|
9003
9011
|
a = u * r + d;
|
|
9004
9012
|
var h = a * 3, m = c[h], N = c[h + 1], A = c[h + 2];
|
|
9005
9013
|
h = this.findClosestRGB(m, N, A), this.usedEntry[h] = !0, this.indexedPixels[a] = h, h *= 3;
|
|
9006
|
-
for (var B = this.colorTab[h], b = this.colorTab[h + 1], S = this.colorTab[h + 2], I = m - B, k = N - b,
|
|
9014
|
+
for (var B = this.colorTab[h], b = this.colorTab[h + 1], S = this.colorTab[h + 2], I = m - B, k = N - b, v = A - S, g = s == 1 ? 0 : n.length - 1, p = s == 1 ? n.length : 0; g !== p; g += s) {
|
|
9007
9015
|
var C = n[g][1], x = n[g][2];
|
|
9008
9016
|
if (C + d >= 0 && C + d < r && x + u >= 0 && x + u < l) {
|
|
9009
9017
|
var D = n[g][0];
|
|
9010
|
-
h = a + C + x * r, h *= 3, c[h] = Math.max(0, Math.min(255, c[h] + I * D)), c[h + 1] = Math.max(0, Math.min(255, c[h + 1] + k * D)), c[h + 2] = Math.max(0, Math.min(255, c[h + 2] +
|
|
9018
|
+
h = a + C + x * r, h *= 3, c[h] = Math.max(0, Math.min(255, c[h] + I * D)), c[h + 1] = Math.max(0, Math.min(255, c[h + 1] + k * D)), c[h + 2] = Math.max(0, Math.min(255, c[h + 2] + v * D));
|
|
9011
9019
|
}
|
|
9012
9020
|
}
|
|
9013
9021
|
}
|
|
@@ -9104,7 +9112,7 @@ var Hi = globalThis && globalThis.__awaiter || function(o, e, t, n) {
|
|
|
9104
9112
|
u((n = n.apply(o, e || [])).next());
|
|
9105
9113
|
});
|
|
9106
9114
|
};
|
|
9107
|
-
const { Canvas: ot } = hi,
|
|
9115
|
+
const { Canvas: ot } = hi, oo = 0.4;
|
|
9108
9116
|
function In(o) {
|
|
9109
9117
|
if (!o)
|
|
9110
9118
|
return;
|
|
@@ -9205,10 +9213,10 @@ class ve {
|
|
|
9205
9213
|
_draw() {
|
|
9206
9214
|
var e, t, n, a, l, r, c, s, u, d, f, h, m, N, A, B, b, S, I;
|
|
9207
9215
|
return Hi(this, void 0, void 0, function* () {
|
|
9208
|
-
const k = (e = this.qrCode) === null || e === void 0 ? void 0 : e.moduleCount,
|
|
9216
|
+
const k = (e = this.qrCode) === null || e === void 0 ? void 0 : e.moduleCount, v = this.options.size;
|
|
9209
9217
|
let g = this.options.margin;
|
|
9210
|
-
(g < 0 || g * 2 >=
|
|
9211
|
-
const p = Math.ceil(g), C =
|
|
9218
|
+
(g < 0 || g * 2 >= v) && (g = 0);
|
|
9219
|
+
const p = Math.ceil(g), C = v - 2 * g, x = this.options.whiteMargin, D = this.options.backgroundDimming, w = Math.ceil(C / k), O = w * k, U = O + 2 * p, le = new ot(U, U), M = le.getContext("2d");
|
|
9212
9220
|
this._clear(), M.save(), M.translate(p, p);
|
|
9213
9221
|
const q = new ot(U, U), Y = q.getContext("2d");
|
|
9214
9222
|
let ie = null, Me = [];
|
|
@@ -9231,7 +9239,7 @@ class ve {
|
|
|
9231
9239
|
Y.drawImage(z, 0, 0, z.width, z.height, 0, 0, U, U), Y.rect(0, 0, U, U), Y.fillStyle = D, Y.fill();
|
|
9232
9240
|
} else
|
|
9233
9241
|
Y.rect(0, 0, U, U), Y.fillStyle = this.options.colorLight, Y.fill();
|
|
9234
|
-
const he = ye.getPatternPosition(this.qrCode.typeNumber), Ie = ((n = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || n === void 0 ? void 0 : n.scale) ||
|
|
9242
|
+
const he = ye.getPatternPosition(this.qrCode.typeNumber), Ie = ((n = (t = this.options.components) === null || t === void 0 ? void 0 : t.data) === null || n === void 0 ? void 0 : n.scale) || oo, Ye = (1 - Ie) * 0.5;
|
|
9235
9243
|
for (let z = 0; z < k; z++)
|
|
9236
9244
|
for (let Z = 0; Z < k; Z++) {
|
|
9237
9245
|
const ne = this.qrCode.isDark(z, Z), de = Z < 8 && (z < 8 || z >= k - 8) || Z >= k - 8 && z < 8, Le = z == 6 && Z >= 8 && Z <= k - 8 || Z == 6 && z >= 8 && z <= k - 8;
|
|
@@ -9260,12 +9268,12 @@ class ve {
|
|
|
9260
9268
|
}
|
|
9261
9269
|
}
|
|
9262
9270
|
M.fillStyle = this.options.colorDark, M.fillRect(0, 0, 7 * w, w), M.fillRect((k - 7) * w, 0, 7 * w, w), M.fillRect(0, 6 * w, 7 * w, w), M.fillRect((k - 7) * w, 6 * w, 7 * w, w), M.fillRect(0, (k - 7) * w, 7 * w, w), M.fillRect(0, (k - 7 + 6) * w, 7 * w, w), M.fillRect(0, 0, w, 7 * w), M.fillRect(6 * w, 0, w, 7 * w), M.fillRect((k - 7) * w, 0, w, 7 * w), M.fillRect((k - 7 + 6) * w, 0, w, 7 * w), M.fillRect(0, (k - 7) * w, w, 7 * w), M.fillRect(6 * w, (k - 7) * w, w, 7 * w), M.fillRect(2 * w, 2 * w, 3 * w, 3 * w), M.fillRect((k - 7 + 2) * w, 2 * w, 3 * w, 3 * w), M.fillRect(2 * w, (k - 7 + 2) * w, 3 * w, 3 * w);
|
|
9263
|
-
const oe = ((f = (d = this.options.components) === null || d === void 0 ? void 0 : d.timing) === null || f === void 0 ? void 0 : f.scale) ||
|
|
9271
|
+
const oe = ((f = (d = this.options.components) === null || d === void 0 ? void 0 : d.timing) === null || f === void 0 ? void 0 : f.scale) || oo, se = (1 - oe) * 0.5;
|
|
9264
9272
|
for (let z = 0; z < k - 8; z += 2)
|
|
9265
9273
|
ve._drawDot(M, 8 + z, 6, w, se, oe), ve._drawDot(M, 6, 8 + z, w, se, oe);
|
|
9266
|
-
const Ne = ((m = (h = this.options.components) === null || h === void 0 ? void 0 : h.cornerAlignment) === null || m === void 0 ? void 0 : m.scale) ||
|
|
9274
|
+
const Ne = ((m = (h = this.options.components) === null || h === void 0 ? void 0 : h.cornerAlignment) === null || m === void 0 ? void 0 : m.scale) || oo, et = (1 - Ne) * 0.5;
|
|
9267
9275
|
ve._drawAlign(M, P, P, w, et, Ne, this.options.colorDark, ((A = (N = this.options.components) === null || N === void 0 ? void 0 : N.cornerAlignment) === null || A === void 0 ? void 0 : A.protectors) || !1);
|
|
9268
|
-
const Ce = ((b = (B = this.options.components) === null || B === void 0 ? void 0 : B.alignment) === null || b === void 0 ? void 0 : b.scale) ||
|
|
9276
|
+
const Ce = ((b = (B = this.options.components) === null || B === void 0 ? void 0 : B.alignment) === null || b === void 0 ? void 0 : b.scale) || oo, pe = (1 - Ce) * 0.5;
|
|
9269
9277
|
for (let z = 0; z < he.length; z++)
|
|
9270
9278
|
for (let Z = 0; Z < he.length; Z++) {
|
|
9271
9279
|
const ne = he[Z], de = he[z];
|
|
@@ -9289,13 +9297,13 @@ class ve {
|
|
|
9289
9297
|
if (ie) {
|
|
9290
9298
|
let z, Z, ne, de, Le, E;
|
|
9291
9299
|
if (Me.forEach(function(F) {
|
|
9292
|
-
z || (z = new Te(
|
|
9300
|
+
z || (z = new Te(v, v), z.setDelay(F.delay), z.setRepeat(0));
|
|
9293
9301
|
const { width: H, height: me } = F.dims;
|
|
9294
9302
|
Z || (Z = new ot(H, me), ne = Z.getContext("2d"), ne.rect(0, 0, Z.width, Z.height), ne.fillStyle = "#ffffff", ne.fill()), (!de || !E || H !== de.width || me !== de.height) && (de = new ot(H, me), Le = de.getContext("2d"), E = Le.createImageData(H, me)), E.data.set(F.patch), Le.putImageData(E, 0, 0), ne.drawImage(de.getContext("2d").canvas, F.dims.left, F.dims.top);
|
|
9295
9303
|
const fe = new ot(U, U), te = fe.getContext("2d");
|
|
9296
9304
|
te.drawImage(Z.getContext("2d").canvas, 0, 0, U, U), te.rect(0, 0, U, U), te.fillStyle = D, te.fill(), te.drawImage(le.getContext("2d").canvas, 0, 0, U, U);
|
|
9297
|
-
const be = new ot(
|
|
9298
|
-
ge.drawImage(fe.getContext("2d").canvas, 0, 0,
|
|
9305
|
+
const be = new ot(v, v), ge = be.getContext("2d");
|
|
9306
|
+
ge.drawImage(fe.getContext("2d").canvas, 0, 0, v, v), z.addFrame(ge.getImageData(0, 0, be.width, be.height).data);
|
|
9299
9307
|
}), !z)
|
|
9300
9308
|
throw new Error("No frames.");
|
|
9301
9309
|
if (z.finish(), Sn(this.canvas)) {
|
|
@@ -9305,15 +9313,15 @@ class ve {
|
|
|
9305
9313
|
return Promise.resolve(Buffer.from(z.stream().toFlattenUint8Array()));
|
|
9306
9314
|
} else {
|
|
9307
9315
|
Y.drawImage(le.getContext("2d").canvas, 0, 0, U, U), M.drawImage(q.getContext("2d").canvas, -p, -p, U, U);
|
|
9308
|
-
const z = new ot(
|
|
9309
|
-
z.getContext("2d").drawImage(le.getContext("2d").canvas, 0, 0,
|
|
9316
|
+
const z = new ot(v, v);
|
|
9317
|
+
z.getContext("2d").drawImage(le.getContext("2d").canvas, 0, 0, v, v), this.canvas = z;
|
|
9310
9318
|
const ne = this.options.gifBackground ? "gif" : "png";
|
|
9311
9319
|
return Sn(this.canvas) ? Promise.resolve(this.canvas.toDataURL(ne)) : Promise.resolve(this.canvas.toBuffer(ne));
|
|
9312
9320
|
}
|
|
9313
9321
|
});
|
|
9314
9322
|
}
|
|
9315
9323
|
}
|
|
9316
|
-
ve.CorrectLevel =
|
|
9324
|
+
ve.CorrectLevel = Ue;
|
|
9317
9325
|
ve.defaultComponentOptions = {
|
|
9318
9326
|
data: {
|
|
9319
9327
|
scale: 0.4
|
|
@@ -9337,7 +9345,7 @@ ve.defaultOptions = {
|
|
|
9337
9345
|
margin: 20,
|
|
9338
9346
|
colorDark: "#000000",
|
|
9339
9347
|
colorLight: "rgba(255, 255, 255, 0.6)",
|
|
9340
|
-
correctLevel:
|
|
9348
|
+
correctLevel: Ue.M,
|
|
9341
9349
|
backgroundImage: void 0,
|
|
9342
9350
|
backgroundDimming: "rgba(0,0,0,0)",
|
|
9343
9351
|
logoImage: void 0,
|
|
@@ -9522,10 +9530,10 @@ const Wi = {
|
|
|
9522
9530
|
correctLevel: n.correctLevel,
|
|
9523
9531
|
logoMargin: n.logoMargin,
|
|
9524
9532
|
logoCornerRadius: n.logoCornerRadius,
|
|
9525
|
-
whiteMargin:
|
|
9533
|
+
whiteMargin: xo(n.whiteMargin),
|
|
9526
9534
|
dotScale: n.dotScale,
|
|
9527
|
-
autoColor:
|
|
9528
|
-
binarize:
|
|
9535
|
+
autoColor: xo(n.autoColor),
|
|
9536
|
+
binarize: xo(n.binarize),
|
|
9529
9537
|
binarizeThreshold: n.binarizeThreshold,
|
|
9530
9538
|
components: n.components
|
|
9531
9539
|
}).draw().then((a) => {
|
|
@@ -9535,7 +9543,7 @@ const Wi = {
|
|
|
9535
9543
|
}
|
|
9536
9544
|
}, Yi = ["src"];
|
|
9537
9545
|
function qi(o, e, t, n, a, l) {
|
|
9538
|
-
return t.bindElement ? (
|
|
9546
|
+
return t.bindElement ? (y(), W("img", {
|
|
9539
9547
|
key: 0,
|
|
9540
9548
|
style: { display: "inline-block" },
|
|
9541
9549
|
src: a.imgUrl
|
|
@@ -9569,11 +9577,11 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9569
9577
|
],
|
|
9570
9578
|
setup(o, { emit: e }) {
|
|
9571
9579
|
const t = o, { t: n } = Ve(), { reload: a, reloadFlag: l } = Xi(), r = _(() => {
|
|
9572
|
-
var
|
|
9573
|
-
return (g = (
|
|
9580
|
+
var v, g, p, C;
|
|
9581
|
+
return (g = (v = t.board) == null ? void 0 : v.tableData) != null && g.keyName ? (C = (p = t.board) == null ? void 0 : p.tableData) == null ? void 0 : C.keyName : "";
|
|
9574
9582
|
}), c = _(() => {
|
|
9575
|
-
var
|
|
9576
|
-
if ((
|
|
9583
|
+
var v, g;
|
|
9584
|
+
if ((v = t.board) != null && v.columns) {
|
|
9577
9585
|
let p = [];
|
|
9578
9586
|
try {
|
|
9579
9587
|
p = Pl((g = t.board) == null ? void 0 : g.columns);
|
|
@@ -9584,8 +9592,8 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9584
9592
|
} else
|
|
9585
9593
|
return [];
|
|
9586
9594
|
}), s = j([]);
|
|
9587
|
-
function u(
|
|
9588
|
-
s.value =
|
|
9595
|
+
function u(v) {
|
|
9596
|
+
s.value = v, e("return-selected-key", s.value);
|
|
9589
9597
|
}
|
|
9590
9598
|
const d = [
|
|
9591
9599
|
{ label: `${n("10/页")}`, value: 10 },
|
|
@@ -9596,48 +9604,48 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9596
9604
|
current: t.paginationProps.page + 1,
|
|
9597
9605
|
pageSize: t.paginationProps.count,
|
|
9598
9606
|
total: t.paginationProps.totalCount,
|
|
9599
|
-
onChange: function(
|
|
9600
|
-
e("return-pagination-props",
|
|
9607
|
+
onChange: function(v) {
|
|
9608
|
+
e("return-pagination-props", v);
|
|
9601
9609
|
},
|
|
9602
9610
|
showJumper: !0,
|
|
9603
9611
|
pageSizeOptions: d
|
|
9604
9612
|
}));
|
|
9605
|
-
function h(
|
|
9606
|
-
if (
|
|
9613
|
+
function h(v, g) {
|
|
9614
|
+
if (v.value != "")
|
|
9607
9615
|
try {
|
|
9608
|
-
return ft.render(
|
|
9616
|
+
return ft.render(v.value, { item: g });
|
|
9609
9617
|
} catch (p) {
|
|
9610
9618
|
console.error("GTable returnValue Error", p);
|
|
9611
9619
|
}
|
|
9612
9620
|
else
|
|
9613
|
-
return g[
|
|
9621
|
+
return g[v.keyName];
|
|
9614
9622
|
}
|
|
9615
|
-
function m(
|
|
9616
|
-
return !Mt(
|
|
9623
|
+
function m(v) {
|
|
9624
|
+
return !Mt(v) && v !== "";
|
|
9617
9625
|
}
|
|
9618
9626
|
const N = () => "<span class='empty'>----</span>";
|
|
9619
|
-
function A(
|
|
9627
|
+
function A(v, g) {
|
|
9620
9628
|
var p;
|
|
9621
|
-
if (!Oe(
|
|
9622
|
-
let C =
|
|
9623
|
-
if (g[
|
|
9629
|
+
if (!Oe(v.enums)) {
|
|
9630
|
+
let C = v.enums.filter((x) => {
|
|
9631
|
+
if (g[v.keyName] == null && (g[v.keyName] = ""), x.value == String(g[v.keyName]))
|
|
9624
9632
|
return x.text;
|
|
9625
9633
|
});
|
|
9626
|
-
return C.length ? (p = C.shift()) == null ? void 0 : p.text : m(g[
|
|
9634
|
+
return C.length ? (p = C.shift()) == null ? void 0 : p.text : m(g[v.keyName]) ? g[v.keyName] : N();
|
|
9627
9635
|
}
|
|
9628
9636
|
}
|
|
9629
|
-
function B(
|
|
9630
|
-
if (
|
|
9631
|
-
return ft.render(
|
|
9632
|
-
if (
|
|
9633
|
-
return m(g[
|
|
9637
|
+
function B(v, g) {
|
|
9638
|
+
if (v.value != "")
|
|
9639
|
+
return ft.render(v.value, { item: g });
|
|
9640
|
+
if (v.value == "")
|
|
9641
|
+
return m(g[v.keyName]) ? rt(g[v.keyName]).format("YYYY-MM-DD HH:mm:ss") : N();
|
|
9634
9642
|
}
|
|
9635
|
-
function b(
|
|
9636
|
-
return
|
|
9643
|
+
function b(v, g) {
|
|
9644
|
+
return v.filter((p) => {
|
|
9637
9645
|
if (p.showIf != "1") {
|
|
9638
9646
|
let C, x;
|
|
9639
9647
|
try {
|
|
9640
|
-
C = ft.render(p.showIf, { item: g }), x =
|
|
9648
|
+
C = ft.render(p.showIf, { item: g }), x = Oo(C, { item: g });
|
|
9641
9649
|
} catch (D) {
|
|
9642
9650
|
console.warn(D);
|
|
9643
9651
|
}
|
|
@@ -9646,11 +9654,11 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9646
9654
|
return p;
|
|
9647
9655
|
});
|
|
9648
9656
|
}
|
|
9649
|
-
function S(
|
|
9650
|
-
e("table-button-action",
|
|
9657
|
+
function S(v, g) {
|
|
9658
|
+
e("table-button-action", v, g);
|
|
9651
9659
|
}
|
|
9652
|
-
function I(
|
|
9653
|
-
e("table-form-confirm",
|
|
9660
|
+
function I(v, g) {
|
|
9661
|
+
e("table-form-confirm", v, g);
|
|
9654
9662
|
}
|
|
9655
9663
|
const k = {
|
|
9656
9664
|
imageViewer: {
|
|
@@ -9664,9 +9672,9 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9664
9672
|
() => t.tableData,
|
|
9665
9673
|
() => a(),
|
|
9666
9674
|
{ deep: !0 }
|
|
9667
|
-
), (
|
|
9675
|
+
), (v, g) => {
|
|
9668
9676
|
const p = G("t-button"), C = G("t-popup"), x = G("t-image"), D = G("t-image-viewer"), w = G("t-config-provider");
|
|
9669
|
-
return i(l) ? K("", !0) : (
|
|
9677
|
+
return i(l) ? K("", !0) : (y(), L(i(jn), {
|
|
9670
9678
|
key: 0,
|
|
9671
9679
|
tableType: "primary",
|
|
9672
9680
|
commonTableProps: {
|
|
@@ -9679,7 +9687,7 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9679
9687
|
}
|
|
9680
9688
|
}, {
|
|
9681
9689
|
TEXT: T(({ col: O, row: U }) => [
|
|
9682
|
-
m(h(O, U)) ? (
|
|
9690
|
+
m(h(O, U)) ? (y(), W("span", Zi, J(h(O, U)), 1)) : (y(), W("span", {
|
|
9683
9691
|
key: 1,
|
|
9684
9692
|
innerHTML: N()
|
|
9685
9693
|
}, null, 8, Ji))
|
|
@@ -9730,7 +9738,7 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9730
9738
|
ee("div", {
|
|
9731
9739
|
class: R(`${i(St)}__imageViewer`)
|
|
9732
9740
|
}, [
|
|
9733
|
-
h(O, U) ? (
|
|
9741
|
+
h(O, U) ? (y(), L(w, {
|
|
9734
9742
|
key: 0,
|
|
9735
9743
|
"global-config": k
|
|
9736
9744
|
}, {
|
|
@@ -9749,10 +9757,10 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9749
9757
|
fit: "scale-down"
|
|
9750
9758
|
}, {
|
|
9751
9759
|
error: T(() => [
|
|
9752
|
-
O.name == `${i(n)("头像")}` ? (
|
|
9760
|
+
O.name == `${i(n)("头像")}` ? (y(), L(i(ko), { key: 0 })) : (y(), L(i(Ft), { key: 1 }))
|
|
9753
9761
|
]),
|
|
9754
9762
|
loading: T(() => [
|
|
9755
|
-
O.name == `${i(n)("头像")}` ? (
|
|
9763
|
+
O.name == `${i(n)("头像")}` ? (y(), L(i(ko), { key: 0 })) : (y(), L(i(Ft), {
|
|
9756
9764
|
key: 1,
|
|
9757
9765
|
size: "large"
|
|
9758
9766
|
}))
|
|
@@ -9774,14 +9782,14 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9774
9782
|
}, 1032, ["images"])
|
|
9775
9783
|
]),
|
|
9776
9784
|
_: 2
|
|
9777
|
-
}, 1024)) : (
|
|
9785
|
+
}, 1024)) : (y(), W("span", {
|
|
9778
9786
|
key: 1,
|
|
9779
9787
|
class: R(`${i(St)}__imageViewer--placeholder`)
|
|
9780
9788
|
}, [
|
|
9781
|
-
O.name == `${i(n)("头像")}` ? (
|
|
9789
|
+
O.name == `${i(n)("头像")}` ? (y(), L(i(ko), {
|
|
9782
9790
|
key: 0,
|
|
9783
9791
|
size: "large"
|
|
9784
|
-
})) : (
|
|
9792
|
+
})) : (y(), L(i(Ft), {
|
|
9785
9793
|
key: 1,
|
|
9786
9794
|
size: "large"
|
|
9787
9795
|
}))
|
|
@@ -9789,7 +9797,7 @@ const Zi = { key: 0 }, Ji = ["innerHTML"], es = ["innerHTML"], ts = ["innerHTML"
|
|
|
9789
9797
|
], 2)
|
|
9790
9798
|
]),
|
|
9791
9799
|
BUTTONS: T(({ col: O, row: U }) => [
|
|
9792
|
-
(
|
|
9800
|
+
(y(!0), W(ke, null, Ae(b(O.buttons, U), (le) => (y(), L(p, {
|
|
9793
9801
|
theme: "primary",
|
|
9794
9802
|
variant: "text",
|
|
9795
9803
|
key: le.buttonId,
|
|
@@ -9835,21 +9843,21 @@ const ls = /* @__PURE__ */ gt(as, [["__scopeId", "data-v-7962ebce"]]), rs = /* @
|
|
|
9835
9843
|
console.error("tab切换出错", N);
|
|
9836
9844
|
}
|
|
9837
9845
|
}
|
|
9838
|
-
const d =
|
|
9846
|
+
const d = _e(), f = _(() => d.homeUrl);
|
|
9839
9847
|
function h() {
|
|
9840
9848
|
const m = n.fullPath, N = t.returnPrevTabMenuPathItemByPath(m);
|
|
9841
|
-
N && (t.removeTabMenuItemByPath(m), console.log(N), N != "/home" ? a.push(N) : f.value && a.push({ path: f.value, query:
|
|
9849
|
+
N && (t.removeTabMenuItemByPath(m), console.log(N), N != "/home" ? a.push(N) : f.value && a.push({ path: f.value, query: Ut(f.value) }));
|
|
9842
9850
|
}
|
|
9843
9851
|
return (m, N) => {
|
|
9844
9852
|
const A = G("t-card"), B = G("t-tab-panel"), b = G("t-tabs");
|
|
9845
|
-
return
|
|
9853
|
+
return y(), L(b, {
|
|
9846
9854
|
class: R(`${i(Il)}`),
|
|
9847
9855
|
placement: "left",
|
|
9848
9856
|
value: c.value,
|
|
9849
9857
|
onChange: u
|
|
9850
9858
|
}, {
|
|
9851
9859
|
default: T(() => [
|
|
9852
|
-
(
|
|
9860
|
+
(y(!0), W(ke, null, Ae(i(r), (S, I) => (y(), L(B, {
|
|
9853
9861
|
key: `${I}${S.title}`,
|
|
9854
9862
|
value: I,
|
|
9855
9863
|
label: S.title,
|
|
@@ -9858,7 +9866,7 @@ const ls = /* @__PURE__ */ gt(as, [["__scopeId", "data-v-7962ebce"]]), rs = /* @
|
|
|
9858
9866
|
default: T(() => [
|
|
9859
9867
|
V(A, { bordered: !1 }, {
|
|
9860
9868
|
content: T(() => [
|
|
9861
|
-
S.board ? (
|
|
9869
|
+
S.board ? (y(), L(i(ho), {
|
|
9862
9870
|
key: S.title,
|
|
9863
9871
|
viewName: o.viewName,
|
|
9864
9872
|
board: S.board,
|
|
@@ -9886,7 +9894,7 @@ const is = /* @__PURE__ */ ae({
|
|
|
9886
9894
|
},
|
|
9887
9895
|
emits: ["close-dialog"],
|
|
9888
9896
|
setup(o, { emit: e }) {
|
|
9889
|
-
const t = o, { t: n } = Ve(), a = pt(), l = At(), r =
|
|
9897
|
+
const t = o, { t: n } = Ve(), a = pt(), l = At(), r = _e(), c = qo(), s = Qo(), u = _(() => {
|
|
9890
9898
|
var P;
|
|
9891
9899
|
return (P = t.board) == null ? void 0 : P.boardType;
|
|
9892
9900
|
}), d = _(() => {
|
|
@@ -9916,7 +9924,7 @@ const is = /* @__PURE__ */ ae({
|
|
|
9916
9924
|
var P;
|
|
9917
9925
|
try {
|
|
9918
9926
|
if (!Mt(d.value) && !Mt(t.viewName)) {
|
|
9919
|
-
const Q = await
|
|
9927
|
+
const Q = await vo({
|
|
9920
9928
|
dataId: d.value,
|
|
9921
9929
|
viewName: t.viewName,
|
|
9922
9930
|
props: b.value
|
|
@@ -9947,7 +9955,7 @@ const is = /* @__PURE__ */ ae({
|
|
|
9947
9955
|
deep: !0
|
|
9948
9956
|
}
|
|
9949
9957
|
);
|
|
9950
|
-
const I = j(!1), k = j(!1),
|
|
9958
|
+
const I = j(!1), k = j(!1), v = j(""), g = j({}), p = j(), C = j();
|
|
9951
9959
|
async function x(P, Q = {}) {
|
|
9952
9960
|
if ((P ?? "") != "") {
|
|
9953
9961
|
Q.viewName = P;
|
|
@@ -9963,7 +9971,7 @@ const is = /* @__PURE__ */ ae({
|
|
|
9963
9971
|
try {
|
|
9964
9972
|
switch (P.action) {
|
|
9965
9973
|
case "VIEW_BY_DIALOG": {
|
|
9966
|
-
(P.view ?? "") != "" ? (
|
|
9974
|
+
(P.view ?? "") != "" ? (v.value = "view", await x(P.view), g.value = P, s.initPropsSource(Q), await D(!0), k.value = !0) : (P.link ?? "") != "" && (v.value = "iframe", g.value = P, s.initPropsSource(Q), p.value = {}, C.value = (oe = P.props) == null ? void 0 : oe.map((Ce) => Ce.keyName), await D(!0), k.value = !0);
|
|
9967
9975
|
break;
|
|
9968
9976
|
}
|
|
9969
9977
|
case "VIEW": {
|
|
@@ -9986,11 +9994,11 @@ const is = /* @__PURE__ */ ae({
|
|
|
9986
9994
|
P.props ? P.props.forEach((Z) => {
|
|
9987
9995
|
Z.keyName && (Q[Z.keyName] ?? "") != "" && (pe[Z.keyName] = Q[Z.keyName]);
|
|
9988
9996
|
}) : pe = { ...Q };
|
|
9989
|
-
const z =
|
|
9997
|
+
const z = lo.confirm({
|
|
9990
9998
|
theme: "info",
|
|
9991
9999
|
header: P.name,
|
|
9992
10000
|
body: Ce,
|
|
9993
|
-
className:
|
|
10001
|
+
className: io,
|
|
9994
10002
|
onConfirm: () => {
|
|
9995
10003
|
P.buttonId && q(pe, P.buttonId), z.destroy();
|
|
9996
10004
|
},
|
|
@@ -10011,11 +10019,11 @@ const is = /* @__PURE__ */ ae({
|
|
|
10011
10019
|
break;
|
|
10012
10020
|
}
|
|
10013
10021
|
case "BATCH": {
|
|
10014
|
-
const Ce =
|
|
10022
|
+
const Ce = lo.confirm({
|
|
10015
10023
|
theme: "info",
|
|
10016
10024
|
header: P.name,
|
|
10017
10025
|
body: `${n("是否继续批量操作?")} `,
|
|
10018
|
-
className:
|
|
10026
|
+
className: io,
|
|
10019
10027
|
onConfirm: () => {
|
|
10020
10028
|
U.value.length == 0 ? ue.error(`${n("请选择批量操作对象!")}`) : ie(P, U.value), Ce.destroy();
|
|
10021
10029
|
},
|
|
@@ -10049,7 +10057,7 @@ const is = /* @__PURE__ */ ae({
|
|
|
10049
10057
|
window.open(`${z}`, "_blank");
|
|
10050
10058
|
return;
|
|
10051
10059
|
}
|
|
10052
|
-
if (!
|
|
10060
|
+
if (!go(pe))
|
|
10053
10061
|
Ul(pe) ? window.open(`${location.origin}${pe}`) : a.push({
|
|
10054
10062
|
path: pe,
|
|
10055
10063
|
query: {
|
|
@@ -10123,10 +10131,10 @@ const is = /* @__PURE__ */ ae({
|
|
|
10123
10131
|
}
|
|
10124
10132
|
function Y(P, Q) {
|
|
10125
10133
|
if (P.itemType == "selector" || P.itemType == "time_selector" || P.itemType == "date_time_selector" || P.itemType == "tree_check_box" || P.itemType === "multi_tree_selector" || P.itemType === "tree_selector") {
|
|
10126
|
-
const oe =
|
|
10134
|
+
const oe = lo.confirm({
|
|
10127
10135
|
theme: "info",
|
|
10128
10136
|
body: `${n("此操作将提交该修改,是否继续?")}`,
|
|
10129
|
-
className:
|
|
10137
|
+
className: io,
|
|
10130
10138
|
onConfirm: () => {
|
|
10131
10139
|
q(Q, P.buttonId), oe.destroy();
|
|
10132
10140
|
},
|
|
@@ -10180,17 +10188,17 @@ const is = /* @__PURE__ */ ae({
|
|
|
10180
10188
|
function Ye() {
|
|
10181
10189
|
e("close-dialog");
|
|
10182
10190
|
}
|
|
10183
|
-
return Ln(Bt, b.value), (P, Q) => (
|
|
10191
|
+
return Ln(Bt, b.value), (P, Q) => (y(), W("div", {
|
|
10184
10192
|
class: R(`${i(Ml)}`)
|
|
10185
10193
|
}, [
|
|
10186
|
-
i(m) ? (
|
|
10194
|
+
i(m) ? (y(), L(i(Kr), {
|
|
10187
10195
|
key: 0,
|
|
10188
10196
|
viewName: o.viewName,
|
|
10189
10197
|
headerInfo: i(m),
|
|
10190
10198
|
onHeaderButtonAction: w,
|
|
10191
10199
|
onHeaderFilterChange: O
|
|
10192
10200
|
}, null, 8, ["viewName", "headerInfo"])) : K("", !0),
|
|
10193
|
-
i(u) === "form" ? (
|
|
10201
|
+
i(u) === "form" ? (y(), L(i(Or), {
|
|
10194
10202
|
key: 1,
|
|
10195
10203
|
viewName: o.viewName,
|
|
10196
10204
|
board: o.board,
|
|
@@ -10199,7 +10207,7 @@ const is = /* @__PURE__ */ ae({
|
|
|
10199
10207
|
onConfirmAndClose: Ie,
|
|
10200
10208
|
onCloseDialog: Ye
|
|
10201
10209
|
}, null, 8, ["viewName", "board", "formData"])) : K("", !0),
|
|
10202
|
-
i(u) === "table" ? (
|
|
10210
|
+
i(u) === "table" ? (y(), L(ls, {
|
|
10203
10211
|
key: 2,
|
|
10204
10212
|
viewName: o.viewName,
|
|
10205
10213
|
board: o.board,
|
|
@@ -10210,15 +10218,15 @@ const is = /* @__PURE__ */ ae({
|
|
|
10210
10218
|
onReturnSelectedKey: le,
|
|
10211
10219
|
onReturnPaginationProps: M
|
|
10212
10220
|
}, null, 8, ["viewName", "board", "tableData", "paginationProps"])) : K("", !0),
|
|
10213
|
-
i(u) === "tab" ? (
|
|
10221
|
+
i(u) === "tab" ? (y(), L(rs, {
|
|
10214
10222
|
key: 3,
|
|
10215
10223
|
viewName: o.viewName,
|
|
10216
10224
|
board: o.board
|
|
10217
10225
|
}, null, 8, ["viewName", "board"])) : K("", !0),
|
|
10218
|
-
I.value ? (
|
|
10226
|
+
I.value ? (y(), L(i(wr), {
|
|
10219
10227
|
key: 4,
|
|
10220
10228
|
ref: "dialogRef",
|
|
10221
|
-
dialogType:
|
|
10229
|
+
dialogType: v.value,
|
|
10222
10230
|
isDialogVisible: k.value,
|
|
10223
10231
|
"onUpdate:isDialogVisible": [
|
|
10224
10232
|
Q[0] || (Q[0] = (oe) => k.value = oe),
|
|
@@ -10232,18 +10240,18 @@ const is = /* @__PURE__ */ ae({
|
|
|
10232
10240
|
], 2));
|
|
10233
10241
|
}
|
|
10234
10242
|
});
|
|
10235
|
-
const
|
|
10243
|
+
const ho = He(is), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10236
10244
|
__proto__: null,
|
|
10237
|
-
GBoard:
|
|
10238
|
-
default:
|
|
10245
|
+
GBoard: ho,
|
|
10246
|
+
default: ho
|
|
10239
10247
|
}, Symbol.toStringTag, { value: "Module" })), cs = /* @__PURE__ */ ae({
|
|
10240
10248
|
__name: "index",
|
|
10241
10249
|
props: {
|
|
10242
10250
|
config: null
|
|
10243
10251
|
},
|
|
10244
10252
|
setup(o) {
|
|
10245
|
-
const e = o, t = pt(), n = At(), a =
|
|
10246
|
-
|
|
10253
|
+
const e = o, t = pt(), n = At(), a = _e(), l = Et(), r = qo(), c = j(""), s = _(() => a.isUserLogin), u = _(() => a.homeUrl);
|
|
10254
|
+
Kt(async () => {
|
|
10247
10255
|
s.value || (await a.initUserConfig(e.config), await l.initTabMenu());
|
|
10248
10256
|
}), Fe(async () => {
|
|
10249
10257
|
r.initSocket(), window.addEventListener("onSocketReload", () => {
|
|
@@ -10293,17 +10301,17 @@ const fo = He(is), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10293
10301
|
}
|
|
10294
10302
|
}
|
|
10295
10303
|
const A = _(() => a.isGlobalLoaded);
|
|
10296
|
-
return (B, b) => (
|
|
10304
|
+
return (B, b) => (y(), L(i(Fn), { title: c.value }, {
|
|
10297
10305
|
default: T(() => {
|
|
10298
10306
|
var S;
|
|
10299
10307
|
return [
|
|
10300
|
-
i(A) ? (
|
|
10301
|
-
var k,
|
|
10302
|
-
return
|
|
10308
|
+
i(A) ? (y(!0), W(ke, { key: 0 }, Ae((S = h.value) == null ? void 0 : S.boards, (I) => {
|
|
10309
|
+
var k, v;
|
|
10310
|
+
return y(), L(i(ho), {
|
|
10303
10311
|
key: `${(k = h.value) == null ? void 0 : k.viewName}_${I.boardType}`,
|
|
10304
10312
|
board: I,
|
|
10305
10313
|
viewName: i(m),
|
|
10306
|
-
viewProps: (
|
|
10314
|
+
viewProps: (v = h.value) == null ? void 0 : v.props
|
|
10307
10315
|
}, null, 8, ["board", "viewName", "viewProps"]);
|
|
10308
10316
|
}), 128)) : K("", !0)
|
|
10309
10317
|
];
|
|
@@ -10311,7 +10319,7 @@ const fo = He(is), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
10311
10319
|
_: 1
|
|
10312
10320
|
}, 8, ["title"]));
|
|
10313
10321
|
}
|
|
10314
|
-
}), us = "@gonsin/gview", ds = "2.0.
|
|
10322
|
+
}), us = "@gonsin/gview", ds = "2.0.49", ms = "dist/index.mjs", fs = "dist/types/index.d.ts", hs = [
|
|
10315
10323
|
"dist",
|
|
10316
10324
|
"README.md",
|
|
10317
10325
|
"CHANGELOG.md"
|
|
@@ -10940,7 +10948,7 @@ const Ts = [
|
|
|
10940
10948
|
}, Ls = /* @__PURE__ */ ae({
|
|
10941
10949
|
__name: "GMenuManage",
|
|
10942
10950
|
setup(o) {
|
|
10943
|
-
const { t: e } = Ve(), t =
|
|
10951
|
+
const { t: e } = Ve(), t = _e(), n = j(`${e("菜单管理")}`), a = [
|
|
10944
10952
|
{
|
|
10945
10953
|
title: e("排序"),
|
|
10946
10954
|
colKey: "drag",
|
|
@@ -10964,7 +10972,7 @@ const Ts = [
|
|
|
10964
10972
|
async function h() {
|
|
10965
10973
|
const E = await bs();
|
|
10966
10974
|
if (E.state == 200) {
|
|
10967
|
-
const F =
|
|
10975
|
+
const F = co(E.data, null, 1);
|
|
10968
10976
|
d.value = F, f.value = F;
|
|
10969
10977
|
} else
|
|
10970
10978
|
console.error("getMenusApi", E);
|
|
@@ -11034,8 +11042,8 @@ const Ts = [
|
|
|
11034
11042
|
default:
|
|
11035
11043
|
return "";
|
|
11036
11044
|
}
|
|
11037
|
-
}),
|
|
11038
|
-
() =>
|
|
11045
|
+
}), v = _(() => I.value ? un(I.value) : []), g = _(
|
|
11046
|
+
() => v.value.filter((E) => !E.url).map((E) => ({
|
|
11039
11047
|
label: E.title,
|
|
11040
11048
|
value: E.name
|
|
11041
11049
|
}))
|
|
@@ -11068,8 +11076,8 @@ const Ts = [
|
|
|
11068
11076
|
});
|
|
11069
11077
|
function M(E, F) {
|
|
11070
11078
|
var H, me;
|
|
11071
|
-
if (
|
|
11072
|
-
const fe =
|
|
11079
|
+
if (v.value && v.value.length) {
|
|
11080
|
+
const fe = v.value.map((te) => {
|
|
11073
11081
|
if (u.value == "addGroup")
|
|
11074
11082
|
return te.name;
|
|
11075
11083
|
if (te.parent != m.value.name)
|
|
@@ -11152,10 +11160,10 @@ const Ts = [
|
|
|
11152
11160
|
}
|
|
11153
11161
|
}
|
|
11154
11162
|
function P(E) {
|
|
11155
|
-
m.value =
|
|
11163
|
+
m.value = $t(E), E.isGroup ? u.value = "editGroup" : (u.value = "editItem", m.value.isInner = U(E)), s.value = !0;
|
|
11156
11164
|
}
|
|
11157
11165
|
function Q(E) {
|
|
11158
|
-
m.value =
|
|
11166
|
+
m.value = $t(E), s.value = !0, u.value = "moveItemTo";
|
|
11159
11167
|
}
|
|
11160
11168
|
function oe() {
|
|
11161
11169
|
s.value = !1, setTimeout(() => {
|
|
@@ -11203,7 +11211,7 @@ const Ts = [
|
|
|
11203
11211
|
}
|
|
11204
11212
|
function et(E, F) {
|
|
11205
11213
|
if (B.value) {
|
|
11206
|
-
const H =
|
|
11214
|
+
const H = v.value.find((me) => me.name == E);
|
|
11207
11215
|
if (H) {
|
|
11208
11216
|
const { parent: me } = H;
|
|
11209
11217
|
F !== me && (m.value.parent = F, B.value.remove(E), B.value.appendTo(F, m.value));
|
|
@@ -11212,11 +11220,11 @@ const Ts = [
|
|
|
11212
11220
|
}
|
|
11213
11221
|
function Ce(E) {
|
|
11214
11222
|
try {
|
|
11215
|
-
const F =
|
|
11223
|
+
const F = lo.confirm({
|
|
11216
11224
|
theme: "info",
|
|
11217
11225
|
header: `${e("撤销组")}`,
|
|
11218
11226
|
body: `${e("确定要撤销 %s 吗?")}`.replace("%s", `${E.title}`),
|
|
11219
|
-
className:
|
|
11227
|
+
className: io,
|
|
11220
11228
|
onConfirm: () => {
|
|
11221
11229
|
var me, fe, te, be;
|
|
11222
11230
|
let H = [];
|
|
@@ -11269,7 +11277,7 @@ const Ts = [
|
|
|
11269
11277
|
const E = un(I.value);
|
|
11270
11278
|
try {
|
|
11271
11279
|
const F = await ys({ menus: [...E] });
|
|
11272
|
-
F.state == 200 && (t.setSideMenuConfig(I.value), f.value =
|
|
11280
|
+
F.state == 200 && (t.setSideMenuConfig(I.value), f.value = co(F.data, null, 1), ue.success(`${e("保存菜单方案成功!")}`));
|
|
11273
11281
|
} catch (F) {
|
|
11274
11282
|
ue.error(F.message);
|
|
11275
11283
|
}
|
|
@@ -11296,7 +11304,7 @@ const Ts = [
|
|
|
11296
11304
|
const { children: te } = fe.row, be = te == null ? void 0 : te.findIndex((ge) => ge.name == E.name);
|
|
11297
11305
|
te && (Le(te, F, be), ie());
|
|
11298
11306
|
} else {
|
|
11299
|
-
const te =
|
|
11307
|
+
const te = $t(I.value), be = te.findIndex((ge) => ge.name == E.name);
|
|
11300
11308
|
Le(te, F, be), ie(te);
|
|
11301
11309
|
}
|
|
11302
11310
|
}
|
|
@@ -11321,7 +11329,7 @@ const Ts = [
|
|
|
11321
11329
|
}
|
|
11322
11330
|
return (E, F) => {
|
|
11323
11331
|
const H = G("t-button"), me = G("t-icon"), fe = G("t-input"), te = G("t-form-item"), be = G("t-option"), ge = G("t-select"), Be = G("t-input-group");
|
|
11324
|
-
return
|
|
11332
|
+
return y(), L(i(Fn), { title: n.value }, {
|
|
11325
11333
|
default: T(() => [
|
|
11326
11334
|
V(i(Rn), null, {
|
|
11327
11335
|
"left-operations": T(() => [
|
|
@@ -11389,7 +11397,7 @@ const Ts = [
|
|
|
11389
11397
|
}
|
|
11390
11398
|
}, {
|
|
11391
11399
|
treeExpandAndFoldIcon: T(({ type: X }) => [
|
|
11392
|
-
X === "expand" ? (
|
|
11400
|
+
X === "expand" ? (y(), L(i(Za), { key: 0 })) : (y(), L(i(Ja), { key: 1 }))
|
|
11393
11401
|
]),
|
|
11394
11402
|
drag: T(() => [
|
|
11395
11403
|
V(i(el))
|
|
@@ -11399,13 +11407,13 @@ const Ts = [
|
|
|
11399
11407
|
ee("span", {
|
|
11400
11408
|
class: R(["title", X.isGroup ? "title-bold" : "title-child"])
|
|
11401
11409
|
}, [
|
|
11402
|
-
X.level == 1 && X.isGroup ? (
|
|
11403
|
-
X.icon ? (
|
|
11410
|
+
X.level == 1 && X.isGroup ? (y(), W(ke, { key: 0 }, [
|
|
11411
|
+
X.icon ? (y(), L(me, {
|
|
11404
11412
|
key: 0,
|
|
11405
11413
|
class: "title-icon",
|
|
11406
11414
|
name: X.icon,
|
|
11407
11415
|
size: "large"
|
|
11408
|
-
}, null, 8, ["name"])) : (
|
|
11416
|
+
}, null, 8, ["name"])) : (y(), L(i(Po), {
|
|
11409
11417
|
key: 1,
|
|
11410
11418
|
class: "title-icon",
|
|
11411
11419
|
size: "large"
|
|
@@ -11413,7 +11421,7 @@ const Ts = [
|
|
|
11413
11421
|
], 64)) : K("", !0),
|
|
11414
11422
|
re(" " + J(X.title), 1)
|
|
11415
11423
|
], 2),
|
|
11416
|
-
X.isGroup ? (
|
|
11424
|
+
X.isGroup ? (y(), W("span", Cs, J(X.children.length) + "项", 1)) : K("", !0)
|
|
11417
11425
|
])
|
|
11418
11426
|
]),
|
|
11419
11427
|
operations: T(({ row: X }) => [
|
|
@@ -11547,7 +11555,7 @@ const Ts = [
|
|
|
11547
11555
|
]),
|
|
11548
11556
|
_: 1
|
|
11549
11557
|
}, 8, ["label"]),
|
|
11550
|
-
m.value.level == 1 ? (
|
|
11558
|
+
m.value.level == 1 ? (y(), L(te, {
|
|
11551
11559
|
key: 0,
|
|
11552
11560
|
name: "icon",
|
|
11553
11561
|
label: i(e)("图标标识")
|
|
@@ -11562,16 +11570,16 @@ const Ts = [
|
|
|
11562
11570
|
clearable: !0
|
|
11563
11571
|
}, {
|
|
11564
11572
|
valueDisplay: T(() => [
|
|
11565
|
-
m.value.icon ? (
|
|
11573
|
+
m.value.icon ? (y(), W("span", Ss, [
|
|
11566
11574
|
V(me, {
|
|
11567
11575
|
name: m.value.icon,
|
|
11568
11576
|
style: { marginRight: "8px" }
|
|
11569
11577
|
}, null, 8, ["name"]),
|
|
11570
11578
|
re(J(m.value.icon), 1)
|
|
11571
|
-
])) : (
|
|
11579
|
+
])) : (y(), W("span", Ns, J(i(e)("请选择图标标识")), 1))
|
|
11572
11580
|
]),
|
|
11573
11581
|
default: T(() => [
|
|
11574
|
-
(
|
|
11582
|
+
(y(!0), W(ke, null, Ae(i(Ts), (X) => (y(), L(be, {
|
|
11575
11583
|
value: X.stem,
|
|
11576
11584
|
key: X.stem,
|
|
11577
11585
|
class: "overlay-options"
|
|
@@ -11592,7 +11600,7 @@ const Ts = [
|
|
|
11592
11600
|
]),
|
|
11593
11601
|
_: 1
|
|
11594
11602
|
}, 8, ["label"])) : K("", !0),
|
|
11595
|
-
m.value.isGroup ? K("", !0) : (
|
|
11603
|
+
m.value.isGroup ? K("", !0) : (y(), L(te, {
|
|
11596
11604
|
key: 1,
|
|
11597
11605
|
name: "parent",
|
|
11598
11606
|
label: i(e)("父菜单"),
|
|
@@ -11607,7 +11615,7 @@ const Ts = [
|
|
|
11607
11615
|
]),
|
|
11608
11616
|
_: 1
|
|
11609
11617
|
}, 8, ["label"])),
|
|
11610
|
-
!Y(m.value.children).length && m.value.level == 1 ? (
|
|
11618
|
+
!Y(m.value.children).length && m.value.level == 1 ? (y(), L(te, {
|
|
11611
11619
|
key: 2,
|
|
11612
11620
|
name: "children",
|
|
11613
11621
|
label: i(e)("分组")
|
|
@@ -11625,7 +11633,7 @@ const Ts = [
|
|
|
11625
11633
|
]),
|
|
11626
11634
|
_: 1
|
|
11627
11635
|
}, 8, ["label"])) : K("", !0),
|
|
11628
|
-
(
|
|
11636
|
+
(y(!0), W(ke, null, Ae(Y(m.value.children), (X, xe) => (y(), L(te, {
|
|
11629
11637
|
name: "children",
|
|
11630
11638
|
key: "group" + xe,
|
|
11631
11639
|
label: xe == 0 ? i(e)("分组") : " "
|
|
@@ -11663,11 +11671,11 @@ const Ts = [
|
|
|
11663
11671
|
]),
|
|
11664
11672
|
_: 2
|
|
11665
11673
|
}, 1032, ["onClick"]),
|
|
11666
|
-
xe == Y(m.value.children).length - 1 ? (
|
|
11674
|
+
xe == Y(m.value.children).length - 1 ? (y(), L(H, {
|
|
11667
11675
|
key: 0,
|
|
11668
11676
|
variant: "outline",
|
|
11669
11677
|
theme: "default",
|
|
11670
|
-
onClick:
|
|
11678
|
+
onClick: Ot(he, ["prevent"])
|
|
11671
11679
|
}, {
|
|
11672
11680
|
default: T(() => [
|
|
11673
11681
|
re("+ ")
|
|
@@ -11680,7 +11688,7 @@ const Ts = [
|
|
|
11680
11688
|
]),
|
|
11681
11689
|
_: 2
|
|
11682
11690
|
}, 1032, ["label"]))), 128)),
|
|
11683
|
-
!q(m.value.children).length && m.value.isGroup ? (
|
|
11691
|
+
!q(m.value.children).length && m.value.isGroup ? (y(), L(te, {
|
|
11684
11692
|
key: 3,
|
|
11685
11693
|
name: "children",
|
|
11686
11694
|
label: i(e)("子菜单项")
|
|
@@ -11698,7 +11706,7 @@ const Ts = [
|
|
|
11698
11706
|
]),
|
|
11699
11707
|
_: 1
|
|
11700
11708
|
}, 8, ["label"])) : K("", !0),
|
|
11701
|
-
(
|
|
11709
|
+
(y(!0), W(ke, null, Ae(q(m.value.children), (X, xe) => (y(), L(te, {
|
|
11702
11710
|
name: "children",
|
|
11703
11711
|
key: "item" + xe,
|
|
11704
11712
|
label: xe == 0 ? i(e)("子菜单项") : " "
|
|
@@ -11736,11 +11744,11 @@ const Ts = [
|
|
|
11736
11744
|
]),
|
|
11737
11745
|
_: 2
|
|
11738
11746
|
}, 1032, ["onClick"]),
|
|
11739
|
-
xe == q(m.value.children).length - 1 ? (
|
|
11747
|
+
xe == q(m.value.children).length - 1 ? (y(), L(H, {
|
|
11740
11748
|
key: 0,
|
|
11741
11749
|
variant: "outline",
|
|
11742
11750
|
theme: "default",
|
|
11743
|
-
onClick:
|
|
11751
|
+
onClick: Ot(Ye, ["prevent"])
|
|
11744
11752
|
}, {
|
|
11745
11753
|
default: T(() => [
|
|
11746
11754
|
re("+ ")
|
|
@@ -11753,7 +11761,7 @@ const Ts = [
|
|
|
11753
11761
|
]),
|
|
11754
11762
|
_: 2
|
|
11755
11763
|
}, 1032, ["label"]))), 128)),
|
|
11756
|
-
u.value == "editItem" ? (
|
|
11764
|
+
u.value == "editItem" ? (y(), W(ke, { key: 4 }, [
|
|
11757
11765
|
V(te, {
|
|
11758
11766
|
label: i(e)("是否为内置菜单")
|
|
11759
11767
|
}, {
|
|
@@ -11787,7 +11795,7 @@ const Ts = [
|
|
|
11787
11795
|
]),
|
|
11788
11796
|
_: 1
|
|
11789
11797
|
}, 8, ["label"]),
|
|
11790
|
-
m.value.isInner ? (
|
|
11798
|
+
m.value.isInner ? (y(), L(te, {
|
|
11791
11799
|
key: 0,
|
|
11792
11800
|
label: i(e)("选择菜单")
|
|
11793
11801
|
}, {
|
|
@@ -11800,7 +11808,7 @@ const Ts = [
|
|
|
11800
11808
|
]),
|
|
11801
11809
|
_: 1
|
|
11802
11810
|
}, 8, ["label"])) : K("", !0),
|
|
11803
|
-
m.value.isInner ? K("", !0) : (
|
|
11811
|
+
m.value.isInner ? K("", !0) : (y(), L(te, {
|
|
11804
11812
|
key: 1,
|
|
11805
11813
|
label: i(e)("菜单路径")
|
|
11806
11814
|
}, {
|
|
@@ -11818,7 +11826,7 @@ const Ts = [
|
|
|
11818
11826
|
} : u.value == "moveItemTo" ? {
|
|
11819
11827
|
name: "body",
|
|
11820
11828
|
fn: T(() => [
|
|
11821
|
-
m.value.isGroup ? K("", !0) : (
|
|
11829
|
+
m.value.isGroup ? K("", !0) : (y(), L(te, {
|
|
11822
11830
|
key: 0,
|
|
11823
11831
|
name: "parent",
|
|
11824
11832
|
label: i(e)("转移至"),
|
|
@@ -11855,7 +11863,7 @@ const Tc = He(Ls), xs = /* @__PURE__ */ ae({
|
|
|
11855
11863
|
},
|
|
11856
11864
|
setup(o) {
|
|
11857
11865
|
const e = `${vt}__title`;
|
|
11858
|
-
return (t, n) => (
|
|
11866
|
+
return (t, n) => (y(), W("div", {
|
|
11859
11867
|
class: R(`${e}`)
|
|
11860
11868
|
}, [
|
|
11861
11869
|
ee("div", {
|
|
@@ -11870,7 +11878,7 @@ const Tc = He(Ls), xs = /* @__PURE__ */ ae({
|
|
|
11870
11878
|
__name: "GLoginForm",
|
|
11871
11879
|
setup(o) {
|
|
11872
11880
|
const { t: e } = Ve(), t = `${vt}__form`;
|
|
11873
|
-
return (n, a) => (
|
|
11881
|
+
return (n, a) => (y(), W("div", {
|
|
11874
11882
|
class: R(`${t}`)
|
|
11875
11883
|
}, [
|
|
11876
11884
|
$e(n.$slots, "tabs"),
|
|
@@ -11893,12 +11901,12 @@ const Tc = He(Ls), xs = /* @__PURE__ */ ae({
|
|
|
11893
11901
|
},
|
|
11894
11902
|
setup(o) {
|
|
11895
11903
|
const e = `${vt}__footer`;
|
|
11896
|
-
return (t, n) => (
|
|
11904
|
+
return (t, n) => (y(), W("div", {
|
|
11897
11905
|
class: R(`${e}`)
|
|
11898
11906
|
}, [
|
|
11899
11907
|
ee("span", {
|
|
11900
11908
|
class: R(`${e}--logo`),
|
|
11901
|
-
style:
|
|
11909
|
+
style: Gt({ backgroundImage: `url(${o.copyrightLogoSrc})` })
|
|
11902
11910
|
}, null, 6),
|
|
11903
11911
|
ee("div", {
|
|
11904
11912
|
class: R(`${e}--copyright`)
|
|
@@ -11921,12 +11929,12 @@ const Tc = He(Ls), xs = /* @__PURE__ */ ae({
|
|
|
11921
11929
|
copyrightLogoSrc: null
|
|
11922
11930
|
},
|
|
11923
11931
|
setup(o) {
|
|
11924
|
-
return (e, t) => (
|
|
11932
|
+
return (e, t) => (y(), W("div", {
|
|
11925
11933
|
class: R(`${i(vt)}`)
|
|
11926
11934
|
}, [
|
|
11927
11935
|
ee("video", {
|
|
11928
11936
|
class: R(`${i(vt)}__bgVideo`),
|
|
11929
|
-
style:
|
|
11937
|
+
style: Gt({ backgroundImage: `url(${o.bgImgSrc})` }),
|
|
11930
11938
|
poster: o.bgImgSrc,
|
|
11931
11939
|
autoplay: "",
|
|
11932
11940
|
muted: "",
|
|
@@ -11980,7 +11988,7 @@ function js(o, e) {
|
|
|
11980
11988
|
}
|
|
11981
11989
|
}
|
|
11982
11990
|
function Cc(o) {
|
|
11983
|
-
|
|
11991
|
+
_e(o), Et(o), Qo(o), qo(o);
|
|
11984
11992
|
}
|
|
11985
11993
|
const kc = {
|
|
11986
11994
|
install: js
|
|
@@ -11998,14 +12006,14 @@ export {
|
|
|
11998
12006
|
Mc as GLogin,
|
|
11999
12007
|
Tc as GMenuManage,
|
|
12000
12008
|
Ro as GUploader,
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12009
|
+
So as INIT_WS_MODEL,
|
|
12010
|
+
so as LANG_CONFIG,
|
|
12011
|
+
Io as LOCAL_CONFIG,
|
|
12004
12012
|
ic as LOCAL_DATA_ID,
|
|
12005
12013
|
ln as LOCAL_INIT_TAB_MENU_LIST,
|
|
12006
12014
|
rc as LOCAL_MENU,
|
|
12007
|
-
|
|
12008
|
-
|
|
12015
|
+
Rt as LOCAL_SESSION_ID,
|
|
12016
|
+
Wt as LOCAL_SIDE_MENU_CONFIG,
|
|
12009
12017
|
rn as LOCAL_TAB_MENU,
|
|
12010
12018
|
an as LOCAL_THEME_CONFIG,
|
|
12011
12019
|
ll as LOCAL_USER,
|
|
@@ -12019,24 +12027,24 @@ export {
|
|
|
12019
12027
|
vl as WS_SERVICE_URL,
|
|
12020
12028
|
Ml as boardClass,
|
|
12021
12029
|
wl as commonDialogClass,
|
|
12022
|
-
|
|
12023
|
-
|
|
12030
|
+
Yt as commonFormClass,
|
|
12031
|
+
qt as commonHeaderClass,
|
|
12024
12032
|
Tl as commonTableClass,
|
|
12025
12033
|
kc as default,
|
|
12026
12034
|
dc as dialogClass,
|
|
12027
|
-
|
|
12028
|
-
|
|
12035
|
+
io as dialogPluginClass,
|
|
12036
|
+
Oo as evalContext,
|
|
12029
12037
|
un as flattenMenuData,
|
|
12030
12038
|
Cl as formClass,
|
|
12031
12039
|
mn as formItemClass,
|
|
12032
12040
|
vt as gLoginClass,
|
|
12033
|
-
|
|
12041
|
+
co as generateMenuTree,
|
|
12034
12042
|
Nl as getBrandColor,
|
|
12035
12043
|
Bn as getHomeUrl,
|
|
12036
|
-
|
|
12044
|
+
Ut as getUrlQuery,
|
|
12037
12045
|
kl as headerClass,
|
|
12038
12046
|
We as http,
|
|
12039
|
-
|
|
12047
|
+
Ht as i18n,
|
|
12040
12048
|
Pl as initTableColumns,
|
|
12041
12049
|
ct as is,
|
|
12042
12050
|
Yo as isArray,
|
|
@@ -12053,7 +12061,7 @@ export {
|
|
|
12053
12061
|
Oe as isNullOrUnDef,
|
|
12054
12062
|
fc as isNumber,
|
|
12055
12063
|
Wo as isObject,
|
|
12056
|
-
|
|
12064
|
+
go as isOuterUrl,
|
|
12057
12065
|
Vl as isPromise,
|
|
12058
12066
|
Ul as isResourceUrl,
|
|
12059
12067
|
bc as isServer,
|
|
@@ -12063,17 +12071,17 @@ export {
|
|
|
12063
12071
|
Ze as layoutClass,
|
|
12064
12072
|
nr as loadNanoId,
|
|
12065
12073
|
Ge as localStorageUtils,
|
|
12066
|
-
|
|
12074
|
+
jt as nanoid,
|
|
12067
12075
|
Lt as resolveUrl,
|
|
12068
12076
|
Ke as sessionStorageUtils,
|
|
12069
12077
|
Cc as setupStore,
|
|
12070
12078
|
Il as tabClass,
|
|
12071
12079
|
St as tableClass,
|
|
12072
|
-
|
|
12080
|
+
Qt as uploaderClass,
|
|
12073
12081
|
Vn as urlToPath,
|
|
12074
12082
|
Ve as useI18n,
|
|
12075
12083
|
Qo as usePropsStore,
|
|
12076
|
-
|
|
12084
|
+
_e as useSettingStore,
|
|
12077
12085
|
qo as useSocketStore,
|
|
12078
12086
|
Et as useTabMenuStore,
|
|
12079
12087
|
Al as v,
|