yahee-components 0.0.72 → 0.0.73
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/api/tool.js +1 -1
- 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 +4 -384
- package/es/common-import/common-import.vue2.js +438 -90
- package/es/complex-search/complex-search.vue.js +17 -17
- 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/es/utils/translate.js +18 -18
- package/es/yahee-components.css +1 -1
- package/package.json +1 -1
|
@@ -1,388 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as f, openBlock as t, Fragment as E, createVNode as o, withCtx as e, withDirectives as k, createElementVNode as s, createCommentVNode as g, renderSlot as x, createTextVNode as n, toDisplayString as a, renderList as R, createBlock as m } from "vue";
|
|
1
|
+
import o from "./common-import.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
3
|
import "E:/工作/项目代码/common_componentsweb/packages/components/src/common-import/common-import.vue?vue&type=style&index=1&lang.scss";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "ellipsis-cell"
|
|
9
|
-
};
|
|
10
|
-
function N(M, c, b, l, B, u) {
|
|
11
|
-
return t(), f(E, null, [
|
|
12
|
-
o(l.ElDialog, {
|
|
13
|
-
modelValue: l.isShowDialog,
|
|
14
|
-
"onUpdate:modelValue": c[1] || (c[1] = (i) => l.isShowDialog = i),
|
|
15
|
-
title: l.M2(l.title),
|
|
16
|
-
width: "900",
|
|
17
|
-
"before-close": l.handleClose,
|
|
18
|
-
draggable: "",
|
|
19
|
-
onOpen: l.handleOpen
|
|
20
|
-
}, {
|
|
21
|
-
default: e(() => {
|
|
22
|
-
var i;
|
|
23
|
-
return [
|
|
24
|
-
k((t(), f("div", null, [
|
|
25
|
-
s("div", P, [
|
|
26
|
-
x(M.$slots, "form", {}, void 0, !0)
|
|
27
|
-
]),
|
|
28
|
-
o(l.ElRow, null, {
|
|
29
|
-
default: e(() => [
|
|
30
|
-
o(l.ElUpload, {
|
|
31
|
-
class: "upload-record",
|
|
32
|
-
"http-request": l.handleFileUpload,
|
|
33
|
-
accept: ".xls,.xlsx,.txt,.csv",
|
|
34
|
-
"show-file-list": !1,
|
|
35
|
-
multiple: b.multiple,
|
|
36
|
-
drag: "",
|
|
37
|
-
style: { width: "20%", height: "100%" },
|
|
38
|
-
disabled: b.uploadDisabled
|
|
39
|
-
}, {
|
|
40
|
-
default: e(() => [
|
|
41
|
-
o(l.ElButton, {
|
|
42
|
-
style: { "background-color": "rgba(0, 183, 238, 1)", "font-weight": "bold" },
|
|
43
|
-
size: "large",
|
|
44
|
-
type: "primary",
|
|
45
|
-
disabled: b.uploadDisabled
|
|
46
|
-
}, {
|
|
47
|
-
default: e(() => [
|
|
48
|
-
n(a(l.M2("上传文件")), 1)
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["disabled"])
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["multiple", "disabled"])
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}),
|
|
58
|
-
(i = l.fileNames) != null && i.size ? (t(), f("div", T, [
|
|
59
|
-
(t(!0), f(E, null, R(l.fileNames, (r) => {
|
|
60
|
-
var _, C;
|
|
61
|
-
return t(), f("div", {
|
|
62
|
-
key: r,
|
|
63
|
-
class: "uploadProgress"
|
|
64
|
-
}, [
|
|
65
|
-
o(l.ElRow, { style: { "margin-bottom": "5px" } }, {
|
|
66
|
-
default: e(() => [
|
|
67
|
-
o(l.ElCol, { span: 18 }, {
|
|
68
|
-
default: e(() => [
|
|
69
|
-
o(l.ElLink, {
|
|
70
|
-
type: "primary",
|
|
71
|
-
underline: !1,
|
|
72
|
-
style: { font: "inherit" },
|
|
73
|
-
onClick: c[0] || (c[0] = (y) => l.getFile(l.eventData.Template))
|
|
74
|
-
}, {
|
|
75
|
-
default: e(() => [
|
|
76
|
-
n(a(r), 1)
|
|
77
|
-
]),
|
|
78
|
-
_: 2
|
|
79
|
-
}, 1024)
|
|
80
|
-
]),
|
|
81
|
-
_: 2
|
|
82
|
-
}, 1024),
|
|
83
|
-
l.uploadProgress[r] ? (t(), m(l.ElCol, {
|
|
84
|
-
key: 0,
|
|
85
|
-
span: 6
|
|
86
|
-
}, {
|
|
87
|
-
default: e(() => [
|
|
88
|
-
l.uploadProgress[r] == 100 ? (t(), f("span", I, a(l.M2("文件上传完成")), 1)) : (t(), f("span", F, a(l.M2("文件正在上传,进度") + `${l.uploadProgress[r]}% ...`), 1))
|
|
89
|
-
]),
|
|
90
|
-
_: 2
|
|
91
|
-
}, 1024)) : g("", !0)
|
|
92
|
-
]),
|
|
93
|
-
_: 2
|
|
94
|
-
}, 1024),
|
|
95
|
-
l.sessionIds[r] ? (t(), m(l.ElRow, {
|
|
96
|
-
key: 0,
|
|
97
|
-
style: { "margin-bottom": "5px" }
|
|
98
|
-
}, {
|
|
99
|
-
default: e(() => [
|
|
100
|
-
n(a(l.M2("导入ID")) + ":" + a(l.sessionIds[r]), 1)
|
|
101
|
-
]),
|
|
102
|
-
_: 2
|
|
103
|
-
}, 1024)) : g("", !0),
|
|
104
|
-
l.errorMessage[r] ? (t(), m(l.ElRow, {
|
|
105
|
-
key: 1,
|
|
106
|
-
style: { "margin-bottom": "5px" }
|
|
107
|
-
}, {
|
|
108
|
-
default: e(() => [
|
|
109
|
-
s("span", z, a(l.M2(l.errorMessage[r])), 1)
|
|
110
|
-
]),
|
|
111
|
-
_: 2
|
|
112
|
-
}, 1024)) : g("", !0),
|
|
113
|
-
(_ = l.importProgress[r]) != null && _.totalRowCount ? (t(), m(l.ElRow, {
|
|
114
|
-
key: 2,
|
|
115
|
-
style: { "margin-bottom": "5px" }
|
|
116
|
-
}, {
|
|
117
|
-
default: e(() => {
|
|
118
|
-
var y, h;
|
|
119
|
-
return [
|
|
120
|
-
o(l.ElCol, { span: 6 }, {
|
|
121
|
-
default: e(() => {
|
|
122
|
-
var d, w;
|
|
123
|
-
return [
|
|
124
|
-
n(a(l.M2("工作簿")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.currentSheet) + "/" + a((w = l.importProgress[r]) == null ? void 0 : w.sheetCount), 1)
|
|
125
|
-
];
|
|
126
|
-
}),
|
|
127
|
-
_: 2
|
|
128
|
-
}, 1024),
|
|
129
|
-
o(l.ElCol, { span: 6 }, {
|
|
130
|
-
default: e(() => {
|
|
131
|
-
var d;
|
|
132
|
-
return [
|
|
133
|
-
n(a(l.M2("总行数")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.totalRowCount), 1)
|
|
134
|
-
];
|
|
135
|
-
}),
|
|
136
|
-
_: 2
|
|
137
|
-
}, 1024),
|
|
138
|
-
o(l.ElCol, { span: 6 }, {
|
|
139
|
-
default: e(() => {
|
|
140
|
-
var d;
|
|
141
|
-
return [
|
|
142
|
-
n(a(l.M2("成功行数")) + ":" + a((d = l.importProgress[r]) == null ? void 0 : d.successRowCount), 1)
|
|
143
|
-
];
|
|
144
|
-
}),
|
|
145
|
-
_: 2
|
|
146
|
-
}, 1024),
|
|
147
|
-
(y = l.importProgress[r]) != null && y.failedRowCount ? g("", !0) : (t(), m(l.ElCol, {
|
|
148
|
-
key: 0,
|
|
149
|
-
span: 6
|
|
150
|
-
}, {
|
|
151
|
-
default: e(() => [
|
|
152
|
-
n(a(l.M2("失败行数")) + ":0 ", 1)
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
})),
|
|
156
|
-
(h = l.importProgress[r]) != null && h.failedRowCount ? (t(), m(l.ElCol, {
|
|
157
|
-
key: 1,
|
|
158
|
-
span: 6,
|
|
159
|
-
style: { display: "flex" }
|
|
160
|
-
}, {
|
|
161
|
-
default: e(() => [
|
|
162
|
-
n(a(l.M2("失败行数")) + ": ", 1),
|
|
163
|
-
o(l.ElLink, {
|
|
164
|
-
type: "primary",
|
|
165
|
-
underline: !1,
|
|
166
|
-
title: l.problemFiles[r],
|
|
167
|
-
onClick: (d) => l.getFile(l.problemFiles[r])
|
|
168
|
-
}, {
|
|
169
|
-
default: e(() => {
|
|
170
|
-
var d;
|
|
171
|
-
return [
|
|
172
|
-
n(a((d = l.importProgress[r]) == null ? void 0 : d.failedRowCount), 1)
|
|
173
|
-
];
|
|
174
|
-
}),
|
|
175
|
-
_: 2
|
|
176
|
-
}, 1032, ["title", "onClick"])
|
|
177
|
-
]),
|
|
178
|
-
_: 2
|
|
179
|
-
}, 1024)) : g("", !0)
|
|
180
|
-
];
|
|
181
|
-
}),
|
|
182
|
-
_: 2
|
|
183
|
-
}, 1024)) : g("", !0),
|
|
184
|
-
c[3] || (c[3] = s("br", null, null, -1)),
|
|
185
|
-
(C = l.importProgress[r]) != null && C.totalRowCount ? (t(), m(l.ElProgress, {
|
|
186
|
-
key: 3,
|
|
187
|
-
percentage: l.getProgressPercentage(r)
|
|
188
|
-
}, null, 8, ["percentage"])) : g("", !0)
|
|
189
|
-
]);
|
|
190
|
-
}), 128))
|
|
191
|
-
])) : g("", !0),
|
|
192
|
-
o(l.ElRow, { style: { "margin-top": "10px" } }, {
|
|
193
|
-
default: e(() => [
|
|
194
|
-
o(l.ElCard, { style: { width: "860px" } }, {
|
|
195
|
-
header: e(() => [
|
|
196
|
-
s("div", L, [
|
|
197
|
-
s("span", null, a(l.M2("说明")), 1)
|
|
198
|
-
])
|
|
199
|
-
]),
|
|
200
|
-
footer: e(() => [
|
|
201
|
-
o(l.ElRow, null, {
|
|
202
|
-
default: e(() => [
|
|
203
|
-
o(l.ElCol, { span: 10 }),
|
|
204
|
-
o(l.ElCol, {
|
|
205
|
-
span: 14,
|
|
206
|
-
style: { display: "flex", "justify-content": "flex-end" }
|
|
207
|
-
}, {
|
|
208
|
-
default: e(() => [
|
|
209
|
-
b.displayGetTemplate && l.eventData.TemplateType != 0 ? (t(), m(l.ElButton, {
|
|
210
|
-
key: 0,
|
|
211
|
-
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
212
|
-
size: "large",
|
|
213
|
-
onClick: l.getTemplateFile
|
|
214
|
-
}, {
|
|
215
|
-
default: e(() => [
|
|
216
|
-
n(a(l.M2("获取模板")), 1)
|
|
217
|
-
]),
|
|
218
|
-
_: 1
|
|
219
|
-
})) : g("", !0),
|
|
220
|
-
o(l.ElButton, {
|
|
221
|
-
style: { "background-color": "rgba(89, 191, 87, 1)", color: "white", "font-weight": "bold" },
|
|
222
|
-
size: "large",
|
|
223
|
-
onClick: l.displayRecords
|
|
224
|
-
}, {
|
|
225
|
-
default: e(() => [
|
|
226
|
-
n(a(l.M2("导入记录")), 1)
|
|
227
|
-
]),
|
|
228
|
-
_: 1
|
|
229
|
-
}),
|
|
230
|
-
o(l.ElButton, {
|
|
231
|
-
style: { color: "#949592", "font-weight": "bold" },
|
|
232
|
-
size: "large",
|
|
233
|
-
onClick: l.handleClose
|
|
234
|
-
}, {
|
|
235
|
-
default: e(() => [
|
|
236
|
-
n(a(l.M2("关闭")), 1)
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
})
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
})
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
})
|
|
246
|
-
]),
|
|
247
|
-
default: e(() => [
|
|
248
|
-
s("div", {
|
|
249
|
-
innerHTML: l.eventData.Description
|
|
250
|
-
}, null, 8, S)
|
|
251
|
-
]),
|
|
252
|
-
_: 1
|
|
253
|
-
})
|
|
254
|
-
]),
|
|
255
|
-
_: 1
|
|
256
|
-
})
|
|
257
|
-
])), [
|
|
258
|
-
[l.vLoading, l.initWebRootUrlLoading]
|
|
259
|
-
])
|
|
260
|
-
];
|
|
261
|
-
}),
|
|
262
|
-
_: 3
|
|
263
|
-
}, 8, ["modelValue", "title"]),
|
|
264
|
-
o(l.ElDialog, {
|
|
265
|
-
modelValue: l.isShowCoreImportRecordDialog,
|
|
266
|
-
"onUpdate:modelValue": c[2] || (c[2] = (i) => l.isShowCoreImportRecordDialog = i),
|
|
267
|
-
title: l.M2("导入记录"),
|
|
268
|
-
width: "1400",
|
|
269
|
-
"before-close": l.handleCloseRecord,
|
|
270
|
-
draggable: ""
|
|
271
|
-
}, {
|
|
272
|
-
default: e(() => [
|
|
273
|
-
s("div", null, [
|
|
274
|
-
k((t(), m(l.ElTable, {
|
|
275
|
-
border: "",
|
|
276
|
-
"row-key": "id",
|
|
277
|
-
data: l.tableData,
|
|
278
|
-
"max-height": "500",
|
|
279
|
-
style: { width: "100%" },
|
|
280
|
-
"empty-text": l.M2("暂无数据")
|
|
281
|
-
}, {
|
|
282
|
-
default: e(() => [
|
|
283
|
-
o(l.ElTableColumn, {
|
|
284
|
-
align: "center",
|
|
285
|
-
label: l.M2("记录ID"),
|
|
286
|
-
"min-width": "220",
|
|
287
|
-
prop: "TaskId"
|
|
288
|
-
}, null, 8, ["label"]),
|
|
289
|
-
o(l.ElTableColumn, {
|
|
290
|
-
align: "center",
|
|
291
|
-
label: l.M2("导入时间"),
|
|
292
|
-
"min-width": "100"
|
|
293
|
-
}, {
|
|
294
|
-
default: e((i) => [
|
|
295
|
-
n(a(l.getFormattedDate(i.row)), 1)
|
|
296
|
-
]),
|
|
297
|
-
_: 1
|
|
298
|
-
}, 8, ["label"]),
|
|
299
|
-
o(l.ElTableColumn, {
|
|
300
|
-
align: "center",
|
|
301
|
-
label: l.M2("导入人")
|
|
302
|
-
}, {
|
|
303
|
-
default: e((i) => [
|
|
304
|
-
n(a(l.translateEmployeeName(i.row.CreatedBy)), 1)
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
}, 8, ["label"]),
|
|
308
|
-
o(l.ElTableColumn, {
|
|
309
|
-
align: "center",
|
|
310
|
-
label: l.M2("上传文件"),
|
|
311
|
-
"min-width": "160"
|
|
312
|
-
}, {
|
|
313
|
-
default: e((i) => [
|
|
314
|
-
o(l.ElLink, {
|
|
315
|
-
type: "primary",
|
|
316
|
-
underline: !1,
|
|
317
|
-
style: { font: "inherit" },
|
|
318
|
-
onClick: (r) => l.getFile(i.row.InFileId)
|
|
319
|
-
}, {
|
|
320
|
-
default: e(() => [
|
|
321
|
-
n(a(i.row.InFileId), 1)
|
|
322
|
-
]),
|
|
323
|
-
_: 2
|
|
324
|
-
}, 1032, ["onClick"])
|
|
325
|
-
]),
|
|
326
|
-
_: 1
|
|
327
|
-
}, 8, ["label"]),
|
|
328
|
-
o(l.ElTableColumn, {
|
|
329
|
-
align: "center",
|
|
330
|
-
label: l.M2("输出文件"),
|
|
331
|
-
"min-width": "160"
|
|
332
|
-
}, {
|
|
333
|
-
default: e((i) => [
|
|
334
|
-
o(l.ElLink, {
|
|
335
|
-
type: "primary",
|
|
336
|
-
underline: !1,
|
|
337
|
-
style: { font: "inherit" },
|
|
338
|
-
onClick: (r) => l.getFile(i.row.OutFileId)
|
|
339
|
-
}, {
|
|
340
|
-
default: e(() => [
|
|
341
|
-
n(a(i.row.OutFileId), 1)
|
|
342
|
-
]),
|
|
343
|
-
_: 2
|
|
344
|
-
}, 1032, ["onClick"])
|
|
345
|
-
]),
|
|
346
|
-
_: 1
|
|
347
|
-
}, 8, ["label"]),
|
|
348
|
-
o(l.ElTableColumn, {
|
|
349
|
-
align: "center",
|
|
350
|
-
label: l.M2("错误信息"),
|
|
351
|
-
prop: "ErrorMessage",
|
|
352
|
-
width: "200"
|
|
353
|
-
}, {
|
|
354
|
-
default: e((i) => [
|
|
355
|
-
i.row.ErrorMessage ? (t(), f("div", V, a(i.row.ErrorMessage), 1)) : g("", !0)
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
}, 8, ["label"]),
|
|
359
|
-
o(l.ElTableColumn, {
|
|
360
|
-
align: "center",
|
|
361
|
-
label: l.M2("备注"),
|
|
362
|
-
prop: "Remark"
|
|
363
|
-
}, null, 8, ["label"])
|
|
364
|
-
]),
|
|
365
|
-
_: 1
|
|
366
|
-
}, 8, ["data", "empty-text"])), [
|
|
367
|
-
[l.vLoading, l.tableLoading]
|
|
368
|
-
]),
|
|
369
|
-
o(l.ElPagination, {
|
|
370
|
-
"current-page": l.pageNo,
|
|
371
|
-
"page-sizes": [50, 100, 150, 200],
|
|
372
|
-
"page-size": l.pageSize,
|
|
373
|
-
layout: "total, sizes, prev, pager, next, jumper",
|
|
374
|
-
total: l.totalNum,
|
|
375
|
-
class: "page-pagination",
|
|
376
|
-
onSizeChange: l.handleSizeChange,
|
|
377
|
-
onCurrentChange: l.handleCurrentChange
|
|
378
|
-
}, null, 8, ["current-page", "page-size", "total"])
|
|
379
|
-
])
|
|
380
|
-
]),
|
|
381
|
-
_: 1
|
|
382
|
-
}, 8, ["modelValue", "title"])
|
|
383
|
-
], 64);
|
|
384
|
-
}
|
|
385
|
-
const G = /* @__PURE__ */ D(v, [["render", N], ["__scopeId", "data-v-9ce7b4b6"], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/common-import/common-import.vue"]]);
|
|
4
|
+
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-2e887c1d"]]);
|
|
386
6
|
export {
|
|
387
|
-
|
|
7
|
+
a as default
|
|
388
8
|
};
|