@skyfox2000/webui 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/webui.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as Ra } from "./assets/modules/index-D47Ci-T3.js";
|
|
2
|
+
import { _ as z } from "./assets/modules/index-BoKIa2sr.js";
|
|
3
3
|
import { _ as Y } from "./assets/modules/index-BEWJ_qAH.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { a as
|
|
7
|
-
import { defineComponent as C, createBlock as h, openBlock as
|
|
8
|
-
import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as ke, getToolGroup as Ce, onGridRowEdit as Le, onGridRowDelete as Re, getToolVisible as H, onToolClicked as R, getToolStatus as
|
|
9
|
-
import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Fe, FormItem as Pe, ConfigProvider as me, Popconfirm as
|
|
10
|
-
import { SERVER_HOST as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
4
|
+
import { a as qa } from "./assets/modules/index-BEWJ_qAH.js";
|
|
5
|
+
import { _ as j } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
6
|
+
import { a as Va, c as ja, d as Ha, e as Wa, I as Ja, f as Ga, g as Xa, b as Za } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
7
|
+
import { defineComponent as C, createBlock as h, openBlock as f, withModifiers as J, unref as e, useAttrs as W, withCtx as _, createElementVNode as T, createVNode as b, mergeProps as B, renderSlot as I, normalizeStyle as ne, toDisplayString as D, createCommentVNode as k, ref as g, provide as he, watch as $, onMounted as K, createTextVNode as P, inject as ue, resolveDirective as Q, withDirectives as V, computed as re, createElementBlock as w, normalizeClass as N, createSlots as ge, useSlots as ze, Fragment as M, renderList as L, resolveDynamicComponent as Ke, onUnmounted as xe, onActivated as Oe, withKeys as fe } from "vue";
|
|
8
|
+
import { useSettingInfo as ye, onFullscreenClick as Ae, createFromIconfont as Ee, ProviderKeys as X, onFormClose as ae, onFormSaveAs as Ye, onFormSave as be, useFormItemFactory as ke, getToolGroup as Ce, onGridRowEdit as Le, onGridRowDelete as Re, getToolVisible as H, onToolClicked as R, getToolStatus as q, useToolFactory as Ue, getToolByKey as Z, filterColumns as we, onColumnVisibleChanged as qe, AppRouter as Qe, openNewForm as Ve, useInputFactory as O, loadOption as $e, unloadOption as Se, formValidate as U, gridQueryFind as ve, gridQueryList as je, gridStatusUpdate as He, OPTIONS as Te, queryTree as De, OptionCommProps as We, circleLoading as Je, doQuery as Ie } from "@skyfox2000/webbase";
|
|
9
|
+
import { Popover as Ge, theme as Be, Drawer as Xe, Space as G, Form as Fe, message as Ze, FormItem as Pe, ConfigProvider as me, Popconfirm as et, Button as Me, DropdownButton as tt, Menu as ie, MenuItem as de, Dropdown as oe, Checkbox as at, Switch as lt, Table as Ne, Tree as rt, Cascader as ot, DatePicker as st, Input as se, InputPassword as nt, InputNumber as ut, RangePicker as it, Textarea as dt, Transfer as ct, TreeSelect as pt, LayoutContent as ft } from "ant-design-vue";
|
|
10
|
+
import { SERVER_HOST as vt, fieldMapping as ee } from "@skyfox2000/fapi";
|
|
11
|
+
import { VueDraggableNext as mt } from "vue-draggable-next";
|
|
12
|
+
import _t from "vue-m-message";
|
|
13
|
+
import { _ as ht, a as gt, b as xt, c as yt } from "./assets/modules/index-BahGnrAq.js";
|
|
14
14
|
import _e from "dayjs";
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
15
|
+
import { _ as tl } from "./assets/modules/uploadList-Dzlg47V0.js";
|
|
16
|
+
const _a = /* @__PURE__ */ C({
|
|
17
17
|
__name: "fullscreen",
|
|
18
18
|
setup(v) {
|
|
19
|
-
const
|
|
20
|
-
return (a, t) => (
|
|
19
|
+
const r = ye();
|
|
20
|
+
return (a, t) => (f(), h(Y, {
|
|
21
21
|
onClick: J(e(Ae), ["stop"]),
|
|
22
|
-
icon: e(
|
|
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
|
+
}), bt = { class: "ml-2" }, kt = /* @__PURE__ */ C({
|
|
27
27
|
inheritAttrs: !1,
|
|
28
28
|
__name: "helper",
|
|
29
29
|
props: {
|
|
@@ -31,28 +31,28 @@ const ma = /* @__PURE__ */ C({
|
|
|
31
31
|
maxWidth: {}
|
|
32
32
|
},
|
|
33
33
|
setup(v) {
|
|
34
|
-
const
|
|
35
|
-
return (a, t) => (
|
|
34
|
+
const r = W();
|
|
35
|
+
return (a, t) => (f(), h(e(Ge), { placement: "topRight" }, {
|
|
36
36
|
content: _(() => [
|
|
37
37
|
I(a.$slots, "default", {}, () => [
|
|
38
38
|
T("div", {
|
|
39
39
|
class: "text-[14px]",
|
|
40
|
-
style:
|
|
40
|
+
style: ne({ maxWidth: a.maxWidth })
|
|
41
41
|
}, D(a.text), 5)
|
|
42
42
|
])
|
|
43
43
|
]),
|
|
44
44
|
default: _(() => [
|
|
45
|
-
T("span",
|
|
45
|
+
T("span", bt, [
|
|
46
46
|
b(Y, B({
|
|
47
47
|
icon: "icon-question-circle",
|
|
48
48
|
class: "text-[#888] w-4 h-4"
|
|
49
|
-
}, e(
|
|
49
|
+
}, e(r)), null, 16)
|
|
50
50
|
])
|
|
51
51
|
]),
|
|
52
52
|
_: 3
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), ha = /* @__PURE__ */ C({
|
|
56
56
|
__name: "layoutIcon",
|
|
57
57
|
props: {
|
|
58
58
|
icon: {
|
|
@@ -63,20 +63,20 @@ const ma = /* @__PURE__ */ C({
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(v) {
|
|
66
|
-
const
|
|
67
|
-
iconUrl: `${
|
|
66
|
+
const r = v, t = Ee({
|
|
67
|
+
iconUrl: `${vt.MICROLAYOUT_ICONS}`,
|
|
68
68
|
monoColor: !0,
|
|
69
|
-
icon:
|
|
70
|
-
icons:
|
|
69
|
+
icon: r.icon,
|
|
70
|
+
icons: r.icons
|
|
71
71
|
});
|
|
72
|
-
return (
|
|
72
|
+
return (o, n) => v.icon || v.icons ? (f(), h(e(t), B({
|
|
73
73
|
key: 0,
|
|
74
74
|
icon: v.icon,
|
|
75
75
|
icons: v.icons,
|
|
76
76
|
class: ["align-middle"]
|
|
77
|
-
},
|
|
77
|
+
}, o.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
79
|
+
}), Ct = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, ga = /* @__PURE__ */ C({
|
|
80
80
|
__name: "index",
|
|
81
81
|
props: {
|
|
82
82
|
saveText: {},
|
|
@@ -85,21 +85,21 @@ const ma = /* @__PURE__ */ C({
|
|
|
85
85
|
editorCtrl: {}
|
|
86
86
|
},
|
|
87
87
|
setup(v) {
|
|
88
|
-
const { useToken:
|
|
88
|
+
const { useToken: r } = Be, { token: a } = r(), t = g(!1), n = v.editorCtrl;
|
|
89
89
|
he(X.EditorControl, n), $(
|
|
90
90
|
() => n.visible.value,
|
|
91
91
|
(d) => {
|
|
92
92
|
t.value = d ?? !1;
|
|
93
93
|
}
|
|
94
|
-
),
|
|
94
|
+
), K(() => {
|
|
95
95
|
t.value = n.visible.value ?? !1;
|
|
96
96
|
});
|
|
97
|
-
const
|
|
97
|
+
const p = () => {
|
|
98
98
|
ae(n);
|
|
99
99
|
};
|
|
100
|
-
return (d,
|
|
100
|
+
return (d, c) => (f(), h(e(Xe), {
|
|
101
101
|
open: t.value,
|
|
102
|
-
"onUpdate:open":
|
|
102
|
+
"onUpdate:open": c[4] || (c[4] = (s) => t.value = s),
|
|
103
103
|
"get-container": !1,
|
|
104
104
|
closable: !1,
|
|
105
105
|
"header-style": {
|
|
@@ -118,10 +118,10 @@ const ma = /* @__PURE__ */ C({
|
|
|
118
118
|
boxShadow: "rgba(0, 0, 0, 0.3) -2px 0px 8px"
|
|
119
119
|
},
|
|
120
120
|
width: "420px",
|
|
121
|
-
onClose:
|
|
121
|
+
onClose: p
|
|
122
122
|
}, {
|
|
123
123
|
extra: _(() => [
|
|
124
|
-
T("div",
|
|
124
|
+
T("div", Ct, [
|
|
125
125
|
b(e(Y), {
|
|
126
126
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
127
127
|
icon: "icon-new",
|
|
@@ -130,7 +130,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
130
130
|
clickable: "",
|
|
131
131
|
color: "#666",
|
|
132
132
|
position: [0, 0],
|
|
133
|
-
onClick:
|
|
133
|
+
onClick: c[0] || (c[0] = () => e(ae)(e(n)))
|
|
134
134
|
})
|
|
135
135
|
])
|
|
136
136
|
]),
|
|
@@ -140,18 +140,18 @@ const ma = /* @__PURE__ */ C({
|
|
|
140
140
|
footer: _(() => [
|
|
141
141
|
b(e(G), null, {
|
|
142
142
|
default: _(() => [
|
|
143
|
-
d.cancelText !== "" ? (
|
|
143
|
+
d.cancelText !== "" ? (f(), h(e(z), {
|
|
144
144
|
key: 0,
|
|
145
|
-
onClick:
|
|
145
|
+
onClick: c[1] || (c[1] = () => e(ae)(e(n)))
|
|
146
146
|
}, {
|
|
147
147
|
default: _(() => [
|
|
148
148
|
P(D(d.cancelText ?? "取消"), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
151
|
})) : k("", !0),
|
|
152
|
-
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (
|
|
152
|
+
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), h(e(z), {
|
|
153
153
|
key: 1,
|
|
154
|
-
onClick:
|
|
154
|
+
onClick: c[2] || (c[2] = () => e(Ye)(e(n))),
|
|
155
155
|
type: "primary",
|
|
156
156
|
loading: e(n).isFormSaving.value
|
|
157
157
|
}, {
|
|
@@ -160,9 +160,9 @@ const ma = /* @__PURE__ */ C({
|
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}, 8, ["loading"])) : k("", !0),
|
|
163
|
-
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (
|
|
163
|
+
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), h(e(z), {
|
|
164
164
|
key: 2,
|
|
165
|
-
onClick:
|
|
165
|
+
onClick: c[3] || (c[3] = () => e(be)(e(n))),
|
|
166
166
|
type: "primary",
|
|
167
167
|
loading: e(n).isFormSaving.value
|
|
168
168
|
}, {
|
|
@@ -178,7 +178,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
178
178
|
_: 3
|
|
179
179
|
}, 8, ["open", "header-style"]));
|
|
180
180
|
}
|
|
181
|
-
}),
|
|
181
|
+
}), xa = /* @__PURE__ */ C({
|
|
182
182
|
__name: "index",
|
|
183
183
|
props: {
|
|
184
184
|
labelWidth: {},
|
|
@@ -186,13 +186,13 @@ const ma = /* @__PURE__ */ C({
|
|
|
186
186
|
editorCtrl: {}
|
|
187
187
|
},
|
|
188
188
|
setup(v) {
|
|
189
|
-
const
|
|
190
|
-
return (t,
|
|
191
|
-
const n =
|
|
192
|
-
return
|
|
193
|
-
"label-col": { flex:
|
|
189
|
+
const r = v, a = r.editorCtrl ?? ue(X.EditorControl, void 0);
|
|
190
|
+
return (t, o) => {
|
|
191
|
+
const n = Q("submit");
|
|
192
|
+
return V((f(), h(e(Fe), {
|
|
193
|
+
"label-col": { flex: r.labelWidth ?? "85px" },
|
|
194
194
|
"wrapper-col": {
|
|
195
|
-
flex:
|
|
195
|
+
flex: r.wrapperWidth ?? "1"
|
|
196
196
|
},
|
|
197
197
|
style: {
|
|
198
198
|
display: "flex",
|
|
@@ -213,10 +213,10 @@ const ma = /* @__PURE__ */ C({
|
|
|
213
213
|
]);
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), wt = { class: "w-full flex items-center" }, $t = { class: "flex-grow" }, St = { class: "w-8 mt-[-2px]" }, Tt = {
|
|
217
217
|
key: 1,
|
|
218
218
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
219
|
-
},
|
|
219
|
+
}, ya = /* @__PURE__ */ C({
|
|
220
220
|
inheritAttrs: !1,
|
|
221
221
|
__name: "formItem",
|
|
222
222
|
props: {
|
|
@@ -226,48 +226,58 @@ const ma = /* @__PURE__ */ C({
|
|
|
226
226
|
width: {}
|
|
227
227
|
},
|
|
228
228
|
setup(v) {
|
|
229
|
-
const
|
|
230
|
-
|
|
229
|
+
const r = v, a = W(), t = ue(X.EditorControl, void 0), o = ke(r, t), n = g(!1);
|
|
230
|
+
setTimeout(() => {
|
|
231
231
|
n.value = !0;
|
|
232
|
-
}, 30)
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
232
|
+
}, 30);
|
|
233
|
+
const p = (c, s) => {
|
|
234
|
+
if (!s)
|
|
235
|
+
return;
|
|
236
|
+
const [u, ...l] = c;
|
|
237
|
+
return c.length === 1 ? s[u] : p(l, s[u].fields);
|
|
238
|
+
}, d = re(() => {
|
|
239
|
+
var s;
|
|
240
|
+
if (!r.rule)
|
|
241
|
+
return !1;
|
|
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 : (Ze.error(`"${r.label}" 的验证规则 \`${r.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${r.rule}\` 不存在,请检查代码!`, !0);
|
|
244
|
+
});
|
|
245
|
+
return (c, s) => (f(), w("div", {
|
|
246
|
+
class: N(["w-full relative mb-1", c.width])
|
|
247
|
+
}, [
|
|
248
|
+
n.value ? (f(), h(e(Pe), B({
|
|
249
|
+
key: 0,
|
|
250
|
+
required: d.value,
|
|
251
|
+
class: "!w-[95%] relative"
|
|
252
|
+
}, e(a), {
|
|
253
|
+
class: [c.rule ? "" : "mb-3"]
|
|
254
|
+
}), {
|
|
255
|
+
label: _(() => [
|
|
256
|
+
T("span", {
|
|
257
|
+
class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
258
|
+
}, D(c.label), 3)
|
|
259
|
+
]),
|
|
260
|
+
default: _(() => [
|
|
261
|
+
T("div", wt, [
|
|
262
|
+
T("div", $t, [
|
|
263
|
+
I(c.$slots, "default")
|
|
264
|
+
]),
|
|
265
|
+
T("div", St, [
|
|
266
|
+
I(c.$slots, "helper", {}, () => [
|
|
267
|
+
c.helper ? (f(), h(e(kt), {
|
|
268
|
+
key: 0,
|
|
269
|
+
text: c.helper
|
|
270
|
+
}, null, 8, ["text"])) : k("", !0)
|
|
261
271
|
])
|
|
262
272
|
])
|
|
263
|
-
])
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
273
|
+
])
|
|
274
|
+
]),
|
|
275
|
+
_: 3
|
|
276
|
+
}, 16, ["required", "class"])) : k("", !0),
|
|
277
|
+
e(o).errClass ? (f(), w("span", Tt, D(e(o).msg), 1)) : k("", !0)
|
|
278
|
+
], 2));
|
|
269
279
|
}
|
|
270
|
-
}),
|
|
280
|
+
}), Dt = { class: "w-1/3 relative mb-1" }, It = { class: "flex items-center" }, Bt = { class: "flex-grow pl-1" }, Ft = {
|
|
271
281
|
key: 0,
|
|
272
282
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
273
283
|
}, le = /* @__PURE__ */ C({
|
|
@@ -279,8 +289,8 @@ const ma = /* @__PURE__ */ C({
|
|
|
279
289
|
rule: {}
|
|
280
290
|
},
|
|
281
291
|
setup(v) {
|
|
282
|
-
const
|
|
283
|
-
return (n,
|
|
292
|
+
const r = v, a = W(), t = ue(X.EditorControl, void 0), o = ke(r, t);
|
|
293
|
+
return (n, p) => (f(), w("div", Dt, [
|
|
284
294
|
b(e(Pe), B({
|
|
285
295
|
required: n.rule !== void 0,
|
|
286
296
|
class: "w-[90%] relative"
|
|
@@ -289,8 +299,8 @@ const ma = /* @__PURE__ */ C({
|
|
|
289
299
|
labelCol: { span: 6 }
|
|
290
300
|
}), ge({
|
|
291
301
|
default: _(() => [
|
|
292
|
-
T("div",
|
|
293
|
-
T("div",
|
|
302
|
+
T("div", It, [
|
|
303
|
+
T("div", Bt, [
|
|
294
304
|
I(n.$slots, "default")
|
|
295
305
|
])
|
|
296
306
|
])
|
|
@@ -301,16 +311,16 @@ const ma = /* @__PURE__ */ C({
|
|
|
301
311
|
name: "label",
|
|
302
312
|
fn: _(() => [
|
|
303
313
|
T("span", {
|
|
304
|
-
class: N([e(
|
|
314
|
+
class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
305
315
|
}, D(n.label), 3)
|
|
306
316
|
]),
|
|
307
317
|
key: "0"
|
|
308
318
|
} : void 0
|
|
309
319
|
]), 1040, ["required", "class"]),
|
|
310
|
-
e(
|
|
320
|
+
e(o).msg ? (f(), w("span", Ft, D(e(o).msg), 1)) : k("", !0)
|
|
311
321
|
]));
|
|
312
322
|
}
|
|
313
|
-
}),
|
|
323
|
+
}), ba = /* @__PURE__ */ C({
|
|
314
324
|
__name: "index",
|
|
315
325
|
props: {
|
|
316
326
|
search: {},
|
|
@@ -318,14 +328,14 @@ const ma = /* @__PURE__ */ C({
|
|
|
318
328
|
likeFields: {}
|
|
319
329
|
},
|
|
320
330
|
emits: ["update:search"],
|
|
321
|
-
setup(v, { emit:
|
|
322
|
-
const a = v, t =
|
|
331
|
+
setup(v, { emit: r }) {
|
|
332
|
+
const a = v, t = r, o = g(0), n = g(0), p = g(0), d = (m) => {
|
|
323
333
|
let x = 0;
|
|
324
334
|
for (let S = 0; S < m.length; S++)
|
|
325
335
|
typeof m[S].type == "object" && x++;
|
|
326
336
|
return x;
|
|
327
|
-
},
|
|
328
|
-
n.value = 0,
|
|
337
|
+
}, c = ze(), s = () => {
|
|
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;
|
|
329
339
|
};
|
|
330
340
|
$(
|
|
331
341
|
() => a.gridCtrl.searchBar,
|
|
@@ -334,7 +344,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
334
344
|
}
|
|
335
345
|
);
|
|
336
346
|
const u = JSON.parse(JSON.stringify(a.search));
|
|
337
|
-
|
|
347
|
+
K(() => {
|
|
338
348
|
var x;
|
|
339
349
|
s();
|
|
340
350
|
let m = { ...a.search };
|
|
@@ -366,8 +376,8 @@ const ma = /* @__PURE__ */ C({
|
|
|
366
376
|
t("update:search", m);
|
|
367
377
|
};
|
|
368
378
|
return (m, x) => {
|
|
369
|
-
const S =
|
|
370
|
-
return n.value +
|
|
379
|
+
const S = Q("submit");
|
|
380
|
+
return n.value + p.value > 0 ? V((f(), h(e(Fe), {
|
|
371
381
|
key: 0,
|
|
372
382
|
"label-col": { flex: "60px" },
|
|
373
383
|
style: {
|
|
@@ -379,15 +389,15 @@ const ma = /* @__PURE__ */ C({
|
|
|
379
389
|
default: _(() => [
|
|
380
390
|
I(m.$slots, "default"),
|
|
381
391
|
m.gridCtrl.searchBar ? I(m.$slots, "control", { key: 0 }) : k("", !0),
|
|
382
|
-
|
|
392
|
+
o.value >= 1 ? (f(), h(le, {
|
|
383
393
|
key: 1,
|
|
384
394
|
class: "w-1/3"
|
|
385
395
|
})) : k("", !0),
|
|
386
|
-
|
|
396
|
+
o.value >= 2 ? (f(), h(le, {
|
|
387
397
|
key: 2,
|
|
388
398
|
class: "w-1/3"
|
|
389
399
|
})) : k("", !0),
|
|
390
|
-
n.value || m.gridCtrl.searchBar ? (
|
|
400
|
+
n.value || m.gridCtrl.searchBar ? (f(), h(le, {
|
|
391
401
|
key: 3,
|
|
392
402
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
393
403
|
"wrapper-col": { flex: "auto" }
|
|
@@ -395,7 +405,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
395
405
|
default: _(() => [
|
|
396
406
|
b(e(G), null, {
|
|
397
407
|
default: _(() => [
|
|
398
|
-
b(e(
|
|
408
|
+
b(e(z), {
|
|
399
409
|
type: "primary",
|
|
400
410
|
onClick: l,
|
|
401
411
|
icon: "icon-search"
|
|
@@ -406,7 +416,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
406
416
|
_: 1,
|
|
407
417
|
__: [0]
|
|
408
418
|
}),
|
|
409
|
-
b(e(
|
|
419
|
+
b(e(z), {
|
|
410
420
|
onClick: i,
|
|
411
421
|
icon: "icon-reset"
|
|
412
422
|
}, {
|
|
@@ -429,21 +439,21 @@ const ma = /* @__PURE__ */ C({
|
|
|
429
439
|
]) : k("", !0);
|
|
430
440
|
};
|
|
431
441
|
}
|
|
432
|
-
}),
|
|
442
|
+
}), Pt = /* @__PURE__ */ C({
|
|
433
443
|
__name: "tableOperate",
|
|
434
444
|
props: {
|
|
435
445
|
record: {},
|
|
436
446
|
gridCtrl: {}
|
|
437
447
|
},
|
|
438
448
|
setup(v) {
|
|
439
|
-
const
|
|
449
|
+
const r = v, a = r.gridCtrl, t = [
|
|
440
450
|
{
|
|
441
451
|
key: "Edit",
|
|
442
452
|
label: "编辑",
|
|
443
453
|
type: "primary",
|
|
444
454
|
visible: !0,
|
|
445
455
|
permit: ":edit",
|
|
446
|
-
click: () => Le(a,
|
|
456
|
+
click: () => Le(a, r.record)
|
|
447
457
|
},
|
|
448
458
|
{
|
|
449
459
|
key: "Delete",
|
|
@@ -454,25 +464,25 @@ const ma = /* @__PURE__ */ C({
|
|
|
454
464
|
permit: ":delete",
|
|
455
465
|
confirm: !0,
|
|
456
466
|
confirmText: "是否删除此记录?",
|
|
457
|
-
click: () => Re(a,
|
|
467
|
+
click: () => Re(a, r.record)
|
|
458
468
|
}
|
|
459
|
-
], { buttons:
|
|
469
|
+
], { buttons: o, menus: n } = Ce(t, 0, a.operates), p = (d) => {
|
|
460
470
|
if (typeof d.disabled == "boolean")
|
|
461
471
|
return d.disabled;
|
|
462
472
|
if (typeof d.disabled == "function")
|
|
463
|
-
return
|
|
464
|
-
if (
|
|
473
|
+
return q(d, r.record) ?? !1;
|
|
474
|
+
if (r.record.hasOwnProperty("Enabled"))
|
|
465
475
|
switch (d.key) {
|
|
466
476
|
case "Edit":
|
|
467
|
-
return !
|
|
477
|
+
return !r.record.Enabled;
|
|
468
478
|
case "Delete":
|
|
469
|
-
return !!
|
|
479
|
+
return !!r.record.Enabled;
|
|
470
480
|
}
|
|
471
481
|
return !1;
|
|
472
482
|
};
|
|
473
|
-
return (d,
|
|
474
|
-
const s =
|
|
475
|
-
return
|
|
483
|
+
return (d, c) => {
|
|
484
|
+
const s = Q("role"), u = Q("permit");
|
|
485
|
+
return f(), h(e(me), { theme: {
|
|
476
486
|
token: {
|
|
477
487
|
fontSize: 13
|
|
478
488
|
}
|
|
@@ -480,28 +490,28 @@ const ma = /* @__PURE__ */ C({
|
|
|
480
490
|
default: _(() => [
|
|
481
491
|
b(e(G), null, {
|
|
482
492
|
default: _(() => [
|
|
483
|
-
(
|
|
493
|
+
(f(!0), w(M, null, L(e(o), (l) => (f(), w(M, {
|
|
484
494
|
key: l.key
|
|
485
495
|
}, [
|
|
486
|
-
e(H)(l,
|
|
496
|
+
e(H)(l, r.record) ? (f(), h(e(et), {
|
|
487
497
|
key: 0,
|
|
488
|
-
disabled:
|
|
498
|
+
disabled: p(l) || !l.confirm,
|
|
489
499
|
cancelText: "否",
|
|
490
500
|
okText: "是",
|
|
491
501
|
title: l.confirmText,
|
|
492
502
|
okButtonProps: { size: "small" },
|
|
493
503
|
cancelButtonProps: { size: "small" },
|
|
494
|
-
onConfirm: (i) => e(R)(l, e(a).page, e(a),
|
|
504
|
+
onConfirm: (i) => e(R)(l, e(a).page, e(a), r.record, !0)
|
|
495
505
|
}, {
|
|
496
506
|
default: _(() => [
|
|
497
|
-
e(H)(l,
|
|
507
|
+
e(H)(l, r.record) ? V((f(), h(e(Me), {
|
|
498
508
|
key: l.key,
|
|
499
509
|
type: l.type ?? "text",
|
|
500
510
|
danger: l.danger,
|
|
501
|
-
disabled:
|
|
502
|
-
onClick: (i) => e(R)(l, e(a).page, e(a),
|
|
511
|
+
disabled: p(l),
|
|
512
|
+
onClick: (i) => e(R)(l, e(a).page, e(a), r.record),
|
|
503
513
|
size: "small",
|
|
504
|
-
style:
|
|
514
|
+
style: ne({
|
|
505
515
|
padding: l.type ?? "0px 4px"
|
|
506
516
|
})
|
|
507
517
|
}, {
|
|
@@ -517,25 +527,25 @@ const ma = /* @__PURE__ */ C({
|
|
|
517
527
|
_: 2
|
|
518
528
|
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
519
529
|
], 64))), 128)),
|
|
520
|
-
d.record.Enabled == 1 ? (
|
|
530
|
+
d.record.Enabled == 1 ? (f(), h(e(me), {
|
|
521
531
|
key: 0,
|
|
522
532
|
autoInsertSpaceInButton: !1
|
|
523
533
|
}, {
|
|
524
534
|
default: _(() => [
|
|
525
|
-
e(n).length > 0 ? (
|
|
535
|
+
e(n).length > 0 ? (f(), h(e(tt), {
|
|
526
536
|
key: 0,
|
|
527
537
|
size: "small"
|
|
528
538
|
}, {
|
|
529
539
|
overlay: _(() => [
|
|
530
|
-
b(e(
|
|
540
|
+
b(e(ie), null, {
|
|
531
541
|
default: _(() => [
|
|
532
|
-
(
|
|
542
|
+
(f(!0), w(M, null, L(e(n), (l) => (f(), w(M, {
|
|
533
543
|
key: l.key
|
|
534
544
|
}, [
|
|
535
|
-
e(H)(l,
|
|
545
|
+
e(H)(l, r.record) ? V((f(), h(e(de), {
|
|
536
546
|
key: 0,
|
|
537
|
-
disabled:
|
|
538
|
-
onClick: (i) => e(R)(l, e(a).page, e(a),
|
|
547
|
+
disabled: p(l),
|
|
548
|
+
onClick: (i) => e(R)(l, e(a).page, e(a), r.record)
|
|
539
549
|
}, {
|
|
540
550
|
default: _(() => [
|
|
541
551
|
P(D(l.label), 1)
|
|
@@ -551,7 +561,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
551
561
|
})
|
|
552
562
|
]),
|
|
553
563
|
default: _(() => [
|
|
554
|
-
|
|
564
|
+
c[0] || (c[0] = P(" 更多 "))
|
|
555
565
|
]),
|
|
556
566
|
_: 1,
|
|
557
567
|
__: [0]
|
|
@@ -567,13 +577,13 @@ const ma = /* @__PURE__ */ C({
|
|
|
567
577
|
});
|
|
568
578
|
};
|
|
569
579
|
}
|
|
570
|
-
}),
|
|
580
|
+
}), Mt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Nt = /* @__PURE__ */ C({
|
|
571
581
|
__name: "icontool",
|
|
572
582
|
props: {
|
|
573
583
|
gridCtrl: {}
|
|
574
584
|
},
|
|
575
585
|
setup(v) {
|
|
576
|
-
const
|
|
586
|
+
const r = v, a = r.gridCtrl, { tools: t } = Ue(r.gridCtrl), o = ye();
|
|
577
587
|
$(
|
|
578
588
|
() => a.selectable.value,
|
|
579
589
|
(d) => {
|
|
@@ -588,14 +598,14 @@ const ma = /* @__PURE__ */ C({
|
|
|
588
598
|
},
|
|
589
599
|
{ deep: !0, immediate: !0 }
|
|
590
600
|
);
|
|
591
|
-
const
|
|
592
|
-
a.columns.value.splice(0, a.columns.value.length, ...n.value),
|
|
601
|
+
const p = () => {
|
|
602
|
+
a.columns.value.splice(0, a.columns.value.length, ...n.value), o.setTableColumns(Qe.currentRoute.value.path, a.columns.value);
|
|
593
603
|
};
|
|
594
|
-
return (d,
|
|
595
|
-
(
|
|
604
|
+
return (d, c) => (f(), w("div", Mt, [
|
|
605
|
+
(f(!0), w(M, null, L(e(t), (s, u) => (f(), w(M, {
|
|
596
606
|
key: s.key
|
|
597
607
|
}, [
|
|
598
|
-
e(H)(s) && s.dropdown ? (
|
|
608
|
+
e(H)(s) && s.dropdown ? (f(), h(e(oe), {
|
|
599
609
|
key: 0,
|
|
600
610
|
placement: "bottomRight",
|
|
601
611
|
class: "p-0 rounded-none"
|
|
@@ -604,27 +614,27 @@ const ma = /* @__PURE__ */ C({
|
|
|
604
614
|
T("div", {
|
|
605
615
|
class: N(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
|
|
606
616
|
}, [
|
|
607
|
-
s.dropdown === "headset" ? (
|
|
617
|
+
s.dropdown === "headset" ? (f(), h(e(mt), {
|
|
608
618
|
key: 0,
|
|
609
619
|
modelValue: n.value,
|
|
610
|
-
"onUpdate:modelValue":
|
|
620
|
+
"onUpdate:modelValue": c[1] || (c[1] = (l) => n.value = l),
|
|
611
621
|
"item-key": "dataIndex",
|
|
612
|
-
onEnd:
|
|
622
|
+
onEnd: p,
|
|
613
623
|
handle: ".drag-handle"
|
|
614
624
|
}, {
|
|
615
625
|
default: _(() => [
|
|
616
|
-
(
|
|
626
|
+
(f(!0), w(M, null, L(n.value, (l) => (f(), w("div", {
|
|
617
627
|
key: l.name,
|
|
618
|
-
onClick:
|
|
628
|
+
onClick: c[0] || (c[0] = J(() => {
|
|
619
629
|
}, ["stop"])),
|
|
620
630
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
621
631
|
}, [
|
|
622
|
-
|
|
623
|
-
b(e(
|
|
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(at), {
|
|
624
634
|
checked: l.visible !== !1,
|
|
625
635
|
onChange: J(
|
|
626
636
|
(i) => {
|
|
627
|
-
e(
|
|
637
|
+
e(qe)(l, i.target.checked);
|
|
628
638
|
},
|
|
629
639
|
["stop", "prevent"]
|
|
630
640
|
),
|
|
@@ -642,13 +652,13 @@ const ma = /* @__PURE__ */ C({
|
|
|
642
652
|
], 2)
|
|
643
653
|
]),
|
|
644
654
|
default: _(() => [
|
|
645
|
-
b(e(
|
|
655
|
+
b(e(z), {
|
|
646
656
|
class: N([
|
|
647
657
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
648
658
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
649
659
|
u === e(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
650
660
|
]),
|
|
651
|
-
disabled: e(
|
|
661
|
+
disabled: e(q)(s),
|
|
652
662
|
tiptext: s.label,
|
|
653
663
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
654
664
|
}, {
|
|
@@ -663,14 +673,14 @@ const ma = /* @__PURE__ */ C({
|
|
|
663
673
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
664
674
|
]),
|
|
665
675
|
_: 2
|
|
666
|
-
}, 1024)) : !s.children && e(H)(s) ? (
|
|
676
|
+
}, 1024)) : !s.children && e(H)(s) ? (f(), h(e(z), {
|
|
667
677
|
key: 1,
|
|
668
678
|
class: N([
|
|
669
679
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
670
680
|
u === 0 ? "rounded-l-[5px]" : "",
|
|
671
681
|
u === e(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
672
682
|
]),
|
|
673
|
-
disabled: e(
|
|
683
|
+
disabled: e(q)(s),
|
|
674
684
|
tiptext: s.label,
|
|
675
685
|
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
676
686
|
}, {
|
|
@@ -682,17 +692,17 @@ const ma = /* @__PURE__ */ C({
|
|
|
682
692
|
}, null, 8, ["icon"])
|
|
683
693
|
]),
|
|
684
694
|
_: 2
|
|
685
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (
|
|
695
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (f(), h(e(oe), {
|
|
686
696
|
key: 2,
|
|
687
697
|
placement: "bottomRight",
|
|
688
698
|
class: "p-0 rounded-none"
|
|
689
699
|
}, {
|
|
690
700
|
overlay: _(() => [
|
|
691
|
-
b(e(
|
|
701
|
+
b(e(ie), null, {
|
|
692
702
|
default: _(() => [
|
|
693
|
-
(
|
|
703
|
+
(f(!0), w(M, null, L(s.children, (l) => (f(), h(e(de), {
|
|
694
704
|
key: l.key,
|
|
695
|
-
disabled: e(
|
|
705
|
+
disabled: e(q)(l)
|
|
696
706
|
}, {
|
|
697
707
|
default: _(() => [
|
|
698
708
|
P(D(l.label), 1)
|
|
@@ -704,12 +714,12 @@ const ma = /* @__PURE__ */ C({
|
|
|
704
714
|
}, 1024)
|
|
705
715
|
]),
|
|
706
716
|
default: _(() => [
|
|
707
|
-
b(e(
|
|
717
|
+
b(e(z), {
|
|
708
718
|
class: N([
|
|
709
719
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
710
720
|
u === 0 ? "rounded-l-[5px]" : ""
|
|
711
721
|
]),
|
|
712
|
-
disabled: e(
|
|
722
|
+
disabled: e(q)(s),
|
|
713
723
|
tiptext: s.label,
|
|
714
724
|
icon: s.icon,
|
|
715
725
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
@@ -729,14 +739,14 @@ const ma = /* @__PURE__ */ C({
|
|
|
729
739
|
], 64))), 128))
|
|
730
740
|
]));
|
|
731
741
|
}
|
|
732
|
-
}),
|
|
742
|
+
}), zt = { class: "flex justify-between mb-[10px]" }, Kt = { key: 1 }, Ot = 3, At = /* @__PURE__ */ C({
|
|
733
743
|
__name: "index",
|
|
734
744
|
props: {
|
|
735
745
|
gridCtrl: {},
|
|
736
746
|
editorCtrl: {}
|
|
737
747
|
},
|
|
738
748
|
setup(v) {
|
|
739
|
-
const
|
|
749
|
+
const r = v, a = r.gridCtrl, t = a.page, o = r.editorCtrl, n = [
|
|
740
750
|
{
|
|
741
751
|
key: "New",
|
|
742
752
|
label: "新增",
|
|
@@ -745,37 +755,37 @@ const ma = /* @__PURE__ */ C({
|
|
|
745
755
|
danger: !0,
|
|
746
756
|
permit: ":new",
|
|
747
757
|
// 默认仅受权限码控制
|
|
748
|
-
click: () =>
|
|
758
|
+
click: () => Ve(o)
|
|
749
759
|
}
|
|
750
|
-
],
|
|
760
|
+
], p = g([]), d = g([]);
|
|
751
761
|
return $(
|
|
752
762
|
() => {
|
|
753
|
-
var
|
|
754
|
-
return (
|
|
763
|
+
var c;
|
|
764
|
+
return (c = a.buttons) == null ? void 0 : c.value;
|
|
755
765
|
},
|
|
756
766
|
() => {
|
|
757
767
|
var u;
|
|
758
|
-
const { buttons:
|
|
768
|
+
const { buttons: c, menus: s } = Ce(
|
|
759
769
|
n,
|
|
760
|
-
a.flat !== void 0 ? a.flat :
|
|
770
|
+
a.flat !== void 0 ? a.flat : Ot,
|
|
761
771
|
(u = a.buttons) == null ? void 0 : u.value
|
|
762
772
|
);
|
|
763
|
-
|
|
773
|
+
p.value.splice(0, p.value.length, ...c), d.value.splice(0, d.value.length, ...s);
|
|
764
774
|
},
|
|
765
775
|
{
|
|
766
776
|
deep: !0,
|
|
767
777
|
immediate: !0
|
|
768
778
|
}
|
|
769
|
-
), (
|
|
770
|
-
const u =
|
|
771
|
-
return
|
|
779
|
+
), (c, s) => {
|
|
780
|
+
const u = Q("role"), l = Q("permit");
|
|
781
|
+
return f(), w("div", zt, [
|
|
772
782
|
b(e(G), null, {
|
|
773
783
|
default: _(() => [
|
|
774
|
-
(
|
|
784
|
+
(f(!0), w(M, null, L(p.value, (i) => V((f(), h(e(z), {
|
|
775
785
|
key: i.key,
|
|
776
786
|
type: i.type,
|
|
777
787
|
danger: i.danger,
|
|
778
|
-
disabled: e(
|
|
788
|
+
disabled: e(q)(i),
|
|
779
789
|
icon: i.icon,
|
|
780
790
|
onClick: (m) => e(R)(i, e(t), e(a))
|
|
781
791
|
}, {
|
|
@@ -787,13 +797,13 @@ const ma = /* @__PURE__ */ C({
|
|
|
787
797
|
[u, i.role],
|
|
788
798
|
[l, i.permit]
|
|
789
799
|
])), 128)),
|
|
790
|
-
d.value.length > 0 ? (
|
|
800
|
+
d.value.length > 0 ? (f(), h(e(oe), { key: 0 }, {
|
|
791
801
|
overlay: _(() => [
|
|
792
|
-
b(e(
|
|
802
|
+
b(e(ie), null, {
|
|
793
803
|
default: _(() => [
|
|
794
|
-
(
|
|
804
|
+
(f(!0), w(M, null, L(d.value, (i) => V((f(), h(e(de), {
|
|
795
805
|
key: i.key,
|
|
796
|
-
disabled: e(
|
|
806
|
+
disabled: e(q)(i),
|
|
797
807
|
onClick: (m) => e(R)(i, e(t), e(a))
|
|
798
808
|
}, {
|
|
799
809
|
default: _(() => [
|
|
@@ -809,7 +819,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
809
819
|
})
|
|
810
820
|
]),
|
|
811
821
|
default: _(() => [
|
|
812
|
-
b(e(
|
|
822
|
+
b(e(z), null, {
|
|
813
823
|
default: _(() => s[0] || (s[0] = [
|
|
814
824
|
P(" 更多操作 ")
|
|
815
825
|
])),
|
|
@@ -819,20 +829,20 @@ const ma = /* @__PURE__ */ C({
|
|
|
819
829
|
]),
|
|
820
830
|
_: 1
|
|
821
831
|
})) : k("", !0),
|
|
822
|
-
|
|
832
|
+
p.value.length === 0 && d.value.length === 0 ? (f(), w("span", Kt)) : k("", !0)
|
|
823
833
|
]),
|
|
824
834
|
_: 1
|
|
825
835
|
}),
|
|
826
836
|
b(e(G), { class: "mr-1" }, {
|
|
827
837
|
default: _(() => [
|
|
828
|
-
(
|
|
838
|
+
(f(), h(Ke(Nt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
|
|
829
839
|
]),
|
|
830
840
|
_: 1
|
|
831
841
|
})
|
|
832
842
|
]);
|
|
833
843
|
};
|
|
834
844
|
}
|
|
835
|
-
}),
|
|
845
|
+
}), Et = /* @__PURE__ */ C({
|
|
836
846
|
__name: "index",
|
|
837
847
|
props: {
|
|
838
848
|
/**
|
|
@@ -844,32 +854,32 @@ const ma = /* @__PURE__ */ C({
|
|
|
844
854
|
}
|
|
845
855
|
},
|
|
846
856
|
emits: ["change"],
|
|
847
|
-
setup(v, { emit:
|
|
848
|
-
const a = v, t = g([]),
|
|
849
|
-
|
|
857
|
+
setup(v, { emit: r }) {
|
|
858
|
+
const a = v, t = g([]), o = r, { editorCtrl: n, errInfo: p } = O(), d = (c) => {
|
|
859
|
+
p != null && p.value.errClass && n && U(n), o("change", c);
|
|
850
860
|
};
|
|
851
|
-
return
|
|
861
|
+
return K(() => {
|
|
852
862
|
if (!a.data || a.data.length != 2) {
|
|
853
|
-
console.error("Switch组件: ", a.data),
|
|
863
|
+
console.error("Switch组件: ", a.data), _t.error("Switch组件必须有且只有两个选项");
|
|
854
864
|
return;
|
|
855
865
|
}
|
|
856
866
|
$e(!1, a, t);
|
|
857
867
|
}), xe(() => {
|
|
858
868
|
Se(a);
|
|
859
|
-
}), (
|
|
869
|
+
}), (c, s) => {
|
|
860
870
|
var u;
|
|
861
|
-
return t.value.length === 2 ? (
|
|
871
|
+
return t.value.length === 2 ? (f(), h(e(lt), B({
|
|
862
872
|
key: 0,
|
|
863
|
-
class: [((u = e(
|
|
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]"],
|
|
864
874
|
checkedChildren: t.value[0].label,
|
|
865
875
|
checkedValue: t.value[0].value,
|
|
866
876
|
unCheckedChildren: t.value[1].label,
|
|
867
877
|
unCheckedValue: t.value[1].value,
|
|
868
878
|
onChange: d
|
|
869
|
-
},
|
|
879
|
+
}, c.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
|
|
870
880
|
};
|
|
871
881
|
}
|
|
872
|
-
}),
|
|
882
|
+
}), ka = /* @__PURE__ */ C({
|
|
873
883
|
inheritAttrs: !1,
|
|
874
884
|
__name: "index",
|
|
875
885
|
props: {
|
|
@@ -882,32 +892,32 @@ const ma = /* @__PURE__ */ C({
|
|
|
882
892
|
statusDisabled: { type: Function }
|
|
883
893
|
},
|
|
884
894
|
setup(v) {
|
|
885
|
-
const
|
|
895
|
+
const r = v, a = W(), t = r.gridCtrl;
|
|
886
896
|
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
887
|
-
const
|
|
897
|
+
const o = g(t.pageSize.value), n = g(t.pageNo.value), p = g([]), d = g({
|
|
888
898
|
total: 0,
|
|
889
899
|
current: 1,
|
|
890
|
-
pageSize:
|
|
900
|
+
pageSize: o.value,
|
|
891
901
|
showTotal: (i) => `共 ${i} 条记录`,
|
|
892
902
|
onChange: (i, m) => {
|
|
893
|
-
d.value.current = i, d.value.pageSize = 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 && ve(t));
|
|
894
904
|
},
|
|
895
|
-
...
|
|
905
|
+
...r.pagination
|
|
896
906
|
});
|
|
897
907
|
$(
|
|
898
908
|
() => t.tableData.value,
|
|
899
909
|
(i) => {
|
|
900
|
-
i && (
|
|
910
|
+
i && (p.value = i, d.value.total = t.total.value ?? 0);
|
|
901
911
|
},
|
|
902
912
|
{ immediate: !0 }
|
|
903
913
|
), $(
|
|
904
|
-
() =>
|
|
914
|
+
() => r.tableData,
|
|
905
915
|
(i) => {
|
|
906
|
-
i && (
|
|
916
|
+
i && (p.value = i, d.value.total = i.length);
|
|
907
917
|
},
|
|
908
918
|
{ immediate: !0 }
|
|
909
919
|
);
|
|
910
|
-
const
|
|
920
|
+
const c = g(t.columns.value), s = {
|
|
911
921
|
onChange: (i, m) => {
|
|
912
922
|
t && (t.selectKeys.value = i, t.selectRows.value = m);
|
|
913
923
|
},
|
|
@@ -915,7 +925,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
915
925
|
getCheckboxProps: (i) => ({
|
|
916
926
|
disabled: i.Enabled === 0
|
|
917
927
|
}),
|
|
918
|
-
...
|
|
928
|
+
...r.rowSelection
|
|
919
929
|
}, u = g(s);
|
|
920
930
|
$(
|
|
921
931
|
() => t.selectable.value,
|
|
@@ -926,36 +936,36 @@ const ma = /* @__PURE__ */ C({
|
|
|
926
936
|
), $(
|
|
927
937
|
() => t.columns.value,
|
|
928
938
|
() => {
|
|
929
|
-
|
|
939
|
+
c.value = we(t.columns.value);
|
|
930
940
|
},
|
|
931
941
|
{ deep: !0, immediate: !0 }
|
|
932
942
|
);
|
|
933
943
|
const l = g(!1);
|
|
934
|
-
return
|
|
944
|
+
return Oe(() => {
|
|
935
945
|
l.value && t && (t.reload.value = !0);
|
|
936
|
-
}),
|
|
937
|
-
he(X.GridControl, t), t.tableData.value ? (
|
|
946
|
+
}), K(async () => {
|
|
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 ve(t)).rows : p.value = await je(t)), setTimeout(() => {
|
|
938
948
|
l.value = !0;
|
|
939
949
|
}, 50);
|
|
940
950
|
}), (i, m) => {
|
|
941
951
|
var S, F;
|
|
942
|
-
const x =
|
|
943
|
-
return
|
|
944
|
-
(S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (
|
|
952
|
+
const x = Q("permit");
|
|
953
|
+
return f(), w(M, null, [
|
|
954
|
+
(S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (f(), h(At, {
|
|
945
955
|
key: 0,
|
|
946
956
|
"grid-ctrl": e(t),
|
|
947
957
|
"editor-ctrl": e(t).editor
|
|
948
958
|
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
949
|
-
l.value ? (
|
|
959
|
+
l.value ? (f(), h(e(Ne), B({
|
|
950
960
|
key: 1,
|
|
951
961
|
class: "w-full",
|
|
952
|
-
"row-key":
|
|
953
|
-
"data-source":
|
|
962
|
+
"row-key": r.primaryKey ?? e(t).primaryKey ?? "Id",
|
|
963
|
+
"data-source": p.value,
|
|
954
964
|
loading: e(t).isGridLoading.value,
|
|
955
|
-
columns:
|
|
965
|
+
columns: c.value,
|
|
956
966
|
pagination: d.value,
|
|
957
967
|
"row-selection": u.value,
|
|
958
|
-
scroll:
|
|
968
|
+
scroll: r.scroll || { x: 700, y: 1e3 },
|
|
959
969
|
size: e(t).tableSize.value,
|
|
960
970
|
bordered: ""
|
|
961
971
|
}, e(a)), {
|
|
@@ -966,13 +976,13 @@ const ma = /* @__PURE__ */ C({
|
|
|
966
976
|
column: y == null ? void 0 : y.column,
|
|
967
977
|
record: y == null ? void 0 : y.record
|
|
968
978
|
}),
|
|
969
|
-
e(t) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ?
|
|
979
|
+
e(t) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ? V((f(), h(Et, {
|
|
970
980
|
key: 0,
|
|
971
981
|
checked: y.record.Enabled,
|
|
972
|
-
"onUpdate:checked": (
|
|
982
|
+
"onUpdate:checked": (pe) => y.record.Enabled = pe,
|
|
973
983
|
disabled: i.statusDisabled ? i.statusDisabled(y.record) : !1,
|
|
974
984
|
data: e(Te).EnableDisable,
|
|
975
|
-
onClick: (
|
|
985
|
+
onClick: (pe) => e(He)(e(t), y.record),
|
|
976
986
|
class: N([
|
|
977
987
|
"w-[58px]",
|
|
978
988
|
i.statusDisabled && i.statusDisabled(y.record) ? "cursor-not-allowed disabled" : ""
|
|
@@ -985,7 +995,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
985
995
|
key: 1,
|
|
986
996
|
record: y == null ? void 0 : y.record
|
|
987
997
|
}, () => [
|
|
988
|
-
b(
|
|
998
|
+
b(Pt, {
|
|
989
999
|
record: y == null ? void 0 : y.record,
|
|
990
1000
|
"grid-ctrl": e(t)
|
|
991
1001
|
}, null, 8, ["record", "grid-ctrl"])
|
|
@@ -997,7 +1007,7 @@ const ma = /* @__PURE__ */ C({
|
|
|
997
1007
|
], 64);
|
|
998
1008
|
};
|
|
999
1009
|
}
|
|
1000
|
-
}),
|
|
1010
|
+
}), Yt = { class: "flex items-center gap-1" }, Lt = { class: "text-nowrap" }, Ca = /* @__PURE__ */ C({
|
|
1001
1011
|
__name: "index",
|
|
1002
1012
|
props: {
|
|
1003
1013
|
treeCtrl: {},
|
|
@@ -1005,15 +1015,15 @@ const ma = /* @__PURE__ */ C({
|
|
|
1005
1015
|
expandedKeys: {}
|
|
1006
1016
|
},
|
|
1007
1017
|
emits: ["select", "update:selectedKeys"],
|
|
1008
|
-
setup(v, { emit:
|
|
1009
|
-
const a = v, t = W(),
|
|
1018
|
+
setup(v, { emit: r }) {
|
|
1019
|
+
const a = v, t = W(), o = a.treeCtrl, n = g([]);
|
|
1010
1020
|
$(
|
|
1011
|
-
() =>
|
|
1021
|
+
() => o.data.value,
|
|
1012
1022
|
(u) => {
|
|
1013
|
-
u && (n.value =
|
|
1023
|
+
u && (n.value = o.fieldMap ? ee(o.fieldMap, u) : u, s(a.selectedKeys ?? []));
|
|
1014
1024
|
}
|
|
1015
1025
|
);
|
|
1016
|
-
const
|
|
1026
|
+
const p = r, d = g([]);
|
|
1017
1027
|
$(
|
|
1018
1028
|
() => a.selectedKeys,
|
|
1019
1029
|
(u) => {
|
|
@@ -1021,32 +1031,32 @@ const ma = /* @__PURE__ */ C({
|
|
|
1021
1031
|
},
|
|
1022
1032
|
{ immediate: !0 }
|
|
1023
1033
|
);
|
|
1024
|
-
const
|
|
1034
|
+
const c = g(["-"]);
|
|
1025
1035
|
$(
|
|
1026
1036
|
() => a.expandedKeys,
|
|
1027
1037
|
(u) => {
|
|
1028
|
-
u && (
|
|
1038
|
+
u && (c.value = u);
|
|
1029
1039
|
},
|
|
1030
1040
|
{ immediate: !0 }
|
|
1031
1041
|
);
|
|
1032
1042
|
const s = (u, l) => {
|
|
1033
|
-
u.length === 0 && u.push(...d.value), u.length > 0 && (
|
|
1043
|
+
u.length === 0 && u.push(...d.value), u.length > 0 && (o.node.value = l == null ? void 0 : l.node.dataRef), d.value = u, p("update:selectedKeys", u), p("select", u, l);
|
|
1034
1044
|
};
|
|
1035
|
-
return
|
|
1036
|
-
|
|
1045
|
+
return K(() => {
|
|
1046
|
+
o.fieldMap || (o.fieldMap = {
|
|
1037
1047
|
label: "Name",
|
|
1038
1048
|
key: "Id",
|
|
1039
1049
|
value: "Id",
|
|
1040
1050
|
icon: "Icon"
|
|
1041
|
-
}),
|
|
1042
|
-
}), (u, l) => (
|
|
1051
|
+
}), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload && De(o);
|
|
1052
|
+
}), (u, l) => (f(), h(e(rt), B({
|
|
1043
1053
|
class: "w-full",
|
|
1044
1054
|
"show-line": !0,
|
|
1045
1055
|
"tree-data": n.value,
|
|
1046
|
-
"expanded-keys":
|
|
1047
|
-
"onUpdate:expandedKeys": l[0] || (l[0] = (i) =>
|
|
1056
|
+
"expanded-keys": c.value,
|
|
1057
|
+
"onUpdate:expandedKeys": l[0] || (l[0] = (i) => c.value = i),
|
|
1048
1058
|
"selected-keys": d.value,
|
|
1049
|
-
loading: e(
|
|
1059
|
+
loading: e(o).isTreeLoading,
|
|
1050
1060
|
onSelect: s
|
|
1051
1061
|
}, e(t)), {
|
|
1052
1062
|
title: _(({ key: i, label: m, icon: x }) => [
|
|
@@ -1055,40 +1065,40 @@ const ma = /* @__PURE__ */ C({
|
|
|
1055
1065
|
key: i,
|
|
1056
1066
|
icon: x
|
|
1057
1067
|
}, () => [
|
|
1058
|
-
T("div",
|
|
1068
|
+
T("div", Yt, [
|
|
1059
1069
|
b(e(Y), { icon: x }, null, 8, ["icon"]),
|
|
1060
|
-
T("span",
|
|
1070
|
+
T("span", Lt, D(m), 1)
|
|
1061
1071
|
])
|
|
1062
1072
|
])
|
|
1063
1073
|
]),
|
|
1064
1074
|
_: 3
|
|
1065
1075
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1066
1076
|
}
|
|
1067
|
-
}),
|
|
1077
|
+
}), wa = /* @__PURE__ */ j(ht, [["__scopeId", "data-v-1e39ad49"]]), Rt = {
|
|
1068
1078
|
key: 0,
|
|
1069
1079
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1070
|
-
},
|
|
1080
|
+
}, Ut = /* @__PURE__ */ C({
|
|
1071
1081
|
inheritAttrs: !1,
|
|
1072
1082
|
__name: "index",
|
|
1073
1083
|
props: We,
|
|
1074
1084
|
emits: ["change", "update:labels", "update:value"],
|
|
1075
|
-
setup(v, { emit:
|
|
1085
|
+
setup(v, { emit: r }) {
|
|
1076
1086
|
var m, x, S;
|
|
1077
|
-
const a = v, t = W(),
|
|
1087
|
+
const a = v, t = W(), o = g({
|
|
1078
1088
|
...a.url,
|
|
1079
1089
|
url: ((m = a.url) == null ? void 0 : m.url) || "",
|
|
1080
1090
|
fieldMap: a.fieldMap || ((x = a.url) == null ? void 0 : x.fieldMap),
|
|
1081
1091
|
params: a.params || ((S = a.url) == null ? void 0 : S.params),
|
|
1082
1092
|
loadingText: !1
|
|
1083
|
-
}), n =
|
|
1093
|
+
}), n = O(), { editorCtrl: p, errInfo: d, labelText: c } = n, s = g(t.placeholder);
|
|
1084
1094
|
$(
|
|
1085
|
-
() =>
|
|
1095
|
+
() => o.value.loading,
|
|
1086
1096
|
(F) => {
|
|
1087
|
-
F ? s.value = "" : s.value || (s.value = "请选择" +
|
|
1097
|
+
F ? s.value = "" : s.value || (s.value = "请选择" + c.value);
|
|
1088
1098
|
},
|
|
1089
1099
|
{ immediate: !0 }
|
|
1090
1100
|
);
|
|
1091
|
-
const u =
|
|
1101
|
+
const u = r;
|
|
1092
1102
|
n.inputEmit = u;
|
|
1093
1103
|
const l = g([]), i = (F, y) => {
|
|
1094
1104
|
if (!y || y.length === 0) {
|
|
@@ -1099,45 +1109,45 @@ const ma = /* @__PURE__ */ C({
|
|
|
1099
1109
|
u("update:labels", A), u(
|
|
1100
1110
|
"update:value",
|
|
1101
1111
|
y.map((E) => E.value)
|
|
1102
|
-
), d != null && d.value.errClass &&
|
|
1112
|
+
), d != null && d.value.errClass && p && U(p);
|
|
1103
1113
|
};
|
|
1104
|
-
return
|
|
1105
|
-
|
|
1114
|
+
return K(() => {
|
|
1115
|
+
o.value && !o.value.fieldMap && (o.value.fieldMap = {
|
|
1106
1116
|
title: "Name",
|
|
1107
1117
|
label: "Name",
|
|
1108
1118
|
value: "Id",
|
|
1109
1119
|
key: "Id"
|
|
1110
|
-
}), $e(a.autoload, a, l, n,
|
|
1120
|
+
}), $e(a.autoload, a, l, n, o.value, o.value.params);
|
|
1111
1121
|
}), xe(() => {
|
|
1112
1122
|
Se(a, n);
|
|
1113
1123
|
}), (F, y) => {
|
|
1114
1124
|
var A;
|
|
1115
|
-
return
|
|
1116
|
-
l.value.length ? k("", !0) : (
|
|
1125
|
+
return f(), w("div", null, [
|
|
1126
|
+
l.value.length ? k("", !0) : (f(), w("div", Rt, [
|
|
1117
1127
|
b(e(Je), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1118
1128
|
y[0] || (y[0] = T("span", null, "数据加载中...", -1))
|
|
1119
1129
|
])),
|
|
1120
|
-
b(e(
|
|
1130
|
+
b(e(ot), B({
|
|
1121
1131
|
options: l.value,
|
|
1122
1132
|
class: [(A = e(d)) == null ? void 0 : A.errClass],
|
|
1123
1133
|
"allow-clear": !0,
|
|
1124
|
-
placeholder: l.value.length > 0 ? "请选择" + e(
|
|
1134
|
+
placeholder: l.value.length > 0 ? "请选择" + e(c) : "",
|
|
1125
1135
|
onChange: i
|
|
1126
1136
|
}, e(t)), null, 16, ["options", "class", "placeholder"])
|
|
1127
1137
|
]);
|
|
1128
1138
|
};
|
|
1129
1139
|
}
|
|
1130
|
-
}),
|
|
1140
|
+
}), $a = /* @__PURE__ */ j(Ut, [["__scopeId", "data-v-05e57a52"]]), Sa = /* @__PURE__ */ j(gt, [["__scopeId", "data-v-dc59fe7f"]]);
|
|
1131
1141
|
function te() {
|
|
1132
1142
|
return te = Object.assign ? Object.assign.bind() : function(v) {
|
|
1133
|
-
for (var
|
|
1134
|
-
var a = arguments[
|
|
1143
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1144
|
+
var a = arguments[r];
|
|
1135
1145
|
for (var t in a) ({}).hasOwnProperty.call(a, t) && (v[t] = a[t]);
|
|
1136
1146
|
}
|
|
1137
1147
|
return v;
|
|
1138
1148
|
}, te.apply(null, arguments);
|
|
1139
1149
|
}
|
|
1140
|
-
const
|
|
1150
|
+
const qt = {
|
|
1141
1151
|
locale: "zh_CN",
|
|
1142
1152
|
today: "今天",
|
|
1143
1153
|
now: "此刻",
|
|
@@ -1164,10 +1174,10 @@ const Ut = {
|
|
|
1164
1174
|
nextDecade: "下一年代",
|
|
1165
1175
|
previousCentury: "上一世纪",
|
|
1166
1176
|
nextCentury: "下一世纪"
|
|
1167
|
-
},
|
|
1177
|
+
}, Qt = {
|
|
1168
1178
|
placeholder: "请选择时间",
|
|
1169
1179
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1170
|
-
},
|
|
1180
|
+
}, ce = {
|
|
1171
1181
|
lang: te({
|
|
1172
1182
|
placeholder: "请选择日期",
|
|
1173
1183
|
yearPlaceholder: "请选择年份",
|
|
@@ -1179,51 +1189,51 @@ const Ut = {
|
|
|
1179
1189
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1180
1190
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1181
1191
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1182
|
-
},
|
|
1183
|
-
timePickerLocale: te({},
|
|
1192
|
+
}, qt),
|
|
1193
|
+
timePickerLocale: te({}, Qt)
|
|
1184
1194
|
};
|
|
1185
|
-
|
|
1186
|
-
const
|
|
1195
|
+
ce.lang.ok = "确定";
|
|
1196
|
+
const Ta = /* @__PURE__ */ C({
|
|
1187
1197
|
__name: "index",
|
|
1188
1198
|
props: {
|
|
1189
1199
|
valueFormat: {}
|
|
1190
1200
|
},
|
|
1191
1201
|
setup(v) {
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1194
|
-
},
|
|
1195
|
-
return (d,
|
|
1202
|
+
const r = v, { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1203
|
+
o != null && o.value.errClass && a && U(a);
|
|
1204
|
+
}, p = g(r.valueFormat ?? "YYYY-MM-DD");
|
|
1205
|
+
return (d, c) => {
|
|
1196
1206
|
var s;
|
|
1197
|
-
return
|
|
1198
|
-
class: N([[((s = e(
|
|
1207
|
+
return f(), h(e(st), {
|
|
1208
|
+
class: N([[((s = e(o)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
|
|
1199
1209
|
placeholder: "请选择" + e(t),
|
|
1200
|
-
locale: e(
|
|
1201
|
-
valueFormat:
|
|
1210
|
+
locale: e(ce),
|
|
1211
|
+
valueFormat: p.value,
|
|
1202
1212
|
onBlur: n
|
|
1203
1213
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1204
1214
|
};
|
|
1205
1215
|
}
|
|
1206
|
-
}),
|
|
1216
|
+
}), Vt = /* @__PURE__ */ C({
|
|
1207
1217
|
__name: "index",
|
|
1208
1218
|
props: {
|
|
1209
1219
|
value: {}
|
|
1210
1220
|
},
|
|
1211
1221
|
emits: ["update:value"],
|
|
1212
|
-
setup(v, { emit:
|
|
1213
|
-
const { editorCtrl: a, labelText: t, errInfo:
|
|
1214
|
-
|
|
1215
|
-
},
|
|
1222
|
+
setup(v, { emit: r }) {
|
|
1223
|
+
const { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1224
|
+
o != null && o.value.errClass && a && U(a);
|
|
1225
|
+
}, p = v, d = r, c = g(p.value);
|
|
1216
1226
|
$(
|
|
1217
|
-
() =>
|
|
1227
|
+
() => p.value,
|
|
1218
1228
|
(u) => {
|
|
1219
|
-
|
|
1229
|
+
c.value = u;
|
|
1220
1230
|
},
|
|
1221
1231
|
{ immediate: !0 }
|
|
1222
1232
|
// 立即同步初始值
|
|
1223
1233
|
), $(
|
|
1224
|
-
() =>
|
|
1234
|
+
() => c.value,
|
|
1225
1235
|
(u) => {
|
|
1226
|
-
if (
|
|
1236
|
+
if (c.value === "") {
|
|
1227
1237
|
d("update:value", void 0);
|
|
1228
1238
|
return;
|
|
1229
1239
|
}
|
|
@@ -1231,17 +1241,17 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1231
1241
|
}
|
|
1232
1242
|
);
|
|
1233
1243
|
const s = () => {
|
|
1234
|
-
|
|
1244
|
+
c.value === "" && (c.value = void 0);
|
|
1235
1245
|
};
|
|
1236
1246
|
return (u, l) => {
|
|
1237
1247
|
var i, m;
|
|
1238
|
-
return
|
|
1248
|
+
return f(), h(e(se), B({
|
|
1239
1249
|
class: [
|
|
1240
|
-
(i = e(
|
|
1241
|
-
((m = e(
|
|
1250
|
+
(i = e(o)) == null ? void 0 : i.errClass,
|
|
1251
|
+
((m = e(o)) == null ? void 0 : m.errClass) === "error" && !u.$slots.addonBefore && !u.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1242
1252
|
],
|
|
1243
|
-
value:
|
|
1244
|
-
"onUpdate:value": l[0] || (l[0] = (x) =>
|
|
1253
|
+
value: c.value,
|
|
1254
|
+
"onUpdate:value": l[0] || (l[0] = (x) => c.value = x),
|
|
1245
1255
|
autocomplete: "new-password",
|
|
1246
1256
|
"allow-clear": !0,
|
|
1247
1257
|
placeholder: "请输入" + e(t),
|
|
@@ -1265,73 +1275,73 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1265
1275
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1266
1276
|
};
|
|
1267
1277
|
}
|
|
1268
|
-
}),
|
|
1278
|
+
}), jt = /* @__PURE__ */ C({
|
|
1269
1279
|
__name: "inputIcon",
|
|
1270
1280
|
props: {
|
|
1271
1281
|
value: {}
|
|
1272
1282
|
},
|
|
1273
1283
|
emits: ["update:value"],
|
|
1274
|
-
setup(v, { emit:
|
|
1275
|
-
const a = v, t =
|
|
1284
|
+
setup(v, { emit: r }) {
|
|
1285
|
+
const a = v, t = r, o = g(void 0);
|
|
1276
1286
|
return $(
|
|
1277
1287
|
() => a.value,
|
|
1278
1288
|
(n) => {
|
|
1279
|
-
|
|
1289
|
+
o.value = n ?? void 0;
|
|
1280
1290
|
},
|
|
1281
1291
|
{ immediate: !0 }
|
|
1282
1292
|
), $(
|
|
1283
|
-
() =>
|
|
1293
|
+
() => o.value,
|
|
1284
1294
|
(n) => {
|
|
1285
1295
|
t("update:value", n);
|
|
1286
1296
|
}
|
|
1287
|
-
), (n,
|
|
1297
|
+
), (n, p) => (f(), h(Vt, B({
|
|
1288
1298
|
class: ["w-[80%]"],
|
|
1289
|
-
value:
|
|
1290
|
-
"onUpdate:value":
|
|
1299
|
+
value: o.value,
|
|
1300
|
+
"onUpdate:value": p[0] || (p[0] = (d) => o.value = d)
|
|
1291
1301
|
}, n.$attrs), {
|
|
1292
1302
|
addonBefore: _(() => [
|
|
1293
1303
|
b(e(Y), {
|
|
1294
1304
|
class: "!w-4 !h-4",
|
|
1295
|
-
icon:
|
|
1305
|
+
icon: o.value
|
|
1296
1306
|
}, null, 8, ["icon"])
|
|
1297
1307
|
]),
|
|
1298
1308
|
_: 1
|
|
1299
1309
|
}, 16, ["value"]));
|
|
1300
1310
|
}
|
|
1301
|
-
}),
|
|
1311
|
+
}), Da = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-f7b3ed74"]]), Ia = /* @__PURE__ */ C({
|
|
1302
1312
|
__name: "inputPassword",
|
|
1303
1313
|
setup(v) {
|
|
1304
|
-
const { editorCtrl:
|
|
1305
|
-
t != null && t.value.errClass &&
|
|
1314
|
+
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1315
|
+
t != null && t.value.errClass && r && U(r);
|
|
1306
1316
|
};
|
|
1307
|
-
return (n,
|
|
1317
|
+
return (n, p) => {
|
|
1308
1318
|
var d;
|
|
1309
|
-
return
|
|
1319
|
+
return f(), h(e(nt), B({
|
|
1310
1320
|
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1311
1321
|
"allow-clear": !0,
|
|
1312
1322
|
autocomplete: "new-password",
|
|
1313
1323
|
placeholder: "请输入" + e(a),
|
|
1314
|
-
onBlur:
|
|
1324
|
+
onBlur: o
|
|
1315
1325
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1316
1326
|
};
|
|
1317
1327
|
}
|
|
1318
|
-
}),
|
|
1328
|
+
}), Ba = /* @__PURE__ */ C({
|
|
1319
1329
|
__name: "inputNumber",
|
|
1320
1330
|
setup(v) {
|
|
1321
|
-
const { editorCtrl:
|
|
1322
|
-
t != null && t.value.errClass &&
|
|
1331
|
+
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1332
|
+
t != null && t.value.errClass && r && U(r);
|
|
1323
1333
|
};
|
|
1324
|
-
return (n,
|
|
1334
|
+
return (n, p) => {
|
|
1325
1335
|
var d;
|
|
1326
|
-
return
|
|
1336
|
+
return f(), h(e(ut), B({
|
|
1327
1337
|
class: [[((d = e(t)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1328
|
-
onBlur:
|
|
1338
|
+
onBlur: o,
|
|
1329
1339
|
"allow-clear": !1,
|
|
1330
1340
|
placeholder: "请输入" + e(a)
|
|
1331
1341
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1332
1342
|
};
|
|
1333
1343
|
}
|
|
1334
|
-
}),
|
|
1344
|
+
}), Ht = { class: "flex flex-col gap-2" }, Wt = { class: "w-[33%]" }, Jt = { class: "w-[64%]" }, Fa = /* @__PURE__ */ C({
|
|
1335
1345
|
__name: "index",
|
|
1336
1346
|
props: {
|
|
1337
1347
|
value: {},
|
|
@@ -1339,24 +1349,24 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1339
1349
|
valueHolder: {}
|
|
1340
1350
|
},
|
|
1341
1351
|
emits: ["update:value"],
|
|
1342
|
-
setup(v, { emit:
|
|
1343
|
-
const a = v, t =
|
|
1352
|
+
setup(v, { emit: r }) {
|
|
1353
|
+
const a = v, t = r, o = g([]);
|
|
1344
1354
|
let n = !1;
|
|
1345
|
-
const
|
|
1346
|
-
|
|
1355
|
+
const p = () => {
|
|
1356
|
+
o.value = Object.entries(a.value).map(([u, l]) => ({
|
|
1347
1357
|
id: Date.now() + Math.random(),
|
|
1348
1358
|
field: u,
|
|
1349
1359
|
value: l
|
|
1350
1360
|
}));
|
|
1351
1361
|
};
|
|
1352
1362
|
$(() => a.value, () => {
|
|
1353
|
-
n ||
|
|
1363
|
+
n || p(), n = !1;
|
|
1354
1364
|
}, { immediate: !0 });
|
|
1355
1365
|
const d = () => {
|
|
1356
|
-
const u =
|
|
1366
|
+
const u = o.value.reduce((l, i) => (i.field && (l[i.field] = i.value), l), {});
|
|
1357
1367
|
n = !0, t("update:value", u);
|
|
1358
|
-
},
|
|
1359
|
-
|
|
1368
|
+
}, c = () => {
|
|
1369
|
+
o.value.push({
|
|
1360
1370
|
id: Date.now() + Math.random(),
|
|
1361
1371
|
field: "",
|
|
1362
1372
|
value: ""
|
|
@@ -1364,13 +1374,13 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1364
1374
|
}, s = () => {
|
|
1365
1375
|
d();
|
|
1366
1376
|
};
|
|
1367
|
-
return (u, l) => (
|
|
1368
|
-
(
|
|
1377
|
+
return (u, l) => (f(), w("div", Ht, [
|
|
1378
|
+
(f(!0), w(M, null, L(o.value, (i) => (f(), w("div", {
|
|
1369
1379
|
key: i.id,
|
|
1370
1380
|
class: "flex items-center gap-2"
|
|
1371
1381
|
}, [
|
|
1372
|
-
T("div",
|
|
1373
|
-
b(e(
|
|
1382
|
+
T("div", Wt, [
|
|
1383
|
+
b(e(se), {
|
|
1374
1384
|
value: i.field,
|
|
1375
1385
|
"onUpdate:value": (m) => i.field = m,
|
|
1376
1386
|
title: i.field,
|
|
@@ -1380,8 +1390,8 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1380
1390
|
}, null, 8, ["value", "onUpdate:value", "title", "placeholder"])
|
|
1381
1391
|
]),
|
|
1382
1392
|
l[0] || (l[0] = T("div", { class: "w-[3%]" }, " = ", -1)),
|
|
1383
|
-
T("div",
|
|
1384
|
-
b(e(
|
|
1393
|
+
T("div", Jt, [
|
|
1394
|
+
b(e(se), {
|
|
1385
1395
|
value: i.value,
|
|
1386
1396
|
"onUpdate:value": (m) => i.value = m,
|
|
1387
1397
|
placeholder: u.valueHolder,
|
|
@@ -1391,7 +1401,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1391
1401
|
])
|
|
1392
1402
|
]))), 128)),
|
|
1393
1403
|
b(e(Me), {
|
|
1394
|
-
onClick:
|
|
1404
|
+
onClick: c,
|
|
1395
1405
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1396
1406
|
size: "small"
|
|
1397
1407
|
}, {
|
|
@@ -1403,7 +1413,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1403
1413
|
})
|
|
1404
1414
|
]));
|
|
1405
1415
|
}
|
|
1406
|
-
}),
|
|
1416
|
+
}), Gt = /* @__PURE__ */ j(xt, [["__scopeId", "data-v-f9b2ac3d"]]), Pa = /* @__PURE__ */ C({
|
|
1407
1417
|
__name: "radioStatus",
|
|
1408
1418
|
props: {
|
|
1409
1419
|
/**
|
|
@@ -1431,13 +1441,13 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1431
1441
|
}
|
|
1432
1442
|
},
|
|
1433
1443
|
setup(v) {
|
|
1434
|
-
const
|
|
1435
|
-
return
|
|
1444
|
+
const r = v, a = g(JSON.parse(JSON.stringify(Te.getOptions(r.dataKey))));
|
|
1445
|
+
return r.all === !0 && a.value.unshift({
|
|
1436
1446
|
label: "全部",
|
|
1437
|
-
value:
|
|
1438
|
-
}), (t,
|
|
1447
|
+
value: r.allValue || [0, 1]
|
|
1448
|
+
}), (t, o) => (f(), h(Gt, { data: a.value }, null, 8, ["data"]));
|
|
1439
1449
|
}
|
|
1440
|
-
}),
|
|
1450
|
+
}), Ma = /* @__PURE__ */ C({
|
|
1441
1451
|
__name: "index",
|
|
1442
1452
|
props: {
|
|
1443
1453
|
startDate: {},
|
|
@@ -1445,8 +1455,8 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1445
1455
|
valueFormat: { default: "YYYY-MM-DD" }
|
|
1446
1456
|
},
|
|
1447
1457
|
emits: ["update:startDate", "update:endDate"],
|
|
1448
|
-
setup(v, { emit:
|
|
1449
|
-
const a = v, t =
|
|
1458
|
+
setup(v, { emit: r }) {
|
|
1459
|
+
const a = v, t = r, o = O(), { errInfo: n } = o, p = re(() => a.valueFormat), d = re(() => {
|
|
1450
1460
|
const s = a.startDate, u = a.endDate;
|
|
1451
1461
|
if (!(!s || !u))
|
|
1452
1462
|
try {
|
|
@@ -1455,7 +1465,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1455
1465
|
} catch {
|
|
1456
1466
|
return;
|
|
1457
1467
|
}
|
|
1458
|
-
}),
|
|
1468
|
+
}), c = (s, u) => {
|
|
1459
1469
|
if (!s || !u || u.length !== 2) {
|
|
1460
1470
|
t("update:startDate", null), t("update:endDate", null);
|
|
1461
1471
|
return;
|
|
@@ -1464,36 +1474,36 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1464
1474
|
};
|
|
1465
1475
|
return (s, u) => {
|
|
1466
1476
|
var l;
|
|
1467
|
-
return
|
|
1477
|
+
return f(), h(e(it), {
|
|
1468
1478
|
class: N([((l = e(n)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1469
|
-
locale: e(
|
|
1470
|
-
"value-format":
|
|
1479
|
+
locale: e(ce),
|
|
1480
|
+
"value-format": p.value,
|
|
1471
1481
|
value: d.value,
|
|
1472
|
-
onChange:
|
|
1482
|
+
onChange: c
|
|
1473
1483
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1474
1484
|
};
|
|
1475
1485
|
}
|
|
1476
|
-
}),
|
|
1486
|
+
}), Na = /* @__PURE__ */ j(yt, [["__scopeId", "data-v-bf782acb"]]), za = /* @__PURE__ */ C({
|
|
1477
1487
|
__name: "index",
|
|
1478
1488
|
setup(v) {
|
|
1479
|
-
const { editorCtrl:
|
|
1480
|
-
t != null && t.value.errClass &&
|
|
1489
|
+
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1490
|
+
t != null && t.value.errClass && r && U(r);
|
|
1481
1491
|
};
|
|
1482
|
-
return (n,
|
|
1492
|
+
return (n, p) => {
|
|
1483
1493
|
var d;
|
|
1484
|
-
return
|
|
1494
|
+
return f(), h(e(dt), B({
|
|
1485
1495
|
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1486
1496
|
"allow-clear": !0,
|
|
1487
1497
|
placeholder: "请输入" + e(a),
|
|
1488
|
-
onBlur:
|
|
1489
|
-
onKeyup:
|
|
1498
|
+
onBlur: o,
|
|
1499
|
+
onKeyup: p[0] || (p[0] = fe(J(() => {
|
|
1490
1500
|
}, ["stop"]), ["enter", "native"])),
|
|
1491
|
-
onKeydown:
|
|
1501
|
+
onKeydown: p[1] || (p[1] = fe(J(() => {
|
|
1492
1502
|
}, ["stop"]), ["enter", "native"]))
|
|
1493
1503
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1494
1504
|
};
|
|
1495
1505
|
}
|
|
1496
|
-
}),
|
|
1506
|
+
}), Xt = /* @__PURE__ */ C({
|
|
1497
1507
|
__name: "index",
|
|
1498
1508
|
props: {
|
|
1499
1509
|
autoload: { type: Boolean },
|
|
@@ -1502,8 +1512,8 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1502
1512
|
value: {}
|
|
1503
1513
|
},
|
|
1504
1514
|
emits: ["change", "update:value"],
|
|
1505
|
-
setup(v, { emit:
|
|
1506
|
-
const a = v, t = g({ ...a.url }), { editorCtrl:
|
|
1515
|
+
setup(v, { emit: r }) {
|
|
1516
|
+
const a = v, t = g({ ...a.url }), { editorCtrl: o, labelText: n, errInfo: p } = O(), d = r, c = g([]), s = g([]);
|
|
1507
1517
|
a.value && a.value.every((l) => {
|
|
1508
1518
|
s.value.push(l.toString());
|
|
1509
1519
|
}), $(
|
|
@@ -1513,25 +1523,25 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1513
1523
|
}
|
|
1514
1524
|
);
|
|
1515
1525
|
const u = (l) => {
|
|
1516
|
-
d("update:value", l), d("change", l), s.value = l,
|
|
1526
|
+
d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o && U(o);
|
|
1517
1527
|
};
|
|
1518
|
-
return
|
|
1528
|
+
return K(async () => {
|
|
1519
1529
|
if (t.value) {
|
|
1520
|
-
const l =
|
|
1530
|
+
const l = o == null ? void 0 : o.page;
|
|
1521
1531
|
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) {
|
|
1522
|
-
const i = await Ie(
|
|
1532
|
+
const i = await Ie(o, {
|
|
1523
1533
|
urlKey: "list",
|
|
1524
1534
|
url: { ...t.value, url: t.value.url },
|
|
1525
1535
|
loadingText: !1,
|
|
1526
1536
|
params: a.params
|
|
1527
1537
|
});
|
|
1528
|
-
|
|
1538
|
+
c.value = (i == null ? void 0 : i.data) ?? [];
|
|
1529
1539
|
}
|
|
1530
1540
|
}
|
|
1531
1541
|
}), (l, i) => {
|
|
1532
1542
|
var m;
|
|
1533
|
-
return
|
|
1534
|
-
class: ((m = e(
|
|
1543
|
+
return f(), h(e(ct), B({
|
|
1544
|
+
class: ((m = e(p)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1535
1545
|
placeholder: "请输入" + e(n),
|
|
1536
1546
|
targetKeys: s.value,
|
|
1537
1547
|
onChange: u
|
|
@@ -1550,7 +1560,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1550
1560
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1551
1561
|
};
|
|
1552
1562
|
}
|
|
1553
|
-
}),
|
|
1563
|
+
}), Ka = /* @__PURE__ */ C({
|
|
1554
1564
|
__name: "transferTable",
|
|
1555
1565
|
props: {
|
|
1556
1566
|
/**
|
|
@@ -1576,8 +1586,8 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1576
1586
|
}
|
|
1577
1587
|
},
|
|
1578
1588
|
emits: ["update:value"],
|
|
1579
|
-
setup(v, { emit:
|
|
1580
|
-
const a = v, t =
|
|
1589
|
+
setup(v, { emit: r }) {
|
|
1590
|
+
const a = v, t = r, o = g(a.autoload), n = g(a.value), p = g(a.gridCtrl.primaryKey);
|
|
1581
1591
|
$(
|
|
1582
1592
|
() => n.value,
|
|
1583
1593
|
(s) => {
|
|
@@ -1595,27 +1605,27 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1595
1605
|
disabled: s || m.disabled
|
|
1596
1606
|
}),
|
|
1597
1607
|
onSelectAll(m, x) {
|
|
1598
|
-
const S = x.filter((F) => !F.disabled).map(({ [
|
|
1608
|
+
const S = x.filter((F) => !F.disabled).map(({ [p.value]: F }) => F);
|
|
1599
1609
|
l(S, m);
|
|
1600
1610
|
},
|
|
1601
|
-
onSelect({ [
|
|
1611
|
+
onSelect({ [p.value]: m }, x) {
|
|
1602
1612
|
i(m, x);
|
|
1603
1613
|
},
|
|
1604
1614
|
selectedRowKeys: u
|
|
1605
|
-
}),
|
|
1606
|
-
return
|
|
1607
|
-
if (
|
|
1615
|
+
}), c = g([]);
|
|
1616
|
+
return K(async () => {
|
|
1617
|
+
if (o.value) {
|
|
1608
1618
|
const s = await Ie(a.gridCtrl, {
|
|
1609
1619
|
urlKey: "list",
|
|
1610
1620
|
url: { ...a.gridCtrl.gridUrl, url: a.gridCtrl.gridUrl.url },
|
|
1611
1621
|
params: a.gridCtrl.gridQuery,
|
|
1612
1622
|
loadingText: !1
|
|
1613
1623
|
});
|
|
1614
|
-
|
|
1624
|
+
c.value = (s == null ? void 0 : s.data) ?? [];
|
|
1615
1625
|
}
|
|
1616
|
-
}), (s, u) => (
|
|
1617
|
-
"data-source":
|
|
1618
|
-
"row-key": (l) => l[
|
|
1626
|
+
}), (s, u) => (f(), h(Xt, B({
|
|
1627
|
+
"data-source": c.value,
|
|
1628
|
+
"row-key": (l) => l[p.value],
|
|
1619
1629
|
value: n.value,
|
|
1620
1630
|
"onUpdate:value": u[0] || (u[0] = (l) => n.value = l),
|
|
1621
1631
|
"list-style": {
|
|
@@ -1634,7 +1644,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1634
1644
|
children: _(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
|
|
1635
1645
|
b(e(Ne), {
|
|
1636
1646
|
columns: v.gridCtrl.columns.value,
|
|
1637
|
-
"row-key":
|
|
1647
|
+
"row-key": p.value,
|
|
1638
1648
|
"row-selection": d({
|
|
1639
1649
|
disabled: !1,
|
|
1640
1650
|
selectedKeys: x,
|
|
@@ -1647,7 +1657,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1647
1657
|
scroll: { x: 300 },
|
|
1648
1658
|
"custom-row": (S) => ({
|
|
1649
1659
|
onClick: () => {
|
|
1650
|
-
const F = S[
|
|
1660
|
+
const F = S[p.value];
|
|
1651
1661
|
m(F, !x.includes(F));
|
|
1652
1662
|
}
|
|
1653
1663
|
})
|
|
@@ -1656,7 +1666,7 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1656
1666
|
_: 1
|
|
1657
1667
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
1658
1668
|
}
|
|
1659
|
-
}),
|
|
1669
|
+
}), Zt = /* @__PURE__ */ C({
|
|
1660
1670
|
__name: "index",
|
|
1661
1671
|
props: {
|
|
1662
1672
|
multiple: {
|
|
@@ -1673,10 +1683,10 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1673
1683
|
}
|
|
1674
1684
|
},
|
|
1675
1685
|
emits: ["change", "update:value"],
|
|
1676
|
-
setup(v, { emit:
|
|
1677
|
-
const a = v, t = a.treeCtrl,
|
|
1678
|
-
|
|
1679
|
-
const
|
|
1686
|
+
setup(v, { emit: r }) {
|
|
1687
|
+
const a = v, t = a.treeCtrl, o = O(), { errInfo: n, labelText: p } = o, d = r;
|
|
1688
|
+
o.inputEmit = d;
|
|
1689
|
+
const c = g([]), s = g();
|
|
1680
1690
|
$(
|
|
1681
1691
|
() => a.value,
|
|
1682
1692
|
(l) => {
|
|
@@ -1686,58 +1696,58 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1686
1696
|
), $(
|
|
1687
1697
|
() => t.data.value,
|
|
1688
1698
|
(l) => {
|
|
1689
|
-
l && (
|
|
1699
|
+
l && (c.value = t.fieldMap ? ee(t.fieldMap, l) : l);
|
|
1690
1700
|
},
|
|
1691
1701
|
{ immediate: !0 }
|
|
1692
1702
|
);
|
|
1693
1703
|
const u = (l) => {
|
|
1694
1704
|
a.multiple ? s.value = l ?? [] : s.value = l ?? "", d("change", s.value), d("update:value", s.value);
|
|
1695
1705
|
};
|
|
1696
|
-
return
|
|
1706
|
+
return K(() => {
|
|
1697
1707
|
t.fieldMap || (t.fieldMap = {
|
|
1698
1708
|
label: "Name",
|
|
1699
1709
|
key: "Id",
|
|
1700
1710
|
value: "Id"
|
|
1701
|
-
}), t.data.value ?
|
|
1711
|
+
}), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && De(a.treeCtrl);
|
|
1702
1712
|
}), (l, i) => {
|
|
1703
1713
|
var m;
|
|
1704
|
-
return
|
|
1714
|
+
return f(), h(e(pt), B({
|
|
1705
1715
|
class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
|
|
1706
1716
|
"tree-line": "",
|
|
1707
1717
|
multiple: v.multiple,
|
|
1708
1718
|
"tree-default-expanded-keys": ["-"],
|
|
1709
1719
|
value: s.value,
|
|
1710
1720
|
"onUpdate:value": i[0] || (i[0] = (x) => s.value = x),
|
|
1711
|
-
"tree-data":
|
|
1712
|
-
placeholder: "请选择" + e(
|
|
1721
|
+
"tree-data": c.value,
|
|
1722
|
+
placeholder: "请选择" + e(p),
|
|
1713
1723
|
"allow-clear": !0,
|
|
1714
1724
|
onChange: u
|
|
1715
1725
|
}, l.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
1716
1726
|
};
|
|
1717
1727
|
}
|
|
1718
|
-
}),
|
|
1728
|
+
}), Oa = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-64be74cc"]]), ea = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ta = { class: "flex w-full h-full min-h-full" }, aa = {
|
|
1719
1729
|
key: 0,
|
|
1720
1730
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
1721
|
-
},
|
|
1731
|
+
}, la = { class: "flex-1 h-full overflow-y-auto" }, Aa = /* @__PURE__ */ C({
|
|
1722
1732
|
__name: "index",
|
|
1723
1733
|
props: {
|
|
1724
1734
|
left: { type: Boolean }
|
|
1725
1735
|
},
|
|
1726
1736
|
setup(v) {
|
|
1727
|
-
const { useToken:
|
|
1728
|
-
return (t,
|
|
1729
|
-
b(e(
|
|
1737
|
+
const { useToken: r } = Be, { token: a } = r();
|
|
1738
|
+
return (t, o) => (f(), w("div", ea, [
|
|
1739
|
+
b(e(ft), {
|
|
1730
1740
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
1731
|
-
style:
|
|
1741
|
+
style: ne({
|
|
1732
1742
|
backgroundColor: e(a).colorBgContainer
|
|
1733
1743
|
})
|
|
1734
1744
|
}, {
|
|
1735
1745
|
default: _(() => [
|
|
1736
|
-
T("div",
|
|
1737
|
-
t.left ? (
|
|
1746
|
+
T("div", ta, [
|
|
1747
|
+
t.left ? (f(), w("div", aa, [
|
|
1738
1748
|
I(t.$slots, "left")
|
|
1739
1749
|
])) : k("", !0),
|
|
1740
|
-
T("div",
|
|
1750
|
+
T("div", la, [
|
|
1741
1751
|
I(t.$slots, "default")
|
|
1742
1752
|
])
|
|
1743
1753
|
])
|
|
@@ -1746,63 +1756,63 @@ const Sa = /* @__PURE__ */ C({
|
|
|
1746
1756
|
}, 8, ["style"])
|
|
1747
1757
|
]));
|
|
1748
1758
|
}
|
|
1749
|
-
}),
|
|
1759
|
+
}), ra = { class: "font-['Courier'] text-[#666]" }, Ea = /* @__PURE__ */ C({
|
|
1750
1760
|
__name: "index",
|
|
1751
1761
|
setup(v) {
|
|
1752
|
-
const
|
|
1753
|
-
return
|
|
1762
|
+
const r = g("");
|
|
1763
|
+
return K(() => {
|
|
1754
1764
|
setInterval(() => {
|
|
1755
|
-
const a = /* @__PURE__ */ new Date(), t = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" },
|
|
1756
|
-
|
|
1765
|
+
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
|
+
r.value = a.getFullYear() + "-" + o;
|
|
1757
1767
|
}, 1e3);
|
|
1758
|
-
}), (a, t) => (
|
|
1768
|
+
}), (a, t) => (f(), w("div", ra, D(r.value), 1));
|
|
1759
1769
|
}
|
|
1760
1770
|
});
|
|
1761
1771
|
export {
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1772
|
+
Va as AppIcon,
|
|
1773
|
+
wa as AutoComplete,
|
|
1774
|
+
ja as Breadcrumb,
|
|
1775
|
+
z as Button,
|
|
1776
|
+
$a as Cascader,
|
|
1777
|
+
Sa as Checkbox,
|
|
1778
|
+
Aa as Content,
|
|
1779
|
+
Ta as DatePicker,
|
|
1780
|
+
Ea as Datetime,
|
|
1781
|
+
Ra as Dialog,
|
|
1782
|
+
ga as Drawer,
|
|
1783
|
+
xa as Form,
|
|
1784
|
+
ya as FormItem,
|
|
1785
|
+
_a as Fullscreen,
|
|
1786
|
+
Ha as Header,
|
|
1787
|
+
Wa as HeaderExits,
|
|
1788
|
+
kt as Helper,
|
|
1789
|
+
Ja as Icon,
|
|
1790
|
+
Nt as Icontool,
|
|
1791
|
+
Vt as Input,
|
|
1792
|
+
Da as InputIcon,
|
|
1793
|
+
Ba as InputNumber,
|
|
1794
|
+
Ia as InputPassword,
|
|
1795
|
+
ha as LayoutIcon,
|
|
1796
|
+
Ga as Menu,
|
|
1797
|
+
Xa as MenuTabs,
|
|
1798
|
+
Za as ProjectIcon,
|
|
1799
|
+
Fa as PropEditor,
|
|
1800
|
+
Gt as Radio,
|
|
1801
|
+
Pa as RadioStatus,
|
|
1802
|
+
Ma as RangePicker,
|
|
1803
|
+
ba as Search,
|
|
1794
1804
|
le as SearchItem,
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1805
|
+
Na as Select,
|
|
1806
|
+
Et as Switch,
|
|
1807
|
+
ka as Table,
|
|
1808
|
+
Pt as TableOperate,
|
|
1809
|
+
za as Textarea,
|
|
1800
1810
|
Y as ToolIcon,
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1811
|
+
At as Toolbar,
|
|
1812
|
+
qa as Tooltip,
|
|
1813
|
+
Xt as Transfer,
|
|
1814
|
+
Ka as TransferTable,
|
|
1815
|
+
Ca as Tree,
|
|
1816
|
+
Oa as TreeSelect,
|
|
1817
|
+
tl as UploadList
|
|
1808
1818
|
};
|