yahee-components 0.0.75 → 0.0.81

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.
Files changed (62) hide show
  1. package/es/annex-upload/annex-upload.vue.js +51 -154
  2. package/es/annex-upload/annex-upload.vue2.js +119 -2
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/api/server.js +24 -19
  5. package/es/api/tool.js +31 -28
  6. package/es/border-wrap/border-wrap.vue.js +64 -95
  7. package/es/border-wrap/border-wrap.vue2.js +46 -2
  8. package/es/common-import/common-import.vue.js +369 -640
  9. package/es/common-import/common-import.vue2.js +328 -2
  10. package/es/common-import/index.js +3 -3
  11. package/es/common-import/props.js +4 -1
  12. package/es/complex-search/complex-search.vue.js +15 -15
  13. package/es/copy/copy.vue.js +37 -55
  14. package/es/copy/copy.vue2.js +34 -2
  15. package/es/copy/index.js +3 -3
  16. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
  17. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  18. package/es/drop-down-condition/drop-down-condition.vue.js +113 -213
  19. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  20. package/es/echart-gauge/echart-gauge.vue.js +12 -140
  21. package/es/echart-gauge/echart-gauge.vue2.js +147 -2
  22. package/es/echart-gauge/index.js +3 -3
  23. package/es/image-upload/image-upload.vue.js +109 -170
  24. package/es/image-upload/image-upload.vue2.js +91 -2
  25. package/es/image-upload/index.js +3 -3
  26. package/es/input/index.js +3 -3
  27. package/es/input/input.vue.js +17 -38
  28. package/es/input/input.vue2.js +33 -2
  29. package/es/left-condition/index.js +3 -3
  30. package/es/left-condition/left-condition-sub.vue.js +32 -91
  31. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  32. package/es/left-condition/left-condition.vue.js +70 -218
  33. package/es/left-condition/left-condition.vue2.js +160 -2
  34. package/es/left-condition-enum/index.js +3 -3
  35. package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
  36. package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
  37. package/es/operation-log/operation-log-content.vue.js +71 -92
  38. package/es/operation-log/operation-log-content.vue2.js +39 -2
  39. package/es/operation-log/operation-log-dialog.vue.js +46 -68
  40. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  41. package/es/operation-log/operation-log-form.vue.js +108 -183
  42. package/es/operation-log/operation-log-form.vue2.js +104 -2
  43. package/es/operation-log/operation-log.vue.js +119 -228
  44. package/es/operation-log/operation-log.vue2.js +135 -2
  45. package/es/packages/components/api/log-server.js +6 -6
  46. package/es/packages/components/api/server.js +18 -20
  47. package/es/packages/components/api/tool.js +35 -32
  48. package/es/packages/components/api/upload-server.js +1 -1
  49. package/es/packages/components/hooks/useEcharts.js +19 -19
  50. package/es/packages/components/hooks/useImg.js +8 -8
  51. package/es/scale-screen/index.js +4 -4
  52. package/es/scale-screen/scale-screen.vue.js +19 -126
  53. package/es/scale-screen/scale-screen.vue2.js +125 -2
  54. package/es/utils/translate.js +21 -21
  55. package/package.json +46 -46
  56. package/readme.md +249 -249
  57. package/types/src/common-import/common-import.vue.d.ts +10 -0
  58. package/types/src/common-import/index.d.ts +25 -0
  59. package/types/src/common-import/props.d.ts +19 -0
  60. package/types/src/installs.d.ts +25 -0
  61. package/types/src/left-condition-enum/left-condition-enum.d.ts +3 -0
  62. package/es/packages/components/api/common/index.js +0 -7
@@ -1,665 +1,394 @@
1
- import { defineComponent, mergeDefaults, toRefs, ref, watch, reactive, onMounted, onUnmounted, createElementBlock, openBlock, Fragment, createVNode, unref, isRef, withCtx, withDirectives, createElementVNode, createCommentVNode, renderSlot, createTextVNode, toDisplayString, renderList, createBlock } from "vue";
2
- import { M2, translateEmployeeName } from "../utils/translate.js";
3
- import { get } from "../packages/components/api/log-server.js";
4
- import { getDomainBaseUrl } from "../utils/get-domain-base-url.js";
5
- import { processFiles } from "../packages/components/api/common/index.js";
6
- import { getUploadRecord } from "../packages/components/api/common-import/index.js";
7
- import { defaultCommonImportProps } from "./props.js";
8
- import { ElDialog, ElRow, ElUpload, ElButton, ElCol, ElLink, ElProgress, ElCard, vLoading, ElTable, ElTableColumn, ElPagination, ElMessage, ElMessageBox } from "element-plus";
9
- import "element-plus/theme-chalk/src/base.scss";
10
- import "element-plus/theme-chalk/src/dialog.scss";
11
- import "element-plus/theme-chalk/src/overlay.scss";
12
- import "element-plus/theme-chalk/src/row.scss";
13
- import "element-plus/theme-chalk/src/button.scss";
14
- import "element-plus/theme-chalk/src/link.scss";
15
- import "element-plus/theme-chalk/src/col.scss";
16
- import "element-plus/theme-chalk/src/table.scss";
17
- import "element-plus/theme-chalk/src/checkbox.scss";
18
- import "element-plus/theme-chalk/src/tooltip.scss";
19
- import "element-plus/theme-chalk/src/popper.scss";
20
- import "element-plus/theme-chalk/src/scrollbar.scss";
21
- import "element-plus/theme-chalk/src/table-column.scss";
22
- import "element-plus/theme-chalk/src/tag.scss";
23
- import "element-plus/theme-chalk/src/upload.scss";
24
- import "element-plus/theme-chalk/src/progress.scss";
25
- import "element-plus/theme-chalk/src/card.scss";
26
- import "element-plus/theme-chalk/src/pagination.scss";
27
- import "element-plus/theme-chalk/src/option.scss";
28
- import "element-plus/theme-chalk/src/option-group.scss";
29
- import "element-plus/theme-chalk/src/select.scss";
30
- import "element-plus/theme-chalk/src/input.scss";
31
- import "element-plus/theme-chalk/src/badge.scss";
32
- import "element-plus/theme-chalk/src/message.scss";
33
- import "element-plus/theme-chalk/src/message-box.scss";
34
- const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 0 }, _hoisted_4 = { key: 1 }, _hoisted_5 = { style: { color: "red" } }, _hoisted_6 = {
1
+ import x from "./common-import.vue2.js";
2
+ import { createElementBlock as m, openBlock as t, Fragment as k, createVNode as o, withCtx as e, withDirectives as M, createElementVNode as y, createCommentVNode as g, renderSlot as v, createTextVNode as n, toDisplayString as a, renderList as R, createBlock as f } from "vue";
3
+ import D from "../_virtual/_plugin-vue_export-helper.js";
4
+ const T = { class: "form-slot" }, P = { key: 0 }, F = { key: 0 }, I = { key: 1 }, L = { style: { color: "red" } }, z = { class: "form-slot" }, S = {
35
5
  key: 0,
36
6
  class: "card-header"
37
- }, _hoisted_7 = ["innerHTML"], _hoisted_8 = {
7
+ }, V = ["innerHTML"], B = {
38
8
  key: 0,
39
9
  class: "ellipsis-cell"
40
- }, __default__ = {
41
- name: "YaheeCommonImport",
42
- inheritAttrs: !1
43
- }, _sfc_main = /* @__PURE__ */ defineComponent({
44
- ...__default__,
45
- name: "YaheeCommonImport",
46
- props: /* @__PURE__ */ mergeDefaults({
47
- isShowDialog: { type: Boolean },
48
- title: {},
49
- importId: {},
50
- multiple: { type: Boolean },
51
- ProcessRequestData: {},
52
- AutoCompleteResult: { type: Boolean },
53
- displayGetTemplate: { type: Boolean },
54
- processImportUrl: {},
55
- requestData: {},
56
- uploadRecord: { type: Function },
57
- uploadFile: { type: Function },
58
- uploadDisabled: { type: Boolean }
59
- }, defaultCommonImportProps()),
60
- emits: ["setIsShowDialog", "submit", "reloadTableData"],
61
- setup(__props, { emit: __emit }) {
62
- const props = __props, { isShowDialog, title, importId, processImportUrl, requestData } = toRefs(props), isShowCoreImportRecordDialog = ref(!1), tableLoading = ref(!1), initWebRootUrlLoading = ref(!1), tableData = ref([]), importProgress = ref({}), pageNo = ref(1), totalNum = ref(1), pageSize = ref(50), sessionIds = ref({}), problemFiles = ref({}), socket = {}, eventData = ref({}), errorMessage = ref({}), allWebRoot = ref({}), webRoot = ref(""), localRequestData = ref({
63
- siteId: null,
64
- reportTime: null,
65
- fileName: ""
66
- }), emit = __emit, handleClose = () => {
67
- emit("setIsShowDialog", !1);
68
- }, triggerSubmit = () => {
69
- emit("submit");
70
- }, getProgressPercentage = (e) => {
71
- var t, o, l;
72
- return Number(
73
- ((((t = importProgress.value[e]) == null ? void 0 : t.successRowCount) + ((o = importProgress.value[e]) == null ? void 0 : o.failedRowCount)) / ((l = importProgress.value[e]) == null ? void 0 : l.totalRowCount) * 100).toFixed(0)
74
- );
75
- }, getFormattedDate = (row) => {
76
- const utcDate = eval(
77
- `new Date(${row.CreateOn.replace(/\d+(?=-[^-]+$)/, (e) => parseInt(e, 10) - 1).match(/\d+/g)})`
78
- ), localDate = new Date(utcDate.getTime() - utcDate.getTimezoneOffset() * 6e4);
79
- return LongDate(localDate, "---");
80
- }, LongDate = (e, t) => {
81
- const o = new Date(e);
82
- let l = 0, r = 0, s = 0, a = 0, i = 0, n = "";
83
- return l = o.getFullYear(), l === 1 || l === 1970 || l === 1900 || isNaN(l) ? t !== void 0 ? t : "---" : (r = o.getMonth() + 1, s = o.getDate(), a = o.getHours(), i = o.getMinutes(), n = `${l}-`, n += r >= 10 ? `${r}-` : `0${r}-`, n += s >= 10 ? s : `0${s}`, n += a >= 10 ? ` ${a}` : ` 0${a}`, n += i >= 10 ? `:${i}` : `:0${i}`, n);
84
- }, getTemplateFile = () => {
85
- if (!eventData.value) return;
86
- let e = "";
87
- eventData.value.TemplateType == 1 ? e = getFileServiceUrl(
88
- `${eventData.value.Template}?dispositionType=attachment&t=${(/* @__PURE__ */ new Date()).getTime()}`
89
- ) : eventData.value.TemplateType == 2 && console.log("获取模板文件失败,暂不支持报表导出"), window.open(e, "_self");
90
- }, displayRecords = () => {
91
- isShowCoreImportRecordDialog.value = !0, handleSizeChange(pageSize.value);
92
- }, handleCloseRecord = () => {
93
- isShowCoreImportRecordDialog.value = !1;
94
- }, handleOpen = () => {
95
- fileNames.value = /* @__PURE__ */ new Set();
96
- }, getFile = (e) => {
97
- e && window.open(`https://imgs.yaheecloud.com//${e}`, "_self");
98
- }, handleSizeChange = async (e) => {
99
- getUploadRecordDataList(JSON.stringify({ rows: pageSize.value, page: e }));
100
- };
101
- watch(
102
- () => requestData,
103
- (e) => {
104
- e && (localRequestData.value = requestData.value);
105
- },
106
- { immediate: !0, deep: !0 }
107
- );
108
- const getUploadRecordDataList = (e) => {
109
- getUploadRecord(`/ExcelImport/GetExcelImportRecords?importId=${importId.value}`, e).then((t) => {
110
- var o, l;
111
- t.status !== 200 && (ElMessage.error(M2("获取上传记录失败!")), console.log(`获取上传记录失败!${JSON.stringify(t)}`)), tableData.value = (o = t.data) == null ? void 0 : o.rows, totalNum.value = (l = t.data) == null ? void 0 : l.total;
112
- }).catch((t) => {
113
- console.log(t);
114
- });
115
- }, handleCurrentChange = (e) => {
116
- getUploadRecordDataList(JSON.stringify({ rows: e, page: pageNo.value }));
117
- }, fetchExcelImportEvent = async (e) => {
118
- const t = `${getCommonUrl("/ExcelImport/GetExcelImportEvent")}?origin=${window.location.host}&importId=${e}`;
119
- try {
120
- const o = await fetch(t, {
121
- method: "GET",
122
- credentials: "include"
123
- });
124
- return o.ok || ElMessage.error(`Network response was not ok: ${o.statusText}`), await o.json();
125
- } catch (o) {
126
- return console.error("Failed to fetch Excel import event:", o), {};
127
- }
128
- }, getFileServiceUrl = (e) => {
129
- let t = "";
130
- const o = window.location.hostname;
131
- return o.includes("localhost") || o.includes("127.0.0.1") || o.includes("yahee.com") ? t = "http://qas-service.yahee.com.cn:8088/FMSService/Latest/" : t = webRoot.value, `${t}${e}`;
132
- }, getCommonUrl = (e) => getDomainBaseUrl() + e, getWebRoot = (e) => {
133
- if (initWebRootUrlLoading.value = !0, !allWebRoot.value[e])
134
- try {
135
- fetch(`${getCommonUrl("/Common/GetAllWebRoot")}?origin=${window.location.host}`, {
136
- method: "GET",
137
- credentials: "include"
138
- }).then((t) => {
139
- if (!t.ok)
140
- throw new Error("Network response was not ok");
141
- let o = {};
142
- t.json().then((l) => {
143
- if (o = l, allWebRoot.value = o, !allWebRoot.value) {
144
- console.error("GetWebRoot 失败");
145
- return;
146
- }
147
- webRoot.value = allWebRoot.value[e], webRoot.value || console.error(`GetWebRoot未找到key为${e}的数据`);
148
- });
149
- }).finally(() => {
150
- initWebRootUrlLoading.value = !1;
151
- });
152
- } catch (t) {
153
- initWebRootUrlLoading.value = !1, console.error("GetWebRoot 失败", t);
154
- }
155
- }, fileNames = ref(/* @__PURE__ */ new Set()), uploadProgress = reactive({}), handleFileUpload = (e) => {
156
- const { file: t } = e, o = 100 * 1024 * 1024;
157
- if (t.size > o) {
158
- console.error("文件大小不能超过 1GB"), ElMessage.success("文件大小不能超过 1GB");
159
- return;
160
- }
161
- setupWebSocket(t.name), readFileAsBase64(t).then((l) => {
162
- uploadConfigFile(t, l);
163
- });
164
- }, readFileAsBase64 = (e) => new Promise((t, o) => {
165
- const l = new FileReader();
166
- l.onload = () => t(l.result), l.onerror = (r) => o(r), l.readAsDataURL(e);
167
- }), uploadConfigFile = (e, t) => {
168
- triggerSubmit(), fileNames.value.has(e.name) ? (delete uploadProgress[e.name], delete importProgress.value[e.name], delete sessionIds.value[e.name], delete problemFiles.value[e.name], delete socket[e.name], delete errorMessage.value[e.name]) : fileNames.value.add(e.name);
169
- const o = new FormData();
170
- 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");
171
- const l = new XMLHttpRequest();
172
- l.open("POST", `${getFileServiceUrl("fragmentupload?t=")}${Math.random()}`, !0), l.upload.onprogress = (r) => {
173
- r.lengthComputable && (uploadProgress[e.name] = Math.round(r.loaded / r.total * 100));
174
- }, l.onload = () => {
175
- if (l.status === 200)
176
- try {
177
- const r = JSON.parse(l.responseText);
178
- if (console.log("服务器返回值:", r), r.ACK !== "Success" || !r.FileId) {
179
- ElMessage.error(`${e.name} 上传失败`);
180
- return;
181
- }
182
- ElMessage.success(`${e.name} 上传成功`), uploadProgress[e.name] = 100, setTimeout(() => {
183
- localRequestData.value = {
184
- ...localRequestData.value,
185
- // 保留原有字段
186
- fileName: (e == null ? void 0 : e.name) || ""
187
- // ES6可选链避免报错
188
- }, sessionIds.value[e.name] || (sessionIds.value[e.name] = getRandomStr(20)), processFile({
189
- importId: importId.value,
190
- fileId: r.FileId,
191
- wsSessionId: sessionIds.value[e.name],
192
- file: e,
193
- requestData: localRequestData.value
194
- });
195
- }, 500);
196
- } catch (r) {
197
- console.error("解析服务器返回值失败:", r), ElMessage.error(`${e.name} 上传完成,但解析返回值失败`);
198
- }
199
- else
200
- ElMessage.error(`${e.name} 上传失败`);
201
- }, l.onerror = () => {
202
- ElMessage.error(`${e.name} 上传异常`);
203
- }, l.send(o);
204
- }, processFile = (e) => {
205
- processFiles(processImportUrl.value, e, {}).then((t) => {
206
- var r;
207
- if (console.log("processFiles 返回值:", t), t != null && t.success) {
208
- ElMessageBox.alert("文件导入成功", "操作成功", {
209
- confirmButtonText: "确定",
210
- callback: () => {
211
- var s;
212
- t != null && t.fileId && (problemFiles.value[(s = e == null ? void 0 : e.file) == null ? void 0 : s.name] = t.fileId);
213
- }
214
- });
215
- return;
216
- }
217
- const l = (Array.isArray(t == null ? void 0 : t.messages) ? t.messages : ["未知错误"]).join(`
218
- `) + `
219
-
220
- (可使用鼠标滚轮滚动查看)`;
221
- ElMessageBox.alert(l, "导入错误", {
222
- confirmButtonText: "知道了",
223
- customClass: "custom-common-import-alert",
224
- dangerouslyUseHTMLString: !0
225
- }), t != null && t.fileId && (problemFiles.value[(r = e == null ? void 0 : e.file) == null ? void 0 : r.name] = t.fileId);
226
- }).catch((t) => {
227
- var l;
228
- console.error("processFiles 失败", t);
229
- let o = t == null ? void 0 : t.exMsg;
230
- o || (o = M2("处理过程中发生错误!")), errorMessage.value[(l = e == null ? void 0 : e.file) == null ? void 0 : l.name] = o;
231
- });
232
- }, getRandomStr = (e, t) => {
233
- t || (t = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
234
- let o = "";
235
- for (let l = e; l > 0; --l)
236
- o += t[Math.floor(Math.random() * t.length)];
237
- return o;
238
- }, getWebSocketServerUrl = (e) => {
239
- let t = "";
240
- const { domain: o } = document;
241
- 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;
242
- }, getAuthCode = async () => await get(getCommonUrl("/Common/GetWsAuthCode")), setupWebSocket = (e) => {
243
- socket[e] = new WebSocket(getWebSocketServerUrl("/excel-import/")), socket[e].onmessage = (t) => {
244
- var l, r;
245
- if (t.data == "get-auth") {
246
- getAuthCode().then((s) => {
247
- var a;
248
- console.log("发送authCode:", s), (a = socket[e]) == null || a.send(`auth:${s}`);
249
- });
250
- return;
251
- }
252
- const o = JSON.parse(t.data);
253
- if (console.log("接收普通消息", o), !!o)
254
- if (o.MessageType === 0) {
255
- const s = o.MessageIndex || 0, a = JSON.parse(o == null ? void 0 : o.Content);
256
- if ((a == null ? void 0 : a.error) == !0) {
257
- errorMessage.value[e] = a.message;
258
- return;
259
- }
260
- (!importProgress.value[e] || s > ((l = importProgress.value[e]) == null ? void 0 : l.MessageIndex)) && (importProgress.value[e] = a, importProgress.value[e].MessageIndex = s, a != null && a.finished && ((r = socket[e]) == null || r.close()));
261
- } else o.MessageType === 1 ? sessionIds.value[e] = o.Content : console.log("进度:", o);
262
- }, socket[e].onerror = (t) => {
263
- console.error("WebSocket 错误:", t), t instanceof ErrorEvent ? console.error("Error message:", t.message) : console.error("Unknown WebSocket error:", t);
264
- }, socket[e].onclose = () => {
265
- console.log("WebSocket 连接关闭");
266
- };
267
- };
268
- return onMounted(() => {
269
- if (!processImportUrl.value) {
270
- console.error("processImportUrl不能为空!");
271
- return;
272
- }
273
- if (!importId.value) {
274
- console.error("importId不能为空!");
275
- return;
276
- }
277
- fetchExcelImportEvent(importId.value).then((t) => {
278
- eventData.value = t;
279
- });
280
- const e = window.location.hostname;
281
- e.includes("localhost") || e.includes("127.0.0.1") || e.includes("yahee.com") || getWebRoot("PictureUrlRoot");
282
- }), onUnmounted(() => {
283
- fileNames.value.forEach((e) => {
284
- var t;
285
- (t = socket[e]) == null || t.close();
286
- });
287
- }), (e, t) => (openBlock(), createElementBlock(Fragment, null, [
288
- createVNode(unref(ElDialog), {
289
- modelValue: unref(isShowDialog),
290
- "onUpdate:modelValue": t[1] || (t[1] = (o) => isRef(isShowDialog) ? isShowDialog.value = o : null),
291
- title: unref(M2)(unref(title)),
292
- width: "900",
293
- "before-close": handleClose,
294
- draggable: "",
295
- onOpen: handleOpen
296
- }, {
297
- default: withCtx(() => {
298
- var o;
299
- return [
300
- withDirectives((openBlock(), createElementBlock("div", null, [
301
- createElementVNode("div", _hoisted_1, [
302
- renderSlot(e.$slots, "form")
10
+ };
11
+ function N(_, c, s, l, u, U) {
12
+ return t(), m(k, null, [
13
+ o(l.ElDialog, {
14
+ modelValue: l.isShowDialog,
15
+ "onUpdate:modelValue": c[1] || (c[1] = (i) => l.isShowDialog = i),
16
+ title: l.M2(l.title),
17
+ width: "900",
18
+ "before-close": l.handleClose,
19
+ draggable: "",
20
+ onOpen: l.handleOpen
21
+ }, {
22
+ default: e(() => {
23
+ var i;
24
+ return [
25
+ M((t(), m("div", null, [
26
+ y("div", T, [
27
+ v(_.$slots, "form")
28
+ ]),
29
+ o(l.ElRow, null, {
30
+ default: e(() => [
31
+ o(l.ElUpload, {
32
+ class: "upload-record",
33
+ "http-request": l.handleFileUpload,
34
+ accept: ".xls,.xlsx,.txt,.csv",
35
+ "show-file-list": !1,
36
+ multiple: s.multiple,
37
+ drag: "",
38
+ style: { width: "20%", height: "100%" },
39
+ disabled: s.uploadDisabled || l.uploadLoading
40
+ }, {
41
+ default: e(() => [
42
+ o(l.ElButton, {
43
+ style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
44
+ size: "large",
45
+ type: "primary",
46
+ disabled: s.uploadDisabled,
47
+ loading: l.uploadLoading
48
+ }, {
49
+ default: e(() => [
50
+ n(a(l.M2("上传文件")), 1)
51
+ ]),
52
+ _: 1
53
+ }, 8, ["disabled", "loading"])
54
+ ]),
55
+ _: 1
56
+ }, 8, ["multiple", "disabled"])
303
57
  ]),
304
- createVNode(unref(ElRow), null, {
305
- default: withCtx(() => [
306
- createVNode(unref(ElUpload), {
307
- class: "upload-record",
308
- "http-request": handleFileUpload,
309
- accept: ".xls,.xlsx,.txt,.csv",
310
- "show-file-list": !1,
311
- multiple: e.multiple,
312
- drag: "",
313
- style: { width: "20%", height: "100%" },
314
- disabled: e.uploadDisabled
315
- }, {
316
- default: withCtx(() => [
317
- createVNode(unref(ElButton), {
318
- style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
319
- size: "large",
320
- type: "primary",
321
- disabled: e.uploadDisabled
58
+ _: 1
59
+ }),
60
+ (i = l.fileNames) != null && i.size ? (t(), m("div", P, [
61
+ (t(!0), m(k, null, R(l.fileNames, (r) => {
62
+ var C, h;
63
+ return t(), m("div", {
64
+ key: r,
65
+ class: "uploadProgress"
66
+ }, [
67
+ o(l.ElRow, { style: { "margin-bottom": "5px" } }, {
68
+ default: e(() => [
69
+ o(l.ElCol, { span: 18 }, {
70
+ default: e(() => [
71
+ o(l.ElLink, {
72
+ type: "primary",
73
+ underline: !1,
74
+ style: { font: "inherit" },
75
+ onClick: c[0] || (c[0] = (b) => l.getFile(l.eventData.Template))
76
+ }, {
77
+ default: e(() => [
78
+ n(a(r), 1)
79
+ ]),
80
+ _: 2
81
+ }, 1024)
82
+ ]),
83
+ _: 2
84
+ }, 1024),
85
+ l.uploadProgress[r] ? (t(), f(l.ElCol, {
86
+ key: 0,
87
+ span: 6
322
88
  }, {
323
- default: withCtx(() => [
324
- createTextVNode(toDisplayString(unref(M2)("上传文件")), 1)
89
+ default: e(() => [
90
+ l.uploadProgress[r] == 100 ? (t(), m("span", F, a(l.M2("文件上传完成")), 1)) : (t(), m("span", I, a(l.M2("文件正在上传,进度") + `${l.uploadProgress[r]}% ...`), 1))
325
91
  ]),
326
- _: 1
327
- }, 8, ["disabled"])
92
+ _: 2
93
+ }, 1024)) : g("", !0)
328
94
  ]),
329
- _: 1
330
- }, 8, ["multiple", "disabled"])
331
- ]),
332
- _: 1
333
- }),
334
- (o = fileNames.value) != null && o.size ? (openBlock(), createElementBlock("div", _hoisted_2, [
335
- (openBlock(!0), createElementBlock(Fragment, null, renderList(fileNames.value, (l) => {
336
- var r, s;
337
- return openBlock(), createElementBlock("div", {
338
- key: l,
339
- class: "uploadProgress"
340
- }, [
341
- createVNode(unref(ElRow), { style: { "margin-bottom": "5px" } }, {
342
- default: withCtx(() => [
343
- createVNode(unref(ElCol), { span: 18 }, {
344
- default: withCtx(() => [
345
- createVNode(unref(ElLink), {
346
- type: "primary",
347
- underline: !1,
348
- style: { font: "inherit" },
349
- onClick: t[0] || (t[0] = (a) => getFile(eventData.value.Template))
350
- }, {
351
- default: withCtx(() => [
352
- createTextVNode(toDisplayString(l), 1)
353
- ]),
354
- _: 2
355
- }, 1024)
356
- ]),
95
+ _: 2
96
+ }, 1024),
97
+ l.sessionIds[r] ? (t(), f(l.ElRow, {
98
+ key: 0,
99
+ style: { "margin-bottom": "5px" }
100
+ }, {
101
+ default: e(() => [
102
+ n(a(l.M2("导入ID")) + ":" + a(l.sessionIds[r]), 1)
103
+ ]),
104
+ _: 2
105
+ }, 1024)) : g("", !0),
106
+ l.errorMessage[r] ? (t(), f(l.ElRow, {
107
+ key: 1,
108
+ style: { "margin-bottom": "5px" }
109
+ }, {
110
+ default: e(() => [
111
+ y("span", L, a(l.M2(l.errorMessage[r])), 1)
112
+ ]),
113
+ _: 2
114
+ }, 1024)) : g("", !0),
115
+ (C = l.importProgress[r]) != null && C.totalRowCount ? (t(), f(l.ElRow, {
116
+ key: 2,
117
+ style: { "margin-bottom": "5px" }
118
+ }, {
119
+ default: e(() => {
120
+ var b, w;
121
+ return [
122
+ o(l.ElCol, { span: 6 }, {
123
+ default: e(() => {
124
+ var d, E;
125
+ return [
126
+ n(a(l.M2("工作簿")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.currentSheet) + "/" + a((E = l.importProgress[r]) == null ? void 0 : E.sheetCount), 1)
127
+ ];
128
+ }),
357
129
  _: 2
358
130
  }, 1024),
359
- uploadProgress[l] ? (openBlock(), createBlock(unref(ElCol), {
131
+ o(l.ElCol, { span: 6 }, {
132
+ default: e(() => {
133
+ var d;
134
+ return [
135
+ n(a(l.M2("总行数")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.totalRowCount), 1)
136
+ ];
137
+ }),
138
+ _: 2
139
+ }, 1024),
140
+ o(l.ElCol, { span: 6 }, {
141
+ default: e(() => {
142
+ var d;
143
+ return [
144
+ n(a(l.M2("成功行数")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.successRowCount), 1)
145
+ ];
146
+ }),
147
+ _: 2
148
+ }, 1024),
149
+ (b = l.importProgress[r]) != null && b.failedRowCount ? g("", !0) : (t(), f(l.ElCol, {
360
150
  key: 0,
361
151
  span: 6
362
152
  }, {
363
- default: withCtx(() => [
364
- uploadProgress[l] == 100 ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(unref(M2)("文件上传完成")), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(M2)("文件正在上传,进度") + `${uploadProgress[l]}% ...`), 1))
153
+ default: e(() => [
154
+ n(a(l.M2("失败行数")) + ":0 ", 1)
365
155
  ]),
366
- _: 2
367
- }, 1024)) : createCommentVNode("", !0)
368
- ]),
369
- _: 2
370
- }, 1024),
371
- sessionIds.value[l] ? (openBlock(), createBlock(unref(ElRow), {
372
- key: 0,
373
- style: { "margin-bottom": "5px" }
374
- }, {
375
- default: withCtx(() => [
376
- createTextVNode(toDisplayString(unref(M2)("导入ID")) + "" + toDisplayString(sessionIds.value[l]), 1)
377
- ]),
378
- _: 2
379
- }, 1024)) : createCommentVNode("", !0),
380
- errorMessage.value[l] ? (openBlock(), createBlock(unref(ElRow), {
381
- key: 1,
382
- style: { "margin-bottom": "5px" }
383
- }, {
384
- default: withCtx(() => [
385
- createElementVNode("span", _hoisted_5, toDisplayString(unref(M2)(errorMessage.value[l])), 1)
386
- ]),
387
- _: 2
388
- }, 1024)) : createCommentVNode("", !0),
389
- (r = importProgress.value[l]) != null && r.totalRowCount ? (openBlock(), createBlock(unref(ElRow), {
390
- key: 2,
391
- style: { "margin-bottom": "5px" }
392
- }, {
393
- default: withCtx(() => {
394
- var a, i;
395
- return [
396
- createVNode(unref(ElCol), { span: 6 }, {
397
- default: withCtx(() => {
398
- var n, c;
399
- return [
400
- createTextVNode(toDisplayString(unref(M2)("工作簿")) + ":" + toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.currentSheet) + "/" + toDisplayString((c = importProgress.value[l]) == null ? void 0 : c.sheetCount), 1)
401
- ];
402
- }),
403
- _: 2
404
- }, 1024),
405
- createVNode(unref(ElCol), { span: 6 }, {
406
- default: withCtx(() => {
407
- var n;
408
- return [
409
- createTextVNode(toDisplayString(unref(M2)("总行数")) + ":" + toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.totalRowCount), 1)
410
- ];
411
- }),
412
- _: 2
413
- }, 1024),
414
- createVNode(unref(ElCol), { span: 6 }, {
415
- default: withCtx(() => {
416
- var n;
417
- return [
418
- createTextVNode(toDisplayString(unref(M2)("成功行数")) + ":" + toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.successRowCount), 1)
419
- ];
420
- }),
421
- _: 2
422
- }, 1024),
423
- (a = importProgress.value[l]) != null && a.failedRowCount ? createCommentVNode("", !0) : (openBlock(), createBlock(unref(ElCol), {
424
- key: 0,
425
- span: 6
426
- }, {
427
- default: withCtx(() => [
428
- createTextVNode(toDisplayString(unref(M2)("失败行数")) + ":0 ", 1)
429
- ]),
430
- _: 1
431
- })),
432
- (i = importProgress.value[l]) != null && i.failedRowCount ? (openBlock(), createBlock(unref(ElCol), {
433
- key: 1,
434
- span: 6,
435
- style: { display: "flex" }
436
- }, {
437
- default: withCtx(() => [
438
- createTextVNode(toDisplayString(unref(M2)("失败行数")) + ": ", 1),
439
- createVNode(unref(ElLink), {
440
- type: "primary",
441
- underline: !1,
442
- title: problemFiles.value[l],
443
- onClick: (n) => getFile(problemFiles.value[l])
444
- }, {
445
- default: withCtx(() => {
446
- var n;
447
- return [
448
- createTextVNode(toDisplayString((n = importProgress.value[l]) == null ? void 0 : n.failedRowCount), 1)
449
- ];
450
- }),
451
- _: 2
452
- }, 1032, ["title", "onClick"])
453
- ]),
454
- _: 2
455
- }, 1024)) : createCommentVNode("", !0)
456
- ];
457
- }),
458
- _: 2
459
- }, 1024)) : createCommentVNode("", !0),
460
- t[3] || (t[3] = createElementVNode("br", null, null, -1)),
461
- (s = importProgress.value[l]) != null && s.totalRowCount ? (openBlock(), createBlock(unref(ElProgress), {
462
- key: 3,
463
- percentage: getProgressPercentage(l)
464
- }, null, 8, ["percentage"])) : createCommentVNode("", !0)
465
- ]);
466
- }), 128))
467
- ])) : createCommentVNode("", !0),
468
- createVNode(unref(ElRow), { style: { "margin-top": "10px" } }, {
469
- default: withCtx(() => [
470
- createVNode(unref(ElCard), { style: { width: "860px" } }, {
471
- header: withCtx(() => [
472
- e.displayGetTemplate ? (openBlock(), createElementBlock("div", _hoisted_6, [
473
- createElementVNode("span", null, toDisplayString(unref(M2)("说明")), 1)
474
- ])) : createCommentVNode("", !0)
475
- ]),
476
- footer: withCtx(() => [
477
- createVNode(unref(ElRow), null, {
478
- default: withCtx(() => [
479
- createVNode(unref(ElCol), { span: 10 }),
480
- createVNode(unref(ElCol), {
481
- span: 14,
482
- style: { display: "flex", "justify-content": "flex-end" }
483
- }, {
484
- default: withCtx(() => [
485
- e.displayGetTemplate && eventData.value.TemplateType != 0 ? (openBlock(), createBlock(unref(ElButton), {
486
- key: 0,
487
- style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
488
- size: "large",
489
- onClick: getTemplateFile
490
- }, {
491
- default: withCtx(() => [
492
- createTextVNode(toDisplayString(unref(M2)("获取模板")), 1)
493
- ]),
494
- _: 1
495
- })) : createCommentVNode("", !0),
496
- createVNode(unref(ElButton), {
497
- style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
498
- size: "large",
499
- onClick: displayRecords
500
- }, {
501
- default: withCtx(() => [
502
- createTextVNode(toDisplayString(unref(M2)("导入记录")), 1)
503
- ]),
504
- _: 1
156
+ _: 1
157
+ })),
158
+ (w = l.importProgress[r]) != null && w.failedRowCount ? (t(), f(l.ElCol, {
159
+ key: 1,
160
+ span: 6,
161
+ style: { display: "flex" }
162
+ }, {
163
+ default: e(() => [
164
+ n(a(l.M2("失败行数")) + ": ", 1),
165
+ o(l.ElLink, {
166
+ type: "primary",
167
+ underline: !1,
168
+ title: l.problemFiles[r],
169
+ onClick: (d) => l.getFile(l.problemFiles[r])
170
+ }, {
171
+ default: e(() => {
172
+ var d;
173
+ return [
174
+ n(a((d = l.importProgress[r]) == null ? void 0 : d.failedRowCount), 1)
175
+ ];
505
176
  }),
506
- createVNode(unref(ElButton), {
507
- style: { color: "#949592", "font-weight": "bold" },
508
- size: "large",
509
- onClick: handleClose
510
- }, {
511
- default: withCtx(() => [
512
- createTextVNode(toDisplayString(unref(M2)("关闭")), 1)
513
- ]),
514
- _: 1
515
- })
516
- ]),
517
- _: 1
518
- })
519
- ]),
520
- _: 1
521
- })
522
- ]),
523
- default: withCtx(() => [
524
- e.displayGetTemplate ? (openBlock(), createElementBlock("div", {
525
- key: 0,
526
- innerHTML: eventData.value.Description
527
- }, null, 8, _hoisted_7)) : createCommentVNode("", !0)
528
- ]),
529
- _: 1
530
- })
531
- ]),
532
- _: 1
533
- })
534
- ])), [
535
- [unref(vLoading), initWebRootUrlLoading.value]
536
- ])
537
- ];
538
- }),
539
- _: 3
540
- }, 8, ["modelValue", "title"]),
541
- createVNode(unref(ElDialog), {
542
- modelValue: isShowCoreImportRecordDialog.value,
543
- "onUpdate:modelValue": t[2] || (t[2] = (o) => isShowCoreImportRecordDialog.value = o),
544
- title: unref(M2)("导入记录"),
545
- width: "1400",
546
- "before-close": handleCloseRecord,
547
- draggable: ""
548
- }, {
549
- default: withCtx(() => [
550
- createElementVNode("div", null, [
551
- withDirectives((openBlock(), createBlock(unref(ElTable), {
552
- border: "",
553
- "row-key": "id",
554
- data: tableData.value,
555
- "max-height": "500",
556
- style: { width: "100%" },
557
- "empty-text": unref(M2)("暂无数据")
558
- }, {
559
- default: withCtx(() => [
560
- createVNode(unref(ElTableColumn), {
561
- align: "center",
562
- label: unref(M2)("记录ID"),
563
- "min-width": "220",
564
- prop: "TaskId"
565
- }, null, 8, ["label"]),
566
- createVNode(unref(ElTableColumn), {
567
- align: "center",
568
- label: unref(M2)("导入时间"),
569
- "min-width": "100"
570
- }, {
571
- default: withCtx((o) => [
572
- createTextVNode(toDisplayString(getFormattedDate(o.row)), 1)
573
- ]),
574
- _: 1
575
- }, 8, ["label"]),
576
- createVNode(unref(ElTableColumn), {
577
- align: "center",
578
- label: unref(M2)("导入人")
579
- }, {
580
- default: withCtx((o) => [
581
- createTextVNode(toDisplayString(unref(translateEmployeeName)(o.row.CreatedBy)), 1)
582
- ]),
583
- _: 1
584
- }, 8, ["label"]),
585
- createVNode(unref(ElTableColumn), {
586
- align: "center",
587
- label: unref(M2)("上传文件"),
588
- "min-width": "160"
589
- }, {
590
- default: withCtx((o) => [
591
- createVNode(unref(ElLink), {
592
- type: "primary",
593
- underline: !1,
594
- style: { font: "inherit" },
595
- onClick: (l) => getFile(o.row.InFileId)
596
- }, {
597
- default: withCtx(() => [
598
- createTextVNode(toDisplayString(o.row.InFileId), 1)
599
- ]),
600
- _: 2
601
- }, 1032, ["onClick"])
177
+ _: 2
178
+ }, 1032, ["title", "onClick"])
179
+ ]),
180
+ _: 2
181
+ }, 1024)) : g("", !0)
182
+ ];
183
+ }),
184
+ _: 2
185
+ }, 1024)) : g("", !0),
186
+ c[3] || (c[3] = y("br", null, null, -1)),
187
+ (h = l.importProgress[r]) != null && h.totalRowCount ? (t(), f(l.ElProgress, {
188
+ key: 3,
189
+ percentage: l.getProgressPercentage(r)
190
+ }, null, 8, ["percentage"])) : g("", !0),
191
+ y("div", z, [
192
+ v(_.$slots, "resultMessage")
193
+ ])
194
+ ]);
195
+ }), 128))
196
+ ])) : g("", !0),
197
+ o(l.ElRow, { style: { "margin-top": "10px" } }, {
198
+ default: e(() => [
199
+ o(l.ElCard, { style: { width: "860px" } }, {
200
+ header: e(() => [
201
+ s.displayGetTemplate ? (t(), m("div", S, [
202
+ y("span", null, a(l.M2("说明")), 1)
203
+ ])) : g("", !0)
602
204
  ]),
603
- _: 1
604
- }, 8, ["label"]),
605
- createVNode(unref(ElTableColumn), {
606
- align: "center",
607
- label: unref(M2)("输出文件"),
608
- "min-width": "160"
609
- }, {
610
- default: withCtx((o) => [
611
- createVNode(unref(ElLink), {
612
- type: "primary",
613
- underline: !1,
614
- style: { font: "inherit" },
615
- onClick: (l) => getFile(o.row.OutFileId)
616
- }, {
617
- default: withCtx(() => [
618
- createTextVNode(toDisplayString(o.row.OutFileId), 1)
205
+ footer: e(() => [
206
+ o(l.ElRow, null, {
207
+ default: e(() => [
208
+ o(l.ElCol, { span: 10 }),
209
+ o(l.ElCol, {
210
+ span: 14,
211
+ style: { display: "flex", "justify-content": "flex-end" }
212
+ }, {
213
+ default: e(() => [
214
+ s.displayGetTemplate && l.eventData.TemplateType != 0 ? (t(), f(l.ElButton, {
215
+ key: 0,
216
+ style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
217
+ size: "large",
218
+ onClick: l.getTemplateFile
219
+ }, {
220
+ default: e(() => [
221
+ n(a(l.M2("获取模板")), 1)
222
+ ]),
223
+ _: 1
224
+ })) : g("", !0),
225
+ o(l.ElButton, {
226
+ style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
227
+ size: "large",
228
+ onClick: l.displayRecords
229
+ }, {
230
+ default: e(() => [
231
+ n(a(l.M2("导入记录")), 1)
232
+ ]),
233
+ _: 1
234
+ }),
235
+ o(l.ElButton, {
236
+ style: { color: "#949592", "font-weight": "bold" },
237
+ size: "large",
238
+ onClick: l.handleClose
239
+ }, {
240
+ default: e(() => [
241
+ n(a(l.M2("关闭")), 1)
242
+ ]),
243
+ _: 1
244
+ })
245
+ ]),
246
+ _: 1
247
+ })
619
248
  ]),
620
- _: 2
621
- }, 1032, ["onClick"])
249
+ _: 1
250
+ })
622
251
  ]),
623
- _: 1
624
- }, 8, ["label"]),
625
- createVNode(unref(ElTableColumn), {
626
- align: "center",
627
- label: unref(M2)("错误信息"),
628
- prop: "ErrorMessage",
629
- width: "200"
630
- }, {
631
- default: withCtx((o) => [
632
- o.row.ErrorMessage ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(o.row.ErrorMessage), 1)) : createCommentVNode("", !0)
252
+ default: e(() => [
253
+ s.displayGetTemplate ? (t(), m("div", {
254
+ key: 0,
255
+ innerHTML: l.eventData.Description
256
+ }, null, 8, V)) : g("", !0)
633
257
  ]),
634
258
  _: 1
635
- }, 8, ["label"]),
636
- createVNode(unref(ElTableColumn), {
637
- align: "center",
638
- label: unref(M2)("备注"),
639
- prop: "Remark"
640
- }, null, 8, ["label"])
259
+ })
641
260
  ]),
642
261
  _: 1
643
- }, 8, ["data", "empty-text"])), [
644
- [unref(vLoading), tableLoading.value]
645
- ]),
646
- createVNode(unref(ElPagination), {
647
- "current-page": pageNo.value,
648
- "page-sizes": [50, 100, 150, 200],
649
- "page-size": pageSize.value,
650
- layout: "total, sizes, prev, pager, next, jumper",
651
- total: totalNum.value,
652
- class: "page-pagination",
653
- onSizeChange: handleSizeChange,
654
- onCurrentChange: handleCurrentChange
655
- }, null, 8, ["current-page", "page-size", "total"])
262
+ })
263
+ ])), [
264
+ [l.vLoading, l.initWebRootUrlLoading]
656
265
  ])
657
- ]),
658
- _: 1
659
- }, 8, ["modelValue", "title"])
660
- ], 64));
661
- }
662
- });
266
+ ];
267
+ }),
268
+ _: 3
269
+ }, 8, ["modelValue", "title"]),
270
+ o(l.ElDialog, {
271
+ modelValue: l.isShowCoreImportRecordDialog,
272
+ "onUpdate:modelValue": c[2] || (c[2] = (i) => l.isShowCoreImportRecordDialog = i),
273
+ title: l.M2("导入记录"),
274
+ width: "1400",
275
+ "before-close": l.handleCloseRecord,
276
+ draggable: ""
277
+ }, {
278
+ default: e(() => [
279
+ y("div", null, [
280
+ M((t(), f(l.ElTable, {
281
+ border: "",
282
+ "row-key": "id",
283
+ data: l.tableData,
284
+ "max-height": "500",
285
+ style: { width: "100%" },
286
+ "empty-text": l.M2("暂无数据")
287
+ }, {
288
+ default: e(() => [
289
+ o(l.ElTableColumn, {
290
+ align: "center",
291
+ label: l.M2("记录ID"),
292
+ "min-width": "220",
293
+ prop: "TaskId"
294
+ }, null, 8, ["label"]),
295
+ o(l.ElTableColumn, {
296
+ align: "center",
297
+ label: l.M2("导入时间"),
298
+ "min-width": "100"
299
+ }, {
300
+ default: e((i) => [
301
+ n(a(l.getFormattedDate(i.row)), 1)
302
+ ]),
303
+ _: 1
304
+ }, 8, ["label"]),
305
+ o(l.ElTableColumn, {
306
+ align: "center",
307
+ label: l.M2("导入人")
308
+ }, {
309
+ default: e((i) => [
310
+ n(a(i.row.CreatedBy ? l.translateEmployeeName(i.row.CreatedBy) : "-"), 1)
311
+ ]),
312
+ _: 1
313
+ }, 8, ["label"]),
314
+ o(l.ElTableColumn, {
315
+ align: "center",
316
+ label: l.M2("上传文件"),
317
+ "min-width": "160"
318
+ }, {
319
+ default: e((i) => [
320
+ o(l.ElLink, {
321
+ type: "primary",
322
+ underline: !1,
323
+ style: { font: "inherit" },
324
+ onClick: (r) => l.getFile(i.row.InFileId)
325
+ }, {
326
+ default: e(() => [
327
+ n(a(i.row.InFileId), 1)
328
+ ]),
329
+ _: 2
330
+ }, 1032, ["onClick"])
331
+ ]),
332
+ _: 1
333
+ }, 8, ["label"]),
334
+ o(l.ElTableColumn, {
335
+ align: "center",
336
+ label: l.M2("输出文件"),
337
+ "min-width": "160"
338
+ }, {
339
+ default: e((i) => [
340
+ o(l.ElLink, {
341
+ type: "primary",
342
+ underline: !1,
343
+ style: { font: "inherit" },
344
+ onClick: (r) => l.getFile(i.row.OutFileId)
345
+ }, {
346
+ default: e(() => [
347
+ n(a(i.row.OutFileId), 1)
348
+ ]),
349
+ _: 2
350
+ }, 1032, ["onClick"])
351
+ ]),
352
+ _: 1
353
+ }, 8, ["label"]),
354
+ o(l.ElTableColumn, {
355
+ align: "center",
356
+ label: l.M2("错误信息"),
357
+ prop: "ErrorMessage",
358
+ width: "200"
359
+ }, {
360
+ default: e((i) => [
361
+ i.row.ErrorMessage ? (t(), m("div", B, a(i.row.ErrorMessage), 1)) : g("", !0)
362
+ ]),
363
+ _: 1
364
+ }, 8, ["label"]),
365
+ o(l.ElTableColumn, {
366
+ align: "center",
367
+ label: l.M2("备注"),
368
+ prop: "Remark"
369
+ }, null, 8, ["label"])
370
+ ]),
371
+ _: 1
372
+ }, 8, ["data", "empty-text"])), [
373
+ [l.vLoading, l.tableLoading]
374
+ ]),
375
+ o(l.ElPagination, {
376
+ "current-page": l.pageNo,
377
+ "page-sizes": [50, 100, 150, 200],
378
+ "page-size": l.pageSize,
379
+ layout: "total, sizes, prev, pager, next, jumper",
380
+ total: l.totalNum,
381
+ class: "page-pagination",
382
+ onSizeChange: l.handleSizeChange,
383
+ onCurrentChange: l.handleCurrentChange
384
+ }, null, 8, ["current-page", "page-size", "total"])
385
+ ])
386
+ ]),
387
+ _: 1
388
+ }, 8, ["modelValue", "title"])
389
+ ], 64);
390
+ }
391
+ const H = /* @__PURE__ */ D(x, [["render", N], ["__file", "D:/projects/frontend/common/common_componentsweb/packages/components/src/common-import/common-import.vue"]]);
663
392
  export {
664
- _sfc_main as default
393
+ H as default
665
394
  };