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