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