@das-fed/ui 6.4.0-dev.55.20 → 6.4.0-dev.55.22
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/device-panel/index.js +36969 -36718
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/apis.d.ts +0 -2
- 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/import-button/i18n/index.d.ts +1 -6
- package/packages/business-components/import-button/index.js +121 -122
- 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/process-form/index.js +64 -63
- 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-search-form/index.js +56 -56
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +3 -3
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +14 -14
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/map/index.js +219 -219
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +5 -0
- package/packages/components/search-form/index.js +44 -43
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +674 -665
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/text-tooltip/src/type.d.ts +1 -62
- package/packages/components/tree/src/type.d.ts +1 -0
|
Binary file
|
|
@@ -4,7 +4,7 @@ declare const _default: {
|
|
|
4
4
|
en: string;
|
|
5
5
|
_appCode: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
'2\u3001\u4EC5\u652F\u6301\u4E0A\u4F20Excel\u6587\u4EF6\uFF0C\u91CD\u590D\u6570\u636E\u4EE5\u6700\u540E\u4E00\u6761\u4E3A\u51C6': {
|
|
8
8
|
'zh-CN': string;
|
|
9
9
|
en: string;
|
|
10
10
|
_appCode: string;
|
|
@@ -14,11 +14,6 @@ declare const _default: {
|
|
|
14
14
|
en: string;
|
|
15
15
|
_appCode: string;
|
|
16
16
|
};
|
|
17
|
-
重复数据以最后一条为准: {
|
|
18
|
-
'zh-CN': string;
|
|
19
|
-
en: string;
|
|
20
|
-
_appCode: string;
|
|
21
|
-
};
|
|
22
17
|
取消: {
|
|
23
18
|
'zh-CN': string;
|
|
24
19
|
en: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/import-button/style.css';
|
|
2
2
|
import { withInstall as fe } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as w, defineComponent as ge, watch as ve, openBlock as he, createElementBlock as we, createElementVNode as O, unref as o, renderSlot as re, createVNode as
|
|
4
|
-
import { t as c, i18n as
|
|
3
|
+
import { ref as w, defineComponent as ge, watch as ve, openBlock as he, createElementBlock as we, createElementVNode as O, unref as o, renderSlot as re, createVNode as D, withCtx as L, createTextVNode as K, toDisplayString as H, createCommentVNode as le, isRef as Q } from "vue";
|
|
4
|
+
import { t as c, i18n as U, setI18nRule as Ce } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as se } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
-
import { DasUpload as
|
|
7
|
-
import { DasProgress as
|
|
6
|
+
import { DasUpload as xe } from "@das-fed/ui/packages/components/upload/index";
|
|
7
|
+
import { DasProgress as ke } from "@das-fed/ui/packages/components/progress/index";
|
|
8
8
|
import { DasButton as W } from "@das-fed/ui/packages/components/button/index";
|
|
9
9
|
import { iotMinio as ae, iotProgress as ye } from "@das-fed/utils/api-services/modules/iot";
|
|
10
10
|
import { DasMessage as M } from "@das-fed/ui/packages/components/message/index";
|
|
@@ -14,17 +14,17 @@ import { extractFilename as be } from "@das-fed/utils/common-tools";
|
|
|
14
14
|
import { getUserInfo as ze } from "@das-fed/utils/common-info/index";
|
|
15
15
|
import { pureImageSrc as ie } from "@das-fed/utils/pure-image-src";
|
|
16
16
|
let te = (e = 21) => {
|
|
17
|
-
let m = "",
|
|
17
|
+
let m = "", p = crypto.getRandomValues(new Uint8Array(e));
|
|
18
18
|
for (; e--; ) {
|
|
19
|
-
let n =
|
|
19
|
+
let n = p[e] & 63;
|
|
20
20
|
n < 36 ? m += n.toString(36) : n < 62 ? m += (n - 26).toString(36).toUpperCase() : n < 63 ? m += "_" : m += "-";
|
|
21
21
|
}
|
|
22
22
|
return m;
|
|
23
23
|
};
|
|
24
|
-
const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Ie = ae.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), _e = ye.get("progress"),
|
|
25
|
-
let m = w(!1),
|
|
26
|
-
const
|
|
27
|
-
|
|
24
|
+
const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Ie = ae.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), _e = ye.get("progress"), Pe = (e) => {
|
|
25
|
+
let m = w(!1), p = w(!1), n = w(""), h = w(0), u = w("normal"), C = w(!1), g, z = w(""), S = w(""), I = w(""), b = w(""), _ = w(!1), E = w(""), T = "", F = w(""), P;
|
|
26
|
+
const x = () => {
|
|
27
|
+
S.value = "", I.value = "", b.value = "", _.value = !1, E.value = "";
|
|
28
28
|
}, j = async () => {
|
|
29
29
|
const [r, l] = await Te().run();
|
|
30
30
|
return r ? { stauts: !1 } : { status: !0, data: l };
|
|
@@ -35,14 +35,14 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
35
35
|
const y = r.slice(t, t + 1048576);
|
|
36
36
|
i.push(y), t += 1048576;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
39
|
-
l(
|
|
38
|
+
const k = new Blob(i, { type: r.type });
|
|
39
|
+
l(k);
|
|
40
40
|
}), V = async (r, l, a, s = !1, i = !0, t = "") => {
|
|
41
|
-
T = t, F.value = "import", i && (
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
44
|
-
let y =
|
|
45
|
-
const
|
|
41
|
+
T = t, F.value = "import", i && (u.value = "normal", h.value = 0, n.value = c("导入进度"), p.value = !0, z.value = ""), P = l;
|
|
42
|
+
const k = await j();
|
|
43
|
+
if (!k.status) return;
|
|
44
|
+
let y = k.data, N = null, { autoContentType: Y, bucketName: B, importFileName: J } = a;
|
|
45
|
+
const pe = s ? Ie : Fe;
|
|
46
46
|
if (s) {
|
|
47
47
|
let X = [];
|
|
48
48
|
await l.forEach(async (G) => {
|
|
@@ -65,36 +65,36 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
65
65
|
autoContentType: Y
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
const [me, ce] = await
|
|
68
|
+
const [me, ce] = await pe(N).run();
|
|
69
69
|
if (me) return;
|
|
70
|
-
const de = await
|
|
70
|
+
const de = await $e(ce.data), Z = await (r == null ? void 0 : r(de));
|
|
71
71
|
if (i) {
|
|
72
72
|
if (!Z.status) {
|
|
73
|
-
|
|
73
|
+
p.value = !1, u.value = "error";
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
n.value = c("导入进度"),
|
|
76
|
+
n.value = c("导入进度"), p.value = !0, d(Z.taskId, "import", "");
|
|
77
77
|
} else {
|
|
78
78
|
if (!Z.status) return;
|
|
79
|
-
|
|
79
|
+
u.value = "success", M.success({
|
|
80
80
|
message: c("导入成功"),
|
|
81
81
|
grouping: !0,
|
|
82
82
|
repeatNum: 1
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}, A = async (r, l = "", a = "") => {
|
|
86
|
-
|
|
86
|
+
u.value = "normal", h.value = 0, n.value = a || c("导出进度"), p.value = !0;
|
|
87
87
|
const s = await (r == null ? void 0 : r());
|
|
88
88
|
if (!s.status) {
|
|
89
|
-
|
|
89
|
+
p.value = !1, u.value = "error";
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
d(s.taskId, "action", "");
|
|
93
|
-
},
|
|
94
|
-
F.value = "export",
|
|
93
|
+
}, $ = async (r, l = "", a = "xlsx") => {
|
|
94
|
+
F.value = "export", u.value = "normal", h.value = 0, n.value = c("导出进度"), p.value = !0;
|
|
95
95
|
const s = await (r == null ? void 0 : r());
|
|
96
96
|
if (!s.status) {
|
|
97
|
-
|
|
97
|
+
p.value = !1, u.value = "error";
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
Ne().format("YYYYMMDDHHmmss") + "", d(s.taskId, "export", l || "", a);
|
|
@@ -102,7 +102,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
102
102
|
C.value = !0, v(r, l, a, s), g = setTimeout(() => {
|
|
103
103
|
}, 50);
|
|
104
104
|
}, f = () => {
|
|
105
|
-
clearTimeout(g), g = null,
|
|
105
|
+
clearTimeout(g), g = null, p.value = !1;
|
|
106
106
|
}, v = async (r, l = "export", a, s = "") => {
|
|
107
107
|
var y, N;
|
|
108
108
|
const [i, t] = await _e("", {
|
|
@@ -113,39 +113,39 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
h.value = t.percentage;
|
|
116
|
-
const
|
|
116
|
+
const k = l == "export" ? c("导出") : c("导入");
|
|
117
117
|
if (h.value == 100)
|
|
118
118
|
if (z.value = t, C.value = !1, f(), l == "export")
|
|
119
|
-
t.status == 1 ? (
|
|
120
|
-
message: t.message || `${
|
|
119
|
+
t.status == 1 ? (u.value = "success", ue(`${ne().baseURL}/oss${t.filePath}`, a, s), C.value = !1) : t.status == 2 && (b.value = t.message || `${k}${c("失败")}`, M.error({
|
|
120
|
+
message: t.message || `${k}${c("失败")}`,
|
|
121
121
|
grouping: !0,
|
|
122
122
|
repeatNum: 1
|
|
123
123
|
}));
|
|
124
124
|
else if (l == "import") {
|
|
125
125
|
if (t.filePath) {
|
|
126
|
-
|
|
127
|
-
const Y = (y =
|
|
126
|
+
u.value = "error";
|
|
127
|
+
const Y = (y = P.name) == null ? void 0 : y.match(/(.*?)(\.[^.]*$|$)/);
|
|
128
128
|
Y.length && Y[2], _.value = !0;
|
|
129
129
|
let B = await be(`/oss/${t == null ? void 0 : t.filePath}`);
|
|
130
130
|
const J = ((N = B == null ? void 0 : B.split("/")) == null ? void 0 : N.pop()) || "";
|
|
131
|
-
|
|
131
|
+
S.value = T || J, I.value = P.sizeText, b.value = c("部分数据校验不通过,请下载附件并修改,重新导入!"), E.value = `${ne().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
|
|
132
132
|
}
|
|
133
|
-
q(t.status,
|
|
134
|
-
} else l == "action" && (
|
|
133
|
+
q(t.status, k, t.message), t.status == 1 && (m.value = !1), e("success");
|
|
134
|
+
} else l == "action" && (u.value = "success");
|
|
135
135
|
else
|
|
136
136
|
g && t.status != 2 ? g = setTimeout(() => {
|
|
137
137
|
v(r, l, a, s);
|
|
138
|
-
}, 50) : (z.value = t, C.value = !1, q(t.status,
|
|
138
|
+
}, 50) : (z.value = t, C.value = !1, q(t.status, k, t.message), f(), _.value = !0, b.value = (t == null ? void 0 : t.message) || "", e("error", t));
|
|
139
139
|
}, q = (r, l, a) => {
|
|
140
|
-
r == 1 ? (
|
|
140
|
+
r == 1 ? (u.value = "success", M.success({
|
|
141
141
|
message: c("business-components_export-success-tip", l),
|
|
142
142
|
grouping: !0,
|
|
143
143
|
repeatNum: 1
|
|
144
|
-
}),
|
|
144
|
+
}), S.value = "", I.value = "", b.value = "") : r == 2 ? (u.value = "error", M.error({
|
|
145
145
|
message: c("business-components_export-failure-tip", l),
|
|
146
146
|
grouping: !0,
|
|
147
147
|
repeatNum: 1
|
|
148
|
-
})) : r == 3 && (
|
|
148
|
+
})) : r == 3 && (u.value = "error", M.error({
|
|
149
149
|
message: c("business-components_export-partially-failure-tip", l),
|
|
150
150
|
grouping: !0,
|
|
151
151
|
repeatNum: 1
|
|
@@ -153,30 +153,30 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
153
153
|
};
|
|
154
154
|
return {
|
|
155
155
|
importDialog: m,
|
|
156
|
-
showProgressDialog:
|
|
156
|
+
showProgressDialog: p,
|
|
157
157
|
progressTitle: n,
|
|
158
158
|
percent: h,
|
|
159
|
-
progressStatus:
|
|
159
|
+
progressStatus: u,
|
|
160
160
|
progressLoading: C,
|
|
161
161
|
progressResult: z,
|
|
162
|
-
errorFileName:
|
|
162
|
+
errorFileName: S,
|
|
163
163
|
errorFileSize: I,
|
|
164
164
|
errorMessage: b,
|
|
165
165
|
errorImport: _,
|
|
166
166
|
errorFilePath: E,
|
|
167
167
|
fileHandleType: F,
|
|
168
168
|
fileImport: V,
|
|
169
|
-
fileExport:
|
|
169
|
+
fileExport: $,
|
|
170
170
|
fileAction: A,
|
|
171
171
|
generateUniqueName: (r) => {
|
|
172
172
|
const l = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/), a = l.length ? l[2] : "";
|
|
173
173
|
return `${l.length ? l[1] : r}${te()}${a}`;
|
|
174
174
|
},
|
|
175
|
-
downloadFile:
|
|
176
|
-
resetStataus:
|
|
175
|
+
downloadFile: ue,
|
|
176
|
+
resetStataus: x,
|
|
177
177
|
checkProgress: d
|
|
178
178
|
};
|
|
179
|
-
},
|
|
179
|
+
}, Se = (e) => {
|
|
180
180
|
let m = e == null ? void 0 : e.toLocaleLowerCase();
|
|
181
181
|
return {
|
|
182
182
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -205,65 +205,65 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
205
205
|
der: "application/x-x509-ca-cert",
|
|
206
206
|
cer: "application/pkix-cert"
|
|
207
207
|
}[m];
|
|
208
|
-
},
|
|
208
|
+
}, ue = (e, m, p = "excel") => {
|
|
209
209
|
const n = new XMLHttpRequest();
|
|
210
210
|
n.open("get", e), n.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), n.responseType = "blob", n.onload = function(h) {
|
|
211
|
-
const
|
|
212
|
-
type:
|
|
213
|
-
}), C = URL.createObjectURL(
|
|
211
|
+
const u = new Blob([this.response], {
|
|
212
|
+
type: Se(p)
|
|
213
|
+
}), C = URL.createObjectURL(u);
|
|
214
214
|
if (window.navigator.msSaveOrOpenBlob)
|
|
215
|
-
navigator.msSaveBlob(
|
|
215
|
+
navigator.msSaveBlob(u, m);
|
|
216
216
|
else {
|
|
217
217
|
const g = document.createElement("a");
|
|
218
218
|
g.href = C, g.download = m, g.click(), window.URL.revokeObjectURL(C);
|
|
219
219
|
}
|
|
220
220
|
}, n.send();
|
|
221
|
-
},
|
|
221
|
+
}, $e = (e) => new Promise((m, p) => {
|
|
222
222
|
var n = new FileReader();
|
|
223
223
|
n.onload = function(h) {
|
|
224
|
-
let
|
|
225
|
-
typeof n.result == "string" && (
|
|
224
|
+
let u = "";
|
|
225
|
+
typeof n.result == "string" && (u = JSON.parse(n.result)), m(u);
|
|
226
226
|
}, n.readAsText(e);
|
|
227
|
-
}),
|
|
227
|
+
}), De = (e, m) => {
|
|
228
228
|
var l;
|
|
229
229
|
const {
|
|
230
|
-
importDialog:
|
|
230
|
+
importDialog: p,
|
|
231
231
|
showProgressDialog: n,
|
|
232
232
|
progressTitle: h,
|
|
233
|
-
percent:
|
|
233
|
+
percent: u,
|
|
234
234
|
progressStatus: C,
|
|
235
235
|
progressLoading: g,
|
|
236
236
|
errorFileName: z,
|
|
237
|
-
errorFileSize:
|
|
237
|
+
errorFileSize: S,
|
|
238
238
|
errorMessage: I,
|
|
239
239
|
errorImport: b,
|
|
240
240
|
errorFilePath: _,
|
|
241
241
|
fileHandleType: E,
|
|
242
242
|
fileImport: T,
|
|
243
243
|
fileExport: F,
|
|
244
|
-
downloadFile:
|
|
245
|
-
} =
|
|
246
|
-
let
|
|
244
|
+
downloadFile: P
|
|
245
|
+
} = Pe(m);
|
|
246
|
+
let x = w([]), j = (l = ze()) == null ? void 0 : l.tenantId;
|
|
247
247
|
const R = () => {
|
|
248
|
-
|
|
248
|
+
x.value = [], b.value = !1, z.value = "", S.value = "", I.value = "", p.value = !0, _.value = "", m("open");
|
|
249
249
|
};
|
|
250
250
|
let V;
|
|
251
251
|
const A = (a) => {
|
|
252
|
-
const s = e.fileType.split(","), i = a.name.substring(a.name.lastIndexOf(".")), t =
|
|
252
|
+
const s = e.fileType.split(","), i = a.name.substring(a.name.lastIndexOf(".")), t = $(a.sizeText), k = $(e.fileMaxSize);
|
|
253
253
|
if (!s.includes(i)) {
|
|
254
254
|
M.warning(c("文件格式错误,请重新上传!")), setTimeout(() => {
|
|
255
|
-
|
|
255
|
+
x.value = [];
|
|
256
256
|
});
|
|
257
257
|
return;
|
|
258
258
|
}
|
|
259
|
-
if (t >
|
|
259
|
+
if (t > k) {
|
|
260
260
|
M.warning(`${c("文件大小不超过")}${e.fileMaxSize}`), setTimeout(() => {
|
|
261
|
-
|
|
261
|
+
x.value = [];
|
|
262
262
|
});
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
265
|
V = a.name;
|
|
266
|
-
},
|
|
266
|
+
}, $ = (a) => {
|
|
267
267
|
let s = a.match(/\d+(\.\d+)?/)[0], i = a.match(/[a-zA-z]+/gi)[0], t = 0;
|
|
268
268
|
return s = parseFloat(s), i = i.toLowerCase(), i === "gb" || i === "g" ? t = (s * 1024 * 1024 * 1024).toFixed(2) : i === "mb" || i === "m" ? t = (s * 1024 * 1024).toFixed(2) : i === "kb" || i === "k" ? t = (s * 1024).toFixed(2) : i === "b" && (t = s), parseFloat(t);
|
|
269
269
|
}, d = async (a) => {
|
|
@@ -274,17 +274,17 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
274
274
|
filePath: a.value,
|
|
275
275
|
taskId: i,
|
|
276
276
|
...e.importParams
|
|
277
|
-
},
|
|
277
|
+
}, k = e.importParamsPosition === "params" ? e.importFun("", { params: t }) : e.importFun(t), [y, N] = await k.run();
|
|
278
278
|
return y ? { status: !1 } : { status: !0, taskId: i };
|
|
279
279
|
}, f = async () => {
|
|
280
|
-
if (!
|
|
280
|
+
if (!x.value.length) return M.warning(c("请上传文件"));
|
|
281
281
|
const a = {
|
|
282
282
|
bucketName: e.bucketName,
|
|
283
283
|
importFileName: `${j}/${e.ossName}/${V}`
|
|
284
|
-
}, s = e.maxCount > 1, i = e.maxCount > 1 ?
|
|
284
|
+
}, s = e.maxCount > 1, i = e.maxCount > 1 ? x.value : x.value[0];
|
|
285
285
|
await T(d, i, a, s);
|
|
286
286
|
}, v = () => {
|
|
287
|
-
|
|
287
|
+
P(_.value, z.value);
|
|
288
288
|
}, q = () => {
|
|
289
289
|
F(oe, e.templateName);
|
|
290
290
|
}, oe = async () => {
|
|
@@ -295,15 +295,15 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
295
295
|
return {
|
|
296
296
|
showProgressDialog: n,
|
|
297
297
|
progressTitle: h,
|
|
298
|
-
percent:
|
|
298
|
+
percent: u,
|
|
299
299
|
progressStatus: C,
|
|
300
300
|
progressLoading: g,
|
|
301
301
|
errorFileName: z,
|
|
302
|
-
errorFileSize:
|
|
302
|
+
errorFileSize: S,
|
|
303
303
|
errorMessage: I,
|
|
304
304
|
errorImport: b,
|
|
305
|
-
importDialog:
|
|
306
|
-
fileList:
|
|
305
|
+
importDialog: p,
|
|
306
|
+
fileList: x,
|
|
307
307
|
fileHandleType: E,
|
|
308
308
|
showImportHandle: R,
|
|
309
309
|
confirmImport: f,
|
|
@@ -312,7 +312,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
312
312
|
downTemplate: async () => {
|
|
313
313
|
let a = "";
|
|
314
314
|
if (e.templateUrl)
|
|
315
|
-
a = e.templateUrl,
|
|
315
|
+
a = e.templateUrl, P(ie(a), e.templateName);
|
|
316
316
|
else if (e.templateFun) {
|
|
317
317
|
if (e.templateType === "static") {
|
|
318
318
|
if (e.templateUrl)
|
|
@@ -321,13 +321,13 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
321
321
|
const [s, i] = await e.templateFun().run();
|
|
322
322
|
a = i;
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
P(ie(a), e.templateName);
|
|
325
325
|
}
|
|
326
326
|
e.templateType === "dynamic" && e.templateFun && q();
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
|
-
},
|
|
330
|
+
}, Ue = { class: "das-import-button" }, Me = { class: "tip-box" }, Ee = { class: "first-line" }, Le = { class: "second-line" }, je = /* @__PURE__ */ ge({
|
|
331
331
|
__name: "App",
|
|
332
332
|
props: {
|
|
333
333
|
importFun: {},
|
|
@@ -348,45 +348,45 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
348
348
|
multiple: { type: Boolean, default: !1 }
|
|
349
349
|
},
|
|
350
350
|
emits: ["open", "success", "error"],
|
|
351
|
-
setup(e, { expose: m, emit:
|
|
352
|
-
const n = e, h =
|
|
353
|
-
showProgressDialog:
|
|
351
|
+
setup(e, { expose: m, emit: p }) {
|
|
352
|
+
const n = e, h = p, {
|
|
353
|
+
showProgressDialog: u,
|
|
354
354
|
progressTitle: C,
|
|
355
355
|
percent: g,
|
|
356
356
|
progressStatus: z,
|
|
357
|
-
progressLoading:
|
|
357
|
+
progressLoading: S,
|
|
358
358
|
errorFileName: I,
|
|
359
359
|
errorFileSize: b,
|
|
360
360
|
errorMessage: _,
|
|
361
361
|
errorImport: E,
|
|
362
362
|
importDialog: T,
|
|
363
363
|
fileList: F,
|
|
364
|
-
fileHandleType:
|
|
365
|
-
showImportHandle:
|
|
364
|
+
fileHandleType: P,
|
|
365
|
+
showImportHandle: x,
|
|
366
366
|
confirmImport: j,
|
|
367
367
|
fileUpload: R,
|
|
368
368
|
errorFileDownload: V,
|
|
369
369
|
downTemplate: A
|
|
370
|
-
} =
|
|
371
|
-
let
|
|
372
|
-
return ve(
|
|
373
|
-
d.includes("import") ?
|
|
370
|
+
} = De(n, h);
|
|
371
|
+
let $;
|
|
372
|
+
return ve(P, (d) => {
|
|
373
|
+
d.includes("import") ? $ = [c("正在导入中..."), c("导入失败"), c("导入成功")] : $ = [c("正在导出中..."), c("导出失败"), c("导出成功")];
|
|
374
374
|
}), m({
|
|
375
375
|
confirmImport: j,
|
|
376
|
-
showImportHandle:
|
|
377
|
-
}), (d, f) => (he(), we("div",
|
|
376
|
+
showImportHandle: x
|
|
377
|
+
}), (d, f) => (he(), we("div", Ue, [
|
|
378
378
|
O("div", {
|
|
379
379
|
onClick: f[0] || (f[0] = //@ts-ignore
|
|
380
|
-
(...v) => o(
|
|
380
|
+
(...v) => o(x) && o(x)(...v))
|
|
381
381
|
}, [
|
|
382
382
|
re(d.$slots, "default", {}, () => [
|
|
383
|
-
|
|
383
|
+
D(o(W), {
|
|
384
384
|
size: "middle",
|
|
385
385
|
"btn-type": "primary"
|
|
386
386
|
}, {
|
|
387
387
|
default: L(() => [
|
|
388
388
|
K(
|
|
389
|
-
H(o(
|
|
389
|
+
H(o(U)("导入").value),
|
|
390
390
|
1
|
|
391
391
|
/* TEXT */
|
|
392
392
|
)
|
|
@@ -397,8 +397,8 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
397
397
|
], !0)
|
|
398
398
|
]),
|
|
399
399
|
le(" 导入弹窗 "),
|
|
400
|
-
|
|
401
|
-
title: o(
|
|
400
|
+
D(o(se), {
|
|
401
|
+
title: o(U)(d.importDialogName).value,
|
|
402
402
|
modelValue: o(T),
|
|
403
403
|
"onUpdate:modelValue": f[3] || (f[3] = (v) => Q(T) ? T.value = v : null),
|
|
404
404
|
customClass: "upload-dialog",
|
|
@@ -407,13 +407,13 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
407
407
|
}, {
|
|
408
408
|
footer: L(() => [
|
|
409
409
|
O("div", null, [
|
|
410
|
-
|
|
410
|
+
D(o(W), {
|
|
411
411
|
size: "middle",
|
|
412
412
|
onClick: f[2] || (f[2] = (v) => T.value = !1)
|
|
413
413
|
}, {
|
|
414
414
|
default: L(() => [
|
|
415
415
|
K(
|
|
416
|
-
H(o(
|
|
416
|
+
H(o(U)("取消").value),
|
|
417
417
|
1
|
|
418
418
|
/* TEXT */
|
|
419
419
|
)
|
|
@@ -421,16 +421,16 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
421
421
|
_: 1
|
|
422
422
|
/* STABLE */
|
|
423
423
|
}),
|
|
424
|
-
|
|
424
|
+
D(o(W), {
|
|
425
425
|
size: "middle",
|
|
426
426
|
"btn-type": "primary",
|
|
427
427
|
disabled: d.openDisabled && o(F).length === 0,
|
|
428
|
-
style: { "margin-left": "12px" },
|
|
428
|
+
style: { "margin-left": "12px", width: "100%" },
|
|
429
429
|
onClick: o(j)
|
|
430
430
|
}, {
|
|
431
431
|
default: L(() => [
|
|
432
432
|
K(
|
|
433
|
-
H(o(
|
|
433
|
+
H(o(U)(`${d.confirmButtonName}`).value),
|
|
434
434
|
1
|
|
435
435
|
/* TEXT */
|
|
436
436
|
)
|
|
@@ -445,11 +445,11 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
445
445
|
O("div", Me, [
|
|
446
446
|
O("div", Ee, [
|
|
447
447
|
K(
|
|
448
|
-
H(o(
|
|
448
|
+
H(o(U)("1、点击下载 ").value),
|
|
449
449
|
1
|
|
450
450
|
/* TEXT */
|
|
451
451
|
),
|
|
452
|
-
|
|
452
|
+
D(o(W), {
|
|
453
453
|
size: "large",
|
|
454
454
|
btnType: "primary-text",
|
|
455
455
|
block: "",
|
|
@@ -457,7 +457,7 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
457
457
|
}, {
|
|
458
458
|
default: L(() => [
|
|
459
459
|
K(
|
|
460
|
-
H(o(
|
|
460
|
+
H(o(U)(`${d.templateName}`).value),
|
|
461
461
|
1
|
|
462
462
|
/* TEXT */
|
|
463
463
|
)
|
|
@@ -469,13 +469,13 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
469
469
|
O(
|
|
470
470
|
"div",
|
|
471
471
|
Le,
|
|
472
|
-
H(o(
|
|
472
|
+
H(o(U)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
|
|
473
473
|
1
|
|
474
474
|
/* TEXT */
|
|
475
475
|
)
|
|
476
476
|
])
|
|
477
477
|
], !0),
|
|
478
|
-
|
|
478
|
+
D(o(xe), {
|
|
479
479
|
modelValue: o(F),
|
|
480
480
|
"onUpdate:modelValue": f[1] || (f[1] = (v) => Q(F) ? F.value = v : null),
|
|
481
481
|
error: o(E),
|
|
@@ -493,22 +493,22 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
493
493
|
/* FORWARDED */
|
|
494
494
|
}, 8, ["title", "modelValue"]),
|
|
495
495
|
le(" 进度弹窗 "),
|
|
496
|
-
|
|
496
|
+
D(o(se), {
|
|
497
497
|
size: "mini",
|
|
498
|
-
title: o(
|
|
498
|
+
title: o(U)(o(C)).value,
|
|
499
499
|
"is-feedback-img": !1,
|
|
500
|
-
modelValue: o(
|
|
501
|
-
"onUpdate:modelValue": f[5] || (f[5] = (v) => Q(
|
|
500
|
+
modelValue: o(u),
|
|
501
|
+
"onUpdate:modelValue": f[5] || (f[5] = (v) => Q(u) ? u.value = v : null),
|
|
502
502
|
type: "feedback"
|
|
503
503
|
}, {
|
|
504
504
|
default: L(() => [
|
|
505
|
-
|
|
505
|
+
D(o(ke), {
|
|
506
506
|
modelValue: o(g),
|
|
507
507
|
"onUpdate:modelValue": f[4] || (f[4] = (v) => Q(g) ? g.value = v : null),
|
|
508
508
|
style: { "margin-top": "35px" },
|
|
509
509
|
type: "circle",
|
|
510
510
|
status: o(z),
|
|
511
|
-
textMap: o(
|
|
511
|
+
textMap: o($)
|
|
512
512
|
}, null, 8, ["modelValue", "status", "textMap"])
|
|
513
513
|
]),
|
|
514
514
|
_: 1
|
|
@@ -517,19 +517,18 @@ const Te = ae.get("token"), Fe = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
517
517
|
]));
|
|
518
518
|
}
|
|
519
519
|
}), Re = (e, m) => {
|
|
520
|
-
const
|
|
520
|
+
const p = e.__vccOpts || e;
|
|
521
521
|
for (const [n, h] of m)
|
|
522
|
-
|
|
523
|
-
return
|
|
524
|
-
}, Ve = /* @__PURE__ */ Re(je, [["__scopeId", "data-v-
|
|
525
|
-
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "Click to Download", _appCode: "framework" },
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
"zh-CN": "重复数据以最后一条为准",
|
|
530
|
-
en: "Duplicate data is subject to the last entry",
|
|
522
|
+
p[n] = h;
|
|
523
|
+
return p;
|
|
524
|
+
}, Ve = /* @__PURE__ */ Re(je, [["__scopeId", "data-v-85787da8"]]), Be = {
|
|
525
|
+
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1、Click to Download", _appCode: "framework" },
|
|
526
|
+
"2、仅支持上传Excel文件,重复数据以最后一条为准": {
|
|
527
|
+
"zh-CN": "2、仅支持上传Excel文件,重复数据以最后一条为准",
|
|
528
|
+
en: "2、Only support uploading excel files,duplicate data is subject to the last entry",
|
|
531
529
|
_appCode: "framework"
|
|
532
530
|
},
|
|
531
|
+
文件: { "zh-CN": "文件", en: "File", _appCode: "framework" },
|
|
533
532
|
取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
|
|
534
533
|
正在导入中: { "zh-CN": "正在导入中", en: "Importing", _appCode: "framework" },
|
|
535
534
|
导入失败: { "zh-CN": "导入失败", en: "Import Failed", _appCode: "framework" },
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-import-button[data-v-
|
|
1
|
+
.das-import-button[data-v-85787da8]{display:inline-block}.das-import-button .upload-dialog .second-line[data-v-85787da8]{margin-bottom:20px}.das-import-button .upload-dialog .tips[data-v-85787da8]{font-size:16px}
|