@utogether/components 3.0.0-beta.62 → 3.0.0-beta.63
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.css +1 -1
- package/dist/components.es.js +323 -322
- package/dist/components.umd.js +3 -3
- package/package.json +1 -1
package/dist/components.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ne, getCurrentInstance as Re, computed as
|
|
1
|
+
import { defineComponent as ne, getCurrentInstance as Re, computed as xe, resolveComponent as j, createBlock as ie, createElementBlock as I, createCommentVNode as te, openBlock as D, unref as ee, withCtx as Y, Fragment as ve, renderList as ge, createTextVNode as $n, toDisplayString as Z, createVNode as F, mergeProps as we, ref as N, reactive as Ze, createElementVNode as k, nextTick as De, onMounted as et, mergeModels as nn, useModel as Oo, watch as Ge, toHandlers as Bt, createSlots as On, withDirectives as Dn, vModelText as Do, normalizeClass as fe, renderSlot as He, pushScopeId as Ut, popScopeId as Lt, normalizeStyle as Ve, useAttrs as jt, onUnmounted as Ao, onBeforeMount as pt, toRaw as An, resolveDirective as Po, toRef as Fo, h as Ee } from "vue";
|
|
2
2
|
import { useI18n as Pe } from "vue-i18n";
|
|
3
|
-
import { throttle as St, toDateString as
|
|
4
|
-
import { withInstall as pe, cookies as be, useRender as Fn, delay as Uo, storageLocal as
|
|
3
|
+
import { throttle as St, toDateString as Ce, isFunction as Xe, isEmpty as qe, clone as le, isString as Ae, orderBy as Mo, commafy as No, isObject as Pn, merge as Io, isArray as Bo } from "xe-utils";
|
|
4
|
+
import { withInstall as pe, cookies as be, useRender as Fn, delay as Uo, storageLocal as zt, warnMessage as Me, formatRules as Be, formatItems as Vt, successMessage as ut, dbstorage as on, i18nColums as Mn, errorMessage as Lo, formatGridItems as Nn, iconSet as jo, lunarCalendar as st } from "@utogether/utils";
|
|
5
5
|
import qt from "await-to-js";
|
|
6
6
|
import { VxeUI as Te } from "vxe-pc-ui";
|
|
7
7
|
import In from "compressorjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import zo from "accounting";
|
|
9
|
+
import Vo from "sortablejs";
|
|
10
10
|
import ye from "dayjs";
|
|
11
11
|
const qo = {
|
|
12
12
|
key: 1,
|
|
@@ -32,7 +32,7 @@ const qo = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["tap", "confirm", "cancel"],
|
|
34
34
|
setup(e, { emit: t }) {
|
|
35
|
-
const n = e, s = Re().appContext.config.globalProperties.$hasAuthority, { t: r } = Pe(), i =
|
|
35
|
+
const n = e, s = Re().appContext.config.globalProperties.$hasAuthority, { t: r } = Pe(), i = xe(() => {
|
|
36
36
|
const y = a(), b = /.*[\u4e00-\u9fa5]+.*$/.test(n.content);
|
|
37
37
|
return {
|
|
38
38
|
icon: y,
|
|
@@ -63,14 +63,14 @@ const qo = {
|
|
|
63
63
|
$n(Z(i.value.content), 1)
|
|
64
64
|
]),
|
|
65
65
|
dropdowns: Y(() => [
|
|
66
|
-
(D(!0), I(ve, null, ge(y.children, (
|
|
67
|
-
key:
|
|
68
|
-
disabled:
|
|
69
|
-
status:
|
|
70
|
-
content:
|
|
71
|
-
icon: `${
|
|
72
|
-
mode:
|
|
73
|
-
onClick: (
|
|
66
|
+
(D(!0), I(ve, null, ge(y.children, (C) => (D(), ie(_, {
|
|
67
|
+
key: C.code,
|
|
68
|
+
disabled: C.auth && !ee(s)(C.auth) || C.disabled,
|
|
69
|
+
status: C.status || "primary",
|
|
70
|
+
content: C.content,
|
|
71
|
+
icon: `${C.icon || a()} ${C.icon ? "ri-1x" : ""}`,
|
|
72
|
+
mode: C.mode || "button",
|
|
73
|
+
onClick: (x) => ee(c)(C)
|
|
74
74
|
}, null, 8, ["disabled", "status", "content", "icon", "mode", "onClick"]))), 128))
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
@@ -174,10 +174,10 @@ const qo = {
|
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
checkboxConfig: {
|
|
177
|
-
checkMethod: ({ row: h }) =>
|
|
177
|
+
checkMethod: ({ row: h }) => z(h, n)
|
|
178
178
|
},
|
|
179
179
|
radioConfig: {
|
|
180
|
-
checkMethod: ({ row: h }) =>
|
|
180
|
+
checkMethod: ({ row: h }) => z(h, n)
|
|
181
181
|
},
|
|
182
182
|
columns: []
|
|
183
183
|
});
|
|
@@ -185,10 +185,10 @@ const qo = {
|
|
|
185
185
|
const y = (h) => (v.filter(
|
|
186
186
|
(f) => ["date", "month"].includes(f.fieldType) && f.isSearch
|
|
187
187
|
).forEach((f) => {
|
|
188
|
-
f.fieldType === "date" ? h[f.field] =
|
|
188
|
+
f.fieldType === "date" ? h[f.field] = Ce(
|
|
189
189
|
h[f.field],
|
|
190
190
|
"yyyy-MM-dd 00:00:00"
|
|
191
|
-
) : f.fieldType === "month" && (h[f.field] =
|
|
191
|
+
) : f.fieldType === "month" && (h[f.field] = Ce(h[f.field], "yyyy-MM"));
|
|
192
192
|
}), h), b = () => {
|
|
193
193
|
const h = le(v, !0).filter(($) => $.isSearch === "Y");
|
|
194
194
|
if (!h.length) return;
|
|
@@ -197,7 +197,7 @@ const qo = {
|
|
|
197
197
|
title: $.colTitle,
|
|
198
198
|
span: 8,
|
|
199
199
|
folding: H > 1,
|
|
200
|
-
itemRender:
|
|
200
|
+
itemRender: C($)
|
|
201
201
|
}));
|
|
202
202
|
_.collapseNode = d, d ? f.splice(2, 0, _) : f.push(_), l.formConfig.items = f;
|
|
203
203
|
}, _ = {
|
|
@@ -227,14 +227,14 @@ const qo = {
|
|
|
227
227
|
}
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
|
-
}, m = Fn(),
|
|
230
|
+
}, m = Fn(), C = (h) => {
|
|
231
231
|
if (["date", "month"].includes(h.fieldType)) {
|
|
232
232
|
const d = h.fieldType === "date" ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM";
|
|
233
233
|
return m.renderDate({ type: h.fieldType, valueFormat: d });
|
|
234
234
|
} else if (h.fieldType === "dictCode")
|
|
235
235
|
return m.renderDict(h.dictCode);
|
|
236
236
|
return { name: "VxeInput" };
|
|
237
|
-
},
|
|
237
|
+
}, x = () => {
|
|
238
238
|
const h = le(v, !0).filter(
|
|
239
239
|
(f) => f.isCol === "Y"
|
|
240
240
|
), d = h.reduce(
|
|
@@ -256,8 +256,8 @@ const qo = {
|
|
|
256
256
|
const h = "/upfm/v1/lovViewHeader/detailByViewCode", [d, f] = await qt(
|
|
257
257
|
s.get(h, { lovCode: n.code })
|
|
258
258
|
);
|
|
259
|
-
l.loading = !1, d && O(), l.loading = !0, p.value = (f == null ? void 0 : f.lovTitle) || (f == null ? void 0 : f.lovName), v = (f == null ? void 0 : f.lineList) || [], c = f,
|
|
260
|
-
},
|
|
259
|
+
l.loading = !1, d && O(), l.loading = !0, p.value = (f == null ? void 0 : f.lovTitle) || (f == null ? void 0 : f.lovName), v = (f == null ? void 0 : f.lineList) || [], c = f, x(), b(), await Uo(30), await De(), n.autoLoad && (($ = E.value) == null || $.commitProxy("query")), l.loading = !1;
|
|
260
|
+
}, z = (h, d) => Xe(d.checkMethod) ? d.checkMethod(h) : !0, B = async () => {
|
|
261
261
|
n.disabled || (R(), await De(), i.value = !0);
|
|
262
262
|
}, U = () => {
|
|
263
263
|
T("clear", "");
|
|
@@ -398,8 +398,8 @@ const Bn = (e, t, n) => {
|
|
|
398
398
|
return o.forEach((b, _) => {
|
|
399
399
|
let m = r;
|
|
400
400
|
n.watermarkType === "1" ? m = 18 : n.watermarkType === "2" && (m = 16);
|
|
401
|
-
const
|
|
402
|
-
t.fillText(b, v ||
|
|
401
|
+
const C = l - b.split("").length * Number(m);
|
|
402
|
+
t.fillText(b, v || C, y || c - Number(m) - _ * 25);
|
|
403
403
|
}), e;
|
|
404
404
|
}, es = async (e, t) => {
|
|
405
405
|
let n = await ts(e);
|
|
@@ -444,7 +444,7 @@ const Bn = (e, t, n) => {
|
|
|
444
444
|
{
|
|
445
445
|
field: "createdBy",
|
|
446
446
|
title: "message.createdByName",
|
|
447
|
-
formatter: ({ row:
|
|
447
|
+
formatter: ({ row: C }) => C.createdByName || C.creator || C.createdBy
|
|
448
448
|
},
|
|
449
449
|
{ field: "creationDate", title: "message.creationDate" },
|
|
450
450
|
{
|
|
@@ -485,16 +485,16 @@ const Bn = (e, t, n) => {
|
|
|
485
485
|
types: l,
|
|
486
486
|
modes: ["insert"],
|
|
487
487
|
// 自定义服务端导入
|
|
488
|
-
async importMethod({ file:
|
|
489
|
-
const
|
|
490
|
-
let E =
|
|
491
|
-
if (t.watermarkCode && p.watermarkTrigger === "upload" && a.includes(
|
|
492
|
-
new In(
|
|
488
|
+
async importMethod({ file: C }) {
|
|
489
|
+
const x = C.name.split(".").pop();
|
|
490
|
+
let E = C;
|
|
491
|
+
if (t.watermarkCode && p.watermarkTrigger === "upload" && a.includes(x) && (E = await Qo(C, p)), a.includes(x) && C.size > 1024 * 1024 * t.compassorSize)
|
|
492
|
+
new In(C, {
|
|
493
493
|
quality: t.quality,
|
|
494
|
-
mimeType:
|
|
494
|
+
mimeType: C.type,
|
|
495
495
|
success(R) {
|
|
496
|
-
const
|
|
497
|
-
v(
|
|
496
|
+
const z = new File([R], R.name, { type: R.type });
|
|
497
|
+
v(z), console.log({ result: R, file: z });
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
500
|
else
|
|
@@ -504,25 +504,25 @@ const Bn = (e, t, n) => {
|
|
|
504
504
|
proxyConfig: {
|
|
505
505
|
ajax: {
|
|
506
506
|
// 接收 Promise
|
|
507
|
-
query: ({ page:
|
|
508
|
-
const E = Object.assign({},
|
|
509
|
-
return E.pageNum =
|
|
507
|
+
query: ({ page: C, form: x }) => {
|
|
508
|
+
const E = Object.assign({}, x, t.defaultParams);
|
|
509
|
+
return E.pageNum = C.currentPage, E.pageSize = C.pageSize, E.sourceTable = t.sourceTable, E.sourceId = t.sourceId, t.sourceId && i !== "doc" ? s.get(t.url, E) : null;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
},
|
|
513
513
|
columns: u
|
|
514
|
-
}), v = (
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
const E = `${t.filePath}/${
|
|
518
|
-
t.filePath &&
|
|
514
|
+
}), v = (C) => {
|
|
515
|
+
const x = new FormData();
|
|
516
|
+
x.append("file", C);
|
|
517
|
+
const E = `${t.filePath}/${Ce(/* @__PURE__ */ new Date(), "yyyyMMdd")}/`;
|
|
518
|
+
t.filePath && x.append("filePath", E);
|
|
519
519
|
const R = { "Content-Type": "multipart/form-data" };
|
|
520
|
-
return s.post("/ufil/file/uploadMultipart",
|
|
520
|
+
return s.post("/ufil/file/uploadMultipart", x, { headers: R }).then(async (z) => {
|
|
521
521
|
const B = {
|
|
522
|
-
realpath:
|
|
523
|
-
fileName:
|
|
524
|
-
fileSize:
|
|
525
|
-
fileExtend:
|
|
522
|
+
realpath: z,
|
|
523
|
+
fileName: C.name,
|
|
524
|
+
fileSize: C.size,
|
|
525
|
+
fileExtend: C.name.split(".").pop(),
|
|
526
526
|
sourceTable: t.sourceTable,
|
|
527
527
|
sourceId: t.sourceId
|
|
528
528
|
};
|
|
@@ -533,56 +533,56 @@ const Bn = (e, t, n) => {
|
|
|
533
533
|
status: "error"
|
|
534
534
|
});
|
|
535
535
|
});
|
|
536
|
-
}, y = async (
|
|
536
|
+
}, y = async (C) => {
|
|
537
537
|
try {
|
|
538
|
-
c.loading = !0, await s.delete(t.url, [
|
|
538
|
+
c.loading = !0, await s.delete(t.url, [C]), n.value.commitProxy("query");
|
|
539
539
|
} finally {
|
|
540
540
|
c.loading = !1;
|
|
541
541
|
}
|
|
542
542
|
}, b = async () => {
|
|
543
|
-
const
|
|
543
|
+
const x = await s.get("/upms/v1/watermark/selectByCode", {
|
|
544
544
|
watermarkCode: t.watermarkCode
|
|
545
545
|
});
|
|
546
|
-
p =
|
|
546
|
+
p = x == null ? void 0 : x.list[0], p.watermarkType === "1" ? p.content = Ce(/* @__PURE__ */ new Date(), "yyyy-MM-dd") : p.watermarkType === "2" ? p.content = Ce(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss") : p.watermarkType === "0" && (p.content = "");
|
|
547
547
|
}, _ = async () => {
|
|
548
|
-
const
|
|
549
|
-
(p == null ? void 0 : p.watermarkTrigger) == "preview" ? await
|
|
550
|
-
const R = `${r}/ufil${E.realpath}}`,
|
|
551
|
-
|
|
552
|
-
}) :
|
|
548
|
+
const C = n.value.getData().filter((E) => a.includes(E.fileExtend)), x = [];
|
|
549
|
+
(p == null ? void 0 : p.watermarkTrigger) == "preview" ? await C.forEachSync(async (E) => {
|
|
550
|
+
const R = `${r}/ufil${E.realpath}}`, z = await es(R, p);
|
|
551
|
+
x.push(z);
|
|
552
|
+
}) : C.forEach((E) => {
|
|
553
553
|
const R = `${r}/ufil${E.realpath}`;
|
|
554
|
-
|
|
555
|
-
}), Te.previewImage({ activeIndex: 0, urlList:
|
|
556
|
-
}, m = (
|
|
557
|
-
const
|
|
554
|
+
x.push(R);
|
|
555
|
+
}), Te.previewImage({ activeIndex: 0, urlList: x });
|
|
556
|
+
}, m = (C) => {
|
|
557
|
+
const x = r + "/ufil" + C.realpath, E = document.createElement("a");
|
|
558
558
|
E.style.display = "none";
|
|
559
|
-
const R =
|
|
560
|
-
E.href =
|
|
559
|
+
const R = C.fileName.split(".");
|
|
560
|
+
E.href = x, E.setAttribute("download", R[0]), document.body.appendChild(E), E.click(), document.body.removeChild(E);
|
|
561
561
|
};
|
|
562
|
-
return Array.prototype.forEachSync = async function(
|
|
563
|
-
for (const [
|
|
564
|
-
await
|
|
562
|
+
return Array.prototype.forEachSync = async function(C) {
|
|
563
|
+
for (const [x, E] of Object.entries(this))
|
|
564
|
+
await C(E, x, this);
|
|
565
565
|
}, et(() => {
|
|
566
566
|
t.watermarkCode && b();
|
|
567
|
-
}), (
|
|
568
|
-
const E = j("ut-divider"), R = j("ut-button"),
|
|
567
|
+
}), (C, x) => {
|
|
568
|
+
const E = j("ut-divider"), R = j("ut-button"), z = j("vxe-grid");
|
|
569
569
|
return D(), I("div", ns, [
|
|
570
|
-
F(
|
|
570
|
+
F(z, we({
|
|
571
571
|
ref_key: "xGrid",
|
|
572
572
|
ref: n
|
|
573
573
|
}, c), {
|
|
574
574
|
toolbar_buttons: Y(() => [
|
|
575
|
-
|
|
575
|
+
C.showTitle ? (D(), I("div", os, [
|
|
576
576
|
F(E, {
|
|
577
|
-
title:
|
|
577
|
+
title: C.title || C.$t("message.attachmentInfo")
|
|
578
578
|
}, null, 8, ["title"])
|
|
579
579
|
])) : te("", !0)
|
|
580
580
|
]),
|
|
581
581
|
operate: Y(({ row: B }) => [
|
|
582
582
|
k("div", ss, [
|
|
583
583
|
F(R, {
|
|
584
|
-
disabled:
|
|
585
|
-
auth:
|
|
584
|
+
disabled: C.dataStatus === "detail",
|
|
585
|
+
auth: C.permissionPreFix + "Del",
|
|
586
586
|
status: "danger",
|
|
587
587
|
icon: "ri-delete-bin-5-fill",
|
|
588
588
|
content: "delete",
|
|
@@ -590,13 +590,13 @@ const Bn = (e, t, n) => {
|
|
|
590
590
|
}, null, 8, ["disabled", "auth", "onTap"]),
|
|
591
591
|
["png", "jpeg", "jpg"].includes(B.fileExtend) ? (D(), ie(R, {
|
|
592
592
|
key: 0,
|
|
593
|
-
auth:
|
|
593
|
+
auth: C.permissionPreFix + "Preview",
|
|
594
594
|
icon: "ri-search-line",
|
|
595
595
|
content: "preview",
|
|
596
|
-
onTap:
|
|
596
|
+
onTap: x[0] || (x[0] = (U) => _())
|
|
597
597
|
}, null, 8, ["auth"])) : (D(), ie(R, {
|
|
598
598
|
key: 1,
|
|
599
|
-
auth:
|
|
599
|
+
auth: C.permissionPreFix + "Download",
|
|
600
600
|
icon: "ri-download-2-fill",
|
|
601
601
|
content: "download",
|
|
602
602
|
onTap: (U) => m(B)
|
|
@@ -630,7 +630,7 @@ const Bn = (e, t, n) => {
|
|
|
630
630
|
}),
|
|
631
631
|
emits: /* @__PURE__ */ nn(["close"], ["update:visible"]),
|
|
632
632
|
setup(e, { emit: t }) {
|
|
633
|
-
const n = e, s = Re().appContext.config.globalProperties.$serviceApi, r = Oo(e, "visible"), { t: i } = Pe(), a = N(!1), p =
|
|
633
|
+
const n = e, s = Re().appContext.config.globalProperties.$serviceApi, r = Oo(e, "visible"), { t: i } = Pe(), a = N(!1), p = zt.getItem("kLov");
|
|
634
634
|
Ge(
|
|
635
635
|
() => r.value,
|
|
636
636
|
(h) => {
|
|
@@ -710,11 +710,11 @@ const Bn = (e, t, n) => {
|
|
|
710
710
|
]
|
|
711
711
|
},
|
|
712
712
|
columns: u()
|
|
713
|
-
}),
|
|
713
|
+
}), C = {
|
|
714
714
|
toolbarButtonClick({ code: h }) {
|
|
715
715
|
switch (h) {
|
|
716
716
|
case "import_plus": {
|
|
717
|
-
|
|
717
|
+
x();
|
|
718
718
|
break;
|
|
719
719
|
}
|
|
720
720
|
case "save_plus": {
|
|
@@ -743,7 +743,7 @@ const Bn = (e, t, n) => {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
},
|
|
746
|
+
}, x = () => {
|
|
747
747
|
var h;
|
|
748
748
|
b = [], (h = y.value) == null || h.openImport();
|
|
749
749
|
};
|
|
@@ -755,10 +755,10 @@ const Bn = (e, t, n) => {
|
|
|
755
755
|
$ !== -1 && b.splice($, 1);
|
|
756
756
|
}), n.columns.forEach((f) => {
|
|
757
757
|
(f.dateFormatter || f.valueType === "number") && b.forEach(($) => {
|
|
758
|
-
f.dateFormatter ? $[f.field] =
|
|
758
|
+
f.dateFormatter ? $[f.field] = Ce(
|
|
759
759
|
$[f.field],
|
|
760
760
|
f.dateFormatter || "yyyy-MM-dd HH:mm:ss"
|
|
761
|
-
) : $[f.field] =
|
|
761
|
+
) : $[f.field] = zo.unformat($[f.field]).toFixed(f.decimal || 6);
|
|
762
762
|
});
|
|
763
763
|
}), l.value.total = b.length, R();
|
|
764
764
|
}
|
|
@@ -767,7 +767,7 @@ const Bn = (e, t, n) => {
|
|
|
767
767
|
m.data = b.filter(
|
|
768
768
|
(f, $) => $ < d * h && $ >= d * (h - 1)
|
|
769
769
|
);
|
|
770
|
-
},
|
|
770
|
+
}, z = ({
|
|
771
771
|
currentPage: h,
|
|
772
772
|
pageSize: d
|
|
773
773
|
}) => {
|
|
@@ -859,7 +859,7 @@ const Bn = (e, t, n) => {
|
|
|
859
859
|
F(ue, we({
|
|
860
860
|
ref_key: "xgrid",
|
|
861
861
|
ref: y
|
|
862
|
-
}, m, Bt(
|
|
862
|
+
}, m, Bt(C)), On({
|
|
863
863
|
pager: Y(() => [
|
|
864
864
|
F(ce, {
|
|
865
865
|
"current-page": l.value.currentPage,
|
|
@@ -869,7 +869,7 @@ const Bn = (e, t, n) => {
|
|
|
869
869
|
layouts: c,
|
|
870
870
|
"page-sizes": [200, 500, 1e3, 2e3, 5e3, 1e4],
|
|
871
871
|
total: l.value.total,
|
|
872
|
-
onPageChange:
|
|
872
|
+
onPageChange: z
|
|
873
873
|
}, null, 8, ["current-page", "page-size", "total"])
|
|
874
874
|
]),
|
|
875
875
|
_: 2
|
|
@@ -972,7 +972,7 @@ const Bn = (e, t, n) => {
|
|
|
972
972
|
getContent(e) {
|
|
973
973
|
if (!e) return e;
|
|
974
974
|
if (this.code) {
|
|
975
|
-
const t =
|
|
975
|
+
const t = zt.getItem("kLov")[this.code].children.find((n) => n.dictCode === this.content);
|
|
976
976
|
return t ? t.dictName : e;
|
|
977
977
|
}
|
|
978
978
|
return e;
|
|
@@ -1011,7 +1011,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
style: { "font-weight": "900" },
|
|
1013
1013
|
class: "font-black"
|
|
1014
|
-
}, ws = { class: "ut-right-panel" }, _s = { class: "ut-content-body" },
|
|
1014
|
+
}, ws = { class: "ut-right-panel" }, _s = { class: "ut-content-body" }, Cs = /* @__PURE__ */ ne({
|
|
1015
1015
|
name: "UtContent",
|
|
1016
1016
|
__name: "content",
|
|
1017
1017
|
props: {
|
|
@@ -1026,7 +1026,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1026
1026
|
o("close");
|
|
1027
1027
|
};
|
|
1028
1028
|
return (r, i) => {
|
|
1029
|
-
var p, u, l, c, v, y, b;
|
|
1029
|
+
var p, u, l, c, v, y, b, _;
|
|
1030
1030
|
const a = j("ut-button");
|
|
1031
1031
|
return D(), I("div", vs, [
|
|
1032
1032
|
(p = r.stampOptions) != null && p.content ? (D(), ie(Un, {
|
|
@@ -1035,9 +1035,10 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1035
1035
|
content: (l = r.stampOptions) == null ? void 0 : l.content,
|
|
1036
1036
|
code: (c = r.stampOptions) == null ? void 0 : c.code,
|
|
1037
1037
|
right: (v = r.stampOptions) == null ? void 0 : v.right,
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1038
|
+
size: (y = r.stampOptions) == null ? void 0 : y.size,
|
|
1039
|
+
top: (b = r.stampOptions) == null ? void 0 : b.top,
|
|
1040
|
+
rotate: (_ = r.stampOptions) == null ? void 0 : _.rotate
|
|
1041
|
+
}, null, 8, ["color", "content", "code", "right", "size", "top", "rotate"])) : te("", !0),
|
|
1041
1042
|
r.showTop && n.value ? (D(), I("div", {
|
|
1042
1043
|
key: 1,
|
|
1043
1044
|
class: fe(["ut-content-top", r.title ? "justify-between" : "justify-end"])
|
|
@@ -1051,7 +1052,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1051
1052
|
icon: r.$attrs.icon || "ri-reply-line",
|
|
1052
1053
|
content: r.$attrs.content || "goback",
|
|
1053
1054
|
"delay-time": 64,
|
|
1054
|
-
onTap: i[0] || (i[0] = (
|
|
1055
|
+
onTap: i[0] || (i[0] = (m) => s())
|
|
1055
1056
|
}, null, 8, ["icon", "content"])) : te("", !0)
|
|
1056
1057
|
])
|
|
1057
1058
|
], 2)) : te("", !0),
|
|
@@ -1061,7 +1062,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1061
1062
|
]);
|
|
1062
1063
|
};
|
|
1063
1064
|
}
|
|
1064
|
-
}),
|
|
1065
|
+
}), xs = /* @__PURE__ */ Fe(Cs, [["__scopeId", "data-v-295b66db"]]), ks = pe(xs), Ss = (e) => (Ut("data-v-c0562151"), e = e(), Lt(), e), Es = { class: "ut-divider-wrapper" }, Rs = { class: "flex items-center" }, Ts = /* @__PURE__ */ Ss(() => /* @__PURE__ */ k("span", { class: "ut-color-block" }, null, -1)), $s = { class: "ut-divider-title" }, Os = { class: "mr-2" }, Ds = {
|
|
1065
1066
|
name: "UtDivider"
|
|
1066
1067
|
}, As = /* @__PURE__ */ ne({
|
|
1067
1068
|
...Ds,
|
|
@@ -1092,7 +1093,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1092
1093
|
},
|
|
1093
1094
|
emits: ["command"],
|
|
1094
1095
|
setup(e, { emit: t }) {
|
|
1095
|
-
const n = e, o =
|
|
1096
|
+
const n = e, o = xe(() => n.buttons.filter((v) => v.visible !== !1)), { t: s } = Pe(), r = Re(), i = r == null ? void 0 : r.appContext.config.globalProperties.$hasAuthority, a = (v) => {
|
|
1096
1097
|
v.auth && !i(v.auth) || v.disabled || c("command", v.code);
|
|
1097
1098
|
}, p = ["primary", "success", "u-cyan"], u = (v) => {
|
|
1098
1099
|
const { content: y, code: b } = v;
|
|
@@ -1102,7 +1103,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1102
1103
|
return (y = v.code) != null && y.toLowerCase().includes("print") ? "ri-printer-fill" : (b = v.code) != null && b.toLowerCase().includes("look") ? "ri-eye-fill" : "ri-edit-2-fill";
|
|
1103
1104
|
}, c = t;
|
|
1104
1105
|
return (v, y) => {
|
|
1105
|
-
const b = j("IconifyIconOffline"), _ = j("el-icon"), m = j("vxe-button"),
|
|
1106
|
+
const b = j("IconifyIconOffline"), _ = j("el-icon"), m = j("vxe-button"), C = j("el-dropdown-item"), x = j("el-dropdown-menu"), E = j("el-dropdown");
|
|
1106
1107
|
return v.visible ? (D(), ie(E, {
|
|
1107
1108
|
key: 0,
|
|
1108
1109
|
trigger: v.trigger,
|
|
@@ -1110,15 +1111,15 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1110
1111
|
class: "ut-dropdown"
|
|
1111
1112
|
}, {
|
|
1112
1113
|
dropdown: Y(() => [
|
|
1113
|
-
F(
|
|
1114
|
+
F(x, { class: "ut-dropdown-menu" }, {
|
|
1114
1115
|
default: Y(() => [
|
|
1115
|
-
(D(!0), I(ve, null, ge(o.value, (R,
|
|
1116
|
+
(D(!0), I(ve, null, ge(o.value, (R, z) => (D(), ie(C, {
|
|
1116
1117
|
key: R.code
|
|
1117
1118
|
}, {
|
|
1118
1119
|
default: Y(() => [
|
|
1119
1120
|
F(m, {
|
|
1120
1121
|
disabled: R.disabled || R.auth && !ee(i)(R.auth),
|
|
1121
|
-
status: R.status || p[
|
|
1122
|
+
status: R.status || p[z % 3],
|
|
1122
1123
|
content: u(R),
|
|
1123
1124
|
icon: R.icon || l(R),
|
|
1124
1125
|
onClick: (B) => a(R)
|
|
@@ -1165,7 +1166,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1165
1166
|
dataStatus: { default: "detail" }
|
|
1166
1167
|
},
|
|
1167
1168
|
setup(e, { expose: t }) {
|
|
1168
|
-
const n = e, o = N(void 0), { t: s } = Pe(), r = N(!0), i =
|
|
1169
|
+
const n = e, o = N(void 0), { t: s } = Pe(), r = N(!0), i = xe(() => n.items.length ? Be(n.items, s) : {}), a = xe(() => n.items.length ? Vt(le(n.items, !0), n.dataStatus, 6) : n.items), p = () => {
|
|
1169
1170
|
o.value.toggleCollapse();
|
|
1170
1171
|
};
|
|
1171
1172
|
return t({
|
|
@@ -1211,7 +1212,7 @@ const Un = /* @__PURE__ */ Fe(hs, [["render", ys], ["__scopeId", "data-v-bd36ecc
|
|
|
1211
1212
|
]);
|
|
1212
1213
|
};
|
|
1213
1214
|
}
|
|
1214
|
-
}), js = pe(Ls),
|
|
1215
|
+
}), js = pe(Ls), zs = "kSysConfig", sn = "kCookies_param", Et = zt.getItem(zs);
|
|
1215
1216
|
let rt = {};
|
|
1216
1217
|
const Ln = (e, t) => (e.forEach((n) => {
|
|
1217
1218
|
var o;
|
|
@@ -1239,7 +1240,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1239
1240
|
l(c);
|
|
1240
1241
|
});
|
|
1241
1242
|
});
|
|
1242
|
-
},
|
|
1243
|
+
}, zn = (e, t, n, o, s) => {
|
|
1243
1244
|
if (s) return Ys();
|
|
1244
1245
|
for (const c in t)
|
|
1245
1246
|
t[c] && Ae(t[c]) && (t[c] = t[c].trim());
|
|
@@ -1251,7 +1252,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1251
1252
|
if (!p) return null;
|
|
1252
1253
|
const u = Ae(p) ? p : p.fetch || p.restful, l = p.fetch ? "post" : "get";
|
|
1253
1254
|
return u ? o[l](u, a) : null;
|
|
1254
|
-
},
|
|
1255
|
+
}, Vn = (e, t, n) => {
|
|
1255
1256
|
const { url: o } = n;
|
|
1256
1257
|
if (!o) return null;
|
|
1257
1258
|
const s = Ae(o) ? o : o.del || o.restful;
|
|
@@ -1302,15 +1303,15 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1302
1303
|
const o = le(e, !0);
|
|
1303
1304
|
return n.forEach((s) => {
|
|
1304
1305
|
const r = o[s.field];
|
|
1305
|
-
r && s.itemRender.startField ? (o[s.itemRender.startField] =
|
|
1306
|
+
r && s.itemRender.startField ? (o[s.itemRender.startField] = Ce(
|
|
1306
1307
|
o[s.itemRender.startField],
|
|
1307
1308
|
rn
|
|
1308
|
-
), o[s.itemRender.endField] =
|
|
1309
|
+
), o[s.itemRender.endField] = Ce(
|
|
1309
1310
|
o[s.itemRender.endField],
|
|
1310
1311
|
an
|
|
1311
|
-
)) : r && (o[`${s.field}From`] =
|
|
1312
|
+
)) : r && (o[`${s.field}From`] = Ce(r[0], rn), o[`${s.field}To`] = Ce(r[1], an)), delete o[s.field];
|
|
1312
1313
|
}), o;
|
|
1313
|
-
}, Ht = () => be.get(sn) ? JSON.parse(be.get(sn)) : {},
|
|
1314
|
+
}, Ht = () => be.get(sn) ? JSON.parse(be.get(sn)) : {}, Vs = [
|
|
1314
1315
|
{
|
|
1315
1316
|
code: "insert_actived",
|
|
1316
1317
|
name: "add",
|
|
@@ -1394,7 +1395,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1394
1395
|
let r = le(n.buttons || [], !0);
|
|
1395
1396
|
r.forEach((l, c) => {
|
|
1396
1397
|
l.sort = l.sort || c + 10;
|
|
1397
|
-
}), (n.mode !== "form" ? le(
|
|
1398
|
+
}), (n.mode !== "form" ? le(Vs, !0) : le(qs, !0)).reverse().forEach((l) => {
|
|
1398
1399
|
!r.some((c) => c.code === l.code) && r.unshift(l), n.authPrefix && !["printer", "export"].includes(l.auth) && (l.auth = n.authPrefix + l.auth.slice(0, 1).toLocaleUpperCase() + l.auth.slice(1).toLocaleLowerCase());
|
|
1399
1400
|
}), r = Ln(r, t.auth).filter((l) => {
|
|
1400
1401
|
var v;
|
|
@@ -1500,8 +1501,8 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1500
1501
|
const n = e, o = Re(), s = o.appContext.config.globalProperties.$serviceApi, r = o.appContext.config.globalProperties.$hasAuthority, i = Fn(), { t: a } = Pe();
|
|
1501
1502
|
console.log("view ======", n.view);
|
|
1502
1503
|
const p = N(null), u = N(""), l = N(!1), c = N(!1), v = N(!1), y = N(!1), b = N(!0), _ = N({}), m = be.get("loginer");
|
|
1503
|
-
let
|
|
1504
|
-
const R = N([]),
|
|
1504
|
+
let C, x, E;
|
|
1505
|
+
const R = N([]), z = xe(() => n.items.length ? Be(U(), a) : {}), B = xe(() => n.items.length ? Vt(U(), "update") : n.items), U = () => {
|
|
1505
1506
|
const P = [
|
|
1506
1507
|
{ field: "title", title: "方案名称", required: !0 },
|
|
1507
1508
|
{
|
|
@@ -1512,11 +1513,11 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1512
1513
|
];
|
|
1513
1514
|
return P.push(...le(n.items, !0)), P.filter((M) => M.field !== "dataFlat");
|
|
1514
1515
|
}, J = (P) => {
|
|
1515
|
-
|
|
1516
|
+
x = null;
|
|
1516
1517
|
const M = P.select;
|
|
1517
1518
|
R.value.forEach((X) => {
|
|
1518
1519
|
X.select = !1;
|
|
1519
|
-
}), P.select = !M, b.value = M,
|
|
1520
|
+
}), P.select = !M, b.value = M, x = M ? x : P, P.id === "add" && (b.value = !0, w());
|
|
1520
1521
|
}, w = () => {
|
|
1521
1522
|
_.value = { isPrivate: "Y", item: {} }, c.value = !0;
|
|
1522
1523
|
}, A = (P, M) => {
|
|
@@ -1525,14 +1526,14 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1525
1526
|
isPrivate: P.isPrivate,
|
|
1526
1527
|
item: P,
|
|
1527
1528
|
...P.content
|
|
1528
|
-
},
|
|
1529
|
+
}, C = M, c.value = !0;
|
|
1529
1530
|
}, O = () => {
|
|
1530
1531
|
p.value.validate(async (P) => {
|
|
1531
1532
|
if (!P) {
|
|
1532
1533
|
const M = d();
|
|
1533
1534
|
y.value = !0;
|
|
1534
1535
|
const X = M.id ? "put" : "post", [Q, S] = await qt(s[X](Rt, [M]));
|
|
1535
|
-
y.value = !1, Q || (S[0].select = !1, S[0].content = JSON.parse(S[0].content), X === "post" ? R.value.splice(R.value.length - 1, 0, S[0]) : R.value.splice(
|
|
1536
|
+
y.value = !1, Q || (S[0].select = !1, S[0].content = JSON.parse(S[0].content), X === "post" ? R.value.splice(R.value.length - 1, 0, S[0]) : R.value.splice(C, 1, S[0]), E = le(R.value, !0), ut(), c.value = !1);
|
|
1536
1537
|
}
|
|
1537
1538
|
});
|
|
1538
1539
|
}, L = () => {
|
|
@@ -1548,7 +1549,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1548
1549
|
v.value = !1;
|
|
1549
1550
|
});
|
|
1550
1551
|
}, T = () => {
|
|
1551
|
-
se("search",
|
|
1552
|
+
se("search", x.content), h();
|
|
1552
1553
|
}, h = () => {
|
|
1553
1554
|
c.value ? (_.value = {}, c.value = !1) : (l.value = !1, se("close"));
|
|
1554
1555
|
}, d = () => {
|
|
@@ -1562,10 +1563,10 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1562
1563
|
userName: m
|
|
1563
1564
|
};
|
|
1564
1565
|
delete P.title, delete P.isPrivate, delete P.item;
|
|
1565
|
-
const
|
|
1566
|
+
const V = {};
|
|
1566
1567
|
for (const G in P)
|
|
1567
|
-
P[G] && (
|
|
1568
|
-
return S.content = JSON.stringify(
|
|
1568
|
+
P[G] && (V[G] = P[G]);
|
|
1569
|
+
return S.content = JSON.stringify(V), S;
|
|
1569
1570
|
}, f = (P) => {
|
|
1570
1571
|
P.forEach((M) => {
|
|
1571
1572
|
M.select = !1, M.content = JSON.parse(M.content);
|
|
@@ -1574,9 +1575,9 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1574
1575
|
var X;
|
|
1575
1576
|
return (X = B.value.find((Q) => Q.field === P)) == null ? void 0 : X.title;
|
|
1576
1577
|
}, H = (P, M) => {
|
|
1577
|
-
var Q, S,
|
|
1578
|
+
var Q, S, V, G, re;
|
|
1578
1579
|
const X = (Q = n.items) == null ? void 0 : Q.find((q) => q.field === P);
|
|
1579
|
-
return (S = X == null ? void 0 : X.itemRender) != null && S.dictCode && ((re = (G = (
|
|
1580
|
+
return (S = X == null ? void 0 : X.itemRender) != null && S.dictCode && ((re = (G = (V = X == null ? void 0 : X.itemRender) == null ? void 0 : V.options) == null ? void 0 : G.find((q) => q.dictCode === M)) == null ? void 0 : re.dictName) || M;
|
|
1580
1581
|
}, ce = async (P, M) => {
|
|
1581
1582
|
if (await Te.modal.confirm(
|
|
1582
1583
|
`继续操作将删除查询方案【${P.title}】`
|
|
@@ -1603,7 +1604,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1603
1604
|
return et(() => {
|
|
1604
1605
|
l.value = !0;
|
|
1605
1606
|
}), (P, M) => {
|
|
1606
|
-
const X = j("el-popover"), Q = j("el-scrollbar"), S = j("vxe-input"),
|
|
1607
|
+
const X = j("el-popover"), Q = j("el-scrollbar"), S = j("vxe-input"), V = j("ut-button"), G = j("vxe-modal"), re = j("vxe-form");
|
|
1607
1608
|
return D(), I("div", Js, [
|
|
1608
1609
|
F(G, {
|
|
1609
1610
|
modelValue: l.value,
|
|
@@ -1639,7 +1640,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1639
1640
|
(D(!0), I(ve, null, ge(R.value, (q, _e) => (D(), I("div", {
|
|
1640
1641
|
key: q.id,
|
|
1641
1642
|
class: "card",
|
|
1642
|
-
style:
|
|
1643
|
+
style: Ve({ width: R.value.length === 1 ? "100%" : "" }),
|
|
1643
1644
|
onClick: ($e) => J(q)
|
|
1644
1645
|
}, [
|
|
1645
1646
|
q.id !== "add" ? (D(), I("div", {
|
|
@@ -1696,19 +1697,19 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1696
1697
|
onKeydown: oe,
|
|
1697
1698
|
onClear: K
|
|
1698
1699
|
}, null, 8, ["modelValue"]),
|
|
1699
|
-
F(
|
|
1700
|
+
F(V, {
|
|
1700
1701
|
content: "reset",
|
|
1701
1702
|
status: "info",
|
|
1702
1703
|
icon: "ri-refresh-line",
|
|
1703
1704
|
onTap: M[1] || (M[1] = (q) => K())
|
|
1704
1705
|
}),
|
|
1705
|
-
F(
|
|
1706
|
+
F(V, {
|
|
1706
1707
|
content: "cancel",
|
|
1707
1708
|
status: "warning",
|
|
1708
1709
|
icon: "ri-close-line",
|
|
1709
1710
|
onTap: M[2] || (M[2] = (q) => h())
|
|
1710
1711
|
}),
|
|
1711
|
-
F(
|
|
1712
|
+
F(V, {
|
|
1712
1713
|
disabled: b.value,
|
|
1713
1714
|
content: "confirm",
|
|
1714
1715
|
icon: "ri-save-3-line",
|
|
@@ -1734,20 +1735,20 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1734
1735
|
ref: p,
|
|
1735
1736
|
data: _.value,
|
|
1736
1737
|
items: B.value,
|
|
1737
|
-
rules:
|
|
1738
|
+
rules: z.value,
|
|
1738
1739
|
"title-align": "right",
|
|
1739
1740
|
"title-width": 90
|
|
1740
1741
|
}, null, 8, ["data", "items", "rules"])
|
|
1741
1742
|
]),
|
|
1742
1743
|
footer: Y(() => [
|
|
1743
1744
|
k("div", pr, [
|
|
1744
|
-
F(
|
|
1745
|
+
F(V, {
|
|
1745
1746
|
content: "cancel",
|
|
1746
1747
|
status: "warning",
|
|
1747
1748
|
icon: "ri-close-line",
|
|
1748
1749
|
onTap: M[6] || (M[6] = (q) => h())
|
|
1749
1750
|
}),
|
|
1750
|
-
F(
|
|
1751
|
+
F(V, {
|
|
1751
1752
|
content: "confirm",
|
|
1752
1753
|
icon: "ri-save-3-line",
|
|
1753
1754
|
onTap: O
|
|
@@ -1782,23 +1783,23 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1782
1783
|
icon: "vxe-icon-setting",
|
|
1783
1784
|
name: "favorite",
|
|
1784
1785
|
events: {
|
|
1785
|
-
click: (S,
|
|
1786
|
-
|
|
1786
|
+
click: (S, V) => {
|
|
1787
|
+
V.name === "favorite" && (b.value = !0);
|
|
1787
1788
|
}
|
|
1788
1789
|
}
|
|
1789
|
-
}, m = () => c.columns.length ? Be(c.columns, v) : {},
|
|
1790
|
+
}, m = () => c.columns.length ? Be(c.columns, v) : {}, C = () => {
|
|
1790
1791
|
const S = c.columns;
|
|
1791
1792
|
if (o.gridId) {
|
|
1792
1793
|
const G = Hs.filter((q) => !S.some((_e) => _e.field === q.field)).map((q) => (o.format && ["lastUpdateDate", "creationDate"].includes(q.field) && (q.formatter = o.format, q.width = 90), q)), re = S.findIndex((q) => q.field === "operate");
|
|
1793
1794
|
re !== -1 ? S.splice(re, 0, ...G) : S.push(...G);
|
|
1794
1795
|
}
|
|
1795
|
-
const
|
|
1796
|
-
return Mn(
|
|
1796
|
+
const V = o.gridId ? R(S) : S;
|
|
1797
|
+
return Mn(V, o.sortable);
|
|
1797
1798
|
};
|
|
1798
1799
|
on.getItem(cn).then((S) => {
|
|
1799
|
-
s = S,
|
|
1800
|
+
s = S, x.columns = C();
|
|
1800
1801
|
});
|
|
1801
|
-
const
|
|
1802
|
+
const x = Ze({
|
|
1802
1803
|
border: !0,
|
|
1803
1804
|
pagerConfig: { pageSize: o.pageSize || 20 },
|
|
1804
1805
|
editConfig: {},
|
|
@@ -1823,8 +1824,8 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1823
1824
|
// 接收 Promise
|
|
1824
1825
|
ajax: {
|
|
1825
1826
|
queryAll: ({ form: S }) => jn(c, p, S),
|
|
1826
|
-
query: ({ page: S, form:
|
|
1827
|
-
delete: ({ body: { removeRecords: S } }) =>
|
|
1827
|
+
query: ({ page: S, form: V }) => zn(c, V, S, p, l),
|
|
1828
|
+
delete: ({ body: { removeRecords: S } }) => Vn(p, S, c),
|
|
1828
1829
|
save: ({ body: S }) => Promise.all(qn(p, S, c)),
|
|
1829
1830
|
querySuccess: ({ response: S }) => T("querySuccess", S),
|
|
1830
1831
|
queryError: ({ response: S }) => T("queryError", S),
|
|
@@ -1834,82 +1835,82 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1834
1835
|
saveError: ({ response: S }) => T("saveError", S)
|
|
1835
1836
|
}
|
|
1836
1837
|
},
|
|
1837
|
-
columns: o.gridId ? [] :
|
|
1838
|
+
columns: o.gridId ? [] : C()
|
|
1838
1839
|
}), E = () => c.items.length ? Nn(
|
|
1839
1840
|
le(c.items, !0),
|
|
1840
1841
|
u && c.url ? _ : u,
|
|
1841
1842
|
o == null ? void 0 : o.hiddenReset
|
|
1842
1843
|
) : c.items;
|
|
1843
1844
|
function R(S) {
|
|
1844
|
-
const
|
|
1845
|
-
return
|
|
1845
|
+
const V = s ? s[o.gridId] : {};
|
|
1846
|
+
return V ? S.map((G, re) => {
|
|
1846
1847
|
const q = (re + 1) * 10;
|
|
1847
|
-
return G._sort =
|
|
1848
|
+
return G._sort = V[G.field] || q, r[G.field] = G._sort, G;
|
|
1848
1849
|
}).sort((G, re) => G._sort - re._sort) : S;
|
|
1849
1850
|
}
|
|
1850
|
-
const
|
|
1851
|
-
c.items.length && (
|
|
1851
|
+
const z = () => {
|
|
1852
|
+
c.items.length && (x.formConfig = {
|
|
1852
1853
|
titleWidth: 100,
|
|
1853
1854
|
titleAlign: "right",
|
|
1854
1855
|
items: E(),
|
|
1855
1856
|
rules: Be(c.items, v),
|
|
1856
1857
|
validConfig: { showMessage: !1 }
|
|
1857
1858
|
});
|
|
1858
|
-
const S = Yn(
|
|
1859
|
-
Object.assign(
|
|
1859
|
+
const S = Yn(x, c, o, a);
|
|
1860
|
+
Object.assign(x, S), o.gridId && (x.id = o.gridId, x.customConfig = {
|
|
1860
1861
|
storage: !0,
|
|
1861
1862
|
mode: "popup",
|
|
1862
|
-
checkMethod({ column:
|
|
1863
|
-
return !(
|
|
1863
|
+
checkMethod({ column: V }) {
|
|
1864
|
+
return !(V.field === "operate" || ["checkbox", "radio"].includes(V.type));
|
|
1864
1865
|
},
|
|
1865
1866
|
modalOptions: {
|
|
1866
1867
|
width: 750,
|
|
1867
1868
|
height: "75%"
|
|
1868
1869
|
}
|
|
1869
|
-
}), o.mergeFooter && (
|
|
1870
|
+
}), o.mergeFooter && (x.showFooter = !0, x.footerMethod = ({ columns: V, data: G }) => Jn({ columns: V, data: G }, o.mergeFooter)), o != null && o.pagerConfig && (x.pagerConfig = o.pagerConfig);
|
|
1870
1871
|
}, B = () => {
|
|
1871
1872
|
y.value.commitProxy("query");
|
|
1872
|
-
}, U = () => (
|
|
1873
|
-
|
|
1873
|
+
}, U = () => (x.editRules = m(), y.value.refreshColumn()), J = () => {
|
|
1874
|
+
x.loading = !0;
|
|
1874
1875
|
}, w = () => {
|
|
1875
|
-
|
|
1876
|
+
x.loading = !1;
|
|
1876
1877
|
}, A = () => An(y.value), O = () => y.value.getTableData().fullData, L = (S = !1) => {
|
|
1877
|
-
const
|
|
1878
|
-
return
|
|
1879
|
-
}, T = (S,
|
|
1880
|
-
o != null && o.callback && (o != null && o.callback[S]) && (o == null || o.callback[S](
|
|
1878
|
+
const V = c.columns[0].type, G = V === "radio" ? y.value.getRadioRecord(S) : y.value.getCheckboxRecords(S);
|
|
1879
|
+
return V === "checkbox" && !G.length ? (Me(v("message.tip_selectedRecord")), []) : V === "radio" && !G ? (Me(v("message.tip_selectedRecord")), null) : G;
|
|
1880
|
+
}, T = (S, V) => {
|
|
1881
|
+
o != null && o.callback && (o != null && o.callback[S]) && (o == null || o.callback[S](V));
|
|
1881
1882
|
}, h = ({ data: S }) => {
|
|
1882
|
-
const
|
|
1883
|
+
const V = c.items.filter((G) => {
|
|
1883
1884
|
var re, q;
|
|
1884
1885
|
return (q = (re = G.itemRender) == null ? void 0 : re.props) == null ? void 0 : q.multiple;
|
|
1885
1886
|
});
|
|
1886
|
-
|
|
1887
|
+
V.forEach((G) => {
|
|
1887
1888
|
G.itemRender.props.defaultValue ? S[`_${G.field}`] = G.itemRender.props.defaultValue.split(",") : S[`_${G.field}`] = [];
|
|
1888
|
-
}),
|
|
1889
|
+
}), V.length && setTimeout(() => {
|
|
1889
1890
|
B();
|
|
1890
1891
|
}, 200);
|
|
1891
1892
|
};
|
|
1892
1893
|
let d;
|
|
1893
1894
|
const f = () => {
|
|
1894
1895
|
const S = y.value;
|
|
1895
|
-
d =
|
|
1896
|
+
d = Vo.create(
|
|
1896
1897
|
S.$el.querySelector(".vxe-table--header .vxe-header--row"),
|
|
1897
1898
|
{
|
|
1898
1899
|
disabled: !o.gridId,
|
|
1899
1900
|
handle: ".vxe-header--column",
|
|
1900
|
-
onEnd: async (
|
|
1901
|
-
const G =
|
|
1902
|
-
let ot = !1,
|
|
1903
|
-
if ($o.fixed ? ot = !1 : re === 0 || ["checkbox", "radio"].includes(Xt.type) ? (
|
|
1901
|
+
onEnd: async (V) => {
|
|
1902
|
+
const G = V.item, re = V.newIndex, q = V.oldIndex, { fullColumn: _e, tableColumn: $e } = S.getTableColumn(), Le = G.parentNode, $o = _e[re], Xt = _e[q];
|
|
1903
|
+
let ot = !1, Ct = "固定列";
|
|
1904
|
+
if ($o.fixed ? ot = !1 : re === 0 || ["checkbox", "radio"].includes(Xt.type) ? (Ct = "勾选列", ot = !0) : (Xt.field === "operate" || re === _e.length - 1) && (ot = !0, Ct = "操作列"), ot) {
|
|
1904
1905
|
const Oe = Le.children[q];
|
|
1905
1906
|
return re > q ? Le.insertBefore(G, Oe) : Le.insertBefore(
|
|
1906
1907
|
G,
|
|
1907
1908
|
Oe && Oe.nextElementSibling
|
|
1908
|
-
), Lo(
|
|
1909
|
+
), Lo(Ct + "不允许拖动!");
|
|
1909
1910
|
}
|
|
1910
|
-
const
|
|
1911
|
+
const xt = S.getColumnIndex($e[q]), kt = S.getColumnIndex($e[re]), Qt = _e.splice(xt, 1)[0];
|
|
1911
1912
|
_e.splice(kt, 0, Qt);
|
|
1912
|
-
const Je = kt -
|
|
1913
|
+
const Je = kt - xt > 0 ? 1 : -1, Zt = (kt + 1) * 10, en = (xt + 1) * 10, tn = Zt + 1 * Je;
|
|
1913
1914
|
for (const Oe in r) {
|
|
1914
1915
|
const je = r[Oe];
|
|
1915
1916
|
(Je > 0 && je < tn && je > en || Je < 0 && je > tn && je < en) && (r[Oe] = je - 10 * Je);
|
|
@@ -1920,8 +1921,8 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1920
1921
|
);
|
|
1921
1922
|
}, $ = (S) => {
|
|
1922
1923
|
b.value = !1;
|
|
1923
|
-
const { form:
|
|
1924
|
-
Object.assign(
|
|
1924
|
+
const { form: V } = y.value.getProxyInfo();
|
|
1925
|
+
Object.assign(V, S), B();
|
|
1925
1926
|
};
|
|
1926
1927
|
t({
|
|
1927
1928
|
getTableData: O,
|
|
@@ -1932,10 +1933,10 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1932
1933
|
showLoading: J,
|
|
1933
1934
|
hiddenLoading: w,
|
|
1934
1935
|
reloadGrid: async () => {
|
|
1935
|
-
|
|
1936
|
+
x.editRules = m(), z();
|
|
1936
1937
|
},
|
|
1937
1938
|
setPagerConfig: (S) => {
|
|
1938
|
-
|
|
1939
|
+
x.pagerConfig = S;
|
|
1939
1940
|
}
|
|
1940
1941
|
});
|
|
1941
1942
|
const ue = ({ code: S }) => {
|
|
@@ -1952,7 +1953,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1952
1953
|
})();
|
|
1953
1954
|
}, M = () => {
|
|
1954
1955
|
let S = (o == null ? void 0 : o.height) || window.innerHeight - 90;
|
|
1955
|
-
o.mode !== "inline" && !(o != null && o.height) && (S = window.innerHeight - 180), window.innerHeight < 800 && (
|
|
1956
|
+
o.mode !== "inline" && !(o != null && o.height) && (S = window.innerHeight - 180), window.innerHeight < 800 && (x.height = 520), x.height = o.fixedHeight === !1 && S < 600 ? 600 : S;
|
|
1956
1957
|
};
|
|
1957
1958
|
let X;
|
|
1958
1959
|
De(() => {
|
|
@@ -1962,16 +1963,16 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1962
1963
|
}), Ao(() => {
|
|
1963
1964
|
clearTimeout(X), d && d.destroy();
|
|
1964
1965
|
}), pt(() => {
|
|
1965
|
-
|
|
1966
|
+
z(), Pn(o) && Io(x, o || {}), o != null && o.height && M(), P();
|
|
1966
1967
|
});
|
|
1967
1968
|
const Q = n;
|
|
1968
|
-
return (S,
|
|
1969
|
+
return (S, V) => {
|
|
1969
1970
|
const G = j("vxe-grid");
|
|
1970
1971
|
return D(), I("div", gr, [
|
|
1971
1972
|
F(G, we({
|
|
1972
1973
|
ref_key: "xgrid",
|
|
1973
1974
|
ref: y
|
|
1974
|
-
},
|
|
1975
|
+
}, x, { class: "ut-grid-wrapper" }, Bt(ee(o).events || {}), {
|
|
1975
1976
|
onToolbarButtonClick: ue,
|
|
1976
1977
|
onToolbarToolClick: ue,
|
|
1977
1978
|
onCellClick: oe,
|
|
@@ -1984,7 +1985,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
1984
1985
|
items: S.items,
|
|
1985
1986
|
view: ee(u),
|
|
1986
1987
|
onSearch: $,
|
|
1987
|
-
onClose:
|
|
1988
|
+
onClose: V[0] || (V[0] = (re) => b.value = !1)
|
|
1988
1989
|
}, null, 8, ["items", "view"])) : te("", !0)
|
|
1989
1990
|
]);
|
|
1990
1991
|
};
|
|
@@ -2008,16 +2009,16 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2008
2009
|
},
|
|
2009
2010
|
emits: ["close", "confirm"],
|
|
2010
2011
|
setup(e, { expose: t, emit: n }) {
|
|
2011
|
-
const o = e, s = Wt(jt()), r = N(!1), a = Re().appContext.config.globalProperties.$serviceApi, p =
|
|
2012
|
+
const o = e, s = Wt(jt()), r = N(!1), a = Re().appContext.config.globalProperties.$serviceApi, p = xe(() => o.items.length ? Be(o.items, u) : {}), { t: u } = Pe(), l = xe(() => o.items.length ? Vt(le(o.items, !0), o.dataStatus, 24) : o.items), c = N(!1), v = N(null), y = () => {
|
|
2012
2013
|
v.value.validate(async (B) => {
|
|
2013
2014
|
if (!B) {
|
|
2014
2015
|
const { record: U, url: J, method: w } = o;
|
|
2015
2016
|
if (J) {
|
|
2016
2017
|
b();
|
|
2017
2018
|
const A = s != null && s.dataProcessMethod ? s == null ? void 0 : s.dataProcessMethod(U) : U, [O, L] = await qt(a[w](J, A));
|
|
2018
|
-
_(), O || (ut(),
|
|
2019
|
+
_(), O || (ut(), z("confirm", L), x());
|
|
2019
2020
|
} else
|
|
2020
|
-
|
|
2021
|
+
z("confirm");
|
|
2021
2022
|
}
|
|
2022
2023
|
});
|
|
2023
2024
|
}, b = () => {
|
|
@@ -2026,22 +2027,22 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2026
2027
|
r.value = !1;
|
|
2027
2028
|
}, m = (B) => {
|
|
2028
2029
|
v.value.validate(B);
|
|
2029
|
-
},
|
|
2030
|
+
}, C = (B) => {
|
|
2030
2031
|
v.value.validate(B);
|
|
2031
|
-
},
|
|
2032
|
-
c.value = !1,
|
|
2032
|
+
}, x = () => {
|
|
2033
|
+
c.value = !1, z("close");
|
|
2033
2034
|
}, E = () => {
|
|
2034
2035
|
c.value = !0;
|
|
2035
2036
|
}, R = () => {
|
|
2036
|
-
|
|
2037
|
-
},
|
|
2037
|
+
x();
|
|
2038
|
+
}, z = n;
|
|
2038
2039
|
return t({
|
|
2039
2040
|
showLoading: b,
|
|
2040
2041
|
hiddenLoading: _,
|
|
2041
2042
|
openModal: E,
|
|
2042
2043
|
closeModal: R,
|
|
2043
2044
|
validate: m,
|
|
2044
|
-
validateForm:
|
|
2045
|
+
validateForm: C
|
|
2045
2046
|
}), pt(() => {
|
|
2046
2047
|
E();
|
|
2047
2048
|
}), (B, U) => {
|
|
@@ -2059,7 +2060,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2059
2060
|
"min-height": "300",
|
|
2060
2061
|
"destroy-on-close": "",
|
|
2061
2062
|
resize: ""
|
|
2062
|
-
}, B.modalOptions, { onClose:
|
|
2063
|
+
}, B.modalOptions, { onClose: x }), On({
|
|
2063
2064
|
default: Y(() => [
|
|
2064
2065
|
F(J, we({
|
|
2065
2066
|
ref_key: "xForm",
|
|
@@ -2086,7 +2087,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2086
2087
|
status: "warning",
|
|
2087
2088
|
content: ((L = B.modalOptions) == null ? void 0 : L.cancelButtonText) || "cancel",
|
|
2088
2089
|
icon: "ri-close-line",
|
|
2089
|
-
onTap:
|
|
2090
|
+
onTap: x
|
|
2090
2091
|
}, null, 8, ["content"])) : te("", !0),
|
|
2091
2092
|
He(B.$slots, "default"),
|
|
2092
2093
|
((T = ee(s)) == null ? void 0 : T.showConfirmButton) !== !1 ? (D(), ie(w, {
|
|
@@ -2104,10 +2105,10 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2104
2105
|
]);
|
|
2105
2106
|
};
|
|
2106
2107
|
}
|
|
2107
|
-
}), _r = pe(wr),
|
|
2108
|
+
}), _r = pe(wr), Cr = {
|
|
2108
2109
|
name: "UtModalGrid"
|
|
2109
|
-
},
|
|
2110
|
-
...
|
|
2110
|
+
}, xr = /* @__PURE__ */ ne({
|
|
2111
|
+
...Cr,
|
|
2111
2112
|
props: {
|
|
2112
2113
|
checkMethod: {},
|
|
2113
2114
|
columns: { default: () => [] },
|
|
@@ -2150,8 +2151,8 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2150
2151
|
autoLoad: s.autoLoad,
|
|
2151
2152
|
ajax: {
|
|
2152
2153
|
queryAll: ({ form: d }) => jn(s, u, d),
|
|
2153
|
-
query: ({ page: d, form: f }) =>
|
|
2154
|
-
delete: ({ body: { removeRecords: d } }) =>
|
|
2154
|
+
query: ({ page: d, form: f }) => zn(s, f, d, u, l),
|
|
2155
|
+
delete: ({ body: { removeRecords: d } }) => Vn(u, d, s),
|
|
2155
2156
|
save: ({ body: d }) => Promise.all(qn(u, d, s)),
|
|
2156
2157
|
querySuccess: (d) => m("querySuccess", d),
|
|
2157
2158
|
queryError: (d) => m("queryError", d),
|
|
@@ -2169,7 +2170,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2169
2170
|
...s.gridOptions
|
|
2170
2171
|
}), m = (d, f) => {
|
|
2171
2172
|
o != null && o.callback && (o != null && o.callback[d]) && (o == null || o.callback[d](f));
|
|
2172
|
-
},
|
|
2173
|
+
}, C = async () => {
|
|
2173
2174
|
let d = null;
|
|
2174
2175
|
const f = s.columns[0].type;
|
|
2175
2176
|
if (f === "checkbox" ? d = i.value.getCheckboxRecords() : f === "radio" ? d = i.value.getRadioRecord() : d = i.value.getTableData().fullData, f === "checkbox" && !d.length && !s.addChild)
|
|
@@ -2188,11 +2189,11 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2188
2189
|
}
|
|
2189
2190
|
} else
|
|
2190
2191
|
s.autoClose && L(), O("confirm", d);
|
|
2191
|
-
},
|
|
2192
|
+
}, x = () => {
|
|
2192
2193
|
i.value.commitProxy("query");
|
|
2193
2194
|
}, E = () => {
|
|
2194
2195
|
_.editRules = b(), i.value.refreshColumn();
|
|
2195
|
-
}, R = () => An(i.value),
|
|
2196
|
+
}, R = () => An(i.value), z = ({ row: d }) => {
|
|
2196
2197
|
const f = s.columns[0].type;
|
|
2197
2198
|
f === "checkbox" ? i.value.setCheckboxRow(d, !0) : f === "radio" && i.value.setRadioRow(d);
|
|
2198
2199
|
}, B = (d) => {
|
|
@@ -2220,7 +2221,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2220
2221
|
Object.assign(_, d), o.mergeFooter && (_.showFooter = !0, _.footerMethod = ({ columns: f, data: $ }) => Jn({ columns: f, data: $ }, o.mergeFooter));
|
|
2221
2222
|
};
|
|
2222
2223
|
return t({
|
|
2223
|
-
refreshData:
|
|
2224
|
+
refreshData: x,
|
|
2224
2225
|
refreshColumn: E,
|
|
2225
2226
|
getInstance: R,
|
|
2226
2227
|
showLoading: J,
|
|
@@ -2255,7 +2256,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2255
2256
|
onEditActivated: B,
|
|
2256
2257
|
onToolbarButtonClick: U,
|
|
2257
2258
|
onToolbarToolClick: U,
|
|
2258
|
-
onCellClick:
|
|
2259
|
+
onCellClick: z
|
|
2259
2260
|
}), null, 16)
|
|
2260
2261
|
]),
|
|
2261
2262
|
footer: Y(() => [
|
|
@@ -2269,7 +2270,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2269
2270
|
F(H, {
|
|
2270
2271
|
icon: "ri-save-3-line",
|
|
2271
2272
|
content: "confirm",
|
|
2272
|
-
onTap:
|
|
2273
|
+
onTap: C
|
|
2273
2274
|
})
|
|
2274
2275
|
]),
|
|
2275
2276
|
_: 3
|
|
@@ -2279,7 +2280,7 @@ const Ln = (e, t) => (e.forEach((n) => {
|
|
|
2279
2280
|
]);
|
|
2280
2281
|
};
|
|
2281
2282
|
}
|
|
2282
|
-
}), kr = pe(
|
|
2283
|
+
}), kr = pe(xr);
|
|
2283
2284
|
function Gn(e, t) {
|
|
2284
2285
|
return function() {
|
|
2285
2286
|
return e.apply(t, arguments);
|
|
@@ -2340,9 +2341,9 @@ function Dt() {
|
|
|
2340
2341
|
arguments[o] && tt(arguments[o], n);
|
|
2341
2342
|
return t;
|
|
2342
2343
|
}
|
|
2343
|
-
const
|
|
2344
|
+
const zr = (e, t, n, { allOwnKeys: o } = {}) => (tt(t, (s, r) => {
|
|
2344
2345
|
n && me(s) ? e[r] = Gn(s, n) : e[r] = s;
|
|
2345
|
-
}, { allOwnKeys: o }), e),
|
|
2346
|
+
}, { allOwnKeys: o }), e), Vr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), qr = (e, t, n, o) => {
|
|
2346
2347
|
e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
2347
2348
|
value: t.prototype
|
|
2348
2349
|
}), n && Object.assign(e.prototype, n);
|
|
@@ -2471,9 +2472,9 @@ const ri = (e) => {
|
|
|
2471
2472
|
isFileList: Pr,
|
|
2472
2473
|
forEach: tt,
|
|
2473
2474
|
merge: Dt,
|
|
2474
|
-
extend:
|
|
2475
|
+
extend: zr,
|
|
2475
2476
|
trim: jr,
|
|
2476
|
-
stripBOM:
|
|
2477
|
+
stripBOM: Vr,
|
|
2477
2478
|
inherits: qr,
|
|
2478
2479
|
toFlatObject: Hr,
|
|
2479
2480
|
kindOf: gt,
|
|
@@ -2593,12 +2594,12 @@ function bt(e, t, n) {
|
|
|
2593
2594
|
return g.isArrayBuffer(b) || g.isTypedArray(b) ? p && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
|
|
2594
2595
|
}
|
|
2595
2596
|
function l(b, _, m) {
|
|
2596
|
-
let
|
|
2597
|
+
let C = b;
|
|
2597
2598
|
if (b && !m && typeof b == "object") {
|
|
2598
2599
|
if (g.endsWith(_, "{}"))
|
|
2599
2600
|
_ = o ? _ : _.slice(0, -2), b = JSON.stringify(b);
|
|
2600
|
-
else if (g.isArray(b) && di(b) || (g.isFileList(b) || g.endsWith(_, "[]")) && (
|
|
2601
|
-
return _ = io(_),
|
|
2601
|
+
else if (g.isArray(b) && di(b) || (g.isFileList(b) || g.endsWith(_, "[]")) && (C = g.toArray(b)))
|
|
2602
|
+
return _ = io(_), C.forEach(function(E, R) {
|
|
2602
2603
|
!(g.isUndefined(E) || E === null) && t.append(
|
|
2603
2604
|
// eslint-disable-next-line no-nested-ternary
|
|
2604
2605
|
i === !0 ? dn([_], R, r) : i === null ? _ : _ + "[]",
|
|
@@ -2617,14 +2618,14 @@ function bt(e, t, n) {
|
|
|
2617
2618
|
if (!g.isUndefined(b)) {
|
|
2618
2619
|
if (c.indexOf(b) !== -1)
|
|
2619
2620
|
throw Error("Circular reference detected in " + _.join("."));
|
|
2620
|
-
c.push(b), g.forEach(b, function(
|
|
2621
|
-
(!(g.isUndefined(
|
|
2621
|
+
c.push(b), g.forEach(b, function(C, x) {
|
|
2622
|
+
(!(g.isUndefined(C) || C === null) && s.call(
|
|
2622
2623
|
t,
|
|
2623
|
-
|
|
2624
|
-
g.isString(
|
|
2624
|
+
C,
|
|
2625
|
+
g.isString(x) ? x.trim() : x,
|
|
2625
2626
|
_,
|
|
2626
2627
|
v
|
|
2627
|
-
)) === !0 && y(
|
|
2628
|
+
)) === !0 && y(C, _ ? _.concat(x) : [x]);
|
|
2628
2629
|
}), c.pop();
|
|
2629
2630
|
}
|
|
2630
2631
|
}
|
|
@@ -2757,14 +2758,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", wi
|
|
|
2757
2758
|
..._i,
|
|
2758
2759
|
...yi
|
|
2759
2760
|
};
|
|
2760
|
-
function
|
|
2761
|
+
function Ci(e, t) {
|
|
2761
2762
|
return bt(e, new de.classes.URLSearchParams(), Object.assign({
|
|
2762
2763
|
visitor: function(n, o, s, r) {
|
|
2763
2764
|
return de.isNode && g.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
2764
2765
|
}
|
|
2765
2766
|
}, t));
|
|
2766
2767
|
}
|
|
2767
|
-
function
|
|
2768
|
+
function xi(e) {
|
|
2768
2769
|
return g.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
2769
2770
|
}
|
|
2770
2771
|
function ki(e) {
|
|
@@ -2786,7 +2787,7 @@ function uo(e) {
|
|
|
2786
2787
|
if (g.isFormData(e) && g.isFunction(e.entries)) {
|
|
2787
2788
|
const n = {};
|
|
2788
2789
|
return g.forEachEntry(e, (o, s) => {
|
|
2789
|
-
t(
|
|
2790
|
+
t(xi(o), s, n, 0);
|
|
2790
2791
|
}), n;
|
|
2791
2792
|
}
|
|
2792
2793
|
return null;
|
|
@@ -2817,7 +2818,7 @@ const nt = {
|
|
|
2817
2818
|
let a;
|
|
2818
2819
|
if (r) {
|
|
2819
2820
|
if (o.indexOf("application/x-www-form-urlencoded") > -1)
|
|
2820
|
-
return
|
|
2821
|
+
return Ci(t, this.formSerializer).toString();
|
|
2821
2822
|
if ((a = g.isFileList(t)) || o.indexOf("multipart/form-data") > -1) {
|
|
2822
2823
|
const p = this.env && this.env.FormData;
|
|
2823
2824
|
return bt(
|
|
@@ -3292,12 +3293,12 @@ const ho = (e) => {
|
|
|
3292
3293
|
}
|
|
3293
3294
|
let m = new XMLHttpRequest();
|
|
3294
3295
|
m.open(s.method.toUpperCase(), s.url, !0), m.timeout = s.timeout;
|
|
3295
|
-
function
|
|
3296
|
+
function C() {
|
|
3296
3297
|
if (!m)
|
|
3297
3298
|
return;
|
|
3298
3299
|
const E = he.from(
|
|
3299
3300
|
"getAllResponseHeaders" in m && m.getAllResponseHeaders()
|
|
3300
|
-
),
|
|
3301
|
+
), z = {
|
|
3301
3302
|
data: !a || a === "text" || a === "json" ? m.responseText : m.response,
|
|
3302
3303
|
status: m.status,
|
|
3303
3304
|
statusText: m.statusText,
|
|
@@ -3309,31 +3310,31 @@ const ho = (e) => {
|
|
|
3309
3310
|
n(U), _();
|
|
3310
3311
|
}, function(U) {
|
|
3311
3312
|
o(U), _();
|
|
3312
|
-
},
|
|
3313
|
+
}, z), m = null;
|
|
3313
3314
|
}
|
|
3314
|
-
"onloadend" in m ? m.onloadend =
|
|
3315
|
-
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
3315
|
+
"onloadend" in m ? m.onloadend = C : m.onreadystatechange = function() {
|
|
3316
|
+
!m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
3316
3317
|
}, m.onabort = function() {
|
|
3317
3318
|
m && (o(new W("Request aborted", W.ECONNABORTED, e, m)), m = null);
|
|
3318
3319
|
}, m.onerror = function() {
|
|
3319
3320
|
o(new W("Network Error", W.ERR_NETWORK, e, m)), m = null;
|
|
3320
3321
|
}, m.ontimeout = function() {
|
|
3321
3322
|
let R = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
3322
|
-
const
|
|
3323
|
+
const z = s.transitional || co;
|
|
3323
3324
|
s.timeoutErrorMessage && (R = s.timeoutErrorMessage), o(new W(
|
|
3324
3325
|
R,
|
|
3325
|
-
|
|
3326
|
+
z.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
|
|
3326
3327
|
e,
|
|
3327
3328
|
m
|
|
3328
3329
|
)), m = null;
|
|
3329
|
-
}, r === void 0 && i.setContentType(null), "setRequestHeader" in m && g.forEach(i.toJSON(), function(R,
|
|
3330
|
-
m.setRequestHeader(
|
|
3330
|
+
}, r === void 0 && i.setContentType(null), "setRequestHeader" in m && g.forEach(i.toJSON(), function(R, z) {
|
|
3331
|
+
m.setRequestHeader(z, R);
|
|
3331
3332
|
}), g.isUndefined(s.withCredentials) || (m.withCredentials = !!s.withCredentials), a && a !== "json" && (m.responseType = s.responseType), u && ([v, b] = dt(u, !0), m.addEventListener("progress", v)), p && m.upload && ([c, y] = dt(p), m.upload.addEventListener("progress", c), m.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (E) => {
|
|
3332
3333
|
m && (o(!E || E.type ? new Ye(null, e, m) : E), m.abort(), m = null);
|
|
3333
3334
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
3334
|
-
const
|
|
3335
|
-
if (
|
|
3336
|
-
o(new W("Unsupported protocol " +
|
|
3335
|
+
const x = Ai(s.url);
|
|
3336
|
+
if (x && de.protocols.indexOf(x) === -1) {
|
|
3337
|
+
o(new W("Unsupported protocol " + x + ":", W.ERR_BAD_REQUEST, e));
|
|
3337
3338
|
return;
|
|
3338
3339
|
}
|
|
3339
3340
|
m.send(r || null);
|
|
@@ -3361,7 +3362,7 @@ const ho = (e) => {
|
|
|
3361
3362
|
const { signal: p } = o;
|
|
3362
3363
|
return p.unsubscribe = () => g.asap(a), p;
|
|
3363
3364
|
}
|
|
3364
|
-
},
|
|
3365
|
+
}, zi = function* (e, t) {
|
|
3365
3366
|
let n = e.byteLength;
|
|
3366
3367
|
if (n < t) {
|
|
3367
3368
|
yield e;
|
|
@@ -3370,9 +3371,9 @@ const ho = (e) => {
|
|
|
3370
3371
|
let o = 0, s;
|
|
3371
3372
|
for (; o < n; )
|
|
3372
3373
|
s = o + t, yield e.slice(o, s), o = s;
|
|
3373
|
-
},
|
|
3374
|
+
}, Vi = async function* (e, t) {
|
|
3374
3375
|
for await (const n of qi(e))
|
|
3375
|
-
yield*
|
|
3376
|
+
yield* zi(n, t);
|
|
3376
3377
|
}, qi = async function* (e) {
|
|
3377
3378
|
if (e[Symbol.asyncIterator]) {
|
|
3378
3379
|
yield* e;
|
|
@@ -3390,7 +3391,7 @@ const ho = (e) => {
|
|
|
3390
3391
|
await t.cancel();
|
|
3391
3392
|
}
|
|
3392
3393
|
}, vn = (e, t, n, o) => {
|
|
3393
|
-
const s =
|
|
3394
|
+
const s = Vi(e, t);
|
|
3394
3395
|
let r = 0, i, a = (p) => {
|
|
3395
3396
|
i || (i = !0, o && o(p));
|
|
3396
3397
|
};
|
|
@@ -3484,21 +3485,21 @@ const Yi = async (e) => {
|
|
|
3484
3485
|
let m;
|
|
3485
3486
|
try {
|
|
3486
3487
|
if (p && Wi && n !== "get" && n !== "head" && (m = await Ji(l, o)) !== 0) {
|
|
3487
|
-
let
|
|
3488
|
+
let z = new Request(t, {
|
|
3488
3489
|
method: "POST",
|
|
3489
3490
|
body: o,
|
|
3490
3491
|
duplex: "half"
|
|
3491
3492
|
}), B;
|
|
3492
|
-
if (g.isFormData(o) && (B =
|
|
3493
|
+
if (g.isFormData(o) && (B = z.headers.get("content-type")) && l.setContentType(B), z.body) {
|
|
3493
3494
|
const [U, J] = hn(
|
|
3494
3495
|
m,
|
|
3495
3496
|
dt(gn(p))
|
|
3496
3497
|
);
|
|
3497
|
-
o = vn(
|
|
3498
|
+
o = vn(z.body, bn, U, J);
|
|
3498
3499
|
}
|
|
3499
3500
|
}
|
|
3500
3501
|
g.isString(c) || (c = c ? "include" : "omit");
|
|
3501
|
-
const
|
|
3502
|
+
const C = "credentials" in Request.prototype;
|
|
3502
3503
|
b = new Request(t, {
|
|
3503
3504
|
...v,
|
|
3504
3505
|
signal: y,
|
|
@@ -3506,45 +3507,45 @@ const Yi = async (e) => {
|
|
|
3506
3507
|
headers: l.normalize().toJSON(),
|
|
3507
3508
|
body: o,
|
|
3508
3509
|
duplex: "half",
|
|
3509
|
-
credentials:
|
|
3510
|
+
credentials: C ? c : void 0
|
|
3510
3511
|
});
|
|
3511
|
-
let
|
|
3512
|
+
let x = await fetch(b);
|
|
3512
3513
|
const E = Ft && (u === "stream" || u === "response");
|
|
3513
3514
|
if (Ft && (a || E && _)) {
|
|
3514
|
-
const
|
|
3515
|
+
const z = {};
|
|
3515
3516
|
["status", "statusText", "headers"].forEach((w) => {
|
|
3516
|
-
|
|
3517
|
+
z[w] = x[w];
|
|
3517
3518
|
});
|
|
3518
|
-
const B = g.toFiniteNumber(
|
|
3519
|
+
const B = g.toFiniteNumber(x.headers.get("content-length")), [U, J] = a && hn(
|
|
3519
3520
|
B,
|
|
3520
3521
|
dt(gn(a), !0)
|
|
3521
3522
|
) || [];
|
|
3522
|
-
|
|
3523
|
-
vn(
|
|
3523
|
+
x = new Response(
|
|
3524
|
+
vn(x.body, bn, U, () => {
|
|
3524
3525
|
J && J(), _ && _();
|
|
3525
3526
|
}),
|
|
3526
|
-
|
|
3527
|
+
z
|
|
3527
3528
|
);
|
|
3528
3529
|
}
|
|
3529
3530
|
u = u || "text";
|
|
3530
|
-
let R = await ft[g.findKey(ft, u) || "text"](
|
|
3531
|
-
return !E && _ && _(), await new Promise((
|
|
3532
|
-
po(
|
|
3531
|
+
let R = await ft[g.findKey(ft, u) || "text"](x, e);
|
|
3532
|
+
return !E && _ && _(), await new Promise((z, B) => {
|
|
3533
|
+
po(z, B, {
|
|
3533
3534
|
data: R,
|
|
3534
|
-
headers: he.from(
|
|
3535
|
-
status:
|
|
3536
|
-
statusText:
|
|
3535
|
+
headers: he.from(x.headers),
|
|
3536
|
+
status: x.status,
|
|
3537
|
+
statusText: x.statusText,
|
|
3537
3538
|
config: e,
|
|
3538
3539
|
request: b
|
|
3539
3540
|
});
|
|
3540
3541
|
});
|
|
3541
|
-
} catch (
|
|
3542
|
-
throw _ && _(),
|
|
3542
|
+
} catch (C) {
|
|
3543
|
+
throw _ && _(), C && C.name === "TypeError" && /Load failed|fetch/i.test(C.message) ? Object.assign(
|
|
3543
3544
|
new W("Network Error", W.ERR_NETWORK, e, b),
|
|
3544
3545
|
{
|
|
3545
|
-
cause:
|
|
3546
|
+
cause: C.cause || C
|
|
3546
3547
|
}
|
|
3547
|
-
) : W.from(
|
|
3548
|
+
) : W.from(C, C && C.code, e, b);
|
|
3548
3549
|
}
|
|
3549
3550
|
}), Mt = {
|
|
3550
3551
|
http: ui,
|
|
@@ -3619,7 +3620,7 @@ const bo = "1.9.0", _t = {};
|
|
|
3619
3620
|
return typeof o === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
3620
3621
|
};
|
|
3621
3622
|
});
|
|
3622
|
-
const
|
|
3623
|
+
const Cn = {};
|
|
3623
3624
|
_t.transitional = function(t, n, o) {
|
|
3624
3625
|
function s(r, i) {
|
|
3625
3626
|
return "[Axios v" + bo + "] Transitional option '" + r + "'" + i + (o ? ". " + o : "");
|
|
@@ -3630,7 +3631,7 @@ _t.transitional = function(t, n, o) {
|
|
|
3630
3631
|
s(i, " has been removed" + (n ? " in " + n : "")),
|
|
3631
3632
|
W.ERR_DEPRECATED
|
|
3632
3633
|
);
|
|
3633
|
-
return n && !
|
|
3634
|
+
return n && !Cn[i] && (Cn[i] = !0, console.warn(
|
|
3634
3635
|
s(
|
|
3635
3636
|
i,
|
|
3636
3637
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -4026,7 +4027,7 @@ const {
|
|
|
4026
4027
|
J();
|
|
4027
4028
|
}
|
|
4028
4029
|
);
|
|
4029
|
-
const o = Re(), s = o.appContext.config.globalProperties.$url, r = o.appContext.config.globalProperties.$serviceApi, i = N(""), a = N(!1), p = ["image/gif", "image/jpeg", "image/png"], u = N(null), l =
|
|
4030
|
+
const o = Re(), s = o.appContext.config.globalProperties.$url, r = o.appContext.config.globalProperties.$serviceApi, i = N(""), a = N(!1), p = ["image/gif", "image/jpeg", "image/png"], u = N(null), l = xe(() => {
|
|
4030
4031
|
const A = be.get("authorized-token");
|
|
4031
4032
|
return {
|
|
4032
4033
|
Authorization: "Bearer " + JSON.parse(A).accessToken
|
|
@@ -4045,7 +4046,7 @@ const {
|
|
|
4045
4046
|
), b = (w, A, O) => {
|
|
4046
4047
|
const L = new FormData();
|
|
4047
4048
|
L.append("file", O);
|
|
4048
|
-
const T = `${n.filePath}/${
|
|
4049
|
+
const T = `${n.filePath}/${Ce(/* @__PURE__ */ new Date(), "yyyyMMdd")}`;
|
|
4049
4050
|
n.filePath && L.append("filePath", T);
|
|
4050
4051
|
const h = s + "/ufil/file/uploadMultipart";
|
|
4051
4052
|
return a.value = !0, ae.post(h, L, {
|
|
@@ -4074,11 +4075,11 @@ const {
|
|
|
4074
4075
|
Object.assign(n.record, { [A]: w.path });
|
|
4075
4076
|
}
|
|
4076
4077
|
console.log(n.record, v);
|
|
4077
|
-
},
|
|
4078
|
+
}, C = ({ option: w }) => {
|
|
4078
4079
|
if (n.remove)
|
|
4079
4080
|
return n.remove(w, v);
|
|
4080
4081
|
U("remove", w, v);
|
|
4081
|
-
},
|
|
4082
|
+
}, x = async (w, A) => {
|
|
4082
4083
|
w.id && await r.delete("/ufil/v1/attachment", [w]), v.value.splice(A, 1), U("remove", w, v);
|
|
4083
4084
|
}, E = (w) => {
|
|
4084
4085
|
Te.previewImage({ activeIndex: 0, urlList: [w.url] });
|
|
@@ -4126,7 +4127,7 @@ const {
|
|
|
4126
4127
|
break;
|
|
4127
4128
|
}
|
|
4128
4129
|
return O;
|
|
4129
|
-
},
|
|
4130
|
+
}, z = (w) => {
|
|
4130
4131
|
let A = n.size === "small" ? 10 : 9;
|
|
4131
4132
|
return ((T) => {
|
|
4132
4133
|
const h = T.lastIndexOf("."), d = h > 0 ? T.substring(0, h) : T, f = h > 0 ? T.substring(h) : "";
|
|
@@ -4182,12 +4183,12 @@ const {
|
|
|
4182
4183
|
}, null, 2),
|
|
4183
4184
|
k("div", {
|
|
4184
4185
|
class: "px-1 ut-image",
|
|
4185
|
-
style:
|
|
4186
|
-
}, Z(
|
|
4186
|
+
style: Ve({ fontSize: w.size === "small" ? "11px" : "10px" })
|
|
4187
|
+
}, Z(z(h)), 5)
|
|
4187
4188
|
]),
|
|
4188
4189
|
k("i", {
|
|
4189
4190
|
class: "vxe-icon-download ut-download-icon",
|
|
4190
|
-
style:
|
|
4191
|
+
style: Ve({ fontSize: w.renderMode === "item" ? "60px" : "48px" }),
|
|
4191
4192
|
onClick: (f) => B(h)
|
|
4192
4193
|
}, null, 12, aa)
|
|
4193
4194
|
])) : (D(), ie(O, {
|
|
@@ -4204,12 +4205,12 @@ const {
|
|
|
4204
4205
|
}, null, 2),
|
|
4205
4206
|
k("div", {
|
|
4206
4207
|
class: "px-1 ut-image",
|
|
4207
|
-
style:
|
|
4208
|
-
}, Z(
|
|
4208
|
+
style: Ve({ fontSize: w.size === "small" ? "11px" : "10px" })
|
|
4209
|
+
}, Z(z(h)), 5)
|
|
4209
4210
|
]),
|
|
4210
4211
|
k("i", {
|
|
4211
4212
|
class: "vxe-icon-download ut-download-icon",
|
|
4212
|
-
style:
|
|
4213
|
+
style: Ve({ fontSize: w.renderMode === "item" ? "60px" : "48px" }),
|
|
4213
4214
|
onClick: (f) => B(h)
|
|
4214
4215
|
}, null, 12, ua)
|
|
4215
4216
|
])
|
|
@@ -4221,7 +4222,7 @@ const {
|
|
|
4221
4222
|
k("div", fa, [
|
|
4222
4223
|
k("i", {
|
|
4223
4224
|
class: "vxe-icon-close",
|
|
4224
|
-
onClick: (f) =>
|
|
4225
|
+
onClick: (f) => x(h, d)
|
|
4225
4226
|
}, null, 8, pa)
|
|
4226
4227
|
])
|
|
4227
4228
|
])) : te("", !0)
|
|
@@ -4261,7 +4262,7 @@ const {
|
|
|
4261
4262
|
"image-types": w.imageTypes,
|
|
4262
4263
|
"auto-hidden-button": w.autoHiddenButton,
|
|
4263
4264
|
"show-error-status": w.showErrorStatus,
|
|
4264
|
-
"remove-method":
|
|
4265
|
+
"remove-method": C,
|
|
4265
4266
|
"upload-method": y,
|
|
4266
4267
|
multiple: w.multiple,
|
|
4267
4268
|
"show-download-button": w.showDownloadButton,
|
|
@@ -4272,7 +4273,7 @@ const {
|
|
|
4272
4273
|
]);
|
|
4273
4274
|
};
|
|
4274
4275
|
}
|
|
4275
|
-
}), wa = pe(ba), _a = { class: "selector w-full" },
|
|
4276
|
+
}), wa = pe(ba), _a = { class: "selector w-full" }, Ca = { class: "flex items-center pr-2" }, xa = { class: "flex flex-wrap px-2 ml-2" }, ka = ["title", "onClick"], Sa = { class: "w-full h-9 flex items-center overflow-auto border-t border-[#e5e7eb]" }, Ea = {
|
|
4276
4277
|
name: "UtIconSelect"
|
|
4277
4278
|
}, Ra = /* @__PURE__ */ ne({
|
|
4278
4279
|
...Ea,
|
|
@@ -4290,25 +4291,25 @@ const {
|
|
|
4290
4291
|
setup(e, { emit: t }) {
|
|
4291
4292
|
const n = e, o = t, s = N(!1), r = Fo(n, "modelValue"), i = N(Object.keys(jo.icons)), a = N("ri-"), p = N(), u = le(i.value, !0), l = N(35), c = N(1), v = N(0), y = N(""), b = () => {
|
|
4292
4293
|
p.value = "corner-down-right-fill", r.value && (p.value = r.value.split(":")[1]);
|
|
4293
|
-
}, _ =
|
|
4294
|
+
}, _ = xe(() => c.value === 1 ? u.filter((U) => U.includes(y.value)).slice(c.value - 1, l.value) : u.filter((U) => U.includes(y.value)).slice(
|
|
4294
4295
|
l.value * (c.value - 1),
|
|
4295
4296
|
l.value * (c.value - 1) + l.value
|
|
4296
|
-
)), m =
|
|
4297
|
+
)), m = xe(() => (U) => {
|
|
4297
4298
|
if (r.value === a.value + U)
|
|
4298
4299
|
return {
|
|
4299
4300
|
borderColor: "var(--el-color-primary)",
|
|
4300
4301
|
color: "var(--el-color-primary)"
|
|
4301
4302
|
};
|
|
4302
4303
|
});
|
|
4303
|
-
function
|
|
4304
|
+
function C(U) {
|
|
4304
4305
|
p.value = U, o("update:modelValue", E()), B();
|
|
4305
4306
|
}
|
|
4306
|
-
function
|
|
4307
|
+
function x(U) {
|
|
4307
4308
|
c.value = U;
|
|
4308
4309
|
}
|
|
4309
4310
|
const E = () => a.value === "ri-" ? "ri:" + p.value : a.value + p.value, R = () => {
|
|
4310
4311
|
p.value = "corner-down-right-fill", o("update:modelValue", "");
|
|
4311
|
-
},
|
|
4312
|
+
}, z = () => {
|
|
4312
4313
|
c.value === 1 ? v.value = u.filter(
|
|
4313
4314
|
(U) => U.includes(y.value)
|
|
4314
4315
|
).length : v.value = u.length;
|
|
@@ -4325,10 +4326,10 @@ const {
|
|
|
4325
4326
|
), Ge(
|
|
4326
4327
|
() => y.value,
|
|
4327
4328
|
() => {
|
|
4328
|
-
c.value = 1,
|
|
4329
|
+
c.value = 1, z();
|
|
4329
4330
|
}
|
|
4330
4331
|
), et(() => {
|
|
4331
|
-
|
|
4332
|
+
z(), b();
|
|
4332
4333
|
}), (U, J) => {
|
|
4333
4334
|
const w = j("IconifyIconOffline"), A = j("el-input"), O = j("el-divider"), L = j("el-scrollbar"), T = j("el-pagination"), h = j("vxe-button"), d = j("el-popover");
|
|
4334
4335
|
return D(), I("div", _a, [
|
|
@@ -4367,7 +4368,7 @@ const {
|
|
|
4367
4368
|
])
|
|
4368
4369
|
]),
|
|
4369
4370
|
default: Y(() => [
|
|
4370
|
-
k("div",
|
|
4371
|
+
k("div", Ca, [
|
|
4371
4372
|
F(A, {
|
|
4372
4373
|
modelValue: y.value,
|
|
4373
4374
|
"onUpdate:modelValue": J[1] || (J[1] = (f) => y.value = f),
|
|
@@ -4379,13 +4380,13 @@ const {
|
|
|
4379
4380
|
F(O, { "border-style": "dashed" }),
|
|
4380
4381
|
F(L, { height: "220px" }, {
|
|
4381
4382
|
default: Y(() => [
|
|
4382
|
-
k("ul",
|
|
4383
|
+
k("ul", xa, [
|
|
4383
4384
|
(D(!0), I(ve, null, ge(_.value, (f, $) => (D(), I("li", {
|
|
4384
4385
|
key: $,
|
|
4385
4386
|
title: f,
|
|
4386
4387
|
class: "icon-item p-2 cursor-pointer mr-2 mt-1 flex justify-center items-center border border-[#e5e7eb]",
|
|
4387
|
-
style:
|
|
4388
|
-
onClick: (H) =>
|
|
4388
|
+
style: Ve(m.value(f)),
|
|
4389
|
+
onClick: (H) => C(f)
|
|
4389
4390
|
}, [
|
|
4390
4391
|
k("i", {
|
|
4391
4392
|
class: fe([a.value + f, "w-5 h-5 text-xl"])
|
|
@@ -4406,7 +4407,7 @@ const {
|
|
|
4406
4407
|
layout: "pager",
|
|
4407
4408
|
background: "",
|
|
4408
4409
|
size: "small",
|
|
4409
|
-
onCurrentChange:
|
|
4410
|
+
onCurrentChange: x
|
|
4410
4411
|
}, null, 8, ["total", "current-page", "page-size"]),
|
|
4411
4412
|
F(h, {
|
|
4412
4413
|
class: "justify-end mr-2 ml-2",
|
|
@@ -4432,7 +4433,7 @@ const {
|
|
|
4432
4433
|
Ba
|
|
4433
4434
|
], La = /* @__PURE__ */ k("i", { class: "vxe-icon-arrow-right" }, null, -1), ja = [
|
|
4434
4435
|
La
|
|
4435
|
-
],
|
|
4436
|
+
], za = { class: "op-calendar-pc-table-box" }, Va = { class: "op-calendar-pc-table" }, qa = /* @__PURE__ */ k("tr", { style: { "text-align": "center" } }, [
|
|
4436
4437
|
/* @__PURE__ */ k("th", null, "一"),
|
|
4437
4438
|
/* @__PURE__ */ k("th", null, "二"),
|
|
4438
4439
|
/* @__PURE__ */ k("th", null, "三"),
|
|
@@ -4488,20 +4489,20 @@ const {
|
|
|
4488
4489
|
for (let w = 1; w <= 12; w++)
|
|
4489
4490
|
c.push({ value: `${w < 10 ? 0 : ""}${w}`, text: w + "月" });
|
|
4490
4491
|
const v = (w) => {
|
|
4491
|
-
w === "next" ? t.value = ye(t.value).add(1, "month").format(`YYYY-MM-${s.value}`) : t.value = ye(t.value).subtract(1, "month").format(`YYYY-MM-${s.value}`), r.value = ye(t.value).format("MM"), De(
|
|
4492
|
+
w === "next" ? t.value = ye(t.value).add(1, "month").format(`YYYY-MM-${s.value}`) : t.value = ye(t.value).subtract(1, "month").format(`YYYY-MM-${s.value}`), r.value = ye(t.value).format("MM"), De(x);
|
|
4492
4493
|
}, y = (w) => {
|
|
4493
|
-
i.value = w, t.value = ye(t.value).format(`${w}-MM-DD`), De(
|
|
4494
|
+
i.value = w, t.value = ye(t.value).format(`${w}-MM-DD`), De(x);
|
|
4494
4495
|
}, b = (w) => {
|
|
4495
|
-
r.value = w, t.value = ye(t.value).format(`YYYY-${w}-DD`), De(
|
|
4496
|
+
r.value = w, t.value = ye(t.value).format(`YYYY-${w}-DD`), De(x);
|
|
4496
4497
|
}, _ = () => {
|
|
4497
4498
|
t.value = ye().format("YYYY-MM-DD");
|
|
4498
4499
|
const { day: w, month: A, year: O } = R();
|
|
4499
4500
|
i.value = O, r.value = A, s.value = w;
|
|
4500
4501
|
}, m = (w) => {
|
|
4501
4502
|
w && (t.value = w);
|
|
4502
|
-
}, x = () => {
|
|
4503
|
-
_(), o.date && (t.value = o.date), C();
|
|
4504
4503
|
}, C = () => {
|
|
4504
|
+
_(), o.date && (t.value = o.date), x();
|
|
4505
|
+
}, x = () => {
|
|
4505
4506
|
const w = i.value, A = r.value, O = 1;
|
|
4506
4507
|
let L = [];
|
|
4507
4508
|
const T = 42, h = new Date([w, A, O].join("-"));
|
|
@@ -4514,7 +4515,7 @@ const {
|
|
|
4514
4515
|
let { Term: K } = oe;
|
|
4515
4516
|
const { IDayCn: se, IMonthCn: P, cDay: M, cMonth: X, cYear: Q } = oe;
|
|
4516
4517
|
J[X] && J[X][M] && (K = J[X][M]), U[P] && U[P][se] && (K = U[P][se]);
|
|
4517
|
-
const { isWorkDay: S, isRestDay:
|
|
4518
|
+
const { isWorkDay: S, isRestDay: V } = E(Q, X, M);
|
|
4518
4519
|
L.push({
|
|
4519
4520
|
day: d.split("-")[2],
|
|
4520
4521
|
date: d,
|
|
@@ -4524,7 +4525,7 @@ const {
|
|
|
4524
4525
|
hasTerm: K,
|
|
4525
4526
|
isWeekend: (new Date(d).getDay() == 6 || new Date(d).getDay() == 0) && !S,
|
|
4526
4527
|
isWorkDay: S,
|
|
4527
|
-
isRestDay:
|
|
4528
|
+
isRestDay: V
|
|
4528
4529
|
});
|
|
4529
4530
|
}
|
|
4530
4531
|
d = [w, A, O].join("-"), L = L.reverse();
|
|
@@ -4534,7 +4535,7 @@ const {
|
|
|
4534
4535
|
let { Term: K } = oe;
|
|
4535
4536
|
const { IDayCn: se, IMonthCn: P, cDay: M, cMonth: X, cYear: Q } = oe;
|
|
4536
4537
|
J[X] && J[X][M] && (K = J[X][M]), U[P] && U[P][se] && (K = U[P][se]);
|
|
4537
|
-
const { isWorkDay: S, isRestDay:
|
|
4538
|
+
const { isWorkDay: S, isRestDay: V } = E(Q, X, M);
|
|
4538
4539
|
L.push({
|
|
4539
4540
|
date: d,
|
|
4540
4541
|
day: H,
|
|
@@ -4544,7 +4545,7 @@ const {
|
|
|
4544
4545
|
hasTerm: K,
|
|
4545
4546
|
isWeekend: (new Date(d).getDay() == 6 || new Date(d).getDay() == 0) && !S,
|
|
4546
4547
|
isWorkDay: S,
|
|
4547
|
-
isRestDay:
|
|
4548
|
+
isRestDay: V
|
|
4548
4549
|
}), d = ye(d).add(1, "day").format("YYYY-MM-DD");
|
|
4549
4550
|
}
|
|
4550
4551
|
n.value = [];
|
|
@@ -4561,7 +4562,7 @@ const {
|
|
|
4561
4562
|
return { day: A, month: L, year: O, isToday: T };
|
|
4562
4563
|
};
|
|
4563
4564
|
et(() => {
|
|
4564
|
-
|
|
4565
|
+
C();
|
|
4565
4566
|
}), Ge(t, (w) => {
|
|
4566
4567
|
const { day: A, month: O, year: L } = R(w);
|
|
4567
4568
|
i.value = L, r.value = O;
|
|
@@ -4575,9 +4576,9 @@ const {
|
|
|
4575
4576
|
...T,
|
|
4576
4577
|
lunarFestival: U[T.IMonthCn] ? U[T.IMonthCn][T.IDayCn] : void 0,
|
|
4577
4578
|
festival: J[T.cMonth] ? J[T.cMonth][T.cDay] : void 0
|
|
4578
|
-
}, De(
|
|
4579
|
+
}, De(x);
|
|
4579
4580
|
});
|
|
4580
|
-
const
|
|
4581
|
+
const z = (w) => {
|
|
4581
4582
|
const A = w.target.parentNode.getAttribute("date") ? w.target.parentNode.getAttribute("date") : w.target.getAttribute("date");
|
|
4582
4583
|
console.log(A), t.value = A;
|
|
4583
4584
|
}, B = () => {
|
|
@@ -4677,8 +4678,8 @@ const {
|
|
|
4677
4678
|
onClick: B
|
|
4678
4679
|
}, "今天")
|
|
4679
4680
|
]),
|
|
4680
|
-
k("div",
|
|
4681
|
-
k("table",
|
|
4681
|
+
k("div", za, [
|
|
4682
|
+
k("table", Va, [
|
|
4682
4683
|
k("tbody", null, [
|
|
4683
4684
|
qa,
|
|
4684
4685
|
(D(!0), I(ve, null, ge(n.value, (T, h) => (D(), I("tr", { key: h }, [
|
|
@@ -4697,7 +4698,7 @@ const {
|
|
|
4697
4698
|
"op-calendar-pc-table-rest": d.isRestDay
|
|
4698
4699
|
}),
|
|
4699
4700
|
date: d.date,
|
|
4700
|
-
onClick:
|
|
4701
|
+
onClick: z
|
|
4701
4702
|
}, [
|
|
4702
4703
|
d.isWorkDay ? (D(), I("span", Ya, "班")) : te("", !0),
|
|
4703
4704
|
d.isRestDay ? (D(), I("span", Ja, "休")) : te("", !0),
|
|
@@ -4774,7 +4775,7 @@ const {
|
|
|
4774
4775
|
}, null, 2)
|
|
4775
4776
|
], 2));
|
|
4776
4777
|
}
|
|
4777
|
-
}),
|
|
4778
|
+
}), ze = /* @__PURE__ */ Fe(ll, [["__scopeId", "data-v-f1c9cbf9"]]), Co = (e) => (Ut("data-v-d1419ef2"), e = e(), Lt(), e), cl = { className: "FlipClock" }, ul = /* @__PURE__ */ Co(() => /* @__PURE__ */ k("em", null, ":", -1)), dl = /* @__PURE__ */ Co(() => /* @__PURE__ */ k("em", null, ":", -1)), fl = /* @__PURE__ */ ne({
|
|
4778
4779
|
name: "UtFlipDown",
|
|
4779
4780
|
__name: "flip-clock",
|
|
4780
4781
|
setup(e) {
|
|
@@ -4791,8 +4792,8 @@ const {
|
|
|
4791
4792
|
t.value = setInterval(() => {
|
|
4792
4793
|
var m;
|
|
4793
4794
|
const y = /* @__PURE__ */ new Date(), b = u(new Date(y.getTime() - 1e3), "hhiiss"), _ = u(y, "hhiiss");
|
|
4794
|
-
for (let
|
|
4795
|
-
b[
|
|
4795
|
+
for (let C = 0; C < p.length; C++)
|
|
4796
|
+
b[C] !== _[C] && ((m = p[C].value) == null || m.flipDown(b[C], _[C]));
|
|
4796
4797
|
}, 1e3);
|
|
4797
4798
|
})();
|
|
4798
4799
|
});
|
|
@@ -4810,53 +4811,53 @@ const {
|
|
|
4810
4811
|
"s+": v.getSeconds()
|
|
4811
4812
|
};
|
|
4812
4813
|
for (const m in _) {
|
|
4813
|
-
const
|
|
4814
|
-
if (
|
|
4815
|
-
const
|
|
4814
|
+
const C = y.match(new RegExp(`(${m})`));
|
|
4815
|
+
if (C) {
|
|
4816
|
+
const x = _[m] + "";
|
|
4816
4817
|
y = y.replace(
|
|
4817
|
-
|
|
4818
|
-
|
|
4818
|
+
C[0],
|
|
4819
|
+
C[0].length === 1 ? x : x.padStart(2, "0")
|
|
4819
4820
|
);
|
|
4820
4821
|
}
|
|
4821
4822
|
}
|
|
4822
4823
|
return y;
|
|
4823
4824
|
}, l = /* @__PURE__ */ new Date(), c = u(new Date(l.getTime()), "hhiiss");
|
|
4824
4825
|
return (v, y) => (D(), I("div", cl, [
|
|
4825
|
-
F(
|
|
4826
|
+
F(ze, {
|
|
4826
4827
|
ref_key: "flipCardHour1Ref",
|
|
4827
4828
|
ref: n,
|
|
4828
4829
|
"init-front-text": ee(c)[0]
|
|
4829
4830
|
}, null, 8, ["init-front-text"]),
|
|
4830
|
-
F(
|
|
4831
|
+
F(ze, {
|
|
4831
4832
|
ref_key: "flipCardHour2Ref",
|
|
4832
4833
|
ref: o,
|
|
4833
4834
|
"init-front-text": ee(c)[1]
|
|
4834
4835
|
}, null, 8, ["init-front-text"]),
|
|
4835
4836
|
ul,
|
|
4836
|
-
F(
|
|
4837
|
+
F(ze, {
|
|
4837
4838
|
ref_key: "flipCardMinute1Ref",
|
|
4838
4839
|
ref: s,
|
|
4839
4840
|
"init-front-text": ee(c)[2]
|
|
4840
4841
|
}, null, 8, ["init-front-text"]),
|
|
4841
|
-
F(
|
|
4842
|
+
F(ze, {
|
|
4842
4843
|
ref_key: "flipCardMinute2Ref",
|
|
4843
4844
|
ref: r,
|
|
4844
4845
|
"init-front-text": ee(c)[3]
|
|
4845
4846
|
}, null, 8, ["init-front-text"]),
|
|
4846
4847
|
dl,
|
|
4847
|
-
F(
|
|
4848
|
+
F(ze, {
|
|
4848
4849
|
ref_key: "flipCardSecond1Ref",
|
|
4849
4850
|
ref: i,
|
|
4850
4851
|
"init-front-text": ee(c)[4]
|
|
4851
4852
|
}, null, 8, ["init-front-text"]),
|
|
4852
|
-
F(
|
|
4853
|
+
F(ze, {
|
|
4853
4854
|
ref_key: "flipCardSecond2Ref",
|
|
4854
4855
|
ref: a,
|
|
4855
4856
|
"init-front-text": ee(c)[5]
|
|
4856
4857
|
}, null, 8, ["init-front-text"])
|
|
4857
4858
|
]));
|
|
4858
4859
|
}
|
|
4859
|
-
}), pl = /* @__PURE__ */ Fe(fl, [["__scopeId", "data-v-d1419ef2"]]), ml = pe(pl), hl = pe(Un),
|
|
4860
|
+
}), pl = /* @__PURE__ */ Fe(fl, [["__scopeId", "data-v-d1419ef2"]]), ml = pe(pl), hl = pe(Un), xo = Object.freeze(
|
|
4860
4861
|
{
|
|
4861
4862
|
left: 0,
|
|
4862
4863
|
top: 0,
|
|
@@ -4868,7 +4869,7 @@ const {
|
|
|
4868
4869
|
vFlip: !1,
|
|
4869
4870
|
hFlip: !1
|
|
4870
4871
|
}), Gt = Object.freeze({
|
|
4871
|
-
...
|
|
4872
|
+
...xo,
|
|
4872
4873
|
...ko
|
|
4873
4874
|
});
|
|
4874
4875
|
Object.freeze({
|
|
@@ -4877,7 +4878,7 @@ Object.freeze({
|
|
|
4877
4878
|
hidden: !1
|
|
4878
4879
|
});
|
|
4879
4880
|
({
|
|
4880
|
-
...
|
|
4881
|
+
...xo
|
|
4881
4882
|
});
|
|
4882
4883
|
const So = Object.freeze({
|
|
4883
4884
|
width: null,
|
|
@@ -4938,7 +4939,7 @@ function bl(e, t = 0) {
|
|
|
4938
4939
|
return t;
|
|
4939
4940
|
}
|
|
4940
4941
|
const wl = /(-?[0-9.]*[0-9]+[0-9.]*)/g, _l = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
4941
|
-
function
|
|
4942
|
+
function xn(e, t, n) {
|
|
4942
4943
|
if (t === 1)
|
|
4943
4944
|
return e;
|
|
4944
4945
|
if (n = n || 100, typeof e == "number")
|
|
@@ -4961,7 +4962,7 @@ function Cn(e, t, n) {
|
|
|
4961
4962
|
i = !i;
|
|
4962
4963
|
}
|
|
4963
4964
|
}
|
|
4964
|
-
function
|
|
4965
|
+
function Cl(e, t = "defs") {
|
|
4965
4966
|
let n = "";
|
|
4966
4967
|
const o = e.indexOf("<" + t);
|
|
4967
4968
|
for (; o >= 0; ) {
|
|
@@ -4978,12 +4979,12 @@ function xl(e, t = "defs") {
|
|
|
4978
4979
|
content: e
|
|
4979
4980
|
};
|
|
4980
4981
|
}
|
|
4981
|
-
function
|
|
4982
|
+
function xl(e, t) {
|
|
4982
4983
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
4983
4984
|
}
|
|
4984
4985
|
function kl(e, t, n) {
|
|
4985
|
-
const o =
|
|
4986
|
-
return
|
|
4986
|
+
const o = Cl(e);
|
|
4987
|
+
return xl(o.defs, t + o.content + n);
|
|
4987
4988
|
}
|
|
4988
4989
|
const Sl = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
4989
4990
|
function El(e, t) {
|
|
@@ -5001,11 +5002,11 @@ function El(e, t) {
|
|
|
5001
5002
|
};
|
|
5002
5003
|
let r = n.body;
|
|
5003
5004
|
[n, o].forEach((_) => {
|
|
5004
|
-
const m = [],
|
|
5005
|
+
const m = [], C = _.hFlip, x = _.vFlip;
|
|
5005
5006
|
let E = _.rotate;
|
|
5006
|
-
|
|
5007
|
+
C ? x ? E += 2 : (m.push(
|
|
5007
5008
|
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
5008
|
-
), m.push("scale(-1 1)"), s.top = s.left = 0) :
|
|
5009
|
+
), m.push("scale(-1 1)"), s.top = s.left = 0) : x && (m.push(
|
|
5009
5010
|
"translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
|
|
5010
5011
|
), m.push("scale(1 -1)"), s.top = s.left = 0);
|
|
5011
5012
|
let R;
|
|
@@ -5034,7 +5035,7 @@ function El(e, t) {
|
|
|
5034
5035
|
});
|
|
5035
5036
|
const i = o.width, a = o.height, p = s.width, u = s.height;
|
|
5036
5037
|
let l, c;
|
|
5037
|
-
i === null ? (c = a === null ? "1em" : a === "auto" ? u : a, l =
|
|
5038
|
+
i === null ? (c = a === null ? "1em" : a === "auto" ? u : a, l = xn(c, p / u)) : (l = i === "auto" ? p : i, c = a === null ? xn(l, u / p) : a === "auto" ? u : a);
|
|
5038
5039
|
const v = {}, y = (_, m) => {
|
|
5039
5040
|
Sl(m) || (v[_] = m.toString());
|
|
5040
5041
|
};
|
|
@@ -5153,8 +5154,8 @@ const Il = (e, t) => {
|
|
|
5153
5154
|
m !== !0 && m !== "true" && delete o["aria-hidden"];
|
|
5154
5155
|
break;
|
|
5155
5156
|
default: {
|
|
5156
|
-
const
|
|
5157
|
-
|
|
5157
|
+
const C = ct[_];
|
|
5158
|
+
C ? (m === !0 || m === "true" || m === 1) && (n[C] = !0) : kn[_] === void 0 && (o[_] = m);
|
|
5158
5159
|
}
|
|
5159
5160
|
}
|
|
5160
5161
|
}
|