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