@skyfox2000/webui 1.3.20 → 1.4.0
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-B9dSxkYo.js → baseLayout-DIEq13qJ.js} +6 -6
- package/lib/assets/modules/{file-upload-JBIvw5Xx.js → file-upload-DGuLxYSu.js} +2 -2
- package/lib/assets/modules/{index-BMkaOjBS.js → index-BPufvr-r.js} +134 -133
- package/lib/assets/modules/{index-BOYtm8ib.js → index-CAtotNY6.js} +2 -2
- package/lib/assets/modules/{index-BkChvyed.js → index-DVzBH6zL.js} +1 -1
- package/lib/assets/modules/{menuTabs-BFPjaQRI.js → menuTabs-DKvoic5x.js} +7 -7
- package/lib/assets/modules/{toolIcon-XOgjdQdO.js → toolIcon-Y7Lpx2Hb.js} +1 -1
- package/lib/assets/modules/{uploadList-BedljASx.js → uploadList-Bh2SzZzX.js} +710 -701
- package/lib/assets/modules/{uploadList-CW7OIDS3.js → uploadList-DG33cpFl.js} +152 -146
- package/lib/components/common/icon/index.vue.d.ts +1 -1
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +38 -38
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/userInfo.d.ts +3 -1
- package/lib/typings/form.d.ts +1 -1
- package/lib/typings/tree.d.ts +4 -0
- package/lib/utils/micro-openapis.d.ts +35 -0
- package/lib/webui.es.js +358 -353
- package/package.json +1 -2
- package/src/components/content/dialog/excelForm.vue +1 -1
- package/src/components/content/form/formItem.vue +5 -0
- package/src/components/layout/header/headerExits.vue +1 -1
- package/src/stores/appInfo.ts +7 -8
- package/src/stores/userInfo.ts +21 -63
- package/src/typings/form.d.ts +1 -1
- package/src/typings/tree.d.ts +4 -0
- package/src/utils/data.ts +6 -0
- package/src/utils/download.ts +10 -1
- package/src/utils/export-table.ts +5 -0
- package/src/utils/form-excel.ts +14 -9
- package/src/utils/form.ts +7 -1
- package/src/utils/main-openapis.ts +2 -2
- package/src/utils/micro-openapis.ts +146 -0
- package/src/utils/options.ts +5 -0
- package/src/utils/table.ts +7 -2
- package/src/utils/tree.ts +4 -2
|
@@ -1,66 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { a as z, _ as
|
|
4
|
-
import { httpPost as
|
|
5
|
-
import { s as
|
|
6
|
-
import { p as
|
|
7
|
-
import { combineParams as
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as Z, ref as L, computed as K, watch as P, resolveDirective as ee, createElementBlock as v, openBlock as m, normalizeClass as O, unref as n, createElementVNode as f, withDirectives as x, createBlock as te, mergeProps as oe, withCtx as y, createVNode as p, createTextVNode as E, toDisplayString as $, Fragment as ne, renderList as ae, createCommentVNode as S } from "vue";
|
|
2
|
+
import { _ as se } from "./index-DVzBH6zL.js";
|
|
3
|
+
import { a as z, _ as A } from "./toolIcon-Y7Lpx2Hb.js";
|
|
4
|
+
import { httpPost as R, ResStatus as D } from "@skyfox2000/fapi";
|
|
5
|
+
import { L as V, u as Q, s as ie, _ as re } from "./uploadList-Bh2SzZzX.js";
|
|
6
|
+
import { p as M, U as i } from "./file-upload-DGuLxYSu.js";
|
|
7
|
+
import { combineParams as q } from "@skyfox2000/microbase";
|
|
8
|
+
import g from "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
|
-
import { Upload as
|
|
11
|
+
import { Upload as le, Tag as ce, Popconfirm as ue, Progress as pe } from "ant-design-vue";
|
|
12
12
|
import "vue-draggable-next";
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
13
|
+
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const me = (l, w) => {
|
|
15
15
|
const e = document.createElement("a"), h = URL.createObjectURL(l);
|
|
16
16
|
e.href = h, e.download = w, e.style.display = "none", document.body.appendChild(e), e.click(), URL.revokeObjectURL(h), document.body.removeChild(e);
|
|
17
|
-
},
|
|
17
|
+
}, fe = (l, w, e) => {
|
|
18
18
|
try {
|
|
19
19
|
e && (l.api || (l.api = e.api), l.authorize === void 0 && (l.authorize = e.authorize));
|
|
20
|
-
const h =
|
|
21
|
-
return
|
|
22
|
-
if ((
|
|
23
|
-
const
|
|
24
|
-
for (let
|
|
25
|
-
|
|
26
|
-
const C = new Blob([new Uint8Array(
|
|
27
|
-
type:
|
|
20
|
+
const h = q(l.params, w);
|
|
21
|
+
return R(l, h).then((c) => {
|
|
22
|
+
if ((c == null ? void 0 : c.status) === D.SUCCESS && c.data) {
|
|
23
|
+
const s = c.data, U = s.Content, k = s.Key.split("/").pop(), u = atob(U), b = [];
|
|
24
|
+
for (let F = 0; F < u.length; F++)
|
|
25
|
+
b.push(u.charCodeAt(F));
|
|
26
|
+
const C = new Blob([new Uint8Array(b)], {
|
|
27
|
+
type: s.Type
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
me(C, k);
|
|
30
|
+
} else if ((c == null ? void 0 : c.errno) == V) {
|
|
31
|
+
Q().logout(!1);
|
|
32
|
+
return;
|
|
30
33
|
} else
|
|
31
|
-
|
|
34
|
+
g.error("下载文件失败!");
|
|
32
35
|
});
|
|
33
36
|
} catch (h) {
|
|
34
|
-
console.error("下载失败:", h),
|
|
37
|
+
console.error("下载失败:", h), g.error("文件下载失败,请稍后重试");
|
|
35
38
|
}
|
|
36
|
-
},
|
|
39
|
+
}, he = ["xlsx", "xls", "csv", "txt"], ve = (l, w, e) => {
|
|
37
40
|
const h = w.split(".").pop();
|
|
38
|
-
if (
|
|
41
|
+
if (he.includes(h))
|
|
39
42
|
console.log(l);
|
|
40
43
|
else
|
|
41
|
-
return
|
|
42
|
-
const
|
|
43
|
-
return
|
|
44
|
-
if ((
|
|
45
|
-
const
|
|
46
|
-
for (let C = 0; C <
|
|
47
|
-
|
|
44
|
+
return g.error("文件类型不支持预览"), !1;
|
|
45
|
+
const c = q(l.params, e);
|
|
46
|
+
return R(l, c).then((s) => {
|
|
47
|
+
if ((s == null ? void 0 : s.status) === D.SUCCESS && s.data) {
|
|
48
|
+
const k = s.data.Content, u = atob(k), b = [];
|
|
49
|
+
for (let C = 0; C < u.length; C++)
|
|
50
|
+
b.push(u.charCodeAt(C));
|
|
51
|
+
} else if ((s == null ? void 0 : s.errno) == V) {
|
|
52
|
+
Q().logout(!1);
|
|
53
|
+
return;
|
|
48
54
|
} else
|
|
49
|
-
|
|
55
|
+
g.error("文件预览失败!");
|
|
50
56
|
});
|
|
51
|
-
},
|
|
57
|
+
}, xe = { class: "flex items-center justify-between w-full" }, ye = { class: "w-35 mx-3" }, we = { class: "mt-4 px-3" }, Ce = { class: "flex items-center justify-between" }, _e = { class: "flex items-center" }, Se = { class: "flex items-center" }, ge = {
|
|
52
58
|
key: 0,
|
|
53
59
|
class: "mr-2"
|
|
54
60
|
}, be = {
|
|
55
61
|
key: 1,
|
|
56
62
|
class: "flex items-center text-blue-500 hover:text-blue-700 mr-1 cursor-pointer"
|
|
57
|
-
},
|
|
63
|
+
}, Ue = ["onClick"], ke = {
|
|
58
64
|
key: 2,
|
|
59
65
|
class: "flex items-center text-blue-500 hover:text-blue-700 mr-1 cursor-pointer"
|
|
60
|
-
},
|
|
66
|
+
}, Fe = ["onClick"], Ee = { class: "flex items-center text-red-500 hover:text-red-700 cursor-pointer" }, Oe = ["onClick"], ze = {
|
|
61
67
|
key: 0,
|
|
62
68
|
class: "text-sm text-nowrap"
|
|
63
|
-
},
|
|
69
|
+
}, Le = { key: 0 }, Pe = /* @__PURE__ */ Z({
|
|
64
70
|
__name: "uploadList",
|
|
65
71
|
props: {
|
|
66
72
|
autoUpload: { type: Boolean, default: !1 },
|
|
@@ -81,7 +87,7 @@ const pe = (l, w) => {
|
|
|
81
87
|
},
|
|
82
88
|
emits: ["update:file-list"],
|
|
83
89
|
setup(l, { emit: w }) {
|
|
84
|
-
const e = l, h =
|
|
90
|
+
const e = l, h = ie(), { errInfo: c } = h, s = L(e.fileList), U = L(), k = w, u = L(!1), b = K(() => {
|
|
85
91
|
var t;
|
|
86
92
|
return (t = e.fileExt) != null && t.length ? e.fileExt.map((o) => `.${o}`).join(",") : "";
|
|
87
93
|
}), C = (t) => {
|
|
@@ -89,49 +95,49 @@ const pe = (l, w) => {
|
|
|
89
95
|
if (e.fileExt && e.fileExt.length > 0) {
|
|
90
96
|
const a = ((o = t.name.split(".").pop()) == null ? void 0 : o.toLowerCase()) || "";
|
|
91
97
|
if (!e.fileExt.includes(a))
|
|
92
|
-
return
|
|
98
|
+
return g.error("文件类型不支持"), !1;
|
|
93
99
|
}
|
|
94
|
-
return t.size / 1024 / 1024 > e.maxFileSize ? (
|
|
95
|
-
},
|
|
100
|
+
return t.size / 1024 / 1024 > e.maxFileSize ? (g.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : e.maxCount > 1 && s.value.length >= e.maxCount ? (g.error(`最多上传 ${e.maxCount} 个文件`), !1) : (u.value = !1, e.autoUpload);
|
|
101
|
+
}, F = (t) => {
|
|
96
102
|
t.forEach((o) => {
|
|
97
103
|
const a = o;
|
|
98
|
-
a.fileName || (a.fileName = a.name), e.parentPath && (a.name =
|
|
104
|
+
a.fileName || (a.fileName = a.name), e.parentPath && (a.name = M.join("/", e.parentPath, a.fileName)), a.params || (a.params = {}), a.params.FileKey = a.name, a.status = i.Pending;
|
|
99
105
|
});
|
|
100
|
-
},
|
|
101
|
-
accept:
|
|
106
|
+
}, G = K(() => ({
|
|
107
|
+
accept: b.value,
|
|
102
108
|
multiple: !0,
|
|
103
|
-
fileList:
|
|
104
|
-
"onUpdate:fileList":
|
|
109
|
+
fileList: s.value,
|
|
110
|
+
"onUpdate:fileList": F,
|
|
105
111
|
beforeUpload: C,
|
|
106
112
|
listType: "text",
|
|
107
113
|
maxCount: e.maxCount,
|
|
108
114
|
showUploadList: !1,
|
|
109
115
|
onChange: (t) => {
|
|
110
|
-
e.autoUpload || (
|
|
116
|
+
e.autoUpload || (s.value = t.fileList);
|
|
111
117
|
}
|
|
112
118
|
}));
|
|
113
|
-
|
|
119
|
+
P(
|
|
114
120
|
() => e.fileList,
|
|
115
121
|
(t) => {
|
|
116
|
-
|
|
122
|
+
s.value = t;
|
|
117
123
|
},
|
|
118
124
|
{ deep: !0, immediate: !0 }
|
|
119
|
-
),
|
|
120
|
-
() =>
|
|
125
|
+
), P(
|
|
126
|
+
() => s.value,
|
|
121
127
|
(t) => {
|
|
122
|
-
|
|
128
|
+
k("update:file-list", t);
|
|
123
129
|
},
|
|
124
130
|
{ deep: !0 }
|
|
125
|
-
),
|
|
131
|
+
), P(
|
|
126
132
|
() => e.parentPath,
|
|
127
133
|
(t) => {
|
|
128
|
-
t &&
|
|
129
|
-
o.params.FileKey =
|
|
134
|
+
t && s.value.forEach((o) => {
|
|
135
|
+
o.params.FileKey = M.join("/", t, o.fileName);
|
|
130
136
|
});
|
|
131
137
|
}
|
|
132
138
|
);
|
|
133
139
|
const B = (t) => {
|
|
134
|
-
const o =
|
|
140
|
+
const o = s.value[t].minioFile, a = {
|
|
135
141
|
api: e.downloadUrl.api,
|
|
136
142
|
authorize: e.downloadUrl.authorize,
|
|
137
143
|
url: e.downloadUrl.url,
|
|
@@ -141,11 +147,11 @@ const pe = (l, w) => {
|
|
|
141
147
|
}
|
|
142
148
|
}
|
|
143
149
|
};
|
|
144
|
-
|
|
145
|
-
},
|
|
150
|
+
fe(a);
|
|
151
|
+
}, H = (t) => {
|
|
146
152
|
t.minioFile && (t.minioFile.Status = t.status);
|
|
147
153
|
}, T = (t) => {
|
|
148
|
-
const o =
|
|
154
|
+
const o = s.value[t].minioFile, a = {
|
|
149
155
|
api: e.previewUrl.api,
|
|
150
156
|
authorize: e.previewUrl.authorize,
|
|
151
157
|
url: e.previewUrl.url,
|
|
@@ -155,69 +161,69 @@ const pe = (l, w) => {
|
|
|
155
161
|
}
|
|
156
162
|
}
|
|
157
163
|
};
|
|
158
|
-
|
|
164
|
+
ve(a, o.FileName);
|
|
159
165
|
}, N = (t) => {
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
if (o ===
|
|
166
|
+
s.value.splice(t, 1), u.value = !1;
|
|
167
|
+
}, J = (t, o) => {
|
|
168
|
+
if (o === i.Pending) {
|
|
163
169
|
N(t);
|
|
164
170
|
return;
|
|
165
171
|
}
|
|
166
|
-
|
|
167
|
-
},
|
|
172
|
+
u.value = !0;
|
|
173
|
+
}, W = () => {
|
|
168
174
|
const t = e.fileExt && e.fileExt.length && e.fileExtTip ? `文件必须为 ${e.fileExt.join("/")}` : "", o = e.maxFileSize !== 0 && e.maxFileSizeTip ? `单文件最大 ${e.maxFileSize}MB` : "", a = e.maxCount !== 0 && e.maxCountTip ? `最多 ${e.maxCount} 个文件` : "";
|
|
169
175
|
return [o, t, a].filter(Boolean).join(",");
|
|
170
|
-
},
|
|
176
|
+
}, X = (t) => {
|
|
171
177
|
switch (t) {
|
|
172
|
-
case
|
|
178
|
+
case i.Uploading:
|
|
173
179
|
return "blue";
|
|
174
|
-
case
|
|
180
|
+
case i.Success:
|
|
175
181
|
return "green";
|
|
176
|
-
case
|
|
182
|
+
case i.Error:
|
|
177
183
|
return "red";
|
|
178
|
-
case
|
|
184
|
+
case i.Online:
|
|
179
185
|
return "green";
|
|
180
|
-
case
|
|
186
|
+
case i.Offline:
|
|
181
187
|
return "pink";
|
|
182
188
|
default:
|
|
183
189
|
return "cyan";
|
|
184
190
|
}
|
|
185
|
-
},
|
|
191
|
+
}, Y = (t) => {
|
|
186
192
|
switch (t) {
|
|
187
|
-
case
|
|
193
|
+
case i.Uploading:
|
|
188
194
|
return "上传中";
|
|
189
|
-
case
|
|
195
|
+
case i.Success:
|
|
190
196
|
return "上传完成";
|
|
191
|
-
case
|
|
197
|
+
case i.Error:
|
|
192
198
|
return "上传失败";
|
|
193
|
-
case
|
|
199
|
+
case i.Online:
|
|
194
200
|
return "在线";
|
|
195
|
-
case
|
|
201
|
+
case i.Offline:
|
|
196
202
|
return "已下线";
|
|
197
203
|
default:
|
|
198
204
|
return "待上传";
|
|
199
205
|
}
|
|
200
206
|
};
|
|
201
207
|
return (t, o) => {
|
|
202
|
-
var j,
|
|
203
|
-
const a =
|
|
208
|
+
var j, I;
|
|
209
|
+
const a = ee("auth");
|
|
204
210
|
return m(), v("div", {
|
|
205
|
-
class: O(["w-full border border-solid border-gray-100 mt-1 rounded-md py-5", [(j = n(
|
|
211
|
+
class: O(["w-full border border-solid border-gray-100 mt-1 rounded-md py-5", [(j = n(c)) == null ? void 0 : j.errClass]])
|
|
206
212
|
}, [
|
|
207
|
-
f("div",
|
|
208
|
-
f("div",
|
|
209
|
-
x((m(),
|
|
213
|
+
f("div", xe, [
|
|
214
|
+
f("div", ye, [
|
|
215
|
+
x((m(), te(n(le), oe({
|
|
210
216
|
ref_key: "fileUploader",
|
|
211
|
-
ref:
|
|
212
|
-
},
|
|
217
|
+
ref: U
|
|
218
|
+
}, G.value), {
|
|
213
219
|
default: y(() => {
|
|
214
|
-
var
|
|
220
|
+
var r;
|
|
215
221
|
return [
|
|
216
|
-
|
|
217
|
-
class: O([((
|
|
222
|
+
p(n(se), {
|
|
223
|
+
class: O([((r = n(c)) == null ? void 0 : r.errClass) + "-text"])
|
|
218
224
|
}, {
|
|
219
225
|
default: y(() => o[2] || (o[2] = [
|
|
220
|
-
|
|
226
|
+
E("选择文件")
|
|
221
227
|
])),
|
|
222
228
|
_: 1,
|
|
223
229
|
__: [2]
|
|
@@ -230,53 +236,53 @@ const pe = (l, w) => {
|
|
|
230
236
|
])
|
|
231
237
|
]),
|
|
232
238
|
f("div", {
|
|
233
|
-
class: O(["flex-1 text-sm text-gray-500", [((
|
|
234
|
-
},
|
|
239
|
+
class: O(["flex-1 text-sm text-gray-500", [((I = n(c)) == null ? void 0 : I.errClass) + "-text"]])
|
|
240
|
+
}, $(W()), 3)
|
|
235
241
|
]),
|
|
236
|
-
f("div",
|
|
237
|
-
(m(!0), v(
|
|
242
|
+
f("div", we, [
|
|
243
|
+
(m(!0), v(ne, null, ae(s.value, (r, _) => (m(), v("div", {
|
|
238
244
|
key: _,
|
|
239
245
|
class: "mb-2 pb-1"
|
|
240
246
|
}, [
|
|
241
|
-
f("div",
|
|
242
|
-
f("div",
|
|
247
|
+
f("div", Ce, [
|
|
248
|
+
f("div", _e, [
|
|
243
249
|
f("span", {
|
|
244
|
-
class: O(["text-gray-700 mr-2", [
|
|
245
|
-
},
|
|
250
|
+
class: O(["text-gray-700 mr-2", [r.status == n(i).Offline ? "line-through" : ""]])
|
|
251
|
+
}, $(r.fileName ?? r.name), 3),
|
|
246
252
|
f("span", null, [
|
|
247
|
-
|
|
248
|
-
color:
|
|
253
|
+
p(n(ce), {
|
|
254
|
+
color: X(r.status)
|
|
249
255
|
}, {
|
|
250
256
|
default: y(() => [
|
|
251
|
-
|
|
257
|
+
E($(Y(r.status)), 1)
|
|
252
258
|
]),
|
|
253
259
|
_: 2
|
|
254
260
|
}, 1032, ["color"])
|
|
255
261
|
])
|
|
256
262
|
]),
|
|
257
|
-
f("div",
|
|
258
|
-
t.showOnlineSwitch && (
|
|
259
|
-
|
|
263
|
+
f("div", Se, [
|
|
264
|
+
t.showOnlineSwitch && (r.status == n(i).Online || r.status == n(i).Offline) ? (m(), v("div", ge, [
|
|
265
|
+
p(n(z), { title: "上线或下线" }, {
|
|
260
266
|
default: y(() => [
|
|
261
|
-
x(
|
|
262
|
-
checked:
|
|
263
|
-
"onUpdate:checked": (d) =>
|
|
267
|
+
x(p(n(re), {
|
|
268
|
+
checked: r.status,
|
|
269
|
+
"onUpdate:checked": (d) => r.status = d,
|
|
264
270
|
data: [
|
|
265
|
-
{ label: "上线", value: n(
|
|
266
|
-
{ label: "下线", value: n(
|
|
271
|
+
{ label: "上线", value: n(i).Online },
|
|
272
|
+
{ label: "下线", value: n(i).Offline }
|
|
267
273
|
],
|
|
268
|
-
onChange: (d) =>
|
|
274
|
+
onChange: (d) => H(r)
|
|
269
275
|
}, null, 8, ["checked", "onUpdate:checked", "data", "onChange"]), [
|
|
270
276
|
[a, { role: ["Super", "Admin"], permit: ":uploadlist:online" }]
|
|
271
277
|
])
|
|
272
278
|
]),
|
|
273
279
|
_: 2
|
|
274
280
|
}, 1024)
|
|
275
|
-
])) :
|
|
276
|
-
t.downloadUrl && (
|
|
277
|
-
|
|
281
|
+
])) : S("", !0),
|
|
282
|
+
t.downloadUrl && (r.status == n(i).Online || r.status == n(i).Offline) ? (m(), v("div", be, [
|
|
283
|
+
p(n(z), { title: "下载" }, {
|
|
278
284
|
default: y(() => [
|
|
279
|
-
x(
|
|
285
|
+
x(p(n(A), {
|
|
280
286
|
icon: "icon-download",
|
|
281
287
|
clickable: "",
|
|
282
288
|
onClick: (d) => B(_)
|
|
@@ -288,18 +294,18 @@ const pe = (l, w) => {
|
|
|
288
294
|
class: "mr-2 text-sm text-nowrap",
|
|
289
295
|
onClick: (d) => B(_)
|
|
290
296
|
}, o[3] || (o[3] = [
|
|
291
|
-
|
|
292
|
-
]), 8,
|
|
297
|
+
E("下载")
|
|
298
|
+
]), 8, Ue)), [
|
|
293
299
|
[a, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
|
|
294
|
-
]) :
|
|
300
|
+
]) : S("", !0)
|
|
295
301
|
]),
|
|
296
302
|
_: 2
|
|
297
303
|
}, 1024)
|
|
298
|
-
])) :
|
|
299
|
-
t.previewUrl && (
|
|
300
|
-
|
|
304
|
+
])) : S("", !0),
|
|
305
|
+
t.previewUrl && (r.status == n(i).Online || r.status == n(i).Offline) ? (m(), v("div", ke, [
|
|
306
|
+
p(n(z), { title: "预览" }, {
|
|
301
307
|
default: y(() => [
|
|
302
|
-
x(
|
|
308
|
+
x(p(n(A), {
|
|
303
309
|
icon: "icon-eye",
|
|
304
310
|
clickable: "",
|
|
305
311
|
onClick: (d) => T(_)
|
|
@@ -311,45 +317,45 @@ const pe = (l, w) => {
|
|
|
311
317
|
class: "mr-2 text-sm text-nowrap",
|
|
312
318
|
onClick: (d) => T(_)
|
|
313
319
|
}, o[4] || (o[4] = [
|
|
314
|
-
|
|
315
|
-
]), 8,
|
|
320
|
+
E("预览")
|
|
321
|
+
]), 8, Fe)), [
|
|
316
322
|
[a, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
|
|
317
|
-
]) :
|
|
323
|
+
]) : S("", !0)
|
|
318
324
|
]),
|
|
319
325
|
_: 2
|
|
320
326
|
}, 1024)
|
|
321
|
-
])) :
|
|
322
|
-
f("div",
|
|
323
|
-
|
|
324
|
-
open:
|
|
325
|
-
"onUpdate:open": o[0] || (o[0] = (d) =>
|
|
327
|
+
])) : S("", !0),
|
|
328
|
+
f("div", Ee, [
|
|
329
|
+
p(n(ue), {
|
|
330
|
+
open: u.value,
|
|
331
|
+
"onUpdate:open": o[0] || (o[0] = (d) => u.value = d),
|
|
326
332
|
cancelText: "否",
|
|
327
333
|
okText: "是",
|
|
328
334
|
title: "确定删除该文件吗?",
|
|
329
335
|
okButtonProps: { size: "small" },
|
|
330
336
|
cancelButtonProps: { size: "small" },
|
|
331
337
|
onConfirm: (d) => N(_),
|
|
332
|
-
onCancel: o[1] || (o[1] = (d) =>
|
|
338
|
+
onCancel: o[1] || (o[1] = (d) => u.value = !1)
|
|
333
339
|
}, {
|
|
334
340
|
default: y(() => [
|
|
335
|
-
|
|
341
|
+
p(n(z), { title: "删除" }, {
|
|
336
342
|
default: y(() => [
|
|
337
343
|
f("div", {
|
|
338
|
-
onClick: (d) =>
|
|
344
|
+
onClick: (d) => J(_, r.status)
|
|
339
345
|
}, [
|
|
340
|
-
x(
|
|
346
|
+
x(p(n(A), {
|
|
341
347
|
icon: "icon-new",
|
|
342
348
|
angle: 45,
|
|
343
349
|
clickable: ""
|
|
344
350
|
}, null, 512), [
|
|
345
351
|
[a, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
346
352
|
]),
|
|
347
|
-
t.showActionText ? x((m(), v("span",
|
|
348
|
-
|
|
353
|
+
t.showActionText ? x((m(), v("span", ze, o[5] || (o[5] = [
|
|
354
|
+
E("删除")
|
|
349
355
|
]))), [
|
|
350
356
|
[a, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
351
|
-
]) :
|
|
352
|
-
], 8,
|
|
357
|
+
]) : S("", !0)
|
|
358
|
+
], 8, Oe)
|
|
353
359
|
]),
|
|
354
360
|
_: 2
|
|
355
361
|
}, 1024)
|
|
@@ -359,24 +365,24 @@ const pe = (l, w) => {
|
|
|
359
365
|
])
|
|
360
366
|
])
|
|
361
367
|
]),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
percent:
|
|
368
|
+
r.status !== n(i).Online && r.status !== n(i).Offline && r.status !== n(i).Success ? (m(), v("div", Le, [
|
|
369
|
+
p(n(pe), {
|
|
370
|
+
percent: r.percent,
|
|
365
371
|
"stroke-width": 2,
|
|
366
372
|
"show-info": !1,
|
|
367
373
|
style: { height: "2px" }
|
|
368
374
|
}, null, 8, ["percent"])
|
|
369
|
-
])) :
|
|
375
|
+
])) : S("", !0)
|
|
370
376
|
]))), 128))
|
|
371
377
|
])
|
|
372
378
|
], 2);
|
|
373
379
|
};
|
|
374
380
|
}
|
|
375
|
-
}),
|
|
381
|
+
}), qe = /* @__PURE__ */ de(Pe, [["__scopeId", "data-v-7d076856"]]);
|
|
376
382
|
export {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
383
|
+
he as C,
|
|
384
|
+
qe as U,
|
|
385
|
+
fe as a,
|
|
386
|
+
me as d,
|
|
387
|
+
ve as p
|
|
382
388
|
};
|
|
@@ -229,8 +229,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
229
229
|
"onUpdate:iconIndex"?: ((...args: any[]) => any) | undefined;
|
|
230
230
|
}>, {
|
|
231
231
|
fontsize: string;
|
|
232
|
-
icons: string[];
|
|
233
232
|
size: string | String[];
|
|
233
|
+
icons: string[];
|
|
234
234
|
className: string;
|
|
235
235
|
iconIndex: number;
|
|
236
236
|
clickable: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as q } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-Y7Lpx2Hb.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/uploadList-
|
|
5
|
+
import "../../assets/modules/uploadList-Bh2SzZzX.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { _ as D } from "../../assets/modules/index-
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-CAtotNY6.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
13
13
|
const o = document.createElement("script");
|
|
@@ -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 {
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-DIEq13qJ.js";
|
|
3
|
+
import { ae as A, a as S } from "../../assets/modules/uploadList-Bh2SzZzX.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import b from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/uploadList-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-Bh2SzZzX.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 p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/uploadList-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-Bh2SzZzX.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|