@skyfox2000/webui 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +1 -1
- package/lib/assets/modules/{file-upload-BBlFaIXB.js → file-upload-DhPgqGdk.js} +50 -50
- package/lib/assets/modules/index-02J2AYth.js +377 -0
- package/lib/assets/modules/{index-m5rogIyM.js → index-C31q4LHC.js} +2 -2
- package/lib/assets/modules/{index-BG1SqSVl.js → index-CCpTizF9.js} +1 -1
- package/lib/assets/modules/{menuTabs-tPIz4a89.js → menuTabs-DyhSKN9r.js} +2 -2
- package/lib/assets/modules/{toolIcon-DwWoD9TN.js → toolIcon-CqM4gBIc.js} +1 -1
- package/lib/assets/modules/{uploadList-D_Z-Y2tw.js → uploadList-DAVjJkqz.js} +511 -476
- package/lib/assets/modules/{uploadList-Da7mQUNK.js → uploadList-ZajZKqaS.js} +4 -4
- package/lib/components/common/alert/index.vue.d.ts +13 -0
- package/lib/components/common/icon/helper.vue.d.ts +1 -0
- package/lib/components/common/index.d.ts +2 -0
- package/lib/components/content/form/formItem.vue.d.ts +1 -0
- package/lib/components/content/table/index.vue.d.ts +95 -4
- package/lib/components/form/input/index.vue.d.ts +4 -1
- package/lib/components/form/select/index.vue.d.ts +2 -0
- package/lib/components/form/treeSelect/index.vue.d.ts +11 -2
- package/lib/components/index.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +317 -274
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/typings/form.d.ts +2 -2
- package/lib/typings/option.d.ts +2 -2
- package/lib/utils/excel-preview.d.ts +24 -0
- package/lib/utils/form-excel.d.ts +17 -4
- package/lib/utils/options.d.ts +2 -2
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +759 -747
- package/package.json +1 -1
- package/src/components/common/alert/index.vue +76 -0
- package/src/components/common/icon/helper.vue +7 -1
- package/src/components/common/index.ts +4 -1
- package/src/components/common/loading/index.vue +1 -1
- package/src/components/content/dialog/excelForm.vue +343 -313
- package/src/components/content/form/formItem.vue +6 -2
- package/src/components/content/table/index.vue +9 -6
- package/src/components/form/autoComplete/index.vue +9 -3
- package/src/components/form/cascader/index.vue +8 -6
- package/src/components/form/input/index.vue +16 -3
- package/src/components/form/select/index.vue +5 -11
- package/src/components/form/treeSelect/index.vue +22 -17
- package/src/components/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/typings/form.d.ts +2 -2
- package/src/typings/option.d.ts +2 -2
- package/src/utils/excel-preview.ts +188 -0
- package/src/utils/file-upload.ts +0 -2
- package/src/utils/form-excel.ts +132 -126
- package/src/utils/options.ts +80 -22
- package/src/utils/table.ts +15 -2
- package/lib/assets/modules/index-4kDAt8nS.js +0 -333
package/lib/webui.es.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { a9 as
|
|
3
|
-
import { A as
|
|
1
|
+
import { u as Je, i as Z, a as me, c as Xe, P as j, o as Ee, b as Ze, d as ea, e as Pe, r as ce, f as aa, g as ta, h as Fe, j as la, k as ke, l as sa, _ as ra, m as oa, O as Ne, q as Me, n as na, p as ia, s as L, t as ca, v as ua, w as da, x as pa, y as fa, z as va, A as Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-DAVjJkqz.js";
|
|
2
|
+
import { a9 as Sl, N as Cl, Q as Tl, U as $l, a8 as Il, a6 as Dl, a7 as El, aa as Pl, X as Fl, S as Nl, a4 as Ml, a1 as Rl, L as Bl, a3 as Ol, T as Al, G as Ll, Z as zl, a2 as Ul, a5 as Vl, M as Yl, R as Wl, ab as Kl, F as jl, a0 as Hl, ac as Ql, W as ql, Y as Gl, V as Jl, ad as Xl, H as Zl, I as es, ae as as, K as ts, af as ls, J as ss, $ as rs } from "./assets/modules/uploadList-DAVjJkqz.js";
|
|
3
|
+
import { A as ns, U as is, a as cs, g as us, c as ds, d as ps, p as fs, u as vs, b as ms } from "./assets/modules/file-upload-DhPgqGdk.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
|
-
import { FrontCache as re, httpPost as
|
|
5
|
+
import { FrontCache as re, httpPost as Be, ResStatus as Oe, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
|
|
6
6
|
import he from "vue-m-message";
|
|
7
|
-
import { defineComponent as
|
|
7
|
+
import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as F, renderSlot as D, normalizeStyle as ue, toDisplayString as P, createCommentVNode as k, ref as x, provide as ge, watch as T, onMounted as Y, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as H, computed as J, createElementBlock as S, normalizeClass as N, createSlots as Ae, useSlots as xa, Fragment as B, renderList as z, resolveDynamicComponent as _a, onActivated as ya, shallowRef as ka, onUnmounted as wa, withKeys as Se } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import fe from "dayjs";
|
|
10
|
-
import { Popover as
|
|
11
|
-
import { VueDraggableNext as
|
|
12
|
-
import { d as We } from "./assets/modules/uploadList-
|
|
13
|
-
import { C as
|
|
14
|
-
import { c as Ke } from "./assets/modules/index-
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { a as
|
|
19
|
-
import { _ as
|
|
20
|
-
import { _ as
|
|
10
|
+
import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as ze, message as Ta, FormItem as Ue, ConfigProvider as Ce, Popconfirm as $a, Button as Ve, DropdownButton as Ia, Menu as be, MenuItem as xe, Dropdown as ve, Checkbox as Da, Table as Ye, Tree as Ea, Cascader as Pa, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ra, Textarea as Ba, Transfer as Oa, TreeSelect as Aa, LayoutContent as La } from "ant-design-vue";
|
|
11
|
+
import { VueDraggableNext as za } from "vue-draggable-next";
|
|
12
|
+
import { d as We } from "./assets/modules/uploadList-ZajZKqaS.js";
|
|
13
|
+
import { C as gs, U as bs, a as xs, p as _s } from "./assets/modules/uploadList-ZajZKqaS.js";
|
|
14
|
+
import { c as Ke } from "./assets/modules/index-02J2AYth.js";
|
|
15
|
+
import { _ as ks, h as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-02J2AYth.js";
|
|
16
|
+
import { _ as A } from "./assets/modules/index-CCpTizF9.js";
|
|
17
|
+
import { _ as U } from "./assets/modules/toolIcon-CqM4gBIc.js";
|
|
18
|
+
import { a as Rs } from "./assets/modules/toolIcon-CqM4gBIc.js";
|
|
19
|
+
import { _ as Os, b as As, c as Ls, d as zs, e as Us, I as Vs, f as Ys, g as Ws, a as Ks } from "./assets/modules/menuTabs-DyhSKN9r.js";
|
|
20
|
+
import { _ as Hs } from "./assets/modules/index-C31q4LHC.js";
|
|
21
21
|
import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
22
|
-
const Te = (s,
|
|
22
|
+
const Te = (s, a, e, t = "remove") => {
|
|
23
23
|
if (!e)
|
|
24
|
-
if (
|
|
25
|
-
const n =
|
|
26
|
-
n ? n.props.disabled = !0 : (
|
|
24
|
+
if (t === "disable") {
|
|
25
|
+
const n = a.component;
|
|
26
|
+
n ? n.props.disabled = !0 : (a.el, s.setAttribute("disabled", "disabled"), s.disabled = !0), s.classList.add("disabled");
|
|
27
27
|
} else {
|
|
28
28
|
const n = document.createComment("No Permission"), i = s.parentNode;
|
|
29
29
|
if (i) {
|
|
30
|
-
const c =
|
|
30
|
+
const c = a.component;
|
|
31
31
|
c ? c.props.style = { display: "none" } : i.replaceChild(n, s);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}, $e = (s) => {
|
|
35
35
|
var c, p;
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
36
|
+
const a = Je(), { url: e, role: t, permit: n } = s;
|
|
37
|
+
if (Z(t) && Z(n))
|
|
38
38
|
return !0;
|
|
39
39
|
const i = e ?? ((p = (c = window.location.hash) == null ? void 0 : c.split("#")) == null ? void 0 : p[1]) ?? window.location.pathname;
|
|
40
40
|
if (we.VITE_PERMISSION_MODE === "role")
|
|
41
|
-
return
|
|
41
|
+
return Z(t) ? !0 : a.hasRole(t);
|
|
42
42
|
if (we.VITE_PERMISSION_MODE === "permit") {
|
|
43
43
|
let d = !1, o = !1;
|
|
44
|
-
return
|
|
44
|
+
return Z(t) || (d = a.hasRole(t)), a.isAdmin() ? d : (Z(n) || (o = a.hasPermit(i, n)), d || o);
|
|
45
45
|
}
|
|
46
46
|
return !1;
|
|
47
|
-
},
|
|
48
|
-
mounted(s,
|
|
49
|
-
const
|
|
47
|
+
}, Ua = {
|
|
48
|
+
mounted(s, a, e) {
|
|
49
|
+
const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
|
|
50
50
|
Te(s, e, c, i);
|
|
51
51
|
},
|
|
52
|
-
updated(s,
|
|
53
|
-
const
|
|
52
|
+
updated(s, a, e) {
|
|
53
|
+
const t = a.value || {}, n = a.arg || "remove", i = t.behavior || n, c = $e(t);
|
|
54
54
|
Te(s, e, c, i);
|
|
55
55
|
}
|
|
56
|
-
},
|
|
57
|
-
mounted: (s,
|
|
56
|
+
}, Va = {
|
|
57
|
+
mounted: (s, a) => {
|
|
58
58
|
s.addEventListener("keydown", (e) => {
|
|
59
|
-
e.key === "Enter" &&
|
|
59
|
+
e.key === "Enter" && a.value();
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
62
|
unmounted: (s) => {
|
|
@@ -64,22 +64,22 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}, de = {
|
|
67
|
-
auth:
|
|
68
|
-
submit:
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
}), s), W = (s,
|
|
72
|
-
const e = s.find((
|
|
67
|
+
auth: Ua,
|
|
68
|
+
submit: Va
|
|
69
|
+
}, Ht = (s, a) => ((a || Object.keys(de)).forEach((t) => {
|
|
70
|
+
t in de && s.directive(t, de[t]);
|
|
71
|
+
}), s), W = (s, a) => {
|
|
72
|
+
const e = s.find((t) => t.key === a);
|
|
73
73
|
if (e)
|
|
74
74
|
return e;
|
|
75
|
-
for (const
|
|
76
|
-
if (
|
|
77
|
-
const n = W(
|
|
75
|
+
for (const t of s)
|
|
76
|
+
if (t.children) {
|
|
77
|
+
const n = W(t.children, a);
|
|
78
78
|
if (n)
|
|
79
79
|
return n;
|
|
80
80
|
}
|
|
81
|
-
}, _e = (s,
|
|
82
|
-
const
|
|
81
|
+
}, _e = (s, a, e) => {
|
|
82
|
+
const t = [], n = [];
|
|
83
83
|
return e || (e = [...s]), e.length && e.forEach((i, c) => {
|
|
84
84
|
let p;
|
|
85
85
|
if (typeof i == "string") {
|
|
@@ -93,47 +93,47 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
93
93
|
o && (o.rowData.value = f), p.formVisible ? (p.formVisible.value = !1, setTimeout(() => {
|
|
94
94
|
p.formVisible.value = !0;
|
|
95
95
|
}, 1)) : he.warning("未配置点击处理事件!");
|
|
96
|
-
}),
|
|
97
|
-
}), { buttons:
|
|
98
|
-
}, K = (s,
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
switch (
|
|
96
|
+
}), a === 0 || c < a ? t.push(p) : n.push(p);
|
|
97
|
+
}), { buttons: t, menus: n };
|
|
98
|
+
}, K = (s, a) => s.disabled && typeof s.disabled == "function" ? s.disabled(a) : s.disabled, G = (s, a) => s.visible && typeof s.visible == "function" ? s.visible(a) : s.visible ?? !0, Ya = (s, a) => {
|
|
99
|
+
a.reload.value = !0;
|
|
100
|
+
}, Wa = (s, a) => {
|
|
101
|
+
a.searchBar.value = !a.searchBar.value;
|
|
102
|
+
}, Ka = (s, a) => {
|
|
103
|
+
switch (a.tableSize.value) {
|
|
104
104
|
case "large":
|
|
105
|
-
|
|
105
|
+
a.tableSize.value = "middle";
|
|
106
106
|
break;
|
|
107
107
|
case "middle":
|
|
108
|
-
|
|
108
|
+
a.tableSize.value = "small";
|
|
109
109
|
break;
|
|
110
110
|
case "small":
|
|
111
|
-
|
|
111
|
+
a.tableSize.value = "large";
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
}, Ie = (s,
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
(!s.confirm || n) && s.click && (
|
|
122
|
-
},
|
|
123
|
-
|
|
114
|
+
}, ja = (s, a) => {
|
|
115
|
+
a.selectable.value = !a.selectable.value, a.selectable.value || (a.selectKeys.value = [], a.selectRows.value = []);
|
|
116
|
+
}, Ha = (s, a) => {
|
|
117
|
+
a.rowExpand.value = !a.rowExpand.value;
|
|
118
|
+
}, Ie = (s, a) => {
|
|
119
|
+
a.selectable.value = !a.selectable.value;
|
|
120
|
+
}, V = (s, a, e, t, n) => {
|
|
121
|
+
(!s.confirm || n) && s.click && (a ? s.click(a, e, t) : s.click(null, e, t)), qa(s);
|
|
122
|
+
}, Qa = (s, a) => {
|
|
123
|
+
a.selectable.value = !a.selectable.value;
|
|
124
124
|
}, je = () => {
|
|
125
125
|
const s = me();
|
|
126
126
|
s.setFullscreen(!s.fullscreen);
|
|
127
|
-
},
|
|
127
|
+
}, qa = (s, a) => {
|
|
128
128
|
(s.icons || s.labels) && (s.iconStatus = s.iconStatus || 0, s.iconStatus += 1, s.labels && s.labels.length && (s.label = s.labels[s.iconStatus % s.labels.length]), s.icons && s.icons.length && (s.icon = s.icons[s.iconStatus % s.icons.length]));
|
|
129
|
-
},
|
|
130
|
-
|
|
129
|
+
}, Ga = (s, a) => {
|
|
130
|
+
a ? delete s.visible : s.visible = !1;
|
|
131
131
|
}, De = [
|
|
132
132
|
{
|
|
133
133
|
key: "Reload",
|
|
134
134
|
label: "刷新表格",
|
|
135
135
|
icon: "icon-reload",
|
|
136
|
-
click:
|
|
136
|
+
click: Ya
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
key: "Query",
|
|
@@ -141,20 +141,20 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
141
141
|
labels: ["展开搜索栏", "折叠搜索栏"],
|
|
142
142
|
icon: "icon-search",
|
|
143
143
|
iconStatus: 0,
|
|
144
|
-
click:
|
|
144
|
+
click: Wa
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
key: "RowHeight",
|
|
148
148
|
label: "行高调整",
|
|
149
149
|
icon: "icon-row-height",
|
|
150
|
-
click:
|
|
150
|
+
click: Ka
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
key: "tool.multiple.checkbox",
|
|
154
154
|
label: "显示多选框",
|
|
155
155
|
labels: ["显示多选框", "隐藏多选框"],
|
|
156
156
|
icon: "icon-checkbox",
|
|
157
|
-
click:
|
|
157
|
+
click: ja
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
key: "tool.expand.rows",
|
|
@@ -163,7 +163,7 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
163
163
|
icon: "icon-row-collapse",
|
|
164
164
|
iconStatus: 0,
|
|
165
165
|
icons: ["icon-row-collapse", "icon-row-expand"],
|
|
166
|
-
click:
|
|
166
|
+
click: Ha
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
key: "tool.export.excel",
|
|
@@ -190,7 +190,7 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
190
190
|
{
|
|
191
191
|
key: "tool.export.pdf.selected",
|
|
192
192
|
label: "选中的记录",
|
|
193
|
-
click:
|
|
193
|
+
click: Qa
|
|
194
194
|
}
|
|
195
195
|
]
|
|
196
196
|
},
|
|
@@ -212,74 +212,74 @@ const Te = (s, t, e, a = "remove") => {
|
|
|
212
212
|
icons: ["icon-fullscreen", "icon-exitscreen"],
|
|
213
213
|
click: je
|
|
214
214
|
}
|
|
215
|
-
],
|
|
215
|
+
], Ja = (s) => {
|
|
216
216
|
if (!s.tools || s.tools.length > 0) {
|
|
217
|
-
const
|
|
218
|
-
return s.tools ?
|
|
217
|
+
const a = [];
|
|
218
|
+
return s.tools ? a.push(...s.tools) : a.push(...De), { tools: _e(De, 0, a).buttons };
|
|
219
219
|
}
|
|
220
220
|
return {
|
|
221
221
|
tools: []
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
var
|
|
224
|
+
var Xa = /* @__PURE__ */ ((s) => (s.SYS_CONFIG = "SYS_CONFIG_", s.APP_MENU = "APP_MENU_", s.DICT_TYPE = "DICT_TYPE_", s.HOST_INFO = "HOST_INFO_", s.APP_PERMITS = "APP_PERMITS_", s.USER_SETTINGS = "USER_SETTINGS_", s.DICT_DATA = "DICT_DATA_", s.COMMON_OPTIONS = "COMMON_OPTIONS_", s))(Xa || {});
|
|
225
225
|
class He {
|
|
226
226
|
/**
|
|
227
227
|
* 设置缓存数据(带服务器时间)
|
|
228
228
|
*/
|
|
229
|
-
static setWithServerTime(
|
|
229
|
+
static setWithServerTime(a, e, t) {
|
|
230
230
|
const n = {
|
|
231
231
|
data: e,
|
|
232
|
-
lastTime:
|
|
232
|
+
lastTime: t
|
|
233
233
|
};
|
|
234
|
-
re.set({ key:
|
|
234
|
+
re.set({ key: a, storage: "local" }, n);
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
237
|
* 设置缓存数据
|
|
238
238
|
*/
|
|
239
|
-
static setData(
|
|
240
|
-
re.set({ key:
|
|
239
|
+
static setData(a, e) {
|
|
240
|
+
re.set({ key: a, storage: "local" }, e);
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
243
|
* 获取缓存数据
|
|
244
244
|
*/
|
|
245
|
-
static getData(
|
|
246
|
-
const e = re.get({ key:
|
|
245
|
+
static getData(a) {
|
|
246
|
+
const e = re.get({ key: a, storage: "local" });
|
|
247
247
|
return e && He.isTimedData(e) ? e.data : e ?? null;
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
250
|
* 清除缓存
|
|
251
251
|
*/
|
|
252
|
-
static remove(
|
|
253
|
-
re.remove({ key:
|
|
252
|
+
static remove(a) {
|
|
253
|
+
re.remove({ key: a, storage: "local" });
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
256
|
* 清理指定前缀的缓存 (基于 localStorage 实现,因为 FrontCache 未提供此方法)
|
|
257
257
|
*/
|
|
258
|
-
static clearByPrefix(
|
|
258
|
+
static clearByPrefix(a) {
|
|
259
259
|
for (let e = 0; e < localStorage.length; e++) {
|
|
260
|
-
const
|
|
261
|
-
|
|
260
|
+
const t = localStorage.key(e);
|
|
261
|
+
t && t.startsWith("frontCache::" + a) && localStorage.removeItem(t);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
265
|
* 清理所有缓存
|
|
266
266
|
*/
|
|
267
267
|
static clearAll() {
|
|
268
|
-
for (let
|
|
269
|
-
const e = localStorage.key(
|
|
268
|
+
for (let a = localStorage.length - 1; a >= 0; a--) {
|
|
269
|
+
const e = localStorage.key(a);
|
|
270
270
|
e && e.startsWith("frontCache::") && localStorage.removeItem(e);
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
274
|
* 判断是否是带时间戳的数据
|
|
275
275
|
*/
|
|
276
|
-
static isTimedData(
|
|
277
|
-
return
|
|
276
|
+
static isTimedData(a) {
|
|
277
|
+
return a && typeof a == "object" && "data" in a && "lastTime" in a && typeof a.lastTime == "number";
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
async function
|
|
280
|
+
async function Qt() {
|
|
281
281
|
try {
|
|
282
|
-
const s = await
|
|
282
|
+
const s = await Be(
|
|
283
283
|
{
|
|
284
284
|
api: "PLATFORM_API",
|
|
285
285
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -287,10 +287,10 @@ async function Kt() {
|
|
|
287
287
|
},
|
|
288
288
|
{}
|
|
289
289
|
);
|
|
290
|
-
if ((s == null ? void 0 : s.status) ===
|
|
291
|
-
const
|
|
292
|
-
Object.keys(
|
|
293
|
-
const
|
|
290
|
+
if ((s == null ? void 0 : s.status) === Oe.SUCCESS) {
|
|
291
|
+
const a = s.data;
|
|
292
|
+
Object.keys(a).forEach((e) => {
|
|
293
|
+
const t = a[e];
|
|
294
294
|
["local", "session"].forEach((i) => {
|
|
295
295
|
const c = i === "local" ? localStorage : sessionStorage;
|
|
296
296
|
for (let p = 0; p < c.length; p++) {
|
|
@@ -298,7 +298,7 @@ async function Kt() {
|
|
|
298
298
|
if (d && d.endsWith(e))
|
|
299
299
|
try {
|
|
300
300
|
const o = JSON.parse(c.getItem(d));
|
|
301
|
-
o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !==
|
|
301
|
+
o && typeof o == "object" && "lastTime" in o && typeof o.lastTime == "number" && o.lastTime !== t && c.removeItem(d);
|
|
302
302
|
} catch {
|
|
303
303
|
continue;
|
|
304
304
|
}
|
|
@@ -310,8 +310,8 @@ async function Kt() {
|
|
|
310
310
|
console.error("检查缓存更新失败", s);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
const
|
|
314
|
-
const e = await Ke(s,
|
|
313
|
+
const qt = async (s, a) => {
|
|
314
|
+
const e = await Ke(s, a);
|
|
315
315
|
if (e.success)
|
|
316
316
|
return {
|
|
317
317
|
blobUrl: e.blobUrl,
|
|
@@ -320,15 +320,15 @@ const jt = async (s, t) => {
|
|
|
320
320
|
// 不再返回blob对象,使用URL即可
|
|
321
321
|
};
|
|
322
322
|
throw new Error(e.error || "CSV转Excel失败");
|
|
323
|
-
},
|
|
323
|
+
}, Gt = async (s, a) => {
|
|
324
324
|
try {
|
|
325
|
-
const
|
|
325
|
+
const t = new TextDecoder("utf-8").decode(s), n = await Ke(t, a);
|
|
326
326
|
return {
|
|
327
327
|
success: n.success,
|
|
328
328
|
blobUrl: n.blobUrl,
|
|
329
329
|
fileName: n.fileName,
|
|
330
330
|
error: n.error,
|
|
331
|
-
csvContent:
|
|
331
|
+
csvContent: t
|
|
332
332
|
// 保留原始CSV内容
|
|
333
333
|
};
|
|
334
334
|
} catch (e) {
|
|
@@ -337,68 +337,69 @@ const jt = async (s, t) => {
|
|
|
337
337
|
error: e instanceof Error ? e.message : "未知错误"
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
},
|
|
340
|
+
}, Jt = async (s, a, e) => {
|
|
341
341
|
try {
|
|
342
|
-
const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c =
|
|
342
|
+
const n = (await import("@json2csv/plainjs")).Parser, i = Qe(s), c = a.filter((v) => v.visible !== !1 && v.export !== !1), p = c.map((v) => ({
|
|
343
343
|
label: v.title,
|
|
344
344
|
value: v.dataIndex || v.key || ""
|
|
345
345
|
})), d = e.map((v) => {
|
|
346
346
|
const u = { ...v };
|
|
347
|
-
return c.forEach((
|
|
348
|
-
const
|
|
349
|
-
|
|
347
|
+
return c.forEach((h) => {
|
|
348
|
+
const y = h.dataIndex || h.key;
|
|
349
|
+
y && h.customRender && (u[y] = h.customRender(v[y], v));
|
|
350
350
|
}), u;
|
|
351
351
|
}), f = new n({ fields: p }).parse(d), r = new Blob([`\uFEFF${f}`], { type: "text/csv" });
|
|
352
352
|
We(r, i);
|
|
353
|
-
} catch (
|
|
354
|
-
console.error("导出失败:",
|
|
353
|
+
} catch (t) {
|
|
354
|
+
console.error("导出失败:", t), he.error("文件导出失败,请稍后重试");
|
|
355
355
|
}
|
|
356
356
|
}, Qe = (s) => {
|
|
357
|
-
const
|
|
358
|
-
return s.replace(
|
|
359
|
-
},
|
|
357
|
+
const a = /\{([^}]+)\}/g;
|
|
358
|
+
return s.replace(a, (e, t) => fe().format(t));
|
|
359
|
+
}, Xt = async (s, a, e, t) => {
|
|
360
360
|
try {
|
|
361
|
-
const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), p =
|
|
361
|
+
const i = (await import("@json2csv/plainjs")).Parser, c = Qe(s), p = a.filter((r) => r.visible !== !1), d = p.map((r) => ({
|
|
362
362
|
label: r.title,
|
|
363
363
|
value: r.dataIndex || r.key || ""
|
|
364
364
|
}));
|
|
365
365
|
let o = e.page, f = e.gridQuery;
|
|
366
|
-
return
|
|
367
|
-
if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) ===
|
|
366
|
+
return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Be(t, f).then((r) => {
|
|
367
|
+
if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Oe.SUCCESS && r.data) {
|
|
368
368
|
const u = r.data.map((O) => {
|
|
369
369
|
const _ = { ...O };
|
|
370
|
-
return p.forEach((
|
|
371
|
-
const
|
|
372
|
-
|
|
370
|
+
return p.forEach((E) => {
|
|
371
|
+
const R = E.dataIndex || E.key;
|
|
372
|
+
R && E.customRender && (_[R] = E.customRender(O[R], O));
|
|
373
373
|
}), _;
|
|
374
|
-
}),
|
|
375
|
-
We(
|
|
374
|
+
}), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
|
|
375
|
+
We(I, c);
|
|
376
376
|
}
|
|
377
377
|
});
|
|
378
378
|
} catch (n) {
|
|
379
379
|
console.error("导出失败:", n), he.error("文件导出失败,请稍后重试");
|
|
380
380
|
}
|
|
381
|
-
},
|
|
381
|
+
}, Zt = /* @__PURE__ */ C({
|
|
382
382
|
__name: "fullscreen",
|
|
383
383
|
setup(s) {
|
|
384
|
-
const
|
|
385
|
-
return (e,
|
|
386
|
-
onClick:
|
|
387
|
-
icon: l(
|
|
384
|
+
const a = me();
|
|
385
|
+
return (e, t) => (m(), b(U, {
|
|
386
|
+
onClick: ae(l(je), ["stop"]),
|
|
387
|
+
icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
388
388
|
class: "w-[17px] h-[17px]"
|
|
389
389
|
}, null, 8, ["onClick", "icon"]));
|
|
390
390
|
}
|
|
391
|
-
}),
|
|
391
|
+
}), Za = { class: "ml-2" }, et = /* @__PURE__ */ C({
|
|
392
392
|
inheritAttrs: !1,
|
|
393
393
|
__name: "helper",
|
|
394
394
|
props: {
|
|
395
395
|
text: {},
|
|
396
|
-
maxWidth: {}
|
|
396
|
+
maxWidth: {},
|
|
397
|
+
size: {}
|
|
397
398
|
},
|
|
398
399
|
setup(s) {
|
|
399
|
-
const
|
|
400
|
-
return (e,
|
|
401
|
-
content:
|
|
400
|
+
const a = X();
|
|
401
|
+
return (e, t) => (m(), b(l(Sa), { placement: "topRight" }, {
|
|
402
|
+
content: g(() => [
|
|
402
403
|
D(e.$slots, "default", {}, () => [
|
|
403
404
|
$("div", {
|
|
404
405
|
class: "text-[14px]",
|
|
@@ -406,18 +407,18 @@ const jt = async (s, t) => {
|
|
|
406
407
|
}, P(e.text), 5)
|
|
407
408
|
])
|
|
408
409
|
]),
|
|
409
|
-
default:
|
|
410
|
-
$("span",
|
|
411
|
-
|
|
410
|
+
default: g(() => [
|
|
411
|
+
$("span", Za, [
|
|
412
|
+
w(U, F({
|
|
412
413
|
icon: "icon-question-circle",
|
|
413
|
-
class: "text-[#888] w-
|
|
414
|
-
}, l(
|
|
414
|
+
class: ["text-[#888]", [e.size ? "w-" + e.size + " h-" + e.size : "w-5 h-5"]]
|
|
415
|
+
}, l(a)), null, 16, ["class"])
|
|
415
416
|
])
|
|
416
417
|
]),
|
|
417
418
|
_: 3
|
|
418
419
|
}));
|
|
419
420
|
}
|
|
420
|
-
}),
|
|
421
|
+
}), el = /* @__PURE__ */ C({
|
|
421
422
|
__name: "layoutIcon",
|
|
422
423
|
props: {
|
|
423
424
|
icon: {
|
|
@@ -428,20 +429,20 @@ const jt = async (s, t) => {
|
|
|
428
429
|
}
|
|
429
430
|
},
|
|
430
431
|
setup(s) {
|
|
431
|
-
const
|
|
432
|
-
iconUrl: `${
|
|
432
|
+
const a = s, t = Xe({
|
|
433
|
+
iconUrl: `${ba.MICROLAYOUT_ICONS}`,
|
|
433
434
|
monoColor: !0,
|
|
434
|
-
icon:
|
|
435
|
-
icons:
|
|
435
|
+
icon: a.icon,
|
|
436
|
+
icons: a.icons
|
|
436
437
|
});
|
|
437
|
-
return (n, i) => s.icon || s.icons ? (m(), b(l(
|
|
438
|
+
return (n, i) => s.icon || s.icons ? (m(), b(l(t), F({
|
|
438
439
|
key: 0,
|
|
439
440
|
icon: s.icon,
|
|
440
441
|
icons: s.icons,
|
|
441
442
|
class: ["align-middle"]
|
|
442
|
-
}, n.$attrs), null, 16, ["icon", "icons"])) :
|
|
443
|
+
}, n.$attrs), null, 16, ["icon", "icons"])) : k("", !0);
|
|
443
444
|
}
|
|
444
|
-
}),
|
|
445
|
+
}), at = { class: "hover:bg-gray-200 w-[24px] h-[24px] rounded-md" }, al = /* @__PURE__ */ C({
|
|
445
446
|
__name: "index",
|
|
446
447
|
props: {
|
|
447
448
|
saveText: {},
|
|
@@ -452,25 +453,25 @@ const jt = async (s, t) => {
|
|
|
452
453
|
drawerSaveAs: { type: Function }
|
|
453
454
|
},
|
|
454
455
|
setup(s) {
|
|
455
|
-
const { useToken:
|
|
456
|
+
const { useToken: a } = Le, { token: e } = a(), t = x(!1), n = s, i = n.editorCtrl;
|
|
456
457
|
ge(j.EditorControl, i), T(
|
|
457
458
|
() => i.visible.value,
|
|
458
459
|
(o) => {
|
|
459
|
-
|
|
460
|
+
t.value = o ?? !1;
|
|
460
461
|
}
|
|
461
|
-
),
|
|
462
|
-
|
|
462
|
+
), Y(() => {
|
|
463
|
+
t.value = i.visible.value ?? !1;
|
|
463
464
|
});
|
|
464
465
|
const c = () => {
|
|
465
466
|
n.drawerSave ? n.drawerSave() : i && Ee(i);
|
|
466
467
|
}, p = () => {
|
|
467
|
-
n.drawerSaveAs ? n.drawerSaveAs() : i &&
|
|
468
|
+
n.drawerSaveAs ? n.drawerSaveAs() : i && Ze(i);
|
|
468
469
|
}, d = () => {
|
|
469
|
-
|
|
470
|
+
ea(i);
|
|
470
471
|
};
|
|
471
|
-
return (o, f) => (m(), b(l(
|
|
472
|
-
open:
|
|
473
|
-
"onUpdate:open": f[0] || (f[0] = (r) =>
|
|
472
|
+
return (o, f) => (m(), b(l(Ca), {
|
|
473
|
+
open: t.value,
|
|
474
|
+
"onUpdate:open": f[0] || (f[0] = (r) => t.value = r),
|
|
474
475
|
"get-container": !1,
|
|
475
476
|
closable: !1,
|
|
476
477
|
"header-style": {
|
|
@@ -491,9 +492,9 @@ const jt = async (s, t) => {
|
|
|
491
492
|
width: "420px",
|
|
492
493
|
onClose: d
|
|
493
494
|
}, {
|
|
494
|
-
extra:
|
|
495
|
-
$("div",
|
|
496
|
-
|
|
495
|
+
extra: g(() => [
|
|
496
|
+
$("div", at, [
|
|
497
|
+
w(l(U), {
|
|
497
498
|
class: "top-[-2px] left-[2px] w-6 h-6",
|
|
498
499
|
icon: "icon-new",
|
|
499
500
|
angle: 45,
|
|
@@ -505,43 +506,43 @@ const jt = async (s, t) => {
|
|
|
505
506
|
})
|
|
506
507
|
])
|
|
507
508
|
]),
|
|
508
|
-
default:
|
|
509
|
+
default: g(() => [
|
|
509
510
|
D(o.$slots, "default")
|
|
510
511
|
]),
|
|
511
|
-
footer:
|
|
512
|
-
|
|
513
|
-
default:
|
|
514
|
-
o.cancelText !== "" ? (m(), b(l(
|
|
512
|
+
footer: g(() => [
|
|
513
|
+
w(l(te), null, {
|
|
514
|
+
default: g(() => [
|
|
515
|
+
o.cancelText !== "" ? (m(), b(l(A), {
|
|
515
516
|
key: 0,
|
|
516
517
|
onClick: d
|
|
517
518
|
}, {
|
|
518
|
-
default:
|
|
519
|
+
default: g(() => [
|
|
519
520
|
M(P(o.cancelText ?? "取消"), 1)
|
|
520
521
|
]),
|
|
521
522
|
_: 1
|
|
522
|
-
})) :
|
|
523
|
-
o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(
|
|
523
|
+
})) : k("", !0),
|
|
524
|
+
o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(A), {
|
|
524
525
|
key: 1,
|
|
525
526
|
onClick: p,
|
|
526
527
|
type: "primary",
|
|
527
528
|
loading: l(i).isFormSaving.value
|
|
528
529
|
}, {
|
|
529
|
-
default:
|
|
530
|
+
default: g(() => [
|
|
530
531
|
M(P(o.saveAsText ?? "另存为"), 1)
|
|
531
532
|
]),
|
|
532
533
|
_: 1
|
|
533
|
-
}, 8, ["loading"])) :
|
|
534
|
-
o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(
|
|
534
|
+
}, 8, ["loading"])) : k("", !0),
|
|
535
|
+
o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
|
|
535
536
|
key: 2,
|
|
536
537
|
onClick: c,
|
|
537
538
|
type: "primary",
|
|
538
539
|
loading: l(i).isFormSaving.value
|
|
539
540
|
}, {
|
|
540
|
-
default:
|
|
541
|
+
default: g(() => [
|
|
541
542
|
M(P(o.saveText ?? "保存"), 1)
|
|
542
543
|
]),
|
|
543
544
|
_: 1
|
|
544
|
-
}, 8, ["loading"])) :
|
|
545
|
+
}, 8, ["loading"])) : k("", !0)
|
|
545
546
|
]),
|
|
546
547
|
_: 1
|
|
547
548
|
})
|
|
@@ -549,7 +550,7 @@ const jt = async (s, t) => {
|
|
|
549
550
|
_: 3
|
|
550
551
|
}, 8, ["open", "header-style"]));
|
|
551
552
|
}
|
|
552
|
-
}),
|
|
553
|
+
}), tl = /* @__PURE__ */ C({
|
|
553
554
|
__name: "index",
|
|
554
555
|
props: {
|
|
555
556
|
labelWidth: {},
|
|
@@ -557,21 +558,21 @@ const jt = async (s, t) => {
|
|
|
557
558
|
editorCtrl: {}
|
|
558
559
|
},
|
|
559
560
|
setup(s) {
|
|
560
|
-
const
|
|
561
|
-
return ge(j.LabelWidth,
|
|
562
|
-
const i =
|
|
563
|
-
return H((m(), b(l(
|
|
564
|
-
"label-col": { flex:
|
|
561
|
+
const a = s, e = a.editorCtrl ?? ne(j.EditorControl, void 0);
|
|
562
|
+
return ge(j.LabelWidth, a.labelWidth), (t, n) => {
|
|
563
|
+
const i = le("submit");
|
|
564
|
+
return H((m(), b(l(ze), {
|
|
565
|
+
"label-col": { flex: a.labelWidth ?? "85px" },
|
|
565
566
|
"wrapper-col": {
|
|
566
|
-
flex:
|
|
567
|
+
flex: a.wrapperWidth ?? "1 0 280px"
|
|
567
568
|
},
|
|
568
569
|
style: {
|
|
569
570
|
display: "flex",
|
|
570
571
|
flexWrap: "wrap"
|
|
571
572
|
}
|
|
572
573
|
}, {
|
|
573
|
-
default:
|
|
574
|
-
D(
|
|
574
|
+
default: g(() => [
|
|
575
|
+
D(t.$slots, "default")
|
|
575
576
|
]),
|
|
576
577
|
_: 3
|
|
577
578
|
}, 8, ["label-col", "wrapper-col"])), [
|
|
@@ -584,9 +585,7 @@ const jt = async (s, t) => {
|
|
|
584
585
|
]);
|
|
585
586
|
};
|
|
586
587
|
}
|
|
587
|
-
}),
|
|
588
|
-
class: /* @__PURE__ */ N(["relative mb-1"])
|
|
589
|
-
}, Za = { class: "flex-grow" }, et = { class: "w-8 mt-[-2px]" }, el = /* @__PURE__ */ S({
|
|
588
|
+
}), tt = { class: "flex-grow" }, lt = { class: "w-8 mt-[-2px]" }, ll = /* @__PURE__ */ C({
|
|
590
589
|
inheritAttrs: !1,
|
|
591
590
|
__name: "formItem",
|
|
592
591
|
props: {
|
|
@@ -594,10 +593,11 @@ const jt = async (s, t) => {
|
|
|
594
593
|
rule: {},
|
|
595
594
|
helper: {},
|
|
596
595
|
width: {},
|
|
597
|
-
nextLine: { type: Boolean }
|
|
596
|
+
nextLine: { type: Boolean },
|
|
597
|
+
bottomMargin: {}
|
|
598
598
|
},
|
|
599
599
|
setup(s) {
|
|
600
|
-
const
|
|
600
|
+
const a = s, e = X(), t = ne(j.EditorControl, void 0), n = ne(j.LabelWidth, "85px") ?? "85px", i = Pe(a, t), c = x(!1);
|
|
601
601
|
setTimeout(() => {
|
|
602
602
|
c.value = !0;
|
|
603
603
|
}, 30);
|
|
@@ -606,63 +606,63 @@ const jt = async (s, t) => {
|
|
|
606
606
|
return;
|
|
607
607
|
const [r, ...v] = o;
|
|
608
608
|
return o.length === 1 ? f[r] : p(v, f[r].fields);
|
|
609
|
-
}, d =
|
|
609
|
+
}, d = J(() => {
|
|
610
610
|
var f;
|
|
611
|
-
if (!
|
|
611
|
+
if (!a.rule)
|
|
612
612
|
return !1;
|
|
613
|
-
const o = p(
|
|
614
|
-
return o ? o.required ?? !0 : (
|
|
613
|
+
const o = p(a.rule.split("."), (f = t == null ? void 0 : t.formRules) == null ? void 0 : f.value);
|
|
614
|
+
return o ? o.required ?? !0 : (Ta.error(`"${a.label}" 的验证规则 \`${a.rule}\` 不存在`), i.value.errClass = "text-[#ff4d4f]", i.value.msg = `规则 \`${a.rule}\` 不存在,请检查代码!`, !0);
|
|
615
615
|
});
|
|
616
|
-
return (o, f) => (m(),
|
|
617
|
-
|
|
616
|
+
return (o, f) => (m(), S("div", {
|
|
617
|
+
class: N(["relative", o.bottomMargin ? o.bottomMargin : "mb-1"])
|
|
618
|
+
}, [
|
|
619
|
+
c.value ? (m(), b(l(Ue), F({
|
|
618
620
|
key: 0,
|
|
619
621
|
required: d.value,
|
|
620
|
-
class: "relative"
|
|
621
|
-
}, l(e), {
|
|
622
|
-
|
|
623
|
-
}), {
|
|
624
|
-
label: h(() => [
|
|
622
|
+
class: ["relative", [o.nextLine ? "mb-0" : o.rule ? "" : "mb-3"]]
|
|
623
|
+
}, l(e)), {
|
|
624
|
+
label: g(() => [
|
|
625
625
|
$("span", {
|
|
626
626
|
class: N([l(i).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
627
627
|
}, P(o.label), 3)
|
|
628
628
|
]),
|
|
629
|
-
default:
|
|
630
|
-
o.nextLine ?
|
|
629
|
+
default: g(() => [
|
|
630
|
+
o.nextLine ? k("", !0) : (m(), S("div", {
|
|
631
631
|
key: 0,
|
|
632
632
|
class: N(["flex items-center", o.width ? o.width : "w-full"])
|
|
633
633
|
}, [
|
|
634
|
-
$("div",
|
|
634
|
+
$("div", tt, [
|
|
635
635
|
D(o.$slots, "default")
|
|
636
636
|
]),
|
|
637
|
-
$("div",
|
|
637
|
+
$("div", lt, [
|
|
638
638
|
D(o.$slots, "helper", {}, () => [
|
|
639
|
-
o.helper ? (m(), b(l(
|
|
639
|
+
o.helper ? (m(), b(l(et), {
|
|
640
640
|
key: 0,
|
|
641
641
|
text: o.helper
|
|
642
|
-
}, null, 8, ["text"])) :
|
|
642
|
+
}, null, 8, ["text"])) : k("", !0)
|
|
643
643
|
])
|
|
644
644
|
])
|
|
645
645
|
], 2))
|
|
646
646
|
]),
|
|
647
647
|
_: 3
|
|
648
|
-
}, 16, ["required", "class"])) :
|
|
649
|
-
o.nextLine ? (m(),
|
|
648
|
+
}, 16, ["required", "class"])) : k("", !0),
|
|
649
|
+
o.nextLine ? (m(), S("div", {
|
|
650
650
|
key: 1,
|
|
651
651
|
class: N(["w-[95%] flex items-center relative", [o.nextLine ? o.rule ? "mb-7" : "mb-3" : ""]])
|
|
652
652
|
}, [
|
|
653
653
|
D(o.$slots, "default")
|
|
654
|
-
], 2)) :
|
|
655
|
-
l(i).errClass ? (m(),
|
|
654
|
+
], 2)) : k("", !0),
|
|
655
|
+
l(i).errClass ? (m(), S("span", {
|
|
656
656
|
key: 2,
|
|
657
657
|
style: ue({ left: o.nextLine ? "2px" : l(n) }),
|
|
658
658
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
659
|
-
}, P(l(i).msg), 5)) :
|
|
660
|
-
]));
|
|
659
|
+
}, P(l(i).msg), 5)) : k("", !0)
|
|
660
|
+
], 2));
|
|
661
661
|
}
|
|
662
|
-
}),
|
|
662
|
+
}), st = { class: "w-1/3 relative mb-1" }, rt = { class: "flex items-center w-[90%]" }, ot = { class: "flex-grow pl-1" }, nt = {
|
|
663
663
|
key: 0,
|
|
664
664
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
665
|
-
}, pe = /* @__PURE__ */
|
|
665
|
+
}, pe = /* @__PURE__ */ C({
|
|
666
666
|
inheritAttrs: !1,
|
|
667
667
|
__name: "searchItem",
|
|
668
668
|
props: {
|
|
@@ -671,18 +671,18 @@ const jt = async (s, t) => {
|
|
|
671
671
|
rule: {}
|
|
672
672
|
},
|
|
673
673
|
setup(s) {
|
|
674
|
-
const
|
|
675
|
-
return (i, c) => (m(),
|
|
676
|
-
|
|
674
|
+
const a = s, e = X(), t = ne(j.EditorControl, void 0), n = Pe(a, t);
|
|
675
|
+
return (i, c) => (m(), S("div", st, [
|
|
676
|
+
w(l(Ue), F({
|
|
677
677
|
required: i.rule !== void 0,
|
|
678
678
|
class: "w-[90%] relative"
|
|
679
679
|
}, l(e), {
|
|
680
680
|
class: [i.rule ? "" : "mb-3", i.width],
|
|
681
681
|
labelCol: { span: 6 }
|
|
682
|
-
}),
|
|
683
|
-
default:
|
|
684
|
-
$("div",
|
|
685
|
-
$("div",
|
|
682
|
+
}), Ae({
|
|
683
|
+
default: g(() => [
|
|
684
|
+
$("div", rt, [
|
|
685
|
+
$("div", ot, [
|
|
686
686
|
D(i.$slots, "default")
|
|
687
687
|
])
|
|
688
688
|
])
|
|
@@ -691,7 +691,7 @@ const jt = async (s, t) => {
|
|
|
691
691
|
}, [
|
|
692
692
|
i.label ? {
|
|
693
693
|
name: "label",
|
|
694
|
-
fn:
|
|
694
|
+
fn: g(() => [
|
|
695
695
|
$("span", {
|
|
696
696
|
class: N([l(n).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
697
697
|
}, P(i.label), 3)
|
|
@@ -699,10 +699,10 @@ const jt = async (s, t) => {
|
|
|
699
699
|
key: "0"
|
|
700
700
|
} : void 0
|
|
701
701
|
]), 1040, ["required", "class"]),
|
|
702
|
-
l(n).msg ? (m(),
|
|
702
|
+
l(n).msg ? (m(), S("span", nt, P(l(n).msg), 1)) : k("", !0)
|
|
703
703
|
]));
|
|
704
704
|
}
|
|
705
|
-
}),
|
|
705
|
+
}), sl = /* @__PURE__ */ C({
|
|
706
706
|
__name: "index",
|
|
707
707
|
props: {
|
|
708
708
|
search: {},
|
|
@@ -710,13 +710,13 @@ const jt = async (s, t) => {
|
|
|
710
710
|
likeFields: {}
|
|
711
711
|
},
|
|
712
712
|
emits: ["update:search"],
|
|
713
|
-
setup(s, { emit:
|
|
714
|
-
const e = s,
|
|
715
|
-
let
|
|
716
|
-
for (let
|
|
717
|
-
typeof u[
|
|
718
|
-
return
|
|
719
|
-
}, d =
|
|
713
|
+
setup(s, { emit: a }) {
|
|
714
|
+
const e = s, t = a, n = x(0), i = x(0), c = x(0), p = (u) => {
|
|
715
|
+
let h = 0;
|
|
716
|
+
for (let y = 0; y < u.length; y++)
|
|
717
|
+
typeof u[y].type == "object" && h++;
|
|
718
|
+
return h;
|
|
719
|
+
}, d = xa(), o = () => {
|
|
720
720
|
i.value = 0, c.value = 0, d.default && (i.value = p(d.default({}))), e.gridCtrl.searchBar && d.control && (c.value = p(d.control({}))), n.value = 2 - (i.value + c.value) % 3;
|
|
721
721
|
};
|
|
722
722
|
T(
|
|
@@ -726,40 +726,40 @@ const jt = async (s, t) => {
|
|
|
726
726
|
}
|
|
727
727
|
);
|
|
728
728
|
const f = JSON.parse(JSON.stringify(e.search));
|
|
729
|
-
|
|
730
|
-
var
|
|
729
|
+
Y(() => {
|
|
730
|
+
var h;
|
|
731
731
|
o();
|
|
732
732
|
let u = { ...e.search };
|
|
733
733
|
e.gridCtrl.gridQuery = {
|
|
734
734
|
...e.gridCtrl.gridQuery,
|
|
735
735
|
Query: {
|
|
736
|
-
...(
|
|
736
|
+
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
737
737
|
...u
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
740
|
});
|
|
741
741
|
const r = () => {
|
|
742
|
-
var
|
|
742
|
+
var h;
|
|
743
743
|
let u = { ...e.search };
|
|
744
744
|
if (e.likeFields)
|
|
745
|
-
for (const
|
|
746
|
-
u[
|
|
745
|
+
for (const y of e.likeFields)
|
|
746
|
+
u[y] && (u[y] = { $like: "%" + u[y] + "%" });
|
|
747
747
|
e.gridCtrl.gridQuery = {
|
|
748
748
|
...e.gridCtrl.gridQuery,
|
|
749
749
|
Query: {
|
|
750
|
-
...(
|
|
750
|
+
...(h = e.gridCtrl.gridQuery) == null ? void 0 : h.Query,
|
|
751
751
|
...u
|
|
752
752
|
}
|
|
753
753
|
}, e.gridCtrl.pageNo.value = 1, e.gridCtrl.reload.value = !0;
|
|
754
754
|
}, v = () => {
|
|
755
755
|
const u = JSON.parse(JSON.stringify(f));
|
|
756
|
-
for (const
|
|
757
|
-
u[
|
|
758
|
-
|
|
756
|
+
for (const h in e.search)
|
|
757
|
+
u[h] === void 0 && (u[h] = void 0);
|
|
758
|
+
t("update:search", u);
|
|
759
759
|
};
|
|
760
|
-
return (u,
|
|
761
|
-
const
|
|
762
|
-
return i.value + c.value > 0 ? H((m(), b(l(
|
|
760
|
+
return (u, h) => {
|
|
761
|
+
const y = le("submit");
|
|
762
|
+
return i.value + c.value > 0 ? H((m(), b(l(ze), {
|
|
763
763
|
key: 0,
|
|
764
764
|
"label-col": { flex: "60px" },
|
|
765
765
|
style: {
|
|
@@ -768,41 +768,41 @@ const jt = async (s, t) => {
|
|
|
768
768
|
},
|
|
769
769
|
class: "flex mb-[10px]"
|
|
770
770
|
}, {
|
|
771
|
-
default:
|
|
771
|
+
default: g(() => [
|
|
772
772
|
D(u.$slots, "default"),
|
|
773
|
-
u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) :
|
|
773
|
+
u.gridCtrl.searchBar ? D(u.$slots, "control", { key: 0 }) : k("", !0),
|
|
774
774
|
n.value >= 1 ? (m(), b(pe, {
|
|
775
775
|
key: 1,
|
|
776
776
|
class: "w-1/3"
|
|
777
|
-
})) :
|
|
777
|
+
})) : k("", !0),
|
|
778
778
|
n.value >= 2 ? (m(), b(pe, {
|
|
779
779
|
key: 2,
|
|
780
780
|
class: "w-1/3"
|
|
781
|
-
})) :
|
|
781
|
+
})) : k("", !0),
|
|
782
782
|
i.value || u.gridCtrl.searchBar ? (m(), b(pe, {
|
|
783
783
|
key: 3,
|
|
784
784
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
785
785
|
"wrapper-col": { flex: "auto" }
|
|
786
786
|
}, {
|
|
787
|
-
default:
|
|
788
|
-
|
|
789
|
-
default:
|
|
790
|
-
|
|
787
|
+
default: g(() => [
|
|
788
|
+
w(l(te), null, {
|
|
789
|
+
default: g(() => [
|
|
790
|
+
w(l(A), {
|
|
791
791
|
type: "primary",
|
|
792
792
|
onClick: r,
|
|
793
793
|
icon: "icon-search"
|
|
794
794
|
}, {
|
|
795
|
-
default:
|
|
795
|
+
default: g(() => h[0] || (h[0] = [
|
|
796
796
|
M("搜索")
|
|
797
797
|
])),
|
|
798
798
|
_: 1,
|
|
799
799
|
__: [0]
|
|
800
800
|
}),
|
|
801
|
-
|
|
801
|
+
w(l(A), {
|
|
802
802
|
onClick: v,
|
|
803
803
|
icon: "icon-reset"
|
|
804
804
|
}, {
|
|
805
|
-
default:
|
|
805
|
+
default: g(() => h[1] || (h[1] = [
|
|
806
806
|
M("重置")
|
|
807
807
|
])),
|
|
808
808
|
_: 1,
|
|
@@ -813,22 +813,22 @@ const jt = async (s, t) => {
|
|
|
813
813
|
})
|
|
814
814
|
]),
|
|
815
815
|
_: 1
|
|
816
|
-
})) :
|
|
816
|
+
})) : k("", !0)
|
|
817
817
|
]),
|
|
818
818
|
_: 3
|
|
819
819
|
})), [
|
|
820
|
-
[
|
|
821
|
-
]) :
|
|
820
|
+
[y, r]
|
|
821
|
+
]) : k("", !0);
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
|
-
}),
|
|
824
|
+
}), it = /* @__PURE__ */ C({
|
|
825
825
|
__name: "tableOperate",
|
|
826
826
|
props: {
|
|
827
827
|
record: {},
|
|
828
828
|
gridCtrl: {}
|
|
829
829
|
},
|
|
830
830
|
setup(s) {
|
|
831
|
-
const
|
|
831
|
+
const a = s, e = a.gridCtrl, t = J(() => ce.currentRoute.value.path), n = [
|
|
832
832
|
{
|
|
833
833
|
key: "Edit",
|
|
834
834
|
label: "编辑",
|
|
@@ -836,7 +836,7 @@ const jt = async (s, t) => {
|
|
|
836
836
|
visible: !0,
|
|
837
837
|
role: ["Super", "Admin"],
|
|
838
838
|
permit: ":edit",
|
|
839
|
-
click: () =>
|
|
839
|
+
click: () => aa(e, a.record)
|
|
840
840
|
},
|
|
841
841
|
{
|
|
842
842
|
key: "Delete",
|
|
@@ -848,36 +848,36 @@ const jt = async (s, t) => {
|
|
|
848
848
|
permit: ":delete",
|
|
849
849
|
confirm: !0,
|
|
850
850
|
confirmText: "是否删除此记录?",
|
|
851
|
-
click: () =>
|
|
851
|
+
click: () => ta(e, a.record)
|
|
852
852
|
}
|
|
853
853
|
], { buttons: i, menus: c } = _e(n, 0, e.operates), p = (d) => {
|
|
854
854
|
if (typeof d.disabled == "boolean")
|
|
855
855
|
return d.disabled;
|
|
856
856
|
if (typeof d.disabled == "function")
|
|
857
|
-
return K(d,
|
|
858
|
-
if (
|
|
857
|
+
return K(d, a.record) ?? !1;
|
|
858
|
+
if (a.record.hasOwnProperty("Enabled"))
|
|
859
859
|
switch (d.key) {
|
|
860
860
|
case "Edit":
|
|
861
|
-
return !
|
|
861
|
+
return !a.record.Enabled;
|
|
862
862
|
case "Delete":
|
|
863
|
-
return !!
|
|
863
|
+
return !!a.record.Enabled;
|
|
864
864
|
}
|
|
865
865
|
return !1;
|
|
866
866
|
};
|
|
867
867
|
return (d, o) => {
|
|
868
|
-
const f =
|
|
868
|
+
const f = le("auth");
|
|
869
869
|
return m(), b(l(Ce), { theme: {
|
|
870
870
|
token: {
|
|
871
871
|
fontSize: 13
|
|
872
872
|
}
|
|
873
873
|
} }, {
|
|
874
|
-
default:
|
|
875
|
-
|
|
876
|
-
default:
|
|
877
|
-
(m(!0),
|
|
874
|
+
default: g(() => [
|
|
875
|
+
w(l(te), null, {
|
|
876
|
+
default: g(() => [
|
|
877
|
+
(m(!0), S(B, null, z(l(i), (r) => (m(), S(B, {
|
|
878
878
|
key: r.key
|
|
879
879
|
}, [
|
|
880
|
-
l(
|
|
880
|
+
l(G)(r, a.record) ? (m(), b(l($a), {
|
|
881
881
|
key: 0,
|
|
882
882
|
disabled: p(r) || !r.confirm,
|
|
883
883
|
cancelText: "否",
|
|
@@ -885,72 +885,72 @@ const jt = async (s, t) => {
|
|
|
885
885
|
title: r.confirmText,
|
|
886
886
|
okButtonProps: { size: "small" },
|
|
887
887
|
cancelButtonProps: { size: "small" },
|
|
888
|
-
onConfirm: (v) => l(
|
|
888
|
+
onConfirm: (v) => l(V)(r, l(e).page, l(e), a.record, !0)
|
|
889
889
|
}, {
|
|
890
|
-
default:
|
|
891
|
-
l(
|
|
890
|
+
default: g(() => [
|
|
891
|
+
l(G)(r, a.record) ? H((m(), b(l(Ve), {
|
|
892
892
|
key: r.key,
|
|
893
893
|
type: r.type ?? "text",
|
|
894
894
|
danger: r.danger,
|
|
895
895
|
disabled: p(r),
|
|
896
|
-
onClick: (v) => l(
|
|
896
|
+
onClick: (v) => l(V)(r, l(e).page, l(e), a.record),
|
|
897
897
|
size: "small",
|
|
898
898
|
style: ue({
|
|
899
899
|
padding: r.type ?? "0px 4px"
|
|
900
900
|
})
|
|
901
901
|
}, {
|
|
902
|
-
default:
|
|
902
|
+
default: g(() => [
|
|
903
903
|
M(P(r.label), 1)
|
|
904
904
|
]),
|
|
905
905
|
_: 2
|
|
906
906
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
907
|
-
[f, { url:
|
|
908
|
-
]) :
|
|
907
|
+
[f, { url: t.value, role: r.role, permit: r.permit }]
|
|
908
|
+
]) : k("", !0)
|
|
909
909
|
]),
|
|
910
910
|
_: 2
|
|
911
|
-
}, 1032, ["disabled", "title", "onConfirm"])) :
|
|
911
|
+
}, 1032, ["disabled", "title", "onConfirm"])) : k("", !0)
|
|
912
912
|
], 64))), 128)),
|
|
913
913
|
d.record.Enabled == 1 ? (m(), b(l(Ce), {
|
|
914
914
|
key: 0,
|
|
915
915
|
autoInsertSpaceInButton: !1
|
|
916
916
|
}, {
|
|
917
|
-
default:
|
|
918
|
-
l(c).length > 0 ? (m(), b(l(
|
|
917
|
+
default: g(() => [
|
|
918
|
+
l(c).length > 0 ? (m(), b(l(Ia), {
|
|
919
919
|
key: 0,
|
|
920
920
|
size: "small"
|
|
921
921
|
}, {
|
|
922
|
-
overlay:
|
|
923
|
-
|
|
924
|
-
default:
|
|
925
|
-
(m(!0),
|
|
922
|
+
overlay: g(() => [
|
|
923
|
+
w(l(be), null, {
|
|
924
|
+
default: g(() => [
|
|
925
|
+
(m(!0), S(B, null, z(l(c), (r) => (m(), S(B, {
|
|
926
926
|
key: r.key
|
|
927
927
|
}, [
|
|
928
|
-
l(
|
|
928
|
+
l(G)(r, a.record) ? H((m(), b(l(xe), {
|
|
929
929
|
key: 0,
|
|
930
930
|
disabled: p(r),
|
|
931
|
-
onClick: (v) => l(
|
|
931
|
+
onClick: (v) => l(V)(r, l(e).page, l(e), a.record)
|
|
932
932
|
}, {
|
|
933
|
-
default:
|
|
933
|
+
default: g(() => [
|
|
934
934
|
M(P(r.label), 1)
|
|
935
935
|
]),
|
|
936
936
|
_: 2
|
|
937
937
|
}, 1032, ["disabled", "onClick"])), [
|
|
938
|
-
[f, { url:
|
|
939
|
-
]) :
|
|
938
|
+
[f, { url: t.value, role: r.role, permit: r.permit }]
|
|
939
|
+
]) : k("", !0)
|
|
940
940
|
], 64))), 128))
|
|
941
941
|
]),
|
|
942
942
|
_: 1
|
|
943
943
|
})
|
|
944
944
|
]),
|
|
945
|
-
default:
|
|
945
|
+
default: g(() => [
|
|
946
946
|
o[0] || (o[0] = M(" 更多 "))
|
|
947
947
|
]),
|
|
948
948
|
_: 1,
|
|
949
949
|
__: [0]
|
|
950
|
-
})) :
|
|
950
|
+
})) : k("", !0)
|
|
951
951
|
]),
|
|
952
952
|
_: 1
|
|
953
|
-
})) :
|
|
953
|
+
})) : k("", !0)
|
|
954
954
|
]),
|
|
955
955
|
_: 1
|
|
956
956
|
})
|
|
@@ -959,17 +959,17 @@ const jt = async (s, t) => {
|
|
|
959
959
|
});
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
}),
|
|
962
|
+
}), ct = { class: "inline-flex [&>div]:ml-[-1px] first:[&>div]:ml-0" }, ut = /* @__PURE__ */ C({
|
|
963
963
|
__name: "icontool",
|
|
964
964
|
props: {
|
|
965
965
|
gridCtrl: {}
|
|
966
966
|
},
|
|
967
967
|
setup(s) {
|
|
968
|
-
const
|
|
968
|
+
const a = s, e = a.gridCtrl, { tools: t } = Ja(a.gridCtrl), n = me();
|
|
969
969
|
T(
|
|
970
970
|
() => e.selectable.value,
|
|
971
971
|
(p) => {
|
|
972
|
-
W(
|
|
972
|
+
W(t, "tool.export.excel.selected") && (W(t, "tool.export.excel.selected").disabled = !p), W(t, "tool.export.pdf.selected") && (W(t, "tool.export.pdf.selected").disabled = !p);
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
975
|
const i = x([]);
|
|
@@ -983,20 +983,20 @@ const jt = async (s, t) => {
|
|
|
983
983
|
const c = () => {
|
|
984
984
|
e.columns.value.splice(0, e.columns.value.length, ...i.value), n.setTableColumns(ce.currentRoute.value.path, e.columns.value);
|
|
985
985
|
};
|
|
986
|
-
return (p, d) => (m(),
|
|
987
|
-
(m(!0),
|
|
986
|
+
return (p, d) => (m(), S("div", ct, [
|
|
987
|
+
(m(!0), S(B, null, z(l(t), (o, f) => (m(), S(B, {
|
|
988
988
|
key: o.key
|
|
989
989
|
}, [
|
|
990
|
-
l(
|
|
990
|
+
l(G)(o) && o.dropdown ? (m(), b(l(ve), {
|
|
991
991
|
key: 0,
|
|
992
992
|
placement: "bottomRight",
|
|
993
993
|
class: "p-0 rounded-none"
|
|
994
994
|
}, {
|
|
995
|
-
overlay:
|
|
995
|
+
overlay: g(() => [
|
|
996
996
|
$("div", {
|
|
997
997
|
class: N(["min-w-[100px] bg-white rounded shadow-md p-4", o.dropdownClass])
|
|
998
998
|
}, [
|
|
999
|
-
o.dropdown === "headset" ? (m(), b(l(
|
|
999
|
+
o.dropdown === "headset" ? (m(), b(l(za), {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
modelValue: i.value,
|
|
1002
1002
|
"onUpdate:modelValue": d[1] || (d[1] = (r) => i.value = r),
|
|
@@ -1004,25 +1004,25 @@ const jt = async (s, t) => {
|
|
|
1004
1004
|
onEnd: c,
|
|
1005
1005
|
handle: ".drag-handle"
|
|
1006
1006
|
}, {
|
|
1007
|
-
default:
|
|
1008
|
-
(m(!0),
|
|
1007
|
+
default: g(() => [
|
|
1008
|
+
(m(!0), S(B, null, z(i.value, (r) => (m(), S("div", {
|
|
1009
1009
|
key: r.name,
|
|
1010
|
-
onClick: d[0] || (d[0] =
|
|
1010
|
+
onClick: d[0] || (d[0] = ae(() => {
|
|
1011
1011
|
}, ["stop"])),
|
|
1012
1012
|
class: "flex items-center mb-2 last:mb-0 select-none"
|
|
1013
1013
|
}, [
|
|
1014
1014
|
d[2] || (d[2] = $("span", { class: "drag-handle mr-2 text-gray-400 hover:text-gray-600 cursor-move" }, "⋮⋮", -1)),
|
|
1015
|
-
|
|
1015
|
+
w(l(Da), {
|
|
1016
1016
|
checked: r.visible !== !1,
|
|
1017
|
-
onChange:
|
|
1017
|
+
onChange: ae(
|
|
1018
1018
|
(v) => {
|
|
1019
|
-
l(
|
|
1019
|
+
l(Ga)(r, v.target.checked);
|
|
1020
1020
|
},
|
|
1021
1021
|
["stop", "prevent"]
|
|
1022
1022
|
),
|
|
1023
1023
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
1024
1024
|
}, {
|
|
1025
|
-
default:
|
|
1025
|
+
default: g(() => [
|
|
1026
1026
|
M(P(r.title), 1)
|
|
1027
1027
|
]),
|
|
1028
1028
|
_: 2
|
|
@@ -1030,22 +1030,22 @@ const jt = async (s, t) => {
|
|
|
1030
1030
|
]))), 128))
|
|
1031
1031
|
]),
|
|
1032
1032
|
_: 1
|
|
1033
|
-
}, 8, ["modelValue"])) :
|
|
1033
|
+
}, 8, ["modelValue"])) : k("", !0)
|
|
1034
1034
|
], 2)
|
|
1035
1035
|
]),
|
|
1036
|
-
default:
|
|
1037
|
-
|
|
1036
|
+
default: g(() => [
|
|
1037
|
+
w(l(A), {
|
|
1038
1038
|
class: N([
|
|
1039
1039
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1040
1040
|
f === 0 ? "rounded-l-[5px]" : "",
|
|
1041
|
-
f === l(
|
|
1041
|
+
f === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1042
1042
|
]),
|
|
1043
1043
|
disabled: l(K)(o),
|
|
1044
1044
|
tiptext: o.label,
|
|
1045
|
-
onClick: (r) => l(
|
|
1045
|
+
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1046
1046
|
}, {
|
|
1047
|
-
default:
|
|
1048
|
-
|
|
1047
|
+
default: g(() => [
|
|
1048
|
+
w(l(U), {
|
|
1049
1049
|
icon: o.icon,
|
|
1050
1050
|
class: "w-[18px] h-[18.5px]",
|
|
1051
1051
|
clickable: ""
|
|
@@ -1055,38 +1055,38 @@ const jt = async (s, t) => {
|
|
|
1055
1055
|
}, 1032, ["class", "disabled", "tiptext", "onClick"])
|
|
1056
1056
|
]),
|
|
1057
1057
|
_: 2
|
|
1058
|
-
}, 1024)) : !o.children && l(
|
|
1058
|
+
}, 1024)) : !o.children && l(G)(o) ? (m(), b(l(A), {
|
|
1059
1059
|
key: 1,
|
|
1060
1060
|
class: N([
|
|
1061
1061
|
"px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1062
1062
|
f === 0 ? "rounded-l-[5px]" : "",
|
|
1063
|
-
f === l(
|
|
1063
|
+
f === l(t).length - 1 ? "rounded-r-[5px]" : ""
|
|
1064
1064
|
]),
|
|
1065
1065
|
disabled: l(K)(o),
|
|
1066
1066
|
tiptext: o.label,
|
|
1067
|
-
onClick: (r) => l(
|
|
1067
|
+
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1068
1068
|
}, {
|
|
1069
|
-
default:
|
|
1070
|
-
|
|
1069
|
+
default: g(() => [
|
|
1070
|
+
w(l(U), {
|
|
1071
1071
|
icon: o.icon,
|
|
1072
1072
|
class: "w-[18px] h-[18.5px]",
|
|
1073
1073
|
clickable: ""
|
|
1074
1074
|
}, null, 8, ["icon"])
|
|
1075
1075
|
]),
|
|
1076
1076
|
_: 2
|
|
1077
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(
|
|
1077
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(G)(o) ? (m(), b(l(ve), {
|
|
1078
1078
|
key: 2,
|
|
1079
1079
|
placement: "bottomRight",
|
|
1080
1080
|
class: "p-0 rounded-none"
|
|
1081
1081
|
}, {
|
|
1082
|
-
overlay:
|
|
1083
|
-
|
|
1084
|
-
default:
|
|
1085
|
-
(m(!0),
|
|
1082
|
+
overlay: g(() => [
|
|
1083
|
+
w(l(be), null, {
|
|
1084
|
+
default: g(() => [
|
|
1085
|
+
(m(!0), S(B, null, z(o.children, (r) => (m(), b(l(xe), {
|
|
1086
1086
|
key: r.key,
|
|
1087
1087
|
disabled: l(K)(r)
|
|
1088
1088
|
}, {
|
|
1089
|
-
default:
|
|
1089
|
+
default: g(() => [
|
|
1090
1090
|
M(P(r.label), 1)
|
|
1091
1091
|
]),
|
|
1092
1092
|
_: 2
|
|
@@ -1095,8 +1095,8 @@ const jt = async (s, t) => {
|
|
|
1095
1095
|
_: 2
|
|
1096
1096
|
}, 1024)
|
|
1097
1097
|
]),
|
|
1098
|
-
default:
|
|
1099
|
-
|
|
1098
|
+
default: g(() => [
|
|
1099
|
+
w(l(A), {
|
|
1100
1100
|
class: N([
|
|
1101
1101
|
"!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
|
|
1102
1102
|
f === 0 ? "rounded-l-[5px]" : ""
|
|
@@ -1105,10 +1105,10 @@ const jt = async (s, t) => {
|
|
|
1105
1105
|
tiptext: o.label,
|
|
1106
1106
|
icon: o.icon,
|
|
1107
1107
|
iconProps: { class: "w-[19px] h-[19px]" },
|
|
1108
|
-
onClick: (r) => l(
|
|
1108
|
+
onClick: (r) => l(V)(o, l(e).page, l(e))
|
|
1109
1109
|
}, {
|
|
1110
|
-
default:
|
|
1111
|
-
|
|
1110
|
+
default: g(() => [
|
|
1111
|
+
w(l(U), {
|
|
1112
1112
|
icon: "icon-down-arrow",
|
|
1113
1113
|
class: "w-[12px] h-[12px]"
|
|
1114
1114
|
})
|
|
@@ -1117,18 +1117,18 @@ const jt = async (s, t) => {
|
|
|
1117
1117
|
}, 1032, ["class", "disabled", "tiptext", "icon", "onClick"])
|
|
1118
1118
|
]),
|
|
1119
1119
|
_: 2
|
|
1120
|
-
}, 1024)) :
|
|
1120
|
+
}, 1024)) : k("", !0)
|
|
1121
1121
|
], 64))), 128))
|
|
1122
1122
|
]));
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1124
|
+
}), dt = { class: "flex justify-between mb-[10px]" }, pt = { key: 1 }, ft = 3, vt = /* @__PURE__ */ C({
|
|
1125
1125
|
__name: "index",
|
|
1126
1126
|
props: {
|
|
1127
1127
|
gridCtrl: {},
|
|
1128
1128
|
editorCtrl: {}
|
|
1129
1129
|
},
|
|
1130
1130
|
setup(s) {
|
|
1131
|
-
const
|
|
1131
|
+
const a = s, e = a.gridCtrl, t = e.page, n = a.editorCtrl, i = J(() => ce.currentRoute.value.path), c = [
|
|
1132
1132
|
{
|
|
1133
1133
|
key: "New",
|
|
1134
1134
|
label: "新增",
|
|
@@ -1138,7 +1138,7 @@ const jt = async (s, t) => {
|
|
|
1138
1138
|
role: ["Super", "Admin"],
|
|
1139
1139
|
permit: ":new",
|
|
1140
1140
|
// 默认仅受权限码控制
|
|
1141
|
-
click: () =>
|
|
1141
|
+
click: () => la(n)
|
|
1142
1142
|
}
|
|
1143
1143
|
], p = x([]), d = x([]);
|
|
1144
1144
|
return T(
|
|
@@ -1150,7 +1150,7 @@ const jt = async (s, t) => {
|
|
|
1150
1150
|
var r;
|
|
1151
1151
|
const { buttons: o, menus: f } = _e(
|
|
1152
1152
|
c,
|
|
1153
|
-
e.flat !== void 0 ? e.flat :
|
|
1153
|
+
e.flat !== void 0 ? e.flat : ft,
|
|
1154
1154
|
(r = e.buttons) == null ? void 0 : r.value
|
|
1155
1155
|
);
|
|
1156
1156
|
p.value.splice(0, p.value.length, ...o), d.value.splice(0, d.value.length, ...f);
|
|
@@ -1160,19 +1160,19 @@ const jt = async (s, t) => {
|
|
|
1160
1160
|
immediate: !0
|
|
1161
1161
|
}
|
|
1162
1162
|
), (o, f) => {
|
|
1163
|
-
const r =
|
|
1164
|
-
return m(),
|
|
1165
|
-
|
|
1166
|
-
default:
|
|
1167
|
-
(m(!0),
|
|
1163
|
+
const r = le("auth");
|
|
1164
|
+
return m(), S("div", dt, [
|
|
1165
|
+
w(l(te), null, {
|
|
1166
|
+
default: g(() => [
|
|
1167
|
+
(m(!0), S(B, null, z(p.value, (v) => H((m(), b(l(A), {
|
|
1168
1168
|
key: v.key,
|
|
1169
1169
|
type: v.type,
|
|
1170
1170
|
danger: v.danger,
|
|
1171
1171
|
disabled: l(K)(v),
|
|
1172
1172
|
icon: v.icon,
|
|
1173
|
-
onClick: (u) => l(
|
|
1173
|
+
onClick: (u) => l(V)(v, l(t), l(e))
|
|
1174
1174
|
}, {
|
|
1175
|
-
default:
|
|
1175
|
+
default: g(() => [
|
|
1176
1176
|
M(P(v.label), 1)
|
|
1177
1177
|
]),
|
|
1178
1178
|
_: 2
|
|
@@ -1180,15 +1180,15 @@ const jt = async (s, t) => {
|
|
|
1180
1180
|
[r, { url: i.value, role: v.role, permit: v.permit }]
|
|
1181
1181
|
])), 128)),
|
|
1182
1182
|
d.value.length > 0 ? (m(), b(l(ve), { key: 0 }, {
|
|
1183
|
-
overlay:
|
|
1184
|
-
|
|
1185
|
-
default:
|
|
1186
|
-
(m(!0),
|
|
1183
|
+
overlay: g(() => [
|
|
1184
|
+
w(l(be), null, {
|
|
1185
|
+
default: g(() => [
|
|
1186
|
+
(m(!0), S(B, null, z(d.value, (v) => H((m(), b(l(xe), {
|
|
1187
1187
|
key: v.key,
|
|
1188
1188
|
disabled: l(K)(v),
|
|
1189
|
-
onClick: (u) => l(
|
|
1189
|
+
onClick: (u) => l(V)(v, l(t), l(e))
|
|
1190
1190
|
}, {
|
|
1191
|
-
default:
|
|
1191
|
+
default: g(() => [
|
|
1192
1192
|
M(P(v.label), 1)
|
|
1193
1193
|
]),
|
|
1194
1194
|
_: 2
|
|
@@ -1199,9 +1199,9 @@ const jt = async (s, t) => {
|
|
|
1199
1199
|
_: 1
|
|
1200
1200
|
})
|
|
1201
1201
|
]),
|
|
1202
|
-
default:
|
|
1203
|
-
|
|
1204
|
-
default:
|
|
1202
|
+
default: g(() => [
|
|
1203
|
+
w(l(A), null, {
|
|
1204
|
+
default: g(() => f[0] || (f[0] = [
|
|
1205
1205
|
M(" 更多操作 ")
|
|
1206
1206
|
])),
|
|
1207
1207
|
_: 1,
|
|
@@ -1209,21 +1209,21 @@ const jt = async (s, t) => {
|
|
|
1209
1209
|
})
|
|
1210
1210
|
]),
|
|
1211
1211
|
_: 1
|
|
1212
|
-
})) :
|
|
1213
|
-
p.value.length === 0 && d.value.length === 0 ? (m(),
|
|
1212
|
+
})) : k("", !0),
|
|
1213
|
+
p.value.length === 0 && d.value.length === 0 ? (m(), S("span", pt)) : k("", !0)
|
|
1214
1214
|
]),
|
|
1215
1215
|
_: 1
|
|
1216
1216
|
}),
|
|
1217
|
-
|
|
1218
|
-
default:
|
|
1219
|
-
(m(), b(
|
|
1217
|
+
w(l(te), { class: "mr-1" }, {
|
|
1218
|
+
default: g(() => [
|
|
1219
|
+
(m(), b(_a(ut), { "grid-ctrl": l(e) }, null, 8, ["grid-ctrl"]))
|
|
1220
1220
|
]),
|
|
1221
1221
|
_: 1
|
|
1222
1222
|
})
|
|
1223
1223
|
]);
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
}),
|
|
1226
|
+
}), rl = /* @__PURE__ */ C({
|
|
1227
1227
|
inheritAttrs: !1,
|
|
1228
1228
|
__name: "index",
|
|
1229
1229
|
props: {
|
|
@@ -1231,127 +1231,127 @@ const jt = async (s, t) => {
|
|
|
1231
1231
|
primaryKey: {},
|
|
1232
1232
|
tableData: {},
|
|
1233
1233
|
rowSelection: {},
|
|
1234
|
-
pagination: { type: [Boolean, Object] },
|
|
1234
|
+
pagination: { type: [Boolean, Object], default: void 0 },
|
|
1235
1235
|
scroll: {},
|
|
1236
|
-
statusDisabled: {
|
|
1236
|
+
statusDisabled: {}
|
|
1237
1237
|
},
|
|
1238
1238
|
setup(s) {
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1241
|
-
const i = x(
|
|
1239
|
+
const a = s, e = X(), t = a.gridCtrl, n = J(() => ce.currentRoute.value.path);
|
|
1240
|
+
t && (t.pageNo.value = 1, t.total.value = 0, t.pageSize.value = t.pageSize.value);
|
|
1241
|
+
const i = x(t.pageSize.value), c = x(t.pageNo.value), p = x([]), d = x({
|
|
1242
1242
|
total: 0,
|
|
1243
1243
|
current: 1,
|
|
1244
1244
|
pageSize: i.value,
|
|
1245
1245
|
showTotal: (u) => `共 ${u} 条记录`,
|
|
1246
|
-
onChange: (u,
|
|
1247
|
-
d.value !== !1 && (d.value.current = u, d.value.pageSize =
|
|
1246
|
+
onChange: (u, h) => {
|
|
1247
|
+
d.value !== !1 && (d.value.current = u, d.value.pageSize = h), i.value = h, c.value = u, t && (t.pageNo.value = u, t.pageSize.value = h, t.remotePage && ke(t));
|
|
1248
1248
|
},
|
|
1249
|
-
...
|
|
1249
|
+
...a.pagination === !1 ? {} : a.pagination
|
|
1250
1250
|
});
|
|
1251
|
-
|
|
1252
|
-
() =>
|
|
1251
|
+
a.pagination === !1 && (d.value = !1), T(
|
|
1252
|
+
() => t.tableData.value,
|
|
1253
1253
|
(u) => {
|
|
1254
|
-
u && (p.value = u, d.value !== !1 && (d.value.total =
|
|
1254
|
+
u && (p.value = u, d.value !== !1 && (d.value.total = t.total.value ?? 0, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
|
|
1255
1255
|
},
|
|
1256
1256
|
{ immediate: !0 }
|
|
1257
1257
|
), T(
|
|
1258
|
-
() =>
|
|
1258
|
+
() => a.tableData,
|
|
1259
1259
|
(u) => {
|
|
1260
|
-
u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current =
|
|
1260
|
+
u && (p.value = u, d.value !== !1 && (d.value.total = u.length, d.value.current = t.pageNo.value ?? 1, d.value.pageSize = t.pageSize.value ?? 10));
|
|
1261
1261
|
},
|
|
1262
1262
|
{ immediate: !0 }
|
|
1263
1263
|
);
|
|
1264
|
-
const o = x(
|
|
1265
|
-
onChange: (u,
|
|
1266
|
-
|
|
1264
|
+
const o = x(t.columns.value), f = {
|
|
1265
|
+
onChange: (u, h) => {
|
|
1266
|
+
t && (t.selectKeys.value = u, t.selectRows.value = h);
|
|
1267
1267
|
},
|
|
1268
1268
|
columnWidth: "30px",
|
|
1269
1269
|
getCheckboxProps: (u) => ({
|
|
1270
1270
|
disabled: u.Enabled === 0
|
|
1271
1271
|
}),
|
|
1272
|
-
...
|
|
1272
|
+
...a.rowSelection
|
|
1273
1273
|
}, r = x(f);
|
|
1274
1274
|
T(
|
|
1275
|
-
() =>
|
|
1275
|
+
() => t.selectable.value,
|
|
1276
1276
|
(u) => {
|
|
1277
|
-
|
|
1277
|
+
t && (r.value = u ? f : void 0);
|
|
1278
1278
|
},
|
|
1279
1279
|
{ immediate: !0 }
|
|
1280
1280
|
), T(
|
|
1281
|
-
() =>
|
|
1281
|
+
() => t.columns.value,
|
|
1282
1282
|
() => {
|
|
1283
|
-
o.value = Fe(
|
|
1283
|
+
o.value = Fe(t.columns.value);
|
|
1284
1284
|
},
|
|
1285
1285
|
{ deep: !0, immediate: !0 }
|
|
1286
1286
|
);
|
|
1287
1287
|
const v = x(!1);
|
|
1288
|
-
return
|
|
1289
|
-
v.value &&
|
|
1290
|
-
}),
|
|
1291
|
-
ge(j.GridControl,
|
|
1288
|
+
return ya(() => {
|
|
1289
|
+
v.value && t && (t.reload.value = !0);
|
|
1290
|
+
}), Y(async () => {
|
|
1291
|
+
ge(j.GridControl, t), 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 ke(t)).rows : p.value = await sa(t)), setTimeout(() => {
|
|
1292
1292
|
v.value = !0;
|
|
1293
1293
|
}, 50);
|
|
1294
|
-
}), (u,
|
|
1295
|
-
var
|
|
1296
|
-
const
|
|
1297
|
-
return m(),
|
|
1298
|
-
(
|
|
1294
|
+
}), (u, h) => {
|
|
1295
|
+
var I, O;
|
|
1296
|
+
const y = le("auth");
|
|
1297
|
+
return m(), S(B, null, [
|
|
1298
|
+
(I = l(t).buttons) != null && I.value.length || (O = l(t).tools) != null && O.length ? (m(), b(vt, {
|
|
1299
1299
|
key: 0,
|
|
1300
|
-
"grid-ctrl": l(
|
|
1301
|
-
"editor-ctrl": l(
|
|
1302
|
-
}, null, 8, ["grid-ctrl", "editor-ctrl"])) :
|
|
1303
|
-
v.value ? (m(), b(l(
|
|
1300
|
+
"grid-ctrl": l(t),
|
|
1301
|
+
"editor-ctrl": l(t).editor
|
|
1302
|
+
}, null, 8, ["grid-ctrl", "editor-ctrl"])) : k("", !0),
|
|
1303
|
+
v.value ? (m(), b(l(Ye), F({
|
|
1304
1304
|
key: 1,
|
|
1305
1305
|
class: "w-full",
|
|
1306
|
-
"row-key":
|
|
1306
|
+
"row-key": a.primaryKey ?? l(t).primaryKey ?? "Id",
|
|
1307
1307
|
"data-source": p.value,
|
|
1308
|
-
loading: l(
|
|
1308
|
+
loading: l(t).isGridLoading.value,
|
|
1309
1309
|
columns: o.value,
|
|
1310
1310
|
pagination: d.value,
|
|
1311
1311
|
"row-selection": r.value,
|
|
1312
|
-
scroll:
|
|
1313
|
-
size: l(
|
|
1312
|
+
scroll: a.scroll || { x: 700, y: 1e3 },
|
|
1313
|
+
size: l(t).tableSize.value,
|
|
1314
1314
|
bordered: ""
|
|
1315
1315
|
}, l(e)), {
|
|
1316
|
-
bodyCell:
|
|
1317
|
-
var
|
|
1316
|
+
bodyCell: g((_) => {
|
|
1317
|
+
var E, R;
|
|
1318
1318
|
return [
|
|
1319
1319
|
D(u.$slots, "bodyCell", {
|
|
1320
1320
|
column: _ == null ? void 0 : _.column,
|
|
1321
1321
|
record: _ == null ? void 0 : _.record
|
|
1322
1322
|
}),
|
|
1323
|
-
l(
|
|
1323
|
+
l(t) && ((E = _ == null ? void 0 : _.column) == null ? void 0 : E.dataIndex) === "enabled" ? H((m(), b(ra, {
|
|
1324
1324
|
key: 0,
|
|
1325
1325
|
checked: _.record.Enabled,
|
|
1326
|
-
"onUpdate:checked": (
|
|
1326
|
+
"onUpdate:checked": (se) => _.record.Enabled = se,
|
|
1327
1327
|
disabled: u.statusDisabled ? u.statusDisabled(_.record) : !1,
|
|
1328
1328
|
data: l(Ne).EnableDisable,
|
|
1329
|
-
onClick: (
|
|
1329
|
+
onClick: (se) => l(oa)(l(t), _.record),
|
|
1330
1330
|
class: N([
|
|
1331
1331
|
"w-[58px]",
|
|
1332
1332
|
u.statusDisabled && u.statusDisabled(_.record) ? "cursor-not-allowed disabled" : ""
|
|
1333
1333
|
]),
|
|
1334
1334
|
loading: _ == null ? void 0 : _.record.isLoading
|
|
1335
1335
|
}, null, 8, ["checked", "onUpdate:checked", "disabled", "data", "onClick", "class", "loading"])), [
|
|
1336
|
-
[
|
|
1337
|
-
]) :
|
|
1338
|
-
l(
|
|
1336
|
+
[y, { url: n.value, role: ["Super", "Admin"], permit: ":enabled" }, "disable"]
|
|
1337
|
+
]) : k("", !0),
|
|
1338
|
+
l(t) && ((R = _ == null ? void 0 : _.column) == null ? void 0 : R.dataIndex) === "operation" ? D(u.$slots, "operate", {
|
|
1339
1339
|
key: 1,
|
|
1340
1340
|
record: _ == null ? void 0 : _.record
|
|
1341
1341
|
}, () => [
|
|
1342
|
-
|
|
1342
|
+
w(it, {
|
|
1343
1343
|
record: _ == null ? void 0 : _.record,
|
|
1344
|
-
"grid-ctrl": l(
|
|
1344
|
+
"grid-ctrl": l(t)
|
|
1345
1345
|
}, null, 8, ["record", "grid-ctrl"])
|
|
1346
|
-
]) :
|
|
1346
|
+
]) : k("", !0)
|
|
1347
1347
|
];
|
|
1348
1348
|
}),
|
|
1349
1349
|
_: 3
|
|
1350
|
-
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) :
|
|
1350
|
+
}, 16, ["row-key", "data-source", "loading", "columns", "pagination", "row-selection", "scroll", "size"])) : k("", !0)
|
|
1351
1351
|
], 64);
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
|
-
}),
|
|
1354
|
+
}), mt = { class: "flex items-center gap-1" }, ht = { class: "text-nowrap" }, ol = /* @__PURE__ */ C({
|
|
1355
1355
|
__name: "index",
|
|
1356
1356
|
props: {
|
|
1357
1357
|
treeCtrl: {},
|
|
@@ -1359,15 +1359,15 @@ const jt = async (s, t) => {
|
|
|
1359
1359
|
expandedKeys: {}
|
|
1360
1360
|
},
|
|
1361
1361
|
emits: ["select", "update:selectedKeys"],
|
|
1362
|
-
setup(s, { emit:
|
|
1363
|
-
const e = s,
|
|
1362
|
+
setup(s, { emit: a }) {
|
|
1363
|
+
const e = s, t = X(), n = e.treeCtrl, i = x([]);
|
|
1364
1364
|
T(
|
|
1365
1365
|
() => n.data.value,
|
|
1366
1366
|
(f) => {
|
|
1367
1367
|
f && (i.value = n.fieldMap ? oe(n.fieldMap, f) : f, o(e.selectedKeys ?? []));
|
|
1368
1368
|
}
|
|
1369
1369
|
);
|
|
1370
|
-
const c =
|
|
1370
|
+
const c = a, p = x([]);
|
|
1371
1371
|
T(
|
|
1372
1372
|
() => e.selectedKeys,
|
|
1373
1373
|
(f) => {
|
|
@@ -1386,14 +1386,14 @@ const jt = async (s, t) => {
|
|
|
1386
1386
|
const o = (f, r) => {
|
|
1387
1387
|
f.length === 0 && f.push(...p.value), f.length > 0 && (n.node.value = r == null ? void 0 : r.node.dataRef), p.value = f, c("update:selectedKeys", f), c("select", f, r);
|
|
1388
1388
|
};
|
|
1389
|
-
return
|
|
1389
|
+
return Y(() => {
|
|
1390
1390
|
n.fieldMap || (n.fieldMap = {
|
|
1391
1391
|
label: "Name",
|
|
1392
1392
|
key: "Id",
|
|
1393
1393
|
value: "Id",
|
|
1394
1394
|
icon: "Icon"
|
|
1395
1395
|
}), n.data.value ? i.value = oe(n.fieldMap, n.data.value) : n.autoload && Me(n);
|
|
1396
|
-
}), (f, r) => (m(), b(l(
|
|
1396
|
+
}), (f, r) => (m(), b(l(Ea), F({
|
|
1397
1397
|
class: "w-full",
|
|
1398
1398
|
"show-line": !0,
|
|
1399
1399
|
"tree-data": i.value,
|
|
@@ -1402,41 +1402,41 @@ const jt = async (s, t) => {
|
|
|
1402
1402
|
"selected-keys": p.value,
|
|
1403
1403
|
loading: l(n).isTreeLoading,
|
|
1404
1404
|
onSelect: o
|
|
1405
|
-
}, l(
|
|
1406
|
-
title:
|
|
1405
|
+
}, l(t)), {
|
|
1406
|
+
title: g(({ key: v, label: u, icon: h }) => [
|
|
1407
1407
|
D(f.$slots, "title", {
|
|
1408
1408
|
label: u,
|
|
1409
1409
|
key: v,
|
|
1410
|
-
icon:
|
|
1410
|
+
icon: h
|
|
1411
1411
|
}, () => [
|
|
1412
|
-
$("div",
|
|
1413
|
-
|
|
1414
|
-
$("span",
|
|
1412
|
+
$("div", mt, [
|
|
1413
|
+
w(l(U), { icon: h }, null, 8, ["icon"]),
|
|
1414
|
+
$("span", ht, P(u), 1)
|
|
1415
1415
|
])
|
|
1416
1416
|
])
|
|
1417
1417
|
]),
|
|
1418
1418
|
_: 3
|
|
1419
1419
|
}, 16, ["tree-data", "expanded-keys", "selected-keys", "loading"]));
|
|
1420
1420
|
}
|
|
1421
|
-
}),
|
|
1421
|
+
}), nl = /* @__PURE__ */ q(na, [["__scopeId", "data-v-668fc090"]]), gt = { class: "relative w-[248px] max-w-[248px]" }, bt = {
|
|
1422
1422
|
key: 0,
|
|
1423
1423
|
class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
|
|
1424
|
-
},
|
|
1424
|
+
}, xt = /* @__PURE__ */ C({
|
|
1425
1425
|
inheritAttrs: !1,
|
|
1426
1426
|
__name: "index",
|
|
1427
|
-
props:
|
|
1427
|
+
props: ia,
|
|
1428
1428
|
emits: ["change", "update:labels", "update:value"],
|
|
1429
|
-
setup(s, { emit:
|
|
1430
|
-
var
|
|
1431
|
-
const e = s,
|
|
1432
|
-
c.inputFactory =
|
|
1429
|
+
setup(s, { emit: a }) {
|
|
1430
|
+
var y, I, O;
|
|
1431
|
+
const e = s, t = X(), n = L(), i = ca(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
|
|
1432
|
+
c.inputFactory = ka(n);
|
|
1433
1433
|
const p = x({
|
|
1434
1434
|
...c == null ? void 0 : c.url,
|
|
1435
|
-
url: ((
|
|
1436
|
-
fieldMap: (c == null ? void 0 : c.fieldMap) || ((
|
|
1435
|
+
url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
|
|
1436
|
+
fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
|
|
1437
1437
|
params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
|
|
1438
1438
|
loadingText: !1
|
|
1439
|
-
}), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(
|
|
1439
|
+
}), { editorCtrl: d, errInfo: o, labelText: f } = n, r = x(t.placeholder);
|
|
1440
1440
|
T(
|
|
1441
1441
|
() => p.value.loading,
|
|
1442
1442
|
(_) => {
|
|
@@ -1444,7 +1444,7 @@ const jt = async (s, t) => {
|
|
|
1444
1444
|
},
|
|
1445
1445
|
{ immediate: !0 }
|
|
1446
1446
|
);
|
|
1447
|
-
const v =
|
|
1447
|
+
const v = a;
|
|
1448
1448
|
n.inputEmit = v;
|
|
1449
1449
|
const u = x((c == null ? void 0 : c.options.value) || []);
|
|
1450
1450
|
c && T(
|
|
@@ -1454,54 +1454,51 @@ const jt = async (s, t) => {
|
|
|
1454
1454
|
},
|
|
1455
1455
|
{ immediate: !0, deep: !0 }
|
|
1456
1456
|
);
|
|
1457
|
-
const
|
|
1458
|
-
if (!
|
|
1457
|
+
const h = (_, E) => {
|
|
1458
|
+
if (!E || E.length === 0) {
|
|
1459
1459
|
v("update:labels", []), v("update:value", []);
|
|
1460
1460
|
return;
|
|
1461
1461
|
}
|
|
1462
|
-
const
|
|
1463
|
-
v("update:labels",
|
|
1464
|
-
"update:value",
|
|
1465
|
-
I.map((G) => G.value)
|
|
1466
|
-
), o != null && o.value.errClass && d && Q(d);
|
|
1462
|
+
const R = E.map((Ge) => Ge.value), se = fa(c, e, R), qe = va(se);
|
|
1463
|
+
v("update:labels", qe), v("update:value", R), o != null && o.value.errClass && d && Q(d);
|
|
1467
1464
|
};
|
|
1468
|
-
return
|
|
1465
|
+
return Y(() => {
|
|
1469
1466
|
p.value && !p.value.fieldMap && (p.value.fieldMap = {
|
|
1470
1467
|
title: "Name",
|
|
1471
1468
|
label: "Name",
|
|
1472
1469
|
value: "Id",
|
|
1473
1470
|
key: "Id"
|
|
1474
|
-
}), c &&
|
|
1475
|
-
}),
|
|
1476
|
-
c &&
|
|
1477
|
-
}), (_,
|
|
1478
|
-
var
|
|
1479
|
-
return m(),
|
|
1480
|
-
u.value.length ?
|
|
1481
|
-
|
|
1482
|
-
|
|
1471
|
+
}), c && ua(c.autoload, c, e);
|
|
1472
|
+
}), wa(() => {
|
|
1473
|
+
c && da(c, e);
|
|
1474
|
+
}), (_, E) => {
|
|
1475
|
+
var R;
|
|
1476
|
+
return m(), S("div", gt, [
|
|
1477
|
+
u.value.length ? k("", !0) : (m(), S("div", bt, [
|
|
1478
|
+
w(l(pa), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1479
|
+
E[0] || (E[0] = $("span", null, "数据加载中...", -1))
|
|
1483
1480
|
])),
|
|
1484
|
-
|
|
1481
|
+
w(l(Pa), F({
|
|
1485
1482
|
options: u.value,
|
|
1486
|
-
class: [(
|
|
1483
|
+
class: [(R = l(o)) == null ? void 0 : R.errClass],
|
|
1487
1484
|
"allow-clear": !0,
|
|
1488
1485
|
placeholder: u.value.length > 0 ? "请选择" + l(f) : "",
|
|
1489
|
-
onChange:
|
|
1490
|
-
}, l(
|
|
1486
|
+
onChange: h
|
|
1487
|
+
}, l(t)), null, 16, ["options", "class", "placeholder"])
|
|
1491
1488
|
]);
|
|
1492
1489
|
};
|
|
1493
1490
|
}
|
|
1494
|
-
}),
|
|
1491
|
+
}), il = /* @__PURE__ */ q(xt, [["__scopeId", "data-v-7f0def6e"]]), cl = /* @__PURE__ */ q(ma, [["__scopeId", "data-v-64193a41"]]);
|
|
1495
1492
|
function ie() {
|
|
1496
1493
|
return ie = Object.assign ? Object.assign.bind() : function(s) {
|
|
1497
|
-
for (var
|
|
1498
|
-
var e = arguments[
|
|
1499
|
-
for (var
|
|
1494
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
1495
|
+
var e = arguments[a];
|
|
1496
|
+
for (var t in e) ({}).hasOwnProperty.call(e, t) && (s[t] = e[t]);
|
|
1500
1497
|
}
|
|
1501
1498
|
return s;
|
|
1502
1499
|
}, ie.apply(null, arguments);
|
|
1503
1500
|
}
|
|
1504
|
-
const
|
|
1501
|
+
const _t = {
|
|
1505
1502
|
locale: "zh_CN",
|
|
1506
1503
|
today: "今天",
|
|
1507
1504
|
now: "此刻",
|
|
@@ -1528,7 +1525,7 @@ const gt = {
|
|
|
1528
1525
|
nextDecade: "下一年代",
|
|
1529
1526
|
previousCentury: "上一世纪",
|
|
1530
1527
|
nextCentury: "下一世纪"
|
|
1531
|
-
},
|
|
1528
|
+
}, yt = {
|
|
1532
1529
|
placeholder: "请选择时间",
|
|
1533
1530
|
rangePlaceholder: ["开始时间", "结束时间"]
|
|
1534
1531
|
}, ye = {
|
|
@@ -1543,100 +1540,101 @@ const gt = {
|
|
|
1543
1540
|
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
1544
1541
|
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
1545
1542
|
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
1546
|
-
},
|
|
1547
|
-
timePickerLocale: ie({},
|
|
1543
|
+
}, _t),
|
|
1544
|
+
timePickerLocale: ie({}, yt)
|
|
1548
1545
|
};
|
|
1549
1546
|
ye.lang.ok = "确定";
|
|
1550
|
-
const
|
|
1547
|
+
const ul = /* @__PURE__ */ C({
|
|
1551
1548
|
__name: "index",
|
|
1552
1549
|
props: {
|
|
1553
1550
|
valueFormat: {}
|
|
1554
1551
|
},
|
|
1555
1552
|
setup(s) {
|
|
1556
|
-
const
|
|
1553
|
+
const a = s, { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1557
1554
|
n != null && n.value.errClass && e && Q(e);
|
|
1558
|
-
}, c = x(
|
|
1555
|
+
}, c = x(a.valueFormat ?? "YYYY-MM-DD");
|
|
1559
1556
|
return (p, d) => {
|
|
1560
1557
|
var o;
|
|
1561
|
-
return m(), b(l(
|
|
1558
|
+
return m(), b(l(Fa), {
|
|
1562
1559
|
class: N(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
|
|
1563
|
-
placeholder: "请选择" + l(
|
|
1560
|
+
placeholder: "请选择" + l(t),
|
|
1564
1561
|
locale: l(ye),
|
|
1565
1562
|
valueFormat: c.value,
|
|
1566
1563
|
onBlur: i
|
|
1567
1564
|
}, null, 8, ["class", "placeholder", "locale", "valueFormat"]);
|
|
1568
1565
|
};
|
|
1569
1566
|
}
|
|
1570
|
-
}),
|
|
1567
|
+
}), kt = /* @__PURE__ */ C({
|
|
1571
1568
|
__name: "index",
|
|
1572
1569
|
props: {
|
|
1573
|
-
value: {}
|
|
1570
|
+
value: {},
|
|
1571
|
+
undefValue: { type: Boolean, default: !1 }
|
|
1574
1572
|
},
|
|
1575
1573
|
emits: ["update:value"],
|
|
1576
|
-
setup(s, { emit:
|
|
1577
|
-
const { editorCtrl: e, labelText:
|
|
1574
|
+
setup(s, { emit: a }) {
|
|
1575
|
+
const { editorCtrl: e, labelText: t, errInfo: n } = L(), i = () => {
|
|
1578
1576
|
n != null && n.value.errClass && e && Q(e);
|
|
1579
|
-
}, c = s, p =
|
|
1577
|
+
}, c = s, p = c.value === void 0 ? !0 : c.undefValue, d = a, o = x(c.value);
|
|
1580
1578
|
T(
|
|
1581
1579
|
() => c.value,
|
|
1582
|
-
(
|
|
1583
|
-
|
|
1580
|
+
(r) => {
|
|
1581
|
+
o.value = r;
|
|
1584
1582
|
},
|
|
1585
1583
|
{ immediate: !0 }
|
|
1586
1584
|
// 立即同步初始值
|
|
1587
1585
|
), T(
|
|
1588
|
-
() =>
|
|
1589
|
-
(
|
|
1590
|
-
if (
|
|
1591
|
-
|
|
1586
|
+
() => o.value,
|
|
1587
|
+
(r) => {
|
|
1588
|
+
if (o.value === "") {
|
|
1589
|
+
d("update:value", void 0);
|
|
1592
1590
|
return;
|
|
1593
1591
|
}
|
|
1594
|
-
|
|
1592
|
+
d("update:value", r);
|
|
1595
1593
|
}
|
|
1596
1594
|
);
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1595
|
+
const f = () => {
|
|
1596
|
+
o.value === "" && (o.value = p ? void 0 : null);
|
|
1599
1597
|
};
|
|
1600
|
-
return (
|
|
1601
|
-
var
|
|
1602
|
-
return m(), b(l(
|
|
1598
|
+
return (r, v) => {
|
|
1599
|
+
var u, h;
|
|
1600
|
+
return m(), b(l(ee), F({
|
|
1603
1601
|
class: [
|
|
1604
|
-
(
|
|
1605
|
-
((
|
|
1602
|
+
(u = l(n)) == null ? void 0 : u.errClass,
|
|
1603
|
+
((h = l(n)) == null ? void 0 : h.errClass) === "error" && !r.$slots.addonBefore && !r.$slots.addonAfter ? "!border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""
|
|
1606
1604
|
],
|
|
1607
|
-
value:
|
|
1608
|
-
"onUpdate:value":
|
|
1605
|
+
value: o.value,
|
|
1606
|
+
"onUpdate:value": v[0] || (v[0] = (y) => o.value = y),
|
|
1609
1607
|
autocomplete: "new-password",
|
|
1610
1608
|
"allow-clear": !0,
|
|
1611
|
-
placeholder: "请输入" + l(
|
|
1609
|
+
placeholder: "请输入" + l(t),
|
|
1612
1610
|
onBlur: i,
|
|
1613
|
-
onChange:
|
|
1614
|
-
},
|
|
1615
|
-
|
|
1611
|
+
onChange: f
|
|
1612
|
+
}, r.$attrs), Ae({ _: 2 }, [
|
|
1613
|
+
r.$slots.addonBefore ? {
|
|
1616
1614
|
name: "addonBefore",
|
|
1617
|
-
fn:
|
|
1618
|
-
D(
|
|
1615
|
+
fn: g(() => [
|
|
1616
|
+
D(r.$slots, "addonBefore")
|
|
1619
1617
|
]),
|
|
1620
1618
|
key: "0"
|
|
1621
1619
|
} : void 0,
|
|
1622
|
-
|
|
1620
|
+
r.$slots.addonAfter ? {
|
|
1623
1621
|
name: "addonAfter",
|
|
1624
|
-
fn:
|
|
1625
|
-
D(
|
|
1622
|
+
fn: g(() => [
|
|
1623
|
+
D(r.$slots, "addonAfter")
|
|
1626
1624
|
]),
|
|
1627
1625
|
key: "1"
|
|
1628
1626
|
} : void 0
|
|
1629
1627
|
]), 1040, ["class", "value", "placeholder"]);
|
|
1630
1628
|
};
|
|
1631
1629
|
}
|
|
1632
|
-
}),
|
|
1630
|
+
}), wt = /* @__PURE__ */ C({
|
|
1633
1631
|
__name: "inputIcon",
|
|
1634
1632
|
props: {
|
|
1635
1633
|
value: {}
|
|
1636
1634
|
},
|
|
1637
1635
|
emits: ["update:value"],
|
|
1638
|
-
setup(s, { emit:
|
|
1639
|
-
const e = s,
|
|
1636
|
+
setup(s, { emit: a }) {
|
|
1637
|
+
const e = s, t = a, n = x(void 0);
|
|
1640
1638
|
return T(
|
|
1641
1639
|
() => e.value,
|
|
1642
1640
|
(i) => {
|
|
@@ -1646,14 +1644,14 @@ const nl = /* @__PURE__ */ S({
|
|
|
1646
1644
|
), T(
|
|
1647
1645
|
() => n.value,
|
|
1648
1646
|
(i) => {
|
|
1649
|
-
|
|
1647
|
+
t("update:value", i);
|
|
1650
1648
|
}
|
|
1651
|
-
), (i, c) => (m(), b(
|
|
1649
|
+
), (i, c) => (m(), b(kt, F({
|
|
1652
1650
|
value: n.value,
|
|
1653
1651
|
"onUpdate:value": c[0] || (c[0] = (p) => n.value = p)
|
|
1654
1652
|
}, i.$attrs), {
|
|
1655
|
-
addonBefore:
|
|
1656
|
-
|
|
1653
|
+
addonBefore: g(() => [
|
|
1654
|
+
w(l(U), {
|
|
1657
1655
|
class: "!w-4 !h-4",
|
|
1658
1656
|
icon: n.value
|
|
1659
1657
|
}, null, 8, ["icon"])
|
|
@@ -1661,16 +1659,16 @@ const nl = /* @__PURE__ */ S({
|
|
|
1661
1659
|
_: 1
|
|
1662
1660
|
}, 16, ["value"]));
|
|
1663
1661
|
}
|
|
1664
|
-
}),
|
|
1662
|
+
}), dl = /* @__PURE__ */ q(wt, [["__scopeId", "data-v-358b82ef"]]), pl = /* @__PURE__ */ C({
|
|
1665
1663
|
__name: "inputPassword",
|
|
1666
1664
|
setup(s) {
|
|
1667
|
-
const { editorCtrl:
|
|
1668
|
-
|
|
1665
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1666
|
+
t != null && t.value.errClass && a && Q(a);
|
|
1669
1667
|
};
|
|
1670
1668
|
return (i, c) => {
|
|
1671
1669
|
var p;
|
|
1672
|
-
return m(), b(l(
|
|
1673
|
-
class: ((p = l(
|
|
1670
|
+
return m(), b(l(Na), F({
|
|
1671
|
+
class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1674
1672
|
"allow-clear": !0,
|
|
1675
1673
|
autocomplete: "new-password",
|
|
1676
1674
|
placeholder: "请输入" + l(e),
|
|
@@ -1678,23 +1676,23 @@ const nl = /* @__PURE__ */ S({
|
|
|
1678
1676
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1679
1677
|
};
|
|
1680
1678
|
}
|
|
1681
|
-
}),
|
|
1679
|
+
}), fl = /* @__PURE__ */ C({
|
|
1682
1680
|
__name: "inputNumber",
|
|
1683
1681
|
setup(s) {
|
|
1684
|
-
const { editorCtrl:
|
|
1685
|
-
|
|
1682
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1683
|
+
t != null && t.value.errClass && a && Q(a);
|
|
1686
1684
|
};
|
|
1687
1685
|
return (i, c) => {
|
|
1688
1686
|
var p;
|
|
1689
|
-
return m(), b(l(
|
|
1690
|
-
class: [[((p = l(
|
|
1687
|
+
return m(), b(l(Ma), F({
|
|
1688
|
+
class: [[((p = l(t)) == null ? void 0 : p.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""], "w-[50%]"],
|
|
1691
1689
|
onBlur: n,
|
|
1692
1690
|
"allow-clear": !1,
|
|
1693
1691
|
placeholder: "请输入" + l(e)
|
|
1694
1692
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1695
1693
|
};
|
|
1696
1694
|
}
|
|
1697
|
-
}),
|
|
1695
|
+
}), St = { class: "flex flex-col gap-2" }, Ct = { key: 1 }, vl = /* @__PURE__ */ C({
|
|
1698
1696
|
__name: "index",
|
|
1699
1697
|
props: {
|
|
1700
1698
|
value: {},
|
|
@@ -1704,8 +1702,8 @@ const nl = /* @__PURE__ */ S({
|
|
|
1704
1702
|
valueHolder: {}
|
|
1705
1703
|
},
|
|
1706
1704
|
emits: ["update:value"],
|
|
1707
|
-
setup(s, { emit:
|
|
1708
|
-
const e = s,
|
|
1705
|
+
setup(s, { emit: a }) {
|
|
1706
|
+
const e = s, t = a, n = x(!(e.selectList && e.selectList.length > 0)), i = x([]);
|
|
1709
1707
|
let c = !1;
|
|
1710
1708
|
const p = () => {
|
|
1711
1709
|
e.selectList && e.selectList.length > 0 ? i.value = e.selectList.map((r) => ({
|
|
@@ -1732,7 +1730,7 @@ const nl = /* @__PURE__ */ S({
|
|
|
1732
1730
|
(v, u) => (u.field && (v[u.field] = u.value), v),
|
|
1733
1731
|
{}
|
|
1734
1732
|
);
|
|
1735
|
-
c = !0,
|
|
1733
|
+
c = !0, t("update:value", r);
|
|
1736
1734
|
}, o = () => {
|
|
1737
1735
|
i.value.push({
|
|
1738
1736
|
id: Date.now() + Math.random(),
|
|
@@ -1742,35 +1740,35 @@ const nl = /* @__PURE__ */ S({
|
|
|
1742
1740
|
}, f = () => {
|
|
1743
1741
|
d();
|
|
1744
1742
|
};
|
|
1745
|
-
return (r, v) => (m(),
|
|
1746
|
-
(m(!0),
|
|
1743
|
+
return (r, v) => (m(), S("div", St, [
|
|
1744
|
+
(m(!0), S(B, null, z(i.value, (u) => (m(), S("div", {
|
|
1747
1745
|
key: u.id,
|
|
1748
1746
|
class: "flex items-center gap-2"
|
|
1749
1747
|
}, [
|
|
1750
1748
|
$("div", {
|
|
1751
1749
|
class: N([r.fieldWidth ? `w-[${r.fieldWidth}%]` : "w-[33%]"])
|
|
1752
1750
|
}, [
|
|
1753
|
-
!r.selectList || r.selectList.length === 0 ? (m(), b(l(
|
|
1751
|
+
!r.selectList || r.selectList.length === 0 ? (m(), b(l(ee), {
|
|
1754
1752
|
key: 0,
|
|
1755
1753
|
value: u.field,
|
|
1756
|
-
"onUpdate:value": (
|
|
1754
|
+
"onUpdate:value": (h) => u.field = h,
|
|
1757
1755
|
title: u.text || u.field,
|
|
1758
1756
|
class: "w-full",
|
|
1759
1757
|
placeholder: u.text || r.labelHolder || "配置名",
|
|
1760
1758
|
onInput: f,
|
|
1761
1759
|
disabled: !n.value
|
|
1762
|
-
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(),
|
|
1763
|
-
|
|
1760
|
+
}, null, 8, ["value", "onUpdate:value", "title", "placeholder", "disabled"])) : (m(), S("div", Ct, [
|
|
1761
|
+
w(l(ee), {
|
|
1764
1762
|
value: u.text,
|
|
1765
|
-
"onUpdate:value": (
|
|
1763
|
+
"onUpdate:value": (h) => u.text = h,
|
|
1766
1764
|
title: u.text,
|
|
1767
1765
|
disabled: !0,
|
|
1768
1766
|
class: "w-[100%]"
|
|
1769
1767
|
}, null, 8, ["value", "onUpdate:value", "title"]),
|
|
1770
|
-
|
|
1768
|
+
w(l(ee), {
|
|
1771
1769
|
type: "hidden",
|
|
1772
1770
|
value: u.field,
|
|
1773
|
-
"onUpdate:value": (
|
|
1771
|
+
"onUpdate:value": (h) => u.field = h
|
|
1774
1772
|
}, null, 8, ["value", "onUpdate:value"])
|
|
1775
1773
|
]))
|
|
1776
1774
|
], 2),
|
|
@@ -1778,30 +1776,30 @@ const nl = /* @__PURE__ */ S({
|
|
|
1778
1776
|
$("div", {
|
|
1779
1777
|
class: N([r.fieldWidth ? `w-[${97 - r.fieldWidth}%]` : "w-[64%]"])
|
|
1780
1778
|
}, [
|
|
1781
|
-
|
|
1779
|
+
w(l(ee), {
|
|
1782
1780
|
value: u.value,
|
|
1783
|
-
"onUpdate:value": (
|
|
1781
|
+
"onUpdate:value": (h) => u.value = h,
|
|
1784
1782
|
placeholder: r.valueHolder || "请输入" + u.text || "请输入配置值",
|
|
1785
1783
|
onInput: f,
|
|
1786
1784
|
title: u.value
|
|
1787
1785
|
}, null, 8, ["value", "onUpdate:value", "placeholder", "title"])
|
|
1788
1786
|
], 2)
|
|
1789
1787
|
]))), 128)),
|
|
1790
|
-
n.value ? (m(), b(l(
|
|
1788
|
+
n.value ? (m(), b(l(Ve), {
|
|
1791
1789
|
key: 0,
|
|
1792
1790
|
onClick: o,
|
|
1793
1791
|
class: "mt-1 w-[80px] !text-[12px] text-[#666] bg-[#e6f7ff] border-[#b3e0ff] hover:bg-[#b3e0ff] hover:border-[#8abeff]",
|
|
1794
1792
|
size: "small"
|
|
1795
1793
|
}, {
|
|
1796
|
-
default:
|
|
1794
|
+
default: g(() => v[1] || (v[1] = [
|
|
1797
1795
|
M(" 新增配置行 ")
|
|
1798
1796
|
])),
|
|
1799
1797
|
_: 1,
|
|
1800
1798
|
__: [1]
|
|
1801
|
-
})) :
|
|
1799
|
+
})) : k("", !0)
|
|
1802
1800
|
]));
|
|
1803
1801
|
}
|
|
1804
|
-
}),
|
|
1802
|
+
}), Tt = /* @__PURE__ */ q(ha, [["__scopeId", "data-v-cf2cfa24"]]), ml = /* @__PURE__ */ C({
|
|
1805
1803
|
__name: "radioStatus",
|
|
1806
1804
|
props: {
|
|
1807
1805
|
/**
|
|
@@ -1829,13 +1827,13 @@ const nl = /* @__PURE__ */ S({
|
|
|
1829
1827
|
}
|
|
1830
1828
|
},
|
|
1831
1829
|
setup(s) {
|
|
1832
|
-
const
|
|
1833
|
-
return
|
|
1830
|
+
const a = s, e = x(JSON.parse(JSON.stringify(Ne.getOptions(a.dataKey))));
|
|
1831
|
+
return a.all === !0 && e.value.unshift({
|
|
1834
1832
|
label: "全部",
|
|
1835
|
-
value:
|
|
1836
|
-
}), (
|
|
1833
|
+
value: a.allValue || [0, 1]
|
|
1834
|
+
}), (t, n) => (m(), b(Tt, { data: e.value }, null, 8, ["data"]));
|
|
1837
1835
|
}
|
|
1838
|
-
}),
|
|
1836
|
+
}), hl = /* @__PURE__ */ C({
|
|
1839
1837
|
__name: "index",
|
|
1840
1838
|
props: {
|
|
1841
1839
|
startDate: {},
|
|
@@ -1843,8 +1841,8 @@ const nl = /* @__PURE__ */ S({
|
|
|
1843
1841
|
valueFormat: { default: "YYYY-MM-DD" }
|
|
1844
1842
|
},
|
|
1845
1843
|
emits: ["update:startDate", "update:endDate"],
|
|
1846
|
-
setup(s, { emit:
|
|
1847
|
-
const e = s,
|
|
1844
|
+
setup(s, { emit: a }) {
|
|
1845
|
+
const e = s, t = a, n = L(), { errInfo: i } = n, c = J(() => e.valueFormat), p = J(() => {
|
|
1848
1846
|
const o = e.startDate, f = e.endDate;
|
|
1849
1847
|
if (!(!o || !f))
|
|
1850
1848
|
try {
|
|
@@ -1855,14 +1853,14 @@ const nl = /* @__PURE__ */ S({
|
|
|
1855
1853
|
}
|
|
1856
1854
|
}), d = (o, f) => {
|
|
1857
1855
|
if (!o || !f || f.length !== 2) {
|
|
1858
|
-
|
|
1856
|
+
t("update:startDate", null), t("update:endDate", null);
|
|
1859
1857
|
return;
|
|
1860
1858
|
}
|
|
1861
|
-
|
|
1859
|
+
t("update:startDate", f[0] || null), t("update:endDate", f[1] || null);
|
|
1862
1860
|
};
|
|
1863
1861
|
return (o, f) => {
|
|
1864
1862
|
var r;
|
|
1865
|
-
return m(), b(l(
|
|
1863
|
+
return m(), b(l(Ra), {
|
|
1866
1864
|
class: N([((r = l(i)) == null ? void 0 : r.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "", "w-full"]),
|
|
1867
1865
|
locale: l(ye),
|
|
1868
1866
|
"value-format": c.value,
|
|
@@ -1871,27 +1869,27 @@ const nl = /* @__PURE__ */ S({
|
|
|
1871
1869
|
}, null, 8, ["class", "locale", "value-format", "value"]);
|
|
1872
1870
|
};
|
|
1873
1871
|
}
|
|
1874
|
-
}),
|
|
1872
|
+
}), gl = /* @__PURE__ */ q(ga, [["__scopeId", "data-v-8875a979"]]), bl = /* @__PURE__ */ C({
|
|
1875
1873
|
__name: "index",
|
|
1876
1874
|
setup(s) {
|
|
1877
|
-
const { editorCtrl:
|
|
1878
|
-
|
|
1875
|
+
const { editorCtrl: a, labelText: e, errInfo: t } = L(), n = () => {
|
|
1876
|
+
t != null && t.value.errClass && a && Q(a);
|
|
1879
1877
|
};
|
|
1880
1878
|
return (i, c) => {
|
|
1881
1879
|
var p;
|
|
1882
|
-
return m(), b(l(
|
|
1883
|
-
class: ((p = l(
|
|
1880
|
+
return m(), b(l(Ba), F({
|
|
1881
|
+
class: ((p = l(t)) == null ? void 0 : p.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1884
1882
|
"allow-clear": !0,
|
|
1885
1883
|
placeholder: "请输入" + l(e),
|
|
1886
1884
|
onBlur: n,
|
|
1887
|
-
onKeyup: c[0] || (c[0] = Se(
|
|
1885
|
+
onKeyup: c[0] || (c[0] = Se(ae(() => {
|
|
1888
1886
|
}, ["stop"]), ["enter", "native"])),
|
|
1889
|
-
onKeydown: c[1] || (c[1] = Se(
|
|
1887
|
+
onKeydown: c[1] || (c[1] = Se(ae(() => {
|
|
1890
1888
|
}, ["stop"]), ["enter", "native"]))
|
|
1891
1889
|
}, i.$attrs), null, 16, ["class", "placeholder"]);
|
|
1892
1890
|
};
|
|
1893
1891
|
}
|
|
1894
|
-
}),
|
|
1892
|
+
}), $t = /* @__PURE__ */ C({
|
|
1895
1893
|
__name: "index",
|
|
1896
1894
|
props: {
|
|
1897
1895
|
autoload: { type: Boolean },
|
|
@@ -1900,8 +1898,8 @@ const nl = /* @__PURE__ */ S({
|
|
|
1900
1898
|
value: {}
|
|
1901
1899
|
},
|
|
1902
1900
|
emits: ["change", "update:value"],
|
|
1903
|
-
setup(s, { emit:
|
|
1904
|
-
const e = s,
|
|
1901
|
+
setup(s, { emit: a }) {
|
|
1902
|
+
const e = s, t = x({ ...e.url }), { editorCtrl: n, labelText: i, errInfo: c } = L(), p = a, d = x([]), o = x([]);
|
|
1905
1903
|
e.value && e.value.every((r) => {
|
|
1906
1904
|
o.value.push(r.toString());
|
|
1907
1905
|
}), T(
|
|
@@ -1913,13 +1911,13 @@ const nl = /* @__PURE__ */ S({
|
|
|
1913
1911
|
const f = (r) => {
|
|
1914
1912
|
p("update:value", r), p("change", r), o.value = r, c != null && c.value.errClass && n && Q(n);
|
|
1915
1913
|
};
|
|
1916
|
-
return
|
|
1917
|
-
if (
|
|
1914
|
+
return Y(async () => {
|
|
1915
|
+
if (t.value) {
|
|
1918
1916
|
const r = n == null ? void 0 : n.page;
|
|
1919
|
-
if (
|
|
1917
|
+
if (t.value.api || (t.value.api = r == null ? void 0 : r.api), t.value.authorize === void 0 && (t.value.authorize = r == null ? void 0 : r.authorize), e.autoload) {
|
|
1920
1918
|
const v = await Re(n, {
|
|
1921
1919
|
urlKey: "list",
|
|
1922
|
-
url: { ...
|
|
1920
|
+
url: { ...t.value, url: t.value.url },
|
|
1923
1921
|
loadingText: !1,
|
|
1924
1922
|
params: e.params
|
|
1925
1923
|
});
|
|
@@ -1928,27 +1926,27 @@ const nl = /* @__PURE__ */ S({
|
|
|
1928
1926
|
}
|
|
1929
1927
|
}), (r, v) => {
|
|
1930
1928
|
var u;
|
|
1931
|
-
return m(), b(l(
|
|
1929
|
+
return m(), b(l(Oa), F({
|
|
1932
1930
|
class: ((u = l(c)) == null ? void 0 : u.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
|
|
1933
1931
|
placeholder: "请输入" + l(i),
|
|
1934
1932
|
targetKeys: o.value,
|
|
1935
1933
|
onChange: f
|
|
1936
1934
|
}, r.$attrs), {
|
|
1937
|
-
children:
|
|
1935
|
+
children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: O, onItemSelect: _, selectedKeys: E }) => [
|
|
1938
1936
|
D(r.$slots, "children", {
|
|
1939
|
-
direction:
|
|
1940
|
-
disabled:
|
|
1941
|
-
filteredItems:
|
|
1937
|
+
direction: h,
|
|
1938
|
+
disabled: y,
|
|
1939
|
+
filteredItems: I,
|
|
1942
1940
|
onItemSelectAll: O,
|
|
1943
1941
|
onItemSelect: _,
|
|
1944
|
-
selectedKeys:
|
|
1942
|
+
selectedKeys: E
|
|
1945
1943
|
})
|
|
1946
1944
|
]),
|
|
1947
1945
|
_: 3
|
|
1948
1946
|
}, 16, ["class", "placeholder", "targetKeys"]);
|
|
1949
1947
|
};
|
|
1950
1948
|
}
|
|
1951
|
-
}),
|
|
1949
|
+
}), xl = /* @__PURE__ */ C({
|
|
1952
1950
|
__name: "transferTable",
|
|
1953
1951
|
props: {
|
|
1954
1952
|
/**
|
|
@@ -1974,12 +1972,12 @@ const nl = /* @__PURE__ */ S({
|
|
|
1974
1972
|
}
|
|
1975
1973
|
},
|
|
1976
1974
|
emits: ["update:value"],
|
|
1977
|
-
setup(s, { emit:
|
|
1978
|
-
const e = s,
|
|
1975
|
+
setup(s, { emit: a }) {
|
|
1976
|
+
const e = s, t = a, n = x(e.autoload), i = x(e.value), c = x(e.gridCtrl.primaryKey);
|
|
1979
1977
|
T(
|
|
1980
1978
|
() => i.value,
|
|
1981
1979
|
(o) => {
|
|
1982
|
-
|
|
1980
|
+
t("update:value", o);
|
|
1983
1981
|
}
|
|
1984
1982
|
), T(
|
|
1985
1983
|
() => e.value,
|
|
@@ -1992,16 +1990,16 @@ const nl = /* @__PURE__ */ S({
|
|
|
1992
1990
|
// 控制是否禁止
|
|
1993
1991
|
disabled: o || u.disabled
|
|
1994
1992
|
}),
|
|
1995
|
-
onSelectAll(u,
|
|
1996
|
-
const
|
|
1997
|
-
r(
|
|
1993
|
+
onSelectAll(u, h) {
|
|
1994
|
+
const y = h.filter((I) => !I.disabled).map(({ [c.value]: I }) => I);
|
|
1995
|
+
r(y, u);
|
|
1998
1996
|
},
|
|
1999
|
-
onSelect({ [c.value]: u },
|
|
2000
|
-
v(u,
|
|
1997
|
+
onSelect({ [c.value]: u }, h) {
|
|
1998
|
+
v(u, h);
|
|
2001
1999
|
},
|
|
2002
2000
|
selectedRowKeys: f
|
|
2003
2001
|
}), d = x([]);
|
|
2004
|
-
return
|
|
2002
|
+
return Y(async () => {
|
|
2005
2003
|
if (n.value) {
|
|
2006
2004
|
const o = await Re(e.gridCtrl, {
|
|
2007
2005
|
urlKey: "list",
|
|
@@ -2011,7 +2009,7 @@ const nl = /* @__PURE__ */ S({
|
|
|
2011
2009
|
});
|
|
2012
2010
|
d.value = (o == null ? void 0 : o.data) ?? [];
|
|
2013
2011
|
}
|
|
2014
|
-
}), (o, f) => (m(), b(
|
|
2012
|
+
}), (o, f) => (m(), b($t, F({
|
|
2015
2013
|
"data-source": d.value,
|
|
2016
2014
|
"row-key": (r) => r[c.value],
|
|
2017
2015
|
value: i.value,
|
|
@@ -2029,13 +2027,13 @@ const nl = /* @__PURE__ */ S({
|
|
|
2029
2027
|
return !1;
|
|
2030
2028
|
}
|
|
2031
2029
|
}, o.$attrs), {
|
|
2032
|
-
children:
|
|
2033
|
-
|
|
2030
|
+
children: g(({ filteredItems: r, onItemSelectAll: v, onItemSelect: u, selectedKeys: h }) => [
|
|
2031
|
+
w(l(Ye), {
|
|
2034
2032
|
columns: s.gridCtrl.columns.value,
|
|
2035
2033
|
"row-key": c.value,
|
|
2036
2034
|
"row-selection": p({
|
|
2037
2035
|
disabled: !1,
|
|
2038
|
-
selectedKeys:
|
|
2036
|
+
selectedKeys: h,
|
|
2039
2037
|
onItemSelectAll: v,
|
|
2040
2038
|
onItemSelect: u
|
|
2041
2039
|
}),
|
|
@@ -2043,10 +2041,10 @@ const nl = /* @__PURE__ */ S({
|
|
|
2043
2041
|
size: "small",
|
|
2044
2042
|
"data-source": r,
|
|
2045
2043
|
scroll: { x: 300 },
|
|
2046
|
-
"custom-row": (
|
|
2044
|
+
"custom-row": (y) => ({
|
|
2047
2045
|
onClick: () => {
|
|
2048
|
-
const
|
|
2049
|
-
u(
|
|
2046
|
+
const I = y[c.value];
|
|
2047
|
+
u(I, !h.includes(I));
|
|
2050
2048
|
}
|
|
2051
2049
|
})
|
|
2052
2050
|
}, null, 8, ["columns", "row-key", "row-selection", "data-source", "custom-row"])
|
|
@@ -2054,7 +2052,7 @@ const nl = /* @__PURE__ */ S({
|
|
|
2054
2052
|
_: 1
|
|
2055
2053
|
}, 16, ["data-source", "row-key", "value", "filter-option"]));
|
|
2056
2054
|
}
|
|
2057
|
-
}),
|
|
2055
|
+
}), It = /* @__PURE__ */ C({
|
|
2058
2056
|
__name: "index",
|
|
2059
2057
|
props: {
|
|
2060
2058
|
multiple: {
|
|
@@ -2067,76 +2065,89 @@ const nl = /* @__PURE__ */ S({
|
|
|
2067
2065
|
},
|
|
2068
2066
|
value: {
|
|
2069
2067
|
type: [String, Number, Array],
|
|
2070
|
-
required: !
|
|
2068
|
+
required: !1
|
|
2069
|
+
},
|
|
2070
|
+
/**
|
|
2071
|
+
* 清空时设置的值
|
|
2072
|
+
* - false,则清空时设置为 null
|
|
2073
|
+
* - true,则清空时设置为 undefined
|
|
2074
|
+
*/
|
|
2075
|
+
undefValue: {
|
|
2076
|
+
type: Boolean,
|
|
2077
|
+
default: !1
|
|
2071
2078
|
}
|
|
2072
2079
|
},
|
|
2073
2080
|
emits: ["change", "update:value"],
|
|
2074
|
-
setup(s, { emit:
|
|
2075
|
-
const e = s,
|
|
2076
|
-
|
|
2077
|
-
const
|
|
2081
|
+
setup(s, { emit: a }) {
|
|
2082
|
+
const e = s, t = e.value === void 0 ? !0 : e.undefValue, n = e.treeCtrl, i = L(), { errInfo: c, labelText: p } = i, d = a;
|
|
2083
|
+
i.inputEmit = d;
|
|
2084
|
+
const o = x([]), f = x();
|
|
2078
2085
|
T(
|
|
2079
2086
|
() => e.value,
|
|
2080
|
-
(
|
|
2081
|
-
|
|
2087
|
+
(u) => {
|
|
2088
|
+
f.value = u;
|
|
2082
2089
|
},
|
|
2083
2090
|
{ immediate: !0 }
|
|
2084
2091
|
), T(
|
|
2085
|
-
() =>
|
|
2086
|
-
(
|
|
2087
|
-
|
|
2092
|
+
() => n.data.value,
|
|
2093
|
+
(u) => {
|
|
2094
|
+
u && (o.value = n.fieldMap ? oe(n.fieldMap, u) : u);
|
|
2088
2095
|
},
|
|
2089
2096
|
{ immediate: !0 }
|
|
2090
2097
|
);
|
|
2091
|
-
const
|
|
2092
|
-
e.multiple ?
|
|
2098
|
+
const r = (u) => {
|
|
2099
|
+
e.multiple ? f.value = u ?? [] : f.value = u ?? t ? void 0 : null, d("change", f.value), d("update:value", f.value);
|
|
2093
2100
|
};
|
|
2094
|
-
|
|
2095
|
-
|
|
2101
|
+
Y(() => {
|
|
2102
|
+
n.fieldMap || (n.fieldMap = {
|
|
2096
2103
|
label: "Name",
|
|
2097
2104
|
key: "Id",
|
|
2098
2105
|
value: "Id"
|
|
2099
|
-
}),
|
|
2100
|
-
})
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2106
|
+
}), n.data.value ? o.value = n.fieldMap ? oe(n.fieldMap, n.data.value) : n.data.value : e.treeCtrl.autoload && Me(e.treeCtrl);
|
|
2107
|
+
});
|
|
2108
|
+
const v = () => {
|
|
2109
|
+
f.value = t ? void 0 : null;
|
|
2110
|
+
};
|
|
2111
|
+
return (u, h) => {
|
|
2112
|
+
var y;
|
|
2113
|
+
return m(), b(l(Aa), F({
|
|
2114
|
+
class: [[(y = l(c)) == null ? void 0 : y.errClass], "w-full"],
|
|
2104
2115
|
"tree-line": "",
|
|
2105
2116
|
multiple: s.multiple,
|
|
2106
2117
|
"tree-default-expanded-keys": ["-"],
|
|
2107
|
-
value:
|
|
2108
|
-
"onUpdate:value":
|
|
2109
|
-
"tree-data":
|
|
2110
|
-
placeholder: "请选择" + l(
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
},
|
|
2118
|
+
value: f.value,
|
|
2119
|
+
"onUpdate:value": h[0] || (h[0] = (I) => f.value = I),
|
|
2120
|
+
"tree-data": o.value,
|
|
2121
|
+
placeholder: "请选择" + l(p),
|
|
2122
|
+
onChange: r,
|
|
2123
|
+
onClear: v
|
|
2124
|
+
}, u.$attrs), null, 16, ["class", "multiple", "value", "tree-data", "placeholder"]);
|
|
2114
2125
|
};
|
|
2115
2126
|
}
|
|
2116
|
-
}),
|
|
2127
|
+
}), _l = /* @__PURE__ */ q(It, [["__scopeId", "data-v-a38b77ec"]]), Dt = { class: "relative h-[calc(100vh-80px)] overflow-y-auto" }, Et = { class: "flex w-full h-full min-h-full" }, Pt = {
|
|
2117
2128
|
key: 0,
|
|
2118
2129
|
class: "w-1/4 pr-4 min-h-full min-w-[170px] max-w-[200px]"
|
|
2119
|
-
},
|
|
2130
|
+
}, Ft = { class: "flex-1 h-full overflow-y-auto" }, yl = /* @__PURE__ */ C({
|
|
2120
2131
|
__name: "index",
|
|
2121
2132
|
props: {
|
|
2122
2133
|
left: { type: Boolean }
|
|
2123
2134
|
},
|
|
2124
2135
|
setup(s) {
|
|
2125
|
-
const { useToken:
|
|
2126
|
-
return (
|
|
2127
|
-
|
|
2136
|
+
const { useToken: a } = Le, { token: e } = a();
|
|
2137
|
+
return (t, n) => (m(), S("div", Dt, [
|
|
2138
|
+
w(l(La), {
|
|
2128
2139
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
2129
2140
|
style: ue({
|
|
2130
2141
|
backgroundColor: l(e).colorBgContainer
|
|
2131
2142
|
})
|
|
2132
2143
|
}, {
|
|
2133
|
-
default:
|
|
2134
|
-
$("div",
|
|
2135
|
-
|
|
2136
|
-
D(
|
|
2137
|
-
])) :
|
|
2138
|
-
$("div",
|
|
2139
|
-
D(
|
|
2144
|
+
default: g(() => [
|
|
2145
|
+
$("div", Et, [
|
|
2146
|
+
t.left ? (m(), S("div", Pt, [
|
|
2147
|
+
D(t.$slots, "left")
|
|
2148
|
+
])) : k("", !0),
|
|
2149
|
+
$("div", Ft, [
|
|
2150
|
+
D(t.$slots, "default")
|
|
2140
2151
|
])
|
|
2141
2152
|
])
|
|
2142
2153
|
]),
|
|
@@ -2146,158 +2157,159 @@ const nl = /* @__PURE__ */ S({
|
|
|
2146
2157
|
}
|
|
2147
2158
|
});
|
|
2148
2159
|
export {
|
|
2149
|
-
|
|
2160
|
+
ks as Alert,
|
|
2161
|
+
Os as AppIcon,
|
|
2150
2162
|
ce as AppRouter,
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2163
|
+
ns as AsyncUploader,
|
|
2164
|
+
nl as AutoComplete,
|
|
2165
|
+
As as Breadcrumb,
|
|
2166
|
+
A as Button,
|
|
2155
2167
|
He as Cache,
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2168
|
+
Xa as CacheKeys,
|
|
2169
|
+
gs as CanPreviewFileExt,
|
|
2170
|
+
il as Cascader,
|
|
2171
|
+
cl as Checkbox,
|
|
2172
|
+
yl as Content,
|
|
2173
|
+
ul as DatePicker,
|
|
2174
|
+
Ls as Datetime,
|
|
2175
|
+
Hs as Dialog,
|
|
2176
|
+
al as Drawer,
|
|
2177
|
+
Sl as EventPrefix,
|
|
2178
|
+
tl as Form,
|
|
2179
|
+
ll as FormItem,
|
|
2180
|
+
Zt as Fullscreen,
|
|
2181
|
+
zs as Header,
|
|
2182
|
+
Us as HeaderExits,
|
|
2183
|
+
et as Helper,
|
|
2184
|
+
Cl as ICONS_LIB,
|
|
2185
|
+
Vs as Icon,
|
|
2186
|
+
ut as Icontool,
|
|
2187
|
+
kt as Input,
|
|
2188
|
+
dl as InputIcon,
|
|
2189
|
+
fl as InputNumber,
|
|
2190
|
+
pl as InputPassword,
|
|
2191
|
+
el as LayoutIcon,
|
|
2192
|
+
ws as Loading,
|
|
2193
|
+
Ys as Menu,
|
|
2194
|
+
Ws as MenuTabs,
|
|
2183
2195
|
Ne as OPTIONS,
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2196
|
+
ia as OptionCommProps,
|
|
2197
|
+
Ks as ProjectIcon,
|
|
2198
|
+
vl as PropEditor,
|
|
2187
2199
|
j as ProviderKeys,
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2200
|
+
Tt as Radio,
|
|
2201
|
+
ml as RadioStatus,
|
|
2202
|
+
hl as RangePicker,
|
|
2203
|
+
sl as Search,
|
|
2192
2204
|
pe as SearchItem,
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2205
|
+
gl as Select,
|
|
2206
|
+
ra as Switch,
|
|
2207
|
+
rl as Table,
|
|
2208
|
+
it as TableOperate,
|
|
2209
|
+
bl as Textarea,
|
|
2210
|
+
U as ToolIcon,
|
|
2211
|
+
vt as Toolbar,
|
|
2212
|
+
Rs as Tooltip,
|
|
2213
|
+
$t as Transfer,
|
|
2214
|
+
xl as TransferTable,
|
|
2215
|
+
ol as Tree,
|
|
2216
|
+
_l as TreeSelect,
|
|
2217
|
+
bs as UploadList,
|
|
2218
|
+
is as UploadStatus,
|
|
2219
|
+
Ss as appendExcelData,
|
|
2220
|
+
Cs as checkExcelDuplicates,
|
|
2221
|
+
Tl as checkIconsExpired,
|
|
2222
|
+
pa as circleLoading,
|
|
2223
|
+
Xe as createFromIconfont,
|
|
2224
|
+
Ts as createMarkedExcelView,
|
|
2225
|
+
$l as crumbs,
|
|
2226
|
+
qt as csvToExcelBlob,
|
|
2215
2227
|
Ke as csvToExcelView,
|
|
2216
|
-
|
|
2228
|
+
$s as csvToNormalized,
|
|
2217
2229
|
De as defaultTools,
|
|
2218
|
-
|
|
2219
|
-
|
|
2230
|
+
Il as doDelete,
|
|
2231
|
+
Dl as doExecute,
|
|
2220
2232
|
Re as doQuery,
|
|
2221
|
-
|
|
2222
|
-
|
|
2233
|
+
El as doSave,
|
|
2234
|
+
xs as donwloadFromMinio,
|
|
2223
2235
|
We as downloadBlob,
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2236
|
+
Pl as eventBus,
|
|
2237
|
+
Is as excelToExcelView,
|
|
2238
|
+
Ds as excelToNormalized,
|
|
2239
|
+
Xt as exportResults,
|
|
2240
|
+
Jt as exportSelectedRows,
|
|
2229
2241
|
Fe as filterColumns,
|
|
2230
2242
|
Q as formValidate,
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2243
|
+
cs as getAppInfo,
|
|
2244
|
+
Fl as getFormDetail,
|
|
2245
|
+
us as getHostInfo,
|
|
2246
|
+
Nl as getIconTransform,
|
|
2247
|
+
Ml as getRecordDetail,
|
|
2248
|
+
Rl as getRuleTexts,
|
|
2249
|
+
va as getSelectedLabels,
|
|
2250
|
+
Bl as getSelectedValues,
|
|
2251
|
+
ds as getToken,
|
|
2240
2252
|
W as getToolByKey,
|
|
2241
2253
|
_e as getToolGroup,
|
|
2242
2254
|
K as getToolStatus,
|
|
2243
|
-
|
|
2244
|
-
|
|
2255
|
+
G as getToolVisible,
|
|
2256
|
+
ps as getUserInfo,
|
|
2245
2257
|
ke as gridQueryFind,
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2258
|
+
sa as gridQueryList,
|
|
2259
|
+
Ol as gridRowUpdate,
|
|
2260
|
+
oa as gridStatusUpdate,
|
|
2261
|
+
Qt as initCacheCheck,
|
|
2262
|
+
Ht as initDirective,
|
|
2263
|
+
Al as initMenu,
|
|
2264
|
+
Ll as initPageFactory,
|
|
2265
|
+
zl as initValidate,
|
|
2266
|
+
Z as isEmpty,
|
|
2267
|
+
ua as loadOption,
|
|
2268
|
+
Ul as mergeColumns,
|
|
2269
|
+
Es as normalizedToExcelView,
|
|
2270
|
+
Ga as onColumnVisibleChanged,
|
|
2271
|
+
ea as onFormClose,
|
|
2260
2272
|
Ee as onFormSave,
|
|
2261
|
-
|
|
2273
|
+
Ze as onFormSaveAs,
|
|
2262
2274
|
je as onFullscreenClick,
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2275
|
+
ta as onGridRowDelete,
|
|
2276
|
+
aa as onGridRowEdit,
|
|
2277
|
+
Vl as onGridRowExpand,
|
|
2278
|
+
fa as onOptionChanged,
|
|
2279
|
+
Ya as onReloadClick,
|
|
2280
|
+
V as onToolClicked,
|
|
2281
|
+
la as openNewForm,
|
|
2270
2282
|
Yl as outFormDataFields,
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2283
|
+
Wl as parseIcons,
|
|
2284
|
+
fs as path,
|
|
2285
|
+
Kl as pendingNavigation,
|
|
2286
|
+
jl as pinia,
|
|
2287
|
+
_s as previewFromMinio,
|
|
2288
|
+
Gt as processCsvFile,
|
|
2289
|
+
Ps as processExcelFile,
|
|
2278
2290
|
Me as queryTree,
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2291
|
+
Hl as resetRules,
|
|
2292
|
+
Ql as routes,
|
|
2293
|
+
ql as saveForm,
|
|
2294
|
+
Gl as setFormData,
|
|
2295
|
+
Jl as showBreadcrumb,
|
|
2296
|
+
Fs as toExcel,
|
|
2297
|
+
da as unloadOption,
|
|
2298
|
+
Xl as useAppInfo,
|
|
2299
|
+
Zl as useEditorFactory,
|
|
2288
2300
|
Pe as useFormItemFactory,
|
|
2289
|
-
|
|
2290
|
-
|
|
2301
|
+
es as useGridFactory,
|
|
2302
|
+
as as useHostInfo,
|
|
2291
2303
|
L as useInputFactory,
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2304
|
+
ca as useOptionFactory,
|
|
2305
|
+
ts as usePageFactory,
|
|
2306
|
+
ls as usePageInfo,
|
|
2295
2307
|
me as useSettingInfo,
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2308
|
+
Ja as useToolFactory,
|
|
2309
|
+
ss as useTreeFactory,
|
|
2310
|
+
Je as useUserInfo,
|
|
2311
|
+
vs as userLogin,
|
|
2312
|
+
ms as userLogout,
|
|
2313
|
+
rs as validateData,
|
|
2314
|
+
Ns as validateExcel
|
|
2303
2315
|
};
|