yahee-components 0.0.91 → 0.0.92
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/annex-upload/annex-upload.vue.js +154 -51
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/border-wrap/border-wrap.vue.js +95 -64
- package/es/border-wrap/border-wrap.vue2.js +2 -46
- package/es/common-import/common-import.vue.js +666 -369
- package/es/common-import/common-import.vue2.js +2 -337
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +36 -36
- package/es/copy/copy.vue.js +55 -37
- package/es/copy/copy.vue2.js +2 -34
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +215 -115
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/echart-gauge/echart-gauge.vue.js +140 -12
- package/es/echart-gauge/echart-gauge.vue2.js +2 -147
- package/es/echart-gauge/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +170 -109
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +38 -17
- package/es/input/input.vue2.js +2 -33
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +91 -32
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +218 -70
- package/es/left-condition/left-condition.vue2.js +2 -160
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
- package/es/operation-log/operation-log-content.vue.js +92 -71
- package/es/operation-log/operation-log-content.vue2.js +2 -39
- package/es/operation-log/operation-log-dialog.vue.js +67 -45
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -108
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +228 -119
- package/es/operation-log/operation-log.vue2.js +2 -135
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +126 -19
- package/es/scale-screen/scale-screen.vue2.js +2 -125
- package/package.json +1 -1
|
@@ -1,394 +1,691 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
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
|
+
import { M2 as u, translateEmployeeName as je } from "../utils/translate.js";
|
|
3
|
+
import { get as He } from "../packages/components/api/log-server.js";
|
|
4
|
+
import { getDomainBaseUrl as Xe } from "../utils/get-domain-base-url.js";
|
|
5
|
+
import { getUploadRecord as Ye } from "../packages/components/api/common-import/index.js";
|
|
6
|
+
import { defaultCommonImportProps as Ze } from "./props.js";
|
|
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
|
+
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 lt = { class: "form-slot" }, at = { key: 0 }, rt = { key: 0 }, nt = { key: 1 }, st = { style: { color: "red" } }, it = { class: "form-slot" }, ut = {
|
|
5
34
|
key: 0,
|
|
6
35
|
class: "card-header"
|
|
7
|
-
},
|
|
36
|
+
}, dt = ["innerHTML"], ct = {
|
|
8
37
|
key: 0,
|
|
9
38
|
class: "ellipsis-cell"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
39
|
+
}, pt = {
|
|
40
|
+
name: "YaheeCommonImport",
|
|
41
|
+
inheritAttrs: !1
|
|
42
|
+
}, Vt = /* @__PURE__ */ Ge({
|
|
43
|
+
...pt,
|
|
44
|
+
props: /* @__PURE__ */ Le({
|
|
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
|
+
}, Ze()),
|
|
61
|
+
emits: [
|
|
62
|
+
"setIsShowDialog",
|
|
63
|
+
"closeDialog",
|
|
64
|
+
"setResponseData",
|
|
65
|
+
"submit",
|
|
66
|
+
"reloadTableData"
|
|
67
|
+
],
|
|
68
|
+
setup(de, { emit: ce }) {
|
|
69
|
+
const pe = de, {
|
|
70
|
+
isShowDialog: q,
|
|
71
|
+
isShowResponseDataMessage: me,
|
|
72
|
+
title: ge,
|
|
73
|
+
importId: F,
|
|
74
|
+
processImportUrl: H,
|
|
75
|
+
requestData: X,
|
|
76
|
+
processFiles: fe,
|
|
77
|
+
filePath: ve
|
|
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
|
+
siteId: null,
|
|
80
|
+
reportTime: null,
|
|
81
|
+
fileName: ""
|
|
82
|
+
}), J = ce, ee = () => {
|
|
83
|
+
J("closeDialog");
|
|
84
|
+
}, ye = () => {
|
|
85
|
+
J("setResponseData", K.value);
|
|
86
|
+
}, we = () => {
|
|
87
|
+
J("submit");
|
|
88
|
+
}, be = (e) => {
|
|
89
|
+
var t, o, a;
|
|
90
|
+
return Number(
|
|
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
|
+
);
|
|
93
|
+
}, Ce = (e) => {
|
|
94
|
+
const t = e == null ? void 0 : e.CreateOn;
|
|
95
|
+
if (typeof t != "string") return "---";
|
|
96
|
+
const o = t.match(/\/Date\((\d+)/);
|
|
97
|
+
if (!o) return "---";
|
|
98
|
+
const a = Number(o[1]);
|
|
99
|
+
if (Number.isNaN(a)) return "---";
|
|
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
|
+
}, ke = () => {
|
|
105
|
+
if (!k.value) return;
|
|
106
|
+
let e = "";
|
|
107
|
+
k.value.TemplateType == 1 ? e = le(
|
|
108
|
+
`${k.value.Template}?dispositionType=attachment&t=${(/* @__PURE__ */ new Date()).getTime()}`
|
|
109
|
+
) : k.value.TemplateType == 2 && console.log("获取模板文件失败,暂不支持报表导出"), window.open(e, "_self");
|
|
110
|
+
}, Se = () => {
|
|
111
|
+
M.value = !0, te(A.value);
|
|
112
|
+
}, _e = () => {
|
|
113
|
+
M.value = !1;
|
|
114
|
+
}, Ie = () => {
|
|
115
|
+
D.value = /* @__PURE__ */ new Set();
|
|
116
|
+
}, G = (e) => {
|
|
117
|
+
e && window.open(`${ve.value}/${e}`, "_self");
|
|
118
|
+
}, te = async (e) => {
|
|
119
|
+
oe(JSON.stringify({ rows: A.value, page: e }));
|
|
120
|
+
};
|
|
121
|
+
We(
|
|
122
|
+
() => X,
|
|
123
|
+
(e) => {
|
|
124
|
+
e && (O.value = X.value);
|
|
125
|
+
},
|
|
126
|
+
{ immediate: !0, deep: !0 }
|
|
127
|
+
);
|
|
128
|
+
const oe = (e) => {
|
|
129
|
+
Ye(`/ExcelImport/GetExcelImportRecords?importId=${F.value}`, e).then((t) => {
|
|
130
|
+
var o, a;
|
|
131
|
+
t.status !== 200 && (S.error(u("获取上传记录失败!")), console.log(`获取上传记录失败!${JSON.stringify(t)}`)), Y.value = (o = t.data) == null ? void 0 : o.rows, Q.value = (a = t.data) == null ? void 0 : a.total;
|
|
132
|
+
}).catch((t) => {
|
|
133
|
+
console.log(t);
|
|
134
|
+
});
|
|
135
|
+
}, Re = (e) => {
|
|
136
|
+
oe(JSON.stringify({ rows: e, page: Z.value }));
|
|
137
|
+
}, De = async (e) => {
|
|
138
|
+
const t = `${j("/ExcelImport/GetExcelImportEvent")}?origin=${window.location.host}&importId=${e}`;
|
|
139
|
+
try {
|
|
140
|
+
const o = await fetch(t, {
|
|
141
|
+
method: "GET",
|
|
142
|
+
credentials: "include"
|
|
143
|
+
});
|
|
144
|
+
return o.ok || S.error(`Network response was not ok: ${o.statusText}`), await o.json();
|
|
145
|
+
} catch (o) {
|
|
146
|
+
return console.error("Failed to fetch Excel import event:", o), {};
|
|
147
|
+
}
|
|
148
|
+
}, le = (e) => {
|
|
149
|
+
let t = "";
|
|
150
|
+
const o = window.location.hostname;
|
|
151
|
+
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 = V.value, `${t}${e}`;
|
|
152
|
+
}, j = (e) => Xe() + e, Ee = (e) => {
|
|
153
|
+
if (N.value = !0, !U.value[e])
|
|
154
|
+
try {
|
|
155
|
+
fetch(`${j("/Common/GetAllWebRoot")}?origin=${window.location.host}`, {
|
|
156
|
+
method: "GET",
|
|
157
|
+
credentials: "include"
|
|
158
|
+
}).then((t) => {
|
|
159
|
+
if (!t.ok)
|
|
160
|
+
throw new Error("Network response was not ok");
|
|
161
|
+
let o = {};
|
|
162
|
+
t.json().then((a) => {
|
|
163
|
+
if (o = a, U.value = o, !U.value) {
|
|
164
|
+
console.error("GetWebRoot 失败");
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
V.value = U.value[e], V.value || console.error(`GetWebRoot未找到key为${e}的数据`);
|
|
168
|
+
});
|
|
169
|
+
}).finally(() => {
|
|
170
|
+
N.value = !1;
|
|
171
|
+
});
|
|
172
|
+
} catch (t) {
|
|
173
|
+
N.value = !1, console.error("GetWebRoot 失败", t);
|
|
174
|
+
}
|
|
175
|
+
}, D = p(/* @__PURE__ */ new Set()), E = ze({}), Te = (e) => {
|
|
176
|
+
B.value = !0;
|
|
177
|
+
const { file: t } = e, o = 100 * 1024 * 1024;
|
|
178
|
+
if (t.size > o) {
|
|
179
|
+
console.error("文件大小不能超过 1GB"), S.success("文件大小不能超过 1GB");
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
Be(t.name), $e(t).then((a) => {
|
|
183
|
+
xe(t, a);
|
|
184
|
+
});
|
|
185
|
+
}, $e = (e) => new Promise((t, o) => {
|
|
186
|
+
const a = new FileReader();
|
|
187
|
+
a.onload = () => t(a.result), a.onerror = (n) => o(n), a.readAsDataURL(e);
|
|
188
|
+
}), xe = (e, t) => {
|
|
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
|
+
const o = new FormData();
|
|
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
|
+
const a = new XMLHttpRequest();
|
|
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
|
+
}, a.onload = () => {
|
|
196
|
+
if (a.status === 200)
|
|
197
|
+
try {
|
|
198
|
+
const n = JSON.parse(a.responseText);
|
|
199
|
+
if (console.log("服务器返回值:", n), n.ACK !== "Success" || !n.FileId) {
|
|
200
|
+
S.error(`${e.name} 上传失败`);
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
S.success(`${e.name} 上传成功`), E[e.name] = 100, setTimeout(() => {
|
|
204
|
+
O.value = {
|
|
205
|
+
...O.value,
|
|
206
|
+
// 保留原有字段
|
|
207
|
+
fileName: (e == null ? void 0 : e.name) || ""
|
|
208
|
+
// ES6可选链避免报错
|
|
209
|
+
}, _.value[e.name] || (_.value[e.name] = Me(20)), Fe({
|
|
210
|
+
importId: F.value,
|
|
211
|
+
fileId: n.FileId,
|
|
212
|
+
wsSessionId: _.value[e.name],
|
|
213
|
+
file: e,
|
|
214
|
+
requestData: O.value
|
|
215
|
+
});
|
|
216
|
+
}, 500);
|
|
217
|
+
} catch (n) {
|
|
218
|
+
console.error("解析服务器返回值失败:", n), S.error(`${e.name} 上传完成,但解析返回值失败`);
|
|
219
|
+
}
|
|
220
|
+
else
|
|
221
|
+
S.error(`${e.name} 上传失败`);
|
|
222
|
+
}, a.onerror = () => {
|
|
223
|
+
S.error(`${e.name} 上传异常`);
|
|
224
|
+
}, a.send(o);
|
|
225
|
+
}, Fe = (e) => {
|
|
226
|
+
fe.value(H.value, e, {}).then((t) => {
|
|
227
|
+
var n;
|
|
228
|
+
if (B.value = !1, console.log("processFiles 返回值:", t), t != null && t.success) {
|
|
229
|
+
let v = "文件导入成功";
|
|
230
|
+
t != null && t.fileId && (v = "存在失败的条目,详情请查看输出文件"), ue.alert(v, "操作成功", {
|
|
231
|
+
confirmButtonText: "确定",
|
|
232
|
+
callback: () => {
|
|
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());
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
const a = (Array.isArray(t == null ? void 0 : t.messages) ? t.messages : ["未知错误"]).join(`
|
|
240
|
+
`) + `
|
|
241
|
+
|
|
242
|
+
(可使用鼠标滚轮滚动查看)`;
|
|
243
|
+
ue.alert(a, "导入错误", {
|
|
244
|
+
confirmButtonText: "知道了",
|
|
245
|
+
customClass: "custom-common-import-alert",
|
|
246
|
+
dangerouslyUseHTMLString: !0
|
|
247
|
+
}), t != null && t.fileId && ($.value[(n = e == null ? void 0 : e.file) == null ? void 0 : n.name] = t.fileId);
|
|
248
|
+
}).catch((t) => {
|
|
249
|
+
var a;
|
|
250
|
+
console.error("processFiles 失败", t);
|
|
251
|
+
let o = t == null ? void 0 : t.exMsg;
|
|
252
|
+
o || (o = u("处理过程中发生错误!")), x.value[(a = e == null ? void 0 : e.file) == null ? void 0 : a.name] = o;
|
|
253
|
+
});
|
|
254
|
+
}, Me = (e, t) => {
|
|
255
|
+
t || (t = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
|
|
256
|
+
let o = "";
|
|
257
|
+
for (let a = e; a > 0; --a)
|
|
258
|
+
o += t[Math.floor(Math.random() * t.length)];
|
|
259
|
+
return o;
|
|
260
|
+
}, Ne = (e) => {
|
|
261
|
+
let t = "";
|
|
262
|
+
const { domain: o } = document;
|
|
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;
|
|
264
|
+
}, Ue = async () => await He(j("/Common/GetWsAuthCode")), Be = (e) => {
|
|
265
|
+
C[e] = new WebSocket(Ne("/excel-import/")), C[e].onmessage = (t) => {
|
|
266
|
+
var a, n;
|
|
267
|
+
if (t.data == "get-auth") {
|
|
268
|
+
Ue().then((v) => {
|
|
269
|
+
var d;
|
|
270
|
+
console.log("发送authCode:", v), (d = C[e]) == null || d.send(`auth:${v}`);
|
|
271
|
+
});
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const o = JSON.parse(t.data);
|
|
275
|
+
if (console.log("接收普通消息", o), !!o)
|
|
276
|
+
if (o.MessageType === 0) {
|
|
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;
|
|
280
|
+
return;
|
|
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()));
|
|
283
|
+
} else o.MessageType === 1 ? _.value[e] = o.Content : console.log("进度:", o);
|
|
284
|
+
}, C[e].onerror = (t) => {
|
|
285
|
+
console.error("WebSocket 错误:", t), t instanceof ErrorEvent ? console.error("Error message:", t.message) : console.error("Unknown WebSocket error:", t);
|
|
286
|
+
}, C[e].onclose = () => {
|
|
287
|
+
console.log("WebSocket 连接关闭");
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
return qe(() => {
|
|
291
|
+
if (!H.value) {
|
|
292
|
+
console.error("processImportUrl不能为空!");
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
if (!F.value) {
|
|
296
|
+
console.error("importId不能为空!");
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
De(F.value).then((t) => {
|
|
300
|
+
k.value = t;
|
|
301
|
+
});
|
|
302
|
+
const e = window.location.hostname;
|
|
303
|
+
e.includes("localhost") || e.includes("127.0.0.1") || e.includes("yahee.com") || Ee("PictureUrlRoot");
|
|
304
|
+
}), Ae(() => {
|
|
305
|
+
D.value.forEach((e) => {
|
|
306
|
+
var t;
|
|
307
|
+
(t = C[e]) == null || t.close();
|
|
308
|
+
});
|
|
309
|
+
}), (e, t) => (c(), y(ae, null, [
|
|
310
|
+
s(l(se), {
|
|
311
|
+
modelValue: l(q),
|
|
312
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => Ve(q) ? q.value = o : null),
|
|
313
|
+
title: l(u)(l(ge)),
|
|
314
|
+
width: "900",
|
|
315
|
+
"before-close": ee,
|
|
316
|
+
draggable: "",
|
|
317
|
+
onOpen: Ie
|
|
318
|
+
}, {
|
|
319
|
+
default: r(() => {
|
|
320
|
+
var o;
|
|
321
|
+
return [
|
|
322
|
+
re((c(), y("div", null, [
|
|
323
|
+
T("div", lt, [
|
|
324
|
+
ne(e.$slots, "form")
|
|
57
325
|
]),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
|
326
|
+
s(l(I), null, {
|
|
327
|
+
default: r(() => [
|
|
328
|
+
s(l(Qe), {
|
|
329
|
+
class: "upload-record",
|
|
330
|
+
"http-request": Te,
|
|
331
|
+
accept: ".xls,.xlsx,.txt,.csv",
|
|
332
|
+
"show-file-list": !1,
|
|
333
|
+
multiple: e.multiple,
|
|
334
|
+
drag: "",
|
|
335
|
+
style: { width: "20%", height: "100%" },
|
|
336
|
+
disabled: e.uploadDisabled || B.value
|
|
337
|
+
}, {
|
|
338
|
+
default: r(() => [
|
|
339
|
+
s(l(W), {
|
|
340
|
+
style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
|
|
341
|
+
size: "large",
|
|
342
|
+
type: "primary",
|
|
343
|
+
disabled: e.uploadDisabled,
|
|
344
|
+
loading: B.value
|
|
88
345
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
|
|
346
|
+
default: r(() => [
|
|
347
|
+
g(i(l(u)("上传文件")), 1)
|
|
91
348
|
]),
|
|
92
|
-
_:
|
|
93
|
-
},
|
|
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)
|
|
349
|
+
_: 1
|
|
350
|
+
}, 8, ["disabled", "loading"])
|
|
103
351
|
]),
|
|
104
|
-
_:
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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, {
|
|
352
|
+
_: 1
|
|
353
|
+
}, 8, ["multiple", "disabled"])
|
|
354
|
+
]),
|
|
355
|
+
_: 1
|
|
356
|
+
}),
|
|
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", {
|
|
361
|
+
key: a,
|
|
362
|
+
class: "uploadProgress"
|
|
363
|
+
}, [
|
|
364
|
+
s(l(I), { style: { "margin-bottom": "5px" } }, {
|
|
365
|
+
default: r(() => [
|
|
366
|
+
s(l(b), { span: 18 }, {
|
|
367
|
+
default: r(() => [
|
|
368
|
+
s(l(z), {
|
|
166
369
|
type: "primary",
|
|
167
370
|
underline: !1,
|
|
168
|
-
|
|
169
|
-
onClick: (d) =>
|
|
371
|
+
style: { font: "inherit" },
|
|
372
|
+
onClick: t[0] || (t[0] = (d) => G(k.value.Template))
|
|
170
373
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
n(a((d = l.importProgress[r]) == null ? void 0 : d.failedRowCount), 1)
|
|
175
|
-
];
|
|
176
|
-
}),
|
|
374
|
+
default: r(() => [
|
|
375
|
+
g(i(a), 1)
|
|
376
|
+
]),
|
|
177
377
|
_: 2
|
|
178
|
-
},
|
|
378
|
+
}, 1024)
|
|
179
379
|
]),
|
|
180
380
|
_: 2
|
|
181
|
-
}, 1024)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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" }
|
|
381
|
+
}, 1024),
|
|
382
|
+
E[a] ? (c(), w(l(b), {
|
|
383
|
+
key: 0,
|
|
384
|
+
span: 6
|
|
212
385
|
}, {
|
|
213
|
-
default:
|
|
214
|
-
|
|
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
|
-
})
|
|
386
|
+
default: r(() => [
|
|
387
|
+
E[a] == 100 ? (c(), y("span", rt, i(l(u)("文件上传完成")), 1)) : (c(), y("span", nt, i(l(u)("文件正在上传,进度") + `${E[a]}% ...`), 1))
|
|
245
388
|
]),
|
|
246
|
-
_:
|
|
247
|
-
})
|
|
389
|
+
_: 2
|
|
390
|
+
}, 1024)) : h("", !0)
|
|
248
391
|
]),
|
|
249
|
-
_:
|
|
250
|
-
})
|
|
251
|
-
|
|
252
|
-
default: e(() => [
|
|
253
|
-
s.displayGetTemplate ? (t(), m("div", {
|
|
392
|
+
_: 2
|
|
393
|
+
}, 1024),
|
|
394
|
+
_.value[a] ? (c(), w(l(I), {
|
|
254
395
|
key: 0,
|
|
255
|
-
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
396
|
+
style: { "margin-bottom": "5px" }
|
|
397
|
+
}, {
|
|
398
|
+
default: r(() => [
|
|
399
|
+
g(i(l(u)("导入ID")) + ":" + i(_.value[a]), 1)
|
|
400
|
+
]),
|
|
401
|
+
_: 2
|
|
402
|
+
}, 1024)) : h("", !0),
|
|
403
|
+
x.value[a] ? (c(), w(l(I), {
|
|
404
|
+
key: 1,
|
|
405
|
+
style: { "margin-bottom": "5px" }
|
|
406
|
+
}, {
|
|
407
|
+
default: r(() => [
|
|
408
|
+
T("span", st, i(l(u)(x.value[a])), 1)
|
|
409
|
+
]),
|
|
410
|
+
_: 2
|
|
411
|
+
}, 1024)) : h("", !0),
|
|
412
|
+
(n = m.value[a]) != null && n.totalRowCount ? (c(), w(l(I), {
|
|
413
|
+
key: 2,
|
|
414
|
+
style: { "margin-bottom": "5px" }
|
|
415
|
+
}, {
|
|
416
|
+
default: r(() => {
|
|
417
|
+
var d, L;
|
|
418
|
+
return [
|
|
419
|
+
s(l(b), { span: 6 }, {
|
|
420
|
+
default: r(() => {
|
|
421
|
+
var f, P;
|
|
422
|
+
return [
|
|
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)
|
|
424
|
+
];
|
|
425
|
+
}),
|
|
426
|
+
_: 2
|
|
427
|
+
}, 1024),
|
|
428
|
+
s(l(b), { span: 6 }, {
|
|
429
|
+
default: r(() => {
|
|
430
|
+
var f;
|
|
431
|
+
return [
|
|
432
|
+
g(i(l(u)("总行数")) + ":" + i((f = m.value[a]) == null ? void 0 : f.totalRowCount), 1)
|
|
433
|
+
];
|
|
434
|
+
}),
|
|
435
|
+
_: 2
|
|
436
|
+
}, 1024),
|
|
437
|
+
s(l(b), { span: 6 }, {
|
|
438
|
+
default: r(() => {
|
|
439
|
+
var f;
|
|
440
|
+
return [
|
|
441
|
+
g(i(l(u)("成功行数")) + ":" + i((f = m.value[a]) == null ? void 0 : f.successRowCount), 1)
|
|
442
|
+
];
|
|
443
|
+
}),
|
|
444
|
+
_: 2
|
|
445
|
+
}, 1024),
|
|
446
|
+
(d = m.value[a]) != null && d.failedRowCount ? h("", !0) : (c(), w(l(b), {
|
|
447
|
+
key: 0,
|
|
448
|
+
span: 6
|
|
449
|
+
}, {
|
|
450
|
+
default: r(() => [
|
|
451
|
+
g(i(l(u)("失败行数")) + ":0 ", 1)
|
|
452
|
+
]),
|
|
453
|
+
_: 1
|
|
454
|
+
})),
|
|
455
|
+
(L = m.value[a]) != null && L.failedRowCount ? (c(), w(l(b), {
|
|
456
|
+
key: 1,
|
|
457
|
+
span: 6,
|
|
458
|
+
style: { display: "flex" }
|
|
459
|
+
}, {
|
|
460
|
+
default: r(() => [
|
|
461
|
+
g(i(l(u)("失败行数")) + ": ", 1),
|
|
462
|
+
s(l(z), {
|
|
463
|
+
type: "primary",
|
|
464
|
+
underline: !1,
|
|
465
|
+
title: $.value[a],
|
|
466
|
+
onClick: (f) => G($.value[a])
|
|
467
|
+
}, {
|
|
468
|
+
default: r(() => {
|
|
469
|
+
var f;
|
|
470
|
+
return [
|
|
471
|
+
g(i((f = m.value[a]) == null ? void 0 : f.failedRowCount), 1)
|
|
472
|
+
];
|
|
473
|
+
}),
|
|
474
|
+
_: 2
|
|
475
|
+
}, 1032, ["title", "onClick"])
|
|
476
|
+
]),
|
|
477
|
+
_: 2
|
|
478
|
+
}, 1024)) : h("", !0)
|
|
479
|
+
];
|
|
480
|
+
}),
|
|
481
|
+
_: 2
|
|
482
|
+
}, 1024)) : h("", !0),
|
|
483
|
+
t[3] || (t[3] = T("br", null, null, -1)),
|
|
484
|
+
(v = m.value[a]) != null && v.totalRowCount ? (c(), w(l(Ke), {
|
|
485
|
+
key: 3,
|
|
486
|
+
percentage: be(a)
|
|
487
|
+
}, null, 8, ["percentage"])) : h("", !0),
|
|
488
|
+
T("div", it, [
|
|
489
|
+
ne(e.$slots, "resultMessage")
|
|
490
|
+
])
|
|
491
|
+
]);
|
|
492
|
+
}), 128))
|
|
493
|
+
])) : h("", !0),
|
|
494
|
+
s(l(I), { style: { "margin-top": "10px" } }, {
|
|
495
|
+
default: r(() => [
|
|
496
|
+
s(l(et), { style: { width: "860px" } }, {
|
|
497
|
+
header: r(() => [
|
|
498
|
+
e.displayGetTemplate ? (c(), y("div", ut, [
|
|
499
|
+
T("span", null, i(l(u)("说明")), 1)
|
|
500
|
+
])) : h("", !0)
|
|
328
501
|
]),
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
502
|
+
footer: r(() => [
|
|
503
|
+
s(l(I), null, {
|
|
504
|
+
default: r(() => [
|
|
505
|
+
s(l(b), { span: 10 }),
|
|
506
|
+
s(l(b), {
|
|
507
|
+
span: 14,
|
|
508
|
+
style: { display: "flex", "justify-content": "flex-end" }
|
|
509
|
+
}, {
|
|
510
|
+
default: r(() => [
|
|
511
|
+
e.displayGetTemplate && k.value.TemplateType != 0 ? (c(), w(l(W), {
|
|
512
|
+
key: 0,
|
|
513
|
+
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
514
|
+
size: "large",
|
|
515
|
+
onClick: ke
|
|
516
|
+
}, {
|
|
517
|
+
default: r(() => [
|
|
518
|
+
g(i(l(u)("获取模板")), 1)
|
|
519
|
+
]),
|
|
520
|
+
_: 1
|
|
521
|
+
})) : h("", !0),
|
|
522
|
+
s(l(W), {
|
|
523
|
+
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
524
|
+
size: "large",
|
|
525
|
+
onClick: Se
|
|
526
|
+
}, {
|
|
527
|
+
default: r(() => [
|
|
528
|
+
g(i(l(u)("导入记录")), 1)
|
|
529
|
+
]),
|
|
530
|
+
_: 1
|
|
531
|
+
}),
|
|
532
|
+
s(l(W), {
|
|
533
|
+
style: { color: "#949592", "font-weight": "bold" },
|
|
534
|
+
size: "large",
|
|
535
|
+
onClick: ee
|
|
536
|
+
}, {
|
|
537
|
+
default: r(() => [
|
|
538
|
+
g(i(l(u)("关闭")), 1)
|
|
539
|
+
]),
|
|
540
|
+
_: 1
|
|
541
|
+
})
|
|
542
|
+
]),
|
|
543
|
+
_: 1
|
|
544
|
+
})
|
|
545
|
+
]),
|
|
546
|
+
_: 1
|
|
547
|
+
})
|
|
348
548
|
]),
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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)
|
|
549
|
+
default: r(() => [
|
|
550
|
+
e.displayGetTemplate ? (c(), y("div", {
|
|
551
|
+
key: 0,
|
|
552
|
+
innerHTML: k.value.Description
|
|
553
|
+
}, null, 8, dt)) : h("", !0)
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
})
|
|
362
557
|
]),
|
|
363
558
|
_: 1
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
559
|
+
})
|
|
560
|
+
])), [
|
|
561
|
+
[l(ie), N.value]
|
|
562
|
+
])
|
|
563
|
+
];
|
|
564
|
+
}),
|
|
565
|
+
_: 3
|
|
566
|
+
}, 8, ["modelValue", "title"]),
|
|
567
|
+
s(l(se), {
|
|
568
|
+
modelValue: M.value,
|
|
569
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => M.value = o),
|
|
570
|
+
title: l(u)("导入记录"),
|
|
571
|
+
width: "1400",
|
|
572
|
+
"before-close": _e,
|
|
573
|
+
draggable: ""
|
|
574
|
+
}, {
|
|
575
|
+
default: r(() => [
|
|
576
|
+
T("div", null, [
|
|
577
|
+
re((c(), w(l(tt), {
|
|
578
|
+
border: "",
|
|
579
|
+
"row-key": "id",
|
|
580
|
+
data: Y.value,
|
|
581
|
+
"max-height": "500",
|
|
582
|
+
style: { width: "100%" },
|
|
583
|
+
"empty-text": l(u)("暂无数据")
|
|
584
|
+
}, {
|
|
585
|
+
default: r(() => [
|
|
586
|
+
s(l(R), {
|
|
587
|
+
align: "center",
|
|
588
|
+
label: l(u)("记录ID"),
|
|
589
|
+
"min-width": "220",
|
|
590
|
+
prop: "TaskId"
|
|
591
|
+
}, null, 8, ["label"]),
|
|
592
|
+
s(l(R), {
|
|
593
|
+
align: "center",
|
|
594
|
+
label: l(u)("导入时间"),
|
|
595
|
+
"min-width": "100"
|
|
596
|
+
}, {
|
|
597
|
+
default: r((o) => [
|
|
598
|
+
g(i(Ce(o.row)), 1)
|
|
599
|
+
]),
|
|
600
|
+
_: 1
|
|
601
|
+
}, 8, ["label"]),
|
|
602
|
+
s(l(R), {
|
|
603
|
+
align: "center",
|
|
604
|
+
label: l(u)("导入人")
|
|
605
|
+
}, {
|
|
606
|
+
default: r((o) => [
|
|
607
|
+
g(i(o.row.CreatedBy ? l(je)(o.row.CreatedBy) : "-"), 1)
|
|
608
|
+
]),
|
|
609
|
+
_: 1
|
|
610
|
+
}, 8, ["label"]),
|
|
611
|
+
s(l(R), {
|
|
612
|
+
align: "center",
|
|
613
|
+
label: l(u)("上传文件"),
|
|
614
|
+
"min-width": "160"
|
|
615
|
+
}, {
|
|
616
|
+
default: r((o) => [
|
|
617
|
+
s(l(z), {
|
|
618
|
+
type: "primary",
|
|
619
|
+
underline: !1,
|
|
620
|
+
style: { font: "inherit" },
|
|
621
|
+
onClick: (a) => G(o.row.InFileId)
|
|
622
|
+
}, {
|
|
623
|
+
default: r(() => [
|
|
624
|
+
g(i(o.row.InFileId), 1)
|
|
625
|
+
]),
|
|
626
|
+
_: 2
|
|
627
|
+
}, 1032, ["onClick"])
|
|
628
|
+
]),
|
|
629
|
+
_: 1
|
|
630
|
+
}, 8, ["label"]),
|
|
631
|
+
s(l(R), {
|
|
632
|
+
align: "center",
|
|
633
|
+
label: l(u)("输出文件"),
|
|
634
|
+
"min-width": "160"
|
|
635
|
+
}, {
|
|
636
|
+
default: r((o) => [
|
|
637
|
+
s(l(z), {
|
|
638
|
+
type: "primary",
|
|
639
|
+
underline: !1,
|
|
640
|
+
style: { font: "inherit" },
|
|
641
|
+
onClick: (a) => G(o.row.OutFileId)
|
|
642
|
+
}, {
|
|
643
|
+
default: r(() => [
|
|
644
|
+
g(i(o.row.OutFileId), 1)
|
|
645
|
+
]),
|
|
646
|
+
_: 2
|
|
647
|
+
}, 1032, ["onClick"])
|
|
648
|
+
]),
|
|
649
|
+
_: 1
|
|
650
|
+
}, 8, ["label"]),
|
|
651
|
+
s(l(R), {
|
|
652
|
+
align: "center",
|
|
653
|
+
label: l(u)("错误信息"),
|
|
654
|
+
prop: "ErrorMessage",
|
|
655
|
+
width: "200"
|
|
656
|
+
}, {
|
|
657
|
+
default: r((o) => [
|
|
658
|
+
o.row.ErrorMessage ? (c(), y("div", ct, i(o.row.ErrorMessage), 1)) : h("", !0)
|
|
659
|
+
]),
|
|
660
|
+
_: 1
|
|
661
|
+
}, 8, ["label"]),
|
|
662
|
+
s(l(R), {
|
|
663
|
+
align: "center",
|
|
664
|
+
label: l(u)("备注"),
|
|
665
|
+
prop: "Remark"
|
|
666
|
+
}, null, 8, ["label"])
|
|
667
|
+
]),
|
|
668
|
+
_: 1
|
|
669
|
+
}, 8, ["data", "empty-text"])), [
|
|
670
|
+
[l(ie), he.value]
|
|
370
671
|
]),
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}, 8, ["modelValue", "title"])
|
|
389
|
-
], 64);
|
|
390
|
-
}
|
|
391
|
-
const H = /* @__PURE__ */ T(x, [["render", N], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/common-import/common-import.vue"]]);
|
|
672
|
+
s(l(ot), {
|
|
673
|
+
"current-page": Z.value,
|
|
674
|
+
"page-sizes": [50, 100, 150, 200],
|
|
675
|
+
"page-size": A.value,
|
|
676
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
677
|
+
total: Q.value,
|
|
678
|
+
class: "page-pagination",
|
|
679
|
+
onSizeChange: te,
|
|
680
|
+
onCurrentChange: Re
|
|
681
|
+
}, null, 8, ["current-page", "page-size", "total"])
|
|
682
|
+
])
|
|
683
|
+
]),
|
|
684
|
+
_: 1
|
|
685
|
+
}, 8, ["modelValue", "title"])
|
|
686
|
+
], 64));
|
|
687
|
+
}
|
|
688
|
+
});
|
|
392
689
|
export {
|
|
393
|
-
|
|
690
|
+
Vt as default
|
|
394
691
|
};
|