@skyfox2000/webui 1.4.18 → 1.4.21
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/assets/modules/{baseLayout-D3_NxEzk.js → baseLayout-Da4Ox7Lj.js} +3 -3
- package/lib/assets/modules/{file-upload-CNBcbAAZ.js → file-upload-Bu6FkNjZ.js} +5 -5
- package/lib/assets/modules/{index-CDr74akE.js → index-BYVerdEw.js} +2 -2
- package/lib/assets/modules/{index-DOlO_4KL.js → index-BysCt107.js} +2 -2
- package/lib/assets/modules/{index-D14BsF7C.js → index-Ch3meKe4.js} +1 -1
- package/lib/assets/modules/{menuTabs-CqAhoF--.js → menuTabs-BqLT-YbD.js} +16 -16
- package/lib/assets/modules/{toolIcon-BnkqBipR.js → toolIcon-Dd58W0UM.js} +1 -1
- package/lib/assets/modules/{upload-template-KI-IFzyp.js → upload-template-Csccple9.js} +28 -28
- package/lib/assets/modules/{uploadList-DnFXg_B3.js → uploadList-D8scq04c.js} +4 -4
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/propEditor/index.vue.d.ts +1 -0
- package/lib/components/form/upload/imageList.vue.d.ts +486 -0
- package/lib/components/form/upload/uploadList.vue.d.ts +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +1275 -1059
- package/package.json +1 -1
- package/src/components/form/index.ts +3 -0
- package/src/components/form/propEditor/index.vue +30 -28
- package/src/components/form/upload/imageList.vue +386 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +1 -0
package/lib/webui.es.js
CHANGED
|
@@ -1,139 +1,140 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { u as $e, i as ie, a as Te, L as ft, c as vt, P as re, o as Ye, b as mt, d as ht, e as We, g as qe, r as ge, f as gt, h as bt, j as He, k as yt, l as Be, m as xt, _ as _t, n as kt, O as Qe, p as wt, q as Ge, s as Ct, t as St, v as V, w as $t, x as Tt, y as Ft, z as It, A as Et, B as Dt, C as Z, D as Pt, E as Ut, F as Lt, G as Je, M as Mt } from "./assets/modules/upload-template-Csccple9.js";
|
|
2
|
+
import { ad as or, T as nr, U as ir, Y as ur, ac as cr, aa as dr, ab as pr, ae as fr, a0 as vr, W as mr, a8 as hr, a5 as gr, R as br, a7 as yr, X as xr, I as _r, a2 as kr, a6 as wr, a9 as Cr, S as Sr, V as $r, af as Tr, H as Fr, a4 as Ir, ag as Er, $ as Dr, a1 as Pr, Z as Ur, al as Lr, ak as Mr, ah as Br, J as Nr, K as Or, ai as Rr, Q as Ar, aj as zr, N as Kr, a3 as Vr } from "./assets/modules/upload-template-Csccple9.js";
|
|
3
|
+
import { f as Bt, p as Ne } from "./assets/modules/file-upload-Bu6FkNjZ.js";
|
|
4
|
+
import { A as Yr, U as Wr } from "./assets/modules/file-upload-Bu6FkNjZ.js";
|
|
5
|
+
import { EnvConfig as Oe, isMicroApp as Nt } from "@skyfox2000/microbase";
|
|
6
|
+
import { FrontCache as fe, httpPost as Fe, ResStatus as Ie, SERVER_HOST as Ot, fieldMapping as ve } from "@skyfox2000/fapi";
|
|
7
|
+
import q from "vue-m-message";
|
|
8
|
+
import { defineComponent as T, createBlock as b, openBlock as f, withModifiers as ce, unref as r, useAttrs as oe, withCtx as h, createElementVNode as I, createVNode as S, mergeProps as L, renderSlot as D, normalizeClass as U, toDisplayString as M, createCommentVNode as C, ref as y, provide as Ee, watch as F, onMounted as ee, createTextVNode as O, inject as me, resolveDirective as ne, withDirectives as X, computed as Y, createElementBlock as w, normalizeStyle as De, createSlots as Xe, useSlots as Rt, Fragment as A, renderList as H, resolveDynamicComponent as At, onActivated as Pe, shallowRef as zt, onUnmounted as Kt, withKeys as Re } from "vue";
|
|
8
9
|
import "async-validator";
|
|
9
|
-
import
|
|
10
|
-
import { Popover as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import { d as
|
|
13
|
-
import { C as
|
|
14
|
-
import { c as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { a as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
21
|
-
import { _ as
|
|
22
|
-
const
|
|
10
|
+
import Ce from "dayjs";
|
|
11
|
+
import { Popover as Vt, theme as Ze, Drawer as jt, Space as de, Form as et, message as Yt, FormItem as tt, ConfigProvider as Ae, Popconfirm as Wt, Button as at, DropdownButton as qt, Menu as Ue, MenuItem as Le, Dropdown as Se, Checkbox as Ht, Table as lt, Tree as Qt, Cascader as Gt, DatePicker as Jt, Input as ue, InputPassword as Xt, InputNumber as Zt, RangePicker as ea, Textarea as ta, TimePicker as aa, Transfer as la, TreeSelect as ra, Upload as sa, Image as oa, LayoutContent as na } from "ant-design-vue";
|
|
12
|
+
import { VueDraggableNext as ia } from "vue-draggable-next";
|
|
13
|
+
import { d as ua } from "./assets/modules/uploadList-D8scq04c.js";
|
|
14
|
+
import { C as Hr, U as Qr, a as Gr, p as Jr } from "./assets/modules/uploadList-D8scq04c.js";
|
|
15
|
+
import { c as rt } from "./assets/modules/index-BysCt107.js";
|
|
16
|
+
import { _ as Zr, h as es, b as ts, a as as, d as ls, e as rs, g as ss, f as os, n as ns, p as is, t as us, v as cs } from "./assets/modules/index-BysCt107.js";
|
|
17
|
+
import { _ as W } from "./assets/modules/index-Ch3meKe4.js";
|
|
18
|
+
import { _ as K } from "./assets/modules/toolIcon-Dd58W0UM.js";
|
|
19
|
+
import { a as ps } from "./assets/modules/toolIcon-Dd58W0UM.js";
|
|
20
|
+
import { _ as vs, b as ms, c as hs, d as gs, e as bs, I as ys, f as xs, g as _s, a as ks } from "./assets/modules/menuTabs-BqLT-YbD.js";
|
|
21
|
+
import { _ as Cs } from "./assets/modules/index-BYVerdEw.js";
|
|
22
|
+
import { _ as te } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
23
|
+
const ze = (l, a, e, t = "remove") => {
|
|
23
24
|
if (!e)
|
|
24
|
-
if (
|
|
25
|
-
const
|
|
26
|
-
|
|
25
|
+
if (t === "disable") {
|
|
26
|
+
const o = a.component;
|
|
27
|
+
o ? o.props.disabled = !0 : (a.el, l.setAttribute("disabled", "disabled"), l.disabled = !0), l.classList.add("disabled");
|
|
27
28
|
} else {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
const
|
|
31
|
-
|
|
29
|
+
const o = document.createComment("No Permission"), n = l.parentNode;
|
|
30
|
+
if (n) {
|
|
31
|
+
const i = a.component;
|
|
32
|
+
i ? i.props.style = { display: "none" } : n.replaceChild(o, l);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
},
|
|
35
|
-
var
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
35
|
+
}, Ke = (l) => {
|
|
36
|
+
var i, p;
|
|
37
|
+
const a = $e(), { url: e, role: t, permit: o } = l;
|
|
38
|
+
if (ie(t) && ie(o))
|
|
38
39
|
return !0;
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
return
|
|
42
|
-
if (
|
|
43
|
-
let d = !1,
|
|
44
|
-
return
|
|
40
|
+
const n = e ?? ((p = (i = window.location.hash) == null ? void 0 : i.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
|
|
41
|
+
if (Oe.VITE_PERMISSION_MODE === "role")
|
|
42
|
+
return ie(t) ? !0 : a.hasRole(t);
|
|
43
|
+
if (Oe.VITE_PERMISSION_MODE === "permit") {
|
|
44
|
+
let d = !1, u = !1;
|
|
45
|
+
return ie(t) || (d = a.hasRole(t)), a.isAdmin() ? d : (ie(o) || (u = a.hasPermit(n, o)), d || u);
|
|
45
46
|
}
|
|
46
47
|
return !1;
|
|
47
|
-
},
|
|
48
|
-
mounted(l,
|
|
49
|
-
const
|
|
50
|
-
|
|
48
|
+
}, ca = {
|
|
49
|
+
mounted(l, a, e) {
|
|
50
|
+
const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = Ke(t);
|
|
51
|
+
ze(l, e, i, n);
|
|
51
52
|
},
|
|
52
|
-
updated(l,
|
|
53
|
-
const
|
|
54
|
-
|
|
53
|
+
updated(l, a, e) {
|
|
54
|
+
const t = a.value || {}, o = a.arg || "remove", n = t.behavior || o, i = Ke(t);
|
|
55
|
+
ze(l, e, i, n);
|
|
55
56
|
}
|
|
56
|
-
},
|
|
57
|
-
mounted: (l,
|
|
57
|
+
}, da = {
|
|
58
|
+
mounted: (l, a) => {
|
|
58
59
|
l.addEventListener("keydown", (e) => {
|
|
59
|
-
e.key === "Enter" &&
|
|
60
|
+
e.key === "Enter" && a.value();
|
|
60
61
|
});
|
|
61
62
|
},
|
|
62
63
|
unmounted: (l) => {
|
|
63
64
|
l.removeEventListener("keydown", () => {
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
|
-
},
|
|
67
|
-
auth:
|
|
68
|
-
submit:
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
}), l),
|
|
72
|
-
const e = l.find((
|
|
67
|
+
}, ke = {
|
|
68
|
+
auth: ca,
|
|
69
|
+
submit: da
|
|
70
|
+
}, Tl = (l, a) => ((a || Object.keys(ke)).forEach((t) => {
|
|
71
|
+
t in ke && l.directive(t, ke[t]);
|
|
72
|
+
}), l), ae = (l, a) => {
|
|
73
|
+
const e = l.find((t) => t.key === a);
|
|
73
74
|
if (e)
|
|
74
75
|
return e;
|
|
75
|
-
for (const
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
if (
|
|
79
|
-
return
|
|
76
|
+
for (const t of l)
|
|
77
|
+
if (t.children) {
|
|
78
|
+
const o = ae(t.children, a);
|
|
79
|
+
if (o)
|
|
80
|
+
return o;
|
|
80
81
|
}
|
|
81
|
-
},
|
|
82
|
-
const
|
|
83
|
-
return e || (e = [...l]), e.length && e.forEach((
|
|
82
|
+
}, Me = (l, a, e) => {
|
|
83
|
+
const t = [], o = [];
|
|
84
|
+
return e || (e = [...l]), e.length && e.forEach((n, i) => {
|
|
84
85
|
let p;
|
|
85
|
-
if (typeof
|
|
86
|
-
const d =
|
|
87
|
-
p = d ? { ...d } : { key:
|
|
86
|
+
if (typeof n == "string") {
|
|
87
|
+
const d = ae(l, n);
|
|
88
|
+
p = d ? { ...d } : { key: n, label: n };
|
|
88
89
|
} else {
|
|
89
|
-
const d =
|
|
90
|
-
p = d ? { ...d, ...
|
|
90
|
+
const d = ae(l, n.key);
|
|
91
|
+
p = d ? { ...d, ...n } : { ...n };
|
|
91
92
|
}
|
|
92
|
-
p.click || (p.click = (d,
|
|
93
|
-
|
|
93
|
+
p.click || (p.click = (d, u, v) => {
|
|
94
|
+
u && (u.rowData.value = v), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
|
|
94
95
|
p.formVisible.value = !0;
|
|
95
|
-
}, 1)) :
|
|
96
|
-
}),
|
|
97
|
-
}), { buttons:
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
switch (
|
|
96
|
+
}, 1)) : q.warning("未配置点击处理事件!");
|
|
97
|
+
}), a === 0 || i < a ? t.push(p) : o.push(p);
|
|
98
|
+
}), { buttons: t, menus: o };
|
|
99
|
+
}, le = (l, a) => l.disabled && typeof l.disabled == "function" ? l.disabled(a) : l.disabled, se = (l, a) => l.visible && typeof l.visible == "function" ? l.visible(a) : l.visible ?? !0, pa = (l, a) => {
|
|
100
|
+
a.reload.value = !0;
|
|
101
|
+
}, fa = (l, a) => {
|
|
102
|
+
a.searchBar.value = !a.searchBar.value;
|
|
103
|
+
}, va = (l, a) => {
|
|
104
|
+
switch (a.tableSize.value) {
|
|
104
105
|
case "large":
|
|
105
|
-
|
|
106
|
+
a.tableSize.value = "middle";
|
|
106
107
|
break;
|
|
107
108
|
case "middle":
|
|
108
|
-
|
|
109
|
+
a.tableSize.value = "small";
|
|
109
110
|
break;
|
|
110
111
|
case "small":
|
|
111
|
-
|
|
112
|
+
a.tableSize.value = "large";
|
|
112
113
|
break;
|
|
113
114
|
}
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
(!l.confirm ||
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
const l =
|
|
115
|
+
}, ma = (l, a) => {
|
|
116
|
+
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
117
|
+
}, ha = (l, a) => {
|
|
118
|
+
a.rowExpand.value = !a.rowExpand.value;
|
|
119
|
+
}, Ve = (l, a) => {
|
|
120
|
+
a.selectable.value = !a.selectable.value;
|
|
121
|
+
}, J = (l, a, e, t, o) => {
|
|
122
|
+
(!l.confirm || o) && l.click && (a ? l.click(a, e, t) : l.click(null, e, t)), ba(l);
|
|
123
|
+
}, ga = (l, a) => {
|
|
124
|
+
a.selectable.value = !a.selectable.value;
|
|
125
|
+
}, st = () => {
|
|
126
|
+
const l = Te();
|
|
126
127
|
l.setFullscreen(!l.fullscreen);
|
|
127
|
-
},
|
|
128
|
+
}, ba = (l, a) => {
|
|
128
129
|
(l.icons || l.labels) && (l.iconStatus = l.iconStatus || 0, l.iconStatus += 1, l.labels && l.labels.length && (l.label = l.labels[l.iconStatus % l.labels.length]), l.icons && l.icons.length && (l.icon = l.icons[l.iconStatus % l.icons.length]));
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
},
|
|
130
|
+
}, ya = (l, a) => {
|
|
131
|
+
a ? delete l.visible : l.visible = !1;
|
|
132
|
+
}, je = [
|
|
132
133
|
{
|
|
133
134
|
key: "Reload",
|
|
134
135
|
label: "刷新表格",
|
|
135
136
|
icon: "icon-reload",
|
|
136
|
-
click:
|
|
137
|
+
click: pa
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
key: "Query",
|
|
@@ -141,20 +142,20 @@ const $e = (l, t, e, a = "remove") => {
|
|
|
141
142
|
labels: ["展开搜索栏", "折叠搜索栏"],
|
|
142
143
|
icon: "icon-search",
|
|
143
144
|
iconStatus: 0,
|
|
144
|
-
click:
|
|
145
|
+
click: fa
|
|
145
146
|
},
|
|
146
147
|
{
|
|
147
148
|
key: "RowHeight",
|
|
148
149
|
label: "行高调整",
|
|
149
150
|
icon: "icon-row-height",
|
|
150
|
-
click:
|
|
151
|
+
click: va
|
|
151
152
|
},
|
|
152
153
|
{
|
|
153
154
|
key: "tool.multiple.checkbox",
|
|
154
155
|
label: "显示多选框",
|
|
155
156
|
labels: ["显示多选框", "隐藏多选框"],
|
|
156
157
|
icon: "icon-checkbox",
|
|
157
|
-
click:
|
|
158
|
+
click: ma
|
|
158
159
|
},
|
|
159
160
|
{
|
|
160
161
|
key: "tool.expand.rows",
|
|
@@ -163,7 +164,7 @@ const $e = (l, t, e, a = "remove") => {
|
|
|
163
164
|
icon: "icon-row-collapse",
|
|
164
165
|
iconStatus: 0,
|
|
165
166
|
icons: ["icon-row-collapse", "icon-row-expand"],
|
|
166
|
-
click:
|
|
167
|
+
click: ha
|
|
167
168
|
},
|
|
168
169
|
{
|
|
169
170
|
key: "tool.export.excel",
|
|
@@ -173,12 +174,12 @@ const $e = (l, t, e, a = "remove") => {
|
|
|
173
174
|
{
|
|
174
175
|
key: "tool.export.excel.all",
|
|
175
176
|
label: "全部记录",
|
|
176
|
-
click:
|
|
177
|
+
click: Ve
|
|
177
178
|
},
|
|
178
179
|
{
|
|
179
180
|
key: "tool.export.excel.selected",
|
|
180
181
|
label: "选中的记录",
|
|
181
|
-
click:
|
|
182
|
+
click: Ve
|
|
182
183
|
}
|
|
183
184
|
]
|
|
184
185
|
},
|
|
@@ -190,7 +191,7 @@ const $e = (l, t, e, a = "remove") => {
|
|
|
190
191
|
{
|
|
191
192
|
key: "tool.export.pdf.selected",
|
|
192
193
|
label: "选中的记录",
|
|
193
|
-
click:
|
|
194
|
+
click: ga
|
|
194
195
|
}
|
|
195
196
|
]
|
|
196
197
|
},
|
|
@@ -210,76 +211,76 @@ const $e = (l, t, e, a = "remove") => {
|
|
|
210
211
|
icon: "icon-fullscreen",
|
|
211
212
|
iconStatus: 0,
|
|
212
213
|
icons: ["icon-fullscreen", "icon-exitscreen"],
|
|
213
|
-
click:
|
|
214
|
+
click: st
|
|
214
215
|
}
|
|
215
|
-
],
|
|
216
|
+
], xa = (l) => {
|
|
216
217
|
if (!l.tools || l.tools.length > 0) {
|
|
217
|
-
const
|
|
218
|
-
return l.tools ?
|
|
218
|
+
const a = [];
|
|
219
|
+
return l.tools ? a.push(...l.tools) : a.push(...je), { tools: Me(je, 0, a).buttons };
|
|
219
220
|
}
|
|
220
221
|
return {
|
|
221
222
|
tools: []
|
|
222
223
|
};
|
|
223
224
|
};
|
|
224
|
-
var
|
|
225
|
-
class
|
|
225
|
+
var _a = /* @__PURE__ */ ((l) => (l.SYS_CONFIG = "SYS_CONFIG_", l.APP_MENU = "APP_MENU_", l.DICT_TYPE = "DICT_TYPE_", l.HOST_INFO = "HOST_INFO_", l.APP_PERMITS = "APP_PERMITS_", l.USER_SETTINGS = "USER_SETTINGS_", l.DICT_DATA = "DICT_DATA_", l.COMMON_OPTIONS = "COMMON_OPTIONS_", l))(_a || {});
|
|
226
|
+
class ot {
|
|
226
227
|
/**
|
|
227
228
|
* 设置缓存数据(带服务器时间)
|
|
228
229
|
*/
|
|
229
|
-
static setWithServerTime(
|
|
230
|
-
const
|
|
230
|
+
static setWithServerTime(a, e, t) {
|
|
231
|
+
const o = {
|
|
231
232
|
data: e,
|
|
232
|
-
lastTime:
|
|
233
|
+
lastTime: t
|
|
233
234
|
};
|
|
234
|
-
|
|
235
|
+
fe.set({ key: a, storage: "local" }, o);
|
|
235
236
|
}
|
|
236
237
|
/**
|
|
237
238
|
* 设置缓存数据
|
|
238
239
|
*/
|
|
239
|
-
static setData(
|
|
240
|
-
|
|
240
|
+
static setData(a, e) {
|
|
241
|
+
fe.set({ key: a, storage: "local" }, e);
|
|
241
242
|
}
|
|
242
243
|
/**
|
|
243
244
|
* 获取缓存数据
|
|
244
245
|
*/
|
|
245
|
-
static getData(
|
|
246
|
-
const e =
|
|
247
|
-
return e &&
|
|
246
|
+
static getData(a) {
|
|
247
|
+
const e = fe.get({ key: a, storage: "local" });
|
|
248
|
+
return e && ot.isTimedData(e) ? e.data : e ?? null;
|
|
248
249
|
}
|
|
249
250
|
/**
|
|
250
251
|
* 清除缓存
|
|
251
252
|
*/
|
|
252
|
-
static remove(
|
|
253
|
-
|
|
253
|
+
static remove(a) {
|
|
254
|
+
fe.remove({ key: a, storage: "local" });
|
|
254
255
|
}
|
|
255
256
|
/**
|
|
256
257
|
* 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
|
|
257
258
|
*/
|
|
258
|
-
static clearByPrefix(
|
|
259
|
+
static clearByPrefix(a) {
|
|
259
260
|
for (let e = 0; e < localStorage.length; e++) {
|
|
260
|
-
const
|
|
261
|
-
|
|
261
|
+
const t = localStorage.key(e);
|
|
262
|
+
t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
265
|
/**
|
|
265
266
|
* 清理所有缓存
|
|
266
267
|
*/
|
|
267
268
|
static clearAll() {
|
|
268
|
-
for (let
|
|
269
|
-
const e = localStorage.key(
|
|
269
|
+
for (let a = localStorage.length - 1; a >= 0; a--) {
|
|
270
|
+
const e = localStorage.key(a);
|
|
270
271
|
e && e.startsWith("frontCache::") && localStorage.removeItem(e);
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
274
|
/**
|
|
274
275
|
* 判断是否是带时间戳的数据
|
|
275
276
|
*/
|
|
276
|
-
static isTimedData(
|
|
277
|
-
return
|
|
277
|
+
static isTimedData(a) {
|
|
278
|
+
return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
|
|
278
279
|
}
|
|
279
280
|
}
|
|
280
|
-
async function
|
|
281
|
+
async function Fl() {
|
|
281
282
|
try {
|
|
282
|
-
const l = await
|
|
283
|
+
const l = await Fe(
|
|
283
284
|
{
|
|
284
285
|
api: "PLATFORM_API",
|
|
285
286
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -287,18 +288,18 @@ async function tl() {
|
|
|
287
288
|
},
|
|
288
289
|
{}
|
|
289
290
|
);
|
|
290
|
-
if ((l == null ? void 0 : l.status) ===
|
|
291
|
-
const
|
|
292
|
-
Object.keys(
|
|
293
|
-
const
|
|
294
|
-
["local", "session"].forEach((
|
|
295
|
-
const
|
|
296
|
-
for (let p = 0; p <
|
|
297
|
-
const d =
|
|
291
|
+
if ((l == null ? void 0 : l.status) === Ie.SUCCESS) {
|
|
292
|
+
const a = l.data;
|
|
293
|
+
Object.keys(a).forEach((e) => {
|
|
294
|
+
const t = a[e];
|
|
295
|
+
["local", "session"].forEach((n) => {
|
|
296
|
+
const i = n === "local" ? localStorage : sessionStorage;
|
|
297
|
+
for (let p = 0; p < i.length; p++) {
|
|
298
|
+
const d = i.key(p);
|
|
298
299
|
if (d && d.endsWith(e))
|
|
299
300
|
try {
|
|
300
|
-
const
|
|
301
|
-
|
|
301
|
+
const u = JSON.parse(i.getItem(d));
|
|
302
|
+
u && typeof u == "object" && "lastTime" in u && typeof u.lastTime == "number" && u.lastTime !== t && i.removeItem(d);
|
|
302
303
|
} catch {
|
|
303
304
|
continue;
|
|
304
305
|
}
|
|
@@ -310,8 +311,8 @@ async function tl() {
|
|
|
310
311
|
console.error("检查缓存更新失败", l);
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
|
-
const
|
|
314
|
-
const e = await
|
|
314
|
+
const Il = async (l, a) => {
|
|
315
|
+
const e = await rt(l, a);
|
|
315
316
|
if (e.success)
|
|
316
317
|
return {
|
|
317
318
|
blobUrl: e.blobUrl,
|
|
@@ -320,15 +321,15 @@ const ll = async (l, t) => {
|
|
|
320
321
|
// 不再返回blob对象,使用URL即可
|
|
321
322
|
};
|
|
322
323
|
throw new Error(e.error || "CSV转Excel失败");
|
|
323
|
-
},
|
|
324
|
+
}, El = async (l, a) => {
|
|
324
325
|
try {
|
|
325
|
-
const
|
|
326
|
+
const t = new TextDecoder("utf-8").decode(l), o = await rt(t, a);
|
|
326
327
|
return {
|
|
327
|
-
success:
|
|
328
|
-
blobUrl:
|
|
329
|
-
fileName:
|
|
330
|
-
error:
|
|
331
|
-
csvContent:
|
|
328
|
+
success: o.success,
|
|
329
|
+
blobUrl: o.blobUrl,
|
|
330
|
+
fileName: o.fileName,
|
|
331
|
+
error: o.error,
|
|
332
|
+
csvContent: t
|
|
332
333
|
// 保留原始CSV内容
|
|
333
334
|
};
|
|
334
335
|
} catch (e) {
|
|
@@ -337,67 +338,67 @@ const ll = async (l, t) => {
|
|
|
337
338
|
error: e instanceof Error ? e.message : "未知错误"
|
|
338
339
|
};
|
|
339
340
|
}
|
|
340
|
-
},
|
|
341
|
-
label:
|
|
342
|
-
value:
|
|
343
|
-
})),
|
|
344
|
-
const
|
|
345
|
-
return
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
text: e[
|
|
341
|
+
}, nt = (l) => l ? Array.isArray(l) ? l.join(".") : l : "", it = (l) => l.map((a) => ({
|
|
342
|
+
label: a.title,
|
|
343
|
+
value: nt(a.dataIndex) || a.key || ""
|
|
344
|
+
})), ut = (l, a) => l.map((e, t) => {
|
|
345
|
+
const o = { ...e };
|
|
346
|
+
return a.forEach((n) => {
|
|
347
|
+
const i = nt(n.dataIndex) || n.key;
|
|
348
|
+
i && n.customRender && (o[i] = n.customRender({
|
|
349
|
+
text: e[i],
|
|
349
350
|
record: e,
|
|
350
|
-
index:
|
|
351
|
-
column:
|
|
351
|
+
index: t,
|
|
352
|
+
column: n
|
|
352
353
|
}));
|
|
353
|
-
}),
|
|
354
|
-
}),
|
|
354
|
+
}), o;
|
|
355
|
+
}), ct = async (l, a, e) => {
|
|
355
356
|
try {
|
|
356
|
-
const
|
|
357
|
-
|
|
358
|
-
} catch (
|
|
359
|
-
console.error("导出失败:",
|
|
357
|
+
const o = (await import("@json2csv/plainjs")).Parser, i = new o({ fields: a }).parse(e), p = new Blob([`\uFEFF${i}`], { type: "text/csv" });
|
|
358
|
+
ua(p, l);
|
|
359
|
+
} catch (t) {
|
|
360
|
+
console.error("导出失败:", t), q.error("文件导出失败,请稍后重试");
|
|
360
361
|
}
|
|
361
|
-
},
|
|
362
|
+
}, Dl = async (l, a, e) => {
|
|
362
363
|
try {
|
|
363
|
-
const
|
|
364
|
-
await
|
|
365
|
-
} catch (
|
|
366
|
-
console.error("导出失败:",
|
|
364
|
+
const t = dt(l), o = a.filter((p) => p.visible !== !1 && p.export !== !1), n = it(o), i = ut(e, o);
|
|
365
|
+
await ct(t, n, i);
|
|
366
|
+
} catch (t) {
|
|
367
|
+
console.error("导出失败:", t), q.error("文件导出失败,请稍后重试");
|
|
367
368
|
}
|
|
368
|
-
},
|
|
369
|
-
const
|
|
370
|
-
return l.replace(
|
|
371
|
-
},
|
|
369
|
+
}, dt = (l) => {
|
|
370
|
+
const a = /\{([^}]+)\}/g;
|
|
371
|
+
return l.replace(a, (e, t) => Ce().format(t));
|
|
372
|
+
}, Pl = async (l, a, e, t) => {
|
|
372
373
|
try {
|
|
373
|
-
const
|
|
374
|
+
const o = dt(l), n = a.filter((u) => u.visible !== !1), i = it(n);
|
|
374
375
|
let p = e.page, d = e.gridQuery;
|
|
375
|
-
return
|
|
376
|
-
if (e.isGridLoading.value = !1, (
|
|
377
|
-
if (
|
|
378
|
-
let
|
|
379
|
-
const
|
|
380
|
-
await
|
|
376
|
+
return t.api || (t.api = p.api), t.authorize === void 0 && (t.authorize = p.authorize), e.isGridLoading.value = !0, Fe(t, d).then(async (u) => {
|
|
377
|
+
if (e.isGridLoading.value = !1, (u == null ? void 0 : u.status) === Ie.SUCCESS) {
|
|
378
|
+
if (u.data) {
|
|
379
|
+
let v = u.data;
|
|
380
|
+
const s = ut(v, n);
|
|
381
|
+
await ct(o, i, s);
|
|
381
382
|
}
|
|
382
|
-
} else if ((
|
|
383
|
-
|
|
383
|
+
} else if ((u == null ? void 0 : u.errno) == ft) {
|
|
384
|
+
$e().logout(!1);
|
|
384
385
|
return;
|
|
385
386
|
}
|
|
386
387
|
});
|
|
387
|
-
} catch (
|
|
388
|
-
console.error("导出失败:",
|
|
388
|
+
} catch (o) {
|
|
389
|
+
console.error("导出失败:", o), q.error("文件导出失败,请稍后重试");
|
|
389
390
|
}
|
|
390
|
-
},
|
|
391
|
+
}, Ul = /* @__PURE__ */ T({
|
|
391
392
|
__name: "fullscreen",
|
|
392
393
|
setup(l) {
|
|
393
|
-
const
|
|
394
|
-
return (e,
|
|
395
|
-
onClick:
|
|
396
|
-
icon: r(
|
|
394
|
+
const a = Te();
|
|
395
|
+
return (e, t) => (f(), b(K, {
|
|
396
|
+
onClick: ce(r(st), ["stop"]),
|
|
397
|
+
icon: r(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
397
398
|
class: "w-[17px] h-[17px]"
|
|
398
399
|
}, null, 8, ["onClick", "icon"]));
|
|
399
400
|
}
|
|
400
|
-
}),
|
|
401
|
+
}), ka = { class: "ml-2" }, wa = /* @__PURE__ */ T({
|
|
401
402
|
inheritAttrs: !1,
|
|
402
403
|
__name: "helper",
|
|
403
404
|
props: {
|
|
@@ -407,29 +408,29 @@ const ll = async (l, t) => {
|
|
|
407
408
|
placement: {}
|
|
408
409
|
},
|
|
409
410
|
setup(l) {
|
|
410
|
-
const
|
|
411
|
-
return (e,
|
|
411
|
+
const a = oe();
|
|
412
|
+
return (e, t) => (f(), b(r(Vt), {
|
|
412
413
|
placement: e.placement ?? "topRight"
|
|
413
414
|
}, {
|
|
414
415
|
content: h(() => [
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
class:
|
|
418
|
-
},
|
|
416
|
+
D(e.$slots, "default", {}, () => [
|
|
417
|
+
I("div", {
|
|
418
|
+
class: U(["text-[14px]", [e.maxWidth]])
|
|
419
|
+
}, M(e.text), 3)
|
|
419
420
|
])
|
|
420
421
|
]),
|
|
421
422
|
default: h(() => [
|
|
422
|
-
|
|
423
|
-
|
|
423
|
+
I("span", ka, [
|
|
424
|
+
S(K, L({
|
|
424
425
|
icon: "icon-question-circle",
|
|
425
426
|
class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
|
|
426
|
-
}, r(
|
|
427
|
+
}, r(a)), null, 16, ["class"])
|
|
427
428
|
])
|
|
428
429
|
]),
|
|
429
430
|
_: 3
|
|
430
431
|
}, 8, ["placement"]));
|
|
431
432
|
}
|
|
432
|
-
}),
|
|
433
|
+
}), Ll = /* @__PURE__ */ T({
|
|
433
434
|
__name: "layoutIcon",
|
|
434
435
|
props: {
|
|
435
436
|
icon: {
|
|
@@ -440,20 +441,20 @@ const ll = async (l, t) => {
|
|
|
440
441
|
}
|
|
441
442
|
},
|
|
442
443
|
setup(l) {
|
|
443
|
-
const
|
|
444
|
-
iconUrl: `${
|
|
444
|
+
const a = l, t = vt({
|
|
445
|
+
iconUrl: `${Ot.MICROLAYOUT_ICONS}`,
|
|
445
446
|
monoColor: !0,
|
|
446
|
-
icon:
|
|
447
|
-
icons:
|
|
447
|
+
icon: a.icon,
|
|
448
|
+
icons: a.icons
|
|
448
449
|
});
|
|
449
|
-
return (
|
|
450
|
+
return (o, n) => l.icon || l.icons ? (f(), b(r(t), L({
|
|
450
451
|
key: 0,
|
|
451
452
|
icon: l.icon,
|
|
452
453
|
icons: l.icons,
|
|
453
454
|
class: ["align-middle"]
|
|
454
|
-
},
|
|
455
|
+
}, o.$attrs), null, 16, ["icon", "icons"])) : C("", !0);
|
|
455
456
|
}
|
|
456
|
-
}),
|
|
457
|
+
}), Ca = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, Ml = /* @__PURE__ */ T({
|
|
457
458
|
__name: "index",
|
|
458
459
|
props: {
|
|
459
460
|
saveText: {},
|
|
@@ -464,25 +465,25 @@ const ll = async (l, t) => {
|
|
|
464
465
|
drawerSaveAs: { type: Function }
|
|
465
466
|
},
|
|
466
467
|
setup(l) {
|
|
467
|
-
const { useToken:
|
|
468
|
-
|
|
469
|
-
() =>
|
|
470
|
-
(
|
|
471
|
-
|
|
468
|
+
const { useToken: a } = Ze, { token: e } = a(), t = y(!1), o = l, n = o.editorCtrl;
|
|
469
|
+
Ee(re.EditorControl, n), F(
|
|
470
|
+
() => n.visible.value,
|
|
471
|
+
(u) => {
|
|
472
|
+
t.value = u ?? !1;
|
|
472
473
|
}
|
|
473
|
-
),
|
|
474
|
-
|
|
474
|
+
), ee(() => {
|
|
475
|
+
t.value = n.visible.value ?? !1;
|
|
475
476
|
});
|
|
476
|
-
const
|
|
477
|
-
|
|
477
|
+
const i = () => {
|
|
478
|
+
o.drawerSave ? o.drawerSave() : n && Ye(n);
|
|
478
479
|
}, p = () => {
|
|
479
|
-
|
|
480
|
+
o.drawerSaveAs ? o.drawerSaveAs() : n && mt(n);
|
|
480
481
|
}, d = () => {
|
|
481
|
-
|
|
482
|
+
ht(n);
|
|
482
483
|
};
|
|
483
|
-
return (
|
|
484
|
-
open:
|
|
485
|
-
"onUpdate:open":
|
|
484
|
+
return (u, v) => (f(), b(r(jt), {
|
|
485
|
+
open: t.value,
|
|
486
|
+
"onUpdate:open": v[0] || (v[0] = (s) => t.value = s),
|
|
486
487
|
"get-container": !1,
|
|
487
488
|
closable: !1,
|
|
488
489
|
"header-style": {
|
|
@@ -504,9 +505,9 @@ const ll = async (l, t) => {
|
|
|
504
505
|
onClose: d
|
|
505
506
|
}, {
|
|
506
507
|
extra: h(() => [
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
508
|
+
D(u.$slots, "extra", {}, () => [
|
|
509
|
+
I("div", Ca, [
|
|
510
|
+
S(r(K), {
|
|
510
511
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
511
512
|
icon: "icon-new",
|
|
512
513
|
angle: 45,
|
|
@@ -520,43 +521,43 @@ const ll = async (l, t) => {
|
|
|
520
521
|
])
|
|
521
522
|
]),
|
|
522
523
|
default: h(() => [
|
|
523
|
-
|
|
524
|
+
D(u.$slots, "default")
|
|
524
525
|
]),
|
|
525
526
|
footer: h(() => [
|
|
526
|
-
|
|
527
|
-
|
|
527
|
+
D(u.$slots, "footer", {}, () => [
|
|
528
|
+
S(r(de), null, {
|
|
528
529
|
default: h(() => [
|
|
529
|
-
|
|
530
|
+
u.cancelText !== "" ? (f(), b(r(W), {
|
|
530
531
|
key: 0,
|
|
531
532
|
onClick: d
|
|
532
533
|
}, {
|
|
533
534
|
default: h(() => [
|
|
534
|
-
|
|
535
|
+
O(M(u.cancelText ?? "取消"), 1)
|
|
535
536
|
]),
|
|
536
537
|
_: 1
|
|
537
|
-
})) :
|
|
538
|
-
|
|
538
|
+
})) : C("", !0),
|
|
539
|
+
u.saveAsText !== "" && r(n).saveAsBtnVisible !== !1 ? (f(), b(r(W), {
|
|
539
540
|
key: 1,
|
|
540
541
|
onClick: p,
|
|
541
542
|
type: "primary",
|
|
542
|
-
loading: r(
|
|
543
|
+
loading: r(n).isFormSaving.value
|
|
543
544
|
}, {
|
|
544
545
|
default: h(() => [
|
|
545
|
-
|
|
546
|
+
O(M(u.saveAsText ?? "另存为"), 1)
|
|
546
547
|
]),
|
|
547
548
|
_: 1
|
|
548
|
-
}, 8, ["loading"])) :
|
|
549
|
-
|
|
549
|
+
}, 8, ["loading"])) : C("", !0),
|
|
550
|
+
u.saveText !== "" && r(n).saveBtnVisible !== !1 ? (f(), b(r(W), {
|
|
550
551
|
key: 2,
|
|
551
|
-
onClick:
|
|
552
|
+
onClick: i,
|
|
552
553
|
type: "primary",
|
|
553
|
-
loading: r(
|
|
554
|
+
loading: r(n).isFormSaving.value
|
|
554
555
|
}, {
|
|
555
556
|
default: h(() => [
|
|
556
|
-
|
|
557
|
+
O(M(u.saveText ?? "保存"), 1)
|
|
557
558
|
]),
|
|
558
559
|
_: 1
|
|
559
|
-
}, 8, ["loading"])) :
|
|
560
|
+
}, 8, ["loading"])) : C("", !0)
|
|
560
561
|
]),
|
|
561
562
|
_: 1
|
|
562
563
|
})
|
|
@@ -565,7 +566,7 @@ const ll = async (l, t) => {
|
|
|
565
566
|
_: 3
|
|
566
567
|
}, 8, ["open", "header-style"]));
|
|
567
568
|
}
|
|
568
|
-
}),
|
|
569
|
+
}), Bl = /* @__PURE__ */ T({
|
|
569
570
|
__name: "index",
|
|
570
571
|
props: {
|
|
571
572
|
labelWidth: {},
|
|
@@ -573,13 +574,13 @@ const ll = async (l, t) => {
|
|
|
573
574
|
editorCtrl: {}
|
|
574
575
|
},
|
|
575
576
|
setup(l) {
|
|
576
|
-
const
|
|
577
|
-
return
|
|
578
|
-
const
|
|
579
|
-
return
|
|
580
|
-
"label-col": { flex:
|
|
577
|
+
const a = l, e = a.editorCtrl ?? me(re.EditorControl, void 0);
|
|
578
|
+
return Ee(re.LabelWidth, a.labelWidth), (t, o) => {
|
|
579
|
+
const n = ne("submit");
|
|
580
|
+
return X((f(), b(r(et), {
|
|
581
|
+
"label-col": { flex: a.labelWidth ?? "85px" },
|
|
581
582
|
"wrapper-col": {
|
|
582
|
-
flex:
|
|
583
|
+
flex: a.wrapperWidth ?? "1 0 280px"
|
|
583
584
|
},
|
|
584
585
|
style: {
|
|
585
586
|
display: "flex",
|
|
@@ -587,23 +588,23 @@ const ll = async (l, t) => {
|
|
|
587
588
|
}
|
|
588
589
|
}, {
|
|
589
590
|
default: h(() => [
|
|
590
|
-
|
|
591
|
+
D(t.$slots, "default")
|
|
591
592
|
]),
|
|
592
593
|
_: 3
|
|
593
594
|
}, 8, ["label-col", "wrapper-col"])), [
|
|
594
595
|
[
|
|
595
|
-
|
|
596
|
+
n,
|
|
596
597
|
() => {
|
|
597
|
-
r(e) && r(
|
|
598
|
+
r(e) && r(Ye)(r(e));
|
|
598
599
|
}
|
|
599
600
|
]
|
|
600
601
|
]);
|
|
601
602
|
};
|
|
602
603
|
}
|
|
603
|
-
}),
|
|
604
|
+
}), Sa = {
|
|
604
605
|
key: 0,
|
|
605
606
|
class: "flex-grow"
|
|
606
|
-
},
|
|
607
|
+
}, $a = { class: "w-8 mt-[-2px]" }, Nl = /* @__PURE__ */ T({
|
|
607
608
|
inheritAttrs: !1,
|
|
608
609
|
__name: "formItem",
|
|
609
610
|
props: {
|
|
@@ -615,66 +616,66 @@ const ll = async (l, t) => {
|
|
|
615
616
|
bottomMargin: {}
|
|
616
617
|
},
|
|
617
618
|
setup(l) {
|
|
618
|
-
const
|
|
619
|
+
const a = l, e = oe(), t = me(re.EditorControl, void 0), o = me(re.LabelWidth, "85px") ?? "85px", n = We(a, t), i = y(!1);
|
|
619
620
|
setTimeout(() => {
|
|
620
|
-
|
|
621
|
+
i.value = !0;
|
|
621
622
|
}, 30);
|
|
622
|
-
const p =
|
|
623
|
-
var
|
|
624
|
-
if (!
|
|
623
|
+
const p = Y(() => {
|
|
624
|
+
var u;
|
|
625
|
+
if (!a.rule)
|
|
625
626
|
return !1;
|
|
626
|
-
const d =
|
|
627
|
-
return d ? (d.required || (
|
|
627
|
+
const d = qe(a.rule.split("."), (u = t == null ? void 0 : t.formRules) == null ? void 0 : u.value);
|
|
628
|
+
return d ? (d.required || (n.value.errClass = "", n.value.msg = ""), d.required ?? !0) : (Yt.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), n.value.errClass = "text-[#ff4d4f]", n.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
|
|
628
629
|
});
|
|
629
|
-
return (d,
|
|
630
|
-
class:
|
|
630
|
+
return (d, u) => (f(), w("div", {
|
|
631
|
+
class: U(["relative", d.bottomMargin ? d.bottomMargin : "mb-1"])
|
|
631
632
|
}, [
|
|
632
|
-
|
|
633
|
+
i.value ? (f(), b(r(tt), L({
|
|
633
634
|
key: 0,
|
|
634
635
|
required: p.value,
|
|
635
636
|
class: ["relative", [d.nextLine ? "mb-0" : d.rule ? "" : "mb-3"]]
|
|
636
637
|
}, r(e)), {
|
|
637
638
|
label: h(() => [
|
|
638
|
-
|
|
639
|
-
class:
|
|
640
|
-
},
|
|
639
|
+
I("span", {
|
|
640
|
+
class: U([r(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
641
|
+
}, M(d.label), 3)
|
|
641
642
|
]),
|
|
642
643
|
default: h(() => [
|
|
643
|
-
|
|
644
|
-
class:
|
|
644
|
+
I("div", {
|
|
645
|
+
class: U(["flex items-center", d.width ? d.width : "w-full"])
|
|
645
646
|
}, [
|
|
646
|
-
d.nextLine ?
|
|
647
|
-
|
|
647
|
+
d.nextLine ? C("", !0) : (f(), w("div", Sa, [
|
|
648
|
+
D(d.$slots, "default")
|
|
648
649
|
])),
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
d.helper ? (
|
|
650
|
+
I("div", $a, [
|
|
651
|
+
D(d.$slots, "helper", {}, () => [
|
|
652
|
+
d.helper ? (f(), b(r(wa), {
|
|
652
653
|
key: 0,
|
|
653
654
|
text: d.helper
|
|
654
|
-
}, null, 8, ["text"])) :
|
|
655
|
+
}, null, 8, ["text"])) : C("", !0)
|
|
655
656
|
])
|
|
656
657
|
])
|
|
657
658
|
], 2)
|
|
658
659
|
]),
|
|
659
660
|
_: 3
|
|
660
|
-
}, 16, ["required", "class"])) :
|
|
661
|
-
d.nextLine ? (
|
|
661
|
+
}, 16, ["required", "class"])) : C("", !0),
|
|
662
|
+
d.nextLine ? (f(), w("div", {
|
|
662
663
|
key: 1,
|
|
663
|
-
class:
|
|
664
|
+
class: U(["w-[95%] flex items-center relative", [d.nextLine ? d.rule ? "mb-7" : "mb-3" : ""]])
|
|
664
665
|
}, [
|
|
665
|
-
|
|
666
|
-
], 2)) :
|
|
667
|
-
r(
|
|
666
|
+
D(d.$slots, "default")
|
|
667
|
+
], 2)) : C("", !0),
|
|
668
|
+
r(n).errClass ? (f(), w("span", {
|
|
668
669
|
key: 2,
|
|
669
|
-
style:
|
|
670
|
+
style: De({ left: d.nextLine ? "2px" : r(o) }),
|
|
670
671
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
671
|
-
},
|
|
672
|
+
}, M(r(n).msg), 5)) : C("", !0)
|
|
672
673
|
], 2));
|
|
673
674
|
}
|
|
674
|
-
}),
|
|
675
|
+
}), Ta = { class: "w-1/3 relative mb-1" }, Fa = { class: "flex items-center w-[90%]" }, Ia = { class: "flex-grow pl-1" }, Ea = {
|
|
675
676
|
key: 0,
|
|
676
677
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
677
|
-
},
|
|
678
|
+
}, we = /* @__PURE__ */ T({
|
|
678
679
|
inheritAttrs: !1,
|
|
679
680
|
__name: "searchItem",
|
|
680
681
|
props: {
|
|
@@ -683,44 +684,44 @@ const ll = async (l, t) => {
|
|
|
683
684
|
rule: {}
|
|
684
685
|
},
|
|
685
686
|
setup(l) {
|
|
686
|
-
const
|
|
687
|
+
const a = l, e = oe(), t = me(re.EditorControl, void 0), o = We(a, t), n = Y(() => {
|
|
687
688
|
var p;
|
|
688
|
-
if (!
|
|
689
|
+
if (!a.rule)
|
|
689
690
|
return !1;
|
|
690
|
-
const
|
|
691
|
-
return
|
|
691
|
+
const i = qe(a.rule.split("."), (p = t == null ? void 0 : t.formRules) == null ? void 0 : p.value);
|
|
692
|
+
return i ? (i.required || (o.value.errClass = "", o.value.msg = ""), i.required ?? !0) : (q.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), o.value.errClass = "text-[#ff4d4f]", o.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
|
|
692
693
|
});
|
|
693
|
-
return (
|
|
694
|
-
|
|
695
|
-
required:
|
|
694
|
+
return (i, p) => (f(), w("div", Ta, [
|
|
695
|
+
S(r(tt), L({
|
|
696
|
+
required: n.value,
|
|
696
697
|
class: "w-[90%] relative"
|
|
697
698
|
}, r(e), {
|
|
698
|
-
class: [
|
|
699
|
+
class: [i.rule ? "" : "mb-3", i.width],
|
|
699
700
|
labelCol: { span: 6 }
|
|
700
|
-
}),
|
|
701
|
+
}), Xe({
|
|
701
702
|
default: h(() => [
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
I("div", Fa, [
|
|
704
|
+
I("div", Ia, [
|
|
705
|
+
D(i.$slots, "default")
|
|
705
706
|
])
|
|
706
707
|
])
|
|
707
708
|
]),
|
|
708
709
|
_: 2
|
|
709
710
|
}, [
|
|
710
|
-
|
|
711
|
+
i.label ? {
|
|
711
712
|
name: "label",
|
|
712
713
|
fn: h(() => [
|
|
713
|
-
|
|
714
|
-
class:
|
|
715
|
-
},
|
|
714
|
+
I("span", {
|
|
715
|
+
class: U([r(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
716
|
+
}, M(i.label), 3)
|
|
716
717
|
]),
|
|
717
718
|
key: "0"
|
|
718
719
|
} : void 0
|
|
719
720
|
]), 1040, ["required", "class"]),
|
|
720
|
-
r(
|
|
721
|
+
r(o).msg ? (f(), w("span", Ea, M(r(o).msg), 1)) : C("", !0)
|
|
721
722
|
]));
|
|
722
723
|
}
|
|
723
|
-
}),
|
|
724
|
+
}), Ol = /* @__PURE__ */ T({
|
|
724
725
|
__name: "index",
|
|
725
726
|
props: {
|
|
726
727
|
search: {},
|
|
@@ -728,28 +729,28 @@ const ll = async (l, t) => {
|
|
|
728
729
|
likeFields: {}
|
|
729
730
|
},
|
|
730
731
|
emits: ["update:search", "onsearch", "onreset"],
|
|
731
|
-
setup(l, { emit:
|
|
732
|
-
const e = l,
|
|
732
|
+
setup(l, { emit: a }) {
|
|
733
|
+
const e = l, t = a, o = y(0), n = y(0), i = y(0), p = (c) => {
|
|
733
734
|
let g = 0;
|
|
734
|
-
for (let
|
|
735
|
-
typeof c[
|
|
735
|
+
for (let $ = 0; $ < c.length; $++)
|
|
736
|
+
typeof c[$].type == "object" && g++;
|
|
736
737
|
return g;
|
|
737
|
-
}, d =
|
|
738
|
-
|
|
738
|
+
}, d = Rt(), u = () => {
|
|
739
|
+
n.value = 0, i.value = 0, d.default && (n.value = p(d.default({}))), e.gridCtrl && e.gridCtrl.searchBar && d.control && (i.value = p(d.control({}))), o.value = 2 - (n.value + i.value) % 3;
|
|
739
740
|
};
|
|
740
|
-
|
|
741
|
+
F(
|
|
741
742
|
() => {
|
|
742
743
|
var c;
|
|
743
744
|
return (c = e.gridCtrl) == null ? void 0 : c.searchBar;
|
|
744
745
|
},
|
|
745
746
|
() => {
|
|
746
|
-
|
|
747
|
+
u();
|
|
747
748
|
}
|
|
748
749
|
);
|
|
749
|
-
const
|
|
750
|
-
|
|
750
|
+
const v = JSON.parse(JSON.stringify(e.search));
|
|
751
|
+
ee(() => {
|
|
751
752
|
var g;
|
|
752
|
-
|
|
753
|
+
u();
|
|
753
754
|
let c = { ...e.search };
|
|
754
755
|
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
755
756
|
...e.gridCtrl.gridQuery,
|
|
@@ -759,28 +760,28 @@ const ll = async (l, t) => {
|
|
|
759
760
|
}
|
|
760
761
|
});
|
|
761
762
|
});
|
|
762
|
-
const
|
|
763
|
+
const s = () => {
|
|
763
764
|
var g;
|
|
764
765
|
let c = { ...e.search };
|
|
765
766
|
if (e.likeFields)
|
|
766
|
-
for (const
|
|
767
|
-
c[
|
|
767
|
+
for (const $ of e.likeFields)
|
|
768
|
+
c[$] && (c[$] = { $like: "%" + c[$] + "%" });
|
|
768
769
|
e.gridCtrl && (e.gridCtrl.gridQuery = {
|
|
769
770
|
...e.gridCtrl.gridQuery,
|
|
770
771
|
Query: {
|
|
771
772
|
...(g = e.gridCtrl.gridQuery) == null ? void 0 : g.Query,
|
|
772
773
|
...c
|
|
773
774
|
}
|
|
774
|
-
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0),
|
|
775
|
+
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0), t("onsearch", c);
|
|
775
776
|
}, m = () => {
|
|
776
|
-
const c = JSON.parse(JSON.stringify(
|
|
777
|
+
const c = JSON.parse(JSON.stringify(v));
|
|
777
778
|
for (const g in e.search)
|
|
778
779
|
c[g] === void 0 && (c[g] = void 0);
|
|
779
|
-
|
|
780
|
+
t("update:search", c), t("onreset");
|
|
780
781
|
};
|
|
781
782
|
return (c, g) => {
|
|
782
|
-
const
|
|
783
|
-
return
|
|
783
|
+
const $ = ne("submit");
|
|
784
|
+
return n.value + i.value > 0 ? X((f(), b(r(et), {
|
|
784
785
|
key: 0,
|
|
785
786
|
"label-col": { flex: "60px" },
|
|
786
787
|
style: {
|
|
@@ -790,43 +791,43 @@ const ll = async (l, t) => {
|
|
|
790
791
|
class: "flex mb-[10px]"
|
|
791
792
|
}, {
|
|
792
793
|
default: h(() => {
|
|
793
|
-
var
|
|
794
|
+
var E, P;
|
|
794
795
|
return [
|
|
795
|
-
|
|
796
|
-
(
|
|
797
|
-
|
|
796
|
+
D(c.$slots, "default"),
|
|
797
|
+
(E = c.gridCtrl) != null && E.searchBar ? D(c.$slots, "control", { key: 0 }) : C("", !0),
|
|
798
|
+
o.value >= 1 ? (f(), b(we, {
|
|
798
799
|
key: 1,
|
|
799
800
|
class: "w-1/3"
|
|
800
|
-
})) :
|
|
801
|
-
|
|
801
|
+
})) : C("", !0),
|
|
802
|
+
o.value >= 2 ? (f(), b(we, {
|
|
802
803
|
key: 2,
|
|
803
804
|
class: "w-1/3"
|
|
804
|
-
})) :
|
|
805
|
-
|
|
805
|
+
})) : C("", !0),
|
|
806
|
+
n.value || (P = c.gridCtrl) != null && P.searchBar ? (f(), b(we, {
|
|
806
807
|
key: 3,
|
|
807
808
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
808
809
|
"wrapper-col": { flex: "auto" }
|
|
809
810
|
}, {
|
|
810
811
|
default: h(() => [
|
|
811
|
-
|
|
812
|
+
S(r(de), null, {
|
|
812
813
|
default: h(() => [
|
|
813
|
-
|
|
814
|
+
S(r(W), {
|
|
814
815
|
type: "primary",
|
|
815
|
-
onClick:
|
|
816
|
+
onClick: s,
|
|
816
817
|
icon: "icon-search"
|
|
817
818
|
}, {
|
|
818
819
|
default: h(() => g[0] || (g[0] = [
|
|
819
|
-
|
|
820
|
+
O("搜索")
|
|
820
821
|
])),
|
|
821
822
|
_: 1,
|
|
822
823
|
__: [0]
|
|
823
824
|
}),
|
|
824
|
-
|
|
825
|
+
S(r(W), {
|
|
825
826
|
onClick: m,
|
|
826
827
|
icon: "icon-reset"
|
|
827
828
|
}, {
|
|
828
829
|
default: h(() => g[1] || (g[1] = [
|
|
829
|
-
|
|
830
|
+
O("重置")
|
|
830
831
|
])),
|
|
831
832
|
_: 1,
|
|
832
833
|
__: [1]
|
|
@@ -836,23 +837,23 @@ const ll = async (l, t) => {
|
|
|
836
837
|
})
|
|
837
838
|
]),
|
|
838
839
|
_: 1
|
|
839
|
-
})) :
|
|
840
|
+
})) : C("", !0)
|
|
840
841
|
];
|
|
841
842
|
}),
|
|
842
843
|
_: 3
|
|
843
844
|
})), [
|
|
844
|
-
[
|
|
845
|
-
]) :
|
|
845
|
+
[$, s]
|
|
846
|
+
]) : C("", !0);
|
|
846
847
|
};
|
|
847
848
|
}
|
|
848
|
-
}),
|
|
849
|
+
}), Da = /* @__PURE__ */ T({
|
|
849
850
|
__name: "tableOperate",
|
|
850
851
|
props: {
|
|
851
852
|
record: {},
|
|
852
853
|
gridCtrl: {}
|
|
853
854
|
},
|
|
854
855
|
setup(l) {
|
|
855
|
-
const
|
|
856
|
+
const a = l, e = a.gridCtrl, t = Y(() => ge.currentRoute.value.path), o = [
|
|
856
857
|
{
|
|
857
858
|
key: "Edit",
|
|
858
859
|
label: "编辑",
|
|
@@ -860,7 +861,7 @@ const ll = async (l, t) => {
|
|
|
860
861
|
visible: !0,
|
|
861
862
|
role: ["Super", "Admin"],
|
|
862
863
|
permit: ":edit",
|
|
863
|
-
click: () =>
|
|
864
|
+
click: () => gt(e, a.record)
|
|
864
865
|
},
|
|
865
866
|
{
|
|
866
867
|
key: "Delete",
|
|
@@ -872,109 +873,109 @@ const ll = async (l, t) => {
|
|
|
872
873
|
permit: ":delete",
|
|
873
874
|
confirm: !0,
|
|
874
875
|
confirmText: "是否删除此记录?",
|
|
875
|
-
click: () =>
|
|
876
|
+
click: () => bt(e, a.record)
|
|
876
877
|
}
|
|
877
|
-
], { buttons:
|
|
878
|
+
], { buttons: n, menus: i } = Me(o, 0, e.operates), p = (d) => {
|
|
878
879
|
if (typeof d.disabled == "boolean")
|
|
879
880
|
return d.disabled;
|
|
880
881
|
if (typeof d.disabled == "function")
|
|
881
|
-
return
|
|
882
|
-
if (
|
|
882
|
+
return le(d, a.record) ?? !1;
|
|
883
|
+
if (a.record.hasOwnProperty("Enabled"))
|
|
883
884
|
switch (d.key) {
|
|
884
885
|
case "Edit":
|
|
885
|
-
return !
|
|
886
|
+
return !a.record.Enabled;
|
|
886
887
|
case "Delete":
|
|
887
|
-
return !!
|
|
888
|
+
return !!a.record.Enabled;
|
|
888
889
|
}
|
|
889
890
|
return !1;
|
|
890
891
|
};
|
|
891
|
-
return (d,
|
|
892
|
-
const
|
|
893
|
-
return
|
|
892
|
+
return (d, u) => {
|
|
893
|
+
const v = ne("auth");
|
|
894
|
+
return f(), b(r(Ae), { theme: {
|
|
894
895
|
token: {
|
|
895
896
|
fontSize: 13
|
|
896
897
|
}
|
|
897
898
|
} }, {
|
|
898
899
|
default: h(() => [
|
|
899
|
-
|
|
900
|
+
S(r(de), null, {
|
|
900
901
|
default: h(() => [
|
|
901
|
-
(
|
|
902
|
-
key:
|
|
902
|
+
(f(!0), w(A, null, H(r(n), (s) => (f(), w(A, {
|
|
903
|
+
key: s.key
|
|
903
904
|
}, [
|
|
904
|
-
r(
|
|
905
|
+
r(se)(s, a.record) ? (f(), b(r(Wt), {
|
|
905
906
|
key: 0,
|
|
906
|
-
disabled: p(
|
|
907
|
+
disabled: p(s) || !s.confirm,
|
|
907
908
|
cancelText: "否",
|
|
908
909
|
okText: "是",
|
|
909
|
-
title:
|
|
910
|
+
title: s.confirmText,
|
|
910
911
|
okButtonProps: { size: "small" },
|
|
911
912
|
cancelButtonProps: { size: "small" },
|
|
912
|
-
onConfirm: (m) => r(
|
|
913
|
+
onConfirm: (m) => r(J)(s, r(e).page, r(e), a.record, !0)
|
|
913
914
|
}, {
|
|
914
915
|
default: h(() => [
|
|
915
|
-
r(
|
|
916
|
-
key:
|
|
917
|
-
type:
|
|
918
|
-
danger:
|
|
919
|
-
disabled: p(
|
|
920
|
-
onClick: (m) => r(
|
|
916
|
+
r(se)(s, a.record) ? X((f(), b(r(at), {
|
|
917
|
+
key: s.key,
|
|
918
|
+
type: s.type ?? "text",
|
|
919
|
+
danger: s.danger,
|
|
920
|
+
disabled: p(s),
|
|
921
|
+
onClick: (m) => r(J)(s, r(e).page, r(e), a.record),
|
|
921
922
|
size: "small",
|
|
922
|
-
style:
|
|
923
|
-
padding:
|
|
923
|
+
style: De({
|
|
924
|
+
padding: s.type ?? "0px 4px"
|
|
924
925
|
})
|
|
925
926
|
}, {
|
|
926
927
|
default: h(() => [
|
|
927
|
-
|
|
928
|
+
O(M(s.label), 1)
|
|
928
929
|
]),
|
|
929
930
|
_: 2
|
|
930
931
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
931
|
-
[
|
|
932
|
-
]) :
|
|
932
|
+
[v, { url: t.value, role: s.role, permit: s.permit }]
|
|
933
|
+
]) : C("", !0)
|
|
933
934
|
]),
|
|
934
935
|
_: 2
|
|
935
|
-
}, 1032, ["disabled", "title", "onConfirm"])) :
|
|
936
|
+
}, 1032, ["disabled", "title", "onConfirm"])) : C("", !0)
|
|
936
937
|
], 64))), 128)),
|
|
937
|
-
d.record.Enabled == 1 ? (
|
|
938
|
+
d.record.Enabled == 1 ? (f(), b(r(Ae), {
|
|
938
939
|
key: 0,
|
|
939
940
|
autoInsertSpaceInButton: !1
|
|
940
941
|
}, {
|
|
941
942
|
default: h(() => [
|
|
942
|
-
r(
|
|
943
|
+
r(i).length > 0 ? (f(), b(r(qt), {
|
|
943
944
|
key: 0,
|
|
944
945
|
size: "small"
|
|
945
946
|
}, {
|
|
946
947
|
overlay: h(() => [
|
|
947
|
-
|
|
948
|
+
S(r(Ue), null, {
|
|
948
949
|
default: h(() => [
|
|
949
|
-
(
|
|
950
|
-
key:
|
|
950
|
+
(f(!0), w(A, null, H(r(i), (s) => (f(), w(A, {
|
|
951
|
+
key: s.key
|
|
951
952
|
}, [
|
|
952
|
-
r(
|
|
953
|
+
r(se)(s, a.record) ? X((f(), b(r(Le), {
|
|
953
954
|
key: 0,
|
|
954
|
-
disabled: p(
|
|
955
|
-
onClick: (m) => r(
|
|
955
|
+
disabled: p(s),
|
|
956
|
+
onClick: (m) => r(J)(s, r(e).page, r(e), a.record)
|
|
956
957
|
}, {
|
|
957
958
|
default: h(() => [
|
|
958
|
-
|
|
959
|
+
O(M(s.label), 1)
|
|
959
960
|
]),
|
|
960
961
|
_: 2
|
|
961
962
|
}, 1032, ["disabled", "onClick"])), [
|
|
962
|
-
[
|
|
963
|
-
]) :
|
|
963
|
+
[v, { url: t.value, role: s.role, permit: s.permit }]
|
|
964
|
+
]) : C("", !0)
|
|
964
965
|
], 64))), 128))
|
|
965
966
|
]),
|
|
966
967
|
_: 1
|
|
967
968
|
})
|
|
968
969
|
]),
|
|
969
970
|
default: h(() => [
|
|
970
|
-
|
|
971
|
+
u[0] || (u[0] = O(" 更多 "))
|
|
971
972
|
]),
|
|
972
973
|
_: 1,
|
|
973
974
|
__: [0]
|
|
974
|
-
})) :
|
|
975
|
+
})) : C("", !0)
|
|
975
976
|
]),
|
|
976
977
|
_: 1
|
|
977
|
-
})) :
|
|
978
|
+
})) : C("", !0)
|
|
978
979
|
]),
|
|
979
980
|
_: 1
|
|
980
981
|
})
|
|
@@ -983,94 +984,94 @@ const ll = async (l, t) => {
|
|
|
983
984
|
});
|
|
984
985
|
};
|
|
985
986
|
}
|
|
986
|
-
}),
|
|
987
|
+
}), Pa = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, Ua = /* @__PURE__ */ T({
|
|
987
988
|
__name: "icontool",
|
|
988
989
|
props: {
|
|
989
990
|
gridCtrl: {}
|
|
990
991
|
},
|
|
991
992
|
setup(l) {
|
|
992
|
-
const
|
|
993
|
-
|
|
993
|
+
const a = l, e = a.gridCtrl, { tools: t } = xa(a.gridCtrl), o = Te();
|
|
994
|
+
F(
|
|
994
995
|
() => e.selectable.value,
|
|
995
996
|
(p) => {
|
|
996
|
-
|
|
997
|
+
ae(t, "tool.export.excel.selected") && (ae(t, "tool.export.excel.selected").disabled = !p), ae(t, "tool.export.pdf.selected") && (ae(t, "tool.export.pdf.selected").disabled = !p);
|
|
997
998
|
}
|
|
998
999
|
);
|
|
999
|
-
const
|
|
1000
|
-
|
|
1000
|
+
const n = y([]);
|
|
1001
|
+
F(
|
|
1001
1002
|
() => e.columns.value,
|
|
1002
1003
|
(p) => {
|
|
1003
|
-
|
|
1004
|
+
n.value = He(p, !0);
|
|
1004
1005
|
},
|
|
1005
1006
|
{ deep: !0, immediate: !0 }
|
|
1006
1007
|
);
|
|
1007
|
-
const
|
|
1008
|
-
e.columns.value.splice(0, e.columns.value.length, ...
|
|
1008
|
+
const i = () => {
|
|
1009
|
+
e.columns.value.splice(0, e.columns.value.length, ...n.value), o.setTableColumns(ge.currentRoute.value.path, e.columns.value);
|
|
1009
1010
|
};
|
|
1010
|
-
return (p, d) => (
|
|
1011
|
-
(
|
|
1012
|
-
key:
|
|
1011
|
+
return (p, d) => (f(), w("div", Pa, [
|
|
1012
|
+
(f(!0), w(A, null, H(r(t), (u, v) => (f(), w(A, {
|
|
1013
|
+
key: u.key
|
|
1013
1014
|
}, [
|
|
1014
|
-
r(
|
|
1015
|
+
r(se)(u) && u.dropdown ? (f(), b(r(Se), {
|
|
1015
1016
|
key: 0,
|
|
1016
1017
|
placement: "bottomRight",
|
|
1017
1018
|
class: "p-0 rounded-none"
|
|
1018
1019
|
}, {
|
|
1019
1020
|
overlay: h(() => [
|
|
1020
|
-
|
|
1021
|
-
class:
|
|
1021
|
+
I("div", {
|
|
1022
|
+
class: U(["min-w-[100px] bg-white rounded shadow-md p-4", u.dropdownClass])
|
|
1022
1023
|
}, [
|
|
1023
|
-
|
|
1024
|
+
u.dropdown === "headset" ? (f(), b(r(ia), {
|
|
1024
1025
|
key: 0,
|
|
1025
|
-
modelValue:
|
|
1026
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
1026
|
+
modelValue: n.value,
|
|
1027
|
+
"onUpdate:modelValue": d[1] || (d[1] = (s) => n.value = s),
|
|
1027
1028
|
"item-key": "dataIndex",
|
|
1028
|
-
onEnd:
|
|
1029
|
+
onEnd: i,
|
|
1029
1030
|
handle: ".drag-handle"
|
|
1030
1031
|
}, {
|
|
1031
1032
|
default: h(() => [
|
|
1032
|
-
(
|
|
1033
|
-
key:
|
|
1034
|
-
onClick: d[0] || (d[0] =
|
|
1033
|
+
(f(!0), w(A, null, H(n.value, (s) => (f(), w("div", {
|
|
1034
|
+
key: s.name,
|
|
1035
|
+
onClick: d[0] || (d[0] = ce(() => {
|
|
1035
1036
|
}, ["stop"])),
|
|
1036
1037
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
1037
1038
|
}, [
|
|
1038
|
-
d[2] || (d[2] =
|
|
1039
|
-
|
|
1040
|
-
checked:
|
|
1041
|
-
onChange:
|
|
1039
|
+
d[2] || (d[2] = I("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
1040
|
+
S(r(Ht), {
|
|
1041
|
+
checked: s.visible !== !1,
|
|
1042
|
+
onChange: ce(
|
|
1042
1043
|
(m) => {
|
|
1043
|
-
r(
|
|
1044
|
+
r(ya)(s, m.target.checked);
|
|
1044
1045
|
},
|
|
1045
1046
|
["stop", "prevent"]
|
|
1046
1047
|
),
|
|
1047
1048
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
1048
1049
|
}, {
|
|
1049
1050
|
default: h(() => [
|
|
1050
|
-
|
|
1051
|
+
O(M(s.title), 1)
|
|
1051
1052
|
]),
|
|
1052
1053
|
_: 2
|
|
1053
1054
|
}, 1032, ["checked", "onChange"])
|
|
1054
1055
|
]))), 128))
|
|
1055
1056
|
]),
|
|
1056
1057
|
_: 1
|
|
1057
|
-
}, 8, ["modelValue"])) :
|
|
1058
|
+
}, 8, ["modelValue"])) : C("", !0)
|
|
1058
1059
|
], 2)
|
|
1059
1060
|
]),
|
|
1060
1061
|
default: h(() => [
|
|
1061
|
-
|
|
1062
|
-
class:
|
|
1062
|
+
S(r(W), {
|
|
1063
|
+
class: U([
|
|
1063
1064
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1064
|
-
|
|
1065
|
-
|
|
1065
|
+
v === 0 ? "rounded-l-[5px]" : "",
|
|
1066
|
+
v === r(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1066
1067
|
]),
|
|
1067
|
-
disabled: r(
|
|
1068
|
-
tiptext:
|
|
1069
|
-
onClick: (
|
|
1068
|
+
disabled: r(le)(u),
|
|
1069
|
+
tiptext: u.label,
|
|
1070
|
+
onClick: (s) => r(J)(u, r(e).page, r(e))
|
|
1070
1071
|
}, {
|
|
1071
1072
|
default: h(() => [
|
|
1072
|
-
|
|
1073
|
-
icon:
|
|
1073
|
+
S(r(K), {
|
|
1074
|
+
icon: u.icon,
|
|
1074
1075
|
class: "w-[18px] h-[18.5px]",
|
|
1075
1076
|
clickable: ""
|
|
1076
1077
|
}, null, 8, ["icon"])
|
|
@@ -1079,39 +1080,39 @@ const ll = async (l, t) => {
|
|
|
1079
1080
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
1080
1081
|
]),
|
|
1081
1082
|
_: 2
|
|
1082
|
-
}, 1024)) : !
|
|
1083
|
+
}, 1024)) : !u.children && r(se)(u) ? (f(), b(r(W), {
|
|
1083
1084
|
key: 1,
|
|
1084
|
-
class:
|
|
1085
|
+
class: U([
|
|
1085
1086
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1086
|
-
|
|
1087
|
-
|
|
1087
|
+
v === 0 ? "rounded-l-[5px]" : "",
|
|
1088
|
+
v === r(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1088
1089
|
]),
|
|
1089
|
-
disabled: r(
|
|
1090
|
-
tiptext:
|
|
1091
|
-
onClick: (
|
|
1090
|
+
disabled: r(le)(u),
|
|
1091
|
+
tiptext: u.label,
|
|
1092
|
+
onClick: (s) => r(J)(u, r(e).page, r(e))
|
|
1092
1093
|
}, {
|
|
1093
1094
|
default: h(() => [
|
|
1094
|
-
|
|
1095
|
-
icon:
|
|
1095
|
+
S(r(K), {
|
|
1096
|
+
icon: u.icon,
|
|
1096
1097
|
class: "w-[18px] h-[18.5px]",
|
|
1097
1098
|
clickable: ""
|
|
1098
1099
|
}, null, 8, ["icon"])
|
|
1099
1100
|
]),
|
|
1100
1101
|
_: 2
|
|
1101
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : r(
|
|
1102
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : r(se)(u) ? (f(), b(r(Se), {
|
|
1102
1103
|
key: 2,
|
|
1103
1104
|
placement: "bottomRight",
|
|
1104
1105
|
class: "p-0 rounded-none"
|
|
1105
1106
|
}, {
|
|
1106
1107
|
overlay: h(() => [
|
|
1107
|
-
|
|
1108
|
+
S(r(Ue), null, {
|
|
1108
1109
|
default: h(() => [
|
|
1109
|
-
(
|
|
1110
|
-
key:
|
|
1111
|
-
disabled: r(
|
|
1110
|
+
(f(!0), w(A, null, H(u.children, (s) => (f(), b(r(Le), {
|
|
1111
|
+
key: s.key,
|
|
1112
|
+
disabled: r(le)(s)
|
|
1112
1113
|
}, {
|
|
1113
1114
|
default: h(() => [
|
|
1114
|
-
|
|
1115
|
+
O(M(s.label), 1)
|
|
1115
1116
|
]),
|
|
1116
1117
|
_: 2
|
|
1117
1118
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -1120,19 +1121,19 @@ const ll = async (l, t) => {
|
|
|
1120
1121
|
}, 1024)
|
|
1121
1122
|
]),
|
|
1122
1123
|
default: h(() => [
|
|
1123
|
-
|
|
1124
|
-
class:
|
|
1124
|
+
S(r(W), {
|
|
1125
|
+
class: U([
|
|
1125
1126
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1126
|
-
|
|
1127
|
+
v === 0 ? "rounded-l-[5px]" : ""
|
|
1127
1128
|
]),
|
|
1128
|
-
disabled: r(
|
|
1129
|
-
tiptext:
|
|
1130
|
-
icon:
|
|
1129
|
+
disabled: r(le)(u),
|
|
1130
|
+
tiptext: u.label,
|
|
1131
|
+
icon: u.icon,
|
|
1131
1132
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
1132
|
-
onClick: (
|
|
1133
|
+
onClick: (s) => r(J)(u, r(e).page, r(e))
|
|
1133
1134
|
}, {
|
|
1134
1135
|
default: h(() => [
|
|
1135
|
-
|
|
1136
|
+
S(r(K), {
|
|
1136
1137
|
icon: "icon-down-arrow",
|
|
1137
1138
|
class: "w-[12px] h-[12px]"
|
|
1138
1139
|
})
|
|
@@ -1141,18 +1142,18 @@ const ll = async (l, t) => {
|
|
|
1141
1142
|
}, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
|
|
1142
1143
|
]),
|
|
1143
1144
|
_: 2
|
|
1144
|
-
}, 1024)) :
|
|
1145
|
+
}, 1024)) : C("", !0)
|
|
1145
1146
|
], 64))), 128))
|
|
1146
1147
|
]));
|
|
1147
1148
|
}
|
|
1148
|
-
}),
|
|
1149
|
+
}), La = { class: "flex justify-between mb-[10px]" }, Ma = { key: 1 }, Ba = 3, Na = /* @__PURE__ */ T({
|
|
1149
1150
|
__name: "index",
|
|
1150
1151
|
props: {
|
|
1151
1152
|
gridCtrl: {},
|
|
1152
1153
|
editorCtrl: {}
|
|
1153
1154
|
},
|
|
1154
1155
|
setup(l) {
|
|
1155
|
-
const
|
|
1156
|
+
const a = l, e = a.gridCtrl, t = e.page, o = a.editorCtrl, n = Y(() => ge.currentRoute.value.path), i = [
|
|
1156
1157
|
{
|
|
1157
1158
|
key: "New",
|
|
1158
1159
|
label: "新增",
|
|
@@ -1162,92 +1163,92 @@ const ll = async (l, t) => {
|
|
|
1162
1163
|
role: ["Super", "Admin"],
|
|
1163
1164
|
permit: ":new",
|
|
1164
1165
|
// 默认仅受权限码控制
|
|
1165
|
-
click: () =>
|
|
1166
|
+
click: () => yt(o)
|
|
1166
1167
|
}
|
|
1167
|
-
], p =
|
|
1168
|
-
return
|
|
1168
|
+
], p = y([]), d = y([]);
|
|
1169
|
+
return F(
|
|
1169
1170
|
() => {
|
|
1170
|
-
var
|
|
1171
|
-
return (
|
|
1171
|
+
var u;
|
|
1172
|
+
return (u = e.buttons) == null ? void 0 : u.value;
|
|
1172
1173
|
},
|
|
1173
1174
|
() => {
|
|
1174
|
-
var
|
|
1175
|
-
const { buttons:
|
|
1176
|
-
|
|
1177
|
-
e.flat !== void 0 ? e.flat :
|
|
1178
|
-
(
|
|
1175
|
+
var s;
|
|
1176
|
+
const { buttons: u, menus: v } = Me(
|
|
1177
|
+
i,
|
|
1178
|
+
e.flat !== void 0 ? e.flat : Ba,
|
|
1179
|
+
(s = e.buttons) == null ? void 0 : s.value
|
|
1179
1180
|
);
|
|
1180
|
-
p.value.splice(0, p.value.length, ...
|
|
1181
|
+
p.value.splice(0, p.value.length, ...u), d.value.splice(0, d.value.length, ...v);
|
|
1181
1182
|
},
|
|
1182
1183
|
{
|
|
1183
1184
|
deep: !0,
|
|
1184
1185
|
immediate: !0
|
|
1185
1186
|
}
|
|
1186
|
-
), (
|
|
1187
|
-
const
|
|
1188
|
-
return
|
|
1189
|
-
|
|
1187
|
+
), (u, v) => {
|
|
1188
|
+
const s = ne("auth");
|
|
1189
|
+
return f(), w("div", La, [
|
|
1190
|
+
S(r(de), null, {
|
|
1190
1191
|
default: h(() => [
|
|
1191
|
-
(
|
|
1192
|
+
(f(!0), w(A, null, H(p.value, (m) => X((f(), b(r(W), {
|
|
1192
1193
|
key: m.key,
|
|
1193
1194
|
type: m.type,
|
|
1194
1195
|
danger: m.danger,
|
|
1195
|
-
disabled: r(
|
|
1196
|
+
disabled: r(le)(m),
|
|
1196
1197
|
icon: m.icon,
|
|
1197
|
-
onClick: (c) => r(
|
|
1198
|
+
onClick: (c) => r(J)(m, r(t), r(e))
|
|
1198
1199
|
}, {
|
|
1199
1200
|
default: h(() => [
|
|
1200
|
-
|
|
1201
|
+
O(M(m.label), 1)
|
|
1201
1202
|
]),
|
|
1202
1203
|
_: 2
|
|
1203
1204
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
1204
|
-
[
|
|
1205
|
+
[s, { url: n.value, role: m.role, permit: m.permit }]
|
|
1205
1206
|
])), 128)),
|
|
1206
|
-
d.value.length > 0 ? (
|
|
1207
|
+
d.value.length > 0 ? (f(), b(r(Se), { key: 0 }, {
|
|
1207
1208
|
overlay: h(() => [
|
|
1208
|
-
|
|
1209
|
+
S(r(Ue), null, {
|
|
1209
1210
|
default: h(() => [
|
|
1210
|
-
(
|
|
1211
|
+
(f(!0), w(A, null, H(d.value, (m) => X((f(), b(r(Le), {
|
|
1211
1212
|
key: m.key,
|
|
1212
|
-
disabled: r(
|
|
1213
|
-
onClick: (c) => r(
|
|
1213
|
+
disabled: r(le)(m),
|
|
1214
|
+
onClick: (c) => r(J)(m, r(t), r(e))
|
|
1214
1215
|
}, {
|
|
1215
1216
|
default: h(() => [
|
|
1216
|
-
|
|
1217
|
+
O(M(m.label), 1)
|
|
1217
1218
|
]),
|
|
1218
1219
|
_: 2
|
|
1219
1220
|
}, 1032, ["disabled", "onClick"])), [
|
|
1220
|
-
[
|
|
1221
|
+
[s, { url: n.value, role: m.role, permit: m.permit }]
|
|
1221
1222
|
])), 128))
|
|
1222
1223
|
]),
|
|
1223
1224
|
_: 1
|
|
1224
1225
|
})
|
|
1225
1226
|
]),
|
|
1226
1227
|
default: h(() => [
|
|
1227
|
-
|
|
1228
|
-
default: h(() =>
|
|
1229
|
-
|
|
1228
|
+
S(r(W), null, {
|
|
1229
|
+
default: h(() => v[0] || (v[0] = [
|
|
1230
|
+
O(" 更多操作 ")
|
|
1230
1231
|
])),
|
|
1231
1232
|
_: 1,
|
|
1232
1233
|
__: [0]
|
|
1233
1234
|
})
|
|
1234
1235
|
]),
|
|
1235
1236
|
_: 1
|
|
1236
|
-
})) :
|
|
1237
|
-
p.value.length === 0 && d.value.length === 0 ? (
|
|
1237
|
+
})) : C("", !0),
|
|
1238
|
+
p.value.length === 0 && d.value.length === 0 ? (f(), w("span", Ma)) : C("", !0)
|
|
1238
1239
|
]),
|
|
1239
1240
|
_: 1
|
|
1240
1241
|
}),
|
|
1241
|
-
|
|
1242
|
+
S(r(de), { class: "mr-1" }, {
|
|
1242
1243
|
default: h(() => [
|
|
1243
|
-
(
|
|
1244
|
+
(f(), b(At(Ua), { "grid-ctrl": r(e) }, null, 8, ["grid-ctrl"]))
|
|
1244
1245
|
]),
|
|
1245
1246
|
_: 1
|
|
1246
1247
|
})
|
|
1247
1248
|
]);
|
|
1248
1249
|
};
|
|
1249
1250
|
}
|
|
1250
|
-
}),
|
|
1251
|
+
}), Rl = /* @__PURE__ */ T({
|
|
1251
1252
|
inheritAttrs: !1,
|
|
1252
1253
|
__name: "index",
|
|
1253
1254
|
props: {
|
|
@@ -1260,123 +1261,123 @@ const ll = async (l, t) => {
|
|
|
1260
1261
|
statusDisabled: {}
|
|
1261
1262
|
},
|
|
1262
1263
|
setup(l) {
|
|
1263
|
-
const
|
|
1264
|
-
|
|
1265
|
-
const
|
|
1264
|
+
const a = l, e = oe(), t = a.gridCtrl, o = Y(() => ge.currentRoute.value.path);
|
|
1265
|
+
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
1266
|
+
const n = y(t.pageSize.value), i = y(t.pageNo.value), p = y([]), d = y({
|
|
1266
1267
|
total: 0,
|
|
1267
1268
|
current: 1,
|
|
1268
|
-
pageSize:
|
|
1269
|
+
pageSize: n.value,
|
|
1269
1270
|
showTotal: (c) => `共 ${c} 条记录`,
|
|
1270
1271
|
onChange: (c, g) => {
|
|
1271
|
-
d.value !== !1 && (d.value.current = c, d.value.pageSize = g),
|
|
1272
|
+
d.value !== !1 && (d.value.current = c, d.value.pageSize = g), n.value = g, i.value = c, t && (t.pageNo.value = c, t.pageSize.value = g, t.remotePage && Be(t));
|
|
1272
1273
|
},
|
|
1273
|
-
...
|
|
1274
|
+
...a.pagination === !1 ? {} : a.pagination
|
|
1274
1275
|
});
|
|
1275
|
-
|
|
1276
|
-
() =>
|
|
1276
|
+
a.pagination === !1 && (d.value = !1), F(
|
|
1277
|
+
() => t.tableData.value,
|
|
1277
1278
|
(c) => {
|
|
1278
|
-
c && (p.value = c, d.value !== !1 && (d.value.total =
|
|
1279
|
+
c && (p.value = c, d.value !== !1 && (d.value.total = t.total.value ?? 0, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
|
|
1279
1280
|
},
|
|
1280
1281
|
{ immediate: !0 }
|
|
1281
|
-
),
|
|
1282
|
-
() =>
|
|
1282
|
+
), F(
|
|
1283
|
+
() => a.tableData,
|
|
1283
1284
|
(c) => {
|
|
1284
|
-
c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current =
|
|
1285
|
+
c && (p.value = c, d.value !== !1 && (d.value.total = c.length, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
|
|
1285
1286
|
},
|
|
1286
1287
|
{ immediate: !0 }
|
|
1287
1288
|
);
|
|
1288
|
-
const
|
|
1289
|
+
const u = y(t.columns.value), v = {
|
|
1289
1290
|
onChange: (c, g) => {
|
|
1290
|
-
|
|
1291
|
+
t && (t.selectKeys.value = c, t.selectRows.value = g);
|
|
1291
1292
|
},
|
|
1292
1293
|
columnWidth: "30px",
|
|
1293
1294
|
getCheckboxProps: (c) => ({
|
|
1294
1295
|
disabled: c.Enabled === 0
|
|
1295
1296
|
}),
|
|
1296
|
-
...
|
|
1297
|
-
},
|
|
1298
|
-
|
|
1299
|
-
() =>
|
|
1297
|
+
...a.rowSelection
|
|
1298
|
+
}, s = y(v);
|
|
1299
|
+
F(
|
|
1300
|
+
() => t.selectable.value,
|
|
1300
1301
|
(c) => {
|
|
1301
|
-
|
|
1302
|
+
t && (s.value = c ? v : void 0);
|
|
1302
1303
|
},
|
|
1303
1304
|
{ immediate: !0 }
|
|
1304
|
-
),
|
|
1305
|
-
() =>
|
|
1305
|
+
), F(
|
|
1306
|
+
() => t.columns.value,
|
|
1306
1307
|
() => {
|
|
1307
|
-
|
|
1308
|
+
u.value = He(t.columns.value);
|
|
1308
1309
|
},
|
|
1309
1310
|
{ deep: !0, immediate: !0 }
|
|
1310
1311
|
);
|
|
1311
|
-
const m =
|
|
1312
|
-
return
|
|
1313
|
-
m.value &&
|
|
1314
|
-
}),
|
|
1315
|
-
var c, g,
|
|
1316
|
-
|
|
1312
|
+
const m = y(!1);
|
|
1313
|
+
return Pe(() => {
|
|
1314
|
+
m.value && t && t.autoload && (t.reload.value = !0);
|
|
1315
|
+
}), ee(async () => {
|
|
1316
|
+
var c, g, $, E, P;
|
|
1317
|
+
Ee(re.GridControl, t), t.page && ((c = t.gridUrl) != null && c.url) && (((g = t.gridUrl) == null ? void 0 : g.url) === (($ = t.page.urls.list) == null ? void 0 : $.url) && (t.remotePage = !1), ((E = t.gridUrl) == null ? void 0 : E.url) === ((P = t.page.urls.find) == null ? void 0 : P.url) && (t.remotePage = !0)), t.tableData.value ? (p.value = t.tableData.value, t.total.value = p.value.length, d.value !== !1 && (d.value.total = t.total.value ?? 0)) : t.autoload !== !1 && (t.remotePage ? p.value = (await Be(t)).rows : p.value = await xt(t)), setTimeout(() => {
|
|
1317
1318
|
m.value = !0;
|
|
1318
1319
|
}, 50);
|
|
1319
1320
|
}), (c, g) => {
|
|
1320
|
-
var
|
|
1321
|
-
const
|
|
1322
|
-
return
|
|
1323
|
-
(
|
|
1321
|
+
var E, P;
|
|
1322
|
+
const $ = ne("auth");
|
|
1323
|
+
return f(), w(A, null, [
|
|
1324
|
+
(E = r(t).buttons) != null && E.value.length || (P = r(t).tools) != null && P.length ? (f(), b(Na, {
|
|
1324
1325
|
key: 0,
|
|
1325
|
-
"grid-ctrl": r(
|
|
1326
|
-
"editor-ctrl": r(
|
|
1327
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
1328
|
-
m.value ? (
|
|
1326
|
+
"grid-ctrl": r(t),
|
|
1327
|
+
"editor-ctrl": r(t).editor
|
|
1328
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : C("", !0),
|
|
1329
|
+
m.value ? (f(), b(r(lt), L({
|
|
1329
1330
|
key: 1,
|
|
1330
1331
|
class: "w-full min-h-[480px]",
|
|
1331
|
-
"row-key":
|
|
1332
|
+
"row-key": a.primaryKey ?? r(t).primaryKey ?? "Id",
|
|
1332
1333
|
"data-source": p.value,
|
|
1333
|
-
loading: r(
|
|
1334
|
-
columns:
|
|
1334
|
+
loading: r(t).isGridLoading.value,
|
|
1335
|
+
columns: u.value,
|
|
1335
1336
|
pagination: d.value,
|
|
1336
|
-
"row-selection":
|
|
1337
|
-
scroll:
|
|
1338
|
-
size: r(
|
|
1337
|
+
"row-selection": s.value,
|
|
1338
|
+
scroll: a.scroll || { x: 700 },
|
|
1339
|
+
size: r(t).tableSize.value,
|
|
1339
1340
|
bordered: ""
|
|
1340
1341
|
}, r(e)), {
|
|
1341
|
-
bodyCell: h((
|
|
1342
|
-
var
|
|
1342
|
+
bodyCell: h((k) => {
|
|
1343
|
+
var R, j;
|
|
1343
1344
|
return [
|
|
1344
|
-
|
|
1345
|
-
column:
|
|
1346
|
-
record:
|
|
1345
|
+
D(c.$slots, "bodyCell", {
|
|
1346
|
+
column: k == null ? void 0 : k.column,
|
|
1347
|
+
record: k == null ? void 0 : k.record
|
|
1347
1348
|
}),
|
|
1348
|
-
r(
|
|
1349
|
+
r(t) && ((R = k == null ? void 0 : k.column) == null ? void 0 : R.dataIndex) === "enabled" ? X((f(), b(_t, {
|
|
1349
1350
|
key: 0,
|
|
1350
|
-
checked:
|
|
1351
|
-
"onUpdate:checked": (
|
|
1352
|
-
disabled: c.statusDisabled ? c.statusDisabled(
|
|
1353
|
-
data: r(
|
|
1354
|
-
onClick: (
|
|
1355
|
-
class:
|
|
1351
|
+
checked: k.record.Enabled,
|
|
1352
|
+
"onUpdate:checked": (Q) => k.record.Enabled = Q,
|
|
1353
|
+
disabled: c.statusDisabled ? c.statusDisabled(k.record) : !1,
|
|
1354
|
+
data: r(Qe).EnableDisable,
|
|
1355
|
+
onClick: (Q) => r(kt)(r(t), k.record),
|
|
1356
|
+
class: U([
|
|
1356
1357
|
"w-[58px]",
|
|
1357
|
-
c.statusDisabled && c.statusDisabled(
|
|
1358
|
+
c.statusDisabled && c.statusDisabled(k.record) ? "cursor-not-allowed disabled" : ""
|
|
1358
1359
|
]),
|
|
1359
|
-
loading:
|
|
1360
|
+
loading: k == null ? void 0 : k.record.isLoading
|
|
1360
1361
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
1361
|
-
[
|
|
1362
|
-
]) :
|
|
1363
|
-
r(
|
|
1362
|
+
[$, { url: o.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1363
|
+
]) : C("", !0),
|
|
1364
|
+
r(t) && ((j = k == null ? void 0 : k.column) == null ? void 0 : j.dataIndex) === "operation" ? D(c.$slots, "operate", {
|
|
1364
1365
|
key: 1,
|
|
1365
|
-
record:
|
|
1366
|
+
record: k == null ? void 0 : k.record
|
|
1366
1367
|
}, () => [
|
|
1367
|
-
|
|
1368
|
-
record:
|
|
1369
|
-
"grid-ctrl": r(
|
|
1368
|
+
S(Da, {
|
|
1369
|
+
record: k == null ? void 0 : k.record,
|
|
1370
|
+
"grid-ctrl": r(t)
|
|
1370
1371
|
}, null, 8, ["record", "grid-ctrl"])
|
|
1371
|
-
]) :
|
|
1372
|
+
]) : C("", !0)
|
|
1372
1373
|
];
|
|
1373
1374
|
}),
|
|
1374
1375
|
_: 3
|
|
1375
|
-
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) :
|
|
1376
|
+
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : C("", !0)
|
|
1376
1377
|
], 64);
|
|
1377
1378
|
};
|
|
1378
1379
|
}
|
|
1379
|
-
}),
|
|
1380
|
+
}), Oa = { class: "flex items-center gap-1" }, Ra = { class: "text-nowrap" }, Al = /* @__PURE__ */ T({
|
|
1380
1381
|
__name: "index",
|
|
1381
1382
|
props: {
|
|
1382
1383
|
treeCtrl: {},
|
|
@@ -1384,166 +1385,166 @@ const ll = async (l, t) => {
|
|
|
1384
1385
|
expandedKeys: {}
|
|
1385
1386
|
},
|
|
1386
1387
|
emits: ["select", "update:selectedKeys"],
|
|
1387
|
-
setup(l, { emit:
|
|
1388
|
-
const e = l,
|
|
1389
|
-
|
|
1390
|
-
() =>
|
|
1391
|
-
(
|
|
1392
|
-
if (
|
|
1393
|
-
|
|
1394
|
-
const
|
|
1395
|
-
if (
|
|
1388
|
+
setup(l, { emit: a }) {
|
|
1389
|
+
const e = l, t = oe(), o = e.treeCtrl, n = y([]);
|
|
1390
|
+
F(
|
|
1391
|
+
() => o.data.value,
|
|
1392
|
+
(v) => {
|
|
1393
|
+
if (v) {
|
|
1394
|
+
n.value = o.fieldMap ? ve(o.fieldMap, v) : v;
|
|
1395
|
+
const s = wt(n.value, p.value[0]);
|
|
1396
|
+
if (s) {
|
|
1396
1397
|
const m = {
|
|
1397
1398
|
event: "select",
|
|
1398
1399
|
node: {
|
|
1399
1400
|
// 根据你的TreeNode结构构建node对象
|
|
1400
|
-
key:
|
|
1401
|
-
title:
|
|
1401
|
+
key: s.key,
|
|
1402
|
+
title: s.title,
|
|
1402
1403
|
checked: !0,
|
|
1403
|
-
dataRef:
|
|
1404
|
+
dataRef: s
|
|
1404
1405
|
},
|
|
1405
1406
|
selected: !0,
|
|
1406
|
-
selectedNodes: [
|
|
1407
|
+
selectedNodes: [s]
|
|
1407
1408
|
};
|
|
1408
|
-
|
|
1409
|
+
u(p.value, m);
|
|
1409
1410
|
}
|
|
1410
1411
|
}
|
|
1411
1412
|
}
|
|
1412
1413
|
);
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1414
|
+
const i = a, p = y([]);
|
|
1415
|
+
F(
|
|
1415
1416
|
() => e.selectedKeys,
|
|
1416
|
-
(
|
|
1417
|
-
|
|
1417
|
+
(v) => {
|
|
1418
|
+
v && (p.value = v);
|
|
1418
1419
|
},
|
|
1419
1420
|
{ immediate: !0 }
|
|
1420
1421
|
);
|
|
1421
|
-
const d =
|
|
1422
|
-
|
|
1422
|
+
const d = y(["-"]);
|
|
1423
|
+
F(
|
|
1423
1424
|
() => e.expandedKeys,
|
|
1424
|
-
(
|
|
1425
|
-
|
|
1425
|
+
(v) => {
|
|
1426
|
+
v && (d.value = v);
|
|
1426
1427
|
},
|
|
1427
1428
|
{ immediate: !0 }
|
|
1428
1429
|
);
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1430
|
+
const u = (v, s) => {
|
|
1431
|
+
v.length === 0 && v.push(...p.value), v.length > 0 && (o.node.value = s == null ? void 0 : s.node.dataRef), p.value = v, i("update:selectedKeys", v), i("select", v, s);
|
|
1431
1432
|
};
|
|
1432
|
-
return
|
|
1433
|
-
|
|
1433
|
+
return ee(() => {
|
|
1434
|
+
o.fieldMap || (o.fieldMap = {
|
|
1434
1435
|
label: "Name",
|
|
1435
1436
|
key: "Id",
|
|
1436
1437
|
value: "Id",
|
|
1437
1438
|
icon: "Icon"
|
|
1438
|
-
}),
|
|
1439
|
-
}), (
|
|
1439
|
+
}), o.data.value ? n.value = ve(o.fieldMap, o.data.value) : o.autoload && Ge(o);
|
|
1440
|
+
}), (v, s) => (f(), b(r(Qt), L({
|
|
1440
1441
|
class: "w-full",
|
|
1441
1442
|
"show-line": !0,
|
|
1442
|
-
"tree-data":
|
|
1443
|
+
"tree-data": n.value,
|
|
1443
1444
|
"expanded-keys": d.value,
|
|
1444
|
-
"onUpdate:expandedKeys":
|
|
1445
|
+
"onUpdate:expandedKeys": s[0] || (s[0] = (m) => d.value = m),
|
|
1445
1446
|
"selected-keys": p.value,
|
|
1446
|
-
loading: r(
|
|
1447
|
-
onSelect:
|
|
1448
|
-
}, r(
|
|
1447
|
+
loading: r(o).isTreeLoading,
|
|
1448
|
+
onSelect: u
|
|
1449
|
+
}, r(t)), {
|
|
1449
1450
|
title: h(({ key: m, label: c, icon: g }) => [
|
|
1450
|
-
|
|
1451
|
+
D(v.$slots, "title", {
|
|
1451
1452
|
label: c,
|
|
1452
1453
|
key: m,
|
|
1453
1454
|
icon: g
|
|
1454
1455
|
}, () => [
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1456
|
+
I("div", Oa, [
|
|
1457
|
+
S(r(K), { icon: g }, null, 8, ["icon"]),
|
|
1458
|
+
I("span", Ra, M(c), 1)
|
|
1458
1459
|
])
|
|
1459
1460
|
])
|
|
1460
1461
|
]),
|
|
1461
1462
|
_: 3
|
|
1462
1463
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1463
1464
|
}
|
|
1464
|
-
}),
|
|
1465
|
+
}), zl = /* @__PURE__ */ te(Ct, [["__scopeId", "data-v-87722b44"]]), Aa = { class: "relative w-[248px] max-w-[248px]" }, za = {
|
|
1465
1466
|
key: 0,
|
|
1466
1467
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1467
|
-
},
|
|
1468
|
+
}, Ka = /* @__PURE__ */ T({
|
|
1468
1469
|
inheritAttrs: !1,
|
|
1469
1470
|
__name: "index",
|
|
1470
|
-
props:
|
|
1471
|
+
props: St,
|
|
1471
1472
|
emits: ["change", "update:labels", "update:value"],
|
|
1472
|
-
setup(l, { emit:
|
|
1473
|
-
var
|
|
1474
|
-
const e = l,
|
|
1475
|
-
|
|
1476
|
-
const p =
|
|
1477
|
-
...
|
|
1478
|
-
url: ((
|
|
1479
|
-
fieldMap: (
|
|
1480
|
-
params: (
|
|
1473
|
+
setup(l, { emit: a }) {
|
|
1474
|
+
var $, E, P;
|
|
1475
|
+
const e = l, t = oe(), o = V(), n = $t(e.url, e), i = e.optionCtrl ?? n.optionCtrl;
|
|
1476
|
+
i.inputFactory = zt(o);
|
|
1477
|
+
const p = y({
|
|
1478
|
+
...i == null ? void 0 : i.url,
|
|
1479
|
+
url: (($ = i == null ? void 0 : i.url) == null ? void 0 : $.url) || "",
|
|
1480
|
+
fieldMap: (i == null ? void 0 : i.fieldMap) || ((E = i == null ? void 0 : i.url) == null ? void 0 : E.fieldMap),
|
|
1481
|
+
params: (i == null ? void 0 : i.params) || ((P = i == null ? void 0 : i.url) == null ? void 0 : P.params),
|
|
1481
1482
|
loadingText: !1
|
|
1482
|
-
}), { editorCtrl: d, errInfo:
|
|
1483
|
-
|
|
1483
|
+
}), { editorCtrl: d, errInfo: u, labelText: v } = o, s = y(t.placeholder);
|
|
1484
|
+
F(
|
|
1484
1485
|
() => p.value.loading,
|
|
1485
|
-
(
|
|
1486
|
-
|
|
1486
|
+
(k) => {
|
|
1487
|
+
k ? s.value = "" : s.value || (s.value = "请选择" + v.value);
|
|
1487
1488
|
},
|
|
1488
1489
|
{ immediate: !0 }
|
|
1489
1490
|
);
|
|
1490
|
-
const m =
|
|
1491
|
-
|
|
1492
|
-
const c =
|
|
1493
|
-
|
|
1494
|
-
() =>
|
|
1495
|
-
(
|
|
1496
|
-
c.value =
|
|
1491
|
+
const m = a;
|
|
1492
|
+
o.inputEmit = m;
|
|
1493
|
+
const c = y((i == null ? void 0 : i.options.value) || []);
|
|
1494
|
+
i && F(
|
|
1495
|
+
() => i.options.value,
|
|
1496
|
+
(k) => {
|
|
1497
|
+
c.value = k || [];
|
|
1497
1498
|
},
|
|
1498
1499
|
{ immediate: !0, deep: !0 }
|
|
1499
1500
|
);
|
|
1500
|
-
const g = (
|
|
1501
|
-
if (!
|
|
1501
|
+
const g = (k, R) => {
|
|
1502
|
+
if (!R || R.length === 0) {
|
|
1502
1503
|
m("update:labels", []), m("update:value", []);
|
|
1503
1504
|
return;
|
|
1504
1505
|
}
|
|
1505
|
-
const
|
|
1506
|
-
m("update:labels",
|
|
1506
|
+
const j = R.map((ye) => ye.value), Q = Et(i, e, j), pe = Dt(Q);
|
|
1507
|
+
m("update:labels", pe), m("update:value", j), u != null && u.value.errClass && d && Z(d);
|
|
1507
1508
|
};
|
|
1508
|
-
return
|
|
1509
|
-
|
|
1510
|
-
}),
|
|
1509
|
+
return Pe(() => {
|
|
1510
|
+
i && i.autoload && (i.reload.value = !0);
|
|
1511
|
+
}), ee(() => {
|
|
1511
1512
|
p.value && !p.value.fieldMap && (p.value.fieldMap = {
|
|
1512
1513
|
title: "Name",
|
|
1513
1514
|
label: "Name",
|
|
1514
1515
|
value: "Id",
|
|
1515
1516
|
key: "Id"
|
|
1516
|
-
}),
|
|
1517
|
-
}),
|
|
1518
|
-
|
|
1519
|
-
}), (
|
|
1520
|
-
var
|
|
1521
|
-
return
|
|
1522
|
-
c.value.length ?
|
|
1523
|
-
|
|
1524
|
-
|
|
1517
|
+
}), i && Tt(i.autoload, i, e);
|
|
1518
|
+
}), Kt(() => {
|
|
1519
|
+
i && Ft(i, e);
|
|
1520
|
+
}), (k, R) => {
|
|
1521
|
+
var j;
|
|
1522
|
+
return f(), w("div", Aa, [
|
|
1523
|
+
c.value.length ? C("", !0) : (f(), w("div", za, [
|
|
1524
|
+
S(r(It), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1525
|
+
R[0] || (R[0] = I("span", null, "数据加载中...", -1))
|
|
1525
1526
|
])),
|
|
1526
|
-
|
|
1527
|
+
S(r(Gt), L({
|
|
1527
1528
|
options: c.value,
|
|
1528
|
-
class: [(
|
|
1529
|
+
class: [(j = r(u)) == null ? void 0 : j.errClass],
|
|
1529
1530
|
"allow-clear": !0,
|
|
1530
|
-
placeholder: c.value.length > 0 ? "请选择" + r(
|
|
1531
|
+
placeholder: c.value.length > 0 ? "请选择" + r(v) : "",
|
|
1531
1532
|
onChange: g
|
|
1532
|
-
}, r(
|
|
1533
|
+
}, r(t)), null, 16, ["options", "class", "placeholder"])
|
|
1533
1534
|
]);
|
|
1534
1535
|
};
|
|
1535
1536
|
}
|
|
1536
|
-
}),
|
|
1537
|
-
function
|
|
1538
|
-
return
|
|
1539
|
-
for (var
|
|
1540
|
-
var e = arguments[
|
|
1541
|
-
for (var
|
|
1537
|
+
}), Kl = /* @__PURE__ */ te(Ka, [["__scopeId", "data-v-51ddfce3"]]), Vl = /* @__PURE__ */ te(Pt, [["__scopeId", "data-v-249ea772"]]);
|
|
1538
|
+
function he() {
|
|
1539
|
+
return he = Object.assign ? Object.assign.bind() : function(l) {
|
|
1540
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
1541
|
+
var e = arguments[a];
|
|
1542
|
+
for (var t in e) ({}).hasOwnProperty.call(e, t) && (l[t] = e[t]);
|
|
1542
1543
|
}
|
|
1543
1544
|
return l;
|
|
1544
|
-
},
|
|
1545
|
+
}, he.apply(null, arguments);
|
|
1545
1546
|
}
|
|
1546
|
-
const
|
|
1547
|
+
const Va = {
|
|
1547
1548
|
locale: "zh_CN",
|
|
1548
1549
|
today: "今天",
|
|
1549
1550
|
now: "此刻",
|
|
@@ -1570,11 +1571,11 @@ const Dt = {
|
|
|
1570
1571
|
nextDecade: "下一年代",
|
|
1571
1572
|
previousCentury: "上一世纪",
|
|
1572
1573
|
nextCentury: "下一世纪"
|
|
1573
|
-
},
|
|
1574
|
+
}, ja = {
|
|
1574
1575
|
placeholder: "请选择时间",
|
|
1575
1576
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1576
|
-
},
|
|
1577
|
-
lang:
|
|
1577
|
+
}, be = {
|
|
1578
|
+
lang: he({
|
|
1578
1579
|
placeholder: "请选择日期",
|
|
1579
1580
|
yearPlaceholder: "请选择年份",
|
|
1580
1581
|
quarterPlaceholder: "请选择季度",
|
|
@@ -1585,268 +1586,271 @@ const Dt = {
|
|
|
1585
1586
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1586
1587
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1587
1588
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1588
|
-
},
|
|
1589
|
-
timePickerLocale:
|
|
1589
|
+
}, Va),
|
|
1590
|
+
timePickerLocale: he({}, ja)
|
|
1590
1591
|
};
|
|
1591
|
-
|
|
1592
|
-
const
|
|
1592
|
+
be.lang.ok = "确定";
|
|
1593
|
+
const jl = /* @__PURE__ */ T({
|
|
1593
1594
|
__name: "index",
|
|
1594
1595
|
props: {
|
|
1595
1596
|
valueFormat: {}
|
|
1596
1597
|
},
|
|
1597
1598
|
setup(l) {
|
|
1598
|
-
const
|
|
1599
|
-
|
|
1600
|
-
},
|
|
1599
|
+
const a = l, { editorCtrl: e, labelText: t, errInfo: o } = V(), n = () => {
|
|
1600
|
+
o != null && o.value.errClass && e && Z(e);
|
|
1601
|
+
}, i = y(a.valueFormat ?? "YYYY-MM-DD");
|
|
1601
1602
|
return (p, d) => {
|
|
1602
|
-
var
|
|
1603
|
-
return
|
|
1604
|
-
class:
|
|
1605
|
-
placeholder: "请选择" + r(
|
|
1606
|
-
locale: r(
|
|
1607
|
-
valueFormat:
|
|
1608
|
-
onBlur:
|
|
1603
|
+
var u;
|
|
1604
|
+
return f(), b(r(Jt), {
|
|
1605
|
+
class: U(["w-full", [((u = r(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1606
|
+
placeholder: "请选择" + r(t),
|
|
1607
|
+
locale: r(be),
|
|
1608
|
+
valueFormat: i.value,
|
|
1609
|
+
onBlur: n
|
|
1609
1610
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1610
1611
|
};
|
|
1611
1612
|
}
|
|
1612
|
-
}),
|
|
1613
|
+
}), Ya = /* @__PURE__ */ T({
|
|
1613
1614
|
__name: "index",
|
|
1614
1615
|
props: {
|
|
1615
1616
|
value: {},
|
|
1616
1617
|
undefValue: { type: Boolean, default: !1 }
|
|
1617
1618
|
},
|
|
1618
1619
|
emits: ["update:value"],
|
|
1619
|
-
setup(l, { emit:
|
|
1620
|
-
const { editorCtrl: e, labelText:
|
|
1621
|
-
|
|
1622
|
-
},
|
|
1623
|
-
|
|
1624
|
-
() =>
|
|
1625
|
-
(
|
|
1626
|
-
|
|
1620
|
+
setup(l, { emit: a }) {
|
|
1621
|
+
const { editorCtrl: e, labelText: t, errInfo: o } = V(), n = () => {
|
|
1622
|
+
o != null && o.value.errClass && e && Z(e);
|
|
1623
|
+
}, i = l, p = i.value === void 0 ? !0 : i.undefValue, d = a, u = y(i.value);
|
|
1624
|
+
F(
|
|
1625
|
+
() => i.value,
|
|
1626
|
+
(s) => {
|
|
1627
|
+
u.value = s;
|
|
1627
1628
|
},
|
|
1628
1629
|
{ immediate: !0 }
|
|
1629
1630
|
// 立即同步初始值
|
|
1630
|
-
),
|
|
1631
|
-
() =>
|
|
1632
|
-
(
|
|
1633
|
-
if (
|
|
1631
|
+
), F(
|
|
1632
|
+
() => u.value,
|
|
1633
|
+
(s) => {
|
|
1634
|
+
if (u.value === "") {
|
|
1634
1635
|
d("update:value", void 0);
|
|
1635
1636
|
return;
|
|
1636
1637
|
}
|
|
1637
|
-
d("update:value",
|
|
1638
|
+
d("update:value", s);
|
|
1638
1639
|
}
|
|
1639
1640
|
);
|
|
1640
|
-
const
|
|
1641
|
-
|
|
1641
|
+
const v = () => {
|
|
1642
|
+
u.value === "" && (u.value = p ? void 0 : null);
|
|
1642
1643
|
};
|
|
1643
|
-
return (
|
|
1644
|
+
return (s, m) => {
|
|
1644
1645
|
var c, g;
|
|
1645
|
-
return
|
|
1646
|
+
return f(), b(r(ue), L({
|
|
1646
1647
|
class: [
|
|
1647
|
-
(c = r(
|
|
1648
|
-
((g = r(
|
|
1648
|
+
(c = r(o)) == null ? void 0 : c.errClass,
|
|
1649
|
+
((g = r(o)) == null ? void 0 : g.errClass) === "error" && !s.$slots.addonBefore && !s.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1649
1650
|
],
|
|
1650
|
-
value:
|
|
1651
|
-
"onUpdate:value": m[0] || (m[0] = (
|
|
1651
|
+
value: u.value,
|
|
1652
|
+
"onUpdate:value": m[0] || (m[0] = ($) => u.value = $),
|
|
1652
1653
|
autocomplete: "new-password",
|
|
1653
1654
|
"allow-clear": !0,
|
|
1654
|
-
placeholder: "请输入" + r(
|
|
1655
|
-
onBlur:
|
|
1656
|
-
onChange:
|
|
1657
|
-
},
|
|
1658
|
-
|
|
1655
|
+
placeholder: "请输入" + r(t),
|
|
1656
|
+
onBlur: n,
|
|
1657
|
+
onChange: v
|
|
1658
|
+
}, s.$attrs), Xe({ _: 2 }, [
|
|
1659
|
+
s.$slots.addonBefore ? {
|
|
1659
1660
|
name: "addonBefore",
|
|
1660
1661
|
fn: h(() => [
|
|
1661
|
-
|
|
1662
|
+
D(s.$slots, "addonBefore")
|
|
1662
1663
|
]),
|
|
1663
1664
|
key: "0"
|
|
1664
1665
|
} : void 0,
|
|
1665
|
-
|
|
1666
|
+
s.$slots.addonAfter ? {
|
|
1666
1667
|
name: "addonAfter",
|
|
1667
1668
|
fn: h(() => [
|
|
1668
|
-
|
|
1669
|
+
D(s.$slots, "addonAfter")
|
|
1669
1670
|
]),
|
|
1670
1671
|
key: "1"
|
|
1671
1672
|
} : void 0
|
|
1672
1673
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1673
1674
|
};
|
|
1674
1675
|
}
|
|
1675
|
-
}),
|
|
1676
|
+
}), Wa = /* @__PURE__ */ T({
|
|
1676
1677
|
__name: "inputIcon",
|
|
1677
1678
|
props: {
|
|
1678
1679
|
value: {}
|
|
1679
1680
|
},
|
|
1680
1681
|
emits: ["update:value"],
|
|
1681
|
-
setup(l, { emit:
|
|
1682
|
-
const e = l,
|
|
1683
|
-
return
|
|
1682
|
+
setup(l, { emit: a }) {
|
|
1683
|
+
const e = l, t = a, o = y(void 0);
|
|
1684
|
+
return F(
|
|
1684
1685
|
() => e.value,
|
|
1685
|
-
(
|
|
1686
|
-
|
|
1686
|
+
(n) => {
|
|
1687
|
+
o.value = n ?? void 0;
|
|
1687
1688
|
},
|
|
1688
1689
|
{ immediate: !0 }
|
|
1689
|
-
),
|
|
1690
|
-
() =>
|
|
1691
|
-
(
|
|
1692
|
-
|
|
1690
|
+
), F(
|
|
1691
|
+
() => o.value,
|
|
1692
|
+
(n) => {
|
|
1693
|
+
t("update:value", n);
|
|
1693
1694
|
}
|
|
1694
|
-
), (
|
|
1695
|
-
value:
|
|
1696
|
-
"onUpdate:value":
|
|
1697
|
-
},
|
|
1695
|
+
), (n, i) => (f(), b(Ya, L({
|
|
1696
|
+
value: o.value,
|
|
1697
|
+
"onUpdate:value": i[0] || (i[0] = (p) => o.value = p)
|
|
1698
|
+
}, n.$attrs), {
|
|
1698
1699
|
addonBefore: h(() => [
|
|
1699
|
-
|
|
1700
|
+
S(r(K), {
|
|
1700
1701
|
class: "!w-4 !h-4",
|
|
1701
|
-
icon:
|
|
1702
|
+
icon: o.value
|
|
1702
1703
|
}, null, 8, ["icon"])
|
|
1703
1704
|
]),
|
|
1704
1705
|
_: 1
|
|
1705
1706
|
}, 16, ["value"]));
|
|
1706
1707
|
}
|
|
1707
|
-
}),
|
|
1708
|
+
}), Yl = /* @__PURE__ */ te(Wa, [["__scopeId", "data-v-358b82ef"]]), Wl = /* @__PURE__ */ T({
|
|
1708
1709
|
__name: "inputPassword",
|
|
1709
1710
|
setup(l) {
|
|
1710
|
-
const { editorCtrl:
|
|
1711
|
-
|
|
1711
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = V(), o = () => {
|
|
1712
|
+
t != null && t.value.errClass && a && Z(a);
|
|
1712
1713
|
};
|
|
1713
|
-
return (
|
|
1714
|
+
return (n, i) => {
|
|
1714
1715
|
var p;
|
|
1715
|
-
return
|
|
1716
|
-
class: ((p = r(
|
|
1716
|
+
return f(), b(r(Xt), L({
|
|
1717
|
+
class: ((p = r(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1717
1718
|
"allow-clear": !0,
|
|
1718
1719
|
autocomplete: "new-password",
|
|
1719
1720
|
placeholder: "请输入" + r(e),
|
|
1720
|
-
onBlur:
|
|
1721
|
-
},
|
|
1721
|
+
onBlur: o
|
|
1722
|
+
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1722
1723
|
};
|
|
1723
1724
|
}
|
|
1724
|
-
}),
|
|
1725
|
+
}), ql = /* @__PURE__ */ T({
|
|
1725
1726
|
__name: "inputNumber",
|
|
1726
1727
|
setup(l) {
|
|
1727
|
-
const { editorCtrl:
|
|
1728
|
-
|
|
1728
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = V(), o = () => {
|
|
1729
|
+
t != null && t.value.errClass && a && Z(a);
|
|
1729
1730
|
};
|
|
1730
|
-
return (
|
|
1731
|
+
return (n, i) => {
|
|
1731
1732
|
var p;
|
|
1732
|
-
return
|
|
1733
|
-
class: [[((p = r(
|
|
1734
|
-
onBlur:
|
|
1733
|
+
return f(), b(r(Zt), L({
|
|
1734
|
+
class: [[((p = r(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1735
|
+
onBlur: o,
|
|
1735
1736
|
"allow-clear": !1,
|
|
1736
1737
|
placeholder: "请输入" + r(e)
|
|
1737
|
-
},
|
|
1738
|
+
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1738
1739
|
};
|
|
1739
1740
|
}
|
|
1740
|
-
}),
|
|
1741
|
+
}), qa = { class: "flex flex-col gap-2" }, Ha = { key: 1 }, Hl = /* @__PURE__ */ T({
|
|
1741
1742
|
__name: "index",
|
|
1742
1743
|
props: {
|
|
1743
1744
|
value: {},
|
|
1744
1745
|
selectList: {},
|
|
1746
|
+
ignoreList: {},
|
|
1745
1747
|
fieldWidth: {},
|
|
1746
1748
|
labelHolder: {},
|
|
1747
1749
|
valueHolder: {}
|
|
1748
1750
|
},
|
|
1749
1751
|
emits: ["update:value"],
|
|
1750
|
-
setup(l, { emit:
|
|
1751
|
-
const e = l,
|
|
1752
|
-
let
|
|
1752
|
+
setup(l, { emit: a }) {
|
|
1753
|
+
const e = l, t = a, o = y(!(e.selectList && e.selectList.length > 0)), n = y([]);
|
|
1754
|
+
let i = !1;
|
|
1753
1755
|
const p = () => {
|
|
1754
|
-
e.selectList && e.selectList.length > 0 ?
|
|
1756
|
+
e.selectList && e.selectList.length > 0 ? n.value = e.selectList.map((s) => ({
|
|
1755
1757
|
id: Date.now() + Math.random(),
|
|
1756
|
-
text:
|
|
1757
|
-
field:
|
|
1758
|
+
text: s.text,
|
|
1759
|
+
field: s.field,
|
|
1758
1760
|
// 如果value中有对应的field,使用value中的值,否则使用selectList中的默认值
|
|
1759
|
-
value: e.value[
|
|
1760
|
-
})) : e.value && Object.keys(e.value).length > 0 ?
|
|
1761
|
+
value: e.value[s.field] ?? s.value
|
|
1762
|
+
})) : e.value && Object.keys(e.value).length > 0 ? n.value = Object.entries(e.value).filter(([s]) => !e.ignoreList || !e.ignoreList.includes(s)).map(([s, m]) => ({
|
|
1761
1763
|
id: Date.now() + Math.random(),
|
|
1762
|
-
field:
|
|
1764
|
+
field: s,
|
|
1763
1765
|
value: m
|
|
1764
|
-
})) :
|
|
1766
|
+
})) : n.value = [];
|
|
1765
1767
|
};
|
|
1766
|
-
|
|
1768
|
+
F(
|
|
1767
1769
|
() => e.value,
|
|
1768
1770
|
() => {
|
|
1769
|
-
|
|
1771
|
+
i || p(), i = !1;
|
|
1770
1772
|
},
|
|
1771
1773
|
{ immediate: !0 }
|
|
1772
1774
|
);
|
|
1773
1775
|
const d = () => {
|
|
1774
|
-
let
|
|
1775
|
-
e.selectList && e.selectList.length > 0 ? (
|
|
1776
|
-
m.field && (
|
|
1777
|
-
})) :
|
|
1776
|
+
let s;
|
|
1777
|
+
e.selectList && e.selectList.length > 0 ? (s = { ...e.value }, n.value.forEach((m) => {
|
|
1778
|
+
m.field && (s[m.field] = m.value);
|
|
1779
|
+
})) : (s = n.value.reduce(
|
|
1778
1780
|
(m, c) => (c.field && (m[c.field] = c.value), m),
|
|
1779
1781
|
{}
|
|
1780
|
-
),
|
|
1781
|
-
|
|
1782
|
-
|
|
1782
|
+
), e.ignoreList && e.ignoreList.length > 0 && e.ignoreList.forEach((m) => {
|
|
1783
|
+
e.value[m] !== void 0 && (s[m] = e.value[m]);
|
|
1784
|
+
})), i = !0, t("update:value", s);
|
|
1785
|
+
}, u = () => {
|
|
1786
|
+
n.value.push({
|
|
1783
1787
|
id: Date.now() + Math.random(),
|
|
1784
1788
|
field: "",
|
|
1785
1789
|
value: ""
|
|
1786
1790
|
});
|
|
1787
|
-
},
|
|
1791
|
+
}, v = () => {
|
|
1788
1792
|
d();
|
|
1789
1793
|
};
|
|
1790
|
-
return (
|
|
1791
|
-
(
|
|
1794
|
+
return (s, m) => (f(), w("div", qa, [
|
|
1795
|
+
(f(!0), w(A, null, H(n.value, (c) => (f(), w("div", {
|
|
1792
1796
|
key: c.id,
|
|
1793
1797
|
class: "flex items-center gap-2"
|
|
1794
1798
|
}, [
|
|
1795
|
-
|
|
1796
|
-
class:
|
|
1799
|
+
I("div", {
|
|
1800
|
+
class: U([s.fieldWidth ? `w-[${s.fieldWidth}%]` : "w-[33%]"])
|
|
1797
1801
|
}, [
|
|
1798
|
-
!
|
|
1802
|
+
!s.selectList || s.selectList.length === 0 ? (f(), b(r(ue), {
|
|
1799
1803
|
key: 0,
|
|
1800
1804
|
value: c.field,
|
|
1801
1805
|
"onUpdate:value": (g) => c.field = g,
|
|
1802
1806
|
title: c.text || c.field,
|
|
1803
1807
|
class: "w-full",
|
|
1804
|
-
placeholder: c.text ||
|
|
1805
|
-
onInput:
|
|
1806
|
-
disabled: !
|
|
1807
|
-
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (
|
|
1808
|
-
|
|
1808
|
+
placeholder: c.text || s.labelHolder || "配置名",
|
|
1809
|
+
onInput: v,
|
|
1810
|
+
disabled: !o.value
|
|
1811
|
+
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (f(), w("div", Ha, [
|
|
1812
|
+
S(r(ue), {
|
|
1809
1813
|
value: c.text,
|
|
1810
1814
|
"onUpdate:value": (g) => c.text = g,
|
|
1811
1815
|
title: c.text,
|
|
1812
1816
|
disabled: !0,
|
|
1813
1817
|
class: "w-[100%]"
|
|
1814
1818
|
}, null, 8, ["value", "onUpdate:value", "title"]),
|
|
1815
|
-
|
|
1819
|
+
S(r(ue), {
|
|
1816
1820
|
type: "hidden",
|
|
1817
1821
|
value: c.field,
|
|
1818
1822
|
"onUpdate:value": (g) => c.field = g
|
|
1819
1823
|
}, null, 8, ["value", "onUpdate:value"])
|
|
1820
1824
|
]))
|
|
1821
1825
|
], 2),
|
|
1822
|
-
m[0] || (m[0] =
|
|
1823
|
-
|
|
1824
|
-
class:
|
|
1826
|
+
m[0] || (m[0] = I("div", { class: "w-[3%]" }, "=", -1)),
|
|
1827
|
+
I("div", {
|
|
1828
|
+
class: U([s.fieldWidth ? `w-[${97 - s.fieldWidth}%]` : "w-[64%]"])
|
|
1825
1829
|
}, [
|
|
1826
|
-
|
|
1830
|
+
S(r(ue), {
|
|
1827
1831
|
value: c.value,
|
|
1828
1832
|
"onUpdate:value": (g) => c.value = g,
|
|
1829
|
-
placeholder:
|
|
1830
|
-
onInput:
|
|
1833
|
+
placeholder: s.valueHolder || "请输入" + c.text || "请输入配置值",
|
|
1834
|
+
onInput: v,
|
|
1831
1835
|
title: c.value
|
|
1832
1836
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1833
1837
|
], 2)
|
|
1834
1838
|
]))), 128)),
|
|
1835
|
-
|
|
1839
|
+
o.value ? (f(), b(r(at), {
|
|
1836
1840
|
key: 0,
|
|
1837
|
-
onClick:
|
|
1841
|
+
onClick: u,
|
|
1838
1842
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1839
1843
|
size: "small"
|
|
1840
1844
|
}, {
|
|
1841
1845
|
default: h(() => m[1] || (m[1] = [
|
|
1842
|
-
|
|
1846
|
+
O(" 新增配置行 ")
|
|
1843
1847
|
])),
|
|
1844
1848
|
_: 1,
|
|
1845
1849
|
__: [1]
|
|
1846
|
-
})) :
|
|
1850
|
+
})) : C("", !0)
|
|
1847
1851
|
]));
|
|
1848
1852
|
}
|
|
1849
|
-
}),
|
|
1853
|
+
}), Qa = /* @__PURE__ */ te(Ut, [["__scopeId", "data-v-aa237552"]]), Ql = /* @__PURE__ */ T({
|
|
1850
1854
|
__name: "radioStatus",
|
|
1851
1855
|
props: {
|
|
1852
1856
|
/**
|
|
@@ -1874,13 +1878,13 @@ const bl = /* @__PURE__ */ S({
|
|
|
1874
1878
|
}
|
|
1875
1879
|
},
|
|
1876
1880
|
setup(l) {
|
|
1877
|
-
const
|
|
1878
|
-
return
|
|
1881
|
+
const a = l, e = y(JSON.parse(JSON.stringify(Qe.getOptions(a.dataKey))));
|
|
1882
|
+
return a.all === !0 && e.value.unshift({
|
|
1879
1883
|
label: "全部",
|
|
1880
|
-
value:
|
|
1881
|
-
}), (
|
|
1884
|
+
value: a.allValue || [0, 1]
|
|
1885
|
+
}), (t, o) => (f(), b(Qa, { data: e.value }, null, 8, ["data"]));
|
|
1882
1886
|
}
|
|
1883
|
-
}),
|
|
1887
|
+
}), Gl = /* @__PURE__ */ T({
|
|
1884
1888
|
__name: "index",
|
|
1885
1889
|
props: {
|
|
1886
1890
|
startDate: {},
|
|
@@ -1888,75 +1892,75 @@ const bl = /* @__PURE__ */ S({
|
|
|
1888
1892
|
valueFormat: { default: "YYYY-MM-DD" }
|
|
1889
1893
|
},
|
|
1890
1894
|
emits: ["update:startDate", "update:endDate"],
|
|
1891
|
-
setup(l, { emit:
|
|
1892
|
-
const e = l,
|
|
1893
|
-
const
|
|
1894
|
-
if (!(!
|
|
1895
|
+
setup(l, { emit: a }) {
|
|
1896
|
+
const e = l, t = a, o = V(), { errInfo: n } = o, i = Y(() => e.valueFormat), p = Y(() => {
|
|
1897
|
+
const u = e.startDate, v = e.endDate;
|
|
1898
|
+
if (!(!u || !v))
|
|
1895
1899
|
try {
|
|
1896
|
-
const
|
|
1897
|
-
return !
|
|
1900
|
+
const s = Ce(u), m = Ce(v);
|
|
1901
|
+
return !s.isValid() || !m.isValid() ? void 0 : [s, m];
|
|
1898
1902
|
} catch {
|
|
1899
1903
|
return;
|
|
1900
1904
|
}
|
|
1901
|
-
}), d = (
|
|
1902
|
-
if (!
|
|
1903
|
-
|
|
1905
|
+
}), d = (u, v) => {
|
|
1906
|
+
if (!u || !v || v.length !== 2) {
|
|
1907
|
+
t("update:startDate", null), t("update:endDate", null);
|
|
1904
1908
|
return;
|
|
1905
1909
|
}
|
|
1906
|
-
|
|
1910
|
+
t("update:startDate", v[0] || null), t("update:endDate", v[1] || null);
|
|
1907
1911
|
};
|
|
1908
|
-
return (
|
|
1909
|
-
var
|
|
1910
|
-
return
|
|
1911
|
-
class:
|
|
1912
|
-
locale: r(
|
|
1913
|
-
"value-format":
|
|
1912
|
+
return (u, v) => {
|
|
1913
|
+
var s;
|
|
1914
|
+
return f(), b(r(ea), {
|
|
1915
|
+
class: U([((s = r(n)) == null ? void 0 : s.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1916
|
+
locale: r(be),
|
|
1917
|
+
"value-format": i.value,
|
|
1914
1918
|
value: p.value,
|
|
1915
1919
|
onChange: d
|
|
1916
1920
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1917
1921
|
};
|
|
1918
1922
|
}
|
|
1919
|
-
}),
|
|
1923
|
+
}), Jl = /* @__PURE__ */ te(Lt, [["__scopeId", "data-v-b33df95f"]]), Xl = /* @__PURE__ */ T({
|
|
1920
1924
|
__name: "index",
|
|
1921
1925
|
setup(l) {
|
|
1922
|
-
const { editorCtrl:
|
|
1923
|
-
|
|
1926
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = V(), o = () => {
|
|
1927
|
+
t != null && t.value.errClass && a && Z(a);
|
|
1924
1928
|
};
|
|
1925
|
-
return (
|
|
1929
|
+
return (n, i) => {
|
|
1926
1930
|
var p;
|
|
1927
|
-
return
|
|
1928
|
-
class: ((p = r(
|
|
1931
|
+
return f(), b(r(ta), L({
|
|
1932
|
+
class: ((p = r(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1929
1933
|
"allow-clear": !0,
|
|
1930
1934
|
placeholder: "请输入" + r(e),
|
|
1931
|
-
onBlur:
|
|
1932
|
-
onKeyup:
|
|
1935
|
+
onBlur: o,
|
|
1936
|
+
onKeyup: i[0] || (i[0] = Re(ce(() => {
|
|
1933
1937
|
}, ["stop"]), ["enter", "native"])),
|
|
1934
|
-
onKeydown:
|
|
1938
|
+
onKeydown: i[1] || (i[1] = Re(ce(() => {
|
|
1935
1939
|
}, ["stop"]), ["enter", "native"]))
|
|
1936
|
-
},
|
|
1940
|
+
}, n.$attrs), null, 16, ["class", "placeholder"]);
|
|
1937
1941
|
};
|
|
1938
1942
|
}
|
|
1939
|
-
}),
|
|
1943
|
+
}), Zl = /* @__PURE__ */ T({
|
|
1940
1944
|
__name: "index",
|
|
1941
1945
|
props: {
|
|
1942
1946
|
valueFormat: {}
|
|
1943
1947
|
},
|
|
1944
1948
|
setup(l) {
|
|
1945
|
-
const
|
|
1946
|
-
|
|
1947
|
-
},
|
|
1949
|
+
const a = l, { editorCtrl: e, labelText: t, errInfo: o } = V(), n = () => {
|
|
1950
|
+
o != null && o.value.errClass && e && Z(e);
|
|
1951
|
+
}, i = y(a.valueFormat ?? "HH:mm");
|
|
1948
1952
|
return (p, d) => {
|
|
1949
|
-
var
|
|
1950
|
-
return
|
|
1951
|
-
class:
|
|
1952
|
-
placeholder: "请选择" + r(
|
|
1953
|
-
locale: r(
|
|
1954
|
-
valueFormat:
|
|
1955
|
-
onBlur:
|
|
1953
|
+
var u;
|
|
1954
|
+
return f(), b(r(aa), {
|
|
1955
|
+
class: U(["w-full", [((u = r(o)) == null ? void 0 : u.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1956
|
+
placeholder: "请选择" + r(t),
|
|
1957
|
+
locale: r(be),
|
|
1958
|
+
valueFormat: i.value,
|
|
1959
|
+
onBlur: n
|
|
1956
1960
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1957
1961
|
};
|
|
1958
1962
|
}
|
|
1959
|
-
}),
|
|
1963
|
+
}), Ga = /* @__PURE__ */ T({
|
|
1960
1964
|
__name: "index",
|
|
1961
1965
|
props: {
|
|
1962
1966
|
autoload: { type: Boolean },
|
|
@@ -1965,55 +1969,55 @@ const bl = /* @__PURE__ */ S({
|
|
|
1965
1969
|
value: {}
|
|
1966
1970
|
},
|
|
1967
1971
|
emits: ["change", "update:value"],
|
|
1968
|
-
setup(l, { emit:
|
|
1969
|
-
const e = l,
|
|
1970
|
-
e.value && e.value.every((
|
|
1971
|
-
|
|
1972
|
-
}),
|
|
1972
|
+
setup(l, { emit: a }) {
|
|
1973
|
+
const e = l, t = y({ ...e.url }), { editorCtrl: o, labelText: n, errInfo: i } = V(), p = a, d = y([]), u = y([]);
|
|
1974
|
+
e.value && e.value.every((s) => {
|
|
1975
|
+
u.value.push(s.toString());
|
|
1976
|
+
}), F(
|
|
1973
1977
|
() => e.value,
|
|
1974
|
-
(
|
|
1975
|
-
|
|
1978
|
+
(s) => {
|
|
1979
|
+
s && (u.value = s);
|
|
1976
1980
|
}
|
|
1977
1981
|
);
|
|
1978
|
-
const
|
|
1979
|
-
p("update:value",
|
|
1982
|
+
const v = (s) => {
|
|
1983
|
+
p("update:value", s), p("change", s), u.value = s, i != null && i.value.errClass && o && Z(o);
|
|
1980
1984
|
};
|
|
1981
|
-
return
|
|
1982
|
-
if (
|
|
1983
|
-
const
|
|
1984
|
-
if (
|
|
1985
|
-
const m = await
|
|
1985
|
+
return ee(async () => {
|
|
1986
|
+
if (t.value) {
|
|
1987
|
+
const s = o == null ? void 0 : o.page;
|
|
1988
|
+
if (t.value.api || (t.value.api = s == null ? void 0 : s.api), t.value.authorize === void 0 && (t.value.authorize = s == null ? void 0 : s.authorize), e.autoload) {
|
|
1989
|
+
const m = await Je(o, {
|
|
1986
1990
|
urlKey: "list",
|
|
1987
|
-
url: { ...
|
|
1991
|
+
url: { ...t.value, url: t.value.url },
|
|
1988
1992
|
loadingText: !1,
|
|
1989
1993
|
params: e.params
|
|
1990
1994
|
});
|
|
1991
1995
|
d.value = (m == null ? void 0 : m.data) ?? [];
|
|
1992
1996
|
}
|
|
1993
1997
|
}
|
|
1994
|
-
}), (
|
|
1998
|
+
}), (s, m) => {
|
|
1995
1999
|
var c;
|
|
1996
|
-
return
|
|
1997
|
-
class: ((c = r(
|
|
1998
|
-
placeholder: "请输入" + r(
|
|
1999
|
-
targetKeys:
|
|
2000
|
-
onChange:
|
|
2001
|
-
},
|
|
2002
|
-
children: h(({ direction: g, disabled:
|
|
2003
|
-
|
|
2000
|
+
return f(), b(r(la), L({
|
|
2001
|
+
class: ((c = r(i)) == null ? void 0 : c.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
2002
|
+
placeholder: "请输入" + r(n),
|
|
2003
|
+
targetKeys: u.value,
|
|
2004
|
+
onChange: v
|
|
2005
|
+
}, s.$attrs), {
|
|
2006
|
+
children: h(({ direction: g, disabled: $, filteredItems: E, onItemSelectAll: P, onItemSelect: k, selectedKeys: R }) => [
|
|
2007
|
+
D(s.$slots, "children", {
|
|
2004
2008
|
direction: g,
|
|
2005
|
-
disabled:
|
|
2006
|
-
filteredItems:
|
|
2007
|
-
onItemSelectAll:
|
|
2008
|
-
onItemSelect:
|
|
2009
|
-
selectedKeys:
|
|
2009
|
+
disabled: $,
|
|
2010
|
+
filteredItems: E,
|
|
2011
|
+
onItemSelectAll: P,
|
|
2012
|
+
onItemSelect: k,
|
|
2013
|
+
selectedKeys: R
|
|
2010
2014
|
})
|
|
2011
2015
|
]),
|
|
2012
2016
|
_: 3
|
|
2013
2017
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
2014
2018
|
};
|
|
2015
2019
|
}
|
|
2016
|
-
}),
|
|
2020
|
+
}), er = /* @__PURE__ */ T({
|
|
2017
2021
|
__name: "transferTable",
|
|
2018
2022
|
props: {
|
|
2019
2023
|
/**
|
|
@@ -2039,65 +2043,65 @@ const bl = /* @__PURE__ */ S({
|
|
|
2039
2043
|
}
|
|
2040
2044
|
},
|
|
2041
2045
|
emits: ["update:value"],
|
|
2042
|
-
setup(l, { emit:
|
|
2043
|
-
const e = l,
|
|
2044
|
-
|
|
2045
|
-
() =>
|
|
2046
|
-
(
|
|
2047
|
-
|
|
2046
|
+
setup(l, { emit: a }) {
|
|
2047
|
+
const e = l, t = a, o = y(e.autoload), n = y(e.value), i = y(e.gridCtrl.primaryKey);
|
|
2048
|
+
F(
|
|
2049
|
+
() => n.value,
|
|
2050
|
+
(u) => {
|
|
2051
|
+
t("update:value", u);
|
|
2048
2052
|
}
|
|
2049
|
-
),
|
|
2053
|
+
), F(
|
|
2050
2054
|
() => e.value,
|
|
2051
|
-
(
|
|
2052
|
-
|
|
2055
|
+
(u) => {
|
|
2056
|
+
u && (n.value = u);
|
|
2053
2057
|
}
|
|
2054
|
-
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable =
|
|
2055
|
-
const p = ({ disabled:
|
|
2058
|
+
), e.gridCtrl.autoload = !1, e.gridCtrl.remotePage = !1, e.gridCtrl.selectable = y(!0), e.gridCtrl.buttons = y([]), e.gridCtrl.tools = [];
|
|
2059
|
+
const p = ({ disabled: u, selectedKeys: v, onItemSelectAll: s, onItemSelect: m }) => ({
|
|
2056
2060
|
getCheckboxProps: (c) => ({
|
|
2057
2061
|
// 控制是否禁止
|
|
2058
|
-
disabled:
|
|
2062
|
+
disabled: u || c.disabled
|
|
2059
2063
|
}),
|
|
2060
2064
|
onSelectAll(c, g) {
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2065
|
+
const $ = g.filter((E) => !E.disabled).map(({ [i.value]: E }) => E);
|
|
2066
|
+
s($, c);
|
|
2063
2067
|
},
|
|
2064
|
-
onSelect({ [
|
|
2068
|
+
onSelect({ [i.value]: c }, g) {
|
|
2065
2069
|
m(c, g);
|
|
2066
2070
|
},
|
|
2067
|
-
selectedRowKeys:
|
|
2068
|
-
}), d =
|
|
2069
|
-
return
|
|
2070
|
-
if (
|
|
2071
|
-
const
|
|
2071
|
+
selectedRowKeys: v
|
|
2072
|
+
}), d = y([]);
|
|
2073
|
+
return ee(async () => {
|
|
2074
|
+
if (o.value) {
|
|
2075
|
+
const u = await Je(e.gridCtrl, {
|
|
2072
2076
|
urlKey: "list",
|
|
2073
2077
|
url: { ...e.gridCtrl.gridUrl, url: e.gridCtrl.gridUrl.url },
|
|
2074
2078
|
params: e.gridCtrl.gridQuery,
|
|
2075
2079
|
loadingText: !1
|
|
2076
2080
|
});
|
|
2077
|
-
d.value = (
|
|
2081
|
+
d.value = (u == null ? void 0 : u.data) ?? [];
|
|
2078
2082
|
}
|
|
2079
|
-
}), (
|
|
2083
|
+
}), (u, v) => (f(), b(Ga, L({
|
|
2080
2084
|
"data-source": d.value,
|
|
2081
|
-
"row-key": (
|
|
2082
|
-
value:
|
|
2083
|
-
"onUpdate:value":
|
|
2085
|
+
"row-key": (s) => s[i.value],
|
|
2086
|
+
value: n.value,
|
|
2087
|
+
"onUpdate:value": v[0] || (v[0] = (s) => n.value = s),
|
|
2084
2088
|
"list-style": {
|
|
2085
2089
|
width: "300px",
|
|
2086
2090
|
height: "500px"
|
|
2087
2091
|
},
|
|
2088
2092
|
"show-select-all": !1,
|
|
2089
2093
|
"show-search": !0,
|
|
2090
|
-
"filter-option": (
|
|
2094
|
+
"filter-option": (s, m) => {
|
|
2091
2095
|
for (const c of e.gridCtrl.columns.value)
|
|
2092
|
-
if (m[c.dataIndex].toString().indexOf(
|
|
2096
|
+
if (m[c.dataIndex].toString().indexOf(s) !== -1)
|
|
2093
2097
|
return !0;
|
|
2094
2098
|
return !1;
|
|
2095
2099
|
}
|
|
2096
|
-
},
|
|
2097
|
-
children: h(({ filteredItems:
|
|
2098
|
-
|
|
2100
|
+
}, u.$attrs), {
|
|
2101
|
+
children: h(({ filteredItems: s, onItemSelectAll: m, onItemSelect: c, selectedKeys: g }) => [
|
|
2102
|
+
S(r(lt), {
|
|
2099
2103
|
columns: l.gridCtrl.columns.value,
|
|
2100
|
-
"row-key":
|
|
2104
|
+
"row-key": i.value,
|
|
2101
2105
|
"row-selection": p({
|
|
2102
2106
|
disabled: !1,
|
|
2103
2107
|
selectedKeys: g,
|
|
@@ -2106,12 +2110,12 @@ const bl = /* @__PURE__ */ S({
|
|
|
2106
2110
|
}),
|
|
2107
2111
|
bordered: !1,
|
|
2108
2112
|
size: "small",
|
|
2109
|
-
"data-source":
|
|
2113
|
+
"data-source": s,
|
|
2110
2114
|
scroll: { x: 300 },
|
|
2111
|
-
"custom-row": (
|
|
2115
|
+
"custom-row": ($) => ({
|
|
2112
2116
|
onClick: () => {
|
|
2113
|
-
const
|
|
2114
|
-
c(
|
|
2117
|
+
const E = $[i.value];
|
|
2118
|
+
c(E, !g.includes(E));
|
|
2115
2119
|
}
|
|
2116
2120
|
})
|
|
2117
2121
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -2119,7 +2123,7 @@ const bl = /* @__PURE__ */ S({
|
|
|
2119
2123
|
_: 1
|
|
2120
2124
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
2121
2125
|
}
|
|
2122
|
-
}),
|
|
2126
|
+
}), Ja = /* @__PURE__ */ T({
|
|
2123
2127
|
__name: "index",
|
|
2124
2128
|
props: {
|
|
2125
2129
|
multiple: {
|
|
@@ -2145,83 +2149,294 @@ const bl = /* @__PURE__ */ S({
|
|
|
2145
2149
|
}
|
|
2146
2150
|
},
|
|
2147
2151
|
emits: ["change", "update:value"],
|
|
2148
|
-
setup(l, { emit:
|
|
2149
|
-
const e = l,
|
|
2150
|
-
|
|
2151
|
-
const
|
|
2152
|
-
|
|
2152
|
+
setup(l, { emit: a }) {
|
|
2153
|
+
const e = l, t = e.value === void 0 ? !0 : e.undefValue, o = e.treeCtrl, n = V(), { errInfo: i, labelText: p } = n, d = a;
|
|
2154
|
+
n.inputEmit = d;
|
|
2155
|
+
const u = y([]), v = y();
|
|
2156
|
+
F(
|
|
2153
2157
|
() => e.value,
|
|
2154
2158
|
(c) => {
|
|
2155
|
-
|
|
2159
|
+
v.value = c;
|
|
2156
2160
|
},
|
|
2157
2161
|
{ immediate: !0 }
|
|
2158
|
-
),
|
|
2159
|
-
() =>
|
|
2162
|
+
), F(
|
|
2163
|
+
() => v.value,
|
|
2160
2164
|
(c) => {
|
|
2161
2165
|
d("update:value", c);
|
|
2162
2166
|
}
|
|
2163
|
-
),
|
|
2164
|
-
() =>
|
|
2167
|
+
), F(
|
|
2168
|
+
() => o.data.value,
|
|
2165
2169
|
(c) => {
|
|
2166
|
-
c && (
|
|
2170
|
+
c && (u.value = o.fieldMap ? ve(o.fieldMap, c) : c);
|
|
2167
2171
|
},
|
|
2168
2172
|
{ immediate: !0 }
|
|
2169
2173
|
);
|
|
2170
|
-
const
|
|
2171
|
-
e.multiple ?
|
|
2174
|
+
const s = (c) => {
|
|
2175
|
+
e.multiple ? v.value = c ?? [] : c == null ? v.value = t ? void 0 : null : v.value = c, d("change", v.value);
|
|
2172
2176
|
};
|
|
2173
|
-
|
|
2177
|
+
Pe(() => {
|
|
2174
2178
|
e.treeCtrl && e.treeCtrl.autoload && (e.treeCtrl.reload.value = !0);
|
|
2175
|
-
}),
|
|
2176
|
-
|
|
2179
|
+
}), ee(() => {
|
|
2180
|
+
o.fieldMap || (o.fieldMap = {
|
|
2177
2181
|
label: "Name",
|
|
2178
2182
|
key: "Id",
|
|
2179
2183
|
value: "Id"
|
|
2180
|
-
}),
|
|
2184
|
+
}), o.data.value ? u.value = o.fieldMap ? ve(o.fieldMap, o.data.value) : o.data.value : e.treeCtrl.autoload && Ge(e.treeCtrl);
|
|
2181
2185
|
});
|
|
2182
2186
|
const m = () => {
|
|
2183
|
-
|
|
2187
|
+
v.value = t ? void 0 : null;
|
|
2184
2188
|
};
|
|
2185
2189
|
return (c, g) => {
|
|
2186
|
-
var
|
|
2187
|
-
return
|
|
2188
|
-
class: [[(
|
|
2190
|
+
var $;
|
|
2191
|
+
return f(), b(r(ra), L({
|
|
2192
|
+
class: [[($ = r(i)) == null ? void 0 : $.errClass], "w-full"],
|
|
2189
2193
|
"tree-line": "",
|
|
2190
2194
|
multiple: l.multiple,
|
|
2191
2195
|
"tree-default-expanded-keys": ["-"],
|
|
2192
|
-
value:
|
|
2193
|
-
"onUpdate:value": g[0] || (g[0] = (
|
|
2194
|
-
"tree-data":
|
|
2196
|
+
value: v.value,
|
|
2197
|
+
"onUpdate:value": g[0] || (g[0] = (E) => v.value = E),
|
|
2198
|
+
"tree-data": u.value,
|
|
2195
2199
|
placeholder: "请选择" + r(p),
|
|
2196
|
-
onChange:
|
|
2200
|
+
onChange: s,
|
|
2197
2201
|
onClear: m
|
|
2198
2202
|
}, c.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2199
2203
|
};
|
|
2200
2204
|
}
|
|
2201
|
-
}),
|
|
2205
|
+
}), tr = /* @__PURE__ */ te(Ja, [["__scopeId", "data-v-71d50074"]]), Xa = { class: "w-full mt-1" }, Za = { class: "flex flex-wrap gap-2" }, el = ["onMouseenter"], tl = { class: "w-16 h-16 border border-solid border-gray-200 rounded overflow-hidden" }, al = ["src"], ll = {
|
|
2206
|
+
key: 0,
|
|
2207
|
+
class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center gap-4 rounded"
|
|
2208
|
+
}, rl = ["onClick"], sl = ["onClick"], ol = {
|
|
2209
|
+
key: 0,
|
|
2210
|
+
class: "w-16 h-16"
|
|
2211
|
+
}, nl = /* @__PURE__ */ T({
|
|
2212
|
+
__name: "imageList",
|
|
2213
|
+
props: {
|
|
2214
|
+
autoUpload: { type: Boolean, default: !1 },
|
|
2215
|
+
uploadUrl: {},
|
|
2216
|
+
previewUrl: {},
|
|
2217
|
+
deleteUrl: {},
|
|
2218
|
+
fileList: { default: () => [] },
|
|
2219
|
+
placeholder: { default: "" },
|
|
2220
|
+
fileExt: {},
|
|
2221
|
+
maxFileSize: { default: 20 },
|
|
2222
|
+
maxCount: { default: 5 },
|
|
2223
|
+
maxCountTip: { type: Boolean, default: !1 },
|
|
2224
|
+
maxFileSizeTip: { type: Boolean, default: !0 },
|
|
2225
|
+
fileExtTip: { type: Boolean, default: !0 },
|
|
2226
|
+
parentPath: {},
|
|
2227
|
+
showDelete: { type: Boolean, default: !0 }
|
|
2228
|
+
},
|
|
2229
|
+
emits: ["update:file-list"],
|
|
2230
|
+
setup(l, { emit: a }) {
|
|
2231
|
+
const e = l, t = V(), { errInfo: o } = t, n = y(e.fileList), i = y([]), p = y(), d = a, u = Y(() => {
|
|
2232
|
+
var x;
|
|
2233
|
+
return (x = e.fileExt) != null && x.length ? e.fileExt.map((_) => `.${_}`).join(",") : "";
|
|
2234
|
+
}), v = (x) => {
|
|
2235
|
+
var _;
|
|
2236
|
+
if (e.fileExt && e.fileExt.length > 0) {
|
|
2237
|
+
const B = ((_ = x.name.split(".").pop()) == null ? void 0 : _.toLowerCase()) || "";
|
|
2238
|
+
if (!e.fileExt.includes(B))
|
|
2239
|
+
return q.error("文件类型不支持"), !1;
|
|
2240
|
+
}
|
|
2241
|
+
return x.size / 1024 / 1024 > e.maxFileSize ? (q.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : !0;
|
|
2242
|
+
}, s = () => e.maxCount > 1 && n.value.length >= e.maxCount, m = (x) => {
|
|
2243
|
+
const _ = x;
|
|
2244
|
+
return _.params || (_.params = {}), _.params.FileKey = _.name, e.parentPath && (_.params.FileKey = Ne.join("/", e.parentPath, _.name)), _;
|
|
2245
|
+
}, c = (x) => v(x) && e.autoUpload, g = async (x) => {
|
|
2246
|
+
if (x.length === 0) return;
|
|
2247
|
+
const _ = [...n.value];
|
|
2248
|
+
let B = !1;
|
|
2249
|
+
for (const z of x) {
|
|
2250
|
+
if (!v(z)) {
|
|
2251
|
+
B = !0;
|
|
2252
|
+
continue;
|
|
2253
|
+
}
|
|
2254
|
+
const N = m(z);
|
|
2255
|
+
if (e.maxCount === 1) {
|
|
2256
|
+
_.length = 0, _.push(N);
|
|
2257
|
+
break;
|
|
2258
|
+
}
|
|
2259
|
+
if (s()) {
|
|
2260
|
+
q.error(`最多上传 ${e.maxCount} 个文件`), B = !0;
|
|
2261
|
+
break;
|
|
2262
|
+
}
|
|
2263
|
+
const G = _.findIndex((_e) => _e.name === N.name);
|
|
2264
|
+
G > -1 ? _[G] = N : _.push(N);
|
|
2265
|
+
}
|
|
2266
|
+
(!B || _.length > 0) && (n.value = _), i.value = [];
|
|
2267
|
+
}, $ = (x) => {
|
|
2268
|
+
i.value = x, g(x);
|
|
2269
|
+
}, E = Y(() => ({
|
|
2270
|
+
accept: u.value,
|
|
2271
|
+
multiple: e.maxCount !== 1,
|
|
2272
|
+
fileList: i.value,
|
|
2273
|
+
"onUpdate:fileList": $,
|
|
2274
|
+
beforeUpload: c,
|
|
2275
|
+
listType: "text",
|
|
2276
|
+
showUploadList: !1,
|
|
2277
|
+
customRequest: async () => {
|
|
2278
|
+
if (e.autoUpload && e.uploadUrl)
|
|
2279
|
+
for (const x of n.value)
|
|
2280
|
+
x.percent === 0 && await Bt(e.uploadUrl, x);
|
|
2281
|
+
}
|
|
2282
|
+
}));
|
|
2283
|
+
F(
|
|
2284
|
+
() => e.fileList,
|
|
2285
|
+
(x) => {
|
|
2286
|
+
n.value = x;
|
|
2287
|
+
},
|
|
2288
|
+
{ deep: !0, immediate: !0 }
|
|
2289
|
+
), F(
|
|
2290
|
+
() => n.value,
|
|
2291
|
+
(x) => {
|
|
2292
|
+
d("update:file-list", x);
|
|
2293
|
+
},
|
|
2294
|
+
{ deep: !0 }
|
|
2295
|
+
), F(
|
|
2296
|
+
() => e.parentPath,
|
|
2297
|
+
(x) => {
|
|
2298
|
+
x && n.value.forEach((_) => {
|
|
2299
|
+
_.params.FileKey = Ne.join("/", x, _.fileName);
|
|
2300
|
+
});
|
|
2301
|
+
}
|
|
2302
|
+
);
|
|
2303
|
+
const P = y(!1), k = y(""), R = (x) => {
|
|
2304
|
+
const _ = n.value[x];
|
|
2305
|
+
k.value = pe(_), P.value = !0;
|
|
2306
|
+
}, j = (x) => {
|
|
2307
|
+
const _ = n.value[x];
|
|
2308
|
+
e.deleteUrl && _.minioFile && _.minioFile.Key ? Fe(e.deleteUrl, {
|
|
2309
|
+
Query: {
|
|
2310
|
+
FileKey: _.minioFile.Key
|
|
2311
|
+
}
|
|
2312
|
+
}).then((B) => {
|
|
2313
|
+
B && B.status === Ie.SUCCESS && (q.success("删除文件成功!"), n.value.splice(x, 1));
|
|
2314
|
+
}) : n.value.splice(x, 1);
|
|
2315
|
+
}, Q = y(/* @__PURE__ */ new Map()), pe = (x) => {
|
|
2316
|
+
if (x.originFileObj)
|
|
2317
|
+
return URL.createObjectURL(x.originFileObj);
|
|
2318
|
+
if (x.minioFile) {
|
|
2319
|
+
const _ = x.minioFile.Key;
|
|
2320
|
+
return Q.value.has(_) ? Q.value.get(_) : (ye(x), "");
|
|
2321
|
+
}
|
|
2322
|
+
return "";
|
|
2323
|
+
}, ye = async (x) => {
|
|
2324
|
+
if (!x.minioFile || !e.previewUrl) return;
|
|
2325
|
+
const _ = x.minioFile.Key;
|
|
2326
|
+
try {
|
|
2327
|
+
const B = `${e.previewUrl.url}?FileKey=${encodeURIComponent(x.minioFile.Key)}`, z = Nt() ? await Mt.getToken() : $e().getToken(), N = await fetch(B, {
|
|
2328
|
+
method: "GET",
|
|
2329
|
+
headers: {
|
|
2330
|
+
Authorization: `Bearer ${z}`
|
|
2331
|
+
}
|
|
2332
|
+
});
|
|
2333
|
+
if (N.ok) {
|
|
2334
|
+
const G = await N.blob(), _e = URL.createObjectURL(G);
|
|
2335
|
+
Q.value.set(_, _e);
|
|
2336
|
+
} else
|
|
2337
|
+
console.error("加载图片失败:", N.status);
|
|
2338
|
+
} catch (B) {
|
|
2339
|
+
console.error("加载图片失败:", B);
|
|
2340
|
+
}
|
|
2341
|
+
}, pt = Y(() => n.value.length < e.maxCount), xe = y(-1);
|
|
2342
|
+
return (x, _) => {
|
|
2343
|
+
const B = ne("auth");
|
|
2344
|
+
return f(), w("div", Xa, [
|
|
2345
|
+
I("div", Za, [
|
|
2346
|
+
(f(!0), w(A, null, H(n.value, (z, N) => (f(), w("div", {
|
|
2347
|
+
key: N,
|
|
2348
|
+
class: "relative image-item",
|
|
2349
|
+
onMouseenter: (G) => xe.value = N,
|
|
2350
|
+
onMouseleave: _[0] || (_[0] = (G) => xe.value = -1)
|
|
2351
|
+
}, [
|
|
2352
|
+
I("div", tl, [
|
|
2353
|
+
I("img", {
|
|
2354
|
+
src: pe(z),
|
|
2355
|
+
class: "w-full h-full object-cover"
|
|
2356
|
+
}, null, 8, al)
|
|
2357
|
+
]),
|
|
2358
|
+
xe.value === N ? (f(), w("div", ll, [
|
|
2359
|
+
x.previewUrl ? (f(), w("div", {
|
|
2360
|
+
key: 0,
|
|
2361
|
+
class: "flex items-center text-white cursor-pointer hover:text-blue-400",
|
|
2362
|
+
onClick: (G) => R(N)
|
|
2363
|
+
}, [
|
|
2364
|
+
S(r(K), {
|
|
2365
|
+
icon: "icon-eye",
|
|
2366
|
+
clickable: ""
|
|
2367
|
+
}),
|
|
2368
|
+
_[1] || (_[1] = I("span", { class: "text-sm ml-1" }, "预览", -1))
|
|
2369
|
+
], 8, rl)) : C("", !0),
|
|
2370
|
+
x.showDelete !== !1 ? (f(), w("div", {
|
|
2371
|
+
key: 1,
|
|
2372
|
+
class: "flex items-center text-white cursor-pointer hover:text-red-400",
|
|
2373
|
+
onClick: (G) => j(N)
|
|
2374
|
+
}, [
|
|
2375
|
+
S(r(K), {
|
|
2376
|
+
icon: "icon-new",
|
|
2377
|
+
angle: 45,
|
|
2378
|
+
clickable: ""
|
|
2379
|
+
}),
|
|
2380
|
+
_[2] || (_[2] = I("span", { class: "text-sm ml-1" }, "删除", -1))
|
|
2381
|
+
], 8, sl)) : C("", !0)
|
|
2382
|
+
])) : C("", !0)
|
|
2383
|
+
], 40, el))), 128)),
|
|
2384
|
+
pt.value ? (f(), w("div", ol, [
|
|
2385
|
+
X((f(), b(r(sa), L({
|
|
2386
|
+
ref_key: "fileUploader",
|
|
2387
|
+
ref: p
|
|
2388
|
+
}, E.value), {
|
|
2389
|
+
default: h(() => {
|
|
2390
|
+
var z;
|
|
2391
|
+
return [
|
|
2392
|
+
I("div", {
|
|
2393
|
+
class: U(["w-16 h-16 border border-dashed border-gray-300 rounded flex items-center justify-center cursor-pointer hover:border-blue-500 transition-colors", [(z = r(o)) == null ? void 0 : z.errClass]])
|
|
2394
|
+
}, [
|
|
2395
|
+
S(r(K), {
|
|
2396
|
+
icon: "icon-new",
|
|
2397
|
+
class: "text-gray-400 w-10 h-10"
|
|
2398
|
+
})
|
|
2399
|
+
], 2)
|
|
2400
|
+
];
|
|
2401
|
+
}),
|
|
2402
|
+
_: 1
|
|
2403
|
+
}, 16)), [
|
|
2404
|
+
[B, { role: ["Super", "Admin"], permit: ":imagelist:upload" }]
|
|
2405
|
+
])
|
|
2406
|
+
])) : C("", !0)
|
|
2407
|
+
]),
|
|
2408
|
+
S(r(oa), {
|
|
2409
|
+
preview: { visible: P.value, onVisibleChange: (z) => P.value = z },
|
|
2410
|
+
src: k.value,
|
|
2411
|
+
style: { display: "none" }
|
|
2412
|
+
}, null, 8, ["preview", "src"])
|
|
2413
|
+
]);
|
|
2414
|
+
};
|
|
2415
|
+
}
|
|
2416
|
+
}), ar = /* @__PURE__ */ te(nl, [["__scopeId", "data-v-26d707cc"]]), il = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, ul = { class: "flex w-full h-full min-h-full" }, cl = {
|
|
2202
2417
|
key: 0,
|
|
2203
2418
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2204
|
-
},
|
|
2419
|
+
}, dl = { class: "flex-1 h-full overflow-y-auto" }, lr = /* @__PURE__ */ T({
|
|
2205
2420
|
__name: "index",
|
|
2206
2421
|
props: {
|
|
2207
2422
|
left: { type: Boolean }
|
|
2208
2423
|
},
|
|
2209
2424
|
setup(l) {
|
|
2210
|
-
const { useToken:
|
|
2211
|
-
return (
|
|
2212
|
-
|
|
2425
|
+
const { useToken: a } = Ze, { token: e } = a();
|
|
2426
|
+
return (t, o) => (f(), w("div", il, [
|
|
2427
|
+
S(r(na), {
|
|
2213
2428
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2214
|
-
style:
|
|
2429
|
+
style: De({
|
|
2215
2430
|
backgroundColor: r(e).colorBgContainer
|
|
2216
2431
|
})
|
|
2217
2432
|
}, {
|
|
2218
2433
|
default: h(() => [
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
])) :
|
|
2223
|
-
|
|
2224
|
-
|
|
2434
|
+
I("div", ul, [
|
|
2435
|
+
t.left ? (f(), w("div", cl, [
|
|
2436
|
+
D(t.$slots, "left")
|
|
2437
|
+
])) : C("", !0),
|
|
2438
|
+
I("div", dl, [
|
|
2439
|
+
D(t.$slots, "default")
|
|
2225
2440
|
])
|
|
2226
2441
|
])
|
|
2227
2442
|
]),
|
|
@@ -2231,157 +2446,158 @@ const bl = /* @__PURE__ */ S({
|
|
|
2231
2446
|
}
|
|
2232
2447
|
});
|
|
2233
2448
|
export {
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2449
|
+
Zr as Alert,
|
|
2450
|
+
vs as AppIcon,
|
|
2451
|
+
ge as AppRouter,
|
|
2452
|
+
Yr as AsyncUploader,
|
|
2453
|
+
zl as AutoComplete,
|
|
2454
|
+
ms as Breadcrumb,
|
|
2455
|
+
W as Button,
|
|
2456
|
+
ot as Cache,
|
|
2457
|
+
_a as CacheKeys,
|
|
2458
|
+
Hr as CanPreviewFileExt,
|
|
2459
|
+
Kl as Cascader,
|
|
2460
|
+
Vl as Checkbox,
|
|
2461
|
+
lr as Content,
|
|
2462
|
+
jl as DatePicker,
|
|
2463
|
+
hs as Datetime,
|
|
2464
|
+
Cs as Dialog,
|
|
2465
|
+
Ml as Drawer,
|
|
2466
|
+
or as EventPrefix,
|
|
2467
|
+
Bl as Form,
|
|
2468
|
+
Nl as FormItem,
|
|
2469
|
+
Ul as Fullscreen,
|
|
2470
|
+
gs as Header,
|
|
2471
|
+
bs as HeaderExits,
|
|
2472
|
+
wa as Helper,
|
|
2473
|
+
nr as ICONS_LIB,
|
|
2474
|
+
ys as Icon,
|
|
2475
|
+
Ua as Icontool,
|
|
2476
|
+
ar as ImageList,
|
|
2477
|
+
Ya as Input,
|
|
2478
|
+
Yl as InputIcon,
|
|
2479
|
+
ql as InputNumber,
|
|
2480
|
+
Wl as InputPassword,
|
|
2481
|
+
Ll as LayoutIcon,
|
|
2482
|
+
es as Loading,
|
|
2483
|
+
xs as Menu,
|
|
2484
|
+
_s as MenuTabs,
|
|
2485
|
+
Mt as MicroOpenApis,
|
|
2486
|
+
Qe as OPTIONS,
|
|
2487
|
+
St as OptionCommProps,
|
|
2488
|
+
ks as ProjectIcon,
|
|
2489
|
+
Hl as PropEditor,
|
|
2490
|
+
re as ProviderKeys,
|
|
2491
|
+
Qa as Radio,
|
|
2492
|
+
Ql as RadioStatus,
|
|
2493
|
+
Gl as RangePicker,
|
|
2494
|
+
Ol as Search,
|
|
2495
|
+
we as SearchItem,
|
|
2496
|
+
Jl as Select,
|
|
2497
|
+
_t as Switch,
|
|
2498
|
+
Rl as Table,
|
|
2499
|
+
Da as TableOperate,
|
|
2500
|
+
Xl as Textarea,
|
|
2501
|
+
Zl as TimePicker,
|
|
2502
|
+
K as ToolIcon,
|
|
2503
|
+
Na as Toolbar,
|
|
2504
|
+
ps as Tooltip,
|
|
2505
|
+
Ga as Transfer,
|
|
2506
|
+
er as TransferTable,
|
|
2507
|
+
Al as Tree,
|
|
2508
|
+
tr as TreeSelect,
|
|
2509
|
+
Qr as UploadList,
|
|
2510
|
+
Wr as UploadStatus,
|
|
2511
|
+
ts as appendExcelData,
|
|
2512
|
+
as as checkExcelDuplicates,
|
|
2513
|
+
ir as checkIconsExpired,
|
|
2514
|
+
It as circleLoading,
|
|
2515
|
+
vt as createFromIconfont,
|
|
2516
|
+
ls as createMarkedExcelView,
|
|
2517
|
+
ur as crumbs,
|
|
2518
|
+
Il as csvToExcelBlob,
|
|
2519
|
+
rt as csvToExcelView,
|
|
2520
|
+
rs as csvToNormalized,
|
|
2521
|
+
je as defaultTools,
|
|
2522
|
+
cr as doDelete,
|
|
2523
|
+
dr as doExecute,
|
|
2524
|
+
Je as doQuery,
|
|
2525
|
+
pr as doSave,
|
|
2526
|
+
Gr as donwloadFromMinio,
|
|
2527
|
+
ua as downloadBlob,
|
|
2528
|
+
fr as eventBus,
|
|
2529
|
+
ss as excelToExcelView,
|
|
2530
|
+
os as excelToNormalized,
|
|
2531
|
+
Pl as exportResults,
|
|
2532
|
+
Dl as exportSelectedRows,
|
|
2533
|
+
He as filterColumns,
|
|
2534
|
+
Z as formValidate,
|
|
2535
|
+
vr as getFormDetail,
|
|
2536
|
+
mr as getIconTransform,
|
|
2537
|
+
hr as getRecordDetail,
|
|
2538
|
+
gr as getRuleTexts,
|
|
2539
|
+
Dt as getSelectedLabels,
|
|
2540
|
+
br as getSelectedValues,
|
|
2541
|
+
ae as getToolByKey,
|
|
2542
|
+
Me as getToolGroup,
|
|
2543
|
+
le as getToolStatus,
|
|
2544
|
+
se as getToolVisible,
|
|
2545
|
+
Be as gridQueryFind,
|
|
2546
|
+
xt as gridQueryList,
|
|
2547
|
+
yr as gridRowUpdate,
|
|
2548
|
+
kt as gridStatusUpdate,
|
|
2549
|
+
Fl as initCacheCheck,
|
|
2550
|
+
Tl as initDirective,
|
|
2551
|
+
xr as initMenu,
|
|
2552
|
+
_r as initPageFactory,
|
|
2553
|
+
kr as initValidate,
|
|
2554
|
+
ie as isEmpty,
|
|
2555
|
+
Tt as loadOption,
|
|
2556
|
+
wr as mergeColumns,
|
|
2557
|
+
ns as normalizedToExcelView,
|
|
2558
|
+
ya as onColumnVisibleChanged,
|
|
2559
|
+
ht as onFormClose,
|
|
2560
|
+
Ye as onFormSave,
|
|
2561
|
+
mt as onFormSaveAs,
|
|
2562
|
+
st as onFullscreenClick,
|
|
2563
|
+
bt as onGridRowDelete,
|
|
2564
|
+
gt as onGridRowEdit,
|
|
2565
|
+
Cr as onGridRowExpand,
|
|
2566
|
+
Et as onOptionChanged,
|
|
2567
|
+
pa as onReloadClick,
|
|
2568
|
+
J as onToolClicked,
|
|
2569
|
+
yt as openNewForm,
|
|
2570
|
+
Sr as outFormDataFields,
|
|
2571
|
+
$r as parseIcons,
|
|
2572
|
+
Ne as path,
|
|
2573
|
+
Tr as pendingNavigation,
|
|
2574
|
+
Fr as pinia,
|
|
2575
|
+
Jr as previewFromMinio,
|
|
2576
|
+
El as processCsvFile,
|
|
2577
|
+
is as processExcelFile,
|
|
2578
|
+
Ge as queryTree,
|
|
2579
|
+
Ir as resetRules,
|
|
2580
|
+
Er as routes,
|
|
2581
|
+
Dr as saveForm,
|
|
2582
|
+
Pr as setFormData,
|
|
2583
|
+
Ur as showBreadcrumb,
|
|
2584
|
+
us as toExcel,
|
|
2585
|
+
Ft as unloadOption,
|
|
2586
|
+
Lr as uploadTempBtn,
|
|
2587
|
+
Mr as uploadTempOpener,
|
|
2588
|
+
Br as useAppInfo,
|
|
2589
|
+
Nr as useEditorFactory,
|
|
2590
|
+
We as useFormItemFactory,
|
|
2591
|
+
Or as useGridFactory,
|
|
2592
|
+
Rr as useHostInfo,
|
|
2593
|
+
V as useInputFactory,
|
|
2594
|
+
$t as useOptionFactory,
|
|
2595
|
+
Ar as usePageFactory,
|
|
2596
|
+
zr as usePageInfo,
|
|
2597
|
+
Te as useSettingInfo,
|
|
2598
|
+
xa as useToolFactory,
|
|
2599
|
+
Kr as useTreeFactory,
|
|
2600
|
+
$e as useUserInfo,
|
|
2601
|
+
Vr as validateData,
|
|
2602
|
+
cs as validateExcel
|
|
2387
2603
|
};
|