@skyfox2000/webui 1.2.3 → 1.2.5
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/{file-upload-D5dPRmq8.js → file-upload-CoDWKNFQ.js} +5 -5
- package/lib/assets/modules/{form-excel-DITF2FoK.js → form-excel-DitXm4uj.js} +1 -1
- package/lib/assets/modules/{index-XIk9IJH2.js → index-B5NckHoK.js} +5 -5
- package/lib/assets/modules/{pinia-8iujwf8y.js → index-C4515EtU.js} +1140 -1127
- package/lib/assets/modules/{index-CRKPVlgC.js → index-DG2jNBuv.js} +1 -1
- package/lib/assets/modules/{menuTabs-D2OgHmBc.js → menuTabs-BwX6S1WN.js} +11 -11
- package/lib/assets/modules/{toolIcon-Cwggvppx.js → toolIcon-B5Qojob9.js} +1 -1
- package/lib/assets/modules/{download-D6JcG5ZR.js → uploadList-BdeV2JlK.js} +45 -45
- package/lib/components/common/icon/index.vue.d.ts +7 -7
- package/lib/components/form/autoComplete/index.vue.d.ts +4 -4
- package/lib/components/form/radio/index.vue.d.ts +2 -2
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +18 -18
- package/lib/es/Error403/index.js +5 -5
- package/lib/es/Error404/index.js +5 -5
- package/lib/es/ExcelForm/index.js +22 -22
- package/lib/es/UploadForm/index.js +10 -10
- package/lib/index.d.ts +2 -2
- package/lib/router/index.d.ts +0 -1
- package/lib/stores/userInfo.d.ts +1 -0
- package/lib/webui.es.js +684 -685
- package/package.json +1 -1
- package/src/components/content/toolbar/index.vue +0 -1
- package/src/index.ts +50 -50
- package/src/router/index.ts +1 -2
- package/src/stores/appInfo.ts +4 -1
- package/src/stores/userInfo.ts +16 -1
|
@@ -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-B5Qojob9.js";
|
|
4
4
|
const C = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as _, createBlock as y, createCommentVNode as I, openBlock as p, unref as t, mergeProps as C, useAttrs as q, computed as P, ref as h, watch as k, withCtx as f, createElementBlock as g, normalizeStyle as T, createElementVNode as x, inject as J, onMounted as R, createVNode as u, toDisplayString as U, Fragment as L, createTextVNode as O, reactive as Q, nextTick as W, renderList as G, withModifiers as X } from "vue";
|
|
2
|
-
import { a as w, _ as b } from "./toolIcon-
|
|
3
|
-
import { c as F,
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-B5Qojob9.js";
|
|
3
|
+
import { c as F, Q as j, ad as B, T as K, S as E, u as H, a as V, R as Y, r as D, ab as A } from "./index-C4515EtU.js";
|
|
4
4
|
import { theme as N, Breadcrumb as Z, Modal as ee, Flex as te, LayoutHeader as ne, Space as oe, Menu as se, Tabs as ie, TabPane as ce } from "ant-design-vue";
|
|
5
|
-
import { SERVER_HOST as A } from "@skyfox2000/fapi";
|
|
6
|
-
import "vue-draggable-next";
|
|
7
|
-
import "vue-m-message";
|
|
8
|
-
import "dayjs";
|
|
9
5
|
import { mainAppApis as M } from "@skyfox2000/microbase";
|
|
6
|
+
import { SERVER_HOST as z } from "@skyfox2000/fapi";
|
|
7
|
+
import "vue-m-message";
|
|
10
8
|
import "async-validator";
|
|
9
|
+
import "dayjs";
|
|
10
|
+
import "vue-draggable-next";
|
|
11
11
|
const ae = /* @__PURE__ */ _({
|
|
12
12
|
__name: "appicon",
|
|
13
13
|
props: {
|
|
@@ -17,7 +17,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
17
17
|
},
|
|
18
18
|
setup(s) {
|
|
19
19
|
const c = s, e = F({
|
|
20
|
-
iconUrl: `${
|
|
20
|
+
iconUrl: `${z.APP_ICONS}`,
|
|
21
21
|
icon: c.icon
|
|
22
22
|
});
|
|
23
23
|
return (l, a) => s.icon ? (p(), y(t(e), C({
|
|
@@ -384,7 +384,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
384
384
|
},
|
|
385
385
|
setup(s) {
|
|
386
386
|
const c = s, e = F({
|
|
387
|
-
iconUrl: `${c.iconUrl ??
|
|
387
|
+
iconUrl: `${c.iconUrl ?? z.PROJECT_ICONS ?? z.TOOL_ICONS}`,
|
|
388
388
|
monoColor: c.monoColor,
|
|
389
389
|
icon: c.icon,
|
|
390
390
|
icons: c.icons
|
|
@@ -547,7 +547,7 @@ const ae = /* @__PURE__ */ _({
|
|
|
547
547
|
},
|
|
548
548
|
setup(s) {
|
|
549
549
|
const c = s, i = h([]), e = h([]), l = Q([]), a = B(), n = (m) => {
|
|
550
|
-
|
|
550
|
+
A().push(m.key.toString());
|
|
551
551
|
}, d = V(), r = h([]), S = () => {
|
|
552
552
|
let m = a.TabActive;
|
|
553
553
|
const o = m.split("/");
|
|
@@ -589,9 +589,9 @@ const ae = /* @__PURE__ */ _({
|
|
|
589
589
|
}
|
|
590
590
|
);
|
|
591
591
|
const l = (n) => {
|
|
592
|
-
|
|
592
|
+
A().push(n);
|
|
593
593
|
}, a = (n) => {
|
|
594
|
-
e.removeTabPane(n),
|
|
594
|
+
e.removeTabPane(n), A().push(e.TabActive);
|
|
595
595
|
};
|
|
596
596
|
return (n, d) => (p(), g("div", {
|
|
597
597
|
style: T({ height: "38px", backgroundColor: t(i).colorBgBase })
|
|
@@ -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 "./
|
|
4
|
+
import { c as S } from "./index-C4515EtU.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
import { defineComponent as $, ref as k, computed as O, watch as j, createElementBlock as p, openBlock as f, createElementVNode as r, createVNode as v, unref as l, mergeProps as B, withCtx as U, createTextVNode as E, toDisplayString as y, Fragment as M, renderList as R, normalizeClass as T, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as V } from "./index-
|
|
2
|
+
import { _ as V } from "./index-DG2jNBuv.js";
|
|
3
3
|
import { Upload as A, Tag as K, Progress as D } from "ant-design-vue";
|
|
4
4
|
import { httpPost as I, ResStatus as Q } from "@skyfox2000/fapi";
|
|
5
|
-
import "./
|
|
6
|
-
import "
|
|
5
|
+
import "./index-C4515EtU.js";
|
|
6
|
+
import { U as o, p as q } from "./file-upload-CoDWKNFQ.js";
|
|
7
|
+
import { combineParams as G } from "@skyfox2000/microbase";
|
|
7
8
|
import h from "vue-m-message";
|
|
8
|
-
import "dayjs";
|
|
9
|
-
import { combineParams as q } from "@skyfox2000/microbase";
|
|
10
|
-
import { U as o, p as G } from "./file-upload-D5dPRmq8.js";
|
|
11
9
|
import "async-validator";
|
|
12
|
-
|
|
10
|
+
import "dayjs";
|
|
11
|
+
import "vue-draggable-next";
|
|
12
|
+
const H = (i, u) => {
|
|
13
|
+
const e = document.createElement("a"), a = URL.createObjectURL(i);
|
|
14
|
+
e.href = a, e.download = u, e.style.display = "none", document.body.appendChild(e), e.click(), URL.revokeObjectURL(a), document.body.removeChild(e);
|
|
15
|
+
}, J = (i, u, e) => {
|
|
16
|
+
try {
|
|
17
|
+
e && (i.api || (i.api = e.api), i.authorize === void 0 && (i.authorize = e.authorize));
|
|
18
|
+
const a = G(i.params, u);
|
|
19
|
+
return I(i, a).then((c) => {
|
|
20
|
+
if ((c == null ? void 0 : c.status) === Q.SUCCESS && c.data) {
|
|
21
|
+
const d = c.data, b = d.Content, g = d.FileName, x = atob(b), _ = [];
|
|
22
|
+
for (let m = 0; m < x.length; m++)
|
|
23
|
+
_.push(x.charCodeAt(m));
|
|
24
|
+
const C = new Blob([new Uint8Array(_)], {
|
|
25
|
+
type: d.Type
|
|
26
|
+
});
|
|
27
|
+
H(C, g);
|
|
28
|
+
} else
|
|
29
|
+
h.error("下载文件失败!");
|
|
30
|
+
});
|
|
31
|
+
} catch (a) {
|
|
32
|
+
console.error("下载失败:", a), h.error("文件下载失败,请稍后重试");
|
|
33
|
+
}
|
|
34
|
+
}, W = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md py-5" }, X = { class: "flex items-center justify-between w-full" }, Y = { class: "w-35 mx-3" }, Z = { class: "flex-1 text-sm text-gray-500" }, ee = { class: "mt-4 px-3" }, te = { class: "flex items-center justify-between" }, oe = { class: "flex items-center" }, ne = { class: "flex items-center" }, se = ["onClick"], ae = ["onClick"], re = ["onClick"], ve = /* @__PURE__ */ $({
|
|
13
35
|
__name: "uploadList",
|
|
14
36
|
props: {
|
|
15
37
|
autoUpload: { type: Boolean, default: !1 },
|
|
@@ -36,7 +58,7 @@ const H = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md p
|
|
|
36
58
|
return t.size / 1024 / 1024 > e.maxFileSize ? (h.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : e.maxCount > 1 && a.value.length >= e.maxCount ? (h.error(`最多上传 ${e.maxCount} 个文件`), !1) : e.autoUpload;
|
|
37
59
|
}, x = (t) => {
|
|
38
60
|
t.forEach((s) => {
|
|
39
|
-
s.fileName || (s.fileName = s.name), e.parentPath && (s.name =
|
|
61
|
+
s.fileName || (s.fileName = s.name), e.parentPath && (s.name = q.join("/", e.parentPath, s.fileName));
|
|
40
62
|
});
|
|
41
63
|
}, _ = O(() => ({
|
|
42
64
|
accept: b.value,
|
|
@@ -70,7 +92,7 @@ const H = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md p
|
|
|
70
92
|
}
|
|
71
93
|
}
|
|
72
94
|
};
|
|
73
|
-
|
|
95
|
+
J(n);
|
|
74
96
|
}, m = (t) => {
|
|
75
97
|
t.status = t.status === o.Offline ? o.Online : o.Offline, t.minioFile.Status = t.status;
|
|
76
98
|
}, L = (t) => {
|
|
@@ -109,9 +131,9 @@ const H = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md p
|
|
|
109
131
|
return "待上传";
|
|
110
132
|
}
|
|
111
133
|
};
|
|
112
|
-
return (t, s) => (f(), p("div",
|
|
113
|
-
r("div",
|
|
114
|
-
r("div",
|
|
134
|
+
return (t, s) => (f(), p("div", W, [
|
|
135
|
+
r("div", X, [
|
|
136
|
+
r("div", Y, [
|
|
115
137
|
v(l(A), B({
|
|
116
138
|
ref_key: "fileUploader",
|
|
117
139
|
ref: c
|
|
@@ -128,15 +150,15 @@ const H = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md p
|
|
|
128
150
|
_: 1
|
|
129
151
|
}, 16)
|
|
130
152
|
]),
|
|
131
|
-
r("div",
|
|
153
|
+
r("div", Z, y(z()), 1)
|
|
132
154
|
]),
|
|
133
|
-
r("div",
|
|
155
|
+
r("div", ee, [
|
|
134
156
|
(f(!0), p(M, null, R(a.value, (n, w) => (f(), p("div", {
|
|
135
157
|
key: w,
|
|
136
158
|
class: "mb-2 pb-1"
|
|
137
159
|
}, [
|
|
138
|
-
r("div",
|
|
139
|
-
r("div",
|
|
160
|
+
r("div", te, [
|
|
161
|
+
r("div", oe, [
|
|
140
162
|
r("span", {
|
|
141
163
|
class: T(["text-gray-700 mr-2", [n.status == l(o).Offline ? "line-through" : ""]])
|
|
142
164
|
}, y(n.fileName ?? n.name), 3),
|
|
@@ -151,21 +173,21 @@ const H = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md p
|
|
|
151
173
|
}, 1032, ["color"])
|
|
152
174
|
])
|
|
153
175
|
]),
|
|
154
|
-
r("div",
|
|
176
|
+
r("div", ne, [
|
|
155
177
|
n.status == l(o).Offline || n.status == l(o).Online ? (f(), p("span", {
|
|
156
178
|
key: 0,
|
|
157
179
|
class: "text-blue-500 hover:text-blue-700 mr-4 cursor-pointer",
|
|
158
180
|
onClick: (S) => m(n)
|
|
159
|
-
}, y(n.status == l(o).Offline ? "上线" : "下线"), 9,
|
|
181
|
+
}, y(n.status == l(o).Offline ? "上线" : "下线"), 9, se)) : F("", !0),
|
|
160
182
|
n.status == l(o).Offline || n.status == l(o).Online ? (f(), p("span", {
|
|
161
183
|
key: 1,
|
|
162
184
|
class: "text-blue-500 hover:text-blue-700 mr-4 cursor-pointer",
|
|
163
185
|
onClick: (S) => C(w)
|
|
164
|
-
}, "下载", 8,
|
|
186
|
+
}, "下载", 8, ae)) : F("", !0),
|
|
165
187
|
r("span", {
|
|
166
188
|
class: "text-red-500 hover:text-red-700 cursor-pointer",
|
|
167
189
|
onClick: (S) => L(w)
|
|
168
|
-
}, "删除", 8,
|
|
190
|
+
}, "删除", 8, re)
|
|
169
191
|
])
|
|
170
192
|
]),
|
|
171
193
|
r("div", null, [
|
|
@@ -180,31 +202,9 @@ const H = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md p
|
|
|
180
202
|
])
|
|
181
203
|
]));
|
|
182
204
|
}
|
|
183
|
-
})
|
|
184
|
-
const e = document.createElement("a"), a = URL.createObjectURL(i);
|
|
185
|
-
e.href = a, e.download = u, e.style.display = "none", document.body.appendChild(e), e.click(), URL.revokeObjectURL(a), document.body.removeChild(e);
|
|
186
|
-
}, re = (i, u, e) => {
|
|
187
|
-
try {
|
|
188
|
-
e && (i.api || (i.api = e.api), i.authorize === void 0 && (i.authorize = e.authorize));
|
|
189
|
-
const a = q(i.params, u);
|
|
190
|
-
return I(i, a).then((c) => {
|
|
191
|
-
if ((c == null ? void 0 : c.status) === Q.SUCCESS && c.data) {
|
|
192
|
-
const d = c.data, b = d.Content, g = d.FileName, x = atob(b), _ = [];
|
|
193
|
-
for (let m = 0; m < x.length; m++)
|
|
194
|
-
_.push(x.charCodeAt(m));
|
|
195
|
-
const C = new Blob([new Uint8Array(_)], {
|
|
196
|
-
type: d.Type
|
|
197
|
-
});
|
|
198
|
-
ae(C, g);
|
|
199
|
-
} else
|
|
200
|
-
h.error("下载文件失败!");
|
|
201
|
-
});
|
|
202
|
-
} catch (a) {
|
|
203
|
-
console.error("下载失败:", a), h.error("文件下载失败,请稍后重试");
|
|
204
|
-
}
|
|
205
|
-
};
|
|
205
|
+
});
|
|
206
206
|
export {
|
|
207
207
|
ve as _,
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
J as a,
|
|
209
|
+
H as d
|
|
210
210
|
};
|
|
@@ -49,7 +49,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
type: StringConstructor;
|
|
50
50
|
};
|
|
51
51
|
data: {
|
|
52
|
-
type: (
|
|
52
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
53
53
|
};
|
|
54
54
|
fontsize: {
|
|
55
55
|
type: StringConstructor;
|
|
@@ -163,7 +163,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
163
163
|
type: StringConstructor;
|
|
164
164
|
};
|
|
165
165
|
data: {
|
|
166
|
-
type: (
|
|
166
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
167
167
|
};
|
|
168
168
|
fontsize: {
|
|
169
169
|
type: StringConstructor;
|
|
@@ -228,16 +228,16 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
228
228
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
229
229
|
"onUpdate:iconIndex"?: ((...args: any[]) => any) | undefined;
|
|
230
230
|
}>, {
|
|
231
|
-
|
|
232
|
-
placement: string;
|
|
233
|
-
color: string;
|
|
231
|
+
fontsize: string;
|
|
234
232
|
icons: string[];
|
|
233
|
+
size: string | String[];
|
|
234
|
+
className: string;
|
|
235
235
|
iconIndex: number;
|
|
236
236
|
clickable: boolean;
|
|
237
237
|
flip: boolean;
|
|
238
|
-
|
|
238
|
+
color: string;
|
|
239
|
+
placement: string;
|
|
239
240
|
autoSwitch: boolean;
|
|
240
|
-
className: string;
|
|
241
241
|
spin: boolean;
|
|
242
242
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
243
243
|
export default _default;
|
|
@@ -6,7 +6,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
default: boolean;
|
|
7
7
|
};
|
|
8
8
|
value: {
|
|
9
|
-
type: (
|
|
9
|
+
type: (ArrayConstructor | StringConstructor | NumberConstructor | null)[];
|
|
10
10
|
default: undefined;
|
|
11
11
|
};
|
|
12
12
|
searchField: {
|
|
@@ -61,8 +61,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
61
61
|
required: boolean;
|
|
62
62
|
};
|
|
63
63
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
64
|
-
select: (...args: any[]) => void;
|
|
65
64
|
change: (...args: any[]) => void;
|
|
65
|
+
select: (...args: any[]) => void;
|
|
66
66
|
"update:value": (...args: any[]) => void;
|
|
67
67
|
"update:labels": (...args: any[]) => void;
|
|
68
68
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -71,7 +71,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
73
73
|
value: {
|
|
74
|
-
type: (
|
|
74
|
+
type: (ArrayConstructor | StringConstructor | NumberConstructor | null)[];
|
|
75
75
|
default: undefined;
|
|
76
76
|
};
|
|
77
77
|
searchField: {
|
|
@@ -126,8 +126,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
126
126
|
required: boolean;
|
|
127
127
|
};
|
|
128
128
|
}>> & Readonly<{
|
|
129
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
130
129
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
131
131
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
132
132
|
"onUpdate:labels"?: ((...args: any[]) => any) | undefined;
|
|
133
133
|
}>, {
|
|
@@ -2,7 +2,7 @@ import { IUrlInfo, ReqParams } from '../../../../../502417_fapi';
|
|
|
2
2
|
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
4
|
value: {
|
|
5
|
-
type: (
|
|
5
|
+
type: (ArrayConstructor | StringConstructor | NumberConstructor | null)[];
|
|
6
6
|
default: undefined;
|
|
7
7
|
};
|
|
8
8
|
nodata: {
|
|
@@ -64,7 +64,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
64
64
|
"update:labels": (...args: any[]) => void;
|
|
65
65
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
66
66
|
value: {
|
|
67
|
-
type: (
|
|
67
|
+
type: (ArrayConstructor | StringConstructor | NumberConstructor | null)[];
|
|
68
68
|
default: undefined;
|
|
69
69
|
};
|
|
70
70
|
nodata: {
|
|
@@ -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-B5Qojob9.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/
|
|
5
|
+
import "../../assets/modules/index-C4515EtU.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-B5NckHoK.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,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as y, ref as I, watch as C, onMounted as b, resolveComponent as g, createBlock as n, openBlock as o, unref as e, withCtx as l, createCommentVNode as c, createVNode as r, createElementVNode as u, createElementBlock as k, toDisplayString as w, normalizeClass as S, KeepAlive as N, resolveDynamicComponent as $ } from "vue";
|
|
2
2
|
import { Layout as f, LayoutSider as E } from "ant-design-vue";
|
|
3
|
-
import { a as z } from "../../assets/modules/toolIcon-
|
|
4
|
-
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-
|
|
5
|
-
import { ab as j,
|
|
3
|
+
import { a as z } from "../../assets/modules/toolIcon-B5Qojob9.js";
|
|
4
|
+
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-BwX6S1WN.js";
|
|
5
|
+
import { ab as j, a as K, ad as M } from "../../assets/modules/index-C4515EtU.js";
|
|
6
|
+
import "@skyfox2000/microbase";
|
|
6
7
|
import "@skyfox2000/fapi";
|
|
7
|
-
import "vue-draggable-next";
|
|
8
8
|
import P from "vue-m-message";
|
|
9
|
-
import "dayjs";
|
|
10
|
-
import "@skyfox2000/microbase";
|
|
11
9
|
import "async-validator";
|
|
10
|
+
import "dayjs";
|
|
11
|
+
import "vue-draggable-next";
|
|
12
12
|
const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-nowrap items-center justify-center text-white font-bold text-lg overflow-hidden text-ellipsis" }, U = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "ml-[10px]"
|
|
@@ -18,9 +18,9 @@ const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
|
|
|
18
18
|
routes: {}
|
|
19
19
|
},
|
|
20
20
|
setup(d) {
|
|
21
|
-
const _ = d, t = j(),
|
|
21
|
+
const _ = d, t = j(), a = K(), x = M(), p = I("h-[calc(100vh-80px)]");
|
|
22
22
|
return C(
|
|
23
|
-
() =>
|
|
23
|
+
() => a.fullscreen,
|
|
24
24
|
(i) => {
|
|
25
25
|
p.value = i ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-80px)]";
|
|
26
26
|
}
|
|
@@ -30,23 +30,23 @@ const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
|
|
|
30
30
|
const h = g("router-view");
|
|
31
31
|
return o(), n(e(f), { class: "h-screen" }, {
|
|
32
32
|
default: l(() => [
|
|
33
|
-
e(
|
|
33
|
+
e(a).fullscreen ? c("", !0) : (o(), n(e(E), {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "overflow-auto h-screen left-0 top-0 bottom-0",
|
|
36
|
-
collapsed: e(
|
|
37
|
-
"onUpdate:collapsed": m[0] || (m[0] = (
|
|
36
|
+
collapsed: e(a).menuCollapse,
|
|
37
|
+
"onUpdate:collapsed": m[0] || (m[0] = (s) => e(a).menuCollapse = s),
|
|
38
38
|
collapsible: ""
|
|
39
39
|
}, {
|
|
40
40
|
default: l(() => [
|
|
41
41
|
u("div", T, [
|
|
42
42
|
r(z, {
|
|
43
|
-
title: e(
|
|
43
|
+
title: e(a).menuCollapse ? e(t).appInfo.Name : "",
|
|
44
44
|
placement: "right"
|
|
45
45
|
}, {
|
|
46
46
|
default: l(() => {
|
|
47
|
-
var
|
|
47
|
+
var s;
|
|
48
48
|
return [
|
|
49
|
-
(
|
|
49
|
+
(s = e(t).appInfo.Icon) != null && s.startsWith("sym-") ? (o(), n(A, {
|
|
50
50
|
key: 0,
|
|
51
51
|
icon: e(t).appInfo.Icon,
|
|
52
52
|
fontsize: "30px",
|
|
@@ -60,7 +60,7 @@ const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
|
|
|
60
60
|
}),
|
|
61
61
|
_: 1
|
|
62
62
|
}, 8, ["title"]),
|
|
63
|
-
e(
|
|
63
|
+
e(a).menuCollapse ? c("", !0) : (o(), k("span", U, w(e(t).appInfo.Name), 1))
|
|
64
64
|
]),
|
|
65
65
|
r(L, {
|
|
66
66
|
routes: _.routes
|
|
@@ -70,18 +70,18 @@ const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
|
|
|
70
70
|
}, 8, ["collapsed"])),
|
|
71
71
|
r(e(f), { class: "overflow-y-auto block" }, {
|
|
72
72
|
default: l(() => [
|
|
73
|
-
e(
|
|
73
|
+
e(a).fullscreen ? c("", !0) : (o(), n(V, { key: 0 })),
|
|
74
74
|
e(x).TabEnabled ? (o(), n(D, { key: 1 })) : c("", !0),
|
|
75
75
|
u("div", {
|
|
76
76
|
class: S(["relative overflow-y-auto", p.value])
|
|
77
77
|
}, [
|
|
78
78
|
r(h, null, {
|
|
79
|
-
default: l(({ Component:
|
|
79
|
+
default: l(({ Component: s, route: v }) => [
|
|
80
80
|
(o(), n(N, {
|
|
81
81
|
include: e(t).CachedComponents,
|
|
82
82
|
exclude: e(t).ExcludeComponents
|
|
83
83
|
}, [
|
|
84
|
-
(o(), n($(e(t).cacheComponent(
|
|
84
|
+
(o(), n($(e(t).cacheComponent(s, v))))
|
|
85
85
|
], 1032, ["include", "exclude"]))
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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/
|
|
3
|
-
import
|
|
2
|
+
import { r as s } from "../../assets/modules/index-C4515EtU.js";
|
|
3
|
+
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "vue-draggable-next";
|
|
6
5
|
import "vue-m-message";
|
|
7
|
-
import "dayjs";
|
|
8
|
-
import "@skyfox2000/microbase";
|
|
9
6
|
import "async-validator";
|
|
7
|
+
import "dayjs";
|
|
8
|
+
import { Result as u, Button as c } from "ant-design-vue";
|
|
9
|
+
import "vue-draggable-next";
|
|
10
10
|
const V = /* @__PURE__ */ i({
|
|
11
11
|
__name: "error403",
|
|
12
12
|
setup(_) {
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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/
|
|
3
|
-
import
|
|
2
|
+
import { r as s } from "../../assets/modules/index-C4515EtU.js";
|
|
3
|
+
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "vue-draggable-next";
|
|
6
5
|
import "vue-m-message";
|
|
7
|
-
import "dayjs";
|
|
8
|
-
import "@skyfox2000/microbase";
|
|
9
6
|
import "async-validator";
|
|
7
|
+
import "dayjs";
|
|
8
|
+
import { Result as u, Button as c } from "ant-design-vue";
|
|
9
|
+
import "vue-draggable-next";
|
|
10
10
|
const V = /* @__PURE__ */ i({
|
|
11
11
|
__name: "error404",
|
|
12
12
|
setup(_) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as A } from "../../assets/modules/index-
|
|
1
|
+
import { defineComponent as Y, ref as r, watch as V, onMounted as Z, createBlock as ee, openBlock as d, unref as i, withCtx as _, renderSlot as le, createElementVNode as c, createVNode as m, createElementBlock as f, createCommentVNode as M, createTextVNode as O, toDisplayString as F, normalizeClass as ae, Fragment as $, renderList as P } from "vue";
|
|
2
|
+
import { _ as A } from "../../assets/modules/index-DG2jNBuv.js";
|
|
3
3
|
import { Modal as te, Upload as I, Alert as G, Space as re } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as oe } from "@skyfox2000/fapi";
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
5
|
+
import { $ as se, a5 as ie } from "../../assets/modules/index-C4515EtU.js";
|
|
6
|
+
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-CoDWKNFQ.js";
|
|
7
|
+
import "@skyfox2000/microbase";
|
|
7
8
|
import n from "vue-m-message";
|
|
9
|
+
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-DitXm4uj.js";
|
|
8
10
|
import "dayjs";
|
|
9
|
-
import "
|
|
10
|
-
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-D5dPRmq8.js";
|
|
11
|
-
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-DITF2FoK.js";
|
|
11
|
+
import "vue-draggable-next";
|
|
12
12
|
import pe from "@vue-office/excel";
|
|
13
13
|
const me = { class: "mb-4 flex items-center" }, xe = {
|
|
14
14
|
key: 0,
|
|
@@ -25,7 +25,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
25
25
|
}, we = { class: "overflow-y-auto" }, Ce = { class: "text-[13px] text-gray-600" }, Fe = { class: "pl-5 mt-1 mb-0" }, Ee = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "mt-3"
|
|
28
|
-
}, Ue = { class: "text-[12px] text-gray-600 p-1" }, Se = { class: "text-[13px] text-gray-600" }, ke = { class: "pl-5 mt-1 mb-0" }, De = { class: "text-[12px] text-gray-600" },
|
|
28
|
+
}, Ue = { class: "text-[12px] text-gray-600 p-1" }, Se = { class: "text-[13px] text-gray-600" }, ke = { class: "pl-5 mt-1 mb-0" }, De = { class: "text-[12px] text-gray-600" }, $e = /* @__PURE__ */ Y({
|
|
29
29
|
__name: "excelForm",
|
|
30
30
|
props: {
|
|
31
31
|
title: {},
|
|
@@ -38,7 +38,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
38
38
|
saveText: {}
|
|
39
39
|
},
|
|
40
40
|
setup(Q) {
|
|
41
|
-
const o = Q, e = o.excelCtrl, b = r(!1), w = r(""),
|
|
41
|
+
const o = Q, e = o.excelCtrl, b = r(!1), w = r(""), q = r([]), x = r(""), E = r(!0), U = r("待验证数据规则"), S = r("warning"), k = r("待验证重复数据"), D = r("warning");
|
|
42
42
|
V(
|
|
43
43
|
() => e.visible.value,
|
|
44
44
|
() => {
|
|
@@ -50,7 +50,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
50
50
|
e.visible.value = b.value;
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
const R = r(o.uploadParams), p = r(R.value.uploadUrl), g = r(R.value.duplicateRules), C = r(R.value.duplicateUrl),
|
|
53
|
+
const R = r(o.uploadParams), p = r(R.value.uploadUrl), g = r(R.value.duplicateRules), C = r(R.value.duplicateUrl), H = async () => {
|
|
54
54
|
const l = p.value;
|
|
55
55
|
if (!l) {
|
|
56
56
|
n.error("未配置文件上传地址!");
|
|
@@ -81,7 +81,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
81
81
|
try {
|
|
82
82
|
await a.uploadFile(v, y.signal, (u) => {
|
|
83
83
|
v.percent = u;
|
|
84
|
-
}), n.success("文件上传成功,开始业务处理!"),
|
|
84
|
+
}), n.success("文件上传成功,开始业务处理!"), J(v);
|
|
85
85
|
} catch (u) {
|
|
86
86
|
throw console.error("文件上传错误:", u), n.error((u == null ? void 0 : u.message) || "文件上传失败,请稍后再试!"), u;
|
|
87
87
|
}
|
|
@@ -90,7 +90,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
90
90
|
} finally {
|
|
91
91
|
e.isFormLoading.value = !1;
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, J = async (l) => {
|
|
94
94
|
if (e.formData.value) {
|
|
95
95
|
if (o.excelBatchField) {
|
|
96
96
|
const t = await ve(z.value);
|
|
@@ -129,7 +129,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
129
129
|
e.isFormLoading.value = !1;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
}, B = r(!1), N = r(!1), z = r(null),
|
|
132
|
+
}, B = r(!1), N = r(!1), z = r(null), W = async (l) => {
|
|
133
133
|
if (!(l.type === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" || l.type === "application/vnd.ms-excel"))
|
|
134
134
|
return n.error("只能上传Excel文件!"), I.LIST_IGNORE;
|
|
135
135
|
try {
|
|
@@ -178,7 +178,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
178
178
|
}
|
|
179
179
|
return !1;
|
|
180
180
|
}, T = se(e.formRules.value);
|
|
181
|
-
|
|
181
|
+
Z(() => {
|
|
182
182
|
const l = o.gridCtrl.page;
|
|
183
183
|
if (p.value = p.value ?? l.urls.upload, !p.value) {
|
|
184
184
|
n.error("未配置文件上传地址!");
|
|
@@ -191,7 +191,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
191
191
|
});
|
|
192
192
|
const K = () => {
|
|
193
193
|
e.visible.value = !1;
|
|
194
|
-
},
|
|
194
|
+
}, X = () => {
|
|
195
195
|
console.error("渲染失败");
|
|
196
196
|
};
|
|
197
197
|
return (l, a) => (d(), ee(i(te), {
|
|
@@ -213,7 +213,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
213
213
|
__: [2]
|
|
214
214
|
}),
|
|
215
215
|
m(i(A), {
|
|
216
|
-
onClick:
|
|
216
|
+
onClick: H,
|
|
217
217
|
type: "primary",
|
|
218
218
|
loading: i(e).isFormSaving.value,
|
|
219
219
|
disabled: !w.value || B.value || N.value || E.value
|
|
@@ -231,8 +231,8 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
231
231
|
le(l.$slots, "default"),
|
|
232
232
|
c("div", me, [
|
|
233
233
|
m(i(I), {
|
|
234
|
-
"file-list":
|
|
235
|
-
"before-upload":
|
|
234
|
+
"file-list": q.value,
|
|
235
|
+
"before-upload": W,
|
|
236
236
|
accept: ".xlsx,.xls",
|
|
237
237
|
showUploadList: !0
|
|
238
238
|
}, {
|
|
@@ -258,7 +258,7 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
258
258
|
}, [
|
|
259
259
|
m(i(pe), {
|
|
260
260
|
src: w.value,
|
|
261
|
-
onError:
|
|
261
|
+
onError: X,
|
|
262
262
|
style: { width: "100%", height: "100%" },
|
|
263
263
|
options: {
|
|
264
264
|
styles: !0,
|
|
@@ -280,13 +280,13 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
280
280
|
class: "mb-2"
|
|
281
281
|
}, null, 8, ["message", "type"]),
|
|
282
282
|
c("div", we, [
|
|
283
|
-
(d(!0), f(
|
|
283
|
+
(d(!0), f($, null, P(i(T), (s, t) => (d(), f("div", {
|
|
284
284
|
key: t,
|
|
285
285
|
class: "border-b pb-0"
|
|
286
286
|
}, [
|
|
287
287
|
c("div", Ce, F(s.field), 1),
|
|
288
288
|
c("ul", Fe, [
|
|
289
|
-
(d(!0), f(
|
|
289
|
+
(d(!0), f($, null, P(s.rules, (v, y) => (d(), f("li", {
|
|
290
290
|
key: y,
|
|
291
291
|
class: "text-[12px] text-gray-600"
|
|
292
292
|
}, F(v), 1))), 128))
|
|
@@ -317,5 +317,5 @@ const me = { class: "mb-4 flex items-center" }, xe = {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
export {
|
|
320
|
-
|
|
320
|
+
$e as default
|
|
321
321
|
};
|