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