yahee-components 0.0.87 → 0.0.88
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 +51 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/border-wrap/border-wrap.vue.js +64 -95
- package/es/border-wrap/border-wrap.vue2.js +46 -2
- package/es/common-import/common-import.vue.js +369 -666
- package/es/common-import/common-import.vue2.js +337 -2
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +17 -17
- package/es/copy/copy.vue.js +37 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/drop-down-condition/drop-down-condition.vue.js +115 -215
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/echart-gauge/echart-gauge.vue.js +12 -140
- package/es/echart-gauge/echart-gauge.vue2.js +147 -2
- package/es/echart-gauge/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +109 -170
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +32 -91
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +70 -218
- package/es/left-condition/left-condition.vue2.js +160 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
- package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
- package/es/operation-log/operation-log-content.vue.js +71 -92
- package/es/operation-log/operation-log-content.vue2.js +39 -2
- package/es/operation-log/operation-log-dialog.vue.js +45 -67
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +108 -183
- package/es/operation-log/operation-log-form.vue2.js +104 -2
- package/es/operation-log/operation-log.vue.js +119 -228
- package/es/operation-log/operation-log.vue2.js +135 -2
- 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 +19 -126
- package/es/scale-screen/scale-screen.vue2.js +125 -2
- package/package.json +1 -1
|
@@ -1,4 +1,339 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as ye, mergeDefaults as Ee, toRefs as be, ref as n, watch as Ie, reactive as De, onMounted as Re, onUnmounted as Ce } from "vue";
|
|
2
|
+
import { translateEmployeeName as Fe, M2 as N } from "../utils/translate.js";
|
|
3
|
+
import { get as Te } from "../packages/components/api/log-server.js";
|
|
4
|
+
import { getDomainBaseUrl as $e } from "../utils/get-domain-base-url.js";
|
|
5
|
+
import { getUploadRecord as Me } from "../packages/components/api/common-import/index.js";
|
|
6
|
+
import { defaultCommonImportProps as qe } from "./props.js";
|
|
7
|
+
import { ElMessage as u, vLoading as Ne, ElProgress as xe, ElPagination as Ue, ElCard as ke, ElUpload as Be, ElTableColumn as Pe, ElTable as Oe, ElCol as _e, ElLink as Le, ElButton as We, ElRow as Ge, ElDialog as Ae, ElMessageBox as K } 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 Je = {
|
|
34
|
+
name: "YaheeCommonImport",
|
|
35
|
+
inheritAttrs: !1
|
|
36
|
+
}, It = /* @__PURE__ */ ye({
|
|
37
|
+
...Je,
|
|
38
|
+
props: /* @__PURE__ */ Ee({
|
|
39
|
+
isShowDialog: { type: Boolean, required: !1 },
|
|
40
|
+
isShowResponseDataMessage: { type: Boolean, required: !1 },
|
|
41
|
+
title: { type: String, required: !0 },
|
|
42
|
+
importId: { type: String, required: !0 },
|
|
43
|
+
multiple: { type: Boolean, required: !1 },
|
|
44
|
+
ProcessRequestData: { type: null, required: !1 },
|
|
45
|
+
AutoCompleteResult: { type: Boolean, required: !1 },
|
|
46
|
+
displayGetTemplate: { type: Boolean, required: !1 },
|
|
47
|
+
processImportUrl: { type: String, required: !0 },
|
|
48
|
+
requestData: { type: Object, required: !1 },
|
|
49
|
+
uploadRecord: { type: Function, required: !1 },
|
|
50
|
+
uploadFile: { type: Function, required: !1 },
|
|
51
|
+
uploadDisabled: { type: Boolean, required: !1 },
|
|
52
|
+
filePath: { type: String, required: !1 },
|
|
53
|
+
processFiles: { type: Function, required: !1 }
|
|
54
|
+
}, qe()),
|
|
55
|
+
emits: [
|
|
56
|
+
"setIsShowDialog",
|
|
57
|
+
"closeDialog",
|
|
58
|
+
"setResponseData",
|
|
59
|
+
"submit",
|
|
60
|
+
"reloadTableData"
|
|
61
|
+
],
|
|
62
|
+
setup(ee, { expose: te, emit: oe }) {
|
|
63
|
+
te();
|
|
64
|
+
const x = ee, {
|
|
65
|
+
isShowDialog: re,
|
|
66
|
+
isShowResponseDataMessage: U,
|
|
67
|
+
title: ae,
|
|
68
|
+
importId: p,
|
|
69
|
+
processImportUrl: D,
|
|
70
|
+
requestData: R,
|
|
71
|
+
processFiles: k,
|
|
72
|
+
filePath: B
|
|
73
|
+
} = be(x), C = n(!1), ne = n(!1), h = n(!1), P = n([]), i = n({}), O = n(1), _ = n(1), F = n(50), d = n({}), w = n({}), T = n({}), c = {}, m = n({}), S = n({}), g = n({}), y = n(""), $ = n(!1), f = n({
|
|
74
|
+
siteId: null,
|
|
75
|
+
reportTime: null,
|
|
76
|
+
fileName: ""
|
|
77
|
+
}), E = oe, le = () => {
|
|
78
|
+
E("closeDialog");
|
|
79
|
+
}, L = () => {
|
|
80
|
+
E("setResponseData", T.value);
|
|
81
|
+
}, W = () => {
|
|
82
|
+
E("submit");
|
|
83
|
+
}, se = (e) => {
|
|
84
|
+
var t, o, r;
|
|
85
|
+
return Number(
|
|
86
|
+
((((t = i.value[e]) == null ? void 0 : t.successRowCount) + ((o = i.value[e]) == null ? void 0 : o.failedRowCount)) / ((r = i.value[e]) == null ? void 0 : r.totalRowCount) * 100).toFixed(0)
|
|
87
|
+
);
|
|
88
|
+
}, ie = (e) => {
|
|
89
|
+
const t = e == null ? void 0 : e.CreateOn;
|
|
90
|
+
if (typeof t != "string") return "---";
|
|
91
|
+
const o = t.match(/\/Date\((\d+)/);
|
|
92
|
+
if (!o) return "---";
|
|
93
|
+
const r = Number(o[1]);
|
|
94
|
+
if (Number.isNaN(r)) return "---";
|
|
95
|
+
const a = new Date(r);
|
|
96
|
+
if (Number.isNaN(a.getTime())) return "---";
|
|
97
|
+
const s = a.getFullYear(), l = String(a.getMonth() + 1).padStart(2, "0"), ve = String(a.getDate()).padStart(2, "0"), he = String(a.getHours()).padStart(2, "0"), we = String(a.getMinutes()).padStart(2, "0"), Se = String(a.getSeconds()).padStart(2, "0");
|
|
98
|
+
return `${s}-${l}-${ve} ${he}:${we}:${Se}`;
|
|
99
|
+
}, ce = () => {
|
|
100
|
+
if (!m.value) return;
|
|
101
|
+
let e = "";
|
|
102
|
+
m.value.TemplateType == 1 ? e = q(
|
|
103
|
+
`${m.value.Template}?dispositionType=attachment&t=${(/* @__PURE__ */ new Date()).getTime()}`
|
|
104
|
+
) : m.value.TemplateType == 2 && console.log("获取模板文件失败,暂不支持报表导出"), window.open(e, "_self");
|
|
105
|
+
}, ue = () => {
|
|
106
|
+
C.value = !0, G(F.value);
|
|
107
|
+
}, de = () => {
|
|
108
|
+
C.value = !1;
|
|
109
|
+
}, me = () => {
|
|
110
|
+
v.value = /* @__PURE__ */ new Set();
|
|
111
|
+
}, pe = (e) => {
|
|
112
|
+
e && window.open(`${B.value}/${e}`, "_self");
|
|
113
|
+
}, G = async (e) => {
|
|
114
|
+
M(JSON.stringify({ rows: F.value, page: e }));
|
|
115
|
+
};
|
|
116
|
+
Ie(
|
|
117
|
+
() => R,
|
|
118
|
+
(e) => {
|
|
119
|
+
e && (f.value = R.value);
|
|
120
|
+
},
|
|
121
|
+
{ immediate: !0, deep: !0 }
|
|
122
|
+
);
|
|
123
|
+
const M = (e) => {
|
|
124
|
+
Me(`/ExcelImport/GetExcelImportRecords?importId=${p.value}`, e).then((t) => {
|
|
125
|
+
var o, r;
|
|
126
|
+
t.status !== 200 && (u.error(N("获取上传记录失败!")), console.log(`获取上传记录失败!${JSON.stringify(t)}`)), P.value = (o = t.data) == null ? void 0 : o.rows, _.value = (r = t.data) == null ? void 0 : r.total;
|
|
127
|
+
}).catch((t) => {
|
|
128
|
+
console.log(t);
|
|
129
|
+
});
|
|
130
|
+
}, ge = (e) => {
|
|
131
|
+
M(JSON.stringify({ rows: e, page: O.value }));
|
|
132
|
+
}, A = async (e) => {
|
|
133
|
+
const t = `${b("/ExcelImport/GetExcelImportEvent")}?origin=${window.location.host}&importId=${e}`;
|
|
134
|
+
try {
|
|
135
|
+
const o = await fetch(t, {
|
|
136
|
+
method: "GET",
|
|
137
|
+
credentials: "include"
|
|
138
|
+
});
|
|
139
|
+
return o.ok || u.error(`Network response was not ok: ${o.statusText}`), await o.json();
|
|
140
|
+
} catch (o) {
|
|
141
|
+
return console.error("Failed to fetch Excel import event:", o), {};
|
|
142
|
+
}
|
|
143
|
+
}, q = (e) => {
|
|
144
|
+
let t = "";
|
|
145
|
+
const o = window.location.hostname;
|
|
146
|
+
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 = y.value, `${t}${e}`;
|
|
147
|
+
}, b = (e) => $e() + e, J = (e) => {
|
|
148
|
+
if (h.value = !0, e && !g.value[e])
|
|
149
|
+
try {
|
|
150
|
+
fetch(`${b("/Common/GetAllWebRoot")}?origin=${window.location.host}`, {
|
|
151
|
+
method: "GET",
|
|
152
|
+
credentials: "include"
|
|
153
|
+
}).then((t) => {
|
|
154
|
+
if (!t.ok)
|
|
155
|
+
throw new Error("Network response was not ok");
|
|
156
|
+
let o = {};
|
|
157
|
+
t.json().then((r) => {
|
|
158
|
+
if (o = r, g.value = o, !g.value) {
|
|
159
|
+
console.error("GetWebRoot 失败");
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
y.value = g.value[e], y.value || console.error(`GetWebRoot未找到key为${e}的数据`);
|
|
163
|
+
});
|
|
164
|
+
}).finally(() => {
|
|
165
|
+
h.value = !1;
|
|
166
|
+
});
|
|
167
|
+
} catch (t) {
|
|
168
|
+
h.value = !1, console.error("GetWebRoot 失败", t);
|
|
169
|
+
}
|
|
170
|
+
}, v = n(/* @__PURE__ */ new Set()), I = De({}), fe = (e) => {
|
|
171
|
+
$.value = !0;
|
|
172
|
+
const { file: t } = e, o = 100 * 1024 * 1024;
|
|
173
|
+
if (t.size > o) {
|
|
174
|
+
console.error("文件大小不能超过 1GB"), u.success("文件大小不能超过 1GB");
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
Q(t.name), j(t).then((r) => {
|
|
178
|
+
z(t, r);
|
|
179
|
+
});
|
|
180
|
+
}, j = (e) => new Promise((t, o) => {
|
|
181
|
+
const r = new FileReader();
|
|
182
|
+
r.onload = () => t(r.result), r.onerror = (a) => o(a), r.readAsDataURL(e);
|
|
183
|
+
}), z = (e, t) => {
|
|
184
|
+
W(), v.value.has(e.name) ? (delete I[e.name], delete i.value[e.name], delete d.value[e.name], delete w.value[e.name], delete c[e.name], delete S.value[e.name]) : v.value.add(e.name);
|
|
185
|
+
const o = new FormData();
|
|
186
|
+
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");
|
|
187
|
+
const r = new XMLHttpRequest();
|
|
188
|
+
r.open("POST", `${q("fragmentupload?t=")}${Math.random()}`, !0), r.upload.onprogress = (a) => {
|
|
189
|
+
a.lengthComputable && (I[e.name] = Math.round(a.loaded / a.total * 100));
|
|
190
|
+
}, r.onload = () => {
|
|
191
|
+
if (r.status === 200)
|
|
192
|
+
try {
|
|
193
|
+
const a = JSON.parse(r.responseText);
|
|
194
|
+
if (console.log("服务器返回值:", a), a.ACK !== "Success" || !a.FileId) {
|
|
195
|
+
u.error(`${e.name} 上传失败`);
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
u.success(`${e.name} 上传成功`), I[e.name] = 100, setTimeout(() => {
|
|
199
|
+
f.value = {
|
|
200
|
+
...f.value,
|
|
201
|
+
// 保留原有字段
|
|
202
|
+
fileName: (e == null ? void 0 : e.name) || ""
|
|
203
|
+
// ES6可选链避免报错
|
|
204
|
+
}, d.value[e.name] || (d.value[e.name] = X(20)), H({
|
|
205
|
+
importId: p.value,
|
|
206
|
+
fileId: a.FileId,
|
|
207
|
+
wsSessionId: d.value[e.name],
|
|
208
|
+
file: e,
|
|
209
|
+
requestData: f.value
|
|
210
|
+
});
|
|
211
|
+
}, 500);
|
|
212
|
+
} catch (a) {
|
|
213
|
+
console.error("解析服务器返回值失败:", a), u.error(`${e.name} 上传完成,但解析返回值失败`);
|
|
214
|
+
}
|
|
215
|
+
else
|
|
216
|
+
u.error(`${e.name} 上传失败`);
|
|
217
|
+
}, r.onerror = () => {
|
|
218
|
+
u.error(`${e.name} 上传异常`);
|
|
219
|
+
}, r.send(o);
|
|
220
|
+
}, H = (e) => {
|
|
221
|
+
k.value(D.value, e, {}).then((t) => {
|
|
222
|
+
var a;
|
|
223
|
+
if ($.value = !1, console.log("processFiles 返回值:", t), t != null && t.success) {
|
|
224
|
+
let s = "文件导入成功";
|
|
225
|
+
t != null && t.fileId && (s = "存在失败的条目,详情请查看输出文件"), K.alert(s, "操作成功", {
|
|
226
|
+
confirmButtonText: "确定",
|
|
227
|
+
callback: () => {
|
|
228
|
+
var l;
|
|
229
|
+
t != null && t.fileId && (w.value[(l = e == null ? void 0 : e.file) == null ? void 0 : l.name] = t.fileId, T.value = t.data, U.value && L());
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
const r = (Array.isArray(t == null ? void 0 : t.messages) ? t.messages : ["未知错误"]).join(`
|
|
235
|
+
`) + `
|
|
236
|
+
|
|
237
|
+
(可使用鼠标滚轮滚动查看)`;
|
|
238
|
+
K.alert(r, "导入错误", {
|
|
239
|
+
confirmButtonText: "知道了",
|
|
240
|
+
customClass: "custom-common-import-alert",
|
|
241
|
+
dangerouslyUseHTMLString: !0
|
|
242
|
+
}), t != null && t.fileId && (w.value[(a = e == null ? void 0 : e.file) == null ? void 0 : a.name] = t.fileId);
|
|
243
|
+
}).catch((t) => {
|
|
244
|
+
var r;
|
|
245
|
+
console.error("processFiles 失败", t);
|
|
246
|
+
let o = t == null ? void 0 : t.exMsg;
|
|
247
|
+
o || (o = N("处理过程中发生错误!")), S.value[(r = e == null ? void 0 : e.file) == null ? void 0 : r.name] = o;
|
|
248
|
+
});
|
|
249
|
+
}, X = (e, t) => {
|
|
250
|
+
t || (t = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
|
|
251
|
+
let o = "";
|
|
252
|
+
for (let r = e; r > 0; --r)
|
|
253
|
+
o += t[Math.floor(Math.random() * t.length)];
|
|
254
|
+
return o;
|
|
255
|
+
}, Y = (e) => {
|
|
256
|
+
let t = "";
|
|
257
|
+
const { domain: o } = document;
|
|
258
|
+
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;
|
|
259
|
+
}, Z = async () => await Te(b("/Common/GetWsAuthCode")), Q = (e) => {
|
|
260
|
+
c[e] = new WebSocket(Y("/excel-import/")), c[e].onmessage = (t) => {
|
|
261
|
+
var r, a;
|
|
262
|
+
if (t.data == "get-auth") {
|
|
263
|
+
Z().then((s) => {
|
|
264
|
+
var l;
|
|
265
|
+
console.log("发送authCode:", s), (l = c[e]) == null || l.send(`auth:${s}`);
|
|
266
|
+
});
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
const o = JSON.parse(t.data);
|
|
270
|
+
if (console.log("接收普通消息", o), !!o)
|
|
271
|
+
if (o.MessageType === 0) {
|
|
272
|
+
const s = o.MessageIndex || 0, l = JSON.parse(o == null ? void 0 : o.Content);
|
|
273
|
+
if ((l == null ? void 0 : l.error) == !0) {
|
|
274
|
+
S.value[e] = l.message;
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
(!i.value[e] || s > ((r = i.value[e]) == null ? void 0 : r.MessageIndex)) && (i.value[e] = l, i.value[e].MessageIndex = s, l != null && l.finished && ((a = c[e]) == null || a.close()));
|
|
278
|
+
} else o.MessageType === 1 ? d.value[e] = o.Content : console.log("进度:", o);
|
|
279
|
+
}, c[e].onerror = (t) => {
|
|
280
|
+
console.error("WebSocket 错误:", t), t instanceof ErrorEvent ? console.error("Error message:", t.message) : console.error("Unknown WebSocket error:", t);
|
|
281
|
+
}, c[e].onclose = () => {
|
|
282
|
+
console.log("WebSocket 连接关闭");
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
Re(() => {
|
|
286
|
+
if (!D.value) {
|
|
287
|
+
console.error("processImportUrl不能为空!");
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
if (!p.value) {
|
|
291
|
+
console.error("importId不能为空!");
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
A(p.value).then((t) => {
|
|
295
|
+
m.value = t;
|
|
296
|
+
});
|
|
297
|
+
const e = window.location.hostname;
|
|
298
|
+
e.includes("localhost") || e.includes("127.0.0.1") || e.includes("yahee.com") || J("PictureUrlRoot");
|
|
299
|
+
}), Ce(() => {
|
|
300
|
+
v.value.forEach((e) => {
|
|
301
|
+
var t;
|
|
302
|
+
(t = c[e]) == null || t.close();
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
const V = { props: x, isShowDialog: re, isShowResponseDataMessage: U, title: ae, importId: p, processImportUrl: D, requestData: R, processFiles: k, filePath: B, isShowCoreImportRecordDialog: C, tableLoading: ne, initWebRootUrlLoading: h, tableData: P, importProgress: i, pageNo: O, totalNum: _, pageSize: F, sessionIds: d, problemFiles: w, responseData: T, socket: c, eventData: m, errorMessage: S, allWebRoot: g, webRoot: y, uploadLoading: $, localRequestData: f, emit: E, handleClose: le, emitResponseData: L, triggerSubmit: W, getProgressPercentage: se, getFormattedDate: ie, getTemplateFile: ce, displayRecords: ue, handleCloseRecord: de, handleOpen: me, getFile: pe, handleSizeChange: G, getUploadRecordDataList: M, handleCurrentChange: ge, fetchExcelImportEvent: A, getFileServiceUrl: q, getCommonUrl: b, getWebRoot: J, fileNames: v, uploadProgress: I, handleFileUpload: fe, readFileAsBase64: j, uploadConfigFile: z, processFile: H, getRandomStr: X, getWebSocketServerUrl: Y, getAuthCode: Z, setupWebSocket: Q, get M2() {
|
|
306
|
+
return N;
|
|
307
|
+
}, get translateEmployeeName() {
|
|
308
|
+
return Fe;
|
|
309
|
+
}, get ElDialog() {
|
|
310
|
+
return Ae;
|
|
311
|
+
}, get ElRow() {
|
|
312
|
+
return Ge;
|
|
313
|
+
}, get ElButton() {
|
|
314
|
+
return We;
|
|
315
|
+
}, get ElLink() {
|
|
316
|
+
return Le;
|
|
317
|
+
}, get ElCol() {
|
|
318
|
+
return _e;
|
|
319
|
+
}, get ElTable() {
|
|
320
|
+
return Oe;
|
|
321
|
+
}, get ElTableColumn() {
|
|
322
|
+
return Pe;
|
|
323
|
+
}, get ElUpload() {
|
|
324
|
+
return Be;
|
|
325
|
+
}, get ElCard() {
|
|
326
|
+
return ke;
|
|
327
|
+
}, get ElPagination() {
|
|
328
|
+
return Ue;
|
|
329
|
+
}, get ElProgress() {
|
|
330
|
+
return xe;
|
|
331
|
+
}, get vLoading() {
|
|
332
|
+
return Ne;
|
|
333
|
+
} };
|
|
334
|
+
return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
|
|
335
|
+
}
|
|
336
|
+
});
|
|
2
337
|
export {
|
|
3
|
-
|
|
338
|
+
It as default
|
|
4
339
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as r, createElementBlock as d, openBlock as n, Fragment as u, createElementVNode as b, createVNode as t, withKeys as B, createSlots as U, withCtx as a, renderList as
|
|
1
|
+
import T from "./complex-search.vue2.js";
|
|
2
|
+
import { resolveComponent as r, createElementBlock as d, openBlock as n, Fragment as u, createElementVNode as b, createVNode as t, withKeys as B, createSlots as U, withCtx as a, renderList as c, createBlock as s, createCommentVNode as V, createTextVNode as i, toDisplayString as h } from "vue";
|
|
3
3
|
import O from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const z = { class: "yahee-complex-search" },
|
|
5
|
-
function
|
|
6
|
-
const m = r("el-option"), p = r("el-select"), C = r("Search"), w = r("el-icon"), f = r("el-input"), g = r("el-checkbox"), v = r("el-link"), y = r("el-form-item"), S = r("el-row"), F = r("el-form"), k = r("el-button"),
|
|
4
|
+
const z = { class: "yahee-complex-search" }, E = { class: "search-type-checkbox" }, P = { class: "dialog-footer" };
|
|
5
|
+
function W(e, o, N, $, K, L) {
|
|
6
|
+
const m = r("el-option"), p = r("el-select"), C = r("Search"), w = r("el-icon"), f = r("el-input"), g = r("el-checkbox"), v = r("el-link"), y = r("el-form-item"), S = r("el-row"), F = r("el-form"), k = r("el-button"), _ = r("el-dialog");
|
|
7
7
|
return n(), d(u, null, [
|
|
8
8
|
b("div", z, [
|
|
9
9
|
t(f, {
|
|
@@ -43,7 +43,7 @@ function E(e, o, N, $, K, L) {
|
|
|
43
43
|
class: "custom-select"
|
|
44
44
|
}, {
|
|
45
45
|
default: a(() => [
|
|
46
|
-
(n(!0), d(u, null,
|
|
46
|
+
(n(!0), d(u, null, c(e.options, (l) => (n(), s(m, {
|
|
47
47
|
key: l.label,
|
|
48
48
|
label: l.label,
|
|
49
49
|
value: l.value
|
|
@@ -64,7 +64,7 @@ function E(e, o, N, $, K, L) {
|
|
|
64
64
|
disabled: ""
|
|
65
65
|
}, {
|
|
66
66
|
default: a(() => [
|
|
67
|
-
(n(!0), d(u, null,
|
|
67
|
+
(n(!0), d(u, null, c(e.defalutOptions, (l) => (n(), s(m, {
|
|
68
68
|
key: l.label,
|
|
69
69
|
label: l.label,
|
|
70
70
|
value: l.value
|
|
@@ -76,7 +76,7 @@ function E(e, o, N, $, K, L) {
|
|
|
76
76
|
key: "1"
|
|
77
77
|
}
|
|
78
78
|
]), 1032, ["modelValue", "placeholder", "onChange", "onKeyup", "onPaste"]),
|
|
79
|
-
b("div",
|
|
79
|
+
b("div", E, [
|
|
80
80
|
e.showWithinFilterCheckbox ? (n(), s(g, {
|
|
81
81
|
key: 0,
|
|
82
82
|
modelValue: e.isWithinFilterOptions,
|
|
@@ -84,7 +84,7 @@ function E(e, o, N, $, K, L) {
|
|
|
84
84
|
onChange: e.searchWithinFilterOptions
|
|
85
85
|
}, {
|
|
86
86
|
default: a(() => o[8] || (o[8] = [
|
|
87
|
-
h(
|
|
87
|
+
i(h("在筛选条件内查询"))
|
|
88
88
|
])),
|
|
89
89
|
_: 1,
|
|
90
90
|
__: [8]
|
|
@@ -95,14 +95,14 @@ function E(e, o, N, $, K, L) {
|
|
|
95
95
|
onClick: e.showBatchSearchDialog
|
|
96
96
|
}, {
|
|
97
97
|
default: a(() => o[9] || (o[9] = [
|
|
98
|
-
h(
|
|
98
|
+
i(h("批量查询"))
|
|
99
99
|
])),
|
|
100
100
|
_: 1,
|
|
101
101
|
__: [9]
|
|
102
102
|
}, 8, ["onClick"])) : V("", !0)
|
|
103
103
|
])
|
|
104
104
|
]),
|
|
105
|
-
t(
|
|
105
|
+
t(_, {
|
|
106
106
|
modelValue: e.showBatchSearch,
|
|
107
107
|
"onUpdate:modelValue": o[7] || (o[7] = (l) => e.showBatchSearch = l),
|
|
108
108
|
title: "批量查询",
|
|
@@ -112,21 +112,21 @@ function E(e, o, N, $, K, L) {
|
|
|
112
112
|
draggable: ""
|
|
113
113
|
}, {
|
|
114
114
|
footer: a(() => [
|
|
115
|
-
b("div",
|
|
115
|
+
b("div", P, [
|
|
116
116
|
t(k, {
|
|
117
117
|
type: "primary",
|
|
118
118
|
loading: e.confirmLoading,
|
|
119
119
|
onClick: e.confirmSearch
|
|
120
120
|
}, {
|
|
121
121
|
default: a(() => o[10] || (o[10] = [
|
|
122
|
-
h(
|
|
122
|
+
i(h("确认"))
|
|
123
123
|
])),
|
|
124
124
|
_: 1,
|
|
125
125
|
__: [10]
|
|
126
126
|
}, 8, ["loading", "onClick"]),
|
|
127
127
|
t(k, { onClick: e.handleBatchSearchClose }, {
|
|
128
128
|
default: a(() => o[11] || (o[11] = [
|
|
129
|
-
h(
|
|
129
|
+
i(h("关闭"))
|
|
130
130
|
])),
|
|
131
131
|
_: 1,
|
|
132
132
|
__: [11]
|
|
@@ -152,7 +152,7 @@ function E(e, o, N, $, K, L) {
|
|
|
152
152
|
style: { width: "100px", "background-color": "white" }
|
|
153
153
|
}, {
|
|
154
154
|
default: a(() => [
|
|
155
|
-
(n(!0), d(u, null,
|
|
155
|
+
(n(!0), d(u, null, c(e.isBatchSelectOptionsSameWithInput ? e.options : e.batchOptions, (l) => (n(), s(m, {
|
|
156
156
|
key: l.label,
|
|
157
157
|
label: l.label,
|
|
158
158
|
value: l.value
|
|
@@ -168,7 +168,7 @@ function E(e, o, N, $, K, L) {
|
|
|
168
168
|
disabled: ""
|
|
169
169
|
}, {
|
|
170
170
|
default: a(() => [
|
|
171
|
-
(n(!0), d(u, null,
|
|
171
|
+
(n(!0), d(u, null, c(e.defalutOptions, (l) => (n(), s(m, {
|
|
172
172
|
key: l.label,
|
|
173
173
|
label: l.label,
|
|
174
174
|
value: l.value
|
|
@@ -211,7 +211,7 @@ function E(e, o, N, $, K, L) {
|
|
|
211
211
|
}, 8, ["modelValue", "before-close"])
|
|
212
212
|
], 64);
|
|
213
213
|
}
|
|
214
|
-
const X = /* @__PURE__ */ O(
|
|
214
|
+
const X = /* @__PURE__ */ O(T, [["render", W], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/complex-search/complex-search.vue"]]);
|
|
215
215
|
export {
|
|
216
216
|
X as default
|
|
217
217
|
};
|
package/es/copy/copy.vue.js
CHANGED
|
@@ -1,57 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
onClick: r
|
|
38
|
-
}, {
|
|
39
|
-
default: t(() => [
|
|
40
|
-
e(o(h))
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
})
|
|
44
|
-
]),
|
|
45
|
-
default: t(() => [
|
|
46
|
-
i("div", null, [
|
|
47
|
-
f(n.$slots, "default")
|
|
48
|
-
])
|
|
49
|
-
]),
|
|
50
|
-
_: 3
|
|
51
|
-
})
|
|
52
|
-
]));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
1
|
+
import n from "./copy.vue2.js";
|
|
2
|
+
import { createElementBlock as r, openBlock as l, createVNode as e, withCtx as c, createElementVNode as s, renderSlot as p } from "vue";
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = { class: "yahee-copy" };
|
|
5
|
+
function i(t, m, _, o, d, y) {
|
|
6
|
+
return l(), r("div", f, [
|
|
7
|
+
e(o.ElTooltip, {
|
|
8
|
+
placement: "right",
|
|
9
|
+
effect: "light",
|
|
10
|
+
offset: -5,
|
|
11
|
+
"show-arrow": !1,
|
|
12
|
+
"popper-class": "yahee-copy-custom-popper-class"
|
|
13
|
+
}, {
|
|
14
|
+
content: c(() => [
|
|
15
|
+
e(o.ElIcon, {
|
|
16
|
+
color: "#3366cc",
|
|
17
|
+
size: "18",
|
|
18
|
+
class: "icon",
|
|
19
|
+
onClick: o.copyContent
|
|
20
|
+
}, {
|
|
21
|
+
default: c(() => [
|
|
22
|
+
e(o.DocumentCopy)
|
|
23
|
+
]),
|
|
24
|
+
_: 1
|
|
25
|
+
})
|
|
26
|
+
]),
|
|
27
|
+
default: c(() => [
|
|
28
|
+
s("div", null, [
|
|
29
|
+
p(t.$slots, "default")
|
|
30
|
+
])
|
|
31
|
+
]),
|
|
32
|
+
_: 3
|
|
33
|
+
})
|
|
34
|
+
]);
|
|
35
|
+
}
|
|
36
|
+
const E = /* @__PURE__ */ a(n, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/copy/copy.vue"]]);
|
|
55
37
|
export {
|
|
56
|
-
|
|
38
|
+
E as default
|
|
57
39
|
};
|
package/es/copy/copy.vue2.js
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as n } from "vue";
|
|
2
|
+
import { ElMessage as s, ElIcon as m, ElTooltip as i } from "element-plus";
|
|
3
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
+
import "element-plus/theme-chalk/src/tooltip.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/popper.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/badge.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/message.scss";
|
|
8
|
+
import { DocumentCopy as c } from "@element-plus/icons-vue";
|
|
9
|
+
import { useClipboard as u } from "../packages/components/hooks/useClipboard.js";
|
|
10
|
+
const b = /* @__PURE__ */ n({
|
|
11
|
+
name: "YaheeCopy",
|
|
12
|
+
__name: "copy",
|
|
13
|
+
props: {
|
|
14
|
+
content: { type: String, required: !0, default: "" },
|
|
15
|
+
message: { type: String, required: !1, default: "复制成功" }
|
|
16
|
+
},
|
|
17
|
+
setup(r, { expose: p }) {
|
|
18
|
+
p();
|
|
19
|
+
const e = r, { copyUrl: t } = u(), o = { props: e, copyUrl: t, copyContent: () => {
|
|
20
|
+
t(e.content), s({
|
|
21
|
+
message: e.message,
|
|
22
|
+
type: "success"
|
|
23
|
+
});
|
|
24
|
+
}, get ElTooltip() {
|
|
25
|
+
return i;
|
|
26
|
+
}, get ElIcon() {
|
|
27
|
+
return m;
|
|
28
|
+
}, get DocumentCopy() {
|
|
29
|
+
return c;
|
|
30
|
+
} };
|
|
31
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
2
34
|
export {
|
|
3
|
-
|
|
35
|
+
b as default
|
|
4
36
|
};
|
package/es/copy/index.js
CHANGED