@skyfox2000/webui 1.4.2 → 1.4.4
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-CeyN__cz.js → baseLayout-CYzXPj7i.js} +3 -3
- package/lib/assets/modules/{file-upload-DiUcAspb.js → file-upload-Dmi2Kiqo.js} +27 -28
- package/lib/assets/modules/{index-YIIA7qm8.js → index-1Qt9-aFa.js} +2 -2
- package/lib/assets/modules/{index-DbgSOuIs.js → index-QDkmhaJS.js} +1 -1
- package/lib/assets/modules/{index-C5X-1A4m.js → index-RrFsG5IK.js} +2 -2
- package/lib/assets/modules/{menuTabs-hVwE4xrx.js → menuTabs-sfALzkA5.js} +56 -56
- package/lib/assets/modules/{toolIcon-BHWHHyOp.js → toolIcon-C6QsaAZ8.js} +1 -1
- package/lib/assets/modules/{uploadList-1qFfdb6_.js → uploadList-Bh1TJ-XO.js} +4 -4
- package/lib/assets/modules/{uploadList-EbG8acej.js → uploadList-C4BvnORD.js} +281 -279
- 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 +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/hostInfo.d.ts +2 -2
- package/lib/utils/micro-openapis.d.ts +24 -10
- package/lib/webui.es.js +12 -12
- package/package.json +2 -2
- package/src/components/layout/header/headerExits.vue +4 -4
- package/src/stores/appInfo.ts +5 -5
- package/src/stores/hostInfo.ts +6 -5
- package/src/utils/file-upload.ts +4 -3
- package/src/utils/micro-openapis.ts +110 -86
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _, onMounted as I, createBlock as s, openBlock as o, unref as e, withCtx as l, createCommentVNode as r, createVNode as p, createElementVNode as x, createElementBlock as y, toDisplayString as g, renderSlot as h } from "vue";
|
|
2
2
|
import { Layout as i, LayoutSider as k } from "ant-design-vue";
|
|
3
|
-
import { a as b } from "./toolIcon-
|
|
4
|
-
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-
|
|
5
|
-
import { af as v, a as B, ah as E } from "./uploadList-
|
|
3
|
+
import { a as b } from "./toolIcon-C6QsaAZ8.js";
|
|
4
|
+
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-sfALzkA5.js";
|
|
5
|
+
import { af as v, a as B, ah as E } from "./uploadList-C4BvnORD.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import L from "vue-m-message";
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
var E = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var f = (
|
|
4
|
-
import { hostUrl as
|
|
5
|
-
import
|
|
6
|
-
import { mainAppApis as p } from "@skyfox2000/microbase";
|
|
7
|
-
import b from "dayjs";
|
|
2
|
+
var m = (n, r, a) => r in n ? E(n, r, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[r] = a;
|
|
3
|
+
var f = (n, r, a) => m(n, typeof r != "symbol" ? r + "" : r, a);
|
|
4
|
+
import { hostUrl as w } from "@skyfox2000/fapi";
|
|
5
|
+
import y from "dayjs";
|
|
8
6
|
import d from "vue-m-message";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import { ac as b, u as g } from "./uploadList-C4BvnORD.js";
|
|
8
|
+
import { isMicroApp as F } from "@skyfox2000/microbase";
|
|
9
|
+
var i = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Uploading = "uploading", n.Success = "success", n.Error = "error", n.Online = "online", n.Offline = "offline", n))(i || {});
|
|
10
|
+
class I {
|
|
12
11
|
/**
|
|
13
12
|
* 连接路径参数,已判断 undefined 或 null 值
|
|
14
13
|
* @param args 路径参数数组
|
|
@@ -56,8 +55,8 @@ class x {
|
|
|
56
55
|
}
|
|
57
56
|
a.value = !0, await this.uploadFiles(r, e, (l) => {
|
|
58
57
|
let t = !1, h = 0;
|
|
59
|
-
for (const
|
|
60
|
-
|
|
58
|
+
for (const s of l)
|
|
59
|
+
s.status === i.Error && h++;
|
|
61
60
|
h ? h < l.length ? c ? (d.error("上传结束,部分文件上传失败!"), d.warning("保存上传成功的文件!"), t = !0) : d.error("上传结束,部分文件上传失败,取消保存!") : d.error("上传结束,所有文件上传失败!") : (d.success("全部文件上传成功!"), t = !0), a.value = !1, o == null || o(t, l);
|
|
62
61
|
});
|
|
63
62
|
}
|
|
@@ -129,29 +128,29 @@ class x {
|
|
|
129
128
|
return r.status = i.Uploading, new Promise((o, e) => {
|
|
130
129
|
const l = new FormData();
|
|
131
130
|
if (l.append("file", r.originFileObj), r.params)
|
|
132
|
-
for (const
|
|
133
|
-
l.append(
|
|
134
|
-
const t = new XMLHttpRequest(), h =
|
|
131
|
+
for (const s in r.params)
|
|
132
|
+
l.append(s, r.params[s]);
|
|
133
|
+
const t = new XMLHttpRequest(), h = w(this.urlInfo);
|
|
135
134
|
if (h === !1) return Promise.resolve(r);
|
|
136
|
-
if (t.open("POST", h, !0), this.urlInfo.header && typeof this.urlInfo.header == "object" && Object.entries(this.urlInfo.header).forEach(([
|
|
137
|
-
t.setRequestHeader(
|
|
135
|
+
if (t.open("POST", h, !0), this.urlInfo.header && typeof this.urlInfo.header == "object" && Object.entries(this.urlInfo.header).forEach(([s, u]) => {
|
|
136
|
+
t.setRequestHeader(s, u);
|
|
138
137
|
}), this.urlInfo.authorize) {
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
138
|
+
const s = F() ? b.getToken() : g().getToken();
|
|
139
|
+
if (!s) {
|
|
141
140
|
e(new Error("未授权或授权过期"));
|
|
142
141
|
return;
|
|
143
142
|
}
|
|
144
|
-
t.setRequestHeader("Authorization", "Bearer " +
|
|
143
|
+
t.setRequestHeader("Authorization", "Bearer " + s);
|
|
145
144
|
}
|
|
146
|
-
t.upload.addEventListener("progress", (
|
|
147
|
-
if (
|
|
148
|
-
const u = Math.round(
|
|
145
|
+
t.upload.addEventListener("progress", (s) => {
|
|
146
|
+
if (s.lengthComputable && s.total > 0) {
|
|
147
|
+
const u = Math.round(s.loaded / s.total * 100);
|
|
149
148
|
c(u);
|
|
150
149
|
}
|
|
151
150
|
}), t.addEventListener("load", () => {
|
|
152
151
|
if (t.status >= 200 && t.status < 300) {
|
|
153
|
-
const
|
|
154
|
-
if (!
|
|
152
|
+
const s = t.getResponseHeader("Content-Type");
|
|
153
|
+
if (!s || !s.includes("application/json")) {
|
|
155
154
|
e(new Error("返回的结果不是 JSON 格式"));
|
|
156
155
|
return;
|
|
157
156
|
}
|
|
@@ -165,12 +164,12 @@ class x {
|
|
|
165
164
|
Key: u.data.Key,
|
|
166
165
|
Size: u.data.Size,
|
|
167
166
|
Type: r.type,
|
|
168
|
-
UpdateTime:
|
|
167
|
+
UpdateTime: y().format("YYYY-MM-DD HH:mm:ss"),
|
|
169
168
|
Status: i.Success
|
|
170
169
|
}), r.status = i.Success, o(r);
|
|
171
170
|
else {
|
|
172
|
-
const
|
|
173
|
-
r.status = i.Error, e(new Error(
|
|
171
|
+
const p = u.msg;
|
|
172
|
+
r.status = i.Error, e(new Error(p));
|
|
174
173
|
}
|
|
175
174
|
} catch (u) {
|
|
176
175
|
r.status = i.Error, e(new Error("无法解析返回的 JSON 数据: " + u));
|
|
@@ -194,5 +193,5 @@ class x {
|
|
|
194
193
|
export {
|
|
195
194
|
x as A,
|
|
196
195
|
i as U,
|
|
197
|
-
|
|
196
|
+
I as p
|
|
198
197
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import H from "async-validator";
|
|
2
2
|
import { httpPost as M, ResStatus as V } from "@skyfox2000/fapi";
|
|
3
|
-
import { i as T, ai as U, L as $, u as z } from "./uploadList-
|
|
3
|
+
import { i as T, ai as U, L as $, u as z } from "./uploadList-C4BvnORD.js";
|
|
4
4
|
import m from "vue-m-message";
|
|
5
5
|
import { defineComponent as _, useAttrs as B, createElementBlock as A, openBlock as b, createVNode as O, unref as v, mergeProps as S, computed as E, createBlock as R, withCtx as L, normalizeStyle as N } from "vue";
|
|
6
6
|
import { Spin as K, Alert as P } from "ant-design-vue";
|
|
7
|
-
import { _ as W } from "./toolIcon-
|
|
7
|
+
import { _ as W } from "./toolIcon-C6QsaAZ8.js";
|
|
8
8
|
const D = (i) => {
|
|
9
9
|
const e = i.split(`
|
|
10
10
|
`).filter((l) => l.trim() !== "");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
|
|
2
2
|
import { Button as _ } from "ant-design-vue";
|
|
3
|
-
import { a as P, _ as k } from "./toolIcon-
|
|
3
|
+
import { a as P, _ as k } from "./toolIcon-C6QsaAZ8.js";
|
|
4
4
|
const C = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as F, provide as _, ref as w, watch as p, onMounted as B, createBlock as n, openBlock as r, unref as a, withCtx as i, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
|
|
2
|
-
import { _ as m } from "./index-
|
|
2
|
+
import { _ as m } from "./index-QDkmhaJS.js";
|
|
3
3
|
import { Modal as D, Space as E } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P as M, d as P, o as $, b as K } from "./uploadList-
|
|
5
|
+
import { P as M, d as P, o as $, b as K } from "./uploadList-C4BvnORD.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as
|
|
2
|
-
import { a as w, _ as b } from "./toolIcon-
|
|
3
|
-
import { c as
|
|
1
|
+
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as H, computed as j, ref as y, watch as k, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as W, onMounted as N, createVNode as l, toDisplayString as $, Fragment as R, createTextVNode as K, reactive as q, nextTick as J, renderList as Y, withModifiers as G } from "vue";
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-C6QsaAZ8.js";
|
|
3
|
+
import { c as L, T as E, ah as P, W as M, V as U, u as D, ac as Q, a as F, U as X, r as V, af as z } from "./uploadList-C4BvnORD.js";
|
|
4
4
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { theme as O, Breadcrumb as ee, Modal as te, Flex as ne, LayoutHeader as oe, Space as se, Menu as ie, Tabs as ce, TabPane as ae } from "ant-design-vue";
|
|
6
|
-
import {
|
|
6
|
+
import { isMicroApp as le } from "@skyfox2000/microbase";
|
|
7
7
|
import { SERVER_HOST as B } from "@skyfox2000/fapi";
|
|
8
8
|
import "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
const
|
|
12
|
+
const re = /* @__PURE__ */ x({
|
|
13
13
|
__name: "appicon",
|
|
14
14
|
props: {
|
|
15
15
|
icon: {
|
|
@@ -17,7 +17,7 @@ const le = /* @__PURE__ */ x({
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
setup(c) {
|
|
20
|
-
const s = c, e =
|
|
20
|
+
const s = c, e = L({
|
|
21
21
|
iconUrl: `${B.APP_ICONS}`,
|
|
22
22
|
icon: s.icon
|
|
23
23
|
});
|
|
@@ -27,7 +27,7 @@ const le = /* @__PURE__ */ x({
|
|
|
27
27
|
class: ["text-2xl", "align-middle", "w-6", "h-6"]
|
|
28
28
|
}, r.$attrs), null, 16, ["icon"])) : I("", !0);
|
|
29
29
|
}
|
|
30
|
-
}),
|
|
30
|
+
}), ue = ["xlink:href"], pe = /* @__PURE__ */ x({
|
|
31
31
|
inheritAttrs: !1,
|
|
32
32
|
__name: "index",
|
|
33
33
|
props: {
|
|
@@ -272,7 +272,7 @@ const le = /* @__PURE__ */ x({
|
|
|
272
272
|
"update:iconIndex"
|
|
273
273
|
],
|
|
274
274
|
setup(c, { emit: s }) {
|
|
275
|
-
const i =
|
|
275
|
+
const i = H(), e = c, r = s, a = j(() => {
|
|
276
276
|
if (Array.isArray(e.size)) return e.size;
|
|
277
277
|
{
|
|
278
278
|
let o = e.size;
|
|
@@ -302,7 +302,7 @@ const le = /* @__PURE__ */ x({
|
|
|
302
302
|
const S = (o) => {
|
|
303
303
|
if (o.stopPropagation(), e.clickEvent) {
|
|
304
304
|
const v = e.clickEvent.split("#");
|
|
305
|
-
v.length === 2 &&
|
|
305
|
+
v.length === 2 && W("$" + v[0]).$emit(v[1], e.data);
|
|
306
306
|
}
|
|
307
307
|
e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, n.value = e.icons[f.value]), r("click");
|
|
308
308
|
}, _ = () => {
|
|
@@ -341,7 +341,7 @@ const le = /* @__PURE__ */ x({
|
|
|
341
341
|
}), [
|
|
342
342
|
m("use", {
|
|
343
343
|
"xlink:href": "#icon-" + n.value.replace("sym-", "")
|
|
344
|
-
}, null, 8,
|
|
344
|
+
}, null, 8, ue)
|
|
345
345
|
], 16)) : (u(), g("i", C({ key: 0 }, t(i), {
|
|
346
346
|
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, _(), e.className]],
|
|
347
347
|
style: {
|
|
@@ -361,7 +361,7 @@ const le = /* @__PURE__ */ x({
|
|
|
361
361
|
_: 1
|
|
362
362
|
}, 8, ["title", "disabled", "color", "placement", "size"]));
|
|
363
363
|
}
|
|
364
|
-
}),
|
|
364
|
+
}), Ee = /* @__PURE__ */ Z(pe, [["__scopeId", "data-v-0146f00c"]]), de = /* @__PURE__ */ x({
|
|
365
365
|
__name: "projectIcon",
|
|
366
366
|
props: {
|
|
367
367
|
icon: {
|
|
@@ -379,7 +379,7 @@ const le = /* @__PURE__ */ x({
|
|
|
379
379
|
}
|
|
380
380
|
},
|
|
381
381
|
setup(c) {
|
|
382
|
-
const s = c, e =
|
|
382
|
+
const s = c, e = L({
|
|
383
383
|
iconUrl: `${s.iconUrl ?? B.PROJECT_ICONS ?? B.TOOL_ICONS}`,
|
|
384
384
|
monoColor: s.monoColor,
|
|
385
385
|
icon: s.icon,
|
|
@@ -392,18 +392,18 @@ const le = /* @__PURE__ */ x({
|
|
|
392
392
|
class: ["align-middle"]
|
|
393
393
|
}, r.$attrs), null, 16, ["icon", "icons"])) : I("", !0);
|
|
394
394
|
}
|
|
395
|
-
}),
|
|
395
|
+
}), me = { class: "text-xs leading-[3]" }, fe = {
|
|
396
396
|
key: 0,
|
|
397
397
|
class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
|
|
398
|
-
},
|
|
398
|
+
}, _e = /* @__PURE__ */ x({
|
|
399
399
|
__name: "index",
|
|
400
400
|
setup(c) {
|
|
401
401
|
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
402
402
|
return k(
|
|
403
403
|
() => e.TabActive,
|
|
404
|
-
() =>
|
|
404
|
+
() => M()
|
|
405
405
|
), N(() => {
|
|
406
|
-
|
|
406
|
+
M();
|
|
407
407
|
}), (r, a) => (u(), g("div", {
|
|
408
408
|
class: "ml-5 h-fit p-0 flex items-center justify-between",
|
|
409
409
|
style: T({
|
|
@@ -416,22 +416,22 @@ const le = /* @__PURE__ */ x({
|
|
|
416
416
|
}),
|
|
417
417
|
a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
|
|
418
418
|
l(t(ee), {
|
|
419
|
-
routes: t(
|
|
419
|
+
routes: t(U),
|
|
420
420
|
separator: ""
|
|
421
421
|
}, {
|
|
422
422
|
itemRender: d(({ route: n }) => [
|
|
423
|
-
m("span",
|
|
423
|
+
m("span", me, $(n.breadcrumbName), 1),
|
|
424
424
|
l(t(b), {
|
|
425
425
|
icon: n.icon,
|
|
426
426
|
fontsize: "15px"
|
|
427
427
|
}, null, 8, ["icon"]),
|
|
428
|
-
n.index < t(
|
|
428
|
+
n.index < t(U).length - 1 ? (u(), g("span", fe, ">")) : I("", !0)
|
|
429
429
|
]),
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["routes"])
|
|
432
432
|
], 4));
|
|
433
433
|
}
|
|
434
|
-
}),
|
|
434
|
+
}), ge = { class: "font-['Courier'] text-[#666]" }, xe = /* @__PURE__ */ x({
|
|
435
435
|
__name: "index",
|
|
436
436
|
setup(c) {
|
|
437
437
|
const s = y("");
|
|
@@ -440,15 +440,15 @@ const le = /* @__PURE__ */ x({
|
|
|
440
440
|
const i = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, r = i.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
|
|
441
441
|
s.value = i.getFullYear() + "-" + r;
|
|
442
442
|
}, 1e3);
|
|
443
|
-
}), (i, e) => (u(), g("div",
|
|
443
|
+
}), (i, e) => (u(), g("div", ge, $(s.value), 1));
|
|
444
444
|
}
|
|
445
|
-
}),
|
|
445
|
+
}), ve = /* @__PURE__ */ x({
|
|
446
446
|
__name: "headerExits",
|
|
447
447
|
setup(c) {
|
|
448
|
-
const s =
|
|
449
|
-
i.value = !1,
|
|
448
|
+
const s = D(), i = y(!1), e = () => {
|
|
449
|
+
i.value = !1, le() ? Q.userLogout() : s.logout(!0);
|
|
450
450
|
};
|
|
451
|
-
return (r, a) => (u(), g(
|
|
451
|
+
return (r, a) => (u(), g(R, null, [
|
|
452
452
|
l(t(w), { title: "退出平台" }, {
|
|
453
453
|
default: d(() => [
|
|
454
454
|
l(t(b), {
|
|
@@ -496,26 +496,26 @@ const le = /* @__PURE__ */ x({
|
|
|
496
496
|
}, 8, ["open"])
|
|
497
497
|
], 64));
|
|
498
498
|
}
|
|
499
|
-
}),
|
|
499
|
+
}), ye = { class: "flex items-center flex-nowrap" }, he = { class: "mr-2 text-sm whitespace-nowrap" }, ke = /* @__PURE__ */ x({
|
|
500
500
|
__name: "user",
|
|
501
501
|
setup(c) {
|
|
502
|
-
const s =
|
|
502
|
+
const s = D().userInfo;
|
|
503
503
|
return (i, e) => (u(), h(t(w), {
|
|
504
504
|
title: t(s).Name
|
|
505
505
|
}, {
|
|
506
506
|
default: d(() => [
|
|
507
|
-
m("div",
|
|
508
|
-
m("span",
|
|
509
|
-
l(t(
|
|
507
|
+
m("div", ye, [
|
|
508
|
+
m("span", he, $(t(s).Name), 1),
|
|
509
|
+
l(t(re), { icon: "icon-account" })
|
|
510
510
|
])
|
|
511
511
|
]),
|
|
512
512
|
_: 1
|
|
513
513
|
}, 8, ["title"]));
|
|
514
514
|
}
|
|
515
|
-
}),
|
|
515
|
+
}), be = { class: "flex items-center" }, Me = /* @__PURE__ */ x({
|
|
516
516
|
__name: "index",
|
|
517
517
|
setup(c) {
|
|
518
|
-
const { useToken: s } = O, { token: i } = s(), e =
|
|
518
|
+
const { useToken: s } = O, { token: i } = s(), e = F(), r = () => {
|
|
519
519
|
e.setMenuCollapse(!e.menuCollapse);
|
|
520
520
|
};
|
|
521
521
|
return (a, n) => (u(), h(t(oe), {
|
|
@@ -529,7 +529,7 @@ const le = /* @__PURE__ */ x({
|
|
|
529
529
|
})
|
|
530
530
|
}, {
|
|
531
531
|
default: d(() => [
|
|
532
|
-
m("div",
|
|
532
|
+
m("div", be, [
|
|
533
533
|
l(t(b), {
|
|
534
534
|
icon: "icon-menu",
|
|
535
535
|
clickable: "",
|
|
@@ -537,7 +537,7 @@ const le = /* @__PURE__ */ x({
|
|
|
537
537
|
angle: t(e).menuCollapse ? 90 : 0,
|
|
538
538
|
onClick: r
|
|
539
539
|
}, null, 8, ["angle"]),
|
|
540
|
-
l(
|
|
540
|
+
l(_e)
|
|
541
541
|
]),
|
|
542
542
|
m("div", null, [
|
|
543
543
|
l(t(se), {
|
|
@@ -545,9 +545,9 @@ const le = /* @__PURE__ */ x({
|
|
|
545
545
|
class: "flex items-center"
|
|
546
546
|
}, {
|
|
547
547
|
default: d(() => [
|
|
548
|
-
l(
|
|
549
|
-
l(
|
|
550
|
-
l(
|
|
548
|
+
l(xe),
|
|
549
|
+
l(ke),
|
|
550
|
+
l(ve)
|
|
551
551
|
]),
|
|
552
552
|
_: 1
|
|
553
553
|
})
|
|
@@ -562,9 +562,9 @@ const le = /* @__PURE__ */ x({
|
|
|
562
562
|
routes: {}
|
|
563
563
|
},
|
|
564
564
|
setup(c) {
|
|
565
|
-
const s = c, i = y([]), e = y([]), r =
|
|
565
|
+
const s = c, i = y([]), e = y([]), r = q([]), a = P(), n = (_) => {
|
|
566
566
|
z().push(_.key.toString());
|
|
567
|
-
}, f =
|
|
567
|
+
}, f = F(), p = y([]), S = () => {
|
|
568
568
|
let _ = a.TabActive;
|
|
569
569
|
const o = _.split("/");
|
|
570
570
|
o.pop(), i.value = [o.join("/")], f.menuCollapse || (p.value = [o.join("/")]), e.value = [_];
|
|
@@ -572,7 +572,7 @@ const le = /* @__PURE__ */ x({
|
|
|
572
572
|
return k(
|
|
573
573
|
() => f.menuCollapse,
|
|
574
574
|
(_) => {
|
|
575
|
-
_ || (p.value = [],
|
|
575
|
+
_ || (p.value = [], J(() => {
|
|
576
576
|
p.value = [...i.value];
|
|
577
577
|
}));
|
|
578
578
|
}
|
|
@@ -582,7 +582,7 @@ const le = /* @__PURE__ */ x({
|
|
|
582
582
|
S();
|
|
583
583
|
}
|
|
584
584
|
), N(() => {
|
|
585
|
-
X(s.routes, r,
|
|
585
|
+
X(s.routes, r, de, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
|
|
586
586
|
}), (_, o) => (u(), h(t(ie), {
|
|
587
587
|
openKeys: p.value,
|
|
588
588
|
"onUpdate:openKeys": o[0] || (o[0] = (v) => p.value = v),
|
|
@@ -594,12 +594,12 @@ const le = /* @__PURE__ */ x({
|
|
|
594
594
|
onClick: n
|
|
595
595
|
}, null, 8, ["openKeys", "selectedKeys", "items"]));
|
|
596
596
|
}
|
|
597
|
-
}),
|
|
597
|
+
}), Se = { class: "flex items-center" }, Ie = { class: "flex" }, Ce = ["onClick"], Re = /* @__PURE__ */ x({
|
|
598
598
|
__name: "menuTabs",
|
|
599
599
|
setup(c) {
|
|
600
600
|
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
601
601
|
k(
|
|
602
|
-
() =>
|
|
602
|
+
() => V.currentRoute.value.path,
|
|
603
603
|
(n) => {
|
|
604
604
|
n !== e.TabActive && e.setTabActive(n);
|
|
605
605
|
}
|
|
@@ -620,12 +620,12 @@ const le = /* @__PURE__ */ x({
|
|
|
620
620
|
onTabClick: r
|
|
621
621
|
}, {
|
|
622
622
|
default: d(() => [
|
|
623
|
-
(u(!0), g(
|
|
623
|
+
(u(!0), g(R, null, Y(t(e).TabPanes, (p) => (u(), h(t(ae), {
|
|
624
624
|
key: p.key
|
|
625
625
|
}, {
|
|
626
626
|
tab: d(() => [
|
|
627
|
-
m("div",
|
|
628
|
-
m("span",
|
|
627
|
+
m("div", Se, [
|
|
628
|
+
m("span", Ie, $(p.title), 1),
|
|
629
629
|
l(t(w), {
|
|
630
630
|
title: "关闭",
|
|
631
631
|
placement: "top",
|
|
@@ -635,7 +635,7 @@ const le = /* @__PURE__ */ x({
|
|
|
635
635
|
t(e).TabPanes.length > 1 && p.closable ? (u(), g("div", {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "inline-block mx-auto relative flex items-center",
|
|
638
|
-
onClick:
|
|
638
|
+
onClick: G((S) => a(p.key), ["stop"])
|
|
639
639
|
}, [
|
|
640
640
|
l(t(b), {
|
|
641
641
|
icon: "icon-new",
|
|
@@ -644,7 +644,7 @@ const le = /* @__PURE__ */ x({
|
|
|
644
644
|
class: "w-[15px] h-[15px] ml-1",
|
|
645
645
|
tipcolor: t(i).colorBgSpotlight
|
|
646
646
|
}, null, 8, ["tipcolor"])
|
|
647
|
-
], 8,
|
|
647
|
+
], 8, Ce)) : I("", !0)
|
|
648
648
|
]),
|
|
649
649
|
_: 2
|
|
650
650
|
}, 1024)
|
|
@@ -659,13 +659,13 @@ const le = /* @__PURE__ */ x({
|
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
661
|
export {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
662
|
+
Ee as I,
|
|
663
|
+
re as _,
|
|
664
|
+
de as a,
|
|
665
|
+
_e as b,
|
|
666
|
+
xe as c,
|
|
667
|
+
Me as d,
|
|
668
|
+
ve as e,
|
|
669
669
|
Ue as f,
|
|
670
|
-
|
|
670
|
+
Re as g
|
|
671
671
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as s, openBlock as l, unref as a, withCtx as p, renderSlot as f, createCommentVNode as u, mergeProps as d } from "vue";
|
|
2
2
|
import { Tooltip as I } from "ant-design-vue";
|
|
3
3
|
import { SERVER_HOST as r } from "@skyfox2000/fapi";
|
|
4
|
-
import { c as S } from "./uploadList-
|
|
4
|
+
import { c as S } from "./uploadList-C4BvnORD.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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-
|
|
3
|
-
import { a as z, _ as A } from "./toolIcon-
|
|
2
|
+
import { _ as se } from "./index-QDkmhaJS.js";
|
|
3
|
+
import { a as z, _ as A } from "./toolIcon-C6QsaAZ8.js";
|
|
4
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-
|
|
6
|
-
import { p as M, U as i } from "./file-upload-
|
|
5
|
+
import { L as V, u as Q, s as ie, _ as re } from "./uploadList-C4BvnORD.js";
|
|
6
|
+
import { p as M, U as i } from "./file-upload-Dmi2Kiqo.js";
|
|
7
7
|
import { combineParams as q } from "@skyfox2000/microbase";
|
|
8
8
|
import g from "vue-m-message";
|
|
9
9
|
import "async-validator";
|