@skyfox2000/webui 1.2.6 → 1.2.7
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/README.md +441 -91
- package/lib/assets/modules/{file-upload-Cf9uxE2y.js → file-upload-D4bA7go8.js} +1 -1
- package/lib/assets/modules/{form-excel-DnROEQ0w.js → form-excel-DL2_SNiS.js} +1 -1
- package/lib/assets/modules/{index-BkbOMv2e.js → index-BZvwPKou.js} +1 -1
- package/lib/assets/modules/{index-D4mESG0b.js → index-CKMDsqve.js} +683 -661
- package/lib/assets/modules/{index-DvbJb5Ha.js → index-D16E7UbH.js} +2 -2
- package/lib/assets/modules/{menuTabs-DgX7pUbX.js → menuTabs-izaFx0kk.js} +196 -175
- package/lib/assets/modules/{toolIcon-C0bp66dj.js → toolIcon-66dclHit.js} +1 -1
- package/lib/assets/modules/{uploadList-CWhqNLX9.js → uploadList-Dw6eRrJT.js} +3 -3
- package/lib/components/common/icon/index.vue.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/userInfo.d.ts +3 -1
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +279 -290
- package/package.json +2 -2
- package/src/components/layout/header/headerExits.vue +5 -4
- package/src/components/layout/header/index.vue +4 -2
- package/src/components/layout/header/user.vue +4 -1
- package/src/directives/permission.ts +6 -2
- package/src/stores/appInfo.ts +64 -26
- package/src/stores/pageInfo.ts +1 -0
- package/src/stores/settingInfo.ts +1 -7
- package/src/stores/userInfo.ts +77 -52
- package/src/utils/main-openapis.ts +1 -9
package/lib/webui.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { u as Xe, i as X, a as ve, c as Ze, P as te, o as ie, b as et, d as
|
|
2
|
-
import { a7 as
|
|
3
|
-
import { A as
|
|
1
|
+
import { u as Xe, i as X, a as ve, c as Ze, P as te, o as ie, b as et, d as De, e as Ee, r as oe, f as tt, g as at, h as Fe, j as lt, k as B, l as Ne, m as Re, n as V, p as ke, q as rt, s as st, O as Oe, t as Me, _ as ot, v as nt, w as it, x as ct, y as ut, z as dt, A as Ae } from "./assets/modules/index-CKMDsqve.js";
|
|
2
|
+
import { a7 as gl, L as _l, M as bl, S as xl, a6 as yl, a4 as kl, a5 as wl, a8 as Cl, V as Sl, Q as $l, a2 as Tl, $ as Il, K as Pl, H as Dl, a1 as El, R as Fl, C as Nl, X as Rl, a0 as Ol, a3 as Ml, J as Al, I as Bl, N as zl, a9 as Ul, B as Ll, Z as Yl, aa as Vl, U as Kl, W as Hl, T as jl, ab as Ql, D as ql, E as Wl, ac as Gl, G as Jl, ad as Xl, F as Zl, Y as er } from "./assets/modules/index-CKMDsqve.js";
|
|
3
|
+
import { A as ar, U as lr, a as rr, g as sr, c as or, d as nr, m as ir, p as cr, u as ur, b as dr } from "./assets/modules/file-upload-D4bA7go8.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
|
-
import { FrontCache as le, httpPost as
|
|
5
|
+
import { FrontCache as le, httpPost as Be, ResStatus as ze, SERVER_HOST as pt, fieldMapping as re } from "@skyfox2000/fapi";
|
|
6
6
|
import ne from "vue-m-message";
|
|
7
|
-
import { defineComponent as w, createBlock as _, openBlock as m, withModifiers as Z, unref as l, useAttrs as J, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as
|
|
7
|
+
import { defineComponent as w, createBlock as _, openBlock as m, withModifiers as Z, unref as l, useAttrs as J, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as E, renderSlot as D, normalizeStyle as me, toDisplayString as F, createCommentVNode as k, ref as b, provide as Ue, watch as $, onMounted as z, createTextVNode as N, inject as he, resolveDirective as ae, withDirectives as j, computed as G, createElementBlock as S, normalizeClass as M, createSlots as Le, useSlots as ft, Fragment as O, renderList as U, resolveDynamicComponent as vt, onUnmounted as Ye, onActivated as mt, withKeys as Ce } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import de from "dayjs";
|
|
10
|
-
import { Popover as ht, theme as Ve, Drawer as gt, Space as ee, Form as Ke, message as _t, FormItem as He, ConfigProvider as Se, Popconfirm as bt, Button as je, DropdownButton as xt, Menu as ge, MenuItem as _e, Dropdown as pe, Checkbox as yt, Switch as kt, Table as Qe, Tree as wt, Cascader as Ct, DatePicker as St, Input as fe, InputPassword as $t, InputNumber as Tt, RangePicker as It, Textarea as
|
|
10
|
+
import { Popover as ht, theme as Ve, Drawer as gt, Space as ee, Form as Ke, message as _t, FormItem as He, ConfigProvider as Se, Popconfirm as bt, Button as je, DropdownButton as xt, Menu as ge, MenuItem as _e, Dropdown as pe, Checkbox as yt, Switch as kt, Table as Qe, Tree as wt, Cascader as Ct, DatePicker as St, Input as fe, InputPassword as $t, InputNumber as Tt, RangePicker as It, Textarea as Pt, Transfer as Dt, TreeSelect as Et, LayoutContent as Ft } from "ant-design-vue";
|
|
11
11
|
import { VueDraggableNext as Nt } from "vue-draggable-next";
|
|
12
|
-
import { d as qe } from "./assets/modules/uploadList-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { c as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { a as
|
|
18
|
-
import { _ as Q } from "./assets/modules/menuTabs-
|
|
19
|
-
import { a as
|
|
20
|
-
import { _ as
|
|
12
|
+
import { d as qe } from "./assets/modules/uploadList-Dw6eRrJT.js";
|
|
13
|
+
import { _ as fr, a as vr } from "./assets/modules/uploadList-Dw6eRrJT.js";
|
|
14
|
+
import { c as hr, p as gr, v as _r } from "./assets/modules/form-excel-DL2_SNiS.js";
|
|
15
|
+
import { _ as A } from "./assets/modules/index-BZvwPKou.js";
|
|
16
|
+
import { _ as L } from "./assets/modules/toolIcon-66dclHit.js";
|
|
17
|
+
import { a as xr } from "./assets/modules/toolIcon-66dclHit.js";
|
|
18
|
+
import { _ as Q } from "./assets/modules/menuTabs-izaFx0kk.js";
|
|
19
|
+
import { a as kr, c as wr, d as Cr, e as Sr, f as $r, I as Tr, g as Ir, h as Pr, b as Dr } from "./assets/modules/menuTabs-izaFx0kk.js";
|
|
20
|
+
import { _ as Fr } from "./assets/modules/index-D16E7UbH.js";
|
|
21
21
|
const $e = (r, a, t, e = "remove") => {
|
|
22
22
|
if (!t)
|
|
23
23
|
if (e === "disable") {
|
|
@@ -36,7 +36,7 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
36
36
|
return !X(e) && e !== void 0 ? a.hasRole(e) : !0;
|
|
37
37
|
if (we.VITE_PERMISSION_MODE === "permit") {
|
|
38
38
|
let p = !1, u = !1;
|
|
39
|
-
return
|
|
39
|
+
return X(e) || (p = a.hasRole(e)), a.isAdmin() ? p : (!X(o) && typeof o == "string" && (u = a.hasPermit(n, o)), X(e) && X(o) ? !0 : p || u);
|
|
40
40
|
}
|
|
41
41
|
return !1;
|
|
42
42
|
}, Rt = {
|
|
@@ -61,7 +61,7 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
61
61
|
}, ce = {
|
|
62
62
|
auth: Rt,
|
|
63
63
|
submit: Ot
|
|
64
|
-
},
|
|
64
|
+
}, Ya = (r, a) => ((a || Object.keys(ce)).forEach((e) => {
|
|
65
65
|
e in ce && r.directive(e, ce[e]);
|
|
66
66
|
}), r), K = (r, a) => {
|
|
67
67
|
const t = r.find((e) => e.key === a);
|
|
@@ -92,9 +92,9 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
92
92
|
}), { buttons: e, menus: o };
|
|
93
93
|
}, H = (r, a) => r.disabled && typeof r.disabled == "function" ? r.disabled(a) : r.disabled, W = (r, a) => r.visible && typeof r.visible == "function" ? r.visible(a) : r.visible ?? !0, Mt = (r, a) => {
|
|
94
94
|
a.reload.value = !0;
|
|
95
|
-
}, Bt = (r, a) => {
|
|
96
|
-
a.searchBar.value = !a.searchBar.value;
|
|
97
95
|
}, At = (r, a) => {
|
|
96
|
+
a.searchBar.value = !a.searchBar.value;
|
|
97
|
+
}, Bt = (r, a) => {
|
|
98
98
|
switch (a.tableSize.value) {
|
|
99
99
|
case "large":
|
|
100
100
|
a.tableSize.value = "middle";
|
|
@@ -108,13 +108,13 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
108
108
|
}
|
|
109
109
|
}, zt = (r, a) => {
|
|
110
110
|
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
111
|
-
},
|
|
111
|
+
}, Ut = (r, a) => {
|
|
112
112
|
a.rowExpand.value = !a.rowExpand.value;
|
|
113
113
|
}, Ie = (r, a) => {
|
|
114
114
|
a.selectable.value = !a.selectable.value;
|
|
115
115
|
}, Y = (r, a, t, e, o) => {
|
|
116
116
|
(!r.confirm || o) && r.click && (a ? r.click(a, t, e) : r.click(null, t, e)), Yt(r);
|
|
117
|
-
},
|
|
117
|
+
}, Lt = (r, a) => {
|
|
118
118
|
a.selectable.value = !a.selectable.value;
|
|
119
119
|
}, We = () => {
|
|
120
120
|
const r = ve();
|
|
@@ -123,7 +123,7 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
123
123
|
(r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
|
|
124
124
|
}, Vt = (r, a) => {
|
|
125
125
|
a ? delete r.visible : r.visible = !1;
|
|
126
|
-
},
|
|
126
|
+
}, Pe = [
|
|
127
127
|
{
|
|
128
128
|
key: "Reload",
|
|
129
129
|
label: "刷新表格",
|
|
@@ -136,13 +136,13 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
136
136
|
labels: ["展开搜索栏", "折叠搜索栏"],
|
|
137
137
|
icon: "icon-search",
|
|
138
138
|
iconStatus: 0,
|
|
139
|
-
click:
|
|
139
|
+
click: At
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
key: "RowHeight",
|
|
143
143
|
label: "行高调整",
|
|
144
144
|
icon: "icon-row-height",
|
|
145
|
-
click:
|
|
145
|
+
click: Bt
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
key: "tool.multiple.checkbox",
|
|
@@ -158,7 +158,7 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
158
158
|
icon: "icon-row-collapse",
|
|
159
159
|
iconStatus: 0,
|
|
160
160
|
icons: ["icon-row-collapse", "icon-row-expand"],
|
|
161
|
-
click:
|
|
161
|
+
click: Ut
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
key: "tool.export.excel",
|
|
@@ -185,7 +185,7 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
185
185
|
{
|
|
186
186
|
key: "tool.export.pdf.selected",
|
|
187
187
|
label: "选中的记录",
|
|
188
|
-
click:
|
|
188
|
+
click: Lt
|
|
189
189
|
}
|
|
190
190
|
]
|
|
191
191
|
},
|
|
@@ -210,7 +210,7 @@ const $e = (r, a, t, e = "remove") => {
|
|
|
210
210
|
], Kt = (r) => {
|
|
211
211
|
if (!r.tools || r.tools.length > 0) {
|
|
212
212
|
const a = [];
|
|
213
|
-
return r.tools ? a.push(...r.tools) : a.push(...
|
|
213
|
+
return r.tools ? a.push(...r.tools) : a.push(...Pe), { tools: be(Pe, 0, a).buttons };
|
|
214
214
|
}
|
|
215
215
|
return {
|
|
216
216
|
tools: []
|
|
@@ -272,9 +272,9 @@ class Ge {
|
|
|
272
272
|
return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
|
-
async function
|
|
275
|
+
async function Va() {
|
|
276
276
|
try {
|
|
277
|
-
const r = await
|
|
277
|
+
const r = await Be(
|
|
278
278
|
{
|
|
279
279
|
api: "PLATFORM_API",
|
|
280
280
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -305,7 +305,7 @@ async function Ka() {
|
|
|
305
305
|
console.error("检查缓存更新失败", r);
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const Ka = async (r, a, t) => {
|
|
309
309
|
try {
|
|
310
310
|
const o = (await import("@json2csv/plainjs")).Parser, n = Je(r), p = a.filter((v) => v.visible !== !1 && v.export !== !1), u = p.map((v) => ({
|
|
311
311
|
label: v.title,
|
|
@@ -313,8 +313,8 @@ const Ha = async (r, a, t) => {
|
|
|
313
313
|
})), i = t.map((v) => {
|
|
314
314
|
const f = { ...v };
|
|
315
315
|
return p.forEach((g) => {
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const C = g.dataIndex || g.key;
|
|
317
|
+
C && g.customRender && (f[C] = g.customRender(v[C], v));
|
|
318
318
|
}), f;
|
|
319
319
|
}), d = new o({ fields: u }).parse(i), s = new Blob([`\uFEFF${d}`], { type: "text/csv" });
|
|
320
320
|
qe(s, n);
|
|
@@ -324,33 +324,33 @@ const Ha = async (r, a, t) => {
|
|
|
324
324
|
}, Je = (r) => {
|
|
325
325
|
const a = /\{([^}]+)\}/g;
|
|
326
326
|
return r.replace(a, (t, e) => de().format(e));
|
|
327
|
-
},
|
|
327
|
+
}, Ha = async (r, a, t, e) => {
|
|
328
328
|
try {
|
|
329
329
|
const n = (await import("@json2csv/plainjs")).Parser, p = Je(r), u = a.filter((s) => s.visible !== !1), i = u.map((s) => ({
|
|
330
330
|
label: s.title,
|
|
331
331
|
value: s.dataIndex || s.key || ""
|
|
332
332
|
}));
|
|
333
333
|
let c = t.page, d = t.gridQuery;
|
|
334
|
-
return e.api || (e.api = c.api), e.authorize === void 0 && (e.authorize = c.authorize), t.isGridLoading.value = !0,
|
|
334
|
+
return e.api || (e.api = c.api), e.authorize === void 0 && (e.authorize = c.authorize), t.isGridLoading.value = !0, Be(e, d).then((s) => {
|
|
335
335
|
if (t.isGridLoading.value = !1, (s == null ? void 0 : s.status) === ze.SUCCESS && s.data) {
|
|
336
|
-
const f = s.data.map((
|
|
337
|
-
const x = { ...
|
|
336
|
+
const f = s.data.map((P) => {
|
|
337
|
+
const x = { ...P };
|
|
338
338
|
return u.forEach((R) => {
|
|
339
339
|
const q = R.dataIndex || R.key;
|
|
340
|
-
q && R.customRender && (x[q] = R.customRender(
|
|
340
|
+
q && R.customRender && (x[q] = R.customRender(P[q], P));
|
|
341
341
|
}), x;
|
|
342
|
-
}),
|
|
342
|
+
}), C = new n({ fields: i }).parse(f), I = new Blob([`\uFEFF${C}`], { type: "text/csv" });
|
|
343
343
|
qe(I, p);
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
} catch (o) {
|
|
347
347
|
console.error("导出失败:", o), ne.error("文件导出失败,请稍后重试");
|
|
348
348
|
}
|
|
349
|
-
},
|
|
349
|
+
}, ja = /* @__PURE__ */ w({
|
|
350
350
|
__name: "fullscreen",
|
|
351
351
|
setup(r) {
|
|
352
352
|
const a = ve();
|
|
353
|
-
return (t, e) => (m(), _(
|
|
353
|
+
return (t, e) => (m(), _(L, {
|
|
354
354
|
onClick: Z(l(We), ["stop"]),
|
|
355
355
|
icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
356
356
|
class: "w-[17px] h-[17px]"
|
|
@@ -367,16 +367,16 @@ const Ha = async (r, a, t) => {
|
|
|
367
367
|
const a = J();
|
|
368
368
|
return (t, e) => (m(), _(l(ht), { placement: "topRight" }, {
|
|
369
369
|
content: h(() => [
|
|
370
|
-
|
|
370
|
+
D(t.$slots, "default", {}, () => [
|
|
371
371
|
T("div", {
|
|
372
372
|
class: "text-[14px]",
|
|
373
373
|
style: me({ maxWidth: t.maxWidth })
|
|
374
|
-
},
|
|
374
|
+
}, F(t.text), 5)
|
|
375
375
|
])
|
|
376
376
|
]),
|
|
377
377
|
default: h(() => [
|
|
378
378
|
T("span", jt, [
|
|
379
|
-
y(
|
|
379
|
+
y(L, E({
|
|
380
380
|
icon: "icon-question-circle",
|
|
381
381
|
class: "text-[#888] w-4 h-4"
|
|
382
382
|
}, l(a)), null, 16)
|
|
@@ -385,7 +385,7 @@ const Ha = async (r, a, t) => {
|
|
|
385
385
|
_: 3
|
|
386
386
|
}));
|
|
387
387
|
}
|
|
388
|
-
}),
|
|
388
|
+
}), Qa = /* @__PURE__ */ w({
|
|
389
389
|
__name: "layoutIcon",
|
|
390
390
|
props: {
|
|
391
391
|
icon: {
|
|
@@ -402,14 +402,14 @@ const Ha = async (r, a, t) => {
|
|
|
402
402
|
icon: a.icon,
|
|
403
403
|
icons: a.icons
|
|
404
404
|
});
|
|
405
|
-
return (o, n) => r.icon || r.icons ? (m(), _(l(e),
|
|
405
|
+
return (o, n) => r.icon || r.icons ? (m(), _(l(e), E({
|
|
406
406
|
key: 0,
|
|
407
407
|
icon: r.icon,
|
|
408
408
|
icons: r.icons,
|
|
409
409
|
class: ["align-middle"]
|
|
410
410
|
}, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
411
411
|
}
|
|
412
|
-
}), qt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" },
|
|
412
|
+
}), qt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, qa = /* @__PURE__ */ w({
|
|
413
413
|
__name: "index",
|
|
414
414
|
props: {
|
|
415
415
|
saveText: {},
|
|
@@ -419,7 +419,7 @@ const Ha = async (r, a, t) => {
|
|
|
419
419
|
},
|
|
420
420
|
setup(r) {
|
|
421
421
|
const { useToken: a } = Ve, { token: t } = a(), e = b(!1), n = r.editorCtrl;
|
|
422
|
-
|
|
422
|
+
Ue(te.EditorControl, n), $(
|
|
423
423
|
() => n.visible.value,
|
|
424
424
|
(u) => {
|
|
425
425
|
e.value = u ?? !1;
|
|
@@ -455,7 +455,7 @@ const Ha = async (r, a, t) => {
|
|
|
455
455
|
}, {
|
|
456
456
|
extra: h(() => [
|
|
457
457
|
T("div", qt, [
|
|
458
|
-
y(l(
|
|
458
|
+
y(l(L), {
|
|
459
459
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
460
460
|
icon: "icon-new",
|
|
461
461
|
angle: 45,
|
|
@@ -468,39 +468,39 @@ const Ha = async (r, a, t) => {
|
|
|
468
468
|
])
|
|
469
469
|
]),
|
|
470
470
|
default: h(() => [
|
|
471
|
-
|
|
471
|
+
D(u.$slots, "default")
|
|
472
472
|
]),
|
|
473
473
|
footer: h(() => [
|
|
474
474
|
y(l(ee), null, {
|
|
475
475
|
default: h(() => [
|
|
476
|
-
u.cancelText !== "" ? (m(), _(l(
|
|
476
|
+
u.cancelText !== "" ? (m(), _(l(A), {
|
|
477
477
|
key: 0,
|
|
478
478
|
onClick: i[1] || (i[1] = () => l(ie)(l(n)))
|
|
479
479
|
}, {
|
|
480
480
|
default: h(() => [
|
|
481
|
-
N(
|
|
481
|
+
N(F(u.cancelText ?? "取消"), 1)
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
484
484
|
})) : k("", !0),
|
|
485
|
-
u.saveAsText !== "" && l(n).saveAsBtnVisible !== !1 ? (m(), _(l(
|
|
485
|
+
u.saveAsText !== "" && l(n).saveAsBtnVisible !== !1 ? (m(), _(l(A), {
|
|
486
486
|
key: 1,
|
|
487
487
|
onClick: i[2] || (i[2] = () => l(et)(l(n))),
|
|
488
488
|
type: "primary",
|
|
489
489
|
loading: l(n).isFormSaving.value
|
|
490
490
|
}, {
|
|
491
491
|
default: h(() => [
|
|
492
|
-
N(
|
|
492
|
+
N(F(u.saveAsText ?? "另存为"), 1)
|
|
493
493
|
]),
|
|
494
494
|
_: 1
|
|
495
495
|
}, 8, ["loading"])) : k("", !0),
|
|
496
|
-
u.saveText !== "" && l(n).saveBtnVisible !== !1 ? (m(), _(l(
|
|
496
|
+
u.saveText !== "" && l(n).saveBtnVisible !== !1 ? (m(), _(l(A), {
|
|
497
497
|
key: 2,
|
|
498
|
-
onClick: i[3] || (i[3] = () => l(
|
|
498
|
+
onClick: i[3] || (i[3] = () => l(De)(l(n))),
|
|
499
499
|
type: "primary",
|
|
500
500
|
loading: l(n).isFormSaving.value
|
|
501
501
|
}, {
|
|
502
502
|
default: h(() => [
|
|
503
|
-
N(
|
|
503
|
+
N(F(u.saveText ?? "保存"), 1)
|
|
504
504
|
]),
|
|
505
505
|
_: 1
|
|
506
506
|
}, 8, ["loading"])) : k("", !0)
|
|
@@ -511,7 +511,7 @@ const Ha = async (r, a, t) => {
|
|
|
511
511
|
_: 3
|
|
512
512
|
}, 8, ["open", "header-style"]));
|
|
513
513
|
}
|
|
514
|
-
}),
|
|
514
|
+
}), Wa = /* @__PURE__ */ w({
|
|
515
515
|
__name: "index",
|
|
516
516
|
props: {
|
|
517
517
|
labelWidth: {},
|
|
@@ -533,14 +533,14 @@ const Ha = async (r, a, t) => {
|
|
|
533
533
|
}
|
|
534
534
|
}, {
|
|
535
535
|
default: h(() => [
|
|
536
|
-
|
|
536
|
+
D(e.$slots, "default")
|
|
537
537
|
]),
|
|
538
538
|
_: 3
|
|
539
539
|
}, 8, ["label-col", "wrapper-col"])), [
|
|
540
540
|
[
|
|
541
541
|
n,
|
|
542
542
|
() => {
|
|
543
|
-
l(t) && l(
|
|
543
|
+
l(t) && l(De)(l(t));
|
|
544
544
|
}
|
|
545
545
|
]
|
|
546
546
|
]);
|
|
@@ -549,7 +549,7 @@ const Ha = async (r, a, t) => {
|
|
|
549
549
|
}), Wt = { class: "w-full flex items-center" }, Gt = { class: "flex-grow" }, Jt = { class: "w-8 mt-[-2px]" }, Xt = {
|
|
550
550
|
key: 1,
|
|
551
551
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
552
|
-
},
|
|
552
|
+
}, Ga = /* @__PURE__ */ w({
|
|
553
553
|
inheritAttrs: !1,
|
|
554
554
|
__name: "formItem",
|
|
555
555
|
props: {
|
|
@@ -575,10 +575,10 @@ const Ha = async (r, a, t) => {
|
|
|
575
575
|
const i = p(a.rule.split("."), (c = e == null ? void 0 : e.formRules) == null ? void 0 : c.value);
|
|
576
576
|
return i ? i.required ?? !0 : (_t.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
|
|
577
577
|
});
|
|
578
|
-
return (i, c) => (m(),
|
|
578
|
+
return (i, c) => (m(), S("div", {
|
|
579
579
|
class: M(["w-full relative mb-1", i.width])
|
|
580
580
|
}, [
|
|
581
|
-
n.value ? (m(), _(l(He),
|
|
581
|
+
n.value ? (m(), _(l(He), E({
|
|
582
582
|
key: 0,
|
|
583
583
|
required: u.value,
|
|
584
584
|
class: "!w-[95%] relative"
|
|
@@ -588,15 +588,15 @@ const Ha = async (r, a, t) => {
|
|
|
588
588
|
label: h(() => [
|
|
589
589
|
T("span", {
|
|
590
590
|
class: M([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
591
|
-
},
|
|
591
|
+
}, F(i.label), 3)
|
|
592
592
|
]),
|
|
593
593
|
default: h(() => [
|
|
594
594
|
T("div", Wt, [
|
|
595
595
|
T("div", Gt, [
|
|
596
|
-
|
|
596
|
+
D(i.$slots, "default")
|
|
597
597
|
]),
|
|
598
598
|
T("div", Jt, [
|
|
599
|
-
|
|
599
|
+
D(i.$slots, "helper", {}, () => [
|
|
600
600
|
i.helper ? (m(), _(l(Qt), {
|
|
601
601
|
key: 0,
|
|
602
602
|
text: i.helper
|
|
@@ -607,7 +607,7 @@ const Ha = async (r, a, t) => {
|
|
|
607
607
|
]),
|
|
608
608
|
_: 3
|
|
609
609
|
}, 16, ["required", "class"])) : k("", !0),
|
|
610
|
-
l(o).errClass ? (m(),
|
|
610
|
+
l(o).errClass ? (m(), S("span", Xt, F(l(o).msg), 1)) : k("", !0)
|
|
611
611
|
], 2));
|
|
612
612
|
}
|
|
613
613
|
}), Zt = { class: "w-1/3 relative mb-1" }, ea = { class: "flex items-center" }, ta = { class: "flex-grow pl-1" }, aa = {
|
|
@@ -623,18 +623,18 @@ const Ha = async (r, a, t) => {
|
|
|
623
623
|
},
|
|
624
624
|
setup(r) {
|
|
625
625
|
const a = r, t = J(), e = he(te.EditorControl, void 0), o = Ee(a, e);
|
|
626
|
-
return (n, p) => (m(),
|
|
627
|
-
y(l(He),
|
|
626
|
+
return (n, p) => (m(), S("div", Zt, [
|
|
627
|
+
y(l(He), E({
|
|
628
628
|
required: n.rule !== void 0,
|
|
629
629
|
class: "w-[90%] relative"
|
|
630
630
|
}, l(t), {
|
|
631
631
|
class: [n.rule ? "" : "mb-3", n.width],
|
|
632
632
|
labelCol: { span: 6 }
|
|
633
|
-
}),
|
|
633
|
+
}), Le({
|
|
634
634
|
default: h(() => [
|
|
635
635
|
T("div", ea, [
|
|
636
636
|
T("div", ta, [
|
|
637
|
-
|
|
637
|
+
D(n.$slots, "default")
|
|
638
638
|
])
|
|
639
639
|
])
|
|
640
640
|
]),
|
|
@@ -645,15 +645,15 @@ const Ha = async (r, a, t) => {
|
|
|
645
645
|
fn: h(() => [
|
|
646
646
|
T("span", {
|
|
647
647
|
class: M([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
648
|
-
},
|
|
648
|
+
}, F(n.label), 3)
|
|
649
649
|
]),
|
|
650
650
|
key: "0"
|
|
651
651
|
} : void 0
|
|
652
652
|
]), 1040, ["required", "class"]),
|
|
653
|
-
l(o).msg ? (m(),
|
|
653
|
+
l(o).msg ? (m(), S("span", aa, F(l(o).msg), 1)) : k("", !0)
|
|
654
654
|
]));
|
|
655
655
|
}
|
|
656
|
-
}),
|
|
656
|
+
}), Ja = /* @__PURE__ */ w({
|
|
657
657
|
__name: "index",
|
|
658
658
|
props: {
|
|
659
659
|
search: {},
|
|
@@ -664,8 +664,8 @@ const Ha = async (r, a, t) => {
|
|
|
664
664
|
setup(r, { emit: a }) {
|
|
665
665
|
const t = r, e = a, o = b(0), n = b(0), p = b(0), u = (f) => {
|
|
666
666
|
let g = 0;
|
|
667
|
-
for (let
|
|
668
|
-
typeof f[
|
|
667
|
+
for (let C = 0; C < f.length; C++)
|
|
668
|
+
typeof f[C].type == "object" && g++;
|
|
669
669
|
return g;
|
|
670
670
|
}, i = ft(), c = () => {
|
|
671
671
|
n.value = 0, p.value = 0, i.default && (n.value = u(i.default({}))), t.gridCtrl.searchBar && i.control && (p.value = u(i.control({}))), o.value = 2 - (n.value + p.value) % 3;
|
|
@@ -693,8 +693,8 @@ const Ha = async (r, a, t) => {
|
|
|
693
693
|
var g;
|
|
694
694
|
let f = { ...t.search };
|
|
695
695
|
if (t.likeFields)
|
|
696
|
-
for (const
|
|
697
|
-
f[
|
|
696
|
+
for (const C of t.likeFields)
|
|
697
|
+
f[C] && (f[C] = { $like: "%" + f[C] + "%" });
|
|
698
698
|
t.gridCtrl.gridQuery = {
|
|
699
699
|
...t.gridCtrl.gridQuery,
|
|
700
700
|
Query: {
|
|
@@ -709,7 +709,7 @@ const Ha = async (r, a, t) => {
|
|
|
709
709
|
e("update:search", f);
|
|
710
710
|
};
|
|
711
711
|
return (f, g) => {
|
|
712
|
-
const
|
|
712
|
+
const C = ae("submit");
|
|
713
713
|
return n.value + p.value > 0 ? j((m(), _(l(Ke), {
|
|
714
714
|
key: 0,
|
|
715
715
|
"label-col": { flex: "60px" },
|
|
@@ -720,8 +720,8 @@ const Ha = async (r, a, t) => {
|
|
|
720
720
|
class: "flex mb-[10px]"
|
|
721
721
|
}, {
|
|
722
722
|
default: h(() => [
|
|
723
|
-
|
|
724
|
-
f.gridCtrl.searchBar ?
|
|
723
|
+
D(f.$slots, "default"),
|
|
724
|
+
f.gridCtrl.searchBar ? D(f.$slots, "control", { key: 0 }) : k("", !0),
|
|
725
725
|
o.value >= 1 ? (m(), _(ue, {
|
|
726
726
|
key: 1,
|
|
727
727
|
class: "w-1/3"
|
|
@@ -738,7 +738,7 @@ const Ha = async (r, a, t) => {
|
|
|
738
738
|
default: h(() => [
|
|
739
739
|
y(l(ee), null, {
|
|
740
740
|
default: h(() => [
|
|
741
|
-
y(l(
|
|
741
|
+
y(l(A), {
|
|
742
742
|
type: "primary",
|
|
743
743
|
onClick: s,
|
|
744
744
|
icon: "icon-search"
|
|
@@ -749,7 +749,7 @@ const Ha = async (r, a, t) => {
|
|
|
749
749
|
_: 1,
|
|
750
750
|
__: [0]
|
|
751
751
|
}),
|
|
752
|
-
y(l(
|
|
752
|
+
y(l(A), {
|
|
753
753
|
onClick: v,
|
|
754
754
|
icon: "icon-reset"
|
|
755
755
|
}, {
|
|
@@ -768,7 +768,7 @@ const Ha = async (r, a, t) => {
|
|
|
768
768
|
]),
|
|
769
769
|
_: 3
|
|
770
770
|
})), [
|
|
771
|
-
[
|
|
771
|
+
[C, s]
|
|
772
772
|
]) : k("", !0);
|
|
773
773
|
};
|
|
774
774
|
}
|
|
@@ -825,7 +825,7 @@ const Ha = async (r, a, t) => {
|
|
|
825
825
|
default: h(() => [
|
|
826
826
|
y(l(ee), null, {
|
|
827
827
|
default: h(() => [
|
|
828
|
-
(m(!0),
|
|
828
|
+
(m(!0), S(O, null, U(l(n), (s) => (m(), S(O, {
|
|
829
829
|
key: s.key
|
|
830
830
|
}, [
|
|
831
831
|
l(W)(s, a.record) ? (m(), _(l(bt), {
|
|
@@ -851,7 +851,7 @@ const Ha = async (r, a, t) => {
|
|
|
851
851
|
})
|
|
852
852
|
}, {
|
|
853
853
|
default: h(() => [
|
|
854
|
-
N(
|
|
854
|
+
N(F(s.label), 1)
|
|
855
855
|
]),
|
|
856
856
|
_: 2
|
|
857
857
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
@@ -873,7 +873,7 @@ const Ha = async (r, a, t) => {
|
|
|
873
873
|
overlay: h(() => [
|
|
874
874
|
y(l(ge), null, {
|
|
875
875
|
default: h(() => [
|
|
876
|
-
(m(!0),
|
|
876
|
+
(m(!0), S(O, null, U(l(p), (s) => (m(), S(O, {
|
|
877
877
|
key: s.key
|
|
878
878
|
}, [
|
|
879
879
|
l(W)(s, a.record) ? j((m(), _(l(_e), {
|
|
@@ -882,7 +882,7 @@ const Ha = async (r, a, t) => {
|
|
|
882
882
|
onClick: (v) => l(Y)(s, l(t).page, l(t), a.record)
|
|
883
883
|
}, {
|
|
884
884
|
default: h(() => [
|
|
885
|
-
N(
|
|
885
|
+
N(F(s.label), 1)
|
|
886
886
|
]),
|
|
887
887
|
_: 2
|
|
888
888
|
}, 1032, ["disabled", "onClick"])), [
|
|
@@ -934,8 +934,8 @@ const Ha = async (r, a, t) => {
|
|
|
934
934
|
const p = () => {
|
|
935
935
|
t.columns.value.splice(0, t.columns.value.length, ...n.value), o.setTableColumns(oe.currentRoute.value.path, t.columns.value);
|
|
936
936
|
};
|
|
937
|
-
return (u, i) => (m(),
|
|
938
|
-
(m(!0),
|
|
937
|
+
return (u, i) => (m(), S("div", ra, [
|
|
938
|
+
(m(!0), S(O, null, U(l(e), (c, d) => (m(), S(O, {
|
|
939
939
|
key: c.key
|
|
940
940
|
}, [
|
|
941
941
|
l(W)(c) && c.dropdown ? (m(), _(l(pe), {
|
|
@@ -956,7 +956,7 @@ const Ha = async (r, a, t) => {
|
|
|
956
956
|
handle: ".drag-handle"
|
|
957
957
|
}, {
|
|
958
958
|
default: h(() => [
|
|
959
|
-
(m(!0),
|
|
959
|
+
(m(!0), S(O, null, U(n.value, (s) => (m(), S("div", {
|
|
960
960
|
key: s.name,
|
|
961
961
|
onClick: i[0] || (i[0] = Z(() => {
|
|
962
962
|
}, ["stop"])),
|
|
@@ -974,7 +974,7 @@ const Ha = async (r, a, t) => {
|
|
|
974
974
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
975
975
|
}, {
|
|
976
976
|
default: h(() => [
|
|
977
|
-
N(
|
|
977
|
+
N(F(s.title), 1)
|
|
978
978
|
]),
|
|
979
979
|
_: 2
|
|
980
980
|
}, 1032, ["checked", "onChange"])
|
|
@@ -985,7 +985,7 @@ const Ha = async (r, a, t) => {
|
|
|
985
985
|
], 2)
|
|
986
986
|
]),
|
|
987
987
|
default: h(() => [
|
|
988
|
-
y(l(
|
|
988
|
+
y(l(A), {
|
|
989
989
|
class: M([
|
|
990
990
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
991
991
|
d === 0 ? "rounded-l-[5px]" : "",
|
|
@@ -996,7 +996,7 @@ const Ha = async (r, a, t) => {
|
|
|
996
996
|
onClick: (s) => l(Y)(c, l(t).page, l(t))
|
|
997
997
|
}, {
|
|
998
998
|
default: h(() => [
|
|
999
|
-
y(l(
|
|
999
|
+
y(l(L), {
|
|
1000
1000
|
icon: c.icon,
|
|
1001
1001
|
class: "w-[18px] h-[18.5px]",
|
|
1002
1002
|
clickable: ""
|
|
@@ -1006,7 +1006,7 @@ const Ha = async (r, a, t) => {
|
|
|
1006
1006
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
1007
1007
|
]),
|
|
1008
1008
|
_: 2
|
|
1009
|
-
}, 1024)) : !c.children && l(W)(c) ? (m(), _(l(
|
|
1009
|
+
}, 1024)) : !c.children && l(W)(c) ? (m(), _(l(A), {
|
|
1010
1010
|
key: 1,
|
|
1011
1011
|
class: M([
|
|
1012
1012
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
@@ -1018,7 +1018,7 @@ const Ha = async (r, a, t) => {
|
|
|
1018
1018
|
onClick: (s) => l(Y)(c, l(t).page, l(t))
|
|
1019
1019
|
}, {
|
|
1020
1020
|
default: h(() => [
|
|
1021
|
-
y(l(
|
|
1021
|
+
y(l(L), {
|
|
1022
1022
|
icon: c.icon,
|
|
1023
1023
|
class: "w-[18px] h-[18.5px]",
|
|
1024
1024
|
clickable: ""
|
|
@@ -1033,12 +1033,12 @@ const Ha = async (r, a, t) => {
|
|
|
1033
1033
|
overlay: h(() => [
|
|
1034
1034
|
y(l(ge), null, {
|
|
1035
1035
|
default: h(() => [
|
|
1036
|
-
(m(!0),
|
|
1036
|
+
(m(!0), S(O, null, U(c.children, (s) => (m(), _(l(_e), {
|
|
1037
1037
|
key: s.key,
|
|
1038
1038
|
disabled: l(H)(s)
|
|
1039
1039
|
}, {
|
|
1040
1040
|
default: h(() => [
|
|
1041
|
-
N(
|
|
1041
|
+
N(F(s.label), 1)
|
|
1042
1042
|
]),
|
|
1043
1043
|
_: 2
|
|
1044
1044
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -1047,7 +1047,7 @@ const Ha = async (r, a, t) => {
|
|
|
1047
1047
|
}, 1024)
|
|
1048
1048
|
]),
|
|
1049
1049
|
default: h(() => [
|
|
1050
|
-
y(l(
|
|
1050
|
+
y(l(A), {
|
|
1051
1051
|
class: M([
|
|
1052
1052
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1053
1053
|
d === 0 ? "rounded-l-[5px]" : ""
|
|
@@ -1059,7 +1059,7 @@ const Ha = async (r, a, t) => {
|
|
|
1059
1059
|
onClick: (s) => l(Y)(c, l(t).page, l(t))
|
|
1060
1060
|
}, {
|
|
1061
1061
|
default: h(() => [
|
|
1062
|
-
y(l(
|
|
1062
|
+
y(l(L), {
|
|
1063
1063
|
icon: "icon-down-arrow",
|
|
1064
1064
|
class: "w-[12px] h-[12px]"
|
|
1065
1065
|
})
|
|
@@ -1112,10 +1112,10 @@ const Ha = async (r, a, t) => {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
), (c, d) => {
|
|
1114
1114
|
const s = ae("auth");
|
|
1115
|
-
return m(),
|
|
1115
|
+
return m(), S("div", oa, [
|
|
1116
1116
|
y(l(ee), null, {
|
|
1117
1117
|
default: h(() => [
|
|
1118
|
-
(m(!0),
|
|
1118
|
+
(m(!0), S(O, null, U(u.value, (v) => j((m(), _(l(A), {
|
|
1119
1119
|
key: v.key,
|
|
1120
1120
|
type: v.type,
|
|
1121
1121
|
danger: v.danger,
|
|
@@ -1124,7 +1124,7 @@ const Ha = async (r, a, t) => {
|
|
|
1124
1124
|
onClick: (f) => l(Y)(v, l(e), l(t))
|
|
1125
1125
|
}, {
|
|
1126
1126
|
default: h(() => [
|
|
1127
|
-
N(
|
|
1127
|
+
N(F(v.label), 1)
|
|
1128
1128
|
]),
|
|
1129
1129
|
_: 2
|
|
1130
1130
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
@@ -1134,13 +1134,13 @@ const Ha = async (r, a, t) => {
|
|
|
1134
1134
|
overlay: h(() => [
|
|
1135
1135
|
y(l(ge), null, {
|
|
1136
1136
|
default: h(() => [
|
|
1137
|
-
(m(!0),
|
|
1137
|
+
(m(!0), S(O, null, U(i.value, (v) => j((m(), _(l(_e), {
|
|
1138
1138
|
key: v.key,
|
|
1139
1139
|
disabled: l(H)(v),
|
|
1140
1140
|
onClick: (f) => l(Y)(v, l(e), l(t))
|
|
1141
1141
|
}, {
|
|
1142
1142
|
default: h(() => [
|
|
1143
|
-
N(
|
|
1143
|
+
N(F(v.label), 1)
|
|
1144
1144
|
]),
|
|
1145
1145
|
_: 2
|
|
1146
1146
|
}, 1032, ["disabled", "onClick"])), [
|
|
@@ -1151,7 +1151,7 @@ const Ha = async (r, a, t) => {
|
|
|
1151
1151
|
})
|
|
1152
1152
|
]),
|
|
1153
1153
|
default: h(() => [
|
|
1154
|
-
y(l(
|
|
1154
|
+
y(l(A), null, {
|
|
1155
1155
|
default: h(() => d[0] || (d[0] = [
|
|
1156
1156
|
N(" 更多操作 ")
|
|
1157
1157
|
])),
|
|
@@ -1161,7 +1161,7 @@ const Ha = async (r, a, t) => {
|
|
|
1161
1161
|
]),
|
|
1162
1162
|
_: 1
|
|
1163
1163
|
})) : k("", !0),
|
|
1164
|
-
u.value.length === 0 && i.value.length === 0 ? (m(),
|
|
1164
|
+
u.value.length === 0 && i.value.length === 0 ? (m(), S("span", na)) : k("", !0)
|
|
1165
1165
|
]),
|
|
1166
1166
|
_: 1
|
|
1167
1167
|
}),
|
|
@@ -1187,7 +1187,7 @@ const Ha = async (r, a, t) => {
|
|
|
1187
1187
|
},
|
|
1188
1188
|
emits: ["change"],
|
|
1189
1189
|
setup(r, { emit: a }) {
|
|
1190
|
-
const t = r, e = b([]), o = a, { editorCtrl: n, errInfo: p } =
|
|
1190
|
+
const t = r, e = b([]), o = a, { editorCtrl: n, errInfo: p } = B(), u = (i) => {
|
|
1191
1191
|
p != null && p.value.errClass && n && V(n), o("change", i);
|
|
1192
1192
|
};
|
|
1193
1193
|
return z(() => {
|
|
@@ -1200,7 +1200,7 @@ const Ha = async (r, a, t) => {
|
|
|
1200
1200
|
Re(t);
|
|
1201
1201
|
}), (i, c) => {
|
|
1202
1202
|
var d;
|
|
1203
|
-
return e.value.length === 2 ? (m(), _(l(kt),
|
|
1203
|
+
return e.value.length === 2 ? (m(), _(l(kt), E({
|
|
1204
1204
|
key: 0,
|
|
1205
1205
|
class: [
|
|
1206
1206
|
((d = l(p)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
|
|
@@ -1215,7 +1215,7 @@ const Ha = async (r, a, t) => {
|
|
|
1215
1215
|
}, i.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
|
|
1216
1216
|
};
|
|
1217
1217
|
}
|
|
1218
|
-
}),
|
|
1218
|
+
}), Xa = /* @__PURE__ */ w({
|
|
1219
1219
|
inheritAttrs: !1,
|
|
1220
1220
|
__name: "index",
|
|
1221
1221
|
props: {
|
|
@@ -1280,19 +1280,19 @@ const Ha = async (r, a, t) => {
|
|
|
1280
1280
|
return mt(() => {
|
|
1281
1281
|
v.value && e && (e.reload.value = !0);
|
|
1282
1282
|
}), z(async () => {
|
|
1283
|
-
|
|
1283
|
+
Ue(te.GridControl, e), e.tableData.value ? (u.value = e.tableData.value, e.total.value = u.value.length, i.value.total = e.total.value ?? 0) : e.autoload !== !1 && (e.remotePage ? u.value = (await ke(e)).rows : u.value = await rt(e)), setTimeout(() => {
|
|
1284
1284
|
v.value = !0;
|
|
1285
1285
|
}, 50);
|
|
1286
1286
|
}), (f, g) => {
|
|
1287
|
-
var I,
|
|
1288
|
-
const
|
|
1289
|
-
return m(),
|
|
1290
|
-
(I = l(e).buttons) != null && I.value.length || (
|
|
1287
|
+
var I, P;
|
|
1288
|
+
const C = ae("auth");
|
|
1289
|
+
return m(), S(O, null, [
|
|
1290
|
+
(I = l(e).buttons) != null && I.value.length || (P = l(e).tools) != null && P.length ? (m(), _(ca, {
|
|
1291
1291
|
key: 0,
|
|
1292
1292
|
"grid-ctrl": l(e),
|
|
1293
1293
|
"editor-ctrl": l(e).editor
|
|
1294
1294
|
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
1295
|
-
v.value ? (m(), _(l(Qe),
|
|
1295
|
+
v.value ? (m(), _(l(Qe), E({
|
|
1296
1296
|
key: 1,
|
|
1297
1297
|
class: "w-full",
|
|
1298
1298
|
"row-key": a.primaryKey ?? l(e).primaryKey ?? "Id",
|
|
@@ -1308,7 +1308,7 @@ const Ha = async (r, a, t) => {
|
|
|
1308
1308
|
bodyCell: h((x) => {
|
|
1309
1309
|
var R, q;
|
|
1310
1310
|
return [
|
|
1311
|
-
|
|
1311
|
+
D(f.$slots, "bodyCell", {
|
|
1312
1312
|
column: x == null ? void 0 : x.column,
|
|
1313
1313
|
record: x == null ? void 0 : x.record
|
|
1314
1314
|
}),
|
|
@@ -1325,9 +1325,9 @@ const Ha = async (r, a, t) => {
|
|
|
1325
1325
|
]),
|
|
1326
1326
|
loading: x == null ? void 0 : x.record.isLoading
|
|
1327
1327
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
1328
|
-
[
|
|
1328
|
+
[C, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1329
1329
|
]) : k("", !0),
|
|
1330
|
-
l(e) && ((q = x == null ? void 0 : x.column) == null ? void 0 : q.dataIndex) === "operation" ?
|
|
1330
|
+
l(e) && ((q = x == null ? void 0 : x.column) == null ? void 0 : q.dataIndex) === "operation" ? D(f.$slots, "operate", {
|
|
1331
1331
|
key: 1,
|
|
1332
1332
|
record: x == null ? void 0 : x.record
|
|
1333
1333
|
}, () => [
|
|
@@ -1343,7 +1343,7 @@ const Ha = async (r, a, t) => {
|
|
|
1343
1343
|
], 64);
|
|
1344
1344
|
};
|
|
1345
1345
|
}
|
|
1346
|
-
}), da = { class: "flex items-center gap-1" }, pa = { class: "text-nowrap" },
|
|
1346
|
+
}), da = { class: "flex items-center gap-1" }, pa = { class: "text-nowrap" }, Za = /* @__PURE__ */ w({
|
|
1347
1347
|
__name: "index",
|
|
1348
1348
|
props: {
|
|
1349
1349
|
treeCtrl: {},
|
|
@@ -1385,7 +1385,7 @@ const Ha = async (r, a, t) => {
|
|
|
1385
1385
|
value: "Id",
|
|
1386
1386
|
icon: "Icon"
|
|
1387
1387
|
}), o.data.value ? n.value = re(o.fieldMap, o.data.value) : o.autoload && Me(o);
|
|
1388
|
-
}), (d, s) => (m(), _(l(wt),
|
|
1388
|
+
}), (d, s) => (m(), _(l(wt), E({
|
|
1389
1389
|
class: "w-full",
|
|
1390
1390
|
"show-line": !0,
|
|
1391
1391
|
"tree-data": n.value,
|
|
@@ -1396,21 +1396,21 @@ const Ha = async (r, a, t) => {
|
|
|
1396
1396
|
onSelect: c
|
|
1397
1397
|
}, l(e)), {
|
|
1398
1398
|
title: h(({ key: v, label: f, icon: g }) => [
|
|
1399
|
-
|
|
1399
|
+
D(d.$slots, "title", {
|
|
1400
1400
|
label: f,
|
|
1401
1401
|
key: v,
|
|
1402
1402
|
icon: g
|
|
1403
1403
|
}, () => [
|
|
1404
1404
|
T("div", da, [
|
|
1405
|
-
y(l(
|
|
1406
|
-
T("span", pa,
|
|
1405
|
+
y(l(L), { icon: g }, null, 8, ["icon"]),
|
|
1406
|
+
T("span", pa, F(f), 1)
|
|
1407
1407
|
])
|
|
1408
1408
|
])
|
|
1409
1409
|
]),
|
|
1410
1410
|
_: 3
|
|
1411
1411
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1412
1412
|
}
|
|
1413
|
-
}),
|
|
1413
|
+
}), el = /* @__PURE__ */ Q(ot, [["__scopeId", "data-v-cd4382b7"]]), fa = {
|
|
1414
1414
|
key: 0,
|
|
1415
1415
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1416
1416
|
}, va = /* @__PURE__ */ w({
|
|
@@ -1419,14 +1419,14 @@ const Ha = async (r, a, t) => {
|
|
|
1419
1419
|
props: nt,
|
|
1420
1420
|
emits: ["change", "update:labels", "update:value"],
|
|
1421
1421
|
setup(r, { emit: a }) {
|
|
1422
|
-
var f, g,
|
|
1422
|
+
var f, g, C;
|
|
1423
1423
|
const t = r, e = J(), o = b({
|
|
1424
1424
|
...t.url,
|
|
1425
1425
|
url: ((f = t.url) == null ? void 0 : f.url) || "",
|
|
1426
1426
|
fieldMap: t.fieldMap || ((g = t.url) == null ? void 0 : g.fieldMap),
|
|
1427
|
-
params: t.params || ((
|
|
1427
|
+
params: t.params || ((C = t.url) == null ? void 0 : C.params),
|
|
1428
1428
|
loadingText: !1
|
|
1429
|
-
}), n =
|
|
1429
|
+
}), n = B(), { editorCtrl: p, errInfo: u, labelText: i } = n, c = b(e.placeholder);
|
|
1430
1430
|
$(
|
|
1431
1431
|
() => o.value.loading,
|
|
1432
1432
|
(I) => {
|
|
@@ -1436,15 +1436,15 @@ const Ha = async (r, a, t) => {
|
|
|
1436
1436
|
);
|
|
1437
1437
|
const d = a;
|
|
1438
1438
|
n.inputEmit = d;
|
|
1439
|
-
const s = b([]), v = (I,
|
|
1440
|
-
if (!
|
|
1439
|
+
const s = b([]), v = (I, P) => {
|
|
1440
|
+
if (!P || P.length === 0) {
|
|
1441
1441
|
d("update:labels", []), d("update:value", []);
|
|
1442
1442
|
return;
|
|
1443
1443
|
}
|
|
1444
|
-
const x =
|
|
1444
|
+
const x = P.map((R) => R.label);
|
|
1445
1445
|
d("update:labels", x), d(
|
|
1446
1446
|
"update:value",
|
|
1447
|
-
|
|
1447
|
+
P.map((R) => R.value)
|
|
1448
1448
|
), u != null && u.value.errClass && p && V(p);
|
|
1449
1449
|
};
|
|
1450
1450
|
return z(() => {
|
|
@@ -1456,14 +1456,14 @@ const Ha = async (r, a, t) => {
|
|
|
1456
1456
|
}), Ne(t.autoload, t, s, n, o.value, o.value.params);
|
|
1457
1457
|
}), Ye(() => {
|
|
1458
1458
|
Re(t, n);
|
|
1459
|
-
}), (I,
|
|
1459
|
+
}), (I, P) => {
|
|
1460
1460
|
var x;
|
|
1461
|
-
return m(),
|
|
1462
|
-
s.value.length ? k("", !0) : (m(),
|
|
1461
|
+
return m(), S("div", null, [
|
|
1462
|
+
s.value.length ? k("", !0) : (m(), S("div", fa, [
|
|
1463
1463
|
y(l(it), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1464
|
-
|
|
1464
|
+
P[0] || (P[0] = T("span", null, "数据加载中...", -1))
|
|
1465
1465
|
])),
|
|
1466
|
-
y(l(Ct),
|
|
1466
|
+
y(l(Ct), E({
|
|
1467
1467
|
options: s.value,
|
|
1468
1468
|
class: [(x = l(u)) == null ? void 0 : x.errClass],
|
|
1469
1469
|
"allow-clear": !0,
|
|
@@ -1473,7 +1473,7 @@ const Ha = async (r, a, t) => {
|
|
|
1473
1473
|
]);
|
|
1474
1474
|
};
|
|
1475
1475
|
}
|
|
1476
|
-
}),
|
|
1476
|
+
}), tl = /* @__PURE__ */ Q(va, [["__scopeId", "data-v-8517d129"]]), al = /* @__PURE__ */ Q(ct, [["__scopeId", "data-v-602494f4"]]);
|
|
1477
1477
|
function se() {
|
|
1478
1478
|
return se = Object.assign ? Object.assign.bind() : function(r) {
|
|
1479
1479
|
for (var a = 1; a < arguments.length; a++) {
|
|
@@ -1529,13 +1529,13 @@ const ma = {
|
|
|
1529
1529
|
timePickerLocale: se({}, ha)
|
|
1530
1530
|
};
|
|
1531
1531
|
xe.lang.ok = "确定";
|
|
1532
|
-
const
|
|
1532
|
+
const ll = /* @__PURE__ */ w({
|
|
1533
1533
|
__name: "index",
|
|
1534
1534
|
props: {
|
|
1535
1535
|
valueFormat: {}
|
|
1536
1536
|
},
|
|
1537
1537
|
setup(r) {
|
|
1538
|
-
const a = r, { editorCtrl: t, labelText: e, errInfo: o } =
|
|
1538
|
+
const a = r, { editorCtrl: t, labelText: e, errInfo: o } = B(), n = () => {
|
|
1539
1539
|
o != null && o.value.errClass && t && V(t);
|
|
1540
1540
|
}, p = b(a.valueFormat ?? "YYYY-MM-DD");
|
|
1541
1541
|
return (u, i) => {
|
|
@@ -1556,7 +1556,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1556
1556
|
},
|
|
1557
1557
|
emits: ["update:value"],
|
|
1558
1558
|
setup(r, { emit: a }) {
|
|
1559
|
-
const { editorCtrl: t, labelText: e, errInfo: o } =
|
|
1559
|
+
const { editorCtrl: t, labelText: e, errInfo: o } = B(), n = () => {
|
|
1560
1560
|
o != null && o.value.errClass && t && V(t);
|
|
1561
1561
|
}, p = r, u = a, i = b(p.value);
|
|
1562
1562
|
$(
|
|
@@ -1581,7 +1581,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1581
1581
|
};
|
|
1582
1582
|
return (d, s) => {
|
|
1583
1583
|
var v, f;
|
|
1584
|
-
return m(), _(l(fe),
|
|
1584
|
+
return m(), _(l(fe), E({
|
|
1585
1585
|
class: [
|
|
1586
1586
|
(v = l(o)) == null ? void 0 : v.errClass,
|
|
1587
1587
|
((f = l(o)) == null ? void 0 : f.errClass) === "error" && !d.$slots.addonBefore && !d.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
@@ -1593,18 +1593,18 @@ const rl = /* @__PURE__ */ w({
|
|
|
1593
1593
|
placeholder: "请输入" + l(e),
|
|
1594
1594
|
onBlur: n,
|
|
1595
1595
|
onChange: c
|
|
1596
|
-
}, d.$attrs),
|
|
1596
|
+
}, d.$attrs), Le({ _: 2 }, [
|
|
1597
1597
|
d.$slots.addonBefore ? {
|
|
1598
1598
|
name: "addonBefore",
|
|
1599
1599
|
fn: h(() => [
|
|
1600
|
-
|
|
1600
|
+
D(d.$slots, "addonBefore")
|
|
1601
1601
|
]),
|
|
1602
1602
|
key: "0"
|
|
1603
1603
|
} : void 0,
|
|
1604
1604
|
d.$slots.addonAfter ? {
|
|
1605
1605
|
name: "addonAfter",
|
|
1606
1606
|
fn: h(() => [
|
|
1607
|
-
|
|
1607
|
+
D(d.$slots, "addonAfter")
|
|
1608
1608
|
]),
|
|
1609
1609
|
key: "1"
|
|
1610
1610
|
} : void 0
|
|
@@ -1630,13 +1630,13 @@ const rl = /* @__PURE__ */ w({
|
|
|
1630
1630
|
(n) => {
|
|
1631
1631
|
e("update:value", n);
|
|
1632
1632
|
}
|
|
1633
|
-
), (n, p) => (m(), _(ga,
|
|
1633
|
+
), (n, p) => (m(), _(ga, E({
|
|
1634
1634
|
class: ["w-[80%]"],
|
|
1635
1635
|
value: o.value,
|
|
1636
1636
|
"onUpdate:value": p[0] || (p[0] = (u) => o.value = u)
|
|
1637
1637
|
}, n.$attrs), {
|
|
1638
1638
|
addonBefore: h(() => [
|
|
1639
|
-
y(l(
|
|
1639
|
+
y(l(L), {
|
|
1640
1640
|
class: "!w-4 !h-4",
|
|
1641
1641
|
icon: o.value
|
|
1642
1642
|
}, null, 8, ["icon"])
|
|
@@ -1644,15 +1644,15 @@ const rl = /* @__PURE__ */ w({
|
|
|
1644
1644
|
_: 1
|
|
1645
1645
|
}, 16, ["value"]));
|
|
1646
1646
|
}
|
|
1647
|
-
}),
|
|
1647
|
+
}), rl = /* @__PURE__ */ Q(_a, [["__scopeId", "data-v-f7b3ed74"]]), sl = /* @__PURE__ */ w({
|
|
1648
1648
|
__name: "inputPassword",
|
|
1649
1649
|
setup(r) {
|
|
1650
|
-
const { editorCtrl: a, labelText: t, errInfo: e } =
|
|
1650
|
+
const { editorCtrl: a, labelText: t, errInfo: e } = B(), o = () => {
|
|
1651
1651
|
e != null && e.value.errClass && a && V(a);
|
|
1652
1652
|
};
|
|
1653
1653
|
return (n, p) => {
|
|
1654
1654
|
var u;
|
|
1655
|
-
return m(), _(l($t),
|
|
1655
|
+
return m(), _(l($t), E({
|
|
1656
1656
|
class: ((u = l(e)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1657
1657
|
"allow-clear": !0,
|
|
1658
1658
|
autocomplete: "new-password",
|
|
@@ -1661,15 +1661,15 @@ const rl = /* @__PURE__ */ w({
|
|
|
1661
1661
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
|
-
}),
|
|
1664
|
+
}), ol = /* @__PURE__ */ w({
|
|
1665
1665
|
__name: "inputNumber",
|
|
1666
1666
|
setup(r) {
|
|
1667
|
-
const { editorCtrl: a, labelText: t, errInfo: e } =
|
|
1667
|
+
const { editorCtrl: a, labelText: t, errInfo: e } = B(), o = () => {
|
|
1668
1668
|
e != null && e.value.errClass && a && V(a);
|
|
1669
1669
|
};
|
|
1670
1670
|
return (n, p) => {
|
|
1671
1671
|
var u;
|
|
1672
|
-
return m(), _(l(Tt),
|
|
1672
|
+
return m(), _(l(Tt), E({
|
|
1673
1673
|
class: [[((u = l(e)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1674
1674
|
onBlur: o,
|
|
1675
1675
|
"allow-clear": !1,
|
|
@@ -1677,7 +1677,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1677
1677
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
|
-
}), ba = { class: "flex flex-col gap-2" }, xa = { class: "w-[33%]" }, ya = { class: "w-[64%]" },
|
|
1680
|
+
}), ba = { class: "flex flex-col gap-2" }, xa = { class: "w-[33%]" }, ya = { class: "w-[64%]" }, nl = /* @__PURE__ */ w({
|
|
1681
1681
|
__name: "index",
|
|
1682
1682
|
props: {
|
|
1683
1683
|
value: {},
|
|
@@ -1710,8 +1710,8 @@ const rl = /* @__PURE__ */ w({
|
|
|
1710
1710
|
}, c = () => {
|
|
1711
1711
|
u();
|
|
1712
1712
|
};
|
|
1713
|
-
return (d, s) => (m(),
|
|
1714
|
-
(m(!0),
|
|
1713
|
+
return (d, s) => (m(), S("div", ba, [
|
|
1714
|
+
(m(!0), S(O, null, U(o.value, (v) => (m(), S("div", {
|
|
1715
1715
|
key: v.id,
|
|
1716
1716
|
class: "flex items-center gap-2"
|
|
1717
1717
|
}, [
|
|
@@ -1749,7 +1749,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1749
1749
|
})
|
|
1750
1750
|
]));
|
|
1751
1751
|
}
|
|
1752
|
-
}), ka = /* @__PURE__ */ Q(ut, [["__scopeId", "data-v-08c7f643"]]),
|
|
1752
|
+
}), ka = /* @__PURE__ */ Q(ut, [["__scopeId", "data-v-08c7f643"]]), il = /* @__PURE__ */ w({
|
|
1753
1753
|
__name: "radioStatus",
|
|
1754
1754
|
props: {
|
|
1755
1755
|
/**
|
|
@@ -1783,7 +1783,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1783
1783
|
value: a.allValue || [0, 1]
|
|
1784
1784
|
}), (e, o) => (m(), _(ka, { data: t.value }, null, 8, ["data"]));
|
|
1785
1785
|
}
|
|
1786
|
-
}),
|
|
1786
|
+
}), cl = /* @__PURE__ */ w({
|
|
1787
1787
|
__name: "index",
|
|
1788
1788
|
props: {
|
|
1789
1789
|
startDate: {},
|
|
@@ -1792,7 +1792,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1792
1792
|
},
|
|
1793
1793
|
emits: ["update:startDate", "update:endDate"],
|
|
1794
1794
|
setup(r, { emit: a }) {
|
|
1795
|
-
const t = r, e = a, o =
|
|
1795
|
+
const t = r, e = a, o = B(), { errInfo: n } = o, p = G(() => t.valueFormat), u = G(() => {
|
|
1796
1796
|
const c = t.startDate, d = t.endDate;
|
|
1797
1797
|
if (!(!c || !d))
|
|
1798
1798
|
try {
|
|
@@ -1819,15 +1819,15 @@ const rl = /* @__PURE__ */ w({
|
|
|
1819
1819
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1820
1820
|
};
|
|
1821
1821
|
}
|
|
1822
|
-
}),
|
|
1822
|
+
}), ul = /* @__PURE__ */ Q(dt, [["__scopeId", "data-v-58735935"]]), dl = /* @__PURE__ */ w({
|
|
1823
1823
|
__name: "index",
|
|
1824
1824
|
setup(r) {
|
|
1825
|
-
const { editorCtrl: a, labelText: t, errInfo: e } =
|
|
1825
|
+
const { editorCtrl: a, labelText: t, errInfo: e } = B(), o = () => {
|
|
1826
1826
|
e != null && e.value.errClass && a && V(a);
|
|
1827
1827
|
};
|
|
1828
1828
|
return (n, p) => {
|
|
1829
1829
|
var u;
|
|
1830
|
-
return m(), _(l(
|
|
1830
|
+
return m(), _(l(Pt), E({
|
|
1831
1831
|
class: ((u = l(e)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1832
1832
|
"allow-clear": !0,
|
|
1833
1833
|
placeholder: "请输入" + l(t),
|
|
@@ -1849,7 +1849,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1849
1849
|
},
|
|
1850
1850
|
emits: ["change", "update:value"],
|
|
1851
1851
|
setup(r, { emit: a }) {
|
|
1852
|
-
const t = r, e = b({ ...t.url }), { editorCtrl: o, labelText: n, errInfo: p } =
|
|
1852
|
+
const t = r, e = b({ ...t.url }), { editorCtrl: o, labelText: n, errInfo: p } = B(), u = a, i = b([]), c = b([]);
|
|
1853
1853
|
t.value && t.value.every((s) => {
|
|
1854
1854
|
c.value.push(s.toString());
|
|
1855
1855
|
}), $(
|
|
@@ -1865,7 +1865,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1865
1865
|
if (e.value) {
|
|
1866
1866
|
const s = o == null ? void 0 : o.page;
|
|
1867
1867
|
if (e.value.api || (e.value.api = s == null ? void 0 : s.api), e.value.authorize === void 0 && (e.value.authorize = s == null ? void 0 : s.authorize), t.autoload) {
|
|
1868
|
-
const v = await
|
|
1868
|
+
const v = await Ae(o, {
|
|
1869
1869
|
urlKey: "list",
|
|
1870
1870
|
url: { ...e.value, url: e.value.url },
|
|
1871
1871
|
loadingText: !1,
|
|
@@ -1876,18 +1876,18 @@ const rl = /* @__PURE__ */ w({
|
|
|
1876
1876
|
}
|
|
1877
1877
|
}), (s, v) => {
|
|
1878
1878
|
var f;
|
|
1879
|
-
return m(), _(l(
|
|
1879
|
+
return m(), _(l(Dt), E({
|
|
1880
1880
|
class: ((f = l(p)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1881
1881
|
placeholder: "请输入" + l(n),
|
|
1882
1882
|
targetKeys: c.value,
|
|
1883
1883
|
onChange: d
|
|
1884
1884
|
}, s.$attrs), {
|
|
1885
|
-
children: h(({ direction: g, disabled:
|
|
1886
|
-
|
|
1885
|
+
children: h(({ direction: g, disabled: C, filteredItems: I, onItemSelectAll: P, onItemSelect: x, selectedKeys: R }) => [
|
|
1886
|
+
D(s.$slots, "children", {
|
|
1887
1887
|
direction: g,
|
|
1888
|
-
disabled:
|
|
1888
|
+
disabled: C,
|
|
1889
1889
|
filteredItems: I,
|
|
1890
|
-
onItemSelectAll:
|
|
1890
|
+
onItemSelectAll: P,
|
|
1891
1891
|
onItemSelect: x,
|
|
1892
1892
|
selectedKeys: R
|
|
1893
1893
|
})
|
|
@@ -1896,7 +1896,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1896
1896
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1897
1897
|
};
|
|
1898
1898
|
}
|
|
1899
|
-
}),
|
|
1899
|
+
}), pl = /* @__PURE__ */ w({
|
|
1900
1900
|
__name: "transferTable",
|
|
1901
1901
|
props: {
|
|
1902
1902
|
/**
|
|
@@ -1941,8 +1941,8 @@ const rl = /* @__PURE__ */ w({
|
|
|
1941
1941
|
disabled: c || f.disabled
|
|
1942
1942
|
}),
|
|
1943
1943
|
onSelectAll(f, g) {
|
|
1944
|
-
const
|
|
1945
|
-
s(
|
|
1944
|
+
const C = g.filter((I) => !I.disabled).map(({ [p.value]: I }) => I);
|
|
1945
|
+
s(C, f);
|
|
1946
1946
|
},
|
|
1947
1947
|
onSelect({ [p.value]: f }, g) {
|
|
1948
1948
|
v(f, g);
|
|
@@ -1951,7 +1951,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1951
1951
|
}), i = b([]);
|
|
1952
1952
|
return z(async () => {
|
|
1953
1953
|
if (o.value) {
|
|
1954
|
-
const c = await
|
|
1954
|
+
const c = await Ae(t.gridCtrl, {
|
|
1955
1955
|
urlKey: "list",
|
|
1956
1956
|
url: { ...t.gridCtrl.gridUrl, url: t.gridCtrl.gridUrl.url },
|
|
1957
1957
|
params: t.gridCtrl.gridQuery,
|
|
@@ -1959,7 +1959,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
1959
1959
|
});
|
|
1960
1960
|
i.value = (c == null ? void 0 : c.data) ?? [];
|
|
1961
1961
|
}
|
|
1962
|
-
}), (c, d) => (m(), _(wa,
|
|
1962
|
+
}), (c, d) => (m(), _(wa, E({
|
|
1963
1963
|
"data-source": i.value,
|
|
1964
1964
|
"row-key": (s) => s[p.value],
|
|
1965
1965
|
value: n.value,
|
|
@@ -1991,9 +1991,9 @@ const rl = /* @__PURE__ */ w({
|
|
|
1991
1991
|
size: "small",
|
|
1992
1992
|
"data-source": s,
|
|
1993
1993
|
scroll: { x: 300 },
|
|
1994
|
-
"custom-row": (
|
|
1994
|
+
"custom-row": (C) => ({
|
|
1995
1995
|
onClick: () => {
|
|
1996
|
-
const I =
|
|
1996
|
+
const I = C[p.value];
|
|
1997
1997
|
f(I, !g.includes(I));
|
|
1998
1998
|
}
|
|
1999
1999
|
})
|
|
@@ -2020,7 +2020,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
2020
2020
|
},
|
|
2021
2021
|
emits: ["change", "update:value"],
|
|
2022
2022
|
setup(r, { emit: a }) {
|
|
2023
|
-
const t = r, e = t.treeCtrl, o =
|
|
2023
|
+
const t = r, e = t.treeCtrl, o = B(), { errInfo: n, labelText: p } = o, u = a;
|
|
2024
2024
|
o.inputEmit = u;
|
|
2025
2025
|
const i = b([]), c = b();
|
|
2026
2026
|
$(
|
|
@@ -2047,7 +2047,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
2047
2047
|
}), e.data.value ? i.value = e.fieldMap ? re(e.fieldMap, e.data.value) : e.data.value : t.treeCtrl.autoload && Me(t.treeCtrl);
|
|
2048
2048
|
}), (s, v) => {
|
|
2049
2049
|
var f;
|
|
2050
|
-
return m(), _(l(Et),
|
|
2050
|
+
return m(), _(l(Et), E({
|
|
2051
2051
|
class: [[(f = l(n)) == null ? void 0 : f.errClass], "w-full"],
|
|
2052
2052
|
"tree-line": "",
|
|
2053
2053
|
multiple: r.multiple,
|
|
@@ -2061,17 +2061,17 @@ const rl = /* @__PURE__ */ w({
|
|
|
2061
2061
|
}, s.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2062
2062
|
};
|
|
2063
2063
|
}
|
|
2064
|
-
}),
|
|
2064
|
+
}), fl = /* @__PURE__ */ Q(Ca, [["__scopeId", "data-v-f000d1d0"]]), Sa = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, $a = { class: "flex w-full h-full min-h-full" }, Ta = {
|
|
2065
2065
|
key: 0,
|
|
2066
2066
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2067
|
-
}, Ia = { class: "flex-1 h-full overflow-y-auto" },
|
|
2067
|
+
}, Ia = { class: "flex-1 h-full overflow-y-auto" }, vl = /* @__PURE__ */ w({
|
|
2068
2068
|
__name: "index",
|
|
2069
2069
|
props: {
|
|
2070
2070
|
left: { type: Boolean }
|
|
2071
2071
|
},
|
|
2072
2072
|
setup(r) {
|
|
2073
2073
|
const { useToken: a } = Ve, { token: t } = a();
|
|
2074
|
-
return (e, o) => (m(),
|
|
2074
|
+
return (e, o) => (m(), S("div", Sa, [
|
|
2075
2075
|
y(l(Ft), {
|
|
2076
2076
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2077
2077
|
style: me({
|
|
@@ -2080,11 +2080,11 @@ const rl = /* @__PURE__ */ w({
|
|
|
2080
2080
|
}, {
|
|
2081
2081
|
default: h(() => [
|
|
2082
2082
|
T("div", $a, [
|
|
2083
|
-
e.left ? (m(),
|
|
2084
|
-
|
|
2083
|
+
e.left ? (m(), S("div", Ta, [
|
|
2084
|
+
D(e.$slots, "left")
|
|
2085
2085
|
])) : k("", !0),
|
|
2086
2086
|
T("div", Ia, [
|
|
2087
|
-
|
|
2087
|
+
D(e.$slots, "default")
|
|
2088
2088
|
])
|
|
2089
2089
|
])
|
|
2090
2090
|
]),
|
|
@@ -2092,158 +2092,147 @@ const rl = /* @__PURE__ */ w({
|
|
|
2092
2092
|
}, 8, ["style"])
|
|
2093
2093
|
]));
|
|
2094
2094
|
}
|
|
2095
|
-
}), Da = { class: "font-['Courier'] text-[#666]" }, hl = /* @__PURE__ */ w({
|
|
2096
|
-
__name: "index",
|
|
2097
|
-
setup(r) {
|
|
2098
|
-
const a = b("");
|
|
2099
|
-
return z(() => {
|
|
2100
|
-
setInterval(() => {
|
|
2101
|
-
const t = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, o = t.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
|
|
2102
|
-
a.value = t.getFullYear() + "-" + o;
|
|
2103
|
-
}, 1e3);
|
|
2104
|
-
}), (t, e) => (m(), C("div", Da, P(a.value), 1));
|
|
2105
|
-
}
|
|
2106
2095
|
});
|
|
2107
2096
|
export {
|
|
2108
|
-
|
|
2097
|
+
kr as AppIcon,
|
|
2109
2098
|
oe as AppRouter,
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2099
|
+
ar as AsyncUploader,
|
|
2100
|
+
el as AutoComplete,
|
|
2101
|
+
wr as Breadcrumb,
|
|
2102
|
+
A as Button,
|
|
2114
2103
|
Ge as Cache,
|
|
2115
2104
|
Ht as CacheKeys,
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2105
|
+
tl as Cascader,
|
|
2106
|
+
al as Checkbox,
|
|
2107
|
+
vl as Content,
|
|
2108
|
+
ll as DatePicker,
|
|
2109
|
+
Cr as Datetime,
|
|
2110
|
+
Fr as Dialog,
|
|
2111
|
+
qa as Drawer,
|
|
2112
|
+
gl as EventPrefix,
|
|
2113
|
+
Wa as Form,
|
|
2114
|
+
Ga as FormItem,
|
|
2115
|
+
ja as Fullscreen,
|
|
2116
|
+
Sr as Header,
|
|
2117
|
+
$r as HeaderExits,
|
|
2129
2118
|
Qt as Helper,
|
|
2130
|
-
|
|
2131
|
-
|
|
2119
|
+
_l as ICONS_LIB,
|
|
2120
|
+
Tr as Icon,
|
|
2132
2121
|
sa as Icontool,
|
|
2133
2122
|
ga as Input,
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2123
|
+
rl as InputIcon,
|
|
2124
|
+
ol as InputNumber,
|
|
2125
|
+
sl as InputPassword,
|
|
2126
|
+
Qa as LayoutIcon,
|
|
2127
|
+
Ir as Menu,
|
|
2139
2128
|
Pr as MenuTabs,
|
|
2140
2129
|
Oe as OPTIONS,
|
|
2141
2130
|
nt as OptionCommProps,
|
|
2142
|
-
|
|
2143
|
-
|
|
2131
|
+
Dr as ProjectIcon,
|
|
2132
|
+
nl as PropEditor,
|
|
2144
2133
|
te as ProviderKeys,
|
|
2145
2134
|
ka as Radio,
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2135
|
+
il as RadioStatus,
|
|
2136
|
+
cl as RangePicker,
|
|
2137
|
+
Ja as Search,
|
|
2149
2138
|
ue as SearchItem,
|
|
2150
|
-
|
|
2139
|
+
ul as Select,
|
|
2151
2140
|
ua as Switch,
|
|
2152
|
-
|
|
2141
|
+
Xa as Table,
|
|
2153
2142
|
la as TableOperate,
|
|
2154
|
-
|
|
2155
|
-
|
|
2143
|
+
dl as Textarea,
|
|
2144
|
+
L as ToolIcon,
|
|
2156
2145
|
ca as Toolbar,
|
|
2157
|
-
|
|
2146
|
+
xr as Tooltip,
|
|
2158
2147
|
wa as Transfer,
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2148
|
+
pl as TransferTable,
|
|
2149
|
+
Za as Tree,
|
|
2150
|
+
fl as TreeSelect,
|
|
2151
|
+
fr as UploadList,
|
|
2152
|
+
lr as UploadStatus,
|
|
2153
|
+
hr as checkExcelDuplicates,
|
|
2154
|
+
bl as checkIconsExpired,
|
|
2166
2155
|
it as circleLoading,
|
|
2167
2156
|
Ze as createFromIconfont,
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2157
|
+
xl as crumbs,
|
|
2158
|
+
Pe as defaultTools,
|
|
2159
|
+
yl as doDelete,
|
|
2160
|
+
kl as doExecute,
|
|
2161
|
+
Ae as doQuery,
|
|
2162
|
+
wl as doSave,
|
|
2163
|
+
vr as donwloadFromMinio,
|
|
2175
2164
|
qe as downloadBlob,
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2165
|
+
Cl as eventBus,
|
|
2166
|
+
Ha as exportResults,
|
|
2167
|
+
Ka as exportSelectedRows,
|
|
2179
2168
|
Fe as filterColumns,
|
|
2180
2169
|
V as formValidate,
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2170
|
+
rr as getAppInfo,
|
|
2171
|
+
Sl as getFormDetail,
|
|
2172
|
+
sr as getHostInfo,
|
|
2173
|
+
$l as getIconTransform,
|
|
2174
|
+
Tl as getRecordDetail,
|
|
2175
|
+
Il as getRuleTexts,
|
|
2176
|
+
Pl as getSelectedLabels,
|
|
2177
|
+
Dl as getSelectedValues,
|
|
2178
|
+
or as getToken,
|
|
2190
2179
|
K as getToolByKey,
|
|
2191
2180
|
be as getToolGroup,
|
|
2192
2181
|
H as getToolStatus,
|
|
2193
2182
|
W as getToolVisible,
|
|
2194
|
-
|
|
2183
|
+
nr as getUserInfo,
|
|
2195
2184
|
ke as gridQueryFind,
|
|
2196
2185
|
rt as gridQueryList,
|
|
2197
|
-
|
|
2186
|
+
El as gridRowUpdate,
|
|
2198
2187
|
st as gridStatusUpdate,
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2188
|
+
Va as initCacheCheck,
|
|
2189
|
+
Ya as initDirective,
|
|
2190
|
+
Fl as initMenu,
|
|
2191
|
+
Nl as initPageFactory,
|
|
2192
|
+
Rl as initValidate,
|
|
2204
2193
|
X as isEmpty,
|
|
2205
2194
|
Ne as loadOption,
|
|
2206
|
-
|
|
2207
|
-
|
|
2195
|
+
ir as mainAppPush,
|
|
2196
|
+
Ol as mergeColumns,
|
|
2208
2197
|
Vt as onColumnVisibleChanged,
|
|
2209
2198
|
ie as onFormClose,
|
|
2210
|
-
|
|
2199
|
+
De as onFormSave,
|
|
2211
2200
|
et as onFormSaveAs,
|
|
2212
2201
|
We as onFullscreenClick,
|
|
2213
2202
|
at as onGridRowDelete,
|
|
2214
2203
|
tt as onGridRowEdit,
|
|
2215
|
-
|
|
2216
|
-
|
|
2204
|
+
Ml as onGridRowExpand,
|
|
2205
|
+
Al as onOptionChanged,
|
|
2217
2206
|
Mt as onReloadClick,
|
|
2218
2207
|
Y as onToolClicked,
|
|
2219
2208
|
lt as openNewForm,
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2209
|
+
Bl as outFormDataFields,
|
|
2210
|
+
zl as parseIcons,
|
|
2211
|
+
cr as path,
|
|
2212
|
+
Ul as pendingNavigation,
|
|
2213
|
+
Ll as pinia,
|
|
2214
|
+
gr as processExcelFile,
|
|
2226
2215
|
Me as queryTree,
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2216
|
+
Yl as resetRules,
|
|
2217
|
+
Vl as routes,
|
|
2218
|
+
Kl as saveForm,
|
|
2219
|
+
Hl as setFormData,
|
|
2220
|
+
jl as showBreadcrumb,
|
|
2232
2221
|
Re as unloadOption,
|
|
2233
|
-
|
|
2234
|
-
|
|
2222
|
+
Ql as useAppInfo,
|
|
2223
|
+
ql as useEditorFactory,
|
|
2235
2224
|
Ee as useFormItemFactory,
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2225
|
+
Wl as useGridFactory,
|
|
2226
|
+
Gl as useHostInfo,
|
|
2227
|
+
B as useInputFactory,
|
|
2228
|
+
Jl as usePageFactory,
|
|
2229
|
+
Xl as usePageInfo,
|
|
2241
2230
|
ve as useSettingInfo,
|
|
2242
2231
|
Kt as useToolFactory,
|
|
2243
|
-
|
|
2232
|
+
Zl as useTreeFactory,
|
|
2244
2233
|
Xe as useUserInfo,
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2234
|
+
ur as userLogin,
|
|
2235
|
+
dr as userLogout,
|
|
2236
|
+
er as validateData,
|
|
2237
|
+
_r as validateExcel
|
|
2249
2238
|
};
|