@utogether/components 3.0.0-beta.51 → 3.0.0-beta.52
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 +318 -312
- package/dist/components.umd.js +3 -3
- package/package.json +1 -1
package/dist/components.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as te, getCurrentInstance as
|
|
1
|
+
import { defineComponent as te, getCurrentInstance as Ee, computed as xe, resolveComponent as z, createBlock as le, createElementBlock as I, createCommentVNode as se, openBlock as A, unref as ee, withCtx as Y, Fragment as ve, renderList as ge, createTextVNode as Rn, toDisplayString as Z, createVNode as N, mergeProps as we, ref as M, reactive as Ze, createElementVNode as C, nextTick as $e, onMounted as et, mergeModels as en, useModel as Eo, watch as Ke, toHandlers as It, createSlots as Tn, withDirectives as $n, vModelText as Ro, normalizeClass as de, renderSlot as Ge, pushScopeId as Ut, popScopeId as Bt, normalizeStyle as Ve, useAttrs as Lt, onUnmounted as To, onBeforeMount as ft, toRaw as On, resolveDirective as $o, toRef as Oo, h as Se } from "vue";
|
|
2
2
|
import { useI18n as De } from "vue-i18n";
|
|
3
|
-
import { throttle as kt, toDateString as
|
|
3
|
+
import { throttle as kt, toDateString as _e, isFunction as Xe, isEmpty as ze, clone as ae, isString as Oe, orderBy as Do, commafy as Ao, isObject as Po, isArray as Fo } from "xe-utils";
|
|
4
4
|
import { withInstall as fe, cookies as be, useRender as Dn, delay as No, storageLocal as jt, warnMessage as Fe, formatRules as Ie, formatItems as Vt, successMessage as ct, dbstorage as tn, i18nColums as An, errorMessage as Mo, formatGridItems as Pn, iconSet as Io, lunarCalendar as st } from "@utogether/utils";
|
|
5
5
|
import zt from "await-to-js";
|
|
6
|
-
import { VxeUI as
|
|
6
|
+
import { VxeUI as Re } from "vxe-pc-ui";
|
|
7
7
|
import Fn from "compressorjs";
|
|
8
8
|
import Uo from "big.js";
|
|
9
9
|
import Bo from "sortablejs";
|
|
@@ -31,7 +31,7 @@ const Lo = {
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["tap", "confirm", "cancel"],
|
|
33
33
|
setup(e, { emit: t }) {
|
|
34
|
-
const n = e, s =
|
|
34
|
+
const n = e, s = Ee().appContext.config.globalProperties.$hasAuthority, { t: r } = De(), i = xe(() => {
|
|
35
35
|
const g = l(), y = /.*[\u4e00-\u9fa5]+.*$/.test(n.content);
|
|
36
36
|
return {
|
|
37
37
|
icon: g,
|
|
@@ -51,7 +51,7 @@ const Lo = {
|
|
|
51
51
|
g.disabled || g.auth && !s(g.auth) || b("tap", g.code);
|
|
52
52
|
}, 2e3), b = t;
|
|
53
53
|
return (g, y) => {
|
|
54
|
-
const w =
|
|
54
|
+
const w = z("vxe-button"), p = z("el-popconfirm");
|
|
55
55
|
return g.children.length && g.visible ? (A(), le(w, {
|
|
56
56
|
key: 0,
|
|
57
57
|
disabled: g.auth && !ee(s)(g.auth) || g.disabled,
|
|
@@ -131,7 +131,7 @@ const Lo = {
|
|
|
131
131
|
},
|
|
132
132
|
emits: ["clear", "change"],
|
|
133
133
|
setup(e, { emit: t }) {
|
|
134
|
-
const n = e, s =
|
|
134
|
+
const n = e, s = Ee().appContext.config.globalProperties.$serviceApi, r = 600, i = M(!1), l = M(r), f = M(""), u = M("vxe-table--ignore-clear"), c = Ze({
|
|
135
135
|
loading: !1,
|
|
136
136
|
border: !0,
|
|
137
137
|
pagerConfig: {},
|
|
@@ -173,10 +173,10 @@ const Lo = {
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
checkboxConfig: {
|
|
176
|
-
checkMethod: ({ row: v }) =>
|
|
176
|
+
checkMethod: ({ row: v }) => q(v, n)
|
|
177
177
|
},
|
|
178
178
|
radioConfig: {
|
|
179
|
-
checkMethod: ({ row: v }) =>
|
|
179
|
+
checkMethod: ({ row: v }) => q(v, n)
|
|
180
180
|
},
|
|
181
181
|
columns: []
|
|
182
182
|
});
|
|
@@ -184,10 +184,10 @@ const Lo = {
|
|
|
184
184
|
const g = (v) => (b.filter(
|
|
185
185
|
(m) => ["date", "month"].includes(m.fieldType) && m.isSearch
|
|
186
186
|
).forEach((m) => {
|
|
187
|
-
m.fieldType === "date" ? v[m.field] =
|
|
187
|
+
m.fieldType === "date" ? v[m.field] = _e(
|
|
188
188
|
v[m.field],
|
|
189
189
|
"yyyy-MM-dd 00:00:00"
|
|
190
|
-
) : m.fieldType === "month" && (v[m.field] =
|
|
190
|
+
) : m.fieldType === "month" && (v[m.field] = _e(v[m.field], "yyyy-MM"));
|
|
191
191
|
}), v), y = () => {
|
|
192
192
|
const v = ae(b, !0).filter((D) => D.isSearch === "Y");
|
|
193
193
|
if (!v.length) return;
|
|
@@ -255,26 +255,26 @@ const Lo = {
|
|
|
255
255
|
const v = "/upfm/v1/lovViewHeader/detailByViewCode", [d, m] = await zt(
|
|
256
256
|
s.get(v, { lovCode: n.code })
|
|
257
257
|
);
|
|
258
|
-
c.loading = !1, d &&
|
|
259
|
-
},
|
|
258
|
+
c.loading = !1, d && U(), c.loading = !0, f.value = (m == null ? void 0 : m.lovTitle) || (m == null ? void 0 : m.lovName), b = (m == null ? void 0 : m.lineList) || [], a = m, k(), y(), await No(30), await $e(), n.autoLoad && ((D = R.value) == null || D.commitProxy("query")), c.loading = !1;
|
|
259
|
+
}, q = (v, d) => Xe(d.checkMethod) ? d.checkMethod(v) : !0, L = async () => {
|
|
260
260
|
n.disabled || ($(), await $e(), i.value = !0);
|
|
261
|
-
},
|
|
261
|
+
}, B = () => {
|
|
262
262
|
T("clear", "");
|
|
263
263
|
}, S = ({ row: v }) => {
|
|
264
264
|
const d = n.multiple ? [v] : v;
|
|
265
|
-
Xe(n.checkMethod) && !n.checkMethod(v) || (T("change", d, a.valueField),
|
|
265
|
+
Xe(n.checkMethod) && !n.checkMethod(v) || (T("change", d, a.valueField), U());
|
|
266
266
|
}, E = async () => {
|
|
267
267
|
var v;
|
|
268
268
|
await $e(), (v = R.value) == null || v.commitProxy("query");
|
|
269
269
|
}, O = () => {
|
|
270
270
|
const v = R.value, d = n.multiple ? v.getCheckboxRecords() : v.getRadioRecord();
|
|
271
|
-
!ze(d) && T("change", d, a.valueField),
|
|
272
|
-
},
|
|
271
|
+
!ze(d) && T("change", d, a.valueField), U();
|
|
272
|
+
}, U = () => {
|
|
273
273
|
b.length = 0, i.value = !1;
|
|
274
|
-
},
|
|
274
|
+
}, j = ({ type: v }) => {
|
|
275
275
|
}, T = t;
|
|
276
276
|
return (v, d) => {
|
|
277
|
-
const m =
|
|
277
|
+
const m = z("vxe-grid"), D = z("vxe-button"), J = z("vxe-modal"), ie = z("el-dialog"), ce = z("vxe-input");
|
|
278
278
|
return A(), I("div", zo, [
|
|
279
279
|
v.mode === "vxe" ? (A(), le(J, {
|
|
280
280
|
key: 0,
|
|
@@ -289,7 +289,7 @@ const Lo = {
|
|
|
289
289
|
"esc-closable": "",
|
|
290
290
|
"show-footer": "",
|
|
291
291
|
className: u.value,
|
|
292
|
-
"before-hide-method":
|
|
292
|
+
"before-hide-method": j
|
|
293
293
|
}, {
|
|
294
294
|
default: Y(() => [
|
|
295
295
|
N(m, we({
|
|
@@ -302,7 +302,7 @@ const Lo = {
|
|
|
302
302
|
content: v.$t("message.btn.cancel"),
|
|
303
303
|
icon: "ri-close-line",
|
|
304
304
|
status: "warning",
|
|
305
|
-
onClick:
|
|
305
|
+
onClick: U
|
|
306
306
|
}, null, 8, ["content"]),
|
|
307
307
|
N(D, {
|
|
308
308
|
content: v.$t("message.btn.confirm"),
|
|
@@ -341,7 +341,7 @@ const Lo = {
|
|
|
341
341
|
content: v.$t("message.btn.cancel"),
|
|
342
342
|
icon: "ri-close-line",
|
|
343
343
|
status: "warning",
|
|
344
|
-
onClick:
|
|
344
|
+
onClick: U
|
|
345
345
|
}, null, 8, ["content"]),
|
|
346
346
|
N(D, {
|
|
347
347
|
content: v.$t("message.btn.confirm"),
|
|
@@ -361,8 +361,8 @@ const Lo = {
|
|
|
361
361
|
placeholder: v.placeholder,
|
|
362
362
|
style: { width: "100%" },
|
|
363
363
|
type: "search",
|
|
364
|
-
onSearchClick:
|
|
365
|
-
onClear:
|
|
364
|
+
onSearchClick: L,
|
|
365
|
+
onClear: B
|
|
366
366
|
}, null, 8, ["modelValue", "clearable", "disabled", "readonly", "placeholder"])
|
|
367
367
|
]);
|
|
368
368
|
};
|
|
@@ -435,7 +435,7 @@ const Nn = (e, t, n) => {
|
|
|
435
435
|
showTitle: { type: Boolean, default: !0 }
|
|
436
436
|
},
|
|
437
437
|
setup(e) {
|
|
438
|
-
const t = e, n = M(null), o =
|
|
438
|
+
const t = e, n = M(null), o = Ee(), s = o.appContext.config.globalProperties.$serviceApi, r = o.appContext.config.globalProperties.$url, i = o.appContext.config.globalProperties.$mode, l = ["png", "jpg", "jpeg", "webp", "gif"];
|
|
439
439
|
let f;
|
|
440
440
|
const u = [
|
|
441
441
|
{ field: "fileName", title: "message.fileName" },
|
|
@@ -492,8 +492,8 @@ const Nn = (e, t, n) => {
|
|
|
492
492
|
quality: t.quality,
|
|
493
493
|
mimeType: _.type,
|
|
494
494
|
success($) {
|
|
495
|
-
const
|
|
496
|
-
b(
|
|
495
|
+
const q = new File([$], $.name, { type: $.type });
|
|
496
|
+
b(q), console.log({ result: $, file: q });
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
499
|
else
|
|
@@ -512,20 +512,22 @@ const Nn = (e, t, n) => {
|
|
|
512
512
|
columns: u
|
|
513
513
|
}), b = (_) => {
|
|
514
514
|
const k = new FormData();
|
|
515
|
-
k.append("file", _)
|
|
516
|
-
const R = {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
515
|
+
k.append("file", _);
|
|
516
|
+
const R = `${t.filePath}/${_e(/* @__PURE__ */ new Date(), "yyyyMMdd")}`;
|
|
517
|
+
t.filePath && k.append("filePath", R);
|
|
518
|
+
const $ = { "Content-Type": "multipart/form-data" };
|
|
519
|
+
return s.post("/ufil/file/uploadMultipart", k, { headers: $ }).then(async (q) => {
|
|
520
|
+
const L = {
|
|
521
|
+
realpath: q,
|
|
520
522
|
fileName: _.name,
|
|
521
523
|
fileSize: _.size,
|
|
522
524
|
fileExtend: _.name.split(".").pop(),
|
|
523
525
|
sourceTable: t.sourceTable,
|
|
524
526
|
sourceId: t.sourceId
|
|
525
527
|
};
|
|
526
|
-
await s.post(t.url, [
|
|
528
|
+
await s.post(t.url, [L]), n.value.commitProxy("query");
|
|
527
529
|
}).catch(() => {
|
|
528
|
-
|
|
530
|
+
Re.modal.message({
|
|
529
531
|
content: "附件上传失败,请刷新后重试",
|
|
530
532
|
status: "error"
|
|
531
533
|
});
|
|
@@ -540,16 +542,16 @@ const Nn = (e, t, n) => {
|
|
|
540
542
|
const k = await s.get("/upms/v1/watermark/selectByCode", {
|
|
541
543
|
watermarkCode: t.watermarkCode
|
|
542
544
|
});
|
|
543
|
-
f = k == null ? void 0 : k.list[0], f.watermarkType === "1" ? f.content =
|
|
545
|
+
f = k == null ? void 0 : k.list[0], f.watermarkType === "1" ? f.content = _e(/* @__PURE__ */ new Date(), "yyyy-MM-dd") : f.watermarkType === "2" ? f.content = _e(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH:mm:ss") : f.watermarkType === "0" && (f.content = "");
|
|
544
546
|
}, w = async () => {
|
|
545
547
|
const _ = n.value.getData().filter((R) => l.includes(R.fileExtend)), k = [];
|
|
546
548
|
(f == null ? void 0 : f.watermarkTrigger) == "preview" ? await _.forEachSync(async (R) => {
|
|
547
|
-
const $ = `${r}/ufil${R.realpath}}`,
|
|
548
|
-
k.push(
|
|
549
|
+
const $ = `${r}/ufil${R.realpath}}`, q = await Go($, f);
|
|
550
|
+
k.push(q);
|
|
549
551
|
}) : _.forEach((R) => {
|
|
550
552
|
const $ = `${r}/ufil${R.realpath}`;
|
|
551
553
|
k.push($);
|
|
552
|
-
}),
|
|
554
|
+
}), Re.previewImage({ activeIndex: 0, urlList: k });
|
|
553
555
|
}, p = (_) => {
|
|
554
556
|
const k = r + "/ufil" + _.realpath, R = document.createElement("a");
|
|
555
557
|
R.style.display = "none";
|
|
@@ -562,9 +564,9 @@ const Nn = (e, t, n) => {
|
|
|
562
564
|
}, et(() => {
|
|
563
565
|
t.watermarkCode && y();
|
|
564
566
|
}), (_, k) => {
|
|
565
|
-
const R =
|
|
567
|
+
const R = z("ut-divider"), $ = z("ut-button"), q = z("vxe-grid");
|
|
566
568
|
return A(), I("div", Qo, [
|
|
567
|
-
N(
|
|
569
|
+
N(q, we({
|
|
568
570
|
ref_key: "xGrid",
|
|
569
571
|
ref: n
|
|
570
572
|
}, a), {
|
|
@@ -575,7 +577,7 @@ const Nn = (e, t, n) => {
|
|
|
575
577
|
}, null, 8, ["title"])
|
|
576
578
|
])) : se("", !0)
|
|
577
579
|
]),
|
|
578
|
-
operate: Y(({ row:
|
|
580
|
+
operate: Y(({ row: L }) => [
|
|
579
581
|
C("div", es, [
|
|
580
582
|
N($, {
|
|
581
583
|
disabled: _.dataStatus === "detail",
|
|
@@ -583,20 +585,20 @@ const Nn = (e, t, n) => {
|
|
|
583
585
|
status: "danger",
|
|
584
586
|
icon: "ri-delete-bin-5-fill",
|
|
585
587
|
content: "delete",
|
|
586
|
-
onTap: (
|
|
588
|
+
onTap: (B) => g(L)
|
|
587
589
|
}, null, 8, ["disabled", "auth", "onTap"]),
|
|
588
|
-
["png", "jpeg", "jpg"].includes(
|
|
590
|
+
["png", "jpeg", "jpg"].includes(L.fileExtend) ? (A(), le($, {
|
|
589
591
|
key: 0,
|
|
590
592
|
auth: _.permissionPreFix + "Preview",
|
|
591
593
|
icon: "ri-search-line",
|
|
592
594
|
content: "preview",
|
|
593
|
-
onTap: k[0] || (k[0] = (
|
|
595
|
+
onTap: k[0] || (k[0] = (B) => w())
|
|
594
596
|
}, null, 8, ["auth"])) : (A(), le($, {
|
|
595
597
|
key: 1,
|
|
596
598
|
auth: _.permissionPreFix + "Download",
|
|
597
599
|
icon: "ri-download-2-fill",
|
|
598
600
|
content: "download",
|
|
599
|
-
onTap: (
|
|
601
|
+
onTap: (B) => p(L)
|
|
600
602
|
}, null, 8, ["auth", "onTap"]))
|
|
601
603
|
])
|
|
602
604
|
]),
|
|
@@ -627,7 +629,7 @@ const Nn = (e, t, n) => {
|
|
|
627
629
|
}),
|
|
628
630
|
emits: /* @__PURE__ */ en(["close"], ["update:visible"]),
|
|
629
631
|
setup(e, { emit: t }) {
|
|
630
|
-
const n = e, s =
|
|
632
|
+
const n = e, s = Ee().appContext.config.globalProperties.$serviceApi, r = Eo(e, "visible"), { t: i } = De(), l = M(!1), f = jt.getItem("kLov");
|
|
631
633
|
Ke(
|
|
632
634
|
() => r.value,
|
|
633
635
|
(v) => {
|
|
@@ -715,7 +717,7 @@ const Nn = (e, t, n) => {
|
|
|
715
717
|
break;
|
|
716
718
|
}
|
|
717
719
|
case "save_plus": {
|
|
718
|
-
|
|
720
|
+
B();
|
|
719
721
|
break;
|
|
720
722
|
}
|
|
721
723
|
case "del_plus": {
|
|
@@ -723,7 +725,7 @@ const Nn = (e, t, n) => {
|
|
|
723
725
|
break;
|
|
724
726
|
}
|
|
725
727
|
case "export_plus": {
|
|
726
|
-
|
|
728
|
+
L();
|
|
727
729
|
break;
|
|
728
730
|
}
|
|
729
731
|
}
|
|
@@ -735,7 +737,7 @@ const Nn = (e, t, n) => {
|
|
|
735
737
|
break;
|
|
736
738
|
}
|
|
737
739
|
case "question": {
|
|
738
|
-
|
|
740
|
+
U();
|
|
739
741
|
break;
|
|
740
742
|
}
|
|
741
743
|
}
|
|
@@ -752,7 +754,7 @@ const Nn = (e, t, n) => {
|
|
|
752
754
|
D !== -1 && y.splice(D, 1);
|
|
753
755
|
}), n.columns.forEach((m) => {
|
|
754
756
|
(m.dateFormatter || m.valueType === "number") && y.forEach((D) => {
|
|
755
|
-
m.dateFormatter ? D[m.field] =
|
|
757
|
+
m.dateFormatter ? D[m.field] = _e(
|
|
756
758
|
D[m.field],
|
|
757
759
|
m.dateFormatter || "yyyy-MM-dd HH:mm:ss"
|
|
758
760
|
) : D[m.field] = Uo(D[m.field]).toFixed(m.decimal || 6);
|
|
@@ -764,12 +766,12 @@ const Nn = (e, t, n) => {
|
|
|
764
766
|
p.data = y.filter(
|
|
765
767
|
(m, D) => D < d * v && D >= d * (v - 1)
|
|
766
768
|
);
|
|
767
|
-
},
|
|
769
|
+
}, q = ({
|
|
768
770
|
currentPage: v,
|
|
769
771
|
pageSize: d
|
|
770
772
|
}) => {
|
|
771
773
|
c.value.currentPage = v, c.value.pageSize = d, $();
|
|
772
|
-
},
|
|
774
|
+
}, L = () => {
|
|
773
775
|
var m;
|
|
774
776
|
const v = [];
|
|
775
777
|
if (n.templateData.length)
|
|
@@ -789,19 +791,19 @@ const Nn = (e, t, n) => {
|
|
|
789
791
|
data: v
|
|
790
792
|
};
|
|
791
793
|
(m = g.value) == null || m.exportData(d);
|
|
792
|
-
},
|
|
794
|
+
}, B = async () => {
|
|
793
795
|
if (!y.length)
|
|
794
796
|
return Fe(i("message.importEmpty"));
|
|
795
|
-
if (await
|
|
797
|
+
if (await Re.modal.confirm(i("message.importRecord")) === "confirm") {
|
|
796
798
|
p.loading = !0;
|
|
797
799
|
const { url: d } = n;
|
|
798
800
|
O("toSave"), s.post(d, y).then((m) => {
|
|
799
801
|
(m == null ? void 0 : m.status) === "error" || m != null && m.length ? (l.value = !0, E(
|
|
800
802
|
m != null && m.length ? m : m[n.options.errListField || n.sourceList]
|
|
801
|
-
),
|
|
803
|
+
), Re.modal.message({
|
|
802
804
|
content: i("message.importFailed"),
|
|
803
805
|
status: "error"
|
|
804
|
-
})) : (
|
|
806
|
+
})) : (Re.modal.message({
|
|
805
807
|
content: i("message.importSuccess"),
|
|
806
808
|
status: "success"
|
|
807
809
|
}), T());
|
|
@@ -813,7 +815,7 @@ const Nn = (e, t, n) => {
|
|
|
813
815
|
var d;
|
|
814
816
|
const v = (d = g.value) == null ? void 0 : d.getCheckboxRecords();
|
|
815
817
|
if (!(v != null && v.length))
|
|
816
|
-
return
|
|
818
|
+
return Re.modal.message({
|
|
817
819
|
content: i("message.selectedRecord"),
|
|
818
820
|
status: "warning"
|
|
819
821
|
});
|
|
@@ -837,13 +839,13 @@ const Nn = (e, t, n) => {
|
|
|
837
839
|
m[d.field] = m[d.mapField];
|
|
838
840
|
});
|
|
839
841
|
});
|
|
840
|
-
},
|
|
841
|
-
|
|
842
|
-
},
|
|
843
|
-
r.value = !1,
|
|
842
|
+
}, U = () => {
|
|
843
|
+
Re.modal.alert(i("message.importTip"), i("message.udp.tip"));
|
|
844
|
+
}, j = t, T = () => {
|
|
845
|
+
r.value = !1, j("close");
|
|
844
846
|
};
|
|
845
847
|
return (v, d) => {
|
|
846
|
-
const m =
|
|
848
|
+
const m = z("el-option"), D = z("el-select"), J = z("el-date-picker"), ie = z("vxe-pager"), ce = z("vxe-grid"), ne = z("vxe-modal");
|
|
847
849
|
return A(), le(ne, {
|
|
848
850
|
modelValue: r.value,
|
|
849
851
|
"onUpdate:modelValue": d[2] || (d[2] = (K) => r.value = K),
|
|
@@ -866,7 +868,7 @@ const Nn = (e, t, n) => {
|
|
|
866
868
|
layouts: a,
|
|
867
869
|
"page-sizes": [200, 500, 1e3, 2e3, 5e3, 1e4],
|
|
868
870
|
total: c.value.total,
|
|
869
|
-
onPageChange:
|
|
871
|
+
onPageChange: q
|
|
870
872
|
}, null, 8, ["current-page", "page-size", "total"])
|
|
871
873
|
]),
|
|
872
874
|
_: 2
|
|
@@ -1024,7 +1026,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1024
1026
|
};
|
|
1025
1027
|
return (r, i) => {
|
|
1026
1028
|
var f, u, c, a, b, g, y;
|
|
1027
|
-
const l =
|
|
1029
|
+
const l = z("ut-button");
|
|
1028
1030
|
return A(), I("div", ms, [
|
|
1029
1031
|
(f = r.stampOptions) != null && f.content ? (A(), le(Mn, {
|
|
1030
1032
|
key: 0,
|
|
@@ -1088,7 +1090,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1088
1090
|
},
|
|
1089
1091
|
emits: ["command"],
|
|
1090
1092
|
setup(e, { emit: t }) {
|
|
1091
|
-
const n = e, o =
|
|
1093
|
+
const n = e, o = xe(() => n.buttons.filter((b) => b.visible !== !1)), { t: s } = De(), r = Ee(), i = r == null ? void 0 : r.appContext.config.globalProperties.$hasAuthority, l = (b) => {
|
|
1092
1094
|
b.auth && !i(b.auth) || b.disabled || a("command", b.code);
|
|
1093
1095
|
}, f = ["primary", "success", "u-cyan"], u = (b) => {
|
|
1094
1096
|
const { content: g, code: y } = b;
|
|
@@ -1098,7 +1100,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1098
1100
|
return (g = b.code) != null && g.toLowerCase().includes("print") ? "ri-printer-fill" : (y = b.code) != null && y.toLowerCase().includes("look") ? "ri-eye-fill" : "ri-edit-2-fill";
|
|
1099
1101
|
}, a = t;
|
|
1100
1102
|
return (b, g) => {
|
|
1101
|
-
const y =
|
|
1103
|
+
const y = z("IconifyIconOffline"), w = z("el-icon"), p = z("vxe-button"), _ = z("el-dropdown-item"), k = z("el-dropdown-menu"), R = z("el-dropdown");
|
|
1102
1104
|
return b.visible ? (A(), le(R, {
|
|
1103
1105
|
key: 0,
|
|
1104
1106
|
trigger: b.trigger,
|
|
@@ -1108,16 +1110,16 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1108
1110
|
dropdown: Y(() => [
|
|
1109
1111
|
N(k, { class: "ut-dropdown-menu" }, {
|
|
1110
1112
|
default: Y(() => [
|
|
1111
|
-
(A(!0), I(ve, null, ge(o.value, ($,
|
|
1113
|
+
(A(!0), I(ve, null, ge(o.value, ($, q) => (A(), le(_, {
|
|
1112
1114
|
key: $.code
|
|
1113
1115
|
}, {
|
|
1114
1116
|
default: Y(() => [
|
|
1115
1117
|
N(p, {
|
|
1116
1118
|
disabled: $.disabled || $.auth && !ee(i)($.auth),
|
|
1117
|
-
status: $.status || f[
|
|
1119
|
+
status: $.status || f[q % 3],
|
|
1118
1120
|
content: u($),
|
|
1119
1121
|
icon: $.icon || c($),
|
|
1120
|
-
onClick: (
|
|
1122
|
+
onClick: (L) => l($)
|
|
1121
1123
|
}, null, 8, ["disabled", "status", "content", "icon", "onClick"])
|
|
1122
1124
|
]),
|
|
1123
1125
|
_: 2
|
|
@@ -1161,7 +1163,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1161
1163
|
dataStatus: { default: "detail" }
|
|
1162
1164
|
},
|
|
1163
1165
|
setup(e, { expose: t }) {
|
|
1164
|
-
const n = e, o = M(void 0), { t: s } = De(), r = M(!0), i =
|
|
1166
|
+
const n = e, o = M(void 0), { t: s } = De(), r = M(!0), i = xe(() => n.items.length ? Ie(n.items, s) : {}), l = xe(() => n.items.length ? Vt(ae(n.items, !0), n.dataStatus, 6) : n.items), f = () => {
|
|
1165
1167
|
o.value.toggleCollapse();
|
|
1166
1168
|
};
|
|
1167
1169
|
return t({
|
|
@@ -1175,7 +1177,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1175
1177
|
}, 1600);
|
|
1176
1178
|
}
|
|
1177
1179
|
}), (a, b) => {
|
|
1178
|
-
const g =
|
|
1180
|
+
const g = z("vxe-checkbox"), y = z("vxe-form");
|
|
1179
1181
|
return A(), I("div", Fs, [
|
|
1180
1182
|
N(y, we({
|
|
1181
1183
|
ref_key: "xForm",
|
|
@@ -1290,13 +1292,13 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1290
1292
|
const o = ae(e, !0);
|
|
1291
1293
|
return n.forEach((s) => {
|
|
1292
1294
|
const r = o[s.field];
|
|
1293
|
-
r && s.itemRender.startField ? (o[s.itemRender.startField] =
|
|
1295
|
+
r && s.itemRender.startField ? (o[s.itemRender.startField] = _e(
|
|
1294
1296
|
o[s.itemRender.startField],
|
|
1295
1297
|
on
|
|
1296
|
-
), o[s.itemRender.endField] =
|
|
1298
|
+
), o[s.itemRender.endField] = _e(
|
|
1297
1299
|
o[s.itemRender.endField],
|
|
1298
1300
|
sn
|
|
1299
|
-
)) : r && (o[`${s.field}From`] =
|
|
1301
|
+
)) : r && (o[`${s.field}From`] = _e(r[0], on), o[`${s.field}To`] = _e(r[1], sn)), delete o[s.field];
|
|
1300
1302
|
}), o;
|
|
1301
1303
|
}, qt = () => be.get(nn) ? JSON.parse(be.get(nn)) : {}, Bs = [
|
|
1302
1304
|
{
|
|
@@ -1484,11 +1486,11 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1484
1486
|
},
|
|
1485
1487
|
emits: ["close", "search"],
|
|
1486
1488
|
setup(e, { emit: t }) {
|
|
1487
|
-
const n = e, o =
|
|
1489
|
+
const n = e, o = Ee(), s = o.appContext.config.globalProperties.$serviceApi, r = o.appContext.config.globalProperties.$hasAuthority, i = Dn(), { t: l } = De();
|
|
1488
1490
|
console.log("view ======", n.view);
|
|
1489
1491
|
const f = M(null), u = M(""), c = M(!1), a = M(!1), b = M(!1), g = M(!1), y = M(!0), w = M({}), p = be.get("loginer");
|
|
1490
1492
|
let _, k, R;
|
|
1491
|
-
const $ = M([]),
|
|
1493
|
+
const $ = M([]), q = xe(() => n.items.length ? Ie(B(), l) : {}), L = xe(() => n.items.length ? Vt(B(), "update") : n.items), B = () => {
|
|
1492
1494
|
const P = [
|
|
1493
1495
|
{ field: "title", title: "方案名称", required: !0 },
|
|
1494
1496
|
{
|
|
@@ -1513,24 +1515,24 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1513
1515
|
item: P,
|
|
1514
1516
|
...P.content
|
|
1515
1517
|
}, _ = F, a.value = !0;
|
|
1516
|
-
},
|
|
1518
|
+
}, U = () => {
|
|
1517
1519
|
f.value.validate(async (P) => {
|
|
1518
1520
|
if (!P) {
|
|
1519
1521
|
const F = d();
|
|
1520
1522
|
g.value = !0;
|
|
1521
|
-
const x = F.id ? "put" : "post", [
|
|
1522
|
-
g.value = !1,
|
|
1523
|
+
const x = F.id ? "put" : "post", [V, H] = await zt(s[x](Et, [F]));
|
|
1524
|
+
g.value = !1, V || (H[0].select = !1, H[0].content = JSON.parse(H[0].content), x === "post" ? $.value.splice($.value.length - 1, 0, H[0]) : $.value.splice(_, 1, H[0]), R = ae($.value, !0), ct(), a.value = !1);
|
|
1523
1525
|
}
|
|
1524
1526
|
});
|
|
1525
|
-
},
|
|
1527
|
+
}, j = () => {
|
|
1526
1528
|
b.value = !0;
|
|
1527
1529
|
const P = be.get("kCookies_param") ? JSON.parse(be.get("kCookies_param")) : {}, F = Object.assign(
|
|
1528
1530
|
{ pageSize: 50, pageNum: 1, userName: p, viewCode: n.view },
|
|
1529
1531
|
P
|
|
1530
1532
|
);
|
|
1531
1533
|
s.get(Et, F).then((x) => {
|
|
1532
|
-
const
|
|
1533
|
-
m(
|
|
1534
|
+
const V = x.list;
|
|
1535
|
+
m(V), R = ae($.value, !0);
|
|
1534
1536
|
}).finally(() => {
|
|
1535
1537
|
b.value = !1;
|
|
1536
1538
|
});
|
|
@@ -1539,9 +1541,9 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1539
1541
|
}, v = () => {
|
|
1540
1542
|
a.value ? (w.value = {}, a.value = !1) : (c.value = !1, oe("close"));
|
|
1541
1543
|
}, d = () => {
|
|
1542
|
-
const P = w.value, { title: F, isPrivate: x } = P,
|
|
1544
|
+
const P = w.value, { title: F, isPrivate: x } = P, V = be.get("kCookies_param") ? JSON.parse(be.get("kCookies_param")) : {}, H = {
|
|
1543
1545
|
...w.value.item,
|
|
1544
|
-
...
|
|
1546
|
+
...V,
|
|
1545
1547
|
title: F,
|
|
1546
1548
|
isPrivate: x,
|
|
1547
1549
|
viewCode: n.view,
|
|
@@ -1559,18 +1561,18 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1559
1561
|
}), P.push({ id: "add" }), $.value = P;
|
|
1560
1562
|
}, D = (P) => {
|
|
1561
1563
|
var x;
|
|
1562
|
-
return (x =
|
|
1564
|
+
return (x = L.value.find((V) => V.field === P)) == null ? void 0 : x.title;
|
|
1563
1565
|
}, J = (P, F) => {
|
|
1564
|
-
var
|
|
1565
|
-
const x = (
|
|
1566
|
+
var V, H, G, Q, he;
|
|
1567
|
+
const x = (V = n.items) == null ? void 0 : V.find((X) => X.field === P);
|
|
1566
1568
|
return (H = x == null ? void 0 : x.itemRender) != null && H.dictCode && ((he = (Q = (G = x == null ? void 0 : x.itemRender) == null ? void 0 : G.options) == null ? void 0 : Q.find((X) => X.dictCode === F)) == null ? void 0 : he.dictName) || F;
|
|
1567
1569
|
}, ie = async (P, F) => {
|
|
1568
|
-
if (await
|
|
1570
|
+
if (await Re.modal.confirm(
|
|
1569
1571
|
`继续操作将删除查询方案【${P.title}】`
|
|
1570
1572
|
) === "confirm") {
|
|
1571
1573
|
b.value = !0;
|
|
1572
|
-
const
|
|
1573
|
-
|
|
1574
|
+
const V = ae(P, !0);
|
|
1575
|
+
V.content = JSON.stringify(V.content), s.delete(Et, [V]).then(() => {
|
|
1574
1576
|
$.value.splice(F, 1), R = ae($.value, !0), ct();
|
|
1575
1577
|
}).finally(() => {
|
|
1576
1578
|
b.value = !1;
|
|
@@ -1585,12 +1587,12 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1585
1587
|
}, K = () => {
|
|
1586
1588
|
u.value = "", $.value = ae(R, !0);
|
|
1587
1589
|
};
|
|
1588
|
-
|
|
1590
|
+
j();
|
|
1589
1591
|
const oe = t;
|
|
1590
1592
|
return et(() => {
|
|
1591
1593
|
c.value = !0;
|
|
1592
1594
|
}), (P, F) => {
|
|
1593
|
-
const x =
|
|
1595
|
+
const x = z("el-popover"), V = z("el-scrollbar"), H = z("vxe-input"), G = z("ut-button"), Q = z("vxe-modal"), he = z("vxe-form");
|
|
1594
1596
|
return A(), I("div", qs, [
|
|
1595
1597
|
N(Q, {
|
|
1596
1598
|
modelValue: c.value,
|
|
@@ -1650,7 +1652,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1650
1652
|
}, " × ", 8, tr)) : se("", !0)
|
|
1651
1653
|
])
|
|
1652
1654
|
]),
|
|
1653
|
-
N(
|
|
1655
|
+
N(V, {
|
|
1654
1656
|
style: { flex: "4" },
|
|
1655
1657
|
class: "w-full overflow-y-auto"
|
|
1656
1658
|
}, {
|
|
@@ -1720,8 +1722,8 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1720
1722
|
ref_key: "xForm",
|
|
1721
1723
|
ref: f,
|
|
1722
1724
|
data: w.value,
|
|
1723
|
-
items:
|
|
1724
|
-
rules:
|
|
1725
|
+
items: L.value,
|
|
1726
|
+
rules: q.value,
|
|
1725
1727
|
"title-align": "right",
|
|
1726
1728
|
"title-width": 90
|
|
1727
1729
|
}, null, 8, ["data", "items", "rules"])
|
|
@@ -1737,7 +1739,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1737
1739
|
N(G, {
|
|
1738
1740
|
content: "confirm",
|
|
1739
1741
|
icon: "ri-save-3-line",
|
|
1740
|
-
onTap:
|
|
1742
|
+
onTap: U
|
|
1741
1743
|
})
|
|
1742
1744
|
])
|
|
1743
1745
|
]),
|
|
@@ -1765,12 +1767,12 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1765
1767
|
setup(e, { expose: t, emit: n }) {
|
|
1766
1768
|
const o = Ht(Lt());
|
|
1767
1769
|
let s;
|
|
1768
|
-
const r = {}, i =
|
|
1770
|
+
const r = {}, i = Ee(), l = i.appContext.config.globalProperties.$hasAuthority, f = i.appContext.config.globalProperties.$serviceApi, u = i.parent.type.name, c = i.appContext.config.globalProperties.$mode, a = e, { t: b } = De(), g = M(null), y = M(!1), w = {
|
|
1769
1771
|
icon: "vxe-icon-setting",
|
|
1770
1772
|
name: "favorite",
|
|
1771
1773
|
events: {
|
|
1772
|
-
click: (x,
|
|
1773
|
-
|
|
1774
|
+
click: (x, V) => {
|
|
1775
|
+
V.name === "favorite" && (y.value = !0);
|
|
1774
1776
|
}
|
|
1775
1777
|
}
|
|
1776
1778
|
}, p = () => a.columns.length ? Ie(a.columns, b) : {}, _ = () => {
|
|
@@ -1779,8 +1781,8 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1779
1781
|
const H = js.filter((Q) => !x.some((he) => he.field === Q.field)).map((Q) => (o.format && ["lastUpdateDate", "creationDate"].includes(Q.field) && (Q.formatter = o.format, Q.width = 90), Q)), G = x.findIndex((Q) => Q.field === "operate");
|
|
1780
1782
|
G !== -1 ? x.splice(G, 0, ...H) : x.push(...H);
|
|
1781
1783
|
}
|
|
1782
|
-
const
|
|
1783
|
-
return An(
|
|
1784
|
+
const V = o.gridId ? $(x) : x;
|
|
1785
|
+
return An(V, o.sortable);
|
|
1784
1786
|
};
|
|
1785
1787
|
tn.getItem(an).then((x) => {
|
|
1786
1788
|
s = x, k.columns = _();
|
|
@@ -1810,7 +1812,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1810
1812
|
// 接收 Promise
|
|
1811
1813
|
ajax: {
|
|
1812
1814
|
queryAll: ({ form: x }) => Un(a, f, x),
|
|
1813
|
-
query: ({ page: x, form:
|
|
1815
|
+
query: ({ page: x, form: V }) => Bn(a, V, x, f, c),
|
|
1814
1816
|
delete: ({ body: { removeRecords: x } }) => Ln(f, x, a),
|
|
1815
1817
|
save: ({ body: x }) => Promise.all(jn(f, x, a)),
|
|
1816
1818
|
querySuccess: ({ response: x }) => T("querySuccess", x),
|
|
@@ -1828,13 +1830,13 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1828
1830
|
u && a.url ? w : u
|
|
1829
1831
|
) : a.items;
|
|
1830
1832
|
function $(x) {
|
|
1831
|
-
const
|
|
1832
|
-
return
|
|
1833
|
+
const V = s ? s[o.gridId] : {};
|
|
1834
|
+
return V ? x.map((H, G) => {
|
|
1833
1835
|
const Q = (G + 1) * 10;
|
|
1834
|
-
return H._sort =
|
|
1836
|
+
return H._sort = V[H.field] || Q, r[H.field] = H._sort, H;
|
|
1835
1837
|
}).sort((H, G) => H._sort - G._sort) : x;
|
|
1836
1838
|
}
|
|
1837
|
-
const
|
|
1839
|
+
const q = () => {
|
|
1838
1840
|
a.items.length && (k.formConfig = {
|
|
1839
1841
|
titleWidth: 100,
|
|
1840
1842
|
titleAlign: "right",
|
|
@@ -1846,34 +1848,34 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1846
1848
|
Object.assign(k, x), o.gridId && (k.id = o.gridId, k.customConfig = {
|
|
1847
1849
|
storage: !0,
|
|
1848
1850
|
mode: "popup",
|
|
1849
|
-
checkMethod({ column:
|
|
1850
|
-
return !(
|
|
1851
|
+
checkMethod({ column: V }) {
|
|
1852
|
+
return !(V.field === "operate" || ["checkbox", "radio"].includes(V.type));
|
|
1851
1853
|
},
|
|
1852
1854
|
modalOptions: {
|
|
1853
1855
|
width: 750,
|
|
1854
1856
|
height: "75%"
|
|
1855
1857
|
}
|
|
1856
|
-
}), o.mergeFooter && (k.showFooter = !0, k.footerMethod = ({ columns:
|
|
1857
|
-
},
|
|
1858
|
+
}), o.mergeFooter && (k.showFooter = !0, k.footerMethod = ({ columns: V, data: H }) => Hn({ columns: V, data: H }, o.mergeFooter));
|
|
1859
|
+
}, L = () => {
|
|
1858
1860
|
g.value.commitProxy("query");
|
|
1859
|
-
},
|
|
1861
|
+
}, B = () => (k.editRules = p(), g.value.refreshColumn()), S = () => {
|
|
1860
1862
|
k.loading = !0;
|
|
1861
1863
|
}, E = () => {
|
|
1862
1864
|
k.loading = !1;
|
|
1863
|
-
}, O = () => On(g.value),
|
|
1864
|
-
const
|
|
1865
|
-
return
|
|
1866
|
-
}, T = (x,
|
|
1867
|
-
o != null && o.callback && (o != null && o.callback[x]) && (o == null || o.callback[x](
|
|
1865
|
+
}, O = () => On(g.value), U = () => g.value.getTableData().fullData, j = (x = !1) => {
|
|
1866
|
+
const V = a.columns[0].type, H = V === "radio" ? g.value.getRadioRecord(x) : g.value.getCheckboxRecords(x);
|
|
1867
|
+
return V === "checkbox" && !H.length ? (Fe(b("message.tip_selectedRecord")), []) : V === "radio" && !H ? (Fe(b("message.tip_selectedRecord")), null) : H;
|
|
1868
|
+
}, T = (x, V) => {
|
|
1869
|
+
o != null && o.callback && (o != null && o.callback[x]) && (o == null || o.callback[x](V));
|
|
1868
1870
|
}, v = ({ data: x }) => {
|
|
1869
|
-
const
|
|
1871
|
+
const V = a.items.filter((H) => {
|
|
1870
1872
|
var G, Q;
|
|
1871
1873
|
return (Q = (G = H.itemRender) == null ? void 0 : G.props) == null ? void 0 : Q.multiple;
|
|
1872
1874
|
});
|
|
1873
|
-
|
|
1875
|
+
V.forEach((H) => {
|
|
1874
1876
|
H.itemRender.props.defaultValue ? x[`_${H.field}`] = H.itemRender.props.defaultValue.split(",") : x[`_${H.field}`] = [];
|
|
1875
|
-
}),
|
|
1876
|
-
|
|
1877
|
+
}), V.length && setTimeout(() => {
|
|
1878
|
+
L();
|
|
1877
1879
|
}, 200);
|
|
1878
1880
|
};
|
|
1879
1881
|
let d;
|
|
@@ -1884,8 +1886,8 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1884
1886
|
{
|
|
1885
1887
|
disabled: !o.gridId,
|
|
1886
1888
|
handle: ".vxe-header--column",
|
|
1887
|
-
onEnd: async (
|
|
1888
|
-
const H =
|
|
1889
|
+
onEnd: async (V) => {
|
|
1890
|
+
const H = V.item, G = V.newIndex, Q = V.oldIndex, { fullColumn: he, tableColumn: X } = x.getTableColumn(), Be = H.parentNode, Pe = he[G], We = he[Q];
|
|
1889
1891
|
let ot = !1, _t = "固定列";
|
|
1890
1892
|
if (Pe.fixed ? ot = !1 : G === 0 || ["checkbox", "radio"].includes(We.type) ? (_t = "勾选列", ot = !0) : (We.field === "operate" || G === he.length - 1) && (ot = !0, _t = "操作列"), ot) {
|
|
1891
1893
|
const Te = Be.children[Q];
|
|
@@ -1907,19 +1909,19 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1907
1909
|
);
|
|
1908
1910
|
}, D = (x) => {
|
|
1909
1911
|
y.value = !1;
|
|
1910
|
-
const { form:
|
|
1911
|
-
Object.assign(
|
|
1912
|
+
const { form: V } = g.value.getProxyInfo();
|
|
1913
|
+
Object.assign(V, x), L();
|
|
1912
1914
|
};
|
|
1913
1915
|
t({
|
|
1914
|
-
getTableData:
|
|
1915
|
-
getSelectRecords:
|
|
1916
|
-
refreshData:
|
|
1917
|
-
refreshColumn:
|
|
1916
|
+
getTableData: U,
|
|
1917
|
+
getSelectRecords: j,
|
|
1918
|
+
refreshData: L,
|
|
1919
|
+
refreshColumn: B,
|
|
1918
1920
|
getInstance: O,
|
|
1919
1921
|
showLoading: S,
|
|
1920
1922
|
hiddenLoading: E,
|
|
1921
1923
|
reloadGrid: async () => {
|
|
1922
|
-
k.editRules = p(),
|
|
1924
|
+
k.editRules = p(), q();
|
|
1923
1925
|
}
|
|
1924
1926
|
});
|
|
1925
1927
|
const ie = ({ code: x }) => {
|
|
@@ -1944,11 +1946,11 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1944
1946
|
}), To(() => {
|
|
1945
1947
|
clearTimeout(P), d && d.destroy();
|
|
1946
1948
|
}), ft(() => {
|
|
1947
|
-
|
|
1949
|
+
q(), oe();
|
|
1948
1950
|
});
|
|
1949
1951
|
const F = n;
|
|
1950
|
-
return (x,
|
|
1951
|
-
const H =
|
|
1952
|
+
return (x, V) => {
|
|
1953
|
+
const H = z("vxe-grid");
|
|
1952
1954
|
return A(), I("div", fr, [
|
|
1953
1955
|
N(H, we({
|
|
1954
1956
|
ref_key: "xgrid",
|
|
@@ -1966,7 +1968,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1966
1968
|
items: x.items,
|
|
1967
1969
|
view: ee(u),
|
|
1968
1970
|
onSearch: D,
|
|
1969
|
-
onClose:
|
|
1971
|
+
onClose: V[0] || (V[0] = (G) => y.value = !1)
|
|
1970
1972
|
}, null, 8, ["items", "view"])) : se("", !0)
|
|
1971
1973
|
]);
|
|
1972
1974
|
};
|
|
@@ -1983,39 +1985,40 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
1983
1985
|
url: { default: "" },
|
|
1984
1986
|
method: { default: "post" },
|
|
1985
1987
|
title: { default: "数据记录" },
|
|
1988
|
+
titleWidth: { default: 100 },
|
|
1986
1989
|
dataStatus: { default: "detail" },
|
|
1987
1990
|
width: { default: 420 },
|
|
1988
1991
|
height: { default: 360 }
|
|
1989
1992
|
},
|
|
1990
1993
|
emits: ["close", "confirm"],
|
|
1991
1994
|
setup(e, { expose: t, emit: n }) {
|
|
1992
|
-
const o = e, s = Ht(Lt()), r = M(!1), l =
|
|
1993
|
-
b.value.validate(async (
|
|
1994
|
-
if (!
|
|
1995
|
-
const { record:
|
|
1995
|
+
const o = e, s = Ht(Lt()), r = M(!1), l = Ee().appContext.config.globalProperties.$serviceApi, f = xe(() => o.items.length ? Ie(o.items, u) : {}), { t: u } = De(), c = xe(() => o.items.length ? Vt(ae(o.items, !0), o.dataStatus, 24) : o.items), a = M(!1), b = M(null), g = () => {
|
|
1996
|
+
b.value.validate(async (L) => {
|
|
1997
|
+
if (!L) {
|
|
1998
|
+
const { record: B, url: S, method: E } = o;
|
|
1996
1999
|
if (S) {
|
|
1997
2000
|
y();
|
|
1998
|
-
const O = s != null && s.dataProcessMethod ? s == null ? void 0 : s.dataProcessMethod(
|
|
1999
|
-
w(),
|
|
2001
|
+
const O = s != null && s.dataProcessMethod ? s == null ? void 0 : s.dataProcessMethod(B) : B, [U, j] = await zt(l[E](S, O));
|
|
2002
|
+
w(), U || (ct(), q("confirm", j), k());
|
|
2000
2003
|
} else
|
|
2001
|
-
|
|
2004
|
+
q("confirm");
|
|
2002
2005
|
}
|
|
2003
2006
|
});
|
|
2004
2007
|
}, y = () => {
|
|
2005
2008
|
r.value = !0;
|
|
2006
2009
|
}, w = () => {
|
|
2007
2010
|
r.value = !1;
|
|
2008
|
-
}, p = (
|
|
2009
|
-
b.value.validate(
|
|
2010
|
-
}, _ = (
|
|
2011
|
-
b.value.validate(
|
|
2011
|
+
}, p = (L) => {
|
|
2012
|
+
b.value.validate(L);
|
|
2013
|
+
}, _ = (L) => {
|
|
2014
|
+
b.value.validate(L);
|
|
2012
2015
|
}, k = () => {
|
|
2013
|
-
a.value = !1,
|
|
2016
|
+
a.value = !1, q("close");
|
|
2014
2017
|
}, R = () => {
|
|
2015
2018
|
a.value = !0;
|
|
2016
2019
|
}, $ = () => {
|
|
2017
2020
|
k();
|
|
2018
|
-
},
|
|
2021
|
+
}, q = n;
|
|
2019
2022
|
return t({
|
|
2020
2023
|
showLoading: y,
|
|
2021
2024
|
hiddenLoading: w,
|
|
@@ -2025,35 +2028,35 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2025
2028
|
validateForm: _
|
|
2026
2029
|
}), ft(() => {
|
|
2027
2030
|
R();
|
|
2028
|
-
}), (
|
|
2029
|
-
const S =
|
|
2031
|
+
}), (L, B) => {
|
|
2032
|
+
const S = z("vxe-form"), E = z("ut-button"), O = z("vxe-modal");
|
|
2030
2033
|
return A(), I("div", null, [
|
|
2031
2034
|
N(O, we({
|
|
2032
2035
|
modelValue: a.value,
|
|
2033
|
-
"onUpdate:modelValue":
|
|
2034
|
-
title:
|
|
2035
|
-
width:
|
|
2036
|
-
height:
|
|
2036
|
+
"onUpdate:modelValue": B[0] || (B[0] = (U) => a.value = U),
|
|
2037
|
+
title: L.title,
|
|
2038
|
+
width: L.width,
|
|
2039
|
+
height: L.height,
|
|
2037
2040
|
loading: r.value,
|
|
2038
|
-
"show-footer":
|
|
2041
|
+
"show-footer": L.dataStatus !== "detail",
|
|
2039
2042
|
"min-width": "240",
|
|
2040
2043
|
"min-height": "300",
|
|
2041
2044
|
"destroy-on-close": "",
|
|
2042
2045
|
resize: ""
|
|
2043
|
-
},
|
|
2046
|
+
}, L.modalOptions, { onClose: k }), Tn({
|
|
2044
2047
|
default: Y(() => [
|
|
2045
2048
|
N(S, we({
|
|
2046
2049
|
ref_key: "xForm",
|
|
2047
2050
|
ref: b,
|
|
2048
|
-
data:
|
|
2051
|
+
data: L.record,
|
|
2049
2052
|
items: c.value,
|
|
2050
2053
|
rules: f.value,
|
|
2051
|
-
"title-width":
|
|
2054
|
+
"title-width": L.titleWidth,
|
|
2052
2055
|
"title-align": "right"
|
|
2053
|
-
},
|
|
2056
|
+
}, L.formOptions), {
|
|
2054
2057
|
dividerPrefix: Y(() => []),
|
|
2055
2058
|
_: 1
|
|
2056
|
-
}, 16, ["data", "items", "rules"])
|
|
2059
|
+
}, 16, ["data", "items", "rules", "title-width"])
|
|
2057
2060
|
]),
|
|
2058
2061
|
_: 2
|
|
2059
2062
|
}, [
|
|
@@ -2106,7 +2109,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2106
2109
|
},
|
|
2107
2110
|
emits: ["close", "confirm", "actived", "buttonClick"],
|
|
2108
2111
|
setup(e, { expose: t, emit: n }) {
|
|
2109
|
-
const o = Ht(Lt()), s = e, r = M(!1), i = M(null), l =
|
|
2112
|
+
const o = Ht(Lt()), s = e, r = M(!1), i = M(null), l = Ee(), f = l.appContext.config.globalProperties.$hasAuthority, u = l.appContext.config.globalProperties.$serviceApi, c = l.appContext.config.globalProperties.$mode, { t: a } = De(), b = () => {
|
|
2110
2113
|
const d = ae(s.columns, !0).map((m) => (s.editable ? !m.type && !m.editRender && s.editable && m.editable && (m.editRender = { name: "VxeInput" }) : m.editRender = { enabled: !1 }, m));
|
|
2111
2114
|
return An(d, o.sortable);
|
|
2112
2115
|
}, g = () => s.items.length ? Pn(ae(s.items, !0)) : s.items, y = () => s.columns.length ? Ie(s.columns, a) : {}, w = Ze({
|
|
@@ -2159,21 +2162,21 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2159
2162
|
try {
|
|
2160
2163
|
d.forEach((ie) => Object.assign(ie, s.defaultParams)), J = await u.post(D, d);
|
|
2161
2164
|
} finally {
|
|
2162
|
-
J &&
|
|
2165
|
+
J && U("confirm", J), J && ct(a("message.operateSuccess")), j(), E();
|
|
2163
2166
|
}
|
|
2164
2167
|
} else
|
|
2165
|
-
s.autoClose &&
|
|
2168
|
+
s.autoClose && j(), U("confirm", d);
|
|
2166
2169
|
}, k = () => {
|
|
2167
2170
|
i.value.commitProxy("query");
|
|
2168
2171
|
}, R = () => {
|
|
2169
2172
|
w.editRules = y(), i.value.refreshColumn();
|
|
2170
|
-
}, $ = () => On(i.value),
|
|
2173
|
+
}, $ = () => On(i.value), q = ({ row: d }) => {
|
|
2171
2174
|
const m = s.columns[0].type;
|
|
2172
2175
|
m === "checkbox" ? i.value.setCheckboxRow(d, !0) : m === "radio" && i.value.setRadioRow(d);
|
|
2173
|
-
},
|
|
2174
|
-
|
|
2175
|
-
},
|
|
2176
|
-
|
|
2176
|
+
}, L = (d) => {
|
|
2177
|
+
U("actived", d);
|
|
2178
|
+
}, B = ({ code: d }) => {
|
|
2179
|
+
U("buttonClick", d);
|
|
2177
2180
|
}, S = () => {
|
|
2178
2181
|
w.loading = !0;
|
|
2179
2182
|
}, E = () => {
|
|
@@ -2181,8 +2184,8 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2181
2184
|
}, O = (d = !1) => {
|
|
2182
2185
|
const m = s.columns[0].type, D = m === "radio" ? xgrid.value.getRadioRecord(d) : xgrid.value.getCheckboxRecords(d);
|
|
2183
2186
|
return m === "checkbox" && !D.length ? (Fe(a("message.tip_selectedRecord")), []) : m === "radio" && !D ? (Fe(a("message.tip_selectedRecord")), null) : D;
|
|
2184
|
-
},
|
|
2185
|
-
Xe(o.beforeClose) && !o.beforeClose() || (r.value = !1,
|
|
2187
|
+
}, U = n, j = () => {
|
|
2188
|
+
Xe(o.beforeClose) && !o.beforeClose() || (r.value = !1, U("close"));
|
|
2186
2189
|
}, T = () => {
|
|
2187
2190
|
s.items.length && (w.formConfig = {
|
|
2188
2191
|
titleWidth: 100,
|
|
@@ -2204,11 +2207,11 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2204
2207
|
reloadGrid: async () => {
|
|
2205
2208
|
T();
|
|
2206
2209
|
},
|
|
2207
|
-
close:
|
|
2210
|
+
close: j
|
|
2208
2211
|
}), ft(() => {
|
|
2209
2212
|
r.value = !0, T();
|
|
2210
2213
|
}), (d, m) => {
|
|
2211
|
-
const D =
|
|
2214
|
+
const D = z("vxe-grid"), J = z("ut-button"), ie = z("vxe-modal"), ce = $o("spinning");
|
|
2212
2215
|
return $n((A(), I("div", null, [
|
|
2213
2216
|
N(ie, {
|
|
2214
2217
|
modelValue: r.value,
|
|
@@ -2219,7 +2222,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2219
2222
|
"show-footer": d.showFooter,
|
|
2220
2223
|
resize: "",
|
|
2221
2224
|
"destroy-on-close": "",
|
|
2222
|
-
onClose:
|
|
2225
|
+
onClose: j
|
|
2223
2226
|
}, {
|
|
2224
2227
|
default: Y(() => [
|
|
2225
2228
|
Ge(d.$slots, "default"),
|
|
@@ -2227,10 +2230,10 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2227
2230
|
ref_key: "xGrid",
|
|
2228
2231
|
ref: i
|
|
2229
2232
|
}, w, { columnConfig: { resizable: !0 } }, It(ee(o).events || {}), {
|
|
2230
|
-
onEditActivated:
|
|
2231
|
-
onToolbarButtonClick:
|
|
2232
|
-
onToolbarToolClick:
|
|
2233
|
-
onCellClick:
|
|
2233
|
+
onEditActivated: L,
|
|
2234
|
+
onToolbarButtonClick: B,
|
|
2235
|
+
onToolbarToolClick: B,
|
|
2236
|
+
onCellClick: q
|
|
2234
2237
|
}), null, 16)
|
|
2235
2238
|
]),
|
|
2236
2239
|
footer: Y(() => [
|
|
@@ -2239,7 +2242,7 @@ const Mn = /* @__PURE__ */ Ae(ds, [["render", ps], ["__scopeId", "data-v-10544e1
|
|
|
2239
2242
|
icon: "ri-close-line",
|
|
2240
2243
|
status: "warning",
|
|
2241
2244
|
content: "cancel",
|
|
2242
|
-
onTap:
|
|
2245
|
+
onTap: j
|
|
2243
2246
|
}),
|
|
2244
2247
|
N(J, {
|
|
2245
2248
|
icon: "ri-save-3-line",
|
|
@@ -2263,11 +2266,11 @@ function Yn(e, t) {
|
|
|
2263
2266
|
const { toString: _r } = Object.prototype, { getPrototypeOf: Wt } = Object, { iterator: mt, toStringTag: Jn } = Symbol, ht = /* @__PURE__ */ ((e) => (t) => {
|
|
2264
2267
|
const n = _r.call(t);
|
|
2265
2268
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
2266
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
2269
|
+
})(/* @__PURE__ */ Object.create(null)), Ce = (e) => (e = e.toLowerCase(), (t) => ht(t) === e), gt = (e) => (t) => typeof t === e, { isArray: qe } = Array, Qe = gt("undefined");
|
|
2267
2270
|
function xr(e) {
|
|
2268
2271
|
return e !== null && !Qe(e) && e.constructor !== null && !Qe(e.constructor) && pe(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
2269
2272
|
}
|
|
2270
|
-
const Kn =
|
|
2273
|
+
const Kn = Ce("ArrayBuffer");
|
|
2271
2274
|
function Cr(e) {
|
|
2272
2275
|
let t;
|
|
2273
2276
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Kn(e.buffer), t;
|
|
@@ -2277,11 +2280,11 @@ const kr = gt("string"), pe = gt("function"), Gn = gt("number"), yt = (e) => e !
|
|
|
2277
2280
|
return !1;
|
|
2278
2281
|
const t = Wt(e);
|
|
2279
2282
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Jn in e) && !(mt in e);
|
|
2280
|
-
}, Er =
|
|
2283
|
+
}, Er = Ce("Date"), Rr = Ce("File"), Tr = Ce("Blob"), $r = Ce("FileList"), Or = (e) => yt(e) && pe(e.pipe), Dr = (e) => {
|
|
2281
2284
|
let t;
|
|
2282
2285
|
return e && (typeof FormData == "function" && e instanceof FormData || pe(e.append) && ((t = ht(e)) === "formdata" || // detect form-data instance
|
|
2283
2286
|
t === "object" && pe(e.toString) && e.toString() === "[object FormData]"));
|
|
2284
|
-
}, Ar =
|
|
2287
|
+
}, Ar = Ce("URLSearchParams"), [Pr, Fr, Nr, Mr] = ["ReadableStream", "Request", "Response", "Headers"].map(Ce), Ir = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2285
2288
|
function tt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
2286
2289
|
if (e === null || typeof e > "u")
|
|
2287
2290
|
return;
|
|
@@ -2357,12 +2360,12 @@ const Ur = (e, t, n, { allOwnKeys: o } = {}) => (tt(t, (s, r) => {
|
|
|
2357
2360
|
for (; (n = e.exec(t)) !== null; )
|
|
2358
2361
|
o.push(n);
|
|
2359
2362
|
return o;
|
|
2360
|
-
}, Yr =
|
|
2363
|
+
}, Yr = Ce("HTMLFormElement"), Jr = (e) => e.toLowerCase().replace(
|
|
2361
2364
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
2362
2365
|
function(n, o, s) {
|
|
2363
2366
|
return o.toUpperCase() + s;
|
|
2364
2367
|
}
|
|
2365
|
-
), ln = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kr =
|
|
2368
|
+
), ln = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Kr = Ce("RegExp"), Zn = (e, t) => {
|
|
2366
2369
|
const n = Object.getOwnPropertyDescriptors(e), o = {};
|
|
2367
2370
|
tt(n, (s, r) => {
|
|
2368
2371
|
let i;
|
|
@@ -2412,7 +2415,7 @@ const ti = (e) => {
|
|
|
2412
2415
|
return o;
|
|
2413
2416
|
};
|
|
2414
2417
|
return n(e, 0);
|
|
2415
|
-
}, ni =
|
|
2418
|
+
}, ni = Ce("AsyncFunction"), oi = (e) => e && (yt(e) || pe(e)) && pe(e.then) && pe(e.catch), eo = ((e, t) => e ? setImmediate : t ? ((n, o) => (Ne.addEventListener("message", ({ source: s, data: r }) => {
|
|
2416
2419
|
s === Ne && r === n && o.length && o.shift()();
|
|
2417
2420
|
}, !1), (s) => {
|
|
2418
2421
|
o.push(s), Ne.postMessage(n, "*");
|
|
@@ -2452,7 +2455,7 @@ const ti = (e) => {
|
|
|
2452
2455
|
inherits: Lr,
|
|
2453
2456
|
toFlatObject: jr,
|
|
2454
2457
|
kindOf: ht,
|
|
2455
|
-
kindOfTest:
|
|
2458
|
+
kindOfTest: Ce,
|
|
2456
2459
|
endsWith: Vr,
|
|
2457
2460
|
toArray: zr,
|
|
2458
2461
|
forEachEntry: Hr,
|
|
@@ -3272,7 +3275,7 @@ const fo = (e) => {
|
|
|
3272
3275
|
return;
|
|
3273
3276
|
const R = me.from(
|
|
3274
3277
|
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
3275
|
-
),
|
|
3278
|
+
), q = {
|
|
3276
3279
|
data: !l || l === "text" || l === "json" ? p.responseText : p.response,
|
|
3277
3280
|
status: p.status,
|
|
3278
3281
|
statusText: p.statusText,
|
|
@@ -3280,11 +3283,11 @@ const fo = (e) => {
|
|
|
3280
3283
|
config: e,
|
|
3281
3284
|
request: p
|
|
3282
3285
|
};
|
|
3283
|
-
co(function(
|
|
3284
|
-
n(
|
|
3285
|
-
}, function(
|
|
3286
|
-
o(
|
|
3287
|
-
},
|
|
3286
|
+
co(function(B) {
|
|
3287
|
+
n(B), w();
|
|
3288
|
+
}, function(B) {
|
|
3289
|
+
o(B), w();
|
|
3290
|
+
}, q), p = null;
|
|
3288
3291
|
}
|
|
3289
3292
|
"onloadend" in p ? p.onloadend = _ : p.onreadystatechange = function() {
|
|
3290
3293
|
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
@@ -3294,15 +3297,15 @@ const fo = (e) => {
|
|
|
3294
3297
|
o(new W("Network Error", W.ERR_NETWORK, e, p)), p = null;
|
|
3295
3298
|
}, p.ontimeout = function() {
|
|
3296
3299
|
let $ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
3297
|
-
const
|
|
3300
|
+
const q = s.transitional || io;
|
|
3298
3301
|
s.timeoutErrorMessage && ($ = s.timeoutErrorMessage), o(new W(
|
|
3299
3302
|
$,
|
|
3300
|
-
|
|
3303
|
+
q.clarifyTimeoutError ? W.ETIMEDOUT : W.ECONNABORTED,
|
|
3301
3304
|
e,
|
|
3302
3305
|
p
|
|
3303
3306
|
)), p = null;
|
|
3304
|
-
}, r === void 0 && i.setContentType(null), "setRequestHeader" in p && h.forEach(i.toJSON(), function($,
|
|
3305
|
-
p.setRequestHeader(
|
|
3307
|
+
}, r === void 0 && i.setContentType(null), "setRequestHeader" in p && h.forEach(i.toJSON(), function($, q) {
|
|
3308
|
+
p.setRequestHeader(q, $);
|
|
3306
3309
|
}), h.isUndefined(s.withCredentials) || (p.withCredentials = !!s.withCredentials), l && l !== "json" && (p.responseType = s.responseType), u && ([b, y] = ut(u, !0), p.addEventListener("progress", b)), f && p.upload && ([a, g] = ut(f), p.upload.addEventListener("progress", a), p.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (c = (R) => {
|
|
3307
3310
|
p && (o(!R || R.type ? new He(null, e, p) : R), p.abort(), p = null);
|
|
3308
3311
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
@@ -3459,17 +3462,17 @@ const zi = async (e) => {
|
|
|
3459
3462
|
let p;
|
|
3460
3463
|
try {
|
|
3461
3464
|
if (f && Vi && n !== "get" && n !== "head" && (p = await qi(c, o)) !== 0) {
|
|
3462
|
-
let
|
|
3465
|
+
let q = new Request(t, {
|
|
3463
3466
|
method: "POST",
|
|
3464
3467
|
body: o,
|
|
3465
3468
|
duplex: "half"
|
|
3466
|
-
}),
|
|
3467
|
-
if (h.isFormData(o) && (
|
|
3468
|
-
const [
|
|
3469
|
+
}), L;
|
|
3470
|
+
if (h.isFormData(o) && (L = q.headers.get("content-type")) && c.setContentType(L), q.body) {
|
|
3471
|
+
const [B, S] = pn(
|
|
3469
3472
|
p,
|
|
3470
3473
|
ut(mn(f))
|
|
3471
3474
|
);
|
|
3472
|
-
o = gn(
|
|
3475
|
+
o = gn(q.body, yn, B, S);
|
|
3473
3476
|
}
|
|
3474
3477
|
}
|
|
3475
3478
|
h.isString(a) || (a = a ? "include" : "omit");
|
|
@@ -3486,25 +3489,25 @@ const zi = async (e) => {
|
|
|
3486
3489
|
let k = await fetch(y);
|
|
3487
3490
|
const R = Pt && (u === "stream" || u === "response");
|
|
3488
3491
|
if (Pt && (l || R && w)) {
|
|
3489
|
-
const
|
|
3492
|
+
const q = {};
|
|
3490
3493
|
["status", "statusText", "headers"].forEach((E) => {
|
|
3491
|
-
|
|
3494
|
+
q[E] = k[E];
|
|
3492
3495
|
});
|
|
3493
|
-
const
|
|
3494
|
-
|
|
3496
|
+
const L = h.toFiniteNumber(k.headers.get("content-length")), [B, S] = l && pn(
|
|
3497
|
+
L,
|
|
3495
3498
|
ut(mn(l), !0)
|
|
3496
3499
|
) || [];
|
|
3497
3500
|
k = new Response(
|
|
3498
|
-
gn(k.body, yn,
|
|
3501
|
+
gn(k.body, yn, B, () => {
|
|
3499
3502
|
S && S(), w && w();
|
|
3500
3503
|
}),
|
|
3501
|
-
|
|
3504
|
+
q
|
|
3502
3505
|
);
|
|
3503
3506
|
}
|
|
3504
3507
|
u = u || "text";
|
|
3505
3508
|
let $ = await dt[h.findKey(dt, u) || "text"](k, e);
|
|
3506
|
-
return !R && w && w(), await new Promise((
|
|
3507
|
-
co(
|
|
3509
|
+
return !R && w && w(), await new Promise((q, L) => {
|
|
3510
|
+
co(q, L, {
|
|
3508
3511
|
data: $,
|
|
3509
3512
|
headers: me.from(k.headers),
|
|
3510
3513
|
status: k.status,
|
|
@@ -3636,7 +3639,7 @@ function Yi(e, t, n) {
|
|
|
3636
3639
|
const at = {
|
|
3637
3640
|
assertOptions: Yi,
|
|
3638
3641
|
validators: wt
|
|
3639
|
-
},
|
|
3642
|
+
}, ke = at.validators;
|
|
3640
3643
|
let Me = class {
|
|
3641
3644
|
constructor(t) {
|
|
3642
3645
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -3673,17 +3676,17 @@ let Me = class {
|
|
|
3673
3676
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Ue(this.defaults, n);
|
|
3674
3677
|
const { transitional: o, paramsSerializer: s, headers: r } = n;
|
|
3675
3678
|
o !== void 0 && at.assertOptions(o, {
|
|
3676
|
-
silentJSONParsing:
|
|
3677
|
-
forcedJSONParsing:
|
|
3678
|
-
clarifyTimeoutError:
|
|
3679
|
+
silentJSONParsing: ke.transitional(ke.boolean),
|
|
3680
|
+
forcedJSONParsing: ke.transitional(ke.boolean),
|
|
3681
|
+
clarifyTimeoutError: ke.transitional(ke.boolean)
|
|
3679
3682
|
}, !1), s != null && (h.isFunction(s) ? n.paramsSerializer = {
|
|
3680
3683
|
serialize: s
|
|
3681
3684
|
} : at.assertOptions(s, {
|
|
3682
|
-
encode:
|
|
3683
|
-
serialize:
|
|
3685
|
+
encode: ke.function,
|
|
3686
|
+
serialize: ke.function
|
|
3684
3687
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), at.assertOptions(n, {
|
|
3685
|
-
baseUrl:
|
|
3686
|
-
withXsrfToken:
|
|
3688
|
+
baseUrl: ke.spelling("baseURL"),
|
|
3689
|
+
withXsrfToken: ke.spelling("withXSRFToken")
|
|
3687
3690
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
3688
3691
|
let i = r && h.merge(
|
|
3689
3692
|
r.common,
|
|
@@ -3977,6 +3980,7 @@ const {
|
|
|
3977
3980
|
field: { default: "" },
|
|
3978
3981
|
dataStatus: { default: "" },
|
|
3979
3982
|
renderMode: { default: "item" },
|
|
3983
|
+
filePath: {},
|
|
3980
3984
|
size: { default: "mini" },
|
|
3981
3985
|
mode: { default: "" },
|
|
3982
3986
|
limitCount: { default: 9 },
|
|
@@ -3997,10 +4001,10 @@ const {
|
|
|
3997
4001
|
Ke(
|
|
3998
4002
|
() => n.record[n.field],
|
|
3999
4003
|
() => {
|
|
4000
|
-
|
|
4004
|
+
B();
|
|
4001
4005
|
}
|
|
4002
4006
|
);
|
|
4003
|
-
const s =
|
|
4007
|
+
const s = Ee().appContext.config.globalProperties.$url, r = M(""), i = M(!1), l = ["image/gif", "image/jpeg", "image/png"], f = M(null), u = xe(() => {
|
|
4004
4008
|
const E = be.get("authorized-token");
|
|
4005
4009
|
return {
|
|
4006
4010
|
Authorization: "Bearer " + JSON.parse(E).accessToken
|
|
@@ -4009,30 +4013,32 @@ const {
|
|
|
4009
4013
|
new Fn(S.file, {
|
|
4010
4014
|
quality: n.quality,
|
|
4011
4015
|
mimeType: S.file.type,
|
|
4012
|
-
success(
|
|
4013
|
-
const
|
|
4014
|
-
g(E, O,
|
|
4016
|
+
success(U) {
|
|
4017
|
+
const j = new File([U], U.name, { type: U.type });
|
|
4018
|
+
g(E, O, j), console.log({ result: U, file: j });
|
|
4015
4019
|
}
|
|
4016
4020
|
});
|
|
4017
4021
|
}) : new Promise(
|
|
4018
4022
|
(E, O) => g(E, O, S.file)
|
|
4019
4023
|
), g = (S, E, O) => {
|
|
4020
|
-
const
|
|
4021
|
-
|
|
4022
|
-
const
|
|
4023
|
-
|
|
4024
|
+
const U = new FormData();
|
|
4025
|
+
U.append("file", O);
|
|
4026
|
+
const j = `${n.filePath}/${_e(/* @__PURE__ */ new Date(), "yyyyMMdd")}`;
|
|
4027
|
+
n.filePath && U.append("filePath", j);
|
|
4028
|
+
const T = s + "/ufil/file/uploadMultipart";
|
|
4029
|
+
return i.value = !0, re.post(T, U, {
|
|
4024
4030
|
headers: Object.assign(
|
|
4025
4031
|
{ "Content-Type": "multipart/form-data" },
|
|
4026
4032
|
u.value
|
|
4027
4033
|
),
|
|
4028
|
-
onUploadProgress(
|
|
4029
|
-
const
|
|
4030
|
-
|
|
4034
|
+
onUploadProgress(v) {
|
|
4035
|
+
const d = Math.round(
|
|
4036
|
+
v.loaded * 100 / (v.total || 0)
|
|
4031
4037
|
);
|
|
4032
|
-
r.value = `进度${
|
|
4038
|
+
r.value = `进度${d}%`;
|
|
4033
4039
|
}
|
|
4034
|
-
}).then(async (
|
|
4035
|
-
r.value = "处理中...", O.path =
|
|
4040
|
+
}).then(async (v) => {
|
|
4041
|
+
r.value = "处理中...", O.path = v.data.data, O.url = `${s}/ufil${O.path}`, a.value.push(O), console.log(O), i.value = !1, S(O);
|
|
4036
4042
|
}).catch(() => {
|
|
4037
4043
|
i.value = !1, E(null);
|
|
4038
4044
|
});
|
|
@@ -4049,11 +4055,11 @@ const {
|
|
|
4049
4055
|
}, p = ({ option: S }) => {
|
|
4050
4056
|
if (n.remove)
|
|
4051
4057
|
return n.remove(S, a);
|
|
4052
|
-
|
|
4058
|
+
L("remove", S, a);
|
|
4053
4059
|
}, _ = (S, E) => {
|
|
4054
|
-
a.value.splice(E, 1),
|
|
4060
|
+
a.value.splice(E, 1), L("remove", S, a);
|
|
4055
4061
|
}, k = (S) => {
|
|
4056
|
-
|
|
4062
|
+
Re.previewImage({ activeIndex: 0, urlList: [S.url] });
|
|
4057
4063
|
}, R = (S) => {
|
|
4058
4064
|
const E = S.type || S.url.split(".").pop();
|
|
4059
4065
|
let O = "";
|
|
@@ -4100,19 +4106,19 @@ const {
|
|
|
4100
4106
|
return O;
|
|
4101
4107
|
}, $ = (S) => {
|
|
4102
4108
|
let E = n.size === "small" ? 10 : 9;
|
|
4103
|
-
return ((
|
|
4104
|
-
const T =
|
|
4105
|
-
if (v.length <= E) return
|
|
4109
|
+
return ((j) => {
|
|
4110
|
+
const T = j.lastIndexOf("."), v = T > 0 ? j.substring(0, T) : j, d = T > 0 ? j.substring(T) : "";
|
|
4111
|
+
if (v.length <= E) return j;
|
|
4106
4112
|
const m = n.renderMode === "item" ? v.substring(0, E - 5) : "", D = v.substring(v.length - (E - 6));
|
|
4107
4113
|
return `${m}...${D}${d}`;
|
|
4108
|
-
})(((
|
|
4109
|
-
if (
|
|
4110
|
-
const T =
|
|
4114
|
+
})(((j) => {
|
|
4115
|
+
if (j.name) return j.name;
|
|
4116
|
+
const T = j.url, v = T.includes("\\") ? "\\" : "/";
|
|
4111
4117
|
return T.split(v).pop();
|
|
4112
4118
|
})(S));
|
|
4113
|
-
},
|
|
4119
|
+
}, q = (S) => {
|
|
4114
4120
|
console.log(S);
|
|
4115
|
-
},
|
|
4121
|
+
}, L = t, B = () => {
|
|
4116
4122
|
const S = n.record[n.field];
|
|
4117
4123
|
if (a.value = [], S)
|
|
4118
4124
|
if (S && Oe(S)) {
|
|
@@ -4130,9 +4136,9 @@ const {
|
|
|
4130
4136
|
});
|
|
4131
4137
|
};
|
|
4132
4138
|
return ft(() => {
|
|
4133
|
-
|
|
4139
|
+
B(), console.log("fileList");
|
|
4134
4140
|
}), (S, E) => {
|
|
4135
|
-
const O =
|
|
4141
|
+
const O = z("vxe-tooltip"), U = z("vxe-icon"), j = z("vxe-upload");
|
|
4136
4142
|
return A(), I("div", Xi, [
|
|
4137
4143
|
C("div", Qi, [
|
|
4138
4144
|
(A(!0), I(ve, null, ge(a.value, (T, v) => (A(), I("div", {
|
|
@@ -4159,7 +4165,7 @@ const {
|
|
|
4159
4165
|
C("i", {
|
|
4160
4166
|
class: "vxe-icon-download ut-download-icon",
|
|
4161
4167
|
style: Ve({ fontSize: S.renderMode === "item" ? "60px" : "48px" }),
|
|
4162
|
-
onClick: (d) =>
|
|
4168
|
+
onClick: (d) => q(T)
|
|
4163
4169
|
}, null, 12, oa)
|
|
4164
4170
|
])) : (A(), le(O, {
|
|
4165
4171
|
key: 2,
|
|
@@ -4181,7 +4187,7 @@ const {
|
|
|
4181
4187
|
C("i", {
|
|
4182
4188
|
class: "vxe-icon-download ut-download-icon",
|
|
4183
4189
|
style: Ve({ fontSize: S.renderMode === "item" ? "60px" : "48px" }),
|
|
4184
|
-
onClick: (d) =>
|
|
4190
|
+
onClick: (d) => q(T)
|
|
4185
4191
|
}, null, 12, ia)
|
|
4186
4192
|
])
|
|
4187
4193
|
]),
|
|
@@ -4206,7 +4212,7 @@ const {
|
|
|
4206
4212
|
C("div", ua, [
|
|
4207
4213
|
i.value ? se("", !0) : (A(), I("span", da)),
|
|
4208
4214
|
i.value ? se("", !0) : (A(), I("div", fa, " 点击上传 ")),
|
|
4209
|
-
i.value ? (A(), le(
|
|
4215
|
+
i.value ? (A(), le(U, {
|
|
4210
4216
|
key: 2,
|
|
4211
4217
|
name: "spinner",
|
|
4212
4218
|
status: "primary",
|
|
@@ -4217,7 +4223,7 @@ const {
|
|
|
4217
4223
|
])
|
|
4218
4224
|
], 2)) : se("", !0)
|
|
4219
4225
|
]),
|
|
4220
|
-
N(
|
|
4226
|
+
N(j, we({
|
|
4221
4227
|
ref_key: "xupload",
|
|
4222
4228
|
ref: f,
|
|
4223
4229
|
modelValue: c.value,
|
|
@@ -4261,29 +4267,29 @@ const {
|
|
|
4261
4267
|
setup(e, { emit: t }) {
|
|
4262
4268
|
const n = e, o = t, s = M(!1), r = Oo(n, "modelValue"), i = M(Object.keys(Io.icons)), l = M("ri-"), f = M(), u = ae(i.value, !0), c = M(35), a = M(1), b = M(0), g = M(""), y = () => {
|
|
4263
4269
|
f.value = "corner-down-right-fill", r.value && (f.value = r.value.split(":")[1]);
|
|
4264
|
-
}, w =
|
|
4270
|
+
}, w = xe(() => a.value === 1 ? u.filter((B) => B.includes(g.value)).slice(a.value - 1, c.value) : u.filter((B) => B.includes(g.value)).slice(
|
|
4265
4271
|
c.value * (a.value - 1),
|
|
4266
4272
|
c.value * (a.value - 1) + c.value
|
|
4267
|
-
)), p =
|
|
4268
|
-
if (r.value === l.value +
|
|
4273
|
+
)), p = xe(() => (B) => {
|
|
4274
|
+
if (r.value === l.value + B)
|
|
4269
4275
|
return {
|
|
4270
4276
|
borderColor: "var(--el-color-primary)",
|
|
4271
4277
|
color: "var(--el-color-primary)"
|
|
4272
4278
|
};
|
|
4273
4279
|
});
|
|
4274
|
-
function _(
|
|
4275
|
-
f.value =
|
|
4280
|
+
function _(B) {
|
|
4281
|
+
f.value = B, o("update:modelValue", R()), L();
|
|
4276
4282
|
}
|
|
4277
|
-
function k(
|
|
4278
|
-
a.value =
|
|
4283
|
+
function k(B) {
|
|
4284
|
+
a.value = B;
|
|
4279
4285
|
}
|
|
4280
4286
|
const R = () => l.value === "ri-" ? "ri:" + f.value : l.value + f.value, $ = () => {
|
|
4281
4287
|
f.value = "corner-down-right-fill", o("update:modelValue", "");
|
|
4282
|
-
},
|
|
4288
|
+
}, q = () => {
|
|
4283
4289
|
a.value === 1 ? b.value = u.filter(
|
|
4284
|
-
(
|
|
4290
|
+
(B) => B.includes(g.value)
|
|
4285
4291
|
).length : b.value = u.length;
|
|
4286
|
-
},
|
|
4292
|
+
}, L = () => {
|
|
4287
4293
|
s.value = !1, g.value = "";
|
|
4288
4294
|
};
|
|
4289
4295
|
return Ke(
|
|
@@ -4296,12 +4302,12 @@ const {
|
|
|
4296
4302
|
), Ke(
|
|
4297
4303
|
() => g.value,
|
|
4298
4304
|
() => {
|
|
4299
|
-
a.value = 1,
|
|
4305
|
+
a.value = 1, q();
|
|
4300
4306
|
}
|
|
4301
4307
|
), et(() => {
|
|
4302
|
-
|
|
4303
|
-
}), (
|
|
4304
|
-
const E =
|
|
4308
|
+
q(), y();
|
|
4309
|
+
}), (B, S) => {
|
|
4310
|
+
const E = z("IconifyIconOffline"), O = z("el-input"), U = z("el-divider"), j = z("el-scrollbar"), T = z("el-pagination"), v = z("vxe-button"), d = z("el-popover");
|
|
4305
4311
|
return A(), I("div", ya, [
|
|
4306
4312
|
N(O, {
|
|
4307
4313
|
modelValue: r.value,
|
|
@@ -4324,7 +4330,7 @@ const {
|
|
|
4324
4330
|
teleported: n.teleported,
|
|
4325
4331
|
trigger: "click",
|
|
4326
4332
|
"popper-class": "udp-popper",
|
|
4327
|
-
onHide:
|
|
4333
|
+
onHide: L
|
|
4328
4334
|
}, {
|
|
4329
4335
|
reference: Y(() => [
|
|
4330
4336
|
C("div", {
|
|
@@ -4347,8 +4353,8 @@ const {
|
|
|
4347
4353
|
clearable: ""
|
|
4348
4354
|
}, null, 8, ["modelValue"])
|
|
4349
4355
|
]),
|
|
4350
|
-
N(
|
|
4351
|
-
N(
|
|
4356
|
+
N(U, { "border-style": "dashed" }),
|
|
4357
|
+
N(j, { height: "220px" }, {
|
|
4352
4358
|
default: Y(() => [
|
|
4353
4359
|
C("ul", ba, [
|
|
4354
4360
|
(A(!0), I(ve, null, ge(w.value, (m, D) => (A(), I("li", {
|
|
@@ -4366,7 +4372,7 @@ const {
|
|
|
4366
4372
|
]),
|
|
4367
4373
|
_: 1
|
|
4368
4374
|
}),
|
|
4369
|
-
N(
|
|
4375
|
+
N(U, { "border-style": "dashed" }),
|
|
4370
4376
|
C("div", _a, [
|
|
4371
4377
|
N(T, {
|
|
4372
4378
|
class: "flex-auto ml-2",
|
|
@@ -4384,7 +4390,7 @@ const {
|
|
|
4384
4390
|
status: "danger",
|
|
4385
4391
|
mode: "text",
|
|
4386
4392
|
content: "取消",
|
|
4387
|
-
onClick:
|
|
4393
|
+
onClick: L
|
|
4388
4394
|
})
|
|
4389
4395
|
])
|
|
4390
4396
|
]),
|
|
@@ -4466,27 +4472,27 @@ const {
|
|
|
4466
4472
|
r.value = E, t.value = ye(t.value).format(`YYYY-${E}-DD`), $e(k);
|
|
4467
4473
|
}, w = () => {
|
|
4468
4474
|
t.value = ye().format("YYYY-MM-DD");
|
|
4469
|
-
const { day: E, month: O, year:
|
|
4470
|
-
i.value =
|
|
4475
|
+
const { day: E, month: O, year: U } = $();
|
|
4476
|
+
i.value = U, r.value = O, s.value = E;
|
|
4471
4477
|
}, p = (E) => {
|
|
4472
4478
|
E && (t.value = E);
|
|
4473
4479
|
}, _ = () => {
|
|
4474
4480
|
w(), o.date && (t.value = o.date), k();
|
|
4475
4481
|
}, k = () => {
|
|
4476
|
-
const E = i.value, O = r.value,
|
|
4477
|
-
let
|
|
4478
|
-
const T = 42, v = new Date([E, O,
|
|
4479
|
-
let d = [E, O,
|
|
4482
|
+
const E = i.value, O = r.value, U = 1;
|
|
4483
|
+
let j = [];
|
|
4484
|
+
const T = 42, v = new Date([E, O, U].join("-"));
|
|
4485
|
+
let d = [E, O, U].join("-"), m = v.getDay();
|
|
4480
4486
|
m = m == 0 ? 7 : m;
|
|
4481
4487
|
for (let D = 1; D < m; D++) {
|
|
4482
4488
|
d = ye(d).subtract(1, "day").format("YYYY-MM-DD");
|
|
4483
4489
|
const { day: J, month: ie, year: ce } = $(d), ne = st.solar2lunar(ce, ie, J);
|
|
4484
4490
|
if (ne === -1) return {};
|
|
4485
4491
|
let { Term: K } = ne;
|
|
4486
|
-
const { IDayCn: oe, IMonthCn: P, cDay: F, cMonth: x, cYear:
|
|
4487
|
-
S[x] && S[x][F] && (K = S[x][F]),
|
|
4488
|
-
const { isWorkDay: H, isRestDay: G } = R(
|
|
4489
|
-
|
|
4492
|
+
const { IDayCn: oe, IMonthCn: P, cDay: F, cMonth: x, cYear: V } = ne;
|
|
4493
|
+
S[x] && S[x][F] && (K = S[x][F]), B[P] && B[P][oe] && (K = B[P][oe]);
|
|
4494
|
+
const { isWorkDay: H, isRestDay: G } = R(V, x, F);
|
|
4495
|
+
j.push({
|
|
4490
4496
|
day: d.split("-")[2],
|
|
4491
4497
|
date: d,
|
|
4492
4498
|
d_day: K || oe,
|
|
@@ -4498,15 +4504,15 @@ const {
|
|
|
4498
4504
|
isRestDay: G
|
|
4499
4505
|
});
|
|
4500
4506
|
}
|
|
4501
|
-
d = [E, O,
|
|
4507
|
+
d = [E, O, U].join("-"), j = j.reverse();
|
|
4502
4508
|
for (let D = 0; D <= T - m; D++) {
|
|
4503
4509
|
const { day: J, month: ie, year: ce } = $(d), ne = st.solar2lunar(ce, ie, J);
|
|
4504
4510
|
if (ne === -1) return {};
|
|
4505
4511
|
let { Term: K } = ne;
|
|
4506
|
-
const { IDayCn: oe, IMonthCn: P, cDay: F, cMonth: x, cYear:
|
|
4507
|
-
S[x] && S[x][F] && (K = S[x][F]),
|
|
4508
|
-
const { isWorkDay: H, isRestDay: G } = R(
|
|
4509
|
-
|
|
4512
|
+
const { IDayCn: oe, IMonthCn: P, cDay: F, cMonth: x, cYear: V } = ne;
|
|
4513
|
+
S[x] && S[x][F] && (K = S[x][F]), B[P] && B[P][oe] && (K = B[P][oe]);
|
|
4514
|
+
const { isWorkDay: H, isRestDay: G } = R(V, x, F);
|
|
4515
|
+
j.push({
|
|
4510
4516
|
date: d,
|
|
4511
4517
|
day: J,
|
|
4512
4518
|
d_day: K || oe,
|
|
@@ -4520,22 +4526,22 @@ const {
|
|
|
4520
4526
|
}
|
|
4521
4527
|
n.value = [];
|
|
4522
4528
|
for (let D = 0; D <= 5; D++)
|
|
4523
|
-
n.value.push(
|
|
4529
|
+
n.value.push(j.splice(0, 7));
|
|
4524
4530
|
console.log(n);
|
|
4525
|
-
}, R = (E, O,
|
|
4531
|
+
}, R = (E, O, U) => {
|
|
4526
4532
|
var m;
|
|
4527
|
-
let
|
|
4528
|
-
const v = ((m = o.holidays) == null ? void 0 : m.find((D) => D[E])) || {}, d = v[E] && v[E][O] ? v[E][O][
|
|
4529
|
-
return d === "班" ?
|
|
4533
|
+
let j, T;
|
|
4534
|
+
const v = ((m = o.holidays) == null ? void 0 : m.find((D) => D[E])) || {}, d = v[E] && v[E][O] ? v[E][O][U] : "";
|
|
4535
|
+
return d === "班" ? j = !0 : d === "假" && (T = !0), { isRestDay: T, isWorkDay: j };
|
|
4530
4536
|
}, $ = (E) => {
|
|
4531
|
-
const O = ye(E || Date.now()).format("DD"),
|
|
4532
|
-
return { day: O, month:
|
|
4537
|
+
const O = ye(E || Date.now()).format("DD"), U = ye(E || Date.now()).format("YYYY"), j = ye(E || Date.now()).format("MM"), T = `${U}-${j}-${O}` === ye().format("YYYY-MM-DD");
|
|
4538
|
+
return { day: O, month: j, year: U, isToday: T };
|
|
4533
4539
|
};
|
|
4534
4540
|
et(() => {
|
|
4535
4541
|
_();
|
|
4536
4542
|
}), Ke(t, (E) => {
|
|
4537
|
-
const { day: O, month:
|
|
4538
|
-
i.value =
|
|
4543
|
+
const { day: O, month: U, year: j } = $(E);
|
|
4544
|
+
i.value = j, r.value = U;
|
|
4539
4545
|
const T = st.solar2lunar(
|
|
4540
4546
|
i.value,
|
|
4541
4547
|
r.value,
|
|
@@ -4544,16 +4550,16 @@ const {
|
|
|
4544
4550
|
if (T === -1) return {};
|
|
4545
4551
|
u.value = {
|
|
4546
4552
|
...T,
|
|
4547
|
-
lunarFestival:
|
|
4553
|
+
lunarFestival: B[T.IMonthCn] ? B[T.IMonthCn][T.IDayCn] : void 0,
|
|
4548
4554
|
festival: S[T.cMonth] ? S[T.cMonth][T.cDay] : void 0
|
|
4549
4555
|
}, $e(k);
|
|
4550
4556
|
});
|
|
4551
|
-
const
|
|
4557
|
+
const q = (E) => {
|
|
4552
4558
|
const O = E.target.parentNode.getAttribute("date") ? E.target.parentNode.getAttribute("date") : E.target.getAttribute("date");
|
|
4553
4559
|
console.log(O), t.value = O;
|
|
4554
|
-
},
|
|
4560
|
+
}, L = () => {
|
|
4555
4561
|
w();
|
|
4556
|
-
},
|
|
4562
|
+
}, B = {
|
|
4557
4563
|
正月: { 初一: "春节", 十五: "元宵节" },
|
|
4558
4564
|
二月: { 初二: "春龙节" },
|
|
4559
4565
|
五月: { 初五: "端午节" },
|
|
@@ -4574,13 +4580,13 @@ const {
|
|
|
4574
4580
|
10: { 1: "国庆节" }
|
|
4575
4581
|
};
|
|
4576
4582
|
return (E, O) => {
|
|
4577
|
-
const
|
|
4583
|
+
const U = z("el-option"), j = z("el-select");
|
|
4578
4584
|
return A(), I("div", Ea, [
|
|
4579
4585
|
C("div", Ra, [
|
|
4580
4586
|
C("div", Ta, [
|
|
4581
4587
|
C("div", $a, [
|
|
4582
4588
|
C("div", Oa, [
|
|
4583
|
-
N(
|
|
4589
|
+
N(j, {
|
|
4584
4590
|
modelValue: l.value,
|
|
4585
4591
|
"onUpdate:modelValue": O[0] || (O[0] = (T) => l.value = T),
|
|
4586
4592
|
style: { width: "80px" },
|
|
@@ -4589,7 +4595,7 @@ const {
|
|
|
4589
4595
|
onChange: p
|
|
4590
4596
|
}, {
|
|
4591
4597
|
default: Y(() => [
|
|
4592
|
-
(A(!0), I(ve, null, ge(e.statutoryHoliday, (T) => (A(), le(
|
|
4598
|
+
(A(!0), I(ve, null, ge(e.statutoryHoliday, (T) => (A(), le(U, {
|
|
4593
4599
|
key: T.date,
|
|
4594
4600
|
value: T.date,
|
|
4595
4601
|
label: T.name
|
|
@@ -4599,14 +4605,14 @@ const {
|
|
|
4599
4605
|
}, 8, ["modelValue"])
|
|
4600
4606
|
]),
|
|
4601
4607
|
C("div", Da, [
|
|
4602
|
-
N(
|
|
4608
|
+
N(j, {
|
|
4603
4609
|
modelValue: i.value,
|
|
4604
4610
|
"onUpdate:modelValue": O[1] || (O[1] = (T) => i.value = T),
|
|
4605
4611
|
style: { width: "80px" },
|
|
4606
4612
|
onChange: g
|
|
4607
4613
|
}, {
|
|
4608
4614
|
default: Y(() => [
|
|
4609
|
-
(A(), I(ve, null, ge(f, (T) => N(
|
|
4615
|
+
(A(), I(ve, null, ge(f, (T) => N(U, {
|
|
4610
4616
|
key: T.value,
|
|
4611
4617
|
value: T.value,
|
|
4612
4618
|
label: T.text
|
|
@@ -4621,14 +4627,14 @@ const {
|
|
|
4621
4627
|
class: "op-calendar-pc-prev-month",
|
|
4622
4628
|
onClick: O[2] || (O[2] = (T) => b("prev"))
|
|
4623
4629
|
}, Na),
|
|
4624
|
-
N(
|
|
4630
|
+
N(j, {
|
|
4625
4631
|
modelValue: r.value,
|
|
4626
4632
|
"onUpdate:modelValue": O[3] || (O[3] = (T) => r.value = T),
|
|
4627
4633
|
style: { width: "60px" },
|
|
4628
4634
|
onChange: y
|
|
4629
4635
|
}, {
|
|
4630
4636
|
default: Y(() => [
|
|
4631
|
-
(A(), I(ve, null, ge(a, (T) => N(
|
|
4637
|
+
(A(), I(ve, null, ge(a, (T) => N(U, {
|
|
4632
4638
|
key: T.value,
|
|
4633
4639
|
value: T.value,
|
|
4634
4640
|
label: T.text
|
|
@@ -4645,7 +4651,7 @@ const {
|
|
|
4645
4651
|
C("span", {
|
|
4646
4652
|
class: "op-calendar-pc-backtoday OP_LOG_BTN",
|
|
4647
4653
|
hidefocus: "true",
|
|
4648
|
-
onClick:
|
|
4654
|
+
onClick: L
|
|
4649
4655
|
}, "今天")
|
|
4650
4656
|
]),
|
|
4651
4657
|
C("div", Ua, [
|
|
@@ -4668,7 +4674,7 @@ const {
|
|
|
4668
4674
|
"op-calendar-pc-table-rest": d.isRestDay
|
|
4669
4675
|
}),
|
|
4670
4676
|
date: d.date,
|
|
4671
|
-
onClick:
|
|
4677
|
+
onClick: q
|
|
4672
4678
|
}, [
|
|
4673
4679
|
d.isWorkDay ? (A(), I("span", za, "班")) : se("", !0),
|
|
4674
4680
|
d.isRestDay ? (A(), I("span", qa, "休")) : se("", !0),
|
|
@@ -5136,7 +5142,7 @@ const Pl = (e, t) => {
|
|
|
5136
5142
|
...l
|
|
5137
5143
|
}, Object.assign(o, u);
|
|
5138
5144
|
let w = 0, p = t.id;
|
|
5139
|
-
return typeof p == "string" && (p = p.replace(/-/g, "_")), o.innerHTML = El(f.body, p ? () => p + "ID" + w++ : "iconifyVue"),
|
|
5145
|
+
return typeof p == "string" && (p = p.replace(/-/g, "_")), o.innerHTML = El(f.body, p ? () => p + "ID" + w++ : "iconifyVue"), Se("svg", o);
|
|
5140
5146
|
}
|
|
5141
5147
|
const { body: c, width: a, height: b } = e, g = s === "mask" || (s === "bg" ? !1 : c.indexOf("currentColor") !== -1), y = Rl(c, {
|
|
5142
5148
|
...u,
|
|
@@ -5151,7 +5157,7 @@ const Pl = (e, t) => {
|
|
|
5151
5157
|
...Al,
|
|
5152
5158
|
...g ? Mt : ko,
|
|
5153
5159
|
...l
|
|
5154
|
-
},
|
|
5160
|
+
}, Se("span", o);
|
|
5155
5161
|
}, So = /* @__PURE__ */ Object.create(null);
|
|
5156
5162
|
function Fl(e, t) {
|
|
5157
5163
|
So[e] = t;
|
|
@@ -5179,7 +5185,7 @@ const En = te({
|
|
|
5179
5185
|
if (!this.icon) return;
|
|
5180
5186
|
typeof this.icon == "object" && Fl(this.icon, this.icon);
|
|
5181
5187
|
const e = this.$attrs;
|
|
5182
|
-
return
|
|
5188
|
+
return Se(
|
|
5183
5189
|
En,
|
|
5184
5190
|
{
|
|
5185
5191
|
icon: this.icon,
|
|
@@ -5199,14 +5205,14 @@ const En = te({
|
|
|
5199
5205
|
},
|
|
5200
5206
|
render() {
|
|
5201
5207
|
const e = this.$attrs;
|
|
5202
|
-
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ?
|
|
5208
|
+
return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? Se(
|
|
5203
5209
|
"i",
|
|
5204
5210
|
{
|
|
5205
5211
|
class: "iconfont",
|
|
5206
5212
|
...e
|
|
5207
5213
|
},
|
|
5208
5214
|
this.icon
|
|
5209
|
-
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ?
|
|
5215
|
+
) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? Se(
|
|
5210
5216
|
"svg",
|
|
5211
5217
|
{
|
|
5212
5218
|
class: "icon-svg",
|
|
@@ -5214,12 +5220,12 @@ const En = te({
|
|
|
5214
5220
|
},
|
|
5215
5221
|
{
|
|
5216
5222
|
default: () => [
|
|
5217
|
-
|
|
5223
|
+
Se("use", {
|
|
5218
5224
|
"xlink:href": `#${this.icon}`
|
|
5219
5225
|
})
|
|
5220
5226
|
]
|
|
5221
5227
|
}
|
|
5222
|
-
) :
|
|
5228
|
+
) : Se("i", {
|
|
5223
5229
|
class: `iconfont ${this.icon}`,
|
|
5224
5230
|
...e
|
|
5225
5231
|
});
|
|
@@ -5236,18 +5242,18 @@ function fc(e, t) {
|
|
|
5236
5242
|
return te({
|
|
5237
5243
|
name: "FontIcon",
|
|
5238
5244
|
render() {
|
|
5239
|
-
return
|
|
5245
|
+
return Se(Ml, { icon: s, iconType: r, ...t });
|
|
5240
5246
|
}
|
|
5241
5247
|
});
|
|
5242
5248
|
} else return typeof e == "function" || typeof (e == null ? void 0 : e.render) == "function" ? e : e.startsWith("vxe") ? te({
|
|
5243
5249
|
name: "vxeIcon",
|
|
5244
5250
|
render() {
|
|
5245
|
-
return
|
|
5251
|
+
return Se("i", { class: e, ...t });
|
|
5246
5252
|
}
|
|
5247
5253
|
}) : te({
|
|
5248
5254
|
name: "OfflineIcon",
|
|
5249
5255
|
render() {
|
|
5250
|
-
return
|
|
5256
|
+
return Se(Nl, { icon: e, ...t });
|
|
5251
5257
|
}
|
|
5252
5258
|
});
|
|
5253
5259
|
}
|