@skyfox2000/webui 1.0.7 → 1.0.9
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 +262 -261
- package/package.json +2 -2
- package/src/components/content/table/index.vue +1 -0
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: {},
|
|
@@ -453,7 +453,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
453
453
|
type: "primary",
|
|
454
454
|
visible: !0,
|
|
455
455
|
permit: ":edit",
|
|
456
|
-
click: () =>
|
|
456
|
+
click: () => Re(a, r.record)
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
key: "Delete",
|
|
@@ -464,13 +464,13 @@ const ga = /* @__PURE__ */ C({
|
|
|
464
464
|
permit: ":delete",
|
|
465
465
|
confirm: !0,
|
|
466
466
|
confirmText: "是否删除此记录?",
|
|
467
|
-
click: () =>
|
|
467
|
+
click: () => Ue(a, r.record)
|
|
468
468
|
}
|
|
469
|
-
], { buttons: o, menus: n } =
|
|
469
|
+
], { buttons: o, menus: n } = we(t, 0, a.operates), p = (d) => {
|
|
470
470
|
if (typeof d.disabled == "boolean")
|
|
471
471
|
return d.disabled;
|
|
472
472
|
if (typeof d.disabled == "function")
|
|
473
|
-
return
|
|
473
|
+
return Q(d, r.record) ?? !1;
|
|
474
474
|
if (r.record.hasOwnProperty("Enabled"))
|
|
475
475
|
switch (d.key) {
|
|
476
476
|
case "Edit":
|
|
@@ -481,8 +481,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
481
481
|
return !1;
|
|
482
482
|
};
|
|
483
483
|
return (d, c) => {
|
|
484
|
-
const s =
|
|
485
|
-
return f(), _(e(
|
|
484
|
+
const s = U("role"), u = U("permit");
|
|
485
|
+
return f(), _(e(ge), { theme: {
|
|
486
486
|
token: {
|
|
487
487
|
fontSize: 13
|
|
488
488
|
}
|
|
@@ -490,10 +490,10 @@ const ga = /* @__PURE__ */ C({
|
|
|
490
490
|
default: g(() => [
|
|
491
491
|
b(e(G), null, {
|
|
492
492
|
default: g(() => [
|
|
493
|
-
(f(!0), w(
|
|
493
|
+
(f(!0), w(N, null, L(e(o), (l) => (f(), w(N, {
|
|
494
494
|
key: l.key
|
|
495
495
|
}, [
|
|
496
|
-
e(H)(l, r.record) ? (f(), _(e(
|
|
496
|
+
e(H)(l, r.record) ? (f(), _(e(tt), {
|
|
497
497
|
key: 0,
|
|
498
498
|
disabled: p(l) || !l.confirm,
|
|
499
499
|
cancelText: "否",
|
|
@@ -504,7 +504,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
504
504
|
onConfirm: (i) => e(R)(l, e(a).page, e(a), r.record, !0)
|
|
505
505
|
}, {
|
|
506
506
|
default: g(() => [
|
|
507
|
-
e(H)(l, r.record) ? V((f(), _(e(
|
|
507
|
+
e(H)(l, r.record) ? V((f(), _(e(Ne), {
|
|
508
508
|
key: l.key,
|
|
509
509
|
type: l.type ?? "text",
|
|
510
510
|
danger: l.danger,
|
|
@@ -527,19 +527,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
527
527
|
_: 2
|
|
528
528
|
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
529
529
|
], 64))), 128)),
|
|
530
|
-
d.record.Enabled == 1 ? (f(), _(e(
|
|
530
|
+
d.record.Enabled == 1 ? (f(), _(e(ge), {
|
|
531
531
|
key: 0,
|
|
532
532
|
autoInsertSpaceInButton: !1
|
|
533
533
|
}, {
|
|
534
534
|
default: g(() => [
|
|
535
|
-
e(n).length > 0 ? (f(), _(e(
|
|
535
|
+
e(n).length > 0 ? (f(), _(e(at), {
|
|
536
536
|
key: 0,
|
|
537
537
|
size: "small"
|
|
538
538
|
}, {
|
|
539
539
|
overlay: g(() => [
|
|
540
540
|
b(e(ie), null, {
|
|
541
541
|
default: g(() => [
|
|
542
|
-
(f(!0), w(
|
|
542
|
+
(f(!0), w(N, null, L(e(n), (l) => (f(), w(N, {
|
|
543
543
|
key: l.key
|
|
544
544
|
}, [
|
|
545
545
|
e(H)(l, r.record) ? V((f(), _(e(de), {
|
|
@@ -577,13 +577,13 @@ const ga = /* @__PURE__ */ C({
|
|
|
577
577
|
});
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
|
-
}),
|
|
580
|
+
}), Nt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, zt = /* @__PURE__ */ C({
|
|
581
581
|
__name: "icontool",
|
|
582
582
|
props: {
|
|
583
583
|
gridCtrl: {}
|
|
584
584
|
},
|
|
585
585
|
setup(v) {
|
|
586
|
-
const r = v, a = r.gridCtrl, { tools: t } =
|
|
586
|
+
const r = v, a = r.gridCtrl, { tools: t } = qe(r.gridCtrl), o = be();
|
|
587
587
|
$(
|
|
588
588
|
() => a.selectable.value,
|
|
589
589
|
(d) => {
|
|
@@ -594,15 +594,15 @@ const ga = /* @__PURE__ */ C({
|
|
|
594
594
|
$(
|
|
595
595
|
() => a.columns.value,
|
|
596
596
|
(d) => {
|
|
597
|
-
n.value =
|
|
597
|
+
n.value = $e(d, !0);
|
|
598
598
|
},
|
|
599
599
|
{ deep: !0, immediate: !0 }
|
|
600
600
|
);
|
|
601
601
|
const p = () => {
|
|
602
|
-
a.columns.value.splice(0, a.columns.value.length, ...n.value), o.setTableColumns(
|
|
602
|
+
a.columns.value.splice(0, a.columns.value.length, ...n.value), o.setTableColumns(Ve.currentRoute.value.path, a.columns.value);
|
|
603
603
|
};
|
|
604
|
-
return (d, c) => (f(), w("div",
|
|
605
|
-
(f(!0), w(
|
|
604
|
+
return (d, c) => (f(), w("div", Nt, [
|
|
605
|
+
(f(!0), w(N, null, L(e(t), (s, u) => (f(), w(N, {
|
|
606
606
|
key: s.key
|
|
607
607
|
}, [
|
|
608
608
|
e(H)(s) && s.dropdown ? (f(), _(e(oe), {
|
|
@@ -612,9 +612,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
612
612
|
}, {
|
|
613
613
|
overlay: g(() => [
|
|
614
614
|
T("div", {
|
|
615
|
-
class:
|
|
615
|
+
class: z(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
|
|
616
616
|
}, [
|
|
617
|
-
s.dropdown === "headset" ? (f(), _(e(
|
|
617
|
+
s.dropdown === "headset" ? (f(), _(e(gt), {
|
|
618
618
|
key: 0,
|
|
619
619
|
modelValue: n.value,
|
|
620
620
|
"onUpdate:modelValue": c[1] || (c[1] = (l) => n.value = l),
|
|
@@ -623,18 +623,18 @@ const ga = /* @__PURE__ */ C({
|
|
|
623
623
|
handle: ".drag-handle"
|
|
624
624
|
}, {
|
|
625
625
|
default: g(() => [
|
|
626
|
-
(f(!0), w(
|
|
626
|
+
(f(!0), w(N, null, L(n.value, (l) => (f(), w("div", {
|
|
627
627
|
key: l.name,
|
|
628
628
|
onClick: c[0] || (c[0] = J(() => {
|
|
629
629
|
}, ["stop"])),
|
|
630
630
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
631
631
|
}, [
|
|
632
632
|
c[2] || (c[2] = T("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
633
|
-
b(e(
|
|
633
|
+
b(e(lt), {
|
|
634
634
|
checked: l.visible !== !1,
|
|
635
635
|
onChange: J(
|
|
636
636
|
(i) => {
|
|
637
|
-
e(
|
|
637
|
+
e(Qe)(l, i.target.checked);
|
|
638
638
|
},
|
|
639
639
|
["stop", "prevent"]
|
|
640
640
|
),
|
|
@@ -652,13 +652,13 @@ const ga = /* @__PURE__ */ C({
|
|
|
652
652
|
], 2)
|
|
653
653
|
]),
|
|
654
654
|
default: g(() => [
|
|
655
|
-
b(e(
|
|
656
|
-
class:
|
|
655
|
+
b(e(A), {
|
|
656
|
+
class: z([
|
|
657
657
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
658
658
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
659
659
|
u === e(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
660
660
|
]),
|
|
661
|
-
disabled: e(
|
|
661
|
+
disabled: e(Q)(s),
|
|
662
662
|
tiptext: s.label,
|
|
663
663
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
664
664
|
}, {
|
|
@@ -673,14 +673,14 @@ const ga = /* @__PURE__ */ C({
|
|
|
673
673
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
674
674
|
]),
|
|
675
675
|
_: 2
|
|
676
|
-
}, 1024)) : !s.children && e(H)(s) ? (f(), _(e(
|
|
676
|
+
}, 1024)) : !s.children && e(H)(s) ? (f(), _(e(A), {
|
|
677
677
|
key: 1,
|
|
678
|
-
class:
|
|
678
|
+
class: z([
|
|
679
679
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
680
680
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
681
681
|
u === e(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
682
682
|
]),
|
|
683
|
-
disabled: e(
|
|
683
|
+
disabled: e(Q)(s),
|
|
684
684
|
tiptext: s.label,
|
|
685
685
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
686
686
|
}, {
|
|
@@ -700,9 +700,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
700
700
|
overlay: g(() => [
|
|
701
701
|
b(e(ie), null, {
|
|
702
702
|
default: g(() => [
|
|
703
|
-
(f(!0), w(
|
|
703
|
+
(f(!0), w(N, null, L(s.children, (l) => (f(), _(e(de), {
|
|
704
704
|
key: l.key,
|
|
705
|
-
disabled: e(
|
|
705
|
+
disabled: e(Q)(l)
|
|
706
706
|
}, {
|
|
707
707
|
default: g(() => [
|
|
708
708
|
P(D(l.label), 1)
|
|
@@ -714,12 +714,12 @@ const ga = /* @__PURE__ */ C({
|
|
|
714
714
|
}, 1024)
|
|
715
715
|
]),
|
|
716
716
|
default: g(() => [
|
|
717
|
-
b(e(
|
|
718
|
-
class:
|
|
717
|
+
b(e(A), {
|
|
718
|
+
class: z([
|
|
719
719
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
720
720
|
u === 0 ? "rounded-l-[5px]" : ""
|
|
721
721
|
]),
|
|
722
|
-
disabled: e(
|
|
722
|
+
disabled: e(Q)(s),
|
|
723
723
|
tiptext: s.label,
|
|
724
724
|
icon: s.icon,
|
|
725
725
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
@@ -739,7 +739,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
739
739
|
], 64))), 128))
|
|
740
740
|
]));
|
|
741
741
|
}
|
|
742
|
-
}),
|
|
742
|
+
}), At = { class: "flex justify-between mb-[10px]" }, Kt = { key: 1 }, Ot = 3, Et = /* @__PURE__ */ C({
|
|
743
743
|
__name: "index",
|
|
744
744
|
props: {
|
|
745
745
|
gridCtrl: {},
|
|
@@ -755,7 +755,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
755
755
|
danger: !0,
|
|
756
756
|
permit: ":new",
|
|
757
757
|
// 默认仅受权限码控制
|
|
758
|
-
click: () =>
|
|
758
|
+
click: () => je(o)
|
|
759
759
|
}
|
|
760
760
|
], p = h([]), d = h([]);
|
|
761
761
|
return $(
|
|
@@ -765,7 +765,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
765
765
|
},
|
|
766
766
|
() => {
|
|
767
767
|
var u;
|
|
768
|
-
const { buttons: c, menus: s } =
|
|
768
|
+
const { buttons: c, menus: s } = we(
|
|
769
769
|
n,
|
|
770
770
|
a.flat !== void 0 ? a.flat : Ot,
|
|
771
771
|
(u = a.buttons) == null ? void 0 : u.value
|
|
@@ -777,15 +777,15 @@ const ga = /* @__PURE__ */ C({
|
|
|
777
777
|
immediate: !0
|
|
778
778
|
}
|
|
779
779
|
), (c, s) => {
|
|
780
|
-
const u =
|
|
781
|
-
return f(), w("div",
|
|
780
|
+
const u = U("role"), l = U("permit");
|
|
781
|
+
return f(), w("div", At, [
|
|
782
782
|
b(e(G), null, {
|
|
783
783
|
default: g(() => [
|
|
784
|
-
(f(!0), w(
|
|
784
|
+
(f(!0), w(N, null, L(p.value, (i) => V((f(), _(e(A), {
|
|
785
785
|
key: i.key,
|
|
786
786
|
type: i.type,
|
|
787
787
|
danger: i.danger,
|
|
788
|
-
disabled: e(
|
|
788
|
+
disabled: e(Q)(i),
|
|
789
789
|
icon: i.icon,
|
|
790
790
|
onClick: (m) => e(R)(i, e(t), e(a))
|
|
791
791
|
}, {
|
|
@@ -801,9 +801,9 @@ const ga = /* @__PURE__ */ C({
|
|
|
801
801
|
overlay: g(() => [
|
|
802
802
|
b(e(ie), null, {
|
|
803
803
|
default: g(() => [
|
|
804
|
-
(f(!0), w(
|
|
804
|
+
(f(!0), w(N, null, L(d.value, (i) => V((f(), _(e(de), {
|
|
805
805
|
key: i.key,
|
|
806
|
-
disabled: e(
|
|
806
|
+
disabled: e(Q)(i),
|
|
807
807
|
onClick: (m) => e(R)(i, e(t), e(a))
|
|
808
808
|
}, {
|
|
809
809
|
default: g(() => [
|
|
@@ -819,7 +819,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
819
819
|
})
|
|
820
820
|
]),
|
|
821
821
|
default: g(() => [
|
|
822
|
-
b(e(
|
|
822
|
+
b(e(A), null, {
|
|
823
823
|
default: g(() => s[0] || (s[0] = [
|
|
824
824
|
P(" 更多操作 ")
|
|
825
825
|
])),
|
|
@@ -835,14 +835,14 @@ const ga = /* @__PURE__ */ C({
|
|
|
835
835
|
}),
|
|
836
836
|
b(e(G), { class: "mr-1" }, {
|
|
837
837
|
default: g(() => [
|
|
838
|
-
(f(), _(Ke(
|
|
838
|
+
(f(), _(Ke(zt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
|
|
839
839
|
]),
|
|
840
840
|
_: 1
|
|
841
841
|
})
|
|
842
842
|
]);
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
}),
|
|
845
|
+
}), Yt = /* @__PURE__ */ C({
|
|
846
846
|
__name: "index",
|
|
847
847
|
props: {
|
|
848
848
|
/**
|
|
@@ -856,19 +856,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
856
856
|
emits: ["change"],
|
|
857
857
|
setup(v, { emit: r }) {
|
|
858
858
|
const a = v, t = h([]), o = r, { editorCtrl: n, errInfo: p } = O(), d = (c) => {
|
|
859
|
-
p != null && p.value.errClass && n &&
|
|
859
|
+
p != null && p.value.errClass && n && q(n), o("change", c);
|
|
860
860
|
};
|
|
861
861
|
return K(() => {
|
|
862
862
|
if (!a.data || a.data.length != 2) {
|
|
863
|
-
console.error("Switch组件: ", a.data),
|
|
863
|
+
console.error("Switch组件: ", a.data), _t.error("Switch组件必须有且只有两个选项");
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
|
-
|
|
867
|
-
}),
|
|
868
|
-
|
|
866
|
+
Se(!1, a, t);
|
|
867
|
+
}), ye(() => {
|
|
868
|
+
Te(a);
|
|
869
869
|
}), (c, s) => {
|
|
870
870
|
var u;
|
|
871
|
-
return t.value.length === 2 ? (f(), _(e(
|
|
871
|
+
return t.value.length === 2 ? (f(), _(e(rt), B({
|
|
872
872
|
key: 0,
|
|
873
873
|
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
874
|
checkedChildren: t.value[0].label,
|
|
@@ -879,7 +879,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
879
879
|
}, c.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
}),
|
|
882
|
+
}), Ca = /* @__PURE__ */ C({
|
|
883
883
|
inheritAttrs: !1,
|
|
884
884
|
__name: "index",
|
|
885
885
|
props: {
|
|
@@ -900,7 +900,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
900
900
|
pageSize: o.value,
|
|
901
901
|
showTotal: (i) => `共 ${i} 条记录`,
|
|
902
902
|
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 &&
|
|
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 && me(t));
|
|
904
904
|
},
|
|
905
905
|
...r.pagination
|
|
906
906
|
});
|
|
@@ -936,7 +936,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
936
936
|
), $(
|
|
937
937
|
() => t.columns.value,
|
|
938
938
|
() => {
|
|
939
|
-
c.value =
|
|
939
|
+
c.value = $e(t.columns.value);
|
|
940
940
|
},
|
|
941
941
|
{ deep: !0, immediate: !0 }
|
|
942
942
|
);
|
|
@@ -944,19 +944,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
944
944
|
return Oe(() => {
|
|
945
945
|
l.value && t && (t.reload.value = !0);
|
|
946
946
|
}), K(async () => {
|
|
947
|
-
|
|
947
|
+
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
948
|
l.value = !0;
|
|
949
949
|
}, 50);
|
|
950
950
|
}), (i, m) => {
|
|
951
|
-
var
|
|
952
|
-
const x =
|
|
953
|
-
return f(), w(
|
|
954
|
-
(
|
|
951
|
+
var F, M;
|
|
952
|
+
const x = U("role"), S = U("permit");
|
|
953
|
+
return f(), w(N, null, [
|
|
954
|
+
(F = e(t).buttons) != null && F.value.length || (M = e(t).tools) != null && M.length ? (f(), _(Et, {
|
|
955
955
|
key: 0,
|
|
956
956
|
"grid-ctrl": e(t),
|
|
957
957
|
"editor-ctrl": e(t).editor
|
|
958
958
|
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
959
|
-
l.value ? (f(), _(e(
|
|
959
|
+
l.value ? (f(), _(e(ze), B({
|
|
960
960
|
key: 1,
|
|
961
961
|
class: "w-full",
|
|
962
962
|
"row-key": r.primaryKey ?? e(t).primaryKey ?? "Id",
|
|
@@ -970,32 +970,33 @@ const ga = /* @__PURE__ */ C({
|
|
|
970
970
|
bordered: ""
|
|
971
971
|
}, e(a)), {
|
|
972
972
|
bodyCell: g((y) => {
|
|
973
|
-
var
|
|
973
|
+
var E, pe;
|
|
974
974
|
return [
|
|
975
975
|
I(i.$slots, "bodyCell", {
|
|
976
976
|
column: y == null ? void 0 : y.column,
|
|
977
977
|
record: y == null ? void 0 : y.record
|
|
978
978
|
}),
|
|
979
|
-
e(t) && ((
|
|
979
|
+
e(t) && ((E = y == null ? void 0 : y.column) == null ? void 0 : E.dataIndex) === "enabled" ? V((f(), _(Yt, {
|
|
980
980
|
key: 0,
|
|
981
981
|
checked: y.record.Enabled,
|
|
982
|
-
"onUpdate:checked": (
|
|
982
|
+
"onUpdate:checked": (fe) => y.record.Enabled = fe,
|
|
983
983
|
disabled: i.statusDisabled ? i.statusDisabled(y.record) : !1,
|
|
984
|
-
data: e(
|
|
985
|
-
onClick: (
|
|
986
|
-
class:
|
|
984
|
+
data: e(De).EnableDisable,
|
|
985
|
+
onClick: (fe) => e(We)(e(t), y.record),
|
|
986
|
+
class: z([
|
|
987
987
|
"w-[58px]",
|
|
988
988
|
i.statusDisabled && i.statusDisabled(y.record) ? "cursor-not-allowed disabled" : ""
|
|
989
989
|
]),
|
|
990
990
|
loading: y == null ? void 0 : y.record.isLoading
|
|
991
991
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
992
|
-
[x, "
|
|
992
|
+
[x, ["Super", "Admin"]],
|
|
993
|
+
[S, ":enabled", "disable"]
|
|
993
994
|
]) : k("", !0),
|
|
994
|
-
e(t) && ((
|
|
995
|
+
e(t) && ((pe = y == null ? void 0 : y.column) == null ? void 0 : pe.dataIndex) === "operation" ? I(i.$slots, "operate", {
|
|
995
996
|
key: 1,
|
|
996
997
|
record: y == null ? void 0 : y.record
|
|
997
998
|
}, () => [
|
|
998
|
-
b(
|
|
999
|
+
b(Mt, {
|
|
999
1000
|
record: y == null ? void 0 : y.record,
|
|
1000
1001
|
"grid-ctrl": e(t)
|
|
1001
1002
|
}, null, 8, ["record", "grid-ctrl"])
|
|
@@ -1007,7 +1008,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
1007
1008
|
], 64);
|
|
1008
1009
|
};
|
|
1009
1010
|
}
|
|
1010
|
-
}),
|
|
1011
|
+
}), Lt = { class: "flex items-center gap-1" }, Rt = { class: "text-nowrap" }, wa = /* @__PURE__ */ C({
|
|
1011
1012
|
__name: "index",
|
|
1012
1013
|
props: {
|
|
1013
1014
|
treeCtrl: {},
|
|
@@ -1048,8 +1049,8 @@ const ga = /* @__PURE__ */ C({
|
|
|
1048
1049
|
key: "Id",
|
|
1049
1050
|
value: "Id",
|
|
1050
1051
|
icon: "Icon"
|
|
1051
|
-
}), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload &&
|
|
1052
|
-
}), (u, l) => (f(), _(e(
|
|
1052
|
+
}), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload && Ie(o);
|
|
1053
|
+
}), (u, l) => (f(), _(e(ot), B({
|
|
1053
1054
|
class: "w-full",
|
|
1054
1055
|
"show-line": !0,
|
|
1055
1056
|
"tree-data": n.value,
|
|
@@ -1065,22 +1066,22 @@ const ga = /* @__PURE__ */ C({
|
|
|
1065
1066
|
key: i,
|
|
1066
1067
|
icon: x
|
|
1067
1068
|
}, () => [
|
|
1068
|
-
T("div",
|
|
1069
|
+
T("div", Lt, [
|
|
1069
1070
|
b(e(Y), { icon: x }, null, 8, ["icon"]),
|
|
1070
|
-
T("span",
|
|
1071
|
+
T("span", Rt, D(m), 1)
|
|
1071
1072
|
])
|
|
1072
1073
|
])
|
|
1073
1074
|
]),
|
|
1074
1075
|
_: 3
|
|
1075
1076
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1076
1077
|
}
|
|
1077
|
-
}),
|
|
1078
|
+
}), $a = /* @__PURE__ */ j(ht, [["__scopeId", "data-v-1e39ad49"]]), Ut = {
|
|
1078
1079
|
key: 0,
|
|
1079
1080
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1080
|
-
},
|
|
1081
|
+
}, qt = /* @__PURE__ */ C({
|
|
1081
1082
|
inheritAttrs: !1,
|
|
1082
1083
|
__name: "index",
|
|
1083
|
-
props:
|
|
1084
|
+
props: Je,
|
|
1084
1085
|
emits: ["change", "update:labels", "update:value"],
|
|
1085
1086
|
setup(v, { emit: r }) {
|
|
1086
1087
|
var m, x, S;
|
|
@@ -1100,16 +1101,16 @@ const ga = /* @__PURE__ */ C({
|
|
|
1100
1101
|
);
|
|
1101
1102
|
const u = r;
|
|
1102
1103
|
n.inputEmit = u;
|
|
1103
|
-
const l = h([]), i = (F,
|
|
1104
|
-
if (!
|
|
1104
|
+
const l = h([]), i = (F, M) => {
|
|
1105
|
+
if (!M || M.length === 0) {
|
|
1105
1106
|
u("update:labels", []), u("update:value", []);
|
|
1106
1107
|
return;
|
|
1107
1108
|
}
|
|
1108
|
-
const
|
|
1109
|
-
u("update:labels",
|
|
1109
|
+
const y = M.map((E) => E.label);
|
|
1110
|
+
u("update:labels", y), u(
|
|
1110
1111
|
"update:value",
|
|
1111
|
-
|
|
1112
|
-
), d != null && d.value.errClass && p &&
|
|
1112
|
+
M.map((E) => E.value)
|
|
1113
|
+
), d != null && d.value.errClass && p && q(p);
|
|
1113
1114
|
};
|
|
1114
1115
|
return K(() => {
|
|
1115
1116
|
o.value && !o.value.fieldMap && (o.value.fieldMap = {
|
|
@@ -1117,19 +1118,19 @@ const ga = /* @__PURE__ */ C({
|
|
|
1117
1118
|
label: "Name",
|
|
1118
1119
|
value: "Id",
|
|
1119
1120
|
key: "Id"
|
|
1120
|
-
}),
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1123
|
-
}), (F,
|
|
1124
|
-
var
|
|
1121
|
+
}), Se(a.autoload, a, l, n, o.value, o.value.params);
|
|
1122
|
+
}), ye(() => {
|
|
1123
|
+
Te(a, n);
|
|
1124
|
+
}), (F, M) => {
|
|
1125
|
+
var y;
|
|
1125
1126
|
return f(), w("div", null, [
|
|
1126
|
-
l.value.length ? k("", !0) : (f(), w("div",
|
|
1127
|
-
b(e(
|
|
1128
|
-
|
|
1127
|
+
l.value.length ? k("", !0) : (f(), w("div", Ut, [
|
|
1128
|
+
b(e(Ge), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1129
|
+
M[0] || (M[0] = T("span", null, "数据加载中...", -1))
|
|
1129
1130
|
])),
|
|
1130
|
-
b(e(
|
|
1131
|
+
b(e(st), B({
|
|
1131
1132
|
options: l.value,
|
|
1132
|
-
class: [(
|
|
1133
|
+
class: [(y = e(d)) == null ? void 0 : y.errClass],
|
|
1133
1134
|
"allow-clear": !0,
|
|
1134
1135
|
placeholder: l.value.length > 0 ? "请选择" + e(c) : "",
|
|
1135
1136
|
onChange: i
|
|
@@ -1137,7 +1138,7 @@ const ga = /* @__PURE__ */ C({
|
|
|
1137
1138
|
]);
|
|
1138
1139
|
};
|
|
1139
1140
|
}
|
|
1140
|
-
}),
|
|
1141
|
+
}), Sa = /* @__PURE__ */ j(qt, [["__scopeId", "data-v-05e57a52"]]), Ta = /* @__PURE__ */ j(xt, [["__scopeId", "data-v-dc59fe7f"]]);
|
|
1141
1142
|
function te() {
|
|
1142
1143
|
return te = Object.assign ? Object.assign.bind() : function(v) {
|
|
1143
1144
|
for (var r = 1; r < arguments.length; r++) {
|
|
@@ -1147,7 +1148,7 @@ function te() {
|
|
|
1147
1148
|
return v;
|
|
1148
1149
|
}, te.apply(null, arguments);
|
|
1149
1150
|
}
|
|
1150
|
-
const
|
|
1151
|
+
const Qt = {
|
|
1151
1152
|
locale: "zh_CN",
|
|
1152
1153
|
today: "今天",
|
|
1153
1154
|
now: "此刻",
|
|
@@ -1174,7 +1175,7 @@ const qt = {
|
|
|
1174
1175
|
nextDecade: "下一年代",
|
|
1175
1176
|
previousCentury: "上一世纪",
|
|
1176
1177
|
nextCentury: "下一世纪"
|
|
1177
|
-
},
|
|
1178
|
+
}, Vt = {
|
|
1178
1179
|
placeholder: "请选择时间",
|
|
1179
1180
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1180
1181
|
}, ce = {
|
|
@@ -1189,23 +1190,23 @@ const qt = {
|
|
|
1189
1190
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1190
1191
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1191
1192
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1192
|
-
},
|
|
1193
|
-
timePickerLocale: te({},
|
|
1193
|
+
}, Qt),
|
|
1194
|
+
timePickerLocale: te({}, Vt)
|
|
1194
1195
|
};
|
|
1195
1196
|
ce.lang.ok = "确定";
|
|
1196
|
-
const
|
|
1197
|
+
const Da = /* @__PURE__ */ C({
|
|
1197
1198
|
__name: "index",
|
|
1198
1199
|
props: {
|
|
1199
1200
|
valueFormat: {}
|
|
1200
1201
|
},
|
|
1201
1202
|
setup(v) {
|
|
1202
1203
|
const r = v, { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1203
|
-
o != null && o.value.errClass && a &&
|
|
1204
|
+
o != null && o.value.errClass && a && q(a);
|
|
1204
1205
|
}, p = h(r.valueFormat ?? "YYYY-MM-DD");
|
|
1205
1206
|
return (d, c) => {
|
|
1206
1207
|
var s;
|
|
1207
|
-
return f(), _(e(
|
|
1208
|
-
class:
|
|
1208
|
+
return f(), _(e(nt), {
|
|
1209
|
+
class: z([[((s = e(o)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
|
|
1209
1210
|
placeholder: "请选择" + e(t),
|
|
1210
1211
|
locale: e(ce),
|
|
1211
1212
|
valueFormat: p.value,
|
|
@@ -1213,7 +1214,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1213
1214
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1214
1215
|
};
|
|
1215
1216
|
}
|
|
1216
|
-
}),
|
|
1217
|
+
}), jt = /* @__PURE__ */ C({
|
|
1217
1218
|
__name: "index",
|
|
1218
1219
|
props: {
|
|
1219
1220
|
value: {}
|
|
@@ -1221,7 +1222,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1221
1222
|
emits: ["update:value"],
|
|
1222
1223
|
setup(v, { emit: r }) {
|
|
1223
1224
|
const { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1224
|
-
o != null && o.value.errClass && a &&
|
|
1225
|
+
o != null && o.value.errClass && a && q(a);
|
|
1225
1226
|
}, p = v, d = r, c = h(p.value);
|
|
1226
1227
|
$(
|
|
1227
1228
|
() => p.value,
|
|
@@ -1257,7 +1258,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1257
1258
|
placeholder: "请输入" + e(t),
|
|
1258
1259
|
onBlur: n,
|
|
1259
1260
|
onChange: s
|
|
1260
|
-
}, u.$attrs),
|
|
1261
|
+
}, u.$attrs), xe({ _: 2 }, [
|
|
1261
1262
|
u.$slots.addonBefore ? {
|
|
1262
1263
|
name: "addonBefore",
|
|
1263
1264
|
fn: g(() => [
|
|
@@ -1275,7 +1276,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1275
1276
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1276
1277
|
};
|
|
1277
1278
|
}
|
|
1278
|
-
}),
|
|
1279
|
+
}), Ht = /* @__PURE__ */ C({
|
|
1279
1280
|
__name: "inputIcon",
|
|
1280
1281
|
props: {
|
|
1281
1282
|
value: {}
|
|
@@ -1294,7 +1295,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1294
1295
|
(n) => {
|
|
1295
1296
|
t("update:value", n);
|
|
1296
1297
|
}
|
|
1297
|
-
), (n, p) => (f(), _(
|
|
1298
|
+
), (n, p) => (f(), _(jt, B({
|
|
1298
1299
|
class: ["w-[80%]"],
|
|
1299
1300
|
value: o.value,
|
|
1300
1301
|
"onUpdate:value": p[0] || (p[0] = (d) => o.value = d)
|
|
@@ -1308,15 +1309,15 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1308
1309
|
_: 1
|
|
1309
1310
|
}, 16, ["value"]));
|
|
1310
1311
|
}
|
|
1311
|
-
}),
|
|
1312
|
+
}), Ia = /* @__PURE__ */ j(Ht, [["__scopeId", "data-v-f7b3ed74"]]), Ba = /* @__PURE__ */ C({
|
|
1312
1313
|
__name: "inputPassword",
|
|
1313
1314
|
setup(v) {
|
|
1314
1315
|
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1315
|
-
t != null && t.value.errClass && r &&
|
|
1316
|
+
t != null && t.value.errClass && r && q(r);
|
|
1316
1317
|
};
|
|
1317
1318
|
return (n, p) => {
|
|
1318
1319
|
var d;
|
|
1319
|
-
return f(), _(e(
|
|
1320
|
+
return f(), _(e(ut), B({
|
|
1320
1321
|
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1321
1322
|
"allow-clear": !0,
|
|
1322
1323
|
autocomplete: "new-password",
|
|
@@ -1325,15 +1326,15 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1325
1326
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1326
1327
|
};
|
|
1327
1328
|
}
|
|
1328
|
-
}),
|
|
1329
|
+
}), Fa = /* @__PURE__ */ C({
|
|
1329
1330
|
__name: "inputNumber",
|
|
1330
1331
|
setup(v) {
|
|
1331
1332
|
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1332
|
-
t != null && t.value.errClass && r &&
|
|
1333
|
+
t != null && t.value.errClass && r && q(r);
|
|
1333
1334
|
};
|
|
1334
1335
|
return (n, p) => {
|
|
1335
1336
|
var d;
|
|
1336
|
-
return f(), _(e(
|
|
1337
|
+
return f(), _(e(it), B({
|
|
1337
1338
|
class: [[((d = e(t)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1338
1339
|
onBlur: o,
|
|
1339
1340
|
"allow-clear": !1,
|
|
@@ -1341,7 +1342,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1341
1342
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1342
1343
|
};
|
|
1343
1344
|
}
|
|
1344
|
-
}),
|
|
1345
|
+
}), Wt = { class: "flex flex-col gap-2" }, Jt = { class: "w-[33%]" }, Gt = { class: "w-[64%]" }, Pa = /* @__PURE__ */ C({
|
|
1345
1346
|
__name: "index",
|
|
1346
1347
|
props: {
|
|
1347
1348
|
value: {},
|
|
@@ -1374,12 +1375,12 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1374
1375
|
}, s = () => {
|
|
1375
1376
|
d();
|
|
1376
1377
|
};
|
|
1377
|
-
return (u, l) => (f(), w("div",
|
|
1378
|
-
(f(!0), w(
|
|
1378
|
+
return (u, l) => (f(), w("div", Wt, [
|
|
1379
|
+
(f(!0), w(N, null, L(o.value, (i) => (f(), w("div", {
|
|
1379
1380
|
key: i.id,
|
|
1380
1381
|
class: "flex items-center gap-2"
|
|
1381
1382
|
}, [
|
|
1382
|
-
T("div",
|
|
1383
|
+
T("div", Jt, [
|
|
1383
1384
|
b(e(se), {
|
|
1384
1385
|
value: i.field,
|
|
1385
1386
|
"onUpdate:value": (m) => i.field = m,
|
|
@@ -1390,7 +1391,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1390
1391
|
}, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
|
|
1391
1392
|
]),
|
|
1392
1393
|
l[0] || (l[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
|
|
1393
|
-
T("div",
|
|
1394
|
+
T("div", Gt, [
|
|
1394
1395
|
b(e(se), {
|
|
1395
1396
|
value: i.value,
|
|
1396
1397
|
"onUpdate:value": (m) => i.value = m,
|
|
@@ -1400,7 +1401,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1400
1401
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1401
1402
|
])
|
|
1402
1403
|
]))), 128)),
|
|
1403
|
-
b(e(
|
|
1404
|
+
b(e(Ne), {
|
|
1404
1405
|
onClick: c,
|
|
1405
1406
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1406
1407
|
size: "small"
|
|
@@ -1413,7 +1414,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1413
1414
|
})
|
|
1414
1415
|
]));
|
|
1415
1416
|
}
|
|
1416
|
-
}),
|
|
1417
|
+
}), Xt = /* @__PURE__ */ j(yt, [["__scopeId", "data-v-f9b2ac3d"]]), Ma = /* @__PURE__ */ C({
|
|
1417
1418
|
__name: "radioStatus",
|
|
1418
1419
|
props: {
|
|
1419
1420
|
/**
|
|
@@ -1441,13 +1442,13 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1441
1442
|
}
|
|
1442
1443
|
},
|
|
1443
1444
|
setup(v) {
|
|
1444
|
-
const r = v, a = h(JSON.parse(JSON.stringify(
|
|
1445
|
+
const r = v, a = h(JSON.parse(JSON.stringify(De.getOptions(r.dataKey))));
|
|
1445
1446
|
return r.all === !0 && a.value.unshift({
|
|
1446
1447
|
label: "全部",
|
|
1447
1448
|
value: r.allValue || [0, 1]
|
|
1448
|
-
}), (t, o) => (f(), _(
|
|
1449
|
+
}), (t, o) => (f(), _(Xt, { data: a.value }, null, 8, ["data"]));
|
|
1449
1450
|
}
|
|
1450
|
-
}),
|
|
1451
|
+
}), Na = /* @__PURE__ */ C({
|
|
1451
1452
|
__name: "index",
|
|
1452
1453
|
props: {
|
|
1453
1454
|
startDate: {},
|
|
@@ -1460,7 +1461,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1460
1461
|
const s = a.startDate, u = a.endDate;
|
|
1461
1462
|
if (!(!s || !u))
|
|
1462
1463
|
try {
|
|
1463
|
-
const l =
|
|
1464
|
+
const l = _e(s), i = _e(u);
|
|
1464
1465
|
return !l.isValid() || !i.isValid() ? void 0 : [l, i];
|
|
1465
1466
|
} catch {
|
|
1466
1467
|
return;
|
|
@@ -1474,8 +1475,8 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1474
1475
|
};
|
|
1475
1476
|
return (s, u) => {
|
|
1476
1477
|
var l;
|
|
1477
|
-
return f(), _(e(
|
|
1478
|
-
class:
|
|
1478
|
+
return f(), _(e(dt), {
|
|
1479
|
+
class: z([((l = e(n)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1479
1480
|
locale: e(ce),
|
|
1480
1481
|
"value-format": p.value,
|
|
1481
1482
|
value: d.value,
|
|
@@ -1483,27 +1484,27 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1483
1484
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1484
1485
|
};
|
|
1485
1486
|
}
|
|
1486
|
-
}),
|
|
1487
|
+
}), za = /* @__PURE__ */ j(bt, [["__scopeId", "data-v-bf782acb"]]), Aa = /* @__PURE__ */ C({
|
|
1487
1488
|
__name: "index",
|
|
1488
1489
|
setup(v) {
|
|
1489
1490
|
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1490
|
-
t != null && t.value.errClass && r &&
|
|
1491
|
+
t != null && t.value.errClass && r && q(r);
|
|
1491
1492
|
};
|
|
1492
1493
|
return (n, p) => {
|
|
1493
1494
|
var d;
|
|
1494
|
-
return f(), _(e(
|
|
1495
|
+
return f(), _(e(ct), B({
|
|
1495
1496
|
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1496
1497
|
"allow-clear": !0,
|
|
1497
1498
|
placeholder: "请输入" + e(a),
|
|
1498
1499
|
onBlur: o,
|
|
1499
|
-
onKeyup: p[0] || (p[0] =
|
|
1500
|
+
onKeyup: p[0] || (p[0] = ve(J(() => {
|
|
1500
1501
|
}, ["stop"]), ["enter", "native"])),
|
|
1501
|
-
onKeydown: p[1] || (p[1] =
|
|
1502
|
+
onKeydown: p[1] || (p[1] = ve(J(() => {
|
|
1502
1503
|
}, ["stop"]), ["enter", "native"]))
|
|
1503
1504
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1504
1505
|
};
|
|
1505
1506
|
}
|
|
1506
|
-
}),
|
|
1507
|
+
}), Zt = /* @__PURE__ */ C({
|
|
1507
1508
|
__name: "index",
|
|
1508
1509
|
props: {
|
|
1509
1510
|
autoload: { type: Boolean },
|
|
@@ -1523,13 +1524,13 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1523
1524
|
}
|
|
1524
1525
|
);
|
|
1525
1526
|
const u = (l) => {
|
|
1526
|
-
d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o &&
|
|
1527
|
+
d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o && q(o);
|
|
1527
1528
|
};
|
|
1528
1529
|
return K(async () => {
|
|
1529
1530
|
if (t.value) {
|
|
1530
1531
|
const l = o == null ? void 0 : o.page;
|
|
1531
1532
|
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
|
|
1533
|
+
const i = await Be(o, {
|
|
1533
1534
|
urlKey: "list",
|
|
1534
1535
|
url: { ...t.value, url: t.value.url },
|
|
1535
1536
|
loadingText: !1,
|
|
@@ -1540,19 +1541,19 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1540
1541
|
}
|
|
1541
1542
|
}), (l, i) => {
|
|
1542
1543
|
var m;
|
|
1543
|
-
return f(), _(e(
|
|
1544
|
+
return f(), _(e(pt), B({
|
|
1544
1545
|
class: ((m = e(p)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1545
1546
|
placeholder: "请输入" + e(n),
|
|
1546
1547
|
targetKeys: s.value,
|
|
1547
1548
|
onChange: u
|
|
1548
1549
|
}, l.$attrs), {
|
|
1549
|
-
children: g(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll:
|
|
1550
|
+
children: g(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: M, onItemSelect: y, selectedKeys: E }) => [
|
|
1550
1551
|
I(l.$slots, "children", {
|
|
1551
1552
|
direction: x,
|
|
1552
1553
|
disabled: S,
|
|
1553
1554
|
filteredItems: F,
|
|
1554
|
-
onItemSelectAll:
|
|
1555
|
-
onItemSelect:
|
|
1555
|
+
onItemSelectAll: M,
|
|
1556
|
+
onItemSelect: y,
|
|
1556
1557
|
selectedKeys: E
|
|
1557
1558
|
})
|
|
1558
1559
|
]),
|
|
@@ -1615,7 +1616,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1615
1616
|
}), c = h([]);
|
|
1616
1617
|
return K(async () => {
|
|
1617
1618
|
if (o.value) {
|
|
1618
|
-
const s = await
|
|
1619
|
+
const s = await Be(a.gridCtrl, {
|
|
1619
1620
|
urlKey: "list",
|
|
1620
1621
|
url: { ...a.gridCtrl.gridUrl, url: a.gridCtrl.gridUrl.url },
|
|
1621
1622
|
params: a.gridCtrl.gridQuery,
|
|
@@ -1623,7 +1624,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1623
1624
|
});
|
|
1624
1625
|
c.value = (s == null ? void 0 : s.data) ?? [];
|
|
1625
1626
|
}
|
|
1626
|
-
}), (s, u) => (f(), _(
|
|
1627
|
+
}), (s, u) => (f(), _(Zt, B({
|
|
1627
1628
|
"data-source": c.value,
|
|
1628
1629
|
"row-key": (l) => l[p.value],
|
|
1629
1630
|
value: n.value,
|
|
@@ -1642,7 +1643,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1642
1643
|
}
|
|
1643
1644
|
}, s.$attrs), {
|
|
1644
1645
|
children: g(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
|
|
1645
|
-
b(e(
|
|
1646
|
+
b(e(ze), {
|
|
1646
1647
|
columns: v.gridCtrl.columns.value,
|
|
1647
1648
|
"row-key": p.value,
|
|
1648
1649
|
"row-selection": d({
|
|
@@ -1666,7 +1667,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1666
1667
|
_: 1
|
|
1667
1668
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
1668
1669
|
}
|
|
1669
|
-
}),
|
|
1670
|
+
}), ea = /* @__PURE__ */ C({
|
|
1670
1671
|
__name: "index",
|
|
1671
1672
|
props: {
|
|
1672
1673
|
multiple: {
|
|
@@ -1708,10 +1709,10 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1708
1709
|
label: "Name",
|
|
1709
1710
|
key: "Id",
|
|
1710
1711
|
value: "Id"
|
|
1711
|
-
}), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload &&
|
|
1712
|
+
}), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && Ie(a.treeCtrl);
|
|
1712
1713
|
}), (l, i) => {
|
|
1713
1714
|
var m;
|
|
1714
|
-
return f(), _(e(
|
|
1715
|
+
return f(), _(e(ft), B({
|
|
1715
1716
|
class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
|
|
1716
1717
|
"tree-line": "",
|
|
1717
1718
|
multiple: v.multiple,
|
|
@@ -1725,29 +1726,29 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1725
1726
|
}, l.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
1726
1727
|
};
|
|
1727
1728
|
}
|
|
1728
|
-
}), Oa = /* @__PURE__ */ j(
|
|
1729
|
+
}), 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
1730
|
key: 0,
|
|
1730
1731
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
1731
|
-
},
|
|
1732
|
+
}, ra = { class: "flex-1 h-full overflow-y-auto" }, Ea = /* @__PURE__ */ C({
|
|
1732
1733
|
__name: "index",
|
|
1733
1734
|
props: {
|
|
1734
1735
|
left: { type: Boolean }
|
|
1735
1736
|
},
|
|
1736
1737
|
setup(v) {
|
|
1737
|
-
const { useToken: r } =
|
|
1738
|
-
return (t, o) => (f(), w("div",
|
|
1739
|
-
b(e(
|
|
1738
|
+
const { useToken: r } = Fe, { token: a } = r();
|
|
1739
|
+
return (t, o) => (f(), w("div", ta, [
|
|
1740
|
+
b(e(vt), {
|
|
1740
1741
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
1741
1742
|
style: ne({
|
|
1742
1743
|
backgroundColor: e(a).colorBgContainer
|
|
1743
1744
|
})
|
|
1744
1745
|
}, {
|
|
1745
1746
|
default: g(() => [
|
|
1746
|
-
T("div",
|
|
1747
|
-
t.left ? (f(), w("div",
|
|
1747
|
+
T("div", aa, [
|
|
1748
|
+
t.left ? (f(), w("div", la, [
|
|
1748
1749
|
I(t.$slots, "left")
|
|
1749
1750
|
])) : k("", !0),
|
|
1750
|
-
T("div",
|
|
1751
|
+
T("div", ra, [
|
|
1751
1752
|
I(t.$slots, "default")
|
|
1752
1753
|
])
|
|
1753
1754
|
])
|
|
@@ -1756,7 +1757,7 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1756
1757
|
}, 8, ["style"])
|
|
1757
1758
|
]));
|
|
1758
1759
|
}
|
|
1759
|
-
}),
|
|
1760
|
+
}), oa = { class: "font-['Courier'] text-[#666]" }, Ya = /* @__PURE__ */ C({
|
|
1760
1761
|
__name: "index",
|
|
1761
1762
|
setup(v) {
|
|
1762
1763
|
const r = h("");
|
|
@@ -1765,54 +1766,54 @@ const Ta = /* @__PURE__ */ C({
|
|
|
1765
1766
|
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
1767
|
r.value = a.getFullYear() + "-" + o;
|
|
1767
1768
|
}, 1e3);
|
|
1768
|
-
}), (a, t) => (f(), w("div",
|
|
1769
|
+
}), (a, t) => (f(), w("div", oa, D(r.value), 1));
|
|
1769
1770
|
}
|
|
1770
1771
|
});
|
|
1771
1772
|
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
|
-
|
|
1773
|
+
ja as AppIcon,
|
|
1774
|
+
$a as AutoComplete,
|
|
1775
|
+
Ha as Breadcrumb,
|
|
1776
|
+
A as Button,
|
|
1777
|
+
Sa as Cascader,
|
|
1778
|
+
Ta as Checkbox,
|
|
1779
|
+
Ea as Content,
|
|
1780
|
+
Da as DatePicker,
|
|
1781
|
+
Ya as Datetime,
|
|
1782
|
+
Ua as Dialog,
|
|
1783
|
+
xa as Drawer,
|
|
1784
|
+
ya as Form,
|
|
1785
|
+
ba as FormItem,
|
|
1786
|
+
_a as Fullscreen,
|
|
1787
|
+
Wa as Header,
|
|
1788
|
+
Ja as HeaderExits,
|
|
1789
|
+
Ct as Helper,
|
|
1790
|
+
Ga as Icon,
|
|
1791
|
+
zt as Icontool,
|
|
1792
|
+
jt as Input,
|
|
1793
|
+
Ia as InputIcon,
|
|
1794
|
+
Fa as InputNumber,
|
|
1795
|
+
Ba as InputPassword,
|
|
1796
|
+
ha as LayoutIcon,
|
|
1797
|
+
Xa as Menu,
|
|
1798
|
+
Za as MenuTabs,
|
|
1799
|
+
el as ProjectIcon,
|
|
1800
|
+
Pa as PropEditor,
|
|
1801
|
+
Xt as Radio,
|
|
1802
|
+
Ma as RadioStatus,
|
|
1803
|
+
Na as RangePicker,
|
|
1804
|
+
ka as Search,
|
|
1804
1805
|
le as SearchItem,
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1806
|
+
za as Select,
|
|
1807
|
+
Yt as Switch,
|
|
1808
|
+
Ca as Table,
|
|
1809
|
+
Mt as TableOperate,
|
|
1810
|
+
Aa as Textarea,
|
|
1810
1811
|
Y as ToolIcon,
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1812
|
+
Et as Toolbar,
|
|
1813
|
+
Qa as Tooltip,
|
|
1814
|
+
Zt as Transfer,
|
|
1814
1815
|
Ka as TransferTable,
|
|
1815
|
-
|
|
1816
|
+
wa as Tree,
|
|
1816
1817
|
Oa as TreeSelect,
|
|
1817
|
-
|
|
1818
|
+
al as UploadList
|
|
1818
1819
|
};
|