@skyfox2000/webui 1.5.10 → 1.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/modules/{baseLayout-BuQjrozB.js → baseLayout-CRSIlLKU.js} +3 -3
- package/lib/assets/modules/file-upload-CrA5-gqr.js +211 -0
- package/lib/assets/modules/{index-CW_ZCHWs.js → index-CA_H2eOk.js} +1 -1
- package/lib/assets/modules/index-CW7dVG4Z.js +372 -0
- package/lib/assets/modules/index-Doi0zREW.js +114 -0
- package/lib/assets/modules/{menuTabs-BYSjomB7.js → menuTabs-DRoP9rnS.js} +27 -28
- package/lib/assets/modules/{toolIcon-D4vAp0qA.js → toolIcon-CghIoh0a.js} +1 -1
- package/lib/assets/modules/{upload-template-NU0Bpg4N.js → upload-template-D6r6X3vP.js} +101 -85
- package/lib/assets/modules/uploadList-CIGuBEpz.js +468 -0
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +196 -196
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/locales/default.d.ts +15 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +1191 -1194
- package/package.json +3 -3
- package/src/components/content/dialog/excelForm.vue +2 -2
- package/src/components/form/upload/imageList.vue +0 -2
- package/src/components/form/upload/uploadList.vue +0 -3
- package/src/locales/default.ts +18 -3
- package/src/utils/data.ts +1 -1
- package/src/utils/excel-preview.ts +10 -10
- package/src/utils/excel-view.ts +6 -4
- package/src/utils/file-upload.ts +2 -2
- package/src/utils/micro-openapis.ts +4 -3
- package/src/utils/tools.ts +1 -1
- package/src/utils/upload-template.ts +2 -1
- package/lib/assets/modules/file-upload-DcusqXDb.js +0 -211
- package/lib/assets/modules/index-BlQB5KSU.js +0 -381
- package/lib/assets/modules/index-CekzHbWp.js +0 -114
- package/lib/assets/modules/uploadList-ENSsTfpD.js +0 -472
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
import { defineComponent as ce, ref as R, computed as I, watch as $, resolveDirective as de, createElementBlock as m, openBlock as d, normalizeClass as z, unref as n, createElementVNode as w, withDirectives as b, createCommentVNode as y, createBlock as V, mergeProps as G, withCtx as v, createVNode as p, createTextVNode as E, toDisplayString as P, Fragment as pe, renderList as me } from "vue";
|
|
2
|
+
import { _ as H } from "./index-CA_H2eOk.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-CghIoh0a.js";
|
|
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-D6r6X3vP.js";
|
|
6
|
+
import U from "vue-m-message";
|
|
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-CrA5-gqr.js";
|
|
9
|
+
import { combineParams as Z } from "@skyfox2000/microbase";
|
|
10
|
+
import "async-validator";
|
|
11
|
+
import "dayjs";
|
|
12
|
+
import "vue-draggable-next";
|
|
13
|
+
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Ce = (u, F) => {
|
|
15
|
+
const e = document.createElement("a"), f = URL.createObjectURL(u);
|
|
16
|
+
e.href = f, e.download = F, e.style.display = "none", document.body.appendChild(e), e.click(), URL.revokeObjectURL(f), document.body.removeChild(e);
|
|
17
|
+
}, Ue = (u, F, e) => {
|
|
18
|
+
try {
|
|
19
|
+
e && (u.api || (u.api = e.api), u.authorize === void 0 && (u.authorize = e.authorize));
|
|
20
|
+
const f = Z(u.params, F);
|
|
21
|
+
return N(u, f).then((c) => {
|
|
22
|
+
if ((c == null ? void 0 : c.status) === j.SUCCESS && c.data) {
|
|
23
|
+
const l = c.data, k = l.Content, O = l.Key.split("/").pop(), C = atob(k), S = [];
|
|
24
|
+
for (let L = 0; L < C.length; L++)
|
|
25
|
+
S.push(C.charCodeAt(L));
|
|
26
|
+
const g = new Blob([new Uint8Array(S)], {
|
|
27
|
+
type: l.Type
|
|
28
|
+
});
|
|
29
|
+
Ce(g, O);
|
|
30
|
+
} else if ((c == null ? void 0 : c.errno) == X) {
|
|
31
|
+
Y().logout(!1);
|
|
32
|
+
return;
|
|
33
|
+
} else
|
|
34
|
+
U.error(a("webui.utils.download.downloadFailed"));
|
|
35
|
+
});
|
|
36
|
+
} catch (f) {
|
|
37
|
+
console.error("下载失败:", f), U.error(a("webui.utils.download.fileDownloadFailedRetry"));
|
|
38
|
+
}
|
|
39
|
+
}, Fe = ["xlsx", "xls", "csv", "txt"], ke = (u, F, e) => {
|
|
40
|
+
const f = F.split(".").pop();
|
|
41
|
+
if (Fe.includes(f))
|
|
42
|
+
console.log(u);
|
|
43
|
+
else
|
|
44
|
+
return U.error(a("webui.utils.download.fileTypeNotSupported")), !1;
|
|
45
|
+
const c = Z(u.params, e);
|
|
46
|
+
return N(u, c).then((l) => {
|
|
47
|
+
if ((l == null ? void 0 : l.status) === j.SUCCESS && l.data) {
|
|
48
|
+
const O = l.data.Content, C = atob(O), S = [];
|
|
49
|
+
for (let g = 0; g < C.length; g++)
|
|
50
|
+
S.push(C.charCodeAt(g));
|
|
51
|
+
} else if ((l == null ? void 0 : l.errno) == X) {
|
|
52
|
+
Y().logout(!1);
|
|
53
|
+
return;
|
|
54
|
+
} else
|
|
55
|
+
U.error(a("webui.utils.download.previewFailed"));
|
|
56
|
+
});
|
|
57
|
+
}, Se = { class: "flex items-center justify-between w-full" }, ge = { class: "w-35 mx-3 flex gap-2" }, _e = { 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
|
+
key: 0,
|
|
59
|
+
class: "mr-2"
|
|
60
|
+
}, ze = {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: "flex items-center text-blue-500 hover:text-blue-700 mr-1 cursor-pointer"
|
|
63
|
+
}, Ae = ["onClick"], Be = {
|
|
64
|
+
key: 2,
|
|
65
|
+
class: "flex items-center text-blue-500 hover:text-blue-700 mr-1 cursor-pointer"
|
|
66
|
+
}, Re = ["onClick"], Ie = {
|
|
67
|
+
key: 3,
|
|
68
|
+
class: "flex items-center text-red-500 hover:text-red-700 cursor-pointer"
|
|
69
|
+
}, $e = ["onClick"], Ke = {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "text-sm text-nowrap"
|
|
72
|
+
}, Ne = { key: 0 }, je = /* @__PURE__ */ ce({
|
|
73
|
+
__name: "uploadList",
|
|
74
|
+
props: {
|
|
75
|
+
autoUpload: { type: Boolean, default: !1 },
|
|
76
|
+
uploadUrl: {},
|
|
77
|
+
downloadUrl: {},
|
|
78
|
+
previewUrl: {},
|
|
79
|
+
deleteUrl: {},
|
|
80
|
+
fileList: { default: () => [] },
|
|
81
|
+
placeholder: { default: "" },
|
|
82
|
+
fileExt: {},
|
|
83
|
+
maxFileSize: { default: 20 },
|
|
84
|
+
maxCount: { default: 5 },
|
|
85
|
+
maxCountTip: { type: Boolean, default: !1 },
|
|
86
|
+
maxFileSizeTip: { type: Boolean, default: !0 },
|
|
87
|
+
fileExtTip: { type: Boolean, default: !0 },
|
|
88
|
+
parentPath: {},
|
|
89
|
+
showActionText: { type: Boolean, default: !0 },
|
|
90
|
+
showOnlineSwitch: { type: Boolean, default: !1 },
|
|
91
|
+
showDelete: { type: Boolean, default: !0 },
|
|
92
|
+
showFolderUpload: { type: Boolean, default: !1 }
|
|
93
|
+
},
|
|
94
|
+
emits: ["update:file-list"],
|
|
95
|
+
setup(u, { emit: F }) {
|
|
96
|
+
const e = u, f = fe(), { errInfo: c } = f, l = R(e.fileList), k = R([]), O = F, C = I(() => {
|
|
97
|
+
var t;
|
|
98
|
+
return (t = e.fileExt) != null && t.length ? e.fileExt.map((o) => `.${o}`).join(",") : "";
|
|
99
|
+
}), S = (t) => {
|
|
100
|
+
var o;
|
|
101
|
+
if (e.fileExt && e.fileExt.length > 0) {
|
|
102
|
+
const s = ((o = t.name.split(".").pop()) == null ? void 0 : o.toLowerCase()) || "";
|
|
103
|
+
if (!e.fileExt.includes(s))
|
|
104
|
+
return U.error(a("webui.components.form.upload.unsupportedFileType")), !1;
|
|
105
|
+
}
|
|
106
|
+
return t.size / 1024 / 1024 > e.maxFileSize ? (U.error(a("webui.components.form.upload.fileSizeExceeded", [e.maxFileSize])), !1) : !0;
|
|
107
|
+
}, g = () => e.maxCount > 1 && l.value.length >= e.maxCount, L = (t) => {
|
|
108
|
+
const o = t;
|
|
109
|
+
o.params || (o.params = {});
|
|
110
|
+
let s = o.name;
|
|
111
|
+
return o.webkitRelativePath && (s = o.webkitRelativePath), o.webkitRelativePath && (o.name = o.webkitRelativePath, o.fileName = o.webkitRelativePath.split("/").pop()), o.params.FileKey = o.name, e.parentPath && (o.params.FileKey = W.join("/", e.parentPath, o.name)), o.status = r.Pending, o.webkitRelativePath && (o.relativePath = s), o;
|
|
112
|
+
}, ee = (t) => S(t) && e.autoUpload, D = async (t) => {
|
|
113
|
+
if (t.length === 0) return;
|
|
114
|
+
const o = [...l.value];
|
|
115
|
+
let s = !1;
|
|
116
|
+
for (const T of t) {
|
|
117
|
+
if (!S(T)) {
|
|
118
|
+
s = !0;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
const _ = L(T);
|
|
122
|
+
if (e.maxCount === 1) {
|
|
123
|
+
o.length = 0, o.push(_);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
if (g()) {
|
|
127
|
+
U.error(a("webui.components.form.upload.maxFileCount", [e.maxCount])), s = !0;
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
const i = o.findIndex(
|
|
131
|
+
(h) => h.name === _.name
|
|
132
|
+
);
|
|
133
|
+
i > -1 ? o[i] = _ : o.push(_);
|
|
134
|
+
}
|
|
135
|
+
(!s || o.length > 0) && (l.value = o), k.value = [];
|
|
136
|
+
}, te = (t) => {
|
|
137
|
+
k.value = t, D(t);
|
|
138
|
+
}, oe = I(() => ({
|
|
139
|
+
accept: C.value,
|
|
140
|
+
multiple: e.maxCount !== 1,
|
|
141
|
+
fileList: k.value,
|
|
142
|
+
"onUpdate:fileList": te,
|
|
143
|
+
beforeUpload: ee,
|
|
144
|
+
listType: "text",
|
|
145
|
+
showUploadList: !1,
|
|
146
|
+
customRequest: async () => {
|
|
147
|
+
if (e.autoUpload && e.uploadUrl)
|
|
148
|
+
for (const t of l.value)
|
|
149
|
+
t.percent === 0 && t.status === r.Pending && await be(e.uploadUrl, t);
|
|
150
|
+
}
|
|
151
|
+
})), ne = I(() => ({
|
|
152
|
+
accept: C.value,
|
|
153
|
+
multiple: !0,
|
|
154
|
+
directory: !0,
|
|
155
|
+
// 添加标准属性
|
|
156
|
+
webkitdirectory: !0,
|
|
157
|
+
// Webkit属性
|
|
158
|
+
fileList: [],
|
|
159
|
+
"onUpdate:fileList": (t) => D(t),
|
|
160
|
+
beforeUpload: () => !1,
|
|
161
|
+
listType: "text",
|
|
162
|
+
showUploadList: !1,
|
|
163
|
+
customRequest: () => {
|
|
164
|
+
}
|
|
165
|
+
}));
|
|
166
|
+
$(
|
|
167
|
+
() => e.fileList,
|
|
168
|
+
(t) => {
|
|
169
|
+
l.value = t;
|
|
170
|
+
},
|
|
171
|
+
{ deep: !0, immediate: !0 }
|
|
172
|
+
), $(
|
|
173
|
+
() => l.value,
|
|
174
|
+
(t) => {
|
|
175
|
+
O("update:file-list", t);
|
|
176
|
+
},
|
|
177
|
+
{ deep: !0 }
|
|
178
|
+
), $(
|
|
179
|
+
() => e.parentPath,
|
|
180
|
+
(t) => {
|
|
181
|
+
t && l.value.forEach((o) => {
|
|
182
|
+
o.params.FileKey = W.join("/", t, o.fileName);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
const M = (t) => {
|
|
187
|
+
const o = l.value[t].minioFile, s = {
|
|
188
|
+
api: e.downloadUrl.api,
|
|
189
|
+
authorize: e.downloadUrl.authorize,
|
|
190
|
+
url: e.downloadUrl.url,
|
|
191
|
+
params: {
|
|
192
|
+
Query: {
|
|
193
|
+
FileKey: o.Key
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
Ue(s);
|
|
198
|
+
}, ie = (t) => {
|
|
199
|
+
t.minioFile && (t.minioFile.Status = t.status);
|
|
200
|
+
}, q = (t) => {
|
|
201
|
+
const o = l.value[t].minioFile, s = {
|
|
202
|
+
api: e.previewUrl.api,
|
|
203
|
+
authorize: e.previewUrl.authorize,
|
|
204
|
+
url: e.previewUrl.url,
|
|
205
|
+
params: {
|
|
206
|
+
Query: {
|
|
207
|
+
FileKey: o.Key
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
ke(s, o.FileName);
|
|
212
|
+
}, Q = (t) => {
|
|
213
|
+
const o = l.value[t];
|
|
214
|
+
e.deleteUrl && o.minioFile && o.minioFile.Key ? N(e.deleteUrl, {
|
|
215
|
+
Query: {
|
|
216
|
+
FileKey: o.minioFile.Key
|
|
217
|
+
}
|
|
218
|
+
}).then((s) => {
|
|
219
|
+
s && s.status === j.SUCCESS && (U.success(a("webui.components.form.upload.deleteSuccess")), l.value.splice(t, 1));
|
|
220
|
+
}) : l.value.splice(t, 1), A.value = -1;
|
|
221
|
+
}, A = R(-1), ae = (t, o) => {
|
|
222
|
+
if (A.value = t, o === r.Pending) {
|
|
223
|
+
Q(t);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
}, le = (t) => t === A.value, se = () => {
|
|
227
|
+
const t = e.fileExt && e.fileExt.length && e.fileExtTip ? a("webui.components.form.upload.fileTypeRequired", [e.fileExt.join("/")]) : "", o = e.maxFileSize !== 0 && e.maxFileSizeTip ? a("webui.components.form.upload.singleFileMax", [e.maxFileSize]) : "", s = e.maxCount !== 0 && e.maxCountTip ? a("webui.components.form.upload.maxFiles", [e.maxCount]) : "";
|
|
228
|
+
return [o, t, s].filter(Boolean).join(",");
|
|
229
|
+
}, re = (t) => {
|
|
230
|
+
switch (t) {
|
|
231
|
+
case r.Uploading:
|
|
232
|
+
return "blue";
|
|
233
|
+
case r.Success:
|
|
234
|
+
return "green";
|
|
235
|
+
case r.Error:
|
|
236
|
+
return "red";
|
|
237
|
+
case r.Online:
|
|
238
|
+
return "green";
|
|
239
|
+
case r.Offline:
|
|
240
|
+
return "pink";
|
|
241
|
+
default:
|
|
242
|
+
return "cyan";
|
|
243
|
+
}
|
|
244
|
+
}, ue = (t) => {
|
|
245
|
+
switch (t) {
|
|
246
|
+
case r.Uploading:
|
|
247
|
+
return a("webui.components.form.upload.uploading");
|
|
248
|
+
case r.Success:
|
|
249
|
+
return a("webui.components.form.upload.uploadComplete");
|
|
250
|
+
case r.Error:
|
|
251
|
+
return a("webui.components.form.upload.uploadFailed");
|
|
252
|
+
case r.Online:
|
|
253
|
+
return a("webui.common.online");
|
|
254
|
+
case r.Offline:
|
|
255
|
+
return a("webui.common.offline");
|
|
256
|
+
default:
|
|
257
|
+
return a("webui.components.form.upload.pendingUpload");
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
return (t, o) => {
|
|
261
|
+
var T, _;
|
|
262
|
+
const s = de("auth");
|
|
263
|
+
return d(), m("div", {
|
|
264
|
+
class: z(["w-full border border-solid border-gray-100 mt-1 rounded-md py-5", [(T = n(c)) == null ? void 0 : T.errClass]])
|
|
265
|
+
}, [
|
|
266
|
+
w("div", Se, [
|
|
267
|
+
w("div", ge, [
|
|
268
|
+
b((d(), V(n(J), G({ ref: "fileUploader" }, oe.value), {
|
|
269
|
+
default: v(() => {
|
|
270
|
+
var i;
|
|
271
|
+
return [
|
|
272
|
+
p(n(H), {
|
|
273
|
+
class: z([((i = n(c)) == null ? void 0 : i.errClass) + "-text"])
|
|
274
|
+
}, {
|
|
275
|
+
default: v(() => [
|
|
276
|
+
E(P(n(a)("webui.components.form.upload.selectFile")), 1)
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["class"])
|
|
280
|
+
];
|
|
281
|
+
}),
|
|
282
|
+
_: 1
|
|
283
|
+
}, 16)), [
|
|
284
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:upload" }]
|
|
285
|
+
]),
|
|
286
|
+
u.showFolderUpload ? b((d(), V(n(J), G({
|
|
287
|
+
key: 0,
|
|
288
|
+
ref: "fileFolderUploader",
|
|
289
|
+
webkitdirectory: !0,
|
|
290
|
+
directory: !0
|
|
291
|
+
}, ne.value), {
|
|
292
|
+
default: v(() => {
|
|
293
|
+
var i;
|
|
294
|
+
return [
|
|
295
|
+
p(n(H), {
|
|
296
|
+
class: z([((i = n(c)) == null ? void 0 : i.errClass) + "-text"])
|
|
297
|
+
}, {
|
|
298
|
+
default: v(() => [
|
|
299
|
+
E(P(n(a)("webui.components.form.upload.selectDirectory")), 1)
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}, 8, ["class"])
|
|
303
|
+
];
|
|
304
|
+
}),
|
|
305
|
+
_: 1
|
|
306
|
+
}, 16)), [
|
|
307
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:upload" }]
|
|
308
|
+
]) : y("", !0)
|
|
309
|
+
]),
|
|
310
|
+
w("div", {
|
|
311
|
+
class: z(["flex-1 text-sm text-gray-500", [((_ = n(c)) == null ? void 0 : _.errClass) + "-text"]])
|
|
312
|
+
}, P(se()), 3)
|
|
313
|
+
]),
|
|
314
|
+
w("div", _e, [
|
|
315
|
+
(d(!0), m(pe, null, me(l.value, (i, h) => (d(), m("div", {
|
|
316
|
+
key: (e.parentPath || "") + (i.relativePath || i.name || h),
|
|
317
|
+
class: "mb-2 pb-1"
|
|
318
|
+
}, [
|
|
319
|
+
w("div", Pe, [
|
|
320
|
+
w("div", Ee, [
|
|
321
|
+
w("span", {
|
|
322
|
+
class: z(["text-gray-700 mr-2", [i.status == n(r).Offline ? "line-through" : ""]]),
|
|
323
|
+
title: i.relativePath || i.fileName || i.name
|
|
324
|
+
}, P(i.fileName ?? i.name), 11, Oe),
|
|
325
|
+
w("span", null, [
|
|
326
|
+
p(n(we), {
|
|
327
|
+
color: re(i.status)
|
|
328
|
+
}, {
|
|
329
|
+
default: v(() => [
|
|
330
|
+
E(P(ue(i.status)), 1)
|
|
331
|
+
]),
|
|
332
|
+
_: 2
|
|
333
|
+
}, 1032, ["color"])
|
|
334
|
+
])
|
|
335
|
+
]),
|
|
336
|
+
w("div", Le, [
|
|
337
|
+
u.showOnlineSwitch && (i.status == n(r).Online || i.status == n(r).Offline) ? (d(), m("div", Te, [
|
|
338
|
+
p(n(B), {
|
|
339
|
+
title: n(a)("webui.components.form.upload.onlineOrOffline")
|
|
340
|
+
}, {
|
|
341
|
+
default: v(() => [
|
|
342
|
+
b(p(n(he), {
|
|
343
|
+
checked: i.status,
|
|
344
|
+
"onUpdate:checked": (x) => i.status = x,
|
|
345
|
+
data: [
|
|
346
|
+
{ label: n(a)("webui.common.online"), value: n(r).Online },
|
|
347
|
+
{ label: n(a)("webui.common.offline"), value: n(r).Offline }
|
|
348
|
+
],
|
|
349
|
+
onChange: (x) => ie(i)
|
|
350
|
+
}, null, 8, ["checked", "onUpdate:checked", "data", "onChange"]), [
|
|
351
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:online" }]
|
|
352
|
+
])
|
|
353
|
+
]),
|
|
354
|
+
_: 2
|
|
355
|
+
}, 1032, ["title"])
|
|
356
|
+
])) : y("", !0),
|
|
357
|
+
u.downloadUrl && (i.status == n(r).Online || i.status == n(r).Offline) ? (d(), m("div", ze, [
|
|
358
|
+
p(n(B), {
|
|
359
|
+
title: n(a)("webui.common.download")
|
|
360
|
+
}, {
|
|
361
|
+
default: v(() => [
|
|
362
|
+
b(p(n(K), {
|
|
363
|
+
icon: "icon-download",
|
|
364
|
+
clickable: "",
|
|
365
|
+
onClick: (x) => M(h)
|
|
366
|
+
}, null, 8, ["onClick"]), [
|
|
367
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
|
|
368
|
+
]),
|
|
369
|
+
u.showActionText ? b((d(), m("span", {
|
|
370
|
+
key: 0,
|
|
371
|
+
class: "mr-2 text-sm text-nowrap",
|
|
372
|
+
onClick: (x) => M(h)
|
|
373
|
+
}, [...o[1] || (o[1] = [
|
|
374
|
+
E("下载", -1)
|
|
375
|
+
])], 8, Ae)), [
|
|
376
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
|
|
377
|
+
]) : y("", !0)
|
|
378
|
+
]),
|
|
379
|
+
_: 2
|
|
380
|
+
}, 1032, ["title"])
|
|
381
|
+
])) : y("", !0),
|
|
382
|
+
u.previewUrl && (i.status == n(r).Online || i.status == n(r).Offline) ? (d(), m("div", Be, [
|
|
383
|
+
p(n(B), {
|
|
384
|
+
title: n(a)("webui.common.preview")
|
|
385
|
+
}, {
|
|
386
|
+
default: v(() => [
|
|
387
|
+
b(p(n(K), {
|
|
388
|
+
icon: "icon-eye",
|
|
389
|
+
clickable: "",
|
|
390
|
+
onClick: (x) => q(h)
|
|
391
|
+
}, null, 8, ["onClick"]), [
|
|
392
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
|
|
393
|
+
]),
|
|
394
|
+
u.showActionText ? b((d(), m("span", {
|
|
395
|
+
key: 0,
|
|
396
|
+
class: "mr-2 text-sm text-nowrap",
|
|
397
|
+
onClick: (x) => q(h)
|
|
398
|
+
}, [
|
|
399
|
+
E(P(n(a)("webui.common.preview")), 1)
|
|
400
|
+
], 8, Re)), [
|
|
401
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
|
|
402
|
+
]) : y("", !0)
|
|
403
|
+
]),
|
|
404
|
+
_: 2
|
|
405
|
+
}, 1032, ["title"])
|
|
406
|
+
])) : y("", !0),
|
|
407
|
+
u.showDelete !== !1 ? (d(), m("div", Ie, [
|
|
408
|
+
p(n(ve), {
|
|
409
|
+
open: le(h),
|
|
410
|
+
cancelText: n(a)("webui.common.no"),
|
|
411
|
+
okText: n(a)("webui.common.yes"),
|
|
412
|
+
title: n(a)("webui.components.form.upload.deleteConfirm"),
|
|
413
|
+
okButtonProps: { size: "small" },
|
|
414
|
+
cancelButtonProps: { size: "small" },
|
|
415
|
+
onConfirm: (x) => Q(h),
|
|
416
|
+
onCancel: o[0] || (o[0] = (x) => A.value = -1)
|
|
417
|
+
}, {
|
|
418
|
+
default: v(() => [
|
|
419
|
+
p(n(B), {
|
|
420
|
+
title: n(a)("webui.common.delete")
|
|
421
|
+
}, {
|
|
422
|
+
default: v(() => [
|
|
423
|
+
w("div", {
|
|
424
|
+
onClick: (x) => ae(h, i.status)
|
|
425
|
+
}, [
|
|
426
|
+
b(p(n(K), {
|
|
427
|
+
icon: "icon-new",
|
|
428
|
+
angle: 45,
|
|
429
|
+
clickable: ""
|
|
430
|
+
}, null, 512), [
|
|
431
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
432
|
+
]),
|
|
433
|
+
u.showActionText ? b((d(), m("span", Ke, [
|
|
434
|
+
E(P(n(a)("webui.common.delete")), 1)
|
|
435
|
+
])), [
|
|
436
|
+
[s, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
437
|
+
]) : y("", !0)
|
|
438
|
+
], 8, $e)
|
|
439
|
+
]),
|
|
440
|
+
_: 2
|
|
441
|
+
}, 1032, ["title"])
|
|
442
|
+
]),
|
|
443
|
+
_: 2
|
|
444
|
+
}, 1032, ["open", "cancelText", "okText", "title", "onConfirm"])
|
|
445
|
+
])) : y("", !0)
|
|
446
|
+
])
|
|
447
|
+
]),
|
|
448
|
+
i.status !== n(r).Online && i.status !== n(r).Offline && i.status !== n(r).Success ? (d(), m("div", Ne, [
|
|
449
|
+
p(n(xe), {
|
|
450
|
+
percent: i.percent,
|
|
451
|
+
"stroke-width": 2,
|
|
452
|
+
"show-info": !1,
|
|
453
|
+
style: { height: "2px" }
|
|
454
|
+
}, null, 8, ["percent"])
|
|
455
|
+
])) : y("", !0)
|
|
456
|
+
]))), 128))
|
|
457
|
+
])
|
|
458
|
+
], 2);
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
}), tt = /* @__PURE__ */ ye(je, [["__scopeId", "data-v-0fad2fcf"]]);
|
|
462
|
+
export {
|
|
463
|
+
Fe as C,
|
|
464
|
+
tt as U,
|
|
465
|
+
Ue as a,
|
|
466
|
+
Ce as d,
|
|
467
|
+
ke as p
|
|
468
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W, createElementBlock as x, openBlock as p, Fragment as z, createElementVNode as f, createVNode as N, toDisplayString as $, unref as l, createBlock as A, withKeys as v, normalizeClass as O, withModifiers as w, 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-CghIoh0a.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-D6r6X3vP.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index-
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index-Doi0zREW.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock 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-
|
|
3
|
-
import { ak as k, a as A } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-CRSIlLKU.js";
|
|
3
|
+
import { ak as k, a as A } from "../../assets/modules/upload-template-D6r6X3vP.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import S from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock 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-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-D6r6X3vP.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock 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-
|
|
2
|
+
import { r as u } from "../../assets/modules/upload-template-D6r6X3vP.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|