@gonsin/gview 2.0.1 → 2.0.2
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/README.md +6 -1
- package/dist/{index-189a45ed.mjs → index-07825e29.mjs} +1 -1
- package/dist/{index-0837cd29.mjs → index-f621b646.mjs} +1145 -1126
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/types/components/GLayout/index.d.ts +0 -2
- package/dist/types/components/GLogin/index.d.ts +0 -2
- package/dist/types/components/common/GCommonDialog/index.d.ts +0 -2
- package/dist/types/components/common/GCommonForm/index.d.ts +0 -2
- package/dist/types/components/common/GCommonHeader/index.d.ts +0 -2
- package/dist/types/components/common/GCommonTable/index.d.ts +0 -2
- package/dist/types/components/common/index.d.ts +0 -4
- package/dist/types/components/index.d.ts +0 -5
- package/dist/types/constant/color.d.ts +0 -5
- package/dist/types/constant/common.d.ts +0 -1
- package/dist/types/constant/index.d.ts +0 -5
- package/dist/types/constant/local.d.ts +0 -11
- package/dist/types/constant/theme.d.ts +0 -4
- package/dist/types/constant/websocket.d.ts +0 -22
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/nanoid.d.ts +0 -2
- package/dist/types/hooks/nprogress.d.ts +0 -2
- package/dist/types/http/config.d.ts +0 -5
- package/dist/types/http/index.d.ts +0 -16
- package/dist/types/http/type.d.ts +0 -5
- package/dist/types/index.d.ts +0 -18
- package/dist/types/stores/index.d.ts +0 -4
- package/dist/types/stores/props.d.ts +0 -6
- package/dist/types/stores/setting.d.ts +0 -74
- package/dist/types/stores/socket.d.ts +0 -16
- package/dist/types/stores/tabMenu.d.ts +0 -18
- package/dist/types/types/common.d.ts +0 -24
- package/dist/types/types/view.d.ts +0 -290
- package/dist/types/utils/color.d.ts +0 -2
- package/dist/types/utils/eval.d.ts +0 -12
- package/dist/types/utils/index.d.ts +0 -8
- package/dist/types/utils/is.d.ts +0 -77
- package/dist/types/utils/menu.d.ts +0 -20
- package/dist/types/utils/storage.d.ts +0 -13
- package/dist/types/utils/table.d.ts +0 -3
- package/dist/types/utils/url.d.ts +0 -1
- package/dist/types/utils/withInstall.d.ts +0 -6
- package/dist/types/views/GMenuManage/index.d.ts +0 -2
- package/dist/types/views/index.d.ts +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var rn = Object.defineProperty;
|
|
2
2
|
var sn = (e, t, o) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { useRouter as
|
|
3
|
+
var dt = (e, t, o) => (sn(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
+
import { defineComponent as Y, ref as $, computed as D, resolveComponent as F, openBlock as v, createBlock as S, normalizeClass as z, unref as m, withCtx as w, createElementBlock as q, Fragment as ve, renderList as ye, createVNode as V, createTextVNode as J, createCommentVNode as W, toDisplayString as ge, nextTick as un, createElementVNode as Z, normalizeStyle as Ct, renderSlot as Be, isRef as bt, onMounted as et, mergeProps as zt, createSlots as Tt, normalizeProps as _o, guardReactiveProps as Io, watch as we, onBeforeUnmount as _t, onBeforeMount as It, defineAsyncComponent as cn, Transition as dn, withModifiers as mn } from "vue";
|
|
5
|
+
import { useRouter as st, useRoute as tt } from "vue-router";
|
|
6
6
|
import { defineStore as xt } from "pinia";
|
|
7
|
-
import { MessagePlugin as
|
|
8
|
-
import { get as
|
|
7
|
+
import { MessagePlugin as oe, DialogPlugin as gt } from "tdesign-vue-next";
|
|
8
|
+
import { get as Q, set as qe, cloneDeep as rt } from "lodash-es";
|
|
9
9
|
import fn from "axios";
|
|
10
10
|
import { customAlphabet as hn } from "nanoid";
|
|
11
11
|
import vt from "nprogress";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import Wt from "dayjs";
|
|
13
|
+
import ze from "mustache";
|
|
14
14
|
import pn from "he";
|
|
15
|
-
const
|
|
15
|
+
const it = "config", lo = "themeConfig", gn = "user", mr = "menu", ro = "initTabMenuList", io = "tabMenu", Ft = "sideMenuConfig", fr = "token", hr = "tokenExpiredTime", pr = "dataId", so = "sessionId", vn = {
|
|
16
16
|
brandTheme: "default",
|
|
17
17
|
// 主题色
|
|
18
18
|
displayMode: "light"
|
|
@@ -69,7 +69,7 @@ class So {
|
|
|
69
69
|
/**
|
|
70
70
|
* 存储实例: 默认为 local
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
dt(this, "storage");
|
|
73
73
|
switch (t) {
|
|
74
74
|
case "local":
|
|
75
75
|
this.storage = window.localStorage;
|
|
@@ -97,10 +97,10 @@ class So {
|
|
|
97
97
|
this.storage.clear();
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const at = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
101
101
|
state: () => ({
|
|
102
102
|
// 登录标志
|
|
103
|
-
isUserLogin: !!
|
|
103
|
+
isUserLogin: !!at.getItem(gn) || !1,
|
|
104
104
|
// 加载标志
|
|
105
105
|
isGlobalLoaded: !0,
|
|
106
106
|
// 侧边栏是否显示
|
|
@@ -112,9 +112,9 @@ const lt = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
112
112
|
...vn
|
|
113
113
|
},
|
|
114
114
|
// 侧边菜单配置
|
|
115
|
-
sideMenuTree: je.getItem(
|
|
115
|
+
sideMenuTree: je.getItem(Ft) || [],
|
|
116
116
|
// 用户传入GView的信息与配置
|
|
117
|
-
userConfig: je.getItem(
|
|
117
|
+
userConfig: je.getItem(it) || {
|
|
118
118
|
userInfo: {
|
|
119
119
|
realName: ""
|
|
120
120
|
},
|
|
@@ -164,21 +164,21 @@ const lt = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
164
164
|
});
|
|
165
165
|
},
|
|
166
166
|
setSideMenuConfig(e) {
|
|
167
|
-
this.sideMenuTree = e, je.setItem(
|
|
167
|
+
this.sideMenuTree = e, je.setItem(Ft, e);
|
|
168
168
|
},
|
|
169
169
|
/**
|
|
170
170
|
* @description 用户登录后初始化配置
|
|
171
171
|
*/
|
|
172
172
|
async initUserConfig(e) {
|
|
173
|
-
je.setItem(
|
|
173
|
+
je.setItem(it, e), this.userConfig = { ...e };
|
|
174
174
|
const { userMenu: t } = e, o = xo(t, null, 1);
|
|
175
|
-
je.setItem(
|
|
175
|
+
je.setItem(Ft, o), this.sideMenuTree = o, this.setUserLoginStatus(!0);
|
|
176
176
|
},
|
|
177
177
|
/**
|
|
178
178
|
* @description 用户退出
|
|
179
179
|
*/
|
|
180
180
|
userLogout() {
|
|
181
|
-
je.removeItem(
|
|
181
|
+
je.removeItem(it), sessionStorage.clear(), this.setUserLoginStatus(!1);
|
|
182
182
|
},
|
|
183
183
|
/**
|
|
184
184
|
* @description 更改主题
|
|
@@ -213,16 +213,16 @@ const lt = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
213
213
|
}), Nt = xt("tabMenu", {
|
|
214
214
|
state: () => ({
|
|
215
215
|
// 初始化tab菜单列表
|
|
216
|
-
initTabMenuList:
|
|
216
|
+
initTabMenuList: at.getItem(ro) || [],
|
|
217
217
|
// tab菜单列表
|
|
218
|
-
tabMenuList:
|
|
218
|
+
tabMenuList: at.getItem(io) || []
|
|
219
219
|
}),
|
|
220
220
|
actions: {
|
|
221
221
|
setInitTabMenuList(e) {
|
|
222
|
-
|
|
222
|
+
at.setItem(ro, e), this.initTabMenuList = e;
|
|
223
223
|
},
|
|
224
224
|
setTabMenuList(e) {
|
|
225
|
-
|
|
225
|
+
at.setItem(io, e), this.tabMenuList = e;
|
|
226
226
|
},
|
|
227
227
|
/**
|
|
228
228
|
* @description 初始化tab菜单列表
|
|
@@ -265,7 +265,7 @@ const lt = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
265
265
|
this.setTabMenuList(this.initTabMenuList);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
}), bn = window.location.origin.replace(window.location.protocol, "ws:") + "/gview/websocket",
|
|
268
|
+
}), bn = window.location.origin.replace(window.location.protocol, "ws:") + "/gview/websocket", Ot = (e, t = "") => t ? {
|
|
269
269
|
head: "gonsin",
|
|
270
270
|
cmd: {
|
|
271
271
|
cmd: "gview_client",
|
|
@@ -289,28 +289,28 @@ function co(e) {
|
|
|
289
289
|
return Ge(e, "Function");
|
|
290
290
|
}
|
|
291
291
|
const Cn = (e) => typeof e < "u", Vo = (e) => !Cn(e), Mo = (e) => e !== null && Ge(e, "Object");
|
|
292
|
-
function
|
|
292
|
+
function gr(e) {
|
|
293
293
|
return Ge(e, "Date");
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function vr(e) {
|
|
296
296
|
return Ge(e, "Number");
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function br(e) {
|
|
299
299
|
return Ge(e, "AsyncFunction");
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function yr(e) {
|
|
302
302
|
return Ge(e, "Promise") && Mo(e) && co(e.then) && co(e.catch);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function wr(e) {
|
|
305
305
|
return Ge(e, "String");
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function kr(e) {
|
|
308
308
|
return Ge(e, "Boolean");
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Cr(e) {
|
|
311
311
|
return e && Array.isArray(e);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Tr = () => typeof window < "u", _r = (e) => typeof window < "u" && Ge(e, "Window"), Ir = (e) => Mo(e) && !!e.tagName, xr = typeof window > "u";
|
|
314
314
|
function yt(e) {
|
|
315
315
|
return e === null;
|
|
316
316
|
}
|
|
@@ -323,7 +323,7 @@ function Ne(e) {
|
|
|
323
323
|
function Po(e) {
|
|
324
324
|
return Ne(e) || (e + "").trim() == "";
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const Xt = xt("socket", {
|
|
327
327
|
state: () => ({
|
|
328
328
|
socket: null,
|
|
329
329
|
socketInterval: void 0,
|
|
@@ -344,12 +344,12 @@ const $t = xt("socket", {
|
|
|
344
344
|
initSocket() {
|
|
345
345
|
const e = this;
|
|
346
346
|
this.isSocketLinked = !1, this.socket = new WebSocket(bn), this.socket.onopen = function(t) {
|
|
347
|
-
let o =
|
|
347
|
+
let o = Ot("heart");
|
|
348
348
|
e.socketInterval = setInterval(function() {
|
|
349
349
|
e.socket && e.socket.send(JSON.stringify(o));
|
|
350
350
|
}, yn);
|
|
351
351
|
}, this.socket.onclose = function(t) {
|
|
352
|
-
|
|
352
|
+
oe.error("WebSocket 断开连接"), e.socketInterval = null, e.isSocketResetting = !0, e.socket = null, oe.error("WebSocket 重新连接..."), e.socketTimeout = setTimeout(function() {
|
|
353
353
|
e.isSocketResetting && (e.initSocket(), e.isSocketLinked && (clearTimeout(e.socketTimeout), window.dispatchEvent(new CustomEvent("onSocketReload"))));
|
|
354
354
|
}, wn);
|
|
355
355
|
}, this.socket.onerror = function(t) {
|
|
@@ -366,15 +366,15 @@ const $t = xt("socket", {
|
|
|
366
366
|
}, e.isSocketLinked = !0;
|
|
367
367
|
},
|
|
368
368
|
sendRegisterMessage(e) {
|
|
369
|
-
let t =
|
|
369
|
+
let t = Ot("register", e);
|
|
370
370
|
wt(this.socket) || this.socket.send(JSON.stringify(t));
|
|
371
371
|
},
|
|
372
372
|
sendUnregisterMessage(e) {
|
|
373
|
-
let t =
|
|
373
|
+
let t = Ot("unregister", e);
|
|
374
374
|
wt(this.socket) || this.socket.send(JSON.stringify(t));
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
}),
|
|
377
|
+
}), Zt = xt("props", {
|
|
378
378
|
state: () => ({
|
|
379
379
|
propsSource: {}
|
|
380
380
|
}),
|
|
@@ -396,49 +396,49 @@ function mo(e) {
|
|
|
396
396
|
t[n.split("=")[0]] = n.split("=")[1];
|
|
397
397
|
}), t;
|
|
398
398
|
}
|
|
399
|
-
const Tn = /* @__PURE__ */
|
|
399
|
+
const Tn = /* @__PURE__ */ Y({
|
|
400
400
|
__name: "GLayoutHeaderTab",
|
|
401
401
|
setup(e) {
|
|
402
|
-
const t =
|
|
403
|
-
function i(
|
|
404
|
-
h.trigger === "document" && (n.value = null),
|
|
402
|
+
const t = st(), o = tt(), n = $(""), a = Nt(), l = Le(), r = D(() => a.tabMenuList), s = D(() => l.homeUrl);
|
|
403
|
+
function i(T, h, y) {
|
|
404
|
+
h.trigger === "document" && (n.value = null), T && (n.value = y);
|
|
405
405
|
}
|
|
406
|
-
function u(
|
|
407
|
-
|
|
406
|
+
function u(T) {
|
|
407
|
+
T === "/home" ? t.push({ path: s.value, query: mo(s.value) }) : t.push({ path: T, query: mo(T) });
|
|
408
408
|
}
|
|
409
|
-
function c({ value:
|
|
409
|
+
function c({ value: T, index: h }) {
|
|
410
410
|
const { tabMenuList: y } = a;
|
|
411
411
|
if (y.length > 2) {
|
|
412
|
-
const
|
|
413
|
-
a.subtractCurrentTabMenuItem({ path:
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
path:
|
|
417
|
-
query:
|
|
412
|
+
const g = y[h + 1] || y[h - 1];
|
|
413
|
+
a.subtractCurrentTabMenuItem({ path: T, itemIdx: h });
|
|
414
|
+
const p = decodeURIComponent(o.fullPath);
|
|
415
|
+
T === p && t.push({
|
|
416
|
+
path: g.path,
|
|
417
|
+
query: g.query
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function d(
|
|
421
|
+
function d(T, h) {
|
|
422
422
|
un(() => {
|
|
423
423
|
t.push({
|
|
424
|
-
path:
|
|
425
|
-
query:
|
|
424
|
+
path: T.path,
|
|
425
|
+
query: T.query
|
|
426
426
|
});
|
|
427
427
|
}), l.toggleGlobalReload(), n.value = null;
|
|
428
428
|
}
|
|
429
|
-
function b(
|
|
430
|
-
a.subtractTabMenuItemAhead({ path:
|
|
429
|
+
function b(T, h) {
|
|
430
|
+
a.subtractTabMenuItemAhead({ path: T, itemIdx: h }), E("ahead", h);
|
|
431
431
|
}
|
|
432
|
-
function f(
|
|
433
|
-
a.subtractTabMenuItemBehind({ path:
|
|
432
|
+
function f(T, h) {
|
|
433
|
+
a.subtractTabMenuItemBehind({ path: T, itemIdx: h }), E("behind", h);
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
r.value.length > 2 && (a.subtractTabMenuItemOther({ path:
|
|
435
|
+
function M(T, h) {
|
|
436
|
+
r.value.length > 2 && (a.subtractTabMenuItemOther({ path: T, itemIdx: h }), E("other", h));
|
|
437
437
|
}
|
|
438
|
-
function E(
|
|
439
|
-
const y = o.fullPath, { tabMenuList:
|
|
440
|
-
if (
|
|
441
|
-
const
|
|
438
|
+
function E(T, h) {
|
|
439
|
+
const y = o.fullPath, { tabMenuList: g } = a, p = g.findIndex((_) => _.path === y);
|
|
440
|
+
if (T === "other" && p !== h || T === "ahead" && p < h || T === "behind" && p === -1) {
|
|
441
|
+
const _ = T === "behind" ? g.length - 1 : 1, x = g[_];
|
|
442
442
|
t.push({
|
|
443
443
|
path: x.path,
|
|
444
444
|
query: x.query
|
|
@@ -446,88 +446,88 @@ const Tn = /* @__PURE__ */ J({
|
|
|
446
446
|
}
|
|
447
447
|
n.value = null;
|
|
448
448
|
}
|
|
449
|
-
return (
|
|
450
|
-
const y = F("t-icon"),
|
|
451
|
-
return v(),
|
|
452
|
-
class:
|
|
449
|
+
return (T, h) => {
|
|
450
|
+
const y = F("t-icon"), g = F("t-dropdown-item"), p = F("t-dropdown-menu"), C = F("t-dropdown"), _ = F("t-tab-panel"), x = F("t-tabs");
|
|
451
|
+
return v(), S(x, {
|
|
452
|
+
class: z(`${m(X)}__header-tabs`),
|
|
453
453
|
size: "large",
|
|
454
|
-
value: decodeURIComponent(
|
|
454
|
+
value: decodeURIComponent(T.$route.fullPath),
|
|
455
455
|
onChange: u,
|
|
456
456
|
onRemove: c
|
|
457
457
|
}, {
|
|
458
|
-
default:
|
|
459
|
-
(v(!0), q(ve, null, ye(m(r), (
|
|
460
|
-
key:
|
|
461
|
-
value:
|
|
462
|
-
removable: !
|
|
458
|
+
default: w(() => [
|
|
459
|
+
(v(!0), q(ve, null, ye(m(r), (N, j) => (v(), S(_, {
|
|
460
|
+
key: N.path,
|
|
461
|
+
value: N.path,
|
|
462
|
+
removable: !N.isHome
|
|
463
463
|
}, {
|
|
464
|
-
label:
|
|
465
|
-
V(
|
|
464
|
+
label: w(() => [
|
|
465
|
+
V(C, {
|
|
466
466
|
trigger: "context-menu",
|
|
467
467
|
"popup-props": {
|
|
468
|
-
onVisibleChange: (
|
|
469
|
-
visible: n.value != "" ? n.value ===
|
|
468
|
+
onVisibleChange: (ee, k) => i(ee, k, N.path),
|
|
469
|
+
visible: n.value != "" ? n.value === N.path : !1
|
|
470
470
|
}
|
|
471
471
|
}, {
|
|
472
|
-
dropdown:
|
|
473
|
-
V(
|
|
474
|
-
default:
|
|
475
|
-
|
|
472
|
+
dropdown: w(() => [
|
|
473
|
+
V(p, null, {
|
|
474
|
+
default: w(() => [
|
|
475
|
+
N.isHome ? (v(), S(g, {
|
|
476
476
|
key: 0,
|
|
477
|
-
onClick: () => u(
|
|
477
|
+
onClick: () => u(N.path)
|
|
478
478
|
}, {
|
|
479
|
-
default:
|
|
479
|
+
default: w(() => [
|
|
480
480
|
V(y, { name: "home" }),
|
|
481
|
-
|
|
481
|
+
J("前往首页 ")
|
|
482
482
|
]),
|
|
483
483
|
_: 2
|
|
484
|
-
}, 1032, ["onClick"])) :
|
|
485
|
-
|
|
484
|
+
}, 1032, ["onClick"])) : W("", !0),
|
|
485
|
+
N.isHome ? W("", !0) : (v(), S(g, {
|
|
486
486
|
key: 1,
|
|
487
|
-
onClick: () => d(
|
|
487
|
+
onClick: () => d(N)
|
|
488
488
|
}, {
|
|
489
|
-
default:
|
|
489
|
+
default: w(() => [
|
|
490
490
|
V(y, { name: "refresh" }),
|
|
491
|
-
|
|
491
|
+
J("刷新 ")
|
|
492
492
|
]),
|
|
493
493
|
_: 2
|
|
494
494
|
}, 1032, ["onClick"])),
|
|
495
|
-
|
|
495
|
+
j > 1 ? (v(), S(g, {
|
|
496
496
|
key: 2,
|
|
497
|
-
onClick: () => b(
|
|
497
|
+
onClick: () => b(N.path, j)
|
|
498
498
|
}, {
|
|
499
|
-
default:
|
|
499
|
+
default: w(() => [
|
|
500
500
|
V(y, { name: "arrow-left" }),
|
|
501
|
-
|
|
501
|
+
J("关闭左侧 ")
|
|
502
502
|
]),
|
|
503
503
|
_: 2
|
|
504
|
-
}, 1032, ["onClick"])) :
|
|
505
|
-
|
|
504
|
+
}, 1032, ["onClick"])) : W("", !0),
|
|
505
|
+
j > 0 && j < m(r).length - 1 ? (v(), S(g, {
|
|
506
506
|
key: 3,
|
|
507
|
-
onClick: () => f(
|
|
507
|
+
onClick: () => f(N.path, j)
|
|
508
508
|
}, {
|
|
509
|
-
default:
|
|
509
|
+
default: w(() => [
|
|
510
510
|
V(y, { name: "arrow-right " }),
|
|
511
|
-
|
|
511
|
+
J("关闭右侧 ")
|
|
512
512
|
]),
|
|
513
513
|
_: 2
|
|
514
|
-
}, 1032, ["onClick"])) :
|
|
515
|
-
|
|
514
|
+
}, 1032, ["onClick"])) : W("", !0),
|
|
515
|
+
j > 0 && m(r).length > 2 ? (v(), S(g, {
|
|
516
516
|
key: 4,
|
|
517
|
-
onClick: () =>
|
|
517
|
+
onClick: () => M(N.path, j)
|
|
518
518
|
}, {
|
|
519
|
-
default:
|
|
519
|
+
default: w(() => [
|
|
520
520
|
V(y, { name: "close-circle" }),
|
|
521
|
-
|
|
521
|
+
J("关闭其他 ")
|
|
522
522
|
]),
|
|
523
523
|
_: 2
|
|
524
|
-
}, 1032, ["onClick"])) :
|
|
524
|
+
}, 1032, ["onClick"])) : W("", !0)
|
|
525
525
|
]),
|
|
526
526
|
_: 2
|
|
527
527
|
}, 1024)
|
|
528
528
|
]),
|
|
529
|
-
default:
|
|
530
|
-
|
|
529
|
+
default: w(() => [
|
|
530
|
+
J(ge(N.title) + " ", 1)
|
|
531
531
|
]),
|
|
532
532
|
_: 2
|
|
533
533
|
}, 1032, ["popup-props"])
|
|
@@ -540,10 +540,10 @@ const Tn = /* @__PURE__ */ J({
|
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
|
-
const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhdEVYdENyZWF0aW9uIFRpbWUAMjAyMjoxMTozMCAwODo0NDo0MviriswAACO4SURBVHhe7Z0JeFzFle+r6t5utSRvLLYx2JZaltQteQFjlpiEZ/wGskEmYRIYSL5MGGaBmSHMJEzCkrBNCBBIhkcSQhKYEIb5eElMMgmZELJiVhOCwau6W7tkgW2Mdy293Fvn/atVJpbVfW/dVsvW+77+2a2+VX37di2nTp3aWYUKFSpUqFChQoUKFSpUqFChQoUKFSpUqFChQoUKFSpUmABcvx81CL+5tbU1lN67166dMcOigzxcVWXb2XDOslxXZIgmLUwR/OM0kmns7n5Le00YxEd0NDaGsuFwyHaciOWGqinLwlLkQiJkC5bV9/Ec2cJyhy3HZURZlyhTFQqNRNLp3B/7+nKXMuaO3ll+Xp23oiZSPXIi8QyCa4ZKq9yIO9z6ZnK39powz6xaZZ848PY8xtLapzBORsjlAx1vaOeEeHXFihB7k4VY9d7QbKdWjEQyVjYXtma4jshUuYJD3iZT5hQqLQecwV2r+/q8Iw7658+vzlTNPDHtk0YK9dz9w5HdZ2xfP6y9CpKIxabbjj3L5JmHUM8eyYnBZf2b92qvCWMaDsk5LevsfBOZIrXXhDkqiu6pxsaqxpy93OFsKRe8hUvZjBIX5ZzVQsZsxMuCJhBKCeL2SQ2TJejzzd2pR7SzJFQ4Ewvjy4XFlxOx5ZzLpfBaiI/CcIcRLxvKzEbxEYhMXrmoP5y4JE5QdNxBnHPwycB7JzHaRIxvZIK9ti8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RZB0xEmmzywHpNQZ9BrCJiGzrptz3BFJ2eoanpl+8ODw9pNPzq1Yv94ZVYilk19pY7MTTOKm0mpadrDLb/mX2uXXsbNm3Rc8t83LogoCIiAS0XhjSBQegVU1fZjxTCbD9iweaNtbStqp31AbVhwYmmmtOBnGaxnyoEKFChUqVKhQoUKFChUqVKhQoUKFChUqVKhQoQww9v8ADoTZZnPdorgAAAAASUVORK5CYII=", In = /* @__PURE__ */ Y({
|
|
544
544
|
__name: "GLayoutHeader",
|
|
545
545
|
setup(e) {
|
|
546
|
-
const t =
|
|
546
|
+
const t = st(), o = Le(), n = D(() => o.userRealName), a = D(() => o.displayMode);
|
|
547
547
|
function l() {
|
|
548
548
|
o.toggleSideMenuCollapse();
|
|
549
549
|
}
|
|
@@ -554,23 +554,23 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
554
554
|
o.userLogout(), t.push({ name: "login" });
|
|
555
555
|
}
|
|
556
556
|
return (i, u) => {
|
|
557
|
-
const c = F("t-icon"), d = F("t-button"), b = F("t-dropdown-item"), f = F("t-dropdown-menu"),
|
|
558
|
-
return v(),
|
|
559
|
-
class:
|
|
557
|
+
const c = F("t-icon"), d = F("t-button"), b = F("t-dropdown-item"), f = F("t-dropdown-menu"), M = F("t-dropdown"), E = F("t-tooltip"), T = F("t-head-menu"), h = F("t-header");
|
|
558
|
+
return v(), S(h, {
|
|
559
|
+
class: z(`${m(X)}__header`)
|
|
560
560
|
}, {
|
|
561
|
-
default:
|
|
562
|
-
V(
|
|
563
|
-
logo:
|
|
564
|
-
|
|
565
|
-
class:
|
|
561
|
+
default: w(() => [
|
|
562
|
+
V(T, { theme: m(a) }, {
|
|
563
|
+
logo: w(() => [
|
|
564
|
+
Z("div", {
|
|
565
|
+
class: z(`${m(X)}__header-logo-container`)
|
|
566
566
|
}, [
|
|
567
|
-
|
|
568
|
-
class:
|
|
567
|
+
Z("div", {
|
|
568
|
+
class: z(`${m(X)}__header—logo`),
|
|
569
569
|
style: Ct({ backgroundImage: `url(${m(_n)})` })
|
|
570
570
|
}, null, 6)
|
|
571
571
|
], 2),
|
|
572
|
-
|
|
573
|
-
class:
|
|
572
|
+
Z("div", {
|
|
573
|
+
class: z(`${m(X)}__header—collapse`)
|
|
574
574
|
}, [
|
|
575
575
|
V(d, {
|
|
576
576
|
theme: "default",
|
|
@@ -578,7 +578,7 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
578
578
|
variant: "text",
|
|
579
579
|
onClick: l
|
|
580
580
|
}, {
|
|
581
|
-
default:
|
|
581
|
+
default: w(() => [
|
|
582
582
|
V(c, {
|
|
583
583
|
class: "collapsed-icon",
|
|
584
584
|
name: "view-list"
|
|
@@ -588,18 +588,18 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
588
588
|
})
|
|
589
589
|
], 2)
|
|
590
590
|
]),
|
|
591
|
-
operations:
|
|
592
|
-
|
|
593
|
-
class:
|
|
591
|
+
operations: w(() => [
|
|
592
|
+
Z("div", {
|
|
593
|
+
class: z(`${m(X)}__header-operations-container`)
|
|
594
594
|
}, [
|
|
595
|
-
V(
|
|
596
|
-
dropdown:
|
|
595
|
+
V(M, { trigger: "click" }, {
|
|
596
|
+
dropdown: w(() => [
|
|
597
597
|
V(f, null, {
|
|
598
|
-
default:
|
|
598
|
+
default: w(() => [
|
|
599
599
|
V(b, { onClick: s }, {
|
|
600
|
-
default:
|
|
600
|
+
default: w(() => [
|
|
601
601
|
V(c, { name: "poweroff" }),
|
|
602
|
-
|
|
602
|
+
J(" 退出登录 ")
|
|
603
603
|
]),
|
|
604
604
|
_: 1
|
|
605
605
|
})
|
|
@@ -607,19 +607,19 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
607
607
|
_: 1
|
|
608
608
|
})
|
|
609
609
|
]),
|
|
610
|
-
default:
|
|
610
|
+
default: w(() => [
|
|
611
611
|
V(d, {
|
|
612
612
|
theme: "default",
|
|
613
613
|
variant: "text"
|
|
614
614
|
}, {
|
|
615
|
-
icon:
|
|
615
|
+
icon: w(() => [
|
|
616
616
|
V(c, { name: "user-circle" })
|
|
617
617
|
]),
|
|
618
|
-
suffix:
|
|
618
|
+
suffix: w(() => [
|
|
619
619
|
V(c, { name: "chevron-down" })
|
|
620
620
|
]),
|
|
621
|
-
default:
|
|
622
|
-
|
|
621
|
+
default: w(() => [
|
|
622
|
+
Z("span", null, ge(m(n)), 1)
|
|
623
623
|
]),
|
|
624
624
|
_: 1
|
|
625
625
|
})
|
|
@@ -630,14 +630,14 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
630
630
|
placement: "bottom",
|
|
631
631
|
content: "系统设置"
|
|
632
632
|
}, {
|
|
633
|
-
default:
|
|
633
|
+
default: w(() => [
|
|
634
634
|
V(d, {
|
|
635
635
|
theme: "default",
|
|
636
636
|
shape: "square",
|
|
637
637
|
variant: "text",
|
|
638
638
|
onClick: r
|
|
639
639
|
}, {
|
|
640
|
-
default:
|
|
640
|
+
default: w(() => [
|
|
641
641
|
V(c, { name: "setting" })
|
|
642
642
|
]),
|
|
643
643
|
_: 1
|
|
@@ -647,7 +647,7 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
647
647
|
})
|
|
648
648
|
], 2)
|
|
649
649
|
]),
|
|
650
|
-
default:
|
|
650
|
+
default: w(() => [
|
|
651
651
|
V(Tn)
|
|
652
652
|
]),
|
|
653
653
|
_: 1
|
|
@@ -658,19 +658,19 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
|
-
const xn = /* @__PURE__ */
|
|
661
|
+
const xn = /* @__PURE__ */ Y({
|
|
662
662
|
__name: "GLayoutContent",
|
|
663
663
|
setup(e) {
|
|
664
664
|
return (t, o) => {
|
|
665
665
|
const n = F("t-content"), a = F("t-layout");
|
|
666
|
-
return v(),
|
|
667
|
-
class:
|
|
666
|
+
return v(), S(a, {
|
|
667
|
+
class: z(`${m(X)}__content-layout`)
|
|
668
668
|
}, {
|
|
669
|
-
default:
|
|
669
|
+
default: w(() => [
|
|
670
670
|
V(n, {
|
|
671
|
-
class:
|
|
671
|
+
class: z(`${m(X)}__content`)
|
|
672
672
|
}, {
|
|
673
|
-
default:
|
|
673
|
+
default: w(() => [
|
|
674
674
|
Be(t.$slots, "default")
|
|
675
675
|
]),
|
|
676
676
|
_: 3
|
|
@@ -681,7 +681,7 @@ const xn = /* @__PURE__ */ J({
|
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
});
|
|
684
|
-
const
|
|
684
|
+
const Nr = [
|
|
685
685
|
"#0052d9",
|
|
686
686
|
"#0594fa",
|
|
687
687
|
"#00a870",
|
|
@@ -690,7 +690,7 @@ const Tr = [
|
|
|
690
690
|
"#e34d59",
|
|
691
691
|
"#ed49b4",
|
|
692
692
|
"#834ec2"
|
|
693
|
-
],
|
|
693
|
+
], Sr = [
|
|
694
694
|
"#4582e6",
|
|
695
695
|
"#29a4fb",
|
|
696
696
|
"#03a56f",
|
|
@@ -804,7 +804,7 @@ const Tr = [
|
|
|
804
804
|
"--td-brand-color-9": "#dda204",
|
|
805
805
|
"--td-brand-color-10": "#603100"
|
|
806
806
|
}
|
|
807
|
-
}, Sn = /* @__PURE__ */
|
|
807
|
+
}, Sn = /* @__PURE__ */ Y({
|
|
808
808
|
__name: "GLayoutSideMenuContent",
|
|
809
809
|
props: {
|
|
810
810
|
sideMenuTree: null
|
|
@@ -816,46 +816,46 @@ const Tr = [
|
|
|
816
816
|
return (n, a) => {
|
|
817
817
|
const l = F("t-menu-item"), r = F("t-icon"), s = F("GLayoutSideMenuContent", !0), i = F("t-submenu");
|
|
818
818
|
return v(!0), q(ve, null, ye(e.sideMenuTree, (u, c) => (v(), q("div", {
|
|
819
|
-
class:
|
|
819
|
+
class: z(`${m(X)}__side-menu-content`),
|
|
820
820
|
key: c
|
|
821
821
|
}, [
|
|
822
|
-
!u.children || !u.children.length ? (v(),
|
|
822
|
+
!u.children || !u.children.length ? (v(), S(l, {
|
|
823
823
|
key: 0,
|
|
824
|
-
class:
|
|
824
|
+
class: z(`level${u.level}-margin`),
|
|
825
825
|
name: u.path,
|
|
826
826
|
value: u.path,
|
|
827
827
|
to: u.path,
|
|
828
828
|
onClick: o
|
|
829
829
|
}, {
|
|
830
|
-
default:
|
|
831
|
-
|
|
830
|
+
default: w(() => [
|
|
831
|
+
J(ge(u.title), 1)
|
|
832
832
|
]),
|
|
833
833
|
_: 2
|
|
834
|
-
}, 1032, ["class", "name", "value", "to"])) : (v(),
|
|
834
|
+
}, 1032, ["class", "name", "value", "to"])) : (v(), S(i, {
|
|
835
835
|
key: 1,
|
|
836
|
-
class:
|
|
836
|
+
class: z(`level${u.level}-margin`),
|
|
837
837
|
name: u.name,
|
|
838
838
|
value: u.name,
|
|
839
839
|
title: u.title
|
|
840
840
|
}, {
|
|
841
|
-
icon:
|
|
841
|
+
icon: w(() => [
|
|
842
842
|
u.level == 1 ? (v(), q(ve, { key: 0 }, [
|
|
843
|
-
u.icon ? (v(),
|
|
843
|
+
u.icon ? (v(), S(r, {
|
|
844
844
|
key: 0,
|
|
845
845
|
name: u.icon,
|
|
846
846
|
size: "large"
|
|
847
|
-
}, null, 8, ["name"])) : (v(),
|
|
847
|
+
}, null, 8, ["name"])) : (v(), S(r, {
|
|
848
848
|
key: 1,
|
|
849
849
|
name: "app",
|
|
850
850
|
size: "large"
|
|
851
851
|
}))
|
|
852
|
-
], 64)) :
|
|
852
|
+
], 64)) : W("", !0)
|
|
853
853
|
]),
|
|
854
|
-
default:
|
|
855
|
-
u.children ? (v(),
|
|
854
|
+
default: w(() => [
|
|
855
|
+
u.children ? (v(), S(s, {
|
|
856
856
|
key: 0,
|
|
857
857
|
sideMenuTree: u.children
|
|
858
|
-
}, null, 8, ["sideMenuTree"])) :
|
|
858
|
+
}, null, 8, ["sideMenuTree"])) : W("", !0)
|
|
859
859
|
]),
|
|
860
860
|
_: 2
|
|
861
861
|
}, 1032, ["class", "name", "value", "title"]))
|
|
@@ -863,15 +863,15 @@ const Tr = [
|
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
});
|
|
866
|
-
const
|
|
866
|
+
const St = (e, t) => {
|
|
867
867
|
const o = e.__vccOpts || e;
|
|
868
868
|
for (const [n, a] of t)
|
|
869
869
|
o[n] = a;
|
|
870
870
|
return o;
|
|
871
|
-
}, Vn = /* @__PURE__ */
|
|
871
|
+
}, Vn = /* @__PURE__ */ St(Sn, [["__scopeId", "data-v-b3f65dba"]]), Mn = /* @__PURE__ */ Y({
|
|
872
872
|
__name: "GLayoutSideMenu",
|
|
873
873
|
setup(e) {
|
|
874
|
-
const t =
|
|
874
|
+
const t = st(), o = tt(), n = Le(), a = D(() => n.sideMenuTree), l = D(() => n.displayMode), r = D({
|
|
875
875
|
get() {
|
|
876
876
|
return n.isSideMenuCollapse;
|
|
877
877
|
},
|
|
@@ -891,26 +891,26 @@ const Zt = (e, t) => {
|
|
|
891
891
|
t.push({ name: "menuManage" }), n.toggleSideMenuCollapse();
|
|
892
892
|
}
|
|
893
893
|
return (c, d) => {
|
|
894
|
-
const b = F("t-icon"), f = F("t-button"),
|
|
895
|
-
return v(),
|
|
896
|
-
class:
|
|
894
|
+
const b = F("t-icon"), f = F("t-button"), M = F("t-menu"), E = F("t-drawer");
|
|
895
|
+
return v(), S(E, {
|
|
896
|
+
class: z(`${m(X)}__drawer`),
|
|
897
897
|
size: "232px",
|
|
898
898
|
placement: "left",
|
|
899
899
|
visible: m(r),
|
|
900
|
-
"onUpdate:visible": d[0] || (d[0] = (
|
|
900
|
+
"onUpdate:visible": d[0] || (d[0] = (T) => bt(r) ? r.value = T : null),
|
|
901
901
|
showOverlay: !0,
|
|
902
902
|
header: !1,
|
|
903
903
|
footer: !1,
|
|
904
904
|
showInAttachedElement: !0
|
|
905
905
|
}, {
|
|
906
|
-
default:
|
|
907
|
-
V(
|
|
906
|
+
default: w(() => [
|
|
907
|
+
V(M, {
|
|
908
908
|
width: "210px",
|
|
909
909
|
theme: m(l),
|
|
910
910
|
value: m(s),
|
|
911
911
|
defaultExpanded: m(i)
|
|
912
912
|
}, {
|
|
913
|
-
operations:
|
|
913
|
+
operations: w(() => [
|
|
914
914
|
V(f, {
|
|
915
915
|
variant: "text",
|
|
916
916
|
theme: "primary",
|
|
@@ -919,16 +919,16 @@ const Zt = (e, t) => {
|
|
|
919
919
|
onClick: u,
|
|
920
920
|
style: { "justify-content": "flex-start", padding: "0 0 0 10px" }
|
|
921
921
|
}, {
|
|
922
|
-
icon:
|
|
922
|
+
icon: w(() => [
|
|
923
923
|
V(b, { name: "view-list" })
|
|
924
924
|
]),
|
|
925
|
-
default:
|
|
926
|
-
|
|
925
|
+
default: w(() => [
|
|
926
|
+
J("菜单管理 ")
|
|
927
927
|
]),
|
|
928
928
|
_: 1
|
|
929
929
|
})
|
|
930
930
|
]),
|
|
931
|
-
default:
|
|
931
|
+
default: w(() => [
|
|
932
932
|
V(Vn, { sideMenuTree: m(a) }, null, 8, ["sideMenuTree"])
|
|
933
933
|
]),
|
|
934
934
|
_: 1
|
|
@@ -946,7 +946,7 @@ function An(e, t) {
|
|
|
946
946
|
const o = /^#[A-F\d]{6}$/i.test(e) ? e : Pn(e);
|
|
947
947
|
return t[o || "DEFAULT"];
|
|
948
948
|
}
|
|
949
|
-
const En = /* @__PURE__ */
|
|
949
|
+
const En = /* @__PURE__ */ Y({
|
|
950
950
|
__name: "Color",
|
|
951
951
|
props: {
|
|
952
952
|
value: { default: "default" }
|
|
@@ -957,11 +957,11 @@ const En = /* @__PURE__ */ J({
|
|
|
957
957
|
}));
|
|
958
958
|
return (n, a) => (v(), q("div", {
|
|
959
959
|
style: Ct(m(o)),
|
|
960
|
-
class:
|
|
960
|
+
class: z(`${m(X)}__color-container`)
|
|
961
961
|
}, null, 6));
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
|
-
const Bn = /* @__PURE__ */
|
|
964
|
+
const Bn = /* @__PURE__ */ Y({
|
|
965
965
|
__name: "GLayoutSettingPanel",
|
|
966
966
|
setup(e) {
|
|
967
967
|
const t = Le(), o = [
|
|
@@ -990,36 +990,36 @@ const Bn = /* @__PURE__ */ J({
|
|
|
990
990
|
};
|
|
991
991
|
return (s, i) => {
|
|
992
992
|
const u = F("t-icon"), c = F("t-radio-button"), d = F("t-radio-group"), b = F("t-drawer");
|
|
993
|
-
return v(),
|
|
994
|
-
class:
|
|
993
|
+
return v(), S(b, {
|
|
994
|
+
class: z(`${m(X)}__setting-panel`),
|
|
995
995
|
visible: m(l),
|
|
996
996
|
"onUpdate:visible": i[2] || (i[2] = (f) => bt(l) ? l.value = f : null),
|
|
997
997
|
footer: !1
|
|
998
998
|
}, {
|
|
999
|
-
header:
|
|
999
|
+
header: w(() => [
|
|
1000
1000
|
V(u, { name: "setting" }),
|
|
1001
|
-
|
|
1001
|
+
J("系统设置")
|
|
1002
1002
|
]),
|
|
1003
|
-
default:
|
|
1004
|
-
|
|
1005
|
-
class:
|
|
1003
|
+
default: w(() => [
|
|
1004
|
+
Z("div", {
|
|
1005
|
+
class: z(`${m(X)}__setting-container`)
|
|
1006
1006
|
}, [
|
|
1007
|
-
|
|
1008
|
-
class:
|
|
1007
|
+
Z("div", {
|
|
1008
|
+
class: z(`${m(X)}__setting-container--title`)
|
|
1009
1009
|
}, "主题色", 2),
|
|
1010
1010
|
V(d, {
|
|
1011
1011
|
modelValue: m(a).brandTheme,
|
|
1012
1012
|
"onUpdate:modelValue": i[0] || (i[0] = (f) => m(a).brandTheme = f),
|
|
1013
1013
|
onChange: r
|
|
1014
1014
|
}, {
|
|
1015
|
-
default:
|
|
1016
|
-
(v(!0), q(ve, null, ye(o.slice(0, o.length - 1), (f,
|
|
1017
|
-
(v(),
|
|
1018
|
-
key:
|
|
1015
|
+
default: w(() => [
|
|
1016
|
+
(v(!0), q(ve, null, ye(o.slice(0, o.length - 1), (f, M) => (v(), q("div", { key: M }, [
|
|
1017
|
+
(v(), S(c, {
|
|
1018
|
+
key: M,
|
|
1019
1019
|
value: f,
|
|
1020
|
-
class:
|
|
1020
|
+
class: z(`${m(X)}__setting-container--color-group`)
|
|
1021
1021
|
}, {
|
|
1022
|
-
default:
|
|
1022
|
+
default: w(() => [
|
|
1023
1023
|
V(En, { value: f }, null, 8, ["value"])
|
|
1024
1024
|
]),
|
|
1025
1025
|
_: 2
|
|
@@ -1028,8 +1028,8 @@ const Bn = /* @__PURE__ */ J({
|
|
|
1028
1028
|
]),
|
|
1029
1029
|
_: 1
|
|
1030
1030
|
}, 8, ["modelValue"]),
|
|
1031
|
-
|
|
1032
|
-
class:
|
|
1031
|
+
Z("div", {
|
|
1032
|
+
class: z(`${m(X)}__setting-container--title`)
|
|
1033
1033
|
}, "主题模式", 2),
|
|
1034
1034
|
V(d, {
|
|
1035
1035
|
modelValue: m(a).displayMode,
|
|
@@ -1037,14 +1037,14 @@ const Bn = /* @__PURE__ */ J({
|
|
|
1037
1037
|
variant: "default-filled",
|
|
1038
1038
|
onChange: r
|
|
1039
1039
|
}, {
|
|
1040
|
-
default:
|
|
1041
|
-
(v(), q(ve, null, ye(n, (f,
|
|
1042
|
-
(v(),
|
|
1043
|
-
key:
|
|
1040
|
+
default: w(() => [
|
|
1041
|
+
(v(), q(ve, null, ye(n, (f, M) => Z("div", { key: M }, [
|
|
1042
|
+
(v(), S(c, {
|
|
1043
|
+
key: M,
|
|
1044
1044
|
value: f.type
|
|
1045
1045
|
}, {
|
|
1046
|
-
default:
|
|
1047
|
-
|
|
1046
|
+
default: w(() => [
|
|
1047
|
+
J(ge(f.text), 1)
|
|
1048
1048
|
]),
|
|
1049
1049
|
_: 2
|
|
1050
1050
|
}, 1032, ["value"]))
|
|
@@ -1052,8 +1052,8 @@ const Bn = /* @__PURE__ */ J({
|
|
|
1052
1052
|
]),
|
|
1053
1053
|
_: 1
|
|
1054
1054
|
}, 8, ["modelValue"]),
|
|
1055
|
-
|
|
1056
|
-
class:
|
|
1055
|
+
Z("div", {
|
|
1056
|
+
class: z(`${m(X)}__setting-container--title`)
|
|
1057
1057
|
}, "其他设置", 2)
|
|
1058
1058
|
], 2)
|
|
1059
1059
|
]),
|
|
@@ -1062,7 +1062,7 @@ const Bn = /* @__PURE__ */ J({
|
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
1064
|
});
|
|
1065
|
-
const Ln = /* @__PURE__ */
|
|
1065
|
+
const Ln = /* @__PURE__ */ Y({
|
|
1066
1066
|
__name: "GLayoutMain",
|
|
1067
1067
|
props: {
|
|
1068
1068
|
title: null
|
|
@@ -1071,21 +1071,21 @@ const Ln = /* @__PURE__ */ J({
|
|
|
1071
1071
|
return (t, o) => {
|
|
1072
1072
|
const n = F("t-card"), a = F("t-content"), l = F("t-layout");
|
|
1073
1073
|
return v(), q("div", {
|
|
1074
|
-
class:
|
|
1074
|
+
class: z(`${m(X)}__layout-main`)
|
|
1075
1075
|
}, [
|
|
1076
1076
|
V(l, null, {
|
|
1077
|
-
default:
|
|
1077
|
+
default: w(() => [
|
|
1078
1078
|
V(In),
|
|
1079
1079
|
V(a, null, {
|
|
1080
|
-
default:
|
|
1080
|
+
default: w(() => [
|
|
1081
1081
|
V(xn, null, {
|
|
1082
|
-
default:
|
|
1082
|
+
default: w(() => [
|
|
1083
1083
|
V(n, {
|
|
1084
|
-
class:
|
|
1084
|
+
class: z(`${m(X)}__card`),
|
|
1085
1085
|
bordered: !1,
|
|
1086
1086
|
title: e.title
|
|
1087
1087
|
}, {
|
|
1088
|
-
default:
|
|
1088
|
+
default: w(() => [
|
|
1089
1089
|
Be(t.$slots, "default")
|
|
1090
1090
|
]),
|
|
1091
1091
|
_: 3
|
|
@@ -1105,7 +1105,7 @@ const Ln = /* @__PURE__ */ J({
|
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
1107
|
});
|
|
1108
|
-
const Ao = /* @__PURE__ */
|
|
1108
|
+
const Ao = /* @__PURE__ */ Y({
|
|
1109
1109
|
__name: "index",
|
|
1110
1110
|
props: {
|
|
1111
1111
|
title: null
|
|
@@ -1114,8 +1114,8 @@ const Ao = /* @__PURE__ */ J({
|
|
|
1114
1114
|
const t = Le();
|
|
1115
1115
|
return et(() => {
|
|
1116
1116
|
t.loadLocalThemeConfig();
|
|
1117
|
-
}), (o, n) => (v(),
|
|
1118
|
-
default:
|
|
1117
|
+
}), (o, n) => (v(), S(Ln, { title: e.title }, {
|
|
1118
|
+
default: w(() => [
|
|
1119
1119
|
Be(o.$slots, "default")
|
|
1120
1120
|
]),
|
|
1121
1121
|
_: 3
|
|
@@ -1128,7 +1128,7 @@ function Qe(e, t, o) {
|
|
|
1128
1128
|
a.component(t || l || n.name, e), o && a.directive(o.name, o.comp);
|
|
1129
1129
|
}, n;
|
|
1130
1130
|
}
|
|
1131
|
-
const Dn = /* @__PURE__ */
|
|
1131
|
+
const Dn = /* @__PURE__ */ Y({
|
|
1132
1132
|
__name: "index",
|
|
1133
1133
|
props: {
|
|
1134
1134
|
commonDialogProps: null
|
|
@@ -1136,12 +1136,12 @@ const Dn = /* @__PURE__ */ J({
|
|
|
1136
1136
|
setup(e) {
|
|
1137
1137
|
return (t, o) => {
|
|
1138
1138
|
const n = F("t-dialog");
|
|
1139
|
-
return v(),
|
|
1139
|
+
return v(), S(n, zt({
|
|
1140
1140
|
class: `${m(X)}__common-dialog`
|
|
1141
1141
|
}, e.commonDialogProps), Tt({ _: 2 }, [
|
|
1142
1142
|
ye(t.$slots, (a, l) => ({
|
|
1143
1143
|
name: l,
|
|
1144
|
-
fn:
|
|
1144
|
+
fn: w((r) => [
|
|
1145
1145
|
Be(t.$slots, l, _o(Io({ ...r })))
|
|
1146
1146
|
])
|
|
1147
1147
|
}))
|
|
@@ -1149,29 +1149,29 @@ const Dn = /* @__PURE__ */ J({
|
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
1151
|
});
|
|
1152
|
-
const Eo = Qe(Dn), Bo = /* @__PURE__ */
|
|
1152
|
+
const Eo = Qe(Dn), Bo = /* @__PURE__ */ Y({
|
|
1153
1153
|
__name: "index",
|
|
1154
1154
|
props: {
|
|
1155
1155
|
commonFormProps: null
|
|
1156
1156
|
},
|
|
1157
1157
|
setup(e, { expose: t }) {
|
|
1158
|
-
|
|
1159
|
-
const o =
|
|
1158
|
+
$();
|
|
1159
|
+
const o = $();
|
|
1160
1160
|
return t({
|
|
1161
1161
|
tFormRef: o
|
|
1162
1162
|
}), (n, a) => {
|
|
1163
1163
|
const l = F("t-form");
|
|
1164
1164
|
return v(), q("div", {
|
|
1165
|
-
class:
|
|
1165
|
+
class: z(`${m(X)}__common-form`)
|
|
1166
1166
|
}, [
|
|
1167
1167
|
V(l, zt({
|
|
1168
1168
|
ref_key: "tFormRef",
|
|
1169
1169
|
ref: o,
|
|
1170
1170
|
class: `${m(X)}__common-form-main`
|
|
1171
1171
|
}, e.commonFormProps), {
|
|
1172
|
-
default:
|
|
1173
|
-
|
|
1174
|
-
class:
|
|
1172
|
+
default: w(() => [
|
|
1173
|
+
Z("div", {
|
|
1174
|
+
class: z(`${m(X)}__common-form-main--body`),
|
|
1175
1175
|
ref: "commonFormBodyRef"
|
|
1176
1176
|
}, [
|
|
1177
1177
|
Be(n.$slots, "body")
|
|
@@ -1179,8 +1179,8 @@ const Eo = Qe(Dn), Bo = /* @__PURE__ */ J({
|
|
|
1179
1179
|
]),
|
|
1180
1180
|
_: 3
|
|
1181
1181
|
}, 16, ["class"]),
|
|
1182
|
-
|
|
1183
|
-
class:
|
|
1182
|
+
Z("div", {
|
|
1183
|
+
class: z(`${m(X)}__common-form-footer`)
|
|
1184
1184
|
}, [
|
|
1185
1185
|
Be(n.$slots, "footer")
|
|
1186
1186
|
], 2)
|
|
@@ -1188,28 +1188,28 @@ const Eo = Qe(Dn), Bo = /* @__PURE__ */ J({
|
|
|
1188
1188
|
};
|
|
1189
1189
|
}
|
|
1190
1190
|
});
|
|
1191
|
-
const Fn = Qe(Bo), On = /* @__PURE__ */
|
|
1191
|
+
const Fn = Qe(Bo), On = /* @__PURE__ */ Y({
|
|
1192
1192
|
__name: "index",
|
|
1193
1193
|
setup(e) {
|
|
1194
1194
|
return (t, o) => {
|
|
1195
1195
|
const n = F("t-row");
|
|
1196
1196
|
return v(), q("div", {
|
|
1197
|
-
class:
|
|
1197
|
+
class: z(`${m(X)}__common-header`)
|
|
1198
1198
|
}, [
|
|
1199
1199
|
V(n, { justify: "space-between" }, {
|
|
1200
|
-
default:
|
|
1201
|
-
|
|
1202
|
-
class:
|
|
1200
|
+
default: w(() => [
|
|
1201
|
+
Z("div", {
|
|
1202
|
+
class: z(`${m(X)}__common-header--left`)
|
|
1203
1203
|
}, [
|
|
1204
1204
|
V(n, null, {
|
|
1205
|
-
default:
|
|
1205
|
+
default: w(() => [
|
|
1206
1206
|
Be(t.$slots, "left-operations")
|
|
1207
1207
|
]),
|
|
1208
1208
|
_: 3
|
|
1209
1209
|
})
|
|
1210
1210
|
], 2),
|
|
1211
|
-
|
|
1212
|
-
class:
|
|
1211
|
+
Z("div", {
|
|
1212
|
+
class: z(`${m(X)}__common-header--right`)
|
|
1213
1213
|
}, [
|
|
1214
1214
|
Be(t.$slots, "right-operations")
|
|
1215
1215
|
], 2)
|
|
@@ -1220,19 +1220,19 @@ const Fn = Qe(Bo), On = /* @__PURE__ */ J({
|
|
|
1220
1220
|
};
|
|
1221
1221
|
}
|
|
1222
1222
|
});
|
|
1223
|
-
const Lo = Qe(On), Un = /* @__PURE__ */
|
|
1223
|
+
const Lo = Qe(On), Un = /* @__PURE__ */ Y({
|
|
1224
1224
|
__name: "index",
|
|
1225
1225
|
props: {
|
|
1226
1226
|
commonTableProps: null
|
|
1227
1227
|
},
|
|
1228
1228
|
setup(e, { expose: t }) {
|
|
1229
|
-
const o =
|
|
1229
|
+
const o = $();
|
|
1230
1230
|
return t({
|
|
1231
1231
|
tTableRef: o
|
|
1232
1232
|
}), (n, a) => {
|
|
1233
1233
|
const l = F("t-enhanced-table");
|
|
1234
1234
|
return v(), q("div", {
|
|
1235
|
-
class:
|
|
1235
|
+
class: z(`${m(X)}__common-table`)
|
|
1236
1236
|
}, [
|
|
1237
1237
|
V(l, zt({
|
|
1238
1238
|
ref_key: "tTableRef",
|
|
@@ -1245,7 +1245,7 @@ const Lo = Qe(On), Un = /* @__PURE__ */ J({
|
|
|
1245
1245
|
}), Tt({ _: 2 }, [
|
|
1246
1246
|
ye(n.$slots, (r, s) => ({
|
|
1247
1247
|
name: s,
|
|
1248
|
-
fn:
|
|
1248
|
+
fn: w((i) => [
|
|
1249
1249
|
Be(n.$slots, s, _o(Io({ ...i })))
|
|
1250
1250
|
])
|
|
1251
1251
|
}))
|
|
@@ -1254,7 +1254,7 @@ const Lo = Qe(On), Un = /* @__PURE__ */ J({
|
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
1256
|
});
|
|
1257
|
-
const Do = Qe(Un), Rn = /* @__PURE__ */
|
|
1257
|
+
const Do = Qe(Un), Rn = /* @__PURE__ */ Y({
|
|
1258
1258
|
__name: "GHeaderUpload",
|
|
1259
1259
|
props: {
|
|
1260
1260
|
formItem: null,
|
|
@@ -1267,24 +1267,24 @@ const Do = Qe(Un), Rn = /* @__PURE__ */ J({
|
|
|
1267
1267
|
r.response, t("returnFileUrl");
|
|
1268
1268
|
}
|
|
1269
1269
|
function l(r) {
|
|
1270
|
-
|
|
1270
|
+
oe.error(`上传失败:${r}`);
|
|
1271
1271
|
}
|
|
1272
1272
|
return (r, s) => {
|
|
1273
1273
|
const i = F("t-icon"), u = F("t-button"), c = F("t-upload");
|
|
1274
|
-
return v(),
|
|
1274
|
+
return v(), S(c, {
|
|
1275
1275
|
action: m(n),
|
|
1276
1276
|
onSuccess: a,
|
|
1277
1277
|
onFail: l,
|
|
1278
1278
|
showUploadProgress: !1,
|
|
1279
1279
|
style: { padding: "0 8px 0 0" }
|
|
1280
1280
|
}, {
|
|
1281
|
-
default:
|
|
1281
|
+
default: w(() => [
|
|
1282
1282
|
V(u, null, {
|
|
1283
|
-
default:
|
|
1284
|
-
|
|
1283
|
+
default: w(() => [
|
|
1284
|
+
Z("template", null, [
|
|
1285
1285
|
V(i, { name: "upload" })
|
|
1286
1286
|
]),
|
|
1287
|
-
|
|
1287
|
+
J(" " + ge(e.formItem.name), 1)
|
|
1288
1288
|
]),
|
|
1289
1289
|
_: 1
|
|
1290
1290
|
})
|
|
@@ -1314,12 +1314,12 @@ function Qt(e, t) {
|
|
|
1314
1314
|
if (!Ne(t) && t.length) {
|
|
1315
1315
|
if (Object.keys(e).length)
|
|
1316
1316
|
return t.forEach((o) => {
|
|
1317
|
-
o.keyName && Po(
|
|
1317
|
+
o.keyName && Po(Q(e, o.keyName)) && (o.itemType === "check_box" || o.itemType === "switch") && qe(
|
|
1318
1318
|
e,
|
|
1319
1319
|
o.keyName,
|
|
1320
1320
|
Se(o.itemType)
|
|
1321
1321
|
);
|
|
1322
|
-
}),
|
|
1322
|
+
}), rt(e, {});
|
|
1323
1323
|
{
|
|
1324
1324
|
let o = {};
|
|
1325
1325
|
return t.forEach((n) => {
|
|
@@ -1328,7 +1328,7 @@ function Qt(e, t) {
|
|
|
1328
1328
|
n.keyName,
|
|
1329
1329
|
Se(n.itemType)
|
|
1330
1330
|
);
|
|
1331
|
-
}),
|
|
1331
|
+
}), rt(o, {});
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
@@ -1349,7 +1349,7 @@ function Fo(e) {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
return s(l, t);
|
|
1351
1351
|
}
|
|
1352
|
-
const kt = /* @__PURE__ */
|
|
1352
|
+
const kt = /* @__PURE__ */ Y({
|
|
1353
1353
|
__name: "GFormInput",
|
|
1354
1354
|
props: {
|
|
1355
1355
|
inputType: null,
|
|
@@ -1364,7 +1364,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1364
1364
|
const o = e, n = D(() => {
|
|
1365
1365
|
var i;
|
|
1366
1366
|
return (i = o.formItem) == null ? void 0 : i.itemType;
|
|
1367
|
-
}), a = D(() => o.inputType == "re_password" ? "password" : o.inputType), l =
|
|
1367
|
+
}), a = D(() => o.inputType == "re_password" ? "password" : o.inputType), l = $(o.modelValue);
|
|
1368
1368
|
we(
|
|
1369
1369
|
() => o.modelValue,
|
|
1370
1370
|
() => {
|
|
@@ -1385,7 +1385,7 @@ const kt = /* @__PURE__ */ J({
|
|
|
1385
1385
|
r(Se(n.value));
|
|
1386
1386
|
}), (i, u) => {
|
|
1387
1387
|
const c = F("t-input");
|
|
1388
|
-
return v(),
|
|
1388
|
+
return v(), S(c, {
|
|
1389
1389
|
modelValue: l.value,
|
|
1390
1390
|
"onUpdate:modelValue": u[0] || (u[0] = (d) => l.value = d),
|
|
1391
1391
|
type: m(a),
|
|
@@ -1411,7 +1411,7 @@ function Gn(e, t) {
|
|
|
1411
1411
|
let o = Kn(e, t);
|
|
1412
1412
|
return Function(o)();
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function Ht(e, t = {}) {
|
|
1415
1415
|
return Gn(e, t)(t);
|
|
1416
1416
|
}
|
|
1417
1417
|
function jn(e) {
|
|
@@ -1472,7 +1472,7 @@ function qn(e) {
|
|
|
1472
1472
|
32
|
|
1473
1473
|
)(e);
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function $n() {
|
|
1476
1476
|
const e = sessionStorage.getItem(so);
|
|
1477
1477
|
if ((e ?? "") != "")
|
|
1478
1478
|
return e;
|
|
@@ -1494,18 +1494,17 @@ vt.configure({
|
|
|
1494
1494
|
minimum: 0.1
|
|
1495
1495
|
// 初始化时的最小百分比
|
|
1496
1496
|
});
|
|
1497
|
-
class
|
|
1497
|
+
class zn {
|
|
1498
1498
|
constructor(t) {
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
this.sessionId = zn, this.service = fn.create(t), this.router = null, this.service.interceptors.request.use(
|
|
1499
|
+
dt(this, "sessionId");
|
|
1500
|
+
dt(this, "service");
|
|
1501
|
+
this.sessionId = $n, this.service = fn.create(t), this.service.interceptors.request.use(
|
|
1503
1502
|
(o) => {
|
|
1504
1503
|
var l, r, s;
|
|
1505
|
-
const n = ((l = JSON.parse(localStorage.getItem(
|
|
1504
|
+
const n = ((l = JSON.parse(localStorage.getItem(it))) == null ? void 0 : l.userToken) || {
|
|
1506
1505
|
token: "",
|
|
1507
1506
|
tokenExpiredTime: ""
|
|
1508
|
-
}, a = ((s = (r = JSON.parse(localStorage.getItem(
|
|
1507
|
+
}, a = ((s = (r = JSON.parse(localStorage.getItem(it))) == null ? void 0 : r.userInfo) == null ? void 0 : s.language) || "zh-CN";
|
|
1509
1508
|
if (n) {
|
|
1510
1509
|
const { token: i, tokenExpiredTime: u } = n;
|
|
1511
1510
|
o.headers = {
|
|
@@ -1540,12 +1539,8 @@ class $n {
|
|
|
1540
1539
|
delete(t, o, n = {}) {
|
|
1541
1540
|
return this.service.delete(`${t}?sessionId=${this.sessionId()}`, { params: o, ...n });
|
|
1542
1541
|
}
|
|
1543
|
-
// 载入用户 router
|
|
1544
|
-
initRouter(t) {
|
|
1545
|
-
this.router = t;
|
|
1546
|
-
}
|
|
1547
1542
|
}
|
|
1548
|
-
const
|
|
1543
|
+
const ut = new zn(Hn), Vt = {
|
|
1549
1544
|
// 视图 - 获取所有视图 GET
|
|
1550
1545
|
getAllView: "/restapi/s09/gview/boards/all",
|
|
1551
1546
|
// 视图 - 获取一个视图 GET
|
|
@@ -1560,9 +1555,9 @@ const ct = new $n(Hn), St = {
|
|
|
1560
1555
|
confirm: "/restapi/s09/gview/active/confirm",
|
|
1561
1556
|
// 触发 - 触发批量操作事件 POST
|
|
1562
1557
|
batch: "/restapi/s09/gview/active/batch"
|
|
1563
|
-
}, Oo = (e) =>
|
|
1558
|
+
}, Oo = (e) => ut.get(Vt.getOneView, e), Mt = (e) => ut.post(Vt.getBoardData, e), Xn = (e) => ut.post(Vt.confirm, e), Zn = (e) => ut.post(Vt.batch, e);
|
|
1564
1559
|
async function Qn(e, t, o, n) {
|
|
1565
|
-
const a = await
|
|
1560
|
+
const a = await Mt({
|
|
1566
1561
|
viewName: t,
|
|
1567
1562
|
dataId: o,
|
|
1568
1563
|
props: n
|
|
@@ -1579,10 +1574,10 @@ async function Qn(e, t, o, n) {
|
|
|
1579
1574
|
parentKeyName: e == null ? void 0 : e.parentKeyName
|
|
1580
1575
|
});
|
|
1581
1576
|
} else
|
|
1582
|
-
|
|
1577
|
+
oe.error(`获取数据失败:${a.message}`);
|
|
1583
1578
|
}
|
|
1584
1579
|
async function Jn(e, t, o, n) {
|
|
1585
|
-
const a = await
|
|
1580
|
+
const a = await Mt({
|
|
1586
1581
|
viewName: t,
|
|
1587
1582
|
dataId: o,
|
|
1588
1583
|
props: n
|
|
@@ -1599,10 +1594,10 @@ async function Jn(e, t, o, n) {
|
|
|
1599
1594
|
parentKeyName: e == null ? void 0 : e.parentKeyName
|
|
1600
1595
|
});
|
|
1601
1596
|
} else
|
|
1602
|
-
|
|
1597
|
+
oe.error(`获取数据失败:${a.message}`);
|
|
1603
1598
|
}
|
|
1604
1599
|
async function Yn(e, t, o, n) {
|
|
1605
|
-
const a = await
|
|
1600
|
+
const a = await Mt({
|
|
1606
1601
|
viewName: t,
|
|
1607
1602
|
dataId: o,
|
|
1608
1603
|
props: n
|
|
@@ -1620,10 +1615,10 @@ async function Yn(e, t, o, n) {
|
|
|
1620
1615
|
}), r;
|
|
1621
1616
|
}
|
|
1622
1617
|
} else
|
|
1623
|
-
|
|
1618
|
+
oe.error(`获取数据失败:${a.message}`);
|
|
1624
1619
|
}
|
|
1625
|
-
function
|
|
1626
|
-
const t =
|
|
1620
|
+
function Pt(e) {
|
|
1621
|
+
const t = $([]), o = tt(), n = D(() => {
|
|
1627
1622
|
var l;
|
|
1628
1623
|
return Ne((l = o.query) == null ? void 0 : l.props) ? {} : JSON.parse(o.query.props);
|
|
1629
1624
|
}), a = D(() => {
|
|
@@ -1670,7 +1665,7 @@ function Mt(e) {
|
|
|
1670
1665
|
options: t
|
|
1671
1666
|
};
|
|
1672
1667
|
}
|
|
1673
|
-
const Jt = /* @__PURE__ */
|
|
1668
|
+
const Jt = /* @__PURE__ */ Y({
|
|
1674
1669
|
__name: "GFormSelect",
|
|
1675
1670
|
props: {
|
|
1676
1671
|
modelValue: null,
|
|
@@ -1691,12 +1686,12 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1691
1686
|
}), l = D(() => {
|
|
1692
1687
|
var c;
|
|
1693
1688
|
return (c = o.formItem) == null ? void 0 : c.listData.dataId;
|
|
1694
|
-
}), { options: r } =
|
|
1689
|
+
}), { options: r } = Pt({
|
|
1695
1690
|
itemType: n.value,
|
|
1696
1691
|
viewName: o.viewName,
|
|
1697
1692
|
listData: a.value,
|
|
1698
1693
|
dataId: l.value
|
|
1699
|
-
}), s =
|
|
1694
|
+
}), s = $(o.modelValue);
|
|
1700
1695
|
we(
|
|
1701
1696
|
() => o.modelValue,
|
|
1702
1697
|
() => {
|
|
@@ -1723,9 +1718,9 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1723
1718
|
}), (c, d) => {
|
|
1724
1719
|
var f;
|
|
1725
1720
|
const b = F("t-select");
|
|
1726
|
-
return v(),
|
|
1721
|
+
return v(), S(b, {
|
|
1727
1722
|
modelValue: s.value,
|
|
1728
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1723
|
+
"onUpdate:modelValue": d[0] || (d[0] = (M) => s.value = M),
|
|
1729
1724
|
placeholder: `请选择${(f = e.formItem) == null ? void 0 : f.name}`,
|
|
1730
1725
|
options: m(r),
|
|
1731
1726
|
multiple: e.multiple,
|
|
@@ -1737,7 +1732,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1737
1732
|
}, null, 8, ["modelValue", "placeholder", "options", "multiple", "disabled"]);
|
|
1738
1733
|
};
|
|
1739
1734
|
}
|
|
1740
|
-
}), Yt = /* @__PURE__ */
|
|
1735
|
+
}), Yt = /* @__PURE__ */ Y({
|
|
1741
1736
|
__name: "GFormSelectDateTime",
|
|
1742
1737
|
props: {
|
|
1743
1738
|
modelValue: null,
|
|
@@ -1754,11 +1749,11 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1754
1749
|
}), a = D({
|
|
1755
1750
|
get() {
|
|
1756
1751
|
var s;
|
|
1757
|
-
return o.modelValue == 0 ? "" : o.modelValue && ((s = o.formItem) == null ? void 0 : s.itemType) == "time_selector" ?
|
|
1752
|
+
return o.modelValue == 0 ? "" : o.modelValue && ((s = o.formItem) == null ? void 0 : s.itemType) == "time_selector" ? Wt(o.modelValue).format("HH:mm:ss") : o.modelValue;
|
|
1758
1753
|
},
|
|
1759
1754
|
set(s) {
|
|
1760
1755
|
var i;
|
|
1761
|
-
t("update:modelValue", s), ((i = o.formItem) == null ? void 0 : i.itemType) == "time_selector" && t("update:modelValue",
|
|
1756
|
+
t("update:modelValue", s), ((i = o.formItem) == null ? void 0 : i.itemType) == "time_selector" && t("update:modelValue", Wt(s, "HH:mm:ss").valueOf());
|
|
1762
1757
|
}
|
|
1763
1758
|
});
|
|
1764
1759
|
function l(s) {
|
|
@@ -1773,13 +1768,13 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1773
1768
|
o.disabled && t("update:modelValue", Se(n.value));
|
|
1774
1769
|
}
|
|
1775
1770
|
), (s, i) => {
|
|
1776
|
-
var d, b, f,
|
|
1771
|
+
var d, b, f, M, E, T, h;
|
|
1777
1772
|
const u = F("t-date-picker"), c = F("t-time-picker");
|
|
1778
1773
|
return v(), q(ve, null, [
|
|
1779
|
-
((d = e.formItem) == null ? void 0 : d.itemType) === "date_selector" || ((b = e.formItem) == null ? void 0 : b.itemType) === "date_time_selector" ? (v(),
|
|
1774
|
+
((d = e.formItem) == null ? void 0 : d.itemType) === "date_selector" || ((b = e.formItem) == null ? void 0 : b.itemType) === "date_time_selector" ? (v(), S(u, {
|
|
1780
1775
|
key: 0,
|
|
1781
1776
|
"enable-time-picker": ((f = e.formItem) == null ? void 0 : f.itemType) === "date_time_selector",
|
|
1782
|
-
placeholder: (
|
|
1777
|
+
placeholder: (M = e.formItem) == null ? void 0 : M.placeholder,
|
|
1783
1778
|
modelValue: m(a),
|
|
1784
1779
|
"onUpdate:modelValue": i[0] || (i[0] = (y) => bt(a) ? a.value = y : null),
|
|
1785
1780
|
format: e.formItem.format || "YYYY-MM-DD HH:mm:ss",
|
|
@@ -1788,21 +1783,21 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1788
1783
|
clearable: !0,
|
|
1789
1784
|
onChange: l,
|
|
1790
1785
|
onBlur: r
|
|
1791
|
-
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) :
|
|
1792
|
-
((E = e.formItem) == null ? void 0 : E.itemType) === "time_selector" ? (v(),
|
|
1786
|
+
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : W("", !0),
|
|
1787
|
+
((E = e.formItem) == null ? void 0 : E.itemType) === "time_selector" ? (v(), S(c, {
|
|
1793
1788
|
key: 1,
|
|
1794
|
-
placeholder: (
|
|
1789
|
+
placeholder: (T = e.formItem) == null ? void 0 : T.placeholder,
|
|
1795
1790
|
modelValue: m(a),
|
|
1796
1791
|
"onUpdate:modelValue": i[1] || (i[1] = (y) => bt(a) ? a.value = y : null),
|
|
1797
1792
|
onChange: l,
|
|
1798
1793
|
onBlur: r,
|
|
1799
1794
|
format: ((h = e.formItem) == null ? void 0 : h.format) || "HH:mm:ss",
|
|
1800
1795
|
clearable: ""
|
|
1801
|
-
}, null, 8, ["placeholder", "modelValue", "format"])) :
|
|
1796
|
+
}, null, 8, ["placeholder", "modelValue", "format"])) : W("", !0)
|
|
1802
1797
|
], 64);
|
|
1803
1798
|
};
|
|
1804
1799
|
}
|
|
1805
|
-
}), ea = { key: 0 }, ta = { key: 1 }, oa = { key: 2 }, na = /* @__PURE__ */
|
|
1800
|
+
}), ea = { key: 0 }, ta = { key: 1 }, oa = { key: 2 }, na = /* @__PURE__ */ Y({
|
|
1806
1801
|
__name: "index",
|
|
1807
1802
|
props: {
|
|
1808
1803
|
viewName: null,
|
|
@@ -1835,57 +1830,57 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1835
1830
|
}), t("header-filter-change", s.value);
|
|
1836
1831
|
}, 500);
|
|
1837
1832
|
}
|
|
1838
|
-
let u =
|
|
1833
|
+
let u = $(0);
|
|
1839
1834
|
return (c, d) => {
|
|
1840
1835
|
const b = F("t-button");
|
|
1841
|
-
return v(),
|
|
1842
|
-
"left-operations":
|
|
1843
|
-
m(Ne)(m(a)) ?
|
|
1836
|
+
return v(), S(m(Lo), null, Tt({
|
|
1837
|
+
"left-operations": w(() => [
|
|
1838
|
+
m(Ne)(m(a)) ? W("", !0) : (v(!0), q(ve, { key: 0 }, ye(m(a), (f) => (v(), S(Rn, {
|
|
1844
1839
|
key: f.buttonId,
|
|
1845
1840
|
formItem: f,
|
|
1846
1841
|
viewName: e.viewName
|
|
1847
1842
|
}, null, 8, ["formItem", "viewName"]))), 128)),
|
|
1848
|
-
m(n) ? (v(!0), q(ve, { key: 1 }, ye(m(n), (f) => (v(),
|
|
1843
|
+
m(n) ? (v(!0), q(ve, { key: 1 }, ye(m(n), (f) => (v(), S(b, {
|
|
1849
1844
|
key: f.buttonId,
|
|
1850
1845
|
theme: "primary",
|
|
1851
|
-
onClick: (
|
|
1846
|
+
onClick: (M) => l(f)
|
|
1852
1847
|
}, {
|
|
1853
|
-
default:
|
|
1854
|
-
|
|
1848
|
+
default: w(() => [
|
|
1849
|
+
J(ge(f.name), 1)
|
|
1855
1850
|
]),
|
|
1856
1851
|
_: 2
|
|
1857
|
-
}, 1032, ["onClick"]))), 128)) :
|
|
1852
|
+
}, 1032, ["onClick"]))), 128)) : W("", !0)
|
|
1858
1853
|
]),
|
|
1859
1854
|
_: 2
|
|
1860
1855
|
}, [
|
|
1861
1856
|
m(r) ? {
|
|
1862
1857
|
name: "right-operations",
|
|
1863
|
-
fn:
|
|
1864
|
-
(v(!0), q(ve, null, ye(m(r), (f,
|
|
1858
|
+
fn: w(() => [
|
|
1859
|
+
(v(!0), q(ve, null, ye(m(r), (f, M) => (v(), q("div", { key: M }, [
|
|
1865
1860
|
f.itemType === "text_input" ? (v(), q("div", ea, [
|
|
1866
1861
|
V(kt, {
|
|
1867
1862
|
formItem: f,
|
|
1868
|
-
modelValue: m(
|
|
1863
|
+
modelValue: m(Q)(m(s), f.keyName),
|
|
1869
1864
|
placeholder: f.placeholder,
|
|
1870
1865
|
"onUpdate:modelValue": (E) => f.keyName && i(f.keyName, E)
|
|
1871
1866
|
}, null, 8, ["formItem", "modelValue", "placeholder", "onUpdate:modelValue"])
|
|
1872
|
-
])) :
|
|
1867
|
+
])) : W("", !0),
|
|
1873
1868
|
f.itemType === "selector" ? (v(), q("div", ta, [
|
|
1874
1869
|
V(Jt, {
|
|
1875
|
-
modelValue: m(
|
|
1870
|
+
modelValue: m(Q)(m(s), f.keyName),
|
|
1876
1871
|
formItem: f,
|
|
1877
1872
|
viewName: e.viewName,
|
|
1878
1873
|
"onUpdate:modelValue": (E) => f.keyName && i(f.keyName, E)
|
|
1879
1874
|
}, null, 8, ["modelValue", "formItem", "viewName", "onUpdate:modelValue"])
|
|
1880
|
-
])) :
|
|
1875
|
+
])) : W("", !0),
|
|
1881
1876
|
f.itemType === "date_selector" || f.itemType === "time_selector" || f.itemType === "date_time_selector" ? (v(), q("div", oa, [
|
|
1882
1877
|
V(Yt, {
|
|
1883
|
-
modelValue: m(
|
|
1878
|
+
modelValue: m(Q)(m(s), f.keyName),
|
|
1884
1879
|
formItem: f,
|
|
1885
1880
|
viewName: e.viewName,
|
|
1886
1881
|
"onUpdate:modelValue": (E) => f.keyName && i(f.keyName, E)
|
|
1887
1882
|
}, null, 8, ["modelValue", "formItem", "viewName", "onUpdate:modelValue"])
|
|
1888
|
-
])) :
|
|
1883
|
+
])) : W("", !0)
|
|
1889
1884
|
]))), 128))
|
|
1890
1885
|
]),
|
|
1891
1886
|
key: "0"
|
|
@@ -1893,7 +1888,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1893
1888
|
]), 1024);
|
|
1894
1889
|
};
|
|
1895
1890
|
}
|
|
1896
|
-
}), Uo = /* @__PURE__ */
|
|
1891
|
+
}), Uo = /* @__PURE__ */ Y({
|
|
1897
1892
|
__name: "GFormLabel",
|
|
1898
1893
|
props: {
|
|
1899
1894
|
modelValue: null
|
|
@@ -1901,15 +1896,15 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1901
1896
|
setup(e) {
|
|
1902
1897
|
return (t, o) => {
|
|
1903
1898
|
const n = F("t-tag");
|
|
1904
|
-
return v(),
|
|
1905
|
-
default:
|
|
1906
|
-
|
|
1899
|
+
return v(), S(n, null, {
|
|
1900
|
+
default: w(() => [
|
|
1901
|
+
J(ge(e.modelValue), 1)
|
|
1907
1902
|
]),
|
|
1908
1903
|
_: 1
|
|
1909
1904
|
});
|
|
1910
1905
|
};
|
|
1911
1906
|
}
|
|
1912
|
-
}), Ro = /* @__PURE__ */
|
|
1907
|
+
}), Ro = /* @__PURE__ */ Y({
|
|
1913
1908
|
__name: "GFormCheckbox",
|
|
1914
1909
|
props: {
|
|
1915
1910
|
modelValue: null,
|
|
@@ -1918,7 +1913,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1918
1913
|
},
|
|
1919
1914
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
1920
1915
|
setup(e, { emit: t }) {
|
|
1921
|
-
const o = e, n =
|
|
1916
|
+
const o = e, n = $(o.modelValue);
|
|
1922
1917
|
we(
|
|
1923
1918
|
() => o.modelValue,
|
|
1924
1919
|
() => {
|
|
@@ -1934,14 +1929,14 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1934
1929
|
}
|
|
1935
1930
|
return (l, r) => {
|
|
1936
1931
|
const s = F("t-checkbox");
|
|
1937
|
-
return v(),
|
|
1932
|
+
return v(), S(s, {
|
|
1938
1933
|
modelValue: n.value,
|
|
1939
1934
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => n.value = i),
|
|
1940
1935
|
onChange: a
|
|
1941
1936
|
}, null, 8, ["modelValue"]);
|
|
1942
1937
|
};
|
|
1943
1938
|
}
|
|
1944
|
-
}), Ko = /* @__PURE__ */
|
|
1939
|
+
}), Ko = /* @__PURE__ */ Y({
|
|
1945
1940
|
__name: "GFormSwitch",
|
|
1946
1941
|
props: {
|
|
1947
1942
|
modelValue: null,
|
|
@@ -1955,7 +1950,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1955
1950
|
const o = e, n = D(() => {
|
|
1956
1951
|
var r;
|
|
1957
1952
|
return (r = o.formItem) == null ? void 0 : r.itemType;
|
|
1958
|
-
}), a =
|
|
1953
|
+
}), a = $(o.modelValue);
|
|
1959
1954
|
we(
|
|
1960
1955
|
() => o.modelValue,
|
|
1961
1956
|
() => {
|
|
@@ -1974,7 +1969,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1974
1969
|
t("update:modelValue", Se(n.value));
|
|
1975
1970
|
}), (r, s) => {
|
|
1976
1971
|
const i = F("t-switch");
|
|
1977
|
-
return v(),
|
|
1972
|
+
return v(), S(i, {
|
|
1978
1973
|
modelValue: a.value,
|
|
1979
1974
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
|
|
1980
1975
|
onChange: l,
|
|
@@ -1982,7 +1977,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
1982
1977
|
}, null, 8, ["modelValue", "disabled"]);
|
|
1983
1978
|
};
|
|
1984
1979
|
}
|
|
1985
|
-
}), Go = /* @__PURE__ */
|
|
1980
|
+
}), Go = /* @__PURE__ */ Y({
|
|
1986
1981
|
__name: "GFormRadio",
|
|
1987
1982
|
props: {
|
|
1988
1983
|
modelValue: null,
|
|
@@ -2002,12 +1997,12 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2002
1997
|
}), l = D(() => {
|
|
2003
1998
|
var u;
|
|
2004
1999
|
return (u = o.formItem) == null ? void 0 : u.listData.dataId;
|
|
2005
|
-
}), { options: r } =
|
|
2000
|
+
}), { options: r } = Pt({
|
|
2006
2001
|
itemType: n.value,
|
|
2007
2002
|
viewName: o.viewName,
|
|
2008
2003
|
listData: a.value,
|
|
2009
2004
|
dataId: l.value
|
|
2010
|
-
}), s =
|
|
2005
|
+
}), s = $(o.modelValue);
|
|
2011
2006
|
we(
|
|
2012
2007
|
() => o.modelValue,
|
|
2013
2008
|
() => {
|
|
@@ -2030,19 +2025,19 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2030
2025
|
t("update:modelValue", Se(n.value));
|
|
2031
2026
|
}), (u, c) => {
|
|
2032
2027
|
const d = F("t-radio"), b = F("t-radio-group");
|
|
2033
|
-
return v(),
|
|
2028
|
+
return v(), S(b, {
|
|
2034
2029
|
modelValue: s.value,
|
|
2035
2030
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => s.value = f),
|
|
2036
2031
|
onChange: i,
|
|
2037
2032
|
disabled: e.disabled
|
|
2038
2033
|
}, {
|
|
2039
|
-
default:
|
|
2040
|
-
(v(!0), q(ve, null, ye(m(r), (f) => (v(),
|
|
2034
|
+
default: w(() => [
|
|
2035
|
+
(v(!0), q(ve, null, ye(m(r), (f) => (v(), S(d, {
|
|
2041
2036
|
key: f.key,
|
|
2042
2037
|
value: f.value
|
|
2043
2038
|
}, {
|
|
2044
|
-
default:
|
|
2045
|
-
|
|
2039
|
+
default: w(() => [
|
|
2040
|
+
J(ge(f.label), 1)
|
|
2046
2041
|
]),
|
|
2047
2042
|
_: 2
|
|
2048
2043
|
}, 1032, ["value"]))), 128))
|
|
@@ -2051,7 +2046,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2051
2046
|
}, 8, ["modelValue", "disabled"]);
|
|
2052
2047
|
};
|
|
2053
2048
|
}
|
|
2054
|
-
}), jo = /* @__PURE__ */
|
|
2049
|
+
}), jo = /* @__PURE__ */ Y({
|
|
2055
2050
|
__name: "GFormTreeCheckbox",
|
|
2056
2051
|
props: {
|
|
2057
2052
|
modelValue: null,
|
|
@@ -2063,7 +2058,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2063
2058
|
},
|
|
2064
2059
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
2065
2060
|
setup(e, { emit: t }) {
|
|
2066
|
-
const o = e, n =
|
|
2061
|
+
const o = e, n = $(o.modelValue);
|
|
2067
2062
|
we(
|
|
2068
2063
|
() => o.modelValue,
|
|
2069
2064
|
() => {
|
|
@@ -2083,7 +2078,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2083
2078
|
}), r = D(() => {
|
|
2084
2079
|
var c;
|
|
2085
2080
|
return (c = o.formItem) == null ? void 0 : c.treeData.dataId;
|
|
2086
|
-
}), { options: s } =
|
|
2081
|
+
}), { options: s } = Pt({
|
|
2087
2082
|
itemType: a.value,
|
|
2088
2083
|
viewName: o.viewName,
|
|
2089
2084
|
treeData: l.value,
|
|
@@ -2105,9 +2100,9 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2105
2100
|
}), (c, d) => {
|
|
2106
2101
|
var f;
|
|
2107
2102
|
const b = F("t-tree-select");
|
|
2108
|
-
return v(),
|
|
2103
|
+
return v(), S(b, {
|
|
2109
2104
|
modelValue: n.value,
|
|
2110
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2105
|
+
"onUpdate:modelValue": d[0] || (d[0] = (M) => n.value = M),
|
|
2111
2106
|
data: m(s),
|
|
2112
2107
|
placeholder: (f = e.formItem) == null ? void 0 : f.placeholder,
|
|
2113
2108
|
multiple: e.multiple,
|
|
@@ -2120,7 +2115,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2120
2115
|
}, null, 8, ["modelValue", "data", "placeholder", "multiple", "disabled"]);
|
|
2121
2116
|
};
|
|
2122
2117
|
}
|
|
2123
|
-
}), Wo = /* @__PURE__ */
|
|
2118
|
+
}), Wo = /* @__PURE__ */ Y({
|
|
2124
2119
|
__name: "GFormCascader",
|
|
2125
2120
|
props: {
|
|
2126
2121
|
modelValue: null,
|
|
@@ -2141,12 +2136,12 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2141
2136
|
}), l = D(() => {
|
|
2142
2137
|
var c;
|
|
2143
2138
|
return (c = o.formItem) == null ? void 0 : c.treeData.dataId;
|
|
2144
|
-
}), { options: r } =
|
|
2139
|
+
}), { options: r } = Pt({
|
|
2145
2140
|
itemType: n.value,
|
|
2146
2141
|
viewName: o.viewName,
|
|
2147
2142
|
treeData: a.value,
|
|
2148
2143
|
dataId: l.value
|
|
2149
|
-
}), s =
|
|
2144
|
+
}), s = $(o.modelValue);
|
|
2150
2145
|
we(
|
|
2151
2146
|
() => o.modelValue,
|
|
2152
2147
|
() => {
|
|
@@ -2172,7 +2167,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2172
2167
|
i(Se(n.value));
|
|
2173
2168
|
}), (c, d) => {
|
|
2174
2169
|
const b = F("t-cascader");
|
|
2175
|
-
return v(),
|
|
2170
|
+
return v(), S(b, {
|
|
2176
2171
|
modelValue: s.value,
|
|
2177
2172
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => s.value = f),
|
|
2178
2173
|
options: m(r),
|
|
@@ -2185,7 +2180,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2185
2180
|
}, null, 8, ["modelValue", "options", "multiple", "disabled"]);
|
|
2186
2181
|
};
|
|
2187
2182
|
}
|
|
2188
|
-
}), Ho = /* @__PURE__ */
|
|
2183
|
+
}), Ho = /* @__PURE__ */ Y({
|
|
2189
2184
|
__name: "GFormUpload",
|
|
2190
2185
|
props: {
|
|
2191
2186
|
modelValue: null,
|
|
@@ -2200,19 +2195,19 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2200
2195
|
function r(u) {
|
|
2201
2196
|
if (u.length) {
|
|
2202
2197
|
const { name: c, response: d } = u[0];
|
|
2203
|
-
d.data.length ? (t("update:modelValue", d.data[0]), t("blur:modelValue", d.data[0]), t("update:fileName", c),
|
|
2198
|
+
d.data.length ? (t("update:modelValue", d.data[0]), t("blur:modelValue", d.data[0]), t("update:fileName", c), oe.success("上传成功")) : (oe.success(`上传失败 ${d == null ? void 0 : d.message}`), t("update:fileName", ""), t("update:modelValue", ""), t("blur:modelValue", ""));
|
|
2204
2199
|
}
|
|
2205
2200
|
}
|
|
2206
2201
|
function s(u) {
|
|
2207
2202
|
t("update:fileName", ""), t("update:modelValue", ""), t("blur:modelValue", "");
|
|
2208
2203
|
}
|
|
2209
2204
|
function i(u) {
|
|
2210
|
-
|
|
2205
|
+
oe.error(`上传失败:${u}`);
|
|
2211
2206
|
}
|
|
2212
2207
|
return (u, c) => {
|
|
2213
|
-
var b, f,
|
|
2208
|
+
var b, f, M;
|
|
2214
2209
|
const d = F("t-upload");
|
|
2215
|
-
return v(),
|
|
2210
|
+
return v(), S(d, {
|
|
2216
2211
|
ref: "uploadRef",
|
|
2217
2212
|
theme: "file",
|
|
2218
2213
|
files: m(n),
|
|
@@ -2220,7 +2215,7 @@ const Jt = /* @__PURE__ */ J({
|
|
|
2220
2215
|
action: m(l),
|
|
2221
2216
|
accept: (b = e.formItem) == null ? void 0 : b.accept,
|
|
2222
2217
|
max: (f = e.formItem) == null ? void 0 : f.limit,
|
|
2223
|
-
size: (
|
|
2218
|
+
size: (M = e.formItem) == null ? void 0 : M.maxSize,
|
|
2224
2219
|
disabled: e.disabled,
|
|
2225
2220
|
"is-batch-upload": !0,
|
|
2226
2221
|
onRemove: s,
|
|
@@ -2235,7 +2230,7 @@ function qo(e = {}) {
|
|
|
2235
2230
|
if (!wt(n) && n !== 1) {
|
|
2236
2231
|
let l, r;
|
|
2237
2232
|
try {
|
|
2238
|
-
return l =
|
|
2233
|
+
return l = ze.render(n, { form: e.formModel.value }), r = Ht(l, { form: e.formModel.value }), r;
|
|
2239
2234
|
} catch (s) {
|
|
2240
2235
|
console.error(n, s.message);
|
|
2241
2236
|
}
|
|
@@ -2246,7 +2241,7 @@ function qo(e = {}) {
|
|
|
2246
2241
|
if (!wt(n) && n !== 0) {
|
|
2247
2242
|
let l, r;
|
|
2248
2243
|
try {
|
|
2249
|
-
l =
|
|
2244
|
+
l = ze.render(n, { form: e.formModel.value }), r = Ht(l, { form: e.formModel.value });
|
|
2250
2245
|
} catch (s) {
|
|
2251
2246
|
console.error(n, s.message);
|
|
2252
2247
|
}
|
|
@@ -2259,7 +2254,7 @@ function qo(e = {}) {
|
|
|
2259
2254
|
handleItemDisableIf: o
|
|
2260
2255
|
};
|
|
2261
2256
|
}
|
|
2262
|
-
const aa = ["id"], la = /* @__PURE__ */
|
|
2257
|
+
const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
2263
2258
|
__name: "GFormItem",
|
|
2264
2259
|
props: {
|
|
2265
2260
|
formItem: null,
|
|
@@ -2272,7 +2267,7 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2272
2267
|
function s(b, f) {
|
|
2273
2268
|
o("after-update-value", b, f);
|
|
2274
2269
|
}
|
|
2275
|
-
const i = D(() => n.formItem.disableIf ? r(n.formItem.disableIf, n.formItem) : !1), u =
|
|
2270
|
+
const i = D(() => n.formItem.disableIf ? r(n.formItem.disableIf, n.formItem) : !1), u = $(!0);
|
|
2276
2271
|
function c() {
|
|
2277
2272
|
return i.value;
|
|
2278
2273
|
}
|
|
@@ -2284,21 +2279,21 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2284
2279
|
getDisableFlag: c,
|
|
2285
2280
|
setBlockShowFlag: d
|
|
2286
2281
|
}), (b, f) => {
|
|
2287
|
-
const
|
|
2282
|
+
const M = F("t-divider"), E = F("t-form-item");
|
|
2288
2283
|
return v(), q("div", {
|
|
2289
|
-
class:
|
|
2284
|
+
class: z(`${m(X)}__form-item`),
|
|
2290
2285
|
id: e.formItem.keyName ? e.formItem.keyName : e.formItem.name
|
|
2291
2286
|
}, [
|
|
2292
2287
|
u.value ? (v(), q(ve, { key: 0 }, [
|
|
2293
|
-
e.formItem.itemType === "line" && e.formItem.name && m(l)(e.formItem.showIf, e.formItem) ? (v(),
|
|
2288
|
+
e.formItem.itemType === "line" && e.formItem.name && m(l)(e.formItem.showIf, e.formItem) ? (v(), S(M, {
|
|
2294
2289
|
key: 0,
|
|
2295
2290
|
align: "left"
|
|
2296
2291
|
}, {
|
|
2297
|
-
default:
|
|
2298
|
-
|
|
2292
|
+
default: w(() => [
|
|
2293
|
+
J(ge(e.formItem.name), 1)
|
|
2299
2294
|
]),
|
|
2300
2295
|
_: 1
|
|
2301
|
-
})) : e.formItem.itemType !== "hidden" && m(l)(e.formItem.showIf, e.formItem) ? (v(),
|
|
2296
|
+
})) : e.formItem.itemType !== "hidden" && m(l)(e.formItem.showIf, e.formItem) ? (v(), S(E, {
|
|
2302
2297
|
key: 1,
|
|
2303
2298
|
ref: `item_${e.formItem.keyName}`,
|
|
2304
2299
|
id: e.formItem.keyName,
|
|
@@ -2306,106 +2301,106 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2306
2301
|
label: e.formItem.name,
|
|
2307
2302
|
name: e.formItem.inputType != "RE_PASSWORD" ? e.formItem.keyName : "rePassword"
|
|
2308
2303
|
}, {
|
|
2309
|
-
default:
|
|
2310
|
-
var
|
|
2304
|
+
default: w(() => {
|
|
2305
|
+
var T, h, y;
|
|
2311
2306
|
return [
|
|
2312
|
-
e.formItem.itemType === "label" ? (v(),
|
|
2307
|
+
e.formItem.itemType === "label" ? (v(), S(Uo, {
|
|
2313
2308
|
key: 0,
|
|
2314
|
-
modelValue: m(
|
|
2315
|
-
}, null, 8, ["modelValue"])) :
|
|
2316
|
-
e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (v(),
|
|
2309
|
+
modelValue: m(Q)(m(a), e.formItem.keyName)
|
|
2310
|
+
}, null, 8, ["modelValue"])) : W("", !0),
|
|
2311
|
+
e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (v(), S(kt, {
|
|
2317
2312
|
key: 1,
|
|
2318
2313
|
formItem: e.formItem,
|
|
2319
|
-
inputType: (h = (
|
|
2320
|
-
modelValue: m(
|
|
2314
|
+
inputType: (h = (T = e.formItem) == null ? void 0 : T.inputType) == null ? void 0 : h.toLowerCase(),
|
|
2315
|
+
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
2321
2316
|
placeholder: e.formItem.placeholder,
|
|
2322
2317
|
disabled: m(i),
|
|
2323
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
2324
|
-
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) :
|
|
2325
|
-
e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (v(),
|
|
2318
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => s(e.formItem.keyName, g))
|
|
2319
|
+
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : W("", !0),
|
|
2320
|
+
e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (v(), S(kt, {
|
|
2326
2321
|
key: 2,
|
|
2327
2322
|
formItem: e.formItem,
|
|
2328
2323
|
inputType: e.formItem.inputType.toLowerCase(),
|
|
2329
|
-
modelValue: m(
|
|
2324
|
+
modelValue: m(Q)(m(a), "rePassword"),
|
|
2330
2325
|
placeholder: e.formItem.placeholder,
|
|
2331
2326
|
disabled: m(i),
|
|
2332
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
2333
|
-
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) :
|
|
2334
|
-
e.formItem.itemType === "check_box" ? (v(),
|
|
2327
|
+
"onUpdate:modelValue": f[1] || (f[1] = (g) => s("rePassword", g))
|
|
2328
|
+
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : W("", !0),
|
|
2329
|
+
e.formItem.itemType === "check_box" ? (v(), S(Ro, {
|
|
2335
2330
|
key: 3,
|
|
2336
|
-
modelValue: m(
|
|
2331
|
+
modelValue: m(Q)(m(a), e.formItem.keyName, !1),
|
|
2337
2332
|
disabled: m(i),
|
|
2338
|
-
"onUpdate:modelValue": f[2] || (f[2] = (
|
|
2339
|
-
}, null, 8, ["modelValue", "disabled"])) :
|
|
2340
|
-
e.formItem.itemType === "switch" ? (v(),
|
|
2333
|
+
"onUpdate:modelValue": f[2] || (f[2] = (g) => s(e.formItem.keyName, g))
|
|
2334
|
+
}, null, 8, ["modelValue", "disabled"])) : W("", !0),
|
|
2335
|
+
e.formItem.itemType === "switch" ? (v(), S(Ko, {
|
|
2341
2336
|
key: 4,
|
|
2342
2337
|
formItem: e.formItem,
|
|
2343
2338
|
viewName: e.viewName,
|
|
2344
|
-
modelValue: m(
|
|
2339
|
+
modelValue: m(Q)(m(a), e.formItem.keyName, !1),
|
|
2345
2340
|
disabled: m(i),
|
|
2346
|
-
"onUpdate:modelValue": f[3] || (f[3] = (
|
|
2347
|
-
}, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) :
|
|
2348
|
-
e.formItem.itemType === "radio" ? (v(),
|
|
2341
|
+
"onUpdate:modelValue": f[3] || (f[3] = (g) => s(e.formItem.keyName, g))
|
|
2342
|
+
}, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : W("", !0),
|
|
2343
|
+
e.formItem.itemType === "radio" ? (v(), S(Go, {
|
|
2349
2344
|
key: 5,
|
|
2350
|
-
modelValue: m(
|
|
2345
|
+
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
2351
2346
|
formItem: e.formItem,
|
|
2352
2347
|
viewName: e.viewName,
|
|
2353
2348
|
disabled: m(i),
|
|
2354
|
-
"onUpdate:modelValue": f[4] || (f[4] = (
|
|
2355
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) :
|
|
2356
|
-
e.formItem.itemType === "selector" || e.formItem.itemType === "multi_selector" ? (v(),
|
|
2349
|
+
"onUpdate:modelValue": f[4] || (f[4] = (g) => s(e.formItem.keyName, g))
|
|
2350
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : W("", !0),
|
|
2351
|
+
e.formItem.itemType === "selector" || e.formItem.itemType === "multi_selector" ? (v(), S(Jt, {
|
|
2357
2352
|
key: e.formItem.listData.dataId,
|
|
2358
|
-
modelValue: m(
|
|
2353
|
+
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
2359
2354
|
formItem: e.formItem,
|
|
2360
2355
|
viewName: e.viewName,
|
|
2361
2356
|
multiple: e.formItem.itemType === "multi_selector",
|
|
2362
2357
|
disabled: m(i),
|
|
2363
|
-
"onUpdate:modelValue": f[5] || (f[5] = (
|
|
2364
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) :
|
|
2365
|
-
e.formItem.itemType === "date_selector" || e.formItem.itemType === "time_selector" || e.formItem.itemType === "date_time_selector" ? (v(),
|
|
2358
|
+
"onUpdate:modelValue": f[5] || (f[5] = (g) => s(e.formItem.keyName, g))
|
|
2359
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : W("", !0),
|
|
2360
|
+
e.formItem.itemType === "date_selector" || e.formItem.itemType === "time_selector" || e.formItem.itemType === "date_time_selector" ? (v(), S(Yt, {
|
|
2366
2361
|
key: 7,
|
|
2367
|
-
modelValue: m(
|
|
2362
|
+
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
2368
2363
|
formItem: e.formItem,
|
|
2369
2364
|
viewName: e.viewName,
|
|
2370
2365
|
disabled: m(i),
|
|
2371
|
-
"onUpdate:modelValue": f[6] || (f[6] = (
|
|
2372
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) :
|
|
2373
|
-
e.formItem.itemType === "tree_check_box" ? (v(),
|
|
2366
|
+
"onUpdate:modelValue": f[6] || (f[6] = (g) => s(e.formItem.keyName, g))
|
|
2367
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : W("", !0),
|
|
2368
|
+
e.formItem.itemType === "tree_check_box" ? (v(), S(jo, {
|
|
2374
2369
|
key: 8,
|
|
2375
|
-
modelValue: m(
|
|
2370
|
+
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
2376
2371
|
formItem: e.formItem,
|
|
2377
2372
|
viewName: e.viewName,
|
|
2378
2373
|
disabled: m(i),
|
|
2379
|
-
"onUpdate:modelValue": f[7] || (f[7] = (
|
|
2380
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) :
|
|
2381
|
-
e.formItem.itemType === "multi_tree_selector" || e.formItem.itemType === "tree_selector" ? (v(),
|
|
2374
|
+
"onUpdate:modelValue": f[7] || (f[7] = (g) => s(e.formItem.keyName, g))
|
|
2375
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : W("", !0),
|
|
2376
|
+
e.formItem.itemType === "multi_tree_selector" || e.formItem.itemType === "tree_selector" ? (v(), S(Wo, {
|
|
2382
2377
|
key: 9,
|
|
2383
|
-
modelValue: m(
|
|
2378
|
+
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
2384
2379
|
formItem: e.formItem,
|
|
2385
2380
|
viewName: e.viewName,
|
|
2386
2381
|
multiple: e.formItem.itemType === "multi_tree_selector",
|
|
2387
2382
|
disabled: m(i),
|
|
2388
|
-
"onUpdate:modelValue": f[8] || (f[8] = (
|
|
2389
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) :
|
|
2390
|
-
e.formItem.itemType === "file" ? (v(),
|
|
2383
|
+
"onUpdate:modelValue": f[8] || (f[8] = (g) => s(e.formItem.keyName, g))
|
|
2384
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : W("", !0),
|
|
2385
|
+
e.formItem.itemType === "file" ? (v(), S(Ho, {
|
|
2391
2386
|
key: 10,
|
|
2392
|
-
modelValue: m(
|
|
2387
|
+
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
2393
2388
|
formItem: e.formItem,
|
|
2394
2389
|
viewName: e.viewName,
|
|
2395
2390
|
disabled: m(i),
|
|
2396
|
-
fileName: m(
|
|
2397
|
-
"onUpdate:fileName": f[9] || (f[9] = (
|
|
2398
|
-
"onUpdate:modelValue": f[10] || (f[10] = (
|
|
2399
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "fileName"])) :
|
|
2391
|
+
fileName: m(Q)(m(a), e.formItem.filenameKeyName) || ((y = m(Q)(m(a), e.formItem.keyName)) == null ? void 0 : y.split("/").slice(-1)[0]),
|
|
2392
|
+
"onUpdate:fileName": f[9] || (f[9] = (g) => e.formItem.filenameKeyName && s(e.formItem.filenameKeyName, g)),
|
|
2393
|
+
"onUpdate:modelValue": f[10] || (f[10] = (g) => s(e.formItem.keyName, g))
|
|
2394
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "fileName"])) : W("", !0)
|
|
2400
2395
|
];
|
|
2401
2396
|
}),
|
|
2402
2397
|
_: 1
|
|
2403
|
-
}, 8, ["id", "requiredMark", "label", "name"])) :
|
|
2404
|
-
], 64)) :
|
|
2398
|
+
}, 8, ["id", "requiredMark", "label", "name"])) : W("", !0)
|
|
2399
|
+
], 64)) : W("", !0)
|
|
2405
2400
|
], 10, aa);
|
|
2406
2401
|
};
|
|
2407
2402
|
}
|
|
2408
|
-
}), ra = ["id"], ia = /* @__PURE__ */
|
|
2403
|
+
}), ra = ["id"], ia = /* @__PURE__ */ Y({
|
|
2409
2404
|
__name: "GFormBlock",
|
|
2410
2405
|
props: {
|
|
2411
2406
|
name: null,
|
|
@@ -2413,14 +2408,15 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2413
2408
|
showIf: null
|
|
2414
2409
|
},
|
|
2415
2410
|
setup(e) {
|
|
2416
|
-
const t = e, o =
|
|
2411
|
+
const t = e, o = $("");
|
|
2417
2412
|
function n() {
|
|
2418
2413
|
o.value = t.blockType == "block_start" && !t.showIf ? `block_NotShow_start_${t.name}` : t.blockType == "block_start" && t.showIf ? `block_Show_${t.name}` : `block_end_${t.name}`;
|
|
2419
2414
|
}
|
|
2420
|
-
const a =
|
|
2415
|
+
const a = $();
|
|
2421
2416
|
function l() {
|
|
2417
|
+
var i, u;
|
|
2422
2418
|
const r = a.value, s = !!(t.blockType == "block_start" && t.showIf);
|
|
2423
|
-
for (let
|
|
2419
|
+
for (let c = r; c && (Ne((u = (i = c.__vueParentComponent) == null ? void 0 : i.exposed) == null ? void 0 : u.setBlockShowFlag) || c.__vueParentComponent.exposed.setBlockShowFlag(s), !c.matches(`#block_end_${t.name}`)); c = c.nextElementSibling)
|
|
2424
2420
|
;
|
|
2425
2421
|
}
|
|
2426
2422
|
return et(() => {
|
|
@@ -2436,7 +2432,7 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2436
2432
|
ref: a
|
|
2437
2433
|
}, null, 8, ra));
|
|
2438
2434
|
}
|
|
2439
|
-
}), sa = /* @__PURE__ */
|
|
2435
|
+
}), sa = /* @__PURE__ */ Y({
|
|
2440
2436
|
__name: "index",
|
|
2441
2437
|
props: {
|
|
2442
2438
|
viewName: null,
|
|
@@ -2446,9 +2442,9 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2446
2442
|
emits: ["confirm-form", "confirm-and-close", "close-dialog"],
|
|
2447
2443
|
setup(e, { emit: t }) {
|
|
2448
2444
|
const o = e, n = D(() => {
|
|
2449
|
-
var
|
|
2450
|
-
return (
|
|
2451
|
-
}), a =
|
|
2445
|
+
var g;
|
|
2446
|
+
return (g = o.board) == null ? void 0 : g.formItems;
|
|
2447
|
+
}), a = $({}), { handleItemShowIf: l } = qo({ formModel: a });
|
|
2452
2448
|
we(
|
|
2453
2449
|
() => o.formData,
|
|
2454
2450
|
() => {
|
|
@@ -2459,94 +2455,94 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2459
2455
|
deep: !0
|
|
2460
2456
|
}
|
|
2461
2457
|
);
|
|
2462
|
-
const r =
|
|
2463
|
-
var
|
|
2464
|
-
return (
|
|
2465
|
-
}), i =
|
|
2458
|
+
const r = $(), s = D(() => {
|
|
2459
|
+
var g;
|
|
2460
|
+
return (g = r.value) == null ? void 0 : g.tFormRef;
|
|
2461
|
+
}), i = $(), u = $({}), c = ["userInfoNameEn", "cardNum", "attend", "userInfoRoleKey"];
|
|
2466
2462
|
async function d() {
|
|
2467
|
-
let
|
|
2468
|
-
return i.value && (
|
|
2469
|
-
const { formItem:
|
|
2470
|
-
return
|
|
2463
|
+
let g = [];
|
|
2464
|
+
return i.value && (g = i == null ? void 0 : i.value.map((p) => {
|
|
2465
|
+
const { formItem: C } = p, _ = [];
|
|
2466
|
+
return C.required && C.keyName && _.push({
|
|
2471
2467
|
validator: () => {
|
|
2472
|
-
const x =
|
|
2468
|
+
const x = Q(a.value, C.keyName);
|
|
2473
2469
|
return Po(x) ? {
|
|
2474
2470
|
result: !1,
|
|
2475
|
-
message: `${
|
|
2471
|
+
message: `${C.name.replace(/\s/g, "").replace(/[::;\s]/g, "")}为必填项!`
|
|
2476
2472
|
} : { result: !0 };
|
|
2477
2473
|
},
|
|
2478
2474
|
trigger: "blur"
|
|
2479
|
-
}),
|
|
2475
|
+
}), C.inputType === "RE_PASSWORD" && _.push({
|
|
2480
2476
|
validator: () => ({
|
|
2481
|
-
result:
|
|
2477
|
+
result: Q(a.value, "password") === Q(a.value, "rePassword"),
|
|
2482
2478
|
message: "两次输入密码不一致!"
|
|
2483
2479
|
}),
|
|
2484
2480
|
trigger: "blur"
|
|
2485
|
-
}), (
|
|
2481
|
+
}), (C.keyName === "startTime" || C.keyName === "endTime") && _.push({
|
|
2486
2482
|
validator: () => ({
|
|
2487
|
-
result:
|
|
2483
|
+
result: Q(a.value, "endTime") - Q(a.value, "startTime") > 0,
|
|
2488
2484
|
message: "结束时间不能早于开始时间!"
|
|
2489
2485
|
})
|
|
2490
2486
|
}), {
|
|
2491
|
-
keyName:
|
|
2492
|
-
rules:
|
|
2487
|
+
keyName: C.inputType !== "RE_PASSWORD" ? C.keyName : "rePassword",
|
|
2488
|
+
rules: _
|
|
2493
2489
|
};
|
|
2494
|
-
})),
|
|
2490
|
+
})), g == null ? void 0 : g.reduce((p, C) => (C.rules.length && (p[C.keyName] = C.rules), p), {});
|
|
2495
2491
|
}
|
|
2496
2492
|
et(async () => {
|
|
2497
2493
|
u.value = await d();
|
|
2498
2494
|
});
|
|
2499
|
-
function b(
|
|
2500
|
-
qe(a.value,
|
|
2501
|
-
}
|
|
2502
|
-
async function f(
|
|
2503
|
-
var
|
|
2504
|
-
const
|
|
2505
|
-
return (
|
|
2506
|
-
fields:
|
|
2495
|
+
function b(g, p) {
|
|
2496
|
+
qe(a.value, g, p), s.value && f([g]);
|
|
2497
|
+
}
|
|
2498
|
+
async function f(g = []) {
|
|
2499
|
+
var _;
|
|
2500
|
+
const p = M();
|
|
2501
|
+
return (g.length ? g.some((x) => p.includes(x)) : !0) ? (_ = s.value) == null ? void 0 : _.validate({
|
|
2502
|
+
fields: g.length ? g : p
|
|
2507
2503
|
}) : Promise.resolve({});
|
|
2508
2504
|
}
|
|
2509
|
-
const
|
|
2510
|
-
var
|
|
2511
|
-
return (
|
|
2512
|
-
const { formItem:
|
|
2513
|
-
return (
|
|
2505
|
+
const M = () => {
|
|
2506
|
+
var g;
|
|
2507
|
+
return (g = i == null ? void 0 : i.value) == null ? void 0 : g.flatMap((p) => {
|
|
2508
|
+
const { formItem: C } = p;
|
|
2509
|
+
return (C.keyName ?? "") != "" && !c.includes(C.keyName) && !p.getDisableFlag() ? C.inputType !== "RE_PASSWORD" ? C.keyName : "rePassword" : [];
|
|
2514
2510
|
});
|
|
2515
2511
|
}, E = D(() => {
|
|
2516
|
-
var
|
|
2517
|
-
return (
|
|
2518
|
-
}),
|
|
2519
|
-
var
|
|
2520
|
-
return (
|
|
2512
|
+
var g;
|
|
2513
|
+
return (g = o.board) == null ? void 0 : g.okButton;
|
|
2514
|
+
}), T = D(() => {
|
|
2515
|
+
var g;
|
|
2516
|
+
return (g = o.board) == null ? void 0 : g.cancelButton;
|
|
2521
2517
|
});
|
|
2522
|
-
function h(
|
|
2523
|
-
for (const
|
|
2524
|
-
const
|
|
2525
|
-
if (
|
|
2526
|
-
return { ...
|
|
2518
|
+
function h(g) {
|
|
2519
|
+
for (const p in g) {
|
|
2520
|
+
const C = g[p].find((_) => _.result === !1);
|
|
2521
|
+
if (C)
|
|
2522
|
+
return { ...C };
|
|
2527
2523
|
}
|
|
2528
2524
|
return null;
|
|
2529
2525
|
}
|
|
2530
|
-
function y(
|
|
2531
|
-
switch (
|
|
2526
|
+
function y(g) {
|
|
2527
|
+
switch (g.action) {
|
|
2532
2528
|
case "CONFIRM": {
|
|
2533
|
-
f().then((
|
|
2534
|
-
if (!Object.keys(
|
|
2535
|
-
t("confirm-form", a.value,
|
|
2529
|
+
f().then((p) => {
|
|
2530
|
+
if (!Object.keys(p).length)
|
|
2531
|
+
t("confirm-form", a.value, g.buttonId);
|
|
2536
2532
|
else {
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2533
|
+
const C = h(p);
|
|
2534
|
+
oe.warning(C == null ? void 0 : C.message);
|
|
2539
2535
|
}
|
|
2540
2536
|
});
|
|
2541
2537
|
break;
|
|
2542
2538
|
}
|
|
2543
2539
|
case "CONFIRM_AND_CLOSE": {
|
|
2544
|
-
f().then((
|
|
2545
|
-
if (!Object.keys(
|
|
2546
|
-
t("confirm-and-close", a.value,
|
|
2540
|
+
f().then((p) => {
|
|
2541
|
+
if (!Object.keys(p).length)
|
|
2542
|
+
t("confirm-and-close", a.value, g.buttonId);
|
|
2547
2543
|
else {
|
|
2548
|
-
const
|
|
2549
|
-
|
|
2544
|
+
const C = h(p);
|
|
2545
|
+
oe.warning(C == null ? void 0 : C.message);
|
|
2550
2546
|
}
|
|
2551
2547
|
});
|
|
2552
2548
|
break;
|
|
@@ -2556,14 +2552,14 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2556
2552
|
break;
|
|
2557
2553
|
}
|
|
2558
2554
|
default: {
|
|
2559
|
-
console.log(
|
|
2555
|
+
console.log(g);
|
|
2560
2556
|
break;
|
|
2561
2557
|
}
|
|
2562
2558
|
}
|
|
2563
2559
|
}
|
|
2564
|
-
return (
|
|
2565
|
-
const
|
|
2566
|
-
return v(),
|
|
2560
|
+
return (g, p) => {
|
|
2561
|
+
const C = F("t-button");
|
|
2562
|
+
return v(), S(Bo, {
|
|
2567
2563
|
ref_key: "commonFormRef",
|
|
2568
2564
|
ref: r,
|
|
2569
2565
|
commonFormProps: {
|
|
@@ -2573,65 +2569,65 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2573
2569
|
labelWidth: "150px"
|
|
2574
2570
|
}
|
|
2575
2571
|
}, {
|
|
2576
|
-
body:
|
|
2577
|
-
(v(!0), q(ve, null, ye(m(n), (
|
|
2578
|
-
key: `${
|
|
2572
|
+
body: w(() => [
|
|
2573
|
+
(v(!0), q(ve, null, ye(m(n), (_) => (v(), q(ve, {
|
|
2574
|
+
key: `${_.name}_${_.keyName}`
|
|
2579
2575
|
}, [
|
|
2580
|
-
|
|
2576
|
+
_.itemType === "block_start" || _.itemType === "block_end" ? (v(), S(ia, {
|
|
2581
2577
|
key: 0,
|
|
2582
2578
|
ref_for: !0,
|
|
2583
2579
|
ref: "formBlockRef",
|
|
2584
|
-
name:
|
|
2585
|
-
blockType:
|
|
2586
|
-
showIf: m(l)(
|
|
2587
|
-
}, null, 8, ["name", "blockType", "showIf"])) : (v(),
|
|
2580
|
+
name: _.name,
|
|
2581
|
+
blockType: _.itemType,
|
|
2582
|
+
showIf: m(l)(_.showIf)
|
|
2583
|
+
}, null, 8, ["name", "blockType", "showIf"])) : (v(), S(la, {
|
|
2588
2584
|
key: 1,
|
|
2589
2585
|
ref_for: !0,
|
|
2590
2586
|
ref_key: "formItemRef",
|
|
2591
2587
|
ref: i,
|
|
2592
2588
|
formModel: a.value,
|
|
2593
|
-
formItem:
|
|
2589
|
+
formItem: _,
|
|
2594
2590
|
viewName: e.viewName,
|
|
2595
2591
|
onAfterUpdateValue: b
|
|
2596
2592
|
}, null, 8, ["formModel", "formItem", "viewName"]))
|
|
2597
2593
|
], 64))), 128))
|
|
2598
2594
|
]),
|
|
2599
|
-
footer:
|
|
2600
|
-
var
|
|
2595
|
+
footer: w(() => {
|
|
2596
|
+
var _, x;
|
|
2601
2597
|
return [
|
|
2602
|
-
((
|
|
2598
|
+
((_ = m(T)) == null ? void 0 : _.name) !== "" ? (v(), S(C, {
|
|
2603
2599
|
key: 0,
|
|
2604
2600
|
theme: "default",
|
|
2605
|
-
onClick:
|
|
2601
|
+
onClick: p[0] || (p[0] = (N) => m(T) && y(m(T)))
|
|
2606
2602
|
}, {
|
|
2607
|
-
default:
|
|
2608
|
-
var
|
|
2603
|
+
default: w(() => {
|
|
2604
|
+
var N;
|
|
2609
2605
|
return [
|
|
2610
|
-
|
|
2606
|
+
J(ge((N = m(T)) == null ? void 0 : N.name), 1)
|
|
2611
2607
|
];
|
|
2612
2608
|
}),
|
|
2613
2609
|
_: 1
|
|
2614
|
-
})) :
|
|
2615
|
-
((x = m(E)) == null ? void 0 : x.name) !== "" ? (v(),
|
|
2610
|
+
})) : W("", !0),
|
|
2611
|
+
((x = m(E)) == null ? void 0 : x.name) !== "" ? (v(), S(C, {
|
|
2616
2612
|
key: 1,
|
|
2617
2613
|
theme: "primary",
|
|
2618
|
-
onClick:
|
|
2614
|
+
onClick: p[1] || (p[1] = (N) => m(E) && y(m(E)))
|
|
2619
2615
|
}, {
|
|
2620
|
-
default:
|
|
2621
|
-
var
|
|
2616
|
+
default: w(() => {
|
|
2617
|
+
var N;
|
|
2622
2618
|
return [
|
|
2623
|
-
|
|
2619
|
+
J(ge((N = m(E)) == null ? void 0 : N.name), 1)
|
|
2624
2620
|
];
|
|
2625
2621
|
}),
|
|
2626
2622
|
_: 1
|
|
2627
|
-
})) :
|
|
2623
|
+
})) : W("", !0)
|
|
2628
2624
|
];
|
|
2629
2625
|
}),
|
|
2630
2626
|
_: 1
|
|
2631
2627
|
}, 8, ["commonFormProps"]);
|
|
2632
2628
|
};
|
|
2633
2629
|
}
|
|
2634
|
-
}), ua = /* @__PURE__ */
|
|
2630
|
+
}), ua = /* @__PURE__ */ Y({
|
|
2635
2631
|
__name: "GTableForm",
|
|
2636
2632
|
props: {
|
|
2637
2633
|
col: null,
|
|
@@ -2651,108 +2647,108 @@ const aa = ["id"], la = /* @__PURE__ */ J({
|
|
|
2651
2647
|
t("blur", s, a.value);
|
|
2652
2648
|
}
|
|
2653
2649
|
return (s, i) => (v(), q("div", {
|
|
2654
|
-
class:
|
|
2650
|
+
class: z(`${m(X)}__table-form`)
|
|
2655
2651
|
}, [
|
|
2656
2652
|
(v(!0), q(ve, null, ye(m(n), (u) => {
|
|
2657
2653
|
var c;
|
|
2658
2654
|
return v(), q("div", {
|
|
2659
2655
|
key: u.keyName
|
|
2660
2656
|
}, [
|
|
2661
|
-
u.itemType === "label" ? (v(),
|
|
2657
|
+
u.itemType === "label" ? (v(), S(Uo, {
|
|
2662
2658
|
key: 0,
|
|
2663
|
-
modelValue: m(
|
|
2664
|
-
}, null, 8, ["modelValue"])) :
|
|
2665
|
-
u.itemType == "text_input" ? (v(),
|
|
2659
|
+
modelValue: m(Q)(m(a), e.col.colKey)
|
|
2660
|
+
}, null, 8, ["modelValue"])) : W("", !0),
|
|
2661
|
+
u.itemType == "text_input" ? (v(), S(kt, {
|
|
2666
2662
|
key: 1,
|
|
2667
2663
|
formItem: u,
|
|
2668
2664
|
viewName: e.viewName,
|
|
2669
2665
|
inputType: (c = u.inputType) == null ? void 0 : c.toLowerCase(),
|
|
2670
|
-
originValue: m(
|
|
2671
|
-
modelValue: m(
|
|
2666
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2667
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2672
2668
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2673
2669
|
"onBlur:modelValue": (d) => r(u)
|
|
2674
|
-
}, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) :
|
|
2675
|
-
u.itemType === "check_box" ? (v(),
|
|
2670
|
+
}, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) : W("", !0),
|
|
2671
|
+
u.itemType === "check_box" ? (v(), S(Ro, {
|
|
2676
2672
|
key: 2,
|
|
2677
2673
|
formItem: u,
|
|
2678
2674
|
viewName: e.viewName,
|
|
2679
|
-
originValue: m(
|
|
2680
|
-
modelValue: m(
|
|
2675
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2676
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2681
2677
|
"onUpdate:modelValue": i[1] || (i[1] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2682
2678
|
"onBlur:modelValue": (d) => r(u)
|
|
2683
|
-
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) :
|
|
2684
|
-
u.itemType === "switch" ? (v(),
|
|
2679
|
+
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : W("", !0),
|
|
2680
|
+
u.itemType === "switch" ? (v(), S(Ko, {
|
|
2685
2681
|
key: 3,
|
|
2686
2682
|
formItem: u,
|
|
2687
2683
|
viewName: e.viewName,
|
|
2688
|
-
originValue: m(
|
|
2689
|
-
modelValue: m(
|
|
2684
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2685
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2690
2686
|
"onUpdate:modelValue": i[2] || (i[2] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2691
2687
|
"onBlur:modelValue": (d) => r(u)
|
|
2692
|
-
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) :
|
|
2693
|
-
u.itemType === "radio" ? (v(),
|
|
2688
|
+
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : W("", !0),
|
|
2689
|
+
u.itemType === "radio" ? (v(), S(Go, {
|
|
2694
2690
|
key: 4,
|
|
2695
|
-
originValue: m(
|
|
2696
|
-
modelValue: m(
|
|
2691
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2692
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2697
2693
|
formItem: u,
|
|
2698
2694
|
viewName: e.viewName,
|
|
2699
2695
|
"onUpdate:modelValue": i[3] || (i[3] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2700
2696
|
"onBlur:modelValue": (d) => r(u)
|
|
2701
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) :
|
|
2702
|
-
u.itemType === "selector" || u.itemType === "multi_selector" ? (v(),
|
|
2697
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : W("", !0),
|
|
2698
|
+
u.itemType === "selector" || u.itemType === "multi_selector" ? (v(), S(Jt, {
|
|
2703
2699
|
key: 5,
|
|
2704
|
-
originValue: m(
|
|
2705
|
-
modelValue: m(
|
|
2700
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2701
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2706
2702
|
formItem: u,
|
|
2707
2703
|
viewName: e.viewName,
|
|
2708
2704
|
multiple: u.itemType === "multi_selector",
|
|
2709
2705
|
"onUpdate:modelValue": i[4] || (i[4] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2710
2706
|
"onBlur:modelValue": (d) => r(u)
|
|
2711
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) :
|
|
2712
|
-
u.itemType === "date_selector" || u.itemType === "time_selector" || u.itemType === "date_time_selector" ? (v(),
|
|
2707
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : W("", !0),
|
|
2708
|
+
u.itemType === "date_selector" || u.itemType === "time_selector" || u.itemType === "date_time_selector" ? (v(), S(Yt, {
|
|
2713
2709
|
key: 6,
|
|
2714
|
-
originValue: m(
|
|
2715
|
-
modelValue: m(
|
|
2710
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2711
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2716
2712
|
formItem: u,
|
|
2717
2713
|
viewName: e.viewName,
|
|
2718
2714
|
"onUpdate:modelValue": i[5] || (i[5] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2719
2715
|
"onBlur:modelValue": (d) => r(u)
|
|
2720
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) :
|
|
2721
|
-
u.itemType === "tree_check_box" ? (v(),
|
|
2716
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : W("", !0),
|
|
2717
|
+
u.itemType === "tree_check_box" ? (v(), S(jo, {
|
|
2722
2718
|
key: 7,
|
|
2723
|
-
originValue: m(
|
|
2724
|
-
modelValue: m(
|
|
2719
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2720
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2725
2721
|
formItem: u,
|
|
2726
2722
|
viewName: e.viewName,
|
|
2727
2723
|
"onUpdate:modelValue": i[6] || (i[6] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2728
2724
|
"onBlur:modelValue": (d) => r(u)
|
|
2729
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) :
|
|
2730
|
-
u.itemType === "multi_tree_selector" || u.itemType === "tree_selector" ? (v(),
|
|
2725
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : W("", !0),
|
|
2726
|
+
u.itemType === "multi_tree_selector" || u.itemType === "tree_selector" ? (v(), S(Wo, {
|
|
2731
2727
|
key: 8,
|
|
2732
|
-
originValue: m(
|
|
2733
|
-
modelValue: m(
|
|
2728
|
+
originValue: m(Q)(e.row, e.col.colKey),
|
|
2729
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2734
2730
|
formItem: u,
|
|
2735
2731
|
viewName: e.viewName,
|
|
2736
2732
|
multiple: u.itemType === "multi_tree_selector",
|
|
2737
2733
|
"onUpdate:modelValue": i[7] || (i[7] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2738
2734
|
"onBlur:modelValue": (d) => r(u)
|
|
2739
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) :
|
|
2740
|
-
u.itemType === "file" ? (v(),
|
|
2735
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : W("", !0),
|
|
2736
|
+
u.itemType === "file" ? (v(), S(Ho, {
|
|
2741
2737
|
key: 9,
|
|
2742
|
-
modelValue: m(
|
|
2738
|
+
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2743
2739
|
formItem: u,
|
|
2744
2740
|
viewName: e.viewName,
|
|
2745
2741
|
tips: u.placeholder || "请选择上传文件",
|
|
2746
2742
|
"onUpdate:modelValue": i[8] || (i[8] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2747
2743
|
"onBlur:modelValue": (d) => r(u)
|
|
2748
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "tips", "onBlur:modelValue"])) :
|
|
2744
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "tips", "onBlur:modelValue"])) : W("", !0)
|
|
2749
2745
|
]);
|
|
2750
2746
|
}), 128))
|
|
2751
2747
|
], 2));
|
|
2752
2748
|
}
|
|
2753
2749
|
});
|
|
2754
|
-
function
|
|
2755
|
-
const t =
|
|
2750
|
+
function $o(e = {}) {
|
|
2751
|
+
const t = $(!1);
|
|
2756
2752
|
return {
|
|
2757
2753
|
reloadFlag: t,
|
|
2758
2754
|
reload: () => {
|
|
@@ -2762,7 +2758,7 @@ function zo(e = {}) {
|
|
|
2762
2758
|
}
|
|
2763
2759
|
};
|
|
2764
2760
|
}
|
|
2765
|
-
function
|
|
2761
|
+
function Ut(e) {
|
|
2766
2762
|
return e === "" ? e : e === "true" || e == "1";
|
|
2767
2763
|
}
|
|
2768
2764
|
function ca(e, t) {
|
|
@@ -2867,10 +2863,10 @@ var Xe = {
|
|
|
2867
2863
|
break;
|
|
2868
2864
|
b === 47 && (c = d);
|
|
2869
2865
|
}
|
|
2870
|
-
var
|
|
2866
|
+
var M = "";
|
|
2871
2867
|
for (d = n + c + 1; d <= a; ++d)
|
|
2872
|
-
(d === a || t.charCodeAt(d) === 47) && (
|
|
2873
|
-
return
|
|
2868
|
+
(d === a || t.charCodeAt(d) === 47) && (M.length === 0 ? M += ".." : M += "/..");
|
|
2869
|
+
return M.length > 0 ? M + o.slice(r + c) : (r += c, o.charCodeAt(r) === 47 && ++r, o.slice(r));
|
|
2874
2870
|
},
|
|
2875
2871
|
_makeLong: function(t) {
|
|
2876
2872
|
return t;
|
|
@@ -2969,7 +2965,7 @@ var Xe = {
|
|
|
2969
2965
|
posix: null
|
|
2970
2966
|
};
|
|
2971
2967
|
Xe.posix = Xe;
|
|
2972
|
-
const ma = Xe.extname,
|
|
2968
|
+
const ma = Xe.extname, zo = Xe.basename;
|
|
2973
2969
|
class fa {
|
|
2974
2970
|
constructor() {
|
|
2975
2971
|
let t = (() => typeof global > "u")(), o = "image/png", n = "image/jpeg", a = "image/jpeg", l = "image/webp", r = "application/pdf", s = "image/svg+xml";
|
|
@@ -2999,38 +2995,38 @@ function ha(e, {
|
|
|
2999
2995
|
outline: i,
|
|
3000
2996
|
archive: f
|
|
3001
2997
|
} = {}) {
|
|
3002
|
-
var { fromMime: c, toMime: d, expected: b } = new fa(), f = f || "canvas",
|
|
3003
|
-
if (!
|
|
2998
|
+
var { fromMime: c, toMime: d, expected: b } = new fa(), f = f || "canvas", M = E || o.replace(/@\d+x$/i, "") || ma(t), E = c(d(M) || M), T = d(E), h = e.length;
|
|
2999
|
+
if (!M)
|
|
3004
3000
|
throw new Error(
|
|
3005
3001
|
"Cannot determine image format (use a filename extension or 'format' argument)"
|
|
3006
3002
|
);
|
|
3007
3003
|
if (!E)
|
|
3008
|
-
throw new Error(`Unsupported file format "${
|
|
3004
|
+
throw new Error(`Unsupported file format "${M}" (expected ${b})`);
|
|
3009
3005
|
if (!h)
|
|
3010
3006
|
throw new RangeError(
|
|
3011
3007
|
"Canvas has no associated contexts (try calling getContext or newPage first)"
|
|
3012
3008
|
);
|
|
3013
|
-
let y,
|
|
3014
|
-
if (isFinite(
|
|
3009
|
+
let y, g, p = t.replace(/{(\d*)}/g, (_, x) => (g = !0, x = parseInt(x, 10), y = isFinite(x) ? x : isFinite(y) ? y : -1, "{}")), C = a > 0 ? a - 1 : a < 0 ? h + a : void 0;
|
|
3010
|
+
if (isFinite(C) && C < 0 || C >= h)
|
|
3015
3011
|
throw new RangeError(
|
|
3016
|
-
h == 1 ? `Canvas only has a ‘page 1’ (${
|
|
3012
|
+
h == 1 ? `Canvas only has a ‘page 1’ (${C} is out of bounds)` : `Canvas has pages 1–${h} (${C} is out of bounds)`
|
|
3017
3013
|
);
|
|
3018
|
-
if (e = isFinite(
|
|
3014
|
+
if (e = isFinite(C) ? [e[C]] : g || E == "pdf" ? e : e.slice(-1), l === void 0)
|
|
3019
3015
|
l = 0.92;
|
|
3020
3016
|
else if (typeof l != "number" || !isFinite(l) || l < 0 || l > 1)
|
|
3021
3017
|
throw new TypeError(
|
|
3022
3018
|
"The quality option must be an number in the 0.0–1.0 range"
|
|
3023
3019
|
);
|
|
3024
3020
|
if (s === void 0) {
|
|
3025
|
-
let
|
|
3026
|
-
s =
|
|
3021
|
+
let _ = (o || zo(t, M)).match(/@(\d+)x$/i);
|
|
3022
|
+
s = _ ? parseInt(_[1], 10) : 1;
|
|
3027
3023
|
} else if (typeof s != "number" || !Number.isInteger(s) || s < 1)
|
|
3028
3024
|
throw new TypeError("The density option must be a non-negative integer");
|
|
3029
3025
|
return i === void 0 ? i = !0 : E == "svg" && (i = !!i), {
|
|
3030
3026
|
filename: t,
|
|
3031
|
-
pattern:
|
|
3027
|
+
pattern: p,
|
|
3032
3028
|
format: E,
|
|
3033
|
-
mime:
|
|
3029
|
+
mime: T,
|
|
3034
3030
|
pages: e,
|
|
3035
3031
|
padding: y,
|
|
3036
3032
|
quality: l,
|
|
@@ -3040,9 +3036,9 @@ function ha(e, {
|
|
|
3040
3036
|
archive: f
|
|
3041
3037
|
};
|
|
3042
3038
|
}
|
|
3043
|
-
class
|
|
3039
|
+
class At {
|
|
3044
3040
|
static for(t) {
|
|
3045
|
-
return new
|
|
3041
|
+
return new At().append(t).get();
|
|
3046
3042
|
}
|
|
3047
3043
|
constructor() {
|
|
3048
3044
|
this.crc = -1;
|
|
@@ -3056,7 +3052,7 @@ class Pt {
|
|
|
3056
3052
|
return this.crc = o, this;
|
|
3057
3053
|
}
|
|
3058
3054
|
}
|
|
3059
|
-
|
|
3055
|
+
At.prototype.table = (() => {
|
|
3060
3056
|
var e, t, o, n = [];
|
|
3061
3057
|
for (e = 0; e < 256; e++) {
|
|
3062
3058
|
for (o = e, t = 0; t < 8; t++)
|
|
@@ -3065,7 +3061,7 @@ Pt.prototype.table = (() => {
|
|
|
3065
3061
|
}
|
|
3066
3062
|
return n;
|
|
3067
3063
|
})();
|
|
3068
|
-
function
|
|
3064
|
+
function Rt(e) {
|
|
3069
3065
|
let t = new Uint8Array(e), o = new DataView(t.buffer), n = {
|
|
3070
3066
|
array: t,
|
|
3071
3067
|
view: o,
|
|
@@ -3085,7 +3081,7 @@ function Ut(e) {
|
|
|
3085
3081
|
};
|
|
3086
3082
|
return n;
|
|
3087
3083
|
}
|
|
3088
|
-
class
|
|
3084
|
+
class Et {
|
|
3089
3085
|
constructor(t) {
|
|
3090
3086
|
let o = new Date();
|
|
3091
3087
|
Object.assign(this, {
|
|
@@ -3097,16 +3093,16 @@ class At {
|
|
|
3097
3093
|
}), this.add(t);
|
|
3098
3094
|
}
|
|
3099
3095
|
async add(t, o) {
|
|
3100
|
-
let n = !o, a =
|
|
3096
|
+
let n = !o, a = Et.encoder.encode(`${this.directory}/${n ? "" : t}`), l = new Uint8Array(n ? 0 : await o.arrayBuffer()), r = 30 + a.length, s = r + l.length, i = 16, { offset: u } = this, c = Rt(26).set32(0, 134742036).set16(6, this.time).set16(8, this.date).set32(10, At.for(l)).set32(14, l.length).set32(18, l.length).set16(22, a.length);
|
|
3101
3097
|
u += r;
|
|
3102
|
-
let d =
|
|
3098
|
+
let d = Rt(r + l.length + i).set32(0, 67324752).bytes(4, c.array).bytes(30, a).bytes(r, l);
|
|
3103
3099
|
u += l.length, d.set32(s, 134695760).bytes(s + 4, c.array.slice(10, 22)), u += i, this.files.push({ offset: u, folder: n, name: a, header: c, payload: d }), this.offset = u;
|
|
3104
3100
|
}
|
|
3105
3101
|
toBuffer() {
|
|
3106
3102
|
let t = this.files.reduce(
|
|
3107
3103
|
(d, { name: b }) => 46 + b.length + d,
|
|
3108
3104
|
0
|
|
3109
|
-
), o =
|
|
3105
|
+
), o = Rt(t + 22), n = 0;
|
|
3110
3106
|
for (var { offset: a, name: l, header: r, folder: s } of this.files)
|
|
3111
3107
|
o.set32(n, 33639248).set16(n + 4, 20).bytes(n + 6, r.array).set8(n + 38, s ? 16 : 0).set32(n + 42, a).bytes(n + 46, l), n += 46 + l.length;
|
|
3112
3108
|
o.set32(n, 101010256).set16(n + 8, this.files.length).set16(n + 10, this.files.length).set32(n + 12, t).set32(n + 16, this.offset);
|
|
@@ -3119,7 +3115,7 @@ class At {
|
|
|
3119
3115
|
return new Blob([this.toBuffer()], { type: "application/zip" });
|
|
3120
3116
|
}
|
|
3121
3117
|
}
|
|
3122
|
-
|
|
3118
|
+
Et.encoder = new TextEncoder();
|
|
3123
3119
|
const eo = (e, t, o, n) => {
|
|
3124
3120
|
if (n) {
|
|
3125
3121
|
let { width: a, height: l } = e, r = Object.assign(document.createElement("canvas"), { width: a, height: l }), s = r.getContext("2d");
|
|
@@ -3129,7 +3125,7 @@ const eo = (e, t, o, n) => {
|
|
|
3129
3125
|
}, pa = (...e) => eo(...e).then((t) => t.arrayBuffer()), ga = async (e, t, o, n, a) => {
|
|
3130
3126
|
Xo(a, await eo(e, t, o, n));
|
|
3131
3127
|
}, va = async (e, t, o, n, a, l, r) => {
|
|
3132
|
-
let s = (c) => l.replace("{}", String(c + 1).padStart(r, "0")), i =
|
|
3128
|
+
let s = (c) => l.replace("{}", String(c + 1).padStart(r, "0")), i = zo(a, ".zip") || "archive", u = new Et(i);
|
|
3133
3129
|
await Promise.all(
|
|
3134
3130
|
e.map(async (c, d) => {
|
|
3135
3131
|
let b = s(d);
|
|
@@ -3144,7 +3140,7 @@ const eo = (e, t, o, n) => {
|
|
|
3144
3140
|
return n.canvas;
|
|
3145
3141
|
let a = document.createElement("canvas"), l = a.getContext("2d"), r = n.canvas ? n.canvas : n;
|
|
3146
3142
|
return a.width = r.width * t, a.height = r.height * t, o && (l.fillStyle = o, l.fillRect(0, 0, a.width, a.height)), l.scale(t, t), l.drawImage(r, 0, 0), a;
|
|
3147
|
-
}), ya = { asBuffer: pa, asDownload: ga, asZipDownload: va, atScale: ba, options: ha }, { asBuffer:
|
|
3143
|
+
}), ya = { asBuffer: pa, asDownload: ga, asZipDownload: va, atScale: ba, options: ha }, { asBuffer: Kt, asDownload: wa, asZipDownload: ka, atScale: Gt, options: jt } = ya, po = Symbol.for("toDataURL"), Ca = (e) => new Promise(
|
|
3148
3144
|
(t, o) => Object.assign(new Zo(), {
|
|
3149
3145
|
crossOrigin: "Anonymous",
|
|
3150
3146
|
onload: t,
|
|
@@ -3161,8 +3157,8 @@ let Ta = class {
|
|
|
3161
3157
|
enumerable: !0
|
|
3162
3158
|
});
|
|
3163
3159
|
for (var [l, r] of Object.entries({
|
|
3164
|
-
png: () =>
|
|
3165
|
-
jpg: () =>
|
|
3160
|
+
png: () => Kt(n, "image/png"),
|
|
3161
|
+
jpg: () => Kt(n, "image/jpeg"),
|
|
3166
3162
|
pages: () => a.concat(n).map((s) => s.getContext("2d"))
|
|
3167
3163
|
}))
|
|
3168
3164
|
Object.defineProperty(n, l, { get: r });
|
|
@@ -3180,27 +3176,27 @@ let Ta = class {
|
|
|
3180
3176
|
},
|
|
3181
3177
|
saveAs(s, i) {
|
|
3182
3178
|
i = typeof i == "number" ? { quality: i } : i;
|
|
3183
|
-
let u =
|
|
3184
|
-
return d == null ? wa(h[0], b, f,
|
|
3179
|
+
let u = jt(this.pages, { filename: s, ...i }), { pattern: c, padding: d, mime: b, quality: f, matte: M, density: E, archive: T } = u, h = Gt(u.pages, E);
|
|
3180
|
+
return d == null ? wa(h[0], b, f, M, s) : ka(
|
|
3185
3181
|
h,
|
|
3186
3182
|
b,
|
|
3187
3183
|
f,
|
|
3188
|
-
|
|
3189
|
-
|
|
3184
|
+
M,
|
|
3185
|
+
T,
|
|
3190
3186
|
c,
|
|
3191
3187
|
d
|
|
3192
3188
|
);
|
|
3193
3189
|
},
|
|
3194
3190
|
toBuffer(s = "png", i = {}) {
|
|
3195
3191
|
i = typeof i == "number" ? { quality: i } : i;
|
|
3196
|
-
let u =
|
|
3197
|
-
return
|
|
3192
|
+
let u = jt(this.pages, { extension: s, ...i }), { mime: c, quality: d, matte: b, pages: f, density: M } = u, E = Gt(f, M, b)[0];
|
|
3193
|
+
return Kt(E, c, d, b);
|
|
3198
3194
|
},
|
|
3199
3195
|
[po]: n.toDataURL.bind(n),
|
|
3200
3196
|
toDataURL(s = "png", i = {}) {
|
|
3201
3197
|
i = typeof i == "number" ? { quality: i } : i;
|
|
3202
|
-
let u =
|
|
3203
|
-
return Promise.resolve(
|
|
3198
|
+
let u = jt(this.pages, { extension: s, ...i }), { mime: c, quality: d, matte: b, pages: f, density: M } = u, E = Gt(f, M, b)[0], T = E[E === n ? po : "toDataURL"](c, d);
|
|
3199
|
+
return Promise.resolve(T);
|
|
3204
3200
|
}
|
|
3205
3201
|
});
|
|
3206
3202
|
}
|
|
@@ -3227,14 +3223,14 @@ const {
|
|
|
3227
3223
|
DOMMatrix: Va,
|
|
3228
3224
|
DOMRect: Ma,
|
|
3229
3225
|
DOMPoint: Pa
|
|
3230
|
-
},
|
|
3226
|
+
}, lt = (e, t, o = {}, n = o) => {
|
|
3231
3227
|
if (Array.isArray(t))
|
|
3232
|
-
t.forEach((a) =>
|
|
3228
|
+
t.forEach((a) => lt(e, a, o, n));
|
|
3233
3229
|
else if (typeof t == "function")
|
|
3234
|
-
t(e, o, n,
|
|
3230
|
+
t(e, o, n, lt);
|
|
3235
3231
|
else {
|
|
3236
3232
|
const a = Object.keys(t)[0];
|
|
3237
|
-
Array.isArray(t[a]) ? (n[a] = {},
|
|
3233
|
+
Array.isArray(t[a]) ? (n[a] = {}, lt(e, t[a], o, n[a])) : n[a] = t[a](e, o, n, lt);
|
|
3238
3234
|
}
|
|
3239
3235
|
return o;
|
|
3240
3236
|
}, Ze = (e, t) => (o, n, a, l) => {
|
|
@@ -3252,7 +3248,7 @@ const {
|
|
|
3252
3248
|
}, Ba = (e) => ({
|
|
3253
3249
|
data: e,
|
|
3254
3250
|
pos: 0
|
|
3255
|
-
}), Pe = () => (e) => e.data[e.pos++], Qo = (e = 0) => (t) => t.data[t.pos + e], Oe = (e) => (t) => t.data.subarray(t.pos, t.pos += e),
|
|
3251
|
+
}), Pe = () => (e) => e.data[e.pos++], Qo = (e = 0) => (t) => t.data[t.pos + e], Oe = (e) => (t) => t.data.subarray(t.pos, t.pos += e), Bt = (e) => (t) => t.data.subarray(t.pos, t.pos + e), qt = (e) => (t) => Array.from(Oe(e)(t)).map((o) => String.fromCharCode(o)).join(""), $e = (e) => (t) => {
|
|
3256
3252
|
const o = Oe(2)(t);
|
|
3257
3253
|
return e ? (o[1] << 8) + o[0] : (o[0] << 8) + o[1];
|
|
3258
3254
|
}, Jo = (e, t) => (o, n, a) => {
|
|
@@ -3273,7 +3269,7 @@ const {
|
|
|
3273
3269
|
return s.length ? l[r] = La(n, s.index, s.length) : l[r] = n[s.index], l;
|
|
3274
3270
|
}, {});
|
|
3275
3271
|
};
|
|
3276
|
-
var
|
|
3272
|
+
var Lt = {
|
|
3277
3273
|
blocks: (e) => {
|
|
3278
3274
|
const o = [], n = e.data.length;
|
|
3279
3275
|
for (var a = 0, l = Pe()(e); l !== 0 && l; l = Pe()(e)) {
|
|
@@ -3303,13 +3299,13 @@ const Da = Ze(
|
|
|
3303
3299
|
transparentColorGiven: { index: 7 }
|
|
3304
3300
|
})
|
|
3305
3301
|
},
|
|
3306
|
-
{ delay:
|
|
3302
|
+
{ delay: $e(!0) },
|
|
3307
3303
|
{ transparentColorIndex: Pe() },
|
|
3308
3304
|
{ terminator: Pe() }
|
|
3309
3305
|
]
|
|
3310
3306
|
},
|
|
3311
3307
|
(e) => {
|
|
3312
|
-
var t =
|
|
3308
|
+
var t = Bt(2)(e);
|
|
3313
3309
|
return t[0] === 33 && t[1] === 249;
|
|
3314
3310
|
}
|
|
3315
3311
|
), Fa = Ze(
|
|
@@ -3318,10 +3314,10 @@ const Da = Ze(
|
|
|
3318
3314
|
{ code: Pe() },
|
|
3319
3315
|
{
|
|
3320
3316
|
descriptor: [
|
|
3321
|
-
{ left:
|
|
3322
|
-
{ top:
|
|
3323
|
-
{ width:
|
|
3324
|
-
{ height:
|
|
3317
|
+
{ left: $e(!0) },
|
|
3318
|
+
{ top: $e(!0) },
|
|
3319
|
+
{ width: $e(!0) },
|
|
3320
|
+
{ height: $e(!0) },
|
|
3325
3321
|
{
|
|
3326
3322
|
lct: to({
|
|
3327
3323
|
exists: { index: 0 },
|
|
@@ -3339,7 +3335,7 @@ const Da = Ze(
|
|
|
3339
3335
|
},
|
|
3340
3336
|
(e, t, o) => o.descriptor.lct.exists
|
|
3341
3337
|
),
|
|
3342
|
-
{ data: [{ minCodeSize: Pe() },
|
|
3338
|
+
{ data: [{ minCodeSize: Pe() }, Lt] }
|
|
3343
3339
|
]
|
|
3344
3340
|
},
|
|
3345
3341
|
(e) => Qo()(e) === 44
|
|
@@ -3351,11 +3347,11 @@ const Da = Ze(
|
|
|
3351
3347
|
{
|
|
3352
3348
|
preData: (e, t, o) => Oe(o.text.blockSize)(e)
|
|
3353
3349
|
},
|
|
3354
|
-
|
|
3350
|
+
Lt
|
|
3355
3351
|
]
|
|
3356
3352
|
},
|
|
3357
3353
|
(e) => {
|
|
3358
|
-
var t =
|
|
3354
|
+
var t = Bt(2)(e);
|
|
3359
3355
|
return t[0] === 33 && t[1] === 1;
|
|
3360
3356
|
}
|
|
3361
3357
|
), Ua = Ze(
|
|
@@ -3363,28 +3359,28 @@ const Da = Ze(
|
|
|
3363
3359
|
application: [
|
|
3364
3360
|
{ codes: Oe(2) },
|
|
3365
3361
|
{ blockSize: Pe() },
|
|
3366
|
-
{ id: (e, t, o) =>
|
|
3367
|
-
|
|
3362
|
+
{ id: (e, t, o) => qt(o.blockSize)(e) },
|
|
3363
|
+
Lt
|
|
3368
3364
|
]
|
|
3369
3365
|
},
|
|
3370
3366
|
(e) => {
|
|
3371
|
-
var t =
|
|
3367
|
+
var t = Bt(2)(e);
|
|
3372
3368
|
return t[0] === 33 && t[1] === 255;
|
|
3373
3369
|
}
|
|
3374
3370
|
), Ra = Ze(
|
|
3375
3371
|
{
|
|
3376
|
-
comment: [{ codes: Oe(2) },
|
|
3372
|
+
comment: [{ codes: Oe(2) }, Lt]
|
|
3377
3373
|
},
|
|
3378
3374
|
(e) => {
|
|
3379
|
-
var t =
|
|
3375
|
+
var t = Bt(2)(e);
|
|
3380
3376
|
return t[0] === 33 && t[1] === 254;
|
|
3381
3377
|
}
|
|
3382
3378
|
), Ka = [
|
|
3383
|
-
{ header: [{ signature:
|
|
3379
|
+
{ header: [{ signature: qt(3) }, { version: qt(3) }] },
|
|
3384
3380
|
{
|
|
3385
3381
|
lsd: [
|
|
3386
|
-
{ width:
|
|
3387
|
-
{ height:
|
|
3382
|
+
{ width: $e(!0) },
|
|
3383
|
+
{ height: $e(!0) },
|
|
3388
3384
|
{
|
|
3389
3385
|
gct: to({
|
|
3390
3386
|
exists: { index: 0 },
|
|
@@ -3427,39 +3423,39 @@ const Da = Ze(
|
|
|
3427
3423
|
return o;
|
|
3428
3424
|
}, ja = (e, t, o) => {
|
|
3429
3425
|
const l = o;
|
|
3430
|
-
var r, s, i, u, c, d, b,
|
|
3431
|
-
const
|
|
3426
|
+
var r, s, i, u, c, d, b, C, f, M, p, E, _, x, j, N;
|
|
3427
|
+
const T = new Array(o), h = new Array(4096), y = new Array(4096), g = new Array(4096 + 1);
|
|
3432
3428
|
for (E = e, s = 1 << E, c = s + 1, r = s + 2, b = -1, u = E + 1, i = (1 << u) - 1, f = 0; f < s; f++)
|
|
3433
3429
|
h[f] = 0, y[f] = f;
|
|
3434
|
-
var
|
|
3435
|
-
for (
|
|
3430
|
+
var p, C, _, x, N, j;
|
|
3431
|
+
for (p = C = _ = x = N = j = 0, M = 0; M < l; ) {
|
|
3436
3432
|
if (x === 0) {
|
|
3437
|
-
if (
|
|
3438
|
-
|
|
3433
|
+
if (C < u) {
|
|
3434
|
+
p += t[j] << C, C += 8, j++;
|
|
3439
3435
|
continue;
|
|
3440
3436
|
}
|
|
3441
|
-
if (f =
|
|
3437
|
+
if (f = p & i, p >>= u, C -= u, f > r || f == c)
|
|
3442
3438
|
break;
|
|
3443
3439
|
if (f == s) {
|
|
3444
3440
|
u = E + 1, i = (1 << u) - 1, r = s + 2, b = -1;
|
|
3445
3441
|
continue;
|
|
3446
3442
|
}
|
|
3447
3443
|
if (b == -1) {
|
|
3448
|
-
|
|
3444
|
+
g[x++] = y[f], b = f, _ = f;
|
|
3449
3445
|
continue;
|
|
3450
3446
|
}
|
|
3451
|
-
for (d = f, f == r && (
|
|
3452
|
-
|
|
3453
|
-
|
|
3447
|
+
for (d = f, f == r && (g[x++] = _, f = b); f > s; )
|
|
3448
|
+
g[x++] = y[f], f = h[f];
|
|
3449
|
+
_ = y[f] & 255, g[x++] = _, r < 4096 && (h[r] = b, y[r] = _, r++, !(r & i) && r < 4096 && (u++, i += r)), b = d;
|
|
3454
3450
|
}
|
|
3455
|
-
x--,
|
|
3451
|
+
x--, T[N++] = g[x], M++;
|
|
3456
3452
|
}
|
|
3457
|
-
for (
|
|
3458
|
-
|
|
3459
|
-
return
|
|
3453
|
+
for (M = N; M < l; M++)
|
|
3454
|
+
T[M] = 0;
|
|
3455
|
+
return T;
|
|
3460
3456
|
}, Wa = (e) => {
|
|
3461
3457
|
const t = new Uint8Array(e);
|
|
3462
|
-
return
|
|
3458
|
+
return lt(Ba(t), Ka);
|
|
3463
3459
|
}, Ha = (e) => {
|
|
3464
3460
|
const t = e.pixels.length, o = new Uint8ClampedArray(t * 4);
|
|
3465
3461
|
for (var n = 0; n < t; n++) {
|
|
@@ -3485,8 +3481,8 @@ const Da = Ze(
|
|
|
3485
3481
|
}
|
|
3486
3482
|
};
|
|
3487
3483
|
return n.descriptor.lct && n.descriptor.lct.exists ? r.colorTable = n.lct : r.colorTable = t, e.gce && (r.delay = (e.gce.delay || 10) * 10, r.disposalType = e.gce.extras.disposal, e.gce.extras.transparentColorGiven && (r.transparentIndex = e.gce.transparentColorIndex)), o && (r.patch = Ha(r)), r;
|
|
3488
|
-
},
|
|
3489
|
-
function
|
|
3484
|
+
}, $a = (e, t) => e.frames.filter((o) => o.image).map((o) => qa(o, e.gct, t));
|
|
3485
|
+
function za(e, t, o) {
|
|
3490
3486
|
const n = Yo(t), a = e - 1;
|
|
3491
3487
|
let l = 0;
|
|
3492
3488
|
switch (o) {
|
|
@@ -3562,7 +3558,7 @@ class He {
|
|
|
3562
3558
|
else {
|
|
3563
3559
|
if (this.typeNumber > 40)
|
|
3564
3560
|
throw new Error(`Invalid QR version: ${this.typeNumber}`);
|
|
3565
|
-
if (
|
|
3561
|
+
if (!za(this.typeNumber, t, this.errorCorrectLevel))
|
|
3566
3562
|
throw new Error(`Data is too long for QR version: ${this.typeNumber}`);
|
|
3567
3563
|
}
|
|
3568
3564
|
const o = new Za(t);
|
|
@@ -3681,16 +3677,16 @@ class He {
|
|
|
3681
3677
|
let n = 0, a = 0, l = 0;
|
|
3682
3678
|
const r = new Array(o.length), s = new Array(o.length);
|
|
3683
3679
|
for (var i = 0; i < o.length; i++) {
|
|
3684
|
-
const f = o[i].dataCount,
|
|
3685
|
-
a = Math.max(a, f), l = Math.max(l,
|
|
3680
|
+
const f = o[i].dataCount, M = o[i].totalCount - f;
|
|
3681
|
+
a = Math.max(a, f), l = Math.max(l, M), r[i] = new Array(f);
|
|
3686
3682
|
for (var u = 0; u < r[i].length; u++)
|
|
3687
3683
|
r[i][u] = 255 & t.buffer[u + n];
|
|
3688
3684
|
n += f;
|
|
3689
|
-
const E = se.getErrorCorrectPolynomial(
|
|
3685
|
+
const E = se.getErrorCorrectPolynomial(M), h = new Ye(r[i], E.getLength() - 1).mod(E);
|
|
3690
3686
|
s[i] = new Array(E.getLength() - 1);
|
|
3691
3687
|
for (var u = 0; u < s[i].length; u++) {
|
|
3692
|
-
const
|
|
3693
|
-
s[i][u] =
|
|
3688
|
+
const g = u + h.getLength() - s[i].length;
|
|
3689
|
+
s[i][u] = g >= 0 ? h.get(g) : 0;
|
|
3694
3690
|
}
|
|
3695
3691
|
}
|
|
3696
3692
|
let c = 0;
|
|
@@ -4203,7 +4199,7 @@ const Fe = [
|
|
|
4203
4199
|
[2809, 2213, 1579, 1219],
|
|
4204
4200
|
[2953, 2331, 1663, 1273]
|
|
4205
4201
|
];
|
|
4206
|
-
var Ja = 100, be = 256, go = be - 1, We = 4, en = 16, oo = 1 << en, tn = 10, no = 10, Ya = oo >> no, el = oo << tn - no, tl = be >> 3,
|
|
4202
|
+
var Ja = 100, be = 256, go = be - 1, We = 4, en = 16, oo = 1 << en, tn = 10, no = 10, Ya = oo >> no, el = oo << tn - no, tl = be >> 3, $t = 6, ol = 1 << $t, nl = tl * ol, al = 30, on = 10, mt = 1 << on, nn = 8, vo = 1 << nn, ll = on + nn, Je = 1 << ll, bo = 499, yo = 491, wo = 487, an = 503, rl = 3 * an;
|
|
4207
4203
|
function il(e, t) {
|
|
4208
4204
|
var o, n, a, l, r;
|
|
4209
4205
|
function s() {
|
|
@@ -4216,66 +4212,66 @@ function il(e, t) {
|
|
|
4216
4212
|
for (var h = 0; h < be; h++)
|
|
4217
4213
|
o[h][0] >>= We, o[h][1] >>= We, o[h][2] >>= We, o[h][3] = h;
|
|
4218
4214
|
}
|
|
4219
|
-
function u(h, y,
|
|
4220
|
-
o[y][0] -= h * (o[y][0] -
|
|
4215
|
+
function u(h, y, g, p, C) {
|
|
4216
|
+
o[y][0] -= h * (o[y][0] - g) / mt, o[y][1] -= h * (o[y][1] - p) / mt, o[y][2] -= h * (o[y][2] - C) / mt;
|
|
4221
4217
|
}
|
|
4222
|
-
function c(h, y,
|
|
4223
|
-
for (var
|
|
4224
|
-
ne = r[
|
|
4218
|
+
function c(h, y, g, p, C) {
|
|
4219
|
+
for (var _ = Math.abs(y - h), x = Math.min(y + h, be), N = y + 1, j = y - 1, ee = 1, k, ne; N < x || j > _; )
|
|
4220
|
+
ne = r[ee++], N < x && (k = o[N++], k[0] -= ne * (k[0] - g) / Je, k[1] -= ne * (k[1] - p) / Je, k[2] -= ne * (k[2] - C) / Je), j > _ && (k = o[j--], k[0] -= ne * (k[0] - g) / Je, k[1] -= ne * (k[1] - p) / Je, k[2] -= ne * (k[2] - C) / Je);
|
|
4225
4221
|
}
|
|
4226
|
-
function d(h, y,
|
|
4227
|
-
var
|
|
4228
|
-
for (
|
|
4229
|
-
|
|
4230
|
-
return l[
|
|
4222
|
+
function d(h, y, g) {
|
|
4223
|
+
var p = 2147483647, C = p, _ = -1, x = _, N, j, ee, k, ne;
|
|
4224
|
+
for (N = 0; N < be; N++)
|
|
4225
|
+
j = o[N], ee = Math.abs(j[0] - h) + Math.abs(j[1] - y) + Math.abs(j[2] - g), ee < p && (p = ee, _ = N), k = ee - (a[N] >> en - We), k < C && (C = k, x = N), ne = l[N] >> no, l[N] -= ne, a[N] += ne << tn;
|
|
4226
|
+
return l[_] += Ya, a[_] -= el, x;
|
|
4231
4227
|
}
|
|
4232
4228
|
function b() {
|
|
4233
|
-
var h, y,
|
|
4229
|
+
var h, y, g, p, C, _, x = 0, N = 0;
|
|
4234
4230
|
for (h = 0; h < be; h++) {
|
|
4235
|
-
for (
|
|
4236
|
-
|
|
4237
|
-
if (
|
|
4238
|
-
for (n[x] =
|
|
4231
|
+
for (g = o[h], C = h, _ = g[1], y = h + 1; y < be; y++)
|
|
4232
|
+
p = o[y], p[1] < _ && (C = y, _ = p[1]);
|
|
4233
|
+
if (p = o[C], h != C && (y = p[0], p[0] = g[0], g[0] = y, y = p[1], p[1] = g[1], g[1] = y, y = p[2], p[2] = g[2], g[2] = y, y = p[3], p[3] = g[3], g[3] = y), _ != x) {
|
|
4234
|
+
for (n[x] = N + h >> 1, y = x + 1; y < _; y++)
|
|
4239
4235
|
n[y] = h;
|
|
4240
|
-
x =
|
|
4236
|
+
x = _, N = h;
|
|
4241
4237
|
}
|
|
4242
4238
|
}
|
|
4243
|
-
for (n[x] =
|
|
4239
|
+
for (n[x] = N + go >> 1, y = x + 1; y < 256; y++)
|
|
4244
4240
|
n[y] = go;
|
|
4245
4241
|
}
|
|
4246
|
-
function f(h, y,
|
|
4247
|
-
for (var
|
|
4248
|
-
|
|
4249
|
-
return
|
|
4250
|
-
}
|
|
4251
|
-
function
|
|
4252
|
-
var h, y = e.length,
|
|
4253
|
-
for (
|
|
4254
|
-
r[h] =
|
|
4255
|
-
var
|
|
4256
|
-
y < rl ? (t = 1,
|
|
4257
|
-
var
|
|
4258
|
-
for (h = 0; h <
|
|
4259
|
-
if (
|
|
4260
|
-
for (
|
|
4261
|
-
r[O] =
|
|
4242
|
+
function f(h, y, g) {
|
|
4243
|
+
for (var p, C, _, x = 1e3, N = -1, j = n[y], ee = j - 1; j < be || ee >= 0; )
|
|
4244
|
+
j < be && (C = o[j], _ = C[1] - y, _ >= x ? j = be : (j++, _ < 0 && (_ = -_), p = C[0] - h, p < 0 && (p = -p), _ += p, _ < x && (p = C[2] - g, p < 0 && (p = -p), _ += p, _ < x && (x = _, N = C[3])))), ee >= 0 && (C = o[ee], _ = y - C[1], _ >= x ? ee = -1 : (ee--, _ < 0 && (_ = -_), p = C[0] - h, p < 0 && (p = -p), _ += p, _ < x && (p = C[2] - g, p < 0 && (p = -p), _ += p, _ < x && (x = _, N = C[3]))));
|
|
4245
|
+
return N;
|
|
4246
|
+
}
|
|
4247
|
+
function M() {
|
|
4248
|
+
var h, y = e.length, g = 30 + (t - 1) / 3, p = y / (3 * t), C = ~~(p / Ja), _ = mt, x = nl, N = x >> $t;
|
|
4249
|
+
for (N <= 1 && (N = 0), h = 0; h < N; h++)
|
|
4250
|
+
r[h] = _ * ((N * N - h * h) * vo / (N * N));
|
|
4251
|
+
var j;
|
|
4252
|
+
y < rl ? (t = 1, j = 3) : y % bo !== 0 ? j = 3 * bo : y % yo !== 0 ? j = 3 * yo : y % wo !== 0 ? j = 3 * wo : j = 3 * an;
|
|
4253
|
+
var ee, k, ne, O, te = 0;
|
|
4254
|
+
for (h = 0; h < p; )
|
|
4255
|
+
if (ee = (e[te] & 255) << We, k = (e[te + 1] & 255) << We, ne = (e[te + 2] & 255) << We, O = d(ee, k, ne), u(_, O, ee, k, ne), N !== 0 && c(N, O, ee, k, ne), te += j, te >= y && (te -= y), h++, C === 0 && (C = 1), h % C === 0)
|
|
4256
|
+
for (_ -= _ / g, x -= x / al, N = x >> $t, N <= 1 && (N = 0), O = 0; O < N; O++)
|
|
4257
|
+
r[O] = _ * ((N * N - O * O) * vo / (N * N));
|
|
4262
4258
|
}
|
|
4263
4259
|
function E() {
|
|
4264
|
-
s(),
|
|
4260
|
+
s(), M(), i(), b();
|
|
4265
4261
|
}
|
|
4266
4262
|
this.buildColormap = E;
|
|
4267
|
-
function
|
|
4268
|
-
for (var h = [], y = [],
|
|
4269
|
-
y[o[
|
|
4270
|
-
for (var
|
|
4271
|
-
var
|
|
4272
|
-
h[
|
|
4263
|
+
function T() {
|
|
4264
|
+
for (var h = [], y = [], g = 0; g < be; g++)
|
|
4265
|
+
y[o[g][3]] = g;
|
|
4266
|
+
for (var p = 0, C = 0; C < be; C++) {
|
|
4267
|
+
var _ = y[C];
|
|
4268
|
+
h[p++] = o[_][0], h[p++] = o[_][1], h[p++] = o[_][2];
|
|
4273
4269
|
}
|
|
4274
4270
|
return h;
|
|
4275
4271
|
}
|
|
4276
|
-
this.getColormap =
|
|
4272
|
+
this.getColormap = T, this.lookupRGB = f;
|
|
4277
4273
|
}
|
|
4278
|
-
var ko = -1, ft = 12,
|
|
4274
|
+
var ko = -1, ft = 12, nt = 5003, sl = [
|
|
4279
4275
|
0,
|
|
4280
4276
|
1,
|
|
4281
4277
|
3,
|
|
@@ -4295,24 +4291,24 @@ var ko = -1, ft = 12, at = 5003, sl = [
|
|
|
4295
4291
|
65535
|
|
4296
4292
|
];
|
|
4297
4293
|
function ul(e, t, o, n) {
|
|
4298
|
-
var a = Math.max(2, n), l = new Uint8Array(256), r = new Int32Array(
|
|
4299
|
-
function
|
|
4300
|
-
l[c++] = O, c >= 254 &&
|
|
4294
|
+
var a = Math.max(2, n), l = new Uint8Array(256), r = new Int32Array(nt), s = new Int32Array(nt), i, u = 0, c, d = 0, b, f = !1, M, E, T, h, y, g;
|
|
4295
|
+
function p(O, te) {
|
|
4296
|
+
l[c++] = O, c >= 254 && j(te);
|
|
4301
4297
|
}
|
|
4302
|
-
function
|
|
4303
|
-
|
|
4298
|
+
function C(O) {
|
|
4299
|
+
_(nt), d = E + 2, f = !0, ne(E, O);
|
|
4304
4300
|
}
|
|
4305
|
-
function
|
|
4306
|
-
for (var
|
|
4307
|
-
r[
|
|
4301
|
+
function _(O) {
|
|
4302
|
+
for (var te = 0; te < O; ++te)
|
|
4303
|
+
r[te] = -1;
|
|
4308
4304
|
}
|
|
4309
|
-
function x(O,
|
|
4305
|
+
function x(O, te) {
|
|
4310
4306
|
var L, Ae, ue, Ce, Ve, I, U;
|
|
4311
|
-
for (
|
|
4307
|
+
for (M = O, f = !1, g = M, b = ee(g), E = 1 << O - 1, T = E + 1, d = E + 2, c = 0, Ce = k(), U = 0, L = nt; L < 65536; L *= 2)
|
|
4312
4308
|
++U;
|
|
4313
|
-
U = 8 - U, I =
|
|
4309
|
+
U = 8 - U, I = nt, _(I), ne(E, te);
|
|
4314
4310
|
e:
|
|
4315
|
-
for (; (Ae =
|
|
4311
|
+
for (; (Ae = k()) != ko; ) {
|
|
4316
4312
|
if (L = (Ae << ft) + Ce, ue = Ae << U ^ Ce, r[ue] === L) {
|
|
4317
4313
|
Ce = s[ue];
|
|
4318
4314
|
continue;
|
|
@@ -4325,36 +4321,36 @@ function ul(e, t, o, n) {
|
|
|
4325
4321
|
}
|
|
4326
4322
|
while (r[ue] >= 0);
|
|
4327
4323
|
}
|
|
4328
|
-
ne(Ce,
|
|
4324
|
+
ne(Ce, te), Ce = Ae, d < 1 << ft ? (s[ue] = d++, r[ue] = L) : C(te);
|
|
4329
4325
|
}
|
|
4330
|
-
ne(Ce,
|
|
4326
|
+
ne(Ce, te), ne(T, te);
|
|
4331
4327
|
}
|
|
4332
|
-
function
|
|
4328
|
+
function N(O) {
|
|
4333
4329
|
O.writeByte(a), h = e * t, y = 0, x(a + 1, O), O.writeByte(0);
|
|
4334
4330
|
}
|
|
4335
|
-
function
|
|
4331
|
+
function j(O) {
|
|
4336
4332
|
c > 0 && (O.writeByte(c), O.writeBytes(l, 0, c), c = 0);
|
|
4337
4333
|
}
|
|
4338
|
-
function
|
|
4334
|
+
function ee(O) {
|
|
4339
4335
|
return (1 << O) - 1;
|
|
4340
4336
|
}
|
|
4341
|
-
function
|
|
4337
|
+
function k() {
|
|
4342
4338
|
if (h === 0)
|
|
4343
4339
|
return ko;
|
|
4344
4340
|
--h;
|
|
4345
4341
|
var O = o[y++];
|
|
4346
4342
|
return O & 255;
|
|
4347
4343
|
}
|
|
4348
|
-
function ne(O,
|
|
4349
|
-
for (i &= sl[u], u > 0 ? i |= O << u : i = O, u +=
|
|
4350
|
-
|
|
4351
|
-
if ((d > b || f) && (f ? (b =
|
|
4344
|
+
function ne(O, te) {
|
|
4345
|
+
for (i &= sl[u], u > 0 ? i |= O << u : i = O, u += g; u >= 8; )
|
|
4346
|
+
p(i & 255, te), i >>= 8, u -= 8;
|
|
4347
|
+
if ((d > b || f) && (f ? (b = ee(g = M), f = !1) : (++g, g == ft ? b = 1 << ft : b = ee(g))), O == T) {
|
|
4352
4348
|
for (; u > 0; )
|
|
4353
|
-
|
|
4354
|
-
|
|
4349
|
+
p(i & 255, te), i >>= 8, u -= 8;
|
|
4350
|
+
j(te);
|
|
4355
4351
|
}
|
|
4356
4352
|
}
|
|
4357
|
-
this.encode =
|
|
4353
|
+
this.encode = N;
|
|
4358
4354
|
}
|
|
4359
4355
|
function xe() {
|
|
4360
4356
|
this.page = -1, this.pages = [], this.newPage();
|
|
@@ -4488,13 +4484,13 @@ ce.prototype.ditherPixels = function(e, t) {
|
|
|
4488
4484
|
t && (i = i * -1);
|
|
4489
4485
|
for (var c = i == 1 ? 0 : r - 1, d = i == 1 ? r : 0; c !== d; c += i) {
|
|
4490
4486
|
a = u * r + c;
|
|
4491
|
-
var b = a * 3, f = s[b],
|
|
4492
|
-
b = this.findClosestRGB(f,
|
|
4493
|
-
for (var
|
|
4494
|
-
var
|
|
4495
|
-
if (
|
|
4496
|
-
var
|
|
4497
|
-
b = a +
|
|
4487
|
+
var b = a * 3, f = s[b], M = s[b + 1], E = s[b + 2];
|
|
4488
|
+
b = this.findClosestRGB(f, M, E), this.usedEntry[b] = !0, this.indexedPixels[a] = b, b *= 3;
|
|
4489
|
+
for (var T = this.colorTab[b], h = this.colorTab[b + 1], y = this.colorTab[b + 2], g = f - T, p = M - h, C = E - y, _ = i == 1 ? 0 : n.length - 1, x = i == 1 ? n.length : 0; _ !== x; _ += i) {
|
|
4490
|
+
var N = n[_][1], j = n[_][2];
|
|
4491
|
+
if (N + c >= 0 && N + c < r && j + u >= 0 && j + u < l) {
|
|
4492
|
+
var ee = n[_][0];
|
|
4493
|
+
b = a + N + j * r, b *= 3, s[b] = Math.max(0, Math.min(255, s[b] + g * ee)), s[b + 1] = Math.max(0, Math.min(255, s[b + 1] + p * ee)), s[b + 2] = Math.max(0, Math.min(255, s[b + 2] + C * ee));
|
|
4498
4494
|
}
|
|
4499
4495
|
}
|
|
4500
4496
|
}
|
|
@@ -4690,18 +4686,18 @@ class ae {
|
|
|
4690
4686
|
})), t.fillStyle = u;
|
|
4691
4687
|
}
|
|
4692
4688
|
_draw() {
|
|
4693
|
-
var t, o, n, a, l, r, s, i, u, c, d, b, f,
|
|
4689
|
+
var t, o, n, a, l, r, s, i, u, c, d, b, f, M, E, T, h, y, g;
|
|
4694
4690
|
return cl(this, void 0, void 0, function* () {
|
|
4695
|
-
const
|
|
4696
|
-
let
|
|
4697
|
-
(
|
|
4698
|
-
const x = Math.ceil(
|
|
4691
|
+
const p = (t = this.qrCode) === null || t === void 0 ? void 0 : t.moduleCount, C = this.options.size;
|
|
4692
|
+
let _ = this.options.margin;
|
|
4693
|
+
(_ < 0 || _ * 2 >= C) && (_ = 0);
|
|
4694
|
+
const x = Math.ceil(_), N = C - 2 * _, j = this.options.whiteMargin, ee = this.options.backgroundDimming, k = Math.ceil(N / p), ne = k * p, O = ne + 2 * x, te = new Ue(O, O), L = te.getContext("2d");
|
|
4699
4695
|
this._clear(), L.save(), L.translate(x, x);
|
|
4700
4696
|
const Ae = new Ue(O, O), ue = Ae.getContext("2d");
|
|
4701
4697
|
let Ce = null, Ve = [];
|
|
4702
4698
|
if (this.options.gifBackground) {
|
|
4703
4699
|
const B = Wa(this.options.gifBackground);
|
|
4704
|
-
if (Ce = B, Ve =
|
|
4700
|
+
if (Ce = B, Ve = $a(B, !0), this.options.autoColor) {
|
|
4705
4701
|
let K = 0, P = 0, H = 0, de = 0;
|
|
4706
4702
|
for (let fe = 0; fe < Ve[0].colorTable.length; fe++) {
|
|
4707
4703
|
const he = Ve[0].colorTable[fe];
|
|
@@ -4715,26 +4711,26 @@ class ae {
|
|
|
4715
4711
|
const K = ae._getAverageRGB(B);
|
|
4716
4712
|
this.options.colorDark = `rgb(${K.r},${K.g},${K.b})`;
|
|
4717
4713
|
}
|
|
4718
|
-
ue.drawImage(B, 0, 0, B.width, B.height, 0, 0, O, O), ue.rect(0, 0, O, O), ue.fillStyle =
|
|
4714
|
+
ue.drawImage(B, 0, 0, B.width, B.height, 0, 0, O, O), ue.rect(0, 0, O, O), ue.fillStyle = ee, ue.fill();
|
|
4719
4715
|
} else
|
|
4720
4716
|
ue.rect(0, 0, O, O), ue.fillStyle = this.options.colorLight, ue.fill();
|
|
4721
4717
|
const I = se.getPatternPosition(this.qrCode.typeNumber), U = ((n = (o = this.options.components) === null || o === void 0 ? void 0 : o.data) === null || n === void 0 ? void 0 : n.scale) || pt, le = (1 - U) * 0.5;
|
|
4722
|
-
for (let B = 0; B <
|
|
4723
|
-
for (let K = 0; K <
|
|
4724
|
-
const P = this.qrCode.isDark(B, K), H = K < 8 && (B < 8 || B >=
|
|
4718
|
+
for (let B = 0; B < p; B++)
|
|
4719
|
+
for (let K = 0; K < p; K++) {
|
|
4720
|
+
const P = this.qrCode.isDark(B, K), H = K < 8 && (B < 8 || B >= p - 8) || K >= p - 8 && B < 8, de = B == 6 && K >= 8 && K <= p - 8 || K == 6 && B >= 8 && B <= p - 8;
|
|
4725
4721
|
let fe = H || de;
|
|
4726
4722
|
for (let _e = 1; _e < I.length - 1; _e++)
|
|
4727
4723
|
fe = fe || B >= I[_e] - 2 && B <= I[_e] + 2 && K >= I[_e] - 2 && K <= I[_e] + 2;
|
|
4728
|
-
const he = K *
|
|
4724
|
+
const he = K * k + (fe ? 0 : le * k), Ee = B * k + (fe ? 0 : le * k);
|
|
4729
4725
|
if (L.strokeStyle = P ? this.options.colorDark : this.options.colorLight, L.lineWidth = 0.5, L.fillStyle = P ? this.options.colorDark : this.options.colorLight, I.length === 0)
|
|
4730
|
-
fe || L.fillRect(he, Ee, (fe ? 1 : U) *
|
|
4726
|
+
fe || L.fillRect(he, Ee, (fe ? 1 : U) * k, (fe ? 1 : U) * k);
|
|
4731
4727
|
else {
|
|
4732
|
-
const _e = K <
|
|
4733
|
-
!fe && !_e && L.fillRect(he, Ee, (fe ? 1 : U) *
|
|
4728
|
+
const _e = K < p - 4 && K >= p - 4 - 5 && B < p - 4 && B >= p - 4 - 5;
|
|
4729
|
+
!fe && !_e && L.fillRect(he, Ee, (fe ? 1 : U) * k, (fe ? 1 : U) * k);
|
|
4734
4730
|
}
|
|
4735
4731
|
}
|
|
4736
4732
|
const me = I[I.length - 1], A = this.options.colorLight;
|
|
4737
|
-
if (L.fillStyle = A, L.fillRect(0, 0, 8 *
|
|
4733
|
+
if (L.fillStyle = A, L.fillRect(0, 0, 8 * k, 8 * k), L.fillRect(0, (p - 8) * k, 8 * k, 8 * k), L.fillRect((p - 8) * k, 0, 8 * k, 8 * k), !((l = (a = this.options.components) === null || a === void 0 ? void 0 : a.timing) === null || l === void 0) && l.protectors && (L.fillRect(8 * k, 6 * k, (p - 8 - 8) * k, k), L.fillRect(6 * k, 8 * k, k, (p - 8 - 8) * k)), !((s = (r = this.options.components) === null || r === void 0 ? void 0 : r.cornerAlignment) === null || s === void 0) && s.protectors && ae._drawAlignProtector(L, me, me, k), !((u = (i = this.options.components) === null || i === void 0 ? void 0 : i.alignment) === null || u === void 0) && u.protectors)
|
|
4738
4734
|
for (let B = 0; B < I.length; B++)
|
|
4739
4735
|
for (let K = 0; K < I.length; K++) {
|
|
4740
4736
|
const P = I[K], H = I[B];
|
|
@@ -4743,16 +4739,16 @@ class ae {
|
|
|
4743
4739
|
continue;
|
|
4744
4740
|
if (P === me && H === me)
|
|
4745
4741
|
continue;
|
|
4746
|
-
ae._drawAlignProtector(L, P, H,
|
|
4742
|
+
ae._drawAlignProtector(L, P, H, k);
|
|
4747
4743
|
}
|
|
4748
4744
|
}
|
|
4749
|
-
L.fillStyle = this.options.colorDark, L.fillRect(0, 0, 7 *
|
|
4745
|
+
L.fillStyle = this.options.colorDark, L.fillRect(0, 0, 7 * k, k), L.fillRect((p - 7) * k, 0, 7 * k, k), L.fillRect(0, 6 * k, 7 * k, k), L.fillRect((p - 7) * k, 6 * k, 7 * k, k), L.fillRect(0, (p - 7) * k, 7 * k, k), L.fillRect(0, (p - 7 + 6) * k, 7 * k, k), L.fillRect(0, 0, k, 7 * k), L.fillRect(6 * k, 0, k, 7 * k), L.fillRect((p - 7) * k, 0, k, 7 * k), L.fillRect((p - 7 + 6) * k, 0, k, 7 * k), L.fillRect(0, (p - 7) * k, k, 7 * k), L.fillRect(6 * k, (p - 7) * k, k, 7 * k), L.fillRect(2 * k, 2 * k, 3 * k, 3 * k), L.fillRect((p - 7 + 2) * k, 2 * k, 3 * k, 3 * k), L.fillRect(2 * k, (p - 7 + 2) * k, 3 * k, 3 * k);
|
|
4750
4746
|
const R = ((d = (c = this.options.components) === null || c === void 0 ? void 0 : c.timing) === null || d === void 0 ? void 0 : d.scale) || pt, G = (1 - R) * 0.5;
|
|
4751
|
-
for (let B = 0; B <
|
|
4752
|
-
ae._drawDot(L, 8 + B, 6,
|
|
4747
|
+
for (let B = 0; B < p - 8; B += 2)
|
|
4748
|
+
ae._drawDot(L, 8 + B, 6, k, G, R), ae._drawDot(L, 6, 8 + B, k, G, R);
|
|
4753
4749
|
const re = ((f = (b = this.options.components) === null || b === void 0 ? void 0 : b.cornerAlignment) === null || f === void 0 ? void 0 : f.scale) || pt, ke = (1 - re) * 0.5;
|
|
4754
|
-
ae._drawAlign(L, me, me,
|
|
4755
|
-
const ie = ((h = (
|
|
4750
|
+
ae._drawAlign(L, me, me, k, ke, re, this.options.colorDark, ((E = (M = this.options.components) === null || M === void 0 ? void 0 : M.cornerAlignment) === null || E === void 0 ? void 0 : E.protectors) || !1);
|
|
4751
|
+
const ie = ((h = (T = this.options.components) === null || T === void 0 ? void 0 : T.alignment) === null || h === void 0 ? void 0 : h.scale) || pt, Te = (1 - ie) * 0.5;
|
|
4756
4752
|
for (let B = 0; B < I.length; B++)
|
|
4757
4753
|
for (let K = 0; K < I.length; K++) {
|
|
4758
4754
|
const P = I[K], H = I[B];
|
|
@@ -4761,10 +4757,10 @@ class ae {
|
|
|
4761
4757
|
continue;
|
|
4762
4758
|
if (P === me && H === me)
|
|
4763
4759
|
continue;
|
|
4764
|
-
ae._drawAlign(L, P, H,
|
|
4760
|
+
ae._drawAlign(L, P, H, k, Te, ie, this.options.colorDark, ((g = (y = this.options.components) === null || y === void 0 ? void 0 : y.alignment) === null || g === void 0 ? void 0 : g.protectors) || !1);
|
|
4765
4761
|
}
|
|
4766
4762
|
}
|
|
4767
|
-
if (
|
|
4763
|
+
if (j && (L.fillStyle = this.options.backgroundColor, L.fillRect(-x, -x, O, x), L.fillRect(-x, ne, O, x), L.fillRect(ne, -x, x, O), L.fillRect(-x, -x, x, O)), this.options.logoImage) {
|
|
4768
4764
|
const B = yield Co(this.options.logoImage);
|
|
4769
4765
|
let K = this.options.logoScale, P = this.options.logoMargin, H = this.options.logoCornerRadius;
|
|
4770
4766
|
(K <= 0 || K >= 1) && (K = 0.2), P < 0 && (P = 0), H < 0 && (H = 0);
|
|
@@ -4776,24 +4772,24 @@ class ae {
|
|
|
4776
4772
|
if (Ce) {
|
|
4777
4773
|
let B, K, P, H, de, fe;
|
|
4778
4774
|
if (Ve.forEach(function(he) {
|
|
4779
|
-
B || (B = new ce(
|
|
4775
|
+
B || (B = new ce(C, C), B.setDelay(he.delay), B.setRepeat(0));
|
|
4780
4776
|
const { width: Ee, height: _e } = he.dims;
|
|
4781
4777
|
K || (K = new Ue(Ee, _e), P = K.getContext("2d"), P.rect(0, 0, K.width, K.height), P.fillStyle = "#ffffff", P.fill()), (!H || !fe || Ee !== H.width || _e !== H.height) && (H = new Ue(Ee, _e), de = H.getContext("2d"), fe = de.createImageData(Ee, _e)), fe.data.set(he.patch), de.putImageData(fe, 0, 0), P.drawImage(H.getContext("2d").canvas, he.dims.left, he.dims.top);
|
|
4782
|
-
const
|
|
4783
|
-
ot.drawImage(K.getContext("2d").canvas, 0, 0, O, O), ot.rect(0, 0, O, O), ot.fillStyle =
|
|
4784
|
-
const
|
|
4785
|
-
ao.drawImage(
|
|
4778
|
+
const ct = new Ue(O, O), ot = ct.getContext("2d");
|
|
4779
|
+
ot.drawImage(K.getContext("2d").canvas, 0, 0, O, O), ot.rect(0, 0, O, O), ot.fillStyle = ee, ot.fill(), ot.drawImage(te.getContext("2d").canvas, 0, 0, O, O);
|
|
4780
|
+
const Dt = new Ue(C, C), ao = Dt.getContext("2d");
|
|
4781
|
+
ao.drawImage(ct.getContext("2d").canvas, 0, 0, C, C), B.addFrame(ao.getImageData(0, 0, Dt.width, Dt.height).data);
|
|
4786
4782
|
}), !B)
|
|
4787
4783
|
throw new Error("No frames.");
|
|
4788
4784
|
if (B.finish(), To(this.canvas)) {
|
|
4789
|
-
const Ee = B.stream().toFlattenUint8Array().reduce((_e,
|
|
4785
|
+
const Ee = B.stream().toFlattenUint8Array().reduce((_e, ct) => _e + String.fromCharCode(ct), "");
|
|
4790
4786
|
return Promise.resolve(`data:image/gif;base64,${window.btoa(Ee)}`);
|
|
4791
4787
|
}
|
|
4792
4788
|
return Promise.resolve(Buffer.from(B.stream().toFlattenUint8Array()));
|
|
4793
4789
|
} else {
|
|
4794
|
-
ue.drawImage(
|
|
4795
|
-
const B = new Ue(
|
|
4796
|
-
B.getContext("2d").drawImage(
|
|
4790
|
+
ue.drawImage(te.getContext("2d").canvas, 0, 0, O, O), L.drawImage(Ae.getContext("2d").canvas, -x, -x, O, O);
|
|
4791
|
+
const B = new Ue(C, C);
|
|
4792
|
+
B.getContext("2d").drawImage(te.getContext("2d").canvas, 0, 0, C, C), this.canvas = B;
|
|
4797
4793
|
const P = this.options.gifBackground ? "gif" : "png";
|
|
4798
4794
|
return To(this.canvas) ? Promise.resolve(this.canvas.toDataURL(P)) : Promise.resolve(this.canvas.toBuffer(P));
|
|
4799
4795
|
}
|
|
@@ -5009,10 +5005,10 @@ const dl = {
|
|
|
5009
5005
|
correctLevel: n.correctLevel,
|
|
5010
5006
|
logoMargin: n.logoMargin,
|
|
5011
5007
|
logoCornerRadius: n.logoCornerRadius,
|
|
5012
|
-
whiteMargin:
|
|
5008
|
+
whiteMargin: Ut(n.whiteMargin),
|
|
5013
5009
|
dotScale: n.dotScale,
|
|
5014
|
-
autoColor:
|
|
5015
|
-
binarize:
|
|
5010
|
+
autoColor: Ut(n.autoColor),
|
|
5011
|
+
binarize: Ut(n.binarize),
|
|
5016
5012
|
binarizeThreshold: n.binarizeThreshold,
|
|
5017
5013
|
components: n.components
|
|
5018
5014
|
}).draw().then((a) => {
|
|
@@ -5026,9 +5022,9 @@ function fl(e, t, o, n, a, l) {
|
|
|
5026
5022
|
key: 0,
|
|
5027
5023
|
style: { display: "inline-block" },
|
|
5028
5024
|
src: a.imgUrl
|
|
5029
|
-
}, null, 8, ml)) :
|
|
5025
|
+
}, null, 8, ml)) : W("", !0);
|
|
5030
5026
|
}
|
|
5031
|
-
const hl = /* @__PURE__ */
|
|
5027
|
+
const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = { style: { "text-align": "center" } }, vl = { class: "ImageViewer" }, bl = { class: "ImageViewer__image" }, yl = ["onClick"], wl = /* @__PURE__ */ Y({
|
|
5032
5028
|
__name: "index",
|
|
5033
5029
|
props: {
|
|
5034
5030
|
viewName: null,
|
|
@@ -5043,71 +5039,71 @@ const hl = /* @__PURE__ */ Zt(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5043
5039
|
"return-pagination-props"
|
|
5044
5040
|
],
|
|
5045
5041
|
setup(e, { emit: t }) {
|
|
5046
|
-
const o = e, { reload: n, reloadFlag: a } =
|
|
5047
|
-
var
|
|
5048
|
-
return (h = (
|
|
5042
|
+
const o = e, { reload: n, reloadFlag: a } = $o(), l = D(() => {
|
|
5043
|
+
var T, h;
|
|
5044
|
+
return (h = (T = o.board) == null ? void 0 : T.tableData) == null ? void 0 : h.keyName;
|
|
5049
5045
|
}), r = D(() => {
|
|
5050
|
-
var
|
|
5051
|
-
return Wn((
|
|
5052
|
-
}), s =
|
|
5053
|
-
function i(
|
|
5054
|
-
s.value =
|
|
5046
|
+
var T;
|
|
5047
|
+
return Wn((T = o.board) == null ? void 0 : T.columns);
|
|
5048
|
+
}), s = $([]);
|
|
5049
|
+
function i(T) {
|
|
5050
|
+
s.value = T, t("return-selected-key", s.value);
|
|
5055
5051
|
}
|
|
5056
5052
|
const u = D(() => ({
|
|
5057
5053
|
current: o.paginationProps.page + 1,
|
|
5058
5054
|
pageSize: o.paginationProps.count,
|
|
5059
5055
|
total: o.paginationProps.totalCount,
|
|
5060
|
-
onChange: function(
|
|
5061
|
-
t("return-pagination-props",
|
|
5056
|
+
onChange: function(T) {
|
|
5057
|
+
t("return-pagination-props", T);
|
|
5062
5058
|
},
|
|
5063
5059
|
showJumper: !0
|
|
5064
5060
|
}));
|
|
5065
|
-
function c(
|
|
5066
|
-
return
|
|
5061
|
+
function c(T, h) {
|
|
5062
|
+
return T.value != "" ? ze.render(T.value, { item: h }) : h[T.keyName];
|
|
5067
5063
|
}
|
|
5068
|
-
function d(
|
|
5064
|
+
function d(T, h) {
|
|
5069
5065
|
var y;
|
|
5070
|
-
if (!Ne(
|
|
5071
|
-
let
|
|
5072
|
-
if (h[
|
|
5073
|
-
return
|
|
5066
|
+
if (!Ne(T.enums)) {
|
|
5067
|
+
let g = T.enums.filter((p) => {
|
|
5068
|
+
if (h[T.keyName] == null && (h[T.keyName] = ""), p.value == String(h[T.keyName]))
|
|
5069
|
+
return p.text;
|
|
5074
5070
|
});
|
|
5075
|
-
return
|
|
5071
|
+
return g.length ? (y = g.shift()) == null ? void 0 : y.text : h[T.keyName];
|
|
5076
5072
|
}
|
|
5077
5073
|
}
|
|
5078
|
-
function b(
|
|
5079
|
-
if (
|
|
5080
|
-
return
|
|
5081
|
-
if (
|
|
5082
|
-
return
|
|
5074
|
+
function b(T, h) {
|
|
5075
|
+
if (T.value != "")
|
|
5076
|
+
return ze.render(T.value, { item: h });
|
|
5077
|
+
if (T.value == "")
|
|
5078
|
+
return Wt(h[T.keyName]).format("YYYY-MM-DD HH:mm:ss");
|
|
5083
5079
|
}
|
|
5084
|
-
function f(
|
|
5085
|
-
return
|
|
5080
|
+
function f(T, h) {
|
|
5081
|
+
return T.filter((y) => {
|
|
5086
5082
|
if (y.showIf != "1") {
|
|
5087
|
-
let
|
|
5083
|
+
let g, p;
|
|
5088
5084
|
try {
|
|
5089
|
-
|
|
5090
|
-
} catch (
|
|
5091
|
-
console.warn(
|
|
5085
|
+
g = ze.render(y.showIf, { item: h }), p = Ht(g, { item: h });
|
|
5086
|
+
} catch (C) {
|
|
5087
|
+
console.warn(C);
|
|
5092
5088
|
}
|
|
5093
|
-
return
|
|
5089
|
+
return p;
|
|
5094
5090
|
} else
|
|
5095
5091
|
return y;
|
|
5096
5092
|
});
|
|
5097
5093
|
}
|
|
5098
|
-
function
|
|
5099
|
-
t("table-button-action",
|
|
5094
|
+
function M(T, h) {
|
|
5095
|
+
t("table-button-action", T, h);
|
|
5100
5096
|
}
|
|
5101
|
-
function E(
|
|
5102
|
-
t("table-form-confirm",
|
|
5097
|
+
function E(T, h) {
|
|
5098
|
+
t("table-form-confirm", T, h);
|
|
5103
5099
|
}
|
|
5104
5100
|
return we(
|
|
5105
5101
|
() => o.tableData,
|
|
5106
5102
|
() => n(),
|
|
5107
5103
|
{ deep: !0 }
|
|
5108
|
-
), (
|
|
5109
|
-
const y = F("t-button"),
|
|
5110
|
-
return m(a) ?
|
|
5104
|
+
), (T, h) => {
|
|
5105
|
+
const y = F("t-button"), g = F("t-popup"), p = F("t-icon"), C = F("t-image"), _ = F("t-image-viewer");
|
|
5106
|
+
return m(a) ? W("", !0) : (v(), S(m(Do), {
|
|
5111
5107
|
key: 0,
|
|
5112
5108
|
commonTableProps: {
|
|
5113
5109
|
data: e.tableData,
|
|
@@ -5118,34 +5114,34 @@ const hl = /* @__PURE__ */ Zt(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5118
5114
|
onSelectChange: i
|
|
5119
5115
|
}
|
|
5120
5116
|
}, {
|
|
5121
|
-
TEXT:
|
|
5122
|
-
|
|
5117
|
+
TEXT: w(({ col: x, row: N }) => [
|
|
5118
|
+
J(ge(c(x, N)), 1)
|
|
5123
5119
|
]),
|
|
5124
|
-
ENUMS:
|
|
5125
|
-
|
|
5126
|
-
innerHTML: d(
|
|
5120
|
+
ENUMS: w(({ col: x, row: N }) => [
|
|
5121
|
+
Z("span", {
|
|
5122
|
+
innerHTML: d(x, N)
|
|
5127
5123
|
}, null, 8, pl)
|
|
5128
5124
|
]),
|
|
5129
|
-
DATE:
|
|
5130
|
-
|
|
5125
|
+
DATE: w(({ col: x, row: N }) => [
|
|
5126
|
+
J(ge(b(x, N)), 1)
|
|
5131
5127
|
]),
|
|
5132
|
-
QR_CODE:
|
|
5133
|
-
V(
|
|
5134
|
-
content:
|
|
5128
|
+
QR_CODE: w(({ col: x, row: N }) => [
|
|
5129
|
+
V(g, null, {
|
|
5130
|
+
content: w(() => [
|
|
5135
5131
|
V(hl, {
|
|
5136
|
-
text: c(
|
|
5132
|
+
text: c(x, N),
|
|
5137
5133
|
size: 80,
|
|
5138
5134
|
margin: 0
|
|
5139
5135
|
}, null, 8, ["text"]),
|
|
5140
|
-
|
|
5136
|
+
Z("div", gl, ge(N.code), 1)
|
|
5141
5137
|
]),
|
|
5142
|
-
default:
|
|
5138
|
+
default: w(() => [
|
|
5143
5139
|
V(y, {
|
|
5144
5140
|
variant: "text",
|
|
5145
5141
|
theme: "primary"
|
|
5146
5142
|
}, {
|
|
5147
|
-
default:
|
|
5148
|
-
|
|
5143
|
+
default: w(() => [
|
|
5144
|
+
J("预览")
|
|
5149
5145
|
]),
|
|
5150
5146
|
_: 1
|
|
5151
5147
|
})
|
|
@@ -5153,52 +5149,75 @@ const hl = /* @__PURE__ */ Zt(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5153
5149
|
_: 2
|
|
5154
5150
|
}, 1024)
|
|
5155
5151
|
]),
|
|
5156
|
-
FORM_ITEM:
|
|
5152
|
+
FORM_ITEM: w(({ col: x, row: N }) => [
|
|
5157
5153
|
V(ua, {
|
|
5158
5154
|
viewName: e.viewName,
|
|
5159
|
-
col:
|
|
5160
|
-
row:
|
|
5155
|
+
col: x,
|
|
5156
|
+
row: N,
|
|
5161
5157
|
onBlur: E
|
|
5162
5158
|
}, null, 8, ["viewName", "col", "row"])
|
|
5163
5159
|
]),
|
|
5164
|
-
IMAGE:
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5160
|
+
IMAGE: w(({ col: x, row: N }) => [
|
|
5161
|
+
Z("div", vl, [
|
|
5162
|
+
V(_, {
|
|
5163
|
+
images: [c(x, N)]
|
|
5164
|
+
}, {
|
|
5165
|
+
trigger: w(({ open: j }) => [
|
|
5166
|
+
Z("div", bl, [
|
|
5167
|
+
V(C, {
|
|
5168
|
+
class: "ImageViewer__image--img",
|
|
5169
|
+
src: c(x, N),
|
|
5170
|
+
shape: "round",
|
|
5171
|
+
fit: "scale-down"
|
|
5172
|
+
}, {
|
|
5173
|
+
error: w(() => [
|
|
5174
|
+
x.name == "头像" ? (v(), S(p, {
|
|
5175
|
+
key: 0,
|
|
5176
|
+
name: "user"
|
|
5177
|
+
})) : (v(), S(p, {
|
|
5178
|
+
key: 1,
|
|
5179
|
+
name: "file-image"
|
|
5180
|
+
}))
|
|
5181
|
+
]),
|
|
5182
|
+
loading: w(() => [
|
|
5183
|
+
x.name == "头像" ? (v(), S(p, {
|
|
5184
|
+
key: 0,
|
|
5185
|
+
name: "user"
|
|
5186
|
+
})) : (v(), S(p, {
|
|
5187
|
+
key: 1,
|
|
5188
|
+
name: "file-image",
|
|
5189
|
+
size: "large"
|
|
5190
|
+
}))
|
|
5191
|
+
]),
|
|
5192
|
+
_: 2
|
|
5193
|
+
}, 1032, ["src"]),
|
|
5194
|
+
Z("div", {
|
|
5195
|
+
class: "ImageViewer__hover",
|
|
5196
|
+
onClick: j
|
|
5197
|
+
}, [
|
|
5198
|
+
Z("span", null, [
|
|
5199
|
+
V(p, {
|
|
5200
|
+
name: "browse",
|
|
5201
|
+
size: "1.4em"
|
|
5202
|
+
}),
|
|
5203
|
+
J(" 预览")
|
|
5204
|
+
])
|
|
5205
|
+
], 8, yl)
|
|
5206
|
+
])
|
|
5207
|
+
]),
|
|
5208
|
+
_: 2
|
|
5209
|
+
}, 1032, ["images"])
|
|
5210
|
+
])
|
|
5192
5211
|
]),
|
|
5193
|
-
BUTTONS:
|
|
5194
|
-
(v(!0), q(ve, null, ye(f(
|
|
5212
|
+
BUTTONS: w(({ col: x, row: N }) => [
|
|
5213
|
+
(v(!0), q(ve, null, ye(f(x.buttons, N), (j) => (v(), S(y, {
|
|
5195
5214
|
theme: "primary",
|
|
5196
5215
|
variant: "text",
|
|
5197
|
-
key:
|
|
5198
|
-
onClick: (
|
|
5216
|
+
key: j.buttonId,
|
|
5217
|
+
onClick: (ee) => M(j, N)
|
|
5199
5218
|
}, {
|
|
5200
|
-
default:
|
|
5201
|
-
|
|
5219
|
+
default: w(() => [
|
|
5220
|
+
J(ge(j.name), 1)
|
|
5202
5221
|
]),
|
|
5203
5222
|
_: 2
|
|
5204
5223
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -5208,7 +5227,7 @@ const hl = /* @__PURE__ */ Zt(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5208
5227
|
};
|
|
5209
5228
|
}
|
|
5210
5229
|
});
|
|
5211
|
-
const
|
|
5230
|
+
const kl = /* @__PURE__ */ St(wl, [["__scopeId", "data-v-78e0f314"]]), Cl = /* @__PURE__ */ Y({
|
|
5212
5231
|
__name: "index",
|
|
5213
5232
|
props: {
|
|
5214
5233
|
viewName: null,
|
|
@@ -5219,7 +5238,7 @@ const bl = /* @__PURE__ */ J({
|
|
|
5219
5238
|
const t = e, o = D(() => {
|
|
5220
5239
|
var i;
|
|
5221
5240
|
return (i = t == null ? void 0 : t.board) == null ? void 0 : i.tabs;
|
|
5222
|
-
}), n =
|
|
5241
|
+
}), n = $((s = (r = o.value) == null ? void 0 : r[0]) == null ? void 0 : s.title);
|
|
5223
5242
|
function a(i) {
|
|
5224
5243
|
n.value = i;
|
|
5225
5244
|
}
|
|
@@ -5228,27 +5247,27 @@ const bl = /* @__PURE__ */ J({
|
|
|
5228
5247
|
}
|
|
5229
5248
|
return (i, u) => {
|
|
5230
5249
|
const c = F("t-card"), d = F("t-tab-panel"), b = F("t-tabs");
|
|
5231
|
-
return v(),
|
|
5232
|
-
class:
|
|
5250
|
+
return v(), S(b, {
|
|
5251
|
+
class: z(`${m(X)}__tab`),
|
|
5233
5252
|
placement: "left",
|
|
5234
5253
|
value: n.value,
|
|
5235
5254
|
onChange: a
|
|
5236
5255
|
}, {
|
|
5237
|
-
default:
|
|
5238
|
-
(v(!0), q(ve, null, ye(m(o), (f) => (v(),
|
|
5256
|
+
default: w(() => [
|
|
5257
|
+
(v(!0), q(ve, null, ye(m(o), (f) => (v(), S(d, {
|
|
5239
5258
|
key: f.title,
|
|
5240
5259
|
value: f.title,
|
|
5241
5260
|
label: f.title
|
|
5242
5261
|
}, {
|
|
5243
|
-
default:
|
|
5262
|
+
default: w(() => [
|
|
5244
5263
|
V(c, { bordered: !1 }, {
|
|
5245
|
-
content:
|
|
5246
|
-
f.board ? (v(),
|
|
5264
|
+
content: w(() => [
|
|
5265
|
+
f.board ? (v(), S(ln, {
|
|
5247
5266
|
key: 0,
|
|
5248
5267
|
viewName: e.viewName,
|
|
5249
5268
|
board: f.board,
|
|
5250
5269
|
onCloseDialog: l
|
|
5251
|
-
}, null, 8, ["viewName", "board"])) :
|
|
5270
|
+
}, null, 8, ["viewName", "board"])) : W("", !0)
|
|
5252
5271
|
]),
|
|
5253
5272
|
_: 2
|
|
5254
5273
|
}, 1024)
|
|
@@ -5261,7 +5280,7 @@ const bl = /* @__PURE__ */ J({
|
|
|
5261
5280
|
};
|
|
5262
5281
|
}
|
|
5263
5282
|
});
|
|
5264
|
-
const
|
|
5283
|
+
const Tl = /* @__PURE__ */ Y({
|
|
5265
5284
|
__name: "index",
|
|
5266
5285
|
props: {
|
|
5267
5286
|
isDialogVisible: { type: Boolean, default: !1 },
|
|
@@ -5272,7 +5291,7 @@ const yl = /* @__PURE__ */ J({
|
|
|
5272
5291
|
},
|
|
5273
5292
|
emits: ["update:isDialogVisible", "close-dialog"],
|
|
5274
5293
|
setup(e, { emit: t }) {
|
|
5275
|
-
const o = e, n = cn(() => import("./index-
|
|
5294
|
+
const o = e, n = cn(() => import("./index-07825e29.mjs")), a = Zt(), l = D(() => o.dialogViewInfo.view), r = D(() => o.dialogViewInfo.name), s = D(() => {
|
|
5276
5295
|
var b;
|
|
5277
5296
|
switch ((b = i.value) == null ? void 0 : b.boardType) {
|
|
5278
5297
|
case "table":
|
|
@@ -5282,14 +5301,14 @@ const yl = /* @__PURE__ */ J({
|
|
|
5282
5301
|
default:
|
|
5283
5302
|
return "600px";
|
|
5284
5303
|
}
|
|
5285
|
-
}), i =
|
|
5304
|
+
}), i = $(), u = D(() => o.dialogViewProps.length ? a.getPropsByPropsKey(o.dialogViewProps) : []);
|
|
5286
5305
|
function c(b) {
|
|
5287
5306
|
t("update:isDialogVisible", b);
|
|
5288
5307
|
}
|
|
5289
5308
|
function d() {
|
|
5290
5309
|
t("close-dialog");
|
|
5291
5310
|
}
|
|
5292
|
-
return (b, f) => (v(),
|
|
5311
|
+
return (b, f) => (v(), S(m(Eo), {
|
|
5293
5312
|
commonDialogProps: {
|
|
5294
5313
|
visible: e.isDialogVisible,
|
|
5295
5314
|
width: m(s),
|
|
@@ -5299,7 +5318,7 @@ const yl = /* @__PURE__ */ J({
|
|
|
5299
5318
|
destroyOnClose: !0
|
|
5300
5319
|
}
|
|
5301
5320
|
}, {
|
|
5302
|
-
body:
|
|
5321
|
+
body: w(() => [
|
|
5303
5322
|
V(m(n), {
|
|
5304
5323
|
viewName: m(l),
|
|
5305
5324
|
board: e.dialogViewBoard,
|
|
@@ -5310,7 +5329,7 @@ const yl = /* @__PURE__ */ J({
|
|
|
5310
5329
|
_: 1
|
|
5311
5330
|
}, 8, ["commonDialogProps"]));
|
|
5312
5331
|
}
|
|
5313
|
-
}), ln = /* @__PURE__ */
|
|
5332
|
+
}), ln = /* @__PURE__ */ Y({
|
|
5314
5333
|
__name: "index",
|
|
5315
5334
|
props: {
|
|
5316
5335
|
board: null,
|
|
@@ -5320,21 +5339,21 @@ const yl = /* @__PURE__ */ J({
|
|
|
5320
5339
|
},
|
|
5321
5340
|
emits: ["close-dialog"],
|
|
5322
5341
|
setup(e, { emit: t }) {
|
|
5323
|
-
const o = e, n =
|
|
5324
|
-
|
|
5342
|
+
const o = e, n = st(), a = tt(), l = Xt(), r = Zt();
|
|
5343
|
+
$o();
|
|
5325
5344
|
const s = D(() => {
|
|
5326
5345
|
var I;
|
|
5327
5346
|
return (I = o.board) == null ? void 0 : I.boardType;
|
|
5328
5347
|
}), i = D(() => {
|
|
5329
5348
|
var I, U, le;
|
|
5330
5349
|
return (I = o.board) != null && I.data ? (U = o.board) == null ? void 0 : U.data.dataId : (le = o.board) != null && le.tableData ? o.board.tableData.dataId : null;
|
|
5331
|
-
}), u =
|
|
5350
|
+
}), u = $([]), c = $({}), d = D(() => {
|
|
5332
5351
|
var I;
|
|
5333
5352
|
return (I = o.board) == null ? void 0 : I.header;
|
|
5334
|
-
}), b =
|
|
5353
|
+
}), b = $({}), f = D(() => {
|
|
5335
5354
|
var I, U;
|
|
5336
5355
|
return Ne((I = a.query) == null ? void 0 : I.props) ? {} : JSON.parse((U = a.query) == null ? void 0 : U.props);
|
|
5337
|
-
}),
|
|
5356
|
+
}), M = $({
|
|
5338
5357
|
count: 10,
|
|
5339
5358
|
page: 0,
|
|
5340
5359
|
totalCount: 0,
|
|
@@ -5343,20 +5362,20 @@ const yl = /* @__PURE__ */ J({
|
|
|
5343
5362
|
var I;
|
|
5344
5363
|
{
|
|
5345
5364
|
let U = {};
|
|
5346
|
-
return d.value && b.value && Object.assign(U, b.value), o.dialogProps && ((I = Object.keys(o.dialogProps)) != null && I.length) && Object.assign(U, o.dialogProps), s.value === "table" && Object.assign(U,
|
|
5365
|
+
return d.value && b.value && Object.assign(U, b.value), o.dialogProps && ((I = Object.keys(o.dialogProps)) != null && I.length) && Object.assign(U, o.dialogProps), s.value === "table" && Object.assign(U, M.value), Object.assign(U, f.value), U;
|
|
5347
5366
|
}
|
|
5348
5367
|
});
|
|
5349
|
-
async function
|
|
5368
|
+
async function T() {
|
|
5350
5369
|
var I;
|
|
5351
5370
|
try {
|
|
5352
5371
|
if (!yt(i.value) && !yt(o.viewName)) {
|
|
5353
|
-
const U = await
|
|
5372
|
+
const U = await Mt({
|
|
5354
5373
|
dataId: i.value,
|
|
5355
5374
|
viewName: o.viewName,
|
|
5356
5375
|
props: E.value
|
|
5357
5376
|
});
|
|
5358
5377
|
if (l.sendRegisterMessage(i.value), U.state === 200 && U.data)
|
|
5359
|
-
s.value == "table" && (
|
|
5378
|
+
s.value == "table" && (M.value = {
|
|
5360
5379
|
count: U.data.count,
|
|
5361
5380
|
page: U.data.page,
|
|
5362
5381
|
pageCount: U.data.pageCount,
|
|
@@ -5370,36 +5389,36 @@ const yl = /* @__PURE__ */ J({
|
|
|
5370
5389
|
}
|
|
5371
5390
|
}
|
|
5372
5391
|
et(() => {
|
|
5373
|
-
|
|
5392
|
+
T(), window.addEventListener("onUpdateMessage", (I) => {
|
|
5374
5393
|
var le;
|
|
5375
5394
|
const U = (le = I == null ? void 0 : I.detail) == null ? void 0 : le.args.dataId;
|
|
5376
|
-
i.value === U &&
|
|
5395
|
+
i.value === U && T();
|
|
5377
5396
|
});
|
|
5378
5397
|
}), we(
|
|
5379
5398
|
() => o.board,
|
|
5380
5399
|
async () => {
|
|
5381
|
-
await
|
|
5400
|
+
await T();
|
|
5382
5401
|
},
|
|
5383
5402
|
{
|
|
5384
5403
|
deep: !0
|
|
5385
5404
|
}
|
|
5386
5405
|
);
|
|
5387
|
-
const h =
|
|
5406
|
+
const h = $(!1), y = $(!1), g = $({}), p = $({}), C = $(), _ = $();
|
|
5388
5407
|
async function x(I, U = {}) {
|
|
5389
5408
|
if ((I ?? "") != "") {
|
|
5390
5409
|
U.viewName = I;
|
|
5391
5410
|
const le = await Oo(U);
|
|
5392
|
-
le.state === 200 && (
|
|
5411
|
+
le.state === 200 && (C.value = le.data.boards[0], _.value = le.data.props);
|
|
5393
5412
|
}
|
|
5394
5413
|
}
|
|
5395
|
-
async function
|
|
5414
|
+
async function N(I) {
|
|
5396
5415
|
h.value = I;
|
|
5397
5416
|
}
|
|
5398
|
-
async function
|
|
5417
|
+
async function j(I, U = {}) {
|
|
5399
5418
|
var le, me;
|
|
5400
5419
|
switch (I.action) {
|
|
5401
5420
|
case "VIEW_BY_DIALOG": {
|
|
5402
|
-
|
|
5421
|
+
g.value = I, p.value = { ...U }, r.initPropsSource(U), await x(I.view), await N(!0), y.value = !0;
|
|
5403
5422
|
break;
|
|
5404
5423
|
}
|
|
5405
5424
|
case "VIEW": {
|
|
@@ -5417,7 +5436,7 @@ const yl = /* @__PURE__ */ J({
|
|
|
5417
5436
|
}
|
|
5418
5437
|
case "CONFIRM": {
|
|
5419
5438
|
let A;
|
|
5420
|
-
I.confirmMessage != "" ? A =
|
|
5439
|
+
I.confirmMessage != "" ? A = ze.render(I.confirmMessage, { item: U }) : A = `是否确定${I.name}`;
|
|
5421
5440
|
let R = {};
|
|
5422
5441
|
I.props ? I.props.forEach((re) => {
|
|
5423
5442
|
re.keyName && (U[re.keyName] ?? "") != "" && (R[re.keyName] = U[re.keyName]);
|
|
@@ -5427,10 +5446,10 @@ const yl = /* @__PURE__ */ J({
|
|
|
5427
5446
|
header: I.name,
|
|
5428
5447
|
body: A,
|
|
5429
5448
|
onConfirm: () => {
|
|
5430
|
-
I.buttonId &&
|
|
5449
|
+
I.buttonId && te(R, I.buttonId), G.destroy();
|
|
5431
5450
|
},
|
|
5432
5451
|
onCancel: () => {
|
|
5433
|
-
|
|
5452
|
+
oe.info(`已取消${I.name}`);
|
|
5434
5453
|
}
|
|
5435
5454
|
});
|
|
5436
5455
|
break;
|
|
@@ -5441,10 +5460,10 @@ const yl = /* @__PURE__ */ J({
|
|
|
5441
5460
|
header: I.name,
|
|
5442
5461
|
body: `此操作将${I.name},是否继续`,
|
|
5443
5462
|
onConfirm: () => {
|
|
5444
|
-
|
|
5463
|
+
k.value.length == 0 ? oe.error("请选择批量操作对象!") : Ae(I, k.value), A.destroy();
|
|
5445
5464
|
},
|
|
5446
5465
|
onCancel: () => {
|
|
5447
|
-
|
|
5466
|
+
oe.info(`已取消${I.name}`);
|
|
5448
5467
|
}
|
|
5449
5468
|
});
|
|
5450
5469
|
break;
|
|
@@ -5463,12 +5482,12 @@ const yl = /* @__PURE__ */ J({
|
|
|
5463
5482
|
}
|
|
5464
5483
|
case "DOWNLOAD": {
|
|
5465
5484
|
if ((I.downloadUrl ?? "") != "") {
|
|
5466
|
-
const A = pn.decode(
|
|
5485
|
+
const A = pn.decode(ze.render(I.downloadUrl, { item: U }));
|
|
5467
5486
|
if ((A ?? "") != "") {
|
|
5468
5487
|
const R = A.split("/").slice(-1)[0], G = document.createElement("a");
|
|
5469
|
-
G.style.display = "none", G.setAttribute("target", "_blank"), R && G.setAttribute("download", R), G.setAttribute("href", A), G.click(),
|
|
5488
|
+
G.style.display = "none", G.setAttribute("target", "_blank"), R && G.setAttribute("download", R), G.setAttribute("href", A), G.click(), oe.info("即将开始下载");
|
|
5470
5489
|
} else
|
|
5471
|
-
|
|
5490
|
+
oe.info("未设置下载链接");
|
|
5472
5491
|
}
|
|
5473
5492
|
break;
|
|
5474
5493
|
}
|
|
@@ -5476,25 +5495,25 @@ const yl = /* @__PURE__ */ J({
|
|
|
5476
5495
|
console.log(I);
|
|
5477
5496
|
}
|
|
5478
5497
|
}
|
|
5479
|
-
function
|
|
5480
|
-
b.value = I,
|
|
5498
|
+
function ee(I) {
|
|
5499
|
+
b.value = I, M.value = {
|
|
5481
5500
|
count: 10,
|
|
5482
5501
|
page: 0,
|
|
5483
5502
|
totalCount: 0,
|
|
5484
5503
|
pageCount: 0
|
|
5485
|
-
},
|
|
5504
|
+
}, T();
|
|
5486
5505
|
}
|
|
5487
|
-
const
|
|
5506
|
+
const k = $([]);
|
|
5488
5507
|
function ne(I) {
|
|
5489
|
-
|
|
5508
|
+
k.value = I;
|
|
5490
5509
|
}
|
|
5491
5510
|
function O(I) {
|
|
5492
|
-
Object.assign(
|
|
5511
|
+
Object.assign(M.value, {
|
|
5493
5512
|
page: I.current - 1,
|
|
5494
5513
|
count: I.pageSize
|
|
5495
|
-
}),
|
|
5514
|
+
}), T();
|
|
5496
5515
|
}
|
|
5497
|
-
async function
|
|
5516
|
+
async function te(I, U) {
|
|
5498
5517
|
let le = {};
|
|
5499
5518
|
Object.keys(E.value).length && Object.assign(le, E.value), Object.assign(le, I);
|
|
5500
5519
|
const me = await Xn({
|
|
@@ -5502,7 +5521,7 @@ const yl = /* @__PURE__ */ J({
|
|
|
5502
5521
|
props: le,
|
|
5503
5522
|
viewName: o.viewName
|
|
5504
5523
|
});
|
|
5505
|
-
me.state === 200 ?
|
|
5524
|
+
me.state === 200 ? oe.success("提交成功") : oe.error(`提交失败:${me.message}`);
|
|
5506
5525
|
}
|
|
5507
5526
|
function L(I, U) {
|
|
5508
5527
|
if (I.itemType == "selector" || I.itemType == "time_selector" || I.itemType == "date_time_selector" || I.itemType == "tree_check_box" || I.itemType === "multi_tree_selector" || I.itemType === "tree_selector") {
|
|
@@ -5510,14 +5529,14 @@ const yl = /* @__PURE__ */ J({
|
|
|
5510
5529
|
theme: "info",
|
|
5511
5530
|
body: "此操作将提交该修改,是否继续?",
|
|
5512
5531
|
onConfirm: () => {
|
|
5513
|
-
|
|
5532
|
+
te(U, I.buttonId), le.destroy();
|
|
5514
5533
|
},
|
|
5515
5534
|
onCancel: () => {
|
|
5516
|
-
|
|
5535
|
+
oe.info("已取消修改。");
|
|
5517
5536
|
}
|
|
5518
5537
|
});
|
|
5519
5538
|
} else
|
|
5520
|
-
|
|
5539
|
+
te(U, I.buttonId);
|
|
5521
5540
|
}
|
|
5522
5541
|
async function Ae(I, U) {
|
|
5523
5542
|
let le = {};
|
|
@@ -5528,55 +5547,55 @@ const yl = /* @__PURE__ */ J({
|
|
|
5528
5547
|
props: le,
|
|
5529
5548
|
keys: U
|
|
5530
5549
|
});
|
|
5531
|
-
me.state == 200 ?
|
|
5550
|
+
me.state == 200 ? oe.success(`${I.name} 操作成功!`) : oe.error(`提交出错:${me.message}`);
|
|
5532
5551
|
}
|
|
5533
5552
|
function ue() {
|
|
5534
5553
|
y.value = !1, setTimeout(() => {
|
|
5535
|
-
|
|
5554
|
+
N(!1);
|
|
5536
5555
|
});
|
|
5537
5556
|
}
|
|
5538
5557
|
function Ce(I, U) {
|
|
5539
|
-
|
|
5558
|
+
te(I, U), Ve();
|
|
5540
5559
|
}
|
|
5541
5560
|
function Ve() {
|
|
5542
5561
|
t("close-dialog");
|
|
5543
5562
|
}
|
|
5544
5563
|
return (I, U) => (v(), q("div", {
|
|
5545
|
-
class:
|
|
5564
|
+
class: z(`${m(X)}__board`)
|
|
5546
5565
|
}, [
|
|
5547
|
-
m(d) ? (v(),
|
|
5566
|
+
m(d) ? (v(), S(na, {
|
|
5548
5567
|
key: 0,
|
|
5549
5568
|
viewName: e.viewName,
|
|
5550
5569
|
headerInfo: m(d),
|
|
5551
|
-
onHeaderButtonAction:
|
|
5552
|
-
onHeaderFilterChange:
|
|
5553
|
-
}, null, 8, ["viewName", "headerInfo"])) :
|
|
5554
|
-
m(s) === "form" ? (v(),
|
|
5570
|
+
onHeaderButtonAction: j,
|
|
5571
|
+
onHeaderFilterChange: ee
|
|
5572
|
+
}, null, 8, ["viewName", "headerInfo"])) : W("", !0),
|
|
5573
|
+
m(s) === "form" ? (v(), S(sa, {
|
|
5555
5574
|
key: 1,
|
|
5556
5575
|
viewName: e.viewName,
|
|
5557
5576
|
board: e.board,
|
|
5558
5577
|
formData: c.value,
|
|
5559
|
-
onConfirmForm:
|
|
5578
|
+
onConfirmForm: te,
|
|
5560
5579
|
onConfirmAndClose: Ce,
|
|
5561
5580
|
onCloseDialog: Ve
|
|
5562
|
-
}, null, 8, ["viewName", "board", "formData"])) :
|
|
5563
|
-
m(s) === "table" ? (v(),
|
|
5581
|
+
}, null, 8, ["viewName", "board", "formData"])) : W("", !0),
|
|
5582
|
+
m(s) === "table" ? (v(), S(kl, {
|
|
5564
5583
|
key: 2,
|
|
5565
5584
|
viewName: e.viewName,
|
|
5566
5585
|
board: e.board,
|
|
5567
5586
|
tableData: u.value,
|
|
5568
|
-
paginationProps:
|
|
5569
|
-
onTableButtonAction:
|
|
5587
|
+
paginationProps: M.value,
|
|
5588
|
+
onTableButtonAction: j,
|
|
5570
5589
|
onTableFormConfirm: L,
|
|
5571
5590
|
onReturnSelectedKey: ne,
|
|
5572
5591
|
onReturnPaginationProps: O
|
|
5573
|
-
}, null, 8, ["viewName", "board", "tableData", "paginationProps"])) :
|
|
5574
|
-
m(s) === "tab" ? (v(),
|
|
5592
|
+
}, null, 8, ["viewName", "board", "tableData", "paginationProps"])) : W("", !0),
|
|
5593
|
+
m(s) === "tab" ? (v(), S(Cl, {
|
|
5575
5594
|
key: 3,
|
|
5576
5595
|
viewName: e.viewName,
|
|
5577
5596
|
board: e.board
|
|
5578
|
-
}, null, 8, ["viewName", "board"])) :
|
|
5579
|
-
h.value ? (v(),
|
|
5597
|
+
}, null, 8, ["viewName", "board"])) : W("", !0),
|
|
5598
|
+
h.value ? (v(), S(Tl, {
|
|
5580
5599
|
key: 4,
|
|
5581
5600
|
ref: "dialogRef",
|
|
5582
5601
|
isDialogVisible: y.value,
|
|
@@ -5584,21 +5603,21 @@ const yl = /* @__PURE__ */ J({
|
|
|
5584
5603
|
U[0] || (U[0] = (le) => y.value = le),
|
|
5585
5604
|
ue
|
|
5586
5605
|
],
|
|
5587
|
-
dialogViewInfo:
|
|
5588
|
-
dialogFormModel:
|
|
5589
|
-
dialogViewBoard:
|
|
5590
|
-
dialogViewProps:
|
|
5606
|
+
dialogViewInfo: g.value,
|
|
5607
|
+
dialogFormModel: p.value,
|
|
5608
|
+
dialogViewBoard: C.value,
|
|
5609
|
+
dialogViewProps: _.value,
|
|
5591
5610
|
onCloseDialog: ue
|
|
5592
|
-
}, null, 8, ["isDialogVisible", "dialogViewInfo", "dialogFormModel", "dialogViewBoard", "dialogViewProps"])) :
|
|
5611
|
+
}, null, 8, ["isDialogVisible", "dialogViewInfo", "dialogFormModel", "dialogViewBoard", "dialogViewProps"])) : W("", !0)
|
|
5593
5612
|
], 2));
|
|
5594
5613
|
}
|
|
5595
|
-
}),
|
|
5614
|
+
}), _l = /* @__PURE__ */ Y({
|
|
5596
5615
|
__name: "index",
|
|
5597
5616
|
props: {
|
|
5598
5617
|
config: null
|
|
5599
5618
|
},
|
|
5600
5619
|
setup(e) {
|
|
5601
|
-
const t = e, o =
|
|
5620
|
+
const t = e, o = st(), n = tt(), a = Le(), l = Nt(), r = Xt(), s = $(""), i = D(() => a.isUserLogin), u = D(() => a.homeUrl);
|
|
5602
5621
|
It(async () => {
|
|
5603
5622
|
i.value || (await a.initUserConfig(t.config), await l.initTabMenu(), o.push(u.value));
|
|
5604
5623
|
}), et(async () => {
|
|
@@ -5607,9 +5626,9 @@ const yl = /* @__PURE__ */ J({
|
|
|
5607
5626
|
});
|
|
5608
5627
|
});
|
|
5609
5628
|
const c = D(() => n.query.viewName), d = D(() => {
|
|
5610
|
-
var E,
|
|
5611
|
-
return ((E = n.query) == null ? void 0 : E.props) && JSON.parse((
|
|
5612
|
-
}), b =
|
|
5629
|
+
var E, T;
|
|
5630
|
+
return ((E = n.query) == null ? void 0 : E.props) && JSON.parse((T = n.query) == null ? void 0 : T.props);
|
|
5631
|
+
}), b = $();
|
|
5613
5632
|
we(
|
|
5614
5633
|
c,
|
|
5615
5634
|
async () => {
|
|
@@ -5620,54 +5639,54 @@ const yl = /* @__PURE__ */ J({
|
|
|
5620
5639
|
immediate: !0
|
|
5621
5640
|
}
|
|
5622
5641
|
);
|
|
5623
|
-
async function f(E,
|
|
5642
|
+
async function f(E, T = {}) {
|
|
5624
5643
|
var h;
|
|
5625
|
-
|
|
5644
|
+
T.viewName = E, Ne(d.value) && Object.assign(T, d.value);
|
|
5626
5645
|
try {
|
|
5627
|
-
const y = await Oo(
|
|
5646
|
+
const y = await Oo(T);
|
|
5628
5647
|
if (y.state === 200 && y.data) {
|
|
5629
5648
|
b.value = y.data, s.value = (h = y.data) == null ? void 0 : h.title;
|
|
5630
|
-
const
|
|
5649
|
+
const g = decodeURIComponent(n.fullPath);
|
|
5631
5650
|
l.appendTabMenuItem({
|
|
5632
5651
|
title: s.value,
|
|
5633
|
-
path:
|
|
5652
|
+
path: g,
|
|
5634
5653
|
query: n.query
|
|
5635
5654
|
});
|
|
5636
5655
|
}
|
|
5637
5656
|
} catch {
|
|
5638
5657
|
}
|
|
5639
5658
|
}
|
|
5640
|
-
const
|
|
5641
|
-
return (E,
|
|
5642
|
-
default:
|
|
5659
|
+
const M = D(() => a.isGlobalLoaded);
|
|
5660
|
+
return (E, T) => (v(), S(Ao, { title: s.value }, {
|
|
5661
|
+
default: w(() => {
|
|
5643
5662
|
var h;
|
|
5644
5663
|
return [
|
|
5645
|
-
m(
|
|
5646
|
-
var
|
|
5647
|
-
return v(),
|
|
5648
|
-
key: `${(
|
|
5664
|
+
m(M) ? (v(!0), q(ve, { key: 0 }, ye((h = b.value) == null ? void 0 : h.boards, (y) => {
|
|
5665
|
+
var g;
|
|
5666
|
+
return v(), S(dn, {
|
|
5667
|
+
key: `${(g = b.value) == null ? void 0 : g.viewName}_${y.boardType}`,
|
|
5649
5668
|
name: "fade",
|
|
5650
5669
|
mode: "out-in"
|
|
5651
5670
|
}, {
|
|
5652
|
-
default:
|
|
5653
|
-
var
|
|
5671
|
+
default: w(() => {
|
|
5672
|
+
var p, C;
|
|
5654
5673
|
return [
|
|
5655
5674
|
V(ln, {
|
|
5656
5675
|
board: y,
|
|
5657
|
-
viewName: (
|
|
5658
|
-
viewProps: (
|
|
5676
|
+
viewName: (p = b.value) == null ? void 0 : p.viewName,
|
|
5677
|
+
viewProps: (C = b.value) == null ? void 0 : C.props
|
|
5659
5678
|
}, null, 8, ["board", "viewName", "viewProps"])
|
|
5660
5679
|
];
|
|
5661
5680
|
}),
|
|
5662
5681
|
_: 2
|
|
5663
5682
|
}, 1024);
|
|
5664
|
-
}), 128)) :
|
|
5683
|
+
}), 128)) : W("", !0)
|
|
5665
5684
|
];
|
|
5666
5685
|
}),
|
|
5667
5686
|
_: 1
|
|
5668
5687
|
}, 8, ["title"]));
|
|
5669
5688
|
}
|
|
5670
|
-
}),
|
|
5689
|
+
}), Il = Qe(Ao), xl = /* @__PURE__ */ Y({
|
|
5671
5690
|
__name: "GLoginTitle",
|
|
5672
5691
|
props: {
|
|
5673
5692
|
title: { default: "公信会务管理系统" },
|
|
@@ -5675,52 +5694,52 @@ const yl = /* @__PURE__ */ J({
|
|
|
5675
5694
|
},
|
|
5676
5695
|
setup(e) {
|
|
5677
5696
|
return (t, o) => (v(), q("div", {
|
|
5678
|
-
class:
|
|
5697
|
+
class: z(`${m(X)}__login-title`)
|
|
5679
5698
|
}, [
|
|
5680
|
-
|
|
5681
|
-
class:
|
|
5699
|
+
Z("div", {
|
|
5700
|
+
class: z(`${m(X)}__login-title--mainTitle`)
|
|
5682
5701
|
}, ge(e.title), 3),
|
|
5683
|
-
|
|
5684
|
-
class:
|
|
5702
|
+
Z("div", {
|
|
5703
|
+
class: z(`${m(X)}__login-title--subTitle`)
|
|
5685
5704
|
}, ge(e.subTitle), 3)
|
|
5686
5705
|
], 2));
|
|
5687
5706
|
}
|
|
5688
5707
|
});
|
|
5689
|
-
const
|
|
5690
|
-
/* @__PURE__ */
|
|
5691
|
-
/* @__PURE__ */
|
|
5692
|
-
/* @__PURE__ */
|
|
5693
|
-
/* @__PURE__ */
|
|
5694
|
-
], -1),
|
|
5695
|
-
|
|
5696
|
-
],
|
|
5708
|
+
const Nl = /* @__PURE__ */ Z("span", null, [
|
|
5709
|
+
/* @__PURE__ */ J("登录即代表同意 "),
|
|
5710
|
+
/* @__PURE__ */ Z("a", { href: "#" }, "服务条款"),
|
|
5711
|
+
/* @__PURE__ */ J(" 或 "),
|
|
5712
|
+
/* @__PURE__ */ Z("a", { href: "#" }, "隐私协议")
|
|
5713
|
+
], -1), Sl = [
|
|
5714
|
+
Nl
|
|
5715
|
+
], Vl = /* @__PURE__ */ Y({
|
|
5697
5716
|
__name: "GLoginForm",
|
|
5698
5717
|
setup(e) {
|
|
5699
5718
|
return (t, o) => (v(), q("div", {
|
|
5700
|
-
class:
|
|
5719
|
+
class: z(`${m(X)}__login-form`)
|
|
5701
5720
|
}, [
|
|
5702
5721
|
Be(t.$slots, "tabs"),
|
|
5703
|
-
|
|
5704
|
-
class:
|
|
5705
|
-
},
|
|
5722
|
+
Z("div", {
|
|
5723
|
+
class: z(`${m(X)}__login-form--footer`)
|
|
5724
|
+
}, Sl, 2)
|
|
5706
5725
|
], 2));
|
|
5707
5726
|
}
|
|
5708
5727
|
});
|
|
5709
|
-
const
|
|
5728
|
+
const Ml = {
|
|
5710
5729
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5711
5730
|
class: "design-iconfont",
|
|
5712
5731
|
viewBox: "0 0 180.202 22"
|
|
5713
|
-
},
|
|
5732
|
+
}, Pl = /* @__PURE__ */ Z("path", {
|
|
5714
5733
|
fill: "#bcc4d0",
|
|
5715
5734
|
"fill-rule": "evenodd",
|
|
5716
5735
|
d: "M13.45 8.967h15L27.1 19.5a2.811 2.811 0 0 1-3.1 2.45H12.9a31.656 31.656 0 0 1-5.6-.441 7.739 7.739 0 0 1-3.55-1.323A7.51 7.51 0 0 1 0 13.473v-.539c.1-.588.1-1.225.2-1.911a12.094 12.094 0 0 1 3.35-6.958A11.4 11.4 0 0 1 8.6 1.027a27.948 27.948 0 0 1 7.7-.98h14.9l-2.95 3.92h-11.8a12.7 12.7 0 0 0-6.1 1.225c-1.6 1.029-2.55 2.891-2.95 5.39a11.31 11.31 0 0 0 0 3.675 4.84 4.84 0 0 0 1.25 2.352 4.144 4.144 0 0 0 2.3 1.029 15.954 15.954 0 0 0 3.75.343h5.85l.8-5.194h-8.6l.7-3.822ZM150.2 5.929l-1.85 16.022h-6.5l3-21.8h8.35l9.75 16.267 2.4-16.267h6.2l-.45 2.793-2.15 14.9a5.8 5.8 0 0 1-1.4 3.038 4.3 4.3 0 0 1-2.85 1.127h-4.45L150.2 5.929Zm-21 15.973 3.1-21.8h7.1l-3.2 21.8Zm-33.2 0 2.85-3.92H112a17.536 17.536 0 0 0 4.55-.441 3.1 3.1 0 0 0 1.95-2.107 2.186 2.186 0 0 0-1.6-2.352 10.5 10.5 0 0 0-3.35-.343h-5.7c-3.45 0-5.85-.539-7.3-1.372A5.619 5.619 0 0 1 98.6 9.26a4.838 4.838 0 0 1-.35-2.793 6.518 6.518 0 0 1 2.5-4.165c1.4-1.225 3.45-1.911 6.2-2.156.9 0 2.3-.1 4.1-.1h15.2l-3.1 3.92h-11.2a33.184 33.184 0 0 0-4.1.2 2.594 2.594 0 0 0-2.4 2.156 1.815 1.815 0 0 0 1.4 2.156 13.828 13.828 0 0 0 3.8.343h4.9a29.965 29.965 0 0 1 5.6.441c2.05.539 3.45 1.47 4.1 2.793a6.36 6.36 0 0 1 .45 3.381 6.908 6.908 0 0 1-1.75 3.577 8.952 8.952 0 0 1-5.75 2.6 37.2 37.2 0 0 1-5.3.245H96ZM73.25 5.929l-2.3 16.022h-6.2l3.2-21.8h8.35l9.75 16.267L88.45.151h6.2l-3.2 21.8h-8L73.25 5.929ZM46.9 22h-1.15a24.513 24.513 0 0 1-8.8-1.372 7.9 7.9 0 0 1-4.45-3.577 9.279 9.279 0 0 1-.8-5.929c.6-4.165 2.5-7.154 5.7-8.869C39.7.881 42.9.146 46.9-.001h1.6a27.03 27.03 0 0 1 7.9 1.029 8.1 8.1 0 0 1 5.05 4.508 11.237 11.237 0 0 1 .45 5.733 10.6 10.6 0 0 1-2.4 5.733 12.233 12.233 0 0 1-6.65 4.067A22.217 22.217 0 0 1 46.9 22Zm0-18.325a9.214 9.214 0 0 0-5.7 2.107 8.479 8.479 0 0 0-2.3 5.194c-.35 2.5 0 4.459 1.15 5.635 1.05 1.127 3 1.715 5.75 1.715h1.05A10.117 10.117 0 0 0 52 16.611a8.471 8.471 0 0 0 2.75-5.586c.35-2.352.1-4.067-.8-5.292-1-1.372-3-2.107-6.05-2.107a6.506 6.506 0 0 1-1 .049ZM176.052 13.35a4.15 4.15 0 1 1-4.15 4.15 4.14 4.14 0 0 1 4.15-4.15Zm-1.95 6.7h.65V17.8h1.15c.1.05.2.05.3.15a2.256 2.256 0 0 1 .35.35 5.221 5.221 0 0 1 .5.7l.65 1.05h.85l-.9-1.4a8.544 8.544 0 0 0-.55-.7 2.8 2.8 0 0 0-.4-.25 1.72 1.72 0 0 0 1.1-.45 1.4 1.4 0 0 0 .15-1.65 1.3 1.3 0 0 0-.55-.5 2.921 2.921 0 0 0-1.05-.15h-2.25v5.1Zm.65-2.8h1.45a2.318 2.318 0 0 0 .7-.1.778.778 0 0 0 .4-.3.806.806 0 0 0 .15-.45.828.828 0 0 0-.25-.6 1.229 1.229 0 0 0-.85-.25h-1.6v1.7Zm1.3-3.35a3.65 3.65 0 1 0 3.65 3.65 3.671 3.671 0 0 0-3.65-3.65Z"
|
|
5717
|
-
}, null, -1),
|
|
5718
|
-
|
|
5736
|
+
}, null, -1), Al = [
|
|
5737
|
+
Pl
|
|
5719
5738
|
];
|
|
5720
|
-
function
|
|
5721
|
-
return v(), q("svg",
|
|
5739
|
+
function El(e, t) {
|
|
5740
|
+
return v(), q("svg", Ml, Al);
|
|
5722
5741
|
}
|
|
5723
|
-
const
|
|
5742
|
+
const Bl = { render: El }, Ll = ["innerHTML"], Dl = ["innerHTML"], Fl = /* @__PURE__ */ Y({
|
|
5724
5743
|
__name: "GLoginFooter",
|
|
5725
5744
|
props: {
|
|
5726
5745
|
copyrightInfoEng: { default: "Copyright 2020 All Rights Reserved. " },
|
|
@@ -5728,22 +5747,22 @@ const Ml = { render: Vl }, Pl = ["innerHTML"], Al = ["innerHTML"], El = /* @__PU
|
|
|
5728
5747
|
},
|
|
5729
5748
|
setup(e) {
|
|
5730
5749
|
return (t, o) => (v(), q("div", {
|
|
5731
|
-
class:
|
|
5750
|
+
class: z(`${m(X)}__login-footer`)
|
|
5732
5751
|
}, [
|
|
5733
|
-
|
|
5734
|
-
class:
|
|
5735
|
-
style: Ct({ backgroundImage: `url(${m(
|
|
5752
|
+
Z("span", {
|
|
5753
|
+
class: z(`${m(X)}__login-footer--logo`),
|
|
5754
|
+
style: Ct({ backgroundImage: `url(${m(Bl)})` })
|
|
5736
5755
|
}, null, 6),
|
|
5737
|
-
|
|
5738
|
-
class:
|
|
5756
|
+
Z("div", {
|
|
5757
|
+
class: z(`${m(X)}__login-footer--copyright`)
|
|
5739
5758
|
}, [
|
|
5740
|
-
|
|
5741
|
-
|
|
5759
|
+
Z("div", { innerHTML: e.copyrightInfoEng }, null, 8, Ll),
|
|
5760
|
+
Z("div", { innerHTML: e.copyrightInfoCN }, null, 8, Dl)
|
|
5742
5761
|
], 2)
|
|
5743
5762
|
], 2));
|
|
5744
5763
|
}
|
|
5745
5764
|
});
|
|
5746
|
-
const
|
|
5765
|
+
const Ol = ["id", "poster"], Ul = ["src"], Rl = ["src"], Kl = /* @__PURE__ */ Y({
|
|
5747
5766
|
__name: "index",
|
|
5748
5767
|
props: {
|
|
5749
5768
|
bgVideoMp4Src: null,
|
|
@@ -5754,9 +5773,9 @@ const Bl = ["id", "poster"], Ll = ["src"], Dl = ["src"], Fl = /* @__PURE__ */ J(
|
|
|
5754
5773
|
},
|
|
5755
5774
|
setup(e) {
|
|
5756
5775
|
return (t, o) => (v(), q("div", {
|
|
5757
|
-
class:
|
|
5776
|
+
class: z(`${m(X)}__login-wrapper`)
|
|
5758
5777
|
}, [
|
|
5759
|
-
|
|
5778
|
+
Z("video", {
|
|
5760
5779
|
id: `${m(X)}__login-wrapper--bgVideo`,
|
|
5761
5780
|
style: Ct({ backgroundImage: `url(${e.bgImgSrc})` }),
|
|
5762
5781
|
poster: e.bgImgSrc,
|
|
@@ -5764,37 +5783,37 @@ const Bl = ["id", "poster"], Ll = ["src"], Dl = ["src"], Fl = /* @__PURE__ */ J(
|
|
|
5764
5783
|
muted: "",
|
|
5765
5784
|
loop: ""
|
|
5766
5785
|
}, [
|
|
5767
|
-
|
|
5786
|
+
Z("source", {
|
|
5768
5787
|
src: e.bgVideoMp4Src,
|
|
5769
5788
|
type: "video/mp4"
|
|
5770
|
-
}, null, 8,
|
|
5771
|
-
|
|
5789
|
+
}, null, 8, Ul),
|
|
5790
|
+
Z("source", {
|
|
5772
5791
|
src: e.bgVideoWebmSrc,
|
|
5773
5792
|
type: "video/webm"
|
|
5774
|
-
}, null, 8,
|
|
5775
|
-
], 12,
|
|
5776
|
-
|
|
5777
|
-
class:
|
|
5793
|
+
}, null, 8, Rl)
|
|
5794
|
+
], 12, Ol),
|
|
5795
|
+
Z("div", {
|
|
5796
|
+
class: z(`${m(X)}__login-wrapper--overlay`)
|
|
5778
5797
|
}, null, 2),
|
|
5779
|
-
|
|
5780
|
-
class:
|
|
5798
|
+
Z("div", {
|
|
5799
|
+
class: z(`${m(X)}__login-wrapper--container`)
|
|
5781
5800
|
}, [
|
|
5782
|
-
V(
|
|
5801
|
+
V(xl, {
|
|
5783
5802
|
title: e.title,
|
|
5784
5803
|
subTitle: e.subTitle
|
|
5785
5804
|
}, null, 8, ["title", "subTitle"]),
|
|
5786
|
-
V(
|
|
5787
|
-
tabs:
|
|
5805
|
+
V(Vl, null, {
|
|
5806
|
+
tabs: w(() => [
|
|
5788
5807
|
Be(t.$slots, "tabs", {}, void 0, !0)
|
|
5789
5808
|
]),
|
|
5790
5809
|
_: 3
|
|
5791
5810
|
})
|
|
5792
5811
|
], 2),
|
|
5793
|
-
V(
|
|
5812
|
+
V(Fl)
|
|
5794
5813
|
], 2));
|
|
5795
5814
|
}
|
|
5796
5815
|
});
|
|
5797
|
-
const
|
|
5816
|
+
const Gl = /* @__PURE__ */ St(Kl, [["__scopeId", "data-v-b1b26512"]]), Mr = Qe(Gl), jl = [
|
|
5798
5817
|
{
|
|
5799
5818
|
stem: "app",
|
|
5800
5819
|
icon: "App"
|
|
@@ -6335,22 +6354,22 @@ const Ol = /* @__PURE__ */ Zt(Fl, [["__scopeId", "data-v-b1b26512"]]), xr = Qe(O
|
|
|
6335
6354
|
stem: "zoom-out",
|
|
6336
6355
|
icon: "ZoomOut"
|
|
6337
6356
|
}
|
|
6338
|
-
],
|
|
6357
|
+
], Wl = {
|
|
6339
6358
|
save: "/restapi/menus"
|
|
6340
6359
|
};
|
|
6341
|
-
function
|
|
6342
|
-
return
|
|
6360
|
+
function Hl(e) {
|
|
6361
|
+
return ut.put(Wl.save, e);
|
|
6343
6362
|
}
|
|
6344
|
-
const
|
|
6363
|
+
const ql = { class: "menu-title" }, $l = {
|
|
6345
6364
|
key: 0,
|
|
6346
6365
|
class: "counts"
|
|
6347
|
-
},
|
|
6366
|
+
}, zl = { class: "operations" }, Xl = { id: "icon-option" }, Zl = { key: 0 }, Ql = {
|
|
6348
6367
|
key: 1,
|
|
6349
6368
|
style: { color: "#9f9f9f" }
|
|
6350
|
-
},
|
|
6369
|
+
}, Jl = /* @__PURE__ */ Y({
|
|
6351
6370
|
__name: "index",
|
|
6352
6371
|
setup(e) {
|
|
6353
|
-
const t = Le(), o =
|
|
6372
|
+
const t = Le(), o = $("菜单管理"), n = [
|
|
6354
6373
|
{
|
|
6355
6374
|
title: "排序",
|
|
6356
6375
|
colKey: "drag",
|
|
@@ -6368,7 +6387,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6368
6387
|
colKey: "operations",
|
|
6369
6388
|
cell: "operations"
|
|
6370
6389
|
}
|
|
6371
|
-
], a = D(() => t.userEdificeKey), l =
|
|
6390
|
+
], a = D(() => t.userEdificeKey), l = $(!1), r = $(""), s = $(t.sideMenuTree), i = $({
|
|
6372
6391
|
edificeKey: "",
|
|
6373
6392
|
parent: null,
|
|
6374
6393
|
name: "",
|
|
@@ -6403,7 +6422,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6403
6422
|
trigger: "change"
|
|
6404
6423
|
}
|
|
6405
6424
|
]
|
|
6406
|
-
}, c =
|
|
6425
|
+
}, c = $(), d = D(() => c.value.tTableRef), b = $(), f = D(() => b.value.tFormRef), M = D(() => {
|
|
6407
6426
|
var A;
|
|
6408
6427
|
return (A = d.value) == null ? void 0 : A.getTreeNode();
|
|
6409
6428
|
}), E = D(() => {
|
|
@@ -6419,37 +6438,37 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6419
6438
|
default:
|
|
6420
6439
|
return "";
|
|
6421
6440
|
}
|
|
6422
|
-
}),
|
|
6423
|
-
() =>
|
|
6441
|
+
}), T = D(() => M.value ? uo(M.value) : []), h = D(
|
|
6442
|
+
() => T.value.filter((A) => !A.url).map((A) => ({
|
|
6424
6443
|
label: A.title,
|
|
6425
6444
|
value: A.name
|
|
6426
6445
|
}))
|
|
6427
|
-
), y = tt(),
|
|
6428
|
-
function
|
|
6446
|
+
), y = tt(), g = Nt();
|
|
6447
|
+
function p() {
|
|
6429
6448
|
const { fullPath: A, query: R } = y, G = decodeURIComponent(A);
|
|
6430
|
-
|
|
6449
|
+
g.appendTabMenuItem({
|
|
6431
6450
|
title: o.value,
|
|
6432
6451
|
path: G,
|
|
6433
6452
|
query: R
|
|
6434
6453
|
});
|
|
6435
6454
|
}
|
|
6436
6455
|
et(() => {
|
|
6437
|
-
|
|
6456
|
+
p();
|
|
6438
6457
|
});
|
|
6439
|
-
function
|
|
6458
|
+
function C(A) {
|
|
6440
6459
|
return A.filter((R) => !R.isGroup);
|
|
6441
6460
|
}
|
|
6442
|
-
function
|
|
6461
|
+
function _(A) {
|
|
6443
6462
|
return A.filter((R) => R.isGroup);
|
|
6444
6463
|
}
|
|
6445
|
-
function x(A =
|
|
6464
|
+
function x(A = M.value) {
|
|
6446
6465
|
var R;
|
|
6447
6466
|
d.value && ((R = d.value) == null || R.resetData(A));
|
|
6448
6467
|
}
|
|
6449
|
-
function
|
|
6468
|
+
function N() {
|
|
6450
6469
|
l.value = !0, r.value = "addGroup";
|
|
6451
6470
|
}
|
|
6452
|
-
function
|
|
6471
|
+
function j() {
|
|
6453
6472
|
i.value.level == 1 && i.value.children && i.value.children.push({
|
|
6454
6473
|
edificeKey: a.value,
|
|
6455
6474
|
level: 2,
|
|
@@ -6462,24 +6481,24 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6462
6481
|
children: []
|
|
6463
6482
|
});
|
|
6464
6483
|
}
|
|
6465
|
-
function
|
|
6484
|
+
function ee(A) {
|
|
6466
6485
|
if (i.value.children) {
|
|
6467
6486
|
const R = i.value.children.indexOf(A);
|
|
6468
6487
|
R != -1 && i.value.children.splice(R, 1);
|
|
6469
6488
|
}
|
|
6470
6489
|
}
|
|
6471
|
-
function
|
|
6472
|
-
i.value =
|
|
6490
|
+
function k(A) {
|
|
6491
|
+
i.value = rt(A), l.value = !0, A.isGroup ? r.value = "editGroup" : r.value = "editItem";
|
|
6473
6492
|
}
|
|
6474
6493
|
function ne(A) {
|
|
6475
|
-
i.value =
|
|
6494
|
+
i.value = rt(A), l.value = !0, r.value = "moveItemTo";
|
|
6476
6495
|
}
|
|
6477
6496
|
function O() {
|
|
6478
6497
|
l.value = !1, setTimeout(() => {
|
|
6479
|
-
|
|
6498
|
+
te();
|
|
6480
6499
|
}, 100);
|
|
6481
6500
|
}
|
|
6482
|
-
function
|
|
6501
|
+
function te() {
|
|
6483
6502
|
i.value = {
|
|
6484
6503
|
edificeKey: a.value,
|
|
6485
6504
|
parent: null,
|
|
@@ -6494,7 +6513,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6494
6513
|
}
|
|
6495
6514
|
function L(A, R) {
|
|
6496
6515
|
if (d.value) {
|
|
6497
|
-
const G =
|
|
6516
|
+
const G = T.value.find((re) => re.name == A);
|
|
6498
6517
|
if (G) {
|
|
6499
6518
|
const { parent: re } = G;
|
|
6500
6519
|
R !== re && (i.value.parent = R, d.value.remove(A), d.value.appendTo(R, i.value));
|
|
@@ -6526,7 +6545,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6526
6545
|
(P = d.value) == null || P.appendTo(B, K);
|
|
6527
6546
|
});
|
|
6528
6547
|
}
|
|
6529
|
-
R.destroy(),
|
|
6548
|
+
R.destroy(), oe.success("撤销组成功");
|
|
6530
6549
|
}
|
|
6531
6550
|
});
|
|
6532
6551
|
} catch (R) {
|
|
@@ -6539,32 +6558,32 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6539
6558
|
(A = f.value) == null || A.validate().then((R) => {
|
|
6540
6559
|
var G, re, ke, ie, Te, B;
|
|
6541
6560
|
if (!Object.keys(R).length)
|
|
6542
|
-
r.value == "addGroup" ? (i.value.edificeKey = a.value, (G = d.value) == null || G.appendTo("", i.value),
|
|
6561
|
+
r.value == "addGroup" ? (i.value.edificeKey = a.value, (G = d.value) == null || G.appendTo("", i.value), oe.success("保存新增组成功!")) : r.value == "editGroup" || r.value == "editItem" ? ((re = d.value) == null || re.setData(i.value.name, i.value), i.value.isGroup ? ((ie = (ke = i.value) == null ? void 0 : ke.children) == null || ie.forEach((K) => {
|
|
6543
6562
|
var P;
|
|
6544
6563
|
(P = d.value) == null || P.setData(K.name, K);
|
|
6545
|
-
}),
|
|
6564
|
+
}), oe.success("编辑组成功!")) : (L(
|
|
6546
6565
|
i.value.name,
|
|
6547
6566
|
i.value.parent
|
|
6548
|
-
),
|
|
6567
|
+
), oe.success("编辑菜单成功!"))) : r.value == "moveItemTo" && (L(
|
|
6549
6568
|
i.value.name,
|
|
6550
6569
|
i.value.parent
|
|
6551
|
-
),
|
|
6570
|
+
), oe.success("转移组成功!")), O();
|
|
6552
6571
|
else {
|
|
6553
6572
|
const K = (B = (Te = Object.values(R)[0]) == null ? void 0 : Te[0]) == null ? void 0 : B.message;
|
|
6554
|
-
|
|
6573
|
+
oe.warning(`${K}`);
|
|
6555
6574
|
}
|
|
6556
6575
|
});
|
|
6557
6576
|
}
|
|
6558
6577
|
function Ce() {
|
|
6559
6578
|
var A;
|
|
6560
|
-
(A = d.value) == null || A.resetData(t.sideMenuTree),
|
|
6579
|
+
(A = d.value) == null || A.resetData(t.sideMenuTree), oe.success("恢复默认菜单方案成功!");
|
|
6561
6580
|
}
|
|
6562
6581
|
async function Ve() {
|
|
6563
|
-
const A = uo(
|
|
6582
|
+
const A = uo(M.value);
|
|
6564
6583
|
try {
|
|
6565
|
-
(await
|
|
6584
|
+
(await Hl({ menus: [...A] })).state == 404 && (t.setSideMenuConfig(M.value), s.value = M.value, oe.success("保存菜单方案成功!"));
|
|
6566
6585
|
} catch (R) {
|
|
6567
|
-
|
|
6586
|
+
oe.error(R.message);
|
|
6568
6587
|
}
|
|
6569
6588
|
}
|
|
6570
6589
|
function I(A) {
|
|
@@ -6572,13 +6591,13 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6572
6591
|
if (ie == B) {
|
|
6573
6592
|
if (Te == K)
|
|
6574
6593
|
return !0;
|
|
6575
|
-
|
|
6594
|
+
oe.info("不同父菜单的菜单项,请使用转移至功能转移菜单");
|
|
6576
6595
|
} else
|
|
6577
|
-
|
|
6596
|
+
oe.info("不同层级的菜单项,请使用转移至功能转移菜单");
|
|
6578
6597
|
return x(), !1;
|
|
6579
6598
|
}
|
|
6580
6599
|
function U(A) {
|
|
6581
|
-
A.code &&
|
|
6600
|
+
A.code && oe.error("不同层级的菜单项,不允许调整顺序");
|
|
6582
6601
|
}
|
|
6583
6602
|
function le(A, R) {
|
|
6584
6603
|
var re;
|
|
@@ -6589,7 +6608,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6589
6608
|
const { children: ie } = ke.row, Te = ie == null ? void 0 : ie.findIndex((B) => B.name == A.name);
|
|
6590
6609
|
ie && (me(ie, R, Te), x());
|
|
6591
6610
|
} else {
|
|
6592
|
-
const ie =
|
|
6611
|
+
const ie = rt(M), Te = ie.findIndex((B) => B.name == A.name);
|
|
6593
6612
|
me(ie, R, Te), x(ie);
|
|
6594
6613
|
}
|
|
6595
6614
|
}
|
|
@@ -6600,30 +6619,30 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6600
6619
|
G != 0 ? [A[G - 1], A[G]] = [
|
|
6601
6620
|
A[G],
|
|
6602
6621
|
A[G - 1]
|
|
6603
|
-
] :
|
|
6622
|
+
] : oe.info("该菜单项已经在该组的第一个了!");
|
|
6604
6623
|
break;
|
|
6605
6624
|
}
|
|
6606
6625
|
case "down": {
|
|
6607
6626
|
G != A.length - 1 ? [A[G + 1], A[G]] = [
|
|
6608
6627
|
A[G],
|
|
6609
6628
|
A[G + 1]
|
|
6610
|
-
] :
|
|
6629
|
+
] : oe.info("该菜单项已经在该组的最后一个了!");
|
|
6611
6630
|
break;
|
|
6612
6631
|
}
|
|
6613
6632
|
}
|
|
6614
6633
|
}
|
|
6615
6634
|
return (A, R) => {
|
|
6616
6635
|
const G = F("t-button"), re = F("t-icon"), ke = F("t-input"), ie = F("t-form-item"), Te = F("t-option"), B = F("t-select"), K = F("t-input-group");
|
|
6617
|
-
return v(),
|
|
6618
|
-
default:
|
|
6636
|
+
return v(), S(m(Il), { title: o.value }, {
|
|
6637
|
+
default: w(() => [
|
|
6619
6638
|
V(m(Lo), null, {
|
|
6620
|
-
"left-operations":
|
|
6639
|
+
"left-operations": w(() => [
|
|
6621
6640
|
V(G, {
|
|
6622
6641
|
theme: "primary",
|
|
6623
|
-
onClick:
|
|
6642
|
+
onClick: N
|
|
6624
6643
|
}, {
|
|
6625
|
-
default:
|
|
6626
|
-
|
|
6644
|
+
default: w(() => [
|
|
6645
|
+
J("添加组")
|
|
6627
6646
|
]),
|
|
6628
6647
|
_: 1
|
|
6629
6648
|
}),
|
|
@@ -6631,19 +6650,19 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6631
6650
|
theme: "default",
|
|
6632
6651
|
onClick: Ce
|
|
6633
6652
|
}, {
|
|
6634
|
-
default:
|
|
6635
|
-
|
|
6653
|
+
default: w(() => [
|
|
6654
|
+
J("恢复默认")
|
|
6636
6655
|
]),
|
|
6637
6656
|
_: 1
|
|
6638
6657
|
})
|
|
6639
6658
|
]),
|
|
6640
|
-
"right-operations":
|
|
6659
|
+
"right-operations": w(() => [
|
|
6641
6660
|
V(G, {
|
|
6642
6661
|
theme: "primary",
|
|
6643
6662
|
onClick: Ve
|
|
6644
6663
|
}, {
|
|
6645
|
-
default:
|
|
6646
|
-
|
|
6664
|
+
default: w(() => [
|
|
6665
|
+
J("保存方案")
|
|
6647
6666
|
]),
|
|
6648
6667
|
_: 1
|
|
6649
6668
|
})
|
|
@@ -6670,50 +6689,50 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6670
6689
|
}
|
|
6671
6690
|
}
|
|
6672
6691
|
}, {
|
|
6673
|
-
treeExpandAndFoldIcon:
|
|
6674
|
-
P === "expand" ? (v(),
|
|
6692
|
+
treeExpandAndFoldIcon: w(({ type: P }) => [
|
|
6693
|
+
P === "expand" ? (v(), S(re, {
|
|
6675
6694
|
key: 0,
|
|
6676
6695
|
name: "chevron-right"
|
|
6677
|
-
})) : (v(),
|
|
6696
|
+
})) : (v(), S(re, {
|
|
6678
6697
|
key: 1,
|
|
6679
6698
|
name: "chevron-up"
|
|
6680
6699
|
}))
|
|
6681
6700
|
]),
|
|
6682
|
-
drag:
|
|
6701
|
+
drag: w(() => [
|
|
6683
6702
|
V(re, { name: "move" })
|
|
6684
6703
|
]),
|
|
6685
|
-
title:
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
class:
|
|
6704
|
+
title: w(({ row: P }) => [
|
|
6705
|
+
Z("span", ql, [
|
|
6706
|
+
Z("span", {
|
|
6707
|
+
class: z(["title", P.isGroup ? "title-bold" : "title-child"])
|
|
6689
6708
|
}, [
|
|
6690
6709
|
P.level == 1 && P.isGroup ? (v(), q(ve, { key: 0 }, [
|
|
6691
|
-
P.icon ? (v(),
|
|
6710
|
+
P.icon ? (v(), S(re, {
|
|
6692
6711
|
key: 0,
|
|
6693
6712
|
class: "title-icon",
|
|
6694
6713
|
name: P.icon,
|
|
6695
6714
|
size: "large"
|
|
6696
|
-
}, null, 8, ["name"])) : (v(),
|
|
6715
|
+
}, null, 8, ["name"])) : (v(), S(re, {
|
|
6697
6716
|
key: 1,
|
|
6698
6717
|
class: "title-icon",
|
|
6699
6718
|
name: "app",
|
|
6700
6719
|
size: "large"
|
|
6701
6720
|
}))
|
|
6702
|
-
], 64)) :
|
|
6703
|
-
|
|
6721
|
+
], 64)) : W("", !0),
|
|
6722
|
+
J(" " + ge(P.title), 1)
|
|
6704
6723
|
], 2),
|
|
6705
|
-
P.isGroup ? (v(), q("span",
|
|
6724
|
+
P.isGroup ? (v(), q("span", $l, ge(P.children.length) + "项", 1)) : W("", !0)
|
|
6706
6725
|
])
|
|
6707
6726
|
]),
|
|
6708
|
-
operations:
|
|
6709
|
-
|
|
6727
|
+
operations: w(({ row: P }) => [
|
|
6728
|
+
Z("div", zl, [
|
|
6710
6729
|
V(G, {
|
|
6711
6730
|
variant: "text",
|
|
6712
6731
|
theme: "primary",
|
|
6713
|
-
onClick: (H) =>
|
|
6732
|
+
onClick: (H) => k(P)
|
|
6714
6733
|
}, {
|
|
6715
|
-
default:
|
|
6716
|
-
|
|
6734
|
+
default: w(() => [
|
|
6735
|
+
J(" 编辑修改 ")
|
|
6717
6736
|
]),
|
|
6718
6737
|
_: 2
|
|
6719
6738
|
}, 1032, ["onClick"]),
|
|
@@ -6723,8 +6742,8 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6723
6742
|
disabled: P.isGroup,
|
|
6724
6743
|
onClick: (H) => ne(P)
|
|
6725
6744
|
}, {
|
|
6726
|
-
default:
|
|
6727
|
-
|
|
6745
|
+
default: w(() => [
|
|
6746
|
+
J(ge(P.isGroup ? "-----" : "转移至"), 1)
|
|
6728
6747
|
]),
|
|
6729
6748
|
_: 2
|
|
6730
6749
|
}, 1032, ["disabled", "onClick"]),
|
|
@@ -6733,8 +6752,8 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6733
6752
|
theme: "primary",
|
|
6734
6753
|
onClick: (H) => le(P, "up")
|
|
6735
6754
|
}, {
|
|
6736
|
-
default:
|
|
6737
|
-
|
|
6755
|
+
default: w(() => [
|
|
6756
|
+
J(" 上移 ")
|
|
6738
6757
|
]),
|
|
6739
6758
|
_: 2
|
|
6740
6759
|
}, 1032, ["onClick"]),
|
|
@@ -6743,8 +6762,8 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6743
6762
|
theme: "primary",
|
|
6744
6763
|
onClick: (H) => le(P, "down")
|
|
6745
6764
|
}, {
|
|
6746
|
-
default:
|
|
6747
|
-
|
|
6765
|
+
default: w(() => [
|
|
6766
|
+
J(" 下移 ")
|
|
6748
6767
|
]),
|
|
6749
6768
|
_: 2
|
|
6750
6769
|
}, 1032, ["onClick"]),
|
|
@@ -6754,8 +6773,8 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6754
6773
|
disabled: !P.isGroup,
|
|
6755
6774
|
onClick: (H) => Ae(P)
|
|
6756
6775
|
}, {
|
|
6757
|
-
default:
|
|
6758
|
-
|
|
6776
|
+
default: w(() => [
|
|
6777
|
+
J(ge(P.isGroup ? "撤销组" : "-----"), 1)
|
|
6759
6778
|
]),
|
|
6760
6779
|
_: 2
|
|
6761
6780
|
}, 1032, ["disabled", "onClick"])
|
|
@@ -6771,7 +6790,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6771
6790
|
footer: !1
|
|
6772
6791
|
}
|
|
6773
6792
|
}, {
|
|
6774
|
-
default:
|
|
6793
|
+
default: w(() => [
|
|
6775
6794
|
V(m(Fn), {
|
|
6776
6795
|
ref_key: "commonFormRef",
|
|
6777
6796
|
ref: b,
|
|
@@ -6782,19 +6801,19 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6782
6801
|
labelWidth: "110px"
|
|
6783
6802
|
}
|
|
6784
6803
|
}, Tt({
|
|
6785
|
-
footer:
|
|
6804
|
+
footer: w(() => [
|
|
6786
6805
|
V(G, {
|
|
6787
6806
|
theme: "default",
|
|
6788
6807
|
onClick: O
|
|
6789
6808
|
}, {
|
|
6790
|
-
default:
|
|
6791
|
-
|
|
6809
|
+
default: w(() => [
|
|
6810
|
+
J("取消")
|
|
6792
6811
|
]),
|
|
6793
6812
|
_: 1
|
|
6794
6813
|
}),
|
|
6795
6814
|
V(G, { onClick: ue }, {
|
|
6796
|
-
default:
|
|
6797
|
-
|
|
6815
|
+
default: w(() => [
|
|
6816
|
+
J("确定")
|
|
6798
6817
|
]),
|
|
6799
6818
|
_: 1
|
|
6800
6819
|
})
|
|
@@ -6803,13 +6822,13 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6803
6822
|
}, [
|
|
6804
6823
|
r.value == "addGroup" || r.value == "editGroup" || r.value == "editItem" ? {
|
|
6805
6824
|
name: "body",
|
|
6806
|
-
fn:
|
|
6825
|
+
fn: w(() => [
|
|
6807
6826
|
V(ie, {
|
|
6808
6827
|
name: "title",
|
|
6809
6828
|
label: "组名称",
|
|
6810
6829
|
requiredMark: !0
|
|
6811
6830
|
}, {
|
|
6812
|
-
default:
|
|
6831
|
+
default: w(() => [
|
|
6813
6832
|
V(ke, {
|
|
6814
6833
|
style: { width: "360px" },
|
|
6815
6834
|
modelValue: i.value.title,
|
|
@@ -6824,7 +6843,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6824
6843
|
label: "名称标识",
|
|
6825
6844
|
requiredMark: !0
|
|
6826
6845
|
}, {
|
|
6827
|
-
default:
|
|
6846
|
+
default: w(() => [
|
|
6828
6847
|
V(ke, {
|
|
6829
6848
|
style: { width: "360px" },
|
|
6830
6849
|
modelValue: i.value.name,
|
|
@@ -6834,13 +6853,13 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6834
6853
|
]),
|
|
6835
6854
|
_: 1
|
|
6836
6855
|
}),
|
|
6837
|
-
i.value.level == 1 ? (v(),
|
|
6856
|
+
i.value.level == 1 ? (v(), S(ie, {
|
|
6838
6857
|
key: 0,
|
|
6839
6858
|
name: "icon",
|
|
6840
6859
|
label: "图标标识",
|
|
6841
6860
|
requiredMark: !0
|
|
6842
6861
|
}, {
|
|
6843
|
-
default:
|
|
6862
|
+
default: w(() => [
|
|
6844
6863
|
V(B, {
|
|
6845
6864
|
modelValue: i.value.icon,
|
|
6846
6865
|
"onUpdate:modelValue": R[2] || (R[2] = (P) => i.value.icon = P),
|
|
@@ -6848,23 +6867,23 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6848
6867
|
popupProps: { overlayInnerStyle: { width: "326px" } },
|
|
6849
6868
|
clearable: !0
|
|
6850
6869
|
}, {
|
|
6851
|
-
valueDisplay:
|
|
6852
|
-
i.value.icon ? (v(), q("span",
|
|
6870
|
+
valueDisplay: w(() => [
|
|
6871
|
+
i.value.icon ? (v(), q("span", Zl, [
|
|
6853
6872
|
V(re, {
|
|
6854
6873
|
name: i.value.icon,
|
|
6855
6874
|
style: { marginRight: "8px" }
|
|
6856
6875
|
}, null, 8, ["name"]),
|
|
6857
|
-
|
|
6858
|
-
])) : (v(), q("span",
|
|
6876
|
+
J(ge(i.value.icon), 1)
|
|
6877
|
+
])) : (v(), q("span", Ql, "请选择图标标识"))
|
|
6859
6878
|
]),
|
|
6860
|
-
default:
|
|
6861
|
-
(v(!0), q(ve, null, ye(m(
|
|
6879
|
+
default: w(() => [
|
|
6880
|
+
(v(!0), q(ve, null, ye(m(jl), (P) => (v(), S(Te, {
|
|
6862
6881
|
value: P.stem,
|
|
6863
6882
|
key: P.stem,
|
|
6864
6883
|
class: "overlay-options"
|
|
6865
6884
|
}, {
|
|
6866
|
-
default:
|
|
6867
|
-
|
|
6885
|
+
default: w(() => [
|
|
6886
|
+
Z("span", Xl, [
|
|
6868
6887
|
V(re, {
|
|
6869
6888
|
name: P.stem,
|
|
6870
6889
|
size: "small"
|
|
@@ -6878,14 +6897,14 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6878
6897
|
}, 8, ["modelValue"])
|
|
6879
6898
|
]),
|
|
6880
6899
|
_: 1
|
|
6881
|
-
})) :
|
|
6882
|
-
i.value.isGroup ?
|
|
6900
|
+
})) : W("", !0),
|
|
6901
|
+
i.value.isGroup ? W("", !0) : (v(), S(ie, {
|
|
6883
6902
|
key: 1,
|
|
6884
6903
|
name: "parent",
|
|
6885
6904
|
label: "父菜单",
|
|
6886
6905
|
requiredMark: !0
|
|
6887
6906
|
}, {
|
|
6888
|
-
default:
|
|
6907
|
+
default: w(() => [
|
|
6889
6908
|
V(B, {
|
|
6890
6909
|
options: m(h),
|
|
6891
6910
|
modelValue: i.value.parent,
|
|
@@ -6894,36 +6913,36 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6894
6913
|
]),
|
|
6895
6914
|
_: 1
|
|
6896
6915
|
})),
|
|
6897
|
-
!
|
|
6916
|
+
!_(i.value.children).length && i.value.level == 1 ? (v(), S(ie, {
|
|
6898
6917
|
key: 2,
|
|
6899
6918
|
label: "分组"
|
|
6900
6919
|
}, {
|
|
6901
|
-
default:
|
|
6920
|
+
default: w(() => [
|
|
6902
6921
|
V(G, {
|
|
6903
6922
|
variant: "outline",
|
|
6904
|
-
onClick:
|
|
6923
|
+
onClick: j
|
|
6905
6924
|
}, {
|
|
6906
|
-
default:
|
|
6907
|
-
|
|
6925
|
+
default: w(() => [
|
|
6926
|
+
J("添加分组")
|
|
6908
6927
|
]),
|
|
6909
6928
|
_: 1
|
|
6910
6929
|
})
|
|
6911
6930
|
]),
|
|
6912
6931
|
_: 1
|
|
6913
|
-
})) :
|
|
6914
|
-
(v(!0), q(ve, null, ye(
|
|
6932
|
+
})) : W("", !0),
|
|
6933
|
+
(v(!0), q(ve, null, ye(_(i.value.children), (P, H) => (v(), S(ie, {
|
|
6915
6934
|
key: "group" + H,
|
|
6916
6935
|
label: H == 0 ? "分组" : " "
|
|
6917
6936
|
}, {
|
|
6918
|
-
default:
|
|
6937
|
+
default: w(() => [
|
|
6919
6938
|
V(K, { style: { width: "350px" } }, {
|
|
6920
|
-
default:
|
|
6939
|
+
default: w(() => [
|
|
6921
6940
|
V(ke, {
|
|
6922
6941
|
style: { width: "120px" },
|
|
6923
6942
|
placeholder: "请输入分组名称 ",
|
|
6924
6943
|
value: P.title,
|
|
6925
6944
|
onChange: (de) => m(qe)(
|
|
6926
|
-
|
|
6945
|
+
_(i.value.children),
|
|
6927
6946
|
`[${H}].title`,
|
|
6928
6947
|
de
|
|
6929
6948
|
)
|
|
@@ -6933,7 +6952,7 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6933
6952
|
placeholder: "请输入分组标识 ",
|
|
6934
6953
|
value: P.name,
|
|
6935
6954
|
onChange: (de) => m(qe)(
|
|
6936
|
-
|
|
6955
|
+
_(i.value.children),
|
|
6937
6956
|
`[${H}].name`,
|
|
6938
6957
|
de
|
|
6939
6958
|
)
|
|
@@ -6941,42 +6960,42 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6941
6960
|
V(G, {
|
|
6942
6961
|
variant: "outline",
|
|
6943
6962
|
theme: "default",
|
|
6944
|
-
onClick: (de) =>
|
|
6963
|
+
onClick: (de) => ee(P)
|
|
6945
6964
|
}, {
|
|
6946
|
-
default:
|
|
6947
|
-
|
|
6965
|
+
default: w(() => [
|
|
6966
|
+
J("- ")
|
|
6948
6967
|
]),
|
|
6949
6968
|
_: 2
|
|
6950
6969
|
}, 1032, ["onClick"]),
|
|
6951
|
-
H ==
|
|
6970
|
+
H == _(i.value.children).length - 1 ? (v(), S(G, {
|
|
6952
6971
|
key: 0,
|
|
6953
6972
|
variant: "outline",
|
|
6954
6973
|
theme: "default",
|
|
6955
|
-
onClick: mn(
|
|
6974
|
+
onClick: mn(j, ["prevent"])
|
|
6956
6975
|
}, {
|
|
6957
|
-
default:
|
|
6958
|
-
|
|
6976
|
+
default: w(() => [
|
|
6977
|
+
J("+ ")
|
|
6959
6978
|
]),
|
|
6960
6979
|
_: 1
|
|
6961
|
-
}, 8, ["onClick"])) :
|
|
6980
|
+
}, 8, ["onClick"])) : W("", !0)
|
|
6962
6981
|
]),
|
|
6963
6982
|
_: 2
|
|
6964
6983
|
}, 1024)
|
|
6965
6984
|
]),
|
|
6966
6985
|
_: 2
|
|
6967
6986
|
}, 1032, ["label"]))), 128)),
|
|
6968
|
-
r.value != "addGroup" ? (v(!0), q(ve, { key: 3 }, ye(
|
|
6987
|
+
r.value != "addGroup" ? (v(!0), q(ve, { key: 3 }, ye(C(i.value.children), (P, H) => (v(), S(ie, {
|
|
6969
6988
|
key: "item" + H,
|
|
6970
6989
|
label: H == 0 ? "子菜单项" : " "
|
|
6971
6990
|
}, {
|
|
6972
|
-
default:
|
|
6991
|
+
default: w(() => [
|
|
6973
6992
|
V(K, { style: { width: "350px" } }, {
|
|
6974
|
-
default:
|
|
6993
|
+
default: w(() => [
|
|
6975
6994
|
V(ke, {
|
|
6976
6995
|
placeholder: "请输入子菜单名称 ",
|
|
6977
6996
|
value: P.title,
|
|
6978
6997
|
onChange: (de) => m(qe)(
|
|
6979
|
-
|
|
6998
|
+
C(
|
|
6980
6999
|
i.value.children
|
|
6981
7000
|
),
|
|
6982
7001
|
`[${H}].title`,
|
|
@@ -6988,19 +7007,19 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
6988
7007
|
}, 1024)
|
|
6989
7008
|
]),
|
|
6990
7009
|
_: 2
|
|
6991
|
-
}, 1032, ["label"]))), 128)) :
|
|
7010
|
+
}, 1032, ["label"]))), 128)) : W("", !0)
|
|
6992
7011
|
]),
|
|
6993
7012
|
key: "0"
|
|
6994
7013
|
} : r.value == "moveItemTo" ? {
|
|
6995
7014
|
name: "body",
|
|
6996
|
-
fn:
|
|
6997
|
-
i.value.isGroup ?
|
|
7015
|
+
fn: w(() => [
|
|
7016
|
+
i.value.isGroup ? W("", !0) : (v(), S(ie, {
|
|
6998
7017
|
key: 0,
|
|
6999
7018
|
name: "parent",
|
|
7000
7019
|
label: "转移至",
|
|
7001
7020
|
requiredMark: !0
|
|
7002
7021
|
}, {
|
|
7003
|
-
default:
|
|
7022
|
+
default: w(() => [
|
|
7004
7023
|
V(B, {
|
|
7005
7024
|
options: m(h),
|
|
7006
7025
|
modelValue: i.value.parent,
|
|
@@ -7022,47 +7041,47 @@ const Gl = { class: "menu-title" }, jl = {
|
|
|
7022
7041
|
};
|
|
7023
7042
|
}
|
|
7024
7043
|
});
|
|
7025
|
-
const
|
|
7026
|
-
function
|
|
7027
|
-
e.component("GView",
|
|
7044
|
+
const Pr = Qe(Jl);
|
|
7045
|
+
function Yl(e, t) {
|
|
7046
|
+
e.component("GView", _l);
|
|
7028
7047
|
}
|
|
7029
|
-
function
|
|
7030
|
-
Le(e), Nt(e),
|
|
7048
|
+
function Ar(e) {
|
|
7049
|
+
Le(e), Nt(e), Zt(e), Xt(e);
|
|
7031
7050
|
}
|
|
7032
|
-
const
|
|
7033
|
-
install:
|
|
7051
|
+
const Er = {
|
|
7052
|
+
install: Yl
|
|
7034
7053
|
};
|
|
7035
7054
|
export {
|
|
7036
|
-
|
|
7037
|
-
|
|
7055
|
+
Ir as $,
|
|
7056
|
+
Zt as A,
|
|
7038
7057
|
An as B,
|
|
7039
7058
|
Nn as C,
|
|
7040
|
-
|
|
7041
|
-
|
|
7059
|
+
Nr as D,
|
|
7060
|
+
Ht as E,
|
|
7042
7061
|
jn as F,
|
|
7043
7062
|
Eo as G,
|
|
7044
7063
|
Ge as H,
|
|
7045
|
-
|
|
7064
|
+
Ot as I,
|
|
7046
7065
|
co as J,
|
|
7047
7066
|
Cn as K,
|
|
7048
|
-
|
|
7067
|
+
it as L,
|
|
7049
7068
|
Vo as M,
|
|
7050
7069
|
Mo as N,
|
|
7051
|
-
|
|
7070
|
+
gr as O,
|
|
7052
7071
|
X as P,
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7072
|
+
vr as Q,
|
|
7073
|
+
br as R,
|
|
7074
|
+
yr as S,
|
|
7075
|
+
fr as T,
|
|
7076
|
+
wr as U,
|
|
7077
|
+
kr as V,
|
|
7059
7078
|
bn as W,
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7079
|
+
Cr as X,
|
|
7080
|
+
Tr as Y,
|
|
7081
|
+
_r as Z,
|
|
7063
7082
|
ln as _,
|
|
7064
7083
|
Fn as a,
|
|
7065
|
-
|
|
7084
|
+
xr as a0,
|
|
7066
7085
|
yt as a1,
|
|
7067
7086
|
wt as a2,
|
|
7068
7087
|
Ne as a3,
|
|
@@ -7071,34 +7090,34 @@ export {
|
|
|
7071
7090
|
uo as a6,
|
|
7072
7091
|
No as a7,
|
|
7073
7092
|
So as a8,
|
|
7074
|
-
|
|
7093
|
+
at as a9,
|
|
7075
7094
|
je as aa,
|
|
7076
7095
|
Wn as ab,
|
|
7077
7096
|
mo as ac,
|
|
7078
|
-
|
|
7097
|
+
Pr as ad,
|
|
7079
7098
|
Lo as b,
|
|
7080
7099
|
Do as c,
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7100
|
+
Il as d,
|
|
7101
|
+
Mr as e,
|
|
7102
|
+
Sr as f,
|
|
7084
7103
|
lo as g,
|
|
7085
|
-
|
|
7086
|
-
|
|
7104
|
+
ut as h,
|
|
7105
|
+
Er as i,
|
|
7087
7106
|
gn as j,
|
|
7088
|
-
|
|
7107
|
+
mr as k,
|
|
7089
7108
|
ro as l,
|
|
7090
7109
|
io as m,
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7110
|
+
Ft as n,
|
|
7111
|
+
hr as o,
|
|
7112
|
+
pr as p,
|
|
7094
7113
|
so as q,
|
|
7095
7114
|
vn as r,
|
|
7096
|
-
|
|
7115
|
+
Ar as s,
|
|
7097
7116
|
yn as t,
|
|
7098
7117
|
wn as u,
|
|
7099
7118
|
qn as v,
|
|
7100
|
-
|
|
7119
|
+
$n as w,
|
|
7101
7120
|
Le as x,
|
|
7102
7121
|
Nt as y,
|
|
7103
|
-
|
|
7122
|
+
Xt as z
|
|
7104
7123
|
};
|