@skyfox2000/webui 1.0.5 → 1.0.6
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 +399 -399
- package/package.json +1 -1
- package/src/components/content/search/index.vue +2 -6
package/lib/webui.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { _ as Ra } from "./assets/modules/index-D47Ci-T3.js";
|
|
2
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
|
|
4
|
+
import { a as qa } from "./assets/modules/index-BEWJ_qAH.js";
|
|
5
5
|
import { _ as j } from "./assets/modules/menuTabs-BXdbFZor.js";
|
|
6
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
|
|
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
|
|
7
|
+
import { defineComponent as C, createBlock as g, 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 h, provide as ge, 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 he, 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
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
10
|
import { SERVER_HOST as vt, fieldMapping as ee } from "@skyfox2000/fapi";
|
|
11
11
|
import { VueDraggableNext as mt } from "vue-draggable-next";
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
12
|
+
import _t from "vue-m-message";
|
|
13
|
+
import { _ as gt, a as ht, b as xt, c as yt } from "./assets/modules/index-BahGnrAq.js";
|
|
14
|
+
import _e from "dayjs";
|
|
15
15
|
import { _ as tl } from "./assets/modules/uploadList-Dzlg47V0.js";
|
|
16
|
-
const
|
|
16
|
+
const _a = /* @__PURE__ */ C({
|
|
17
17
|
__name: "fullscreen",
|
|
18
18
|
setup(v) {
|
|
19
19
|
const r = ye();
|
|
20
|
-
return (
|
|
20
|
+
return (a, t) => (f(), g(Y, {
|
|
21
21
|
onClick: J(e(Ae), ["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
|
-
}), bt = { class: "ml-2" },
|
|
26
|
+
}), bt = { class: "ml-2" }, kt = /* @__PURE__ */ C({
|
|
27
27
|
inheritAttrs: !1,
|
|
28
28
|
__name: "helper",
|
|
29
29
|
props: {
|
|
@@ -32,18 +32,18 @@ const ga = /* @__PURE__ */ k({
|
|
|
32
32
|
},
|
|
33
33
|
setup(v) {
|
|
34
34
|
const r = W();
|
|
35
|
-
return (
|
|
36
|
-
content:
|
|
37
|
-
|
|
35
|
+
return (a, t) => (f(), g(e(Ge), { placement: "topRight" }, {
|
|
36
|
+
content: _(() => [
|
|
37
|
+
I(a.$slots, "default", {}, () => [
|
|
38
38
|
T("div", {
|
|
39
39
|
class: "text-[14px]",
|
|
40
|
-
style: ne({ maxWidth:
|
|
41
|
-
},
|
|
40
|
+
style: ne({ maxWidth: a.maxWidth })
|
|
41
|
+
}, D(a.text), 5)
|
|
42
42
|
])
|
|
43
43
|
]),
|
|
44
|
-
default:
|
|
44
|
+
default: _(() => [
|
|
45
45
|
T("span", bt, [
|
|
46
|
-
b(Y,
|
|
46
|
+
b(Y, B({
|
|
47
47
|
icon: "icon-question-circle",
|
|
48
48
|
class: "text-[#888] w-4 h-4"
|
|
49
49
|
}, e(r)), null, 16)
|
|
@@ -52,7 +52,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
52
52
|
_: 3
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), ga = /* @__PURE__ */ C({
|
|
56
56
|
__name: "layoutIcon",
|
|
57
57
|
props: {
|
|
58
58
|
icon: {
|
|
@@ -63,20 +63,20 @@ const ga = /* @__PURE__ */ k({
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
setup(v) {
|
|
66
|
-
const r = v,
|
|
66
|
+
const r = v, t = Ee({
|
|
67
67
|
iconUrl: `${vt.MICROLAYOUT_ICONS}`,
|
|
68
68
|
monoColor: !0,
|
|
69
69
|
icon: r.icon,
|
|
70
70
|
icons: r.icons
|
|
71
71
|
});
|
|
72
|
-
return (o, n) => v.icon || v.icons ? (f(),
|
|
72
|
+
return (o, n) => v.icon || v.icons ? (f(), g(e(t), B({
|
|
73
73
|
key: 0,
|
|
74
74
|
icon: v.icon,
|
|
75
75
|
icons: v.icons,
|
|
76
76
|
class: ["align-middle"]
|
|
77
|
-
}, o.$attrs), null, 16, ["icon", "icons"])) :
|
|
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" }, ha = /* @__PURE__ */ C({
|
|
80
80
|
__name: "index",
|
|
81
81
|
props: {
|
|
82
82
|
saveText: {},
|
|
@@ -85,27 +85,27 @@ const ga = /* @__PURE__ */ k({
|
|
|
85
85
|
editorCtrl: {}
|
|
86
86
|
},
|
|
87
87
|
setup(v) {
|
|
88
|
-
const { useToken: r } = Be, { token:
|
|
89
|
-
|
|
88
|
+
const { useToken: r } = Be, { token: a } = r(), t = h(!1), n = v.editorCtrl;
|
|
89
|
+
ge(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
97
|
const p = () => {
|
|
98
98
|
ae(n);
|
|
99
99
|
};
|
|
100
|
-
return (d, c) => (f(),
|
|
101
|
-
open:
|
|
102
|
-
"onUpdate:open": c[4] || (c[4] = (s) =>
|
|
100
|
+
return (d, c) => (f(), g(e(Xe), {
|
|
101
|
+
open: t.value,
|
|
102
|
+
"onUpdate:open": c[4] || (c[4] = (s) => t.value = s),
|
|
103
103
|
"get-container": !1,
|
|
104
104
|
closable: !1,
|
|
105
105
|
"header-style": {
|
|
106
106
|
height: "40px",
|
|
107
107
|
padding: "10px 6px 10px 16px",
|
|
108
|
-
backgroundColor: e(
|
|
108
|
+
backgroundColor: e(a).colorBgLayout
|
|
109
109
|
},
|
|
110
110
|
"body-style": {
|
|
111
111
|
padding: "10px 16px"
|
|
@@ -120,8 +120,8 @@ const ga = /* @__PURE__ */ k({
|
|
|
120
120
|
width: "420px",
|
|
121
121
|
onClose: p
|
|
122
122
|
}, {
|
|
123
|
-
extra:
|
|
124
|
-
T("div",
|
|
123
|
+
extra: _(() => [
|
|
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",
|
|
@@ -134,43 +134,43 @@ const ga = /* @__PURE__ */ k({
|
|
|
134
134
|
})
|
|
135
135
|
])
|
|
136
136
|
]),
|
|
137
|
-
default:
|
|
138
|
-
|
|
137
|
+
default: _(() => [
|
|
138
|
+
I(d.$slots, "default")
|
|
139
139
|
]),
|
|
140
|
-
footer:
|
|
140
|
+
footer: _(() => [
|
|
141
141
|
b(e(G), null, {
|
|
142
|
-
default:
|
|
143
|
-
d.cancelText !== "" ? (f(),
|
|
142
|
+
default: _(() => [
|
|
143
|
+
d.cancelText !== "" ? (f(), g(e(z), {
|
|
144
144
|
key: 0,
|
|
145
145
|
onClick: c[1] || (c[1] = () => e(ae)(e(n)))
|
|
146
146
|
}, {
|
|
147
|
-
default:
|
|
148
|
-
P(
|
|
147
|
+
default: _(() => [
|
|
148
|
+
P(D(d.cancelText ?? "取消"), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
|
-
})) :
|
|
152
|
-
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(),
|
|
151
|
+
})) : k("", !0),
|
|
152
|
+
d.saveAsText !== "" && e(n).saveAsBtnVisible !== !1 ? (f(), g(e(z), {
|
|
153
153
|
key: 1,
|
|
154
154
|
onClick: c[2] || (c[2] = () => e(Ye)(e(n))),
|
|
155
155
|
type: "primary",
|
|
156
156
|
loading: e(n).isFormSaving.value
|
|
157
157
|
}, {
|
|
158
|
-
default:
|
|
159
|
-
P(
|
|
158
|
+
default: _(() => [
|
|
159
|
+
P(D(d.saveAsText ?? "另存为"), 1)
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
|
-
}, 8, ["loading"])) :
|
|
163
|
-
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(),
|
|
162
|
+
}, 8, ["loading"])) : k("", !0),
|
|
163
|
+
d.saveText !== "" && e(n).saveBtnVisible !== !1 ? (f(), g(e(z), {
|
|
164
164
|
key: 2,
|
|
165
165
|
onClick: c[3] || (c[3] = () => e(be)(e(n))),
|
|
166
166
|
type: "primary",
|
|
167
167
|
loading: e(n).isFormSaving.value
|
|
168
168
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
P(
|
|
169
|
+
default: _(() => [
|
|
170
|
+
P(D(d.saveText ?? "保存"), 1)
|
|
171
171
|
]),
|
|
172
172
|
_: 1
|
|
173
|
-
}, 8, ["loading"])) :
|
|
173
|
+
}, 8, ["loading"])) : k("", !0)
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
176
|
})
|
|
@@ -178,7 +178,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
178
178
|
_: 3
|
|
179
179
|
}, 8, ["open", "header-style"]));
|
|
180
180
|
}
|
|
181
|
-
}), xa = /* @__PURE__ */
|
|
181
|
+
}), xa = /* @__PURE__ */ C({
|
|
182
182
|
__name: "index",
|
|
183
183
|
props: {
|
|
184
184
|
labelWidth: {},
|
|
@@ -186,10 +186,10 @@ const ga = /* @__PURE__ */ k({
|
|
|
186
186
|
editorCtrl: {}
|
|
187
187
|
},
|
|
188
188
|
setup(v) {
|
|
189
|
-
const r = v,
|
|
190
|
-
return (
|
|
191
|
-
const n =
|
|
192
|
-
return V((f(),
|
|
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(), g(e(Fe), {
|
|
193
193
|
"label-col": { flex: r.labelWidth ?? "85px" },
|
|
194
194
|
"wrapper-col": {
|
|
195
195
|
flex: r.wrapperWidth ?? "1"
|
|
@@ -199,15 +199,15 @@ const ga = /* @__PURE__ */ k({
|
|
|
199
199
|
flexWrap: "wrap"
|
|
200
200
|
}
|
|
201
201
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
|
|
202
|
+
default: _(() => [
|
|
203
|
+
I(t.$slots, "default")
|
|
204
204
|
]),
|
|
205
205
|
_: 3
|
|
206
206
|
}, 8, ["label-col", "wrapper-col"])), [
|
|
207
207
|
[
|
|
208
208
|
n,
|
|
209
209
|
() => {
|
|
210
|
-
e(
|
|
210
|
+
e(a) && e(be)(e(a));
|
|
211
211
|
}
|
|
212
212
|
]
|
|
213
213
|
]);
|
|
@@ -216,7 +216,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
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
|
-
}, ya = /* @__PURE__ */
|
|
219
|
+
}, ya = /* @__PURE__ */ C({
|
|
220
220
|
inheritAttrs: !1,
|
|
221
221
|
__name: "formItem",
|
|
222
222
|
props: {
|
|
@@ -226,7 +226,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
226
226
|
width: {}
|
|
227
227
|
},
|
|
228
228
|
setup(v) {
|
|
229
|
-
const r = v,
|
|
229
|
+
const r = v, a = W(), t = ue(X.EditorControl, void 0), o = ke(r, t), n = h(!1);
|
|
230
230
|
setTimeout(() => {
|
|
231
231
|
n.value = !0;
|
|
232
232
|
}, 30);
|
|
@@ -239,48 +239,48 @@ const ga = /* @__PURE__ */ k({
|
|
|
239
239
|
var s;
|
|
240
240
|
if (!r.rule)
|
|
241
241
|
return !1;
|
|
242
|
-
const c = p(r.rule.split("."), (s =
|
|
242
|
+
const c = p(r.rule.split("."), (s = t == null ? void 0 : t.formRules) == null ? void 0 : s.value);
|
|
243
243
|
return c ? c.required ?? !0 : (Ze.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
246
|
class: N(["w-full relative mb-1", c.width])
|
|
247
247
|
}, [
|
|
248
|
-
n.value ? (f(),
|
|
248
|
+
n.value ? (f(), g(e(Pe), B({
|
|
249
249
|
key: 0,
|
|
250
250
|
required: d.value,
|
|
251
251
|
class: "!w-[95%] relative"
|
|
252
|
-
}, e(
|
|
252
|
+
}, e(a), {
|
|
253
253
|
class: [c.rule ? "" : "mb-3"]
|
|
254
254
|
}), {
|
|
255
|
-
label:
|
|
255
|
+
label: _(() => [
|
|
256
256
|
T("span", {
|
|
257
257
|
class: N([e(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
258
|
-
},
|
|
258
|
+
}, D(c.label), 3)
|
|
259
259
|
]),
|
|
260
|
-
default:
|
|
260
|
+
default: _(() => [
|
|
261
261
|
T("div", wt, [
|
|
262
262
|
T("div", $t, [
|
|
263
|
-
|
|
263
|
+
I(c.$slots, "default")
|
|
264
264
|
]),
|
|
265
265
|
T("div", St, [
|
|
266
|
-
|
|
267
|
-
c.helper ? (f(),
|
|
266
|
+
I(c.$slots, "helper", {}, () => [
|
|
267
|
+
c.helper ? (f(), g(e(kt), {
|
|
268
268
|
key: 0,
|
|
269
269
|
text: c.helper
|
|
270
|
-
}, null, 8, ["text"])) :
|
|
270
|
+
}, null, 8, ["text"])) : k("", !0)
|
|
271
271
|
])
|
|
272
272
|
])
|
|
273
273
|
])
|
|
274
274
|
]),
|
|
275
275
|
_: 3
|
|
276
|
-
}, 16, ["required", "class"])) :
|
|
277
|
-
e(o).errClass ? (f(), w("span", Tt,
|
|
276
|
+
}, 16, ["required", "class"])) : k("", !0),
|
|
277
|
+
e(o).errClass ? (f(), w("span", Tt, D(e(o).msg), 1)) : k("", !0)
|
|
278
278
|
], 2));
|
|
279
279
|
}
|
|
280
280
|
}), Dt = { class: "w-1/3 relative mb-1" }, It = { class: "flex items-center" }, Bt = { class: "flex-grow pl-1" }, Ft = {
|
|
281
281
|
key: 0,
|
|
282
282
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
283
|
-
}, le = /* @__PURE__ */
|
|
283
|
+
}, le = /* @__PURE__ */ C({
|
|
284
284
|
inheritAttrs: !1,
|
|
285
285
|
__name: "searchItem",
|
|
286
286
|
props: {
|
|
@@ -289,19 +289,19 @@ const ga = /* @__PURE__ */ k({
|
|
|
289
289
|
rule: {}
|
|
290
290
|
},
|
|
291
291
|
setup(v) {
|
|
292
|
-
const r = v,
|
|
292
|
+
const r = v, a = W(), t = ue(X.EditorControl, void 0), o = ke(r, t);
|
|
293
293
|
return (n, p) => (f(), w("div", Dt, [
|
|
294
|
-
b(e(Pe),
|
|
294
|
+
b(e(Pe), B({
|
|
295
295
|
required: n.rule !== void 0,
|
|
296
296
|
class: "w-[90%] relative"
|
|
297
|
-
}, e(
|
|
297
|
+
}, e(a), {
|
|
298
298
|
class: [n.rule ? "" : "mb-3", n.width],
|
|
299
299
|
labelCol: { span: 6 }
|
|
300
300
|
}), he({
|
|
301
|
-
default:
|
|
301
|
+
default: _(() => [
|
|
302
302
|
T("div", It, [
|
|
303
303
|
T("div", Bt, [
|
|
304
|
-
|
|
304
|
+
I(n.$slots, "default")
|
|
305
305
|
])
|
|
306
306
|
])
|
|
307
307
|
]),
|
|
@@ -309,18 +309,18 @@ const ga = /* @__PURE__ */ k({
|
|
|
309
309
|
}, [
|
|
310
310
|
n.label ? {
|
|
311
311
|
name: "label",
|
|
312
|
-
fn:
|
|
312
|
+
fn: _(() => [
|
|
313
313
|
T("span", {
|
|
314
314
|
class: N([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", Ft,
|
|
320
|
+
e(o).msg ? (f(), w("span", Ft, D(e(o).msg), 1)) : k("", !0)
|
|
321
321
|
]));
|
|
322
322
|
}
|
|
323
|
-
}), ba = /* @__PURE__ */
|
|
323
|
+
}), ba = /* @__PURE__ */ C({
|
|
324
324
|
__name: "index",
|
|
325
325
|
props: {
|
|
326
326
|
search: {},
|
|
@@ -329,55 +329,55 @@ const ga = /* @__PURE__ */ k({
|
|
|
329
329
|
},
|
|
330
330
|
emits: ["update:search"],
|
|
331
331
|
setup(v, { emit: r }) {
|
|
332
|
-
const
|
|
332
|
+
const a = v, t = r, o = h(0), n = h(0), p = h(0), d = (m) => {
|
|
333
333
|
let x = 0;
|
|
334
334
|
for (let S = 0; S < m.length; S++)
|
|
335
335
|
typeof m[S].type == "object" && x++;
|
|
336
336
|
return x;
|
|
337
337
|
}, c = ze(), s = () => {
|
|
338
|
-
n.value = 0, p.value = 0, c.default && (n.value = d(c.default({}))),
|
|
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
|
$(
|
|
341
|
-
() =>
|
|
341
|
+
() => a.gridCtrl.searchBar,
|
|
342
342
|
() => {
|
|
343
343
|
s();
|
|
344
344
|
}
|
|
345
345
|
);
|
|
346
|
-
const u = JSON.parse(JSON.stringify(
|
|
346
|
+
const u = JSON.parse(JSON.stringify(a.search));
|
|
347
347
|
K(() => {
|
|
348
348
|
var x;
|
|
349
349
|
s();
|
|
350
|
-
let m = { ...
|
|
351
|
-
|
|
352
|
-
...
|
|
350
|
+
let m = { ...a.search };
|
|
351
|
+
a.gridCtrl.gridQuery = {
|
|
352
|
+
...a.gridCtrl.gridQuery,
|
|
353
353
|
Query: {
|
|
354
|
-
...(x =
|
|
354
|
+
...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
|
|
355
355
|
...m
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
});
|
|
359
359
|
const l = () => {
|
|
360
|
-
var x
|
|
361
|
-
let m = { ...
|
|
362
|
-
if (
|
|
363
|
-
for (const
|
|
364
|
-
m[
|
|
365
|
-
|
|
366
|
-
...
|
|
360
|
+
var x;
|
|
361
|
+
let m = { ...a.search };
|
|
362
|
+
if (a.likeFields)
|
|
363
|
+
for (const S of a.likeFields)
|
|
364
|
+
m[S] && (m[S] = { $like: "%" + m[S] + "%" });
|
|
365
|
+
a.gridCtrl.gridQuery = {
|
|
366
|
+
...a.gridCtrl.gridQuery,
|
|
367
367
|
Query: {
|
|
368
|
-
...(x =
|
|
368
|
+
...(x = a.gridCtrl.gridQuery) == null ? void 0 : x.Query,
|
|
369
369
|
...m
|
|
370
370
|
}
|
|
371
|
-
},
|
|
371
|
+
}, a.gridCtrl.pageNo.value = 1, a.gridCtrl.reload.value = !0;
|
|
372
372
|
}, i = () => {
|
|
373
373
|
const m = JSON.parse(JSON.stringify(u));
|
|
374
|
-
for (const x in
|
|
374
|
+
for (const x in a.search)
|
|
375
375
|
m[x] === void 0 && (m[x] = void 0);
|
|
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(),
|
|
379
|
+
const S = Q("submit");
|
|
380
|
+
return n.value + p.value > 0 ? V((f(), g(e(Fe), {
|
|
381
381
|
key: 0,
|
|
382
382
|
"label-col": { flex: "60px" },
|
|
383
383
|
style: {
|
|
@@ -386,31 +386,31 @@ const ga = /* @__PURE__ */ k({
|
|
|
386
386
|
},
|
|
387
387
|
class: "flex mb-[10px]"
|
|
388
388
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
|
|
391
|
-
m.gridCtrl.searchBar ?
|
|
392
|
-
o.value >= 1 ? (f(),
|
|
389
|
+
default: _(() => [
|
|
390
|
+
I(m.$slots, "default"),
|
|
391
|
+
m.gridCtrl.searchBar ? I(m.$slots, "control", { key: 0 }) : k("", !0),
|
|
392
|
+
o.value >= 1 ? (f(), g(le, {
|
|
393
393
|
key: 1,
|
|
394
394
|
class: "w-1/3"
|
|
395
|
-
})) :
|
|
396
|
-
o.value >= 2 ? (f(),
|
|
395
|
+
})) : k("", !0),
|
|
396
|
+
o.value >= 2 ? (f(), g(le, {
|
|
397
397
|
key: 2,
|
|
398
398
|
class: "w-1/3"
|
|
399
|
-
})) :
|
|
400
|
-
n.value || m.gridCtrl.searchBar ? (f(),
|
|
399
|
+
})) : k("", !0),
|
|
400
|
+
n.value || m.gridCtrl.searchBar ? (f(), g(le, {
|
|
401
401
|
key: 3,
|
|
402
402
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
403
403
|
"wrapper-col": { flex: "auto" }
|
|
404
404
|
}, {
|
|
405
|
-
default:
|
|
405
|
+
default: _(() => [
|
|
406
406
|
b(e(G), null, {
|
|
407
|
-
default:
|
|
407
|
+
default: _(() => [
|
|
408
408
|
b(e(z), {
|
|
409
409
|
type: "primary",
|
|
410
410
|
onClick: l,
|
|
411
411
|
icon: "icon-search"
|
|
412
412
|
}, {
|
|
413
|
-
default:
|
|
413
|
+
default: _(() => x[0] || (x[0] = [
|
|
414
414
|
P("搜索")
|
|
415
415
|
])),
|
|
416
416
|
_: 1,
|
|
@@ -420,7 +420,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
420
420
|
onClick: i,
|
|
421
421
|
icon: "icon-reset"
|
|
422
422
|
}, {
|
|
423
|
-
default:
|
|
423
|
+
default: _(() => x[1] || (x[1] = [
|
|
424
424
|
P("重置")
|
|
425
425
|
])),
|
|
426
426
|
_: 1,
|
|
@@ -431,29 +431,29 @@ const ga = /* @__PURE__ */ k({
|
|
|
431
431
|
})
|
|
432
432
|
]),
|
|
433
433
|
_: 1
|
|
434
|
-
})) :
|
|
434
|
+
})) : k("", !0)
|
|
435
435
|
]),
|
|
436
436
|
_: 3
|
|
437
437
|
})), [
|
|
438
438
|
[S, l]
|
|
439
|
-
]) :
|
|
439
|
+
]) : k("", !0);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}), Pt = /* @__PURE__ */
|
|
442
|
+
}), Pt = /* @__PURE__ */ C({
|
|
443
443
|
__name: "tableOperate",
|
|
444
444
|
props: {
|
|
445
445
|
record: {},
|
|
446
446
|
gridCtrl: {}
|
|
447
447
|
},
|
|
448
448
|
setup(v) {
|
|
449
|
-
const r = v,
|
|
449
|
+
const r = v, a = r.gridCtrl, t = [
|
|
450
450
|
{
|
|
451
451
|
key: "Edit",
|
|
452
452
|
label: "编辑",
|
|
453
453
|
type: "primary",
|
|
454
454
|
visible: !0,
|
|
455
455
|
permit: ":edit",
|
|
456
|
-
click: () => Le(
|
|
456
|
+
click: () => Le(a, r.record)
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
key: "Delete",
|
|
@@ -464,13 +464,13 @@ const ga = /* @__PURE__ */ k({
|
|
|
464
464
|
permit: ":delete",
|
|
465
465
|
confirm: !0,
|
|
466
466
|
confirmText: "是否删除此记录?",
|
|
467
|
-
click: () => Re(
|
|
467
|
+
click: () => Re(a, r.record)
|
|
468
468
|
}
|
|
469
|
-
], { buttons: o, menus: n } =
|
|
469
|
+
], { buttons: o, menus: n } = Ce(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,19 +481,19 @@ const ga = /* @__PURE__ */ k({
|
|
|
481
481
|
return !1;
|
|
482
482
|
};
|
|
483
483
|
return (d, c) => {
|
|
484
|
-
const s =
|
|
485
|
-
return f(),
|
|
484
|
+
const s = Q("role"), u = Q("permit");
|
|
485
|
+
return f(), g(e(me), { theme: {
|
|
486
486
|
token: {
|
|
487
487
|
fontSize: 13
|
|
488
488
|
}
|
|
489
489
|
} }, {
|
|
490
|
-
default:
|
|
490
|
+
default: _(() => [
|
|
491
491
|
b(e(G), null, {
|
|
492
|
-
default:
|
|
492
|
+
default: _(() => [
|
|
493
493
|
(f(!0), w(M, null, L(e(o), (l) => (f(), w(M, {
|
|
494
494
|
key: l.key
|
|
495
495
|
}, [
|
|
496
|
-
e(H)(l, r.record) ? (f(),
|
|
496
|
+
e(H)(l, r.record) ? (f(), g(e(et), {
|
|
497
497
|
key: 0,
|
|
498
498
|
disabled: p(l) || !l.confirm,
|
|
499
499
|
cancelText: "否",
|
|
@@ -501,74 +501,74 @@ const ga = /* @__PURE__ */ k({
|
|
|
501
501
|
title: l.confirmText,
|
|
502
502
|
okButtonProps: { size: "small" },
|
|
503
503
|
cancelButtonProps: { size: "small" },
|
|
504
|
-
onConfirm: (i) => e(R)(l, e(
|
|
504
|
+
onConfirm: (i) => e(R)(l, e(a).page, e(a), r.record, !0)
|
|
505
505
|
}, {
|
|
506
|
-
default:
|
|
507
|
-
e(H)(l, r.record) ? V((f(),
|
|
506
|
+
default: _(() => [
|
|
507
|
+
e(H)(l, r.record) ? V((f(), g(e(Me), {
|
|
508
508
|
key: l.key,
|
|
509
509
|
type: l.type ?? "text",
|
|
510
510
|
danger: l.danger,
|
|
511
511
|
disabled: p(l),
|
|
512
|
-
onClick: (i) => e(R)(l, e(
|
|
512
|
+
onClick: (i) => e(R)(l, e(a).page, e(a), r.record),
|
|
513
513
|
size: "small",
|
|
514
514
|
style: ne({
|
|
515
515
|
padding: l.type ?? "0px 4px"
|
|
516
516
|
})
|
|
517
517
|
}, {
|
|
518
|
-
default:
|
|
519
|
-
P(
|
|
518
|
+
default: _(() => [
|
|
519
|
+
P(D(l.label), 1)
|
|
520
520
|
]),
|
|
521
521
|
_: 2
|
|
522
522
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
523
523
|
[s, l.role],
|
|
524
524
|
[u, l.permit]
|
|
525
|
-
]) :
|
|
525
|
+
]) : k("", !0)
|
|
526
526
|
]),
|
|
527
527
|
_: 2
|
|
528
|
-
}, 1032, ["disabled", "title", "onConfirm"])) :
|
|
528
|
+
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
529
529
|
], 64))), 128)),
|
|
530
|
-
d.record.Enabled == 1 ? (f(),
|
|
530
|
+
d.record.Enabled == 1 ? (f(), g(e(me), {
|
|
531
531
|
key: 0,
|
|
532
532
|
autoInsertSpaceInButton: !1
|
|
533
533
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
e(n).length > 0 ? (f(),
|
|
534
|
+
default: _(() => [
|
|
535
|
+
e(n).length > 0 ? (f(), g(e(tt), {
|
|
536
536
|
key: 0,
|
|
537
537
|
size: "small"
|
|
538
538
|
}, {
|
|
539
|
-
overlay:
|
|
539
|
+
overlay: _(() => [
|
|
540
540
|
b(e(ie), null, {
|
|
541
|
-
default:
|
|
541
|
+
default: _(() => [
|
|
542
542
|
(f(!0), w(M, null, L(e(n), (l) => (f(), w(M, {
|
|
543
543
|
key: l.key
|
|
544
544
|
}, [
|
|
545
|
-
e(H)(l, r.record) ? V((f(),
|
|
545
|
+
e(H)(l, r.record) ? V((f(), g(e(de), {
|
|
546
546
|
key: 0,
|
|
547
547
|
disabled: p(l),
|
|
548
|
-
onClick: (i) => e(R)(l, e(
|
|
548
|
+
onClick: (i) => e(R)(l, e(a).page, e(a), r.record)
|
|
549
549
|
}, {
|
|
550
|
-
default:
|
|
551
|
-
P(
|
|
550
|
+
default: _(() => [
|
|
551
|
+
P(D(l.label), 1)
|
|
552
552
|
]),
|
|
553
553
|
_: 2
|
|
554
554
|
}, 1032, ["disabled", "onClick"])), [
|
|
555
555
|
[s, l.role],
|
|
556
556
|
[u, l.permit]
|
|
557
|
-
]) :
|
|
557
|
+
]) : k("", !0)
|
|
558
558
|
], 64))), 128))
|
|
559
559
|
]),
|
|
560
560
|
_: 1
|
|
561
561
|
})
|
|
562
562
|
]),
|
|
563
|
-
default:
|
|
563
|
+
default: _(() => [
|
|
564
564
|
c[0] || (c[0] = P(" 更多 "))
|
|
565
565
|
]),
|
|
566
566
|
_: 1,
|
|
567
567
|
__: [0]
|
|
568
|
-
})) :
|
|
568
|
+
})) : k("", !0)
|
|
569
569
|
]),
|
|
570
570
|
_: 1
|
|
571
|
-
})) :
|
|
571
|
+
})) : k("", !0)
|
|
572
572
|
]),
|
|
573
573
|
_: 1
|
|
574
574
|
})
|
|
@@ -577,44 +577,44 @@ const ga = /* @__PURE__ */ k({
|
|
|
577
577
|
});
|
|
578
578
|
};
|
|
579
579
|
}
|
|
580
|
-
}), Mt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Nt = /* @__PURE__ */
|
|
580
|
+
}), Mt = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Nt = /* @__PURE__ */ C({
|
|
581
581
|
__name: "icontool",
|
|
582
582
|
props: {
|
|
583
583
|
gridCtrl: {}
|
|
584
584
|
},
|
|
585
585
|
setup(v) {
|
|
586
|
-
const r = v,
|
|
586
|
+
const r = v, a = r.gridCtrl, { tools: t } = Ue(r.gridCtrl), o = ye();
|
|
587
587
|
$(
|
|
588
|
-
() =>
|
|
588
|
+
() => a.selectable.value,
|
|
589
589
|
(d) => {
|
|
590
|
-
Z(
|
|
590
|
+
Z(t, "tool.export.excel.selected") && (Z(t, "tool.export.excel.selected").disabled = !d), Z(t, "tool.export.pdf.selected") && (Z(t, "tool.export.pdf.selected").disabled = !d);
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
593
|
const n = h([]);
|
|
594
594
|
$(
|
|
595
|
-
() =>
|
|
595
|
+
() => a.columns.value,
|
|
596
596
|
(d) => {
|
|
597
597
|
n.value = we(d, !0);
|
|
598
598
|
},
|
|
599
599
|
{ deep: !0, immediate: !0 }
|
|
600
600
|
);
|
|
601
601
|
const p = () => {
|
|
602
|
-
|
|
602
|
+
a.columns.value.splice(0, a.columns.value.length, ...n.value), o.setTableColumns(Qe.currentRoute.value.path, a.columns.value);
|
|
603
603
|
};
|
|
604
604
|
return (d, c) => (f(), w("div", Mt, [
|
|
605
|
-
(f(!0), w(M, null, L(e(
|
|
605
|
+
(f(!0), w(M, null, L(e(t), (s, u) => (f(), w(M, {
|
|
606
606
|
key: s.key
|
|
607
607
|
}, [
|
|
608
|
-
e(H)(s) && s.dropdown ? (f(),
|
|
608
|
+
e(H)(s) && s.dropdown ? (f(), g(e(oe), {
|
|
609
609
|
key: 0,
|
|
610
610
|
placement: "bottomRight",
|
|
611
611
|
class: "p-0 rounded-none"
|
|
612
612
|
}, {
|
|
613
|
-
overlay:
|
|
613
|
+
overlay: _(() => [
|
|
614
614
|
T("div", {
|
|
615
615
|
class: N(["min-w-[100px] bg-white rounded shadow-md p-4", s.dropdownClass])
|
|
616
616
|
}, [
|
|
617
|
-
s.dropdown === "headset" ? (f(),
|
|
617
|
+
s.dropdown === "headset" ? (f(), g(e(mt), {
|
|
618
618
|
key: 0,
|
|
619
619
|
modelValue: n.value,
|
|
620
620
|
"onUpdate:modelValue": c[1] || (c[1] = (l) => n.value = l),
|
|
@@ -622,7 +622,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
622
622
|
onEnd: p,
|
|
623
623
|
handle: ".drag-handle"
|
|
624
624
|
}, {
|
|
625
|
-
default:
|
|
625
|
+
default: _(() => [
|
|
626
626
|
(f(!0), w(M, null, L(n.value, (l) => (f(), w("div", {
|
|
627
627
|
key: l.name,
|
|
628
628
|
onClick: c[0] || (c[0] = J(() => {
|
|
@@ -634,35 +634,35 @@ const ga = /* @__PURE__ */ k({
|
|
|
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
|
),
|
|
641
641
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
642
642
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
P(
|
|
643
|
+
default: _(() => [
|
|
644
|
+
P(D(l.title), 1)
|
|
645
645
|
]),
|
|
646
646
|
_: 2
|
|
647
647
|
}, 1032, ["checked", "onChange"])
|
|
648
648
|
]))), 128))
|
|
649
649
|
]),
|
|
650
650
|
_: 1
|
|
651
|
-
}, 8, ["modelValue"])) :
|
|
651
|
+
}, 8, ["modelValue"])) : k("", !0)
|
|
652
652
|
], 2)
|
|
653
653
|
]),
|
|
654
|
-
default:
|
|
654
|
+
default: _(() => [
|
|
655
655
|
b(e(z), {
|
|
656
656
|
class: N([
|
|
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
|
-
u === e(
|
|
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
|
-
onClick: (l) => e(R)(s, e(
|
|
663
|
+
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
664
664
|
}, {
|
|
665
|
-
default:
|
|
665
|
+
default: _(() => [
|
|
666
666
|
b(e(Y), {
|
|
667
667
|
icon: s.icon,
|
|
668
668
|
class: "w-[18px] h-[18.5px]",
|
|
@@ -673,18 +673,18 @@ const ga = /* @__PURE__ */ k({
|
|
|
673
673
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
674
674
|
]),
|
|
675
675
|
_: 2
|
|
676
|
-
}, 1024)) : !s.children && e(H)(s) ? (f(),
|
|
676
|
+
}, 1024)) : !s.children && e(H)(s) ? (f(), g(e(z), {
|
|
677
677
|
key: 1,
|
|
678
678
|
class: N([
|
|
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
|
-
u === e(
|
|
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
|
-
onClick: (l) => e(R)(s, e(
|
|
685
|
+
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
686
686
|
}, {
|
|
687
|
-
default:
|
|
687
|
+
default: _(() => [
|
|
688
688
|
b(e(Y), {
|
|
689
689
|
icon: s.icon,
|
|
690
690
|
class: "w-[18px] h-[18.5px]",
|
|
@@ -692,20 +692,20 @@ const ga = /* @__PURE__ */ k({
|
|
|
692
692
|
}, null, 8, ["icon"])
|
|
693
693
|
]),
|
|
694
694
|
_: 2
|
|
695
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (f(),
|
|
695
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : e(H)(s) ? (f(), g(e(oe), {
|
|
696
696
|
key: 2,
|
|
697
697
|
placement: "bottomRight",
|
|
698
698
|
class: "p-0 rounded-none"
|
|
699
699
|
}, {
|
|
700
|
-
overlay:
|
|
700
|
+
overlay: _(() => [
|
|
701
701
|
b(e(ie), null, {
|
|
702
|
-
default:
|
|
703
|
-
(f(!0), w(M, null, L(s.children, (l) => (f(),
|
|
702
|
+
default: _(() => [
|
|
703
|
+
(f(!0), w(M, null, L(s.children, (l) => (f(), g(e(de), {
|
|
704
704
|
key: l.key,
|
|
705
|
-
disabled: e(
|
|
705
|
+
disabled: e(q)(l)
|
|
706
706
|
}, {
|
|
707
|
-
default:
|
|
708
|
-
P(
|
|
707
|
+
default: _(() => [
|
|
708
|
+
P(D(l.label), 1)
|
|
709
709
|
]),
|
|
710
710
|
_: 2
|
|
711
711
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -713,19 +713,19 @@ const ga = /* @__PURE__ */ k({
|
|
|
713
713
|
_: 2
|
|
714
714
|
}, 1024)
|
|
715
715
|
]),
|
|
716
|
-
default:
|
|
716
|
+
default: _(() => [
|
|
717
717
|
b(e(z), {
|
|
718
718
|
class: N([
|
|
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]" },
|
|
726
|
-
onClick: (l) => e(R)(s, e(
|
|
726
|
+
onClick: (l) => e(R)(s, e(a).page, e(a))
|
|
727
727
|
}, {
|
|
728
|
-
default:
|
|
728
|
+
default: _(() => [
|
|
729
729
|
b(e(Y), {
|
|
730
730
|
icon: "icon-down-arrow",
|
|
731
731
|
class: "w-[12px] h-[12px]"
|
|
@@ -735,18 +735,18 @@ const ga = /* @__PURE__ */ k({
|
|
|
735
735
|
}, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
|
|
736
736
|
]),
|
|
737
737
|
_: 2
|
|
738
|
-
}, 1024)) :
|
|
738
|
+
}, 1024)) : k("", !0)
|
|
739
739
|
], 64))), 128))
|
|
740
740
|
]));
|
|
741
741
|
}
|
|
742
|
-
}), zt = { class: "flex justify-between mb-[10px]" }, Kt = { key: 1 }, Ot = 3, At = /* @__PURE__ */
|
|
742
|
+
}), zt = { class: "flex justify-between mb-[10px]" }, Kt = { key: 1 }, Ot = 3, At = /* @__PURE__ */ C({
|
|
743
743
|
__name: "index",
|
|
744
744
|
props: {
|
|
745
745
|
gridCtrl: {},
|
|
746
746
|
editorCtrl: {}
|
|
747
747
|
},
|
|
748
748
|
setup(v) {
|
|
749
|
-
const r = v,
|
|
749
|
+
const r = v, a = r.gridCtrl, t = a.page, o = r.editorCtrl, n = [
|
|
750
750
|
{
|
|
751
751
|
key: "New",
|
|
752
752
|
label: "新增",
|
|
@@ -761,14 +761,14 @@ const ga = /* @__PURE__ */ k({
|
|
|
761
761
|
return $(
|
|
762
762
|
() => {
|
|
763
763
|
var c;
|
|
764
|
-
return (c =
|
|
764
|
+
return (c = a.buttons) == null ? void 0 : c.value;
|
|
765
765
|
},
|
|
766
766
|
() => {
|
|
767
767
|
var u;
|
|
768
|
-
const { buttons: c, menus: s } =
|
|
768
|
+
const { buttons: c, menus: s } = Ce(
|
|
769
769
|
n,
|
|
770
|
-
|
|
771
|
-
(u =
|
|
770
|
+
a.flat !== void 0 ? a.flat : Ot,
|
|
771
|
+
(u = a.buttons) == null ? void 0 : u.value
|
|
772
772
|
);
|
|
773
773
|
p.value.splice(0, p.value.length, ...c), d.value.splice(0, d.value.length, ...s);
|
|
774
774
|
},
|
|
@@ -777,37 +777,37 @@ const ga = /* @__PURE__ */ k({
|
|
|
777
777
|
immediate: !0
|
|
778
778
|
}
|
|
779
779
|
), (c, s) => {
|
|
780
|
-
const u =
|
|
780
|
+
const u = Q("role"), l = Q("permit");
|
|
781
781
|
return f(), w("div", zt, [
|
|
782
782
|
b(e(G), null, {
|
|
783
|
-
default:
|
|
784
|
-
(f(!0), w(M, null, L(p.value, (i) => V((f(),
|
|
783
|
+
default: _(() => [
|
|
784
|
+
(f(!0), w(M, null, L(p.value, (i) => V((f(), g(e(z), {
|
|
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
|
-
onClick: (m) => e(R)(i, e(
|
|
790
|
+
onClick: (m) => e(R)(i, e(t), e(a))
|
|
791
791
|
}, {
|
|
792
|
-
default:
|
|
793
|
-
P(
|
|
792
|
+
default: _(() => [
|
|
793
|
+
P(D(i.label), 1)
|
|
794
794
|
]),
|
|
795
795
|
_: 2
|
|
796
796
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
797
797
|
[u, i.role],
|
|
798
798
|
[l, i.permit]
|
|
799
799
|
])), 128)),
|
|
800
|
-
d.value.length > 0 ? (f(),
|
|
801
|
-
overlay:
|
|
800
|
+
d.value.length > 0 ? (f(), g(e(oe), { key: 0 }, {
|
|
801
|
+
overlay: _(() => [
|
|
802
802
|
b(e(ie), null, {
|
|
803
|
-
default:
|
|
804
|
-
(f(!0), w(M, null, L(d.value, (i) => V((f(),
|
|
803
|
+
default: _(() => [
|
|
804
|
+
(f(!0), w(M, null, L(d.value, (i) => V((f(), g(e(de), {
|
|
805
805
|
key: i.key,
|
|
806
|
-
disabled: e(
|
|
807
|
-
onClick: (m) => e(R)(i, e(
|
|
806
|
+
disabled: e(q)(i),
|
|
807
|
+
onClick: (m) => e(R)(i, e(t), e(a))
|
|
808
808
|
}, {
|
|
809
|
-
default:
|
|
810
|
-
P(
|
|
809
|
+
default: _(() => [
|
|
810
|
+
P(D(i.label), 1)
|
|
811
811
|
]),
|
|
812
812
|
_: 2
|
|
813
813
|
}, 1032, ["disabled", "onClick"])), [
|
|
@@ -818,9 +818,9 @@ const ga = /* @__PURE__ */ k({
|
|
|
818
818
|
_: 1
|
|
819
819
|
})
|
|
820
820
|
]),
|
|
821
|
-
default:
|
|
821
|
+
default: _(() => [
|
|
822
822
|
b(e(z), null, {
|
|
823
|
-
default:
|
|
823
|
+
default: _(() => s[0] || (s[0] = [
|
|
824
824
|
P(" 更多操作 ")
|
|
825
825
|
])),
|
|
826
826
|
_: 1,
|
|
@@ -828,21 +828,21 @@ const ga = /* @__PURE__ */ k({
|
|
|
828
828
|
})
|
|
829
829
|
]),
|
|
830
830
|
_: 1
|
|
831
|
-
})) :
|
|
832
|
-
p.value.length === 0 && d.value.length === 0 ? (f(), w("span", Kt)) :
|
|
831
|
+
})) : k("", !0),
|
|
832
|
+
p.value.length === 0 && d.value.length === 0 ? (f(), w("span", Kt)) : k("", !0)
|
|
833
833
|
]),
|
|
834
834
|
_: 1
|
|
835
835
|
}),
|
|
836
836
|
b(e(G), { class: "mr-1" }, {
|
|
837
|
-
default:
|
|
838
|
-
(f(),
|
|
837
|
+
default: _(() => [
|
|
838
|
+
(f(), g(Ke(Nt), { "grid-ctrl": e(a) }, null, 8, ["grid-ctrl"]))
|
|
839
839
|
]),
|
|
840
840
|
_: 1
|
|
841
841
|
})
|
|
842
842
|
]);
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
}), Et = /* @__PURE__ */
|
|
845
|
+
}), Et = /* @__PURE__ */ C({
|
|
846
846
|
__name: "index",
|
|
847
847
|
props: {
|
|
848
848
|
/**
|
|
@@ -855,31 +855,31 @@ const ga = /* @__PURE__ */ k({
|
|
|
855
855
|
},
|
|
856
856
|
emits: ["change"],
|
|
857
857
|
setup(v, { emit: r }) {
|
|
858
|
-
const
|
|
858
|
+
const a = v, t = h([]), o = r, { editorCtrl: n, errInfo: p } = O(), d = (c) => {
|
|
859
859
|
p != null && p.value.errClass && n && U(n), o("change", c);
|
|
860
860
|
};
|
|
861
861
|
return K(() => {
|
|
862
|
-
if (!
|
|
863
|
-
console.error("Switch组件: ",
|
|
862
|
+
if (!a.data || a.data.length != 2) {
|
|
863
|
+
console.error("Switch组件: ", a.data), _t.error("Switch组件必须有且只有两个选项");
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
|
-
$e(!1,
|
|
866
|
+
$e(!1, a, t);
|
|
867
867
|
}), xe(() => {
|
|
868
|
-
Se(
|
|
868
|
+
Se(a);
|
|
869
869
|
}), (c, s) => {
|
|
870
870
|
var u;
|
|
871
|
-
return
|
|
871
|
+
return t.value.length === 2 ? (f(), g(e(lt), 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
|
-
checkedChildren:
|
|
875
|
-
checkedValue:
|
|
876
|
-
unCheckedChildren:
|
|
877
|
-
unCheckedValue:
|
|
874
|
+
checkedChildren: t.value[0].label,
|
|
875
|
+
checkedValue: t.value[0].value,
|
|
876
|
+
unCheckedChildren: t.value[1].label,
|
|
877
|
+
unCheckedValue: t.value[1].value,
|
|
878
878
|
onChange: d
|
|
879
|
-
}, c.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) :
|
|
879
|
+
}, c.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : k("", !0);
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
}),
|
|
882
|
+
}), ka = /* @__PURE__ */ C({
|
|
883
883
|
inheritAttrs: !1,
|
|
884
884
|
__name: "index",
|
|
885
885
|
props: {
|
|
@@ -892,22 +892,22 @@ const ga = /* @__PURE__ */ k({
|
|
|
892
892
|
statusDisabled: { type: Function }
|
|
893
893
|
},
|
|
894
894
|
setup(v) {
|
|
895
|
-
const r = v,
|
|
896
|
-
|
|
897
|
-
const o = h(
|
|
895
|
+
const r = v, a = W(), t = r.gridCtrl;
|
|
896
|
+
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
897
|
+
const o = h(t.pageSize.value), n = h(t.pageNo.value), p = h([]), d = h({
|
|
898
898
|
total: 0,
|
|
899
899
|
current: 1,
|
|
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,
|
|
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));
|
|
904
904
|
},
|
|
905
905
|
...r.pagination
|
|
906
906
|
});
|
|
907
907
|
$(
|
|
908
|
-
() =>
|
|
908
|
+
() => t.tableData.value,
|
|
909
909
|
(i) => {
|
|
910
|
-
i && (p.value = i, d.value.total =
|
|
910
|
+
i && (p.value = i, d.value.total = t.total.value ?? 0);
|
|
911
911
|
},
|
|
912
912
|
{ immediate: !0 }
|
|
913
913
|
), $(
|
|
@@ -917,9 +917,9 @@ const ga = /* @__PURE__ */ k({
|
|
|
917
917
|
},
|
|
918
918
|
{ immediate: !0 }
|
|
919
919
|
);
|
|
920
|
-
const c = h(
|
|
920
|
+
const c = h(t.columns.value), s = {
|
|
921
921
|
onChange: (i, m) => {
|
|
922
|
-
|
|
922
|
+
t && (t.selectKeys.value = i, t.selectRows.value = m);
|
|
923
923
|
},
|
|
924
924
|
columnWidth: "30px",
|
|
925
925
|
getCheckboxProps: (i) => ({
|
|
@@ -928,61 +928,61 @@ const ga = /* @__PURE__ */ k({
|
|
|
928
928
|
...r.rowSelection
|
|
929
929
|
}, u = h(s);
|
|
930
930
|
$(
|
|
931
|
-
() =>
|
|
931
|
+
() => t.selectable.value,
|
|
932
932
|
(i) => {
|
|
933
|
-
|
|
933
|
+
t && (u.value = i ? s : void 0);
|
|
934
934
|
},
|
|
935
935
|
{ immediate: !0 }
|
|
936
936
|
), $(
|
|
937
|
-
() =>
|
|
937
|
+
() => t.columns.value,
|
|
938
938
|
() => {
|
|
939
|
-
c.value = we(
|
|
939
|
+
c.value = we(t.columns.value);
|
|
940
940
|
},
|
|
941
941
|
{ deep: !0, immediate: !0 }
|
|
942
942
|
);
|
|
943
943
|
const l = h(!1);
|
|
944
944
|
return Oe(() => {
|
|
945
|
-
l.value &&
|
|
945
|
+
l.value && t && (t.reload.value = !0);
|
|
946
946
|
}), K(async () => {
|
|
947
|
-
|
|
947
|
+
ge(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(() => {
|
|
948
948
|
l.value = !0;
|
|
949
949
|
}, 50);
|
|
950
950
|
}), (i, m) => {
|
|
951
|
-
var S,
|
|
952
|
-
const x =
|
|
951
|
+
var S, F;
|
|
952
|
+
const x = Q("permit");
|
|
953
953
|
return f(), w(M, null, [
|
|
954
|
-
(S = e(
|
|
954
|
+
(S = e(t).buttons) != null && S.value.length || (F = e(t).tools) != null && F.length ? (f(), g(At, {
|
|
955
955
|
key: 0,
|
|
956
|
-
"grid-ctrl": e(
|
|
957
|
-
"editor-ctrl": e(
|
|
958
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
959
|
-
l.value ? (f(),
|
|
956
|
+
"grid-ctrl": e(t),
|
|
957
|
+
"editor-ctrl": e(t).editor
|
|
958
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
959
|
+
l.value ? (f(), g(e(Ne), B({
|
|
960
960
|
key: 1,
|
|
961
961
|
class: "w-full",
|
|
962
|
-
"row-key": r.primaryKey ?? e(
|
|
962
|
+
"row-key": r.primaryKey ?? e(t).primaryKey ?? "Id",
|
|
963
963
|
"data-source": p.value,
|
|
964
|
-
loading: e(
|
|
964
|
+
loading: e(t).isGridLoading.value,
|
|
965
965
|
columns: c.value,
|
|
966
966
|
pagination: d.value,
|
|
967
967
|
"row-selection": u.value,
|
|
968
968
|
scroll: r.scroll || { x: 700, y: 1e3 },
|
|
969
|
-
size: e(
|
|
969
|
+
size: e(t).tableSize.value,
|
|
970
970
|
bordered: ""
|
|
971
|
-
}, e(
|
|
972
|
-
bodyCell:
|
|
971
|
+
}, e(a)), {
|
|
972
|
+
bodyCell: _((y) => {
|
|
973
973
|
var A, E;
|
|
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(
|
|
979
|
+
e(t) && ((A = y == null ? void 0 : y.column) == null ? void 0 : A.dataIndex) === "enabled" ? V((f(), g(Et, {
|
|
980
980
|
key: 0,
|
|
981
981
|
checked: y.record.Enabled,
|
|
982
982
|
"onUpdate:checked": (pe) => y.record.Enabled = pe,
|
|
983
983
|
disabled: i.statusDisabled ? i.statusDisabled(y.record) : !1,
|
|
984
984
|
data: e(Te).EnableDisable,
|
|
985
|
-
onClick: (pe) => e(He)(e(
|
|
985
|
+
onClick: (pe) => e(He)(e(t), y.record),
|
|
986
986
|
class: N([
|
|
987
987
|
"w-[58px]",
|
|
988
988
|
i.statusDisabled && i.statusDisabled(y.record) ? "cursor-not-allowed disabled" : ""
|
|
@@ -990,24 +990,24 @@ const ga = /* @__PURE__ */ k({
|
|
|
990
990
|
loading: y == null ? void 0 : y.record.isLoading
|
|
991
991
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
992
992
|
[x, ":enabled", "disable"]
|
|
993
|
-
]) :
|
|
994
|
-
e(
|
|
993
|
+
]) : k("", !0),
|
|
994
|
+
e(t) && ((E = y == null ? void 0 : y.column) == null ? void 0 : E.dataIndex) === "operation" ? I(i.$slots, "operate", {
|
|
995
995
|
key: 1,
|
|
996
996
|
record: y == null ? void 0 : y.record
|
|
997
997
|
}, () => [
|
|
998
998
|
b(Pt, {
|
|
999
999
|
record: y == null ? void 0 : y.record,
|
|
1000
|
-
"grid-ctrl": e(
|
|
1000
|
+
"grid-ctrl": e(t)
|
|
1001
1001
|
}, null, 8, ["record", "grid-ctrl"])
|
|
1002
|
-
]) :
|
|
1002
|
+
]) : k("", !0)
|
|
1003
1003
|
];
|
|
1004
1004
|
}),
|
|
1005
1005
|
_: 3
|
|
1006
|
-
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) :
|
|
1006
|
+
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
|
|
1007
1007
|
], 64);
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
|
-
}), Yt = { class: "flex items-center gap-1" }, Lt = { class: "text-nowrap" },
|
|
1010
|
+
}), Yt = { class: "flex items-center gap-1" }, Lt = { class: "text-nowrap" }, Ca = /* @__PURE__ */ C({
|
|
1011
1011
|
__name: "index",
|
|
1012
1012
|
props: {
|
|
1013
1013
|
treeCtrl: {},
|
|
@@ -1016,16 +1016,16 @@ const ga = /* @__PURE__ */ k({
|
|
|
1016
1016
|
},
|
|
1017
1017
|
emits: ["select", "update:selectedKeys"],
|
|
1018
1018
|
setup(v, { emit: r }) {
|
|
1019
|
-
const
|
|
1019
|
+
const a = v, t = W(), o = a.treeCtrl, n = h([]);
|
|
1020
1020
|
$(
|
|
1021
1021
|
() => o.data.value,
|
|
1022
1022
|
(u) => {
|
|
1023
|
-
u && (n.value = o.fieldMap ? ee(o.fieldMap, u) : u, s(
|
|
1023
|
+
u && (n.value = o.fieldMap ? ee(o.fieldMap, u) : u, s(a.selectedKeys ?? []));
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
const p = r, d = h([]);
|
|
1027
1027
|
$(
|
|
1028
|
-
() =>
|
|
1028
|
+
() => a.selectedKeys,
|
|
1029
1029
|
(u) => {
|
|
1030
1030
|
u && (d.value = u);
|
|
1031
1031
|
},
|
|
@@ -1033,7 +1033,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
1033
1033
|
);
|
|
1034
1034
|
const c = h(["-"]);
|
|
1035
1035
|
$(
|
|
1036
|
-
() =>
|
|
1036
|
+
() => a.expandedKeys,
|
|
1037
1037
|
(u) => {
|
|
1038
1038
|
u && (c.value = u);
|
|
1039
1039
|
},
|
|
@@ -1049,7 +1049,7 @@ const ga = /* @__PURE__ */ k({
|
|
|
1049
1049
|
value: "Id",
|
|
1050
1050
|
icon: "Icon"
|
|
1051
1051
|
}), o.data.value ? n.value = ee(o.fieldMap, o.data.value) : o.autoload && De(o);
|
|
1052
|
-
}), (u, l) => (f(),
|
|
1052
|
+
}), (u, l) => (f(), g(e(rt), B({
|
|
1053
1053
|
class: "w-full",
|
|
1054
1054
|
"show-line": !0,
|
|
1055
1055
|
"tree-data": n.value,
|
|
@@ -1058,49 +1058,49 @@ const ga = /* @__PURE__ */ k({
|
|
|
1058
1058
|
"selected-keys": d.value,
|
|
1059
1059
|
loading: e(o).isTreeLoading,
|
|
1060
1060
|
onSelect: s
|
|
1061
|
-
}, e(
|
|
1062
|
-
title:
|
|
1063
|
-
|
|
1061
|
+
}, e(t)), {
|
|
1062
|
+
title: _(({ key: i, label: m, icon: x }) => [
|
|
1063
|
+
I(u.$slots, "title", {
|
|
1064
1064
|
label: m,
|
|
1065
1065
|
key: i,
|
|
1066
1066
|
icon: x
|
|
1067
1067
|
}, () => [
|
|
1068
1068
|
T("div", Yt, [
|
|
1069
1069
|
b(e(Y), { icon: x }, null, 8, ["icon"]),
|
|
1070
|
-
T("span", Lt,
|
|
1070
|
+
T("span", Lt, D(m), 1)
|
|
1071
1071
|
])
|
|
1072
1072
|
])
|
|
1073
1073
|
]),
|
|
1074
1074
|
_: 3
|
|
1075
1075
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1076
1076
|
}
|
|
1077
|
-
}), wa = /* @__PURE__ */ j(
|
|
1077
|
+
}), wa = /* @__PURE__ */ j(gt, [["__scopeId", "data-v-1e39ad49"]]), Rt = {
|
|
1078
1078
|
key: 0,
|
|
1079
1079
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1080
|
-
}, Ut = /* @__PURE__ */
|
|
1080
|
+
}, Ut = /* @__PURE__ */ C({
|
|
1081
1081
|
inheritAttrs: !1,
|
|
1082
1082
|
__name: "index",
|
|
1083
1083
|
props: We,
|
|
1084
1084
|
emits: ["change", "update:labels", "update:value"],
|
|
1085
1085
|
setup(v, { emit: r }) {
|
|
1086
1086
|
var m, x, S;
|
|
1087
|
-
const
|
|
1088
|
-
...
|
|
1089
|
-
url: ((m =
|
|
1090
|
-
fieldMap:
|
|
1091
|
-
params:
|
|
1087
|
+
const a = v, t = W(), o = h({
|
|
1088
|
+
...a.url,
|
|
1089
|
+
url: ((m = a.url) == null ? void 0 : m.url) || "",
|
|
1090
|
+
fieldMap: a.fieldMap || ((x = a.url) == null ? void 0 : x.fieldMap),
|
|
1091
|
+
params: a.params || ((S = a.url) == null ? void 0 : S.params),
|
|
1092
1092
|
loadingText: !1
|
|
1093
|
-
}), n = O(), { editorCtrl: p, errInfo: d, labelText: c } = n, s = h(
|
|
1093
|
+
}), n = O(), { editorCtrl: p, errInfo: d, labelText: c } = n, s = h(t.placeholder);
|
|
1094
1094
|
$(
|
|
1095
1095
|
() => o.value.loading,
|
|
1096
|
-
(
|
|
1097
|
-
|
|
1096
|
+
(F) => {
|
|
1097
|
+
F ? s.value = "" : s.value || (s.value = "请选择" + c.value);
|
|
1098
1098
|
},
|
|
1099
1099
|
{ immediate: !0 }
|
|
1100
1100
|
);
|
|
1101
1101
|
const u = r;
|
|
1102
1102
|
n.inputEmit = u;
|
|
1103
|
-
const l = h([]), i = (
|
|
1103
|
+
const l = h([]), i = (F, y) => {
|
|
1104
1104
|
if (!y || y.length === 0) {
|
|
1105
1105
|
u("update:labels", []), u("update:value", []);
|
|
1106
1106
|
return;
|
|
@@ -1117,23 +1117,23 @@ const ga = /* @__PURE__ */ k({
|
|
|
1117
1117
|
label: "Name",
|
|
1118
1118
|
value: "Id",
|
|
1119
1119
|
key: "Id"
|
|
1120
|
-
}), $e(
|
|
1120
|
+
}), $e(a.autoload, a, l, n, o.value, o.value.params);
|
|
1121
1121
|
}), xe(() => {
|
|
1122
|
-
Se(
|
|
1123
|
-
}), (
|
|
1122
|
+
Se(a, n);
|
|
1123
|
+
}), (F, y) => {
|
|
1124
1124
|
var A;
|
|
1125
1125
|
return f(), w("div", null, [
|
|
1126
|
-
l.value.length ?
|
|
1126
|
+
l.value.length ? k("", !0) : (f(), w("div", Rt, [
|
|
1127
1127
|
b(e(Je), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1128
1128
|
y[0] || (y[0] = T("span", null, "数据加载中...", -1))
|
|
1129
1129
|
])),
|
|
1130
|
-
b(e(ot),
|
|
1130
|
+
b(e(ot), B({
|
|
1131
1131
|
options: l.value,
|
|
1132
1132
|
class: [(A = e(d)) == null ? void 0 : A.errClass],
|
|
1133
1133
|
"allow-clear": !0,
|
|
1134
1134
|
placeholder: l.value.length > 0 ? "请选择" + e(c) : "",
|
|
1135
1135
|
onChange: i
|
|
1136
|
-
}, e(
|
|
1136
|
+
}, e(t)), null, 16, ["options", "class", "placeholder"])
|
|
1137
1137
|
]);
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
@@ -1141,13 +1141,13 @@ const ga = /* @__PURE__ */ k({
|
|
|
1141
1141
|
function te() {
|
|
1142
1142
|
return te = Object.assign ? Object.assign.bind() : function(v) {
|
|
1143
1143
|
for (var r = 1; r < arguments.length; r++) {
|
|
1144
|
-
var
|
|
1145
|
-
for (var
|
|
1144
|
+
var a = arguments[r];
|
|
1145
|
+
for (var t in a) ({}).hasOwnProperty.call(a, t) && (v[t] = a[t]);
|
|
1146
1146
|
}
|
|
1147
1147
|
return v;
|
|
1148
1148
|
}, te.apply(null, arguments);
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const qt = {
|
|
1151
1151
|
locale: "zh_CN",
|
|
1152
1152
|
today: "今天",
|
|
1153
1153
|
now: "此刻",
|
|
@@ -1174,7 +1174,7 @@ const Qt = {
|
|
|
1174
1174
|
nextDecade: "下一年代",
|
|
1175
1175
|
previousCentury: "上一世纪",
|
|
1176
1176
|
nextCentury: "下一世纪"
|
|
1177
|
-
},
|
|
1177
|
+
}, Qt = {
|
|
1178
1178
|
placeholder: "请选择时间",
|
|
1179
1179
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1180
1180
|
}, ce = {
|
|
@@ -1189,39 +1189,39 @@ const Qt = {
|
|
|
1189
1189
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1190
1190
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1191
1191
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1192
|
-
},
|
|
1193
|
-
timePickerLocale: te({},
|
|
1192
|
+
}, qt),
|
|
1193
|
+
timePickerLocale: te({}, Qt)
|
|
1194
1194
|
};
|
|
1195
1195
|
ce.lang.ok = "确定";
|
|
1196
|
-
const Ta = /* @__PURE__ */
|
|
1196
|
+
const Ta = /* @__PURE__ */ C({
|
|
1197
1197
|
__name: "index",
|
|
1198
1198
|
props: {
|
|
1199
1199
|
valueFormat: {}
|
|
1200
1200
|
},
|
|
1201
1201
|
setup(v) {
|
|
1202
|
-
const r = v, { editorCtrl:
|
|
1203
|
-
o != null && o.value.errClass &&
|
|
1202
|
+
const r = v, { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1203
|
+
o != null && o.value.errClass && a && U(a);
|
|
1204
1204
|
}, p = h(r.valueFormat ?? "YYYY-MM-DD");
|
|
1205
1205
|
return (d, c) => {
|
|
1206
1206
|
var s;
|
|
1207
|
-
return f(),
|
|
1207
|
+
return f(), g(e(st), {
|
|
1208
1208
|
class: N([[((s = e(o)) == null ? void 0 : s.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-full"]),
|
|
1209
|
-
placeholder: "请选择" + e(
|
|
1209
|
+
placeholder: "请选择" + e(t),
|
|
1210
1210
|
locale: e(ce),
|
|
1211
1211
|
valueFormat: p.value,
|
|
1212
1212
|
onBlur: n
|
|
1213
1213
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
}), Vt = /* @__PURE__ */
|
|
1216
|
+
}), Vt = /* @__PURE__ */ C({
|
|
1217
1217
|
__name: "index",
|
|
1218
1218
|
props: {
|
|
1219
1219
|
value: {}
|
|
1220
1220
|
},
|
|
1221
1221
|
emits: ["update:value"],
|
|
1222
1222
|
setup(v, { emit: r }) {
|
|
1223
|
-
const { editorCtrl:
|
|
1224
|
-
o != null && o.value.errClass &&
|
|
1223
|
+
const { editorCtrl: a, labelText: t, errInfo: o } = O(), n = () => {
|
|
1224
|
+
o != null && o.value.errClass && a && U(a);
|
|
1225
1225
|
}, p = v, d = r, c = h(p.value);
|
|
1226
1226
|
$(
|
|
1227
1227
|
() => p.value,
|
|
@@ -1245,7 +1245,7 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1245
1245
|
};
|
|
1246
1246
|
return (u, l) => {
|
|
1247
1247
|
var i, m;
|
|
1248
|
-
return f(),
|
|
1248
|
+
return f(), g(e(se), B({
|
|
1249
1249
|
class: [
|
|
1250
1250
|
(i = e(o)) == null ? void 0 : i.errClass,
|
|
1251
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]" : ""
|
|
@@ -1254,37 +1254,37 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1254
1254
|
"onUpdate:value": l[0] || (l[0] = (x) => c.value = x),
|
|
1255
1255
|
autocomplete: "new-password",
|
|
1256
1256
|
"allow-clear": !0,
|
|
1257
|
-
placeholder: "请输入" + e(
|
|
1257
|
+
placeholder: "请输入" + e(t),
|
|
1258
1258
|
onBlur: n,
|
|
1259
1259
|
onChange: s
|
|
1260
1260
|
}, u.$attrs), he({ _: 2 }, [
|
|
1261
1261
|
u.$slots.addonBefore ? {
|
|
1262
1262
|
name: "addonBefore",
|
|
1263
|
-
fn:
|
|
1264
|
-
|
|
1263
|
+
fn: _(() => [
|
|
1264
|
+
I(u.$slots, "addonBefore")
|
|
1265
1265
|
]),
|
|
1266
1266
|
key: "0"
|
|
1267
1267
|
} : void 0,
|
|
1268
1268
|
u.$slots.addonAfter ? {
|
|
1269
1269
|
name: "addonAfter",
|
|
1270
|
-
fn:
|
|
1271
|
-
|
|
1270
|
+
fn: _(() => [
|
|
1271
|
+
I(u.$slots, "addonAfter")
|
|
1272
1272
|
]),
|
|
1273
1273
|
key: "1"
|
|
1274
1274
|
} : void 0
|
|
1275
1275
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
|
-
}), jt = /* @__PURE__ */
|
|
1278
|
+
}), jt = /* @__PURE__ */ C({
|
|
1279
1279
|
__name: "inputIcon",
|
|
1280
1280
|
props: {
|
|
1281
1281
|
value: {}
|
|
1282
1282
|
},
|
|
1283
1283
|
emits: ["update:value"],
|
|
1284
1284
|
setup(v, { emit: r }) {
|
|
1285
|
-
const
|
|
1285
|
+
const a = v, t = r, o = h(void 0);
|
|
1286
1286
|
return $(
|
|
1287
|
-
() =>
|
|
1287
|
+
() => a.value,
|
|
1288
1288
|
(n) => {
|
|
1289
1289
|
o.value = n ?? void 0;
|
|
1290
1290
|
},
|
|
@@ -1292,14 +1292,14 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1292
1292
|
), $(
|
|
1293
1293
|
() => o.value,
|
|
1294
1294
|
(n) => {
|
|
1295
|
-
|
|
1295
|
+
t("update:value", n);
|
|
1296
1296
|
}
|
|
1297
|
-
), (n, p) => (f(),
|
|
1297
|
+
), (n, p) => (f(), g(Vt, B({
|
|
1298
1298
|
class: ["w-[80%]"],
|
|
1299
1299
|
value: o.value,
|
|
1300
1300
|
"onUpdate:value": p[0] || (p[0] = (d) => o.value = d)
|
|
1301
1301
|
}, n.$attrs), {
|
|
1302
|
-
addonBefore:
|
|
1302
|
+
addonBefore: _(() => [
|
|
1303
1303
|
b(e(Y), {
|
|
1304
1304
|
class: "!w-4 !h-4",
|
|
1305
1305
|
icon: o.value
|
|
@@ -1308,40 +1308,40 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1308
1308
|
_: 1
|
|
1309
1309
|
}, 16, ["value"]));
|
|
1310
1310
|
}
|
|
1311
|
-
}), Da = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-f7b3ed74"]]), Ia = /* @__PURE__ */
|
|
1311
|
+
}), Da = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-f7b3ed74"]]), Ia = /* @__PURE__ */ C({
|
|
1312
1312
|
__name: "inputPassword",
|
|
1313
1313
|
setup(v) {
|
|
1314
|
-
const { editorCtrl: r, labelText:
|
|
1315
|
-
|
|
1314
|
+
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1315
|
+
t != null && t.value.errClass && r && U(r);
|
|
1316
1316
|
};
|
|
1317
1317
|
return (n, p) => {
|
|
1318
1318
|
var d;
|
|
1319
|
-
return f(),
|
|
1320
|
-
class: ((d = e(
|
|
1319
|
+
return f(), g(e(nt), B({
|
|
1320
|
+
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1321
1321
|
"allow-clear": !0,
|
|
1322
1322
|
autocomplete: "new-password",
|
|
1323
|
-
placeholder: "请输入" + e(
|
|
1323
|
+
placeholder: "请输入" + e(a),
|
|
1324
1324
|
onBlur: o
|
|
1325
1325
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
|
-
}), Ba = /* @__PURE__ */
|
|
1328
|
+
}), Ba = /* @__PURE__ */ C({
|
|
1329
1329
|
__name: "inputNumber",
|
|
1330
1330
|
setup(v) {
|
|
1331
|
-
const { editorCtrl: r, labelText:
|
|
1332
|
-
|
|
1331
|
+
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1332
|
+
t != null && t.value.errClass && r && U(r);
|
|
1333
1333
|
};
|
|
1334
1334
|
return (n, p) => {
|
|
1335
1335
|
var d;
|
|
1336
|
-
return f(),
|
|
1337
|
-
class: [[((d = e(
|
|
1336
|
+
return f(), g(e(ut), B({
|
|
1337
|
+
class: [[((d = e(t)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1338
1338
|
onBlur: o,
|
|
1339
1339
|
"allow-clear": !1,
|
|
1340
|
-
placeholder: "请输入" + e(
|
|
1340
|
+
placeholder: "请输入" + e(a)
|
|
1341
1341
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1342
1342
|
};
|
|
1343
1343
|
}
|
|
1344
|
-
}), Ht = { class: "flex flex-col gap-2" }, Wt = { class: "w-[33%]" }, Jt = { class: "w-[64%]" }, Fa = /* @__PURE__ */
|
|
1344
|
+
}), Ht = { class: "flex flex-col gap-2" }, Wt = { class: "w-[33%]" }, Jt = { class: "w-[64%]" }, Fa = /* @__PURE__ */ C({
|
|
1345
1345
|
__name: "index",
|
|
1346
1346
|
props: {
|
|
1347
1347
|
value: {},
|
|
@@ -1350,21 +1350,21 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1350
1350
|
},
|
|
1351
1351
|
emits: ["update:value"],
|
|
1352
1352
|
setup(v, { emit: r }) {
|
|
1353
|
-
const
|
|
1353
|
+
const a = v, t = r, o = h([]);
|
|
1354
1354
|
let n = !1;
|
|
1355
1355
|
const p = () => {
|
|
1356
|
-
o.value = Object.entries(
|
|
1356
|
+
o.value = Object.entries(a.value).map(([u, l]) => ({
|
|
1357
1357
|
id: Date.now() + Math.random(),
|
|
1358
1358
|
field: u,
|
|
1359
1359
|
value: l
|
|
1360
1360
|
}));
|
|
1361
1361
|
};
|
|
1362
|
-
$(() =>
|
|
1362
|
+
$(() => a.value, () => {
|
|
1363
1363
|
n || p(), n = !1;
|
|
1364
1364
|
}, { immediate: !0 });
|
|
1365
1365
|
const d = () => {
|
|
1366
1366
|
const u = o.value.reduce((l, i) => (i.field && (l[i.field] = i.value), l), {});
|
|
1367
|
-
n = !0,
|
|
1367
|
+
n = !0, t("update:value", u);
|
|
1368
1368
|
}, c = () => {
|
|
1369
1369
|
o.value.push({
|
|
1370
1370
|
id: Date.now() + Math.random(),
|
|
@@ -1405,7 +1405,7 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1405
1405
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1406
1406
|
size: "small"
|
|
1407
1407
|
}, {
|
|
1408
|
-
default:
|
|
1408
|
+
default: _(() => l[1] || (l[1] = [
|
|
1409
1409
|
P(" 新增配置行 ")
|
|
1410
1410
|
])),
|
|
1411
1411
|
_: 1,
|
|
@@ -1413,7 +1413,7 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1413
1413
|
})
|
|
1414
1414
|
]));
|
|
1415
1415
|
}
|
|
1416
|
-
}), Gt = /* @__PURE__ */ j(xt, [["__scopeId", "data-v-f9b2ac3d"]]), Pa = /* @__PURE__ */
|
|
1416
|
+
}), Gt = /* @__PURE__ */ j(xt, [["__scopeId", "data-v-f9b2ac3d"]]), Pa = /* @__PURE__ */ C({
|
|
1417
1417
|
__name: "radioStatus",
|
|
1418
1418
|
props: {
|
|
1419
1419
|
/**
|
|
@@ -1441,13 +1441,13 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1441
1441
|
}
|
|
1442
1442
|
},
|
|
1443
1443
|
setup(v) {
|
|
1444
|
-
const r = v,
|
|
1445
|
-
return r.all === !0 &&
|
|
1444
|
+
const r = v, a = h(JSON.parse(JSON.stringify(Te.getOptions(r.dataKey))));
|
|
1445
|
+
return r.all === !0 && a.value.unshift({
|
|
1446
1446
|
label: "全部",
|
|
1447
1447
|
value: r.allValue || [0, 1]
|
|
1448
|
-
}), (
|
|
1448
|
+
}), (t, o) => (f(), g(Gt, { data: a.value }, null, 8, ["data"]));
|
|
1449
1449
|
}
|
|
1450
|
-
}), Ma = /* @__PURE__ */
|
|
1450
|
+
}), Ma = /* @__PURE__ */ C({
|
|
1451
1451
|
__name: "index",
|
|
1452
1452
|
props: {
|
|
1453
1453
|
startDate: {},
|
|
@@ -1456,25 +1456,25 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1456
1456
|
},
|
|
1457
1457
|
emits: ["update:startDate", "update:endDate"],
|
|
1458
1458
|
setup(v, { emit: r }) {
|
|
1459
|
-
const
|
|
1460
|
-
const s =
|
|
1459
|
+
const a = v, t = r, o = O(), { errInfo: n } = o, p = re(() => a.valueFormat), d = re(() => {
|
|
1460
|
+
const s = a.startDate, u = a.endDate;
|
|
1461
1461
|
if (!(!s || !u))
|
|
1462
1462
|
try {
|
|
1463
|
-
const l =
|
|
1463
|
+
const l = _e(s), i = _e(u);
|
|
1464
1464
|
return !l.isValid() || !i.isValid() ? void 0 : [l, i];
|
|
1465
1465
|
} catch {
|
|
1466
1466
|
return;
|
|
1467
1467
|
}
|
|
1468
1468
|
}), c = (s, u) => {
|
|
1469
1469
|
if (!s || !u || u.length !== 2) {
|
|
1470
|
-
|
|
1470
|
+
t("update:startDate", null), t("update:endDate", null);
|
|
1471
1471
|
return;
|
|
1472
1472
|
}
|
|
1473
|
-
|
|
1473
|
+
t("update:startDate", u[0] || null), t("update:endDate", u[1] || null);
|
|
1474
1474
|
};
|
|
1475
1475
|
return (s, u) => {
|
|
1476
1476
|
var l;
|
|
1477
|
-
return f(),
|
|
1477
|
+
return f(), g(e(it), {
|
|
1478
1478
|
class: N([((l = e(n)) == null ? void 0 : l.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1479
1479
|
locale: e(ce),
|
|
1480
1480
|
"value-format": p.value,
|
|
@@ -1483,18 +1483,18 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1483
1483
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1484
1484
|
};
|
|
1485
1485
|
}
|
|
1486
|
-
}), Na = /* @__PURE__ */ j(yt, [["__scopeId", "data-v-bf782acb"]]), za = /* @__PURE__ */
|
|
1486
|
+
}), Na = /* @__PURE__ */ j(yt, [["__scopeId", "data-v-bf782acb"]]), za = /* @__PURE__ */ C({
|
|
1487
1487
|
__name: "index",
|
|
1488
1488
|
setup(v) {
|
|
1489
|
-
const { editorCtrl: r, labelText:
|
|
1490
|
-
|
|
1489
|
+
const { editorCtrl: r, labelText: a, errInfo: t } = O(), o = () => {
|
|
1490
|
+
t != null && t.value.errClass && r && U(r);
|
|
1491
1491
|
};
|
|
1492
1492
|
return (n, p) => {
|
|
1493
1493
|
var d;
|
|
1494
|
-
return f(),
|
|
1495
|
-
class: ((d = e(
|
|
1494
|
+
return f(), g(e(dt), B({
|
|
1495
|
+
class: ((d = e(t)) == null ? void 0 : d.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1496
1496
|
"allow-clear": !0,
|
|
1497
|
-
placeholder: "请输入" + e(
|
|
1497
|
+
placeholder: "请输入" + e(a),
|
|
1498
1498
|
onBlur: o,
|
|
1499
1499
|
onKeyup: p[0] || (p[0] = fe(J(() => {
|
|
1500
1500
|
}, ["stop"]), ["enter", "native"])),
|
|
@@ -1503,7 +1503,7 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1503
1503
|
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1504
1504
|
};
|
|
1505
1505
|
}
|
|
1506
|
-
}), Xt = /* @__PURE__ */
|
|
1506
|
+
}), Xt = /* @__PURE__ */ C({
|
|
1507
1507
|
__name: "index",
|
|
1508
1508
|
props: {
|
|
1509
1509
|
autoload: { type: Boolean },
|
|
@@ -1513,11 +1513,11 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1513
1513
|
},
|
|
1514
1514
|
emits: ["change", "update:value"],
|
|
1515
1515
|
setup(v, { emit: r }) {
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1516
|
+
const a = v, t = h({ ...a.url }), { editorCtrl: o, labelText: n, errInfo: p } = O(), d = r, c = h([]), s = h([]);
|
|
1517
|
+
a.value && a.value.every((l) => {
|
|
1518
1518
|
s.value.push(l.toString());
|
|
1519
1519
|
}), $(
|
|
1520
|
-
() =>
|
|
1520
|
+
() => a.value,
|
|
1521
1521
|
(l) => {
|
|
1522
1522
|
l && (s.value = l);
|
|
1523
1523
|
}
|
|
@@ -1526,31 +1526,31 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1526
1526
|
d("update:value", l), d("change", l), s.value = l, p != null && p.value.errClass && o && U(o);
|
|
1527
1527
|
};
|
|
1528
1528
|
return K(async () => {
|
|
1529
|
-
if (
|
|
1529
|
+
if (t.value) {
|
|
1530
1530
|
const l = o == null ? void 0 : o.page;
|
|
1531
|
-
if (
|
|
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) {
|
|
1532
1532
|
const i = await Ie(o, {
|
|
1533
1533
|
urlKey: "list",
|
|
1534
|
-
url: { ...
|
|
1534
|
+
url: { ...t.value, url: t.value.url },
|
|
1535
1535
|
loadingText: !1,
|
|
1536
|
-
params:
|
|
1536
|
+
params: a.params
|
|
1537
1537
|
});
|
|
1538
1538
|
c.value = (i == null ? void 0 : i.data) ?? [];
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
}), (l, i) => {
|
|
1542
1542
|
var m;
|
|
1543
|
-
return f(),
|
|
1543
|
+
return f(), g(e(ct), B({
|
|
1544
1544
|
class: ((m = e(p)) == null ? void 0 : m.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1545
1545
|
placeholder: "请输入" + e(n),
|
|
1546
1546
|
targetKeys: s.value,
|
|
1547
1547
|
onChange: u
|
|
1548
1548
|
}, l.$attrs), {
|
|
1549
|
-
children:
|
|
1550
|
-
|
|
1549
|
+
children: _(({ direction: x, disabled: S, filteredItems: F, onItemSelectAll: y, onItemSelect: A, selectedKeys: E }) => [
|
|
1550
|
+
I(l.$slots, "children", {
|
|
1551
1551
|
direction: x,
|
|
1552
1552
|
disabled: S,
|
|
1553
|
-
filteredItems:
|
|
1553
|
+
filteredItems: F,
|
|
1554
1554
|
onItemSelectAll: y,
|
|
1555
1555
|
onItemSelect: A,
|
|
1556
1556
|
selectedKeys: E
|
|
@@ -1560,7 +1560,7 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1560
1560
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
|
-
}), Ka = /* @__PURE__ */
|
|
1563
|
+
}), Ka = /* @__PURE__ */ C({
|
|
1564
1564
|
__name: "transferTable",
|
|
1565
1565
|
props: {
|
|
1566
1566
|
/**
|
|
@@ -1587,25 +1587,25 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1587
1587
|
},
|
|
1588
1588
|
emits: ["update:value"],
|
|
1589
1589
|
setup(v, { emit: r }) {
|
|
1590
|
-
const
|
|
1590
|
+
const a = v, t = r, o = h(a.autoload), n = h(a.value), p = h(a.gridCtrl.primaryKey);
|
|
1591
1591
|
$(
|
|
1592
1592
|
() => n.value,
|
|
1593
1593
|
(s) => {
|
|
1594
|
-
|
|
1594
|
+
t("update:value", s);
|
|
1595
1595
|
}
|
|
1596
1596
|
), $(
|
|
1597
|
-
() =>
|
|
1597
|
+
() => a.value,
|
|
1598
1598
|
(s) => {
|
|
1599
1599
|
s && (n.value = s);
|
|
1600
1600
|
}
|
|
1601
|
-
),
|
|
1601
|
+
), a.gridCtrl.autoload = !1, a.gridCtrl.remotePage = !1, a.gridCtrl.selectable = h(!0), a.gridCtrl.buttons = h([]), a.gridCtrl.tools = [];
|
|
1602
1602
|
const d = ({ disabled: s, selectedKeys: u, onItemSelectAll: l, onItemSelect: i }) => ({
|
|
1603
1603
|
getCheckboxProps: (m) => ({
|
|
1604
1604
|
// 控制是否禁止
|
|
1605
1605
|
disabled: s || m.disabled
|
|
1606
1606
|
}),
|
|
1607
1607
|
onSelectAll(m, x) {
|
|
1608
|
-
const S = x.filter((
|
|
1608
|
+
const S = x.filter((F) => !F.disabled).map(({ [p.value]: F }) => F);
|
|
1609
1609
|
l(S, m);
|
|
1610
1610
|
},
|
|
1611
1611
|
onSelect({ [p.value]: m }, x) {
|
|
@@ -1615,15 +1615,15 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1615
1615
|
}), c = h([]);
|
|
1616
1616
|
return K(async () => {
|
|
1617
1617
|
if (o.value) {
|
|
1618
|
-
const s = await Ie(
|
|
1618
|
+
const s = await Ie(a.gridCtrl, {
|
|
1619
1619
|
urlKey: "list",
|
|
1620
|
-
url: { ...
|
|
1621
|
-
params:
|
|
1620
|
+
url: { ...a.gridCtrl.gridUrl, url: a.gridCtrl.gridUrl.url },
|
|
1621
|
+
params: a.gridCtrl.gridQuery,
|
|
1622
1622
|
loadingText: !1
|
|
1623
1623
|
});
|
|
1624
1624
|
c.value = (s == null ? void 0 : s.data) ?? [];
|
|
1625
1625
|
}
|
|
1626
|
-
}), (s, u) => (f(),
|
|
1626
|
+
}), (s, u) => (f(), g(Xt, B({
|
|
1627
1627
|
"data-source": c.value,
|
|
1628
1628
|
"row-key": (l) => l[p.value],
|
|
1629
1629
|
value: n.value,
|
|
@@ -1635,13 +1635,13 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1635
1635
|
"show-select-all": !1,
|
|
1636
1636
|
"show-search": !0,
|
|
1637
1637
|
"filter-option": (l, i) => {
|
|
1638
|
-
for (const m of
|
|
1638
|
+
for (const m of a.gridCtrl.columns.value)
|
|
1639
1639
|
if (i[m.dataIndex].toString().indexOf(l) !== -1)
|
|
1640
1640
|
return !0;
|
|
1641
1641
|
return !1;
|
|
1642
1642
|
}
|
|
1643
1643
|
}, s.$attrs), {
|
|
1644
|
-
children:
|
|
1644
|
+
children: _(({ filteredItems: l, onItemSelectAll: i, onItemSelect: m, selectedKeys: x }) => [
|
|
1645
1645
|
b(e(Ne), {
|
|
1646
1646
|
columns: v.gridCtrl.columns.value,
|
|
1647
1647
|
"row-key": p.value,
|
|
@@ -1657,8 +1657,8 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1657
1657
|
scroll: { x: 300 },
|
|
1658
1658
|
"custom-row": (S) => ({
|
|
1659
1659
|
onClick: () => {
|
|
1660
|
-
const
|
|
1661
|
-
m(
|
|
1660
|
+
const F = S[p.value];
|
|
1661
|
+
m(F, !x.includes(F));
|
|
1662
1662
|
}
|
|
1663
1663
|
})
|
|
1664
1664
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -1666,7 +1666,7 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1666
1666
|
_: 1
|
|
1667
1667
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
1668
1668
|
}
|
|
1669
|
-
}), Zt = /* @__PURE__ */
|
|
1669
|
+
}), Zt = /* @__PURE__ */ C({
|
|
1670
1670
|
__name: "index",
|
|
1671
1671
|
props: {
|
|
1672
1672
|
multiple: {
|
|
@@ -1684,34 +1684,34 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1684
1684
|
},
|
|
1685
1685
|
emits: ["change", "update:value"],
|
|
1686
1686
|
setup(v, { emit: r }) {
|
|
1687
|
-
const
|
|
1687
|
+
const a = v, t = a.treeCtrl, o = O(), { errInfo: n, labelText: p } = o, d = r;
|
|
1688
1688
|
o.inputEmit = d;
|
|
1689
1689
|
const c = h([]), s = h();
|
|
1690
1690
|
$(
|
|
1691
|
-
() =>
|
|
1691
|
+
() => a.value,
|
|
1692
1692
|
(l) => {
|
|
1693
1693
|
s.value = l ?? null;
|
|
1694
1694
|
},
|
|
1695
1695
|
{ immediate: !0 }
|
|
1696
1696
|
), $(
|
|
1697
|
-
() =>
|
|
1697
|
+
() => t.data.value,
|
|
1698
1698
|
(l) => {
|
|
1699
|
-
l && (c.value =
|
|
1699
|
+
l && (c.value = t.fieldMap ? ee(t.fieldMap, l) : l);
|
|
1700
1700
|
},
|
|
1701
1701
|
{ immediate: !0 }
|
|
1702
1702
|
);
|
|
1703
1703
|
const u = (l) => {
|
|
1704
|
-
|
|
1704
|
+
a.multiple ? s.value = l ?? [] : s.value = l ?? "", d("change", s.value), d("update:value", s.value);
|
|
1705
1705
|
};
|
|
1706
1706
|
return K(() => {
|
|
1707
|
-
|
|
1707
|
+
t.fieldMap || (t.fieldMap = {
|
|
1708
1708
|
label: "Name",
|
|
1709
1709
|
key: "Id",
|
|
1710
1710
|
value: "Id"
|
|
1711
|
-
}),
|
|
1711
|
+
}), t.data.value ? c.value = t.fieldMap ? ee(t.fieldMap, t.data.value) : t.data.value : a.treeCtrl.autoload && De(a.treeCtrl);
|
|
1712
1712
|
}), (l, i) => {
|
|
1713
1713
|
var m;
|
|
1714
|
-
return f(),
|
|
1714
|
+
return f(), g(e(pt), B({
|
|
1715
1715
|
class: [[(m = e(n)) == null ? void 0 : m.errClass], "w-full"],
|
|
1716
1716
|
"tree-line": "",
|
|
1717
1717
|
multiple: v.multiple,
|
|
@@ -1728,27 +1728,27 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1728
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 = {
|
|
1729
1729
|
key: 0,
|
|
1730
1730
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
1731
|
-
}, la = { class: "flex-1 h-full overflow-y-auto" }, Aa = /* @__PURE__ */
|
|
1731
|
+
}, la = { class: "flex-1 h-full overflow-y-auto" }, Aa = /* @__PURE__ */ C({
|
|
1732
1732
|
__name: "index",
|
|
1733
1733
|
props: {
|
|
1734
1734
|
left: { type: Boolean }
|
|
1735
1735
|
},
|
|
1736
1736
|
setup(v) {
|
|
1737
|
-
const { useToken: r } = Be, { token:
|
|
1738
|
-
return (
|
|
1737
|
+
const { useToken: r } = Be, { token: a } = r();
|
|
1738
|
+
return (t, o) => (f(), w("div", ea, [
|
|
1739
1739
|
b(e(ft), {
|
|
1740
1740
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
1741
1741
|
style: ne({
|
|
1742
|
-
backgroundColor: e(
|
|
1742
|
+
backgroundColor: e(a).colorBgContainer
|
|
1743
1743
|
})
|
|
1744
1744
|
}, {
|
|
1745
|
-
default:
|
|
1745
|
+
default: _(() => [
|
|
1746
1746
|
T("div", ta, [
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
])) :
|
|
1747
|
+
t.left ? (f(), w("div", aa, [
|
|
1748
|
+
I(t.$slots, "left")
|
|
1749
|
+
])) : k("", !0),
|
|
1750
1750
|
T("div", la, [
|
|
1751
|
-
|
|
1751
|
+
I(t.$slots, "default")
|
|
1752
1752
|
])
|
|
1753
1753
|
])
|
|
1754
1754
|
]),
|
|
@@ -1756,16 +1756,16 @@ const Ta = /* @__PURE__ */ k({
|
|
|
1756
1756
|
}, 8, ["style"])
|
|
1757
1757
|
]));
|
|
1758
1758
|
}
|
|
1759
|
-
}), ra = { class: "font-['Courier'] text-[#666]" }, Ea = /* @__PURE__ */
|
|
1759
|
+
}), ra = { class: "font-['Courier'] text-[#666]" }, Ea = /* @__PURE__ */ C({
|
|
1760
1760
|
__name: "index",
|
|
1761
1761
|
setup(v) {
|
|
1762
1762
|
const r = h("");
|
|
1763
1763
|
return K(() => {
|
|
1764
1764
|
setInterval(() => {
|
|
1765
|
-
const
|
|
1766
|
-
r.value =
|
|
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;
|
|
1767
1767
|
}, 1e3);
|
|
1768
|
-
}), (
|
|
1768
|
+
}), (a, t) => (f(), w("div", ra, D(r.value), 1));
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
1771
1771
|
export {
|
|
@@ -1782,17 +1782,17 @@ export {
|
|
|
1782
1782
|
ha as Drawer,
|
|
1783
1783
|
xa as Form,
|
|
1784
1784
|
ya as FormItem,
|
|
1785
|
-
|
|
1785
|
+
_a as Fullscreen,
|
|
1786
1786
|
Ha as Header,
|
|
1787
1787
|
Wa as HeaderExits,
|
|
1788
|
-
|
|
1788
|
+
kt as Helper,
|
|
1789
1789
|
Ja as Icon,
|
|
1790
1790
|
Nt as Icontool,
|
|
1791
1791
|
Vt as Input,
|
|
1792
1792
|
Da as InputIcon,
|
|
1793
1793
|
Ba as InputNumber,
|
|
1794
1794
|
Ia as InputPassword,
|
|
1795
|
-
|
|
1795
|
+
ga as LayoutIcon,
|
|
1796
1796
|
Ga as Menu,
|
|
1797
1797
|
Xa as MenuTabs,
|
|
1798
1798
|
Za as ProjectIcon,
|
|
@@ -1804,15 +1804,15 @@ export {
|
|
|
1804
1804
|
le as SearchItem,
|
|
1805
1805
|
Na as Select,
|
|
1806
1806
|
Et as Switch,
|
|
1807
|
-
|
|
1807
|
+
ka as Table,
|
|
1808
1808
|
Pt as TableOperate,
|
|
1809
1809
|
za as Textarea,
|
|
1810
1810
|
Y as ToolIcon,
|
|
1811
1811
|
At as Toolbar,
|
|
1812
|
-
|
|
1812
|
+
qa as Tooltip,
|
|
1813
1813
|
Xt as Transfer,
|
|
1814
1814
|
Ka as TransferTable,
|
|
1815
|
-
|
|
1815
|
+
Ca as Tree,
|
|
1816
1816
|
Oa as TreeSelect,
|
|
1817
1817
|
tl as UploadList
|
|
1818
1818
|
};
|