@skyfox2000/webui 1.0.8 → 1.0.10
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/webui.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as Ua } from "./assets/modules/index-D47Ci-T3.js";
|
|
2
|
+
import { _ as A } from "./assets/modules/index-BoKIa2sr.js";
|
|
3
3
|
import { _ as Y } from "./assets/modules/index-BEWJ_qAH.js";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as Qa } from "./assets/modules/index-BEWJ_qAH.js";
|
|
5
5
|
import { _ as j } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
6
|
-
import { a as
|
|
7
|
-
import { defineComponent as C, createBlock as _, openBlock as f, withModifiers as J, unref as e, useAttrs as W, withCtx as g, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as ne, toDisplayString as D, createCommentVNode as k, ref as h, provide as
|
|
8
|
-
import { useSettingInfo as
|
|
9
|
-
import { Popover as
|
|
10
|
-
import { SERVER_HOST as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
6
|
+
import { a as ja, c as Ha, d as Wa, e as Ja, I as Ga, f as Xa, g as Za, b as el } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
7
|
+
import { defineComponent as C, createBlock as _, openBlock as f, withModifiers as J, unref as e, useAttrs as W, withCtx as g, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as ne, toDisplayString as D, createCommentVNode as k, ref as h, provide as he, watch as $, onMounted as K, createTextVNode as P, inject as ue, resolveDirective as U, withDirectives as V, computed as re, createElementBlock as w, normalizeClass as z, createSlots as xe, useSlots as Ae, Fragment as N, renderList as L, resolveDynamicComponent as Ke, onUnmounted as ye, onActivated as Oe, withKeys as ve } from "vue";
|
|
8
|
+
import { useSettingInfo as be, onFullscreenClick as Ee, createFromIconfont as Ye, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Le, onFormSave as ke, useFormItemFactory as Ce, getToolGroup as we, onGridRowEdit as Re, onGridRowDelete as Ue, getToolVisible as H, onToolClicked as R, getToolStatus as Q, useToolFactory as qe, getToolByKey as Z, filterColumns as $e, onColumnVisibleChanged as Qe, AppRouter as Ve, openNewForm as je, useInputFactory as O, loadOption as Se, unloadOption as Te, formValidate as q, gridQueryFind as me, gridQueryList as He, gridStatusUpdate as We, OPTIONS as De, queryTree as Ie, OptionCommProps as Je, circleLoading as Ge, doQuery as Be } from "@skyfox2000/webbase";
|
|
9
|
+
import { Popover as Xe, theme as Fe, Drawer as Ze, Space as G, Form as Pe, message as et, FormItem as Me, ConfigProvider as ge, Popconfirm as tt, Button as Ne, DropdownButton as at, Menu as ie, MenuItem as de, Dropdown as oe, Checkbox as lt, Switch as rt, Table as ze, Tree as ot, Cascader as st, DatePicker as nt, Input as se, InputPassword as ut, InputNumber as it, RangePicker as dt, Textarea as ct, Transfer as pt, TreeSelect as ft, LayoutContent as vt } from "ant-design-vue";
|
|
10
|
+
import { SERVER_HOST as mt, fieldMapping as ee } from "@skyfox2000/fapi";
|
|
11
|
+
import { VueDraggableNext as gt } from "vue-draggable-next";
|
|
12
|
+
import _t from "vue-m-message";
|
|
13
|
+
import { _ as ht, a as xt, b as yt, c as bt } from "./assets/modules/index-BahGnrAq.js";
|
|
14
|
+
import _e from "dayjs";
|
|
15
|
+
import { _ as al } from "./assets/modules/uploadList-Dzlg47V0.js";
|
|
16
|
+
const _a = /* @__PURE__ */ C({
|
|
17
17
|
__name: "fullscreen",
|
|
18
18
|
setup(v) {
|
|
19
|
-
const r =
|
|
19
|
+
const r = be();
|
|
20
20
|
return (a, t) => (f(), _(Y, {
|
|
21
|
-
onClick: J(e(
|
|
21
|
+
onClick: J(e(Ee), ["stop"]),
|
|
22
22
|
icon: e(r).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
23
23
|
class: "w-[17px] h-[17px]"
|
|
24
24
|
}, null, 8, ["onClick", "icon"]));
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
26
|
+
}), kt = { class: "ml-2" }, Ct = /* @__PURE__ */ C({
|
|
27
27
|
inheritAttrs: !1,
|
|
28
28
|
__name: "helper",
|
|
29
29
|
props: {
|
|
@@ -32,7 +32,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
32
32
|
},
|
|
33
33
|
setup(v) {
|
|
34
34
|
const r = W();
|
|
35
|
-
return (a, t) => (f(), _(e(
|
|
35
|
+
return (a, t) => (f(), _(e(Xe), { placement: "topRight" }, {
|
|
36
36
|
content: g(() => [
|
|
37
37
|
I(a.$slots, "default", {}, () => [
|
|
38
38
|
T("div", {
|
|
@@ -42,7 +42,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
42
42
|
])
|
|
43
43
|
]),
|
|
44
44
|
default: g(() => [
|
|
45
|
-
T("span",
|
|
45
|
+
T("span", kt, [
|
|
46
46
|
b(Y, B({
|
|
47
47
|
icon: "icon-question-circle",
|
|
48
48
|
class: "text-[#888] w-4 h-4"
|
|
@@ -52,7 +52,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
52
52
|
_: 3
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), ha = /* @__PURE__ */ C({
|
|
56
56
|
__name: "layoutIcon",
|
|
57
57
|
props: {
|
|
58
58
|
icon: {
|
|
@@ -63,8 +63,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(v) {
|
|
66
|
-
const r = v, t =
|
|
67
|
-
iconUrl: `${
|
|
66
|
+
const r = v, t = Ye({
|
|
67
|
+
iconUrl: `${mt.MICROLAYOUT_ICONS}`,
|
|
68
68
|
monoColor: !0,
|
|
69
69
|
icon: r.icon,
|
|
70
70
|
icons: r.icons
|
|
@@ -76,7 +76,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
76
76
|
class: ["align-middle"]
|
|
77
77
|
}, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), wt = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, xa = /* @__PURE__ */ C({
|
|
80
80
|
__name: "index",
|
|
81
81
|
props: {
|
|
82
82
|
saveText: {},
|
|
@@ -85,8 +85,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
85
85
|
editorCtrl: {}
|
|
86
86
|
},
|
|
87
87
|
setup(v) {
|
|
88
|
-
const { useToken: r } =
|
|
89
|
-
|
|
88
|
+
const { useToken: r } = Fe, { token: a } = r(), t = h(!1), n = v.editorCtrl;
|
|
89
|
+
he(X.EditorControl, n), $(
|
|
90
90
|
() => n.visible.value,
|
|
91
91
|
(d) => {
|
|
92
92
|
t.value = d ?? !1;
|
|
@@ -97,7 +97,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
97
97
|
const p = () => {
|
|
98
98
|
ae(n);
|
|
99
99
|
};
|
|
100
|
-
return (d, c) => (f(), _(e(
|
|
100
|
+
return (d, c) => (f(), _(e(Ze), {
|
|
101
101
|
open: t.value,
|
|
102
102
|
"onUpdate:open": c[4] || (c[4] = (s) => t.value = s),
|
|
103
103
|
"get-container": !1,
|
|
@@ -121,7 +121,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
121
121
|
onClose: p
|
|
122
122
|
}, {
|
|
123
123
|
extra: g(() => [
|
|
124
|
-
T("div",
|
|
124
|
+
T("div", wt, [
|
|
125
125
|
b(e(Y), {
|
|
126
126
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
127
127
|
icon: "icon-new",
|
|
@@ -140,7 +140,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
140
140
|
footer: g(() => [
|
|
141
141
|
b(e(G), null, {
|
|
142
142
|
default: g(() => [
|
|
143
|
-
d.cancelText !== "" ? (f(), _(e(
|
|
143
|
+
d.cancelText !== "" ? (f(), _(e(A), {
|
|
144
144
|
key: 0,
|
|
145
145
|
onClick: c[1] || (c[1] = () => e(ae)(e(n)))
|
|
146
146
|
}, {
|
|
@@ -149,9 +149,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
151
|
})) : k("", !0),
|
|
152
|
-
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), _(e(
|
|
152
|
+
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), _(e(A), {
|
|
153
153
|
key: 1,
|
|
154
|
-
onClick: c[2] || (c[2] = () => e(
|
|
154
|
+
onClick: c[2] || (c[2] = () => e(Le)(e(n))),
|
|
155
155
|
type: "primary",
|
|
156
156
|
loading: e(n).isFormSaving.value
|
|
157
157
|
}, {
|
|
@@ -160,9 +160,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}, 8, ["loading"])) : k("", !0),
|
|
163
|
-
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), _(e(
|
|
163
|
+
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), _(e(A), {
|
|
164
164
|
key: 2,
|
|
165
|
-
onClick: c[3] || (c[3] = () => e(
|
|
165
|
+
onClick: c[3] || (c[3] = () => e(ke)(e(n))),
|
|
166
166
|
type: "primary",
|
|
167
167
|
loading: e(n).isFormSaving.value
|
|
168
168
|
}, {
|
|
@@ -178,7 +178,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
178
178
|
_: 3
|
|
179
179
|
}, 8, ["open", "header-style"]));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), ya = /* @__PURE__ */ C({
|
|
182
182
|
__name: "index",
|
|
183
183
|
props: {
|
|
184
184
|
labelWidth: {},
|
|
@@ -188,8 +188,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
188
188
|
setup(v) {
|
|
189
189
|
const r = v, a = r.editorCtrl ?? ue(X.EditorControl, void 0);
|
|
190
190
|
return (t, o) => {
|
|
191
|
-
const n =
|
|
192
|
-
return V((f(), _(e(
|
|
191
|
+
const n = U("submit");
|
|
192
|
+
return V((f(), _(e(Pe), {
|
|
193
193
|
"label-col": { flex: r.labelWidth ?? "85px" },
|
|
194
194
|
"wrapper-col": {
|
|
195
195
|
flex: r.wrapperWidth ?? "1"
|
|
@@ -207,16 +207,16 @@ const ga = /* @__PURE__ */ C({
|
|
|
207
207
|
[
|
|
208
208
|
n,
|
|
209
209
|
() => {
|
|
210
|
-
e(a) && e(
|
|
210
|
+
e(a) && e(ke)(e(a));
|
|
211
211
|
}
|
|
212
212
|
]
|
|
213
213
|
]);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), $t = { class: "w-full flex items-center" }, St = { class: "flex-grow" }, Tt = { class: "w-8 mt-[-2px]" }, Dt = {
|
|
217
217
|
key: 1,
|
|
218
218
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
219
|
-
},
|
|
219
|
+
}, ba = /* @__PURE__ */ C({
|
|
220
220
|
inheritAttrs: !1,
|
|
221
221
|
__name: "formItem",
|
|
222
222
|
props: {
|
|
@@ -226,7 +226,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
226
226
|
width: {}
|
|
227
227
|
},
|
|
228
228
|
setup(v) {
|
|
229
|
-
const r = v, a = W(), t = ue(X.EditorControl, void 0), o =
|
|
229
|
+
const r = v, a = W(), t = ue(X.EditorControl, void 0), o = Ce(r, t), n = h(!1);
|
|
230
230
|
setTimeout(() => {
|
|
231
231
|
n.value = !0;
|
|
232
232
|
}, 30);
|
|
@@ -240,12 +240,12 @@ const ga = /* @__PURE__ */ C({
|
|
|
240
240
|
if (!r.rule)
|
|
241
241
|
return !1;
|
|
242
242
|
const c = p(r.rule.split("."), (s = t == null ? void 0 : t.formRules) == null ? void 0 : s.value);
|
|
243
|
-
return c ? c.required ?? !0 : (
|
|
243
|
+
return c ? c.required ?? !0 : (et.error(`"${r.label}" 的验证规则 \`${r.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${r.rule}\` 不存在,请检查代码!`, !0);
|
|
244
244
|
});
|
|
245
245
|
return (c, s) => (f(), w("div", {
|
|
246
|
-
class:
|
|
246
|
+
class: z(["w-full relative mb-1", c.width])
|
|
247
247
|
}, [
|
|
248
|
-
n.value ? (f(), _(e(
|
|
248
|
+
n.value ? (f(), _(e(Me), B({
|
|
249
249
|
key: 0,
|
|
250
250
|
required: d.value,
|
|
251
251
|
class: "!w-[95%] relative"
|
|
@@ -254,17 +254,17 @@ const ga = /* @__PURE__ */ C({
|
|
|
254
254
|
}), {
|
|
255
255
|
label: g(() => [
|
|
256
256
|
T("span", {
|
|
257
|
-
class:
|
|
257
|
+
class: z([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
258
258
|
}, D(c.label), 3)
|
|
259
259
|
]),
|
|
260
260
|
default: g(() => [
|
|
261
|
-
T("div",
|
|
262
|
-
T("div",
|
|
261
|
+
T("div", $t, [
|
|
262
|
+
T("div", St, [
|
|
263
263
|
I(c.$slots, "default")
|
|
264
264
|
]),
|
|
265
|
-
T("div",
|
|
265
|
+
T("div", Tt, [
|
|
266
266
|
I(c.$slots, "helper", {}, () => [
|
|
267
|
-
c.helper ? (f(), _(e(
|
|
267
|
+
c.helper ? (f(), _(e(Ct), {
|
|
268
268
|
key: 0,
|
|
269
269
|
text: c.helper
|
|
270
270
|
}, null, 8, ["text"])) : k("", !0)
|
|
@@ -274,10 +274,10 @@ const ga = /* @__PURE__ */ C({
|
|
|
274
274
|
]),
|
|
275
275
|
_: 3
|
|
276
276
|
}, 16, ["required", "class"])) : k("", !0),
|
|
277
|
-
e(o).errClass ? (f(), w("span",
|
|
277
|
+
e(o).errClass ? (f(), w("span", Dt, D(e(o).msg), 1)) : k("", !0)
|
|
278
278
|
], 2));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), It = { class: "w-1/3 relative mb-1" }, Bt = { class: "flex items-center" }, Ft = { class: "flex-grow pl-1" }, Pt = {
|
|
281
281
|
key: 0,
|
|
282
282
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
283
283
|
}, le = /* @__PURE__ */ C({
|
|
@@ -289,18 +289,18 @@ const ga = /* @__PURE__ */ C({
|
|
|
289
289
|
rule: {}
|
|
290
290
|
},
|
|
291
291
|
setup(v) {
|
|
292
|
-
const r = v, a = W(), t = ue(X.EditorControl, void 0), o =
|
|
293
|
-
return (n, p) => (f(), w("div",
|
|
294
|
-
b(e(
|
|
292
|
+
const r = v, a = W(), t = ue(X.EditorControl, void 0), o = Ce(r, t);
|
|
293
|
+
return (n, p) => (f(), w("div", It, [
|
|
294
|
+
b(e(Me), B({
|
|
295
295
|
required: n.rule !== void 0,
|
|
296
296
|
class: "w-[90%] relative"
|
|
297
297
|
}, e(a), {
|
|
298
298
|
class: [n.rule ? "" : "mb-3", n.width],
|
|
299
299
|
labelCol: { span: 6 }
|
|
300
|
-
}),
|
|
300
|
+
}), xe({
|
|
301
301
|
default: g(() => [
|
|
302
|
-
T("div",
|
|
303
|
-
T("div",
|
|
302
|
+
T("div", Bt, [
|
|
303
|
+
T("div", Ft, [
|
|
304
304
|
I(n.$slots, "default")
|
|
305
305
|
])
|
|
306
306
|
])
|
|
@@ -311,16 +311,16 @@ const ga = /* @__PURE__ */ C({
|
|
|
311
311
|
name: "label",
|
|
312
312
|
fn: g(() => [
|
|
313
313
|
T("span", {
|
|
314
|
-
class:
|
|
314
|
+
class: z([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
315
315
|
}, D(n.label), 3)
|
|
316
316
|
]),
|
|
317
317
|
key: "0"
|
|
318
318
|
} : void 0
|
|
319
319
|
]), 1040, ["required", "class"]),
|
|
320
|
-
e(o).msg ? (f(), w("span",
|
|
320
|
+
e(o).msg ? (f(), w("span", Pt, D(e(o).msg), 1)) : k("", !0)
|
|
321
321
|
]));
|
|
322
322
|
}
|
|
323
|
-
}),
|
|
323
|
+
}), ka = /* @__PURE__ */ C({
|
|
324
324
|
__name: "index",
|
|
325
325
|
props: {
|
|
326
326
|
search: {},
|
|
@@ -334,7 +334,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
334
334
|
for (let S = 0; S < m.length; S++)
|
|
335
335
|
typeof m[S].type == "object" && x++;
|
|
336
336
|
return x;
|
|
337
|
-
}, c =
|
|
337
|
+
}, c = Ae(), s = () => {
|
|
338
338
|
n.value = 0, p.value = 0, c.default && (n.value = d(c.default({}))), a.gridCtrl.searchBar && c.control && (p.value = d(c.control({}))), o.value = 2 - (n.value + p.value) % 3;
|
|
339
339
|
};
|
|
340
340
|
$(
|
|
@@ -376,8 +376,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
376
376
|
t("update:search", m);
|
|
377
377
|
};
|
|
378
378
|
return (m, x) => {
|
|
379
|
-
const S =
|
|
380
|
-
return n.value + p.value > 0 ? V((f(), _(e(
|
|
379
|
+
const S = U("submit");
|
|
380
|
+
return n.value + p.value > 0 ? V((f(), _(e(Pe), {
|
|
381
381
|
key: 0,
|
|
382
382
|
"label-col": { flex: "60px" },
|
|
383
383
|
style: {
|
|
@@ -405,7 +405,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
405
405
|
default: g(() => [
|
|
406
406
|
b(e(G), null, {
|
|
407
407
|
default: g(() => [
|
|
408
|
-
b(e(
|
|
408
|
+
b(e(A), {
|
|
409
409
|
type: "primary",
|
|
410
410
|
onClick: l,
|
|
411
411
|
icon: "icon-search"
|
|
@@ -416,7 +416,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
416
416
|
_: 1,
|
|
417
417
|
__: [0]
|
|
418
418
|
}),
|
|
419
|
-
b(e(
|
|
419
|
+
b(e(A), {
|
|
420
420
|
onClick: i,
|
|
421
421
|
icon: "icon-reset"
|
|
422
422
|
}, {
|
|
@@ -439,7 +439,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
439
439
|
]) : k("", !0);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}),
|
|
442
|
+
}), Mt = /* @__PURE__ */ C({
|
|
443
443
|
__name: "tableOperate",
|
|
444
444
|
props: {
|
|
445
445
|
record: {},
|
|
@@ -452,8 +452,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
452
452
|
label: "编辑",
|
|
453
453
|
type: "primary",
|
|
454
454
|
visible: !0,
|
|
455
|
+
role: ["Super", "Admin"],
|
|
455
456
|
permit: ":edit",
|
|
456
|
-
click: () =>
|
|
457
|
+
click: () => Re(a, r.record)
|
|
457
458
|
},
|
|
458
459
|
{
|
|
459
460
|
key: "Delete",
|
|
@@ -461,16 +462,17 @@ const ga = /* @__PURE__ */ C({
|
|
|
461
462
|
type: "primary",
|
|
462
463
|
visible: !0,
|
|
463
464
|
danger: !0,
|
|
465
|
+
role: ["Super", "Admin"],
|
|
464
466
|
permit: ":delete",
|
|
465
467
|
confirm: !0,
|
|
466
468
|
confirmText: "是否删除此记录?",
|
|
467
|
-
click: () =>
|
|
469
|
+
click: () => Ue(a, r.record)
|
|
468
470
|
}
|
|
469
|
-
], { buttons: o, menus: n } =
|
|
471
|
+
], { buttons: o, menus: n } = we(t, 0, a.operates), p = (d) => {
|
|
470
472
|
if (typeof d.disabled == "boolean")
|
|
471
473
|
return d.disabled;
|
|
472
474
|
if (typeof d.disabled == "function")
|
|
473
|
-
return
|
|
475
|
+
return Q(d, r.record) ?? !1;
|
|
474
476
|
if (r.record.hasOwnProperty("Enabled"))
|
|
475
477
|
switch (d.key) {
|
|
476
478
|
case "Edit":
|
|
@@ -481,8 +483,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
481
483
|
return !1;
|
|
482
484
|
};
|
|
483
485
|
return (d, c) => {
|
|
484
|
-
const s =
|
|
485
|
-
return f(), _(e(
|
|
486
|
+
const s = U("role"), u = U("permit");
|
|
487
|
+
return f(), _(e(ge), { theme: {
|
|
486
488
|
token: {
|
|
487
489
|
fontSize: 13
|
|
488
490
|
}
|
|
@@ -490,10 +492,10 @@ const ga = /* @__PURE__ */ C({
|
|
|
490
492
|
default: g(() => [
|
|
491
493
|
b(e(G), null, {
|
|
492
494
|
default: g(() => [
|
|
493
|
-
(f(!0), w(
|
|
495
|
+
(f(!0), w(N, null, L(e(o), (l) => (f(), w(N, {
|
|
494
496
|
key: l.key
|
|
495
497
|
}, [
|
|
496
|
-
e(H)(l, r.record) ? (f(), _(e(
|
|
498
|
+
e(H)(l, r.record) ? (f(), _(e(tt), {
|
|
497
499
|
key: 0,
|
|
498
500
|
disabled: p(l) || !l.confirm,
|
|
499
501
|
cancelText: "否",
|
|
@@ -504,7 +506,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
504
506
|
onConfirm: (i) => e(R)(l, e(a).page, e(a), r.record, !0)
|
|
505
507
|
}, {
|
|
506
508
|
default: g(() => [
|
|
507
|
-
e(H)(l, r.record) ? V((f(), _(e(
|
|
509
|
+
e(H)(l, r.record) ? V((f(), _(e(Ne), {
|
|
508
510
|
key: l.key,
|
|
509
511
|
type: l.type ?? "text",
|
|
510
512
|
danger: l.danger,
|
|
@@ -527,19 +529,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
527
529
|
_: 2
|
|
528
530
|
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
529
531
|
], 64))), 128)),
|
|
530
|
-
d.record.Enabled == 1 ? (f(), _(e(
|
|
532
|
+
d.record.Enabled == 1 ? (f(), _(e(ge), {
|
|
531
533
|
key: 0,
|
|
532
534
|
autoInsertSpaceInButton: !1
|
|
533
535
|
}, {
|
|
534
536
|
default: g(() => [
|
|
535
|
-
e(n).length > 0 ? (f(), _(e(
|
|
537
|
+
e(n).length > 0 ? (f(), _(e(at), {
|
|
536
538
|
key: 0,
|
|
537
539
|
size: "small"
|
|
538
540
|
}, {
|
|
539
541
|
overlay: g(() => [
|
|
540
542
|
b(e(ie), null, {
|
|
541
543
|
default: g(() => [
|
|
542
|
-
(f(!0), w(
|
|
544
|
+
(f(!0), w(N, null, L(e(n), (l) => (f(), w(N, {
|
|
543
545
|
key: l.key
|
|
544
546
|
}, [
|
|
545
547
|
e(H)(l, r.record) ? V((f(), _(e(de), {
|
|
@@ -577,13 +579,13 @@ const ga = /* @__PURE__ */ C({
|
|
|
577
579
|
});
|
|
578
580
|
};
|
|
579
581
|
}
|
|
580
|
-
}),
|
|
582
|
+
}), Nt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, zt = /* @__PURE__ */ C({
|
|
581
583
|
__name: "icontool",
|
|
582
584
|
props: {
|
|
583
585
|
gridCtrl: {}
|
|
584
586
|
},
|
|
585
587
|
setup(v) {
|
|
586
|
-
const r = v, a = r.gridCtrl, { tools: t } =
|
|
588
|
+
const r = v, a = r.gridCtrl, { tools: t } = qe(r.gridCtrl), o = be();
|
|
587
589
|
$(
|
|
588
590
|
() => a.selectable.value,
|
|
589
591
|
(d) => {
|
|
@@ -594,15 +596,15 @@ const ga = /* @__PURE__ */ C({
|
|
|
594
596
|
$(
|
|
595
597
|
() => a.columns.value,
|
|
596
598
|
(d) => {
|
|
597
|
-
n.value =
|
|
599
|
+
n.value = $e(d, !0);
|
|
598
600
|
},
|
|
599
601
|
{ deep: !0, immediate: !0 }
|
|
600
602
|
);
|
|
601
603
|
const p = () => {
|
|
602
|
-
a.columns.value.splice(0, a.columns.value.length, ...n.value), o.setTableColumns(
|
|
604
|
+
a.columns.value.splice(0, a.columns.value.length, ...n.value), o.setTableColumns(Ve.currentRoute.value.path, a.columns.value);
|
|
603
605
|
};
|
|
604
|
-
return (d, c) => (f(), w("div",
|
|
605
|
-
(f(!0), w(
|
|
606
|
+
return (d, c) => (f(), w("div", Nt, [
|
|
607
|
+
(f(!0), w(N, null, L(e(t), (s, u) => (f(), w(N, {
|
|
606
608
|
key: s.key
|
|
607
609
|
}, [
|
|
608
610
|
e(H)(s) && s.dropdown ? (f(), _(e(oe), {
|
|
@@ -612,9 +614,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
612
614
|
}, {
|
|
613
615
|
overlay: g(() => [
|
|
614
616
|
T("div", {
|
|
615
|
-
class:
|
|
617
|
+
class: z(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
|
|
616
618
|
}, [
|
|
617
|
-
s.dropdown === "headset" ? (f(), _(e(
|
|
619
|
+
s.dropdown === "headset" ? (f(), _(e(gt), {
|
|
618
620
|
key: 0,
|
|
619
621
|
modelValue: n.value,
|
|
620
622
|
"onUpdate:modelValue": c[1] || (c[1] = (l) => n.value = l),
|
|
@@ -623,18 +625,18 @@ const ga = /* @__PURE__ */ C({
|
|
|
623
625
|
handle: ".drag-handle"
|
|
624
626
|
}, {
|
|
625
627
|
default: g(() => [
|
|
626
|
-
(f(!0), w(
|
|
628
|
+
(f(!0), w(N, null, L(n.value, (l) => (f(), w("div", {
|
|
627
629
|
key: l.name,
|
|
628
630
|
onClick: c[0] || (c[0] = J(() => {
|
|
629
631
|
}, ["stop"])),
|
|
630
632
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
631
633
|
}, [
|
|
632
634
|
c[2] || (c[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
633
|
-
b(e(
|
|
635
|
+
b(e(lt), {
|
|
634
636
|
checked: l.visible !== !1,
|
|
635
637
|
onChange: J(
|
|
636
638
|
(i) => {
|
|
637
|
-
e(
|
|
639
|
+
e(Qe)(l, i.target.checked);
|
|
638
640
|
},
|
|
639
641
|
["stop", "prevent"]
|
|
640
642
|
),
|
|
@@ -652,13 +654,13 @@ const ga = /* @__PURE__ */ C({
|
|
|
652
654
|
], 2)
|
|
653
655
|
]),
|
|
654
656
|
default: g(() => [
|
|
655
|
-
b(e(
|
|
656
|
-
class:
|
|
657
|
+
b(e(A), {
|
|
658
|
+
class: z([
|
|
657
659
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
658
660
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
659
661
|
u === e(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
660
662
|
]),
|
|
661
|
-
disabled: e(
|
|
663
|
+
disabled: e(Q)(s),
|
|
662
664
|
tiptext: s.label,
|
|
663
665
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
664
666
|
}, {
|
|
@@ -673,14 +675,14 @@ const ga = /* @__PURE__ */ C({
|
|
|
673
675
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
674
676
|
]),
|
|
675
677
|
_: 2
|
|
676
|
-
}, 1024)) : !s.children && e(H)(s) ? (f(), _(e(
|
|
678
|
+
}, 1024)) : !s.children && e(H)(s) ? (f(), _(e(A), {
|
|
677
679
|
key: 1,
|
|
678
|
-
class:
|
|
680
|
+
class: z([
|
|
679
681
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
680
682
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
681
683
|
u === e(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
682
684
|
]),
|
|
683
|
-
disabled: e(
|
|
685
|
+
disabled: e(Q)(s),
|
|
684
686
|
tiptext: s.label,
|
|
685
687
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
686
688
|
}, {
|
|
@@ -700,9 +702,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
700
702
|
overlay: g(() => [
|
|
701
703
|
b(e(ie), null, {
|
|
702
704
|
default: g(() => [
|
|
703
|
-
(f(!0), w(
|
|
705
|
+
(f(!0), w(N, null, L(s.children, (l) => (f(), _(e(de), {
|
|
704
706
|
key: l.key,
|
|
705
|
-
disabled: e(
|
|
707
|
+
disabled: e(Q)(l)
|
|
706
708
|
}, {
|
|
707
709
|
default: g(() => [
|
|
708
710
|
P(D(l.label), 1)
|
|
@@ -714,12 +716,12 @@ const ga = /* @__PURE__ */ C({
|
|
|
714
716
|
}, 1024)
|
|
715
717
|
]),
|
|
716
718
|
default: g(() => [
|
|
717
|
-
b(e(
|
|
718
|
-
class:
|
|
719
|
+
b(e(A), {
|
|
720
|
+
class: z([
|
|
719
721
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
720
722
|
u === 0 ? "rounded-l-[5px]" : ""
|
|
721
723
|
]),
|
|
722
|
-
disabled: e(
|
|
724
|
+
disabled: e(Q)(s),
|
|
723
725
|
tiptext: s.label,
|
|
724
726
|
icon: s.icon,
|
|
725
727
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
@@ -739,7 +741,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
739
741
|
], 64))), 128))
|
|
740
742
|
]));
|
|
741
743
|
}
|
|
742
|
-
}),
|
|
744
|
+
}), At = { class: "flex justify-between mb-[10px]" }, Kt = { key: 1 }, Ot = 3, Et = /* @__PURE__ */ C({
|
|
743
745
|
__name: "index",
|
|
744
746
|
props: {
|
|
745
747
|
gridCtrl: {},
|
|
@@ -753,9 +755,10 @@ const ga = /* @__PURE__ */ C({
|
|
|
753
755
|
type: "primary",
|
|
754
756
|
icon: "icon-new",
|
|
755
757
|
danger: !0,
|
|
758
|
+
role: ["Super", "Admin"],
|
|
756
759
|
permit: ":new",
|
|
757
760
|
// 默认仅受权限码控制
|
|
758
|
-
click: () =>
|
|
761
|
+
click: () => je(o)
|
|
759
762
|
}
|
|
760
763
|
], p = h([]), d = h([]);
|
|
761
764
|
return $(
|
|
@@ -765,7 +768,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
765
768
|
},
|
|
766
769
|
() => {
|
|
767
770
|
var u;
|
|
768
|
-
const { buttons: c, menus: s } =
|
|
771
|
+
const { buttons: c, menus: s } = we(
|
|
769
772
|
n,
|
|
770
773
|
a.flat !== void 0 ? a.flat : Ot,
|
|
771
774
|
(u = a.buttons) == null ? void 0 : u.value
|
|
@@ -777,15 +780,15 @@ const ga = /* @__PURE__ */ C({
|
|
|
777
780
|
immediate: !0
|
|
778
781
|
}
|
|
779
782
|
), (c, s) => {
|
|
780
|
-
const u =
|
|
781
|
-
return f(), w("div",
|
|
783
|
+
const u = U("role"), l = U("permit");
|
|
784
|
+
return f(), w("div", At, [
|
|
782
785
|
b(e(G), null, {
|
|
783
786
|
default: g(() => [
|
|
784
|
-
(f(!0), w(
|
|
787
|
+
(f(!0), w(N, null, L(p.value, (i) => V((f(), _(e(A), {
|
|
785
788
|
key: i.key,
|
|
786
789
|
type: i.type,
|
|
787
790
|
danger: i.danger,
|
|
788
|
-
disabled: e(
|
|
791
|
+
disabled: e(Q)(i),
|
|
789
792
|
icon: i.icon,
|
|
790
793
|
onClick: (m) => e(R)(i, e(t), e(a))
|
|
791
794
|
}, {
|
|
@@ -801,9 +804,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
801
804
|
overlay: g(() => [
|
|
802
805
|
b(e(ie), null, {
|
|
803
806
|
default: g(() => [
|
|
804
|
-
(f(!0), w(
|
|
807
|
+
(f(!0), w(N, null, L(d.value, (i) => V((f(), _(e(de), {
|
|
805
808
|
key: i.key,
|
|
806
|
-
disabled: e(
|
|
809
|
+
disabled: e(Q)(i),
|
|
807
810
|
onClick: (m) => e(R)(i, e(t), e(a))
|
|
808
811
|
}, {
|
|
809
812
|
default: g(() => [
|
|
@@ -819,7 +822,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
819
822
|
})
|
|
820
823
|
]),
|
|
821
824
|
default: g(() => [
|
|
822
|
-
b(e(
|
|
825
|
+
b(e(A), null, {
|
|
823
826
|
default: g(() => s[0] || (s[0] = [
|
|
824
827
|
P(" 更多操作 ")
|
|
825
828
|
])),
|
|
@@ -835,14 +838,14 @@ const ga = /* @__PURE__ */ C({
|
|
|
835
838
|
}),
|
|
836
839
|
b(e(G), { class: "mr-1" }, {
|
|
837
840
|
default: g(() => [
|
|
838
|
-
(f(), _(Ke(
|
|
841
|
+
(f(), _(Ke(zt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
|
|
839
842
|
]),
|
|
840
843
|
_: 1
|
|
841
844
|
})
|
|
842
845
|
]);
|
|
843
846
|
};
|
|
844
847
|
}
|
|
845
|
-
}),
|
|
848
|
+
}), Yt = /* @__PURE__ */ C({
|
|
846
849
|
__name: "index",
|
|
847
850
|
props: {
|
|
848
851
|
/**
|
|
@@ -856,19 +859,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
856
859
|
emits: ["change"],
|
|
857
860
|
setup(v, { emit: r }) {
|
|
858
861
|
const a = v, t = h([]), o = r, { editorCtrl: n, errInfo: p } = O(), d = (c) => {
|
|
859
|
-
p != null && p.value.errClass && n &&
|
|
862
|
+
p != null && p.value.errClass && n && q(n), o("change", c);
|
|
860
863
|
};
|
|
861
864
|
return K(() => {
|
|
862
865
|
if (!a.data || a.data.length != 2) {
|
|
863
|
-
console.error("Switch组件: ", a.data),
|
|
866
|
+
console.error("Switch组件: ", a.data), _t.error("Switch组件必须有且只有两个选项");
|
|
864
867
|
return;
|
|
865
868
|
}
|
|
866
|
-
|
|
867
|
-
}),
|
|
868
|
-
|
|
869
|
+
Se(!1, a, t);
|
|
870
|
+
}), ye(() => {
|
|
871
|
+
Te(a);
|
|
869
872
|
}), (c, s) => {
|
|
870
873
|
var u;
|
|
871
|
-
return t.value.length === 2 ? (f(), _(e(
|
|
874
|
+
return t.value.length === 2 ? (f(), _(e(rt), B({
|
|
872
875
|
key: 0,
|
|
873
876
|
class: [((u = e(p)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "", "bg-blue-300", "w-[58px]"],
|
|
874
877
|
checkedChildren: t.value[0].label,
|
|
@@ -879,7 +882,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
879
882
|
}, c.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
|
|
880
883
|
};
|
|
881
884
|
}
|
|
882
|
-
}),
|
|
885
|
+
}), Ca = /* @__PURE__ */ C({
|
|
883
886
|
inheritAttrs: !1,
|
|
884
887
|
__name: "index",
|
|
885
888
|
props: {
|
|
@@ -900,7 +903,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
900
903
|
pageSize: o.value,
|
|
901
904
|
showTotal: (i) => `共 ${i} 条记录`,
|
|
902
905
|
onChange: (i, m) => {
|
|
903
|
-
d.value.current = i, d.value.pageSize = m, o.value = m, n.value = i, t && (t.pageNo.value = i, t.pageSize.value = m, t.remotePage &&
|
|
906
|
+
d.value.current = i, d.value.pageSize = m, o.value = m, n.value = i, t && (t.pageNo.value = i, t.pageSize.value = m, t.remotePage && me(t));
|
|
904
907
|
},
|
|
905
908
|
...r.pagination
|
|
906
909
|
});
|
|
@@ -936,7 +939,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
936
939
|
), $(
|
|
937
940
|
() => t.columns.value,
|
|
938
941
|
() => {
|
|
939
|
-
c.value =
|
|
942
|
+
c.value = $e(t.columns.value);
|
|
940
943
|
},
|
|
941
944
|
{ deep: !0, immediate: !0 }
|
|
942
945
|
);
|
|
@@ -944,19 +947,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
944
947
|
return Oe(() => {
|
|
945
948
|
l.value && t && (t.reload.value = !0);
|
|
946
949
|
}), K(async () => {
|
|
947
|
-
|
|
950
|
+
he(X.GridControl, t), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value.total = t.total.value ?? 0) : t.autoload !== !1 && (t.remotePage ? p.value = (await me(t)).rows : p.value = await He(t)), setTimeout(() => {
|
|
948
951
|
l.value = !0;
|
|
949
952
|
}, 50);
|
|
950
953
|
}), (i, m) => {
|
|
951
|
-
var
|
|
952
|
-
const x =
|
|
953
|
-
return f(), w(
|
|
954
|
-
(
|
|
954
|
+
var F, M;
|
|
955
|
+
const x = U("role"), S = U("permit");
|
|
956
|
+
return f(), w(N, null, [
|
|
957
|
+
(F = e(t).buttons) != null && F.value.length || (M = e(t).tools) != null && M.length ? (f(), _(Et, {
|
|
955
958
|
key: 0,
|
|
956
959
|
"grid-ctrl": e(t),
|
|
957
960
|
"editor-ctrl": e(t).editor
|
|
958
961
|
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
959
|
-
l.value ? (f(), _(e(
|
|
962
|
+
l.value ? (f(), _(e(ze), B({
|
|
960
963
|
key: 1,
|
|
961
964
|
class: "w-full",
|
|
962
965
|
"row-key": r.primaryKey ?? e(t).primaryKey ?? "Id",
|
|
@@ -970,32 +973,33 @@ const ga = /* @__PURE__ */ C({
|
|
|
970
973
|
bordered: ""
|
|
971
974
|
}, e(a)), {
|
|
972
975
|
bodyCell: g((y) => {
|
|
973
|
-
var
|
|
976
|
+
var E, pe;
|
|
974
977
|
return [
|
|
975
978
|
I(i.$slots, "bodyCell", {
|
|
976
979
|
column: y == null ? void 0 : y.column,
|
|
977
980
|
record: y == null ? void 0 : y.record
|
|
978
981
|
}),
|
|
979
|
-
e(t) && ((
|
|
982
|
+
e(t) && ((E = y == null ? void 0 : y.column) == null ? void 0 : E.dataIndex) === "enabled" ? V((f(), _(Yt, {
|
|
980
983
|
key: 0,
|
|
981
984
|
checked: y.record.Enabled,
|
|
982
|
-
"onUpdate:checked": (
|
|
985
|
+
"onUpdate:checked": (fe) => y.record.Enabled = fe,
|
|
983
986
|
disabled: i.statusDisabled ? i.statusDisabled(y.record) : !1,
|
|
984
|
-
data: e(
|
|
985
|
-
onClick: (
|
|
986
|
-
class:
|
|
987
|
+
data: e(De).EnableDisable,
|
|
988
|
+
onClick: (fe) => e(We)(e(t), y.record),
|
|
989
|
+
class: z([
|
|
987
990
|
"w-[58px]",
|
|
988
991
|
i.statusDisabled && i.statusDisabled(y.record) ? "cursor-not-allowed disabled" : ""
|
|
989
992
|
]),
|
|
990
993
|
loading: y == null ? void 0 : y.record.isLoading
|
|
991
994
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
992
|
-
[x, "
|
|
995
|
+
[x, ["Super", "Admin"]],
|
|
996
|
+
[S, ":enabled", "disable"]
|
|
993
997
|
]) : k("", !0),
|
|
994
|
-
e(t) && ((
|
|
998
|
+
e(t) && ((pe = y == null ? void 0 : y.column) == null ? void 0 : pe.dataIndex) === "operation" ? I(i.$slots, "operate", {
|
|
995
999
|
key: 1,
|
|
996
1000
|
record: y == null ? void 0 : y.record
|
|
997
1001
|
}, () => [
|
|
998
|
-
b(
|
|
1002
|
+
b(Mt, {
|
|
999
1003
|
record: y == null ? void 0 : y.record,
|
|
1000
1004
|
"grid-ctrl": e(t)
|
|
1001
1005
|
}, null, 8, ["record", "grid-ctrl"])
|
|
@@ -1007,7 +1011,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
1007
1011
|
], 64);
|
|
1008
1012
|
};
|
|
1009
1013
|
}
|
|
1010
|
-
}),
|
|
1014
|
+
}), Lt = { class: "flex items-center gap-1" }, Rt = { class: "text-nowrap" }, wa = /* @__PURE__ */ C({
|
|
1011
1015
|
__name: "index",
|
|
1012
1016
|
props: {
|
|
1013
1017
|
treeCtrl: {},
|
|
@@ -1048,8 +1052,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
1048
1052
|
key: "Id",
|
|
1049
1053
|
value: "Id",
|
|
1050
1054
|
icon: "Icon"
|
|
1051
|
-
}), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload &&
|
|
1052
|
-
}), (u, l) => (f(), _(e(
|
|
1055
|
+
}), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload && Ie(o);
|
|
1056
|
+
}), (u, l) => (f(), _(e(ot), B({
|
|
1053
1057
|
class: "w-full",
|
|
1054
1058
|
"show-line": !0,
|
|
1055
1059
|
"tree-data": n.value,
|
|
@@ -1065,22 +1069,22 @@ const ga = /* @__PURE__ */ C({
|
|
|
1065
1069
|
key: i,
|
|
1066
1070
|
icon: x
|
|
1067
1071
|
}, () => [
|
|
1068
|
-
T("div",
|
|
1072
|
+
T("div", Lt, [
|
|
1069
1073
|
b(e(Y), { icon: x }, null, 8, ["icon"]),
|
|
1070
|
-
T("span",
|
|
1074
|
+
T("span", Rt, D(m), 1)
|
|
1071
1075
|
])
|
|
1072
1076
|
])
|
|
1073
1077
|
]),
|
|
1074
1078
|
_: 3
|
|
1075
1079
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1076
1080
|
}
|
|
1077
|
-
}),
|
|
1081
|
+
}), $a = /* @__PURE__ */ j(ht, [["__scopeId", "data-v-1e39ad49"]]), Ut = {
|
|
1078
1082
|
key: 0,
|
|
1079
1083
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1080
|
-
},
|
|
1084
|
+
}, qt = /* @__PURE__ */ C({
|
|
1081
1085
|
inheritAttrs: !1,
|
|
1082
1086
|
__name: "index",
|
|
1083
|
-
props:
|
|
1087
|
+
props: Je,
|
|
1084
1088
|
emits: ["change", "update:labels", "update:value"],
|
|
1085
1089
|
setup(v, { emit: r }) {
|
|
1086
1090
|
var m, x, S;
|
|
@@ -1100,16 +1104,16 @@ const ga = /* @__PURE__ */ C({
|
|
|
1100
1104
|
);
|
|
1101
1105
|
const u = r;
|
|
1102
1106
|
n.inputEmit = u;
|
|
1103
|
-
const l = h([]), i = (F,
|
|
1104
|
-
if (!
|
|
1107
|
+
const l = h([]), i = (F, M) => {
|
|
1108
|
+
if (!M || M.length === 0) {
|
|
1105
1109
|
u("update:labels", []), u("update:value", []);
|
|
1106
1110
|
return;
|
|
1107
1111
|
}
|
|
1108
|
-
const
|
|
1109
|
-
u("update:labels",
|
|
1112
|
+
const y = M.map((E) => E.label);
|
|
1113
|
+
u("update:labels", y), u(
|
|
1110
1114
|
"update:value",
|
|
1111
|
-
|
|
1112
|
-
), d != null && d.value.errClass && p &&
|
|
1115
|
+
M.map((E) => E.value)
|
|
1116
|
+
), d != null && d.value.errClass && p && q(p);
|
|
1113
1117
|
};
|
|
1114
1118
|
return K(() => {
|
|
1115
1119
|
o.value && !o.value.fieldMap && (o.value.fieldMap = {
|
|
@@ -1117,19 +1121,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
1117
1121
|
label: "Name",
|
|
1118
1122
|
value: "Id",
|
|
1119
1123
|
key: "Id"
|
|
1120
|
-
}),
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1123
|
-
}), (F,
|
|
1124
|
-
var
|
|
1124
|
+
}), Se(a.autoload, a, l, n, o.value, o.value.params);
|
|
1125
|
+
}), ye(() => {
|
|
1126
|
+
Te(a, n);
|
|
1127
|
+
}), (F, M) => {
|
|
1128
|
+
var y;
|
|
1125
1129
|
return f(), w("div", null, [
|
|
1126
|
-
l.value.length ? k("", !0) : (f(), w("div",
|
|
1127
|
-
b(e(
|
|
1128
|
-
|
|
1130
|
+
l.value.length ? k("", !0) : (f(), w("div", Ut, [
|
|
1131
|
+
b(e(Ge), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1132
|
+
M[0] || (M[0] = T("span", null, "数据加载中...", -1))
|
|
1129
1133
|
])),
|
|
1130
|
-
b(e(
|
|
1134
|
+
b(e(st), B({
|
|
1131
1135
|
options: l.value,
|
|
1132
|
-
class: [(
|
|
1136
|
+
class: [(y = e(d)) == null ? void 0 : y.errClass],
|
|
1133
1137
|
"allow-clear": !0,
|
|
1134
1138
|
placeholder: l.value.length > 0 ? "请选择" + e(c) : "",
|
|
1135
1139
|
onChange: i
|
|
@@ -1137,7 +1141,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
1137
1141
|
]);
|
|
1138
1142
|
};
|
|
1139
1143
|
}
|
|
1140
|
-
}),
|
|
1144
|
+
}), Sa = /* @__PURE__ */ j(qt, [["__scopeId", "data-v-05e57a52"]]), Ta = /* @__PURE__ */ j(xt, [["__scopeId", "data-v-dc59fe7f"]]);
|
|
1141
1145
|
function te() {
|
|
1142
1146
|
return te = Object.assign ? Object.assign.bind() : function(v) {
|
|
1143
1147
|
for (var r = 1; r < arguments.length; r++) {
|
|
@@ -1147,7 +1151,7 @@ function te() {
|
|
|
1147
1151
|
return v;
|
|
1148
1152
|
}, te.apply(null, arguments);
|
|
1149
1153
|
}
|
|
1150
|
-
const
|
|
1154
|
+
const Qt = {
|
|
1151
1155
|
locale: "zh_CN",
|
|
1152
1156
|
today: "今天",
|
|
1153
1157
|
now: "此刻",
|
|
@@ -1174,7 +1178,7 @@ const qt = {
|
|
|
1174
1178
|
nextDecade: "下一年代",
|
|
1175
1179
|
previousCentury: "上一世纪",
|
|
1176
1180
|
nextCentury: "下一世纪"
|
|
1177
|
-
},
|
|
1181
|
+
}, Vt = {
|
|
1178
1182
|
placeholder: "请选择时间",
|
|
1179
1183
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1180
1184
|
}, ce = {
|
|
@@ -1189,23 +1193,23 @@ const qt = {
|
|
|
1189
1193
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1190
1194
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1191
1195
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1192
|
-
},
|
|
1193
|
-
timePickerLocale: te({},
|
|
1196
|
+
}, Qt),
|
|
1197
|
+
timePickerLocale: te({}, Vt)
|
|
1194
1198
|
};
|
|
1195
1199
|
ce.lang.ok = "确定";
|
|
1196
|
-
const
|
|
1200
|
+
const Da = /* @__PURE__ */ C({
|
|
1197
1201
|
__name: "index",
|
|
1198
1202
|
props: {
|
|
1199
1203
|
valueFormat: {}
|
|
1200
1204
|
},
|
|
1201
1205
|
setup(v) {
|
|
1202
1206
|
const r = v, { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1203
|
-
o != null && o.value.errClass && a &&
|
|
1207
|
+
o != null && o.value.errClass && a && q(a);
|
|
1204
1208
|
}, p = h(r.valueFormat ?? "YYYY-MM-DD");
|
|
1205
1209
|
return (d, c) => {
|
|
1206
1210
|
var s;
|
|
1207
|
-
return f(), _(e(
|
|
1208
|
-
class:
|
|
1211
|
+
return f(), _(e(nt), {
|
|
1212
|
+
class: z([[((s = e(o)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
|
|
1209
1213
|
placeholder: "请选择" + e(t),
|
|
1210
1214
|
locale: e(ce),
|
|
1211
1215
|
valueFormat: p.value,
|
|
@@ -1213,7 +1217,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1213
1217
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1214
1218
|
};
|
|
1215
1219
|
}
|
|
1216
|
-
}),
|
|
1220
|
+
}), jt = /* @__PURE__ */ C({
|
|
1217
1221
|
__name: "index",
|
|
1218
1222
|
props: {
|
|
1219
1223
|
value: {}
|
|
@@ -1221,7 +1225,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1221
1225
|
emits: ["update:value"],
|
|
1222
1226
|
setup(v, { emit: r }) {
|
|
1223
1227
|
const { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1224
|
-
o != null && o.value.errClass && a &&
|
|
1228
|
+
o != null && o.value.errClass && a && q(a);
|
|
1225
1229
|
}, p = v, d = r, c = h(p.value);
|
|
1226
1230
|
$(
|
|
1227
1231
|
() => p.value,
|
|
@@ -1257,7 +1261,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1257
1261
|
placeholder: "请输入" + e(t),
|
|
1258
1262
|
onBlur: n,
|
|
1259
1263
|
onChange: s
|
|
1260
|
-
}, u.$attrs),
|
|
1264
|
+
}, u.$attrs), xe({ _: 2 }, [
|
|
1261
1265
|
u.$slots.addonBefore ? {
|
|
1262
1266
|
name: "addonBefore",
|
|
1263
1267
|
fn: g(() => [
|
|
@@ -1275,7 +1279,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1275
1279
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1276
1280
|
};
|
|
1277
1281
|
}
|
|
1278
|
-
}),
|
|
1282
|
+
}), Ht = /* @__PURE__ */ C({
|
|
1279
1283
|
__name: "inputIcon",
|
|
1280
1284
|
props: {
|
|
1281
1285
|
value: {}
|
|
@@ -1294,7 +1298,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1294
1298
|
(n) => {
|
|
1295
1299
|
t("update:value", n);
|
|
1296
1300
|
}
|
|
1297
|
-
), (n, p) => (f(), _(
|
|
1301
|
+
), (n, p) => (f(), _(jt, B({
|
|
1298
1302
|
class: ["w-[80%]"],
|
|
1299
1303
|
value: o.value,
|
|
1300
1304
|
"onUpdate:value": p[0] || (p[0] = (d) => o.value = d)
|
|
@@ -1308,15 +1312,15 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1308
1312
|
_: 1
|
|
1309
1313
|
}, 16, ["value"]));
|
|
1310
1314
|
}
|
|
1311
|
-
}),
|
|
1315
|
+
}), Ia = /* @__PURE__ */ j(Ht, [["__scopeId", "data-v-f7b3ed74"]]), Ba = /* @__PURE__ */ C({
|
|
1312
1316
|
__name: "inputPassword",
|
|
1313
1317
|
setup(v) {
|
|
1314
1318
|
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1315
|
-
t != null && t.value.errClass && r &&
|
|
1319
|
+
t != null && t.value.errClass && r && q(r);
|
|
1316
1320
|
};
|
|
1317
1321
|
return (n, p) => {
|
|
1318
1322
|
var d;
|
|
1319
|
-
return f(), _(e(
|
|
1323
|
+
return f(), _(e(ut), B({
|
|
1320
1324
|
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1321
1325
|
"allow-clear": !0,
|
|
1322
1326
|
autocomplete: "new-password",
|
|
@@ -1325,15 +1329,15 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1325
1329
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1326
1330
|
};
|
|
1327
1331
|
}
|
|
1328
|
-
}),
|
|
1332
|
+
}), Fa = /* @__PURE__ */ C({
|
|
1329
1333
|
__name: "inputNumber",
|
|
1330
1334
|
setup(v) {
|
|
1331
1335
|
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1332
|
-
t != null && t.value.errClass && r &&
|
|
1336
|
+
t != null && t.value.errClass && r && q(r);
|
|
1333
1337
|
};
|
|
1334
1338
|
return (n, p) => {
|
|
1335
1339
|
var d;
|
|
1336
|
-
return f(), _(e(
|
|
1340
|
+
return f(), _(e(it), B({
|
|
1337
1341
|
class: [[((d = e(t)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1338
1342
|
onBlur: o,
|
|
1339
1343
|
"allow-clear": !1,
|
|
@@ -1341,7 +1345,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1341
1345
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1342
1346
|
};
|
|
1343
1347
|
}
|
|
1344
|
-
}),
|
|
1348
|
+
}), Wt = { class: "flex flex-col gap-2" }, Jt = { class: "w-[33%]" }, Gt = { class: "w-[64%]" }, Pa = /* @__PURE__ */ C({
|
|
1345
1349
|
__name: "index",
|
|
1346
1350
|
props: {
|
|
1347
1351
|
value: {},
|
|
@@ -1374,12 +1378,12 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1374
1378
|
}, s = () => {
|
|
1375
1379
|
d();
|
|
1376
1380
|
};
|
|
1377
|
-
return (u, l) => (f(), w("div",
|
|
1378
|
-
(f(!0), w(
|
|
1381
|
+
return (u, l) => (f(), w("div", Wt, [
|
|
1382
|
+
(f(!0), w(N, null, L(o.value, (i) => (f(), w("div", {
|
|
1379
1383
|
key: i.id,
|
|
1380
1384
|
class: "flex items-center gap-2"
|
|
1381
1385
|
}, [
|
|
1382
|
-
T("div",
|
|
1386
|
+
T("div", Jt, [
|
|
1383
1387
|
b(e(se), {
|
|
1384
1388
|
value: i.field,
|
|
1385
1389
|
"onUpdate:value": (m) => i.field = m,
|
|
@@ -1390,7 +1394,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1390
1394
|
}, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
|
|
1391
1395
|
]),
|
|
1392
1396
|
l[0] || (l[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
|
|
1393
|
-
T("div",
|
|
1397
|
+
T("div", Gt, [
|
|
1394
1398
|
b(e(se), {
|
|
1395
1399
|
value: i.value,
|
|
1396
1400
|
"onUpdate:value": (m) => i.value = m,
|
|
@@ -1400,7 +1404,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1400
1404
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1401
1405
|
])
|
|
1402
1406
|
]))), 128)),
|
|
1403
|
-
b(e(
|
|
1407
|
+
b(e(Ne), {
|
|
1404
1408
|
onClick: c,
|
|
1405
1409
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1406
1410
|
size: "small"
|
|
@@ -1413,7 +1417,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1413
1417
|
})
|
|
1414
1418
|
]));
|
|
1415
1419
|
}
|
|
1416
|
-
}),
|
|
1420
|
+
}), Xt = /* @__PURE__ */ j(yt, [["__scopeId", "data-v-f9b2ac3d"]]), Ma = /* @__PURE__ */ C({
|
|
1417
1421
|
__name: "radioStatus",
|
|
1418
1422
|
props: {
|
|
1419
1423
|
/**
|
|
@@ -1441,13 +1445,13 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1441
1445
|
}
|
|
1442
1446
|
},
|
|
1443
1447
|
setup(v) {
|
|
1444
|
-
const r = v, a = h(JSON.parse(JSON.stringify(
|
|
1448
|
+
const r = v, a = h(JSON.parse(JSON.stringify(De.getOptions(r.dataKey))));
|
|
1445
1449
|
return r.all === !0 && a.value.unshift({
|
|
1446
1450
|
label: "全部",
|
|
1447
1451
|
value: r.allValue || [0, 1]
|
|
1448
|
-
}), (t, o) => (f(), _(
|
|
1452
|
+
}), (t, o) => (f(), _(Xt, { data: a.value }, null, 8, ["data"]));
|
|
1449
1453
|
}
|
|
1450
|
-
}),
|
|
1454
|
+
}), Na = /* @__PURE__ */ C({
|
|
1451
1455
|
__name: "index",
|
|
1452
1456
|
props: {
|
|
1453
1457
|
startDate: {},
|
|
@@ -1460,7 +1464,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1460
1464
|
const s = a.startDate, u = a.endDate;
|
|
1461
1465
|
if (!(!s || !u))
|
|
1462
1466
|
try {
|
|
1463
|
-
const l =
|
|
1467
|
+
const l = _e(s), i = _e(u);
|
|
1464
1468
|
return !l.isValid() || !i.isValid() ? void 0 : [l, i];
|
|
1465
1469
|
} catch {
|
|
1466
1470
|
return;
|
|
@@ -1474,8 +1478,8 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1474
1478
|
};
|
|
1475
1479
|
return (s, u) => {
|
|
1476
1480
|
var l;
|
|
1477
|
-
return f(), _(e(
|
|
1478
|
-
class:
|
|
1481
|
+
return f(), _(e(dt), {
|
|
1482
|
+
class: z([((l = e(n)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1479
1483
|
locale: e(ce),
|
|
1480
1484
|
"value-format": p.value,
|
|
1481
1485
|
value: d.value,
|
|
@@ -1483,27 +1487,27 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1483
1487
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1484
1488
|
};
|
|
1485
1489
|
}
|
|
1486
|
-
}),
|
|
1490
|
+
}), za = /* @__PURE__ */ j(bt, [["__scopeId", "data-v-bf782acb"]]), Aa = /* @__PURE__ */ C({
|
|
1487
1491
|
__name: "index",
|
|
1488
1492
|
setup(v) {
|
|
1489
1493
|
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1490
|
-
t != null && t.value.errClass && r &&
|
|
1494
|
+
t != null && t.value.errClass && r && q(r);
|
|
1491
1495
|
};
|
|
1492
1496
|
return (n, p) => {
|
|
1493
1497
|
var d;
|
|
1494
|
-
return f(), _(e(
|
|
1498
|
+
return f(), _(e(ct), B({
|
|
1495
1499
|
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1496
1500
|
"allow-clear": !0,
|
|
1497
1501
|
placeholder: "请输入" + e(a),
|
|
1498
1502
|
onBlur: o,
|
|
1499
|
-
onKeyup: p[0] || (p[0] =
|
|
1503
|
+
onKeyup: p[0] || (p[0] = ve(J(() => {
|
|
1500
1504
|
}, ["stop"]), ["enter", "native"])),
|
|
1501
|
-
onKeydown: p[1] || (p[1] =
|
|
1505
|
+
onKeydown: p[1] || (p[1] = ve(J(() => {
|
|
1502
1506
|
}, ["stop"]), ["enter", "native"]))
|
|
1503
1507
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1504
1508
|
};
|
|
1505
1509
|
}
|
|
1506
|
-
}),
|
|
1510
|
+
}), Zt = /* @__PURE__ */ C({
|
|
1507
1511
|
__name: "index",
|
|
1508
1512
|
props: {
|
|
1509
1513
|
autoload: { type: Boolean },
|
|
@@ -1523,13 +1527,13 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1523
1527
|
}
|
|
1524
1528
|
);
|
|
1525
1529
|
const u = (l) => {
|
|
1526
|
-
d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o &&
|
|
1530
|
+
d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o && q(o);
|
|
1527
1531
|
};
|
|
1528
1532
|
return K(async () => {
|
|
1529
1533
|
if (t.value) {
|
|
1530
1534
|
const l = o == null ? void 0 : o.page;
|
|
1531
1535
|
if (t.value.api || (t.value.api = l == null ? void 0 : l.api), t.value.authorize === void 0 && (t.value.authorize = l == null ? void 0 : l.authorize), a.autoload) {
|
|
1532
|
-
const i = await
|
|
1536
|
+
const i = await Be(o, {
|
|
1533
1537
|
urlKey: "list",
|
|
1534
1538
|
url: { ...t.value, url: t.value.url },
|
|
1535
1539
|
loadingText: !1,
|
|
@@ -1540,19 +1544,19 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1540
1544
|
}
|
|
1541
1545
|
}), (l, i) => {
|
|
1542
1546
|
var m;
|
|
1543
|
-
return f(), _(e(
|
|
1547
|
+
return f(), _(e(pt), B({
|
|
1544
1548
|
class: ((m = e(p)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1545
1549
|
placeholder: "请输入" + e(n),
|
|
1546
1550
|
targetKeys: s.value,
|
|
1547
1551
|
onChange: u
|
|
1548
1552
|
}, l.$attrs), {
|
|
1549
|
-
children: g(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll:
|
|
1553
|
+
children: g(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: M, onItemSelect: y, selectedKeys: E }) => [
|
|
1550
1554
|
I(l.$slots, "children", {
|
|
1551
1555
|
direction: x,
|
|
1552
1556
|
disabled: S,
|
|
1553
1557
|
filteredItems: F,
|
|
1554
|
-
onItemSelectAll:
|
|
1555
|
-
onItemSelect:
|
|
1558
|
+
onItemSelectAll: M,
|
|
1559
|
+
onItemSelect: y,
|
|
1556
1560
|
selectedKeys: E
|
|
1557
1561
|
})
|
|
1558
1562
|
]),
|
|
@@ -1615,7 +1619,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1615
1619
|
}), c = h([]);
|
|
1616
1620
|
return K(async () => {
|
|
1617
1621
|
if (o.value) {
|
|
1618
|
-
const s = await
|
|
1622
|
+
const s = await Be(a.gridCtrl, {
|
|
1619
1623
|
urlKey: "list",
|
|
1620
1624
|
url: { ...a.gridCtrl.gridUrl, url: a.gridCtrl.gridUrl.url },
|
|
1621
1625
|
params: a.gridCtrl.gridQuery,
|
|
@@ -1623,7 +1627,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1623
1627
|
});
|
|
1624
1628
|
c.value = (s == null ? void 0 : s.data) ?? [];
|
|
1625
1629
|
}
|
|
1626
|
-
}), (s, u) => (f(), _(
|
|
1630
|
+
}), (s, u) => (f(), _(Zt, B({
|
|
1627
1631
|
"data-source": c.value,
|
|
1628
1632
|
"row-key": (l) => l[p.value],
|
|
1629
1633
|
value: n.value,
|
|
@@ -1642,7 +1646,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1642
1646
|
}
|
|
1643
1647
|
}, s.$attrs), {
|
|
1644
1648
|
children: g(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
|
|
1645
|
-
b(e(
|
|
1649
|
+
b(e(ze), {
|
|
1646
1650
|
columns: v.gridCtrl.columns.value,
|
|
1647
1651
|
"row-key": p.value,
|
|
1648
1652
|
"row-selection": d({
|
|
@@ -1666,7 +1670,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1666
1670
|
_: 1
|
|
1667
1671
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
1668
1672
|
}
|
|
1669
|
-
}),
|
|
1673
|
+
}), ea = /* @__PURE__ */ C({
|
|
1670
1674
|
__name: "index",
|
|
1671
1675
|
props: {
|
|
1672
1676
|
multiple: {
|
|
@@ -1708,10 +1712,10 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1708
1712
|
label: "Name",
|
|
1709
1713
|
key: "Id",
|
|
1710
1714
|
value: "Id"
|
|
1711
|
-
}), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload &&
|
|
1715
|
+
}), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && Ie(a.treeCtrl);
|
|
1712
1716
|
}), (l, i) => {
|
|
1713
1717
|
var m;
|
|
1714
|
-
return f(), _(e(
|
|
1718
|
+
return f(), _(e(ft), B({
|
|
1715
1719
|
class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
|
|
1716
1720
|
"tree-line": "",
|
|
1717
1721
|
multiple: v.multiple,
|
|
@@ -1725,29 +1729,29 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1725
1729
|
}, l.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
1726
1730
|
};
|
|
1727
1731
|
}
|
|
1728
|
-
}), Oa = /* @__PURE__ */ j(
|
|
1732
|
+
}), Oa = /* @__PURE__ */ j(ea, [["__scopeId", "data-v-64be74cc"]]), ta = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, aa = { class: "flex w-full h-full min-h-full" }, la = {
|
|
1729
1733
|
key: 0,
|
|
1730
1734
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
1731
|
-
},
|
|
1735
|
+
}, ra = { class: "flex-1 h-full overflow-y-auto" }, Ea = /* @__PURE__ */ C({
|
|
1732
1736
|
__name: "index",
|
|
1733
1737
|
props: {
|
|
1734
1738
|
left: { type: Boolean }
|
|
1735
1739
|
},
|
|
1736
1740
|
setup(v) {
|
|
1737
|
-
const { useToken: r } =
|
|
1738
|
-
return (t, o) => (f(), w("div",
|
|
1739
|
-
b(e(
|
|
1741
|
+
const { useToken: r } = Fe, { token: a } = r();
|
|
1742
|
+
return (t, o) => (f(), w("div", ta, [
|
|
1743
|
+
b(e(vt), {
|
|
1740
1744
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
1741
1745
|
style: ne({
|
|
1742
1746
|
backgroundColor: e(a).colorBgContainer
|
|
1743
1747
|
})
|
|
1744
1748
|
}, {
|
|
1745
1749
|
default: g(() => [
|
|
1746
|
-
T("div",
|
|
1747
|
-
t.left ? (f(), w("div",
|
|
1750
|
+
T("div", aa, [
|
|
1751
|
+
t.left ? (f(), w("div", la, [
|
|
1748
1752
|
I(t.$slots, "left")
|
|
1749
1753
|
])) : k("", !0),
|
|
1750
|
-
T("div",
|
|
1754
|
+
T("div", ra, [
|
|
1751
1755
|
I(t.$slots, "default")
|
|
1752
1756
|
])
|
|
1753
1757
|
])
|
|
@@ -1756,7 +1760,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1756
1760
|
}, 8, ["style"])
|
|
1757
1761
|
]));
|
|
1758
1762
|
}
|
|
1759
|
-
}),
|
|
1763
|
+
}), oa = { class: "font-['Courier'] text-[#666]" }, Ya = /* @__PURE__ */ C({
|
|
1760
1764
|
__name: "index",
|
|
1761
1765
|
setup(v) {
|
|
1762
1766
|
const r = h("");
|
|
@@ -1765,54 +1769,54 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1765
1769
|
const a = /* @__PURE__ */ new Date(), t = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, o = a.toLocaleString(void 0, t).replace(/\//g, "-").replace(",", "");
|
|
1766
1770
|
r.value = a.getFullYear() + "-" + o;
|
|
1767
1771
|
}, 1e3);
|
|
1768
|
-
}), (a, t) => (f(), w("div",
|
|
1772
|
+
}), (a, t) => (f(), w("div", oa, D(r.value), 1));
|
|
1769
1773
|
}
|
|
1770
1774
|
});
|
|
1771
1775
|
export {
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1776
|
+
ja as AppIcon,
|
|
1777
|
+
$a as AutoComplete,
|
|
1778
|
+
Ha as Breadcrumb,
|
|
1779
|
+
A as Button,
|
|
1780
|
+
Sa as Cascader,
|
|
1781
|
+
Ta as Checkbox,
|
|
1782
|
+
Ea as Content,
|
|
1783
|
+
Da as DatePicker,
|
|
1784
|
+
Ya as Datetime,
|
|
1785
|
+
Ua as Dialog,
|
|
1786
|
+
xa as Drawer,
|
|
1787
|
+
ya as Form,
|
|
1788
|
+
ba as FormItem,
|
|
1789
|
+
_a as Fullscreen,
|
|
1790
|
+
Wa as Header,
|
|
1791
|
+
Ja as HeaderExits,
|
|
1792
|
+
Ct as Helper,
|
|
1793
|
+
Ga as Icon,
|
|
1794
|
+
zt as Icontool,
|
|
1795
|
+
jt as Input,
|
|
1796
|
+
Ia as InputIcon,
|
|
1797
|
+
Fa as InputNumber,
|
|
1798
|
+
Ba as InputPassword,
|
|
1799
|
+
ha as LayoutIcon,
|
|
1800
|
+
Xa as Menu,
|
|
1801
|
+
Za as MenuTabs,
|
|
1802
|
+
el as ProjectIcon,
|
|
1803
|
+
Pa as PropEditor,
|
|
1804
|
+
Xt as Radio,
|
|
1805
|
+
Ma as RadioStatus,
|
|
1806
|
+
Na as RangePicker,
|
|
1807
|
+
ka as Search,
|
|
1804
1808
|
le as SearchItem,
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1809
|
+
za as Select,
|
|
1810
|
+
Yt as Switch,
|
|
1811
|
+
Ca as Table,
|
|
1812
|
+
Mt as TableOperate,
|
|
1813
|
+
Aa as Textarea,
|
|
1810
1814
|
Y as ToolIcon,
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1815
|
+
Et as Toolbar,
|
|
1816
|
+
Qa as Tooltip,
|
|
1817
|
+
Zt as Transfer,
|
|
1814
1818
|
Ka as TransferTable,
|
|
1815
|
-
|
|
1819
|
+
wa as Tree,
|
|
1816
1820
|
Oa as TreeSelect,
|
|
1817
|
-
|
|
1821
|
+
al as UploadList
|
|
1818
1822
|
};
|