gs-eant-comp 3.0.9 → 3.1.1
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 +117 -116
- package/dist/gs-eant-comp.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/gs-eant-comp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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 S, createCommentVNode as I, inject as C, 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
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";
|
|
@@ -74,7 +74,7 @@ const $n = /* @__PURE__ */ D(Bn, [["render", In]]), Mn = X({
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
setup(e) {
|
|
77
|
-
const { navMenus: t } = ke(e), n =
|
|
77
|
+
const { navMenus: t } = ke(e), n = S(() => t && t.length <= 0);
|
|
78
78
|
return {
|
|
79
79
|
navMenus: t,
|
|
80
80
|
isNavMenus: n
|
|
@@ -135,7 +135,7 @@ const he = /* @__PURE__ */ D(Mn, [["render", Rn]]), Qt = "data:image/png;base64,
|
|
|
135
135
|
setup(e) {
|
|
136
136
|
const { menu: t } = ke(e), n = oe(), o = bn(), a = ae(), r = (g) => {
|
|
137
137
|
a.push(g.key), i.value.open = !1;
|
|
138
|
-
}, i =
|
|
138
|
+
}, i = C("menuDrawerRef"), c = B([]), d = S(() => o.path), f = (g, h, b = []) => {
|
|
139
139
|
for (const k of g) {
|
|
140
140
|
if (k.path === h)
|
|
141
141
|
return b;
|
|
@@ -157,7 +157,7 @@ const he = /* @__PURE__ */ D(Mn, [["render", Rn]]), Qt = "data:image/png;base64,
|
|
|
157
157
|
onToRouter: r,
|
|
158
158
|
menuDrawerRef: i,
|
|
159
159
|
app38: Qt,
|
|
160
|
-
menuItemActiveStyle:
|
|
160
|
+
menuItemActiveStyle: S(() => n.state.app.menuItemActiveStyle),
|
|
161
161
|
// 菜单选中样式()
|
|
162
162
|
openKeys: c,
|
|
163
163
|
selectedKey: d,
|
|
@@ -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 = oe(), i =
|
|
235
|
+
const { xs: t, lg: n, span: o, layout: a } = ke(e), r = oe(), i = C("$API"), c = Te(i.auth.update), d = C("refPasswordEModal"), f = B({
|
|
236
236
|
xgh: r.state.auth.userInfo.yhm,
|
|
237
237
|
xm: r.state.auth.userInfo.xm,
|
|
238
238
|
ymm: "",
|
|
@@ -278,7 +278,7 @@ const Ln = /* @__PURE__ */ D(Nn, [["render", zn]]), jn = kn.useForm, Un = X({
|
|
|
278
278
|
} catch {
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
|
-
editDisabled:
|
|
281
|
+
editDisabled: C("editDisabled", B(!0))
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
});
|
|
@@ -432,9 +432,9 @@ const Gt = /* @__PURE__ */ D(Un, [["render", Wn]]), Kn = { class: "h-100" }, Fn
|
|
|
432
432
|
__name: "UserBar",
|
|
433
433
|
setup(e) {
|
|
434
434
|
const t = (...O) => {
|
|
435
|
-
}, n =
|
|
436
|
-
|
|
437
|
-
const d =
|
|
435
|
+
}, n = C("$API"), o = oe(), a = ae(), r = S(() => o.state.app.auth), i = S(() => o.state.auth.userInfo), c = S(() => o.state.app.appLayoutType);
|
|
436
|
+
S(() => o.state.app.casServerLoginUrl);
|
|
437
|
+
const d = S(() => o.state.app.casServerLogoutUrl), f = Te(n.auth.logout), { run: y } = je((O) => f[f.method](O), {
|
|
438
438
|
manual: !0,
|
|
439
439
|
onSuccess: (O) => {
|
|
440
440
|
t("认证模式识别完成 →", r.value), r.value === "CAS" && (t("CAS 注销流程|重定向至统一认证登出地址", d.value), window.location.href = d.value);
|
|
@@ -448,8 +448,8 @@ const Gt = /* @__PURE__ */ D(Un, [["render", Wn]]), Kn = { class: "h-100" }, Fn
|
|
|
448
448
|
const h = (O) => {
|
|
449
449
|
g.value.open = !0, g.value.title = "修改密码";
|
|
450
450
|
};
|
|
451
|
-
B(!1)
|
|
452
|
-
const b =
|
|
451
|
+
B(!1);
|
|
452
|
+
const b = S(() => o.state.auth.currentRole), k = S(() => {
|
|
453
453
|
try {
|
|
454
454
|
return i.value?.roles ? JSON.parse(i.value.roles) : [];
|
|
455
455
|
} catch (O) {
|
|
@@ -1003,7 +1003,7 @@ Object.keys(et).forEach(function(e) {
|
|
|
1003
1003
|
}), tt[e].primary = tt[e][5];
|
|
1004
1004
|
});
|
|
1005
1005
|
var io = Ve.blue, co = Symbol("iconContext"), Yt = function() {
|
|
1006
|
-
return
|
|
1006
|
+
return C(co, {
|
|
1007
1007
|
prefixCls: B("anticon"),
|
|
1008
1008
|
rootClassName: B(""),
|
|
1009
1009
|
csp: B()
|
|
@@ -1616,7 +1616,7 @@ const aa = X({
|
|
|
1616
1616
|
}
|
|
1617
1617
|
},
|
|
1618
1618
|
setup(e) {
|
|
1619
|
-
const t = oe(), n = ae(), o = B(null), a =
|
|
1619
|
+
const t = oe(), n = ae(), o = B(null), a = S(() => t.state.viewTags.viewTags), r = B([]), i = (_) => _ === n.currentRoute.value.fullPath, c = (_) => {
|
|
1620
1620
|
t.commit("pushViewTags", _), _.name && _.meta.keepalive && t.commit("pushKeepLive", _.name);
|
|
1621
1621
|
}, d = (_) => {
|
|
1622
1622
|
if (a.value.forEach((E) => {
|
|
@@ -1662,7 +1662,7 @@ const aa = X({
|
|
|
1662
1662
|
}, T = () => {
|
|
1663
1663
|
var _ = r.value, E = _.href || "/";
|
|
1664
1664
|
_.meta.affix || d(_.name), window.open(E);
|
|
1665
|
-
}, O =
|
|
1665
|
+
}, O = C("routerDepth"), w = B([]);
|
|
1666
1666
|
w.value = n.options.routes;
|
|
1667
1667
|
for (let _ = 0; _ < O.value; _++)
|
|
1668
1668
|
w.value = w.value[0].children;
|
|
@@ -1805,7 +1805,7 @@ const Ee = /* @__PURE__ */ D(aa, [["render", ua]]), ia = { class: "d-flex justif
|
|
|
1805
1805
|
}
|
|
1806
1806
|
},
|
|
1807
1807
|
setup(e) {
|
|
1808
|
-
const t = oe(), n = ae(), o =
|
|
1808
|
+
const t = oe(), n = ae(), o = S(() => n.currentRoute.value.matched), a = S(() => t.state.app.menuIsCollapse);
|
|
1809
1809
|
return (r, i) => {
|
|
1810
1810
|
const c = l("a-breadcrumb-item"), d = l("a-breadcrumb"), f = l("a-space");
|
|
1811
1811
|
return p(), M("div", ia, [
|
|
@@ -1889,11 +1889,11 @@ const Ee = /* @__PURE__ */ D(aa, [["render", ua]]), ia = { class: "d-flex justif
|
|
|
1889
1889
|
}, pa = /* @__PURE__ */ D(da, [["__scopeId", "data-v-1f824705"]]), fa = X({
|
|
1890
1890
|
components: { NavMenu: he, MobileMenuButton: pa },
|
|
1891
1891
|
setup() {
|
|
1892
|
-
const e = oe(), t =
|
|
1892
|
+
const e = oe(), t = C("menuDrawerRef"), n = () => {
|
|
1893
1893
|
t.value.open = !0;
|
|
1894
1894
|
};
|
|
1895
1895
|
return {
|
|
1896
|
-
headerTitle:
|
|
1896
|
+
headerTitle: S(() => e.state.app.appName),
|
|
1897
1897
|
// 应用系统名称
|
|
1898
1898
|
antLayoutSiderBelow: n,
|
|
1899
1899
|
app38: Qt
|
|
@@ -1942,9 +1942,9 @@ const Ie = /* @__PURE__ */ D(fa, [["render", va]]), $e = {
|
|
|
1942
1942
|
__name: "WorkflowTodoBell",
|
|
1943
1943
|
setup(e) {
|
|
1944
1944
|
const t = oe(), n = ae();
|
|
1945
|
-
|
|
1946
|
-
const o =
|
|
1947
|
-
|
|
1945
|
+
S(() => t.state.app.auth);
|
|
1946
|
+
const o = S(() => t.state.auth.userInfo), a = S(() => t.state.app.appLayoutType);
|
|
1947
|
+
S(() => t.state.app.casServerLoginUrl), S(() => t.state.app.casServerLogoutUrl);
|
|
1948
1948
|
const r = () => {
|
|
1949
1949
|
n.push({ path: "/FF26F28AD11B5E8B7368F57D1ABAD485" });
|
|
1950
1950
|
};
|
|
@@ -1972,24 +1972,24 @@ const Ie = /* @__PURE__ */ D(fa, [["render", va]]), $e = {
|
|
|
1972
1972
|
}, ga = X({
|
|
1973
1973
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
1974
1974
|
setup() {
|
|
1975
|
-
const e = oe(), t = ae(), n =
|
|
1975
|
+
const e = oe(), t = ae(), n = C("menu"), o = C("breakpoint", B(!1)), a = C("onBreakpoint", () => {
|
|
1976
1976
|
}), r = (i) => {
|
|
1977
1977
|
t.push(i.key);
|
|
1978
1978
|
};
|
|
1979
1979
|
return {
|
|
1980
|
-
appName:
|
|
1980
|
+
appName: S(() => e.state.app.appName),
|
|
1981
1981
|
// 应用系统名称
|
|
1982
|
-
tagsBarIsEnabled:
|
|
1982
|
+
tagsBarIsEnabled: S(() => e.state.app.tagsBarIsEnabled),
|
|
1983
1983
|
// 开启多标签栏
|
|
1984
|
-
menuIsCollapse:
|
|
1984
|
+
menuIsCollapse: S(() => e.state.app.menuIsCollapse),
|
|
1985
1985
|
// 展开侧边菜单
|
|
1986
|
-
menuItemActiveStyle:
|
|
1986
|
+
menuItemActiveStyle: S(() => e.state.app.menuItemActiveStyle),
|
|
1987
1987
|
// 菜单选中样式()
|
|
1988
1988
|
menu: n,
|
|
1989
1989
|
goToRoute: r,
|
|
1990
1990
|
breakpoint: o,
|
|
1991
1991
|
onBreakpoint: a,
|
|
1992
|
-
todoBellEnabled:
|
|
1992
|
+
todoBellEnabled: S(() => e.state.app.todoBellEnabled)
|
|
1993
1993
|
};
|
|
1994
1994
|
}
|
|
1995
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 };
|
|
@@ -2063,20 +2063,20 @@ function Ca(e, t, n, o, a, r) {
|
|
|
2063
2063
|
const Ba = /* @__PURE__ */ D(ga, [["render", Ca]]), Ea = X({
|
|
2064
2064
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2065
2065
|
setup() {
|
|
2066
|
-
const e = oe(), t = ae(), n =
|
|
2066
|
+
const e = oe(), t = ae(), n = C("menu"), o = C("breakpoint", B(!1)), a = C("onBreakpoint", () => {
|
|
2067
2067
|
}), r = (f) => {
|
|
2068
2068
|
t.push(f.key);
|
|
2069
|
-
}, { useToken: i } = Qe, { token: c } = i(), d =
|
|
2069
|
+
}, { useToken: i } = Qe, { token: c } = i(), d = C("layoutSiderOptionsCollapsed", B(!0));
|
|
2070
2070
|
return ce(d, (f) => {
|
|
2071
2071
|
f || e.commit("toggleCollapseMenu", !f);
|
|
2072
2072
|
}), {
|
|
2073
|
-
appName:
|
|
2073
|
+
appName: S(() => e.state.app.appName),
|
|
2074
2074
|
// 应用系统名称
|
|
2075
|
-
tagsBarIsEnabled:
|
|
2075
|
+
tagsBarIsEnabled: S(() => e.state.app.tagsBarIsEnabled),
|
|
2076
2076
|
// 开启多标签栏
|
|
2077
|
-
menuIsCollapse:
|
|
2077
|
+
menuIsCollapse: S(() => e.state.app.menuIsCollapse),
|
|
2078
2078
|
// 侧边菜单
|
|
2079
|
-
menuItemActiveStyle:
|
|
2079
|
+
menuItemActiveStyle: S(() => e.state.app.menuItemActiveStyle),
|
|
2080
2080
|
// 菜单选中样式()
|
|
2081
2081
|
menu: n,
|
|
2082
2082
|
goToRoute: r,
|
|
@@ -2084,7 +2084,7 @@ const Ba = /* @__PURE__ */ D(ga, [["render", Ca]]), Ea = X({
|
|
|
2084
2084
|
onBreakpoint: a,
|
|
2085
2085
|
token: c,
|
|
2086
2086
|
layoutSiderOptionsCollapsed: d,
|
|
2087
|
-
todoBellEnabled:
|
|
2087
|
+
todoBellEnabled: S(() => e.state.app.todoBellEnabled)
|
|
2088
2088
|
};
|
|
2089
2089
|
}
|
|
2090
2090
|
}), xa = { class: "d-flex justify-content-between" }, Ia = { class: "fs-6" }, $a = { class: "flex-fill d-flex justify-content-end h-100" }, Ma = { class: "border-end h-100 d-flex flex-column" }, Ta = {
|
|
@@ -2186,20 +2186,20 @@ function Oa(e, t, n, o, a, r) {
|
|
|
2186
2186
|
const Ra = /* @__PURE__ */ D(Ea, [["render", Oa], ["__scopeId", "data-v-16b05c4f"]]), Na = X({
|
|
2187
2187
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2188
2188
|
setup() {
|
|
2189
|
-
const e = oe(), t = ae(), n =
|
|
2189
|
+
const e = oe(), t = ae(), n = C("menu"), o = C("breakpoint", B(!1)), a = C("onBreakpoint", () => {
|
|
2190
2190
|
}), r = (i) => {
|
|
2191
2191
|
t.push(i.key);
|
|
2192
2192
|
};
|
|
2193
2193
|
return {
|
|
2194
|
-
appName:
|
|
2194
|
+
appName: S(() => e.state.app.appName),
|
|
2195
2195
|
// 应用系统名称
|
|
2196
|
-
tagsBarIsEnabled:
|
|
2196
|
+
tagsBarIsEnabled: S(() => e.state.app.tagsBarIsEnabled),
|
|
2197
2197
|
// 开启多标签栏
|
|
2198
|
-
menuIsCollapse:
|
|
2198
|
+
menuIsCollapse: S(() => e.state.app.menuIsCollapse),
|
|
2199
2199
|
// 展开侧边菜单
|
|
2200
|
-
menuItemActiveStyle:
|
|
2200
|
+
menuItemActiveStyle: S(() => e.state.app.menuItemActiveStyle),
|
|
2201
2201
|
// 菜单选中样式()
|
|
2202
|
-
todoBellEnabled:
|
|
2202
|
+
todoBellEnabled: S(() => e.state.app.todoBellEnabled),
|
|
2203
2203
|
menu: n,
|
|
2204
2204
|
goToRoute: r,
|
|
2205
2205
|
breakpoint: o,
|
|
@@ -2266,7 +2266,7 @@ function za(e, t, n, o, a, r) {
|
|
|
2266
2266
|
const La = /* @__PURE__ */ D(Na, [["render", za]]), ja = X({
|
|
2267
2267
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2268
2268
|
setup() {
|
|
2269
|
-
const e = oe(), t = ae(), { useToken: n } = Qe, { token: o } = n(), a =
|
|
2269
|
+
const e = oe(), t = ae(), { useToken: n } = Qe, { token: o } = n(), a = C("menu"), r = C("pmenu"), i = C("nextMenu"), c = C("breakpoint", B(!1)), d = C("onBreakpoint", () => {
|
|
2270
2270
|
}), f = (g) => {
|
|
2271
2271
|
t.push(g.key);
|
|
2272
2272
|
}, y = (g) => {
|
|
@@ -2274,17 +2274,17 @@ const La = /* @__PURE__ */ D(Na, [["render", za]]), ja = X({
|
|
|
2274
2274
|
};
|
|
2275
2275
|
return {
|
|
2276
2276
|
token: o,
|
|
2277
|
-
appLogo:
|
|
2277
|
+
appLogo: S(() => e.state.app.appLogo),
|
|
2278
2278
|
// 应用系统名称
|
|
2279
|
-
appName:
|
|
2279
|
+
appName: S(() => e.state.app.appName),
|
|
2280
2280
|
// 应用系统名称
|
|
2281
|
-
tagsBarIsEnabled:
|
|
2281
|
+
tagsBarIsEnabled: S(() => e.state.app.tagsBarIsEnabled),
|
|
2282
2282
|
// 开启多标签栏
|
|
2283
|
-
menuIsCollapse:
|
|
2283
|
+
menuIsCollapse: S(() => e.state.app.menuIsCollapse),
|
|
2284
2284
|
// 展开侧边菜单
|
|
2285
|
-
menuItemActiveStyle:
|
|
2285
|
+
menuItemActiveStyle: S(() => e.state.app.menuItemActiveStyle),
|
|
2286
2286
|
// 菜单选中样式()
|
|
2287
|
-
todoBellEnabled:
|
|
2287
|
+
todoBellEnabled: S(() => e.state.app.todoBellEnabled),
|
|
2288
2288
|
menu: a,
|
|
2289
2289
|
pmenu: r,
|
|
2290
2290
|
nextMenu: i,
|
|
@@ -2435,18 +2435,18 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2435
2435
|
}, rr = {
|
|
2436
2436
|
__name: "SidebarAppProLayout",
|
|
2437
2437
|
setup(e) {
|
|
2438
|
-
const t = oe(), n = ae(), { useToken: o } = Qe, { token: a } = o(), r =
|
|
2438
|
+
const t = oe(), n = ae(), { useToken: o } = Qe, { token: a } = o(), r = C("menu"), i = C("pmenu"), c = C("nextMenu"), d = C("breakpoint", B(!1)), f = C("onBreakpoint", () => {
|
|
2439
2439
|
}), y = (w) => {
|
|
2440
2440
|
n.push(w.key);
|
|
2441
2441
|
}, g = (w) => {
|
|
2442
2442
|
i.value = w, c.value = i.value.children, w.children || n.push(w.path);
|
|
2443
|
-
}, h = B(0), b =
|
|
2443
|
+
}, h = B(0), b = S(() => t.state.app.menuIsCollapse);
|
|
2444
2444
|
ce(() => [c?.value], ([w]) => {
|
|
2445
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"));
|
|
2446
2446
|
});
|
|
2447
|
-
const k =
|
|
2448
|
-
|
|
2449
|
-
const A =
|
|
2447
|
+
const k = S(() => t.state.app.appLogo);
|
|
2448
|
+
S(() => t.state.app.appName);
|
|
2449
|
+
const A = S(() => t.state.app.tagsBarIsEnabled), T = S(() => t.state.app.menuItemActiveStyle), O = S(() => t.state.app.todoBellEnabled);
|
|
2450
2450
|
return (w, _) => {
|
|
2451
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");
|
|
2452
2452
|
return p(), v(se, { class: "app-layout sidebar-layout h-100" }, {
|
|
@@ -2572,22 +2572,22 @@ const Za = /* @__PURE__ */ D(ja, [["render", Ja], ["__scopeId", "data-v-08491cb7
|
|
|
2572
2572
|
}, lr = /* @__PURE__ */ D(rr, [["__scopeId", "data-v-8e854fe2"]]), sr = X({
|
|
2573
2573
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2574
2574
|
setup() {
|
|
2575
|
-
const e = oe(), t = ae(), n =
|
|
2575
|
+
const e = oe(), t = ae(), n = C("menu"), o = C("pmenu"), a = C("nextMenu"), r = C("breakpoint", B(!1)), i = C("onBreakpoint", () => {
|
|
2576
2576
|
}), c = (f) => {
|
|
2577
2577
|
t.push(f.key);
|
|
2578
2578
|
}, d = (f) => {
|
|
2579
2579
|
o.value = f, a.value = o.value.children, f.children || t.push(f.path);
|
|
2580
2580
|
};
|
|
2581
2581
|
return {
|
|
2582
|
-
appName:
|
|
2582
|
+
appName: S(() => e.state.app.appName),
|
|
2583
2583
|
// 应用系统名称
|
|
2584
|
-
tagsBarIsEnabled:
|
|
2584
|
+
tagsBarIsEnabled: S(() => e.state.app.tagsBarIsEnabled),
|
|
2585
2585
|
// 开启多标签栏
|
|
2586
|
-
menuIsCollapse:
|
|
2586
|
+
menuIsCollapse: S(() => e.state.app.menuIsCollapse),
|
|
2587
2587
|
// 展开侧边菜单
|
|
2588
|
-
menuItemActiveStyle:
|
|
2588
|
+
menuItemActiveStyle: S(() => e.state.app.menuItemActiveStyle),
|
|
2589
2589
|
// 菜单选中样式()
|
|
2590
|
-
todoBellEnabled:
|
|
2590
|
+
todoBellEnabled: S(() => e.state.app.todoBellEnabled),
|
|
2591
2591
|
menu: n,
|
|
2592
2592
|
pmenu: o,
|
|
2593
2593
|
nextMenu: a,
|
|
@@ -2714,22 +2714,22 @@ function hr(e, t, n, o, a, r) {
|
|
|
2714
2714
|
const yr = /* @__PURE__ */ D(sr, [["render", hr], ["__scopeId", "data-v-49f819ff"]]), vr = X({
|
|
2715
2715
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2716
2716
|
setup() {
|
|
2717
|
-
const e = oe(), t = ae(), n =
|
|
2717
|
+
const e = oe(), t = ae(), n = C("menu"), o = C("pmenu"), a = C("nextMenu"), r = C("breakpoint", B(!1)), i = C("onBreakpoint", () => {
|
|
2718
2718
|
}), c = (f) => {
|
|
2719
2719
|
t.push(f.key);
|
|
2720
2720
|
}, d = (f) => {
|
|
2721
2721
|
o.value = f, a.value = o.value.children, f.children || t.push(f.path);
|
|
2722
2722
|
};
|
|
2723
2723
|
return {
|
|
2724
|
-
appName:
|
|
2724
|
+
appName: S(() => e.state.app.appName),
|
|
2725
2725
|
// 应用系统名称
|
|
2726
|
-
tagsBarIsEnabled:
|
|
2726
|
+
tagsBarIsEnabled: S(() => e.state.app.tagsBarIsEnabled),
|
|
2727
2727
|
// 开启多标签栏
|
|
2728
|
-
menuIsCollapse:
|
|
2728
|
+
menuIsCollapse: S(() => e.state.app.menuIsCollapse),
|
|
2729
2729
|
// 展开侧边菜单
|
|
2730
|
-
menuItemActiveStyle:
|
|
2730
|
+
menuItemActiveStyle: S(() => e.state.app.menuItemActiveStyle),
|
|
2731
2731
|
// 菜单选中样式()
|
|
2732
|
-
todoBellEnabled:
|
|
2732
|
+
todoBellEnabled: S(() => e.state.app.todoBellEnabled),
|
|
2733
2733
|
menu: n,
|
|
2734
2734
|
pmenu: o,
|
|
2735
2735
|
nextMenu: a,
|
|
@@ -2837,25 +2837,25 @@ function Er(e, t, n, o, a, r) {
|
|
|
2837
2837
|
const xr = /* @__PURE__ */ D(vr, [["render", Er], ["__scopeId", "data-v-3115387b"]]), Ir = X({
|
|
2838
2838
|
components: { Breadcrumb: xe, TabTags: Ee, NavMenu: he, UserBar: Ce, MobileHeader: Ie, WorkflowTodoBell: $e },
|
|
2839
2839
|
setup() {
|
|
2840
|
-
const e = oe(), t = ae(), { useToken: n } = Qe, { token: o } = n(), a =
|
|
2840
|
+
const e = oe(), t = ae(), { useToken: n } = Qe, { token: o } = n(), a = C("menu"), r = C("pmenu"), i = C("nextMenu"), c = C("breakpoint", B(!1)), d = C("onBreakpoint", () => {
|
|
2841
2841
|
}), f = (T) => {
|
|
2842
2842
|
t.push(T.key);
|
|
2843
2843
|
}, y = (T) => {
|
|
2844
2844
|
r.value = T, i.value = r?.value?.children, T.children || t.push(T.path);
|
|
2845
|
-
}, g =
|
|
2845
|
+
}, g = C("pmenu2", B()), h = C("nextMenu2", B()), b = (T) => {
|
|
2846
2846
|
g.value = T, h.value = g?.value?.children, T.children || t.push(T.path);
|
|
2847
|
-
}, k = B(0), A =
|
|
2847
|
+
}, k = B(0), A = S(() => e.state.app.menuIsCollapse);
|
|
2848
2848
|
return ce(() => [i?.value, h?.value], ([T, O]) => {
|
|
2849
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"));
|
|
2850
2850
|
}), {
|
|
2851
2851
|
token: o,
|
|
2852
|
-
appName:
|
|
2852
|
+
appName: S(() => e.state.app.appName),
|
|
2853
2853
|
// 应用系统名称
|
|
2854
|
-
tagsBarIsEnabled:
|
|
2854
|
+
tagsBarIsEnabled: S(() => e.state.app.tagsBarIsEnabled),
|
|
2855
2855
|
// 开启多标签栏
|
|
2856
2856
|
menuIsCollapse: A,
|
|
2857
2857
|
// 展开侧边菜单
|
|
2858
|
-
menuItemActiveStyle:
|
|
2858
|
+
menuItemActiveStyle: S(() => e.state.app.menuItemActiveStyle),
|
|
2859
2859
|
// 菜单选中样式()
|
|
2860
2860
|
menu: a,
|
|
2861
2861
|
pmenu: r,
|
|
@@ -2868,7 +2868,7 @@ const xr = /* @__PURE__ */ D(vr, [["render", Er], ["__scopeId", "data-v-3115387b
|
|
|
2868
2868
|
pmenu2: g,
|
|
2869
2869
|
nextMenu2: h,
|
|
2870
2870
|
refreshSubMenu2: b,
|
|
2871
|
-
todoBellEnabled:
|
|
2871
|
+
todoBellEnabled: S(() => e.state.app.todoBellEnabled)
|
|
2872
2872
|
};
|
|
2873
2873
|
}
|
|
2874
2874
|
}), $r = { class: "d-flex justify-content-between" }, Mr = { class: "ps-2 pe-1 fw-bold font1-25" }, Tr = { class: "d-flex justify-content-end flex-fill h-100" }, Or = { class: "nav" }, Rr = ["onClick"], Nr = { class: "d-flex justify-content-between" }, Ar = { class: "d-flex justify-content-start flex-fill h-100" }, Pr = { class: "nav" }, zr = ["onClick"], Lr = { class: "h-100 d-flex flex-column border-end" }, jr = {
|
|
@@ -2996,9 +2996,9 @@ function Ur(e, t, n, o, a, r) {
|
|
|
2996
2996
|
const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73"]]), Kr = {
|
|
2997
2997
|
__name: "MobileBar",
|
|
2998
2998
|
setup(e) {
|
|
2999
|
-
const t =
|
|
3000
|
-
|
|
3001
|
-
const r =
|
|
2999
|
+
const t = C("$API"), n = oe(), o = ae(), a = S(() => n.state.app.auth);
|
|
3000
|
+
S(() => n.state.auth.userInfo), S(() => n.state.app.appLayoutType), S(() => n.state.app.casServerLoginUrl);
|
|
3001
|
+
const r = S(() => n.state.app.casServerLogoutUrl), i = Te(t.auth.logout), { run: c } = je((y) => i[i.method](y), {
|
|
3002
3002
|
manual: !0,
|
|
3003
3003
|
onSuccess: (y) => {
|
|
3004
3004
|
a.value === "CAS" && (window.location.href = r.value);
|
|
@@ -3072,7 +3072,7 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3072
3072
|
F("pmenu2", i), F("nextMenu2", c);
|
|
3073
3073
|
const d = Vt(e, "routerDepth");
|
|
3074
3074
|
F("routerDepth", d);
|
|
3075
|
-
const f =
|
|
3075
|
+
const f = S(() => t.state.auth.appMenus || []);
|
|
3076
3076
|
o.value = f.value || [], ce(f, (w) => {
|
|
3077
3077
|
Array.isArray(w) && w.length > 0 && (o.value = w);
|
|
3078
3078
|
}, { immediate: !0 }), Me(() => {
|
|
@@ -3081,7 +3081,7 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3081
3081
|
}), _n((w) => {
|
|
3082
3082
|
a.value = w.matched[d.value], r.value = a?.value?.children;
|
|
3083
3083
|
});
|
|
3084
|
-
const y =
|
|
3084
|
+
const y = C("spinningApp", B(!1)), g = () => {
|
|
3085
3085
|
var w = _t(
|
|
3086
3086
|
o.value,
|
|
3087
3087
|
(E) => E.name == n.currentRoute.value.name
|
|
@@ -3092,15 +3092,15 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3092
3092
|
var _ = kt(o.value);
|
|
3093
3093
|
n.push(_.path);
|
|
3094
3094
|
}
|
|
3095
|
-
}, h =
|
|
3095
|
+
}, h = C("breakpoint", B(!1));
|
|
3096
3096
|
F("breakpoint", h);
|
|
3097
|
-
const b =
|
|
3097
|
+
const b = C("simulator", B("xxxl"));
|
|
3098
3098
|
F("onBreakpoint", (w) => {
|
|
3099
3099
|
["xs", "sm", "md", "emu-mobile", "emu-tablet"].includes(b.value) ? h.value = !0 : h.value = w;
|
|
3100
3100
|
});
|
|
3101
3101
|
const A = B();
|
|
3102
3102
|
F("menuDrawerRef", A);
|
|
3103
|
-
const T =
|
|
3103
|
+
const T = C("refreshAppMenu", B(!1)), O = () => {
|
|
3104
3104
|
y.value = !1;
|
|
3105
3105
|
};
|
|
3106
3106
|
return ce(T, (w) => {
|
|
@@ -3113,9 +3113,9 @@ const Wr = /* @__PURE__ */ D(Ir, [["render", Ur], ["__scopeId", "data-v-610c8d73
|
|
|
3113
3113
|
}), {
|
|
3114
3114
|
menu: o,
|
|
3115
3115
|
//layout: "classic", // [ classic, default, dock, sideBar, headerLeft, headerRight ]
|
|
3116
|
-
appName:
|
|
3116
|
+
appName: S(() => t.state.app.appName),
|
|
3117
3117
|
// 系统名称
|
|
3118
|
-
appLayoutType:
|
|
3118
|
+
appLayoutType: S(() => t.state.app.appLayoutType)
|
|
3119
3119
|
// 应用布局
|
|
3120
3120
|
};
|
|
3121
3121
|
}
|
|
@@ -3219,21 +3219,21 @@ function un(e, t, n, o, a) {
|
|
|
3219
3219
|
}
|
|
3220
3220
|
function Yr(e, t, n, o, a, r) {
|
|
3221
3221
|
for (let i = 0, c = e.length; i < c; i++)
|
|
3222
|
-
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));
|
|
3223
3223
|
}
|
|
3224
3224
|
function qr(e, t, n, o, a, r, i) {
|
|
3225
3225
|
const c = [];
|
|
3226
3226
|
switch (c.value = sn(e, i), Yr(c.value, t, n, o, a, r), t) {
|
|
3227
3227
|
case 1:
|
|
3228
|
-
|
|
3228
|
+
o[0].children = o[0].children.concat(c.value);
|
|
3229
3229
|
break;
|
|
3230
3230
|
case 2:
|
|
3231
|
-
|
|
3231
|
+
o[0].children[0].children = o[0].children[0].children.concat(c.value);
|
|
3232
3232
|
break;
|
|
3233
3233
|
default:
|
|
3234
3234
|
console.log("其他情况");
|
|
3235
3235
|
}
|
|
3236
|
-
ln(
|
|
3236
|
+
ln(o);
|
|
3237
3237
|
}
|
|
3238
3238
|
const cn = (e = []) => {
|
|
3239
3239
|
for (const t of e)
|
|
@@ -3244,10 +3244,11 @@ const cn = (e = []) => {
|
|
|
3244
3244
|
return t.path;
|
|
3245
3245
|
return null;
|
|
3246
3246
|
};
|
|
3247
|
-
function Ss(e, t, n, o, a, r, i, c, d
|
|
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);
|
|
3251
3252
|
const g = decodeURIComponent(t.query.redirect || e.path);
|
|
3252
3253
|
if (e.path == "/") {
|
|
3253
3254
|
const h = cn(y);
|
|
@@ -3318,7 +3319,7 @@ const Es = /* @__PURE__ */ D(ol, [["render", rl], ["__scopeId", "data-v-923dc621
|
|
|
3318
3319
|
setup() {
|
|
3319
3320
|
const e = oe();
|
|
3320
3321
|
return {
|
|
3321
|
-
keepLiveRoute:
|
|
3322
|
+
keepLiveRoute: S(() => e.state.keepAlive.keepLiveRoute)
|
|
3322
3323
|
};
|
|
3323
3324
|
}
|
|
3324
3325
|
});
|
|
@@ -3423,9 +3424,9 @@ function fl(e, t) {
|
|
|
3423
3424
|
const xs = /* @__PURE__ */ D(dl, [["render", fl]]), Is = {
|
|
3424
3425
|
__name: "noaccess",
|
|
3425
3426
|
setup(e) {
|
|
3426
|
-
const t =
|
|
3427
|
-
|
|
3428
|
-
const r =
|
|
3427
|
+
const t = C("$API"), n = oe(), o = ae(), a = S(() => n.state.app.auth);
|
|
3428
|
+
S(() => n.state.auth.userInfo), S(() => n.state.app.appLayoutType), S(() => n.state.app.casServerLoginUrl);
|
|
3429
|
+
const r = S(() => n.state.app.casServerLogoutUrl), i = Te(t.auth.logout), { run: c } = je((g) => i[i.method](g), {
|
|
3429
3430
|
manual: !0,
|
|
3430
3431
|
onSuccess: (g) => {
|
|
3431
3432
|
a.value === "CAS" && (window.location.href = r.value);
|
|
@@ -3436,7 +3437,7 @@ const xs = /* @__PURE__ */ D(dl, [["render", fl]]), Is = {
|
|
|
3436
3437
|
}
|
|
3437
3438
|
}), d = () => {
|
|
3438
3439
|
o.push({ path: "/" });
|
|
3439
|
-
}, f =
|
|
3440
|
+
}, f = S(() => n.state.app.supportPhone), y = S(() => n.state.app.supportEmail);
|
|
3440
3441
|
return (g, h) => {
|
|
3441
3442
|
const b = l("a-button"), k = l("a-space"), A = l("a-result");
|
|
3442
3443
|
return p(), v(A, {
|
|
@@ -3517,7 +3518,7 @@ const xs = /* @__PURE__ */ D(dl, [["render", fl]]), Is = {
|
|
|
3517
3518
|
console.error(`Field: ${r.name}, Errors: ${r.errors.join(", ")}`);
|
|
3518
3519
|
});
|
|
3519
3520
|
});
|
|
3520
|
-
const n =
|
|
3521
|
+
const n = S(() => t.value && t.value.errorFields ? !1 : !!t.value), o = S(() => t.value && t.value.response && t.value.response.status || "Error"), a = S(() => t.value && t.value.response && t.value.response.data?.error || { message: "Unknown error" });
|
|
3521
3522
|
return {
|
|
3522
3523
|
error: t,
|
|
3523
3524
|
hasError: n,
|
|
@@ -3639,7 +3640,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3639
3640
|
}),
|
|
3640
3641
|
emits: ["update:selectedKeys", "update:openKeys"],
|
|
3641
3642
|
setup(e) {
|
|
3642
|
-
const t = e, n = ot(e, "selectedKeys"), o = ot(e, "openKeys"), a =
|
|
3643
|
+
const t = e, n = ot(e, "selectedKeys"), o = ot(e, "openKeys"), a = S(() => {
|
|
3643
3644
|
const r = [], i = (c = []) => {
|
|
3644
3645
|
for (const d of c)
|
|
3645
3646
|
r.push(d.key), d.children && d.children.length && i(d.children);
|
|
@@ -3811,7 +3812,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3811
3812
|
}),
|
|
3812
3813
|
emits: ["update:current"],
|
|
3813
3814
|
setup(e) {
|
|
3814
|
-
const t = e, n = ot(e, "current"), o =
|
|
3815
|
+
const t = e, n = ot(e, "current"), o = S(
|
|
3815
3816
|
() => t.position === "left" || t.position === "right" ? "vertical" : "horizontal"
|
|
3816
3817
|
);
|
|
3817
3818
|
return (a, r) => {
|
|
@@ -3931,8 +3932,8 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3931
3932
|
}
|
|
3932
3933
|
},
|
|
3933
3934
|
setup(e, { expose: t }) {
|
|
3934
|
-
const n = e, { selectedKeysName: o, autoExpandParent: a } = ke(n), r = B([]), i =
|
|
3935
|
-
}), g =
|
|
3935
|
+
const n = e, { selectedKeysName: o, autoExpandParent: a } = ke(n), r = B([]), i = C("checkedKeys", B([])), c = C(o.value, B([])), d = C("expandedKeys", B([])), f = B(a.value), y = C("onCheck", (x) => {
|
|
3936
|
+
}), g = C("onSelect", (x) => {
|
|
3936
3937
|
}), h = (x) => {
|
|
3937
3938
|
d.value = x, f.value = !1;
|
|
3938
3939
|
}, b = (x) => {
|
|
@@ -3947,7 +3948,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3947
3948
|
});
|
|
3948
3949
|
};
|
|
3949
3950
|
return W(x, "", 1), P;
|
|
3950
|
-
}, k =
|
|
3951
|
+
}, k = C("ondrop", (x, P, W, J, H) => {
|
|
3951
3952
|
}), A = (x) => {
|
|
3952
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) => {
|
|
3953
3954
|
N.forEach((Oe, Je) => {
|
|
@@ -3990,13 +3991,13 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
3990
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);
|
|
3991
3992
|
}
|
|
3992
3993
|
return W;
|
|
3993
|
-
}, _ =
|
|
3994
|
+
}, _ = C("isTreeSearchEnabled", B(!1)), E = B();
|
|
3994
3995
|
ce(E, (x) => {
|
|
3995
3996
|
O(r.value, "key", (W) => W[n.fieldNames.title]);
|
|
3996
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);
|
|
3997
3998
|
d.value = P, E.value = x, f.value = !0;
|
|
3998
3999
|
});
|
|
3999
|
-
const z =
|
|
4000
|
+
const z = C("isTreeExpandAll", B(!1));
|
|
4000
4001
|
ce(() => z.value, (x) => {
|
|
4001
4002
|
O(r.value, "key", (J) => J[n.fieldNames.title]);
|
|
4002
4003
|
const P = B("02200059");
|
|
@@ -4004,9 +4005,9 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4004
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);
|
|
4005
4006
|
d.value = W, f.value = !0;
|
|
4006
4007
|
});
|
|
4007
|
-
const R =
|
|
4008
|
+
const R = C("onSuccess", (x, P) => {
|
|
4008
4009
|
x.value = P.data, f.value && (d.value = x.value.map((W) => W[n.fieldNames.key]));
|
|
4009
|
-
}), j =
|
|
4010
|
+
}), j = C("state", {}), Q = C("apiObj", B({})), { method: K } = { ...Q }, { run: Y, loading: ee, current: te, pageSize: se, total: re, error: ue } = ct(
|
|
4010
4011
|
(x) => Q[K]({ ...x, ...Q.params }),
|
|
4011
4012
|
{
|
|
4012
4013
|
refreshDeps: [Q],
|
|
@@ -4192,9 +4193,9 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4192
4193
|
itemLayout: { type: String, default: "none" }
|
|
4193
4194
|
},
|
|
4194
4195
|
setup(e, { expose: t }) {
|
|
4195
|
-
const n = e, o = B([]), { loadMore: a } = ke(n), r =
|
|
4196
|
+
const n = e, o = B([]), { loadMore: a } = ke(n), r = C("onSuccess", (K, Y) => {
|
|
4196
4197
|
K.value = a.value ? K.value.concat(Y.data) : Y.data;
|
|
4197
|
-
}), i =
|
|
4198
|
+
}), i = C("state", {}), c = C("apiObj", B({})), { method: d } = { ...c }, { run: f, loading: y, current: g, pageSize: h, total: b, error: k } = ct(
|
|
4198
4199
|
(K) => c[d]({ ...K, ...c.params, ...i }),
|
|
4199
4200
|
{
|
|
4200
4201
|
refreshDeps: [c],
|
|
@@ -4407,7 +4408,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4407
4408
|
}
|
|
4408
4409
|
},
|
|
4409
4410
|
setup(e, { expose: t }) {
|
|
4410
|
-
const n = e, { size: o, columns: a, expandRowByClick: r, showHeader: i } = ke(n), c = B([]), d =
|
|
4411
|
+
const n = e, { size: o, columns: a, expandRowByClick: r, showHeader: i } = ke(n), c = B([]), d = C(
|
|
4411
4412
|
"apiObj",
|
|
4412
4413
|
Te({
|
|
4413
4414
|
method: "post",
|
|
@@ -4430,13 +4431,13 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4430
4431
|
x && _(c, x);
|
|
4431
4432
|
}
|
|
4432
4433
|
}
|
|
4433
|
-
), T =
|
|
4434
|
+
), T = C("state", {}), O = () => {
|
|
4434
4435
|
y({ current: h.value, pageSize: b.value, ...T });
|
|
4435
4436
|
}, w = () => {
|
|
4436
4437
|
y({ current: h.value, pageSize: b.value, ...T });
|
|
4437
|
-
}, _ =
|
|
4438
|
+
}, _ = C("onSuccess", (x, P) => {
|
|
4438
4439
|
x.value = P.data, z.value = rn(x.value, "key");
|
|
4439
|
-
}), E =
|
|
4440
|
+
}), E = C("defaultExpandedRowKeys", null), z = C("expandedRowKeys", B([])), R = C("rowSelection", null), j = C("rowClick", () => {
|
|
4440
4441
|
}), Q = (x) => ({
|
|
4441
4442
|
onClick: (P) => {
|
|
4442
4443
|
j(P, x);
|
|
@@ -4681,7 +4682,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4681
4682
|
ce(() => a.value, (R) => {
|
|
4682
4683
|
k.value = be(R), O();
|
|
4683
4684
|
});
|
|
4684
|
-
const A =
|
|
4685
|
+
const A = S(() => r.value.filter((R) => R.sfxs != "0").map((R) => ({
|
|
4685
4686
|
label: R[a.fieldNames.label],
|
|
4686
4687
|
value: R[a.fieldNames.value],
|
|
4687
4688
|
disabled: R.sfky == "0",
|
|
@@ -4786,7 +4787,7 @@ const Sl = /* @__PURE__ */ D(kl, [["render", wl]]), Cl = { class: "d-flex h-100"
|
|
|
4786
4787
|
}
|
|
4787
4788
|
},
|
|
4788
4789
|
setup(e) {
|
|
4789
|
-
const t = Vt(e, "list"), n = B({}), o =
|
|
4790
|
+
const t = Vt(e, "list"), n = B({}), o = C("draggableListSelectedItem", () => {
|
|
4790
4791
|
});
|
|
4791
4792
|
return {
|
|
4792
4793
|
selectItem: n,
|
|
@@ -4910,7 +4911,7 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4910
4911
|
},
|
|
4911
4912
|
emits: ["update:mobileVisible"],
|
|
4912
4913
|
setup(e, { emit: t }) {
|
|
4913
|
-
const n = e, o = t, a =
|
|
4914
|
+
const n = e, o = t, a = C("breakpoint", B(!1)), r = gn(), i = B(0);
|
|
4914
4915
|
nt(() => {
|
|
4915
4916
|
const b = r.default?.() || [];
|
|
4916
4917
|
i.value = b.length;
|
|
@@ -4923,10 +4924,10 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
4923
4924
|
}), Ft(() => {
|
|
4924
4925
|
window.removeEventListener("resize", d);
|
|
4925
4926
|
});
|
|
4926
|
-
const f =
|
|
4927
|
+
const f = S(() => {
|
|
4927
4928
|
const b = c.value;
|
|
4928
4929
|
return b < 576 || b < 768 || b < 992 ? 0 : b < 1200 ? 1 : b < 1600 ? 2 : n.maxInline;
|
|
4929
|
-
}), y =
|
|
4930
|
+
}), y = S(() => (r.default?.() || []).slice(0, f.value)), g = S(() => (r.default?.() || []).slice(f.value));
|
|
4930
4931
|
function h(b) {
|
|
4931
4932
|
const k = b.props?.placeholder;
|
|
4932
4933
|
return Array.isArray(k) ? k.filter(Boolean).join(" - ") : k || "未知名称";
|
|
@@ -5065,7 +5066,7 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
5065
5066
|
}
|
|
5066
5067
|
},
|
|
5067
5068
|
setup(e) {
|
|
5068
|
-
const t =
|
|
5069
|
+
const t = C("breakpoint", B(!1));
|
|
5069
5070
|
return (n, o) => {
|
|
5070
5071
|
const a = l("a-space");
|
|
5071
5072
|
return p(), M(V, null, [
|
|
@@ -5141,7 +5142,7 @@ const ts = /* @__PURE__ */ D(ql, [["render", es]]), ns = { class: "color-selecto
|
|
|
5141
5142
|
}
|
|
5142
5143
|
},
|
|
5143
5144
|
setup(e) {
|
|
5144
|
-
const t =
|
|
5145
|
+
const t = C("run"), n = C("state", B({})), o = C("total"), a = C("loading"), r = C("current"), i = C("pageSize"), c = C("simple"), d = C("showSizeChanger"), f = C("showQuickJumper"), y = C("breakpoint", B(!1));
|
|
5145
5146
|
return (g, h) => {
|
|
5146
5147
|
const b = l("a-pagination"), k = l("a-icon"), A = l("a-button"), T = l("a-space");
|
|
5147
5148
|
return p(), M(V, null, [
|