yahee-components 0.0.84 → 0.0.86
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 +314 -311
- package/es/complex-search/complex-search.vue2.js +57 -53
- 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 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
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 }, nt = { key: 1 }, st = { style: { color: "red" } }, it = { class: "form-slot" }, ut = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "card-header"
|
|
36
|
-
},
|
|
36
|
+
}, dt = ["innerHTML"], ct = {
|
|
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,286 @@ 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 = p(!1), he = p(!1), N = p(!1), Y = p([]), m = p({}), Z = p(1), Q = p(1), A = p(50), _ = p({}), $ = p({}), K = p({}), C = {}, k = p({}), x = p({}), U = p({}), V = p(""), B = p(!1), O = p({
|
|
79
79
|
siteId: null,
|
|
80
80
|
reportTime: null,
|
|
81
81
|
fileName: ""
|
|
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 = m.value[e]) == null ? void 0 : t.successRowCount) + ((o = m.value[e]) == null ? void 0 : o.failedRowCount)) / ((a = m.value[e]) == null ? void 0 : a.totalRowCount) * 100).toFixed(0)
|
|
92
92
|
);
|
|
93
|
-
},
|
|
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 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;
|
|
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 = p(/* @__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 = (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);
|
|
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 = (n) => {
|
|
194
|
+
n.lengthComputable && (E[e.name] = Math.round(n.loaded / n.total * 100));
|
|
195
|
+
}, a.onload = () => {
|
|
196
|
+
if (a.status === 200)
|
|
195
197
|
try {
|
|
196
|
-
const
|
|
197
|
-
if (console.log("服务器返回值:",
|
|
198
|
-
|
|
198
|
+
const n = JSON.parse(a.responseText);
|
|
199
|
+
if (console.log("服务器返回值:", n), n.ACK !== "Success" || !n.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: n.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 (n) {
|
|
218
|
+
console.error("解析服务器返回值失败:", n), 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 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, "操作成功", {
|
|
228
231
|
confirmButtonText: "确定",
|
|
229
232
|
callback: () => {
|
|
230
|
-
var
|
|
231
|
-
t != null && t.fileId && (
|
|
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());
|
|
232
235
|
}
|
|
233
236
|
});
|
|
234
237
|
return;
|
|
235
238
|
}
|
|
236
|
-
const
|
|
239
|
+
const a = (Array.isArray(t == null ? void 0 : t.messages) ? t.messages : ["未知错误"]).join(`
|
|
237
240
|
`) + `
|
|
238
241
|
|
|
239
242
|
(可使用鼠标滚轮滚动查看)`;
|
|
240
|
-
|
|
243
|
+
ue.alert(a, "导入错误", {
|
|
241
244
|
confirmButtonText: "知道了",
|
|
242
245
|
customClass: "custom-common-import-alert",
|
|
243
246
|
dangerouslyUseHTMLString: !0
|
|
244
|
-
}), t != null && t.fileId && (
|
|
247
|
+
}), t != null && t.fileId && ($.value[(n = e == null ? void 0 : e.file) == null ? void 0 : n.name] = t.fileId);
|
|
245
248
|
}).catch((t) => {
|
|
246
|
-
var
|
|
249
|
+
var a;
|
|
247
250
|
console.error("processFiles 失败", t);
|
|
248
251
|
let o = t == null ? void 0 : t.exMsg;
|
|
249
|
-
o || (o =
|
|
252
|
+
o || (o = u("处理过程中发生错误!")), x.value[(a = e == null ? void 0 : e.file) == null ? void 0 : a.name] = o;
|
|
250
253
|
});
|
|
251
|
-
},
|
|
254
|
+
}, Me = (e, t) => {
|
|
252
255
|
t || (t = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
|
|
253
256
|
let o = "";
|
|
254
|
-
for (let
|
|
257
|
+
for (let a = e; a > 0; --a)
|
|
255
258
|
o += t[Math.floor(Math.random() * t.length)];
|
|
256
259
|
return o;
|
|
257
|
-
},
|
|
260
|
+
}, Ne = (e) => {
|
|
258
261
|
let t = "";
|
|
259
262
|
const { domain: o } = document;
|
|
260
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;
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
var
|
|
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;
|
|
264
267
|
if (t.data == "get-auth") {
|
|
265
|
-
|
|
266
|
-
var
|
|
267
|
-
console.log("发送authCode:",
|
|
268
|
+
Ue().then((v) => {
|
|
269
|
+
var d;
|
|
270
|
+
console.log("发送authCode:", v), (d = C[e]) == null || d.send(`auth:${v}`);
|
|
268
271
|
});
|
|
269
272
|
return;
|
|
270
273
|
}
|
|
271
274
|
const o = JSON.parse(t.data);
|
|
272
275
|
if (console.log("接收普通消息", o), !!o)
|
|
273
276
|
if (o.MessageType === 0) {
|
|
274
|
-
const
|
|
275
|
-
if ((
|
|
276
|
-
|
|
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;
|
|
277
280
|
return;
|
|
278
281
|
}
|
|
279
|
-
(!
|
|
280
|
-
} else o.MessageType === 1 ?
|
|
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) => {
|
|
282
285
|
console.error("WebSocket 错误:", t), t instanceof ErrorEvent ? console.error("Error message:", t.message) : console.error("Unknown WebSocket error:", t);
|
|
283
|
-
},
|
|
286
|
+
}, C[e].onclose = () => {
|
|
284
287
|
console.log("WebSocket 连接关闭");
|
|
285
288
|
};
|
|
286
289
|
};
|
|
287
|
-
return
|
|
288
|
-
if (!
|
|
290
|
+
return qe(() => {
|
|
291
|
+
if (!H.value) {
|
|
289
292
|
console.error("processImportUrl不能为空!");
|
|
290
293
|
return;
|
|
291
294
|
}
|
|
292
|
-
if (!
|
|
295
|
+
if (!F.value) {
|
|
293
296
|
console.error("importId不能为空!");
|
|
294
297
|
return;
|
|
295
298
|
}
|
|
296
|
-
|
|
297
|
-
|
|
299
|
+
De(F.value).then((t) => {
|
|
300
|
+
k.value = t;
|
|
298
301
|
});
|
|
299
302
|
const e = window.location.hostname;
|
|
300
|
-
e.includes("localhost") || e.includes("127.0.0.1") || e.includes("yahee.com") ||
|
|
301
|
-
}),
|
|
302
|
-
|
|
303
|
+
e.includes("localhost") || e.includes("127.0.0.1") || e.includes("yahee.com") || Ee("PictureUrlRoot");
|
|
304
|
+
}), Ae(() => {
|
|
305
|
+
D.value.forEach((e) => {
|
|
303
306
|
var t;
|
|
304
|
-
(t =
|
|
307
|
+
(t = C[e]) == null || t.close();
|
|
305
308
|
});
|
|
306
|
-
}), (e, t) => (
|
|
307
|
-
|
|
308
|
-
modelValue:
|
|
309
|
-
"onUpdate:modelValue": t[1] || (t[1] = (o) =>
|
|
310
|
-
title:
|
|
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)),
|
|
311
314
|
width: "900",
|
|
312
|
-
"before-close":
|
|
315
|
+
"before-close": ee,
|
|
313
316
|
draggable: "",
|
|
314
|
-
onOpen:
|
|
317
|
+
onOpen: Ie
|
|
315
318
|
}, {
|
|
316
|
-
default:
|
|
319
|
+
default: r(() => {
|
|
317
320
|
var o;
|
|
318
321
|
return [
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
+
re((c(), y("div", null, [
|
|
323
|
+
T("div", lt, [
|
|
324
|
+
ne(e.$slots, "form")
|
|
322
325
|
]),
|
|
323
|
-
|
|
324
|
-
default:
|
|
325
|
-
|
|
326
|
+
s(l(I), null, {
|
|
327
|
+
default: r(() => [
|
|
328
|
+
s(l(Qe), {
|
|
326
329
|
class: "upload-record",
|
|
327
|
-
"http-request":
|
|
330
|
+
"http-request": Te,
|
|
328
331
|
accept: ".xls,.xlsx,.txt,.csv",
|
|
329
332
|
"show-file-list": !1,
|
|
330
333
|
multiple: e.multiple,
|
|
331
334
|
drag: "",
|
|
332
335
|
style: { width: "20%", height: "100%" },
|
|
333
|
-
disabled: e.uploadDisabled ||
|
|
336
|
+
disabled: e.uploadDisabled || B.value
|
|
334
337
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
338
|
+
default: r(() => [
|
|
339
|
+
s(l(W), {
|
|
337
340
|
style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
|
|
338
341
|
size: "large",
|
|
339
342
|
type: "primary",
|
|
340
343
|
disabled: e.uploadDisabled,
|
|
341
|
-
loading:
|
|
344
|
+
loading: B.value
|
|
342
345
|
}, {
|
|
343
|
-
default:
|
|
344
|
-
|
|
346
|
+
default: r(() => [
|
|
347
|
+
g(i(l(u)("上传文件")), 1)
|
|
345
348
|
]),
|
|
346
349
|
_: 1
|
|
347
350
|
}, 8, ["disabled", "loading"])
|
|
@@ -351,188 +354,188 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
|
|
|
351
354
|
]),
|
|
352
355
|
_: 1
|
|
353
356
|
}),
|
|
354
|
-
(o =
|
|
355
|
-
(
|
|
356
|
-
var
|
|
357
|
-
return
|
|
358
|
-
key:
|
|
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,
|
|
359
362
|
class: "uploadProgress"
|
|
360
363
|
}, [
|
|
361
|
-
|
|
362
|
-
default:
|
|
363
|
-
|
|
364
|
-
default:
|
|
365
|
-
|
|
364
|
+
s(l(I), { style: { "margin-bottom": "5px" } }, {
|
|
365
|
+
default: r(() => [
|
|
366
|
+
s(l(b), { span: 18 }, {
|
|
367
|
+
default: r(() => [
|
|
368
|
+
s(l(z), {
|
|
366
369
|
type: "primary",
|
|
367
370
|
underline: !1,
|
|
368
371
|
style: { font: "inherit" },
|
|
369
|
-
onClick: t[0] || (t[0] = (
|
|
372
|
+
onClick: t[0] || (t[0] = (d) => G(k.value.Template))
|
|
370
373
|
}, {
|
|
371
|
-
default:
|
|
372
|
-
|
|
374
|
+
default: r(() => [
|
|
375
|
+
g(i(a), 1)
|
|
373
376
|
]),
|
|
374
377
|
_: 2
|
|
375
378
|
}, 1024)
|
|
376
379
|
]),
|
|
377
380
|
_: 2
|
|
378
381
|
}, 1024),
|
|
379
|
-
|
|
382
|
+
E[a] ? (c(), w(l(b), {
|
|
380
383
|
key: 0,
|
|
381
384
|
span: 6
|
|
382
385
|
}, {
|
|
383
|
-
default:
|
|
384
|
-
|
|
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))
|
|
385
388
|
]),
|
|
386
389
|
_: 2
|
|
387
|
-
}, 1024)) :
|
|
390
|
+
}, 1024)) : h("", !0)
|
|
388
391
|
]),
|
|
389
392
|
_: 2
|
|
390
393
|
}, 1024),
|
|
391
|
-
|
|
394
|
+
_.value[a] ? (c(), w(l(I), {
|
|
392
395
|
key: 0,
|
|
393
396
|
style: { "margin-bottom": "5px" }
|
|
394
397
|
}, {
|
|
395
|
-
default:
|
|
396
|
-
|
|
398
|
+
default: r(() => [
|
|
399
|
+
g(i(l(u)("导入ID")) + ":" + i(_.value[a]), 1)
|
|
397
400
|
]),
|
|
398
401
|
_: 2
|
|
399
|
-
}, 1024)) :
|
|
400
|
-
|
|
402
|
+
}, 1024)) : h("", !0),
|
|
403
|
+
x.value[a] ? (c(), w(l(I), {
|
|
401
404
|
key: 1,
|
|
402
405
|
style: { "margin-bottom": "5px" }
|
|
403
406
|
}, {
|
|
404
|
-
default:
|
|
405
|
-
|
|
407
|
+
default: r(() => [
|
|
408
|
+
T("span", st, i(l(u)(x.value[a])), 1)
|
|
406
409
|
]),
|
|
407
410
|
_: 2
|
|
408
|
-
}, 1024)) :
|
|
409
|
-
(
|
|
411
|
+
}, 1024)) : h("", !0),
|
|
412
|
+
(n = m.value[a]) != null && n.totalRowCount ? (c(), w(l(I), {
|
|
410
413
|
key: 2,
|
|
411
414
|
style: { "margin-bottom": "5px" }
|
|
412
415
|
}, {
|
|
413
|
-
default:
|
|
414
|
-
var
|
|
416
|
+
default: r(() => {
|
|
417
|
+
var d, L;
|
|
415
418
|
return [
|
|
416
|
-
|
|
417
|
-
default:
|
|
418
|
-
var
|
|
419
|
+
s(l(b), { span: 6 }, {
|
|
420
|
+
default: r(() => {
|
|
421
|
+
var f, P;
|
|
419
422
|
return [
|
|
420
|
-
|
|
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)
|
|
421
424
|
];
|
|
422
425
|
}),
|
|
423
426
|
_: 2
|
|
424
427
|
}, 1024),
|
|
425
|
-
|
|
426
|
-
default:
|
|
427
|
-
var
|
|
428
|
+
s(l(b), { span: 6 }, {
|
|
429
|
+
default: r(() => {
|
|
430
|
+
var f;
|
|
428
431
|
return [
|
|
429
|
-
|
|
432
|
+
g(i(l(u)("总行数")) + ":" + i((f = m.value[a]) == null ? void 0 : f.totalRowCount), 1)
|
|
430
433
|
];
|
|
431
434
|
}),
|
|
432
435
|
_: 2
|
|
433
436
|
}, 1024),
|
|
434
|
-
|
|
435
|
-
default:
|
|
436
|
-
var
|
|
437
|
+
s(l(b), { span: 6 }, {
|
|
438
|
+
default: r(() => {
|
|
439
|
+
var f;
|
|
437
440
|
return [
|
|
438
|
-
|
|
441
|
+
g(i(l(u)("成功行数")) + ":" + i((f = m.value[a]) == null ? void 0 : f.successRowCount), 1)
|
|
439
442
|
];
|
|
440
443
|
}),
|
|
441
444
|
_: 2
|
|
442
445
|
}, 1024),
|
|
443
|
-
(
|
|
446
|
+
(d = m.value[a]) != null && d.failedRowCount ? h("", !0) : (c(), w(l(b), {
|
|
444
447
|
key: 0,
|
|
445
448
|
span: 6
|
|
446
449
|
}, {
|
|
447
|
-
default:
|
|
448
|
-
|
|
450
|
+
default: r(() => [
|
|
451
|
+
g(i(l(u)("失败行数")) + ":0 ", 1)
|
|
449
452
|
]),
|
|
450
453
|
_: 1
|
|
451
454
|
})),
|
|
452
|
-
(
|
|
455
|
+
(L = m.value[a]) != null && L.failedRowCount ? (c(), w(l(b), {
|
|
453
456
|
key: 1,
|
|
454
457
|
span: 6,
|
|
455
458
|
style: { display: "flex" }
|
|
456
459
|
}, {
|
|
457
|
-
default:
|
|
458
|
-
|
|
459
|
-
|
|
460
|
+
default: r(() => [
|
|
461
|
+
g(i(l(u)("失败行数")) + ": ", 1),
|
|
462
|
+
s(l(z), {
|
|
460
463
|
type: "primary",
|
|
461
464
|
underline: !1,
|
|
462
|
-
title:
|
|
463
|
-
onClick: (
|
|
465
|
+
title: $.value[a],
|
|
466
|
+
onClick: (f) => G($.value[a])
|
|
464
467
|
}, {
|
|
465
|
-
default:
|
|
466
|
-
var
|
|
468
|
+
default: r(() => {
|
|
469
|
+
var f;
|
|
467
470
|
return [
|
|
468
|
-
|
|
471
|
+
g(i((f = m.value[a]) == null ? void 0 : f.failedRowCount), 1)
|
|
469
472
|
];
|
|
470
473
|
}),
|
|
471
474
|
_: 2
|
|
472
475
|
}, 1032, ["title", "onClick"])
|
|
473
476
|
]),
|
|
474
477
|
_: 2
|
|
475
|
-
}, 1024)) :
|
|
478
|
+
}, 1024)) : h("", !0)
|
|
476
479
|
];
|
|
477
480
|
}),
|
|
478
481
|
_: 2
|
|
479
|
-
}, 1024)) :
|
|
480
|
-
t[3] || (t[3] =
|
|
481
|
-
(
|
|
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), {
|
|
482
485
|
key: 3,
|
|
483
|
-
percentage:
|
|
484
|
-
}, null, 8, ["percentage"])) :
|
|
485
|
-
|
|
486
|
-
|
|
486
|
+
percentage: be(a)
|
|
487
|
+
}, null, 8, ["percentage"])) : h("", !0),
|
|
488
|
+
T("div", it, [
|
|
489
|
+
ne(e.$slots, "resultMessage")
|
|
487
490
|
])
|
|
488
491
|
]);
|
|
489
492
|
}), 128))
|
|
490
|
-
])) :
|
|
491
|
-
|
|
492
|
-
default:
|
|
493
|
-
|
|
494
|
-
header:
|
|
495
|
-
e.displayGetTemplate ? (
|
|
496
|
-
|
|
497
|
-
])) :
|
|
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)
|
|
498
501
|
]),
|
|
499
|
-
footer:
|
|
500
|
-
|
|
501
|
-
default:
|
|
502
|
-
|
|
503
|
-
|
|
502
|
+
footer: r(() => [
|
|
503
|
+
s(l(I), null, {
|
|
504
|
+
default: r(() => [
|
|
505
|
+
s(l(b), { span: 10 }),
|
|
506
|
+
s(l(b), {
|
|
504
507
|
span: 14,
|
|
505
508
|
style: { display: "flex", "justify-content": "flex-end" }
|
|
506
509
|
}, {
|
|
507
|
-
default:
|
|
508
|
-
e.displayGetTemplate &&
|
|
510
|
+
default: r(() => [
|
|
511
|
+
e.displayGetTemplate && k.value.TemplateType != 0 ? (c(), w(l(W), {
|
|
509
512
|
key: 0,
|
|
510
513
|
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
511
514
|
size: "large",
|
|
512
|
-
onClick:
|
|
515
|
+
onClick: ke
|
|
513
516
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
517
|
+
default: r(() => [
|
|
518
|
+
g(i(l(u)("获取模板")), 1)
|
|
516
519
|
]),
|
|
517
520
|
_: 1
|
|
518
|
-
})) :
|
|
519
|
-
|
|
521
|
+
})) : h("", !0),
|
|
522
|
+
s(l(W), {
|
|
520
523
|
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
521
524
|
size: "large",
|
|
522
|
-
onClick:
|
|
525
|
+
onClick: Se
|
|
523
526
|
}, {
|
|
524
|
-
default:
|
|
525
|
-
|
|
527
|
+
default: r(() => [
|
|
528
|
+
g(i(l(u)("导入记录")), 1)
|
|
526
529
|
]),
|
|
527
530
|
_: 1
|
|
528
531
|
}),
|
|
529
|
-
|
|
532
|
+
s(l(W), {
|
|
530
533
|
style: { color: "#949592", "font-weight": "bold" },
|
|
531
534
|
size: "large",
|
|
532
|
-
onClick:
|
|
535
|
+
onClick: ee
|
|
533
536
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
|
|
537
|
+
default: r(() => [
|
|
538
|
+
g(i(l(u)("关闭")), 1)
|
|
536
539
|
]),
|
|
537
540
|
_: 1
|
|
538
541
|
})
|
|
@@ -543,11 +546,11 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
|
|
|
543
546
|
_: 1
|
|
544
547
|
})
|
|
545
548
|
]),
|
|
546
|
-
default:
|
|
547
|
-
e.displayGetTemplate ? (
|
|
549
|
+
default: r(() => [
|
|
550
|
+
e.displayGetTemplate ? (c(), y("div", {
|
|
548
551
|
key: 0,
|
|
549
|
-
innerHTML:
|
|
550
|
-
}, null, 8,
|
|
552
|
+
innerHTML: k.value.Description
|
|
553
|
+
}, null, 8, dt)) : h("", !0)
|
|
551
554
|
]),
|
|
552
555
|
_: 1
|
|
553
556
|
})
|
|
@@ -555,126 +558,126 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
|
|
|
555
558
|
_: 1
|
|
556
559
|
})
|
|
557
560
|
])), [
|
|
558
|
-
[
|
|
561
|
+
[l(ie), N.value]
|
|
559
562
|
])
|
|
560
563
|
];
|
|
561
564
|
}),
|
|
562
565
|
_: 3
|
|
563
566
|
}, 8, ["modelValue", "title"]),
|
|
564
|
-
|
|
565
|
-
modelValue:
|
|
566
|
-
"onUpdate:modelValue": t[2] || (t[2] = (o) =>
|
|
567
|
-
title:
|
|
567
|
+
s(l(se), {
|
|
568
|
+
modelValue: M.value,
|
|
569
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => M.value = o),
|
|
570
|
+
title: l(u)("导入记录"),
|
|
568
571
|
width: "1400",
|
|
569
|
-
"before-close":
|
|
572
|
+
"before-close": _e,
|
|
570
573
|
draggable: ""
|
|
571
574
|
}, {
|
|
572
|
-
default:
|
|
573
|
-
|
|
574
|
-
|
|
575
|
+
default: r(() => [
|
|
576
|
+
T("div", null, [
|
|
577
|
+
re((c(), w(l(tt), {
|
|
575
578
|
border: "",
|
|
576
579
|
"row-key": "id",
|
|
577
|
-
data:
|
|
580
|
+
data: Y.value,
|
|
578
581
|
"max-height": "500",
|
|
579
582
|
style: { width: "100%" },
|
|
580
|
-
"empty-text":
|
|
583
|
+
"empty-text": l(u)("暂无数据")
|
|
581
584
|
}, {
|
|
582
|
-
default:
|
|
583
|
-
|
|
585
|
+
default: r(() => [
|
|
586
|
+
s(l(R), {
|
|
584
587
|
align: "center",
|
|
585
|
-
label:
|
|
588
|
+
label: l(u)("记录ID"),
|
|
586
589
|
"min-width": "220",
|
|
587
590
|
prop: "TaskId"
|
|
588
591
|
}, null, 8, ["label"]),
|
|
589
|
-
|
|
592
|
+
s(l(R), {
|
|
590
593
|
align: "center",
|
|
591
|
-
label:
|
|
594
|
+
label: l(u)("导入时间"),
|
|
592
595
|
"min-width": "100"
|
|
593
596
|
}, {
|
|
594
|
-
default:
|
|
595
|
-
|
|
597
|
+
default: r((o) => [
|
|
598
|
+
g(i(Ce(o.row)), 1)
|
|
596
599
|
]),
|
|
597
600
|
_: 1
|
|
598
601
|
}, 8, ["label"]),
|
|
599
|
-
|
|
602
|
+
s(l(R), {
|
|
600
603
|
align: "center",
|
|
601
|
-
label:
|
|
604
|
+
label: l(u)("导入人")
|
|
602
605
|
}, {
|
|
603
|
-
default:
|
|
604
|
-
|
|
606
|
+
default: r((o) => [
|
|
607
|
+
g(i(o.row.CreatedBy ? l(je)(o.row.CreatedBy) : "-"), 1)
|
|
605
608
|
]),
|
|
606
609
|
_: 1
|
|
607
610
|
}, 8, ["label"]),
|
|
608
|
-
|
|
611
|
+
s(l(R), {
|
|
609
612
|
align: "center",
|
|
610
|
-
label:
|
|
613
|
+
label: l(u)("上传文件"),
|
|
611
614
|
"min-width": "160"
|
|
612
615
|
}, {
|
|
613
|
-
default:
|
|
614
|
-
|
|
616
|
+
default: r((o) => [
|
|
617
|
+
s(l(z), {
|
|
615
618
|
type: "primary",
|
|
616
619
|
underline: !1,
|
|
617
620
|
style: { font: "inherit" },
|
|
618
|
-
onClick: (
|
|
621
|
+
onClick: (a) => G(o.row.InFileId)
|
|
619
622
|
}, {
|
|
620
|
-
default:
|
|
621
|
-
|
|
623
|
+
default: r(() => [
|
|
624
|
+
g(i(o.row.InFileId), 1)
|
|
622
625
|
]),
|
|
623
626
|
_: 2
|
|
624
627
|
}, 1032, ["onClick"])
|
|
625
628
|
]),
|
|
626
629
|
_: 1
|
|
627
630
|
}, 8, ["label"]),
|
|
628
|
-
|
|
631
|
+
s(l(R), {
|
|
629
632
|
align: "center",
|
|
630
|
-
label:
|
|
633
|
+
label: l(u)("输出文件"),
|
|
631
634
|
"min-width": "160"
|
|
632
635
|
}, {
|
|
633
|
-
default:
|
|
634
|
-
|
|
636
|
+
default: r((o) => [
|
|
637
|
+
s(l(z), {
|
|
635
638
|
type: "primary",
|
|
636
639
|
underline: !1,
|
|
637
640
|
style: { font: "inherit" },
|
|
638
|
-
onClick: (
|
|
641
|
+
onClick: (a) => G(o.row.OutFileId)
|
|
639
642
|
}, {
|
|
640
|
-
default:
|
|
641
|
-
|
|
643
|
+
default: r(() => [
|
|
644
|
+
g(i(o.row.OutFileId), 1)
|
|
642
645
|
]),
|
|
643
646
|
_: 2
|
|
644
647
|
}, 1032, ["onClick"])
|
|
645
648
|
]),
|
|
646
649
|
_: 1
|
|
647
650
|
}, 8, ["label"]),
|
|
648
|
-
|
|
651
|
+
s(l(R), {
|
|
649
652
|
align: "center",
|
|
650
|
-
label:
|
|
653
|
+
label: l(u)("错误信息"),
|
|
651
654
|
prop: "ErrorMessage",
|
|
652
655
|
width: "200"
|
|
653
656
|
}, {
|
|
654
|
-
default:
|
|
655
|
-
o.row.ErrorMessage ? (
|
|
657
|
+
default: r((o) => [
|
|
658
|
+
o.row.ErrorMessage ? (c(), y("div", ct, i(o.row.ErrorMessage), 1)) : h("", !0)
|
|
656
659
|
]),
|
|
657
660
|
_: 1
|
|
658
661
|
}, 8, ["label"]),
|
|
659
|
-
|
|
662
|
+
s(l(R), {
|
|
660
663
|
align: "center",
|
|
661
|
-
label:
|
|
664
|
+
label: l(u)("备注"),
|
|
662
665
|
prop: "Remark"
|
|
663
666
|
}, null, 8, ["label"])
|
|
664
667
|
]),
|
|
665
668
|
_: 1
|
|
666
669
|
}, 8, ["data", "empty-text"])), [
|
|
667
|
-
[
|
|
670
|
+
[l(ie), he.value]
|
|
668
671
|
]),
|
|
669
|
-
|
|
670
|
-
"current-page":
|
|
672
|
+
s(l(ot), {
|
|
673
|
+
"current-page": Z.value,
|
|
671
674
|
"page-sizes": [50, 100, 150, 200],
|
|
672
|
-
"page-size":
|
|
675
|
+
"page-size": A.value,
|
|
673
676
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
674
|
-
total:
|
|
677
|
+
total: Q.value,
|
|
675
678
|
class: "page-pagination",
|
|
676
|
-
onSizeChange:
|
|
677
|
-
onCurrentChange:
|
|
679
|
+
onSizeChange: te,
|
|
680
|
+
onCurrentChange: Re
|
|
678
681
|
}, null, 8, ["current-page", "page-size", "total"])
|
|
679
682
|
])
|
|
680
683
|
]),
|
|
@@ -684,5 +687,5 @@ const _hoisted_1 = { class: "form-slot" }, _hoisted_2 = { key: 0 }, _hoisted_3 =
|
|
|
684
687
|
}
|
|
685
688
|
});
|
|
686
689
|
export {
|
|
687
|
-
|
|
690
|
+
Vt as default
|
|
688
691
|
};
|