@das-fed/upf-ui 6.4.0-dev.165 → 6.4.0-dev.167
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/index.d.ts +7 -0
- package/index.js +18 -0
- package/package.json +5 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +60 -0
- package/packages/business-components/ai-panel/{index-CViVnNHG.js → index-Bg_src1J.js} +440 -432
- package/packages/business-components/ai-panel/index-Bg_src1J.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-14NcMHNj.js → index-CoN6WqdZ.js} +1 -1
- package/packages/business-components/ai-panel/index-CoN6WqdZ.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/area-phone-select/i18n/index.d.ts +1 -0
- package/packages/business-components/area-phone-select/index.js +17 -17
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +18 -18
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +9 -7
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +244 -0
- package/packages/business-components/device-panel/index.js +3506 -3482
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +83 -81
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +29 -0
- package/packages/business-components/import-button/index.js +237 -233
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +166 -166
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/i18n/index.d.ts +13 -0
- package/packages/business-components/payment/index.js +55 -55
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +30 -0
- package/packages/business-components/process-configuration/index.js +148 -146
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +84 -0
- package/packages/business-components/process-form/index.js +472 -463
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +9 -0
- package/packages/business-components/process-log/index.js +69 -69
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +125 -125
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +99 -99
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +9 -8
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +104 -0
- package/packages/business-components/urgent-panel/index.js +951 -943
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +18 -0
- package/packages/business-components/user-org-dialog/index.js +180 -179
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +175 -175
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +163 -163
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +15 -15
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +10 -10
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +10 -10
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +6 -0
- package/packages/components/date-picker/index.js +127 -127
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +46 -46
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +10 -9
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +12 -12
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +1 -1
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +7 -0
- package/packages/components/image-upload/index.js +47 -43
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +27 -27
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +2 -0
- package/packages/components/input-dialog-select/index.js +23 -23
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +2 -1
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +20 -20
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +6 -0
- package/packages/components/map/index.js +159 -155
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +34 -34
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +7 -7
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +1 -1
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +42 -42
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +20 -20
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +4 -4
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +1596 -1592
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +7 -0
- package/packages/components/search-form/index.js +117 -117
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +4 -0
- package/packages/components/select/index.js +93 -92
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +110 -110
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +60 -60
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +41 -41
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +14 -14
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +20 -0
- package/packages/components/table/index.js +546 -544
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +42 -42
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +15 -15
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +9 -0
- package/packages/components/tree/index.js +310 -309
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/i18n/index.d.ts +8 -0
- package/packages/components/tree-v2/index.js +9 -8
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +6 -0
- package/packages/components/upload/index.js +57 -56
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
- package/packages/components/virtual-tree/index.js +12 -12
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/web-front-end/i18n/dasui_en-US.js +482 -478
- package/web-front-end/i18n/dasui_zh-CN.js +2 -2
- package/web-front-end/i18n/dasui_zh-MO.js +757 -0
- package/packages/business-components/ai-panel/index-14NcMHNj.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CViVnNHG.js.gz +0 -0
|
Binary file
|
|
@@ -2,56 +2,67 @@ declare const _default: {
|
|
|
2
2
|
导出表: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
'zh-MO': string;
|
|
5
6
|
_appCode: string;
|
|
6
7
|
};
|
|
7
8
|
导出失败: {
|
|
8
9
|
'zh-CN': string;
|
|
9
10
|
en: string;
|
|
11
|
+
'zh-MO': string;
|
|
10
12
|
_appCode: string;
|
|
11
13
|
};
|
|
12
14
|
导出成功: {
|
|
13
15
|
'zh-CN': string;
|
|
14
16
|
en: string;
|
|
17
|
+
'zh-MO': string;
|
|
15
18
|
_appCode: string;
|
|
16
19
|
};
|
|
17
20
|
导出进度: {
|
|
18
21
|
'zh-CN': string;
|
|
19
22
|
en: string;
|
|
23
|
+
'zh-MO': string;
|
|
20
24
|
_appCode: string;
|
|
21
25
|
};
|
|
22
26
|
导出: {
|
|
23
27
|
'zh-CN': string;
|
|
24
28
|
en: string;
|
|
29
|
+
'zh-MO': string;
|
|
25
30
|
_appCode: string;
|
|
26
31
|
};
|
|
27
32
|
导入: {
|
|
28
33
|
'zh-CN': string;
|
|
29
34
|
en: string;
|
|
35
|
+
'zh-MO': string;
|
|
30
36
|
_appCode: string;
|
|
31
37
|
};
|
|
32
38
|
'\u90E8\u5206\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u8BF7\u4E0B\u8F7D\u9644\u4EF6\u5E76\u4FEE\u6539\uFF0C\u91CD\u65B0\u5BFC\u5165\uFF01': {
|
|
33
39
|
'zh-CN': string;
|
|
34
40
|
en: string;
|
|
41
|
+
'zh-MO': string;
|
|
35
42
|
_appCode: string;
|
|
36
43
|
};
|
|
37
44
|
'\u6B63\u5728\u5BFC\u51FA\u4E2D...': {
|
|
38
45
|
'zh-CN': string;
|
|
39
46
|
en: string;
|
|
47
|
+
'zh-MO': string;
|
|
40
48
|
_appCode: string;
|
|
41
49
|
};
|
|
42
50
|
'business-components_export-success-tip': {
|
|
43
51
|
'zh-CN': string;
|
|
44
52
|
en: string;
|
|
53
|
+
'zh-MO': string;
|
|
45
54
|
_appCode: string;
|
|
46
55
|
};
|
|
47
56
|
'business-components_export-failure-tip': {
|
|
48
57
|
'zh-CN': string;
|
|
49
58
|
en: string;
|
|
59
|
+
'zh-MO': string;
|
|
50
60
|
_appCode: string;
|
|
51
61
|
};
|
|
52
62
|
'business-components_export-partially-failure-tip': {
|
|
53
63
|
'zh-CN': string;
|
|
54
64
|
en: string;
|
|
65
|
+
'zh-MO': string;
|
|
55
66
|
_appCode: string;
|
|
56
67
|
};
|
|
57
68
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/business-components/export-button/style.css';
|
|
2
2
|
import { withInstall as G } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
-
import { ref as p, defineComponent as J, computed as K, watch as
|
|
4
|
-
import { t as g, currentLang as
|
|
3
|
+
import { ref as p, defineComponent as J, computed as K, watch as V, createElementBlock as Q, openBlock as W, createVNode as M, unref as $, withCtx as I, renderSlot as Z, createTextVNode as ee, toDisplayString as te, isRef as B } from "vue";
|
|
4
|
+
import { t as g, currentLang as T, i18n as w, setI18nRule as se } from "@das-fed/upf-web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as ae } from "@das-fed/upf-ui/packages/components/dialog/index";
|
|
6
6
|
import { DasProgress as oe } from "@das-fed/upf-ui/packages/components/progress/index";
|
|
7
7
|
import { DasButton as re } from "@das-fed/upf-ui/packages/components/button/index";
|
|
8
8
|
import { iotProgress as le } from "@das-fed/upf-utils/api-services/modules/iot";
|
|
9
|
-
import
|
|
10
|
-
import { DasMessage as
|
|
11
|
-
import { getConfig as
|
|
12
|
-
let
|
|
9
|
+
import O from "dayjs";
|
|
10
|
+
import { DasMessage as z } from "@das-fed/upf-ui/packages/components/message/index";
|
|
11
|
+
import { getConfig as L } from "@das-fed/upf-utils/config";
|
|
12
|
+
let Y = (a = 21) => {
|
|
13
13
|
let l = "", e = crypto.getRandomValues(new Uint8Array(a));
|
|
14
14
|
for (; a--; ) {
|
|
15
15
|
let s = e[a] & 63;
|
|
@@ -18,32 +18,32 @@ let F = (a = 21) => {
|
|
|
18
18
|
return l;
|
|
19
19
|
};
|
|
20
20
|
const ne = le.get("progress"), ue = (a) => {
|
|
21
|
-
let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), d,
|
|
22
|
-
const
|
|
23
|
-
n.value = "", c.value = "", f.value = "", v.value = !1,
|
|
24
|
-
},
|
|
25
|
-
o.value = "normal", i.value = 0, s.value =
|
|
21
|
+
let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), d, h = p(""), n = p(""), c = p(""), f = p(""), v = p(!1), k = p(""), x;
|
|
22
|
+
const P = () => {
|
|
23
|
+
n.value = "", c.value = "", f.value = "", v.value = !1, k.value = "";
|
|
24
|
+
}, F = async (t, u = "", y = "") => {
|
|
25
|
+
o.value = "normal", i.value = 0, s.value = y || g("导出进度"), e.value = !0;
|
|
26
26
|
const b = await (t == null ? void 0 : t());
|
|
27
27
|
if (!b.status) {
|
|
28
28
|
e.value = !1, o.value = "error";
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
}, j = async (t, u = "",
|
|
31
|
+
_(b.taskId, "action", "");
|
|
32
|
+
}, j = async (t, u = "", y = "") => {
|
|
33
33
|
o.value = "normal", i.value = 0, s.value = g("导出进度"), e.value = !0;
|
|
34
34
|
const b = await (t == null ? void 0 : t());
|
|
35
35
|
if (!b.status) {
|
|
36
36
|
e.value = !1, o.value = "error";
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
m.value = !0,
|
|
39
|
+
O().format("YYYYMMDDHHmmss") + "", _(b.taskId, "export", u || "", y);
|
|
40
|
+
}, _ = async (t, u, y, b = "") => {
|
|
41
|
+
m.value = !0, D(t, u, y, b), d = setTimeout(() => {
|
|
42
42
|
}, 50);
|
|
43
|
-
},
|
|
43
|
+
}, N = () => {
|
|
44
44
|
clearTimeout(d), d = null, e.value = !1;
|
|
45
|
-
},
|
|
46
|
-
var
|
|
45
|
+
}, D = async (t, u = "export", y, b = "") => {
|
|
46
|
+
var R, S, U;
|
|
47
47
|
const [q, r] = await ne("", {
|
|
48
48
|
url: `progress/${t}`
|
|
49
49
|
}).run();
|
|
@@ -54,36 +54,36 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
54
54
|
i.value = r.percentage;
|
|
55
55
|
const C = u == "export" ? g("导出") : g("导入");
|
|
56
56
|
if (i.value == 100)
|
|
57
|
-
if (
|
|
58
|
-
r.status == 1 ? (o.value = "success",
|
|
59
|
-
message: r.message || `${C}${
|
|
57
|
+
if (h.value = r, m.value = !1, N(), u == "export")
|
|
58
|
+
r.status == 1 ? (o.value = "success", H(`${L().baseURL}/oss${r.filePath}`, y, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${T.value === "zh-CN" ? g("失败") : " " + g("失败")}`, z.error({
|
|
59
|
+
message: r.message || `${C}${T.value === "zh-CN" ? g("失败") : " " + g("失败")}`,
|
|
60
60
|
grouping: !0,
|
|
61
61
|
repeatNum: 1
|
|
62
62
|
}));
|
|
63
63
|
else if (u == "import") {
|
|
64
64
|
if (r.filePath) {
|
|
65
65
|
o.value = "error";
|
|
66
|
-
const A = (
|
|
67
|
-
(
|
|
68
|
-
const X = (
|
|
69
|
-
n.value = `${X}${A}`, c.value =
|
|
66
|
+
const A = (R = x.name) == null ? void 0 : R.substr(x.name.indexOf("."));
|
|
67
|
+
(S = x.name) == null || S.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
|
|
68
|
+
const X = (U = r.filePath) == null ? void 0 : U.replace(/(.*\/)*([^.]+).*/gi, "$2");
|
|
69
|
+
n.value = `${X}${A}`, c.value = x.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), k.value = `${L().baseURL}/oss${r.filePath}`;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
E(r.status, C), r.status == 1 && (l.value = !1), a("success");
|
|
72
72
|
} else u == "action" && (o.value = "success");
|
|
73
73
|
else
|
|
74
74
|
d && r.status != 2 ? d = setTimeout(() => {
|
|
75
|
-
|
|
76
|
-
}, 50) : (
|
|
77
|
-
},
|
|
78
|
-
t == 1 ? (o.value = "success",
|
|
75
|
+
D(t, u, y, b);
|
|
76
|
+
}, 50) : (h.value = r, m.value = !1, E(r.status, C), N(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
|
|
77
|
+
}, E = (t, u) => {
|
|
78
|
+
t == 1 ? (o.value = "success", z.success({
|
|
79
79
|
message: g("business-components_export-success-tip", u),
|
|
80
80
|
grouping: !0,
|
|
81
81
|
repeatNum: 1
|
|
82
|
-
}), n.value = "", c.value = "", f.value = "") : t == 2 ? (o.value = "error",
|
|
82
|
+
}), n.value = "", c.value = "", f.value = "") : t == 2 ? (o.value = "error", z.error({
|
|
83
83
|
message: g("business-components_export-failure-tip", u),
|
|
84
84
|
grouping: !0,
|
|
85
85
|
repeatNum: 1
|
|
86
|
-
})) : t == 3 && (o.value = "error",
|
|
86
|
+
})) : t == 3 && (o.value = "error", z.error({
|
|
87
87
|
message: g("business-components_export-partially-failure-tip", u),
|
|
88
88
|
grouping: !0,
|
|
89
89
|
repeatNum: 1
|
|
@@ -96,23 +96,23 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
96
96
|
percent: i,
|
|
97
97
|
progressStatus: o,
|
|
98
98
|
progressLoading: m,
|
|
99
|
-
progressResult:
|
|
99
|
+
progressResult: h,
|
|
100
100
|
errorFileName: n,
|
|
101
101
|
errorFileSize: c,
|
|
102
102
|
errorMessage: f,
|
|
103
103
|
errorImport: v,
|
|
104
|
-
errorFilePath:
|
|
104
|
+
errorFilePath: k,
|
|
105
105
|
fileExport: j,
|
|
106
|
-
fileAction:
|
|
106
|
+
fileAction: F,
|
|
107
107
|
generateUniqueName: (t) => {
|
|
108
108
|
const u = t == null ? void 0 : t.substr(t.indexOf("."));
|
|
109
|
-
return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${
|
|
109
|
+
return `${t == null ? void 0 : t.replace(/(.*\/)*([^.]+).*/gi, "$2")}${Y()}${u}`;
|
|
110
110
|
},
|
|
111
|
-
downloadFile:
|
|
112
|
-
resetStataus:
|
|
113
|
-
checkProgress:
|
|
111
|
+
downloadFile: H,
|
|
112
|
+
resetStataus: P,
|
|
113
|
+
checkProgress: _
|
|
114
114
|
};
|
|
115
|
-
},
|
|
115
|
+
}, H = (a, l, e = "xlsx") => {
|
|
116
116
|
const s = new XMLHttpRequest();
|
|
117
117
|
s.open("get", a), s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.responseType = "blob", s.onload = function(i) {
|
|
118
118
|
const o = new Blob([this.response], {
|
|
@@ -126,21 +126,21 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
126
126
|
}
|
|
127
127
|
}, s.send();
|
|
128
128
|
}, ie = (a, l) => {
|
|
129
|
-
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: d } = ue(l),
|
|
130
|
-
|
|
129
|
+
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: d } = ue(l), h = p({}), n = p({}), c = (v, k) => {
|
|
130
|
+
h.value = {
|
|
131
131
|
...v
|
|
132
132
|
}, n.value = {
|
|
133
|
-
...
|
|
133
|
+
...k
|
|
134
134
|
};
|
|
135
|
-
let
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
d(f,
|
|
135
|
+
let x = `${O().format("YYYYMMDD")}-${O().format("HHmmss")}.${a.fileType}`;
|
|
136
|
+
T.value === "en" && !/s$/.test(a.exportFileName) && (x = " " + x);
|
|
137
|
+
const P = `${a.exportFileName}${x}`;
|
|
138
|
+
d(f, P, a.fileType);
|
|
139
139
|
}, f = async () => {
|
|
140
|
-
let v =
|
|
141
|
-
a.taskIdPosition === "params" && (
|
|
142
|
-
const [
|
|
143
|
-
return
|
|
140
|
+
let v = Y();
|
|
141
|
+
a.taskIdPosition === "params" && (h.value.taskId = v), a.taskIdPosition === "body" && (n.value.taskId = v);
|
|
142
|
+
const [k, x] = await a.exportFun(n.value, { params: h.value }).run();
|
|
143
|
+
return k ? { status: !1 } : { status: !0, taskId: v };
|
|
144
144
|
};
|
|
145
145
|
return {
|
|
146
146
|
showProgressDialog: e,
|
|
@@ -167,45 +167,45 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
167
167
|
emits: ["update:modelValue", "update:bodyParams", "success"],
|
|
168
168
|
setup(a, { emit: l }) {
|
|
169
169
|
const e = a, s = l;
|
|
170
|
-
K(() => e.exportFileName || g("导出表")),
|
|
170
|
+
K(() => e.exportFileName || g("导出表")), V(e.modelValue, (n) => {
|
|
171
171
|
s("update:modelValue", n);
|
|
172
|
-
}),
|
|
172
|
+
}), V(e.bodyParams, (n) => {
|
|
173
173
|
s("update:bodyParams", n);
|
|
174
174
|
});
|
|
175
|
-
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: d } = ie(e, s),
|
|
175
|
+
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: d } = ie(e, s), h = [w("正在导出中...").value, w("导出失败").value, w("导出成功").value];
|
|
176
176
|
return (n, c) => (W(), Q("div", pe, [
|
|
177
|
-
|
|
177
|
+
M($(re), {
|
|
178
178
|
block: n.block,
|
|
179
179
|
size: "middle",
|
|
180
180
|
disabled: n.disabled,
|
|
181
181
|
"btn-type": e.btnType,
|
|
182
182
|
ghost: n.ghost,
|
|
183
|
-
onClick: c[0] || (c[0] = (f) =>
|
|
183
|
+
onClick: c[0] || (c[0] = (f) => $(d)(e.modelValue, e.bodyParams))
|
|
184
184
|
}, {
|
|
185
|
-
default:
|
|
185
|
+
default: I(() => [
|
|
186
186
|
Z(n.$slots, "default", {}, () => [
|
|
187
|
-
ee(te(
|
|
187
|
+
ee(te($(w)("导出").value), 1)
|
|
188
188
|
], !0)
|
|
189
189
|
]),
|
|
190
190
|
_: 3
|
|
191
191
|
}, 8, ["block", "disabled", "btn-type", "ghost"]),
|
|
192
|
-
|
|
192
|
+
M($(ae), {
|
|
193
193
|
size: "mini",
|
|
194
|
-
title:
|
|
194
|
+
title: $(w)("导出进度").value,
|
|
195
195
|
"is-feedback-img": !1,
|
|
196
|
-
modelValue:
|
|
197
|
-
"onUpdate:modelValue": c[2] || (c[2] = (f) =>
|
|
196
|
+
modelValue: $(i),
|
|
197
|
+
"onUpdate:modelValue": c[2] || (c[2] = (f) => B(i) ? i.value = f : null),
|
|
198
198
|
"append-to-body": !0,
|
|
199
199
|
type: "feedback"
|
|
200
200
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
|
|
203
|
-
modelValue:
|
|
204
|
-
"onUpdate:modelValue": c[1] || (c[1] = (f) =>
|
|
201
|
+
default: I(() => [
|
|
202
|
+
M($(oe), {
|
|
203
|
+
modelValue: $(o),
|
|
204
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => B(o) ? o.value = f : null),
|
|
205
205
|
style: { "margin-top": "35px" },
|
|
206
206
|
type: "circle",
|
|
207
|
-
status:
|
|
208
|
-
textMap:
|
|
207
|
+
status: $(m),
|
|
208
|
+
textMap: h
|
|
209
209
|
}, null, 8, ["modelValue", "status"])
|
|
210
210
|
]),
|
|
211
211
|
_: 1
|
|
@@ -218,29 +218,31 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
218
218
|
e[s] = i;
|
|
219
219
|
return e;
|
|
220
220
|
}, ce = /* @__PURE__ */ de(me, [["__scopeId", "data-v-ea2b6dcb"]]), fe = {
|
|
221
|
-
导出表: { "zh-CN": "导出表", en: "Export Table", _appCode: "framework" },
|
|
222
|
-
导出失败: { "zh-CN": "导出失败", en: "Exported Failed", _appCode: "framework" },
|
|
223
|
-
导出成功: { "zh-CN": "导出成功", en: "Exported Successfully", _appCode: "framework" },
|
|
224
|
-
导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
|
|
225
|
-
导出: { "zh-CN": "导出", en: "Export", _appCode: "framework" },
|
|
226
|
-
导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
|
|
221
|
+
导出表: { "zh-CN": "导出表", en: "Export Table", "zh-MO": "導出表", _appCode: "framework" },
|
|
222
|
+
导出失败: { "zh-CN": "导出失败", en: "Exported Failed", "zh-MO": "導出失敗", _appCode: "framework" },
|
|
223
|
+
导出成功: { "zh-CN": "导出成功", en: "Exported Successfully", "zh-MO": "導出成功", _appCode: "framework" },
|
|
224
|
+
导出进度: { "zh-CN": "导出进度", en: "Export Progress", "zh-MO": "導出進度", _appCode: "framework" },
|
|
225
|
+
导出: { "zh-CN": "导出", en: "Export", "zh-MO": "導出", _appCode: "framework" },
|
|
226
|
+
导入: { "zh-CN": "导入", en: "Import", "zh-MO": "導入", _appCode: "framework" },
|
|
227
227
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
228
228
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
229
229
|
en: "Some data validation errors detected. Please download the attachment, make necessary corrections, and import again!",
|
|
230
|
+
"zh-MO": "部分數據校驗不通過,請下載附件並修改,重新導入!",
|
|
230
231
|
_appCode: "framework"
|
|
231
232
|
},
|
|
232
|
-
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
|
|
233
|
-
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 Successfully", _appCode: "framework" },
|
|
234
|
-
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failed", _appCode: "framework" },
|
|
233
|
+
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", "zh-MO": "正在導出中...", _appCode: "framework" },
|
|
234
|
+
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 Successfully", "zh-MO": "$0成功", _appCode: "framework" },
|
|
235
|
+
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failed", "zh-MO": "$0失敗", _appCode: "framework" },
|
|
235
236
|
"business-components_export-partially-failure-tip": {
|
|
236
237
|
"zh-CN": "部分$0失败",
|
|
237
238
|
en: "Some $0 Failed",
|
|
239
|
+
"zh-MO": "部分$0失敗",
|
|
238
240
|
_appCode: "framework"
|
|
239
241
|
}
|
|
240
242
|
};
|
|
241
243
|
se(fe);
|
|
242
|
-
const
|
|
244
|
+
const Pe = G(ce);
|
|
243
245
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
+
Pe as DasExportButton,
|
|
247
|
+
Pe as default
|
|
246
248
|
};
|
|
Binary file
|
|
@@ -7,146 +7,175 @@ declare const _default: {
|
|
|
7
7
|
'2\u3001\u4EC5\u652F\u6301\u4E0A\u4F20Excel\u6587\u4EF6\uFF0C\u91CD\u590D\u6570\u636E\u4EE5\u6700\u540E\u4E00\u6761\u4E3A\u51C6': {
|
|
8
8
|
'zh-CN': string;
|
|
9
9
|
en: string;
|
|
10
|
+
'zh-MO': string;
|
|
10
11
|
_appCode: string;
|
|
11
12
|
};
|
|
12
13
|
文件: {
|
|
13
14
|
'zh-CN': string;
|
|
14
15
|
en: string;
|
|
16
|
+
'zh-MO': string;
|
|
15
17
|
_appCode: string;
|
|
16
18
|
};
|
|
17
19
|
取消: {
|
|
18
20
|
'zh-CN': string;
|
|
19
21
|
en: string;
|
|
22
|
+
'zh-MO': string;
|
|
20
23
|
_appCode: string;
|
|
21
24
|
};
|
|
22
25
|
正在导入中: {
|
|
23
26
|
'zh-CN': string;
|
|
24
27
|
en: string;
|
|
28
|
+
'zh-MO': string;
|
|
25
29
|
_appCode: string;
|
|
26
30
|
};
|
|
27
31
|
导入成功: {
|
|
28
32
|
'zh-CN': string;
|
|
29
33
|
en: string;
|
|
34
|
+
'zh-MO': string;
|
|
30
35
|
_appCode: string;
|
|
31
36
|
};
|
|
32
37
|
导入失败: {
|
|
33
38
|
'zh-CN': string;
|
|
34
39
|
en: string;
|
|
40
|
+
'zh-MO': string;
|
|
35
41
|
_appCode: string;
|
|
36
42
|
};
|
|
37
43
|
正在导出中: {
|
|
38
44
|
'zh-CN': string;
|
|
39
45
|
en: string;
|
|
46
|
+
'zh-MO': string;
|
|
40
47
|
_appCode: string;
|
|
41
48
|
};
|
|
42
49
|
导出失败: {
|
|
43
50
|
'zh-CN': string;
|
|
44
51
|
en: string;
|
|
52
|
+
'zh-MO': string;
|
|
45
53
|
_appCode: string;
|
|
46
54
|
};
|
|
47
55
|
导出成功: {
|
|
48
56
|
'zh-CN': string;
|
|
49
57
|
en: string;
|
|
58
|
+
'zh-MO': string;
|
|
50
59
|
_appCode: string;
|
|
51
60
|
};
|
|
52
61
|
文件格式错误: {
|
|
53
62
|
'zh-CN': string;
|
|
54
63
|
en: string;
|
|
64
|
+
'zh-MO': string;
|
|
55
65
|
_appCode: string;
|
|
56
66
|
};
|
|
57
67
|
请重新上传: {
|
|
58
68
|
'zh-CN': string;
|
|
59
69
|
en: string;
|
|
70
|
+
'zh-MO': string;
|
|
60
71
|
_appCode: string;
|
|
61
72
|
};
|
|
62
73
|
文件大小不超过: {
|
|
63
74
|
'zh-CN': string;
|
|
64
75
|
en: string;
|
|
76
|
+
'zh-MO': string;
|
|
65
77
|
_appCode: string;
|
|
66
78
|
};
|
|
67
79
|
请上传文件: {
|
|
68
80
|
'zh-CN': string;
|
|
69
81
|
en: string;
|
|
82
|
+
'zh-MO': string;
|
|
70
83
|
_appCode: string;
|
|
71
84
|
};
|
|
72
85
|
导入进度: {
|
|
73
86
|
'zh-CN': string;
|
|
74
87
|
en: string;
|
|
88
|
+
'zh-MO': string;
|
|
75
89
|
_appCode: string;
|
|
76
90
|
};
|
|
77
91
|
导出进度: {
|
|
78
92
|
'zh-CN': string;
|
|
79
93
|
en: string;
|
|
94
|
+
'zh-MO': string;
|
|
80
95
|
_appCode: string;
|
|
81
96
|
};
|
|
82
97
|
导出: {
|
|
83
98
|
'zh-CN': string;
|
|
84
99
|
en: string;
|
|
100
|
+
'zh-MO': string;
|
|
85
101
|
_appCode: string;
|
|
86
102
|
};
|
|
87
103
|
导入: {
|
|
88
104
|
'zh-CN': string;
|
|
89
105
|
en: string;
|
|
106
|
+
'zh-MO': string;
|
|
90
107
|
_appCode: string;
|
|
91
108
|
};
|
|
92
109
|
失败: {
|
|
93
110
|
'zh-CN': string;
|
|
94
111
|
en: string;
|
|
112
|
+
'zh-MO': string;
|
|
95
113
|
_appCode: string;
|
|
96
114
|
};
|
|
97
115
|
成功: {
|
|
98
116
|
'zh-CN': string;
|
|
99
117
|
en: string;
|
|
118
|
+
'zh-MO': string;
|
|
100
119
|
_appCode: string;
|
|
101
120
|
};
|
|
102
121
|
部分: {
|
|
103
122
|
'zh-CN': string;
|
|
104
123
|
en: string;
|
|
124
|
+
'zh-MO': string;
|
|
105
125
|
_appCode: string;
|
|
106
126
|
};
|
|
107
127
|
导入模板: {
|
|
108
128
|
'zh-CN': string;
|
|
109
129
|
en: string;
|
|
130
|
+
'zh-MO': string;
|
|
110
131
|
_appCode: string;
|
|
111
132
|
};
|
|
112
133
|
确定导入: {
|
|
113
134
|
'zh-CN': string;
|
|
114
135
|
en: string;
|
|
136
|
+
'zh-MO': string;
|
|
115
137
|
_appCode: string;
|
|
116
138
|
};
|
|
117
139
|
'\u90E8\u5206\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u8BF7\u4E0B\u8F7D\u9644\u4EF6\u5E76\u4FEE\u6539\uFF0C\u91CD\u65B0\u5BFC\u5165\uFF01': {
|
|
118
140
|
'zh-CN': string;
|
|
119
141
|
en: string;
|
|
142
|
+
'zh-MO': string;
|
|
120
143
|
_appCode: string;
|
|
121
144
|
};
|
|
122
145
|
'\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\uFF01': {
|
|
123
146
|
'zh-CN': string;
|
|
124
147
|
en: string;
|
|
148
|
+
'zh-MO': string;
|
|
125
149
|
_appCode: string;
|
|
126
150
|
};
|
|
127
151
|
'\u6B63\u5728\u5BFC\u5165\u4E2D...': {
|
|
128
152
|
'zh-CN': string;
|
|
129
153
|
en: string;
|
|
154
|
+
'zh-MO': string;
|
|
130
155
|
_appCode: string;
|
|
131
156
|
};
|
|
132
157
|
'\u6B63\u5728\u5BFC\u51FA\u4E2D...': {
|
|
133
158
|
'zh-CN': string;
|
|
134
159
|
en: string;
|
|
160
|
+
'zh-MO': string;
|
|
135
161
|
_appCode: string;
|
|
136
162
|
};
|
|
137
163
|
'business-components_export-success-tip': {
|
|
138
164
|
'zh-CN': string;
|
|
139
165
|
en: string;
|
|
166
|
+
'zh-MO': string;
|
|
140
167
|
_appCode: string;
|
|
141
168
|
};
|
|
142
169
|
'business-components_export-failure-tip': {
|
|
143
170
|
'zh-CN': string;
|
|
144
171
|
en: string;
|
|
172
|
+
'zh-MO': string;
|
|
145
173
|
_appCode: string;
|
|
146
174
|
};
|
|
147
175
|
'business-components_export-partially-failure-tip': {
|
|
148
176
|
'zh-CN': string;
|
|
149
177
|
en: string;
|
|
178
|
+
'zh-MO': string;
|
|
150
179
|
_appCode: string;
|
|
151
180
|
};
|
|
152
181
|
};
|