@skyfox2000/webui 1.6.7 → 1.6.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/{baseLayout-CLYEvEZ4.js → baseLayout-BnwlI4vK.js} +4 -4
- package/lib/assets/modules/{file-upload-JSdbDIS7.js → file-upload-CWfVUeSn.js} +1 -1
- package/lib/assets/modules/{index-DDdkKF8p.js → index-7znR3nGt.js} +14 -14
- package/lib/assets/modules/{index-DeciUTEK.js → index-C6PIxlSk.js} +3 -3
- package/lib/assets/modules/{index--7cem1cg.js → index-CxITdYGV.js} +13 -13
- package/lib/assets/modules/{menuTabs-B6rKn3BF.js → menuTabs-5mpC7Vzh.js} +46 -46
- package/lib/assets/modules/{toolIcon-h7IPQaWC.js → toolIcon-x2jrUmnu.js} +5 -5
- package/lib/assets/modules/upload-template-BTj3zPWT.js +6764 -0
- package/lib/assets/modules/{uploadList-D4k7XnhK.js → uploadList-CzV1noAa.js} +68 -68
- package/lib/components/content/list/index.vue.d.ts +1 -1
- package/lib/es/AceEditor/index.js +4 -4
- package/lib/es/BasicLayout/index.js +6 -6
- package/lib/es/Error403/index.js +3 -3
- package/lib/es/Error404/index.js +3 -3
- package/lib/es/ExcelForm/index.js +18 -18
- package/lib/es/MenuLayout/index.js +9 -9
- package/lib/es/TemplateFile/index.js +6 -6
- package/lib/es/UploadForm/index.js +11 -11
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +15 -15
- package/package.json +3 -3
- package/src/components/form/autoComplete/index.vue +2 -1
- package/src/components/form/upload/uploadList.vue +1 -1
- package/src/locales/en-US.json +44 -6
- package/src/utils/form-excel.ts +1 -1
- package/lib/assets/modules/upload-template-W04BQpEb.js +0 -6737
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as H } from "./index-
|
|
3
|
-
import { a as B, _ as K } from "./toolIcon-
|
|
1
|
+
import { defineComponent as ue, ref as R, computed as I, watch as $, resolveDirective as de, openBlock as d, createElementBlock as m, normalizeClass as z, unref as n, createElementVNode as w, withDirectives as b, createBlock as V, mergeProps as G, withCtx as v, createVNode as p, createTextVNode as E, toDisplayString as U, createCommentVNode as y, Fragment as pe, renderList as me } from "vue";
|
|
2
|
+
import { _ as H } from "./index-C6PIxlSk.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-x2jrUmnu.js";
|
|
4
4
|
import { httpPost as N, ResStatus as j } from "@skyfox2000/fapi";
|
|
5
|
-
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-
|
|
6
|
-
import
|
|
5
|
+
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-BTj3zPWT.js";
|
|
6
|
+
import F from "vue-m-message";
|
|
7
7
|
import { Upload as J, Tag as we, Popconfirm as ve, Progress as xe } from "ant-design-vue";
|
|
8
|
-
import { U as r, f as be, p as W } from "./file-upload-
|
|
8
|
+
import { U as r, f as be, p as W } from "./file-upload-CWfVUeSn.js";
|
|
9
9
|
import { combineParams as Z } from "@skyfox2000/microbase";
|
|
10
10
|
import "async-validator";
|
|
11
11
|
import "dayjs";
|
|
12
12
|
import "vue-draggable-next";
|
|
13
13
|
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const Ce = (
|
|
15
|
-
const e = document.createElement("a"), f = URL.createObjectURL(
|
|
16
|
-
e.href = f, e.download =
|
|
17
|
-
}, Ue = (
|
|
14
|
+
const Ce = (c, k) => {
|
|
15
|
+
const e = document.createElement("a"), f = URL.createObjectURL(c);
|
|
16
|
+
e.href = f, e.download = k, e.style.display = "none", document.body.appendChild(e), e.click(), URL.revokeObjectURL(f), document.body.removeChild(e);
|
|
17
|
+
}, Ue = (c, k, e) => {
|
|
18
18
|
try {
|
|
19
|
-
e && (
|
|
20
|
-
const f = Z(
|
|
21
|
-
return N(
|
|
22
|
-
if ((
|
|
23
|
-
const l =
|
|
19
|
+
e && (c.api || (c.api = e.api), c.authorize === void 0 && (c.authorize = e.authorize));
|
|
20
|
+
const f = Z(c.params, k);
|
|
21
|
+
return N(c, f).then((u) => {
|
|
22
|
+
if ((u == null ? void 0 : u.status) === j.SUCCESS && u.data) {
|
|
23
|
+
const l = u.data, _ = l.Content, O = l.Key.split("/").pop(), C = atob(_), S = [];
|
|
24
24
|
for (let L = 0; L < C.length; L++)
|
|
25
25
|
S.push(C.charCodeAt(L));
|
|
26
26
|
const g = new Blob([new Uint8Array(S)], {
|
|
27
27
|
type: l.Type
|
|
28
28
|
});
|
|
29
29
|
Ce(g, O);
|
|
30
|
-
} else if ((
|
|
30
|
+
} else if ((u == null ? void 0 : u.errno) == X) {
|
|
31
31
|
Y().logout(!1);
|
|
32
32
|
return;
|
|
33
33
|
} else
|
|
34
|
-
|
|
34
|
+
F.error(a("webui.utils.download.downloadFailed"));
|
|
35
35
|
});
|
|
36
36
|
} catch (f) {
|
|
37
|
-
console.error("下载失败:", f),
|
|
37
|
+
console.error("下载失败:", f), F.error(a("webui.utils.download.fileDownloadFailedRetry"));
|
|
38
38
|
}
|
|
39
|
-
}, Fe = ["xlsx", "xls", "csv", "txt"], ke = (
|
|
40
|
-
const f =
|
|
39
|
+
}, Fe = ["xlsx", "xls", "csv", "txt"], ke = (c, k, e) => {
|
|
40
|
+
const f = k.split(".").pop();
|
|
41
41
|
if (Fe.includes(f))
|
|
42
|
-
console.log(
|
|
42
|
+
console.log(c);
|
|
43
43
|
else
|
|
44
|
-
return
|
|
45
|
-
const
|
|
46
|
-
return N(
|
|
44
|
+
return F.error(a("webui.utils.download.fileTypeNotSupported")), !1;
|
|
45
|
+
const u = Z(c.params, e);
|
|
46
|
+
return N(c, u).then((l) => {
|
|
47
47
|
if ((l == null ? void 0 : l.status) === j.SUCCESS && l.data) {
|
|
48
48
|
const O = l.data.Content, C = atob(O), S = [];
|
|
49
49
|
for (let g = 0; g < C.length; g++)
|
|
@@ -52,9 +52,9 @@ const Ce = (u, F) => {
|
|
|
52
52
|
Y().logout(!1);
|
|
53
53
|
return;
|
|
54
54
|
} else
|
|
55
|
-
|
|
55
|
+
F.error(a("webui.utils.download.previewFailed"));
|
|
56
56
|
});
|
|
57
|
-
},
|
|
57
|
+
}, _e = { class: "flex items-center justify-between w-full" }, Se = { class: "w-35 mx-3 flex gap-2" }, ge = { class: "mt-4 px-3" }, Pe = { class: "flex items-center justify-between" }, Ee = { class: "flex items-center" }, Oe = ["title"], Le = { class: "flex items-center" }, Te = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "mr-2"
|
|
60
60
|
}, ze = {
|
|
@@ -69,7 +69,7 @@ const Ce = (u, F) => {
|
|
|
69
69
|
}, $e = ["onClick"], Ke = {
|
|
70
70
|
key: 0,
|
|
71
71
|
class: "text-sm text-nowrap"
|
|
72
|
-
}, Ne = { key: 0 }, je = /* @__PURE__ */
|
|
72
|
+
}, Ne = { key: 0 }, je = /* @__PURE__ */ ue({
|
|
73
73
|
__name: "uploadList",
|
|
74
74
|
props: {
|
|
75
75
|
autoUpload: { type: Boolean, default: !1 },
|
|
@@ -92,8 +92,8 @@ const Ce = (u, F) => {
|
|
|
92
92
|
showFolderUpload: { type: Boolean, default: !1 }
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:file-list"],
|
|
95
|
-
setup(
|
|
96
|
-
const e =
|
|
95
|
+
setup(c, { emit: k }) {
|
|
96
|
+
const e = c, f = fe(), { errInfo: u } = f, l = R(e.fileList), _ = R([]), O = k, C = I(() => {
|
|
97
97
|
var t;
|
|
98
98
|
return (t = e.fileExt) != null && t.length ? e.fileExt.map((o) => `.${o}`).join(",") : "";
|
|
99
99
|
}), S = (t) => {
|
|
@@ -101,9 +101,9 @@ const Ce = (u, F) => {
|
|
|
101
101
|
if (e.fileExt && e.fileExt.length > 0) {
|
|
102
102
|
const s = ((o = t.name.split(".").pop()) == null ? void 0 : o.toLowerCase()) || "";
|
|
103
103
|
if (!e.fileExt.includes(s))
|
|
104
|
-
return
|
|
104
|
+
return F.error(a("webui.components.form.upload.unsupportedFileType")), !1;
|
|
105
105
|
}
|
|
106
|
-
return t.size / 1024 / 1024 > e.maxFileSize ? (
|
|
106
|
+
return t.size / 1024 / 1024 > e.maxFileSize ? (F.error(a("webui.components.form.upload.fileSizeExceeded", [e.maxFileSize])), !1) : !0;
|
|
107
107
|
}, g = () => e.maxCount > 1 && l.value.length >= e.maxCount, L = (t) => {
|
|
108
108
|
const o = t;
|
|
109
109
|
o.params || (o.params = {});
|
|
@@ -118,27 +118,27 @@ const Ce = (u, F) => {
|
|
|
118
118
|
s = !0;
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
121
|
-
const
|
|
121
|
+
const P = L(T);
|
|
122
122
|
if (e.maxCount === 1) {
|
|
123
|
-
o.length = 0, o.push(
|
|
123
|
+
o.length = 0, o.push(P);
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
126
|
if (g()) {
|
|
127
|
-
|
|
127
|
+
F.error(a("webui.components.form.upload.maxFileCount", [e.maxCount])), s = !0;
|
|
128
128
|
break;
|
|
129
129
|
}
|
|
130
130
|
const i = o.findIndex(
|
|
131
|
-
(h) => h.name ===
|
|
131
|
+
(h) => h.name === P.name
|
|
132
132
|
);
|
|
133
|
-
i > -1 ? o[i] =
|
|
133
|
+
i > -1 ? o[i] = P : o.push(P);
|
|
134
134
|
}
|
|
135
|
-
(!s || o.length > 0) && (l.value = o),
|
|
135
|
+
(!s || o.length > 0) && (l.value = o), _.value = [];
|
|
136
136
|
}, te = (t) => {
|
|
137
|
-
|
|
137
|
+
_.value = t, D(t);
|
|
138
138
|
}, oe = I(() => ({
|
|
139
139
|
accept: C.value,
|
|
140
140
|
multiple: e.maxCount !== 1,
|
|
141
|
-
fileList:
|
|
141
|
+
fileList: _.value,
|
|
142
142
|
"onUpdate:fileList": te,
|
|
143
143
|
beforeUpload: ee,
|
|
144
144
|
listType: "text",
|
|
@@ -216,7 +216,7 @@ const Ce = (u, F) => {
|
|
|
216
216
|
FileKey: o.minioFile.Key
|
|
217
217
|
}
|
|
218
218
|
}).then((s) => {
|
|
219
|
-
s && s.status === j.SUCCESS && (
|
|
219
|
+
s && s.status === j.SUCCESS && (F.success(a("webui.components.form.upload.deleteSuccess")), l.value.splice(t, 1));
|
|
220
220
|
}) : l.value.splice(t, 1), A.value = -1;
|
|
221
221
|
}, A = R(-1), ae = (t, o) => {
|
|
222
222
|
if (A.value = t, o === r.Pending) {
|
|
@@ -241,7 +241,7 @@ const Ce = (u, F) => {
|
|
|
241
241
|
default:
|
|
242
242
|
return "cyan";
|
|
243
243
|
}
|
|
244
|
-
},
|
|
244
|
+
}, ce = (t) => {
|
|
245
245
|
switch (t) {
|
|
246
246
|
case r.Uploading:
|
|
247
247
|
return a("webui.components.form.upload.uploading");
|
|
@@ -258,22 +258,22 @@ const Ce = (u, F) => {
|
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
return (t, o) => {
|
|
261
|
-
var T,
|
|
261
|
+
var T, P;
|
|
262
262
|
const s = de("auth");
|
|
263
263
|
return d(), m("div", {
|
|
264
|
-
class: z(["w-full border border-solid border-gray-100 mt-1 rounded-md py-5", [(T = n(
|
|
264
|
+
class: z(["w-full border border-solid border-gray-100 mt-1 rounded-md py-5", [(T = n(u)) == null ? void 0 : T.errClass]])
|
|
265
265
|
}, [
|
|
266
|
-
w("div",
|
|
267
|
-
w("div",
|
|
266
|
+
w("div", _e, [
|
|
267
|
+
w("div", Se, [
|
|
268
268
|
b((d(), V(n(J), G({ ref: "fileUploader" }, oe.value), {
|
|
269
269
|
default: v(() => {
|
|
270
270
|
var i;
|
|
271
271
|
return [
|
|
272
272
|
p(n(H), {
|
|
273
|
-
class: z([((i = n(
|
|
273
|
+
class: z([((i = n(u)) == null ? void 0 : i.errClass) + "-text"])
|
|
274
274
|
}, {
|
|
275
275
|
default: v(() => [
|
|
276
|
-
E(
|
|
276
|
+
E(U(n(a)("webui.components.form.upload.selectFile")), 1)
|
|
277
277
|
]),
|
|
278
278
|
_: 1
|
|
279
279
|
}, 8, ["class"])
|
|
@@ -283,7 +283,7 @@ const Ce = (u, F) => {
|
|
|
283
283
|
}, 16)), [
|
|
284
284
|
[s, { role: ["Super", "Admin"], permit: ":uploadlist:upload" }]
|
|
285
285
|
]),
|
|
286
|
-
|
|
286
|
+
c.showFolderUpload ? b((d(), V(n(J), G({
|
|
287
287
|
key: 0,
|
|
288
288
|
ref: "fileFolderUploader",
|
|
289
289
|
webkitdirectory: !0,
|
|
@@ -293,10 +293,10 @@ const Ce = (u, F) => {
|
|
|
293
293
|
var i;
|
|
294
294
|
return [
|
|
295
295
|
p(n(H), {
|
|
296
|
-
class: z([((i = n(
|
|
296
|
+
class: z([((i = n(u)) == null ? void 0 : i.errClass) + "-text"])
|
|
297
297
|
}, {
|
|
298
298
|
default: v(() => [
|
|
299
|
-
E(
|
|
299
|
+
E(U(n(a)("webui.components.form.upload.selectDirectory")), 1)
|
|
300
300
|
]),
|
|
301
301
|
_: 1
|
|
302
302
|
}, 8, ["class"])
|
|
@@ -308,10 +308,10 @@ const Ce = (u, F) => {
|
|
|
308
308
|
]) : y("", !0)
|
|
309
309
|
]),
|
|
310
310
|
w("div", {
|
|
311
|
-
class: z(["flex-1 text-sm text-gray-500", [((
|
|
312
|
-
},
|
|
311
|
+
class: z(["flex-1 text-sm text-gray-500", [((P = n(u)) == null ? void 0 : P.errClass) + "-text"]])
|
|
312
|
+
}, U(se()), 3)
|
|
313
313
|
]),
|
|
314
|
-
w("div",
|
|
314
|
+
w("div", ge, [
|
|
315
315
|
(d(!0), m(pe, null, me(l.value, (i, h) => (d(), m("div", {
|
|
316
316
|
key: (e.parentPath || "") + (i.relativePath || i.name || h),
|
|
317
317
|
class: "mb-2 pb-1"
|
|
@@ -321,20 +321,20 @@ const Ce = (u, F) => {
|
|
|
321
321
|
w("span", {
|
|
322
322
|
class: z(["text-gray-700 mr-2", [i.status == n(r).Offline ? "line-through" : ""]]),
|
|
323
323
|
title: i.relativePath || i.fileName || i.name
|
|
324
|
-
},
|
|
324
|
+
}, U(i.fileName ?? i.name), 11, Oe),
|
|
325
325
|
w("span", null, [
|
|
326
326
|
p(n(we), {
|
|
327
327
|
color: re(i.status)
|
|
328
328
|
}, {
|
|
329
329
|
default: v(() => [
|
|
330
|
-
E(
|
|
330
|
+
E(U(ce(i.status)), 1)
|
|
331
331
|
]),
|
|
332
332
|
_: 2
|
|
333
333
|
}, 1032, ["color"])
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
336
336
|
w("div", Le, [
|
|
337
|
-
|
|
337
|
+
c.showOnlineSwitch && (i.status == n(r).Online || i.status == n(r).Offline) ? (d(), m("div", Te, [
|
|
338
338
|
p(n(B), {
|
|
339
339
|
title: n(a)("webui.components.form.upload.onlineOrOffline")
|
|
340
340
|
}, {
|
|
@@ -354,7 +354,7 @@ const Ce = (u, F) => {
|
|
|
354
354
|
_: 2
|
|
355
355
|
}, 1032, ["title"])
|
|
356
356
|
])) : y("", !0),
|
|
357
|
-
|
|
357
|
+
c.downloadUrl && (i.status == n(r).Online || i.status == n(r).Offline) ? (d(), m("div", ze, [
|
|
358
358
|
p(n(B), {
|
|
359
359
|
title: n(a)("webui.common.download")
|
|
360
360
|
}, {
|
|
@@ -366,20 +366,20 @@ const Ce = (u, F) => {
|
|
|
366
366
|
}, null, 8, ["onClick"]), [
|
|
367
367
|
[s, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
|
|
368
368
|
]),
|
|
369
|
-
|
|
369
|
+
c.showActionText ? b((d(), m("span", {
|
|
370
370
|
key: 0,
|
|
371
371
|
class: "mr-2 text-sm text-nowrap",
|
|
372
372
|
onClick: (x) => M(h)
|
|
373
|
-
}, [
|
|
374
|
-
E("
|
|
375
|
-
]
|
|
373
|
+
}, [
|
|
374
|
+
E(U(n(a)("webui.common.download")), 1)
|
|
375
|
+
], 8, Ae)), [
|
|
376
376
|
[s, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
|
|
377
377
|
]) : y("", !0)
|
|
378
378
|
]),
|
|
379
379
|
_: 2
|
|
380
380
|
}, 1032, ["title"])
|
|
381
381
|
])) : y("", !0),
|
|
382
|
-
|
|
382
|
+
c.previewUrl && (i.status == n(r).Online || i.status == n(r).Offline) ? (d(), m("div", Be, [
|
|
383
383
|
p(n(B), {
|
|
384
384
|
title: n(a)("webui.common.preview")
|
|
385
385
|
}, {
|
|
@@ -391,12 +391,12 @@ const Ce = (u, F) => {
|
|
|
391
391
|
}, null, 8, ["onClick"]), [
|
|
392
392
|
[s, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
|
|
393
393
|
]),
|
|
394
|
-
|
|
394
|
+
c.showActionText ? b((d(), m("span", {
|
|
395
395
|
key: 0,
|
|
396
396
|
class: "mr-2 text-sm text-nowrap",
|
|
397
397
|
onClick: (x) => q(h)
|
|
398
398
|
}, [
|
|
399
|
-
E(
|
|
399
|
+
E(U(n(a)("webui.common.preview")), 1)
|
|
400
400
|
], 8, Re)), [
|
|
401
401
|
[s, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
|
|
402
402
|
]) : y("", !0)
|
|
@@ -404,7 +404,7 @@ const Ce = (u, F) => {
|
|
|
404
404
|
_: 2
|
|
405
405
|
}, 1032, ["title"])
|
|
406
406
|
])) : y("", !0),
|
|
407
|
-
|
|
407
|
+
c.showDelete !== !1 ? (d(), m("div", Ie, [
|
|
408
408
|
p(n(ve), {
|
|
409
409
|
open: le(h),
|
|
410
410
|
cancelText: n(a)("webui.common.no"),
|
|
@@ -430,8 +430,8 @@ const Ce = (u, F) => {
|
|
|
430
430
|
}, null, 512), [
|
|
431
431
|
[s, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
432
432
|
]),
|
|
433
|
-
|
|
434
|
-
E(
|
|
433
|
+
c.showActionText ? b((d(), m("span", Ke, [
|
|
434
|
+
E(U(n(a)("webui.common.delete")), 1)
|
|
435
435
|
])), [
|
|
436
436
|
[s, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
437
437
|
]) : y("", !0)
|
|
@@ -458,7 +458,7 @@ const Ce = (u, F) => {
|
|
|
458
458
|
], 2);
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
}), tt = /* @__PURE__ */ ye(je, [["__scopeId", "data-v-
|
|
461
|
+
}), tt = /* @__PURE__ */ ye(je, [["__scopeId", "data-v-c241342c"]]);
|
|
462
462
|
export {
|
|
463
463
|
Fe as C,
|
|
464
464
|
tt as U,
|
|
@@ -24,6 +24,7 @@ declare function __VLS_template(): {
|
|
|
24
24
|
};
|
|
25
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
26
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
27
|
+
grid: ListGridType;
|
|
27
28
|
pagination: false | Partial< ExtractPropTypes<{
|
|
28
29
|
total: NumberConstructor;
|
|
29
30
|
defaultCurrent: NumberConstructor;
|
|
@@ -114,7 +115,6 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
|
|
|
114
115
|
default: (size: number) => void;
|
|
115
116
|
};
|
|
116
117
|
}>>;
|
|
117
|
-
grid: ListGridType;
|
|
118
118
|
titleField: string;
|
|
119
119
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
120
120
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W,
|
|
1
|
+
import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W, openBlock as p, createElementBlock as x, Fragment as z, createElementVNode as f, toDisplayString as $, unref as l, createVNode as N, createBlock as A, withKeys as v, withModifiers as w, normalizeClass as O, withCtx as L, createCommentVNode as q } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as D } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as D } from "../../assets/modules/toolIcon-x2jrUmnu.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-BTj3zPWT.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index-CxITdYGV.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h,
|
|
2
|
-
import { _ as g } from "../../assets/modules/baseLayout-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, openBlock as o, createBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-BnwlI4vK.js";
|
|
3
|
+
import { an as A, a as S } from "../../assets/modules/upload-template-BTj3zPWT.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import b from "vue-m-message";
|
|
@@ -24,7 +24,7 @@ const j = /* @__PURE__ */ f({
|
|
|
24
24
|
b.closeAll();
|
|
25
25
|
}), (c, k) => {
|
|
26
26
|
const m = h("router-view");
|
|
27
|
-
return
|
|
27
|
+
return o(), t(g, {
|
|
28
28
|
routes: l.routes
|
|
29
29
|
}, {
|
|
30
30
|
default: s(() => [
|
|
@@ -33,11 +33,11 @@ const j = /* @__PURE__ */ f({
|
|
|
33
33
|
}, [
|
|
34
34
|
w(m, null, {
|
|
35
35
|
default: s(({ Component: u, route: i }) => [
|
|
36
|
-
(
|
|
36
|
+
(o(), t(y, {
|
|
37
37
|
include: n(e).CachedComponents,
|
|
38
38
|
exclude: n(e).ExcludeComponents
|
|
39
39
|
}, [
|
|
40
|
-
(
|
|
40
|
+
(o(), t(I(n(e).cacheComponent(u, i))))
|
|
41
41
|
], 1032, ["include", "exclude"]))
|
|
42
42
|
]),
|
|
43
43
|
_: 1
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
2
|
-
import { r as s } from "../../assets/modules/upload-template-
|
|
1
|
+
import { defineComponent as i, openBlock as n, createBlock as p, unref as r, withCtx as e, createVNode as m, createTextVNode as c, toDisplayString as a } from "vue";
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-BTj3zPWT.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -13,7 +13,7 @@ const N = /* @__PURE__ */ i({
|
|
|
13
13
|
const o = () => {
|
|
14
14
|
s.back();
|
|
15
15
|
};
|
|
16
|
-
return (t, d) => (
|
|
16
|
+
return (t, d) => (n(), p(r(u), {
|
|
17
17
|
status: "403",
|
|
18
18
|
title: "403",
|
|
19
19
|
"sub-title": t.$t("webui.components.error.forbidden")
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
2
|
-
import { r as u } from "../../assets/modules/upload-template-
|
|
1
|
+
import { defineComponent as i, openBlock as n, createBlock as p, unref as e, withCtx as r, createVNode as m, createTextVNode as a, toDisplayString as c } from "vue";
|
|
2
|
+
import { r as u } from "../../assets/modules/upload-template-BTj3zPWT.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -13,7 +13,7 @@ const g = /* @__PURE__ */ i({
|
|
|
13
13
|
const o = () => {
|
|
14
14
|
u.back();
|
|
15
15
|
};
|
|
16
|
-
return (t, _) => (
|
|
16
|
+
return (t, _) => (n(), p(e(s), {
|
|
17
17
|
status: "404",
|
|
18
18
|
title: "404",
|
|
19
19
|
"sub-title": t.$t("webui.components.error.pageNotFound")
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he,
|
|
2
|
-
import { _ as
|
|
1
|
+
import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he, openBlock as f, createBlock as Q, unref as r, withCtx as D, renderSlot as W, createElementBlock as g, createVNode as _, createTextVNode as Z, toDisplayString as E, createCommentVNode as B, createElementVNode as b, normalizeClass as Fe, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
+
import { _ as J } from "../../assets/modules/index-C6PIxlSk.js";
|
|
3
3
|
import { Modal as Ce, Upload as ce, Space as Ue } from "ant-design-vue";
|
|
4
4
|
import { httpGet as _e, ResStatus as de } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as a, H as Ee,
|
|
5
|
+
import { $ as a, H as Ee, Z as Te, S as Re } from "../../assets/modules/upload-template-BTj3zPWT.js";
|
|
6
6
|
import m from "vue-m-message";
|
|
7
|
-
import { c as pe, _ as
|
|
8
|
-
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-
|
|
7
|
+
import { c as pe, _ as Y, a as Se, p as De, i as ke } from "../../assets/modules/index-7znR3nGt.js";
|
|
8
|
+
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-CWfVUeSn.js";
|
|
9
9
|
import "@skyfox2000/microbase";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
@@ -102,7 +102,7 @@ const Ke = (t) => t.includes(",") || t.includes(`
|
|
|
102
102
|
}, Ie = { class: "overflow-y-auto" }, Xe = { class: "text-[13px] text-gray-600" }, He = { class: "pl-5 mt-1 mb-0" }, Qe = {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "mt-3"
|
|
105
|
-
}, We = { class: "text-[12px] text-gray-600 p-1" },
|
|
105
|
+
}, We = { class: "text-[12px] text-gray-600 p-1" }, Ze = { class: "text-[13px] text-gray-600" }, Je = { class: "pl-5 mt-1 mb-0" }, Ye = { class: "text-[12px] text-gray-600" }, fl = /* @__PURE__ */ be({
|
|
106
106
|
__name: "excelForm",
|
|
107
107
|
props: {
|
|
108
108
|
title: {},
|
|
@@ -362,13 +362,13 @@ const Ke = (t) => t.includes(",") || t.includes(`
|
|
|
362
362
|
default: D(() => {
|
|
363
363
|
var s;
|
|
364
364
|
return [
|
|
365
|
-
_(r(
|
|
365
|
+
_(r(J), { onClick: se }, {
|
|
366
366
|
default: D(() => [
|
|
367
|
-
|
|
367
|
+
Z(E(t.cancelText ?? ($.value ? r(a)("webui.components.content.dialog.close") : r(a)("webui.common.cancel"))), 1)
|
|
368
368
|
]),
|
|
369
369
|
_: 1
|
|
370
370
|
}),
|
|
371
|
-
$.value ? B("", !0) : (f(), Q(r(
|
|
371
|
+
$.value ? B("", !0) : (f(), Q(r(J), {
|
|
372
372
|
key: 0,
|
|
373
373
|
onClick: we,
|
|
374
374
|
type: "primary",
|
|
@@ -376,7 +376,7 @@ const Ke = (t) => t.includes(",") || t.includes(`
|
|
|
376
376
|
disabled: !F.value || R.value || L.value || r(l).isFormLoading.value
|
|
377
377
|
}, {
|
|
378
378
|
default: D(() => [
|
|
379
|
-
|
|
379
|
+
Z(E(t.saveText ?? r(a)("webui.components.content.dialog.uploadFile")), 1)
|
|
380
380
|
]),
|
|
381
381
|
_: 1
|
|
382
382
|
}, 8, ["loading", "disabled"]))
|
|
@@ -397,12 +397,12 @@ const Ke = (t) => t.includes(",") || t.includes(`
|
|
|
397
397
|
disabled: !oe.value
|
|
398
398
|
}, {
|
|
399
399
|
default: D(() => [
|
|
400
|
-
_(r(
|
|
400
|
+
_(r(J), {
|
|
401
401
|
type: "primary",
|
|
402
402
|
disabled: !oe.value
|
|
403
403
|
}, {
|
|
404
404
|
default: D(() => [
|
|
405
|
-
|
|
405
|
+
Z(E(me.value), 1)
|
|
406
406
|
]),
|
|
407
407
|
_: 1
|
|
408
408
|
}, 8, ["disabled"])
|
|
@@ -410,7 +410,7 @@ const Ke = (t) => t.includes(",") || t.includes(`
|
|
|
410
410
|
_: 1
|
|
411
411
|
}, 8, ["file-list", "accept", "disabled"]),
|
|
412
412
|
F.value && x.value ? (f(), g("div", ze, [
|
|
413
|
-
_(r(
|
|
413
|
+
_(r(Y), {
|
|
414
414
|
message: x.value,
|
|
415
415
|
type: "info",
|
|
416
416
|
"show-icon": !1
|
|
@@ -444,7 +444,7 @@ const Ke = (t) => t.includes(",") || t.includes(`
|
|
|
444
444
|
r(V).length > 0 ? (f(), g("div", Ve, [
|
|
445
445
|
b("div", je, [
|
|
446
446
|
r(V).length === 0 ? (f(), g("div", qe, E(r(a)("webui.components.content.dialog.noValidationRules")), 1)) : (f(), g("div", Ge, [
|
|
447
|
-
_(r(
|
|
447
|
+
_(r(Y), {
|
|
448
448
|
message: M.value,
|
|
449
449
|
type: A.value,
|
|
450
450
|
"show-icon": "",
|
|
@@ -465,16 +465,16 @@ const Ke = (t) => t.includes(",") || t.includes(`
|
|
|
465
465
|
]))), 128))
|
|
466
466
|
]),
|
|
467
467
|
C.value && C.value.length > 0 ? (f(), g("div", Qe, [
|
|
468
|
-
_(r(
|
|
468
|
+
_(r(Y), {
|
|
469
469
|
message: z.value,
|
|
470
470
|
type: O.value,
|
|
471
471
|
"show-icon": "",
|
|
472
472
|
class: "mt-2 mb-2"
|
|
473
473
|
}, null, 8, ["message", "type"]),
|
|
474
474
|
b("div", We, [
|
|
475
|
-
b("div",
|
|
476
|
-
b("ul",
|
|
477
|
-
b("li",
|
|
475
|
+
b("div", Ze, E(C.value.length > 1 ? r(a)("webui.components.content.dialog.combinationMustBeUnique") : r(a)("webui.components.content.dialog.fieldMustBeUnique", [C.value.join(", ")])), 1),
|
|
476
|
+
b("ul", Je, [
|
|
477
|
+
b("li", Ye, E(C.value.join(", ")), 1)
|
|
478
478
|
])
|
|
479
479
|
])
|
|
480
480
|
])) : B("", !0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h,
|
|
2
|
-
import { _ as y } from "../../assets/modules/baseLayout-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, openBlock as o, createBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-BnwlI4vK.js";
|
|
3
|
+
import { an as A, a as S } from "../../assets/modules/upload-template-BTj3zPWT.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import k from "vue-m-message";
|
|
@@ -14,9 +14,9 @@ const j = /* @__PURE__ */ f({
|
|
|
14
14
|
routes: {}
|
|
15
15
|
},
|
|
16
16
|
setup(a) {
|
|
17
|
-
const
|
|
17
|
+
const p = a, e = A(), l = S(), r = d("h-[calc(100vh-81px)]");
|
|
18
18
|
return _(
|
|
19
|
-
() =>
|
|
19
|
+
() => l.fullscreen,
|
|
20
20
|
(c) => {
|
|
21
21
|
r.value = c ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-81px)]";
|
|
22
22
|
}
|
|
@@ -24,8 +24,8 @@ const j = /* @__PURE__ */ f({
|
|
|
24
24
|
k.closeAll();
|
|
25
25
|
}), (c, B) => {
|
|
26
26
|
const m = h("router-view");
|
|
27
|
-
return
|
|
28
|
-
routes:
|
|
27
|
+
return o(), t(y, {
|
|
28
|
+
routes: p.routes
|
|
29
29
|
}, {
|
|
30
30
|
default: s(() => [
|
|
31
31
|
C("div", {
|
|
@@ -33,11 +33,11 @@ const j = /* @__PURE__ */ f({
|
|
|
33
33
|
}, [
|
|
34
34
|
w(m, null, {
|
|
35
35
|
default: s(({ Component: u, route: i }) => [
|
|
36
|
-
(
|
|
36
|
+
(o(), t(I, {
|
|
37
37
|
include: n(e).CachedComponents,
|
|
38
38
|
exclude: n(e).ExcludeComponents
|
|
39
39
|
}, [
|
|
40
|
-
(
|
|
40
|
+
(o(), t(g(n(e).cacheComponent(u, i))))
|
|
41
41
|
], 1032, ["include", "exclude"]))
|
|
42
42
|
]),
|
|
43
43
|
_: 1
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as T, ref as l, watch as x, onMounted as F,
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
1
|
+
import { defineComponent as T, ref as l, watch as x, onMounted as F, openBlock as C, createBlock as q, unref as u, withCtx as d, createVNode as f, createTextVNode as L, toDisplayString as b } from "vue";
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-C6PIxlSk.js";
|
|
3
3
|
import { Modal as D, Space as z } from "ant-design-vue";
|
|
4
4
|
import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
|
|
5
|
-
import {
|
|
5
|
+
import { am as n, $ as w } from "../../assets/modules/upload-template-BTj3zPWT.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { U as M } from "../../assets/modules/file-upload-
|
|
7
|
+
import { U as M } from "../../assets/modules/file-upload-CWfVUeSn.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as $ } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as $ } from "../../assets/modules/uploadList-CzV1noAa.js";
|
|
13
13
|
const H = /* @__PURE__ */ T({
|
|
14
14
|
__name: "templateFile",
|
|
15
15
|
props: {
|
|
@@ -136,7 +136,7 @@ const H = /* @__PURE__ */ T({
|
|
|
136
136
|
const c = () => {
|
|
137
137
|
o.value = !1, n.value = !1;
|
|
138
138
|
};
|
|
139
|
-
return (e, r) => (
|
|
139
|
+
return (e, r) => (C(), q(u(D), {
|
|
140
140
|
title: u(w)("webui.components.content.dialog.templateFileManager"),
|
|
141
141
|
open: o.value,
|
|
142
142
|
"onUpdate:open": r[1] || (r[1] = (i) => o.value = i),
|