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