@skyfox2000/webui 1.4.4 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/modules/{baseLayout-CYzXPj7i.js → baseLayout-CUZpKmC0.js} +3 -3
- package/lib/assets/modules/{file-upload-Dmi2Kiqo.js → file-upload-BrTPBL29.js} +3 -3
- package/lib/assets/modules/{index-QDkmhaJS.js → index-BqoqvtEv.js} +1 -1
- package/lib/assets/modules/{index-RrFsG5IK.js → index-DP1u2P1k.js} +2 -2
- package/lib/assets/modules/{index-1Qt9-aFa.js → index-NDOzpgzV.js} +2 -2
- package/lib/assets/modules/{menuTabs-sfALzkA5.js → menuTabs-BaZAmaXz.js} +2 -2
- package/lib/assets/modules/{toolIcon-C6QsaAZ8.js → toolIcon-DHKszGtC.js} +1 -1
- package/lib/assets/modules/{uploadList-Bh1TJ-XO.js → uploadList-C5R2XD5x.js} +4 -4
- package/lib/assets/modules/{uploadList-C4BvnORD.js → uploadList-DSN9t4r8.js} +205 -203
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +12 -12
- package/package.json +2 -2
- package/src/stores/appInfo.ts +5 -1
- package/src/stores/userInfo.ts +6 -0
- package/src/utils/file-upload.ts +2 -2
- package/src/utils/micro-openapis.ts +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var ha = Object.defineProperty;
|
|
2
2
|
var ma = (e, t, a) => t in e ? ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var L = (e, t, a) => ma(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { ref as f, h as H, nextTick as va, inject as se, provide as
|
|
4
|
+
import { ref as f, h as H, nextTick as va, inject as se, provide as Me, watch as g, toRaw as Ze, shallowRef as J, defineComponent as Z, reactive as ga, onMounted as Ie, onUnmounted as le, createBlock as Ae, createCommentVNode as z, openBlock as w, unref as b, mergeProps as ue, useAttrs as Ee, createElementBlock as $, createVNode as C, withCtx as Q, createTextVNode as xe, toDisplayString as Y, Fragment as oe, renderList as Ue, normalizeClass as ea, createElementVNode as ya } from "vue";
|
|
5
5
|
import { Switch as Sa, AutoComplete as ba, Input as Ia, CheckboxGroup as Aa, Checkbox as Ea, RadioGroup as xa, Radio as wa, Select as Oa, SelectOption as Ra } from "ant-design-vue";
|
|
6
|
-
import { createPinia as Ta, defineStore as
|
|
6
|
+
import { createPinia as Ta, defineStore as ce } from "pinia";
|
|
7
7
|
import Pa from "pinia-plugin-persistedstate";
|
|
8
|
-
import { EnvConfig as
|
|
9
|
-
import { httpPost as
|
|
8
|
+
import { EnvConfig as Se, AppAction as Be, AppSource as ze, isMicroApp as V, isBaseMicroApp as ka, combineParams as fe } from "@skyfox2000/microbase";
|
|
9
|
+
import { httpPost as q, ResStatus as T, setToken as ve, fieldMapping as La, parseFieldTemplate as be, API_HOST as $e, SERVER_HOST as Ma } from "@skyfox2000/fapi";
|
|
10
10
|
import E from "vue-m-message";
|
|
11
11
|
import { createRouter as $a, createWebHashHistory as Fa } from "vue-router";
|
|
12
12
|
import He from "async-validator";
|
|
@@ -110,7 +110,7 @@ N.setOptions("EnableDisable", N.EnableDisable);
|
|
|
110
110
|
N.setOptions("SuccessResult", N.SuccessResult);
|
|
111
111
|
N.setOptions("YesNo", N.YesNo);
|
|
112
112
|
N.setOptions("MaleFemale", N.MaleFemale);
|
|
113
|
-
const
|
|
113
|
+
const pe = {
|
|
114
114
|
/**
|
|
115
115
|
* 选项数据接口
|
|
116
116
|
*/
|
|
@@ -173,17 +173,17 @@ const fe = {
|
|
|
173
173
|
type: Object,
|
|
174
174
|
required: !1
|
|
175
175
|
}
|
|
176
|
-
}, F = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Ce = "/login/",
|
|
176
|
+
}, F = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Ce = "/login/", ye = [], Na = (e) => {
|
|
177
177
|
for (const t of e) {
|
|
178
|
-
const a =
|
|
179
|
-
a !== -1 &&
|
|
178
|
+
const a = ye.findIndex((s) => s.path === t.path);
|
|
179
|
+
a !== -1 && ye.splice(a, 1), ye.push(t), we.addRoute(t);
|
|
180
180
|
}
|
|
181
181
|
}, aa = (e, t, a, s = "") => {
|
|
182
182
|
const n = s + (s ? "/" : "") + e.path;
|
|
183
183
|
t[n] = { ...e, parent: a }, e.children && e.children.forEach((o) => aa(o, t, e, n));
|
|
184
|
-
},
|
|
184
|
+
}, we = $a({
|
|
185
185
|
history: Fa("/"),
|
|
186
|
-
routes:
|
|
186
|
+
routes: ye
|
|
187
187
|
}), Da = (e, t) => {
|
|
188
188
|
var n, o;
|
|
189
189
|
const a = ((n = e.meta) == null ? void 0 : n.roles) ?? [], s = (o = e.meta) == null ? void 0 : o.permission;
|
|
@@ -191,9 +191,9 @@ const fe = {
|
|
|
191
191
|
return a.length === 0 && !s;
|
|
192
192
|
if (t) {
|
|
193
193
|
const r = _();
|
|
194
|
-
if (
|
|
194
|
+
if (Se.VITE_PERMISSION_MODE === "role")
|
|
195
195
|
return a.length === 0 ? !0 : r.hasRole(a);
|
|
196
|
-
if (
|
|
196
|
+
if (Se.VITE_PERMISSION_MODE === "permit") {
|
|
197
197
|
if (a.length === 0 && !s)
|
|
198
198
|
return !0;
|
|
199
199
|
let l = !1, u = !1;
|
|
@@ -202,14 +202,14 @@ const fe = {
|
|
|
202
202
|
}
|
|
203
203
|
return !1;
|
|
204
204
|
}, ne = f(null);
|
|
205
|
-
|
|
205
|
+
we.beforeEach((e, t, a) => {
|
|
206
206
|
var l;
|
|
207
207
|
const s = e;
|
|
208
208
|
if (e.path.startsWith("/error/") || e.path.startsWith(Ce))
|
|
209
209
|
return a();
|
|
210
210
|
const n = s.meta, r = ((n == null ? void 0 : n.roles) ?? []).length > 0 || ((l = n == null ? void 0 : n.permission) == null ? void 0 : l.length);
|
|
211
211
|
if (e.path === "/") {
|
|
212
|
-
const u =
|
|
212
|
+
const u = K();
|
|
213
213
|
if (!u.menuLoaded) {
|
|
214
214
|
ne.value = {
|
|
215
215
|
to: e,
|
|
@@ -229,7 +229,7 @@ xe.beforeEach((e, t, a) => {
|
|
|
229
229
|
if (!u.isLogin)
|
|
230
230
|
a({ path: Ce });
|
|
231
231
|
else {
|
|
232
|
-
if (!
|
|
232
|
+
if (!K().menuLoaded) {
|
|
233
233
|
ne.value = {
|
|
234
234
|
to: e,
|
|
235
235
|
next: a
|
|
@@ -253,7 +253,7 @@ const Ua = (e) => {
|
|
|
253
253
|
return;
|
|
254
254
|
t.TabPanes.push(e);
|
|
255
255
|
}
|
|
256
|
-
}, Va = (e, t) => t.find((a) => a.key === e), Ve =
|
|
256
|
+
}, Va = (e, t) => t.find((a) => a.key === e), Ve = ce("pageInfo", {
|
|
257
257
|
state: () => ({
|
|
258
258
|
TabActive: "",
|
|
259
259
|
TabPanes: [],
|
|
@@ -266,7 +266,7 @@ const Ua = (e) => {
|
|
|
266
266
|
*/
|
|
267
267
|
removeTabPane(e) {
|
|
268
268
|
if (this.TabEnabled) {
|
|
269
|
-
|
|
269
|
+
K().excludeComponent(e);
|
|
270
270
|
let a = 0, s = [...this.TabPanes];
|
|
271
271
|
for (let n = 0; n < s.length; n++)
|
|
272
272
|
if (s[n].key === e) {
|
|
@@ -287,7 +287,7 @@ const Ua = (e) => {
|
|
|
287
287
|
* @returns
|
|
288
288
|
*/
|
|
289
289
|
async setTabActive(e) {
|
|
290
|
-
let a =
|
|
290
|
+
let a = K().findRoute(e);
|
|
291
291
|
if (!a) return;
|
|
292
292
|
const s = {
|
|
293
293
|
key: e,
|
|
@@ -347,7 +347,7 @@ class A {
|
|
|
347
347
|
*/
|
|
348
348
|
static init() {
|
|
349
349
|
this.isInMicroApp() && window.microApp.addDataListener((t) => {
|
|
350
|
-
|
|
350
|
+
this.handleResponseData(t);
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
/**
|
|
@@ -389,7 +389,7 @@ class A {
|
|
|
389
389
|
}
|
|
390
390
|
L(A, "messageId", 0), L(A, "callbacks", /* @__PURE__ */ new Map());
|
|
391
391
|
A.init();
|
|
392
|
-
const
|
|
392
|
+
const re = {
|
|
393
393
|
getAppInfo: A.getAppInfo.bind(A),
|
|
394
394
|
getHostInfo: A.getHostInfo.bind(A),
|
|
395
395
|
getUserInfo: A.getUserInfo.bind(A),
|
|
@@ -404,13 +404,13 @@ const _e = {
|
|
|
404
404
|
url: "/api/RCTenanetOpSrv/getApps",
|
|
405
405
|
loadingText: !1
|
|
406
406
|
}
|
|
407
|
-
},
|
|
407
|
+
}, Fe = /* @__PURE__ */ new Map(), Qa = (e) => {
|
|
408
408
|
const t = _(), { roles: a, permission: s } = e.meta || {};
|
|
409
409
|
if (F(a) && F(s))
|
|
410
410
|
return !0;
|
|
411
|
-
if (
|
|
411
|
+
if (Se.VITE_PERMISSION_MODE === "role")
|
|
412
412
|
return F(a) ? !0 : t.hasRole(a);
|
|
413
|
-
if (
|
|
413
|
+
if (Se.VITE_PERMISSION_MODE === "permit") {
|
|
414
414
|
let n = !1, o = !1;
|
|
415
415
|
return F(a) || (n = t.hasRole(a)), t.isAdmin() ? n : (F(s) || (o = t.hasPermit(e.path, s)), n || o);
|
|
416
416
|
}
|
|
@@ -430,7 +430,7 @@ const _e = {
|
|
|
430
430
|
return s;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
},
|
|
433
|
+
}, K = ce("appInfo", {
|
|
434
434
|
state: () => ({
|
|
435
435
|
appInfo: {
|
|
436
436
|
Id: "",
|
|
@@ -464,7 +464,7 @@ const _e = {
|
|
|
464
464
|
});
|
|
465
465
|
},
|
|
466
466
|
async getRemoteAppList() {
|
|
467
|
-
return
|
|
467
|
+
return q(Ka.appList, {
|
|
468
468
|
Query: {
|
|
469
469
|
AppCode: this.appInfo.AppCode,
|
|
470
470
|
Enabled: 1
|
|
@@ -472,7 +472,7 @@ const _e = {
|
|
|
472
472
|
}).then((e) => {
|
|
473
473
|
if ((e == null ? void 0 : e.status) === T.SUCCESS && e.data)
|
|
474
474
|
this.appList.length = 0, this.appList.push(...e.data);
|
|
475
|
-
else if ((e == null ? void 0 : e.errno) ==
|
|
475
|
+
else if ((e == null ? void 0 : e.errno) == Oe) {
|
|
476
476
|
_().logout(!1);
|
|
477
477
|
return;
|
|
478
478
|
}
|
|
@@ -508,7 +508,7 @@ const _e = {
|
|
|
508
508
|
flattenRoutes: {},
|
|
509
509
|
Routes: t ?? [],
|
|
510
510
|
defaultPage: ""
|
|
511
|
-
}), (!
|
|
511
|
+
}), (!V() || !ka()) && (await _().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
|
|
512
512
|
},
|
|
513
513
|
/**
|
|
514
514
|
* 设置当前应用路由信息
|
|
@@ -530,9 +530,9 @@ const _e = {
|
|
|
530
530
|
}), _().isLogin) {
|
|
531
531
|
const a = ta(this.appInfo.Routes);
|
|
532
532
|
if (Na(a), this.appInfo.defaultPage = sa(a) || "", this.appInfo.defaultPage) {
|
|
533
|
-
if (this.menuLoaded = !0,
|
|
533
|
+
if (this.menuLoaded = !0, V()) {
|
|
534
534
|
const s = this.formatRoute(this.appInfo.defaultPage);
|
|
535
|
-
|
|
535
|
+
re.mainAppPush(s);
|
|
536
536
|
}
|
|
537
537
|
Ua(this.appInfo.defaultPage);
|
|
538
538
|
}
|
|
@@ -553,9 +553,9 @@ const _e = {
|
|
|
553
553
|
*/
|
|
554
554
|
push(e) {
|
|
555
555
|
this.findRoute(e) && Ve().setTabActive(e), va(() => {
|
|
556
|
-
if (
|
|
556
|
+
if (we.push({ path: e }), V()) {
|
|
557
557
|
const a = this.formatRoute(e);
|
|
558
|
-
|
|
558
|
+
re.mainAppPush(a);
|
|
559
559
|
}
|
|
560
560
|
});
|
|
561
561
|
},
|
|
@@ -574,7 +574,7 @@ const _e = {
|
|
|
574
574
|
* @returns 组件实例
|
|
575
575
|
*/
|
|
576
576
|
cacheComponent(e, t) {
|
|
577
|
-
let a =
|
|
577
|
+
let a = Fe.get(t.path);
|
|
578
578
|
if (!a)
|
|
579
579
|
if (this.CachedComponents.includes(t.path))
|
|
580
580
|
a = {
|
|
@@ -583,7 +583,7 @@ const _e = {
|
|
|
583
583
|
render() {
|
|
584
584
|
return H(e);
|
|
585
585
|
}
|
|
586
|
-
},
|
|
586
|
+
}, Fe.set(t.path, a);
|
|
587
587
|
else return e;
|
|
588
588
|
return a;
|
|
589
589
|
},
|
|
@@ -592,7 +592,7 @@ const _e = {
|
|
|
592
592
|
* @param path 路由地址
|
|
593
593
|
*/
|
|
594
594
|
excludeComponent(e) {
|
|
595
|
-
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1),
|
|
595
|
+
this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), Fe.delete(e);
|
|
596
596
|
},
|
|
597
597
|
/**
|
|
598
598
|
* 路由路径层级查询,返回面包屑
|
|
@@ -623,11 +623,11 @@ const _e = {
|
|
|
623
623
|
}, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
|
|
624
624
|
},
|
|
625
625
|
logout() {
|
|
626
|
-
this.clean(), window.location.assign("/");
|
|
626
|
+
this.clean(), V() ? re.mainAppPush("/") : window.location.assign("/");
|
|
627
627
|
}
|
|
628
628
|
},
|
|
629
629
|
persist: !1
|
|
630
|
-
}), Ja = "Token解析失败",
|
|
630
|
+
}), Ja = "Token解析失败", Oe = 1400, Ke = {
|
|
631
631
|
login: {
|
|
632
632
|
api: "PLATFORM_API",
|
|
633
633
|
url: "/openapi/LoginSrv/login",
|
|
@@ -652,17 +652,17 @@ const _e = {
|
|
|
652
652
|
},
|
|
653
653
|
Query: e
|
|
654
654
|
};
|
|
655
|
-
return
|
|
655
|
+
return q(Ke.login, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a : null);
|
|
656
656
|
}, Ga = (e) => {
|
|
657
657
|
let t = {
|
|
658
658
|
Query: {
|
|
659
659
|
AppId: e
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
return
|
|
662
|
+
return q(Ke.auth, t).then((a) => {
|
|
663
663
|
if ((a == null ? void 0 : a.status) === T.SUCCESS)
|
|
664
664
|
return a.data;
|
|
665
|
-
if ((a == null ? void 0 : a.errno) ==
|
|
665
|
+
if ((a == null ? void 0 : a.errno) == Oe) {
|
|
666
666
|
_().logout(!1);
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
@@ -673,7 +673,7 @@ const _e = {
|
|
|
673
673
|
Option: {},
|
|
674
674
|
Query: {}
|
|
675
675
|
};
|
|
676
|
-
return
|
|
676
|
+
return q(Ke.logout, e).then((t) => (t == null ? void 0 : t.status) === T.SUCCESS ? t.data : null);
|
|
677
677
|
}, Wa = (e) => {
|
|
678
678
|
try {
|
|
679
679
|
const t = JSON.parse(atob(e.token.split(".")[1]));
|
|
@@ -681,7 +681,7 @@ const _e = {
|
|
|
681
681
|
} catch (t) {
|
|
682
682
|
return console.error(Ja, t), !1;
|
|
683
683
|
}
|
|
684
|
-
}, M = f(""), ae = f(null), _ =
|
|
684
|
+
}, M = f(""), ae = f(null), _ = ce("userInfo", {
|
|
685
685
|
state: () => ({
|
|
686
686
|
isLogin: !1,
|
|
687
687
|
userInfo: {
|
|
@@ -699,7 +699,7 @@ const _e = {
|
|
|
699
699
|
* 启动时初始化用户信息
|
|
700
700
|
*/
|
|
701
701
|
init() {
|
|
702
|
-
|
|
702
|
+
V() || (this.token ? (ve(this.token), M.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
|
|
703
703
|
},
|
|
704
704
|
/**
|
|
705
705
|
* 登录操作
|
|
@@ -714,7 +714,7 @@ const _e = {
|
|
|
714
714
|
return s;
|
|
715
715
|
{
|
|
716
716
|
const n = a.data;
|
|
717
|
-
if (this.token = n.token,
|
|
717
|
+
if (this.token = n.token, ve(this.token), this.isLogin = !0, Wa(n))
|
|
718
718
|
this.userInfo = {
|
|
719
719
|
...this.userInfo,
|
|
720
720
|
...n.UserInfo
|
|
@@ -723,7 +723,7 @@ const _e = {
|
|
|
723
723
|
E.error("用户信息解析失败");
|
|
724
724
|
return;
|
|
725
725
|
}
|
|
726
|
-
t &&
|
|
726
|
+
t && K().toDefaultApp();
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
},
|
|
@@ -784,7 +784,7 @@ const _e = {
|
|
|
784
784
|
M.value || (M.value = e.UserLevel, this.userInfo = {
|
|
785
785
|
...this.userInfo,
|
|
786
786
|
...e
|
|
787
|
-
}, this.token = t,
|
|
787
|
+
}, this.token = t, ve(this.token), this.isLogin = !0);
|
|
788
788
|
},
|
|
789
789
|
/**
|
|
790
790
|
* 获取用户Token
|
|
@@ -822,7 +822,7 @@ const _e = {
|
|
|
822
822
|
Code: "",
|
|
823
823
|
TenantId: "",
|
|
824
824
|
UserLevel: ""
|
|
825
|
-
}, this.token = "",
|
|
825
|
+
}, this.token = "", ve(this.token), this.isLogin = !1, ae.value = null, M.value = "", K().clean(), Promise.resolve();
|
|
826
826
|
},
|
|
827
827
|
/**
|
|
828
828
|
* 登出操作
|
|
@@ -830,6 +830,8 @@ const _e = {
|
|
|
830
830
|
* @returns
|
|
831
831
|
*/
|
|
832
832
|
async logout(e) {
|
|
833
|
+
if (V())
|
|
834
|
+
return re.userLogout(), Promise.resolve();
|
|
833
835
|
try {
|
|
834
836
|
e && await qa();
|
|
835
837
|
} catch (t) {
|
|
@@ -838,13 +840,13 @@ const _e = {
|
|
|
838
840
|
await this.clean(), e && setTimeout(async () => {
|
|
839
841
|
E.success("已退出登录");
|
|
840
842
|
}, 1e3), setTimeout(async () => {
|
|
841
|
-
|
|
843
|
+
K().logout();
|
|
842
844
|
}, 2e3);
|
|
843
845
|
}
|
|
844
846
|
return Promise.resolve();
|
|
845
847
|
}
|
|
846
848
|
},
|
|
847
|
-
persist:
|
|
849
|
+
persist: V() ? !1 : {
|
|
848
850
|
key: "MICROAPP_USER_INFO",
|
|
849
851
|
storage: localStorage,
|
|
850
852
|
pick: ["token", "userInfo"],
|
|
@@ -853,7 +855,7 @@ const _e = {
|
|
|
853
855
|
e.store.init();
|
|
854
856
|
}
|
|
855
857
|
}
|
|
856
|
-
}),
|
|
858
|
+
}), Re = (e, t) => {
|
|
857
859
|
var n;
|
|
858
860
|
const a = e.page;
|
|
859
861
|
return {
|
|
@@ -863,23 +865,23 @@ const _e = {
|
|
|
863
865
|
...t.url,
|
|
864
866
|
loadingText: t.loadingText
|
|
865
867
|
};
|
|
866
|
-
},
|
|
868
|
+
}, Te = (e, t) => {
|
|
867
869
|
const a = e.page, s = t.url;
|
|
868
870
|
if (!s || !s.url) {
|
|
869
871
|
const o = `URL未设置: ${t.urlKey}`;
|
|
870
872
|
return console.warn(o), Promise.reject(new Error(o));
|
|
871
873
|
}
|
|
872
874
|
s.api || (s.api = a.api), s.authorize === void 0 && (s.authorize = a.authorize);
|
|
873
|
-
let n =
|
|
875
|
+
let n = fe(
|
|
874
876
|
JSON.parse(JSON.stringify(s.params ?? {})),
|
|
875
877
|
JSON.parse(JSON.stringify(t.params ?? {}))
|
|
876
878
|
);
|
|
877
|
-
return t.processParams && (n = t.processParams(n)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0),
|
|
879
|
+
return t.processParams && (n = t.processParams(n)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), q(s, n).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == Oe ? (_().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
|
|
878
880
|
}, Qe = (e, t) => {
|
|
879
881
|
t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
|
|
880
|
-
const a =
|
|
881
|
-
return t.url = a,
|
|
882
|
-
}, Lt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url =
|
|
882
|
+
const a = Re(e, t);
|
|
883
|
+
return t.url = a, Te(e, t);
|
|
884
|
+
}, Lt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Re(e, t), Te(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || E.success("执行成功!")), a))), na = (e, t = {}) => {
|
|
883
885
|
const a = t.primaryKey || "Id";
|
|
884
886
|
if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
|
|
885
887
|
return E.error("错误!无保存数据!"), Promise.resolve(null);
|
|
@@ -889,8 +891,8 @@ const _e = {
|
|
|
889
891
|
loadingText: t.loadingText === !1 ? !1 : t.loadingText || "数据保存中..."
|
|
890
892
|
};
|
|
891
893
|
s.params.Query[a] = s.params.Data[a];
|
|
892
|
-
const n =
|
|
893
|
-
return s.url = n,
|
|
894
|
+
const n = Re(e, s);
|
|
895
|
+
return s.url = n, Te(e, s).then((o) => ((o == null ? void 0 : o.status) === T.SUCCESS && (t.hideErrorToast || E.success("保存成功!")), o));
|
|
894
896
|
}, Ba = (e, t, a = {}) => {
|
|
895
897
|
const s = a.primaryKey || "Id";
|
|
896
898
|
a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
|
|
@@ -901,18 +903,18 @@ const _e = {
|
|
|
901
903
|
};
|
|
902
904
|
if (Array.isArray(t) ? n.params.Query[s] = t : n.params.Query[s] = t[s], F(n.params.Query) || F(n.params.Query[s]))
|
|
903
905
|
return E.error("错误!禁止无条件删除数据!"), Promise.resolve(null);
|
|
904
|
-
const o =
|
|
905
|
-
return n.url = o,
|
|
906
|
+
const o = Re(e, n);
|
|
907
|
+
return n.url = o, Te(e, n).then((r) => ((r == null ? void 0 : r.status) === T.SUCCESS && (a.hideErrorToast || E.success("删除成功!")), r));
|
|
906
908
|
}, za = (e, t) => Qe(e, {
|
|
907
909
|
urlKey: "tree",
|
|
908
910
|
params: {},
|
|
909
911
|
loadingState: e.isTreeLoading,
|
|
910
912
|
loadingText: !1,
|
|
911
|
-
processParams: () =>
|
|
913
|
+
processParams: () => fe(e.treeQuery, t)
|
|
912
914
|
}).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), []));
|
|
913
|
-
let
|
|
915
|
+
let ie;
|
|
914
916
|
const Mt = (e) => {
|
|
915
|
-
|
|
917
|
+
ie = new He({}), ie.messages({
|
|
916
918
|
required: "${label}不能为空",
|
|
917
919
|
types: {
|
|
918
920
|
number: "${label}必须是数字"
|
|
@@ -941,7 +943,7 @@ const Mt = (e) => {
|
|
|
941
943
|
}, $t = (e) => {
|
|
942
944
|
if (!e || F(e))
|
|
943
945
|
return [];
|
|
944
|
-
const t = [], a =
|
|
946
|
+
const t = [], a = ie.messages(), s = (o, r, l) => {
|
|
945
947
|
const u = r.type;
|
|
946
948
|
if (u && a.types && u in a.types) {
|
|
947
949
|
const c = a.types[u];
|
|
@@ -992,11 +994,11 @@ const Mt = (e) => {
|
|
|
992
994
|
rules: u
|
|
993
995
|
});
|
|
994
996
|
}), t;
|
|
995
|
-
},
|
|
997
|
+
}, de = async (e) => {
|
|
996
998
|
const t = e.formData.value, a = e.formRules.value;
|
|
997
|
-
F(a) || (Je(e), e.ruleValidator || (e.ruleValidator = new He({}), e.ruleValidator.messages(
|
|
999
|
+
F(a) || (Je(e), e.ruleValidator || (e.ruleValidator = new He({}), e.ruleValidator.messages(ie.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
|
|
998
1000
|
}).catch(({ fields: s }) => s));
|
|
999
|
-
}, Ft = async (e, t, a) => (a || (a = new He({}), a.messages(
|
|
1001
|
+
}, Ft = async (e, t, a) => (a || (a = new He({}), a.messages(ie.messages()), a.define(t)), a.validate(e).then(() => {
|
|
1000
1002
|
}).catch(({ fields: s }) => s)), Je = (e) => {
|
|
1001
1003
|
e.ruleResults.value = void 0;
|
|
1002
1004
|
}, X = () => {
|
|
@@ -1060,9 +1062,9 @@ const Mt = (e) => {
|
|
|
1060
1062
|
}
|
|
1061
1063
|
}), s.value.length > 0 && (o.value = "error"), { msg: n, ruleErrors: s, errClass: o };
|
|
1062
1064
|
}, _t = (e, t) => {
|
|
1063
|
-
|
|
1065
|
+
Me(U.LabelText, e.label || ""), Me(U.RuleKey, e.rule || "");
|
|
1064
1066
|
const a = Ca(e, t);
|
|
1065
|
-
return
|
|
1067
|
+
return Me(U.ErrInfo, a), a;
|
|
1066
1068
|
}, Nt = (e) => {
|
|
1067
1069
|
ra(e);
|
|
1068
1070
|
}, Dt = (e) => {
|
|
@@ -1075,7 +1077,7 @@ const Mt = (e) => {
|
|
|
1075
1077
|
const t = e.page;
|
|
1076
1078
|
if (e.isFormSaving.value = !0, Je(e), e.beforeSave && e.beforeSave() === !1)
|
|
1077
1079
|
return e.isFormSaving.value = !1, Promise.resolve();
|
|
1078
|
-
if (e.formRules.value && await
|
|
1080
|
+
if (e.formRules.value && await de(e), e.ruleResults.value)
|
|
1079
1081
|
return E.error("提交表单时,验证失败!"), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
|
|
1080
1082
|
const a = e.formData.value;
|
|
1081
1083
|
return na(
|
|
@@ -1141,7 +1143,7 @@ const Mt = (e) => {
|
|
|
1141
1143
|
e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Je(e);
|
|
1142
1144
|
}, Kt = (e, t) => {
|
|
1143
1145
|
const a = _();
|
|
1144
|
-
return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(
|
|
1146
|
+
return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(we.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
|
|
1145
1147
|
if (!t) {
|
|
1146
1148
|
if (n.visible === !1)
|
|
1147
1149
|
return !1;
|
|
@@ -1168,7 +1170,7 @@ const Mt = (e) => {
|
|
|
1168
1170
|
loadingState: e.isGridLoading,
|
|
1169
1171
|
processParams: (a) => {
|
|
1170
1172
|
var n;
|
|
1171
|
-
return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]),
|
|
1173
|
+
return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), fe((n = e.gridUrl) == null ? void 0 : n.params, a, e.gridQuery);
|
|
1172
1174
|
}
|
|
1173
1175
|
}).then((a) => {
|
|
1174
1176
|
if ((a == null ? void 0 : a.status) === T.SUCCESS) {
|
|
@@ -1267,12 +1269,12 @@ class et {
|
|
|
1267
1269
|
this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
|
|
1268
1270
|
}
|
|
1269
1271
|
}
|
|
1270
|
-
const
|
|
1272
|
+
const B = new et(), ee = (e, t, a) => {
|
|
1271
1273
|
if (t.inputFactory && (a != null && a.reloadEvent)) {
|
|
1272
1274
|
const s = t.inputFactory.value;
|
|
1273
1275
|
s.reloadHandler = (n, o) => {
|
|
1274
1276
|
at(t.url, t, o);
|
|
1275
|
-
},
|
|
1277
|
+
}, B.on(a.reloadEvent, s.reloadHandler);
|
|
1276
1278
|
}
|
|
1277
1279
|
if (a != null && a.data)
|
|
1278
1280
|
g(
|
|
@@ -1303,11 +1305,11 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1303
1305
|
}), e.options.value = t;
|
|
1304
1306
|
}, at = (e, t, a) => {
|
|
1305
1307
|
Array.isArray(a) ? Ge(t, a, !0) : ua(e, t, a);
|
|
1306
|
-
},
|
|
1308
|
+
}, he = (e, t) => {
|
|
1307
1309
|
var a;
|
|
1308
|
-
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler &&
|
|
1310
|
+
(a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && B.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
|
|
1309
1311
|
}, ua = (e, t, a) => {
|
|
1310
|
-
const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o =
|
|
1312
|
+
const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = fe(s, n, a);
|
|
1311
1313
|
tt(e, t, t.fieldMap, o).then((r) => {
|
|
1312
1314
|
Ge(t, r, !1);
|
|
1313
1315
|
});
|
|
@@ -1323,11 +1325,11 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1323
1325
|
},
|
|
1324
1326
|
...o
|
|
1325
1327
|
};
|
|
1326
|
-
return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), t.optionQuery = s, t.isOptionLoading.value = !0,
|
|
1328
|
+
return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), t.optionQuery = s, t.isOptionLoading.value = !0, q(l, s).then((u) => {
|
|
1327
1329
|
if ((u == null ? void 0 : u.status) === T.SUCCESS) {
|
|
1328
1330
|
if (u.data)
|
|
1329
1331
|
return u.data;
|
|
1330
|
-
} else if ((u == null ? void 0 : u.errno) ==
|
|
1332
|
+
} else if ((u == null ? void 0 : u.errno) == Oe) {
|
|
1331
1333
|
_().logout(!1);
|
|
1332
1334
|
return;
|
|
1333
1335
|
}
|
|
@@ -1355,7 +1357,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1355
1357
|
const o = n([e], t);
|
|
1356
1358
|
return o.length > 0 ? o[0] : void 0;
|
|
1357
1359
|
}
|
|
1358
|
-
},
|
|
1360
|
+
}, Pe = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], te = (e, t, a) => {
|
|
1359
1361
|
const s = t.split(".");
|
|
1360
1362
|
let n = e;
|
|
1361
1363
|
for (let o = 0; o < s.length - 1; o++) {
|
|
@@ -1376,7 +1378,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1376
1378
|
try {
|
|
1377
1379
|
const l = parseInt(((r = n.match(/\$\{(\d+)\}/)) == null ? void 0 : r[1]) ?? "0"), u = a[l], i = n.replace(/\$\{\d+\}\./, "");
|
|
1378
1380
|
if (i && u) {
|
|
1379
|
-
const c =
|
|
1381
|
+
const c = be(i, u);
|
|
1380
1382
|
te(e, s, c);
|
|
1381
1383
|
} else
|
|
1382
1384
|
te(e, s, u);
|
|
@@ -1387,42 +1389,42 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1387
1389
|
console.error("outFields 格式错误:" + n, "必须是 ${index} 或者 ${index}.${key}");
|
|
1388
1390
|
}) : Object.entries(t).forEach(([s, n]) => {
|
|
1389
1391
|
if (n.includes("${")) {
|
|
1390
|
-
const o =
|
|
1392
|
+
const o = be(n, a);
|
|
1391
1393
|
te(e, s, o);
|
|
1392
1394
|
} else
|
|
1393
1395
|
te(e, s, a[n]);
|
|
1394
1396
|
});
|
|
1395
|
-
},
|
|
1397
|
+
}, ke = (e, t, a) => {
|
|
1396
1398
|
var o, r;
|
|
1397
1399
|
const s = (o = e.inputFactory) == null ? void 0 : o.value;
|
|
1398
|
-
s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) &&
|
|
1400
|
+
s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && de(s.editorCtrl), e.selected.value = a;
|
|
1399
1401
|
const n = st(a, e.options.value);
|
|
1400
1402
|
if (e.selectedOptions.value = n, t.formData && t.outFields && ca(t.formData, t.outFields, n), t.changeEvent) {
|
|
1401
1403
|
const [l, u] = t.changeEvent;
|
|
1402
1404
|
if (u)
|
|
1403
1405
|
if (Array.isArray(l))
|
|
1404
1406
|
l.every((i) => {
|
|
1405
|
-
const c =
|
|
1407
|
+
const c = be(u, { selectedValues: a });
|
|
1406
1408
|
try {
|
|
1407
1409
|
const p = JSON.parse(c);
|
|
1408
|
-
|
|
1410
|
+
B.emit(i, p, a, n);
|
|
1409
1411
|
} catch (p) {
|
|
1410
1412
|
console.error("eventParamsValue: ", c, p);
|
|
1411
1413
|
}
|
|
1412
1414
|
});
|
|
1413
1415
|
else {
|
|
1414
|
-
const i =
|
|
1416
|
+
const i = be(u, { selectedValues: a });
|
|
1415
1417
|
try {
|
|
1416
1418
|
const c = JSON.parse(i);
|
|
1417
|
-
|
|
1419
|
+
B.emit(l, c, a, n);
|
|
1418
1420
|
} catch (c) {
|
|
1419
1421
|
console.error("eventParamsValue: ", i, c);
|
|
1420
1422
|
}
|
|
1421
1423
|
}
|
|
1422
1424
|
else
|
|
1423
1425
|
Array.isArray(l) ? l.every((i) => {
|
|
1424
|
-
|
|
1425
|
-
}) :
|
|
1426
|
+
B.emit(i, n, a);
|
|
1427
|
+
}) : B.emit(l, n, a);
|
|
1426
1428
|
}
|
|
1427
1429
|
return s != null && s.inputEmit && s.inputEmit("change", a, n), n;
|
|
1428
1430
|
}, S = {
|
|
@@ -1477,10 +1479,10 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1477
1479
|
...S.TreeOption,
|
|
1478
1480
|
...e.treeOption
|
|
1479
1481
|
};
|
|
1480
|
-
},
|
|
1482
|
+
}, Le = (e) => {
|
|
1481
1483
|
for (let t in e.urls)
|
|
1482
1484
|
e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
|
|
1483
|
-
}, nt = (e, t, a, s) => (
|
|
1485
|
+
}, nt = (e, t, a, s) => (Le(e), {
|
|
1484
1486
|
editorCtrl: {
|
|
1485
1487
|
...S.EditorOption,
|
|
1486
1488
|
name: "",
|
|
@@ -1497,7 +1499,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1497
1499
|
isFormLoading: f(!1)
|
|
1498
1500
|
}
|
|
1499
1501
|
}), rt = (e, t, a) => {
|
|
1500
|
-
|
|
1502
|
+
Le(e);
|
|
1501
1503
|
const s = {
|
|
1502
1504
|
...S.GridOption,
|
|
1503
1505
|
tableSize: f(S.GridOption.tableSize.value),
|
|
@@ -1517,7 +1519,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1517
1519
|
selectRows: f([]),
|
|
1518
1520
|
rowData: f(void 0),
|
|
1519
1521
|
gridQuery: {},
|
|
1520
|
-
tableData:
|
|
1522
|
+
tableData: J(void 0),
|
|
1521
1523
|
expandRows: f({}),
|
|
1522
1524
|
isGridLoading: f(!1),
|
|
1523
1525
|
isGridSaving: f(!1),
|
|
@@ -1536,14 +1538,14 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1536
1538
|
gridCtrl: s
|
|
1537
1539
|
};
|
|
1538
1540
|
}, Bt = (e, t) => {
|
|
1539
|
-
|
|
1541
|
+
Le(e);
|
|
1540
1542
|
const a = {
|
|
1541
1543
|
...S.TreeOption,
|
|
1542
1544
|
reload: f(!1),
|
|
1543
1545
|
page: t,
|
|
1544
1546
|
node: f(void 0),
|
|
1545
1547
|
url: e.urls.tree,
|
|
1546
|
-
data:
|
|
1548
|
+
data: J(void 0),
|
|
1547
1549
|
isTreeLoading: f(!1)
|
|
1548
1550
|
};
|
|
1549
1551
|
return g(
|
|
@@ -1556,13 +1558,13 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1556
1558
|
), {
|
|
1557
1559
|
treeCtrl: a
|
|
1558
1560
|
};
|
|
1559
|
-
},
|
|
1561
|
+
}, me = (e, t) => {
|
|
1560
1562
|
const a = {
|
|
1561
1563
|
...S.OptionOption,
|
|
1562
1564
|
url: e,
|
|
1563
1565
|
reload: f(!1),
|
|
1564
1566
|
optionQuery: {},
|
|
1565
|
-
data:
|
|
1567
|
+
data: J([]),
|
|
1566
1568
|
selected: f([]),
|
|
1567
1569
|
selectedOptions: f([]),
|
|
1568
1570
|
options: f([]),
|
|
@@ -1579,7 +1581,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1579
1581
|
optionCtrl: a
|
|
1580
1582
|
};
|
|
1581
1583
|
}, zt = (e, t, a) => {
|
|
1582
|
-
|
|
1584
|
+
Le(e);
|
|
1583
1585
|
const s = {
|
|
1584
1586
|
...S.PageOption,
|
|
1585
1587
|
...e
|
|
@@ -1589,12 +1591,12 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1589
1591
|
editorCtrl: n,
|
|
1590
1592
|
gridCtrl: o
|
|
1591
1593
|
};
|
|
1592
|
-
}, ot = 7 * 24 * 60 * 60 * 1e3,
|
|
1594
|
+
}, ot = 7 * 24 * 60 * 60 * 1e3, _e = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), G = f({}), Ct = G, Yt = (e) => {
|
|
1593
1595
|
var n;
|
|
1594
1596
|
if (!e.iconUrl) return De;
|
|
1595
1597
|
const t = f(!0), a = f("");
|
|
1596
1598
|
let s = !0;
|
|
1597
|
-
return (n = e.icons) != null && n.length && (s = e.icons.every((o) =>
|
|
1599
|
+
return (n = e.icons) != null && n.length && (s = e.icons.every((o) => G.value[o] !== void 0)), (e.icon && !G.value[e.icon] || !s) && it(e, t).then(() => {
|
|
1598
1600
|
ct(e.iconUrl, e.monoColor || !1), t.value = !0;
|
|
1599
1601
|
}), Z({
|
|
1600
1602
|
props: {
|
|
@@ -1635,21 +1637,21 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1635
1637
|
), g(
|
|
1636
1638
|
() => u.value,
|
|
1637
1639
|
(c) => {
|
|
1638
|
-
o.icons && (c >= o.icons.length && (u.value = 0), l.value = o.icons[u.value],
|
|
1640
|
+
o.icons && (c >= o.icons.length && (u.value = 0), l.value = o.icons[u.value], ge(a, l, l.value), r("update:iconIndex", u.value));
|
|
1639
1641
|
},
|
|
1640
1642
|
{ immediate: !0 }
|
|
1641
1643
|
), g(
|
|
1642
|
-
() =>
|
|
1644
|
+
() => G.value,
|
|
1643
1645
|
() => {
|
|
1644
|
-
|
|
1646
|
+
ge(a, l, l.value);
|
|
1645
1647
|
},
|
|
1646
1648
|
{ deep: !0 }
|
|
1647
1649
|
), g(
|
|
1648
1650
|
() => o.icon,
|
|
1649
1651
|
(c) => {
|
|
1650
|
-
|
|
1652
|
+
ge(a, l, c);
|
|
1651
1653
|
}
|
|
1652
|
-
),
|
|
1654
|
+
), ge(a, l, l.value), { isLoaded: t, Icon: a, handleClick: i };
|
|
1653
1655
|
},
|
|
1654
1656
|
render() {
|
|
1655
1657
|
if (!t.value)
|
|
@@ -1672,16 +1674,16 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1672
1674
|
let a = e.iconUrl;
|
|
1673
1675
|
if (!a)
|
|
1674
1676
|
return console.error("图标库地址不能为空"), Promise.resolve();
|
|
1675
|
-
if (
|
|
1677
|
+
if (_e.has(a))
|
|
1676
1678
|
return Promise.resolve();
|
|
1677
1679
|
const s = pa(a);
|
|
1678
1680
|
if (s)
|
|
1679
1681
|
return new Promise(async (o) => (fa(s.scriptContent), o()));
|
|
1680
1682
|
t.value = !1;
|
|
1681
1683
|
const n = new Promise(async (o) => {
|
|
1682
|
-
await lt(a, e.monoColor || !1), o(),
|
|
1684
|
+
await lt(a, e.monoColor || !1), o(), _e.delete(a);
|
|
1683
1685
|
});
|
|
1684
|
-
return
|
|
1686
|
+
return _e.set(a, n), n;
|
|
1685
1687
|
}, lt = async (e, t) => {
|
|
1686
1688
|
try {
|
|
1687
1689
|
const a = await fetch(e);
|
|
@@ -1733,9 +1735,9 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1733
1735
|
const a = localStorage.getItem(t);
|
|
1734
1736
|
a && JSON.parse(a).expireTime < e && localStorage.removeItem(t);
|
|
1735
1737
|
}
|
|
1736
|
-
},
|
|
1738
|
+
}, ge = (e, t, a) => {
|
|
1737
1739
|
setTimeout(() => {
|
|
1738
|
-
t.value = a, t.value && (e.value =
|
|
1740
|
+
t.value = a, t.value && (e.value = G.value[t.value]);
|
|
1739
1741
|
}, 1);
|
|
1740
1742
|
}, De = H(
|
|
1741
1743
|
"svg",
|
|
@@ -1768,7 +1770,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1768
1770
|
const u = l.id, i = Array.from(r).find((c) => c.id === u);
|
|
1769
1771
|
i && t && (i.innerHTML = l.innerHTML, i.querySelectorAll("*").forEach((c) => {
|
|
1770
1772
|
c.hasAttribute("fill") && c.removeAttribute("fill");
|
|
1771
|
-
})),
|
|
1773
|
+
})), G.value[u] || (G.value[u] = H("svg", { fill: "currentColor" }, [H("use", { "xlink:href": `#${u}` })]));
|
|
1772
1774
|
}
|
|
1773
1775
|
}, pt = (e, t) => {
|
|
1774
1776
|
let a = "";
|
|
@@ -1795,7 +1797,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1795
1797
|
return n;
|
|
1796
1798
|
}, Xe = ga([]), es = () => {
|
|
1797
1799
|
Xe.length = 0;
|
|
1798
|
-
const e =
|
|
1800
|
+
const e = K();
|
|
1799
1801
|
let a = Ve().TabActive;
|
|
1800
1802
|
e.matchedRoutes(a).forEach((n, o) => {
|
|
1801
1803
|
var l;
|
|
@@ -1818,7 +1820,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1818
1820
|
// 不显示错误
|
|
1819
1821
|
hideErrorToast: !0
|
|
1820
1822
|
}
|
|
1821
|
-
}, as =
|
|
1823
|
+
}, as = ce("hostInfo", {
|
|
1822
1824
|
state: () => ({
|
|
1823
1825
|
hostInfo: {
|
|
1824
1826
|
Host: "",
|
|
@@ -1842,16 +1844,16 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1842
1844
|
* @param hostKey 站点信息,默认为当前主域名
|
|
1843
1845
|
*/
|
|
1844
1846
|
async loadHostInfo(e, t) {
|
|
1845
|
-
if (
|
|
1846
|
-
const s = await
|
|
1847
|
+
if (V()) {
|
|
1848
|
+
const s = await re.getHostInfo();
|
|
1847
1849
|
this._setHostInfo(s);
|
|
1848
1850
|
return;
|
|
1849
1851
|
}
|
|
1850
1852
|
let a = (e || this.getSiteHostApi()).trim();
|
|
1851
1853
|
return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((s) => {
|
|
1852
|
-
|
|
1854
|
+
$e.SITEHOST_API || ($e.SITEHOST_API = a);
|
|
1853
1855
|
const n = t || window.location.origin;
|
|
1854
|
-
|
|
1856
|
+
q(dt.host, {
|
|
1855
1857
|
Query: {
|
|
1856
1858
|
Host: n
|
|
1857
1859
|
}
|
|
@@ -1889,7 +1891,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1889
1891
|
}, this.hostInfo.API_HOST)
|
|
1890
1892
|
for (const t in this.hostInfo.API_HOST) {
|
|
1891
1893
|
let a = this.hostInfo.API_HOST[t];
|
|
1892
|
-
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.API_HOST[t] = a,
|
|
1894
|
+
a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.API_HOST[t] = a, $e[t] = a;
|
|
1893
1895
|
}
|
|
1894
1896
|
if (this.hostInfo.SERVER_HOST)
|
|
1895
1897
|
for (const t in this.hostInfo.SERVER_HOST) {
|
|
@@ -1908,7 +1910,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1908
1910
|
// storage: localStorage,
|
|
1909
1911
|
// pick: ['hostInfo'],
|
|
1910
1912
|
// },
|
|
1911
|
-
}), ts =
|
|
1913
|
+
}), ts = ce("settingInfo", {
|
|
1912
1914
|
state: () => ({
|
|
1913
1915
|
fullscreen: !1,
|
|
1914
1916
|
menuCollapse: !1,
|
|
@@ -1953,7 +1955,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1953
1955
|
}), ss = /* @__PURE__ */ Z({
|
|
1954
1956
|
__name: "index",
|
|
1955
1957
|
props: {
|
|
1956
|
-
...
|
|
1958
|
+
...pe,
|
|
1957
1959
|
/**
|
|
1958
1960
|
* 选择项数据
|
|
1959
1961
|
*/
|
|
@@ -1964,8 +1966,8 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1964
1966
|
},
|
|
1965
1967
|
emits: ["change"],
|
|
1966
1968
|
setup(e, { emit: t }) {
|
|
1967
|
-
const a = e, s = X(), n =
|
|
1968
|
-
o.inputFactory =
|
|
1969
|
+
const a = e, s = X(), n = me(a.url, a), o = a.optionCtrl ?? n.optionCtrl;
|
|
1970
|
+
o.inputFactory = J(s);
|
|
1969
1971
|
const r = f([]);
|
|
1970
1972
|
o && g(
|
|
1971
1973
|
() => o.options.value,
|
|
@@ -1975,19 +1977,19 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
1975
1977
|
{ immediate: !0, deep: !0 }
|
|
1976
1978
|
);
|
|
1977
1979
|
const l = t, { editorCtrl: u, errInfo: i } = X(), c = (p) => {
|
|
1978
|
-
i != null && i.value.errClass && u &&
|
|
1980
|
+
i != null && i.value.errClass && u && de(u), l("change", p);
|
|
1979
1981
|
};
|
|
1980
|
-
return
|
|
1982
|
+
return Ie(() => {
|
|
1981
1983
|
if (!a.data || a.data.length != 2) {
|
|
1982
1984
|
console.error("Switch组件: ", a.data), E.error("Switch组件必须有且只有两个选项");
|
|
1983
1985
|
return;
|
|
1984
1986
|
}
|
|
1985
1987
|
o && ee(o.autoload, o, a);
|
|
1986
|
-
}),
|
|
1987
|
-
o &&
|
|
1988
|
+
}), le(() => {
|
|
1989
|
+
o && he(o, a);
|
|
1988
1990
|
}), (p, v) => {
|
|
1989
1991
|
var d;
|
|
1990
|
-
return r.value.length === 2 ? (w(),
|
|
1992
|
+
return r.value.length === 2 ? (w(), Ae(b(Sa), ue({
|
|
1991
1993
|
key: 0,
|
|
1992
1994
|
class: [
|
|
1993
1995
|
((d = b(i)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
|
|
@@ -2006,7 +2008,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2006
2008
|
inheritAttrs: !1,
|
|
2007
2009
|
__name: "index",
|
|
2008
2010
|
props: {
|
|
2009
|
-
...
|
|
2011
|
+
...pe,
|
|
2010
2012
|
value: {
|
|
2011
2013
|
type: [String, Number, Array, null],
|
|
2012
2014
|
default: void 0
|
|
@@ -2023,8 +2025,8 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2023
2025
|
},
|
|
2024
2026
|
emits: ["update:value", "select", "change", "update:labels"],
|
|
2025
2027
|
setup(e, { emit: t }) {
|
|
2026
|
-
const a = e, s =
|
|
2027
|
-
r.inputFactory =
|
|
2028
|
+
const a = e, s = Ee(), n = X(), o = me(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
|
|
2029
|
+
r.inputFactory = J(n), r.fieldMap = {
|
|
2028
2030
|
label: "Name",
|
|
2029
2031
|
value: "Id",
|
|
2030
2032
|
...r == null ? void 0 : r.fieldMap
|
|
@@ -2059,19 +2061,19 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2059
2061
|
SearchField: "%" + y.trim() + "%"
|
|
2060
2062
|
}
|
|
2061
2063
|
};
|
|
2062
|
-
r.params =
|
|
2064
|
+
r.params = fe(r.params, h), r && ee(!0, r, a);
|
|
2063
2065
|
}, O = (y) => {
|
|
2064
|
-
const x =
|
|
2066
|
+
const x = ke(r, a, y);
|
|
2065
2067
|
p("update:value", y), p("select", y);
|
|
2066
|
-
const h =
|
|
2067
|
-
p("update:labels", h), i != null && i.value.errClass && u &&
|
|
2068
|
+
const h = Pe(x);
|
|
2069
|
+
p("update:labels", h), i != null && i.value.errClass && u && de(u);
|
|
2068
2070
|
};
|
|
2069
|
-
return
|
|
2070
|
-
r &&
|
|
2071
|
+
return le(() => {
|
|
2072
|
+
r && he(r, a);
|
|
2071
2073
|
}), (y, x) => {
|
|
2072
2074
|
var h;
|
|
2073
2075
|
return w(), $("div", null, [
|
|
2074
|
-
C(b(ba),
|
|
2076
|
+
C(b(ba), ue({
|
|
2075
2077
|
value: l.value,
|
|
2076
2078
|
"onUpdate:value": x[0] || (x[0] = (I) => l.value = I),
|
|
2077
2079
|
class: ["w-full", (h = b(i)) == null ? void 0 : h.errClass],
|
|
@@ -2079,10 +2081,10 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2079
2081
|
onSearch: d,
|
|
2080
2082
|
onSelect: O
|
|
2081
2083
|
}, b(s), { "allow-clear": !1 }), {
|
|
2082
|
-
option:
|
|
2083
|
-
|
|
2084
|
+
option: Q(({ label: I }) => [
|
|
2085
|
+
xe(Y(I), 1)
|
|
2084
2086
|
]),
|
|
2085
|
-
default:
|
|
2087
|
+
default: Q(() => [
|
|
2086
2088
|
C(b(Ia), {
|
|
2087
2089
|
"allow-clear": "",
|
|
2088
2090
|
placeholder: "请输入并选择" + b(c)
|
|
@@ -2100,7 +2102,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2100
2102
|
inheritAttrs: !1,
|
|
2101
2103
|
__name: "index",
|
|
2102
2104
|
props: {
|
|
2103
|
-
...
|
|
2105
|
+
...pe,
|
|
2104
2106
|
nodata: {
|
|
2105
2107
|
type: String,
|
|
2106
2108
|
default: ""
|
|
@@ -2118,8 +2120,8 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2118
2120
|
emits: ["change", "update:labels"],
|
|
2119
2121
|
setup(e, { emit: t }) {
|
|
2120
2122
|
var v, d, O;
|
|
2121
|
-
const a = e, s =
|
|
2122
|
-
r.inputFactory =
|
|
2123
|
+
const a = e, s = Ee(), n = X(), o = me(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
|
|
2124
|
+
r.inputFactory = J(n);
|
|
2123
2125
|
const l = f({
|
|
2124
2126
|
...r == null ? void 0 : r.url,
|
|
2125
2127
|
url: ((v = r == null ? void 0 : r.url) == null ? void 0 : v.url) || "",
|
|
@@ -2137,27 +2139,27 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2137
2139
|
{ immediate: !0, deep: !0 }
|
|
2138
2140
|
);
|
|
2139
2141
|
const p = (y) => {
|
|
2140
|
-
const h =
|
|
2142
|
+
const h = ke(r, a, y), I = Pe(h);
|
|
2141
2143
|
i("update:labels", I);
|
|
2142
2144
|
};
|
|
2143
|
-
return
|
|
2145
|
+
return Ie(() => {
|
|
2144
2146
|
l.value && !l.value.fieldMap && (l.value.fieldMap = {
|
|
2145
2147
|
title: "Name",
|
|
2146
2148
|
label: "Name",
|
|
2147
2149
|
value: "Id",
|
|
2148
2150
|
key: "Id"
|
|
2149
2151
|
}), r && ee(r.autoload, r, a);
|
|
2150
|
-
}),
|
|
2151
|
-
r &&
|
|
2152
|
+
}), le(() => {
|
|
2153
|
+
r && he(r, a);
|
|
2152
2154
|
}), (y, x) => (w(), $("div", ht, [
|
|
2153
|
-
C(b(Aa),
|
|
2155
|
+
C(b(Aa), ue({
|
|
2154
2156
|
onChange: p,
|
|
2155
2157
|
class: "w-full mb-[-3px]"
|
|
2156
2158
|
}, b(s)), {
|
|
2157
|
-
default:
|
|
2158
|
-
c.value.length > 0 ? (w(!0), $(
|
|
2159
|
+
default: Q(() => [
|
|
2160
|
+
c.value.length > 0 ? (w(!0), $(oe, { key: 0 }, Ue(c.value, (h) => {
|
|
2159
2161
|
var I;
|
|
2160
|
-
return w(),
|
|
2162
|
+
return w(), Ae(b(Ea), {
|
|
2161
2163
|
key: h.value,
|
|
2162
2164
|
value: h.value,
|
|
2163
2165
|
disabled: h.disabled || h.value && e.disabledItems && e.disabledItems.indexOf(h.value.toString()) > -1,
|
|
@@ -2168,8 +2170,8 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2168
2170
|
e.wrap ? `w-1/${a.wrap}` : ""
|
|
2169
2171
|
])
|
|
2170
2172
|
}, {
|
|
2171
|
-
default:
|
|
2172
|
-
|
|
2173
|
+
default: Q(() => [
|
|
2174
|
+
xe(Y(h.label), 1)
|
|
2173
2175
|
]),
|
|
2174
2176
|
_: 2
|
|
2175
2177
|
}, 1032, ["value", "disabled", "class"]);
|
|
@@ -2186,7 +2188,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2186
2188
|
inheritAttrs: !1,
|
|
2187
2189
|
__name: "index",
|
|
2188
2190
|
props: {
|
|
2189
|
-
...
|
|
2191
|
+
...pe,
|
|
2190
2192
|
value: {
|
|
2191
2193
|
type: [String, Number, null, Array],
|
|
2192
2194
|
default: void 0
|
|
@@ -2205,8 +2207,8 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2205
2207
|
emits: ["change", "update:value", "update:labels"],
|
|
2206
2208
|
setup(e, { emit: t }) {
|
|
2207
2209
|
var O, y, x;
|
|
2208
|
-
const a = e, s =
|
|
2209
|
-
r.inputFactory =
|
|
2210
|
+
const a = e, s = Ee(), n = X(), o = me(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
|
|
2211
|
+
r.inputFactory = J(n);
|
|
2210
2212
|
const l = f({
|
|
2211
2213
|
...r == null ? void 0 : r.url,
|
|
2212
2214
|
url: ((O = r == null ? void 0 : r.url) == null ? void 0 : O.url) || "",
|
|
@@ -2238,44 +2240,44 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2238
2240
|
}
|
|
2239
2241
|
return h === I;
|
|
2240
2242
|
}, d = (h) => {
|
|
2241
|
-
const I = h.target.value, R =
|
|
2242
|
-
p("update:labels",
|
|
2243
|
+
const I = h.target.value, R = ke(r, a, I), j = Pe(R);
|
|
2244
|
+
p("update:labels", j);
|
|
2243
2245
|
};
|
|
2244
|
-
return
|
|
2246
|
+
return Ie(() => {
|
|
2245
2247
|
l.value && !l.value.fieldMap && (l.value.fieldMap = {
|
|
2246
2248
|
label: "Name",
|
|
2247
2249
|
value: "Id",
|
|
2248
2250
|
key: "Id"
|
|
2249
2251
|
}), r && ee(r.autoload, r, a);
|
|
2250
|
-
}),
|
|
2251
|
-
r &&
|
|
2252
|
+
}), le(() => {
|
|
2253
|
+
r && he(r, a);
|
|
2252
2254
|
}), (h, I) => (w(), $("div", vt, [
|
|
2253
|
-
C(b(xa),
|
|
2255
|
+
C(b(xa), ue({
|
|
2254
2256
|
value: u.value,
|
|
2255
2257
|
"onUpdate:value": I[0] || (I[0] = (R) => u.value = R),
|
|
2256
2258
|
autocheck: !1,
|
|
2257
2259
|
onChange: d,
|
|
2258
2260
|
class: "w-full flex align-items flex-wrap mb-[-3px]"
|
|
2259
2261
|
}, b(s)), {
|
|
2260
|
-
default:
|
|
2261
|
-
c.value.length > 0 ? (w(!0), $(
|
|
2262
|
-
var
|
|
2263
|
-
return w(), $(
|
|
2262
|
+
default: Q(() => [
|
|
2263
|
+
c.value.length > 0 ? (w(!0), $(oe, { key: 0 }, Ue(c.value, (R) => {
|
|
2264
|
+
var j;
|
|
2265
|
+
return w(), $(oe, {
|
|
2264
2266
|
key: R.value
|
|
2265
2267
|
}, [
|
|
2266
|
-
R.visible !== !1 ? (w(),
|
|
2268
|
+
R.visible !== !1 ? (w(), Ae(b(wa), {
|
|
2267
2269
|
key: 0,
|
|
2268
2270
|
checked: v(R.value, a.value),
|
|
2269
2271
|
value: R.value,
|
|
2270
2272
|
class: ea([
|
|
2271
|
-
((
|
|
2273
|
+
((j = b(i)) == null ? void 0 : j.errClass) === "error" ? "error !text-red-400" : "",
|
|
2272
2274
|
"text-nowrap",
|
|
2273
2275
|
"pb-1",
|
|
2274
2276
|
e.wrap ? `w-1/${a.wrap}` : ""
|
|
2275
2277
|
])
|
|
2276
2278
|
}, {
|
|
2277
|
-
default:
|
|
2278
|
-
|
|
2279
|
+
default: Q(() => [
|
|
2280
|
+
xe(Y(R.label), 1)
|
|
2279
2281
|
]),
|
|
2280
2282
|
_: 2
|
|
2281
2283
|
}, 1032, ["checked", "value", "class"])) : z("", !0)
|
|
@@ -2293,7 +2295,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2293
2295
|
inheritAttrs: !1,
|
|
2294
2296
|
__name: "index",
|
|
2295
2297
|
props: {
|
|
2296
|
-
...
|
|
2298
|
+
...pe,
|
|
2297
2299
|
value: {
|
|
2298
2300
|
type: [String, Number, Array, null],
|
|
2299
2301
|
default: void 0
|
|
@@ -2324,20 +2326,20 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2324
2326
|
},
|
|
2325
2327
|
emits: ["change", "update:value", "update:label", "update:labels"],
|
|
2326
2328
|
setup(e, { emit: t }) {
|
|
2327
|
-
var I, R,
|
|
2328
|
-
const a = e, s = a.value === void 0 ? !0 : a.undefValue, n = X(), { editorCtrl: o, errInfo: r, labelText: l } = n, u =
|
|
2329
|
-
i.inputFactory =
|
|
2330
|
-
const c =
|
|
2329
|
+
var I, R, j;
|
|
2330
|
+
const a = e, s = a.value === void 0 ? !0 : a.undefValue, n = X(), { editorCtrl: o, errInfo: r, labelText: l } = n, u = me(a.url, a), i = a.optionCtrl ?? u.optionCtrl;
|
|
2331
|
+
i.inputFactory = J(n);
|
|
2332
|
+
const c = Ee(), p = f({
|
|
2331
2333
|
...i == null ? void 0 : i.url,
|
|
2332
2334
|
url: ((I = i == null ? void 0 : i.url) == null ? void 0 : I.url) || "",
|
|
2333
2335
|
fieldMap: (i == null ? void 0 : i.fieldMap) || ((R = i == null ? void 0 : i.url) == null ? void 0 : R.fieldMap),
|
|
2334
|
-
params: (i == null ? void 0 : i.params) || ((
|
|
2336
|
+
params: (i == null ? void 0 : i.params) || ((j = i == null ? void 0 : i.url) == null ? void 0 : j.params),
|
|
2335
2337
|
loadingText: !1
|
|
2336
2338
|
}), v = f(c.placeholder), d = f(i == null ? void 0 : i.selected.value), O = t;
|
|
2337
2339
|
n.inputEmit = O;
|
|
2338
2340
|
const y = (m) => {
|
|
2339
|
-
const k =
|
|
2340
|
-
d.value = m, O("update:labels", D), O("update:label", D.join(";")), O("change", m), r != null && r.value.errClass && o &&
|
|
2341
|
+
const k = ke(i, a, m), D = Pe(k);
|
|
2342
|
+
d.value = m, O("update:labels", D), O("update:label", D.join(";")), O("change", m), r != null && r.value.errClass && o && de(o);
|
|
2341
2343
|
}, x = f((i == null ? void 0 : i.options.value) || []), h = (m) => {
|
|
2342
2344
|
if (m.length > 0 && F(a.value) && a.selectFirst)
|
|
2343
2345
|
for (let k = 0; k < m.length; k++) {
|
|
@@ -2384,7 +2386,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2384
2386
|
const k = m === void 0 ? s ? void 0 : null : m;
|
|
2385
2387
|
i && (i.selected.value = k), O("update:value", k);
|
|
2386
2388
|
}
|
|
2387
|
-
),
|
|
2389
|
+
), Ie(() => {
|
|
2388
2390
|
if (p.value && !p.value.fieldMap && (p.value.fieldMap = {
|
|
2389
2391
|
label: "Name",
|
|
2390
2392
|
value: "Id",
|
|
@@ -2396,8 +2398,8 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2396
2398
|
const m = i.options.value || [];
|
|
2397
2399
|
m.length > 0 ? (x.value = m, h(m)) : ee(i.autoload, i, a);
|
|
2398
2400
|
}
|
|
2399
|
-
}),
|
|
2400
|
-
i &&
|
|
2401
|
+
}), le(() => {
|
|
2402
|
+
i && he(i, a);
|
|
2401
2403
|
}), (m, k) => {
|
|
2402
2404
|
var D, qe, We;
|
|
2403
2405
|
return w(), $("div", null, [
|
|
@@ -2405,25 +2407,25 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2405
2407
|
C(b(De), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
2406
2408
|
k[1] || (k[1] = ya("span", null, "数据加载中...", -1))
|
|
2407
2409
|
])) : z("", !0),
|
|
2408
|
-
C(b(Oa),
|
|
2410
|
+
C(b(Oa), ue({
|
|
2409
2411
|
class: [(We = b(r)) == null ? void 0 : We.errClass, "w-full"],
|
|
2410
2412
|
value: d.value,
|
|
2411
|
-
"onUpdate:value": k[0] || (k[0] = (
|
|
2413
|
+
"onUpdate:value": k[0] || (k[0] = (W) => d.value = W),
|
|
2412
2414
|
"allow-clear": !0,
|
|
2413
2415
|
onChange: y,
|
|
2414
2416
|
placeholder: v.value,
|
|
2415
2417
|
"label-in-value": !1
|
|
2416
2418
|
}, b(c)), {
|
|
2417
|
-
default:
|
|
2418
|
-
(w(!0), $(
|
|
2419
|
-
key:
|
|
2419
|
+
default: Q(() => [
|
|
2420
|
+
(w(!0), $(oe, null, Ue(x.value, (W) => (w(), $(oe, {
|
|
2421
|
+
key: W.value
|
|
2420
2422
|
}, [
|
|
2421
|
-
|
|
2423
|
+
W.visible !== !1 ? (w(), Ae(b(Ra), {
|
|
2422
2424
|
key: 0,
|
|
2423
|
-
value:
|
|
2425
|
+
value: W.value
|
|
2424
2426
|
}, {
|
|
2425
|
-
default:
|
|
2426
|
-
|
|
2427
|
+
default: Q(() => [
|
|
2428
|
+
xe(Y(W.label), 1)
|
|
2427
2429
|
]),
|
|
2428
2430
|
_: 2
|
|
2429
2431
|
}, 1032, ["value"])) : z("", !0)
|
|
@@ -2437,7 +2439,7 @@ const W = new et(), ee = (e, t, a) => {
|
|
|
2437
2439
|
});
|
|
2438
2440
|
export {
|
|
2439
2441
|
Mt as $,
|
|
2440
|
-
|
|
2442
|
+
de as A,
|
|
2441
2443
|
rs as B,
|
|
2442
2444
|
os as C,
|
|
2443
2445
|
is as D,
|
|
@@ -2448,7 +2450,7 @@ export {
|
|
|
2448
2450
|
rt as I,
|
|
2449
2451
|
Bt as J,
|
|
2450
2452
|
zt as K,
|
|
2451
|
-
|
|
2453
|
+
Oe as L,
|
|
2452
2454
|
st as M,
|
|
2453
2455
|
ca as N,
|
|
2454
2456
|
N as O,
|
|
@@ -2476,14 +2478,14 @@ export {
|
|
|
2476
2478
|
na as a8,
|
|
2477
2479
|
Ba as a9,
|
|
2478
2480
|
Ne as aa,
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
+
B as ab,
|
|
2482
|
+
re as ac,
|
|
2481
2483
|
ne as ad,
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
+
ye as ae,
|
|
2485
|
+
K as af,
|
|
2484
2486
|
as as ag,
|
|
2485
2487
|
Ve as ah,
|
|
2486
|
-
|
|
2488
|
+
ie as ai,
|
|
2487
2489
|
Dt as b,
|
|
2488
2490
|
Yt as c,
|
|
2489
2491
|
Ut as d,
|
|
@@ -2498,15 +2500,15 @@ export {
|
|
|
2498
2500
|
Jt as m,
|
|
2499
2501
|
ns as n,
|
|
2500
2502
|
Nt as o,
|
|
2501
|
-
|
|
2503
|
+
pe as p,
|
|
2502
2504
|
za as q,
|
|
2503
|
-
|
|
2505
|
+
we as r,
|
|
2504
2506
|
X as s,
|
|
2505
|
-
|
|
2507
|
+
me as t,
|
|
2506
2508
|
_ as u,
|
|
2507
2509
|
ee as v,
|
|
2508
|
-
|
|
2510
|
+
he as w,
|
|
2509
2511
|
De as x,
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
+
ke as y,
|
|
2513
|
+
Pe as z
|
|
2512
2514
|
};
|