@skyfox2000/webui 1.4.5 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/TemplateFile.d.ts +1 -0
- package/lib/assets/modules/{baseLayout-BT7tGUB1.js → baseLayout-DOrecPPK.js} +6 -6
- package/lib/assets/modules/{file-upload-DicHRX1r.js → file-upload-lbkluj3p.js} +3 -3
- package/lib/assets/modules/{index-BURe9YrF.js → index-B1MSCuqH.js} +2 -2
- package/lib/assets/modules/{index-iozooZXX.js → index-BLNKcgk-.js} +1 -1
- package/lib/assets/modules/{index-BjXLzCF2.js → index-DQ-VDAr-.js} +10 -10
- package/lib/assets/modules/{menuTabs-D_UlXkmm.js → menuTabs-DOtYQ9Zu.js} +7 -7
- package/lib/assets/modules/{toolIcon-BiWBb2pJ.js → toolIcon-CqJWc5B7.js} +1 -1
- package/lib/assets/modules/{uploadList-61wZlPUk.js → uploadList-3SuA7du0.js} +150 -138
- package/lib/assets/modules/{uploadList-C_hqJ4X1.js → uploadList-DafDrGgh.js} +251 -239
- package/lib/components/content/tree/index.vue.d.ts +3 -14
- package/lib/components/form/upload/uploadList.vue.d.ts +3 -0
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +6 -6
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +6 -6
- package/lib/es/TemplateFile/index.js +208 -0
- package/lib/es/UploadForm/index.js +6 -6
- package/lib/utils/tree.d.ts +9 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +396 -378
- package/package.json +7 -1
- package/src/components/content/dialog/templateFile.vue +259 -0
- package/src/components/content/dialog/uploadForm.vue +6 -14
- package/src/components/content/tree/index.vue +26 -25
- package/src/components/form/upload/uploadList.vue +66 -89
- package/src/stores/userInfo.ts +6 -0
- package/src/utils/file-upload.ts +2 -2
- package/src/utils/tree.ts +20 -0
- package/.eslintrc.js +0 -23
- package/.prettierrc +0 -11
- package/.vscode/settings.json +0 -25
- package/env.d.ts +0 -11
- package/index.html +0 -19
- package/plugins/vite-plugin-auto-generate-vue.ts +0 -105
- package/postcss.config.ts +0 -6
- package/tailwind.config.ts +0 -11
- package/tsconfig.json +0 -46
- package/vite.config.ts +0 -120
- package//344/273/243/347/240/201/350/247/204/350/214/203/345/217/212/351/243/216/346/240/274/346/214/207/345/215/227.md +0 -116
package/lib/webui.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me,
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
1
|
+
import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, n as ia, q as Be, p as ca, s as ua, t as L, v as da, w as pa, x as fa, y as va, z as ma, A as ha, B as Y, C as ga, D as ba, E as _a, F as Re } from "./assets/modules/uploadList-DafDrGgh.js";
|
|
2
|
+
import { ab as Il, R as Dl, ad as El, S as Pl, W as Fl, aa as Nl, a8 as Ml, a9 as Bl, ac as Rl, Z as Ol, U as Al, a6 as Ll, a3 as zl, N as Ul, a5 as Vl, V as Yl, H as Kl, a0 as Wl, a4 as Hl, a7 as jl, Q as Ql, T as ql, ae as Gl, G as Jl, a2 as Xl, af as Zl, Y as es, $ as as, X as ts, ag as ls, I as ss, J as rs, ah as os, M as ns, ai as is, K as cs, a1 as us } from "./assets/modules/uploadList-DafDrGgh.js";
|
|
3
|
+
import { A as ps, U as fs, p as vs } from "./assets/modules/file-upload-lbkluj3p.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
|
-
import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as
|
|
5
|
+
import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as xa, fieldMapping as oe } from "@skyfox2000/fapi";
|
|
6
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 P, 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 Le, useSlots as
|
|
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 P, 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 Le, useSlots as ya, Fragment as R, renderList as z, resolveDynamicComponent as ka, onActivated as wa, shallowRef as Sa, onUnmounted as Ca, withKeys as Se } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import fe from "dayjs";
|
|
10
|
-
import { Popover as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import { d as We } from "./assets/modules/uploadList-
|
|
13
|
-
import { C as
|
|
14
|
-
import { c as He } from "./assets/modules/index-
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as A } from "./assets/modules/index-
|
|
17
|
-
import { _ as U } from "./assets/modules/toolIcon-
|
|
18
|
-
import { a as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
10
|
+
import { Popover as Ta, theme as ze, Drawer as $a, Space as te, Form as Ue, message as Ia, FormItem as Ve, ConfigProvider as Ce, Popconfirm as Da, Button as Ye, DropdownButton as Ea, Menu as _e, MenuItem as xe, Dropdown as ve, Checkbox as Pa, Table as Ke, Tree as Fa, Cascader as Na, DatePicker as Ma, Input as ee, InputPassword as Ba, InputNumber as Ra, RangePicker as Oa, Textarea as Aa, TimePicker as La, Transfer as za, TreeSelect as Ua, LayoutContent as Va } from "ant-design-vue";
|
|
11
|
+
import { VueDraggableNext as Ya } from "vue-draggable-next";
|
|
12
|
+
import { d as We } from "./assets/modules/uploadList-3SuA7du0.js";
|
|
13
|
+
import { C as hs, U as gs, a as bs, p as _s } from "./assets/modules/uploadList-3SuA7du0.js";
|
|
14
|
+
import { c as He } from "./assets/modules/index-DQ-VDAr-.js";
|
|
15
|
+
import { _ as ys, h as ks, b as ws, a as Ss, d as Cs, e as Ts, g as $s, f as Is, n as Ds, p as Es, t as Ps, v as Fs } from "./assets/modules/index-DQ-VDAr-.js";
|
|
16
|
+
import { _ as A } from "./assets/modules/index-BLNKcgk-.js";
|
|
17
|
+
import { _ as U } from "./assets/modules/toolIcon-CqJWc5B7.js";
|
|
18
|
+
import { a as Ms } from "./assets/modules/toolIcon-CqJWc5B7.js";
|
|
19
|
+
import { _ as Rs, b as Os, c as As, d as Ls, e as zs, I as Us, f as Vs, g as Ys, a as Ks } from "./assets/modules/menuTabs-DOtYQ9Zu.js";
|
|
20
|
+
import { _ as Hs } from "./assets/modules/index-B1MSCuqH.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)
|
|
@@ -32,11 +32,11 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}, $e = (s) => {
|
|
35
|
-
var c,
|
|
35
|
+
var c, p;
|
|
36
36
|
const a = Ee(), { url: e, role: t, permit: n } = s;
|
|
37
37
|
if (Z(t) && Z(n))
|
|
38
38
|
return !0;
|
|
39
|
-
const i = e ?? ((
|
|
39
|
+
const i = e ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
|
|
40
40
|
if (we.VITE_PERMISSION_MODE === "role")
|
|
41
41
|
return Z(t) ? !0 : a.hasRole(t);
|
|
42
42
|
if (we.VITE_PERMISSION_MODE === "permit") {
|
|
@@ -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
|
+
}, Ka = {
|
|
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
|
+
}, Wa = {
|
|
57
57
|
mounted: (s, a) => {
|
|
58
58
|
s.addEventListener("keydown", (e) => {
|
|
59
59
|
e.key === "Enter" && a.value();
|
|
@@ -64,9 +64,9 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}, de = {
|
|
67
|
-
auth:
|
|
68
|
-
submit:
|
|
69
|
-
},
|
|
67
|
+
auth: Ka,
|
|
68
|
+
submit: Wa
|
|
69
|
+
}, Gt = (s, a) => ((a || Object.keys(de)).forEach((t) => {
|
|
70
70
|
t in de && s.directive(t, de[t]);
|
|
71
71
|
}), s), W = (s, a) => {
|
|
72
72
|
const e = s.find((t) => t.key === a);
|
|
@@ -81,25 +81,25 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
81
81
|
}, ye = (s, a, e) => {
|
|
82
82
|
const t = [], n = [];
|
|
83
83
|
return e || (e = [...s]), e.length && e.forEach((i, c) => {
|
|
84
|
-
let
|
|
84
|
+
let p;
|
|
85
85
|
if (typeof i == "string") {
|
|
86
86
|
const d = W(s, i);
|
|
87
|
-
|
|
87
|
+
p = d ? { ...d } : { key: i, label: i };
|
|
88
88
|
} else {
|
|
89
89
|
const d = W(s, i.key);
|
|
90
|
-
|
|
90
|
+
p = d ? { ...d, ...i } : { ...i };
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
o && (o.rowData.value =
|
|
94
|
-
|
|
92
|
+
p.click || (p.click = (d, o, f) => {
|
|
93
|
+
o && (o.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
|
|
94
|
+
p.formVisible.value = !0;
|
|
95
95
|
}, 1)) : he.warning("未配置点击处理事件!");
|
|
96
|
-
}), a === 0 || c < a ? t.push(
|
|
96
|
+
}), a === 0 || c < a ? t.push(p) : n.push(p);
|
|
97
97
|
}), { buttons: t, menus: n };
|
|
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,
|
|
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, Ha = (s, a) => {
|
|
99
99
|
a.reload.value = !0;
|
|
100
|
-
}, Ha = (s, a) => {
|
|
101
|
-
a.searchBar.value = !a.searchBar.value;
|
|
102
100
|
}, ja = (s, a) => {
|
|
101
|
+
a.searchBar.value = !a.searchBar.value;
|
|
102
|
+
}, Qa = (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
|
-
}, Qa = (s, a) => {
|
|
115
|
-
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
116
114
|
}, qa = (s, a) => {
|
|
115
|
+
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
116
|
+
}, Ga = (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)), Xa(s);
|
|
122
|
+
}, Ja = (s, a) => {
|
|
123
123
|
a.selectable.value = !a.selectable.value;
|
|
124
124
|
}, je = () => {
|
|
125
125
|
const s = me();
|
|
126
126
|
s.setFullscreen(!s.fullscreen);
|
|
127
|
-
}, Ja = (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
|
}, Xa = (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
|
+
}, Za = (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: Ha
|
|
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: ja
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
key: "RowHeight",
|
|
148
148
|
label: "行高调整",
|
|
149
149
|
icon: "icon-row-height",
|
|
150
|
-
click:
|
|
150
|
+
click: Qa
|
|
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: qa
|
|
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: Ga
|
|
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: Ja
|
|
194
194
|
}
|
|
195
195
|
]
|
|
196
196
|
},
|
|
@@ -212,7 +212,7 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
212
212
|
icons: ["icon-fullscreen", "icon-exitscreen"],
|
|
213
213
|
click: je
|
|
214
214
|
}
|
|
215
|
-
],
|
|
215
|
+
], et = (s) => {
|
|
216
216
|
if (!s.tools || s.tools.length > 0) {
|
|
217
217
|
const a = [];
|
|
218
218
|
return s.tools ? a.push(...s.tools) : a.push(...De), { tools: ye(De, 0, a).buttons };
|
|
@@ -221,7 +221,7 @@ const Te = (s, a, e, t = "remove") => {
|
|
|
221
221
|
tools: []
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
var
|
|
224
|
+
var at = /* @__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))(at || {});
|
|
225
225
|
class Qe {
|
|
226
226
|
/**
|
|
227
227
|
* 设置缓存数据(带服务器时间)
|
|
@@ -277,7 +277,7 @@ class Qe {
|
|
|
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 Jt() {
|
|
281
281
|
try {
|
|
282
282
|
const s = await Oe(
|
|
283
283
|
{
|
|
@@ -293,8 +293,8 @@ async function Gt() {
|
|
|
293
293
|
const t = a[e];
|
|
294
294
|
["local", "session"].forEach((i) => {
|
|
295
295
|
const c = i === "local" ? localStorage : sessionStorage;
|
|
296
|
-
for (let
|
|
297
|
-
const d = c.key(
|
|
296
|
+
for (let p = 0; p < c.length; p++) {
|
|
297
|
+
const d = c.key(p);
|
|
298
298
|
if (d && d.endsWith(e))
|
|
299
299
|
try {
|
|
300
300
|
const o = JSON.parse(c.getItem(d));
|
|
@@ -310,7 +310,7 @@ async function Gt() {
|
|
|
310
310
|
console.error("检查缓存更新失败", s);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const Xt = async (s, a) => {
|
|
314
314
|
const e = await He(s, a);
|
|
315
315
|
if (e.success)
|
|
316
316
|
return {
|
|
@@ -320,7 +320,7 @@ const Jt = async (s, a) => {
|
|
|
320
320
|
// 不再返回blob对象,使用URL即可
|
|
321
321
|
};
|
|
322
322
|
throw new Error(e.error || "CSV转Excel失败");
|
|
323
|
-
},
|
|
323
|
+
}, Zt = async (s, a) => {
|
|
324
324
|
try {
|
|
325
325
|
const t = new TextDecoder("utf-8").decode(s), n = await He(t, a);
|
|
326
326
|
return {
|
|
@@ -337,9 +337,9 @@ const Jt = async (s, a) => {
|
|
|
337
337
|
error: e instanceof Error ? e.message : "未知错误"
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
},
|
|
340
|
+
}, el = async (s, a, e) => {
|
|
341
341
|
try {
|
|
342
|
-
const n = (await import("@json2csv/plainjs")).Parser, i = qe(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1),
|
|
342
|
+
const n = (await import("@json2csv/plainjs")).Parser, i = qe(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1), p = c.map((v) => ({
|
|
343
343
|
label: v.title,
|
|
344
344
|
value: v.dataIndex || v.key || ""
|
|
345
345
|
})), d = e.map((v) => {
|
|
@@ -348,7 +348,7 @@ const Jt = async (s, a) => {
|
|
|
348
348
|
const y = h.dataIndex || h.key;
|
|
349
349
|
y && h.customRender && (u[y] = h.customRender(v[y], v));
|
|
350
350
|
}), u;
|
|
351
|
-
}),
|
|
351
|
+
}), f = new n({ fields: p }).parse(d), r = new Blob([`\uFEFF${f}`], { type: "text/csv" });
|
|
352
352
|
We(r, i);
|
|
353
353
|
} catch (t) {
|
|
354
354
|
console.error("导出失败:", t), he.error("文件导出失败,请稍后重试");
|
|
@@ -356,19 +356,19 @@ const Jt = async (s, a) => {
|
|
|
356
356
|
}, qe = (s) => {
|
|
357
357
|
const a = /\{([^}]+)\}/g;
|
|
358
358
|
return s.replace(a, (e, t) => fe().format(t));
|
|
359
|
-
},
|
|
359
|
+
}, al = async (s, a, e, t) => {
|
|
360
360
|
try {
|
|
361
|
-
const i = (await import("@json2csv/plainjs")).Parser, c = qe(s),
|
|
361
|
+
const i = (await import("@json2csv/plainjs")).Parser, c = qe(s), p = a.filter((r) => r.visible !== !1), d = p.map((r) => ({
|
|
362
362
|
label: r.title,
|
|
363
363
|
value: r.dataIndex || r.key || ""
|
|
364
364
|
}));
|
|
365
|
-
let o = e.page,
|
|
366
|
-
return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Oe(t,
|
|
365
|
+
let o = e.page, f = e.gridQuery;
|
|
366
|
+
return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Oe(t, f).then((r) => {
|
|
367
367
|
if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS) {
|
|
368
368
|
if (r.data) {
|
|
369
369
|
const u = r.data.map((O) => {
|
|
370
370
|
const x = { ...O };
|
|
371
|
-
return
|
|
371
|
+
return p.forEach((E) => {
|
|
372
372
|
const B = E.dataIndex || E.key;
|
|
373
373
|
B && E.customRender && (x[B] = E.customRender(O[B], O));
|
|
374
374
|
}), x;
|
|
@@ -383,7 +383,7 @@ const Jt = async (s, a) => {
|
|
|
383
383
|
} catch (n) {
|
|
384
384
|
console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
|
|
385
385
|
}
|
|
386
|
-
},
|
|
386
|
+
}, tl = /* @__PURE__ */ C({
|
|
387
387
|
__name: "fullscreen",
|
|
388
388
|
setup(s) {
|
|
389
389
|
const a = me();
|
|
@@ -393,7 +393,7 @@ const Jt = async (s, a) => {
|
|
|
393
393
|
class: "w-[17px] h-[17px]"
|
|
394
394
|
}, null, 8, ["onClick", "icon"]));
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
396
|
+
}), tt = { class: "ml-2" }, lt = /* @__PURE__ */ C({
|
|
397
397
|
inheritAttrs: !1,
|
|
398
398
|
__name: "helper",
|
|
399
399
|
props: {
|
|
@@ -403,7 +403,7 @@ const Jt = async (s, a) => {
|
|
|
403
403
|
},
|
|
404
404
|
setup(s) {
|
|
405
405
|
const a = X();
|
|
406
|
-
return (e, t) => (m(), b(l(
|
|
406
|
+
return (e, t) => (m(), b(l(Ta), { placement: "topRight" }, {
|
|
407
407
|
content: g(() => [
|
|
408
408
|
D(e.$slots, "default", {}, () => [
|
|
409
409
|
$("div", {
|
|
@@ -412,7 +412,7 @@ const Jt = async (s, a) => {
|
|
|
412
412
|
])
|
|
413
413
|
]),
|
|
414
414
|
default: g(() => [
|
|
415
|
-
$("span",
|
|
415
|
+
$("span", tt, [
|
|
416
416
|
w(U, N({
|
|
417
417
|
icon: "icon-question-circle",
|
|
418
418
|
class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
|
|
@@ -422,7 +422,7 @@ const Jt = async (s, a) => {
|
|
|
422
422
|
_: 3
|
|
423
423
|
}));
|
|
424
424
|
}
|
|
425
|
-
}),
|
|
425
|
+
}), ll = /* @__PURE__ */ C({
|
|
426
426
|
__name: "layoutIcon",
|
|
427
427
|
props: {
|
|
428
428
|
icon: {
|
|
@@ -434,7 +434,7 @@ const Jt = async (s, a) => {
|
|
|
434
434
|
},
|
|
435
435
|
setup(s) {
|
|
436
436
|
const a = s, t = Ze({
|
|
437
|
-
iconUrl: `${
|
|
437
|
+
iconUrl: `${xa.MICROLAYOUT_ICONS}`,
|
|
438
438
|
monoColor: !0,
|
|
439
439
|
icon: a.icon,
|
|
440
440
|
icons: a.icons
|
|
@@ -446,7 +446,7 @@ const Jt = async (s, a) => {
|
|
|
446
446
|
class: ["align-middle"]
|
|
447
447
|
}, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
448
448
|
}
|
|
449
|
-
}),
|
|
449
|
+
}), st = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, sl = /* @__PURE__ */ C({
|
|
450
450
|
__name: "index",
|
|
451
451
|
props: {
|
|
452
452
|
saveText: {},
|
|
@@ -468,14 +468,14 @@ const Jt = async (s, a) => {
|
|
|
468
468
|
});
|
|
469
469
|
const c = () => {
|
|
470
470
|
n.drawerSave ? n.drawerSave() : i && Pe(i);
|
|
471
|
-
},
|
|
471
|
+
}, p = () => {
|
|
472
472
|
n.drawerSaveAs ? n.drawerSaveAs() : i && ea(i);
|
|
473
473
|
}, d = () => {
|
|
474
474
|
aa(i);
|
|
475
475
|
};
|
|
476
|
-
return (o,
|
|
476
|
+
return (o, f) => (m(), b(l($a), {
|
|
477
477
|
open: t.value,
|
|
478
|
-
"onUpdate:open":
|
|
478
|
+
"onUpdate:open": f[0] || (f[0] = (r) => t.value = r),
|
|
479
479
|
"get-container": !1,
|
|
480
480
|
closable: !1,
|
|
481
481
|
"header-style": {
|
|
@@ -497,7 +497,7 @@ const Jt = async (s, a) => {
|
|
|
497
497
|
onClose: d
|
|
498
498
|
}, {
|
|
499
499
|
extra: g(() => [
|
|
500
|
-
$("div",
|
|
500
|
+
$("div", st, [
|
|
501
501
|
w(l(U), {
|
|
502
502
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
503
503
|
icon: "icon-new",
|
|
@@ -527,7 +527,7 @@ const Jt = async (s, a) => {
|
|
|
527
527
|
})) : k("", !0),
|
|
528
528
|
o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(A), {
|
|
529
529
|
key: 1,
|
|
530
|
-
onClick:
|
|
530
|
+
onClick: p,
|
|
531
531
|
type: "primary",
|
|
532
532
|
loading: l(i).isFormSaving.value
|
|
533
533
|
}, {
|
|
@@ -554,7 +554,7 @@ const Jt = async (s, a) => {
|
|
|
554
554
|
_: 3
|
|
555
555
|
}, 8, ["open", "header-style"]));
|
|
556
556
|
}
|
|
557
|
-
}),
|
|
557
|
+
}), rl = /* @__PURE__ */ C({
|
|
558
558
|
__name: "index",
|
|
559
559
|
props: {
|
|
560
560
|
labelWidth: {},
|
|
@@ -589,10 +589,10 @@ const Jt = async (s, a) => {
|
|
|
589
589
|
]);
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
}),
|
|
592
|
+
}), rt = {
|
|
593
593
|
key: 0,
|
|
594
594
|
class: "flex-grow"
|
|
595
|
-
},
|
|
595
|
+
}, ot = { class: "w-8 mt-[-2px]" }, ol = /* @__PURE__ */ C({
|
|
596
596
|
inheritAttrs: !1,
|
|
597
597
|
__name: "formItem",
|
|
598
598
|
props: {
|
|
@@ -608,22 +608,22 @@ const Jt = async (s, a) => {
|
|
|
608
608
|
setTimeout(() => {
|
|
609
609
|
c.value = !0;
|
|
610
610
|
}, 30);
|
|
611
|
-
const
|
|
612
|
-
if (!
|
|
611
|
+
const p = (o, f) => {
|
|
612
|
+
if (!f)
|
|
613
613
|
return;
|
|
614
614
|
const [r, ...v] = o;
|
|
615
615
|
if (o.length === 1)
|
|
616
|
-
return
|
|
617
|
-
if (
|
|
618
|
-
return
|
|
616
|
+
return f[r];
|
|
617
|
+
if (f[r])
|
|
618
|
+
return p(v, f[r].fields);
|
|
619
619
|
}, d = J(() => {
|
|
620
|
-
var
|
|
620
|
+
var f;
|
|
621
621
|
if (!a.rule)
|
|
622
622
|
return !1;
|
|
623
|
-
const o =
|
|
624
|
-
return o ? (o.required || (i.value.errClass = "", i.value.msg = ""), o.required ?? !0) : (
|
|
623
|
+
const o = p(a.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
|
|
624
|
+
return o ? (o.required || (i.value.errClass = "", i.value.msg = ""), o.required ?? !0) : (Ia.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
|
|
625
625
|
});
|
|
626
|
-
return (o,
|
|
626
|
+
return (o, f) => (m(), S("div", {
|
|
627
627
|
class: P(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
|
|
628
628
|
}, [
|
|
629
629
|
c.value ? (m(), b(l(Ve), N({
|
|
@@ -640,12 +640,12 @@ const Jt = async (s, a) => {
|
|
|
640
640
|
$("div", {
|
|
641
641
|
class: P(["flex items-center", o.width ? o.width : "w-full"])
|
|
642
642
|
}, [
|
|
643
|
-
o.nextLine ? k("", !0) : (m(), S("div",
|
|
643
|
+
o.nextLine ? k("", !0) : (m(), S("div", rt, [
|
|
644
644
|
D(o.$slots, "default")
|
|
645
645
|
])),
|
|
646
|
-
$("div",
|
|
646
|
+
$("div", ot, [
|
|
647
647
|
D(o.$slots, "helper", {}, () => [
|
|
648
|
-
o.helper ? (m(), b(l(
|
|
648
|
+
o.helper ? (m(), b(l(lt), {
|
|
649
649
|
key: 0,
|
|
650
650
|
text: o.helper
|
|
651
651
|
}, null, 8, ["text"])) : k("", !0)
|
|
@@ -668,7 +668,7 @@ const Jt = async (s, a) => {
|
|
|
668
668
|
}, F(l(i).msg), 5)) : k("", !0)
|
|
669
669
|
], 2));
|
|
670
670
|
}
|
|
671
|
-
}),
|
|
671
|
+
}), nt = { class: "w-1/3 relative mb-1" }, it = { class: "flex items-center w-[90%]" }, ct = { class: "flex-grow pl-1" }, ut = {
|
|
672
672
|
key: 0,
|
|
673
673
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
674
674
|
}, pe = /* @__PURE__ */ C({
|
|
@@ -681,7 +681,7 @@ const Jt = async (s, a) => {
|
|
|
681
681
|
},
|
|
682
682
|
setup(s) {
|
|
683
683
|
const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Fe(a, t);
|
|
684
|
-
return (i, c) => (m(), S("div",
|
|
684
|
+
return (i, c) => (m(), S("div", nt, [
|
|
685
685
|
w(l(Ve), N({
|
|
686
686
|
required: i.rule !== void 0,
|
|
687
687
|
class: "w-[90%] relative"
|
|
@@ -690,8 +690,8 @@ const Jt = async (s, a) => {
|
|
|
690
690
|
labelCol: { span: 6 }
|
|
691
691
|
}), Le({
|
|
692
692
|
default: g(() => [
|
|
693
|
-
$("div",
|
|
694
|
-
$("div",
|
|
693
|
+
$("div", it, [
|
|
694
|
+
$("div", ct, [
|
|
695
695
|
D(i.$slots, "default")
|
|
696
696
|
])
|
|
697
697
|
])
|
|
@@ -708,10 +708,10 @@ const Jt = async (s, a) => {
|
|
|
708
708
|
key: "0"
|
|
709
709
|
} : void 0
|
|
710
710
|
]), 1040, ["required", "class"]),
|
|
711
|
-
l(n).msg ? (m(), S("span",
|
|
711
|
+
l(n).msg ? (m(), S("span", ut, F(l(n).msg), 1)) : k("", !0)
|
|
712
712
|
]));
|
|
713
713
|
}
|
|
714
|
-
}),
|
|
714
|
+
}), nl = /* @__PURE__ */ C({
|
|
715
715
|
__name: "index",
|
|
716
716
|
props: {
|
|
717
717
|
search: {},
|
|
@@ -720,13 +720,13 @@ const Jt = async (s, a) => {
|
|
|
720
720
|
},
|
|
721
721
|
emits: ["update:search", "reset"],
|
|
722
722
|
setup(s, { emit: a }) {
|
|
723
|
-
const e = s, t = a, n = _(0), i = _(0), c = _(0),
|
|
723
|
+
const e = s, t = a, n = _(0), i = _(0), c = _(0), p = (u) => {
|
|
724
724
|
let h = 0;
|
|
725
725
|
for (let y = 0; y < u.length; y++)
|
|
726
726
|
typeof u[y].type == "object" && h++;
|
|
727
727
|
return h;
|
|
728
|
-
}, d =
|
|
729
|
-
i.value = 0, c.value = 0, d.default && (i.value =
|
|
728
|
+
}, d = ya(), o = () => {
|
|
729
|
+
i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
|
|
730
730
|
};
|
|
731
731
|
T(
|
|
732
732
|
() => e.gridCtrl.searchBar,
|
|
@@ -734,7 +734,7 @@ const Jt = async (s, a) => {
|
|
|
734
734
|
o();
|
|
735
735
|
}
|
|
736
736
|
);
|
|
737
|
-
const
|
|
737
|
+
const f = JSON.parse(JSON.stringify(e.search));
|
|
738
738
|
K(() => {
|
|
739
739
|
var h;
|
|
740
740
|
o();
|
|
@@ -761,7 +761,7 @@ const Jt = async (s, a) => {
|
|
|
761
761
|
}
|
|
762
762
|
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
|
|
763
763
|
}, v = () => {
|
|
764
|
-
const u = JSON.parse(JSON.stringify(
|
|
764
|
+
const u = JSON.parse(JSON.stringify(f));
|
|
765
765
|
for (const h in e.search)
|
|
766
766
|
u[h] === void 0 && (u[h] = void 0);
|
|
767
767
|
t("update:search", u), t("reset");
|
|
@@ -830,7 +830,7 @@ const Jt = async (s, a) => {
|
|
|
830
830
|
]) : k("", !0);
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
}),
|
|
833
|
+
}), dt = /* @__PURE__ */ C({
|
|
834
834
|
__name: "tableOperate",
|
|
835
835
|
props: {
|
|
836
836
|
record: {},
|
|
@@ -859,7 +859,7 @@ const Jt = async (s, a) => {
|
|
|
859
859
|
confirmText: "是否删除此记录?",
|
|
860
860
|
click: () => la(e, a.record)
|
|
861
861
|
}
|
|
862
|
-
], { buttons: i, menus: c } = ye(n, 0, e.operates),
|
|
862
|
+
], { buttons: i, menus: c } = ye(n, 0, e.operates), p = (d) => {
|
|
863
863
|
if (typeof d.disabled == "boolean")
|
|
864
864
|
return d.disabled;
|
|
865
865
|
if (typeof d.disabled == "function")
|
|
@@ -874,7 +874,7 @@ const Jt = async (s, a) => {
|
|
|
874
874
|
return !1;
|
|
875
875
|
};
|
|
876
876
|
return (d, o) => {
|
|
877
|
-
const
|
|
877
|
+
const f = le("auth");
|
|
878
878
|
return m(), b(l(Ce), { theme: {
|
|
879
879
|
token: {
|
|
880
880
|
fontSize: 13
|
|
@@ -886,9 +886,9 @@ const Jt = async (s, a) => {
|
|
|
886
886
|
(m(!0), S(R, null, z(l(i), (r) => (m(), S(R, {
|
|
887
887
|
key: r.key
|
|
888
888
|
}, [
|
|
889
|
-
l(G)(r, a.record) ? (m(), b(l(
|
|
889
|
+
l(G)(r, a.record) ? (m(), b(l(Da), {
|
|
890
890
|
key: 0,
|
|
891
|
-
disabled:
|
|
891
|
+
disabled: p(r) || !r.confirm,
|
|
892
892
|
cancelText: "否",
|
|
893
893
|
okText: "是",
|
|
894
894
|
title: r.confirmText,
|
|
@@ -901,7 +901,7 @@ const Jt = async (s, a) => {
|
|
|
901
901
|
key: r.key,
|
|
902
902
|
type: r.type ?? "text",
|
|
903
903
|
danger: r.danger,
|
|
904
|
-
disabled:
|
|
904
|
+
disabled: p(r),
|
|
905
905
|
onClick: (v) => l(V)(r, l(e).page, l(e), a.record),
|
|
906
906
|
size: "small",
|
|
907
907
|
style: be({
|
|
@@ -913,7 +913,7 @@ const Jt = async (s, a) => {
|
|
|
913
913
|
]),
|
|
914
914
|
_: 2
|
|
915
915
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
916
|
-
[
|
|
916
|
+
[f, { url: t.value, role: r.role, permit: r.permit }]
|
|
917
917
|
]) : k("", !0)
|
|
918
918
|
]),
|
|
919
919
|
_: 2
|
|
@@ -924,7 +924,7 @@ const Jt = async (s, a) => {
|
|
|
924
924
|
autoInsertSpaceInButton: !1
|
|
925
925
|
}, {
|
|
926
926
|
default: g(() => [
|
|
927
|
-
l(c).length > 0 ? (m(), b(l(
|
|
927
|
+
l(c).length > 0 ? (m(), b(l(Ea), {
|
|
928
928
|
key: 0,
|
|
929
929
|
size: "small"
|
|
930
930
|
}, {
|
|
@@ -936,7 +936,7 @@ const Jt = async (s, a) => {
|
|
|
936
936
|
}, [
|
|
937
937
|
l(G)(r, a.record) ? Q((m(), b(l(xe), {
|
|
938
938
|
key: 0,
|
|
939
|
-
disabled:
|
|
939
|
+
disabled: p(r),
|
|
940
940
|
onClick: (v) => l(V)(r, l(e).page, l(e), a.record)
|
|
941
941
|
}, {
|
|
942
942
|
default: g(() => [
|
|
@@ -944,7 +944,7 @@ const Jt = async (s, a) => {
|
|
|
944
944
|
]),
|
|
945
945
|
_: 2
|
|
946
946
|
}, 1032, ["disabled", "onClick"])), [
|
|
947
|
-
[
|
|
947
|
+
[f, { url: t.value, role: r.role, permit: r.permit }]
|
|
948
948
|
]) : k("", !0)
|
|
949
949
|
], 64))), 128))
|
|
950
950
|
]),
|
|
@@ -968,32 +968,32 @@ const Jt = async (s, a) => {
|
|
|
968
968
|
});
|
|
969
969
|
};
|
|
970
970
|
}
|
|
971
|
-
}),
|
|
971
|
+
}), pt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ft = /* @__PURE__ */ C({
|
|
972
972
|
__name: "icontool",
|
|
973
973
|
props: {
|
|
974
974
|
gridCtrl: {}
|
|
975
975
|
},
|
|
976
976
|
setup(s) {
|
|
977
|
-
const a = s, e = a.gridCtrl, { tools: t } =
|
|
977
|
+
const a = s, e = a.gridCtrl, { tools: t } = et(a.gridCtrl), n = me();
|
|
978
978
|
T(
|
|
979
979
|
() => e.selectable.value,
|
|
980
|
-
(
|
|
981
|
-
W(t, "tool.export.excel.selected") && (W(t, "tool.export.excel.selected").disabled = !
|
|
980
|
+
(p) => {
|
|
981
|
+
W(t, "tool.export.excel.selected") && (W(t, "tool.export.excel.selected").disabled = !p), W(t, "tool.export.pdf.selected") && (W(t, "tool.export.pdf.selected").disabled = !p);
|
|
982
982
|
}
|
|
983
983
|
);
|
|
984
984
|
const i = _([]);
|
|
985
985
|
T(
|
|
986
986
|
() => e.columns.value,
|
|
987
|
-
(
|
|
988
|
-
i.value = Ne(
|
|
987
|
+
(p) => {
|
|
988
|
+
i.value = Ne(p, !0);
|
|
989
989
|
},
|
|
990
990
|
{ deep: !0, immediate: !0 }
|
|
991
991
|
);
|
|
992
992
|
const c = () => {
|
|
993
993
|
e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
|
|
994
994
|
};
|
|
995
|
-
return (
|
|
996
|
-
(m(!0), S(R, null, z(l(t), (o,
|
|
995
|
+
return (p, d) => (m(), S("div", pt, [
|
|
996
|
+
(m(!0), S(R, null, z(l(t), (o, f) => (m(), S(R, {
|
|
997
997
|
key: o.key
|
|
998
998
|
}, [
|
|
999
999
|
l(G)(o) && o.dropdown ? (m(), b(l(ve), {
|
|
@@ -1005,7 +1005,7 @@ const Jt = async (s, a) => {
|
|
|
1005
1005
|
$("div", {
|
|
1006
1006
|
class: P(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
|
|
1007
1007
|
}, [
|
|
1008
|
-
o.dropdown === "headset" ? (m(), b(l(
|
|
1008
|
+
o.dropdown === "headset" ? (m(), b(l(Ya), {
|
|
1009
1009
|
key: 0,
|
|
1010
1010
|
modelValue: i.value,
|
|
1011
1011
|
"onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
|
|
@@ -1021,11 +1021,11 @@ const Jt = async (s, a) => {
|
|
|
1021
1021
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
1022
1022
|
}, [
|
|
1023
1023
|
d[2] || (d[2] = $("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
1024
|
-
w(l(
|
|
1024
|
+
w(l(Pa), {
|
|
1025
1025
|
checked: r.visible !== !1,
|
|
1026
1026
|
onChange: ae(
|
|
1027
1027
|
(v) => {
|
|
1028
|
-
l(
|
|
1028
|
+
l(Za)(r, v.target.checked);
|
|
1029
1029
|
},
|
|
1030
1030
|
["stop", "prevent"]
|
|
1031
1031
|
),
|
|
@@ -1046,8 +1046,8 @@ const Jt = async (s, a) => {
|
|
|
1046
1046
|
w(l(A), {
|
|
1047
1047
|
class: P([
|
|
1048
1048
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1049
|
-
|
|
1050
|
-
|
|
1049
|
+
f === 0 ? "rounded-l-[5px]" : "",
|
|
1050
|
+
f === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1051
1051
|
]),
|
|
1052
1052
|
disabled: l(H)(o),
|
|
1053
1053
|
tiptext: o.label,
|
|
@@ -1068,8 +1068,8 @@ const Jt = async (s, a) => {
|
|
|
1068
1068
|
key: 1,
|
|
1069
1069
|
class: P([
|
|
1070
1070
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1071
|
-
|
|
1072
|
-
|
|
1071
|
+
f === 0 ? "rounded-l-[5px]" : "",
|
|
1072
|
+
f === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1073
1073
|
]),
|
|
1074
1074
|
disabled: l(H)(o),
|
|
1075
1075
|
tiptext: o.label,
|
|
@@ -1108,7 +1108,7 @@ const Jt = async (s, a) => {
|
|
|
1108
1108
|
w(l(A), {
|
|
1109
1109
|
class: P([
|
|
1110
1110
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1111
|
-
|
|
1111
|
+
f === 0 ? "rounded-l-[5px]" : ""
|
|
1112
1112
|
]),
|
|
1113
1113
|
disabled: l(H)(o),
|
|
1114
1114
|
tiptext: o.label,
|
|
@@ -1130,7 +1130,7 @@ const Jt = async (s, a) => {
|
|
|
1130
1130
|
], 64))), 128))
|
|
1131
1131
|
]));
|
|
1132
1132
|
}
|
|
1133
|
-
}),
|
|
1133
|
+
}), vt = { class: "flex justify-between mb-[10px]" }, mt = { key: 1 }, ht = 3, gt = /* @__PURE__ */ C({
|
|
1134
1134
|
__name: "index",
|
|
1135
1135
|
props: {
|
|
1136
1136
|
gridCtrl: {},
|
|
@@ -1149,7 +1149,7 @@ const Jt = async (s, a) => {
|
|
|
1149
1149
|
// 默认仅受权限码控制
|
|
1150
1150
|
click: () => sa(n)
|
|
1151
1151
|
}
|
|
1152
|
-
],
|
|
1152
|
+
], p = _([]), d = _([]);
|
|
1153
1153
|
return T(
|
|
1154
1154
|
() => {
|
|
1155
1155
|
var o;
|
|
@@ -1157,23 +1157,23 @@ const Jt = async (s, a) => {
|
|
|
1157
1157
|
},
|
|
1158
1158
|
() => {
|
|
1159
1159
|
var r;
|
|
1160
|
-
const { buttons: o, menus:
|
|
1160
|
+
const { buttons: o, menus: f } = ye(
|
|
1161
1161
|
c,
|
|
1162
|
-
e.flat !== void 0 ? e.flat :
|
|
1162
|
+
e.flat !== void 0 ? e.flat : ht,
|
|
1163
1163
|
(r = e.buttons) == null ? void 0 : r.value
|
|
1164
1164
|
);
|
|
1165
|
-
|
|
1165
|
+
p.value.splice(0, p.value.length, ...o), d.value.splice(0, d.value.length, ...f);
|
|
1166
1166
|
},
|
|
1167
1167
|
{
|
|
1168
1168
|
deep: !0,
|
|
1169
1169
|
immediate: !0
|
|
1170
1170
|
}
|
|
1171
|
-
), (o,
|
|
1171
|
+
), (o, f) => {
|
|
1172
1172
|
const r = le("auth");
|
|
1173
|
-
return m(), S("div",
|
|
1173
|
+
return m(), S("div", vt, [
|
|
1174
1174
|
w(l(te), null, {
|
|
1175
1175
|
default: g(() => [
|
|
1176
|
-
(m(!0), S(R, null, z(
|
|
1176
|
+
(m(!0), S(R, null, z(p.value, (v) => Q((m(), b(l(A), {
|
|
1177
1177
|
key: v.key,
|
|
1178
1178
|
type: v.type,
|
|
1179
1179
|
danger: v.danger,
|
|
@@ -1210,7 +1210,7 @@ const Jt = async (s, a) => {
|
|
|
1210
1210
|
]),
|
|
1211
1211
|
default: g(() => [
|
|
1212
1212
|
w(l(A), null, {
|
|
1213
|
-
default: g(() =>
|
|
1213
|
+
default: g(() => f[0] || (f[0] = [
|
|
1214
1214
|
M(" 更多操作 ")
|
|
1215
1215
|
])),
|
|
1216
1216
|
_: 1,
|
|
@@ -1219,20 +1219,20 @@ const Jt = async (s, a) => {
|
|
|
1219
1219
|
]),
|
|
1220
1220
|
_: 1
|
|
1221
1221
|
})) : k("", !0),
|
|
1222
|
-
|
|
1222
|
+
p.value.length === 0 && d.value.length === 0 ? (m(), S("span", mt)) : k("", !0)
|
|
1223
1223
|
]),
|
|
1224
1224
|
_: 1
|
|
1225
1225
|
}),
|
|
1226
1226
|
w(l(te), { class: "mr-1" }, {
|
|
1227
1227
|
default: g(() => [
|
|
1228
|
-
(m(), b(
|
|
1228
|
+
(m(), b(ka(ft), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
|
|
1229
1229
|
]),
|
|
1230
1230
|
_: 1
|
|
1231
1231
|
})
|
|
1232
1232
|
]);
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
|
-
}),
|
|
1235
|
+
}), il = /* @__PURE__ */ C({
|
|
1236
1236
|
inheritAttrs: !1,
|
|
1237
1237
|
__name: "index",
|
|
1238
1238
|
props: {
|
|
@@ -1247,7 +1247,7 @@ const Jt = async (s, a) => {
|
|
|
1247
1247
|
setup(s) {
|
|
1248
1248
|
const a = s, e = X(), t = a.gridCtrl, n = J(() => ce.currentRoute.value.path);
|
|
1249
1249
|
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
1250
|
-
const i = _(t.pageSize.value), c = _(t.pageNo.value),
|
|
1250
|
+
const i = _(t.pageSize.value), c = _(t.pageNo.value), p = _([]), d = _({
|
|
1251
1251
|
total: 0,
|
|
1252
1252
|
current: 1,
|
|
1253
1253
|
pageSize: i.value,
|
|
@@ -1260,17 +1260,17 @@ const Jt = async (s, a) => {
|
|
|
1260
1260
|
a.pagination === !1 && (d.value = !1), T(
|
|
1261
1261
|
() => t.tableData.value,
|
|
1262
1262
|
(u) => {
|
|
1263
|
-
u && (
|
|
1263
|
+
u && (p.value = u, d.value !== !1 && (d.value.total = t.total.value ?? 0, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
|
|
1264
1264
|
},
|
|
1265
1265
|
{ immediate: !0 }
|
|
1266
1266
|
), T(
|
|
1267
1267
|
() => a.tableData,
|
|
1268
1268
|
(u) => {
|
|
1269
|
-
u && (
|
|
1269
|
+
u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
|
|
1270
1270
|
},
|
|
1271
1271
|
{ immediate: !0 }
|
|
1272
1272
|
);
|
|
1273
|
-
const o = _(t.columns.value),
|
|
1273
|
+
const o = _(t.columns.value), f = {
|
|
1274
1274
|
onChange: (u, h) => {
|
|
1275
1275
|
t && (t.selectKeys.value = u, t.selectRows.value = h);
|
|
1276
1276
|
},
|
|
@@ -1279,11 +1279,11 @@ const Jt = async (s, a) => {
|
|
|
1279
1279
|
disabled: u.Enabled === 0
|
|
1280
1280
|
}),
|
|
1281
1281
|
...a.rowSelection
|
|
1282
|
-
}, r = _(
|
|
1282
|
+
}, r = _(f);
|
|
1283
1283
|
T(
|
|
1284
1284
|
() => t.selectable.value,
|
|
1285
1285
|
(u) => {
|
|
1286
|
-
t && (r.value = u ?
|
|
1286
|
+
t && (r.value = u ? f : void 0);
|
|
1287
1287
|
},
|
|
1288
1288
|
{ immediate: !0 }
|
|
1289
1289
|
), T(
|
|
@@ -1294,17 +1294,17 @@ const Jt = async (s, a) => {
|
|
|
1294
1294
|
{ deep: !0, immediate: !0 }
|
|
1295
1295
|
);
|
|
1296
1296
|
const v = _(!1);
|
|
1297
|
-
return
|
|
1297
|
+
return wa(() => {
|
|
1298
1298
|
v.value && t && (t.reload.value = !0);
|
|
1299
1299
|
}), K(async () => {
|
|
1300
|
-
ge(j.GridControl, t), t.tableData.value ? (
|
|
1300
|
+
ge(j.GridControl, t), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value !== !1 && (d.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await ke(t)).rows : p.value = await ra(t)), setTimeout(() => {
|
|
1301
1301
|
v.value = !0;
|
|
1302
1302
|
}, 50);
|
|
1303
1303
|
}), (u, h) => {
|
|
1304
1304
|
var I, O;
|
|
1305
1305
|
const y = le("auth");
|
|
1306
1306
|
return m(), S(R, null, [
|
|
1307
|
-
(I = l(t).buttons) != null && I.value.length || (O = l(t).tools) != null && O.length ? (m(), b(
|
|
1307
|
+
(I = l(t).buttons) != null && I.value.length || (O = l(t).tools) != null && O.length ? (m(), b(gt, {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
"grid-ctrl": l(t),
|
|
1310
1310
|
"editor-ctrl": l(t).editor
|
|
@@ -1313,7 +1313,7 @@ const Jt = async (s, a) => {
|
|
|
1313
1313
|
key: 1,
|
|
1314
1314
|
class: "w-full min-h-[480px]",
|
|
1315
1315
|
"row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
|
|
1316
|
-
"data-source":
|
|
1316
|
+
"data-source": p.value,
|
|
1317
1317
|
loading: l(t).isGridLoading.value,
|
|
1318
1318
|
columns: o.value,
|
|
1319
1319
|
pagination: d.value,
|
|
@@ -1348,7 +1348,7 @@ const Jt = async (s, a) => {
|
|
|
1348
1348
|
key: 1,
|
|
1349
1349
|
record: x == null ? void 0 : x.record
|
|
1350
1350
|
}, () => [
|
|
1351
|
-
w(
|
|
1351
|
+
w(dt, {
|
|
1352
1352
|
record: x == null ? void 0 : x.record,
|
|
1353
1353
|
"grid-ctrl": l(t)
|
|
1354
1354
|
}, null, 8, ["record", "grid-ctrl"])
|
|
@@ -1360,7 +1360,7 @@ const Jt = async (s, a) => {
|
|
|
1360
1360
|
], 64);
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
1363
|
-
}),
|
|
1363
|
+
}), bt = { class: "flex items-center gap-1" }, _t = { class: "text-nowrap" }, cl = /* @__PURE__ */ C({
|
|
1364
1364
|
__name: "index",
|
|
1365
1365
|
props: {
|
|
1366
1366
|
treeCtrl: {},
|
|
@@ -1372,28 +1372,46 @@ const Jt = async (s, a) => {
|
|
|
1372
1372
|
const e = s, t = X(), n = e.treeCtrl, i = _([]);
|
|
1373
1373
|
T(
|
|
1374
1374
|
() => n.data.value,
|
|
1375
|
-
(
|
|
1376
|
-
|
|
1375
|
+
(f) => {
|
|
1376
|
+
if (f) {
|
|
1377
|
+
i.value = n.fieldMap ? oe(n.fieldMap, f) : f;
|
|
1378
|
+
const r = ia(i.value, p.value[0]);
|
|
1379
|
+
if (r) {
|
|
1380
|
+
const v = {
|
|
1381
|
+
event: "select",
|
|
1382
|
+
node: {
|
|
1383
|
+
// 根据你的TreeNode结构构建node对象
|
|
1384
|
+
key: r.key,
|
|
1385
|
+
title: r.title,
|
|
1386
|
+
checked: !0,
|
|
1387
|
+
dataRef: r
|
|
1388
|
+
},
|
|
1389
|
+
selected: !0,
|
|
1390
|
+
selectedNodes: [r]
|
|
1391
|
+
};
|
|
1392
|
+
o(p.value, v);
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1377
1395
|
}
|
|
1378
1396
|
);
|
|
1379
|
-
const c = a,
|
|
1397
|
+
const c = a, p = _([]);
|
|
1380
1398
|
T(
|
|
1381
1399
|
() => e.selectedKeys,
|
|
1382
|
-
(
|
|
1383
|
-
|
|
1400
|
+
(f) => {
|
|
1401
|
+
f && (p.value = f);
|
|
1384
1402
|
},
|
|
1385
1403
|
{ immediate: !0 }
|
|
1386
1404
|
);
|
|
1387
1405
|
const d = _(["-"]);
|
|
1388
1406
|
T(
|
|
1389
1407
|
() => e.expandedKeys,
|
|
1390
|
-
(
|
|
1391
|
-
|
|
1408
|
+
(f) => {
|
|
1409
|
+
f && (d.value = f);
|
|
1392
1410
|
},
|
|
1393
1411
|
{ immediate: !0 }
|
|
1394
1412
|
);
|
|
1395
|
-
const o = (
|
|
1396
|
-
|
|
1413
|
+
const o = (f, r) => {
|
|
1414
|
+
f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, c("update:selectedKeys", f), c("select", f, r);
|
|
1397
1415
|
};
|
|
1398
1416
|
return K(() => {
|
|
1399
1417
|
n.fieldMap || (n.fieldMap = {
|
|
@@ -1402,54 +1420,54 @@ const Jt = async (s, a) => {
|
|
|
1402
1420
|
value: "Id",
|
|
1403
1421
|
icon: "Icon"
|
|
1404
1422
|
}), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Be(n);
|
|
1405
|
-
}), (
|
|
1423
|
+
}), (f, r) => (m(), b(l(Fa), N({
|
|
1406
1424
|
class: "w-full",
|
|
1407
1425
|
"show-line": !0,
|
|
1408
1426
|
"tree-data": i.value,
|
|
1409
1427
|
"expanded-keys": d.value,
|
|
1410
1428
|
"onUpdate:expandedKeys": r[0] || (r[0] = (v) => d.value = v),
|
|
1411
|
-
"selected-keys":
|
|
1429
|
+
"selected-keys": p.value,
|
|
1412
1430
|
loading: l(n).isTreeLoading,
|
|
1413
1431
|
onSelect: o
|
|
1414
1432
|
}, l(t)), {
|
|
1415
1433
|
title: g(({ key: v, label: u, icon: h }) => [
|
|
1416
|
-
D(
|
|
1434
|
+
D(f.$slots, "title", {
|
|
1417
1435
|
label: u,
|
|
1418
1436
|
key: v,
|
|
1419
1437
|
icon: h
|
|
1420
1438
|
}, () => [
|
|
1421
|
-
$("div",
|
|
1439
|
+
$("div", bt, [
|
|
1422
1440
|
w(l(U), { icon: h }, null, 8, ["icon"]),
|
|
1423
|
-
$("span",
|
|
1441
|
+
$("span", _t, F(u), 1)
|
|
1424
1442
|
])
|
|
1425
1443
|
])
|
|
1426
1444
|
]),
|
|
1427
1445
|
_: 3
|
|
1428
1446
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1429
1447
|
}
|
|
1430
|
-
}),
|
|
1448
|
+
}), ul = /* @__PURE__ */ q(ca, [["__scopeId", "data-v-62a24cf4"]]), xt = { class: "relative w-[248px] max-w-[248px]" }, yt = {
|
|
1431
1449
|
key: 0,
|
|
1432
1450
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1433
|
-
},
|
|
1451
|
+
}, kt = /* @__PURE__ */ C({
|
|
1434
1452
|
inheritAttrs: !1,
|
|
1435
1453
|
__name: "index",
|
|
1436
|
-
props:
|
|
1454
|
+
props: ua,
|
|
1437
1455
|
emits: ["change", "update:labels", "update:value"],
|
|
1438
1456
|
setup(s, { emit: a }) {
|
|
1439
1457
|
var y, I, O;
|
|
1440
|
-
const e = s, t = X(), n = L(), i =
|
|
1441
|
-
c.inputFactory =
|
|
1442
|
-
const
|
|
1458
|
+
const e = s, t = X(), n = L(), i = da(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
|
|
1459
|
+
c.inputFactory = Sa(n);
|
|
1460
|
+
const p = _({
|
|
1443
1461
|
...c == null ? void 0 : c.url,
|
|
1444
1462
|
url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
|
|
1445
1463
|
fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
|
|
1446
1464
|
params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
|
|
1447
1465
|
loadingText: !1
|
|
1448
|
-
}), { editorCtrl: d, errInfo: o, labelText:
|
|
1466
|
+
}), { editorCtrl: d, errInfo: o, labelText: f } = n, r = _(t.placeholder);
|
|
1449
1467
|
T(
|
|
1450
|
-
() =>
|
|
1468
|
+
() => p.value.loading,
|
|
1451
1469
|
(x) => {
|
|
1452
|
-
x ? r.value = "" : r.value || (r.value = "请选择" +
|
|
1470
|
+
x ? r.value = "" : r.value || (r.value = "请选择" + f.value);
|
|
1453
1471
|
},
|
|
1454
1472
|
{ immediate: !0 }
|
|
1455
1473
|
);
|
|
@@ -1468,36 +1486,36 @@ const Jt = async (s, a) => {
|
|
|
1468
1486
|
v("update:labels", []), v("update:value", []);
|
|
1469
1487
|
return;
|
|
1470
1488
|
}
|
|
1471
|
-
const B = E.map((Je) => Je.value), se =
|
|
1489
|
+
const B = E.map((Je) => Je.value), se = ma(c, e, B), Ge = ha(se);
|
|
1472
1490
|
v("update:labels", Ge), v("update:value", B), o != null && o.value.errClass && d && Y(d);
|
|
1473
1491
|
};
|
|
1474
1492
|
return K(() => {
|
|
1475
|
-
|
|
1493
|
+
p.value && !p.value.fieldMap && (p.value.fieldMap = {
|
|
1476
1494
|
title: "Name",
|
|
1477
1495
|
label: "Name",
|
|
1478
1496
|
value: "Id",
|
|
1479
1497
|
key: "Id"
|
|
1480
|
-
}), c &&
|
|
1481
|
-
}),
|
|
1482
|
-
c &&
|
|
1498
|
+
}), c && pa(c.autoload, c, e);
|
|
1499
|
+
}), Ca(() => {
|
|
1500
|
+
c && fa(c, e);
|
|
1483
1501
|
}), (x, E) => {
|
|
1484
1502
|
var B;
|
|
1485
|
-
return m(), S("div",
|
|
1486
|
-
u.value.length ? k("", !0) : (m(), S("div",
|
|
1487
|
-
w(l(
|
|
1503
|
+
return m(), S("div", xt, [
|
|
1504
|
+
u.value.length ? k("", !0) : (m(), S("div", yt, [
|
|
1505
|
+
w(l(va), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1488
1506
|
E[0] || (E[0] = $("span", null, "数据加载中...", -1))
|
|
1489
1507
|
])),
|
|
1490
|
-
w(l(
|
|
1508
|
+
w(l(Na), N({
|
|
1491
1509
|
options: u.value,
|
|
1492
1510
|
class: [(B = l(o)) == null ? void 0 : B.errClass],
|
|
1493
1511
|
"allow-clear": !0,
|
|
1494
|
-
placeholder: u.value.length > 0 ? "请选择" + l(
|
|
1512
|
+
placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
|
|
1495
1513
|
onChange: h
|
|
1496
1514
|
}, l(t)), null, 16, ["options", "class", "placeholder"])
|
|
1497
1515
|
]);
|
|
1498
1516
|
};
|
|
1499
1517
|
}
|
|
1500
|
-
}),
|
|
1518
|
+
}), dl = /* @__PURE__ */ q(kt, [["__scopeId", "data-v-7f0def6e"]]), pl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-64193a41"]]);
|
|
1501
1519
|
function ie() {
|
|
1502
1520
|
return ie = Object.assign ? Object.assign.bind() : function(s) {
|
|
1503
1521
|
for (var a = 1; a < arguments.length; a++) {
|
|
@@ -1507,7 +1525,7 @@ function ie() {
|
|
|
1507
1525
|
return s;
|
|
1508
1526
|
}, ie.apply(null, arguments);
|
|
1509
1527
|
}
|
|
1510
|
-
const
|
|
1528
|
+
const wt = {
|
|
1511
1529
|
locale: "zh_CN",
|
|
1512
1530
|
today: "今天",
|
|
1513
1531
|
now: "此刻",
|
|
@@ -1534,7 +1552,7 @@ const kt = {
|
|
|
1534
1552
|
nextDecade: "下一年代",
|
|
1535
1553
|
previousCentury: "上一世纪",
|
|
1536
1554
|
nextCentury: "下一世纪"
|
|
1537
|
-
},
|
|
1555
|
+
}, St = {
|
|
1538
1556
|
placeholder: "请选择时间",
|
|
1539
1557
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1540
1558
|
}, ue = {
|
|
@@ -1549,11 +1567,11 @@ const kt = {
|
|
|
1549
1567
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1550
1568
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1551
1569
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1552
|
-
},
|
|
1553
|
-
timePickerLocale: ie({},
|
|
1570
|
+
}, wt),
|
|
1571
|
+
timePickerLocale: ie({}, St)
|
|
1554
1572
|
};
|
|
1555
1573
|
ue.lang.ok = "确定";
|
|
1556
|
-
const
|
|
1574
|
+
const fl = /* @__PURE__ */ C({
|
|
1557
1575
|
__name: "index",
|
|
1558
1576
|
props: {
|
|
1559
1577
|
valueFormat: {}
|
|
@@ -1562,9 +1580,9 @@ const pl = /* @__PURE__ */ C({
|
|
|
1562
1580
|
const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1563
1581
|
n != null && n.value.errClass && e && Y(e);
|
|
1564
1582
|
}, c = _(a.valueFormat ?? "YYYY-MM-DD");
|
|
1565
|
-
return (
|
|
1583
|
+
return (p, d) => {
|
|
1566
1584
|
var o;
|
|
1567
|
-
return m(), b(l(
|
|
1585
|
+
return m(), b(l(Ma), {
|
|
1568
1586
|
class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1569
1587
|
placeholder: "请选择" + l(t),
|
|
1570
1588
|
locale: l(ue),
|
|
@@ -1573,7 +1591,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1573
1591
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1574
1592
|
};
|
|
1575
1593
|
}
|
|
1576
|
-
}),
|
|
1594
|
+
}), Ct = /* @__PURE__ */ C({
|
|
1577
1595
|
__name: "index",
|
|
1578
1596
|
props: {
|
|
1579
1597
|
value: {},
|
|
@@ -1583,7 +1601,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1583
1601
|
setup(s, { emit: a }) {
|
|
1584
1602
|
const { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1585
1603
|
n != null && n.value.errClass && e && Y(e);
|
|
1586
|
-
}, c = s,
|
|
1604
|
+
}, c = s, p = c.value === void 0 ? !0 : c.undefValue, d = a, o = _(c.value);
|
|
1587
1605
|
T(
|
|
1588
1606
|
() => c.value,
|
|
1589
1607
|
(r) => {
|
|
@@ -1601,8 +1619,8 @@ const pl = /* @__PURE__ */ C({
|
|
|
1601
1619
|
d("update:value", r);
|
|
1602
1620
|
}
|
|
1603
1621
|
);
|
|
1604
|
-
const
|
|
1605
|
-
o.value === "" && (o.value =
|
|
1622
|
+
const f = () => {
|
|
1623
|
+
o.value === "" && (o.value = p ? void 0 : null);
|
|
1606
1624
|
};
|
|
1607
1625
|
return (r, v) => {
|
|
1608
1626
|
var u, h;
|
|
@@ -1617,7 +1635,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1617
1635
|
"allow-clear": !0,
|
|
1618
1636
|
placeholder: "请输入" + l(t),
|
|
1619
1637
|
onBlur: i,
|
|
1620
|
-
onChange:
|
|
1638
|
+
onChange: f
|
|
1621
1639
|
}, r.$attrs), Le({ _: 2 }, [
|
|
1622
1640
|
r.$slots.addonBefore ? {
|
|
1623
1641
|
name: "addonBefore",
|
|
@@ -1636,7 +1654,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1636
1654
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1637
1655
|
};
|
|
1638
1656
|
}
|
|
1639
|
-
}),
|
|
1657
|
+
}), Tt = /* @__PURE__ */ C({
|
|
1640
1658
|
__name: "inputIcon",
|
|
1641
1659
|
props: {
|
|
1642
1660
|
value: {}
|
|
@@ -1655,9 +1673,9 @@ const pl = /* @__PURE__ */ C({
|
|
|
1655
1673
|
(i) => {
|
|
1656
1674
|
t("update:value", i);
|
|
1657
1675
|
}
|
|
1658
|
-
), (i, c) => (m(), b(
|
|
1676
|
+
), (i, c) => (m(), b(Ct, N({
|
|
1659
1677
|
value: n.value,
|
|
1660
|
-
"onUpdate:value": c[0] || (c[0] = (
|
|
1678
|
+
"onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
|
|
1661
1679
|
}, i.$attrs), {
|
|
1662
1680
|
addonBefore: g(() => [
|
|
1663
1681
|
w(l(U), {
|
|
@@ -1668,16 +1686,16 @@ const pl = /* @__PURE__ */ C({
|
|
|
1668
1686
|
_: 1
|
|
1669
1687
|
}, 16, ["value"]));
|
|
1670
1688
|
}
|
|
1671
|
-
}),
|
|
1689
|
+
}), vl = /* @__PURE__ */ q(Tt, [["__scopeId", "data-v-358b82ef"]]), ml = /* @__PURE__ */ C({
|
|
1672
1690
|
__name: "inputPassword",
|
|
1673
1691
|
setup(s) {
|
|
1674
1692
|
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1675
1693
|
t != null && t.value.errClass && a && Y(a);
|
|
1676
1694
|
};
|
|
1677
1695
|
return (i, c) => {
|
|
1678
|
-
var
|
|
1679
|
-
return m(), b(l(
|
|
1680
|
-
class: ((
|
|
1696
|
+
var p;
|
|
1697
|
+
return m(), b(l(Ba), N({
|
|
1698
|
+
class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1681
1699
|
"allow-clear": !0,
|
|
1682
1700
|
autocomplete: "new-password",
|
|
1683
1701
|
placeholder: "请输入" + l(e),
|
|
@@ -1685,23 +1703,23 @@ const pl = /* @__PURE__ */ C({
|
|
|
1685
1703
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1686
1704
|
};
|
|
1687
1705
|
}
|
|
1688
|
-
}),
|
|
1706
|
+
}), hl = /* @__PURE__ */ C({
|
|
1689
1707
|
__name: "inputNumber",
|
|
1690
1708
|
setup(s) {
|
|
1691
1709
|
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1692
1710
|
t != null && t.value.errClass && a && Y(a);
|
|
1693
1711
|
};
|
|
1694
1712
|
return (i, c) => {
|
|
1695
|
-
var
|
|
1696
|
-
return m(), b(l(
|
|
1697
|
-
class: [[((
|
|
1713
|
+
var p;
|
|
1714
|
+
return m(), b(l(Ra), N({
|
|
1715
|
+
class: [[((p = l(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1698
1716
|
onBlur: n,
|
|
1699
1717
|
"allow-clear": !1,
|
|
1700
1718
|
placeholder: "请输入" + l(e)
|
|
1701
1719
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1702
1720
|
};
|
|
1703
1721
|
}
|
|
1704
|
-
}),
|
|
1722
|
+
}), $t = { class: "flex flex-col gap-2" }, It = { key: 1 }, gl = /* @__PURE__ */ C({
|
|
1705
1723
|
__name: "index",
|
|
1706
1724
|
props: {
|
|
1707
1725
|
value: {},
|
|
@@ -1714,7 +1732,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1714
1732
|
setup(s, { emit: a }) {
|
|
1715
1733
|
const e = s, t = a, n = _(!(e.selectList && e.selectList.length > 0)), i = _([]);
|
|
1716
1734
|
let c = !1;
|
|
1717
|
-
const
|
|
1735
|
+
const p = () => {
|
|
1718
1736
|
e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
|
|
1719
1737
|
id: Date.now() + Math.random(),
|
|
1720
1738
|
text: r.text,
|
|
@@ -1730,7 +1748,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1730
1748
|
T(
|
|
1731
1749
|
() => e.value,
|
|
1732
1750
|
() => {
|
|
1733
|
-
c ||
|
|
1751
|
+
c || p(), c = !1;
|
|
1734
1752
|
},
|
|
1735
1753
|
{ immediate: !0 }
|
|
1736
1754
|
);
|
|
@@ -1746,10 +1764,10 @@ const pl = /* @__PURE__ */ C({
|
|
|
1746
1764
|
field: "",
|
|
1747
1765
|
value: ""
|
|
1748
1766
|
});
|
|
1749
|
-
},
|
|
1767
|
+
}, f = () => {
|
|
1750
1768
|
d();
|
|
1751
1769
|
};
|
|
1752
|
-
return (r, v) => (m(), S("div",
|
|
1770
|
+
return (r, v) => (m(), S("div", $t, [
|
|
1753
1771
|
(m(!0), S(R, null, z(i.value, (u) => (m(), S("div", {
|
|
1754
1772
|
key: u.id,
|
|
1755
1773
|
class: "flex items-center gap-2"
|
|
@@ -1764,9 +1782,9 @@ const pl = /* @__PURE__ */ C({
|
|
|
1764
1782
|
title: u.text || u.field,
|
|
1765
1783
|
class: "w-full",
|
|
1766
1784
|
placeholder: u.text || r.labelHolder || "配置名",
|
|
1767
|
-
onInput:
|
|
1785
|
+
onInput: f,
|
|
1768
1786
|
disabled: !n.value
|
|
1769
|
-
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div",
|
|
1787
|
+
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", It, [
|
|
1770
1788
|
w(l(ee), {
|
|
1771
1789
|
value: u.text,
|
|
1772
1790
|
"onUpdate:value": (h) => u.text = h,
|
|
@@ -1789,7 +1807,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1789
1807
|
value: u.value,
|
|
1790
1808
|
"onUpdate:value": (h) => u.value = h,
|
|
1791
1809
|
placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
|
|
1792
|
-
onInput:
|
|
1810
|
+
onInput: f,
|
|
1793
1811
|
title: u.value
|
|
1794
1812
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1795
1813
|
], 2)
|
|
@@ -1808,7 +1826,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1808
1826
|
})) : k("", !0)
|
|
1809
1827
|
]));
|
|
1810
1828
|
}
|
|
1811
|
-
}),
|
|
1829
|
+
}), Dt = /* @__PURE__ */ q(ba, [["__scopeId", "data-v-a10d18a5"]]), bl = /* @__PURE__ */ C({
|
|
1812
1830
|
__name: "radioStatus",
|
|
1813
1831
|
props: {
|
|
1814
1832
|
/**
|
|
@@ -1840,9 +1858,9 @@ const pl = /* @__PURE__ */ C({
|
|
|
1840
1858
|
return a.all === !0 && e.value.unshift({
|
|
1841
1859
|
label: "全部",
|
|
1842
1860
|
value: a.allValue || [0, 1]
|
|
1843
|
-
}), (t, n) => (m(), b(
|
|
1861
|
+
}), (t, n) => (m(), b(Dt, { data: e.value }, null, 8, ["data"]));
|
|
1844
1862
|
}
|
|
1845
|
-
}),
|
|
1863
|
+
}), _l = /* @__PURE__ */ C({
|
|
1846
1864
|
__name: "index",
|
|
1847
1865
|
props: {
|
|
1848
1866
|
startDate: {},
|
|
@@ -1851,43 +1869,43 @@ const pl = /* @__PURE__ */ C({
|
|
|
1851
1869
|
},
|
|
1852
1870
|
emits: ["update:startDate", "update:endDate"],
|
|
1853
1871
|
setup(s, { emit: a }) {
|
|
1854
|
-
const e = s, t = a, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat),
|
|
1855
|
-
const o = e.startDate,
|
|
1856
|
-
if (!(!o || !
|
|
1872
|
+
const e = s, t = a, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
|
|
1873
|
+
const o = e.startDate, f = e.endDate;
|
|
1874
|
+
if (!(!o || !f))
|
|
1857
1875
|
try {
|
|
1858
|
-
const r = fe(o), v = fe(
|
|
1876
|
+
const r = fe(o), v = fe(f);
|
|
1859
1877
|
return !r.isValid() || !v.isValid() ? void 0 : [r, v];
|
|
1860
1878
|
} catch {
|
|
1861
1879
|
return;
|
|
1862
1880
|
}
|
|
1863
|
-
}), d = (o,
|
|
1864
|
-
if (!o || !
|
|
1881
|
+
}), d = (o, f) => {
|
|
1882
|
+
if (!o || !f || f.length !== 2) {
|
|
1865
1883
|
t("update:startDate", null), t("update:endDate", null);
|
|
1866
1884
|
return;
|
|
1867
1885
|
}
|
|
1868
|
-
t("update:startDate",
|
|
1886
|
+
t("update:startDate", f[0] || null), t("update:endDate", f[1] || null);
|
|
1869
1887
|
};
|
|
1870
|
-
return (o,
|
|
1888
|
+
return (o, f) => {
|
|
1871
1889
|
var r;
|
|
1872
|
-
return m(), b(l(
|
|
1890
|
+
return m(), b(l(Oa), {
|
|
1873
1891
|
class: P([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1874
1892
|
locale: l(ue),
|
|
1875
1893
|
"value-format": c.value,
|
|
1876
|
-
value:
|
|
1894
|
+
value: p.value,
|
|
1877
1895
|
onChange: d
|
|
1878
1896
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1879
1897
|
};
|
|
1880
1898
|
}
|
|
1881
|
-
}),
|
|
1899
|
+
}), xl = /* @__PURE__ */ q(_a, [["__scopeId", "data-v-da38e265"]]), yl = /* @__PURE__ */ C({
|
|
1882
1900
|
__name: "index",
|
|
1883
1901
|
setup(s) {
|
|
1884
1902
|
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1885
1903
|
t != null && t.value.errClass && a && Y(a);
|
|
1886
1904
|
};
|
|
1887
1905
|
return (i, c) => {
|
|
1888
|
-
var
|
|
1889
|
-
return m(), b(l(
|
|
1890
|
-
class: ((
|
|
1906
|
+
var p;
|
|
1907
|
+
return m(), b(l(Aa), N({
|
|
1908
|
+
class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1891
1909
|
"allow-clear": !0,
|
|
1892
1910
|
placeholder: "请输入" + l(e),
|
|
1893
1911
|
onBlur: n,
|
|
@@ -1898,7 +1916,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1898
1916
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1899
1917
|
};
|
|
1900
1918
|
}
|
|
1901
|
-
}),
|
|
1919
|
+
}), kl = /* @__PURE__ */ C({
|
|
1902
1920
|
__name: "index",
|
|
1903
1921
|
props: {
|
|
1904
1922
|
valueFormat: {}
|
|
@@ -1907,9 +1925,9 @@ const pl = /* @__PURE__ */ C({
|
|
|
1907
1925
|
const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1908
1926
|
n != null && n.value.errClass && e && Y(e);
|
|
1909
1927
|
}, c = _(a.valueFormat ?? "HH:mm");
|
|
1910
|
-
return (
|
|
1928
|
+
return (p, d) => {
|
|
1911
1929
|
var o;
|
|
1912
|
-
return m(), b(l(
|
|
1930
|
+
return m(), b(l(La), {
|
|
1913
1931
|
class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1914
1932
|
placeholder: "请选择" + l(t),
|
|
1915
1933
|
locale: l(ue),
|
|
@@ -1918,7 +1936,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1918
1936
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1919
1937
|
};
|
|
1920
1938
|
}
|
|
1921
|
-
}),
|
|
1939
|
+
}), Et = /* @__PURE__ */ C({
|
|
1922
1940
|
__name: "index",
|
|
1923
1941
|
props: {
|
|
1924
1942
|
autoload: { type: Boolean },
|
|
@@ -1928,7 +1946,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1928
1946
|
},
|
|
1929
1947
|
emits: ["change", "update:value"],
|
|
1930
1948
|
setup(s, { emit: a }) {
|
|
1931
|
-
const e = s, t = _({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(),
|
|
1949
|
+
const e = s, t = _({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = _([]), o = _([]);
|
|
1932
1950
|
e.value && e.value.every((r) => {
|
|
1933
1951
|
o.value.push(r.toString());
|
|
1934
1952
|
}), T(
|
|
@@ -1937,8 +1955,8 @@ const pl = /* @__PURE__ */ C({
|
|
|
1937
1955
|
r && (o.value = r);
|
|
1938
1956
|
}
|
|
1939
1957
|
);
|
|
1940
|
-
const
|
|
1941
|
-
|
|
1958
|
+
const f = (r) => {
|
|
1959
|
+
p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Y(n);
|
|
1942
1960
|
};
|
|
1943
1961
|
return K(async () => {
|
|
1944
1962
|
if (t.value) {
|
|
@@ -1955,11 +1973,11 @@ const pl = /* @__PURE__ */ C({
|
|
|
1955
1973
|
}
|
|
1956
1974
|
}), (r, v) => {
|
|
1957
1975
|
var u;
|
|
1958
|
-
return m(), b(l(
|
|
1976
|
+
return m(), b(l(za), N({
|
|
1959
1977
|
class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1960
1978
|
placeholder: "请输入" + l(i),
|
|
1961
1979
|
targetKeys: o.value,
|
|
1962
|
-
onChange:
|
|
1980
|
+
onChange: f
|
|
1963
1981
|
}, r.$attrs), {
|
|
1964
1982
|
children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: O, onItemSelect: x, selectedKeys: E }) => [
|
|
1965
1983
|
D(r.$slots, "children", {
|
|
@@ -1975,7 +1993,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
1975
1993
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1976
1994
|
};
|
|
1977
1995
|
}
|
|
1978
|
-
}),
|
|
1996
|
+
}), wl = /* @__PURE__ */ C({
|
|
1979
1997
|
__name: "transferTable",
|
|
1980
1998
|
props: {
|
|
1981
1999
|
/**
|
|
@@ -2014,7 +2032,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
2014
2032
|
o && (i.value = o);
|
|
2015
2033
|
}
|
|
2016
2034
|
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = _(!0), e.gridCtrl.buttons = _([]), e.gridCtrl.tools = [];
|
|
2017
|
-
const
|
|
2035
|
+
const p = ({ disabled: o, selectedKeys: f, onItemSelectAll: r, onItemSelect: v }) => ({
|
|
2018
2036
|
getCheckboxProps: (u) => ({
|
|
2019
2037
|
// 控制是否禁止
|
|
2020
2038
|
disabled: o || u.disabled
|
|
@@ -2026,7 +2044,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
2026
2044
|
onSelect({ [c.value]: u }, h) {
|
|
2027
2045
|
v(u, h);
|
|
2028
2046
|
},
|
|
2029
|
-
selectedRowKeys:
|
|
2047
|
+
selectedRowKeys: f
|
|
2030
2048
|
}), d = _([]);
|
|
2031
2049
|
return K(async () => {
|
|
2032
2050
|
if (n.value) {
|
|
@@ -2038,11 +2056,11 @@ const pl = /* @__PURE__ */ C({
|
|
|
2038
2056
|
});
|
|
2039
2057
|
d.value = (o == null ? void 0 : o.data) ?? [];
|
|
2040
2058
|
}
|
|
2041
|
-
}), (o,
|
|
2059
|
+
}), (o, f) => (m(), b(Et, N({
|
|
2042
2060
|
"data-source": d.value,
|
|
2043
2061
|
"row-key": (r) => r[c.value],
|
|
2044
2062
|
value: i.value,
|
|
2045
|
-
"onUpdate:value":
|
|
2063
|
+
"onUpdate:value": f[0] || (f[0] = (r) => i.value = r),
|
|
2046
2064
|
"list-style": {
|
|
2047
2065
|
width: "300px",
|
|
2048
2066
|
height: "500px"
|
|
@@ -2060,7 +2078,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
2060
2078
|
w(l(Ke), {
|
|
2061
2079
|
columns: s.gridCtrl.columns.value,
|
|
2062
2080
|
"row-key": c.value,
|
|
2063
|
-
"row-selection":
|
|
2081
|
+
"row-selection": p({
|
|
2064
2082
|
disabled: !1,
|
|
2065
2083
|
selectedKeys: h,
|
|
2066
2084
|
onItemSelectAll: v,
|
|
@@ -2081,7 +2099,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
2081
2099
|
_: 1
|
|
2082
2100
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
2083
2101
|
}
|
|
2084
|
-
}),
|
|
2102
|
+
}), Pt = /* @__PURE__ */ C({
|
|
2085
2103
|
__name: "index",
|
|
2086
2104
|
props: {
|
|
2087
2105
|
multiple: {
|
|
@@ -2108,17 +2126,17 @@ const pl = /* @__PURE__ */ C({
|
|
|
2108
2126
|
},
|
|
2109
2127
|
emits: ["change", "update:value"],
|
|
2110
2128
|
setup(s, { emit: a }) {
|
|
2111
|
-
const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText:
|
|
2129
|
+
const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = a;
|
|
2112
2130
|
i.inputEmit = d;
|
|
2113
|
-
const o = _([]),
|
|
2131
|
+
const o = _([]), f = _();
|
|
2114
2132
|
T(
|
|
2115
2133
|
() => e.value,
|
|
2116
2134
|
(u) => {
|
|
2117
|
-
|
|
2135
|
+
f.value = u;
|
|
2118
2136
|
},
|
|
2119
2137
|
{ immediate: !0 }
|
|
2120
2138
|
), T(
|
|
2121
|
-
() =>
|
|
2139
|
+
() => f.value,
|
|
2122
2140
|
(u) => {
|
|
2123
2141
|
d("update:value", u);
|
|
2124
2142
|
}
|
|
@@ -2130,7 +2148,7 @@ const pl = /* @__PURE__ */ C({
|
|
|
2130
2148
|
{ immediate: !0 }
|
|
2131
2149
|
);
|
|
2132
2150
|
const r = (u) => {
|
|
2133
|
-
e.multiple ?
|
|
2151
|
+
e.multiple ? f.value = u ?? [] : u == null ? f.value = t ? void 0 : null : f.value = u, d("change", f.value);
|
|
2134
2152
|
};
|
|
2135
2153
|
K(() => {
|
|
2136
2154
|
n.fieldMap || (n.fieldMap = {
|
|
@@ -2140,47 +2158,47 @@ const pl = /* @__PURE__ */ C({
|
|
|
2140
2158
|
}), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Be(e.treeCtrl);
|
|
2141
2159
|
});
|
|
2142
2160
|
const v = () => {
|
|
2143
|
-
|
|
2161
|
+
f.value = t ? void 0 : null;
|
|
2144
2162
|
};
|
|
2145
2163
|
return (u, h) => {
|
|
2146
2164
|
var y;
|
|
2147
|
-
return m(), b(l(
|
|
2165
|
+
return m(), b(l(Ua), N({
|
|
2148
2166
|
class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
|
|
2149
2167
|
"tree-line": "",
|
|
2150
2168
|
multiple: s.multiple,
|
|
2151
2169
|
"tree-default-expanded-keys": ["-"],
|
|
2152
|
-
value:
|
|
2153
|
-
"onUpdate:value": h[0] || (h[0] = (I) =>
|
|
2170
|
+
value: f.value,
|
|
2171
|
+
"onUpdate:value": h[0] || (h[0] = (I) => f.value = I),
|
|
2154
2172
|
"tree-data": o.value,
|
|
2155
|
-
placeholder: "请选择" + l(
|
|
2173
|
+
placeholder: "请选择" + l(p),
|
|
2156
2174
|
onChange: r,
|
|
2157
2175
|
onClear: v
|
|
2158
2176
|
}, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2159
2177
|
};
|
|
2160
2178
|
}
|
|
2161
|
-
}),
|
|
2179
|
+
}), Sl = /* @__PURE__ */ q(Pt, [["__scopeId", "data-v-a0ed9c4e"]]), Ft = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Nt = { class: "flex w-full h-full min-h-full" }, Mt = {
|
|
2162
2180
|
key: 0,
|
|
2163
2181
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2164
|
-
},
|
|
2182
|
+
}, Bt = { class: "flex-1 h-full overflow-y-auto" }, Cl = /* @__PURE__ */ C({
|
|
2165
2183
|
__name: "index",
|
|
2166
2184
|
props: {
|
|
2167
2185
|
left: { type: Boolean }
|
|
2168
2186
|
},
|
|
2169
2187
|
setup(s) {
|
|
2170
2188
|
const { useToken: a } = ze, { token: e } = a();
|
|
2171
|
-
return (t, n) => (m(), S("div",
|
|
2172
|
-
w(l(
|
|
2189
|
+
return (t, n) => (m(), S("div", Ft, [
|
|
2190
|
+
w(l(Va), {
|
|
2173
2191
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2174
2192
|
style: be({
|
|
2175
2193
|
backgroundColor: l(e).colorBgContainer
|
|
2176
2194
|
})
|
|
2177
2195
|
}, {
|
|
2178
2196
|
default: g(() => [
|
|
2179
|
-
$("div",
|
|
2180
|
-
t.left ? (m(), S("div",
|
|
2197
|
+
$("div", Nt, [
|
|
2198
|
+
t.left ? (m(), S("div", Mt, [
|
|
2181
2199
|
D(t.$slots, "left")
|
|
2182
2200
|
])) : k("", !0),
|
|
2183
|
-
$("div",
|
|
2201
|
+
$("div", Bt, [
|
|
2184
2202
|
D(t.$slots, "default")
|
|
2185
2203
|
])
|
|
2186
2204
|
])
|
|
@@ -2191,155 +2209,155 @@ const pl = /* @__PURE__ */ C({
|
|
|
2191
2209
|
}
|
|
2192
2210
|
});
|
|
2193
2211
|
export {
|
|
2194
|
-
|
|
2195
|
-
|
|
2212
|
+
ys as Alert,
|
|
2213
|
+
Rs as AppIcon,
|
|
2196
2214
|
ce as AppRouter,
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2215
|
+
ps as AsyncUploader,
|
|
2216
|
+
ul as AutoComplete,
|
|
2217
|
+
Os as Breadcrumb,
|
|
2200
2218
|
A as Button,
|
|
2201
2219
|
Qe as Cache,
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2220
|
+
at as CacheKeys,
|
|
2221
|
+
hs as CanPreviewFileExt,
|
|
2222
|
+
dl as Cascader,
|
|
2223
|
+
pl as Checkbox,
|
|
2224
|
+
Cl as Content,
|
|
2225
|
+
fl as DatePicker,
|
|
2226
|
+
As as Datetime,
|
|
2227
|
+
Hs as Dialog,
|
|
2228
|
+
sl as Drawer,
|
|
2229
|
+
Il as EventPrefix,
|
|
2230
|
+
rl as Form,
|
|
2231
|
+
ol as FormItem,
|
|
2232
|
+
tl as Fullscreen,
|
|
2233
|
+
Ls as Header,
|
|
2234
|
+
zs as HeaderExits,
|
|
2235
|
+
lt as Helper,
|
|
2236
|
+
Dl as ICONS_LIB,
|
|
2237
|
+
Us as Icon,
|
|
2238
|
+
ft as Icontool,
|
|
2239
|
+
Ct as Input,
|
|
2240
|
+
vl as InputIcon,
|
|
2241
|
+
hl as InputNumber,
|
|
2242
|
+
ml as InputPassword,
|
|
2243
|
+
ll as LayoutIcon,
|
|
2244
|
+
ks as Loading,
|
|
2245
|
+
Vs as Menu,
|
|
2246
|
+
Ys as MenuTabs,
|
|
2247
|
+
El as MicroOpenApis,
|
|
2230
2248
|
Me as OPTIONS,
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2249
|
+
ua as OptionCommProps,
|
|
2250
|
+
Ks as ProjectIcon,
|
|
2251
|
+
gl as PropEditor,
|
|
2234
2252
|
j as ProviderKeys,
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2253
|
+
Dt as Radio,
|
|
2254
|
+
bl as RadioStatus,
|
|
2255
|
+
_l as RangePicker,
|
|
2256
|
+
nl as Search,
|
|
2239
2257
|
pe as SearchItem,
|
|
2240
|
-
|
|
2258
|
+
xl as Select,
|
|
2241
2259
|
oa as Switch,
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2260
|
+
il as Table,
|
|
2261
|
+
dt as TableOperate,
|
|
2262
|
+
yl as Textarea,
|
|
2263
|
+
kl as TimePicker,
|
|
2246
2264
|
U as ToolIcon,
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2265
|
+
gt as Toolbar,
|
|
2266
|
+
Ms as Tooltip,
|
|
2267
|
+
Et as Transfer,
|
|
2268
|
+
wl as TransferTable,
|
|
2269
|
+
cl as Tree,
|
|
2270
|
+
Sl as TreeSelect,
|
|
2271
|
+
gs as UploadList,
|
|
2272
|
+
fs as UploadStatus,
|
|
2273
|
+
ws as appendExcelData,
|
|
2274
|
+
Ss as checkExcelDuplicates,
|
|
2275
|
+
Pl as checkIconsExpired,
|
|
2276
|
+
va as circleLoading,
|
|
2259
2277
|
Ze as createFromIconfont,
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2278
|
+
Cs as createMarkedExcelView,
|
|
2279
|
+
Fl as crumbs,
|
|
2280
|
+
Xt as csvToExcelBlob,
|
|
2263
2281
|
He as csvToExcelView,
|
|
2264
|
-
|
|
2282
|
+
Ts as csvToNormalized,
|
|
2265
2283
|
De as defaultTools,
|
|
2266
|
-
|
|
2267
|
-
|
|
2284
|
+
Nl as doDelete,
|
|
2285
|
+
Ml as doExecute,
|
|
2268
2286
|
Re as doQuery,
|
|
2269
|
-
|
|
2270
|
-
|
|
2287
|
+
Bl as doSave,
|
|
2288
|
+
bs as donwloadFromMinio,
|
|
2271
2289
|
We as downloadBlob,
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2290
|
+
Rl as eventBus,
|
|
2291
|
+
$s as excelToExcelView,
|
|
2292
|
+
Is as excelToNormalized,
|
|
2293
|
+
al as exportResults,
|
|
2294
|
+
el as exportSelectedRows,
|
|
2277
2295
|
Ne as filterColumns,
|
|
2278
2296
|
Y as formValidate,
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2297
|
+
Ol as getFormDetail,
|
|
2298
|
+
Al as getIconTransform,
|
|
2299
|
+
Ll as getRecordDetail,
|
|
2300
|
+
zl as getRuleTexts,
|
|
2301
|
+
ha as getSelectedLabels,
|
|
2302
|
+
Ul as getSelectedValues,
|
|
2285
2303
|
W as getToolByKey,
|
|
2286
2304
|
ye as getToolGroup,
|
|
2287
2305
|
H as getToolStatus,
|
|
2288
2306
|
G as getToolVisible,
|
|
2289
2307
|
ke as gridQueryFind,
|
|
2290
2308
|
ra as gridQueryList,
|
|
2291
|
-
|
|
2309
|
+
Vl as gridRowUpdate,
|
|
2292
2310
|
na as gridStatusUpdate,
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2311
|
+
Jt as initCacheCheck,
|
|
2312
|
+
Gt as initDirective,
|
|
2313
|
+
Yl as initMenu,
|
|
2314
|
+
Kl as initPageFactory,
|
|
2315
|
+
Wl as initValidate,
|
|
2298
2316
|
Z as isEmpty,
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2317
|
+
pa as loadOption,
|
|
2318
|
+
Hl as mergeColumns,
|
|
2319
|
+
Ds as normalizedToExcelView,
|
|
2320
|
+
Za as onColumnVisibleChanged,
|
|
2303
2321
|
aa as onFormClose,
|
|
2304
2322
|
Pe as onFormSave,
|
|
2305
2323
|
ea as onFormSaveAs,
|
|
2306
2324
|
je as onFullscreenClick,
|
|
2307
2325
|
la as onGridRowDelete,
|
|
2308
2326
|
ta as onGridRowEdit,
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2327
|
+
jl as onGridRowExpand,
|
|
2328
|
+
ma as onOptionChanged,
|
|
2329
|
+
Ha as onReloadClick,
|
|
2312
2330
|
V as onToolClicked,
|
|
2313
2331
|
sa as openNewForm,
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2332
|
+
Ql as outFormDataFields,
|
|
2333
|
+
ql as parseIcons,
|
|
2334
|
+
vs as path,
|
|
2335
|
+
Gl as pendingNavigation,
|
|
2336
|
+
Jl as pinia,
|
|
2337
|
+
_s as previewFromMinio,
|
|
2338
|
+
Zt as processCsvFile,
|
|
2339
|
+
Es as processExcelFile,
|
|
2322
2340
|
Be as queryTree,
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2341
|
+
Xl as resetRules,
|
|
2342
|
+
Zl as routes,
|
|
2343
|
+
es as saveForm,
|
|
2344
|
+
as as setFormData,
|
|
2345
|
+
ts as showBreadcrumb,
|
|
2346
|
+
Ps as toExcel,
|
|
2347
|
+
fa as unloadOption,
|
|
2348
|
+
ls as useAppInfo,
|
|
2349
|
+
ss as useEditorFactory,
|
|
2332
2350
|
Fe as useFormItemFactory,
|
|
2333
|
-
|
|
2334
|
-
|
|
2351
|
+
rs as useGridFactory,
|
|
2352
|
+
os as useHostInfo,
|
|
2335
2353
|
L as useInputFactory,
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2354
|
+
da as useOptionFactory,
|
|
2355
|
+
ns as usePageFactory,
|
|
2356
|
+
is as usePageInfo,
|
|
2339
2357
|
me as useSettingInfo,
|
|
2340
|
-
|
|
2341
|
-
|
|
2358
|
+
et as useToolFactory,
|
|
2359
|
+
cs as useTreeFactory,
|
|
2342
2360
|
Ee as useUserInfo,
|
|
2343
|
-
|
|
2344
|
-
|
|
2361
|
+
us as validateData,
|
|
2362
|
+
Fs as validateExcel
|
|
2345
2363
|
};
|