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