gs-eant-comp 3.0.8 → 3.1.0
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/dist/gs-eant-comp.js +742 -740
- package/dist/gs-eant-comp.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/gs-eant-comp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as X, resolveComponent as l, createBlock as v, openBlock as p, withCtx as s, createElementBlock as
|
|
2
|
-
import { useStore as
|
|
1
|
+
import { defineComponent as X, resolveComponent as l, createBlock as v, openBlock as p, withCtx as s, createElementBlock as M, Fragment as V, renderList as q, normalizeClass as Z, createElementVNode as m, toDisplayString as U, createVNode as u, toRefs as ke, computed as C, createCommentVNode as I, inject as S, ref as B, watchEffect as st, renderSlot as L, reactive as Te, provide as F, mergeProps as _e, createTextVNode as G, withModifiers as ut, unref as $, h as wt, getCurrentInstance as dn, nextTick as Me, watch as ce, onMounted as nt, onUnmounted as Ft, normalizeStyle as it, toRef as Vt, KeepAlive as pn, resolveDynamicComponent as Fe, createSlots as He, mergeModels as Dt, useModel as ot, Transition as fn, withDirectives as mn, vShow as hn, isRef as ze, toHandlers as Ht, normalizeProps as yn, guardReactiveProps as vn, useSlots as gn } from "vue";
|
|
2
|
+
import { useStore as oe } from "vuex";
|
|
3
3
|
import { useRoute as bn, useRouter as ae, onBeforeRouteUpdate as _n } from "vue-router";
|
|
4
4
|
import { useRequest as je, usePagination as ct } from "vue-request";
|
|
5
5
|
import { Form as kn, message as wn, theme as Qe } from "ant-design-vue";
|
|
@@ -33,10 +33,10 @@ function In(e, t, n, o, a, r) {
|
|
|
33
33
|
}, null, 8, ["type"])
|
|
34
34
|
]),
|
|
35
35
|
title: s(() => [
|
|
36
|
-
m("span", En,
|
|
36
|
+
m("span", En, U(e.menuInfo.meta.title), 1)
|
|
37
37
|
]),
|
|
38
38
|
default: s(() => [
|
|
39
|
-
(p(!0),
|
|
39
|
+
(p(!0), M(V, null, q(e.menuInfo.children, (y) => (p(), M(V, {
|
|
40
40
|
key: y.path
|
|
41
41
|
}, [
|
|
42
42
|
y.children ? (p(), v(d, {
|
|
@@ -44,7 +44,7 @@ function In(e, t, n, o, a, r) {
|
|
|
44
44
|
key: y.path
|
|
45
45
|
}, null, 8, ["menu-info"])) : (p(), v(c, {
|
|
46
46
|
key: y.path,
|
|
47
|
-
class:
|
|
47
|
+
class: Z({ "ps-8": y.name && y.name.substring(0, 3) === "N99" })
|
|
48
48
|
}, {
|
|
49
49
|
icon: s(() => [
|
|
50
50
|
u(i, {
|
|
@@ -52,7 +52,7 @@ function In(e, t, n, o, a, r) {
|
|
|
52
52
|
}, null, 8, ["type"])
|
|
53
53
|
]),
|
|
54
54
|
default: s(() => [
|
|
55
|
-
m("span", xn,
|
|
55
|
+
m("span", xn, U(y.meta.title), 1)
|
|
56
56
|
]),
|
|
57
57
|
_: 2
|
|
58
58
|
}, 1032, ["class"]))
|
|
@@ -86,8 +86,8 @@ const $n = /* @__PURE__ */ D(Bn, [["render", In]]), Mn = X({
|
|
|
86
86
|
}, On = { class: "font1" };
|
|
87
87
|
function Rn(e, t, n, o, a, r) {
|
|
88
88
|
const i = l("a-alert"), c = l("a-icon"), d = l("a-menu-item"), f = l("sub-menu");
|
|
89
|
-
return p(),
|
|
90
|
-
e.isNavMenus ? (p(),
|
|
89
|
+
return p(), M(V, null, [
|
|
90
|
+
e.isNavMenus ? (p(), M("div", Tn, [
|
|
91
91
|
u(i, {
|
|
92
92
|
"show-icon": !1,
|
|
93
93
|
type: "info",
|
|
@@ -99,8 +99,8 @@ function Rn(e, t, n, o, a, r) {
|
|
|
99
99
|
])]),
|
|
100
100
|
_: 1
|
|
101
101
|
})
|
|
102
|
-
])) :
|
|
103
|
-
(p(!0),
|
|
102
|
+
])) : I("", !0),
|
|
103
|
+
(p(!0), M(V, null, q(e.navMenus, (y) => (p(), M(V, {
|
|
104
104
|
key: y.path
|
|
105
105
|
}, [
|
|
106
106
|
y.children ? (p(), v(f, {
|
|
@@ -115,7 +115,7 @@ function Rn(e, t, n, o, a, r) {
|
|
|
115
115
|
}, null, 8, ["type"])
|
|
116
116
|
]),
|
|
117
117
|
default: s(() => [
|
|
118
|
-
m("span", On,
|
|
118
|
+
m("span", On, U(y.meta.title), 1)
|
|
119
119
|
]),
|
|
120
120
|
_: 2
|
|
121
121
|
}, 1024))
|
|
@@ -133,14 +133,14 @@ const he = /* @__PURE__ */ D(Mn, [["render", Rn]]), Qt = "data:image/png;base64,
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
setup(e) {
|
|
136
|
-
const { menu: t } = ke(e), n =
|
|
137
|
-
a.push(
|
|
138
|
-
}, i = S("menuDrawerRef"), c = B([]), d = C(() => o.path), f = (
|
|
139
|
-
for (const
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
142
|
-
if (
|
|
143
|
-
const A = f(
|
|
136
|
+
const { menu: t } = ke(e), n = oe(), o = bn(), a = ae(), r = (g) => {
|
|
137
|
+
a.push(g.key), i.value.open = !1;
|
|
138
|
+
}, i = S("menuDrawerRef"), c = B([]), d = C(() => o.path), f = (g, h, b = []) => {
|
|
139
|
+
for (const k of g) {
|
|
140
|
+
if (k.path === h)
|
|
141
|
+
return b;
|
|
142
|
+
if (k.children) {
|
|
143
|
+
const A = f(k.children, h, [...b, k.path]);
|
|
144
144
|
if (A.length)
|
|
145
145
|
return A;
|
|
146
146
|
}
|
|
@@ -150,8 +150,8 @@ const he = /* @__PURE__ */ D(Mn, [["render", Rn]]), Qt = "data:image/png;base64,
|
|
|
150
150
|
st(() => {
|
|
151
151
|
c.value = f(t.value, d.value);
|
|
152
152
|
});
|
|
153
|
-
const y = (
|
|
154
|
-
c.value =
|
|
153
|
+
const y = (g) => {
|
|
154
|
+
c.value = g;
|
|
155
155
|
};
|
|
156
156
|
return {
|
|
157
157
|
onToRouter: r,
|
|
@@ -181,12 +181,12 @@ function zn(e, t, n, o, a, r) {
|
|
|
181
181
|
u(d, { class: "card-flex h-100 d-flex flex-column" }, {
|
|
182
182
|
title: s(() => [
|
|
183
183
|
m("div", An, [
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
I("", !0),
|
|
185
|
+
L(e.$slots, "title")
|
|
186
186
|
])
|
|
187
187
|
]),
|
|
188
188
|
actions: s(() => [
|
|
189
|
-
|
|
189
|
+
L(e.$slots, "foot")
|
|
190
190
|
]),
|
|
191
191
|
default: s(() => [
|
|
192
192
|
m("div", Pn, [
|
|
@@ -194,7 +194,7 @@ function zn(e, t, n, o, a, r) {
|
|
|
194
194
|
openKeys: e.openKeys,
|
|
195
195
|
"onUpdate:openKeys": t[0] || (t[0] = (y) => e.openKeys = y),
|
|
196
196
|
selectedKeys: [e.$route.path],
|
|
197
|
-
class:
|
|
197
|
+
class: Z(["h-100", e.menuItemActiveStyle]),
|
|
198
198
|
mode: "inline",
|
|
199
199
|
onClick: e.onToRouter,
|
|
200
200
|
onOpenChange: e.handleOpenChange
|
|
@@ -232,7 +232,7 @@ const Ln = /* @__PURE__ */ D(Nn, [["render", zn]]), jn = kn.useForm, Un = X({
|
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
setup(e) {
|
|
235
|
-
const { xs: t, lg: n, span: o, layout: a } = ke(e), r =
|
|
235
|
+
const { xs: t, lg: n, span: o, layout: a } = ke(e), r = oe(), i = S("$API"), c = Te(i.auth.update), d = S("refPasswordEModal"), f = B({
|
|
236
236
|
xgh: r.state.auth.userInfo.yhm,
|
|
237
237
|
xm: r.state.auth.userInfo.xm,
|
|
238
238
|
ymm: "",
|
|
@@ -240,9 +240,9 @@ const Ln = /* @__PURE__ */ D(Nn, [["render", zn]]), jn = kn.useForm, Un = X({
|
|
|
240
240
|
qrmm: ""
|
|
241
241
|
});
|
|
242
242
|
F("formState", f);
|
|
243
|
-
const y = (w,
|
|
244
|
-
|
|
245
|
-
},
|
|
243
|
+
const y = (w, _, E) => {
|
|
244
|
+
_.length < 6 ? E(new Error("密码长度必须大于6个字符")) : /[A-Z]/.test(_) ? /[a-z]/.test(_) ? /[!@_#$%^&*(),.?":{}|<>]/.test(_) ? E() : E(new Error("密码必须包含特殊字符")) : E(new Error("密码必须包含小写字母")) : E(new Error("密码必须包含大写字母"));
|
|
245
|
+
}, g = Te({
|
|
246
246
|
ymm: [{ required: !0, message: "请填原密码" }],
|
|
247
247
|
xmm: [
|
|
248
248
|
{ required: !0, message: "请填新密码" },
|
|
@@ -252,10 +252,10 @@ const Ln = /* @__PURE__ */ D(Nn, [["render", zn]]), jn = kn.useForm, Un = X({
|
|
|
252
252
|
{ required: !0, message: "请填确认密码" },
|
|
253
253
|
{ validator: y, trigger: "blur" }
|
|
254
254
|
]
|
|
255
|
-
}), { run: h, loading:
|
|
255
|
+
}), { run: h, loading: b } = je(
|
|
256
256
|
async (w) => {
|
|
257
|
-
const
|
|
258
|
-
return
|
|
257
|
+
const _ = c;
|
|
258
|
+
return _[_.method](w);
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
debounceInterval: 0,
|
|
@@ -264,14 +264,14 @@ const Ln = /* @__PURE__ */ D(Nn, [["render", zn]]), jn = kn.useForm, Un = X({
|
|
|
264
264
|
d.value.open = !1;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
), { resetFields:
|
|
267
|
+
), { resetFields: k, validate: A, validateInfos: T } = jn(f, g);
|
|
268
268
|
return {
|
|
269
269
|
api: i,
|
|
270
|
-
save_loading:
|
|
270
|
+
save_loading: b,
|
|
271
271
|
formState: f,
|
|
272
|
-
resetFields:
|
|
272
|
+
resetFields: k,
|
|
273
273
|
validate: A,
|
|
274
|
-
validateInfos:
|
|
274
|
+
validateInfos: T,
|
|
275
275
|
onSubmit: async () => {
|
|
276
276
|
try {
|
|
277
277
|
await A(), f.value.xmm !== f.value.qrmm ? wn.error("两次输入的密码不一致") : h(f.value);
|
|
@@ -283,8 +283,8 @@ const Ln = /* @__PURE__ */ D(Nn, [["render", zn]]), jn = kn.useForm, Un = X({
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
function Wn(e, t, n, o, a, r) {
|
|
286
|
-
const i = l("a-input"), c = l("a-form-item"), d = l("a-col"), f = l("a-input-password"), y = l("a-row"),
|
|
287
|
-
return p(), v(
|
|
286
|
+
const i = l("a-input"), c = l("a-form-item"), d = l("a-col"), f = l("a-input-password"), y = l("a-row"), g = l("a-button"), h = l("a-space"), b = l("a-form");
|
|
287
|
+
return p(), v(b, {
|
|
288
288
|
class: "d-flex flex-column h-100 justify-content-between",
|
|
289
289
|
autocomplete: "off",
|
|
290
290
|
layout: e.layout,
|
|
@@ -306,7 +306,7 @@ function Wn(e, t, n, o, a, r) {
|
|
|
306
306
|
default: s(() => [
|
|
307
307
|
u(i, {
|
|
308
308
|
value: e.formState.xgh,
|
|
309
|
-
"onUpdate:value": t[0] || (t[0] = (
|
|
309
|
+
"onUpdate:value": t[0] || (t[0] = (k) => e.formState.xgh = k),
|
|
310
310
|
disabled: e.editDisabled
|
|
311
311
|
}, null, 8, ["value", "disabled"])
|
|
312
312
|
]),
|
|
@@ -327,7 +327,7 @@ function Wn(e, t, n, o, a, r) {
|
|
|
327
327
|
default: s(() => [
|
|
328
328
|
u(i, {
|
|
329
329
|
value: e.formState.xm,
|
|
330
|
-
"onUpdate:value": t[1] || (t[1] = (
|
|
330
|
+
"onUpdate:value": t[1] || (t[1] = (k) => e.formState.xm = k),
|
|
331
331
|
disabled: e.editDisabled
|
|
332
332
|
}, null, 8, ["value", "disabled"])
|
|
333
333
|
]),
|
|
@@ -348,7 +348,7 @@ function Wn(e, t, n, o, a, r) {
|
|
|
348
348
|
default: s(() => [
|
|
349
349
|
u(f, {
|
|
350
350
|
value: e.formState.ymm,
|
|
351
|
-
"onUpdate:value": t[2] || (t[2] = (
|
|
351
|
+
"onUpdate:value": t[2] || (t[2] = (k) => e.formState.ymm = k)
|
|
352
352
|
}, null, 8, ["value"])
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
@@ -368,7 +368,7 @@ function Wn(e, t, n, o, a, r) {
|
|
|
368
368
|
default: s(() => [
|
|
369
369
|
u(f, {
|
|
370
370
|
value: e.formState.xmm,
|
|
371
|
-
"onUpdate:value": t[3] || (t[3] = (
|
|
371
|
+
"onUpdate:value": t[3] || (t[3] = (k) => e.formState.xmm = k)
|
|
372
372
|
}, null, 8, ["value"])
|
|
373
373
|
]),
|
|
374
374
|
_: 1
|
|
@@ -388,7 +388,7 @@ function Wn(e, t, n, o, a, r) {
|
|
|
388
388
|
default: s(() => [
|
|
389
389
|
u(f, {
|
|
390
390
|
value: e.formState.qrmm,
|
|
391
|
-
"onUpdate:value": t[4] || (t[4] = (
|
|
391
|
+
"onUpdate:value": t[4] || (t[4] = (k) => e.formState.qrmm = k)
|
|
392
392
|
}, null, 8, ["value"])
|
|
393
393
|
]),
|
|
394
394
|
_: 1
|
|
@@ -407,8 +407,8 @@ function Wn(e, t, n, o, a, r) {
|
|
|
407
407
|
default: s(() => [
|
|
408
408
|
u(h, { class: "d-flex justify-content-end" }, {
|
|
409
409
|
default: s(() => [
|
|
410
|
-
|
|
411
|
-
u(
|
|
410
|
+
I("", !0),
|
|
411
|
+
u(g, {
|
|
412
412
|
type: "primary",
|
|
413
413
|
onClick: e.onSubmit,
|
|
414
414
|
loading: e.save_loading
|
|
@@ -431,67 +431,68 @@ function Wn(e, t, n, o, a, r) {
|
|
|
431
431
|
const Gt = /* @__PURE__ */ D(Un, [["render", Wn]]), Kn = { class: "h-100" }, Fn = { class: "" }, Vn = { class: "text-primary" }, Dn = { class: "text-muted" }, Hn = { class: "text-muted" }, Ce = {
|
|
432
432
|
__name: "UserBar",
|
|
433
433
|
setup(e) {
|
|
434
|
-
const t =
|
|
435
|
-
C(() =>
|
|
436
|
-
|
|
434
|
+
const t = (...O) => {
|
|
435
|
+
}, n = S("$API"), o = oe(), a = ae(), r = C(() => o.state.app.auth), i = C(() => o.state.auth.userInfo), c = C(() => o.state.app.appLayoutType);
|
|
436
|
+
C(() => o.state.app.casServerLoginUrl);
|
|
437
|
+
const d = C(() => o.state.app.casServerLogoutUrl), f = Te(n.auth.logout), { run: y } = je((O) => f[f.method](O), {
|
|
437
438
|
manual: !0,
|
|
438
|
-
onSuccess: (
|
|
439
|
-
|
|
440
|
-
const
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}),
|
|
439
|
+
onSuccess: (O) => {
|
|
440
|
+
t("认证模式识别完成 →", r.value), r.value === "CAS" && (t("CAS 注销流程|重定向至统一认证登出地址", d.value), window.location.href = d.value);
|
|
441
|
+
const w = a.options.routes.findIndex((E) => E.name === "lowcodeplatform");
|
|
442
|
+
w !== -1 && (a.options.routes[w].children = []), o.state.auth.dynamicRouteNames.forEach((E) => {
|
|
443
|
+
a.removeRoute(E);
|
|
444
|
+
}), o.commit("RESET_STATE"), a.push({ path: "/" });
|
|
444
445
|
}
|
|
445
|
-
}),
|
|
446
|
-
F("refPasswordEModal",
|
|
447
|
-
const
|
|
448
|
-
|
|
446
|
+
}), g = B();
|
|
447
|
+
F("refPasswordEModal", g);
|
|
448
|
+
const h = (O) => {
|
|
449
|
+
g.value.open = !0, g.value.title = "修改密码";
|
|
449
450
|
};
|
|
450
451
|
B(!1), S("refreshAppMenu");
|
|
451
|
-
const
|
|
452
|
+
const b = C(() => o.state.auth.currentRole), k = C(() => {
|
|
452
453
|
try {
|
|
453
|
-
return
|
|
454
|
-
} catch (
|
|
455
|
-
return console.error("roles 解析失败",
|
|
454
|
+
return i.value?.roles ? JSON.parse(i.value.roles) : [];
|
|
455
|
+
} catch (O) {
|
|
456
|
+
return console.error("roles 解析失败", O), [];
|
|
456
457
|
}
|
|
457
458
|
});
|
|
458
459
|
st(() => {
|
|
459
|
-
!
|
|
460
|
+
!o.state.auth.currentRole && k.value.length > 0 && (t("角色上下文初始化|默认角色已加载 →", k.value[0]), o.commit("SET_CURRENT_ROLE", k.value[0]));
|
|
460
461
|
});
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
},
|
|
464
|
-
const
|
|
465
|
-
(
|
|
462
|
+
const A = (O) => {
|
|
463
|
+
o.commit("SET_CURRENT_ROLE", O), T();
|
|
464
|
+
}, T = () => {
|
|
465
|
+
const O = a.options.routes.findIndex(
|
|
466
|
+
(_) => _.name === "lowcodeplatform"
|
|
466
467
|
);
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}),
|
|
468
|
+
O !== -1 && (a.options.routes[O].children = []), o.state.auth.dynamicRouteNames.forEach((_) => {
|
|
469
|
+
a.removeRoute(_);
|
|
470
|
+
}), o.commit("CLEAR_PERMISSION_CONTEXT"), a.push({ path: "/" });
|
|
470
471
|
};
|
|
471
|
-
return (
|
|
472
|
-
const
|
|
472
|
+
return (O, w) => {
|
|
473
|
+
const _ = l("a-icon"), E = l("a-space");
|
|
473
474
|
l("a-badge-ribbon");
|
|
474
|
-
const
|
|
475
|
-
return p(),
|
|
475
|
+
const z = l("a-menu-item"), R = l("a-menu-item-group"), j = l("a-menu-divider"), Q = l("a-menu"), K = l("a-dropdown"), Y = l("EModal");
|
|
476
|
+
return p(), M(V, null, [
|
|
476
477
|
m("div", Kn, [
|
|
477
|
-
|
|
478
|
-
u(
|
|
478
|
+
I("", !0),
|
|
479
|
+
u(K, { trigger: ["click"] }, {
|
|
479
480
|
overlay: s(() => [
|
|
480
|
-
u(
|
|
481
|
+
u(Q, {
|
|
481
482
|
click: "bg-info p-0 text-muted",
|
|
482
483
|
style: { width: "170px" }
|
|
483
484
|
}, {
|
|
484
485
|
default: s(() => [
|
|
485
|
-
u(
|
|
486
|
+
u(R, { title: "当前角色" }, {
|
|
486
487
|
default: s(() => [
|
|
487
|
-
u(
|
|
488
|
+
u(z, { disabled: "" }, {
|
|
488
489
|
default: s(() => [
|
|
489
490
|
m("span", Vn, [
|
|
490
|
-
u(
|
|
491
|
+
u(_, {
|
|
491
492
|
type: "icon-user",
|
|
492
493
|
class: "pe-2"
|
|
493
494
|
}),
|
|
494
|
-
G(
|
|
495
|
+
G(U(b.value?.jsmc), 1)
|
|
495
496
|
])
|
|
496
497
|
]),
|
|
497
498
|
_: 1
|
|
@@ -499,66 +500,66 @@ const Gt = /* @__PURE__ */ D(Un, [["render", Wn]]), Kn = { class: "h-100" }, Fn
|
|
|
499
500
|
]),
|
|
500
501
|
_: 1
|
|
501
502
|
}),
|
|
502
|
-
u(
|
|
503
|
-
u(
|
|
503
|
+
u(j),
|
|
504
|
+
u(R, { title: "切换角色" }, {
|
|
504
505
|
default: s(() => [
|
|
505
|
-
(p(!0),
|
|
506
|
-
key:
|
|
507
|
-
disabled:
|
|
508
|
-
onClick: (
|
|
506
|
+
(p(!0), M(V, null, q(k.value, (ee) => (p(), v(z, {
|
|
507
|
+
key: ee.jsdm,
|
|
508
|
+
disabled: ee.jsdm === b.value?.jsdm,
|
|
509
|
+
onClick: (te) => A(ee)
|
|
509
510
|
}, {
|
|
510
511
|
default: s(() => [
|
|
511
|
-
u(
|
|
512
|
+
u(_, {
|
|
512
513
|
type: "icon-swap",
|
|
513
514
|
class: "pe-2"
|
|
514
515
|
}),
|
|
515
|
-
G(
|
|
516
|
+
G(U(ee.jsmc), 1)
|
|
516
517
|
]),
|
|
517
518
|
_: 2
|
|
518
519
|
}, 1032, ["disabled", "onClick"]))), 128))
|
|
519
520
|
]),
|
|
520
521
|
_: 1
|
|
521
522
|
}),
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
u(
|
|
526
|
-
|
|
523
|
+
I("", !0),
|
|
524
|
+
I("", !0),
|
|
525
|
+
I("", !0),
|
|
526
|
+
u(j),
|
|
527
|
+
r.value === "JWT" ? (p(), v(z, {
|
|
527
528
|
key: "0",
|
|
528
|
-
onClick:
|
|
529
|
+
onClick: h
|
|
529
530
|
}, {
|
|
530
531
|
default: s(() => [
|
|
531
532
|
m("span", Dn, [
|
|
532
|
-
u(
|
|
533
|
+
u(_, {
|
|
533
534
|
type: "icon-edit",
|
|
534
535
|
class: "pe-2"
|
|
535
536
|
}),
|
|
536
|
-
|
|
537
|
+
w[3] || (w[3] = G("修改密码", -1))
|
|
537
538
|
])
|
|
538
539
|
]),
|
|
539
540
|
_: 1
|
|
540
|
-
})) :
|
|
541
|
-
u(
|
|
541
|
+
})) : I("", !0),
|
|
542
|
+
u(z, {
|
|
542
543
|
key: "1",
|
|
543
|
-
onClick:
|
|
544
|
+
onClick: $(y)
|
|
544
545
|
}, {
|
|
545
546
|
default: s(() => [
|
|
546
547
|
m("span", Hn, [
|
|
547
|
-
u(
|
|
548
|
+
u(_, {
|
|
548
549
|
type: "icon-logout",
|
|
549
550
|
class: "pe-2"
|
|
550
551
|
}),
|
|
551
|
-
|
|
552
|
+
w[4] || (w[4] = G("退出登陆", -1))
|
|
552
553
|
])
|
|
553
554
|
]),
|
|
554
555
|
_: 1
|
|
555
556
|
}, 8, ["onClick"]),
|
|
556
|
-
u(
|
|
557
|
-
u(
|
|
557
|
+
u(j),
|
|
558
|
+
u(z, {
|
|
558
559
|
key: "2",
|
|
559
560
|
class: "text-black-50 text-center"
|
|
560
561
|
}, {
|
|
561
|
-
default: s(() => [...
|
|
562
|
+
default: s(() => [...w[5] || (w[5] = [
|
|
562
563
|
G(" version 0.1.2 ", -1)
|
|
563
564
|
])]),
|
|
564
565
|
_: 1
|
|
@@ -569,15 +570,15 @@ const Gt = /* @__PURE__ */ D(Un, [["render", Wn]]), Kn = { class: "h-100" }, Fn
|
|
|
569
570
|
]),
|
|
570
571
|
default: s(() => [
|
|
571
572
|
m("div", {
|
|
572
|
-
class:
|
|
573
|
-
onClick:
|
|
573
|
+
class: Z(["cp d-flex align-items-center", [["classic", "headerLeft", "headerRight", "headerRightPro"].includes(c.value) ? "text-white" : "text-muted"]]),
|
|
574
|
+
onClick: w[1] || (w[1] = ut(() => {
|
|
574
575
|
}, ["prevent"]))
|
|
575
576
|
}, [
|
|
576
|
-
u(
|
|
577
|
+
u(E, { class: "h-75" }, {
|
|
577
578
|
default: s(() => [
|
|
578
|
-
|
|
579
|
-
m("span", Fn,
|
|
580
|
-
u(
|
|
579
|
+
I("", !0),
|
|
580
|
+
m("span", Fn, U(i.value.xm), 1),
|
|
581
|
+
u(_, {
|
|
581
582
|
type: "icon-down",
|
|
582
583
|
class: ""
|
|
583
584
|
})
|
|
@@ -589,9 +590,9 @@ const Gt = /* @__PURE__ */ D(Un, [["render", Wn]]), Kn = { class: "h-100" }, Fn
|
|
|
589
590
|
_: 1
|
|
590
591
|
})
|
|
591
592
|
]),
|
|
592
|
-
u(
|
|
593
|
+
u(Y, {
|
|
593
594
|
ref_key: "refPasswordEModal",
|
|
594
|
-
ref:
|
|
595
|
+
ref: g
|
|
595
596
|
}, {
|
|
596
597
|
default: s(() => [
|
|
597
598
|
u(Gt)
|
|
@@ -665,8 +666,8 @@ function qn(e, t, n) {
|
|
|
665
666
|
}
|
|
666
667
|
function Xn(e, t, n) {
|
|
667
668
|
e = pe(e, 360) * 6, t = pe(t, 100), n = pe(n, 100);
|
|
668
|
-
var o = Math.floor(e), a = e - o, r = n * (1 - t), i = n * (1 - a * t), c = n * (1 - (1 - a) * t), d = o % 6, f = [n, i, r, r, c, n][d], y = [c, n, n, i, r, r][d],
|
|
669
|
-
return { r: f * 255, g: y * 255, b:
|
|
669
|
+
var o = Math.floor(e), a = e - o, r = n * (1 - t), i = n * (1 - a * t), c = n * (1 - (1 - a) * t), d = o % 6, f = [n, i, r, r, c, n][d], y = [c, n, n, i, r, r][d], g = [r, r, c, n, n, i][d];
|
|
670
|
+
return { r: f * 255, g: y * 255, b: g * 255 };
|
|
670
671
|
}
|
|
671
672
|
function eo(e, t, n, o) {
|
|
672
673
|
var a = [
|
|
@@ -976,8 +977,8 @@ function at(e) {
|
|
|
976
977
|
n.push(f);
|
|
977
978
|
}
|
|
978
979
|
return t.theme === "dark" ? so.map(function(y) {
|
|
979
|
-
var
|
|
980
|
-
return
|
|
980
|
+
var g = y.index, h = y.opacity, b = Ke(uo(Ae(t.backgroundColor || "#141414"), Ae(n[g]), h * 100));
|
|
981
|
+
return b;
|
|
981
982
|
}) : n;
|
|
982
983
|
}
|
|
983
984
|
var et = {
|
|
@@ -1401,22 +1402,22 @@ function Do(e, t) {
|
|
|
1401
1402
|
}
|
|
1402
1403
|
an(io.primary);
|
|
1403
1404
|
var me = function(t, n) {
|
|
1404
|
-
var o, a = At({}, t, n.attrs), r = a.class, i = a.icon, c = a.spin, d = a.rotate, f = a.tabindex, y = a.twoToneColor,
|
|
1405
|
-
O === void 0 &&
|
|
1405
|
+
var o, a = At({}, t, n.attrs), r = a.class, i = a.icon, c = a.spin, d = a.rotate, f = a.tabindex, y = a.twoToneColor, g = a.onClick, h = Vo(a, Lo), b = Yt(), k = b.prefixCls, A = b.rootClassName, T = (o = {}, Pe(o, A.value, !!A.value), Pe(o, k.value, !0), Pe(o, "".concat(k.value, "-").concat(i.name), !!i.name), Pe(o, "".concat(k.value, "-spin"), !!c || i.name === "loading"), o), O = f;
|
|
1406
|
+
O === void 0 && g && (O = -1);
|
|
1406
1407
|
var w = d ? {
|
|
1407
1408
|
msTransform: "rotate(".concat(d, "deg)"),
|
|
1408
1409
|
transform: "rotate(".concat(d, "deg)")
|
|
1409
|
-
} : void 0,
|
|
1410
|
+
} : void 0, _ = nn(y), E = jo(_, 2), z = E[0], R = E[1];
|
|
1410
1411
|
return u("span", At({
|
|
1411
1412
|
role: "img",
|
|
1412
1413
|
"aria-label": i.name
|
|
1413
1414
|
}, h, {
|
|
1414
|
-
onClick:
|
|
1415
|
-
class: [
|
|
1415
|
+
onClick: g,
|
|
1416
|
+
class: [T, r],
|
|
1416
1417
|
tabindex: O
|
|
1417
1418
|
}), [u(Be, {
|
|
1418
1419
|
icon: i,
|
|
1419
|
-
primaryColor:
|
|
1420
|
+
primaryColor: z,
|
|
1420
1421
|
secondaryColor: R,
|
|
1421
1422
|
style: w
|
|
1422
1423
|
}, null), u(zo, null, null)]);
|
|
@@ -1615,66 +1616,66 @@ const aa = X({
|
|
|
1615
1616
|
}
|
|
1616
1617
|
},
|
|
1617
1618
|
setup(e) {
|
|
1618
|
-
const t =
|
|
1619
|
-
t.commit("pushViewTags",
|
|
1620
|
-
}, d = (
|
|
1619
|
+
const t = oe(), n = ae(), o = B(null), a = C(() => t.state.viewTags.viewTags), r = B([]), i = (_) => _ === n.currentRoute.value.fullPath, c = (_) => {
|
|
1620
|
+
t.commit("pushViewTags", _), _.name && _.meta.keepalive && t.commit("pushKeepLive", _.name);
|
|
1621
|
+
}, d = (_) => {
|
|
1621
1622
|
if (a.value.forEach((E) => {
|
|
1622
|
-
E.fullPath ===
|
|
1623
|
-
}), t.commit("removeViewTags",
|
|
1623
|
+
E.fullPath === _ && t.commit("removeKeepLive", E.name);
|
|
1624
|
+
}), t.commit("removeViewTags", _), i(_)) {
|
|
1624
1625
|
const E = a.value.slice(-1)[0];
|
|
1625
1626
|
E ? n.push(E) : n.push("/");
|
|
1626
1627
|
}
|
|
1627
|
-
}, f = (
|
|
1628
|
-
n.push(
|
|
1629
|
-
}, y = (
|
|
1630
|
-
E === "add" || d(
|
|
1631
|
-
},
|
|
1628
|
+
}, f = (_) => {
|
|
1629
|
+
n.push(_);
|
|
1630
|
+
}, y = (_, E) => {
|
|
1631
|
+
E === "add" || d(_);
|
|
1632
|
+
}, g = (_, E) => {
|
|
1632
1633
|
r.value = E;
|
|
1633
1634
|
}, h = () => {
|
|
1634
|
-
var
|
|
1635
|
-
n.currentRoute.value.fullPath !=
|
|
1636
|
-
path:
|
|
1637
|
-
query:
|
|
1635
|
+
var _ = r.value;
|
|
1636
|
+
n.currentRoute.value.fullPath != _.fullPath && n.push({
|
|
1637
|
+
path: _.fullPath,
|
|
1638
|
+
query: _.query
|
|
1638
1639
|
}), setTimeout(function() {
|
|
1639
|
-
t.commit("removeKeepLive",
|
|
1640
|
-
t.commit("pushKeepLive",
|
|
1640
|
+
t.commit("removeKeepLive", _.name), t.commit("setRouteShow", !1), Me(() => {
|
|
1641
|
+
t.commit("pushKeepLive", _.name), t.commit("setRouteShow", !0);
|
|
1641
1642
|
});
|
|
1642
1643
|
}, 0);
|
|
1643
|
-
},
|
|
1644
|
-
var
|
|
1645
|
-
d(
|
|
1646
|
-
},
|
|
1647
|
-
var
|
|
1648
|
-
E.forEach((
|
|
1649
|
-
if (
|
|
1644
|
+
}, b = () => {
|
|
1645
|
+
var _ = r.value;
|
|
1646
|
+
d(_.fullPath);
|
|
1647
|
+
}, k = () => {
|
|
1648
|
+
var _ = r.value, E = [...a.value];
|
|
1649
|
+
E.forEach((z) => {
|
|
1650
|
+
if (z.meta && z.meta.affix || _.fullPath == z.fullPath)
|
|
1650
1651
|
return !0;
|
|
1651
|
-
d(
|
|
1652
|
+
d(z.fullPath);
|
|
1652
1653
|
});
|
|
1653
1654
|
}, A = () => {
|
|
1654
|
-
var
|
|
1655
|
-
n.currentRoute.value.fullPath !=
|
|
1656
|
-
path:
|
|
1657
|
-
query:
|
|
1655
|
+
var _ = r.value;
|
|
1656
|
+
n.currentRoute.value.fullPath != _.fullPath && n.push({
|
|
1657
|
+
path: _.fullPath,
|
|
1658
|
+
query: _.query
|
|
1658
1659
|
});
|
|
1659
1660
|
var E = document.getElementById("ant-layout-content");
|
|
1660
1661
|
bt.screen(E);
|
|
1661
|
-
},
|
|
1662
|
-
var
|
|
1663
|
-
|
|
1662
|
+
}, T = () => {
|
|
1663
|
+
var _ = r.value, E = _.href || "/";
|
|
1664
|
+
_.meta.affix || d(_.name), window.open(E);
|
|
1664
1665
|
}, O = S("routerDepth"), w = B([]);
|
|
1665
1666
|
w.value = n.options.routes;
|
|
1666
|
-
for (let
|
|
1667
|
+
for (let _ = 0; _ < O.value; _++)
|
|
1667
1668
|
w.value = w.value[0].children;
|
|
1668
1669
|
return Me(() => {
|
|
1669
|
-
var
|
|
1670
|
-
if (
|
|
1671
|
-
|
|
1670
|
+
var _ = _t(w.value, (z) => z.name == n.currentRoute.value.name);
|
|
1671
|
+
if (_)
|
|
1672
|
+
_.fullPath = _.path, c(_);
|
|
1672
1673
|
else if (w.value.length) {
|
|
1673
1674
|
var E = kt(w.value);
|
|
1674
1675
|
E.fullPath = E.path, c(E);
|
|
1675
1676
|
}
|
|
1676
|
-
}), ce(n.currentRoute, (
|
|
1677
|
-
c(
|
|
1677
|
+
}), ce(n.currentRoute, (_) => {
|
|
1678
|
+
c(_);
|
|
1678
1679
|
}), nt(() => {
|
|
1679
1680
|
Me(() => {
|
|
1680
1681
|
});
|
|
@@ -1686,19 +1687,19 @@ const aa = X({
|
|
|
1686
1687
|
onChange: f,
|
|
1687
1688
|
onEdit: y,
|
|
1688
1689
|
contextMenuItem: r,
|
|
1689
|
-
openContextMenu:
|
|
1690
|
+
openContextMenu: g,
|
|
1690
1691
|
refreshTab: h,
|
|
1691
|
-
closeTabs:
|
|
1692
|
-
closeOtherTabs:
|
|
1692
|
+
closeTabs: b,
|
|
1693
|
+
closeOtherTabs: k,
|
|
1693
1694
|
screen: A,
|
|
1694
|
-
openWindow:
|
|
1695
|
+
openWindow: T
|
|
1695
1696
|
};
|
|
1696
1697
|
}
|
|
1697
1698
|
}), ra = { ref: "tags" }, la = ["onContextmenu"], sa = { style: { padding: "8px 0" } };
|
|
1698
1699
|
function ua(e, t, n, o, a, r) {
|
|
1699
|
-
const i = l("a-icon"), c = l("SyncOutlined"), d = l("a-menu-item"), f = l("a-menu-divider"), y = l("CloseOutlined"),
|
|
1700
|
-
return p(),
|
|
1701
|
-
u(
|
|
1700
|
+
const i = l("a-icon"), c = l("SyncOutlined"), d = l("a-menu-item"), f = l("a-menu-divider"), y = l("CloseOutlined"), g = l("ExpandOutlined"), h = l("TagsOutlined"), b = l("a-menu"), k = l("a-dropdown"), A = l("a-tab-pane"), T = l("a-tabs");
|
|
1701
|
+
return p(), M("div", ra, [
|
|
1702
|
+
u(T, {
|
|
1702
1703
|
activeKey: e.$route.fullPath,
|
|
1703
1704
|
size: "small",
|
|
1704
1705
|
"hide-add": "",
|
|
@@ -1708,7 +1709,7 @@ function ua(e, t, n, o, a, r) {
|
|
|
1708
1709
|
class: "tabs"
|
|
1709
1710
|
}, {
|
|
1710
1711
|
default: s(() => [
|
|
1711
|
-
(p(!0),
|
|
1712
|
+
(p(!0), M(V, null, q(e.tagList, (O) => (p(), v(A, {
|
|
1712
1713
|
key: O.fullPath,
|
|
1713
1714
|
class: "mb-0",
|
|
1714
1715
|
closable: !O.meta.affix
|
|
@@ -1723,9 +1724,9 @@ function ua(e, t, n, o, a, r) {
|
|
|
1723
1724
|
m("div", {
|
|
1724
1725
|
onContextmenu: ut((w) => e.openContextMenu(w, O), ["prevent"])
|
|
1725
1726
|
}, [
|
|
1726
|
-
u(
|
|
1727
|
+
u(k, { trigger: ["contextmenu"] }, {
|
|
1727
1728
|
overlay: s(() => [
|
|
1728
|
-
u(
|
|
1729
|
+
u(b, {
|
|
1729
1730
|
overlayStyle: { color: "#606266" },
|
|
1730
1731
|
class: "font-8"
|
|
1731
1732
|
}, {
|
|
@@ -1763,7 +1764,7 @@ function ua(e, t, n, o, a, r) {
|
|
|
1763
1764
|
onClick: t[3] || (t[3] = (w) => e.screen())
|
|
1764
1765
|
}, {
|
|
1765
1766
|
default: s(() => [
|
|
1766
|
-
u(
|
|
1767
|
+
u(g, { class: "ps-1" }),
|
|
1767
1768
|
t[8] || (t[8] = m("span", { class: "px-3" }, "最大化", -1))
|
|
1768
1769
|
]),
|
|
1769
1770
|
_: 1
|
|
@@ -1782,7 +1783,7 @@ function ua(e, t, n, o, a, r) {
|
|
|
1782
1783
|
})
|
|
1783
1784
|
]),
|
|
1784
1785
|
default: s(() => [
|
|
1785
|
-
m("div", sa,
|
|
1786
|
+
m("div", sa, U(O.meta.title), 1)
|
|
1786
1787
|
]),
|
|
1787
1788
|
_: 2
|
|
1788
1789
|
}, 1024)
|
|
@@ -1804,37 +1805,37 @@ const Ee = /* @__PURE__ */ D(aa, [["render", ua]]), ia = { class: "d-flex justif
|
|
|
1804
1805
|
}
|
|
1805
1806
|
},
|
|
1806
1807
|
setup(e) {
|
|
1807
|
-
const t =
|
|
1808
|
+
const t = oe(), n = ae(), o = C(() => n.currentRoute.value.matched), a = C(() => t.state.app.menuIsCollapse);
|
|
1808
1809
|
return (r, i) => {
|
|
1809
1810
|
const c = l("a-breadcrumb-item"), d = l("a-breadcrumb"), f = l("a-space");
|
|
1810
|
-
return p(),
|
|
1811
|
+
return p(), M("div", ia, [
|
|
1811
1812
|
u(f, { size: "small" }, {
|
|
1812
1813
|
default: s(() => [
|
|
1813
|
-
e.showMenuToggle ? (p(),
|
|
1814
|
-
a.value ? (p(), v(
|
|
1814
|
+
e.showMenuToggle ? (p(), M("div", ca, [
|
|
1815
|
+
a.value ? (p(), v($(yt), {
|
|
1815
1816
|
key: 0,
|
|
1816
1817
|
class: "trigger",
|
|
1817
1818
|
onClick: i[0] || (i[0] = (y) => r.$store.commit("TOGGLE_menuIsCollapse"))
|
|
1818
|
-
})) : (p(), v(
|
|
1819
|
+
})) : (p(), v($(ht), {
|
|
1819
1820
|
key: 1,
|
|
1820
1821
|
class: "trigger",
|
|
1821
1822
|
onClick: i[1] || (i[1] = (y) => r.$store.commit("TOGGLE_menuIsCollapse"))
|
|
1822
1823
|
}))
|
|
1823
|
-
])) :
|
|
1824
|
+
])) : I("", !0),
|
|
1824
1825
|
i[2] || (i[2] = m("div", null, null, -1)),
|
|
1825
1826
|
u(d, { separator: ">" }, {
|
|
1826
1827
|
default: s(() => [
|
|
1827
|
-
(p(!0),
|
|
1828
|
+
(p(!0), M(V, null, q(o.value, (y) => (p(), M(V, {
|
|
1828
1829
|
key: y.meta.title
|
|
1829
1830
|
}, [
|
|
1830
1831
|
y.meta.title ? (p(), v(c, {
|
|
1831
1832
|
key: y.meta.title
|
|
1832
1833
|
}, {
|
|
1833
1834
|
default: s(() => [
|
|
1834
|
-
G(
|
|
1835
|
+
G(U(y.meta.title), 1)
|
|
1835
1836
|
]),
|
|
1836
1837
|
_: 2
|
|
1837
|
-
}, 1024)) :
|
|
1838
|
+
}, 1024)) : I("", !0)
|
|
1838
1839
|
], 64))), 128))
|
|
1839
1840
|
]),
|
|
1840
1841
|
_: 1
|
|
@@ -1842,7 +1843,7 @@ const Ee = /* @__PURE__ */ D(aa, [["render", ua]]), ia = { class: "d-flex justif
|
|
|
1842
1843
|
]),
|
|
1843
1844
|
_: 1
|
|
1844
1845
|
}),
|
|
1845
|
-
|
|
1846
|
+
L(r.$slots, "userBar")
|
|
1846
1847
|
]);
|
|
1847
1848
|
};
|
|
1848
1849
|
}
|
|
@@ -1857,21 +1858,21 @@ const Ee = /* @__PURE__ */ D(aa, [["render", ua]]), ia = { class: "d-flex justif
|
|
|
1857
1858
|
o = f.clientX - y.left, a = f.clientY - y.top, document.addEventListener("mousemove", i), document.addEventListener("mouseup", c), document.addEventListener("touchmove", i), document.addEventListener("touchend", c);
|
|
1858
1859
|
}, i = (d) => {
|
|
1859
1860
|
if (!n.value) return;
|
|
1860
|
-
const f = d.type.includes("touch") ? d.touches[0] : d, y = `${f.clientX - o}px`,
|
|
1861
|
-
t.value.style.left = y, t.value.style.top =
|
|
1861
|
+
const f = d.type.includes("touch") ? d.touches[0] : d, y = `${f.clientX - o}px`, g = `${f.clientY - a}px`;
|
|
1862
|
+
t.value.style.left = y, t.value.style.top = g;
|
|
1862
1863
|
}, c = () => {
|
|
1863
1864
|
n.value = !1, document.removeEventListener("mousemove", i), document.removeEventListener("mouseup", c), document.removeEventListener("touchmove", i), document.removeEventListener("touchend", c);
|
|
1864
1865
|
};
|
|
1865
1866
|
return (d, f) => {
|
|
1866
|
-
const y = l("a-icon"),
|
|
1867
|
-
return p(),
|
|
1867
|
+
const y = l("a-icon"), g = l("a-button");
|
|
1868
|
+
return p(), M("div", {
|
|
1868
1869
|
ref_key: "buttonRef",
|
|
1869
1870
|
ref: t,
|
|
1870
1871
|
class: "mobile-menu-button",
|
|
1871
1872
|
onMousedown: r,
|
|
1872
1873
|
onTouchstart: r
|
|
1873
1874
|
}, [
|
|
1874
|
-
u(
|
|
1875
|
+
u(g, {
|
|
1875
1876
|
type: "primary",
|
|
1876
1877
|
shape: "circle",
|
|
1877
1878
|
size: "large",
|
|
@@ -1888,7 +1889,7 @@ const Ee = /* @__PURE__ */ D(aa, [["render", ua]]), ia = { class: "d-flex justif
|
|
|
1888
1889
|
}, pa = /* @__PURE__ */ D(da, [["__scopeId", "data-v-1f824705"]]), fa = X({
|
|
1889
1890
|
components: { NavMenu: he, MobileMenuButton: pa },
|
|
1890
1891
|
setup() {
|
|
1891
|
-
const e =
|
|
1892
|
+
const e = oe(), t = S("menuDrawerRef"), n = () => {
|
|
1892
1893
|
t.value.open = !0;
|
|
1893
1894
|
};
|
|
1894
1895
|
return {
|
|
@@ -1904,8 +1905,8 @@ function va(e, t, n, o, a, r) {
|
|
|
1904
1905
|
const i = l("a-icon"), c = l("a-button");
|
|
1905
1906
|
l("a-space");
|
|
1906
1907
|
const d = l("a-layout-header");
|
|
1907
|
-
return p(),
|
|
1908
|
-
|
|
1908
|
+
return p(), M(V, null, [
|
|
1909
|
+
I("", !0),
|
|
1909
1910
|
u(d, { class: "px-2 header-h40 shadow-sm ant-primary-color bg-white" }, {
|
|
1910
1911
|
default: s(() => [
|
|
1911
1912
|
m("div", ma, [
|
|
@@ -1925,11 +1926,11 @@ function va(e, t, n, o, a, r) {
|
|
|
1925
1926
|
]),
|
|
1926
1927
|
_: 1
|
|
1927
1928
|
}, 8, ["onClick"]),
|
|
1928
|
-
|
|
1929
|
+
I("", !0)
|
|
1929
1930
|
]),
|
|
1930
1931
|
m("div", ya, [
|
|
1931
|
-
|
|
1932
|
-
|
|
1932
|
+
I("", !0),
|
|
1933
|
+
I("", !0)
|
|
1933
1934
|
])
|
|
1934
1935
|
])
|
|
1935
1936
|
]),
|
|
@@ -1940,7 +1941,7 @@ function va(e, t, n, o, a, r) {
|
|
|
1940
1941
|
const Ie = /* @__PURE__ */ D(fa, [["render", va]]), $e = {
|
|
1941
1942
|
__name: "WorkflowTodoBell",
|
|
1942
1943
|
setup(e) {
|
|
1943
|
-
const t =
|
|
1944
|
+
const t = oe(), n = ae();
|
|
1944
1945
|
C(() => t.state.app.auth);
|
|
1945
1946
|
const o = C(() => t.state.auth.userInfo), a = C(() => t.state.app.appLayoutType);
|
|
1946
1947
|
C(() => t.state.app.casServerLoginUrl), C(() => t.state.app.casServerLogoutUrl);
|
|
@@ -1949,7 +1950,7 @@ const Ie = /* @__PURE__ */ D(fa, [["render", va]]), $e = {
|
|
|
1949
1950
|
};
|
|
1950
1951
|
return (i, c) => {
|
|
1951
1952
|
const d = l("a-icon"), f = l("a-badge");
|
|
1952
|
-
return p(),
|
|
1953
|
+
return p(), M("div", {
|
|
1953
1954
|
class: "d-flex align-items-center cursor-pointer",
|
|
1954
1955
|
onClick: r
|
|
1955
1956
|
}, [
|
|
@@ -1960,7 +1961,7 @@ const Ie = /* @__PURE__ */ D(fa, [["render", va]]), $e = {
|
|
|
1960
1961
|
default: s(() => [
|
|
1961
1962
|
u(d, {
|
|
1962
1963
|
type: "icon-bell",
|
|
1963
|
-
class:
|
|
1964
|
+
class: Z(["fs-5", [["classic", "headerLeft", "headerRight", "headerRightPro"].includes(a.value) ? "text-white" : "text-muted"]])
|
|
1964
1965
|
}, null, 8, ["class"])
|
|
1965
1966
|
]),
|
|
1966
1967
|
_: 1
|
|
@@ -1971,7 +1972,7 @@ const Ie = /* @__PURE__ */ D(fa, [["render", va]]), $e = {
|
|
|
1971
1972
|
}, ga = X({
|
|
1972
1973
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
1973
1974
|
setup() {
|
|
1974
|
-
const e =
|
|
1975
|
+
const e = oe(), t = ae(), n = S("menu"), o = S("breakpoint", B(!1)), a = S("onBreakpoint", () => {
|
|
1975
1976
|
}), r = (i) => {
|
|
1976
1977
|
t.push(i.key);
|
|
1977
1978
|
};
|
|
@@ -1993,10 +1994,10 @@ const Ie = /* @__PURE__ */ D(fa, [["render", va]]), $e = {
|
|
|
1993
1994
|
}
|
|
1994
1995
|
}), ba = { class: "d-flex justify-content-between" }, _a = { class: "d-flex align-items-center" }, ka = { class: "mb-0 px-2 fs-5 fw-bold" }, wa = { class: "flex-fill d-flex justify-content-end h-100" }, Sa = { key: 0 };
|
|
1995
1996
|
function Ca(e, t, n, o, a, r) {
|
|
1996
|
-
const i = l("a-icon"), c = l("NavMenu"), d = l("a-menu"), f = l("a-divider"), y = l("WorkflowTodoBell"),
|
|
1997
|
-
return p(), v(
|
|
1997
|
+
const i = l("a-icon"), c = l("NavMenu"), d = l("a-menu"), f = l("a-divider"), y = l("WorkflowTodoBell"), g = l("UserBar"), h = l("a-space"), b = l("a-layout-header"), k = l("router-view"), A = l("a-layout-content"), T = l("a-layout");
|
|
1998
|
+
return p(), v(T, { class: "app-layout bg-white" }, {
|
|
1998
1999
|
default: s(() => [
|
|
1999
|
-
u(
|
|
2000
|
+
u(b, {
|
|
2000
2001
|
class: "px-3 bg-white border-bottom",
|
|
2001
2002
|
style: { height: "64px", "line-height": "64px" }
|
|
2002
2003
|
}, {
|
|
@@ -2008,7 +2009,7 @@ function Ca(e, t, n, o, a, r) {
|
|
|
2008
2009
|
class: "font1-5 text-bg-primary bg-opacity-75 rounded-4 rounded-end rounded-bottom p-1"
|
|
2009
2010
|
}),
|
|
2010
2011
|
m("h6", ka, [
|
|
2011
|
-
m("small", null,
|
|
2012
|
+
m("small", null, U(e.appName), 1)
|
|
2012
2013
|
])
|
|
2013
2014
|
]),
|
|
2014
2015
|
m("div", wa, [
|
|
@@ -2022,25 +2023,25 @@ function Ca(e, t, n, o, a, r) {
|
|
|
2022
2023
|
]),
|
|
2023
2024
|
_: 1
|
|
2024
2025
|
}, 8, ["selectedKeys", "onClick"]),
|
|
2025
|
-
e.fase ? (p(),
|
|
2026
|
+
e.fase ? (p(), M("div", Sa, [
|
|
2026
2027
|
u(f, {
|
|
2027
2028
|
type: "vertical",
|
|
2028
2029
|
class: "h-50"
|
|
2029
2030
|
})
|
|
2030
|
-
])) :
|
|
2031
|
+
])) : I("", !0),
|
|
2031
2032
|
u(h, { size: "middle" }, {
|
|
2032
2033
|
default: s(() => [
|
|
2033
2034
|
e.todoBellEnabled ? (p(), v(f, {
|
|
2034
2035
|
key: 0,
|
|
2035
2036
|
type: "vertical",
|
|
2036
2037
|
class: ""
|
|
2037
|
-
})) :
|
|
2038
|
-
e.todoBellEnabled ? (p(), v(y, { key: 1 })) :
|
|
2038
|
+
})) : I("", !0),
|
|
2039
|
+
e.todoBellEnabled ? (p(), v(y, { key: 1 })) : I("", !0),
|
|
2039
2040
|
u(f, {
|
|
2040
2041
|
type: "vertical",
|
|
2041
2042
|
class: ""
|
|
2042
2043
|
}),
|
|
2043
|
-
u(
|
|
2044
|
+
u(g)
|
|
2044
2045
|
]),
|
|
2045
2046
|
_: 1
|
|
2046
2047
|
})
|
|
@@ -2051,7 +2052,7 @@ function Ca(e, t, n, o, a, r) {
|
|
|
2051
2052
|
}),
|
|
2052
2053
|
u(A, { id: "ant-layout-content ofa" }, {
|
|
2053
2054
|
default: s(() => [
|
|
2054
|
-
u(
|
|
2055
|
+
u(k)
|
|
2055
2056
|
]),
|
|
2056
2057
|
_: 1
|
|
2057
2058
|
})
|
|
@@ -2062,7 +2063,7 @@ function Ca(e, t, n, o, a, r) {
|
|
|
2062
2063
|
const Ba = /* @__PURE__ */ D(ga, [["render", Ca]]), Ea = X({
|
|
2063
2064
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2064
2065
|
setup() {
|
|
2065
|
-
const e =
|
|
2066
|
+
const e = oe(), t = ae(), n = S("menu"), o = S("breakpoint", B(!1)), a = S("onBreakpoint", () => {
|
|
2066
2067
|
}), r = (f) => {
|
|
2067
2068
|
t.push(f.key);
|
|
2068
2069
|
}, { useToken: i } = Qe, { token: c } = i(), d = S("layoutSiderOptionsCollapsed", B(!0));
|
|
@@ -2091,26 +2092,26 @@ const Ba = /* @__PURE__ */ D(ga, [["render", Ca]]), Ea = X({
|
|
|
2091
2092
|
style: { "overflow-x": "hidden!important" }
|
|
2092
2093
|
};
|
|
2093
2094
|
function Oa(e, t, n, o, a, r) {
|
|
2094
|
-
const i = l("MobileHeader"), c = l("WorkflowTodoBell"), d = l("a-divider"), f = l("UserBar"), y = l("a-space"),
|
|
2095
|
-
return p(), v(
|
|
2095
|
+
const i = l("MobileHeader"), c = l("WorkflowTodoBell"), d = l("a-divider"), f = l("UserBar"), y = l("a-space"), g = l("a-layout-header"), h = l("NavMenu"), b = l("a-menu"), k = l("a-layout-sider"), A = l("Breadcrumb"), T = l("TabTags"), O = l("router-view"), w = l("a-layout-content"), _ = l("a-icon"), E = l("a-layout-footer"), z = l("a-layout");
|
|
2096
|
+
return p(), v(z, { class: "app-layout" }, {
|
|
2096
2097
|
default: s(() => [
|
|
2097
|
-
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(
|
|
2098
|
+
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(g, {
|
|
2098
2099
|
key: 1,
|
|
2099
2100
|
class: "px-3 border-bottom header-h50 text-white",
|
|
2100
2101
|
style: it({ background: e.token.colorPrimaryHover + "!important" })
|
|
2101
2102
|
}, {
|
|
2102
2103
|
default: s(() => [
|
|
2103
2104
|
m("div", xa, [
|
|
2104
|
-
m("span", Ia,
|
|
2105
|
+
m("span", Ia, U(e.appName), 1),
|
|
2105
2106
|
m("div", $a, [
|
|
2106
2107
|
u(y, { size: "middle" }, {
|
|
2107
2108
|
default: s(() => [
|
|
2108
|
-
e.todoBellEnabled ? (p(), v(c, { key: 0 })) :
|
|
2109
|
+
e.todoBellEnabled ? (p(), v(c, { key: 0 })) : I("", !0),
|
|
2109
2110
|
e.todoBellEnabled ? (p(), v(d, {
|
|
2110
2111
|
key: 1,
|
|
2111
2112
|
type: "vertical",
|
|
2112
2113
|
class: ""
|
|
2113
|
-
})) :
|
|
2114
|
+
})) : I("", !0),
|
|
2114
2115
|
u(f)
|
|
2115
2116
|
]),
|
|
2116
2117
|
_: 1
|
|
@@ -2120,9 +2121,9 @@ function Oa(e, t, n, o, a, r) {
|
|
|
2120
2121
|
]),
|
|
2121
2122
|
_: 1
|
|
2122
2123
|
}, 8, ["style"])),
|
|
2123
|
-
u(
|
|
2124
|
+
u(z, null, {
|
|
2124
2125
|
default: s(() => [
|
|
2125
|
-
u(
|
|
2126
|
+
u(k, {
|
|
2126
2127
|
collapsed: e.menuIsCollapse,
|
|
2127
2128
|
"onUpdate:collapsed": t[0] || (t[0] = (R) => e.menuIsCollapse = R),
|
|
2128
2129
|
theme: "light",
|
|
@@ -2134,11 +2135,11 @@ function Oa(e, t, n, o, a, r) {
|
|
|
2134
2135
|
default: s(() => [
|
|
2135
2136
|
m("div", Ma, [
|
|
2136
2137
|
m("div", Ta, [
|
|
2137
|
-
u(
|
|
2138
|
+
u(b, {
|
|
2138
2139
|
selectedKeys: [e.$route.path],
|
|
2139
2140
|
mode: "inline",
|
|
2140
2141
|
onClick: e.goToRoute,
|
|
2141
|
-
class:
|
|
2142
|
+
class: Z(e.menuItemActiveStyle)
|
|
2142
2143
|
}, {
|
|
2143
2144
|
default: s(() => [
|
|
2144
2145
|
u(h, { navMenus: e.menu }, null, 8, ["navMenus"])
|
|
@@ -2150,9 +2151,9 @@ function Oa(e, t, n, o, a, r) {
|
|
|
2150
2151
|
]),
|
|
2151
2152
|
_: 1
|
|
2152
2153
|
}, 8, ["collapsed", "onBreakpoint"]),
|
|
2153
|
-
u(
|
|
2154
|
+
u(z, null, {
|
|
2154
2155
|
default: s(() => [
|
|
2155
|
-
e.breakpoint ?
|
|
2156
|
+
e.breakpoint ? I("", !0) : (p(), v(g, {
|
|
2156
2157
|
key: 0,
|
|
2157
2158
|
class: "breadcrumb mb-0 px-3 bg-white border-bottom header-h40"
|
|
2158
2159
|
}, {
|
|
@@ -2161,17 +2162,17 @@ function Oa(e, t, n, o, a, r) {
|
|
|
2161
2162
|
]),
|
|
2162
2163
|
_: 1
|
|
2163
2164
|
})),
|
|
2164
|
-
e.tagsBarIsEnabled && !e.breakpoint ? (p(), v(
|
|
2165
|
+
e.tagsBarIsEnabled && !e.breakpoint ? (p(), v(T, { key: 1 })) : I("", !0),
|
|
2165
2166
|
u(w, {
|
|
2166
2167
|
id: "ant-layout-content",
|
|
2167
|
-
class:
|
|
2168
|
+
class: Z(["ofa d-flex flex-column", { "p-0": e.breakpoint, "ps-0": !e.breakpoint }])
|
|
2168
2169
|
}, {
|
|
2169
2170
|
default: s(() => [
|
|
2170
2171
|
u(O)
|
|
2171
2172
|
]),
|
|
2172
2173
|
_: 1
|
|
2173
2174
|
}, 8, ["class"]),
|
|
2174
|
-
(e.breakpoint,
|
|
2175
|
+
(e.breakpoint, I("", !0))
|
|
2175
2176
|
]),
|
|
2176
2177
|
_: 1
|
|
2177
2178
|
})
|
|
@@ -2185,7 +2186,7 @@ function Oa(e, t, n, o, a, r) {
|
|
|
2185
2186
|
const Ra = /* @__PURE__ */ D(Ea, [["render", Oa], ["__scopeId", "data-v-16b05c4f"]]), Na = X({
|
|
2186
2187
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2187
2188
|
setup() {
|
|
2188
|
-
const e =
|
|
2189
|
+
const e = oe(), t = ae(), n = S("menu"), o = S("breakpoint", B(!1)), a = S("onBreakpoint", () => {
|
|
2189
2190
|
}), r = (i) => {
|
|
2190
2191
|
t.push(i.key);
|
|
2191
2192
|
};
|
|
@@ -2207,43 +2208,43 @@ const Ra = /* @__PURE__ */ D(Ea, [["render", Oa], ["__scopeId", "data-v-16b05c4f
|
|
|
2207
2208
|
}
|
|
2208
2209
|
}), Aa = { class: "d-flex justify-content-between" }, Pa = { class: "flex-fill d-flex justify-content-end h-100" };
|
|
2209
2210
|
function za(e, t, n, o, a, r) {
|
|
2210
|
-
const i = l("MobileHeader"), c = l("NavMenu"), d = l("a-menu"), f = l("a-divider"), y = l("WorkflowTodoBell"),
|
|
2211
|
-
return p(), v(
|
|
2211
|
+
const i = l("MobileHeader"), c = l("NavMenu"), d = l("a-menu"), f = l("a-divider"), y = l("WorkflowTodoBell"), g = l("UserBar"), h = l("a-space"), b = l("a-layout-header"), k = l("router-view"), A = l("a-layout-content"), T = l("a-layout");
|
|
2212
|
+
return p(), v(T, { class: "app-layout" }, {
|
|
2212
2213
|
default: s(() => [
|
|
2213
|
-
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(
|
|
2214
|
+
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(b, {
|
|
2214
2215
|
key: 1,
|
|
2215
2216
|
class: "px-3 bg-white border-bottom",
|
|
2216
2217
|
style: { height: "46px", "line-height": "46px" }
|
|
2217
2218
|
}, {
|
|
2218
2219
|
default: s(() => [
|
|
2219
2220
|
m("div", Aa, [
|
|
2220
|
-
m("span", null,
|
|
2221
|
+
m("span", null, U(e.appName), 1),
|
|
2221
2222
|
m("div", Pa, [
|
|
2222
2223
|
u(d, {
|
|
2223
2224
|
selectedKeys: [e.$route.path],
|
|
2224
2225
|
mode: "horizontal",
|
|
2225
2226
|
onClick: e.goToRoute,
|
|
2226
|
-
class:
|
|
2227
|
+
class: Z(e.menuItemActiveStyle)
|
|
2227
2228
|
}, {
|
|
2228
2229
|
default: s(() => [
|
|
2229
2230
|
u(c, { navMenus: e.menu }, null, 8, ["navMenus"])
|
|
2230
2231
|
]),
|
|
2231
2232
|
_: 1
|
|
2232
2233
|
}, 8, ["selectedKeys", "onClick", "class"]),
|
|
2233
|
-
|
|
2234
|
+
I("", !0),
|
|
2234
2235
|
u(h, { size: "middle" }, {
|
|
2235
2236
|
default: s(() => [
|
|
2236
2237
|
e.todoBellEnabled ? (p(), v(f, {
|
|
2237
2238
|
key: 0,
|
|
2238
2239
|
type: "vertical",
|
|
2239
2240
|
class: ""
|
|
2240
|
-
})) :
|
|
2241
|
-
e.todoBellEnabled ? (p(), v(y, { key: 1 })) :
|
|
2241
|
+
})) : I("", !0),
|
|
2242
|
+
e.todoBellEnabled ? (p(), v(y, { key: 1 })) : I("", !0),
|
|
2242
2243
|
u(f, {
|
|
2243
2244
|
type: "vertical",
|
|
2244
2245
|
class: ""
|
|
2245
2246
|
}),
|
|
2246
|
-
u(
|
|
2247
|
+
u(g)
|
|
2247
2248
|
]),
|
|
2248
2249
|
_: 1
|
|
2249
2250
|
})
|
|
@@ -2254,7 +2255,7 @@ function za(e, t, n, o, a, r) {
|
|
|
2254
2255
|
})),
|
|
2255
2256
|
u(A, { id: "ant-layout-content ofa" }, {
|
|
2256
2257
|
default: s(() => [
|
|
2257
|
-
u(
|
|
2258
|
+
u(k)
|
|
2258
2259
|
]),
|
|
2259
2260
|
_: 1
|
|
2260
2261
|
})
|
|
@@ -2265,11 +2266,11 @@ function za(e, t, n, o, a, r) {
|
|
|
2265
2266
|
const La = /* @__PURE__ */ D(Na, [["render", za]]), ja = X({
|
|
2266
2267
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2267
2268
|
setup() {
|
|
2268
|
-
const e =
|
|
2269
|
-
}), f = (
|
|
2270
|
-
t.push(
|
|
2271
|
-
}, y = (
|
|
2272
|
-
r.value =
|
|
2269
|
+
const e = oe(), t = ae(), { useToken: n } = Qe, { token: o } = n(), a = S("menu"), r = S("pmenu"), i = S("nextMenu"), c = S("breakpoint", B(!1)), d = S("onBreakpoint", () => {
|
|
2270
|
+
}), f = (g) => {
|
|
2271
|
+
t.push(g.key);
|
|
2272
|
+
}, y = (g) => {
|
|
2273
|
+
r.value = g, i.value = r.value.children, g.children || t.push(g.path);
|
|
2273
2274
|
};
|
|
2274
2275
|
return {
|
|
2275
2276
|
token: o,
|
|
@@ -2307,8 +2308,8 @@ const La = /* @__PURE__ */ D(Na, [["render", za]]), ja = X({
|
|
|
2307
2308
|
style: { "overflow-x": "hidden!important" }
|
|
2308
2309
|
};
|
|
2309
2310
|
function Ja(e, t, n, o, a, r) {
|
|
2310
|
-
const i = l("MobileHeader"), c = l("a-avatar"), d = l("a-icon"), f = l("a-layout-sider"), y = l("NavMenu"),
|
|
2311
|
-
return p(), v(
|
|
2311
|
+
const i = l("MobileHeader"), c = l("a-avatar"), d = l("a-icon"), f = l("a-layout-sider"), y = l("NavMenu"), g = l("a-menu"), h = l("WorkflowTodoBell"), b = l("a-divider"), k = l("UserBar"), A = l("a-space"), T = l("Breadcrumb"), O = l("a-layout-header"), w = l("TabTags"), _ = l("router-view"), E = l("a-layout-content"), z = l("a-layout");
|
|
2312
|
+
return p(), v(z, { class: "app-layout sidebar-layout h-100" }, {
|
|
2312
2313
|
default: s(() => [
|
|
2313
2314
|
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(f, {
|
|
2314
2315
|
key: 1,
|
|
@@ -2320,23 +2321,23 @@ function Ja(e, t, n, o, a, r) {
|
|
|
2320
2321
|
m("div", Ua, [
|
|
2321
2322
|
m("div", Wa, [
|
|
2322
2323
|
m("ul", Ka, [
|
|
2323
|
-
(p(),
|
|
2324
|
+
(p(), M("li", Fa, [
|
|
2324
2325
|
u(c, { src: e.appLogo }, null, 8, ["src"]),
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2326
|
+
I("", !0),
|
|
2327
|
+
I("", !0),
|
|
2328
|
+
I("", !0),
|
|
2329
|
+
I("", !0)
|
|
2329
2330
|
])),
|
|
2330
|
-
(p(!0),
|
|
2331
|
-
class:
|
|
2331
|
+
(p(!0), M(V, null, q(e.menu, (R) => (p(), M("li", {
|
|
2332
|
+
class: Z(["px-2 py-3", e.pmenu?.path == R.path ? "active" : ""]),
|
|
2332
2333
|
key: R,
|
|
2333
2334
|
style: it({ background: e.pmenu?.path == R.path ? e.token.colorPrimaryHover : "" }),
|
|
2334
|
-
onClick: (
|
|
2335
|
+
onClick: (j) => e.refreshSubMenu(R)
|
|
2335
2336
|
}, [
|
|
2336
2337
|
u(d, {
|
|
2337
2338
|
type: R.meta.icon
|
|
2338
2339
|
}, null, 8, ["type"]),
|
|
2339
|
-
m("p", Da,
|
|
2340
|
+
m("p", Da, U(R.meta.title), 1)
|
|
2340
2341
|
], 14, Va))), 128))
|
|
2341
2342
|
])
|
|
2342
2343
|
])
|
|
@@ -2344,7 +2345,7 @@ function Ja(e, t, n, o, a, r) {
|
|
|
2344
2345
|
]),
|
|
2345
2346
|
_: 1
|
|
2346
2347
|
})),
|
|
2347
|
-
u(
|
|
2348
|
+
u(z, null, {
|
|
2348
2349
|
default: s(() => [
|
|
2349
2350
|
u(f, {
|
|
2350
2351
|
collapsed: e.menuIsCollapse,
|
|
@@ -2357,10 +2358,10 @@ function Ja(e, t, n, o, a, r) {
|
|
|
2357
2358
|
}, {
|
|
2358
2359
|
default: s(() => [
|
|
2359
2360
|
m("div", Ha, [
|
|
2360
|
-
(p(),
|
|
2361
|
+
(p(), M("h2", Qa, U(e.pmenu?.meta ? e.pmenu?.meta?.title : ""), 1)),
|
|
2361
2362
|
m("div", Ga, [
|
|
2362
|
-
u(
|
|
2363
|
-
class:
|
|
2363
|
+
u(g, {
|
|
2364
|
+
class: Z(["bg-transparent", e.menuItemActiveStyle]),
|
|
2364
2365
|
selectedKeys: [e.$route.path],
|
|
2365
2366
|
mode: "inline",
|
|
2366
2367
|
onClick: e.goToRoute
|
|
@@ -2375,24 +2376,24 @@ function Ja(e, t, n, o, a, r) {
|
|
|
2375
2376
|
]),
|
|
2376
2377
|
_: 1
|
|
2377
2378
|
}, 8, ["collapsed", "onBreakpoint"]),
|
|
2378
|
-
u(
|
|
2379
|
+
u(z, null, {
|
|
2379
2380
|
default: s(() => [
|
|
2380
|
-
e.breakpoint ?
|
|
2381
|
+
e.breakpoint ? I("", !0) : (p(), v(O, {
|
|
2381
2382
|
key: 0,
|
|
2382
2383
|
class: "px-3 bg-white border-bottom header-h46"
|
|
2383
2384
|
}, {
|
|
2384
2385
|
default: s(() => [
|
|
2385
|
-
u(
|
|
2386
|
+
u(T, null, {
|
|
2386
2387
|
userBar: s(() => [
|
|
2387
2388
|
u(A, { size: "middle" }, {
|
|
2388
2389
|
default: s(() => [
|
|
2389
|
-
e.todoBellEnabled ? (p(), v(h, { key: 0 })) :
|
|
2390
|
-
e.todoBellEnabled ? (p(), v(
|
|
2390
|
+
e.todoBellEnabled ? (p(), v(h, { key: 0 })) : I("", !0),
|
|
2391
|
+
e.todoBellEnabled ? (p(), v(b, {
|
|
2391
2392
|
key: 1,
|
|
2392
2393
|
type: "vertical",
|
|
2393
2394
|
class: ""
|
|
2394
|
-
})) :
|
|
2395
|
-
u(
|
|
2395
|
+
})) : I("", !0),
|
|
2396
|
+
u(k)
|
|
2396
2397
|
]),
|
|
2397
2398
|
_: 1
|
|
2398
2399
|
})
|
|
@@ -2402,13 +2403,13 @@ function Ja(e, t, n, o, a, r) {
|
|
|
2402
2403
|
]),
|
|
2403
2404
|
_: 1
|
|
2404
2405
|
})),
|
|
2405
|
-
e.tagsBarIsEnabled && !e.breakpoint ? (p(), v(w, { key: 1 })) :
|
|
2406
|
+
e.tagsBarIsEnabled && !e.breakpoint ? (p(), v(w, { key: 1 })) : I("", !0),
|
|
2406
2407
|
u(E, {
|
|
2407
2408
|
id: "ant-layout-content",
|
|
2408
|
-
class:
|
|
2409
|
+
class: Z(["ofa bg-white", { "p-0": e.breakpoint, "p-0": !e.breakpoint }])
|
|
2409
2410
|
}, {
|
|
2410
2411
|
default: s(() => [
|
|
2411
|
-
u(
|
|
2412
|
+
u(_)
|
|
2412
2413
|
]),
|
|
2413
2414
|
_: 1
|
|
2414
2415
|
}, 8, ["class"])
|
|
@@ -2434,23 +2435,23 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2434
2435
|
}, rr = {
|
|
2435
2436
|
__name: "SidebarAppProLayout",
|
|
2436
2437
|
setup(e) {
|
|
2437
|
-
const t =
|
|
2438
|
+
const t = oe(), n = ae(), { useToken: o } = Qe, { token: a } = o(), r = S("menu"), i = S("pmenu"), c = S("nextMenu"), d = S("breakpoint", B(!1)), f = S("onBreakpoint", () => {
|
|
2438
2439
|
}), y = (w) => {
|
|
2439
2440
|
n.push(w.key);
|
|
2440
|
-
},
|
|
2441
|
+
}, g = (w) => {
|
|
2441
2442
|
i.value = w, c.value = i.value.children, w.children || n.push(w.path);
|
|
2442
|
-
}, h = B(0),
|
|
2443
|
+
}, h = B(0), b = C(() => t.state.app.menuIsCollapse);
|
|
2443
2444
|
ce(() => [c?.value], ([w]) => {
|
|
2444
|
-
!w || !Array.isArray(w) || w.length === 0 ?
|
|
2445
|
+
!w || !Array.isArray(w) || w.length === 0 ? b.value ? h.value > 0 && (h.value = 0) : (h.value = 0, t.commit("TOGGLE_menuIsCollapse")) : (h.value = 80, b.value && t.commit("TOGGLE_menuIsCollapse"));
|
|
2445
2446
|
});
|
|
2446
|
-
const
|
|
2447
|
+
const k = C(() => t.state.app.appLogo);
|
|
2447
2448
|
C(() => t.state.app.appName);
|
|
2448
|
-
const A = C(() => t.state.app.tagsBarIsEnabled),
|
|
2449
|
-
return (w,
|
|
2450
|
-
const E = l("a-avatar"),
|
|
2449
|
+
const A = C(() => t.state.app.tagsBarIsEnabled), T = C(() => t.state.app.menuItemActiveStyle), O = C(() => t.state.app.todoBellEnabled);
|
|
2450
|
+
return (w, _) => {
|
|
2451
|
+
const E = l("a-avatar"), z = l("a-icon"), R = l("a-layout-sider"), j = l("a-divider"), Q = l("a-space"), K = l("a-layout-header"), Y = l("a-menu"), ee = l("router-view"), te = l("a-layout-content"), se = l("a-layout");
|
|
2451
2452
|
return p(), v(se, { class: "app-layout sidebar-layout h-100" }, {
|
|
2452
2453
|
default: s(() => [
|
|
2453
|
-
|
|
2454
|
+
$(d) ? (p(), v(Ie, { key: 0 })) : (p(), v(R, {
|
|
2454
2455
|
key: 1,
|
|
2455
2456
|
defaultCollapsed: !0,
|
|
2456
2457
|
collapsedWidth: "65",
|
|
@@ -2460,23 +2461,23 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2460
2461
|
m("div", Ya, [
|
|
2461
2462
|
m("div", qa, [
|
|
2462
2463
|
m("ul", Xa, [
|
|
2463
|
-
(p(),
|
|
2464
|
-
u(E, { src:
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2464
|
+
(p(), M("li", er, [
|
|
2465
|
+
u(E, { src: k.value }, null, 8, ["src"]),
|
|
2466
|
+
I("", !0),
|
|
2467
|
+
I("", !0),
|
|
2468
|
+
I("", !0),
|
|
2469
|
+
I("", !0)
|
|
2469
2470
|
])),
|
|
2470
|
-
(p(!0),
|
|
2471
|
-
class:
|
|
2471
|
+
(p(!0), M(V, null, q($(r), (re) => (p(), M("li", {
|
|
2472
|
+
class: Z(["py-2", $(i)?.path == re.path ? "active" : ""]),
|
|
2472
2473
|
key: re,
|
|
2473
|
-
style: it({ background:
|
|
2474
|
-
onClick: (ue) =>
|
|
2474
|
+
style: it({ background: $(i)?.path == re.path ? $(a).colorPrimaryHover : "" }),
|
|
2475
|
+
onClick: (ue) => g(re)
|
|
2475
2476
|
}, [
|
|
2476
|
-
u(
|
|
2477
|
+
u(z, {
|
|
2477
2478
|
type: re.meta.icon
|
|
2478
2479
|
}, null, 8, ["type"]),
|
|
2479
|
-
m("p", nr,
|
|
2480
|
+
m("p", nr, U(re.meta.title), 1)
|
|
2480
2481
|
], 14, tr))), 128))
|
|
2481
2482
|
])
|
|
2482
2483
|
])
|
|
@@ -2486,7 +2487,7 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2486
2487
|
})),
|
|
2487
2488
|
u(se, null, {
|
|
2488
2489
|
default: s(() => [
|
|
2489
|
-
|
|
2490
|
+
$(d) ? I("", !0) : (p(), v(K, {
|
|
2490
2491
|
key: 0,
|
|
2491
2492
|
class: "px-3 bg-white border-bottom header-h56"
|
|
2492
2493
|
}, {
|
|
@@ -2495,12 +2496,12 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2495
2496
|
userBar: s(() => [
|
|
2496
2497
|
u(Q, { size: "middle" }, {
|
|
2497
2498
|
default: s(() => [
|
|
2498
|
-
O.value ? (p(), v($e, { key: 0 })) :
|
|
2499
|
-
O.value ? (p(), v(
|
|
2499
|
+
O.value ? (p(), v($e, { key: 0 })) : I("", !0),
|
|
2500
|
+
O.value ? (p(), v(j, {
|
|
2500
2501
|
key: 1,
|
|
2501
2502
|
type: "vertical",
|
|
2502
2503
|
class: ""
|
|
2503
|
-
})) :
|
|
2504
|
+
})) : I("", !0),
|
|
2504
2505
|
u(Ce)
|
|
2505
2506
|
]),
|
|
2506
2507
|
_: 1
|
|
@@ -2514,9 +2515,9 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2514
2515
|
u(se, null, {
|
|
2515
2516
|
default: s(() => [
|
|
2516
2517
|
u(R, {
|
|
2517
|
-
collapsed:
|
|
2518
|
-
"onUpdate:collapsed":
|
|
2519
|
-
onBreakpoint:
|
|
2518
|
+
collapsed: b.value,
|
|
2519
|
+
"onUpdate:collapsed": _[0] || (_[0] = (re) => b.value = re),
|
|
2520
|
+
onBreakpoint: $(f),
|
|
2520
2521
|
breakpoint: "md",
|
|
2521
2522
|
theme: "light",
|
|
2522
2523
|
trigger: null,
|
|
@@ -2526,14 +2527,14 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2526
2527
|
default: s(() => [
|
|
2527
2528
|
m("div", or, [
|
|
2528
2529
|
m("div", ar, [
|
|
2529
|
-
u(
|
|
2530
|
-
class:
|
|
2530
|
+
u(Y, {
|
|
2531
|
+
class: Z(["bg-transparent", T.value]),
|
|
2531
2532
|
selectedKeys: [w.$route.path],
|
|
2532
2533
|
mode: "inline",
|
|
2533
2534
|
onClick: y
|
|
2534
2535
|
}, {
|
|
2535
2536
|
default: s(() => [
|
|
2536
|
-
u(he, { navMenus:
|
|
2537
|
+
u(he, { navMenus: $(c) }, null, 8, ["navMenus"])
|
|
2537
2538
|
]),
|
|
2538
2539
|
_: 1
|
|
2539
2540
|
}, 8, ["selectedKeys", "class"])
|
|
@@ -2544,13 +2545,13 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2544
2545
|
}, 8, ["collapsed", "onBreakpoint", "collapsedWidth"]),
|
|
2545
2546
|
u(se, null, {
|
|
2546
2547
|
default: s(() => [
|
|
2547
|
-
A.value &&
|
|
2548
|
+
A.value && !$(d) ? (p(), v(Ee, { key: 0 })) : I("", !0),
|
|
2548
2549
|
u(te, {
|
|
2549
2550
|
id: "ant-layout-content",
|
|
2550
|
-
class:
|
|
2551
|
+
class: Z(["ofa bg-white", { "p-0": $(d), "p-0": !$(d) }])
|
|
2551
2552
|
}, {
|
|
2552
2553
|
default: s(() => [
|
|
2553
|
-
u(
|
|
2554
|
+
u(ee)
|
|
2554
2555
|
]),
|
|
2555
2556
|
_: 1
|
|
2556
2557
|
}, 8, ["class"])
|
|
@@ -2571,7 +2572,7 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2571
2572
|
}, lr = /* @__PURE__ */ D(rr, [["__scopeId", "data-v-8e854fe2"]]), sr = X({
|
|
2572
2573
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2573
2574
|
setup() {
|
|
2574
|
-
const e =
|
|
2575
|
+
const e = oe(), t = ae(), n = S("menu"), o = S("pmenu"), a = S("nextMenu"), r = S("breakpoint", B(!1)), i = S("onBreakpoint", () => {
|
|
2575
2576
|
}), c = (f) => {
|
|
2576
2577
|
t.push(f.key);
|
|
2577
2578
|
}, d = (f) => {
|
|
@@ -2604,7 +2605,7 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2604
2605
|
style: { "overflow-x": "hidden!important" }
|
|
2605
2606
|
};
|
|
2606
2607
|
function hr(e, t, n, o, a, r) {
|
|
2607
|
-
const i = l("MobileHeader"), c = l("a-icon"), d = l("WorkflowTodoBell"), f = l("a-divider"), y = l("UserBar"),
|
|
2608
|
+
const i = l("MobileHeader"), c = l("a-icon"), d = l("WorkflowTodoBell"), f = l("a-divider"), y = l("UserBar"), g = l("a-space"), h = l("a-layout-header"), b = l("NavMenu"), k = l("a-menu"), A = l("a-layout-sider"), T = l("Breadcrumb"), O = l("TabTags"), w = l("router-view"), _ = l("a-layout-content"), E = l("a-layout");
|
|
2608
2609
|
return p(), v(E, { class: "app-layout header-layout h-100" }, {
|
|
2609
2610
|
default: s(() => [
|
|
2610
2611
|
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(h, {
|
|
@@ -2613,29 +2614,29 @@ function hr(e, t, n, o, a, r) {
|
|
|
2613
2614
|
}, {
|
|
2614
2615
|
default: s(() => [
|
|
2615
2616
|
m("div", ur, [
|
|
2616
|
-
m("span", ir,
|
|
2617
|
+
m("span", ir, U(e.appName), 1),
|
|
2617
2618
|
m("div", cr, [
|
|
2618
2619
|
m("ul", dr, [
|
|
2619
|
-
(p(!0),
|
|
2620
|
-
class:
|
|
2621
|
-
key:
|
|
2622
|
-
onClick: (R) => e.refreshSubMenu(
|
|
2620
|
+
(p(!0), M(V, null, q(e.menu, (z) => (p(), M("li", {
|
|
2621
|
+
class: Z(["px-3", e.pmenu?.path == z?.path ? "active" : ""]),
|
|
2622
|
+
key: z,
|
|
2623
|
+
onClick: (R) => e.refreshSubMenu(z)
|
|
2623
2624
|
}, [
|
|
2624
2625
|
u(c, {
|
|
2625
|
-
type:
|
|
2626
|
+
type: z.meta.icon,
|
|
2626
2627
|
class: "font1-15"
|
|
2627
2628
|
}, null, 8, ["type"]),
|
|
2628
|
-
G(" " +
|
|
2629
|
+
G(" " + U(z.meta.title), 1)
|
|
2629
2630
|
], 10, pr))), 128))
|
|
2630
2631
|
]),
|
|
2631
|
-
u(
|
|
2632
|
+
u(g, { size: "middle" }, {
|
|
2632
2633
|
default: s(() => [
|
|
2633
|
-
e.todoBellEnabled ? (p(), v(d, { key: 0 })) :
|
|
2634
|
+
e.todoBellEnabled ? (p(), v(d, { key: 0 })) : I("", !0),
|
|
2634
2635
|
e.todoBellEnabled ? (p(), v(f, {
|
|
2635
2636
|
key: 1,
|
|
2636
2637
|
type: "vertical",
|
|
2637
2638
|
class: "bg-light"
|
|
2638
|
-
})) :
|
|
2639
|
+
})) : I("", !0),
|
|
2639
2640
|
u(y)
|
|
2640
2641
|
]),
|
|
2641
2642
|
_: 1
|
|
@@ -2650,7 +2651,7 @@ function hr(e, t, n, o, a, r) {
|
|
|
2650
2651
|
e.nextMenu && e.nextMenu.length > 0 ? (p(), v(A, {
|
|
2651
2652
|
key: 0,
|
|
2652
2653
|
collapsed: e.menuIsCollapse,
|
|
2653
|
-
"onUpdate:collapsed": t[0] || (t[0] = (
|
|
2654
|
+
"onUpdate:collapsed": t[0] || (t[0] = (z) => e.menuIsCollapse = z),
|
|
2654
2655
|
onBreakpoint: e.onBreakpoint,
|
|
2655
2656
|
breakpoint: "md",
|
|
2656
2657
|
theme: "light",
|
|
@@ -2660,14 +2661,14 @@ function hr(e, t, n, o, a, r) {
|
|
|
2660
2661
|
default: s(() => [
|
|
2661
2662
|
m("div", fr, [
|
|
2662
2663
|
m("div", mr, [
|
|
2663
|
-
u(
|
|
2664
|
+
u(k, {
|
|
2664
2665
|
selectedKeys: [e.$route.path],
|
|
2665
2666
|
mode: "inline",
|
|
2666
2667
|
onClick: e.goToRoute,
|
|
2667
|
-
class:
|
|
2668
|
+
class: Z(e.menuItemActiveStyle)
|
|
2668
2669
|
}, {
|
|
2669
2670
|
default: s(() => [
|
|
2670
|
-
u(
|
|
2671
|
+
u(b, { navMenus: e.nextMenu }, null, 8, ["navMenus"])
|
|
2671
2672
|
]),
|
|
2672
2673
|
_: 1
|
|
2673
2674
|
}, 8, ["selectedKeys", "onClick", "class"])
|
|
@@ -2675,7 +2676,7 @@ function hr(e, t, n, o, a, r) {
|
|
|
2675
2676
|
])
|
|
2676
2677
|
]),
|
|
2677
2678
|
_: 1
|
|
2678
|
-
}, 8, ["collapsed", "onBreakpoint"])) :
|
|
2679
|
+
}, 8, ["collapsed", "onBreakpoint"])) : I("", !0),
|
|
2679
2680
|
u(E, null, {
|
|
2680
2681
|
default: s(() => [
|
|
2681
2682
|
!e.breakpoint && e.nextMenu && e.nextMenu?.length > 0 ? (p(), v(h, {
|
|
@@ -2683,17 +2684,17 @@ function hr(e, t, n, o, a, r) {
|
|
|
2683
2684
|
class: "breadcrumb mb-0 px-3 bg-white border-bottom header-h40"
|
|
2684
2685
|
}, {
|
|
2685
2686
|
default: s(() => [
|
|
2686
|
-
u(
|
|
2687
|
+
u(T)
|
|
2687
2688
|
]),
|
|
2688
2689
|
_: 1
|
|
2689
|
-
})) :
|
|
2690
|
+
})) : I("", !0),
|
|
2690
2691
|
e.tagsBarIsEnabled && !e.breakpoint ? (p(), v(O, {
|
|
2691
2692
|
key: 1,
|
|
2692
2693
|
menuTree: e.menu
|
|
2693
|
-
}, null, 8, ["menuTree"])) :
|
|
2694
|
-
u(
|
|
2694
|
+
}, null, 8, ["menuTree"])) : I("", !0),
|
|
2695
|
+
u(_, {
|
|
2695
2696
|
id: "ant-layout-content",
|
|
2696
|
-
class:
|
|
2697
|
+
class: Z(["ofa bg-white", { "p-0": e.breakpoint, "p-0": !e.breakpoint }])
|
|
2697
2698
|
}, {
|
|
2698
2699
|
default: s(() => [
|
|
2699
2700
|
u(w)
|
|
@@ -2713,7 +2714,7 @@ function hr(e, t, n, o, a, r) {
|
|
|
2713
2714
|
const yr = /* @__PURE__ */ D(sr, [["render", hr], ["__scopeId", "data-v-49f819ff"]]), vr = X({
|
|
2714
2715
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2715
2716
|
setup() {
|
|
2716
|
-
const e =
|
|
2717
|
+
const e = oe(), t = ae(), n = S("menu"), o = S("pmenu"), a = S("nextMenu"), r = S("breakpoint", B(!1)), i = S("onBreakpoint", () => {
|
|
2717
2718
|
}), c = (f) => {
|
|
2718
2719
|
t.push(f.key);
|
|
2719
2720
|
}, d = (f) => {
|
|
@@ -2743,20 +2744,20 @@ const yr = /* @__PURE__ */ D(sr, [["render", hr], ["__scopeId", "data-v-49f819ff
|
|
|
2743
2744
|
style: { "overflow-x": "hidden!important" }
|
|
2744
2745
|
};
|
|
2745
2746
|
function Er(e, t, n, o, a, r) {
|
|
2746
|
-
const i = l("a-divider"), c = l("WorkflowTodoBell"), d = l("UserBar"), f = l("a-space"), y = l("a-layout-header"),
|
|
2747
|
+
const i = l("a-divider"), c = l("WorkflowTodoBell"), d = l("UserBar"), f = l("a-space"), y = l("a-layout-header"), g = l("NavMenu"), h = l("a-menu"), b = l("a-layout-sider"), k = l("Breadcrumb"), A = l("TabTags"), T = l("router-view"), O = l("a-layout-content"), w = l("a-layout");
|
|
2747
2748
|
return p(), v(w, { class: "app-layout header-layout h-100" }, {
|
|
2748
2749
|
default: s(() => [
|
|
2749
2750
|
u(y, { class: "px-3 border-bottom header-h50 bg-header text-white" }, {
|
|
2750
2751
|
default: s(() => [
|
|
2751
2752
|
m("div", gr, [
|
|
2752
|
-
m("span", br,
|
|
2753
|
+
m("span", br, U(e.appName), 1),
|
|
2753
2754
|
m("div", _r, [
|
|
2754
2755
|
m("ul", kr, [
|
|
2755
|
-
(p(!0),
|
|
2756
|
-
class:
|
|
2757
|
-
key:
|
|
2758
|
-
onClick: (E) => e.refreshSubMenu(
|
|
2759
|
-
},
|
|
2756
|
+
(p(!0), M(V, null, q(e.menu, (_) => (p(), M("li", {
|
|
2757
|
+
class: Z(["px-2", e.pmenu.path == _.path ? "active" : ""]),
|
|
2758
|
+
key: _,
|
|
2759
|
+
onClick: (E) => e.refreshSubMenu(_)
|
|
2760
|
+
}, U(_.meta.title), 11, wr))), 128))
|
|
2760
2761
|
]),
|
|
2761
2762
|
m("div", null, [
|
|
2762
2763
|
u(i, {
|
|
@@ -2766,7 +2767,7 @@ function Er(e, t, n, o, a, r) {
|
|
|
2766
2767
|
]),
|
|
2767
2768
|
u(f, { size: "middle" }, {
|
|
2768
2769
|
default: s(() => [
|
|
2769
|
-
e.todoBellEnabled ? (p(), v(c, { key: 0 })) :
|
|
2770
|
+
e.todoBellEnabled ? (p(), v(c, { key: 0 })) : I("", !0),
|
|
2770
2771
|
u(i, {
|
|
2771
2772
|
type: "vertical",
|
|
2772
2773
|
class: "text-white bg-white"
|
|
@@ -2782,7 +2783,7 @@ function Er(e, t, n, o, a, r) {
|
|
|
2782
2783
|
}),
|
|
2783
2784
|
u(w, null, {
|
|
2784
2785
|
default: s(() => [
|
|
2785
|
-
u(
|
|
2786
|
+
u(b, {
|
|
2786
2787
|
theme: "light",
|
|
2787
2788
|
collapsed: e.menuIsCollapse,
|
|
2788
2789
|
trigger: null,
|
|
@@ -2790,16 +2791,16 @@ function Er(e, t, n, o, a, r) {
|
|
|
2790
2791
|
}, {
|
|
2791
2792
|
default: s(() => [
|
|
2792
2793
|
m("div", Sr, [
|
|
2793
|
-
m("h2", Cr,
|
|
2794
|
+
m("h2", Cr, U(e.pmenu.meta ? e.pmenu.meta.title : ""), 1),
|
|
2794
2795
|
m("div", Br, [
|
|
2795
2796
|
u(h, {
|
|
2796
2797
|
selectedKeys: [e.$route.path],
|
|
2797
2798
|
mode: "inline",
|
|
2798
2799
|
onClick: e.goToRoute,
|
|
2799
|
-
class:
|
|
2800
|
+
class: Z(e.menuItemActiveStyle)
|
|
2800
2801
|
}, {
|
|
2801
2802
|
default: s(() => [
|
|
2802
|
-
u(
|
|
2803
|
+
u(g, { navMenus: e.nextMenu }, null, 8, ["navMenus"])
|
|
2803
2804
|
]),
|
|
2804
2805
|
_: 1
|
|
2805
2806
|
}, 8, ["selectedKeys", "onClick", "class"])
|
|
@@ -2812,14 +2813,14 @@ function Er(e, t, n, o, a, r) {
|
|
|
2812
2813
|
default: s(() => [
|
|
2813
2814
|
u(y, { class: "breadcrumb mb-0 px-3 bg-white border-bottom header-h46" }, {
|
|
2814
2815
|
default: s(() => [
|
|
2815
|
-
u(
|
|
2816
|
+
u(k)
|
|
2816
2817
|
]),
|
|
2817
2818
|
_: 1
|
|
2818
2819
|
}),
|
|
2819
|
-
e.tagsBarIsEnabled ? (p(), v(A, { key: 0 })) :
|
|
2820
|
+
e.tagsBarIsEnabled ? (p(), v(A, { key: 0 })) : I("", !0),
|
|
2820
2821
|
u(O, null, {
|
|
2821
2822
|
default: s(() => [
|
|
2822
|
-
u(
|
|
2823
|
+
u(T)
|
|
2823
2824
|
]),
|
|
2824
2825
|
_: 1
|
|
2825
2826
|
})
|
|
@@ -2836,16 +2837,16 @@ function Er(e, t, n, o, a, r) {
|
|
|
2836
2837
|
const xr = /* @__PURE__ */ D(vr, [["render", Er], ["__scopeId", "data-v-3115387b"]]), Ir = X({
|
|
2837
2838
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2838
2839
|
setup() {
|
|
2839
|
-
const e =
|
|
2840
|
-
}), f = (
|
|
2841
|
-
t.push(
|
|
2842
|
-
}, y = (
|
|
2843
|
-
r.value =
|
|
2844
|
-
},
|
|
2845
|
-
|
|
2846
|
-
},
|
|
2847
|
-
return ce(() => [i?.value, h?.value], ([
|
|
2848
|
-
!
|
|
2840
|
+
const e = oe(), t = ae(), { useToken: n } = Qe, { token: o } = n(), a = S("menu"), r = S("pmenu"), i = S("nextMenu"), c = S("breakpoint", B(!1)), d = S("onBreakpoint", () => {
|
|
2841
|
+
}), f = (T) => {
|
|
2842
|
+
t.push(T.key);
|
|
2843
|
+
}, y = (T) => {
|
|
2844
|
+
r.value = T, i.value = r?.value?.children, T.children || t.push(T.path);
|
|
2845
|
+
}, g = S("pmenu2", B()), h = S("nextMenu2", B()), b = (T) => {
|
|
2846
|
+
g.value = T, h.value = g?.value?.children, T.children || t.push(T.path);
|
|
2847
|
+
}, k = B(0), A = C(() => e.state.app.menuIsCollapse);
|
|
2848
|
+
return ce(() => [i?.value, h?.value], ([T, O]) => {
|
|
2849
|
+
!T || !Array.isArray(T) || T.length === 0 || !O || !Array.isArray(O) || O.length === 0 ? A.value ? k.value > 0 && (k.value = 0) : (k.value = 0, e.commit("TOGGLE_menuIsCollapse")) : (k.value = 80, A.value && e.commit("TOGGLE_menuIsCollapse"));
|
|
2849
2850
|
}), {
|
|
2850
2851
|
token: o,
|
|
2851
2852
|
appName: C(() => e.state.app.appName),
|
|
@@ -2863,10 +2864,10 @@ const xr = /* @__PURE__ */ D(vr, [["render", Er], ["__scopeId", "data-v-3115387b
|
|
|
2863
2864
|
refreshSubMenu: y,
|
|
2864
2865
|
breakpoint: c,
|
|
2865
2866
|
onBreakpoint: d,
|
|
2866
|
-
collapsedWidth:
|
|
2867
|
-
pmenu2:
|
|
2867
|
+
collapsedWidth: k,
|
|
2868
|
+
pmenu2: g,
|
|
2868
2869
|
nextMenu2: h,
|
|
2869
|
-
refreshSubMenu2:
|
|
2870
|
+
refreshSubMenu2: b,
|
|
2870
2871
|
todoBellEnabled: C(() => e.state.app.todoBellEnabled)
|
|
2871
2872
|
};
|
|
2872
2873
|
}
|
|
@@ -2875,36 +2876,36 @@ const xr = /* @__PURE__ */ D(vr, [["render", Er], ["__scopeId", "data-v-3115387b
|
|
|
2875
2876
|
style: { "overflow-x": "hidden!important" }
|
|
2876
2877
|
};
|
|
2877
2878
|
function Ur(e, t, n, o, a, r) {
|
|
2878
|
-
const i = l("MobileHeader"), c = l("a-divider"), d = l("WorkflowTodoBell"), f = l("UserBar"), y = l("a-space"),
|
|
2879
|
+
const i = l("MobileHeader"), c = l("a-divider"), d = l("WorkflowTodoBell"), f = l("UserBar"), y = l("a-space"), g = l("a-layout-header");
|
|
2879
2880
|
l("a-avatar"), l("a-icon");
|
|
2880
|
-
const h = l("a-layout-sider"),
|
|
2881
|
-
return p(), v(
|
|
2881
|
+
const h = l("a-layout-sider"), b = l("NavMenu"), k = l("a-menu"), A = l("Breadcrumb"), T = l("TabTags"), O = l("router-view"), w = l("a-layout-content"), _ = l("a-layout");
|
|
2882
|
+
return p(), v(_, { class: "app-layout header-layout h-100" }, {
|
|
2882
2883
|
default: s(() => [
|
|
2883
|
-
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(
|
|
2884
|
+
e.breakpoint ? (p(), v(i, { key: 0 })) : (p(), v(g, {
|
|
2884
2885
|
key: 1,
|
|
2885
2886
|
class: "px-3 header-h50 bg-header text-white bg-primary bg-opacity-100"
|
|
2886
2887
|
}, {
|
|
2887
2888
|
default: s(() => [
|
|
2888
2889
|
m("div", $r, [
|
|
2889
2890
|
m("div", null, [
|
|
2890
|
-
m("span", Mr,
|
|
2891
|
+
m("span", Mr, U(e.appName), 1),
|
|
2891
2892
|
t[1] || (t[1] = m("small", { class: "font-875 text-white" }, null, -1))
|
|
2892
2893
|
]),
|
|
2893
2894
|
m("div", Tr, [
|
|
2894
2895
|
m("ul", Or, [
|
|
2895
|
-
(p(!0),
|
|
2896
|
-
class:
|
|
2896
|
+
(p(!0), M(V, null, q(e.menu, (E) => (p(), M("li", {
|
|
2897
|
+
class: Z(["px-2", e.pmenu?.path == E.path ? "active" : ""]),
|
|
2897
2898
|
key: E,
|
|
2898
|
-
onClick: (
|
|
2899
|
-
},
|
|
2899
|
+
onClick: (z) => e.refreshSubMenu(E)
|
|
2900
|
+
}, U(E.meta.title), 11, Rr))), 128))
|
|
2900
2901
|
]),
|
|
2901
|
-
|
|
2902
|
+
I("", !0),
|
|
2902
2903
|
u(y, {
|
|
2903
2904
|
size: "middle",
|
|
2904
2905
|
class: "ps-3"
|
|
2905
2906
|
}, {
|
|
2906
2907
|
default: s(() => [
|
|
2907
|
-
e.todoBellEnabled ? (p(), v(d, { key: 0 })) :
|
|
2908
|
+
e.todoBellEnabled ? (p(), v(d, { key: 0 })) : I("", !0),
|
|
2908
2909
|
u(c, {
|
|
2909
2910
|
type: "vertical",
|
|
2910
2911
|
class: "border-light"
|
|
@@ -2918,7 +2919,7 @@ function Ur(e, t, n, o, a, r) {
|
|
|
2918
2919
|
]),
|
|
2919
2920
|
_: 1
|
|
2920
2921
|
})),
|
|
2921
|
-
e.nextMenu && e.nextMenu?.length > 0 ? (p(), v(
|
|
2922
|
+
e.nextMenu && e.nextMenu?.length > 0 ? (p(), v(g, {
|
|
2922
2923
|
key: 2,
|
|
2923
2924
|
class: "px-3 border-bottom header-h50 bg-primary bg-opacity-75"
|
|
2924
2925
|
}, {
|
|
@@ -2926,20 +2927,20 @@ function Ur(e, t, n, o, a, r) {
|
|
|
2926
2927
|
m("div", Nr, [
|
|
2927
2928
|
m("div", Ar, [
|
|
2928
2929
|
m("ul", Pr, [
|
|
2929
|
-
(p(!0),
|
|
2930
|
-
class:
|
|
2930
|
+
(p(!0), M(V, null, q(e.nextMenu, (E) => (p(), M("li", {
|
|
2931
|
+
class: Z(["px-2", e.pmenu2.path == E.path || e.$route.path == E.path ? "active" : ""]),
|
|
2931
2932
|
key: E,
|
|
2932
|
-
onClick: (
|
|
2933
|
-
},
|
|
2933
|
+
onClick: (z) => e.refreshSubMenu2(E)
|
|
2934
|
+
}, U(E.meta.title), 11, zr))), 128))
|
|
2934
2935
|
])
|
|
2935
2936
|
])
|
|
2936
2937
|
])
|
|
2937
2938
|
]),
|
|
2938
2939
|
_: 1
|
|
2939
|
-
})) :
|
|
2940
|
-
u(
|
|
2940
|
+
})) : I("", !0),
|
|
2941
|
+
u(_, null, {
|
|
2941
2942
|
default: s(() => [
|
|
2942
|
-
|
|
2943
|
+
I("", !0),
|
|
2943
2944
|
u(h, {
|
|
2944
2945
|
collapsed: e.menuIsCollapse,
|
|
2945
2946
|
"onUpdate:collapsed": t[0] || (t[0] = (E) => e.menuIsCollapse = E),
|
|
@@ -2953,14 +2954,14 @@ function Ur(e, t, n, o, a, r) {
|
|
|
2953
2954
|
default: s(() => [
|
|
2954
2955
|
m("div", Lr, [
|
|
2955
2956
|
m("div", jr, [
|
|
2956
|
-
u(
|
|
2957
|
-
class:
|
|
2957
|
+
u(k, {
|
|
2958
|
+
class: Z(["bg-transparent", e.menuItemActiveStyle]),
|
|
2958
2959
|
selectedKeys: [e.$route.path],
|
|
2959
2960
|
mode: "inline",
|
|
2960
2961
|
onClick: e.goToRoute
|
|
2961
2962
|
}, {
|
|
2962
2963
|
default: s(() => [
|
|
2963
|
-
u(
|
|
2964
|
+
u(b, { navMenus: e.nextMenu2 }, null, 8, ["navMenus"])
|
|
2964
2965
|
]),
|
|
2965
2966
|
_: 1
|
|
2966
2967
|
}, 8, ["selectedKeys", "onClick", "class"])
|
|
@@ -2969,13 +2970,13 @@ function Ur(e, t, n, o, a, r) {
|
|
|
2969
2970
|
]),
|
|
2970
2971
|
_: 1
|
|
2971
2972
|
}, 8, ["collapsed", "onBreakpoint", "collapsedWidth"]),
|
|
2972
|
-
u(
|
|
2973
|
+
u(_, null, {
|
|
2973
2974
|
default: s(() => [
|
|
2974
|
-
(e.breakpoint,
|
|
2975
|
-
e.tagsBarIsEnabled && !e.breakpoint ? (p(), v(
|
|
2975
|
+
(e.breakpoint, I("", !0)),
|
|
2976
|
+
e.tagsBarIsEnabled && !e.breakpoint ? (p(), v(T, { key: 1 })) : I("", !0),
|
|
2976
2977
|
u(w, {
|
|
2977
2978
|
id: "ant-layout-content",
|
|
2978
|
-
class:
|
|
2979
|
+
class: Z(["ofa bg-white", { "p-0": e.breakpoint, "p-0": !e.breakpoint }])
|
|
2979
2980
|
}, {
|
|
2980
2981
|
default: s(() => [
|
|
2981
2982
|
u(O)
|
|
@@ -2995,15 +2996,15 @@ function Ur(e, t, n, o, a, r) {
|
|
|
2995
2996
|
const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73"]]), Kr = {
|
|
2996
2997
|
__name: "MobileBar",
|
|
2997
2998
|
setup(e) {
|
|
2998
|
-
const t = S("$API"), n =
|
|
2999
|
+
const t = S("$API"), n = oe(), o = ae(), a = C(() => n.state.app.auth);
|
|
2999
3000
|
C(() => n.state.auth.userInfo), C(() => n.state.app.appLayoutType), C(() => n.state.app.casServerLoginUrl);
|
|
3000
3001
|
const r = C(() => n.state.app.casServerLogoutUrl), i = Te(t.auth.logout), { run: c } = je((y) => i[i.method](y), {
|
|
3001
3002
|
manual: !0,
|
|
3002
3003
|
onSuccess: (y) => {
|
|
3003
3004
|
a.value === "CAS" && (window.location.href = r.value);
|
|
3004
|
-
const
|
|
3005
|
-
|
|
3006
|
-
o.removeRoute(
|
|
3005
|
+
const g = o.options.routes.findIndex((b) => b.name === "lowcodeplatform");
|
|
3006
|
+
g !== -1 && (o.options.routes[g].children = []), n.state.auth.dynamicRouteNames.forEach((b) => {
|
|
3007
|
+
o.removeRoute(b);
|
|
3007
3008
|
}), n.commit("RESET_STATE"), o.push({ path: "/" });
|
|
3008
3009
|
}
|
|
3009
3010
|
}), d = B();
|
|
@@ -3011,29 +3012,29 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3011
3012
|
const f = (y) => {
|
|
3012
3013
|
d.value.open = !0, d.value.title = "修改密码";
|
|
3013
3014
|
};
|
|
3014
|
-
return (y,
|
|
3015
|
-
const h = l("a-button"),
|
|
3016
|
-
return p(),
|
|
3015
|
+
return (y, g) => {
|
|
3016
|
+
const h = l("a-button"), b = l("EModal");
|
|
3017
|
+
return p(), M(V, null, [
|
|
3017
3018
|
a.value === "JWT" ? (p(), v(h, {
|
|
3018
3019
|
key: 0,
|
|
3019
3020
|
class: "w-100 h-100 border-0 px-3 shadow-none",
|
|
3020
3021
|
onClick: f
|
|
3021
3022
|
}, {
|
|
3022
|
-
default: s(() => [...
|
|
3023
|
+
default: s(() => [...g[0] || (g[0] = [
|
|
3023
3024
|
m("span", null, "修改密码", -1)
|
|
3024
3025
|
])]),
|
|
3025
3026
|
_: 1
|
|
3026
|
-
})) :
|
|
3027
|
+
})) : I("", !0),
|
|
3027
3028
|
u(h, {
|
|
3028
3029
|
class: "w-100 h-100 border-0 px-3 shadow-none",
|
|
3029
|
-
onClick:
|
|
3030
|
+
onClick: $(c)
|
|
3030
3031
|
}, {
|
|
3031
|
-
default: s(() => [...
|
|
3032
|
+
default: s(() => [...g[1] || (g[1] = [
|
|
3032
3033
|
m("span", null, "退出登陆", -1)
|
|
3033
3034
|
])]),
|
|
3034
3035
|
_: 1
|
|
3035
3036
|
}, 8, ["onClick"]),
|
|
3036
|
-
u(
|
|
3037
|
+
u(b, {
|
|
3037
3038
|
ref_key: "refPasswordEModal",
|
|
3038
3039
|
ref: d
|
|
3039
3040
|
}, {
|
|
@@ -3065,7 +3066,7 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3065
3066
|
}
|
|
3066
3067
|
},
|
|
3067
3068
|
setup(e) {
|
|
3068
|
-
const t =
|
|
3069
|
+
const t = oe(), n = ae(), o = B([]), a = B([]), r = B([]);
|
|
3069
3070
|
F("menu", o), F("pmenu", a), F("nextMenu", r);
|
|
3070
3071
|
const i = B([]), c = B([]);
|
|
3071
3072
|
F("pmenu2", i), F("nextMenu2", c);
|
|
@@ -3080,7 +3081,7 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3080
3081
|
}), _n((w) => {
|
|
3081
3082
|
a.value = w.matched[d.value], r.value = a?.value?.children;
|
|
3082
3083
|
});
|
|
3083
|
-
const y = S("spinningApp", B(!1)),
|
|
3084
|
+
const y = S("spinningApp", B(!1)), g = () => {
|
|
3084
3085
|
var w = _t(
|
|
3085
3086
|
o.value,
|
|
3086
3087
|
(E) => E.name == n.currentRoute.value.name
|
|
@@ -3088,27 +3089,27 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3088
3089
|
if (w)
|
|
3089
3090
|
n.push(w.path);
|
|
3090
3091
|
else if (o.value.length) {
|
|
3091
|
-
var
|
|
3092
|
-
n.push(
|
|
3092
|
+
var _ = kt(o.value);
|
|
3093
|
+
n.push(_.path);
|
|
3093
3094
|
}
|
|
3094
3095
|
}, h = S("breakpoint", B(!1));
|
|
3095
3096
|
F("breakpoint", h);
|
|
3096
|
-
const
|
|
3097
|
+
const b = S("simulator", B("xxxl"));
|
|
3097
3098
|
F("onBreakpoint", (w) => {
|
|
3098
|
-
["xs", "sm", "md", "emu-mobile", "emu-tablet"].includes(
|
|
3099
|
+
["xs", "sm", "md", "emu-mobile", "emu-tablet"].includes(b.value) ? h.value = !0 : h.value = w;
|
|
3099
3100
|
});
|
|
3100
3101
|
const A = B();
|
|
3101
3102
|
F("menuDrawerRef", A);
|
|
3102
|
-
const
|
|
3103
|
+
const T = S("refreshAppMenu", B(!1)), O = () => {
|
|
3103
3104
|
y.value = !1;
|
|
3104
3105
|
};
|
|
3105
|
-
return ce(
|
|
3106
|
+
return ce(T, (w) => {
|
|
3106
3107
|
console.log("refreshAppMenu:", w, n.options.routes), o.value = n.options.routes;
|
|
3107
|
-
for (let
|
|
3108
|
+
for (let _ = 0; _ < d.value; _++)
|
|
3108
3109
|
o.value = o.value[0].children;
|
|
3109
|
-
console.log("开发环境:路由重新创建后,更新菜单"),
|
|
3110
|
+
console.log("开发环境:路由重新创建后,更新菜单"), g(), setTimeout(O, 1500);
|
|
3110
3111
|
}), Me(() => {
|
|
3111
|
-
|
|
3112
|
+
g();
|
|
3112
3113
|
}), {
|
|
3113
3114
|
menu: o,
|
|
3114
3115
|
//layout: "classic", // [ classic, default, dock, sideBar, headerLeft, headerRight ]
|
|
@@ -3120,16 +3121,16 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3120
3121
|
}
|
|
3121
3122
|
}), Dr = { class: "fs-6" }, Hr = { class: "d-flex justify-content-end px-3" };
|
|
3122
3123
|
function Qr(e, t, n, o, a, r) {
|
|
3123
|
-
const i = l("dock-layout"), c = l("classicLayout"), d = l("sidebar-menu-layout"), f = l("SidebarAppProLayout"), y = l("top-level-menu-left-layout"),
|
|
3124
|
-
return p(),
|
|
3125
|
-
e.appLayoutType == "dock" ? (p(), v(i, { key: 0 })) : e.appLayoutType == "classic" ? (p(), v(c, { key: 1 })) : e.appLayoutType == "sideBar" ? (p(), v(d, { key: 2 })) : e.appLayoutType == "sideBarPro" ? (p(), v(f, { key: 3 })) : e.appLayoutType == "headerLeft" ? (p(), v(y, { key: 4 })) : e.appLayoutType == "headerRight" ? (p(), v(
|
|
3124
|
+
const i = l("dock-layout"), c = l("classicLayout"), d = l("sidebar-menu-layout"), f = l("SidebarAppProLayout"), y = l("top-level-menu-left-layout"), g = l("top-level-menu-right-layout"), h = l("TopLevelMenuRightProLayout"), b = l("default-layout"), k = l("MobileBar"), A = l("MobileMenu");
|
|
3125
|
+
return p(), M(V, null, [
|
|
3126
|
+
e.appLayoutType == "dock" ? (p(), v(i, { key: 0 })) : e.appLayoutType == "classic" ? (p(), v(c, { key: 1 })) : e.appLayoutType == "sideBar" ? (p(), v(d, { key: 2 })) : e.appLayoutType == "sideBarPro" ? (p(), v(f, { key: 3 })) : e.appLayoutType == "headerLeft" ? (p(), v(y, { key: 4 })) : e.appLayoutType == "headerRight" ? (p(), v(g, { key: 5 })) : e.appLayoutType == "headerRightPro" ? (p(), v(h, { key: 6 })) : (p(), v(b, { key: 7 })),
|
|
3126
3127
|
u(A, { menu: e.menu }, {
|
|
3127
3128
|
title: s(() => [
|
|
3128
|
-
m("span", Dr,
|
|
3129
|
+
m("span", Dr, U(e.appName), 1)
|
|
3129
3130
|
]),
|
|
3130
3131
|
foot: s(() => [
|
|
3131
3132
|
m("div", Hr, [
|
|
3132
|
-
u(
|
|
3133
|
+
u(k)
|
|
3133
3134
|
])
|
|
3134
3135
|
]),
|
|
3135
3136
|
_: 1
|
|
@@ -3218,21 +3219,21 @@ function un(e, t, n, o, a) {
|
|
|
3218
3219
|
}
|
|
3219
3220
|
function Yr(e, t, n, o, a, r) {
|
|
3220
3221
|
for (let i = 0, c = e.length; i < c; i++)
|
|
3221
|
-
e[i] && e[i].children && e[i].children.length && un(e[i].children, t, n,
|
|
3222
|
+
e[i] && e[i].children && e[i].children.length && un(e[i].children, t, n, r, o), n && (r.addRoute(n, e[i]), a.commit("ADD_DYNAMIC_ROUTE_NAME", e[i].name));
|
|
3222
3223
|
}
|
|
3223
3224
|
function qr(e, t, n, o, a, r, i) {
|
|
3224
3225
|
const c = [];
|
|
3225
3226
|
switch (c.value = sn(e, i), Yr(c.value, t, n, o, a, r), t) {
|
|
3226
3227
|
case 1:
|
|
3227
|
-
|
|
3228
|
+
o[0].children = o[0].children.concat(c.value);
|
|
3228
3229
|
break;
|
|
3229
3230
|
case 2:
|
|
3230
|
-
|
|
3231
|
+
o[0].children[0].children = o[0].children[0].children.concat(c.value);
|
|
3231
3232
|
break;
|
|
3232
3233
|
default:
|
|
3233
3234
|
console.log("其他情况");
|
|
3234
3235
|
}
|
|
3235
|
-
ln(
|
|
3236
|
+
ln(o);
|
|
3236
3237
|
}
|
|
3237
3238
|
const cn = (e = []) => {
|
|
3238
3239
|
for (const t of e)
|
|
@@ -3243,15 +3244,16 @@ const cn = (e = []) => {
|
|
|
3243
3244
|
return t.path;
|
|
3244
3245
|
return null;
|
|
3245
3246
|
};
|
|
3246
|
-
function Ss(e, t, n, o, a, r, i, c, d
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3247
|
+
function Ss(e, t, n, o, a, r, i, c, d) {
|
|
3248
|
+
const f = i.state.auth.dynamicRoutes;
|
|
3249
|
+
qr(f, o, a, r, i, c, d);
|
|
3250
|
+
const y = Gr(c);
|
|
3251
|
+
i.commit("SET_APP_MENUS", y);
|
|
3252
|
+
const g = decodeURIComponent(t.query.redirect || e.path);
|
|
3251
3253
|
if (e.path == "/") {
|
|
3252
3254
|
const h = cn(y);
|
|
3253
3255
|
h ? n({ path: h, replace: !0 }) : n();
|
|
3254
|
-
} else e.path ===
|
|
3256
|
+
} else e.path === g ? n({ ...e, replace: !0 }) : n({ path: g });
|
|
3255
3257
|
}
|
|
3256
3258
|
const Xr = X({
|
|
3257
3259
|
setup() {
|
|
@@ -3305,7 +3307,7 @@ const Bs = /* @__PURE__ */ D(tl, [["render", nl]]), ol = {
|
|
|
3305
3307
|
}
|
|
3306
3308
|
}, al = { class: "error-notification" };
|
|
3307
3309
|
function rl(e, t, n, o, a, r) {
|
|
3308
|
-
return p(),
|
|
3310
|
+
return p(), M("div", al, [
|
|
3309
3311
|
t[1] || (t[1] = m("h2", null, "内部服务器错误", -1)),
|
|
3310
3312
|
t[2] || (t[2] = m("p", null, "无法处理您的请求。请稍后再试或联系技术支持。", -1)),
|
|
3311
3313
|
m("button", {
|
|
@@ -3315,7 +3317,7 @@ function rl(e, t, n, o, a, r) {
|
|
|
3315
3317
|
}
|
|
3316
3318
|
const Es = /* @__PURE__ */ D(ol, [["render", rl], ["__scopeId", "data-v-923dc621"]]), ll = X({
|
|
3317
3319
|
setup() {
|
|
3318
|
-
const e =
|
|
3320
|
+
const e = oe();
|
|
3319
3321
|
return {
|
|
3320
3322
|
keepLiveRoute: C(() => e.state.keepAlive.keepLiveRoute)
|
|
3321
3323
|
};
|
|
@@ -3330,7 +3332,7 @@ function sl(e, t, n, o, a, r) {
|
|
|
3330
3332
|
}, [
|
|
3331
3333
|
e.$store.state.keepAlive.routeShow ? (p(), v(Fe(c), {
|
|
3332
3334
|
key: e.$route.fullPath
|
|
3333
|
-
})) :
|
|
3335
|
+
})) : I("", !0)
|
|
3334
3336
|
], 1032, ["include"]))
|
|
3335
3337
|
]),
|
|
3336
3338
|
_: 1
|
|
@@ -3351,7 +3353,7 @@ const ul = /* @__PURE__ */ D(ll, [["render", sl]]), Kt = /* @__PURE__ */ Object.
|
|
|
3351
3353
|
"sub-title": "未能加载指定的页面组件。请检查菜单配置中的组件路径是否正确。"
|
|
3352
3354
|
}, {
|
|
3353
3355
|
extra: s(() => [
|
|
3354
|
-
|
|
3356
|
+
I("", !0)
|
|
3355
3357
|
]),
|
|
3356
3358
|
default: s(() => [
|
|
3357
3359
|
n[1] || (n[1] = m("div", { style: { "margin-top": "20px" } }, [
|
|
@@ -3422,39 +3424,39 @@ function fl(e, t) {
|
|
|
3422
3424
|
const xs = /* @__PURE__ */ D(dl, [["render", fl]]), Is = {
|
|
3423
3425
|
__name: "noaccess",
|
|
3424
3426
|
setup(e) {
|
|
3425
|
-
const t = S("$API"), n =
|
|
3427
|
+
const t = S("$API"), n = oe(), o = ae(), a = C(() => n.state.app.auth);
|
|
3426
3428
|
C(() => n.state.auth.userInfo), C(() => n.state.app.appLayoutType), C(() => n.state.app.casServerLoginUrl);
|
|
3427
|
-
const r = C(() => n.state.app.casServerLogoutUrl), i = Te(t.auth.logout), { run: c } = je((
|
|
3429
|
+
const r = C(() => n.state.app.casServerLogoutUrl), i = Te(t.auth.logout), { run: c } = je((g) => i[i.method](g), {
|
|
3428
3430
|
manual: !0,
|
|
3429
|
-
onSuccess: (
|
|
3431
|
+
onSuccess: (g) => {
|
|
3430
3432
|
a.value === "CAS" && (window.location.href = r.value);
|
|
3431
|
-
const h = o.options.routes.findIndex((
|
|
3432
|
-
h !== -1 && (o.options.routes[h].children = []), n.state.auth.dynamicRouteNames.forEach((
|
|
3433
|
-
o.removeRoute(
|
|
3433
|
+
const h = o.options.routes.findIndex((k) => k.name === "lowcodeplatform");
|
|
3434
|
+
h !== -1 && (o.options.routes[h].children = []), n.state.auth.dynamicRouteNames.forEach((k) => {
|
|
3435
|
+
o.removeRoute(k);
|
|
3434
3436
|
}), n.commit("RESET_STATE"), o.push({ path: "/" });
|
|
3435
3437
|
}
|
|
3436
3438
|
}), d = () => {
|
|
3437
3439
|
o.push({ path: "/" });
|
|
3438
3440
|
}, f = C(() => n.state.app.supportPhone), y = C(() => n.state.app.supportEmail);
|
|
3439
|
-
return (
|
|
3440
|
-
const
|
|
3441
|
+
return (g, h) => {
|
|
3442
|
+
const b = l("a-button"), k = l("a-space"), A = l("a-result");
|
|
3441
3443
|
return p(), v(A, {
|
|
3442
3444
|
status: "error",
|
|
3443
3445
|
title: "Access Denied",
|
|
3444
3446
|
"sub-title": "您没有访问此系统所需的权限。"
|
|
3445
3447
|
}, {
|
|
3446
3448
|
extra: s(() => [
|
|
3447
|
-
u(
|
|
3449
|
+
u(b, {
|
|
3448
3450
|
key: "console",
|
|
3449
3451
|
type: "primary",
|
|
3450
|
-
onClick:
|
|
3452
|
+
onClick: $(c)
|
|
3451
3453
|
}, {
|
|
3452
3454
|
default: s(() => [...h[0] || (h[0] = [
|
|
3453
3455
|
G("退出登录", -1)
|
|
3454
3456
|
])]),
|
|
3455
3457
|
_: 1
|
|
3456
3458
|
}, 8, ["onClick"]),
|
|
3457
|
-
u(
|
|
3459
|
+
u(b, {
|
|
3458
3460
|
key: "buy",
|
|
3459
3461
|
onClick: d
|
|
3460
3462
|
}, {
|
|
@@ -3465,18 +3467,18 @@ const xs = /* @__PURE__ */ D(dl, [["render", fl]]), Is = {
|
|
|
3465
3467
|
})
|
|
3466
3468
|
]),
|
|
3467
3469
|
default: s(() => [
|
|
3468
|
-
u(
|
|
3470
|
+
u(k, { direction: "vertical" }, {
|
|
3469
3471
|
default: s(() => [
|
|
3470
3472
|
h[4] || (h[4] = m("p", { style: { "font-size": "16px" } }, [
|
|
3471
3473
|
m("strong", null, "联系技术支持")
|
|
3472
3474
|
], -1)),
|
|
3473
3475
|
m("p", null, [
|
|
3474
3476
|
h[2] || (h[2] = G(" 手机 ", -1)),
|
|
3475
|
-
m("a", null,
|
|
3477
|
+
m("a", null, U(f.value), 1)
|
|
3476
3478
|
]),
|
|
3477
3479
|
m("p", null, [
|
|
3478
3480
|
h[3] || (h[3] = G(" 邮箱 ", -1)),
|
|
3479
|
-
m("a", null,
|
|
3481
|
+
m("a", null, U(y.value), 1)
|
|
3480
3482
|
])
|
|
3481
3483
|
]),
|
|
3482
3484
|
_: 1
|
|
@@ -3534,7 +3536,7 @@ function yl(e, t, n, o, a, r) {
|
|
|
3534
3536
|
"sub-title": e.currentError.message
|
|
3535
3537
|
}, {
|
|
3536
3538
|
extra: s(() => [
|
|
3537
|
-
e.currentError ? (p(),
|
|
3539
|
+
e.currentError ? (p(), M("small", hl, U(e.currentError.suggested_action), 1)) : I("", !0)
|
|
3538
3540
|
]),
|
|
3539
3541
|
_: 1
|
|
3540
3542
|
}, 8, ["status", "title", "sub-title"])) : (p(), v(d, {
|
|
@@ -3544,7 +3546,7 @@ function yl(e, t, n, o, a, r) {
|
|
|
3544
3546
|
wrapperClassName: "e-loading"
|
|
3545
3547
|
}, He({
|
|
3546
3548
|
default: s(() => [
|
|
3547
|
-
|
|
3549
|
+
L(e.$slots, "default", {}, void 0, !0)
|
|
3548
3550
|
]),
|
|
3549
3551
|
_: 2
|
|
3550
3552
|
}, [
|
|
@@ -3589,12 +3591,12 @@ function bl(e, t, n, o, a, r) {
|
|
|
3589
3591
|
footer: null
|
|
3590
3592
|
}, {
|
|
3591
3593
|
title: s(() => [
|
|
3592
|
-
|
|
3593
|
-
G(
|
|
3594
|
+
L(e.$slots, "title", {}, () => [
|
|
3595
|
+
G(U(e.title), 1)
|
|
3594
3596
|
])
|
|
3595
3597
|
]),
|
|
3596
3598
|
default: s(() => [
|
|
3597
|
-
|
|
3599
|
+
L(e.$slots, "default")
|
|
3598
3600
|
]),
|
|
3599
3601
|
_: 3
|
|
3600
3602
|
}, 8, ["open", "width"]);
|
|
@@ -3618,10 +3620,10 @@ function wl(e, t, n, o, a, r) {
|
|
|
3618
3620
|
style: { position: "absolute" }
|
|
3619
3621
|
}, {
|
|
3620
3622
|
extra: s(() => [
|
|
3621
|
-
|
|
3623
|
+
L(e.$slots, "extra")
|
|
3622
3624
|
]),
|
|
3623
3625
|
default: s(() => [
|
|
3624
|
-
|
|
3626
|
+
L(e.$slots, "default")
|
|
3625
3627
|
]),
|
|
3626
3628
|
_: 3
|
|
3627
3629
|
}, 8, ["open", "title"]);
|
|
@@ -3646,9 +3648,9 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3646
3648
|
return i(t.menus), r;
|
|
3647
3649
|
});
|
|
3648
3650
|
return (r, i) => {
|
|
3649
|
-
const c = l("a-menu-item"), d = l("a-sub-menu"), f = l("a-menu"), y = l("a-col"),
|
|
3650
|
-
return p(),
|
|
3651
|
-
u(
|
|
3651
|
+
const c = l("a-menu-item"), d = l("a-sub-menu"), f = l("a-menu"), y = l("a-col"), g = l("a-row");
|
|
3652
|
+
return p(), M("div", Cl, [
|
|
3653
|
+
u(g, {
|
|
3652
3654
|
gutter: [16, 16],
|
|
3653
3655
|
class: "flex-fill overflow-hidden"
|
|
3654
3656
|
}, {
|
|
@@ -3668,41 +3670,41 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3668
3670
|
style: { height: "100%", "border-right": "0" }
|
|
3669
3671
|
}, {
|
|
3670
3672
|
default: s(() => [
|
|
3671
|
-
(p(!0),
|
|
3673
|
+
(p(!0), M(V, null, q(e.menus, (h) => (p(), M(V, {
|
|
3672
3674
|
key: h.key
|
|
3673
3675
|
}, [
|
|
3674
3676
|
h.children && h.children.length ? (p(), v(d, {
|
|
3675
3677
|
key: `${h.key}`
|
|
3676
3678
|
}, {
|
|
3677
3679
|
title: s(() => [
|
|
3678
|
-
G(
|
|
3680
|
+
G(U(h.label), 1)
|
|
3679
3681
|
]),
|
|
3680
3682
|
default: s(() => [
|
|
3681
|
-
(p(!0),
|
|
3682
|
-
key:
|
|
3683
|
+
(p(!0), M(V, null, q(h.children, (b) => (p(), M(V, {
|
|
3684
|
+
key: b.key
|
|
3683
3685
|
}, [
|
|
3684
|
-
|
|
3685
|
-
key: `${
|
|
3686
|
+
b.children && b.children.length ? (p(), v(d, {
|
|
3687
|
+
key: `${b.key}`
|
|
3686
3688
|
}, {
|
|
3687
3689
|
title: s(() => [
|
|
3688
|
-
G(
|
|
3690
|
+
G(U(b.label), 1)
|
|
3689
3691
|
]),
|
|
3690
3692
|
default: s(() => [
|
|
3691
|
-
(p(!0),
|
|
3692
|
-
key:
|
|
3693
|
+
(p(!0), M(V, null, q(b.children, (k) => (p(), v(c, {
|
|
3694
|
+
key: k.key
|
|
3693
3695
|
}, {
|
|
3694
3696
|
default: s(() => [
|
|
3695
|
-
G(
|
|
3697
|
+
G(U(k.label), 1)
|
|
3696
3698
|
]),
|
|
3697
3699
|
_: 2
|
|
3698
3700
|
}, 1024))), 128))
|
|
3699
3701
|
]),
|
|
3700
3702
|
_: 2
|
|
3701
3703
|
}, 1024)) : (p(), v(c, {
|
|
3702
|
-
key:
|
|
3704
|
+
key: b.key
|
|
3703
3705
|
}, {
|
|
3704
3706
|
default: s(() => [
|
|
3705
|
-
G(
|
|
3707
|
+
G(U(b.label), 1)
|
|
3706
3708
|
]),
|
|
3707
3709
|
_: 2
|
|
3708
3710
|
}, 1024))
|
|
@@ -3713,7 +3715,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3713
3715
|
key: h.key
|
|
3714
3716
|
}, {
|
|
3715
3717
|
default: s(() => [
|
|
3716
|
-
G(
|
|
3718
|
+
G(U(h.label), 1)
|
|
3717
3719
|
]),
|
|
3718
3720
|
_: 2
|
|
3719
3721
|
}, 1024))
|
|
@@ -3731,7 +3733,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3731
3733
|
}, {
|
|
3732
3734
|
default: s(() => [
|
|
3733
3735
|
m("div", El, [
|
|
3734
|
-
(p(!0),
|
|
3736
|
+
(p(!0), M(V, null, q(a.value, (h) => L(r.$slots, h)), 256))
|
|
3735
3737
|
])
|
|
3736
3738
|
]),
|
|
3737
3739
|
_: 3
|
|
@@ -3756,13 +3758,13 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3756
3758
|
const o = l("a-tab-pane"), a = l("a-tabs");
|
|
3757
3759
|
return p(), v(a, { class: "flex-fill h-100" }, He({
|
|
3758
3760
|
default: s(() => [
|
|
3759
|
-
(p(!0),
|
|
3761
|
+
(p(!0), M(V, null, q(e.tabs, (r) => (p(), v(o, {
|
|
3760
3762
|
key: r.key,
|
|
3761
3763
|
tab: r.label,
|
|
3762
3764
|
disabled: r.disabled
|
|
3763
3765
|
}, {
|
|
3764
3766
|
default: s(() => [
|
|
3765
|
-
|
|
3767
|
+
L(t.$slots, r.key, {}, void 0, !0)
|
|
3766
3768
|
]),
|
|
3767
3769
|
_: 2
|
|
3768
3770
|
}, 1032, ["tab", "disabled"]))), 128))
|
|
@@ -3772,14 +3774,14 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3772
3774
|
t.$slots.leftExtra ? {
|
|
3773
3775
|
name: "leftExtra",
|
|
3774
3776
|
fn: s(() => [
|
|
3775
|
-
|
|
3777
|
+
L(t.$slots, "leftExtra", {}, void 0, !0)
|
|
3776
3778
|
]),
|
|
3777
3779
|
key: "0"
|
|
3778
3780
|
} : void 0,
|
|
3779
3781
|
t.$slots.rightExtra ? {
|
|
3780
3782
|
name: "rightExtra",
|
|
3781
3783
|
fn: s(() => [
|
|
3782
|
-
|
|
3784
|
+
L(t.$slots, "rightExtra", {}, void 0, !0)
|
|
3783
3785
|
]),
|
|
3784
3786
|
key: "1"
|
|
3785
3787
|
} : void 0
|
|
@@ -3815,11 +3817,11 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3815
3817
|
);
|
|
3816
3818
|
return (a, r) => {
|
|
3817
3819
|
const i = l("a-step"), c = l("a-steps");
|
|
3818
|
-
return p(),
|
|
3819
|
-
class:
|
|
3820
|
+
return p(), M("div", {
|
|
3821
|
+
class: Z(["esteps", e.position])
|
|
3820
3822
|
}, [
|
|
3821
3823
|
m("div", {
|
|
3822
|
-
class:
|
|
3824
|
+
class: Z(["p-3 d-flex", e.position === "left" || e.position === "right" ? " flex-column justify-content-between" : " "])
|
|
3823
3825
|
}, [
|
|
3824
3826
|
u(c, {
|
|
3825
3827
|
current: n.value,
|
|
@@ -3828,17 +3830,17 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3828
3830
|
direction: o.value
|
|
3829
3831
|
}, {
|
|
3830
3832
|
default: s(() => [
|
|
3831
|
-
(p(!0),
|
|
3833
|
+
(p(!0), M(V, null, q(e.steps, (d) => (p(), v(i, {
|
|
3832
3834
|
key: d.key,
|
|
3833
3835
|
title: d.label
|
|
3834
3836
|
}, null, 8, ["title"]))), 128))
|
|
3835
3837
|
]),
|
|
3836
3838
|
_: 1
|
|
3837
3839
|
}, 8, ["current", "size", "direction"]),
|
|
3838
|
-
|
|
3840
|
+
L(a.$slots, "extra", {}, void 0, !0)
|
|
3839
3841
|
], 2),
|
|
3840
3842
|
m("div", Ml, [
|
|
3841
|
-
(p(!0),
|
|
3843
|
+
(p(!0), M(V, null, q(e.steps, (d) => L(a.$slots, d.key, {}, void 0, !0)), 256))
|
|
3842
3844
|
])
|
|
3843
3845
|
], 2);
|
|
3844
3846
|
};
|
|
@@ -3930,99 +3932,99 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3930
3932
|
}
|
|
3931
3933
|
},
|
|
3932
3934
|
setup(e, { expose: t }) {
|
|
3933
|
-
const n = e, { selectedKeysName: o, autoExpandParent: a } = ke(n), r = B([]), i = S("checkedKeys", B([])), c = S(o.value, B([])), d = S("expandedKeys", B([])), f = B(a.value), y = S("onCheck", (
|
|
3934
|
-
}),
|
|
3935
|
-
}), h = (
|
|
3936
|
-
d.value =
|
|
3937
|
-
},
|
|
3938
|
-
const P = [], W = (
|
|
3939
|
-
|
|
3935
|
+
const n = e, { selectedKeysName: o, autoExpandParent: a } = ke(n), r = B([]), i = S("checkedKeys", B([])), c = S(o.value, B([])), d = S("expandedKeys", B([])), f = B(a.value), y = S("onCheck", (x) => {
|
|
3936
|
+
}), g = S("onSelect", (x) => {
|
|
3937
|
+
}), h = (x) => {
|
|
3938
|
+
d.value = x, f.value = !1;
|
|
3939
|
+
}, b = (x) => {
|
|
3940
|
+
const P = [], W = (J, H, ne) => {
|
|
3941
|
+
J.forEach((le, N) => {
|
|
3940
3942
|
P.push({
|
|
3941
3943
|
key: le.key,
|
|
3942
3944
|
parentId: H,
|
|
3943
3945
|
order: N,
|
|
3944
|
-
level:
|
|
3945
|
-
}), le.children && W(le.children, le.key,
|
|
3946
|
+
level: ne
|
|
3947
|
+
}), le.children && W(le.children, le.key, ne + 1);
|
|
3946
3948
|
});
|
|
3947
3949
|
};
|
|
3948
|
-
return W(
|
|
3949
|
-
},
|
|
3950
|
-
}), A = (
|
|
3951
|
-
const P =
|
|
3950
|
+
return W(x, "", 1), P;
|
|
3951
|
+
}, k = S("ondrop", (x, P, W, J, H) => {
|
|
3952
|
+
}), A = (x) => {
|
|
3953
|
+
const P = x.node.key, W = x.dragNode.key, J = x.node.pos.split("-"), H = x.dropPosition - Number(J[J.length - 1]), ne = (N, de, Ne) => {
|
|
3952
3954
|
N.forEach((Oe, Je) => {
|
|
3953
3955
|
if (Oe.key === de)
|
|
3954
3956
|
return Ne(Oe, Je, N);
|
|
3955
3957
|
if (Oe.children)
|
|
3956
|
-
return
|
|
3958
|
+
return ne(Oe.children, de, Ne);
|
|
3957
3959
|
});
|
|
3958
3960
|
};
|
|
3959
3961
|
let le;
|
|
3960
|
-
if (
|
|
3962
|
+
if (ne(r.value, W, (N, de, Ne) => {
|
|
3961
3963
|
Ne.splice(de, 1), le = N;
|
|
3962
|
-
}), !
|
|
3963
|
-
|
|
3964
|
+
}), !x.dropToGap)
|
|
3965
|
+
ne(r.value, P, (N) => {
|
|
3964
3966
|
N.children = N.children || [], N.children.unshift(le);
|
|
3965
3967
|
});
|
|
3966
|
-
else if ((
|
|
3967
|
-
|
|
3968
|
+
else if ((x.node.children || []).length > 0 && x.node.expanded && H === 1)
|
|
3969
|
+
ne(r.value, P, (N) => {
|
|
3968
3970
|
N.children = N.children || [], N.children.unshift(le);
|
|
3969
3971
|
});
|
|
3970
3972
|
else {
|
|
3971
3973
|
let N = [], de = 0;
|
|
3972
|
-
|
|
3974
|
+
ne(r.value, P, (Ne, Oe, Je) => {
|
|
3973
3975
|
N = Je, de = Oe;
|
|
3974
3976
|
}), H === -1 ? N.splice(de, 0, le) : N.splice(de + 1, 0, le);
|
|
3975
3977
|
}
|
|
3976
|
-
|
|
3977
|
-
},
|
|
3978
|
-
for (let
|
|
3979
|
-
const H =
|
|
3980
|
-
|
|
3981
|
-
key:
|
|
3978
|
+
k(W, P, H, r, b(r.value));
|
|
3979
|
+
}, T = [], O = (x, P, W) => {
|
|
3980
|
+
for (let J = 0; J < x.length; J++) {
|
|
3981
|
+
const H = x[J], ne = H.key, le = W(H);
|
|
3982
|
+
T.push({
|
|
3983
|
+
key: ne,
|
|
3982
3984
|
title: le
|
|
3983
3985
|
}), H.children && O(H.children, P, W);
|
|
3984
3986
|
}
|
|
3985
|
-
}, w = (
|
|
3987
|
+
}, w = (x, P) => {
|
|
3986
3988
|
let W;
|
|
3987
|
-
for (let
|
|
3988
|
-
const H = P[
|
|
3989
|
-
H.children && H.children.length > 0 ? H.children.some((
|
|
3989
|
+
for (let J = 0; J < P.length; J++) {
|
|
3990
|
+
const H = P[J];
|
|
3991
|
+
H.children && H.children.length > 0 ? H.children.some((ne) => ne.key === x) ? W = H.key : w(x, H.children) && (W = w(x, H.children)) : H.key === x && (W = H.key);
|
|
3990
3992
|
}
|
|
3991
3993
|
return W;
|
|
3992
|
-
},
|
|
3993
|
-
ce(E, (
|
|
3994
|
+
}, _ = S("isTreeSearchEnabled", B(!1)), E = B();
|
|
3995
|
+
ce(E, (x) => {
|
|
3994
3996
|
O(r.value, "key", (W) => W[n.fieldNames.title]);
|
|
3995
|
-
const P =
|
|
3996
|
-
d.value = P, E.value =
|
|
3997
|
+
const P = T.map((W) => W.title.indexOf(x) > -1 ? w(W.key, r.value) : null).filter((W, J, H) => W && H.indexOf(W) === J);
|
|
3998
|
+
d.value = P, E.value = x, f.value = !0;
|
|
3997
3999
|
});
|
|
3998
|
-
const
|
|
3999
|
-
ce(() =>
|
|
4000
|
-
O(r.value, "key", (
|
|
4000
|
+
const z = S("isTreeExpandAll", B(!1));
|
|
4001
|
+
ce(() => z.value, (x) => {
|
|
4002
|
+
O(r.value, "key", (J) => J[n.fieldNames.title]);
|
|
4001
4003
|
const P = B("02200059");
|
|
4002
|
-
|
|
4003
|
-
const W =
|
|
4004
|
+
x ? P.value = "" : P.value = "02200059";
|
|
4005
|
+
const W = T.map((J) => J.title.indexOf(P.value) > -1 ? w(J.key, r.value) : null).filter((J, H, ne) => J && ne.indexOf(J) === H);
|
|
4004
4006
|
d.value = W, f.value = !0;
|
|
4005
4007
|
});
|
|
4006
|
-
const R = S("onSuccess", (
|
|
4007
|
-
|
|
4008
|
-
}),
|
|
4009
|
-
(
|
|
4008
|
+
const R = S("onSuccess", (x, P) => {
|
|
4009
|
+
x.value = P.data, f.value && (d.value = x.value.map((W) => W[n.fieldNames.key]));
|
|
4010
|
+
}), j = S("state", {}), Q = S("apiObj", B({})), { method: K } = { ...Q }, { run: Y, loading: ee, current: te, pageSize: se, total: re, error: ue } = ct(
|
|
4011
|
+
(x) => Q[K]({ ...x, ...Q.params }),
|
|
4010
4012
|
{
|
|
4011
4013
|
refreshDeps: [Q],
|
|
4012
4014
|
pagination: {
|
|
4013
4015
|
pageSizeKey: "pageSize"
|
|
4014
4016
|
},
|
|
4015
4017
|
defaultParams: [{ pageSize: n.pageSize }],
|
|
4016
|
-
onSuccess: (
|
|
4017
|
-
R(r,
|
|
4018
|
+
onSuccess: (x) => {
|
|
4019
|
+
R(r, x);
|
|
4018
4020
|
}
|
|
4019
4021
|
}
|
|
4020
4022
|
), we = () => {
|
|
4021
|
-
|
|
4023
|
+
Y({ current: te.value, pageSize: se.value, ...j });
|
|
4022
4024
|
}, ye = () => {
|
|
4023
|
-
|
|
4025
|
+
Y({ current: te.value, pageSize: se.value, ...j });
|
|
4024
4026
|
};
|
|
4025
|
-
F("run",
|
|
4027
|
+
F("run", Y), F("total", re), F("loading", ee), F("current", te), F("pageSize", se);
|
|
4026
4028
|
const ve = B(n.simple);
|
|
4027
4029
|
F("simple", ve);
|
|
4028
4030
|
const Re = B(n.showSizeChanger);
|
|
@@ -4032,13 +4034,13 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4032
4034
|
sync: we,
|
|
4033
4035
|
search: ye,
|
|
4034
4036
|
treeData: r,
|
|
4035
|
-
dataList:
|
|
4037
|
+
dataList: T
|
|
4036
4038
|
//autoExpandParent: autoExpandParentLocal,
|
|
4037
|
-
}), (
|
|
4038
|
-
const W = l("CResponsiveHeader"),
|
|
4039
|
+
}), (x, P) => {
|
|
4040
|
+
const W = l("CResponsiveHeader"), J = l("a-input"), H = l("a-tree"), ne = l("CFooterPaginationBar"), le = l("ESpin");
|
|
4039
4041
|
return p(), v(le, {
|
|
4040
|
-
spinning:
|
|
4041
|
-
error:
|
|
4042
|
+
spinning: $(ee),
|
|
4043
|
+
error: $(ue)
|
|
4042
4044
|
}, {
|
|
4043
4045
|
default: s(() => [
|
|
4044
4046
|
u(W, {
|
|
@@ -4046,19 +4048,19 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4046
4048
|
contBorder: e.contBorder
|
|
4047
4049
|
}, {
|
|
4048
4050
|
left: s(() => [
|
|
4049
|
-
|
|
4051
|
+
L(x.$slots, "left")
|
|
4050
4052
|
]),
|
|
4051
4053
|
right: s(() => [
|
|
4052
|
-
|
|
4054
|
+
L(x.$slots, "right")
|
|
4053
4055
|
]),
|
|
4054
4056
|
header: s(() => [
|
|
4055
|
-
|
|
4057
|
+
L(x.$slots, "header")
|
|
4056
4058
|
]),
|
|
4057
4059
|
tag: s(() => [
|
|
4058
|
-
|
|
4060
|
+
L(x.$slots, "tag")
|
|
4059
4061
|
]),
|
|
4060
4062
|
content: s(() => [
|
|
4061
|
-
|
|
4063
|
+
L(x.$slots, "content")
|
|
4062
4064
|
]),
|
|
4063
4065
|
_: 3
|
|
4064
4066
|
}, 8, ["headBorder", "contBorder"]),
|
|
@@ -4066,14 +4068,14 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4066
4068
|
u(fn, null, {
|
|
4067
4069
|
default: s(() => [
|
|
4068
4070
|
mn(m("div", Nl, [
|
|
4069
|
-
u(
|
|
4071
|
+
u(J, {
|
|
4070
4072
|
value: E.value,
|
|
4071
4073
|
"onUpdate:value": P[0] || (P[0] = (N) => E.value = N),
|
|
4072
4074
|
placeholder: "Search",
|
|
4073
4075
|
class: "my-2"
|
|
4074
4076
|
}, null, 8, ["value"])
|
|
4075
4077
|
], 512), [
|
|
4076
|
-
[hn,
|
|
4078
|
+
[hn, $(_)]
|
|
4077
4079
|
])
|
|
4078
4080
|
]),
|
|
4079
4081
|
_: 1
|
|
@@ -4085,34 +4087,34 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4085
4087
|
"show-line": e.showLine,
|
|
4086
4088
|
blockNode: e.blockNode,
|
|
4087
4089
|
"field-names": e.fieldNames,
|
|
4088
|
-
"auto-expand-parent":
|
|
4089
|
-
checkedKeys:
|
|
4090
|
+
"auto-expand-parent": $(a),
|
|
4091
|
+
checkedKeys: $(i),
|
|
4090
4092
|
"onUpdate:checkedKeys": P[1] || (P[1] = (N) => ze(i) ? i.value = N : null),
|
|
4091
|
-
selectedKeys:
|
|
4093
|
+
selectedKeys: $(c),
|
|
4092
4094
|
"onUpdate:selectedKeys": P[2] || (P[2] = (N) => ze(c) ? c.value = N : null),
|
|
4093
|
-
expandedKeys:
|
|
4095
|
+
expandedKeys: $(d),
|
|
4094
4096
|
"onUpdate:expandedKeys": P[3] || (P[3] = (N) => ze(d) ? d.value = N : null),
|
|
4095
|
-
onCheck:
|
|
4096
|
-
onSelect:
|
|
4097
|
+
onCheck: $(y),
|
|
4098
|
+
onSelect: $(g),
|
|
4097
4099
|
onExpand: h,
|
|
4098
4100
|
draggable: e.isDraggable
|
|
4099
4101
|
}, Ht({ drop: e.isDraggable ? A : void 0 })), {
|
|
4100
4102
|
title: s(({ data: N }) => [
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
N[e.fieldNames.title].indexOf(E.value) > -1 ? (p(),
|
|
4104
|
-
G(
|
|
4103
|
+
L(x.$slots, "title", { item: N }, () => [
|
|
4104
|
+
I("", !0),
|
|
4105
|
+
N[e.fieldNames.title].indexOf(E.value) > -1 ? (p(), M("span", Al, [
|
|
4106
|
+
G(U(N[e.fieldNames.title].substr(0, N[e.fieldNames.title].indexOf(E.value))) + " ", 1),
|
|
4105
4107
|
m("div", Pl, [
|
|
4106
|
-
m("span", zl,
|
|
4107
|
-
m("span", null,
|
|
4108
|
+
m("span", zl, U(E.value), 1),
|
|
4109
|
+
m("span", null, U(N[e.fieldNames.title].substr(N[e.fieldNames.title].indexOf(E.value) + E.value.length)), 1)
|
|
4108
4110
|
])
|
|
4109
|
-
])) : (p(),
|
|
4111
|
+
])) : (p(), M("span", Ll, U(N[e.fieldNames.title]), 1))
|
|
4110
4112
|
])
|
|
4111
4113
|
]),
|
|
4112
4114
|
_: 3
|
|
4113
4115
|
}, 16, ["treeData", "multiple", "show-line", "blockNode", "field-names", "auto-expand-parent", "checkedKeys", "selectedKeys", "expandedKeys", "onCheck", "onSelect", "draggable"]),
|
|
4114
|
-
e.pagination ?
|
|
4115
|
-
u(
|
|
4116
|
+
e.pagination ? I("", !0) : (p(), M("div", jl, [
|
|
4117
|
+
u(ne)
|
|
4116
4118
|
]))
|
|
4117
4119
|
], 512)
|
|
4118
4120
|
]),
|
|
@@ -4191,9 +4193,9 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4191
4193
|
itemLayout: { type: String, default: "none" }
|
|
4192
4194
|
},
|
|
4193
4195
|
setup(e, { expose: t }) {
|
|
4194
|
-
const n = e, o = B([]), { loadMore: a } = ke(n), r = S("onSuccess", (K,
|
|
4195
|
-
K.value = a.value ? K.value.concat(
|
|
4196
|
-
}), i = S("state", {}), c = S("apiObj", B({})), { method: d } = { ...c }, { run: f, loading: y, current:
|
|
4196
|
+
const n = e, o = B([]), { loadMore: a } = ke(n), r = S("onSuccess", (K, Y) => {
|
|
4197
|
+
K.value = a.value ? K.value.concat(Y.data) : Y.data;
|
|
4198
|
+
}), i = S("state", {}), c = S("apiObj", B({})), { method: d } = { ...c }, { run: f, loading: y, current: g, pageSize: h, total: b, error: k } = ct(
|
|
4197
4199
|
(K) => c[d]({ ...K, ...c.params, ...i }),
|
|
4198
4200
|
{
|
|
4199
4201
|
refreshDeps: [c],
|
|
@@ -4207,55 +4209,55 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4207
4209
|
}
|
|
4208
4210
|
}
|
|
4209
4211
|
), A = () => {
|
|
4210
|
-
f({ current:
|
|
4211
|
-
},
|
|
4212
|
-
f({ current:
|
|
4212
|
+
f({ current: g.value, pageSize: h.value, ...i });
|
|
4213
|
+
}, T = () => {
|
|
4214
|
+
f({ current: g.value, pageSize: h.value, ...i });
|
|
4213
4215
|
};
|
|
4214
|
-
F("run", f), F("total",
|
|
4216
|
+
F("run", f), F("total", b), F("loading", y), F("current", g), F("pageSize", h);
|
|
4215
4217
|
const O = B(n.simple);
|
|
4216
4218
|
F("simple", O);
|
|
4217
4219
|
const w = B(n.showSizeChanger);
|
|
4218
4220
|
F("showSizeChanger", w);
|
|
4219
|
-
const
|
|
4220
|
-
F("showQuickJumper",
|
|
4221
|
-
const E = B(""),
|
|
4222
|
-
|
|
4223
|
-
},
|
|
4224
|
-
const K =
|
|
4225
|
-
var
|
|
4226
|
-
const
|
|
4227
|
-
|
|
4221
|
+
const _ = B(n.showQuickJumper);
|
|
4222
|
+
F("showQuickJumper", _);
|
|
4223
|
+
const E = B(""), z = B(1), R = () => {
|
|
4224
|
+
z.value * h.value <= b.value ? (z.value += 1, f({ current: z.value, pageSize: h.value, ...i })) : E.value = "已经到底了";
|
|
4225
|
+
}, j = B(null), Q = () => {
|
|
4226
|
+
const K = j.value;
|
|
4227
|
+
var Y = K.scrollTop + K.clientHeight;
|
|
4228
|
+
const ee = K.scrollHeight;
|
|
4229
|
+
Y >= ee - Dl && !y.value && a.value && R();
|
|
4228
4230
|
};
|
|
4229
4231
|
return t({
|
|
4230
4232
|
sync: A,
|
|
4231
|
-
search:
|
|
4233
|
+
search: T,
|
|
4232
4234
|
dataList: o,
|
|
4233
|
-
total:
|
|
4234
|
-
}), (K,
|
|
4235
|
-
const
|
|
4235
|
+
total: b
|
|
4236
|
+
}), (K, Y) => {
|
|
4237
|
+
const ee = l("CResponsiveHeader"), te = l("a-list-item"), se = l("a-divider"), re = l("a-list"), ue = l("CFooterPaginationBar"), we = l("ESpin");
|
|
4236
4238
|
return p(), v(we, {
|
|
4237
|
-
spinning:
|
|
4238
|
-
error:
|
|
4239
|
+
spinning: $(y) && !$(a),
|
|
4240
|
+
error: $(k)
|
|
4239
4241
|
}, {
|
|
4240
4242
|
default: s(() => [
|
|
4241
|
-
u(
|
|
4243
|
+
u(ee, {
|
|
4242
4244
|
headBorder: e.headBorder,
|
|
4243
4245
|
contBorder: e.contBorder
|
|
4244
4246
|
}, {
|
|
4245
4247
|
left: s(() => [
|
|
4246
|
-
|
|
4248
|
+
L(K.$slots, "left", {}, void 0, !0)
|
|
4247
4249
|
]),
|
|
4248
4250
|
right: s(() => [
|
|
4249
|
-
|
|
4251
|
+
L(K.$slots, "right", {}, void 0, !0)
|
|
4250
4252
|
]),
|
|
4251
4253
|
header: s(() => [
|
|
4252
|
-
|
|
4254
|
+
L(K.$slots, "header", {}, void 0, !0)
|
|
4253
4255
|
]),
|
|
4254
4256
|
tag: s(() => [
|
|
4255
|
-
|
|
4257
|
+
L(K.$slots, "tag", {}, void 0, !0)
|
|
4256
4258
|
]),
|
|
4257
4259
|
content: s(() => [
|
|
4258
|
-
|
|
4260
|
+
L(K.$slots, "content", {}, void 0, !0)
|
|
4259
4261
|
]),
|
|
4260
4262
|
_: 3
|
|
4261
4263
|
}, 8, ["headBorder", "contBorder"]),
|
|
@@ -4263,7 +4265,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4263
4265
|
m("div", {
|
|
4264
4266
|
class: "flex-fill d-flex flex-column ofa cccc",
|
|
4265
4267
|
ref_key: "scrollContainer",
|
|
4266
|
-
ref:
|
|
4268
|
+
ref: j,
|
|
4267
4269
|
onScroll: Q
|
|
4268
4270
|
}, [
|
|
4269
4271
|
u(re, _e({ "item-layout": e.itemLayout }, e.itemLayout === "none" ? { grid: e.grid } : {}, {
|
|
@@ -4273,36 +4275,36 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4273
4275
|
renderItem: s(({ item: ye, index: ve }) => [
|
|
4274
4276
|
u(te, { key: "item" }, {
|
|
4275
4277
|
default: s(() => [
|
|
4276
|
-
|
|
4278
|
+
L(K.$slots, "default", {
|
|
4277
4279
|
item: ye,
|
|
4278
4280
|
index: ve
|
|
4279
4281
|
}, void 0, !0)
|
|
4280
4282
|
]),
|
|
4281
4283
|
_: 2
|
|
4282
4284
|
}, 1024),
|
|
4283
|
-
|
|
4285
|
+
L(K.$slots, "item", {
|
|
4284
4286
|
item: ye,
|
|
4285
4287
|
index: ve
|
|
4286
4288
|
}, void 0, !0)
|
|
4287
4289
|
]),
|
|
4288
4290
|
default: s(() => [
|
|
4289
|
-
|
|
4291
|
+
$(a) ? (p(), M("div", Kl, [
|
|
4290
4292
|
u(se, {
|
|
4291
4293
|
class: "position-absolute bottom-0",
|
|
4292
4294
|
style: { transform: "translateY(50%)" }
|
|
4293
4295
|
}, {
|
|
4294
4296
|
default: s(() => [
|
|
4295
|
-
m("small", Fl,
|
|
4297
|
+
m("small", Fl, U(E.value), 1)
|
|
4296
4298
|
]),
|
|
4297
4299
|
_: 1
|
|
4298
4300
|
})
|
|
4299
|
-
])) :
|
|
4301
|
+
])) : I("", !0)
|
|
4300
4302
|
]),
|
|
4301
4303
|
_: 3
|
|
4302
4304
|
}, 16, ["item-layout", "class", "data-source"])
|
|
4303
4305
|
], 544)
|
|
4304
4306
|
], 512),
|
|
4305
|
-
e.pagination ?
|
|
4307
|
+
e.pagination ? I("", !0) : (p(), M("div", Vl, [
|
|
4306
4308
|
u(ue, { styleSetting: !1 })
|
|
4307
4309
|
]))
|
|
4308
4310
|
]),
|
|
@@ -4410,14 +4412,14 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4410
4412
|
"apiObj",
|
|
4411
4413
|
Te({
|
|
4412
4414
|
method: "post",
|
|
4413
|
-
post: async function(
|
|
4415
|
+
post: async function(x) {
|
|
4414
4416
|
return await new Promise((P, W) => {
|
|
4415
4417
|
P();
|
|
4416
4418
|
});
|
|
4417
4419
|
}
|
|
4418
4420
|
})
|
|
4419
|
-
), { method: f } = { ...d }, { run: y, loading:
|
|
4420
|
-
(
|
|
4421
|
+
), { method: f } = { ...d }, { run: y, loading: g, current: h, pageSize: b, total: k, error: A } = ct(
|
|
4422
|
+
(x) => d[f]({ ...x, ...d.params }),
|
|
4421
4423
|
{
|
|
4422
4424
|
refreshDeps: [d],
|
|
4423
4425
|
debounceInterval: 300,
|
|
@@ -4425,38 +4427,38 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4425
4427
|
pageSizeKey: "pageSize"
|
|
4426
4428
|
},
|
|
4427
4429
|
defaultParams: [{ pageSize: n.pageSize }],
|
|
4428
|
-
onSuccess: (
|
|
4429
|
-
|
|
4430
|
+
onSuccess: (x) => {
|
|
4431
|
+
x && _(c, x);
|
|
4430
4432
|
}
|
|
4431
4433
|
}
|
|
4432
|
-
),
|
|
4433
|
-
y({ current: h.value, pageSize:
|
|
4434
|
+
), T = S("state", {}), O = () => {
|
|
4435
|
+
y({ current: h.value, pageSize: b.value, ...T });
|
|
4434
4436
|
}, w = () => {
|
|
4435
|
-
y({ current: h.value, pageSize:
|
|
4436
|
-
},
|
|
4437
|
-
|
|
4438
|
-
}), E = S("defaultExpandedRowKeys", null),
|
|
4439
|
-
}), Q = (
|
|
4437
|
+
y({ current: h.value, pageSize: b.value, ...T });
|
|
4438
|
+
}, _ = S("onSuccess", (x, P) => {
|
|
4439
|
+
x.value = P.data, z.value = rn(x.value, "key");
|
|
4440
|
+
}), E = S("defaultExpandedRowKeys", null), z = S("expandedRowKeys", B([])), R = S("rowSelection", null), j = S("rowClick", () => {
|
|
4441
|
+
}), Q = (x) => ({
|
|
4440
4442
|
onClick: (P) => {
|
|
4441
|
-
|
|
4443
|
+
j(P, x);
|
|
4442
4444
|
}
|
|
4443
|
-
}), K = (
|
|
4445
|
+
}), K = (x, P) => ({
|
|
4444
4446
|
onClick: () => {
|
|
4445
|
-
console.log(
|
|
4447
|
+
console.log(x[P]);
|
|
4446
4448
|
}
|
|
4447
|
-
}),
|
|
4449
|
+
}), Y = (x, P, W) => ({
|
|
4448
4450
|
onClick: () => {
|
|
4449
|
-
console.log(
|
|
4451
|
+
console.log(x, P, W);
|
|
4450
4452
|
}
|
|
4451
|
-
}),
|
|
4452
|
-
|
|
4453
|
-
}, te = (
|
|
4453
|
+
}), ee = (x, P) => {
|
|
4454
|
+
x ? z.value.push(P.key) : z.value = z.value.filter((W) => W !== P.key);
|
|
4455
|
+
}, te = (x, P, W, J) => {
|
|
4454
4456
|
let H = {};
|
|
4455
|
-
W.length ? W.forEach((
|
|
4456
|
-
H[
|
|
4457
|
-
}) : H = { [W.field]: W.order },
|
|
4457
|
+
W.length ? W.forEach((ne) => {
|
|
4458
|
+
H[ne.field] = ne.order;
|
|
4459
|
+
}) : H = { [W.field]: W.order }, T.sorter = JSON.stringify(H), T.filters = JSON.stringify(P), x.current != null && (T.current = x.current, T.pageSize = x.pageSize), w();
|
|
4458
4460
|
};
|
|
4459
|
-
F("run", y), F("sync", O), F("total",
|
|
4461
|
+
F("run", y), F("sync", O), F("total", k), F("loading", g), F("current", h), F("pageSize", b);
|
|
4460
4462
|
const se = B(n.simple);
|
|
4461
4463
|
F("simple", se);
|
|
4462
4464
|
const re = B(n.showSizeChanger);
|
|
@@ -4469,29 +4471,29 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4469
4471
|
F("tableStriped", ye);
|
|
4470
4472
|
const ve = B({}), Re = B(null);
|
|
4471
4473
|
Me(() => {
|
|
4472
|
-
const
|
|
4474
|
+
const x = {
|
|
4473
4475
|
large: 55,
|
|
4474
4476
|
middle: 47,
|
|
4475
4477
|
small: 40,
|
|
4476
4478
|
default: 40
|
|
4477
|
-
}, P = i.value ?
|
|
4479
|
+
}, P = i.value ? x[o.value] || x.default : 0;
|
|
4478
4480
|
ve.value = {
|
|
4479
4481
|
x: Re.value.offsetWidth - 30,
|
|
4480
4482
|
y: Re.value.offsetHeight - P
|
|
4481
4483
|
};
|
|
4482
4484
|
});
|
|
4483
|
-
const Ge = (
|
|
4484
|
-
P.width =
|
|
4485
|
+
const Ge = (x, P) => {
|
|
4486
|
+
P.width = x;
|
|
4485
4487
|
};
|
|
4486
4488
|
return t({
|
|
4487
4489
|
sync: O,
|
|
4488
4490
|
search: w,
|
|
4489
4491
|
dataList: c
|
|
4490
|
-
}), (
|
|
4491
|
-
const W = l("CResponsiveHeader"),
|
|
4492
|
+
}), (x, P) => {
|
|
4493
|
+
const W = l("CResponsiveHeader"), J = l("a-table-column"), H = l("a-table"), ne = l("CFooterPaginationBar"), le = l("ESpin");
|
|
4492
4494
|
return p(), v(le, {
|
|
4493
|
-
spinning:
|
|
4494
|
-
error:
|
|
4495
|
+
spinning: $(g),
|
|
4496
|
+
error: $(A)
|
|
4495
4497
|
}, {
|
|
4496
4498
|
default: s(() => [
|
|
4497
4499
|
u(W, {
|
|
@@ -4499,19 +4501,19 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4499
4501
|
contBorder: e.contBorder
|
|
4500
4502
|
}, {
|
|
4501
4503
|
left: s(() => [
|
|
4502
|
-
|
|
4504
|
+
L(x.$slots, "left", {}, void 0, !0)
|
|
4503
4505
|
]),
|
|
4504
4506
|
right: s(() => [
|
|
4505
|
-
|
|
4507
|
+
L(x.$slots, "right", {}, void 0, !0)
|
|
4506
4508
|
]),
|
|
4507
4509
|
header: s(() => [
|
|
4508
|
-
|
|
4510
|
+
L(x.$slots, "header", {}, void 0, !0)
|
|
4509
4511
|
]),
|
|
4510
4512
|
tag: s(() => [
|
|
4511
|
-
|
|
4513
|
+
L(x.$slots, "tag", {}, void 0, !0)
|
|
4512
4514
|
]),
|
|
4513
4515
|
content: s(() => [
|
|
4514
|
-
|
|
4516
|
+
L(x.$slots, "content", {}, void 0, !0)
|
|
4515
4517
|
]),
|
|
4516
4518
|
_: 3
|
|
4517
4519
|
}, 8, ["headBorder", "contBorder"]),
|
|
@@ -4520,29 +4522,29 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4520
4522
|
ref: Re,
|
|
4521
4523
|
class: "flex-fill d-flex flex-column"
|
|
4522
4524
|
}, [
|
|
4523
|
-
u(H, _e(e.useMixedMode ? {} : { columns:
|
|
4525
|
+
u(H, _e(e.useMixedMode ? {} : { columns: $(a) }, {
|
|
4524
4526
|
class: ["rounded-0", { "ant-table-striped": ye.value }],
|
|
4525
|
-
pagination: e.pagination ? { total: parseInt(
|
|
4527
|
+
pagination: e.pagination ? { total: parseInt($(k)), pageSize: $(b) } : e.pagination,
|
|
4526
4528
|
"data-source": c.value,
|
|
4527
4529
|
customRow: Q,
|
|
4528
|
-
expandRowByClick:
|
|
4529
|
-
defaultExpandAllRows:
|
|
4530
|
-
defaultExpandedRowKeys:
|
|
4531
|
-
size:
|
|
4530
|
+
expandRowByClick: $(r),
|
|
4531
|
+
defaultExpandAllRows: !$(E),
|
|
4532
|
+
defaultExpandedRowKeys: $(E),
|
|
4533
|
+
size: $(o),
|
|
4532
4534
|
scroll: ve.value,
|
|
4533
4535
|
bordered: we.value,
|
|
4534
|
-
"row-selection":
|
|
4535
|
-
expandedRowKeys:
|
|
4536
|
-
onExpand:
|
|
4536
|
+
"row-selection": $(R),
|
|
4537
|
+
expandedRowKeys: $(z),
|
|
4538
|
+
onExpand: ee,
|
|
4537
4539
|
onChange: te,
|
|
4538
4540
|
customHeaderRow: K,
|
|
4539
|
-
customCell:
|
|
4540
|
-
showHeader:
|
|
4541
|
+
customCell: Y,
|
|
4542
|
+
showHeader: $(i),
|
|
4541
4543
|
onResizeColumn: Ge
|
|
4542
4544
|
}), He({
|
|
4543
4545
|
default: s(() => [
|
|
4544
|
-
(p(!0),
|
|
4545
|
-
N.hide ?
|
|
4546
|
+
(p(!0), M(V, null, q($(a), (N, de) => (p(), M(V, { key: de }, [
|
|
4547
|
+
N.hide ? I("", !0) : (p(), v(J, {
|
|
4546
4548
|
title: N.title,
|
|
4547
4549
|
dataIndex: N.dataIndex,
|
|
4548
4550
|
ellipsis: N.ellipsis,
|
|
@@ -4560,14 +4562,14 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4560
4562
|
customCell: N.customCell
|
|
4561
4563
|
}, null, 8, ["title", "dataIndex", "ellipsis", "fixed", "width", "filters", "customFilterDropdown", "onFilter", "sorter", "resizable", "align", "colSpan", "customCell"]))
|
|
4562
4564
|
], 64))), 128)),
|
|
4563
|
-
|
|
4565
|
+
L(x.$slots, "default", {}, void 0, !0)
|
|
4564
4566
|
]),
|
|
4565
4567
|
_: 2
|
|
4566
4568
|
}, [
|
|
4567
4569
|
e.useMixedMode ? void 0 : {
|
|
4568
4570
|
name: "headerCell",
|
|
4569
4571
|
fn: s(({ column: N }) => [
|
|
4570
|
-
|
|
4572
|
+
L(x.$slots, "headerCell", {
|
|
4571
4573
|
column: { column: N }
|
|
4572
4574
|
}, void 0, !0)
|
|
4573
4575
|
]),
|
|
@@ -4576,7 +4578,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4576
4578
|
e.useMixedMode ? void 0 : {
|
|
4577
4579
|
name: "bodyCell",
|
|
4578
4580
|
fn: s(({ column: N, record: de }) => [
|
|
4579
|
-
|
|
4581
|
+
L(x.$slots, "bodyCell", {
|
|
4580
4582
|
column: N,
|
|
4581
4583
|
record: de
|
|
4582
4584
|
}, void 0, !0)
|
|
@@ -4585,9 +4587,9 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4585
4587
|
}
|
|
4586
4588
|
]), 1040, ["class", "pagination", "data-source", "expandRowByClick", "defaultExpandAllRows", "defaultExpandedRowKeys", "size", "scroll", "bordered", "row-selection", "expandedRowKeys", "showHeader"])
|
|
4587
4589
|
], 512),
|
|
4588
|
-
!e.pagination && e.enablePagination ? (p(),
|
|
4589
|
-
u(
|
|
4590
|
-
])) :
|
|
4590
|
+
!e.pagination && e.enablePagination ? (p(), M("div", Gl, [
|
|
4591
|
+
u(ne)
|
|
4592
|
+
])) : I("", !0)
|
|
4591
4593
|
]),
|
|
4592
4594
|
_: 3
|
|
4593
4595
|
}, 8, ["spinning", "error"]);
|
|
@@ -4676,96 +4678,96 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4676
4678
|
render() {
|
|
4677
4679
|
return this.vnodes;
|
|
4678
4680
|
}
|
|
4679
|
-
}), a = e, r = B([]), i = n, { apiObj: c, staticSelected: d, dynamicSelected: f, dynamicSelectedName: y, selectOptions:
|
|
4681
|
+
}), a = e, r = B([]), i = n, { apiObj: c, staticSelected: d, dynamicSelected: f, dynamicSelectedName: y, selectOptions: g, linkedFields: h, pageSize: b } = ke(a), k = B(be(a.value));
|
|
4680
4682
|
ce(() => a.value, (R) => {
|
|
4681
|
-
|
|
4683
|
+
k.value = be(R), O();
|
|
4682
4684
|
});
|
|
4683
4685
|
const A = C(() => r.value.filter((R) => R.sfxs != "0").map((R) => ({
|
|
4684
4686
|
label: R[a.fieldNames.label],
|
|
4685
4687
|
value: R[a.fieldNames.value],
|
|
4686
4688
|
disabled: R.sfky == "0",
|
|
4687
4689
|
...R
|
|
4688
|
-
}))), { runAsync:
|
|
4690
|
+
}))), { runAsync: T } = je((R) => c.value[c.value.method]({ current: "1", pageSize: b.value, ...R }), {
|
|
4689
4691
|
manual: !0,
|
|
4690
4692
|
onSuccess: async (R) => {
|
|
4691
4693
|
r.value = be(R.data), O();
|
|
4692
4694
|
}
|
|
4693
4695
|
}), O = async () => {
|
|
4694
4696
|
if (!c.value?.url) return;
|
|
4695
|
-
const R =
|
|
4697
|
+
const R = k.value;
|
|
4696
4698
|
if (R == null) return;
|
|
4697
|
-
const
|
|
4698
|
-
if (
|
|
4699
|
+
const j = (te) => String(te), Q = a.fieldNames.value, K = Array.isArray(R) ? R : [R], Y = new Set(r.value.map((te) => j(te[Q]))), ee = K.filter((te) => !Y.has(j(te)));
|
|
4700
|
+
if (ee.length !== 0)
|
|
4699
4701
|
try {
|
|
4700
4702
|
const te = [];
|
|
4701
|
-
for (const ue of
|
|
4703
|
+
for (const ue of ee) {
|
|
4702
4704
|
const we = h.value ? { [y.value]: ue, ...h.value } : { [y.value]: ue }, ye = await c.value[c.value.method]({ current: "1", pageSize: 1, ...we }), ve = be(ye?.data) || [];
|
|
4703
4705
|
te.push(...ve);
|
|
4704
4706
|
}
|
|
4705
|
-
const se = new Set(r.value.map((ue) =>
|
|
4707
|
+
const se = new Set(r.value.map((ue) => j(ue[Q]))), re = te.filter((ue) => !se.has(j(ue[Q])));
|
|
4706
4708
|
r.value = [...r.value, ...re];
|
|
4707
4709
|
} catch (te) {
|
|
4708
4710
|
console.warn("获取并合并选定项异常:", te);
|
|
4709
4711
|
}
|
|
4710
4712
|
};
|
|
4711
|
-
c.value.url ?
|
|
4713
|
+
c.value.url ? T(h.value || {}) : g.value.length > 0 ? r.value = be(g.value) : r.value = be([{ value: "0", label: "星期日" }, { value: "1", label: "星期一" }, { value: "2", label: "星期二" }, { value: "3", label: "星期三" }, { value: "4", label: "星期四" }, { value: "5", label: "星期五" }, { value: "6", label: "星期六" }]);
|
|
4712
4714
|
const w = async (R) => {
|
|
4713
4715
|
if (c.value.url && f.value) {
|
|
4714
|
-
const
|
|
4715
|
-
|
|
4716
|
+
const j = h.value ? { [y.value]: R, ...h.value } : { [y.value]: R };
|
|
4717
|
+
T(j);
|
|
4716
4718
|
}
|
|
4717
|
-
},
|
|
4718
|
-
i("update:value", R), c.value.url && f.value && !R &&
|
|
4719
|
+
}, _ = (R) => {
|
|
4720
|
+
i("update:value", R), c.value.url && f.value && !R && T(h.value || {});
|
|
4719
4721
|
};
|
|
4720
|
-
ce(h, async (R,
|
|
4722
|
+
ce(h, async (R, j) => {
|
|
4721
4723
|
for (const Q in R)
|
|
4722
|
-
if (R[Q] !==
|
|
4723
|
-
await
|
|
4724
|
+
if (R[Q] !== j[Q]) {
|
|
4725
|
+
await T(R);
|
|
4724
4726
|
let K = !1;
|
|
4725
|
-
Array.isArray(
|
|
4727
|
+
Array.isArray(k.value) ? K = k.value.every((Y) => r.value.some((ee) => ee[a.fieldNames.value] === Y)) : K = r.value.some((Y) => Y[a.fieldNames.value] == k.value), K || i("update:value", null);
|
|
4726
4728
|
}
|
|
4727
4729
|
});
|
|
4728
|
-
const E = (R,
|
|
4729
|
-
if (!
|
|
4730
|
-
const Q = R.toLowerCase(), K =
|
|
4731
|
-
return K.includes(Q) ||
|
|
4730
|
+
const E = (R, j) => {
|
|
4731
|
+
if (!j || !j.label && !j.value) return !1;
|
|
4732
|
+
const Q = R.toLowerCase(), K = j.label ? j.label.toString().toLowerCase() : "", Y = j.value ? j.value.toString().toLowerCase() : "";
|
|
4733
|
+
return K.includes(Q) || Y.includes(Q);
|
|
4732
4734
|
};
|
|
4733
|
-
return ce(
|
|
4735
|
+
return ce(g.value, (R) => {
|
|
4734
4736
|
r.value = be(R);
|
|
4735
4737
|
}), t({
|
|
4736
4738
|
sync: () => {
|
|
4737
|
-
c.value.url &&
|
|
4739
|
+
c.value.url && T(h.value || {});
|
|
4738
4740
|
},
|
|
4739
4741
|
selectList: r
|
|
4740
|
-
}), (R,
|
|
4742
|
+
}), (R, j) => {
|
|
4741
4743
|
const Q = l("a-select");
|
|
4742
4744
|
return p(), v(Q, _e({
|
|
4743
4745
|
virtual: !1,
|
|
4744
|
-
value:
|
|
4746
|
+
value: k.value,
|
|
4745
4747
|
"allow-clear": "",
|
|
4746
|
-
showSearch:
|
|
4748
|
+
showSearch: $(d) || $(f),
|
|
4747
4749
|
"default-active-first-option": !1,
|
|
4748
4750
|
"show-arrow": !1,
|
|
4749
|
-
"filter-option":
|
|
4751
|
+
"filter-option": $(d) ? E : !1,
|
|
4750
4752
|
"not-found-content": r.value.length > 0 ? null : "暂无数据",
|
|
4751
4753
|
options: A.value,
|
|
4752
|
-
onChange:
|
|
4753
|
-
}, Ht({ search:
|
|
4754
|
-
option: s(({ label: K, value:
|
|
4755
|
-
|
|
4756
|
-
G(
|
|
4754
|
+
onChange: _
|
|
4755
|
+
}, Ht({ search: $(f) ? w : void 0 })), He({
|
|
4756
|
+
option: s(({ label: K, value: Y, ...ee }) => [
|
|
4757
|
+
L(R.$slots, "option", yn(vn({ label: K, value: Y, ...ee })), () => [
|
|
4758
|
+
G(U(K), 1)
|
|
4757
4759
|
])
|
|
4758
4760
|
]),
|
|
4759
4761
|
suffixIcon: s(() => [
|
|
4760
|
-
|
|
4762
|
+
L(R.$slots, "suffixIcon")
|
|
4761
4763
|
]),
|
|
4762
4764
|
_: 2
|
|
4763
4765
|
}, [
|
|
4764
4766
|
{
|
|
4765
4767
|
name: "dropdownRender",
|
|
4766
4768
|
fn: s(({ menuNode: K }) => [
|
|
4767
|
-
u(
|
|
4768
|
-
|
|
4769
|
+
u($(o), { vnodes: K }, null, 8, ["vnodes"]),
|
|
4770
|
+
L(R.$slots, "dropdownRender")
|
|
4769
4771
|
]),
|
|
4770
4772
|
key: "0"
|
|
4771
4773
|
}
|
|
@@ -4814,7 +4816,7 @@ function es(e, t, n, o, a, r) {
|
|
|
4814
4816
|
}, {
|
|
4815
4817
|
item: s(({ element: c }) => [
|
|
4816
4818
|
m("div", Xl, [
|
|
4817
|
-
|
|
4819
|
+
L(e.$slots, "item", { element: c })
|
|
4818
4820
|
])
|
|
4819
4821
|
]),
|
|
4820
4822
|
_: 3
|
|
@@ -4836,20 +4838,20 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4836
4838
|
r.value = c;
|
|
4837
4839
|
};
|
|
4838
4840
|
return (c, d) => {
|
|
4839
|
-
const f = l("a-tag"), y = l("a-space"),
|
|
4840
|
-
return p(),
|
|
4841
|
+
const f = l("a-tag"), y = l("a-space"), g = l("a-input");
|
|
4842
|
+
return p(), M("div", ns, [
|
|
4841
4843
|
m("div", null, [
|
|
4842
4844
|
d[2] || (d[2] = m("div", { class: "section-title" }, "状态色", -1)),
|
|
4843
4845
|
u(y, { wrap: "" }, {
|
|
4844
4846
|
default: s(() => [
|
|
4845
|
-
(p(),
|
|
4847
|
+
(p(), M(V, null, q(a, (h) => u(f, {
|
|
4846
4848
|
key: h.name,
|
|
4847
4849
|
color: h.value,
|
|
4848
4850
|
style: { cursor: "pointer" },
|
|
4849
|
-
onClick: (
|
|
4851
|
+
onClick: (b) => i(h.value)
|
|
4850
4852
|
}, {
|
|
4851
4853
|
default: s(() => [
|
|
4852
|
-
G(
|
|
4854
|
+
G(U(h.name), 1)
|
|
4853
4855
|
]),
|
|
4854
4856
|
_: 2
|
|
4855
4857
|
}, 1032, ["color", "onClick"])), 64))
|
|
@@ -4857,10 +4859,10 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4857
4859
|
_: 1
|
|
4858
4860
|
})
|
|
4859
4861
|
]),
|
|
4860
|
-
|
|
4862
|
+
I("", !0),
|
|
4861
4863
|
m("div", null, [
|
|
4862
4864
|
d[4] || (d[4] = m("div", { class: "section-title" }, "颜色选择器", -1)),
|
|
4863
|
-
u(
|
|
4865
|
+
u($(Cn), {
|
|
4864
4866
|
pureColor: r.value,
|
|
4865
4867
|
"onUpdate:pureColor": d[0] || (d[0] = (h) => r.value = h),
|
|
4866
4868
|
format: "hex",
|
|
@@ -4869,7 +4871,7 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4869
4871
|
]),
|
|
4870
4872
|
m("div", null, [
|
|
4871
4873
|
d[5] || (d[5] = m("div", { class: "section-title" }, "自定义输入", -1)),
|
|
4872
|
-
u(
|
|
4874
|
+
u(g, {
|
|
4873
4875
|
value: r.value,
|
|
4874
4876
|
"onUpdate:value": d[1] || (d[1] = (h) => r.value = h),
|
|
4875
4877
|
placeholder: "支持 red / #fff / rgb(...)",
|
|
@@ -4911,8 +4913,8 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4911
4913
|
setup(e, { emit: t }) {
|
|
4912
4914
|
const n = e, o = t, a = S("breakpoint", B(!1)), r = gn(), i = B(0);
|
|
4913
4915
|
nt(() => {
|
|
4914
|
-
const
|
|
4915
|
-
i.value =
|
|
4916
|
+
const b = r.default?.() || [];
|
|
4917
|
+
i.value = b.length;
|
|
4916
4918
|
});
|
|
4917
4919
|
const c = B(window.innerWidth), d = () => {
|
|
4918
4920
|
c.value = window.innerWidth;
|
|
@@ -4923,23 +4925,23 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4923
4925
|
window.removeEventListener("resize", d);
|
|
4924
4926
|
});
|
|
4925
4927
|
const f = C(() => {
|
|
4926
|
-
const
|
|
4927
|
-
return
|
|
4928
|
-
}), y = C(() => (r.default?.() || []).slice(0, f.value)),
|
|
4929
|
-
function h(
|
|
4930
|
-
const
|
|
4931
|
-
return Array.isArray(
|
|
4928
|
+
const b = c.value;
|
|
4929
|
+
return b < 576 || b < 768 || b < 992 ? 0 : b < 1200 ? 1 : b < 1600 ? 2 : n.maxInline;
|
|
4930
|
+
}), y = C(() => (r.default?.() || []).slice(0, f.value)), g = C(() => (r.default?.() || []).slice(f.value));
|
|
4931
|
+
function h(b) {
|
|
4932
|
+
const k = b.props?.placeholder;
|
|
4933
|
+
return Array.isArray(k) ? k.filter(Boolean).join(" - ") : k || "未知名称";
|
|
4932
4934
|
}
|
|
4933
|
-
return (
|
|
4934
|
-
const A = l("a-space"),
|
|
4935
|
-
return p(),
|
|
4936
|
-
|
|
4935
|
+
return (b, k) => {
|
|
4936
|
+
const A = l("a-space"), T = l("a-icon"), O = l("a-button"), w = l("a-popover"), _ = l("a-divider"), E = l("a-form-item"), z = l("a-form"), R = l("a-drawer");
|
|
4937
|
+
return p(), M("div", null, [
|
|
4938
|
+
$(a) ? I("", !0) : (p(), v(A, {
|
|
4937
4939
|
key: 0,
|
|
4938
4940
|
direction: "horizontal"
|
|
4939
4941
|
}, {
|
|
4940
4942
|
default: s(() => [
|
|
4941
|
-
(p(!0),
|
|
4942
|
-
|
|
4943
|
+
(p(!0), M(V, null, q(y.value, (j, Q) => (p(), v(Fe(j), { key: Q }))), 128)),
|
|
4944
|
+
g.value.length > 0 ? (p(), v(w, {
|
|
4943
4945
|
key: 0,
|
|
4944
4946
|
trigger: "click",
|
|
4945
4947
|
placement: "bottomLeft"
|
|
@@ -4952,11 +4954,11 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4952
4954
|
style: { width: "100%" }
|
|
4953
4955
|
}, {
|
|
4954
4956
|
default: s(() => [
|
|
4955
|
-
(p(!0),
|
|
4957
|
+
(p(!0), M(V, null, q(g.value, (j, Q) => (p(), v(Fe(j), {
|
|
4956
4958
|
key: "extra-" + Q,
|
|
4957
4959
|
style: { width: "100%" }
|
|
4958
4960
|
}))), 128)),
|
|
4959
|
-
|
|
4961
|
+
L(b.$slots, "footer")
|
|
4960
4962
|
]),
|
|
4961
4963
|
_: 3
|
|
4962
4964
|
})
|
|
@@ -4966,24 +4968,24 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4966
4968
|
u(O, { type: "default" }, {
|
|
4967
4969
|
default: s(() => [
|
|
4968
4970
|
m("small", null, [
|
|
4969
|
-
u(
|
|
4970
|
-
G(" " +
|
|
4971
|
+
u(T, { type: "icon-filter" }),
|
|
4972
|
+
G(" " + U(n.title), 1)
|
|
4971
4973
|
])
|
|
4972
4974
|
]),
|
|
4973
4975
|
_: 1
|
|
4974
4976
|
})
|
|
4975
4977
|
]),
|
|
4976
4978
|
_: 3
|
|
4977
|
-
})) :
|
|
4979
|
+
})) : I("", !0)
|
|
4978
4980
|
]),
|
|
4979
4981
|
_: 3
|
|
4980
4982
|
})),
|
|
4981
|
-
|
|
4983
|
+
$(a) && n.showMobileDivider ? (p(), v(_, {
|
|
4982
4984
|
key: 1,
|
|
4983
4985
|
class: "mt-0 mb-2",
|
|
4984
4986
|
style: { transform: "translateX(-16px)", width: "calc(100% + 32px)" }
|
|
4985
|
-
})) :
|
|
4986
|
-
|
|
4987
|
+
})) : I("", !0),
|
|
4988
|
+
$(a) ? (p(), v(R, {
|
|
4987
4989
|
key: 2,
|
|
4988
4990
|
class: "rounded-top-3",
|
|
4989
4991
|
open: n.mobileVisible,
|
|
@@ -4991,25 +4993,25 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4991
4993
|
placement: "bottom",
|
|
4992
4994
|
height: "auto",
|
|
4993
4995
|
closable: !0,
|
|
4994
|
-
onClose:
|
|
4996
|
+
onClose: k[2] || (k[2] = (j) => o("update:mobileVisible", !1)),
|
|
4995
4997
|
"body-style": { minHeight: "28vh", maxHeight: "46vh", overflowY: "auto", borderTopLeftRadius: "12px", borderTopRightRadius: "12px" },
|
|
4996
4998
|
footerStyle: { background: "rgb(248, 249, 250)" }
|
|
4997
4999
|
}, {
|
|
4998
5000
|
footer: s(() => [
|
|
4999
5001
|
m("div", ls, [
|
|
5000
5002
|
u(O, {
|
|
5001
|
-
onClick:
|
|
5003
|
+
onClick: k[0] || (k[0] = (j) => b.$emit("reset"))
|
|
5002
5004
|
}, {
|
|
5003
|
-
default: s(() => [...
|
|
5005
|
+
default: s(() => [...k[3] || (k[3] = [
|
|
5004
5006
|
G("重置", -1)
|
|
5005
5007
|
])]),
|
|
5006
5008
|
_: 1
|
|
5007
5009
|
}),
|
|
5008
5010
|
u(O, {
|
|
5009
5011
|
type: "primary",
|
|
5010
|
-
onClick:
|
|
5012
|
+
onClick: k[1] || (k[1] = (j) => b.$emit("confirm"))
|
|
5011
5013
|
}, {
|
|
5012
|
-
default: s(() => [...
|
|
5014
|
+
default: s(() => [...k[4] || (k[4] = [
|
|
5013
5015
|
G("确定", -1)
|
|
5014
5016
|
])]),
|
|
5015
5017
|
_: 1
|
|
@@ -5024,30 +5026,30 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
5024
5026
|
style: { width: "100%" }
|
|
5025
5027
|
}, {
|
|
5026
5028
|
default: s(() => [
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
+
L(b.$slots, "default"),
|
|
5030
|
+
L(b.$slots, "footer")
|
|
5029
5031
|
]),
|
|
5030
5032
|
_: 3
|
|
5031
|
-
})) : n.formWrapMode === "form" ? (p(), v(
|
|
5033
|
+
})) : n.formWrapMode === "form" ? (p(), v(z, {
|
|
5032
5034
|
key: 1,
|
|
5033
5035
|
layout: "vertical"
|
|
5034
5036
|
}, {
|
|
5035
5037
|
default: s(() => [
|
|
5036
|
-
(p(!0),
|
|
5038
|
+
(p(!0), M(V, null, q(b.$slots.default?.() || [], (j, Q) => (p(), v(E, {
|
|
5037
5039
|
key: Q,
|
|
5038
|
-
label: h(
|
|
5040
|
+
label: h(j)
|
|
5039
5041
|
}, {
|
|
5040
5042
|
default: s(() => [
|
|
5041
|
-
(p(), v(Fe(
|
|
5043
|
+
(p(), v(Fe(j)))
|
|
5042
5044
|
]),
|
|
5043
5045
|
_: 2
|
|
5044
5046
|
}, 1032, ["label"]))), 128))
|
|
5045
5047
|
]),
|
|
5046
5048
|
_: 1
|
|
5047
|
-
})) :
|
|
5049
|
+
})) : I("", !0)
|
|
5048
5050
|
]),
|
|
5049
5051
|
_: 3
|
|
5050
|
-
}, 8, ["open", "title"])) :
|
|
5052
|
+
}, 8, ["open", "title"])) : I("", !0)
|
|
5051
5053
|
]);
|
|
5052
5054
|
};
|
|
5053
5055
|
}
|
|
@@ -5067,28 +5069,28 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
5067
5069
|
const t = S("breakpoint", B(!1));
|
|
5068
5070
|
return (n, o) => {
|
|
5069
5071
|
const a = l("a-space");
|
|
5070
|
-
return p(),
|
|
5071
|
-
|
|
5072
|
+
return p(), M(V, null, [
|
|
5073
|
+
$(t) ? I("", !0) : (p(), M("div", {
|
|
5072
5074
|
key: 0,
|
|
5073
|
-
class:
|
|
5075
|
+
class: Z(["d-flex justify-content-between align-items-center bg-white", { "border-bottom": e.headBorder }])
|
|
5074
5076
|
}, [
|
|
5075
5077
|
u(a, { class: "py-2 px-3" }, {
|
|
5076
5078
|
default: s(() => [
|
|
5077
|
-
|
|
5079
|
+
L(n.$slots, "left", {}, void 0, !0)
|
|
5078
5080
|
]),
|
|
5079
5081
|
_: 3
|
|
5080
5082
|
}),
|
|
5081
5083
|
u(a, { class: "py-2 px-3" }, {
|
|
5082
5084
|
default: s(() => [
|
|
5083
|
-
|
|
5085
|
+
L(n.$slots, "right", {}, void 0, !0)
|
|
5084
5086
|
]),
|
|
5085
5087
|
_: 3
|
|
5086
5088
|
}),
|
|
5087
|
-
|
|
5089
|
+
L(n.$slots, "header", {}, void 0, !0)
|
|
5088
5090
|
], 2)),
|
|
5089
|
-
|
|
5091
|
+
$(t) ? (p(), M("div", {
|
|
5090
5092
|
key: 1,
|
|
5091
|
-
class:
|
|
5093
|
+
class: Z(["d-flex justify-content-between align-items-center bg-white e-space", { "border-bottom": e.headBorder }])
|
|
5092
5094
|
}, [
|
|
5093
5095
|
u(a, {
|
|
5094
5096
|
class: "py-2 px-3 w-100",
|
|
@@ -5096,22 +5098,22 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
5096
5098
|
wrap: ""
|
|
5097
5099
|
}, {
|
|
5098
5100
|
default: s(() => [
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
+
L(n.$slots, "left", {}, void 0, !0),
|
|
5102
|
+
L(n.$slots, "right", {}, void 0, !0)
|
|
5101
5103
|
]),
|
|
5102
5104
|
_: 3
|
|
5103
5105
|
})
|
|
5104
|
-
], 2)) :
|
|
5106
|
+
], 2)) : I("", !0),
|
|
5105
5107
|
m("div", {
|
|
5106
|
-
class:
|
|
5108
|
+
class: Z({ "border-bottom": e.contBorder })
|
|
5107
5109
|
}, [
|
|
5108
5110
|
u(a, { class: "py-2 px-3" }, {
|
|
5109
5111
|
default: s(() => [
|
|
5110
|
-
|
|
5112
|
+
L(n.$slots, "tag", {}, void 0, !0)
|
|
5111
5113
|
]),
|
|
5112
5114
|
_: 3
|
|
5113
5115
|
}),
|
|
5114
|
-
|
|
5116
|
+
L(n.$slots, "content", {}, void 0, !0)
|
|
5115
5117
|
], 2)
|
|
5116
5118
|
], 64);
|
|
5117
5119
|
};
|
|
@@ -5141,34 +5143,34 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
5141
5143
|
},
|
|
5142
5144
|
setup(e) {
|
|
5143
5145
|
const t = S("run"), n = S("state", B({})), o = S("total"), a = S("loading"), r = S("current"), i = S("pageSize"), c = S("simple"), d = S("showSizeChanger"), f = S("showQuickJumper"), y = S("breakpoint", B(!1));
|
|
5144
|
-
return (
|
|
5145
|
-
const
|
|
5146
|
-
return p(),
|
|
5146
|
+
return (g, h) => {
|
|
5147
|
+
const b = l("a-pagination"), k = l("a-icon"), A = l("a-button"), T = l("a-space");
|
|
5148
|
+
return p(), M(V, null, [
|
|
5147
5149
|
m("div", cs, [
|
|
5148
|
-
m("span", ds, "共 " +
|
|
5149
|
-
u(
|
|
5150
|
+
m("span", ds, "共 " + U($(o)) + " 条", 1),
|
|
5151
|
+
u(b, {
|
|
5150
5152
|
class: "p-1 simple-pagination",
|
|
5151
5153
|
hideOnSinglePage: !0,
|
|
5152
|
-
simple:
|
|
5153
|
-
"show-size-changer":
|
|
5154
|
-
"show-quick-jumper":
|
|
5155
|
-
total: Number(
|
|
5156
|
-
current:
|
|
5154
|
+
simple: $(c) || $(y),
|
|
5155
|
+
"show-size-changer": $(d),
|
|
5156
|
+
"show-quick-jumper": $(f),
|
|
5157
|
+
total: Number($(o)),
|
|
5158
|
+
current: $(r),
|
|
5157
5159
|
"onUpdate:current": h[0] || (h[0] = (O) => ze(r) ? r.value = O : null),
|
|
5158
|
-
pageSize:
|
|
5160
|
+
pageSize: $(i),
|
|
5159
5161
|
"onUpdate:pageSize": h[1] || (h[1] = (O) => ze(i) ? i.value = O : null)
|
|
5160
5162
|
}, null, 8, ["simple", "show-size-changer", "show-quick-jumper", "total", "current", "pageSize"])
|
|
5161
5163
|
]),
|
|
5162
|
-
u(
|
|
5164
|
+
u(T, { size: "middle" }, {
|
|
5163
5165
|
default: s(() => [
|
|
5164
5166
|
u(A, {
|
|
5165
5167
|
shape: "circle",
|
|
5166
|
-
onClick: h[2] || (h[2] = (O) =>
|
|
5168
|
+
onClick: h[2] || (h[2] = (O) => $(t)({ current: $(r), pageSize: $(i), ...$(n) }))
|
|
5167
5169
|
}, {
|
|
5168
5170
|
default: s(() => [
|
|
5169
|
-
u(
|
|
5171
|
+
u(k, {
|
|
5170
5172
|
type: "icon-sync",
|
|
5171
|
-
spin:
|
|
5173
|
+
spin: $(a),
|
|
5172
5174
|
class: "font-8"
|
|
5173
5175
|
}, null, 8, ["spin"])
|
|
5174
5176
|
]),
|