@skyfox2000/webui 1.4.14 → 1.4.15
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,39 +1,39 @@
|
|
|
1
|
-
import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as
|
|
2
|
-
import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as
|
|
3
|
-
import { A as
|
|
1
|
+
import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as ra, k as ke, l as sa, _ as oa, m as na, O as Me, n as ia, q as Be, p as ca, s as ua, t as L, v as da, w as pa, x as fa, y as va, z as ma, A as ha, B as Y, C as ga, D as ba, E as xa, F as Re } from "./assets/modules/upload-template-CaeUt6VI.js";
|
|
2
|
+
import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as er, $ as ar, X as tr, ak as lr, aj as rr, ag as sr, I as or, J as nr, ah as ir, M as cr, ai as ur, K as dr, a1 as pr } from "./assets/modules/upload-template-CaeUt6VI.js";
|
|
3
|
+
import { A as vr, U as mr, p as hr } from "./assets/modules/file-upload-CYNi1NsW.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
|
-
import { FrontCache as
|
|
5
|
+
import { FrontCache as se, httpPost as Oe, ResStatus as Ae, SERVER_HOST as _a, fieldMapping as oe } from "@skyfox2000/fapi";
|
|
6
6
|
import he from "vue-m-message";
|
|
7
|
-
import { defineComponent as
|
|
7
|
+
import { defineComponent as S, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as I, createVNode as w, mergeProps as M, renderSlot as D, normalizeClass as F, toDisplayString as N, createCommentVNode as k, ref as x, provide as ge, watch as T, onMounted as K, createTextVNode as B, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as C, normalizeStyle as be, createSlots as Le, useSlots as ya, Fragment as O, renderList as z, resolveDynamicComponent as ka, onActivated as wa, shallowRef as Ca, onUnmounted as Sa, withKeys as Ce } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import fe from "dayjs";
|
|
10
|
-
import { Popover as Ta, theme as ze, Drawer as $a, Space as te, Form as Ue, message as Ia, FormItem as Ve, ConfigProvider as
|
|
10
|
+
import { Popover as Ta, theme as ze, Drawer as $a, Space as te, Form as Ue, message as Ia, FormItem as Ve, ConfigProvider as Se, Popconfirm as Da, Button as Ye, DropdownButton as Ea, Menu as xe, MenuItem as _e, Dropdown as ve, Checkbox as Pa, Table as Ke, Tree as Fa, Cascader as Na, DatePicker as Ma, Input as ee, InputPassword as Ba, InputNumber as Ra, RangePicker as Oa, Textarea as Aa, TimePicker as La, Transfer as za, TreeSelect as Ua, LayoutContent as Va } from "ant-design-vue";
|
|
11
11
|
import { VueDraggableNext as Ya } from "vue-draggable-next";
|
|
12
12
|
import { d as We } from "./assets/modules/uploadList-D0jw6jNr.js";
|
|
13
|
-
import { C as
|
|
13
|
+
import { C as br, U as xr, a as _r, p as yr } from "./assets/modules/uploadList-D0jw6jNr.js";
|
|
14
14
|
import { c as He } from "./assets/modules/index-Cj6QnoC7.js";
|
|
15
|
-
import { _ as
|
|
15
|
+
import { _ as wr, h as Cr, b as Sr, a as Tr, d as $r, e as Ir, g as Dr, f as Er, n as Pr, p as Fr, t as Nr, v as Mr } from "./assets/modules/index-Cj6QnoC7.js";
|
|
16
16
|
import { _ as A } from "./assets/modules/index-BOOirPG2.js";
|
|
17
17
|
import { _ as U } from "./assets/modules/toolIcon-DXQt60Ya.js";
|
|
18
|
-
import { a as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
18
|
+
import { a as Rr } from "./assets/modules/toolIcon-DXQt60Ya.js";
|
|
19
|
+
import { _ as Ar, b as Lr, c as zr, d as Ur, e as Vr, I as Yr, f as Kr, g as Wr, a as Hr } from "./assets/modules/menuTabs-DDGkYuvg.js";
|
|
20
|
+
import { _ as Qr } from "./assets/modules/index-DWnhNqJu.js";
|
|
21
21
|
import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
|
-
const Te = (
|
|
22
|
+
const Te = (r, t, e, a = "remove") => {
|
|
23
23
|
if (!e)
|
|
24
24
|
if (a === "disable") {
|
|
25
25
|
const n = t.component;
|
|
26
|
-
n ? n.props.disabled = !0 : (t.el,
|
|
26
|
+
n ? n.props.disabled = !0 : (t.el, r.setAttribute("disabled", "disabled"), r.disabled = !0), r.classList.add("disabled");
|
|
27
27
|
} else {
|
|
28
|
-
const n = document.createComment("No Permission"), i =
|
|
28
|
+
const n = document.createComment("No Permission"), i = r.parentNode;
|
|
29
29
|
if (i) {
|
|
30
30
|
const u = t.component;
|
|
31
|
-
u ? u.props.style = { display: "none" } : i.replaceChild(n,
|
|
31
|
+
u ? u.props.style = { display: "none" } : i.replaceChild(n, r);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
}, $e = (
|
|
34
|
+
}, $e = (r) => {
|
|
35
35
|
var u, p;
|
|
36
|
-
const t = Ee(), { url: e, role: a, permit: n } =
|
|
36
|
+
const t = Ee(), { url: e, role: a, permit: n } = r;
|
|
37
37
|
if (Z(a) && Z(n))
|
|
38
38
|
return !0;
|
|
39
39
|
const i = e ?? ((p = (u = window.location.hash) == null ? void 0 : u.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
|
|
@@ -45,48 +45,48 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
45
45
|
}
|
|
46
46
|
return !1;
|
|
47
47
|
}, Ka = {
|
|
48
|
-
mounted(
|
|
48
|
+
mounted(r, t, e) {
|
|
49
49
|
const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, u = $e(a);
|
|
50
|
-
Te(
|
|
50
|
+
Te(r, e, u, i);
|
|
51
51
|
},
|
|
52
|
-
updated(
|
|
52
|
+
updated(r, t, e) {
|
|
53
53
|
const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, u = $e(a);
|
|
54
|
-
Te(
|
|
54
|
+
Te(r, e, u, i);
|
|
55
55
|
}
|
|
56
56
|
}, Wa = {
|
|
57
|
-
mounted: (
|
|
58
|
-
|
|
57
|
+
mounted: (r, t) => {
|
|
58
|
+
r.addEventListener("keydown", (e) => {
|
|
59
59
|
e.key === "Enter" && t.value();
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
|
-
unmounted: (
|
|
63
|
-
|
|
62
|
+
unmounted: (r) => {
|
|
63
|
+
r.removeEventListener("keydown", () => {
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}, de = {
|
|
67
67
|
auth: Ka,
|
|
68
68
|
submit: Wa
|
|
69
|
-
}, Gt = (
|
|
70
|
-
a in de &&
|
|
71
|
-
}),
|
|
72
|
-
const e =
|
|
69
|
+
}, Gt = (r, t) => ((t || Object.keys(de)).forEach((a) => {
|
|
70
|
+
a in de && r.directive(a, de[a]);
|
|
71
|
+
}), r), W = (r, t) => {
|
|
72
|
+
const e = r.find((a) => a.key === t);
|
|
73
73
|
if (e)
|
|
74
74
|
return e;
|
|
75
|
-
for (const a of
|
|
75
|
+
for (const a of r)
|
|
76
76
|
if (a.children) {
|
|
77
77
|
const n = W(a.children, t);
|
|
78
78
|
if (n)
|
|
79
79
|
return n;
|
|
80
80
|
}
|
|
81
|
-
}, ye = (
|
|
81
|
+
}, ye = (r, t, e) => {
|
|
82
82
|
const a = [], n = [];
|
|
83
|
-
return e || (e = [...
|
|
83
|
+
return e || (e = [...r]), e.length && e.forEach((i, u) => {
|
|
84
84
|
let p;
|
|
85
85
|
if (typeof i == "string") {
|
|
86
|
-
const d = W(
|
|
86
|
+
const d = W(r, i);
|
|
87
87
|
p = d ? { ...d } : { key: i, label: i };
|
|
88
88
|
} else {
|
|
89
|
-
const d = W(
|
|
89
|
+
const d = W(r, i.key);
|
|
90
90
|
p = d ? { ...d, ...i } : { ...i };
|
|
91
91
|
}
|
|
92
92
|
p.click || (p.click = (d, o, f) => {
|
|
@@ -95,11 +95,11 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
95
95
|
}, 1)) : he.warning("未配置点击处理事件!");
|
|
96
96
|
}), t === 0 || u < t ? a.push(p) : n.push(p);
|
|
97
97
|
}), { buttons: a, menus: n };
|
|
98
|
-
}, H = (
|
|
98
|
+
}, H = (r, t) => r.disabled && typeof r.disabled == "function" ? r.disabled(t) : r.disabled, G = (r, t) => r.visible && typeof r.visible == "function" ? r.visible(t) : r.visible ?? !0, Ha = (r, t) => {
|
|
99
99
|
t.reload.value = !0;
|
|
100
|
-
}, ja = (
|
|
100
|
+
}, ja = (r, t) => {
|
|
101
101
|
t.searchBar.value = !t.searchBar.value;
|
|
102
|
-
}, Qa = (
|
|
102
|
+
}, Qa = (r, t) => {
|
|
103
103
|
switch (t.tableSize.value) {
|
|
104
104
|
case "large":
|
|
105
105
|
t.tableSize.value = "middle";
|
|
@@ -111,23 +111,23 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
111
111
|
t.tableSize.value = "large";
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
-
}, qa = (
|
|
114
|
+
}, qa = (r, t) => {
|
|
115
115
|
t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
|
|
116
|
-
}, Ga = (
|
|
116
|
+
}, Ga = (r, t) => {
|
|
117
117
|
t.rowExpand.value = !t.rowExpand.value;
|
|
118
|
-
}, Ie = (
|
|
118
|
+
}, Ie = (r, t) => {
|
|
119
119
|
t.selectable.value = !t.selectable.value;
|
|
120
|
-
}, V = (
|
|
121
|
-
(!
|
|
122
|
-
}, Ja = (
|
|
120
|
+
}, V = (r, t, e, a, n) => {
|
|
121
|
+
(!r.confirm || n) && r.click && (t ? r.click(t, e, a) : r.click(null, e, a)), Xa(r);
|
|
122
|
+
}, Ja = (r, t) => {
|
|
123
123
|
t.selectable.value = !t.selectable.value;
|
|
124
124
|
}, je = () => {
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
}, Xa = (
|
|
128
|
-
(
|
|
129
|
-
}, Za = (
|
|
130
|
-
t ? delete
|
|
125
|
+
const r = me();
|
|
126
|
+
r.setFullscreen(!r.fullscreen);
|
|
127
|
+
}, Xa = (r, t) => {
|
|
128
|
+
(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]));
|
|
129
|
+
}, Za = (r, t) => {
|
|
130
|
+
t ? delete r.visible : r.visible = !1;
|
|
131
131
|
}, De = [
|
|
132
132
|
{
|
|
133
133
|
key: "Reload",
|
|
@@ -212,16 +212,16 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
212
212
|
icons: ["icon-fullscreen", "icon-exitscreen"],
|
|
213
213
|
click: je
|
|
214
214
|
}
|
|
215
|
-
], et = (
|
|
216
|
-
if (!
|
|
215
|
+
], et = (r) => {
|
|
216
|
+
if (!r.tools || r.tools.length > 0) {
|
|
217
217
|
const t = [];
|
|
218
|
-
return
|
|
218
|
+
return r.tools ? t.push(...r.tools) : t.push(...De), { tools: ye(De, 0, t).buttons };
|
|
219
219
|
}
|
|
220
220
|
return {
|
|
221
221
|
tools: []
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
var at = /* @__PURE__ */ ((
|
|
224
|
+
var at = /* @__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))(at || {});
|
|
225
225
|
class Qe {
|
|
226
226
|
/**
|
|
227
227
|
* 设置缓存数据(带服务器时间)
|
|
@@ -231,26 +231,26 @@ class Qe {
|
|
|
231
231
|
data: e,
|
|
232
232
|
lastTime: a
|
|
233
233
|
};
|
|
234
|
-
|
|
234
|
+
se.set({ key: t, storage: "local" }, n);
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* 设置缓存数据
|
|
238
238
|
*/
|
|
239
239
|
static setData(t, e) {
|
|
240
|
-
|
|
240
|
+
se.set({ key: t, storage: "local" }, e);
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
243
|
* 获取缓存数据
|
|
244
244
|
*/
|
|
245
245
|
static getData(t) {
|
|
246
|
-
const e =
|
|
246
|
+
const e = se.get({ key: t, storage: "local" });
|
|
247
247
|
return e && Qe.isTimedData(e) ? e.data : e ?? null;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* 清除缓存
|
|
251
251
|
*/
|
|
252
252
|
static remove(t) {
|
|
253
|
-
|
|
253
|
+
se.remove({ key: t, storage: "local" });
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
|
|
@@ -279,7 +279,7 @@ class Qe {
|
|
|
279
279
|
}
|
|
280
280
|
async function Jt() {
|
|
281
281
|
try {
|
|
282
|
-
const
|
|
282
|
+
const r = await Oe(
|
|
283
283
|
{
|
|
284
284
|
api: "PLATFORM_API",
|
|
285
285
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -287,8 +287,8 @@ async function Jt() {
|
|
|
287
287
|
},
|
|
288
288
|
{}
|
|
289
289
|
);
|
|
290
|
-
if ((
|
|
291
|
-
const t =
|
|
290
|
+
if ((r == null ? void 0 : r.status) === Ae.SUCCESS) {
|
|
291
|
+
const t = r.data;
|
|
292
292
|
Object.keys(t).forEach((e) => {
|
|
293
293
|
const a = t[e];
|
|
294
294
|
["local", "session"].forEach((i) => {
|
|
@@ -306,12 +306,12 @@ async function Jt() {
|
|
|
306
306
|
});
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
} catch (
|
|
310
|
-
console.error("检查缓存更新失败",
|
|
309
|
+
} catch (r) {
|
|
310
|
+
console.error("检查缓存更新失败", r);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
const Xt = async (
|
|
314
|
-
const e = await He(
|
|
313
|
+
const Xt = async (r, t) => {
|
|
314
|
+
const e = await He(r, t);
|
|
315
315
|
if (e.success)
|
|
316
316
|
return {
|
|
317
317
|
blobUrl: e.blobUrl,
|
|
@@ -320,9 +320,9 @@ const Xt = async (s, t) => {
|
|
|
320
320
|
// 不再返回blob对象,使用URL即可
|
|
321
321
|
};
|
|
322
322
|
throw new Error(e.error || "CSV转Excel失败");
|
|
323
|
-
}, Zt = async (
|
|
323
|
+
}, Zt = async (r, t) => {
|
|
324
324
|
try {
|
|
325
|
-
const a = new TextDecoder("utf-8").decode(
|
|
325
|
+
const a = new TextDecoder("utf-8").decode(r), n = await He(a, t);
|
|
326
326
|
return {
|
|
327
327
|
success: n.success,
|
|
328
328
|
blobUrl: n.blobUrl,
|
|
@@ -337,9 +337,9 @@ const Xt = async (s, t) => {
|
|
|
337
337
|
error: e instanceof Error ? e.message : "未知错误"
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
}, el = async (
|
|
340
|
+
}, el = async (r, t, e) => {
|
|
341
341
|
try {
|
|
342
|
-
const n = (await import("@json2csv/plainjs")).Parser, i = qe(
|
|
342
|
+
const n = (await import("@json2csv/plainjs")).Parser, i = qe(r), u = t.filter((v) => v.visible !== !1 && v.export !== !1), p = u.map((v) => ({
|
|
343
343
|
label: v.title,
|
|
344
344
|
value: v.dataIndex || v.key || ""
|
|
345
345
|
})), d = e.map((v) => {
|
|
@@ -348,34 +348,34 @@ const Xt = async (s, t) => {
|
|
|
348
348
|
const y = h.dataIndex || h.key;
|
|
349
349
|
y && h.customRender && (c[y] = h.customRender(v[y], v));
|
|
350
350
|
}), c;
|
|
351
|
-
}), f = new n({ fields: p }).parse(d),
|
|
352
|
-
We(
|
|
351
|
+
}), f = new n({ fields: p }).parse(d), s = new Blob([`\uFEFF${f}`], { type: "text/csv" });
|
|
352
|
+
We(s, i);
|
|
353
353
|
} catch (a) {
|
|
354
354
|
console.error("导出失败:", a), he.error("文件导出失败,请稍后重试");
|
|
355
355
|
}
|
|
356
|
-
}, qe = (
|
|
356
|
+
}, qe = (r) => {
|
|
357
357
|
const t = /\{([^}]+)\}/g;
|
|
358
|
-
return
|
|
359
|
-
}, al = async (
|
|
358
|
+
return r.replace(t, (e, a) => fe().format(a));
|
|
359
|
+
}, al = async (r, t, e, a) => {
|
|
360
360
|
try {
|
|
361
|
-
const i = (await import("@json2csv/plainjs")).Parser, u = qe(
|
|
362
|
-
label:
|
|
363
|
-
value:
|
|
361
|
+
const i = (await import("@json2csv/plainjs")).Parser, u = qe(r), p = t.filter((s) => s.visible !== !1), d = p.map((s) => ({
|
|
362
|
+
label: s.title,
|
|
363
|
+
value: s.dataIndex || s.key || ""
|
|
364
364
|
}));
|
|
365
365
|
let o = e.page, f = e.gridQuery;
|
|
366
|
-
return a.api || (a.api = o.api), a.authorize === void 0 && (a.authorize = o.authorize), e.isGridLoading.value = !0, Oe(a, f).then((
|
|
367
|
-
if (e.isGridLoading.value = !1, (
|
|
368
|
-
if (
|
|
369
|
-
const c =
|
|
370
|
-
const _ = { ...
|
|
371
|
-
return p.forEach((
|
|
372
|
-
const R =
|
|
373
|
-
R &&
|
|
366
|
+
return a.api || (a.api = o.api), a.authorize === void 0 && (a.authorize = o.authorize), e.isGridLoading.value = !0, Oe(a, f).then((s) => {
|
|
367
|
+
if (e.isGridLoading.value = !1, (s == null ? void 0 : s.status) === Ae.SUCCESS) {
|
|
368
|
+
if (s.data) {
|
|
369
|
+
const c = s.data.map((E) => {
|
|
370
|
+
const _ = { ...E };
|
|
371
|
+
return p.forEach((P) => {
|
|
372
|
+
const R = P.dataIndex || P.key;
|
|
373
|
+
R && P.customRender && (_[R] = P.customRender(E[R], E));
|
|
374
374
|
}), _;
|
|
375
375
|
}), y = new i({ fields: d }).parse(c), $ = new Blob([`\uFEFF${y}`], { type: "text/csv" });
|
|
376
376
|
We($, u);
|
|
377
377
|
}
|
|
378
|
-
} else if ((
|
|
378
|
+
} else if ((s == null ? void 0 : s.errno) == Xe) {
|
|
379
379
|
Ee().logout(!1);
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
@@ -383,9 +383,9 @@ const Xt = async (s, t) => {
|
|
|
383
383
|
} catch (n) {
|
|
384
384
|
console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
|
|
385
385
|
}
|
|
386
|
-
}, tl = /* @__PURE__ */
|
|
386
|
+
}, tl = /* @__PURE__ */ S({
|
|
387
387
|
__name: "fullscreen",
|
|
388
|
-
setup(
|
|
388
|
+
setup(r) {
|
|
389
389
|
const t = me();
|
|
390
390
|
return (e, a) => (m(), b(U, {
|
|
391
391
|
onClick: ae(l(je), ["stop"]),
|
|
@@ -393,7 +393,7 @@ const Xt = async (s, t) => {
|
|
|
393
393
|
class: "w-[17px] h-[17px]"
|
|
394
394
|
}, null, 8, ["onClick", "icon"]));
|
|
395
395
|
}
|
|
396
|
-
}), tt = { class: "ml-2" }, lt = /* @__PURE__ */
|
|
396
|
+
}), tt = { class: "ml-2" }, lt = /* @__PURE__ */ S({
|
|
397
397
|
inheritAttrs: !1,
|
|
398
398
|
__name: "helper",
|
|
399
399
|
props: {
|
|
@@ -402,7 +402,7 @@ const Xt = async (s, t) => {
|
|
|
402
402
|
size: {},
|
|
403
403
|
placement: {}
|
|
404
404
|
},
|
|
405
|
-
setup(
|
|
405
|
+
setup(r) {
|
|
406
406
|
const t = X();
|
|
407
407
|
return (e, a) => (m(), b(l(Ta), {
|
|
408
408
|
placement: e.placement ?? "topRight"
|
|
@@ -410,13 +410,13 @@ const Xt = async (s, t) => {
|
|
|
410
410
|
content: g(() => [
|
|
411
411
|
D(e.$slots, "default", {}, () => [
|
|
412
412
|
I("div", {
|
|
413
|
-
class:
|
|
414
|
-
},
|
|
413
|
+
class: F(["text-[14px]", [e.maxWidth]])
|
|
414
|
+
}, N(e.text), 3)
|
|
415
415
|
])
|
|
416
416
|
]),
|
|
417
417
|
default: g(() => [
|
|
418
418
|
I("span", tt, [
|
|
419
|
-
w(U,
|
|
419
|
+
w(U, M({
|
|
420
420
|
icon: "icon-question-circle",
|
|
421
421
|
class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
|
|
422
422
|
}, l(t)), null, 16, ["class"])
|
|
@@ -425,7 +425,7 @@ const Xt = async (s, t) => {
|
|
|
425
425
|
_: 3
|
|
426
426
|
}, 8, ["placement"]));
|
|
427
427
|
}
|
|
428
|
-
}), ll = /* @__PURE__ */
|
|
428
|
+
}), ll = /* @__PURE__ */ S({
|
|
429
429
|
__name: "layoutIcon",
|
|
430
430
|
props: {
|
|
431
431
|
icon: {
|
|
@@ -435,21 +435,21 @@ const Xt = async (s, t) => {
|
|
|
435
435
|
type: Array
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
|
-
setup(
|
|
439
|
-
const t =
|
|
438
|
+
setup(r) {
|
|
439
|
+
const t = r, a = Ze({
|
|
440
440
|
iconUrl: `${_a.MICROLAYOUT_ICONS}`,
|
|
441
441
|
monoColor: !0,
|
|
442
442
|
icon: t.icon,
|
|
443
443
|
icons: t.icons
|
|
444
444
|
});
|
|
445
|
-
return (n, i) =>
|
|
445
|
+
return (n, i) => r.icon || r.icons ? (m(), b(l(a), M({
|
|
446
446
|
key: 0,
|
|
447
|
-
icon:
|
|
448
|
-
icons:
|
|
447
|
+
icon: r.icon,
|
|
448
|
+
icons: r.icons,
|
|
449
449
|
class: ["align-middle"]
|
|
450
450
|
}, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
451
451
|
}
|
|
452
|
-
}),
|
|
452
|
+
}), rt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, rl = /* @__PURE__ */ S({
|
|
453
453
|
__name: "index",
|
|
454
454
|
props: {
|
|
455
455
|
saveText: {},
|
|
@@ -459,8 +459,8 @@ const Xt = async (s, t) => {
|
|
|
459
459
|
drawerSave: { type: Function },
|
|
460
460
|
drawerSaveAs: { type: Function }
|
|
461
461
|
},
|
|
462
|
-
setup(
|
|
463
|
-
const { useToken: t } = ze, { token: e } = t(), a = x(!1), n =
|
|
462
|
+
setup(r) {
|
|
463
|
+
const { useToken: t } = ze, { token: e } = t(), a = x(!1), n = r, i = n.editorCtrl;
|
|
464
464
|
ge(j.EditorControl, i), T(
|
|
465
465
|
() => i.visible.value,
|
|
466
466
|
(o) => {
|
|
@@ -478,7 +478,7 @@ const Xt = async (s, t) => {
|
|
|
478
478
|
};
|
|
479
479
|
return (o, f) => (m(), b(l($a), {
|
|
480
480
|
open: a.value,
|
|
481
|
-
"onUpdate:open": f[0] || (f[0] = (
|
|
481
|
+
"onUpdate:open": f[0] || (f[0] = (s) => a.value = s),
|
|
482
482
|
"get-container": !1,
|
|
483
483
|
closable: !1,
|
|
484
484
|
"header-style": {
|
|
@@ -501,7 +501,7 @@ const Xt = async (s, t) => {
|
|
|
501
501
|
}, {
|
|
502
502
|
extra: g(() => [
|
|
503
503
|
D(o.$slots, "extra", {}, () => [
|
|
504
|
-
I("div",
|
|
504
|
+
I("div", rt, [
|
|
505
505
|
w(l(U), {
|
|
506
506
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
507
507
|
icon: "icon-new",
|
|
@@ -527,7 +527,7 @@ const Xt = async (s, t) => {
|
|
|
527
527
|
onClick: d
|
|
528
528
|
}, {
|
|
529
529
|
default: g(() => [
|
|
530
|
-
B(
|
|
530
|
+
B(N(o.cancelText ?? "取消"), 1)
|
|
531
531
|
]),
|
|
532
532
|
_: 1
|
|
533
533
|
})) : k("", !0),
|
|
@@ -538,7 +538,7 @@ const Xt = async (s, t) => {
|
|
|
538
538
|
loading: l(i).isFormSaving.value
|
|
539
539
|
}, {
|
|
540
540
|
default: g(() => [
|
|
541
|
-
B(
|
|
541
|
+
B(N(o.saveAsText ?? "另存为"), 1)
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
544
544
|
}, 8, ["loading"])) : k("", !0),
|
|
@@ -549,7 +549,7 @@ const Xt = async (s, t) => {
|
|
|
549
549
|
loading: l(i).isFormSaving.value
|
|
550
550
|
}, {
|
|
551
551
|
default: g(() => [
|
|
552
|
-
B(
|
|
552
|
+
B(N(o.saveText ?? "保存"), 1)
|
|
553
553
|
]),
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["loading"])) : k("", !0)
|
|
@@ -561,15 +561,15 @@ const Xt = async (s, t) => {
|
|
|
561
561
|
_: 3
|
|
562
562
|
}, 8, ["open", "header-style"]));
|
|
563
563
|
}
|
|
564
|
-
}),
|
|
564
|
+
}), sl = /* @__PURE__ */ S({
|
|
565
565
|
__name: "index",
|
|
566
566
|
props: {
|
|
567
567
|
labelWidth: {},
|
|
568
568
|
wrapperWidth: {},
|
|
569
569
|
editorCtrl: {}
|
|
570
570
|
},
|
|
571
|
-
setup(
|
|
572
|
-
const t =
|
|
571
|
+
setup(r) {
|
|
572
|
+
const t = r, e = t.editorCtrl ?? ne(j.EditorControl, void 0);
|
|
573
573
|
return ge(j.LabelWidth, t.labelWidth), (a, n) => {
|
|
574
574
|
const i = le("submit");
|
|
575
575
|
return Q((m(), b(l(Ue), {
|
|
@@ -596,10 +596,10 @@ const Xt = async (s, t) => {
|
|
|
596
596
|
]);
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
}),
|
|
599
|
+
}), st = {
|
|
600
600
|
key: 0,
|
|
601
601
|
class: "flex-grow"
|
|
602
|
-
}, ot = { class: "w-8 mt-[-2px]" }, ol = /* @__PURE__ */
|
|
602
|
+
}, ot = { class: "w-8 mt-[-2px]" }, ol = /* @__PURE__ */ S({
|
|
603
603
|
inheritAttrs: !1,
|
|
604
604
|
__name: "formItem",
|
|
605
605
|
props: {
|
|
@@ -610,19 +610,19 @@ const Xt = async (s, t) => {
|
|
|
610
610
|
nextLine: { type: Boolean },
|
|
611
611
|
bottomMargin: {}
|
|
612
612
|
},
|
|
613
|
-
setup(
|
|
614
|
-
const t =
|
|
613
|
+
setup(r) {
|
|
614
|
+
const t = r, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Fe(t, a), u = x(!1);
|
|
615
615
|
setTimeout(() => {
|
|
616
616
|
u.value = !0;
|
|
617
617
|
}, 30);
|
|
618
618
|
const p = (o, f) => {
|
|
619
619
|
if (!f)
|
|
620
620
|
return;
|
|
621
|
-
const [
|
|
621
|
+
const [s, ...v] = o;
|
|
622
622
|
if (o.length === 1)
|
|
623
|
-
return f[
|
|
624
|
-
if (f[
|
|
625
|
-
return p(v, f[
|
|
623
|
+
return f[s];
|
|
624
|
+
if (f[s])
|
|
625
|
+
return p(v, f[s].fields);
|
|
626
626
|
}, d = J(() => {
|
|
627
627
|
var f;
|
|
628
628
|
if (!t.rule)
|
|
@@ -630,24 +630,24 @@ const Xt = async (s, t) => {
|
|
|
630
630
|
const o = p(t.rule.split("."), (f = a == null ? void 0 : a.formRules) == null ? void 0 : f.value);
|
|
631
631
|
return o ? (o.required || (i.value.errClass = "", i.value.msg = ""), o.required ?? !0) : (Ia.error(`"${t.label}" 的验证规则 \`${t.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${t.rule}\` 不存在,请检查代码!`, !0);
|
|
632
632
|
});
|
|
633
|
-
return (o, f) => (m(),
|
|
634
|
-
class:
|
|
633
|
+
return (o, f) => (m(), C("div", {
|
|
634
|
+
class: F(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
|
|
635
635
|
}, [
|
|
636
|
-
u.value ? (m(), b(l(Ve),
|
|
636
|
+
u.value ? (m(), b(l(Ve), M({
|
|
637
637
|
key: 0,
|
|
638
638
|
required: d.value,
|
|
639
639
|
class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
|
|
640
640
|
}, l(e)), {
|
|
641
641
|
label: g(() => [
|
|
642
642
|
I("span", {
|
|
643
|
-
class:
|
|
644
|
-
},
|
|
643
|
+
class: F([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
644
|
+
}, N(o.label), 3)
|
|
645
645
|
]),
|
|
646
646
|
default: g(() => [
|
|
647
647
|
I("div", {
|
|
648
|
-
class:
|
|
648
|
+
class: F(["flex items-center", o.width ? o.width : "w-full"])
|
|
649
649
|
}, [
|
|
650
|
-
o.nextLine ? k("", !0) : (m(),
|
|
650
|
+
o.nextLine ? k("", !0) : (m(), C("div", st, [
|
|
651
651
|
D(o.$slots, "default")
|
|
652
652
|
])),
|
|
653
653
|
I("div", ot, [
|
|
@@ -662,23 +662,23 @@ const Xt = async (s, t) => {
|
|
|
662
662
|
]),
|
|
663
663
|
_: 3
|
|
664
664
|
}, 16, ["required", "class"])) : k("", !0),
|
|
665
|
-
o.nextLine ? (m(),
|
|
665
|
+
o.nextLine ? (m(), C("div", {
|
|
666
666
|
key: 1,
|
|
667
|
-
class:
|
|
667
|
+
class: F(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
|
|
668
668
|
}, [
|
|
669
669
|
D(o.$slots, "default")
|
|
670
670
|
], 2)) : k("", !0),
|
|
671
|
-
l(i).errClass ? (m(),
|
|
671
|
+
l(i).errClass ? (m(), C("span", {
|
|
672
672
|
key: 2,
|
|
673
673
|
style: be({ left: o.nextLine ? "2px" : l(n) }),
|
|
674
674
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
675
|
-
},
|
|
675
|
+
}, N(l(i).msg), 5)) : k("", !0)
|
|
676
676
|
], 2));
|
|
677
677
|
}
|
|
678
678
|
}), nt = { class: "w-1/3 relative mb-1" }, it = { class: "flex items-center w-[90%]" }, ct = { class: "flex-grow pl-1" }, ut = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
681
|
-
}, pe = /* @__PURE__ */
|
|
681
|
+
}, pe = /* @__PURE__ */ S({
|
|
682
682
|
inheritAttrs: !1,
|
|
683
683
|
__name: "searchItem",
|
|
684
684
|
props: {
|
|
@@ -686,10 +686,10 @@ const Xt = async (s, t) => {
|
|
|
686
686
|
width: {},
|
|
687
687
|
rule: {}
|
|
688
688
|
},
|
|
689
|
-
setup(
|
|
690
|
-
const t =
|
|
691
|
-
return (i, u) => (m(),
|
|
692
|
-
w(l(Ve),
|
|
689
|
+
setup(r) {
|
|
690
|
+
const t = r, e = X(), a = ne(j.EditorControl, void 0), n = Fe(t, a);
|
|
691
|
+
return (i, u) => (m(), C("div", nt, [
|
|
692
|
+
w(l(Ve), M({
|
|
693
693
|
required: i.rule !== void 0,
|
|
694
694
|
class: "w-[90%] relative"
|
|
695
695
|
}, l(e), {
|
|
@@ -709,34 +709,37 @@ const Xt = async (s, t) => {
|
|
|
709
709
|
name: "label",
|
|
710
710
|
fn: g(() => [
|
|
711
711
|
I("span", {
|
|
712
|
-
class:
|
|
713
|
-
},
|
|
712
|
+
class: F([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
713
|
+
}, N(i.label), 3)
|
|
714
714
|
]),
|
|
715
715
|
key: "0"
|
|
716
716
|
} : void 0
|
|
717
717
|
]), 1040, ["required", "class"]),
|
|
718
|
-
l(n).msg ? (m(),
|
|
718
|
+
l(n).msg ? (m(), C("span", ut, N(l(n).msg), 1)) : k("", !0)
|
|
719
719
|
]));
|
|
720
720
|
}
|
|
721
|
-
}), nl = /* @__PURE__ */
|
|
721
|
+
}), nl = /* @__PURE__ */ S({
|
|
722
722
|
__name: "index",
|
|
723
723
|
props: {
|
|
724
724
|
search: {},
|
|
725
725
|
gridCtrl: {},
|
|
726
726
|
likeFields: {}
|
|
727
727
|
},
|
|
728
|
-
emits: ["update:search", "
|
|
729
|
-
setup(
|
|
730
|
-
const e =
|
|
728
|
+
emits: ["update:search", "onsearch", "onreset"],
|
|
729
|
+
setup(r, { emit: t }) {
|
|
730
|
+
const e = r, a = t, n = x(0), i = x(0), u = x(0), p = (c) => {
|
|
731
731
|
let h = 0;
|
|
732
732
|
for (let y = 0; y < c.length; y++)
|
|
733
733
|
typeof c[y].type == "object" && h++;
|
|
734
734
|
return h;
|
|
735
735
|
}, d = ya(), o = () => {
|
|
736
|
-
i.value = 0, u.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl.searchBar && d.control && (u.value = p(d.control({}))), n.value = 2 - (i.value + u.value) % 3;
|
|
736
|
+
i.value = 0, u.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (u.value = p(d.control({}))), n.value = 2 - (i.value + u.value) % 3;
|
|
737
737
|
};
|
|
738
738
|
T(
|
|
739
|
-
() =>
|
|
739
|
+
() => {
|
|
740
|
+
var c;
|
|
741
|
+
return (c = e.gridCtrl) == null ? void 0 : c.searchBar;
|
|
742
|
+
},
|
|
740
743
|
() => {
|
|
741
744
|
o();
|
|
742
745
|
}
|
|
@@ -746,32 +749,32 @@ const Xt = async (s, t) => {
|
|
|
746
749
|
var h;
|
|
747
750
|
o();
|
|
748
751
|
let c = { ...e.search };
|
|
749
|
-
e.gridCtrl.gridQuery = {
|
|
752
|
+
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
750
753
|
...e.gridCtrl.gridQuery,
|
|
751
754
|
Query: {
|
|
752
755
|
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
753
756
|
...c
|
|
754
757
|
}
|
|
755
|
-
};
|
|
758
|
+
});
|
|
756
759
|
});
|
|
757
|
-
const
|
|
760
|
+
const s = () => {
|
|
758
761
|
var h;
|
|
759
762
|
let c = { ...e.search };
|
|
760
763
|
if (e.likeFields)
|
|
761
764
|
for (const y of e.likeFields)
|
|
762
765
|
c[y] && (c[y] = { $like: "%" + c[y] + "%" });
|
|
763
|
-
e.gridCtrl.gridQuery = {
|
|
766
|
+
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
764
767
|
...e.gridCtrl.gridQuery,
|
|
765
768
|
Query: {
|
|
766
769
|
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
767
770
|
...c
|
|
768
771
|
}
|
|
769
|
-
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
|
|
772
|
+
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), a("onsearch", c);
|
|
770
773
|
}, v = () => {
|
|
771
774
|
const c = JSON.parse(JSON.stringify(f));
|
|
772
775
|
for (const h in e.search)
|
|
773
776
|
c[h] === void 0 && (c[h] = void 0);
|
|
774
|
-
a("update:search", c), a("
|
|
777
|
+
a("update:search", c), a("onreset");
|
|
775
778
|
};
|
|
776
779
|
return (c, h) => {
|
|
777
780
|
const y = le("submit");
|
|
@@ -784,67 +787,70 @@ const Xt = async (s, t) => {
|
|
|
784
787
|
},
|
|
785
788
|
class: "flex mb-[10px]"
|
|
786
789
|
}, {
|
|
787
|
-
default: g(() =>
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
key:
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
790
|
+
default: g(() => {
|
|
791
|
+
var $, E;
|
|
792
|
+
return [
|
|
793
|
+
D(c.$slots, "default"),
|
|
794
|
+
($ = c.gridCtrl) != null && $.searchBar ? D(c.$slots, "control", { key: 0 }) : k("", !0),
|
|
795
|
+
n.value >= 1 ? (m(), b(pe, {
|
|
796
|
+
key: 1,
|
|
797
|
+
class: "w-1/3"
|
|
798
|
+
})) : k("", !0),
|
|
799
|
+
n.value >= 2 ? (m(), b(pe, {
|
|
800
|
+
key: 2,
|
|
801
|
+
class: "w-1/3"
|
|
802
|
+
})) : k("", !0),
|
|
803
|
+
i.value || (E = c.gridCtrl) != null && E.searchBar ? (m(), b(pe, {
|
|
804
|
+
key: 3,
|
|
805
|
+
class: "w-1/3 flex justify-end text-right pr-5",
|
|
806
|
+
"wrapper-col": { flex: "auto" }
|
|
807
|
+
}, {
|
|
808
|
+
default: g(() => [
|
|
809
|
+
w(l(te), null, {
|
|
810
|
+
default: g(() => [
|
|
811
|
+
w(l(A), {
|
|
812
|
+
type: "primary",
|
|
813
|
+
onClick: s,
|
|
814
|
+
icon: "icon-search"
|
|
815
|
+
}, {
|
|
816
|
+
default: g(() => h[0] || (h[0] = [
|
|
817
|
+
B("搜索")
|
|
818
|
+
])),
|
|
819
|
+
_: 1,
|
|
820
|
+
__: [0]
|
|
821
|
+
}),
|
|
822
|
+
w(l(A), {
|
|
823
|
+
onClick: v,
|
|
824
|
+
icon: "icon-reset"
|
|
825
|
+
}, {
|
|
826
|
+
default: g(() => h[1] || (h[1] = [
|
|
827
|
+
B("重置")
|
|
828
|
+
])),
|
|
829
|
+
_: 1,
|
|
830
|
+
__: [1]
|
|
831
|
+
})
|
|
832
|
+
]),
|
|
833
|
+
_: 1
|
|
834
|
+
})
|
|
835
|
+
]),
|
|
836
|
+
_: 1
|
|
837
|
+
})) : k("", !0)
|
|
838
|
+
];
|
|
839
|
+
}),
|
|
834
840
|
_: 3
|
|
835
841
|
})), [
|
|
836
|
-
[y,
|
|
842
|
+
[y, s]
|
|
837
843
|
]) : k("", !0);
|
|
838
844
|
};
|
|
839
845
|
}
|
|
840
|
-
}), dt = /* @__PURE__ */
|
|
846
|
+
}), dt = /* @__PURE__ */ S({
|
|
841
847
|
__name: "tableOperate",
|
|
842
848
|
props: {
|
|
843
849
|
record: {},
|
|
844
850
|
gridCtrl: {}
|
|
845
851
|
},
|
|
846
|
-
setup(
|
|
847
|
-
const t =
|
|
852
|
+
setup(r) {
|
|
853
|
+
const t = r, e = t.gridCtrl, a = J(() => ce.currentRoute.value.path), n = [
|
|
848
854
|
{
|
|
849
855
|
key: "Edit",
|
|
850
856
|
label: "编辑",
|
|
@@ -882,7 +888,7 @@ const Xt = async (s, t) => {
|
|
|
882
888
|
};
|
|
883
889
|
return (d, o) => {
|
|
884
890
|
const f = le("auth");
|
|
885
|
-
return m(), b(l(
|
|
891
|
+
return m(), b(l(Se), { theme: {
|
|
886
892
|
token: {
|
|
887
893
|
fontSize: 13
|
|
888
894
|
}
|
|
@@ -890,43 +896,43 @@ const Xt = async (s, t) => {
|
|
|
890
896
|
default: g(() => [
|
|
891
897
|
w(l(te), null, {
|
|
892
898
|
default: g(() => [
|
|
893
|
-
(m(!0),
|
|
894
|
-
key:
|
|
899
|
+
(m(!0), C(O, null, z(l(i), (s) => (m(), C(O, {
|
|
900
|
+
key: s.key
|
|
895
901
|
}, [
|
|
896
|
-
l(G)(
|
|
902
|
+
l(G)(s, t.record) ? (m(), b(l(Da), {
|
|
897
903
|
key: 0,
|
|
898
|
-
disabled: p(
|
|
904
|
+
disabled: p(s) || !s.confirm,
|
|
899
905
|
cancelText: "否",
|
|
900
906
|
okText: "是",
|
|
901
|
-
title:
|
|
907
|
+
title: s.confirmText,
|
|
902
908
|
okButtonProps: { size: "small" },
|
|
903
909
|
cancelButtonProps: { size: "small" },
|
|
904
|
-
onConfirm: (v) => l(V)(
|
|
910
|
+
onConfirm: (v) => l(V)(s, l(e).page, l(e), t.record, !0)
|
|
905
911
|
}, {
|
|
906
912
|
default: g(() => [
|
|
907
|
-
l(G)(
|
|
908
|
-
key:
|
|
909
|
-
type:
|
|
910
|
-
danger:
|
|
911
|
-
disabled: p(
|
|
912
|
-
onClick: (v) => l(V)(
|
|
913
|
+
l(G)(s, t.record) ? Q((m(), b(l(Ye), {
|
|
914
|
+
key: s.key,
|
|
915
|
+
type: s.type ?? "text",
|
|
916
|
+
danger: s.danger,
|
|
917
|
+
disabled: p(s),
|
|
918
|
+
onClick: (v) => l(V)(s, l(e).page, l(e), t.record),
|
|
913
919
|
size: "small",
|
|
914
920
|
style: be({
|
|
915
|
-
padding:
|
|
921
|
+
padding: s.type ?? "0px 4px"
|
|
916
922
|
})
|
|
917
923
|
}, {
|
|
918
924
|
default: g(() => [
|
|
919
|
-
B(
|
|
925
|
+
B(N(s.label), 1)
|
|
920
926
|
]),
|
|
921
927
|
_: 2
|
|
922
928
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
923
|
-
[f, { url: a.value, role:
|
|
929
|
+
[f, { url: a.value, role: s.role, permit: s.permit }]
|
|
924
930
|
]) : k("", !0)
|
|
925
931
|
]),
|
|
926
932
|
_: 2
|
|
927
933
|
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
928
934
|
], 64))), 128)),
|
|
929
|
-
d.record.Enabled == 1 ? (m(), b(l(
|
|
935
|
+
d.record.Enabled == 1 ? (m(), b(l(Se), {
|
|
930
936
|
key: 0,
|
|
931
937
|
autoInsertSpaceInButton: !1
|
|
932
938
|
}, {
|
|
@@ -938,20 +944,20 @@ const Xt = async (s, t) => {
|
|
|
938
944
|
overlay: g(() => [
|
|
939
945
|
w(l(xe), null, {
|
|
940
946
|
default: g(() => [
|
|
941
|
-
(m(!0),
|
|
942
|
-
key:
|
|
947
|
+
(m(!0), C(O, null, z(l(u), (s) => (m(), C(O, {
|
|
948
|
+
key: s.key
|
|
943
949
|
}, [
|
|
944
|
-
l(G)(
|
|
950
|
+
l(G)(s, t.record) ? Q((m(), b(l(_e), {
|
|
945
951
|
key: 0,
|
|
946
|
-
disabled: p(
|
|
947
|
-
onClick: (v) => l(V)(
|
|
952
|
+
disabled: p(s),
|
|
953
|
+
onClick: (v) => l(V)(s, l(e).page, l(e), t.record)
|
|
948
954
|
}, {
|
|
949
955
|
default: g(() => [
|
|
950
|
-
B(
|
|
956
|
+
B(N(s.label), 1)
|
|
951
957
|
]),
|
|
952
958
|
_: 2
|
|
953
959
|
}, 1032, ["disabled", "onClick"])), [
|
|
954
|
-
[f, { url: a.value, role:
|
|
960
|
+
[f, { url: a.value, role: s.role, permit: s.permit }]
|
|
955
961
|
]) : k("", !0)
|
|
956
962
|
], 64))), 128))
|
|
957
963
|
]),
|
|
@@ -975,13 +981,13 @@ const Xt = async (s, t) => {
|
|
|
975
981
|
});
|
|
976
982
|
};
|
|
977
983
|
}
|
|
978
|
-
}), pt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ft = /* @__PURE__ */
|
|
984
|
+
}), pt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ft = /* @__PURE__ */ S({
|
|
979
985
|
__name: "icontool",
|
|
980
986
|
props: {
|
|
981
987
|
gridCtrl: {}
|
|
982
988
|
},
|
|
983
|
-
setup(
|
|
984
|
-
const t =
|
|
989
|
+
setup(r) {
|
|
990
|
+
const t = r, e = t.gridCtrl, { tools: a } = et(t.gridCtrl), n = me();
|
|
985
991
|
T(
|
|
986
992
|
() => e.selectable.value,
|
|
987
993
|
(p) => {
|
|
@@ -999,8 +1005,8 @@ const Xt = async (s, t) => {
|
|
|
999
1005
|
const u = () => {
|
|
1000
1006
|
e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
|
|
1001
1007
|
};
|
|
1002
|
-
return (p, d) => (m(),
|
|
1003
|
-
(m(!0),
|
|
1008
|
+
return (p, d) => (m(), C("div", pt, [
|
|
1009
|
+
(m(!0), C(O, null, z(l(a), (o, f) => (m(), C(O, {
|
|
1004
1010
|
key: o.key
|
|
1005
1011
|
}, [
|
|
1006
1012
|
l(G)(o) && o.dropdown ? (m(), b(l(ve), {
|
|
@@ -1010,36 +1016,36 @@ const Xt = async (s, t) => {
|
|
|
1010
1016
|
}, {
|
|
1011
1017
|
overlay: g(() => [
|
|
1012
1018
|
I("div", {
|
|
1013
|
-
class:
|
|
1019
|
+
class: F(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
|
|
1014
1020
|
}, [
|
|
1015
1021
|
o.dropdown === "headset" ? (m(), b(l(Ya), {
|
|
1016
1022
|
key: 0,
|
|
1017
1023
|
modelValue: i.value,
|
|
1018
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
1024
|
+
"onUpdate:modelValue": d[1] || (d[1] = (s) => i.value = s),
|
|
1019
1025
|
"item-key": "dataIndex",
|
|
1020
1026
|
onEnd: u,
|
|
1021
1027
|
handle: ".drag-handle"
|
|
1022
1028
|
}, {
|
|
1023
1029
|
default: g(() => [
|
|
1024
|
-
(m(!0),
|
|
1025
|
-
key:
|
|
1030
|
+
(m(!0), C(O, null, z(i.value, (s) => (m(), C("div", {
|
|
1031
|
+
key: s.name,
|
|
1026
1032
|
onClick: d[0] || (d[0] = ae(() => {
|
|
1027
1033
|
}, ["stop"])),
|
|
1028
1034
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
1029
1035
|
}, [
|
|
1030
1036
|
d[2] || (d[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
1031
1037
|
w(l(Pa), {
|
|
1032
|
-
checked:
|
|
1038
|
+
checked: s.visible !== !1,
|
|
1033
1039
|
onChange: ae(
|
|
1034
1040
|
(v) => {
|
|
1035
|
-
l(Za)(
|
|
1041
|
+
l(Za)(s, v.target.checked);
|
|
1036
1042
|
},
|
|
1037
1043
|
["stop", "prevent"]
|
|
1038
1044
|
),
|
|
1039
1045
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
1040
1046
|
}, {
|
|
1041
1047
|
default: g(() => [
|
|
1042
|
-
B(
|
|
1048
|
+
B(N(s.title), 1)
|
|
1043
1049
|
]),
|
|
1044
1050
|
_: 2
|
|
1045
1051
|
}, 1032, ["checked", "onChange"])
|
|
@@ -1051,14 +1057,14 @@ const Xt = async (s, t) => {
|
|
|
1051
1057
|
]),
|
|
1052
1058
|
default: g(() => [
|
|
1053
1059
|
w(l(A), {
|
|
1054
|
-
class:
|
|
1060
|
+
class: F([
|
|
1055
1061
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1056
1062
|
f === 0 ? "rounded-l-[5px]" : "",
|
|
1057
1063
|
f === l(a).length - 1 ? "rounded-r-[5px]" : ""
|
|
1058
1064
|
]),
|
|
1059
1065
|
disabled: l(H)(o),
|
|
1060
1066
|
tiptext: o.label,
|
|
1061
|
-
onClick: (
|
|
1067
|
+
onClick: (s) => l(V)(o, l(e).page, l(e))
|
|
1062
1068
|
}, {
|
|
1063
1069
|
default: g(() => [
|
|
1064
1070
|
w(l(U), {
|
|
@@ -1073,14 +1079,14 @@ const Xt = async (s, t) => {
|
|
|
1073
1079
|
_: 2
|
|
1074
1080
|
}, 1024)) : !o.children && l(G)(o) ? (m(), b(l(A), {
|
|
1075
1081
|
key: 1,
|
|
1076
|
-
class:
|
|
1082
|
+
class: F([
|
|
1077
1083
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1078
1084
|
f === 0 ? "rounded-l-[5px]" : "",
|
|
1079
1085
|
f === l(a).length - 1 ? "rounded-r-[5px]" : ""
|
|
1080
1086
|
]),
|
|
1081
1087
|
disabled: l(H)(o),
|
|
1082
1088
|
tiptext: o.label,
|
|
1083
|
-
onClick: (
|
|
1089
|
+
onClick: (s) => l(V)(o, l(e).page, l(e))
|
|
1084
1090
|
}, {
|
|
1085
1091
|
default: g(() => [
|
|
1086
1092
|
w(l(U), {
|
|
@@ -1098,12 +1104,12 @@ const Xt = async (s, t) => {
|
|
|
1098
1104
|
overlay: g(() => [
|
|
1099
1105
|
w(l(xe), null, {
|
|
1100
1106
|
default: g(() => [
|
|
1101
|
-
(m(!0),
|
|
1102
|
-
key:
|
|
1103
|
-
disabled: l(H)(
|
|
1107
|
+
(m(!0), C(O, null, z(o.children, (s) => (m(), b(l(_e), {
|
|
1108
|
+
key: s.key,
|
|
1109
|
+
disabled: l(H)(s)
|
|
1104
1110
|
}, {
|
|
1105
1111
|
default: g(() => [
|
|
1106
|
-
B(
|
|
1112
|
+
B(N(s.label), 1)
|
|
1107
1113
|
]),
|
|
1108
1114
|
_: 2
|
|
1109
1115
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -1113,7 +1119,7 @@ const Xt = async (s, t) => {
|
|
|
1113
1119
|
]),
|
|
1114
1120
|
default: g(() => [
|
|
1115
1121
|
w(l(A), {
|
|
1116
|
-
class:
|
|
1122
|
+
class: F([
|
|
1117
1123
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1118
1124
|
f === 0 ? "rounded-l-[5px]" : ""
|
|
1119
1125
|
]),
|
|
@@ -1121,7 +1127,7 @@ const Xt = async (s, t) => {
|
|
|
1121
1127
|
tiptext: o.label,
|
|
1122
1128
|
icon: o.icon,
|
|
1123
1129
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
1124
|
-
onClick: (
|
|
1130
|
+
onClick: (s) => l(V)(o, l(e).page, l(e))
|
|
1125
1131
|
}, {
|
|
1126
1132
|
default: g(() => [
|
|
1127
1133
|
w(l(U), {
|
|
@@ -1137,14 +1143,14 @@ const Xt = async (s, t) => {
|
|
|
1137
1143
|
], 64))), 128))
|
|
1138
1144
|
]));
|
|
1139
1145
|
}
|
|
1140
|
-
}), vt = { class: "flex justify-between mb-[10px]" }, mt = { key: 1 }, ht = 3, gt = /* @__PURE__ */
|
|
1146
|
+
}), vt = { class: "flex justify-between mb-[10px]" }, mt = { key: 1 }, ht = 3, gt = /* @__PURE__ */ S({
|
|
1141
1147
|
__name: "index",
|
|
1142
1148
|
props: {
|
|
1143
1149
|
gridCtrl: {},
|
|
1144
1150
|
editorCtrl: {}
|
|
1145
1151
|
},
|
|
1146
|
-
setup(
|
|
1147
|
-
const t =
|
|
1152
|
+
setup(r) {
|
|
1153
|
+
const t = r, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() => ce.currentRoute.value.path), u = [
|
|
1148
1154
|
{
|
|
1149
1155
|
key: "New",
|
|
1150
1156
|
label: "新增",
|
|
@@ -1154,7 +1160,7 @@ const Xt = async (s, t) => {
|
|
|
1154
1160
|
role: ["Super", "Admin"],
|
|
1155
1161
|
permit: ":new",
|
|
1156
1162
|
// 默认仅受权限码控制
|
|
1157
|
-
click: () =>
|
|
1163
|
+
click: () => ra(n)
|
|
1158
1164
|
}
|
|
1159
1165
|
], p = x([]), d = x([]);
|
|
1160
1166
|
return T(
|
|
@@ -1163,11 +1169,11 @@ const Xt = async (s, t) => {
|
|
|
1163
1169
|
return (o = e.buttons) == null ? void 0 : o.value;
|
|
1164
1170
|
},
|
|
1165
1171
|
() => {
|
|
1166
|
-
var
|
|
1172
|
+
var s;
|
|
1167
1173
|
const { buttons: o, menus: f } = ye(
|
|
1168
1174
|
u,
|
|
1169
1175
|
e.flat !== void 0 ? e.flat : ht,
|
|
1170
|
-
(
|
|
1176
|
+
(s = e.buttons) == null ? void 0 : s.value
|
|
1171
1177
|
);
|
|
1172
1178
|
p.value.splice(0, p.value.length, ...o), d.value.splice(0, d.value.length, ...f);
|
|
1173
1179
|
},
|
|
@@ -1176,11 +1182,11 @@ const Xt = async (s, t) => {
|
|
|
1176
1182
|
immediate: !0
|
|
1177
1183
|
}
|
|
1178
1184
|
), (o, f) => {
|
|
1179
|
-
const
|
|
1180
|
-
return m(),
|
|
1185
|
+
const s = le("auth");
|
|
1186
|
+
return m(), C("div", vt, [
|
|
1181
1187
|
w(l(te), null, {
|
|
1182
1188
|
default: g(() => [
|
|
1183
|
-
(m(!0),
|
|
1189
|
+
(m(!0), C(O, null, z(p.value, (v) => Q((m(), b(l(A), {
|
|
1184
1190
|
key: v.key,
|
|
1185
1191
|
type: v.type,
|
|
1186
1192
|
danger: v.danger,
|
|
@@ -1189,27 +1195,27 @@ const Xt = async (s, t) => {
|
|
|
1189
1195
|
onClick: (c) => l(V)(v, l(a), l(e))
|
|
1190
1196
|
}, {
|
|
1191
1197
|
default: g(() => [
|
|
1192
|
-
B(
|
|
1198
|
+
B(N(v.label), 1)
|
|
1193
1199
|
]),
|
|
1194
1200
|
_: 2
|
|
1195
1201
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
1196
|
-
[
|
|
1202
|
+
[s, { url: i.value, role: v.role, permit: v.permit }]
|
|
1197
1203
|
])), 128)),
|
|
1198
1204
|
d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
|
|
1199
1205
|
overlay: g(() => [
|
|
1200
1206
|
w(l(xe), null, {
|
|
1201
1207
|
default: g(() => [
|
|
1202
|
-
(m(!0),
|
|
1208
|
+
(m(!0), C(O, null, z(d.value, (v) => Q((m(), b(l(_e), {
|
|
1203
1209
|
key: v.key,
|
|
1204
1210
|
disabled: l(H)(v),
|
|
1205
1211
|
onClick: (c) => l(V)(v, l(a), l(e))
|
|
1206
1212
|
}, {
|
|
1207
1213
|
default: g(() => [
|
|
1208
|
-
B(
|
|
1214
|
+
B(N(v.label), 1)
|
|
1209
1215
|
]),
|
|
1210
1216
|
_: 2
|
|
1211
1217
|
}, 1032, ["disabled", "onClick"])), [
|
|
1212
|
-
[
|
|
1218
|
+
[s, { url: i.value, role: v.role, permit: v.permit }]
|
|
1213
1219
|
])), 128))
|
|
1214
1220
|
]),
|
|
1215
1221
|
_: 1
|
|
@@ -1226,7 +1232,7 @@ const Xt = async (s, t) => {
|
|
|
1226
1232
|
]),
|
|
1227
1233
|
_: 1
|
|
1228
1234
|
})) : k("", !0),
|
|
1229
|
-
p.value.length === 0 && d.value.length === 0 ? (m(),
|
|
1235
|
+
p.value.length === 0 && d.value.length === 0 ? (m(), C("span", mt)) : k("", !0)
|
|
1230
1236
|
]),
|
|
1231
1237
|
_: 1
|
|
1232
1238
|
}),
|
|
@@ -1239,7 +1245,7 @@ const Xt = async (s, t) => {
|
|
|
1239
1245
|
]);
|
|
1240
1246
|
};
|
|
1241
1247
|
}
|
|
1242
|
-
}), il = /* @__PURE__ */
|
|
1248
|
+
}), il = /* @__PURE__ */ S({
|
|
1243
1249
|
inheritAttrs: !1,
|
|
1244
1250
|
__name: "index",
|
|
1245
1251
|
props: {
|
|
@@ -1251,8 +1257,8 @@ const Xt = async (s, t) => {
|
|
|
1251
1257
|
scroll: {},
|
|
1252
1258
|
statusDisabled: {}
|
|
1253
1259
|
},
|
|
1254
|
-
setup(
|
|
1255
|
-
const t =
|
|
1260
|
+
setup(r) {
|
|
1261
|
+
const t = r, e = X(), a = t.gridCtrl, n = J(() => ce.currentRoute.value.path);
|
|
1256
1262
|
a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
|
|
1257
1263
|
const i = x(a.pageSize.value), u = x(a.pageNo.value), p = x([]), d = x({
|
|
1258
1264
|
total: 0,
|
|
@@ -1286,11 +1292,11 @@ const Xt = async (s, t) => {
|
|
|
1286
1292
|
disabled: c.Enabled === 0
|
|
1287
1293
|
}),
|
|
1288
1294
|
...t.rowSelection
|
|
1289
|
-
},
|
|
1295
|
+
}, s = x(f);
|
|
1290
1296
|
T(
|
|
1291
1297
|
() => a.selectable.value,
|
|
1292
1298
|
(c) => {
|
|
1293
|
-
a && (
|
|
1299
|
+
a && (s.value = c ? f : void 0);
|
|
1294
1300
|
},
|
|
1295
1301
|
{ immediate: !0 }
|
|
1296
1302
|
), T(
|
|
@@ -1304,20 +1310,20 @@ const Xt = async (s, t) => {
|
|
|
1304
1310
|
return wa(() => {
|
|
1305
1311
|
v.value && a && (a.reload.value = !0);
|
|
1306
1312
|
}), K(async () => {
|
|
1307
|
-
var c, h, y, $,
|
|
1308
|
-
ge(j.GridControl, a), a.page && ((c = a.gridUrl) != null && c.url) && (((h = a.gridUrl) == null ? void 0 : h.url) === ((y = a.page.urls.list) == null ? void 0 : y.url) && (a.remotePage = !1), (($ = a.gridUrl) == null ? void 0 : $.url) === ((
|
|
1313
|
+
var c, h, y, $, E;
|
|
1314
|
+
ge(j.GridControl, a), a.page && ((c = a.gridUrl) != null && c.url) && (((h = a.gridUrl) == null ? void 0 : h.url) === ((y = a.page.urls.list) == null ? void 0 : y.url) && (a.remotePage = !1), (($ = a.gridUrl) == null ? void 0 : $.url) === ((E = a.page.urls.find) == null ? void 0 : E.url) && (a.remotePage = !0)), a.tableData.value ? (p.value = a.tableData.value, a.total.value = p.value.length, d.value !== !1 && (d.value.total = a.total.value ?? 0)) : a.autoload !== !1 && (a.remotePage ? p.value = (await ke(a)).rows : p.value = await sa(a)), setTimeout(() => {
|
|
1309
1315
|
v.value = !0;
|
|
1310
1316
|
}, 50);
|
|
1311
1317
|
}), (c, h) => {
|
|
1312
|
-
var $,
|
|
1318
|
+
var $, E;
|
|
1313
1319
|
const y = le("auth");
|
|
1314
|
-
return m(),
|
|
1315
|
-
($ = l(a).buttons) != null && $.value.length || (
|
|
1320
|
+
return m(), C(O, null, [
|
|
1321
|
+
($ = l(a).buttons) != null && $.value.length || (E = l(a).tools) != null && E.length ? (m(), b(gt, {
|
|
1316
1322
|
key: 0,
|
|
1317
1323
|
"grid-ctrl": l(a),
|
|
1318
1324
|
"editor-ctrl": l(a).editor
|
|
1319
1325
|
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
1320
|
-
v.value ? (m(), b(l(Ke),
|
|
1326
|
+
v.value ? (m(), b(l(Ke), M({
|
|
1321
1327
|
key: 1,
|
|
1322
1328
|
class: "w-full min-h-[480px]",
|
|
1323
1329
|
"row-key": t.primaryKey ?? l(a).primaryKey ?? "Id",
|
|
@@ -1325,26 +1331,26 @@ const Xt = async (s, t) => {
|
|
|
1325
1331
|
loading: l(a).isGridLoading.value,
|
|
1326
1332
|
columns: o.value,
|
|
1327
1333
|
pagination: d.value,
|
|
1328
|
-
"row-selection":
|
|
1334
|
+
"row-selection": s.value,
|
|
1329
1335
|
scroll: t.scroll || { x: 700 },
|
|
1330
1336
|
size: l(a).tableSize.value,
|
|
1331
1337
|
bordered: ""
|
|
1332
1338
|
}, l(e)), {
|
|
1333
1339
|
bodyCell: g((_) => {
|
|
1334
|
-
var
|
|
1340
|
+
var P, R;
|
|
1335
1341
|
return [
|
|
1336
1342
|
D(c.$slots, "bodyCell", {
|
|
1337
1343
|
column: _ == null ? void 0 : _.column,
|
|
1338
1344
|
record: _ == null ? void 0 : _.record
|
|
1339
1345
|
}),
|
|
1340
|
-
l(a) && ((
|
|
1346
|
+
l(a) && ((P = _ == null ? void 0 : _.column) == null ? void 0 : P.dataIndex) === "enabled" ? Q((m(), b(oa, {
|
|
1341
1347
|
key: 0,
|
|
1342
1348
|
checked: _.record.Enabled,
|
|
1343
|
-
"onUpdate:checked": (
|
|
1349
|
+
"onUpdate:checked": (re) => _.record.Enabled = re,
|
|
1344
1350
|
disabled: c.statusDisabled ? c.statusDisabled(_.record) : !1,
|
|
1345
1351
|
data: l(Me).EnableDisable,
|
|
1346
|
-
onClick: (
|
|
1347
|
-
class:
|
|
1352
|
+
onClick: (re) => l(na)(l(a), _.record),
|
|
1353
|
+
class: F([
|
|
1348
1354
|
"w-[58px]",
|
|
1349
1355
|
c.statusDisabled && c.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
|
|
1350
1356
|
]),
|
|
@@ -1368,7 +1374,7 @@ const Xt = async (s, t) => {
|
|
|
1368
1374
|
], 64);
|
|
1369
1375
|
};
|
|
1370
1376
|
}
|
|
1371
|
-
}), bt = { class: "flex items-center gap-1" }, xt = { class: "text-nowrap" }, cl = /* @__PURE__ */
|
|
1377
|
+
}), bt = { class: "flex items-center gap-1" }, xt = { class: "text-nowrap" }, cl = /* @__PURE__ */ S({
|
|
1372
1378
|
__name: "index",
|
|
1373
1379
|
props: {
|
|
1374
1380
|
treeCtrl: {},
|
|
@@ -1376,26 +1382,26 @@ const Xt = async (s, t) => {
|
|
|
1376
1382
|
expandedKeys: {}
|
|
1377
1383
|
},
|
|
1378
1384
|
emits: ["select", "update:selectedKeys"],
|
|
1379
|
-
setup(
|
|
1380
|
-
const e =
|
|
1385
|
+
setup(r, { emit: t }) {
|
|
1386
|
+
const e = r, a = X(), n = e.treeCtrl, i = x([]);
|
|
1381
1387
|
T(
|
|
1382
1388
|
() => n.data.value,
|
|
1383
1389
|
(f) => {
|
|
1384
1390
|
if (f) {
|
|
1385
1391
|
i.value = n.fieldMap ? oe(n.fieldMap, f) : f;
|
|
1386
|
-
const
|
|
1387
|
-
if (
|
|
1392
|
+
const s = ia(i.value, p.value[0]);
|
|
1393
|
+
if (s) {
|
|
1388
1394
|
const v = {
|
|
1389
1395
|
event: "select",
|
|
1390
1396
|
node: {
|
|
1391
1397
|
// 根据你的TreeNode结构构建node对象
|
|
1392
|
-
key:
|
|
1393
|
-
title:
|
|
1398
|
+
key: s.key,
|
|
1399
|
+
title: s.title,
|
|
1394
1400
|
checked: !0,
|
|
1395
|
-
dataRef:
|
|
1401
|
+
dataRef: s
|
|
1396
1402
|
},
|
|
1397
1403
|
selected: !0,
|
|
1398
|
-
selectedNodes: [
|
|
1404
|
+
selectedNodes: [s]
|
|
1399
1405
|
};
|
|
1400
1406
|
o(p.value, v);
|
|
1401
1407
|
}
|
|
@@ -1418,8 +1424,8 @@ const Xt = async (s, t) => {
|
|
|
1418
1424
|
},
|
|
1419
1425
|
{ immediate: !0 }
|
|
1420
1426
|
);
|
|
1421
|
-
const o = (f,
|
|
1422
|
-
f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value =
|
|
1427
|
+
const o = (f, s) => {
|
|
1428
|
+
f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = s == null ? void 0 : s.node.dataRef), p.value = f, u("update:selectedKeys", f), u("select", f, s);
|
|
1423
1429
|
};
|
|
1424
1430
|
return K(() => {
|
|
1425
1431
|
n.fieldMap || (n.fieldMap = {
|
|
@@ -1428,12 +1434,12 @@ const Xt = async (s, t) => {
|
|
|
1428
1434
|
value: "Id",
|
|
1429
1435
|
icon: "Icon"
|
|
1430
1436
|
}), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Be(n);
|
|
1431
|
-
}), (f,
|
|
1437
|
+
}), (f, s) => (m(), b(l(Fa), M({
|
|
1432
1438
|
class: "w-full",
|
|
1433
1439
|
"show-line": !0,
|
|
1434
1440
|
"tree-data": i.value,
|
|
1435
1441
|
"expanded-keys": d.value,
|
|
1436
|
-
"onUpdate:expandedKeys":
|
|
1442
|
+
"onUpdate:expandedKeys": s[0] || (s[0] = (v) => d.value = v),
|
|
1437
1443
|
"selected-keys": p.value,
|
|
1438
1444
|
loading: l(n).isTreeLoading,
|
|
1439
1445
|
onSelect: o
|
|
@@ -1446,7 +1452,7 @@ const Xt = async (s, t) => {
|
|
|
1446
1452
|
}, () => [
|
|
1447
1453
|
I("div", bt, [
|
|
1448
1454
|
w(l(U), { icon: h }, null, 8, ["icon"]),
|
|
1449
|
-
I("span", xt,
|
|
1455
|
+
I("span", xt, N(c), 1)
|
|
1450
1456
|
])
|
|
1451
1457
|
])
|
|
1452
1458
|
]),
|
|
@@ -1456,26 +1462,26 @@ const Xt = async (s, t) => {
|
|
|
1456
1462
|
}), ul = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-62a24cf4"]]), _t = { class: "relative w-[248px] max-w-[248px]" }, yt = {
|
|
1457
1463
|
key: 0,
|
|
1458
1464
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1459
|
-
}, kt = /* @__PURE__ */
|
|
1465
|
+
}, kt = /* @__PURE__ */ S({
|
|
1460
1466
|
inheritAttrs: !1,
|
|
1461
1467
|
__name: "index",
|
|
1462
1468
|
props: ua,
|
|
1463
1469
|
emits: ["change", "update:labels", "update:value"],
|
|
1464
|
-
setup(
|
|
1465
|
-
var y, $,
|
|
1466
|
-
const e =
|
|
1467
|
-
u.inputFactory =
|
|
1470
|
+
setup(r, { emit: t }) {
|
|
1471
|
+
var y, $, E;
|
|
1472
|
+
const e = r, a = X(), n = L(), i = da(e.url, e), u = e.optionCtrl ?? i.optionCtrl;
|
|
1473
|
+
u.inputFactory = Ca(n);
|
|
1468
1474
|
const p = x({
|
|
1469
1475
|
...u == null ? void 0 : u.url,
|
|
1470
1476
|
url: ((y = u == null ? void 0 : u.url) == null ? void 0 : y.url) || "",
|
|
1471
1477
|
fieldMap: (u == null ? void 0 : u.fieldMap) || (($ = u == null ? void 0 : u.url) == null ? void 0 : $.fieldMap),
|
|
1472
|
-
params: (u == null ? void 0 : u.params) || ((
|
|
1478
|
+
params: (u == null ? void 0 : u.params) || ((E = u == null ? void 0 : u.url) == null ? void 0 : E.params),
|
|
1473
1479
|
loadingText: !1
|
|
1474
|
-
}), { editorCtrl: d, errInfo: o, labelText: f } = n,
|
|
1480
|
+
}), { editorCtrl: d, errInfo: o, labelText: f } = n, s = x(a.placeholder);
|
|
1475
1481
|
T(
|
|
1476
1482
|
() => p.value.loading,
|
|
1477
1483
|
(_) => {
|
|
1478
|
-
_ ?
|
|
1484
|
+
_ ? s.value = "" : s.value || (s.value = "请选择" + f.value);
|
|
1479
1485
|
},
|
|
1480
1486
|
{ immediate: !0 }
|
|
1481
1487
|
);
|
|
@@ -1489,12 +1495,12 @@ const Xt = async (s, t) => {
|
|
|
1489
1495
|
},
|
|
1490
1496
|
{ immediate: !0, deep: !0 }
|
|
1491
1497
|
);
|
|
1492
|
-
const h = (_,
|
|
1493
|
-
if (!
|
|
1498
|
+
const h = (_, P) => {
|
|
1499
|
+
if (!P || P.length === 0) {
|
|
1494
1500
|
v("update:labels", []), v("update:value", []);
|
|
1495
1501
|
return;
|
|
1496
1502
|
}
|
|
1497
|
-
const R =
|
|
1503
|
+
const R = P.map((Je) => Je.value), re = ma(u, e, R), Ge = ha(re);
|
|
1498
1504
|
v("update:labels", Ge), v("update:value", R), o != null && o.value.errClass && d && Y(d);
|
|
1499
1505
|
};
|
|
1500
1506
|
return K(() => {
|
|
@@ -1504,16 +1510,16 @@ const Xt = async (s, t) => {
|
|
|
1504
1510
|
value: "Id",
|
|
1505
1511
|
key: "Id"
|
|
1506
1512
|
}), u && pa(u.autoload, u, e);
|
|
1507
|
-
}),
|
|
1513
|
+
}), Sa(() => {
|
|
1508
1514
|
u && fa(u, e);
|
|
1509
|
-
}), (_,
|
|
1515
|
+
}), (_, P) => {
|
|
1510
1516
|
var R;
|
|
1511
|
-
return m(),
|
|
1512
|
-
c.value.length ? k("", !0) : (m(),
|
|
1517
|
+
return m(), C("div", _t, [
|
|
1518
|
+
c.value.length ? k("", !0) : (m(), C("div", yt, [
|
|
1513
1519
|
w(l(va), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1514
|
-
|
|
1520
|
+
P[0] || (P[0] = I("span", null, "数据加载中...", -1))
|
|
1515
1521
|
])),
|
|
1516
|
-
w(l(Na),
|
|
1522
|
+
w(l(Na), M({
|
|
1517
1523
|
options: c.value,
|
|
1518
1524
|
class: [(R = l(o)) == null ? void 0 : R.errClass],
|
|
1519
1525
|
"allow-clear": !0,
|
|
@@ -1525,12 +1531,12 @@ const Xt = async (s, t) => {
|
|
|
1525
1531
|
}
|
|
1526
1532
|
}), dl = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-7f0def6e"]]), pl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-64193a41"]]);
|
|
1527
1533
|
function ie() {
|
|
1528
|
-
return ie = Object.assign ? Object.assign.bind() : function(
|
|
1534
|
+
return ie = Object.assign ? Object.assign.bind() : function(r) {
|
|
1529
1535
|
for (var t = 1; t < arguments.length; t++) {
|
|
1530
1536
|
var e = arguments[t];
|
|
1531
|
-
for (var a in e) ({}).hasOwnProperty.call(e, a) && (
|
|
1537
|
+
for (var a in e) ({}).hasOwnProperty.call(e, a) && (r[a] = e[a]);
|
|
1532
1538
|
}
|
|
1533
|
-
return
|
|
1539
|
+
return r;
|
|
1534
1540
|
}, ie.apply(null, arguments);
|
|
1535
1541
|
}
|
|
1536
1542
|
const wt = {
|
|
@@ -1560,7 +1566,7 @@ const wt = {
|
|
|
1560
1566
|
nextDecade: "下一年代",
|
|
1561
1567
|
previousCentury: "上一世纪",
|
|
1562
1568
|
nextCentury: "下一世纪"
|
|
1563
|
-
},
|
|
1569
|
+
}, Ct = {
|
|
1564
1570
|
placeholder: "请选择时间",
|
|
1565
1571
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1566
1572
|
}, ue = {
|
|
@@ -1576,22 +1582,22 @@ const wt = {
|
|
|
1576
1582
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1577
1583
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1578
1584
|
}, wt),
|
|
1579
|
-
timePickerLocale: ie({},
|
|
1585
|
+
timePickerLocale: ie({}, Ct)
|
|
1580
1586
|
};
|
|
1581
1587
|
ue.lang.ok = "确定";
|
|
1582
|
-
const fl = /* @__PURE__ */
|
|
1588
|
+
const fl = /* @__PURE__ */ S({
|
|
1583
1589
|
__name: "index",
|
|
1584
1590
|
props: {
|
|
1585
1591
|
valueFormat: {}
|
|
1586
1592
|
},
|
|
1587
|
-
setup(
|
|
1588
|
-
const t =
|
|
1593
|
+
setup(r) {
|
|
1594
|
+
const t = r, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
|
|
1589
1595
|
n != null && n.value.errClass && e && Y(e);
|
|
1590
1596
|
}, u = x(t.valueFormat ?? "YYYY-MM-DD");
|
|
1591
1597
|
return (p, d) => {
|
|
1592
1598
|
var o;
|
|
1593
1599
|
return m(), b(l(Ma), {
|
|
1594
|
-
class:
|
|
1600
|
+
class: F(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1595
1601
|
placeholder: "请选择" + l(a),
|
|
1596
1602
|
locale: l(ue),
|
|
1597
1603
|
valueFormat: u.value,
|
|
@@ -1599,43 +1605,43 @@ const fl = /* @__PURE__ */ C({
|
|
|
1599
1605
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1600
1606
|
};
|
|
1601
1607
|
}
|
|
1602
|
-
}),
|
|
1608
|
+
}), St = /* @__PURE__ */ S({
|
|
1603
1609
|
__name: "index",
|
|
1604
1610
|
props: {
|
|
1605
1611
|
value: {},
|
|
1606
1612
|
undefValue: { type: Boolean, default: !1 }
|
|
1607
1613
|
},
|
|
1608
1614
|
emits: ["update:value"],
|
|
1609
|
-
setup(
|
|
1615
|
+
setup(r, { emit: t }) {
|
|
1610
1616
|
const { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
|
|
1611
1617
|
n != null && n.value.errClass && e && Y(e);
|
|
1612
|
-
}, u =
|
|
1618
|
+
}, u = r, p = u.value === void 0 ? !0 : u.undefValue, d = t, o = x(u.value);
|
|
1613
1619
|
T(
|
|
1614
1620
|
() => u.value,
|
|
1615
|
-
(
|
|
1616
|
-
o.value =
|
|
1621
|
+
(s) => {
|
|
1622
|
+
o.value = s;
|
|
1617
1623
|
},
|
|
1618
1624
|
{ immediate: !0 }
|
|
1619
1625
|
// 立即同步初始值
|
|
1620
1626
|
), T(
|
|
1621
1627
|
() => o.value,
|
|
1622
|
-
(
|
|
1628
|
+
(s) => {
|
|
1623
1629
|
if (o.value === "") {
|
|
1624
1630
|
d("update:value", void 0);
|
|
1625
1631
|
return;
|
|
1626
1632
|
}
|
|
1627
|
-
d("update:value",
|
|
1633
|
+
d("update:value", s);
|
|
1628
1634
|
}
|
|
1629
1635
|
);
|
|
1630
1636
|
const f = () => {
|
|
1631
1637
|
o.value === "" && (o.value = p ? void 0 : null);
|
|
1632
1638
|
};
|
|
1633
|
-
return (
|
|
1639
|
+
return (s, v) => {
|
|
1634
1640
|
var c, h;
|
|
1635
|
-
return m(), b(l(ee),
|
|
1641
|
+
return m(), b(l(ee), M({
|
|
1636
1642
|
class: [
|
|
1637
1643
|
(c = l(n)) == null ? void 0 : c.errClass,
|
|
1638
|
-
((h = l(n)) == null ? void 0 : h.errClass) === "error" && !
|
|
1644
|
+
((h = l(n)) == null ? void 0 : h.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1639
1645
|
],
|
|
1640
1646
|
value: o.value,
|
|
1641
1647
|
"onUpdate:value": v[0] || (v[0] = (y) => o.value = y),
|
|
@@ -1644,32 +1650,32 @@ const fl = /* @__PURE__ */ C({
|
|
|
1644
1650
|
placeholder: "请输入" + l(a),
|
|
1645
1651
|
onBlur: i,
|
|
1646
1652
|
onChange: f
|
|
1647
|
-
},
|
|
1648
|
-
|
|
1653
|
+
}, s.$attrs), Le({ _: 2 }, [
|
|
1654
|
+
s.$slots.addonBefore ? {
|
|
1649
1655
|
name: "addonBefore",
|
|
1650
1656
|
fn: g(() => [
|
|
1651
|
-
D(
|
|
1657
|
+
D(s.$slots, "addonBefore")
|
|
1652
1658
|
]),
|
|
1653
1659
|
key: "0"
|
|
1654
1660
|
} : void 0,
|
|
1655
|
-
|
|
1661
|
+
s.$slots.addonAfter ? {
|
|
1656
1662
|
name: "addonAfter",
|
|
1657
1663
|
fn: g(() => [
|
|
1658
|
-
D(
|
|
1664
|
+
D(s.$slots, "addonAfter")
|
|
1659
1665
|
]),
|
|
1660
1666
|
key: "1"
|
|
1661
1667
|
} : void 0
|
|
1662
1668
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1663
1669
|
};
|
|
1664
1670
|
}
|
|
1665
|
-
}), Tt = /* @__PURE__ */
|
|
1671
|
+
}), Tt = /* @__PURE__ */ S({
|
|
1666
1672
|
__name: "inputIcon",
|
|
1667
1673
|
props: {
|
|
1668
1674
|
value: {}
|
|
1669
1675
|
},
|
|
1670
1676
|
emits: ["update:value"],
|
|
1671
|
-
setup(
|
|
1672
|
-
const e =
|
|
1677
|
+
setup(r, { emit: t }) {
|
|
1678
|
+
const e = r, a = t, n = x(void 0);
|
|
1673
1679
|
return T(
|
|
1674
1680
|
() => e.value,
|
|
1675
1681
|
(i) => {
|
|
@@ -1681,7 +1687,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
1681
1687
|
(i) => {
|
|
1682
1688
|
a("update:value", i);
|
|
1683
1689
|
}
|
|
1684
|
-
), (i, u) => (m(), b(
|
|
1690
|
+
), (i, u) => (m(), b(St, M({
|
|
1685
1691
|
value: n.value,
|
|
1686
1692
|
"onUpdate:value": u[0] || (u[0] = (p) => n.value = p)
|
|
1687
1693
|
}, i.$attrs), {
|
|
@@ -1694,15 +1700,15 @@ const fl = /* @__PURE__ */ C({
|
|
|
1694
1700
|
_: 1
|
|
1695
1701
|
}, 16, ["value"]));
|
|
1696
1702
|
}
|
|
1697
|
-
}), vl = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-358b82ef"]]), ml = /* @__PURE__ */
|
|
1703
|
+
}), vl = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-358b82ef"]]), ml = /* @__PURE__ */ S({
|
|
1698
1704
|
__name: "inputPassword",
|
|
1699
|
-
setup(
|
|
1705
|
+
setup(r) {
|
|
1700
1706
|
const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
|
|
1701
1707
|
a != null && a.value.errClass && t && Y(t);
|
|
1702
1708
|
};
|
|
1703
1709
|
return (i, u) => {
|
|
1704
1710
|
var p;
|
|
1705
|
-
return m(), b(l(Ba),
|
|
1711
|
+
return m(), b(l(Ba), M({
|
|
1706
1712
|
class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1707
1713
|
"allow-clear": !0,
|
|
1708
1714
|
autocomplete: "new-password",
|
|
@@ -1711,15 +1717,15 @@ const fl = /* @__PURE__ */ C({
|
|
|
1711
1717
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1712
1718
|
};
|
|
1713
1719
|
}
|
|
1714
|
-
}), hl = /* @__PURE__ */
|
|
1720
|
+
}), hl = /* @__PURE__ */ S({
|
|
1715
1721
|
__name: "inputNumber",
|
|
1716
|
-
setup(
|
|
1722
|
+
setup(r) {
|
|
1717
1723
|
const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
|
|
1718
1724
|
a != null && a.value.errClass && t && Y(t);
|
|
1719
1725
|
};
|
|
1720
1726
|
return (i, u) => {
|
|
1721
1727
|
var p;
|
|
1722
|
-
return m(), b(l(Ra),
|
|
1728
|
+
return m(), b(l(Ra), M({
|
|
1723
1729
|
class: [[((p = l(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1724
1730
|
onBlur: n,
|
|
1725
1731
|
"allow-clear": !1,
|
|
@@ -1727,7 +1733,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
1727
1733
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1728
1734
|
};
|
|
1729
1735
|
}
|
|
1730
|
-
}), $t = { class: "flex flex-col gap-2" }, It = { key: 1 }, gl = /* @__PURE__ */
|
|
1736
|
+
}), $t = { class: "flex flex-col gap-2" }, It = { key: 1 }, gl = /* @__PURE__ */ S({
|
|
1731
1737
|
__name: "index",
|
|
1732
1738
|
props: {
|
|
1733
1739
|
value: {},
|
|
@@ -1737,19 +1743,19 @@ const fl = /* @__PURE__ */ C({
|
|
|
1737
1743
|
valueHolder: {}
|
|
1738
1744
|
},
|
|
1739
1745
|
emits: ["update:value"],
|
|
1740
|
-
setup(
|
|
1741
|
-
const e =
|
|
1746
|
+
setup(r, { emit: t }) {
|
|
1747
|
+
const e = r, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
|
|
1742
1748
|
let u = !1;
|
|
1743
1749
|
const p = () => {
|
|
1744
|
-
e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((
|
|
1750
|
+
e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((s) => ({
|
|
1745
1751
|
id: Date.now() + Math.random(),
|
|
1746
|
-
text:
|
|
1747
|
-
field:
|
|
1752
|
+
text: s.text,
|
|
1753
|
+
field: s.field,
|
|
1748
1754
|
// 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
|
|
1749
|
-
value: e.value[
|
|
1750
|
-
})) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).map(([
|
|
1755
|
+
value: e.value[s.field] ?? s.value
|
|
1756
|
+
})) : e.value && Object.keys(e.value).length > 0 ? i.value = Object.entries(e.value).map(([s, v]) => ({
|
|
1751
1757
|
id: Date.now() + Math.random(),
|
|
1752
|
-
field:
|
|
1758
|
+
field: s,
|
|
1753
1759
|
value: v
|
|
1754
1760
|
})) : i.value = [];
|
|
1755
1761
|
};
|
|
@@ -1761,13 +1767,13 @@ const fl = /* @__PURE__ */ C({
|
|
|
1761
1767
|
{ immediate: !0 }
|
|
1762
1768
|
);
|
|
1763
1769
|
const d = () => {
|
|
1764
|
-
let
|
|
1765
|
-
e.selectList && e.selectList.length > 0 ? (
|
|
1766
|
-
v.field && (
|
|
1767
|
-
})) :
|
|
1770
|
+
let s;
|
|
1771
|
+
e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, i.value.forEach((v) => {
|
|
1772
|
+
v.field && (s[v.field] = v.value);
|
|
1773
|
+
})) : s = i.value.reduce(
|
|
1768
1774
|
(v, c) => (c.field && (v[c.field] = c.value), v),
|
|
1769
1775
|
{}
|
|
1770
|
-
), u = !0, a("update:value",
|
|
1776
|
+
), u = !0, a("update:value", s);
|
|
1771
1777
|
}, o = () => {
|
|
1772
1778
|
i.value.push({
|
|
1773
1779
|
id: Date.now() + Math.random(),
|
|
@@ -1777,24 +1783,24 @@ const fl = /* @__PURE__ */ C({
|
|
|
1777
1783
|
}, f = () => {
|
|
1778
1784
|
d();
|
|
1779
1785
|
};
|
|
1780
|
-
return (
|
|
1781
|
-
(m(!0),
|
|
1786
|
+
return (s, v) => (m(), C("div", $t, [
|
|
1787
|
+
(m(!0), C(O, null, z(i.value, (c) => (m(), C("div", {
|
|
1782
1788
|
key: c.id,
|
|
1783
1789
|
class: "flex items-center gap-2"
|
|
1784
1790
|
}, [
|
|
1785
1791
|
I("div", {
|
|
1786
|
-
class:
|
|
1792
|
+
class: F([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
|
|
1787
1793
|
}, [
|
|
1788
|
-
!
|
|
1794
|
+
!s.selectList || s.selectList.length === 0 ? (m(), b(l(ee), {
|
|
1789
1795
|
key: 0,
|
|
1790
1796
|
value: c.field,
|
|
1791
1797
|
"onUpdate:value": (h) => c.field = h,
|
|
1792
1798
|
title: c.text || c.field,
|
|
1793
1799
|
class: "w-full",
|
|
1794
|
-
placeholder: c.text ||
|
|
1800
|
+
placeholder: c.text || s.labelHolder || "配置名",
|
|
1795
1801
|
onInput: f,
|
|
1796
1802
|
disabled: !n.value
|
|
1797
|
-
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(),
|
|
1803
|
+
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), C("div", It, [
|
|
1798
1804
|
w(l(ee), {
|
|
1799
1805
|
value: c.text,
|
|
1800
1806
|
"onUpdate:value": (h) => c.text = h,
|
|
@@ -1811,12 +1817,12 @@ const fl = /* @__PURE__ */ C({
|
|
|
1811
1817
|
], 2),
|
|
1812
1818
|
v[0] || (v[0] = I("div", { class: "w-[3%]" }, "=", -1)),
|
|
1813
1819
|
I("div", {
|
|
1814
|
-
class:
|
|
1820
|
+
class: F([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
|
|
1815
1821
|
}, [
|
|
1816
1822
|
w(l(ee), {
|
|
1817
1823
|
value: c.value,
|
|
1818
1824
|
"onUpdate:value": (h) => c.value = h,
|
|
1819
|
-
placeholder:
|
|
1825
|
+
placeholder: s.valueHolder || "请输入" + c.text || "请输入配置值",
|
|
1820
1826
|
onInput: f,
|
|
1821
1827
|
title: c.value
|
|
1822
1828
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
@@ -1836,7 +1842,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
1836
1842
|
})) : k("", !0)
|
|
1837
1843
|
]));
|
|
1838
1844
|
}
|
|
1839
|
-
}), Dt = /* @__PURE__ */ q(ba, [["__scopeId", "data-v-a10d18a5"]]), bl = /* @__PURE__ */
|
|
1845
|
+
}), Dt = /* @__PURE__ */ q(ba, [["__scopeId", "data-v-a10d18a5"]]), bl = /* @__PURE__ */ S({
|
|
1840
1846
|
__name: "radioStatus",
|
|
1841
1847
|
props: {
|
|
1842
1848
|
/**
|
|
@@ -1863,14 +1869,14 @@ const fl = /* @__PURE__ */ C({
|
|
|
1863
1869
|
required: !1
|
|
1864
1870
|
}
|
|
1865
1871
|
},
|
|
1866
|
-
setup(
|
|
1867
|
-
const t =
|
|
1872
|
+
setup(r) {
|
|
1873
|
+
const t = r, e = x(JSON.parse(JSON.stringify(Me.getOptions(t.dataKey))));
|
|
1868
1874
|
return t.all === !0 && e.value.unshift({
|
|
1869
1875
|
label: "全部",
|
|
1870
1876
|
value: t.allValue || [0, 1]
|
|
1871
1877
|
}), (a, n) => (m(), b(Dt, { data: e.value }, null, 8, ["data"]));
|
|
1872
1878
|
}
|
|
1873
|
-
}), xl = /* @__PURE__ */
|
|
1879
|
+
}), xl = /* @__PURE__ */ S({
|
|
1874
1880
|
__name: "index",
|
|
1875
1881
|
props: {
|
|
1876
1882
|
startDate: {},
|
|
@@ -1878,13 +1884,13 @@ const fl = /* @__PURE__ */ C({
|
|
|
1878
1884
|
valueFormat: { default: "YYYY-MM-DD" }
|
|
1879
1885
|
},
|
|
1880
1886
|
emits: ["update:startDate", "update:endDate"],
|
|
1881
|
-
setup(
|
|
1882
|
-
const e =
|
|
1887
|
+
setup(r, { emit: t }) {
|
|
1888
|
+
const e = r, a = t, n = L(), { errInfo: i } = n, u = J(() => e.valueFormat), p = J(() => {
|
|
1883
1889
|
const o = e.startDate, f = e.endDate;
|
|
1884
1890
|
if (!(!o || !f))
|
|
1885
1891
|
try {
|
|
1886
|
-
const
|
|
1887
|
-
return !
|
|
1892
|
+
const s = fe(o), v = fe(f);
|
|
1893
|
+
return !s.isValid() || !v.isValid() ? void 0 : [s, v];
|
|
1888
1894
|
} catch {
|
|
1889
1895
|
return;
|
|
1890
1896
|
}
|
|
@@ -1896,9 +1902,9 @@ const fl = /* @__PURE__ */ C({
|
|
|
1896
1902
|
a("update:startDate", f[0] || null), a("update:endDate", f[1] || null);
|
|
1897
1903
|
};
|
|
1898
1904
|
return (o, f) => {
|
|
1899
|
-
var
|
|
1905
|
+
var s;
|
|
1900
1906
|
return m(), b(l(Oa), {
|
|
1901
|
-
class:
|
|
1907
|
+
class: F([((s = l(i)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1902
1908
|
locale: l(ue),
|
|
1903
1909
|
"value-format": u.value,
|
|
1904
1910
|
value: p.value,
|
|
@@ -1906,39 +1912,39 @@ const fl = /* @__PURE__ */ C({
|
|
|
1906
1912
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1907
1913
|
};
|
|
1908
1914
|
}
|
|
1909
|
-
}), _l = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-a3448c27"]]), yl = /* @__PURE__ */
|
|
1915
|
+
}), _l = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-a3448c27"]]), yl = /* @__PURE__ */ S({
|
|
1910
1916
|
__name: "index",
|
|
1911
|
-
setup(
|
|
1917
|
+
setup(r) {
|
|
1912
1918
|
const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
|
|
1913
1919
|
a != null && a.value.errClass && t && Y(t);
|
|
1914
1920
|
};
|
|
1915
1921
|
return (i, u) => {
|
|
1916
1922
|
var p;
|
|
1917
|
-
return m(), b(l(Aa),
|
|
1923
|
+
return m(), b(l(Aa), M({
|
|
1918
1924
|
class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1919
1925
|
"allow-clear": !0,
|
|
1920
1926
|
placeholder: "请输入" + l(e),
|
|
1921
1927
|
onBlur: n,
|
|
1922
|
-
onKeyup: u[0] || (u[0] =
|
|
1928
|
+
onKeyup: u[0] || (u[0] = Ce(ae(() => {
|
|
1923
1929
|
}, ["stop"]), ["enter", "native"])),
|
|
1924
|
-
onKeydown: u[1] || (u[1] =
|
|
1930
|
+
onKeydown: u[1] || (u[1] = Ce(ae(() => {
|
|
1925
1931
|
}, ["stop"]), ["enter", "native"]))
|
|
1926
1932
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1927
1933
|
};
|
|
1928
1934
|
}
|
|
1929
|
-
}), kl = /* @__PURE__ */
|
|
1935
|
+
}), kl = /* @__PURE__ */ S({
|
|
1930
1936
|
__name: "index",
|
|
1931
1937
|
props: {
|
|
1932
1938
|
valueFormat: {}
|
|
1933
1939
|
},
|
|
1934
|
-
setup(
|
|
1935
|
-
const t =
|
|
1940
|
+
setup(r) {
|
|
1941
|
+
const t = r, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
|
|
1936
1942
|
n != null && n.value.errClass && e && Y(e);
|
|
1937
1943
|
}, u = x(t.valueFormat ?? "HH:mm");
|
|
1938
1944
|
return (p, d) => {
|
|
1939
1945
|
var o;
|
|
1940
1946
|
return m(), b(l(La), {
|
|
1941
|
-
class:
|
|
1947
|
+
class: F(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1942
1948
|
placeholder: "请选择" + l(a),
|
|
1943
1949
|
locale: l(ue),
|
|
1944
1950
|
valueFormat: u.value,
|
|
@@ -1946,7 +1952,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
1946
1952
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1947
1953
|
};
|
|
1948
1954
|
}
|
|
1949
|
-
}), Et = /* @__PURE__ */
|
|
1955
|
+
}), Et = /* @__PURE__ */ S({
|
|
1950
1956
|
__name: "index",
|
|
1951
1957
|
props: {
|
|
1952
1958
|
autoload: { type: Boolean },
|
|
@@ -1955,23 +1961,23 @@ const fl = /* @__PURE__ */ C({
|
|
|
1955
1961
|
value: {}
|
|
1956
1962
|
},
|
|
1957
1963
|
emits: ["change", "update:value"],
|
|
1958
|
-
setup(
|
|
1959
|
-
const e =
|
|
1960
|
-
e.value && e.value.every((
|
|
1961
|
-
o.value.push(
|
|
1964
|
+
setup(r, { emit: t }) {
|
|
1965
|
+
const e = r, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: u } = L(), p = t, d = x([]), o = x([]);
|
|
1966
|
+
e.value && e.value.every((s) => {
|
|
1967
|
+
o.value.push(s.toString());
|
|
1962
1968
|
}), T(
|
|
1963
1969
|
() => e.value,
|
|
1964
|
-
(
|
|
1965
|
-
|
|
1970
|
+
(s) => {
|
|
1971
|
+
s && (o.value = s);
|
|
1966
1972
|
}
|
|
1967
1973
|
);
|
|
1968
|
-
const f = (
|
|
1969
|
-
p("update:value",
|
|
1974
|
+
const f = (s) => {
|
|
1975
|
+
p("update:value", s), p("change", s), o.value = s, u != null && u.value.errClass && n && Y(n);
|
|
1970
1976
|
};
|
|
1971
1977
|
return K(async () => {
|
|
1972
1978
|
if (a.value) {
|
|
1973
|
-
const
|
|
1974
|
-
if (a.value.api || (a.value.api =
|
|
1979
|
+
const s = n == null ? void 0 : n.page;
|
|
1980
|
+
if (a.value.api || (a.value.api = s == null ? void 0 : s.api), a.value.authorize === void 0 && (a.value.authorize = s == null ? void 0 : s.authorize), e.autoload) {
|
|
1975
1981
|
const v = await Re(n, {
|
|
1976
1982
|
urlKey: "list",
|
|
1977
1983
|
url: { ...a.value, url: a.value.url },
|
|
@@ -1981,29 +1987,29 @@ const fl = /* @__PURE__ */ C({
|
|
|
1981
1987
|
d.value = (v == null ? void 0 : v.data) ?? [];
|
|
1982
1988
|
}
|
|
1983
1989
|
}
|
|
1984
|
-
}), (
|
|
1990
|
+
}), (s, v) => {
|
|
1985
1991
|
var c;
|
|
1986
|
-
return m(), b(l(za),
|
|
1992
|
+
return m(), b(l(za), M({
|
|
1987
1993
|
class: ((c = l(u)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1988
1994
|
placeholder: "请输入" + l(i),
|
|
1989
1995
|
targetKeys: o.value,
|
|
1990
1996
|
onChange: f
|
|
1991
|
-
},
|
|
1992
|
-
children: g(({ direction: h, disabled: y, filteredItems: $, onItemSelectAll:
|
|
1993
|
-
D(
|
|
1997
|
+
}, s.$attrs), {
|
|
1998
|
+
children: g(({ direction: h, disabled: y, filteredItems: $, onItemSelectAll: E, onItemSelect: _, selectedKeys: P }) => [
|
|
1999
|
+
D(s.$slots, "children", {
|
|
1994
2000
|
direction: h,
|
|
1995
2001
|
disabled: y,
|
|
1996
2002
|
filteredItems: $,
|
|
1997
|
-
onItemSelectAll:
|
|
2003
|
+
onItemSelectAll: E,
|
|
1998
2004
|
onItemSelect: _,
|
|
1999
|
-
selectedKeys:
|
|
2005
|
+
selectedKeys: P
|
|
2000
2006
|
})
|
|
2001
2007
|
]),
|
|
2002
2008
|
_: 3
|
|
2003
2009
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
2004
2010
|
};
|
|
2005
2011
|
}
|
|
2006
|
-
}), wl = /* @__PURE__ */
|
|
2012
|
+
}), wl = /* @__PURE__ */ S({
|
|
2007
2013
|
__name: "transferTable",
|
|
2008
2014
|
props: {
|
|
2009
2015
|
/**
|
|
@@ -2029,8 +2035,8 @@ const fl = /* @__PURE__ */ C({
|
|
|
2029
2035
|
}
|
|
2030
2036
|
},
|
|
2031
2037
|
emits: ["update:value"],
|
|
2032
|
-
setup(
|
|
2033
|
-
const e =
|
|
2038
|
+
setup(r, { emit: t }) {
|
|
2039
|
+
const e = r, a = t, n = x(e.autoload), i = x(e.value), u = x(e.gridCtrl.primaryKey);
|
|
2034
2040
|
T(
|
|
2035
2041
|
() => i.value,
|
|
2036
2042
|
(o) => {
|
|
@@ -2042,14 +2048,14 @@ const fl = /* @__PURE__ */ C({
|
|
|
2042
2048
|
o && (i.value = o);
|
|
2043
2049
|
}
|
|
2044
2050
|
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = x(!0), e.gridCtrl.buttons = x([]), e.gridCtrl.tools = [];
|
|
2045
|
-
const p = ({ disabled: o, selectedKeys: f, onItemSelectAll:
|
|
2051
|
+
const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: s, onItemSelect: v }) => ({
|
|
2046
2052
|
getCheckboxProps: (c) => ({
|
|
2047
2053
|
// 控制是否禁止
|
|
2048
2054
|
disabled: o || c.disabled
|
|
2049
2055
|
}),
|
|
2050
2056
|
onSelectAll(c, h) {
|
|
2051
2057
|
const y = h.filter(($) => !$.disabled).map(({ [u.value]: $ }) => $);
|
|
2052
|
-
|
|
2058
|
+
s(y, c);
|
|
2053
2059
|
},
|
|
2054
2060
|
onSelect({ [u.value]: c }, h) {
|
|
2055
2061
|
v(c, h);
|
|
@@ -2066,27 +2072,27 @@ const fl = /* @__PURE__ */ C({
|
|
|
2066
2072
|
});
|
|
2067
2073
|
d.value = (o == null ? void 0 : o.data) ?? [];
|
|
2068
2074
|
}
|
|
2069
|
-
}), (o, f) => (m(), b(Et,
|
|
2075
|
+
}), (o, f) => (m(), b(Et, M({
|
|
2070
2076
|
"data-source": d.value,
|
|
2071
|
-
"row-key": (
|
|
2077
|
+
"row-key": (s) => s[u.value],
|
|
2072
2078
|
value: i.value,
|
|
2073
|
-
"onUpdate:value": f[0] || (f[0] = (
|
|
2079
|
+
"onUpdate:value": f[0] || (f[0] = (s) => i.value = s),
|
|
2074
2080
|
"list-style": {
|
|
2075
2081
|
width: "300px",
|
|
2076
2082
|
height: "500px"
|
|
2077
2083
|
},
|
|
2078
2084
|
"show-select-all": !1,
|
|
2079
2085
|
"show-search": !0,
|
|
2080
|
-
"filter-option": (
|
|
2086
|
+
"filter-option": (s, v) => {
|
|
2081
2087
|
for (const c of e.gridCtrl.columns.value)
|
|
2082
|
-
if (v[c.dataIndex].toString().indexOf(
|
|
2088
|
+
if (v[c.dataIndex].toString().indexOf(s) !== -1)
|
|
2083
2089
|
return !0;
|
|
2084
2090
|
return !1;
|
|
2085
2091
|
}
|
|
2086
2092
|
}, o.$attrs), {
|
|
2087
|
-
children: g(({ filteredItems:
|
|
2093
|
+
children: g(({ filteredItems: s, onItemSelectAll: v, onItemSelect: c, selectedKeys: h }) => [
|
|
2088
2094
|
w(l(Ke), {
|
|
2089
|
-
columns:
|
|
2095
|
+
columns: r.gridCtrl.columns.value,
|
|
2090
2096
|
"row-key": u.value,
|
|
2091
2097
|
"row-selection": p({
|
|
2092
2098
|
disabled: !1,
|
|
@@ -2096,7 +2102,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
2096
2102
|
}),
|
|
2097
2103
|
bordered: !1,
|
|
2098
2104
|
size: "small",
|
|
2099
|
-
"data-source":
|
|
2105
|
+
"data-source": s,
|
|
2100
2106
|
scroll: { x: 300 },
|
|
2101
2107
|
"custom-row": (y) => ({
|
|
2102
2108
|
onClick: () => {
|
|
@@ -2109,7 +2115,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
2109
2115
|
_: 1
|
|
2110
2116
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
2111
2117
|
}
|
|
2112
|
-
}), Pt = /* @__PURE__ */
|
|
2118
|
+
}), Pt = /* @__PURE__ */ S({
|
|
2113
2119
|
__name: "index",
|
|
2114
2120
|
props: {
|
|
2115
2121
|
multiple: {
|
|
@@ -2135,8 +2141,8 @@ const fl = /* @__PURE__ */ C({
|
|
|
2135
2141
|
}
|
|
2136
2142
|
},
|
|
2137
2143
|
emits: ["change", "update:value"],
|
|
2138
|
-
setup(
|
|
2139
|
-
const e =
|
|
2144
|
+
setup(r, { emit: t }) {
|
|
2145
|
+
const e = r, a = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: u, labelText: p } = i, d = t;
|
|
2140
2146
|
i.inputEmit = d;
|
|
2141
2147
|
const o = x([]), f = x();
|
|
2142
2148
|
T(
|
|
@@ -2157,7 +2163,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
2157
2163
|
},
|
|
2158
2164
|
{ immediate: !0 }
|
|
2159
2165
|
);
|
|
2160
|
-
const
|
|
2166
|
+
const s = (c) => {
|
|
2161
2167
|
e.multiple ? f.value = c ?? [] : c == null ? f.value = a ? void 0 : null : f.value = c, d("change", f.value);
|
|
2162
2168
|
};
|
|
2163
2169
|
K(() => {
|
|
@@ -2172,31 +2178,31 @@ const fl = /* @__PURE__ */ C({
|
|
|
2172
2178
|
};
|
|
2173
2179
|
return (c, h) => {
|
|
2174
2180
|
var y;
|
|
2175
|
-
return m(), b(l(Ua),
|
|
2181
|
+
return m(), b(l(Ua), M({
|
|
2176
2182
|
class: [[(y = l(u)) == null ? void 0 : y.errClass], "w-full"],
|
|
2177
2183
|
"tree-line": "",
|
|
2178
|
-
multiple:
|
|
2184
|
+
multiple: r.multiple,
|
|
2179
2185
|
"tree-default-expanded-keys": ["-"],
|
|
2180
2186
|
value: f.value,
|
|
2181
2187
|
"onUpdate:value": h[0] || (h[0] = ($) => f.value = $),
|
|
2182
2188
|
"tree-data": o.value,
|
|
2183
2189
|
placeholder: "请选择" + l(p),
|
|
2184
|
-
onChange:
|
|
2190
|
+
onChange: s,
|
|
2185
2191
|
onClear: v
|
|
2186
2192
|
}, c.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2187
2193
|
};
|
|
2188
2194
|
}
|
|
2189
|
-
}),
|
|
2195
|
+
}), Cl = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-a0ed9c4e"]]), Ft = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Nt = { class: "flex w-full h-full min-h-full" }, Mt = {
|
|
2190
2196
|
key: 0,
|
|
2191
2197
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2192
|
-
}, Bt = { class: "flex-1 h-full overflow-y-auto" },
|
|
2198
|
+
}, Bt = { class: "flex-1 h-full overflow-y-auto" }, Sl = /* @__PURE__ */ S({
|
|
2193
2199
|
__name: "index",
|
|
2194
2200
|
props: {
|
|
2195
2201
|
left: { type: Boolean }
|
|
2196
2202
|
},
|
|
2197
|
-
setup(
|
|
2203
|
+
setup(r) {
|
|
2198
2204
|
const { useToken: t } = ze, { token: e } = t();
|
|
2199
|
-
return (a, n) => (m(),
|
|
2205
|
+
return (a, n) => (m(), C("div", Ft, [
|
|
2200
2206
|
w(l(Va), {
|
|
2201
2207
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2202
2208
|
style: be({
|
|
@@ -2205,7 +2211,7 @@ const fl = /* @__PURE__ */ C({
|
|
|
2205
2211
|
}, {
|
|
2206
2212
|
default: g(() => [
|
|
2207
2213
|
I("div", Nt, [
|
|
2208
|
-
a.left ? (m(),
|
|
2214
|
+
a.left ? (m(), C("div", Mt, [
|
|
2209
2215
|
D(a.$slots, "left")
|
|
2210
2216
|
])) : k("", !0),
|
|
2211
2217
|
I("div", Bt, [
|
|
@@ -2219,45 +2225,45 @@ const fl = /* @__PURE__ */ C({
|
|
|
2219
2225
|
}
|
|
2220
2226
|
});
|
|
2221
2227
|
export {
|
|
2222
|
-
|
|
2223
|
-
|
|
2228
|
+
wr as Alert,
|
|
2229
|
+
Ar as AppIcon,
|
|
2224
2230
|
ce as AppRouter,
|
|
2225
|
-
|
|
2231
|
+
vr as AsyncUploader,
|
|
2226
2232
|
ul as AutoComplete,
|
|
2227
|
-
|
|
2233
|
+
Lr as Breadcrumb,
|
|
2228
2234
|
A as Button,
|
|
2229
2235
|
Qe as Cache,
|
|
2230
2236
|
at as CacheKeys,
|
|
2231
|
-
|
|
2237
|
+
br as CanPreviewFileExt,
|
|
2232
2238
|
dl as Cascader,
|
|
2233
2239
|
pl as Checkbox,
|
|
2234
|
-
|
|
2240
|
+
Sl as Content,
|
|
2235
2241
|
fl as DatePicker,
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2242
|
+
zr as Datetime,
|
|
2243
|
+
Qr as Dialog,
|
|
2244
|
+
rl as Drawer,
|
|
2239
2245
|
Il as EventPrefix,
|
|
2240
|
-
|
|
2246
|
+
sl as Form,
|
|
2241
2247
|
ol as FormItem,
|
|
2242
2248
|
tl as Fullscreen,
|
|
2243
|
-
|
|
2244
|
-
|
|
2249
|
+
Ur as Header,
|
|
2250
|
+
Vr as HeaderExits,
|
|
2245
2251
|
lt as Helper,
|
|
2246
2252
|
Dl as ICONS_LIB,
|
|
2247
|
-
|
|
2253
|
+
Yr as Icon,
|
|
2248
2254
|
ft as Icontool,
|
|
2249
|
-
|
|
2255
|
+
St as Input,
|
|
2250
2256
|
vl as InputIcon,
|
|
2251
2257
|
hl as InputNumber,
|
|
2252
2258
|
ml as InputPassword,
|
|
2253
2259
|
ll as LayoutIcon,
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2260
|
+
Cr as Loading,
|
|
2261
|
+
Kr as Menu,
|
|
2262
|
+
Wr as MenuTabs,
|
|
2257
2263
|
El as MicroOpenApis,
|
|
2258
2264
|
Me as OPTIONS,
|
|
2259
2265
|
ua as OptionCommProps,
|
|
2260
|
-
|
|
2266
|
+
Hr as ProjectIcon,
|
|
2261
2267
|
gl as PropEditor,
|
|
2262
2268
|
j as ProviderKeys,
|
|
2263
2269
|
Dt as Radio,
|
|
@@ -2273,33 +2279,33 @@ export {
|
|
|
2273
2279
|
kl as TimePicker,
|
|
2274
2280
|
U as ToolIcon,
|
|
2275
2281
|
gt as Toolbar,
|
|
2276
|
-
|
|
2282
|
+
Rr as Tooltip,
|
|
2277
2283
|
Et as Transfer,
|
|
2278
2284
|
wl as TransferTable,
|
|
2279
2285
|
cl as Tree,
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2286
|
+
Cl as TreeSelect,
|
|
2287
|
+
xr as UploadList,
|
|
2288
|
+
mr as UploadStatus,
|
|
2289
|
+
Sr as appendExcelData,
|
|
2290
|
+
Tr as checkExcelDuplicates,
|
|
2285
2291
|
Pl as checkIconsExpired,
|
|
2286
2292
|
va as circleLoading,
|
|
2287
2293
|
Ze as createFromIconfont,
|
|
2288
|
-
$
|
|
2294
|
+
$r as createMarkedExcelView,
|
|
2289
2295
|
Fl as crumbs,
|
|
2290
2296
|
Xt as csvToExcelBlob,
|
|
2291
2297
|
He as csvToExcelView,
|
|
2292
|
-
|
|
2298
|
+
Ir as csvToNormalized,
|
|
2293
2299
|
De as defaultTools,
|
|
2294
2300
|
Nl as doDelete,
|
|
2295
2301
|
Ml as doExecute,
|
|
2296
2302
|
Re as doQuery,
|
|
2297
2303
|
Bl as doSave,
|
|
2298
|
-
|
|
2304
|
+
_r as donwloadFromMinio,
|
|
2299
2305
|
We as downloadBlob,
|
|
2300
2306
|
Rl as eventBus,
|
|
2301
|
-
|
|
2302
|
-
|
|
2307
|
+
Dr as excelToExcelView,
|
|
2308
|
+
Er as excelToNormalized,
|
|
2303
2309
|
al as exportResults,
|
|
2304
2310
|
el as exportSelectedRows,
|
|
2305
2311
|
Ne as filterColumns,
|
|
@@ -2315,7 +2321,7 @@ export {
|
|
|
2315
2321
|
H as getToolStatus,
|
|
2316
2322
|
G as getToolVisible,
|
|
2317
2323
|
ke as gridQueryFind,
|
|
2318
|
-
|
|
2324
|
+
sa as gridQueryList,
|
|
2319
2325
|
Vl as gridRowUpdate,
|
|
2320
2326
|
na as gridStatusUpdate,
|
|
2321
2327
|
Jt as initCacheCheck,
|
|
@@ -2326,7 +2332,7 @@ export {
|
|
|
2326
2332
|
Z as isEmpty,
|
|
2327
2333
|
pa as loadOption,
|
|
2328
2334
|
Hl as mergeColumns,
|
|
2329
|
-
|
|
2335
|
+
Pr as normalizedToExcelView,
|
|
2330
2336
|
Za as onColumnVisibleChanged,
|
|
2331
2337
|
aa as onFormClose,
|
|
2332
2338
|
Pe as onFormSave,
|
|
@@ -2338,38 +2344,38 @@ export {
|
|
|
2338
2344
|
ma as onOptionChanged,
|
|
2339
2345
|
Ha as onReloadClick,
|
|
2340
2346
|
V as onToolClicked,
|
|
2341
|
-
|
|
2347
|
+
ra as openNewForm,
|
|
2342
2348
|
Ql as outFormDataFields,
|
|
2343
2349
|
ql as parseIcons,
|
|
2344
|
-
|
|
2350
|
+
hr as path,
|
|
2345
2351
|
Gl as pendingNavigation,
|
|
2346
2352
|
Jl as pinia,
|
|
2347
|
-
|
|
2353
|
+
yr as previewFromMinio,
|
|
2348
2354
|
Zt as processCsvFile,
|
|
2349
|
-
|
|
2355
|
+
Fr as processExcelFile,
|
|
2350
2356
|
Be as queryTree,
|
|
2351
2357
|
Xl as resetRules,
|
|
2352
2358
|
Zl as routes,
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2359
|
+
er as saveForm,
|
|
2360
|
+
ar as setFormData,
|
|
2361
|
+
tr as showBreadcrumb,
|
|
2362
|
+
Nr as toExcel,
|
|
2357
2363
|
fa as unloadOption,
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2364
|
+
lr as uploadTempBtn,
|
|
2365
|
+
rr as uploadTempOpener,
|
|
2366
|
+
sr as useAppInfo,
|
|
2367
|
+
or as useEditorFactory,
|
|
2362
2368
|
Fe as useFormItemFactory,
|
|
2363
|
-
|
|
2364
|
-
|
|
2369
|
+
nr as useGridFactory,
|
|
2370
|
+
ir as useHostInfo,
|
|
2365
2371
|
L as useInputFactory,
|
|
2366
2372
|
da as useOptionFactory,
|
|
2367
|
-
|
|
2368
|
-
|
|
2373
|
+
cr as usePageFactory,
|
|
2374
|
+
ur as usePageInfo,
|
|
2369
2375
|
me as useSettingInfo,
|
|
2370
2376
|
et as useToolFactory,
|
|
2371
|
-
|
|
2377
|
+
dr as useTreeFactory,
|
|
2372
2378
|
Ee as useUserInfo,
|
|
2373
|
-
|
|
2374
|
-
|
|
2379
|
+
pr as validateData,
|
|
2380
|
+
Mr as validateExcel
|
|
2375
2381
|
};
|