@das-fed/ui 6.4.0-dev.55.4 → 6.4.0-dev.55.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/package.json +5 -5
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +44 -44
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +119 -114
- package/packages/business-components/change-pwd/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 +12 -4
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +235 -0
- package/packages/business-components/device-panel/index.js +4979 -4945
- 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 +76 -71
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +26 -0
- package/packages/business-components/import-button/index.js +297 -288
- 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 +433 -433
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +31 -0
- package/packages/business-components/process-configuration/index.js +201 -198
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +80 -0
- package/packages/business-components/process-form/index.js +820 -801
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +10 -0
- package/packages/business-components/process-log/index.js +245 -245
- 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 +126 -126
- 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 +128 -128
- 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 +25 -24
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +90 -0
- package/packages/business-components/urgent-panel/index.js +1249 -1235
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +15 -0
- package/packages/business-components/user-org-dialog/index.js +223 -219
- 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 +233 -233
- 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 +283 -283
- 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 +21 -21
- 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 +35 -35
- 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 +17 -17
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +3 -0
- package/packages/components/date-picker/index.js +94 -94
- 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 +58 -58
- 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 +287 -283
- 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 +14 -14
- 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 +11 -11
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +6 -0
- package/packages/components/image-upload/index.js +67 -58
- 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 +36 -36
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +3 -2
- 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 +53 -53
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +4 -0
- package/packages/components/map/index.js +73 -68
- 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 +1 -1
- 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 +1 -1
- 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 +44 -44
- 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 +7 -7
- 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 +6 -6
- 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 +11 -4
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +6 -0
- package/packages/components/search-form/index.js +113 -113
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +5 -0
- package/packages/components/select/index.js +183 -183
- 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 +73 -73
- 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 +72 -72
- 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 +99 -99
- 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 +27 -27
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +41 -4
- package/packages/components/table/index.js +1782 -1779
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +46 -46
- 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 +14 -14
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +7 -0
- package/packages/components/tree/index.js +8 -7
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.js +54 -54
- 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 +11 -11
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
Binary file
|
|
@@ -2,46 +2,57 @@ declare const _default: {
|
|
|
2
2
|
导出表: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
_appCode: string;
|
|
5
6
|
};
|
|
6
7
|
导出失败: {
|
|
7
8
|
'zh-CN': string;
|
|
8
9
|
en: string;
|
|
10
|
+
_appCode: string;
|
|
9
11
|
};
|
|
10
12
|
导出成功: {
|
|
11
13
|
'zh-CN': string;
|
|
12
14
|
en: string;
|
|
15
|
+
_appCode: string;
|
|
13
16
|
};
|
|
14
17
|
导出进度: {
|
|
15
18
|
'zh-CN': string;
|
|
16
19
|
en: string;
|
|
20
|
+
_appCode: string;
|
|
17
21
|
};
|
|
18
22
|
导出: {
|
|
19
23
|
'zh-CN': string;
|
|
20
24
|
en: string;
|
|
25
|
+
_appCode: string;
|
|
21
26
|
};
|
|
22
27
|
导入: {
|
|
23
28
|
'zh-CN': string;
|
|
24
29
|
en: string;
|
|
30
|
+
_appCode: string;
|
|
25
31
|
};
|
|
26
32
|
'\u90E8\u5206\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u8BF7\u4E0B\u8F7D\u9644\u4EF6\u5E76\u4FEE\u6539\uFF0C\u91CD\u65B0\u5BFC\u5165\uFF01': {
|
|
27
33
|
'zh-CN': string;
|
|
28
34
|
en: string;
|
|
35
|
+
_appCode: string;
|
|
29
36
|
};
|
|
30
37
|
'\u6B63\u5728\u5BFC\u51FA\u4E2D...': {
|
|
31
38
|
'zh-CN': string;
|
|
32
39
|
en: string;
|
|
40
|
+
_appCode: string;
|
|
33
41
|
};
|
|
34
42
|
'business-components_export-success-tip': {
|
|
35
43
|
'zh-CN': string;
|
|
36
44
|
en: string;
|
|
45
|
+
_appCode: string;
|
|
37
46
|
};
|
|
38
47
|
'business-components_export-failure-tip': {
|
|
39
48
|
'zh-CN': string;
|
|
40
49
|
en: string;
|
|
50
|
+
_appCode: string;
|
|
41
51
|
};
|
|
42
52
|
'business-components_export-partially-failure-tip': {
|
|
43
53
|
'zh-CN': string;
|
|
44
54
|
en: string;
|
|
55
|
+
_appCode: string;
|
|
45
56
|
};
|
|
46
57
|
};
|
|
47
58
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/export-button/style.css';
|
|
2
2
|
import { withInstall as X } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as p, defineComponent as G, computed as J, watch as
|
|
4
|
-
import { t as g, i18n as
|
|
3
|
+
import { ref as p, defineComponent as G, computed as J, watch as E, openBlock as K, createElementBlock as Q, createVNode as T, unref as h, withCtx as B, renderSlot as W, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te, isRef as S } from "vue";
|
|
4
|
+
import { t as g, i18n as C, setI18nRule as se } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as ae } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
6
|
import { DasProgress as oe } from "@das-fed/ui/packages/components/progress/index";
|
|
7
7
|
import { DasButton as re } from "@das-fed/ui/packages/components/button/index";
|
|
8
8
|
import { iotProgress as le } from "@das-fed/utils/api-services/modules/iot";
|
|
9
|
-
import
|
|
10
|
-
import { DasMessage as
|
|
9
|
+
import D from "dayjs";
|
|
10
|
+
import { DasMessage as P } from "@das-fed/ui/packages/components/message/index";
|
|
11
11
|
import { getConfig as L } from "@das-fed/utils/config";
|
|
12
12
|
let H = (a = 21) => {
|
|
13
13
|
let l = "", e = crypto.getRandomValues(new Uint8Array(a));
|
|
@@ -18,9 +18,9 @@ let H = (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"),
|
|
21
|
+
let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), c, x = p(""), n = p(""), d = p(""), f = p(""), v = p(!1), k = p(""), w;
|
|
22
22
|
const Y = () => {
|
|
23
|
-
n.value = "", d.value = "", f.value = "", v.value = !1,
|
|
23
|
+
n.value = "", d.value = "", f.value = "", v.value = !1, k.value = "";
|
|
24
24
|
}, F = async (t, u = "", y = "") => {
|
|
25
25
|
o.value = "normal", i.value = 0, s.value = y || g("导出进度"), e.value = !0;
|
|
26
26
|
const b = await (t == null ? void 0 : t());
|
|
@@ -28,7 +28,7 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
28
28
|
e.value = !1, o.value = "error";
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
_(b.taskId, "action", "");
|
|
32
32
|
}, O = 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());
|
|
@@ -36,54 +36,54 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
36
36
|
e.value = !1, o.value = "error";
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
39
|
+
D().format("YYYYMMDDHHmmss") + "", _(b.taskId, "export", u || "", y);
|
|
40
|
+
}, _ = async (t, u, y, b = "") => {
|
|
41
|
+
m.value = !0, z(t, u, y, b), c = setTimeout(() => {
|
|
42
42
|
}, 50);
|
|
43
|
-
},
|
|
44
|
-
clearTimeout(
|
|
45
|
-
},
|
|
46
|
-
var N, U
|
|
43
|
+
}, V = () => {
|
|
44
|
+
clearTimeout(c), c = null, e.value = !1;
|
|
45
|
+
}, z = async (t, u = "export", y, b = "") => {
|
|
46
|
+
var I, N, U;
|
|
47
47
|
const [j, r] = await ne("", {
|
|
48
48
|
url: `progress/${t}`
|
|
49
49
|
}).run();
|
|
50
50
|
if (j) {
|
|
51
|
-
|
|
51
|
+
m.value = !1;
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
i.value = r.percentage;
|
|
55
|
-
const
|
|
55
|
+
const $ = u == "export" ? g("导出") : g("导入");
|
|
56
56
|
if (i.value == 100)
|
|
57
|
-
if (x.value = r,
|
|
58
|
-
r.status == 1 ? (o.value = "success", M(`${L().baseURL}/oss${r.filePath}`, y, b),
|
|
59
|
-
message: r.message || `${
|
|
57
|
+
if (x.value = r, m.value = !1, V(), u == "export")
|
|
58
|
+
r.status == 1 ? (o.value = "success", M(`${L().baseURL}/oss${r.filePath}`, y, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${$}${g("失败")}`, P.error({
|
|
59
|
+
message: r.message || `${$}${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 q = (
|
|
67
|
-
(
|
|
68
|
-
const A = (
|
|
69
|
-
n.value = `${A}${q}`, d.value =
|
|
66
|
+
const q = (I = w.name) == null ? void 0 : I.substr(w.name.indexOf("."));
|
|
67
|
+
(N = w.name) == null || N.replace(/(.*\/)*([^.]+).*/gi, "$2"), v.value = !0;
|
|
68
|
+
const A = (U = r.filePath) == null ? void 0 : U.replace(/(.*\/)*([^.]+).*/gi, "$2");
|
|
69
|
+
n.value = `${A}${q}`, d.value = w.sizeText, f.value = g("部分数据校验不通过,请下载附件并修改,重新导入!"), k.value = `${L().baseURL}/oss${r.filePath}`;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
R(r.status, $), r.status == 1 && (l.value = !1), a("success");
|
|
72
72
|
} else u == "action" && (o.value = "success");
|
|
73
73
|
else
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}, 50) : (x.value = r,
|
|
77
|
-
},
|
|
78
|
-
t == 1 ? (o.value = "success",
|
|
74
|
+
c && r.status != 2 ? c = setTimeout(() => {
|
|
75
|
+
z(t, u, y, b);
|
|
76
|
+
}, 50) : (x.value = r, m.value = !1, R(r.status, $), V(), v.value = !0, f.value = (r == null ? void 0 : r.message) || "");
|
|
77
|
+
}, R = (t, u) => {
|
|
78
|
+
t == 1 ? (o.value = "success", P.success({
|
|
79
79
|
message: g("business-components_export-success-tip", u),
|
|
80
80
|
grouping: !0,
|
|
81
81
|
repeatNum: 1
|
|
82
|
-
}), n.value = "", d.value = "", f.value = "") : t == 2 ? (o.value = "error",
|
|
82
|
+
}), n.value = "", d.value = "", f.value = "") : t == 2 ? (o.value = "error", P.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", P.error({
|
|
87
87
|
message: g("business-components_export-partially-failure-tip", u),
|
|
88
88
|
grouping: !0,
|
|
89
89
|
repeatNum: 1
|
|
@@ -95,13 +95,13 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
95
95
|
progressTitle: s,
|
|
96
96
|
percent: i,
|
|
97
97
|
progressStatus: o,
|
|
98
|
-
progressLoading:
|
|
98
|
+
progressLoading: m,
|
|
99
99
|
progressResult: x,
|
|
100
100
|
errorFileName: n,
|
|
101
101
|
errorFileSize: d,
|
|
102
102
|
errorMessage: f,
|
|
103
103
|
errorImport: v,
|
|
104
|
-
errorFilePath:
|
|
104
|
+
errorFilePath: k,
|
|
105
105
|
fileExport: O,
|
|
106
106
|
fileAction: F,
|
|
107
107
|
generateUniqueName: (t) => {
|
|
@@ -110,45 +110,45 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
110
110
|
},
|
|
111
111
|
downloadFile: M,
|
|
112
112
|
resetStataus: Y,
|
|
113
|
-
checkProgress:
|
|
113
|
+
checkProgress: _
|
|
114
114
|
};
|
|
115
115
|
}, M = (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], {
|
|
119
119
|
type: e === "zip" ? "application/zip" : e === "xlsx" ? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : "application/pdf"
|
|
120
|
-
}),
|
|
120
|
+
}), m = URL.createObjectURL(o);
|
|
121
121
|
if (window.navigator.msSaveOrOpenBlob)
|
|
122
122
|
navigator.msSaveBlob(o, l);
|
|
123
123
|
else {
|
|
124
|
-
const
|
|
125
|
-
|
|
124
|
+
const c = document.createElement("a");
|
|
125
|
+
c.href = m, c.download = l, c.click(), window.URL.revokeObjectURL(m);
|
|
126
126
|
}
|
|
127
127
|
}, s.send();
|
|
128
128
|
}, ie = (a, l) => {
|
|
129
|
-
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading:
|
|
129
|
+
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: c } = ue(l), x = p({}), n = p({}), d = (v, k) => {
|
|
130
130
|
x.value = {
|
|
131
131
|
...v
|
|
132
132
|
}, n.value = {
|
|
133
|
-
|
|
133
|
+
...k
|
|
134
134
|
};
|
|
135
|
-
const
|
|
136
|
-
|
|
135
|
+
const w = `${a.exportFileName}${D().format("YYYYMMDD")}-${D().format("HHmmss")}.${a.fileType}`;
|
|
136
|
+
c(f, w, a.fileType);
|
|
137
137
|
}, f = async () => {
|
|
138
138
|
let v = H();
|
|
139
139
|
a.taskIdPosition === "params" && (x.value.taskId = v), a.taskIdPosition === "body" && (n.value.taskId = v);
|
|
140
|
-
const [
|
|
141
|
-
return
|
|
140
|
+
const [k, w] = await a.exportFun(n.value, { params: x.value }).run();
|
|
141
|
+
return k ? { status: !1 } : { status: !0, taskId: v };
|
|
142
142
|
};
|
|
143
143
|
return {
|
|
144
144
|
showProgressDialog: e,
|
|
145
145
|
progressTitle: s,
|
|
146
146
|
percent: i,
|
|
147
147
|
progressStatus: o,
|
|
148
|
-
progressLoading:
|
|
148
|
+
progressLoading: m,
|
|
149
149
|
exportList: d
|
|
150
150
|
};
|
|
151
|
-
}, pe = { class: "das-export-button" },
|
|
151
|
+
}, pe = { class: "das-export-button" }, me = /* @__PURE__ */ G({
|
|
152
152
|
__name: "App",
|
|
153
153
|
props: {
|
|
154
154
|
modelValue: {},
|
|
@@ -165,25 +165,25 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
165
165
|
emits: ["update:modelValue", "update:bodyParams", "success"],
|
|
166
166
|
setup(a, { emit: l }) {
|
|
167
167
|
const e = a, s = l;
|
|
168
|
-
J(() => e.exportFileName || g("导出表")),
|
|
168
|
+
J(() => e.exportFileName || g("导出表")), E(e.modelValue, (n) => {
|
|
169
169
|
s("update:modelValue", n);
|
|
170
|
-
}),
|
|
170
|
+
}), E(e.bodyParams, (n) => {
|
|
171
171
|
s("update:bodyParams", n);
|
|
172
172
|
});
|
|
173
|
-
const { showProgressDialog: i, percent: o, progressStatus:
|
|
173
|
+
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = ie(e, s), x = [C("正在导出中...").value, C("导出失败").value, C("导出成功").value];
|
|
174
174
|
return (n, d) => (K(), Q("div", pe, [
|
|
175
|
-
|
|
175
|
+
T(h(re), {
|
|
176
176
|
block: n.block,
|
|
177
177
|
size: "middle",
|
|
178
178
|
disabled: n.disabled,
|
|
179
179
|
"btn-type": e.btnType,
|
|
180
180
|
ghost: n.ghost,
|
|
181
|
-
onClick: d[0] || (d[0] = (f) => h(
|
|
181
|
+
onClick: d[0] || (d[0] = (f) => h(c)(e.modelValue, e.bodyParams))
|
|
182
182
|
}, {
|
|
183
183
|
default: B(() => [
|
|
184
184
|
W(n.$slots, "default", {}, () => [
|
|
185
185
|
Z(
|
|
186
|
-
ee(h(
|
|
186
|
+
ee(h(C)("导出").value),
|
|
187
187
|
1
|
|
188
188
|
/* TEXT */
|
|
189
189
|
)
|
|
@@ -193,9 +193,9 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
193
193
|
/* FORWARDED */
|
|
194
194
|
}, 8, ["block", "disabled", "btn-type", "ghost"]),
|
|
195
195
|
te(" 进度弹窗 "),
|
|
196
|
-
|
|
196
|
+
T(h(ae), {
|
|
197
197
|
size: "mini",
|
|
198
|
-
title: h(
|
|
198
|
+
title: h(C)("导出进度").value,
|
|
199
199
|
"is-feedback-img": !1,
|
|
200
200
|
modelValue: h(i),
|
|
201
201
|
"onUpdate:modelValue": d[2] || (d[2] = (f) => S(i) ? i.value = f : null),
|
|
@@ -203,12 +203,12 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
203
203
|
type: "feedback"
|
|
204
204
|
}, {
|
|
205
205
|
default: B(() => [
|
|
206
|
-
|
|
206
|
+
T(h(oe), {
|
|
207
207
|
modelValue: h(o),
|
|
208
208
|
"onUpdate:modelValue": d[1] || (d[1] = (f) => S(o) ? o.value = f : null),
|
|
209
209
|
style: { "margin-top": "35px" },
|
|
210
210
|
type: "circle",
|
|
211
|
-
status: h(
|
|
211
|
+
status: h(m),
|
|
212
212
|
textMap: x
|
|
213
213
|
}, null, 8, ["modelValue", "status"])
|
|
214
214
|
]),
|
|
@@ -217,30 +217,35 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
217
217
|
}, 8, ["title", "modelValue"])
|
|
218
218
|
]));
|
|
219
219
|
}
|
|
220
|
-
}),
|
|
220
|
+
}), ce = (a, l) => {
|
|
221
221
|
const e = a.__vccOpts || a;
|
|
222
222
|
for (const [s, i] of l)
|
|
223
223
|
e[s] = i;
|
|
224
224
|
return e;
|
|
225
|
-
}, de = /* @__PURE__ */ me
|
|
226
|
-
导出表: { "zh-CN": "导出表", en: "Export Table" },
|
|
227
|
-
导出失败: { "zh-CN": "导出失败", en: "Export Failed" },
|
|
228
|
-
导出成功: { "zh-CN": "导出成功", en: "Export Successful" },
|
|
229
|
-
导出进度: { "zh-CN": "导出进度", en: "Export Progress" },
|
|
230
|
-
导出: { "zh-CN": "导出", en: "Export" },
|
|
231
|
-
导入: { "zh-CN": "导入", en: "Import" },
|
|
225
|
+
}, de = /* @__PURE__ */ ce(me, [["__scopeId", "data-v-49f0bb05"]]), fe = {
|
|
226
|
+
导出表: { "zh-CN": "导出表", en: "Export Table", _appCode: "framework" },
|
|
227
|
+
导出失败: { "zh-CN": "导出失败", en: "Export Failed", _appCode: "framework" },
|
|
228
|
+
导出成功: { "zh-CN": "导出成功", en: "Export Successful", _appCode: "framework" },
|
|
229
|
+
导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
|
|
230
|
+
导出: { "zh-CN": "导出", en: "Export", _appCode: "framework" },
|
|
231
|
+
导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
|
|
232
232
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
233
233
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
234
|
-
en: "Some Data Failed Validation, Please Download the Attachment, Make Corrections, and Re-Import!"
|
|
234
|
+
en: "Some Data Failed Validation, Please Download the Attachment, Make Corrections, and Re-Import!",
|
|
235
|
+
_appCode: "framework"
|
|
235
236
|
},
|
|
236
|
-
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting..." },
|
|
237
|
-
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 Success" },
|
|
238
|
-
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failure" },
|
|
239
|
-
"business-components_export-partially-failure-tip": {
|
|
237
|
+
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
|
|
238
|
+
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 Success", _appCode: "framework" },
|
|
239
|
+
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failure", _appCode: "framework" },
|
|
240
|
+
"business-components_export-partially-failure-tip": {
|
|
241
|
+
"zh-CN": "部分$0失败",
|
|
242
|
+
en: "Partially $0 Failure",
|
|
243
|
+
_appCode: "framework"
|
|
244
|
+
}
|
|
240
245
|
};
|
|
241
246
|
se(fe);
|
|
242
|
-
const
|
|
247
|
+
const _e = X(de);
|
|
243
248
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
249
|
+
_e as DasExportButton,
|
|
250
|
+
_e as default
|
|
246
251
|
};
|
|
Binary file
|
|
@@ -2,106 +2,132 @@ declare const _default: {
|
|
|
2
2
|
点击下载: {
|
|
3
3
|
'zh-CN': string;
|
|
4
4
|
en: string;
|
|
5
|
+
_appCode: string;
|
|
5
6
|
};
|
|
6
7
|
仅支持上传: {
|
|
7
8
|
'zh-CN': string;
|
|
8
9
|
en: string;
|
|
10
|
+
_appCode: string;
|
|
9
11
|
};
|
|
10
12
|
文件: {
|
|
11
13
|
'zh-CN': string;
|
|
12
14
|
en: string;
|
|
15
|
+
_appCode: string;
|
|
13
16
|
};
|
|
14
17
|
重复数据以最后一条为准: {
|
|
15
18
|
'zh-CN': string;
|
|
16
19
|
en: string;
|
|
20
|
+
_appCode: string;
|
|
17
21
|
};
|
|
18
22
|
取消: {
|
|
19
23
|
'zh-CN': string;
|
|
20
24
|
en: string;
|
|
25
|
+
_appCode: string;
|
|
21
26
|
};
|
|
22
27
|
正在导入中: {
|
|
23
28
|
'zh-CN': string;
|
|
24
29
|
en: string;
|
|
30
|
+
_appCode: string;
|
|
25
31
|
};
|
|
26
32
|
导入失败: {
|
|
27
33
|
'zh-CN': string;
|
|
28
34
|
en: string;
|
|
35
|
+
_appCode: string;
|
|
29
36
|
};
|
|
30
37
|
正在导出中: {
|
|
31
38
|
'zh-CN': string;
|
|
32
39
|
en: string;
|
|
40
|
+
_appCode: string;
|
|
33
41
|
};
|
|
34
42
|
导出失败: {
|
|
35
43
|
'zh-CN': string;
|
|
36
44
|
en: string;
|
|
45
|
+
_appCode: string;
|
|
37
46
|
};
|
|
38
47
|
导出成功: {
|
|
39
48
|
'zh-CN': string;
|
|
40
49
|
en: string;
|
|
50
|
+
_appCode: string;
|
|
41
51
|
};
|
|
42
52
|
文件格式错误: {
|
|
43
53
|
'zh-CN': string;
|
|
44
54
|
en: string;
|
|
55
|
+
_appCode: string;
|
|
45
56
|
};
|
|
46
57
|
请重新上传: {
|
|
47
58
|
'zh-CN': string;
|
|
48
59
|
en: string;
|
|
60
|
+
_appCode: string;
|
|
49
61
|
};
|
|
50
62
|
文件大小不超过: {
|
|
51
63
|
'zh-CN': string;
|
|
52
64
|
en: string;
|
|
65
|
+
_appCode: string;
|
|
53
66
|
};
|
|
54
67
|
请上传文件: {
|
|
55
68
|
'zh-CN': string;
|
|
56
69
|
en: string;
|
|
70
|
+
_appCode: string;
|
|
57
71
|
};
|
|
58
72
|
导入进度: {
|
|
59
73
|
'zh-CN': string;
|
|
60
74
|
en: string;
|
|
75
|
+
_appCode: string;
|
|
61
76
|
};
|
|
62
77
|
导入成功: {
|
|
63
78
|
'zh-CN': string;
|
|
64
79
|
en: string;
|
|
80
|
+
_appCode: string;
|
|
65
81
|
};
|
|
66
82
|
导出进度: {
|
|
67
83
|
'zh-CN': string;
|
|
68
84
|
en: string;
|
|
85
|
+
_appCode: string;
|
|
69
86
|
};
|
|
70
87
|
导出: {
|
|
71
88
|
'zh-CN': string;
|
|
72
89
|
en: string;
|
|
90
|
+
_appCode: string;
|
|
73
91
|
};
|
|
74
92
|
导入: {
|
|
75
93
|
'zh-CN': string;
|
|
76
94
|
en: string;
|
|
95
|
+
_appCode: string;
|
|
77
96
|
};
|
|
78
97
|
失败: {
|
|
79
98
|
'zh-CN': string;
|
|
80
99
|
en: string;
|
|
100
|
+
_appCode: string;
|
|
81
101
|
};
|
|
82
102
|
成功: {
|
|
83
103
|
'zh-CN': string;
|
|
84
104
|
en: string;
|
|
105
|
+
_appCode: string;
|
|
85
106
|
};
|
|
86
107
|
部分: {
|
|
87
108
|
'zh-CN': string;
|
|
88
109
|
en: string;
|
|
110
|
+
_appCode: string;
|
|
89
111
|
};
|
|
90
112
|
'\u90E8\u5206\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u8BF7\u4E0B\u8F7D\u9644\u4EF6\u5E76\u4FEE\u6539\uFF0C\u91CD\u65B0\u5BFC\u5165\uFF01': {
|
|
91
113
|
'zh-CN': string;
|
|
92
114
|
en: string;
|
|
115
|
+
_appCode: string;
|
|
93
116
|
};
|
|
94
117
|
'\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\uFF01': {
|
|
95
118
|
'zh-CN': string;
|
|
96
119
|
en: string;
|
|
120
|
+
_appCode: string;
|
|
97
121
|
};
|
|
98
122
|
'\u6B63\u5728\u5BFC\u5165\u4E2D...': {
|
|
99
123
|
'zh-CN': string;
|
|
100
124
|
en: string;
|
|
125
|
+
_appCode: string;
|
|
101
126
|
};
|
|
102
127
|
'\u6B63\u5728\u5BFC\u51FA\u4E2D...': {
|
|
103
128
|
'zh-CN': string;
|
|
104
129
|
en: string;
|
|
130
|
+
_appCode: string;
|
|
105
131
|
};
|
|
106
132
|
};
|
|
107
133
|
export default _default;
|