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