@skyfox2000/webui 1.5.7 → 1.5.10
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-DfTxHOFc.js → baseLayout-BuQjrozB.js} +9 -9
- package/lib/assets/modules/{file-upload-DTOdV5vM.js → file-upload-DcusqXDb.js} +5 -5
- package/lib/assets/modules/{index-M1qERbea.js → index-BlQB5KSU.js} +2 -2
- package/lib/assets/modules/{index-BwMaOrJT.js → index-CW_ZCHWs.js} +1 -1
- package/lib/assets/modules/index-CekzHbWp.js +114 -0
- package/lib/assets/modules/{menuTabs-DWaBSRNr.js → menuTabs-BYSjomB7.js} +44 -36
- package/lib/assets/modules/{toolIcon-BYnHhAy-.js → toolIcon-D4vAp0qA.js} +1 -1
- package/lib/assets/modules/{upload-template-BKm9mFq8.js → upload-template-NU0Bpg4N.js} +2056 -2176
- package/lib/assets/modules/uploadList-ENSsTfpD.js +472 -0
- package/lib/const/options.d.ts +6 -20
- package/lib/const/stores.d.ts +11 -0
- package/lib/es/AceEditor/index.js +70 -70
- package/lib/es/BasicLayout/index.js +6 -6
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +16 -16
- package/lib/es/MenuLayout/index.js +6 -6
- package/lib/es/TemplateFile/index.js +5 -5
- package/lib/es/UploadForm/index.js +5 -5
- package/lib/index.d.ts +2 -1
- package/lib/locales/default.d.ts +137 -115
- package/lib/utils/tools.d.ts +1 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +1692 -1547
- package/package.json +1 -1
- package/src/components/content/dialog/index.vue +1 -0
- package/src/components/content/form/formItem.vue +3 -2
- package/src/components/content/search/index.vue +1 -0
- package/src/components/content/search/searchItem.vue +3 -2
- package/src/components/form/aceEditor/index.vue +5 -3
- package/src/components/form/cascader/index.vue +5 -3
- package/src/components/form/checkbox/index.vue +1 -1
- package/src/components/form/datePicker/index.vue +2 -1
- package/src/components/form/input/index.vue +1 -1
- package/src/components/form/input/inputNumber.vue +3 -1
- package/src/components/form/input/inputPassword.vue +3 -1
- package/src/components/form/propEditor/index.vue +8 -3
- package/src/components/form/radio/index.vue +2 -1
- package/src/components/form/radio/radioStatus.vue +2 -1
- package/src/components/form/switch/index.vue +3 -1
- package/src/components/form/textarea/index.vue +1 -1
- package/src/components/form/timePicker/index.vue +4 -1
- package/src/components/form/treeSelect/index.vue +3 -1
- package/src/components/form/upload/imageList.vue +8 -6
- package/src/components/form/upload/uploadList.vue +6 -5
- package/src/components/layout/datetime/index.vue +15 -4
- package/src/components/layout/header/language.vue +2 -0
- package/src/const/options.ts +76 -52
- package/src/const/stores.ts +58 -0
- package/src/index.ts +2 -0
- package/src/locales/default.ts +145 -123
- package/src/locales/en-US.json +320 -0
- package/src/locales/index.ts +109 -39
- package/src/stores/hostInfo.ts +2 -19
- package/src/stores/userInfo.ts +2 -30
- package/src/utils/options.ts +2 -2
- package/src/utils/tools.ts +88 -83
- package/lib/assets/modules/index-BDoBUrYA.js +0 -114
- package/lib/assets/modules/uploadList-CHvr6Hp1.js +0 -472
package/lib/webui.es.js
CHANGED
|
@@ -1,134 +1,278 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import {
|
|
3
|
-
import { f as
|
|
4
|
-
import { A as
|
|
5
|
-
import { EnvConfig as
|
|
6
|
-
import { FrontCache as
|
|
7
|
-
import
|
|
8
|
-
import { defineComponent as
|
|
1
|
+
import { u as Be, i as ve, a as Ae, $ as w, L as Dt, c as Ft, P as oe, o as Qe, b as Pt, d as It, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as Et, l as be, m as at, _ as lt, n as rt, O as ze, p as Lt, q as ot, s as Ut, t as Mt, v as te, w as Nt, x as Rt, y as Bt, z as At, A as zt, B as Ot, C as se, D as Kt, E as ue, F as jt, G as Vt, H as st, M as Yt } from "./assets/modules/upload-template-NU0Bpg4N.js";
|
|
2
|
+
import { ag as Yr, V as Gr, W as Wr, a0 as qr, af as Hr, ad as Qr, ae as Jr, ah as Xr, ar as Zr, a3 as eo, Y as to, as as ao, ab as lo, a8 as ro, T as oo, aa as so, ap as no, aq as io, Z as co, K as uo, J as po, a5 as fo, a9 as vo, ac as mo, U as go, X as ho, ai as bo, I as yo, a7 as xo, aj as wo, a2 as _o, a4 as ko, at as Co, a1 as So, ao as To, an as $o, ak as Do, N as Fo, Q as Po, al as Io, S as Eo, am as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-NU0Bpg4N.js";
|
|
3
|
+
import { f as Gt, p as Ve } from "./assets/modules/file-upload-DcusqXDb.js";
|
|
4
|
+
import { A as Ro, U as Bo } from "./assets/modules/file-upload-DcusqXDb.js";
|
|
5
|
+
import { EnvConfig as Ye, isMicroApp as Wt } from "@skyfox2000/microbase";
|
|
6
|
+
import { FrontCache as he, httpPost as Oe, ResStatus as Ke, SERVER_HOST as qt, fieldMapping as ye } from "@skyfox2000/fapi";
|
|
7
|
+
import ae from "vue-m-message";
|
|
8
|
+
import { defineComponent as L, createBlock as k, openBlock as u, withModifiers as ge, unref as l, useAttrs as de, withCtx as _, createElementVNode as I, createVNode as F, mergeProps as N, renderSlot as O, normalizeClass as R, toDisplayString as E, createCommentVNode as C, ref as T, provide as Ce, watch as M, onMounted as le, createTextVNode as Y, inject as xe, resolveDirective as ne, withDirectives as Q, computed as K, createElementBlock as x, normalizeStyle as je, Fragment as U, renderList as j, resolveDynamicComponent as nt, onActivated as Se, createSlots as it, useSlots as Ht, vShow as Ee, shallowRef as Qt, onUnmounted as Jt, withKeys as Ge } from "vue";
|
|
9
9
|
import "async-validator";
|
|
10
|
-
import
|
|
11
|
-
import { Popover as
|
|
12
|
-
import { VueDraggableNext as
|
|
13
|
-
import { d as
|
|
14
|
-
import { C as
|
|
15
|
-
import { c as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as ee } from "./assets/modules/index-
|
|
18
|
-
import { _ as V } from "./assets/modules/toolIcon-
|
|
19
|
-
import { a as
|
|
20
|
-
import { _ as
|
|
21
|
-
import { _ as
|
|
10
|
+
import Ne from "dayjs";
|
|
11
|
+
import { Popover as Xt, theme as ct, Drawer as Zt, Space as pe, Form as ut, message as ea, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Re, Checkbox as ta, List as aa, ListItem as la, Card as ra, Button as vt, Table as mt, Tree as oa, Cascader as sa, DatePicker as na, Input as me, InputPassword as ia, InputNumber as ca, RangePicker as ua, Textarea as da, TimePicker as pa, Transfer as fa, TreeSelect as va, Upload as ma, Image as ga, LayoutContent as ha } from "ant-design-vue";
|
|
12
|
+
import { VueDraggableNext as ba } from "vue-draggable-next";
|
|
13
|
+
import { d as ya } from "./assets/modules/uploadList-ENSsTfpD.js";
|
|
14
|
+
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-ENSsTfpD.js";
|
|
15
|
+
import { c as gt } from "./assets/modules/index-BlQB5KSU.js";
|
|
16
|
+
import { _ as Yo, h as Go, b as Wo, a as qo, d as Ho, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-BlQB5KSU.js";
|
|
17
|
+
import { _ as ee } from "./assets/modules/index-CW_ZCHWs.js";
|
|
18
|
+
import { _ as V } from "./assets/modules/toolIcon-D4vAp0qA.js";
|
|
19
|
+
import { a as rs } from "./assets/modules/toolIcon-D4vAp0qA.js";
|
|
20
|
+
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-BYSjomB7.js";
|
|
21
|
+
import { _ as gs } from "./assets/modules/index-CekzHbWp.js";
|
|
22
22
|
import { _ as ie } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
23
|
-
const
|
|
23
|
+
const We = (o, a, e, t = "remove") => {
|
|
24
24
|
if (!e)
|
|
25
25
|
if (t === "disable") {
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const s = a.component;
|
|
27
|
+
s ? s.props.disabled = !0 : (a.el, o.setAttribute("disabled", "disabled"), o.disabled = !0), o.classList.add("disabled");
|
|
28
28
|
} else {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
|
|
29
|
+
const s = document.createComment("No Permission"), c = o.parentNode;
|
|
30
|
+
if (c) {
|
|
31
|
+
const r = a.component;
|
|
32
|
+
r ? r.props.style = { display: "none" } : c.replaceChild(s, o);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
var
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
35
|
+
}, qe = (o) => {
|
|
36
|
+
var r, p;
|
|
37
|
+
const a = Be(), { url: e, role: t, permit: s } = o;
|
|
38
|
+
if (ve(t) && ve(s))
|
|
39
39
|
return !0;
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
return
|
|
43
|
-
if (
|
|
44
|
-
let
|
|
45
|
-
return
|
|
40
|
+
const c = e ?? ((p = (r = window.location.hash) == null ? void 0 : r.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
|
|
41
|
+
if (Ye.VITE_PERMISSION_MODE === "role")
|
|
42
|
+
return ve(t) ? !0 : a.hasRole(t);
|
|
43
|
+
if (Ye.VITE_PERMISSION_MODE === "permit") {
|
|
44
|
+
let i = !1, d = !1;
|
|
45
|
+
return ve(t) || (i = a.hasRole(t)), a.isAdmin() ? i : (ve(s) || (d = a.hasPermit(c, s)), i || d);
|
|
46
46
|
}
|
|
47
47
|
return !1;
|
|
48
|
-
},
|
|
49
|
-
mounted(
|
|
50
|
-
const t =
|
|
51
|
-
|
|
48
|
+
}, xa = {
|
|
49
|
+
mounted(o, a, e) {
|
|
50
|
+
const t = a.value || {}, s = a.arg || "remove", c = t.behavior || s, r = qe(t);
|
|
51
|
+
We(o, e, r, c);
|
|
52
52
|
},
|
|
53
|
-
updated(
|
|
54
|
-
const t =
|
|
55
|
-
|
|
53
|
+
updated(o, a, e) {
|
|
54
|
+
const t = a.value || {}, s = a.arg || "remove", c = t.behavior || s, r = qe(t);
|
|
55
|
+
We(o, e, r, c);
|
|
56
56
|
}
|
|
57
|
-
},
|
|
58
|
-
mounted: (
|
|
59
|
-
|
|
60
|
-
e.key === "Enter" &&
|
|
57
|
+
}, wa = {
|
|
58
|
+
mounted: (o, a) => {
|
|
59
|
+
o.addEventListener("keydown", (e) => {
|
|
60
|
+
e.key === "Enter" && a.value();
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
|
-
unmounted: (
|
|
64
|
-
|
|
63
|
+
unmounted: (o) => {
|
|
64
|
+
o.removeEventListener("keydown", () => {
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
},
|
|
68
|
-
auth:
|
|
69
|
-
submit:
|
|
70
|
-
},
|
|
71
|
-
t in
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
}, Le = {
|
|
68
|
+
auth: xa,
|
|
69
|
+
submit: wa
|
|
70
|
+
}, cr = (o, a) => ((a || Object.keys(Le)).forEach((t) => {
|
|
71
|
+
t in Le && o.directive(t, Le[t]);
|
|
72
|
+
}), o), ce = (o, a) => {
|
|
73
|
+
const e = o.find((t) => t.key === a);
|
|
74
|
+
if (e)
|
|
75
|
+
return e;
|
|
76
|
+
for (const t of o)
|
|
77
|
+
if (t.children) {
|
|
78
|
+
const s = ce(t.children, a);
|
|
79
|
+
if (s)
|
|
80
|
+
return s;
|
|
81
|
+
}
|
|
82
|
+
}, De = (o, a, e) => {
|
|
83
|
+
const t = [], s = [];
|
|
84
|
+
return e || (e = [...o]), e.length && e.forEach((c, r) => {
|
|
85
|
+
let p;
|
|
86
|
+
if (typeof c == "string") {
|
|
87
|
+
const i = ce(o, c);
|
|
88
|
+
p = i ? { ...i } : { key: c, label: c };
|
|
89
|
+
} else {
|
|
90
|
+
const i = ce(o, c.key);
|
|
91
|
+
p = i ? { ...i, ...c } : { ...c };
|
|
92
|
+
}
|
|
93
|
+
p.click || (p.click = (i, d, v) => {
|
|
94
|
+
d && (d.rowData.value = v), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
|
|
95
|
+
p.formVisible.value = !0;
|
|
96
|
+
}, 1)) : ae.warning("未配置点击处理事件!");
|
|
97
|
+
}), a === 0 || r < a ? t.push(p) : s.push(p);
|
|
98
|
+
}), { buttons: t, menus: s };
|
|
99
|
+
}, W = (o, a) => o.disabled && typeof o.disabled == "function" ? o.disabled(a) : o.disabled, J = (o, a) => o.visible && typeof o.visible == "function" ? o.visible(a) : o.visible ?? !0, _a = (o, a) => {
|
|
100
|
+
a.reload.value = !0;
|
|
101
|
+
}, ka = (o, a) => {
|
|
102
|
+
a.searchBar.value = !a.searchBar.value;
|
|
103
|
+
}, Ca = (o, a) => {
|
|
104
|
+
switch (a.tableSize.value) {
|
|
105
|
+
case "large":
|
|
106
|
+
a.tableSize.value = "middle";
|
|
107
|
+
break;
|
|
108
|
+
case "middle":
|
|
109
|
+
a.tableSize.value = "small";
|
|
110
|
+
break;
|
|
111
|
+
case "small":
|
|
112
|
+
a.tableSize.value = "large";
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
}, Sa = (o, a) => {
|
|
116
|
+
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
117
|
+
}, Ta = (o, a) => {
|
|
118
|
+
a.rowExpand.value = !a.rowExpand.value;
|
|
119
|
+
}, He = (o, a) => {
|
|
120
|
+
a.selectable.value = !a.selectable.value;
|
|
121
|
+
}, X = (o, a, e, t, s) => {
|
|
122
|
+
(!o.confirm || s) && o.click && (a ? o.click(a, e, t) : o.click(null, e, t)), Da(o);
|
|
123
|
+
}, $a = (o, a) => {
|
|
124
|
+
a.selectable.value = !a.selectable.value;
|
|
125
|
+
}, ht = () => {
|
|
126
|
+
const o = Ae();
|
|
127
|
+
o.setFullscreen(!o.fullscreen);
|
|
128
|
+
}, Da = (o, a) => {
|
|
129
|
+
(o.icons || o.labels) && (o.iconStatus = o.iconStatus || 0, o.iconStatus += 1, o.labels && o.labels.length && (o.label = o.labels[o.iconStatus % o.labels.length]), o.icons && o.icons.length && (o.icon = o.icons[o.iconStatus % o.icons.length]));
|
|
130
|
+
}, Fa = (o, a) => {
|
|
131
|
+
a ? delete o.visible : o.visible = !1;
|
|
132
|
+
}, _e = [], ur = () => {
|
|
133
|
+
_e.length > 0 || _e.push({
|
|
134
|
+
key: "Reload",
|
|
135
|
+
label: w("webui.utils.tools.refreshTable"),
|
|
136
|
+
icon: "icon-reload",
|
|
137
|
+
click: _a
|
|
138
|
+
}, {
|
|
139
|
+
key: "Query",
|
|
140
|
+
label: w("webui.utils.tools.expandSearch"),
|
|
141
|
+
labels: [w("webui.utils.tools.expandSearch"), w("webui.utils.tools.collapseSearch")],
|
|
142
|
+
icon: "icon-search",
|
|
143
|
+
iconStatus: 0,
|
|
144
|
+
click: ka
|
|
145
|
+
}, {
|
|
146
|
+
key: "RowHeight",
|
|
147
|
+
label: w("webui.utils.tools.rowHeight"),
|
|
148
|
+
icon: "icon-row-height",
|
|
149
|
+
click: Ca
|
|
150
|
+
}, {
|
|
151
|
+
key: "tool.multiple.checkbox",
|
|
152
|
+
label: w("webui.utils.tools.showCheckbox"),
|
|
153
|
+
labels: [w("webui.utils.tools.showCheckbox"), w("webui.utils.tools.hideCheckbox")],
|
|
154
|
+
icon: "icon-checkbox",
|
|
155
|
+
click: Sa
|
|
156
|
+
}, {
|
|
157
|
+
key: "tool.expand.rows",
|
|
158
|
+
label: w("webui.utils.tools.expandRows"),
|
|
159
|
+
labels: [w("webui.utils.tools.expandRows"), w("webui.utils.tools.collapseRows")],
|
|
160
|
+
icon: "icon-row-collapse",
|
|
161
|
+
iconStatus: 0,
|
|
162
|
+
icons: ["icon-row-collapse", "icon-row-expand"],
|
|
163
|
+
click: Ta
|
|
164
|
+
}, {
|
|
165
|
+
key: "tool.export.excel",
|
|
166
|
+
label: w("webui.utils.tools.exportExcel"),
|
|
167
|
+
icon: "icon-export-excel",
|
|
168
|
+
children: [
|
|
169
|
+
{
|
|
170
|
+
key: "tool.export.excel.all",
|
|
171
|
+
label: w("webui.utils.tools.exportAllRecords"),
|
|
172
|
+
click: He
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
key: "tool.export.excel.selected",
|
|
176
|
+
label: w("webui.utils.tools.exportSelectedRecords"),
|
|
177
|
+
click: He
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}, {
|
|
181
|
+
key: "tool.export.pdf",
|
|
182
|
+
label: w("webui.utils.tools.exportPDF"),
|
|
183
|
+
icon: "icon-export-pdf",
|
|
184
|
+
children: [
|
|
185
|
+
{
|
|
186
|
+
key: "tool.export.pdf.selected",
|
|
187
|
+
label: w("webui.utils.tools.exportSelectedRecords"),
|
|
188
|
+
click: $a
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}, {
|
|
192
|
+
key: "TableHeadset",
|
|
193
|
+
label: w("webui.utils.tools.tableHeaderSettings"),
|
|
194
|
+
icon: "icon-headset",
|
|
195
|
+
dropdown: "headset",
|
|
196
|
+
click: () => {
|
|
197
|
+
}
|
|
198
|
+
// 不设置点击事件
|
|
199
|
+
}, {
|
|
200
|
+
key: "Fullscreen",
|
|
201
|
+
label: w("webui.utils.tools.setFullscreen"),
|
|
202
|
+
labels: [w("webui.utils.tools.setFullscreen"), w("webui.utils.tools.exitFullscreen")],
|
|
203
|
+
icon: "icon-fullscreen",
|
|
204
|
+
iconStatus: 0,
|
|
205
|
+
icons: ["icon-fullscreen", "icon-exitscreen"],
|
|
206
|
+
click: ht
|
|
207
|
+
});
|
|
208
|
+
}, Pa = (o) => {
|
|
209
|
+
if (!o.tools || o.tools.length > 0) {
|
|
210
|
+
const a = [];
|
|
211
|
+
return o.tools ? a.push(...o.tools) : a.push(..._e), { tools: De(_e, 0, a).buttons };
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
tools: []
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
var Ia = /* @__PURE__ */ ((o) => (o.SYS_CONFIG = "SYS_CONFIG_", o.APP_MENU = "APP_MENU_", o.DICT_TYPE = "DICT_TYPE_", o.HOST_INFO = "HOST_INFO_", o.APP_PERMITS = "APP_PERMITS_", o.USER_SETTINGS = "USER_SETTINGS_", o.DICT_DATA = "DICT_DATA_", o.COMMON_OPTIONS = "COMMON_OPTIONS_", o))(Ia || {});
|
|
218
|
+
class bt {
|
|
75
219
|
/**
|
|
76
220
|
* 设置缓存数据(带服务器时间)
|
|
77
221
|
*/
|
|
78
|
-
static setWithServerTime(
|
|
79
|
-
const
|
|
222
|
+
static setWithServerTime(a, e, t) {
|
|
223
|
+
const s = {
|
|
80
224
|
data: e,
|
|
81
225
|
lastTime: t
|
|
82
226
|
};
|
|
83
|
-
|
|
227
|
+
he.set({ key: a, storage: "local" }, s);
|
|
84
228
|
}
|
|
85
229
|
/**
|
|
86
230
|
* 设置缓存数据
|
|
87
231
|
*/
|
|
88
|
-
static setData(
|
|
89
|
-
|
|
232
|
+
static setData(a, e) {
|
|
233
|
+
he.set({ key: a, storage: "local" }, e);
|
|
90
234
|
}
|
|
91
235
|
/**
|
|
92
236
|
* 获取缓存数据
|
|
93
237
|
*/
|
|
94
|
-
static getData(
|
|
95
|
-
const e =
|
|
96
|
-
return e &&
|
|
238
|
+
static getData(a) {
|
|
239
|
+
const e = he.get({ key: a, storage: "local" });
|
|
240
|
+
return e && bt.isTimedData(e) ? e.data : e ?? null;
|
|
97
241
|
}
|
|
98
242
|
/**
|
|
99
243
|
* 清除缓存
|
|
100
244
|
*/
|
|
101
|
-
static remove(
|
|
102
|
-
|
|
245
|
+
static remove(a) {
|
|
246
|
+
he.remove({ key: a, storage: "local" });
|
|
103
247
|
}
|
|
104
248
|
/**
|
|
105
249
|
* 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
|
|
106
250
|
*/
|
|
107
|
-
static clearByPrefix(
|
|
251
|
+
static clearByPrefix(a) {
|
|
108
252
|
for (let e = 0; e < localStorage.length; e++) {
|
|
109
253
|
const t = localStorage.key(e);
|
|
110
|
-
t && t.startsWith("frontCache::" +
|
|
254
|
+
t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
|
|
111
255
|
}
|
|
112
256
|
}
|
|
113
257
|
/**
|
|
114
258
|
* 清理所有缓存
|
|
115
259
|
*/
|
|
116
260
|
static clearAll() {
|
|
117
|
-
for (let
|
|
118
|
-
const e = localStorage.key(
|
|
261
|
+
for (let a = localStorage.length - 1; a >= 0; a--) {
|
|
262
|
+
const e = localStorage.key(a);
|
|
119
263
|
e && e.startsWith("frontCache::") && localStorage.removeItem(e);
|
|
120
264
|
}
|
|
121
265
|
}
|
|
122
266
|
/**
|
|
123
267
|
* 判断是否是带时间戳的数据
|
|
124
268
|
*/
|
|
125
|
-
static isTimedData(
|
|
126
|
-
return
|
|
269
|
+
static isTimedData(a) {
|
|
270
|
+
return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
|
|
127
271
|
}
|
|
128
272
|
}
|
|
129
|
-
async function
|
|
273
|
+
async function dr() {
|
|
130
274
|
try {
|
|
131
|
-
const
|
|
275
|
+
const o = await Oe(
|
|
132
276
|
{
|
|
133
277
|
api: "PLATFORM_API",
|
|
134
278
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -136,18 +280,18 @@ async function Xl() {
|
|
|
136
280
|
},
|
|
137
281
|
{}
|
|
138
282
|
);
|
|
139
|
-
if ((
|
|
140
|
-
const
|
|
141
|
-
Object.keys(
|
|
142
|
-
const t =
|
|
143
|
-
["local", "session"].forEach((
|
|
144
|
-
const
|
|
145
|
-
for (let
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
283
|
+
if ((o == null ? void 0 : o.status) === Ke.SUCCESS) {
|
|
284
|
+
const a = o.data;
|
|
285
|
+
Object.keys(a).forEach((e) => {
|
|
286
|
+
const t = a[e];
|
|
287
|
+
["local", "session"].forEach((c) => {
|
|
288
|
+
const r = c === "local" ? localStorage : sessionStorage;
|
|
289
|
+
for (let p = 0; p < r.length; p++) {
|
|
290
|
+
const i = r.key(p);
|
|
291
|
+
if (i && i.endsWith(e))
|
|
148
292
|
try {
|
|
149
|
-
const
|
|
150
|
-
|
|
293
|
+
const d = JSON.parse(r.getItem(i));
|
|
294
|
+
d && typeof d == "object" && "lastTime" in d && typeof d.lastTime == "number" && d.lastTime !== t && r.removeItem(i);
|
|
151
295
|
} catch {
|
|
152
296
|
continue;
|
|
153
297
|
}
|
|
@@ -155,12 +299,12 @@ async function Xl() {
|
|
|
155
299
|
});
|
|
156
300
|
});
|
|
157
301
|
}
|
|
158
|
-
} catch (
|
|
159
|
-
console.error("检查缓存更新失败",
|
|
302
|
+
} catch (o) {
|
|
303
|
+
console.error("检查缓存更新失败", o);
|
|
160
304
|
}
|
|
161
305
|
}
|
|
162
|
-
const
|
|
163
|
-
const e = await
|
|
306
|
+
const pr = async (o, a) => {
|
|
307
|
+
const e = await gt(o, a);
|
|
164
308
|
if (e.success)
|
|
165
309
|
return {
|
|
166
310
|
blobUrl: e.blobUrl,
|
|
@@ -168,85 +312,85 @@ const Zl = async (d, l) => {
|
|
|
168
312
|
blob: null
|
|
169
313
|
// 不再返回blob对象,使用URL即可
|
|
170
314
|
};
|
|
171
|
-
throw new Error(e.error ||
|
|
172
|
-
},
|
|
315
|
+
throw new Error(e.error || w("webui.utils.formCsv.csvToExcelFailed"));
|
|
316
|
+
}, fr = async (o, a) => {
|
|
173
317
|
try {
|
|
174
|
-
const t = new TextDecoder("utf-8").decode(
|
|
318
|
+
const t = new TextDecoder("utf-8").decode(o), s = await gt(t, a);
|
|
175
319
|
return {
|
|
176
|
-
success:
|
|
177
|
-
blobUrl:
|
|
178
|
-
fileName:
|
|
179
|
-
error:
|
|
320
|
+
success: s.success,
|
|
321
|
+
blobUrl: s.blobUrl,
|
|
322
|
+
fileName: s.fileName,
|
|
323
|
+
error: s.error,
|
|
180
324
|
csvContent: t
|
|
181
325
|
// 保留原始CSV内容
|
|
182
326
|
};
|
|
183
327
|
} catch (e) {
|
|
184
|
-
return console.error(
|
|
328
|
+
return console.error(w("webui.utils.formCsv.csvProcessFailed") + ":", e), {
|
|
185
329
|
success: !1,
|
|
186
|
-
error: e instanceof Error ? e.message :
|
|
330
|
+
error: e instanceof Error ? e.message : w("webui.utils.formCsv.unknownError")
|
|
187
331
|
};
|
|
188
332
|
}
|
|
189
|
-
},
|
|
190
|
-
label:
|
|
191
|
-
value:
|
|
192
|
-
})),
|
|
193
|
-
const
|
|
194
|
-
return
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
text: e[
|
|
333
|
+
}, yt = (o) => o ? Array.isArray(o) ? o.join(".") : o : "", xt = (o) => o.map((a) => ({
|
|
334
|
+
label: a.title,
|
|
335
|
+
value: yt(a.dataIndex) || a.key || ""
|
|
336
|
+
})), wt = (o, a) => o.map((e, t) => {
|
|
337
|
+
const s = { ...e };
|
|
338
|
+
return a.forEach((c) => {
|
|
339
|
+
const r = yt(c.dataIndex) || c.key;
|
|
340
|
+
r && c.customRender && (s[r] = c.customRender({
|
|
341
|
+
text: e[r],
|
|
198
342
|
record: e,
|
|
199
343
|
index: t,
|
|
200
|
-
column:
|
|
344
|
+
column: c
|
|
201
345
|
}));
|
|
202
|
-
}),
|
|
203
|
-
}),
|
|
346
|
+
}), s;
|
|
347
|
+
}), _t = async (o, a, e) => {
|
|
204
348
|
try {
|
|
205
|
-
const
|
|
206
|
-
|
|
349
|
+
const s = (await import("@json2csv/plainjs")).Parser, r = new s({ fields: a }).parse(e), p = new Blob([`\uFEFF${r}`], { type: "text/csv" });
|
|
350
|
+
ya(p, o);
|
|
207
351
|
} catch (t) {
|
|
208
|
-
console.error(
|
|
352
|
+
console.error(w("webui.utils.exportTable.exportFailed") + ":", t), ae.error(w("webui.utils.exportTable.fileExportFailed"));
|
|
209
353
|
}
|
|
210
|
-
},
|
|
354
|
+
}, vr = async (o, a, e) => {
|
|
211
355
|
try {
|
|
212
|
-
const t =
|
|
213
|
-
await
|
|
356
|
+
const t = kt(o), s = a.filter((p) => p.visible !== !1 && p.export !== !1), c = xt(s), r = wt(e, s);
|
|
357
|
+
await _t(t, c, r);
|
|
214
358
|
} catch (t) {
|
|
215
|
-
console.error(
|
|
359
|
+
console.error(w("webui.utils.exportTable.exportFailed") + ":", t), ae.error(w("webui.utils.exportTable.fileExportFailed"));
|
|
216
360
|
}
|
|
217
|
-
},
|
|
218
|
-
const
|
|
219
|
-
return
|
|
220
|
-
},
|
|
361
|
+
}, kt = (o) => {
|
|
362
|
+
const a = /\{([^}]+)\}/g;
|
|
363
|
+
return o.replace(a, (e, t) => Ne().format(t));
|
|
364
|
+
}, mr = async (o, a, e, t) => {
|
|
221
365
|
try {
|
|
222
|
-
const
|
|
223
|
-
let
|
|
224
|
-
return t.api || (t.api =
|
|
225
|
-
if (e.isGridLoading.value = !1, (
|
|
226
|
-
if (
|
|
227
|
-
let v =
|
|
228
|
-
const
|
|
229
|
-
await
|
|
366
|
+
const s = kt(o), c = a.filter((d) => d.visible !== !1), r = xt(c);
|
|
367
|
+
let p = e.page, i = e.gridQuery;
|
|
368
|
+
return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Oe(t, i).then(async (d) => {
|
|
369
|
+
if (e.isGridLoading.value = !1, (d == null ? void 0 : d.status) === Ke.SUCCESS) {
|
|
370
|
+
if (d.data) {
|
|
371
|
+
let v = d.data;
|
|
372
|
+
const n = wt(v, c);
|
|
373
|
+
await _t(s, r, n);
|
|
230
374
|
}
|
|
231
|
-
} else if ((
|
|
232
|
-
|
|
375
|
+
} else if ((d == null ? void 0 : d.errno) == Dt) {
|
|
376
|
+
Be().logout(!1);
|
|
233
377
|
return;
|
|
234
378
|
}
|
|
235
379
|
});
|
|
236
|
-
} catch (
|
|
237
|
-
console.error(
|
|
380
|
+
} catch (s) {
|
|
381
|
+
console.error(w("webui.utils.exportTable.exportFailed") + ":", s), ae.error(w("webui.utils.exportTable.fileExportFailed"));
|
|
238
382
|
}
|
|
239
|
-
},
|
|
383
|
+
}, gr = /* @__PURE__ */ L({
|
|
240
384
|
__name: "fullscreen",
|
|
241
|
-
setup(
|
|
242
|
-
const
|
|
243
|
-
return (e, t) => (
|
|
244
|
-
onClick:
|
|
245
|
-
icon: a
|
|
385
|
+
setup(o) {
|
|
386
|
+
const a = Ae();
|
|
387
|
+
return (e, t) => (u(), k(V, {
|
|
388
|
+
onClick: ge(l(ht), ["stop"]),
|
|
389
|
+
icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
246
390
|
class: "w-[17px] h-[17px]"
|
|
247
391
|
}, null, 8, ["onClick", "icon"]));
|
|
248
392
|
}
|
|
249
|
-
}),
|
|
393
|
+
}), Ea = { class: "ml-2" }, La = /* @__PURE__ */ L({
|
|
250
394
|
inheritAttrs: !1,
|
|
251
395
|
__name: "helper",
|
|
252
396
|
props: {
|
|
@@ -255,30 +399,30 @@ const Zl = async (d, l) => {
|
|
|
255
399
|
size: {},
|
|
256
400
|
placement: {}
|
|
257
401
|
},
|
|
258
|
-
setup(
|
|
259
|
-
const
|
|
260
|
-
return (e, t) => (
|
|
402
|
+
setup(o) {
|
|
403
|
+
const a = de();
|
|
404
|
+
return (e, t) => (u(), k(l(Xt), {
|
|
261
405
|
placement: e.placement ?? "topRight"
|
|
262
406
|
}, {
|
|
263
|
-
content:
|
|
264
|
-
|
|
407
|
+
content: _(() => [
|
|
408
|
+
O(e.$slots, "default", {}, () => [
|
|
265
409
|
I("div", {
|
|
266
|
-
class:
|
|
267
|
-
},
|
|
410
|
+
class: R(["text-[14px]", [e.maxWidth]])
|
|
411
|
+
}, E(e.text), 3)
|
|
268
412
|
])
|
|
269
413
|
]),
|
|
270
|
-
default:
|
|
271
|
-
I("span",
|
|
272
|
-
|
|
414
|
+
default: _(() => [
|
|
415
|
+
I("span", Ea, [
|
|
416
|
+
F(V, N({
|
|
273
417
|
icon: "icon-question-circle",
|
|
274
418
|
class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
|
|
275
|
-
}, a
|
|
419
|
+
}, l(a)), null, 16, ["class"])
|
|
276
420
|
])
|
|
277
421
|
]),
|
|
278
422
|
_: 3
|
|
279
423
|
}, 8, ["placement"]));
|
|
280
424
|
}
|
|
281
|
-
}),
|
|
425
|
+
}), hr = /* @__PURE__ */ L({
|
|
282
426
|
__name: "layoutIcon",
|
|
283
427
|
props: {
|
|
284
428
|
icon: {
|
|
@@ -288,21 +432,21 @@ const Zl = async (d, l) => {
|
|
|
288
432
|
type: Array
|
|
289
433
|
}
|
|
290
434
|
},
|
|
291
|
-
setup(
|
|
292
|
-
const
|
|
293
|
-
iconUrl: `${
|
|
435
|
+
setup(o) {
|
|
436
|
+
const a = o, t = Ft({
|
|
437
|
+
iconUrl: `${qt.MICROLAYOUT_ICONS}`,
|
|
294
438
|
monoColor: !0,
|
|
295
|
-
icon:
|
|
296
|
-
icons:
|
|
439
|
+
icon: a.icon,
|
|
440
|
+
icons: a.icons
|
|
297
441
|
});
|
|
298
|
-
return (
|
|
442
|
+
return (s, c) => o.icon || o.icons ? (u(), k(l(t), N({
|
|
299
443
|
key: 0,
|
|
300
|
-
icon:
|
|
301
|
-
icons:
|
|
444
|
+
icon: o.icon,
|
|
445
|
+
icons: o.icons,
|
|
302
446
|
class: ["align-middle"]
|
|
303
|
-
},
|
|
447
|
+
}, s.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
|
|
304
448
|
}
|
|
305
|
-
}),
|
|
449
|
+
}), Ua = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, br = /* @__PURE__ */ L({
|
|
306
450
|
__name: "index",
|
|
307
451
|
props: {
|
|
308
452
|
saveText: {},
|
|
@@ -312,32 +456,32 @@ const Zl = async (d, l) => {
|
|
|
312
456
|
drawerSave: { type: Function },
|
|
313
457
|
drawerSaveAs: { type: Function }
|
|
314
458
|
},
|
|
315
|
-
setup(
|
|
316
|
-
const { useToken:
|
|
317
|
-
|
|
318
|
-
() =>
|
|
319
|
-
(
|
|
320
|
-
t.value =
|
|
459
|
+
setup(o) {
|
|
460
|
+
const { useToken: a } = ct, { token: e } = a(), t = T(!1), s = o, c = s.editorCtrl;
|
|
461
|
+
Ce(oe.EditorControl, c), M(
|
|
462
|
+
() => c.visible.value,
|
|
463
|
+
(d) => {
|
|
464
|
+
t.value = d ?? !1;
|
|
321
465
|
}
|
|
322
|
-
),
|
|
323
|
-
t.value =
|
|
466
|
+
), le(() => {
|
|
467
|
+
t.value = c.visible.value ?? !1;
|
|
324
468
|
});
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
|
|
329
|
-
},
|
|
330
|
-
|
|
469
|
+
const r = () => {
|
|
470
|
+
s.drawerSave ? s.drawerSave() : c && Qe(c);
|
|
471
|
+
}, p = () => {
|
|
472
|
+
s.drawerSaveAs ? s.drawerSaveAs() : c && Pt(c);
|
|
473
|
+
}, i = () => {
|
|
474
|
+
It(c);
|
|
331
475
|
};
|
|
332
|
-
return (
|
|
476
|
+
return (d, v) => (u(), k(l(Zt), {
|
|
333
477
|
open: t.value,
|
|
334
|
-
"onUpdate:open": v[0] || (v[0] = (
|
|
478
|
+
"onUpdate:open": v[0] || (v[0] = (n) => t.value = n),
|
|
335
479
|
"get-container": !1,
|
|
336
480
|
closable: !1,
|
|
337
481
|
"header-style": {
|
|
338
482
|
height: "40px",
|
|
339
483
|
padding: "10px 6px 10px 16px",
|
|
340
|
-
backgroundColor:
|
|
484
|
+
backgroundColor: l(e).colorBgLayout
|
|
341
485
|
},
|
|
342
486
|
"body-style": {
|
|
343
487
|
padding: "10px 16px"
|
|
@@ -350,12 +494,12 @@ const Zl = async (d, l) => {
|
|
|
350
494
|
boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
|
|
351
495
|
},
|
|
352
496
|
width: "420px",
|
|
353
|
-
onClose:
|
|
497
|
+
onClose: i
|
|
354
498
|
}, {
|
|
355
|
-
extra:
|
|
356
|
-
|
|
357
|
-
I("div",
|
|
358
|
-
|
|
499
|
+
extra: _(() => [
|
|
500
|
+
O(d.$slots, "extra", {}, () => [
|
|
501
|
+
I("div", Ua, [
|
|
502
|
+
F(l(V), {
|
|
359
503
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
360
504
|
icon: "icon-new",
|
|
361
505
|
angle: 45,
|
|
@@ -363,49 +507,49 @@ const Zl = async (d, l) => {
|
|
|
363
507
|
clickable: "",
|
|
364
508
|
color: "#666",
|
|
365
509
|
position: [0, 0],
|
|
366
|
-
onClick:
|
|
510
|
+
onClick: i
|
|
367
511
|
})
|
|
368
512
|
])
|
|
369
513
|
])
|
|
370
514
|
]),
|
|
371
|
-
default:
|
|
372
|
-
|
|
515
|
+
default: _(() => [
|
|
516
|
+
O(d.$slots, "default")
|
|
373
517
|
]),
|
|
374
|
-
footer:
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
default:
|
|
378
|
-
|
|
518
|
+
footer: _(() => [
|
|
519
|
+
O(d.$slots, "footer", {}, () => [
|
|
520
|
+
F(l(pe), null, {
|
|
521
|
+
default: _(() => [
|
|
522
|
+
d.cancelText !== "" ? (u(), k(l(ee), {
|
|
379
523
|
key: 0,
|
|
380
|
-
onClick:
|
|
524
|
+
onClick: i
|
|
381
525
|
}, {
|
|
382
|
-
default:
|
|
383
|
-
|
|
526
|
+
default: _(() => [
|
|
527
|
+
Y(E(d.cancelText ?? l(w)("webui.common.cancel")), 1)
|
|
384
528
|
]),
|
|
385
529
|
_: 1
|
|
386
|
-
})) :
|
|
387
|
-
|
|
530
|
+
})) : C("", !0),
|
|
531
|
+
d.saveAsText !== "" && l(c).saveAsBtnVisible !== !1 ? (u(), k(l(ee), {
|
|
388
532
|
key: 1,
|
|
389
|
-
onClick:
|
|
533
|
+
onClick: p,
|
|
390
534
|
type: "primary",
|
|
391
|
-
loading:
|
|
535
|
+
loading: l(c).isFormSaving.value
|
|
392
536
|
}, {
|
|
393
|
-
default:
|
|
394
|
-
|
|
537
|
+
default: _(() => [
|
|
538
|
+
Y(E(d.saveAsText ?? l(w)("webui.common.saveAs")), 1)
|
|
395
539
|
]),
|
|
396
540
|
_: 1
|
|
397
|
-
}, 8, ["loading"])) :
|
|
398
|
-
|
|
541
|
+
}, 8, ["loading"])) : C("", !0),
|
|
542
|
+
d.saveText !== "" && l(c).saveBtnVisible !== !1 ? (u(), k(l(ee), {
|
|
399
543
|
key: 2,
|
|
400
|
-
onClick:
|
|
544
|
+
onClick: r,
|
|
401
545
|
type: "primary",
|
|
402
|
-
loading:
|
|
546
|
+
loading: l(c).isFormSaving.value
|
|
403
547
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
|
|
548
|
+
default: _(() => [
|
|
549
|
+
Y(E(d.saveText ?? l(w)("webui.common.save")), 1)
|
|
406
550
|
]),
|
|
407
551
|
_: 1
|
|
408
|
-
}, 8, ["loading"])) :
|
|
552
|
+
}, 8, ["loading"])) : C("", !0)
|
|
409
553
|
]),
|
|
410
554
|
_: 1
|
|
411
555
|
})
|
|
@@ -414,45 +558,45 @@ const Zl = async (d, l) => {
|
|
|
414
558
|
_: 3
|
|
415
559
|
}, 8, ["open", "header-style"]));
|
|
416
560
|
}
|
|
417
|
-
}),
|
|
561
|
+
}), yr = /* @__PURE__ */ L({
|
|
418
562
|
__name: "index",
|
|
419
563
|
props: {
|
|
420
564
|
labelWidth: {},
|
|
421
565
|
wrapperWidth: {},
|
|
422
566
|
editorCtrl: {}
|
|
423
567
|
},
|
|
424
|
-
setup(
|
|
425
|
-
const
|
|
426
|
-
return
|
|
427
|
-
const
|
|
428
|
-
return Q((
|
|
429
|
-
"label-col": { flex:
|
|
568
|
+
setup(o) {
|
|
569
|
+
const a = o, e = a.editorCtrl ?? xe(oe.EditorControl, void 0);
|
|
570
|
+
return Ce(oe.LabelWidth, a.labelWidth), (t, s) => {
|
|
571
|
+
const c = ne("submit");
|
|
572
|
+
return Q((u(), k(l(ut), {
|
|
573
|
+
"label-col": { flex: a.labelWidth ?? "85px" },
|
|
430
574
|
"wrapper-col": {
|
|
431
|
-
flex:
|
|
575
|
+
flex: a.wrapperWidth ?? "1 0 280px"
|
|
432
576
|
},
|
|
433
577
|
style: {
|
|
434
578
|
display: "flex",
|
|
435
579
|
flexWrap: "wrap"
|
|
436
580
|
}
|
|
437
581
|
}, {
|
|
438
|
-
default:
|
|
439
|
-
|
|
582
|
+
default: _(() => [
|
|
583
|
+
O(t.$slots, "default")
|
|
440
584
|
]),
|
|
441
585
|
_: 3
|
|
442
586
|
}, 8, ["label-col", "wrapper-col"])), [
|
|
443
587
|
[
|
|
444
|
-
|
|
588
|
+
c,
|
|
445
589
|
() => {
|
|
446
|
-
|
|
590
|
+
l(e) && l(Qe)(l(e));
|
|
447
591
|
}
|
|
448
592
|
]
|
|
449
593
|
]);
|
|
450
594
|
};
|
|
451
595
|
}
|
|
452
|
-
}),
|
|
596
|
+
}), Ma = {
|
|
453
597
|
key: 0,
|
|
454
598
|
class: "flex-grow"
|
|
455
|
-
},
|
|
599
|
+
}, Na = { class: "w-8 mt-[-2px]" }, xr = /* @__PURE__ */ L({
|
|
456
600
|
inheritAttrs: !1,
|
|
457
601
|
__name: "formItem",
|
|
458
602
|
props: {
|
|
@@ -463,71 +607,71 @@ const Zl = async (d, l) => {
|
|
|
463
607
|
nextLine: { type: Boolean },
|
|
464
608
|
bottomMargin: {}
|
|
465
609
|
},
|
|
466
|
-
setup(
|
|
467
|
-
const
|
|
610
|
+
setup(o) {
|
|
611
|
+
const a = o, e = de(), t = xe(oe.EditorControl, void 0), s = xe(oe.LabelWidth, "85px") ?? "85px", c = Je(a, t), r = T(!1);
|
|
468
612
|
setTimeout(() => {
|
|
469
|
-
|
|
613
|
+
r.value = !0;
|
|
470
614
|
}, 30);
|
|
471
|
-
const
|
|
472
|
-
var
|
|
473
|
-
if (!
|
|
615
|
+
const p = K(() => {
|
|
616
|
+
var d;
|
|
617
|
+
if (!a.rule)
|
|
474
618
|
return !1;
|
|
475
|
-
const
|
|
476
|
-
return
|
|
619
|
+
const i = Xe(a.rule.split("."), (d = t == null ? void 0 : t.formRules) == null ? void 0 : d.value);
|
|
620
|
+
return i ? (i.required || (c.value.errClass = "", c.value.msg = ""), i.required ?? !0) : (ea.error(w("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule })), c.value.errClass = "text-[#ff4d4f]", c.value.msg = w("webui.components.content.formItem.validationRuleNotFound", { label: a.label, rule: a.rule }), !0);
|
|
477
621
|
});
|
|
478
|
-
return (
|
|
479
|
-
class:
|
|
622
|
+
return (i, d) => (u(), x("div", {
|
|
623
|
+
class: R(["relative", i.bottomMargin ? i.bottomMargin : "mb-1"])
|
|
480
624
|
}, [
|
|
481
|
-
|
|
625
|
+
r.value ? (u(), k(l(dt), N({
|
|
482
626
|
key: 0,
|
|
483
|
-
required:
|
|
484
|
-
class: ["relative", [
|
|
485
|
-
},
|
|
486
|
-
label:
|
|
627
|
+
required: p.value,
|
|
628
|
+
class: ["relative", [i.nextLine ? "mb-0" : i.rule ? "" : "mb-3"]]
|
|
629
|
+
}, l(e)), {
|
|
630
|
+
label: _(() => [
|
|
487
631
|
I("span", {
|
|
488
|
-
class:
|
|
489
|
-
},
|
|
632
|
+
class: R([l(c).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
633
|
+
}, E(i.label), 3)
|
|
490
634
|
]),
|
|
491
|
-
default:
|
|
635
|
+
default: _(() => [
|
|
492
636
|
I("div", {
|
|
493
|
-
class:
|
|
637
|
+
class: R(["flex items-center", i.width ? i.width : "w-full"])
|
|
494
638
|
}, [
|
|
495
|
-
|
|
496
|
-
|
|
639
|
+
i.nextLine ? C("", !0) : (u(), x("div", Ma, [
|
|
640
|
+
O(i.$slots, "default")
|
|
497
641
|
])),
|
|
498
|
-
I("div",
|
|
499
|
-
|
|
500
|
-
|
|
642
|
+
I("div", Na, [
|
|
643
|
+
O(i.$slots, "helper", {}, () => [
|
|
644
|
+
i.helper ? (u(), k(l(La), {
|
|
501
645
|
key: 0,
|
|
502
|
-
text:
|
|
503
|
-
}, null, 8, ["text"])) :
|
|
646
|
+
text: i.helper
|
|
647
|
+
}, null, 8, ["text"])) : C("", !0)
|
|
504
648
|
])
|
|
505
649
|
])
|
|
506
650
|
], 2)
|
|
507
651
|
]),
|
|
508
652
|
_: 3
|
|
509
|
-
}, 16, ["required", "class"])) :
|
|
510
|
-
|
|
653
|
+
}, 16, ["required", "class"])) : C("", !0),
|
|
654
|
+
i.nextLine ? (u(), x("div", {
|
|
511
655
|
key: 1,
|
|
512
|
-
class:
|
|
656
|
+
class: R(["w-[95%] flex items-center relative", [i.nextLine ? i.rule ? "mb-7" : "mb-3" : ""]])
|
|
513
657
|
}, [
|
|
514
|
-
|
|
515
|
-
], 2)) :
|
|
516
|
-
|
|
658
|
+
O(i.$slots, "default")
|
|
659
|
+
], 2)) : C("", !0),
|
|
660
|
+
l(c).errClass ? (u(), x("span", {
|
|
517
661
|
key: 2,
|
|
518
|
-
style:
|
|
662
|
+
style: je({ left: i.nextLine ? "2px" : l(s) }),
|
|
519
663
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
520
|
-
},
|
|
664
|
+
}, E(l(c).msg), 5)) : C("", !0)
|
|
521
665
|
], 2));
|
|
522
666
|
}
|
|
523
|
-
}),
|
|
667
|
+
}), Ra = /* @__PURE__ */ L({
|
|
524
668
|
__name: "listOperate",
|
|
525
669
|
props: {
|
|
526
670
|
record: {},
|
|
527
671
|
gridCtrl: {}
|
|
528
672
|
},
|
|
529
|
-
setup(
|
|
530
|
-
const
|
|
673
|
+
setup(o) {
|
|
674
|
+
const a = o, e = a.gridCtrl, t = K(() => fe.currentRoute.value.path), s = [
|
|
531
675
|
{
|
|
532
676
|
key: "Edit",
|
|
533
677
|
label: "",
|
|
@@ -536,7 +680,7 @@ const Zl = async (d, l) => {
|
|
|
536
680
|
visible: !0,
|
|
537
681
|
role: ["Super", "Admin"],
|
|
538
682
|
permit: ":edit",
|
|
539
|
-
click: () =>
|
|
683
|
+
click: () => Ze(e, a.record)
|
|
540
684
|
},
|
|
541
685
|
{
|
|
542
686
|
key: "Delete",
|
|
@@ -548,106 +692,106 @@ const Zl = async (d, l) => {
|
|
|
548
692
|
role: ["Super", "Admin"],
|
|
549
693
|
permit: ":delete",
|
|
550
694
|
confirm: !0,
|
|
551
|
-
confirmText:
|
|
552
|
-
click: () =>
|
|
695
|
+
confirmText: w("webui.components.content.table.confirmDelete"),
|
|
696
|
+
click: () => et(e, a.record)
|
|
553
697
|
}
|
|
554
|
-
], { buttons:
|
|
555
|
-
if (typeof
|
|
556
|
-
return
|
|
557
|
-
if (typeof
|
|
558
|
-
return W(
|
|
559
|
-
if (
|
|
560
|
-
switch (
|
|
698
|
+
], { buttons: c, menus: r } = De(s, 0, e.operates), p = (i) => {
|
|
699
|
+
if (typeof i.disabled == "boolean")
|
|
700
|
+
return i.disabled;
|
|
701
|
+
if (typeof i.disabled == "function")
|
|
702
|
+
return W(i, a.record) ?? !1;
|
|
703
|
+
if (a.record.hasOwnProperty(e.statusKey))
|
|
704
|
+
switch (i.key) {
|
|
561
705
|
case "Edit":
|
|
562
|
-
return !
|
|
706
|
+
return !a.record[e.statusKey];
|
|
563
707
|
case "Delete":
|
|
564
|
-
return !!
|
|
708
|
+
return !!a.record[e.statusKey];
|
|
565
709
|
}
|
|
566
710
|
return !1;
|
|
567
711
|
};
|
|
568
|
-
return (
|
|
712
|
+
return (i, d) => {
|
|
569
713
|
const v = ne("auth");
|
|
570
|
-
return
|
|
714
|
+
return u(), k(l(we), { theme: {
|
|
571
715
|
token: {
|
|
572
716
|
fontSize: 13
|
|
573
717
|
}
|
|
574
718
|
} }, {
|
|
575
|
-
default:
|
|
576
|
-
|
|
577
|
-
default:
|
|
578
|
-
(
|
|
579
|
-
key:
|
|
719
|
+
default: _(() => [
|
|
720
|
+
F(l(pe), null, {
|
|
721
|
+
default: _(() => [
|
|
722
|
+
(u(!0), x(U, null, j(l(c), (n) => (u(), x(U, {
|
|
723
|
+
key: n.key
|
|
580
724
|
}, [
|
|
581
|
-
|
|
725
|
+
l(J)(n, a.record) ? (u(), k(l(pt), {
|
|
582
726
|
key: 0,
|
|
583
|
-
disabled:
|
|
584
|
-
cancelText:
|
|
585
|
-
okText:
|
|
586
|
-
title:
|
|
727
|
+
disabled: p(n) || !n.confirm,
|
|
728
|
+
cancelText: l(w)("webui.common.no"),
|
|
729
|
+
okText: l(w)("webui.common.yes"),
|
|
730
|
+
title: n.confirmText,
|
|
587
731
|
okButtonProps: { size: "small" },
|
|
588
732
|
cancelButtonProps: { size: "small" },
|
|
589
|
-
onConfirm: (m) =>
|
|
733
|
+
onConfirm: (m) => l(X)(n, l(e).page, l(e), a.record, !0)
|
|
590
734
|
}, {
|
|
591
|
-
default:
|
|
592
|
-
|
|
593
|
-
key:
|
|
594
|
-
icon:
|
|
595
|
-
danger:
|
|
596
|
-
disabled:
|
|
597
|
-
onClick: (m) => !
|
|
598
|
-
clickable: !
|
|
599
|
-
class:
|
|
735
|
+
default: _(() => [
|
|
736
|
+
l(J)(n, a.record) ? Q((u(), k(l(V), {
|
|
737
|
+
key: n.key,
|
|
738
|
+
icon: n.icon,
|
|
739
|
+
danger: n.danger,
|
|
740
|
+
disabled: p(n),
|
|
741
|
+
onClick: (m) => !p(n) && l(X)(n, l(e).page, l(e), a.record),
|
|
742
|
+
clickable: !p(n),
|
|
743
|
+
class: R([
|
|
600
744
|
"w-4 h-4",
|
|
601
|
-
|
|
602
|
-
|
|
745
|
+
n.danger ? "text-red-500" : "text-gray-600",
|
|
746
|
+
p(n) ? "opacity-30 cursor-not-allowed" : "hover:text-gray-800"
|
|
603
747
|
])
|
|
604
748
|
}, null, 8, ["icon", "danger", "disabled", "onClick", "clickable", "class"])), [
|
|
605
|
-
[v, { url: t.value, role:
|
|
606
|
-
]) :
|
|
749
|
+
[v, { url: t.value, role: n.role, permit: n.permit }]
|
|
750
|
+
]) : C("", !0)
|
|
607
751
|
]),
|
|
608
752
|
_: 2
|
|
609
|
-
}, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) :
|
|
753
|
+
}, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : C("", !0)
|
|
610
754
|
], 64))), 128)),
|
|
611
|
-
|
|
755
|
+
i.record[l(e).statusKey] == 1 ? (u(), k(l(we), {
|
|
612
756
|
key: 0,
|
|
613
757
|
autoInsertSpaceInButton: !1
|
|
614
758
|
}, {
|
|
615
|
-
default:
|
|
616
|
-
|
|
759
|
+
default: _(() => [
|
|
760
|
+
l(r).length > 0 ? (u(), k(l(ft), {
|
|
617
761
|
key: 0,
|
|
618
762
|
size: "small"
|
|
619
763
|
}, {
|
|
620
|
-
overlay:
|
|
621
|
-
|
|
622
|
-
default:
|
|
623
|
-
(
|
|
624
|
-
key:
|
|
764
|
+
overlay: _(() => [
|
|
765
|
+
F(l(Te), null, {
|
|
766
|
+
default: _(() => [
|
|
767
|
+
(u(!0), x(U, null, j(l(r), (n) => (u(), x(U, {
|
|
768
|
+
key: n.key
|
|
625
769
|
}, [
|
|
626
|
-
|
|
770
|
+
l(J)(n, a.record) ? Q((u(), k(l($e), {
|
|
627
771
|
key: 0,
|
|
628
|
-
disabled:
|
|
629
|
-
onClick: (m) =>
|
|
772
|
+
disabled: p(n),
|
|
773
|
+
onClick: (m) => l(X)(n, l(e).page, l(e), a.record)
|
|
630
774
|
}, {
|
|
631
|
-
default:
|
|
632
|
-
|
|
775
|
+
default: _(() => [
|
|
776
|
+
Y(E(n.label), 1)
|
|
633
777
|
]),
|
|
634
778
|
_: 2
|
|
635
779
|
}, 1032, ["disabled", "onClick"])), [
|
|
636
|
-
[v, { url: t.value, role:
|
|
637
|
-
]) :
|
|
780
|
+
[v, { url: t.value, role: n.role, permit: n.permit }]
|
|
781
|
+
]) : C("", !0)
|
|
638
782
|
], 64))), 128))
|
|
639
783
|
]),
|
|
640
784
|
_: 1
|
|
641
785
|
})
|
|
642
786
|
]),
|
|
643
|
-
default:
|
|
644
|
-
|
|
787
|
+
default: _(() => [
|
|
788
|
+
Y(E(l(w)("webui.components.content.table.more")) + " ", 1)
|
|
645
789
|
]),
|
|
646
790
|
_: 1
|
|
647
|
-
})) :
|
|
791
|
+
})) : C("", !0)
|
|
648
792
|
]),
|
|
649
793
|
_: 1
|
|
650
|
-
})) :
|
|
794
|
+
})) : C("", !0)
|
|
651
795
|
]),
|
|
652
796
|
_: 1
|
|
653
797
|
})
|
|
@@ -656,94 +800,94 @@ const Zl = async (d, l) => {
|
|
|
656
800
|
});
|
|
657
801
|
};
|
|
658
802
|
}
|
|
659
|
-
}),
|
|
803
|
+
}), Ba = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Aa = /* @__PURE__ */ L({
|
|
660
804
|
__name: "icontool",
|
|
661
805
|
props: {
|
|
662
806
|
gridCtrl: {}
|
|
663
807
|
},
|
|
664
|
-
setup(
|
|
665
|
-
const
|
|
666
|
-
|
|
808
|
+
setup(o) {
|
|
809
|
+
const a = o, e = a.gridCtrl, { tools: t } = Pa(a.gridCtrl), s = Ae();
|
|
810
|
+
M(
|
|
667
811
|
() => e.selectable.value,
|
|
668
|
-
(
|
|
669
|
-
|
|
812
|
+
(p) => {
|
|
813
|
+
ce(t, "tool.export.excel.selected") && (ce(t, "tool.export.excel.selected").disabled = !p), ce(t, "tool.export.pdf.selected") && (ce(t, "tool.export.pdf.selected").disabled = !p);
|
|
670
814
|
}
|
|
671
815
|
);
|
|
672
|
-
const
|
|
673
|
-
|
|
816
|
+
const c = T([]);
|
|
817
|
+
M(
|
|
674
818
|
() => e.columns.value,
|
|
675
|
-
(
|
|
676
|
-
|
|
819
|
+
(p) => {
|
|
820
|
+
c.value = tt(p, !0);
|
|
677
821
|
},
|
|
678
822
|
{ deep: !0, immediate: !0 }
|
|
679
823
|
);
|
|
680
|
-
const
|
|
681
|
-
e.columns.value.splice(0, e.columns.value.length, ...
|
|
824
|
+
const r = () => {
|
|
825
|
+
e.columns.value.splice(0, e.columns.value.length, ...c.value), s.setTableColumns(fe.currentRoute.value.path, e.columns.value);
|
|
682
826
|
};
|
|
683
|
-
return (
|
|
684
|
-
(
|
|
685
|
-
key:
|
|
827
|
+
return (p, i) => (u(), x("div", Ba, [
|
|
828
|
+
(u(!0), x(U, null, j(l(t), (d, v) => (u(), x(U, {
|
|
829
|
+
key: d.key
|
|
686
830
|
}, [
|
|
687
|
-
|
|
831
|
+
l(J)(d) && d.dropdown ? (u(), k(l(Re), {
|
|
688
832
|
key: 0,
|
|
689
833
|
placement: "bottomRight",
|
|
690
834
|
class: "p-0 rounded-none"
|
|
691
835
|
}, {
|
|
692
|
-
overlay:
|
|
836
|
+
overlay: _(() => [
|
|
693
837
|
I("div", {
|
|
694
|
-
class:
|
|
838
|
+
class: R(["min-w-[100px] bg-white rounded shadow-md p-4", d.dropdownClass])
|
|
695
839
|
}, [
|
|
696
|
-
|
|
840
|
+
d.dropdown === "headset" ? (u(), k(l(ba), {
|
|
697
841
|
key: 0,
|
|
698
|
-
modelValue:
|
|
699
|
-
"onUpdate:modelValue":
|
|
842
|
+
modelValue: c.value,
|
|
843
|
+
"onUpdate:modelValue": i[1] || (i[1] = (n) => c.value = n),
|
|
700
844
|
"item-key": "dataIndex",
|
|
701
|
-
onEnd:
|
|
845
|
+
onEnd: r,
|
|
702
846
|
handle: ".drag-handle"
|
|
703
847
|
}, {
|
|
704
|
-
default:
|
|
705
|
-
(
|
|
706
|
-
key:
|
|
707
|
-
onClick:
|
|
848
|
+
default: _(() => [
|
|
849
|
+
(u(!0), x(U, null, j(c.value, (n) => (u(), x("div", {
|
|
850
|
+
key: n.name,
|
|
851
|
+
onClick: i[0] || (i[0] = ge(() => {
|
|
708
852
|
}, ["stop"])),
|
|
709
853
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
710
854
|
}, [
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
checked:
|
|
714
|
-
onChange:
|
|
855
|
+
i[2] || (i[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
856
|
+
F(l(ta), {
|
|
857
|
+
checked: n.visible !== !1,
|
|
858
|
+
onChange: ge(
|
|
715
859
|
(m) => {
|
|
716
|
-
|
|
860
|
+
l(Fa)(n, m.target.checked);
|
|
717
861
|
},
|
|
718
862
|
["stop", "prevent"]
|
|
719
863
|
),
|
|
720
864
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
721
865
|
}, {
|
|
722
|
-
default:
|
|
723
|
-
|
|
866
|
+
default: _(() => [
|
|
867
|
+
Y(E(n.title), 1)
|
|
724
868
|
]),
|
|
725
869
|
_: 2
|
|
726
870
|
}, 1032, ["checked", "onChange"])
|
|
727
871
|
]))), 128))
|
|
728
872
|
]),
|
|
729
873
|
_: 1
|
|
730
|
-
}, 8, ["modelValue"])) :
|
|
874
|
+
}, 8, ["modelValue"])) : C("", !0)
|
|
731
875
|
], 2)
|
|
732
876
|
]),
|
|
733
|
-
default:
|
|
734
|
-
|
|
735
|
-
class:
|
|
877
|
+
default: _(() => [
|
|
878
|
+
F(l(ee), {
|
|
879
|
+
class: R([
|
|
736
880
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
737
881
|
v === 0 ? "rounded-l-[5px]" : "",
|
|
738
|
-
v ===
|
|
882
|
+
v === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
739
883
|
]),
|
|
740
|
-
disabled:
|
|
741
|
-
tiptext:
|
|
742
|
-
onClick: (
|
|
884
|
+
disabled: l(W)(d),
|
|
885
|
+
tiptext: d.label,
|
|
886
|
+
onClick: (n) => l(X)(d, l(e).page, l(e))
|
|
743
887
|
}, {
|
|
744
|
-
default:
|
|
745
|
-
|
|
746
|
-
icon:
|
|
888
|
+
default: _(() => [
|
|
889
|
+
F(l(V), {
|
|
890
|
+
icon: d.icon,
|
|
747
891
|
class: "w-[18px] h-[18.5px]",
|
|
748
892
|
clickable: ""
|
|
749
893
|
}, null, 8, ["icon"])
|
|
@@ -752,39 +896,39 @@ const Zl = async (d, l) => {
|
|
|
752
896
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
753
897
|
]),
|
|
754
898
|
_: 2
|
|
755
|
-
}, 1024)) : !
|
|
899
|
+
}, 1024)) : !d.children && l(J)(d) ? (u(), k(l(ee), {
|
|
756
900
|
key: 1,
|
|
757
|
-
class:
|
|
901
|
+
class: R([
|
|
758
902
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
759
903
|
v === 0 ? "rounded-l-[5px]" : "",
|
|
760
|
-
v ===
|
|
904
|
+
v === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
761
905
|
]),
|
|
762
|
-
disabled:
|
|
763
|
-
tiptext:
|
|
764
|
-
onClick: (
|
|
906
|
+
disabled: l(W)(d),
|
|
907
|
+
tiptext: d.label,
|
|
908
|
+
onClick: (n) => l(X)(d, l(e).page, l(e))
|
|
765
909
|
}, {
|
|
766
|
-
default:
|
|
767
|
-
|
|
768
|
-
icon:
|
|
910
|
+
default: _(() => [
|
|
911
|
+
F(l(V), {
|
|
912
|
+
icon: d.icon,
|
|
769
913
|
class: "w-[18px] h-[18.5px]",
|
|
770
914
|
clickable: ""
|
|
771
915
|
}, null, 8, ["icon"])
|
|
772
916
|
]),
|
|
773
917
|
_: 2
|
|
774
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) :
|
|
918
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(d) ? (u(), k(l(Re), {
|
|
775
919
|
key: 2,
|
|
776
920
|
placement: "bottomRight",
|
|
777
921
|
class: "p-0 rounded-none"
|
|
778
922
|
}, {
|
|
779
|
-
overlay:
|
|
780
|
-
|
|
781
|
-
default:
|
|
782
|
-
(
|
|
783
|
-
key:
|
|
784
|
-
disabled:
|
|
923
|
+
overlay: _(() => [
|
|
924
|
+
F(l(Te), null, {
|
|
925
|
+
default: _(() => [
|
|
926
|
+
(u(!0), x(U, null, j(d.children, (n) => (u(), k(l($e), {
|
|
927
|
+
key: n.key,
|
|
928
|
+
disabled: l(W)(n)
|
|
785
929
|
}, {
|
|
786
|
-
default:
|
|
787
|
-
|
|
930
|
+
default: _(() => [
|
|
931
|
+
Y(E(n.label), 1)
|
|
788
932
|
]),
|
|
789
933
|
_: 2
|
|
790
934
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -792,20 +936,20 @@ const Zl = async (d, l) => {
|
|
|
792
936
|
_: 2
|
|
793
937
|
}, 1024)
|
|
794
938
|
]),
|
|
795
|
-
default:
|
|
796
|
-
|
|
797
|
-
class:
|
|
939
|
+
default: _(() => [
|
|
940
|
+
F(l(ee), {
|
|
941
|
+
class: R([
|
|
798
942
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
799
943
|
v === 0 ? "rounded-l-[5px]" : ""
|
|
800
944
|
]),
|
|
801
|
-
disabled:
|
|
802
|
-
tiptext:
|
|
803
|
-
icon:
|
|
945
|
+
disabled: l(W)(d),
|
|
946
|
+
tiptext: d.label,
|
|
947
|
+
icon: d.icon,
|
|
804
948
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
805
|
-
onClick: (
|
|
949
|
+
onClick: (n) => l(X)(d, l(e).page, l(e))
|
|
806
950
|
}, {
|
|
807
|
-
default:
|
|
808
|
-
|
|
951
|
+
default: _(() => [
|
|
952
|
+
F(l(V), {
|
|
809
953
|
icon: "icon-down-arrow",
|
|
810
954
|
class: "w-[12px] h-[12px]"
|
|
811
955
|
})
|
|
@@ -814,112 +958,112 @@ const Zl = async (d, l) => {
|
|
|
814
958
|
}, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
|
|
815
959
|
]),
|
|
816
960
|
_: 2
|
|
817
|
-
}, 1024)) :
|
|
961
|
+
}, 1024)) : C("", !0)
|
|
818
962
|
], 64))), 128))
|
|
819
963
|
]));
|
|
820
964
|
}
|
|
821
|
-
}),
|
|
965
|
+
}), za = { class: "flex justify-between mb-[10px]" }, Oa = { key: 1 }, Ka = 3, Ct = /* @__PURE__ */ L({
|
|
822
966
|
__name: "index",
|
|
823
967
|
props: {
|
|
824
968
|
gridCtrl: {},
|
|
825
969
|
editorCtrl: {}
|
|
826
970
|
},
|
|
827
|
-
setup(
|
|
828
|
-
const
|
|
971
|
+
setup(o) {
|
|
972
|
+
const a = o, e = a.gridCtrl, t = e.page, s = a.editorCtrl, c = K(() => fe.currentRoute.value.path), r = [
|
|
829
973
|
{
|
|
830
974
|
key: "New",
|
|
831
|
-
label:
|
|
975
|
+
label: w("webui.common.add"),
|
|
832
976
|
type: "primary",
|
|
833
977
|
icon: "icon-new",
|
|
834
978
|
danger: !0,
|
|
835
979
|
role: ["Super", "Admin"],
|
|
836
980
|
permit: ":new",
|
|
837
981
|
// 默认仅受权限码控制
|
|
838
|
-
click: () =>
|
|
982
|
+
click: () => Et(s)
|
|
839
983
|
}
|
|
840
|
-
],
|
|
841
|
-
return
|
|
984
|
+
], p = T([]), i = T([]);
|
|
985
|
+
return M(
|
|
842
986
|
() => {
|
|
843
|
-
var
|
|
844
|
-
return (
|
|
987
|
+
var d;
|
|
988
|
+
return (d = e.buttons) == null ? void 0 : d.value;
|
|
845
989
|
},
|
|
846
990
|
() => {
|
|
847
|
-
var
|
|
848
|
-
const { buttons:
|
|
849
|
-
|
|
850
|
-
e.flat !== void 0 ? e.flat :
|
|
851
|
-
(
|
|
991
|
+
var n;
|
|
992
|
+
const { buttons: d, menus: v } = De(
|
|
993
|
+
r,
|
|
994
|
+
e.flat !== void 0 ? e.flat : Ka,
|
|
995
|
+
(n = e.buttons) == null ? void 0 : n.value
|
|
852
996
|
);
|
|
853
|
-
|
|
997
|
+
p.value.splice(0, p.value.length, ...d), i.value.splice(0, i.value.length, ...v);
|
|
854
998
|
},
|
|
855
999
|
{
|
|
856
1000
|
deep: !0,
|
|
857
1001
|
immediate: !0
|
|
858
1002
|
}
|
|
859
|
-
), (
|
|
860
|
-
const
|
|
861
|
-
return
|
|
862
|
-
|
|
863
|
-
default:
|
|
864
|
-
(
|
|
1003
|
+
), (d, v) => {
|
|
1004
|
+
const n = ne("auth");
|
|
1005
|
+
return u(), x("div", za, [
|
|
1006
|
+
F(l(pe), null, {
|
|
1007
|
+
default: _(() => [
|
|
1008
|
+
(u(!0), x(U, null, j(p.value, (m) => Q((u(), k(l(ee), {
|
|
865
1009
|
key: m.key,
|
|
866
1010
|
type: m.type,
|
|
867
1011
|
danger: m.danger,
|
|
868
|
-
disabled:
|
|
1012
|
+
disabled: l(W)(m),
|
|
869
1013
|
icon: m.icon,
|
|
870
|
-
onClick: (
|
|
1014
|
+
onClick: (f) => l(X)(m, l(t), l(e))
|
|
871
1015
|
}, {
|
|
872
|
-
default:
|
|
873
|
-
|
|
1016
|
+
default: _(() => [
|
|
1017
|
+
Y(E(m.label), 1)
|
|
874
1018
|
]),
|
|
875
1019
|
_: 2
|
|
876
1020
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
877
|
-
[
|
|
1021
|
+
[n, { url: c.value, role: m.role, permit: m.permit }]
|
|
878
1022
|
])), 128)),
|
|
879
|
-
|
|
880
|
-
overlay:
|
|
881
|
-
|
|
882
|
-
default:
|
|
883
|
-
(
|
|
1023
|
+
i.value.length > 0 ? (u(), k(l(Re), { key: 0 }, {
|
|
1024
|
+
overlay: _(() => [
|
|
1025
|
+
F(l(Te), null, {
|
|
1026
|
+
default: _(() => [
|
|
1027
|
+
(u(!0), x(U, null, j(i.value, (m) => Q((u(), k(l($e), {
|
|
884
1028
|
key: m.key,
|
|
885
|
-
disabled:
|
|
886
|
-
onClick: (
|
|
1029
|
+
disabled: l(W)(m),
|
|
1030
|
+
onClick: (f) => l(X)(m, l(t), l(e))
|
|
887
1031
|
}, {
|
|
888
|
-
default:
|
|
889
|
-
|
|
1032
|
+
default: _(() => [
|
|
1033
|
+
Y(E(m.label), 1)
|
|
890
1034
|
]),
|
|
891
1035
|
_: 2
|
|
892
1036
|
}, 1032, ["disabled", "onClick"])), [
|
|
893
|
-
[
|
|
1037
|
+
[n, { url: c.value, role: m.role, permit: m.permit }]
|
|
894
1038
|
])), 128))
|
|
895
1039
|
]),
|
|
896
1040
|
_: 1
|
|
897
1041
|
})
|
|
898
1042
|
]),
|
|
899
|
-
default:
|
|
900
|
-
|
|
901
|
-
default:
|
|
902
|
-
|
|
1043
|
+
default: _(() => [
|
|
1044
|
+
F(l(ee), null, {
|
|
1045
|
+
default: _(() => [
|
|
1046
|
+
Y(E(l(w)("webui.common.moreActions")), 1)
|
|
903
1047
|
]),
|
|
904
1048
|
_: 1
|
|
905
1049
|
})
|
|
906
1050
|
]),
|
|
907
1051
|
_: 1
|
|
908
|
-
})) :
|
|
909
|
-
|
|
1052
|
+
})) : C("", !0),
|
|
1053
|
+
p.value.length === 0 && i.value.length === 0 ? (u(), x("span", Oa)) : C("", !0)
|
|
910
1054
|
]),
|
|
911
1055
|
_: 1
|
|
912
1056
|
}),
|
|
913
|
-
|
|
914
|
-
default:
|
|
915
|
-
(
|
|
1057
|
+
F(l(pe), { class: "mr-1" }, {
|
|
1058
|
+
default: _(() => [
|
|
1059
|
+
(u(), k(nt(Aa), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
|
|
916
1060
|
]),
|
|
917
1061
|
_: 1
|
|
918
1062
|
})
|
|
919
1063
|
]);
|
|
920
1064
|
};
|
|
921
1065
|
}
|
|
922
|
-
}),
|
|
1066
|
+
}), ja = { class: "flex items-center justify-between" }, Va = { class: "flex items-center space-x-2" }, wr = /* @__PURE__ */ L({
|
|
923
1067
|
inheritAttrs: !1,
|
|
924
1068
|
__name: "index",
|
|
925
1069
|
props: {
|
|
@@ -931,93 +1075,93 @@ const Zl = async (d, l) => {
|
|
|
931
1075
|
titleField: { default: "Title" },
|
|
932
1076
|
statusDisabled: {}
|
|
933
1077
|
},
|
|
934
|
-
setup(
|
|
935
|
-
const
|
|
1078
|
+
setup(o) {
|
|
1079
|
+
const a = o, e = de(), t = a.gridCtrl, s = K(() => fe.currentRoute.value.path);
|
|
936
1080
|
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
937
|
-
const
|
|
1081
|
+
const c = T(t.pageSize.value), r = T(t.pageNo.value), p = T([]), i = T({
|
|
938
1082
|
total: 0,
|
|
939
1083
|
current: 1,
|
|
940
|
-
pageSize:
|
|
941
|
-
showTotal: (v) =>
|
|
942
|
-
onChange: (v,
|
|
943
|
-
|
|
1084
|
+
pageSize: c.value,
|
|
1085
|
+
showTotal: (v) => w("webui.common.total", [v]),
|
|
1086
|
+
onChange: (v, n) => {
|
|
1087
|
+
i.value !== !1 && (i.value.current = v, i.value.pageSize = n), c.value = n, r.value = v, t && (t.pageNo.value = v, t.pageSize.value = n, t.remotePage && be(t));
|
|
944
1088
|
},
|
|
945
|
-
...
|
|
1089
|
+
...a.pagination === !1 ? {} : a.pagination
|
|
946
1090
|
});
|
|
947
|
-
|
|
1091
|
+
a.pagination === !1 && (i.value = !1), M(
|
|
948
1092
|
() => t.tableData.value,
|
|
949
1093
|
(v) => {
|
|
950
|
-
v && (
|
|
1094
|
+
v && (p.value = v, i.value !== !1 && (i.value.total = t.total.value ?? 0, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
|
|
951
1095
|
},
|
|
952
1096
|
{ immediate: !0 }
|
|
953
|
-
),
|
|
954
|
-
() =>
|
|
1097
|
+
), M(
|
|
1098
|
+
() => a.listData,
|
|
955
1099
|
(v) => {
|
|
956
|
-
v && (
|
|
1100
|
+
v && (p.value = v, i.value !== !1 && (i.value.total = v.length, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
|
|
957
1101
|
},
|
|
958
1102
|
{ immediate: !0 }
|
|
959
1103
|
);
|
|
960
|
-
const
|
|
961
|
-
return
|
|
962
|
-
|
|
963
|
-
}),
|
|
964
|
-
var v,
|
|
965
|
-
t.page && ((v = t.gridUrl) != null && v.url) && (((
|
|
966
|
-
|
|
1104
|
+
const d = T(!1);
|
|
1105
|
+
return Se(() => {
|
|
1106
|
+
d.value && t && t.autoload && (t.reload.value = !0);
|
|
1107
|
+
}), Ce(oe.GridControl, t), le(async () => {
|
|
1108
|
+
var v, n, m, f, y;
|
|
1109
|
+
t.page && ((v = t.gridUrl) != null && v.url) && (((n = t.gridUrl) == null ? void 0 : n.url) === ((m = t.page.urls.list) == null ? void 0 : m.url) && (t.remotePage = !1), ((f = t.gridUrl) == null ? void 0 : f.url) === ((y = t.page.urls.find) == null ? void 0 : y.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, i.value !== !1 && (i.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await be(t)).rows : p.value = await at(t)), setTimeout(() => {
|
|
1110
|
+
d.value = !0;
|
|
967
1111
|
}, 50);
|
|
968
|
-
}), (v,
|
|
969
|
-
var
|
|
1112
|
+
}), (v, n) => {
|
|
1113
|
+
var f, y;
|
|
970
1114
|
const m = ne("auth");
|
|
971
|
-
return
|
|
972
|
-
(
|
|
1115
|
+
return u(), x(U, null, [
|
|
1116
|
+
(f = l(t).buttons) != null && f.value.length || (y = l(t).tools) != null && y.length ? (u(), k(Ct, {
|
|
973
1117
|
key: 0,
|
|
974
|
-
"grid-ctrl":
|
|
975
|
-
"editor-ctrl":
|
|
976
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
977
|
-
|
|
1118
|
+
"grid-ctrl": l(t),
|
|
1119
|
+
"editor-ctrl": l(t).editor
|
|
1120
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
|
|
1121
|
+
d.value ? (u(), k(l(aa), N({
|
|
978
1122
|
key: 1,
|
|
979
1123
|
class: "w-full min-h-[480px]",
|
|
980
|
-
grid:
|
|
981
|
-
"data-source":
|
|
982
|
-
loading:
|
|
983
|
-
pagination:
|
|
984
|
-
},
|
|
985
|
-
renderItem:
|
|
986
|
-
|
|
987
|
-
default:
|
|
988
|
-
|
|
1124
|
+
grid: a.grid,
|
|
1125
|
+
"data-source": p.value,
|
|
1126
|
+
loading: l(t).isGridLoading.value,
|
|
1127
|
+
pagination: i.value
|
|
1128
|
+
}, l(e)), {
|
|
1129
|
+
renderItem: _(({ item: S }) => [
|
|
1130
|
+
F(l(la), { class: "!m-0 !p-0" }, {
|
|
1131
|
+
default: _(() => [
|
|
1132
|
+
F(l(ra), {
|
|
989
1133
|
class: "!m-0",
|
|
990
1134
|
"head-style": { fontSize: "14px", padding: "8px", minHeight: "36px", height: "36px" },
|
|
991
1135
|
"body-style": { padding: "4px" }
|
|
992
1136
|
}, {
|
|
993
|
-
title:
|
|
994
|
-
I("div",
|
|
995
|
-
I("span", null,
|
|
996
|
-
I("div",
|
|
997
|
-
Q(
|
|
998
|
-
checked:
|
|
999
|
-
"onUpdate:checked": (b) =>
|
|
1000
|
-
disabled: v.statusDisabled ? v.statusDisabled(
|
|
1001
|
-
data:
|
|
1002
|
-
onClick: (b) =>
|
|
1137
|
+
title: _(() => [
|
|
1138
|
+
I("div", ja, [
|
|
1139
|
+
I("span", null, E(S[a.titleField]), 1),
|
|
1140
|
+
I("div", Va, [
|
|
1141
|
+
Q(F(lt, {
|
|
1142
|
+
checked: S[l(t).statusKey],
|
|
1143
|
+
"onUpdate:checked": (b) => S[l(t).statusKey] = b,
|
|
1144
|
+
disabled: v.statusDisabled ? v.statusDisabled(S) : !1,
|
|
1145
|
+
data: l(ze).EnableDisable,
|
|
1146
|
+
onClick: (b) => l(rt)(l(t), S),
|
|
1003
1147
|
size: "small",
|
|
1004
|
-
class:
|
|
1148
|
+
class: R([
|
|
1005
1149
|
"relative mt-[3px] transform scale-[1.1]",
|
|
1006
|
-
v.statusDisabled && v.statusDisabled(
|
|
1150
|
+
v.statusDisabled && v.statusDisabled(S) ? "cursor-not-allowed disabled" : ""
|
|
1007
1151
|
]),
|
|
1008
|
-
loading:
|
|
1152
|
+
loading: S.isLoading
|
|
1009
1153
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"]), [
|
|
1010
|
-
[m, { url:
|
|
1154
|
+
[m, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1011
1155
|
]),
|
|
1012
|
-
|
|
1013
|
-
record:
|
|
1014
|
-
"grid-ctrl":
|
|
1156
|
+
F(Ra, {
|
|
1157
|
+
record: S,
|
|
1158
|
+
"grid-ctrl": l(t)
|
|
1015
1159
|
}, null, 8, ["record", "grid-ctrl"])
|
|
1016
1160
|
])
|
|
1017
1161
|
])
|
|
1018
1162
|
]),
|
|
1019
|
-
default:
|
|
1020
|
-
|
|
1163
|
+
default: _(() => [
|
|
1164
|
+
O(v.$slots, "cardContent", { record: S })
|
|
1021
1165
|
]),
|
|
1022
1166
|
_: 2
|
|
1023
1167
|
}, 1024)
|
|
@@ -1026,14 +1170,14 @@ const Zl = async (d, l) => {
|
|
|
1026
1170
|
}, 1024)
|
|
1027
1171
|
]),
|
|
1028
1172
|
_: 3
|
|
1029
|
-
}, 16, ["grid", "data-source", "loading", "pagination"])) :
|
|
1173
|
+
}, 16, ["grid", "data-source", "loading", "pagination"])) : C("", !0)
|
|
1030
1174
|
], 64);
|
|
1031
1175
|
};
|
|
1032
1176
|
}
|
|
1033
|
-
}),
|
|
1177
|
+
}), Ya = { class: "w-1/3 relative mb-1" }, Ga = { class: "flex items-center w-[90%]" }, Wa = { class: "flex-grow pl-1" }, qa = {
|
|
1034
1178
|
key: 0,
|
|
1035
1179
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
1036
|
-
},
|
|
1180
|
+
}, Ue = /* @__PURE__ */ L({
|
|
1037
1181
|
inheritAttrs: !1,
|
|
1038
1182
|
__name: "searchItem",
|
|
1039
1183
|
props: {
|
|
@@ -1041,45 +1185,45 @@ const Zl = async (d, l) => {
|
|
|
1041
1185
|
width: {},
|
|
1042
1186
|
rule: {}
|
|
1043
1187
|
},
|
|
1044
|
-
setup(
|
|
1045
|
-
const
|
|
1046
|
-
var
|
|
1047
|
-
if (!
|
|
1188
|
+
setup(o) {
|
|
1189
|
+
const a = o, e = de(), t = xe(oe.EditorControl, void 0), s = Je(a, t), c = K(() => {
|
|
1190
|
+
var p;
|
|
1191
|
+
if (!a.rule)
|
|
1048
1192
|
return !1;
|
|
1049
|
-
const
|
|
1050
|
-
return
|
|
1193
|
+
const r = Xe(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
|
|
1194
|
+
return r ? (r.required || (s.value.errClass = "", s.value.msg = ""), r.required ?? !0) : (ae.error(w("webui.components.content.searchItem.validationRuleNotFound", { label: a.label, rule: a.rule })), s.value.errClass = "text-[#ff4d4f]", s.value.msg = w("webui.components.content.searchItem.validationRuleNotFound", { label: a.label, rule: a.rule }), !0);
|
|
1051
1195
|
});
|
|
1052
|
-
return (
|
|
1053
|
-
|
|
1054
|
-
required:
|
|
1196
|
+
return (r, p) => (u(), x("div", Ya, [
|
|
1197
|
+
F(l(dt), N({
|
|
1198
|
+
required: c.value,
|
|
1055
1199
|
class: "w-[90%] relative"
|
|
1056
|
-
},
|
|
1057
|
-
class: [
|
|
1200
|
+
}, l(e), {
|
|
1201
|
+
class: [r.rule ? "" : "mb-3", r.width],
|
|
1058
1202
|
labelCol: { span: 6 }
|
|
1059
|
-
}),
|
|
1060
|
-
default:
|
|
1061
|
-
I("div",
|
|
1062
|
-
I("div",
|
|
1063
|
-
|
|
1203
|
+
}), it({
|
|
1204
|
+
default: _(() => [
|
|
1205
|
+
I("div", Ga, [
|
|
1206
|
+
I("div", Wa, [
|
|
1207
|
+
O(r.$slots, "default")
|
|
1064
1208
|
])
|
|
1065
1209
|
])
|
|
1066
1210
|
]),
|
|
1067
1211
|
_: 2
|
|
1068
1212
|
}, [
|
|
1069
|
-
|
|
1213
|
+
r.label ? {
|
|
1070
1214
|
name: "label",
|
|
1071
|
-
fn:
|
|
1215
|
+
fn: _(() => [
|
|
1072
1216
|
I("span", {
|
|
1073
|
-
class:
|
|
1074
|
-
},
|
|
1217
|
+
class: R([l(s).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
1218
|
+
}, E(r.label), 3)
|
|
1075
1219
|
]),
|
|
1076
1220
|
key: "0"
|
|
1077
1221
|
} : void 0
|
|
1078
1222
|
]), 1040, ["required", "class"]),
|
|
1079
|
-
|
|
1223
|
+
l(s).msg ? (u(), x("span", qa, E(l(s).msg), 1)) : C("", !0)
|
|
1080
1224
|
]));
|
|
1081
1225
|
}
|
|
1082
|
-
}),
|
|
1226
|
+
}), _r = /* @__PURE__ */ L({
|
|
1083
1227
|
__name: "index",
|
|
1084
1228
|
props: {
|
|
1085
1229
|
search: {},
|
|
@@ -1087,59 +1231,59 @@ const Zl = async (d, l) => {
|
|
|
1087
1231
|
likeFields: {}
|
|
1088
1232
|
},
|
|
1089
1233
|
emits: ["update:search", "onsearch", "onreset"],
|
|
1090
|
-
setup(
|
|
1091
|
-
const e =
|
|
1092
|
-
let
|
|
1093
|
-
for (let
|
|
1094
|
-
typeof
|
|
1095
|
-
return
|
|
1096
|
-
},
|
|
1097
|
-
|
|
1234
|
+
setup(o, { emit: a }) {
|
|
1235
|
+
const e = o, t = a, s = T(0), c = T(0), r = T(0), p = (f) => {
|
|
1236
|
+
let y = 0;
|
|
1237
|
+
for (let S = 0; S < f.length; S++)
|
|
1238
|
+
typeof f[S].type == "object" && y++;
|
|
1239
|
+
return y;
|
|
1240
|
+
}, i = Ht(), d = () => {
|
|
1241
|
+
c.value = 0, r.value = 0, i.default && (c.value = p(i.default({}))), e.gridCtrl && e.gridCtrl.searchBar && i.control && (r.value = p(i.control({}))), s.value = 2 - (c.value + r.value) % 3;
|
|
1098
1242
|
};
|
|
1099
|
-
|
|
1243
|
+
M(
|
|
1100
1244
|
() => {
|
|
1101
|
-
var
|
|
1102
|
-
return (
|
|
1245
|
+
var f;
|
|
1246
|
+
return (f = e.gridCtrl) == null ? void 0 : f.searchBar;
|
|
1103
1247
|
},
|
|
1104
1248
|
() => {
|
|
1105
|
-
|
|
1249
|
+
d();
|
|
1106
1250
|
}
|
|
1107
1251
|
);
|
|
1108
1252
|
const v = JSON.parse(JSON.stringify(e.search));
|
|
1109
|
-
|
|
1110
|
-
var
|
|
1111
|
-
|
|
1112
|
-
let
|
|
1253
|
+
le(() => {
|
|
1254
|
+
var y;
|
|
1255
|
+
d();
|
|
1256
|
+
let f = { ...e.search };
|
|
1113
1257
|
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
1114
1258
|
...e.gridCtrl.gridQuery,
|
|
1115
1259
|
Query: {
|
|
1116
|
-
...(
|
|
1117
|
-
...
|
|
1260
|
+
...(y = e.gridCtrl.gridQuery) == null ? void 0 : y.Query,
|
|
1261
|
+
...f
|
|
1118
1262
|
}
|
|
1119
1263
|
});
|
|
1120
1264
|
});
|
|
1121
|
-
const
|
|
1122
|
-
var
|
|
1123
|
-
let
|
|
1265
|
+
const n = () => {
|
|
1266
|
+
var y;
|
|
1267
|
+
let f = { ...e.search };
|
|
1124
1268
|
if (e.likeFields)
|
|
1125
|
-
for (const
|
|
1126
|
-
|
|
1269
|
+
for (const S of e.likeFields)
|
|
1270
|
+
f[S] && (f[S] = { $like: "%" + f[S] + "%" });
|
|
1127
1271
|
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
1128
1272
|
...e.gridCtrl.gridQuery,
|
|
1129
1273
|
Query: {
|
|
1130
|
-
...(
|
|
1131
|
-
...
|
|
1274
|
+
...(y = e.gridCtrl.gridQuery) == null ? void 0 : y.Query,
|
|
1275
|
+
...f
|
|
1132
1276
|
}
|
|
1133
|
-
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch",
|
|
1277
|
+
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", f);
|
|
1134
1278
|
}, m = () => {
|
|
1135
|
-
const
|
|
1136
|
-
for (const
|
|
1137
|
-
|
|
1138
|
-
t("update:search",
|
|
1279
|
+
const f = JSON.parse(JSON.stringify(v));
|
|
1280
|
+
for (const y in e.search)
|
|
1281
|
+
f[y] === void 0 && (f[y] = void 0);
|
|
1282
|
+
t("update:search", f), t("onreset");
|
|
1139
1283
|
};
|
|
1140
|
-
return (
|
|
1141
|
-
const
|
|
1142
|
-
return
|
|
1284
|
+
return (f, y) => {
|
|
1285
|
+
const S = ne("submit");
|
|
1286
|
+
return c.value + r.value > 0 ? Q((u(), k(l(ut), {
|
|
1143
1287
|
key: 0,
|
|
1144
1288
|
"label-col": { flex: "60px" },
|
|
1145
1289
|
style: {
|
|
@@ -1148,43 +1292,43 @@ const Zl = async (d, l) => {
|
|
|
1148
1292
|
},
|
|
1149
1293
|
class: "flex mb-[10px]"
|
|
1150
1294
|
}, {
|
|
1151
|
-
default:
|
|
1152
|
-
var b,
|
|
1295
|
+
default: _(() => {
|
|
1296
|
+
var b, $;
|
|
1153
1297
|
return [
|
|
1154
|
-
|
|
1155
|
-
(b =
|
|
1156
|
-
|
|
1298
|
+
O(f.$slots, "default"),
|
|
1299
|
+
(b = f.gridCtrl) != null && b.searchBar ? O(f.$slots, "control", { key: 0 }) : C("", !0),
|
|
1300
|
+
s.value >= 1 ? (u(), k(Ue, {
|
|
1157
1301
|
key: 1,
|
|
1158
1302
|
class: "w-1/3"
|
|
1159
|
-
})) :
|
|
1160
|
-
|
|
1303
|
+
})) : C("", !0),
|
|
1304
|
+
s.value >= 2 ? (u(), k(Ue, {
|
|
1161
1305
|
key: 2,
|
|
1162
1306
|
class: "w-1/3"
|
|
1163
|
-
})) :
|
|
1164
|
-
|
|
1307
|
+
})) : C("", !0),
|
|
1308
|
+
c.value || ($ = f.gridCtrl) != null && $.searchBar ? (u(), k(Ue, {
|
|
1165
1309
|
key: 3,
|
|
1166
1310
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
1167
1311
|
"wrapper-col": { flex: "auto" }
|
|
1168
1312
|
}, {
|
|
1169
|
-
default:
|
|
1170
|
-
|
|
1171
|
-
default:
|
|
1172
|
-
|
|
1313
|
+
default: _(() => [
|
|
1314
|
+
F(l(pe), null, {
|
|
1315
|
+
default: _(() => [
|
|
1316
|
+
F(l(ee), {
|
|
1173
1317
|
type: "primary",
|
|
1174
|
-
onClick:
|
|
1318
|
+
onClick: n,
|
|
1175
1319
|
icon: "icon-search"
|
|
1176
1320
|
}, {
|
|
1177
|
-
default:
|
|
1178
|
-
|
|
1321
|
+
default: _(() => [
|
|
1322
|
+
Y(E(l(w)("webui.common.search")), 1)
|
|
1179
1323
|
]),
|
|
1180
1324
|
_: 1
|
|
1181
1325
|
}),
|
|
1182
|
-
|
|
1326
|
+
F(l(ee), {
|
|
1183
1327
|
onClick: m,
|
|
1184
1328
|
icon: "icon-reset"
|
|
1185
1329
|
}, {
|
|
1186
|
-
default:
|
|
1187
|
-
|
|
1330
|
+
default: _(() => [
|
|
1331
|
+
Y(E(l(w)("webui.common.reset")), 1)
|
|
1188
1332
|
]),
|
|
1189
1333
|
_: 1
|
|
1190
1334
|
})
|
|
@@ -1193,145 +1337,145 @@ const Zl = async (d, l) => {
|
|
|
1193
1337
|
})
|
|
1194
1338
|
]),
|
|
1195
1339
|
_: 1
|
|
1196
|
-
})) :
|
|
1340
|
+
})) : C("", !0)
|
|
1197
1341
|
];
|
|
1198
1342
|
}),
|
|
1199
1343
|
_: 3
|
|
1200
1344
|
})), [
|
|
1201
|
-
[
|
|
1202
|
-
]) :
|
|
1345
|
+
[S, n]
|
|
1346
|
+
]) : C("", !0);
|
|
1203
1347
|
};
|
|
1204
1348
|
}
|
|
1205
|
-
}),
|
|
1349
|
+
}), Ha = /* @__PURE__ */ L({
|
|
1206
1350
|
__name: "tableOperate",
|
|
1207
1351
|
props: {
|
|
1208
1352
|
record: {},
|
|
1209
1353
|
gridCtrl: {}
|
|
1210
1354
|
},
|
|
1211
|
-
setup(
|
|
1212
|
-
const
|
|
1355
|
+
setup(o) {
|
|
1356
|
+
const a = o, e = a.gridCtrl, t = K(() => fe.currentRoute.value.path), s = [
|
|
1213
1357
|
{
|
|
1214
1358
|
key: "Edit",
|
|
1215
|
-
label:
|
|
1359
|
+
label: w("webui.common.edit"),
|
|
1216
1360
|
type: "primary",
|
|
1217
1361
|
visible: !0,
|
|
1218
1362
|
role: ["Super", "Admin"],
|
|
1219
1363
|
permit: ":edit",
|
|
1220
|
-
click: () =>
|
|
1364
|
+
click: () => Ze(e, a.record)
|
|
1221
1365
|
},
|
|
1222
1366
|
{
|
|
1223
1367
|
key: "Delete",
|
|
1224
|
-
label:
|
|
1368
|
+
label: w("webui.common.delete"),
|
|
1225
1369
|
type: "primary",
|
|
1226
1370
|
visible: !0,
|
|
1227
1371
|
danger: !0,
|
|
1228
1372
|
role: ["Super", "Admin"],
|
|
1229
1373
|
permit: ":delete",
|
|
1230
1374
|
confirm: !0,
|
|
1231
|
-
confirmText:
|
|
1232
|
-
click: () =>
|
|
1375
|
+
confirmText: w("webui.components.content.table.confirmDelete"),
|
|
1376
|
+
click: () => et(e, a.record)
|
|
1233
1377
|
}
|
|
1234
|
-
], { buttons:
|
|
1235
|
-
if (typeof
|
|
1236
|
-
return
|
|
1237
|
-
if (typeof
|
|
1238
|
-
return W(
|
|
1239
|
-
if (
|
|
1240
|
-
switch (
|
|
1378
|
+
], { buttons: c, menus: r } = De(s, 0, e.operates), p = (i) => {
|
|
1379
|
+
if (typeof i.disabled == "boolean")
|
|
1380
|
+
return i.disabled;
|
|
1381
|
+
if (typeof i.disabled == "function")
|
|
1382
|
+
return W(i, a.record) ?? !1;
|
|
1383
|
+
if (a.record.hasOwnProperty(e.statusKey))
|
|
1384
|
+
switch (i.key) {
|
|
1241
1385
|
case "Edit":
|
|
1242
|
-
return !
|
|
1386
|
+
return !a.record[e.statusKey];
|
|
1243
1387
|
// 启用时可编辑,停用时不可编辑
|
|
1244
1388
|
case "Delete":
|
|
1245
|
-
return !!
|
|
1389
|
+
return !!a.record[e.statusKey];
|
|
1246
1390
|
}
|
|
1247
1391
|
return !1;
|
|
1248
1392
|
};
|
|
1249
|
-
return (
|
|
1393
|
+
return (i, d) => {
|
|
1250
1394
|
const v = ne("auth");
|
|
1251
|
-
return
|
|
1395
|
+
return u(), k(l(we), { theme: {
|
|
1252
1396
|
token: {
|
|
1253
1397
|
fontSize: 13
|
|
1254
1398
|
}
|
|
1255
1399
|
} }, {
|
|
1256
|
-
default:
|
|
1257
|
-
|
|
1258
|
-
default:
|
|
1259
|
-
(
|
|
1260
|
-
key:
|
|
1400
|
+
default: _(() => [
|
|
1401
|
+
F(l(pe), null, {
|
|
1402
|
+
default: _(() => [
|
|
1403
|
+
(u(!0), x(U, null, j(l(c), (n) => (u(), x(U, {
|
|
1404
|
+
key: n.key
|
|
1261
1405
|
}, [
|
|
1262
|
-
|
|
1406
|
+
l(J)(n, a.record) ? (u(), k(l(pt), {
|
|
1263
1407
|
key: 0,
|
|
1264
|
-
disabled:
|
|
1265
|
-
cancelText:
|
|
1266
|
-
okText:
|
|
1267
|
-
title:
|
|
1408
|
+
disabled: p(n) || !n.confirm,
|
|
1409
|
+
cancelText: l(w)("webui.common.no"),
|
|
1410
|
+
okText: l(w)("webui.common.yes"),
|
|
1411
|
+
title: n.confirmText,
|
|
1268
1412
|
okButtonProps: { size: "small" },
|
|
1269
1413
|
cancelButtonProps: { size: "small" },
|
|
1270
|
-
onConfirm: (m) =>
|
|
1414
|
+
onConfirm: (m) => l(X)(n, l(e).page, l(e), a.record, !0)
|
|
1271
1415
|
}, {
|
|
1272
|
-
default:
|
|
1273
|
-
|
|
1274
|
-
key:
|
|
1275
|
-
type:
|
|
1276
|
-
danger:
|
|
1277
|
-
disabled:
|
|
1278
|
-
onClick: (m) =>
|
|
1416
|
+
default: _(() => [
|
|
1417
|
+
l(J)(n, a.record) ? Q((u(), k(l(vt), {
|
|
1418
|
+
key: n.key,
|
|
1419
|
+
type: n.type ?? "text",
|
|
1420
|
+
danger: n.danger,
|
|
1421
|
+
disabled: p(n),
|
|
1422
|
+
onClick: (m) => l(X)(n, l(e).page, l(e), a.record),
|
|
1279
1423
|
size: "small",
|
|
1280
|
-
style:
|
|
1281
|
-
padding:
|
|
1424
|
+
style: je({
|
|
1425
|
+
padding: n.type ?? "0px 4px"
|
|
1282
1426
|
})
|
|
1283
1427
|
}, {
|
|
1284
|
-
default:
|
|
1285
|
-
|
|
1428
|
+
default: _(() => [
|
|
1429
|
+
Y(E(n.label), 1)
|
|
1286
1430
|
]),
|
|
1287
1431
|
_: 2
|
|
1288
1432
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
1289
|
-
[v, { url: t.value, role:
|
|
1290
|
-
]) :
|
|
1433
|
+
[v, { url: t.value, role: n.role, permit: n.permit }]
|
|
1434
|
+
]) : C("", !0)
|
|
1291
1435
|
]),
|
|
1292
1436
|
_: 2
|
|
1293
|
-
}, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) :
|
|
1437
|
+
}, 1032, ["disabled", "cancelText", "okText", "title", "onConfirm"])) : C("", !0)
|
|
1294
1438
|
], 64))), 128)),
|
|
1295
|
-
|
|
1439
|
+
i.record[l(e).statusKey] == 1 ? (u(), k(l(we), {
|
|
1296
1440
|
key: 0,
|
|
1297
1441
|
autoInsertSpaceInButton: !1
|
|
1298
1442
|
}, {
|
|
1299
|
-
default:
|
|
1300
|
-
|
|
1443
|
+
default: _(() => [
|
|
1444
|
+
l(r).length > 0 ? (u(), k(l(ft), {
|
|
1301
1445
|
key: 0,
|
|
1302
1446
|
size: "small"
|
|
1303
1447
|
}, {
|
|
1304
|
-
overlay:
|
|
1305
|
-
|
|
1306
|
-
default:
|
|
1307
|
-
(
|
|
1308
|
-
key:
|
|
1448
|
+
overlay: _(() => [
|
|
1449
|
+
F(l(Te), null, {
|
|
1450
|
+
default: _(() => [
|
|
1451
|
+
(u(!0), x(U, null, j(l(r), (n) => (u(), x(U, {
|
|
1452
|
+
key: n.key
|
|
1309
1453
|
}, [
|
|
1310
|
-
|
|
1454
|
+
l(J)(n, a.record) ? Q((u(), k(l($e), {
|
|
1311
1455
|
key: 0,
|
|
1312
|
-
disabled:
|
|
1313
|
-
onClick: (m) =>
|
|
1456
|
+
disabled: p(n),
|
|
1457
|
+
onClick: (m) => l(X)(n, l(e).page, l(e), a.record)
|
|
1314
1458
|
}, {
|
|
1315
|
-
default:
|
|
1316
|
-
|
|
1459
|
+
default: _(() => [
|
|
1460
|
+
Y(E(n.label), 1)
|
|
1317
1461
|
]),
|
|
1318
1462
|
_: 2
|
|
1319
1463
|
}, 1032, ["disabled", "onClick"])), [
|
|
1320
|
-
[v, { url: t.value, role:
|
|
1321
|
-
]) :
|
|
1464
|
+
[v, { url: t.value, role: n.role, permit: n.permit }]
|
|
1465
|
+
]) : C("", !0)
|
|
1322
1466
|
], 64))), 128))
|
|
1323
1467
|
]),
|
|
1324
1468
|
_: 1
|
|
1325
1469
|
})
|
|
1326
1470
|
]),
|
|
1327
|
-
default:
|
|
1328
|
-
|
|
1471
|
+
default: _(() => [
|
|
1472
|
+
Y(E(l(w)("webui.components.content.table.more")) + " ", 1)
|
|
1329
1473
|
]),
|
|
1330
1474
|
_: 1
|
|
1331
|
-
})) :
|
|
1475
|
+
})) : C("", !0)
|
|
1332
1476
|
]),
|
|
1333
1477
|
_: 1
|
|
1334
|
-
})) :
|
|
1478
|
+
})) : C("", !0)
|
|
1335
1479
|
]),
|
|
1336
1480
|
_: 1
|
|
1337
1481
|
})
|
|
@@ -1340,7 +1484,7 @@ const Zl = async (d, l) => {
|
|
|
1340
1484
|
});
|
|
1341
1485
|
};
|
|
1342
1486
|
}
|
|
1343
|
-
}),
|
|
1487
|
+
}), kr = /* @__PURE__ */ L({
|
|
1344
1488
|
inheritAttrs: !1,
|
|
1345
1489
|
__name: "index",
|
|
1346
1490
|
props: {
|
|
@@ -1352,215 +1496,215 @@ const Zl = async (d, l) => {
|
|
|
1352
1496
|
scroll: {},
|
|
1353
1497
|
statusDisabled: {}
|
|
1354
1498
|
},
|
|
1355
|
-
setup(
|
|
1356
|
-
const
|
|
1499
|
+
setup(o) {
|
|
1500
|
+
const a = o, e = de(), t = a.gridCtrl, s = K(() => fe.currentRoute.value.path);
|
|
1357
1501
|
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
1358
|
-
const
|
|
1502
|
+
const c = T(t.pageSize.value), r = T(t.pageNo.value), p = T([]), i = T({
|
|
1359
1503
|
total: 0,
|
|
1360
1504
|
current: 1,
|
|
1361
|
-
pageSize:
|
|
1362
|
-
showTotal: (
|
|
1363
|
-
onChange: (
|
|
1364
|
-
|
|
1505
|
+
pageSize: c.value,
|
|
1506
|
+
showTotal: (f) => w("webui.common.total", [f]),
|
|
1507
|
+
onChange: (f, y) => {
|
|
1508
|
+
i.value !== !1 && (i.value.current = f, i.value.pageSize = y), c.value = y, r.value = f, t && (t.pageNo.value = f, t.pageSize.value = y, t.remotePage && be(t));
|
|
1365
1509
|
},
|
|
1366
|
-
...
|
|
1510
|
+
...a.pagination === !1 ? {} : a.pagination
|
|
1367
1511
|
});
|
|
1368
|
-
|
|
1512
|
+
a.pagination === !1 && (i.value = !1), M(
|
|
1369
1513
|
() => t.tableData.value,
|
|
1370
|
-
(
|
|
1371
|
-
|
|
1514
|
+
(f) => {
|
|
1515
|
+
f && (p.value = f, i.value !== !1 && (i.value.total = t.total.value ?? 0, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
|
|
1372
1516
|
},
|
|
1373
1517
|
{ immediate: !0 }
|
|
1374
|
-
),
|
|
1375
|
-
() =>
|
|
1376
|
-
(
|
|
1377
|
-
|
|
1518
|
+
), M(
|
|
1519
|
+
() => a.tableData,
|
|
1520
|
+
(f) => {
|
|
1521
|
+
f && (p.value = f, i.value !== !1 && (i.value.total = f.length, i.value.current = t.pageNo.value ?? 1, i.value.pageSize = t.pageSize.value ?? 10));
|
|
1378
1522
|
},
|
|
1379
1523
|
{ immediate: !0 }
|
|
1380
1524
|
);
|
|
1381
|
-
const
|
|
1382
|
-
onChange: (
|
|
1383
|
-
t && (t.selectKeys.value =
|
|
1525
|
+
const d = T(t.columns.value), v = {
|
|
1526
|
+
onChange: (f, y) => {
|
|
1527
|
+
t && (t.selectKeys.value = f, t.selectRows.value = y);
|
|
1384
1528
|
},
|
|
1385
1529
|
columnWidth: "30px",
|
|
1386
|
-
getCheckboxProps: (
|
|
1387
|
-
disabled:
|
|
1530
|
+
getCheckboxProps: (f) => ({
|
|
1531
|
+
disabled: f.Enabled === 0
|
|
1388
1532
|
}),
|
|
1389
|
-
...
|
|
1390
|
-
},
|
|
1391
|
-
|
|
1533
|
+
...a.rowSelection
|
|
1534
|
+
}, n = T(v);
|
|
1535
|
+
M(
|
|
1392
1536
|
() => t.selectable.value,
|
|
1393
|
-
(
|
|
1394
|
-
t && (
|
|
1537
|
+
(f) => {
|
|
1538
|
+
t && (n.value = f ? v : void 0);
|
|
1395
1539
|
},
|
|
1396
1540
|
{ immediate: !0 }
|
|
1397
|
-
),
|
|
1541
|
+
), M(
|
|
1398
1542
|
() => t.columns.value,
|
|
1399
1543
|
() => {
|
|
1400
|
-
|
|
1544
|
+
d.value = tt(t.columns.value);
|
|
1401
1545
|
},
|
|
1402
1546
|
{ deep: !0, immediate: !0 }
|
|
1403
1547
|
);
|
|
1404
|
-
const m =
|
|
1405
|
-
return
|
|
1548
|
+
const m = T(!1);
|
|
1549
|
+
return Se(() => {
|
|
1406
1550
|
m.value && t && t.autoload && (t.reload.value = !0);
|
|
1407
|
-
}),
|
|
1408
|
-
var
|
|
1409
|
-
t.page && ((
|
|
1551
|
+
}), Ce(oe.GridControl, t), le(async () => {
|
|
1552
|
+
var f, y, S, b, $;
|
|
1553
|
+
t.page && ((f = t.gridUrl) != null && f.url) && (((y = t.gridUrl) == null ? void 0 : y.url) === ((S = t.page.urls.list) == null ? void 0 : S.url) && (t.remotePage = !1), ((b = t.gridUrl) == null ? void 0 : b.url) === (($ = t.page.urls.find) == null ? void 0 : $.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, i.value !== !1 && (i.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await be(t)).rows : p.value = await at(t)), setTimeout(() => {
|
|
1410
1554
|
m.value = !0;
|
|
1411
1555
|
}, 50);
|
|
1412
|
-
}), (
|
|
1413
|
-
var b,
|
|
1414
|
-
const
|
|
1415
|
-
return
|
|
1416
|
-
(b =
|
|
1556
|
+
}), (f, y) => {
|
|
1557
|
+
var b, $;
|
|
1558
|
+
const S = ne("auth");
|
|
1559
|
+
return u(), x(U, null, [
|
|
1560
|
+
(b = l(t).buttons) != null && b.value.length || ($ = l(t).tools) != null && $.length ? (u(), k(Ct, {
|
|
1417
1561
|
key: 0,
|
|
1418
|
-
"grid-ctrl":
|
|
1419
|
-
"editor-ctrl":
|
|
1420
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
1421
|
-
m.value ? (
|
|
1562
|
+
"grid-ctrl": l(t),
|
|
1563
|
+
"editor-ctrl": l(t).editor
|
|
1564
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
|
|
1565
|
+
m.value ? (u(), k(l(mt), N({
|
|
1422
1566
|
key: 1,
|
|
1423
1567
|
class: "w-full min-h-[480px]",
|
|
1424
|
-
"row-key":
|
|
1425
|
-
"data-source":
|
|
1426
|
-
loading:
|
|
1427
|
-
columns:
|
|
1428
|
-
pagination:
|
|
1429
|
-
"row-selection":
|
|
1430
|
-
scroll:
|
|
1431
|
-
size:
|
|
1568
|
+
"row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
|
|
1569
|
+
"data-source": p.value,
|
|
1570
|
+
loading: l(t).isGridLoading.value,
|
|
1571
|
+
columns: d.value,
|
|
1572
|
+
pagination: i.value,
|
|
1573
|
+
"row-selection": n.value,
|
|
1574
|
+
scroll: a.scroll || { x: 700 },
|
|
1575
|
+
size: l(t).tableSize.value,
|
|
1432
1576
|
bordered: ""
|
|
1433
|
-
},
|
|
1434
|
-
bodyCell:
|
|
1435
|
-
var h,
|
|
1577
|
+
}, l(e)), {
|
|
1578
|
+
bodyCell: _((g) => {
|
|
1579
|
+
var h, B;
|
|
1436
1580
|
return [
|
|
1437
|
-
|
|
1581
|
+
O(f.$slots, "bodyCell", {
|
|
1438
1582
|
column: g == null ? void 0 : g.column,
|
|
1439
1583
|
record: g == null ? void 0 : g.record
|
|
1440
1584
|
}),
|
|
1441
|
-
|
|
1585
|
+
l(t) && ((h = g == null ? void 0 : g.column) == null ? void 0 : h.dataIndex) === "enabled" ? Q((u(), k(lt, {
|
|
1442
1586
|
key: 0,
|
|
1443
|
-
checked: g.record[
|
|
1444
|
-
"onUpdate:checked": (
|
|
1445
|
-
disabled:
|
|
1446
|
-
data:
|
|
1447
|
-
onClick: (
|
|
1448
|
-
class:
|
|
1587
|
+
checked: g.record[l(t).statusKey],
|
|
1588
|
+
"onUpdate:checked": (G) => g.record[l(t).statusKey] = G,
|
|
1589
|
+
disabled: f.statusDisabled ? f.statusDisabled(g.record) : !1,
|
|
1590
|
+
data: l(ze).EnableDisable,
|
|
1591
|
+
onClick: (G) => l(rt)(l(t), g.record),
|
|
1592
|
+
class: R([
|
|
1449
1593
|
"w-[58px]",
|
|
1450
|
-
|
|
1594
|
+
f.statusDisabled && f.statusDisabled(g.record) ? "cursor-not-allowed disabled" : ""
|
|
1451
1595
|
]),
|
|
1452
1596
|
loading: g == null ? void 0 : g.record.isLoading
|
|
1453
1597
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
1454
|
-
[
|
|
1455
|
-
]) :
|
|
1456
|
-
|
|
1598
|
+
[S, { url: s.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1599
|
+
]) : C("", !0),
|
|
1600
|
+
l(t) && ((B = g == null ? void 0 : g.column) == null ? void 0 : B.dataIndex) === "operation" ? O(f.$slots, "operate", {
|
|
1457
1601
|
key: 1,
|
|
1458
1602
|
record: g == null ? void 0 : g.record
|
|
1459
1603
|
}, () => [
|
|
1460
|
-
|
|
1604
|
+
F(Ha, {
|
|
1461
1605
|
record: g == null ? void 0 : g.record,
|
|
1462
|
-
"grid-ctrl":
|
|
1606
|
+
"grid-ctrl": l(t)
|
|
1463
1607
|
}, null, 8, ["record", "grid-ctrl"])
|
|
1464
|
-
]) :
|
|
1608
|
+
]) : C("", !0)
|
|
1465
1609
|
];
|
|
1466
1610
|
}),
|
|
1467
1611
|
_: 3
|
|
1468
|
-
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) :
|
|
1612
|
+
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : C("", !0)
|
|
1469
1613
|
], 64);
|
|
1470
1614
|
};
|
|
1471
1615
|
}
|
|
1472
|
-
}),
|
|
1616
|
+
}), Qa = { class: "flex items-center" }, Ja = ["onClick"], Xa = {
|
|
1473
1617
|
key: 1,
|
|
1474
1618
|
class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[8px]"
|
|
1475
|
-
},
|
|
1619
|
+
}, Me = /* @__PURE__ */ L({
|
|
1476
1620
|
__name: "groupTools",
|
|
1477
1621
|
props: {
|
|
1478
1622
|
groupTools: {},
|
|
1479
1623
|
groupClass: {}
|
|
1480
1624
|
},
|
|
1481
|
-
setup(
|
|
1482
|
-
const
|
|
1625
|
+
setup(o) {
|
|
1626
|
+
const a = (e, t) => {
|
|
1483
1627
|
t.mode === "toggle" && (t.selected = t.selected === e.key ? void 0 : e.key), X(e), e.click && typeof e.click == "function" && e.click(e);
|
|
1484
1628
|
};
|
|
1485
|
-
return (e, t) => (
|
|
1486
|
-
(
|
|
1487
|
-
|
|
1629
|
+
return (e, t) => (u(), x("div", Qa, [
|
|
1630
|
+
(u(!0), x(U, null, j(e.groupTools, (s, c) => (u(), x(U, { key: c }, [
|
|
1631
|
+
s.type === "tools" ? (u(), x("div", {
|
|
1488
1632
|
key: 0,
|
|
1489
|
-
class:
|
|
1633
|
+
class: R([
|
|
1490
1634
|
"inline-flex",
|
|
1491
1635
|
e.groupClass || "",
|
|
1492
|
-
|
|
1636
|
+
s.class || ""
|
|
1493
1637
|
])
|
|
1494
1638
|
}, [
|
|
1495
|
-
(
|
|
1496
|
-
var
|
|
1497
|
-
return
|
|
1498
|
-
key:
|
|
1639
|
+
(u(!0), x(U, null, j(s.tools, (r, p) => {
|
|
1640
|
+
var i, d;
|
|
1641
|
+
return u(), x(U, {
|
|
1642
|
+
key: r.key
|
|
1499
1643
|
}, [
|
|
1500
|
-
|
|
1644
|
+
l(J)(r) && !r.children && !r.component ? (u(), k(l(ee), N({
|
|
1501
1645
|
key: 0,
|
|
1502
1646
|
class: [
|
|
1503
|
-
|
|
1647
|
+
s.mode === "toggle" && s.selected === r.key ? "px-[8px] py-[2px] relative border-[#1890ff] bg-[#1890ff] text-white rounded-none" : "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666]",
|
|
1504
1648
|
"hover:z-10 hover:border-[#666]",
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1649
|
+
p === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
|
|
1650
|
+
p === (((i = s.tools) == null ? void 0 : i.length) || 0) - 1 ? "rounded-r-[5px]" : "",
|
|
1651
|
+
r.class || "",
|
|
1652
|
+
r.display === "icon" ? "px-[6px]" : "",
|
|
1653
|
+
r.display === "text" ? "px-[8px]" : ""
|
|
1510
1654
|
],
|
|
1511
|
-
type:
|
|
1512
|
-
danger:
|
|
1513
|
-
disabled:
|
|
1514
|
-
tiptext:
|
|
1515
|
-
}, { ref_for: !0 },
|
|
1516
|
-
onClick: (v) =>
|
|
1655
|
+
type: r.type,
|
|
1656
|
+
danger: r.danger,
|
|
1657
|
+
disabled: l(W)(r),
|
|
1658
|
+
tiptext: r.label
|
|
1659
|
+
}, { ref_for: !0 }, r.props, {
|
|
1660
|
+
onClick: (v) => a(r, s)
|
|
1517
1661
|
}), {
|
|
1518
|
-
default:
|
|
1519
|
-
|
|
1662
|
+
default: _(() => [
|
|
1663
|
+
r.display === "icon" && r.icon ? (u(), k(l(V), N({
|
|
1520
1664
|
key: 0,
|
|
1521
|
-
icon:
|
|
1522
|
-
class: ["w-[18px] h-[18.5px]",
|
|
1523
|
-
}, { ref_for: !0 },
|
|
1524
|
-
|
|
1525
|
-
], 64)) : (
|
|
1526
|
-
|
|
1665
|
+
icon: r.icon,
|
|
1666
|
+
class: ["w-[18px] h-[18.5px]", r.iconClass]
|
|
1667
|
+
}, { ref_for: !0 }, r.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : r.display === "text" && r.label ? (u(), x(U, { key: 1 }, [
|
|
1668
|
+
Y(E(r.label), 1)
|
|
1669
|
+
], 64)) : (u(), x(U, { key: 2 }, [
|
|
1670
|
+
r.icon ? (u(), k(l(V), N({
|
|
1527
1671
|
key: 0,
|
|
1528
|
-
icon:
|
|
1529
|
-
class: ["w-[18px] h-[18.5px] mr-[4px]",
|
|
1530
|
-
}, { ref_for: !0 },
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
], 64)) :
|
|
1672
|
+
icon: r.icon,
|
|
1673
|
+
class: ["w-[18px] h-[18.5px] mr-[4px]", r.iconClass]
|
|
1674
|
+
}, { ref_for: !0 }, r.iconProps, { clickable: "" }), null, 16, ["icon", "class"])) : C("", !0),
|
|
1675
|
+
r.label ? (u(), x(U, { key: 1 }, [
|
|
1676
|
+
Y(E(r.label), 1)
|
|
1677
|
+
], 64)) : C("", !0)
|
|
1534
1678
|
], 64))
|
|
1535
1679
|
]),
|
|
1536
1680
|
_: 2
|
|
1537
|
-
}, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) :
|
|
1681
|
+
}, 1040, ["class", "type", "danger", "disabled", "tiptext", "onClick"])) : r.component ? (u(), x("div", {
|
|
1538
1682
|
key: 1,
|
|
1539
|
-
class:
|
|
1540
|
-
|
|
1683
|
+
class: R([
|
|
1684
|
+
s.mode === "toggle" && s.selected === r.key ? "p-0 relative border-[#1890ff] bg-[#1890ff] text-white rounded-none flex justify-center items-center" : "p-0 relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] flex justify-center items-center",
|
|
1541
1685
|
"hover:z-10 hover:border-[#666]",
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1686
|
+
p === 0 ? "rounded-l-[5px] ml-0" : "-ml-[1px]",
|
|
1687
|
+
p === (((d = s.tools) == null ? void 0 : d.length) || 0) - 1 ? "rounded-r-[5px]" : "",
|
|
1688
|
+
r.class || "",
|
|
1689
|
+
l(W)(r) ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
1546
1690
|
]),
|
|
1547
|
-
onClick: (v) => !
|
|
1691
|
+
onClick: (v) => !l(W)(r) && a(r, s)
|
|
1548
1692
|
}, [
|
|
1549
|
-
(
|
|
1550
|
-
...
|
|
1551
|
-
disabled:
|
|
1693
|
+
(u(), k(nt(r.component), N({ ref_for: !0 }, {
|
|
1694
|
+
...r.props,
|
|
1695
|
+
disabled: l(W)(r)
|
|
1552
1696
|
}), null, 16))
|
|
1553
|
-
], 10,
|
|
1697
|
+
], 10, Ja)) : C("", !0)
|
|
1554
1698
|
], 64);
|
|
1555
1699
|
}), 128))
|
|
1556
|
-
], 2)) :
|
|
1700
|
+
], 2)) : s.type === "split" ? (u(), x("div", Xa)) : s.type === "space" ? (u(), x("div", {
|
|
1557
1701
|
key: 2,
|
|
1558
|
-
class:
|
|
1559
|
-
}, null, 2)) :
|
|
1702
|
+
class: R(s.width ? s.width : "flex-1")
|
|
1703
|
+
}, null, 2)) : C("", !0)
|
|
1560
1704
|
], 64))), 128))
|
|
1561
1705
|
]));
|
|
1562
1706
|
}
|
|
1563
|
-
}),
|
|
1707
|
+
}), Za = { class: "flex items-center gap-1" }, el = { class: "text-nowrap" }, Cr = /* @__PURE__ */ L({
|
|
1564
1708
|
__name: "index",
|
|
1565
1709
|
props: {
|
|
1566
1710
|
treeCtrl: {},
|
|
@@ -1568,105 +1712,105 @@ const Zl = async (d, l) => {
|
|
|
1568
1712
|
expandedKeys: {}
|
|
1569
1713
|
},
|
|
1570
1714
|
emits: ["select", "update:selectedKeys"],
|
|
1571
|
-
setup(
|
|
1572
|
-
const e =
|
|
1573
|
-
|
|
1574
|
-
() =>
|
|
1715
|
+
setup(o, { emit: a }) {
|
|
1716
|
+
const e = o, t = de(), s = e.treeCtrl, c = T([]);
|
|
1717
|
+
M(
|
|
1718
|
+
() => s.data.value,
|
|
1575
1719
|
(v) => {
|
|
1576
1720
|
if (v) {
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1579
|
-
if (
|
|
1721
|
+
c.value = s.fieldMap ? ye(s.fieldMap, v) : v;
|
|
1722
|
+
const n = Lt(c.value, p.value[0]);
|
|
1723
|
+
if (n) {
|
|
1580
1724
|
const m = {
|
|
1581
1725
|
event: "select",
|
|
1582
1726
|
node: {
|
|
1583
1727
|
// 根据你的TreeNode结构构建node对象
|
|
1584
|
-
key:
|
|
1585
|
-
title:
|
|
1728
|
+
key: n.key,
|
|
1729
|
+
title: n.title,
|
|
1586
1730
|
checked: !0,
|
|
1587
|
-
dataRef:
|
|
1731
|
+
dataRef: n
|
|
1588
1732
|
},
|
|
1589
1733
|
selected: !0,
|
|
1590
|
-
selectedNodes: [
|
|
1734
|
+
selectedNodes: [n]
|
|
1591
1735
|
};
|
|
1592
|
-
|
|
1736
|
+
d(p.value, m);
|
|
1593
1737
|
}
|
|
1594
1738
|
}
|
|
1595
1739
|
}
|
|
1596
1740
|
);
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1741
|
+
const r = a, p = T([]);
|
|
1742
|
+
M(
|
|
1599
1743
|
() => e.selectedKeys,
|
|
1600
1744
|
(v) => {
|
|
1601
|
-
v && (
|
|
1745
|
+
v && (p.value = v);
|
|
1602
1746
|
},
|
|
1603
1747
|
{ immediate: !0 }
|
|
1604
1748
|
);
|
|
1605
|
-
const
|
|
1606
|
-
|
|
1749
|
+
const i = T(["-"]);
|
|
1750
|
+
M(
|
|
1607
1751
|
() => e.expandedKeys,
|
|
1608
1752
|
(v) => {
|
|
1609
|
-
v && (
|
|
1753
|
+
v && (i.value = v);
|
|
1610
1754
|
},
|
|
1611
1755
|
{ immediate: !0 }
|
|
1612
1756
|
);
|
|
1613
|
-
const
|
|
1614
|
-
v.length === 0 && v.push(...
|
|
1757
|
+
const d = (v, n) => {
|
|
1758
|
+
v.length === 0 && v.push(...p.value), v.length > 0 && (s.node.value = n == null ? void 0 : n.node.dataRef), p.value = v, r("update:selectedKeys", v), r("select", v, n);
|
|
1615
1759
|
};
|
|
1616
|
-
return
|
|
1617
|
-
|
|
1760
|
+
return le(() => {
|
|
1761
|
+
s.fieldMap || (s.fieldMap = {
|
|
1618
1762
|
label: "Name",
|
|
1619
1763
|
key: "Id",
|
|
1620
1764
|
value: "Id",
|
|
1621
1765
|
icon: "Icon"
|
|
1622
|
-
}),
|
|
1623
|
-
}), (v,
|
|
1766
|
+
}), s.data.value ? c.value = ye(s.fieldMap, s.data.value) : s.autoload && ot(s);
|
|
1767
|
+
}), (v, n) => (u(), k(l(oa), N({
|
|
1624
1768
|
class: "w-full",
|
|
1625
1769
|
"show-line": !0,
|
|
1626
|
-
"tree-data":
|
|
1627
|
-
"expanded-keys":
|
|
1628
|
-
"onUpdate:expandedKeys":
|
|
1629
|
-
"selected-keys":
|
|
1630
|
-
loading:
|
|
1631
|
-
onSelect:
|
|
1632
|
-
},
|
|
1633
|
-
title:
|
|
1634
|
-
|
|
1635
|
-
label:
|
|
1770
|
+
"tree-data": c.value,
|
|
1771
|
+
"expanded-keys": i.value,
|
|
1772
|
+
"onUpdate:expandedKeys": n[0] || (n[0] = (m) => i.value = m),
|
|
1773
|
+
"selected-keys": p.value,
|
|
1774
|
+
loading: l(s).isTreeLoading,
|
|
1775
|
+
onSelect: d
|
|
1776
|
+
}, l(t)), {
|
|
1777
|
+
title: _(({ key: m, label: f, icon: y }) => [
|
|
1778
|
+
O(v.$slots, "title", {
|
|
1779
|
+
label: f,
|
|
1636
1780
|
key: m,
|
|
1637
|
-
icon:
|
|
1781
|
+
icon: y
|
|
1638
1782
|
}, () => [
|
|
1639
|
-
I("div",
|
|
1640
|
-
|
|
1641
|
-
I("span",
|
|
1783
|
+
I("div", Za, [
|
|
1784
|
+
F(l(V), { icon: y }, null, 8, ["icon"]),
|
|
1785
|
+
I("span", el, E(f), 1)
|
|
1642
1786
|
])
|
|
1643
1787
|
])
|
|
1644
1788
|
]),
|
|
1645
1789
|
_: 3
|
|
1646
1790
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1647
1791
|
}
|
|
1648
|
-
}),
|
|
1792
|
+
}), tl = { class: "relative h-full" }, al = {
|
|
1649
1793
|
key: 0,
|
|
1650
1794
|
class: "h-full flex flex-col"
|
|
1651
|
-
},
|
|
1795
|
+
}, ll = { class: "px-3 pt-3 pb-2 flex items-center justify-end gap-2" }, rl = {
|
|
1652
1796
|
key: 0,
|
|
1653
1797
|
class: "px-3 pt-3 pb-2"
|
|
1654
|
-
},
|
|
1798
|
+
}, ol = { class: "flex-1 overflow-y-auto px-4 pb-4" }, sl = ["onClick"], nl = {
|
|
1655
1799
|
key: 1,
|
|
1656
1800
|
class: "text-xs font-semibold text-gray-700 mb-2 px-3 py-2 bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg"
|
|
1657
|
-
},
|
|
1801
|
+
}, il = { key: 2 }, cl = {
|
|
1658
1802
|
key: 0,
|
|
1659
1803
|
class: "grid grid-cols-3 gap-1.5 px-1"
|
|
1660
|
-
},
|
|
1804
|
+
}, ul = ["title", "draggable", "onClick", "onDragstart"], dl = { class: "text-xs text-gray-700 font-medium text-center leading-tight truncate w-full group-hover:text-gray-900" }, pl = {
|
|
1661
1805
|
key: 1,
|
|
1662
1806
|
class: "space-y-1.5"
|
|
1663
|
-
},
|
|
1807
|
+
}, fl = ["title", "draggable", "onClick", "onDragstart"], vl = { class: "flex-1 min-w-0" }, ml = { class: "font-medium text-gray-900 text-sm group-hover:text-gray-950 text-center" }, gl = {
|
|
1664
1808
|
key: 0,
|
|
1665
1809
|
class: "text-xs text-gray-600 mt-0.5 truncate group-hover:text-gray-700 text-center"
|
|
1666
|
-
},
|
|
1810
|
+
}, hl = {
|
|
1667
1811
|
key: 1,
|
|
1668
1812
|
class: "relative h-full"
|
|
1669
|
-
},
|
|
1813
|
+
}, bl = { class: "pt-4 pb-2 flex justify-center" }, yl = { class: "overflow-y-auto flex flex-col items-center gap-3 pb-4" }, xl = ["title", "draggable", "onClick", "onDragstart"], Sr = /* @__PURE__ */ L({
|
|
1670
1814
|
__name: "index",
|
|
1671
1815
|
props: {
|
|
1672
1816
|
tools: {},
|
|
@@ -1686,337 +1830,337 @@ const Zl = async (d, l) => {
|
|
|
1686
1830
|
onCollapseChange: {},
|
|
1687
1831
|
dragConfig: {}
|
|
1688
1832
|
},
|
|
1689
|
-
setup(
|
|
1690
|
-
const
|
|
1691
|
-
if (!
|
|
1833
|
+
setup(o) {
|
|
1834
|
+
const a = o, e = T(""), t = T({}), s = K(() => Array.isArray(a.tools) && a.tools.length > 0 && "tools" in a.tools[0]), c = K(() => {
|
|
1835
|
+
if (!a.tools || !Array.isArray(a.tools))
|
|
1692
1836
|
return [];
|
|
1693
|
-
if (
|
|
1694
|
-
return
|
|
1695
|
-
const b =
|
|
1837
|
+
if (s.value)
|
|
1838
|
+
return a.tools;
|
|
1839
|
+
const b = a.tools;
|
|
1696
1840
|
return [{
|
|
1697
1841
|
id: "default-group",
|
|
1698
|
-
name:
|
|
1842
|
+
name: w("webui.components.content.toolpanel.tool"),
|
|
1699
1843
|
tools: b
|
|
1700
1844
|
}];
|
|
1701
|
-
}),
|
|
1845
|
+
}), r = K(() => {
|
|
1702
1846
|
if (!e.value.trim())
|
|
1703
|
-
return
|
|
1704
|
-
const b = e.value.toLowerCase(),
|
|
1847
|
+
return c.value;
|
|
1848
|
+
const b = e.value.toLowerCase(), $ = c.value.map((g) => ({
|
|
1705
1849
|
...g,
|
|
1706
1850
|
tools: g.tools.filter((h) => {
|
|
1707
|
-
var
|
|
1708
|
-
const
|
|
1709
|
-
return
|
|
1851
|
+
var A, z;
|
|
1852
|
+
const B = (A = h.label) == null ? void 0 : A.toLowerCase().includes(b), G = (z = h.description) == null ? void 0 : z.toLowerCase().includes(b);
|
|
1853
|
+
return B || G;
|
|
1710
1854
|
})
|
|
1711
1855
|
})).filter((g) => g.tools.length > 0);
|
|
1712
|
-
if (e.value.trim() &&
|
|
1713
|
-
const g =
|
|
1856
|
+
if (e.value.trim() && $.length > 0) {
|
|
1857
|
+
const g = $.flatMap((h) => h.tools);
|
|
1714
1858
|
return [{
|
|
1715
1859
|
id: "search-results",
|
|
1716
|
-
name:
|
|
1860
|
+
name: w("webui.components.content.toolpanel.searchResult"),
|
|
1717
1861
|
tools: g
|
|
1718
1862
|
}];
|
|
1719
1863
|
}
|
|
1720
|
-
return
|
|
1721
|
-
}),
|
|
1864
|
+
return $;
|
|
1865
|
+
}), p = K(() => a.collapsed ? a.width.collapsed : a.width.expanded), i = K(() => a.showModeToggle ? [{
|
|
1722
1866
|
type: "tools",
|
|
1723
1867
|
mode: "toggle",
|
|
1724
|
-
selected:
|
|
1868
|
+
selected: a.mode,
|
|
1725
1869
|
tools: [
|
|
1726
1870
|
{
|
|
1727
1871
|
key: "list",
|
|
1728
|
-
label:
|
|
1872
|
+
label: w("webui.components.content.toolpanel.list"),
|
|
1729
1873
|
icon: "icon-datalist",
|
|
1730
1874
|
display: "icon",
|
|
1731
|
-
tiptext:
|
|
1875
|
+
tiptext: w("webui.components.content.toolpanel.listView"),
|
|
1732
1876
|
click: () => {
|
|
1733
1877
|
var b;
|
|
1734
|
-
(b =
|
|
1878
|
+
(b = a.onModeChange) == null || b.call(a, "list");
|
|
1735
1879
|
}
|
|
1736
1880
|
},
|
|
1737
1881
|
{
|
|
1738
1882
|
key: "grid",
|
|
1739
|
-
label:
|
|
1883
|
+
label: w("webui.components.content.toolpanel.grid"),
|
|
1740
1884
|
icon: "icon-icon-list",
|
|
1741
1885
|
display: "icon",
|
|
1742
|
-
tiptext:
|
|
1886
|
+
tiptext: w("webui.components.content.toolpanel.gridView"),
|
|
1743
1887
|
click: () => {
|
|
1744
1888
|
var b;
|
|
1745
|
-
(b =
|
|
1889
|
+
(b = a.onModeChange) == null || b.call(a, "grid");
|
|
1746
1890
|
}
|
|
1747
1891
|
}
|
|
1748
1892
|
]
|
|
1749
|
-
}] : []),
|
|
1893
|
+
}] : []), d = K(() => [{
|
|
1750
1894
|
type: "tools",
|
|
1751
1895
|
mode: "normal",
|
|
1752
1896
|
tools: [
|
|
1753
1897
|
{
|
|
1754
1898
|
key: "collapse",
|
|
1755
|
-
label:
|
|
1899
|
+
label: a.collapsed ? w("webui.components.content.toolpanel.expand") : w("webui.components.content.toolpanel.collapse"),
|
|
1756
1900
|
icon: "icon-menu",
|
|
1757
1901
|
display: "icon",
|
|
1758
|
-
tiptext:
|
|
1902
|
+
tiptext: a.collapsed ? w("webui.components.content.toolpanel.expandPanel") : w("webui.components.content.toolpanel.collapsePanel"),
|
|
1759
1903
|
// 添加特殊的点击处理
|
|
1760
1904
|
click: () => {
|
|
1761
1905
|
var b;
|
|
1762
|
-
(b =
|
|
1906
|
+
(b = a.onCollapseChange) == null || b.call(a, !a.collapsed);
|
|
1763
1907
|
}
|
|
1764
1908
|
}
|
|
1765
1909
|
]
|
|
1766
|
-
}]), v = (b) => t.value[b] ?? !1,
|
|
1767
|
-
if (!
|
|
1768
|
-
const
|
|
1910
|
+
}]), v = (b) => t.value[b] ?? !1, n = (b) => {
|
|
1911
|
+
if (!a.allowGroupCollapse) return;
|
|
1912
|
+
const $ = !t.value[b];
|
|
1769
1913
|
t.value = {
|
|
1770
1914
|
...t.value,
|
|
1771
|
-
[b]:
|
|
1772
|
-
}, console.log("切换分组折叠状态:", b,
|
|
1773
|
-
}, m = (b,
|
|
1915
|
+
[b]: $
|
|
1916
|
+
}, console.log("切换分组折叠状态:", b, $);
|
|
1917
|
+
}, m = (b, $) => {
|
|
1774
1918
|
var g;
|
|
1775
|
-
W(b) || (X(b), (g =
|
|
1776
|
-
},
|
|
1777
|
-
var
|
|
1778
|
-
e.value = b, (
|
|
1779
|
-
},
|
|
1919
|
+
W(b) || (X(b), (g = a.onToolClick) == null || g.call(a, b, $));
|
|
1920
|
+
}, f = (b) => {
|
|
1921
|
+
var $;
|
|
1922
|
+
e.value = b, ($ = a.onSearch) == null || $.call(a, b);
|
|
1923
|
+
}, y = (b, $) => {
|
|
1780
1924
|
var g, h;
|
|
1781
|
-
(h = (g =
|
|
1782
|
-
},
|
|
1783
|
-
var
|
|
1784
|
-
(g = (
|
|
1925
|
+
(h = (g = a.dragConfig) == null ? void 0 : g.onDragStart) == null || h.call(g, b, $);
|
|
1926
|
+
}, S = (b) => {
|
|
1927
|
+
var $, g;
|
|
1928
|
+
(g = ($ = a.dragConfig) == null ? void 0 : $.onDragEnd) == null || g.call($, b);
|
|
1785
1929
|
};
|
|
1786
|
-
return (b,
|
|
1930
|
+
return (b, $) => (u(), x("div", tl, [
|
|
1787
1931
|
I("div", {
|
|
1788
|
-
class:
|
|
1932
|
+
class: R(["h-full bg-white border-r border-gray-200 transition-all duration-300 ease-in-out shadow-sm", p.value])
|
|
1789
1933
|
}, [
|
|
1790
|
-
|
|
1791
|
-
I("div",
|
|
1792
|
-
|
|
1793
|
-
"group-tools":
|
|
1934
|
+
a.collapsed ? (u(), x("div", hl, [
|
|
1935
|
+
I("div", bl, [
|
|
1936
|
+
F(Me, {
|
|
1937
|
+
"group-tools": d.value
|
|
1794
1938
|
}, null, 8, ["group-tools"])
|
|
1795
1939
|
]),
|
|
1796
|
-
I("div",
|
|
1797
|
-
(
|
|
1940
|
+
I("div", yl, [
|
|
1941
|
+
(u(!0), x(U, null, j(r.value, (g) => (u(), x("div", {
|
|
1798
1942
|
key: g.id,
|
|
1799
1943
|
class: "flex flex-col items-center gap-2"
|
|
1800
1944
|
}, [
|
|
1801
|
-
(
|
|
1802
|
-
var
|
|
1803
|
-
return Q((
|
|
1945
|
+
(u(!0), x(U, null, j(g.tools, (h) => {
|
|
1946
|
+
var B, G;
|
|
1947
|
+
return Q((u(), x("div", N({
|
|
1804
1948
|
key: h.key,
|
|
1805
1949
|
title: `${h.label}${h.description ? ": " + h.description : ""}`,
|
|
1806
1950
|
class: ["w-12 h-12 flex items-center justify-center bg-gray-50 border border-gray-400 rounded-lg shadow-sm hover:border-blue-500 hover:shadow-md hover:bg-blue-50 transition-all duration-200 cursor-move group", [
|
|
1807
|
-
|
|
1951
|
+
l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-110",
|
|
1808
1952
|
h.class || "",
|
|
1809
|
-
(
|
|
1953
|
+
(B = b.dragConfig) != null && B.draggable ? "cursor-move" : ""
|
|
1810
1954
|
]],
|
|
1811
|
-
draggable: (
|
|
1812
|
-
onClick: (
|
|
1813
|
-
onDragstart: (
|
|
1814
|
-
onDragend:
|
|
1955
|
+
draggable: (G = b.dragConfig) == null ? void 0 : G.draggable,
|
|
1956
|
+
onClick: (A) => h.click ? h.click(h, A) : m(h, A),
|
|
1957
|
+
onDragstart: (A) => y(A, h),
|
|
1958
|
+
onDragend: $[5] || ($[5] = (A) => S(A))
|
|
1815
1959
|
}, { ref_for: !0 }, b.dragConfig), [
|
|
1816
|
-
h.icon ? (
|
|
1960
|
+
h.icon ? (u(), k(l(V), N({
|
|
1817
1961
|
key: 0,
|
|
1818
1962
|
icon: h.icon,
|
|
1819
1963
|
class: ["w-7 h-7 text-blue-600 group-hover:text-blue-700 transition-colors", h.iconClass]
|
|
1820
|
-
}, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) :
|
|
1821
|
-
], 16,
|
|
1822
|
-
[
|
|
1964
|
+
}, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0)
|
|
1965
|
+
], 16, xl)), [
|
|
1966
|
+
[Ee, l(J)(h)]
|
|
1823
1967
|
]);
|
|
1824
1968
|
}), 128))
|
|
1825
1969
|
]))), 128))
|
|
1826
1970
|
])
|
|
1827
|
-
])) : (
|
|
1828
|
-
I("div",
|
|
1829
|
-
b.showModeToggle ? (
|
|
1971
|
+
])) : (u(), x("div", al, [
|
|
1972
|
+
I("div", ll, [
|
|
1973
|
+
b.showModeToggle ? (u(), k(Me, {
|
|
1830
1974
|
key: 0,
|
|
1831
|
-
"group-tools":
|
|
1832
|
-
}, null, 8, ["group-tools"])) :
|
|
1833
|
-
|
|
1834
|
-
"group-tools":
|
|
1975
|
+
"group-tools": i.value
|
|
1976
|
+
}, null, 8, ["group-tools"])) : C("", !0),
|
|
1977
|
+
F(Me, {
|
|
1978
|
+
"group-tools": d.value
|
|
1835
1979
|
}, null, 8, ["group-tools"])
|
|
1836
1980
|
]),
|
|
1837
|
-
b.showSearch ? (
|
|
1838
|
-
|
|
1981
|
+
b.showSearch ? (u(), x("div", rl, [
|
|
1982
|
+
F(l(St), {
|
|
1839
1983
|
value: e.value,
|
|
1840
1984
|
"onUpdate:value": [
|
|
1841
|
-
|
|
1842
|
-
|
|
1985
|
+
$[0] || ($[0] = (g) => e.value = g),
|
|
1986
|
+
$[1] || ($[1] = (g) => f(g))
|
|
1843
1987
|
],
|
|
1844
|
-
placeholder:
|
|
1988
|
+
placeholder: l(w)("webui.components.content.toolpanel.searchPlaceholder"),
|
|
1845
1989
|
"allow-clear": "",
|
|
1846
1990
|
size: "small",
|
|
1847
1991
|
class: "w-full",
|
|
1848
|
-
onPressEnter:
|
|
1992
|
+
onPressEnter: $[2] || ($[2] = (g) => f(g.target.value))
|
|
1849
1993
|
}, null, 8, ["value", "placeholder"])
|
|
1850
|
-
])) :
|
|
1851
|
-
I("div",
|
|
1852
|
-
(
|
|
1994
|
+
])) : C("", !0),
|
|
1995
|
+
I("div", ol, [
|
|
1996
|
+
(u(!0), x(U, null, j(r.value, (g) => (u(), x("div", {
|
|
1853
1997
|
key: g.id,
|
|
1854
1998
|
class: "mb-4 last:mb-0"
|
|
1855
1999
|
}, [
|
|
1856
|
-
b.allowGroupCollapse && g.id !== "search-results" && g.id !== "default-group" ? (
|
|
2000
|
+
b.allowGroupCollapse && g.id !== "search-results" && g.id !== "default-group" ? (u(), x("div", {
|
|
1857
2001
|
key: 0,
|
|
1858
2002
|
class: "flex items-center justify-between text-xs font-semibold text-gray-700 mb-2 px-3 py-2 bg-gradient-to-r from-gray-50 to-gray-100 rounded-lg cursor-pointer hover:from-gray-100 hover:to-gray-200 transition-all",
|
|
1859
|
-
onClick: (h) =>
|
|
2003
|
+
onClick: (h) => n(g.id)
|
|
1860
2004
|
}, [
|
|
1861
|
-
I("span", null,
|
|
1862
|
-
|
|
2005
|
+
I("span", null, E(g.name), 1),
|
|
2006
|
+
F(l(V), {
|
|
1863
2007
|
icon: v(g.id) ? "icon-chevron-right" : "icon-chevron-down",
|
|
1864
2008
|
class: "w-3.5 h-3.5 transition-transform duration-200"
|
|
1865
2009
|
}, null, 8, ["icon"])
|
|
1866
|
-
], 8,
|
|
1867
|
-
!v(g.id) || g.id === "search-results" || g.id === "default-group" ? (
|
|
1868
|
-
|
|
1869
|
-
(
|
|
1870
|
-
var
|
|
1871
|
-
return Q((
|
|
2010
|
+
], 8, sl)) : g.id !== "search-results" && g.id !== "default-group" ? (u(), x("h3", nl, E(g.name), 1)) : C("", !0),
|
|
2011
|
+
!v(g.id) || g.id === "search-results" || g.id === "default-group" ? (u(), x("div", il, [
|
|
2012
|
+
a.mode === "grid" ? (u(), x("div", cl, [
|
|
2013
|
+
(u(!0), x(U, null, j(g.tools, (h) => {
|
|
2014
|
+
var B, G, A;
|
|
2015
|
+
return Q((u(), x("div", N({
|
|
1872
2016
|
key: h.key,
|
|
1873
2017
|
title: `${h.label}${h.description ? ": " + h.description : ""}`,
|
|
1874
2018
|
class: ["aspect-square flex flex-col items-center justify-center p-1.5 bg-gray-50 border border-solid border-gray-200 rounded-lg shadow-sm hover:border-blue-300 hover:shadow-lg hover:bg-blue-50 transition-all duration-200 cursor-move group", [
|
|
1875
|
-
|
|
2019
|
+
l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-105",
|
|
1876
2020
|
h.class || "",
|
|
1877
|
-
(
|
|
2021
|
+
(B = b.dragConfig) != null && B.draggable ? "cursor-move" : ""
|
|
1878
2022
|
]],
|
|
1879
|
-
draggable: (
|
|
1880
|
-
onClick: (
|
|
1881
|
-
onDragstart: (
|
|
1882
|
-
onDragend:
|
|
2023
|
+
draggable: (G = b.dragConfig) == null ? void 0 : G.draggable,
|
|
2024
|
+
onClick: (z) => h.click ? h.click(h, z) : m(h, z),
|
|
2025
|
+
onDragstart: (z) => y(z, h),
|
|
2026
|
+
onDragend: $[3] || ($[3] = (z) => S(z))
|
|
1883
2027
|
}, { ref_for: !0 }, b.dragConfig), [
|
|
1884
|
-
h.icon ? (
|
|
2028
|
+
h.icon ? (u(), k(l(V), N({
|
|
1885
2029
|
key: 0,
|
|
1886
2030
|
icon: h.icon,
|
|
1887
2031
|
class: ["w-9 h-9 mb-1 text-blue-600 group-hover:text-blue-700 transition-colors flex-shrink-0 !cursor-move", [
|
|
1888
2032
|
h.iconClass,
|
|
1889
|
-
(
|
|
2033
|
+
(A = b.dragConfig) != null && A.draggable ? "cursor-move" : ""
|
|
1890
2034
|
]]
|
|
1891
|
-
}, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) :
|
|
1892
|
-
I("span",
|
|
1893
|
-
], 16,
|
|
1894
|
-
[
|
|
2035
|
+
}, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0),
|
|
2036
|
+
I("span", dl, E(h.label), 1)
|
|
2037
|
+
], 16, ul)), [
|
|
2038
|
+
[Ee, l(J)(h)]
|
|
1895
2039
|
]);
|
|
1896
2040
|
}), 128))
|
|
1897
|
-
])) : (
|
|
1898
|
-
(
|
|
1899
|
-
var
|
|
1900
|
-
return Q((
|
|
2041
|
+
])) : (u(), x("div", pl, [
|
|
2042
|
+
(u(!0), x(U, null, j(g.tools, (h) => {
|
|
2043
|
+
var B, G, A;
|
|
2044
|
+
return Q((u(), x("div", N({
|
|
1901
2045
|
key: h.key,
|
|
1902
2046
|
title: `${h.label}${h.description ? ": " + h.description : ""}`,
|
|
1903
2047
|
class: ["flex items-center px-2.5 py-2 bg-gray-50 border border-gray-200 border-solid rounded-lg shadow-sm hover:border-blue-500 hover:shadow-md hover:bg-blue-50 transition-all duration-200 group", [
|
|
1904
|
-
|
|
2048
|
+
l(W)(h) ? "opacity-50 cursor-not-allowed bg-gray-200" : "hover:scale-[1.02]",
|
|
1905
2049
|
h.class || "",
|
|
1906
|
-
(
|
|
2050
|
+
(B = b.dragConfig) != null && B.draggable ? "cursor-move" : ""
|
|
1907
2051
|
]],
|
|
1908
|
-
draggable: (
|
|
1909
|
-
onClick: (
|
|
1910
|
-
onDragstart: (
|
|
1911
|
-
onDragend:
|
|
2052
|
+
draggable: (G = b.dragConfig) == null ? void 0 : G.draggable,
|
|
2053
|
+
onClick: (z) => h.click ? h.click(h, z) : m(h, z),
|
|
2054
|
+
onDragstart: (z) => y(z, h),
|
|
2055
|
+
onDragend: $[4] || ($[4] = (z) => S(z))
|
|
1912
2056
|
}, { ref_for: !0 }, b.dragConfig), [
|
|
1913
|
-
h.icon ? (
|
|
2057
|
+
h.icon ? (u(), k(l(V), N({
|
|
1914
2058
|
key: 0,
|
|
1915
2059
|
icon: h.icon,
|
|
1916
2060
|
class: ["w-7 h-7 mr-2.5 flex-shrink-0 text-blue-600 group-hover:text-blue-700 transition-colors", [
|
|
1917
2061
|
h.iconClass,
|
|
1918
|
-
(
|
|
2062
|
+
(A = b.dragConfig) != null && A.draggable ? "!cursor-move" : ""
|
|
1919
2063
|
]]
|
|
1920
|
-
}, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) :
|
|
1921
|
-
I("div",
|
|
1922
|
-
I("div",
|
|
1923
|
-
h.description ? (
|
|
2064
|
+
}, { ref_for: !0 }, h.iconProps), null, 16, ["icon", "class"])) : C("", !0),
|
|
2065
|
+
I("div", vl, [
|
|
2066
|
+
I("div", ml, E(h.label), 1),
|
|
2067
|
+
h.description ? (u(), x("div", gl, E(h.description), 1)) : C("", !0)
|
|
1924
2068
|
])
|
|
1925
|
-
], 16,
|
|
1926
|
-
[
|
|
2069
|
+
], 16, fl)), [
|
|
2070
|
+
[Ee, l(J)(h)]
|
|
1927
2071
|
]);
|
|
1928
2072
|
}), 128))
|
|
1929
2073
|
]))
|
|
1930
|
-
])) :
|
|
2074
|
+
])) : C("", !0)
|
|
1931
2075
|
]))), 128))
|
|
1932
2076
|
])
|
|
1933
2077
|
]))
|
|
1934
2078
|
], 2)
|
|
1935
2079
|
]));
|
|
1936
2080
|
}
|
|
1937
|
-
}),
|
|
2081
|
+
}), Tr = /* @__PURE__ */ ie(Ut, [["__scopeId", "data-v-87722b44"]]), wl = { class: "relative w-[248px] max-w-[248px]" }, _l = {
|
|
1938
2082
|
key: 0,
|
|
1939
2083
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1940
|
-
},
|
|
2084
|
+
}, kl = /* @__PURE__ */ L({
|
|
1941
2085
|
inheritAttrs: !1,
|
|
1942
2086
|
__name: "index",
|
|
1943
|
-
props:
|
|
2087
|
+
props: Mt,
|
|
1944
2088
|
emits: ["change", "update:labels", "update:value"],
|
|
1945
|
-
setup(
|
|
1946
|
-
var
|
|
1947
|
-
const e =
|
|
1948
|
-
|
|
1949
|
-
const
|
|
1950
|
-
...
|
|
1951
|
-
url: ((
|
|
1952
|
-
fieldMap: (
|
|
1953
|
-
params: (
|
|
2089
|
+
setup(o, { emit: a }) {
|
|
2090
|
+
var S, b, $;
|
|
2091
|
+
const e = o, t = de(), s = te(), c = Nt(e.url, e), r = e.optionCtrl ?? c.optionCtrl;
|
|
2092
|
+
r.inputFactory = Qt(s);
|
|
2093
|
+
const p = T({
|
|
2094
|
+
...r == null ? void 0 : r.url,
|
|
2095
|
+
url: ((S = r == null ? void 0 : r.url) == null ? void 0 : S.url) || "",
|
|
2096
|
+
fieldMap: (r == null ? void 0 : r.fieldMap) || ((b = r == null ? void 0 : r.url) == null ? void 0 : b.fieldMap),
|
|
2097
|
+
params: (r == null ? void 0 : r.params) || (($ = r == null ? void 0 : r.url) == null ? void 0 : $.params),
|
|
1954
2098
|
loadingText: !1
|
|
1955
|
-
}), { editorCtrl:
|
|
1956
|
-
|
|
1957
|
-
() =>
|
|
2099
|
+
}), { editorCtrl: i, errInfo: d, labelText: v } = s, n = T(t.placeholder);
|
|
2100
|
+
M(
|
|
2101
|
+
() => p.value.loading,
|
|
1958
2102
|
(g) => {
|
|
1959
|
-
g ?
|
|
2103
|
+
g ? n.value = "" : n.value || (n.value = w("webui.components.form.cascader.pleaseSelect", [v.value]));
|
|
1960
2104
|
},
|
|
1961
2105
|
{ immediate: !0 }
|
|
1962
2106
|
);
|
|
1963
|
-
const m =
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1966
|
-
|
|
1967
|
-
() =>
|
|
2107
|
+
const m = a;
|
|
2108
|
+
s.inputEmit = m;
|
|
2109
|
+
const f = T((r == null ? void 0 : r.options.value) || []);
|
|
2110
|
+
r && M(
|
|
2111
|
+
() => r.options.value,
|
|
1968
2112
|
(g) => {
|
|
1969
|
-
|
|
2113
|
+
f.value = g || [];
|
|
1970
2114
|
},
|
|
1971
2115
|
{ immediate: !0, deep: !0 }
|
|
1972
2116
|
);
|
|
1973
|
-
const
|
|
2117
|
+
const y = (g, h) => {
|
|
1974
2118
|
if (!h || h.length === 0) {
|
|
1975
2119
|
m("update:labels", []), m("update:value", []);
|
|
1976
2120
|
return;
|
|
1977
2121
|
}
|
|
1978
|
-
const
|
|
1979
|
-
m("update:labels",
|
|
2122
|
+
const B = h.map((z) => z.value), G = zt(r, e, B), A = Ot(G);
|
|
2123
|
+
m("update:labels", A), m("update:value", B), d != null && d.value.errClass && i && se(i);
|
|
1980
2124
|
};
|
|
1981
|
-
return
|
|
1982
|
-
|
|
1983
|
-
}),
|
|
1984
|
-
|
|
2125
|
+
return Se(() => {
|
|
2126
|
+
r && r.autoload && (r.reload.value = !0);
|
|
2127
|
+
}), le(() => {
|
|
2128
|
+
p.value && !p.value.fieldMap && (p.value.fieldMap = {
|
|
1985
2129
|
title: "Name",
|
|
1986
2130
|
label: "Name",
|
|
1987
2131
|
value: "Id",
|
|
1988
2132
|
key: "Id"
|
|
1989
|
-
}),
|
|
1990
|
-
}),
|
|
1991
|
-
|
|
2133
|
+
}), r && Rt(r.autoload, r, e);
|
|
2134
|
+
}), Jt(() => {
|
|
2135
|
+
r && Bt(r, e);
|
|
1992
2136
|
}), (g, h) => {
|
|
1993
|
-
var
|
|
1994
|
-
return
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
2137
|
+
var B;
|
|
2138
|
+
return u(), x("div", wl, [
|
|
2139
|
+
f.value.length ? C("", !0) : (u(), x("div", _l, [
|
|
2140
|
+
F(l(At), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
2141
|
+
I("span", null, E(l(w)("webui.components.form.cascader.loading")), 1)
|
|
1998
2142
|
])),
|
|
1999
|
-
|
|
2000
|
-
options:
|
|
2001
|
-
class: [(
|
|
2143
|
+
F(l(sa), N({
|
|
2144
|
+
options: f.value,
|
|
2145
|
+
class: [(B = l(d)) == null ? void 0 : B.errClass],
|
|
2002
2146
|
"allow-clear": !0,
|
|
2003
|
-
placeholder:
|
|
2004
|
-
onChange:
|
|
2005
|
-
},
|
|
2147
|
+
placeholder: f.value.length > 0 ? l(w)("webui.components.form.cascader.pleaseSelect", [l(v)]) : "",
|
|
2148
|
+
onChange: y
|
|
2149
|
+
}, l(t)), null, 16, ["options", "class", "placeholder"])
|
|
2006
2150
|
]);
|
|
2007
2151
|
};
|
|
2008
2152
|
}
|
|
2009
|
-
}),
|
|
2010
|
-
function
|
|
2011
|
-
return
|
|
2012
|
-
for (var
|
|
2013
|
-
var e = arguments[
|
|
2014
|
-
for (var t in e) ({}).hasOwnProperty.call(e, t) && (
|
|
2153
|
+
}), $r = /* @__PURE__ */ ie(kl, [["__scopeId", "data-v-9293618e"]]), Dr = /* @__PURE__ */ ie(Kt, [["__scopeId", "data-v-b16e9e97"]]);
|
|
2154
|
+
function ke() {
|
|
2155
|
+
return ke = Object.assign ? Object.assign.bind() : function(o) {
|
|
2156
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
2157
|
+
var e = arguments[a];
|
|
2158
|
+
for (var t in e) ({}).hasOwnProperty.call(e, t) && (o[t] = e[t]);
|
|
2015
2159
|
}
|
|
2016
|
-
return
|
|
2017
|
-
},
|
|
2160
|
+
return o;
|
|
2161
|
+
}, ke.apply(null, arguments);
|
|
2018
2162
|
}
|
|
2019
|
-
const
|
|
2163
|
+
const Cl = {
|
|
2020
2164
|
locale: "zh_CN",
|
|
2021
2165
|
today: "今天",
|
|
2022
2166
|
now: "此刻",
|
|
@@ -2043,11 +2187,11 @@ const vl = {
|
|
|
2043
2187
|
nextDecade: "下一年代",
|
|
2044
2188
|
previousCentury: "上一世纪",
|
|
2045
2189
|
nextCentury: "下一世纪"
|
|
2046
|
-
},
|
|
2190
|
+
}, Sl = {
|
|
2047
2191
|
placeholder: "请选择时间",
|
|
2048
2192
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
2049
|
-
},
|
|
2050
|
-
lang:
|
|
2193
|
+
}, Fe = {
|
|
2194
|
+
lang: ke({
|
|
2051
2195
|
placeholder: "请选择日期",
|
|
2052
2196
|
yearPlaceholder: "请选择年份",
|
|
2053
2197
|
quarterPlaceholder: "请选择季度",
|
|
@@ -2058,159 +2202,159 @@ const vl = {
|
|
|
2058
2202
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
2059
2203
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
2060
2204
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
2061
|
-
},
|
|
2062
|
-
timePickerLocale:
|
|
2205
|
+
}, Cl),
|
|
2206
|
+
timePickerLocale: ke({}, Sl)
|
|
2063
2207
|
};
|
|
2064
|
-
|
|
2065
|
-
const
|
|
2208
|
+
Fe.lang.ok = "确定";
|
|
2209
|
+
const Fr = /* @__PURE__ */ L({
|
|
2066
2210
|
__name: "index",
|
|
2067
2211
|
props: {
|
|
2068
2212
|
valueFormat: {}
|
|
2069
2213
|
},
|
|
2070
|
-
setup(
|
|
2071
|
-
const
|
|
2072
|
-
|
|
2073
|
-
},
|
|
2074
|
-
return (
|
|
2075
|
-
var
|
|
2076
|
-
return
|
|
2077
|
-
class:
|
|
2078
|
-
placeholder: "
|
|
2079
|
-
locale:
|
|
2080
|
-
valueFormat:
|
|
2081
|
-
onBlur:
|
|
2214
|
+
setup(o) {
|
|
2215
|
+
const a = o, { editorCtrl: e, labelText: t, errInfo: s } = te(), c = () => {
|
|
2216
|
+
s != null && s.value.errClass && e && se(e);
|
|
2217
|
+
}, r = T(a.valueFormat ?? "YYYY-MM-DD");
|
|
2218
|
+
return (p, i) => {
|
|
2219
|
+
var d;
|
|
2220
|
+
return u(), k(l(na), {
|
|
2221
|
+
class: R(["w-full", [((d = l(s)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
2222
|
+
placeholder: l(w)("webui.components.form.datePicker.pleaseSelect", [l(t)]),
|
|
2223
|
+
locale: l(Fe),
|
|
2224
|
+
valueFormat: r.value,
|
|
2225
|
+
onBlur: c
|
|
2082
2226
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
2083
2227
|
};
|
|
2084
2228
|
}
|
|
2085
|
-
}),
|
|
2229
|
+
}), St = /* @__PURE__ */ L({
|
|
2086
2230
|
__name: "index",
|
|
2087
2231
|
props: {
|
|
2088
2232
|
value: {},
|
|
2089
2233
|
undefValue: { type: Boolean, default: !1 }
|
|
2090
2234
|
},
|
|
2091
2235
|
emits: ["update:value"],
|
|
2092
|
-
setup(
|
|
2093
|
-
const { t: e } =
|
|
2094
|
-
|
|
2095
|
-
},
|
|
2096
|
-
|
|
2097
|
-
() =>
|
|
2236
|
+
setup(o, { emit: a }) {
|
|
2237
|
+
const { t: e } = ue(), { editorCtrl: t, labelText: s, errInfo: c } = te(), r = () => {
|
|
2238
|
+
c != null && c.value.errClass && t && se(t);
|
|
2239
|
+
}, p = o, i = p.value === void 0 ? !0 : p.undefValue, d = a, v = T(p.value);
|
|
2240
|
+
M(
|
|
2241
|
+
() => p.value,
|
|
2098
2242
|
(m) => {
|
|
2099
2243
|
v.value = m;
|
|
2100
2244
|
},
|
|
2101
2245
|
{ immediate: !0 }
|
|
2102
2246
|
// 立即同步初始值
|
|
2103
|
-
),
|
|
2247
|
+
), M(
|
|
2104
2248
|
() => v.value,
|
|
2105
2249
|
(m) => {
|
|
2106
2250
|
if (v.value === "") {
|
|
2107
|
-
|
|
2251
|
+
d("update:value", void 0);
|
|
2108
2252
|
return;
|
|
2109
2253
|
}
|
|
2110
|
-
|
|
2254
|
+
d("update:value", m);
|
|
2111
2255
|
}
|
|
2112
2256
|
);
|
|
2113
|
-
const
|
|
2114
|
-
v.value === "" && (v.value =
|
|
2257
|
+
const n = () => {
|
|
2258
|
+
v.value === "" && (v.value = i ? void 0 : null);
|
|
2115
2259
|
};
|
|
2116
|
-
return (m,
|
|
2117
|
-
var
|
|
2118
|
-
return
|
|
2260
|
+
return (m, f) => {
|
|
2261
|
+
var y, S;
|
|
2262
|
+
return u(), k(l(me), N({
|
|
2119
2263
|
class: [
|
|
2120
|
-
(
|
|
2121
|
-
((
|
|
2264
|
+
(y = l(c)) == null ? void 0 : y.errClass,
|
|
2265
|
+
((S = l(c)) == null ? void 0 : S.errClass) === "error" && !m.$slots.addonBefore && !m.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
2122
2266
|
],
|
|
2123
2267
|
value: v.value,
|
|
2124
|
-
"onUpdate:value":
|
|
2268
|
+
"onUpdate:value": f[0] || (f[0] = (b) => v.value = b),
|
|
2125
2269
|
autocomplete: "new-password",
|
|
2126
2270
|
"allow-clear": !0,
|
|
2127
|
-
placeholder:
|
|
2128
|
-
onBlur:
|
|
2129
|
-
onChange:
|
|
2130
|
-
}, m.$attrs),
|
|
2271
|
+
placeholder: l(e)("webui.common.placeholder", [l(s)]),
|
|
2272
|
+
onBlur: r,
|
|
2273
|
+
onChange: n
|
|
2274
|
+
}, m.$attrs), it({ _: 2 }, [
|
|
2131
2275
|
m.$slots.addonBefore ? {
|
|
2132
2276
|
name: "addonBefore",
|
|
2133
|
-
fn:
|
|
2134
|
-
|
|
2277
|
+
fn: _(() => [
|
|
2278
|
+
O(m.$slots, "addonBefore")
|
|
2135
2279
|
]),
|
|
2136
2280
|
key: "0"
|
|
2137
2281
|
} : void 0,
|
|
2138
2282
|
m.$slots.addonAfter ? {
|
|
2139
2283
|
name: "addonAfter",
|
|
2140
|
-
fn:
|
|
2141
|
-
|
|
2284
|
+
fn: _(() => [
|
|
2285
|
+
O(m.$slots, "addonAfter")
|
|
2142
2286
|
]),
|
|
2143
2287
|
key: "1"
|
|
2144
2288
|
} : void 0
|
|
2145
2289
|
]), 1040, ["class", "value", "placeholder"]);
|
|
2146
2290
|
};
|
|
2147
2291
|
}
|
|
2148
|
-
}),
|
|
2292
|
+
}), Tl = /* @__PURE__ */ L({
|
|
2149
2293
|
__name: "inputIcon",
|
|
2150
2294
|
props: {
|
|
2151
2295
|
value: {}
|
|
2152
2296
|
},
|
|
2153
2297
|
emits: ["update:value"],
|
|
2154
|
-
setup(
|
|
2155
|
-
const e =
|
|
2156
|
-
return
|
|
2298
|
+
setup(o, { emit: a }) {
|
|
2299
|
+
const e = o, t = a, s = T(void 0);
|
|
2300
|
+
return M(
|
|
2157
2301
|
() => e.value,
|
|
2158
|
-
(
|
|
2159
|
-
|
|
2302
|
+
(c) => {
|
|
2303
|
+
s.value = c ?? void 0;
|
|
2160
2304
|
},
|
|
2161
2305
|
{ immediate: !0 }
|
|
2162
|
-
),
|
|
2163
|
-
() =>
|
|
2164
|
-
(
|
|
2165
|
-
t("update:value",
|
|
2306
|
+
), M(
|
|
2307
|
+
() => s.value,
|
|
2308
|
+
(c) => {
|
|
2309
|
+
t("update:value", c);
|
|
2166
2310
|
}
|
|
2167
|
-
), (
|
|
2168
|
-
value:
|
|
2169
|
-
"onUpdate:value":
|
|
2170
|
-
},
|
|
2171
|
-
addonBefore:
|
|
2172
|
-
|
|
2311
|
+
), (c, r) => (u(), k(St, N({
|
|
2312
|
+
value: s.value,
|
|
2313
|
+
"onUpdate:value": r[0] || (r[0] = (p) => s.value = p)
|
|
2314
|
+
}, c.$attrs), {
|
|
2315
|
+
addonBefore: _(() => [
|
|
2316
|
+
F(l(V), {
|
|
2173
2317
|
class: "!w-4 !h-4",
|
|
2174
|
-
icon:
|
|
2318
|
+
icon: s.value
|
|
2175
2319
|
}, null, 8, ["icon"])
|
|
2176
2320
|
]),
|
|
2177
2321
|
_: 1
|
|
2178
2322
|
}, 16, ["value"]));
|
|
2179
2323
|
}
|
|
2180
|
-
}),
|
|
2324
|
+
}), Pr = /* @__PURE__ */ ie(Tl, [["__scopeId", "data-v-358b82ef"]]), Ir = /* @__PURE__ */ L({
|
|
2181
2325
|
__name: "inputPassword",
|
|
2182
|
-
setup(
|
|
2183
|
-
const { editorCtrl:
|
|
2184
|
-
t != null && t.value.errClass &&
|
|
2326
|
+
setup(o) {
|
|
2327
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = ue(), c = () => {
|
|
2328
|
+
t != null && t.value.errClass && a && se(a);
|
|
2185
2329
|
};
|
|
2186
|
-
return (
|
|
2187
|
-
var
|
|
2188
|
-
return
|
|
2189
|
-
class: ((
|
|
2330
|
+
return (r, p) => {
|
|
2331
|
+
var i;
|
|
2332
|
+
return u(), k(l(ia), N({
|
|
2333
|
+
class: ((i = l(t)) == null ? void 0 : i.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
2190
2334
|
"allow-clear": !0,
|
|
2191
2335
|
autocomplete: "new-password",
|
|
2192
|
-
placeholder: "
|
|
2193
|
-
onBlur:
|
|
2194
|
-
},
|
|
2336
|
+
placeholder: l(s)("webui.common.placeholder", [l(e)]),
|
|
2337
|
+
onBlur: c
|
|
2338
|
+
}, r.$attrs), null, 16, ["class", "placeholder"]);
|
|
2195
2339
|
};
|
|
2196
2340
|
}
|
|
2197
|
-
}),
|
|
2341
|
+
}), Er = /* @__PURE__ */ L({
|
|
2198
2342
|
__name: "inputNumber",
|
|
2199
|
-
setup(
|
|
2200
|
-
const { editorCtrl:
|
|
2201
|
-
t != null && t.value.errClass &&
|
|
2343
|
+
setup(o) {
|
|
2344
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = te(), { t: s } = ue(), c = () => {
|
|
2345
|
+
t != null && t.value.errClass && a && se(a);
|
|
2202
2346
|
};
|
|
2203
|
-
return (
|
|
2204
|
-
var
|
|
2205
|
-
return
|
|
2206
|
-
class: [[((
|
|
2207
|
-
onBlur:
|
|
2347
|
+
return (r, p) => {
|
|
2348
|
+
var i;
|
|
2349
|
+
return u(), k(l(ca), N({
|
|
2350
|
+
class: [[((i = l(t)) == null ? void 0 : i.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
2351
|
+
onBlur: c,
|
|
2208
2352
|
"allow-clear": !1,
|
|
2209
|
-
placeholder: "
|
|
2210
|
-
},
|
|
2353
|
+
placeholder: l(s)("webui.common.placeholder", [l(e)])
|
|
2354
|
+
}, r.$attrs), null, 16, ["class", "placeholder"]);
|
|
2211
2355
|
};
|
|
2212
2356
|
}
|
|
2213
|
-
}),
|
|
2357
|
+
}), $l = { class: "flex flex-col gap-2" }, Dl = { key: 1 }, Lr = /* @__PURE__ */ L({
|
|
2214
2358
|
__name: "index",
|
|
2215
2359
|
props: {
|
|
2216
2360
|
value: {},
|
|
@@ -2221,108 +2365,107 @@ const gr = /* @__PURE__ */ E({
|
|
|
2221
2365
|
valueHolder: {}
|
|
2222
2366
|
},
|
|
2223
2367
|
emits: ["update:value"],
|
|
2224
|
-
setup(
|
|
2225
|
-
const e =
|
|
2226
|
-
let
|
|
2227
|
-
const
|
|
2228
|
-
e.selectList && e.selectList.length > 0 ?
|
|
2368
|
+
setup(o, { emit: a }) {
|
|
2369
|
+
const e = o, t = a, s = T(!(e.selectList && e.selectList.length > 0)), c = T([]);
|
|
2370
|
+
let r = !1;
|
|
2371
|
+
const p = () => {
|
|
2372
|
+
e.selectList && e.selectList.length > 0 ? c.value = e.selectList.map((m) => ({
|
|
2229
2373
|
id: Date.now() + Math.random(),
|
|
2230
|
-
text:
|
|
2231
|
-
field:
|
|
2374
|
+
text: m.text,
|
|
2375
|
+
field: m.field,
|
|
2232
2376
|
// 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
|
|
2233
|
-
value: e.value[
|
|
2234
|
-
})) : e.value && Object.keys(e.value).length > 0 ?
|
|
2377
|
+
value: e.value[m.field] ?? m.value
|
|
2378
|
+
})) : e.value && Object.keys(e.value).length > 0 ? c.value = Object.entries(e.value).filter(([m]) => !e.ignoreList || !e.ignoreList.includes(m)).map(([m, f]) => ({
|
|
2235
2379
|
id: Date.now() + Math.random(),
|
|
2236
|
-
field:
|
|
2237
|
-
value:
|
|
2238
|
-
})) :
|
|
2380
|
+
field: m,
|
|
2381
|
+
value: f
|
|
2382
|
+
})) : c.value = [];
|
|
2239
2383
|
};
|
|
2240
|
-
|
|
2384
|
+
M(
|
|
2241
2385
|
() => e.value,
|
|
2242
2386
|
() => {
|
|
2243
|
-
|
|
2387
|
+
r || p(), r = !1;
|
|
2244
2388
|
},
|
|
2245
2389
|
{ immediate: !0 }
|
|
2246
2390
|
);
|
|
2247
|
-
const
|
|
2248
|
-
let
|
|
2249
|
-
e.selectList && e.selectList.length > 0 ? (
|
|
2250
|
-
|
|
2251
|
-
})) : (
|
|
2252
|
-
(
|
|
2391
|
+
const { t: i } = ue(), d = () => {
|
|
2392
|
+
let m;
|
|
2393
|
+
e.selectList && e.selectList.length > 0 ? (m = { ...e.value }, c.value.forEach((f) => {
|
|
2394
|
+
f.field && (m[f.field] = f.value);
|
|
2395
|
+
})) : (m = c.value.reduce(
|
|
2396
|
+
(f, y) => (y.field && (f[y.field] = y.value), f),
|
|
2253
2397
|
{}
|
|
2254
|
-
), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((
|
|
2255
|
-
e.value[
|
|
2256
|
-
})),
|
|
2257
|
-
},
|
|
2258
|
-
|
|
2398
|
+
), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((f) => {
|
|
2399
|
+
e.value[f] !== void 0 && (m[f] = e.value[f]);
|
|
2400
|
+
})), r = !0, t("update:value", m);
|
|
2401
|
+
}, v = () => {
|
|
2402
|
+
c.value.push({
|
|
2259
2403
|
id: Date.now() + Math.random(),
|
|
2260
2404
|
field: "",
|
|
2261
2405
|
value: ""
|
|
2262
2406
|
});
|
|
2263
|
-
},
|
|
2264
|
-
|
|
2407
|
+
}, n = () => {
|
|
2408
|
+
d();
|
|
2265
2409
|
};
|
|
2266
|
-
return (
|
|
2267
|
-
(
|
|
2268
|
-
key:
|
|
2410
|
+
return (m, f) => (u(), x("div", $l, [
|
|
2411
|
+
(u(!0), x(U, null, j(c.value, (y) => (u(), x("div", {
|
|
2412
|
+
key: y.id,
|
|
2269
2413
|
class: "flex items-center gap-2"
|
|
2270
2414
|
}, [
|
|
2271
2415
|
I("div", {
|
|
2272
|
-
class:
|
|
2416
|
+
class: R([m.fieldWidth ? `w-[${m.fieldWidth}%]` : "w-[33%]"])
|
|
2273
2417
|
}, [
|
|
2274
|
-
!
|
|
2418
|
+
!m.selectList || m.selectList.length === 0 ? (u(), k(l(me), {
|
|
2275
2419
|
key: 0,
|
|
2276
|
-
value:
|
|
2277
|
-
"onUpdate:value": (
|
|
2278
|
-
title:
|
|
2420
|
+
value: y.field,
|
|
2421
|
+
"onUpdate:value": (S) => y.field = S,
|
|
2422
|
+
title: y.text || y.field,
|
|
2279
2423
|
class: "w-full",
|
|
2280
|
-
placeholder:
|
|
2281
|
-
onInput:
|
|
2282
|
-
disabled: !
|
|
2283
|
-
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (
|
|
2284
|
-
|
|
2285
|
-
value:
|
|
2286
|
-
"onUpdate:value": (
|
|
2287
|
-
title:
|
|
2424
|
+
placeholder: y.text || m.labelHolder || l(i)("webui.components.form.propEditor.configName"),
|
|
2425
|
+
onInput: n,
|
|
2426
|
+
disabled: !s.value
|
|
2427
|
+
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (u(), x("div", Dl, [
|
|
2428
|
+
F(l(me), {
|
|
2429
|
+
value: y.text,
|
|
2430
|
+
"onUpdate:value": (S) => y.text = S,
|
|
2431
|
+
title: y.text,
|
|
2288
2432
|
disabled: !0,
|
|
2289
2433
|
class: "w-[100%]"
|
|
2290
2434
|
}, null, 8, ["value", "onUpdate:value", "title"]),
|
|
2291
|
-
|
|
2435
|
+
F(l(me), {
|
|
2292
2436
|
type: "hidden",
|
|
2293
|
-
value:
|
|
2294
|
-
"onUpdate:value": (
|
|
2437
|
+
value: y.field,
|
|
2438
|
+
"onUpdate:value": (S) => y.field = S
|
|
2295
2439
|
}, null, 8, ["value", "onUpdate:value"])
|
|
2296
2440
|
]))
|
|
2297
2441
|
], 2),
|
|
2298
|
-
|
|
2442
|
+
f[0] || (f[0] = I("div", { class: "w-[3%]" }, "=", -1)),
|
|
2299
2443
|
I("div", {
|
|
2300
|
-
class:
|
|
2444
|
+
class: R([m.fieldWidth ? `w-[${97 - m.fieldWidth}%]` : "w-[64%]"])
|
|
2301
2445
|
}, [
|
|
2302
|
-
|
|
2303
|
-
value:
|
|
2304
|
-
"onUpdate:value": (
|
|
2305
|
-
placeholder:
|
|
2306
|
-
onInput:
|
|
2307
|
-
title:
|
|
2446
|
+
F(l(me), {
|
|
2447
|
+
value: y.value,
|
|
2448
|
+
"onUpdate:value": (S) => y.value = S,
|
|
2449
|
+
placeholder: m.valueHolder || l(i)("webui.common.placeholder", [y.text || l(i)("webui.components.form.propEditor.configValue")]),
|
|
2450
|
+
onInput: n,
|
|
2451
|
+
title: y.value
|
|
2308
2452
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
2309
2453
|
], 2)
|
|
2310
2454
|
]))), 128)),
|
|
2311
|
-
|
|
2455
|
+
s.value ? (u(), k(l(vt), {
|
|
2312
2456
|
key: 0,
|
|
2313
|
-
onClick:
|
|
2457
|
+
onClick: v,
|
|
2314
2458
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
2315
2459
|
size: "small"
|
|
2316
2460
|
}, {
|
|
2317
|
-
default:
|
|
2318
|
-
|
|
2319
|
-
])
|
|
2320
|
-
_: 1
|
|
2321
|
-
|
|
2322
|
-
})) : k("", !0)
|
|
2461
|
+
default: _(() => [
|
|
2462
|
+
Y(E(l(i)("webui.components.form.propEditor.addConfigRow")), 1)
|
|
2463
|
+
]),
|
|
2464
|
+
_: 1
|
|
2465
|
+
})) : C("", !0)
|
|
2323
2466
|
]));
|
|
2324
2467
|
}
|
|
2325
|
-
}),
|
|
2468
|
+
}), Fl = /* @__PURE__ */ ie(jt, [["__scopeId", "data-v-89ba1c83"]]), Ur = /* @__PURE__ */ L({
|
|
2326
2469
|
__name: "radioStatus",
|
|
2327
2470
|
props: {
|
|
2328
2471
|
/**
|
|
@@ -2349,14 +2492,14 @@ const gr = /* @__PURE__ */ E({
|
|
|
2349
2492
|
required: !1
|
|
2350
2493
|
}
|
|
2351
2494
|
},
|
|
2352
|
-
setup(
|
|
2353
|
-
const
|
|
2354
|
-
return
|
|
2355
|
-
label: "
|
|
2356
|
-
value:
|
|
2357
|
-
}), (t,
|
|
2495
|
+
setup(o) {
|
|
2496
|
+
const a = o, e = T(JSON.parse(JSON.stringify(ze.getOptions(a.dataKey))));
|
|
2497
|
+
return a.all === !0 && e.value.unshift({
|
|
2498
|
+
label: w("webui.components.form.radio.all"),
|
|
2499
|
+
value: a.allValue || [0, 1]
|
|
2500
|
+
}), (t, s) => (u(), k(Fl, { data: e.value }, null, 8, ["data"]));
|
|
2358
2501
|
}
|
|
2359
|
-
}),
|
|
2502
|
+
}), Mr = /* @__PURE__ */ L({
|
|
2360
2503
|
__name: "index",
|
|
2361
2504
|
props: {
|
|
2362
2505
|
startDate: {},
|
|
@@ -2364,75 +2507,75 @@ const gr = /* @__PURE__ */ E({
|
|
|
2364
2507
|
valueFormat: { default: "YYYY-MM-DD" }
|
|
2365
2508
|
},
|
|
2366
2509
|
emits: ["update:startDate", "update:endDate"],
|
|
2367
|
-
setup(
|
|
2368
|
-
const e =
|
|
2369
|
-
const
|
|
2370
|
-
if (!(!
|
|
2510
|
+
setup(o, { emit: a }) {
|
|
2511
|
+
const e = o, t = a, s = te(), { errInfo: c } = s, r = K(() => e.valueFormat), p = K(() => {
|
|
2512
|
+
const d = e.startDate, v = e.endDate;
|
|
2513
|
+
if (!(!d || !v))
|
|
2371
2514
|
try {
|
|
2372
|
-
const
|
|
2373
|
-
return !
|
|
2515
|
+
const n = Ne(d), m = Ne(v);
|
|
2516
|
+
return !n.isValid() || !m.isValid() ? void 0 : [n, m];
|
|
2374
2517
|
} catch {
|
|
2375
2518
|
return;
|
|
2376
2519
|
}
|
|
2377
|
-
}),
|
|
2378
|
-
if (!
|
|
2520
|
+
}), i = (d, v) => {
|
|
2521
|
+
if (!d || !v || v.length !== 2) {
|
|
2379
2522
|
t("update:startDate", null), t("update:endDate", null);
|
|
2380
2523
|
return;
|
|
2381
2524
|
}
|
|
2382
2525
|
t("update:startDate", v[0] || null), t("update:endDate", v[1] || null);
|
|
2383
2526
|
};
|
|
2384
|
-
return (
|
|
2385
|
-
var
|
|
2386
|
-
return
|
|
2387
|
-
class:
|
|
2388
|
-
locale:
|
|
2389
|
-
"value-format":
|
|
2390
|
-
value:
|
|
2391
|
-
onChange:
|
|
2527
|
+
return (d, v) => {
|
|
2528
|
+
var n;
|
|
2529
|
+
return u(), k(l(ua), {
|
|
2530
|
+
class: R([((n = l(c)) == null ? void 0 : n.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
2531
|
+
locale: l(Fe),
|
|
2532
|
+
"value-format": r.value,
|
|
2533
|
+
value: p.value,
|
|
2534
|
+
onChange: i
|
|
2392
2535
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
2393
2536
|
};
|
|
2394
2537
|
}
|
|
2395
|
-
}),
|
|
2538
|
+
}), Nr = /* @__PURE__ */ ie(Vt, [["__scopeId", "data-v-f95d8895"]]), Rr = /* @__PURE__ */ L({
|
|
2396
2539
|
__name: "index",
|
|
2397
|
-
setup(
|
|
2398
|
-
const { t:
|
|
2399
|
-
|
|
2540
|
+
setup(o) {
|
|
2541
|
+
const { t: a } = ue(), { editorCtrl: e, labelText: t, errInfo: s } = te(), c = () => {
|
|
2542
|
+
s != null && s.value.errClass && e && se(e);
|
|
2400
2543
|
};
|
|
2401
|
-
return (
|
|
2402
|
-
var
|
|
2403
|
-
return
|
|
2404
|
-
class: ((
|
|
2544
|
+
return (r, p) => {
|
|
2545
|
+
var i;
|
|
2546
|
+
return u(), k(l(da), N({
|
|
2547
|
+
class: ((i = l(s)) == null ? void 0 : i.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
2405
2548
|
"allow-clear": !0,
|
|
2406
|
-
placeholder: a
|
|
2407
|
-
onBlur:
|
|
2408
|
-
onKeyup:
|
|
2549
|
+
placeholder: l(a)("webui.common.placeholder", [l(t)]),
|
|
2550
|
+
onBlur: c,
|
|
2551
|
+
onKeyup: p[0] || (p[0] = Ge(ge(() => {
|
|
2409
2552
|
}, ["stop"]), ["enter", "native"])),
|
|
2410
|
-
onKeydown:
|
|
2553
|
+
onKeydown: p[1] || (p[1] = Ge(ge(() => {
|
|
2411
2554
|
}, ["stop"]), ["enter", "native"]))
|
|
2412
|
-
},
|
|
2555
|
+
}, r.$attrs), null, 16, ["class", "placeholder"]);
|
|
2413
2556
|
};
|
|
2414
2557
|
}
|
|
2415
|
-
}),
|
|
2558
|
+
}), Br = /* @__PURE__ */ L({
|
|
2416
2559
|
__name: "index",
|
|
2417
2560
|
props: {
|
|
2418
2561
|
valueFormat: {}
|
|
2419
2562
|
},
|
|
2420
|
-
setup(
|
|
2421
|
-
const
|
|
2422
|
-
|
|
2423
|
-
},
|
|
2424
|
-
return (
|
|
2425
|
-
var
|
|
2426
|
-
return
|
|
2427
|
-
class:
|
|
2428
|
-
placeholder: "
|
|
2429
|
-
locale:
|
|
2430
|
-
valueFormat:
|
|
2431
|
-
onBlur:
|
|
2563
|
+
setup(o) {
|
|
2564
|
+
const a = o, { editorCtrl: e, labelText: t, errInfo: s } = te(), { t: c } = ue(), r = () => {
|
|
2565
|
+
s != null && s.value.errClass && e && se(e);
|
|
2566
|
+
}, p = T(a.valueFormat ?? "HH:mm");
|
|
2567
|
+
return (i, d) => {
|
|
2568
|
+
var v;
|
|
2569
|
+
return u(), k(l(pa), {
|
|
2570
|
+
class: R(["w-full", [((v = l(s)) == null ? void 0 : v.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
2571
|
+
placeholder: l(c)("webui.common.pleaseSelect") + l(t),
|
|
2572
|
+
locale: l(Fe),
|
|
2573
|
+
valueFormat: p.value,
|
|
2574
|
+
onBlur: r
|
|
2432
2575
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
2433
2576
|
};
|
|
2434
2577
|
}
|
|
2435
|
-
}),
|
|
2578
|
+
}), Pl = /* @__PURE__ */ L({
|
|
2436
2579
|
__name: "index",
|
|
2437
2580
|
props: {
|
|
2438
2581
|
autoload: { type: Boolean },
|
|
@@ -2441,46 +2584,46 @@ const gr = /* @__PURE__ */ E({
|
|
|
2441
2584
|
value: {}
|
|
2442
2585
|
},
|
|
2443
2586
|
emits: ["change", "update:value"],
|
|
2444
|
-
setup(
|
|
2445
|
-
const e =
|
|
2446
|
-
e.value && e.value.every((
|
|
2447
|
-
|
|
2448
|
-
}),
|
|
2587
|
+
setup(o, { emit: a }) {
|
|
2588
|
+
const e = o, t = T({ ...e.url }), { editorCtrl: s, labelText: c, errInfo: r } = te(), p = a, i = T([]), d = T([]);
|
|
2589
|
+
e.value && e.value.every((n) => {
|
|
2590
|
+
d.value.push(n.toString());
|
|
2591
|
+
}), M(
|
|
2449
2592
|
() => e.value,
|
|
2450
|
-
(
|
|
2451
|
-
|
|
2593
|
+
(n) => {
|
|
2594
|
+
n && (d.value = n);
|
|
2452
2595
|
}
|
|
2453
2596
|
);
|
|
2454
|
-
const v = (
|
|
2455
|
-
|
|
2597
|
+
const v = (n) => {
|
|
2598
|
+
p("update:value", n), p("change", n), d.value = n, r != null && r.value.errClass && s && se(s);
|
|
2456
2599
|
};
|
|
2457
|
-
return
|
|
2600
|
+
return le(async () => {
|
|
2458
2601
|
if (t.value) {
|
|
2459
|
-
const
|
|
2460
|
-
if (t.value.api || (t.value.api =
|
|
2461
|
-
const m = await
|
|
2602
|
+
const n = s == null ? void 0 : s.page;
|
|
2603
|
+
if (t.value.api || (t.value.api = n == null ? void 0 : n.api), t.value.authorize === void 0 && (t.value.authorize = n == null ? void 0 : n.authorize), e.autoload) {
|
|
2604
|
+
const m = await st(s, {
|
|
2462
2605
|
urlKey: "list",
|
|
2463
2606
|
url: { ...t.value, url: t.value.url },
|
|
2464
2607
|
loadingText: !1,
|
|
2465
2608
|
params: e.params
|
|
2466
2609
|
});
|
|
2467
|
-
|
|
2610
|
+
i.value = (m == null ? void 0 : m.data) ?? [];
|
|
2468
2611
|
}
|
|
2469
2612
|
}
|
|
2470
|
-
}), (
|
|
2471
|
-
var
|
|
2472
|
-
return
|
|
2473
|
-
class: ((
|
|
2474
|
-
placeholder:
|
|
2475
|
-
targetKeys:
|
|
2613
|
+
}), (n, m) => {
|
|
2614
|
+
var f;
|
|
2615
|
+
return u(), k(l(fa), N({
|
|
2616
|
+
class: ((f = l(r)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
2617
|
+
placeholder: l(w)("webui.components.form.transfer.pleaseInput", [l(c)]),
|
|
2618
|
+
targetKeys: d.value,
|
|
2476
2619
|
onChange: v
|
|
2477
|
-
},
|
|
2478
|
-
children:
|
|
2479
|
-
|
|
2480
|
-
direction:
|
|
2481
|
-
disabled:
|
|
2620
|
+
}, n.$attrs), {
|
|
2621
|
+
children: _(({ direction: y, disabled: S, filteredItems: b, onItemSelectAll: $, onItemSelect: g, selectedKeys: h }) => [
|
|
2622
|
+
O(n.$slots, "children", {
|
|
2623
|
+
direction: y,
|
|
2624
|
+
disabled: S,
|
|
2482
2625
|
filteredItems: b,
|
|
2483
|
-
onItemSelectAll:
|
|
2626
|
+
onItemSelectAll: $,
|
|
2484
2627
|
onItemSelect: g,
|
|
2485
2628
|
selectedKeys: h
|
|
2486
2629
|
})
|
|
@@ -2489,7 +2632,7 @@ const gr = /* @__PURE__ */ E({
|
|
|
2489
2632
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
2490
2633
|
};
|
|
2491
2634
|
}
|
|
2492
|
-
}),
|
|
2635
|
+
}), Ar = /* @__PURE__ */ L({
|
|
2493
2636
|
__name: "transferTable",
|
|
2494
2637
|
props: {
|
|
2495
2638
|
/**
|
|
@@ -2515,79 +2658,79 @@ const gr = /* @__PURE__ */ E({
|
|
|
2515
2658
|
}
|
|
2516
2659
|
},
|
|
2517
2660
|
emits: ["update:value"],
|
|
2518
|
-
setup(
|
|
2519
|
-
const e =
|
|
2520
|
-
|
|
2521
|
-
() =>
|
|
2522
|
-
(
|
|
2523
|
-
t("update:value",
|
|
2661
|
+
setup(o, { emit: a }) {
|
|
2662
|
+
const e = o, t = a, s = T(e.autoload), c = T(e.value), r = T(e.gridCtrl.primaryKey);
|
|
2663
|
+
M(
|
|
2664
|
+
() => c.value,
|
|
2665
|
+
(d) => {
|
|
2666
|
+
t("update:value", d);
|
|
2524
2667
|
}
|
|
2525
|
-
),
|
|
2668
|
+
), M(
|
|
2526
2669
|
() => e.value,
|
|
2527
|
-
(
|
|
2528
|
-
|
|
2670
|
+
(d) => {
|
|
2671
|
+
d && (c.value = d);
|
|
2529
2672
|
}
|
|
2530
|
-
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable =
|
|
2531
|
-
const
|
|
2532
|
-
getCheckboxProps: (
|
|
2673
|
+
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = T(!0), e.gridCtrl.buttons = T([]), e.gridCtrl.tools = [];
|
|
2674
|
+
const p = ({ disabled: d, selectedKeys: v, onItemSelectAll: n, onItemSelect: m }) => ({
|
|
2675
|
+
getCheckboxProps: (f) => ({
|
|
2533
2676
|
// 控制是否禁止
|
|
2534
|
-
disabled:
|
|
2677
|
+
disabled: d || f.disabled
|
|
2535
2678
|
}),
|
|
2536
|
-
onSelectAll(
|
|
2537
|
-
const
|
|
2538
|
-
|
|
2679
|
+
onSelectAll(f, y) {
|
|
2680
|
+
const S = y.filter((b) => !b.disabled).map(({ [r.value]: b }) => b);
|
|
2681
|
+
n(S, f);
|
|
2539
2682
|
},
|
|
2540
|
-
onSelect({ [
|
|
2541
|
-
m(
|
|
2683
|
+
onSelect({ [r.value]: f }, y) {
|
|
2684
|
+
m(f, y);
|
|
2542
2685
|
},
|
|
2543
2686
|
selectedRowKeys: v
|
|
2544
|
-
}),
|
|
2545
|
-
return
|
|
2546
|
-
if (
|
|
2547
|
-
const
|
|
2687
|
+
}), i = T([]);
|
|
2688
|
+
return le(async () => {
|
|
2689
|
+
if (s.value) {
|
|
2690
|
+
const d = await st(e.gridCtrl, {
|
|
2548
2691
|
urlKey: "list",
|
|
2549
2692
|
url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
|
|
2550
2693
|
params: e.gridCtrl.gridQuery,
|
|
2551
2694
|
loadingText: !1
|
|
2552
2695
|
});
|
|
2553
|
-
|
|
2696
|
+
i.value = (d == null ? void 0 : d.data) ?? [];
|
|
2554
2697
|
}
|
|
2555
|
-
}), (
|
|
2556
|
-
"data-source":
|
|
2557
|
-
"row-key": (
|
|
2558
|
-
value:
|
|
2559
|
-
"onUpdate:value": v[0] || (v[0] = (
|
|
2698
|
+
}), (d, v) => (u(), k(Pl, N({
|
|
2699
|
+
"data-source": i.value,
|
|
2700
|
+
"row-key": (n) => n[r.value],
|
|
2701
|
+
value: c.value,
|
|
2702
|
+
"onUpdate:value": v[0] || (v[0] = (n) => c.value = n),
|
|
2560
2703
|
"list-style": {
|
|
2561
2704
|
width: "300px",
|
|
2562
2705
|
height: "500px"
|
|
2563
2706
|
},
|
|
2564
2707
|
"show-select-all": !1,
|
|
2565
2708
|
"show-search": !0,
|
|
2566
|
-
"filter-option": (
|
|
2567
|
-
for (const
|
|
2568
|
-
if (m[
|
|
2709
|
+
"filter-option": (n, m) => {
|
|
2710
|
+
for (const f of e.gridCtrl.columns.value)
|
|
2711
|
+
if (m[f.dataIndex].toString().indexOf(n) !== -1)
|
|
2569
2712
|
return !0;
|
|
2570
2713
|
return !1;
|
|
2571
2714
|
}
|
|
2572
|
-
},
|
|
2573
|
-
children:
|
|
2574
|
-
|
|
2575
|
-
columns:
|
|
2576
|
-
"row-key":
|
|
2577
|
-
"row-selection":
|
|
2715
|
+
}, d.$attrs), {
|
|
2716
|
+
children: _(({ filteredItems: n, onItemSelectAll: m, onItemSelect: f, selectedKeys: y }) => [
|
|
2717
|
+
F(l(mt), {
|
|
2718
|
+
columns: o.gridCtrl.columns.value,
|
|
2719
|
+
"row-key": r.value,
|
|
2720
|
+
"row-selection": p({
|
|
2578
2721
|
disabled: !1,
|
|
2579
|
-
selectedKeys:
|
|
2722
|
+
selectedKeys: y,
|
|
2580
2723
|
onItemSelectAll: m,
|
|
2581
|
-
onItemSelect:
|
|
2724
|
+
onItemSelect: f
|
|
2582
2725
|
}),
|
|
2583
2726
|
bordered: !1,
|
|
2584
2727
|
size: "small",
|
|
2585
|
-
"data-source":
|
|
2728
|
+
"data-source": n,
|
|
2586
2729
|
scroll: { x: 300 },
|
|
2587
|
-
"custom-row": (
|
|
2730
|
+
"custom-row": (S) => ({
|
|
2588
2731
|
onClick: () => {
|
|
2589
|
-
const b =
|
|
2590
|
-
|
|
2732
|
+
const b = S[r.value];
|
|
2733
|
+
f(b, !y.includes(b));
|
|
2591
2734
|
}
|
|
2592
2735
|
})
|
|
2593
2736
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -2595,7 +2738,7 @@ const gr = /* @__PURE__ */ E({
|
|
|
2595
2738
|
_: 1
|
|
2596
2739
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
2597
2740
|
}
|
|
2598
|
-
}),
|
|
2741
|
+
}), Il = /* @__PURE__ */ L({
|
|
2599
2742
|
__name: "index",
|
|
2600
2743
|
props: {
|
|
2601
2744
|
multiple: {
|
|
@@ -2621,66 +2764,66 @@ const gr = /* @__PURE__ */ E({
|
|
|
2621
2764
|
}
|
|
2622
2765
|
},
|
|
2623
2766
|
emits: ["change", "update:value"],
|
|
2624
|
-
setup(
|
|
2625
|
-
const e =
|
|
2626
|
-
|
|
2627
|
-
const
|
|
2628
|
-
|
|
2767
|
+
setup(o, { emit: a }) {
|
|
2768
|
+
const e = o, t = e.value === void 0 ? !0 : e.undefValue, s = e.treeCtrl, c = te(), { errInfo: r, labelText: p } = c, i = a;
|
|
2769
|
+
c.inputEmit = i;
|
|
2770
|
+
const d = T([]), v = T();
|
|
2771
|
+
M(
|
|
2629
2772
|
() => e.value,
|
|
2630
|
-
(
|
|
2631
|
-
v.value =
|
|
2773
|
+
(f) => {
|
|
2774
|
+
v.value = f;
|
|
2632
2775
|
},
|
|
2633
2776
|
{ immediate: !0 }
|
|
2634
|
-
),
|
|
2777
|
+
), M(
|
|
2635
2778
|
() => v.value,
|
|
2636
|
-
(
|
|
2637
|
-
|
|
2779
|
+
(f) => {
|
|
2780
|
+
i("update:value", f);
|
|
2638
2781
|
}
|
|
2639
|
-
),
|
|
2640
|
-
() =>
|
|
2641
|
-
(
|
|
2642
|
-
|
|
2782
|
+
), M(
|
|
2783
|
+
() => s.data.value,
|
|
2784
|
+
(f) => {
|
|
2785
|
+
f && (d.value = s.fieldMap ? ye(s.fieldMap, f) : f);
|
|
2643
2786
|
},
|
|
2644
2787
|
{ immediate: !0 }
|
|
2645
2788
|
);
|
|
2646
|
-
const
|
|
2647
|
-
e.multiple ? v.value =
|
|
2789
|
+
const n = (f) => {
|
|
2790
|
+
e.multiple ? v.value = f ?? [] : f == null ? v.value = t ? void 0 : null : v.value = f, i("change", v.value);
|
|
2648
2791
|
};
|
|
2649
|
-
|
|
2792
|
+
Se(() => {
|
|
2650
2793
|
e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
|
|
2651
|
-
}),
|
|
2652
|
-
|
|
2794
|
+
}), le(() => {
|
|
2795
|
+
s.fieldMap || (s.fieldMap = {
|
|
2653
2796
|
label: "Name",
|
|
2654
2797
|
key: "Id",
|
|
2655
2798
|
value: "Id"
|
|
2656
|
-
}),
|
|
2799
|
+
}), s.data.value ? d.value = s.fieldMap ? ye(s.fieldMap, s.data.value) : s.data.value : e.treeCtrl.autoload && ot(e.treeCtrl);
|
|
2657
2800
|
});
|
|
2658
2801
|
const m = () => {
|
|
2659
2802
|
v.value = t ? void 0 : null;
|
|
2660
2803
|
};
|
|
2661
|
-
return (
|
|
2662
|
-
var
|
|
2663
|
-
return
|
|
2664
|
-
class: [[(
|
|
2804
|
+
return (f, y) => {
|
|
2805
|
+
var S;
|
|
2806
|
+
return u(), k(l(va), N({
|
|
2807
|
+
class: [[(S = l(r)) == null ? void 0 : S.errClass], "w-full"],
|
|
2665
2808
|
"tree-line": "",
|
|
2666
|
-
multiple:
|
|
2809
|
+
multiple: o.multiple,
|
|
2667
2810
|
"tree-default-expanded-keys": ["-"],
|
|
2668
2811
|
value: v.value,
|
|
2669
|
-
"onUpdate:value":
|
|
2670
|
-
"tree-data":
|
|
2671
|
-
placeholder: "
|
|
2672
|
-
onChange:
|
|
2812
|
+
"onUpdate:value": y[0] || (y[0] = (b) => v.value = b),
|
|
2813
|
+
"tree-data": d.value,
|
|
2814
|
+
placeholder: l(w)("webui.components.form.treeSelect.pleaseSelect", [l(p)]),
|
|
2815
|
+
onChange: n,
|
|
2673
2816
|
onClear: m
|
|
2674
|
-
},
|
|
2817
|
+
}, f.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2675
2818
|
};
|
|
2676
2819
|
}
|
|
2677
|
-
}),
|
|
2820
|
+
}), zr = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-d88b9e8a"]]), El = { class: "w-full mt-1" }, Ll = { class: "flex flex-wrap gap-2" }, Ul = ["onMouseenter"], Ml = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, Nl = ["src"], Rl = {
|
|
2678
2821
|
key: 0,
|
|
2679
2822
|
class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
|
|
2680
|
-
},
|
|
2823
|
+
}, Bl = ["onClick"], Al = { class: "text-sm ml-1" }, zl = ["onClick"], Ol = { class: "text-sm ml-1" }, Kl = {
|
|
2681
2824
|
key: 0,
|
|
2682
2825
|
class: "w-16 h-16"
|
|
2683
|
-
},
|
|
2826
|
+
}, jl = /* @__PURE__ */ L({
|
|
2684
2827
|
__name: "imageList",
|
|
2685
2828
|
props: {
|
|
2686
2829
|
autoUpload: { type: Boolean, default: !1 },
|
|
@@ -2699,172 +2842,172 @@ const gr = /* @__PURE__ */ E({
|
|
|
2699
2842
|
showDelete: { type: Boolean, default: !0 }
|
|
2700
2843
|
},
|
|
2701
2844
|
emits: ["update:file-list"],
|
|
2702
|
-
setup(
|
|
2703
|
-
const e =
|
|
2704
|
-
var
|
|
2705
|
-
return (
|
|
2706
|
-
}),
|
|
2845
|
+
setup(o, { emit: a }) {
|
|
2846
|
+
const e = o, t = te(), { errInfo: s } = t, { t: c } = ue(), r = T(e.fileList), p = T([]), i = T(), d = a, v = K(() => {
|
|
2847
|
+
var D;
|
|
2848
|
+
return (D = e.fileExt) != null && D.length ? e.fileExt.map((P) => `.${P}`).join(",") : "";
|
|
2849
|
+
}), n = (D) => {
|
|
2707
2850
|
var P;
|
|
2708
2851
|
if (e.fileExt && e.fileExt.length > 0) {
|
|
2709
|
-
const q = ((P =
|
|
2852
|
+
const q = ((P = D.name.split(".").pop()) == null ? void 0 : P.toLowerCase()) || "";
|
|
2710
2853
|
if (!e.fileExt.includes(q))
|
|
2711
|
-
return
|
|
2854
|
+
return ae.error(c("webui.components.form.upload.unsupportedFileType")), !1;
|
|
2712
2855
|
}
|
|
2713
|
-
return
|
|
2714
|
-
},
|
|
2715
|
-
const P =
|
|
2716
|
-
return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey =
|
|
2717
|
-
},
|
|
2718
|
-
if (
|
|
2719
|
-
const P = [...
|
|
2856
|
+
return D.size / 1024 / 1024 > e.maxFileSize ? (ae.error(c("webui.components.form.upload.fileSizeExceeded", [e.maxFileSize])), !1) : !0;
|
|
2857
|
+
}, m = () => e.maxCount > 1 && r.value.length >= e.maxCount, f = (D) => {
|
|
2858
|
+
const P = D;
|
|
2859
|
+
return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey = Ve.join("/", e.parentPath, P.name)), P;
|
|
2860
|
+
}, y = (D) => n(D) && e.autoUpload, S = async (D) => {
|
|
2861
|
+
if (D.length === 0) return;
|
|
2862
|
+
const P = [...r.value];
|
|
2720
2863
|
let q = !1;
|
|
2721
|
-
for (const Z of
|
|
2722
|
-
if (!
|
|
2864
|
+
for (const Z of D) {
|
|
2865
|
+
if (!n(Z)) {
|
|
2723
2866
|
q = !0;
|
|
2724
2867
|
continue;
|
|
2725
2868
|
}
|
|
2726
|
-
const H =
|
|
2869
|
+
const H = f(Z);
|
|
2727
2870
|
if (e.maxCount === 1) {
|
|
2728
2871
|
P.length = 0, P.push(H);
|
|
2729
2872
|
break;
|
|
2730
2873
|
}
|
|
2731
|
-
if (
|
|
2732
|
-
|
|
2874
|
+
if (m()) {
|
|
2875
|
+
ae.error(c("webui.components.form.upload.maxFileCount", [e.maxCount])), q = !0;
|
|
2733
2876
|
break;
|
|
2734
2877
|
}
|
|
2735
|
-
const
|
|
2736
|
-
|
|
2878
|
+
const re = P.findIndex((Ie) => Ie.name === H.name);
|
|
2879
|
+
re > -1 ? P[re] = H : P.push(H);
|
|
2737
2880
|
}
|
|
2738
|
-
(!q || P.length > 0) && (
|
|
2739
|
-
},
|
|
2740
|
-
|
|
2741
|
-
},
|
|
2742
|
-
accept:
|
|
2881
|
+
(!q || P.length > 0) && (r.value = P), p.value = [];
|
|
2882
|
+
}, b = (D) => {
|
|
2883
|
+
p.value = D, S(D);
|
|
2884
|
+
}, $ = K(() => ({
|
|
2885
|
+
accept: v.value,
|
|
2743
2886
|
multiple: e.maxCount !== 1,
|
|
2744
|
-
fileList:
|
|
2745
|
-
"onUpdate:fileList":
|
|
2746
|
-
beforeUpload:
|
|
2887
|
+
fileList: p.value,
|
|
2888
|
+
"onUpdate:fileList": b,
|
|
2889
|
+
beforeUpload: y,
|
|
2747
2890
|
listType: "text",
|
|
2748
2891
|
showUploadList: !1,
|
|
2749
2892
|
customRequest: async () => {
|
|
2750
2893
|
if (e.autoUpload && e.uploadUrl)
|
|
2751
|
-
for (const
|
|
2752
|
-
|
|
2894
|
+
for (const D of r.value)
|
|
2895
|
+
D.percent === 0 && await Gt(e.uploadUrl, D);
|
|
2753
2896
|
}
|
|
2754
2897
|
}));
|
|
2755
|
-
|
|
2898
|
+
M(
|
|
2756
2899
|
() => e.fileList,
|
|
2757
|
-
(
|
|
2758
|
-
|
|
2900
|
+
(D) => {
|
|
2901
|
+
r.value = D;
|
|
2759
2902
|
},
|
|
2760
2903
|
{ deep: !0, immediate: !0 }
|
|
2761
|
-
),
|
|
2762
|
-
() =>
|
|
2763
|
-
(
|
|
2764
|
-
|
|
2904
|
+
), M(
|
|
2905
|
+
() => r.value,
|
|
2906
|
+
(D) => {
|
|
2907
|
+
d("update:file-list", D);
|
|
2765
2908
|
},
|
|
2766
2909
|
{ deep: !0 }
|
|
2767
|
-
),
|
|
2910
|
+
), M(
|
|
2768
2911
|
() => e.parentPath,
|
|
2769
|
-
(
|
|
2770
|
-
|
|
2771
|
-
P.params.FileKey =
|
|
2912
|
+
(D) => {
|
|
2913
|
+
D && r.value.forEach((P) => {
|
|
2914
|
+
P.params.FileKey = Ve.join("/", D, P.fileName);
|
|
2772
2915
|
});
|
|
2773
2916
|
}
|
|
2774
2917
|
);
|
|
2775
|
-
const
|
|
2776
|
-
const P =
|
|
2777
|
-
|
|
2778
|
-
},
|
|
2779
|
-
const P =
|
|
2780
|
-
e.deleteUrl && P.minioFile && P.minioFile.Key ?
|
|
2918
|
+
const g = T(!1), h = T(""), B = (D) => {
|
|
2919
|
+
const P = r.value[D];
|
|
2920
|
+
h.value = z(P), g.value = !0;
|
|
2921
|
+
}, G = (D) => {
|
|
2922
|
+
const P = r.value[D];
|
|
2923
|
+
e.deleteUrl && P.minioFile && P.minioFile.Key ? Oe(e.deleteUrl, {
|
|
2781
2924
|
Query: {
|
|
2782
2925
|
FileKey: P.minioFile.Key
|
|
2783
2926
|
}
|
|
2784
2927
|
}).then((q) => {
|
|
2785
|
-
q && q.status ===
|
|
2786
|
-
}) :
|
|
2787
|
-
},
|
|
2788
|
-
if (
|
|
2789
|
-
return URL.createObjectURL(
|
|
2790
|
-
if (
|
|
2791
|
-
const P =
|
|
2792
|
-
return
|
|
2928
|
+
q && q.status === Ke.SUCCESS && (ae.success(c("webui.common.success")), r.value.splice(D, 1));
|
|
2929
|
+
}) : r.value.splice(D, 1);
|
|
2930
|
+
}, A = T(/* @__PURE__ */ new Map()), z = (D) => {
|
|
2931
|
+
if (D.originFileObj)
|
|
2932
|
+
return URL.createObjectURL(D.originFileObj);
|
|
2933
|
+
if (D.minioFile) {
|
|
2934
|
+
const P = D.minioFile.Key;
|
|
2935
|
+
return A.value.has(P) ? A.value.get(P) : (Tt(D), "");
|
|
2793
2936
|
}
|
|
2794
2937
|
return "";
|
|
2795
|
-
},
|
|
2796
|
-
if (!
|
|
2797
|
-
const P =
|
|
2938
|
+
}, Tt = async (D) => {
|
|
2939
|
+
if (!D.minioFile || !e.previewUrl) return;
|
|
2940
|
+
const P = D.minioFile.Key;
|
|
2798
2941
|
try {
|
|
2799
|
-
const q = `${e.previewUrl.url}?FileKey=${encodeURIComponent(
|
|
2942
|
+
const q = `${e.previewUrl.url}?FileKey=${encodeURIComponent(D.minioFile.Key)}`, Z = Wt() ? await Yt.getToken() : Be().getToken(), H = await fetch(q, {
|
|
2800
2943
|
method: "GET",
|
|
2801
2944
|
headers: {
|
|
2802
2945
|
Authorization: `Bearer ${Z}`
|
|
2803
2946
|
}
|
|
2804
2947
|
});
|
|
2805
2948
|
if (H.ok) {
|
|
2806
|
-
const
|
|
2807
|
-
|
|
2949
|
+
const re = await H.blob(), Ie = URL.createObjectURL(re);
|
|
2950
|
+
A.value.set(P, Ie);
|
|
2808
2951
|
} else
|
|
2809
2952
|
console.error("加载图片失败:", H.status);
|
|
2810
2953
|
} catch (q) {
|
|
2811
2954
|
console.error("加载图片失败:", q);
|
|
2812
2955
|
}
|
|
2813
|
-
},
|
|
2814
|
-
return (
|
|
2956
|
+
}, $t = K(() => r.value.length < e.maxCount), Pe = T(-1);
|
|
2957
|
+
return (D, P) => {
|
|
2815
2958
|
const q = ne("auth");
|
|
2816
|
-
return
|
|
2817
|
-
I("div",
|
|
2818
|
-
(
|
|
2959
|
+
return u(), x("div", El, [
|
|
2960
|
+
I("div", Ll, [
|
|
2961
|
+
(u(!0), x(U, null, j(r.value, (Z, H) => (u(), x("div", {
|
|
2819
2962
|
key: H,
|
|
2820
2963
|
class: "relative image-item",
|
|
2821
|
-
onMouseenter: (
|
|
2822
|
-
onMouseleave: P[0] || (P[0] = (
|
|
2964
|
+
onMouseenter: (re) => Pe.value = H,
|
|
2965
|
+
onMouseleave: P[0] || (P[0] = (re) => Pe.value = -1)
|
|
2823
2966
|
}, [
|
|
2824
|
-
I("div",
|
|
2967
|
+
I("div", Ml, [
|
|
2825
2968
|
I("img", {
|
|
2826
2969
|
src: z(Z),
|
|
2827
2970
|
class: "w-full h-full object-cover"
|
|
2828
|
-
}, null, 8,
|
|
2971
|
+
}, null, 8, Nl)
|
|
2829
2972
|
]),
|
|
2830
|
-
|
|
2831
|
-
|
|
2973
|
+
Pe.value === H ? (u(), x("div", Rl, [
|
|
2974
|
+
D.previewUrl ? (u(), x("div", {
|
|
2832
2975
|
key: 0,
|
|
2833
2976
|
class: "flex items-center text-white cursor-pointer hover:text-blue-400",
|
|
2834
|
-
onClick: (
|
|
2977
|
+
onClick: (re) => B(H)
|
|
2835
2978
|
}, [
|
|
2836
|
-
|
|
2979
|
+
F(l(V), {
|
|
2837
2980
|
icon: "icon-eye",
|
|
2838
2981
|
clickable: ""
|
|
2839
2982
|
}),
|
|
2840
|
-
|
|
2841
|
-
], 8,
|
|
2842
|
-
|
|
2983
|
+
I("span", Al, E(l(c)("webui.components.form.upload.preview")), 1)
|
|
2984
|
+
], 8, Bl)) : C("", !0),
|
|
2985
|
+
D.showDelete !== !1 ? (u(), x("div", {
|
|
2843
2986
|
key: 1,
|
|
2844
2987
|
class: "flex items-center text-white cursor-pointer hover:text-red-400",
|
|
2845
|
-
onClick: (
|
|
2988
|
+
onClick: (re) => G(H)
|
|
2846
2989
|
}, [
|
|
2847
|
-
|
|
2990
|
+
F(l(V), {
|
|
2848
2991
|
icon: "icon-new",
|
|
2849
2992
|
angle: 45,
|
|
2850
2993
|
clickable: ""
|
|
2851
2994
|
}),
|
|
2852
|
-
|
|
2853
|
-
], 8,
|
|
2854
|
-
])) :
|
|
2855
|
-
], 40,
|
|
2856
|
-
|
|
2857
|
-
Q((
|
|
2995
|
+
I("span", Ol, E(l(c)("webui.components.form.upload.delete")), 1)
|
|
2996
|
+
], 8, zl)) : C("", !0)
|
|
2997
|
+
])) : C("", !0)
|
|
2998
|
+
], 40, Ul))), 128)),
|
|
2999
|
+
$t.value ? (u(), x("div", Kl, [
|
|
3000
|
+
Q((u(), k(l(ma), N({
|
|
2858
3001
|
ref_key: "fileUploader",
|
|
2859
|
-
ref:
|
|
2860
|
-
},
|
|
2861
|
-
default:
|
|
3002
|
+
ref: i
|
|
3003
|
+
}, $.value), {
|
|
3004
|
+
default: _(() => {
|
|
2862
3005
|
var Z;
|
|
2863
3006
|
return [
|
|
2864
3007
|
I("div", {
|
|
2865
|
-
class:
|
|
3008
|
+
class: R(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(Z = l(s)) == null ? void 0 : Z.errClass]])
|
|
2866
3009
|
}, [
|
|
2867
|
-
|
|
3010
|
+
F(l(V), {
|
|
2868
3011
|
icon: "icon-new",
|
|
2869
3012
|
class: "text-gray-400 w-10 h-10"
|
|
2870
3013
|
})
|
|
@@ -2875,40 +3018,40 @@ const gr = /* @__PURE__ */ E({
|
|
|
2875
3018
|
}, 16)), [
|
|
2876
3019
|
[q, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
|
|
2877
3020
|
])
|
|
2878
|
-
])) :
|
|
3021
|
+
])) : C("", !0)
|
|
2879
3022
|
]),
|
|
2880
|
-
|
|
2881
|
-
preview: { visible:
|
|
2882
|
-
src:
|
|
3023
|
+
F(l(ga), {
|
|
3024
|
+
preview: { visible: g.value, onVisibleChange: (Z) => g.value = Z },
|
|
3025
|
+
src: h.value,
|
|
2883
3026
|
style: { display: "none" }
|
|
2884
3027
|
}, null, 8, ["preview", "src"])
|
|
2885
3028
|
]);
|
|
2886
3029
|
};
|
|
2887
3030
|
}
|
|
2888
|
-
}),
|
|
3031
|
+
}), Or = /* @__PURE__ */ ie(jl, [["__scopeId", "data-v-af93a59c"]]), Vl = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Yl = { class: "flex w-full h-full min-h-full" }, Gl = {
|
|
2889
3032
|
key: 0,
|
|
2890
3033
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2891
|
-
},
|
|
3034
|
+
}, Wl = { class: "flex-1 h-full overflow-y-auto" }, Kr = /* @__PURE__ */ L({
|
|
2892
3035
|
__name: "index",
|
|
2893
3036
|
props: {
|
|
2894
3037
|
left: { type: Boolean }
|
|
2895
3038
|
},
|
|
2896
|
-
setup(
|
|
2897
|
-
const { useToken:
|
|
2898
|
-
return (t,
|
|
2899
|
-
|
|
3039
|
+
setup(o) {
|
|
3040
|
+
const { useToken: a } = ct, { token: e } = a();
|
|
3041
|
+
return (t, s) => (u(), x("div", Vl, [
|
|
3042
|
+
F(l(ha), {
|
|
2900
3043
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2901
|
-
style:
|
|
2902
|
-
backgroundColor:
|
|
3044
|
+
style: je({
|
|
3045
|
+
backgroundColor: l(e).colorBgContainer
|
|
2903
3046
|
})
|
|
2904
3047
|
}, {
|
|
2905
|
-
default:
|
|
2906
|
-
I("div",
|
|
2907
|
-
t.left ? (
|
|
2908
|
-
|
|
2909
|
-
])) :
|
|
2910
|
-
I("div",
|
|
2911
|
-
|
|
3048
|
+
default: _(() => [
|
|
3049
|
+
I("div", Yl, [
|
|
3050
|
+
t.left ? (u(), x("div", Gl, [
|
|
3051
|
+
O(t.$slots, "left")
|
|
3052
|
+
])) : C("", !0),
|
|
3053
|
+
I("div", Wl, [
|
|
3054
|
+
O(t.$slots, "default")
|
|
2912
3055
|
])
|
|
2913
3056
|
])
|
|
2914
3057
|
]),
|
|
@@ -2918,168 +3061,170 @@ const gr = /* @__PURE__ */ E({
|
|
|
2918
3061
|
}
|
|
2919
3062
|
});
|
|
2920
3063
|
export {
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
3064
|
+
w as $t,
|
|
3065
|
+
Yo as Alert,
|
|
3066
|
+
ss as AppIcon,
|
|
3067
|
+
fe as AppRouter,
|
|
3068
|
+
Ro as AsyncUploader,
|
|
3069
|
+
Tr as AutoComplete,
|
|
3070
|
+
ns as Breadcrumb,
|
|
2928
3071
|
ee as Button,
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
3072
|
+
bt as Cache,
|
|
3073
|
+
Ia as CacheKeys,
|
|
3074
|
+
zo as CanPreviewFileExt,
|
|
3075
|
+
$r as Cascader,
|
|
3076
|
+
Dr as Checkbox,
|
|
3077
|
+
Kr as Content,
|
|
3078
|
+
Fr as DatePicker,
|
|
3079
|
+
is as Datetime,
|
|
3080
|
+
gs as Dialog,
|
|
3081
|
+
br as Drawer,
|
|
3082
|
+
Yr as EventPrefix,
|
|
3083
|
+
yr as Form,
|
|
3084
|
+
xr as FormItem,
|
|
3085
|
+
gr as Fullscreen,
|
|
3086
|
+
Me as GroupTools,
|
|
3087
|
+
cs as Header,
|
|
3088
|
+
us as HeaderExits,
|
|
3089
|
+
La as Helper,
|
|
3090
|
+
Gr as ICONS_LIB,
|
|
3091
|
+
ds as Icon,
|
|
3092
|
+
Aa as Icontool,
|
|
3093
|
+
Or as ImageList,
|
|
3094
|
+
St as Input,
|
|
3095
|
+
Pr as InputIcon,
|
|
3096
|
+
Er as InputNumber,
|
|
3097
|
+
Ir as InputPassword,
|
|
3098
|
+
hr as LayoutIcon,
|
|
3099
|
+
wr as List,
|
|
3100
|
+
Ra as ListOperate,
|
|
3101
|
+
Go as Loading,
|
|
3102
|
+
ps as Menu,
|
|
3103
|
+
fs as MenuTabs,
|
|
2961
3104
|
Yt as MicroOpenApis,
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
3105
|
+
ze as OPTIONS,
|
|
3106
|
+
Mt as OptionCommProps,
|
|
3107
|
+
vs as ProjectIcon,
|
|
3108
|
+
Lr as PropEditor,
|
|
3109
|
+
oe as ProviderKeys,
|
|
3110
|
+
Fl as Radio,
|
|
3111
|
+
Ur as RadioStatus,
|
|
3112
|
+
Mr as RangePicker,
|
|
3113
|
+
_r as Search,
|
|
3114
|
+
Ue as SearchItem,
|
|
3115
|
+
Nr as Select,
|
|
3116
|
+
lt as Switch,
|
|
3117
|
+
kr as Table,
|
|
3118
|
+
Ha as TableOperate,
|
|
3119
|
+
Rr as Textarea,
|
|
3120
|
+
Br as TimePicker,
|
|
2978
3121
|
V as ToolIcon,
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3122
|
+
Sr as ToolPanel,
|
|
3123
|
+
Ct as Toolbar,
|
|
3124
|
+
rs as Tooltip,
|
|
3125
|
+
Pl as Transfer,
|
|
3126
|
+
Ar as TransferTable,
|
|
3127
|
+
Cr as Tree,
|
|
3128
|
+
zr as TreeSelect,
|
|
3129
|
+
Oo as UploadList,
|
|
3130
|
+
Bo as UploadStatus,
|
|
3131
|
+
Wo as appendExcelData,
|
|
3132
|
+
qo as checkExcelDuplicates,
|
|
3133
|
+
Wr as checkIconsExpired,
|
|
3134
|
+
At as circleLoading,
|
|
3135
|
+
Ft as createFromIconfont,
|
|
3136
|
+
Ho as createMarkedExcelView,
|
|
3137
|
+
qr as crumbs,
|
|
3138
|
+
pr as csvToExcelBlob,
|
|
3139
|
+
gt as csvToExcelView,
|
|
3140
|
+
Qo as csvToNormalized,
|
|
3141
|
+
_e as defaultTools,
|
|
3142
|
+
Hr as doDelete,
|
|
3143
|
+
Qr as doExecute,
|
|
3144
|
+
st as doQuery,
|
|
3145
|
+
Jr as doSave,
|
|
3146
|
+
Ko as donwloadFromMinio,
|
|
3147
|
+
ya as downloadBlob,
|
|
3148
|
+
Xr as eventBus,
|
|
3149
|
+
Jo as excelToExcelView,
|
|
3150
|
+
Xo as excelToNormalized,
|
|
3151
|
+
mr as exportResults,
|
|
3152
|
+
vr as exportSelectedRows,
|
|
3153
|
+
tt as filterColumns,
|
|
3154
|
+
se as formValidate,
|
|
3155
|
+
Zr as getAvailableLanguages,
|
|
3156
|
+
eo as getFormDetail,
|
|
3157
|
+
to as getIconTransform,
|
|
3158
|
+
ao as getLang,
|
|
3159
|
+
lo as getRecordDetail,
|
|
3160
|
+
ro as getRuleTexts,
|
|
3018
3161
|
Ot as getSelectedLabels,
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3162
|
+
oo as getSelectedValues,
|
|
3163
|
+
ce as getToolByKey,
|
|
3164
|
+
De as getToolGroup,
|
|
3022
3165
|
W as getToolStatus,
|
|
3023
3166
|
J as getToolVisible,
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3167
|
+
be as gridQueryFind,
|
|
3168
|
+
at as gridQueryList,
|
|
3169
|
+
so as gridRowUpdate,
|
|
3170
|
+
rt as gridStatusUpdate,
|
|
3171
|
+
no as i18n,
|
|
3172
|
+
dr as initCacheCheck,
|
|
3173
|
+
cr as initDirective,
|
|
3174
|
+
io as initLang,
|
|
3175
|
+
co as initMenu,
|
|
3176
|
+
uo as initPageFactory,
|
|
3177
|
+
po as initStores,
|
|
3178
|
+
ur as initTools,
|
|
3179
|
+
fo as initValidate,
|
|
3180
|
+
ve as isEmpty,
|
|
3181
|
+
Rt as loadOption,
|
|
3182
|
+
vo as mergeColumns,
|
|
3183
|
+
Zo as normalizedToExcelView,
|
|
3184
|
+
Fa as onColumnVisibleChanged,
|
|
3185
|
+
It as onFormClose,
|
|
3186
|
+
Qe as onFormSave,
|
|
3187
|
+
Pt as onFormSaveAs,
|
|
3188
|
+
ht as onFullscreenClick,
|
|
3189
|
+
et as onGridRowDelete,
|
|
3190
|
+
Ze as onGridRowEdit,
|
|
3191
|
+
mo as onGridRowExpand,
|
|
3047
3192
|
zt as onOptionChanged,
|
|
3048
|
-
|
|
3193
|
+
_a as onReloadClick,
|
|
3049
3194
|
X as onToolClicked,
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3195
|
+
Et as openNewForm,
|
|
3196
|
+
go as outFormDataFields,
|
|
3197
|
+
ho as parseIcons,
|
|
3198
|
+
Ve as path,
|
|
3199
|
+
bo as pendingNavigation,
|
|
3200
|
+
yo as pinia,
|
|
3201
|
+
jo as previewFromMinio,
|
|
3202
|
+
fr as processCsvFile,
|
|
3203
|
+
es as processExcelFile,
|
|
3204
|
+
ot as queryTree,
|
|
3205
|
+
xo as resetRules,
|
|
3206
|
+
wo as routes,
|
|
3207
|
+
_o as saveForm,
|
|
3208
|
+
ko as setFormData,
|
|
3209
|
+
Co as setLang,
|
|
3210
|
+
So as showBreadcrumb,
|
|
3211
|
+
ts as toExcel,
|
|
3067
3212
|
Bt as unloadOption,
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3213
|
+
To as uploadTempBtn,
|
|
3214
|
+
$o as uploadTempOpener,
|
|
3215
|
+
Do as useAppInfo,
|
|
3216
|
+
Fo as useEditorFactory,
|
|
3217
|
+
Je as useFormItemFactory,
|
|
3218
|
+
Po as useGridFactory,
|
|
3219
|
+
Io as useHostInfo,
|
|
3075
3220
|
te as useInputFactory,
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3221
|
+
Nt as useOptionFactory,
|
|
3222
|
+
Eo as usePageFactory,
|
|
3223
|
+
Lo as usePageInfo,
|
|
3224
|
+
Ae as useSettingInfo,
|
|
3225
|
+
Pa as useToolFactory,
|
|
3226
|
+
Uo as useTreeFactory,
|
|
3227
|
+
Be as useUserInfo,
|
|
3228
|
+
Mo as validateData,
|
|
3229
|
+
as as validateExcel
|
|
3085
3230
|
};
|