@skyfox2000/webui 1.3.5 → 1.3.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/.vscode/settings.json +1 -1
- package/lib/assets/modules/{file-upload-C0twqMV5.js → file-upload-CKliLHBF.js} +50 -50
- package/lib/assets/modules/{index-D1XAa1Uo.js → index-CTOX9glc.js} +2 -2
- package/lib/assets/modules/index-Cm_1mhHh.js +377 -0
- package/lib/assets/modules/{index-C4CryM-R.js → index-DTFrhJdN.js} +1 -1
- package/lib/assets/modules/{menuTabs-BrYQa4UO.js → menuTabs-ylnnzjNu.js} +2 -2
- package/lib/assets/modules/{toolIcon-B-g9pyE4.js → toolIcon-CNfvNkNh.js} +1 -1
- package/lib/assets/modules/{uploadList-DCWRIxPJ.js → uploadList-DroJGtBI.js} +4 -4
- package/lib/assets/modules/{uploadList-0f2FA_5s.js → uploadList-M21hxVQy.js} +129 -128
- package/lib/components/common/alert/index.vue.d.ts +13 -0
- package/lib/components/common/icon/helper.vue.d.ts +1 -0
- package/lib/components/common/index.d.ts +2 -0
- package/lib/components/content/form/formItem.vue.d.ts +1 -0
- package/lib/components/form/input/index.vue.d.ts +4 -1
- package/lib/components/form/select/index.vue.d.ts +2 -0
- package/lib/components/form/treeSelect/index.vue.d.ts +11 -2
- 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 +309 -275
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/typings/form.d.ts +2 -2
- package/lib/utils/excel-preview.d.ts +24 -0
- package/lib/utils/form-excel.d.ts +17 -4
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +677 -662
- package/package.json +2 -2
- package/src/components/common/alert/index.vue +76 -0
- package/src/components/common/icon/helper.vue +7 -1
- package/src/components/common/index.ts +4 -1
- package/src/components/content/dialog/excelForm.vue +337 -311
- package/src/components/content/form/formItem.vue +6 -2
- package/src/components/form/input/index.vue +16 -3
- package/src/components/form/select/index.vue +5 -11
- package/src/components/form/treeSelect/index.vue +22 -17
- package/src/components/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/typings/form.d.ts +2 -2
- package/src/utils/data.ts +10 -1
- package/src/utils/excel-preview.ts +189 -0
- package/src/utils/file-upload.ts +0 -2
- package/src/utils/form-excel.ts +132 -126
- package/lib/assets/modules/index-CKJIxasX.js +0 -333
package/lib/webui.es.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { u as Je, i as Z, a as me, c as Xe, P as j, o as Ee, b as Ze, d as ea, e as Pe, 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 Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-
|
|
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 Ee, b as Ze, d as ea, e as Pe, 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 Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-M21hxVQy.js";
|
|
2
|
+
import { a9 as Sl, N as Cl, Q as Tl, U as $l, a8 as Il, a6 as Dl, a7 as El, aa as Pl, X as Fl, S as Nl, a4 as Ml, a1 as Rl, L as Bl, a3 as Ol, T as Al, G as Ll, Z as zl, a2 as Ul, a5 as Vl, M as Yl, R as Wl, ab as Kl, F as jl, a0 as Hl, ac as Ql, W as ql, Y as Gl, V as Jl, ad as Xl, H as Zl, I as es, ae as as, K as ts, af as ls, J as ss, $ as rs } from "./assets/modules/uploadList-M21hxVQy.js";
|
|
3
|
+
import { A as ns, U as is, a as cs, g as us, c as ds, d as ps, p as fs, u as vs, b as ms } from "./assets/modules/file-upload-CKliLHBF.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
|
-
import { FrontCache as re, httpPost as
|
|
5
|
+
import { FrontCache as re, httpPost as Be, ResStatus as Oe, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
|
|
6
6
|
import he from "vue-m-message";
|
|
7
|
-
import { defineComponent 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 F, renderSlot as D, normalizeStyle as ue, toDisplayString as P, createCommentVNode as k, ref as x, provide as ge, watch as T, onMounted as Y, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as H, computed as J, createElementBlock as S, normalizeClass as N, createSlots as Ae, useSlots as xa, Fragment as B, renderList as z, resolveDynamicComponent as _a, onActivated as ya, shallowRef as ka, onUnmounted as wa, withKeys as Se } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import fe from "dayjs";
|
|
10
|
-
import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import { d as We } from "./assets/modules/uploadList-
|
|
13
|
-
import { C as
|
|
14
|
-
import { c as Ke } from "./assets/modules/index-
|
|
15
|
-
import { _ as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { a as Rs } from "./assets/modules/toolIcon-
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as Hs } from "./assets/modules/index-
|
|
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 be, MenuItem as xe, Dropdown as ve, Checkbox as Da, Table as Ye, Tree as Ea, Cascader as Pa, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ra, Textarea as Ba, Transfer as Oa, TreeSelect as Aa, LayoutContent as La } from "ant-design-vue";
|
|
11
|
+
import { VueDraggableNext as za } from "vue-draggable-next";
|
|
12
|
+
import { d as We } from "./assets/modules/uploadList-DroJGtBI.js";
|
|
13
|
+
import { C as gs, U as bs, a as xs, p as _s } from "./assets/modules/uploadList-DroJGtBI.js";
|
|
14
|
+
import { c as Ke } from "./assets/modules/index-Cm_1mhHh.js";
|
|
15
|
+
import { _ as ks, h as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-Cm_1mhHh.js";
|
|
16
|
+
import { _ as A } from "./assets/modules/index-DTFrhJdN.js";
|
|
17
|
+
import { _ as U } from "./assets/modules/toolIcon-CNfvNkNh.js";
|
|
18
|
+
import { a as Rs } from "./assets/modules/toolIcon-CNfvNkNh.js";
|
|
19
|
+
import { _ as Os, b as As, c as Ls, d as zs, e as Us, I as Vs, f as Ys, g as Ws, a as Ks } from "./assets/modules/menuTabs-ylnnzjNu.js";
|
|
20
|
+
import { _ as Hs } from "./assets/modules/index-CTOX9glc.js";
|
|
21
21
|
import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
|
-
const Te = (s,
|
|
22
|
+
const Te = (s, a, e, t = "remove") => {
|
|
23
23
|
if (!e)
|
|
24
|
-
if (
|
|
25
|
-
const n =
|
|
26
|
-
n ? n.props.disabled = !0 : (
|
|
24
|
+
if (t === "disable") {
|
|
25
|
+
const n = a.component;
|
|
26
|
+
n ? n.props.disabled = !0 : (a.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
|
|
27
27
|
} else {
|
|
28
28
|
const n = document.createComment("No Permission"), i = s.parentNode;
|
|
29
29
|
if (i) {
|
|
30
|
-
const c =
|
|
30
|
+
const c = a.component;
|
|
31
31
|
c ? c.props.style = { display: "none" } : i.replaceChild(n, s);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}, $e = (s) => {
|
|
35
35
|
var c, p;
|
|
36
|
-
const
|
|
37
|
-
if (Z(
|
|
36
|
+
const a = Je(), { url: e, role: t, permit: n } = s;
|
|
37
|
+
if (Z(t) && Z(n))
|
|
38
38
|
return !0;
|
|
39
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
|
-
return Z(
|
|
41
|
+
return Z(t) ? !0 : a.hasRole(t);
|
|
42
42
|
if (we.VITE_PERMISSION_MODE === "permit") {
|
|
43
43
|
let d = !1, o = !1;
|
|
44
|
-
return Z(
|
|
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
|
-
},
|
|
48
|
-
mounted(s,
|
|
49
|
-
const
|
|
47
|
+
}, Ua = {
|
|
48
|
+
mounted(s, a, e) {
|
|
49
|
+
const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
|
|
50
50
|
Te(s, e, c, i);
|
|
51
51
|
},
|
|
52
|
-
updated(s,
|
|
53
|
-
const
|
|
52
|
+
updated(s, a, e) {
|
|
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
|
-
},
|
|
57
|
-
mounted: (s,
|
|
56
|
+
}, Va = {
|
|
57
|
+
mounted: (s, a) => {
|
|
58
58
|
s.addEventListener("keydown", (e) => {
|
|
59
|
-
e.key === "Enter" &&
|
|
59
|
+
e.key === "Enter" && a.value();
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
62
|
unmounted: (s) => {
|
|
@@ -64,22 +64,22 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}, de = {
|
|
67
|
-
auth:
|
|
68
|
-
submit:
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
}), s), W = (s,
|
|
72
|
-
const e = s.find((
|
|
67
|
+
auth: Ua,
|
|
68
|
+
submit: Va
|
|
69
|
+
}, Ht = (s, a) => ((a || Object.keys(de)).forEach((t) => {
|
|
70
|
+
t in de && s.directive(t, de[t]);
|
|
71
|
+
}), s), W = (s, a) => {
|
|
72
|
+
const e = s.find((t) => t.key === a);
|
|
73
73
|
if (e)
|
|
74
74
|
return e;
|
|
75
|
-
for (const
|
|
76
|
-
if (
|
|
77
|
-
const n = W(
|
|
75
|
+
for (const t of s)
|
|
76
|
+
if (t.children) {
|
|
77
|
+
const n = W(t.children, a);
|
|
78
78
|
if (n)
|
|
79
79
|
return n;
|
|
80
80
|
}
|
|
81
|
-
}, _e = (s,
|
|
82
|
-
const
|
|
81
|
+
}, _e = (s, a, e) => {
|
|
82
|
+
const t = [], n = [];
|
|
83
83
|
return e || (e = [...s]), e.length && e.forEach((i, c) => {
|
|
84
84
|
let p;
|
|
85
85
|
if (typeof i == "string") {
|
|
@@ -93,47 +93,47 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
93
93
|
o && (o.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
|
|
94
94
|
p.formVisible.value = !0;
|
|
95
95
|
}, 1)) : he.warning("未配置点击处理事件!");
|
|
96
|
-
}),
|
|
97
|
-
}), { buttons:
|
|
98
|
-
}, K = (s,
|
|
99
|
-
|
|
100
|
-
}, Wa = (s,
|
|
101
|
-
|
|
102
|
-
}, Ka = (s,
|
|
103
|
-
switch (
|
|
96
|
+
}), a === 0 || c < a ? t.push(p) : n.push(p);
|
|
97
|
+
}), { buttons: t, menus: n };
|
|
98
|
+
}, K = (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, Ya = (s, a) => {
|
|
99
|
+
a.reload.value = !0;
|
|
100
|
+
}, Wa = (s, a) => {
|
|
101
|
+
a.searchBar.value = !a.searchBar.value;
|
|
102
|
+
}, Ka = (s, a) => {
|
|
103
|
+
switch (a.tableSize.value) {
|
|
104
104
|
case "large":
|
|
105
|
-
|
|
105
|
+
a.tableSize.value = "middle";
|
|
106
106
|
break;
|
|
107
107
|
case "middle":
|
|
108
|
-
|
|
108
|
+
a.tableSize.value = "small";
|
|
109
109
|
break;
|
|
110
110
|
case "small":
|
|
111
|
-
|
|
111
|
+
a.tableSize.value = "large";
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
-
}, ja = (s,
|
|
115
|
-
|
|
116
|
-
}, Ha = (s,
|
|
117
|
-
|
|
118
|
-
}, Ie = (s,
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
(!s.confirm || n) && s.click && (
|
|
122
|
-
}, Qa = (s,
|
|
123
|
-
|
|
114
|
+
}, ja = (s, a) => {
|
|
115
|
+
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
116
|
+
}, Ha = (s, a) => {
|
|
117
|
+
a.rowExpand.value = !a.rowExpand.value;
|
|
118
|
+
}, Ie = (s, a) => {
|
|
119
|
+
a.selectable.value = !a.selectable.value;
|
|
120
|
+
}, V = (s, a, e, t, n) => {
|
|
121
|
+
(!s.confirm || n) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)), qa(s);
|
|
122
|
+
}, Qa = (s, a) => {
|
|
123
|
+
a.selectable.value = !a.selectable.value;
|
|
124
124
|
}, je = () => {
|
|
125
125
|
const s = me();
|
|
126
126
|
s.setFullscreen(!s.fullscreen);
|
|
127
|
-
}, qa = (s,
|
|
127
|
+
}, qa = (s, a) => {
|
|
128
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
|
-
}, Ga = (s,
|
|
130
|
-
|
|
129
|
+
}, Ga = (s, a) => {
|
|
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: Ya
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
key: "Query",
|
|
@@ -214,8 +214,8 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
214
214
|
}
|
|
215
215
|
], Ja = (s) => {
|
|
216
216
|
if (!s.tools || s.tools.length > 0) {
|
|
217
|
-
const
|
|
218
|
-
return s.tools ?
|
|
217
|
+
const a = [];
|
|
218
|
+
return s.tools ? a.push(...s.tools) : a.push(...De), { tools: _e(De, 0, a).buttons };
|
|
219
219
|
}
|
|
220
220
|
return {
|
|
221
221
|
tools: []
|
|
@@ -226,60 +226,60 @@ class He {
|
|
|
226
226
|
/**
|
|
227
227
|
* 设置缓存数据(带服务器时间)
|
|
228
228
|
*/
|
|
229
|
-
static setWithServerTime(
|
|
229
|
+
static setWithServerTime(a, e, t) {
|
|
230
230
|
const n = {
|
|
231
231
|
data: e,
|
|
232
|
-
lastTime:
|
|
232
|
+
lastTime: t
|
|
233
233
|
};
|
|
234
|
-
re.set({ key:
|
|
234
|
+
re.set({ key: a, storage: "local" }, n);
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* 设置缓存数据
|
|
238
238
|
*/
|
|
239
|
-
static setData(
|
|
240
|
-
re.set({ key:
|
|
239
|
+
static setData(a, e) {
|
|
240
|
+
re.set({ key: a, storage: "local" }, e);
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
243
|
* 获取缓存数据
|
|
244
244
|
*/
|
|
245
|
-
static getData(
|
|
246
|
-
const e = re.get({ key:
|
|
245
|
+
static getData(a) {
|
|
246
|
+
const e = re.get({ key: a, storage: "local" });
|
|
247
247
|
return e && He.isTimedData(e) ? e.data : e ?? null;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* 清除缓存
|
|
251
251
|
*/
|
|
252
|
-
static remove(
|
|
253
|
-
re.remove({ key:
|
|
252
|
+
static remove(a) {
|
|
253
|
+
re.remove({ key: a, storage: "local" });
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
|
|
257
257
|
*/
|
|
258
|
-
static clearByPrefix(
|
|
258
|
+
static clearByPrefix(a) {
|
|
259
259
|
for (let e = 0; e < localStorage.length; e++) {
|
|
260
|
-
const
|
|
261
|
-
|
|
260
|
+
const t = localStorage.key(e);
|
|
261
|
+
t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
265
|
* 清理所有缓存
|
|
266
266
|
*/
|
|
267
267
|
static clearAll() {
|
|
268
|
-
for (let
|
|
269
|
-
const e = localStorage.key(
|
|
268
|
+
for (let a = localStorage.length - 1; a >= 0; a--) {
|
|
269
|
+
const e = localStorage.key(a);
|
|
270
270
|
e && e.startsWith("frontCache::") && localStorage.removeItem(e);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
274
|
* 判断是否是带时间戳的数据
|
|
275
275
|
*/
|
|
276
|
-
static isTimedData(
|
|
277
|
-
return
|
|
276
|
+
static isTimedData(a) {
|
|
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 Be(
|
|
283
283
|
{
|
|
284
284
|
api: "PLATFORM_API",
|
|
285
285
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -287,10 +287,10 @@ async function qt() {
|
|
|
287
287
|
},
|
|
288
288
|
{}
|
|
289
289
|
);
|
|
290
|
-
if ((s == null ? void 0 : s.status) ===
|
|
291
|
-
const
|
|
292
|
-
Object.keys(
|
|
293
|
-
const
|
|
290
|
+
if ((s == null ? void 0 : s.status) === Oe.SUCCESS) {
|
|
291
|
+
const a = s.data;
|
|
292
|
+
Object.keys(a).forEach((e) => {
|
|
293
|
+
const t = a[e];
|
|
294
294
|
["local", "session"].forEach((i) => {
|
|
295
295
|
const c = i === "local" ? localStorage : sessionStorage;
|
|
296
296
|
for (let p = 0; p < c.length; p++) {
|
|
@@ -298,7 +298,7 @@ async function qt() {
|
|
|
298
298
|
if (d && d.endsWith(e))
|
|
299
299
|
try {
|
|
300
300
|
const o = JSON.parse(c.getItem(d));
|
|
301
|
-
o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !==
|
|
301
|
+
o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== t && c.removeItem(d);
|
|
302
302
|
} catch {
|
|
303
303
|
continue;
|
|
304
304
|
}
|
|
@@ -310,8 +310,8 @@ async function qt() {
|
|
|
310
310
|
console.error("检查缓存更新失败", s);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
const
|
|
314
|
-
const e = await Ke(s,
|
|
313
|
+
const qt = async (s, a) => {
|
|
314
|
+
const e = await Ke(s, a);
|
|
315
315
|
if (e.success)
|
|
316
316
|
return {
|
|
317
317
|
blobUrl: e.blobUrl,
|
|
@@ -320,15 +320,15 @@ const Gt = async (s, t) => {
|
|
|
320
320
|
// 不再返回blob对象,使用URL即可
|
|
321
321
|
};
|
|
322
322
|
throw new Error(e.error || "CSV转Excel失败");
|
|
323
|
-
},
|
|
323
|
+
}, Gt = async (s, a) => {
|
|
324
324
|
try {
|
|
325
|
-
const
|
|
325
|
+
const t = new TextDecoder("utf-8").decode(s), n = await Ke(t, a);
|
|
326
326
|
return {
|
|
327
327
|
success: n.success,
|
|
328
328
|
blobUrl: n.blobUrl,
|
|
329
329
|
fileName: n.fileName,
|
|
330
330
|
error: n.error,
|
|
331
|
-
csvContent:
|
|
331
|
+
csvContent: t
|
|
332
332
|
// 保留原始CSV内容
|
|
333
333
|
};
|
|
334
334
|
} catch (e) {
|
|
@@ -337,87 +337,88 @@ const Gt = async (s, t) => {
|
|
|
337
337
|
error: e instanceof Error ? e.message : "未知错误"
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
},
|
|
340
|
+
}, Jt = async (s, a, e) => {
|
|
341
341
|
try {
|
|
342
|
-
const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c =
|
|
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) => {
|
|
346
346
|
const u = { ...v };
|
|
347
|
-
return c.forEach((
|
|
348
|
-
const
|
|
349
|
-
|
|
347
|
+
return c.forEach((h) => {
|
|
348
|
+
const y = h.dataIndex || h.key;
|
|
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
|
-
} catch (
|
|
354
|
-
console.error("导出失败:",
|
|
353
|
+
} catch (t) {
|
|
354
|
+
console.error("导出失败:", t), he.error("文件导出失败,请稍后重试");
|
|
355
355
|
}
|
|
356
356
|
}, Qe = (s) => {
|
|
357
|
-
const
|
|
358
|
-
return s.replace(
|
|
359
|
-
},
|
|
357
|
+
const a = /\{([^}]+)\}/g;
|
|
358
|
+
return s.replace(a, (e, t) => fe().format(t));
|
|
359
|
+
}, Xt = async (s, a, e, t) => {
|
|
360
360
|
try {
|
|
361
|
-
const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), p =
|
|
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
365
|
let o = e.page, f = e.gridQuery;
|
|
366
|
-
return
|
|
367
|
-
if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) ===
|
|
368
|
-
const u = r.data.map((
|
|
369
|
-
const _ = { ...
|
|
366
|
+
return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Be(t, f).then((r) => {
|
|
367
|
+
if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Oe.SUCCESS && r.data) {
|
|
368
|
+
const u = r.data.map((O) => {
|
|
369
|
+
const _ = { ...O };
|
|
370
370
|
return p.forEach((E) => {
|
|
371
371
|
const R = E.dataIndex || E.key;
|
|
372
|
-
R && E.customRender && (_[R] = E.customRender(
|
|
372
|
+
R && E.customRender && (_[R] = E.customRender(O[R], O));
|
|
373
373
|
}), _;
|
|
374
|
-
}),
|
|
375
|
-
We(
|
|
374
|
+
}), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
|
|
375
|
+
We(I, c);
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
} catch (n) {
|
|
379
379
|
console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
|
|
380
380
|
}
|
|
381
|
-
},
|
|
381
|
+
}, Zt = /* @__PURE__ */ C({
|
|
382
382
|
__name: "fullscreen",
|
|
383
383
|
setup(s) {
|
|
384
|
-
const
|
|
385
|
-
return (e,
|
|
384
|
+
const a = me();
|
|
385
|
+
return (e, t) => (m(), b(U, {
|
|
386
386
|
onClick: ae(l(je), ["stop"]),
|
|
387
|
-
icon: l(
|
|
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
|
-
}), Za = { class: "ml-2" }, et = /* @__PURE__ */
|
|
391
|
+
}), Za = { class: "ml-2" }, et = /* @__PURE__ */ C({
|
|
392
392
|
inheritAttrs: !1,
|
|
393
393
|
__name: "helper",
|
|
394
394
|
props: {
|
|
395
395
|
text: {},
|
|
396
|
-
maxWidth: {}
|
|
396
|
+
maxWidth: {},
|
|
397
|
+
size: {}
|
|
397
398
|
},
|
|
398
399
|
setup(s) {
|
|
399
|
-
const
|
|
400
|
-
return (e,
|
|
401
|
-
content:
|
|
402
|
-
|
|
400
|
+
const a = X();
|
|
401
|
+
return (e, t) => (m(), b(l(Sa), { placement: "topRight" }, {
|
|
402
|
+
content: g(() => [
|
|
403
|
+
D(e.$slots, "default", {}, () => [
|
|
403
404
|
$("div", {
|
|
404
405
|
class: "text-[14px]",
|
|
405
406
|
style: ue({ maxWidth: e.maxWidth })
|
|
406
407
|
}, P(e.text), 5)
|
|
407
408
|
])
|
|
408
409
|
]),
|
|
409
|
-
default:
|
|
410
|
+
default: g(() => [
|
|
410
411
|
$("span", Za, [
|
|
411
|
-
|
|
412
|
+
w(U, F({
|
|
412
413
|
icon: "icon-question-circle",
|
|
413
|
-
class: "text-[#888] w-
|
|
414
|
-
}, l(
|
|
414
|
+
class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
|
|
415
|
+
}, l(a)), null, 16, ["class"])
|
|
415
416
|
])
|
|
416
417
|
]),
|
|
417
418
|
_: 3
|
|
418
419
|
}));
|
|
419
420
|
}
|
|
420
|
-
}),
|
|
421
|
+
}), el = /* @__PURE__ */ C({
|
|
421
422
|
__name: "layoutIcon",
|
|
422
423
|
props: {
|
|
423
424
|
icon: {
|
|
@@ -428,20 +429,20 @@ const Gt = async (s, t) => {
|
|
|
428
429
|
}
|
|
429
430
|
},
|
|
430
431
|
setup(s) {
|
|
431
|
-
const
|
|
432
|
+
const a = s, t = Xe({
|
|
432
433
|
iconUrl: `${ba.MICROLAYOUT_ICONS}`,
|
|
433
434
|
monoColor: !0,
|
|
434
|
-
icon:
|
|
435
|
-
icons:
|
|
435
|
+
icon: a.icon,
|
|
436
|
+
icons: a.icons
|
|
436
437
|
});
|
|
437
|
-
return (n, i) => s.icon || s.icons ? (m(), b(l(
|
|
438
|
+
return (n, i) => s.icon || s.icons ? (m(), b(l(t), F({
|
|
438
439
|
key: 0,
|
|
439
440
|
icon: s.icon,
|
|
440
441
|
icons: s.icons,
|
|
441
442
|
class: ["align-middle"]
|
|
442
|
-
}, n.$attrs), null, 16, ["icon", "icons"])) :
|
|
443
|
+
}, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
443
444
|
}
|
|
444
|
-
}), at = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" },
|
|
445
|
+
}), at = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, al = /* @__PURE__ */ C({
|
|
445
446
|
__name: "index",
|
|
446
447
|
props: {
|
|
447
448
|
saveText: {},
|
|
@@ -452,14 +453,14 @@ const Gt = async (s, t) => {
|
|
|
452
453
|
drawerSaveAs: { type: Function }
|
|
453
454
|
},
|
|
454
455
|
setup(s) {
|
|
455
|
-
const { useToken:
|
|
456
|
+
const { useToken: a } = Le, { token: e } = a(), t = x(!1), n = s, i = n.editorCtrl;
|
|
456
457
|
ge(j.EditorControl, i), T(
|
|
457
458
|
() => i.visible.value,
|
|
458
459
|
(o) => {
|
|
459
|
-
|
|
460
|
+
t.value = o ?? !1;
|
|
460
461
|
}
|
|
461
|
-
),
|
|
462
|
-
|
|
462
|
+
), Y(() => {
|
|
463
|
+
t.value = i.visible.value ?? !1;
|
|
463
464
|
});
|
|
464
465
|
const c = () => {
|
|
465
466
|
n.drawerSave ? n.drawerSave() : i && Ee(i);
|
|
@@ -469,8 +470,8 @@ const Gt = async (s, t) => {
|
|
|
469
470
|
ea(i);
|
|
470
471
|
};
|
|
471
472
|
return (o, f) => (m(), b(l(Ca), {
|
|
472
|
-
open:
|
|
473
|
-
"onUpdate:open": f[0] || (f[0] = (r) =>
|
|
473
|
+
open: t.value,
|
|
474
|
+
"onUpdate:open": f[0] || (f[0] = (r) => t.value = r),
|
|
474
475
|
"get-container": !1,
|
|
475
476
|
closable: !1,
|
|
476
477
|
"header-style": {
|
|
@@ -491,9 +492,9 @@ const Gt = async (s, t) => {
|
|
|
491
492
|
width: "420px",
|
|
492
493
|
onClose: d
|
|
493
494
|
}, {
|
|
494
|
-
extra:
|
|
495
|
+
extra: g(() => [
|
|
495
496
|
$("div", at, [
|
|
496
|
-
|
|
497
|
+
w(l(U), {
|
|
497
498
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
498
499
|
icon: "icon-new",
|
|
499
500
|
angle: 45,
|
|
@@ -505,43 +506,43 @@ const Gt = async (s, t) => {
|
|
|
505
506
|
})
|
|
506
507
|
])
|
|
507
508
|
]),
|
|
508
|
-
default:
|
|
509
|
-
|
|
509
|
+
default: g(() => [
|
|
510
|
+
D(o.$slots, "default")
|
|
510
511
|
]),
|
|
511
|
-
footer:
|
|
512
|
-
|
|
513
|
-
default:
|
|
514
|
-
o.cancelText !== "" ? (m(), b(l(
|
|
512
|
+
footer: g(() => [
|
|
513
|
+
w(l(te), null, {
|
|
514
|
+
default: g(() => [
|
|
515
|
+
o.cancelText !== "" ? (m(), b(l(A), {
|
|
515
516
|
key: 0,
|
|
516
517
|
onClick: d
|
|
517
518
|
}, {
|
|
518
|
-
default:
|
|
519
|
+
default: g(() => [
|
|
519
520
|
M(P(o.cancelText ?? "取消"), 1)
|
|
520
521
|
]),
|
|
521
522
|
_: 1
|
|
522
|
-
})) :
|
|
523
|
-
o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(
|
|
523
|
+
})) : k("", !0),
|
|
524
|
+
o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(A), {
|
|
524
525
|
key: 1,
|
|
525
526
|
onClick: p,
|
|
526
527
|
type: "primary",
|
|
527
528
|
loading: l(i).isFormSaving.value
|
|
528
529
|
}, {
|
|
529
|
-
default:
|
|
530
|
+
default: g(() => [
|
|
530
531
|
M(P(o.saveAsText ?? "另存为"), 1)
|
|
531
532
|
]),
|
|
532
533
|
_: 1
|
|
533
|
-
}, 8, ["loading"])) :
|
|
534
|
-
o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(
|
|
534
|
+
}, 8, ["loading"])) : k("", !0),
|
|
535
|
+
o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
|
|
535
536
|
key: 2,
|
|
536
537
|
onClick: c,
|
|
537
538
|
type: "primary",
|
|
538
539
|
loading: l(i).isFormSaving.value
|
|
539
540
|
}, {
|
|
540
|
-
default:
|
|
541
|
+
default: g(() => [
|
|
541
542
|
M(P(o.saveText ?? "保存"), 1)
|
|
542
543
|
]),
|
|
543
544
|
_: 1
|
|
544
|
-
}, 8, ["loading"])) :
|
|
545
|
+
}, 8, ["loading"])) : k("", !0)
|
|
545
546
|
]),
|
|
546
547
|
_: 1
|
|
547
548
|
})
|
|
@@ -549,7 +550,7 @@ const Gt = async (s, t) => {
|
|
|
549
550
|
_: 3
|
|
550
551
|
}, 8, ["open", "header-style"]));
|
|
551
552
|
}
|
|
552
|
-
}),
|
|
553
|
+
}), tl = /* @__PURE__ */ C({
|
|
553
554
|
__name: "index",
|
|
554
555
|
props: {
|
|
555
556
|
labelWidth: {},
|
|
@@ -557,21 +558,21 @@ const Gt = async (s, t) => {
|
|
|
557
558
|
editorCtrl: {}
|
|
558
559
|
},
|
|
559
560
|
setup(s) {
|
|
560
|
-
const
|
|
561
|
-
return ge(j.LabelWidth,
|
|
561
|
+
const a = s, e = a.editorCtrl ?? ne(j.EditorControl, void 0);
|
|
562
|
+
return ge(j.LabelWidth, a.labelWidth), (t, n) => {
|
|
562
563
|
const i = le("submit");
|
|
563
|
-
return H((m(), b(l(
|
|
564
|
-
"label-col": { flex:
|
|
564
|
+
return H((m(), b(l(ze), {
|
|
565
|
+
"label-col": { flex: a.labelWidth ?? "85px" },
|
|
565
566
|
"wrapper-col": {
|
|
566
|
-
flex:
|
|
567
|
+
flex: a.wrapperWidth ?? "1 0 280px"
|
|
567
568
|
},
|
|
568
569
|
style: {
|
|
569
570
|
display: "flex",
|
|
570
571
|
flexWrap: "wrap"
|
|
571
572
|
}
|
|
572
573
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
|
|
574
|
+
default: g(() => [
|
|
575
|
+
D(t.$slots, "default")
|
|
575
576
|
]),
|
|
576
577
|
_: 3
|
|
577
578
|
}, 8, ["label-col", "wrapper-col"])), [
|
|
@@ -584,9 +585,7 @@ const Gt = async (s, t) => {
|
|
|
584
585
|
]);
|
|
585
586
|
};
|
|
586
587
|
}
|
|
587
|
-
}), tt = {
|
|
588
|
-
class: /* @__PURE__ */ N(["relative mb-1"])
|
|
589
|
-
}, lt = { class: "flex-grow" }, st = { class: "w-8 mt-[-2px]" }, sl = /* @__PURE__ */ S({
|
|
588
|
+
}), tt = { class: "flex-grow" }, lt = { class: "w-8 mt-[-2px]" }, ll = /* @__PURE__ */ C({
|
|
590
589
|
inheritAttrs: !1,
|
|
591
590
|
__name: "formItem",
|
|
592
591
|
props: {
|
|
@@ -594,10 +593,11 @@ const Gt = async (s, t) => {
|
|
|
594
593
|
rule: {},
|
|
595
594
|
helper: {},
|
|
596
595
|
width: {},
|
|
597
|
-
nextLine: { type: Boolean }
|
|
596
|
+
nextLine: { type: Boolean },
|
|
597
|
+
bottomMargin: {}
|
|
598
598
|
},
|
|
599
599
|
setup(s) {
|
|
600
|
-
const
|
|
600
|
+
const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Pe(a, t), c = x(!1);
|
|
601
601
|
setTimeout(() => {
|
|
602
602
|
c.value = !0;
|
|
603
603
|
}, 30);
|
|
@@ -608,61 +608,61 @@ const Gt = async (s, t) => {
|
|
|
608
608
|
return o.length === 1 ? f[r] : p(v, f[r].fields);
|
|
609
609
|
}, d = J(() => {
|
|
610
610
|
var f;
|
|
611
|
-
if (!
|
|
611
|
+
if (!a.rule)
|
|
612
612
|
return !1;
|
|
613
|
-
const o = p(
|
|
614
|
-
return o ? o.required ?? !0 : (Ta.error(`"${
|
|
613
|
+
const o = p(a.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
|
|
614
|
+
return o ? o.required ?? !0 : (Ta.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
|
|
615
615
|
});
|
|
616
|
-
return (o, f) => (m(),
|
|
617
|
-
|
|
616
|
+
return (o, f) => (m(), S("div", {
|
|
617
|
+
class: N(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
|
|
618
|
+
}, [
|
|
619
|
+
c.value ? (m(), b(l(Ue), F({
|
|
618
620
|
key: 0,
|
|
619
621
|
required: d.value,
|
|
620
|
-
class: "relative"
|
|
621
|
-
}, l(e), {
|
|
622
|
-
|
|
623
|
-
}), {
|
|
624
|
-
label: h(() => [
|
|
622
|
+
class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
|
|
623
|
+
}, l(e)), {
|
|
624
|
+
label: g(() => [
|
|
625
625
|
$("span", {
|
|
626
626
|
class: N([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
627
627
|
}, P(o.label), 3)
|
|
628
628
|
]),
|
|
629
|
-
default:
|
|
630
|
-
o.nextLine ?
|
|
629
|
+
default: g(() => [
|
|
630
|
+
o.nextLine ? k("", !0) : (m(), S("div", {
|
|
631
631
|
key: 0,
|
|
632
632
|
class: N(["flex items-center", o.width ? o.width : "w-full"])
|
|
633
633
|
}, [
|
|
634
|
-
$("div",
|
|
635
|
-
|
|
634
|
+
$("div", tt, [
|
|
635
|
+
D(o.$slots, "default")
|
|
636
636
|
]),
|
|
637
|
-
$("div",
|
|
638
|
-
|
|
637
|
+
$("div", lt, [
|
|
638
|
+
D(o.$slots, "helper", {}, () => [
|
|
639
639
|
o.helper ? (m(), b(l(et), {
|
|
640
640
|
key: 0,
|
|
641
641
|
text: o.helper
|
|
642
|
-
}, null, 8, ["text"])) :
|
|
642
|
+
}, null, 8, ["text"])) : k("", !0)
|
|
643
643
|
])
|
|
644
644
|
])
|
|
645
645
|
], 2))
|
|
646
646
|
]),
|
|
647
647
|
_: 3
|
|
648
|
-
}, 16, ["required", "class"])) :
|
|
649
|
-
o.nextLine ? (m(),
|
|
648
|
+
}, 16, ["required", "class"])) : k("", !0),
|
|
649
|
+
o.nextLine ? (m(), S("div", {
|
|
650
650
|
key: 1,
|
|
651
651
|
class: N(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
|
|
652
652
|
}, [
|
|
653
|
-
|
|
654
|
-
], 2)) :
|
|
655
|
-
l(i).errClass ? (m(),
|
|
653
|
+
D(o.$slots, "default")
|
|
654
|
+
], 2)) : k("", !0),
|
|
655
|
+
l(i).errClass ? (m(), S("span", {
|
|
656
656
|
key: 2,
|
|
657
657
|
style: ue({ left: o.nextLine ? "2px" : l(n) }),
|
|
658
658
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
659
|
-
}, P(l(i).msg), 5)) :
|
|
660
|
-
]));
|
|
659
|
+
}, P(l(i).msg), 5)) : k("", !0)
|
|
660
|
+
], 2));
|
|
661
661
|
}
|
|
662
|
-
}),
|
|
662
|
+
}), st = { class: "w-1/3 relative mb-1" }, rt = { class: "flex items-center w-[90%]" }, ot = { class: "flex-grow pl-1" }, nt = {
|
|
663
663
|
key: 0,
|
|
664
664
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
665
|
-
}, pe = /* @__PURE__ */
|
|
665
|
+
}, pe = /* @__PURE__ */ C({
|
|
666
666
|
inheritAttrs: !1,
|
|
667
667
|
__name: "searchItem",
|
|
668
668
|
props: {
|
|
@@ -671,19 +671,19 @@ const Gt = async (s, t) => {
|
|
|
671
671
|
rule: {}
|
|
672
672
|
},
|
|
673
673
|
setup(s) {
|
|
674
|
-
const
|
|
675
|
-
return (i, c) => (m(),
|
|
676
|
-
|
|
674
|
+
const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Pe(a, t);
|
|
675
|
+
return (i, c) => (m(), S("div", st, [
|
|
676
|
+
w(l(Ue), F({
|
|
677
677
|
required: i.rule !== void 0,
|
|
678
678
|
class: "w-[90%] relative"
|
|
679
679
|
}, l(e), {
|
|
680
680
|
class: [i.rule ? "" : "mb-3", i.width],
|
|
681
681
|
labelCol: { span: 6 }
|
|
682
|
-
}),
|
|
683
|
-
default:
|
|
684
|
-
$("div",
|
|
685
|
-
$("div",
|
|
686
|
-
|
|
682
|
+
}), Ae({
|
|
683
|
+
default: g(() => [
|
|
684
|
+
$("div", rt, [
|
|
685
|
+
$("div", ot, [
|
|
686
|
+
D(i.$slots, "default")
|
|
687
687
|
])
|
|
688
688
|
])
|
|
689
689
|
]),
|
|
@@ -691,7 +691,7 @@ const Gt = async (s, t) => {
|
|
|
691
691
|
}, [
|
|
692
692
|
i.label ? {
|
|
693
693
|
name: "label",
|
|
694
|
-
fn:
|
|
694
|
+
fn: g(() => [
|
|
695
695
|
$("span", {
|
|
696
696
|
class: N([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
697
697
|
}, P(i.label), 3)
|
|
@@ -699,10 +699,10 @@ const Gt = async (s, t) => {
|
|
|
699
699
|
key: "0"
|
|
700
700
|
} : void 0
|
|
701
701
|
]), 1040, ["required", "class"]),
|
|
702
|
-
l(n).msg ? (m(),
|
|
702
|
+
l(n).msg ? (m(), S("span", nt, P(l(n).msg), 1)) : k("", !0)
|
|
703
703
|
]));
|
|
704
704
|
}
|
|
705
|
-
}),
|
|
705
|
+
}), sl = /* @__PURE__ */ C({
|
|
706
706
|
__name: "index",
|
|
707
707
|
props: {
|
|
708
708
|
search: {},
|
|
@@ -710,12 +710,12 @@ const Gt = async (s, t) => {
|
|
|
710
710
|
likeFields: {}
|
|
711
711
|
},
|
|
712
712
|
emits: ["update:search"],
|
|
713
|
-
setup(s, { emit:
|
|
714
|
-
const e = s,
|
|
715
|
-
let
|
|
716
|
-
for (let
|
|
717
|
-
typeof u[
|
|
718
|
-
return
|
|
713
|
+
setup(s, { emit: a }) {
|
|
714
|
+
const e = s, t = a, n = x(0), i = x(0), c = x(0), p = (u) => {
|
|
715
|
+
let h = 0;
|
|
716
|
+
for (let y = 0; y < u.length; y++)
|
|
717
|
+
typeof u[y].type == "object" && h++;
|
|
718
|
+
return h;
|
|
719
719
|
}, d = xa(), o = () => {
|
|
720
720
|
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;
|
|
721
721
|
};
|
|
@@ -726,40 +726,40 @@ const Gt = async (s, t) => {
|
|
|
726
726
|
}
|
|
727
727
|
);
|
|
728
728
|
const f = JSON.parse(JSON.stringify(e.search));
|
|
729
|
-
|
|
730
|
-
var
|
|
729
|
+
Y(() => {
|
|
730
|
+
var h;
|
|
731
731
|
o();
|
|
732
732
|
let u = { ...e.search };
|
|
733
733
|
e.gridCtrl.gridQuery = {
|
|
734
734
|
...e.gridCtrl.gridQuery,
|
|
735
735
|
Query: {
|
|
736
|
-
...(
|
|
736
|
+
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
737
737
|
...u
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
});
|
|
741
741
|
const r = () => {
|
|
742
|
-
var
|
|
742
|
+
var h;
|
|
743
743
|
let u = { ...e.search };
|
|
744
744
|
if (e.likeFields)
|
|
745
|
-
for (const
|
|
746
|
-
u[
|
|
745
|
+
for (const y of e.likeFields)
|
|
746
|
+
u[y] && (u[y] = { $like: "%" + u[y] + "%" });
|
|
747
747
|
e.gridCtrl.gridQuery = {
|
|
748
748
|
...e.gridCtrl.gridQuery,
|
|
749
749
|
Query: {
|
|
750
|
-
...(
|
|
750
|
+
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
751
751
|
...u
|
|
752
752
|
}
|
|
753
753
|
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
|
|
754
754
|
}, v = () => {
|
|
755
755
|
const u = JSON.parse(JSON.stringify(f));
|
|
756
|
-
for (const
|
|
757
|
-
u[
|
|
758
|
-
|
|
756
|
+
for (const h in e.search)
|
|
757
|
+
u[h] === void 0 && (u[h] = void 0);
|
|
758
|
+
t("update:search", u);
|
|
759
759
|
};
|
|
760
|
-
return (u,
|
|
761
|
-
const
|
|
762
|
-
return i.value + c.value > 0 ? H((m(), b(l(
|
|
760
|
+
return (u, h) => {
|
|
761
|
+
const y = le("submit");
|
|
762
|
+
return i.value + c.value > 0 ? H((m(), b(l(ze), {
|
|
763
763
|
key: 0,
|
|
764
764
|
"label-col": { flex: "60px" },
|
|
765
765
|
style: {
|
|
@@ -768,41 +768,41 @@ const Gt = async (s, t) => {
|
|
|
768
768
|
},
|
|
769
769
|
class: "flex mb-[10px]"
|
|
770
770
|
}, {
|
|
771
|
-
default:
|
|
772
|
-
|
|
773
|
-
u.gridCtrl.searchBar ?
|
|
771
|
+
default: g(() => [
|
|
772
|
+
D(u.$slots, "default"),
|
|
773
|
+
u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
|
|
774
774
|
n.value >= 1 ? (m(), b(pe, {
|
|
775
775
|
key: 1,
|
|
776
776
|
class: "w-1/3"
|
|
777
|
-
})) :
|
|
777
|
+
})) : k("", !0),
|
|
778
778
|
n.value >= 2 ? (m(), b(pe, {
|
|
779
779
|
key: 2,
|
|
780
780
|
class: "w-1/3"
|
|
781
|
-
})) :
|
|
781
|
+
})) : k("", !0),
|
|
782
782
|
i.value || u.gridCtrl.searchBar ? (m(), b(pe, {
|
|
783
783
|
key: 3,
|
|
784
784
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
785
785
|
"wrapper-col": { flex: "auto" }
|
|
786
786
|
}, {
|
|
787
|
-
default:
|
|
788
|
-
|
|
789
|
-
default:
|
|
790
|
-
|
|
787
|
+
default: g(() => [
|
|
788
|
+
w(l(te), null, {
|
|
789
|
+
default: g(() => [
|
|
790
|
+
w(l(A), {
|
|
791
791
|
type: "primary",
|
|
792
792
|
onClick: r,
|
|
793
793
|
icon: "icon-search"
|
|
794
794
|
}, {
|
|
795
|
-
default:
|
|
795
|
+
default: g(() => h[0] || (h[0] = [
|
|
796
796
|
M("搜索")
|
|
797
797
|
])),
|
|
798
798
|
_: 1,
|
|
799
799
|
__: [0]
|
|
800
800
|
}),
|
|
801
|
-
|
|
801
|
+
w(l(A), {
|
|
802
802
|
onClick: v,
|
|
803
803
|
icon: "icon-reset"
|
|
804
804
|
}, {
|
|
805
|
-
default:
|
|
805
|
+
default: g(() => h[1] || (h[1] = [
|
|
806
806
|
M("重置")
|
|
807
807
|
])),
|
|
808
808
|
_: 1,
|
|
@@ -813,22 +813,22 @@ const Gt = async (s, t) => {
|
|
|
813
813
|
})
|
|
814
814
|
]),
|
|
815
815
|
_: 1
|
|
816
|
-
})) :
|
|
816
|
+
})) : k("", !0)
|
|
817
817
|
]),
|
|
818
818
|
_: 3
|
|
819
819
|
})), [
|
|
820
|
-
[
|
|
821
|
-
]) :
|
|
820
|
+
[y, r]
|
|
821
|
+
]) : k("", !0);
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
|
-
}),
|
|
824
|
+
}), it = /* @__PURE__ */ C({
|
|
825
825
|
__name: "tableOperate",
|
|
826
826
|
props: {
|
|
827
827
|
record: {},
|
|
828
828
|
gridCtrl: {}
|
|
829
829
|
},
|
|
830
830
|
setup(s) {
|
|
831
|
-
const
|
|
831
|
+
const a = s, e = a.gridCtrl, t = J(() => ce.currentRoute.value.path), n = [
|
|
832
832
|
{
|
|
833
833
|
key: "Edit",
|
|
834
834
|
label: "编辑",
|
|
@@ -836,7 +836,7 @@ const Gt = async (s, t) => {
|
|
|
836
836
|
visible: !0,
|
|
837
837
|
role: ["Super", "Admin"],
|
|
838
838
|
permit: ":edit",
|
|
839
|
-
click: () => aa(e,
|
|
839
|
+
click: () => aa(e, a.record)
|
|
840
840
|
},
|
|
841
841
|
{
|
|
842
842
|
key: "Delete",
|
|
@@ -848,19 +848,19 @@ const Gt = async (s, t) => {
|
|
|
848
848
|
permit: ":delete",
|
|
849
849
|
confirm: !0,
|
|
850
850
|
confirmText: "是否删除此记录?",
|
|
851
|
-
click: () => ta(e,
|
|
851
|
+
click: () => ta(e, a.record)
|
|
852
852
|
}
|
|
853
853
|
], { buttons: i, menus: c } = _e(n, 0, e.operates), p = (d) => {
|
|
854
854
|
if (typeof d.disabled == "boolean")
|
|
855
855
|
return d.disabled;
|
|
856
856
|
if (typeof d.disabled == "function")
|
|
857
|
-
return K(d,
|
|
858
|
-
if (
|
|
857
|
+
return K(d, a.record) ?? !1;
|
|
858
|
+
if (a.record.hasOwnProperty("Enabled"))
|
|
859
859
|
switch (d.key) {
|
|
860
860
|
case "Edit":
|
|
861
|
-
return !
|
|
861
|
+
return !a.record.Enabled;
|
|
862
862
|
case "Delete":
|
|
863
|
-
return !!
|
|
863
|
+
return !!a.record.Enabled;
|
|
864
864
|
}
|
|
865
865
|
return !1;
|
|
866
866
|
};
|
|
@@ -871,13 +871,13 @@ const Gt = async (s, t) => {
|
|
|
871
871
|
fontSize: 13
|
|
872
872
|
}
|
|
873
873
|
} }, {
|
|
874
|
-
default:
|
|
875
|
-
|
|
876
|
-
default:
|
|
877
|
-
(m(!0),
|
|
874
|
+
default: g(() => [
|
|
875
|
+
w(l(te), null, {
|
|
876
|
+
default: g(() => [
|
|
877
|
+
(m(!0), S(B, null, z(l(i), (r) => (m(), S(B, {
|
|
878
878
|
key: r.key
|
|
879
879
|
}, [
|
|
880
|
-
l(G)(r,
|
|
880
|
+
l(G)(r, a.record) ? (m(), b(l($a), {
|
|
881
881
|
key: 0,
|
|
882
882
|
disabled: p(r) || !r.confirm,
|
|
883
883
|
cancelText: "否",
|
|
@@ -885,72 +885,72 @@ const Gt = async (s, t) => {
|
|
|
885
885
|
title: r.confirmText,
|
|
886
886
|
okButtonProps: { size: "small" },
|
|
887
887
|
cancelButtonProps: { size: "small" },
|
|
888
|
-
onConfirm: (v) => l(
|
|
888
|
+
onConfirm: (v) => l(V)(r, l(e).page, l(e), a.record, !0)
|
|
889
889
|
}, {
|
|
890
|
-
default:
|
|
891
|
-
l(G)(r,
|
|
890
|
+
default: g(() => [
|
|
891
|
+
l(G)(r, a.record) ? H((m(), b(l(Ve), {
|
|
892
892
|
key: r.key,
|
|
893
893
|
type: r.type ?? "text",
|
|
894
894
|
danger: r.danger,
|
|
895
895
|
disabled: p(r),
|
|
896
|
-
onClick: (v) => l(
|
|
896
|
+
onClick: (v) => l(V)(r, l(e).page, l(e), a.record),
|
|
897
897
|
size: "small",
|
|
898
898
|
style: ue({
|
|
899
899
|
padding: r.type ?? "0px 4px"
|
|
900
900
|
})
|
|
901
901
|
}, {
|
|
902
|
-
default:
|
|
902
|
+
default: g(() => [
|
|
903
903
|
M(P(r.label), 1)
|
|
904
904
|
]),
|
|
905
905
|
_: 2
|
|
906
906
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
907
|
-
[f, { url:
|
|
908
|
-
]) :
|
|
907
|
+
[f, { url: t.value, role: r.role, permit: r.permit }]
|
|
908
|
+
]) : k("", !0)
|
|
909
909
|
]),
|
|
910
910
|
_: 2
|
|
911
|
-
}, 1032, ["disabled", "title", "onConfirm"])) :
|
|
911
|
+
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
912
912
|
], 64))), 128)),
|
|
913
913
|
d.record.Enabled == 1 ? (m(), b(l(Ce), {
|
|
914
914
|
key: 0,
|
|
915
915
|
autoInsertSpaceInButton: !1
|
|
916
916
|
}, {
|
|
917
|
-
default:
|
|
917
|
+
default: g(() => [
|
|
918
918
|
l(c).length > 0 ? (m(), b(l(Ia), {
|
|
919
919
|
key: 0,
|
|
920
920
|
size: "small"
|
|
921
921
|
}, {
|
|
922
|
-
overlay:
|
|
923
|
-
|
|
924
|
-
default:
|
|
925
|
-
(m(!0),
|
|
922
|
+
overlay: g(() => [
|
|
923
|
+
w(l(be), null, {
|
|
924
|
+
default: g(() => [
|
|
925
|
+
(m(!0), S(B, null, z(l(c), (r) => (m(), S(B, {
|
|
926
926
|
key: r.key
|
|
927
927
|
}, [
|
|
928
|
-
l(G)(r,
|
|
928
|
+
l(G)(r, a.record) ? H((m(), b(l(xe), {
|
|
929
929
|
key: 0,
|
|
930
930
|
disabled: p(r),
|
|
931
|
-
onClick: (v) => l(
|
|
931
|
+
onClick: (v) => l(V)(r, l(e).page, l(e), a.record)
|
|
932
932
|
}, {
|
|
933
|
-
default:
|
|
933
|
+
default: g(() => [
|
|
934
934
|
M(P(r.label), 1)
|
|
935
935
|
]),
|
|
936
936
|
_: 2
|
|
937
937
|
}, 1032, ["disabled", "onClick"])), [
|
|
938
|
-
[f, { url:
|
|
939
|
-
]) :
|
|
938
|
+
[f, { url: t.value, role: r.role, permit: r.permit }]
|
|
939
|
+
]) : k("", !0)
|
|
940
940
|
], 64))), 128))
|
|
941
941
|
]),
|
|
942
942
|
_: 1
|
|
943
943
|
})
|
|
944
944
|
]),
|
|
945
|
-
default:
|
|
945
|
+
default: g(() => [
|
|
946
946
|
o[0] || (o[0] = M(" 更多 "))
|
|
947
947
|
]),
|
|
948
948
|
_: 1,
|
|
949
949
|
__: [0]
|
|
950
|
-
})) :
|
|
950
|
+
})) : k("", !0)
|
|
951
951
|
]),
|
|
952
952
|
_: 1
|
|
953
|
-
})) :
|
|
953
|
+
})) : k("", !0)
|
|
954
954
|
]),
|
|
955
955
|
_: 1
|
|
956
956
|
})
|
|
@@ -959,17 +959,17 @@ const Gt = async (s, t) => {
|
|
|
959
959
|
});
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
}),
|
|
962
|
+
}), ct = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ut = /* @__PURE__ */ C({
|
|
963
963
|
__name: "icontool",
|
|
964
964
|
props: {
|
|
965
965
|
gridCtrl: {}
|
|
966
966
|
},
|
|
967
967
|
setup(s) {
|
|
968
|
-
const
|
|
968
|
+
const a = s, e = a.gridCtrl, { tools: t } = Ja(a.gridCtrl), n = me();
|
|
969
969
|
T(
|
|
970
970
|
() => e.selectable.value,
|
|
971
971
|
(p) => {
|
|
972
|
-
W(
|
|
972
|
+
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);
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
975
|
const i = x([]);
|
|
@@ -983,8 +983,8 @@ const Gt = async (s, t) => {
|
|
|
983
983
|
const c = () => {
|
|
984
984
|
e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
|
|
985
985
|
};
|
|
986
|
-
return (p, d) => (m(),
|
|
987
|
-
(m(!0),
|
|
986
|
+
return (p, d) => (m(), S("div", ct, [
|
|
987
|
+
(m(!0), S(B, null, z(l(t), (o, f) => (m(), S(B, {
|
|
988
988
|
key: o.key
|
|
989
989
|
}, [
|
|
990
990
|
l(G)(o) && o.dropdown ? (m(), b(l(ve), {
|
|
@@ -992,11 +992,11 @@ const Gt = async (s, t) => {
|
|
|
992
992
|
placement: "bottomRight",
|
|
993
993
|
class: "p-0 rounded-none"
|
|
994
994
|
}, {
|
|
995
|
-
overlay:
|
|
995
|
+
overlay: g(() => [
|
|
996
996
|
$("div", {
|
|
997
997
|
class: N(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
|
|
998
998
|
}, [
|
|
999
|
-
o.dropdown === "headset" ? (m(), b(l(
|
|
999
|
+
o.dropdown === "headset" ? (m(), b(l(za), {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
modelValue: i.value,
|
|
1002
1002
|
"onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
|
|
@@ -1004,15 +1004,15 @@ const Gt = async (s, t) => {
|
|
|
1004
1004
|
onEnd: c,
|
|
1005
1005
|
handle: ".drag-handle"
|
|
1006
1006
|
}, {
|
|
1007
|
-
default:
|
|
1008
|
-
(m(!0),
|
|
1007
|
+
default: g(() => [
|
|
1008
|
+
(m(!0), S(B, null, z(i.value, (r) => (m(), S("div", {
|
|
1009
1009
|
key: r.name,
|
|
1010
1010
|
onClick: d[0] || (d[0] = ae(() => {
|
|
1011
1011
|
}, ["stop"])),
|
|
1012
1012
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
1013
1013
|
}, [
|
|
1014
1014
|
d[2] || (d[2] = $("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
1015
|
-
|
|
1015
|
+
w(l(Da), {
|
|
1016
1016
|
checked: r.visible !== !1,
|
|
1017
1017
|
onChange: ae(
|
|
1018
1018
|
(v) => {
|
|
@@ -1022,7 +1022,7 @@ const Gt = async (s, t) => {
|
|
|
1022
1022
|
),
|
|
1023
1023
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
1024
1024
|
}, {
|
|
1025
|
-
default:
|
|
1025
|
+
default: g(() => [
|
|
1026
1026
|
M(P(r.title), 1)
|
|
1027
1027
|
]),
|
|
1028
1028
|
_: 2
|
|
@@ -1030,22 +1030,22 @@ const Gt = async (s, t) => {
|
|
|
1030
1030
|
]))), 128))
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 1
|
|
1033
|
-
}, 8, ["modelValue"])) :
|
|
1033
|
+
}, 8, ["modelValue"])) : k("", !0)
|
|
1034
1034
|
], 2)
|
|
1035
1035
|
]),
|
|
1036
|
-
default:
|
|
1037
|
-
|
|
1036
|
+
default: g(() => [
|
|
1037
|
+
w(l(A), {
|
|
1038
1038
|
class: N([
|
|
1039
1039
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1040
1040
|
f === 0 ? "rounded-l-[5px]" : "",
|
|
1041
|
-
f === l(
|
|
1041
|
+
f === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1042
1042
|
]),
|
|
1043
1043
|
disabled: l(K)(o),
|
|
1044
1044
|
tiptext: o.label,
|
|
1045
|
-
onClick: (r) => l(
|
|
1045
|
+
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1046
1046
|
}, {
|
|
1047
|
-
default:
|
|
1048
|
-
|
|
1047
|
+
default: g(() => [
|
|
1048
|
+
w(l(U), {
|
|
1049
1049
|
icon: o.icon,
|
|
1050
1050
|
class: "w-[18px] h-[18.5px]",
|
|
1051
1051
|
clickable: ""
|
|
@@ -1055,19 +1055,19 @@ const Gt = async (s, t) => {
|
|
|
1055
1055
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
1056
1056
|
]),
|
|
1057
1057
|
_: 2
|
|
1058
|
-
}, 1024)) : !o.children && l(G)(o) ? (m(), b(l(
|
|
1058
|
+
}, 1024)) : !o.children && l(G)(o) ? (m(), b(l(A), {
|
|
1059
1059
|
key: 1,
|
|
1060
1060
|
class: N([
|
|
1061
1061
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1062
1062
|
f === 0 ? "rounded-l-[5px]" : "",
|
|
1063
|
-
f === l(
|
|
1063
|
+
f === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1064
1064
|
]),
|
|
1065
1065
|
disabled: l(K)(o),
|
|
1066
1066
|
tiptext: o.label,
|
|
1067
|
-
onClick: (r) => l(
|
|
1067
|
+
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1068
1068
|
}, {
|
|
1069
|
-
default:
|
|
1070
|
-
|
|
1069
|
+
default: g(() => [
|
|
1070
|
+
w(l(U), {
|
|
1071
1071
|
icon: o.icon,
|
|
1072
1072
|
class: "w-[18px] h-[18.5px]",
|
|
1073
1073
|
clickable: ""
|
|
@@ -1079,14 +1079,14 @@ const Gt = async (s, t) => {
|
|
|
1079
1079
|
placement: "bottomRight",
|
|
1080
1080
|
class: "p-0 rounded-none"
|
|
1081
1081
|
}, {
|
|
1082
|
-
overlay:
|
|
1083
|
-
|
|
1084
|
-
default:
|
|
1085
|
-
(m(!0),
|
|
1082
|
+
overlay: g(() => [
|
|
1083
|
+
w(l(be), null, {
|
|
1084
|
+
default: g(() => [
|
|
1085
|
+
(m(!0), S(B, null, z(o.children, (r) => (m(), b(l(xe), {
|
|
1086
1086
|
key: r.key,
|
|
1087
1087
|
disabled: l(K)(r)
|
|
1088
1088
|
}, {
|
|
1089
|
-
default:
|
|
1089
|
+
default: g(() => [
|
|
1090
1090
|
M(P(r.label), 1)
|
|
1091
1091
|
]),
|
|
1092
1092
|
_: 2
|
|
@@ -1095,8 +1095,8 @@ const Gt = async (s, t) => {
|
|
|
1095
1095
|
_: 2
|
|
1096
1096
|
}, 1024)
|
|
1097
1097
|
]),
|
|
1098
|
-
default:
|
|
1099
|
-
|
|
1098
|
+
default: g(() => [
|
|
1099
|
+
w(l(A), {
|
|
1100
1100
|
class: N([
|
|
1101
1101
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1102
1102
|
f === 0 ? "rounded-l-[5px]" : ""
|
|
@@ -1105,10 +1105,10 @@ const Gt = async (s, t) => {
|
|
|
1105
1105
|
tiptext: o.label,
|
|
1106
1106
|
icon: o.icon,
|
|
1107
1107
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
1108
|
-
onClick: (r) => l(
|
|
1108
|
+
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1109
1109
|
}, {
|
|
1110
|
-
default:
|
|
1111
|
-
|
|
1110
|
+
default: g(() => [
|
|
1111
|
+
w(l(U), {
|
|
1112
1112
|
icon: "icon-down-arrow",
|
|
1113
1113
|
class: "w-[12px] h-[12px]"
|
|
1114
1114
|
})
|
|
@@ -1117,18 +1117,18 @@ const Gt = async (s, t) => {
|
|
|
1117
1117
|
}, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
|
|
1118
1118
|
]),
|
|
1119
1119
|
_: 2
|
|
1120
|
-
}, 1024)) :
|
|
1120
|
+
}, 1024)) : k("", !0)
|
|
1121
1121
|
], 64))), 128))
|
|
1122
1122
|
]));
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1124
|
+
}), dt = { class: "flex justify-between mb-[10px]" }, pt = { key: 1 }, ft = 3, vt = /* @__PURE__ */ C({
|
|
1125
1125
|
__name: "index",
|
|
1126
1126
|
props: {
|
|
1127
1127
|
gridCtrl: {},
|
|
1128
1128
|
editorCtrl: {}
|
|
1129
1129
|
},
|
|
1130
1130
|
setup(s) {
|
|
1131
|
-
const
|
|
1131
|
+
const a = s, e = a.gridCtrl, t = e.page, n = a.editorCtrl, i = J(() => ce.currentRoute.value.path), c = [
|
|
1132
1132
|
{
|
|
1133
1133
|
key: "New",
|
|
1134
1134
|
label: "新增",
|
|
@@ -1150,7 +1150,7 @@ const Gt = async (s, t) => {
|
|
|
1150
1150
|
var r;
|
|
1151
1151
|
const { buttons: o, menus: f } = _e(
|
|
1152
1152
|
c,
|
|
1153
|
-
e.flat !== void 0 ? e.flat :
|
|
1153
|
+
e.flat !== void 0 ? e.flat : ft,
|
|
1154
1154
|
(r = e.buttons) == null ? void 0 : r.value
|
|
1155
1155
|
);
|
|
1156
1156
|
p.value.splice(0, p.value.length, ...o), d.value.splice(0, d.value.length, ...f);
|
|
@@ -1161,18 +1161,18 @@ const Gt = async (s, t) => {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
), (o, f) => {
|
|
1163
1163
|
const r = le("auth");
|
|
1164
|
-
return m(),
|
|
1165
|
-
|
|
1166
|
-
default:
|
|
1167
|
-
(m(!0),
|
|
1164
|
+
return m(), S("div", dt, [
|
|
1165
|
+
w(l(te), null, {
|
|
1166
|
+
default: g(() => [
|
|
1167
|
+
(m(!0), S(B, null, z(p.value, (v) => H((m(), b(l(A), {
|
|
1168
1168
|
key: v.key,
|
|
1169
1169
|
type: v.type,
|
|
1170
1170
|
danger: v.danger,
|
|
1171
1171
|
disabled: l(K)(v),
|
|
1172
1172
|
icon: v.icon,
|
|
1173
|
-
onClick: (u) => l(
|
|
1173
|
+
onClick: (u) => l(V)(v, l(t), l(e))
|
|
1174
1174
|
}, {
|
|
1175
|
-
default:
|
|
1175
|
+
default: g(() => [
|
|
1176
1176
|
M(P(v.label), 1)
|
|
1177
1177
|
]),
|
|
1178
1178
|
_: 2
|
|
@@ -1180,15 +1180,15 @@ const Gt = async (s, t) => {
|
|
|
1180
1180
|
[r, { url: i.value, role: v.role, permit: v.permit }]
|
|
1181
1181
|
])), 128)),
|
|
1182
1182
|
d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
|
|
1183
|
-
overlay:
|
|
1184
|
-
|
|
1185
|
-
default:
|
|
1186
|
-
(m(!0),
|
|
1183
|
+
overlay: g(() => [
|
|
1184
|
+
w(l(be), null, {
|
|
1185
|
+
default: g(() => [
|
|
1186
|
+
(m(!0), S(B, null, z(d.value, (v) => H((m(), b(l(xe), {
|
|
1187
1187
|
key: v.key,
|
|
1188
1188
|
disabled: l(K)(v),
|
|
1189
|
-
onClick: (u) => l(
|
|
1189
|
+
onClick: (u) => l(V)(v, l(t), l(e))
|
|
1190
1190
|
}, {
|
|
1191
|
-
default:
|
|
1191
|
+
default: g(() => [
|
|
1192
1192
|
M(P(v.label), 1)
|
|
1193
1193
|
]),
|
|
1194
1194
|
_: 2
|
|
@@ -1199,9 +1199,9 @@ const Gt = async (s, t) => {
|
|
|
1199
1199
|
_: 1
|
|
1200
1200
|
})
|
|
1201
1201
|
]),
|
|
1202
|
-
default:
|
|
1203
|
-
|
|
1204
|
-
default:
|
|
1202
|
+
default: g(() => [
|
|
1203
|
+
w(l(A), null, {
|
|
1204
|
+
default: g(() => f[0] || (f[0] = [
|
|
1205
1205
|
M(" 更多操作 ")
|
|
1206
1206
|
])),
|
|
1207
1207
|
_: 1,
|
|
@@ -1209,21 +1209,21 @@ const Gt = async (s, t) => {
|
|
|
1209
1209
|
})
|
|
1210
1210
|
]),
|
|
1211
1211
|
_: 1
|
|
1212
|
-
})) :
|
|
1213
|
-
p.value.length === 0 && d.value.length === 0 ? (m(),
|
|
1212
|
+
})) : k("", !0),
|
|
1213
|
+
p.value.length === 0 && d.value.length === 0 ? (m(), S("span", pt)) : k("", !0)
|
|
1214
1214
|
]),
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
}),
|
|
1217
|
-
|
|
1218
|
-
default:
|
|
1219
|
-
(m(), b(_a(
|
|
1217
|
+
w(l(te), { class: "mr-1" }, {
|
|
1218
|
+
default: g(() => [
|
|
1219
|
+
(m(), b(_a(ut), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
|
|
1220
1220
|
]),
|
|
1221
1221
|
_: 1
|
|
1222
1222
|
})
|
|
1223
1223
|
]);
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
}),
|
|
1226
|
+
}), rl = /* @__PURE__ */ C({
|
|
1227
1227
|
inheritAttrs: !1,
|
|
1228
1228
|
__name: "index",
|
|
1229
1229
|
props: {
|
|
@@ -1236,122 +1236,122 @@ const Gt = async (s, t) => {
|
|
|
1236
1236
|
statusDisabled: {}
|
|
1237
1237
|
},
|
|
1238
1238
|
setup(s) {
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1241
|
-
const i = x(
|
|
1239
|
+
const a = s, e = X(), t = a.gridCtrl, n = J(() => ce.currentRoute.value.path);
|
|
1240
|
+
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
1241
|
+
const i = x(t.pageSize.value), c = x(t.pageNo.value), p = x([]), d = x({
|
|
1242
1242
|
total: 0,
|
|
1243
1243
|
current: 1,
|
|
1244
1244
|
pageSize: i.value,
|
|
1245
1245
|
showTotal: (u) => `共 ${u} 条记录`,
|
|
1246
|
-
onChange: (u,
|
|
1247
|
-
d.value !== !1 && (d.value.current = u, d.value.pageSize =
|
|
1246
|
+
onChange: (u, h) => {
|
|
1247
|
+
d.value !== !1 && (d.value.current = u, d.value.pageSize = h), i.value = h, c.value = u, t && (t.pageNo.value = u, t.pageSize.value = h, t.remotePage && ke(t));
|
|
1248
1248
|
},
|
|
1249
|
-
...
|
|
1249
|
+
...a.pagination === !1 ? {} : a.pagination
|
|
1250
1250
|
});
|
|
1251
|
-
|
|
1252
|
-
() =>
|
|
1251
|
+
a.pagination === !1 && (d.value = !1), T(
|
|
1252
|
+
() => t.tableData.value,
|
|
1253
1253
|
(u) => {
|
|
1254
|
-
u && (p.value = u, d.value !== !1 && (d.value.total =
|
|
1254
|
+
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));
|
|
1255
1255
|
},
|
|
1256
1256
|
{ immediate: !0 }
|
|
1257
1257
|
), T(
|
|
1258
|
-
() =>
|
|
1258
|
+
() => a.tableData,
|
|
1259
1259
|
(u) => {
|
|
1260
|
-
u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current =
|
|
1260
|
+
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));
|
|
1261
1261
|
},
|
|
1262
1262
|
{ immediate: !0 }
|
|
1263
1263
|
);
|
|
1264
|
-
const o = x(
|
|
1265
|
-
onChange: (u,
|
|
1266
|
-
|
|
1264
|
+
const o = x(t.columns.value), f = {
|
|
1265
|
+
onChange: (u, h) => {
|
|
1266
|
+
t && (t.selectKeys.value = u, t.selectRows.value = h);
|
|
1267
1267
|
},
|
|
1268
1268
|
columnWidth: "30px",
|
|
1269
1269
|
getCheckboxProps: (u) => ({
|
|
1270
1270
|
disabled: u.Enabled === 0
|
|
1271
1271
|
}),
|
|
1272
|
-
...
|
|
1272
|
+
...a.rowSelection
|
|
1273
1273
|
}, r = x(f);
|
|
1274
1274
|
T(
|
|
1275
|
-
() =>
|
|
1275
|
+
() => t.selectable.value,
|
|
1276
1276
|
(u) => {
|
|
1277
|
-
|
|
1277
|
+
t && (r.value = u ? f : void 0);
|
|
1278
1278
|
},
|
|
1279
1279
|
{ immediate: !0 }
|
|
1280
1280
|
), T(
|
|
1281
|
-
() =>
|
|
1281
|
+
() => t.columns.value,
|
|
1282
1282
|
() => {
|
|
1283
|
-
o.value = Fe(
|
|
1283
|
+
o.value = Fe(t.columns.value);
|
|
1284
1284
|
},
|
|
1285
1285
|
{ deep: !0, immediate: !0 }
|
|
1286
1286
|
);
|
|
1287
1287
|
const v = x(!1);
|
|
1288
1288
|
return ya(() => {
|
|
1289
|
-
v.value &&
|
|
1290
|
-
}),
|
|
1291
|
-
ge(j.GridControl,
|
|
1289
|
+
v.value && t && (t.reload.value = !0);
|
|
1290
|
+
}), Y(async () => {
|
|
1291
|
+
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 sa(t)), setTimeout(() => {
|
|
1292
1292
|
v.value = !0;
|
|
1293
1293
|
}, 50);
|
|
1294
|
-
}), (u,
|
|
1295
|
-
var
|
|
1296
|
-
const
|
|
1297
|
-
return m(),
|
|
1298
|
-
(
|
|
1294
|
+
}), (u, h) => {
|
|
1295
|
+
var I, O;
|
|
1296
|
+
const y = le("auth");
|
|
1297
|
+
return m(), S(B, null, [
|
|
1298
|
+
(I = l(t).buttons) != null && I.value.length || (O = l(t).tools) != null && O.length ? (m(), b(vt, {
|
|
1299
1299
|
key: 0,
|
|
1300
|
-
"grid-ctrl": l(
|
|
1301
|
-
"editor-ctrl": l(
|
|
1302
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
1303
|
-
v.value ? (m(), b(l(
|
|
1300
|
+
"grid-ctrl": l(t),
|
|
1301
|
+
"editor-ctrl": l(t).editor
|
|
1302
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
1303
|
+
v.value ? (m(), b(l(Ye), F({
|
|
1304
1304
|
key: 1,
|
|
1305
1305
|
class: "w-full",
|
|
1306
|
-
"row-key":
|
|
1306
|
+
"row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
|
|
1307
1307
|
"data-source": p.value,
|
|
1308
|
-
loading: l(
|
|
1308
|
+
loading: l(t).isGridLoading.value,
|
|
1309
1309
|
columns: o.value,
|
|
1310
1310
|
pagination: d.value,
|
|
1311
1311
|
"row-selection": r.value,
|
|
1312
|
-
scroll:
|
|
1313
|
-
size: l(
|
|
1312
|
+
scroll: a.scroll || { x: 700, y: 1e3 },
|
|
1313
|
+
size: l(t).tableSize.value,
|
|
1314
1314
|
bordered: ""
|
|
1315
1315
|
}, l(e)), {
|
|
1316
|
-
bodyCell:
|
|
1316
|
+
bodyCell: g((_) => {
|
|
1317
1317
|
var E, R;
|
|
1318
1318
|
return [
|
|
1319
|
-
|
|
1319
|
+
D(u.$slots, "bodyCell", {
|
|
1320
1320
|
column: _ == null ? void 0 : _.column,
|
|
1321
1321
|
record: _ == null ? void 0 : _.record
|
|
1322
1322
|
}),
|
|
1323
|
-
l(
|
|
1323
|
+
l(t) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? H((m(), b(ra, {
|
|
1324
1324
|
key: 0,
|
|
1325
1325
|
checked: _.record.Enabled,
|
|
1326
1326
|
"onUpdate:checked": (se) => _.record.Enabled = se,
|
|
1327
1327
|
disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
|
|
1328
1328
|
data: l(Ne).EnableDisable,
|
|
1329
|
-
onClick: (se) => l(oa)(l(
|
|
1329
|
+
onClick: (se) => l(oa)(l(t), _.record),
|
|
1330
1330
|
class: N([
|
|
1331
1331
|
"w-[58px]",
|
|
1332
1332
|
u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
|
|
1333
1333
|
]),
|
|
1334
1334
|
loading: _ == null ? void 0 : _.record.isLoading
|
|
1335
1335
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
1336
|
-
[
|
|
1337
|
-
]) :
|
|
1338
|
-
l(
|
|
1336
|
+
[y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1337
|
+
]) : k("", !0),
|
|
1338
|
+
l(t) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? D(u.$slots, "operate", {
|
|
1339
1339
|
key: 1,
|
|
1340
1340
|
record: _ == null ? void 0 : _.record
|
|
1341
1341
|
}, () => [
|
|
1342
|
-
|
|
1342
|
+
w(it, {
|
|
1343
1343
|
record: _ == null ? void 0 : _.record,
|
|
1344
|
-
"grid-ctrl": l(
|
|
1344
|
+
"grid-ctrl": l(t)
|
|
1345
1345
|
}, null, 8, ["record", "grid-ctrl"])
|
|
1346
|
-
]) :
|
|
1346
|
+
]) : k("", !0)
|
|
1347
1347
|
];
|
|
1348
1348
|
}),
|
|
1349
1349
|
_: 3
|
|
1350
|
-
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) :
|
|
1350
|
+
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
|
|
1351
1351
|
], 64);
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
|
-
}),
|
|
1354
|
+
}), mt = { class: "flex items-center gap-1" }, ht = { class: "text-nowrap" }, ol = /* @__PURE__ */ C({
|
|
1355
1355
|
__name: "index",
|
|
1356
1356
|
props: {
|
|
1357
1357
|
treeCtrl: {},
|
|
@@ -1359,15 +1359,15 @@ const Gt = async (s, t) => {
|
|
|
1359
1359
|
expandedKeys: {}
|
|
1360
1360
|
},
|
|
1361
1361
|
emits: ["select", "update:selectedKeys"],
|
|
1362
|
-
setup(s, { emit:
|
|
1363
|
-
const e = s,
|
|
1362
|
+
setup(s, { emit: a }) {
|
|
1363
|
+
const e = s, t = X(), n = e.treeCtrl, i = x([]);
|
|
1364
1364
|
T(
|
|
1365
1365
|
() => n.data.value,
|
|
1366
1366
|
(f) => {
|
|
1367
1367
|
f && (i.value = n.fieldMap ? oe(n.fieldMap, f) : f, o(e.selectedKeys ?? []));
|
|
1368
1368
|
}
|
|
1369
1369
|
);
|
|
1370
|
-
const c =
|
|
1370
|
+
const c = a, p = x([]);
|
|
1371
1371
|
T(
|
|
1372
1372
|
() => e.selectedKeys,
|
|
1373
1373
|
(f) => {
|
|
@@ -1386,7 +1386,7 @@ const Gt = async (s, t) => {
|
|
|
1386
1386
|
const o = (f, r) => {
|
|
1387
1387
|
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);
|
|
1388
1388
|
};
|
|
1389
|
-
return
|
|
1389
|
+
return Y(() => {
|
|
1390
1390
|
n.fieldMap || (n.fieldMap = {
|
|
1391
1391
|
label: "Name",
|
|
1392
1392
|
key: "Id",
|
|
@@ -1402,41 +1402,41 @@ const Gt = async (s, t) => {
|
|
|
1402
1402
|
"selected-keys": p.value,
|
|
1403
1403
|
loading: l(n).isTreeLoading,
|
|
1404
1404
|
onSelect: o
|
|
1405
|
-
}, l(
|
|
1406
|
-
title:
|
|
1407
|
-
|
|
1405
|
+
}, l(t)), {
|
|
1406
|
+
title: g(({ key: v, label: u, icon: h }) => [
|
|
1407
|
+
D(f.$slots, "title", {
|
|
1408
1408
|
label: u,
|
|
1409
1409
|
key: v,
|
|
1410
|
-
icon:
|
|
1410
|
+
icon: h
|
|
1411
1411
|
}, () => [
|
|
1412
|
-
$("div",
|
|
1413
|
-
|
|
1414
|
-
$("span",
|
|
1412
|
+
$("div", mt, [
|
|
1413
|
+
w(l(U), { icon: h }, null, 8, ["icon"]),
|
|
1414
|
+
$("span", ht, P(u), 1)
|
|
1415
1415
|
])
|
|
1416
1416
|
])
|
|
1417
1417
|
]),
|
|
1418
1418
|
_: 3
|
|
1419
1419
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1420
1420
|
}
|
|
1421
|
-
}),
|
|
1421
|
+
}), nl = /* @__PURE__ */ q(na, [["__scopeId", "data-v-668fc090"]]), gt = { class: "relative w-[248px] max-w-[248px]" }, bt = {
|
|
1422
1422
|
key: 0,
|
|
1423
1423
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1424
|
-
},
|
|
1424
|
+
}, xt = /* @__PURE__ */ C({
|
|
1425
1425
|
inheritAttrs: !1,
|
|
1426
1426
|
__name: "index",
|
|
1427
1427
|
props: ia,
|
|
1428
1428
|
emits: ["change", "update:labels", "update:value"],
|
|
1429
|
-
setup(s, { emit:
|
|
1430
|
-
var
|
|
1431
|
-
const e = s,
|
|
1429
|
+
setup(s, { emit: a }) {
|
|
1430
|
+
var y, I, O;
|
|
1431
|
+
const e = s, t = X(), n = L(), i = ca(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
|
|
1432
1432
|
c.inputFactory = ka(n);
|
|
1433
1433
|
const p = x({
|
|
1434
1434
|
...c == null ? void 0 : c.url,
|
|
1435
|
-
url: ((
|
|
1436
|
-
fieldMap: (c == null ? void 0 : c.fieldMap) || ((
|
|
1437
|
-
params: (c == null ? void 0 : c.params) || ((
|
|
1435
|
+
url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
|
|
1436
|
+
fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
|
|
1437
|
+
params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
|
|
1438
1438
|
loadingText: !1
|
|
1439
|
-
}), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(
|
|
1439
|
+
}), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(t.placeholder);
|
|
1440
1440
|
T(
|
|
1441
1441
|
() => p.value.loading,
|
|
1442
1442
|
(_) => {
|
|
@@ -1444,7 +1444,7 @@ const Gt = async (s, t) => {
|
|
|
1444
1444
|
},
|
|
1445
1445
|
{ immediate: !0 }
|
|
1446
1446
|
);
|
|
1447
|
-
const v =
|
|
1447
|
+
const v = a;
|
|
1448
1448
|
n.inputEmit = v;
|
|
1449
1449
|
const u = x((c == null ? void 0 : c.options.value) || []);
|
|
1450
1450
|
c && T(
|
|
@@ -1454,7 +1454,7 @@ const Gt = async (s, t) => {
|
|
|
1454
1454
|
},
|
|
1455
1455
|
{ immediate: !0, deep: !0 }
|
|
1456
1456
|
);
|
|
1457
|
-
const
|
|
1457
|
+
const h = (_, E) => {
|
|
1458
1458
|
if (!E || E.length === 0) {
|
|
1459
1459
|
v("update:labels", []), v("update:value", []);
|
|
1460
1460
|
return;
|
|
@@ -1462,7 +1462,7 @@ const Gt = async (s, t) => {
|
|
|
1462
1462
|
const R = E.map((Ge) => Ge.value), se = fa(c, e, R), qe = va(se);
|
|
1463
1463
|
v("update:labels", qe), v("update:value", R), o != null && o.value.errClass && d && Q(d);
|
|
1464
1464
|
};
|
|
1465
|
-
return
|
|
1465
|
+
return Y(() => {
|
|
1466
1466
|
p.value && !p.value.fieldMap && (p.value.fieldMap = {
|
|
1467
1467
|
title: "Name",
|
|
1468
1468
|
label: "Name",
|
|
@@ -1473,32 +1473,32 @@ const Gt = async (s, t) => {
|
|
|
1473
1473
|
c && da(c, e);
|
|
1474
1474
|
}), (_, E) => {
|
|
1475
1475
|
var R;
|
|
1476
|
-
return m(),
|
|
1477
|
-
u.value.length ?
|
|
1478
|
-
|
|
1476
|
+
return m(), S("div", gt, [
|
|
1477
|
+
u.value.length ? k("", !0) : (m(), S("div", bt, [
|
|
1478
|
+
w(l(pa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1479
1479
|
E[0] || (E[0] = $("span", null, "数据加载中...", -1))
|
|
1480
1480
|
])),
|
|
1481
|
-
|
|
1481
|
+
w(l(Pa), F({
|
|
1482
1482
|
options: u.value,
|
|
1483
1483
|
class: [(R = l(o)) == null ? void 0 : R.errClass],
|
|
1484
1484
|
"allow-clear": !0,
|
|
1485
1485
|
placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
|
|
1486
|
-
onChange:
|
|
1487
|
-
}, l(
|
|
1486
|
+
onChange: h
|
|
1487
|
+
}, l(t)), null, 16, ["options", "class", "placeholder"])
|
|
1488
1488
|
]);
|
|
1489
1489
|
};
|
|
1490
1490
|
}
|
|
1491
|
-
}),
|
|
1491
|
+
}), il = /* @__PURE__ */ q(xt, [["__scopeId", "data-v-7f0def6e"]]), cl = /* @__PURE__ */ q(ma, [["__scopeId", "data-v-64193a41"]]);
|
|
1492
1492
|
function ie() {
|
|
1493
1493
|
return ie = Object.assign ? Object.assign.bind() : function(s) {
|
|
1494
|
-
for (var
|
|
1495
|
-
var e = arguments[
|
|
1496
|
-
for (var
|
|
1494
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
1495
|
+
var e = arguments[a];
|
|
1496
|
+
for (var t in e) ({}).hasOwnProperty.call(e, t) && (s[t] = e[t]);
|
|
1497
1497
|
}
|
|
1498
1498
|
return s;
|
|
1499
1499
|
}, ie.apply(null, arguments);
|
|
1500
1500
|
}
|
|
1501
|
-
const
|
|
1501
|
+
const _t = {
|
|
1502
1502
|
locale: "zh_CN",
|
|
1503
1503
|
today: "今天",
|
|
1504
1504
|
now: "此刻",
|
|
@@ -1525,7 +1525,7 @@ const yt = {
|
|
|
1525
1525
|
nextDecade: "下一年代",
|
|
1526
1526
|
previousCentury: "上一世纪",
|
|
1527
1527
|
nextCentury: "下一世纪"
|
|
1528
|
-
},
|
|
1528
|
+
}, yt = {
|
|
1529
1529
|
placeholder: "请选择时间",
|
|
1530
1530
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1531
1531
|
}, ye = {
|
|
@@ -1540,100 +1540,101 @@ const yt = {
|
|
|
1540
1540
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1541
1541
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1542
1542
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1543
|
-
},
|
|
1544
|
-
timePickerLocale: ie({},
|
|
1543
|
+
}, _t),
|
|
1544
|
+
timePickerLocale: ie({}, yt)
|
|
1545
1545
|
};
|
|
1546
1546
|
ye.lang.ok = "确定";
|
|
1547
|
-
const
|
|
1547
|
+
const ul = /* @__PURE__ */ C({
|
|
1548
1548
|
__name: "index",
|
|
1549
1549
|
props: {
|
|
1550
1550
|
valueFormat: {}
|
|
1551
1551
|
},
|
|
1552
1552
|
setup(s) {
|
|
1553
|
-
const
|
|
1553
|
+
const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1554
1554
|
n != null && n.value.errClass && e && Q(e);
|
|
1555
|
-
}, c = x(
|
|
1555
|
+
}, c = x(a.valueFormat ?? "YYYY-MM-DD");
|
|
1556
1556
|
return (p, d) => {
|
|
1557
1557
|
var o;
|
|
1558
1558
|
return m(), b(l(Fa), {
|
|
1559
1559
|
class: N(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1560
|
-
placeholder: "请选择" + l(
|
|
1560
|
+
placeholder: "请选择" + l(t),
|
|
1561
1561
|
locale: l(ye),
|
|
1562
1562
|
valueFormat: c.value,
|
|
1563
1563
|
onBlur: i
|
|
1564
1564
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1565
1565
|
};
|
|
1566
1566
|
}
|
|
1567
|
-
}),
|
|
1567
|
+
}), kt = /* @__PURE__ */ C({
|
|
1568
1568
|
__name: "index",
|
|
1569
1569
|
props: {
|
|
1570
|
-
value: {}
|
|
1570
|
+
value: {},
|
|
1571
|
+
undefValue: { type: Boolean, default: !1 }
|
|
1571
1572
|
},
|
|
1572
1573
|
emits: ["update:value"],
|
|
1573
|
-
setup(s, { emit:
|
|
1574
|
-
const { editorCtrl: e, labelText:
|
|
1574
|
+
setup(s, { emit: a }) {
|
|
1575
|
+
const { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1575
1576
|
n != null && n.value.errClass && e && Q(e);
|
|
1576
|
-
}, c = s, p =
|
|
1577
|
+
}, c = s, p = c.value === void 0 ? !0 : c.undefValue, d = a, o = x(c.value);
|
|
1577
1578
|
T(
|
|
1578
1579
|
() => c.value,
|
|
1579
|
-
(
|
|
1580
|
-
|
|
1580
|
+
(r) => {
|
|
1581
|
+
o.value = r;
|
|
1581
1582
|
},
|
|
1582
1583
|
{ immediate: !0 }
|
|
1583
1584
|
// 立即同步初始值
|
|
1584
1585
|
), T(
|
|
1585
|
-
() =>
|
|
1586
|
-
(
|
|
1587
|
-
if (
|
|
1588
|
-
|
|
1586
|
+
() => o.value,
|
|
1587
|
+
(r) => {
|
|
1588
|
+
if (o.value === "") {
|
|
1589
|
+
d("update:value", void 0);
|
|
1589
1590
|
return;
|
|
1590
1591
|
}
|
|
1591
|
-
|
|
1592
|
+
d("update:value", r);
|
|
1592
1593
|
}
|
|
1593
1594
|
);
|
|
1594
|
-
const
|
|
1595
|
-
|
|
1595
|
+
const f = () => {
|
|
1596
|
+
o.value === "" && (o.value = p ? void 0 : null);
|
|
1596
1597
|
};
|
|
1597
|
-
return (
|
|
1598
|
-
var
|
|
1598
|
+
return (r, v) => {
|
|
1599
|
+
var u, h;
|
|
1599
1600
|
return m(), b(l(ee), F({
|
|
1600
1601
|
class: [
|
|
1601
|
-
(
|
|
1602
|
-
((
|
|
1602
|
+
(u = l(n)) == null ? void 0 : u.errClass,
|
|
1603
|
+
((h = l(n)) == null ? void 0 : h.errClass) === "error" && !r.$slots.addonBefore && !r.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1603
1604
|
],
|
|
1604
|
-
value:
|
|
1605
|
-
"onUpdate:value":
|
|
1605
|
+
value: o.value,
|
|
1606
|
+
"onUpdate:value": v[0] || (v[0] = (y) => o.value = y),
|
|
1606
1607
|
autocomplete: "new-password",
|
|
1607
1608
|
"allow-clear": !0,
|
|
1608
|
-
placeholder: "请输入" + l(
|
|
1609
|
+
placeholder: "请输入" + l(t),
|
|
1609
1610
|
onBlur: i,
|
|
1610
|
-
onChange:
|
|
1611
|
-
},
|
|
1612
|
-
|
|
1611
|
+
onChange: f
|
|
1612
|
+
}, r.$attrs), Ae({ _: 2 }, [
|
|
1613
|
+
r.$slots.addonBefore ? {
|
|
1613
1614
|
name: "addonBefore",
|
|
1614
|
-
fn:
|
|
1615
|
-
|
|
1615
|
+
fn: g(() => [
|
|
1616
|
+
D(r.$slots, "addonBefore")
|
|
1616
1617
|
]),
|
|
1617
1618
|
key: "0"
|
|
1618
1619
|
} : void 0,
|
|
1619
|
-
|
|
1620
|
+
r.$slots.addonAfter ? {
|
|
1620
1621
|
name: "addonAfter",
|
|
1621
|
-
fn:
|
|
1622
|
-
|
|
1622
|
+
fn: g(() => [
|
|
1623
|
+
D(r.$slots, "addonAfter")
|
|
1623
1624
|
]),
|
|
1624
1625
|
key: "1"
|
|
1625
1626
|
} : void 0
|
|
1626
1627
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1627
1628
|
};
|
|
1628
1629
|
}
|
|
1629
|
-
}),
|
|
1630
|
+
}), wt = /* @__PURE__ */ C({
|
|
1630
1631
|
__name: "inputIcon",
|
|
1631
1632
|
props: {
|
|
1632
1633
|
value: {}
|
|
1633
1634
|
},
|
|
1634
1635
|
emits: ["update:value"],
|
|
1635
|
-
setup(s, { emit:
|
|
1636
|
-
const e = s,
|
|
1636
|
+
setup(s, { emit: a }) {
|
|
1637
|
+
const e = s, t = a, n = x(void 0);
|
|
1637
1638
|
return T(
|
|
1638
1639
|
() => e.value,
|
|
1639
1640
|
(i) => {
|
|
@@ -1643,14 +1644,14 @@ const dl = /* @__PURE__ */ S({
|
|
|
1643
1644
|
), T(
|
|
1644
1645
|
() => n.value,
|
|
1645
1646
|
(i) => {
|
|
1646
|
-
|
|
1647
|
+
t("update:value", i);
|
|
1647
1648
|
}
|
|
1648
|
-
), (i, c) => (m(), b(
|
|
1649
|
+
), (i, c) => (m(), b(kt, F({
|
|
1649
1650
|
value: n.value,
|
|
1650
1651
|
"onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
|
|
1651
1652
|
}, i.$attrs), {
|
|
1652
|
-
addonBefore:
|
|
1653
|
-
|
|
1653
|
+
addonBefore: g(() => [
|
|
1654
|
+
w(l(U), {
|
|
1654
1655
|
class: "!w-4 !h-4",
|
|
1655
1656
|
icon: n.value
|
|
1656
1657
|
}, null, 8, ["icon"])
|
|
@@ -1658,16 +1659,16 @@ const dl = /* @__PURE__ */ S({
|
|
|
1658
1659
|
_: 1
|
|
1659
1660
|
}, 16, ["value"]));
|
|
1660
1661
|
}
|
|
1661
|
-
}),
|
|
1662
|
+
}), dl = /* @__PURE__ */ q(wt, [["__scopeId", "data-v-358b82ef"]]), pl = /* @__PURE__ */ C({
|
|
1662
1663
|
__name: "inputPassword",
|
|
1663
1664
|
setup(s) {
|
|
1664
|
-
const { editorCtrl:
|
|
1665
|
-
|
|
1665
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1666
|
+
t != null && t.value.errClass && a && Q(a);
|
|
1666
1667
|
};
|
|
1667
1668
|
return (i, c) => {
|
|
1668
1669
|
var p;
|
|
1669
1670
|
return m(), b(l(Na), F({
|
|
1670
|
-
class: ((p = l(
|
|
1671
|
+
class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1671
1672
|
"allow-clear": !0,
|
|
1672
1673
|
autocomplete: "new-password",
|
|
1673
1674
|
placeholder: "请输入" + l(e),
|
|
@@ -1675,23 +1676,23 @@ const dl = /* @__PURE__ */ S({
|
|
|
1675
1676
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1676
1677
|
};
|
|
1677
1678
|
}
|
|
1678
|
-
}),
|
|
1679
|
+
}), fl = /* @__PURE__ */ C({
|
|
1679
1680
|
__name: "inputNumber",
|
|
1680
1681
|
setup(s) {
|
|
1681
|
-
const { editorCtrl:
|
|
1682
|
-
|
|
1682
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1683
|
+
t != null && t.value.errClass && a && Q(a);
|
|
1683
1684
|
};
|
|
1684
1685
|
return (i, c) => {
|
|
1685
1686
|
var p;
|
|
1686
1687
|
return m(), b(l(Ma), F({
|
|
1687
|
-
class: [[((p = l(
|
|
1688
|
+
class: [[((p = l(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1688
1689
|
onBlur: n,
|
|
1689
1690
|
"allow-clear": !1,
|
|
1690
1691
|
placeholder: "请输入" + l(e)
|
|
1691
1692
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1692
1693
|
};
|
|
1693
1694
|
}
|
|
1694
|
-
}),
|
|
1695
|
+
}), St = { class: "flex flex-col gap-2" }, Ct = { key: 1 }, vl = /* @__PURE__ */ C({
|
|
1695
1696
|
__name: "index",
|
|
1696
1697
|
props: {
|
|
1697
1698
|
value: {},
|
|
@@ -1701,8 +1702,8 @@ const dl = /* @__PURE__ */ S({
|
|
|
1701
1702
|
valueHolder: {}
|
|
1702
1703
|
},
|
|
1703
1704
|
emits: ["update:value"],
|
|
1704
|
-
setup(s, { emit:
|
|
1705
|
-
const e = s,
|
|
1705
|
+
setup(s, { emit: a }) {
|
|
1706
|
+
const e = s, t = a, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
|
|
1706
1707
|
let c = !1;
|
|
1707
1708
|
const p = () => {
|
|
1708
1709
|
e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
|
|
@@ -1729,7 +1730,7 @@ const dl = /* @__PURE__ */ S({
|
|
|
1729
1730
|
(v, u) => (u.field && (v[u.field] = u.value), v),
|
|
1730
1731
|
{}
|
|
1731
1732
|
);
|
|
1732
|
-
c = !0,
|
|
1733
|
+
c = !0, t("update:value", r);
|
|
1733
1734
|
}, o = () => {
|
|
1734
1735
|
i.value.push({
|
|
1735
1736
|
id: Date.now() + Math.random(),
|
|
@@ -1739,8 +1740,8 @@ const dl = /* @__PURE__ */ S({
|
|
|
1739
1740
|
}, f = () => {
|
|
1740
1741
|
d();
|
|
1741
1742
|
};
|
|
1742
|
-
return (r, v) => (m(),
|
|
1743
|
-
(m(!0),
|
|
1743
|
+
return (r, v) => (m(), S("div", St, [
|
|
1744
|
+
(m(!0), S(B, null, z(i.value, (u) => (m(), S("div", {
|
|
1744
1745
|
key: u.id,
|
|
1745
1746
|
class: "flex items-center gap-2"
|
|
1746
1747
|
}, [
|
|
@@ -1750,24 +1751,24 @@ const dl = /* @__PURE__ */ S({
|
|
|
1750
1751
|
!r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
|
|
1751
1752
|
key: 0,
|
|
1752
1753
|
value: u.field,
|
|
1753
|
-
"onUpdate:value": (
|
|
1754
|
+
"onUpdate:value": (h) => u.field = h,
|
|
1754
1755
|
title: u.text || u.field,
|
|
1755
1756
|
class: "w-full",
|
|
1756
1757
|
placeholder: u.text || r.labelHolder || "配置名",
|
|
1757
1758
|
onInput: f,
|
|
1758
1759
|
disabled: !n.value
|
|
1759
|
-
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(),
|
|
1760
|
-
|
|
1760
|
+
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", Ct, [
|
|
1761
|
+
w(l(ee), {
|
|
1761
1762
|
value: u.text,
|
|
1762
|
-
"onUpdate:value": (
|
|
1763
|
+
"onUpdate:value": (h) => u.text = h,
|
|
1763
1764
|
title: u.text,
|
|
1764
1765
|
disabled: !0,
|
|
1765
1766
|
class: "w-[100%]"
|
|
1766
1767
|
}, null, 8, ["value", "onUpdate:value", "title"]),
|
|
1767
|
-
|
|
1768
|
+
w(l(ee), {
|
|
1768
1769
|
type: "hidden",
|
|
1769
1770
|
value: u.field,
|
|
1770
|
-
"onUpdate:value": (
|
|
1771
|
+
"onUpdate:value": (h) => u.field = h
|
|
1771
1772
|
}, null, 8, ["value", "onUpdate:value"])
|
|
1772
1773
|
]))
|
|
1773
1774
|
], 2),
|
|
@@ -1775,30 +1776,30 @@ const dl = /* @__PURE__ */ S({
|
|
|
1775
1776
|
$("div", {
|
|
1776
1777
|
class: N([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
|
|
1777
1778
|
}, [
|
|
1778
|
-
|
|
1779
|
+
w(l(ee), {
|
|
1779
1780
|
value: u.value,
|
|
1780
|
-
"onUpdate:value": (
|
|
1781
|
+
"onUpdate:value": (h) => u.value = h,
|
|
1781
1782
|
placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
|
|
1782
1783
|
onInput: f,
|
|
1783
1784
|
title: u.value
|
|
1784
1785
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1785
1786
|
], 2)
|
|
1786
1787
|
]))), 128)),
|
|
1787
|
-
n.value ? (m(), b(l(
|
|
1788
|
+
n.value ? (m(), b(l(Ve), {
|
|
1788
1789
|
key: 0,
|
|
1789
1790
|
onClick: o,
|
|
1790
1791
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1791
1792
|
size: "small"
|
|
1792
1793
|
}, {
|
|
1793
|
-
default:
|
|
1794
|
+
default: g(() => v[1] || (v[1] = [
|
|
1794
1795
|
M(" 新增配置行 ")
|
|
1795
1796
|
])),
|
|
1796
1797
|
_: 1,
|
|
1797
1798
|
__: [1]
|
|
1798
|
-
})) :
|
|
1799
|
+
})) : k("", !0)
|
|
1799
1800
|
]));
|
|
1800
1801
|
}
|
|
1801
|
-
}),
|
|
1802
|
+
}), Tt = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-cf2cfa24"]]), ml = /* @__PURE__ */ C({
|
|
1802
1803
|
__name: "radioStatus",
|
|
1803
1804
|
props: {
|
|
1804
1805
|
/**
|
|
@@ -1826,13 +1827,13 @@ const dl = /* @__PURE__ */ S({
|
|
|
1826
1827
|
}
|
|
1827
1828
|
},
|
|
1828
1829
|
setup(s) {
|
|
1829
|
-
const
|
|
1830
|
-
return
|
|
1830
|
+
const a = s, e = x(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
|
|
1831
|
+
return a.all === !0 && e.value.unshift({
|
|
1831
1832
|
label: "全部",
|
|
1832
|
-
value:
|
|
1833
|
-
}), (
|
|
1833
|
+
value: a.allValue || [0, 1]
|
|
1834
|
+
}), (t, n) => (m(), b(Tt, { data: e.value }, null, 8, ["data"]));
|
|
1834
1835
|
}
|
|
1835
|
-
}),
|
|
1836
|
+
}), hl = /* @__PURE__ */ C({
|
|
1836
1837
|
__name: "index",
|
|
1837
1838
|
props: {
|
|
1838
1839
|
startDate: {},
|
|
@@ -1840,8 +1841,8 @@ const dl = /* @__PURE__ */ S({
|
|
|
1840
1841
|
valueFormat: { default: "YYYY-MM-DD" }
|
|
1841
1842
|
},
|
|
1842
1843
|
emits: ["update:startDate", "update:endDate"],
|
|
1843
|
-
setup(s, { emit:
|
|
1844
|
-
const e = s,
|
|
1844
|
+
setup(s, { emit: a }) {
|
|
1845
|
+
const e = s, t = a, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
|
|
1845
1846
|
const o = e.startDate, f = e.endDate;
|
|
1846
1847
|
if (!(!o || !f))
|
|
1847
1848
|
try {
|
|
@@ -1852,10 +1853,10 @@ const dl = /* @__PURE__ */ S({
|
|
|
1852
1853
|
}
|
|
1853
1854
|
}), d = (o, f) => {
|
|
1854
1855
|
if (!o || !f || f.length !== 2) {
|
|
1855
|
-
|
|
1856
|
+
t("update:startDate", null), t("update:endDate", null);
|
|
1856
1857
|
return;
|
|
1857
1858
|
}
|
|
1858
|
-
|
|
1859
|
+
t("update:startDate", f[0] || null), t("update:endDate", f[1] || null);
|
|
1859
1860
|
};
|
|
1860
1861
|
return (o, f) => {
|
|
1861
1862
|
var r;
|
|
@@ -1868,16 +1869,16 @@ const dl = /* @__PURE__ */ S({
|
|
|
1868
1869
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1869
1870
|
};
|
|
1870
1871
|
}
|
|
1871
|
-
}),
|
|
1872
|
+
}), gl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-8875a979"]]), bl = /* @__PURE__ */ C({
|
|
1872
1873
|
__name: "index",
|
|
1873
1874
|
setup(s) {
|
|
1874
|
-
const { editorCtrl:
|
|
1875
|
-
|
|
1875
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1876
|
+
t != null && t.value.errClass && a && Q(a);
|
|
1876
1877
|
};
|
|
1877
1878
|
return (i, c) => {
|
|
1878
1879
|
var p;
|
|
1879
|
-
return m(), b(l(
|
|
1880
|
-
class: ((p = l(
|
|
1880
|
+
return m(), b(l(Ba), F({
|
|
1881
|
+
class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1881
1882
|
"allow-clear": !0,
|
|
1882
1883
|
placeholder: "请输入" + l(e),
|
|
1883
1884
|
onBlur: n,
|
|
@@ -1888,7 +1889,7 @@ const dl = /* @__PURE__ */ S({
|
|
|
1888
1889
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1889
1890
|
};
|
|
1890
1891
|
}
|
|
1891
|
-
}),
|
|
1892
|
+
}), $t = /* @__PURE__ */ C({
|
|
1892
1893
|
__name: "index",
|
|
1893
1894
|
props: {
|
|
1894
1895
|
autoload: { type: Boolean },
|
|
@@ -1897,8 +1898,8 @@ const dl = /* @__PURE__ */ S({
|
|
|
1897
1898
|
value: {}
|
|
1898
1899
|
},
|
|
1899
1900
|
emits: ["change", "update:value"],
|
|
1900
|
-
setup(s, { emit:
|
|
1901
|
-
const e = s,
|
|
1901
|
+
setup(s, { emit: a }) {
|
|
1902
|
+
const e = s, t = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = x([]), o = x([]);
|
|
1902
1903
|
e.value && e.value.every((r) => {
|
|
1903
1904
|
o.value.push(r.toString());
|
|
1904
1905
|
}), T(
|
|
@@ -1910,13 +1911,13 @@ const dl = /* @__PURE__ */ S({
|
|
|
1910
1911
|
const f = (r) => {
|
|
1911
1912
|
p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Q(n);
|
|
1912
1913
|
};
|
|
1913
|
-
return
|
|
1914
|
-
if (
|
|
1914
|
+
return Y(async () => {
|
|
1915
|
+
if (t.value) {
|
|
1915
1916
|
const r = n == null ? void 0 : n.page;
|
|
1916
|
-
if (
|
|
1917
|
+
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) {
|
|
1917
1918
|
const v = await Re(n, {
|
|
1918
1919
|
urlKey: "list",
|
|
1919
|
-
url: { ...
|
|
1920
|
+
url: { ...t.value, url: t.value.url },
|
|
1920
1921
|
loadingText: !1,
|
|
1921
1922
|
params: e.params
|
|
1922
1923
|
});
|
|
@@ -1925,18 +1926,18 @@ const dl = /* @__PURE__ */ S({
|
|
|
1925
1926
|
}
|
|
1926
1927
|
}), (r, v) => {
|
|
1927
1928
|
var u;
|
|
1928
|
-
return m(), b(l(
|
|
1929
|
+
return m(), b(l(Oa), F({
|
|
1929
1930
|
class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1930
1931
|
placeholder: "请输入" + l(i),
|
|
1931
1932
|
targetKeys: o.value,
|
|
1932
1933
|
onChange: f
|
|
1933
1934
|
}, r.$attrs), {
|
|
1934
|
-
children:
|
|
1935
|
-
|
|
1936
|
-
direction:
|
|
1937
|
-
disabled:
|
|
1938
|
-
filteredItems:
|
|
1939
|
-
onItemSelectAll:
|
|
1935
|
+
children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: O, onItemSelect: _, selectedKeys: E }) => [
|
|
1936
|
+
D(r.$slots, "children", {
|
|
1937
|
+
direction: h,
|
|
1938
|
+
disabled: y,
|
|
1939
|
+
filteredItems: I,
|
|
1940
|
+
onItemSelectAll: O,
|
|
1940
1941
|
onItemSelect: _,
|
|
1941
1942
|
selectedKeys: E
|
|
1942
1943
|
})
|
|
@@ -1945,7 +1946,7 @@ const dl = /* @__PURE__ */ S({
|
|
|
1945
1946
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1946
1947
|
};
|
|
1947
1948
|
}
|
|
1948
|
-
}),
|
|
1949
|
+
}), xl = /* @__PURE__ */ C({
|
|
1949
1950
|
__name: "transferTable",
|
|
1950
1951
|
props: {
|
|
1951
1952
|
/**
|
|
@@ -1971,12 +1972,12 @@ const dl = /* @__PURE__ */ S({
|
|
|
1971
1972
|
}
|
|
1972
1973
|
},
|
|
1973
1974
|
emits: ["update:value"],
|
|
1974
|
-
setup(s, { emit:
|
|
1975
|
-
const e = s,
|
|
1975
|
+
setup(s, { emit: a }) {
|
|
1976
|
+
const e = s, t = a, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
|
|
1976
1977
|
T(
|
|
1977
1978
|
() => i.value,
|
|
1978
1979
|
(o) => {
|
|
1979
|
-
|
|
1980
|
+
t("update:value", o);
|
|
1980
1981
|
}
|
|
1981
1982
|
), T(
|
|
1982
1983
|
() => e.value,
|
|
@@ -1989,16 +1990,16 @@ const dl = /* @__PURE__ */ S({
|
|
|
1989
1990
|
// 控制是否禁止
|
|
1990
1991
|
disabled: o || u.disabled
|
|
1991
1992
|
}),
|
|
1992
|
-
onSelectAll(u,
|
|
1993
|
-
const
|
|
1994
|
-
r(
|
|
1993
|
+
onSelectAll(u, h) {
|
|
1994
|
+
const y = h.filter((I) => !I.disabled).map(({ [c.value]: I }) => I);
|
|
1995
|
+
r(y, u);
|
|
1995
1996
|
},
|
|
1996
|
-
onSelect({ [c.value]: u },
|
|
1997
|
-
v(u,
|
|
1997
|
+
onSelect({ [c.value]: u }, h) {
|
|
1998
|
+
v(u, h);
|
|
1998
1999
|
},
|
|
1999
2000
|
selectedRowKeys: f
|
|
2000
2001
|
}), d = x([]);
|
|
2001
|
-
return
|
|
2002
|
+
return Y(async () => {
|
|
2002
2003
|
if (n.value) {
|
|
2003
2004
|
const o = await Re(e.gridCtrl, {
|
|
2004
2005
|
urlKey: "list",
|
|
@@ -2008,7 +2009,7 @@ const dl = /* @__PURE__ */ S({
|
|
|
2008
2009
|
});
|
|
2009
2010
|
d.value = (o == null ? void 0 : o.data) ?? [];
|
|
2010
2011
|
}
|
|
2011
|
-
}), (o, f) => (m(), b(
|
|
2012
|
+
}), (o, f) => (m(), b($t, F({
|
|
2012
2013
|
"data-source": d.value,
|
|
2013
2014
|
"row-key": (r) => r[c.value],
|
|
2014
2015
|
value: i.value,
|
|
@@ -2026,13 +2027,13 @@ const dl = /* @__PURE__ */ S({
|
|
|
2026
2027
|
return !1;
|
|
2027
2028
|
}
|
|
2028
2029
|
}, o.$attrs), {
|
|
2029
|
-
children:
|
|
2030
|
-
|
|
2030
|
+
children: g(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: h }) => [
|
|
2031
|
+
w(l(Ye), {
|
|
2031
2032
|
columns: s.gridCtrl.columns.value,
|
|
2032
2033
|
"row-key": c.value,
|
|
2033
2034
|
"row-selection": p({
|
|
2034
2035
|
disabled: !1,
|
|
2035
|
-
selectedKeys:
|
|
2036
|
+
selectedKeys: h,
|
|
2036
2037
|
onItemSelectAll: v,
|
|
2037
2038
|
onItemSelect: u
|
|
2038
2039
|
}),
|
|
@@ -2040,10 +2041,10 @@ const dl = /* @__PURE__ */ S({
|
|
|
2040
2041
|
size: "small",
|
|
2041
2042
|
"data-source": r,
|
|
2042
2043
|
scroll: { x: 300 },
|
|
2043
|
-
"custom-row": (
|
|
2044
|
+
"custom-row": (y) => ({
|
|
2044
2045
|
onClick: () => {
|
|
2045
|
-
const
|
|
2046
|
-
u(
|
|
2046
|
+
const I = y[c.value];
|
|
2047
|
+
u(I, !h.includes(I));
|
|
2047
2048
|
}
|
|
2048
2049
|
})
|
|
2049
2050
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -2051,7 +2052,7 @@ const dl = /* @__PURE__ */ S({
|
|
|
2051
2052
|
_: 1
|
|
2052
2053
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
2053
2054
|
}
|
|
2054
|
-
}),
|
|
2055
|
+
}), It = /* @__PURE__ */ C({
|
|
2055
2056
|
__name: "index",
|
|
2056
2057
|
props: {
|
|
2057
2058
|
multiple: {
|
|
@@ -2064,76 +2065,89 @@ const dl = /* @__PURE__ */ S({
|
|
|
2064
2065
|
},
|
|
2065
2066
|
value: {
|
|
2066
2067
|
type: [String, Number, Array],
|
|
2067
|
-
required: !
|
|
2068
|
+
required: !1
|
|
2069
|
+
},
|
|
2070
|
+
/**
|
|
2071
|
+
* 清空时设置的值
|
|
2072
|
+
* - false,则清空时设置为 null
|
|
2073
|
+
* - true,则清空时设置为 undefined
|
|
2074
|
+
*/
|
|
2075
|
+
undefValue: {
|
|
2076
|
+
type: Boolean,
|
|
2077
|
+
default: !1
|
|
2068
2078
|
}
|
|
2069
2079
|
},
|
|
2070
2080
|
emits: ["change", "update:value"],
|
|
2071
|
-
setup(s, { emit:
|
|
2072
|
-
const e = s,
|
|
2073
|
-
|
|
2074
|
-
const
|
|
2081
|
+
setup(s, { emit: a }) {
|
|
2082
|
+
const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = a;
|
|
2083
|
+
i.inputEmit = d;
|
|
2084
|
+
const o = x([]), f = x();
|
|
2075
2085
|
T(
|
|
2076
2086
|
() => e.value,
|
|
2077
|
-
(
|
|
2078
|
-
|
|
2087
|
+
(u) => {
|
|
2088
|
+
f.value = u;
|
|
2079
2089
|
},
|
|
2080
2090
|
{ immediate: !0 }
|
|
2081
2091
|
), T(
|
|
2082
|
-
() =>
|
|
2083
|
-
(
|
|
2084
|
-
|
|
2092
|
+
() => n.data.value,
|
|
2093
|
+
(u) => {
|
|
2094
|
+
u && (o.value = n.fieldMap ? oe(n.fieldMap, u) : u);
|
|
2085
2095
|
},
|
|
2086
2096
|
{ immediate: !0 }
|
|
2087
2097
|
);
|
|
2088
|
-
const
|
|
2089
|
-
e.multiple ?
|
|
2098
|
+
const r = (u) => {
|
|
2099
|
+
e.multiple ? f.value = u ?? [] : f.value = u ?? t ? void 0 : null, d("change", f.value), d("update:value", f.value);
|
|
2090
2100
|
};
|
|
2091
|
-
|
|
2092
|
-
|
|
2101
|
+
Y(() => {
|
|
2102
|
+
n.fieldMap || (n.fieldMap = {
|
|
2093
2103
|
label: "Name",
|
|
2094
2104
|
key: "Id",
|
|
2095
2105
|
value: "Id"
|
|
2096
|
-
}),
|
|
2097
|
-
})
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2106
|
+
}), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Me(e.treeCtrl);
|
|
2107
|
+
});
|
|
2108
|
+
const v = () => {
|
|
2109
|
+
f.value = t ? void 0 : null;
|
|
2110
|
+
};
|
|
2111
|
+
return (u, h) => {
|
|
2112
|
+
var y;
|
|
2113
|
+
return m(), b(l(Aa), F({
|
|
2114
|
+
class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
|
|
2101
2115
|
"tree-line": "",
|
|
2102
2116
|
multiple: s.multiple,
|
|
2103
2117
|
"tree-default-expanded-keys": ["-"],
|
|
2104
|
-
value:
|
|
2105
|
-
"onUpdate:value":
|
|
2106
|
-
"tree-data":
|
|
2107
|
-
placeholder: "请选择" + l(
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
},
|
|
2118
|
+
value: f.value,
|
|
2119
|
+
"onUpdate:value": h[0] || (h[0] = (I) => f.value = I),
|
|
2120
|
+
"tree-data": o.value,
|
|
2121
|
+
placeholder: "请选择" + l(p),
|
|
2122
|
+
onChange: r,
|
|
2123
|
+
onClear: v
|
|
2124
|
+
}, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2111
2125
|
};
|
|
2112
2126
|
}
|
|
2113
|
-
}),
|
|
2127
|
+
}), _l = /* @__PURE__ */ q(It, [["__scopeId", "data-v-a38b77ec"]]), Dt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Et = { class: "flex w-full h-full min-h-full" }, Pt = {
|
|
2114
2128
|
key: 0,
|
|
2115
2129
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2116
|
-
},
|
|
2130
|
+
}, Ft = { class: "flex-1 h-full overflow-y-auto" }, yl = /* @__PURE__ */ C({
|
|
2117
2131
|
__name: "index",
|
|
2118
2132
|
props: {
|
|
2119
2133
|
left: { type: Boolean }
|
|
2120
2134
|
},
|
|
2121
2135
|
setup(s) {
|
|
2122
|
-
const { useToken:
|
|
2123
|
-
return (
|
|
2124
|
-
|
|
2136
|
+
const { useToken: a } = Le, { token: e } = a();
|
|
2137
|
+
return (t, n) => (m(), S("div", Dt, [
|
|
2138
|
+
w(l(La), {
|
|
2125
2139
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2126
2140
|
style: ue({
|
|
2127
2141
|
backgroundColor: l(e).colorBgContainer
|
|
2128
2142
|
})
|
|
2129
2143
|
}, {
|
|
2130
|
-
default:
|
|
2131
|
-
$("div",
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
])) :
|
|
2135
|
-
$("div",
|
|
2136
|
-
|
|
2144
|
+
default: g(() => [
|
|
2145
|
+
$("div", Et, [
|
|
2146
|
+
t.left ? (m(), S("div", Pt, [
|
|
2147
|
+
D(t.$slots, "left")
|
|
2148
|
+
])) : k("", !0),
|
|
2149
|
+
$("div", Ft, [
|
|
2150
|
+
D(t.$slots, "default")
|
|
2137
2151
|
])
|
|
2138
2152
|
])
|
|
2139
2153
|
]),
|
|
@@ -2143,114 +2157,115 @@ const dl = /* @__PURE__ */ S({
|
|
|
2143
2157
|
}
|
|
2144
2158
|
});
|
|
2145
2159
|
export {
|
|
2146
|
-
|
|
2160
|
+
ks as Alert,
|
|
2161
|
+
Os as AppIcon,
|
|
2147
2162
|
ce as AppRouter,
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2163
|
+
ns as AsyncUploader,
|
|
2164
|
+
nl as AutoComplete,
|
|
2165
|
+
As as Breadcrumb,
|
|
2166
|
+
A as Button,
|
|
2152
2167
|
He as Cache,
|
|
2153
2168
|
Xa as CacheKeys,
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2169
|
+
gs as CanPreviewFileExt,
|
|
2170
|
+
il as Cascader,
|
|
2171
|
+
cl as Checkbox,
|
|
2172
|
+
yl as Content,
|
|
2173
|
+
ul as DatePicker,
|
|
2159
2174
|
Ls as Datetime,
|
|
2160
2175
|
Hs as Dialog,
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2176
|
+
al as Drawer,
|
|
2177
|
+
Sl as EventPrefix,
|
|
2178
|
+
tl as Form,
|
|
2179
|
+
ll as FormItem,
|
|
2180
|
+
Zt as Fullscreen,
|
|
2181
|
+
zs as Header,
|
|
2182
|
+
Us as HeaderExits,
|
|
2168
2183
|
et as Helper,
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2184
|
+
Cl as ICONS_LIB,
|
|
2185
|
+
Vs as Icon,
|
|
2186
|
+
ut as Icontool,
|
|
2187
|
+
kt as Input,
|
|
2188
|
+
dl as InputIcon,
|
|
2189
|
+
fl as InputNumber,
|
|
2190
|
+
pl as InputPassword,
|
|
2191
|
+
el as LayoutIcon,
|
|
2177
2192
|
ws as Loading,
|
|
2178
|
-
|
|
2193
|
+
Ys as Menu,
|
|
2179
2194
|
Ws as MenuTabs,
|
|
2180
2195
|
Ne as OPTIONS,
|
|
2181
2196
|
ia as OptionCommProps,
|
|
2182
2197
|
Ks as ProjectIcon,
|
|
2183
|
-
|
|
2198
|
+
vl as PropEditor,
|
|
2184
2199
|
j as ProviderKeys,
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2200
|
+
Tt as Radio,
|
|
2201
|
+
ml as RadioStatus,
|
|
2202
|
+
hl as RangePicker,
|
|
2203
|
+
sl as Search,
|
|
2189
2204
|
pe as SearchItem,
|
|
2190
|
-
|
|
2205
|
+
gl as Select,
|
|
2191
2206
|
ra as Switch,
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2207
|
+
rl as Table,
|
|
2208
|
+
it as TableOperate,
|
|
2209
|
+
bl as Textarea,
|
|
2210
|
+
U as ToolIcon,
|
|
2211
|
+
vt as Toolbar,
|
|
2197
2212
|
Rs as Tooltip,
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2213
|
+
$t as Transfer,
|
|
2214
|
+
xl as TransferTable,
|
|
2215
|
+
ol as Tree,
|
|
2216
|
+
_l as TreeSelect,
|
|
2217
|
+
bs as UploadList,
|
|
2218
|
+
is as UploadStatus,
|
|
2204
2219
|
Ss as appendExcelData,
|
|
2205
2220
|
Cs as checkExcelDuplicates,
|
|
2206
|
-
|
|
2221
|
+
Tl as checkIconsExpired,
|
|
2207
2222
|
pa as circleLoading,
|
|
2208
2223
|
Xe as createFromIconfont,
|
|
2209
2224
|
Ts as createMarkedExcelView,
|
|
2210
|
-
|
|
2211
|
-
|
|
2225
|
+
$l as crumbs,
|
|
2226
|
+
qt as csvToExcelBlob,
|
|
2212
2227
|
Ke as csvToExcelView,
|
|
2213
2228
|
$s as csvToNormalized,
|
|
2214
2229
|
De as defaultTools,
|
|
2215
|
-
|
|
2216
|
-
|
|
2230
|
+
Il as doDelete,
|
|
2231
|
+
Dl as doExecute,
|
|
2217
2232
|
Re as doQuery,
|
|
2218
|
-
|
|
2219
|
-
|
|
2233
|
+
El as doSave,
|
|
2234
|
+
xs as donwloadFromMinio,
|
|
2220
2235
|
We as downloadBlob,
|
|
2221
|
-
|
|
2236
|
+
Pl as eventBus,
|
|
2222
2237
|
Is as excelToExcelView,
|
|
2223
2238
|
Ds as excelToNormalized,
|
|
2224
|
-
|
|
2225
|
-
|
|
2239
|
+
Xt as exportResults,
|
|
2240
|
+
Jt as exportSelectedRows,
|
|
2226
2241
|
Fe as filterColumns,
|
|
2227
2242
|
Q as formValidate,
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2243
|
+
cs as getAppInfo,
|
|
2244
|
+
Fl as getFormDetail,
|
|
2245
|
+
us as getHostInfo,
|
|
2246
|
+
Nl as getIconTransform,
|
|
2247
|
+
Ml as getRecordDetail,
|
|
2248
|
+
Rl as getRuleTexts,
|
|
2234
2249
|
va as getSelectedLabels,
|
|
2235
|
-
|
|
2236
|
-
|
|
2250
|
+
Bl as getSelectedValues,
|
|
2251
|
+
ds as getToken,
|
|
2237
2252
|
W as getToolByKey,
|
|
2238
2253
|
_e as getToolGroup,
|
|
2239
2254
|
K as getToolStatus,
|
|
2240
2255
|
G as getToolVisible,
|
|
2241
|
-
|
|
2256
|
+
ps as getUserInfo,
|
|
2242
2257
|
ke as gridQueryFind,
|
|
2243
2258
|
sa as gridQueryList,
|
|
2244
|
-
|
|
2259
|
+
Ol as gridRowUpdate,
|
|
2245
2260
|
oa as gridStatusUpdate,
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2261
|
+
Qt as initCacheCheck,
|
|
2262
|
+
Ht as initDirective,
|
|
2263
|
+
Al as initMenu,
|
|
2264
|
+
Ll as initPageFactory,
|
|
2250
2265
|
zl as initValidate,
|
|
2251
2266
|
Z as isEmpty,
|
|
2252
2267
|
ua as loadOption,
|
|
2253
|
-
|
|
2268
|
+
Ul as mergeColumns,
|
|
2254
2269
|
Es as normalizedToExcelView,
|
|
2255
2270
|
Ga as onColumnVisibleChanged,
|
|
2256
2271
|
ea as onFormClose,
|
|
@@ -2261,40 +2276,40 @@ export {
|
|
|
2261
2276
|
aa as onGridRowEdit,
|
|
2262
2277
|
Vl as onGridRowExpand,
|
|
2263
2278
|
fa as onOptionChanged,
|
|
2264
|
-
|
|
2265
|
-
|
|
2279
|
+
Ya as onReloadClick,
|
|
2280
|
+
V as onToolClicked,
|
|
2266
2281
|
la as openNewForm,
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2282
|
+
Yl as outFormDataFields,
|
|
2283
|
+
Wl as parseIcons,
|
|
2284
|
+
fs as path,
|
|
2285
|
+
Kl as pendingNavigation,
|
|
2286
|
+
jl as pinia,
|
|
2287
|
+
_s as previewFromMinio,
|
|
2288
|
+
Gt as processCsvFile,
|
|
2274
2289
|
Ps as processExcelFile,
|
|
2275
2290
|
Me as queryTree,
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2291
|
+
Hl as resetRules,
|
|
2292
|
+
Ql as routes,
|
|
2293
|
+
ql as saveForm,
|
|
2294
|
+
Gl as setFormData,
|
|
2295
|
+
Jl as showBreadcrumb,
|
|
2281
2296
|
Fs as toExcel,
|
|
2282
2297
|
da as unloadOption,
|
|
2283
|
-
|
|
2284
|
-
|
|
2298
|
+
Xl as useAppInfo,
|
|
2299
|
+
Zl as useEditorFactory,
|
|
2285
2300
|
Pe as useFormItemFactory,
|
|
2286
|
-
|
|
2287
|
-
|
|
2301
|
+
es as useGridFactory,
|
|
2302
|
+
as as useHostInfo,
|
|
2288
2303
|
L as useInputFactory,
|
|
2289
2304
|
ca as useOptionFactory,
|
|
2290
|
-
|
|
2291
|
-
|
|
2305
|
+
ts as usePageFactory,
|
|
2306
|
+
ls as usePageInfo,
|
|
2292
2307
|
me as useSettingInfo,
|
|
2293
2308
|
Ja as useToolFactory,
|
|
2294
|
-
|
|
2309
|
+
ss as useTreeFactory,
|
|
2295
2310
|
Je as useUserInfo,
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2311
|
+
vs as userLogin,
|
|
2312
|
+
ms as userLogout,
|
|
2313
|
+
rs as validateData,
|
|
2299
2314
|
Ns as validateExcel
|
|
2300
2315
|
};
|