@das-fed/ui 6.4.0-test.7 → 6.4.0-test.8
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 +3 -1
- package/package.json +6 -7
- package/packages/business-components/change-pwd/index.js +12 -8
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/index.js +1 -1
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +24 -0
- package/packages/business-components/device-panel/index.js +16507 -15027
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/attribute.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/barChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/lineChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/index.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-data-Trends.d.ts +7 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/attribute.vue.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/barChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/lineChart.vue.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/index.vue.d.ts +11 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-data-Trends.d.ts +7 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/echarts/index.js +2 -2
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/echarts/style.css +1 -1
- package/packages/business-components/export-button/index.js +30 -30
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +5 -5
- package/packages/business-components/import-button/index.js +59 -59
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/model-table-dialog/index.js +100 -100
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +9 -6
- package/packages/business-components/payment/index.d.ts +5 -1
- package/packages/business-components/payment/index.js +187 -1635
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/payment/type.d.ts +3 -2
- package/packages/business-components/process-configuration/i18n/index.d.ts +0 -10
- package/packages/business-components/process-configuration/index.d.ts +2 -0
- package/packages/business-components/process-configuration/index.js +55 -60
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/src/index.vue.d.ts +2 -0
- package/packages/business-components/process-configuration/src/type.d.ts +3 -0
- package/packages/business-components/process-configuration/style.css +1 -1
- package/packages/business-components/process-configuration/style.css.gz +0 -0
- package/packages/business-components/process-form/index.js +1 -1
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +2 -2
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +98 -98
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +23 -24
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +12 -7
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/checkbox/index.js +149 -137
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/style.css +1 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +3 -3
- package/packages/components/edit-table/index.js +1254 -1251
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/index.vue.d.ts +1 -1
- package/packages/components/image-upload/index.js +1 -1
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +77 -78
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/live-player/index.js +142 -142
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +34 -34
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/pagination/index.js +101 -98
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/index.d.ts +160 -2
- package/packages/components/popover/index.js +29 -27
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/search/index.js +1 -1
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/index.js +1 -1
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/index.js +257 -246
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/table/index.js +945 -951
- 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/tree/index.js +698 -701
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +8 -7
- package/packages/components/tree/src/hooks/use-lazy-tree.d.ts +2 -2
- package/packages/components/tree/src/type.d.ts +7 -4
- package/packages/components/tree-select/index.js +114 -113
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +19 -12
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +18 -12
- package/packages/components/tree-select/src/type.d.ts +3 -2
- package/packages/components/tree-v2/i18n/index.d.ts +5 -0
- package/packages/components/tree-v2/index.js +150 -149
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +0 -2
|
Binary file
|
|
@@ -44595,7 +44595,7 @@ const g9 = /* @__PURE__ */ U7(p9), y9 = ["id"], m9 = /* @__PURE__ */ FL({
|
|
|
44595
44595
|
L.xAxis && m.value && !(R != null && R.hasData) && (R.isXaxisArray ? (L.xAxis[0].max = m.value, L.xAxis[0].min = 0) : (L.xAxis.max = m.value, L.xAxis.min = 0), R.isYaxisArray ? L.yAxis[0].data = [] : L.yAxis.data = []), p.value && (R.isXaxisArray ? (L.xAxis.axisLabel && (L.xAxis[0].axisLabel.formatter = (H) => p.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H), p.value && (L.xAxis[0].triggerEvent = !0)) : (L.xAxis.axisLabel ? L.xAxis.axisLabel.formatter = (H) => p.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H : L.xAxis.axisLabel = {
|
|
44596
44596
|
show: !0,
|
|
44597
44597
|
formatter: (H) => p.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H
|
|
44598
|
-
}, p.value && (L.xAxis.triggerEvent = !0))), d.value && (R.isYaxisArray ? (L.yAxis.axisLabel && (L.yAxis[0].axisLabel.formatter = (H) => d.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H), d.value && (L.yAxis[0].triggerEvent = !0)) : (L.yAxis.axisLabel ? L.yAxis.axisLabel.formatter = (H) => d.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H : L.yAxis.axisLabel = {
|
|
44598
|
+
}, p.value && (L.xAxis.triggerEvent = !0))), d.value && (R.isYaxisArray ? (L.yAxis[0].axisLabel && (L.yAxis[0].axisLabel.formatter = (H) => d.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H), d.value && (L.yAxis[0].triggerEvent = !0)) : (L.yAxis.axisLabel ? L.yAxis.axisLabel.formatter = (H) => d.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H : L.yAxis.axisLabel = {
|
|
44599
44599
|
show: !0,
|
|
44600
44600
|
formatter: (H) => d.value && H && H.length > c.value ? H.substr(0, c.value - 1) + "..." : H
|
|
44601
44601
|
}, d.value && (L.yAxis.triggerEvent = !0)));
|
|
@@ -44727,7 +44727,7 @@ const g9 = /* @__PURE__ */ U7(p9), y9 = ["id"], m9 = /* @__PURE__ */ FL({
|
|
|
44727
44727
|
for (const [a, n] of e)
|
|
44728
44728
|
t[a] = n;
|
|
44729
44729
|
return t;
|
|
44730
|
-
}, S9 = /* @__PURE__ */ _9(m9, [["__scopeId", "data-v-
|
|
44730
|
+
}, S9 = /* @__PURE__ */ _9(m9, [["__scopeId", "data-v-f5725e2f"]]), w9 = GL(S9), T9 = () => ws(null);
|
|
44731
44731
|
export {
|
|
44732
44732
|
w9 as DasEcharts,
|
|
44733
44733
|
T9 as DasEchartsRef,
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-echarts[data-v-
|
|
1
|
+
.das-ui-echarts[data-v-f5725e2f]{width:100%;height:100%}
|
|
@@ -18,9 +18,9 @@ let F = (a = 21) => {
|
|
|
18
18
|
return l;
|
|
19
19
|
};
|
|
20
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),
|
|
21
|
+
let l = p(!1), e = p(!1), s = p(""), i = p(0), o = p("normal"), m = p(!1), d, x = p(""), n = p(""), c = p(""), f = p(""), g = p(!1), w = p(""), y;
|
|
22
22
|
const _ = () => {
|
|
23
|
-
n.value = "",
|
|
23
|
+
n.value = "", c.value = "", f.value = "", g.value = !1, w.value = "";
|
|
24
24
|
}, O = async (t, u = "", h = "") => {
|
|
25
25
|
o.value = "normal", i.value = 0, s.value = h || v("导出进度"), e.value = !0;
|
|
26
26
|
const b = await (t == null ? void 0 : t());
|
|
@@ -38,12 +38,12 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
38
38
|
}
|
|
39
39
|
D().format("YYYYMMDDHHmmss") + "", T(b.taskId, "export", u || "", h);
|
|
40
40
|
}, T = async (t, u, h, b = "") => {
|
|
41
|
-
m.value = !0, E(t, u, h, b),
|
|
41
|
+
m.value = !0, E(t, u, h, b), d = setTimeout(() => {
|
|
42
42
|
}, 50);
|
|
43
43
|
}, V = () => {
|
|
44
|
-
clearTimeout(
|
|
44
|
+
clearTimeout(d), d = null, e.value = !1;
|
|
45
45
|
}, E = async (t, u = "export", h, b = "") => {
|
|
46
|
-
var U, I
|
|
46
|
+
var S, U, I;
|
|
47
47
|
const [q, r] = await ue("", {
|
|
48
48
|
url: `progress/${t}`
|
|
49
49
|
}).run();
|
|
@@ -63,15 +63,15 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
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}`,
|
|
66
|
+
const A = (S = y.name) == null ? void 0 : S.substr(y.name.indexOf("."));
|
|
67
|
+
(U = y.name) == null || U.replace(/(.*\/)*([^.]+).*/gi, "$2"), g.value = !0;
|
|
68
|
+
const X = (I = r.filePath) == null ? void 0 : I.replace(/(.*\/)*([^.]+).*/gi, "$2");
|
|
69
|
+
n.value = `${X}${A}`, c.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
|
+
d && r.status != 2 ? d = setTimeout(() => {
|
|
75
75
|
E(t, u, h, b);
|
|
76
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
77
|
}, R = (t, u) => {
|
|
@@ -79,7 +79,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
79
79
|
message: v("business-components_export-success-tip", u),
|
|
80
80
|
grouping: !0,
|
|
81
81
|
repeatNum: 1
|
|
82
|
-
}), n.value = "",
|
|
82
|
+
}), n.value = "", c.value = "", f.value = "") : t == 2 ? (o.value = "error", P.error({
|
|
83
83
|
message: v("business-components_export-failure-tip", u),
|
|
84
84
|
grouping: !0,
|
|
85
85
|
repeatNum: 1
|
|
@@ -98,7 +98,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
98
98
|
progressLoading: m,
|
|
99
99
|
progressResult: x,
|
|
100
100
|
errorFileName: n,
|
|
101
|
-
errorFileSize:
|
|
101
|
+
errorFileSize: c,
|
|
102
102
|
errorMessage: f,
|
|
103
103
|
errorImport: g,
|
|
104
104
|
errorFilePath: w,
|
|
@@ -121,12 +121,12 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
121
121
|
if (window.navigator.msSaveOrOpenBlob)
|
|
122
122
|
navigator.msSaveBlob(o, l);
|
|
123
123
|
else {
|
|
124
|
-
const
|
|
125
|
-
|
|
124
|
+
const d = document.createElement("a");
|
|
125
|
+
d.href = m, d.download = l, d.click(), window.URL.revokeObjectURL(m);
|
|
126
126
|
}
|
|
127
127
|
}, s.send();
|
|
128
128
|
}, pe = (a, l) => {
|
|
129
|
-
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport:
|
|
129
|
+
const { showProgressDialog: e, progressTitle: s, percent: i, progressStatus: o, progressLoading: m, fileExport: d } = ie(l), x = p({}), n = p({}), c = (g, w) => {
|
|
130
130
|
x.value = {
|
|
131
131
|
...g
|
|
132
132
|
}, n.value = {
|
|
@@ -135,7 +135,7 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
135
135
|
let y = `${D().format("YYYYMMDD")}-${D().format("HHmmss")}.${a.fileType}`;
|
|
136
136
|
N.value === "en" && !/s$/.test(a.exportFileName) && (y = " " + y);
|
|
137
137
|
const _ = `${a.exportFileName}${y}`;
|
|
138
|
-
|
|
138
|
+
d(f, _, a.fileType);
|
|
139
139
|
}, f = async () => {
|
|
140
140
|
let g = F();
|
|
141
141
|
a.taskIdPosition === "params" && (x.value.taskId = g), a.taskIdPosition === "body" && (n.value.taskId = g);
|
|
@@ -148,9 +148,9 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
148
148
|
percent: i,
|
|
149
149
|
progressStatus: o,
|
|
150
150
|
progressLoading: m,
|
|
151
|
-
exportList:
|
|
151
|
+
exportList: c
|
|
152
152
|
};
|
|
153
|
-
}, me = { class: "das-export-button" },
|
|
153
|
+
}, me = { class: "das-export-button" }, de = /* @__PURE__ */ J({
|
|
154
154
|
__name: "App",
|
|
155
155
|
props: {
|
|
156
156
|
modelValue: {},
|
|
@@ -172,15 +172,15 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
172
172
|
}), B(e.bodyParams, (n) => {
|
|
173
173
|
s("update:bodyParams", n);
|
|
174
174
|
});
|
|
175
|
-
const { showProgressDialog: i, percent: o, progressStatus: m, exportList:
|
|
176
|
-
return (n,
|
|
175
|
+
const { showProgressDialog: i, percent: o, progressStatus: m, exportList: d } = pe(e, s), x = [$("正在导出中...").value, $("导出失败").value, $("导出成功").value];
|
|
176
|
+
return (n, c) => (Q(), W("div", me, [
|
|
177
177
|
z(k(le), {
|
|
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:
|
|
183
|
+
onClick: c[0] || (c[0] = (f) => k(d)(e.modelValue, e.bodyParams))
|
|
184
184
|
}, {
|
|
185
185
|
default: L(() => [
|
|
186
186
|
Z(n.$slots, "default", {}, () => [
|
|
@@ -200,14 +200,14 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
200
200
|
title: k($)("导出进度").value,
|
|
201
201
|
"is-feedback-img": !1,
|
|
202
202
|
modelValue: k(i),
|
|
203
|
-
"onUpdate:modelValue":
|
|
203
|
+
"onUpdate:modelValue": c[2] || (c[2] = (f) => M(i) ? i.value = f : null),
|
|
204
204
|
"append-to-body": !0,
|
|
205
205
|
type: "feedback"
|
|
206
206
|
}, {
|
|
207
207
|
default: L(() => [
|
|
208
208
|
z(k(re), {
|
|
209
209
|
modelValue: k(o),
|
|
210
|
-
"onUpdate:modelValue":
|
|
210
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => M(o) ? o.value = f : null),
|
|
211
211
|
style: { "margin-top": "35px" },
|
|
212
212
|
type: "circle",
|
|
213
213
|
status: k(m),
|
|
@@ -219,15 +219,15 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
219
219
|
}, 8, ["title", "modelValue"])
|
|
220
220
|
]));
|
|
221
221
|
}
|
|
222
|
-
}),
|
|
222
|
+
}), ce = (a, l) => {
|
|
223
223
|
const e = a.__vccOpts || a;
|
|
224
224
|
for (const [s, i] of l)
|
|
225
225
|
e[s] = i;
|
|
226
226
|
return e;
|
|
227
|
-
}, fe = /* @__PURE__ */ de
|
|
227
|
+
}, fe = /* @__PURE__ */ ce(de, [["__scopeId", "data-v-49f0bb05"]]), ve = {
|
|
228
228
|
导出表: { "zh-CN": "导出表", en: "Export Table", _appCode: "framework" },
|
|
229
|
-
导出失败: { "zh-CN": "导出失败", en: "
|
|
230
|
-
导出成功: { "zh-CN": "导出成功", en: "
|
|
229
|
+
导出失败: { "zh-CN": "导出失败", en: "Exported Failed", _appCode: "framework" },
|
|
230
|
+
导出成功: { "zh-CN": "导出成功", en: "Exported Successfully", _appCode: "framework" },
|
|
231
231
|
导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
|
|
232
232
|
导出: { "zh-CN": "导出", en: "Export", _appCode: "framework" },
|
|
233
233
|
导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
|
|
@@ -237,11 +237,11 @@ const ue = ne.get("progress"), ie = (a) => {
|
|
|
237
237
|
_appCode: "framework"
|
|
238
238
|
},
|
|
239
239
|
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
|
|
240
|
-
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0
|
|
241
|
-
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0
|
|
240
|
+
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 Successfully", _appCode: "framework" },
|
|
241
|
+
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failed", _appCode: "framework" },
|
|
242
242
|
"business-components_export-partially-failure-tip": {
|
|
243
243
|
"zh-CN": "部分$0失败",
|
|
244
|
-
en: "
|
|
244
|
+
en: "Some $0 Failed",
|
|
245
245
|
_appCode: "framework"
|
|
246
246
|
}
|
|
247
247
|
};
|
|
Binary file
|
|
@@ -24,6 +24,11 @@ declare const _default: {
|
|
|
24
24
|
en: string;
|
|
25
25
|
_appCode: string;
|
|
26
26
|
};
|
|
27
|
+
导入成功: {
|
|
28
|
+
'zh-CN': string;
|
|
29
|
+
en: string;
|
|
30
|
+
_appCode: string;
|
|
31
|
+
};
|
|
27
32
|
导入失败: {
|
|
28
33
|
'zh-CN': string;
|
|
29
34
|
en: string;
|
|
@@ -69,11 +74,6 @@ declare const _default: {
|
|
|
69
74
|
en: string;
|
|
70
75
|
_appCode: string;
|
|
71
76
|
};
|
|
72
|
-
导入成功: {
|
|
73
|
-
'zh-CN': string;
|
|
74
|
-
en: string;
|
|
75
|
-
_appCode: string;
|
|
76
|
-
};
|
|
77
77
|
导出进度: {
|
|
78
78
|
'zh-CN': string;
|
|
79
79
|
en: string;
|
|
@@ -28,7 +28,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
28
28
|
}, y = async () => {
|
|
29
29
|
const [r, s] = await _e().run();
|
|
30
30
|
return r ? { stauts: !1 } : { status: !0, data: s };
|
|
31
|
-
}, B = (r) => new Promise((s,
|
|
31
|
+
}, B = (r) => new Promise((s, d) => {
|
|
32
32
|
const i = [];
|
|
33
33
|
let t = 0;
|
|
34
34
|
for (; t < r.size; ) {
|
|
@@ -37,11 +37,11 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
37
37
|
}
|
|
38
38
|
const c = new Blob(i, { type: r.type });
|
|
39
39
|
s(c);
|
|
40
|
-
}), A = async (r, s,
|
|
40
|
+
}), A = async (r, s, d, a = !1, i = !0, t = "") => {
|
|
41
41
|
F = t, _.value = "import", i && (n.value = "normal", w.value = 0, l.value = p("导入进度"), u.value = !0, N.value = ""), P = s;
|
|
42
42
|
const c = await y();
|
|
43
43
|
if (!c.status) return;
|
|
44
|
-
let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } =
|
|
44
|
+
let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } = d;
|
|
45
45
|
const pe = a ? $e : Ie;
|
|
46
46
|
if (a) {
|
|
47
47
|
let X = [];
|
|
@@ -82,28 +82,28 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
82
82
|
repeatNum: 1
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
}, R = async (r, s = "",
|
|
86
|
-
n.value = "normal", w.value = 0, l.value =
|
|
85
|
+
}, R = async (r, s = "", d = "") => {
|
|
86
|
+
n.value = "normal", w.value = 0, l.value = d || p("导出进度"), u.value = !0;
|
|
87
87
|
const a = await (r == null ? void 0 : r());
|
|
88
88
|
if (!a.status) {
|
|
89
89
|
u.value = !1, n.value = "error";
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
T(a.taskId, "action", "");
|
|
93
|
-
}, O = async (r, s = "",
|
|
93
|
+
}, O = async (r, s = "", d = "xlsx") => {
|
|
94
94
|
_.value = "export", n.value = "normal", w.value = 0, l.value = p("导出进度"), u.value = !0;
|
|
95
95
|
const a = await (r == null ? void 0 : r());
|
|
96
96
|
if (!a.status) {
|
|
97
97
|
u.value = !1, n.value = "error";
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
ze().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "",
|
|
101
|
-
}, T = async (r, s,
|
|
102
|
-
v.value = !0,
|
|
100
|
+
ze().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "", d);
|
|
101
|
+
}, T = async (r, s, d, a = "") => {
|
|
102
|
+
v.value = !0, g(r, s, d, a), b = setTimeout(() => {
|
|
103
103
|
}, 50);
|
|
104
|
-
},
|
|
104
|
+
}, f = () => {
|
|
105
105
|
clearTimeout(b), b = null, u.value = !1;
|
|
106
|
-
},
|
|
106
|
+
}, g = async (r, s = "export", d, a = "") => {
|
|
107
107
|
var C, x;
|
|
108
108
|
const [i, t] = await Se("", {
|
|
109
109
|
url: `progress/${r}`
|
|
@@ -115,8 +115,8 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
115
115
|
w.value = t.percentage;
|
|
116
116
|
const c = s == "export" ? p("导出") : p("导入");
|
|
117
117
|
if (w.value == 100)
|
|
118
|
-
if (N.value = t, v.value = !1,
|
|
119
|
-
t.status == 1 ? (n.value = "success", ue(`${ne().baseURL}/oss${t.filePath}`,
|
|
118
|
+
if (N.value = t, v.value = !1, f(), s == "export")
|
|
119
|
+
t.status == 1 ? (n.value = "success", ue(`${ne().baseURL}/oss${t.filePath}`, d, a), v.value = !1) : t.status == 2 && (z.value = t.message || `${c}${p("失败")}`, U.error({
|
|
120
120
|
message: t.message || `${c}${p("失败")}`,
|
|
121
121
|
grouping: !0,
|
|
122
122
|
repeatNum: 1
|
|
@@ -134,15 +134,15 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
134
134
|
} else s == "action" && (n.value = "success");
|
|
135
135
|
else
|
|
136
136
|
b && t.status != 2 ? b = setTimeout(() => {
|
|
137
|
-
|
|
138
|
-
}, 50) : (N.value = t, v.value = !1, h(t.status, c, t.message),
|
|
139
|
-
}, h = (r, s,
|
|
137
|
+
g(r, s, d, a);
|
|
138
|
+
}, 50) : (N.value = t, v.value = !1, h(t.status, c, t.message), f(), S.value = !0, z.value = (t == null ? void 0 : t.message) || "", e("error", t));
|
|
139
|
+
}, h = (r, s, d) => {
|
|
140
140
|
r == 1 ? (n.value = "success", U.success({
|
|
141
141
|
message: p("business-components_export-success-tip", s),
|
|
142
142
|
grouping: !0,
|
|
143
143
|
repeatNum: 1
|
|
144
144
|
}), I.value = "", $.value = "", z.value = "") : r == 2 ? (n.value = "error", U.error({
|
|
145
|
-
message: p("business-components_export-failure-tip", s),
|
|
145
|
+
message: d || p("business-components_export-failure-tip", s),
|
|
146
146
|
grouping: !0,
|
|
147
147
|
repeatNum: 1
|
|
148
148
|
})) : r == 3 && (n.value = "error", U.error({
|
|
@@ -169,13 +169,13 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
169
169
|
fileExport: O,
|
|
170
170
|
fileAction: R,
|
|
171
171
|
generateUniqueName: (r) => {
|
|
172
|
-
const s = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/),
|
|
173
|
-
return `${s.length ? s[1] : r}${te()}${
|
|
172
|
+
const s = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/), d = s.length ? s[2] : "";
|
|
173
|
+
return `${s.length ? s[1] : r}${te()}${d}`;
|
|
174
174
|
},
|
|
175
175
|
downloadFile: ue,
|
|
176
176
|
resetStataus: E,
|
|
177
177
|
checkProgress: T,
|
|
178
|
-
clearTimer:
|
|
178
|
+
clearTimer: f
|
|
179
179
|
};
|
|
180
180
|
}, De = (e) => {
|
|
181
181
|
let m = e == null ? void 0 : e.toLocaleLowerCase();
|
|
@@ -226,7 +226,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
226
226
|
typeof l.result == "string" && (n = JSON.parse(l.result)), m(n);
|
|
227
227
|
}, l.readAsText(e);
|
|
228
228
|
}), Me = (e, m) => {
|
|
229
|
-
var
|
|
229
|
+
var d;
|
|
230
230
|
const {
|
|
231
231
|
importDialog: u,
|
|
232
232
|
showProgressDialog: l,
|
|
@@ -245,7 +245,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
245
245
|
downloadFile: P,
|
|
246
246
|
clearTimer: E
|
|
247
247
|
} = Pe(m);
|
|
248
|
-
let y = k([]), B = (
|
|
248
|
+
let y = k([]), B = (d = Fe()) == null ? void 0 : d.tenantId;
|
|
249
249
|
const A = () => {
|
|
250
250
|
y.value = [], z.value = !1, N.value = "", I.value = "", $.value = "", u.value = !0, S.value = "", m("open");
|
|
251
251
|
};
|
|
@@ -270,7 +270,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
270
270
|
}, T = (a) => {
|
|
271
271
|
let i = a.match(/\d+(\.\d+)?/)[0], t = a.match(/[a-zA-z]+/gi)[0], c = 0;
|
|
272
272
|
return i = parseFloat(i), t = t.toLowerCase(), t === "gb" || t === "g" ? c = (i * 1024 * 1024 * 1024).toFixed(2) : t === "mb" || t === "m" ? c = (i * 1024 * 1024).toFixed(2) : t === "kb" || t === "k" ? c = (i * 1024).toFixed(2) : t === "b" && (c = i), parseFloat(c);
|
|
273
|
-
},
|
|
273
|
+
}, f = async (a) => {
|
|
274
274
|
const i = a.value.split("/");
|
|
275
275
|
let t = te();
|
|
276
276
|
const c = {
|
|
@@ -280,15 +280,15 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
280
280
|
...e.importParams
|
|
281
281
|
}, C = e.importParamsPosition === "params" ? e.importFun("", { params: c }) : e.importFun(c), [x, K] = await C.run();
|
|
282
282
|
return x ? { status: !1 } : { status: !0, taskId: t };
|
|
283
|
-
},
|
|
283
|
+
}, g = async () => {
|
|
284
284
|
if (!y.value.length) return U.warning(p("请上传文件"));
|
|
285
285
|
const a = {
|
|
286
|
-
bucketName: e.bucketName,
|
|
286
|
+
bucketName: e.bucketName ? e.bucketName : "business",
|
|
287
287
|
importFileName: `${B}/${e.ossName}/${R}`
|
|
288
288
|
};
|
|
289
289
|
e.maxCount > 1 && (a.importFileName = y.value.map((c) => c.name));
|
|
290
290
|
const i = e.maxCount > 1, t = e.maxCount > 1 ? y.value : y.value[0];
|
|
291
|
-
await F(
|
|
291
|
+
await F(f, t, a, i);
|
|
292
292
|
}, h = () => {
|
|
293
293
|
P(S.value, N.value);
|
|
294
294
|
}, oe = () => {
|
|
@@ -312,7 +312,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
312
312
|
fileList: y,
|
|
313
313
|
fileHandleType: M,
|
|
314
314
|
showImportHandle: A,
|
|
315
|
-
confirmImport:
|
|
315
|
+
confirmImport: g,
|
|
316
316
|
fileUpload: O,
|
|
317
317
|
errorFileDownload: h,
|
|
318
318
|
downTemplate: async () => {
|
|
@@ -351,7 +351,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
351
351
|
importDialogName: { default: "导入" },
|
|
352
352
|
confirmButtonName: { default: "确定导入" },
|
|
353
353
|
openDisabled: { type: Boolean, default: !0 },
|
|
354
|
-
bucketName: { default: "
|
|
354
|
+
bucketName: { default: "business" },
|
|
355
355
|
maxCount: { default: 1 },
|
|
356
356
|
multiple: { type: Boolean, default: !1 }
|
|
357
357
|
},
|
|
@@ -377,17 +377,17 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
377
377
|
clearTimer: O
|
|
378
378
|
} = Me(l, w);
|
|
379
379
|
let T;
|
|
380
|
-
return he(P, (
|
|
381
|
-
|
|
380
|
+
return he(P, (f) => {
|
|
381
|
+
f.includes("import") ? T = [p("正在导入中..."), p("导入失败"), p("导入成功")] : T = [p("正在导出中..."), p("导出失败"), p("导出成功")];
|
|
382
382
|
}), m({
|
|
383
383
|
confirmImport: y,
|
|
384
384
|
showImportHandle: E
|
|
385
|
-
}), (
|
|
385
|
+
}), (f, g) => (Ce(), we("div", Ee, [
|
|
386
386
|
q("div", {
|
|
387
|
-
onClick:
|
|
387
|
+
onClick: g[0] || (g[0] = //@ts-ignore
|
|
388
388
|
(...h) => o(E) && o(E)(...h))
|
|
389
389
|
}, [
|
|
390
|
-
re(
|
|
390
|
+
re(f.$slots, "default", {}, () => [
|
|
391
391
|
D(o(W), {
|
|
392
392
|
size: "middle",
|
|
393
393
|
"btn-type": "primary"
|
|
@@ -406,9 +406,9 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
406
406
|
]),
|
|
407
407
|
le(" 导入弹窗 "),
|
|
408
408
|
D(o(se), {
|
|
409
|
-
title: o(j)(
|
|
409
|
+
title: o(j)(f.importDialogName).value,
|
|
410
410
|
modelValue: o(F),
|
|
411
|
-
"onUpdate:modelValue":
|
|
411
|
+
"onUpdate:modelValue": g[3] || (g[3] = (h) => Q(F) ? F.value = h : null),
|
|
412
412
|
customClass: "upload-dialog",
|
|
413
413
|
width: "610px",
|
|
414
414
|
height: "500px"
|
|
@@ -417,7 +417,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
417
417
|
q("div", null, [
|
|
418
418
|
D(o(W), {
|
|
419
419
|
size: "middle",
|
|
420
|
-
onClick:
|
|
420
|
+
onClick: g[2] || (g[2] = (h) => F.value = !1)
|
|
421
421
|
}, {
|
|
422
422
|
default: L(() => [
|
|
423
423
|
Y(
|
|
@@ -432,13 +432,13 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
432
432
|
D(o(W), {
|
|
433
433
|
size: "middle",
|
|
434
434
|
"btn-type": "primary",
|
|
435
|
-
disabled:
|
|
435
|
+
disabled: f.openDisabled && o(_).length === 0,
|
|
436
436
|
style: { "margin-left": "12px", width: "100%" },
|
|
437
437
|
onClick: o(y)
|
|
438
438
|
}, {
|
|
439
439
|
default: L(() => [
|
|
440
440
|
Y(
|
|
441
|
-
H(o(j)(`${
|
|
441
|
+
H(o(j)(`${f.confirmButtonName}`).value),
|
|
442
442
|
1
|
|
443
443
|
/* TEXT */
|
|
444
444
|
)
|
|
@@ -449,7 +449,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
449
449
|
])
|
|
450
450
|
]),
|
|
451
451
|
default: L(() => [
|
|
452
|
-
re(
|
|
452
|
+
re(f.$slots, "tip", {}, () => [
|
|
453
453
|
q("div", Le, [
|
|
454
454
|
q("div", je, [
|
|
455
455
|
Y(
|
|
@@ -465,7 +465,7 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
465
465
|
}, {
|
|
466
466
|
default: L(() => [
|
|
467
467
|
Y(
|
|
468
|
-
H(o(j)(`${
|
|
468
|
+
H(o(j)(`${f.templateName}`).value),
|
|
469
469
|
1
|
|
470
470
|
/* TEXT */
|
|
471
471
|
)
|
|
@@ -485,14 +485,14 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
485
485
|
], !0),
|
|
486
486
|
D(o(be), {
|
|
487
487
|
modelValue: o(_),
|
|
488
|
-
"onUpdate:modelValue":
|
|
488
|
+
"onUpdate:modelValue": g[1] || (g[1] = (h) => Q(_) ? _.value = h : null),
|
|
489
489
|
error: o(M),
|
|
490
490
|
"error-file-name": o($),
|
|
491
491
|
"error-file-size": o(z),
|
|
492
492
|
"error-message": o(S),
|
|
493
|
-
accept:
|
|
494
|
-
maxCount:
|
|
495
|
-
multiple:
|
|
493
|
+
accept: f.fileType,
|
|
494
|
+
maxCount: f.maxCount,
|
|
495
|
+
multiple: f.multiple,
|
|
496
496
|
onErrorFileDownload: o(A),
|
|
497
497
|
onFileUpload: o(B)
|
|
498
498
|
}, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "maxCount", "multiple", "onErrorFileDownload", "onFileUpload"])
|
|
@@ -506,14 +506,14 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
506
506
|
title: o(j)(o(b)).value,
|
|
507
507
|
"is-feedback-img": !1,
|
|
508
508
|
modelValue: o(v),
|
|
509
|
-
"onUpdate:modelValue":
|
|
509
|
+
"onUpdate:modelValue": g[5] || (g[5] = (h) => Q(v) ? v.value = h : null),
|
|
510
510
|
type: "feedback",
|
|
511
511
|
onClose: o(O)
|
|
512
512
|
}, {
|
|
513
513
|
default: L(() => [
|
|
514
514
|
D(o(ye), {
|
|
515
515
|
modelValue: o(N),
|
|
516
|
-
"onUpdate:modelValue":
|
|
516
|
+
"onUpdate:modelValue": g[4] || (g[4] = (h) => Q(N) ? N.value = h : null),
|
|
517
517
|
style: { "margin-top": "35px" },
|
|
518
518
|
type: "circle",
|
|
519
519
|
status: o(I),
|
|
@@ -530,32 +530,32 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
530
530
|
for (const [l, w] of m)
|
|
531
531
|
u[l] = w;
|
|
532
532
|
return u;
|
|
533
|
-
}, He = /* @__PURE__ */ Ve(Re, [["__scopeId", "data-v-
|
|
534
|
-
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1
|
|
533
|
+
}, He = /* @__PURE__ */ Ve(Re, [["__scopeId", "data-v-95260c00"]]), Ae = {
|
|
534
|
+
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1.Click to Download ", _appCode: "framework" },
|
|
535
535
|
"2、仅支持上传Excel文件,重复数据以最后一条为准": {
|
|
536
536
|
"zh-CN": "2、仅支持上传Excel文件,重复数据以最后一条为准",
|
|
537
|
-
en: "2
|
|
537
|
+
en: "2.Only support uploading excel files,duplicate data is subject to the last entry",
|
|
538
538
|
_appCode: "framework"
|
|
539
539
|
},
|
|
540
540
|
文件: { "zh-CN": "文件", en: "File", _appCode: "framework" },
|
|
541
541
|
取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
|
|
542
542
|
正在导入中: { "zh-CN": "正在导入中", en: "Importing", _appCode: "framework" },
|
|
543
|
-
|
|
543
|
+
导入成功: { "zh-CN": "导入成功", en: "Imported Successfully", _appCode: "framework" },
|
|
544
|
+
导入失败: { "zh-CN": "导入失败", en: "Imported Failed", _appCode: "framework" },
|
|
544
545
|
正在导出中: { "zh-CN": "正在导出中", en: "Exporting", _appCode: "framework" },
|
|
545
|
-
导出失败: { "zh-CN": "导出失败", en: "
|
|
546
|
-
导出成功: { "zh-CN": "导出成功", en: "
|
|
546
|
+
导出失败: { "zh-CN": "导出失败", en: "Exported Failed", _appCode: "framework" },
|
|
547
|
+
导出成功: { "zh-CN": "导出成功", en: "Exported Successfully", _appCode: "framework" },
|
|
547
548
|
文件格式错误: { "zh-CN": "文件格式错误", en: "File Format Error", _appCode: "framework" },
|
|
548
549
|
请重新上传: { "zh-CN": "请重新上传", en: "Please upload again", _appCode: "framework" },
|
|
549
550
|
文件大小不超过: { "zh-CN": "文件大小不超过", en: "File size must not exceed", _appCode: "framework" },
|
|
550
551
|
请上传文件: { "zh-CN": "请上传文件", en: "Please upload the file", _appCode: "framework" },
|
|
551
552
|
导入进度: { "zh-CN": "导入进度", en: "Import Progress", _appCode: "framework" },
|
|
552
|
-
导入成功: { "zh-CN": "导入成功", en: "Import Successful", _appCode: "framework" },
|
|
553
553
|
导出进度: { "zh-CN": "导出进度", en: "Export Progress", _appCode: "framework" },
|
|
554
554
|
导出: { "zh-CN": "导出", en: "Export", _appCode: "framework" },
|
|
555
555
|
导入: { "zh-CN": "导入", en: "Import", _appCode: "framework" },
|
|
556
|
-
失败: { "zh-CN": "失败", en: "
|
|
557
|
-
成功: { "zh-CN": "成功", en: "
|
|
558
|
-
部分: { "zh-CN": "部分", en: "
|
|
556
|
+
失败: { "zh-CN": "失败", en: "Failed", _appCode: "framework" },
|
|
557
|
+
成功: { "zh-CN": "成功", en: "Successfully", _appCode: "framework" },
|
|
558
|
+
部分: { "zh-CN": "部分", en: "Some", _appCode: "framework" },
|
|
559
559
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
560
560
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
561
561
|
en: "Some data validation failed, please download the attachment, modify, and re-import!",
|
|
@@ -568,11 +568,11 @@ const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
568
568
|
},
|
|
569
569
|
"正在导入中...": { "zh-CN": "正在导入中...", en: "Importing...", _appCode: "framework" },
|
|
570
570
|
"正在导出中...": { "zh-CN": "正在导出中...", en: "Exporting...", _appCode: "framework" },
|
|
571
|
-
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0
|
|
572
|
-
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0
|
|
571
|
+
"business-components_export-success-tip": { "zh-CN": "$0成功", en: "$0 Successfully", _appCode: "framework" },
|
|
572
|
+
"business-components_export-failure-tip": { "zh-CN": "$0失败", en: "$0 Failed", _appCode: "framework" },
|
|
573
573
|
"business-components_export-partially-failure-tip": {
|
|
574
574
|
"zh-CN": "部分$0失败",
|
|
575
|
-
en: "
|
|
575
|
+
en: "Some $0 Failed",
|
|
576
576
|
_appCode: "framework"
|
|
577
577
|
}
|
|
578
578
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-import-button[data-v-
|
|
1
|
+
.das-import-button[data-v-95260c00]{display:inline-block}.das-import-button .upload-dialog .second-line[data-v-95260c00]{margin-bottom:20px}.das-import-button .upload-dialog .tips[data-v-95260c00]{font-size:16px}
|