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