@skyfox2000/webui 1.3.13 → 1.3.14
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/{file-upload-CUZwipDq.js → file-upload-D8Ln4vVV.js} +1 -1
- package/lib/assets/modules/{index-CRI5J3tC.js → index-B2AK2Li9.js} +2 -2
- package/lib/assets/modules/{index-VW3ychQv.js → index-BnDOMkVL.js} +1 -1
- package/lib/assets/modules/{index-CiPOV7eS.js → index-C8qhSdva.js} +2 -2
- package/lib/assets/modules/{menuTabs-CX8-KAho.js → menuTabs-FUxE-a2D.js} +2 -2
- package/lib/assets/modules/{toolIcon-0Ar6hd78.js → toolIcon-bJ_WgHLU.js} +1 -1
- package/lib/assets/modules/{uploadList-Bj9RG8dw.js → uploadList-BAX79qeV.js} +4 -4
- package/lib/assets/modules/{uploadList-Ce4hn5ZE.js → uploadList-BNkHE3fR.js} +1 -1
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/timePicker/index.vue.d.ts +6 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/webui.es.js +415 -394
- package/package.json +2 -2
- package/src/components/form/index.ts +3 -0
- package/src/components/form/timePicker/index.vue +24 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/utils/page.ts +1 -1
package/lib/webui.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { u as Je, i as Z, a as
|
|
2
|
-
import { a9 as
|
|
3
|
-
import { A as
|
|
1
|
+
import { u as Je, i as Z, a as me, c as Xe, P as j, o as Pe, b as Ze, d as ea, e as Ee, r as ce, f as aa, g as ta, h as Fe, j as la, k as ke, l as sa, _ as ra, m as oa, O as Ne, q as Me, n as na, p as ia, s as L, t as ca, v as ua, w as da, x as pa, y as fa, z as va, A as Y, B as ma, C as ha, D as ga, E as Be } from "./assets/modules/uploadList-BNkHE3fR.js";
|
|
2
|
+
import { a9 as Tl, N as $l, Q as Il, U as Dl, a8 as Pl, a6 as El, a7 as Fl, aa as Nl, X as Ml, S as Bl, a4 as Rl, a1 as Al, L as Ol, a3 as Ll, T as zl, G as Ul, Z as Vl, a2 as Yl, a5 as Kl, M as Wl, R as Hl, ab as jl, F as Ql, a0 as ql, ac as Gl, W as Jl, Y as Xl, V as Zl, ad as es, H as as, I as ts, ae as ls, K as ss, af as rs, J as os, $ as ns } from "./assets/modules/uploadList-BNkHE3fR.js";
|
|
3
|
+
import { A as cs, U as us, a as ds, g as ps, c as fs, d as vs, p as ms, u as hs, b as gs } from "./assets/modules/file-upload-D8Ln4vVV.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
|
-
import { FrontCache as re, httpPost as
|
|
6
|
-
import
|
|
7
|
-
import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as N, renderSlot as D, normalizeClass as
|
|
5
|
+
import { FrontCache as re, httpPost as Re, ResStatus as Ae, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
|
|
6
|
+
import he from "vue-m-message";
|
|
7
|
+
import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as N, renderSlot as D, normalizeClass as E, toDisplayString as F, createCommentVNode as k, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as S, normalizeStyle as be, createSlots as Oe, useSlots as _a, Fragment as R, renderList as z, resolveDynamicComponent as xa, onActivated as ya, shallowRef as ka, onUnmounted as wa, withKeys as Se } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
|
-
import
|
|
10
|
-
import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as ze, message as Ta, FormItem as Ue, ConfigProvider as Ce, Popconfirm as $a, Button as Ve, DropdownButton as Ia, Menu as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import { d as Ke } from "./assets/modules/uploadList-
|
|
13
|
-
import { C as
|
|
14
|
-
import { c as We } from "./assets/modules/index-
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as O } from "./assets/modules/index-
|
|
17
|
-
import { _ as U } from "./assets/modules/toolIcon-
|
|
18
|
-
import { a as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
9
|
+
import fe from "dayjs";
|
|
10
|
+
import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as ze, message as Ta, FormItem as Ue, ConfigProvider as Ce, Popconfirm as $a, Button as Ve, DropdownButton as Ia, Menu as _e, MenuItem as xe, Dropdown as ve, Checkbox as Da, Table as Ye, Tree as Pa, Cascader as Ea, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ba, Textarea as Ra, TimePicker as Aa, Transfer as Oa, TreeSelect as La, LayoutContent as za } from "ant-design-vue";
|
|
11
|
+
import { VueDraggableNext as Ua } from "vue-draggable-next";
|
|
12
|
+
import { d as Ke } from "./assets/modules/uploadList-BAX79qeV.js";
|
|
13
|
+
import { C as _s, U as xs, a as ys, p as ks } from "./assets/modules/uploadList-BAX79qeV.js";
|
|
14
|
+
import { c as We } from "./assets/modules/index-B2AK2Li9.js";
|
|
15
|
+
import { _ as Ss, h as Cs, b as Ts, a as $s, d as Is, e as Ds, g as Ps, f as Es, n as Fs, p as Ns, t as Ms, v as Bs } from "./assets/modules/index-B2AK2Li9.js";
|
|
16
|
+
import { _ as O } from "./assets/modules/index-BnDOMkVL.js";
|
|
17
|
+
import { _ as U } from "./assets/modules/toolIcon-bJ_WgHLU.js";
|
|
18
|
+
import { a as As } from "./assets/modules/toolIcon-bJ_WgHLU.js";
|
|
19
|
+
import { _ as Ls, b as zs, c as Us, d as Vs, e as Ys, I as Ks, f as Ws, g as Hs, a as js } from "./assets/modules/menuTabs-FUxE-a2D.js";
|
|
20
|
+
import { _ as qs } from "./assets/modules/index-C8qhSdva.js";
|
|
21
21
|
import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
22
|
const Te = (s, a, e, t = "remove") => {
|
|
23
23
|
if (!e)
|
|
@@ -44,7 +44,7 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
44
44
|
return Z(t) || (d = a.hasRole(t)), a.isAdmin() ? d : (Z(n) || (o = a.hasPermit(i, n)), d || o);
|
|
45
45
|
}
|
|
46
46
|
return !1;
|
|
47
|
-
},
|
|
47
|
+
}, Va = {
|
|
48
48
|
mounted(s, a, e) {
|
|
49
49
|
const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
|
|
50
50
|
Te(s, e, c, i);
|
|
@@ -53,7 +53,7 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
53
53
|
const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
|
|
54
54
|
Te(s, e, c, i);
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, Ya = {
|
|
57
57
|
mounted: (s, a) => {
|
|
58
58
|
s.addEventListener("keydown", (e) => {
|
|
59
59
|
e.key === "Enter" && a.value();
|
|
@@ -63,43 +63,43 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
63
63
|
s.removeEventListener("keydown", () => {
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
},
|
|
67
|
-
auth:
|
|
68
|
-
submit:
|
|
69
|
-
},
|
|
70
|
-
t in
|
|
71
|
-
}), s),
|
|
66
|
+
}, de = {
|
|
67
|
+
auth: Va,
|
|
68
|
+
submit: Ya
|
|
69
|
+
}, Qt = (s, a) => ((a || Object.keys(de)).forEach((t) => {
|
|
70
|
+
t in de && s.directive(t, de[t]);
|
|
71
|
+
}), s), W = (s, a) => {
|
|
72
72
|
const e = s.find((t) => t.key === a);
|
|
73
73
|
if (e)
|
|
74
74
|
return e;
|
|
75
75
|
for (const t of s)
|
|
76
76
|
if (t.children) {
|
|
77
|
-
const n =
|
|
77
|
+
const n = W(t.children, a);
|
|
78
78
|
if (n)
|
|
79
79
|
return n;
|
|
80
80
|
}
|
|
81
|
-
},
|
|
81
|
+
}, ye = (s, a, e) => {
|
|
82
82
|
const t = [], n = [];
|
|
83
83
|
return e || (e = [...s]), e.length && e.forEach((i, c) => {
|
|
84
84
|
let f;
|
|
85
85
|
if (typeof i == "string") {
|
|
86
|
-
const d =
|
|
86
|
+
const d = W(s, i);
|
|
87
87
|
f = d ? { ...d } : { key: i, label: i };
|
|
88
88
|
} else {
|
|
89
|
-
const d =
|
|
89
|
+
const d = W(s, i.key);
|
|
90
90
|
f = d ? { ...d, ...i } : { ...i };
|
|
91
91
|
}
|
|
92
92
|
f.click || (f.click = (d, o, p) => {
|
|
93
93
|
o && (o.rowData.value = p), f.formVisible ? (f.formVisible.value = !1, setTimeout(() => {
|
|
94
94
|
f.formVisible.value = !0;
|
|
95
|
-
}, 1)) :
|
|
95
|
+
}, 1)) : he.warning("未配置点击处理事件!");
|
|
96
96
|
}), a === 0 || c < a ? t.push(f) : n.push(f);
|
|
97
97
|
}), { buttons: t, menus: n };
|
|
98
|
-
},
|
|
98
|
+
}, H = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, G = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, Ka = (s, a) => {
|
|
99
99
|
a.reload.value = !0;
|
|
100
|
-
}, Ka = (s, a) => {
|
|
101
|
-
a.searchBar.value = !a.searchBar.value;
|
|
102
100
|
}, Wa = (s, a) => {
|
|
101
|
+
a.searchBar.value = !a.searchBar.value;
|
|
102
|
+
}, Ha = (s, a) => {
|
|
103
103
|
switch (a.tableSize.value) {
|
|
104
104
|
case "large":
|
|
105
105
|
a.tableSize.value = "middle";
|
|
@@ -111,29 +111,29 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
111
111
|
a.tableSize.value = "large";
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
-
}, Ha = (s, a) => {
|
|
115
|
-
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
116
114
|
}, ja = (s, a) => {
|
|
115
|
+
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
116
|
+
}, Qa = (s, a) => {
|
|
117
117
|
a.rowExpand.value = !a.rowExpand.value;
|
|
118
118
|
}, Ie = (s, a) => {
|
|
119
119
|
a.selectable.value = !a.selectable.value;
|
|
120
120
|
}, V = (s, a, e, t, n) => {
|
|
121
|
-
(!s.confirm || n) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)),
|
|
122
|
-
},
|
|
121
|
+
(!s.confirm || n) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)), Ga(s);
|
|
122
|
+
}, qa = (s, a) => {
|
|
123
123
|
a.selectable.value = !a.selectable.value;
|
|
124
124
|
}, He = () => {
|
|
125
|
-
const s =
|
|
125
|
+
const s = me();
|
|
126
126
|
s.setFullscreen(!s.fullscreen);
|
|
127
|
-
}, qa = (s, a) => {
|
|
128
|
-
(s.icons || s.labels) && (s.iconStatus = s.iconStatus || 0, s.iconStatus += 1, s.labels && s.labels.length && (s.label = s.labels[s.iconStatus % s.labels.length]), s.icons && s.icons.length && (s.icon = s.icons[s.iconStatus % s.icons.length]));
|
|
129
127
|
}, Ga = (s, a) => {
|
|
128
|
+
(s.icons || s.labels) && (s.iconStatus = s.iconStatus || 0, s.iconStatus += 1, s.labels && s.labels.length && (s.label = s.labels[s.iconStatus % s.labels.length]), s.icons && s.icons.length && (s.icon = s.icons[s.iconStatus % s.icons.length]));
|
|
129
|
+
}, Ja = (s, a) => {
|
|
130
130
|
a ? delete s.visible : s.visible = !1;
|
|
131
131
|
}, De = [
|
|
132
132
|
{
|
|
133
133
|
key: "Reload",
|
|
134
134
|
label: "刷新表格",
|
|
135
135
|
icon: "icon-reload",
|
|
136
|
-
click:
|
|
136
|
+
click: Ka
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
key: "Query",
|
|
@@ -141,20 +141,20 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
141
141
|
labels: ["展开搜索栏", "折叠搜索栏"],
|
|
142
142
|
icon: "icon-search",
|
|
143
143
|
iconStatus: 0,
|
|
144
|
-
click:
|
|
144
|
+
click: Wa
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
key: "RowHeight",
|
|
148
148
|
label: "行高调整",
|
|
149
149
|
icon: "icon-row-height",
|
|
150
|
-
click:
|
|
150
|
+
click: Ha
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
key: "tool.multiple.checkbox",
|
|
154
154
|
label: "显示多选框",
|
|
155
155
|
labels: ["显示多选框", "隐藏多选框"],
|
|
156
156
|
icon: "icon-checkbox",
|
|
157
|
-
click:
|
|
157
|
+
click: ja
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
key: "tool.expand.rows",
|
|
@@ -163,7 +163,7 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
163
163
|
icon: "icon-row-collapse",
|
|
164
164
|
iconStatus: 0,
|
|
165
165
|
icons: ["icon-row-collapse", "icon-row-expand"],
|
|
166
|
-
click:
|
|
166
|
+
click: Qa
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
key: "tool.export.excel",
|
|
@@ -190,7 +190,7 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
190
190
|
{
|
|
191
191
|
key: "tool.export.pdf.selected",
|
|
192
192
|
label: "选中的记录",
|
|
193
|
-
click:
|
|
193
|
+
click: qa
|
|
194
194
|
}
|
|
195
195
|
]
|
|
196
196
|
},
|
|
@@ -212,16 +212,16 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
212
212
|
icons: ["icon-fullscreen", "icon-exitscreen"],
|
|
213
213
|
click: He
|
|
214
214
|
}
|
|
215
|
-
],
|
|
215
|
+
], Xa = (s) => {
|
|
216
216
|
if (!s.tools || s.tools.length > 0) {
|
|
217
217
|
const a = [];
|
|
218
|
-
return s.tools ? a.push(...s.tools) : a.push(...De), { tools:
|
|
218
|
+
return s.tools ? a.push(...s.tools) : a.push(...De), { tools: ye(De, 0, a).buttons };
|
|
219
219
|
}
|
|
220
220
|
return {
|
|
221
221
|
tools: []
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
var
|
|
224
|
+
var Za = /* @__PURE__ */ ((s) => (s.SYS_CONFIG = "SYS_CONFIG_", s.APP_MENU = "APP_MENU_", s.DICT_TYPE = "DICT_TYPE_", s.HOST_INFO = "HOST_INFO_", s.APP_PERMITS = "APP_PERMITS_", s.USER_SETTINGS = "USER_SETTINGS_", s.DICT_DATA = "DICT_DATA_", s.COMMON_OPTIONS = "COMMON_OPTIONS_", s))(Za || {});
|
|
225
225
|
class je {
|
|
226
226
|
/**
|
|
227
227
|
* 设置缓存数据(带服务器时间)
|
|
@@ -277,9 +277,9 @@ class je {
|
|
|
277
277
|
return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
async function
|
|
280
|
+
async function qt() {
|
|
281
281
|
try {
|
|
282
|
-
const s = await
|
|
282
|
+
const s = await Re(
|
|
283
283
|
{
|
|
284
284
|
api: "PLATFORM_API",
|
|
285
285
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -310,7 +310,7 @@ async function Qt() {
|
|
|
310
310
|
console.error("检查缓存更新失败", s);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Gt = async (s, a) => {
|
|
314
314
|
const e = await We(s, a);
|
|
315
315
|
if (e.success)
|
|
316
316
|
return {
|
|
@@ -320,7 +320,7 @@ const qt = async (s, a) => {
|
|
|
320
320
|
// 不再返回blob对象,使用URL即可
|
|
321
321
|
};
|
|
322
322
|
throw new Error(e.error || "CSV转Excel失败");
|
|
323
|
-
},
|
|
323
|
+
}, Jt = async (s, a) => {
|
|
324
324
|
try {
|
|
325
325
|
const t = new TextDecoder("utf-8").decode(s), n = await We(t, a);
|
|
326
326
|
return {
|
|
@@ -337,7 +337,7 @@ const qt = async (s, a) => {
|
|
|
337
337
|
error: e instanceof Error ? e.message : "未知错误"
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
},
|
|
340
|
+
}, Xt = async (s, a, e) => {
|
|
341
341
|
try {
|
|
342
342
|
const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1), f = c.map((v) => ({
|
|
343
343
|
label: v.title,
|
|
@@ -351,44 +351,44 @@ const qt = async (s, a) => {
|
|
|
351
351
|
}), p = new n({ fields: f }).parse(d), r = new Blob([`\uFEFF${p}`], { type: "text/csv" });
|
|
352
352
|
Ke(r, i);
|
|
353
353
|
} catch (t) {
|
|
354
|
-
console.error("导出失败:", t),
|
|
354
|
+
console.error("导出失败:", t), he.error("文件导出失败,请稍后重试");
|
|
355
355
|
}
|
|
356
356
|
}, Qe = (s) => {
|
|
357
357
|
const a = /\{([^}]+)\}/g;
|
|
358
|
-
return s.replace(a, (e, t) =>
|
|
359
|
-
},
|
|
358
|
+
return s.replace(a, (e, t) => fe().format(t));
|
|
359
|
+
}, Zt = async (s, a, e, t) => {
|
|
360
360
|
try {
|
|
361
361
|
const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), f = a.filter((r) => r.visible !== !1), d = f.map((r) => ({
|
|
362
362
|
label: r.title,
|
|
363
363
|
value: r.dataIndex || r.key || ""
|
|
364
364
|
}));
|
|
365
365
|
let o = e.page, p = e.gridQuery;
|
|
366
|
-
return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0,
|
|
366
|
+
return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Re(t, p).then((r) => {
|
|
367
367
|
if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS && r.data) {
|
|
368
368
|
const u = r.data.map((A) => {
|
|
369
|
-
const
|
|
370
|
-
return f.forEach((
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
}),
|
|
369
|
+
const x = { ...A };
|
|
370
|
+
return f.forEach((P) => {
|
|
371
|
+
const B = P.dataIndex || P.key;
|
|
372
|
+
B && P.customRender && (x[B] = P.customRender(A[B], A));
|
|
373
|
+
}), x;
|
|
374
374
|
}), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
|
|
375
375
|
Ke(I, c);
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
} catch (n) {
|
|
379
|
-
console.error("导出失败:", n),
|
|
379
|
+
console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
|
|
380
380
|
}
|
|
381
|
-
},
|
|
381
|
+
}, el = /* @__PURE__ */ C({
|
|
382
382
|
__name: "fullscreen",
|
|
383
383
|
setup(s) {
|
|
384
|
-
const a =
|
|
384
|
+
const a = me();
|
|
385
385
|
return (e, t) => (m(), b(U, {
|
|
386
386
|
onClick: ae(l(He), ["stop"]),
|
|
387
387
|
icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
388
388
|
class: "w-[17px] h-[17px]"
|
|
389
389
|
}, null, 8, ["onClick", "icon"]));
|
|
390
390
|
}
|
|
391
|
-
}),
|
|
391
|
+
}), et = { class: "ml-2" }, at = /* @__PURE__ */ C({
|
|
392
392
|
inheritAttrs: !1,
|
|
393
393
|
__name: "helper",
|
|
394
394
|
props: {
|
|
@@ -402,12 +402,12 @@ const qt = async (s, a) => {
|
|
|
402
402
|
content: g(() => [
|
|
403
403
|
D(e.$slots, "default", {}, () => [
|
|
404
404
|
$("div", {
|
|
405
|
-
class:
|
|
405
|
+
class: E(["text-[14px]", [e.maxWidth]])
|
|
406
406
|
}, F(e.text), 3)
|
|
407
407
|
])
|
|
408
408
|
]),
|
|
409
409
|
default: g(() => [
|
|
410
|
-
$("span",
|
|
410
|
+
$("span", et, [
|
|
411
411
|
w(U, N({
|
|
412
412
|
icon: "icon-question-circle",
|
|
413
413
|
class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
|
|
@@ -417,7 +417,7 @@ const qt = async (s, a) => {
|
|
|
417
417
|
_: 3
|
|
418
418
|
}));
|
|
419
419
|
}
|
|
420
|
-
}),
|
|
420
|
+
}), al = /* @__PURE__ */ C({
|
|
421
421
|
__name: "layoutIcon",
|
|
422
422
|
props: {
|
|
423
423
|
icon: {
|
|
@@ -441,7 +441,7 @@ const qt = async (s, a) => {
|
|
|
441
441
|
class: ["align-middle"]
|
|
442
442
|
}, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
443
443
|
}
|
|
444
|
-
}),
|
|
444
|
+
}), tt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, tl = /* @__PURE__ */ C({
|
|
445
445
|
__name: "index",
|
|
446
446
|
props: {
|
|
447
447
|
saveText: {},
|
|
@@ -452,17 +452,17 @@ const qt = async (s, a) => {
|
|
|
452
452
|
drawerSaveAs: { type: Function }
|
|
453
453
|
},
|
|
454
454
|
setup(s) {
|
|
455
|
-
const { useToken: a } = Le, { token: e } = a(), t =
|
|
456
|
-
|
|
455
|
+
const { useToken: a } = Le, { token: e } = a(), t = _(!1), n = s, i = n.editorCtrl;
|
|
456
|
+
ge(j.EditorControl, i), T(
|
|
457
457
|
() => i.visible.value,
|
|
458
458
|
(o) => {
|
|
459
459
|
t.value = o ?? !1;
|
|
460
460
|
}
|
|
461
|
-
),
|
|
461
|
+
), K(() => {
|
|
462
462
|
t.value = i.visible.value ?? !1;
|
|
463
463
|
});
|
|
464
464
|
const c = () => {
|
|
465
|
-
n.drawerSave ? n.drawerSave() : i &&
|
|
465
|
+
n.drawerSave ? n.drawerSave() : i && Pe(i);
|
|
466
466
|
}, f = () => {
|
|
467
467
|
n.drawerSaveAs ? n.drawerSaveAs() : i && Ze(i);
|
|
468
468
|
}, d = () => {
|
|
@@ -492,7 +492,7 @@ const qt = async (s, a) => {
|
|
|
492
492
|
onClose: d
|
|
493
493
|
}, {
|
|
494
494
|
extra: g(() => [
|
|
495
|
-
$("div",
|
|
495
|
+
$("div", tt, [
|
|
496
496
|
w(l(U), {
|
|
497
497
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
498
498
|
icon: "icon-new",
|
|
@@ -549,7 +549,7 @@ const qt = async (s, a) => {
|
|
|
549
549
|
_: 3
|
|
550
550
|
}, 8, ["open", "header-style"]));
|
|
551
551
|
}
|
|
552
|
-
}),
|
|
552
|
+
}), ll = /* @__PURE__ */ C({
|
|
553
553
|
__name: "index",
|
|
554
554
|
props: {
|
|
555
555
|
labelWidth: {},
|
|
@@ -557,10 +557,10 @@ const qt = async (s, a) => {
|
|
|
557
557
|
editorCtrl: {}
|
|
558
558
|
},
|
|
559
559
|
setup(s) {
|
|
560
|
-
const a = s, e = a.editorCtrl ?? ne(
|
|
561
|
-
return
|
|
560
|
+
const a = s, e = a.editorCtrl ?? ne(j.EditorControl, void 0);
|
|
561
|
+
return ge(j.LabelWidth, a.labelWidth), (t, n) => {
|
|
562
562
|
const i = le("submit");
|
|
563
|
-
return
|
|
563
|
+
return Q((m(), b(l(ze), {
|
|
564
564
|
"label-col": { flex: a.labelWidth ?? "85px" },
|
|
565
565
|
"wrapper-col": {
|
|
566
566
|
flex: a.wrapperWidth ?? "1 0 280px"
|
|
@@ -578,16 +578,16 @@ const qt = async (s, a) => {
|
|
|
578
578
|
[
|
|
579
579
|
i,
|
|
580
580
|
() => {
|
|
581
|
-
l(e) && l(
|
|
581
|
+
l(e) && l(Pe)(l(e));
|
|
582
582
|
}
|
|
583
583
|
]
|
|
584
584
|
]);
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
}),
|
|
587
|
+
}), lt = {
|
|
588
588
|
key: 0,
|
|
589
589
|
class: "flex-grow"
|
|
590
|
-
},
|
|
590
|
+
}, st = { class: "w-8 mt-[-2px]" }, sl = /* @__PURE__ */ C({
|
|
591
591
|
inheritAttrs: !1,
|
|
592
592
|
__name: "formItem",
|
|
593
593
|
props: {
|
|
@@ -599,7 +599,7 @@ const qt = async (s, a) => {
|
|
|
599
599
|
bottomMargin: {}
|
|
600
600
|
},
|
|
601
601
|
setup(s) {
|
|
602
|
-
const a = s, e = X(), t = ne(
|
|
602
|
+
const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Ee(a, t), c = _(!1);
|
|
603
603
|
setTimeout(() => {
|
|
604
604
|
c.value = !0;
|
|
605
605
|
}, 30);
|
|
@@ -619,7 +619,7 @@ const qt = async (s, a) => {
|
|
|
619
619
|
return o ? o.required ?? !0 : (Ta.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
|
|
620
620
|
});
|
|
621
621
|
return (o, p) => (m(), S("div", {
|
|
622
|
-
class:
|
|
622
|
+
class: E(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
|
|
623
623
|
}, [
|
|
624
624
|
c.value ? (m(), b(l(Ue), N({
|
|
625
625
|
key: 0,
|
|
@@ -628,19 +628,19 @@ const qt = async (s, a) => {
|
|
|
628
628
|
}, l(e)), {
|
|
629
629
|
label: g(() => [
|
|
630
630
|
$("span", {
|
|
631
|
-
class:
|
|
631
|
+
class: E([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
632
632
|
}, F(o.label), 3)
|
|
633
633
|
]),
|
|
634
634
|
default: g(() => [
|
|
635
635
|
$("div", {
|
|
636
|
-
class:
|
|
636
|
+
class: E(["flex items-center", o.width ? o.width : "w-full"])
|
|
637
637
|
}, [
|
|
638
|
-
o.nextLine ? k("", !0) : (m(), S("div",
|
|
638
|
+
o.nextLine ? k("", !0) : (m(), S("div", lt, [
|
|
639
639
|
D(o.$slots, "default")
|
|
640
640
|
])),
|
|
641
|
-
$("div",
|
|
641
|
+
$("div", st, [
|
|
642
642
|
D(o.$slots, "helper", {}, () => [
|
|
643
|
-
o.helper ? (m(), b(l(
|
|
643
|
+
o.helper ? (m(), b(l(at), {
|
|
644
644
|
key: 0,
|
|
645
645
|
text: o.helper
|
|
646
646
|
}, null, 8, ["text"])) : k("", !0)
|
|
@@ -652,21 +652,21 @@ const qt = async (s, a) => {
|
|
|
652
652
|
}, 16, ["required", "class"])) : k("", !0),
|
|
653
653
|
o.nextLine ? (m(), S("div", {
|
|
654
654
|
key: 1,
|
|
655
|
-
class:
|
|
655
|
+
class: E(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
|
|
656
656
|
}, [
|
|
657
657
|
D(o.$slots, "default")
|
|
658
658
|
], 2)) : k("", !0),
|
|
659
659
|
l(i).errClass ? (m(), S("span", {
|
|
660
660
|
key: 2,
|
|
661
|
-
style:
|
|
661
|
+
style: be({ left: o.nextLine ? "2px" : l(n) }),
|
|
662
662
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
663
663
|
}, F(l(i).msg), 5)) : k("", !0)
|
|
664
664
|
], 2));
|
|
665
665
|
}
|
|
666
|
-
}),
|
|
666
|
+
}), rt = { class: "w-1/3 relative mb-1" }, ot = { class: "flex items-center w-[90%]" }, nt = { class: "flex-grow pl-1" }, it = {
|
|
667
667
|
key: 0,
|
|
668
668
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
669
|
-
},
|
|
669
|
+
}, pe = /* @__PURE__ */ C({
|
|
670
670
|
inheritAttrs: !1,
|
|
671
671
|
__name: "searchItem",
|
|
672
672
|
props: {
|
|
@@ -675,8 +675,8 @@ const qt = async (s, a) => {
|
|
|
675
675
|
rule: {}
|
|
676
676
|
},
|
|
677
677
|
setup(s) {
|
|
678
|
-
const a = s, e = X(), t = ne(
|
|
679
|
-
return (i, c) => (m(), S("div",
|
|
678
|
+
const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Ee(a, t);
|
|
679
|
+
return (i, c) => (m(), S("div", rt, [
|
|
680
680
|
w(l(Ue), N({
|
|
681
681
|
required: i.rule !== void 0,
|
|
682
682
|
class: "w-[90%] relative"
|
|
@@ -685,8 +685,8 @@ const qt = async (s, a) => {
|
|
|
685
685
|
labelCol: { span: 6 }
|
|
686
686
|
}), Oe({
|
|
687
687
|
default: g(() => [
|
|
688
|
-
$("div",
|
|
689
|
-
$("div",
|
|
688
|
+
$("div", ot, [
|
|
689
|
+
$("div", nt, [
|
|
690
690
|
D(i.$slots, "default")
|
|
691
691
|
])
|
|
692
692
|
])
|
|
@@ -697,16 +697,16 @@ const qt = async (s, a) => {
|
|
|
697
697
|
name: "label",
|
|
698
698
|
fn: g(() => [
|
|
699
699
|
$("span", {
|
|
700
|
-
class:
|
|
700
|
+
class: E([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
701
701
|
}, F(i.label), 3)
|
|
702
702
|
]),
|
|
703
703
|
key: "0"
|
|
704
704
|
} : void 0
|
|
705
705
|
]), 1040, ["required", "class"]),
|
|
706
|
-
l(n).msg ? (m(), S("span",
|
|
706
|
+
l(n).msg ? (m(), S("span", it, F(l(n).msg), 1)) : k("", !0)
|
|
707
707
|
]));
|
|
708
708
|
}
|
|
709
|
-
}),
|
|
709
|
+
}), rl = /* @__PURE__ */ C({
|
|
710
710
|
__name: "index",
|
|
711
711
|
props: {
|
|
712
712
|
search: {},
|
|
@@ -715,12 +715,12 @@ const qt = async (s, a) => {
|
|
|
715
715
|
},
|
|
716
716
|
emits: ["update:search"],
|
|
717
717
|
setup(s, { emit: a }) {
|
|
718
|
-
const e = s, t = a, n =
|
|
718
|
+
const e = s, t = a, n = _(0), i = _(0), c = _(0), f = (u) => {
|
|
719
719
|
let h = 0;
|
|
720
720
|
for (let y = 0; y < u.length; y++)
|
|
721
721
|
typeof u[y].type == "object" && h++;
|
|
722
722
|
return h;
|
|
723
|
-
}, d =
|
|
723
|
+
}, d = _a(), o = () => {
|
|
724
724
|
i.value = 0, c.value = 0, d.default && (i.value = f(d.default({}))), e.gridCtrl.searchBar && d.control && (c.value = f(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
|
|
725
725
|
};
|
|
726
726
|
T(
|
|
@@ -730,7 +730,7 @@ const qt = async (s, a) => {
|
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
const p = JSON.parse(JSON.stringify(e.search));
|
|
733
|
-
|
|
733
|
+
K(() => {
|
|
734
734
|
var h;
|
|
735
735
|
o();
|
|
736
736
|
let u = { ...e.search };
|
|
@@ -763,7 +763,7 @@ const qt = async (s, a) => {
|
|
|
763
763
|
};
|
|
764
764
|
return (u, h) => {
|
|
765
765
|
const y = le("submit");
|
|
766
|
-
return i.value + c.value > 0 ?
|
|
766
|
+
return i.value + c.value > 0 ? Q((m(), b(l(ze), {
|
|
767
767
|
key: 0,
|
|
768
768
|
"label-col": { flex: "60px" },
|
|
769
769
|
style: {
|
|
@@ -775,15 +775,15 @@ const qt = async (s, a) => {
|
|
|
775
775
|
default: g(() => [
|
|
776
776
|
D(u.$slots, "default"),
|
|
777
777
|
u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
|
|
778
|
-
n.value >= 1 ? (m(), b(
|
|
778
|
+
n.value >= 1 ? (m(), b(pe, {
|
|
779
779
|
key: 1,
|
|
780
780
|
class: "w-1/3"
|
|
781
781
|
})) : k("", !0),
|
|
782
|
-
n.value >= 2 ? (m(), b(
|
|
782
|
+
n.value >= 2 ? (m(), b(pe, {
|
|
783
783
|
key: 2,
|
|
784
784
|
class: "w-1/3"
|
|
785
785
|
})) : k("", !0),
|
|
786
|
-
i.value || u.gridCtrl.searchBar ? (m(), b(
|
|
786
|
+
i.value || u.gridCtrl.searchBar ? (m(), b(pe, {
|
|
787
787
|
key: 3,
|
|
788
788
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
789
789
|
"wrapper-col": { flex: "auto" }
|
|
@@ -825,7 +825,7 @@ const qt = async (s, a) => {
|
|
|
825
825
|
]) : k("", !0);
|
|
826
826
|
};
|
|
827
827
|
}
|
|
828
|
-
}),
|
|
828
|
+
}), ct = /* @__PURE__ */ C({
|
|
829
829
|
__name: "tableOperate",
|
|
830
830
|
props: {
|
|
831
831
|
record: {},
|
|
@@ -854,11 +854,11 @@ const qt = async (s, a) => {
|
|
|
854
854
|
confirmText: "是否删除此记录?",
|
|
855
855
|
click: () => ta(e, a.record)
|
|
856
856
|
}
|
|
857
|
-
], { buttons: i, menus: c } =
|
|
857
|
+
], { buttons: i, menus: c } = ye(n, 0, e.operates), f = (d) => {
|
|
858
858
|
if (typeof d.disabled == "boolean")
|
|
859
859
|
return d.disabled;
|
|
860
860
|
if (typeof d.disabled == "function")
|
|
861
|
-
return
|
|
861
|
+
return H(d, a.record) ?? !1;
|
|
862
862
|
if (a.record.hasOwnProperty("Enabled"))
|
|
863
863
|
switch (d.key) {
|
|
864
864
|
case "Edit":
|
|
@@ -878,7 +878,7 @@ const qt = async (s, a) => {
|
|
|
878
878
|
default: g(() => [
|
|
879
879
|
w(l(te), null, {
|
|
880
880
|
default: g(() => [
|
|
881
|
-
(m(!0), S(
|
|
881
|
+
(m(!0), S(R, null, z(l(i), (r) => (m(), S(R, {
|
|
882
882
|
key: r.key
|
|
883
883
|
}, [
|
|
884
884
|
l(G)(r, a.record) ? (m(), b(l($a), {
|
|
@@ -892,14 +892,14 @@ const qt = async (s, a) => {
|
|
|
892
892
|
onConfirm: (v) => l(V)(r, l(e).page, l(e), a.record, !0)
|
|
893
893
|
}, {
|
|
894
894
|
default: g(() => [
|
|
895
|
-
l(G)(r, a.record) ?
|
|
895
|
+
l(G)(r, a.record) ? Q((m(), b(l(Ve), {
|
|
896
896
|
key: r.key,
|
|
897
897
|
type: r.type ?? "text",
|
|
898
898
|
danger: r.danger,
|
|
899
899
|
disabled: f(r),
|
|
900
900
|
onClick: (v) => l(V)(r, l(e).page, l(e), a.record),
|
|
901
901
|
size: "small",
|
|
902
|
-
style:
|
|
902
|
+
style: be({
|
|
903
903
|
padding: r.type ?? "0px 4px"
|
|
904
904
|
})
|
|
905
905
|
}, {
|
|
@@ -924,12 +924,12 @@ const qt = async (s, a) => {
|
|
|
924
924
|
size: "small"
|
|
925
925
|
}, {
|
|
926
926
|
overlay: g(() => [
|
|
927
|
-
w(l(
|
|
927
|
+
w(l(_e), null, {
|
|
928
928
|
default: g(() => [
|
|
929
|
-
(m(!0), S(
|
|
929
|
+
(m(!0), S(R, null, z(l(c), (r) => (m(), S(R, {
|
|
930
930
|
key: r.key
|
|
931
931
|
}, [
|
|
932
|
-
l(G)(r, a.record) ?
|
|
932
|
+
l(G)(r, a.record) ? Q((m(), b(l(xe), {
|
|
933
933
|
key: 0,
|
|
934
934
|
disabled: f(r),
|
|
935
935
|
onClick: (v) => l(V)(r, l(e).page, l(e), a.record)
|
|
@@ -963,20 +963,20 @@ const qt = async (s, a) => {
|
|
|
963
963
|
});
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
|
-
}),
|
|
966
|
+
}), ut = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, dt = /* @__PURE__ */ C({
|
|
967
967
|
__name: "icontool",
|
|
968
968
|
props: {
|
|
969
969
|
gridCtrl: {}
|
|
970
970
|
},
|
|
971
971
|
setup(s) {
|
|
972
|
-
const a = s, e = a.gridCtrl, { tools: t } =
|
|
972
|
+
const a = s, e = a.gridCtrl, { tools: t } = Xa(a.gridCtrl), n = me();
|
|
973
973
|
T(
|
|
974
974
|
() => e.selectable.value,
|
|
975
975
|
(f) => {
|
|
976
|
-
|
|
976
|
+
W(t, "tool.export.excel.selected") && (W(t, "tool.export.excel.selected").disabled = !f), W(t, "tool.export.pdf.selected") && (W(t, "tool.export.pdf.selected").disabled = !f);
|
|
977
977
|
}
|
|
978
978
|
);
|
|
979
|
-
const i =
|
|
979
|
+
const i = _([]);
|
|
980
980
|
T(
|
|
981
981
|
() => e.columns.value,
|
|
982
982
|
(f) => {
|
|
@@ -987,20 +987,20 @@ const qt = async (s, a) => {
|
|
|
987
987
|
const c = () => {
|
|
988
988
|
e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
|
|
989
989
|
};
|
|
990
|
-
return (f, d) => (m(), S("div",
|
|
991
|
-
(m(!0), S(
|
|
990
|
+
return (f, d) => (m(), S("div", ut, [
|
|
991
|
+
(m(!0), S(R, null, z(l(t), (o, p) => (m(), S(R, {
|
|
992
992
|
key: o.key
|
|
993
993
|
}, [
|
|
994
|
-
l(G)(o) && o.dropdown ? (m(), b(l(
|
|
994
|
+
l(G)(o) && o.dropdown ? (m(), b(l(ve), {
|
|
995
995
|
key: 0,
|
|
996
996
|
placement: "bottomRight",
|
|
997
997
|
class: "p-0 rounded-none"
|
|
998
998
|
}, {
|
|
999
999
|
overlay: g(() => [
|
|
1000
1000
|
$("div", {
|
|
1001
|
-
class:
|
|
1001
|
+
class: E(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
|
|
1002
1002
|
}, [
|
|
1003
|
-
o.dropdown === "headset" ? (m(), b(l(
|
|
1003
|
+
o.dropdown === "headset" ? (m(), b(l(Ua), {
|
|
1004
1004
|
key: 0,
|
|
1005
1005
|
modelValue: i.value,
|
|
1006
1006
|
"onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
|
|
@@ -1009,7 +1009,7 @@ const qt = async (s, a) => {
|
|
|
1009
1009
|
handle: ".drag-handle"
|
|
1010
1010
|
}, {
|
|
1011
1011
|
default: g(() => [
|
|
1012
|
-
(m(!0), S(
|
|
1012
|
+
(m(!0), S(R, null, z(i.value, (r) => (m(), S("div", {
|
|
1013
1013
|
key: r.name,
|
|
1014
1014
|
onClick: d[0] || (d[0] = ae(() => {
|
|
1015
1015
|
}, ["stop"])),
|
|
@@ -1020,7 +1020,7 @@ const qt = async (s, a) => {
|
|
|
1020
1020
|
checked: r.visible !== !1,
|
|
1021
1021
|
onChange: ae(
|
|
1022
1022
|
(v) => {
|
|
1023
|
-
l(
|
|
1023
|
+
l(Ja)(r, v.target.checked);
|
|
1024
1024
|
},
|
|
1025
1025
|
["stop", "prevent"]
|
|
1026
1026
|
),
|
|
@@ -1039,12 +1039,12 @@ const qt = async (s, a) => {
|
|
|
1039
1039
|
]),
|
|
1040
1040
|
default: g(() => [
|
|
1041
1041
|
w(l(O), {
|
|
1042
|
-
class:
|
|
1042
|
+
class: E([
|
|
1043
1043
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1044
1044
|
p === 0 ? "rounded-l-[5px]" : "",
|
|
1045
1045
|
p === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1046
1046
|
]),
|
|
1047
|
-
disabled: l(
|
|
1047
|
+
disabled: l(H)(o),
|
|
1048
1048
|
tiptext: o.label,
|
|
1049
1049
|
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1050
1050
|
}, {
|
|
@@ -1061,12 +1061,12 @@ const qt = async (s, a) => {
|
|
|
1061
1061
|
_: 2
|
|
1062
1062
|
}, 1024)) : !o.children && l(G)(o) ? (m(), b(l(O), {
|
|
1063
1063
|
key: 1,
|
|
1064
|
-
class:
|
|
1064
|
+
class: E([
|
|
1065
1065
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1066
1066
|
p === 0 ? "rounded-l-[5px]" : "",
|
|
1067
1067
|
p === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1068
1068
|
]),
|
|
1069
|
-
disabled: l(
|
|
1069
|
+
disabled: l(H)(o),
|
|
1070
1070
|
tiptext: o.label,
|
|
1071
1071
|
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1072
1072
|
}, {
|
|
@@ -1078,17 +1078,17 @@ const qt = async (s, a) => {
|
|
|
1078
1078
|
}, null, 8, ["icon"])
|
|
1079
1079
|
]),
|
|
1080
1080
|
_: 2
|
|
1081
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(G)(o) ? (m(), b(l(
|
|
1081
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(G)(o) ? (m(), b(l(ve), {
|
|
1082
1082
|
key: 2,
|
|
1083
1083
|
placement: "bottomRight",
|
|
1084
1084
|
class: "p-0 rounded-none"
|
|
1085
1085
|
}, {
|
|
1086
1086
|
overlay: g(() => [
|
|
1087
|
-
w(l(
|
|
1087
|
+
w(l(_e), null, {
|
|
1088
1088
|
default: g(() => [
|
|
1089
|
-
(m(!0), S(
|
|
1089
|
+
(m(!0), S(R, null, z(o.children, (r) => (m(), b(l(xe), {
|
|
1090
1090
|
key: r.key,
|
|
1091
|
-
disabled: l(
|
|
1091
|
+
disabled: l(H)(r)
|
|
1092
1092
|
}, {
|
|
1093
1093
|
default: g(() => [
|
|
1094
1094
|
M(F(r.label), 1)
|
|
@@ -1101,11 +1101,11 @@ const qt = async (s, a) => {
|
|
|
1101
1101
|
]),
|
|
1102
1102
|
default: g(() => [
|
|
1103
1103
|
w(l(O), {
|
|
1104
|
-
class:
|
|
1104
|
+
class: E([
|
|
1105
1105
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1106
1106
|
p === 0 ? "rounded-l-[5px]" : ""
|
|
1107
1107
|
]),
|
|
1108
|
-
disabled: l(
|
|
1108
|
+
disabled: l(H)(o),
|
|
1109
1109
|
tiptext: o.label,
|
|
1110
1110
|
icon: o.icon,
|
|
1111
1111
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
@@ -1125,7 +1125,7 @@ const qt = async (s, a) => {
|
|
|
1125
1125
|
], 64))), 128))
|
|
1126
1126
|
]));
|
|
1127
1127
|
}
|
|
1128
|
-
}),
|
|
1128
|
+
}), pt = { class: "flex justify-between mb-[10px]" }, ft = { key: 1 }, vt = 3, mt = /* @__PURE__ */ C({
|
|
1129
1129
|
__name: "index",
|
|
1130
1130
|
props: {
|
|
1131
1131
|
gridCtrl: {},
|
|
@@ -1144,7 +1144,7 @@ const qt = async (s, a) => {
|
|
|
1144
1144
|
// 默认仅受权限码控制
|
|
1145
1145
|
click: () => la(n)
|
|
1146
1146
|
}
|
|
1147
|
-
], f =
|
|
1147
|
+
], f = _([]), d = _([]);
|
|
1148
1148
|
return T(
|
|
1149
1149
|
() => {
|
|
1150
1150
|
var o;
|
|
@@ -1152,9 +1152,9 @@ const qt = async (s, a) => {
|
|
|
1152
1152
|
},
|
|
1153
1153
|
() => {
|
|
1154
1154
|
var r;
|
|
1155
|
-
const { buttons: o, menus: p } =
|
|
1155
|
+
const { buttons: o, menus: p } = ye(
|
|
1156
1156
|
c,
|
|
1157
|
-
e.flat !== void 0 ? e.flat :
|
|
1157
|
+
e.flat !== void 0 ? e.flat : vt,
|
|
1158
1158
|
(r = e.buttons) == null ? void 0 : r.value
|
|
1159
1159
|
);
|
|
1160
1160
|
f.value.splice(0, f.value.length, ...o), d.value.splice(0, d.value.length, ...p);
|
|
@@ -1165,14 +1165,14 @@ const qt = async (s, a) => {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
), (o, p) => {
|
|
1167
1167
|
const r = le("auth");
|
|
1168
|
-
return m(), S("div",
|
|
1168
|
+
return m(), S("div", pt, [
|
|
1169
1169
|
w(l(te), null, {
|
|
1170
1170
|
default: g(() => [
|
|
1171
|
-
(m(!0), S(
|
|
1171
|
+
(m(!0), S(R, null, z(f.value, (v) => Q((m(), b(l(O), {
|
|
1172
1172
|
key: v.key,
|
|
1173
1173
|
type: v.type,
|
|
1174
1174
|
danger: v.danger,
|
|
1175
|
-
disabled: l(
|
|
1175
|
+
disabled: l(H)(v),
|
|
1176
1176
|
icon: v.icon,
|
|
1177
1177
|
onClick: (u) => l(V)(v, l(t), l(e))
|
|
1178
1178
|
}, {
|
|
@@ -1183,13 +1183,13 @@ const qt = async (s, a) => {
|
|
|
1183
1183
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
1184
1184
|
[r, { url: i.value, role: v.role, permit: v.permit }]
|
|
1185
1185
|
])), 128)),
|
|
1186
|
-
d.value.length > 0 ? (m(), b(l(
|
|
1186
|
+
d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
|
|
1187
1187
|
overlay: g(() => [
|
|
1188
|
-
w(l(
|
|
1188
|
+
w(l(_e), null, {
|
|
1189
1189
|
default: g(() => [
|
|
1190
|
-
(m(!0), S(
|
|
1190
|
+
(m(!0), S(R, null, z(d.value, (v) => Q((m(), b(l(xe), {
|
|
1191
1191
|
key: v.key,
|
|
1192
|
-
disabled: l(
|
|
1192
|
+
disabled: l(H)(v),
|
|
1193
1193
|
onClick: (u) => l(V)(v, l(t), l(e))
|
|
1194
1194
|
}, {
|
|
1195
1195
|
default: g(() => [
|
|
@@ -1214,20 +1214,20 @@ const qt = async (s, a) => {
|
|
|
1214
1214
|
]),
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
})) : k("", !0),
|
|
1217
|
-
f.value.length === 0 && d.value.length === 0 ? (m(), S("span",
|
|
1217
|
+
f.value.length === 0 && d.value.length === 0 ? (m(), S("span", ft)) : k("", !0)
|
|
1218
1218
|
]),
|
|
1219
1219
|
_: 1
|
|
1220
1220
|
}),
|
|
1221
1221
|
w(l(te), { class: "mr-1" }, {
|
|
1222
1222
|
default: g(() => [
|
|
1223
|
-
(m(), b(
|
|
1223
|
+
(m(), b(xa(dt), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
|
|
1224
1224
|
]),
|
|
1225
1225
|
_: 1
|
|
1226
1226
|
})
|
|
1227
1227
|
]);
|
|
1228
1228
|
};
|
|
1229
1229
|
}
|
|
1230
|
-
}),
|
|
1230
|
+
}), ol = /* @__PURE__ */ C({
|
|
1231
1231
|
inheritAttrs: !1,
|
|
1232
1232
|
__name: "index",
|
|
1233
1233
|
props: {
|
|
@@ -1242,7 +1242,7 @@ const qt = async (s, a) => {
|
|
|
1242
1242
|
setup(s) {
|
|
1243
1243
|
const a = s, e = X(), t = a.gridCtrl, n = J(() => ce.currentRoute.value.path);
|
|
1244
1244
|
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
1245
|
-
const i =
|
|
1245
|
+
const i = _(t.pageSize.value), c = _(t.pageNo.value), f = _([]), d = _({
|
|
1246
1246
|
total: 0,
|
|
1247
1247
|
current: 1,
|
|
1248
1248
|
pageSize: i.value,
|
|
@@ -1265,7 +1265,7 @@ const qt = async (s, a) => {
|
|
|
1265
1265
|
},
|
|
1266
1266
|
{ immediate: !0 }
|
|
1267
1267
|
);
|
|
1268
|
-
const o =
|
|
1268
|
+
const o = _(t.columns.value), p = {
|
|
1269
1269
|
onChange: (u, h) => {
|
|
1270
1270
|
t && (t.selectKeys.value = u, t.selectRows.value = h);
|
|
1271
1271
|
},
|
|
@@ -1274,7 +1274,7 @@ const qt = async (s, a) => {
|
|
|
1274
1274
|
disabled: u.Enabled === 0
|
|
1275
1275
|
}),
|
|
1276
1276
|
...a.rowSelection
|
|
1277
|
-
}, r =
|
|
1277
|
+
}, r = _(p);
|
|
1278
1278
|
T(
|
|
1279
1279
|
() => t.selectable.value,
|
|
1280
1280
|
(u) => {
|
|
@@ -1288,18 +1288,18 @@ const qt = async (s, a) => {
|
|
|
1288
1288
|
},
|
|
1289
1289
|
{ deep: !0, immediate: !0 }
|
|
1290
1290
|
);
|
|
1291
|
-
const v =
|
|
1291
|
+
const v = _(!1);
|
|
1292
1292
|
return ya(() => {
|
|
1293
1293
|
v.value && t && (t.reload.value = !0);
|
|
1294
|
-
}),
|
|
1295
|
-
|
|
1294
|
+
}), K(async () => {
|
|
1295
|
+
ge(j.GridControl, t), t.tableData.value ? (f.value = t.tableData.value, t.total.value = f.value.length, d.value !== !1 && (d.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? f.value = (await ke(t)).rows : f.value = await sa(t)), setTimeout(() => {
|
|
1296
1296
|
v.value = !0;
|
|
1297
1297
|
}, 50);
|
|
1298
1298
|
}), (u, h) => {
|
|
1299
1299
|
var I, A;
|
|
1300
1300
|
const y = le("auth");
|
|
1301
|
-
return m(), S(
|
|
1302
|
-
(I = l(t).buttons) != null && I.value.length || (A = l(t).tools) != null && A.length ? (m(), b(
|
|
1301
|
+
return m(), S(R, null, [
|
|
1302
|
+
(I = l(t).buttons) != null && I.value.length || (A = l(t).tools) != null && A.length ? (m(), b(mt, {
|
|
1303
1303
|
key: 0,
|
|
1304
1304
|
"grid-ctrl": l(t),
|
|
1305
1305
|
"editor-ctrl": l(t).editor
|
|
@@ -1317,34 +1317,34 @@ const qt = async (s, a) => {
|
|
|
1317
1317
|
size: l(t).tableSize.value,
|
|
1318
1318
|
bordered: ""
|
|
1319
1319
|
}, l(e)), {
|
|
1320
|
-
bodyCell: g((
|
|
1321
|
-
var
|
|
1320
|
+
bodyCell: g((x) => {
|
|
1321
|
+
var P, B;
|
|
1322
1322
|
return [
|
|
1323
1323
|
D(u.$slots, "bodyCell", {
|
|
1324
|
-
column:
|
|
1325
|
-
record:
|
|
1324
|
+
column: x == null ? void 0 : x.column,
|
|
1325
|
+
record: x == null ? void 0 : x.record
|
|
1326
1326
|
}),
|
|
1327
|
-
l(t) && ((
|
|
1327
|
+
l(t) && ((P = x == null ? void 0 : x.column) == null ? void 0 : P.dataIndex) === "enabled" ? Q((m(), b(ra, {
|
|
1328
1328
|
key: 0,
|
|
1329
|
-
checked:
|
|
1330
|
-
"onUpdate:checked": (se) =>
|
|
1331
|
-
disabled: u.statusDisabled ? u.statusDisabled(
|
|
1329
|
+
checked: x.record.Enabled,
|
|
1330
|
+
"onUpdate:checked": (se) => x.record.Enabled = se,
|
|
1331
|
+
disabled: u.statusDisabled ? u.statusDisabled(x.record) : !1,
|
|
1332
1332
|
data: l(Ne).EnableDisable,
|
|
1333
|
-
onClick: (se) => l(oa)(l(t),
|
|
1334
|
-
class:
|
|
1333
|
+
onClick: (se) => l(oa)(l(t), x.record),
|
|
1334
|
+
class: E([
|
|
1335
1335
|
"w-[58px]",
|
|
1336
|
-
u.statusDisabled && u.statusDisabled(
|
|
1336
|
+
u.statusDisabled && u.statusDisabled(x.record) ? "cursor-not-allowed disabled" : ""
|
|
1337
1337
|
]),
|
|
1338
|
-
loading:
|
|
1338
|
+
loading: x == null ? void 0 : x.record.isLoading
|
|
1339
1339
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
1340
1340
|
[y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1341
1341
|
]) : k("", !0),
|
|
1342
|
-
l(t) && ((
|
|
1342
|
+
l(t) && ((B = x == null ? void 0 : x.column) == null ? void 0 : B.dataIndex) === "operation" ? D(u.$slots, "operate", {
|
|
1343
1343
|
key: 1,
|
|
1344
|
-
record:
|
|
1344
|
+
record: x == null ? void 0 : x.record
|
|
1345
1345
|
}, () => [
|
|
1346
|
-
w(
|
|
1347
|
-
record:
|
|
1346
|
+
w(ct, {
|
|
1347
|
+
record: x == null ? void 0 : x.record,
|
|
1348
1348
|
"grid-ctrl": l(t)
|
|
1349
1349
|
}, null, 8, ["record", "grid-ctrl"])
|
|
1350
1350
|
]) : k("", !0)
|
|
@@ -1355,7 +1355,7 @@ const qt = async (s, a) => {
|
|
|
1355
1355
|
], 64);
|
|
1356
1356
|
};
|
|
1357
1357
|
}
|
|
1358
|
-
}),
|
|
1358
|
+
}), ht = { class: "flex items-center gap-1" }, gt = { class: "text-nowrap" }, nl = /* @__PURE__ */ C({
|
|
1359
1359
|
__name: "index",
|
|
1360
1360
|
props: {
|
|
1361
1361
|
treeCtrl: {},
|
|
@@ -1364,14 +1364,14 @@ const qt = async (s, a) => {
|
|
|
1364
1364
|
},
|
|
1365
1365
|
emits: ["select", "update:selectedKeys"],
|
|
1366
1366
|
setup(s, { emit: a }) {
|
|
1367
|
-
const e = s, t = X(), n = e.treeCtrl, i =
|
|
1367
|
+
const e = s, t = X(), n = e.treeCtrl, i = _([]);
|
|
1368
1368
|
T(
|
|
1369
1369
|
() => n.data.value,
|
|
1370
1370
|
(p) => {
|
|
1371
1371
|
p && (i.value = n.fieldMap ? oe(n.fieldMap, p) : p, o(e.selectedKeys ?? []));
|
|
1372
1372
|
}
|
|
1373
1373
|
);
|
|
1374
|
-
const c = a, f =
|
|
1374
|
+
const c = a, f = _([]);
|
|
1375
1375
|
T(
|
|
1376
1376
|
() => e.selectedKeys,
|
|
1377
1377
|
(p) => {
|
|
@@ -1379,7 +1379,7 @@ const qt = async (s, a) => {
|
|
|
1379
1379
|
},
|
|
1380
1380
|
{ immediate: !0 }
|
|
1381
1381
|
);
|
|
1382
|
-
const d =
|
|
1382
|
+
const d = _(["-"]);
|
|
1383
1383
|
T(
|
|
1384
1384
|
() => e.expandedKeys,
|
|
1385
1385
|
(p) => {
|
|
@@ -1390,14 +1390,14 @@ const qt = async (s, a) => {
|
|
|
1390
1390
|
const o = (p, r) => {
|
|
1391
1391
|
p.length === 0 && p.push(...f.value), p.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), f.value = p, c("update:selectedKeys", p), c("select", p, r);
|
|
1392
1392
|
};
|
|
1393
|
-
return
|
|
1393
|
+
return K(() => {
|
|
1394
1394
|
n.fieldMap || (n.fieldMap = {
|
|
1395
1395
|
label: "Name",
|
|
1396
1396
|
key: "Id",
|
|
1397
1397
|
value: "Id",
|
|
1398
1398
|
icon: "Icon"
|
|
1399
1399
|
}), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Me(n);
|
|
1400
|
-
}), (p, r) => (m(), b(l(
|
|
1400
|
+
}), (p, r) => (m(), b(l(Pa), N({
|
|
1401
1401
|
class: "w-full",
|
|
1402
1402
|
"show-line": !0,
|
|
1403
1403
|
"tree-data": i.value,
|
|
@@ -1413,16 +1413,16 @@ const qt = async (s, a) => {
|
|
|
1413
1413
|
key: v,
|
|
1414
1414
|
icon: h
|
|
1415
1415
|
}, () => [
|
|
1416
|
-
$("div",
|
|
1416
|
+
$("div", ht, [
|
|
1417
1417
|
w(l(U), { icon: h }, null, 8, ["icon"]),
|
|
1418
|
-
$("span",
|
|
1418
|
+
$("span", gt, F(u), 1)
|
|
1419
1419
|
])
|
|
1420
1420
|
])
|
|
1421
1421
|
]),
|
|
1422
1422
|
_: 3
|
|
1423
1423
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1424
1424
|
}
|
|
1425
|
-
}),
|
|
1425
|
+
}), il = /* @__PURE__ */ q(na, [["__scopeId", "data-v-62a24cf4"]]), bt = { class: "relative w-[248px] max-w-[248px]" }, _t = {
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1428
1428
|
}, xt = /* @__PURE__ */ C({
|
|
@@ -1434,39 +1434,39 @@ const qt = async (s, a) => {
|
|
|
1434
1434
|
var y, I, A;
|
|
1435
1435
|
const e = s, t = X(), n = L(), i = ca(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
|
|
1436
1436
|
c.inputFactory = ka(n);
|
|
1437
|
-
const f =
|
|
1437
|
+
const f = _({
|
|
1438
1438
|
...c == null ? void 0 : c.url,
|
|
1439
1439
|
url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
|
|
1440
1440
|
fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
|
|
1441
1441
|
params: (c == null ? void 0 : c.params) || ((A = c == null ? void 0 : c.url) == null ? void 0 : A.params),
|
|
1442
1442
|
loadingText: !1
|
|
1443
|
-
}), { editorCtrl: d, errInfo: o, labelText: p } = n, r =
|
|
1443
|
+
}), { editorCtrl: d, errInfo: o, labelText: p } = n, r = _(t.placeholder);
|
|
1444
1444
|
T(
|
|
1445
1445
|
() => f.value.loading,
|
|
1446
|
-
(
|
|
1447
|
-
|
|
1446
|
+
(x) => {
|
|
1447
|
+
x ? r.value = "" : r.value || (r.value = "请选择" + p.value);
|
|
1448
1448
|
},
|
|
1449
1449
|
{ immediate: !0 }
|
|
1450
1450
|
);
|
|
1451
1451
|
const v = a;
|
|
1452
1452
|
n.inputEmit = v;
|
|
1453
|
-
const u =
|
|
1453
|
+
const u = _((c == null ? void 0 : c.options.value) || []);
|
|
1454
1454
|
c && T(
|
|
1455
1455
|
() => c.options.value,
|
|
1456
|
-
(
|
|
1457
|
-
u.value =
|
|
1456
|
+
(x) => {
|
|
1457
|
+
u.value = x || [];
|
|
1458
1458
|
},
|
|
1459
1459
|
{ immediate: !0, deep: !0 }
|
|
1460
1460
|
);
|
|
1461
|
-
const h = (
|
|
1462
|
-
if (!
|
|
1461
|
+
const h = (x, P) => {
|
|
1462
|
+
if (!P || P.length === 0) {
|
|
1463
1463
|
v("update:labels", []), v("update:value", []);
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
|
-
const
|
|
1467
|
-
v("update:labels", qe), v("update:value",
|
|
1466
|
+
const B = P.map((Ge) => Ge.value), se = fa(c, e, B), qe = va(se);
|
|
1467
|
+
v("update:labels", qe), v("update:value", B), o != null && o.value.errClass && d && Y(d);
|
|
1468
1468
|
};
|
|
1469
|
-
return
|
|
1469
|
+
return K(() => {
|
|
1470
1470
|
f.value && !f.value.fieldMap && (f.value.fieldMap = {
|
|
1471
1471
|
title: "Name",
|
|
1472
1472
|
label: "Name",
|
|
@@ -1475,16 +1475,16 @@ const qt = async (s, a) => {
|
|
|
1475
1475
|
}), c && ua(c.autoload, c, e);
|
|
1476
1476
|
}), wa(() => {
|
|
1477
1477
|
c && da(c, e);
|
|
1478
|
-
}), (
|
|
1479
|
-
var
|
|
1480
|
-
return m(), S("div",
|
|
1481
|
-
u.value.length ? k("", !0) : (m(), S("div",
|
|
1478
|
+
}), (x, P) => {
|
|
1479
|
+
var B;
|
|
1480
|
+
return m(), S("div", bt, [
|
|
1481
|
+
u.value.length ? k("", !0) : (m(), S("div", _t, [
|
|
1482
1482
|
w(l(pa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1483
|
-
|
|
1483
|
+
P[0] || (P[0] = $("span", null, "数据加载中...", -1))
|
|
1484
1484
|
])),
|
|
1485
|
-
w(l(
|
|
1485
|
+
w(l(Ea), N({
|
|
1486
1486
|
options: u.value,
|
|
1487
|
-
class: [(
|
|
1487
|
+
class: [(B = l(o)) == null ? void 0 : B.errClass],
|
|
1488
1488
|
"allow-clear": !0,
|
|
1489
1489
|
placeholder: u.value.length > 0 ? "请选择" + l(p) : "",
|
|
1490
1490
|
onChange: h
|
|
@@ -1492,7 +1492,7 @@ const qt = async (s, a) => {
|
|
|
1492
1492
|
]);
|
|
1493
1493
|
};
|
|
1494
1494
|
}
|
|
1495
|
-
}),
|
|
1495
|
+
}), cl = /* @__PURE__ */ q(xt, [["__scopeId", "data-v-7f0def6e"]]), ul = /* @__PURE__ */ q(ma, [["__scopeId", "data-v-64193a41"]]);
|
|
1496
1496
|
function ie() {
|
|
1497
1497
|
return ie = Object.assign ? Object.assign.bind() : function(s) {
|
|
1498
1498
|
for (var a = 1; a < arguments.length; a++) {
|
|
@@ -1502,7 +1502,7 @@ function ie() {
|
|
|
1502
1502
|
return s;
|
|
1503
1503
|
}, ie.apply(null, arguments);
|
|
1504
1504
|
}
|
|
1505
|
-
const
|
|
1505
|
+
const yt = {
|
|
1506
1506
|
locale: "zh_CN",
|
|
1507
1507
|
today: "今天",
|
|
1508
1508
|
now: "此刻",
|
|
@@ -1529,10 +1529,10 @@ const _t = {
|
|
|
1529
1529
|
nextDecade: "下一年代",
|
|
1530
1530
|
previousCentury: "上一世纪",
|
|
1531
1531
|
nextCentury: "下一世纪"
|
|
1532
|
-
},
|
|
1532
|
+
}, kt = {
|
|
1533
1533
|
placeholder: "请选择时间",
|
|
1534
1534
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1535
|
-
},
|
|
1535
|
+
}, ue = {
|
|
1536
1536
|
lang: ie({
|
|
1537
1537
|
placeholder: "请选择日期",
|
|
1538
1538
|
yearPlaceholder: "请选择年份",
|
|
@@ -1544,31 +1544,31 @@ const _t = {
|
|
|
1544
1544
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1545
1545
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1546
1546
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1547
|
-
},
|
|
1548
|
-
timePickerLocale: ie({},
|
|
1547
|
+
}, yt),
|
|
1548
|
+
timePickerLocale: ie({}, kt)
|
|
1549
1549
|
};
|
|
1550
|
-
|
|
1551
|
-
const
|
|
1550
|
+
ue.lang.ok = "确定";
|
|
1551
|
+
const dl = /* @__PURE__ */ C({
|
|
1552
1552
|
__name: "index",
|
|
1553
1553
|
props: {
|
|
1554
1554
|
valueFormat: {}
|
|
1555
1555
|
},
|
|
1556
1556
|
setup(s) {
|
|
1557
1557
|
const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1558
|
-
n != null && n.value.errClass && e &&
|
|
1559
|
-
}, c =
|
|
1558
|
+
n != null && n.value.errClass && e && Y(e);
|
|
1559
|
+
}, c = _(a.valueFormat ?? "YYYY-MM-DD");
|
|
1560
1560
|
return (f, d) => {
|
|
1561
1561
|
var o;
|
|
1562
1562
|
return m(), b(l(Fa), {
|
|
1563
|
-
class:
|
|
1563
|
+
class: E(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1564
1564
|
placeholder: "请选择" + l(t),
|
|
1565
|
-
locale: l(
|
|
1565
|
+
locale: l(ue),
|
|
1566
1566
|
valueFormat: c.value,
|
|
1567
1567
|
onBlur: i
|
|
1568
1568
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1569
1569
|
};
|
|
1570
1570
|
}
|
|
1571
|
-
}),
|
|
1571
|
+
}), wt = /* @__PURE__ */ C({
|
|
1572
1572
|
__name: "index",
|
|
1573
1573
|
props: {
|
|
1574
1574
|
value: {},
|
|
@@ -1577,8 +1577,8 @@ const ul = /* @__PURE__ */ C({
|
|
|
1577
1577
|
emits: ["update:value"],
|
|
1578
1578
|
setup(s, { emit: a }) {
|
|
1579
1579
|
const { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1580
|
-
n != null && n.value.errClass && e &&
|
|
1581
|
-
}, c = s, f = c.value === void 0 ? !0 : c.undefValue, d = a, o =
|
|
1580
|
+
n != null && n.value.errClass && e && Y(e);
|
|
1581
|
+
}, c = s, f = c.value === void 0 ? !0 : c.undefValue, d = a, o = _(c.value);
|
|
1582
1582
|
T(
|
|
1583
1583
|
() => c.value,
|
|
1584
1584
|
(r) => {
|
|
@@ -1631,14 +1631,14 @@ const ul = /* @__PURE__ */ C({
|
|
|
1631
1631
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
|
-
}),
|
|
1634
|
+
}), St = /* @__PURE__ */ C({
|
|
1635
1635
|
__name: "inputIcon",
|
|
1636
1636
|
props: {
|
|
1637
1637
|
value: {}
|
|
1638
1638
|
},
|
|
1639
1639
|
emits: ["update:value"],
|
|
1640
1640
|
setup(s, { emit: a }) {
|
|
1641
|
-
const e = s, t = a, n =
|
|
1641
|
+
const e = s, t = a, n = _(void 0);
|
|
1642
1642
|
return T(
|
|
1643
1643
|
() => e.value,
|
|
1644
1644
|
(i) => {
|
|
@@ -1650,7 +1650,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1650
1650
|
(i) => {
|
|
1651
1651
|
t("update:value", i);
|
|
1652
1652
|
}
|
|
1653
|
-
), (i, c) => (m(), b(
|
|
1653
|
+
), (i, c) => (m(), b(wt, N({
|
|
1654
1654
|
value: n.value,
|
|
1655
1655
|
"onUpdate:value": c[0] || (c[0] = (f) => n.value = f)
|
|
1656
1656
|
}, i.$attrs), {
|
|
@@ -1663,11 +1663,11 @@ const ul = /* @__PURE__ */ C({
|
|
|
1663
1663
|
_: 1
|
|
1664
1664
|
}, 16, ["value"]));
|
|
1665
1665
|
}
|
|
1666
|
-
}),
|
|
1666
|
+
}), pl = /* @__PURE__ */ q(St, [["__scopeId", "data-v-358b82ef"]]), fl = /* @__PURE__ */ C({
|
|
1667
1667
|
__name: "inputPassword",
|
|
1668
1668
|
setup(s) {
|
|
1669
1669
|
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1670
|
-
t != null && t.value.errClass && a &&
|
|
1670
|
+
t != null && t.value.errClass && a && Y(a);
|
|
1671
1671
|
};
|
|
1672
1672
|
return (i, c) => {
|
|
1673
1673
|
var f;
|
|
@@ -1680,11 +1680,11 @@ const ul = /* @__PURE__ */ C({
|
|
|
1680
1680
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
|
-
}),
|
|
1683
|
+
}), vl = /* @__PURE__ */ C({
|
|
1684
1684
|
__name: "inputNumber",
|
|
1685
1685
|
setup(s) {
|
|
1686
1686
|
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1687
|
-
t != null && t.value.errClass && a &&
|
|
1687
|
+
t != null && t.value.errClass && a && Y(a);
|
|
1688
1688
|
};
|
|
1689
1689
|
return (i, c) => {
|
|
1690
1690
|
var f;
|
|
@@ -1696,7 +1696,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1696
1696
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1697
1697
|
};
|
|
1698
1698
|
}
|
|
1699
|
-
}),
|
|
1699
|
+
}), Ct = { class: "flex flex-col gap-2" }, Tt = { key: 1 }, ml = /* @__PURE__ */ C({
|
|
1700
1700
|
__name: "index",
|
|
1701
1701
|
props: {
|
|
1702
1702
|
value: {},
|
|
@@ -1707,7 +1707,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1707
1707
|
},
|
|
1708
1708
|
emits: ["update:value"],
|
|
1709
1709
|
setup(s, { emit: a }) {
|
|
1710
|
-
const e = s, t = a, n =
|
|
1710
|
+
const e = s, t = a, n = _(!(e.selectList && e.selectList.length > 0)), i = _([]);
|
|
1711
1711
|
let c = !1;
|
|
1712
1712
|
const f = () => {
|
|
1713
1713
|
e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
|
|
@@ -1744,13 +1744,13 @@ const ul = /* @__PURE__ */ C({
|
|
|
1744
1744
|
}, p = () => {
|
|
1745
1745
|
d();
|
|
1746
1746
|
};
|
|
1747
|
-
return (r, v) => (m(), S("div",
|
|
1748
|
-
(m(!0), S(
|
|
1747
|
+
return (r, v) => (m(), S("div", Ct, [
|
|
1748
|
+
(m(!0), S(R, null, z(i.value, (u) => (m(), S("div", {
|
|
1749
1749
|
key: u.id,
|
|
1750
1750
|
class: "flex items-center gap-2"
|
|
1751
1751
|
}, [
|
|
1752
1752
|
$("div", {
|
|
1753
|
-
class:
|
|
1753
|
+
class: E([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
|
|
1754
1754
|
}, [
|
|
1755
1755
|
!r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
|
|
1756
1756
|
key: 0,
|
|
@@ -1761,7 +1761,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1761
1761
|
placeholder: u.text || r.labelHolder || "配置名",
|
|
1762
1762
|
onInput: p,
|
|
1763
1763
|
disabled: !n.value
|
|
1764
|
-
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div",
|
|
1764
|
+
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", Tt, [
|
|
1765
1765
|
w(l(ee), {
|
|
1766
1766
|
value: u.text,
|
|
1767
1767
|
"onUpdate:value": (h) => u.text = h,
|
|
@@ -1778,7 +1778,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1778
1778
|
], 2),
|
|
1779
1779
|
v[0] || (v[0] = $("div", { class: "w-[3%]" }, "=", -1)),
|
|
1780
1780
|
$("div", {
|
|
1781
|
-
class:
|
|
1781
|
+
class: E([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
|
|
1782
1782
|
}, [
|
|
1783
1783
|
w(l(ee), {
|
|
1784
1784
|
value: u.value,
|
|
@@ -1803,7 +1803,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1803
1803
|
})) : k("", !0)
|
|
1804
1804
|
]));
|
|
1805
1805
|
}
|
|
1806
|
-
}),
|
|
1806
|
+
}), $t = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-a10d18a5"]]), hl = /* @__PURE__ */ C({
|
|
1807
1807
|
__name: "radioStatus",
|
|
1808
1808
|
props: {
|
|
1809
1809
|
/**
|
|
@@ -1831,13 +1831,13 @@ const ul = /* @__PURE__ */ C({
|
|
|
1831
1831
|
}
|
|
1832
1832
|
},
|
|
1833
1833
|
setup(s) {
|
|
1834
|
-
const a = s, e =
|
|
1834
|
+
const a = s, e = _(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
|
|
1835
1835
|
return a.all === !0 && e.value.unshift({
|
|
1836
1836
|
label: "全部",
|
|
1837
1837
|
value: a.allValue || [0, 1]
|
|
1838
|
-
}), (t, n) => (m(), b(
|
|
1838
|
+
}), (t, n) => (m(), b($t, { data: e.value }, null, 8, ["data"]));
|
|
1839
1839
|
}
|
|
1840
|
-
}),
|
|
1840
|
+
}), gl = /* @__PURE__ */ C({
|
|
1841
1841
|
__name: "index",
|
|
1842
1842
|
props: {
|
|
1843
1843
|
startDate: {},
|
|
@@ -1850,7 +1850,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1850
1850
|
const o = e.startDate, p = e.endDate;
|
|
1851
1851
|
if (!(!o || !p))
|
|
1852
1852
|
try {
|
|
1853
|
-
const r =
|
|
1853
|
+
const r = fe(o), v = fe(p);
|
|
1854
1854
|
return !r.isValid() || !v.isValid() ? void 0 : [r, v];
|
|
1855
1855
|
} catch {
|
|
1856
1856
|
return;
|
|
@@ -1864,24 +1864,24 @@ const ul = /* @__PURE__ */ C({
|
|
|
1864
1864
|
};
|
|
1865
1865
|
return (o, p) => {
|
|
1866
1866
|
var r;
|
|
1867
|
-
return m(), b(l(
|
|
1868
|
-
class:
|
|
1869
|
-
locale: l(
|
|
1867
|
+
return m(), b(l(Ba), {
|
|
1868
|
+
class: E([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1869
|
+
locale: l(ue),
|
|
1870
1870
|
"value-format": c.value,
|
|
1871
1871
|
value: f.value,
|
|
1872
1872
|
onChange: d
|
|
1873
1873
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1874
1874
|
};
|
|
1875
1875
|
}
|
|
1876
|
-
}),
|
|
1876
|
+
}), bl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-c804e3ee"]]), _l = /* @__PURE__ */ C({
|
|
1877
1877
|
__name: "index",
|
|
1878
1878
|
setup(s) {
|
|
1879
1879
|
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1880
|
-
t != null && t.value.errClass && a &&
|
|
1880
|
+
t != null && t.value.errClass && a && Y(a);
|
|
1881
1881
|
};
|
|
1882
1882
|
return (i, c) => {
|
|
1883
1883
|
var f;
|
|
1884
|
-
return m(), b(l(
|
|
1884
|
+
return m(), b(l(Ra), N({
|
|
1885
1885
|
class: ((f = l(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1886
1886
|
"allow-clear": !0,
|
|
1887
1887
|
placeholder: "请输入" + l(e),
|
|
@@ -1893,7 +1893,27 @@ const ul = /* @__PURE__ */ C({
|
|
|
1893
1893
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1894
1894
|
};
|
|
1895
1895
|
}
|
|
1896
|
-
}),
|
|
1896
|
+
}), xl = /* @__PURE__ */ C({
|
|
1897
|
+
__name: "index",
|
|
1898
|
+
props: {
|
|
1899
|
+
valueFormat: {}
|
|
1900
|
+
},
|
|
1901
|
+
setup(s) {
|
|
1902
|
+
const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1903
|
+
n != null && n.value.errClass && e && Y(e);
|
|
1904
|
+
}, c = _(a.valueFormat ?? "HH:mm");
|
|
1905
|
+
return (f, d) => {
|
|
1906
|
+
var o;
|
|
1907
|
+
return m(), b(l(Aa), {
|
|
1908
|
+
class: E(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1909
|
+
placeholder: "请选择" + l(t),
|
|
1910
|
+
locale: l(ue),
|
|
1911
|
+
valueFormat: c.value,
|
|
1912
|
+
onBlur: i
|
|
1913
|
+
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1914
|
+
};
|
|
1915
|
+
}
|
|
1916
|
+
}), It = /* @__PURE__ */ C({
|
|
1897
1917
|
__name: "index",
|
|
1898
1918
|
props: {
|
|
1899
1919
|
autoload: { type: Boolean },
|
|
@@ -1903,7 +1923,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1903
1923
|
},
|
|
1904
1924
|
emits: ["change", "update:value"],
|
|
1905
1925
|
setup(s, { emit: a }) {
|
|
1906
|
-
const e = s, t =
|
|
1926
|
+
const e = s, t = _({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), f = a, d = _([]), o = _([]);
|
|
1907
1927
|
e.value && e.value.every((r) => {
|
|
1908
1928
|
o.value.push(r.toString());
|
|
1909
1929
|
}), T(
|
|
@@ -1913,13 +1933,13 @@ const ul = /* @__PURE__ */ C({
|
|
|
1913
1933
|
}
|
|
1914
1934
|
);
|
|
1915
1935
|
const p = (r) => {
|
|
1916
|
-
f("update:value", r), f("change", r), o.value = r, c != null && c.value.errClass && n &&
|
|
1936
|
+
f("update:value", r), f("change", r), o.value = r, c != null && c.value.errClass && n && Y(n);
|
|
1917
1937
|
};
|
|
1918
|
-
return
|
|
1938
|
+
return K(async () => {
|
|
1919
1939
|
if (t.value) {
|
|
1920
1940
|
const r = n == null ? void 0 : n.page;
|
|
1921
1941
|
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) {
|
|
1922
|
-
const v = await
|
|
1942
|
+
const v = await Be(n, {
|
|
1923
1943
|
urlKey: "list",
|
|
1924
1944
|
url: { ...t.value, url: t.value.url },
|
|
1925
1945
|
loadingText: !1,
|
|
@@ -1930,27 +1950,27 @@ const ul = /* @__PURE__ */ C({
|
|
|
1930
1950
|
}
|
|
1931
1951
|
}), (r, v) => {
|
|
1932
1952
|
var u;
|
|
1933
|
-
return m(), b(l(
|
|
1953
|
+
return m(), b(l(Oa), N({
|
|
1934
1954
|
class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1935
1955
|
placeholder: "请输入" + l(i),
|
|
1936
1956
|
targetKeys: o.value,
|
|
1937
1957
|
onChange: p
|
|
1938
1958
|
}, r.$attrs), {
|
|
1939
|
-
children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: A, onItemSelect:
|
|
1959
|
+
children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: A, onItemSelect: x, selectedKeys: P }) => [
|
|
1940
1960
|
D(r.$slots, "children", {
|
|
1941
1961
|
direction: h,
|
|
1942
1962
|
disabled: y,
|
|
1943
1963
|
filteredItems: I,
|
|
1944
1964
|
onItemSelectAll: A,
|
|
1945
|
-
onItemSelect:
|
|
1946
|
-
selectedKeys:
|
|
1965
|
+
onItemSelect: x,
|
|
1966
|
+
selectedKeys: P
|
|
1947
1967
|
})
|
|
1948
1968
|
]),
|
|
1949
1969
|
_: 3
|
|
1950
1970
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1951
1971
|
};
|
|
1952
1972
|
}
|
|
1953
|
-
}),
|
|
1973
|
+
}), yl = /* @__PURE__ */ C({
|
|
1954
1974
|
__name: "transferTable",
|
|
1955
1975
|
props: {
|
|
1956
1976
|
/**
|
|
@@ -1977,7 +1997,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1977
1997
|
},
|
|
1978
1998
|
emits: ["update:value"],
|
|
1979
1999
|
setup(s, { emit: a }) {
|
|
1980
|
-
const e = s, t = a, n =
|
|
2000
|
+
const e = s, t = a, n = _(e.autoload), i = _(e.value), c = _(e.gridCtrl.primaryKey);
|
|
1981
2001
|
T(
|
|
1982
2002
|
() => i.value,
|
|
1983
2003
|
(o) => {
|
|
@@ -1988,7 +2008,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
1988
2008
|
(o) => {
|
|
1989
2009
|
o && (i.value = o);
|
|
1990
2010
|
}
|
|
1991
|
-
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable =
|
|
2011
|
+
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = _(!0), e.gridCtrl.buttons = _([]), e.gridCtrl.tools = [];
|
|
1992
2012
|
const f = ({ disabled: o, selectedKeys: p, onItemSelectAll: r, onItemSelect: v }) => ({
|
|
1993
2013
|
getCheckboxProps: (u) => ({
|
|
1994
2014
|
// 控制是否禁止
|
|
@@ -2002,10 +2022,10 @@ const ul = /* @__PURE__ */ C({
|
|
|
2002
2022
|
v(u, h);
|
|
2003
2023
|
},
|
|
2004
2024
|
selectedRowKeys: p
|
|
2005
|
-
}), d =
|
|
2006
|
-
return
|
|
2025
|
+
}), d = _([]);
|
|
2026
|
+
return K(async () => {
|
|
2007
2027
|
if (n.value) {
|
|
2008
|
-
const o = await
|
|
2028
|
+
const o = await Be(e.gridCtrl, {
|
|
2009
2029
|
urlKey: "list",
|
|
2010
2030
|
url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
|
|
2011
2031
|
params: e.gridCtrl.gridQuery,
|
|
@@ -2013,7 +2033,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
2013
2033
|
});
|
|
2014
2034
|
d.value = (o == null ? void 0 : o.data) ?? [];
|
|
2015
2035
|
}
|
|
2016
|
-
}), (o, p) => (m(), b(
|
|
2036
|
+
}), (o, p) => (m(), b(It, N({
|
|
2017
2037
|
"data-source": d.value,
|
|
2018
2038
|
"row-key": (r) => r[c.value],
|
|
2019
2039
|
value: i.value,
|
|
@@ -2056,7 +2076,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
2056
2076
|
_: 1
|
|
2057
2077
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
2058
2078
|
}
|
|
2059
|
-
}),
|
|
2079
|
+
}), Dt = /* @__PURE__ */ C({
|
|
2060
2080
|
__name: "index",
|
|
2061
2081
|
props: {
|
|
2062
2082
|
multiple: {
|
|
@@ -2085,7 +2105,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
2085
2105
|
setup(s, { emit: a }) {
|
|
2086
2106
|
const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: f } = i, d = a;
|
|
2087
2107
|
i.inputEmit = d;
|
|
2088
|
-
const o =
|
|
2108
|
+
const o = _([]), p = _();
|
|
2089
2109
|
T(
|
|
2090
2110
|
() => e.value,
|
|
2091
2111
|
(u) => {
|
|
@@ -2107,7 +2127,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
2107
2127
|
const r = (u) => {
|
|
2108
2128
|
e.multiple ? p.value = u ?? [] : u == null ? p.value = t ? void 0 : null : p.value = u, d("change", p.value);
|
|
2109
2129
|
};
|
|
2110
|
-
|
|
2130
|
+
K(() => {
|
|
2111
2131
|
n.fieldMap || (n.fieldMap = {
|
|
2112
2132
|
label: "Name",
|
|
2113
2133
|
key: "Id",
|
|
@@ -2119,7 +2139,7 @@ const ul = /* @__PURE__ */ C({
|
|
|
2119
2139
|
};
|
|
2120
2140
|
return (u, h) => {
|
|
2121
2141
|
var y;
|
|
2122
|
-
return m(), b(l(
|
|
2142
|
+
return m(), b(l(La), N({
|
|
2123
2143
|
class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
|
|
2124
2144
|
"tree-line": "",
|
|
2125
2145
|
multiple: s.multiple,
|
|
@@ -2133,29 +2153,29 @@ const ul = /* @__PURE__ */ C({
|
|
|
2133
2153
|
}, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2134
2154
|
};
|
|
2135
2155
|
}
|
|
2136
|
-
}),
|
|
2156
|
+
}), kl = /* @__PURE__ */ q(Dt, [["__scopeId", "data-v-a0ed9c4e"]]), Pt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Et = { class: "flex w-full h-full min-h-full" }, Ft = {
|
|
2137
2157
|
key: 0,
|
|
2138
2158
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2139
|
-
},
|
|
2159
|
+
}, Nt = { class: "flex-1 h-full overflow-y-auto" }, wl = /* @__PURE__ */ C({
|
|
2140
2160
|
__name: "index",
|
|
2141
2161
|
props: {
|
|
2142
2162
|
left: { type: Boolean }
|
|
2143
2163
|
},
|
|
2144
2164
|
setup(s) {
|
|
2145
2165
|
const { useToken: a } = Le, { token: e } = a();
|
|
2146
|
-
return (t, n) => (m(), S("div",
|
|
2147
|
-
w(l(
|
|
2166
|
+
return (t, n) => (m(), S("div", Pt, [
|
|
2167
|
+
w(l(za), {
|
|
2148
2168
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2149
|
-
style:
|
|
2169
|
+
style: be({
|
|
2150
2170
|
backgroundColor: l(e).colorBgContainer
|
|
2151
2171
|
})
|
|
2152
2172
|
}, {
|
|
2153
2173
|
default: g(() => [
|
|
2154
2174
|
$("div", Et, [
|
|
2155
|
-
t.left ? (m(), S("div",
|
|
2175
|
+
t.left ? (m(), S("div", Ft, [
|
|
2156
2176
|
D(t.$slots, "left")
|
|
2157
2177
|
])) : k("", !0),
|
|
2158
|
-
$("div",
|
|
2178
|
+
$("div", Nt, [
|
|
2159
2179
|
D(t.$slots, "default")
|
|
2160
2180
|
])
|
|
2161
2181
|
])
|
|
@@ -2166,159 +2186,160 @@ const ul = /* @__PURE__ */ C({
|
|
|
2166
2186
|
}
|
|
2167
2187
|
});
|
|
2168
2188
|
export {
|
|
2169
|
-
|
|
2170
|
-
|
|
2189
|
+
Ss as Alert,
|
|
2190
|
+
Ls as AppIcon,
|
|
2171
2191
|
ce as AppRouter,
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2192
|
+
cs as AsyncUploader,
|
|
2193
|
+
il as AutoComplete,
|
|
2194
|
+
zs as Breadcrumb,
|
|
2175
2195
|
O as Button,
|
|
2176
2196
|
je as Cache,
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2197
|
+
Za as CacheKeys,
|
|
2198
|
+
_s as CanPreviewFileExt,
|
|
2199
|
+
cl as Cascader,
|
|
2200
|
+
ul as Checkbox,
|
|
2201
|
+
wl as Content,
|
|
2202
|
+
dl as DatePicker,
|
|
2203
|
+
Us as Datetime,
|
|
2204
|
+
qs as Dialog,
|
|
2205
|
+
tl as Drawer,
|
|
2206
|
+
Tl as EventPrefix,
|
|
2207
|
+
ll as Form,
|
|
2208
|
+
sl as FormItem,
|
|
2209
|
+
el as Fullscreen,
|
|
2210
|
+
Vs as Header,
|
|
2211
|
+
Ys as HeaderExits,
|
|
2212
|
+
at as Helper,
|
|
2213
|
+
$l as ICONS_LIB,
|
|
2214
|
+
Ks as Icon,
|
|
2215
|
+
dt as Icontool,
|
|
2216
|
+
wt as Input,
|
|
2217
|
+
pl as InputIcon,
|
|
2218
|
+
vl as InputNumber,
|
|
2219
|
+
fl as InputPassword,
|
|
2220
|
+
al as LayoutIcon,
|
|
2221
|
+
Cs as Loading,
|
|
2222
|
+
Ws as Menu,
|
|
2223
|
+
Hs as MenuTabs,
|
|
2204
2224
|
Ne as OPTIONS,
|
|
2205
2225
|
ia as OptionCommProps,
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2226
|
+
js as ProjectIcon,
|
|
2227
|
+
ml as PropEditor,
|
|
2228
|
+
j as ProviderKeys,
|
|
2229
|
+
$t as Radio,
|
|
2230
|
+
hl as RadioStatus,
|
|
2231
|
+
gl as RangePicker,
|
|
2232
|
+
rl as Search,
|
|
2233
|
+
pe as SearchItem,
|
|
2234
|
+
bl as Select,
|
|
2215
2235
|
ra as Switch,
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2236
|
+
ol as Table,
|
|
2237
|
+
ct as TableOperate,
|
|
2238
|
+
_l as Textarea,
|
|
2239
|
+
xl as TimePicker,
|
|
2219
2240
|
U as ToolIcon,
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2241
|
+
mt as Toolbar,
|
|
2242
|
+
As as Tooltip,
|
|
2243
|
+
It as Transfer,
|
|
2244
|
+
yl as TransferTable,
|
|
2245
|
+
nl as Tree,
|
|
2246
|
+
kl as TreeSelect,
|
|
2247
|
+
xs as UploadList,
|
|
2248
|
+
us as UploadStatus,
|
|
2249
|
+
Ts as appendExcelData,
|
|
2250
|
+
$s as checkExcelDuplicates,
|
|
2251
|
+
Il as checkIconsExpired,
|
|
2231
2252
|
pa as circleLoading,
|
|
2232
2253
|
Xe as createFromIconfont,
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2254
|
+
Is as createMarkedExcelView,
|
|
2255
|
+
Dl as crumbs,
|
|
2256
|
+
Gt as csvToExcelBlob,
|
|
2236
2257
|
We as csvToExcelView,
|
|
2237
|
-
|
|
2258
|
+
Ds as csvToNormalized,
|
|
2238
2259
|
De as defaultTools,
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2260
|
+
Pl as doDelete,
|
|
2261
|
+
El as doExecute,
|
|
2262
|
+
Be as doQuery,
|
|
2263
|
+
Fl as doSave,
|
|
2264
|
+
ys as donwloadFromMinio,
|
|
2244
2265
|
Ke as downloadBlob,
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2266
|
+
Nl as eventBus,
|
|
2267
|
+
Ps as excelToExcelView,
|
|
2268
|
+
Es as excelToNormalized,
|
|
2269
|
+
Zt as exportResults,
|
|
2270
|
+
Xt as exportSelectedRows,
|
|
2250
2271
|
Fe as filterColumns,
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2272
|
+
Y as formValidate,
|
|
2273
|
+
ds as getAppInfo,
|
|
2274
|
+
Ml as getFormDetail,
|
|
2275
|
+
ps as getHostInfo,
|
|
2276
|
+
Bl as getIconTransform,
|
|
2277
|
+
Rl as getRecordDetail,
|
|
2278
|
+
Al as getRuleTexts,
|
|
2258
2279
|
va as getSelectedLabels,
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2280
|
+
Ol as getSelectedValues,
|
|
2281
|
+
fs as getToken,
|
|
2282
|
+
W as getToolByKey,
|
|
2283
|
+
ye as getToolGroup,
|
|
2284
|
+
H as getToolStatus,
|
|
2264
2285
|
G as getToolVisible,
|
|
2265
|
-
|
|
2286
|
+
vs as getUserInfo,
|
|
2266
2287
|
ke as gridQueryFind,
|
|
2267
2288
|
sa as gridQueryList,
|
|
2268
|
-
|
|
2289
|
+
Ll as gridRowUpdate,
|
|
2269
2290
|
oa as gridStatusUpdate,
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2291
|
+
qt as initCacheCheck,
|
|
2292
|
+
Qt as initDirective,
|
|
2293
|
+
zl as initMenu,
|
|
2294
|
+
Ul as initPageFactory,
|
|
2295
|
+
Vl as initValidate,
|
|
2275
2296
|
Z as isEmpty,
|
|
2276
2297
|
ua as loadOption,
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2298
|
+
Yl as mergeColumns,
|
|
2299
|
+
Fs as normalizedToExcelView,
|
|
2300
|
+
Ja as onColumnVisibleChanged,
|
|
2280
2301
|
ea as onFormClose,
|
|
2281
|
-
|
|
2302
|
+
Pe as onFormSave,
|
|
2282
2303
|
Ze as onFormSaveAs,
|
|
2283
2304
|
He as onFullscreenClick,
|
|
2284
2305
|
ta as onGridRowDelete,
|
|
2285
2306
|
aa as onGridRowEdit,
|
|
2286
|
-
|
|
2307
|
+
Kl as onGridRowExpand,
|
|
2287
2308
|
fa as onOptionChanged,
|
|
2288
|
-
|
|
2309
|
+
Ka as onReloadClick,
|
|
2289
2310
|
V as onToolClicked,
|
|
2290
2311
|
la as openNewForm,
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2312
|
+
Wl as outFormDataFields,
|
|
2313
|
+
Hl as parseIcons,
|
|
2314
|
+
ms as path,
|
|
2315
|
+
jl as pendingNavigation,
|
|
2316
|
+
Ql as pinia,
|
|
2317
|
+
ks as previewFromMinio,
|
|
2318
|
+
Jt as processCsvFile,
|
|
2319
|
+
Ns as processExcelFile,
|
|
2299
2320
|
Me as queryTree,
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2321
|
+
ql as resetRules,
|
|
2322
|
+
Gl as routes,
|
|
2323
|
+
Jl as saveForm,
|
|
2324
|
+
Xl as setFormData,
|
|
2325
|
+
Zl as showBreadcrumb,
|
|
2326
|
+
Ms as toExcel,
|
|
2306
2327
|
da as unloadOption,
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2328
|
+
es as useAppInfo,
|
|
2329
|
+
as as useEditorFactory,
|
|
2330
|
+
Ee as useFormItemFactory,
|
|
2331
|
+
ts as useGridFactory,
|
|
2332
|
+
ls as useHostInfo,
|
|
2312
2333
|
L as useInputFactory,
|
|
2313
2334
|
ca as useOptionFactory,
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2335
|
+
ss as usePageFactory,
|
|
2336
|
+
rs as usePageInfo,
|
|
2337
|
+
me as useSettingInfo,
|
|
2338
|
+
Xa as useToolFactory,
|
|
2339
|
+
os as useTreeFactory,
|
|
2319
2340
|
Je as useUserInfo,
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2341
|
+
hs as userLogin,
|
|
2342
|
+
gs as userLogout,
|
|
2343
|
+
ns as validateData,
|
|
2344
|
+
Bs as validateExcel
|
|
2324
2345
|
};
|