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