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