@skyfox2000/webui 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/webui.es.js CHANGED
@@ -1,133 +1,461 @@
1
- import { u as ve, c as Xe, P as te, o as ie, a as Ze, b as Pe, d as Ee, r as oe, e as et, f as tt, g as Fe, h as at, i as A, l as Ne, j as Re, k as V, m as ke, n as lt, p as rt, O as Oe, q as Me, _ as st, s as ot, t as nt, v as it, w as ct, x as ut, y as Be, z as dt, A as X } from "./assets/modules/pinia-8iujwf8y.js";
2
- import { a6 as bl, K as xl, L as yl, R as kl, a5 as wl, a3 as Cl, a4 as Sl, a7 as $l, U as Tl, N as Il, a1 as Dl, Z as Pl, J as El, G as Fl, a0 as Nl, Q as Rl, B as Ol, W as Ml, $ as Bl, a2 as Al, I as zl, H as Ll, M as Ul, a9 as Yl, a8 as Vl, Y as Kl, aa as Hl, T as jl, V as Ql, S as ql, ab as Wl, C as Gl, D as Jl, ac as Xl, F as Zl, ad as er, E as tr, X as ar } from "./assets/modules/pinia-8iujwf8y.js";
3
- import { _ as B } from "./assets/modules/index-CRKPVlgC.js";
4
- import { _ as L } from "./assets/modules/toolIcon-Cwggvppx.js";
5
- import { a as rr } from "./assets/modules/toolIcon-Cwggvppx.js";
6
- import { _ as Q } from "./assets/modules/menuTabs-D2OgHmBc.js";
7
- import { a as or, c as nr, d as ir, e as cr, I as ur, f as dr, g as pr, b as fr } from "./assets/modules/menuTabs-D2OgHmBc.js";
8
- import { defineComponent as w, createBlock as _, openBlock as m, withModifiers as Z, unref as l, useAttrs as J, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as F, renderSlot as E, normalizeStyle as me, toDisplayString as D, createCommentVNode as k, ref as b, provide as Ae, watch as $, onMounted as z, createTextVNode as N, inject as he, resolveDirective as ae, withDirectives as j, computed as G, createElementBlock as C, normalizeClass as M, createSlots as ze, useSlots as pt, Fragment as O, renderList as U, resolveDynamicComponent as ft, onUnmounted as Le, onActivated as vt, withKeys as we } from "vue";
9
- import { Popover as mt, theme as Ue, Drawer as ht, Space as ee, Form as Ye, message as gt, FormItem as Ve, ConfigProvider as Ce, Popconfirm as _t, Button as Ke, DropdownButton as bt, Menu as ge, MenuItem as _e, Dropdown as de, Checkbox as xt, Switch as yt, Table as He, Tree as kt, Cascader as wt, DatePicker as Ct, Input as pe, InputPassword as St, InputNumber as $t, RangePicker as Tt, Textarea as It, Transfer as Dt, TreeSelect as Pt, LayoutContent as Et } from "ant-design-vue";
10
- import { SERVER_HOST as Ft, fieldMapping as re, FrontCache as le, httpPost as je, ResStatus as Qe } from "@skyfox2000/fapi";
11
- import { VueDraggableNext as Nt } from "vue-draggable-next";
1
+ import { u as Xe, i as X, a as ve, c as Ze, P as te, o as ie, b as et, d as Pe, e as Ee, r as oe, f as tt, g as at, h as Fe, j as lt, k as A, l as Ne, m as Re, n as V, p as ke, q as rt, s as st, O as Oe, t as Me, _ as ot, v as nt, w as it, x as ct, y as ut, z as dt, A as Be } from "./assets/modules/index-C4515EtU.js";
2
+ import { a7 as bl, L as xl, M as yl, S as kl, a6 as wl, a4 as Cl, a5 as Sl, a8 as $l, V as Tl, Q as Il, a2 as Dl, $ as Pl, K as El, H as Fl, a1 as Nl, R as Rl, C as Ol, X as Ml, a0 as Bl, a3 as Al, J as zl, I as Ll, N as Ul, a9 as Yl, B as Vl, Z as Kl, aa as Hl, U as jl, W as Ql, T as ql, ab as Wl, D as Gl, E as Jl, ac as Xl, G as Zl, ad as er, F as tr, Y as ar } from "./assets/modules/index-C4515EtU.js";
3
+ import { A as rr, U as sr, a as or, g as nr, c as ir, d as cr, m as ur, p as dr, u as pr, b as fr } from "./assets/modules/file-upload-CoDWKNFQ.js";
4
+ import { EnvConfig as we } from "@skyfox2000/microbase";
5
+ import { FrontCache as le, httpPost as Ae, ResStatus as ze, SERVER_HOST as pt, fieldMapping as re } from "@skyfox2000/fapi";
12
6
  import ne from "vue-m-message";
13
- import fe from "dayjs";
14
- import { EnvConfig as Se } from "@skyfox2000/microbase";
7
+ import { defineComponent as w, createBlock as _, openBlock as m, withModifiers as Z, unref as l, useAttrs as J, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as F, renderSlot as E, normalizeStyle as me, toDisplayString as P, createCommentVNode as k, ref as b, provide as Le, watch as $, onMounted as z, createTextVNode as N, inject as he, resolveDirective as ae, withDirectives as j, computed as G, createElementBlock as C, normalizeClass as M, createSlots as Ue, useSlots as ft, Fragment as O, renderList as L, resolveDynamicComponent as vt, onUnmounted as Ye, onActivated as mt, withKeys as Ce } from "vue";
15
8
  import "async-validator";
16
- import { _ as mr } from "./assets/modules/index-XIk9IJH2.js";
17
- import { d as qe } from "./assets/modules/download-D6JcG5ZR.js";
18
- import { _ as gr, a as _r } from "./assets/modules/download-D6JcG5ZR.js";
19
- import { A as xr, U as yr, a as kr, g as wr, c as Cr, d as Sr, m as $r, p as Tr, u as Ir, b as Dr } from "./assets/modules/file-upload-D5dPRmq8.js";
20
- import { c as Er, p as Fr, v as Nr } from "./assets/modules/form-excel-DITF2FoK.js";
21
- const Va = /* @__PURE__ */ w({
22
- __name: "fullscreen",
23
- setup(r) {
24
- const a = ve();
25
- return (t, e) => (m(), _(L, {
26
- onClick: Z(l(We), ["stop"]),
27
- icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
28
- class: "w-[17px] h-[17px]"
29
- }, null, 8, ["onClick", "icon"]));
9
+ import de from "dayjs";
10
+ import { Popover as ht, theme as Ve, Drawer as gt, Space as ee, Form as Ke, message as _t, FormItem as He, ConfigProvider as Se, Popconfirm as bt, Button as je, DropdownButton as xt, Menu as ge, MenuItem as _e, Dropdown as pe, Checkbox as yt, Switch as kt, Table as Qe, Tree as wt, Cascader as Ct, DatePicker as St, Input as fe, InputPassword as $t, InputNumber as Tt, RangePicker as It, Textarea as Dt, Transfer as Pt, TreeSelect as Et, LayoutContent as Ft } from "ant-design-vue";
11
+ import { VueDraggableNext as Nt } from "vue-draggable-next";
12
+ import { d as qe } from "./assets/modules/uploadList-BdeV2JlK.js";
13
+ import { _ as mr, a as hr } from "./assets/modules/uploadList-BdeV2JlK.js";
14
+ import { c as _r, p as br, v as xr } from "./assets/modules/form-excel-DitXm4uj.js";
15
+ import { _ as B } from "./assets/modules/index-DG2jNBuv.js";
16
+ import { _ as U } from "./assets/modules/toolIcon-B5Qojob9.js";
17
+ import { a as kr } from "./assets/modules/toolIcon-B5Qojob9.js";
18
+ import { _ as Q } from "./assets/modules/menuTabs-BwX6S1WN.js";
19
+ import { a as Cr, c as Sr, d as $r, e as Tr, I as Ir, f as Dr, g as Pr, b as Er } from "./assets/modules/menuTabs-BwX6S1WN.js";
20
+ import { _ as Nr } from "./assets/modules/index-B5NckHoK.js";
21
+ const $e = (r, a, t, e = "remove") => {
22
+ if (!t)
23
+ if (e === "disable") {
24
+ const o = a.component;
25
+ o ? o.props.disabled = !0 : (a.el, r.setAttribute("disabled", "disabled"), r.disabled = !0), r.classList.add("disabled");
26
+ } else {
27
+ const o = document.createComment("No Permission"), n = r.parentNode;
28
+ if (n) {
29
+ const p = a.component;
30
+ p ? p.props.style = { display: "none" } : n.replaceChild(o, r);
31
+ }
32
+ }
33
+ }, Te = (r) => {
34
+ const a = Xe(), { url: t, role: e, permit: o } = r, n = t;
35
+ if (we.VITE_PERMISSION_MODE === "role")
36
+ return !X(e) && e !== void 0 ? a.hasRole(e) : !0;
37
+ if (we.VITE_PERMISSION_MODE === "permit") {
38
+ let p = !1, u = !1;
39
+ return !X(e) && e !== void 0 && (p = a.hasRole(e)), !X(o) && typeof o == "string" && (u = a.hasPermit(n, o)), X(e) && X(o) ? !0 : p || u;
30
40
  }
31
- }), Rt = { class: "ml-2" }, Ot = /* @__PURE__ */ w({
32
- inheritAttrs: !1,
33
- __name: "helper",
34
- props: {
35
- text: {},
36
- maxWidth: {}
41
+ return !1;
42
+ }, Rt = {
43
+ mounted(r, a, t) {
44
+ const e = a.value || {}, o = a.arg || "remove", n = e.behavior || o, p = Te(e);
45
+ $e(r, t, p, n);
37
46
  },
38
- setup(r) {
39
- const a = J();
40
- return (t, e) => (m(), _(l(mt), { placement: "topRight" }, {
41
- content: h(() => [
42
- E(t.$slots, "default", {}, () => [
43
- T("div", {
44
- class: "text-[14px]",
45
- style: me({ maxWidth: t.maxWidth })
46
- }, D(t.text), 5)
47
- ])
48
- ]),
49
- default: h(() => [
50
- T("span", Rt, [
51
- y(L, F({
52
- icon: "icon-question-circle",
53
- class: "text-[#888] w-4 h-4"
54
- }, l(a)), null, 16)
55
- ])
56
- ]),
57
- _: 3
58
- }));
47
+ updated(r, a, t) {
48
+ const e = a.value || {}, o = a.arg || "remove", n = e.behavior || o, p = Te(e);
49
+ $e(r, t, p, n);
59
50
  }
60
- }), Ka = /* @__PURE__ */ w({
61
- __name: "layoutIcon",
62
- props: {
63
- icon: {
64
- type: String
65
- },
66
- icons: {
67
- type: Array
68
- }
51
+ }, Ot = {
52
+ mounted: (r, a) => {
53
+ r.addEventListener("keydown", (t) => {
54
+ t.key === "Enter" && a.value();
55
+ });
69
56
  },
70
- setup(r) {
71
- const a = r, e = Xe({
72
- iconUrl: `${Ft.MICROLAYOUT_ICONS}`,
73
- monoColor: !0,
74
- icon: a.icon,
75
- icons: a.icons
57
+ unmounted: (r) => {
58
+ r.removeEventListener("keydown", () => {
76
59
  });
77
- return (o, n) => r.icon || r.icons ? (m(), _(l(e), F({
78
- key: 0,
79
- icon: r.icon,
80
- icons: r.icons,
81
- class: ["align-middle"]
82
- }, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
83
60
  }
84
- }), Mt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Ha = /* @__PURE__ */ w({
85
- __name: "index",
86
- props: {
87
- saveText: {},
88
- saveAsText: {},
89
- cancelText: {},
90
- editorCtrl: {}
61
+ }, ce = {
62
+ auth: Rt,
63
+ submit: Ot
64
+ }, Va = (r, a) => ((a || Object.keys(ce)).forEach((e) => {
65
+ e in ce && r.directive(e, ce[e]);
66
+ }), r), K = (r, a) => {
67
+ const t = r.find((e) => e.key === a);
68
+ if (t)
69
+ return t;
70
+ for (const e of r)
71
+ if (e.children) {
72
+ const o = K(e.children, a);
73
+ if (o)
74
+ return o;
75
+ }
76
+ }, be = (r, a, t) => {
77
+ const e = [], o = [];
78
+ return t || (t = [...r]), t.length && t.forEach((n, p) => {
79
+ let u;
80
+ if (typeof n == "string") {
81
+ const i = K(r, n);
82
+ u = i ? { ...i } : { key: n, label: n };
83
+ } else {
84
+ const i = K(r, n.key);
85
+ u = i ? { ...i, ...n } : { ...n };
86
+ }
87
+ u.click || (u.click = (i, c, d) => {
88
+ c && (c.rowData.value = d), u.formVisible ? (u.formVisible.value = !1, setTimeout(() => {
89
+ u.formVisible.value = !0;
90
+ }, 1)) : ne.warning("未配置点击处理事件!");
91
+ }), a === 0 || p < a ? e.push(u) : o.push(u);
92
+ }), { buttons: e, menus: o };
93
+ }, H = (r, a) => r.disabled && typeof r.disabled == "function" ? r.disabled(a) : r.disabled, W = (r, a) => r.visible && typeof r.visible == "function" ? r.visible(a) : r.visible ?? !0, Mt = (r, a) => {
94
+ a.reload.value = !0;
95
+ }, Bt = (r, a) => {
96
+ a.searchBar.value = !a.searchBar.value;
97
+ }, At = (r, a) => {
98
+ switch (a.tableSize.value) {
99
+ case "large":
100
+ a.tableSize.value = "middle";
101
+ break;
102
+ case "middle":
103
+ a.tableSize.value = "small";
104
+ break;
105
+ case "small":
106
+ a.tableSize.value = "large";
107
+ break;
108
+ }
109
+ }, zt = (r, a) => {
110
+ a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
111
+ }, Lt = (r, a) => {
112
+ a.rowExpand.value = !a.rowExpand.value;
113
+ }, Ie = (r, a) => {
114
+ a.selectable.value = !a.selectable.value;
115
+ }, Y = (r, a, t, e, o) => {
116
+ (!r.confirm || o) && r.click && (a ? r.click(a, t, e) : r.click(null, t, e)), Yt(r);
117
+ }, Ut = (r, a) => {
118
+ a.selectable.value = !a.selectable.value;
119
+ }, We = () => {
120
+ const r = ve();
121
+ r.setFullscreen(!r.fullscreen);
122
+ }, Yt = (r, a) => {
123
+ (r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
124
+ }, Vt = (r, a) => {
125
+ a ? delete r.visible : r.visible = !1;
126
+ }, De = [
127
+ {
128
+ key: "Reload",
129
+ label: "刷新表格",
130
+ icon: "icon-reload",
131
+ click: Mt
91
132
  },
92
- setup(r) {
93
- const { useToken: a } = Ue, { token: t } = a(), e = b(!1), n = r.editorCtrl;
94
- Ae(te.EditorControl, n), $(
95
- () => n.visible.value,
96
- (u) => {
97
- e.value = u ?? !1;
133
+ {
134
+ key: "Query",
135
+ label: "展开搜索栏",
136
+ labels: ["展开搜索栏", "折叠搜索栏"],
137
+ icon: "icon-search",
138
+ iconStatus: 0,
139
+ click: Bt
140
+ },
141
+ {
142
+ key: "RowHeight",
143
+ label: "行高调整",
144
+ icon: "icon-row-height",
145
+ click: At
146
+ },
147
+ {
148
+ key: "tool.multiple.checkbox",
149
+ label: "显示多选框",
150
+ labels: ["显示多选框", "隐藏多选框"],
151
+ icon: "icon-checkbox",
152
+ click: zt
153
+ },
154
+ {
155
+ key: "tool.expand.rows",
156
+ label: "展开记录行",
157
+ labels: ["展开记录行", "折叠记录行"],
158
+ icon: "icon-row-collapse",
159
+ iconStatus: 0,
160
+ icons: ["icon-row-collapse", "icon-row-expand"],
161
+ click: Lt
162
+ },
163
+ {
164
+ key: "tool.export.excel",
165
+ label: "导出Excel",
166
+ icon: "icon-export-excel",
167
+ children: [
168
+ {
169
+ key: "tool.export.excel.all",
170
+ label: "全部记录",
171
+ click: Ie
172
+ },
173
+ {
174
+ key: "tool.export.excel.selected",
175
+ label: "选中的记录",
176
+ click: Ie
98
177
  }
99
- ), z(() => {
100
- e.value = n.visible.value ?? !1;
101
- });
102
- const p = () => {
103
- ie(n);
178
+ ]
179
+ },
180
+ {
181
+ key: "tool.export.pdf",
182
+ label: "导出PDF",
183
+ icon: "icon-export-pdf",
184
+ children: [
185
+ {
186
+ key: "tool.export.pdf.selected",
187
+ label: "选中的记录",
188
+ click: Ut
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ key: "TableHeadset",
194
+ label: "表头设置",
195
+ icon: "icon-headset",
196
+ dropdown: "headset",
197
+ click: () => {
198
+ }
199
+ // 不设置点击事件
200
+ },
201
+ {
202
+ key: "Fullscreen",
203
+ label: "设置全屏",
204
+ labels: ["设置全屏", "取消全屏"],
205
+ icon: "icon-fullscreen",
206
+ iconStatus: 0,
207
+ icons: ["icon-fullscreen", "icon-exitscreen"],
208
+ click: We
209
+ }
210
+ ], Kt = (r) => {
211
+ if (!r.tools || r.tools.length > 0) {
212
+ const a = [];
213
+ return r.tools ? a.push(...r.tools) : a.push(...De), { tools: be(De, 0, a).buttons };
214
+ }
215
+ return {
216
+ tools: []
217
+ };
218
+ };
219
+ var Ht = /* @__PURE__ */ ((r) => (r.SYS_CONFIG = "SYS_CONFIG_", r.APP_MENU = "APP_MENU_", r.DICT_TYPE = "DICT_TYPE_", r.HOST_INFO = "HOST_INFO_", r.APP_PERMITS = "APP_PERMITS_", r.USER_SETTINGS = "USER_SETTINGS_", r.DICT_DATA = "DICT_DATA_", r.COMMON_OPTIONS = "COMMON_OPTIONS_", r))(Ht || {});
220
+ class Ge {
221
+ /**
222
+ * 设置缓存数据(带服务器时间)
223
+ */
224
+ static setWithServerTime(a, t, e) {
225
+ const o = {
226
+ data: t,
227
+ lastTime: e
104
228
  };
105
- return (u, i) => (m(), _(l(ht), {
106
- open: e.value,
107
- "onUpdate:open": i[4] || (i[4] = (c) => e.value = c),
108
- "get-container": !1,
109
- closable: !1,
110
- "header-style": {
111
- height: "40px",
112
- padding: "10px 6px 10px 16px",
113
- backgroundColor: l(t).colorBgLayout
114
- },
115
- "body-style": {
116
- padding: "10px 16px"
117
- },
118
- "footer-style": {
119
- textAlign: "right"
120
- },
121
- style: {
122
- position: "absolute",
123
- boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
124
- },
125
- width: "420px",
126
- onClose: p
127
- }, {
128
- extra: h(() => [
129
- T("div", Mt, [
130
- y(l(L), {
229
+ le.set({ key: a, storage: "local" }, o);
230
+ }
231
+ /**
232
+ * 设置缓存数据
233
+ */
234
+ static setData(a, t) {
235
+ le.set({ key: a, storage: "local" }, t);
236
+ }
237
+ /**
238
+ * 获取缓存数据
239
+ */
240
+ static getData(a) {
241
+ const t = le.get({ key: a, storage: "local" });
242
+ return t && Ge.isTimedData(t) ? t.data : t ?? null;
243
+ }
244
+ /**
245
+ * 清除缓存
246
+ */
247
+ static remove(a) {
248
+ le.remove({ key: a, storage: "local" });
249
+ }
250
+ /**
251
+ * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
252
+ */
253
+ static clearByPrefix(a) {
254
+ for (let t = 0; t < localStorage.length; t++) {
255
+ const e = localStorage.key(t);
256
+ e && e.startsWith("frontCache::" + a) && localStorage.removeItem(e);
257
+ }
258
+ }
259
+ /**
260
+ * 清理所有缓存
261
+ */
262
+ static clearAll() {
263
+ for (let a = localStorage.length - 1; a >= 0; a--) {
264
+ const t = localStorage.key(a);
265
+ t && t.startsWith("frontCache::") && localStorage.removeItem(t);
266
+ }
267
+ }
268
+ /**
269
+ * 判断是否是带时间戳的数据
270
+ */
271
+ static isTimedData(a) {
272
+ return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
273
+ }
274
+ }
275
+ async function Ka() {
276
+ try {
277
+ const r = await Ae(
278
+ {
279
+ api: "PLATFORM_API",
280
+ url: "/api/SysCacheSvr/getLastTime",
281
+ loadingText: !1
282
+ },
283
+ {}
284
+ );
285
+ if ((r == null ? void 0 : r.status) === ze.SUCCESS) {
286
+ const a = r.data;
287
+ Object.keys(a).forEach((t) => {
288
+ const e = a[t];
289
+ ["local", "session"].forEach((n) => {
290
+ const p = n === "local" ? localStorage : sessionStorage;
291
+ for (let u = 0; u < p.length; u++) {
292
+ const i = p.key(u);
293
+ if (i && i.endsWith(t))
294
+ try {
295
+ const c = JSON.parse(p.getItem(i));
296
+ c && typeof c == "object" && "lastTime" in c && typeof c.lastTime == "number" && c.lastTime !== e && p.removeItem(i);
297
+ } catch {
298
+ continue;
299
+ }
300
+ }
301
+ });
302
+ });
303
+ }
304
+ } catch (r) {
305
+ console.error("检查缓存更新失败", r);
306
+ }
307
+ }
308
+ const Ha = async (r, a, t) => {
309
+ try {
310
+ const o = (await import("@json2csv/plainjs")).Parser, n = Je(r), p = a.filter((v) => v.visible !== !1 && v.export !== !1), u = p.map((v) => ({
311
+ label: v.title,
312
+ value: v.dataIndex || v.key || ""
313
+ })), i = t.map((v) => {
314
+ const f = { ...v };
315
+ return p.forEach((g) => {
316
+ const S = g.dataIndex || g.key;
317
+ S && g.customRender && (f[S] = g.customRender(v[S], v));
318
+ }), f;
319
+ }), d = new o({ fields: u }).parse(i), s = new Blob([`\uFEFF${d}`], { type: "text/csv" });
320
+ qe(s, n);
321
+ } catch (e) {
322
+ console.error("导出失败:", e), ne.error("文件导出失败,请稍后重试");
323
+ }
324
+ }, Je = (r) => {
325
+ const a = /\{([^}]+)\}/g;
326
+ return r.replace(a, (t, e) => de().format(e));
327
+ }, ja = async (r, a, t, e) => {
328
+ try {
329
+ const n = (await import("@json2csv/plainjs")).Parser, p = Je(r), u = a.filter((s) => s.visible !== !1), i = u.map((s) => ({
330
+ label: s.title,
331
+ value: s.dataIndex || s.key || ""
332
+ }));
333
+ let c = t.page, d = t.gridQuery;
334
+ return e.api || (e.api = c.api), e.authorize === void 0 && (e.authorize = c.authorize), t.isGridLoading.value = !0, Ae(e, d).then((s) => {
335
+ if (t.isGridLoading.value = !1, (s == null ? void 0 : s.status) === ze.SUCCESS && s.data) {
336
+ const f = s.data.map((D) => {
337
+ const x = { ...D };
338
+ return u.forEach((R) => {
339
+ const q = R.dataIndex || R.key;
340
+ q && R.customRender && (x[q] = R.customRender(D[q], D));
341
+ }), x;
342
+ }), S = new n({ fields: i }).parse(f), I = new Blob([`\uFEFF${S}`], { type: "text/csv" });
343
+ qe(I, p);
344
+ }
345
+ });
346
+ } catch (o) {
347
+ console.error("导出失败:", o), ne.error("文件导出失败,请稍后重试");
348
+ }
349
+ }, Qa = /* @__PURE__ */ w({
350
+ __name: "fullscreen",
351
+ setup(r) {
352
+ const a = ve();
353
+ return (t, e) => (m(), _(U, {
354
+ onClick: Z(l(We), ["stop"]),
355
+ icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
356
+ class: "w-[17px] h-[17px]"
357
+ }, null, 8, ["onClick", "icon"]));
358
+ }
359
+ }), jt = { class: "ml-2" }, Qt = /* @__PURE__ */ w({
360
+ inheritAttrs: !1,
361
+ __name: "helper",
362
+ props: {
363
+ text: {},
364
+ maxWidth: {}
365
+ },
366
+ setup(r) {
367
+ const a = J();
368
+ return (t, e) => (m(), _(l(ht), { placement: "topRight" }, {
369
+ content: h(() => [
370
+ E(t.$slots, "default", {}, () => [
371
+ T("div", {
372
+ class: "text-[14px]",
373
+ style: me({ maxWidth: t.maxWidth })
374
+ }, P(t.text), 5)
375
+ ])
376
+ ]),
377
+ default: h(() => [
378
+ T("span", jt, [
379
+ y(U, F({
380
+ icon: "icon-question-circle",
381
+ class: "text-[#888] w-4 h-4"
382
+ }, l(a)), null, 16)
383
+ ])
384
+ ]),
385
+ _: 3
386
+ }));
387
+ }
388
+ }), qa = /* @__PURE__ */ w({
389
+ __name: "layoutIcon",
390
+ props: {
391
+ icon: {
392
+ type: String
393
+ },
394
+ icons: {
395
+ type: Array
396
+ }
397
+ },
398
+ setup(r) {
399
+ const a = r, e = Ze({
400
+ iconUrl: `${pt.MICROLAYOUT_ICONS}`,
401
+ monoColor: !0,
402
+ icon: a.icon,
403
+ icons: a.icons
404
+ });
405
+ return (o, n) => r.icon || r.icons ? (m(), _(l(e), F({
406
+ key: 0,
407
+ icon: r.icon,
408
+ icons: r.icons,
409
+ class: ["align-middle"]
410
+ }, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
411
+ }
412
+ }), qt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Wa = /* @__PURE__ */ w({
413
+ __name: "index",
414
+ props: {
415
+ saveText: {},
416
+ saveAsText: {},
417
+ cancelText: {},
418
+ editorCtrl: {}
419
+ },
420
+ setup(r) {
421
+ const { useToken: a } = Ve, { token: t } = a(), e = b(!1), n = r.editorCtrl;
422
+ Le(te.EditorControl, n), $(
423
+ () => n.visible.value,
424
+ (u) => {
425
+ e.value = u ?? !1;
426
+ }
427
+ ), z(() => {
428
+ e.value = n.visible.value ?? !1;
429
+ });
430
+ const p = () => {
431
+ ie(n);
432
+ };
433
+ return (u, i) => (m(), _(l(gt), {
434
+ open: e.value,
435
+ "onUpdate:open": i[4] || (i[4] = (c) => e.value = c),
436
+ "get-container": !1,
437
+ closable: !1,
438
+ "header-style": {
439
+ height: "40px",
440
+ padding: "10px 6px 10px 16px",
441
+ backgroundColor: l(t).colorBgLayout
442
+ },
443
+ "body-style": {
444
+ padding: "10px 16px"
445
+ },
446
+ "footer-style": {
447
+ textAlign: "right"
448
+ },
449
+ style: {
450
+ position: "absolute",
451
+ boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
452
+ },
453
+ width: "420px",
454
+ onClose: p
455
+ }, {
456
+ extra: h(() => [
457
+ T("div", qt, [
458
+ y(l(U), {
131
459
  class: "top-[-2px] left-[2px] w-6 h-6",
132
460
  icon: "icon-new",
133
461
  angle: 45,
@@ -150,18 +478,18 @@ const Va = /* @__PURE__ */ w({
150
478
  onClick: i[1] || (i[1] = () => l(ie)(l(n)))
151
479
  }, {
152
480
  default: h(() => [
153
- N(D(u.cancelText ?? "取消"), 1)
481
+ N(P(u.cancelText ?? "取消"), 1)
154
482
  ]),
155
483
  _: 1
156
484
  })) : k("", !0),
157
485
  u.saveAsText !== "" && l(n).saveAsBtnVisible !== !1 ? (m(), _(l(B), {
158
486
  key: 1,
159
- onClick: i[2] || (i[2] = () => l(Ze)(l(n))),
487
+ onClick: i[2] || (i[2] = () => l(et)(l(n))),
160
488
  type: "primary",
161
489
  loading: l(n).isFormSaving.value
162
490
  }, {
163
491
  default: h(() => [
164
- N(D(u.saveAsText ?? "另存为"), 1)
492
+ N(P(u.saveAsText ?? "另存为"), 1)
165
493
  ]),
166
494
  _: 1
167
495
  }, 8, ["loading"])) : k("", !0),
@@ -172,7 +500,7 @@ const Va = /* @__PURE__ */ w({
172
500
  loading: l(n).isFormSaving.value
173
501
  }, {
174
502
  default: h(() => [
175
- N(D(u.saveText ?? "保存"), 1)
503
+ N(P(u.saveText ?? "保存"), 1)
176
504
  ]),
177
505
  _: 1
178
506
  }, 8, ["loading"])) : k("", !0)
@@ -183,7 +511,7 @@ const Va = /* @__PURE__ */ w({
183
511
  _: 3
184
512
  }, 8, ["open", "header-style"]));
185
513
  }
186
- }), ja = /* @__PURE__ */ w({
514
+ }), Ga = /* @__PURE__ */ w({
187
515
  __name: "index",
188
516
  props: {
189
517
  labelWidth: {},
@@ -194,7 +522,7 @@ const Va = /* @__PURE__ */ w({
194
522
  const a = r, t = a.editorCtrl ?? he(te.EditorControl, void 0);
195
523
  return (e, o) => {
196
524
  const n = ae("submit");
197
- return j((m(), _(l(Ye), {
525
+ return j((m(), _(l(Ke), {
198
526
  "label-col": { flex: a.labelWidth ?? "85px" },
199
527
  "wrapper-col": {
200
528
  flex: a.wrapperWidth ?? "1"
@@ -218,10 +546,10 @@ const Va = /* @__PURE__ */ w({
218
546
  ]);
219
547
  };
220
548
  }
221
- }), Bt = { class: "w-full flex items-center" }, At = { class: "flex-grow" }, zt = { class: "w-8 mt-[-2px]" }, Lt = {
549
+ }), Wt = { class: "w-full flex items-center" }, Gt = { class: "flex-grow" }, Jt = { class: "w-8 mt-[-2px]" }, Xt = {
222
550
  key: 1,
223
551
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
224
- }, Qa = /* @__PURE__ */ w({
552
+ }, Ja = /* @__PURE__ */ w({
225
553
  inheritAttrs: !1,
226
554
  __name: "formItem",
227
555
  props: {
@@ -245,12 +573,12 @@ const Va = /* @__PURE__ */ w({
245
573
  if (!a.rule)
246
574
  return !1;
247
575
  const i = p(a.rule.split("."), (c = e == null ? void 0 : e.formRules) == null ? void 0 : c.value);
248
- return i ? i.required ?? !0 : (gt.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
576
+ return i ? i.required ?? !0 : (_t.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
249
577
  });
250
578
  return (i, c) => (m(), C("div", {
251
579
  class: M(["w-full relative mb-1", i.width])
252
580
  }, [
253
- n.value ? (m(), _(l(Ve), F({
581
+ n.value ? (m(), _(l(He), F({
254
582
  key: 0,
255
583
  required: u.value,
256
584
  class: "!w-[95%] relative"
@@ -260,16 +588,16 @@ const Va = /* @__PURE__ */ w({
260
588
  label: h(() => [
261
589
  T("span", {
262
590
  class: M([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
263
- }, D(i.label), 3)
591
+ }, P(i.label), 3)
264
592
  ]),
265
593
  default: h(() => [
266
- T("div", Bt, [
267
- T("div", At, [
594
+ T("div", Wt, [
595
+ T("div", Gt, [
268
596
  E(i.$slots, "default")
269
597
  ]),
270
- T("div", zt, [
598
+ T("div", Jt, [
271
599
  E(i.$slots, "helper", {}, () => [
272
- i.helper ? (m(), _(l(Ot), {
600
+ i.helper ? (m(), _(l(Qt), {
273
601
  key: 0,
274
602
  text: i.helper
275
603
  }, null, 8, ["text"])) : k("", !0)
@@ -279,13 +607,13 @@ const Va = /* @__PURE__ */ w({
279
607
  ]),
280
608
  _: 3
281
609
  }, 16, ["required", "class"])) : k("", !0),
282
- l(o).errClass ? (m(), C("span", Lt, D(l(o).msg), 1)) : k("", !0)
610
+ l(o).errClass ? (m(), C("span", Xt, P(l(o).msg), 1)) : k("", !0)
283
611
  ], 2));
284
612
  }
285
- }), Ut = { class: "w-1/3 relative mb-1" }, Yt = { class: "flex items-center" }, Vt = { class: "flex-grow pl-1" }, Kt = {
613
+ }), Zt = { class: "w-1/3 relative mb-1" }, ea = { class: "flex items-center" }, ta = { class: "flex-grow pl-1" }, aa = {
286
614
  key: 0,
287
615
  class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
288
- }, ce = /* @__PURE__ */ w({
616
+ }, ue = /* @__PURE__ */ w({
289
617
  inheritAttrs: !1,
290
618
  __name: "searchItem",
291
619
  props: {
@@ -295,17 +623,17 @@ const Va = /* @__PURE__ */ w({
295
623
  },
296
624
  setup(r) {
297
625
  const a = r, t = J(), e = he(te.EditorControl, void 0), o = Ee(a, e);
298
- return (n, p) => (m(), C("div", Ut, [
299
- y(l(Ve), F({
626
+ return (n, p) => (m(), C("div", Zt, [
627
+ y(l(He), F({
300
628
  required: n.rule !== void 0,
301
629
  class: "w-[90%] relative"
302
630
  }, l(t), {
303
631
  class: [n.rule ? "" : "mb-3", n.width],
304
632
  labelCol: { span: 6 }
305
- }), ze({
633
+ }), Ue({
306
634
  default: h(() => [
307
- T("div", Yt, [
308
- T("div", Vt, [
635
+ T("div", ea, [
636
+ T("div", ta, [
309
637
  E(n.$slots, "default")
310
638
  ])
311
639
  ])
@@ -317,15 +645,15 @@ const Va = /* @__PURE__ */ w({
317
645
  fn: h(() => [
318
646
  T("span", {
319
647
  class: M([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
320
- }, D(n.label), 3)
648
+ }, P(n.label), 3)
321
649
  ]),
322
650
  key: "0"
323
651
  } : void 0
324
652
  ]), 1040, ["required", "class"]),
325
- l(o).msg ? (m(), C("span", Kt, D(l(o).msg), 1)) : k("", !0)
653
+ l(o).msg ? (m(), C("span", aa, P(l(o).msg), 1)) : k("", !0)
326
654
  ]));
327
655
  }
328
- }), qa = /* @__PURE__ */ w({
656
+ }), Xa = /* @__PURE__ */ w({
329
657
  __name: "index",
330
658
  props: {
331
659
  search: {},
@@ -339,7 +667,7 @@ const Va = /* @__PURE__ */ w({
339
667
  for (let S = 0; S < f.length; S++)
340
668
  typeof f[S].type == "object" && g++;
341
669
  return g;
342
- }, i = pt(), c = () => {
670
+ }, i = ft(), c = () => {
343
671
  n.value = 0, p.value = 0, i.default && (n.value = u(i.default({}))), t.gridCtrl.searchBar && i.control && (p.value = u(i.control({}))), o.value = 2 - (n.value + p.value) % 3;
344
672
  };
345
673
  $(
@@ -382,7 +710,7 @@ const Va = /* @__PURE__ */ w({
382
710
  };
383
711
  return (f, g) => {
384
712
  const S = ae("submit");
385
- return n.value + p.value > 0 ? j((m(), _(l(Ye), {
713
+ return n.value + p.value > 0 ? j((m(), _(l(Ke), {
386
714
  key: 0,
387
715
  "label-col": { flex: "60px" },
388
716
  style: {
@@ -394,15 +722,15 @@ const Va = /* @__PURE__ */ w({
394
722
  default: h(() => [
395
723
  E(f.$slots, "default"),
396
724
  f.gridCtrl.searchBar ? E(f.$slots, "control", { key: 0 }) : k("", !0),
397
- o.value >= 1 ? (m(), _(ce, {
725
+ o.value >= 1 ? (m(), _(ue, {
398
726
  key: 1,
399
727
  class: "w-1/3"
400
728
  })) : k("", !0),
401
- o.value >= 2 ? (m(), _(ce, {
729
+ o.value >= 2 ? (m(), _(ue, {
402
730
  key: 2,
403
731
  class: "w-1/3"
404
732
  })) : k("", !0),
405
- n.value || f.gridCtrl.searchBar ? (m(), _(ce, {
733
+ n.value || f.gridCtrl.searchBar ? (m(), _(ue, {
406
734
  key: 3,
407
735
  class: "w-1/3 flex justify-end text-right pr-5",
408
736
  "wrapper-col": { flex: "auto" }
@@ -444,7 +772,7 @@ const Va = /* @__PURE__ */ w({
444
772
  ]) : k("", !0);
445
773
  };
446
774
  }
447
- }), Ht = /* @__PURE__ */ w({
775
+ }), la = /* @__PURE__ */ w({
448
776
  __name: "tableOperate",
449
777
  props: {
450
778
  record: {},
@@ -459,7 +787,7 @@ const Va = /* @__PURE__ */ w({
459
787
  visible: !0,
460
788
  role: ["Super", "Admin"],
461
789
  permit: ":edit",
462
- click: () => et(t, a.record)
790
+ click: () => tt(t, a.record)
463
791
  },
464
792
  {
465
793
  key: "Delete",
@@ -471,9 +799,9 @@ const Va = /* @__PURE__ */ w({
471
799
  permit: ":delete",
472
800
  confirm: !0,
473
801
  confirmText: "是否删除此记录?",
474
- click: () => tt(t, a.record)
802
+ click: () => at(t, a.record)
475
803
  }
476
- ], { buttons: n, menus: p } = xe(o, 0, t.operates), u = (i) => {
804
+ ], { buttons: n, menus: p } = be(o, 0, t.operates), u = (i) => {
477
805
  if (typeof i.disabled == "boolean")
478
806
  return i.disabled;
479
807
  if (typeof i.disabled == "function")
@@ -489,7 +817,7 @@ const Va = /* @__PURE__ */ w({
489
817
  };
490
818
  return (i, c) => {
491
819
  const d = ae("auth");
492
- return m(), _(l(Ce), { theme: {
820
+ return m(), _(l(Se), { theme: {
493
821
  token: {
494
822
  fontSize: 13
495
823
  }
@@ -497,10 +825,10 @@ const Va = /* @__PURE__ */ w({
497
825
  default: h(() => [
498
826
  y(l(ee), null, {
499
827
  default: h(() => [
500
- (m(!0), C(O, null, U(l(n), (s) => (m(), C(O, {
828
+ (m(!0), C(O, null, L(l(n), (s) => (m(), C(O, {
501
829
  key: s.key
502
830
  }, [
503
- l(W)(s, a.record) ? (m(), _(l(_t), {
831
+ l(W)(s, a.record) ? (m(), _(l(bt), {
504
832
  key: 0,
505
833
  disabled: u(s) || !s.confirm,
506
834
  cancelText: "否",
@@ -511,7 +839,7 @@ const Va = /* @__PURE__ */ w({
511
839
  onConfirm: (v) => l(Y)(s, l(t).page, l(t), a.record, !0)
512
840
  }, {
513
841
  default: h(() => [
514
- l(W)(s, a.record) ? j((m(), _(l(Ke), {
842
+ l(W)(s, a.record) ? j((m(), _(l(je), {
515
843
  key: s.key,
516
844
  type: s.type ?? "text",
517
845
  danger: s.danger,
@@ -523,7 +851,7 @@ const Va = /* @__PURE__ */ w({
523
851
  })
524
852
  }, {
525
853
  default: h(() => [
526
- N(D(s.label), 1)
854
+ N(P(s.label), 1)
527
855
  ]),
528
856
  _: 2
529
857
  }, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
@@ -533,19 +861,19 @@ const Va = /* @__PURE__ */ w({
533
861
  _: 2
534
862
  }, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
535
863
  ], 64))), 128)),
536
- i.record.Enabled == 1 ? (m(), _(l(Ce), {
864
+ i.record.Enabled == 1 ? (m(), _(l(Se), {
537
865
  key: 0,
538
866
  autoInsertSpaceInButton: !1
539
867
  }, {
540
868
  default: h(() => [
541
- l(p).length > 0 ? (m(), _(l(bt), {
869
+ l(p).length > 0 ? (m(), _(l(xt), {
542
870
  key: 0,
543
871
  size: "small"
544
872
  }, {
545
873
  overlay: h(() => [
546
874
  y(l(ge), null, {
547
875
  default: h(() => [
548
- (m(!0), C(O, null, U(l(p), (s) => (m(), C(O, {
876
+ (m(!0), C(O, null, L(l(p), (s) => (m(), C(O, {
549
877
  key: s.key
550
878
  }, [
551
879
  l(W)(s, a.record) ? j((m(), _(l(_e), {
@@ -554,7 +882,7 @@ const Va = /* @__PURE__ */ w({
554
882
  onClick: (v) => l(Y)(s, l(t).page, l(t), a.record)
555
883
  }, {
556
884
  default: h(() => [
557
- N(D(s.label), 1)
885
+ N(P(s.label), 1)
558
886
  ]),
559
887
  _: 2
560
888
  }, 1032, ["disabled", "onClick"])), [
@@ -582,13 +910,13 @@ const Va = /* @__PURE__ */ w({
582
910
  });
583
911
  };
584
912
  }
585
- }), jt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Qt = /* @__PURE__ */ w({
913
+ }), ra = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, sa = /* @__PURE__ */ w({
586
914
  __name: "icontool",
587
915
  props: {
588
916
  gridCtrl: {}
589
917
  },
590
918
  setup(r) {
591
- const a = r, t = a.gridCtrl, { tools: e } = Ia(a.gridCtrl), o = ve();
919
+ const a = r, t = a.gridCtrl, { tools: e } = Kt(a.gridCtrl), o = ve();
592
920
  $(
593
921
  () => t.selectable.value,
594
922
  (u) => {
@@ -606,11 +934,11 @@ const Va = /* @__PURE__ */ w({
606
934
  const p = () => {
607
935
  t.columns.value.splice(0, t.columns.value.length, ...n.value), o.setTableColumns(oe.currentRoute.value.path, t.columns.value);
608
936
  };
609
- return (u, i) => (m(), C("div", jt, [
610
- (m(!0), C(O, null, U(l(e), (c, d) => (m(), C(O, {
937
+ return (u, i) => (m(), C("div", ra, [
938
+ (m(!0), C(O, null, L(l(e), (c, d) => (m(), C(O, {
611
939
  key: c.key
612
940
  }, [
613
- l(W)(c) && c.dropdown ? (m(), _(l(de), {
941
+ l(W)(c) && c.dropdown ? (m(), _(l(pe), {
614
942
  key: 0,
615
943
  placement: "bottomRight",
616
944
  class: "p-0 rounded-none"
@@ -628,25 +956,25 @@ const Va = /* @__PURE__ */ w({
628
956
  handle: ".drag-handle"
629
957
  }, {
630
958
  default: h(() => [
631
- (m(!0), C(O, null, U(n.value, (s) => (m(), C("div", {
959
+ (m(!0), C(O, null, L(n.value, (s) => (m(), C("div", {
632
960
  key: s.name,
633
961
  onClick: i[0] || (i[0] = Z(() => {
634
962
  }, ["stop"])),
635
963
  class: "flex items-center mb-2 last:mb-0 select-none"
636
964
  }, [
637
965
  i[2] || (i[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
638
- y(l(xt), {
966
+ y(l(yt), {
639
967
  checked: s.visible !== !1,
640
968
  onChange: Z(
641
969
  (v) => {
642
- l(Ta)(s, v.target.checked);
970
+ l(Vt)(s, v.target.checked);
643
971
  },
644
972
  ["stop", "prevent"]
645
973
  ),
646
974
  class: "text-gray-700 hover:text-gray-900 select-none"
647
975
  }, {
648
976
  default: h(() => [
649
- N(D(s.title), 1)
977
+ N(P(s.title), 1)
650
978
  ]),
651
979
  _: 2
652
980
  }, 1032, ["checked", "onChange"])
@@ -668,7 +996,7 @@ const Va = /* @__PURE__ */ w({
668
996
  onClick: (s) => l(Y)(c, l(t).page, l(t))
669
997
  }, {
670
998
  default: h(() => [
671
- y(l(L), {
999
+ y(l(U), {
672
1000
  icon: c.icon,
673
1001
  class: "w-[18px] h-[18.5px]",
674
1002
  clickable: ""
@@ -690,14 +1018,14 @@ const Va = /* @__PURE__ */ w({
690
1018
  onClick: (s) => l(Y)(c, l(t).page, l(t))
691
1019
  }, {
692
1020
  default: h(() => [
693
- y(l(L), {
1021
+ y(l(U), {
694
1022
  icon: c.icon,
695
1023
  class: "w-[18px] h-[18.5px]",
696
1024
  clickable: ""
697
1025
  }, null, 8, ["icon"])
698
1026
  ]),
699
1027
  _: 2
700
- }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(W)(c) ? (m(), _(l(de), {
1028
+ }, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(W)(c) ? (m(), _(l(pe), {
701
1029
  key: 2,
702
1030
  placement: "bottomRight",
703
1031
  class: "p-0 rounded-none"
@@ -705,12 +1033,12 @@ const Va = /* @__PURE__ */ w({
705
1033
  overlay: h(() => [
706
1034
  y(l(ge), null, {
707
1035
  default: h(() => [
708
- (m(!0), C(O, null, U(c.children, (s) => (m(), _(l(_e), {
1036
+ (m(!0), C(O, null, L(c.children, (s) => (m(), _(l(_e), {
709
1037
  key: s.key,
710
1038
  disabled: l(H)(s)
711
1039
  }, {
712
1040
  default: h(() => [
713
- N(D(s.label), 1)
1041
+ N(P(s.label), 1)
714
1042
  ]),
715
1043
  _: 2
716
1044
  }, 1032, ["disabled"]))), 128))
@@ -731,7 +1059,7 @@ const Va = /* @__PURE__ */ w({
731
1059
  onClick: (s) => l(Y)(c, l(t).page, l(t))
732
1060
  }, {
733
1061
  default: h(() => [
734
- y(l(L), {
1062
+ y(l(U), {
735
1063
  icon: "icon-down-arrow",
736
1064
  class: "w-[12px] h-[12px]"
737
1065
  })
@@ -744,7 +1072,7 @@ const Va = /* @__PURE__ */ w({
744
1072
  ], 64))), 128))
745
1073
  ]));
746
1074
  }
747
- }), qt = { class: "flex justify-between mb-[10px]" }, Wt = { key: 1 }, Gt = 3, Jt = /* @__PURE__ */ w({
1075
+ }), oa = { class: "flex justify-between mb-[10px]" }, na = { key: 1 }, ia = 3, ca = /* @__PURE__ */ w({
748
1076
  __name: "index",
749
1077
  props: {
750
1078
  gridCtrl: {},
@@ -761,7 +1089,7 @@ const Va = /* @__PURE__ */ w({
761
1089
  role: ["Super", "Admin"],
762
1090
  permit: ":new",
763
1091
  // 默认仅受权限码控制
764
- click: () => at(o)
1092
+ click: () => lt(o)
765
1093
  }
766
1094
  ], u = b([]), i = b([]);
767
1095
  return $(
@@ -771,9 +1099,9 @@ const Va = /* @__PURE__ */ w({
771
1099
  },
772
1100
  () => {
773
1101
  var s;
774
- const { buttons: c, menus: d } = xe(
1102
+ const { buttons: c, menus: d } = be(
775
1103
  p,
776
- t.flat !== void 0 ? t.flat : Gt,
1104
+ t.flat !== void 0 ? t.flat : ia,
777
1105
  (s = t.buttons) == null ? void 0 : s.value
778
1106
  );
779
1107
  u.value.splice(0, u.value.length, ...c), i.value.splice(0, i.value.length, ...d);
@@ -784,11 +1112,10 @@ const Va = /* @__PURE__ */ w({
784
1112
  }
785
1113
  ), (c, d) => {
786
1114
  const s = ae("auth");
787
- return m(), C("div", qt, [
1115
+ return m(), C("div", oa, [
788
1116
  y(l(ee), null, {
789
1117
  default: h(() => [
790
- N(D(n.value) + " ", 1),
791
- (m(!0), C(O, null, U(u.value, (v) => j((m(), _(l(B), {
1118
+ (m(!0), C(O, null, L(u.value, (v) => j((m(), _(l(B), {
792
1119
  key: v.key,
793
1120
  type: v.type,
794
1121
  danger: v.danger,
@@ -797,23 +1124,23 @@ const Va = /* @__PURE__ */ w({
797
1124
  onClick: (f) => l(Y)(v, l(e), l(t))
798
1125
  }, {
799
1126
  default: h(() => [
800
- N(D(v.label), 1)
1127
+ N(P(v.label), 1)
801
1128
  ]),
802
1129
  _: 2
803
1130
  }, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
804
1131
  [s, { url: n.value, role: v.role, permit: v.permit }]
805
1132
  ])), 128)),
806
- i.value.length > 0 ? (m(), _(l(de), { key: 0 }, {
1133
+ i.value.length > 0 ? (m(), _(l(pe), { key: 0 }, {
807
1134
  overlay: h(() => [
808
1135
  y(l(ge), null, {
809
1136
  default: h(() => [
810
- (m(!0), C(O, null, U(i.value, (v) => j((m(), _(l(_e), {
1137
+ (m(!0), C(O, null, L(i.value, (v) => j((m(), _(l(_e), {
811
1138
  key: v.key,
812
1139
  disabled: l(H)(v),
813
1140
  onClick: (f) => l(Y)(v, l(e), l(t))
814
1141
  }, {
815
1142
  default: h(() => [
816
- N(D(v.label), 1)
1143
+ N(P(v.label), 1)
817
1144
  ]),
818
1145
  _: 2
819
1146
  }, 1032, ["disabled", "onClick"])), [
@@ -834,20 +1161,20 @@ const Va = /* @__PURE__ */ w({
834
1161
  ]),
835
1162
  _: 1
836
1163
  })) : k("", !0),
837
- u.value.length === 0 && i.value.length === 0 ? (m(), C("span", Wt)) : k("", !0)
1164
+ u.value.length === 0 && i.value.length === 0 ? (m(), C("span", na)) : k("", !0)
838
1165
  ]),
839
1166
  _: 1
840
1167
  }),
841
1168
  y(l(ee), { class: "mr-1" }, {
842
1169
  default: h(() => [
843
- (m(), _(ft(Qt), { "grid-ctrl": l(t) }, null, 8, ["grid-ctrl"]))
1170
+ (m(), _(vt(sa), { "grid-ctrl": l(t) }, null, 8, ["grid-ctrl"]))
844
1171
  ]),
845
1172
  _: 1
846
1173
  })
847
1174
  ]);
848
1175
  };
849
1176
  }
850
- }), Xt = /* @__PURE__ */ w({
1177
+ }), ua = /* @__PURE__ */ w({
851
1178
  __name: "index",
852
1179
  props: {
853
1180
  /**
@@ -869,11 +1196,11 @@ const Va = /* @__PURE__ */ w({
869
1196
  return;
870
1197
  }
871
1198
  Ne(!1, t, e);
872
- }), Le(() => {
1199
+ }), Ye(() => {
873
1200
  Re(t);
874
1201
  }), (i, c) => {
875
1202
  var d;
876
- return e.value.length === 2 ? (m(), _(l(yt), F({
1203
+ return e.value.length === 2 ? (m(), _(l(kt), F({
877
1204
  key: 0,
878
1205
  class: [
879
1206
  ((d = l(p)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
@@ -888,7 +1215,7 @@ const Va = /* @__PURE__ */ w({
888
1215
  }, i.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
889
1216
  };
890
1217
  }
891
- }), Wa = /* @__PURE__ */ w({
1218
+ }), Za = /* @__PURE__ */ w({
892
1219
  inheritAttrs: !1,
893
1220
  __name: "index",
894
1221
  props: {
@@ -950,22 +1277,22 @@ const Va = /* @__PURE__ */ w({
950
1277
  { deep: !0, immediate: !0 }
951
1278
  );
952
1279
  const v = b(!1);
953
- return vt(() => {
1280
+ return mt(() => {
954
1281
  v.value && e && (e.reload.value = !0);
955
1282
  }), z(async () => {
956
- Ae(te.GridControl, e), e.tableData.value ? (u.value = e.tableData.value, e.total.value = u.value.length, i.value.total = e.total.value ?? 0) : e.autoload !== !1 && (e.remotePage ? u.value = (await ke(e)).rows : u.value = await lt(e)), setTimeout(() => {
1283
+ Le(te.GridControl, e), e.tableData.value ? (u.value = e.tableData.value, e.total.value = u.value.length, i.value.total = e.total.value ?? 0) : e.autoload !== !1 && (e.remotePage ? u.value = (await ke(e)).rows : u.value = await rt(e)), setTimeout(() => {
957
1284
  v.value = !0;
958
1285
  }, 50);
959
1286
  }), (f, g) => {
960
- var I, P;
1287
+ var I, D;
961
1288
  const S = ae("auth");
962
1289
  return m(), C(O, null, [
963
- (I = l(e).buttons) != null && I.value.length || (P = l(e).tools) != null && P.length ? (m(), _(Jt, {
1290
+ (I = l(e).buttons) != null && I.value.length || (D = l(e).tools) != null && D.length ? (m(), _(ca, {
964
1291
  key: 0,
965
1292
  "grid-ctrl": l(e),
966
1293
  "editor-ctrl": l(e).editor
967
1294
  }, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
968
- v.value ? (m(), _(l(He), F({
1295
+ v.value ? (m(), _(l(Qe), F({
969
1296
  key: 1,
970
1297
  class: "w-full",
971
1298
  "row-key": a.primaryKey ?? l(e).primaryKey ?? "Id",
@@ -985,13 +1312,13 @@ const Va = /* @__PURE__ */ w({
985
1312
  column: x == null ? void 0 : x.column,
986
1313
  record: x == null ? void 0 : x.record
987
1314
  }),
988
- l(e) && ((R = x == null ? void 0 : x.column) == null ? void 0 : R.dataIndex) === "enabled" ? j((m(), _(Xt, {
1315
+ l(e) && ((R = x == null ? void 0 : x.column) == null ? void 0 : R.dataIndex) === "enabled" ? j((m(), _(ua, {
989
1316
  key: 0,
990
1317
  checked: x.record.Enabled,
991
1318
  "onUpdate:checked": (ye) => x.record.Enabled = ye,
992
1319
  disabled: f.statusDisabled ? f.statusDisabled(x.record) : !1,
993
1320
  data: l(Oe).EnableDisable,
994
- onClick: (ye) => l(rt)(l(e), x.record),
1321
+ onClick: (ye) => l(st)(l(e), x.record),
995
1322
  class: M([
996
1323
  "w-[58px]",
997
1324
  f.statusDisabled && f.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
@@ -1004,7 +1331,7 @@ const Va = /* @__PURE__ */ w({
1004
1331
  key: 1,
1005
1332
  record: x == null ? void 0 : x.record
1006
1333
  }, () => [
1007
- y(Ht, {
1334
+ y(la, {
1008
1335
  record: x == null ? void 0 : x.record,
1009
1336
  "grid-ctrl": l(e)
1010
1337
  }, null, 8, ["record", "grid-ctrl"])
@@ -1016,7 +1343,7 @@ const Va = /* @__PURE__ */ w({
1016
1343
  ], 64);
1017
1344
  };
1018
1345
  }
1019
- }), Zt = { class: "flex items-center gap-1" }, ea = { class: "text-nowrap" }, Ga = /* @__PURE__ */ w({
1346
+ }), da = { class: "flex items-center gap-1" }, pa = { class: "text-nowrap" }, el = /* @__PURE__ */ w({
1020
1347
  __name: "index",
1021
1348
  props: {
1022
1349
  treeCtrl: {},
@@ -1058,7 +1385,7 @@ const Va = /* @__PURE__ */ w({
1058
1385
  value: "Id",
1059
1386
  icon: "Icon"
1060
1387
  }), o.data.value ? n.value = re(o.fieldMap, o.data.value) : o.autoload && Me(o);
1061
- }), (d, s) => (m(), _(l(kt), F({
1388
+ }), (d, s) => (m(), _(l(wt), F({
1062
1389
  class: "w-full",
1063
1390
  "show-line": !0,
1064
1391
  "tree-data": n.value,
@@ -1074,22 +1401,22 @@ const Va = /* @__PURE__ */ w({
1074
1401
  key: v,
1075
1402
  icon: g
1076
1403
  }, () => [
1077
- T("div", Zt, [
1078
- y(l(L), { icon: g }, null, 8, ["icon"]),
1079
- T("span", ea, D(f), 1)
1404
+ T("div", da, [
1405
+ y(l(U), { icon: g }, null, 8, ["icon"]),
1406
+ T("span", pa, P(f), 1)
1080
1407
  ])
1081
1408
  ])
1082
1409
  ]),
1083
1410
  _: 3
1084
1411
  }, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
1085
1412
  }
1086
- }), Ja = /* @__PURE__ */ Q(st, [["__scopeId", "data-v-cd4382b7"]]), ta = {
1413
+ }), tl = /* @__PURE__ */ Q(ot, [["__scopeId", "data-v-cd4382b7"]]), fa = {
1087
1414
  key: 0,
1088
1415
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1089
- }, aa = /* @__PURE__ */ w({
1416
+ }, va = /* @__PURE__ */ w({
1090
1417
  inheritAttrs: !1,
1091
1418
  __name: "index",
1092
- props: ot,
1419
+ props: nt,
1093
1420
  emits: ["change", "update:labels", "update:value"],
1094
1421
  setup(r, { emit: a }) {
1095
1422
  var f, g, S;
@@ -1109,15 +1436,15 @@ const Va = /* @__PURE__ */ w({
1109
1436
  );
1110
1437
  const d = a;
1111
1438
  n.inputEmit = d;
1112
- const s = b([]), v = (I, P) => {
1113
- if (!P || P.length === 0) {
1439
+ const s = b([]), v = (I, D) => {
1440
+ if (!D || D.length === 0) {
1114
1441
  d("update:labels", []), d("update:value", []);
1115
1442
  return;
1116
1443
  }
1117
- const x = P.map((R) => R.label);
1444
+ const x = D.map((R) => R.label);
1118
1445
  d("update:labels", x), d(
1119
1446
  "update:value",
1120
- P.map((R) => R.value)
1447
+ D.map((R) => R.value)
1121
1448
  ), u != null && u.value.errClass && p && V(p);
1122
1449
  };
1123
1450
  return z(() => {
@@ -1127,16 +1454,16 @@ const Va = /* @__PURE__ */ w({
1127
1454
  value: "Id",
1128
1455
  key: "Id"
1129
1456
  }), Ne(t.autoload, t, s, n, o.value, o.value.params);
1130
- }), Le(() => {
1457
+ }), Ye(() => {
1131
1458
  Re(t, n);
1132
- }), (I, P) => {
1459
+ }), (I, D) => {
1133
1460
  var x;
1134
1461
  return m(), C("div", null, [
1135
- s.value.length ? k("", !0) : (m(), C("div", ta, [
1136
- y(l(nt), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1137
- P[0] || (P[0] = T("span", null, "数据加载中...", -1))
1462
+ s.value.length ? k("", !0) : (m(), C("div", fa, [
1463
+ y(l(it), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
1464
+ D[0] || (D[0] = T("span", null, "数据加载中...", -1))
1138
1465
  ])),
1139
- y(l(wt), F({
1466
+ y(l(Ct), F({
1140
1467
  options: s.value,
1141
1468
  class: [(x = l(u)) == null ? void 0 : x.errClass],
1142
1469
  "allow-clear": !0,
@@ -1146,7 +1473,7 @@ const Va = /* @__PURE__ */ w({
1146
1473
  ]);
1147
1474
  };
1148
1475
  }
1149
- }), Xa = /* @__PURE__ */ Q(aa, [["__scopeId", "data-v-8517d129"]]), Za = /* @__PURE__ */ Q(it, [["__scopeId", "data-v-602494f4"]]);
1476
+ }), al = /* @__PURE__ */ Q(va, [["__scopeId", "data-v-8517d129"]]), ll = /* @__PURE__ */ Q(ct, [["__scopeId", "data-v-602494f4"]]);
1150
1477
  function se() {
1151
1478
  return se = Object.assign ? Object.assign.bind() : function(r) {
1152
1479
  for (var a = 1; a < arguments.length; a++) {
@@ -1156,7 +1483,7 @@ function se() {
1156
1483
  return r;
1157
1484
  }, se.apply(null, arguments);
1158
1485
  }
1159
- const la = {
1486
+ const ma = {
1160
1487
  locale: "zh_CN",
1161
1488
  today: "今天",
1162
1489
  now: "此刻",
@@ -1183,10 +1510,10 @@ const la = {
1183
1510
  nextDecade: "下一年代",
1184
1511
  previousCentury: "上一世纪",
1185
1512
  nextCentury: "下一世纪"
1186
- }, ra = {
1513
+ }, ha = {
1187
1514
  placeholder: "请选择时间",
1188
1515
  rangePlaceholder: ["开始时间", "结束时间"]
1189
- }, be = {
1516
+ }, xe = {
1190
1517
  lang: se({
1191
1518
  placeholder: "请选择日期",
1192
1519
  yearPlaceholder: "请选择年份",
@@ -1198,11 +1525,11 @@ const la = {
1198
1525
  rangeMonthPlaceholder: ["开始月份", "结束月份"],
1199
1526
  rangeQuarterPlaceholder: ["开始季度", "结束季度"],
1200
1527
  rangeWeekPlaceholder: ["开始周", "结束周"]
1201
- }, la),
1202
- timePickerLocale: se({}, ra)
1528
+ }, ma),
1529
+ timePickerLocale: se({}, ha)
1203
1530
  };
1204
- be.lang.ok = "确定";
1205
- const el = /* @__PURE__ */ w({
1531
+ xe.lang.ok = "确定";
1532
+ const rl = /* @__PURE__ */ w({
1206
1533
  __name: "index",
1207
1534
  props: {
1208
1535
  valueFormat: {}
@@ -1213,16 +1540,16 @@ const el = /* @__PURE__ */ w({
1213
1540
  }, p = b(a.valueFormat ?? "YYYY-MM-DD");
1214
1541
  return (u, i) => {
1215
1542
  var c;
1216
- return m(), _(l(Ct), {
1543
+ return m(), _(l(St), {
1217
1544
  class: M([[((c = l(o)) == null ? void 0 : c.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
1218
1545
  placeholder: "请选择" + l(e),
1219
- locale: l(be),
1546
+ locale: l(xe),
1220
1547
  valueFormat: p.value,
1221
1548
  onBlur: n
1222
1549
  }, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
1223
1550
  };
1224
1551
  }
1225
- }), sa = /* @__PURE__ */ w({
1552
+ }), ga = /* @__PURE__ */ w({
1226
1553
  __name: "index",
1227
1554
  props: {
1228
1555
  value: {}
@@ -1254,7 +1581,7 @@ const el = /* @__PURE__ */ w({
1254
1581
  };
1255
1582
  return (d, s) => {
1256
1583
  var v, f;
1257
- return m(), _(l(pe), F({
1584
+ return m(), _(l(fe), F({
1258
1585
  class: [
1259
1586
  (v = l(o)) == null ? void 0 : v.errClass,
1260
1587
  ((f = l(o)) == null ? void 0 : f.errClass) === "error" && !d.$slots.addonBefore && !d.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
@@ -1266,7 +1593,7 @@ const el = /* @__PURE__ */ w({
1266
1593
  placeholder: "请输入" + l(e),
1267
1594
  onBlur: n,
1268
1595
  onChange: c
1269
- }, d.$attrs), ze({ _: 2 }, [
1596
+ }, d.$attrs), Ue({ _: 2 }, [
1270
1597
  d.$slots.addonBefore ? {
1271
1598
  name: "addonBefore",
1272
1599
  fn: h(() => [
@@ -1284,7 +1611,7 @@ const el = /* @__PURE__ */ w({
1284
1611
  ]), 1040, ["class", "value", "placeholder"]);
1285
1612
  };
1286
1613
  }
1287
- }), oa = /* @__PURE__ */ w({
1614
+ }), _a = /* @__PURE__ */ w({
1288
1615
  __name: "inputIcon",
1289
1616
  props: {
1290
1617
  value: {}
@@ -1303,13 +1630,13 @@ const el = /* @__PURE__ */ w({
1303
1630
  (n) => {
1304
1631
  e("update:value", n);
1305
1632
  }
1306
- ), (n, p) => (m(), _(sa, F({
1633
+ ), (n, p) => (m(), _(ga, F({
1307
1634
  class: ["w-[80%]"],
1308
1635
  value: o.value,
1309
1636
  "onUpdate:value": p[0] || (p[0] = (u) => o.value = u)
1310
1637
  }, n.$attrs), {
1311
1638
  addonBefore: h(() => [
1312
- y(l(L), {
1639
+ y(l(U), {
1313
1640
  class: "!w-4 !h-4",
1314
1641
  icon: o.value
1315
1642
  }, null, 8, ["icon"])
@@ -1317,7 +1644,7 @@ const el = /* @__PURE__ */ w({
1317
1644
  _: 1
1318
1645
  }, 16, ["value"]));
1319
1646
  }
1320
- }), tl = /* @__PURE__ */ Q(oa, [["__scopeId", "data-v-f7b3ed74"]]), al = /* @__PURE__ */ w({
1647
+ }), sl = /* @__PURE__ */ Q(_a, [["__scopeId", "data-v-f7b3ed74"]]), ol = /* @__PURE__ */ w({
1321
1648
  __name: "inputPassword",
1322
1649
  setup(r) {
1323
1650
  const { editorCtrl: a, labelText: t, errInfo: e } = A(), o = () => {
@@ -1325,7 +1652,7 @@ const el = /* @__PURE__ */ w({
1325
1652
  };
1326
1653
  return (n, p) => {
1327
1654
  var u;
1328
- return m(), _(l(St), F({
1655
+ return m(), _(l($t), F({
1329
1656
  class: ((u = l(e)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1330
1657
  "allow-clear": !0,
1331
1658
  autocomplete: "new-password",
@@ -1334,7 +1661,7 @@ const el = /* @__PURE__ */ w({
1334
1661
  }, n.$attrs), null, 16, ["class", "placeholder"]);
1335
1662
  };
1336
1663
  }
1337
- }), ll = /* @__PURE__ */ w({
1664
+ }), nl = /* @__PURE__ */ w({
1338
1665
  __name: "inputNumber",
1339
1666
  setup(r) {
1340
1667
  const { editorCtrl: a, labelText: t, errInfo: e } = A(), o = () => {
@@ -1342,7 +1669,7 @@ const el = /* @__PURE__ */ w({
1342
1669
  };
1343
1670
  return (n, p) => {
1344
1671
  var u;
1345
- return m(), _(l($t), F({
1672
+ return m(), _(l(Tt), F({
1346
1673
  class: [[((u = l(e)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
1347
1674
  onBlur: o,
1348
1675
  "allow-clear": !1,
@@ -1350,7 +1677,7 @@ const el = /* @__PURE__ */ w({
1350
1677
  }, n.$attrs), null, 16, ["class", "placeholder"]);
1351
1678
  };
1352
1679
  }
1353
- }), na = { class: "flex flex-col gap-2" }, ia = { class: "w-[33%]" }, ca = { class: "w-[64%]" }, rl = /* @__PURE__ */ w({
1680
+ }), ba = { class: "flex flex-col gap-2" }, xa = { class: "w-[33%]" }, ya = { class: "w-[64%]" }, il = /* @__PURE__ */ w({
1354
1681
  __name: "index",
1355
1682
  props: {
1356
1683
  value: {},
@@ -1383,13 +1710,13 @@ const el = /* @__PURE__ */ w({
1383
1710
  }, c = () => {
1384
1711
  u();
1385
1712
  };
1386
- return (d, s) => (m(), C("div", na, [
1387
- (m(!0), C(O, null, U(o.value, (v) => (m(), C("div", {
1713
+ return (d, s) => (m(), C("div", ba, [
1714
+ (m(!0), C(O, null, L(o.value, (v) => (m(), C("div", {
1388
1715
  key: v.id,
1389
1716
  class: "flex items-center gap-2"
1390
1717
  }, [
1391
- T("div", ia, [
1392
- y(l(pe), {
1718
+ T("div", xa, [
1719
+ y(l(fe), {
1393
1720
  value: v.field,
1394
1721
  "onUpdate:value": (f) => v.field = f,
1395
1722
  title: v.field,
@@ -1399,8 +1726,8 @@ const el = /* @__PURE__ */ w({
1399
1726
  }, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
1400
1727
  ]),
1401
1728
  s[0] || (s[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
1402
- T("div", ca, [
1403
- y(l(pe), {
1729
+ T("div", ya, [
1730
+ y(l(fe), {
1404
1731
  value: v.value,
1405
1732
  "onUpdate:value": (f) => v.value = f,
1406
1733
  placeholder: d.valueHolder,
@@ -1409,7 +1736,7 @@ const el = /* @__PURE__ */ w({
1409
1736
  }, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
1410
1737
  ])
1411
1738
  ]))), 128)),
1412
- y(l(Ke), {
1739
+ y(l(je), {
1413
1740
  onClick: i,
1414
1741
  class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
1415
1742
  size: "small"
@@ -1422,7 +1749,7 @@ const el = /* @__PURE__ */ w({
1422
1749
  })
1423
1750
  ]));
1424
1751
  }
1425
- }), ua = /* @__PURE__ */ Q(ct, [["__scopeId", "data-v-08c7f643"]]), sl = /* @__PURE__ */ w({
1752
+ }), ka = /* @__PURE__ */ Q(ut, [["__scopeId", "data-v-08c7f643"]]), cl = /* @__PURE__ */ w({
1426
1753
  __name: "radioStatus",
1427
1754
  props: {
1428
1755
  /**
@@ -1454,9 +1781,9 @@ const el = /* @__PURE__ */ w({
1454
1781
  return a.all === !0 && t.value.unshift({
1455
1782
  label: "全部",
1456
1783
  value: a.allValue || [0, 1]
1457
- }), (e, o) => (m(), _(ua, { data: t.value }, null, 8, ["data"]));
1784
+ }), (e, o) => (m(), _(ka, { data: t.value }, null, 8, ["data"]));
1458
1785
  }
1459
- }), ol = /* @__PURE__ */ w({
1786
+ }), ul = /* @__PURE__ */ w({
1460
1787
  __name: "index",
1461
1788
  props: {
1462
1789
  startDate: {},
@@ -1469,7 +1796,7 @@ const el = /* @__PURE__ */ w({
1469
1796
  const c = t.startDate, d = t.endDate;
1470
1797
  if (!(!c || !d))
1471
1798
  try {
1472
- const s = fe(c), v = fe(d);
1799
+ const s = de(c), v = de(d);
1473
1800
  return !s.isValid() || !v.isValid() ? void 0 : [s, v];
1474
1801
  } catch {
1475
1802
  return;
@@ -1483,16 +1810,16 @@ const el = /* @__PURE__ */ w({
1483
1810
  };
1484
1811
  return (c, d) => {
1485
1812
  var s;
1486
- return m(), _(l(Tt), {
1813
+ return m(), _(l(It), {
1487
1814
  class: M([((s = l(n)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
1488
- locale: l(be),
1815
+ locale: l(xe),
1489
1816
  "value-format": p.value,
1490
1817
  value: u.value,
1491
1818
  onChange: i
1492
1819
  }, null, 8, ["class", "locale", "value-format", "value"]);
1493
1820
  };
1494
1821
  }
1495
- }), nl = /* @__PURE__ */ Q(ut, [["__scopeId", "data-v-58735935"]]), il = /* @__PURE__ */ w({
1822
+ }), dl = /* @__PURE__ */ Q(dt, [["__scopeId", "data-v-58735935"]]), pl = /* @__PURE__ */ w({
1496
1823
  __name: "index",
1497
1824
  setup(r) {
1498
1825
  const { editorCtrl: a, labelText: t, errInfo: e } = A(), o = () => {
@@ -1500,19 +1827,19 @@ const el = /* @__PURE__ */ w({
1500
1827
  };
1501
1828
  return (n, p) => {
1502
1829
  var u;
1503
- return m(), _(l(It), F({
1830
+ return m(), _(l(Dt), F({
1504
1831
  class: ((u = l(e)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1505
1832
  "allow-clear": !0,
1506
1833
  placeholder: "请输入" + l(t),
1507
1834
  onBlur: o,
1508
- onKeyup: p[0] || (p[0] = we(Z(() => {
1835
+ onKeyup: p[0] || (p[0] = Ce(Z(() => {
1509
1836
  }, ["stop"]), ["enter", "native"])),
1510
- onKeydown: p[1] || (p[1] = we(Z(() => {
1837
+ onKeydown: p[1] || (p[1] = Ce(Z(() => {
1511
1838
  }, ["stop"]), ["enter", "native"]))
1512
1839
  }, n.$attrs), null, 16, ["class", "placeholder"]);
1513
1840
  };
1514
1841
  }
1515
- }), da = /* @__PURE__ */ w({
1842
+ }), wa = /* @__PURE__ */ w({
1516
1843
  __name: "index",
1517
1844
  props: {
1518
1845
  autoload: { type: Boolean },
@@ -1549,18 +1876,18 @@ const el = /* @__PURE__ */ w({
1549
1876
  }
1550
1877
  }), (s, v) => {
1551
1878
  var f;
1552
- return m(), _(l(Dt), F({
1879
+ return m(), _(l(Pt), F({
1553
1880
  class: ((f = l(p)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1554
1881
  placeholder: "请输入" + l(n),
1555
1882
  targetKeys: c.value,
1556
1883
  onChange: d
1557
1884
  }, s.$attrs), {
1558
- children: h(({ direction: g, disabled: S, filteredItems: I, onItemSelectAll: P, onItemSelect: x, selectedKeys: R }) => [
1885
+ children: h(({ direction: g, disabled: S, filteredItems: I, onItemSelectAll: D, onItemSelect: x, selectedKeys: R }) => [
1559
1886
  E(s.$slots, "children", {
1560
1887
  direction: g,
1561
1888
  disabled: S,
1562
1889
  filteredItems: I,
1563
- onItemSelectAll: P,
1890
+ onItemSelectAll: D,
1564
1891
  onItemSelect: x,
1565
1892
  selectedKeys: R
1566
1893
  })
@@ -1569,7 +1896,7 @@ const el = /* @__PURE__ */ w({
1569
1896
  }, 16, ["class", "placeholder", "targetKeys"]);
1570
1897
  };
1571
1898
  }
1572
- }), cl = /* @__PURE__ */ w({
1899
+ }), fl = /* @__PURE__ */ w({
1573
1900
  __name: "transferTable",
1574
1901
  props: {
1575
1902
  /**
@@ -1632,7 +1959,7 @@ const el = /* @__PURE__ */ w({
1632
1959
  });
1633
1960
  i.value = (c == null ? void 0 : c.data) ?? [];
1634
1961
  }
1635
- }), (c, d) => (m(), _(da, F({
1962
+ }), (c, d) => (m(), _(wa, F({
1636
1963
  "data-source": i.value,
1637
1964
  "row-key": (s) => s[p.value],
1638
1965
  value: n.value,
@@ -1651,7 +1978,7 @@ const el = /* @__PURE__ */ w({
1651
1978
  }
1652
1979
  }, c.$attrs), {
1653
1980
  children: h(({ filteredItems: s, onItemSelectAll: v, onItemSelect: f, selectedKeys: g }) => [
1654
- y(l(He), {
1981
+ y(l(Qe), {
1655
1982
  columns: r.gridCtrl.columns.value,
1656
1983
  "row-key": p.value,
1657
1984
  "row-selection": u({
@@ -1675,7 +2002,7 @@ const el = /* @__PURE__ */ w({
1675
2002
  _: 1
1676
2003
  }, 16, ["data-source", "row-key", "value", "filter-option"]));
1677
2004
  }
1678
- }), pa = /* @__PURE__ */ w({
2005
+ }), Ca = /* @__PURE__ */ w({
1679
2006
  __name: "index",
1680
2007
  props: {
1681
2008
  multiple: {
@@ -1720,7 +2047,7 @@ const el = /* @__PURE__ */ w({
1720
2047
  }), e.data.value ? i.value = e.fieldMap ? re(e.fieldMap, e.data.value) : e.data.value : t.treeCtrl.autoload && Me(t.treeCtrl);
1721
2048
  }), (s, v) => {
1722
2049
  var f;
1723
- return m(), _(l(Pt), F({
2050
+ return m(), _(l(Et), F({
1724
2051
  class: [[(f = l(n)) == null ? void 0 : f.errClass], "w-full"],
1725
2052
  "tree-line": "",
1726
2053
  multiple: r.multiple,
@@ -1734,29 +2061,29 @@ const el = /* @__PURE__ */ w({
1734
2061
  }, s.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
1735
2062
  };
1736
2063
  }
1737
- }), ul = /* @__PURE__ */ Q(pa, [["__scopeId", "data-v-f000d1d0"]]), fa = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, va = { class: "flex w-full h-full min-h-full" }, ma = {
2064
+ }), vl = /* @__PURE__ */ Q(Ca, [["__scopeId", "data-v-f000d1d0"]]), Sa = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, $a = { class: "flex w-full h-full min-h-full" }, Ta = {
1738
2065
  key: 0,
1739
2066
  class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
1740
- }, ha = { class: "flex-1 h-full overflow-y-auto" }, dl = /* @__PURE__ */ w({
2067
+ }, Ia = { class: "flex-1 h-full overflow-y-auto" }, ml = /* @__PURE__ */ w({
1741
2068
  __name: "index",
1742
2069
  props: {
1743
2070
  left: { type: Boolean }
1744
2071
  },
1745
2072
  setup(r) {
1746
- const { useToken: a } = Ue, { token: t } = a();
1747
- return (e, o) => (m(), C("div", fa, [
1748
- y(l(Et), {
2073
+ const { useToken: a } = Ve, { token: t } = a();
2074
+ return (e, o) => (m(), C("div", Sa, [
2075
+ y(l(Ft), {
1749
2076
  class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
1750
2077
  style: me({
1751
2078
  backgroundColor: l(t).colorBgContainer
1752
2079
  })
1753
2080
  }, {
1754
2081
  default: h(() => [
1755
- T("div", va, [
1756
- e.left ? (m(), C("div", ma, [
2082
+ T("div", $a, [
2083
+ e.left ? (m(), C("div", Ta, [
1757
2084
  E(e.$slots, "left")
1758
2085
  ])) : k("", !0),
1759
- T("div", ha, [
2086
+ T("div", Ia, [
1760
2087
  E(e.$slots, "default")
1761
2088
  ])
1762
2089
  ])
@@ -1765,7 +2092,7 @@ const el = /* @__PURE__ */ w({
1765
2092
  }, 8, ["style"])
1766
2093
  ]));
1767
2094
  }
1768
- }), ga = { class: "font-['Courier'] text-[#666]" }, pl = /* @__PURE__ */ w({
2095
+ }), Da = { class: "font-['Courier'] text-[#666]" }, hl = /* @__PURE__ */ w({
1769
2096
  __name: "index",
1770
2097
  setup(r) {
1771
2098
  const a = b("");
@@ -1774,456 +2101,128 @@ const el = /* @__PURE__ */ w({
1774
2101
  const t = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, o = t.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
1775
2102
  a.value = t.getFullYear() + "-" + o;
1776
2103
  }, 1e3);
1777
- }), (t, e) => (m(), C("div", ga, D(a.value), 1));
2104
+ }), (t, e) => (m(), C("div", Da, P(a.value), 1));
1778
2105
  }
1779
- }), $e = (r, a, t, e = "remove") => {
1780
- if (!t)
1781
- if (e === "disable") {
1782
- const o = a.component;
1783
- o ? o.props.disabled = !0 : (a.el, r.setAttribute("disabled", "disabled"), r.disabled = !0), r.classList.add("disabled");
1784
- } else {
1785
- const o = document.createComment("No Permission"), n = r.parentNode;
1786
- if (n) {
1787
- const p = a.component;
1788
- p ? p.props.style = { display: "none" } : n.replaceChild(o, r);
1789
- }
1790
- }
1791
- }, Te = (r) => {
1792
- const a = dt(), { url: t, role: e, permit: o } = r, n = t;
1793
- if (Se.VITE_PERMISSION_MODE === "role")
1794
- return !X(e) && e !== void 0 ? a.hasRole(e) : !0;
1795
- if (Se.VITE_PERMISSION_MODE === "permit") {
1796
- let p = !1, u = !1;
1797
- return !X(e) && e !== void 0 && (p = a.hasRole(e)), !X(o) && typeof o == "string" && (u = a.hasPermit(n, o)), X(e) && X(o) ? !0 : p || u;
1798
- }
1799
- return !1;
1800
- }, _a = {
1801
- mounted(r, a, t) {
1802
- const e = a.value || {}, o = a.arg || "remove", n = e.behavior || o, p = Te(e);
1803
- $e(r, t, p, n);
1804
- },
1805
- updated(r, a, t) {
1806
- const e = a.value || {}, o = a.arg || "remove", n = e.behavior || o, p = Te(e);
1807
- $e(r, t, p, n);
1808
- }
1809
- }, ba = {
1810
- mounted: (r, a) => {
1811
- r.addEventListener("keydown", (t) => {
1812
- t.key === "Enter" && a.value();
1813
- });
1814
- },
1815
- unmounted: (r) => {
1816
- r.removeEventListener("keydown", () => {
1817
- });
1818
- }
1819
- }, ue = {
1820
- auth: _a,
1821
- submit: ba
1822
- }, fl = (r, a) => ((a || Object.keys(ue)).forEach((e) => {
1823
- e in ue && r.directive(e, ue[e]);
1824
- }), r), K = (r, a) => {
1825
- const t = r.find((e) => e.key === a);
1826
- if (t)
1827
- return t;
1828
- for (const e of r)
1829
- if (e.children) {
1830
- const o = K(e.children, a);
1831
- if (o)
1832
- return o;
1833
- }
1834
- }, xe = (r, a, t) => {
1835
- const e = [], o = [];
1836
- return t || (t = [...r]), t.length && t.forEach((n, p) => {
1837
- let u;
1838
- if (typeof n == "string") {
1839
- const i = K(r, n);
1840
- u = i ? { ...i } : { key: n, label: n };
1841
- } else {
1842
- const i = K(r, n.key);
1843
- u = i ? { ...i, ...n } : { ...n };
1844
- }
1845
- u.click || (u.click = (i, c, d) => {
1846
- c && (c.rowData.value = d), u.formVisible ? (u.formVisible.value = !1, setTimeout(() => {
1847
- u.formVisible.value = !0;
1848
- }, 1)) : ne.warning("未配置点击处理事件!");
1849
- }), a === 0 || p < a ? e.push(u) : o.push(u);
1850
- }), { buttons: e, menus: o };
1851
- }, H = (r, a) => r.disabled && typeof r.disabled == "function" ? r.disabled(a) : r.disabled, W = (r, a) => r.visible && typeof r.visible == "function" ? r.visible(a) : r.visible ?? !0, xa = (r, a) => {
1852
- a.reload.value = !0;
1853
- }, ya = (r, a) => {
1854
- a.searchBar.value = !a.searchBar.value;
1855
- }, ka = (r, a) => {
1856
- switch (a.tableSize.value) {
1857
- case "large":
1858
- a.tableSize.value = "middle";
1859
- break;
1860
- case "middle":
1861
- a.tableSize.value = "small";
1862
- break;
1863
- case "small":
1864
- a.tableSize.value = "large";
1865
- break;
1866
- }
1867
- }, wa = (r, a) => {
1868
- a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
1869
- }, Ca = (r, a) => {
1870
- a.rowExpand.value = !a.rowExpand.value;
1871
- }, Ie = (r, a) => {
1872
- a.selectable.value = !a.selectable.value;
1873
- }, Y = (r, a, t, e, o) => {
1874
- (!r.confirm || o) && r.click && (a ? r.click(a, t, e) : r.click(null, t, e)), $a(r);
1875
- }, Sa = (r, a) => {
1876
- a.selectable.value = !a.selectable.value;
1877
- }, We = () => {
1878
- const r = ve();
1879
- r.setFullscreen(!r.fullscreen);
1880
- }, $a = (r, a) => {
1881
- (r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
1882
- }, Ta = (r, a) => {
1883
- a ? delete r.visible : r.visible = !1;
1884
- }, De = [
1885
- {
1886
- key: "Reload",
1887
- label: "刷新表格",
1888
- icon: "icon-reload",
1889
- click: xa
1890
- },
1891
- {
1892
- key: "Query",
1893
- label: "展开搜索栏",
1894
- labels: ["展开搜索栏", "折叠搜索栏"],
1895
- icon: "icon-search",
1896
- iconStatus: 0,
1897
- click: ya
1898
- },
1899
- {
1900
- key: "RowHeight",
1901
- label: "行高调整",
1902
- icon: "icon-row-height",
1903
- click: ka
1904
- },
1905
- {
1906
- key: "tool.multiple.checkbox",
1907
- label: "显示多选框",
1908
- labels: ["显示多选框", "隐藏多选框"],
1909
- icon: "icon-checkbox",
1910
- click: wa
1911
- },
1912
- {
1913
- key: "tool.expand.rows",
1914
- label: "展开记录行",
1915
- labels: ["展开记录行", "折叠记录行"],
1916
- icon: "icon-row-collapse",
1917
- iconStatus: 0,
1918
- icons: ["icon-row-collapse", "icon-row-expand"],
1919
- click: Ca
1920
- },
1921
- {
1922
- key: "tool.export.excel",
1923
- label: "导出Excel",
1924
- icon: "icon-export-excel",
1925
- children: [
1926
- {
1927
- key: "tool.export.excel.all",
1928
- label: "全部记录",
1929
- click: Ie
1930
- },
1931
- {
1932
- key: "tool.export.excel.selected",
1933
- label: "选中的记录",
1934
- click: Ie
1935
- }
1936
- ]
1937
- },
1938
- {
1939
- key: "tool.export.pdf",
1940
- label: "导出PDF",
1941
- icon: "icon-export-pdf",
1942
- children: [
1943
- {
1944
- key: "tool.export.pdf.selected",
1945
- label: "选中的记录",
1946
- click: Sa
1947
- }
1948
- ]
1949
- },
1950
- {
1951
- key: "TableHeadset",
1952
- label: "表头设置",
1953
- icon: "icon-headset",
1954
- dropdown: "headset",
1955
- click: () => {
1956
- }
1957
- // 不设置点击事件
1958
- },
1959
- {
1960
- key: "Fullscreen",
1961
- label: "设置全屏",
1962
- labels: ["设置全屏", "取消全屏"],
1963
- icon: "icon-fullscreen",
1964
- iconStatus: 0,
1965
- icons: ["icon-fullscreen", "icon-exitscreen"],
1966
- click: We
1967
- }
1968
- ], Ia = (r) => {
1969
- if (!r.tools || r.tools.length > 0) {
1970
- const a = [];
1971
- return r.tools ? a.push(...r.tools) : a.push(...De), { tools: xe(De, 0, a).buttons };
1972
- }
1973
- return {
1974
- tools: []
1975
- };
1976
- };
1977
- var Da = /* @__PURE__ */ ((r) => (r.SYS_CONFIG = "SYS_CONFIG_", r.APP_MENU = "APP_MENU_", r.DICT_TYPE = "DICT_TYPE_", r.HOST_INFO = "HOST_INFO_", r.APP_PERMITS = "APP_PERMITS_", r.USER_SETTINGS = "USER_SETTINGS_", r.DICT_DATA = "DICT_DATA_", r.COMMON_OPTIONS = "COMMON_OPTIONS_", r))(Da || {});
1978
- class Ge {
1979
- /**
1980
- * 设置缓存数据(带服务器时间)
1981
- */
1982
- static setWithServerTime(a, t, e) {
1983
- const o = {
1984
- data: t,
1985
- lastTime: e
1986
- };
1987
- le.set({ key: a, storage: "local" }, o);
1988
- }
1989
- /**
1990
- * 设置缓存数据
1991
- */
1992
- static setData(a, t) {
1993
- le.set({ key: a, storage: "local" }, t);
1994
- }
1995
- /**
1996
- * 获取缓存数据
1997
- */
1998
- static getData(a) {
1999
- const t = le.get({ key: a, storage: "local" });
2000
- return t && Ge.isTimedData(t) ? t.data : t ?? null;
2001
- }
2002
- /**
2003
- * 清除缓存
2004
- */
2005
- static remove(a) {
2006
- le.remove({ key: a, storage: "local" });
2007
- }
2008
- /**
2009
- * 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
2010
- */
2011
- static clearByPrefix(a) {
2012
- for (let t = 0; t < localStorage.length; t++) {
2013
- const e = localStorage.key(t);
2014
- e && e.startsWith("frontCache::" + a) && localStorage.removeItem(e);
2015
- }
2016
- }
2017
- /**
2018
- * 清理所有缓存
2019
- */
2020
- static clearAll() {
2021
- for (let a = localStorage.length - 1; a >= 0; a--) {
2022
- const t = localStorage.key(a);
2023
- t && t.startsWith("frontCache::") && localStorage.removeItem(t);
2024
- }
2025
- }
2026
- /**
2027
- * 判断是否是带时间戳的数据
2028
- */
2029
- static isTimedData(a) {
2030
- return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
2031
- }
2032
- }
2033
- async function vl() {
2034
- try {
2035
- const r = await je(
2036
- {
2037
- api: "PLATFORM_API",
2038
- url: "/api/SysCacheSvr/getLastTime",
2039
- loadingText: !1
2040
- },
2041
- {}
2042
- );
2043
- if ((r == null ? void 0 : r.status) === Qe.SUCCESS) {
2044
- const a = r.data;
2045
- Object.keys(a).forEach((t) => {
2046
- const e = a[t];
2047
- ["local", "session"].forEach((n) => {
2048
- const p = n === "local" ? localStorage : sessionStorage;
2049
- for (let u = 0; u < p.length; u++) {
2050
- const i = p.key(u);
2051
- if (i && i.endsWith(t))
2052
- try {
2053
- const c = JSON.parse(p.getItem(i));
2054
- c && typeof c == "object" && "lastTime" in c && typeof c.lastTime == "number" && c.lastTime !== e && p.removeItem(i);
2055
- } catch {
2056
- continue;
2057
- }
2058
- }
2059
- });
2060
- });
2061
- }
2062
- } catch (r) {
2063
- console.error("检查缓存更新失败", r);
2064
- }
2065
- }
2066
- const ml = async (r, a, t) => {
2067
- try {
2068
- const o = (await import("@json2csv/plainjs")).Parser, n = Je(r), p = a.filter((v) => v.visible !== !1 && v.export !== !1), u = p.map((v) => ({
2069
- label: v.title,
2070
- value: v.dataIndex || v.key || ""
2071
- })), i = t.map((v) => {
2072
- const f = { ...v };
2073
- return p.forEach((g) => {
2074
- const S = g.dataIndex || g.key;
2075
- S && g.customRender && (f[S] = g.customRender(v[S], v));
2076
- }), f;
2077
- }), d = new o({ fields: u }).parse(i), s = new Blob([`\uFEFF${d}`], { type: "text/csv" });
2078
- qe(s, n);
2079
- } catch (e) {
2080
- console.error("导出失败:", e), ne.error("文件导出失败,请稍后重试");
2081
- }
2082
- }, Je = (r) => {
2083
- const a = /\{([^}]+)\}/g;
2084
- return r.replace(a, (t, e) => fe().format(e));
2085
- }, hl = async (r, a, t, e) => {
2086
- try {
2087
- const n = (await import("@json2csv/plainjs")).Parser, p = Je(r), u = a.filter((s) => s.visible !== !1), i = u.map((s) => ({
2088
- label: s.title,
2089
- value: s.dataIndex || s.key || ""
2090
- }));
2091
- let c = t.page, d = t.gridQuery;
2092
- return e.api || (e.api = c.api), e.authorize === void 0 && (e.authorize = c.authorize), t.isGridLoading.value = !0, je(e, d).then((s) => {
2093
- if (t.isGridLoading.value = !1, (s == null ? void 0 : s.status) === Qe.SUCCESS && s.data) {
2094
- const f = s.data.map((P) => {
2095
- const x = { ...P };
2096
- return u.forEach((R) => {
2097
- const q = R.dataIndex || R.key;
2098
- q && R.customRender && (x[q] = R.customRender(P[q], P));
2099
- }), x;
2100
- }), S = new n({ fields: i }).parse(f), I = new Blob([`\uFEFF${S}`], { type: "text/csv" });
2101
- qe(I, p);
2102
- }
2103
- });
2104
- } catch (o) {
2105
- console.error("导出失败:", o), ne.error("文件导出失败,请稍后重试");
2106
- }
2107
- };
2106
+ });
2108
2107
  export {
2109
- or as AppIcon,
2108
+ Cr as AppIcon,
2110
2109
  oe as AppRouter,
2111
- xr as AsyncUploader,
2112
- Ja as AutoComplete,
2113
- nr as Breadcrumb,
2110
+ rr as AsyncUploader,
2111
+ tl as AutoComplete,
2112
+ Sr as Breadcrumb,
2114
2113
  B as Button,
2115
2114
  Ge as Cache,
2116
- Da as CacheKeys,
2117
- Xa as Cascader,
2118
- Za as Checkbox,
2119
- dl as Content,
2120
- el as DatePicker,
2121
- pl as Datetime,
2122
- mr as Dialog,
2123
- Ha as Drawer,
2115
+ Ht as CacheKeys,
2116
+ al as Cascader,
2117
+ ll as Checkbox,
2118
+ ml as Content,
2119
+ rl as DatePicker,
2120
+ hl as Datetime,
2121
+ Nr as Dialog,
2122
+ Wa as Drawer,
2124
2123
  bl as EventPrefix,
2125
- ja as Form,
2126
- Qa as FormItem,
2127
- Va as Fullscreen,
2128
- ir as Header,
2129
- cr as HeaderExits,
2130
- Ot as Helper,
2124
+ Ga as Form,
2125
+ Ja as FormItem,
2126
+ Qa as Fullscreen,
2127
+ $r as Header,
2128
+ Tr as HeaderExits,
2129
+ Qt as Helper,
2131
2130
  xl as ICONS_LIB,
2132
- ur as Icon,
2133
- Qt as Icontool,
2134
- sa as Input,
2135
- tl as InputIcon,
2136
- ll as InputNumber,
2137
- al as InputPassword,
2138
- Ka as LayoutIcon,
2139
- dr as Menu,
2140
- pr as MenuTabs,
2131
+ Ir as Icon,
2132
+ sa as Icontool,
2133
+ ga as Input,
2134
+ sl as InputIcon,
2135
+ nl as InputNumber,
2136
+ ol as InputPassword,
2137
+ qa as LayoutIcon,
2138
+ Dr as Menu,
2139
+ Pr as MenuTabs,
2141
2140
  Oe as OPTIONS,
2142
- ot as OptionCommProps,
2143
- fr as ProjectIcon,
2144
- rl as PropEditor,
2141
+ nt as OptionCommProps,
2142
+ Er as ProjectIcon,
2143
+ il as PropEditor,
2145
2144
  te as ProviderKeys,
2146
- ua as Radio,
2147
- sl as RadioStatus,
2148
- ol as RangePicker,
2149
- qa as Search,
2150
- ce as SearchItem,
2151
- nl as Select,
2152
- Xt as Switch,
2153
- Wa as Table,
2154
- Ht as TableOperate,
2155
- il as Textarea,
2156
- L as ToolIcon,
2157
- Jt as Toolbar,
2158
- rr as Tooltip,
2159
- da as Transfer,
2160
- cl as TransferTable,
2161
- Ga as Tree,
2162
- ul as TreeSelect,
2163
- gr as UploadList,
2164
- yr as UploadStatus,
2165
- Er as checkExcelDuplicates,
2145
+ ka as Radio,
2146
+ cl as RadioStatus,
2147
+ ul as RangePicker,
2148
+ Xa as Search,
2149
+ ue as SearchItem,
2150
+ dl as Select,
2151
+ ua as Switch,
2152
+ Za as Table,
2153
+ la as TableOperate,
2154
+ pl as Textarea,
2155
+ U as ToolIcon,
2156
+ ca as Toolbar,
2157
+ kr as Tooltip,
2158
+ wa as Transfer,
2159
+ fl as TransferTable,
2160
+ el as Tree,
2161
+ vl as TreeSelect,
2162
+ mr as UploadList,
2163
+ sr as UploadStatus,
2164
+ _r as checkExcelDuplicates,
2166
2165
  yl as checkIconsExpired,
2167
- nt as circleLoading,
2168
- Xe as createFromIconfont,
2166
+ it as circleLoading,
2167
+ Ze as createFromIconfont,
2169
2168
  kl as crumbs,
2170
2169
  De as defaultTools,
2171
2170
  wl as doDelete,
2172
2171
  Cl as doExecute,
2173
2172
  Be as doQuery,
2174
2173
  Sl as doSave,
2175
- _r as donwloadFromMinio,
2174
+ hr as donwloadFromMinio,
2176
2175
  qe as downloadBlob,
2177
2176
  $l as eventBus,
2178
- hl as exportResults,
2179
- ml as exportSelectedRows,
2177
+ ja as exportResults,
2178
+ Ha as exportSelectedRows,
2180
2179
  Fe as filterColumns,
2181
2180
  V as formValidate,
2182
- kr as getAppInfo,
2181
+ or as getAppInfo,
2183
2182
  Tl as getFormDetail,
2184
- wr as getHostInfo,
2183
+ nr as getHostInfo,
2185
2184
  Il as getIconTransform,
2186
2185
  Dl as getRecordDetail,
2187
2186
  Pl as getRuleTexts,
2188
2187
  El as getSelectedLabels,
2189
2188
  Fl as getSelectedValues,
2190
- Cr as getToken,
2189
+ ir as getToken,
2191
2190
  K as getToolByKey,
2192
- xe as getToolGroup,
2191
+ be as getToolGroup,
2193
2192
  H as getToolStatus,
2194
2193
  W as getToolVisible,
2195
- Sr as getUserInfo,
2194
+ cr as getUserInfo,
2196
2195
  ke as gridQueryFind,
2197
- lt as gridQueryList,
2196
+ rt as gridQueryList,
2198
2197
  Nl as gridRowUpdate,
2199
- rt as gridStatusUpdate,
2200
- vl as initCacheCheck,
2201
- fl as initDirective,
2198
+ st as gridStatusUpdate,
2199
+ Ka as initCacheCheck,
2200
+ Va as initDirective,
2202
2201
  Rl as initMenu,
2203
2202
  Ol as initPageFactory,
2204
2203
  Ml as initValidate,
2205
2204
  X as isEmpty,
2206
2205
  Ne as loadOption,
2207
- $r as mainAppPush,
2206
+ ur as mainAppPush,
2208
2207
  Bl as mergeColumns,
2209
- Ta as onColumnVisibleChanged,
2208
+ Vt as onColumnVisibleChanged,
2210
2209
  ie as onFormClose,
2211
2210
  Pe as onFormSave,
2212
- Ze as onFormSaveAs,
2211
+ et as onFormSaveAs,
2213
2212
  We as onFullscreenClick,
2214
- tt as onGridRowDelete,
2215
- et as onGridRowEdit,
2213
+ at as onGridRowDelete,
2214
+ tt as onGridRowEdit,
2216
2215
  Al as onGridRowExpand,
2217
2216
  zl as onOptionChanged,
2218
- xa as onReloadClick,
2217
+ Mt as onReloadClick,
2219
2218
  Y as onToolClicked,
2220
- at as openNewForm,
2219
+ lt as openNewForm,
2221
2220
  Ll as outFormDataFields,
2222
2221
  Ul as parseIcons,
2223
- Tr as path,
2222
+ dr as path,
2224
2223
  Yl as pendingNavigation,
2225
2224
  Vl as pinia,
2226
- Fr as processExcelFile,
2225
+ br as processExcelFile,
2227
2226
  Me as queryTree,
2228
2227
  Kl as resetRules,
2229
2228
  Hl as routes,
@@ -2240,11 +2239,11 @@ export {
2240
2239
  Zl as usePageFactory,
2241
2240
  er as usePageInfo,
2242
2241
  ve as useSettingInfo,
2243
- Ia as useToolFactory,
2242
+ Kt as useToolFactory,
2244
2243
  tr as useTreeFactory,
2245
- dt as useUserInfo,
2246
- Ir as userLogin,
2247
- Dr as userLogout,
2244
+ Xe as useUserInfo,
2245
+ pr as userLogin,
2246
+ fr as userLogout,
2248
2247
  ar as validateData,
2249
- Nr as validateExcel
2248
+ xr as validateExcel
2250
2249
  };