@gonsin/gview 2.0.2 → 2.0.4
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 +10 -0
- package/dist/{index-f621b646.mjs → index-a23cc12d.mjs} +1027 -988
- package/dist/{index-07825e29.mjs → index-d9dbde91.mjs} +2 -2
- package/dist/index.mjs +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/GLayout/index.d.ts +2 -0
- package/dist/types/components/GLogin/index.d.ts +2 -0
- package/dist/types/components/common/GCommonDialog/index.d.ts +2 -0
- package/dist/types/components/common/GCommonForm/index.d.ts +2 -0
- package/dist/types/components/common/GCommonHeader/index.d.ts +2 -0
- package/dist/types/components/common/GCommonTable/index.d.ts +2 -0
- package/dist/types/components/common/index.d.ts +4 -0
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/constant/color.d.ts +5 -0
- package/dist/types/constant/common.d.ts +1 -0
- package/dist/types/constant/index.d.ts +5 -0
- package/dist/types/constant/local.d.ts +11 -0
- package/dist/types/constant/theme.d.ts +4 -0
- package/dist/types/constant/websocket.d.ts +22 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/nanoid.d.ts +2 -0
- package/dist/types/hooks/nprogress.d.ts +2 -0
- package/dist/types/http/config.d.ts +5 -0
- package/dist/types/http/index.d.ts +13 -0
- package/dist/types/http/type.d.ts +5 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/stores/index.d.ts +4 -0
- package/dist/types/stores/props.d.ts +6 -0
- package/dist/types/stores/setting.d.ts +74 -0
- package/dist/types/stores/socket.d.ts +16 -0
- package/dist/types/stores/tabMenu.d.ts +18 -0
- package/dist/types/types/common.d.ts +24 -0
- package/dist/types/types/view.d.ts +290 -0
- package/dist/types/utils/color.d.ts +2 -0
- package/dist/types/utils/eval.d.ts +12 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/types/utils/is.d.ts +77 -0
- package/dist/types/utils/menu.d.ts +20 -0
- package/dist/types/utils/storage.d.ts +13 -0
- package/dist/types/utils/table.d.ts +3 -0
- package/dist/types/utils/url.d.ts +1 -0
- package/dist/types/utils/withInstall.d.ts +6 -0
- package/dist/types/views/GMenuManage/index.d.ts +2 -0
- package/dist/types/views/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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
|
|
6
|
-
import { defineStore as
|
|
7
|
-
import { MessagePlugin as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
3
|
+
var mt = (e, t, o) => (sn(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
|
+
import { defineComponent as ee, ref as z, computed as F, resolveComponent as D, openBlock as v, createBlock as S, normalizeClass as $, unref as m, withCtx as w, createElementBlock as q, Fragment as ve, renderList as ye, createVNode as V, createTextVNode as J, createCommentVNode as G, toDisplayString as ge, nextTick as un, createElementVNode as Z, normalizeStyle as Tt, renderSlot as Be, isRef as yt, onMounted as et, mergeProps as $t, createSlots as _t, normalizeProps as _o, guardReactiveProps as Io, watch as we, onBeforeUnmount as It, onBeforeMount as xt, defineAsyncComponent as cn, Transition as dn, withModifiers as mn } from "vue";
|
|
5
|
+
import { useRouter as ut, useRoute as tt } from "vue-router";
|
|
6
|
+
import { defineStore as Nt } from "pinia";
|
|
7
|
+
import { MessagePlugin as Y, DialogPlugin as vt, Message as fn } from "tdesign-vue-next";
|
|
8
|
+
import hn from "axios";
|
|
9
|
+
import { customAlphabet as pn } from "nanoid";
|
|
10
|
+
import bt from "nprogress";
|
|
11
|
+
import { get as Q, set as qe, cloneDeep as it } from "lodash-es";
|
|
12
12
|
import Wt from "dayjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
13
|
+
import $e from "mustache";
|
|
14
|
+
import gn from "he";
|
|
15
|
+
const st = "config", lo = "themeConfig", vn = "user", hr = "menu", ro = "initTabMenuList", io = "tabMenu", Dt = "sideMenuConfig", pr = "token", gr = "tokenExpiredTime", vr = "dataId", so = "sessionId", bn = {
|
|
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
|
+
mt(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 lt = new So("session"), je = new So("local"), Le = Nt("setting", {
|
|
101
101
|
state: () => ({
|
|
102
102
|
// 登录标志
|
|
103
|
-
isUserLogin: !!
|
|
103
|
+
isUserLogin: !!lt.getItem(vn) || !1,
|
|
104
104
|
// 加载标志
|
|
105
105
|
isGlobalLoaded: !0,
|
|
106
106
|
// 侧边栏是否显示
|
|
@@ -109,12 +109,12 @@ const at = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
109
109
|
isSettingPanelShow: !1,
|
|
110
110
|
// 主题配置
|
|
111
111
|
themeConfig: je.getItem(lo) || {
|
|
112
|
-
...
|
|
112
|
+
...bn
|
|
113
113
|
},
|
|
114
114
|
// 侧边菜单配置
|
|
115
|
-
sideMenuTree: je.getItem(
|
|
115
|
+
sideMenuTree: je.getItem(Dt) || [],
|
|
116
116
|
// 用户传入GView的信息与配置
|
|
117
|
-
userConfig: je.getItem(
|
|
117
|
+
userConfig: je.getItem(st) || {
|
|
118
118
|
userInfo: {
|
|
119
119
|
realName: ""
|
|
120
120
|
},
|
|
@@ -164,21 +164,21 @@ const at = 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(Dt, e);
|
|
168
168
|
},
|
|
169
169
|
/**
|
|
170
170
|
* @description 用户登录后初始化配置
|
|
171
171
|
*/
|
|
172
172
|
async initUserConfig(e) {
|
|
173
|
-
je.setItem(
|
|
173
|
+
je.setItem(st, e), this.userConfig = { ...e };
|
|
174
174
|
const { userMenu: t } = e, o = xo(t, null, 1);
|
|
175
|
-
je.setItem(
|
|
175
|
+
je.setItem(Dt, 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(st), sessionStorage.clear(), this.setUserLoginStatus(!1);
|
|
182
182
|
},
|
|
183
183
|
/**
|
|
184
184
|
* @description 更改主题
|
|
@@ -210,19 +210,19 @@ const at = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
210
210
|
this.changeMode(e), this.changeBrandTheme(e), this.changeTheme(e);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
}),
|
|
213
|
+
}), St = Nt("tabMenu", {
|
|
214
214
|
state: () => ({
|
|
215
215
|
// 初始化tab菜单列表
|
|
216
|
-
initTabMenuList:
|
|
216
|
+
initTabMenuList: lt.getItem(ro) || [],
|
|
217
217
|
// tab菜单列表
|
|
218
|
-
tabMenuList:
|
|
218
|
+
tabMenuList: lt.getItem(io) || []
|
|
219
219
|
}),
|
|
220
220
|
actions: {
|
|
221
221
|
setInitTabMenuList(e) {
|
|
222
|
-
|
|
222
|
+
lt.setItem(ro, e), this.initTabMenuList = e;
|
|
223
223
|
},
|
|
224
224
|
setTabMenuList(e) {
|
|
225
|
-
|
|
225
|
+
lt.setItem(io, e), this.tabMenuList = e;
|
|
226
226
|
},
|
|
227
227
|
/**
|
|
228
228
|
* @description 初始化tab菜单列表
|
|
@@ -265,7 +265,7 @@ const at = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
265
265
|
this.setTabMenuList(this.initTabMenuList);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
}),
|
|
268
|
+
}), yn = 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",
|
|
@@ -281,49 +281,49 @@ const at = new So("session"), je = new So("local"), Le = xt("setting", {
|
|
|
281
281
|
subcmd: e,
|
|
282
282
|
response: 0
|
|
283
283
|
}
|
|
284
|
-
},
|
|
284
|
+
}, wn = 3e4, kn = 3e3, Cn = Object.prototype.toString;
|
|
285
285
|
function Ge(e, t) {
|
|
286
|
-
return
|
|
286
|
+
return Cn.call(e) === `[object ${t}]`;
|
|
287
287
|
}
|
|
288
288
|
function co(e) {
|
|
289
289
|
return Ge(e, "Function");
|
|
290
290
|
}
|
|
291
|
-
const
|
|
292
|
-
function
|
|
291
|
+
const Tn = (e) => typeof e < "u", Vo = (e) => !Tn(e), Mo = (e) => e !== null && Ge(e, "Object");
|
|
292
|
+
function br(e) {
|
|
293
293
|
return Ge(e, "Date");
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function yr(e) {
|
|
296
296
|
return Ge(e, "Number");
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function wr(e) {
|
|
299
299
|
return Ge(e, "AsyncFunction");
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function kr(e) {
|
|
302
302
|
return Ge(e, "Promise") && Mo(e) && co(e.then) && co(e.catch);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Cr(e) {
|
|
305
305
|
return Ge(e, "String");
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Tr(e) {
|
|
308
308
|
return Ge(e, "Boolean");
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function _r(e) {
|
|
311
311
|
return e && Array.isArray(e);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
314
|
-
function
|
|
313
|
+
const Ir = () => typeof window < "u", xr = (e) => typeof window < "u" && Ge(e, "Window"), Nr = (e) => Mo(e) && !!e.tagName, Sr = typeof window > "u";
|
|
314
|
+
function wt(e) {
|
|
315
315
|
return e === null;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
return Vo(e) &&
|
|
317
|
+
function kt(e) {
|
|
318
|
+
return Vo(e) && wt(e);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
return Vo(e) ||
|
|
320
|
+
function xe(e) {
|
|
321
|
+
return Vo(e) || wt(e);
|
|
322
322
|
}
|
|
323
323
|
function Po(e) {
|
|
324
|
-
return
|
|
324
|
+
return xe(e) || (e + "").trim() == "";
|
|
325
325
|
}
|
|
326
|
-
const Xt =
|
|
326
|
+
const Xt = Nt("socket", {
|
|
327
327
|
state: () => ({
|
|
328
328
|
socket: null,
|
|
329
329
|
socketInterval: void 0,
|
|
@@ -343,15 +343,15 @@ const Xt = xt("socket", {
|
|
|
343
343
|
*/
|
|
344
344
|
initSocket() {
|
|
345
345
|
const e = this;
|
|
346
|
-
this.isSocketLinked = !1, this.socket = new WebSocket(
|
|
346
|
+
this.isSocketLinked = !1, this.socket = new WebSocket(yn), this.socket.onopen = function(t) {
|
|
347
347
|
let o = Ot("heart");
|
|
348
348
|
e.socketInterval = setInterval(function() {
|
|
349
349
|
e.socket && e.socket.send(JSON.stringify(o));
|
|
350
|
-
},
|
|
350
|
+
}, wn);
|
|
351
351
|
}, this.socket.onclose = function(t) {
|
|
352
|
-
|
|
352
|
+
Y.error("WebSocket 断开连接"), e.socketInterval = null, e.isSocketResetting = !0, e.socket = null, Y.error("WebSocket 重新连接..."), e.socketTimeout = setTimeout(function() {
|
|
353
353
|
e.isSocketResetting && (e.initSocket(), e.isSocketLinked && (clearTimeout(e.socketTimeout), window.dispatchEvent(new CustomEvent("onSocketReload"))));
|
|
354
|
-
},
|
|
354
|
+
}, kn);
|
|
355
355
|
}, this.socket.onerror = function(t) {
|
|
356
356
|
console.log("出现错误", t);
|
|
357
357
|
}, this.socket.onmessage = function(t) {
|
|
@@ -367,14 +367,14 @@ const Xt = xt("socket", {
|
|
|
367
367
|
},
|
|
368
368
|
sendRegisterMessage(e) {
|
|
369
369
|
let t = Ot("register", e);
|
|
370
|
-
|
|
370
|
+
kt(this.socket) || this.socket.send(JSON.stringify(t));
|
|
371
371
|
},
|
|
372
372
|
sendUnregisterMessage(e) {
|
|
373
373
|
let t = Ot("unregister", e);
|
|
374
|
-
|
|
374
|
+
kt(this.socket) || this.socket.send(JSON.stringify(t));
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
}), Zt =
|
|
377
|
+
}), Zt = Nt("props", {
|
|
378
378
|
state: () => ({
|
|
379
379
|
propsSource: {}
|
|
380
380
|
}),
|
|
@@ -396,10 +396,10 @@ function mo(e) {
|
|
|
396
396
|
t[n.split("=")[0]] = n.split("=")[1];
|
|
397
397
|
}), t;
|
|
398
398
|
}
|
|
399
|
-
const
|
|
399
|
+
const _n = /* @__PURE__ */ ee({
|
|
400
400
|
__name: "GLayoutHeaderTab",
|
|
401
401
|
setup(e) {
|
|
402
|
-
const t =
|
|
402
|
+
const t = ut(), o = tt(), n = z(""), a = St(), l = Le(), r = F(() => a.tabMenuList), s = F(() => l.homeUrl);
|
|
403
403
|
function i(T, h, y) {
|
|
404
404
|
h.trigger === "document" && (n.value = null), T && (n.value = y);
|
|
405
405
|
}
|
|
@@ -438,18 +438,18 @@ const Tn = /* @__PURE__ */ Y({
|
|
|
438
438
|
function E(T, h) {
|
|
439
439
|
const y = o.fullPath, { tabMenuList: g } = a, p = g.findIndex((_) => _.path === y);
|
|
440
440
|
if (T === "other" && p !== h || T === "ahead" && p < h || T === "behind" && p === -1) {
|
|
441
|
-
const _ = T === "behind" ? g.length - 1 : 1,
|
|
441
|
+
const _ = T === "behind" ? g.length - 1 : 1, I = g[_];
|
|
442
442
|
t.push({
|
|
443
|
-
path:
|
|
444
|
-
query:
|
|
443
|
+
path: I.path,
|
|
444
|
+
query: I.query
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
n.value = null;
|
|
448
448
|
}
|
|
449
449
|
return (T, h) => {
|
|
450
|
-
const y =
|
|
451
|
-
return v(), S(
|
|
452
|
-
class:
|
|
450
|
+
const y = D("t-icon"), g = D("t-dropdown-item"), p = D("t-dropdown-menu"), C = D("t-dropdown"), _ = D("t-tab-panel"), I = D("t-tabs");
|
|
451
|
+
return v(), S(I, {
|
|
452
|
+
class: $(`${m(X)}__header-tabs`),
|
|
453
453
|
size: "large",
|
|
454
454
|
value: decodeURIComponent(T.$route.fullPath),
|
|
455
455
|
onChange: u,
|
|
@@ -465,7 +465,7 @@ const Tn = /* @__PURE__ */ Y({
|
|
|
465
465
|
V(C, {
|
|
466
466
|
trigger: "context-menu",
|
|
467
467
|
"popup-props": {
|
|
468
|
-
onVisibleChange: (
|
|
468
|
+
onVisibleChange: (te, k) => i(te, k, N.path),
|
|
469
469
|
visible: n.value != "" ? n.value === N.path : !1
|
|
470
470
|
}
|
|
471
471
|
}, {
|
|
@@ -481,8 +481,8 @@ const Tn = /* @__PURE__ */ Y({
|
|
|
481
481
|
J("前往首页 ")
|
|
482
482
|
]),
|
|
483
483
|
_: 2
|
|
484
|
-
}, 1032, ["onClick"])) :
|
|
485
|
-
N.isHome ?
|
|
484
|
+
}, 1032, ["onClick"])) : G("", !0),
|
|
485
|
+
N.isHome ? G("", !0) : (v(), S(g, {
|
|
486
486
|
key: 1,
|
|
487
487
|
onClick: () => d(N)
|
|
488
488
|
}, {
|
|
@@ -501,7 +501,7 @@ const Tn = /* @__PURE__ */ Y({
|
|
|
501
501
|
J("关闭左侧 ")
|
|
502
502
|
]),
|
|
503
503
|
_: 2
|
|
504
|
-
}, 1032, ["onClick"])) :
|
|
504
|
+
}, 1032, ["onClick"])) : G("", !0),
|
|
505
505
|
j > 0 && j < m(r).length - 1 ? (v(), S(g, {
|
|
506
506
|
key: 3,
|
|
507
507
|
onClick: () => f(N.path, j)
|
|
@@ -511,7 +511,7 @@ const Tn = /* @__PURE__ */ Y({
|
|
|
511
511
|
J("关闭右侧 ")
|
|
512
512
|
]),
|
|
513
513
|
_: 2
|
|
514
|
-
}, 1032, ["onClick"])) :
|
|
514
|
+
}, 1032, ["onClick"])) : G("", !0),
|
|
515
515
|
j > 0 && m(r).length > 2 ? (v(), S(g, {
|
|
516
516
|
key: 4,
|
|
517
517
|
onClick: () => M(N.path, j)
|
|
@@ -521,7 +521,7 @@ const Tn = /* @__PURE__ */ Y({
|
|
|
521
521
|
J("关闭其他 ")
|
|
522
522
|
]),
|
|
523
523
|
_: 2
|
|
524
|
-
}, 1032, ["onClick"])) :
|
|
524
|
+
}, 1032, ["onClick"])) : G("", !0)
|
|
525
525
|
]),
|
|
526
526
|
_: 2
|
|
527
527
|
}, 1024)
|
|
@@ -540,10 +540,10 @@ const Tn = /* @__PURE__ */ Y({
|
|
|
540
540
|
};
|
|
541
541
|
}
|
|
542
542
|
});
|
|
543
|
-
const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhdEVYdENyZWF0aW9uIFRpbWUAMjAyMjoxMTozMCAwODo0NDo0MviriswAACO4SURBVHhe7Z0JeFzFle+r6t5utSRvLLYx2JZaltQteQFjlpiEZ/wGskEmYRIYSL5MGGaBmSHMJEzCkrBNCBBIhkcSQhKYEIb5eElMMgmZELJiVhOCwau6W7tkgW2Mdy293Fvn/atVJpbVfW/dVsvW+77+2a2+VX37di2nTp3aWYUKFSpUqFChQoUKFSpUqFChQoUKFS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j3xgFNZZKeMhAfq1wRlkvnGgI97Xh1t/C9F63s2vuptWsfAeCJKKxm/Dsm/2kF2Hbsqk3+S6Tda4mtJ/SOF+GrPXI2hl+v30IlVi4tzctR1YqoR71HUuqvuls4uKXSLtAI9UTAeFCsCBRpLoRuITcuihsOeRbDvk3gg93QPGux/XvQyL3cmN3d0lNt1Q0fiN+4FYlwNqrOAiITfT+pr7UWu1TkER97H3Ig59qpyeI56fjPUnfsyFM2BJtOstiAi0hj3zKr5mnfVBMP4ICu7MuwHGooxOIxT/j++p8EhhofATlZ0162Pn26Tu8D+JSlFXhHAK5Jra2ttqW61Zlcrlqi1dXsWwmDLPeFiSFY9vCd7uBALiO68J83b8zOnfXZJ0ipEC8OFuxwv7D/v3VMzPWNIu51ajOqlAGwkzY06Ft4YZCR45ALskmdjBL7n61EWmYWyOOnRtW6xQXDKzMFjqCsRyo6RfCkieqWkV7FcRx5JDXtIdSSNTF6sni0/x++xA5mB6Si/Tirja1VX3BLhC1RZB0xEmmzywHpNQZ9BrCJiGzrptz3BFJ2eoanpl+8ODw9pNPzq1Yv94ZVYilk19pY7MTTOKm0mpadrDLb/mX2uXXsbNm3Rc8t83LogoCIiAS0XhjSBQegVU1fZjxTCbD9iweaNtbStqp31AbVhwYmmmtOBnGaxnyoEKFChUqVKhQoUKFChUqVKhQoUKFChUqVKhQoQww9v8ADoTZZnPdorgAAAAASUVORK5CYII=", xn = /* @__PURE__ */ ee({
|
|
544
544
|
__name: "GLayoutHeader",
|
|
545
545
|
setup(e) {
|
|
546
|
-
const t =
|
|
546
|
+
const t = ut(), o = Le(), n = F(() => o.userRealName), a = F(() => 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 =
|
|
557
|
+
const c = D("t-icon"), d = D("t-button"), b = D("t-dropdown-item"), f = D("t-dropdown-menu"), M = D("t-dropdown"), E = D("t-tooltip"), T = D("t-head-menu"), h = D("t-header");
|
|
558
558
|
return v(), S(h, {
|
|
559
|
-
class:
|
|
559
|
+
class: $(`${m(X)}__header`)
|
|
560
560
|
}, {
|
|
561
561
|
default: w(() => [
|
|
562
562
|
V(T, { theme: m(a) }, {
|
|
563
563
|
logo: w(() => [
|
|
564
564
|
Z("div", {
|
|
565
|
-
class:
|
|
565
|
+
class: $(`${m(X)}__header-logo-container`)
|
|
566
566
|
}, [
|
|
567
567
|
Z("div", {
|
|
568
|
-
class:
|
|
569
|
-
style:
|
|
568
|
+
class: $(`${m(X)}__header—logo`),
|
|
569
|
+
style: Tt({ backgroundImage: `url(${m(In)})` })
|
|
570
570
|
}, null, 6)
|
|
571
571
|
], 2),
|
|
572
572
|
Z("div", {
|
|
573
|
-
class:
|
|
573
|
+
class: $(`${m(X)}__header—collapse`)
|
|
574
574
|
}, [
|
|
575
575
|
V(d, {
|
|
576
576
|
theme: "default",
|
|
@@ -590,7 +590,7 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
590
590
|
]),
|
|
591
591
|
operations: w(() => [
|
|
592
592
|
Z("div", {
|
|
593
|
-
class:
|
|
593
|
+
class: $(`${m(X)}__header-operations-container`)
|
|
594
594
|
}, [
|
|
595
595
|
V(M, { trigger: "click" }, {
|
|
596
596
|
dropdown: w(() => [
|
|
@@ -648,7 +648,7 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
648
648
|
], 2)
|
|
649
649
|
]),
|
|
650
650
|
default: w(() => [
|
|
651
|
-
V(
|
|
651
|
+
V(_n)
|
|
652
652
|
]),
|
|
653
653
|
_: 1
|
|
654
654
|
}, 8, ["theme"])
|
|
@@ -658,17 +658,17 @@ const _n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAAAyCAYAAADMZheFAA
|
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
|
-
const
|
|
661
|
+
const Nn = /* @__PURE__ */ ee({
|
|
662
662
|
__name: "GLayoutContent",
|
|
663
663
|
setup(e) {
|
|
664
664
|
return (t, o) => {
|
|
665
|
-
const n =
|
|
665
|
+
const n = D("t-content"), a = D("t-layout");
|
|
666
666
|
return v(), S(a, {
|
|
667
|
-
class:
|
|
667
|
+
class: $(`${m(X)}__content-layout`)
|
|
668
668
|
}, {
|
|
669
669
|
default: w(() => [
|
|
670
670
|
V(n, {
|
|
671
|
-
class:
|
|
671
|
+
class: $(`${m(X)}__content`)
|
|
672
672
|
}, {
|
|
673
673
|
default: w(() => [
|
|
674
674
|
Be(t.$slots, "default")
|
|
@@ -681,7 +681,7 @@ const xn = /* @__PURE__ */ Y({
|
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
});
|
|
684
|
-
const
|
|
684
|
+
const Vr = [
|
|
685
685
|
"#0052d9",
|
|
686
686
|
"#0594fa",
|
|
687
687
|
"#00a870",
|
|
@@ -690,7 +690,7 @@ const Nr = [
|
|
|
690
690
|
"#e34d59",
|
|
691
691
|
"#ed49b4",
|
|
692
692
|
"#834ec2"
|
|
693
|
-
],
|
|
693
|
+
], Mr = [
|
|
694
694
|
"#4582e6",
|
|
695
695
|
"#29a4fb",
|
|
696
696
|
"#03a56f",
|
|
@@ -699,7 +699,7 @@ const Nr = [
|
|
|
699
699
|
"#ea7b84",
|
|
700
700
|
"#f172c5",
|
|
701
701
|
"#ab87d5"
|
|
702
|
-
],
|
|
702
|
+
], Sn = {
|
|
703
703
|
DEFAULT: {
|
|
704
704
|
"--td-brand-color": "#0052d9",
|
|
705
705
|
"--td-brand-color-1": "#f2f3ff",
|
|
@@ -804,7 +804,7 @@ const Nr = [
|
|
|
804
804
|
"--td-brand-color-9": "#dda204",
|
|
805
805
|
"--td-brand-color-10": "#603100"
|
|
806
806
|
}
|
|
807
|
-
},
|
|
807
|
+
}, Vn = /* @__PURE__ */ ee({
|
|
808
808
|
__name: "GLayoutSideMenuContent",
|
|
809
809
|
props: {
|
|
810
810
|
sideMenuTree: null
|
|
@@ -814,48 +814,61 @@ const Nr = [
|
|
|
814
814
|
t.toggleSideMenuCollapse();
|
|
815
815
|
};
|
|
816
816
|
return (n, a) => {
|
|
817
|
-
const l =
|
|
817
|
+
const l = D("t-icon"), r = D("t-menu-item"), s = D("GLayoutSideMenuContent", !0), i = D("t-submenu");
|
|
818
818
|
return v(!0), q(ve, null, ye(e.sideMenuTree, (u, c) => (v(), q("div", {
|
|
819
|
-
class:
|
|
819
|
+
class: $(`${m(X)}__side-menu-content`),
|
|
820
820
|
key: c
|
|
821
821
|
}, [
|
|
822
|
-
!u.children || !u.children.length ? (v(), S(
|
|
822
|
+
!u.children || !u.children.length ? (v(), S(r, {
|
|
823
823
|
key: 0,
|
|
824
|
-
class:
|
|
824
|
+
class: $(`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
|
+
icon: w(() => [
|
|
831
|
+
u.level == 1 ? (v(), q(ve, { key: 0 }, [
|
|
832
|
+
u.icon ? (v(), S(l, {
|
|
833
|
+
key: 0,
|
|
834
|
+
name: u.icon,
|
|
835
|
+
size: "large"
|
|
836
|
+
}, null, 8, ["name"])) : (v(), S(l, {
|
|
837
|
+
key: 1,
|
|
838
|
+
name: "app",
|
|
839
|
+
size: "large"
|
|
840
|
+
}))
|
|
841
|
+
], 64)) : G("", !0)
|
|
842
|
+
]),
|
|
830
843
|
default: w(() => [
|
|
831
|
-
J(ge(u.title), 1)
|
|
844
|
+
J(" " + ge(u.title), 1)
|
|
832
845
|
]),
|
|
833
846
|
_: 2
|
|
834
847
|
}, 1032, ["class", "name", "value", "to"])) : (v(), S(i, {
|
|
835
848
|
key: 1,
|
|
836
|
-
class:
|
|
849
|
+
class: $(`level${u.level}-margin`),
|
|
837
850
|
name: u.name,
|
|
838
851
|
value: u.name,
|
|
839
852
|
title: u.title
|
|
840
853
|
}, {
|
|
841
854
|
icon: w(() => [
|
|
842
855
|
u.level == 1 ? (v(), q(ve, { key: 0 }, [
|
|
843
|
-
u.icon ? (v(), S(
|
|
856
|
+
u.icon ? (v(), S(l, {
|
|
844
857
|
key: 0,
|
|
845
858
|
name: u.icon,
|
|
846
859
|
size: "large"
|
|
847
|
-
}, null, 8, ["name"])) : (v(), S(
|
|
860
|
+
}, null, 8, ["name"])) : (v(), S(l, {
|
|
848
861
|
key: 1,
|
|
849
862
|
name: "app",
|
|
850
863
|
size: "large"
|
|
851
864
|
}))
|
|
852
|
-
], 64)) :
|
|
865
|
+
], 64)) : G("", !0)
|
|
853
866
|
]),
|
|
854
867
|
default: w(() => [
|
|
855
868
|
u.children ? (v(), S(s, {
|
|
856
869
|
key: 0,
|
|
857
870
|
sideMenuTree: u.children
|
|
858
|
-
}, null, 8, ["sideMenuTree"])) :
|
|
871
|
+
}, null, 8, ["sideMenuTree"])) : G("", !0)
|
|
859
872
|
]),
|
|
860
873
|
_: 2
|
|
861
874
|
}, 1032, ["class", "name", "value", "title"]))
|
|
@@ -863,25 +876,25 @@ const Nr = [
|
|
|
863
876
|
};
|
|
864
877
|
}
|
|
865
878
|
});
|
|
866
|
-
const
|
|
879
|
+
const Vt = (e, t) => {
|
|
867
880
|
const o = e.__vccOpts || e;
|
|
868
881
|
for (const [n, a] of t)
|
|
869
882
|
o[n] = a;
|
|
870
883
|
return o;
|
|
871
|
-
},
|
|
884
|
+
}, Mn = /* @__PURE__ */ Vt(Vn, [["__scopeId", "data-v-d23bd8af"]]), Pn = /* @__PURE__ */ ee({
|
|
872
885
|
__name: "GLayoutSideMenu",
|
|
873
886
|
setup(e) {
|
|
874
|
-
const t =
|
|
887
|
+
const t = ut(), o = tt(), n = Le(), a = F(() => n.sideMenuTree), l = F(() => n.displayMode), r = F({
|
|
875
888
|
get() {
|
|
876
889
|
return n.isSideMenuCollapse;
|
|
877
890
|
},
|
|
878
891
|
set() {
|
|
879
892
|
n.toggleSideMenuCollapse();
|
|
880
893
|
}
|
|
881
|
-
}), s =
|
|
894
|
+
}), s = F(() => {
|
|
882
895
|
const c = o.fullPath.split("/").length;
|
|
883
896
|
return o.fullPath.split("/")[c - 1];
|
|
884
|
-
}), i =
|
|
897
|
+
}), i = F(() => (a.value.forEach((c) => {
|
|
885
898
|
c.children && c.children.forEach((d) => {
|
|
886
899
|
if (d.path == s.value)
|
|
887
900
|
return [c.name];
|
|
@@ -891,13 +904,13 @@ const St = (e, t) => {
|
|
|
891
904
|
t.push({ name: "menuManage" }), n.toggleSideMenuCollapse();
|
|
892
905
|
}
|
|
893
906
|
return (c, d) => {
|
|
894
|
-
const b =
|
|
907
|
+
const b = D("t-icon"), f = D("t-button"), M = D("t-menu"), E = D("t-drawer");
|
|
895
908
|
return v(), S(E, {
|
|
896
|
-
class:
|
|
909
|
+
class: $(`${m(X)}__drawer`),
|
|
897
910
|
size: "232px",
|
|
898
911
|
placement: "left",
|
|
899
912
|
visible: m(r),
|
|
900
|
-
"onUpdate:visible": d[0] || (d[0] = (T) =>
|
|
913
|
+
"onUpdate:visible": d[0] || (d[0] = (T) => yt(r) ? r.value = T : null),
|
|
901
914
|
showOverlay: !0,
|
|
902
915
|
header: !1,
|
|
903
916
|
footer: !1,
|
|
@@ -929,7 +942,7 @@ const St = (e, t) => {
|
|
|
929
942
|
})
|
|
930
943
|
]),
|
|
931
944
|
default: w(() => [
|
|
932
|
-
V(
|
|
945
|
+
V(Mn, { sideMenuTree: m(a) }, null, 8, ["sideMenuTree"])
|
|
933
946
|
]),
|
|
934
947
|
_: 1
|
|
935
948
|
}, 8, ["theme", "value", "defaultExpanded"])
|
|
@@ -939,29 +952,29 @@ const St = (e, t) => {
|
|
|
939
952
|
};
|
|
940
953
|
}
|
|
941
954
|
});
|
|
942
|
-
function
|
|
955
|
+
function An(e) {
|
|
943
956
|
return e.replace(/([A-Z])/g, "_$1").toUpperCase();
|
|
944
957
|
}
|
|
945
|
-
function
|
|
946
|
-
const o = /^#[A-F\d]{6}$/i.test(e) ? e :
|
|
958
|
+
function En(e, t) {
|
|
959
|
+
const o = /^#[A-F\d]{6}$/i.test(e) ? e : An(e);
|
|
947
960
|
return t[o || "DEFAULT"];
|
|
948
961
|
}
|
|
949
|
-
const
|
|
962
|
+
const Bn = /* @__PURE__ */ ee({
|
|
950
963
|
__name: "Color",
|
|
951
964
|
props: {
|
|
952
965
|
value: { default: "default" }
|
|
953
966
|
},
|
|
954
967
|
setup(e) {
|
|
955
|
-
const t = e, o =
|
|
956
|
-
background:
|
|
968
|
+
const t = e, o = F(() => ({
|
|
969
|
+
background: En(t.value, Sn)["--td-brand-color"]
|
|
957
970
|
}));
|
|
958
971
|
return (n, a) => (v(), q("div", {
|
|
959
|
-
style:
|
|
960
|
-
class:
|
|
972
|
+
style: Tt(m(o)),
|
|
973
|
+
class: $(`${m(X)}__color-container`)
|
|
961
974
|
}, null, 6));
|
|
962
975
|
}
|
|
963
976
|
});
|
|
964
|
-
const
|
|
977
|
+
const Ln = /* @__PURE__ */ ee({
|
|
965
978
|
__name: "GLayoutSettingPanel",
|
|
966
979
|
setup(e) {
|
|
967
980
|
const t = Le(), o = [
|
|
@@ -978,7 +991,7 @@ const Bn = /* @__PURE__ */ Y({
|
|
|
978
991
|
{ type: "light", text: "明亮" },
|
|
979
992
|
{ type: "dark", text: "暗黑" },
|
|
980
993
|
{ type: "auto", text: "跟随系统" }
|
|
981
|
-
], a =
|
|
994
|
+
], a = F(() => t.themeConfig), l = F({
|
|
982
995
|
get() {
|
|
983
996
|
return t.isSettingPanelShow;
|
|
984
997
|
},
|
|
@@ -989,11 +1002,11 @@ const Bn = /* @__PURE__ */ Y({
|
|
|
989
1002
|
t.changeTheme(a.value);
|
|
990
1003
|
};
|
|
991
1004
|
return (s, i) => {
|
|
992
|
-
const u =
|
|
1005
|
+
const u = D("t-icon"), c = D("t-radio-button"), d = D("t-radio-group"), b = D("t-drawer");
|
|
993
1006
|
return v(), S(b, {
|
|
994
|
-
class:
|
|
1007
|
+
class: $(`${m(X)}__setting-panel`),
|
|
995
1008
|
visible: m(l),
|
|
996
|
-
"onUpdate:visible": i[2] || (i[2] = (f) =>
|
|
1009
|
+
"onUpdate:visible": i[2] || (i[2] = (f) => yt(l) ? l.value = f : null),
|
|
997
1010
|
footer: !1
|
|
998
1011
|
}, {
|
|
999
1012
|
header: w(() => [
|
|
@@ -1002,10 +1015,10 @@ const Bn = /* @__PURE__ */ Y({
|
|
|
1002
1015
|
]),
|
|
1003
1016
|
default: w(() => [
|
|
1004
1017
|
Z("div", {
|
|
1005
|
-
class:
|
|
1018
|
+
class: $(`${m(X)}__setting-container`)
|
|
1006
1019
|
}, [
|
|
1007
1020
|
Z("div", {
|
|
1008
|
-
class:
|
|
1021
|
+
class: $(`${m(X)}__setting-container--title`)
|
|
1009
1022
|
}, "主题色", 2),
|
|
1010
1023
|
V(d, {
|
|
1011
1024
|
modelValue: m(a).brandTheme,
|
|
@@ -1017,10 +1030,10 @@ const Bn = /* @__PURE__ */ Y({
|
|
|
1017
1030
|
(v(), S(c, {
|
|
1018
1031
|
key: M,
|
|
1019
1032
|
value: f,
|
|
1020
|
-
class:
|
|
1033
|
+
class: $(`${m(X)}__setting-container--color-group`)
|
|
1021
1034
|
}, {
|
|
1022
1035
|
default: w(() => [
|
|
1023
|
-
V(
|
|
1036
|
+
V(Bn, { value: f }, null, 8, ["value"])
|
|
1024
1037
|
]),
|
|
1025
1038
|
_: 2
|
|
1026
1039
|
}, 1032, ["value", "class"]))
|
|
@@ -1029,7 +1042,7 @@ const Bn = /* @__PURE__ */ Y({
|
|
|
1029
1042
|
_: 1
|
|
1030
1043
|
}, 8, ["modelValue"]),
|
|
1031
1044
|
Z("div", {
|
|
1032
|
-
class:
|
|
1045
|
+
class: $(`${m(X)}__setting-container--title`)
|
|
1033
1046
|
}, "主题模式", 2),
|
|
1034
1047
|
V(d, {
|
|
1035
1048
|
modelValue: m(a).displayMode,
|
|
@@ -1053,7 +1066,7 @@ const Bn = /* @__PURE__ */ Y({
|
|
|
1053
1066
|
_: 1
|
|
1054
1067
|
}, 8, ["modelValue"]),
|
|
1055
1068
|
Z("div", {
|
|
1056
|
-
class:
|
|
1069
|
+
class: $(`${m(X)}__setting-container--title`)
|
|
1057
1070
|
}, "其他设置", 2)
|
|
1058
1071
|
], 2)
|
|
1059
1072
|
]),
|
|
@@ -1062,26 +1075,26 @@ const Bn = /* @__PURE__ */ Y({
|
|
|
1062
1075
|
};
|
|
1063
1076
|
}
|
|
1064
1077
|
});
|
|
1065
|
-
const
|
|
1078
|
+
const Fn = /* @__PURE__ */ ee({
|
|
1066
1079
|
__name: "GLayoutMain",
|
|
1067
1080
|
props: {
|
|
1068
1081
|
title: null
|
|
1069
1082
|
},
|
|
1070
1083
|
setup(e) {
|
|
1071
1084
|
return (t, o) => {
|
|
1072
|
-
const n =
|
|
1085
|
+
const n = D("t-card"), a = D("t-content"), l = D("t-layout");
|
|
1073
1086
|
return v(), q("div", {
|
|
1074
|
-
class:
|
|
1087
|
+
class: $(`${m(X)}__layout-main`)
|
|
1075
1088
|
}, [
|
|
1076
1089
|
V(l, null, {
|
|
1077
1090
|
default: w(() => [
|
|
1078
|
-
V(
|
|
1091
|
+
V(xn),
|
|
1079
1092
|
V(a, null, {
|
|
1080
1093
|
default: w(() => [
|
|
1081
|
-
V(
|
|
1094
|
+
V(Nn, null, {
|
|
1082
1095
|
default: w(() => [
|
|
1083
1096
|
V(n, {
|
|
1084
|
-
class:
|
|
1097
|
+
class: $(`${m(X)}__card`),
|
|
1085
1098
|
bordered: !1,
|
|
1086
1099
|
title: e.title
|
|
1087
1100
|
}, {
|
|
@@ -1099,13 +1112,13 @@ const Ln = /* @__PURE__ */ Y({
|
|
|
1099
1112
|
]),
|
|
1100
1113
|
_: 3
|
|
1101
1114
|
}),
|
|
1102
|
-
V(
|
|
1103
|
-
V(
|
|
1115
|
+
V(Pn),
|
|
1116
|
+
V(Ln)
|
|
1104
1117
|
], 2);
|
|
1105
1118
|
};
|
|
1106
1119
|
}
|
|
1107
1120
|
});
|
|
1108
|
-
const Ao = /* @__PURE__ */
|
|
1121
|
+
const Ao = /* @__PURE__ */ ee({
|
|
1109
1122
|
__name: "index",
|
|
1110
1123
|
props: {
|
|
1111
1124
|
title: null
|
|
@@ -1114,7 +1127,7 @@ const Ao = /* @__PURE__ */ Y({
|
|
|
1114
1127
|
const t = Le();
|
|
1115
1128
|
return et(() => {
|
|
1116
1129
|
t.loadLocalThemeConfig();
|
|
1117
|
-
}), (o, n) => (v(), S(
|
|
1130
|
+
}), (o, n) => (v(), S(Fn, { title: e.title }, {
|
|
1118
1131
|
default: w(() => [
|
|
1119
1132
|
Be(o.$slots, "default")
|
|
1120
1133
|
]),
|
|
@@ -1128,17 +1141,17 @@ function Qe(e, t, o) {
|
|
|
1128
1141
|
a.component(t || l || n.name, e), o && a.directive(o.name, o.comp);
|
|
1129
1142
|
}, n;
|
|
1130
1143
|
}
|
|
1131
|
-
const Dn = /* @__PURE__ */
|
|
1144
|
+
const Dn = /* @__PURE__ */ ee({
|
|
1132
1145
|
__name: "index",
|
|
1133
1146
|
props: {
|
|
1134
1147
|
commonDialogProps: null
|
|
1135
1148
|
},
|
|
1136
1149
|
setup(e) {
|
|
1137
1150
|
return (t, o) => {
|
|
1138
|
-
const n =
|
|
1139
|
-
return v(), S(n,
|
|
1151
|
+
const n = D("t-dialog");
|
|
1152
|
+
return v(), S(n, $t({
|
|
1140
1153
|
class: `${m(X)}__common-dialog`
|
|
1141
|
-
}, e.commonDialogProps),
|
|
1154
|
+
}, e.commonDialogProps), _t({ _: 2 }, [
|
|
1142
1155
|
ye(t.$slots, (a, l) => ({
|
|
1143
1156
|
name: l,
|
|
1144
1157
|
fn: w((r) => [
|
|
@@ -1149,29 +1162,29 @@ const Dn = /* @__PURE__ */ Y({
|
|
|
1149
1162
|
};
|
|
1150
1163
|
}
|
|
1151
1164
|
});
|
|
1152
|
-
const Eo = Qe(Dn), Bo = /* @__PURE__ */
|
|
1165
|
+
const Eo = Qe(Dn), Bo = /* @__PURE__ */ ee({
|
|
1153
1166
|
__name: "index",
|
|
1154
1167
|
props: {
|
|
1155
1168
|
commonFormProps: null
|
|
1156
1169
|
},
|
|
1157
1170
|
setup(e, { expose: t }) {
|
|
1158
|
-
|
|
1159
|
-
const o =
|
|
1171
|
+
z();
|
|
1172
|
+
const o = z();
|
|
1160
1173
|
return t({
|
|
1161
1174
|
tFormRef: o
|
|
1162
1175
|
}), (n, a) => {
|
|
1163
|
-
const l =
|
|
1176
|
+
const l = D("t-form");
|
|
1164
1177
|
return v(), q("div", {
|
|
1165
|
-
class:
|
|
1178
|
+
class: $(`${m(X)}__common-form`)
|
|
1166
1179
|
}, [
|
|
1167
|
-
V(l,
|
|
1180
|
+
V(l, $t({
|
|
1168
1181
|
ref_key: "tFormRef",
|
|
1169
1182
|
ref: o,
|
|
1170
1183
|
class: `${m(X)}__common-form-main`
|
|
1171
1184
|
}, e.commonFormProps), {
|
|
1172
1185
|
default: w(() => [
|
|
1173
1186
|
Z("div", {
|
|
1174
|
-
class:
|
|
1187
|
+
class: $(`${m(X)}__common-form-main--body`),
|
|
1175
1188
|
ref: "commonFormBodyRef"
|
|
1176
1189
|
}, [
|
|
1177
1190
|
Be(n.$slots, "body")
|
|
@@ -1180,7 +1193,7 @@ const Eo = Qe(Dn), Bo = /* @__PURE__ */ Y({
|
|
|
1180
1193
|
_: 3
|
|
1181
1194
|
}, 16, ["class"]),
|
|
1182
1195
|
Z("div", {
|
|
1183
|
-
class:
|
|
1196
|
+
class: $(`${m(X)}__common-form-footer`)
|
|
1184
1197
|
}, [
|
|
1185
1198
|
Be(n.$slots, "footer")
|
|
1186
1199
|
], 2)
|
|
@@ -1188,18 +1201,18 @@ const Eo = Qe(Dn), Bo = /* @__PURE__ */ Y({
|
|
|
1188
1201
|
};
|
|
1189
1202
|
}
|
|
1190
1203
|
});
|
|
1191
|
-
const
|
|
1204
|
+
const On = Qe(Bo), Un = /* @__PURE__ */ ee({
|
|
1192
1205
|
__name: "index",
|
|
1193
1206
|
setup(e) {
|
|
1194
1207
|
return (t, o) => {
|
|
1195
|
-
const n =
|
|
1208
|
+
const n = D("t-row");
|
|
1196
1209
|
return v(), q("div", {
|
|
1197
|
-
class:
|
|
1210
|
+
class: $(`${m(X)}__common-header`)
|
|
1198
1211
|
}, [
|
|
1199
1212
|
V(n, { justify: "space-between" }, {
|
|
1200
1213
|
default: w(() => [
|
|
1201
1214
|
Z("div", {
|
|
1202
|
-
class:
|
|
1215
|
+
class: $(`${m(X)}__common-header--left`)
|
|
1203
1216
|
}, [
|
|
1204
1217
|
V(n, null, {
|
|
1205
1218
|
default: w(() => [
|
|
@@ -1209,7 +1222,7 @@ const Fn = Qe(Bo), On = /* @__PURE__ */ Y({
|
|
|
1209
1222
|
})
|
|
1210
1223
|
], 2),
|
|
1211
1224
|
Z("div", {
|
|
1212
|
-
class:
|
|
1225
|
+
class: $(`${m(X)}__common-header--right`)
|
|
1213
1226
|
}, [
|
|
1214
1227
|
Be(t.$slots, "right-operations")
|
|
1215
1228
|
], 2)
|
|
@@ -1220,21 +1233,21 @@ const Fn = Qe(Bo), On = /* @__PURE__ */ Y({
|
|
|
1220
1233
|
};
|
|
1221
1234
|
}
|
|
1222
1235
|
});
|
|
1223
|
-
const Lo = Qe(
|
|
1236
|
+
const Lo = Qe(Un), Rn = /* @__PURE__ */ ee({
|
|
1224
1237
|
__name: "index",
|
|
1225
1238
|
props: {
|
|
1226
1239
|
commonTableProps: null
|
|
1227
1240
|
},
|
|
1228
1241
|
setup(e, { expose: t }) {
|
|
1229
|
-
const o =
|
|
1242
|
+
const o = z();
|
|
1230
1243
|
return t({
|
|
1231
1244
|
tTableRef: o
|
|
1232
1245
|
}), (n, a) => {
|
|
1233
|
-
const l =
|
|
1246
|
+
const l = D("t-enhanced-table");
|
|
1234
1247
|
return v(), q("div", {
|
|
1235
|
-
class:
|
|
1248
|
+
class: $(`${m(X)}__common-table`)
|
|
1236
1249
|
}, [
|
|
1237
|
-
V(l,
|
|
1250
|
+
V(l, $t({
|
|
1238
1251
|
ref_key: "tTableRef",
|
|
1239
1252
|
ref: o
|
|
1240
1253
|
}, e.commonTableProps, {
|
|
@@ -1242,7 +1255,7 @@ const Lo = Qe(On), Un = /* @__PURE__ */ Y({
|
|
|
1242
1255
|
bordered: !0,
|
|
1243
1256
|
tableLayout: "auto",
|
|
1244
1257
|
maxHeight: "calc(100vh - 281px)"
|
|
1245
|
-
}),
|
|
1258
|
+
}), _t({ _: 2 }, [
|
|
1246
1259
|
ye(n.$slots, (r, s) => ({
|
|
1247
1260
|
name: s,
|
|
1248
1261
|
fn: w((i) => [
|
|
@@ -1254,35 +1267,142 @@ const Lo = Qe(On), Un = /* @__PURE__ */ Y({
|
|
|
1254
1267
|
};
|
|
1255
1268
|
}
|
|
1256
1269
|
});
|
|
1257
|
-
const
|
|
1270
|
+
const Fo = Qe(Rn), Kn = {
|
|
1271
|
+
// 设置超时时间(10s)
|
|
1272
|
+
timeout: 1e4,
|
|
1273
|
+
// 跨域时候允许携带凭证
|
|
1274
|
+
withCredentials: !0
|
|
1275
|
+
};
|
|
1276
|
+
function Gn(e) {
|
|
1277
|
+
return pn(
|
|
1278
|
+
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
|
1279
|
+
32
|
|
1280
|
+
)(e);
|
|
1281
|
+
}
|
|
1282
|
+
function jn() {
|
|
1283
|
+
const e = sessionStorage.getItem(so);
|
|
1284
|
+
if ((e ?? "") != "")
|
|
1285
|
+
return e;
|
|
1286
|
+
{
|
|
1287
|
+
const t = Gn(32);
|
|
1288
|
+
return sessionStorage.setItem(so, t), t;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
bt.configure({
|
|
1292
|
+
easing: "ease",
|
|
1293
|
+
// 动画方式
|
|
1294
|
+
speed: 600,
|
|
1295
|
+
// 递增进度条的速度
|
|
1296
|
+
showSpinner: !0,
|
|
1297
|
+
// 是否显示加载spinner
|
|
1298
|
+
trickle: !1,
|
|
1299
|
+
trickleSpeed: 300,
|
|
1300
|
+
// 自动递增间隔
|
|
1301
|
+
minimum: 0.1
|
|
1302
|
+
// 初始化时的最小百分比
|
|
1303
|
+
});
|
|
1304
|
+
class Wn {
|
|
1305
|
+
constructor(t) {
|
|
1306
|
+
mt(this, "sessionId");
|
|
1307
|
+
mt(this, "service");
|
|
1308
|
+
this.sessionId = jn, this.service = hn.create(t), this.service.interceptors.request.use(
|
|
1309
|
+
(o) => {
|
|
1310
|
+
var l, r, s;
|
|
1311
|
+
const n = ((l = JSON.parse(localStorage.getItem(st))) == null ? void 0 : l.userToken) || {
|
|
1312
|
+
token: "",
|
|
1313
|
+
tokenExpiredTime: ""
|
|
1314
|
+
}, a = ((s = (r = JSON.parse(localStorage.getItem(st))) == null ? void 0 : r.userInfo) == null ? void 0 : s.language) || "zh-CN";
|
|
1315
|
+
if (n) {
|
|
1316
|
+
const { token: i, tokenExpiredTime: u } = n;
|
|
1317
|
+
o.headers = {
|
|
1318
|
+
...o == null ? void 0 : o.headers,
|
|
1319
|
+
token: i,
|
|
1320
|
+
lang: a
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
return bt.start(), {
|
|
1324
|
+
...o
|
|
1325
|
+
};
|
|
1326
|
+
},
|
|
1327
|
+
(o) => Promise.reject(o)
|
|
1328
|
+
), this.service.interceptors.response.use(
|
|
1329
|
+
(o) => {
|
|
1330
|
+
const { data: n } = o;
|
|
1331
|
+
return bt.done(), n;
|
|
1332
|
+
},
|
|
1333
|
+
async (o) => (bt.done(), Promise.reject(o))
|
|
1334
|
+
);
|
|
1335
|
+
}
|
|
1336
|
+
// * 常用请求方法封装
|
|
1337
|
+
get(t, o, n = {}) {
|
|
1338
|
+
return this.service.get(`${t}?sessionId=${this.sessionId()}`, { params: o, ...n });
|
|
1339
|
+
}
|
|
1340
|
+
post(t, o, n = {}) {
|
|
1341
|
+
return this.service.post(`${t}?sessionId=${this.sessionId()}`, o, n);
|
|
1342
|
+
}
|
|
1343
|
+
put(t, o, n = {}) {
|
|
1344
|
+
return this.service.put(`${t}?sessionId=${this.sessionId()}`, o, n);
|
|
1345
|
+
}
|
|
1346
|
+
delete(t, o, n = {}) {
|
|
1347
|
+
return this.service.delete(`${t}?sessionId=${this.sessionId()}`, { params: o, ...n });
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
const ot = new Wn(Kn), ct = {
|
|
1351
|
+
// 视图 - 获取所有视图 GET
|
|
1352
|
+
getAllView: "/restapi/s09/gview/boards/all",
|
|
1353
|
+
// 视图 - 获取一个视图 GET
|
|
1354
|
+
getOneView: "/restapi/s09/gview/views",
|
|
1355
|
+
// 数据 - 获取数据 POST
|
|
1356
|
+
getBoardData: "/restapi/s09/gview/data",
|
|
1357
|
+
// 触发 - 上传文件 POST
|
|
1358
|
+
uploadFile: "/restapi/s09/gview/active/upload_file",
|
|
1359
|
+
// 触发 - 触发文件上传事件 POST
|
|
1360
|
+
activeFile: "/restapi/s09/gview/active/file",
|
|
1361
|
+
// 触发 - 触发confirm事件 POST
|
|
1362
|
+
confirm: "/restapi/s09/gview/active/confirm",
|
|
1363
|
+
// 触发 - 触发批量操作事件 POST
|
|
1364
|
+
batch: "/restapi/s09/gview/active/batch"
|
|
1365
|
+
}, Do = (e) => ot.get(ct.getOneView, e), Mt = (e) => ot.post(ct.getBoardData, e), Hn = (e) => ot.post(ct.confirm, e), qn = (e) => ot.post(ct.batch, e), zn = (e) => ot.post(ct.activeFile, e), $n = /* @__PURE__ */ ee({
|
|
1258
1366
|
__name: "GHeaderUpload",
|
|
1259
1367
|
props: {
|
|
1260
1368
|
formItem: null,
|
|
1261
1369
|
viewName: null
|
|
1262
1370
|
},
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1371
|
+
setup(e) {
|
|
1372
|
+
const t = e, o = Le(), n = F(() => o.uploadApi);
|
|
1373
|
+
function a(s) {
|
|
1374
|
+
var u;
|
|
1375
|
+
const { response: i } = s;
|
|
1376
|
+
(u = i.data) != null && u.length ? (Y.success("上传成功"), l(i.data[0])) : (console.log(i), Y.error(`上传失败:${i.message}`));
|
|
1268
1377
|
}
|
|
1269
|
-
function l(
|
|
1270
|
-
|
|
1378
|
+
function l(s) {
|
|
1379
|
+
let i = [];
|
|
1380
|
+
i.push(s), zn({
|
|
1381
|
+
boardName: t.viewName,
|
|
1382
|
+
buttonId: t.formItem.buttonId,
|
|
1383
|
+
props: {},
|
|
1384
|
+
fileUrls: i
|
|
1385
|
+
}).then((u) => {
|
|
1386
|
+
u.state == 200 ? Y.success("导入成功") : Y.error("导入失败");
|
|
1387
|
+
});
|
|
1271
1388
|
}
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1389
|
+
function r(s) {
|
|
1390
|
+
Y.error(`上传失败:${s}`);
|
|
1391
|
+
}
|
|
1392
|
+
return (s, i) => {
|
|
1393
|
+
const u = D("t-icon"), c = D("t-button"), d = D("t-upload");
|
|
1394
|
+
return v(), S(d, {
|
|
1275
1395
|
action: m(n),
|
|
1276
1396
|
onSuccess: a,
|
|
1277
|
-
onFail:
|
|
1397
|
+
onFail: r,
|
|
1278
1398
|
showUploadProgress: !1,
|
|
1279
1399
|
style: { padding: "0 8px 0 0" }
|
|
1280
1400
|
}, {
|
|
1281
1401
|
default: w(() => [
|
|
1282
|
-
V(
|
|
1402
|
+
V(c, null, {
|
|
1283
1403
|
default: w(() => [
|
|
1284
1404
|
Z("template", null, [
|
|
1285
|
-
V(
|
|
1405
|
+
V(u, { name: "upload" })
|
|
1286
1406
|
]),
|
|
1287
1407
|
J(" " + ge(e.formItem.name), 1)
|
|
1288
1408
|
]),
|
|
@@ -1311,7 +1431,7 @@ function Se(e) {
|
|
|
1311
1431
|
}
|
|
1312
1432
|
}
|
|
1313
1433
|
function Qt(e, t) {
|
|
1314
|
-
if (!
|
|
1434
|
+
if (!xe(t) && t.length) {
|
|
1315
1435
|
if (Object.keys(e).length)
|
|
1316
1436
|
return t.forEach((o) => {
|
|
1317
1437
|
o.keyName && Po(Q(e, o.keyName)) && (o.itemType === "check_box" || o.itemType === "switch") && qe(
|
|
@@ -1319,20 +1439,20 @@ function Qt(e, t) {
|
|
|
1319
1439
|
o.keyName,
|
|
1320
1440
|
Se(o.itemType)
|
|
1321
1441
|
);
|
|
1322
|
-
}),
|
|
1442
|
+
}), it(e, {});
|
|
1323
1443
|
{
|
|
1324
1444
|
let o = {};
|
|
1325
1445
|
return t.forEach((n) => {
|
|
1326
|
-
|
|
1446
|
+
xe(n.keyName) || qe(
|
|
1327
1447
|
o,
|
|
1328
1448
|
n.keyName,
|
|
1329
1449
|
Se(n.itemType)
|
|
1330
1450
|
);
|
|
1331
|
-
}),
|
|
1451
|
+
}), it(o, {});
|
|
1332
1452
|
}
|
|
1333
1453
|
}
|
|
1334
1454
|
}
|
|
1335
|
-
function
|
|
1455
|
+
function Oo(e) {
|
|
1336
1456
|
const { list: t, keyName: o, valueName: n, titleName: a, parentKey: l, parentKeyName: r } = e, s = (i, u) => {
|
|
1337
1457
|
const c = [];
|
|
1338
1458
|
return u.forEach((d) => {
|
|
@@ -1349,7 +1469,7 @@ function Fo(e) {
|
|
|
1349
1469
|
};
|
|
1350
1470
|
return s(l, t);
|
|
1351
1471
|
}
|
|
1352
|
-
const
|
|
1472
|
+
const Ct = /* @__PURE__ */ ee({
|
|
1353
1473
|
__name: "GFormInput",
|
|
1354
1474
|
props: {
|
|
1355
1475
|
inputType: null,
|
|
@@ -1361,10 +1481,10 @@ const kt = /* @__PURE__ */ Y({
|
|
|
1361
1481
|
},
|
|
1362
1482
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
1363
1483
|
setup(e, { emit: t }) {
|
|
1364
|
-
const o = e, n =
|
|
1484
|
+
const o = e, n = F(() => {
|
|
1365
1485
|
var i;
|
|
1366
1486
|
return (i = o.formItem) == null ? void 0 : i.itemType;
|
|
1367
|
-
}), a =
|
|
1487
|
+
}), a = F(() => o.inputType == "re_password" ? "password" : o.inputType), l = z(o.modelValue);
|
|
1368
1488
|
we(
|
|
1369
1489
|
() => o.modelValue,
|
|
1370
1490
|
() => {
|
|
@@ -1381,10 +1501,10 @@ const kt = /* @__PURE__ */ Y({
|
|
|
1381
1501
|
function s(i) {
|
|
1382
1502
|
o.originValue && o.originValue != i && t("blur:modelValue", i);
|
|
1383
1503
|
}
|
|
1384
|
-
return
|
|
1504
|
+
return It(() => {
|
|
1385
1505
|
r(Se(n.value));
|
|
1386
1506
|
}), (i, u) => {
|
|
1387
|
-
const c =
|
|
1507
|
+
const c = D("t-input");
|
|
1388
1508
|
return v(), S(c, {
|
|
1389
1509
|
modelValue: l.value,
|
|
1390
1510
|
"onUpdate:modelValue": u[0] || (u[0] = (d) => l.value = d),
|
|
@@ -1398,7 +1518,7 @@ const kt = /* @__PURE__ */ Y({
|
|
|
1398
1518
|
};
|
|
1399
1519
|
}
|
|
1400
1520
|
});
|
|
1401
|
-
function
|
|
1521
|
+
function Xn(e, t) {
|
|
1402
1522
|
return `
|
|
1403
1523
|
return function (context) {
|
|
1404
1524
|
"use strict";
|
|
@@ -1407,18 +1527,18 @@ function Kn(e, t) {
|
|
|
1407
1527
|
}
|
|
1408
1528
|
`;
|
|
1409
1529
|
}
|
|
1410
|
-
function
|
|
1411
|
-
let o =
|
|
1530
|
+
function Zn(e, t) {
|
|
1531
|
+
let o = Xn(e, t);
|
|
1412
1532
|
return Function(o)();
|
|
1413
1533
|
}
|
|
1414
1534
|
function Ht(e, t = {}) {
|
|
1415
|
-
return
|
|
1535
|
+
return Zn(e, t)(t);
|
|
1416
1536
|
}
|
|
1417
|
-
function
|
|
1537
|
+
function Qn(e) {
|
|
1418
1538
|
return e === void 0 || e === null || e === "" ? "" : e === 0 ? 0 : e === "0" ? "0" : e;
|
|
1419
1539
|
}
|
|
1420
|
-
window.v =
|
|
1421
|
-
function
|
|
1540
|
+
window.v = Qn;
|
|
1541
|
+
function Jn(e) {
|
|
1422
1542
|
let t = [];
|
|
1423
1543
|
return t.push({
|
|
1424
1544
|
colKey: "row-select",
|
|
@@ -1460,103 +1580,7 @@ function Wn(e) {
|
|
|
1460
1580
|
function fo(e, t) {
|
|
1461
1581
|
return e / t;
|
|
1462
1582
|
}
|
|
1463
|
-
|
|
1464
|
-
// 设置超时时间(10s)
|
|
1465
|
-
timeout: 1e4,
|
|
1466
|
-
// 跨域时候允许携带凭证
|
|
1467
|
-
withCredentials: !0
|
|
1468
|
-
};
|
|
1469
|
-
function qn(e) {
|
|
1470
|
-
return hn(
|
|
1471
|
-
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
|
1472
|
-
32
|
|
1473
|
-
)(e);
|
|
1474
|
-
}
|
|
1475
|
-
function $n() {
|
|
1476
|
-
const e = sessionStorage.getItem(so);
|
|
1477
|
-
if ((e ?? "") != "")
|
|
1478
|
-
return e;
|
|
1479
|
-
{
|
|
1480
|
-
const t = qn(32);
|
|
1481
|
-
return sessionStorage.setItem(so, t), t;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
vt.configure({
|
|
1485
|
-
easing: "ease",
|
|
1486
|
-
// 动画方式
|
|
1487
|
-
speed: 600,
|
|
1488
|
-
// 递增进度条的速度
|
|
1489
|
-
showSpinner: !0,
|
|
1490
|
-
// 是否显示加载spinner
|
|
1491
|
-
trickle: !1,
|
|
1492
|
-
trickleSpeed: 300,
|
|
1493
|
-
// 自动递增间隔
|
|
1494
|
-
minimum: 0.1
|
|
1495
|
-
// 初始化时的最小百分比
|
|
1496
|
-
});
|
|
1497
|
-
class zn {
|
|
1498
|
-
constructor(t) {
|
|
1499
|
-
dt(this, "sessionId");
|
|
1500
|
-
dt(this, "service");
|
|
1501
|
-
this.sessionId = $n, this.service = fn.create(t), this.service.interceptors.request.use(
|
|
1502
|
-
(o) => {
|
|
1503
|
-
var l, r, s;
|
|
1504
|
-
const n = ((l = JSON.parse(localStorage.getItem(it))) == null ? void 0 : l.userToken) || {
|
|
1505
|
-
token: "",
|
|
1506
|
-
tokenExpiredTime: ""
|
|
1507
|
-
}, a = ((s = (r = JSON.parse(localStorage.getItem(it))) == null ? void 0 : r.userInfo) == null ? void 0 : s.language) || "zh-CN";
|
|
1508
|
-
if (n) {
|
|
1509
|
-
const { token: i, tokenExpiredTime: u } = n;
|
|
1510
|
-
o.headers = {
|
|
1511
|
-
...o == null ? void 0 : o.headers,
|
|
1512
|
-
token: i,
|
|
1513
|
-
lang: a
|
|
1514
|
-
};
|
|
1515
|
-
}
|
|
1516
|
-
return vt.start(), {
|
|
1517
|
-
...o
|
|
1518
|
-
};
|
|
1519
|
-
},
|
|
1520
|
-
(o) => Promise.reject(o)
|
|
1521
|
-
), this.service.interceptors.response.use(
|
|
1522
|
-
(o) => {
|
|
1523
|
-
const { data: n } = o;
|
|
1524
|
-
return vt.done(), n;
|
|
1525
|
-
},
|
|
1526
|
-
async (o) => (vt.done(), Promise.reject(o))
|
|
1527
|
-
);
|
|
1528
|
-
}
|
|
1529
|
-
// * 常用请求方法封装
|
|
1530
|
-
get(t, o, n = {}) {
|
|
1531
|
-
return this.service.get(`${t}?sessionId=${this.sessionId()}`, { params: o, ...n });
|
|
1532
|
-
}
|
|
1533
|
-
post(t, o, n = {}) {
|
|
1534
|
-
return this.service.post(`${t}?sessionId=${this.sessionId()}`, o, n);
|
|
1535
|
-
}
|
|
1536
|
-
put(t, o, n = {}) {
|
|
1537
|
-
return this.service.put(`${t}?sessionId=${this.sessionId()}`, o, n);
|
|
1538
|
-
}
|
|
1539
|
-
delete(t, o, n = {}) {
|
|
1540
|
-
return this.service.delete(`${t}?sessionId=${this.sessionId()}`, { params: o, ...n });
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
const ut = new zn(Hn), Vt = {
|
|
1544
|
-
// 视图 - 获取所有视图 GET
|
|
1545
|
-
getAllView: "/restapi/s09/gview/boards/all",
|
|
1546
|
-
// 视图 - 获取一个视图 GET
|
|
1547
|
-
getOneView: "/restapi/s09/gview/views",
|
|
1548
|
-
// 数据 - 获取数据 POST
|
|
1549
|
-
getBoardData: "/restapi/s09/gview/data",
|
|
1550
|
-
// 触发 - 上传文件 POST
|
|
1551
|
-
uploadFile: "/restapi/s09/gview/active/upload_file",
|
|
1552
|
-
// 触发 - 触发文件上传事件 POST
|
|
1553
|
-
activeFile: "/restapi/s09/gview/active/file",
|
|
1554
|
-
// 触发 - 触发confirm事件 POST
|
|
1555
|
-
confirm: "/restapi/s09/gview/active/confirm",
|
|
1556
|
-
// 触发 - 触发批量操作事件 POST
|
|
1557
|
-
batch: "/restapi/s09/gview/active/batch"
|
|
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);
|
|
1559
|
-
async function Qn(e, t, o, n) {
|
|
1583
|
+
async function Yn(e, t, o, n) {
|
|
1560
1584
|
const a = await Mt({
|
|
1561
1585
|
viewName: t,
|
|
1562
1586
|
dataId: o,
|
|
@@ -1564,8 +1588,8 @@ async function Qn(e, t, o, n) {
|
|
|
1564
1588
|
});
|
|
1565
1589
|
if (a.state === 200) {
|
|
1566
1590
|
const l = a.data;
|
|
1567
|
-
if (!
|
|
1568
|
-
return
|
|
1591
|
+
if (!xe(l) && l.length)
|
|
1592
|
+
return Oo({
|
|
1569
1593
|
list: l,
|
|
1570
1594
|
parentKey: null,
|
|
1571
1595
|
keyName: e == null ? void 0 : e.keyName,
|
|
@@ -1574,9 +1598,9 @@ async function Qn(e, t, o, n) {
|
|
|
1574
1598
|
parentKeyName: e == null ? void 0 : e.parentKeyName
|
|
1575
1599
|
});
|
|
1576
1600
|
} else
|
|
1577
|
-
|
|
1601
|
+
Y.error(`获取数据失败:${a.message}`);
|
|
1578
1602
|
}
|
|
1579
|
-
async function
|
|
1603
|
+
async function ea(e, t, o, n) {
|
|
1580
1604
|
const a = await Mt({
|
|
1581
1605
|
viewName: t,
|
|
1582
1606
|
dataId: o,
|
|
@@ -1584,8 +1608,8 @@ async function Jn(e, t, o, n) {
|
|
|
1584
1608
|
});
|
|
1585
1609
|
if (a.state === 200) {
|
|
1586
1610
|
const l = a.data;
|
|
1587
|
-
if (!
|
|
1588
|
-
return
|
|
1611
|
+
if (!xe(l) && l.length)
|
|
1612
|
+
return Oo({
|
|
1589
1613
|
list: l,
|
|
1590
1614
|
parentKey: null,
|
|
1591
1615
|
keyName: e == null ? void 0 : e.valueName,
|
|
@@ -1594,9 +1618,9 @@ async function Jn(e, t, o, n) {
|
|
|
1594
1618
|
parentKeyName: e == null ? void 0 : e.parentKeyName
|
|
1595
1619
|
});
|
|
1596
1620
|
} else
|
|
1597
|
-
|
|
1621
|
+
Y.error(`获取数据失败:${a.message}`);
|
|
1598
1622
|
}
|
|
1599
|
-
async function
|
|
1623
|
+
async function ta(e, t, o, n) {
|
|
1600
1624
|
const a = await Mt({
|
|
1601
1625
|
viewName: t,
|
|
1602
1626
|
dataId: o,
|
|
@@ -1604,10 +1628,10 @@ async function Yn(e, t, o, n) {
|
|
|
1604
1628
|
});
|
|
1605
1629
|
if (a.state === 200) {
|
|
1606
1630
|
let l = a.data;
|
|
1607
|
-
if (!
|
|
1631
|
+
if (!xe(l) && l.length) {
|
|
1608
1632
|
let r = [];
|
|
1609
1633
|
return l.forEach((s) => {
|
|
1610
|
-
|
|
1634
|
+
xe(s) || r.push({
|
|
1611
1635
|
key: s[e == null ? void 0 : e.keyName],
|
|
1612
1636
|
label: s[e == null ? void 0 : e.titleName],
|
|
1613
1637
|
value: s[e == null ? void 0 : e.valueName]
|
|
@@ -1615,21 +1639,25 @@ async function Yn(e, t, o, n) {
|
|
|
1615
1639
|
}), r;
|
|
1616
1640
|
}
|
|
1617
1641
|
} else
|
|
1618
|
-
|
|
1642
|
+
Y.error(`获取数据失败:${a.message}`);
|
|
1619
1643
|
}
|
|
1620
1644
|
function Pt(e) {
|
|
1621
|
-
const t =
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1645
|
+
const t = z([]), o = tt(), n = F(() => {
|
|
1646
|
+
if (xe(o.query))
|
|
1647
|
+
return {};
|
|
1648
|
+
{
|
|
1649
|
+
const { viewName: l, ...r } = o.query;
|
|
1650
|
+
return r;
|
|
1651
|
+
}
|
|
1652
|
+
}), a = F(() => {
|
|
1625
1653
|
let l = {};
|
|
1626
1654
|
return Object.assign(l, n.value), l;
|
|
1627
1655
|
});
|
|
1628
|
-
return
|
|
1656
|
+
return xt(async () => {
|
|
1629
1657
|
switch (e.itemType) {
|
|
1630
1658
|
case "tree_check_box": {
|
|
1631
1659
|
const { treeData: l, viewName: r, dataId: s } = e;
|
|
1632
|
-
t.value = await
|
|
1660
|
+
t.value = await ea(
|
|
1633
1661
|
l,
|
|
1634
1662
|
r,
|
|
1635
1663
|
s,
|
|
@@ -1640,7 +1668,7 @@ function Pt(e) {
|
|
|
1640
1668
|
case "multi_tree_selector":
|
|
1641
1669
|
case "tree_selector": {
|
|
1642
1670
|
const { treeData: l, viewName: r, dataId: s } = e;
|
|
1643
|
-
t.value = await
|
|
1671
|
+
t.value = await Yn(
|
|
1644
1672
|
l,
|
|
1645
1673
|
r,
|
|
1646
1674
|
s,
|
|
@@ -1652,7 +1680,7 @@ function Pt(e) {
|
|
|
1652
1680
|
case "multi_selector":
|
|
1653
1681
|
case "radio": {
|
|
1654
1682
|
const { listData: l, viewName: r, dataId: s } = e;
|
|
1655
|
-
t.value = await
|
|
1683
|
+
t.value = await ta(
|
|
1656
1684
|
l,
|
|
1657
1685
|
r,
|
|
1658
1686
|
s,
|
|
@@ -1665,7 +1693,7 @@ function Pt(e) {
|
|
|
1665
1693
|
options: t
|
|
1666
1694
|
};
|
|
1667
1695
|
}
|
|
1668
|
-
const Jt = /* @__PURE__ */
|
|
1696
|
+
const Jt = /* @__PURE__ */ ee({
|
|
1669
1697
|
__name: "GFormSelect",
|
|
1670
1698
|
props: {
|
|
1671
1699
|
modelValue: null,
|
|
@@ -1677,13 +1705,13 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1677
1705
|
},
|
|
1678
1706
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
1679
1707
|
setup(e, { emit: t }) {
|
|
1680
|
-
const o = e, n =
|
|
1708
|
+
const o = e, n = F(() => {
|
|
1681
1709
|
var c;
|
|
1682
1710
|
return (c = o.formItem) == null ? void 0 : c.itemType;
|
|
1683
|
-
}), a =
|
|
1711
|
+
}), a = F(() => {
|
|
1684
1712
|
var c;
|
|
1685
1713
|
return (c = o.formItem) == null ? void 0 : c.listData;
|
|
1686
|
-
}), l =
|
|
1714
|
+
}), l = F(() => {
|
|
1687
1715
|
var c;
|
|
1688
1716
|
return (c = o.formItem) == null ? void 0 : c.listData.dataId;
|
|
1689
1717
|
}), { options: r } = Pt({
|
|
@@ -1691,7 +1719,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1691
1719
|
viewName: o.viewName,
|
|
1692
1720
|
listData: a.value,
|
|
1693
1721
|
dataId: l.value
|
|
1694
|
-
}), s =
|
|
1722
|
+
}), s = z(o.modelValue);
|
|
1695
1723
|
we(
|
|
1696
1724
|
() => o.modelValue,
|
|
1697
1725
|
() => {
|
|
@@ -1713,11 +1741,11 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1713
1741
|
() => {
|
|
1714
1742
|
o.disabled || i(Se(n.value));
|
|
1715
1743
|
}
|
|
1716
|
-
),
|
|
1744
|
+
), It(() => {
|
|
1717
1745
|
i(Se(n.value));
|
|
1718
1746
|
}), (c, d) => {
|
|
1719
1747
|
var f;
|
|
1720
|
-
const b =
|
|
1748
|
+
const b = D("t-select");
|
|
1721
1749
|
return v(), S(b, {
|
|
1722
1750
|
modelValue: s.value,
|
|
1723
1751
|
"onUpdate:modelValue": d[0] || (d[0] = (M) => s.value = M),
|
|
@@ -1732,7 +1760,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1732
1760
|
}, null, 8, ["modelValue", "placeholder", "options", "multiple", "disabled"]);
|
|
1733
1761
|
};
|
|
1734
1762
|
}
|
|
1735
|
-
}), Yt = /* @__PURE__ */
|
|
1763
|
+
}), Yt = /* @__PURE__ */ ee({
|
|
1736
1764
|
__name: "GFormSelectDateTime",
|
|
1737
1765
|
props: {
|
|
1738
1766
|
modelValue: null,
|
|
@@ -1743,10 +1771,10 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1743
1771
|
},
|
|
1744
1772
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
1745
1773
|
setup(e, { emit: t }) {
|
|
1746
|
-
const o = e, n =
|
|
1774
|
+
const o = e, n = F(() => {
|
|
1747
1775
|
var s;
|
|
1748
1776
|
return (s = o.formItem) == null ? void 0 : s.itemType;
|
|
1749
|
-
}), a =
|
|
1777
|
+
}), a = F({
|
|
1750
1778
|
get() {
|
|
1751
1779
|
var s;
|
|
1752
1780
|
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;
|
|
@@ -1769,35 +1797,35 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1769
1797
|
}
|
|
1770
1798
|
), (s, i) => {
|
|
1771
1799
|
var d, b, f, M, E, T, h;
|
|
1772
|
-
const u =
|
|
1800
|
+
const u = D("t-date-picker"), c = D("t-time-picker");
|
|
1773
1801
|
return v(), q(ve, null, [
|
|
1774
1802
|
((d = e.formItem) == null ? void 0 : d.itemType) === "date_selector" || ((b = e.formItem) == null ? void 0 : b.itemType) === "date_time_selector" ? (v(), S(u, {
|
|
1775
1803
|
key: 0,
|
|
1776
1804
|
"enable-time-picker": ((f = e.formItem) == null ? void 0 : f.itemType) === "date_time_selector",
|
|
1777
1805
|
placeholder: (M = e.formItem) == null ? void 0 : M.placeholder,
|
|
1778
1806
|
modelValue: m(a),
|
|
1779
|
-
"onUpdate:modelValue": i[0] || (i[0] = (y) =>
|
|
1807
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => yt(a) ? a.value = y : null),
|
|
1780
1808
|
format: e.formItem.format || "YYYY-MM-DD HH:mm:ss",
|
|
1781
1809
|
valueType: "time-stamp",
|
|
1782
1810
|
disabled: e.disabled,
|
|
1783
1811
|
clearable: !0,
|
|
1784
1812
|
onChange: l,
|
|
1785
1813
|
onBlur: r
|
|
1786
|
-
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) :
|
|
1814
|
+
}, null, 8, ["enable-time-picker", "placeholder", "modelValue", "format", "disabled"])) : G("", !0),
|
|
1787
1815
|
((E = e.formItem) == null ? void 0 : E.itemType) === "time_selector" ? (v(), S(c, {
|
|
1788
1816
|
key: 1,
|
|
1789
1817
|
placeholder: (T = e.formItem) == null ? void 0 : T.placeholder,
|
|
1790
1818
|
modelValue: m(a),
|
|
1791
|
-
"onUpdate:modelValue": i[1] || (i[1] = (y) =>
|
|
1819
|
+
"onUpdate:modelValue": i[1] || (i[1] = (y) => yt(a) ? a.value = y : null),
|
|
1792
1820
|
onChange: l,
|
|
1793
1821
|
onBlur: r,
|
|
1794
1822
|
format: ((h = e.formItem) == null ? void 0 : h.format) || "HH:mm:ss",
|
|
1795
1823
|
clearable: ""
|
|
1796
|
-
}, null, 8, ["placeholder", "modelValue", "format"])) :
|
|
1824
|
+
}, null, 8, ["placeholder", "modelValue", "format"])) : G("", !0)
|
|
1797
1825
|
], 64);
|
|
1798
1826
|
};
|
|
1799
1827
|
}
|
|
1800
|
-
}),
|
|
1828
|
+
}), oa = { key: 0 }, na = { key: 1 }, aa = { key: 2 }, la = /* @__PURE__ */ ee({
|
|
1801
1829
|
__name: "index",
|
|
1802
1830
|
props: {
|
|
1803
1831
|
viewName: null,
|
|
@@ -1805,12 +1833,12 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1805
1833
|
},
|
|
1806
1834
|
emits: ["header-button-action", "header-filter-change"],
|
|
1807
1835
|
setup(e, { emit: t }) {
|
|
1808
|
-
const o = e, n =
|
|
1836
|
+
const o = e, n = F(
|
|
1809
1837
|
() => {
|
|
1810
1838
|
var c, d;
|
|
1811
1839
|
return (d = (c = o.headerInfo) == null ? void 0 : c.buttons) == null ? void 0 : d.filter((b) => b.action !== "UPLOAD_FILE");
|
|
1812
1840
|
}
|
|
1813
|
-
), a =
|
|
1841
|
+
), a = F(
|
|
1814
1842
|
() => {
|
|
1815
1843
|
var c, d;
|
|
1816
1844
|
return (d = (c = o.headerInfo) == null ? void 0 : c.buttons) == null ? void 0 : d.filter((b) => b.action === "UPLOAD_FILE");
|
|
@@ -1819,10 +1847,10 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1819
1847
|
function l(c) {
|
|
1820
1848
|
t("header-button-action", c);
|
|
1821
1849
|
}
|
|
1822
|
-
const r =
|
|
1850
|
+
const r = F(() => {
|
|
1823
1851
|
var c;
|
|
1824
1852
|
return (c = o.headerInfo.searchBar) == null ? void 0 : c.filters;
|
|
1825
|
-
}), s =
|
|
1853
|
+
}), s = F(() => Qt({}, r.value));
|
|
1826
1854
|
function i(c, d) {
|
|
1827
1855
|
qe(s.value, c, d), u.value && clearTimeout(u.value), u.value = setTimeout(() => {
|
|
1828
1856
|
Object.keys(s.value).forEach((b) => {
|
|
@@ -1830,12 +1858,12 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1830
1858
|
}), t("header-filter-change", s.value);
|
|
1831
1859
|
}, 500);
|
|
1832
1860
|
}
|
|
1833
|
-
let u =
|
|
1861
|
+
let u = z(0);
|
|
1834
1862
|
return (c, d) => {
|
|
1835
|
-
const b =
|
|
1836
|
-
return v(), S(m(Lo), null,
|
|
1863
|
+
const b = D("t-button");
|
|
1864
|
+
return v(), S(m(Lo), null, _t({
|
|
1837
1865
|
"left-operations": w(() => [
|
|
1838
|
-
m(
|
|
1866
|
+
m(xe)(m(a)) ? G("", !0) : (v(!0), q(ve, { key: 0 }, ye(m(a), (f) => (v(), S($n, {
|
|
1839
1867
|
key: f.buttonId,
|
|
1840
1868
|
formItem: f,
|
|
1841
1869
|
viewName: e.viewName
|
|
@@ -1849,7 +1877,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1849
1877
|
J(ge(f.name), 1)
|
|
1850
1878
|
]),
|
|
1851
1879
|
_: 2
|
|
1852
|
-
}, 1032, ["onClick"]))), 128)) :
|
|
1880
|
+
}, 1032, ["onClick"]))), 128)) : G("", !0)
|
|
1853
1881
|
]),
|
|
1854
1882
|
_: 2
|
|
1855
1883
|
}, [
|
|
@@ -1857,30 +1885,30 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1857
1885
|
name: "right-operations",
|
|
1858
1886
|
fn: w(() => [
|
|
1859
1887
|
(v(!0), q(ve, null, ye(m(r), (f, M) => (v(), q("div", { key: M }, [
|
|
1860
|
-
f.itemType === "text_input" ? (v(), q("div",
|
|
1861
|
-
V(
|
|
1888
|
+
f.itemType === "text_input" ? (v(), q("div", oa, [
|
|
1889
|
+
V(Ct, {
|
|
1862
1890
|
formItem: f,
|
|
1863
1891
|
modelValue: m(Q)(m(s), f.keyName),
|
|
1864
1892
|
placeholder: f.placeholder,
|
|
1865
1893
|
"onUpdate:modelValue": (E) => f.keyName && i(f.keyName, E)
|
|
1866
1894
|
}, null, 8, ["formItem", "modelValue", "placeholder", "onUpdate:modelValue"])
|
|
1867
|
-
])) :
|
|
1868
|
-
f.itemType === "selector" ? (v(), q("div",
|
|
1895
|
+
])) : G("", !0),
|
|
1896
|
+
f.itemType === "selector" ? (v(), q("div", na, [
|
|
1869
1897
|
V(Jt, {
|
|
1870
1898
|
modelValue: m(Q)(m(s), f.keyName),
|
|
1871
1899
|
formItem: f,
|
|
1872
1900
|
viewName: e.viewName,
|
|
1873
1901
|
"onUpdate:modelValue": (E) => f.keyName && i(f.keyName, E)
|
|
1874
1902
|
}, null, 8, ["modelValue", "formItem", "viewName", "onUpdate:modelValue"])
|
|
1875
|
-
])) :
|
|
1876
|
-
f.itemType === "date_selector" || f.itemType === "time_selector" || f.itemType === "date_time_selector" ? (v(), q("div",
|
|
1903
|
+
])) : G("", !0),
|
|
1904
|
+
f.itemType === "date_selector" || f.itemType === "time_selector" || f.itemType === "date_time_selector" ? (v(), q("div", aa, [
|
|
1877
1905
|
V(Yt, {
|
|
1878
1906
|
modelValue: m(Q)(m(s), f.keyName),
|
|
1879
1907
|
formItem: f,
|
|
1880
1908
|
viewName: e.viewName,
|
|
1881
1909
|
"onUpdate:modelValue": (E) => f.keyName && i(f.keyName, E)
|
|
1882
1910
|
}, null, 8, ["modelValue", "formItem", "viewName", "onUpdate:modelValue"])
|
|
1883
|
-
])) :
|
|
1911
|
+
])) : G("", !0)
|
|
1884
1912
|
]))), 128))
|
|
1885
1913
|
]),
|
|
1886
1914
|
key: "0"
|
|
@@ -1888,14 +1916,14 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1888
1916
|
]), 1024);
|
|
1889
1917
|
};
|
|
1890
1918
|
}
|
|
1891
|
-
}), Uo = /* @__PURE__ */
|
|
1919
|
+
}), Uo = /* @__PURE__ */ ee({
|
|
1892
1920
|
__name: "GFormLabel",
|
|
1893
1921
|
props: {
|
|
1894
1922
|
modelValue: null
|
|
1895
1923
|
},
|
|
1896
1924
|
setup(e) {
|
|
1897
1925
|
return (t, o) => {
|
|
1898
|
-
const n =
|
|
1926
|
+
const n = D("t-tag");
|
|
1899
1927
|
return v(), S(n, null, {
|
|
1900
1928
|
default: w(() => [
|
|
1901
1929
|
J(ge(e.modelValue), 1)
|
|
@@ -1904,7 +1932,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1904
1932
|
});
|
|
1905
1933
|
};
|
|
1906
1934
|
}
|
|
1907
|
-
}), Ro = /* @__PURE__ */
|
|
1935
|
+
}), Ro = /* @__PURE__ */ ee({
|
|
1908
1936
|
__name: "GFormCheckbox",
|
|
1909
1937
|
props: {
|
|
1910
1938
|
modelValue: null,
|
|
@@ -1913,7 +1941,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1913
1941
|
},
|
|
1914
1942
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
1915
1943
|
setup(e, { emit: t }) {
|
|
1916
|
-
const o = e, n =
|
|
1944
|
+
const o = e, n = z(o.modelValue);
|
|
1917
1945
|
we(
|
|
1918
1946
|
() => o.modelValue,
|
|
1919
1947
|
() => {
|
|
@@ -1928,7 +1956,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1928
1956
|
t("update:modelValue", l), o.originValue != l && t("blur:modelValue", l);
|
|
1929
1957
|
}
|
|
1930
1958
|
return (l, r) => {
|
|
1931
|
-
const s =
|
|
1959
|
+
const s = D("t-checkbox");
|
|
1932
1960
|
return v(), S(s, {
|
|
1933
1961
|
modelValue: n.value,
|
|
1934
1962
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => n.value = i),
|
|
@@ -1936,7 +1964,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1936
1964
|
}, null, 8, ["modelValue"]);
|
|
1937
1965
|
};
|
|
1938
1966
|
}
|
|
1939
|
-
}), Ko = /* @__PURE__ */
|
|
1967
|
+
}), Ko = /* @__PURE__ */ ee({
|
|
1940
1968
|
__name: "GFormSwitch",
|
|
1941
1969
|
props: {
|
|
1942
1970
|
modelValue: null,
|
|
@@ -1947,10 +1975,10 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1947
1975
|
},
|
|
1948
1976
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
1949
1977
|
setup(e, { emit: t }) {
|
|
1950
|
-
const o = e, n =
|
|
1978
|
+
const o = e, n = F(() => {
|
|
1951
1979
|
var r;
|
|
1952
1980
|
return (r = o.formItem) == null ? void 0 : r.itemType;
|
|
1953
|
-
}), a =
|
|
1981
|
+
}), a = z(o.modelValue);
|
|
1954
1982
|
we(
|
|
1955
1983
|
() => o.modelValue,
|
|
1956
1984
|
() => {
|
|
@@ -1965,10 +1993,10 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1965
1993
|
() => {
|
|
1966
1994
|
o.disabled && t("update:modelValue", Se(n.value));
|
|
1967
1995
|
}
|
|
1968
|
-
),
|
|
1996
|
+
), xt(() => {
|
|
1969
1997
|
t("update:modelValue", Se(n.value));
|
|
1970
1998
|
}), (r, s) => {
|
|
1971
|
-
const i =
|
|
1999
|
+
const i = D("t-switch");
|
|
1972
2000
|
return v(), S(i, {
|
|
1973
2001
|
modelValue: a.value,
|
|
1974
2002
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
|
|
@@ -1977,7 +2005,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1977
2005
|
}, null, 8, ["modelValue", "disabled"]);
|
|
1978
2006
|
};
|
|
1979
2007
|
}
|
|
1980
|
-
}), Go = /* @__PURE__ */
|
|
2008
|
+
}), Go = /* @__PURE__ */ ee({
|
|
1981
2009
|
__name: "GFormRadio",
|
|
1982
2010
|
props: {
|
|
1983
2011
|
modelValue: null,
|
|
@@ -1988,13 +2016,13 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
1988
2016
|
},
|
|
1989
2017
|
emits: ["update:modelValue"],
|
|
1990
2018
|
setup(e, { emit: t }) {
|
|
1991
|
-
const o = e, n =
|
|
2019
|
+
const o = e, n = F(() => {
|
|
1992
2020
|
var u;
|
|
1993
2021
|
return (u = o.formItem) == null ? void 0 : u.itemType;
|
|
1994
|
-
}), a =
|
|
2022
|
+
}), a = F(() => {
|
|
1995
2023
|
var u;
|
|
1996
2024
|
return (u = o.formItem) == null ? void 0 : u.listData;
|
|
1997
|
-
}), l =
|
|
2025
|
+
}), l = F(() => {
|
|
1998
2026
|
var u;
|
|
1999
2027
|
return (u = o.formItem) == null ? void 0 : u.listData.dataId;
|
|
2000
2028
|
}), { options: r } = Pt({
|
|
@@ -2002,7 +2030,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2002
2030
|
viewName: o.viewName,
|
|
2003
2031
|
listData: a.value,
|
|
2004
2032
|
dataId: l.value
|
|
2005
|
-
}), s =
|
|
2033
|
+
}), s = z(o.modelValue);
|
|
2006
2034
|
we(
|
|
2007
2035
|
() => o.modelValue,
|
|
2008
2036
|
() => {
|
|
@@ -2021,10 +2049,10 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2021
2049
|
() => {
|
|
2022
2050
|
o.disabled && t("update:modelValue", Se(n.value));
|
|
2023
2051
|
}
|
|
2024
|
-
),
|
|
2052
|
+
), xt(() => {
|
|
2025
2053
|
t("update:modelValue", Se(n.value));
|
|
2026
2054
|
}), (u, c) => {
|
|
2027
|
-
const d =
|
|
2055
|
+
const d = D("t-radio"), b = D("t-radio-group");
|
|
2028
2056
|
return v(), S(b, {
|
|
2029
2057
|
modelValue: s.value,
|
|
2030
2058
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => s.value = f),
|
|
@@ -2046,7 +2074,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2046
2074
|
}, 8, ["modelValue", "disabled"]);
|
|
2047
2075
|
};
|
|
2048
2076
|
}
|
|
2049
|
-
}), jo = /* @__PURE__ */
|
|
2077
|
+
}), jo = /* @__PURE__ */ ee({
|
|
2050
2078
|
__name: "GFormTreeCheckbox",
|
|
2051
2079
|
props: {
|
|
2052
2080
|
modelValue: null,
|
|
@@ -2058,7 +2086,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2058
2086
|
},
|
|
2059
2087
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
2060
2088
|
setup(e, { emit: t }) {
|
|
2061
|
-
const o = e, n =
|
|
2089
|
+
const o = e, n = z(o.modelValue);
|
|
2062
2090
|
we(
|
|
2063
2091
|
() => o.modelValue,
|
|
2064
2092
|
() => {
|
|
@@ -2069,13 +2097,13 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2069
2097
|
immediate: !0
|
|
2070
2098
|
}
|
|
2071
2099
|
);
|
|
2072
|
-
const a =
|
|
2100
|
+
const a = F(() => {
|
|
2073
2101
|
var c;
|
|
2074
2102
|
return (c = o.formItem) == null ? void 0 : c.itemType;
|
|
2075
|
-
}), l =
|
|
2103
|
+
}), l = F(() => {
|
|
2076
2104
|
var c;
|
|
2077
2105
|
return (c = o.formItem) == null ? void 0 : c.treeData;
|
|
2078
|
-
}), r =
|
|
2106
|
+
}), r = F(() => {
|
|
2079
2107
|
var c;
|
|
2080
2108
|
return (c = o.formItem) == null ? void 0 : c.treeData.dataId;
|
|
2081
2109
|
}), { options: s } = Pt({
|
|
@@ -2095,11 +2123,11 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2095
2123
|
() => {
|
|
2096
2124
|
o.disabled || i(Se(a.value));
|
|
2097
2125
|
}
|
|
2098
|
-
),
|
|
2126
|
+
), It(() => {
|
|
2099
2127
|
i(Se(a.value));
|
|
2100
2128
|
}), (c, d) => {
|
|
2101
2129
|
var f;
|
|
2102
|
-
const b =
|
|
2130
|
+
const b = D("t-tree-select");
|
|
2103
2131
|
return v(), S(b, {
|
|
2104
2132
|
modelValue: n.value,
|
|
2105
2133
|
"onUpdate:modelValue": d[0] || (d[0] = (M) => n.value = M),
|
|
@@ -2115,7 +2143,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2115
2143
|
}, null, 8, ["modelValue", "data", "placeholder", "multiple", "disabled"]);
|
|
2116
2144
|
};
|
|
2117
2145
|
}
|
|
2118
|
-
}), Wo = /* @__PURE__ */
|
|
2146
|
+
}), Wo = /* @__PURE__ */ ee({
|
|
2119
2147
|
__name: "GFormCascader",
|
|
2120
2148
|
props: {
|
|
2121
2149
|
modelValue: null,
|
|
@@ -2127,13 +2155,13 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2127
2155
|
},
|
|
2128
2156
|
emits: ["update:modelValue", "blur:modelValue"],
|
|
2129
2157
|
setup(e, { emit: t }) {
|
|
2130
|
-
const o = e, n =
|
|
2158
|
+
const o = e, n = F(() => {
|
|
2131
2159
|
var c;
|
|
2132
2160
|
return (c = o.formItem) == null ? void 0 : c.itemType;
|
|
2133
|
-
}), a =
|
|
2161
|
+
}), a = F(() => {
|
|
2134
2162
|
var c;
|
|
2135
2163
|
return (c = o.formItem) == null ? void 0 : c.treeData;
|
|
2136
|
-
}), l =
|
|
2164
|
+
}), l = F(() => {
|
|
2137
2165
|
var c;
|
|
2138
2166
|
return (c = o.formItem) == null ? void 0 : c.treeData.dataId;
|
|
2139
2167
|
}), { options: r } = Pt({
|
|
@@ -2141,7 +2169,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2141
2169
|
viewName: o.viewName,
|
|
2142
2170
|
treeData: a.value,
|
|
2143
2171
|
dataId: l.value
|
|
2144
|
-
}), s =
|
|
2172
|
+
}), s = z(o.modelValue);
|
|
2145
2173
|
we(
|
|
2146
2174
|
() => o.modelValue,
|
|
2147
2175
|
() => {
|
|
@@ -2163,10 +2191,10 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2163
2191
|
() => {
|
|
2164
2192
|
o.disabled || i(Se(n.value));
|
|
2165
2193
|
}
|
|
2166
|
-
),
|
|
2194
|
+
), It(() => {
|
|
2167
2195
|
i(Se(n.value));
|
|
2168
2196
|
}), (c, d) => {
|
|
2169
|
-
const b =
|
|
2197
|
+
const b = D("t-cascader");
|
|
2170
2198
|
return v(), S(b, {
|
|
2171
2199
|
modelValue: s.value,
|
|
2172
2200
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => s.value = f),
|
|
@@ -2180,7 +2208,7 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2180
2208
|
}, null, 8, ["modelValue", "options", "multiple", "disabled"]);
|
|
2181
2209
|
};
|
|
2182
2210
|
}
|
|
2183
|
-
}), Ho = /* @__PURE__ */
|
|
2211
|
+
}), Ho = /* @__PURE__ */ ee({
|
|
2184
2212
|
__name: "GFormUpload",
|
|
2185
2213
|
props: {
|
|
2186
2214
|
modelValue: null,
|
|
@@ -2191,22 +2219,22 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2191
2219
|
},
|
|
2192
2220
|
emits: ["update:modelValue", "blur:modelValue", "update:fileName"],
|
|
2193
2221
|
setup(e, { emit: t }) {
|
|
2194
|
-
const o = e, n =
|
|
2222
|
+
const o = e, n = F(() => o.fileName && o.modelValue ? [{ name: o.fileName, url: o.modelValue }] : []), a = Le(), l = F(() => a.uploadApi);
|
|
2195
2223
|
function r(u) {
|
|
2196
2224
|
if (u.length) {
|
|
2197
2225
|
const { name: c, response: d } = u[0];
|
|
2198
|
-
d.data.length ? (t("update:modelValue", d.data[0]), t("blur:modelValue", d.data[0]), t("update:fileName", c),
|
|
2226
|
+
d.data.length ? (t("update:modelValue", d.data[0]), t("blur:modelValue", d.data[0]), t("update:fileName", c), Y.success("上传成功")) : (Y.success(`上传失败 ${d == null ? void 0 : d.message}`), t("update:fileName", ""), t("update:modelValue", ""), t("blur:modelValue", ""));
|
|
2199
2227
|
}
|
|
2200
2228
|
}
|
|
2201
2229
|
function s(u) {
|
|
2202
2230
|
t("update:fileName", ""), t("update:modelValue", ""), t("blur:modelValue", "");
|
|
2203
2231
|
}
|
|
2204
2232
|
function i(u) {
|
|
2205
|
-
|
|
2233
|
+
Y.error(`上传失败:${u}`);
|
|
2206
2234
|
}
|
|
2207
2235
|
return (u, c) => {
|
|
2208
2236
|
var b, f, M;
|
|
2209
|
-
const d =
|
|
2237
|
+
const d = D("t-upload");
|
|
2210
2238
|
return v(), S(d, {
|
|
2211
2239
|
ref: "uploadRef",
|
|
2212
2240
|
theme: "file",
|
|
@@ -2227,10 +2255,10 @@ const Jt = /* @__PURE__ */ Y({
|
|
|
2227
2255
|
});
|
|
2228
2256
|
function qo(e = {}) {
|
|
2229
2257
|
function t(n, a = {}) {
|
|
2230
|
-
if (!
|
|
2258
|
+
if (!kt(n) && n !== 1) {
|
|
2231
2259
|
let l, r;
|
|
2232
2260
|
try {
|
|
2233
|
-
return l =
|
|
2261
|
+
return l = $e.render(n, { form: e.formModel.value }), r = Ht(l, { form: e.formModel.value }), r;
|
|
2234
2262
|
} catch (s) {
|
|
2235
2263
|
console.error(n, s.message);
|
|
2236
2264
|
}
|
|
@@ -2238,10 +2266,10 @@ function qo(e = {}) {
|
|
|
2238
2266
|
return !0;
|
|
2239
2267
|
}
|
|
2240
2268
|
function o(n, a = {}) {
|
|
2241
|
-
if (!
|
|
2269
|
+
if (!kt(n) && n !== 0) {
|
|
2242
2270
|
let l, r;
|
|
2243
2271
|
try {
|
|
2244
|
-
l =
|
|
2272
|
+
l = $e.render(n, { form: e.formModel.value }), r = Ht(l, { form: e.formModel.value });
|
|
2245
2273
|
} catch (s) {
|
|
2246
2274
|
console.error(n, s.message);
|
|
2247
2275
|
}
|
|
@@ -2254,7 +2282,7 @@ function qo(e = {}) {
|
|
|
2254
2282
|
handleItemDisableIf: o
|
|
2255
2283
|
};
|
|
2256
2284
|
}
|
|
2257
|
-
const
|
|
2285
|
+
const ra = ["id"], ia = /* @__PURE__ */ ee({
|
|
2258
2286
|
__name: "GFormItem",
|
|
2259
2287
|
props: {
|
|
2260
2288
|
formItem: null,
|
|
@@ -2263,11 +2291,11 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2263
2291
|
},
|
|
2264
2292
|
emits: ["after-update-value"],
|
|
2265
2293
|
setup(e, { expose: t, emit: o }) {
|
|
2266
|
-
const n = e, a =
|
|
2294
|
+
const n = e, a = F(() => n.formModel), { handleItemShowIf: l, handleItemDisableIf: r } = qo({ formModel: a });
|
|
2267
2295
|
function s(b, f) {
|
|
2268
2296
|
o("after-update-value", b, f);
|
|
2269
2297
|
}
|
|
2270
|
-
const i =
|
|
2298
|
+
const i = F(() => n.formItem.disableIf ? r(n.formItem.disableIf, n.formItem) : !1), u = z(!0);
|
|
2271
2299
|
function c() {
|
|
2272
2300
|
return i.value;
|
|
2273
2301
|
}
|
|
@@ -2279,9 +2307,9 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2279
2307
|
getDisableFlag: c,
|
|
2280
2308
|
setBlockShowFlag: d
|
|
2281
2309
|
}), (b, f) => {
|
|
2282
|
-
const M =
|
|
2310
|
+
const M = D("t-divider"), E = D("t-form-item");
|
|
2283
2311
|
return v(), q("div", {
|
|
2284
|
-
class:
|
|
2312
|
+
class: $(`${m(X)}__form-item`),
|
|
2285
2313
|
id: e.formItem.keyName ? e.formItem.keyName : e.formItem.name
|
|
2286
2314
|
}, [
|
|
2287
2315
|
u.value ? (v(), q(ve, { key: 0 }, [
|
|
@@ -2307,8 +2335,8 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2307
2335
|
e.formItem.itemType === "label" ? (v(), S(Uo, {
|
|
2308
2336
|
key: 0,
|
|
2309
2337
|
modelValue: m(Q)(m(a), e.formItem.keyName)
|
|
2310
|
-
}, null, 8, ["modelValue"])) :
|
|
2311
|
-
e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (v(), S(
|
|
2338
|
+
}, null, 8, ["modelValue"])) : G("", !0),
|
|
2339
|
+
e.formItem.itemType === "text_input" && e.formItem.inputType != "RE_PASSWORD" ? (v(), S(Ct, {
|
|
2312
2340
|
key: 1,
|
|
2313
2341
|
formItem: e.formItem,
|
|
2314
2342
|
inputType: (h = (T = e.formItem) == null ? void 0 : T.inputType) == null ? void 0 : h.toLowerCase(),
|
|
@@ -2316,8 +2344,8 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2316
2344
|
placeholder: e.formItem.placeholder,
|
|
2317
2345
|
disabled: m(i),
|
|
2318
2346
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => s(e.formItem.keyName, g))
|
|
2319
|
-
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) :
|
|
2320
|
-
e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (v(), S(
|
|
2347
|
+
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : G("", !0),
|
|
2348
|
+
e.formItem.itemType === "text_input" && e.formItem.inputType == "RE_PASSWORD" ? (v(), S(Ct, {
|
|
2321
2349
|
key: 2,
|
|
2322
2350
|
formItem: e.formItem,
|
|
2323
2351
|
inputType: e.formItem.inputType.toLowerCase(),
|
|
@@ -2325,13 +2353,13 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2325
2353
|
placeholder: e.formItem.placeholder,
|
|
2326
2354
|
disabled: m(i),
|
|
2327
2355
|
"onUpdate:modelValue": f[1] || (f[1] = (g) => s("rePassword", g))
|
|
2328
|
-
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) :
|
|
2356
|
+
}, null, 8, ["formItem", "inputType", "modelValue", "placeholder", "disabled"])) : G("", !0),
|
|
2329
2357
|
e.formItem.itemType === "check_box" ? (v(), S(Ro, {
|
|
2330
2358
|
key: 3,
|
|
2331
2359
|
modelValue: m(Q)(m(a), e.formItem.keyName, !1),
|
|
2332
2360
|
disabled: m(i),
|
|
2333
2361
|
"onUpdate:modelValue": f[2] || (f[2] = (g) => s(e.formItem.keyName, g))
|
|
2334
|
-
}, null, 8, ["modelValue", "disabled"])) :
|
|
2362
|
+
}, null, 8, ["modelValue", "disabled"])) : G("", !0),
|
|
2335
2363
|
e.formItem.itemType === "switch" ? (v(), S(Ko, {
|
|
2336
2364
|
key: 4,
|
|
2337
2365
|
formItem: e.formItem,
|
|
@@ -2339,7 +2367,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2339
2367
|
modelValue: m(Q)(m(a), e.formItem.keyName, !1),
|
|
2340
2368
|
disabled: m(i),
|
|
2341
2369
|
"onUpdate:modelValue": f[3] || (f[3] = (g) => s(e.formItem.keyName, g))
|
|
2342
|
-
}, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) :
|
|
2370
|
+
}, null, 8, ["formItem", "viewName", "modelValue", "disabled"])) : G("", !0),
|
|
2343
2371
|
e.formItem.itemType === "radio" ? (v(), S(Go, {
|
|
2344
2372
|
key: 5,
|
|
2345
2373
|
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
@@ -2347,7 +2375,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2347
2375
|
viewName: e.viewName,
|
|
2348
2376
|
disabled: m(i),
|
|
2349
2377
|
"onUpdate:modelValue": f[4] || (f[4] = (g) => s(e.formItem.keyName, g))
|
|
2350
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) :
|
|
2378
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
|
|
2351
2379
|
e.formItem.itemType === "selector" || e.formItem.itemType === "multi_selector" ? (v(), S(Jt, {
|
|
2352
2380
|
key: e.formItem.listData.dataId,
|
|
2353
2381
|
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
@@ -2356,7 +2384,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2356
2384
|
multiple: e.formItem.itemType === "multi_selector",
|
|
2357
2385
|
disabled: m(i),
|
|
2358
2386
|
"onUpdate:modelValue": f[5] || (f[5] = (g) => s(e.formItem.keyName, g))
|
|
2359
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) :
|
|
2387
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : G("", !0),
|
|
2360
2388
|
e.formItem.itemType === "date_selector" || e.formItem.itemType === "time_selector" || e.formItem.itemType === "date_time_selector" ? (v(), S(Yt, {
|
|
2361
2389
|
key: 7,
|
|
2362
2390
|
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
@@ -2364,7 +2392,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2364
2392
|
viewName: e.viewName,
|
|
2365
2393
|
disabled: m(i),
|
|
2366
2394
|
"onUpdate:modelValue": f[6] || (f[6] = (g) => s(e.formItem.keyName, g))
|
|
2367
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) :
|
|
2395
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
|
|
2368
2396
|
e.formItem.itemType === "tree_check_box" ? (v(), S(jo, {
|
|
2369
2397
|
key: 8,
|
|
2370
2398
|
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
@@ -2372,7 +2400,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2372
2400
|
viewName: e.viewName,
|
|
2373
2401
|
disabled: m(i),
|
|
2374
2402
|
"onUpdate:modelValue": f[7] || (f[7] = (g) => s(e.formItem.keyName, g))
|
|
2375
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) :
|
|
2403
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled"])) : G("", !0),
|
|
2376
2404
|
e.formItem.itemType === "multi_tree_selector" || e.formItem.itemType === "tree_selector" ? (v(), S(Wo, {
|
|
2377
2405
|
key: 9,
|
|
2378
2406
|
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
@@ -2381,7 +2409,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2381
2409
|
multiple: e.formItem.itemType === "multi_tree_selector",
|
|
2382
2410
|
disabled: m(i),
|
|
2383
2411
|
"onUpdate:modelValue": f[8] || (f[8] = (g) => s(e.formItem.keyName, g))
|
|
2384
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) :
|
|
2412
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "multiple", "disabled"])) : G("", !0),
|
|
2385
2413
|
e.formItem.itemType === "file" ? (v(), S(Ho, {
|
|
2386
2414
|
key: 10,
|
|
2387
2415
|
modelValue: m(Q)(m(a), e.formItem.keyName),
|
|
@@ -2391,16 +2419,16 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2391
2419
|
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
2420
|
"onUpdate:fileName": f[9] || (f[9] = (g) => e.formItem.filenameKeyName && s(e.formItem.filenameKeyName, g)),
|
|
2393
2421
|
"onUpdate:modelValue": f[10] || (f[10] = (g) => s(e.formItem.keyName, g))
|
|
2394
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "fileName"])) :
|
|
2422
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "disabled", "fileName"])) : G("", !0)
|
|
2395
2423
|
];
|
|
2396
2424
|
}),
|
|
2397
2425
|
_: 1
|
|
2398
|
-
}, 8, ["id", "requiredMark", "label", "name"])) :
|
|
2399
|
-
], 64)) :
|
|
2400
|
-
], 10,
|
|
2426
|
+
}, 8, ["id", "requiredMark", "label", "name"])) : G("", !0)
|
|
2427
|
+
], 64)) : G("", !0)
|
|
2428
|
+
], 10, ra);
|
|
2401
2429
|
};
|
|
2402
2430
|
}
|
|
2403
|
-
}),
|
|
2431
|
+
}), sa = ["id"], ua = /* @__PURE__ */ ee({
|
|
2404
2432
|
__name: "GFormBlock",
|
|
2405
2433
|
props: {
|
|
2406
2434
|
name: null,
|
|
@@ -2408,15 +2436,15 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2408
2436
|
showIf: null
|
|
2409
2437
|
},
|
|
2410
2438
|
setup(e) {
|
|
2411
|
-
const t = e, o =
|
|
2439
|
+
const t = e, o = z("");
|
|
2412
2440
|
function n() {
|
|
2413
2441
|
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}`;
|
|
2414
2442
|
}
|
|
2415
|
-
const a =
|
|
2443
|
+
const a = z();
|
|
2416
2444
|
function l() {
|
|
2417
|
-
var i
|
|
2445
|
+
var i;
|
|
2418
2446
|
const r = a.value, s = !!(t.blockType == "block_start" && t.showIf);
|
|
2419
|
-
for (let
|
|
2447
|
+
for (let u = r; u && (xe((i = u.__vnode.ctx.exposed) == null ? void 0 : i.setBlockShowFlag) || u.__vnode.ctx.exposed.setBlockShowFlag(s), !u.matches(`#block_end_${t.name}`)); u = u.nextElementSibling)
|
|
2420
2448
|
;
|
|
2421
2449
|
}
|
|
2422
2450
|
return et(() => {
|
|
@@ -2430,9 +2458,9 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2430
2458
|
id: o.value,
|
|
2431
2459
|
ref_key: "blockRef",
|
|
2432
2460
|
ref: a
|
|
2433
|
-
}, null, 8,
|
|
2461
|
+
}, null, 8, sa));
|
|
2434
2462
|
}
|
|
2435
|
-
}),
|
|
2463
|
+
}), ca = /* @__PURE__ */ ee({
|
|
2436
2464
|
__name: "index",
|
|
2437
2465
|
props: {
|
|
2438
2466
|
viewName: null,
|
|
@@ -2441,10 +2469,10 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2441
2469
|
},
|
|
2442
2470
|
emits: ["confirm-form", "confirm-and-close", "close-dialog"],
|
|
2443
2471
|
setup(e, { emit: t }) {
|
|
2444
|
-
const o = e, n =
|
|
2472
|
+
const o = e, n = F(() => {
|
|
2445
2473
|
var g;
|
|
2446
2474
|
return (g = o.board) == null ? void 0 : g.formItems;
|
|
2447
|
-
}), a =
|
|
2475
|
+
}), a = z({}), { handleItemShowIf: l } = qo({ formModel: a });
|
|
2448
2476
|
we(
|
|
2449
2477
|
() => o.formData,
|
|
2450
2478
|
() => {
|
|
@@ -2455,18 +2483,18 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2455
2483
|
deep: !0
|
|
2456
2484
|
}
|
|
2457
2485
|
);
|
|
2458
|
-
const r =
|
|
2486
|
+
const r = z(), s = F(() => {
|
|
2459
2487
|
var g;
|
|
2460
2488
|
return (g = r.value) == null ? void 0 : g.tFormRef;
|
|
2461
|
-
}), i =
|
|
2489
|
+
}), i = z(), u = z({}), c = ["userInfoNameEn", "cardNum", "attend", "userInfoRoleKey"];
|
|
2462
2490
|
async function d() {
|
|
2463
2491
|
let g = [];
|
|
2464
2492
|
return i.value && (g = i == null ? void 0 : i.value.map((p) => {
|
|
2465
2493
|
const { formItem: C } = p, _ = [];
|
|
2466
2494
|
return C.required && C.keyName && _.push({
|
|
2467
2495
|
validator: () => {
|
|
2468
|
-
const
|
|
2469
|
-
return Po(
|
|
2496
|
+
const I = Q(a.value, C.keyName);
|
|
2497
|
+
return Po(I) ? {
|
|
2470
2498
|
result: !1,
|
|
2471
2499
|
message: `${C.name.replace(/\s/g, "").replace(/[::;\s]/g, "")}为必填项!`
|
|
2472
2500
|
} : { result: !0 };
|
|
@@ -2498,7 +2526,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2498
2526
|
async function f(g = []) {
|
|
2499
2527
|
var _;
|
|
2500
2528
|
const p = M();
|
|
2501
|
-
return (g.length ? g.some((
|
|
2529
|
+
return (g.length ? g.some((I) => p.includes(I)) : !0) ? (_ = s.value) == null ? void 0 : _.validate({
|
|
2502
2530
|
fields: g.length ? g : p
|
|
2503
2531
|
}) : Promise.resolve({});
|
|
2504
2532
|
}
|
|
@@ -2508,10 +2536,10 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2508
2536
|
const { formItem: C } = p;
|
|
2509
2537
|
return (C.keyName ?? "") != "" && !c.includes(C.keyName) && !p.getDisableFlag() ? C.inputType !== "RE_PASSWORD" ? C.keyName : "rePassword" : [];
|
|
2510
2538
|
});
|
|
2511
|
-
}, E =
|
|
2539
|
+
}, E = F(() => {
|
|
2512
2540
|
var g;
|
|
2513
2541
|
return (g = o.board) == null ? void 0 : g.okButton;
|
|
2514
|
-
}), T =
|
|
2542
|
+
}), T = F(() => {
|
|
2515
2543
|
var g;
|
|
2516
2544
|
return (g = o.board) == null ? void 0 : g.cancelButton;
|
|
2517
2545
|
});
|
|
@@ -2531,7 +2559,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2531
2559
|
t("confirm-form", a.value, g.buttonId);
|
|
2532
2560
|
else {
|
|
2533
2561
|
const C = h(p);
|
|
2534
|
-
|
|
2562
|
+
Y.warning(C == null ? void 0 : C.message);
|
|
2535
2563
|
}
|
|
2536
2564
|
});
|
|
2537
2565
|
break;
|
|
@@ -2542,7 +2570,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2542
2570
|
t("confirm-and-close", a.value, g.buttonId);
|
|
2543
2571
|
else {
|
|
2544
2572
|
const C = h(p);
|
|
2545
|
-
|
|
2573
|
+
Y.warning(C == null ? void 0 : C.message);
|
|
2546
2574
|
}
|
|
2547
2575
|
});
|
|
2548
2576
|
break;
|
|
@@ -2558,7 +2586,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2558
2586
|
}
|
|
2559
2587
|
}
|
|
2560
2588
|
return (g, p) => {
|
|
2561
|
-
const C =
|
|
2589
|
+
const C = D("t-button");
|
|
2562
2590
|
return v(), S(Bo, {
|
|
2563
2591
|
ref_key: "commonFormRef",
|
|
2564
2592
|
ref: r,
|
|
@@ -2573,14 +2601,14 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2573
2601
|
(v(!0), q(ve, null, ye(m(n), (_) => (v(), q(ve, {
|
|
2574
2602
|
key: `${_.name}_${_.keyName}`
|
|
2575
2603
|
}, [
|
|
2576
|
-
_.itemType === "block_start" || _.itemType === "block_end" ? (v(), S(
|
|
2604
|
+
_.itemType === "block_start" || _.itemType === "block_end" ? (v(), S(ua, {
|
|
2577
2605
|
key: 0,
|
|
2578
2606
|
ref_for: !0,
|
|
2579
2607
|
ref: "formBlockRef",
|
|
2580
2608
|
name: _.name,
|
|
2581
2609
|
blockType: _.itemType,
|
|
2582
2610
|
showIf: m(l)(_.showIf)
|
|
2583
|
-
}, null, 8, ["name", "blockType", "showIf"])) : (v(), S(
|
|
2611
|
+
}, null, 8, ["name", "blockType", "showIf"])) : (v(), S(ia, {
|
|
2584
2612
|
key: 1,
|
|
2585
2613
|
ref_for: !0,
|
|
2586
2614
|
ref_key: "formItemRef",
|
|
@@ -2593,7 +2621,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2593
2621
|
], 64))), 128))
|
|
2594
2622
|
]),
|
|
2595
2623
|
footer: w(() => {
|
|
2596
|
-
var _,
|
|
2624
|
+
var _, I;
|
|
2597
2625
|
return [
|
|
2598
2626
|
((_ = m(T)) == null ? void 0 : _.name) !== "" ? (v(), S(C, {
|
|
2599
2627
|
key: 0,
|
|
@@ -2607,8 +2635,8 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2607
2635
|
];
|
|
2608
2636
|
}),
|
|
2609
2637
|
_: 1
|
|
2610
|
-
})) :
|
|
2611
|
-
((
|
|
2638
|
+
})) : G("", !0),
|
|
2639
|
+
((I = m(E)) == null ? void 0 : I.name) !== "" ? (v(), S(C, {
|
|
2612
2640
|
key: 1,
|
|
2613
2641
|
theme: "primary",
|
|
2614
2642
|
onClick: p[1] || (p[1] = (N) => m(E) && y(m(E)))
|
|
@@ -2620,14 +2648,14 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2620
2648
|
];
|
|
2621
2649
|
}),
|
|
2622
2650
|
_: 1
|
|
2623
|
-
})) :
|
|
2651
|
+
})) : G("", !0)
|
|
2624
2652
|
];
|
|
2625
2653
|
}),
|
|
2626
2654
|
_: 1
|
|
2627
2655
|
}, 8, ["commonFormProps"]);
|
|
2628
2656
|
};
|
|
2629
2657
|
}
|
|
2630
|
-
}),
|
|
2658
|
+
}), da = /* @__PURE__ */ ee({
|
|
2631
2659
|
__name: "GTableForm",
|
|
2632
2660
|
props: {
|
|
2633
2661
|
col: null,
|
|
@@ -2636,10 +2664,10 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2636
2664
|
},
|
|
2637
2665
|
emits: ["blur"],
|
|
2638
2666
|
setup(e, { emit: t }) {
|
|
2639
|
-
const o = e, n =
|
|
2667
|
+
const o = e, n = F(() => {
|
|
2640
2668
|
var s;
|
|
2641
2669
|
return (s = o.col) == null ? void 0 : s.formItems;
|
|
2642
|
-
}), a =
|
|
2670
|
+
}), a = F(() => Qt(o.row, n.value));
|
|
2643
2671
|
function l(s, i) {
|
|
2644
2672
|
qe(a.value, s, i);
|
|
2645
2673
|
}
|
|
@@ -2647,7 +2675,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2647
2675
|
t("blur", s, a.value);
|
|
2648
2676
|
}
|
|
2649
2677
|
return (s, i) => (v(), q("div", {
|
|
2650
|
-
class:
|
|
2678
|
+
class: $(`${m(X)}__table-form`)
|
|
2651
2679
|
}, [
|
|
2652
2680
|
(v(!0), q(ve, null, ye(m(n), (u) => {
|
|
2653
2681
|
var c;
|
|
@@ -2657,8 +2685,8 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2657
2685
|
u.itemType === "label" ? (v(), S(Uo, {
|
|
2658
2686
|
key: 0,
|
|
2659
2687
|
modelValue: m(Q)(m(a), e.col.colKey)
|
|
2660
|
-
}, null, 8, ["modelValue"])) :
|
|
2661
|
-
u.itemType == "text_input" ? (v(), S(
|
|
2688
|
+
}, null, 8, ["modelValue"])) : G("", !0),
|
|
2689
|
+
u.itemType == "text_input" ? (v(), S(Ct, {
|
|
2662
2690
|
key: 1,
|
|
2663
2691
|
formItem: u,
|
|
2664
2692
|
viewName: e.viewName,
|
|
@@ -2667,7 +2695,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2667
2695
|
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2668
2696
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2669
2697
|
"onBlur:modelValue": (d) => r(u)
|
|
2670
|
-
}, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) :
|
|
2698
|
+
}, null, 8, ["formItem", "viewName", "inputType", "originValue", "modelValue", "onBlur:modelValue"])) : G("", !0),
|
|
2671
2699
|
u.itemType === "check_box" ? (v(), S(Ro, {
|
|
2672
2700
|
key: 2,
|
|
2673
2701
|
formItem: u,
|
|
@@ -2676,7 +2704,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2676
2704
|
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2677
2705
|
"onUpdate:modelValue": i[1] || (i[1] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2678
2706
|
"onBlur:modelValue": (d) => r(u)
|
|
2679
|
-
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) :
|
|
2707
|
+
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : G("", !0),
|
|
2680
2708
|
u.itemType === "switch" ? (v(), S(Ko, {
|
|
2681
2709
|
key: 3,
|
|
2682
2710
|
formItem: u,
|
|
@@ -2685,7 +2713,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2685
2713
|
modelValue: m(Q)(m(a), e.col.colKey),
|
|
2686
2714
|
"onUpdate:modelValue": i[2] || (i[2] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2687
2715
|
"onBlur:modelValue": (d) => r(u)
|
|
2688
|
-
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) :
|
|
2716
|
+
}, null, 8, ["formItem", "viewName", "originValue", "modelValue", "onBlur:modelValue"])) : G("", !0),
|
|
2689
2717
|
u.itemType === "radio" ? (v(), S(Go, {
|
|
2690
2718
|
key: 4,
|
|
2691
2719
|
originValue: m(Q)(e.row, e.col.colKey),
|
|
@@ -2694,7 +2722,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2694
2722
|
viewName: e.viewName,
|
|
2695
2723
|
"onUpdate:modelValue": i[3] || (i[3] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2696
2724
|
"onBlur:modelValue": (d) => r(u)
|
|
2697
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) :
|
|
2725
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : G("", !0),
|
|
2698
2726
|
u.itemType === "selector" || u.itemType === "multi_selector" ? (v(), S(Jt, {
|
|
2699
2727
|
key: 5,
|
|
2700
2728
|
originValue: m(Q)(e.row, e.col.colKey),
|
|
@@ -2704,7 +2732,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2704
2732
|
multiple: u.itemType === "multi_selector",
|
|
2705
2733
|
"onUpdate:modelValue": i[4] || (i[4] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2706
2734
|
"onBlur:modelValue": (d) => r(u)
|
|
2707
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) :
|
|
2735
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : G("", !0),
|
|
2708
2736
|
u.itemType === "date_selector" || u.itemType === "time_selector" || u.itemType === "date_time_selector" ? (v(), S(Yt, {
|
|
2709
2737
|
key: 6,
|
|
2710
2738
|
originValue: m(Q)(e.row, e.col.colKey),
|
|
@@ -2713,7 +2741,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2713
2741
|
viewName: e.viewName,
|
|
2714
2742
|
"onUpdate:modelValue": i[5] || (i[5] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2715
2743
|
"onBlur:modelValue": (d) => r(u)
|
|
2716
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) :
|
|
2744
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : G("", !0),
|
|
2717
2745
|
u.itemType === "tree_check_box" ? (v(), S(jo, {
|
|
2718
2746
|
key: 7,
|
|
2719
2747
|
originValue: m(Q)(e.row, e.col.colKey),
|
|
@@ -2722,7 +2750,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2722
2750
|
viewName: e.viewName,
|
|
2723
2751
|
"onUpdate:modelValue": i[6] || (i[6] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2724
2752
|
"onBlur:modelValue": (d) => r(u)
|
|
2725
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) :
|
|
2753
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "onBlur:modelValue"])) : G("", !0),
|
|
2726
2754
|
u.itemType === "multi_tree_selector" || u.itemType === "tree_selector" ? (v(), S(Wo, {
|
|
2727
2755
|
key: 8,
|
|
2728
2756
|
originValue: m(Q)(e.row, e.col.colKey),
|
|
@@ -2732,7 +2760,7 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2732
2760
|
multiple: u.itemType === "multi_tree_selector",
|
|
2733
2761
|
"onUpdate:modelValue": i[7] || (i[7] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2734
2762
|
"onBlur:modelValue": (d) => r(u)
|
|
2735
|
-
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) :
|
|
2763
|
+
}, null, 8, ["originValue", "modelValue", "formItem", "viewName", "multiple", "onBlur:modelValue"])) : G("", !0),
|
|
2736
2764
|
u.itemType === "file" ? (v(), S(Ho, {
|
|
2737
2765
|
key: 9,
|
|
2738
2766
|
modelValue: m(Q)(m(a), e.col.colKey),
|
|
@@ -2741,14 +2769,14 @@ const aa = ["id"], la = /* @__PURE__ */ Y({
|
|
|
2741
2769
|
tips: u.placeholder || "请选择上传文件",
|
|
2742
2770
|
"onUpdate:modelValue": i[8] || (i[8] = (d) => e.col.colKey && l(e.col.colKey, d)),
|
|
2743
2771
|
"onBlur:modelValue": (d) => r(u)
|
|
2744
|
-
}, null, 8, ["modelValue", "formItem", "viewName", "tips", "onBlur:modelValue"])) :
|
|
2772
|
+
}, null, 8, ["modelValue", "formItem", "viewName", "tips", "onBlur:modelValue"])) : G("", !0)
|
|
2745
2773
|
]);
|
|
2746
2774
|
}), 128))
|
|
2747
2775
|
], 2));
|
|
2748
2776
|
}
|
|
2749
2777
|
});
|
|
2750
|
-
function
|
|
2751
|
-
const t =
|
|
2778
|
+
function zo(e = {}) {
|
|
2779
|
+
const t = z(!1);
|
|
2752
2780
|
return {
|
|
2753
2781
|
reloadFlag: t,
|
|
2754
2782
|
reload: () => {
|
|
@@ -2761,7 +2789,7 @@ function $o(e = {}) {
|
|
|
2761
2789
|
function Ut(e) {
|
|
2762
2790
|
return e === "" ? e : e === "true" || e == "1";
|
|
2763
2791
|
}
|
|
2764
|
-
function
|
|
2792
|
+
function ma(e, t) {
|
|
2765
2793
|
return new Promise((o, n) => {
|
|
2766
2794
|
var a = new XMLHttpRequest();
|
|
2767
2795
|
a.responseType = "blob", a.onload = function() {
|
|
@@ -2772,7 +2800,7 @@ function ca(e, t) {
|
|
|
2772
2800
|
}, a.open("GET", e), a.send();
|
|
2773
2801
|
});
|
|
2774
2802
|
}
|
|
2775
|
-
function
|
|
2803
|
+
function Fe(e) {
|
|
2776
2804
|
if (typeof e != "string")
|
|
2777
2805
|
throw new TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
2778
2806
|
}
|
|
@@ -2809,7 +2837,7 @@ function ho(e, t) {
|
|
|
2809
2837
|
}
|
|
2810
2838
|
return o;
|
|
2811
2839
|
}
|
|
2812
|
-
function
|
|
2840
|
+
function fa(e, t) {
|
|
2813
2841
|
var o = t.dir || t.root, n = t.base || (t.name || "") + (t.ext || "");
|
|
2814
2842
|
return o ? o === t.root ? o + n : o + e + n : n;
|
|
2815
2843
|
}
|
|
@@ -2818,30 +2846,30 @@ var Xe = {
|
|
|
2818
2846
|
resolve: function() {
|
|
2819
2847
|
for (var t = "", o = !1, n, a = arguments.length - 1; a >= -1 && !o; a--) {
|
|
2820
2848
|
var l;
|
|
2821
|
-
a >= 0 ? l = arguments[a] : (n === void 0 && (n = process.cwd()), l = n),
|
|
2849
|
+
a >= 0 ? l = arguments[a] : (n === void 0 && (n = process.cwd()), l = n), Fe(l), l.length !== 0 && (t = l + "/" + t, o = l.charCodeAt(0) === 47);
|
|
2822
2850
|
}
|
|
2823
2851
|
return t = ho(t, !o), o ? t.length > 0 ? "/" + t : "/" : t.length > 0 ? t : ".";
|
|
2824
2852
|
},
|
|
2825
2853
|
normalize: function(t) {
|
|
2826
|
-
if (
|
|
2854
|
+
if (Fe(t), t.length === 0)
|
|
2827
2855
|
return ".";
|
|
2828
2856
|
var o = t.charCodeAt(0) === 47, n = t.charCodeAt(t.length - 1) === 47;
|
|
2829
2857
|
return t = ho(t, !o), t.length === 0 && !o && (t = "."), t.length > 0 && n && (t += "/"), o ? "/" + t : t;
|
|
2830
2858
|
},
|
|
2831
2859
|
isAbsolute: function(t) {
|
|
2832
|
-
return
|
|
2860
|
+
return Fe(t), t.length > 0 && t.charCodeAt(0) === 47;
|
|
2833
2861
|
},
|
|
2834
2862
|
join: function() {
|
|
2835
2863
|
if (arguments.length === 0)
|
|
2836
2864
|
return ".";
|
|
2837
2865
|
for (var t, o = 0; o < arguments.length; ++o) {
|
|
2838
2866
|
var n = arguments[o];
|
|
2839
|
-
|
|
2867
|
+
Fe(n), n.length > 0 && (t === void 0 ? t = n : t += "/" + n);
|
|
2840
2868
|
}
|
|
2841
2869
|
return t === void 0 ? "." : Xe.normalize(t);
|
|
2842
2870
|
},
|
|
2843
2871
|
relative: function(t, o) {
|
|
2844
|
-
if (
|
|
2872
|
+
if (Fe(t), Fe(o), t === o || (t = Xe.resolve(t), o = Xe.resolve(o), t === o))
|
|
2845
2873
|
return "";
|
|
2846
2874
|
for (var n = 1; n < t.length && t.charCodeAt(n) === 47; ++n)
|
|
2847
2875
|
;
|
|
@@ -2872,7 +2900,7 @@ var Xe = {
|
|
|
2872
2900
|
return t;
|
|
2873
2901
|
},
|
|
2874
2902
|
dirname: function(t) {
|
|
2875
|
-
if (
|
|
2903
|
+
if (Fe(t), t.length === 0)
|
|
2876
2904
|
return ".";
|
|
2877
2905
|
for (var o = t.charCodeAt(0), n = o === 47, a = -1, l = !0, r = t.length - 1; r >= 1; --r)
|
|
2878
2906
|
if (o = t.charCodeAt(r), o === 47) {
|
|
@@ -2887,7 +2915,7 @@ var Xe = {
|
|
|
2887
2915
|
basename: function(t, o) {
|
|
2888
2916
|
if (o !== void 0 && typeof o != "string")
|
|
2889
2917
|
throw new TypeError('"ext" argument must be a string');
|
|
2890
|
-
|
|
2918
|
+
Fe(t);
|
|
2891
2919
|
var n = 0, a = -1, l = !0, r;
|
|
2892
2920
|
if (o !== void 0 && o.length > 0 && o.length <= t.length) {
|
|
2893
2921
|
if (o.length === t.length && o === t)
|
|
@@ -2917,7 +2945,7 @@ var Xe = {
|
|
|
2917
2945
|
}
|
|
2918
2946
|
},
|
|
2919
2947
|
extname: function(t) {
|
|
2920
|
-
|
|
2948
|
+
Fe(t);
|
|
2921
2949
|
for (var o = -1, n = 0, a = -1, l = !0, r = 0, s = t.length - 1; s >= 0; --s) {
|
|
2922
2950
|
var i = t.charCodeAt(s);
|
|
2923
2951
|
if (i === 47) {
|
|
@@ -2936,10 +2964,10 @@ var Xe = {
|
|
|
2936
2964
|
format: function(t) {
|
|
2937
2965
|
if (t === null || typeof t != "object")
|
|
2938
2966
|
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
|
|
2939
|
-
return
|
|
2967
|
+
return fa("/", t);
|
|
2940
2968
|
},
|
|
2941
2969
|
parse: function(t) {
|
|
2942
|
-
|
|
2970
|
+
Fe(t);
|
|
2943
2971
|
var o = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
2944
2972
|
if (t.length === 0)
|
|
2945
2973
|
return o;
|
|
@@ -2965,8 +2993,8 @@ var Xe = {
|
|
|
2965
2993
|
posix: null
|
|
2966
2994
|
};
|
|
2967
2995
|
Xe.posix = Xe;
|
|
2968
|
-
const
|
|
2969
|
-
class
|
|
2996
|
+
const ha = Xe.extname, $o = Xe.basename;
|
|
2997
|
+
class pa {
|
|
2970
2998
|
constructor() {
|
|
2971
2999
|
let t = (() => typeof global > "u")(), o = "image/png", n = "image/jpeg", a = "image/jpeg", l = "image/webp", r = "application/pdf", s = "image/svg+xml";
|
|
2972
3000
|
Object.assign(this, {
|
|
@@ -2984,7 +3012,7 @@ class fa {
|
|
|
2984
3012
|
return this.mimes[t];
|
|
2985
3013
|
}
|
|
2986
3014
|
}
|
|
2987
|
-
function
|
|
3015
|
+
function ga(e, {
|
|
2988
3016
|
filename: t = "",
|
|
2989
3017
|
extension: o = "",
|
|
2990
3018
|
format: E,
|
|
@@ -2995,7 +3023,7 @@ function ha(e, {
|
|
|
2995
3023
|
outline: i,
|
|
2996
3024
|
archive: f
|
|
2997
3025
|
} = {}) {
|
|
2998
|
-
var { fromMime: c, toMime: d, expected: b } = new
|
|
3026
|
+
var { fromMime: c, toMime: d, expected: b } = new pa(), f = f || "canvas", M = E || o.replace(/@\d+x$/i, "") || ha(t), E = c(d(M) || M), T = d(E), h = e.length;
|
|
2999
3027
|
if (!M)
|
|
3000
3028
|
throw new Error(
|
|
3001
3029
|
"Cannot determine image format (use a filename extension or 'format' argument)"
|
|
@@ -3006,7 +3034,7 @@ function ha(e, {
|
|
|
3006
3034
|
throw new RangeError(
|
|
3007
3035
|
"Canvas has no associated contexts (try calling getContext or newPage first)"
|
|
3008
3036
|
);
|
|
3009
|
-
let y, g, p = t.replace(/{(\d*)}/g, (_,
|
|
3037
|
+
let y, g, p = t.replace(/{(\d*)}/g, (_, I) => (g = !0, I = parseInt(I, 10), y = isFinite(I) ? I : isFinite(y) ? y : -1, "{}")), C = a > 0 ? a - 1 : a < 0 ? h + a : void 0;
|
|
3010
3038
|
if (isFinite(C) && C < 0 || C >= h)
|
|
3011
3039
|
throw new RangeError(
|
|
3012
3040
|
h == 1 ? `Canvas only has a ‘page 1’ (${C} is out of bounds)` : `Canvas has pages 1–${h} (${C} is out of bounds)`
|
|
@@ -3018,7 +3046,7 @@ function ha(e, {
|
|
|
3018
3046
|
"The quality option must be an number in the 0.0–1.0 range"
|
|
3019
3047
|
);
|
|
3020
3048
|
if (s === void 0) {
|
|
3021
|
-
let _ = (o ||
|
|
3049
|
+
let _ = (o || $o(t, M)).match(/@(\d+)x$/i);
|
|
3022
3050
|
s = _ ? parseInt(_[1], 10) : 1;
|
|
3023
3051
|
} else if (typeof s != "number" || !Number.isInteger(s) || s < 1)
|
|
3024
3052
|
throw new TypeError("The density option must be a non-negative integer");
|
|
@@ -3122,10 +3150,10 @@ const eo = (e, t, o, n) => {
|
|
|
3122
3150
|
s.fillStyle = n, s.fillRect(0, 0, a, l), s.drawImage(e, 0, 0), e = r;
|
|
3123
3151
|
}
|
|
3124
3152
|
return new Promise((a, l) => e.toBlob(a, t, o));
|
|
3125
|
-
},
|
|
3153
|
+
}, va = (...e) => eo(...e).then((t) => t.arrayBuffer()), ba = async (e, t, o, n, a) => {
|
|
3126
3154
|
Xo(a, await eo(e, t, o, n));
|
|
3127
|
-
},
|
|
3128
|
-
let s = (c) => l.replace("{}", String(c + 1).padStart(r, "0")), i =
|
|
3155
|
+
}, ya = async (e, t, o, n, a, l, r) => {
|
|
3156
|
+
let s = (c) => l.replace("{}", String(c + 1).padStart(r, "0")), i = $o(a, ".zip") || "archive", u = new Et(i);
|
|
3129
3157
|
await Promise.all(
|
|
3130
3158
|
e.map(async (c, d) => {
|
|
3131
3159
|
let b = s(d);
|
|
@@ -3135,12 +3163,12 @@ const eo = (e, t, o, n) => {
|
|
|
3135
3163
|
}, Xo = (e, t) => {
|
|
3136
3164
|
const o = window.URL.createObjectURL(t), n = document.createElement("a");
|
|
3137
3165
|
n.style.display = "none", n.href = o, n.setAttribute("download", e), typeof n.download > "u" && n.setAttribute("target", "_blank"), document.body.appendChild(n), n.click(), document.body.removeChild(n), setTimeout(() => window.URL.revokeObjectURL(o), 100);
|
|
3138
|
-
},
|
|
3166
|
+
}, wa = (e, t, o) => e.map((n) => {
|
|
3139
3167
|
if (t == 1 && !o)
|
|
3140
3168
|
return n.canvas;
|
|
3141
3169
|
let a = document.createElement("canvas"), l = a.getContext("2d"), r = n.canvas ? n.canvas : n;
|
|
3142
3170
|
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;
|
|
3143
|
-
}),
|
|
3171
|
+
}), ka = { asBuffer: va, asDownload: ba, asZipDownload: ya, atScale: wa, options: ga }, { asBuffer: Kt, asDownload: Ca, asZipDownload: Ta, atScale: Gt, options: jt } = ka, po = Symbol.for("toDataURL"), _a = (e) => new Promise(
|
|
3144
3172
|
(t, o) => Object.assign(new Zo(), {
|
|
3145
3173
|
crossOrigin: "Anonymous",
|
|
3146
3174
|
onload: t,
|
|
@@ -3148,7 +3176,7 @@ const eo = (e, t, o, n) => {
|
|
|
3148
3176
|
src: e
|
|
3149
3177
|
})
|
|
3150
3178
|
);
|
|
3151
|
-
let
|
|
3179
|
+
let Ia = class {
|
|
3152
3180
|
constructor(t, o) {
|
|
3153
3181
|
let n = document.createElement("canvas"), a = [];
|
|
3154
3182
|
Object.defineProperty(n, "async", {
|
|
@@ -3177,7 +3205,7 @@ let Ta = class {
|
|
|
3177
3205
|
saveAs(s, i) {
|
|
3178
3206
|
i = typeof i == "number" ? { quality: i } : i;
|
|
3179
3207
|
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 ?
|
|
3208
|
+
return d == null ? Ca(h[0], b, f, M, s) : Ta(
|
|
3181
3209
|
h,
|
|
3182
3210
|
b,
|
|
3183
3211
|
f,
|
|
@@ -3202,40 +3230,40 @@ let Ta = class {
|
|
|
3202
3230
|
}
|
|
3203
3231
|
};
|
|
3204
3232
|
const {
|
|
3205
|
-
CanvasRenderingContext2D:
|
|
3206
|
-
CanvasGradient:
|
|
3207
|
-
CanvasPattern:
|
|
3233
|
+
CanvasRenderingContext2D: xa,
|
|
3234
|
+
CanvasGradient: Na,
|
|
3235
|
+
CanvasPattern: Sa,
|
|
3208
3236
|
Image: Zo,
|
|
3209
|
-
ImageData:
|
|
3210
|
-
Path2D:
|
|
3211
|
-
DOMMatrix:
|
|
3212
|
-
DOMRect:
|
|
3213
|
-
DOMPoint:
|
|
3214
|
-
} = window,
|
|
3215
|
-
Canvas:
|
|
3216
|
-
loadImage:
|
|
3217
|
-
CanvasRenderingContext2D:
|
|
3218
|
-
CanvasGradient:
|
|
3219
|
-
CanvasPattern:
|
|
3237
|
+
ImageData: Va,
|
|
3238
|
+
Path2D: Ma,
|
|
3239
|
+
DOMMatrix: Pa,
|
|
3240
|
+
DOMRect: Aa,
|
|
3241
|
+
DOMPoint: Ea
|
|
3242
|
+
} = window, Ba = {
|
|
3243
|
+
Canvas: Ia,
|
|
3244
|
+
loadImage: _a,
|
|
3245
|
+
CanvasRenderingContext2D: xa,
|
|
3246
|
+
CanvasGradient: Na,
|
|
3247
|
+
CanvasPattern: Sa,
|
|
3220
3248
|
Image: Zo,
|
|
3221
|
-
ImageData:
|
|
3222
|
-
Path2D:
|
|
3223
|
-
DOMMatrix:
|
|
3224
|
-
DOMRect:
|
|
3225
|
-
DOMPoint:
|
|
3226
|
-
},
|
|
3249
|
+
ImageData: Va,
|
|
3250
|
+
Path2D: Ma,
|
|
3251
|
+
DOMMatrix: Pa,
|
|
3252
|
+
DOMRect: Aa,
|
|
3253
|
+
DOMPoint: Ea
|
|
3254
|
+
}, rt = (e, t, o = {}, n = o) => {
|
|
3227
3255
|
if (Array.isArray(t))
|
|
3228
|
-
t.forEach((a) =>
|
|
3256
|
+
t.forEach((a) => rt(e, a, o, n));
|
|
3229
3257
|
else if (typeof t == "function")
|
|
3230
|
-
t(e, o, n,
|
|
3258
|
+
t(e, o, n, rt);
|
|
3231
3259
|
else {
|
|
3232
3260
|
const a = Object.keys(t)[0];
|
|
3233
|
-
Array.isArray(t[a]) ? (n[a] = {},
|
|
3261
|
+
Array.isArray(t[a]) ? (n[a] = {}, rt(e, t[a], o, n[a])) : n[a] = t[a](e, o, n, rt);
|
|
3234
3262
|
}
|
|
3235
3263
|
return o;
|
|
3236
3264
|
}, Ze = (e, t) => (o, n, a, l) => {
|
|
3237
3265
|
t(o, n, a) && l(o, e, n, a);
|
|
3238
|
-
},
|
|
3266
|
+
}, La = (e, t) => (o, n, a, l) => {
|
|
3239
3267
|
const r = [];
|
|
3240
3268
|
let s = o.pos;
|
|
3241
3269
|
for (; t(o, n, a); ) {
|
|
@@ -3245,10 +3273,10 @@ const {
|
|
|
3245
3273
|
s = o.pos, r.push(i);
|
|
3246
3274
|
}
|
|
3247
3275
|
return r;
|
|
3248
|
-
},
|
|
3276
|
+
}, Fa = (e) => ({
|
|
3249
3277
|
data: e,
|
|
3250
3278
|
pos: 0
|
|
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(""),
|
|
3279
|
+
}), 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(""), ze = (e) => (t) => {
|
|
3252
3280
|
const o = Oe(2)(t);
|
|
3253
3281
|
return e ? (o[1] << 8) + o[0] : (o[0] << 8) + o[1];
|
|
3254
3282
|
}, Jo = (e, t) => (o, n, a) => {
|
|
@@ -3256,7 +3284,7 @@ const {
|
|
|
3256
3284
|
for (var i = 0; i < l; i++)
|
|
3257
3285
|
s[i] = r(o);
|
|
3258
3286
|
return s;
|
|
3259
|
-
},
|
|
3287
|
+
}, Da = (e, t, o) => {
|
|
3260
3288
|
for (var n = 0, a = 0; a < o; a++)
|
|
3261
3289
|
n += e[t + a] && 2 ** (o - a - 1);
|
|
3262
3290
|
return n;
|
|
@@ -3266,7 +3294,7 @@ const {
|
|
|
3266
3294
|
n[7 - a] = !!(o & 1 << a);
|
|
3267
3295
|
return Object.keys(e).reduce((l, r) => {
|
|
3268
3296
|
const s = e[r];
|
|
3269
|
-
return s.length ? l[r] =
|
|
3297
|
+
return s.length ? l[r] = Da(n, s.index, s.length) : l[r] = n[s.index], l;
|
|
3270
3298
|
}, {});
|
|
3271
3299
|
};
|
|
3272
3300
|
var Lt = {
|
|
@@ -3286,7 +3314,7 @@ var Lt = {
|
|
|
3286
3314
|
return r;
|
|
3287
3315
|
}
|
|
3288
3316
|
};
|
|
3289
|
-
const
|
|
3317
|
+
const Oa = Ze(
|
|
3290
3318
|
{
|
|
3291
3319
|
gce: [
|
|
3292
3320
|
{ codes: Oe(2) },
|
|
@@ -3299,7 +3327,7 @@ const Da = Ze(
|
|
|
3299
3327
|
transparentColorGiven: { index: 7 }
|
|
3300
3328
|
})
|
|
3301
3329
|
},
|
|
3302
|
-
{ delay:
|
|
3330
|
+
{ delay: ze(!0) },
|
|
3303
3331
|
{ transparentColorIndex: Pe() },
|
|
3304
3332
|
{ terminator: Pe() }
|
|
3305
3333
|
]
|
|
@@ -3308,16 +3336,16 @@ const Da = Ze(
|
|
|
3308
3336
|
var t = Bt(2)(e);
|
|
3309
3337
|
return t[0] === 33 && t[1] === 249;
|
|
3310
3338
|
}
|
|
3311
|
-
),
|
|
3339
|
+
), Ua = Ze(
|
|
3312
3340
|
{
|
|
3313
3341
|
image: [
|
|
3314
3342
|
{ code: Pe() },
|
|
3315
3343
|
{
|
|
3316
3344
|
descriptor: [
|
|
3317
|
-
{ left:
|
|
3318
|
-
{ top:
|
|
3319
|
-
{ width:
|
|
3320
|
-
{ height:
|
|
3345
|
+
{ left: ze(!0) },
|
|
3346
|
+
{ top: ze(!0) },
|
|
3347
|
+
{ width: ze(!0) },
|
|
3348
|
+
{ height: ze(!0) },
|
|
3321
3349
|
{
|
|
3322
3350
|
lct: to({
|
|
3323
3351
|
exists: { index: 0 },
|
|
@@ -3339,7 +3367,7 @@ const Da = Ze(
|
|
|
3339
3367
|
]
|
|
3340
3368
|
},
|
|
3341
3369
|
(e) => Qo()(e) === 44
|
|
3342
|
-
),
|
|
3370
|
+
), Ra = Ze(
|
|
3343
3371
|
{
|
|
3344
3372
|
text: [
|
|
3345
3373
|
{ codes: Oe(2) },
|
|
@@ -3354,7 +3382,7 @@ const Da = Ze(
|
|
|
3354
3382
|
var t = Bt(2)(e);
|
|
3355
3383
|
return t[0] === 33 && t[1] === 1;
|
|
3356
3384
|
}
|
|
3357
|
-
),
|
|
3385
|
+
), Ka = Ze(
|
|
3358
3386
|
{
|
|
3359
3387
|
application: [
|
|
3360
3388
|
{ codes: Oe(2) },
|
|
@@ -3367,7 +3395,7 @@ const Da = Ze(
|
|
|
3367
3395
|
var t = Bt(2)(e);
|
|
3368
3396
|
return t[0] === 33 && t[1] === 255;
|
|
3369
3397
|
}
|
|
3370
|
-
),
|
|
3398
|
+
), Ga = Ze(
|
|
3371
3399
|
{
|
|
3372
3400
|
comment: [{ codes: Oe(2) }, Lt]
|
|
3373
3401
|
},
|
|
@@ -3375,12 +3403,12 @@ const Da = Ze(
|
|
|
3375
3403
|
var t = Bt(2)(e);
|
|
3376
3404
|
return t[0] === 33 && t[1] === 254;
|
|
3377
3405
|
}
|
|
3378
|
-
),
|
|
3406
|
+
), ja = [
|
|
3379
3407
|
{ header: [{ signature: qt(3) }, { version: qt(3) }] },
|
|
3380
3408
|
{
|
|
3381
3409
|
lsd: [
|
|
3382
|
-
{ width:
|
|
3383
|
-
{ height:
|
|
3410
|
+
{ width: ze(!0) },
|
|
3411
|
+
{ height: ze(!0) },
|
|
3384
3412
|
{
|
|
3385
3413
|
gct: to({
|
|
3386
3414
|
exists: { index: 0 },
|
|
@@ -3404,15 +3432,15 @@ const Da = Ze(
|
|
|
3404
3432
|
),
|
|
3405
3433
|
// content frames
|
|
3406
3434
|
{
|
|
3407
|
-
frames:
|
|
3408
|
-
[
|
|
3435
|
+
frames: La(
|
|
3436
|
+
[Oa, Ka, Ga, Ua, Ra],
|
|
3409
3437
|
(e) => {
|
|
3410
3438
|
var t = Qo()(e);
|
|
3411
3439
|
return t === 33 || t === 44;
|
|
3412
3440
|
}
|
|
3413
3441
|
)
|
|
3414
3442
|
}
|
|
3415
|
-
],
|
|
3443
|
+
], Wa = (e, t) => {
|
|
3416
3444
|
const o = new Array(e.length), n = e.length / t, a = function(c, d) {
|
|
3417
3445
|
const b = e.slice(d * t, (d + 1) * t);
|
|
3418
3446
|
o.splice.apply(o, [c * t, t].concat(b));
|
|
@@ -3421,15 +3449,15 @@ const Da = Ze(
|
|
|
3421
3449
|
for (var u = l[i]; u < n; u += r[i])
|
|
3422
3450
|
a(u, s), s++;
|
|
3423
3451
|
return o;
|
|
3424
|
-
},
|
|
3452
|
+
}, Ha = (e, t, o) => {
|
|
3425
3453
|
const l = o;
|
|
3426
|
-
var r, s, i, u, c, d, b, C, f, M, p, E, _,
|
|
3454
|
+
var r, s, i, u, c, d, b, C, f, M, p, E, _, I, j, N;
|
|
3427
3455
|
const T = new Array(o), h = new Array(4096), y = new Array(4096), g = new Array(4096 + 1);
|
|
3428
3456
|
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++)
|
|
3429
3457
|
h[f] = 0, y[f] = f;
|
|
3430
|
-
var p, C, _,
|
|
3431
|
-
for (p = C = _ =
|
|
3432
|
-
if (
|
|
3458
|
+
var p, C, _, I, N, j;
|
|
3459
|
+
for (p = C = _ = I = N = j = 0, M = 0; M < l; ) {
|
|
3460
|
+
if (I === 0) {
|
|
3433
3461
|
if (C < u) {
|
|
3434
3462
|
p += t[j] << C, C += 8, j++;
|
|
3435
3463
|
continue;
|
|
@@ -3441,36 +3469,36 @@ const Da = Ze(
|
|
|
3441
3469
|
continue;
|
|
3442
3470
|
}
|
|
3443
3471
|
if (b == -1) {
|
|
3444
|
-
g[
|
|
3472
|
+
g[I++] = y[f], b = f, _ = f;
|
|
3445
3473
|
continue;
|
|
3446
3474
|
}
|
|
3447
|
-
for (d = f, f == r && (g[
|
|
3448
|
-
g[
|
|
3449
|
-
_ = y[f] & 255, g[
|
|
3475
|
+
for (d = f, f == r && (g[I++] = _, f = b); f > s; )
|
|
3476
|
+
g[I++] = y[f], f = h[f];
|
|
3477
|
+
_ = y[f] & 255, g[I++] = _, r < 4096 && (h[r] = b, y[r] = _, r++, !(r & i) && r < 4096 && (u++, i += r)), b = d;
|
|
3450
3478
|
}
|
|
3451
|
-
|
|
3479
|
+
I--, T[N++] = g[I], M++;
|
|
3452
3480
|
}
|
|
3453
3481
|
for (M = N; M < l; M++)
|
|
3454
3482
|
T[M] = 0;
|
|
3455
3483
|
return T;
|
|
3456
|
-
},
|
|
3484
|
+
}, qa = (e) => {
|
|
3457
3485
|
const t = new Uint8Array(e);
|
|
3458
|
-
return
|
|
3459
|
-
},
|
|
3486
|
+
return rt(Fa(t), ja);
|
|
3487
|
+
}, za = (e) => {
|
|
3460
3488
|
const t = e.pixels.length, o = new Uint8ClampedArray(t * 4);
|
|
3461
3489
|
for (var n = 0; n < t; n++) {
|
|
3462
3490
|
const a = n * 4, l = e.pixels[n], r = e.colorTable[l];
|
|
3463
3491
|
o[a] = r[0], o[a + 1] = r[1], o[a + 2] = r[2], o[a + 3] = l !== e.transparentIndex ? 255 : 0;
|
|
3464
3492
|
}
|
|
3465
3493
|
return o;
|
|
3466
|
-
},
|
|
3494
|
+
}, $a = (e, t, o) => {
|
|
3467
3495
|
if (!e.image) {
|
|
3468
3496
|
console.warn("gif frame does not have associated image.");
|
|
3469
3497
|
return;
|
|
3470
3498
|
}
|
|
3471
3499
|
const { image: n } = e, a = n.descriptor.width * n.descriptor.height;
|
|
3472
|
-
var l =
|
|
3473
|
-
n.descriptor.lct.interlaced && (l =
|
|
3500
|
+
var l = Ha(n.data.minCodeSize, n.data.blocks, a);
|
|
3501
|
+
n.descriptor.lct.interlaced && (l = Wa(l, n.descriptor.width));
|
|
3474
3502
|
const r = {
|
|
3475
3503
|
pixels: l,
|
|
3476
3504
|
dims: {
|
|
@@ -3480,49 +3508,49 @@ const Da = Ze(
|
|
|
3480
3508
|
height: e.image.descriptor.height
|
|
3481
3509
|
}
|
|
3482
3510
|
};
|
|
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 =
|
|
3484
|
-
},
|
|
3485
|
-
function
|
|
3511
|
+
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 = za(r)), r;
|
|
3512
|
+
}, Xa = (e, t) => e.frames.filter((o) => o.image).map((o) => $a(o, e.gct, t));
|
|
3513
|
+
function Za(e, t, o) {
|
|
3486
3514
|
const n = Yo(t), a = e - 1;
|
|
3487
3515
|
let l = 0;
|
|
3488
3516
|
switch (o) {
|
|
3489
3517
|
case Ie.L:
|
|
3490
|
-
l =
|
|
3518
|
+
l = De[a][0];
|
|
3491
3519
|
break;
|
|
3492
3520
|
case Ie.M:
|
|
3493
|
-
l =
|
|
3521
|
+
l = De[a][1];
|
|
3494
3522
|
break;
|
|
3495
3523
|
case Ie.Q:
|
|
3496
|
-
l =
|
|
3524
|
+
l = De[a][2];
|
|
3497
3525
|
break;
|
|
3498
3526
|
case Ie.H:
|
|
3499
|
-
l =
|
|
3527
|
+
l = De[a][3];
|
|
3500
3528
|
break;
|
|
3501
3529
|
}
|
|
3502
3530
|
return n <= l;
|
|
3503
3531
|
}
|
|
3504
|
-
function
|
|
3505
|
-
for (var o = 1, n = Yo(e), a = 0, l =
|
|
3532
|
+
function Qa(e, t) {
|
|
3533
|
+
for (var o = 1, n = Yo(e), a = 0, l = De.length; a < l; a++) {
|
|
3506
3534
|
var r = 0;
|
|
3507
3535
|
switch (t) {
|
|
3508
3536
|
case Ie.L:
|
|
3509
|
-
r =
|
|
3537
|
+
r = De[a][0];
|
|
3510
3538
|
break;
|
|
3511
3539
|
case Ie.M:
|
|
3512
|
-
r =
|
|
3540
|
+
r = De[a][1];
|
|
3513
3541
|
break;
|
|
3514
3542
|
case Ie.Q:
|
|
3515
|
-
r =
|
|
3543
|
+
r = De[a][2];
|
|
3516
3544
|
break;
|
|
3517
3545
|
case Ie.H:
|
|
3518
|
-
r =
|
|
3546
|
+
r = De[a][3];
|
|
3519
3547
|
break;
|
|
3520
3548
|
}
|
|
3521
3549
|
if (n <= r)
|
|
3522
3550
|
break;
|
|
3523
3551
|
o++;
|
|
3524
3552
|
}
|
|
3525
|
-
if (o >
|
|
3553
|
+
if (o > De.length)
|
|
3526
3554
|
throw new Error("Too long data");
|
|
3527
3555
|
return o;
|
|
3528
3556
|
}
|
|
@@ -3530,7 +3558,7 @@ function Yo(e) {
|
|
|
3530
3558
|
var t = encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
|
|
3531
3559
|
return t.length + (t.length != Number(e) ? 3 : 0);
|
|
3532
3560
|
}
|
|
3533
|
-
class
|
|
3561
|
+
class Ja {
|
|
3534
3562
|
constructor(t) {
|
|
3535
3563
|
this.mode = Me.MODE_8BIT_BYTE, this.parsedData = [], this.data = t;
|
|
3536
3564
|
const o = [];
|
|
@@ -3554,14 +3582,14 @@ class He {
|
|
|
3554
3582
|
}
|
|
3555
3583
|
addData(t) {
|
|
3556
3584
|
if (this.typeNumber <= 0)
|
|
3557
|
-
this.typeNumber =
|
|
3585
|
+
this.typeNumber = Qa(t, this.errorCorrectLevel);
|
|
3558
3586
|
else {
|
|
3559
3587
|
if (this.typeNumber > 40)
|
|
3560
3588
|
throw new Error(`Invalid QR version: ${this.typeNumber}`);
|
|
3561
|
-
if (!
|
|
3589
|
+
if (!Za(this.typeNumber, t, this.errorCorrectLevel))
|
|
3562
3590
|
throw new Error(`Data is too long for QR version: ${this.typeNumber}`);
|
|
3563
3591
|
}
|
|
3564
|
-
const o = new
|
|
3592
|
+
const o = new Ja(t);
|
|
3565
3593
|
this.dataList.push(o), this.dataCache = void 0;
|
|
3566
3594
|
}
|
|
3567
3595
|
isDark(t, o) {
|
|
@@ -3657,7 +3685,7 @@ class He {
|
|
|
3657
3685
|
}
|
|
3658
3686
|
}
|
|
3659
3687
|
static createData(t, o, n) {
|
|
3660
|
-
const a = Ke.getRSBlocks(t, o), l = new
|
|
3688
|
+
const a = Ke.getRSBlocks(t, o), l = new Ya();
|
|
3661
3689
|
for (var r = 0; r < n.length; r++) {
|
|
3662
3690
|
const i = n[r];
|
|
3663
3691
|
l.put(i.mode, 4), l.put(i.getLength(), se.getLengthInBits(i.mode, t)), i.write(l);
|
|
@@ -4137,7 +4165,7 @@ Ke.RS_BLOCK_TABLE = [
|
|
|
4137
4165
|
[34, 54, 24, 34, 55, 25],
|
|
4138
4166
|
[20, 45, 15, 61, 46, 16]
|
|
4139
4167
|
];
|
|
4140
|
-
class
|
|
4168
|
+
class Ya {
|
|
4141
4169
|
constructor() {
|
|
4142
4170
|
this.buffer = [], this.length = 0;
|
|
4143
4171
|
}
|
|
@@ -4157,7 +4185,7 @@ class Qa {
|
|
|
4157
4185
|
this.buffer.length <= o && this.buffer.push(0), t && (this.buffer[o] |= 128 >>> this.length % 8), this.length++;
|
|
4158
4186
|
}
|
|
4159
4187
|
}
|
|
4160
|
-
const
|
|
4188
|
+
const De = [
|
|
4161
4189
|
[17, 14, 11, 7],
|
|
4162
4190
|
[32, 26, 20, 14],
|
|
4163
4191
|
[53, 42, 32, 24],
|
|
@@ -4199,8 +4227,8 @@ const Fe = [
|
|
|
4199
4227
|
[2809, 2213, 1579, 1219],
|
|
4200
4228
|
[2953, 2331, 1663, 1273]
|
|
4201
4229
|
];
|
|
4202
|
-
var
|
|
4203
|
-
function
|
|
4230
|
+
var el = 100, be = 256, go = be - 1, We = 4, en = 16, oo = 1 << en, tn = 10, no = 10, tl = oo >> no, ol = oo << tn - no, nl = be >> 3, zt = 6, al = 1 << zt, ll = nl * al, rl = 30, on = 10, ft = 1 << on, nn = 8, vo = 1 << nn, il = on + nn, Je = 1 << il, bo = 499, yo = 491, wo = 487, an = 503, sl = 3 * an;
|
|
4231
|
+
function ul(e, t) {
|
|
4204
4232
|
var o, n, a, l, r;
|
|
4205
4233
|
function s() {
|
|
4206
4234
|
o = [], n = new Int32Array(256), a = new Int32Array(be), l = new Int32Array(be), r = new Int32Array(be >> 3);
|
|
@@ -4213,47 +4241,47 @@ function il(e, t) {
|
|
|
4213
4241
|
o[h][0] >>= We, o[h][1] >>= We, o[h][2] >>= We, o[h][3] = h;
|
|
4214
4242
|
}
|
|
4215
4243
|
function u(h, y, g, p, C) {
|
|
4216
|
-
o[y][0] -= h * (o[y][0] - g) /
|
|
4244
|
+
o[y][0] -= h * (o[y][0] - g) / ft, o[y][1] -= h * (o[y][1] - p) / ft, o[y][2] -= h * (o[y][2] - C) / ft;
|
|
4217
4245
|
}
|
|
4218
4246
|
function c(h, y, g, p, C) {
|
|
4219
|
-
for (var _ = Math.abs(y - h),
|
|
4220
|
-
ne = r[
|
|
4247
|
+
for (var _ = Math.abs(y - h), I = Math.min(y + h, be), N = y + 1, j = y - 1, te = 1, k, ne; N < I || j > _; )
|
|
4248
|
+
ne = r[te++], N < I && (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);
|
|
4221
4249
|
}
|
|
4222
4250
|
function d(h, y, g) {
|
|
4223
|
-
var p = 2147483647, C = p, _ = -1,
|
|
4251
|
+
var p = 2147483647, C = p, _ = -1, I = _, N, j, te, k, ne;
|
|
4224
4252
|
for (N = 0; N < be; N++)
|
|
4225
|
-
j = o[N],
|
|
4226
|
-
return l[_] +=
|
|
4253
|
+
j = o[N], te = Math.abs(j[0] - h) + Math.abs(j[1] - y) + Math.abs(j[2] - g), te < p && (p = te, _ = N), k = te - (a[N] >> en - We), k < C && (C = k, I = N), ne = l[N] >> no, l[N] -= ne, a[N] += ne << tn;
|
|
4254
|
+
return l[_] += tl, a[_] -= ol, I;
|
|
4227
4255
|
}
|
|
4228
4256
|
function b() {
|
|
4229
|
-
var h, y, g, p, C, _,
|
|
4257
|
+
var h, y, g, p, C, _, I = 0, N = 0;
|
|
4230
4258
|
for (h = 0; h < be; h++) {
|
|
4231
4259
|
for (g = o[h], C = h, _ = g[1], y = h + 1; y < be; y++)
|
|
4232
4260
|
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), _ !=
|
|
4234
|
-
for (n[
|
|
4261
|
+
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), _ != I) {
|
|
4262
|
+
for (n[I] = N + h >> 1, y = I + 1; y < _; y++)
|
|
4235
4263
|
n[y] = h;
|
|
4236
|
-
|
|
4264
|
+
I = _, N = h;
|
|
4237
4265
|
}
|
|
4238
4266
|
}
|
|
4239
|
-
for (n[
|
|
4267
|
+
for (n[I] = N + go >> 1, y = I + 1; y < 256; y++)
|
|
4240
4268
|
n[y] = go;
|
|
4241
4269
|
}
|
|
4242
4270
|
function f(h, y, g) {
|
|
4243
|
-
for (var p, C, _,
|
|
4244
|
-
j < be && (C = o[j], _ = C[1] - y, _ >=
|
|
4271
|
+
for (var p, C, _, I = 1e3, N = -1, j = n[y], te = j - 1; j < be || te >= 0; )
|
|
4272
|
+
j < be && (C = o[j], _ = C[1] - y, _ >= I ? j = be : (j++, _ < 0 && (_ = -_), p = C[0] - h, p < 0 && (p = -p), _ += p, _ < I && (p = C[2] - g, p < 0 && (p = -p), _ += p, _ < I && (I = _, N = C[3])))), te >= 0 && (C = o[te], _ = y - C[1], _ >= I ? te = -1 : (te--, _ < 0 && (_ = -_), p = C[0] - h, p < 0 && (p = -p), _ += p, _ < I && (p = C[2] - g, p < 0 && (p = -p), _ += p, _ < I && (I = _, N = C[3]))));
|
|
4245
4273
|
return N;
|
|
4246
4274
|
}
|
|
4247
4275
|
function M() {
|
|
4248
|
-
var h, y = e.length, g = 30 + (t - 1) / 3, p = y / (3 * t), C = ~~(p /
|
|
4276
|
+
var h, y = e.length, g = 30 + (t - 1) / 3, p = y / (3 * t), C = ~~(p / el), _ = ft, I = ll, N = I >> zt;
|
|
4249
4277
|
for (N <= 1 && (N = 0), h = 0; h < N; h++)
|
|
4250
4278
|
r[h] = _ * ((N * N - h * h) * vo / (N * N));
|
|
4251
4279
|
var j;
|
|
4252
|
-
y <
|
|
4253
|
-
var
|
|
4280
|
+
y < sl ? (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;
|
|
4281
|
+
var te, k, ne, O, oe = 0;
|
|
4254
4282
|
for (h = 0; h < p; )
|
|
4255
|
-
if (
|
|
4256
|
-
for (_ -= _ / g,
|
|
4283
|
+
if (te = (e[oe] & 255) << We, k = (e[oe + 1] & 255) << We, ne = (e[oe + 2] & 255) << We, O = d(te, k, ne), u(_, O, te, k, ne), N !== 0 && c(N, O, te, k, ne), oe += j, oe >= y && (oe -= y), h++, C === 0 && (C = 1), h % C === 0)
|
|
4284
|
+
for (_ -= _ / g, I -= I / rl, N = I >> zt, N <= 1 && (N = 0), O = 0; O < N; O++)
|
|
4257
4285
|
r[O] = _ * ((N * N - O * O) * vo / (N * N));
|
|
4258
4286
|
}
|
|
4259
4287
|
function E() {
|
|
@@ -4271,7 +4299,7 @@ function il(e, t) {
|
|
|
4271
4299
|
}
|
|
4272
4300
|
this.getColormap = T, this.lookupRGB = f;
|
|
4273
4301
|
}
|
|
4274
|
-
var ko = -1,
|
|
4302
|
+
var ko = -1, ht = 12, at = 5003, cl = [
|
|
4275
4303
|
0,
|
|
4276
4304
|
1,
|
|
4277
4305
|
3,
|
|
@@ -4290,48 +4318,48 @@ var ko = -1, ft = 12, nt = 5003, sl = [
|
|
|
4290
4318
|
32767,
|
|
4291
4319
|
65535
|
|
4292
4320
|
];
|
|
4293
|
-
function
|
|
4294
|
-
var a = Math.max(2, n), l = new Uint8Array(256), r = new Int32Array(
|
|
4295
|
-
function p(O,
|
|
4296
|
-
l[c++] = O, c >= 254 && j(
|
|
4321
|
+
function dl(e, t, o, n) {
|
|
4322
|
+
var a = Math.max(2, n), l = new Uint8Array(256), r = new Int32Array(at), s = new Int32Array(at), i, u = 0, c, d = 0, b, f = !1, M, E, T, h, y, g;
|
|
4323
|
+
function p(O, oe) {
|
|
4324
|
+
l[c++] = O, c >= 254 && j(oe);
|
|
4297
4325
|
}
|
|
4298
4326
|
function C(O) {
|
|
4299
|
-
_(
|
|
4327
|
+
_(at), d = E + 2, f = !0, ne(E, O);
|
|
4300
4328
|
}
|
|
4301
4329
|
function _(O) {
|
|
4302
|
-
for (var
|
|
4303
|
-
r[
|
|
4330
|
+
for (var oe = 0; oe < O; ++oe)
|
|
4331
|
+
r[oe] = -1;
|
|
4304
4332
|
}
|
|
4305
|
-
function
|
|
4306
|
-
var L, Ae, ue, Ce, Ve,
|
|
4307
|
-
for (M = O, f = !1, g = M, b =
|
|
4333
|
+
function I(O, oe) {
|
|
4334
|
+
var L, Ae, ue, Ce, Ve, x, U;
|
|
4335
|
+
for (M = O, f = !1, g = M, b = te(g), E = 1 << O - 1, T = E + 1, d = E + 2, c = 0, Ce = k(), U = 0, L = at; L < 65536; L *= 2)
|
|
4308
4336
|
++U;
|
|
4309
|
-
U = 8 - U,
|
|
4337
|
+
U = 8 - U, x = at, _(x), ne(E, oe);
|
|
4310
4338
|
e:
|
|
4311
4339
|
for (; (Ae = k()) != ko; ) {
|
|
4312
|
-
if (L = (Ae <<
|
|
4340
|
+
if (L = (Ae << ht) + Ce, ue = Ae << U ^ Ce, r[ue] === L) {
|
|
4313
4341
|
Ce = s[ue];
|
|
4314
4342
|
continue;
|
|
4315
4343
|
} else if (r[ue] >= 0) {
|
|
4316
|
-
Ve =
|
|
4344
|
+
Ve = x - ue, ue === 0 && (Ve = 1);
|
|
4317
4345
|
do
|
|
4318
|
-
if ((ue -= Ve) < 0 && (ue +=
|
|
4346
|
+
if ((ue -= Ve) < 0 && (ue += x), r[ue] === L) {
|
|
4319
4347
|
Ce = s[ue];
|
|
4320
4348
|
continue e;
|
|
4321
4349
|
}
|
|
4322
4350
|
while (r[ue] >= 0);
|
|
4323
4351
|
}
|
|
4324
|
-
ne(Ce,
|
|
4352
|
+
ne(Ce, oe), Ce = Ae, d < 1 << ht ? (s[ue] = d++, r[ue] = L) : C(oe);
|
|
4325
4353
|
}
|
|
4326
|
-
ne(Ce,
|
|
4354
|
+
ne(Ce, oe), ne(T, oe);
|
|
4327
4355
|
}
|
|
4328
4356
|
function N(O) {
|
|
4329
|
-
O.writeByte(a), h = e * t, y = 0,
|
|
4357
|
+
O.writeByte(a), h = e * t, y = 0, I(a + 1, O), O.writeByte(0);
|
|
4330
4358
|
}
|
|
4331
4359
|
function j(O) {
|
|
4332
4360
|
c > 0 && (O.writeByte(c), O.writeBytes(l, 0, c), c = 0);
|
|
4333
4361
|
}
|
|
4334
|
-
function
|
|
4362
|
+
function te(O) {
|
|
4335
4363
|
return (1 << O) - 1;
|
|
4336
4364
|
}
|
|
4337
4365
|
function k() {
|
|
@@ -4341,34 +4369,34 @@ function ul(e, t, o, n) {
|
|
|
4341
4369
|
var O = o[y++];
|
|
4342
4370
|
return O & 255;
|
|
4343
4371
|
}
|
|
4344
|
-
function ne(O,
|
|
4345
|
-
for (i &=
|
|
4346
|
-
p(i & 255,
|
|
4347
|
-
if ((d > b || f) && (f ? (b =
|
|
4372
|
+
function ne(O, oe) {
|
|
4373
|
+
for (i &= cl[u], u > 0 ? i |= O << u : i = O, u += g; u >= 8; )
|
|
4374
|
+
p(i & 255, oe), i >>= 8, u -= 8;
|
|
4375
|
+
if ((d > b || f) && (f ? (b = te(g = M), f = !1) : (++g, g == ht ? b = 1 << ht : b = te(g))), O == T) {
|
|
4348
4376
|
for (; u > 0; )
|
|
4349
|
-
p(i & 255,
|
|
4350
|
-
j(
|
|
4377
|
+
p(i & 255, oe), i >>= 8, u -= 8;
|
|
4378
|
+
j(oe);
|
|
4351
4379
|
}
|
|
4352
4380
|
}
|
|
4353
4381
|
this.encode = N;
|
|
4354
4382
|
}
|
|
4355
|
-
function
|
|
4383
|
+
function Ne() {
|
|
4356
4384
|
this.page = -1, this.pages = [], this.newPage();
|
|
4357
4385
|
}
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
for (var
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
this.pages[++this.page] = new Uint8Array(
|
|
4386
|
+
Ne.pageSize = 4096;
|
|
4387
|
+
Ne.charMap = {};
|
|
4388
|
+
for (var pt = 0; pt < 256; pt++)
|
|
4389
|
+
Ne.charMap[pt] = String.fromCharCode(pt);
|
|
4390
|
+
Ne.prototype.newPage = function() {
|
|
4391
|
+
this.pages[++this.page] = new Uint8Array(Ne.pageSize), this.cursor = 0;
|
|
4364
4392
|
};
|
|
4365
|
-
|
|
4393
|
+
Ne.prototype.getData = function() {
|
|
4366
4394
|
for (var e = "", t = 0; t < this.pages.length; t++)
|
|
4367
|
-
for (var o = 0; o <
|
|
4368
|
-
e +=
|
|
4395
|
+
for (var o = 0; o < Ne.pageSize; o++)
|
|
4396
|
+
e += Ne.charMap[this.pages[t][o]];
|
|
4369
4397
|
return e;
|
|
4370
4398
|
};
|
|
4371
|
-
|
|
4399
|
+
Ne.prototype.toFlattenUint8Array = function() {
|
|
4372
4400
|
const e = [];
|
|
4373
4401
|
for (var t = 0; t < this.pages.length; t++)
|
|
4374
4402
|
if (t === this.pages.length - 1) {
|
|
@@ -4379,19 +4407,19 @@ xe.prototype.toFlattenUint8Array = function() {
|
|
|
4379
4407
|
const o = new Uint8Array(e.reduce((n, a) => n + a.length, 0));
|
|
4380
4408
|
return e.reduce((n, a) => (o.set(a, n), n + a.length), 0), o;
|
|
4381
4409
|
};
|
|
4382
|
-
|
|
4383
|
-
this.cursor >=
|
|
4410
|
+
Ne.prototype.writeByte = function(e) {
|
|
4411
|
+
this.cursor >= Ne.pageSize && this.newPage(), this.pages[this.page][this.cursor++] = e;
|
|
4384
4412
|
};
|
|
4385
|
-
|
|
4413
|
+
Ne.prototype.writeUTFBytes = function(e) {
|
|
4386
4414
|
for (var t = e.length, o = 0; o < t; o++)
|
|
4387
4415
|
this.writeByte(e.charCodeAt(o));
|
|
4388
4416
|
};
|
|
4389
|
-
|
|
4417
|
+
Ne.prototype.writeBytes = function(e, t, o) {
|
|
4390
4418
|
for (var n = o || e.length, a = t || 0; a < n; a++)
|
|
4391
4419
|
this.writeByte(e[a]);
|
|
4392
4420
|
};
|
|
4393
4421
|
function ce(e, t) {
|
|
4394
|
-
this.width = ~~e, this.height = ~~t, this.transparent = null, this.transIndex = 0, this.repeat = -1, this.delay = 0, this.image = null, this.pixels = null, this.indexedPixels = null, this.colorDepth = null, this.colorTab = null, this.neuQuant = null, this.usedEntry = new Array(), this.palSize = 7, this.dispose = -1, this.firstFrame = !0, this.sample = 10, this.dither = !1, this.globalPalette = !1, this.out = new
|
|
4422
|
+
this.width = ~~e, this.height = ~~t, this.transparent = null, this.transIndex = 0, this.repeat = -1, this.delay = 0, this.image = null, this.pixels = null, this.indexedPixels = null, this.colorDepth = null, this.colorTab = null, this.neuQuant = null, this.usedEntry = new Array(), this.palSize = 7, this.dispose = -1, this.firstFrame = !0, this.sample = 10, this.dither = !1, this.globalPalette = !1, this.out = new Ne();
|
|
4395
4423
|
}
|
|
4396
4424
|
ce.prototype.setDelay = function(e) {
|
|
4397
4425
|
this.delay = Math.round(e / 10);
|
|
@@ -4430,7 +4458,7 @@ ce.prototype.writeHeader = function() {
|
|
|
4430
4458
|
this.out.writeUTFBytes("GIF89a");
|
|
4431
4459
|
};
|
|
4432
4460
|
ce.prototype.analyzePixels = function() {
|
|
4433
|
-
this.colorTab || (this.neuQuant = new
|
|
4461
|
+
this.colorTab || (this.neuQuant = new ul(this.pixels, this.sample), this.neuQuant.buildColormap(), this.colorTab = this.neuQuant.getColormap()), this.dither ? this.ditherPixels(this.dither.replace("-serpentine", ""), this.dither.match(/-serpentine/) !== null) : this.indexPixels(), this.pixels = null, this.colorDepth = 8, this.palSize = 7, this.transparent !== null && (this.transIndex = this.findClosest(this.transparent, !0));
|
|
4434
4462
|
};
|
|
4435
4463
|
ce.prototype.indexPixels = function(e) {
|
|
4436
4464
|
var t = this.pixels.length / 3;
|
|
@@ -4486,11 +4514,11 @@ ce.prototype.ditherPixels = function(e, t) {
|
|
|
4486
4514
|
a = u * r + c;
|
|
4487
4515
|
var b = a * 3, f = s[b], M = s[b + 1], E = s[b + 2];
|
|
4488
4516
|
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,
|
|
4517
|
+
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, I = i == 1 ? n.length : 0; _ !== I; _ += i) {
|
|
4490
4518
|
var N = n[_][1], j = n[_][2];
|
|
4491
4519
|
if (N + c >= 0 && N + c < r && j + u >= 0 && j + u < l) {
|
|
4492
|
-
var
|
|
4493
|
-
b = a + N + j * r, b *= 3, s[b] = Math.max(0, Math.min(255, s[b] + g *
|
|
4520
|
+
var te = n[_][0];
|
|
4521
|
+
b = a + N + j * r, b *= 3, s[b] = Math.max(0, Math.min(255, s[b] + g * te)), s[b + 1] = Math.max(0, Math.min(255, s[b + 1] + p * te)), s[b + 2] = Math.max(0, Math.min(255, s[b + 2] + C * te));
|
|
4494
4522
|
}
|
|
4495
4523
|
}
|
|
4496
4524
|
}
|
|
@@ -4554,13 +4582,13 @@ ce.prototype.writeShort = function(e) {
|
|
|
4554
4582
|
this.out.writeByte(e & 255), this.out.writeByte(e >> 8 & 255);
|
|
4555
4583
|
};
|
|
4556
4584
|
ce.prototype.writePixels = function() {
|
|
4557
|
-
var e = new
|
|
4585
|
+
var e = new dl(this.width, this.height, this.indexedPixels, this.colorDepth);
|
|
4558
4586
|
e.encode(this.out);
|
|
4559
4587
|
};
|
|
4560
4588
|
ce.prototype.stream = function() {
|
|
4561
4589
|
return this.out;
|
|
4562
4590
|
};
|
|
4563
|
-
var
|
|
4591
|
+
var ml = globalThis && globalThis.__awaiter || function(e, t, o, n) {
|
|
4564
4592
|
function a(l) {
|
|
4565
4593
|
return l instanceof o ? l : new o(function(r) {
|
|
4566
4594
|
r(l);
|
|
@@ -4587,7 +4615,7 @@ var cl = globalThis && globalThis.__awaiter || function(e, t, o, n) {
|
|
|
4587
4615
|
u((n = n.apply(e, t || [])).next());
|
|
4588
4616
|
});
|
|
4589
4617
|
};
|
|
4590
|
-
const { Canvas: Ue } =
|
|
4618
|
+
const { Canvas: Ue } = Ba, gt = 0.4;
|
|
4591
4619
|
function Co(e) {
|
|
4592
4620
|
if (!e)
|
|
4593
4621
|
return;
|
|
@@ -4687,17 +4715,17 @@ class ae {
|
|
|
4687
4715
|
}
|
|
4688
4716
|
_draw() {
|
|
4689
4717
|
var t, o, n, a, l, r, s, i, u, c, d, b, f, M, E, T, h, y, g;
|
|
4690
|
-
return
|
|
4718
|
+
return ml(this, void 0, void 0, function* () {
|
|
4691
4719
|
const p = (t = this.qrCode) === null || t === void 0 ? void 0 : t.moduleCount, C = this.options.size;
|
|
4692
4720
|
let _ = this.options.margin;
|
|
4693
4721
|
(_ < 0 || _ * 2 >= C) && (_ = 0);
|
|
4694
|
-
const
|
|
4695
|
-
this._clear(), L.save(), L.translate(
|
|
4722
|
+
const I = Math.ceil(_), N = C - 2 * _, j = this.options.whiteMargin, te = this.options.backgroundDimming, k = Math.ceil(N / p), ne = k * p, O = ne + 2 * I, oe = new Ue(O, O), L = oe.getContext("2d");
|
|
4723
|
+
this._clear(), L.save(), L.translate(I, I);
|
|
4696
4724
|
const Ae = new Ue(O, O), ue = Ae.getContext("2d");
|
|
4697
4725
|
let Ce = null, Ve = [];
|
|
4698
4726
|
if (this.options.gifBackground) {
|
|
4699
|
-
const B =
|
|
4700
|
-
if (Ce = B, Ve =
|
|
4727
|
+
const B = qa(this.options.gifBackground);
|
|
4728
|
+
if (Ce = B, Ve = Xa(B, !0), this.options.autoColor) {
|
|
4701
4729
|
let K = 0, P = 0, H = 0, de = 0;
|
|
4702
4730
|
for (let fe = 0; fe < Ve[0].colorTable.length; fe++) {
|
|
4703
4731
|
const he = Ve[0].colorTable[fe];
|
|
@@ -4711,29 +4739,29 @@ class ae {
|
|
|
4711
4739
|
const K = ae._getAverageRGB(B);
|
|
4712
4740
|
this.options.colorDark = `rgb(${K.r},${K.g},${K.b})`;
|
|
4713
4741
|
}
|
|
4714
|
-
ue.drawImage(B, 0, 0, B.width, B.height, 0, 0, O, O), ue.rect(0, 0, O, O), ue.fillStyle =
|
|
4742
|
+
ue.drawImage(B, 0, 0, B.width, B.height, 0, 0, O, O), ue.rect(0, 0, O, O), ue.fillStyle = te, ue.fill();
|
|
4715
4743
|
} else
|
|
4716
4744
|
ue.rect(0, 0, O, O), ue.fillStyle = this.options.colorLight, ue.fill();
|
|
4717
|
-
const
|
|
4745
|
+
const x = 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) || gt, le = (1 - U) * 0.5;
|
|
4718
4746
|
for (let B = 0; B < p; B++)
|
|
4719
4747
|
for (let K = 0; K < p; K++) {
|
|
4720
4748
|
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;
|
|
4721
4749
|
let fe = H || de;
|
|
4722
|
-
for (let _e = 1; _e <
|
|
4723
|
-
fe = fe || B >=
|
|
4750
|
+
for (let _e = 1; _e < x.length - 1; _e++)
|
|
4751
|
+
fe = fe || B >= x[_e] - 2 && B <= x[_e] + 2 && K >= x[_e] - 2 && K <= x[_e] + 2;
|
|
4724
4752
|
const he = K * k + (fe ? 0 : le * k), Ee = B * k + (fe ? 0 : le * k);
|
|
4725
|
-
if (L.strokeStyle = P ? this.options.colorDark : this.options.colorLight, L.lineWidth = 0.5, L.fillStyle = P ? this.options.colorDark : this.options.colorLight,
|
|
4753
|
+
if (L.strokeStyle = P ? this.options.colorDark : this.options.colorLight, L.lineWidth = 0.5, L.fillStyle = P ? this.options.colorDark : this.options.colorLight, x.length === 0)
|
|
4726
4754
|
fe || L.fillRect(he, Ee, (fe ? 1 : U) * k, (fe ? 1 : U) * k);
|
|
4727
4755
|
else {
|
|
4728
4756
|
const _e = K < p - 4 && K >= p - 4 - 5 && B < p - 4 && B >= p - 4 - 5;
|
|
4729
4757
|
!fe && !_e && L.fillRect(he, Ee, (fe ? 1 : U) * k, (fe ? 1 : U) * k);
|
|
4730
4758
|
}
|
|
4731
4759
|
}
|
|
4732
|
-
const me =
|
|
4760
|
+
const me = x[x.length - 1], A = this.options.colorLight;
|
|
4733
4761
|
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)
|
|
4734
|
-
for (let B = 0; B <
|
|
4735
|
-
for (let K = 0; K <
|
|
4736
|
-
const P =
|
|
4762
|
+
for (let B = 0; B < x.length; B++)
|
|
4763
|
+
for (let K = 0; K < x.length; K++) {
|
|
4764
|
+
const P = x[K], H = x[B];
|
|
4737
4765
|
if (!(P === 6 && (H === 6 || H === me))) {
|
|
4738
4766
|
if (H === 6 && (P === 6 || P === me))
|
|
4739
4767
|
continue;
|
|
@@ -4743,15 +4771,15 @@ class ae {
|
|
|
4743
4771
|
}
|
|
4744
4772
|
}
|
|
4745
4773
|
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);
|
|
4746
|
-
const R = ((d = (c = this.options.components) === null || c === void 0 ? void 0 : c.timing) === null || d === void 0 ? void 0 : d.scale) ||
|
|
4774
|
+
const R = ((d = (c = this.options.components) === null || c === void 0 ? void 0 : c.timing) === null || d === void 0 ? void 0 : d.scale) || gt, W = (1 - R) * 0.5;
|
|
4747
4775
|
for (let B = 0; B < p - 8; B += 2)
|
|
4748
|
-
ae._drawDot(L, 8 + B, 6, k,
|
|
4749
|
-
const re = ((f = (b = this.options.components) === null || b === void 0 ? void 0 : b.cornerAlignment) === null || f === void 0 ? void 0 : f.scale) ||
|
|
4776
|
+
ae._drawDot(L, 8 + B, 6, k, W, R), ae._drawDot(L, 6, 8 + B, k, W, R);
|
|
4777
|
+
const re = ((f = (b = this.options.components) === null || b === void 0 ? void 0 : b.cornerAlignment) === null || f === void 0 ? void 0 : f.scale) || gt, ke = (1 - re) * 0.5;
|
|
4750
4778
|
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) ||
|
|
4752
|
-
for (let B = 0; B <
|
|
4753
|
-
for (let K = 0; K <
|
|
4754
|
-
const P =
|
|
4779
|
+
const ie = ((h = (T = this.options.components) === null || T === void 0 ? void 0 : T.alignment) === null || h === void 0 ? void 0 : h.scale) || gt, Te = (1 - ie) * 0.5;
|
|
4780
|
+
for (let B = 0; B < x.length; B++)
|
|
4781
|
+
for (let K = 0; K < x.length; K++) {
|
|
4782
|
+
const P = x[K], H = x[B];
|
|
4755
4783
|
if (!(P === 6 && (H === 6 || H === me))) {
|
|
4756
4784
|
if (H === 6 && (P === 6 || P === me))
|
|
4757
4785
|
continue;
|
|
@@ -4760,14 +4788,14 @@ class ae {
|
|
|
4760
4788
|
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);
|
|
4761
4789
|
}
|
|
4762
4790
|
}
|
|
4763
|
-
if (j && (L.fillStyle = this.options.backgroundColor, L.fillRect(-
|
|
4791
|
+
if (j && (L.fillStyle = this.options.backgroundColor, L.fillRect(-I, -I, O, I), L.fillRect(-I, ne, O, I), L.fillRect(ne, -I, I, O), L.fillRect(-I, -I, I, O)), this.options.logoImage) {
|
|
4764
4792
|
const B = yield Co(this.options.logoImage);
|
|
4765
4793
|
let K = this.options.logoScale, P = this.options.logoMargin, H = this.options.logoCornerRadius;
|
|
4766
4794
|
(K <= 0 || K >= 1) && (K = 0.2), P < 0 && (P = 0), H < 0 && (H = 0);
|
|
4767
4795
|
const de = ne * K, fe = 0.5 * (O - de), he = fe;
|
|
4768
4796
|
L.restore(), L.fillStyle = this.options.logoBackgroundColor, L.save(), ae._prepareRoundedCornerClip(L, fe - P, he - P, de + 2 * P, de + 2 * P, H + P), L.clip();
|
|
4769
4797
|
const Ee = L.globalCompositeOperation;
|
|
4770
|
-
L.globalCompositeOperation = "destination-out", L.fill(), L.globalCompositeOperation = Ee, L.restore(), L.save(), ae._prepareRoundedCornerClip(L, fe, he, de, de, H), L.clip(), L.drawImage(B, fe, he, de, de), L.restore(), L.save(), L.translate(
|
|
4798
|
+
L.globalCompositeOperation = "destination-out", L.fill(), L.globalCompositeOperation = Ee, L.restore(), L.save(), ae._prepareRoundedCornerClip(L, fe, he, de, de, H), L.clip(), L.drawImage(B, fe, he, de, de), L.restore(), L.save(), L.translate(I, I);
|
|
4771
4799
|
}
|
|
4772
4800
|
if (Ce) {
|
|
4773
4801
|
let B, K, P, H, de, fe;
|
|
@@ -4775,21 +4803,21 @@ class ae {
|
|
|
4775
4803
|
B || (B = new ce(C, C), B.setDelay(he.delay), B.setRepeat(0));
|
|
4776
4804
|
const { width: Ee, height: _e } = he.dims;
|
|
4777
4805
|
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);
|
|
4778
|
-
const
|
|
4779
|
-
|
|
4780
|
-
const
|
|
4781
|
-
ao.drawImage(
|
|
4806
|
+
const dt = new Ue(O, O), nt = dt.getContext("2d");
|
|
4807
|
+
nt.drawImage(K.getContext("2d").canvas, 0, 0, O, O), nt.rect(0, 0, O, O), nt.fillStyle = te, nt.fill(), nt.drawImage(oe.getContext("2d").canvas, 0, 0, O, O);
|
|
4808
|
+
const Ft = new Ue(C, C), ao = Ft.getContext("2d");
|
|
4809
|
+
ao.drawImage(dt.getContext("2d").canvas, 0, 0, C, C), B.addFrame(ao.getImageData(0, 0, Ft.width, Ft.height).data);
|
|
4782
4810
|
}), !B)
|
|
4783
4811
|
throw new Error("No frames.");
|
|
4784
4812
|
if (B.finish(), To(this.canvas)) {
|
|
4785
|
-
const Ee = B.stream().toFlattenUint8Array().reduce((_e,
|
|
4813
|
+
const Ee = B.stream().toFlattenUint8Array().reduce((_e, dt) => _e + String.fromCharCode(dt), "");
|
|
4786
4814
|
return Promise.resolve(`data:image/gif;base64,${window.btoa(Ee)}`);
|
|
4787
4815
|
}
|
|
4788
4816
|
return Promise.resolve(Buffer.from(B.stream().toFlattenUint8Array()));
|
|
4789
4817
|
} else {
|
|
4790
|
-
ue.drawImage(
|
|
4818
|
+
ue.drawImage(oe.getContext("2d").canvas, 0, 0, O, O), L.drawImage(Ae.getContext("2d").canvas, -I, -I, O, O);
|
|
4791
4819
|
const B = new Ue(C, C);
|
|
4792
|
-
B.getContext("2d").drawImage(
|
|
4820
|
+
B.getContext("2d").drawImage(oe.getContext("2d").canvas, 0, 0, C, C), this.canvas = B;
|
|
4793
4821
|
const P = this.options.gifBackground ? "gif" : "png";
|
|
4794
4822
|
return To(this.canvas) ? Promise.resolve(this.canvas.toDataURL(P)) : Promise.resolve(this.canvas.toBuffer(P));
|
|
4795
4823
|
}
|
|
@@ -4840,7 +4868,7 @@ function To(e) {
|
|
|
4840
4868
|
return typeof e == "object" && e.nodeType === 1 && typeof e.style == "object" && typeof e.ownerDocument == "object";
|
|
4841
4869
|
}
|
|
4842
4870
|
}
|
|
4843
|
-
const
|
|
4871
|
+
const fl = {
|
|
4844
4872
|
props: {
|
|
4845
4873
|
text: {
|
|
4846
4874
|
type: String,
|
|
@@ -4980,7 +5008,7 @@ const dl = {
|
|
|
4980
5008
|
methods: {
|
|
4981
5009
|
async main() {
|
|
4982
5010
|
if (this.gifBgSrc) {
|
|
4983
|
-
const o = await
|
|
5011
|
+
const o = await ma(this.gifBgSrc), n = this.logoSrc;
|
|
4984
5012
|
this.render(void 0, n, o);
|
|
4985
5013
|
return;
|
|
4986
5014
|
}
|
|
@@ -5016,15 +5044,15 @@ const dl = {
|
|
|
5016
5044
|
});
|
|
5017
5045
|
}
|
|
5018
5046
|
}
|
|
5019
|
-
},
|
|
5020
|
-
function
|
|
5047
|
+
}, hl = ["src"];
|
|
5048
|
+
function pl(e, t, o, n, a, l) {
|
|
5021
5049
|
return o.bindElement ? (v(), q("img", {
|
|
5022
5050
|
key: 0,
|
|
5023
5051
|
style: { display: "inline-block" },
|
|
5024
5052
|
src: a.imgUrl
|
|
5025
|
-
}, null, 8,
|
|
5053
|
+
}, null, 8, hl)) : G("", !0);
|
|
5026
5054
|
}
|
|
5027
|
-
const
|
|
5055
|
+
const gl = /* @__PURE__ */ Vt(fl, [["render", pl]]), vl = ["innerHTML"], bl = { style: { "text-align": "center" } }, yl = { class: "ImageViewer" }, wl = { class: "ImageViewer__image" }, kl = ["onClick"], Cl = /* @__PURE__ */ ee({
|
|
5028
5056
|
__name: "index",
|
|
5029
5057
|
props: {
|
|
5030
5058
|
viewName: null,
|
|
@@ -5039,17 +5067,17 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5039
5067
|
"return-pagination-props"
|
|
5040
5068
|
],
|
|
5041
5069
|
setup(e, { emit: t }) {
|
|
5042
|
-
const o = e, { reload: n, reloadFlag: a } =
|
|
5070
|
+
const o = e, { reload: n, reloadFlag: a } = zo(), l = F(() => {
|
|
5043
5071
|
var T, h;
|
|
5044
5072
|
return (h = (T = o.board) == null ? void 0 : T.tableData) == null ? void 0 : h.keyName;
|
|
5045
|
-
}), r =
|
|
5073
|
+
}), r = F(() => {
|
|
5046
5074
|
var T;
|
|
5047
|
-
return
|
|
5048
|
-
}), s =
|
|
5075
|
+
return Jn((T = o.board) == null ? void 0 : T.columns);
|
|
5076
|
+
}), s = z([]);
|
|
5049
5077
|
function i(T) {
|
|
5050
5078
|
s.value = T, t("return-selected-key", s.value);
|
|
5051
5079
|
}
|
|
5052
|
-
const u =
|
|
5080
|
+
const u = F(() => ({
|
|
5053
5081
|
current: o.paginationProps.page + 1,
|
|
5054
5082
|
pageSize: o.paginationProps.count,
|
|
5055
5083
|
total: o.paginationProps.totalCount,
|
|
@@ -5059,11 +5087,11 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5059
5087
|
showJumper: !0
|
|
5060
5088
|
}));
|
|
5061
5089
|
function c(T, h) {
|
|
5062
|
-
return T.value != "" ?
|
|
5090
|
+
return T.value != "" ? $e.render(T.value, { item: h }) : h[T.keyName];
|
|
5063
5091
|
}
|
|
5064
5092
|
function d(T, h) {
|
|
5065
5093
|
var y;
|
|
5066
|
-
if (!
|
|
5094
|
+
if (!xe(T.enums)) {
|
|
5067
5095
|
let g = T.enums.filter((p) => {
|
|
5068
5096
|
if (h[T.keyName] == null && (h[T.keyName] = ""), p.value == String(h[T.keyName]))
|
|
5069
5097
|
return p.text;
|
|
@@ -5073,7 +5101,7 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5073
5101
|
}
|
|
5074
5102
|
function b(T, h) {
|
|
5075
5103
|
if (T.value != "")
|
|
5076
|
-
return
|
|
5104
|
+
return $e.render(T.value, { item: h });
|
|
5077
5105
|
if (T.value == "")
|
|
5078
5106
|
return Wt(h[T.keyName]).format("YYYY-MM-DD HH:mm:ss");
|
|
5079
5107
|
}
|
|
@@ -5082,7 +5110,7 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5082
5110
|
if (y.showIf != "1") {
|
|
5083
5111
|
let g, p;
|
|
5084
5112
|
try {
|
|
5085
|
-
g =
|
|
5113
|
+
g = $e.render(y.showIf, { item: h }), p = Ht(g, { item: h });
|
|
5086
5114
|
} catch (C) {
|
|
5087
5115
|
console.warn(C);
|
|
5088
5116
|
}
|
|
@@ -5102,8 +5130,8 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5102
5130
|
() => n(),
|
|
5103
5131
|
{ deep: !0 }
|
|
5104
5132
|
), (T, h) => {
|
|
5105
|
-
const y =
|
|
5106
|
-
return m(a) ?
|
|
5133
|
+
const y = D("t-button"), g = D("t-popup"), p = D("t-icon"), C = D("t-image"), _ = D("t-image-viewer");
|
|
5134
|
+
return m(a) ? G("", !0) : (v(), S(m(Fo), {
|
|
5107
5135
|
key: 0,
|
|
5108
5136
|
commonTableProps: {
|
|
5109
5137
|
data: e.tableData,
|
|
@@ -5114,26 +5142,26 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5114
5142
|
onSelectChange: i
|
|
5115
5143
|
}
|
|
5116
5144
|
}, {
|
|
5117
|
-
TEXT: w(({ col:
|
|
5118
|
-
J(ge(c(
|
|
5145
|
+
TEXT: w(({ col: I, row: N }) => [
|
|
5146
|
+
J(ge(c(I, N)), 1)
|
|
5119
5147
|
]),
|
|
5120
|
-
ENUMS: w(({ col:
|
|
5148
|
+
ENUMS: w(({ col: I, row: N }) => [
|
|
5121
5149
|
Z("span", {
|
|
5122
|
-
innerHTML: d(
|
|
5123
|
-
}, null, 8,
|
|
5150
|
+
innerHTML: d(I, N)
|
|
5151
|
+
}, null, 8, vl)
|
|
5124
5152
|
]),
|
|
5125
|
-
DATE: w(({ col:
|
|
5126
|
-
J(ge(b(
|
|
5153
|
+
DATE: w(({ col: I, row: N }) => [
|
|
5154
|
+
J(ge(b(I, N)), 1)
|
|
5127
5155
|
]),
|
|
5128
|
-
QR_CODE: w(({ col:
|
|
5156
|
+
QR_CODE: w(({ col: I, row: N }) => [
|
|
5129
5157
|
V(g, null, {
|
|
5130
5158
|
content: w(() => [
|
|
5131
|
-
V(
|
|
5132
|
-
text: c(
|
|
5159
|
+
V(gl, {
|
|
5160
|
+
text: c(I, N),
|
|
5133
5161
|
size: 80,
|
|
5134
5162
|
margin: 0
|
|
5135
5163
|
}, null, 8, ["text"]),
|
|
5136
|
-
Z("div",
|
|
5164
|
+
Z("div", bl, ge(N.code), 1)
|
|
5137
5165
|
]),
|
|
5138
5166
|
default: w(() => [
|
|
5139
5167
|
V(y, {
|
|
@@ -5149,29 +5177,29 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5149
5177
|
_: 2
|
|
5150
5178
|
}, 1024)
|
|
5151
5179
|
]),
|
|
5152
|
-
FORM_ITEM: w(({ col:
|
|
5153
|
-
V(
|
|
5180
|
+
FORM_ITEM: w(({ col: I, row: N }) => [
|
|
5181
|
+
V(da, {
|
|
5154
5182
|
viewName: e.viewName,
|
|
5155
|
-
col:
|
|
5183
|
+
col: I,
|
|
5156
5184
|
row: N,
|
|
5157
5185
|
onBlur: E
|
|
5158
5186
|
}, null, 8, ["viewName", "col", "row"])
|
|
5159
5187
|
]),
|
|
5160
|
-
IMAGE: w(({ col:
|
|
5161
|
-
Z("div",
|
|
5188
|
+
IMAGE: w(({ col: I, row: N }) => [
|
|
5189
|
+
Z("div", yl, [
|
|
5162
5190
|
V(_, {
|
|
5163
|
-
images: [c(
|
|
5191
|
+
images: [c(I, N)]
|
|
5164
5192
|
}, {
|
|
5165
5193
|
trigger: w(({ open: j }) => [
|
|
5166
|
-
Z("div",
|
|
5194
|
+
Z("div", wl, [
|
|
5167
5195
|
V(C, {
|
|
5168
5196
|
class: "ImageViewer__image--img",
|
|
5169
|
-
src: c(
|
|
5197
|
+
src: c(I, N),
|
|
5170
5198
|
shape: "round",
|
|
5171
5199
|
fit: "scale-down"
|
|
5172
5200
|
}, {
|
|
5173
5201
|
error: w(() => [
|
|
5174
|
-
|
|
5202
|
+
I.name == "头像" ? (v(), S(p, {
|
|
5175
5203
|
key: 0,
|
|
5176
5204
|
name: "user"
|
|
5177
5205
|
})) : (v(), S(p, {
|
|
@@ -5180,7 +5208,7 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5180
5208
|
}))
|
|
5181
5209
|
]),
|
|
5182
5210
|
loading: w(() => [
|
|
5183
|
-
|
|
5211
|
+
I.name == "头像" ? (v(), S(p, {
|
|
5184
5212
|
key: 0,
|
|
5185
5213
|
name: "user"
|
|
5186
5214
|
})) : (v(), S(p, {
|
|
@@ -5202,19 +5230,19 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5202
5230
|
}),
|
|
5203
5231
|
J(" 预览")
|
|
5204
5232
|
])
|
|
5205
|
-
], 8,
|
|
5233
|
+
], 8, kl)
|
|
5206
5234
|
])
|
|
5207
5235
|
]),
|
|
5208
5236
|
_: 2
|
|
5209
5237
|
}, 1032, ["images"])
|
|
5210
5238
|
])
|
|
5211
5239
|
]),
|
|
5212
|
-
BUTTONS: w(({ col:
|
|
5213
|
-
(v(!0), q(ve, null, ye(f(
|
|
5240
|
+
BUTTONS: w(({ col: I, row: N }) => [
|
|
5241
|
+
(v(!0), q(ve, null, ye(f(I.buttons, N), (j) => (v(), S(y, {
|
|
5214
5242
|
theme: "primary",
|
|
5215
5243
|
variant: "text",
|
|
5216
5244
|
key: j.buttonId,
|
|
5217
|
-
onClick: (
|
|
5245
|
+
onClick: (te) => M(j, N)
|
|
5218
5246
|
}, {
|
|
5219
5247
|
default: w(() => [
|
|
5220
5248
|
J(ge(j.name), 1)
|
|
@@ -5227,7 +5255,7 @@ const hl = /* @__PURE__ */ St(dl, [["render", fl]]), pl = ["innerHTML"], gl = {
|
|
|
5227
5255
|
};
|
|
5228
5256
|
}
|
|
5229
5257
|
});
|
|
5230
|
-
const
|
|
5258
|
+
const Tl = /* @__PURE__ */ Vt(Cl, [["__scopeId", "data-v-78e0f314"]]), _l = /* @__PURE__ */ ee({
|
|
5231
5259
|
__name: "index",
|
|
5232
5260
|
props: {
|
|
5233
5261
|
viewName: null,
|
|
@@ -5235,10 +5263,10 @@ const kl = /* @__PURE__ */ St(wl, [["__scopeId", "data-v-78e0f314"]]), Cl = /* @
|
|
|
5235
5263
|
},
|
|
5236
5264
|
setup(e) {
|
|
5237
5265
|
var r, s;
|
|
5238
|
-
const t = e, o =
|
|
5266
|
+
const t = e, o = F(() => {
|
|
5239
5267
|
var i;
|
|
5240
5268
|
return (i = t == null ? void 0 : t.board) == null ? void 0 : i.tabs;
|
|
5241
|
-
}), n =
|
|
5269
|
+
}), n = z((s = (r = o.value) == null ? void 0 : r[0]) == null ? void 0 : s.title);
|
|
5242
5270
|
function a(i) {
|
|
5243
5271
|
n.value = i;
|
|
5244
5272
|
}
|
|
@@ -5246,9 +5274,9 @@ const kl = /* @__PURE__ */ St(wl, [["__scopeId", "data-v-78e0f314"]]), Cl = /* @
|
|
|
5246
5274
|
window.history.go(-1);
|
|
5247
5275
|
}
|
|
5248
5276
|
return (i, u) => {
|
|
5249
|
-
const c =
|
|
5277
|
+
const c = D("t-card"), d = D("t-tab-panel"), b = D("t-tabs");
|
|
5250
5278
|
return v(), S(b, {
|
|
5251
|
-
class:
|
|
5279
|
+
class: $(`${m(X)}__tab`),
|
|
5252
5280
|
placement: "left",
|
|
5253
5281
|
value: n.value,
|
|
5254
5282
|
onChange: a
|
|
@@ -5267,7 +5295,7 @@ const kl = /* @__PURE__ */ St(wl, [["__scopeId", "data-v-78e0f314"]]), Cl = /* @
|
|
|
5267
5295
|
viewName: e.viewName,
|
|
5268
5296
|
board: f.board,
|
|
5269
5297
|
onCloseDialog: l
|
|
5270
|
-
}, null, 8, ["viewName", "board"])) :
|
|
5298
|
+
}, null, 8, ["viewName", "board"])) : G("", !0)
|
|
5271
5299
|
]),
|
|
5272
5300
|
_: 2
|
|
5273
5301
|
}, 1024)
|
|
@@ -5280,7 +5308,7 @@ const kl = /* @__PURE__ */ St(wl, [["__scopeId", "data-v-78e0f314"]]), Cl = /* @
|
|
|
5280
5308
|
};
|
|
5281
5309
|
}
|
|
5282
5310
|
});
|
|
5283
|
-
const
|
|
5311
|
+
const Il = /* @__PURE__ */ ee({
|
|
5284
5312
|
__name: "index",
|
|
5285
5313
|
props: {
|
|
5286
5314
|
isDialogVisible: { type: Boolean, default: !1 },
|
|
@@ -5291,7 +5319,7 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5291
5319
|
},
|
|
5292
5320
|
emits: ["update:isDialogVisible", "close-dialog"],
|
|
5293
5321
|
setup(e, { emit: t }) {
|
|
5294
|
-
const o = e, n = cn(() => import("./index-
|
|
5322
|
+
const o = e, n = cn(() => import("./index-d9dbde91.mjs")), a = Zt(), l = F(() => o.dialogViewInfo.view), r = F(() => o.dialogViewInfo.name), s = F(() => {
|
|
5295
5323
|
var b;
|
|
5296
5324
|
switch ((b = i.value) == null ? void 0 : b.boardType) {
|
|
5297
5325
|
case "table":
|
|
@@ -5301,7 +5329,7 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5301
5329
|
default:
|
|
5302
5330
|
return "600px";
|
|
5303
5331
|
}
|
|
5304
|
-
}), i =
|
|
5332
|
+
}), i = z(), u = F(() => o.dialogViewProps.length ? a.getPropsByPropsKey(o.dialogViewProps) : []);
|
|
5305
5333
|
function c(b) {
|
|
5306
5334
|
t("update:isDialogVisible", b);
|
|
5307
5335
|
}
|
|
@@ -5329,7 +5357,7 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5329
5357
|
_: 1
|
|
5330
5358
|
}, 8, ["commonDialogProps"]));
|
|
5331
5359
|
}
|
|
5332
|
-
}), ln = /* @__PURE__ */
|
|
5360
|
+
}), ln = /* @__PURE__ */ ee({
|
|
5333
5361
|
__name: "index",
|
|
5334
5362
|
props: {
|
|
5335
5363
|
board: null,
|
|
@@ -5339,36 +5367,40 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5339
5367
|
},
|
|
5340
5368
|
emits: ["close-dialog"],
|
|
5341
5369
|
setup(e, { emit: t }) {
|
|
5342
|
-
const o = e, n =
|
|
5343
|
-
|
|
5344
|
-
const s =
|
|
5345
|
-
var
|
|
5346
|
-
return (
|
|
5347
|
-
}), i =
|
|
5348
|
-
var
|
|
5349
|
-
return (
|
|
5350
|
-
}), u =
|
|
5351
|
-
var
|
|
5352
|
-
return (
|
|
5353
|
-
}), b =
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5370
|
+
const o = e, n = ut(), a = tt(), l = Xt(), r = Zt();
|
|
5371
|
+
zo();
|
|
5372
|
+
const s = F(() => {
|
|
5373
|
+
var x;
|
|
5374
|
+
return (x = o.board) == null ? void 0 : x.boardType;
|
|
5375
|
+
}), i = F(() => {
|
|
5376
|
+
var x, U, le;
|
|
5377
|
+
return (x = o.board) != null && x.data ? (U = o.board) == null ? void 0 : U.data.dataId : (le = o.board) != null && le.tableData ? o.board.tableData.dataId : null;
|
|
5378
|
+
}), u = z([]), c = z({}), d = F(() => {
|
|
5379
|
+
var x;
|
|
5380
|
+
return (x = o.board) == null ? void 0 : x.header;
|
|
5381
|
+
}), b = z({}), f = F(() => {
|
|
5382
|
+
if (xe(a.query))
|
|
5383
|
+
return {};
|
|
5384
|
+
{
|
|
5385
|
+
const { viewName: x, ...U } = a.query;
|
|
5386
|
+
return U;
|
|
5387
|
+
}
|
|
5388
|
+
}), M = z({
|
|
5357
5389
|
count: 10,
|
|
5358
5390
|
page: 0,
|
|
5359
5391
|
totalCount: 0,
|
|
5360
5392
|
pageCount: 0
|
|
5361
|
-
}), E =
|
|
5362
|
-
var
|
|
5393
|
+
}), E = F(() => {
|
|
5394
|
+
var x;
|
|
5363
5395
|
{
|
|
5364
5396
|
let U = {};
|
|
5365
|
-
return d.value && b.value && Object.assign(U, b.value), o.dialogProps && ((
|
|
5397
|
+
return d.value && b.value && Object.assign(U, b.value), o.dialogProps && ((x = Object.keys(o.dialogProps)) != null && x.length) && Object.assign(U, o.dialogProps), s.value === "table" && Object.assign(U, M.value), Object.assign(U, f.value), U;
|
|
5366
5398
|
}
|
|
5367
5399
|
});
|
|
5368
5400
|
async function T() {
|
|
5369
|
-
var
|
|
5401
|
+
var x;
|
|
5370
5402
|
try {
|
|
5371
|
-
if (!
|
|
5403
|
+
if (!wt(i.value) && !wt(o.viewName)) {
|
|
5372
5404
|
const U = await Mt({
|
|
5373
5405
|
dataId: i.value,
|
|
5374
5406
|
viewName: o.viewName,
|
|
@@ -5380,7 +5412,7 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5380
5412
|
page: U.data.page,
|
|
5381
5413
|
pageCount: U.data.pageCount,
|
|
5382
5414
|
totalCount: U.data.totalCount
|
|
5383
|
-
}, u.value = (
|
|
5415
|
+
}, u.value = (x = U.data) == null ? void 0 : x.data), s.value == "form" && (c.value = U.data);
|
|
5384
5416
|
else
|
|
5385
5417
|
throw U;
|
|
5386
5418
|
}
|
|
@@ -5389,9 +5421,9 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5389
5421
|
}
|
|
5390
5422
|
}
|
|
5391
5423
|
et(() => {
|
|
5392
|
-
T(), window.addEventListener("onUpdateMessage", (
|
|
5424
|
+
T(), window.addEventListener("onUpdateMessage", (x) => {
|
|
5393
5425
|
var le;
|
|
5394
|
-
const U = (le =
|
|
5426
|
+
const U = (le = x == null ? void 0 : x.detail) == null ? void 0 : le.args.dataId;
|
|
5395
5427
|
i.value === U && T();
|
|
5396
5428
|
});
|
|
5397
5429
|
}), we(
|
|
@@ -5403,183 +5435,183 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5403
5435
|
deep: !0
|
|
5404
5436
|
}
|
|
5405
5437
|
);
|
|
5406
|
-
const h =
|
|
5407
|
-
async function x
|
|
5408
|
-
if ((
|
|
5409
|
-
U.viewName =
|
|
5410
|
-
const le = await
|
|
5438
|
+
const h = z(!1), y = z(!1), g = z({}), p = z({}), C = z(), _ = z();
|
|
5439
|
+
async function I(x, U = {}) {
|
|
5440
|
+
if ((x ?? "") != "") {
|
|
5441
|
+
U.viewName = x;
|
|
5442
|
+
const le = await Do(U);
|
|
5411
5443
|
le.state === 200 && (C.value = le.data.boards[0], _.value = le.data.props);
|
|
5412
5444
|
}
|
|
5413
5445
|
}
|
|
5414
|
-
async function N(
|
|
5415
|
-
h.value =
|
|
5446
|
+
async function N(x) {
|
|
5447
|
+
h.value = x;
|
|
5416
5448
|
}
|
|
5417
|
-
async function j(
|
|
5449
|
+
async function j(x, U = {}) {
|
|
5418
5450
|
var le, me;
|
|
5419
|
-
switch (
|
|
5451
|
+
switch (x.action) {
|
|
5420
5452
|
case "VIEW_BY_DIALOG": {
|
|
5421
|
-
g.value =
|
|
5453
|
+
g.value = x, p.value = { ...U }, r.initPropsSource(U), await I(x.view), await N(!0), y.value = !0;
|
|
5422
5454
|
break;
|
|
5423
5455
|
}
|
|
5424
5456
|
case "VIEW": {
|
|
5425
5457
|
let A = {};
|
|
5426
|
-
(le =
|
|
5458
|
+
(le = x == null ? void 0 : x.props) == null || le.forEach((R) => {
|
|
5427
5459
|
R.keyName && (U[R.keyName] ?? "") != "" && (A[R.keyName] = U[R.keyName]);
|
|
5428
5460
|
}), n.push({
|
|
5429
5461
|
path: "/view",
|
|
5430
5462
|
query: {
|
|
5431
|
-
viewName:
|
|
5432
|
-
|
|
5463
|
+
viewName: x.view,
|
|
5464
|
+
...A
|
|
5433
5465
|
}
|
|
5434
5466
|
});
|
|
5435
5467
|
break;
|
|
5436
5468
|
}
|
|
5437
5469
|
case "CONFIRM": {
|
|
5438
5470
|
let A;
|
|
5439
|
-
|
|
5471
|
+
x.confirmMessage != "" ? A = $e.render(x.confirmMessage, { item: U }) : A = `是否确定${x.name}`;
|
|
5440
5472
|
let R = {};
|
|
5441
|
-
|
|
5473
|
+
x.props ? x.props.forEach((re) => {
|
|
5442
5474
|
re.keyName && (U[re.keyName] ?? "") != "" && (R[re.keyName] = U[re.keyName]);
|
|
5443
5475
|
}) : R = { ...U };
|
|
5444
|
-
const
|
|
5476
|
+
const W = vt.confirm({
|
|
5445
5477
|
theme: "info",
|
|
5446
|
-
header:
|
|
5478
|
+
header: x.name,
|
|
5447
5479
|
body: A,
|
|
5448
5480
|
onConfirm: () => {
|
|
5449
|
-
|
|
5481
|
+
x.buttonId && oe(R, x.buttonId), W.destroy();
|
|
5450
5482
|
},
|
|
5451
5483
|
onCancel: () => {
|
|
5452
|
-
|
|
5484
|
+
Y.info(`已取消${x.name}`);
|
|
5453
5485
|
}
|
|
5454
5486
|
});
|
|
5455
5487
|
break;
|
|
5456
5488
|
}
|
|
5457
5489
|
case "BATCH": {
|
|
5458
|
-
const A =
|
|
5490
|
+
const A = vt.confirm({
|
|
5459
5491
|
theme: "info",
|
|
5460
|
-
header:
|
|
5461
|
-
body: `此操作将${
|
|
5492
|
+
header: x.name,
|
|
5493
|
+
body: `此操作将${x.name},是否继续`,
|
|
5462
5494
|
onConfirm: () => {
|
|
5463
|
-
k.value.length == 0 ?
|
|
5495
|
+
k.value.length == 0 ? Y.error("请选择批量操作对象!") : Ae(x, k.value), A.destroy();
|
|
5464
5496
|
},
|
|
5465
5497
|
onCancel: () => {
|
|
5466
|
-
|
|
5498
|
+
Y.info(`已取消${x.name}`);
|
|
5467
5499
|
}
|
|
5468
5500
|
});
|
|
5469
5501
|
break;
|
|
5470
5502
|
}
|
|
5471
5503
|
case "LINK": {
|
|
5472
5504
|
let A = {};
|
|
5473
|
-
(me =
|
|
5474
|
-
|
|
5475
|
-
})
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5505
|
+
(me = x == null ? void 0 : x.props) == null || me.forEach((R) => {
|
|
5506
|
+
R.keyName && (U[R.keyName] ?? "") != "" && (A[R.keyName] = U[R.keyName]);
|
|
5507
|
+
}), console.log(A), n.push({
|
|
5508
|
+
path: x.link,
|
|
5509
|
+
query: {
|
|
5510
|
+
...A
|
|
5511
|
+
}
|
|
5479
5512
|
});
|
|
5480
|
-
window.open(R.href, "_blank");
|
|
5481
5513
|
break;
|
|
5482
5514
|
}
|
|
5483
5515
|
case "DOWNLOAD": {
|
|
5484
|
-
if ((
|
|
5485
|
-
const A =
|
|
5516
|
+
if ((x.downloadUrl ?? "") != "") {
|
|
5517
|
+
const A = gn.decode($e.render(x.downloadUrl, { item: U }));
|
|
5486
5518
|
if ((A ?? "") != "") {
|
|
5487
|
-
const R = A.split("/").slice(-1)[0],
|
|
5488
|
-
|
|
5519
|
+
const R = A.split("/").slice(-1)[0], W = document.createElement("a");
|
|
5520
|
+
W.style.display = "none", W.setAttribute("target", "_blank"), R && W.setAttribute("download", R), W.setAttribute("href", A), W.click(), Y.info("即将开始下载");
|
|
5489
5521
|
} else
|
|
5490
|
-
|
|
5522
|
+
Y.info("未设置下载链接");
|
|
5491
5523
|
}
|
|
5492
5524
|
break;
|
|
5493
5525
|
}
|
|
5494
5526
|
default:
|
|
5495
|
-
console.log(
|
|
5527
|
+
console.log(x);
|
|
5496
5528
|
}
|
|
5497
5529
|
}
|
|
5498
|
-
function
|
|
5499
|
-
b.value =
|
|
5530
|
+
function te(x) {
|
|
5531
|
+
b.value = x, M.value = {
|
|
5500
5532
|
count: 10,
|
|
5501
5533
|
page: 0,
|
|
5502
5534
|
totalCount: 0,
|
|
5503
5535
|
pageCount: 0
|
|
5504
5536
|
}, T();
|
|
5505
5537
|
}
|
|
5506
|
-
const k =
|
|
5507
|
-
function ne(
|
|
5508
|
-
k.value =
|
|
5538
|
+
const k = z([]);
|
|
5539
|
+
function ne(x) {
|
|
5540
|
+
k.value = x;
|
|
5509
5541
|
}
|
|
5510
|
-
function O(
|
|
5542
|
+
function O(x) {
|
|
5511
5543
|
Object.assign(M.value, {
|
|
5512
|
-
page:
|
|
5513
|
-
count:
|
|
5544
|
+
page: x.current - 1,
|
|
5545
|
+
count: x.pageSize
|
|
5514
5546
|
}), T();
|
|
5515
5547
|
}
|
|
5516
|
-
async function
|
|
5548
|
+
async function oe(x, U) {
|
|
5517
5549
|
let le = {};
|
|
5518
|
-
Object.keys(E.value).length && Object.assign(le, E.value), Object.assign(le,
|
|
5519
|
-
const me = await
|
|
5550
|
+
Object.keys(E.value).length && Object.assign(le, E.value), Object.assign(le, x);
|
|
5551
|
+
const me = await Hn({
|
|
5520
5552
|
buttonId: U,
|
|
5521
5553
|
props: le,
|
|
5522
5554
|
viewName: o.viewName
|
|
5523
5555
|
});
|
|
5524
|
-
me.state === 200 ?
|
|
5556
|
+
me.state === 200 ? Y.success("提交成功") : Y.error(`提交失败:${me.message}`);
|
|
5525
5557
|
}
|
|
5526
|
-
function L(
|
|
5527
|
-
if (
|
|
5528
|
-
const le =
|
|
5558
|
+
function L(x, U) {
|
|
5559
|
+
if (x.itemType == "selector" || x.itemType == "time_selector" || x.itemType == "date_time_selector" || x.itemType == "tree_check_box" || x.itemType === "multi_tree_selector" || x.itemType === "tree_selector") {
|
|
5560
|
+
const le = vt.confirm({
|
|
5529
5561
|
theme: "info",
|
|
5530
5562
|
body: "此操作将提交该修改,是否继续?",
|
|
5531
5563
|
onConfirm: () => {
|
|
5532
|
-
|
|
5564
|
+
oe(U, x.buttonId), le.destroy();
|
|
5533
5565
|
},
|
|
5534
5566
|
onCancel: () => {
|
|
5535
|
-
|
|
5567
|
+
Y.info("已取消修改。");
|
|
5536
5568
|
}
|
|
5537
5569
|
});
|
|
5538
5570
|
} else
|
|
5539
|
-
|
|
5571
|
+
oe(U, x.buttonId);
|
|
5540
5572
|
}
|
|
5541
|
-
async function Ae(
|
|
5573
|
+
async function Ae(x, U) {
|
|
5542
5574
|
let le = {};
|
|
5543
5575
|
Object.keys(E.value).length && Object.assign(le, E.value);
|
|
5544
|
-
const me = await
|
|
5576
|
+
const me = await qn({
|
|
5545
5577
|
viewName: o.viewName,
|
|
5546
|
-
buttonId:
|
|
5578
|
+
buttonId: x.buttonId,
|
|
5547
5579
|
props: le,
|
|
5548
5580
|
keys: U
|
|
5549
5581
|
});
|
|
5550
|
-
me.state == 200 ?
|
|
5582
|
+
me.state == 200 ? Y.success(`${x.name} 操作成功!`) : Y.error(`提交出错:${me.message}`);
|
|
5551
5583
|
}
|
|
5552
5584
|
function ue() {
|
|
5553
5585
|
y.value = !1, setTimeout(() => {
|
|
5554
5586
|
N(!1);
|
|
5555
5587
|
});
|
|
5556
5588
|
}
|
|
5557
|
-
function Ce(
|
|
5558
|
-
|
|
5589
|
+
function Ce(x, U) {
|
|
5590
|
+
oe(x, U), Ve();
|
|
5559
5591
|
}
|
|
5560
5592
|
function Ve() {
|
|
5561
5593
|
t("close-dialog");
|
|
5562
5594
|
}
|
|
5563
|
-
return (
|
|
5564
|
-
class:
|
|
5595
|
+
return (x, U) => (v(), q("div", {
|
|
5596
|
+
class: $(`${m(X)}__board`)
|
|
5565
5597
|
}, [
|
|
5566
|
-
m(d) ? (v(), S(
|
|
5598
|
+
m(d) ? (v(), S(la, {
|
|
5567
5599
|
key: 0,
|
|
5568
5600
|
viewName: e.viewName,
|
|
5569
5601
|
headerInfo: m(d),
|
|
5570
5602
|
onHeaderButtonAction: j,
|
|
5571
|
-
onHeaderFilterChange:
|
|
5572
|
-
}, null, 8, ["viewName", "headerInfo"])) :
|
|
5573
|
-
m(s) === "form" ? (v(), S(
|
|
5603
|
+
onHeaderFilterChange: te
|
|
5604
|
+
}, null, 8, ["viewName", "headerInfo"])) : G("", !0),
|
|
5605
|
+
m(s) === "form" ? (v(), S(ca, {
|
|
5574
5606
|
key: 1,
|
|
5575
5607
|
viewName: e.viewName,
|
|
5576
5608
|
board: e.board,
|
|
5577
5609
|
formData: c.value,
|
|
5578
|
-
onConfirmForm:
|
|
5610
|
+
onConfirmForm: oe,
|
|
5579
5611
|
onConfirmAndClose: Ce,
|
|
5580
5612
|
onCloseDialog: Ve
|
|
5581
|
-
}, null, 8, ["viewName", "board", "formData"])) :
|
|
5582
|
-
m(s) === "table" ? (v(), S(
|
|
5613
|
+
}, null, 8, ["viewName", "board", "formData"])) : G("", !0),
|
|
5614
|
+
m(s) === "table" ? (v(), S(Tl, {
|
|
5583
5615
|
key: 2,
|
|
5584
5616
|
viewName: e.viewName,
|
|
5585
5617
|
board: e.board,
|
|
@@ -5589,13 +5621,13 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5589
5621
|
onTableFormConfirm: L,
|
|
5590
5622
|
onReturnSelectedKey: ne,
|
|
5591
5623
|
onReturnPaginationProps: O
|
|
5592
|
-
}, null, 8, ["viewName", "board", "tableData", "paginationProps"])) :
|
|
5593
|
-
m(s) === "tab" ? (v(), S(
|
|
5624
|
+
}, null, 8, ["viewName", "board", "tableData", "paginationProps"])) : G("", !0),
|
|
5625
|
+
m(s) === "tab" ? (v(), S(_l, {
|
|
5594
5626
|
key: 3,
|
|
5595
5627
|
viewName: e.viewName,
|
|
5596
5628
|
board: e.board
|
|
5597
|
-
}, null, 8, ["viewName", "board"])) :
|
|
5598
|
-
h.value ? (v(), S(
|
|
5629
|
+
}, null, 8, ["viewName", "board"])) : G("", !0),
|
|
5630
|
+
h.value ? (v(), S(Il, {
|
|
5599
5631
|
key: 4,
|
|
5600
5632
|
ref: "dialogRef",
|
|
5601
5633
|
isDialogVisible: y.value,
|
|
@@ -5608,31 +5640,35 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5608
5640
|
dialogViewBoard: C.value,
|
|
5609
5641
|
dialogViewProps: _.value,
|
|
5610
5642
|
onCloseDialog: ue
|
|
5611
|
-
}, null, 8, ["isDialogVisible", "dialogViewInfo", "dialogFormModel", "dialogViewBoard", "dialogViewProps"])) :
|
|
5643
|
+
}, null, 8, ["isDialogVisible", "dialogViewInfo", "dialogFormModel", "dialogViewBoard", "dialogViewProps"])) : G("", !0)
|
|
5612
5644
|
], 2));
|
|
5613
5645
|
}
|
|
5614
|
-
}),
|
|
5646
|
+
}), xl = /* @__PURE__ */ ee({
|
|
5615
5647
|
__name: "index",
|
|
5616
5648
|
props: {
|
|
5617
5649
|
config: null
|
|
5618
5650
|
},
|
|
5619
5651
|
setup(e) {
|
|
5620
|
-
const t = e, o =
|
|
5621
|
-
|
|
5652
|
+
const t = e, o = ut(), n = tt(), a = Le(), l = St(), r = Xt(), s = z(""), i = F(() => a.isUserLogin), u = F(() => a.homeUrl);
|
|
5653
|
+
xt(async () => {
|
|
5622
5654
|
i.value || (await a.initUserConfig(t.config), await l.initTabMenu(), o.push(u.value));
|
|
5623
5655
|
}), et(async () => {
|
|
5624
5656
|
r.initSocket(), window.addEventListener("onSocketReload", () => {
|
|
5625
5657
|
a.toggleGlobalReload();
|
|
5626
5658
|
});
|
|
5627
5659
|
});
|
|
5628
|
-
const c =
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5660
|
+
const c = F(() => n.query.viewName), d = F(() => {
|
|
5661
|
+
if (xe(n.query))
|
|
5662
|
+
return {};
|
|
5663
|
+
{
|
|
5664
|
+
const { viewName: E, ...T } = n.query;
|
|
5665
|
+
return T;
|
|
5666
|
+
}
|
|
5667
|
+
}), b = z();
|
|
5632
5668
|
we(
|
|
5633
5669
|
c,
|
|
5634
5670
|
async () => {
|
|
5635
|
-
|
|
5671
|
+
xe(c.value) || await f(c.value);
|
|
5636
5672
|
},
|
|
5637
5673
|
{
|
|
5638
5674
|
deep: !0,
|
|
@@ -5641,9 +5677,9 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5641
5677
|
);
|
|
5642
5678
|
async function f(E, T = {}) {
|
|
5643
5679
|
var h;
|
|
5644
|
-
T.viewName = E,
|
|
5680
|
+
T.viewName = E, xe(d.value) && Object.assign(T, d.value);
|
|
5645
5681
|
try {
|
|
5646
|
-
const y = await
|
|
5682
|
+
const y = await Do(T);
|
|
5647
5683
|
if (y.state === 200 && y.data) {
|
|
5648
5684
|
b.value = y.data, s.value = (h = y.data) == null ? void 0 : h.title;
|
|
5649
5685
|
const g = decodeURIComponent(n.fullPath);
|
|
@@ -5656,7 +5692,7 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5656
5692
|
} catch {
|
|
5657
5693
|
}
|
|
5658
5694
|
}
|
|
5659
|
-
const M =
|
|
5695
|
+
const M = F(() => a.isGlobalLoaded);
|
|
5660
5696
|
return (E, T) => (v(), S(Ao, { title: s.value }, {
|
|
5661
5697
|
default: w(() => {
|
|
5662
5698
|
var h;
|
|
@@ -5680,13 +5716,13 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5680
5716
|
}),
|
|
5681
5717
|
_: 2
|
|
5682
5718
|
}, 1024);
|
|
5683
|
-
}), 128)) :
|
|
5719
|
+
}), 128)) : G("", !0)
|
|
5684
5720
|
];
|
|
5685
5721
|
}),
|
|
5686
5722
|
_: 1
|
|
5687
5723
|
}, 8, ["title"]));
|
|
5688
5724
|
}
|
|
5689
|
-
}),
|
|
5725
|
+
}), Nl = Qe(Ao), Sl = /* @__PURE__ */ ee({
|
|
5690
5726
|
__name: "GLoginTitle",
|
|
5691
5727
|
props: {
|
|
5692
5728
|
title: { default: "公信会务管理系统" },
|
|
@@ -5694,52 +5730,52 @@ const Tl = /* @__PURE__ */ Y({
|
|
|
5694
5730
|
},
|
|
5695
5731
|
setup(e) {
|
|
5696
5732
|
return (t, o) => (v(), q("div", {
|
|
5697
|
-
class:
|
|
5733
|
+
class: $(`${m(X)}__login-title`)
|
|
5698
5734
|
}, [
|
|
5699
5735
|
Z("div", {
|
|
5700
|
-
class:
|
|
5736
|
+
class: $(`${m(X)}__login-title--mainTitle`)
|
|
5701
5737
|
}, ge(e.title), 3),
|
|
5702
5738
|
Z("div", {
|
|
5703
|
-
class:
|
|
5739
|
+
class: $(`${m(X)}__login-title--subTitle`)
|
|
5704
5740
|
}, ge(e.subTitle), 3)
|
|
5705
5741
|
], 2));
|
|
5706
5742
|
}
|
|
5707
5743
|
});
|
|
5708
|
-
const
|
|
5744
|
+
const Vl = /* @__PURE__ */ Z("span", null, [
|
|
5709
5745
|
/* @__PURE__ */ J("登录即代表同意 "),
|
|
5710
5746
|
/* @__PURE__ */ Z("a", { href: "#" }, "服务条款"),
|
|
5711
5747
|
/* @__PURE__ */ J(" 或 "),
|
|
5712
5748
|
/* @__PURE__ */ Z("a", { href: "#" }, "隐私协议")
|
|
5713
|
-
], -1),
|
|
5714
|
-
|
|
5715
|
-
],
|
|
5749
|
+
], -1), Ml = [
|
|
5750
|
+
Vl
|
|
5751
|
+
], Pl = /* @__PURE__ */ ee({
|
|
5716
5752
|
__name: "GLoginForm",
|
|
5717
5753
|
setup(e) {
|
|
5718
5754
|
return (t, o) => (v(), q("div", {
|
|
5719
|
-
class:
|
|
5755
|
+
class: $(`${m(X)}__login-form`)
|
|
5720
5756
|
}, [
|
|
5721
5757
|
Be(t.$slots, "tabs"),
|
|
5722
5758
|
Z("div", {
|
|
5723
|
-
class:
|
|
5724
|
-
},
|
|
5759
|
+
class: $(`${m(X)}__login-form--footer`)
|
|
5760
|
+
}, Ml, 2)
|
|
5725
5761
|
], 2));
|
|
5726
5762
|
}
|
|
5727
5763
|
});
|
|
5728
|
-
const
|
|
5764
|
+
const Al = {
|
|
5729
5765
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5730
5766
|
class: "design-iconfont",
|
|
5731
5767
|
viewBox: "0 0 180.202 22"
|
|
5732
|
-
},
|
|
5768
|
+
}, El = /* @__PURE__ */ Z("path", {
|
|
5733
5769
|
fill: "#bcc4d0",
|
|
5734
5770
|
"fill-rule": "evenodd",
|
|
5735
5771
|
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"
|
|
5736
|
-
}, null, -1),
|
|
5737
|
-
|
|
5772
|
+
}, null, -1), Bl = [
|
|
5773
|
+
El
|
|
5738
5774
|
];
|
|
5739
|
-
function
|
|
5740
|
-
return v(), q("svg",
|
|
5775
|
+
function Ll(e, t) {
|
|
5776
|
+
return v(), q("svg", Al, Bl);
|
|
5741
5777
|
}
|
|
5742
|
-
const
|
|
5778
|
+
const Fl = { render: Ll }, Dl = ["innerHTML"], Ol = ["innerHTML"], Ul = /* @__PURE__ */ ee({
|
|
5743
5779
|
__name: "GLoginFooter",
|
|
5744
5780
|
props: {
|
|
5745
5781
|
copyrightInfoEng: { default: "Copyright 2020 All Rights Reserved. " },
|
|
@@ -5747,22 +5783,22 @@ const Bl = { render: El }, Ll = ["innerHTML"], Dl = ["innerHTML"], Fl = /* @__PU
|
|
|
5747
5783
|
},
|
|
5748
5784
|
setup(e) {
|
|
5749
5785
|
return (t, o) => (v(), q("div", {
|
|
5750
|
-
class:
|
|
5786
|
+
class: $(`${m(X)}__login-footer`)
|
|
5751
5787
|
}, [
|
|
5752
5788
|
Z("span", {
|
|
5753
|
-
class:
|
|
5754
|
-
style:
|
|
5789
|
+
class: $(`${m(X)}__login-footer--logo`),
|
|
5790
|
+
style: Tt({ backgroundImage: `url(${m(Fl)})` })
|
|
5755
5791
|
}, null, 6),
|
|
5756
5792
|
Z("div", {
|
|
5757
|
-
class:
|
|
5793
|
+
class: $(`${m(X)}__login-footer--copyright`)
|
|
5758
5794
|
}, [
|
|
5759
|
-
Z("div", { innerHTML: e.copyrightInfoEng }, null, 8,
|
|
5760
|
-
Z("div", { innerHTML: e.copyrightInfoCN }, null, 8,
|
|
5795
|
+
Z("div", { innerHTML: e.copyrightInfoEng }, null, 8, Dl),
|
|
5796
|
+
Z("div", { innerHTML: e.copyrightInfoCN }, null, 8, Ol)
|
|
5761
5797
|
], 2)
|
|
5762
5798
|
], 2));
|
|
5763
5799
|
}
|
|
5764
5800
|
});
|
|
5765
|
-
const
|
|
5801
|
+
const Rl = ["id", "poster"], Kl = ["src"], Gl = ["src"], jl = /* @__PURE__ */ ee({
|
|
5766
5802
|
__name: "index",
|
|
5767
5803
|
props: {
|
|
5768
5804
|
bgVideoMp4Src: null,
|
|
@@ -5773,11 +5809,11 @@ const Ol = ["id", "poster"], Ul = ["src"], Rl = ["src"], Kl = /* @__PURE__ */ Y(
|
|
|
5773
5809
|
},
|
|
5774
5810
|
setup(e) {
|
|
5775
5811
|
return (t, o) => (v(), q("div", {
|
|
5776
|
-
class:
|
|
5812
|
+
class: $(`${m(X)}__login-wrapper`)
|
|
5777
5813
|
}, [
|
|
5778
5814
|
Z("video", {
|
|
5779
5815
|
id: `${m(X)}__login-wrapper--bgVideo`,
|
|
5780
|
-
style:
|
|
5816
|
+
style: Tt({ backgroundImage: `url(${e.bgImgSrc})` }),
|
|
5781
5817
|
poster: e.bgImgSrc,
|
|
5782
5818
|
autoplay: "",
|
|
5783
5819
|
muted: "",
|
|
@@ -5786,34 +5822,34 @@ const Ol = ["id", "poster"], Ul = ["src"], Rl = ["src"], Kl = /* @__PURE__ */ Y(
|
|
|
5786
5822
|
Z("source", {
|
|
5787
5823
|
src: e.bgVideoMp4Src,
|
|
5788
5824
|
type: "video/mp4"
|
|
5789
|
-
}, null, 8,
|
|
5825
|
+
}, null, 8, Kl),
|
|
5790
5826
|
Z("source", {
|
|
5791
5827
|
src: e.bgVideoWebmSrc,
|
|
5792
5828
|
type: "video/webm"
|
|
5793
|
-
}, null, 8,
|
|
5794
|
-
], 12,
|
|
5829
|
+
}, null, 8, Gl)
|
|
5830
|
+
], 12, Rl),
|
|
5795
5831
|
Z("div", {
|
|
5796
|
-
class:
|
|
5832
|
+
class: $(`${m(X)}__login-wrapper--overlay`)
|
|
5797
5833
|
}, null, 2),
|
|
5798
5834
|
Z("div", {
|
|
5799
|
-
class:
|
|
5835
|
+
class: $(`${m(X)}__login-wrapper--container`)
|
|
5800
5836
|
}, [
|
|
5801
|
-
V(
|
|
5837
|
+
V(Sl, {
|
|
5802
5838
|
title: e.title,
|
|
5803
5839
|
subTitle: e.subTitle
|
|
5804
5840
|
}, null, 8, ["title", "subTitle"]),
|
|
5805
|
-
V(
|
|
5841
|
+
V(Pl, null, {
|
|
5806
5842
|
tabs: w(() => [
|
|
5807
5843
|
Be(t.$slots, "tabs", {}, void 0, !0)
|
|
5808
5844
|
]),
|
|
5809
5845
|
_: 3
|
|
5810
5846
|
})
|
|
5811
5847
|
], 2),
|
|
5812
|
-
V(
|
|
5848
|
+
V(Ul)
|
|
5813
5849
|
], 2));
|
|
5814
5850
|
}
|
|
5815
5851
|
});
|
|
5816
|
-
const
|
|
5852
|
+
const Wl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-b1b26512"]]), Ar = Qe(Wl), Hl = [
|
|
5817
5853
|
{
|
|
5818
5854
|
stem: "app",
|
|
5819
5855
|
icon: "App"
|
|
@@ -6354,22 +6390,22 @@ const Gl = /* @__PURE__ */ St(Kl, [["__scopeId", "data-v-b1b26512"]]), Mr = Qe(G
|
|
|
6354
6390
|
stem: "zoom-out",
|
|
6355
6391
|
icon: "ZoomOut"
|
|
6356
6392
|
}
|
|
6357
|
-
],
|
|
6393
|
+
], ql = {
|
|
6358
6394
|
save: "/restapi/menus"
|
|
6359
6395
|
};
|
|
6360
|
-
function
|
|
6361
|
-
return
|
|
6396
|
+
function zl(e) {
|
|
6397
|
+
return ot.put(ql.save, e);
|
|
6362
6398
|
}
|
|
6363
|
-
const
|
|
6399
|
+
const $l = { class: "menu-title" }, Xl = {
|
|
6364
6400
|
key: 0,
|
|
6365
6401
|
class: "counts"
|
|
6366
|
-
},
|
|
6402
|
+
}, Zl = { class: "operations" }, Ql = { id: "icon-option" }, Jl = { key: 0 }, Yl = {
|
|
6367
6403
|
key: 1,
|
|
6368
6404
|
style: { color: "#9f9f9f" }
|
|
6369
|
-
},
|
|
6405
|
+
}, er = /* @__PURE__ */ ee({
|
|
6370
6406
|
__name: "index",
|
|
6371
6407
|
setup(e) {
|
|
6372
|
-
const t = Le(), o =
|
|
6408
|
+
const t = Le(), o = z("菜单管理"), n = [
|
|
6373
6409
|
{
|
|
6374
6410
|
title: "排序",
|
|
6375
6411
|
colKey: "drag",
|
|
@@ -6387,7 +6423,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6387
6423
|
colKey: "operations",
|
|
6388
6424
|
cell: "operations"
|
|
6389
6425
|
}
|
|
6390
|
-
], a =
|
|
6426
|
+
], a = F(() => t.userEdificeKey), l = z(!1), r = z(""), s = z(t.sideMenuTree), i = z({
|
|
6391
6427
|
edificeKey: "",
|
|
6392
6428
|
parent: null,
|
|
6393
6429
|
name: "",
|
|
@@ -6422,10 +6458,10 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6422
6458
|
trigger: "change"
|
|
6423
6459
|
}
|
|
6424
6460
|
]
|
|
6425
|
-
}, c =
|
|
6461
|
+
}, c = z(), d = F(() => c.value.tTableRef), b = z(), f = F(() => b.value.tFormRef), M = F(() => {
|
|
6426
6462
|
var A;
|
|
6427
6463
|
return (A = d.value) == null ? void 0 : A.getTreeNode();
|
|
6428
|
-
}), E =
|
|
6464
|
+
}), E = F(() => {
|
|
6429
6465
|
switch (r.value) {
|
|
6430
6466
|
case "addGroup":
|
|
6431
6467
|
return "添加组";
|
|
@@ -6438,17 +6474,17 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6438
6474
|
default:
|
|
6439
6475
|
return "";
|
|
6440
6476
|
}
|
|
6441
|
-
}), T =
|
|
6477
|
+
}), T = F(() => M.value ? uo(M.value) : []), h = F(
|
|
6442
6478
|
() => T.value.filter((A) => !A.url).map((A) => ({
|
|
6443
6479
|
label: A.title,
|
|
6444
6480
|
value: A.name
|
|
6445
6481
|
}))
|
|
6446
|
-
), y = tt(), g =
|
|
6482
|
+
), y = tt(), g = St();
|
|
6447
6483
|
function p() {
|
|
6448
|
-
const { fullPath: A, query: R } = y,
|
|
6484
|
+
const { fullPath: A, query: R } = y, W = decodeURIComponent(A);
|
|
6449
6485
|
g.appendTabMenuItem({
|
|
6450
6486
|
title: o.value,
|
|
6451
|
-
path:
|
|
6487
|
+
path: W,
|
|
6452
6488
|
query: R
|
|
6453
6489
|
});
|
|
6454
6490
|
}
|
|
@@ -6461,7 +6497,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6461
6497
|
function _(A) {
|
|
6462
6498
|
return A.filter((R) => R.isGroup);
|
|
6463
6499
|
}
|
|
6464
|
-
function
|
|
6500
|
+
function I(A = M.value) {
|
|
6465
6501
|
var R;
|
|
6466
6502
|
d.value && ((R = d.value) == null || R.resetData(A));
|
|
6467
6503
|
}
|
|
@@ -6481,24 +6517,24 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6481
6517
|
children: []
|
|
6482
6518
|
});
|
|
6483
6519
|
}
|
|
6484
|
-
function
|
|
6520
|
+
function te(A) {
|
|
6485
6521
|
if (i.value.children) {
|
|
6486
6522
|
const R = i.value.children.indexOf(A);
|
|
6487
6523
|
R != -1 && i.value.children.splice(R, 1);
|
|
6488
6524
|
}
|
|
6489
6525
|
}
|
|
6490
6526
|
function k(A) {
|
|
6491
|
-
i.value =
|
|
6527
|
+
i.value = it(A), l.value = !0, A.isGroup ? r.value = "editGroup" : r.value = "editItem";
|
|
6492
6528
|
}
|
|
6493
6529
|
function ne(A) {
|
|
6494
|
-
i.value =
|
|
6530
|
+
i.value = it(A), l.value = !0, r.value = "moveItemTo";
|
|
6495
6531
|
}
|
|
6496
6532
|
function O() {
|
|
6497
6533
|
l.value = !1, setTimeout(() => {
|
|
6498
|
-
|
|
6534
|
+
oe();
|
|
6499
6535
|
}, 100);
|
|
6500
6536
|
}
|
|
6501
|
-
function
|
|
6537
|
+
function oe() {
|
|
6502
6538
|
i.value = {
|
|
6503
6539
|
edificeKey: a.value,
|
|
6504
6540
|
parent: null,
|
|
@@ -6513,131 +6549,134 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6513
6549
|
}
|
|
6514
6550
|
function L(A, R) {
|
|
6515
6551
|
if (d.value) {
|
|
6516
|
-
const
|
|
6517
|
-
if (
|
|
6518
|
-
const { parent: re } =
|
|
6552
|
+
const W = T.value.find((re) => re.name == A);
|
|
6553
|
+
if (W) {
|
|
6554
|
+
const { parent: re } = W;
|
|
6519
6555
|
R !== re && (i.value.parent = R, d.value.remove(A), d.value.appendTo(R, i.value));
|
|
6520
6556
|
}
|
|
6521
6557
|
}
|
|
6522
6558
|
}
|
|
6523
6559
|
function Ae(A) {
|
|
6524
6560
|
try {
|
|
6525
|
-
const R =
|
|
6561
|
+
const R = vt.confirm({
|
|
6526
6562
|
theme: "info",
|
|
6527
6563
|
header: "撤销组",
|
|
6528
6564
|
body: `确定要撤销${A.title}吗?`,
|
|
6529
6565
|
onConfirm: () => {
|
|
6530
6566
|
var re, ke, ie, Te;
|
|
6531
|
-
let
|
|
6567
|
+
let W = [];
|
|
6532
6568
|
if (A.level == 1)
|
|
6533
6569
|
(re = A.children) == null || re.forEach((B) => {
|
|
6534
|
-
B.level = 1, B.parent = null,
|
|
6535
|
-
}), (ke = d.value) == null || ke.remove(A.name),
|
|
6570
|
+
B.level = 1, B.parent = null, W.push(B);
|
|
6571
|
+
}), (ke = d.value) == null || ke.remove(A.name), W.length && W.forEach((B) => {
|
|
6536
6572
|
var K;
|
|
6537
6573
|
(K = d.value) == null || K.appendTo("", B);
|
|
6538
6574
|
});
|
|
6539
6575
|
else if (A.level == 2) {
|
|
6540
6576
|
const { parent: B } = A;
|
|
6541
6577
|
(ie = A.children) == null || ie.forEach((K) => {
|
|
6542
|
-
K.level = 2, K.parent = B,
|
|
6543
|
-
}), (Te = d.value) == null || Te.remove(A.name),
|
|
6578
|
+
K.level = 2, K.parent = B, W.push(K);
|
|
6579
|
+
}), (Te = d.value) == null || Te.remove(A.name), I(), W.forEach((K) => {
|
|
6544
6580
|
var P;
|
|
6545
6581
|
(P = d.value) == null || P.appendTo(B, K);
|
|
6546
6582
|
});
|
|
6547
6583
|
}
|
|
6548
|
-
R.destroy(),
|
|
6584
|
+
R.destroy(), Y.success("撤销组成功");
|
|
6585
|
+
},
|
|
6586
|
+
onCancel: () => {
|
|
6587
|
+
fn.info("已取消撤销组操作");
|
|
6549
6588
|
}
|
|
6550
6589
|
});
|
|
6551
6590
|
} catch (R) {
|
|
6552
6591
|
console.error(R);
|
|
6553
6592
|
}
|
|
6554
|
-
|
|
6593
|
+
I();
|
|
6555
6594
|
}
|
|
6556
6595
|
function ue() {
|
|
6557
6596
|
var A;
|
|
6558
6597
|
(A = f.value) == null || A.validate().then((R) => {
|
|
6559
|
-
var
|
|
6598
|
+
var W, re, ke, ie, Te, B;
|
|
6560
6599
|
if (!Object.keys(R).length)
|
|
6561
|
-
r.value == "addGroup" ? (i.value.edificeKey = a.value, (
|
|
6600
|
+
r.value == "addGroup" ? (i.value.edificeKey = a.value, (W = d.value) == null || W.appendTo("", i.value), Y.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) => {
|
|
6562
6601
|
var P;
|
|
6563
6602
|
(P = d.value) == null || P.setData(K.name, K);
|
|
6564
|
-
}),
|
|
6603
|
+
}), Y.success("编辑组成功!")) : (L(
|
|
6565
6604
|
i.value.name,
|
|
6566
6605
|
i.value.parent
|
|
6567
|
-
),
|
|
6606
|
+
), Y.success("编辑菜单成功!"))) : r.value == "moveItemTo" && (L(
|
|
6568
6607
|
i.value.name,
|
|
6569
6608
|
i.value.parent
|
|
6570
|
-
),
|
|
6609
|
+
), Y.success("转移组成功!")), O();
|
|
6571
6610
|
else {
|
|
6572
6611
|
const K = (B = (Te = Object.values(R)[0]) == null ? void 0 : Te[0]) == null ? void 0 : B.message;
|
|
6573
|
-
|
|
6612
|
+
Y.warning(`${K}`);
|
|
6574
6613
|
}
|
|
6575
6614
|
});
|
|
6576
6615
|
}
|
|
6577
6616
|
function Ce() {
|
|
6578
6617
|
var A;
|
|
6579
|
-
(A = d.value) == null || A.resetData(t.sideMenuTree),
|
|
6618
|
+
(A = d.value) == null || A.resetData(t.sideMenuTree), Y.success("恢复默认菜单方案成功!");
|
|
6580
6619
|
}
|
|
6581
6620
|
async function Ve() {
|
|
6582
6621
|
const A = uo(M.value);
|
|
6583
6622
|
try {
|
|
6584
|
-
(await
|
|
6623
|
+
(await zl({ menus: [...A] })).state == 404 && (t.setSideMenuConfig(M.value), s.value = M.value, Y.success("保存菜单方案成功!"));
|
|
6585
6624
|
} catch (R) {
|
|
6586
|
-
|
|
6625
|
+
Y.error(R.message);
|
|
6587
6626
|
}
|
|
6588
6627
|
}
|
|
6589
|
-
function
|
|
6590
|
-
const { current: R, target:
|
|
6628
|
+
function x(A) {
|
|
6629
|
+
const { current: R, target: W, currentIndex: re, targetIndex: ke } = A, ie = R.level, Te = R.parent, B = W.level, K = W.parent;
|
|
6591
6630
|
if (ie == B) {
|
|
6592
6631
|
if (Te == K)
|
|
6593
6632
|
return !0;
|
|
6594
|
-
|
|
6633
|
+
Y.info("不同父菜单的菜单项,请使用转移至功能转移菜单");
|
|
6595
6634
|
} else
|
|
6596
|
-
|
|
6597
|
-
return
|
|
6635
|
+
Y.info("不同层级的菜单项,请使用转移至功能转移菜单");
|
|
6636
|
+
return I(), !1;
|
|
6598
6637
|
}
|
|
6599
6638
|
function U(A) {
|
|
6600
|
-
A.code &&
|
|
6639
|
+
A.code && Y.error("不同层级的菜单项,不允许调整顺序");
|
|
6601
6640
|
}
|
|
6602
6641
|
function le(A, R) {
|
|
6603
6642
|
var re;
|
|
6604
|
-
const
|
|
6605
|
-
if (
|
|
6606
|
-
const { parent: ke } =
|
|
6643
|
+
const W = (re = d.value) == null ? void 0 : re.getData(A.name);
|
|
6644
|
+
if (W) {
|
|
6645
|
+
const { parent: ke } = W;
|
|
6607
6646
|
if (ke) {
|
|
6608
6647
|
const { children: ie } = ke.row, Te = ie == null ? void 0 : ie.findIndex((B) => B.name == A.name);
|
|
6609
|
-
ie && (me(ie, R, Te),
|
|
6648
|
+
ie && (me(ie, R, Te), I());
|
|
6610
6649
|
} else {
|
|
6611
|
-
const ie =
|
|
6612
|
-
me(ie, R, Te),
|
|
6650
|
+
const ie = it(M), Te = ie.findIndex((B) => B.name == A.name);
|
|
6651
|
+
me(ie, R, Te), I(ie);
|
|
6613
6652
|
}
|
|
6614
6653
|
}
|
|
6615
6654
|
}
|
|
6616
|
-
function me(A, R,
|
|
6655
|
+
function me(A, R, W) {
|
|
6617
6656
|
switch (R) {
|
|
6618
6657
|
case "up": {
|
|
6619
|
-
|
|
6620
|
-
A[
|
|
6621
|
-
A[
|
|
6622
|
-
] :
|
|
6658
|
+
W != 0 ? [A[W - 1], A[W]] = [
|
|
6659
|
+
A[W],
|
|
6660
|
+
A[W - 1]
|
|
6661
|
+
] : Y.info("该菜单项已经在该组的第一个了!");
|
|
6623
6662
|
break;
|
|
6624
6663
|
}
|
|
6625
6664
|
case "down": {
|
|
6626
|
-
|
|
6627
|
-
A[
|
|
6628
|
-
A[
|
|
6629
|
-
] :
|
|
6665
|
+
W != A.length - 1 ? [A[W + 1], A[W]] = [
|
|
6666
|
+
A[W],
|
|
6667
|
+
A[W + 1]
|
|
6668
|
+
] : Y.info("该菜单项已经在该组的最后一个了!");
|
|
6630
6669
|
break;
|
|
6631
6670
|
}
|
|
6632
6671
|
}
|
|
6633
6672
|
}
|
|
6634
6673
|
return (A, R) => {
|
|
6635
|
-
const
|
|
6636
|
-
return v(), S(m(
|
|
6674
|
+
const W = D("t-button"), re = D("t-icon"), ke = D("t-input"), ie = D("t-form-item"), Te = D("t-option"), B = D("t-select"), K = D("t-input-group");
|
|
6675
|
+
return v(), S(m(Nl), { title: o.value }, {
|
|
6637
6676
|
default: w(() => [
|
|
6638
6677
|
V(m(Lo), null, {
|
|
6639
6678
|
"left-operations": w(() => [
|
|
6640
|
-
V(
|
|
6679
|
+
V(W, {
|
|
6641
6680
|
theme: "primary",
|
|
6642
6681
|
onClick: N
|
|
6643
6682
|
}, {
|
|
@@ -6646,7 +6685,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6646
6685
|
]),
|
|
6647
6686
|
_: 1
|
|
6648
6687
|
}),
|
|
6649
|
-
V(
|
|
6688
|
+
V(W, {
|
|
6650
6689
|
theme: "default",
|
|
6651
6690
|
onClick: Ce
|
|
6652
6691
|
}, {
|
|
@@ -6657,7 +6696,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6657
6696
|
})
|
|
6658
6697
|
]),
|
|
6659
6698
|
"right-operations": w(() => [
|
|
6660
|
-
V(
|
|
6699
|
+
V(W, {
|
|
6661
6700
|
theme: "primary",
|
|
6662
6701
|
onClick: Ve
|
|
6663
6702
|
}, {
|
|
@@ -6669,7 +6708,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6669
6708
|
]),
|
|
6670
6709
|
_: 1
|
|
6671
6710
|
}),
|
|
6672
|
-
V(m(
|
|
6711
|
+
V(m(Fo), {
|
|
6673
6712
|
ref_key: "commonTableRef",
|
|
6674
6713
|
ref: c,
|
|
6675
6714
|
id: "menu-table",
|
|
@@ -6679,7 +6718,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6679
6718
|
data: s.value,
|
|
6680
6719
|
columns: n,
|
|
6681
6720
|
dragSort: "row-handler",
|
|
6682
|
-
beforeDragSort:
|
|
6721
|
+
beforeDragSort: x,
|
|
6683
6722
|
onAbnormalDragSort: U,
|
|
6684
6723
|
tree: {
|
|
6685
6724
|
childrenKey: "children",
|
|
@@ -6702,9 +6741,9 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6702
6741
|
V(re, { name: "move" })
|
|
6703
6742
|
]),
|
|
6704
6743
|
title: w(({ row: P }) => [
|
|
6705
|
-
Z("span",
|
|
6744
|
+
Z("span", $l, [
|
|
6706
6745
|
Z("span", {
|
|
6707
|
-
class:
|
|
6746
|
+
class: $(["title", P.isGroup ? "title-bold" : "title-child"])
|
|
6708
6747
|
}, [
|
|
6709
6748
|
P.level == 1 && P.isGroup ? (v(), q(ve, { key: 0 }, [
|
|
6710
6749
|
P.icon ? (v(), S(re, {
|
|
@@ -6718,15 +6757,15 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6718
6757
|
name: "app",
|
|
6719
6758
|
size: "large"
|
|
6720
6759
|
}))
|
|
6721
|
-
], 64)) :
|
|
6760
|
+
], 64)) : G("", !0),
|
|
6722
6761
|
J(" " + ge(P.title), 1)
|
|
6723
6762
|
], 2),
|
|
6724
|
-
P.isGroup ? (v(), q("span",
|
|
6763
|
+
P.isGroup ? (v(), q("span", Xl, ge(P.children.length) + "项", 1)) : G("", !0)
|
|
6725
6764
|
])
|
|
6726
6765
|
]),
|
|
6727
6766
|
operations: w(({ row: P }) => [
|
|
6728
|
-
Z("div",
|
|
6729
|
-
V(
|
|
6767
|
+
Z("div", Zl, [
|
|
6768
|
+
V(W, {
|
|
6730
6769
|
variant: "text",
|
|
6731
6770
|
theme: "primary",
|
|
6732
6771
|
onClick: (H) => k(P)
|
|
@@ -6736,7 +6775,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6736
6775
|
]),
|
|
6737
6776
|
_: 2
|
|
6738
6777
|
}, 1032, ["onClick"]),
|
|
6739
|
-
V(
|
|
6778
|
+
V(W, {
|
|
6740
6779
|
variant: "text",
|
|
6741
6780
|
theme: "primary",
|
|
6742
6781
|
disabled: P.isGroup,
|
|
@@ -6747,7 +6786,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6747
6786
|
]),
|
|
6748
6787
|
_: 2
|
|
6749
6788
|
}, 1032, ["disabled", "onClick"]),
|
|
6750
|
-
V(
|
|
6789
|
+
V(W, {
|
|
6751
6790
|
variant: "text",
|
|
6752
6791
|
theme: "primary",
|
|
6753
6792
|
onClick: (H) => le(P, "up")
|
|
@@ -6757,7 +6796,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6757
6796
|
]),
|
|
6758
6797
|
_: 2
|
|
6759
6798
|
}, 1032, ["onClick"]),
|
|
6760
|
-
V(
|
|
6799
|
+
V(W, {
|
|
6761
6800
|
variant: "text",
|
|
6762
6801
|
theme: "primary",
|
|
6763
6802
|
onClick: (H) => le(P, "down")
|
|
@@ -6767,7 +6806,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6767
6806
|
]),
|
|
6768
6807
|
_: 2
|
|
6769
6808
|
}, 1032, ["onClick"]),
|
|
6770
|
-
V(
|
|
6809
|
+
V(W, {
|
|
6771
6810
|
variant: "text",
|
|
6772
6811
|
theme: "primary",
|
|
6773
6812
|
disabled: !P.isGroup,
|
|
@@ -6791,7 +6830,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6791
6830
|
}
|
|
6792
6831
|
}, {
|
|
6793
6832
|
default: w(() => [
|
|
6794
|
-
V(m(
|
|
6833
|
+
V(m(On), {
|
|
6795
6834
|
ref_key: "commonFormRef",
|
|
6796
6835
|
ref: b,
|
|
6797
6836
|
commonFormProps: {
|
|
@@ -6800,9 +6839,9 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6800
6839
|
labelAlign: "right",
|
|
6801
6840
|
labelWidth: "110px"
|
|
6802
6841
|
}
|
|
6803
|
-
},
|
|
6842
|
+
}, _t({
|
|
6804
6843
|
footer: w(() => [
|
|
6805
|
-
V(
|
|
6844
|
+
V(W, {
|
|
6806
6845
|
theme: "default",
|
|
6807
6846
|
onClick: O
|
|
6808
6847
|
}, {
|
|
@@ -6811,7 +6850,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6811
6850
|
]),
|
|
6812
6851
|
_: 1
|
|
6813
6852
|
}),
|
|
6814
|
-
V(
|
|
6853
|
+
V(W, { onClick: ue }, {
|
|
6815
6854
|
default: w(() => [
|
|
6816
6855
|
J("确定")
|
|
6817
6856
|
]),
|
|
@@ -6868,22 +6907,22 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6868
6907
|
clearable: !0
|
|
6869
6908
|
}, {
|
|
6870
6909
|
valueDisplay: w(() => [
|
|
6871
|
-
i.value.icon ? (v(), q("span",
|
|
6910
|
+
i.value.icon ? (v(), q("span", Jl, [
|
|
6872
6911
|
V(re, {
|
|
6873
6912
|
name: i.value.icon,
|
|
6874
6913
|
style: { marginRight: "8px" }
|
|
6875
6914
|
}, null, 8, ["name"]),
|
|
6876
6915
|
J(ge(i.value.icon), 1)
|
|
6877
|
-
])) : (v(), q("span",
|
|
6916
|
+
])) : (v(), q("span", Yl, "请选择图标标识"))
|
|
6878
6917
|
]),
|
|
6879
6918
|
default: w(() => [
|
|
6880
|
-
(v(!0), q(ve, null, ye(m(
|
|
6919
|
+
(v(!0), q(ve, null, ye(m(Hl), (P) => (v(), S(Te, {
|
|
6881
6920
|
value: P.stem,
|
|
6882
6921
|
key: P.stem,
|
|
6883
6922
|
class: "overlay-options"
|
|
6884
6923
|
}, {
|
|
6885
6924
|
default: w(() => [
|
|
6886
|
-
Z("span",
|
|
6925
|
+
Z("span", Ql, [
|
|
6887
6926
|
V(re, {
|
|
6888
6927
|
name: P.stem,
|
|
6889
6928
|
size: "small"
|
|
@@ -6897,8 +6936,8 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6897
6936
|
}, 8, ["modelValue"])
|
|
6898
6937
|
]),
|
|
6899
6938
|
_: 1
|
|
6900
|
-
})) :
|
|
6901
|
-
i.value.isGroup ?
|
|
6939
|
+
})) : G("", !0),
|
|
6940
|
+
i.value.isGroup ? G("", !0) : (v(), S(ie, {
|
|
6902
6941
|
key: 1,
|
|
6903
6942
|
name: "parent",
|
|
6904
6943
|
label: "父菜单",
|
|
@@ -6918,7 +6957,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6918
6957
|
label: "分组"
|
|
6919
6958
|
}, {
|
|
6920
6959
|
default: w(() => [
|
|
6921
|
-
V(
|
|
6960
|
+
V(W, {
|
|
6922
6961
|
variant: "outline",
|
|
6923
6962
|
onClick: j
|
|
6924
6963
|
}, {
|
|
@@ -6929,7 +6968,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6929
6968
|
})
|
|
6930
6969
|
]),
|
|
6931
6970
|
_: 1
|
|
6932
|
-
})) :
|
|
6971
|
+
})) : G("", !0),
|
|
6933
6972
|
(v(!0), q(ve, null, ye(_(i.value.children), (P, H) => (v(), S(ie, {
|
|
6934
6973
|
key: "group" + H,
|
|
6935
6974
|
label: H == 0 ? "分组" : " "
|
|
@@ -6957,17 +6996,17 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6957
6996
|
de
|
|
6958
6997
|
)
|
|
6959
6998
|
}, null, 8, ["value", "onChange"]),
|
|
6960
|
-
V(
|
|
6999
|
+
V(W, {
|
|
6961
7000
|
variant: "outline",
|
|
6962
7001
|
theme: "default",
|
|
6963
|
-
onClick: (de) =>
|
|
7002
|
+
onClick: (de) => te(P)
|
|
6964
7003
|
}, {
|
|
6965
7004
|
default: w(() => [
|
|
6966
7005
|
J("- ")
|
|
6967
7006
|
]),
|
|
6968
7007
|
_: 2
|
|
6969
7008
|
}, 1032, ["onClick"]),
|
|
6970
|
-
H == _(i.value.children).length - 1 ? (v(), S(
|
|
7009
|
+
H == _(i.value.children).length - 1 ? (v(), S(W, {
|
|
6971
7010
|
key: 0,
|
|
6972
7011
|
variant: "outline",
|
|
6973
7012
|
theme: "default",
|
|
@@ -6977,7 +7016,7 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
6977
7016
|
J("+ ")
|
|
6978
7017
|
]),
|
|
6979
7018
|
_: 1
|
|
6980
|
-
}, 8, ["onClick"])) :
|
|
7019
|
+
}, 8, ["onClick"])) : G("", !0)
|
|
6981
7020
|
]),
|
|
6982
7021
|
_: 2
|
|
6983
7022
|
}, 1024)
|
|
@@ -7007,13 +7046,13 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
7007
7046
|
}, 1024)
|
|
7008
7047
|
]),
|
|
7009
7048
|
_: 2
|
|
7010
|
-
}, 1032, ["label"]))), 128)) :
|
|
7049
|
+
}, 1032, ["label"]))), 128)) : G("", !0)
|
|
7011
7050
|
]),
|
|
7012
7051
|
key: "0"
|
|
7013
7052
|
} : r.value == "moveItemTo" ? {
|
|
7014
7053
|
name: "body",
|
|
7015
7054
|
fn: w(() => [
|
|
7016
|
-
i.value.isGroup ?
|
|
7055
|
+
i.value.isGroup ? G("", !0) : (v(), S(ie, {
|
|
7017
7056
|
key: 0,
|
|
7018
7057
|
name: "parent",
|
|
7019
7058
|
label: "转移至",
|
|
@@ -7041,83 +7080,83 @@ const ql = { class: "menu-title" }, $l = {
|
|
|
7041
7080
|
};
|
|
7042
7081
|
}
|
|
7043
7082
|
});
|
|
7044
|
-
const
|
|
7045
|
-
function
|
|
7046
|
-
e.component("GView",
|
|
7083
|
+
const Er = Qe(er);
|
|
7084
|
+
function tr(e, t) {
|
|
7085
|
+
e.component("GView", xl);
|
|
7047
7086
|
}
|
|
7048
|
-
function
|
|
7049
|
-
Le(e),
|
|
7087
|
+
function Br(e) {
|
|
7088
|
+
Le(e), St(e), Zt(e), Xt(e);
|
|
7050
7089
|
}
|
|
7051
|
-
const
|
|
7052
|
-
install:
|
|
7090
|
+
const Lr = {
|
|
7091
|
+
install: tr
|
|
7053
7092
|
};
|
|
7054
7093
|
export {
|
|
7055
|
-
|
|
7094
|
+
Nr as $,
|
|
7056
7095
|
Zt as A,
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7096
|
+
En as B,
|
|
7097
|
+
Sn as C,
|
|
7098
|
+
Vr as D,
|
|
7060
7099
|
Ht as E,
|
|
7061
|
-
|
|
7100
|
+
Qn as F,
|
|
7062
7101
|
Eo as G,
|
|
7063
7102
|
Ge as H,
|
|
7064
7103
|
Ot as I,
|
|
7065
7104
|
co as J,
|
|
7066
|
-
|
|
7067
|
-
|
|
7105
|
+
Tn as K,
|
|
7106
|
+
st as L,
|
|
7068
7107
|
Vo as M,
|
|
7069
7108
|
Mo as N,
|
|
7070
|
-
|
|
7109
|
+
br as O,
|
|
7071
7110
|
X as P,
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7111
|
+
yr as Q,
|
|
7112
|
+
wr as R,
|
|
7113
|
+
kr as S,
|
|
7114
|
+
pr as T,
|
|
7115
|
+
Cr as U,
|
|
7116
|
+
Tr as V,
|
|
7117
|
+
yn as W,
|
|
7118
|
+
_r as X,
|
|
7119
|
+
Ir as Y,
|
|
7120
|
+
xr as Z,
|
|
7082
7121
|
ln as _,
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7122
|
+
On as a,
|
|
7123
|
+
Sr as a0,
|
|
7124
|
+
wt as a1,
|
|
7125
|
+
kt as a2,
|
|
7126
|
+
xe as a3,
|
|
7088
7127
|
Po as a4,
|
|
7089
7128
|
xo as a5,
|
|
7090
7129
|
uo as a6,
|
|
7091
7130
|
No as a7,
|
|
7092
7131
|
So as a8,
|
|
7093
|
-
|
|
7132
|
+
lt as a9,
|
|
7094
7133
|
je as aa,
|
|
7095
|
-
|
|
7134
|
+
Jn as ab,
|
|
7096
7135
|
mo as ac,
|
|
7097
|
-
|
|
7136
|
+
Er as ad,
|
|
7098
7137
|
Lo as b,
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7138
|
+
Fo as c,
|
|
7139
|
+
Nl as d,
|
|
7140
|
+
Ar as e,
|
|
7141
|
+
Mr as f,
|
|
7103
7142
|
lo as g,
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7143
|
+
ot as h,
|
|
7144
|
+
Lr as i,
|
|
7145
|
+
vn as j,
|
|
7146
|
+
hr as k,
|
|
7108
7147
|
ro as l,
|
|
7109
7148
|
io as m,
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7149
|
+
Dt as n,
|
|
7150
|
+
gr as o,
|
|
7151
|
+
vr as p,
|
|
7113
7152
|
so as q,
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7153
|
+
bn as r,
|
|
7154
|
+
Br as s,
|
|
7155
|
+
wn as t,
|
|
7156
|
+
kn as u,
|
|
7157
|
+
Gn as v,
|
|
7158
|
+
jn as w,
|
|
7120
7159
|
Le as x,
|
|
7121
|
-
|
|
7160
|
+
St as y,
|
|
7122
7161
|
Xt as z
|
|
7123
7162
|
};
|