yahee-components 0.0.83 → 0.0.84

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