@skyfox2000/webui 1.5.17 → 1.5.18
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-Ei5LdC2W.js → baseLayout-C0oro8TZ.js} +3 -3
- package/lib/assets/modules/{file-upload-BieNyJVf.js → file-upload-CgDrcFNd.js} +1 -1
- package/lib/assets/modules/{index-DR6i71_f.js → index-ATFhuPny.js} +1 -1
- package/lib/assets/modules/{index-BsXBIymP.js → index-CBf1uUD5.js} +2 -2
- package/lib/assets/modules/{index-BFaZP11X.js → index-CSYtMPul.js} +2 -2
- package/lib/assets/modules/{menuTabs-CrjDOZJD.js → menuTabs-Bn4JhD4B.js} +2 -2
- package/lib/assets/modules/{toolIcon-BRY0u0wl.js → toolIcon-BjDYymr7.js} +1 -1
- package/lib/assets/modules/{upload-template-CrcqJ2R9.js → upload-template-DsasmjJZ.js} +24 -10
- package/lib/assets/modules/{uploadList-D7Y_29ML.js → uploadList-Cv7NFGLh.js} +4 -4
- 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 +4 -4
- 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 +22 -8
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/locales/default.ts +23 -9
- package/src/utils/form.ts +1 -1
|
@@ -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 { al as v, a as B, an as E } from "./upload-template-
|
|
3
|
+
import { a as b } from "./toolIcon-BjDYymr7.js";
|
|
4
|
+
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-Bn4JhD4B.js";
|
|
5
|
+
import { al as v, a as B, an as E } from "./upload-template-DsasmjJZ.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import L from "vue-m-message";
|
|
@@ -4,7 +4,7 @@ var h = (i, e, a) => U(i, typeof e != "symbol" ? e + "" : e, a);
|
|
|
4
4
|
import { hostUrl as E } from "@skyfox2000/fapi";
|
|
5
5
|
import m from "dayjs";
|
|
6
6
|
import f from "vue-m-message";
|
|
7
|
-
import { $ as n, M as y, u as F } from "./upload-template-
|
|
7
|
+
import { $ as n, M as y, u as F } from "./upload-template-DsasmjJZ.js";
|
|
8
8
|
import { isMicroApp as g } from "@skyfox2000/microbase";
|
|
9
9
|
var l = /* @__PURE__ */ ((i) => (i.Pending = "pending", i.Uploading = "uploading", i.Success = "success", i.Error = "error", i.Online = "online", i.Offline = "offline", i))(l || {});
|
|
10
10
|
class M {
|
|
@@ -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-BjDYymr7.js";
|
|
4
4
|
const C = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as B, provide as N, ref as A, watch as m, onMounted as V, createBlock as r, openBlock as d, unref as o, withCtx as n, createElementVNode as $, renderSlot as C, createVNode as D, createCommentVNode as u, createTextVNode as v, toDisplayString as f } from "vue";
|
|
2
|
-
import { _ as c } from "./index-
|
|
2
|
+
import { _ as c } from "./index-ATFhuPny.js";
|
|
3
3
|
import { Modal as E, Space as M } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P, d as K, $ as p, o as U, b as j } from "./upload-template-
|
|
5
|
+
import { P, d as K, $ as p, o as U, b as j } from "./upload-template-DsasmjJZ.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import H from "async-validator";
|
|
2
2
|
import { httpPost as $, ResStatus as M } from "@skyfox2000/fapi";
|
|
3
|
-
import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-
|
|
3
|
+
import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-DsasmjJZ.js";
|
|
4
4
|
import E from "vue-m-message";
|
|
5
5
|
import { defineComponent as S, useAttrs as B, createElementBlock as P, openBlock as y, createVNode as z, unref as v, mergeProps as _, computed as x, createBlock as D, withCtx as A, normalizeStyle as N } from "vue";
|
|
6
6
|
import { Spin as L, Alert as O } from "ant-design-vue";
|
|
7
|
-
import { _ as K } from "./toolIcon-
|
|
7
|
+
import { _ as K } from "./toolIcon-BjDYymr7.js";
|
|
8
8
|
const W = (l) => {
|
|
9
9
|
const e = l.split(`
|
|
10
10
|
`).filter((i) => i.trim() !== "");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, createBlock as y, createCommentVNode as b, openBlock as l, unref as t, mergeProps as $, useAttrs as Y, computed as j, ref as v, watch as w, withCtx as m, createElementBlock as g, normalizeStyle as T, createElementVNode as f, inject as Z, onMounted as P, createVNode as r, toDisplayString as C, Fragment as L, renderList as U, createTextVNode as G, reactive as Q, nextTick as X, withModifiers as ee } from "vue";
|
|
2
|
-
import { a as A, _ as k } from "./toolIcon-
|
|
3
|
-
import { c as D, Y as E, an as M, a1 as K, a0 as R, at as F, u as H, $ as S, M as te, as as V, au as ne, a as q, Z as oe, r as J, al as B } from "./upload-template-
|
|
2
|
+
import { a as A, _ as k } from "./toolIcon-BjDYymr7.js";
|
|
3
|
+
import { c as D, Y as E, an as M, a1 as K, a0 as R, at as F, u as H, $ as S, M as te, as as V, au as ne, a as q, Z as oe, r as J, al as B } from "./upload-template-DsasmjJZ.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { theme as O, Breadcrumb as ie, Modal as ae, Flex as ce, Dropdown as le, Menu as W, MenuItem as re, LayoutHeader as ue, Space as pe, Tabs as de, TabPane as me } from "ant-design-vue";
|
|
6
6
|
import { isMicroApp as fe } from "@skyfox2000/microbase";
|
|
@@ -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 "./upload-template-
|
|
4
|
+
import { c as S } from "./upload-template-DsasmjJZ.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -3857,6 +3857,13 @@ const Ei = {
|
|
|
3857
3857
|
exportFailed: "导出失败",
|
|
3858
3858
|
fileExportFailed: "文件导出失败,请稍后重试"
|
|
3859
3859
|
},
|
|
3860
|
+
form: {
|
|
3861
|
+
saveSuccess: "保存成功!",
|
|
3862
|
+
submitValidationFailed: "提交验证失败",
|
|
3863
|
+
dataAlreadyExists: "数据已存在:{0}",
|
|
3864
|
+
dataDuplicate: "数据重复",
|
|
3865
|
+
saveFailed: "保存失败"
|
|
3866
|
+
},
|
|
3860
3867
|
formValidate: {
|
|
3861
3868
|
required: "不能为空",
|
|
3862
3869
|
numberType: "必须是数字",
|
|
@@ -3884,25 +3891,34 @@ const Ei = {
|
|
|
3884
3891
|
partialUploadFailedCancel: "上传结束,部分文件上传失败,取消保存!",
|
|
3885
3892
|
allUploadFailed: "上传结束,所有文件上传失败!",
|
|
3886
3893
|
fileUploadSuccess: "文件上传成功!",
|
|
3887
|
-
fileUploadFailed: "上传文件失败!"
|
|
3894
|
+
fileUploadFailed: "上传文件失败!",
|
|
3895
|
+
unauthorized: "未授权或授权过期",
|
|
3896
|
+
invalidJsonFormat: "返回的结果不是JSON格式",
|
|
3897
|
+
jsonParseError: "无法解析返回的JSON数据",
|
|
3898
|
+
uploadFailed: "上传失败,状态码:",
|
|
3899
|
+
networkError: "上传失败,网络异常",
|
|
3900
|
+
uploadCancelled: "上传已取消"
|
|
3888
3901
|
},
|
|
3889
3902
|
data: {
|
|
3903
|
+
startExecute: "开始执行...",
|
|
3890
3904
|
executeSuccess: "执行成功!",
|
|
3891
|
-
|
|
3905
|
+
noSaveData: "错误!无保存数据!",
|
|
3906
|
+
savingData: "正在保存数据...",
|
|
3892
3907
|
saveSuccess: "保存成功!",
|
|
3893
|
-
|
|
3908
|
+
deletingData: "正在删除数据...",
|
|
3909
|
+
forbidDeleteWithoutCondition: "错误!禁止无条件删除数据!",
|
|
3894
3910
|
deleteSuccess: "删除成功!",
|
|
3895
3911
|
urlNotSet: "URL未设置: {urlKey}"
|
|
3896
3912
|
},
|
|
3897
3913
|
download: {
|
|
3898
3914
|
downloadFailed: "下载文件失败!",
|
|
3899
|
-
|
|
3915
|
+
fileDownloadFailedRetry: "文件下载失败,请稍后重试",
|
|
3900
3916
|
fileTypeNotSupported: "文件类型不支持预览",
|
|
3901
|
-
|
|
3917
|
+
previewFailed: "文件预览失败!"
|
|
3902
3918
|
},
|
|
3903
3919
|
formExcel: {
|
|
3904
|
-
|
|
3905
|
-
|
|
3920
|
+
noWorksheet: "Excel文件不包含工作表",
|
|
3921
|
+
insufficientData: "Excel文件不包含足够的数据",
|
|
3906
3922
|
validationError: "验证表格数据时发生错误",
|
|
3907
3923
|
missingDuplicateFields: "表头缺少重复检测所需字段",
|
|
3908
3924
|
fileNotExcel: "上传的文件不是Excel文件",
|
|
@@ -3922,9 +3938,7 @@ const Ei = {
|
|
|
3922
3938
|
previewUrlNotConfigured: "预览URL或Excel控制器未配置",
|
|
3923
3939
|
fileLoadFailed: "文件加载失败",
|
|
3924
3940
|
csvProcessingFailed: "CSV格式处理失败",
|
|
3925
|
-
previewFile: "预览文件",
|
|
3926
3941
|
previewFileXlsx: "预览文件.xlsx",
|
|
3927
|
-
previewFileCsv: "preview.csv",
|
|
3928
3942
|
unsupportedRawFormat: "不支持的原始文件格式",
|
|
3929
3943
|
unsupportedFileFormat: "不支持的文件格式",
|
|
3930
3944
|
dataEmpty: "数据为空",
|
|
@@ -5296,7 +5310,7 @@ const Sc = (e) => {
|
|
|
5296
5310
|
{
|
|
5297
5311
|
field: p,
|
|
5298
5312
|
fieldValue: i,
|
|
5299
|
-
message: "
|
|
5313
|
+
message: w("webui.utils.form.dataDuplicate")
|
|
5300
5314
|
}
|
|
5301
5315
|
]);
|
|
5302
5316
|
}), Object.keys(g).length > 0 && (console.error("保存失败!", g), e.ruleResults.value = g);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
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-
|
|
3
|
-
import { a as B, _ as K } from "./toolIcon-
|
|
2
|
+
import { _ as H } from "./index-ATFhuPny.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-BjDYymr7.js";
|
|
4
4
|
import { httpPost as N, ResStatus as j } from "@skyfox2000/fapi";
|
|
5
|
-
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-
|
|
5
|
+
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-DsasmjJZ.js";
|
|
6
6
|
import U from "vue-m-message";
|
|
7
7
|
import { Upload as J, Tag as we, Popconfirm as ve, Progress as xe } from "ant-design-vue";
|
|
8
|
-
import { U as r, f as be, p as W } from "./file-upload-
|
|
8
|
+
import { U as r, f as be, p as W } from "./file-upload-CgDrcFNd.js";
|
|
9
9
|
import { combineParams as Z } from "@skyfox2000/microbase";
|
|
10
10
|
import "async-validator";
|
|
11
11
|
import "dayjs";
|
|
@@ -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-BjDYymr7.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-DsasmjJZ.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index-
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index-CBf1uUD5.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 { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-C0oro8TZ.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-DsasmjJZ.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 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-DsasmjJZ.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-DsasmjJZ.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he, createBlock as Q, openBlock as f, unref as r, withCtx as D, renderSlot as W, createElementBlock as g, createCommentVNode as B, createElementVNode as b, createVNode as _, createTextVNode as J, toDisplayString as E, normalizeClass as Fe, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
-
import { _ as Y } from "../../assets/modules/index-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-ATFhuPny.js";
|
|
3
3
|
import { Modal as Ce, Upload as ce, Space as Ue } from "ant-design-vue";
|
|
4
4
|
import { httpGet as _e, ResStatus as de } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-DsasmjJZ.js";
|
|
6
6
|
import m from "vue-m-message";
|
|
7
|
-
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-
|
|
8
|
-
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-
|
|
7
|
+
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-CSYtMPul.js";
|
|
8
|
+
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-CgDrcFNd.js";
|
|
9
9
|
import "@skyfox2000/microbase";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
@@ -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 I, unref as n, resolveDynamicComponent as g } from "vue";
|
|
2
|
-
import { _ as y } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-C0oro8TZ.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-DsasmjJZ.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import k from "vue-m-message";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as T, ref as l, watch as x, onMounted as F, createBlock as C, openBlock as q, unref as u, withCtx as d, createVNode as f, createTextVNode as L, toDisplayString as b } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-ATFhuPny.js";
|
|
3
3
|
import { Modal as D, Space as z } from "ant-design-vue";
|
|
4
4
|
import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
|
|
5
|
-
import { ao as n, $ as w } from "../../assets/modules/upload-template-
|
|
5
|
+
import { ao as n, $ as w } from "../../assets/modules/upload-template-DsasmjJZ.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { U as M } from "../../assets/modules/file-upload-
|
|
7
|
+
import { U as M } from "../../assets/modules/file-upload-CgDrcFNd.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as $ } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as $ } from "../../assets/modules/uploadList-Cv7NFGLh.js";
|
|
13
13
|
const H = /* @__PURE__ */ T({
|
|
14
14
|
__name: "templateFile",
|
|
15
15
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as F, ref as s, watch as y, onMounted as z, createBlock as D, openBlock as _, unref as u, withCtx as p, createVNode as m, mergeProps as L, createTextVNode as w, toDisplayString as C } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-ATFhuPny.js";
|
|
3
3
|
import { Modal as k, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as T } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as v, ab as $ } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as v, ab as $ } from "../../assets/modules/upload-template-DsasmjJZ.js";
|
|
6
6
|
import A from "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { A as E } from "../../assets/modules/file-upload-
|
|
10
|
+
import { A as E } from "../../assets/modules/file-upload-CgDrcFNd.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as B } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as B } from "../../assets/modules/uploadList-Cv7NFGLh.js";
|
|
13
13
|
const W = /* @__PURE__ */ F({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
package/lib/locales/default.d.ts
CHANGED
|
@@ -242,6 +242,13 @@ export declare const defaultLocale: {
|
|
|
242
242
|
exportFailed: string;
|
|
243
243
|
fileExportFailed: string;
|
|
244
244
|
};
|
|
245
|
+
form: {
|
|
246
|
+
saveSuccess: string;
|
|
247
|
+
submitValidationFailed: string;
|
|
248
|
+
dataAlreadyExists: string;
|
|
249
|
+
dataDuplicate: string;
|
|
250
|
+
saveFailed: string;
|
|
251
|
+
};
|
|
245
252
|
formValidate: {
|
|
246
253
|
required: string;
|
|
247
254
|
numberType: string;
|
|
@@ -270,24 +277,33 @@ export declare const defaultLocale: {
|
|
|
270
277
|
allUploadFailed: string;
|
|
271
278
|
fileUploadSuccess: string;
|
|
272
279
|
fileUploadFailed: string;
|
|
280
|
+
unauthorized: string;
|
|
281
|
+
invalidJsonFormat: string;
|
|
282
|
+
jsonParseError: string;
|
|
283
|
+
uploadFailed: string;
|
|
284
|
+
networkError: string;
|
|
285
|
+
uploadCancelled: string;
|
|
273
286
|
};
|
|
274
287
|
data: {
|
|
288
|
+
startExecute: string;
|
|
275
289
|
executeSuccess: string;
|
|
276
|
-
|
|
290
|
+
noSaveData: string;
|
|
291
|
+
savingData: string;
|
|
277
292
|
saveSuccess: string;
|
|
278
|
-
|
|
293
|
+
deletingData: string;
|
|
294
|
+
forbidDeleteWithoutCondition: string;
|
|
279
295
|
deleteSuccess: string;
|
|
280
296
|
urlNotSet: string;
|
|
281
297
|
};
|
|
282
298
|
download: {
|
|
283
299
|
downloadFailed: string;
|
|
284
|
-
|
|
300
|
+
fileDownloadFailedRetry: string;
|
|
285
301
|
fileTypeNotSupported: string;
|
|
286
|
-
|
|
302
|
+
previewFailed: string;
|
|
287
303
|
};
|
|
288
304
|
formExcel: {
|
|
289
|
-
|
|
290
|
-
|
|
305
|
+
noWorksheet: string;
|
|
306
|
+
insufficientData: string;
|
|
291
307
|
validationError: string;
|
|
292
308
|
missingDuplicateFields: string;
|
|
293
309
|
fileNotExcel: string;
|
|
@@ -307,9 +323,7 @@ export declare const defaultLocale: {
|
|
|
307
323
|
previewUrlNotConfigured: string;
|
|
308
324
|
fileLoadFailed: string;
|
|
309
325
|
csvProcessingFailed: string;
|
|
310
|
-
previewFile: string;
|
|
311
326
|
previewFileXlsx: string;
|
|
312
|
-
previewFileCsv: string;
|
|
313
327
|
unsupportedRawFormat: string;
|
|
314
328
|
unsupportedFileFormat: string;
|
|
315
329
|
dataEmpty: string;
|
package/lib/webui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-
|
|
2
|
-
import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-
|
|
3
|
-
import { f as Yt, p as Ve } from "./assets/modules/file-upload-
|
|
4
|
-
import { A as Ro, U as Bo } from "./assets/modules/file-upload-
|
|
1
|
+
import { u as Be, i as ve, $ as y, a as Ae, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as ze, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-DsasmjJZ.js";
|
|
2
|
+
import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-DsasmjJZ.js";
|
|
3
|
+
import { f as Yt, p as Ve } from "./assets/modules/file-upload-CgDrcFNd.js";
|
|
4
|
+
import { A as Ro, U as Bo } from "./assets/modules/file-upload-CgDrcFNd.js";
|
|
5
5
|
import { EnvConfig as Ye, isMicroApp as Gt } from "@skyfox2000/microbase";
|
|
6
6
|
import { FrontCache as he, httpPost as Oe, ResStatus as Ke, SERVER_HOST as Wt, fieldMapping as xe } from "@skyfox2000/fapi";
|
|
7
7
|
import ae from "vue-m-message";
|
|
@@ -10,15 +10,15 @@ import "async-validator";
|
|
|
10
10
|
import Ne from "dayjs";
|
|
11
11
|
import { Popover as Jt, theme as ct, Drawer as Xt, Space as pe, Form as ut, message as Zt, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Re, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as vt, Table as mt, Tree as ra, Cascader as oa, DatePicker as sa, Input as me, InputPassword as na, InputNumber as ia, RangePicker as ca, Textarea as ua, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
|
|
12
12
|
import { VueDraggableNext as ha } from "vue-draggable-next";
|
|
13
|
-
import { d as ba } from "./assets/modules/uploadList-
|
|
14
|
-
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-
|
|
15
|
-
import { c as gt } from "./assets/modules/index-
|
|
16
|
-
import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-
|
|
17
|
-
import { _ as ee } from "./assets/modules/index-
|
|
18
|
-
import { _ as Y } from "./assets/modules/toolIcon-
|
|
19
|
-
import { a as rs } from "./assets/modules/toolIcon-
|
|
20
|
-
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-
|
|
21
|
-
import { _ as gs } from "./assets/modules/index-
|
|
13
|
+
import { d as ba } from "./assets/modules/uploadList-Cv7NFGLh.js";
|
|
14
|
+
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-Cv7NFGLh.js";
|
|
15
|
+
import { c as gt } from "./assets/modules/index-CSYtMPul.js";
|
|
16
|
+
import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-CSYtMPul.js";
|
|
17
|
+
import { _ as ee } from "./assets/modules/index-ATFhuPny.js";
|
|
18
|
+
import { _ as Y } from "./assets/modules/toolIcon-BjDYymr7.js";
|
|
19
|
+
import { a as rs } from "./assets/modules/toolIcon-BjDYymr7.js";
|
|
20
|
+
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-Bn4JhD4B.js";
|
|
21
|
+
import { _ as gs } from "./assets/modules/index-CBf1uUD5.js";
|
|
22
22
|
import { _ as ce } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
23
23
|
const We = (r, a, e, t = "remove") => {
|
|
24
24
|
if (!e)
|
package/package.json
CHANGED
package/src/locales/default.ts
CHANGED
|
@@ -253,6 +253,13 @@ export const defaultLocale = {
|
|
|
253
253
|
"exportFailed": "导出失败",
|
|
254
254
|
"fileExportFailed": "文件导出失败,请稍后重试"
|
|
255
255
|
},
|
|
256
|
+
"form": {
|
|
257
|
+
"saveSuccess": "保存成功!",
|
|
258
|
+
"submitValidationFailed": "提交验证失败",
|
|
259
|
+
"dataAlreadyExists": "数据已存在:{0}",
|
|
260
|
+
"dataDuplicate": "数据重复",
|
|
261
|
+
"saveFailed": "保存失败"
|
|
262
|
+
},
|
|
256
263
|
"formValidate": {
|
|
257
264
|
"required": "不能为空",
|
|
258
265
|
"numberType": "必须是数字",
|
|
@@ -280,25 +287,34 @@ export const defaultLocale = {
|
|
|
280
287
|
"partialUploadFailedCancel": "上传结束,部分文件上传失败,取消保存!",
|
|
281
288
|
"allUploadFailed": "上传结束,所有文件上传失败!",
|
|
282
289
|
"fileUploadSuccess": "文件上传成功!",
|
|
283
|
-
"fileUploadFailed": "上传文件失败!"
|
|
290
|
+
"fileUploadFailed": "上传文件失败!",
|
|
291
|
+
"unauthorized": "未授权或授权过期",
|
|
292
|
+
"invalidJsonFormat": "返回的结果不是JSON格式",
|
|
293
|
+
"jsonParseError": "无法解析返回的JSON数据",
|
|
294
|
+
"uploadFailed": "上传失败,状态码:",
|
|
295
|
+
"networkError": "上传失败,网络异常",
|
|
296
|
+
"uploadCancelled": "上传已取消"
|
|
284
297
|
},
|
|
285
298
|
"data": {
|
|
299
|
+
"startExecute": "开始执行...",
|
|
286
300
|
"executeSuccess": "执行成功!",
|
|
287
|
-
"
|
|
301
|
+
"noSaveData": "错误!无保存数据!",
|
|
302
|
+
"savingData": "正在保存数据...",
|
|
288
303
|
"saveSuccess": "保存成功!",
|
|
289
|
-
"
|
|
304
|
+
"deletingData": "正在删除数据...",
|
|
305
|
+
"forbidDeleteWithoutCondition": "错误!禁止无条件删除数据!",
|
|
290
306
|
"deleteSuccess": "删除成功!",
|
|
291
307
|
"urlNotSet": "URL未设置: {urlKey}"
|
|
292
308
|
},
|
|
293
309
|
"download": {
|
|
294
310
|
"downloadFailed": "下载文件失败!",
|
|
295
|
-
"
|
|
311
|
+
"fileDownloadFailedRetry": "文件下载失败,请稍后重试",
|
|
296
312
|
"fileTypeNotSupported": "文件类型不支持预览",
|
|
297
|
-
"
|
|
313
|
+
"previewFailed": "文件预览失败!"
|
|
298
314
|
},
|
|
299
315
|
"formExcel": {
|
|
300
|
-
"
|
|
301
|
-
"
|
|
316
|
+
"noWorksheet": "Excel文件不包含工作表",
|
|
317
|
+
"insufficientData": "Excel文件不包含足够的数据",
|
|
302
318
|
"validationError": "验证表格数据时发生错误",
|
|
303
319
|
"missingDuplicateFields": "表头缺少重复检测所需字段",
|
|
304
320
|
"fileNotExcel": "上传的文件不是Excel文件",
|
|
@@ -318,9 +334,7 @@ export const defaultLocale = {
|
|
|
318
334
|
"previewUrlNotConfigured": "预览URL或Excel控制器未配置",
|
|
319
335
|
"fileLoadFailed": "文件加载失败",
|
|
320
336
|
"csvProcessingFailed": "CSV格式处理失败",
|
|
321
|
-
"previewFile": "预览文件",
|
|
322
337
|
"previewFileXlsx": "预览文件.xlsx",
|
|
323
|
-
"previewFileCsv": "preview.csv",
|
|
324
338
|
"unsupportedRawFormat": "不支持的原始文件格式",
|
|
325
339
|
"unsupportedFileFormat": "不支持的文件格式",
|
|
326
340
|
"dataEmpty": "数据为空",
|
package/src/utils/form.ts
CHANGED