@das-fed/ui 6.4.0-test.6.1 → 6.4.0-test.7.1
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/esm-map.json +8 -1
- package/package.json +6 -5
- package/packages/business-components/app-container/index.js +96 -73
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +0 -5
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +0 -1
- package/packages/business-components/device-panel/index.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/preview/index.vue.d.ts +2 -2
- package/packages/business-components/export-button/hooks/useExport.d.ts +5 -6
- package/packages/business-components/export-button/index.js +89 -87
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/hooks/file.d.ts +1 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +13 -13
- package/packages/business-components/import-button/index.js +284 -275
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/type.d.ts +2 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/model-table-dialog/index.d.ts +65 -65
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +12 -12
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +2 -2
- package/packages/business-components/payment/api.d.ts +8 -0
- package/packages/business-components/payment/i18n/index.d.ts +68 -0
- package/packages/business-components/payment/index.d.ts +52 -0
- package/packages/business-components/payment/index.js +1818 -0
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/src/Index.vue.d.ts +7 -0
- package/packages/business-components/payment/style.css +1 -0
- package/packages/business-components/payment/type.d.ts +41 -0
- package/packages/business-components/process-form/i18n/index.d.ts +10 -0
- package/packages/business-components/process-form/index.js +149 -145
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/index.js +289 -289
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-table/index.d.ts +2 -0
- package/packages/business-components/process-table/index.js +2 -1
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/process-table/src/App.vue.d.ts +3 -3
- package/packages/business-components/process-table/src/type.d.ts +2 -0
- package/packages/components/autocomplete/index.d.ts +9 -9
- package/packages/components/autocomplete/index.js +1 -1
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +1 -1
- package/packages/components/autocomplete/src/type.d.ts +5 -0
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/calendar/index.d.ts +5 -5
- package/packages/components/calendar/src/Index.vue.d.ts +2 -2
- package/packages/components/calendar/src/old-Index.vue.d.ts +2 -2
- package/packages/components/cascader/index.d.ts +9 -9
- package/packages/components/cascader/src/Index.vue.d.ts +1 -1
- package/packages/components/color-picker/index.js +4 -4
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/src/type.d.ts +6 -3
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.d.ts +30 -25
- package/packages/components/date-picker/index.js +543 -525
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +4 -2
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +2 -2
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dimple-layout/style.css +1 -1
- package/packages/components/dimple-layout/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +27 -7
- package/packages/components/edit-table/index.js +1637 -1499
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/components/index.d.ts +1 -0
- package/packages/components/edit-table/src/components/row-button/index.vue.d.ts +5 -0
- package/packages/components/edit-table/src/components/row-button/type.d.ts +13 -0
- package/packages/components/edit-table/src/index.vue.d.ts +8 -4
- package/packages/components/edit-table/src/type.d.ts +15 -3
- package/packages/components/edit-table/src/utils.d.ts +1 -1
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/empty/index.d.ts +3 -3
- package/packages/components/empty/src/Index.vue.d.ts +1 -1
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/map/index.js +82 -85
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/style.css +1 -1
- package/packages/components/menu-aside/index.js +154 -153
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/index.js +24 -23
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/pagination/index.d.ts +23 -23
- package/packages/components/pagination/index.js +101 -98
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/src/Pagination.vue.d.ts +3 -3
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popup-mask/index.d.ts +9 -9
- package/packages/components/popup-mask/src/Index.vue.d.ts +1 -1
- package/packages/components/preview/index.d.ts +3 -3
- package/packages/components/preview/src/Index.vue.d.ts +1 -1
- package/packages/components/search-form/index.js +241 -240
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +3 -1
- package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +17 -17
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.d.ts +2 -2
- package/packages/components/select-input/src/Index.vue.d.ts +2 -2
- package/packages/components/select-list/index.js +176 -174
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/select-list/theme/index.d.ts +2 -0
- package/packages/components/table/index.d.ts +18 -18
- package/packages/components/table/index.js +82 -81
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +1 -1
- package/packages/components/table/src/hooks/use-operation.d.ts +1 -1
- package/packages/components/table/src/table-column/index.vue.d.ts +1 -1
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/index.js +61 -60
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +702 -695
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +43 -42
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/index.js +290 -294
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +6 -3
- package/packages/components/tree-select/index.js +50 -49
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-v2/i18n/index.d.ts +31 -0
- package/packages/components/tree-v2/index.d.ts +585 -0
- package/packages/components/tree-v2/index.js +3371 -0
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +99 -0
- package/packages/components/tree-v2/src/empty.vue.d.ts +19 -0
- package/packages/components/tree-v2/src/expand-icon.vue.d.ts +2 -0
- package/packages/components/tree-v2/src/hooks/use-lazy-tree.d.ts +15 -0
- package/packages/components/tree-v2/src/hooks/use-style.d.ts +5 -0
- package/packages/components/tree-v2/src/hooks/use-tree.d.ts +43 -0
- package/packages/components/tree-v2/src/type.d.ts +283 -0
- package/packages/components/tree-v2/src/utils.d.ts +18 -0
- package/packages/components/tree-v2/style.css +1 -0
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/tree-v2/theme/base.d.ts +16 -0
- package/packages/icons/index.d.ts +1 -0
- package/packages/icons/index.js +1 -0
- package/packages/icons/input-select/index.d.ts +1 -0
- package/packages/icons/input-select/index.js +17 -0
- package/packages/icons/input-select/index.js.gz +0 -0
- package/packages/icons/input-select/index.vue.d.ts +16 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/export-button/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ref as p, defineComponent as
|
|
4
|
-
import { t as
|
|
5
|
-
import { DasDialog as
|
|
6
|
-
import { DasProgress as
|
|
7
|
-
import { DasButton as
|
|
8
|
-
import { iotProgress as
|
|
9
|
-
import
|
|
2
|
+
import { withInstall as G } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { ref as p, defineComponent as J, computed as K, watch as B, openBlock as Q, createElementBlock as W, createVNode as z, unref as k, withCtx as L, renderSlot as Z, createTextVNode as ee, toDisplayString as te, createCommentVNode as se, isRef as M } from "vue";
|
|
4
|
+
import { t as v, currentLang as N, i18n as $, setI18nRule as ae } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDialog as oe } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
+
import { DasProgress as re } from "@das-fed/ui/packages/components/progress/index";
|
|
7
|
+
import { DasButton as le } from "@das-fed/ui/packages/components/button/index";
|
|
8
|
+
import { iotProgress as ne } from "@das-fed/utils/api-services/modules/iot";
|
|
9
|
+
import D from "dayjs";
|
|
10
10
|
import { DasMessage as P } from "@das-fed/ui/packages/components/message/index";
|
|
11
|
-
import { getConfig as
|
|
12
|
-
let
|
|
11
|
+
import { getConfig as H } from "@das-fed/utils/config";
|
|
12
|
+
let F = (a = 21) => {
|
|
13
13
|
let l = "", e = crypto.getRandomValues(new Uint8Array(a));
|
|
14
14
|
for (; a--; ) {
|
|
15
15
|
let s = e[a] & 63;
|
|
@@ -17,74 +17,74 @@ let H = (a = 21) => {
|
|
|
17
17
|
}
|
|
18
18
|
return l;
|
|
19
19
|
};
|
|
20
|
-
const
|
|
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(""),
|
|
22
|
-
const
|
|
23
|
-
n.value = "", d.value = "", f.value = "",
|
|
24
|
-
}, O = async (t, u = "",
|
|
25
|
-
o.value = "normal", i.value = 0, s.value =
|
|
20
|
+
const ue = ne.get("progress"), ie = (a) => {
|
|
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(""), g = p(!1), w = p(""), y;
|
|
22
|
+
const _ = () => {
|
|
23
|
+
n.value = "", d.value = "", f.value = "", g.value = !1, w.value = "";
|
|
24
|
+
}, O = async (t, u = "", h = "") => {
|
|
25
|
+
o.value = "normal", i.value = 0, s.value = h || v("导出进度"), 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
|
-
},
|
|
33
|
-
o.value = "normal", i.value = 0, s.value =
|
|
31
|
+
T(b.taskId, "action", "");
|
|
32
|
+
}, j = async (t, u = "", h = "") => {
|
|
33
|
+
o.value = "normal", i.value = 0, s.value = v("导出进度"), 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
|
+
D().format("YYYYMMDDHHmmss") + "", T(b.taskId, "export", u || "", h);
|
|
40
|
+
}, T = async (t, u, h, b = "") => {
|
|
41
|
+
m.value = !0, E(t, u, h, b), c = setTimeout(() => {
|
|
42
42
|
}, 50);
|
|
43
|
-
},
|
|
43
|
+
}, V = () => {
|
|
44
44
|
clearTimeout(c), c = null, e.value = !1;
|
|
45
|
-
},
|
|
46
|
-
var
|
|
47
|
-
const [
|
|
45
|
+
}, E = async (t, u = "export", h, b = "") => {
|
|
46
|
+
var U, I, S;
|
|
47
|
+
const [q, r] = await ue("", {
|
|
48
48
|
url: `progress/${t}`
|
|
49
49
|
}).run();
|
|
50
|
-
if (
|
|
50
|
+
if (q) {
|
|
51
51
|
m.value = !1;
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
i.value = r.percentage;
|
|
55
|
-
const C = u == "export" ?
|
|
55
|
+
const C = u == "export" ? v("导出") : v("导入");
|
|
56
56
|
if (i.value == 100)
|
|
57
|
-
if (x.value = r, m.value = !1,
|
|
58
|
-
r.status == 1 ? (o.value = "success",
|
|
59
|
-
message: r.message || `${C}${
|
|
57
|
+
if (x.value = r, m.value = !1, V(), u == "export")
|
|
58
|
+
r.status == 1 ? (o.value = "success", Y(`${H().baseURL}/oss${r.filePath}`, h, b), m.value = !1, a("success")) : r.status == 2 && (f.value = r.message || `${C}${N.value === "zh-CN" ? v("失败") : " " + v("失败")}`, P.error({
|
|
59
|
+
message: r.message || `${C}${N.value === "zh-CN" ? v("失败") : " " + v("失败")}`,
|
|
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
|
|
67
|
-
(
|
|
68
|
-
const
|
|
69
|
-
n.value = `${
|
|
66
|
+
const A = (U = y.name) == null ? void 0 : U.substr(y.name.indexOf("."));
|
|
67
|
+
(I = y.name) == null || I.replace(/(.*\/)*([^.]+).*/gi, "$2"), g.value = !0;
|
|
68
|
+
const X = (S = r.filePath) == null ? void 0 : S.replace(/(.*\/)*([^.]+).*/gi, "$2");
|
|
69
|
+
n.value = `${X}${A}`, d.value = y.sizeText, f.value = v("部分数据校验不通过,请下载附件并修改,重新导入!"), w.value = `${H().baseURL}/oss${r.filePath}`;
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
R(r.status, C), r.status == 1 && (l.value = !1), a("success");
|
|
72
72
|
} else u == "action" && (o.value = "success");
|
|
73
73
|
else
|
|
74
74
|
c && r.status != 2 ? c = setTimeout(() => {
|
|
75
|
-
|
|
76
|
-
}, 50) : (x.value = r, m.value = !1,
|
|
77
|
-
},
|
|
75
|
+
E(t, u, h, b);
|
|
76
|
+
}, 50) : (x.value = r, m.value = !1, R(r.status, C), V(), g.value = !0, f.value = (r == null ? void 0 : r.message) || "");
|
|
77
|
+
}, R = (t, u) => {
|
|
78
78
|
t == 1 ? (o.value = "success", P.success({
|
|
79
|
-
message:
|
|
79
|
+
message: v("business-components_export-success-tip", u),
|
|
80
80
|
grouping: !0,
|
|
81
81
|
repeatNum: 1
|
|
82
82
|
}), n.value = "", d.value = "", f.value = "") : t == 2 ? (o.value = "error", P.error({
|
|
83
|
-
message:
|
|
83
|
+
message: v("business-components_export-failure-tip", u),
|
|
84
84
|
grouping: !0,
|
|
85
85
|
repeatNum: 1
|
|
86
86
|
})) : t == 3 && (o.value = "error", P.error({
|
|
87
|
-
message:
|
|
87
|
+
message: v("business-components_export-partially-failure-tip", u),
|
|
88
88
|
grouping: !0,
|
|
89
89
|
repeatNum: 1
|
|
90
90
|
}));
|
|
@@ -100,19 +100,19 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
100
100
|
errorFileName: n,
|
|
101
101
|
errorFileSize: d,
|
|
102
102
|
errorMessage: f,
|
|
103
|
-
errorImport:
|
|
104
|
-
errorFilePath:
|
|
105
|
-
fileExport:
|
|
103
|
+
errorImport: g,
|
|
104
|
+
errorFilePath: w,
|
|
105
|
+
fileExport: j,
|
|
106
106
|
fileAction: O,
|
|
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")}${F()}${u}`;
|
|
110
110
|
},
|
|
111
|
-
downloadFile:
|
|
112
|
-
resetStataus:
|
|
113
|
-
checkProgress:
|
|
111
|
+
downloadFile: Y,
|
|
112
|
+
resetStataus: _,
|
|
113
|
+
checkProgress: T
|
|
114
114
|
};
|
|
115
|
-
},
|
|
115
|
+
}, Y = (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], {
|
|
@@ -125,20 +125,22 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
125
125
|
c.href = m, c.download = l, c.click(), window.URL.revokeObjectURL(m);
|
|
126
126
|
}
|
|
127
127
|
}, s.send();
|
|
128
|
-
},
|
|
129
|
-
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: c } =
|
|
128
|
+
}, pe = (a, l) => {
|
|
129
|
+
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: c } = ie(l), x = p({}), n = p({}), d = (g, w) => {
|
|
130
130
|
x.value = {
|
|
131
|
-
...
|
|
131
|
+
...g
|
|
132
132
|
}, n.value = {
|
|
133
|
-
...
|
|
133
|
+
...w
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
let y = `${D().format("YYYYMMDD")}-${D().format("HHmmss")}.${a.fileType}`;
|
|
136
|
+
N.value === "en" && !/s$/.test(a.exportFileName) && (y = " " + y);
|
|
137
|
+
const _ = `${a.exportFileName}${y}`;
|
|
138
|
+
c(f, _, a.fileType);
|
|
137
139
|
}, f = async () => {
|
|
138
|
-
let
|
|
139
|
-
a.taskIdPosition === "params" && (x.value.taskId =
|
|
140
|
-
const [
|
|
141
|
-
return
|
|
140
|
+
let g = F();
|
|
141
|
+
a.taskIdPosition === "params" && (x.value.taskId = g), a.taskIdPosition === "body" && (n.value.taskId = g);
|
|
142
|
+
const [w, y] = await a.exportFun(n.value, { params: x.value }).run();
|
|
143
|
+
return w ? { status: !1 } : { status: !0, taskId: g };
|
|
142
144
|
};
|
|
143
145
|
return {
|
|
144
146
|
showProgressDialog: e,
|
|
@@ -148,7 +150,7 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
148
150
|
progressLoading: m,
|
|
149
151
|
exportList: d
|
|
150
152
|
};
|
|
151
|
-
},
|
|
153
|
+
}, me = { class: "das-export-button" }, ce = /* @__PURE__ */ J({
|
|
152
154
|
__name: "App",
|
|
153
155
|
props: {
|
|
154
156
|
modelValue: {},
|
|
@@ -165,25 +167,25 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
165
167
|
emits: ["update:modelValue", "update:bodyParams", "success"],
|
|
166
168
|
setup(a, { emit: l }) {
|
|
167
169
|
const e = a, s = l;
|
|
168
|
-
|
|
170
|
+
K(() => e.exportFileName || v("导出表")), B(e.modelValue, (n) => {
|
|
169
171
|
s("update:modelValue", n);
|
|
170
|
-
}),
|
|
172
|
+
}), B(e.bodyParams, (n) => {
|
|
171
173
|
s("update:bodyParams", n);
|
|
172
174
|
});
|
|
173
|
-
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } =
|
|
174
|
-
return (n, d) => (
|
|
175
|
-
|
|
175
|
+
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: c } = pe(e, s), x = [$("正在导出中...").value, $("导出失败").value, $("导出成功").value];
|
|
176
|
+
return (n, d) => (Q(), W("div", me, [
|
|
177
|
+
z(k(le), {
|
|
176
178
|
block: n.block,
|
|
177
179
|
size: "middle",
|
|
178
180
|
disabled: n.disabled,
|
|
179
181
|
"btn-type": e.btnType,
|
|
180
182
|
ghost: n.ghost,
|
|
181
|
-
onClick: d[0] || (d[0] = (f) =>
|
|
183
|
+
onClick: d[0] || (d[0] = (f) => k(c)(e.modelValue, e.bodyParams))
|
|
182
184
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
default: L(() => [
|
|
186
|
+
Z(n.$slots, "default", {}, () => [
|
|
187
|
+
ee(
|
|
188
|
+
te(k($)("导出").value),
|
|
187
189
|
1
|
|
188
190
|
/* TEXT */
|
|
189
191
|
)
|
|
@@ -192,23 +194,23 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
192
194
|
_: 3
|
|
193
195
|
/* FORWARDED */
|
|
194
196
|
}, 8, ["block", "disabled", "btn-type", "ghost"]),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
+
se(" 进度弹窗 "),
|
|
198
|
+
z(k(oe), {
|
|
197
199
|
size: "mini",
|
|
198
|
-
title:
|
|
200
|
+
title: k($)("导出进度").value,
|
|
199
201
|
"is-feedback-img": !1,
|
|
200
|
-
modelValue:
|
|
201
|
-
"onUpdate:modelValue": d[2] || (d[2] = (f) =>
|
|
202
|
+
modelValue: k(i),
|
|
203
|
+
"onUpdate:modelValue": d[2] || (d[2] = (f) => M(i) ? i.value = f : null),
|
|
202
204
|
"append-to-body": !0,
|
|
203
205
|
type: "feedback"
|
|
204
206
|
}, {
|
|
205
|
-
default:
|
|
206
|
-
|
|
207
|
-
modelValue:
|
|
208
|
-
"onUpdate:modelValue": d[1] || (d[1] = (f) =>
|
|
207
|
+
default: L(() => [
|
|
208
|
+
z(k(re), {
|
|
209
|
+
modelValue: k(o),
|
|
210
|
+
"onUpdate:modelValue": d[1] || (d[1] = (f) => M(o) ? o.value = f : null),
|
|
209
211
|
style: { "margin-top": "35px" },
|
|
210
212
|
type: "circle",
|
|
211
|
-
status:
|
|
213
|
+
status: k(m),
|
|
212
214
|
textMap: x
|
|
213
215
|
}, null, 8, ["modelValue", "status"])
|
|
214
216
|
]),
|
|
@@ -217,12 +219,12 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
217
219
|
}, 8, ["title", "modelValue"])
|
|
218
220
|
]));
|
|
219
221
|
}
|
|
220
|
-
}),
|
|
222
|
+
}), de = (a, l) => {
|
|
221
223
|
const e = a.__vccOpts || a;
|
|
222
224
|
for (const [s, i] of l)
|
|
223
225
|
e[s] = i;
|
|
224
226
|
return e;
|
|
225
|
-
},
|
|
227
|
+
}, fe = /* @__PURE__ */ de(ce, [["__scopeId", "data-v-49f0bb05"]]), ve = {
|
|
226
228
|
导出表: { "zh-CN": "导出表", en: "Export Table", _appCode: "framework" },
|
|
227
229
|
导出失败: { "zh-CN": "导出失败", en: "Export Failed", _appCode: "framework" },
|
|
228
230
|
导出成功: { "zh-CN": "导出成功", en: "Export Successful", _appCode: "framework" },
|
|
@@ -243,9 +245,9 @@ const ne = le.get("progress"), ue = (a) => {
|
|
|
243
245
|
_appCode: "framework"
|
|
244
246
|
}
|
|
245
247
|
};
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
+
ae(ve);
|
|
249
|
+
const Te = G(fe);
|
|
248
250
|
export {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
Te as DasExportButton,
|
|
252
|
+
Te as default
|
|
251
253
|
};
|
|
Binary file
|
|
@@ -28,6 +28,7 @@ export declare const useFile: (emits: any) => {
|
|
|
28
28
|
downloadFile: (path: any, filename: string, fileSuffix?: string) => void;
|
|
29
29
|
resetStataus: () => void;
|
|
30
30
|
checkProgress: (taskId: any, type: string, fileName: string, fileSuffix?: string) => Promise<void>;
|
|
31
|
+
clearTimer: () => void;
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* 下载文件
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
1
|
export declare const useImport: (props: any, emits: any) => {
|
|
3
|
-
showProgressDialog: Ref<boolean, boolean>;
|
|
4
|
-
progressTitle: Ref<string, string>;
|
|
5
|
-
percent: Ref<number, number>;
|
|
6
|
-
progressStatus: Ref<string, string>;
|
|
7
|
-
progressLoading: Ref<boolean, boolean>;
|
|
8
|
-
errorFileName: Ref<string, string>;
|
|
9
|
-
errorFileSize: Ref<string, string>;
|
|
10
|
-
errorMessage: Ref<string, string>;
|
|
11
|
-
errorImport: Ref<boolean, boolean>;
|
|
12
|
-
importDialog: Ref<boolean, boolean>;
|
|
13
|
-
fileList: Ref<any, any>;
|
|
14
|
-
fileHandleType: Ref<string, string>;
|
|
2
|
+
showProgressDialog: import("vue").Ref<boolean, boolean>;
|
|
3
|
+
progressTitle: import("vue").Ref<string, string>;
|
|
4
|
+
percent: import("vue").Ref<number, number>;
|
|
5
|
+
progressStatus: import("vue").Ref<string, string>;
|
|
6
|
+
progressLoading: import("vue").Ref<boolean, boolean>;
|
|
7
|
+
errorFileName: import("vue").Ref<string, string>;
|
|
8
|
+
errorFileSize: import("vue").Ref<string, string>;
|
|
9
|
+
errorMessage: import("vue").Ref<string, string>;
|
|
10
|
+
errorImport: import("vue").Ref<boolean, boolean>;
|
|
11
|
+
importDialog: import("vue").Ref<boolean, boolean>;
|
|
12
|
+
fileList: import("vue").Ref<any, any>;
|
|
13
|
+
fileHandleType: import("vue").Ref<string, string>;
|
|
15
14
|
showImportHandle: () => void;
|
|
16
15
|
confirmImport: () => Promise<import("element-plus").MessageHandler | undefined>;
|
|
17
16
|
fileUpload: (file: any) => void;
|
|
18
17
|
errorFileDownload: () => void;
|
|
19
18
|
downTemplate: () => Promise<void>;
|
|
19
|
+
clearTimer: () => void;
|
|
20
20
|
};
|