@utogether/components 3.0.0-beta.31 → 3.0.0-beta.32
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/dist/components.es.js +358 -358
- package/dist/components.umd.js +3 -3
- package/package.json +1 -1
package/dist/components.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as te, getCurrentInstance as Se, computed as ke, resolveComponent as V, createBlock as re, createElementBlock as B, createCommentVNode as oe, openBlock as O, unref as ee, withCtx as Y, Fragment as ye, renderList as he, createTextVNode as En, toDisplayString as Z, createVNode as M, mergeProps as we, ref as U, reactive as Xe, createElementVNode as R, nextTick as $e, onMounted as Qe, mergeModels as Zt, useModel as Co, watch as at, toHandlers as Mt, createSlots as ko, withDirectives as So, vModelText as Eo, normalizeClass as be, renderSlot as Ke, pushScopeId as Ut, popScopeId as Bt, normalizeStyle as Ve, useAttrs as Lt, onUnmounted as Ro, onBeforeMount as dt, toRaw as Rn, toRef as To, h as Ce } from "vue";
|
|
2
2
|
import { useI18n as Oe } from "vue-i18n";
|
|
3
|
-
import { throttle as Ct, toDateString as Re, isEmpty as ze, clone as
|
|
3
|
+
import { throttle as Ct, toDateString as Re, isEmpty as ze, clone as ae, isString as Ne, isFunction as $t, orderBy as $o, commafy as Oo, isObject as Do, isArray as Ao } from "xe-utils";
|
|
4
4
|
import { withInstall as ue, cookies as ve, useRender as Tn, delay as Fo, storageLocal as $n, warnMessage as Ae, formatRules as Ie, formatItems as jt, successMessage as lt, dbstorage as en, i18nColums as On, errorMessage as Po, formatGridItems as Dn, iconSet as No, lunarCalendar as nt } from "@utogether/utils";
|
|
5
5
|
import Vt from "await-to-js";
|
|
6
6
|
import { VxeUI as Ee } from "vxe-pc-ui";
|
|
@@ -38,8 +38,8 @@ const Uo = {
|
|
|
38
38
|
content: y ? n.content : r(`message.btn.${n.content}`)
|
|
39
39
|
};
|
|
40
40
|
}), c = () => {
|
|
41
|
-
var g, y,
|
|
42
|
-
return n.mode === "text" ? null : n.icon ? n.icon : (g = n.content) != null && g.toLowerCase().includes("print") ? "ri-printer-line" : (y = n.content) != null && y.toLowerCase().includes("look") ? "ri-eye-line" : (
|
|
41
|
+
var g, y, b, f;
|
|
42
|
+
return n.mode === "text" ? null : n.icon ? n.icon : (g = n.content) != null && g.toLowerCase().includes("print") ? "ri-printer-line" : (y = n.content) != null && y.toLowerCase().includes("look") ? "ri-eye-line" : (b = n.content) != null && b.toLowerCase().includes("del") ? "ri-delete-bin-line" : (f = n.content) != null && f.toLowerCase().includes("edit") ? "ri-edit-box-line" : "";
|
|
43
43
|
}, d = Ct(() => {
|
|
44
44
|
C("confirm");
|
|
45
45
|
}, 3e3), u = () => {
|
|
@@ -51,8 +51,8 @@ const Uo = {
|
|
|
51
51
|
g.disabled || g.auth && !s(g.auth) || C("tap", g.code);
|
|
52
52
|
}, 2e3), C = t;
|
|
53
53
|
return (g, y) => {
|
|
54
|
-
const
|
|
55
|
-
return g.children.length && g.visible ? (O(), re(
|
|
54
|
+
const b = V("vxe-button"), f = V("el-popconfirm");
|
|
55
|
+
return g.children.length && g.visible ? (O(), re(b, {
|
|
56
56
|
key: 0,
|
|
57
57
|
disabled: g.auth && !ee(s)(g.auth) || g.disabled,
|
|
58
58
|
status: g.status,
|
|
@@ -62,7 +62,7 @@ const Uo = {
|
|
|
62
62
|
En(Z(i.value.content), 1)
|
|
63
63
|
]),
|
|
64
64
|
dropdowns: Y(() => [
|
|
65
|
-
(O(!0), B(ye, null, he(g.children, (_) => (O(), re(
|
|
65
|
+
(O(!0), B(ye, null, he(g.children, (_) => (O(), re(b, {
|
|
66
66
|
key: _.code,
|
|
67
67
|
disabled: _.auth && !ee(s)(_.auth) || _.disabled,
|
|
68
68
|
status: _.status || "primary",
|
|
@@ -85,7 +85,7 @@ const Uo = {
|
|
|
85
85
|
onCancel: u
|
|
86
86
|
}), {
|
|
87
87
|
reference: Y(() => [
|
|
88
|
-
M(
|
|
88
|
+
M(b, {
|
|
89
89
|
disabled: g.auth && !ee(s)(g.auth) || g.disabled,
|
|
90
90
|
status: g.status,
|
|
91
91
|
type: g.type,
|
|
@@ -96,7 +96,7 @@ const Uo = {
|
|
|
96
96
|
]),
|
|
97
97
|
_: 1
|
|
98
98
|
}, 16, ["confirm-button-text", "cancel-button-text", "title", "onConfirm"])
|
|
99
|
-
])) : g.visible ? (O(), re(
|
|
99
|
+
])) : g.visible ? (O(), re(b, {
|
|
100
100
|
key: 2,
|
|
101
101
|
disabled: g.auth && !ee(s)(g.auth) || g.disabled,
|
|
102
102
|
status: g.status,
|
|
@@ -153,21 +153,21 @@ const Uo = {
|
|
|
153
153
|
},
|
|
154
154
|
ajax: {
|
|
155
155
|
query: ({ page: v, form: m }) => {
|
|
156
|
-
const p = ve.get("kCookies_param") ? JSON.parse(ve.get("kCookies_param")) : {};
|
|
157
|
-
let
|
|
158
|
-
|
|
159
|
-
m,
|
|
156
|
+
const p = ve.get("kCookies_param") ? JSON.parse(ve.get("kCookies_param")) : {}, w = { pageNum: v.currentPage, pageSize: v.pageSize };
|
|
157
|
+
let A = Object.assign(
|
|
158
|
+
w,
|
|
160
159
|
p,
|
|
161
|
-
n.defaultParams
|
|
160
|
+
n.defaultParams,
|
|
161
|
+
m
|
|
162
162
|
);
|
|
163
|
-
if (
|
|
164
|
-
const { field:
|
|
165
|
-
|
|
163
|
+
if (!n.readonly) {
|
|
164
|
+
const { field: Q, displayName: ie } = n;
|
|
165
|
+
A[ie || Q] = n.record[ie || Q];
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return A = g(A), l.lovType !== "url" ? (A.lovCode = n.code, s.get(
|
|
168
168
|
"/upfm/v1/lovViewHeader/listBySql",
|
|
169
|
-
|
|
170
|
-
)) : s.get(l.lovUrl,
|
|
169
|
+
A
|
|
170
|
+
)) : s.get(l.lovUrl, A);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
},
|
|
@@ -183,17 +183,17 @@ const Uo = {
|
|
|
183
183
|
"yyyy-MM-dd 00:00:00"
|
|
184
184
|
) : p.fieldType === "month" && (v[p.field] = Re(v[p.field], "yyyy-MM"));
|
|
185
185
|
}), v), y = () => {
|
|
186
|
-
const v =
|
|
186
|
+
const v = ae(C, !0).filter((w) => w.isSearch === "Y");
|
|
187
187
|
if (!v.length) return;
|
|
188
|
-
const m = v.length > 2, p = v.sort((
|
|
189
|
-
field:
|
|
190
|
-
title:
|
|
188
|
+
const m = v.length > 2, p = v.sort((w, A) => w.seqNo - A.seqNo).map((w, A) => ({
|
|
189
|
+
field: w.colField,
|
|
190
|
+
title: w.colTitle,
|
|
191
191
|
span: 8,
|
|
192
|
-
folding:
|
|
193
|
-
itemRender: _(
|
|
192
|
+
folding: A > 1,
|
|
193
|
+
itemRender: _(w)
|
|
194
194
|
}));
|
|
195
|
-
|
|
196
|
-
},
|
|
195
|
+
b.collapseNode = m, m ? p.splice(2, 0, b) : p.push(b), a.formConfig.items = p;
|
|
196
|
+
}, b = {
|
|
197
197
|
span: 8,
|
|
198
198
|
align: "right",
|
|
199
199
|
collapseNode: !1,
|
|
@@ -228,52 +228,52 @@ const Uo = {
|
|
|
228
228
|
return f.renderDict(v.dictCode);
|
|
229
229
|
return { name: "VxeInput" };
|
|
230
230
|
}, k = () => {
|
|
231
|
-
const v =
|
|
231
|
+
const v = ae(C, !0).filter(
|
|
232
232
|
(p) => p.isCol === "Y"
|
|
233
233
|
), m = v.reduce(
|
|
234
|
-
(p,
|
|
234
|
+
(p, w) => p + +w.colWidth,
|
|
235
235
|
65
|
|
236
236
|
);
|
|
237
|
-
c.value = m < r ? r : m > 900 ? 900 : m, a.columns = v.sort((p,
|
|
238
|
-
const
|
|
237
|
+
c.value = m < r ? r : m > 900 ? 900 : m, a.columns = v.sort((p, w) => p.seqNo - w.seqNo).map((p) => {
|
|
238
|
+
const w = p.fieldType, A = ["formatDict", p.dictCode];
|
|
239
239
|
return {
|
|
240
240
|
field: p.colField,
|
|
241
241
|
title: p.colTitle,
|
|
242
242
|
minWidth: p.colWidth,
|
|
243
|
-
formatter:
|
|
243
|
+
formatter: w === "date" ? ["formatDate"] : p.fieldType === "dictCode" ? A : null
|
|
244
244
|
};
|
|
245
245
|
}), n.multiple ? a.columns.unshift({ type: "checkbox", width: 45, align: "center" }) : a.columns.unshift({ type: "radio", width: 45, align: "center" });
|
|
246
246
|
}, T = U(null), $ = async () => {
|
|
247
|
-
var
|
|
247
|
+
var w;
|
|
248
248
|
a.loading = !0;
|
|
249
249
|
const v = "/upfm/v1/lovViewHeader/detailByViewCode", [m, p] = await Vt(
|
|
250
250
|
s.get(v, { lovCode: n.code })
|
|
251
251
|
);
|
|
252
|
-
a.loading = !1, m &&
|
|
252
|
+
a.loading = !1, m && N(), a.loading = !0, d.value = (p == null ? void 0 : p.lovTitle) || (p == null ? void 0 : p.lovName), C = (p == null ? void 0 : p.lineList) || [], l = p, k(), y(), await Fo(30), await $e(), n.autoLoad && ((w = T.value) == null || w.commitProxy("query")), a.loading = !1;
|
|
253
253
|
}, q = async () => {
|
|
254
254
|
n.disabled || ($(), await $e(), i.value = !0);
|
|
255
255
|
}, z = () => {
|
|
256
256
|
D("clear", "");
|
|
257
257
|
}, x = ({ row: v }) => {
|
|
258
258
|
const m = n.multiple ? [v] : v;
|
|
259
|
-
D("change", m, l.valueField),
|
|
260
|
-
},
|
|
259
|
+
D("change", m, l.valueField), N();
|
|
260
|
+
}, F = async () => {
|
|
261
261
|
var v;
|
|
262
262
|
await $e(), (v = T.value) == null || v.commitProxy("query");
|
|
263
263
|
}, S = () => {
|
|
264
264
|
const v = T.value, m = n.multiple ? v.getCheckboxRecords() : v.getRadioRecord();
|
|
265
|
-
!ze(m) && D("change", m, l.valueField),
|
|
266
|
-
},
|
|
265
|
+
!ze(m) && D("change", m, l.valueField), N();
|
|
266
|
+
}, N = () => {
|
|
267
267
|
C.length = 0, i.value = !1;
|
|
268
268
|
}, L = ({ type: v }) => {
|
|
269
269
|
}, D = t;
|
|
270
270
|
return (v, m) => {
|
|
271
|
-
const p = V("vxe-grid"),
|
|
271
|
+
const p = V("vxe-grid"), w = V("vxe-button"), A = V("vxe-modal"), Q = V("el-dialog"), ie = V("vxe-input");
|
|
272
272
|
return O(), B("div", jo, [
|
|
273
|
-
v.mode === "vxe" ? (O(), re(
|
|
273
|
+
v.mode === "vxe" ? (O(), re(A, {
|
|
274
274
|
key: 0,
|
|
275
275
|
modelValue: i.value,
|
|
276
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
276
|
+
"onUpdate:modelValue": m[0] || (m[0] = (le) => i.value = le),
|
|
277
277
|
width: c.value,
|
|
278
278
|
"destroy-on-close": !1,
|
|
279
279
|
title: d.value,
|
|
@@ -292,13 +292,13 @@ const Uo = {
|
|
|
292
292
|
}, a, { onCellDblclick: x }), null, 16)
|
|
293
293
|
]),
|
|
294
294
|
footer: Y(() => [
|
|
295
|
-
M(
|
|
295
|
+
M(w, {
|
|
296
296
|
content: v.$t("message.btn.cancel"),
|
|
297
297
|
icon: "ri-close-line",
|
|
298
298
|
status: "warning",
|
|
299
|
-
onClick:
|
|
299
|
+
onClick: N
|
|
300
300
|
}, null, 8, ["content"]),
|
|
301
|
-
M(
|
|
301
|
+
M(w, {
|
|
302
302
|
content: v.$t("message.btn.confirm"),
|
|
303
303
|
icon: "ri-save-3-line",
|
|
304
304
|
status: "primary",
|
|
@@ -309,7 +309,7 @@ const Uo = {
|
|
|
309
309
|
}, 8, ["modelValue", "width", "title", "transfer", "className"])) : (O(), re(Q, {
|
|
310
310
|
key: 1,
|
|
311
311
|
modelValue: i.value,
|
|
312
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
312
|
+
"onUpdate:modelValue": m[1] || (m[1] = (le) => i.value = le),
|
|
313
313
|
width: c.value,
|
|
314
314
|
"show-close": !1,
|
|
315
315
|
title: d.value,
|
|
@@ -326,18 +326,18 @@ const Uo = {
|
|
|
326
326
|
}, a, {
|
|
327
327
|
columnConfig: { resizable: !0 },
|
|
328
328
|
onCellDblclick: x,
|
|
329
|
-
onColumnsChange:
|
|
329
|
+
onColumnsChange: F
|
|
330
330
|
}), null, 16)
|
|
331
331
|
])
|
|
332
332
|
]),
|
|
333
333
|
footer: Y(() => [
|
|
334
|
-
M(
|
|
334
|
+
M(w, {
|
|
335
335
|
content: v.$t("message.btn.cancel"),
|
|
336
336
|
icon: "ri-close-line",
|
|
337
337
|
status: "warning",
|
|
338
|
-
onClick:
|
|
338
|
+
onClick: N
|
|
339
339
|
}, null, 8, ["content"]),
|
|
340
|
-
M(
|
|
340
|
+
M(w, {
|
|
341
341
|
content: v.$t("message.btn.confirm"),
|
|
342
342
|
icon: "ri-save-3-line",
|
|
343
343
|
status: "primary",
|
|
@@ -346,9 +346,9 @@ const Uo = {
|
|
|
346
346
|
]),
|
|
347
347
|
_: 1
|
|
348
348
|
}, 8, ["modelValue", "width", "title", "append-to-body"])),
|
|
349
|
-
M(
|
|
349
|
+
M(ie, {
|
|
350
350
|
modelValue: v.record[v.displayName || v.field],
|
|
351
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
351
|
+
"onUpdate:modelValue": m[2] || (m[2] = (le) => v.record[v.displayName || v.field] = le),
|
|
352
352
|
clearable: !v.disabled && v.clearable,
|
|
353
353
|
disabled: v.disabled,
|
|
354
354
|
readonly: v.readonly,
|
|
@@ -388,11 +388,11 @@ const Fn = (e, t, n) => {
|
|
|
388
388
|
const o = n.content.split(","), { textAlign: s, fontSize: r, color: i, fillOpacity: c, xAxis: d, yAxis: u } = n, a = e.width, l = e.height;
|
|
389
389
|
t.font = `${r || 22}px Microsoft Yahei`, t.lineWidth = 1, t.fillStyle = i || "rgba(255, 255, 255, 1)", t.textAlign = s || "left", t.textBaseline = "middle", t.globalAlpha = Number(c || 1);
|
|
390
390
|
const C = Number(d), g = Number(u);
|
|
391
|
-
return o.forEach((y,
|
|
391
|
+
return o.forEach((y, b) => {
|
|
392
392
|
let f = r;
|
|
393
393
|
n.watermarkType === "1" ? f = 18 : n.watermarkType === "2" && (f = 16);
|
|
394
394
|
const _ = a - y.split("").length * Number(f);
|
|
395
|
-
t.fillText(y, C || _, g || l - Number(f) -
|
|
395
|
+
t.fillText(y, C || _, g || l - Number(f) - b * 25);
|
|
396
396
|
}), e;
|
|
397
397
|
}, Jo = async (e, t) => {
|
|
398
398
|
let n = await Ko(e);
|
|
@@ -530,7 +530,7 @@ const Fn = (e, t, n) => {
|
|
|
530
530
|
watermarkCode: t.watermarkCode
|
|
531
531
|
});
|
|
532
532
|
d = k == null ? void 0 : k.list[0], d.watermarkType === "1" ? d.content = Re(/* @__PURE__ */ new Date(), "yyyy-MM-dd") : d.watermarkType === "2" ? d.content = Re(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss") : d.watermarkType === "0" && (d.content = "");
|
|
533
|
-
},
|
|
533
|
+
}, b = async () => {
|
|
534
534
|
const _ = n.value.getData().filter((T) => c.includes(T.fileExtend)), k = [];
|
|
535
535
|
(d == null ? void 0 : d.watermarkTrigger) == "preview" ? await _.forEachSync(async (T) => {
|
|
536
536
|
const $ = `${r}/ufil${T.realpath}}`, q = await Jo($, d);
|
|
@@ -579,7 +579,7 @@ const Fn = (e, t, n) => {
|
|
|
579
579
|
auth: _.permissionPreFix + "Preview",
|
|
580
580
|
icon: "ri-search-line",
|
|
581
581
|
content: "preview",
|
|
582
|
-
onTap: k[0] || (k[0] = (x) =>
|
|
582
|
+
onTap: k[0] || (k[0] = (x) => b())
|
|
583
583
|
}, null, 8, ["auth"])) : (O(), re($, {
|
|
584
584
|
key: 1,
|
|
585
585
|
auth: _.permissionPreFix + "Download",
|
|
@@ -624,7 +624,7 @@ const Fn = (e, t, n) => {
|
|
|
624
624
|
}
|
|
625
625
|
);
|
|
626
626
|
const u = () => {
|
|
627
|
-
const m = n.columns.map((
|
|
627
|
+
const m = n.columns.map((w) => (w.slots = { default: w.field }, w.title = w.field, w)), p = {
|
|
628
628
|
type: "checkbox",
|
|
629
629
|
width: 40,
|
|
630
630
|
align: "center",
|
|
@@ -708,7 +708,7 @@ const Fn = (e, t, n) => {
|
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
710
|
case "del_plus": {
|
|
711
|
-
|
|
711
|
+
F();
|
|
712
712
|
break;
|
|
713
713
|
}
|
|
714
714
|
case "export_plus": {
|
|
@@ -735,23 +735,23 @@ const Fn = (e, t, n) => {
|
|
|
735
735
|
};
|
|
736
736
|
function T(m) {
|
|
737
737
|
y = m.$table.getTableData().fullData, u().filter(
|
|
738
|
-
(
|
|
739
|
-
).forEach((
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
}), n.columns.forEach((
|
|
743
|
-
(
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
) :
|
|
738
|
+
(w) => !w.type && w.mapField !== n.options.errorField
|
|
739
|
+
).forEach((w) => {
|
|
740
|
+
const A = y.findIndex((Q) => Q[w.field] === w.field);
|
|
741
|
+
A !== -1 && y.splice(A, 1);
|
|
742
|
+
}), n.columns.forEach((w) => {
|
|
743
|
+
(w.dateFormatter || w.valueType === "number") && y.forEach((A) => {
|
|
744
|
+
w.dateFormatter ? A[w.field] = Re(
|
|
745
|
+
A[w.field],
|
|
746
|
+
w.dateFormatter || "yyyy-MM-dd HH:mm:ss"
|
|
747
|
+
) : A[w.field] = Io(A[w.field]).toFixed(w.decimal || 6);
|
|
748
748
|
});
|
|
749
749
|
}), a.value.total = y.length, $();
|
|
750
750
|
}
|
|
751
751
|
const $ = () => {
|
|
752
752
|
const { currentPage: m, pageSize: p } = a.value;
|
|
753
753
|
f.data = y.filter(
|
|
754
|
-
(
|
|
754
|
+
(w, A) => A < p * m && A >= p * (m - 1)
|
|
755
755
|
);
|
|
756
756
|
}, q = ({
|
|
757
757
|
currentPage: m,
|
|
@@ -759,34 +759,34 @@ const Fn = (e, t, n) => {
|
|
|
759
759
|
}) => {
|
|
760
760
|
a.value.currentPage = m, a.value.pageSize = p, $();
|
|
761
761
|
}, z = () => {
|
|
762
|
-
var
|
|
762
|
+
var w;
|
|
763
763
|
const m = [];
|
|
764
764
|
if (n.templateData.length)
|
|
765
765
|
m.push(...n.templateData);
|
|
766
766
|
else {
|
|
767
|
-
const
|
|
767
|
+
const A = {};
|
|
768
768
|
u().filter((Q) => Q.type !== "checkbox").forEach((Q) => {
|
|
769
|
-
|
|
770
|
-
}), m.push(
|
|
769
|
+
A[Q.field] = "案例";
|
|
770
|
+
}), m.push(A);
|
|
771
771
|
}
|
|
772
772
|
const p = {
|
|
773
773
|
filename: n.options.filename,
|
|
774
774
|
type: "xlsx",
|
|
775
775
|
columns: u().filter(
|
|
776
|
-
(
|
|
776
|
+
(A) => A.mapField !== n.options.errorField && A.type !== "checkbox"
|
|
777
777
|
),
|
|
778
778
|
data: m
|
|
779
779
|
};
|
|
780
|
-
(
|
|
780
|
+
(w = g.value) == null || w.exportData(p);
|
|
781
781
|
}, x = async () => {
|
|
782
782
|
if (!y.length)
|
|
783
783
|
return Ae(i("message.importEmpty"));
|
|
784
784
|
if (await Ee.modal.confirm(i("message.importRecord")) === "confirm") {
|
|
785
785
|
f.loading = !0;
|
|
786
786
|
const { url: p } = n;
|
|
787
|
-
|
|
788
|
-
(
|
|
789
|
-
|
|
787
|
+
N("toSave"), s.post(p, y).then((w) => {
|
|
788
|
+
(w == null ? void 0 : w.status) === "error" || w != null && w.length ? (c.value = !0, S(
|
|
789
|
+
w != null && w.length ? w : w[n.options.errListField || n.sourceList]
|
|
790
790
|
), Ee.modal.message({
|
|
791
791
|
content: i("message.importFailed"),
|
|
792
792
|
status: "error"
|
|
@@ -798,7 +798,7 @@ const Fn = (e, t, n) => {
|
|
|
798
798
|
c.value = !1, f.loading = !1;
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
|
-
},
|
|
801
|
+
}, F = () => {
|
|
802
802
|
var p;
|
|
803
803
|
const m = (p = g.value) == null ? void 0 : p.getCheckboxRecords();
|
|
804
804
|
if (!(m != null && m.length))
|
|
@@ -806,24 +806,24 @@ const Fn = (e, t, n) => {
|
|
|
806
806
|
content: i("message.selectedRecord"),
|
|
807
807
|
status: "warning"
|
|
808
808
|
});
|
|
809
|
-
m.forEach((
|
|
810
|
-
const
|
|
811
|
-
(Q) => Q._X_ROW_KEY ===
|
|
809
|
+
m.forEach((w) => {
|
|
810
|
+
const A = y.findIndex(
|
|
811
|
+
(Q) => Q._X_ROW_KEY === w._X_ROW_KEY
|
|
812
812
|
);
|
|
813
|
-
|
|
813
|
+
A !== -1 && y.splice(A, 1);
|
|
814
814
|
}), f.data = y;
|
|
815
815
|
}, S = (m) => {
|
|
816
|
-
a.value.total = m.length, y = m.map((p,
|
|
817
|
-
},
|
|
816
|
+
a.value.total = m.length, y = m.map((p, w) => (p._X_ROW_KEY = w, p)), N("toShow"), $();
|
|
817
|
+
}, N = (m) => {
|
|
818
818
|
f.columns.forEach((p) => {
|
|
819
819
|
if (m === "toSave") {
|
|
820
|
-
const
|
|
821
|
-
y.forEach((
|
|
822
|
-
|
|
820
|
+
const w = ve.get("kCookies_param") ? JSON.parse(ve.get("kCookies_param")) : {};
|
|
821
|
+
y.forEach((A) => {
|
|
822
|
+
A[p.mapField] = A[p.field], Object.assign(A, w, n.defaultParams);
|
|
823
823
|
});
|
|
824
824
|
} else
|
|
825
|
-
y.forEach((
|
|
826
|
-
|
|
825
|
+
y.forEach((w) => {
|
|
826
|
+
w[p.field] = w[p.mapField];
|
|
827
827
|
});
|
|
828
828
|
});
|
|
829
829
|
}, L = () => {
|
|
@@ -832,7 +832,7 @@ const Fn = (e, t, n) => {
|
|
|
832
832
|
r.value = !1, D("close");
|
|
833
833
|
};
|
|
834
834
|
return (m, p) => {
|
|
835
|
-
const
|
|
835
|
+
const w = V("el-option"), A = V("el-select"), Q = V("el-date-picker"), ie = V("vxe-pager"), le = V("vxe-grid"), pe = V("vxe-modal");
|
|
836
836
|
return O(), re(pe, {
|
|
837
837
|
modelValue: r.value,
|
|
838
838
|
"onUpdate:modelValue": p[2] || (p[2] = (J) => r.value = J),
|
|
@@ -842,12 +842,12 @@ const Fn = (e, t, n) => {
|
|
|
842
842
|
onClose: v
|
|
843
843
|
}, {
|
|
844
844
|
default: Y(() => [
|
|
845
|
-
M(
|
|
845
|
+
M(le, we({
|
|
846
846
|
ref_key: "xgrid",
|
|
847
847
|
ref: g
|
|
848
848
|
}, f, Mt(_)), ko({
|
|
849
849
|
pager: Y(() => [
|
|
850
|
-
M(
|
|
850
|
+
M(ie, {
|
|
851
851
|
"current-page": a.value.currentPage,
|
|
852
852
|
"onUpdate:currentPage": p[0] || (p[0] = (J) => a.value.currentPage = J),
|
|
853
853
|
"page-size": a.value.pageSize,
|
|
@@ -863,17 +863,17 @@ const Fn = (e, t, n) => {
|
|
|
863
863
|
he(m.columns, (J) => ({
|
|
864
864
|
name: J.field,
|
|
865
865
|
fn: Y(({ row: ne }) => [
|
|
866
|
-
J.dictCode && !J.disabled ? (O(), re(
|
|
866
|
+
J.dictCode && !J.disabled ? (O(), re(A, {
|
|
867
867
|
key: 0,
|
|
868
868
|
modelValue: ne[J.field],
|
|
869
|
-
"onUpdate:modelValue": (
|
|
869
|
+
"onUpdate:modelValue": (P) => ne[J.field] = P,
|
|
870
870
|
modelModifiers: { trim: !0 },
|
|
871
871
|
clearable: ""
|
|
872
872
|
}, {
|
|
873
873
|
default: Y(() => {
|
|
874
|
-
var
|
|
874
|
+
var P;
|
|
875
875
|
return [
|
|
876
|
-
(O(!0), B(ye, null, he((
|
|
876
|
+
(O(!0), B(ye, null, he((P = ee(d)[J.dictCode]) == null ? void 0 : P.children, (I) => (O(), re(w, {
|
|
877
877
|
key: I.dictCode,
|
|
878
878
|
value: I.dictCode,
|
|
879
879
|
label: I.dictName
|
|
@@ -884,13 +884,13 @@ const Fn = (e, t, n) => {
|
|
|
884
884
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : ["date", "month", "datetime"].includes(J.dataType) && !J.disabled ? (O(), re(Q, {
|
|
885
885
|
key: 1,
|
|
886
886
|
modelValue: ne[J.field],
|
|
887
|
-
"onUpdate:modelValue": (
|
|
887
|
+
"onUpdate:modelValue": (P) => ne[J.field] = P,
|
|
888
888
|
modelModifiers: { trim: !0 },
|
|
889
889
|
type: J.dataType,
|
|
890
890
|
"value-format": "YYYY-MM-DD hh:mm:ss"
|
|
891
891
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "type"])) : !J.da && !J.disabled ? So((O(), B("input", {
|
|
892
892
|
key: 2,
|
|
893
|
-
"onUpdate:modelValue": (
|
|
893
|
+
"onUpdate:modelValue": (P) => ne[J.field] = P,
|
|
894
894
|
class: "ut-input"
|
|
895
895
|
}, null, 8, ns)), [
|
|
896
896
|
[
|
|
@@ -992,7 +992,7 @@ const Fn = (e, t, n) => {
|
|
|
992
992
|
return (l = a.code) != null && l.toLowerCase().includes("print") ? "ri-printer-fill" : (C = a.code) != null && C.toLowerCase().includes("look") ? "ri-eye-fill" : "ri-edit-2-fill";
|
|
993
993
|
}, u = t;
|
|
994
994
|
return (a, l) => {
|
|
995
|
-
const C = V("IconifyIconOffline"), g = V("el-icon"), y = V("vxe-button"),
|
|
995
|
+
const C = V("IconifyIconOffline"), g = V("el-icon"), y = V("vxe-button"), b = V("el-dropdown-item"), f = V("el-dropdown-menu"), _ = V("el-dropdown");
|
|
996
996
|
return a.visible ? (O(), re(_, {
|
|
997
997
|
key: 0,
|
|
998
998
|
trigger: a.trigger,
|
|
@@ -1002,7 +1002,7 @@ const Fn = (e, t, n) => {
|
|
|
1002
1002
|
dropdown: Y(() => [
|
|
1003
1003
|
M(f, { class: "ut-dropdown-menu" }, {
|
|
1004
1004
|
default: Y(() => [
|
|
1005
|
-
(O(!0), B(ye, null, he(a.buttons, (k, T) => (O(), re(
|
|
1005
|
+
(O(!0), B(ye, null, he(a.buttons, (k, T) => (O(), re(b, {
|
|
1006
1006
|
key: k.code
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: Y(() => [
|
|
@@ -1056,7 +1056,7 @@ const Fn = (e, t, n) => {
|
|
|
1056
1056
|
dataStatus: { default: "detail" }
|
|
1057
1057
|
},
|
|
1058
1058
|
setup(e, { expose: t }) {
|
|
1059
|
-
const n = e, o = U(void 0), { t: s } = Oe(), r = U(!0), i = ke(() => n.items.length ? Ie(n.items, s) : {}), c = ke(() => n.items.length ? jt(
|
|
1059
|
+
const n = e, o = U(void 0), { t: s } = Oe(), r = U(!0), i = ke(() => n.items.length ? Ie(n.items, s) : {}), c = ke(() => n.items.length ? jt(ae(n.items, !0), n.dataStatus, 6) : n.items), d = () => {
|
|
1060
1060
|
o.value.toggleCollapse();
|
|
1061
1061
|
};
|
|
1062
1062
|
return t({
|
|
@@ -1088,7 +1088,7 @@ const Fn = (e, t, n) => {
|
|
|
1088
1088
|
collapseNode: Y(() => [
|
|
1089
1089
|
M(g, {
|
|
1090
1090
|
modelValue: r.value,
|
|
1091
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
1091
|
+
"onUpdate:modelValue": C[0] || (C[0] = (b) => r.value = b),
|
|
1092
1092
|
content: "查看更多",
|
|
1093
1093
|
"checked-value": !1,
|
|
1094
1094
|
"unchecked-value": !0,
|
|
@@ -1168,7 +1168,7 @@ const Fn = (e, t, n) => {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
);
|
|
1170
1170
|
if (ze(n)) return e;
|
|
1171
|
-
const o =
|
|
1171
|
+
const o = ae(e, !0);
|
|
1172
1172
|
return n.forEach((s) => {
|
|
1173
1173
|
s.itemRender.name === "#select" && delete o[`_${s.field}`];
|
|
1174
1174
|
}), o;
|
|
@@ -1180,7 +1180,7 @@ const Fn = (e, t, n) => {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
);
|
|
1182
1182
|
if (ze(n)) return e;
|
|
1183
|
-
const o =
|
|
1183
|
+
const o = ae(e, !0);
|
|
1184
1184
|
return n.forEach((s) => {
|
|
1185
1185
|
const r = o[s.field];
|
|
1186
1186
|
r && s.itemRender.startField ? (o[s.itemRender.startField] = Re(
|
|
@@ -1261,10 +1261,10 @@ const Fn = (e, t, n) => {
|
|
|
1261
1261
|
perfect: !0
|
|
1262
1262
|
}, e;
|
|
1263
1263
|
}
|
|
1264
|
-
let r =
|
|
1264
|
+
let r = ae(n.buttons || [], !0);
|
|
1265
1265
|
r.forEach((a, l) => {
|
|
1266
1266
|
a.sort = a.sort || l + 10;
|
|
1267
|
-
}), (n.mode !== "form" ?
|
|
1267
|
+
}), (n.mode !== "form" ? ae(Ps, !0) : ae(Ns, !0)).reverse().forEach((a) => {
|
|
1268
1268
|
!r.some((l) => l.code === a.code) && r.unshift(a), n.authPrefix && !["printer", "export"].includes(a.auth) && (a.auth = n.authPrefix + a.auth.slice(0, 1).toLocaleUpperCase() + a.auth.slice(1).toLocaleLowerCase());
|
|
1269
1269
|
}), r = Pn(r, t.auth).filter((a) => {
|
|
1270
1270
|
var C;
|
|
@@ -1369,10 +1369,10 @@ const Fn = (e, t, n) => {
|
|
|
1369
1369
|
setup(e, { emit: t }) {
|
|
1370
1370
|
const n = e, o = Se(), s = o.appContext.config.globalProperties.$serviceApi, r = o.appContext.config.globalProperties.$hasAuthority, i = Tn(), { t: c } = Oe();
|
|
1371
1371
|
console.log("view ======", n.view);
|
|
1372
|
-
const d = U(null), u = U(""), a = U(!1), l = U(!1), C = U(!1), g = U(!1), y = U(!0),
|
|
1372
|
+
const d = U(null), u = U(""), a = U(!1), l = U(!1), C = U(!1), g = U(!1), y = U(!0), b = U({}), f = ve.get("loginer");
|
|
1373
1373
|
let _, k, T;
|
|
1374
1374
|
const $ = U([]), q = ke(() => n.items.length ? Ie(x(), c) : {}), z = ke(() => n.items.length ? jt(x(), "update") : n.items), x = () => {
|
|
1375
|
-
const
|
|
1375
|
+
const P = [
|
|
1376
1376
|
{ field: "title", title: "方案名称", required: !0 },
|
|
1377
1377
|
{
|
|
1378
1378
|
field: "isPrivate",
|
|
@@ -1380,50 +1380,50 @@ const Fn = (e, t, n) => {
|
|
|
1380
1380
|
itemRender: i.renderSwitch("Y")
|
|
1381
1381
|
}
|
|
1382
1382
|
];
|
|
1383
|
-
return
|
|
1384
|
-
},
|
|
1383
|
+
return P.push(...ae(n.items, !0)), P.filter((I) => I.field !== "dataFlat");
|
|
1384
|
+
}, F = (P) => {
|
|
1385
1385
|
k = null;
|
|
1386
|
-
const I =
|
|
1386
|
+
const I = P.select;
|
|
1387
1387
|
$.value.forEach((E) => {
|
|
1388
1388
|
E.select = !1;
|
|
1389
|
-
}),
|
|
1389
|
+
}), P.select = !I, y.value = I, k = I ? k : P, P.id === "add" && (y.value = !0, S());
|
|
1390
1390
|
}, S = () => {
|
|
1391
|
-
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1394
|
-
title:
|
|
1395
|
-
isPrivate:
|
|
1396
|
-
item:
|
|
1397
|
-
...
|
|
1391
|
+
b.value = { isPrivate: "Y", item: {} }, l.value = !0;
|
|
1392
|
+
}, N = (P, I) => {
|
|
1393
|
+
b.value = {
|
|
1394
|
+
title: P.title,
|
|
1395
|
+
isPrivate: P.isPrivate,
|
|
1396
|
+
item: P,
|
|
1397
|
+
...P.content
|
|
1398
1398
|
}, _ = I, l.value = !0;
|
|
1399
1399
|
}, L = () => {
|
|
1400
|
-
d.value.validate(async (
|
|
1401
|
-
if (!
|
|
1400
|
+
d.value.validate(async (P) => {
|
|
1401
|
+
if (!P) {
|
|
1402
1402
|
const I = p();
|
|
1403
1403
|
g.value = !0;
|
|
1404
1404
|
const E = I.id ? "put" : "post", [j, H] = await Vt(s[E](St, [I]));
|
|
1405
|
-
g.value = !1, j || (H[0].select = !1, H[0].content = JSON.parse(H[0].content), E === "post" ? $.value.splice($.value.length - 1, 0, H[0]) : $.value.splice(_, 1, H[0]), T =
|
|
1405
|
+
g.value = !1, j || (H[0].select = !1, H[0].content = JSON.parse(H[0].content), E === "post" ? $.value.splice($.value.length - 1, 0, H[0]) : $.value.splice(_, 1, H[0]), T = ae($.value, !0), lt(), l.value = !1);
|
|
1406
1406
|
}
|
|
1407
1407
|
});
|
|
1408
1408
|
}, D = () => {
|
|
1409
1409
|
C.value = !0;
|
|
1410
|
-
const
|
|
1410
|
+
const P = ve.get("kCookies_param") ? JSON.parse(ve.get("kCookies_param")) : {}, I = Object.assign(
|
|
1411
1411
|
{ pageSize: 50, pageNum: 1, userName: f, viewCode: n.view },
|
|
1412
|
-
|
|
1412
|
+
P
|
|
1413
1413
|
);
|
|
1414
1414
|
s.get(St, I).then((E) => {
|
|
1415
1415
|
const j = E.list;
|
|
1416
|
-
|
|
1416
|
+
w(j), T = ae($.value, !0);
|
|
1417
1417
|
}).finally(() => {
|
|
1418
1418
|
C.value = !1;
|
|
1419
1419
|
});
|
|
1420
1420
|
}, v = () => {
|
|
1421
1421
|
ne("search", k.content), m();
|
|
1422
1422
|
}, m = () => {
|
|
1423
|
-
l.value ? (
|
|
1423
|
+
l.value ? (b.value = {}, l.value = !1) : (a.value = !1, ne("close"));
|
|
1424
1424
|
}, p = () => {
|
|
1425
|
-
const
|
|
1426
|
-
...
|
|
1425
|
+
const P = b.value, { title: I, isPrivate: E } = P, j = ve.get("kCookies_param") ? JSON.parse(ve.get("kCookies_param")) : {}, H = {
|
|
1426
|
+
...b.value.item,
|
|
1427
1427
|
...j,
|
|
1428
1428
|
title: I,
|
|
1429
1429
|
isPrivate: E,
|
|
@@ -1431,48 +1431,48 @@ const Fn = (e, t, n) => {
|
|
|
1431
1431
|
content: "",
|
|
1432
1432
|
userName: f
|
|
1433
1433
|
};
|
|
1434
|
-
delete
|
|
1434
|
+
delete P.title, delete P.isPrivate, delete P.item;
|
|
1435
1435
|
const K = {};
|
|
1436
|
-
for (const X in
|
|
1437
|
-
|
|
1436
|
+
for (const X in P)
|
|
1437
|
+
P[X] && (K[X] = P[X]);
|
|
1438
1438
|
return H.content = JSON.stringify(K), H;
|
|
1439
|
-
},
|
|
1440
|
-
|
|
1439
|
+
}, w = (P) => {
|
|
1440
|
+
P.forEach((I) => {
|
|
1441
1441
|
I.select = !1, I.content = JSON.parse(I.content);
|
|
1442
|
-
}),
|
|
1443
|
-
},
|
|
1442
|
+
}), P.push({ id: "add" }), $.value = P;
|
|
1443
|
+
}, A = (P) => {
|
|
1444
1444
|
var E;
|
|
1445
|
-
return (E = z.value.find((j) => j.field ===
|
|
1446
|
-
}, Q = (
|
|
1445
|
+
return (E = z.value.find((j) => j.field === P)) == null ? void 0 : E.title;
|
|
1446
|
+
}, Q = (P, I) => {
|
|
1447
1447
|
var j, H, K, X, me;
|
|
1448
|
-
const E = (j = n.items) == null ? void 0 : j.find((G) => G.field ===
|
|
1448
|
+
const E = (j = n.items) == null ? void 0 : j.find((G) => G.field === P);
|
|
1449
1449
|
return (H = E == null ? void 0 : E.itemRender) != null && H.dictCode && ((me = (X = (K = E == null ? void 0 : E.itemRender) == null ? void 0 : K.options) == null ? void 0 : X.find((G) => G.dictCode === I)) == null ? void 0 : me.dictName) || I;
|
|
1450
|
-
},
|
|
1450
|
+
}, ie = async (P, I) => {
|
|
1451
1451
|
if (await Ee.modal.confirm(
|
|
1452
|
-
`继续操作将删除查询方案【${
|
|
1452
|
+
`继续操作将删除查询方案【${P.title}】`
|
|
1453
1453
|
) === "confirm") {
|
|
1454
1454
|
C.value = !0;
|
|
1455
|
-
const j =
|
|
1455
|
+
const j = ae(P, !0);
|
|
1456
1456
|
j.content = JSON.stringify(j.content), s.delete(St, [j]).then(() => {
|
|
1457
|
-
$.value.splice(I, 1), T =
|
|
1457
|
+
$.value.splice(I, 1), T = ae($.value, !0), lt();
|
|
1458
1458
|
}).finally(() => {
|
|
1459
1459
|
C.value = !1;
|
|
1460
1460
|
});
|
|
1461
1461
|
}
|
|
1462
|
-
},
|
|
1462
|
+
}, le = () => {
|
|
1463
1463
|
$.value = T.filter(
|
|
1464
|
-
(
|
|
1464
|
+
(P) => P.id === "add" || P.title.includes(u.value)
|
|
1465
1465
|
);
|
|
1466
|
-
}, pe = (
|
|
1467
|
-
["Enter", "NumpadEnter"].includes(
|
|
1466
|
+
}, pe = (P) => {
|
|
1467
|
+
["Enter", "NumpadEnter"].includes(P.$event.code) && le();
|
|
1468
1468
|
}, J = () => {
|
|
1469
|
-
u.value = "", $.value =
|
|
1469
|
+
u.value = "", $.value = ae(T, !0);
|
|
1470
1470
|
};
|
|
1471
1471
|
D();
|
|
1472
1472
|
const ne = t;
|
|
1473
1473
|
return Qe(() => {
|
|
1474
1474
|
a.value = !0;
|
|
1475
|
-
}), (
|
|
1475
|
+
}), (P, I) => {
|
|
1476
1476
|
const E = V("el-popover"), j = V("el-scrollbar"), H = V("vxe-input"), K = V("ut-button"), X = V("vxe-modal"), me = V("vxe-form");
|
|
1477
1477
|
return O(), B("div", Bs, [
|
|
1478
1478
|
M(X, {
|
|
@@ -1510,7 +1510,7 @@ const Fn = (e, t, n) => {
|
|
|
1510
1510
|
key: G.id,
|
|
1511
1511
|
class: "card",
|
|
1512
1512
|
style: Ve({ width: $.value.length === 1 ? "100%" : "" }),
|
|
1513
|
-
onClick: (De) =>
|
|
1513
|
+
onClick: (De) => F(G)
|
|
1514
1514
|
}, [
|
|
1515
1515
|
G.id !== "add" ? (O(), B("div", {
|
|
1516
1516
|
key: 0,
|
|
@@ -1523,13 +1523,13 @@ const Fn = (e, t, n) => {
|
|
|
1523
1523
|
key: 0,
|
|
1524
1524
|
class: "flex items-center justify-center",
|
|
1525
1525
|
style: { width: "16px", height: "16px", "margin-left": "12px", color: "#fff", "background-color": "rgb(29 78 216)", "border-radius": "8px" },
|
|
1526
|
-
onClick: (De) =>
|
|
1526
|
+
onClick: (De) => N(G, Be)
|
|
1527
1527
|
}, " ✔ ", 8, Ks)) : oe("", !0),
|
|
1528
1528
|
G.userName === ee(f) || ee(r)("fetch") ? (O(), B("div", {
|
|
1529
1529
|
key: 1,
|
|
1530
1530
|
class: "flex items-center justify-center",
|
|
1531
1531
|
style: { width: "16px", height: "16px", "margin-left": "12px", color: "#fff", "background-color": "rgb(185 28 28)", "border-radius": "8px" },
|
|
1532
|
-
onClick: (De) =>
|
|
1532
|
+
onClick: (De) => ie(G, Be)
|
|
1533
1533
|
}, " × ", 8, Gs)) : oe("", !0)
|
|
1534
1534
|
])
|
|
1535
1535
|
]),
|
|
@@ -1544,7 +1544,7 @@ const Fn = (e, t, n) => {
|
|
|
1544
1544
|
class: "inline-block w-1/2"
|
|
1545
1545
|
}, [
|
|
1546
1546
|
R("span", Xs, [
|
|
1547
|
-
R("span", Qs, Z(
|
|
1547
|
+
R("span", Qs, Z(P.$t(A(We))) + ":", 1),
|
|
1548
1548
|
R("span", Zs, Z(Q(We, De)), 1)
|
|
1549
1549
|
])
|
|
1550
1550
|
]))), 128))
|
|
@@ -1562,7 +1562,7 @@ const Fn = (e, t, n) => {
|
|
|
1562
1562
|
"onUpdate:modelValue": I[0] || (I[0] = (G) => u.value = G),
|
|
1563
1563
|
placeholder: "请录入方案标题",
|
|
1564
1564
|
type: "search",
|
|
1565
|
-
onSearchClick:
|
|
1565
|
+
onSearchClick: le,
|
|
1566
1566
|
onKeydown: pe,
|
|
1567
1567
|
onClear: J
|
|
1568
1568
|
}, null, 8, ["modelValue"]),
|
|
@@ -1602,7 +1602,7 @@ const Fn = (e, t, n) => {
|
|
|
1602
1602
|
M(me, {
|
|
1603
1603
|
ref_key: "xForm",
|
|
1604
1604
|
ref: d,
|
|
1605
|
-
data:
|
|
1605
|
+
data: b.value,
|
|
1606
1606
|
items: z.value,
|
|
1607
1607
|
rules: q.value,
|
|
1608
1608
|
"title-align": "right",
|
|
@@ -1648,7 +1648,7 @@ const Fn = (e, t, n) => {
|
|
|
1648
1648
|
setup(e, { expose: t, emit: n }) {
|
|
1649
1649
|
const o = qt(Lt());
|
|
1650
1650
|
let s;
|
|
1651
|
-
const r = {}, i = Se(), c = i.appContext.config.globalProperties.$hasAuthority, d = i.appContext.config.globalProperties.$serviceApi, u = i.parent.type.name, a = i.appContext.config.globalProperties.$mode, l = e, { t: C } = Oe(), g = U(null), y = U(!1),
|
|
1651
|
+
const r = {}, i = Se(), c = i.appContext.config.globalProperties.$hasAuthority, d = i.appContext.config.globalProperties.$serviceApi, u = i.parent.type.name, a = i.appContext.config.globalProperties.$mode, l = e, { t: C } = Oe(), g = U(null), y = U(!1), b = {
|
|
1652
1652
|
icon: "vxe-icon-setting",
|
|
1653
1653
|
name: "favorite",
|
|
1654
1654
|
events: {
|
|
@@ -1707,8 +1707,8 @@ const Fn = (e, t, n) => {
|
|
|
1707
1707
|
columns: o.gridId ? [] : _(),
|
|
1708
1708
|
...o
|
|
1709
1709
|
}), T = () => l.items.length ? Dn(
|
|
1710
|
-
|
|
1711
|
-
u && l.url ?
|
|
1710
|
+
ae(l.items, !0),
|
|
1711
|
+
u && l.url ? b : u
|
|
1712
1712
|
) : l.items;
|
|
1713
1713
|
function $(E) {
|
|
1714
1714
|
const j = s ? s[o.gridId] : {};
|
|
@@ -1739,11 +1739,11 @@ const Fn = (e, t, n) => {
|
|
|
1739
1739
|
}), o.mergeFooter && (k.showFooter = !0, k.footerMethod = ({ columns: j, data: H }) => Vn({ columns: j, data: H }, o.mergeFooter));
|
|
1740
1740
|
}, z = () => {
|
|
1741
1741
|
g.value.commitProxy("query");
|
|
1742
|
-
}, x = () => (k.editRules = f(), g.value.refreshColumn()),
|
|
1742
|
+
}, x = () => (k.editRules = f(), g.value.refreshColumn()), F = () => {
|
|
1743
1743
|
k.loading = !0;
|
|
1744
1744
|
}, S = () => {
|
|
1745
1745
|
k.loading = !1;
|
|
1746
|
-
},
|
|
1746
|
+
}, N = () => Rn(g.value), L = () => g.value.getTableData().fullData, D = (E = !1) => {
|
|
1747
1747
|
const j = l.columns[0].type, H = j === "radio" ? g.value.getRadioRecord(E) : g.value.getCheckboxRecords(E);
|
|
1748
1748
|
return j === "checkbox" && !H.length ? (Ae(C("message.tip_selectedRecord")), []) : j === "radio" && !H ? (Ae(C("message.tip_selectedRecord")), null) : H;
|
|
1749
1749
|
}, v = (E, j) => {
|
|
@@ -1754,10 +1754,10 @@ const Fn = (e, t, n) => {
|
|
|
1754
1754
|
return (X = (K = H.itemRender) == null ? void 0 : K.props) == null ? void 0 : X.multiple;
|
|
1755
1755
|
}).forEach((H) => {
|
|
1756
1756
|
E[`_${H.field}`] = [];
|
|
1757
|
-
})
|
|
1757
|
+
});
|
|
1758
1758
|
};
|
|
1759
1759
|
let p;
|
|
1760
|
-
const
|
|
1760
|
+
const w = () => {
|
|
1761
1761
|
const E = g.value;
|
|
1762
1762
|
p = Mo.create(
|
|
1763
1763
|
E.$el.querySelector(".vxe-table--header .vxe-header--row"),
|
|
@@ -1785,7 +1785,7 @@ const Fn = (e, t, n) => {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
);
|
|
1788
|
-
},
|
|
1788
|
+
}, A = (E) => {
|
|
1789
1789
|
y.value = !1;
|
|
1790
1790
|
const { form: j } = g.value.getProxyInfo();
|
|
1791
1791
|
Object.assign(j, E), z();
|
|
@@ -1795,16 +1795,16 @@ const Fn = (e, t, n) => {
|
|
|
1795
1795
|
getSelectRecords: D,
|
|
1796
1796
|
refreshData: z,
|
|
1797
1797
|
refreshColumn: x,
|
|
1798
|
-
getInstance:
|
|
1799
|
-
showLoading:
|
|
1798
|
+
getInstance: N,
|
|
1799
|
+
showLoading: F,
|
|
1800
1800
|
hiddenLoading: S,
|
|
1801
1801
|
reloadGrid: async () => {
|
|
1802
1802
|
q();
|
|
1803
1803
|
}
|
|
1804
1804
|
});
|
|
1805
|
-
const
|
|
1805
|
+
const ie = ({ code: E }) => {
|
|
1806
1806
|
I("buttonClick", E);
|
|
1807
|
-
},
|
|
1807
|
+
}, le = (E) => {
|
|
1808
1808
|
I("cellClick", E);
|
|
1809
1809
|
}, pe = (E) => {
|
|
1810
1810
|
I("cellDbclick", E);
|
|
@@ -1816,13 +1816,13 @@ const Fn = (e, t, n) => {
|
|
|
1816
1816
|
o.mode !== "inline" && !(o != null && o.height) && (E = window.innerHeight - 180), k.height = E < 240 ? 240 : E;
|
|
1817
1817
|
})();
|
|
1818
1818
|
};
|
|
1819
|
-
let
|
|
1819
|
+
let P;
|
|
1820
1820
|
$e(() => {
|
|
1821
|
-
|
|
1822
|
-
|
|
1821
|
+
P = setTimeout(() => {
|
|
1822
|
+
w();
|
|
1823
1823
|
}, 500);
|
|
1824
1824
|
}), Ro(() => {
|
|
1825
|
-
clearTimeout(
|
|
1825
|
+
clearTimeout(P), p && p.destroy();
|
|
1826
1826
|
}), dt(() => {
|
|
1827
1827
|
q(), ne();
|
|
1828
1828
|
});
|
|
@@ -1834,9 +1834,9 @@ const Fn = (e, t, n) => {
|
|
|
1834
1834
|
ref_key: "xgrid",
|
|
1835
1835
|
ref: g
|
|
1836
1836
|
}, k, { class: "ut-grid-wrapper" }, Mt(ee(o).events || {}), {
|
|
1837
|
-
onToolbarButtonClick:
|
|
1838
|
-
onToolbarToolClick:
|
|
1839
|
-
onCellClick:
|
|
1837
|
+
onToolbarButtonClick: ie,
|
|
1838
|
+
onToolbarToolClick: ie,
|
|
1839
|
+
onCellClick: le,
|
|
1840
1840
|
onCellDblclick: pe,
|
|
1841
1841
|
onEditActivated: J,
|
|
1842
1842
|
onFormReset: m
|
|
@@ -1845,7 +1845,7 @@ const Fn = (e, t, n) => {
|
|
|
1845
1845
|
key: 0,
|
|
1846
1846
|
items: E.items,
|
|
1847
1847
|
view: ee(u),
|
|
1848
|
-
onSearch:
|
|
1848
|
+
onSearch: A,
|
|
1849
1849
|
onClose: j[0] || (j[0] = (K) => y.value = !1)
|
|
1850
1850
|
}, null, 8, ["items", "view"])) : oe("", !0)
|
|
1851
1851
|
]);
|
|
@@ -1869,25 +1869,25 @@ const Fn = (e, t, n) => {
|
|
|
1869
1869
|
},
|
|
1870
1870
|
emits: ["close", "confirm"],
|
|
1871
1871
|
setup(e, { expose: t, emit: n }) {
|
|
1872
|
-
const o = e, s = qt(Lt()), r = U(!1), c = Se().appContext.config.globalProperties.$serviceApi, d = ke(() => o.items.length ? Ie(o.items, u) : {}), { t: u } = Oe(), a = ke(() => o.items.length ? jt(
|
|
1872
|
+
const o = e, s = qt(Lt()), r = U(!1), c = Se().appContext.config.globalProperties.$serviceApi, d = ke(() => o.items.length ? Ie(o.items, u) : {}), { t: u } = Oe(), a = ke(() => o.items.length ? jt(ae(o.items, !0), o.dataStatus, 24) : o.items), l = U(!1), C = U(null), g = () => {
|
|
1873
1873
|
C.value.validate(async (z) => {
|
|
1874
1874
|
if (!z) {
|
|
1875
|
-
const { record: x, url:
|
|
1876
|
-
if (
|
|
1875
|
+
const { record: x, url: F, method: S } = o;
|
|
1876
|
+
if (F) {
|
|
1877
1877
|
y();
|
|
1878
|
-
const
|
|
1879
|
-
if (
|
|
1880
|
-
const [L, D] = await Vt(c[S](
|
|
1878
|
+
const N = s != null && s.dataProcessMethod ? s == null ? void 0 : s.dataProcessMethod(x) : x;
|
|
1879
|
+
if (F) {
|
|
1880
|
+
const [L, D] = await Vt(c[S](F, N));
|
|
1881
1881
|
L || (lt(), q("confirm", D));
|
|
1882
1882
|
}
|
|
1883
|
-
|
|
1883
|
+
b(), k();
|
|
1884
1884
|
} else
|
|
1885
1885
|
q("confirm");
|
|
1886
1886
|
}
|
|
1887
1887
|
});
|
|
1888
1888
|
}, y = () => {
|
|
1889
1889
|
r.value = !0;
|
|
1890
|
-
},
|
|
1890
|
+
}, b = () => {
|
|
1891
1891
|
r.value = !1;
|
|
1892
1892
|
}, f = (z) => {
|
|
1893
1893
|
C.value.validate(z);
|
|
@@ -1902,7 +1902,7 @@ const Fn = (e, t, n) => {
|
|
|
1902
1902
|
}, q = n;
|
|
1903
1903
|
return t({
|
|
1904
1904
|
showLoading: y,
|
|
1905
|
-
hiddenLoading:
|
|
1905
|
+
hiddenLoading: b,
|
|
1906
1906
|
openModal: T,
|
|
1907
1907
|
closeModal: $,
|
|
1908
1908
|
validate: f,
|
|
@@ -1910,9 +1910,9 @@ const Fn = (e, t, n) => {
|
|
|
1910
1910
|
}), dt(() => {
|
|
1911
1911
|
T();
|
|
1912
1912
|
}), (z, x) => {
|
|
1913
|
-
const
|
|
1913
|
+
const F = V("vxe-form"), S = V("ut-button"), N = V("vxe-modal");
|
|
1914
1914
|
return O(), B("div", null, [
|
|
1915
|
-
M(
|
|
1915
|
+
M(N, we({
|
|
1916
1916
|
modelValue: l.value,
|
|
1917
1917
|
"onUpdate:modelValue": x[0] || (x[0] = (L) => l.value = L),
|
|
1918
1918
|
title: z.title,
|
|
@@ -1926,7 +1926,7 @@ const Fn = (e, t, n) => {
|
|
|
1926
1926
|
resize: ""
|
|
1927
1927
|
}, z.modalOptions, { onClose: k }), {
|
|
1928
1928
|
default: Y(() => [
|
|
1929
|
-
M(
|
|
1929
|
+
M(F, we({
|
|
1930
1930
|
ref_key: "xForm",
|
|
1931
1931
|
ref: C,
|
|
1932
1932
|
data: z.record,
|
|
@@ -1988,7 +1988,7 @@ const Fn = (e, t, n) => {
|
|
|
1988
1988
|
const o = qt(Lt()), s = e, r = U(!1), i = U(null), c = Se(), d = c.appContext.config.globalProperties.$hasAuthority, u = c.appContext.config.globalProperties.$serviceApi, a = c.appContext.config.globalProperties.$mode, { t: l } = Oe(), C = () => {
|
|
1989
1989
|
const m = s.columns.map((p) => (s.editable ? !p.type && !p.editRender && s.editable && p.editable && (p.editRender = { name: "VxeInput" }) : p.editRender = { enabled: !1 }, p));
|
|
1990
1990
|
return On(m, o.sortable);
|
|
1991
|
-
}, g = () => s.items.length ? Dn(
|
|
1991
|
+
}, g = () => s.items.length ? Dn(ae(s.items, !0)) : s.items, y = () => s.columns.length ? Ie(s.columns, l) : {}, b = Xe({
|
|
1992
1992
|
loading: !1,
|
|
1993
1993
|
border: !0,
|
|
1994
1994
|
pagerConfig: {},
|
|
@@ -2031,21 +2031,21 @@ const Fn = (e, t, n) => {
|
|
|
2031
2031
|
if (p === "radio" && !m)
|
|
2032
2032
|
return Ae(l("message.selectedRecord"));
|
|
2033
2033
|
if ($t(o.beforeConfirm) && !o.beforeConfirm(m)) return;
|
|
2034
|
-
const { submitUrl:
|
|
2035
|
-
if (
|
|
2036
|
-
|
|
2037
|
-
let
|
|
2034
|
+
const { submitUrl: w } = s;
|
|
2035
|
+
if (w) {
|
|
2036
|
+
F();
|
|
2037
|
+
let A;
|
|
2038
2038
|
try {
|
|
2039
|
-
m.forEach((Q) => Object.assign(Q, s.defaultParams)),
|
|
2039
|
+
m.forEach((Q) => Object.assign(Q, s.defaultParams)), A = await u.post(w, m);
|
|
2040
2040
|
} finally {
|
|
2041
|
-
|
|
2041
|
+
A && L("confirm", A), A && lt(l("message.operateSuccess")), D(), S();
|
|
2042
2042
|
}
|
|
2043
2043
|
} else
|
|
2044
2044
|
s.autoClose && D(), L("confirm", m);
|
|
2045
2045
|
}, k = () => {
|
|
2046
2046
|
i.value.commitProxy("query");
|
|
2047
2047
|
}, T = () => {
|
|
2048
|
-
|
|
2048
|
+
b.editRules = y(), i.value.refreshColumn();
|
|
2049
2049
|
}, $ = () => Rn(i.value), q = ({ row: m }) => {
|
|
2050
2050
|
const p = s.columns[0].type;
|
|
2051
2051
|
p === "checkbox" ? i.value.setCheckboxRow(m, !0) : p === "radio" && i.value.setRadioRow(m);
|
|
@@ -2053,46 +2053,46 @@ const Fn = (e, t, n) => {
|
|
|
2053
2053
|
L("actived", m);
|
|
2054
2054
|
}, x = ({ code: m }) => {
|
|
2055
2055
|
L("buttonClick", m);
|
|
2056
|
-
},
|
|
2057
|
-
|
|
2056
|
+
}, F = () => {
|
|
2057
|
+
b.loading = !0;
|
|
2058
2058
|
}, S = () => {
|
|
2059
|
-
|
|
2060
|
-
},
|
|
2061
|
-
const p = s.columns[0].type,
|
|
2062
|
-
return p === "checkbox" && !
|
|
2059
|
+
b.loading = !1;
|
|
2060
|
+
}, N = (m = !1) => {
|
|
2061
|
+
const p = s.columns[0].type, w = p === "radio" ? xgrid.value.getRadioRecord(m) : xgrid.value.getCheckboxRecords(m);
|
|
2062
|
+
return p === "checkbox" && !w.length ? (Ae(l("message.tip_selectedRecord")), []) : p === "radio" && !w ? (Ae(l("message.tip_selectedRecord")), null) : w;
|
|
2063
2063
|
}, L = n, D = () => {
|
|
2064
2064
|
$t(o.beforeClose) && !o.beforeClose() || (r.value = !1, L("close"));
|
|
2065
2065
|
}, v = () => {
|
|
2066
|
-
s.items.length && (
|
|
2066
|
+
s.items.length && (b.formConfig = {
|
|
2067
2067
|
titleWidth: 100,
|
|
2068
2068
|
titleAlign: "right",
|
|
2069
2069
|
items: g(),
|
|
2070
2070
|
rules: Ie(s.items, l),
|
|
2071
2071
|
validConfig: { showMessage: !1 }
|
|
2072
2072
|
});
|
|
2073
|
-
const m = jn(
|
|
2074
|
-
Object.assign(
|
|
2073
|
+
const m = jn(b, s, o, d);
|
|
2074
|
+
Object.assign(b, m), o.mergeFooter && (b.showFooter = !0, b.footerMethod = ({ columns: p, data: w }) => Vn({ columns: p, data: w }, o.mergeFooter));
|
|
2075
2075
|
};
|
|
2076
2076
|
return t({
|
|
2077
2077
|
refreshData: k,
|
|
2078
2078
|
refreshColumn: T,
|
|
2079
2079
|
getInstance: $,
|
|
2080
|
-
showLoading:
|
|
2080
|
+
showLoading: F,
|
|
2081
2081
|
hiddenLoading: S,
|
|
2082
|
-
getSelectRecords:
|
|
2082
|
+
getSelectRecords: N,
|
|
2083
2083
|
close: D
|
|
2084
2084
|
}), dt(() => {
|
|
2085
2085
|
r.value = !0, v();
|
|
2086
2086
|
}), (m, p) => {
|
|
2087
|
-
const
|
|
2087
|
+
const w = V("vxe-grid"), A = V("ut-button"), Q = V("vxe-modal");
|
|
2088
2088
|
return O(), B("div", null, [
|
|
2089
2089
|
M(Q, {
|
|
2090
2090
|
modelValue: r.value,
|
|
2091
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
2091
|
+
"onUpdate:modelValue": p[0] || (p[0] = (ie) => r.value = ie),
|
|
2092
2092
|
title: m.title,
|
|
2093
2093
|
width: m.width,
|
|
2094
2094
|
height: m.height,
|
|
2095
|
-
loading:
|
|
2095
|
+
loading: b.loading,
|
|
2096
2096
|
"show-footer": m.showFooter,
|
|
2097
2097
|
resize: "",
|
|
2098
2098
|
"destroy-on-close": "",
|
|
@@ -2100,10 +2100,10 @@ const Fn = (e, t, n) => {
|
|
|
2100
2100
|
}, {
|
|
2101
2101
|
default: Y(() => [
|
|
2102
2102
|
Ke(m.$slots, "default"),
|
|
2103
|
-
M(
|
|
2103
|
+
M(w, we({
|
|
2104
2104
|
ref_key: "xGrid",
|
|
2105
2105
|
ref: i
|
|
2106
|
-
},
|
|
2106
|
+
}, b, { columnConfig: { resizable: !0 } }, Mt(ee(o).events || {}), {
|
|
2107
2107
|
onEditActivated: z,
|
|
2108
2108
|
onToolbarButtonClick: x,
|
|
2109
2109
|
onToolbarToolClick: x,
|
|
@@ -2112,13 +2112,13 @@ const Fn = (e, t, n) => {
|
|
|
2112
2112
|
]),
|
|
2113
2113
|
footer: Y(() => [
|
|
2114
2114
|
Ke(m.$slots, "bottom"),
|
|
2115
|
-
M(
|
|
2115
|
+
M(A, {
|
|
2116
2116
|
icon: "ri-close-line",
|
|
2117
2117
|
status: "warning",
|
|
2118
2118
|
content: "cancel",
|
|
2119
2119
|
onTap: D
|
|
2120
2120
|
}),
|
|
2121
|
-
M(
|
|
2121
|
+
M(A, {
|
|
2122
2122
|
icon: "ri-save-3-line",
|
|
2123
2123
|
content: "confirm",
|
|
2124
2124
|
onTap: _
|
|
@@ -2428,8 +2428,8 @@ function yt(e, t, n) {
|
|
|
2428
2428
|
metaTokens: !0,
|
|
2429
2429
|
dots: !1,
|
|
2430
2430
|
indexes: !1
|
|
2431
|
-
}, !1, function(
|
|
2432
|
-
return !h.isUndefined(f[
|
|
2431
|
+
}, !1, function(b, f) {
|
|
2432
|
+
return !h.isUndefined(f[b]);
|
|
2433
2433
|
});
|
|
2434
2434
|
const o = n.metaTokens, s = n.visitor || a, r = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(t);
|
|
2435
2435
|
if (!h.isFunction(s))
|
|
@@ -2442,39 +2442,39 @@ function yt(e, t, n) {
|
|
|
2442
2442
|
throw new W("Blob is not supported. Use a Buffer instead.");
|
|
2443
2443
|
return h.isArrayBuffer(y) || h.isTypedArray(y) ? d && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
2444
2444
|
}
|
|
2445
|
-
function a(y,
|
|
2445
|
+
function a(y, b, f) {
|
|
2446
2446
|
let _ = y;
|
|
2447
2447
|
if (y && !f && typeof y == "object") {
|
|
2448
|
-
if (h.endsWith(
|
|
2449
|
-
|
|
2450
|
-
else if (h.isArray(y) && ni(y) || (h.isFileList(y) || h.endsWith(
|
|
2451
|
-
return
|
|
2448
|
+
if (h.endsWith(b, "{}"))
|
|
2449
|
+
b = o ? b : b.slice(0, -2), y = JSON.stringify(y);
|
|
2450
|
+
else if (h.isArray(y) && ni(y) || (h.isFileList(y) || h.endsWith(b, "[]")) && (_ = h.toArray(y)))
|
|
2451
|
+
return b = eo(b), _.forEach(function(T, $) {
|
|
2452
2452
|
!(h.isUndefined(T) || T === null) && t.append(
|
|
2453
2453
|
// eslint-disable-next-line no-nested-ternary
|
|
2454
|
-
i === !0 ? ln([
|
|
2454
|
+
i === !0 ? ln([b], $, r) : i === null ? b : b + "[]",
|
|
2455
2455
|
u(T)
|
|
2456
2456
|
);
|
|
2457
2457
|
}), !1;
|
|
2458
2458
|
}
|
|
2459
|
-
return Dt(y) ? !0 : (t.append(ln(f,
|
|
2459
|
+
return Dt(y) ? !0 : (t.append(ln(f, b, r), u(y)), !1);
|
|
2460
2460
|
}
|
|
2461
2461
|
const l = [], C = Object.assign(oi, {
|
|
2462
2462
|
defaultVisitor: a,
|
|
2463
2463
|
convertValue: u,
|
|
2464
2464
|
isVisitable: Dt
|
|
2465
2465
|
});
|
|
2466
|
-
function g(y,
|
|
2466
|
+
function g(y, b) {
|
|
2467
2467
|
if (!h.isUndefined(y)) {
|
|
2468
2468
|
if (l.indexOf(y) !== -1)
|
|
2469
|
-
throw Error("Circular reference detected in " +
|
|
2469
|
+
throw Error("Circular reference detected in " + b.join("."));
|
|
2470
2470
|
l.push(y), h.forEach(y, function(_, k) {
|
|
2471
2471
|
(!(h.isUndefined(_) || _ === null) && s.call(
|
|
2472
2472
|
t,
|
|
2473
2473
|
_,
|
|
2474
2474
|
h.isString(k) ? k.trim() : k,
|
|
2475
|
-
|
|
2475
|
+
b,
|
|
2476
2476
|
C
|
|
2477
|
-
)) === !0 && g(_,
|
|
2477
|
+
)) === !0 && g(_, b ? b.concat(k) : [k]);
|
|
2478
2478
|
}), l.pop();
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
@@ -2603,14 +2603,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", di
|
|
|
2603
2603
|
hasStandardBrowserWebWorkerEnv: ui,
|
|
2604
2604
|
navigator: At,
|
|
2605
2605
|
origin: di
|
|
2606
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2606
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = {
|
|
2607
2607
|
...fi,
|
|
2608
2608
|
...li
|
|
2609
2609
|
};
|
|
2610
2610
|
function pi(e, t) {
|
|
2611
|
-
return yt(e, new
|
|
2611
|
+
return yt(e, new ce.classes.URLSearchParams(), Object.assign({
|
|
2612
2612
|
visitor: function(n, o, s, r) {
|
|
2613
|
-
return
|
|
2613
|
+
return ce.isNode && h.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
2614
2614
|
}
|
|
2615
2615
|
}, t));
|
|
2616
2616
|
}
|
|
@@ -2704,8 +2704,8 @@ const et = {
|
|
|
2704
2704
|
maxContentLength: -1,
|
|
2705
2705
|
maxBodyLength: -1,
|
|
2706
2706
|
env: {
|
|
2707
|
-
FormData:
|
|
2708
|
-
Blob:
|
|
2707
|
+
FormData: ce.classes.FormData,
|
|
2708
|
+
Blob: ce.classes.Blob
|
|
2709
2709
|
},
|
|
2710
2710
|
validateStatus: function(t) {
|
|
2711
2711
|
return t >= 200 && t < 300;
|
|
@@ -3005,10 +3005,10 @@ const ct = (e, t, n = 3) => {
|
|
|
3005
3005
|
total: e,
|
|
3006
3006
|
loaded: o
|
|
3007
3007
|
}), t[1]];
|
|
3008
|
-
}, pn = (e) => (...t) => h.asap(() => e(...t)), Ei =
|
|
3009
|
-
new URL(
|
|
3010
|
-
|
|
3011
|
-
) : () => !0, Ri =
|
|
3008
|
+
}, pn = (e) => (...t) => h.asap(() => e(...t)), Ei = ce.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ce.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
3009
|
+
new URL(ce.origin),
|
|
3010
|
+
ce.navigator && /(msie|trident)/i.test(ce.navigator.userAgent)
|
|
3011
|
+
) : () => !0, Ri = ce.hasStandardBrowserEnv ? (
|
|
3012
3012
|
// Standard browser envs support document.cookie
|
|
3013
3013
|
{
|
|
3014
3014
|
write(e, t, n, o, s, r) {
|
|
@@ -3119,14 +3119,14 @@ const lo = (e) => {
|
|
|
3119
3119
|
);
|
|
3120
3120
|
let d;
|
|
3121
3121
|
if (h.isFormData(n)) {
|
|
3122
|
-
if (
|
|
3122
|
+
if (ce.hasStandardBrowserEnv || ce.hasStandardBrowserWebWorkerEnv)
|
|
3123
3123
|
i.setContentType(void 0);
|
|
3124
3124
|
else if ((d = i.getContentType()) !== !1) {
|
|
3125
3125
|
const [u, ...a] = d ? d.split(";").map((l) => l.trim()).filter(Boolean) : [];
|
|
3126
3126
|
i.setContentType([u || "multipart/form-data", ...a].join("; "));
|
|
3127
3127
|
}
|
|
3128
3128
|
}
|
|
3129
|
-
if (
|
|
3129
|
+
if (ce.hasStandardBrowserEnv && (o && h.isFunction(o) && (o = o(t)), o || o !== !1 && Ei(t.url))) {
|
|
3130
3130
|
const u = s && r && Ri.read(r);
|
|
3131
3131
|
u && i.set(s, u);
|
|
3132
3132
|
}
|
|
@@ -3137,7 +3137,7 @@ const lo = (e) => {
|
|
|
3137
3137
|
let r = s.data;
|
|
3138
3138
|
const i = fe.from(s.headers).normalize();
|
|
3139
3139
|
let { responseType: c, onUploadProgress: d, onDownloadProgress: u } = s, a, l, C, g, y;
|
|
3140
|
-
function
|
|
3140
|
+
function b() {
|
|
3141
3141
|
g && g(), y && y(), s.cancelToken && s.cancelToken.unsubscribe(a), s.signal && s.signal.removeEventListener("abort", a);
|
|
3142
3142
|
}
|
|
3143
3143
|
let f = new XMLHttpRequest();
|
|
@@ -3156,9 +3156,9 @@ const lo = (e) => {
|
|
|
3156
3156
|
request: f
|
|
3157
3157
|
};
|
|
3158
3158
|
io(function(x) {
|
|
3159
|
-
n(x),
|
|
3159
|
+
n(x), b();
|
|
3160
3160
|
}, function(x) {
|
|
3161
|
-
o(x),
|
|
3161
|
+
o(x), b();
|
|
3162
3162
|
}, q), f = null;
|
|
3163
3163
|
}
|
|
3164
3164
|
"onloadend" in f ? f.onloadend = _ : f.onreadystatechange = function() {
|
|
@@ -3182,7 +3182,7 @@ const lo = (e) => {
|
|
|
3182
3182
|
f && (o(!T || T.type ? new He(null, e, f) : T), f.abort(), f = null);
|
|
3183
3183
|
}, s.cancelToken && s.cancelToken.subscribe(a), s.signal && (s.signal.aborted ? a() : s.signal.addEventListener("abort", a)));
|
|
3184
3184
|
const k = Ci(s.url);
|
|
3185
|
-
if (k &&
|
|
3185
|
+
if (k && ce.protocols.indexOf(k) === -1) {
|
|
3186
3186
|
o(new W("Unsupported protocol " + k + ":", W.ERR_BAD_REQUEST, e));
|
|
3187
3187
|
return;
|
|
3188
3188
|
}
|
|
@@ -3276,7 +3276,7 @@ const lo = (e) => {
|
|
|
3276
3276
|
}
|
|
3277
3277
|
}, Mi = co && uo(() => {
|
|
3278
3278
|
let e = !1;
|
|
3279
|
-
const t = new Request(
|
|
3279
|
+
const t = new Request(ce.origin, {
|
|
3280
3280
|
body: new ReadableStream(),
|
|
3281
3281
|
method: "POST",
|
|
3282
3282
|
get duplex() {
|
|
@@ -3300,7 +3300,7 @@ const Ui = async (e) => {
|
|
|
3300
3300
|
if (h.isBlob(e))
|
|
3301
3301
|
return e.size;
|
|
3302
3302
|
if (h.isSpecCompliantForm(e))
|
|
3303
|
-
return (await new Request(
|
|
3303
|
+
return (await new Request(ce.origin, {
|
|
3304
3304
|
method: "POST",
|
|
3305
3305
|
body: e
|
|
3306
3306
|
}).arrayBuffer()).byteLength;
|
|
@@ -3328,7 +3328,7 @@ const Ui = async (e) => {
|
|
|
3328
3328
|
} = lo(e);
|
|
3329
3329
|
u = u ? (u + "").toLowerCase() : "text";
|
|
3330
3330
|
let g = Ai([s, r && r.toAbortSignal()], i), y;
|
|
3331
|
-
const
|
|
3331
|
+
const b = g && g.unsubscribe && (() => {
|
|
3332
3332
|
g.unsubscribe();
|
|
3333
3333
|
});
|
|
3334
3334
|
let f;
|
|
@@ -3340,11 +3340,11 @@ const Ui = async (e) => {
|
|
|
3340
3340
|
duplex: "half"
|
|
3341
3341
|
}), z;
|
|
3342
3342
|
if (h.isFormData(o) && (z = q.headers.get("content-type")) && a.setContentType(z), q.body) {
|
|
3343
|
-
const [x,
|
|
3343
|
+
const [x, F] = fn(
|
|
3344
3344
|
f,
|
|
3345
3345
|
ct(pn(d))
|
|
3346
3346
|
);
|
|
3347
|
-
o = hn(q.body, gn, x,
|
|
3347
|
+
o = hn(q.body, gn, x, F);
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
3350
|
h.isString(l) || (l = l ? "include" : "omit");
|
|
@@ -3360,25 +3360,25 @@ const Ui = async (e) => {
|
|
|
3360
3360
|
});
|
|
3361
3361
|
let k = await fetch(y);
|
|
3362
3362
|
const T = Ft && (u === "stream" || u === "response");
|
|
3363
|
-
if (Ft && (c || T &&
|
|
3363
|
+
if (Ft && (c || T && b)) {
|
|
3364
3364
|
const q = {};
|
|
3365
3365
|
["status", "statusText", "headers"].forEach((S) => {
|
|
3366
3366
|
q[S] = k[S];
|
|
3367
3367
|
});
|
|
3368
|
-
const z = h.toFiniteNumber(k.headers.get("content-length")), [x,
|
|
3368
|
+
const z = h.toFiniteNumber(k.headers.get("content-length")), [x, F] = c && fn(
|
|
3369
3369
|
z,
|
|
3370
3370
|
ct(pn(c), !0)
|
|
3371
3371
|
) || [];
|
|
3372
3372
|
k = new Response(
|
|
3373
3373
|
hn(k.body, gn, x, () => {
|
|
3374
|
-
|
|
3374
|
+
F && F(), b && b();
|
|
3375
3375
|
}),
|
|
3376
3376
|
q
|
|
3377
3377
|
);
|
|
3378
3378
|
}
|
|
3379
3379
|
u = u || "text";
|
|
3380
3380
|
let $ = await ut[h.findKey(ut, u) || "text"](k, e);
|
|
3381
|
-
return !T &&
|
|
3381
|
+
return !T && b && b(), await new Promise((q, z) => {
|
|
3382
3382
|
io(q, z, {
|
|
3383
3383
|
data: $,
|
|
3384
3384
|
headers: fe.from(k.headers),
|
|
@@ -3389,7 +3389,7 @@ const Ui = async (e) => {
|
|
|
3389
3389
|
});
|
|
3390
3390
|
});
|
|
3391
3391
|
} catch (_) {
|
|
3392
|
-
throw
|
|
3392
|
+
throw b && b(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
|
|
3393
3393
|
new W("Network Error", W.ERR_NETWORK, e, y),
|
|
3394
3394
|
{
|
|
3395
3395
|
cause: _.cause || _
|
|
@@ -3572,12 +3572,12 @@ let Pe = class {
|
|
|
3572
3572
|
), n.headers = fe.concat(i, r);
|
|
3573
3573
|
const c = [];
|
|
3574
3574
|
let d = !0;
|
|
3575
|
-
this.interceptors.request.forEach(function(
|
|
3576
|
-
typeof
|
|
3575
|
+
this.interceptors.request.forEach(function(b) {
|
|
3576
|
+
typeof b.runWhen == "function" && b.runWhen(n) === !1 || (d = d && b.synchronous, c.unshift(b.fulfilled, b.rejected));
|
|
3577
3577
|
});
|
|
3578
3578
|
const u = [];
|
|
3579
|
-
this.interceptors.response.forEach(function(
|
|
3580
|
-
u.push(
|
|
3579
|
+
this.interceptors.response.forEach(function(b) {
|
|
3580
|
+
u.push(b.fulfilled, b.rejected);
|
|
3581
3581
|
});
|
|
3582
3582
|
let a, l = 0, C;
|
|
3583
3583
|
if (!d) {
|
|
@@ -3589,11 +3589,11 @@ let Pe = class {
|
|
|
3589
3589
|
C = c.length;
|
|
3590
3590
|
let g = n;
|
|
3591
3591
|
for (l = 0; l < C; ) {
|
|
3592
|
-
const y = c[l++],
|
|
3592
|
+
const y = c[l++], b = c[l++];
|
|
3593
3593
|
try {
|
|
3594
3594
|
g = y(g);
|
|
3595
3595
|
} catch (f) {
|
|
3596
|
-
|
|
3596
|
+
b.call(this, f);
|
|
3597
3597
|
break;
|
|
3598
3598
|
}
|
|
3599
3599
|
}
|
|
@@ -3869,26 +3869,26 @@ const {
|
|
|
3869
3869
|
emits: ["remove"],
|
|
3870
3870
|
setup(e, { emit: t }) {
|
|
3871
3871
|
const n = e, s = Se().appContext.config.globalProperties.$url, r = U(""), i = U(!1), c = ["image/gif", "image/jpeg", "image/png"], d = U(null), u = ke(() => {
|
|
3872
|
-
const
|
|
3872
|
+
const F = ve.get("authorized-token");
|
|
3873
3873
|
return {
|
|
3874
|
-
Authorization: "Bearer " + JSON.parse(
|
|
3874
|
+
Authorization: "Bearer " + JSON.parse(F).accessToken
|
|
3875
3875
|
};
|
|
3876
|
-
}), a = U([]), l = U([]), C = (x) => c.includes(x.file.type) && x.file.size > 1024 * 1024 * n.compassorSize ? new Promise((
|
|
3876
|
+
}), a = U([]), l = U([]), C = (x) => c.includes(x.file.type) && x.file.size > 1024 * 1024 * n.compassorSize ? new Promise((F, S) => {
|
|
3877
3877
|
new An(x.file, {
|
|
3878
3878
|
quality: n.quality,
|
|
3879
3879
|
mimeType: x.file.type,
|
|
3880
|
-
success(
|
|
3881
|
-
const L = new File([
|
|
3882
|
-
g(
|
|
3880
|
+
success(N) {
|
|
3881
|
+
const L = new File([N], N.name, { type: N.type });
|
|
3882
|
+
g(F, S, L), console.log({ result: N, file: L });
|
|
3883
3883
|
}
|
|
3884
3884
|
});
|
|
3885
3885
|
}) : new Promise(
|
|
3886
|
-
(
|
|
3887
|
-
), g = (x,
|
|
3888
|
-
const
|
|
3889
|
-
|
|
3886
|
+
(F, S) => g(F, S, x.file)
|
|
3887
|
+
), g = (x, F, S) => {
|
|
3888
|
+
const N = new FormData();
|
|
3889
|
+
N.append("file", S);
|
|
3890
3890
|
const L = s + "/ufil/file/uploadMultipart";
|
|
3891
|
-
return i.value = !0, se.post(L,
|
|
3891
|
+
return i.value = !0, se.post(L, N, {
|
|
3892
3892
|
headers: Object.assign(
|
|
3893
3893
|
{ "Content-Type": "multipart/form-data" },
|
|
3894
3894
|
u.value
|
|
@@ -3902,30 +3902,30 @@ const {
|
|
|
3902
3902
|
}).then(async (D) => {
|
|
3903
3903
|
r.value = "处理中...", S.path = D.data.data, S.url = `${s}/ufil${S.path}`, l.value.push(S), console.log(S), i.value = !1, x(S);
|
|
3904
3904
|
}).catch(() => {
|
|
3905
|
-
i.value = !1,
|
|
3905
|
+
i.value = !1, F(null);
|
|
3906
3906
|
});
|
|
3907
3907
|
}, y = () => {
|
|
3908
3908
|
d.value.choose();
|
|
3909
|
-
},
|
|
3909
|
+
}, b = ({ data: x }) => {
|
|
3910
3910
|
if (n.success)
|
|
3911
3911
|
return n.success(x);
|
|
3912
3912
|
{
|
|
3913
|
-
const
|
|
3914
|
-
Object.assign(n.record, { [
|
|
3913
|
+
const F = n.field;
|
|
3914
|
+
Object.assign(n.record, { [F]: x.path });
|
|
3915
3915
|
}
|
|
3916
3916
|
console.log(n.record, l);
|
|
3917
3917
|
}, f = ({ option: x }) => {
|
|
3918
3918
|
if (n.remove)
|
|
3919
3919
|
return n.remove(x, l);
|
|
3920
3920
|
z("remove", x, l);
|
|
3921
|
-
}, _ = (x,
|
|
3922
|
-
l.value.splice(
|
|
3921
|
+
}, _ = (x, F) => {
|
|
3922
|
+
l.value.splice(F, 1), z("remove", x, l);
|
|
3923
3923
|
}, k = (x) => {
|
|
3924
3924
|
Ee.previewImage({ activeIndex: 0, urlList: [x.url] });
|
|
3925
3925
|
}, T = (x) => {
|
|
3926
|
-
const
|
|
3926
|
+
const F = x.type || x.url.split(".").pop();
|
|
3927
3927
|
let S = "";
|
|
3928
|
-
switch (
|
|
3928
|
+
switch (F) {
|
|
3929
3929
|
case "jpg":
|
|
3930
3930
|
case "png":
|
|
3931
3931
|
case "jpeg":
|
|
@@ -3967,12 +3967,12 @@ const {
|
|
|
3967
3967
|
}
|
|
3968
3968
|
return S;
|
|
3969
3969
|
}, $ = (x) => {
|
|
3970
|
-
let
|
|
3970
|
+
let F = n.size === "small" ? 10 : 9;
|
|
3971
3971
|
return ((L) => {
|
|
3972
3972
|
const D = L.lastIndexOf("."), v = D > 0 ? L.substring(0, D) : L, m = D > 0 ? L.substring(D) : "";
|
|
3973
|
-
if (v.length <=
|
|
3974
|
-
const p = n.renderMode === "item" ? v.substring(0,
|
|
3975
|
-
return `${p}...${
|
|
3973
|
+
if (v.length <= F) return L;
|
|
3974
|
+
const p = n.renderMode === "item" ? v.substring(0, F - 5) : "", w = v.substring(v.length - (F - 6));
|
|
3975
|
+
return `${p}...${w}${m}`;
|
|
3976
3976
|
})(((L) => {
|
|
3977
3977
|
if (L.name) return L.name;
|
|
3978
3978
|
const D = L.url, v = D.includes("\\") ? "\\" : "/";
|
|
@@ -3987,13 +3987,13 @@ const {
|
|
|
3987
3987
|
if (x && Ne(x)) {
|
|
3988
3988
|
const S = { name: x.match(/[^\/\\]+$/)[0], url: `${s}/ufil${x}` };
|
|
3989
3989
|
n.singleMode ? l.value = S : l.value.push(S);
|
|
3990
|
-
} else Ao(x) && x.forEach((
|
|
3991
|
-
const S =
|
|
3992
|
-
l.value.push({ name: S, url: `${s}/ufil${
|
|
3990
|
+
} else Ao(x) && x.forEach((F) => {
|
|
3991
|
+
const S = F.match(/[^\/\\]+$/)[0];
|
|
3992
|
+
l.value.push({ name: S, url: `${s}/ufil${F}` });
|
|
3993
3993
|
});
|
|
3994
3994
|
console.log("fileList");
|
|
3995
|
-
}), (x,
|
|
3996
|
-
const S = V("vxe-tooltip"),
|
|
3995
|
+
}), (x, F) => {
|
|
3996
|
+
const S = V("vxe-tooltip"), N = V("vxe-icon"), L = V("vxe-upload");
|
|
3997
3997
|
return O(), B("div", Wi, [
|
|
3998
3998
|
R("div", Yi, [
|
|
3999
3999
|
(O(!0), B(ye, null, he(l.value, (D, v) => (O(), B("div", {
|
|
@@ -4067,7 +4067,7 @@ const {
|
|
|
4067
4067
|
R("div", ra, [
|
|
4068
4068
|
i.value ? oe("", !0) : (O(), B("span", ia)),
|
|
4069
4069
|
i.value ? oe("", !0) : (O(), B("div", aa, " 点击上传 ")),
|
|
4070
|
-
i.value ? (O(), re(
|
|
4070
|
+
i.value ? (O(), re(N, {
|
|
4071
4071
|
key: 2,
|
|
4072
4072
|
name: "spinner",
|
|
4073
4073
|
status: "primary",
|
|
@@ -4082,7 +4082,7 @@ const {
|
|
|
4082
4082
|
ref_key: "xupload",
|
|
4083
4083
|
ref: d,
|
|
4084
4084
|
modelValue: a.value,
|
|
4085
|
-
"onUpdate:modelValue":
|
|
4085
|
+
"onUpdate:modelValue": F[0] || (F[0] = (D) => a.value = D),
|
|
4086
4086
|
style: { display: "none" }
|
|
4087
4087
|
}, x.$attrs, {
|
|
4088
4088
|
"limit-count": x.limitCount,
|
|
@@ -4099,7 +4099,7 @@ const {
|
|
|
4099
4099
|
"show-download-button": x.showDownloadButton,
|
|
4100
4100
|
"show-list": !1,
|
|
4101
4101
|
"show-progress": "",
|
|
4102
|
-
onUploadSuccess:
|
|
4102
|
+
onUploadSuccess: b
|
|
4103
4103
|
}), null, 16, ["modelValue", "limit-count", "limit-size", "size", "mode", "single-mode", "image-types", "auto-hidden-button", "show-error-status", "multiple", "show-download-button"])
|
|
4104
4104
|
]);
|
|
4105
4105
|
};
|
|
@@ -4120,9 +4120,9 @@ const {
|
|
|
4120
4120
|
},
|
|
4121
4121
|
emits: ["update:modelValue"],
|
|
4122
4122
|
setup(e, { emit: t }) {
|
|
4123
|
-
const n = e, o = t, s = U(!1), r = To(n, "modelValue"), i = U(Object.keys(No.icons)), c = U("ri-"), d = U(), u =
|
|
4123
|
+
const n = e, o = t, s = U(!1), r = To(n, "modelValue"), i = U(Object.keys(No.icons)), c = U("ri-"), d = U(), u = ae(i.value, !0), a = U(35), l = U(1), C = U(0), g = U(""), y = () => {
|
|
4124
4124
|
d.value = "corner-down-right-fill", r.value && (d.value = r.value.split(":")[1]);
|
|
4125
|
-
},
|
|
4125
|
+
}, b = ke(() => l.value === 1 ? u.filter((x) => x.includes(g.value)).slice(l.value - 1, a.value) : u.filter((x) => x.includes(g.value)).slice(
|
|
4126
4126
|
a.value * (l.value - 1),
|
|
4127
4127
|
a.value * (l.value - 1) + a.value
|
|
4128
4128
|
)), f = ke(() => (x) => {
|
|
@@ -4161,12 +4161,12 @@ const {
|
|
|
4161
4161
|
}
|
|
4162
4162
|
), Qe(() => {
|
|
4163
4163
|
q(), y();
|
|
4164
|
-
}), (x,
|
|
4165
|
-
const S = V("IconifyIconOffline"),
|
|
4164
|
+
}), (x, F) => {
|
|
4165
|
+
const S = V("IconifyIconOffline"), N = V("el-input"), L = V("el-divider"), D = V("el-scrollbar"), v = V("el-pagination"), m = V("vxe-button"), p = V("el-popover");
|
|
4166
4166
|
return O(), B("div", fa, [
|
|
4167
|
-
M(
|
|
4167
|
+
M(N, {
|
|
4168
4168
|
modelValue: r.value,
|
|
4169
|
-
"onUpdate:modelValue":
|
|
4169
|
+
"onUpdate:modelValue": F[2] || (F[2] = (w) => r.value = w),
|
|
4170
4170
|
readonly: "",
|
|
4171
4171
|
class: "u-icon-input relative"
|
|
4172
4172
|
}, {
|
|
@@ -4190,7 +4190,7 @@ const {
|
|
|
4190
4190
|
reference: Y(() => [
|
|
4191
4191
|
R("div", {
|
|
4192
4192
|
class: "w-7 h-full cursor-pointer flex justify-center items-center",
|
|
4193
|
-
onClick:
|
|
4193
|
+
onClick: F[0] || (F[0] = (w) => s.value = !s.value)
|
|
4194
4194
|
}, [
|
|
4195
4195
|
R("i", {
|
|
4196
4196
|
class: be(c.value + d.value),
|
|
@@ -4200,9 +4200,9 @@ const {
|
|
|
4200
4200
|
]),
|
|
4201
4201
|
default: Y(() => [
|
|
4202
4202
|
R("div", pa, [
|
|
4203
|
-
M(
|
|
4203
|
+
M(N, {
|
|
4204
4204
|
modelValue: g.value,
|
|
4205
|
-
"onUpdate:modelValue":
|
|
4205
|
+
"onUpdate:modelValue": F[1] || (F[1] = (w) => g.value = w),
|
|
4206
4206
|
class: "p-2",
|
|
4207
4207
|
placeholder: "搜索图标",
|
|
4208
4208
|
clearable: ""
|
|
@@ -4212,15 +4212,15 @@ const {
|
|
|
4212
4212
|
M(D, { height: "220px" }, {
|
|
4213
4213
|
default: Y(() => [
|
|
4214
4214
|
R("ul", ma, [
|
|
4215
|
-
(O(!0), B(ye, null, he(
|
|
4216
|
-
key:
|
|
4217
|
-
title:
|
|
4215
|
+
(O(!0), B(ye, null, he(b.value, (w, A) => (O(), B("li", {
|
|
4216
|
+
key: A,
|
|
4217
|
+
title: w,
|
|
4218
4218
|
class: "icon-item p-2 cursor-pointer mr-2 mt-1 flex justify-center items-center border border-[#e5e7eb]",
|
|
4219
|
-
style: Ve(f.value(
|
|
4220
|
-
onClick: (Q) => _(
|
|
4219
|
+
style: Ve(f.value(w)),
|
|
4220
|
+
onClick: (Q) => _(w)
|
|
4221
4221
|
}, [
|
|
4222
4222
|
R("i", {
|
|
4223
|
-
class: be([c.value +
|
|
4223
|
+
class: be([c.value + w, "w-5 h-5 text-xl"])
|
|
4224
4224
|
}, null, 2)
|
|
4225
4225
|
], 12, ha))), 128))
|
|
4226
4226
|
])
|
|
@@ -4325,27 +4325,27 @@ const {
|
|
|
4325
4325
|
i.value = S, t.value = ge(t.value).format(`${S}-MM-DD`), $e(k);
|
|
4326
4326
|
}, y = (S) => {
|
|
4327
4327
|
r.value = S, t.value = ge(t.value).format(`YYYY-${S}-DD`), $e(k);
|
|
4328
|
-
},
|
|
4328
|
+
}, b = () => {
|
|
4329
4329
|
t.value = ge().format("YYYY-MM-DD");
|
|
4330
|
-
const { day: S, month:
|
|
4331
|
-
i.value = L, r.value =
|
|
4330
|
+
const { day: S, month: N, year: L } = $();
|
|
4331
|
+
i.value = L, r.value = N, s.value = S;
|
|
4332
4332
|
}, f = (S) => {
|
|
4333
4333
|
S && (t.value = S);
|
|
4334
4334
|
}, _ = () => {
|
|
4335
|
-
|
|
4335
|
+
b(), o.date && (t.value = o.date), k();
|
|
4336
4336
|
}, k = () => {
|
|
4337
|
-
const S = i.value,
|
|
4337
|
+
const S = i.value, N = r.value, L = 1;
|
|
4338
4338
|
let D = [];
|
|
4339
|
-
const v = 42, m = new Date([S,
|
|
4340
|
-
let p = [S,
|
|
4341
|
-
|
|
4342
|
-
for (let
|
|
4339
|
+
const v = 42, m = new Date([S, N, L].join("-"));
|
|
4340
|
+
let p = [S, N, L].join("-"), w = m.getDay();
|
|
4341
|
+
w = w == 0 ? 7 : w;
|
|
4342
|
+
for (let A = 1; A < w; A++) {
|
|
4343
4343
|
p = ge(p).subtract(1, "day").format("YYYY-MM-DD");
|
|
4344
|
-
const { day: Q, month:
|
|
4344
|
+
const { day: Q, month: ie, year: le } = $(p), pe = nt.solar2lunar(le, ie, Q);
|
|
4345
4345
|
if (pe === -1) return {};
|
|
4346
4346
|
let { Term: J } = pe;
|
|
4347
|
-
const { IDayCn: ne, IMonthCn:
|
|
4348
|
-
|
|
4347
|
+
const { IDayCn: ne, IMonthCn: P, cDay: I, cMonth: E, cYear: j } = pe;
|
|
4348
|
+
F[E] && F[E][I] && (J = F[E][I]), x[P] && x[P][ne] && (J = x[P][ne]);
|
|
4349
4349
|
const { isWorkDay: H, isRestDay: K } = T(j, E, I);
|
|
4350
4350
|
D.push({
|
|
4351
4351
|
day: p.split("-")[2],
|
|
@@ -4359,20 +4359,20 @@ const {
|
|
|
4359
4359
|
isRestDay: K
|
|
4360
4360
|
});
|
|
4361
4361
|
}
|
|
4362
|
-
p = [S,
|
|
4363
|
-
for (let
|
|
4364
|
-
const { day: Q, month:
|
|
4362
|
+
p = [S, N, L].join("-"), D = D.reverse();
|
|
4363
|
+
for (let A = 0; A <= v - w; A++) {
|
|
4364
|
+
const { day: Q, month: ie, year: le } = $(p), pe = nt.solar2lunar(le, ie, Q);
|
|
4365
4365
|
if (pe === -1) return {};
|
|
4366
4366
|
let { Term: J } = pe;
|
|
4367
|
-
const { IDayCn: ne, IMonthCn:
|
|
4368
|
-
|
|
4367
|
+
const { IDayCn: ne, IMonthCn: P, cDay: I, cMonth: E, cYear: j } = pe;
|
|
4368
|
+
F[E] && F[E][I] && (J = F[E][I]), x[P] && x[P][ne] && (J = x[P][ne]);
|
|
4369
4369
|
const { isWorkDay: H, isRestDay: K } = T(j, E, I);
|
|
4370
4370
|
D.push({
|
|
4371
4371
|
date: p,
|
|
4372
4372
|
day: Q,
|
|
4373
4373
|
d_day: J || ne,
|
|
4374
4374
|
isSelectClass: t.value == p,
|
|
4375
|
-
otherMonth:
|
|
4375
|
+
otherMonth: ie != r.value,
|
|
4376
4376
|
hasTerm: J,
|
|
4377
4377
|
isWeekend: (new Date(p).getDay() == 6 || new Date(p).getDay() == 0) && !H,
|
|
4378
4378
|
isWorkDay: H,
|
|
@@ -4380,40 +4380,40 @@ const {
|
|
|
4380
4380
|
}), p = ge(p).add(1, "day").format("YYYY-MM-DD");
|
|
4381
4381
|
}
|
|
4382
4382
|
n.value = [];
|
|
4383
|
-
for (let
|
|
4383
|
+
for (let A = 0; A <= 5; A++)
|
|
4384
4384
|
n.value.push(D.splice(0, 7));
|
|
4385
4385
|
console.log(n);
|
|
4386
|
-
}, T = (S,
|
|
4387
|
-
var
|
|
4386
|
+
}, T = (S, N, L) => {
|
|
4387
|
+
var w;
|
|
4388
4388
|
let D, v;
|
|
4389
|
-
const m = ((
|
|
4389
|
+
const m = ((w = o.holidays) == null ? void 0 : w.find((A) => A[S])) || {}, p = m[S] && m[S][N] ? m[S][N][L] : "";
|
|
4390
4390
|
return p === "班" ? D = !0 : p === "假" && (v = !0), { isRestDay: v, isWorkDay: D };
|
|
4391
4391
|
}, $ = (S) => {
|
|
4392
|
-
const
|
|
4393
|
-
return { day:
|
|
4392
|
+
const N = ge(S || Date.now()).format("DD"), L = ge(S || Date.now()).format("YYYY"), D = ge(S || Date.now()).format("MM"), v = `${L}-${D}-${N}` === ge().format("YYYY-MM-DD");
|
|
4393
|
+
return { day: N, month: D, year: L, isToday: v };
|
|
4394
4394
|
};
|
|
4395
4395
|
Qe(() => {
|
|
4396
4396
|
_();
|
|
4397
4397
|
}), at(t, (S) => {
|
|
4398
|
-
const { day:
|
|
4398
|
+
const { day: N, month: L, year: D } = $(S);
|
|
4399
4399
|
i.value = D, r.value = L;
|
|
4400
4400
|
const v = nt.solar2lunar(
|
|
4401
4401
|
i.value,
|
|
4402
4402
|
r.value,
|
|
4403
|
-
|
|
4403
|
+
N
|
|
4404
4404
|
);
|
|
4405
4405
|
if (v === -1) return {};
|
|
4406
4406
|
u.value = {
|
|
4407
4407
|
...v,
|
|
4408
4408
|
lunarFestival: x[v.IMonthCn] ? x[v.IMonthCn][v.IDayCn] : void 0,
|
|
4409
|
-
festival:
|
|
4409
|
+
festival: F[v.cMonth] ? F[v.cMonth][v.cDay] : void 0
|
|
4410
4410
|
}, $e(k);
|
|
4411
4411
|
});
|
|
4412
4412
|
const q = (S) => {
|
|
4413
|
-
const
|
|
4414
|
-
console.log(
|
|
4413
|
+
const N = S.target.parentNode.getAttribute("date") ? S.target.parentNode.getAttribute("date") : S.target.getAttribute("date");
|
|
4414
|
+
console.log(N), t.value = N;
|
|
4415
4415
|
}, z = () => {
|
|
4416
|
-
|
|
4416
|
+
b();
|
|
4417
4417
|
}, x = {
|
|
4418
4418
|
正月: { 初一: "春节", 十五: "元宵节" },
|
|
4419
4419
|
二月: { 初二: "春龙节" },
|
|
@@ -4422,7 +4422,7 @@ const {
|
|
|
4422
4422
|
八月: { 十五: "中秋节" },
|
|
4423
4423
|
九月: { 初九: "重阳节" },
|
|
4424
4424
|
腊月: { 初八: "腊八节", 廿三: "小年", 三十: "除夕" }
|
|
4425
|
-
},
|
|
4425
|
+
}, F = {
|
|
4426
4426
|
1: { 1: "元旦" },
|
|
4427
4427
|
2: { 14: "情人节" },
|
|
4428
4428
|
3: { 8: "妇女节" },
|
|
@@ -4434,7 +4434,7 @@ const {
|
|
|
4434
4434
|
9: { 10: "教师节" },
|
|
4435
4435
|
10: { 1: "国庆节" }
|
|
4436
4436
|
};
|
|
4437
|
-
return (S,
|
|
4437
|
+
return (S, N) => {
|
|
4438
4438
|
const L = V("el-option"), D = V("el-select");
|
|
4439
4439
|
return O(), B("div", _a, [
|
|
4440
4440
|
R("div", xa, [
|
|
@@ -4443,7 +4443,7 @@ const {
|
|
|
4443
4443
|
R("div", Sa, [
|
|
4444
4444
|
M(D, {
|
|
4445
4445
|
modelValue: c.value,
|
|
4446
|
-
"onUpdate:modelValue":
|
|
4446
|
+
"onUpdate:modelValue": N[0] || (N[0] = (v) => c.value = v),
|
|
4447
4447
|
style: { width: "80px" },
|
|
4448
4448
|
clearable: "",
|
|
4449
4449
|
placeholder: "假期",
|
|
@@ -4462,7 +4462,7 @@ const {
|
|
|
4462
4462
|
R("div", Ea, [
|
|
4463
4463
|
M(D, {
|
|
4464
4464
|
modelValue: i.value,
|
|
4465
|
-
"onUpdate:modelValue":
|
|
4465
|
+
"onUpdate:modelValue": N[1] || (N[1] = (v) => i.value = v),
|
|
4466
4466
|
style: { width: "80px" },
|
|
4467
4467
|
onChange: g
|
|
4468
4468
|
}, {
|
|
@@ -4480,11 +4480,11 @@ const {
|
|
|
4480
4480
|
R("div", Ta, [
|
|
4481
4481
|
R("div", {
|
|
4482
4482
|
class: "op-calendar-pc-prev-month",
|
|
4483
|
-
onClick:
|
|
4483
|
+
onClick: N[2] || (N[2] = (v) => C("prev"))
|
|
4484
4484
|
}, Oa),
|
|
4485
4485
|
M(D, {
|
|
4486
4486
|
modelValue: r.value,
|
|
4487
|
-
"onUpdate:modelValue":
|
|
4487
|
+
"onUpdate:modelValue": N[3] || (N[3] = (v) => r.value = v),
|
|
4488
4488
|
style: { width: "60px" },
|
|
4489
4489
|
onChange: y
|
|
4490
4490
|
}, {
|
|
@@ -4499,7 +4499,7 @@ const {
|
|
|
4499
4499
|
}, 8, ["modelValue"]),
|
|
4500
4500
|
R("div", {
|
|
4501
4501
|
class: "op-calendar-pc-next-month",
|
|
4502
|
-
onClick:
|
|
4502
|
+
onClick: N[4] || (N[4] = (v) => C("next"))
|
|
4503
4503
|
}, Aa)
|
|
4504
4504
|
])
|
|
4505
4505
|
]),
|
|
@@ -4622,9 +4622,9 @@ const {
|
|
|
4622
4622
|
(() => {
|
|
4623
4623
|
t.value = setInterval(() => {
|
|
4624
4624
|
var f;
|
|
4625
|
-
const g = /* @__PURE__ */ new Date(), y = u(new Date(g.getTime() - 1e3), "hhiiss"),
|
|
4625
|
+
const g = /* @__PURE__ */ new Date(), y = u(new Date(g.getTime() - 1e3), "hhiiss"), b = u(g, "hhiiss");
|
|
4626
4626
|
for (let _ = 0; _ < d.length; _++)
|
|
4627
|
-
y[_] !==
|
|
4627
|
+
y[_] !== b[_] && ((f = d[_].value) == null || f.flipDown(y[_], b[_]));
|
|
4628
4628
|
}, 1e3);
|
|
4629
4629
|
})();
|
|
4630
4630
|
});
|
|
@@ -4634,17 +4634,17 @@ const {
|
|
|
4634
4634
|
y[0],
|
|
4635
4635
|
(C.getFullYear() + "").slice(-y[0].length)
|
|
4636
4636
|
));
|
|
4637
|
-
const
|
|
4637
|
+
const b = {
|
|
4638
4638
|
"m+": C.getMonth() + 1,
|
|
4639
4639
|
"d+": C.getDate(),
|
|
4640
4640
|
"h+": C.getHours(),
|
|
4641
4641
|
"i+": C.getMinutes(),
|
|
4642
4642
|
"s+": C.getSeconds()
|
|
4643
4643
|
};
|
|
4644
|
-
for (const f in
|
|
4644
|
+
for (const f in b) {
|
|
4645
4645
|
const _ = g.match(new RegExp(`(${f})`));
|
|
4646
4646
|
if (_) {
|
|
4647
|
-
const k =
|
|
4647
|
+
const k = b[f] + "";
|
|
4648
4648
|
g = g.replace(
|
|
4649
4649
|
_[0],
|
|
4650
4650
|
_[0].length === 1 ? k : k.padStart(2, "0")
|
|
@@ -4832,9 +4832,9 @@ function gl(e, t) {
|
|
|
4832
4832
|
height: n.height
|
|
4833
4833
|
};
|
|
4834
4834
|
let r = n.body;
|
|
4835
|
-
[n, o].forEach((
|
|
4836
|
-
const f = [], _ =
|
|
4837
|
-
let T =
|
|
4835
|
+
[n, o].forEach((b) => {
|
|
4836
|
+
const f = [], _ = b.hFlip, k = b.vFlip;
|
|
4837
|
+
let T = b.rotate;
|
|
4838
4838
|
_ ? k ? T += 2 : (f.push(
|
|
4839
4839
|
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
4840
4840
|
), f.push("scale(-1 1)"), s.top = s.left = 0) : k && (f.push(
|
|
@@ -4867,8 +4867,8 @@ function gl(e, t) {
|
|
|
4867
4867
|
const i = o.width, c = o.height, d = s.width, u = s.height;
|
|
4868
4868
|
let a, l;
|
|
4869
4869
|
i === null ? (l = c === null ? "1em" : c === "auto" ? u : c, a = wn(l, d / u)) : (a = i === "auto" ? d : i, l = c === null ? wn(a, u / d) : c === "auto" ? u : c);
|
|
4870
|
-
const C = {}, g = (
|
|
4871
|
-
hl(f) || (C[
|
|
4870
|
+
const C = {}, g = (b, f) => {
|
|
4871
|
+
hl(f) || (C[b] = f.toString());
|
|
4872
4872
|
};
|
|
4873
4873
|
g("width", a), g("height", l);
|
|
4874
4874
|
const y = [s.left, s.top, d, u];
|
|
@@ -4951,10 +4951,10 @@ function kn(e) {
|
|
|
4951
4951
|
}
|
|
4952
4952
|
const Rl = (e, t) => {
|
|
4953
4953
|
const n = il(_n, t), o = { ...Sl }, s = t.mode || "svg", r = {}, i = t.style, c = typeof i == "object" && !(i instanceof Array) ? i : {};
|
|
4954
|
-
for (let
|
|
4955
|
-
const f = t[
|
|
4954
|
+
for (let b in t) {
|
|
4955
|
+
const f = t[b];
|
|
4956
4956
|
if (f !== void 0)
|
|
4957
|
-
switch (
|
|
4957
|
+
switch (b) {
|
|
4958
4958
|
// Properties to ignore
|
|
4959
4959
|
case "icon":
|
|
4960
4960
|
case "style":
|
|
@@ -4965,7 +4965,7 @@ const Rl = (e, t) => {
|
|
|
4965
4965
|
case "inline":
|
|
4966
4966
|
case "hFlip":
|
|
4967
4967
|
case "vFlip":
|
|
4968
|
-
n[
|
|
4968
|
+
n[b] = f === !0 || f === "true" || f === 1;
|
|
4969
4969
|
break;
|
|
4970
4970
|
// Flip as string: 'horizontal,vertical'
|
|
4971
4971
|
case "flip":
|
|
@@ -4977,7 +4977,7 @@ const Rl = (e, t) => {
|
|
|
4977
4977
|
break;
|
|
4978
4978
|
// Rotation as string
|
|
4979
4979
|
case "rotate":
|
|
4980
|
-
typeof f == "string" ? n[
|
|
4980
|
+
typeof f == "string" ? n[b] = cl(f) : typeof f == "number" && (n[b] = f);
|
|
4981
4981
|
break;
|
|
4982
4982
|
// Remove aria-hidden
|
|
4983
4983
|
case "ariaHidden":
|
|
@@ -4985,8 +4985,8 @@ const Rl = (e, t) => {
|
|
|
4985
4985
|
f !== !0 && f !== "true" && delete o["aria-hidden"];
|
|
4986
4986
|
break;
|
|
4987
4987
|
default: {
|
|
4988
|
-
const _ = it[
|
|
4989
|
-
_ ? (f === !0 || f === "true" || f === 1) && (n[_] = !0) : _n[
|
|
4988
|
+
const _ = it[b];
|
|
4989
|
+
_ ? (f === !0 || f === "true" || f === 1) && (n[_] = !0) : _n[b] === void 0 && (o[b] = f);
|
|
4990
4990
|
}
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
@@ -4996,8 +4996,8 @@ const Rl = (e, t) => {
|
|
|
4996
4996
|
...r,
|
|
4997
4997
|
...c
|
|
4998
4998
|
}, Object.assign(o, u);
|
|
4999
|
-
let
|
|
5000
|
-
return typeof f == "string" && (f = f.replace(/-/g, "_")), o.innerHTML = wl(d.body, f ? () => f + "ID" +
|
|
4999
|
+
let b = 0, f = t.id;
|
|
5000
|
+
return typeof f == "string" && (f = f.replace(/-/g, "_")), o.innerHTML = wl(d.body, f ? () => f + "ID" + b++ : "iconifyVue"), Ce("svg", o);
|
|
5001
5001
|
}
|
|
5002
5002
|
const { body: a, width: l, height: C } = e, g = s === "mask" || (s === "bg" ? !1 : a.indexOf("currentColor") !== -1), y = _l(a, {
|
|
5003
5003
|
...u,
|