yahee-components 0.0.85 → 0.0.87
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/es/common-import/common-import.vue.js +89 -88
- package/es/complex-search/complex-search.vue2.js +57 -53
- package/es/installs.js +10 -12
- package/es/yahee-components.css +1 -1
- package/package.json +1 -1
- package/types/src/installs.d.ts +2649 -0
- package/es/filter-container/filter-container.vue.js +0 -67
- package/es/filter-container/filter-container.vue2.js +0 -4
- package/es/filter-container/index.js +0 -7
- package/es/filter-wrapper/filter-wrapper.vue.js +0 -7
- package/es/filter-wrapper/filter-wrapper.vue2.js +0 -59
- package/es/filter-wrapper/index.js +0 -7
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
- package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as Ge, mergeDefaults as Le, toRefs as Pe, ref as
|
|
1
|
+
import { defineComponent as Ge, mergeDefaults as Le, toRefs as Pe, ref as p, watch as We, reactive as ze, onMounted as qe, onUnmounted as Ae, createElementBlock as y, openBlock as c, Fragment as ae, createVNode as s, unref as l, isRef as Ve, withCtx as r, withDirectives as re, createElementVNode as T, createCommentVNode as h, renderSlot as ne, createTextVNode as g, toDisplayString as i, renderList as Je, createBlock as w } from "vue";
|
|
2
2
|
import { M2 as u, translateEmployeeName as je } from "../utils/translate.js";
|
|
3
3
|
import { get as He } from "../packages/components/api/log-server.js";
|
|
4
4
|
import { getDomainBaseUrl as Xe } from "../utils/get-domain-base-url.js";
|
|
5
5
|
import { getUploadRecord as Ye } from "../packages/components/api/common-import/index.js";
|
|
6
6
|
import { defaultCommonImportProps as Ze } from "./props.js";
|
|
7
|
-
import { ElDialog as
|
|
7
|
+
import { ElDialog as se, ElRow as I, ElUpload as Qe, ElButton as W, ElCol as b, ElLink as z, ElProgress as Ke, ElCard as et, vLoading as ie, ElTable as tt, ElTableColumn as R, ElPagination as ot, ElMessage as S, ElMessageBox as ue } from "element-plus";
|
|
8
8
|
import "element-plus/theme-chalk/src/base.scss";
|
|
9
9
|
import "element-plus/theme-chalk/src/dialog.scss";
|
|
10
10
|
import "element-plus/theme-chalk/src/overlay.scss";
|
|
@@ -30,7 +30,7 @@ import "element-plus/theme-chalk/src/input.scss";
|
|
|
30
30
|
import "element-plus/theme-chalk/src/badge.scss";
|
|
31
31
|
import "element-plus/theme-chalk/src/message.scss";
|
|
32
32
|
import "element-plus/theme-chalk/src/message-box.scss";
|
|
33
|
-
const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 },
|
|
33
|
+
const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, nt = { key: 1 }, st = { style: { color: "red" } }, it = { class: "form-slot" }, ut = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "card-header"
|
|
36
36
|
}, dt = ["innerHTML"], ct = {
|
|
@@ -75,7 +75,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
75
75
|
requestData: X,
|
|
76
76
|
processFiles: fe,
|
|
77
77
|
filePath: ve
|
|
78
|
-
} = Pe(pe), M =
|
|
78
|
+
} = Pe(pe), M = p(!1), he = p(!1), N = p(!1), Y = p([]), m = p({}), Z = p(1), Q = p(1), A = p(50), _ = p({}), $ = p({}), K = p({}), C = {}, k = p({}), x = p({}), U = p({}), V = p(""), B = p(!1), O = p({
|
|
79
79
|
siteId: null,
|
|
80
80
|
reportTime: null,
|
|
81
81
|
fileName: ""
|
|
@@ -88,7 +88,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
88
88
|
}, be = (e) => {
|
|
89
89
|
var t, o, a;
|
|
90
90
|
return Number(
|
|
91
|
-
((((t =
|
|
91
|
+
((((t = m.value[e]) == null ? void 0 : t.successRowCount) + ((o = m.value[e]) == null ? void 0 : o.failedRowCount)) / ((a = m.value[e]) == null ? void 0 : a.totalRowCount) * 100).toFixed(0)
|
|
92
92
|
);
|
|
93
93
|
}, Ce = (e) => {
|
|
94
94
|
const t = e == null ? void 0 : e.CreateOn;
|
|
@@ -97,10 +97,10 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
97
97
|
if (!o) return "---";
|
|
98
98
|
const a = Number(o[1]);
|
|
99
99
|
if (Number.isNaN(a)) return "---";
|
|
100
|
-
const
|
|
101
|
-
if (Number.isNaN(
|
|
102
|
-
const v =
|
|
103
|
-
return `${v}-${
|
|
100
|
+
const n = new Date(a);
|
|
101
|
+
if (Number.isNaN(n.getTime())) return "---";
|
|
102
|
+
const v = n.getFullYear(), d = String(n.getMonth() + 1).padStart(2, "0"), L = String(n.getDate()).padStart(2, "0"), f = String(n.getHours()).padStart(2, "0"), P = String(n.getMinutes()).padStart(2, "0"), Oe = String(n.getSeconds()).padStart(2, "0");
|
|
103
|
+
return `${v}-${d}-${L} ${f}:${P}:${Oe}`;
|
|
104
104
|
}, ke = () => {
|
|
105
105
|
if (!k.value) return;
|
|
106
106
|
let e = "";
|
|
@@ -172,7 +172,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
172
172
|
} catch (t) {
|
|
173
173
|
N.value = !1, console.error("GetWebRoot 失败", t);
|
|
174
174
|
}
|
|
175
|
-
}, D =
|
|
175
|
+
}, D = p(/* @__PURE__ */ new Set()), E = ze({}), Te = (e) => {
|
|
176
176
|
B.value = !0;
|
|
177
177
|
const { file: t } = e, o = 100 * 1024 * 1024;
|
|
178
178
|
if (t.size > o) {
|
|
@@ -184,19 +184,19 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
184
184
|
});
|
|
185
185
|
}, $e = (e) => new Promise((t, o) => {
|
|
186
186
|
const a = new FileReader();
|
|
187
|
-
a.onload = () => t(a.result), a.onerror = (
|
|
187
|
+
a.onload = () => t(a.result), a.onerror = (n) => o(n), a.readAsDataURL(e);
|
|
188
188
|
}), xe = (e, t) => {
|
|
189
|
-
we(), D.value.has(e.name) ? (delete E[e.name], delete
|
|
189
|
+
we(), D.value.has(e.name) ? (delete E[e.name], delete m.value[e.name], delete _.value[e.name], delete $.value[e.name], delete C[e.name], delete x.value[e.name]) : D.value.add(e.name);
|
|
190
190
|
const o = new FormData();
|
|
191
191
|
o.append("FileType", "115"), o.append("FileName", e.name), o.append("Base64Content", t), o.append("CreatedBy", "0"), o.append("Offset", "0"), o.append("IsOver", "true");
|
|
192
192
|
const a = new XMLHttpRequest();
|
|
193
|
-
a.open("POST", `${le("fragmentupload?t=")}${Math.random()}`, !0), a.upload.onprogress = (
|
|
194
|
-
|
|
193
|
+
a.open("POST", `${le("fragmentupload?t=")}${Math.random()}`, !0), a.upload.onprogress = (n) => {
|
|
194
|
+
n.lengthComputable && (E[e.name] = Math.round(n.loaded / n.total * 100));
|
|
195
195
|
}, a.onload = () => {
|
|
196
196
|
if (a.status === 200)
|
|
197
197
|
try {
|
|
198
|
-
const
|
|
199
|
-
if (console.log("服务器返回值:",
|
|
198
|
+
const n = JSON.parse(a.responseText);
|
|
199
|
+
if (console.log("服务器返回值:", n), n.ACK !== "Success" || !n.FileId) {
|
|
200
200
|
S.error(`${e.name} 上传失败`);
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
@@ -208,14 +208,14 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
208
208
|
// ES6可选链避免报错
|
|
209
209
|
}, _.value[e.name] || (_.value[e.name] = Me(20)), Fe({
|
|
210
210
|
importId: F.value,
|
|
211
|
-
fileId:
|
|
211
|
+
fileId: n.FileId,
|
|
212
212
|
wsSessionId: _.value[e.name],
|
|
213
213
|
file: e,
|
|
214
214
|
requestData: O.value
|
|
215
215
|
});
|
|
216
216
|
}, 500);
|
|
217
|
-
} catch (
|
|
218
|
-
console.error("解析服务器返回值失败:",
|
|
217
|
+
} catch (n) {
|
|
218
|
+
console.error("解析服务器返回值失败:", n), S.error(`${e.name} 上传完成,但解析返回值失败`);
|
|
219
219
|
}
|
|
220
220
|
else
|
|
221
221
|
S.error(`${e.name} 上传失败`);
|
|
@@ -224,13 +224,14 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
224
224
|
}, a.send(o);
|
|
225
225
|
}, Fe = (e) => {
|
|
226
226
|
fe.value(H.value, e, {}).then((t) => {
|
|
227
|
-
var
|
|
227
|
+
var n;
|
|
228
228
|
if (B.value = !1, console.log("processFiles 返回值:", t), t != null && t.success) {
|
|
229
|
-
|
|
229
|
+
let v = "文件导入成功";
|
|
230
|
+
t != null && t.fileId && (v = "存在失败的条目,详情请查看输出文件"), ue.alert(v, "操作成功", {
|
|
230
231
|
confirmButtonText: "确定",
|
|
231
232
|
callback: () => {
|
|
232
|
-
var
|
|
233
|
-
t != null && t.fileId && ($.value[(
|
|
233
|
+
var d;
|
|
234
|
+
t != null && t.fileId && ($.value[(d = e == null ? void 0 : e.file) == null ? void 0 : d.name] = t.fileId, K.value = t.data, me.value && ye());
|
|
234
235
|
}
|
|
235
236
|
});
|
|
236
237
|
return;
|
|
@@ -243,7 +244,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
243
244
|
confirmButtonText: "知道了",
|
|
244
245
|
customClass: "custom-common-import-alert",
|
|
245
246
|
dangerouslyUseHTMLString: !0
|
|
246
|
-
}), t != null && t.fileId && ($.value[(
|
|
247
|
+
}), t != null && t.fileId && ($.value[(n = e == null ? void 0 : e.file) == null ? void 0 : n.name] = t.fileId);
|
|
247
248
|
}).catch((t) => {
|
|
248
249
|
var a;
|
|
249
250
|
console.error("processFiles 失败", t);
|
|
@@ -262,23 +263,23 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
262
263
|
return o.indexOf("localhost") >= 0 || o.indexOf("yahee.com") >= 0 ? t = "ws://qas-newerp.yahee.com.cn:8306" : t = "wss://websocket.yaheecloud.com:10001", t + e;
|
|
263
264
|
}, Ue = async () => await He(j("/Common/GetWsAuthCode")), Be = (e) => {
|
|
264
265
|
C[e] = new WebSocket(Ne("/excel-import/")), C[e].onmessage = (t) => {
|
|
265
|
-
var a,
|
|
266
|
+
var a, n;
|
|
266
267
|
if (t.data == "get-auth") {
|
|
267
268
|
Ue().then((v) => {
|
|
268
|
-
var
|
|
269
|
-
console.log("发送authCode:", v), (
|
|
269
|
+
var d;
|
|
270
|
+
console.log("发送authCode:", v), (d = C[e]) == null || d.send(`auth:${v}`);
|
|
270
271
|
});
|
|
271
272
|
return;
|
|
272
273
|
}
|
|
273
274
|
const o = JSON.parse(t.data);
|
|
274
275
|
if (console.log("接收普通消息", o), !!o)
|
|
275
276
|
if (o.MessageType === 0) {
|
|
276
|
-
const v = o.MessageIndex || 0,
|
|
277
|
-
if ((
|
|
278
|
-
x.value[e] =
|
|
277
|
+
const v = o.MessageIndex || 0, d = JSON.parse(o == null ? void 0 : o.Content);
|
|
278
|
+
if ((d == null ? void 0 : d.error) == !0) {
|
|
279
|
+
x.value[e] = d.message;
|
|
279
280
|
return;
|
|
280
281
|
}
|
|
281
|
-
(!
|
|
282
|
+
(!m.value[e] || v > ((a = m.value[e]) == null ? void 0 : a.MessageIndex)) && (m.value[e] = d, m.value[e].MessageIndex = v, d != null && d.finished && ((n = C[e]) == null || n.close()));
|
|
282
283
|
} else o.MessageType === 1 ? _.value[e] = o.Content : console.log("进度:", o);
|
|
283
284
|
}, C[e].onerror = (t) => {
|
|
284
285
|
console.error("WebSocket 错误:", t), t instanceof ErrorEvent ? console.error("Error message:", t.message) : console.error("Unknown WebSocket error:", t);
|
|
@@ -305,8 +306,8 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
305
306
|
var t;
|
|
306
307
|
(t = C[e]) == null || t.close();
|
|
307
308
|
});
|
|
308
|
-
}), (e, t) => (
|
|
309
|
-
|
|
309
|
+
}), (e, t) => (c(), y(ae, null, [
|
|
310
|
+
s(l(se), {
|
|
310
311
|
modelValue: l(q),
|
|
311
312
|
"onUpdate:modelValue": t[1] || (t[1] = (o) => Ve(q) ? q.value = o : null),
|
|
312
313
|
title: l(u)(l(ge)),
|
|
@@ -318,13 +319,13 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
318
319
|
default: r(() => {
|
|
319
320
|
var o;
|
|
320
321
|
return [
|
|
321
|
-
re((
|
|
322
|
+
re((c(), y("div", null, [
|
|
322
323
|
T("div", lt, [
|
|
323
|
-
|
|
324
|
+
ne(e.$slots, "form")
|
|
324
325
|
]),
|
|
325
|
-
|
|
326
|
+
s(l(I), null, {
|
|
326
327
|
default: r(() => [
|
|
327
|
-
|
|
328
|
+
s(l(Qe), {
|
|
328
329
|
class: "upload-record",
|
|
329
330
|
"http-request": Te,
|
|
330
331
|
accept: ".xls,.xlsx,.txt,.csv",
|
|
@@ -335,7 +336,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
335
336
|
disabled: e.uploadDisabled || B.value
|
|
336
337
|
}, {
|
|
337
338
|
default: r(() => [
|
|
338
|
-
|
|
339
|
+
s(l(W), {
|
|
339
340
|
style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
|
|
340
341
|
size: "large",
|
|
341
342
|
type: "primary",
|
|
@@ -353,22 +354,22 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
353
354
|
]),
|
|
354
355
|
_: 1
|
|
355
356
|
}),
|
|
356
|
-
(o = D.value) != null && o.size ? (
|
|
357
|
-
(
|
|
358
|
-
var
|
|
359
|
-
return
|
|
357
|
+
(o = D.value) != null && o.size ? (c(), y("div", at, [
|
|
358
|
+
(c(!0), y(ae, null, Je(D.value, (a) => {
|
|
359
|
+
var n, v;
|
|
360
|
+
return c(), y("div", {
|
|
360
361
|
key: a,
|
|
361
362
|
class: "uploadProgress"
|
|
362
363
|
}, [
|
|
363
|
-
|
|
364
|
+
s(l(I), { style: { "margin-bottom": "5px" } }, {
|
|
364
365
|
default: r(() => [
|
|
365
|
-
|
|
366
|
+
s(l(b), { span: 18 }, {
|
|
366
367
|
default: r(() => [
|
|
367
|
-
|
|
368
|
+
s(l(z), {
|
|
368
369
|
type: "primary",
|
|
369
370
|
underline: !1,
|
|
370
371
|
style: { font: "inherit" },
|
|
371
|
-
onClick: t[0] || (t[0] = (
|
|
372
|
+
onClick: t[0] || (t[0] = (d) => G(k.value.Template))
|
|
372
373
|
}, {
|
|
373
374
|
default: r(() => [
|
|
374
375
|
g(i(a), 1)
|
|
@@ -378,19 +379,19 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
378
379
|
]),
|
|
379
380
|
_: 2
|
|
380
381
|
}, 1024),
|
|
381
|
-
E[a] ? (
|
|
382
|
+
E[a] ? (c(), w(l(b), {
|
|
382
383
|
key: 0,
|
|
383
384
|
span: 6
|
|
384
385
|
}, {
|
|
385
386
|
default: r(() => [
|
|
386
|
-
E[a] == 100 ? (
|
|
387
|
+
E[a] == 100 ? (c(), y("span", rt, i(l(u)("文件上传完成")), 1)) : (c(), y("span", nt, i(l(u)("文件正在上传,进度") + `${E[a]}% ...`), 1))
|
|
387
388
|
]),
|
|
388
389
|
_: 2
|
|
389
390
|
}, 1024)) : h("", !0)
|
|
390
391
|
]),
|
|
391
392
|
_: 2
|
|
392
393
|
}, 1024),
|
|
393
|
-
_.value[a] ? (
|
|
394
|
+
_.value[a] ? (c(), w(l(I), {
|
|
394
395
|
key: 0,
|
|
395
396
|
style: { "margin-bottom": "5px" }
|
|
396
397
|
}, {
|
|
@@ -399,50 +400,50 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
399
400
|
]),
|
|
400
401
|
_: 2
|
|
401
402
|
}, 1024)) : h("", !0),
|
|
402
|
-
x.value[a] ? (
|
|
403
|
+
x.value[a] ? (c(), w(l(I), {
|
|
403
404
|
key: 1,
|
|
404
405
|
style: { "margin-bottom": "5px" }
|
|
405
406
|
}, {
|
|
406
407
|
default: r(() => [
|
|
407
|
-
T("span",
|
|
408
|
+
T("span", st, i(l(u)(x.value[a])), 1)
|
|
408
409
|
]),
|
|
409
410
|
_: 2
|
|
410
411
|
}, 1024)) : h("", !0),
|
|
411
|
-
(
|
|
412
|
+
(n = m.value[a]) != null && n.totalRowCount ? (c(), w(l(I), {
|
|
412
413
|
key: 2,
|
|
413
414
|
style: { "margin-bottom": "5px" }
|
|
414
415
|
}, {
|
|
415
416
|
default: r(() => {
|
|
416
|
-
var
|
|
417
|
+
var d, L;
|
|
417
418
|
return [
|
|
418
|
-
|
|
419
|
+
s(l(b), { span: 6 }, {
|
|
419
420
|
default: r(() => {
|
|
420
421
|
var f, P;
|
|
421
422
|
return [
|
|
422
|
-
g(i(l(u)("工作簿")) + ":" + i((f =
|
|
423
|
+
g(i(l(u)("工作簿")) + ":" + i((f = m.value[a]) == null ? void 0 : f.currentSheet) + "/" + i((P = m.value[a]) == null ? void 0 : P.sheetCount), 1)
|
|
423
424
|
];
|
|
424
425
|
}),
|
|
425
426
|
_: 2
|
|
426
427
|
}, 1024),
|
|
427
|
-
|
|
428
|
+
s(l(b), { span: 6 }, {
|
|
428
429
|
default: r(() => {
|
|
429
430
|
var f;
|
|
430
431
|
return [
|
|
431
|
-
g(i(l(u)("总行数")) + ":" + i((f =
|
|
432
|
+
g(i(l(u)("总行数")) + ":" + i((f = m.value[a]) == null ? void 0 : f.totalRowCount), 1)
|
|
432
433
|
];
|
|
433
434
|
}),
|
|
434
435
|
_: 2
|
|
435
436
|
}, 1024),
|
|
436
|
-
|
|
437
|
+
s(l(b), { span: 6 }, {
|
|
437
438
|
default: r(() => {
|
|
438
439
|
var f;
|
|
439
440
|
return [
|
|
440
|
-
g(i(l(u)("成功行数")) + ":" + i((f =
|
|
441
|
+
g(i(l(u)("成功行数")) + ":" + i((f = m.value[a]) == null ? void 0 : f.successRowCount), 1)
|
|
441
442
|
];
|
|
442
443
|
}),
|
|
443
444
|
_: 2
|
|
444
445
|
}, 1024),
|
|
445
|
-
(
|
|
446
|
+
(d = m.value[a]) != null && d.failedRowCount ? h("", !0) : (c(), w(l(b), {
|
|
446
447
|
key: 0,
|
|
447
448
|
span: 6
|
|
448
449
|
}, {
|
|
@@ -451,14 +452,14 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
451
452
|
]),
|
|
452
453
|
_: 1
|
|
453
454
|
})),
|
|
454
|
-
(L =
|
|
455
|
+
(L = m.value[a]) != null && L.failedRowCount ? (c(), w(l(b), {
|
|
455
456
|
key: 1,
|
|
456
457
|
span: 6,
|
|
457
458
|
style: { display: "flex" }
|
|
458
459
|
}, {
|
|
459
460
|
default: r(() => [
|
|
460
461
|
g(i(l(u)("失败行数")) + ": ", 1),
|
|
461
|
-
|
|
462
|
+
s(l(z), {
|
|
462
463
|
type: "primary",
|
|
463
464
|
underline: !1,
|
|
464
465
|
title: $.value[a],
|
|
@@ -467,7 +468,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
467
468
|
default: r(() => {
|
|
468
469
|
var f;
|
|
469
470
|
return [
|
|
470
|
-
g(i((f =
|
|
471
|
+
g(i((f = m.value[a]) == null ? void 0 : f.failedRowCount), 1)
|
|
471
472
|
];
|
|
472
473
|
}),
|
|
473
474
|
_: 2
|
|
@@ -480,34 +481,34 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
480
481
|
_: 2
|
|
481
482
|
}, 1024)) : h("", !0),
|
|
482
483
|
t[3] || (t[3] = T("br", null, null, -1)),
|
|
483
|
-
(v =
|
|
484
|
+
(v = m.value[a]) != null && v.totalRowCount ? (c(), w(l(Ke), {
|
|
484
485
|
key: 3,
|
|
485
486
|
percentage: be(a)
|
|
486
487
|
}, null, 8, ["percentage"])) : h("", !0),
|
|
487
488
|
T("div", it, [
|
|
488
|
-
|
|
489
|
+
ne(e.$slots, "resultMessage")
|
|
489
490
|
])
|
|
490
491
|
]);
|
|
491
492
|
}), 128))
|
|
492
493
|
])) : h("", !0),
|
|
493
|
-
|
|
494
|
+
s(l(I), { style: { "margin-top": "10px" } }, {
|
|
494
495
|
default: r(() => [
|
|
495
|
-
|
|
496
|
+
s(l(et), { style: { width: "860px" } }, {
|
|
496
497
|
header: r(() => [
|
|
497
|
-
e.displayGetTemplate ? (
|
|
498
|
+
e.displayGetTemplate ? (c(), y("div", ut, [
|
|
498
499
|
T("span", null, i(l(u)("说明")), 1)
|
|
499
500
|
])) : h("", !0)
|
|
500
501
|
]),
|
|
501
502
|
footer: r(() => [
|
|
502
|
-
|
|
503
|
+
s(l(I), null, {
|
|
503
504
|
default: r(() => [
|
|
504
|
-
|
|
505
|
-
|
|
505
|
+
s(l(b), { span: 10 }),
|
|
506
|
+
s(l(b), {
|
|
506
507
|
span: 14,
|
|
507
508
|
style: { display: "flex", "justify-content": "flex-end" }
|
|
508
509
|
}, {
|
|
509
510
|
default: r(() => [
|
|
510
|
-
e.displayGetTemplate && k.value.TemplateType != 0 ? (
|
|
511
|
+
e.displayGetTemplate && k.value.TemplateType != 0 ? (c(), w(l(W), {
|
|
511
512
|
key: 0,
|
|
512
513
|
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
513
514
|
size: "large",
|
|
@@ -518,7 +519,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
518
519
|
]),
|
|
519
520
|
_: 1
|
|
520
521
|
})) : h("", !0),
|
|
521
|
-
|
|
522
|
+
s(l(W), {
|
|
522
523
|
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
523
524
|
size: "large",
|
|
524
525
|
onClick: Se
|
|
@@ -528,7 +529,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
528
529
|
]),
|
|
529
530
|
_: 1
|
|
530
531
|
}),
|
|
531
|
-
|
|
532
|
+
s(l(W), {
|
|
532
533
|
style: { color: "#949592", "font-weight": "bold" },
|
|
533
534
|
size: "large",
|
|
534
535
|
onClick: ee
|
|
@@ -546,7 +547,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
546
547
|
})
|
|
547
548
|
]),
|
|
548
549
|
default: r(() => [
|
|
549
|
-
e.displayGetTemplate ? (
|
|
550
|
+
e.displayGetTemplate ? (c(), y("div", {
|
|
550
551
|
key: 0,
|
|
551
552
|
innerHTML: k.value.Description
|
|
552
553
|
}, null, 8, dt)) : h("", !0)
|
|
@@ -563,7 +564,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
563
564
|
}),
|
|
564
565
|
_: 3
|
|
565
566
|
}, 8, ["modelValue", "title"]),
|
|
566
|
-
|
|
567
|
+
s(l(se), {
|
|
567
568
|
modelValue: M.value,
|
|
568
569
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => M.value = o),
|
|
569
570
|
title: l(u)("导入记录"),
|
|
@@ -573,7 +574,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
573
574
|
}, {
|
|
574
575
|
default: r(() => [
|
|
575
576
|
T("div", null, [
|
|
576
|
-
re((
|
|
577
|
+
re((c(), w(l(tt), {
|
|
577
578
|
border: "",
|
|
578
579
|
"row-key": "id",
|
|
579
580
|
data: Y.value,
|
|
@@ -582,13 +583,13 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
582
583
|
"empty-text": l(u)("暂无数据")
|
|
583
584
|
}, {
|
|
584
585
|
default: r(() => [
|
|
585
|
-
|
|
586
|
+
s(l(R), {
|
|
586
587
|
align: "center",
|
|
587
588
|
label: l(u)("记录ID"),
|
|
588
589
|
"min-width": "220",
|
|
589
590
|
prop: "TaskId"
|
|
590
591
|
}, null, 8, ["label"]),
|
|
591
|
-
|
|
592
|
+
s(l(R), {
|
|
592
593
|
align: "center",
|
|
593
594
|
label: l(u)("导入时间"),
|
|
594
595
|
"min-width": "100"
|
|
@@ -598,7 +599,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
598
599
|
]),
|
|
599
600
|
_: 1
|
|
600
601
|
}, 8, ["label"]),
|
|
601
|
-
|
|
602
|
+
s(l(R), {
|
|
602
603
|
align: "center",
|
|
603
604
|
label: l(u)("导入人")
|
|
604
605
|
}, {
|
|
@@ -607,13 +608,13 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
607
608
|
]),
|
|
608
609
|
_: 1
|
|
609
610
|
}, 8, ["label"]),
|
|
610
|
-
|
|
611
|
+
s(l(R), {
|
|
611
612
|
align: "center",
|
|
612
613
|
label: l(u)("上传文件"),
|
|
613
614
|
"min-width": "160"
|
|
614
615
|
}, {
|
|
615
616
|
default: r((o) => [
|
|
616
|
-
|
|
617
|
+
s(l(z), {
|
|
617
618
|
type: "primary",
|
|
618
619
|
underline: !1,
|
|
619
620
|
style: { font: "inherit" },
|
|
@@ -627,13 +628,13 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
627
628
|
]),
|
|
628
629
|
_: 1
|
|
629
630
|
}, 8, ["label"]),
|
|
630
|
-
|
|
631
|
+
s(l(R), {
|
|
631
632
|
align: "center",
|
|
632
633
|
label: l(u)("输出文件"),
|
|
633
634
|
"min-width": "160"
|
|
634
635
|
}, {
|
|
635
636
|
default: r((o) => [
|
|
636
|
-
|
|
637
|
+
s(l(z), {
|
|
637
638
|
type: "primary",
|
|
638
639
|
underline: !1,
|
|
639
640
|
style: { font: "inherit" },
|
|
@@ -647,18 +648,18 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
647
648
|
]),
|
|
648
649
|
_: 1
|
|
649
650
|
}, 8, ["label"]),
|
|
650
|
-
|
|
651
|
+
s(l(R), {
|
|
651
652
|
align: "center",
|
|
652
653
|
label: l(u)("错误信息"),
|
|
653
654
|
prop: "ErrorMessage",
|
|
654
655
|
width: "200"
|
|
655
656
|
}, {
|
|
656
657
|
default: r((o) => [
|
|
657
|
-
o.row.ErrorMessage ? (
|
|
658
|
+
o.row.ErrorMessage ? (c(), y("div", ct, i(o.row.ErrorMessage), 1)) : h("", !0)
|
|
658
659
|
]),
|
|
659
660
|
_: 1
|
|
660
661
|
}, 8, ["label"]),
|
|
661
|
-
|
|
662
|
+
s(l(R), {
|
|
662
663
|
align: "center",
|
|
663
664
|
label: l(u)("备注"),
|
|
664
665
|
prop: "Remark"
|
|
@@ -668,7 +669,7 @@ const lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, st = { key:
|
|
|
668
669
|
}, 8, ["data", "empty-text"])), [
|
|
669
670
|
[l(ie), he.value]
|
|
670
671
|
]),
|
|
671
|
-
|
|
672
|
+
s(l(ot), {
|
|
672
673
|
"current-page": Z.value,
|
|
673
674
|
"page-sizes": [50, 100, 150, 200],
|
|
674
675
|
"page-size": A.value,
|