@skyfox2000/webui 1.4.15 → 1.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/modules/{baseLayout-BtJNPMBy.js → baseLayout-DQQ-vZCD.js} +3 -3
- package/lib/assets/modules/{file-upload-CYNi1NsW.js → file-upload-Dc61Tbof.js} +1 -1
- package/lib/assets/modules/{index-BOOirPG2.js → index-CX7vtghj.js} +1 -1
- package/lib/assets/modules/{index-DWnhNqJu.js → index-DrGkF0qX.js} +2 -2
- package/lib/assets/modules/{index-Cj6QnoC7.js → index-Dz624mC-.js} +2 -2
- package/lib/assets/modules/{menuTabs-DDGkYuvg.js → menuTabs-BwAVx2tx.js} +2 -2
- package/lib/assets/modules/{toolIcon-DXQt60Ya.js → toolIcon-B2btIpdL.js} +1 -1
- package/lib/assets/modules/{upload-template-CaeUt6VI.js → upload-template-BqG06zPn.js} +318 -310
- package/lib/assets/modules/{uploadList-D0jw6jNr.js → uploadList-DlbvQOtR.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +316 -312
- package/package.json +1 -1
- package/src/components/content/table/index.vue +1 -1
- package/src/components/form/autoComplete/index.vue +5 -1
- package/src/components/form/cascader/index.vue +8 -10
- package/src/components/form/checkbox/index.vue +8 -11
- package/src/components/form/radio/index.vue +9 -14
- package/src/components/form/select/index.vue +4 -1
- package/src/components/form/treeSelect/index.vue +5 -1
package/lib/webui.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { u 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 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
|
|
3
|
-
import { A as vr, U as mr, p as hr } from "./assets/modules/file-upload-
|
|
4
|
-
import { EnvConfig as
|
|
5
|
-
import { FrontCache as se, httpPost as
|
|
1
|
+
import { u as Pe, i as Z, a as me, L as Ze, c as ea, P as j, o as Fe, b as aa, d as ta, e as Ne, r as ue, f as la, g as ra, h as Me, j as sa, k as we, l as oa, _ as na, m as ia, O as Be, n as ua, q as Re, p as ca, s as da, t as L, v as pa, w as fa, x as va, y as ma, z as ha, A as ga, B as Y, C as ba, D as xa, E as _a, F as Oe } from "./assets/modules/upload-template-BqG06zPn.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 ur, ai as cr, K as dr, a1 as pr } from "./assets/modules/upload-template-BqG06zPn.js";
|
|
3
|
+
import { A as vr, U as mr, p as hr } from "./assets/modules/file-upload-Dc61Tbof.js";
|
|
4
|
+
import { EnvConfig as Ce } from "@skyfox2000/microbase";
|
|
5
|
+
import { FrontCache as se, httpPost as Ae, ResStatus as Le, SERVER_HOST as ya, fieldMapping as oe } from "@skyfox2000/fapi";
|
|
6
6
|
import he from "vue-m-message";
|
|
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
|
|
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 ze, useSlots as ka, Fragment as O, renderList as z, resolveDynamicComponent as wa, onActivated as xe, shallowRef as Ca, onUnmounted as Sa, withKeys as Se } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import fe from "dayjs";
|
|
10
|
-
import { Popover as Ta, theme as
|
|
10
|
+
import { Popover as Ta, theme as Ue, Drawer as $a, Space as te, Form as Ve, message as Ia, FormItem as Ye, ConfigProvider as Te, Popconfirm as Da, Button as Ke, DropdownButton as Ea, Menu as _e, MenuItem as ye, Dropdown as ve, Checkbox as Pa, Table as We, 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
|
-
import { d as
|
|
13
|
-
import { C as br, U as xr, a as _r, p as yr } from "./assets/modules/uploadList-
|
|
14
|
-
import { c 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-
|
|
16
|
-
import { _ as A } from "./assets/modules/index-
|
|
17
|
-
import { _ as U } from "./assets/modules/toolIcon-
|
|
18
|
-
import { a as Rr } from "./assets/modules/toolIcon-
|
|
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-
|
|
20
|
-
import { _ as Qr } from "./assets/modules/index-
|
|
12
|
+
import { d as He } from "./assets/modules/uploadList-DlbvQOtR.js";
|
|
13
|
+
import { C as br, U as xr, a as _r, p as yr } from "./assets/modules/uploadList-DlbvQOtR.js";
|
|
14
|
+
import { c as je } from "./assets/modules/index-Dz624mC-.js";
|
|
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-Dz624mC-.js";
|
|
16
|
+
import { _ as A } from "./assets/modules/index-CX7vtghj.js";
|
|
17
|
+
import { _ as U } from "./assets/modules/toolIcon-B2btIpdL.js";
|
|
18
|
+
import { a as Rr } from "./assets/modules/toolIcon-B2btIpdL.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-BwAVx2tx.js";
|
|
20
|
+
import { _ as Qr } from "./assets/modules/index-DrGkF0qX.js";
|
|
21
21
|
import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
|
-
const
|
|
22
|
+
const $e = (r, t, e, a = "remove") => {
|
|
23
23
|
if (!e)
|
|
24
24
|
if (a === "disable") {
|
|
25
25
|
const n = t.component;
|
|
@@ -27,31 +27,31 @@ const Te = (r, t, e, a = "remove") => {
|
|
|
27
27
|
} else {
|
|
28
28
|
const n = document.createComment("No Permission"), i = r.parentNode;
|
|
29
29
|
if (i) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const c = t.component;
|
|
31
|
+
c ? c.props.style = { display: "none" } : i.replaceChild(n, r);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
},
|
|
35
|
-
var
|
|
36
|
-
const t =
|
|
34
|
+
}, Ie = (r) => {
|
|
35
|
+
var c, p;
|
|
36
|
+
const t = Pe(), { url: e, role: a, permit: n } = r;
|
|
37
37
|
if (Z(a) && Z(n))
|
|
38
38
|
return !0;
|
|
39
|
-
const i = e ?? ((p = (
|
|
40
|
-
if (
|
|
39
|
+
const i = e ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
|
|
40
|
+
if (Ce.VITE_PERMISSION_MODE === "role")
|
|
41
41
|
return Z(a) ? !0 : t.hasRole(a);
|
|
42
|
-
if (
|
|
42
|
+
if (Ce.VITE_PERMISSION_MODE === "permit") {
|
|
43
43
|
let d = !1, o = !1;
|
|
44
44
|
return Z(a) || (d = t.hasRole(a)), t.isAdmin() ? d : (Z(n) || (o = t.hasPermit(i, n)), d || o);
|
|
45
45
|
}
|
|
46
46
|
return !1;
|
|
47
47
|
}, Ka = {
|
|
48
48
|
mounted(r, t, e) {
|
|
49
|
-
const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n,
|
|
50
|
-
|
|
49
|
+
const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = Ie(a);
|
|
50
|
+
$e(r, e, c, i);
|
|
51
51
|
},
|
|
52
52
|
updated(r, t, e) {
|
|
53
|
-
const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n,
|
|
54
|
-
|
|
53
|
+
const a = t.value || {}, n = t.arg || "remove", i = a.behavior || n, c = Ie(a);
|
|
54
|
+
$e(r, e, c, i);
|
|
55
55
|
}
|
|
56
56
|
}, Wa = {
|
|
57
57
|
mounted: (r, t) => {
|
|
@@ -78,9 +78,9 @@ const Te = (r, t, e, a = "remove") => {
|
|
|
78
78
|
if (n)
|
|
79
79
|
return n;
|
|
80
80
|
}
|
|
81
|
-
},
|
|
81
|
+
}, ke = (r, t, e) => {
|
|
82
82
|
const a = [], n = [];
|
|
83
|
-
return e || (e = [...r]), e.length && e.forEach((i,
|
|
83
|
+
return e || (e = [...r]), e.length && e.forEach((i, c) => {
|
|
84
84
|
let p;
|
|
85
85
|
if (typeof i == "string") {
|
|
86
86
|
const d = W(r, i);
|
|
@@ -93,7 +93,7 @@ const Te = (r, t, e, a = "remove") => {
|
|
|
93
93
|
o && (o.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
|
|
94
94
|
p.formVisible.value = !0;
|
|
95
95
|
}, 1)) : he.warning("未配置点击处理事件!");
|
|
96
|
-
}), t === 0 ||
|
|
96
|
+
}), t === 0 || c < t ? a.push(p) : n.push(p);
|
|
97
97
|
}), { buttons: a, menus: n };
|
|
98
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;
|
|
@@ -115,20 +115,20 @@ const Te = (r, t, e, a = "remove") => {
|
|
|
115
115
|
t.selectable.value = !t.selectable.value, t.selectable.value || (t.selectKeys.value = [], t.selectRows.value = []);
|
|
116
116
|
}, Ga = (r, t) => {
|
|
117
117
|
t.rowExpand.value = !t.rowExpand.value;
|
|
118
|
-
},
|
|
118
|
+
}, De = (r, t) => {
|
|
119
119
|
t.selectable.value = !t.selectable.value;
|
|
120
120
|
}, V = (r, t, e, a, n) => {
|
|
121
121
|
(!r.confirm || n) && r.click && (t ? r.click(t, e, a) : r.click(null, e, a)), Xa(r);
|
|
122
122
|
}, Ja = (r, t) => {
|
|
123
123
|
t.selectable.value = !t.selectable.value;
|
|
124
|
-
},
|
|
124
|
+
}, Qe = () => {
|
|
125
125
|
const r = me();
|
|
126
126
|
r.setFullscreen(!r.fullscreen);
|
|
127
127
|
}, Xa = (r, t) => {
|
|
128
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
129
|
}, Za = (r, t) => {
|
|
130
130
|
t ? delete r.visible : r.visible = !1;
|
|
131
|
-
},
|
|
131
|
+
}, Ee = [
|
|
132
132
|
{
|
|
133
133
|
key: "Reload",
|
|
134
134
|
label: "刷新表格",
|
|
@@ -173,12 +173,12 @@ const Te = (r, t, e, a = "remove") => {
|
|
|
173
173
|
{
|
|
174
174
|
key: "tool.export.excel.all",
|
|
175
175
|
label: "全部记录",
|
|
176
|
-
click:
|
|
176
|
+
click: De
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
key: "tool.export.excel.selected",
|
|
180
180
|
label: "选中的记录",
|
|
181
|
-
click:
|
|
181
|
+
click: De
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
184
|
},
|
|
@@ -210,19 +210,19 @@ const Te = (r, t, e, a = "remove") => {
|
|
|
210
210
|
icon: "icon-fullscreen",
|
|
211
211
|
iconStatus: 0,
|
|
212
212
|
icons: ["icon-fullscreen", "icon-exitscreen"],
|
|
213
|
-
click:
|
|
213
|
+
click: Qe
|
|
214
214
|
}
|
|
215
215
|
], et = (r) => {
|
|
216
216
|
if (!r.tools || r.tools.length > 0) {
|
|
217
217
|
const t = [];
|
|
218
|
-
return r.tools ? t.push(...r.tools) : t.push(...
|
|
218
|
+
return r.tools ? t.push(...r.tools) : t.push(...Ee), { tools: ke(Ee, 0, t).buttons };
|
|
219
219
|
}
|
|
220
220
|
return {
|
|
221
221
|
tools: []
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
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
|
-
class
|
|
225
|
+
class qe {
|
|
226
226
|
/**
|
|
227
227
|
* 设置缓存数据(带服务器时间)
|
|
228
228
|
*/
|
|
@@ -244,7 +244,7 @@ class Qe {
|
|
|
244
244
|
*/
|
|
245
245
|
static getData(t) {
|
|
246
246
|
const e = se.get({ key: t, storage: "local" });
|
|
247
|
-
return e &&
|
|
247
|
+
return e && qe.isTimedData(e) ? e.data : e ?? null;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* 清除缓存
|
|
@@ -279,7 +279,7 @@ class Qe {
|
|
|
279
279
|
}
|
|
280
280
|
async function Jt() {
|
|
281
281
|
try {
|
|
282
|
-
const r = await
|
|
282
|
+
const r = await Ae(
|
|
283
283
|
{
|
|
284
284
|
api: "PLATFORM_API",
|
|
285
285
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -287,18 +287,18 @@ async function Jt() {
|
|
|
287
287
|
},
|
|
288
288
|
{}
|
|
289
289
|
);
|
|
290
|
-
if ((r == null ? void 0 : r.status) ===
|
|
290
|
+
if ((r == null ? void 0 : r.status) === Le.SUCCESS) {
|
|
291
291
|
const t = r.data;
|
|
292
292
|
Object.keys(t).forEach((e) => {
|
|
293
293
|
const a = t[e];
|
|
294
294
|
["local", "session"].forEach((i) => {
|
|
295
|
-
const
|
|
296
|
-
for (let p = 0; p <
|
|
297
|
-
const d =
|
|
295
|
+
const c = i === "local" ? localStorage : sessionStorage;
|
|
296
|
+
for (let p = 0; p < c.length; p++) {
|
|
297
|
+
const d = c.key(p);
|
|
298
298
|
if (d && d.endsWith(e))
|
|
299
299
|
try {
|
|
300
|
-
const o = JSON.parse(
|
|
301
|
-
o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== a &&
|
|
300
|
+
const o = JSON.parse(c.getItem(d));
|
|
301
|
+
o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== a && c.removeItem(d);
|
|
302
302
|
} catch {
|
|
303
303
|
continue;
|
|
304
304
|
}
|
|
@@ -311,7 +311,7 @@ async function Jt() {
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
const Xt = async (r, t) => {
|
|
314
|
-
const e = await
|
|
314
|
+
const e = await je(r, t);
|
|
315
315
|
if (e.success)
|
|
316
316
|
return {
|
|
317
317
|
blobUrl: e.blobUrl,
|
|
@@ -322,7 +322,7 @@ const Xt = async (r, t) => {
|
|
|
322
322
|
throw new Error(e.error || "CSV转Excel失败");
|
|
323
323
|
}, Zt = async (r, t) => {
|
|
324
324
|
try {
|
|
325
|
-
const a = new TextDecoder("utf-8").decode(r), n = await
|
|
325
|
+
const a = new TextDecoder("utf-8").decode(r), n = await je(a, t);
|
|
326
326
|
return {
|
|
327
327
|
success: n.success,
|
|
328
328
|
blobUrl: n.blobUrl,
|
|
@@ -339,44 +339,44 @@ const Xt = async (r, t) => {
|
|
|
339
339
|
}
|
|
340
340
|
}, el = async (r, t, e) => {
|
|
341
341
|
try {
|
|
342
|
-
const n = (await import("@json2csv/plainjs")).Parser, i =
|
|
342
|
+
const n = (await import("@json2csv/plainjs")).Parser, i = Ge(r), c = t.filter((v) => v.visible !== !1 && v.export !== !1), p = c.map((v) => ({
|
|
343
343
|
label: v.title,
|
|
344
344
|
value: v.dataIndex || v.key || ""
|
|
345
345
|
})), d = e.map((v) => {
|
|
346
|
-
const
|
|
347
|
-
return
|
|
346
|
+
const u = { ...v };
|
|
347
|
+
return c.forEach((h) => {
|
|
348
348
|
const y = h.dataIndex || h.key;
|
|
349
|
-
y && h.customRender && (
|
|
350
|
-
}),
|
|
349
|
+
y && h.customRender && (u[y] = h.customRender(v[y], v));
|
|
350
|
+
}), u;
|
|
351
351
|
}), f = new n({ fields: p }).parse(d), s = new Blob([`\uFEFF${f}`], { type: "text/csv" });
|
|
352
|
-
|
|
352
|
+
He(s, i);
|
|
353
353
|
} catch (a) {
|
|
354
354
|
console.error("导出失败:", a), he.error("文件导出失败,请稍后重试");
|
|
355
355
|
}
|
|
356
|
-
},
|
|
356
|
+
}, Ge = (r) => {
|
|
357
357
|
const t = /\{([^}]+)\}/g;
|
|
358
358
|
return r.replace(t, (e, a) => fe().format(a));
|
|
359
359
|
}, al = async (r, t, e, a) => {
|
|
360
360
|
try {
|
|
361
|
-
const i = (await import("@json2csv/plainjs")).Parser,
|
|
361
|
+
const i = (await import("@json2csv/plainjs")).Parser, c = Ge(r), p = t.filter((s) => s.visible !== !1), d = p.map((s) => ({
|
|
362
362
|
label: s.title,
|
|
363
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,
|
|
367
|
-
if (e.isGridLoading.value = !1, (s == null ? void 0 : s.status) ===
|
|
366
|
+
return a.api || (a.api = o.api), a.authorize === void 0 && (a.authorize = o.authorize), e.isGridLoading.value = !0, Ae(a, f).then((s) => {
|
|
367
|
+
if (e.isGridLoading.value = !1, (s == null ? void 0 : s.status) === Le.SUCCESS) {
|
|
368
368
|
if (s.data) {
|
|
369
|
-
const
|
|
369
|
+
const u = s.data.map((E) => {
|
|
370
370
|
const _ = { ...E };
|
|
371
371
|
return p.forEach((P) => {
|
|
372
372
|
const R = P.dataIndex || P.key;
|
|
373
373
|
R && P.customRender && (_[R] = P.customRender(E[R], E));
|
|
374
374
|
}), _;
|
|
375
|
-
}), y = new i({ fields: d }).parse(
|
|
376
|
-
|
|
375
|
+
}), y = new i({ fields: d }).parse(u), $ = new Blob([`\uFEFF${y}`], { type: "text/csv" });
|
|
376
|
+
He($, c);
|
|
377
377
|
}
|
|
378
|
-
} else if ((s == null ? void 0 : s.errno) ==
|
|
379
|
-
|
|
378
|
+
} else if ((s == null ? void 0 : s.errno) == Ze) {
|
|
379
|
+
Pe().logout(!1);
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
382
|
});
|
|
@@ -388,7 +388,7 @@ const Xt = async (r, t) => {
|
|
|
388
388
|
setup(r) {
|
|
389
389
|
const t = me();
|
|
390
390
|
return (e, a) => (m(), b(U, {
|
|
391
|
-
onClick: ae(l(
|
|
391
|
+
onClick: ae(l(Qe), ["stop"]),
|
|
392
392
|
icon: l(t).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
393
393
|
class: "w-[17px] h-[17px]"
|
|
394
394
|
}, null, 8, ["onClick", "icon"]));
|
|
@@ -436,8 +436,8 @@ const Xt = async (r, t) => {
|
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
438
|
setup(r) {
|
|
439
|
-
const t = r, a =
|
|
440
|
-
iconUrl: `${
|
|
439
|
+
const t = r, a = ea({
|
|
440
|
+
iconUrl: `${ya.MICROLAYOUT_ICONS}`,
|
|
441
441
|
monoColor: !0,
|
|
442
442
|
icon: t.icon,
|
|
443
443
|
icons: t.icons
|
|
@@ -460,7 +460,7 @@ const Xt = async (r, t) => {
|
|
|
460
460
|
drawerSaveAs: { type: Function }
|
|
461
461
|
},
|
|
462
462
|
setup(r) {
|
|
463
|
-
const { useToken: t } =
|
|
463
|
+
const { useToken: t } = Ue, { 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) => {
|
|
@@ -469,12 +469,12 @@ const Xt = async (r, t) => {
|
|
|
469
469
|
), K(() => {
|
|
470
470
|
a.value = i.visible.value ?? !1;
|
|
471
471
|
});
|
|
472
|
-
const
|
|
473
|
-
n.drawerSave ? n.drawerSave() : i &&
|
|
472
|
+
const c = () => {
|
|
473
|
+
n.drawerSave ? n.drawerSave() : i && Fe(i);
|
|
474
474
|
}, p = () => {
|
|
475
|
-
n.drawerSaveAs ? n.drawerSaveAs() : i &&
|
|
475
|
+
n.drawerSaveAs ? n.drawerSaveAs() : i && aa(i);
|
|
476
476
|
}, d = () => {
|
|
477
|
-
|
|
477
|
+
ta(i);
|
|
478
478
|
};
|
|
479
479
|
return (o, f) => (m(), b(l($a), {
|
|
480
480
|
open: a.value,
|
|
@@ -544,7 +544,7 @@ const Xt = async (r, t) => {
|
|
|
544
544
|
}, 8, ["loading"])) : k("", !0),
|
|
545
545
|
o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
|
|
546
546
|
key: 2,
|
|
547
|
-
onClick:
|
|
547
|
+
onClick: c,
|
|
548
548
|
type: "primary",
|
|
549
549
|
loading: l(i).isFormSaving.value
|
|
550
550
|
}, {
|
|
@@ -572,7 +572,7 @@ const Xt = async (r, t) => {
|
|
|
572
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
|
-
return Q((m(), b(l(
|
|
575
|
+
return Q((m(), b(l(Ve), {
|
|
576
576
|
"label-col": { flex: t.labelWidth ?? "85px" },
|
|
577
577
|
"wrapper-col": {
|
|
578
578
|
flex: t.wrapperWidth ?? "1 0 280px"
|
|
@@ -590,7 +590,7 @@ const Xt = async (r, t) => {
|
|
|
590
590
|
[
|
|
591
591
|
i,
|
|
592
592
|
() => {
|
|
593
|
-
l(e) && l(
|
|
593
|
+
l(e) && l(Fe)(l(e));
|
|
594
594
|
}
|
|
595
595
|
]
|
|
596
596
|
]);
|
|
@@ -611,9 +611,9 @@ const Xt = async (r, t) => {
|
|
|
611
611
|
bottomMargin: {}
|
|
612
612
|
},
|
|
613
613
|
setup(r) {
|
|
614
|
-
const t = r, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i =
|
|
614
|
+
const t = r, e = X(), a = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Ne(t, a), c = x(!1);
|
|
615
615
|
setTimeout(() => {
|
|
616
|
-
|
|
616
|
+
c.value = !0;
|
|
617
617
|
}, 30);
|
|
618
618
|
const p = (o, f) => {
|
|
619
619
|
if (!f)
|
|
@@ -633,7 +633,7 @@ const Xt = async (r, t) => {
|
|
|
633
633
|
return (o, f) => (m(), C("div", {
|
|
634
634
|
class: F(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
|
|
635
635
|
}, [
|
|
636
|
-
|
|
636
|
+
c.value ? (m(), b(l(Ye), M({
|
|
637
637
|
key: 0,
|
|
638
638
|
required: d.value,
|
|
639
639
|
class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
|
|
@@ -675,7 +675,7 @@ const Xt = async (r, t) => {
|
|
|
675
675
|
}, N(l(i).msg), 5)) : k("", !0)
|
|
676
676
|
], 2));
|
|
677
677
|
}
|
|
678
|
-
}), nt = { class: "w-1/3 relative mb-1" }, it = { class: "flex items-center w-[90%]" },
|
|
678
|
+
}), nt = { class: "w-1/3 relative mb-1" }, it = { class: "flex items-center w-[90%]" }, ut = { class: "flex-grow pl-1" }, ct = {
|
|
679
679
|
key: 0,
|
|
680
680
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
681
681
|
}, pe = /* @__PURE__ */ S({
|
|
@@ -687,18 +687,18 @@ const Xt = async (r, t) => {
|
|
|
687
687
|
rule: {}
|
|
688
688
|
},
|
|
689
689
|
setup(r) {
|
|
690
|
-
const t = r, e = X(), a = ne(j.EditorControl, void 0), n =
|
|
691
|
-
return (i,
|
|
692
|
-
w(l(
|
|
690
|
+
const t = r, e = X(), a = ne(j.EditorControl, void 0), n = Ne(t, a);
|
|
691
|
+
return (i, c) => (m(), C("div", nt, [
|
|
692
|
+
w(l(Ye), M({
|
|
693
693
|
required: i.rule !== void 0,
|
|
694
694
|
class: "w-[90%] relative"
|
|
695
695
|
}, l(e), {
|
|
696
696
|
class: [i.rule ? "" : "mb-3", i.width],
|
|
697
697
|
labelCol: { span: 6 }
|
|
698
|
-
}),
|
|
698
|
+
}), ze({
|
|
699
699
|
default: g(() => [
|
|
700
700
|
I("div", it, [
|
|
701
|
-
I("div",
|
|
701
|
+
I("div", ut, [
|
|
702
702
|
D(i.$slots, "default")
|
|
703
703
|
])
|
|
704
704
|
])
|
|
@@ -715,7 +715,7 @@ const Xt = async (r, t) => {
|
|
|
715
715
|
key: "0"
|
|
716
716
|
} : void 0
|
|
717
717
|
]), 1040, ["required", "class"]),
|
|
718
|
-
l(n).msg ? (m(), C("span",
|
|
718
|
+
l(n).msg ? (m(), C("span", ct, N(l(n).msg), 1)) : k("", !0)
|
|
719
719
|
]));
|
|
720
720
|
}
|
|
721
721
|
}), nl = /* @__PURE__ */ S({
|
|
@@ -727,18 +727,18 @@ const Xt = async (r, t) => {
|
|
|
727
727
|
},
|
|
728
728
|
emits: ["update:search", "onsearch", "onreset"],
|
|
729
729
|
setup(r, { emit: t }) {
|
|
730
|
-
const e = r, a = t, n = x(0), i = x(0),
|
|
730
|
+
const e = r, a = t, n = x(0), i = x(0), c = x(0), p = (u) => {
|
|
731
731
|
let h = 0;
|
|
732
|
-
for (let y = 0; y <
|
|
733
|
-
typeof
|
|
732
|
+
for (let y = 0; y < u.length; y++)
|
|
733
|
+
typeof u[y].type == "object" && h++;
|
|
734
734
|
return h;
|
|
735
|
-
}, d =
|
|
736
|
-
i.value = 0,
|
|
735
|
+
}, d = ka(), o = () => {
|
|
736
|
+
i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
|
|
737
737
|
};
|
|
738
738
|
T(
|
|
739
739
|
() => {
|
|
740
|
-
var
|
|
741
|
-
return (
|
|
740
|
+
var u;
|
|
741
|
+
return (u = e.gridCtrl) == null ? void 0 : u.searchBar;
|
|
742
742
|
},
|
|
743
743
|
() => {
|
|
744
744
|
o();
|
|
@@ -748,37 +748,37 @@ const Xt = async (r, t) => {
|
|
|
748
748
|
K(() => {
|
|
749
749
|
var h;
|
|
750
750
|
o();
|
|
751
|
-
let
|
|
751
|
+
let u = { ...e.search };
|
|
752
752
|
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
753
753
|
...e.gridCtrl.gridQuery,
|
|
754
754
|
Query: {
|
|
755
755
|
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
756
|
-
...
|
|
756
|
+
...u
|
|
757
757
|
}
|
|
758
758
|
});
|
|
759
759
|
});
|
|
760
760
|
const s = () => {
|
|
761
761
|
var h;
|
|
762
|
-
let
|
|
762
|
+
let u = { ...e.search };
|
|
763
763
|
if (e.likeFields)
|
|
764
764
|
for (const y of e.likeFields)
|
|
765
|
-
|
|
765
|
+
u[y] && (u[y] = { $like: "%" + u[y] + "%" });
|
|
766
766
|
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
767
767
|
...e.gridCtrl.gridQuery,
|
|
768
768
|
Query: {
|
|
769
769
|
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
770
|
-
...
|
|
770
|
+
...u
|
|
771
771
|
}
|
|
772
|
-
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), a("onsearch",
|
|
772
|
+
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), a("onsearch", u);
|
|
773
773
|
}, v = () => {
|
|
774
|
-
const
|
|
774
|
+
const u = JSON.parse(JSON.stringify(f));
|
|
775
775
|
for (const h in e.search)
|
|
776
|
-
|
|
777
|
-
a("update:search",
|
|
776
|
+
u[h] === void 0 && (u[h] = void 0);
|
|
777
|
+
a("update:search", u), a("onreset");
|
|
778
778
|
};
|
|
779
|
-
return (
|
|
779
|
+
return (u, h) => {
|
|
780
780
|
const y = le("submit");
|
|
781
|
-
return i.value +
|
|
781
|
+
return i.value + c.value > 0 ? Q((m(), b(l(Ve), {
|
|
782
782
|
key: 0,
|
|
783
783
|
"label-col": { flex: "60px" },
|
|
784
784
|
style: {
|
|
@@ -790,8 +790,8 @@ const Xt = async (r, t) => {
|
|
|
790
790
|
default: g(() => {
|
|
791
791
|
var $, E;
|
|
792
792
|
return [
|
|
793
|
-
D(
|
|
794
|
-
($ =
|
|
793
|
+
D(u.$slots, "default"),
|
|
794
|
+
($ = u.gridCtrl) != null && $.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
|
|
795
795
|
n.value >= 1 ? (m(), b(pe, {
|
|
796
796
|
key: 1,
|
|
797
797
|
class: "w-1/3"
|
|
@@ -800,7 +800,7 @@ const Xt = async (r, t) => {
|
|
|
800
800
|
key: 2,
|
|
801
801
|
class: "w-1/3"
|
|
802
802
|
})) : k("", !0),
|
|
803
|
-
i.value || (E =
|
|
803
|
+
i.value || (E = u.gridCtrl) != null && E.searchBar ? (m(), b(pe, {
|
|
804
804
|
key: 3,
|
|
805
805
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
806
806
|
"wrapper-col": { flex: "auto" }
|
|
@@ -850,7 +850,7 @@ const Xt = async (r, t) => {
|
|
|
850
850
|
gridCtrl: {}
|
|
851
851
|
},
|
|
852
852
|
setup(r) {
|
|
853
|
-
const t = r, e = t.gridCtrl, a = J(() =>
|
|
853
|
+
const t = r, e = t.gridCtrl, a = J(() => ue.currentRoute.value.path), n = [
|
|
854
854
|
{
|
|
855
855
|
key: "Edit",
|
|
856
856
|
label: "编辑",
|
|
@@ -858,7 +858,7 @@ const Xt = async (r, t) => {
|
|
|
858
858
|
visible: !0,
|
|
859
859
|
role: ["Super", "Admin"],
|
|
860
860
|
permit: ":edit",
|
|
861
|
-
click: () =>
|
|
861
|
+
click: () => la(e, t.record)
|
|
862
862
|
},
|
|
863
863
|
{
|
|
864
864
|
key: "Delete",
|
|
@@ -870,9 +870,9 @@ const Xt = async (r, t) => {
|
|
|
870
870
|
permit: ":delete",
|
|
871
871
|
confirm: !0,
|
|
872
872
|
confirmText: "是否删除此记录?",
|
|
873
|
-
click: () =>
|
|
873
|
+
click: () => ra(e, t.record)
|
|
874
874
|
}
|
|
875
|
-
], { buttons: i, menus:
|
|
875
|
+
], { buttons: i, menus: c } = ke(n, 0, e.operates), p = (d) => {
|
|
876
876
|
if (typeof d.disabled == "boolean")
|
|
877
877
|
return d.disabled;
|
|
878
878
|
if (typeof d.disabled == "function")
|
|
@@ -888,7 +888,7 @@ const Xt = async (r, t) => {
|
|
|
888
888
|
};
|
|
889
889
|
return (d, o) => {
|
|
890
890
|
const f = le("auth");
|
|
891
|
-
return m(), b(l(
|
|
891
|
+
return m(), b(l(Te), { theme: {
|
|
892
892
|
token: {
|
|
893
893
|
fontSize: 13
|
|
894
894
|
}
|
|
@@ -910,7 +910,7 @@ const Xt = async (r, t) => {
|
|
|
910
910
|
onConfirm: (v) => l(V)(s, l(e).page, l(e), t.record, !0)
|
|
911
911
|
}, {
|
|
912
912
|
default: g(() => [
|
|
913
|
-
l(G)(s, t.record) ? Q((m(), b(l(
|
|
913
|
+
l(G)(s, t.record) ? Q((m(), b(l(Ke), {
|
|
914
914
|
key: s.key,
|
|
915
915
|
type: s.type ?? "text",
|
|
916
916
|
danger: s.danger,
|
|
@@ -932,22 +932,22 @@ const Xt = async (r, t) => {
|
|
|
932
932
|
_: 2
|
|
933
933
|
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
934
934
|
], 64))), 128)),
|
|
935
|
-
d.record.Enabled == 1 ? (m(), b(l(
|
|
935
|
+
d.record.Enabled == 1 ? (m(), b(l(Te), {
|
|
936
936
|
key: 0,
|
|
937
937
|
autoInsertSpaceInButton: !1
|
|
938
938
|
}, {
|
|
939
939
|
default: g(() => [
|
|
940
|
-
l(
|
|
940
|
+
l(c).length > 0 ? (m(), b(l(Ea), {
|
|
941
941
|
key: 0,
|
|
942
942
|
size: "small"
|
|
943
943
|
}, {
|
|
944
944
|
overlay: g(() => [
|
|
945
|
-
w(l(
|
|
945
|
+
w(l(_e), null, {
|
|
946
946
|
default: g(() => [
|
|
947
|
-
(m(!0), C(O, null, z(l(
|
|
947
|
+
(m(!0), C(O, null, z(l(c), (s) => (m(), C(O, {
|
|
948
948
|
key: s.key
|
|
949
949
|
}, [
|
|
950
|
-
l(G)(s, t.record) ? Q((m(), b(l(
|
|
950
|
+
l(G)(s, t.record) ? Q((m(), b(l(ye), {
|
|
951
951
|
key: 0,
|
|
952
952
|
disabled: p(s),
|
|
953
953
|
onClick: (v) => l(V)(s, l(e).page, l(e), t.record)
|
|
@@ -998,12 +998,12 @@ const Xt = async (r, t) => {
|
|
|
998
998
|
T(
|
|
999
999
|
() => e.columns.value,
|
|
1000
1000
|
(p) => {
|
|
1001
|
-
i.value =
|
|
1001
|
+
i.value = Me(p, !0);
|
|
1002
1002
|
},
|
|
1003
1003
|
{ deep: !0, immediate: !0 }
|
|
1004
1004
|
);
|
|
1005
|
-
const
|
|
1006
|
-
e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(
|
|
1005
|
+
const c = () => {
|
|
1006
|
+
e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ue.currentRoute.value.path, e.columns.value);
|
|
1007
1007
|
};
|
|
1008
1008
|
return (p, d) => (m(), C("div", pt, [
|
|
1009
1009
|
(m(!0), C(O, null, z(l(a), (o, f) => (m(), C(O, {
|
|
@@ -1023,7 +1023,7 @@ const Xt = async (r, t) => {
|
|
|
1023
1023
|
modelValue: i.value,
|
|
1024
1024
|
"onUpdate:modelValue": d[1] || (d[1] = (s) => i.value = s),
|
|
1025
1025
|
"item-key": "dataIndex",
|
|
1026
|
-
onEnd:
|
|
1026
|
+
onEnd: c,
|
|
1027
1027
|
handle: ".drag-handle"
|
|
1028
1028
|
}, {
|
|
1029
1029
|
default: g(() => [
|
|
@@ -1102,9 +1102,9 @@ const Xt = async (r, t) => {
|
|
|
1102
1102
|
class: "p-0 rounded-none"
|
|
1103
1103
|
}, {
|
|
1104
1104
|
overlay: g(() => [
|
|
1105
|
-
w(l(
|
|
1105
|
+
w(l(_e), null, {
|
|
1106
1106
|
default: g(() => [
|
|
1107
|
-
(m(!0), C(O, null, z(o.children, (s) => (m(), b(l(
|
|
1107
|
+
(m(!0), C(O, null, z(o.children, (s) => (m(), b(l(ye), {
|
|
1108
1108
|
key: s.key,
|
|
1109
1109
|
disabled: l(H)(s)
|
|
1110
1110
|
}, {
|
|
@@ -1150,7 +1150,7 @@ const Xt = async (r, t) => {
|
|
|
1150
1150
|
editorCtrl: {}
|
|
1151
1151
|
},
|
|
1152
1152
|
setup(r) {
|
|
1153
|
-
const t = r, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() =>
|
|
1153
|
+
const t = r, e = t.gridCtrl, a = e.page, n = t.editorCtrl, i = J(() => ue.currentRoute.value.path), c = [
|
|
1154
1154
|
{
|
|
1155
1155
|
key: "New",
|
|
1156
1156
|
label: "新增",
|
|
@@ -1160,7 +1160,7 @@ const Xt = async (r, t) => {
|
|
|
1160
1160
|
role: ["Super", "Admin"],
|
|
1161
1161
|
permit: ":new",
|
|
1162
1162
|
// 默认仅受权限码控制
|
|
1163
|
-
click: () =>
|
|
1163
|
+
click: () => sa(n)
|
|
1164
1164
|
}
|
|
1165
1165
|
], p = x([]), d = x([]);
|
|
1166
1166
|
return T(
|
|
@@ -1170,8 +1170,8 @@ const Xt = async (r, t) => {
|
|
|
1170
1170
|
},
|
|
1171
1171
|
() => {
|
|
1172
1172
|
var s;
|
|
1173
|
-
const { buttons: o, menus: f } =
|
|
1174
|
-
|
|
1173
|
+
const { buttons: o, menus: f } = ke(
|
|
1174
|
+
c,
|
|
1175
1175
|
e.flat !== void 0 ? e.flat : ht,
|
|
1176
1176
|
(s = e.buttons) == null ? void 0 : s.value
|
|
1177
1177
|
);
|
|
@@ -1192,7 +1192,7 @@ const Xt = async (r, t) => {
|
|
|
1192
1192
|
danger: v.danger,
|
|
1193
1193
|
disabled: l(H)(v),
|
|
1194
1194
|
icon: v.icon,
|
|
1195
|
-
onClick: (
|
|
1195
|
+
onClick: (u) => l(V)(v, l(a), l(e))
|
|
1196
1196
|
}, {
|
|
1197
1197
|
default: g(() => [
|
|
1198
1198
|
B(N(v.label), 1)
|
|
@@ -1203,12 +1203,12 @@ const Xt = async (r, t) => {
|
|
|
1203
1203
|
])), 128)),
|
|
1204
1204
|
d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
|
|
1205
1205
|
overlay: g(() => [
|
|
1206
|
-
w(l(
|
|
1206
|
+
w(l(_e), null, {
|
|
1207
1207
|
default: g(() => [
|
|
1208
|
-
(m(!0), C(O, null, z(d.value, (v) => Q((m(), b(l(
|
|
1208
|
+
(m(!0), C(O, null, z(d.value, (v) => Q((m(), b(l(ye), {
|
|
1209
1209
|
key: v.key,
|
|
1210
1210
|
disabled: l(H)(v),
|
|
1211
|
-
onClick: (
|
|
1211
|
+
onClick: (u) => l(V)(v, l(a), l(e))
|
|
1212
1212
|
}, {
|
|
1213
1213
|
default: g(() => [
|
|
1214
1214
|
B(N(v.label), 1)
|
|
@@ -1238,7 +1238,7 @@ const Xt = async (r, t) => {
|
|
|
1238
1238
|
}),
|
|
1239
1239
|
w(l(te), { class: "mr-1" }, {
|
|
1240
1240
|
default: g(() => [
|
|
1241
|
-
(m(), b(
|
|
1241
|
+
(m(), b(wa(ft), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
|
|
1242
1242
|
]),
|
|
1243
1243
|
_: 1
|
|
1244
1244
|
})
|
|
@@ -1258,63 +1258,63 @@ const Xt = async (r, t) => {
|
|
|
1258
1258
|
statusDisabled: {}
|
|
1259
1259
|
},
|
|
1260
1260
|
setup(r) {
|
|
1261
|
-
const t = r, e = X(), a = t.gridCtrl, n = J(() =>
|
|
1261
|
+
const t = r, e = X(), a = t.gridCtrl, n = J(() => ue.currentRoute.value.path);
|
|
1262
1262
|
a && (a.pageNo.value = 1, a.total.value = 0, a.pageSize.value = a.pageSize.value);
|
|
1263
|
-
const i = x(a.pageSize.value),
|
|
1263
|
+
const i = x(a.pageSize.value), c = x(a.pageNo.value), p = x([]), d = x({
|
|
1264
1264
|
total: 0,
|
|
1265
1265
|
current: 1,
|
|
1266
1266
|
pageSize: i.value,
|
|
1267
|
-
showTotal: (
|
|
1268
|
-
onChange: (
|
|
1269
|
-
d.value !== !1 && (d.value.current =
|
|
1267
|
+
showTotal: (u) => `共 ${u} 条记录`,
|
|
1268
|
+
onChange: (u, h) => {
|
|
1269
|
+
d.value !== !1 && (d.value.current = u, d.value.pageSize = h), i.value = h, c.value = u, a && (a.pageNo.value = u, a.pageSize.value = h, a.remotePage && we(a));
|
|
1270
1270
|
},
|
|
1271
1271
|
...t.pagination === !1 ? {} : t.pagination
|
|
1272
1272
|
});
|
|
1273
1273
|
t.pagination === !1 && (d.value = !1), T(
|
|
1274
1274
|
() => a.tableData.value,
|
|
1275
|
-
(
|
|
1276
|
-
|
|
1275
|
+
(u) => {
|
|
1276
|
+
u && (p.value = u, d.value !== !1 && (d.value.total = a.total.value ?? 0, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
|
|
1277
1277
|
},
|
|
1278
1278
|
{ immediate: !0 }
|
|
1279
1279
|
), T(
|
|
1280
1280
|
() => t.tableData,
|
|
1281
|
-
(
|
|
1282
|
-
|
|
1281
|
+
(u) => {
|
|
1282
|
+
u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current = a.pageNo.value ?? 1, d.value.pageSize = a.pageSize.value ?? 10));
|
|
1283
1283
|
},
|
|
1284
1284
|
{ immediate: !0 }
|
|
1285
1285
|
);
|
|
1286
1286
|
const o = x(a.columns.value), f = {
|
|
1287
|
-
onChange: (
|
|
1288
|
-
a && (a.selectKeys.value =
|
|
1287
|
+
onChange: (u, h) => {
|
|
1288
|
+
a && (a.selectKeys.value = u, a.selectRows.value = h);
|
|
1289
1289
|
},
|
|
1290
1290
|
columnWidth: "30px",
|
|
1291
|
-
getCheckboxProps: (
|
|
1292
|
-
disabled:
|
|
1291
|
+
getCheckboxProps: (u) => ({
|
|
1292
|
+
disabled: u.Enabled === 0
|
|
1293
1293
|
}),
|
|
1294
1294
|
...t.rowSelection
|
|
1295
1295
|
}, s = x(f);
|
|
1296
1296
|
T(
|
|
1297
1297
|
() => a.selectable.value,
|
|
1298
|
-
(
|
|
1299
|
-
a && (s.value =
|
|
1298
|
+
(u) => {
|
|
1299
|
+
a && (s.value = u ? f : void 0);
|
|
1300
1300
|
},
|
|
1301
1301
|
{ immediate: !0 }
|
|
1302
1302
|
), T(
|
|
1303
1303
|
() => a.columns.value,
|
|
1304
1304
|
() => {
|
|
1305
|
-
o.value =
|
|
1305
|
+
o.value = Me(a.columns.value);
|
|
1306
1306
|
},
|
|
1307
1307
|
{ deep: !0, immediate: !0 }
|
|
1308
1308
|
);
|
|
1309
1309
|
const v = x(!1);
|
|
1310
|
-
return
|
|
1311
|
-
v.value && a && (a.reload.value = !0);
|
|
1310
|
+
return xe(() => {
|
|
1311
|
+
v.value && a && a.autoload && (a.reload.value = !0);
|
|
1312
1312
|
}), K(async () => {
|
|
1313
|
-
var
|
|
1314
|
-
ge(j.GridControl, a), a.page && ((
|
|
1313
|
+
var u, h, y, $, E;
|
|
1314
|
+
ge(j.GridControl, a), a.page && ((u = a.gridUrl) != null && u.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 we(a)).rows : p.value = await oa(a)), setTimeout(() => {
|
|
1315
1315
|
v.value = !0;
|
|
1316
1316
|
}, 50);
|
|
1317
|
-
}), (
|
|
1317
|
+
}), (u, h) => {
|
|
1318
1318
|
var $, E;
|
|
1319
1319
|
const y = le("auth");
|
|
1320
1320
|
return m(), C(O, null, [
|
|
@@ -1323,7 +1323,7 @@ const Xt = async (r, t) => {
|
|
|
1323
1323
|
"grid-ctrl": l(a),
|
|
1324
1324
|
"editor-ctrl": l(a).editor
|
|
1325
1325
|
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
1326
|
-
v.value ? (m(), b(l(
|
|
1326
|
+
v.value ? (m(), b(l(We), M({
|
|
1327
1327
|
key: 1,
|
|
1328
1328
|
class: "w-full min-h-[480px]",
|
|
1329
1329
|
"row-key": t.primaryKey ?? l(a).primaryKey ?? "Id",
|
|
@@ -1339,26 +1339,26 @@ const Xt = async (r, t) => {
|
|
|
1339
1339
|
bodyCell: g((_) => {
|
|
1340
1340
|
var P, R;
|
|
1341
1341
|
return [
|
|
1342
|
-
D(
|
|
1342
|
+
D(u.$slots, "bodyCell", {
|
|
1343
1343
|
column: _ == null ? void 0 : _.column,
|
|
1344
1344
|
record: _ == null ? void 0 : _.record
|
|
1345
1345
|
}),
|
|
1346
|
-
l(a) && ((P = _ == null ? void 0 : _.column) == null ? void 0 : P.dataIndex) === "enabled" ? Q((m(), b(
|
|
1346
|
+
l(a) && ((P = _ == null ? void 0 : _.column) == null ? void 0 : P.dataIndex) === "enabled" ? Q((m(), b(na, {
|
|
1347
1347
|
key: 0,
|
|
1348
1348
|
checked: _.record.Enabled,
|
|
1349
1349
|
"onUpdate:checked": (re) => _.record.Enabled = re,
|
|
1350
|
-
disabled:
|
|
1351
|
-
data: l(
|
|
1352
|
-
onClick: (re) => l(
|
|
1350
|
+
disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
|
|
1351
|
+
data: l(Be).EnableDisable,
|
|
1352
|
+
onClick: (re) => l(ia)(l(a), _.record),
|
|
1353
1353
|
class: F([
|
|
1354
1354
|
"w-[58px]",
|
|
1355
|
-
|
|
1355
|
+
u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
|
|
1356
1356
|
]),
|
|
1357
1357
|
loading: _ == null ? void 0 : _.record.isLoading
|
|
1358
1358
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
1359
1359
|
[y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1360
1360
|
]) : k("", !0),
|
|
1361
|
-
l(a) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? D(
|
|
1361
|
+
l(a) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? D(u.$slots, "operate", {
|
|
1362
1362
|
key: 1,
|
|
1363
1363
|
record: _ == null ? void 0 : _.record
|
|
1364
1364
|
}, () => [
|
|
@@ -1374,7 +1374,7 @@ const Xt = async (r, t) => {
|
|
|
1374
1374
|
], 64);
|
|
1375
1375
|
};
|
|
1376
1376
|
}
|
|
1377
|
-
}), bt = { class: "flex items-center gap-1" }, xt = { class: "text-nowrap" },
|
|
1377
|
+
}), bt = { class: "flex items-center gap-1" }, xt = { class: "text-nowrap" }, ul = /* @__PURE__ */ S({
|
|
1378
1378
|
__name: "index",
|
|
1379
1379
|
props: {
|
|
1380
1380
|
treeCtrl: {},
|
|
@@ -1389,7 +1389,7 @@ const Xt = async (r, t) => {
|
|
|
1389
1389
|
(f) => {
|
|
1390
1390
|
if (f) {
|
|
1391
1391
|
i.value = n.fieldMap ? oe(n.fieldMap, f) : f;
|
|
1392
|
-
const s =
|
|
1392
|
+
const s = ua(i.value, p.value[0]);
|
|
1393
1393
|
if (s) {
|
|
1394
1394
|
const v = {
|
|
1395
1395
|
event: "select",
|
|
@@ -1408,7 +1408,7 @@ const Xt = async (r, t) => {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
1410
|
);
|
|
1411
|
-
const
|
|
1411
|
+
const c = t, p = x([]);
|
|
1412
1412
|
T(
|
|
1413
1413
|
() => e.selectedKeys,
|
|
1414
1414
|
(f) => {
|
|
@@ -1425,7 +1425,7 @@ const Xt = async (r, t) => {
|
|
|
1425
1425
|
{ immediate: !0 }
|
|
1426
1426
|
);
|
|
1427
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,
|
|
1428
|
+
f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = s == null ? void 0 : s.node.dataRef), p.value = f, c("update:selectedKeys", f), c("select", f, s);
|
|
1429
1429
|
};
|
|
1430
1430
|
return K(() => {
|
|
1431
1431
|
n.fieldMap || (n.fieldMap = {
|
|
@@ -1433,7 +1433,7 @@ const Xt = async (r, t) => {
|
|
|
1433
1433
|
key: "Id",
|
|
1434
1434
|
value: "Id",
|
|
1435
1435
|
icon: "Icon"
|
|
1436
|
-
}), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload &&
|
|
1436
|
+
}), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Re(n);
|
|
1437
1437
|
}), (f, s) => (m(), b(l(Fa), M({
|
|
1438
1438
|
class: "w-full",
|
|
1439
1439
|
"show-line": !0,
|
|
@@ -1444,38 +1444,38 @@ const Xt = async (r, t) => {
|
|
|
1444
1444
|
loading: l(n).isTreeLoading,
|
|
1445
1445
|
onSelect: o
|
|
1446
1446
|
}, l(a)), {
|
|
1447
|
-
title: g(({ key: v, label:
|
|
1447
|
+
title: g(({ key: v, label: u, icon: h }) => [
|
|
1448
1448
|
D(f.$slots, "title", {
|
|
1449
|
-
label:
|
|
1449
|
+
label: u,
|
|
1450
1450
|
key: v,
|
|
1451
1451
|
icon: h
|
|
1452
1452
|
}, () => [
|
|
1453
1453
|
I("div", bt, [
|
|
1454
1454
|
w(l(U), { icon: h }, null, 8, ["icon"]),
|
|
1455
|
-
I("span", xt, N(
|
|
1455
|
+
I("span", xt, N(u), 1)
|
|
1456
1456
|
])
|
|
1457
1457
|
])
|
|
1458
1458
|
]),
|
|
1459
1459
|
_: 3
|
|
1460
1460
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1461
1461
|
}
|
|
1462
|
-
}),
|
|
1462
|
+
}), cl = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-87722b44"]]), _t = { class: "relative w-[248px] max-w-[248px]" }, yt = {
|
|
1463
1463
|
key: 0,
|
|
1464
1464
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1465
1465
|
}, kt = /* @__PURE__ */ S({
|
|
1466
1466
|
inheritAttrs: !1,
|
|
1467
1467
|
__name: "index",
|
|
1468
|
-
props:
|
|
1468
|
+
props: da,
|
|
1469
1469
|
emits: ["change", "update:labels", "update:value"],
|
|
1470
1470
|
setup(r, { emit: t }) {
|
|
1471
1471
|
var y, $, E;
|
|
1472
|
-
const e = r, a = X(), n = L(), i =
|
|
1473
|
-
|
|
1472
|
+
const e = r, a = X(), n = L(), i = pa(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
|
|
1473
|
+
c.inputFactory = Ca(n);
|
|
1474
1474
|
const p = x({
|
|
1475
|
-
...
|
|
1476
|
-
url: ((y =
|
|
1477
|
-
fieldMap: (
|
|
1478
|
-
params: (
|
|
1475
|
+
...c == null ? void 0 : c.url,
|
|
1476
|
+
url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
|
|
1477
|
+
fieldMap: (c == null ? void 0 : c.fieldMap) || (($ = c == null ? void 0 : c.url) == null ? void 0 : $.fieldMap),
|
|
1478
|
+
params: (c == null ? void 0 : c.params) || ((E = c == null ? void 0 : c.url) == null ? void 0 : E.params),
|
|
1479
1479
|
loadingText: !1
|
|
1480
1480
|
}), { editorCtrl: d, errInfo: o, labelText: f } = n, s = x(a.placeholder);
|
|
1481
1481
|
T(
|
|
@@ -1487,11 +1487,11 @@ const Xt = async (r, t) => {
|
|
|
1487
1487
|
);
|
|
1488
1488
|
const v = t;
|
|
1489
1489
|
n.inputEmit = v;
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1492
|
-
() =>
|
|
1490
|
+
const u = x((c == null ? void 0 : c.options.value) || []);
|
|
1491
|
+
c && T(
|
|
1492
|
+
() => c.options.value,
|
|
1493
1493
|
(_) => {
|
|
1494
|
-
|
|
1494
|
+
u.value = _ || [];
|
|
1495
1495
|
},
|
|
1496
1496
|
{ immediate: !0, deep: !0 }
|
|
1497
1497
|
);
|
|
@@ -1500,36 +1500,38 @@ const Xt = async (r, t) => {
|
|
|
1500
1500
|
v("update:labels", []), v("update:value", []);
|
|
1501
1501
|
return;
|
|
1502
1502
|
}
|
|
1503
|
-
const R = P.map((
|
|
1504
|
-
v("update:labels",
|
|
1503
|
+
const R = P.map((Xe) => Xe.value), re = ha(c, e, R), Je = ga(re);
|
|
1504
|
+
v("update:labels", Je), v("update:value", R), o != null && o.value.errClass && d && Y(d);
|
|
1505
1505
|
};
|
|
1506
|
-
return
|
|
1506
|
+
return xe(() => {
|
|
1507
|
+
c && c.autoload && (c.reload.value = !0);
|
|
1508
|
+
}), K(() => {
|
|
1507
1509
|
p.value && !p.value.fieldMap && (p.value.fieldMap = {
|
|
1508
1510
|
title: "Name",
|
|
1509
1511
|
label: "Name",
|
|
1510
1512
|
value: "Id",
|
|
1511
1513
|
key: "Id"
|
|
1512
|
-
}),
|
|
1514
|
+
}), c && fa(c.autoload, c, e);
|
|
1513
1515
|
}), Sa(() => {
|
|
1514
|
-
|
|
1516
|
+
c && va(c, e);
|
|
1515
1517
|
}), (_, P) => {
|
|
1516
1518
|
var R;
|
|
1517
1519
|
return m(), C("div", _t, [
|
|
1518
|
-
|
|
1519
|
-
w(l(
|
|
1520
|
+
u.value.length ? k("", !0) : (m(), C("div", yt, [
|
|
1521
|
+
w(l(ma), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1520
1522
|
P[0] || (P[0] = I("span", null, "数据加载中...", -1))
|
|
1521
1523
|
])),
|
|
1522
1524
|
w(l(Na), M({
|
|
1523
|
-
options:
|
|
1525
|
+
options: u.value,
|
|
1524
1526
|
class: [(R = l(o)) == null ? void 0 : R.errClass],
|
|
1525
1527
|
"allow-clear": !0,
|
|
1526
|
-
placeholder:
|
|
1528
|
+
placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
|
|
1527
1529
|
onChange: h
|
|
1528
1530
|
}, l(a)), null, 16, ["options", "class", "placeholder"])
|
|
1529
1531
|
]);
|
|
1530
1532
|
};
|
|
1531
1533
|
}
|
|
1532
|
-
}), dl = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-
|
|
1534
|
+
}), dl = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-51ddfce3"]]), pl = /* @__PURE__ */ q(ba, [["__scopeId", "data-v-249ea772"]]);
|
|
1533
1535
|
function ie() {
|
|
1534
1536
|
return ie = Object.assign ? Object.assign.bind() : function(r) {
|
|
1535
1537
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -1569,7 +1571,7 @@ const wt = {
|
|
|
1569
1571
|
}, Ct = {
|
|
1570
1572
|
placeholder: "请选择时间",
|
|
1571
1573
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1572
|
-
},
|
|
1574
|
+
}, ce = {
|
|
1573
1575
|
lang: ie({
|
|
1574
1576
|
placeholder: "请选择日期",
|
|
1575
1577
|
yearPlaceholder: "请选择年份",
|
|
@@ -1584,7 +1586,7 @@ const wt = {
|
|
|
1584
1586
|
}, wt),
|
|
1585
1587
|
timePickerLocale: ie({}, Ct)
|
|
1586
1588
|
};
|
|
1587
|
-
|
|
1589
|
+
ce.lang.ok = "确定";
|
|
1588
1590
|
const fl = /* @__PURE__ */ S({
|
|
1589
1591
|
__name: "index",
|
|
1590
1592
|
props: {
|
|
@@ -1593,14 +1595,14 @@ const fl = /* @__PURE__ */ S({
|
|
|
1593
1595
|
setup(r) {
|
|
1594
1596
|
const t = r, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
|
|
1595
1597
|
n != null && n.value.errClass && e && Y(e);
|
|
1596
|
-
},
|
|
1598
|
+
}, c = x(t.valueFormat ?? "YYYY-MM-DD");
|
|
1597
1599
|
return (p, d) => {
|
|
1598
1600
|
var o;
|
|
1599
1601
|
return m(), b(l(Ma), {
|
|
1600
1602
|
class: F(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1601
1603
|
placeholder: "请选择" + l(a),
|
|
1602
|
-
locale: l(
|
|
1603
|
-
valueFormat:
|
|
1604
|
+
locale: l(ce),
|
|
1605
|
+
valueFormat: c.value,
|
|
1604
1606
|
onBlur: i
|
|
1605
1607
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1606
1608
|
};
|
|
@@ -1615,9 +1617,9 @@ const fl = /* @__PURE__ */ S({
|
|
|
1615
1617
|
setup(r, { emit: t }) {
|
|
1616
1618
|
const { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
|
|
1617
1619
|
n != null && n.value.errClass && e && Y(e);
|
|
1618
|
-
},
|
|
1620
|
+
}, c = r, p = c.value === void 0 ? !0 : c.undefValue, d = t, o = x(c.value);
|
|
1619
1621
|
T(
|
|
1620
|
-
() =>
|
|
1622
|
+
() => c.value,
|
|
1621
1623
|
(s) => {
|
|
1622
1624
|
o.value = s;
|
|
1623
1625
|
},
|
|
@@ -1637,10 +1639,10 @@ const fl = /* @__PURE__ */ S({
|
|
|
1637
1639
|
o.value === "" && (o.value = p ? void 0 : null);
|
|
1638
1640
|
};
|
|
1639
1641
|
return (s, v) => {
|
|
1640
|
-
var
|
|
1642
|
+
var u, h;
|
|
1641
1643
|
return m(), b(l(ee), M({
|
|
1642
1644
|
class: [
|
|
1643
|
-
(
|
|
1645
|
+
(u = l(n)) == null ? void 0 : u.errClass,
|
|
1644
1646
|
((h = l(n)) == null ? void 0 : h.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1645
1647
|
],
|
|
1646
1648
|
value: o.value,
|
|
@@ -1650,7 +1652,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1650
1652
|
placeholder: "请输入" + l(a),
|
|
1651
1653
|
onBlur: i,
|
|
1652
1654
|
onChange: f
|
|
1653
|
-
}, s.$attrs),
|
|
1655
|
+
}, s.$attrs), ze({ _: 2 }, [
|
|
1654
1656
|
s.$slots.addonBefore ? {
|
|
1655
1657
|
name: "addonBefore",
|
|
1656
1658
|
fn: g(() => [
|
|
@@ -1687,9 +1689,9 @@ const fl = /* @__PURE__ */ S({
|
|
|
1687
1689
|
(i) => {
|
|
1688
1690
|
a("update:value", i);
|
|
1689
1691
|
}
|
|
1690
|
-
), (i,
|
|
1692
|
+
), (i, c) => (m(), b(St, M({
|
|
1691
1693
|
value: n.value,
|
|
1692
|
-
"onUpdate:value":
|
|
1694
|
+
"onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
|
|
1693
1695
|
}, i.$attrs), {
|
|
1694
1696
|
addonBefore: g(() => [
|
|
1695
1697
|
w(l(U), {
|
|
@@ -1706,7 +1708,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1706
1708
|
const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
|
|
1707
1709
|
a != null && a.value.errClass && t && Y(t);
|
|
1708
1710
|
};
|
|
1709
|
-
return (i,
|
|
1711
|
+
return (i, c) => {
|
|
1710
1712
|
var p;
|
|
1711
1713
|
return m(), b(l(Ba), M({
|
|
1712
1714
|
class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
@@ -1723,7 +1725,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1723
1725
|
const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
|
|
1724
1726
|
a != null && a.value.errClass && t && Y(t);
|
|
1725
1727
|
};
|
|
1726
|
-
return (i,
|
|
1728
|
+
return (i, c) => {
|
|
1727
1729
|
var p;
|
|
1728
1730
|
return m(), b(l(Ra), M({
|
|
1729
1731
|
class: [[((p = l(a)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
@@ -1745,7 +1747,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1745
1747
|
emits: ["update:value"],
|
|
1746
1748
|
setup(r, { emit: t }) {
|
|
1747
1749
|
const e = r, a = t, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
|
|
1748
|
-
let
|
|
1750
|
+
let c = !1;
|
|
1749
1751
|
const p = () => {
|
|
1750
1752
|
e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((s) => ({
|
|
1751
1753
|
id: Date.now() + Math.random(),
|
|
@@ -1762,7 +1764,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1762
1764
|
T(
|
|
1763
1765
|
() => e.value,
|
|
1764
1766
|
() => {
|
|
1765
|
-
|
|
1767
|
+
c || p(), c = !1;
|
|
1766
1768
|
},
|
|
1767
1769
|
{ immediate: !0 }
|
|
1768
1770
|
);
|
|
@@ -1771,9 +1773,9 @@ const fl = /* @__PURE__ */ S({
|
|
|
1771
1773
|
e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, i.value.forEach((v) => {
|
|
1772
1774
|
v.field && (s[v.field] = v.value);
|
|
1773
1775
|
})) : s = i.value.reduce(
|
|
1774
|
-
(v,
|
|
1776
|
+
(v, u) => (u.field && (v[u.field] = u.value), v),
|
|
1775
1777
|
{}
|
|
1776
|
-
),
|
|
1778
|
+
), c = !0, a("update:value", s);
|
|
1777
1779
|
}, o = () => {
|
|
1778
1780
|
i.value.push({
|
|
1779
1781
|
id: Date.now() + Math.random(),
|
|
@@ -1784,8 +1786,8 @@ const fl = /* @__PURE__ */ S({
|
|
|
1784
1786
|
d();
|
|
1785
1787
|
};
|
|
1786
1788
|
return (s, v) => (m(), C("div", $t, [
|
|
1787
|
-
(m(!0), C(O, null, z(i.value, (
|
|
1788
|
-
key:
|
|
1789
|
+
(m(!0), C(O, null, z(i.value, (u) => (m(), C("div", {
|
|
1790
|
+
key: u.id,
|
|
1789
1791
|
class: "flex items-center gap-2"
|
|
1790
1792
|
}, [
|
|
1791
1793
|
I("div", {
|
|
@@ -1793,25 +1795,25 @@ const fl = /* @__PURE__ */ S({
|
|
|
1793
1795
|
}, [
|
|
1794
1796
|
!s.selectList || s.selectList.length === 0 ? (m(), b(l(ee), {
|
|
1795
1797
|
key: 0,
|
|
1796
|
-
value:
|
|
1797
|
-
"onUpdate:value": (h) =>
|
|
1798
|
-
title:
|
|
1798
|
+
value: u.field,
|
|
1799
|
+
"onUpdate:value": (h) => u.field = h,
|
|
1800
|
+
title: u.text || u.field,
|
|
1799
1801
|
class: "w-full",
|
|
1800
|
-
placeholder:
|
|
1802
|
+
placeholder: u.text || s.labelHolder || "配置名",
|
|
1801
1803
|
onInput: f,
|
|
1802
1804
|
disabled: !n.value
|
|
1803
1805
|
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), C("div", It, [
|
|
1804
1806
|
w(l(ee), {
|
|
1805
|
-
value:
|
|
1806
|
-
"onUpdate:value": (h) =>
|
|
1807
|
-
title:
|
|
1807
|
+
value: u.text,
|
|
1808
|
+
"onUpdate:value": (h) => u.text = h,
|
|
1809
|
+
title: u.text,
|
|
1808
1810
|
disabled: !0,
|
|
1809
1811
|
class: "w-[100%]"
|
|
1810
1812
|
}, null, 8, ["value", "onUpdate:value", "title"]),
|
|
1811
1813
|
w(l(ee), {
|
|
1812
1814
|
type: "hidden",
|
|
1813
|
-
value:
|
|
1814
|
-
"onUpdate:value": (h) =>
|
|
1815
|
+
value: u.field,
|
|
1816
|
+
"onUpdate:value": (h) => u.field = h
|
|
1815
1817
|
}, null, 8, ["value", "onUpdate:value"])
|
|
1816
1818
|
]))
|
|
1817
1819
|
], 2),
|
|
@@ -1820,15 +1822,15 @@ const fl = /* @__PURE__ */ S({
|
|
|
1820
1822
|
class: F([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
|
|
1821
1823
|
}, [
|
|
1822
1824
|
w(l(ee), {
|
|
1823
|
-
value:
|
|
1824
|
-
"onUpdate:value": (h) =>
|
|
1825
|
-
placeholder: s.valueHolder || "请输入" +
|
|
1825
|
+
value: u.value,
|
|
1826
|
+
"onUpdate:value": (h) => u.value = h,
|
|
1827
|
+
placeholder: s.valueHolder || "请输入" + u.text || "请输入配置值",
|
|
1826
1828
|
onInput: f,
|
|
1827
|
-
title:
|
|
1829
|
+
title: u.value
|
|
1828
1830
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1829
1831
|
], 2)
|
|
1830
1832
|
]))), 128)),
|
|
1831
|
-
n.value ? (m(), b(l(
|
|
1833
|
+
n.value ? (m(), b(l(Ke), {
|
|
1832
1834
|
key: 0,
|
|
1833
1835
|
onClick: o,
|
|
1834
1836
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
@@ -1842,7 +1844,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1842
1844
|
})) : k("", !0)
|
|
1843
1845
|
]));
|
|
1844
1846
|
}
|
|
1845
|
-
}), Dt = /* @__PURE__ */ q(
|
|
1847
|
+
}), Dt = /* @__PURE__ */ q(xa, [["__scopeId", "data-v-aa237552"]]), bl = /* @__PURE__ */ S({
|
|
1846
1848
|
__name: "radioStatus",
|
|
1847
1849
|
props: {
|
|
1848
1850
|
/**
|
|
@@ -1870,7 +1872,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1870
1872
|
}
|
|
1871
1873
|
},
|
|
1872
1874
|
setup(r) {
|
|
1873
|
-
const t = r, e = x(JSON.parse(JSON.stringify(
|
|
1875
|
+
const t = r, e = x(JSON.parse(JSON.stringify(Be.getOptions(t.dataKey))));
|
|
1874
1876
|
return t.all === !0 && e.value.unshift({
|
|
1875
1877
|
label: "全部",
|
|
1876
1878
|
value: t.allValue || [0, 1]
|
|
@@ -1885,7 +1887,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1885
1887
|
},
|
|
1886
1888
|
emits: ["update:startDate", "update:endDate"],
|
|
1887
1889
|
setup(r, { emit: t }) {
|
|
1888
|
-
const e = r, a = t, n = L(), { errInfo: i } = n,
|
|
1890
|
+
const e = r, a = t, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
|
|
1889
1891
|
const o = e.startDate, f = e.endDate;
|
|
1890
1892
|
if (!(!o || !f))
|
|
1891
1893
|
try {
|
|
@@ -1905,29 +1907,29 @@ const fl = /* @__PURE__ */ S({
|
|
|
1905
1907
|
var s;
|
|
1906
1908
|
return m(), b(l(Oa), {
|
|
1907
1909
|
class: F([((s = l(i)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1908
|
-
locale: l(
|
|
1909
|
-
"value-format":
|
|
1910
|
+
locale: l(ce),
|
|
1911
|
+
"value-format": c.value,
|
|
1910
1912
|
value: p.value,
|
|
1911
1913
|
onChange: d
|
|
1912
1914
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1913
1915
|
};
|
|
1914
1916
|
}
|
|
1915
|
-
}), _l = /* @__PURE__ */ q(
|
|
1917
|
+
}), _l = /* @__PURE__ */ q(_a, [["__scopeId", "data-v-b33df95f"]]), yl = /* @__PURE__ */ S({
|
|
1916
1918
|
__name: "index",
|
|
1917
1919
|
setup(r) {
|
|
1918
1920
|
const { editorCtrl: t, labelText: e, errInfo: a } = L(), n = () => {
|
|
1919
1921
|
a != null && a.value.errClass && t && Y(t);
|
|
1920
1922
|
};
|
|
1921
|
-
return (i,
|
|
1923
|
+
return (i, c) => {
|
|
1922
1924
|
var p;
|
|
1923
1925
|
return m(), b(l(Aa), M({
|
|
1924
1926
|
class: ((p = l(a)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1925
1927
|
"allow-clear": !0,
|
|
1926
1928
|
placeholder: "请输入" + l(e),
|
|
1927
1929
|
onBlur: n,
|
|
1928
|
-
onKeyup:
|
|
1930
|
+
onKeyup: c[0] || (c[0] = Se(ae(() => {
|
|
1929
1931
|
}, ["stop"]), ["enter", "native"])),
|
|
1930
|
-
onKeydown:
|
|
1932
|
+
onKeydown: c[1] || (c[1] = Se(ae(() => {
|
|
1931
1933
|
}, ["stop"]), ["enter", "native"]))
|
|
1932
1934
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1933
1935
|
};
|
|
@@ -1940,14 +1942,14 @@ const fl = /* @__PURE__ */ S({
|
|
|
1940
1942
|
setup(r) {
|
|
1941
1943
|
const t = r, { editorCtrl: e, labelText: a, errInfo: n } = L(), i = () => {
|
|
1942
1944
|
n != null && n.value.errClass && e && Y(e);
|
|
1943
|
-
},
|
|
1945
|
+
}, c = x(t.valueFormat ?? "HH:mm");
|
|
1944
1946
|
return (p, d) => {
|
|
1945
1947
|
var o;
|
|
1946
1948
|
return m(), b(l(La), {
|
|
1947
1949
|
class: F(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1948
1950
|
placeholder: "请选择" + l(a),
|
|
1949
|
-
locale: l(
|
|
1950
|
-
valueFormat:
|
|
1951
|
+
locale: l(ce),
|
|
1952
|
+
valueFormat: c.value,
|
|
1951
1953
|
onBlur: i
|
|
1952
1954
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1953
1955
|
};
|
|
@@ -1962,7 +1964,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
1962
1964
|
},
|
|
1963
1965
|
emits: ["change", "update:value"],
|
|
1964
1966
|
setup(r, { emit: t }) {
|
|
1965
|
-
const e = r, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo:
|
|
1967
|
+
const e = r, a = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = t, d = x([]), o = x([]);
|
|
1966
1968
|
e.value && e.value.every((s) => {
|
|
1967
1969
|
o.value.push(s.toString());
|
|
1968
1970
|
}), T(
|
|
@@ -1972,13 +1974,13 @@ const fl = /* @__PURE__ */ S({
|
|
|
1972
1974
|
}
|
|
1973
1975
|
);
|
|
1974
1976
|
const f = (s) => {
|
|
1975
|
-
p("update:value", s), p("change", s), o.value = s,
|
|
1977
|
+
p("update:value", s), p("change", s), o.value = s, c != null && c.value.errClass && n && Y(n);
|
|
1976
1978
|
};
|
|
1977
1979
|
return K(async () => {
|
|
1978
1980
|
if (a.value) {
|
|
1979
1981
|
const s = n == null ? void 0 : n.page;
|
|
1980
1982
|
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) {
|
|
1981
|
-
const v = await
|
|
1983
|
+
const v = await Oe(n, {
|
|
1982
1984
|
urlKey: "list",
|
|
1983
1985
|
url: { ...a.value, url: a.value.url },
|
|
1984
1986
|
loadingText: !1,
|
|
@@ -1988,9 +1990,9 @@ const fl = /* @__PURE__ */ S({
|
|
|
1988
1990
|
}
|
|
1989
1991
|
}
|
|
1990
1992
|
}), (s, v) => {
|
|
1991
|
-
var
|
|
1993
|
+
var u;
|
|
1992
1994
|
return m(), b(l(za), M({
|
|
1993
|
-
class: ((
|
|
1995
|
+
class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1994
1996
|
placeholder: "请输入" + l(i),
|
|
1995
1997
|
targetKeys: o.value,
|
|
1996
1998
|
onChange: f
|
|
@@ -2036,7 +2038,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
2036
2038
|
},
|
|
2037
2039
|
emits: ["update:value"],
|
|
2038
2040
|
setup(r, { emit: t }) {
|
|
2039
|
-
const e = r, a = t, n = x(e.autoload), i = x(e.value),
|
|
2041
|
+
const e = r, a = t, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
|
|
2040
2042
|
T(
|
|
2041
2043
|
() => i.value,
|
|
2042
2044
|
(o) => {
|
|
@@ -2049,22 +2051,22 @@ const fl = /* @__PURE__ */ S({
|
|
|
2049
2051
|
}
|
|
2050
2052
|
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = x(!0), e.gridCtrl.buttons = x([]), e.gridCtrl.tools = [];
|
|
2051
2053
|
const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: s, onItemSelect: v }) => ({
|
|
2052
|
-
getCheckboxProps: (
|
|
2054
|
+
getCheckboxProps: (u) => ({
|
|
2053
2055
|
// 控制是否禁止
|
|
2054
|
-
disabled: o ||
|
|
2056
|
+
disabled: o || u.disabled
|
|
2055
2057
|
}),
|
|
2056
|
-
onSelectAll(
|
|
2057
|
-
const y = h.filter(($) => !$.disabled).map(({ [
|
|
2058
|
-
s(y,
|
|
2058
|
+
onSelectAll(u, h) {
|
|
2059
|
+
const y = h.filter(($) => !$.disabled).map(({ [c.value]: $ }) => $);
|
|
2060
|
+
s(y, u);
|
|
2059
2061
|
},
|
|
2060
|
-
onSelect({ [
|
|
2061
|
-
v(
|
|
2062
|
+
onSelect({ [c.value]: u }, h) {
|
|
2063
|
+
v(u, h);
|
|
2062
2064
|
},
|
|
2063
2065
|
selectedRowKeys: f
|
|
2064
2066
|
}), d = x([]);
|
|
2065
2067
|
return K(async () => {
|
|
2066
2068
|
if (n.value) {
|
|
2067
|
-
const o = await
|
|
2069
|
+
const o = await Oe(e.gridCtrl, {
|
|
2068
2070
|
urlKey: "list",
|
|
2069
2071
|
url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
|
|
2070
2072
|
params: e.gridCtrl.gridQuery,
|
|
@@ -2074,7 +2076,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
2074
2076
|
}
|
|
2075
2077
|
}), (o, f) => (m(), b(Et, M({
|
|
2076
2078
|
"data-source": d.value,
|
|
2077
|
-
"row-key": (s) => s[
|
|
2079
|
+
"row-key": (s) => s[c.value],
|
|
2078
2080
|
value: i.value,
|
|
2079
2081
|
"onUpdate:value": f[0] || (f[0] = (s) => i.value = s),
|
|
2080
2082
|
"list-style": {
|
|
@@ -2084,21 +2086,21 @@ const fl = /* @__PURE__ */ S({
|
|
|
2084
2086
|
"show-select-all": !1,
|
|
2085
2087
|
"show-search": !0,
|
|
2086
2088
|
"filter-option": (s, v) => {
|
|
2087
|
-
for (const
|
|
2088
|
-
if (v[
|
|
2089
|
+
for (const u of e.gridCtrl.columns.value)
|
|
2090
|
+
if (v[u.dataIndex].toString().indexOf(s) !== -1)
|
|
2089
2091
|
return !0;
|
|
2090
2092
|
return !1;
|
|
2091
2093
|
}
|
|
2092
2094
|
}, o.$attrs), {
|
|
2093
|
-
children: g(({ filteredItems: s, onItemSelectAll: v, onItemSelect:
|
|
2094
|
-
w(l(
|
|
2095
|
+
children: g(({ filteredItems: s, onItemSelectAll: v, onItemSelect: u, selectedKeys: h }) => [
|
|
2096
|
+
w(l(We), {
|
|
2095
2097
|
columns: r.gridCtrl.columns.value,
|
|
2096
|
-
"row-key":
|
|
2098
|
+
"row-key": c.value,
|
|
2097
2099
|
"row-selection": p({
|
|
2098
2100
|
disabled: !1,
|
|
2099
2101
|
selectedKeys: h,
|
|
2100
2102
|
onItemSelectAll: v,
|
|
2101
|
-
onItemSelect:
|
|
2103
|
+
onItemSelect: u
|
|
2102
2104
|
}),
|
|
2103
2105
|
bordered: !1,
|
|
2104
2106
|
size: "small",
|
|
@@ -2106,8 +2108,8 @@ const fl = /* @__PURE__ */ S({
|
|
|
2106
2108
|
scroll: { x: 300 },
|
|
2107
2109
|
"custom-row": (y) => ({
|
|
2108
2110
|
onClick: () => {
|
|
2109
|
-
const $ = y[
|
|
2110
|
-
|
|
2111
|
+
const $ = y[c.value];
|
|
2112
|
+
u($, !h.includes($));
|
|
2111
2113
|
}
|
|
2112
2114
|
})
|
|
2113
2115
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -2142,44 +2144,46 @@ const fl = /* @__PURE__ */ S({
|
|
|
2142
2144
|
},
|
|
2143
2145
|
emits: ["change", "update:value"],
|
|
2144
2146
|
setup(r, { emit: t }) {
|
|
2145
|
-
const e = r, a = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo:
|
|
2147
|
+
const e = r, a = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = t;
|
|
2146
2148
|
i.inputEmit = d;
|
|
2147
2149
|
const o = x([]), f = x();
|
|
2148
2150
|
T(
|
|
2149
2151
|
() => e.value,
|
|
2150
|
-
(
|
|
2151
|
-
f.value =
|
|
2152
|
+
(u) => {
|
|
2153
|
+
f.value = u;
|
|
2152
2154
|
},
|
|
2153
2155
|
{ immediate: !0 }
|
|
2154
2156
|
), T(
|
|
2155
2157
|
() => f.value,
|
|
2156
|
-
(
|
|
2157
|
-
d("update:value",
|
|
2158
|
+
(u) => {
|
|
2159
|
+
d("update:value", u);
|
|
2158
2160
|
}
|
|
2159
2161
|
), T(
|
|
2160
2162
|
() => n.data.value,
|
|
2161
|
-
(
|
|
2162
|
-
|
|
2163
|
+
(u) => {
|
|
2164
|
+
u && (o.value = n.fieldMap ? oe(n.fieldMap, u) : u);
|
|
2163
2165
|
},
|
|
2164
2166
|
{ immediate: !0 }
|
|
2165
2167
|
);
|
|
2166
|
-
const s = (
|
|
2167
|
-
e.multiple ? f.value =
|
|
2168
|
+
const s = (u) => {
|
|
2169
|
+
e.multiple ? f.value = u ?? [] : u == null ? f.value = a ? void 0 : null : f.value = u, d("change", f.value);
|
|
2168
2170
|
};
|
|
2169
|
-
|
|
2171
|
+
xe(() => {
|
|
2172
|
+
e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
|
|
2173
|
+
}), K(() => {
|
|
2170
2174
|
n.fieldMap || (n.fieldMap = {
|
|
2171
2175
|
label: "Name",
|
|
2172
2176
|
key: "Id",
|
|
2173
2177
|
value: "Id"
|
|
2174
|
-
}), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload &&
|
|
2178
|
+
}), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Re(e.treeCtrl);
|
|
2175
2179
|
});
|
|
2176
2180
|
const v = () => {
|
|
2177
2181
|
f.value = a ? void 0 : null;
|
|
2178
2182
|
};
|
|
2179
|
-
return (
|
|
2183
|
+
return (u, h) => {
|
|
2180
2184
|
var y;
|
|
2181
2185
|
return m(), b(l(Ua), M({
|
|
2182
|
-
class: [[(y = l(
|
|
2186
|
+
class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
|
|
2183
2187
|
"tree-line": "",
|
|
2184
2188
|
multiple: r.multiple,
|
|
2185
2189
|
"tree-default-expanded-keys": ["-"],
|
|
@@ -2189,10 +2193,10 @@ const fl = /* @__PURE__ */ S({
|
|
|
2189
2193
|
placeholder: "请选择" + l(p),
|
|
2190
2194
|
onChange: s,
|
|
2191
2195
|
onClear: v
|
|
2192
|
-
},
|
|
2196
|
+
}, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2193
2197
|
};
|
|
2194
2198
|
}
|
|
2195
|
-
}), Cl = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-
|
|
2199
|
+
}), Cl = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-71d50074"]]), Ft = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Nt = { class: "flex w-full h-full min-h-full" }, Mt = {
|
|
2196
2200
|
key: 0,
|
|
2197
2201
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2198
2202
|
}, Bt = { class: "flex-1 h-full overflow-y-auto" }, Sl = /* @__PURE__ */ S({
|
|
@@ -2201,7 +2205,7 @@ const fl = /* @__PURE__ */ S({
|
|
|
2201
2205
|
left: { type: Boolean }
|
|
2202
2206
|
},
|
|
2203
2207
|
setup(r) {
|
|
2204
|
-
const { useToken: t } =
|
|
2208
|
+
const { useToken: t } = Ue, { token: e } = t();
|
|
2205
2209
|
return (a, n) => (m(), C("div", Ft, [
|
|
2206
2210
|
w(l(Va), {
|
|
2207
2211
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
@@ -2227,12 +2231,12 @@ const fl = /* @__PURE__ */ S({
|
|
|
2227
2231
|
export {
|
|
2228
2232
|
wr as Alert,
|
|
2229
2233
|
Ar as AppIcon,
|
|
2230
|
-
|
|
2234
|
+
ue as AppRouter,
|
|
2231
2235
|
vr as AsyncUploader,
|
|
2232
|
-
|
|
2236
|
+
cl as AutoComplete,
|
|
2233
2237
|
Lr as Breadcrumb,
|
|
2234
2238
|
A as Button,
|
|
2235
|
-
|
|
2239
|
+
qe as Cache,
|
|
2236
2240
|
at as CacheKeys,
|
|
2237
2241
|
br as CanPreviewFileExt,
|
|
2238
2242
|
dl as Cascader,
|
|
@@ -2261,8 +2265,8 @@ export {
|
|
|
2261
2265
|
Kr as Menu,
|
|
2262
2266
|
Wr as MenuTabs,
|
|
2263
2267
|
El as MicroOpenApis,
|
|
2264
|
-
|
|
2265
|
-
|
|
2268
|
+
Be as OPTIONS,
|
|
2269
|
+
da as OptionCommProps,
|
|
2266
2270
|
Hr as ProjectIcon,
|
|
2267
2271
|
gl as PropEditor,
|
|
2268
2272
|
j as ProviderKeys,
|
|
@@ -2272,7 +2276,7 @@ export {
|
|
|
2272
2276
|
nl as Search,
|
|
2273
2277
|
pe as SearchItem,
|
|
2274
2278
|
_l as Select,
|
|
2275
|
-
|
|
2279
|
+
na as Switch,
|
|
2276
2280
|
il as Table,
|
|
2277
2281
|
dt as TableOperate,
|
|
2278
2282
|
yl as Textarea,
|
|
@@ -2282,69 +2286,69 @@ export {
|
|
|
2282
2286
|
Rr as Tooltip,
|
|
2283
2287
|
Et as Transfer,
|
|
2284
2288
|
wl as TransferTable,
|
|
2285
|
-
|
|
2289
|
+
ul as Tree,
|
|
2286
2290
|
Cl as TreeSelect,
|
|
2287
2291
|
xr as UploadList,
|
|
2288
2292
|
mr as UploadStatus,
|
|
2289
2293
|
Sr as appendExcelData,
|
|
2290
2294
|
Tr as checkExcelDuplicates,
|
|
2291
2295
|
Pl as checkIconsExpired,
|
|
2292
|
-
|
|
2293
|
-
|
|
2296
|
+
ma as circleLoading,
|
|
2297
|
+
ea as createFromIconfont,
|
|
2294
2298
|
$r as createMarkedExcelView,
|
|
2295
2299
|
Fl as crumbs,
|
|
2296
2300
|
Xt as csvToExcelBlob,
|
|
2297
|
-
|
|
2301
|
+
je as csvToExcelView,
|
|
2298
2302
|
Ir as csvToNormalized,
|
|
2299
|
-
|
|
2303
|
+
Ee as defaultTools,
|
|
2300
2304
|
Nl as doDelete,
|
|
2301
2305
|
Ml as doExecute,
|
|
2302
|
-
|
|
2306
|
+
Oe as doQuery,
|
|
2303
2307
|
Bl as doSave,
|
|
2304
2308
|
_r as donwloadFromMinio,
|
|
2305
|
-
|
|
2309
|
+
He as downloadBlob,
|
|
2306
2310
|
Rl as eventBus,
|
|
2307
2311
|
Dr as excelToExcelView,
|
|
2308
2312
|
Er as excelToNormalized,
|
|
2309
2313
|
al as exportResults,
|
|
2310
2314
|
el as exportSelectedRows,
|
|
2311
|
-
|
|
2315
|
+
Me as filterColumns,
|
|
2312
2316
|
Y as formValidate,
|
|
2313
2317
|
Ol as getFormDetail,
|
|
2314
2318
|
Al as getIconTransform,
|
|
2315
2319
|
Ll as getRecordDetail,
|
|
2316
2320
|
zl as getRuleTexts,
|
|
2317
|
-
|
|
2321
|
+
ga as getSelectedLabels,
|
|
2318
2322
|
Ul as getSelectedValues,
|
|
2319
2323
|
W as getToolByKey,
|
|
2320
|
-
|
|
2324
|
+
ke as getToolGroup,
|
|
2321
2325
|
H as getToolStatus,
|
|
2322
2326
|
G as getToolVisible,
|
|
2323
|
-
|
|
2324
|
-
|
|
2327
|
+
we as gridQueryFind,
|
|
2328
|
+
oa as gridQueryList,
|
|
2325
2329
|
Vl as gridRowUpdate,
|
|
2326
|
-
|
|
2330
|
+
ia as gridStatusUpdate,
|
|
2327
2331
|
Jt as initCacheCheck,
|
|
2328
2332
|
Gt as initDirective,
|
|
2329
2333
|
Yl as initMenu,
|
|
2330
2334
|
Kl as initPageFactory,
|
|
2331
2335
|
Wl as initValidate,
|
|
2332
2336
|
Z as isEmpty,
|
|
2333
|
-
|
|
2337
|
+
fa as loadOption,
|
|
2334
2338
|
Hl as mergeColumns,
|
|
2335
2339
|
Pr as normalizedToExcelView,
|
|
2336
2340
|
Za as onColumnVisibleChanged,
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2341
|
+
ta as onFormClose,
|
|
2342
|
+
Fe as onFormSave,
|
|
2343
|
+
aa as onFormSaveAs,
|
|
2344
|
+
Qe as onFullscreenClick,
|
|
2345
|
+
ra as onGridRowDelete,
|
|
2346
|
+
la as onGridRowEdit,
|
|
2343
2347
|
jl as onGridRowExpand,
|
|
2344
|
-
|
|
2348
|
+
ha as onOptionChanged,
|
|
2345
2349
|
Ha as onReloadClick,
|
|
2346
2350
|
V as onToolClicked,
|
|
2347
|
-
|
|
2351
|
+
sa as openNewForm,
|
|
2348
2352
|
Ql as outFormDataFields,
|
|
2349
2353
|
ql as parseIcons,
|
|
2350
2354
|
hr as path,
|
|
@@ -2353,29 +2357,29 @@ export {
|
|
|
2353
2357
|
yr as previewFromMinio,
|
|
2354
2358
|
Zt as processCsvFile,
|
|
2355
2359
|
Fr as processExcelFile,
|
|
2356
|
-
|
|
2360
|
+
Re as queryTree,
|
|
2357
2361
|
Xl as resetRules,
|
|
2358
2362
|
Zl as routes,
|
|
2359
2363
|
er as saveForm,
|
|
2360
2364
|
ar as setFormData,
|
|
2361
2365
|
tr as showBreadcrumb,
|
|
2362
2366
|
Nr as toExcel,
|
|
2363
|
-
|
|
2367
|
+
va as unloadOption,
|
|
2364
2368
|
lr as uploadTempBtn,
|
|
2365
2369
|
rr as uploadTempOpener,
|
|
2366
2370
|
sr as useAppInfo,
|
|
2367
2371
|
or as useEditorFactory,
|
|
2368
|
-
|
|
2372
|
+
Ne as useFormItemFactory,
|
|
2369
2373
|
nr as useGridFactory,
|
|
2370
2374
|
ir as useHostInfo,
|
|
2371
2375
|
L as useInputFactory,
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2376
|
+
pa as useOptionFactory,
|
|
2377
|
+
ur as usePageFactory,
|
|
2378
|
+
cr as usePageInfo,
|
|
2375
2379
|
me as useSettingInfo,
|
|
2376
2380
|
et as useToolFactory,
|
|
2377
2381
|
dr as useTreeFactory,
|
|
2378
|
-
|
|
2382
|
+
Pe as useUserInfo,
|
|
2379
2383
|
pr as validateData,
|
|
2380
2384
|
Mr as validateExcel
|
|
2381
2385
|
};
|