ss-component-new 1.3.504 → 1.3.505
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/{array-CeYh-Xo9.js → array-h9gSRz0A.js} +2 -2
- package/dist/{index-BY6gdi10.js → index-BWUTM1Mz.js} +2 -2
- package/dist/{index-i69639DU.js → index-BxUchcAJ.js} +1 -1
- package/dist/{index-CPZi4WUr.js → index-C0dLbDjz.js} +2 -2
- package/dist/{index-BvNEKZ2_.js → index-CoygOy70.js} +7 -7
- package/dist/{index-BkxM_2uI.js → index-DRdmp6Fn.js} +1 -1
- package/dist/{index-DgAKx6RP.js → index-D_4U4MtB.js} +1 -1
- package/dist/{index-CMIwaoj9.js → index-Dcr1k_jM.js} +1 -1
- package/dist/{index-DmDMLZ8y.js → index-EtkRnSHj.js} +3 -3
- package/dist/{index-aMkrTQ-K.js → index-LHeRtvm6.js} +1 -1
- package/dist/{index-BSskQsFp.js → index-Yd33P73k.js} +2 -2
- package/dist/{index-BYHRPJmR.js → index-e_7JUsam.js} +569 -564
- package/dist/{index-wxXvRr6v.js → index-vbTXAt_N.js} +1 -1
- package/dist/{main-DIS6yf9J.js → main-DWd5iOt4.js} +2 -2
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-R5y_cOm5.js → threeModel-DStGZaJA.js} +1 -1
- package/dist/{threeSceneView-BJMo7yxh.js → threeSceneView-DegVovqA.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-nsxBtn5B.js → threeSceneViewForCPMPIP-BvZa1U5B.js} +1 -1
- package/dist/{threeViewerHost-B3nLZs-x.js → threeViewerHost-CTZqMomq.js} +1 -1
- package/package.json +1 -1
|
@@ -4,14 +4,14 @@ var Ni = (e, a, l) => ip(e, typeof a != "symbol" ? a + "" : a, l);
|
|
|
4
4
|
import { ref as ae, watch as yl, nextTick as jl, resolveComponent as Tl, createBlock as vl, openBlock as ce, withCtx as We, createElementVNode as be, renderSlot as Fi, defineComponent as ai, computed as Kl, createElementBlock as qe, createCommentVNode as Ml, normalizeStyle as li, toDisplayString as ll, onMounted as qi, onUnmounted as Cs, withModifiers as Vr, createVNode as Pe, createTextVNode as El, Fragment as Cl, renderList as er, normalizeClass as Wi, onBeforeUnmount as oo, unref as Xl, createSlots as pu, mergeProps as ts, resolveDynamicComponent as an, shallowRef as nd, reactive as Ii, getCurrentInstance as sd, inject as Yt, provide as Zs, toRef as np, onBeforeMount as od, watchEffect as sp, getCurrentScope as op, onScopeDispose as tp, toRefs as ec, withDirectives as up, vShow as cp } from "vue";
|
|
5
5
|
import { o as dp, q as fp, E as Bl, b as Hi, l as td, i as ac, a as lc, ar as ud, as as pp, at as hp, au as Ot, aq as rc } from "./request-XJsZ4h2T.js";
|
|
6
6
|
import { e as gn, c as Re, s as dr, i as Dn, p as ir, b as Ln, u as mn, j as $n, n as cd, a as Nn, a6 as Ho, a5 as hu, a3 as Eo, q as to, h as Ai, a7 as En, m as Po, k as $o, E as on, t as Qs, a8 as vp, a9 as Ks, aa as yp, a1 as gp } from "./index-CwJwXVns.js";
|
|
7
|
-
import { S as mp, b as oi, _ as ic, f as bp, h as dd, i as Ms, j as Qo, a as Ir, k as Jt, l as kp, m as _p, d as vu, e as xp, c as wp, n as Sp, o as Ap } from "./index-
|
|
7
|
+
import { S as mp, b as oi, _ as ic, f as bp, h as dd, i as Ms, j as Qo, a as Ir, k as Jt, l as kp, m as _p, d as vu, e as xp, c as wp, n as Sp, o as Ap } from "./index-D_4U4MtB.js";
|
|
8
8
|
import { h as Aa, B as Wn, C as Vs, D as fd, g as ei, E as Ep, m as ds, F as Fo, t as us, G as Tp, H as Dp, f as zp, I as nc, J as Ip, e as $s, K as uo, r as Mp, k as eo, L as Op, d as zi, c as Ls, M as Bp, u as yu, N as Yi, O as Vo, P as pd, Q as Cp, R as hd, S as $p, s as jn, l as Lp, T as Np, w as Rp, U as Hp, V as Pp, W as Fp, X as vd, Y as Ri, Z as Ds, _ as Tn, $ as is, a0 as Bt, a1 as jp, o as Up, a2 as Ct, a3 as Wp, a4 as qp } from "./index-CI4RP047.js";
|
|
9
9
|
import { _ as zr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { r as Kp, I as sc, J as Gp, K as Yp, C as Jp, c as $t, u as yd, N as Gs, O as Xp, Q as gd, R as md, s as Lt, U as Zp, t as Qp, h as as, B as Vp, V as Nt, Y as oc, k as xs, l as Ws, Z as e0, w as a0, _ as l0, $ as r0, a0 as bd, d as kd, a1 as tc } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-DFyt9sBY.js";
|
|
11
11
|
import { s as si } from "./index-11kpzK0A.js";
|
|
12
|
-
import { a as _d, T as xd } from "./threeViewerHost-
|
|
12
|
+
import { a as _d, T as xd } from "./threeViewerHost-CTZqMomq.js";
|
|
13
13
|
import { g as Ts, u as Xt, c as wd, a as co, e as gu, b as jo } from "./index-DUq4XELr.js";
|
|
14
|
-
import { a as i0, s as n0 } from "./index-
|
|
14
|
+
import { a as i0, s as n0 } from "./index-LHeRtvm6.js";
|
|
15
15
|
import { u as Sd } from "./index-DuL936Vd.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import { i as Uo } from "./isString-ChmgnNIb.js";
|
|
@@ -148,8 +148,8 @@ function p0(e, a, l, r = {}) {
|
|
|
148
148
|
// 淡黄色填充
|
|
149
149
|
strokeWidth: c = 2,
|
|
150
150
|
fillOpacity: o = 0.2
|
|
151
|
-
} = r, u = e.getBoundingClientRect(), v = a.getBoundingClientRect(), m = a.naturalWidth, g = a.naturalHeight, d = v.width / m, A = v.height / g, y = Math.min(d, A),
|
|
152
|
-
const S = $ + k *
|
|
151
|
+
} = r, u = e.getBoundingClientRect(), v = a.getBoundingClientRect(), m = a.naturalWidth, g = a.naturalHeight, d = v.width / m, A = v.height / g, y = Math.min(d, A), N = m * y, E = g * y, $ = (u.width - N) / 2, z = (u.height - E) / 2, x = l.map(([k, b]) => {
|
|
152
|
+
const S = $ + k * N, O = z + b * E;
|
|
153
153
|
return { x: S, y: O };
|
|
154
154
|
});
|
|
155
155
|
i.clearRect(0, 0, e.width, e.height), i.beginPath(), i.moveTo(x[0].x, x[0].y);
|
|
@@ -218,7 +218,7 @@ const h0 = {
|
|
|
218
218
|
var q, he;
|
|
219
219
|
const se = (he = (q = D == null ? void 0 : D.target) == null ? void 0 : q.closest) == null ? void 0 : he.call(q, ".ocr-img-preview-window");
|
|
220
220
|
return se || document.querySelector(".ocr-img-preview-window");
|
|
221
|
-
},
|
|
221
|
+
}, N = (D) => {
|
|
222
222
|
if (!D || D === "none")
|
|
223
223
|
return { tx: 0, ty: 0 };
|
|
224
224
|
let se = D.match(/matrix\(([^)]+)\)/);
|
|
@@ -237,7 +237,7 @@ const h0 = {
|
|
|
237
237
|
const se = y(D);
|
|
238
238
|
if (!se) return;
|
|
239
239
|
n = !0, A = se, c = "move", o = D.clientX, u = D.clientY;
|
|
240
|
-
const q = window.getComputedStyle(se), { tx: he, ty: ke } =
|
|
240
|
+
const q = window.getComputedStyle(se), { tx: he, ty: ke } = N(q.transform);
|
|
241
241
|
g = he, d = ke, document.addEventListener("mousemove", x), document.addEventListener("mouseup", w);
|
|
242
242
|
}, z = (D, se) => {
|
|
243
243
|
const q = y(D);
|
|
@@ -245,7 +245,7 @@ const h0 = {
|
|
|
245
245
|
n = !0, A = q, c = se, o = D.clientX, u = D.clientY;
|
|
246
246
|
const he = q.getBoundingClientRect();
|
|
247
247
|
v = he.width, m = he.height;
|
|
248
|
-
const ke = window.getComputedStyle(q), { tx: De, ty: Xe } =
|
|
248
|
+
const ke = window.getComputedStyle(q), { tx: De, ty: Xe } = N(ke.transform);
|
|
249
249
|
g = De, d = Xe, document.addEventListener("mousemove", x), document.addEventListener("mouseup", w);
|
|
250
250
|
}, x = (D) => {
|
|
251
251
|
if (!n || !A) return;
|
|
@@ -554,8 +554,8 @@ const h0 = {
|
|
|
554
554
|
o.value = {}, u.value = "";
|
|
555
555
|
}, g = async (y) => {
|
|
556
556
|
if (!y || y.fileType === "pdf") return;
|
|
557
|
-
const
|
|
558
|
-
for (const E of
|
|
557
|
+
const N = Array.isArray(y.images) ? y.images : [];
|
|
558
|
+
for (const E of N) {
|
|
559
559
|
const $ = E == null ? void 0 : E.url;
|
|
560
560
|
if (!(!$ || o.value[$]))
|
|
561
561
|
try {
|
|
@@ -570,8 +570,8 @@ const h0 = {
|
|
|
570
570
|
u.value = "";
|
|
571
571
|
return;
|
|
572
572
|
}
|
|
573
|
-
const
|
|
574
|
-
if (!
|
|
573
|
+
const N = y.sourceUrl || "";
|
|
574
|
+
if (!N) {
|
|
575
575
|
u.value = "";
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
@@ -583,15 +583,15 @@ const h0 = {
|
|
|
583
583
|
u.value = "";
|
|
584
584
|
}
|
|
585
585
|
try {
|
|
586
|
-
console.log("[CertificatePreview] 下载PDF附件:", { url:
|
|
587
|
-
const $ = await gn({ url:
|
|
588
|
-
console.log("[CertificatePreview] PDF响应:", { url:
|
|
586
|
+
console.log("[CertificatePreview] 下载PDF附件:", { url: N, versionId: y == null ? void 0 : y.versionId, certNo: y == null ? void 0 : y.certNo });
|
|
587
|
+
const $ = await gn({ url: N });
|
|
588
|
+
console.log("[CertificatePreview] PDF响应:", { url: N, status: $ == null ? void 0 : $.status, size: (E = $ == null ? void 0 : $.data) == null ? void 0 : E.size });
|
|
589
589
|
const z = URL.createObjectURL($.data);
|
|
590
590
|
u.value = z;
|
|
591
591
|
const x = y.certNo ? String(y.certNo) : "";
|
|
592
592
|
v.value = x ? `${x}.pdf` : "证书附件.pdf";
|
|
593
593
|
} catch ($) {
|
|
594
|
-
console.error("[CertificatePreview] PDF加载失败:", { url:
|
|
594
|
+
console.error("[CertificatePreview] PDF加载失败:", { url: N, error: $ }), u.value = "";
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
597
|
yl(
|
|
@@ -602,14 +602,14 @@ const h0 = {
|
|
|
602
602
|
m();
|
|
603
603
|
return;
|
|
604
604
|
}
|
|
605
|
-
const
|
|
606
|
-
i.value = (
|
|
605
|
+
const N = (E = l.versions) == null ? void 0 : E[0];
|
|
606
|
+
i.value = (N == null ? void 0 : N.versionId) || "", await g(N), await d(N);
|
|
607
607
|
},
|
|
608
608
|
{ immediate: !0 }
|
|
609
609
|
), yl(
|
|
610
610
|
() => i.value,
|
|
611
611
|
async () => {
|
|
612
|
-
var
|
|
612
|
+
var N, E;
|
|
613
613
|
const y = c.value;
|
|
614
614
|
if (!y) {
|
|
615
615
|
n.value = "", u.value = "";
|
|
@@ -619,7 +619,7 @@ const h0 = {
|
|
|
619
619
|
n.value = "", await d(y);
|
|
620
620
|
return;
|
|
621
621
|
}
|
|
622
|
-
u.value = "", n.value = ((E = (
|
|
622
|
+
u.value = "", n.value = ((E = (N = y.images) == null ? void 0 : N[0]) == null ? void 0 : E.url) || "", await g(y);
|
|
623
623
|
},
|
|
624
624
|
{ immediate: !0 }
|
|
625
625
|
);
|
|
@@ -628,7 +628,7 @@ const h0 = {
|
|
|
628
628
|
};
|
|
629
629
|
return oo(() => {
|
|
630
630
|
m();
|
|
631
|
-
}), (y,
|
|
631
|
+
}), (y, N) => {
|
|
632
632
|
const E = Tl("el-empty"), $ = Tl("el-tab-pane"), z = Tl("el-tabs"), x = Tl("el-button"), w = Tl("el-dialog");
|
|
633
633
|
return ce(), vl(w, {
|
|
634
634
|
"model-value": y.visible,
|
|
@@ -642,7 +642,7 @@ const h0 = {
|
|
|
642
642
|
id: "themeBorderButton",
|
|
643
643
|
onClick: A
|
|
644
644
|
}, {
|
|
645
|
-
default: We(() =>
|
|
645
|
+
default: We(() => N[1] || (N[1] = [
|
|
646
646
|
El("关闭")
|
|
647
647
|
])),
|
|
648
648
|
_: 1,
|
|
@@ -653,7 +653,7 @@ const h0 = {
|
|
|
653
653
|
y.versions && y.versions.length > 0 ? (ce(), vl(z, {
|
|
654
654
|
key: 0,
|
|
655
655
|
modelValue: i.value,
|
|
656
|
-
"onUpdate:modelValue":
|
|
656
|
+
"onUpdate:modelValue": N[0] || (N[0] = (k) => i.value = k),
|
|
657
657
|
type: "card",
|
|
658
658
|
class: "cert-version-tabs"
|
|
659
659
|
}, {
|
|
@@ -785,7 +785,7 @@ const h0 = {
|
|
|
785
785
|
var O;
|
|
786
786
|
const S = Number(m.value || 0);
|
|
787
787
|
return ((O = v.value || []) == null ? void 0 : O[S]) || null;
|
|
788
|
-
}), A = Kl(() => (l(r.columns || []) || []).filter((C) => C && C.prop).filter((C) => C.type !== "operate" && C.label !== "操作" && C.prop !== "operate")), y = Kl(() => A.value.filter((S) => S.label !== "证书附件" && S.prop !== "证书附件")),
|
|
788
|
+
}), A = Kl(() => (l(r.columns || []) || []).filter((C) => C && C.prop).filter((C) => C.type !== "operate" && C.label !== "操作" && C.prop !== "operate")), y = Kl(() => A.value.filter((S) => S.label !== "证书附件" && S.prop !== "证书附件")), N = (S) => {
|
|
789
789
|
if (!S) return;
|
|
790
790
|
const O = (v.value || []).findIndex((C) => (C == null ? void 0 : C.idx) === (S == null ? void 0 : S.idx));
|
|
791
791
|
O > -1 && (m.value = O, g.value = (S == null ? void 0 : S.selectedTargetId) || "");
|
|
@@ -837,7 +837,7 @@ const h0 = {
|
|
|
837
837
|
"max-height": "300",
|
|
838
838
|
style: { width: "100%" },
|
|
839
839
|
"highlight-current-row": "",
|
|
840
|
-
onCurrentChange:
|
|
840
|
+
onCurrentChange: N
|
|
841
841
|
}, {
|
|
842
842
|
default: We(() => [
|
|
843
843
|
Pe(C, {
|
|
@@ -1044,23 +1044,23 @@ const h0 = {
|
|
|
1044
1044
|
A && (i.value = JSON.parse(JSON.stringify(l.ocrPreviewData)), n.value = JSON.parse(JSON.stringify(l.ocrPreviewColumns)), c.value = [...l.ocrSelectedFields]);
|
|
1045
1045
|
});
|
|
1046
1046
|
const o = (A, y) => {
|
|
1047
|
-
const
|
|
1047
|
+
const N = [...c.value];
|
|
1048
1048
|
if (y)
|
|
1049
|
-
|
|
1049
|
+
N.includes(A) || N.push(A);
|
|
1050
1050
|
else {
|
|
1051
|
-
const E =
|
|
1052
|
-
E > -1 &&
|
|
1051
|
+
const E = N.indexOf(A);
|
|
1052
|
+
E > -1 && N.splice(E, 1);
|
|
1053
1053
|
}
|
|
1054
|
-
c.value =
|
|
1055
|
-
}, u = (A, y,
|
|
1056
|
-
r("fieldChange", { rowIndex: A, prop: y, value:
|
|
1054
|
+
c.value = N, r("update:ocrSelectedFields", N);
|
|
1055
|
+
}, u = (A, y, N) => {
|
|
1056
|
+
r("fieldChange", { rowIndex: A, prop: y, value: N });
|
|
1057
1057
|
}, v = () => {
|
|
1058
1058
|
r("update:ocrPreviewData", i.value), r("confirm", i.value), r("update:visible", !1);
|
|
1059
1059
|
}, m = () => {
|
|
1060
1060
|
r("update:visible", !1);
|
|
1061
1061
|
}, g = (A) => typeof A != "number" ? "-" : `${(A * 100).toFixed(1)}%`, d = (A) => typeof A != "number" ? "#606266" : A >= 0.9 ? "#67c23a" : A >= 0.7 ? "#e6a23c" : "#f56c6c";
|
|
1062
1062
|
return (A, y) => {
|
|
1063
|
-
const
|
|
1063
|
+
const N = Tl("el-alert"), E = Tl("el-table-column"), $ = Tl("el-checkbox"), z = Tl("el-input"), x = Tl("el-table"), w = Tl("el-button");
|
|
1064
1064
|
return ce(), vl(si, {
|
|
1065
1065
|
title: "OCR识别结果预览",
|
|
1066
1066
|
visible: e.visible,
|
|
@@ -1071,7 +1071,7 @@ const h0 = {
|
|
|
1071
1071
|
default: We(() => [
|
|
1072
1072
|
be("div", o3, [
|
|
1073
1073
|
be("div", t3, [
|
|
1074
|
-
Pe(
|
|
1074
|
+
Pe(N, {
|
|
1075
1075
|
title: "请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",
|
|
1076
1076
|
type: "info",
|
|
1077
1077
|
closable: !1,
|
|
@@ -1183,7 +1183,7 @@ const Zt = (e) => {
|
|
|
1183
1183
|
let a = (r = Aa(e, "@")) == null ? void 0 : r[((l = Aa(e, "@")) == null ? void 0 : l.length) - 1];
|
|
1184
1184
|
return !!(Ft != null && Ft.some((i) => a == null ? void 0 : a.includes(i)));
|
|
1185
1185
|
}, y3 = async (e, a, l, r) => {
|
|
1186
|
-
var n, c, o, u, v, m, g, d, A, y,
|
|
1186
|
+
var n, c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U, J, Z, de, Me, te, D, se, q, he, ke, De, Xe, pe, B, $e, ie;
|
|
1187
1187
|
let i = e;
|
|
1188
1188
|
if (Zt(i == null ? void 0 : i[0])) {
|
|
1189
1189
|
let ge = Id(i), _e = (n = ge == null ? void 0 : ge.filter) == null ? void 0 : n.join(","), le = [];
|
|
@@ -1215,7 +1215,7 @@ const Zt = (e) => {
|
|
|
1215
1215
|
};
|
|
1216
1216
|
} else if (((y = i == null ? void 0 : i[0]) == null ? void 0 : y[0]) !== "&") {
|
|
1217
1217
|
let ge = Md(i, r), _e = "";
|
|
1218
|
-
(
|
|
1218
|
+
(N = ge == null ? void 0 : ge.tableFilter) != null && N.includes(Tr) ? ge.tableFilter = (E = ge == null ? void 0 : ge.tableFilter) == null ? void 0 : E.replace(Tr, "") : _e = (x = (z = ($ = ge == null ? void 0 : ge.tableFilter) == null ? void 0 : $.replace("(", Tr)) == null ? void 0 : z.split(Tr)) == null ? void 0 : x[0];
|
|
1219
1219
|
let le = [];
|
|
1220
1220
|
ge != null && ge.tableFilter && ((w = Aa(ge == null ? void 0 : ge.tableFilter, ",")) == null || w.forEach((Qe) => {
|
|
1221
1221
|
Qe != null && Qe.includes("@ShowHide=Hide") && le.push("HideGroup=Yes");
|
|
@@ -1295,7 +1295,7 @@ const Zt = (e) => {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
1297
|
}, g3 = (e, a) => {
|
|
1298
|
-
var r, i, n, c, o, u, v, m, g, d, A, y,
|
|
1298
|
+
var r, i, n, c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U, J, Z, de, Me, te, D, se, q, he, ke, De, Xe, pe, B, $e, ie, ge, _e, le, xe, Qe, _a;
|
|
1299
1299
|
let l = (i = (r = Aa(e, "=")) == null ? void 0 : r.filter((Ze) => Ze !== "=")) == null ? void 0 : i.map((Ze) => ((Ze == null ? void 0 : Ze[(Ze == null ? void 0 : Ze.length) - 1]) === "=" && (Ze = Ze == null ? void 0 : Ze.slice(0, (Ze == null ? void 0 : Ze.length) - 1)), Ze));
|
|
1300
1300
|
if (Zt(l == null ? void 0 : l[1]) || Zt(l == null ? void 0 : l[0])) {
|
|
1301
1301
|
let Ze = w3(l);
|
|
@@ -1329,7 +1329,7 @@ const Zt = (e) => {
|
|
|
1329
1329
|
calculatorFilters: Ze == null ? void 0 : Ze.calculatorFilters
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
|
-
let H = (g = (m = (v = Ze == null ? void 0 : Ze.filter) == null ? void 0 : v.replace("@", Tr)) == null ? void 0 : m.split(Tr)) == null ? void 0 : g[0], P = (y = (A = (d = Ze == null ? void 0 : Ze.filter) == null ? void 0 : d.replace("(", Tr)) == null ? void 0 : A.split(Tr)) == null ? void 0 : y[1], ee = ($ = (E = (
|
|
1332
|
+
let H = (g = (m = (v = Ze == null ? void 0 : Ze.filter) == null ? void 0 : v.replace("@", Tr)) == null ? void 0 : m.split(Tr)) == null ? void 0 : g[0], P = (y = (A = (d = Ze == null ? void 0 : Ze.filter) == null ? void 0 : d.replace("(", Tr)) == null ? void 0 : A.split(Tr)) == null ? void 0 : y[1], ee = ($ = (E = (N = Ze == null ? void 0 : Ze.filter) == null ? void 0 : N.replace("(", Tr)) == null ? void 0 : E.split(Tr)) == null ? void 0 : $[0];
|
|
1333
1333
|
ee = "@" + ((z = ee == null ? void 0 : ee.split("@")) == null ? void 0 : z[1]), P = P == null ? void 0 : P.slice(0, (P == null ? void 0 : P.length) - 1), P = (w = (x = Aa(P, ",")) == null ? void 0 : x.map((me) => (me = ee + me, me))) == null ? void 0 : w.join("");
|
|
1334
1334
|
let fe = H + "(" + P + ")";
|
|
1335
1335
|
return {
|
|
@@ -1409,14 +1409,14 @@ const zd = (e) => {
|
|
|
1409
1409
|
return (o = n == null ? void 0 : n.key) == null ? void 0 : o.slice(1, (c = n == null ? void 0 : n.key) == null ? void 0 : c.length);
|
|
1410
1410
|
})) ?? [], r = [];
|
|
1411
1411
|
l == null || l.forEach((n) => {
|
|
1412
|
-
var c, o, u, v, m, g, d, A, y,
|
|
1412
|
+
var c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye;
|
|
1413
1413
|
if (n === "" && (n = "算法库:通用算法"), n != null && n.includes(b3)) {
|
|
1414
1414
|
let ne = "", j = !0, U = Vs(n, "(");
|
|
1415
1415
|
(U == null ? void 0 : U.length) > 1 && (ne = "(" + ((c = Vs(U == null ? void 0 : U[1], ")")) == null ? void 0 : c[0]), ((u = U == null ? void 0 : U[0]) == null ? void 0 : u[((o = U == null ? void 0 : U[0]) == null ? void 0 : o.length) - 2]) === "@" && (ne = "@" + ne));
|
|
1416
1416
|
let J = n;
|
|
1417
1417
|
J = J == null ? void 0 : J.replace(ne, ""), ne = Pi(ne), ne = (v = Aa(ne, ",")) == null ? void 0 : v.map((se) => ((se == null ? void 0 : se[(se == null ? void 0 : se.length) - 1]) === "," && (se = se == null ? void 0 : se.slice(0, (se == null ? void 0 : se.length) - 1)), se)), ne != null && ne.includes("@ShowHide=Hide") && (j = !1);
|
|
1418
1418
|
let Z = (m = J == null ? void 0 : J.replace("$", cn)) == null ? void 0 : m.split(cn), de = Z == null ? void 0 : Z[1], Me = Z == null ? void 0 : Z[0];
|
|
1419
|
-
Me != null && Me.includes("[") && (Me = (d = (g = Me == null ? void 0 : Me.replace("[", cn)) == null ? void 0 : g.split(cn)) == null ? void 0 : d[0], de = de + ":[" + ((
|
|
1419
|
+
Me != null && Me.includes("[") && (Me = (d = (g = Me == null ? void 0 : Me.replace("[", cn)) == null ? void 0 : g.split(cn)) == null ? void 0 : d[0], de = de + ":[" + ((N = (y = (A = Z == null ? void 0 : Z[0]) == null ? void 0 : A.replace("[", cn)) == null ? void 0 : y.split(cn)) == null ? void 0 : N[1])), Me = ($ = (E = Me == null ? void 0 : Me.replaceAll(":", "/")) == null ? void 0 : E.replaceAll("{", "")) == null ? void 0 : $.replaceAll("}", ""), (Me == null ? void 0 : Me[(Me == null ? void 0 : Me.length) - 1]) !== "/" && (Me = Me + "/"), de = ((z = Me == null ? void 0 : Me.split("/")) == null ? void 0 : z[0]) + ":" + de;
|
|
1420
1420
|
let D = "";
|
|
1421
1421
|
if (!(de != null && de.includes("[")))
|
|
1422
1422
|
D = de == null ? void 0 : de.replaceAll(":", "/"), r == null || r.push({
|
|
@@ -1478,8 +1478,8 @@ const zd = (e) => {
|
|
|
1478
1478
|
}), (i == null ? void 0 : i.length) > 0 && (r = r == null ? void 0 : r.map((n) => {
|
|
1479
1479
|
var o, u, v, m, g, d, A;
|
|
1480
1480
|
let c = i == null ? void 0 : i.find((y) => {
|
|
1481
|
-
var
|
|
1482
|
-
return (
|
|
1481
|
+
var N;
|
|
1482
|
+
return (N = n == null ? void 0 : n.path) == null ? void 0 : N.includes(y);
|
|
1483
1483
|
});
|
|
1484
1484
|
return !(n != null && n.fatherPath) && c && !((o = n == null ? void 0 : n.path) != null && o.includes(qs)) && !(i != null && i.find((y) => (n == null ? void 0 : n.path) === y)) && (n.path = c + qs + ((A = (v = (u = n == null ? void 0 : n.path) == null ? void 0 : u.split(c)) == null ? void 0 : v[1]) == null ? void 0 : A.slice(1, (d = (g = (m = n == null ? void 0 : n.path) == null ? void 0 : m.split(c)) == null ? void 0 : g[1]) == null ? void 0 : d.length))), n;
|
|
1485
1485
|
})), r;
|
|
@@ -1526,7 +1526,7 @@ const x3 = (e) => {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
return a;
|
|
1528
1528
|
}, Id = (e) => {
|
|
1529
|
-
var d, A, y,
|
|
1529
|
+
var d, A, y, N, E, $;
|
|
1530
1530
|
let a = [], l = [], r = [], i = [], n = [], c = [], o = "", u = e == null ? void 0 : e[0];
|
|
1531
1531
|
(u == null ? void 0 : u[0]) === "*" && (u = u == null ? void 0 : u.slice(1, u == null ? void 0 : u.length));
|
|
1532
1532
|
let v = Aa(u, ":");
|
|
@@ -1550,7 +1550,7 @@ const x3 = (e) => {
|
|
|
1550
1550
|
r.push(x == null ? void 0 : x[0]);
|
|
1551
1551
|
});
|
|
1552
1552
|
let m = (A = v == null ? void 0 : v.filter((z) => (z == null ? void 0 : z[0]) === "{")) == null ? void 0 : A[0], g = (y = v == null ? void 0 : v.filter((z) => (z == null ? void 0 : z[0]) === "[")) == null ? void 0 : y[0];
|
|
1553
|
-
return a = Os(g ?? ""), a != null && a.every((z) => Array.isArray(z)) && (a = [a]), (m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]) === ":" && (m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1)), n = (
|
|
1553
|
+
return a = Os(g ?? ""), a != null && a.every((z) => Array.isArray(z)) && (a = [a]), (m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]) === ":" && (m = m == null ? void 0 : m.slice(0, (m == null ? void 0 : m.length) - 1)), n = (N = Aa(m, "@")) == null ? void 0 : N[1], n = "@" + n, m = m == null ? void 0 : m.replace(n, ""), n = Pi(n), n = (E = Aa(n, ",")) == null ? void 0 : E.map((z) => ((z == null ? void 0 : z[(z == null ? void 0 : z.length) - 1]) === "," && (z = z == null ? void 0 : z.slice(0, (z == null ? void 0 : z.length) - 1)), z)), (m == null ? void 0 : m[0]) === "{" && (m = m == null ? void 0 : m.slice(1, (m == null ? void 0 : m.length) - 1)), m = ($ = Aa(m, ",")) == null ? void 0 : $.map((z) => ((z == null ? void 0 : z[(z == null ? void 0 : z.length) - 1]) === "," && (z = z == null ? void 0 : z.slice(0, (z == null ? void 0 : z.length) - 1)), z)), m == null || m.forEach((z, x) => {
|
|
1554
1554
|
var Z, de, Me, te, D, se, q, he, ke, De, Xe, pe, B, $e, ie, ge, _e, le, xe, Qe, _a, Ze, H, P, ee, fe, me, ha, ua, Ue, ba, Ia, Oe, qa, Oa, va, Ga;
|
|
1555
1555
|
let w = [], k = [], b = [], S = "", O = "", C = !1, Q, Y = [], ye = [], ne = [], j = "Input", U = [], J = [];
|
|
1556
1556
|
if (z != null && z.includes("==")) {
|
|
@@ -1642,7 +1642,7 @@ const x3 = (e) => {
|
|
|
1642
1642
|
return a;
|
|
1643
1643
|
}, Qt = (e, a) => {
|
|
1644
1644
|
var $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U, J, Z, de, Me, te, D, se, q, he, ke, De, Xe, pe, B, $e, ie, ge, _e, le, xe, Qe, _a, Ze, H, P, ee, fe, me, ha, ua, Ue, ba, Ia, Oe, qa, Oa, va, Ga, fa, Ke, ma, ia, He, je, re, Ve, ta, ga;
|
|
1645
|
-
let l, r = [], i = [], n = [], c = [], o = [], u = [], v = [], m = "Input", g, d = "", A = "", y = "",
|
|
1645
|
+
let l, r = [], i = [], n = [], c = [], o = [], u = [], v = [], m = "Input", g, d = "", A = "", y = "", N = [], E = "";
|
|
1646
1646
|
if (e != null && e.includes("==") || e != null && e.includes("=") || e != null && e.includes("@") || e != null && e.includes("||"))
|
|
1647
1647
|
if (l = ($ = e == null ? void 0 : e.split("==")) == null ? void 0 : $[0], g = (z = e == null ? void 0 : e.split("==")) == null ? void 0 : z[0], m = "Select", e != null && e.includes("=") && !(e != null && e.includes("==")) && !((k = (w = (x = e == null ? void 0 : e.replace("=", wl)) == null ? void 0 : x.split(wl)) == null ? void 0 : w[1]) != null && k.includes("If")))
|
|
1648
1648
|
if (l = Aa(e, "@"), l = l == null ? void 0 : l[0], (l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1]) === "@" && (l = l == null ? void 0 : l.slice(0, (l == null ? void 0 : l.length) - 1)), l = (S = (b = l == null ? void 0 : l.replace("=", wl)) == null ? void 0 : b.split(wl)) == null ? void 0 : S[0], l != null && l.includes("&") && (l = (C = (O = l == null ? void 0 : l.replace("&", wl)) == null ? void 0 : O.split(wl)) == null ? void 0 : C[0]), g = l, ((Q = Aa(e, "@")) == null ? void 0 : Q.length) > 1 && !(e != null && e.includes("||"))) {
|
|
@@ -1705,7 +1705,7 @@ const x3 = (e) => {
|
|
|
1705
1705
|
let ea = (Oa = Ne == null ? void 0 : Ne.filter((Ua) => Ua == null ? void 0 : Ua.includes("&"))) == null ? void 0 : Oa[0];
|
|
1706
1706
|
ea = (va = Aa(ea, "&")) == null ? void 0 : va.map((Ua) => ((Ua == null ? void 0 : Ua[(Ua == null ? void 0 : Ua.length) - 1]) === "&" && (Ua = Ua == null ? void 0 : Ua.slice(0, (Ua == null ? void 0 : Ua.length) - 1)), Ua)), y = (Ke = (fa = (Ga = ea == null ? void 0 : ea[1]) == null ? void 0 : Ga.replace("(", wl)) == null ? void 0 : fa.split(wl)) == null ? void 0 : Ke[0];
|
|
1707
1707
|
let Ie = (ma = Aa(ea == null ? void 0 : ea[1], ")")) == null ? void 0 : ma[0];
|
|
1708
|
-
Ie = (He = (ia = Ie == null ? void 0 : Ie.replace("(", wl)) == null ? void 0 : ia.split(wl)) == null ? void 0 : He[1], Ie = Ie == null ? void 0 : Ie.slice(0, (Ie == null ? void 0 : Ie.length) - 1), (Ie == null ? void 0 : Ie[0]) === "{" && (Ie = Ie == null ? void 0 : Ie.slice(1, Ie == null ? void 0 : Ie.length)), (Ie == null ? void 0 : Ie[(Ie == null ? void 0 : Ie.length) - 1]) === "}" && (Ie = Ie == null ? void 0 : Ie.slice(0, (Ie == null ? void 0 : Ie.length) - 1)),
|
|
1708
|
+
Ie = (He = (ia = Ie == null ? void 0 : Ie.replace("(", wl)) == null ? void 0 : ia.split(wl)) == null ? void 0 : He[1], Ie = Ie == null ? void 0 : Ie.slice(0, (Ie == null ? void 0 : Ie.length) - 1), (Ie == null ? void 0 : Ie[0]) === "{" && (Ie = Ie == null ? void 0 : Ie.slice(1, Ie == null ? void 0 : Ie.length)), (Ie == null ? void 0 : Ie[(Ie == null ? void 0 : Ie.length) - 1]) === "}" && (Ie = Ie == null ? void 0 : Ie.slice(0, (Ie == null ? void 0 : Ie.length) - 1)), N = Ie == null ? void 0 : Ie.split(",");
|
|
1709
1709
|
let we = ea == null ? void 0 : ea[0];
|
|
1710
1710
|
we && we !== "" && ((we == null ? void 0 : we[0]) !== "@" && (we = "@" + we), E = Un(we));
|
|
1711
1711
|
} else if (!Ce && ((je = Ne == null ? void 0 : Ne.filter((ea) => (ea == null ? void 0 : ea[0]) === "{")) == null ? void 0 : je.length) > 0) {
|
|
@@ -1742,13 +1742,13 @@ const x3 = (e) => {
|
|
|
1742
1742
|
formType: m,
|
|
1743
1743
|
filter: A,
|
|
1744
1744
|
functionName: y,
|
|
1745
|
-
functionRelatedWords:
|
|
1745
|
+
functionRelatedWords: N,
|
|
1746
1746
|
calculatorFilter: E,
|
|
1747
1747
|
relatedPages: v,
|
|
1748
1748
|
value: d
|
|
1749
1749
|
};
|
|
1750
1750
|
}, Wo = (e, a) => {
|
|
1751
|
-
var r, i, n, c, o, u, v, m, g, d, A, y,
|
|
1751
|
+
var r, i, n, c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U, J;
|
|
1752
1752
|
let l = [];
|
|
1753
1753
|
if ((e == null ? void 0 : e[0]) === "{" && (e == null ? void 0 : e[(e == null ? void 0 : e.length) - 1]) === "}" && !((c = (n = (i = (r = e == null ? void 0 : e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : r.replace(":", wl)) == null ? void 0 : i.split(wl)) == null ? void 0 : n[0]) != null && c.includes(","))) {
|
|
1754
1754
|
let Z = e == null ? void 0 : e.slice(1, (e == null ? void 0 : e.length) - 1), de = (o = Z == null ? void 0 : Z.replace(":", wl)) == null ? void 0 : o.split(wl);
|
|
@@ -1769,7 +1769,7 @@ const x3 = (e) => {
|
|
|
1769
1769
|
let D = (A = Aa(Z, "=")) == null ? void 0 : A[1], se = (y = Aa(D, "/")) == null ? void 0 : y.map((q) => ((q == null ? void 0 : q[(q == null ? void 0 : q.length) - 1]) === "/" && (q = q == null ? void 0 : q.slice(0, (q == null ? void 0 : q.length) - 1)), q));
|
|
1770
1770
|
Me = se == null ? void 0 : se.map((q) => (q = Os(q), q));
|
|
1771
1771
|
}
|
|
1772
|
-
let te = (w = (x = (z = ($ = (E = (
|
|
1772
|
+
let te = (w = (x = (z = ($ = (E = (N = Z == null ? void 0 : Z.replace("{", wl)) == null ? void 0 : N.split(wl)) == null ? void 0 : E[1]) == null ? void 0 : $.replace("}", wl)) == null ? void 0 : z.split(wl)) == null ? void 0 : x[0]) == null ? void 0 : w.split(",");
|
|
1773
1773
|
te == null || te.forEach((D, se) => {
|
|
1774
1774
|
(Me == null ? void 0 : Me.length) > 0 && se === 0 ? l == null || l.push({
|
|
1775
1775
|
label: D,
|
|
@@ -1961,8 +1961,8 @@ const x3 = (e) => {
|
|
|
1961
1961
|
if (((x = e == null ? void 0 : e[0]) == null ? void 0 : x[0]) !== "*" && ((w = e == null ? void 0 : e[0]) == null ? void 0 : w[0]) !== "$" && !((k = e == null ? void 0 : e[0]) != null && k.includes("$")))
|
|
1962
1962
|
return;
|
|
1963
1963
|
((b = e == null ? void 0 : e[0]) == null ? void 0 : b[0]) !== "*" && ((S = e == null ? void 0 : e[0]) == null ? void 0 : S[0]) !== "$" && (c = (O = Aa(e == null ? void 0 : e[0], ")")) == null ? void 0 : O[0], (c == null ? void 0 : c[0]) !== "@" && (c = "@" + c), c = Un(c), u = (C = Aa(e == null ? void 0 : e[0], ")")) == null ? void 0 : C[1], (u == null ? void 0 : u[0]) === "$" && (u = u == null ? void 0 : u.slice(1, u == null ? void 0 : u.length)), u = u == null ? void 0 : u.replaceAll(":", "/"));
|
|
1964
|
-
let
|
|
1965
|
-
if (r = (Q =
|
|
1964
|
+
let N = Aa(e == null ? void 0 : e[0], ":");
|
|
1965
|
+
if (r = (Q = N == null ? void 0 : N.filter((je) => (je == null ? void 0 : je[0]) !== "{" && (je == null ? void 0 : je[0]) !== "[")) == null ? void 0 : Q.join(""), o = (Y = e == null ? void 0 : e[0]) == null ? void 0 : Y.replace(r, ""), (r == null ? void 0 : r[0]) === "(" && (r = ""), A = (ye = N == null ? void 0 : N.filter((je) => (je == null ? void 0 : je[0]) !== "[")) == null ? void 0 : ye.join(""), A = (ne = e == null ? void 0 : e[0]) == null ? void 0 : ne.replace(A, ""), o = o == null ? void 0 : o.replace(A, ""), (r == null ? void 0 : r[0]) === "*" && (r = r == null ? void 0 : r.slice(1, r == null ? void 0 : r.length)), (r == null ? void 0 : r[(r == null ? void 0 : r.length) - 1]) === ":" && (r = r == null ? void 0 : r.slice(0, (r == null ? void 0 : r.length) - 1)), ((j = Aa(o, "@")) == null ? void 0 : j.length) > 1 && (c = (U = Aa(o, "@")) == null ? void 0 : U[1], (c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]) === ":" && (c = c == null ? void 0 : c.slice(0, (c == null ? void 0 : c.length) - 1)), c = "@" + c, c = Pi(c), o = (J = Aa(o, "@")) == null ? void 0 : J[0], o = o == null ? void 0 : o.slice(0, (o == null ? void 0 : o.length) - 1)), ((Z = Aa(r, "@")) == null ? void 0 : Z.length) > 1) {
|
|
1966
1966
|
c !== "" && (c = c + ",");
|
|
1967
1967
|
let je = (de = Aa(r, "@")) == null ? void 0 : de[1];
|
|
1968
1968
|
je = "@" + je, je = Pi(je), c = c + je, r = (Me = Aa(r, "@")) == null ? void 0 : Me[0];
|
|
@@ -2086,8 +2086,8 @@ const x3 = (e) => {
|
|
|
2086
2086
|
l = l == null ? void 0 : l.map((u) => {
|
|
2087
2087
|
var v, m, g, d;
|
|
2088
2088
|
return u != null && u.isMainPath || (((v = u == null ? void 0 : u.children) == null ? void 0 : v.length) > 0 ? u.children = Od(u.children, a) : ((m = u == null ? void 0 : u.menus) == null ? void 0 : m.length) > 0 && !((g = l == null ? void 0 : l[0]) != null && g.isMainPath) && (u.menus = (d = u.menus) == null ? void 0 : d.map((A, y) => {
|
|
2089
|
-
var
|
|
2090
|
-
return ((
|
|
2089
|
+
var N, E;
|
|
2090
|
+
return ((N = u.menus) == null ? void 0 : N.length) - 1 === y && A === "" && (a == null ? void 0 : a.parentContent) + "/" !== ((E = u.menus) == null ? void 0 : E.join("/")) && (A = a == null ? void 0 : a.value), u;
|
|
2091
2091
|
}), u.bindMenus = u.menus)), u;
|
|
2092
2092
|
});
|
|
2093
2093
|
else {
|
|
@@ -2268,7 +2268,7 @@ const E3 = Dn(ir), { selectTitle: Xi } = dr(E3), T3 = mn(ir), { localFiles: D3 }
|
|
|
2268
2268
|
];
|
|
2269
2269
|
var rs = /* @__PURE__ */ ((e) => (e[e.ORDINARY = 1] = "ORDINARY", e[e.BLOCK = 2] = "BLOCK", e[e.TEXT = 3] = "TEXT", e))(rs || {});
|
|
2270
2270
|
const I3 = async (e) => {
|
|
2271
|
-
var l, r, i, n, c, o, u, v, m, g, d, A, y,
|
|
2271
|
+
var l, r, i, n, c, o, u, v, m, g, d, A, y, N, E, $, z;
|
|
2272
2272
|
let a = Aa((e == null ? void 0 : e.filter) ?? "", ")");
|
|
2273
2273
|
if ((a == null ? void 0 : a.length) > 1) {
|
|
2274
2274
|
let x = a == null ? void 0 : a[0];
|
|
@@ -2277,7 +2277,7 @@ const I3 = async (e) => {
|
|
|
2277
2277
|
if (x = w, ((n = k == null ? void 0 : k[0]) == null ? void 0 : n[0]) === "$") {
|
|
2278
2278
|
let b = (o = k == null ? void 0 : k[0]) == null ? void 0 : o.slice(1, ((c = k == null ? void 0 : k[0]) == null ? void 0 : c.length) - 1), S = (v = (u = b == null ? void 0 : b.split("*")) == null ? void 0 : u[0]) == null ? void 0 : v.replaceAll(".", "/"), O = (d = (g = (m = b == null ? void 0 : b.split("*")) == null ? void 0 : m[1]) == null ? void 0 : g.split(".")) == null ? void 0 : d[0], C = await yi(S, !1);
|
|
2279
2279
|
C = (A = C == null ? void 0 : C.filter((j) => (j == null ? void 0 : j.name) === O)) == null ? void 0 : A[0];
|
|
2280
|
-
let Q = (
|
|
2280
|
+
let Q = (N = (y = C == null ? void 0 : C.compData) == null ? void 0 : y.find((j) => (j == null ? void 0 : j.key) === "tableContents")) == null ? void 0 : N.contents;
|
|
2281
2281
|
x = x == null ? void 0 : x.map((j) => {
|
|
2282
2282
|
var J, Z;
|
|
2283
2283
|
let U = {};
|
|
@@ -2409,7 +2409,7 @@ const I3 = async (e) => {
|
|
|
2409
2409
|
return (r == null ? void 0 : r.key) === "tableContents" && (r.contents = (i = r.contents) == null ? void 0 : i.slice(0, parseInt(e == null ? void 0 : e.filter))), r;
|
|
2410
2410
|
});
|
|
2411
2411
|
}, H3 = async (e) => {
|
|
2412
|
-
var a, l, r, i, n, c, o, u, v, m, g, d, A, y,
|
|
2412
|
+
var a, l, r, i, n, c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j;
|
|
2413
2413
|
if ((e == null ? void 0 : e.filter) === "Random")
|
|
2414
2414
|
return (a = e == null ? void 0 : e.contents) == null ? void 0 : a.map((J) => ((J == null ? void 0 : J.key) === "tableContents" && (J.contents = Tp(J.contents)), J));
|
|
2415
2415
|
if ((e == null ? void 0 : e.filter) === "Auto") {
|
|
@@ -2466,7 +2466,7 @@ const I3 = async (e) => {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
if ((e == null ? void 0 : e.filter) === "Manual") {
|
|
2468
2468
|
let U = [], J = [], Z = (y = (A = e == null ? void 0 : e.contents) == null ? void 0 : A.find((D) => (D == null ? void 0 : D.key) === "filter")) == null ? void 0 : y.contents;
|
|
2469
|
-
(Z == null ? void 0 : Z[(Z == null ? void 0 : Z.length) - 1]) === ")" ? Z = (E = (
|
|
2469
|
+
(Z == null ? void 0 : Z[(Z == null ? void 0 : Z.length) - 1]) === ")" ? Z = (E = (N = Z == null ? void 0 : Z.replace("(", Yr)) == null ? void 0 : N.split(Yr)) == null ? void 0 : E[0] : Z = "", Z !== "" && (U = ((z = ($ = Z == null ? void 0 : Z.split("*")) == null ? void 0 : $[0]) == null ? void 0 : z.split(":")) ?? [], J = ((S = (b = (k = (w = (x = Z == null ? void 0 : Z.split("*")) == null ? void 0 : x[1]) == null ? void 0 : w.replace("{", Yr)) == null ? void 0 : k.split(Yr)) == null ? void 0 : b[0]) == null ? void 0 : S.split(":")) ?? []);
|
|
2470
2470
|
let de = (C = (O = e == null ? void 0 : e.contents) == null ? void 0 : O.find((D) => (D == null ? void 0 : D.key) === "filter")) == null ? void 0 : C.contents;
|
|
2471
2471
|
de = (Y = (Q = de == null ? void 0 : de.replace("(", Yr)) == null ? void 0 : Q.split(Yr)) == null ? void 0 : Y[1], de = de == null ? void 0 : de.slice(0, (de == null ? void 0 : de.length) - 1);
|
|
2472
2472
|
let Me = (ye = e == null ? void 0 : e.contents) == null ? void 0 : ye.map((D) => {
|
|
@@ -2551,26 +2551,26 @@ const I3 = async (e) => {
|
|
|
2551
2551
|
let a = e == null ? void 0 : e.filter;
|
|
2552
2552
|
if (a != null && a.includes("*") && (a = "({" + ((i = (r = a == null ? void 0 : a.replace(":", Yr)) == null ? void 0 : r.split(Yr)) == null ? void 0 : i[1])), a = (n = a == null ? void 0 : a.replaceAll("{", "")) == null ? void 0 : n.replaceAll("}", ""), (o = (c = a == null ? void 0 : a.split("=")) == null ? void 0 : c[1]) != null && o.includes("$")) {
|
|
2553
2553
|
(a == null ? void 0 : a[0]) === "(" && (a = a == null ? void 0 : a.slice(1, (a == null ? void 0 : a.length) - 1));
|
|
2554
|
-
let
|
|
2555
|
-
(m = E == null ? void 0 : E.slice(1, E == null ? void 0 : E.length)) != null && m.includes("$") && (E = (A = (d = (g = Xi == null ? void 0 : Xi.value) == null ? void 0 : g.filter(($) => ($ == null ? void 0 : $.condition) === "child")) == null ? void 0 : d[0]) == null ? void 0 : A.value), a =
|
|
2554
|
+
let N = (u = a == null ? void 0 : a.split("=")) == null ? void 0 : u[0], E = (v = a == null ? void 0 : a.split("=")) == null ? void 0 : v[1];
|
|
2555
|
+
(m = E == null ? void 0 : E.slice(1, E == null ? void 0 : E.length)) != null && m.includes("$") && (E = (A = (d = (g = Xi == null ? void 0 : Xi.value) == null ? void 0 : g.filter(($) => ($ == null ? void 0 : $.condition) === "child")) == null ? void 0 : d[0]) == null ? void 0 : A.value), a = N + "=" + E;
|
|
2556
2556
|
}
|
|
2557
2557
|
if ((a == null ? void 0 : a[0]) !== "(" && (a = "(" + a + ")"), a.slice(1, (a == null ? void 0 : a.length) - 1) === "undefined") return e == null ? void 0 : e.contents;
|
|
2558
2558
|
let l = ds(a);
|
|
2559
2559
|
if ((l == null ? void 0 : l.length) > 0) {
|
|
2560
|
-
let
|
|
2560
|
+
let N = [];
|
|
2561
2561
|
return l == null || l.forEach(($) => {
|
|
2562
2562
|
let z = {};
|
|
2563
2563
|
for (let x in $) {
|
|
2564
2564
|
let w = x;
|
|
2565
2565
|
w != null && w.includes("[") || (z[w] = $[x]);
|
|
2566
2566
|
}
|
|
2567
|
-
|
|
2567
|
+
N.push(z);
|
|
2568
2568
|
}), (y = e == null ? void 0 : e.contents) == null ? void 0 : y.map(($) => {
|
|
2569
2569
|
var x, w, k;
|
|
2570
2570
|
let z = (w = (x = e == null ? void 0 : e.contents) == null ? void 0 : x.find((b) => (b == null ? void 0 : b.key) === "header")) == null ? void 0 : w.contents;
|
|
2571
2571
|
if (z = (k = Fo(z)) == null ? void 0 : k.filter((b) => (b == null ? void 0 : b.label) !== "操作"), ($ == null ? void 0 : $.key) === "tableContents") {
|
|
2572
2572
|
let S = us($ == null ? void 0 : $.contents, z);
|
|
2573
|
-
|
|
2573
|
+
N == null || N.forEach((O) => {
|
|
2574
2574
|
var C, Q;
|
|
2575
2575
|
for (let Y in O)
|
|
2576
2576
|
!((C = S == null ? void 0 : S[0]) != null && C.find((ye) => {
|
|
@@ -2628,16 +2628,16 @@ const I3 = async (e) => {
|
|
|
2628
2628
|
var d, A;
|
|
2629
2629
|
if (v === "Up") {
|
|
2630
2630
|
if ((g == null ? void 0 : g.key) === "extraButton") {
|
|
2631
|
-
let y = (d = u == null ? void 0 : u.split(",")) == null ? void 0 : d.map((
|
|
2632
|
-
label:
|
|
2633
|
-
prop:
|
|
2631
|
+
let y = (d = u == null ? void 0 : u.split(",")) == null ? void 0 : d.map((N) => ({
|
|
2632
|
+
label: N,
|
|
2633
|
+
prop: N
|
|
2634
2634
|
}));
|
|
2635
2635
|
g.contents = [...y ?? [], ...g.contents];
|
|
2636
2636
|
}
|
|
2637
2637
|
} else if (v === "Line" && (g == null ? void 0 : g.key) === "rowButton") {
|
|
2638
|
-
let y = (A = u == null ? void 0 : u.split(",")) == null ? void 0 : A.map((
|
|
2639
|
-
label:
|
|
2640
|
-
prop:
|
|
2638
|
+
let y = (A = u == null ? void 0 : u.split(",")) == null ? void 0 : A.map((N) => ({
|
|
2639
|
+
label: N,
|
|
2640
|
+
prop: N
|
|
2641
2641
|
}));
|
|
2642
2642
|
g.contents = [...y ?? [], ...g.contents];
|
|
2643
2643
|
}
|
|
@@ -2726,8 +2726,8 @@ const I3 = async (e) => {
|
|
|
2726
2726
|
}
|
|
2727
2727
|
E === c.length - 1 && (A = c.length - 1);
|
|
2728
2728
|
}
|
|
2729
|
-
const
|
|
2730
|
-
return m.width =
|
|
2729
|
+
const N = c[A] || c[c.length - 1] || 1;
|
|
2730
|
+
return m.width = N, m;
|
|
2731
2731
|
});
|
|
2732
2732
|
}
|
|
2733
2733
|
return u;
|
|
@@ -2757,7 +2757,7 @@ const I3 = async (e) => {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
return e == null ? void 0 : e.contents;
|
|
2759
2759
|
}, eh = async (e) => {
|
|
2760
|
-
var r, i, n, c, o, u, v, m, g, d, A, y,
|
|
2760
|
+
var r, i, n, c, o, u, v, m, g, d, A, y, N, E, $, z, x;
|
|
2761
2761
|
const a = Dn(ir), { chooseTitle: l } = dr(a);
|
|
2762
2762
|
if ((e == null ? void 0 : e.filter) === "true") {
|
|
2763
2763
|
let w = await yi(((i = (r = l == null ? void 0 : l.value) == null ? void 0 : r[0]) == null ? void 0 : i.parentContent) ?? ((c = (n = l == null ? void 0 : l.value) == null ? void 0 : n[0]) == null ? void 0 : c.relatedContent), !1), k = (u = (o = l == null ? void 0 : l.value) == null ? void 0 : o[0]) == null ? void 0 : u.value;
|
|
@@ -2766,7 +2766,7 @@ const I3 = async (e) => {
|
|
|
2766
2766
|
return (Q = C == null ? void 0 : C.compData) == null ? void 0 : Q.find((Y) => (Y == null ? void 0 : Y.key) === "header");
|
|
2767
2767
|
})) == null ? void 0 : d[0]) == null ? void 0 : A.compData;
|
|
2768
2768
|
let b = (y = w == null ? void 0 : w.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : y.contents;
|
|
2769
|
-
Array.isArray(b == null ? void 0 : b[0]) && (b = b == null ? void 0 : b[0]), b = ((
|
|
2769
|
+
Array.isArray(b == null ? void 0 : b[0]) && (b = b == null ? void 0 : b[0]), b = ((N = b == null ? void 0 : b.find((C) => C == null ? void 0 : C.isMainKey)) == null ? void 0 : N.prop) ?? ((E = b == null ? void 0 : b[0]) == null ? void 0 : E.prop);
|
|
2770
2770
|
let S = (z = ($ = w == null ? void 0 : w.find((C) => (C == null ? void 0 : C.key) === "tableContents")) == null ? void 0 : $.contents) == null ? void 0 : z.find((C) => (C == null ? void 0 : C[b]) === k);
|
|
2771
2771
|
return (x = e == null ? void 0 : e.contents) == null ? void 0 : x.map((C) => {
|
|
2772
2772
|
var Q;
|
|
@@ -2864,14 +2864,14 @@ const I3 = async (e) => {
|
|
|
2864
2864
|
onEditRead: J3,
|
|
2865
2865
|
onShowHide: I3
|
|
2866
2866
|
}, oh = async (e, a, l = "") => {
|
|
2867
|
-
var c, o, u, v, m, g, d, A, y,
|
|
2867
|
+
var c, o, u, v, m, g, d, A, y, N, E, $;
|
|
2868
2868
|
let r = "";
|
|
2869
2869
|
if (((c = e == null ? void 0 : e.find((z) => (z == null ? void 0 : z.key) === "filter")) == null ? void 0 : c.contents) !== "" && (r = (o = e == null ? void 0 : e.find((z) => (z == null ? void 0 : z.key) === "filter")) == null ? void 0 : o.contents), r === "" || !r) return e;
|
|
2870
2870
|
(r == null ? void 0 : r[0]) === "(" ? r = r == null ? void 0 : r.slice(1, (r == null ? void 0 : r.length) - 1) : (r = (v = (u = r == null ? void 0 : r.replace("(", Yr)) == null ? void 0 : u.split(Yr)) == null ? void 0 : v[1], r = r == null ? void 0 : r.slice(0, (r == null ? void 0 : r.length) - 1));
|
|
2871
2871
|
let i = (m = Aa(r, ",")) == null ? void 0 : m.map((z) => ((z == null ? void 0 : z[(z == null ? void 0 : z.length) - 1]) === "," && (z = z == null ? void 0 : z.slice(0, (z == null ? void 0 : z.length) - 1)), z != null && z.includes("(") || (z = z == null ? void 0 : z.replaceAll(":", "=")), z)), n = e;
|
|
2872
2872
|
for (let z in i) {
|
|
2873
2873
|
let x, w = "";
|
|
2874
|
-
x = (A = (d = (g = i == null ? void 0 : i[z]) == null ? void 0 : g.replace("=", Yr)) == null ? void 0 : d.split(Yr)) == null ? void 0 : A[0], w = (E = (
|
|
2874
|
+
x = (A = (d = (g = i == null ? void 0 : i[z]) == null ? void 0 : g.replace("=", Yr)) == null ? void 0 : d.split(Yr)) == null ? void 0 : A[0], w = (E = (N = (y = i == null ? void 0 : i[z]) == null ? void 0 : y.replace("=", Yr)) == null ? void 0 : N.split(Yr)) == null ? void 0 : E[1];
|
|
2875
2875
|
let k = ($ = dn == null ? void 0 : dn.find((b) => (b == null ? void 0 : b.key) === x)) == null ? void 0 : $.value;
|
|
2876
2876
|
if (k) {
|
|
2877
2877
|
const b = Bd[k];
|
|
@@ -2885,7 +2885,7 @@ const I3 = async (e) => {
|
|
|
2885
2885
|
}
|
|
2886
2886
|
return n;
|
|
2887
2887
|
}, mu = async (e, a, l = "") => {
|
|
2888
|
-
var o, u, v, m, g, d, A, y,
|
|
2888
|
+
var o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q;
|
|
2889
2889
|
let r = "";
|
|
2890
2890
|
if (((o = e == null ? void 0 : e.find((Y) => (Y == null ? void 0 : Y.key) === "filter")) == null ? void 0 : o.contents) !== "" && (r = (u = e == null ? void 0 : e.find((Y) => (Y == null ? void 0 : Y.key) === "filter")) == null ? void 0 : u.contents), r === "" || !r) return e;
|
|
2891
2891
|
(r == null ? void 0 : r[0]) === "," && (r = r == null ? void 0 : r.slice(1, r == null ? void 0 : r.length)), (r == null ? void 0 : r[0]) === "(" ? r = r == null ? void 0 : r.slice(1, (r == null ? void 0 : r.length) - 1) : (r == null ? void 0 : r[0]) === "@" || (r = (m = (v = r == null ? void 0 : r.replace("(", Yr)) == null ? void 0 : v.split(Yr)) == null ? void 0 : m[1], r = r == null ? void 0 : r.slice(0, (r == null ? void 0 : r.length) - 1));
|
|
@@ -2905,7 +2905,7 @@ const I3 = async (e) => {
|
|
|
2905
2905
|
});
|
|
2906
2906
|
for (let Y in i) {
|
|
2907
2907
|
let ye, ne = "";
|
|
2908
|
-
(d = i == null ? void 0 : i[Y]) != null && d.includes("(") && ((A = i == null ? void 0 : i[Y]) != null && A.includes("@If")) ? (ye = (E = (
|
|
2908
|
+
(d = i == null ? void 0 : i[Y]) != null && d.includes("(") && ((A = i == null ? void 0 : i[Y]) != null && A.includes("@If")) ? (ye = (E = (N = (y = i == null ? void 0 : i[Y]) == null ? void 0 : y.replace("(", Yr)) == null ? void 0 : N.split(Yr)) == null ? void 0 : E[0], ne = "(" + ((x = (z = ($ = i == null ? void 0 : i[Y]) == null ? void 0 : $.replace("(", Yr)) == null ? void 0 : z.split(Yr)) == null ? void 0 : x[1])) : (ye = (b = (k = (w = i == null ? void 0 : i[Y]) == null ? void 0 : w.replace("=", Yr)) == null ? void 0 : k.split(Yr)) == null ? void 0 : b[0], ne = (C = (O = (S = i == null ? void 0 : i[Y]) == null ? void 0 : S.replace("=", Yr)) == null ? void 0 : O.split(Yr)) == null ? void 0 : C[1]);
|
|
2909
2909
|
let j = (Q = dn == null ? void 0 : dn.find((U) => (U == null ? void 0 : U.key) === ye)) == null ? void 0 : Q.value;
|
|
2910
2910
|
if (j) {
|
|
2911
2911
|
const U = Bd[j];
|
|
@@ -2925,8 +2925,8 @@ const I3 = async (e) => {
|
|
|
2925
2925
|
const l = a.slice(1, -1).split(",").map((r) => Number(r.trim()));
|
|
2926
2926
|
return l.length < 2 || l.some((r) => Number.isNaN(r)) ? null : [l[0], l[1]];
|
|
2927
2927
|
}, th = (e, a) => {
|
|
2928
|
-
var
|
|
2929
|
-
const l = Array.isArray(e) ? e : [], r = l.find((w) => (w == null ? void 0 : w.key) === "formContent"), i = Array.isArray(r == null ? void 0 : r.contents) ? r.contents : [], n = ((
|
|
2928
|
+
var N, E, $, z, x;
|
|
2929
|
+
const l = Array.isArray(e) ? e : [], r = l.find((w) => (w == null ? void 0 : w.key) === "formContent"), i = Array.isArray(r == null ? void 0 : r.contents) ? r.contents : [], n = ((N = l.find((w) => (w == null ? void 0 : w.key) === "_gridLayoutMeta")) == null ? void 0 : N.contents) ?? {}, c = (i == null ? void 0 : i[0]) ?? {};
|
|
2930
2930
|
let o = ((E = a == null ? void 0 : a.position) == null ? void 0 : E[0]) ?? (n == null ? void 0 : n._positionStartRow) ?? (c == null ? void 0 : c._positionStartRow), u = (($ = a == null ? void 0 : a.position) == null ? void 0 : $[1]) ?? (n == null ? void 0 : n._positionRowSpan) ?? (c == null ? void 0 : c._positionRowSpan);
|
|
2931
2931
|
(!o || Number.isNaN(o) || o < 1) && (o = 1), (!u || Number.isNaN(u) || u < 1) && (u = 1);
|
|
2932
2932
|
let v = ((z = a == null ? void 0 : a.size) == null ? void 0 : z[0]) ?? (n == null ? void 0 : n._sizeStart) ?? (c == null ? void 0 : c._sizeStart), m = ((x = a == null ? void 0 : a.size) == null ? void 0 : x[1]) ?? (n == null ? void 0 : n._sizeEnd) ?? (c == null ? void 0 : c._sizeEnd);
|
|
@@ -3014,13 +3014,13 @@ let dh = [
|
|
|
3014
3014
|
];
|
|
3015
3015
|
const pc = async (e, a, l = !0) => {
|
|
3016
3016
|
let r = [], i = e == null ? void 0 : e.map(async (n) => {
|
|
3017
|
-
var g, d, A, y,
|
|
3017
|
+
var g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U, J, Z, de, Me, te, D, se, q, he, ke, De, Xe, pe, B, $e, ie, ge, _e, le, xe, Qe, _a, Ze, H, P, ee, fe, me, ha, ua, Ue, ba, Ia, Oe, qa, Oa, va, Ga, fa, Ke, ma, ia, He, je, re, Ve, ta, ga, Ne, Ce, ea, Ie, we, Ua, Il, nl, ar, Al, lr, ol, rr, Qa, fr, pr, gr, $l, Dr, xa, dl, _l, Pl, Ja, za, tl, Be, ca, el, ve, Da, Ka, ml, Gl, il, Dl, Ra;
|
|
3018
3018
|
let c = (y = (A = (d = (g = n == null ? void 0 : n.contents) == null ? void 0 : g.find((na) => {
|
|
3019
3019
|
var ka;
|
|
3020
3020
|
return (ka = na == null ? void 0 : na.key) == null ? void 0 : ka.includes("struct");
|
|
3021
3021
|
})) == null ? void 0 : d.value) == null ? void 0 : A[0]) == null ? void 0 : y.类型, o = Object.values(n == null ? void 0 : n.name);
|
|
3022
3022
|
o = o == null ? void 0 : o.reverse();
|
|
3023
|
-
let u = (
|
|
3023
|
+
let u = (N = n == null ? void 0 : n.contents) == null ? void 0 : N.map((na) => na == null ? void 0 : na.key), v = {
|
|
3024
3024
|
comp: c,
|
|
3025
3025
|
isShow: n == null ? void 0 : n.is_show,
|
|
3026
3026
|
name: o == null ? void 0 : o[0],
|
|
@@ -3228,7 +3228,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3228
3228
|
var l;
|
|
3229
3229
|
let a = (l = zp(e, [":", "@", "="])) == null ? void 0 : l[0];
|
|
3230
3230
|
return a = a == null ? void 0 : a.slice(1, (a == null ? void 0 : a.length) - 1), a = Aa(a, ","), a = a == null ? void 0 : a.map((r) => ((r == null ? void 0 : r[(r == null ? void 0 : r.length) - 1]) === "," && (r = r == null ? void 0 : r.slice(0, (r == null ? void 0 : r.length) - 1)), r)), a = a == null ? void 0 : a.map(async (r) => {
|
|
3231
|
-
var n, c, o, u, v, m, g, d, A, y,
|
|
3231
|
+
var n, c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U, J, Z, de, Me, te, D, se;
|
|
3232
3232
|
let i = Aa(r, "=");
|
|
3233
3233
|
if (r != null && r.includes("==")) {
|
|
3234
3234
|
i = r == null ? void 0 : r.split("==");
|
|
@@ -3269,7 +3269,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3269
3269
|
let B = (m = (v = hc.value) == null ? void 0 : v.find((ie) => (ie == null ? void 0 : ie.condition) === "child")) == null ? void 0 : m.value;
|
|
3270
3270
|
ke = ke == null ? void 0 : ke.slice(1, ke == null ? void 0 : ke.length), ke = (d = (g = ke == null ? void 0 : ke.replace("{", "")) == null ? void 0 : g.replace("}", "")) == null ? void 0 : d.replace(":", "/"), ke = ke + "/" + B;
|
|
3271
3271
|
let $e = await yi(ke, !1);
|
|
3272
|
-
$e = $e == null ? void 0 : $e.find((ie) => (ie == null ? void 0 : ie.name) === (Xe == null ? void 0 : Xe[(Xe == null ? void 0 : Xe.length) - 1])), $e = (y = (A = $e == null ? void 0 : $e.compData) == null ? void 0 : A.find((ie) => (ie == null ? void 0 : ie.key) === "formContent")) == null ? void 0 : y.contents, $e = (
|
|
3272
|
+
$e = $e == null ? void 0 : $e.find((ie) => (ie == null ? void 0 : ie.name) === (Xe == null ? void 0 : Xe[(Xe == null ? void 0 : Xe.length) - 1])), $e = (y = (A = $e == null ? void 0 : $e.compData) == null ? void 0 : A.find((ie) => (ie == null ? void 0 : ie.key) === "formContent")) == null ? void 0 : y.contents, $e = (N = $e == null ? void 0 : $e.find((ie) => (ie == null ? void 0 : ie.prop) === (pe == null ? void 0 : pe[(pe == null ? void 0 : pe.length) - 1]))) == null ? void 0 : N.value, he = $e;
|
|
3273
3273
|
} else {
|
|
3274
3274
|
ke = ke == null ? void 0 : ke.slice(1, ke == null ? void 0 : ke.length), ke = ($ = (E = ke == null ? void 0 : ke.replace("{", "")) == null ? void 0 : E.replace("}", "")) == null ? void 0 : $.replace(":", "/");
|
|
3275
3275
|
let B = await yi(ke, !1);
|
|
@@ -3348,7 +3348,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3348
3348
|
}, wh = (e) => {
|
|
3349
3349
|
let a = e == null ? void 0 : e.contents, l = e == null ? void 0 : e.valueString, r = e == null ? void 0 : e.prop, i = e == null ? void 0 : e.headers, n = e == null ? void 0 : e.typeString, c = e == null ? void 0 : e.allContents, o = 0;
|
|
3350
3350
|
if (Array.isArray(a) && (a == null ? void 0 : a.length) !== 1 && (a = $s(a, uo(i))), l == null || l.forEach((u) => {
|
|
3351
|
-
var v, m, g, d, A, y,
|
|
3351
|
+
var v, m, g, d, A, y, N, E, $;
|
|
3352
3352
|
if (a != null && a[u]) {
|
|
3353
3353
|
if (n === "Row")
|
|
3354
3354
|
if (!((m = ((v = a == null ? void 0 : a[u]) == null ? void 0 : v.toString()) ?? "") != null && m.includes(":")) && !((g = o == null ? void 0 : o.toString()) != null && g.includes(":"))) {
|
|
@@ -3358,7 +3358,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3358
3358
|
o = ni(o.toString()) + ni((d = a == null ? void 0 : a[u]) == null ? void 0 : d.toString()), o = Kn(o);
|
|
3359
3359
|
} else if (n === "Row") {
|
|
3360
3360
|
let z = (A = i == null ? void 0 : i.find((x) => (x == null ? void 0 : x.label) === u)) == null ? void 0 : A.prop;
|
|
3361
|
-
if (!((
|
|
3361
|
+
if (!((N = Number.isNaN(a == null ? void 0 : a[z]) ? "" : (y = a == null ? void 0 : a[z]) == null ? void 0 : y.toString()) != null && N.includes(":")) && !((E = o == null ? void 0 : o.toString()) != null && E.includes(":"))) {
|
|
3362
3362
|
let x = +((a == null ? void 0 : a[z]) ?? 0);
|
|
3363
3363
|
o = o + x;
|
|
3364
3364
|
} else
|
|
@@ -3383,7 +3383,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3383
3383
|
}, Sh = (e) => {
|
|
3384
3384
|
let a = e == null ? void 0 : e.contents, l = e == null ? void 0 : e.valueString, r = e == null ? void 0 : e.prop, i = e == null ? void 0 : e.headers, n = e == null ? void 0 : e.typeString, c = e == null ? void 0 : e.allContents, o = 0;
|
|
3385
3385
|
if (Array.isArray(a) && (a == null ? void 0 : a.length) !== 1 && (a = $s(a, uo(i))), l == null || l.forEach((u) => {
|
|
3386
|
-
var v, m, g, d, A, y,
|
|
3386
|
+
var v, m, g, d, A, y, N;
|
|
3387
3387
|
if (a != null && a[u]) {
|
|
3388
3388
|
if (n === "Row")
|
|
3389
3389
|
if (!((m = (v = a == null ? void 0 : a[u]) == null ? void 0 : v.toString()) != null && m.includes(":")) && !((g = o == null ? void 0 : o.toString()) != null && g.includes(":"))) {
|
|
@@ -3393,7 +3393,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3393
3393
|
o = o === 0 ? ni(o.toString()) + ni(a == null ? void 0 : a[u].toString()) : ni(o.toString()) - ni(a == null ? void 0 : a[u].toString()), o = Kn(o);
|
|
3394
3394
|
} else if (n === "Row") {
|
|
3395
3395
|
let E = (d = i == null ? void 0 : i.find(($) => ($ == null ? void 0 : $.label) === u)) == null ? void 0 : d.prop;
|
|
3396
|
-
if (!((y = Number.isNaN(a == null ? void 0 : a[E]) ? "" : (A = a == null ? void 0 : a[E]) == null ? void 0 : A.toString()) != null && y.includes(":")) && !((
|
|
3396
|
+
if (!((y = Number.isNaN(a == null ? void 0 : a[E]) ? "" : (A = a == null ? void 0 : a[E]) == null ? void 0 : A.toString()) != null && y.includes(":")) && !((N = o == null ? void 0 : o.toString()) != null && N.includes(":"))) {
|
|
3397
3397
|
let $ = +((a == null ? void 0 : a[E]) ?? 0);
|
|
3398
3398
|
o = o === 0 ? o + $ : o - $;
|
|
3399
3399
|
} else
|
|
@@ -3418,7 +3418,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3418
3418
|
}, Ah = (e) => {
|
|
3419
3419
|
let a = e == null ? void 0 : e.contents, l = e == null ? void 0 : e.valueString, r = e == null ? void 0 : e.prop, i = e == null ? void 0 : e.headers, n = e == null ? void 0 : e.typeString, c = e == null ? void 0 : e.allContents, o = 0;
|
|
3420
3420
|
if (Array.isArray(a) && (a == null ? void 0 : a.length) !== 1 && (a = $s(a, uo(i))), l == null || l.forEach((u) => {
|
|
3421
|
-
var v, m, g, d, A, y,
|
|
3421
|
+
var v, m, g, d, A, y, N;
|
|
3422
3422
|
if (a != null && a[u]) {
|
|
3423
3423
|
if (n === "Row")
|
|
3424
3424
|
if (!((m = (v = a == null ? void 0 : a[u]) == null ? void 0 : v.toString()) != null && m.includes(":")) && !((g = o == null ? void 0 : o.toString()) != null && g.includes(":"))) {
|
|
@@ -3430,7 +3430,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3430
3430
|
let E = (d = i == null ? void 0 : i.find(($) => ($ == null ? void 0 : $.label) === u)) == null ? void 0 : d.prop;
|
|
3431
3431
|
if (!(a != null && a[E]))
|
|
3432
3432
|
o = void 0;
|
|
3433
|
-
else if (!((y = Number.isNaN(a == null ? void 0 : a[E]) ? "" : (A = a == null ? void 0 : a[E]) == null ? void 0 : A.toString()) != null && y.includes(":")) && !((
|
|
3433
|
+
else if (!((y = Number.isNaN(a == null ? void 0 : a[E]) ? "" : (A = a == null ? void 0 : a[E]) == null ? void 0 : A.toString()) != null && y.includes(":")) && !((N = o == null ? void 0 : o.toString()) != null && N.includes(":"))) {
|
|
3434
3434
|
let $ = +((a == null ? void 0 : a[E]) ?? 0);
|
|
3435
3435
|
o = o === 0 ? o + $ : o * $;
|
|
3436
3436
|
} else
|
|
@@ -3455,7 +3455,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3455
3455
|
}, Eh = (e) => {
|
|
3456
3456
|
let a = e == null ? void 0 : e.contents, l = e == null ? void 0 : e.valueString, r = e == null ? void 0 : e.prop, i = e == null ? void 0 : e.headers, n = e == null ? void 0 : e.typeString, c = e == null ? void 0 : e.allContents, o = 0;
|
|
3457
3457
|
if (Array.isArray(a) && (a == null ? void 0 : a.length) !== 1 && (a = $s(a, uo(i))), l == null || l.forEach((u) => {
|
|
3458
|
-
var v, m, g, d, A, y,
|
|
3458
|
+
var v, m, g, d, A, y, N;
|
|
3459
3459
|
if (a != null && a[u]) {
|
|
3460
3460
|
if (n === "Row")
|
|
3461
3461
|
if (!((m = (v = a == null ? void 0 : a[u]) == null ? void 0 : v.toString()) != null && m.includes(":")) && !((g = o == null ? void 0 : o.toString()) != null && g.includes(":"))) {
|
|
@@ -3465,7 +3465,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3465
3465
|
o = o === 0 ? ni(o.toString()) + ni(a == null ? void 0 : a[u].toString()) : ni(o.toString()) / ni(a == null ? void 0 : a[u].toString()), o = Kn(o);
|
|
3466
3466
|
} else if (n === "Row") {
|
|
3467
3467
|
let E = (d = i == null ? void 0 : i.find(($) => ($ == null ? void 0 : $.label) === u)) == null ? void 0 : d.prop;
|
|
3468
|
-
if (!((y = Number.isNaN(a == null ? void 0 : a[E]) ? "" : (A = a == null ? void 0 : a[E]) == null ? void 0 : A.toString()) != null && y.includes(":")) && !((
|
|
3468
|
+
if (!((y = Number.isNaN(a == null ? void 0 : a[E]) ? "" : (A = a == null ? void 0 : a[E]) == null ? void 0 : A.toString()) != null && y.includes(":")) && !((N = o == null ? void 0 : o.toString()) != null && N.includes(":"))) {
|
|
3469
3469
|
let $ = +((a == null ? void 0 : a[E]) ?? 0);
|
|
3470
3470
|
o = o === 0 ? o + $ : o / $;
|
|
3471
3471
|
} else
|
|
@@ -3488,7 +3488,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
return a[r] = o.toFixed(2), a;
|
|
3490
3490
|
}, Th = async (e) => {
|
|
3491
|
-
var n, c, o, u, v, m, g, d, A, y,
|
|
3491
|
+
var n, c, o, u, v, m, g, d, A, y, N;
|
|
3492
3492
|
let a = (n = e == null ? void 0 : e.valueString) == null ? void 0 : n[0], l = (c = e == null ? void 0 : e.contents) == null ? void 0 : c.calculatorFilter, r = 0, i = e == null ? void 0 : e.contents;
|
|
3493
3493
|
if (a != null && a.includes("$") && !(a != null && a.includes("{"))) {
|
|
3494
3494
|
(a == null ? void 0 : a[0]) === "$" && (a = a == null ? void 0 : a.slice(1, a == null ? void 0 : a.length));
|
|
@@ -3500,14 +3500,14 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3500
3500
|
contents: "(" + l + ")"
|
|
3501
3501
|
}), x = await mu(x, {}), r = (d = (g = x == null ? void 0 : x.find((w) => (w == null ? void 0 : w.key) === "tableContents")) == null ? void 0 : g.contents) == null ? void 0 : d.length;
|
|
3502
3502
|
} else
|
|
3503
|
-
r = (
|
|
3503
|
+
r = (N = (y = (A = $ == null ? void 0 : $.compData) == null ? void 0 : A.find((x) => (x == null ? void 0 : x.key) === "tableContents")) == null ? void 0 : y.contents) == null ? void 0 : N.length;
|
|
3504
3504
|
}
|
|
3505
3505
|
return i.value = r, i;
|
|
3506
3506
|
}, Dh = async (e) => {
|
|
3507
|
-
var g, d, A, y,
|
|
3507
|
+
var g, d, A, y, N, E, $, z, x;
|
|
3508
3508
|
let a = (g = e == null ? void 0 : e.valueString) == null ? void 0 : g[0], l = e == null ? void 0 : e.filter;
|
|
3509
3509
|
l = (l == null ? void 0 : l.find((w) => w == null ? void 0 : w.includes("@If"))) ?? "", (a == null ? void 0 : a[0]) === "$" && (a = a == null ? void 0 : a.slice(1, a == null ? void 0 : a.length));
|
|
3510
|
-
let r = (A = (d = a == null ? void 0 : a.split("*")) == null ? void 0 : d[0]) == null ? void 0 : A.replaceAll(":", "/"), i = (y = a == null ? void 0 : a.split("*")) == null ? void 0 : y[1], n = (
|
|
3510
|
+
let r = (A = (d = a == null ? void 0 : a.split("*")) == null ? void 0 : d[0]) == null ? void 0 : A.replaceAll(":", "/"), i = (y = a == null ? void 0 : a.split("*")) == null ? void 0 : y[1], n = (N = i == null ? void 0 : i.split("{")) == null ? void 0 : N[0], c = i == null ? void 0 : i.replace(n, "");
|
|
3511
3511
|
n = n == null ? void 0 : n.slice(0, (n == null ? void 0 : n.length) - 1), n = n == null ? void 0 : n.split(":"), n = n == null ? void 0 : n[(n == null ? void 0 : n.length) - 1];
|
|
3512
3512
|
let o = await yi(r, !1);
|
|
3513
3513
|
if (c = c == null ? void 0 : c.slice(1, (c == null ? void 0 : c.length) - 1), c = c == null ? void 0 : c.split(":"), c = c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1], o = o == null ? void 0 : o.find((w) => (w == null ? void 0 : w.name) === n), o = ($ = (E = o == null ? void 0 : o.compData) == null ? void 0 : E.find((w) => (w == null ? void 0 : w.key) === "tableContents")) == null ? void 0 : $.contents, (l == null ? void 0 : l.length) > 0) {
|
|
@@ -3542,10 +3542,10 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3542
3542
|
if ((a == null ? void 0 : a[0]) === "{") {
|
|
3543
3543
|
a = a == null ? void 0 : a.slice(1, a.length - 1), a = (r = Aa(a, ",")) == null ? void 0 : r.map((o) => ((o == null ? void 0 : o[(o == null ? void 0 : o.length) - 1]) === "," && (o = o == null ? void 0 : o.slice(0, (o == null ? void 0 : o.length) - 1)), o));
|
|
3544
3544
|
let n = a == null ? void 0 : a.map(async (o) => {
|
|
3545
|
-
var g, d, A, y,
|
|
3545
|
+
var g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye;
|
|
3546
3546
|
let u = (d = (g = o == null ? void 0 : o.replace("=", "$R")) == null ? void 0 : g.split("$R")) == null ? void 0 : d[0], v = (y = (A = o == null ? void 0 : o.replace("=", "$R")) == null ? void 0 : A.split("$R")) == null ? void 0 : y[1], m = "";
|
|
3547
3547
|
if (v === "LoginUser")
|
|
3548
|
-
m = ((
|
|
3548
|
+
m = ((N = Cn.value) == null ? void 0 : N.姓名) || ((E = Cn.value) == null ? void 0 : E.account) || (($ = Cn.value) == null ? void 0 : $.账号);
|
|
3549
3549
|
else if ((v == null ? void 0 : v[0]) === "$") {
|
|
3550
3550
|
let ne = (z = v == null ? void 0 : v.split("*")) == null ? void 0 : z[0], j = (x = v == null ? void 0 : v.split("*")) == null ? void 0 : x[1], U = j;
|
|
3551
3551
|
if ((ne == null ? void 0 : ne[0]) === "$" && (ne = ne == null ? void 0 : ne.slice(1, ne == null ? void 0 : ne.length)), ne != null && ne.includes("$")) {
|
|
@@ -3566,13 +3566,13 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3566
3566
|
}
|
|
3567
3567
|
return l;
|
|
3568
3568
|
}, Ih = async (e) => {
|
|
3569
|
-
var v, m, g, d, A, y,
|
|
3569
|
+
var v, m, g, d, A, y, N;
|
|
3570
3570
|
let a = e == null ? void 0 : e.valueString, l = a == null ? void 0 : a.filter((E) => (E == null ? void 0 : E.includes(".docx")) || (E == null ? void 0 : E.includes(".doc")));
|
|
3571
3571
|
l = l == null ? void 0 : l[0];
|
|
3572
3572
|
let r = a == null ? void 0 : a.filter((E) => !(E != null && E.includes(".docx")) && !(E != null && E.includes(".doc")));
|
|
3573
3573
|
r = r == null ? void 0 : r[0];
|
|
3574
3574
|
let i = (m = e == null ? void 0 : e.compNames) == null ? void 0 : m[((v = e == null ? void 0 : e.compNames) == null ? void 0 : v.length) - 1], n = ((A = (d = (g = $d.value) == null ? void 0 : g.filter((E) => (E == null ? void 0 : E.condition) === "child")) == null ? void 0 : d[0]) == null ? void 0 : A.value) ?? "", c = _h.value;
|
|
3575
|
-
n !== "" && (c = (y = c == null ? void 0 : c.find((E) => (E == null ? void 0 : E.path) === n)) == null ? void 0 : y.children), c = (
|
|
3575
|
+
n !== "" && (c = (y = c == null ? void 0 : c.find((E) => (E == null ? void 0 : E.path) === n)) == null ? void 0 : y.children), c = (N = c == null ? void 0 : c.find((E) => (E == null ? void 0 : E.name) === i)) == null ? void 0 : N.children;
|
|
3576
3576
|
let o = c == null ? void 0 : c.find((E) => (E == null ? void 0 : E.name) === l), u = c == null ? void 0 : c.find((E) => (E == null ? void 0 : E.name) === r);
|
|
3577
3577
|
u = (u == null ? void 0 : u.url) ?? "", u !== "" ? u = u == null ? void 0 : u.replace(/^file:\/\//, "file:///").replace(/\\/g, "/") : u = "file:///" + (r == null ? void 0 : r.replaceAll("\\", "/")), o = (o == null ? void 0 : o.url) ?? "", o !== "" ? o = o == null ? void 0 : o.replace(/^file:\/\//, "file:///").replace(/\\/g, "/") : o = "file:///" + (l == null ? void 0 : l.replaceAll("\\", "/"));
|
|
3578
3578
|
try {
|
|
@@ -3615,7 +3615,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3615
3615
|
AutoReportGen: Ih,
|
|
3616
3616
|
OpenPortal: Mh
|
|
3617
3617
|
}, qo = async (e, a, l, r = "Auto", i, n = [], c = []) => {
|
|
3618
|
-
var g, d, A, y,
|
|
3618
|
+
var g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U;
|
|
3619
3619
|
let o = e, u = [], v = await $n({
|
|
3620
3620
|
platId: parseInt((g = Cn == null ? void 0 : Cn.value) == null ? void 0 : g.plat_id),
|
|
3621
3621
|
pageName: "menu"
|
|
@@ -3625,7 +3625,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3625
3625
|
if (v != null && v.object_name) {
|
|
3626
3626
|
v = v == null ? void 0 : v.object_name;
|
|
3627
3627
|
let J = await $n({
|
|
3628
|
-
platId: parseInt((
|
|
3628
|
+
platId: parseInt((N = Cn == null ? void 0 : Cn.value) == null ? void 0 : N.plat_id),
|
|
3629
3629
|
pageName: v
|
|
3630
3630
|
});
|
|
3631
3631
|
J = (w = (x = (z = ($ = (E = J == null ? void 0 : J.data) == null ? void 0 : E.result) == null ? void 0 : $[0]) == null ? void 0 : z.contents) == null ? void 0 : x.find((Z) => {
|
|
@@ -3686,7 +3686,7 @@ const gh = Dn(ir), { selectTitle: hc } = dr(gh), mh = async (e) => {
|
|
|
3686
3686
|
}, Oh = Ln(ir), { loginUserInfo: Zi } = dr(Oh), Bh = mn(ir), { activeMenuPath: vc, currentMenuPath: Do } = dr(Bh), Ld = Dn(ir);
|
|
3687
3687
|
let yc = "$R";
|
|
3688
3688
|
const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
3689
|
-
var c, o, u, v, m, g, d, A, y,
|
|
3689
|
+
var c, o, u, v, m, g, d, A, y, N, E, $, z;
|
|
3690
3690
|
let l = vc.value, r = "", i = ((c = zs == null ? void 0 : zs.value) == null ? void 0 : c.find((x) => (x == null ? void 0 : x.condition) === "child" && !(x != null && x.relatedContent))) ?? void 0;
|
|
3691
3691
|
(e == null ? void 0 : e.length) === 0 || (l = a ? l : (o = e == null ? void 0 : e[0]) == null ? void 0 : o.object_name, r = (u = e == null ? void 0 : e[0]) == null ? void 0 : u.father_name);
|
|
3692
3692
|
let n = [];
|
|
@@ -3701,7 +3701,7 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
3701
3701
|
label: S == null ? void 0 : S[k],
|
|
3702
3702
|
value: S == null ? void 0 : S[k]
|
|
3703
3703
|
}));
|
|
3704
|
-
n = (
|
|
3704
|
+
n = (N = r == null ? void 0 : r.split("/")) == null ? void 0 : N.map((S) => (S === "" ? i ? (i.isShow = !0, S = i) : S = {
|
|
3705
3705
|
value: S,
|
|
3706
3706
|
condition: "child",
|
|
3707
3707
|
options: b,
|
|
@@ -3730,12 +3730,12 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
3730
3730
|
}), l = (c = a == null ? void 0 : a.data) == null ? void 0 : c.result, r = (m = (v = (u = (o = e == null ? void 0 : e.filter((y) => (y == null ? void 0 : y.comp) === "Table")) == null ? void 0 : o[0]) == null ? void 0 : u.compData) == null ? void 0 : v.find((y) => (y == null ? void 0 : y.key) === "filter")) == null ? void 0 : m.contents;
|
|
3731
3731
|
r = (A = (d = (g = r == null ? void 0 : r.replace("(", yc)) == null ? void 0 : g.split(yc)) == null ? void 0 : d[0]) == null ? void 0 : A.replaceAll(":", "/");
|
|
3732
3732
|
let i = l == null ? void 0 : l.filter((y) => {
|
|
3733
|
-
var
|
|
3734
|
-
return (y == null ? void 0 : y.object_name) === Do.value + "/" || ((
|
|
3733
|
+
var N;
|
|
3734
|
+
return (y == null ? void 0 : y.object_name) === Do.value + "/" || ((N = Do.value) == null ? void 0 : N.includes(r)) && r + "/" === (y == null ? void 0 : y.object_name) || r === (y == null ? void 0 : y.object_name);
|
|
3735
3735
|
});
|
|
3736
3736
|
return (i == null ? void 0 : i.length) > 0 && (e = e == null ? void 0 : e.map((y) => {
|
|
3737
|
-
var
|
|
3738
|
-
return (y == null ? void 0 : y.comp) === "Table" && (y.compData = (
|
|
3737
|
+
var N;
|
|
3738
|
+
return (y == null ? void 0 : y.comp) === "Table" && (y.compData = (N = y == null ? void 0 : y.compData) == null ? void 0 : N.map((E) => {
|
|
3739
3739
|
var $, z, x;
|
|
3740
3740
|
return (E == null ? void 0 : E.key) === "header" && (Array.isArray(($ = E.contents) == null ? void 0 : $[0]) ? E.contents[0] = (x = E.contents[0]) == null ? void 0 : x.map((w, k) => {
|
|
3741
3741
|
var b;
|
|
@@ -3747,7 +3747,7 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
3747
3747
|
})), y;
|
|
3748
3748
|
})), e;
|
|
3749
3749
|
}, yi = async (e, a, l = {}) => {
|
|
3750
|
-
var c, o, u, v, m, g, d, A, y,
|
|
3750
|
+
var c, o, u, v, m, g, d, A, y, N, E, $;
|
|
3751
3751
|
let r = await $n({
|
|
3752
3752
|
platId: parseInt((c = Zi == null ? void 0 : Zi.value) == null ? void 0 : c.plat_id),
|
|
3753
3753
|
pageName: e
|
|
@@ -3865,7 +3865,7 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
];
|
|
3867
3867
|
await cd({
|
|
3868
|
-
platId: parseInt((
|
|
3868
|
+
platId: parseInt((N = Zi == null ? void 0 : Zi.value) == null ? void 0 : N.plat_id),
|
|
3869
3869
|
changeData: w
|
|
3870
3870
|
});
|
|
3871
3871
|
let k = await $n({
|
|
@@ -3884,20 +3884,20 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
3884
3884
|
e != null && e.endChildMenu && (e == null ? void 0 : e.endChildMenu) !== "" && (a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1]) === "/" && (a = a + (e == null ? void 0 : e.endChildMenu)), (a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1]) === "/" && (a = a + ((n = (i = e.value) == null ? void 0 : i.split(" ")) == null ? void 0 : n[0]));
|
|
3885
3885
|
let l = await yi(a, !1);
|
|
3886
3886
|
if (l = (c = l == null ? void 0 : l.filter((y) => {
|
|
3887
|
-
var
|
|
3888
|
-
return (y == null ? void 0 : y.name) === ((E = e == null ? void 0 : e.groups) == null ? void 0 : E[((
|
|
3887
|
+
var N, E;
|
|
3888
|
+
return (y == null ? void 0 : y.name) === ((E = e == null ? void 0 : e.groups) == null ? void 0 : E[((N = e == null ? void 0 : e.groups) == null ? void 0 : N.length) - 1]);
|
|
3889
3889
|
})) == null ? void 0 : c[0], (u = (o = l == null ? void 0 : l.compData) == null ? void 0 : o.find((y) => (y == null ? void 0 : y.key) === "tableContents")) != null && u.contents) {
|
|
3890
|
-
l = (m = (v = l == null ? void 0 : l.compData) == null ? void 0 : v.find((
|
|
3890
|
+
l = (m = (v = l == null ? void 0 : l.compData) == null ? void 0 : v.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : m.contents;
|
|
3891
3891
|
let y = ((g = e == null ? void 0 : e.words) == null ? void 0 : g[0]) ?? (e == null ? void 0 : e.prop);
|
|
3892
|
-
return l = l == null ? void 0 : l.filter((
|
|
3892
|
+
return l = l == null ? void 0 : l.filter((N) => {
|
|
3893
3893
|
var E, $, z, x;
|
|
3894
|
-
return (
|
|
3894
|
+
return (N == null ? void 0 : N[e != null && e.endChildMenu ? y : (E = e == null ? void 0 : e.words) == null ? void 0 : E[0]]) === (e != null && e.relatedWords && (($ = e == null ? void 0 : e.relatedWords) == null ? void 0 : $.length) > 0 ? (x = (z = e.value) == null ? void 0 : z.split(" ")) == null ? void 0 : x[0] : e.value);
|
|
3895
3895
|
}), l == null ? void 0 : l[0];
|
|
3896
3896
|
} else {
|
|
3897
|
-
let y = (A = (d = l == null ? void 0 : l.compData) == null ? void 0 : d.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : A.contents,
|
|
3897
|
+
let y = (A = (d = l == null ? void 0 : l.compData) == null ? void 0 : d.find((E) => (E == null ? void 0 : E.key) === "formContent")) == null ? void 0 : A.contents, N = {};
|
|
3898
3898
|
return y == null || y.forEach((E) => {
|
|
3899
|
-
|
|
3900
|
-
}),
|
|
3899
|
+
N[E.prop] = E.value;
|
|
3900
|
+
}), N;
|
|
3901
3901
|
}
|
|
3902
3902
|
}, $h = {
|
|
3903
3903
|
key: 0,
|
|
@@ -4101,7 +4101,7 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
4101
4101
|
throw Bl.error(ye.message), new Error(ye.message);
|
|
4102
4102
|
}
|
|
4103
4103
|
}, Q.readAsArrayBuffer(C);
|
|
4104
|
-
},
|
|
4104
|
+
}, N = (O) => {
|
|
4105
4105
|
var Q;
|
|
4106
4106
|
const C = (Q = u.value) == null ? void 0 : Q.reduce((Y, ye, ne) => (ne === 0 ? Y[ye.label] = O : Y[ye.label] = ye == null ? void 0 : ye.value, Y), {});
|
|
4107
4107
|
l("filter", C, O, !0);
|
|
@@ -4195,7 +4195,7 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
4195
4195
|
placeholder: z.value ? (ke = (he = (q = e.filterValues) == null ? void 0 : q.filter((Xe) => Xe)) == null ? void 0 : he.slice(0, 3)) == null ? void 0 : ke.join("/") : "搜索",
|
|
4196
4196
|
"prefix-icon": Xl(ac),
|
|
4197
4197
|
clearable: "",
|
|
4198
|
-
onInput:
|
|
4198
|
+
onInput: N,
|
|
4199
4199
|
disabled: ((De = u.value) == null ? void 0 : De.length) === 0
|
|
4200
4200
|
}, {
|
|
4201
4201
|
suffix: We(() => {
|
|
@@ -4346,7 +4346,7 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
4346
4346
|
placeholder: z.value ? (Me = (de = (Z = e.filterValues) == null ? void 0 : Z.filter((q) => q)) == null ? void 0 : de.slice(0, 3)) == null ? void 0 : Me.join("/") : "搜索",
|
|
4347
4347
|
"prefix-icon": Xl(ac),
|
|
4348
4348
|
clearable: "",
|
|
4349
|
-
onInput:
|
|
4349
|
+
onInput: N,
|
|
4350
4350
|
disabled: ((te = u.value) == null ? void 0 : te.length) === 0
|
|
4351
4351
|
}, {
|
|
4352
4352
|
suffix: We(() => {
|
|
@@ -4511,12 +4511,12 @@ const { selectTitle: zs } = dr(Ld), Nd = async (e, a) => {
|
|
|
4511
4511
|
}, pu({ _: 2 }, [
|
|
4512
4512
|
er(a.$slots, (m, g) => ({
|
|
4513
4513
|
name: g,
|
|
4514
|
-
fn: We(({ row: d, slotData: A, item: y, column:
|
|
4514
|
+
fn: We(({ row: d, slotData: A, item: y, column: N }) => [
|
|
4515
4515
|
Fi(a.$slots, g, ts({ ref_for: !0 }, A ?? d, {
|
|
4516
4516
|
item: y ?? u,
|
|
4517
4517
|
slotData: A ?? d,
|
|
4518
4518
|
row: d,
|
|
4519
|
-
column:
|
|
4519
|
+
column: N,
|
|
4520
4520
|
columnProp: u
|
|
4521
4521
|
}))
|
|
4522
4522
|
])
|
|
@@ -4587,18 +4587,18 @@ class t6 extends Gp {
|
|
|
4587
4587
|
*/
|
|
4588
4588
|
parse(a) {
|
|
4589
4589
|
function l(A, y) {
|
|
4590
|
-
const
|
|
4590
|
+
const N = A.length, E = new Uint8Array(y);
|
|
4591
4591
|
let $ = 0, z = 0, x, w, k;
|
|
4592
4592
|
do
|
|
4593
4593
|
if (x = A[$++], x < 32) {
|
|
4594
4594
|
if (x++, z + x > y) throw new Error("Output buffer is not large enough");
|
|
4595
|
-
if ($ + x >
|
|
4595
|
+
if ($ + x > N) throw new Error("Invalid compressed data");
|
|
4596
4596
|
do
|
|
4597
4597
|
E[z++] = A[$++];
|
|
4598
4598
|
while (--x);
|
|
4599
4599
|
} else {
|
|
4600
|
-
if (w = x >> 5, k = z - ((x & 31) << 8) - 1, $ >=
|
|
4601
|
-
if (w === 7 && (w += A[$++], $ >=
|
|
4600
|
+
if (w = x >> 5, k = z - ((x & 31) << 8) - 1, $ >= N) throw new Error("Invalid compressed data");
|
|
4601
|
+
if (w === 7 && (w += A[$++], $ >= N))
|
|
4602
4602
|
throw new Error("Invalid compressed data");
|
|
4603
4603
|
if (k -= A[$++], z + w + 2 > y) throw new Error("Output buffer is not large enough");
|
|
4604
4604
|
if (k < 0) throw new Error("Invalid compressed data");
|
|
@@ -4607,15 +4607,15 @@ class t6 extends Gp {
|
|
|
4607
4607
|
E[z++] = E[k++];
|
|
4608
4608
|
while (--w + 2);
|
|
4609
4609
|
}
|
|
4610
|
-
while ($ <
|
|
4610
|
+
while ($ < N);
|
|
4611
4611
|
return E;
|
|
4612
4612
|
}
|
|
4613
4613
|
function r(A) {
|
|
4614
|
-
const y = {},
|
|
4614
|
+
const y = {}, N = new Uint8Array(A);
|
|
4615
4615
|
let E = "", $ = "", z = 0, x = !1;
|
|
4616
|
-
const w =
|
|
4616
|
+
const w = N.length;
|
|
4617
4617
|
for (; z < w && x === !1; ) {
|
|
4618
|
-
const O = String.fromCharCode(
|
|
4618
|
+
const O = String.fromCharCode(N[z++]);
|
|
4619
4619
|
O === `
|
|
4620
4620
|
` || O === "\r" ? ($.trim().toLowerCase().startsWith("data") && (x = !0), $ = "") : $ += O, E += O;
|
|
4621
4621
|
}
|
|
@@ -4658,7 +4658,7 @@ class t6 extends Gp {
|
|
|
4658
4658
|
}
|
|
4659
4659
|
}
|
|
4660
4660
|
if (i.data === "binary_compressed") {
|
|
4661
|
-
const A = new Uint32Array(a.slice(i.headerLen, i.headerLen + 8)), y = A[0],
|
|
4661
|
+
const A = new Uint32Array(a.slice(i.headerLen, i.headerLen + 8)), y = A[0], N = A[1], E = l(new Uint8Array(a, i.headerLen + 8, y), N), $ = new DataView(E.buffer), z = i.offset;
|
|
4662
4662
|
for (let x = 0; x < i.points; x++) {
|
|
4663
4663
|
if (z.x !== void 0) {
|
|
4664
4664
|
const w = i.fields.indexOf("x"), k = i.fields.indexOf("y"), b = i.fields.indexOf("z");
|
|
@@ -4684,7 +4684,7 @@ class t6 extends Gp {
|
|
|
4684
4684
|
}
|
|
4685
4685
|
if (i.data === "binary") {
|
|
4686
4686
|
const A = new DataView(a, i.headerLen), y = i.offset;
|
|
4687
|
-
for (let
|
|
4687
|
+
for (let N = 0, E = 0; N < i.points; N++, E += i.rowSize) {
|
|
4688
4688
|
if (y.x !== void 0) {
|
|
4689
4689
|
const $ = i.fields.indexOf("x"), z = i.fields.indexOf("y"), x = i.fields.indexOf("z");
|
|
4690
4690
|
n.push(this._getDataView(A, E + y.x, i.type[$], i.size[$])), n.push(this._getDataView(A, E + y.y, i.type[z], i.size[z])), n.push(this._getDataView(A, E + y.z, i.type[x], i.size[x]));
|
|
@@ -4722,17 +4722,17 @@ function Ig(e, a, l, r, i) {
|
|
|
4722
4722
|
throw console.error("addModelFromUrl失败:", A), A;
|
|
4723
4723
|
}
|
|
4724
4724
|
}, c = (d) => new Promise((A, y) => {
|
|
4725
|
-
const
|
|
4726
|
-
|
|
4725
|
+
const N = new FileReader();
|
|
4726
|
+
N.onload = (E) => {
|
|
4727
4727
|
try {
|
|
4728
4728
|
const $ = E.target.result, x = new Pt().parse($);
|
|
4729
4729
|
x.preload(), A(x);
|
|
4730
4730
|
} catch ($) {
|
|
4731
4731
|
y($);
|
|
4732
4732
|
}
|
|
4733
|
-
},
|
|
4733
|
+
}, N.onerror = () => {
|
|
4734
4734
|
y(new Error("MTL文件读取失败"));
|
|
4735
|
-
},
|
|
4735
|
+
}, N.readAsText(d);
|
|
4736
4736
|
}), o = async (d) => {
|
|
4737
4737
|
const A = {
|
|
4738
4738
|
materials: {},
|
|
@@ -4744,8 +4744,8 @@ function Ig(e, a, l, r, i) {
|
|
|
4744
4744
|
},
|
|
4745
4745
|
getAsArray: function() {
|
|
4746
4746
|
const y = [];
|
|
4747
|
-
for (const
|
|
4748
|
-
y.push(this.materials[
|
|
4747
|
+
for (const N in this.materials)
|
|
4748
|
+
y.push(this.materials[N]);
|
|
4749
4749
|
return y;
|
|
4750
4750
|
},
|
|
4751
4751
|
preload: function() {
|
|
@@ -4754,11 +4754,11 @@ function Ig(e, a, l, r, i) {
|
|
|
4754
4754
|
}
|
|
4755
4755
|
};
|
|
4756
4756
|
for (const y of d) {
|
|
4757
|
-
const
|
|
4758
|
-
Object.assign(A.materials,
|
|
4757
|
+
const N = await c(y);
|
|
4758
|
+
Object.assign(A.materials, N.materials);
|
|
4759
4759
|
}
|
|
4760
4760
|
return A.preload(), A;
|
|
4761
|
-
}, u = async (d, A = []) => new Promise((y,
|
|
4761
|
+
}, u = async (d, A = []) => new Promise((y, N) => {
|
|
4762
4762
|
const E = new FileReader();
|
|
4763
4763
|
E.onload = async ($) => {
|
|
4764
4764
|
try {
|
|
@@ -4775,10 +4775,10 @@ function Ig(e, a, l, r, i) {
|
|
|
4775
4775
|
}));
|
|
4776
4776
|
}), y(k);
|
|
4777
4777
|
} catch (z) {
|
|
4778
|
-
|
|
4778
|
+
N(z);
|
|
4779
4779
|
}
|
|
4780
4780
|
}, E.onerror = () => {
|
|
4781
|
-
|
|
4781
|
+
N(new Error("OBJ文件读取失败"));
|
|
4782
4782
|
}, E.readAsText(d);
|
|
4783
4783
|
}), v = async (d) => {
|
|
4784
4784
|
var A;
|
|
@@ -4788,7 +4788,7 @@ function Ig(e, a, l, r, i) {
|
|
|
4788
4788
|
if (!y)
|
|
4789
4789
|
throw new Error("Scene not initialized");
|
|
4790
4790
|
i();
|
|
4791
|
-
const
|
|
4791
|
+
const N = [];
|
|
4792
4792
|
for (let E = 0; E < d.length; E++) {
|
|
4793
4793
|
const $ = d[E];
|
|
4794
4794
|
r.value = `正在加载模型 ${E + 1}/${d.length}...`;
|
|
@@ -4802,13 +4802,13 @@ function Ig(e, a, l, r, i) {
|
|
|
4802
4802
|
}
|
|
4803
4803
|
}
|
|
4804
4804
|
const b = await u(w, k);
|
|
4805
|
-
y.add(b), a.value.push(b),
|
|
4805
|
+
y.add(b), a.value.push(b), N.push(b);
|
|
4806
4806
|
}
|
|
4807
|
-
return l.value = !1,
|
|
4807
|
+
return l.value = !1, N;
|
|
4808
4808
|
} catch (y) {
|
|
4809
4809
|
throw console.error("加载模型失败:", y), l.value = !1, y;
|
|
4810
4810
|
}
|
|
4811
|
-
}, m = async (d, A, y = [],
|
|
4811
|
+
}, m = async (d, A, y = [], N = []) => {
|
|
4812
4812
|
let E;
|
|
4813
4813
|
const $ = d.toLowerCase();
|
|
4814
4814
|
switch ($) {
|
|
@@ -5109,10 +5109,10 @@ function Ig(e, a, l, r, i) {
|
|
|
5109
5109
|
const { scene: A } = e();
|
|
5110
5110
|
if (!A)
|
|
5111
5111
|
throw new Error("Scene not initialized");
|
|
5112
|
-
i(), await new Promise((
|
|
5112
|
+
i(), await new Promise((N) => setTimeout(N, 100));
|
|
5113
5113
|
const y = [];
|
|
5114
|
-
for (let
|
|
5115
|
-
const E = d[
|
|
5114
|
+
for (let N = 0; N < d.length; N++) {
|
|
5115
|
+
const E = d[N], $ = await m(
|
|
5116
5116
|
E.suffix,
|
|
5117
5117
|
E.blob,
|
|
5118
5118
|
E.mtlBlobs || [],
|
|
@@ -5245,7 +5245,7 @@ const c6 = ["onClick"], d6 = ["src"], f6 = ["src"], p6 = /* @__PURE__ */ ai({
|
|
|
5245
5245
|
cursor: ((O = l == null ? void 0 : l.calculator) == null ? void 0 : O.length) > 0 ? "pointer" : "auto",
|
|
5246
5246
|
background: l != null && l.textBackColor ? Wn(l == null ? void 0 : l.textBackColor) : void 0
|
|
5247
5247
|
};
|
|
5248
|
-
}),
|
|
5248
|
+
}), N = (k) => Ms(k), E = (k) => {
|
|
5249
5249
|
if (!k) return;
|
|
5250
5250
|
const b = k.querySelector("input, textarea, .el-input__inner");
|
|
5251
5251
|
b && typeof b.focus == "function" && b.focus();
|
|
@@ -5319,7 +5319,7 @@ const c6 = ["onClick"], d6 = ["src"], f6 = ["src"], p6 = /* @__PURE__ */ ai({
|
|
|
5319
5319
|
src: k.iconUrl,
|
|
5320
5320
|
class: "bg-upload-icon"
|
|
5321
5321
|
}, null, 8, d6)) : Ml("", !0),
|
|
5322
|
-
i.value === O && S.field ? (ce(), vl(an(
|
|
5322
|
+
i.value === O && S.field ? (ce(), vl(an(N(((C = S.field) == null ? void 0 : C.type) ?? "Input")), {
|
|
5323
5323
|
key: 1,
|
|
5324
5324
|
modelValue: S.field.value,
|
|
5325
5325
|
"onUpdate:modelValue": (Z) => S.field.value = Z,
|
|
@@ -5581,7 +5581,7 @@ class S6 {
|
|
|
5581
5581
|
const r = l[2];
|
|
5582
5582
|
if (r === 80) {
|
|
5583
5583
|
const m = l[3], g = l.length - 4, d = new Uint8Array(g);
|
|
5584
|
-
for (let
|
|
5584
|
+
for (let N = 0; N < g; N++) d[N] = l[4 + N];
|
|
5585
5585
|
const y = decodeURIComponent(this.byteToString(d)).split("|");
|
|
5586
5586
|
(i = this.onDevCount) == null || i.call(this, m, y);
|
|
5587
5587
|
return;
|
|
@@ -5615,8 +5615,8 @@ class S6 {
|
|
|
5615
5615
|
const y = new Uint8Array(d);
|
|
5616
5616
|
for (let E = 0; E < d; E++)
|
|
5617
5617
|
y[E] = l[9 + g + E];
|
|
5618
|
-
const
|
|
5619
|
-
(u = this.onPhoto) == null || u.call(this, { flag: 0, imgPath: A, base64:
|
|
5618
|
+
const N = this.uint8ArrayToString(y);
|
|
5619
|
+
(u = this.onPhoto) == null || u.call(this, { flag: 0, imgPath: A, base64: N });
|
|
5620
5620
|
}
|
|
5621
5621
|
l[3] === 2 && ((v = this.onPhoto) == null || v.call(this, { flag: 2, imgPath: "", base64: "" }));
|
|
5622
5622
|
return;
|
|
@@ -5779,7 +5779,7 @@ const A6 = { style: { display: "flex", gap: "16px", height: "100%" } }, E6 = {
|
|
|
5779
5779
|
C ? A() : y();
|
|
5780
5780
|
}
|
|
5781
5781
|
);
|
|
5782
|
-
const
|
|
5782
|
+
const N = () => {
|
|
5783
5783
|
try {
|
|
5784
5784
|
m.bestSize();
|
|
5785
5785
|
} catch (C) {
|
|
@@ -5890,7 +5890,7 @@ const A6 = { style: { display: "flex", gap: "16px", height: "100%" } }, E6 = {
|
|
|
5890
5890
|
footer: We(() => [
|
|
5891
5891
|
be("div", $6, [
|
|
5892
5892
|
Pe(ye, {
|
|
5893
|
-
onClick:
|
|
5893
|
+
onClick: N,
|
|
5894
5894
|
disabled: !n.value,
|
|
5895
5895
|
id: "themeBorderButton"
|
|
5896
5896
|
}, {
|
|
@@ -6174,7 +6174,7 @@ function Ud(e) {
|
|
|
6174
6174
|
}
|
|
6175
6175
|
Ud();
|
|
6176
6176
|
const lu = async (e, a) => {
|
|
6177
|
-
var c, o, u, v, m, g, d, A, y,
|
|
6177
|
+
var c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b;
|
|
6178
6178
|
let l = (o = (c = Re(e)) == null ? void 0 : c.optionUrl) == null ? void 0 : o.menuSelect, r = [];
|
|
6179
6179
|
l == null || l.forEach((S) => {
|
|
6180
6180
|
});
|
|
@@ -6195,7 +6195,7 @@ const lu = async (e, a) => {
|
|
|
6195
6195
|
var Y, ye, ne, j;
|
|
6196
6196
|
return (Q == null ? void 0 : Q.name) === (((ye = (Y = e == null ? void 0 : e.groupSelect) == null ? void 0 : Y.split(":")) == null ? void 0 : ye[0]) || ((j = (ne = e == null ? void 0 : e.optionUrl) == null ? void 0 : ne.groupSelect) == null ? void 0 : j[0]));
|
|
6197
6197
|
})) == null ? void 0 : A.compData;
|
|
6198
|
-
let O = (
|
|
6198
|
+
let O = (N = (y = S == null ? void 0 : S.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : y.contents) == null ? void 0 : N.map((Q) => Q == null ? void 0 : Q.label);
|
|
6199
6199
|
($ = (E = S == null ? void 0 : S.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : E.contents) != null && $.every((Q) => Array.isArray(Q)) && (O = (w = ei((x = (z = S == null ? void 0 : S.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : z.contents) == null ? void 0 : x[0])) == null ? void 0 : w.map((Q) => Q == null ? void 0 : Q.prop));
|
|
6200
6200
|
let C = (b = (k = S == null ? void 0 : S.find((Q) => (Q == null ? void 0 : Q.key) === "tableContents")) == null ? void 0 : k.contents) == null ? void 0 : b.map((Q) => {
|
|
6201
6201
|
if (Array.isArray(Q))
|
|
@@ -6329,12 +6329,12 @@ function ev() {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
} : function(v, m, g, d) {
|
|
6331
6331
|
if (d = d || open("", "_blank"), d && (d.document.title = d.document.body.innerText = "downloading..."), typeof v == "string") return r(v, m, g);
|
|
6332
|
-
var A = v.type === "application/octet-stream", y = /constructor/i.test(c.HTMLElement) || c.safari,
|
|
6333
|
-
if ((
|
|
6332
|
+
var A = v.type === "application/octet-stream", y = /constructor/i.test(c.HTMLElement) || c.safari, N = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
6333
|
+
if ((N || A && y || o) && typeof FileReader < "u") {
|
|
6334
6334
|
var E = new FileReader();
|
|
6335
6335
|
E.onloadend = function() {
|
|
6336
6336
|
var x = E.result;
|
|
6337
|
-
x =
|
|
6337
|
+
x = N ? x : x.replace(/^data:[^;]*;/, "data:attachment/file;"), d ? d.location.href = x : location = x, d = null;
|
|
6338
6338
|
}, E.readAsDataURL(v);
|
|
6339
6339
|
} else {
|
|
6340
6340
|
var $ = c.URL || c.webkitURL, z = $.createObjectURL(v);
|
|
@@ -6559,7 +6559,7 @@ const Kd = ae(!1), Yo = ae(), Gd = ae(), Yd = ae(), $g = () => {
|
|
|
6559
6559
|
}, Dc = async (e, a, l, r) => {
|
|
6560
6560
|
var i, n, c, o, u, v, m, g, d, A, y;
|
|
6561
6561
|
try {
|
|
6562
|
-
const
|
|
6562
|
+
const N = (n = (i = e == null ? void 0 : e.results) == null ? void 0 : i.filter((k) => !(k != null && k.id) || typeof (k == null ? void 0 : k.id) == "string")) == null ? void 0 : n.map((k) => ({
|
|
6563
6563
|
key: {
|
|
6564
6564
|
pageKey: e == null ? void 0 : e.pageKey,
|
|
6565
6565
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -6584,18 +6584,18 @@ const Kd = ae(!1), Yo = ae(), Gd = ae(), Yd = ae(), $g = () => {
|
|
|
6584
6584
|
return ((b = k == null ? void 0 : k.key) == null ? void 0 : b.type) === a;
|
|
6585
6585
|
})) == null ? void 0 : y.map((k) => k == null ? void 0 : k.id);
|
|
6586
6586
|
const w = x == null ? void 0 : x.filter((k) => !(z != null && z.includes(k)) && typeof k == "number");
|
|
6587
|
-
(
|
|
6588
|
-
dataList:
|
|
6587
|
+
(N == null ? void 0 : N.length) > 0 && await gu({
|
|
6588
|
+
dataList: N
|
|
6589
6589
|
}), (E == null ? void 0 : E.length) > 0 && await jo({
|
|
6590
6590
|
dataList: E
|
|
6591
6591
|
}), (w == null ? void 0 : w.length) > 0 && await co({
|
|
6592
6592
|
ids: w
|
|
6593
6593
|
});
|
|
6594
|
-
} catch (
|
|
6595
|
-
throw new Error(
|
|
6594
|
+
} catch (N) {
|
|
6595
|
+
throw new Error(N);
|
|
6596
6596
|
}
|
|
6597
6597
|
}, Rg = async (e) => {
|
|
6598
|
-
var v, m, g, d, A, y,
|
|
6598
|
+
var v, m, g, d, A, y, N, E, $, z;
|
|
6599
6599
|
Si.setContentLoading(!0);
|
|
6600
6600
|
const a = JSON.parse(JSON.stringify(iv.value));
|
|
6601
6601
|
if (!nv.value)
|
|
@@ -6610,7 +6610,7 @@ const Kd = ae(!1), Yo = ae(), Gd = ae(), Yd = ae(), $g = () => {
|
|
|
6610
6610
|
let u = [];
|
|
6611
6611
|
if (n && (n == null ? void 0 : n.length) > 0 && u.push(Wt(n, "delete", e)), c && (c == null ? void 0 : c.length) > 0 && u.push(Wt(c, "create", e)), o && (o == null ? void 0 : o.length) > 0 && u.push(Wt(o, "update", e)), ls.value && ((m = ls.value) != null && m.isDelete && ((d = (g = ls.value) == null ? void 0 : g.results) == null ? void 0 : d.length) > 0 && ((y = (A = ls.value) == null ? void 0 : A.results) != null && y.every((x) => typeof x == "number")) ? await co({
|
|
6612
6612
|
//@ts-ignore
|
|
6613
|
-
ids: (
|
|
6613
|
+
ids: (N = ls.value) == null ? void 0 : N.results
|
|
6614
6614
|
}) : (console.log("itemGridData.value", ls.value), u.push(await Dc(ls.value, "gridLayout")))), Mo.value)
|
|
6615
6615
|
for (const x in Mo.value)
|
|
6616
6616
|
u.push(await Dc((E = Mo.value) == null ? void 0 : E[x], "extend", { target: x, compId: (z = ($ = Mo.value) == null ? void 0 : $[x]) == null ? void 0 : z.compId }, x));
|
|
@@ -6632,7 +6632,7 @@ const Kd = ae(!1), Yo = ae(), Gd = ae(), Yd = ae(), $g = () => {
|
|
|
6632
6632
|
} catch {
|
|
6633
6633
|
}
|
|
6634
6634
|
}, iu = async (e, a = "data", l) => {
|
|
6635
|
-
var i, n, c, o, u, v, m, g, d, A, y,
|
|
6635
|
+
var i, n, c, o, u, v, m, g, d, A, y, N, E, $, z, x, w, k, b, S, O, C, Q, Y, ye, ne, j, U, J, Z, de, Me, te, D, se, q, he, ke, De, Xe, pe, B, $e, ie, ge, _e, le, xe, Qe, _a, Ze, H, P, ee, fe, me, ha, ua, Ue, ba, Ia, Oe, qa, Oa, va, Ga, fa, Ke, ma, ia, He, je, re, Ve, ta, ga, Ne, Ce, ea, Ie, we, Ua, Il, nl, ar, Al, lr, ol, rr, Qa, fr, pr, gr, $l, Dr;
|
|
6636
6636
|
let r = ((c = (n = (i = qn.value) == null ? void 0 : i.filter((xa) => (xa == null ? void 0 : xa.condition) === "child")) == null ? void 0 : n[0]) == null ? void 0 : c.value) ?? "";
|
|
6637
6637
|
if ((e == null ? void 0 : e.buttonName) === "新增") {
|
|
6638
6638
|
let xa = (o = e == null ? void 0 : e.fixContent) == null ? void 0 : o.map((dl) => {
|
|
@@ -6692,7 +6692,7 @@ const Kd = ae(!1), Yo = ae(), Gd = ae(), Yd = ae(), $g = () => {
|
|
|
6692
6692
|
});
|
|
6693
6693
|
});
|
|
6694
6694
|
}), await Ai({
|
|
6695
|
-
platId: parseInt((
|
|
6695
|
+
platId: parseInt((N = Sl == null ? void 0 : Sl.value) == null ? void 0 : N.plat_id),
|
|
6696
6696
|
changeContents: [{
|
|
6697
6697
|
tableName: "log",
|
|
6698
6698
|
tableContents: Be
|
|
@@ -7271,8 +7271,8 @@ const Kd = ae(!1), Yo = ae(), Gd = ae(), Yd = ae(), $g = () => {
|
|
|
7271
7271
|
d == null || delete d.source_table;
|
|
7272
7272
|
const A = {};
|
|
7273
7273
|
for (let y in d) {
|
|
7274
|
-
const
|
|
7275
|
-
|
|
7274
|
+
const N = d == null ? void 0 : d[y], E = N && Object.prototype.toString.call(N) === "[object Object]" && Object.keys(N).length === 0, $ = Array.isArray(N) && N.length === 0;
|
|
7275
|
+
N == null || N === "{}" || E || $ ? A[y] = "" : A[y] = N;
|
|
7276
7276
|
}
|
|
7277
7277
|
return A;
|
|
7278
7278
|
});
|
|
@@ -7285,8 +7285,8 @@ const Kd = ae(!1), Yo = ae(), Gd = ae(), Yd = ae(), $g = () => {
|
|
|
7285
7285
|
let a = Yo.value;
|
|
7286
7286
|
Yo.value = a == null ? void 0 : a.map((l) => (l.value = e == null ? void 0 : e[l == null ? void 0 : l.prop], l));
|
|
7287
7287
|
}, Fg = async () => {
|
|
7288
|
-
var d, A, y,
|
|
7289
|
-
let e = Yd.value, a = Gd.value, l = (A = (d = e == null ? void 0 : e.columns) == null ? void 0 : d.find((b) => b == null ? void 0 : b.mainKey)) == null ? void 0 : A.prop, r = (
|
|
7288
|
+
var d, A, y, N, E, $, z, x, w, k;
|
|
7289
|
+
let e = Yd.value, a = Gd.value, l = (A = (d = e == null ? void 0 : e.columns) == null ? void 0 : d.find((b) => b == null ? void 0 : b.mainKey)) == null ? void 0 : A.prop, r = (N = (y = Yo.value) == null ? void 0 : y[0]) == null ? void 0 : N.value, i = (E = e == null ? void 0 : e.fixContent) == null ? void 0 : E.map((b) => {
|
|
7290
7290
|
var O;
|
|
7291
7291
|
let S = {};
|
|
7292
7292
|
for (let C in b)
|
|
@@ -7405,11 +7405,11 @@ yl(
|
|
|
7405
7405
|
if ((l == null ? void 0 : l.length) > 0) {
|
|
7406
7406
|
Si.setContentLoading(!0);
|
|
7407
7407
|
let v = ((i = l == null ? void 0 : l[0]) == null ? void 0 : i.relatedContent) ?? (Nl == null ? void 0 : Nl.value), m = v + "/" + ((n = l == null ? void 0 : l[0]) == null ? void 0 : n.value), g = !!((c = l == null ? void 0 : l[0]) != null && c.parentContent), d = await yi(m, g, { originPath: v });
|
|
7408
|
-
d = (o = d == null ? void 0 : d.filter((
|
|
7409
|
-
let A = await Ls(d), y = A == null ? void 0 : A.filter((
|
|
7410
|
-
et.setSelectTab((u = y == null ? void 0 : y[0]) == null ? void 0 : u.choiceName), A = A == null ? void 0 : A.filter((
|
|
7408
|
+
d = (o = d == null ? void 0 : d.filter((N) => N)) == null ? void 0 : o.map((N) => (N.isShow = !0, N)), console.log(d, "loadingContents");
|
|
7409
|
+
let A = await Ls(d), y = A == null ? void 0 : A.filter((N) => N == null ? void 0 : N.choice);
|
|
7410
|
+
et.setSelectTab((u = y == null ? void 0 : y[0]) == null ? void 0 : u.choiceName), A = A == null ? void 0 : A.filter((N) => {
|
|
7411
7411
|
var E;
|
|
7412
|
-
return !(
|
|
7412
|
+
return !(N != null && N.choiceName) || (N == null ? void 0 : N.choiceName) === ((E = y == null ? void 0 : y[0]) == null ? void 0 : E.choiceName);
|
|
7413
7413
|
}), Pr.value = A, Si.setContentLoading(!1);
|
|
7414
7414
|
}
|
|
7415
7415
|
}
|
|
@@ -7509,7 +7509,7 @@ const Gg = async () => {
|
|
|
7509
7509
|
});
|
|
7510
7510
|
}
|
|
7511
7511
|
}, kv = async (e, a, l) => {
|
|
7512
|
-
var d, A, y,
|
|
7512
|
+
var d, A, y, N, E, $, z, x, w, k, b, S;
|
|
7513
7513
|
let r = "", i = "";
|
|
7514
7514
|
for (let O in a)
|
|
7515
7515
|
(a == null ? void 0 : a[O]) === e && (i = O);
|
|
@@ -7518,7 +7518,7 @@ const Gg = async () => {
|
|
|
7518
7518
|
});
|
|
7519
7519
|
let n = r === "" ? Nl.value : r;
|
|
7520
7520
|
r !== "" && Si.setCurrentMenuPath(n), Si.setCurrentMenuPath(n + "/" + e), Si.setContentLoading(!0), Pr.value = await yi(n + "/" + e, !0, { originPath: n + "/", row: a });
|
|
7521
|
-
let c = await yi(n, !1), o = (d = c == null ? void 0 : c.filter((O) => (O == null ? void 0 : O.comp) === "Table")) == null ? void 0 : d[0], u = ((E = (
|
|
7521
|
+
let c = await yi(n, !1), o = (d = c == null ? void 0 : c.filter((O) => (O == null ? void 0 : O.comp) === "Table")) == null ? void 0 : d[0], u = ((E = (N = (y = (A = o == null ? void 0 : o.compData) == null ? void 0 : A.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : y.contents) == null ? void 0 : N[0]) == null ? void 0 : E.prop) ?? ((k = (w = (x = (z = ($ = o == null ? void 0 : o.compData) == null ? void 0 : $.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : z.contents) == null ? void 0 : x[0]) == null ? void 0 : w[0]) == null ? void 0 : k.prop), v = (S = (b = o == null ? void 0 : o.compData) == null ? void 0 : b.find((O) => (O == null ? void 0 : O.key) === "tableContents")) == null ? void 0 : S.contents;
|
|
7522
7522
|
v = v == null ? void 0 : v.map((O) => ({
|
|
7523
7523
|
label: O == null ? void 0 : O[u],
|
|
7524
7524
|
value: O == null ? void 0 : O[u]
|
|
@@ -7873,7 +7873,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
7873
7873
|
emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
|
|
7874
7874
|
setup(e, { emit: a }) {
|
|
7875
7875
|
var Nu;
|
|
7876
|
-
const l = ae([]), r = Fd(ir), i = ae(null), n = ae(/* @__PURE__ */ new Set()), c = ae(/* @__PURE__ */ new Map()), o = ae(!1), u = ae([]), v = ae(/* @__PURE__ */ new Map()), m = /* @__PURE__ */ new Map(), g = ae(/* @__PURE__ */ new Map()), d = e, A = ae((d == null ? void 0 : d.allowSelect) ?? !0), y = ae(((Nu = d == null ? void 0 : d.config) == null ? void 0 : Nu.showIndex) ?? !0),
|
|
7876
|
+
const l = ae([]), r = Fd(ir), i = ae(null), n = ae(/* @__PURE__ */ new Set()), c = ae(/* @__PURE__ */ new Map()), o = ae(!1), u = ae([]), v = ae(/* @__PURE__ */ new Map()), m = /* @__PURE__ */ new Map(), g = ae(/* @__PURE__ */ new Map()), d = e, A = ae((d == null ? void 0 : d.allowSelect) ?? !0), y = ae(((Nu = d == null ? void 0 : d.config) == null ? void 0 : Nu.showIndex) ?? !0), N = ae(), E = ae(!0), $ = ae(!1), z = ae([]), x = {
|
|
7877
7877
|
sortable: "switch",
|
|
7878
7878
|
filterable: "switch",
|
|
7879
7879
|
showSummary: "switch",
|
|
@@ -7989,18 +7989,18 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
7989
7989
|
if (!f) return;
|
|
7990
7990
|
const h = f.url || ((oe = f == null ? void 0 : f.uploadResult) == null ? void 0 : oe.url) || "", L = f.name || ((ue = f == null ? void 0 : f.uploadResult) == null ? void 0 : ue.name) || ((K = f == null ? void 0 : f.uploadResult) == null ? void 0 : K.fileName) || "";
|
|
7991
7991
|
if (!h && !L) return;
|
|
7992
|
-
const
|
|
7992
|
+
const R = {
|
|
7993
7993
|
name: L,
|
|
7994
7994
|
url: h,
|
|
7995
7995
|
ts: Date.now()
|
|
7996
|
-
}, W = String(
|
|
7997
|
-
I > -1 && ar.value.splice(I, 1), ar.value.unshift(
|
|
7996
|
+
}, W = String(R.name || "").trim().toLowerCase(), I = (ar.value || []).findIndex((Ee) => String((Ee == null ? void 0 : Ee.name) || "").trim().toLowerCase() === W);
|
|
7997
|
+
I > -1 && ar.value.splice(I, 1), ar.value.unshift(R), ar.value.length > 20 && (ar.value = ar.value.slice(0, 20)), lr();
|
|
7998
7998
|
};
|
|
7999
7999
|
Al();
|
|
8000
8000
|
const rr = (f, h) => `${x4}:${String(f ?? "")}:${String(h ?? "")}`, Qa = (f, h) => {
|
|
8001
8001
|
try {
|
|
8002
|
-
const L = sessionStorage.getItem(rr(f, h)),
|
|
8003
|
-
return Array.isArray(
|
|
8002
|
+
const L = sessionStorage.getItem(rr(f, h)), R = L ? JSON.parse(L) : [];
|
|
8003
|
+
return Array.isArray(R) ? R : [];
|
|
8004
8004
|
} catch {
|
|
8005
8005
|
return [];
|
|
8006
8006
|
}
|
|
@@ -8011,13 +8011,13 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8011
8011
|
}
|
|
8012
8012
|
}, pr = (f, h, L) => {
|
|
8013
8013
|
if (!h) return;
|
|
8014
|
-
const
|
|
8014
|
+
const R = Qa(f, h), W = [L, ...R || []].filter(Boolean).slice(0, 1);
|
|
8015
8015
|
return fr(f, h, W), W;
|
|
8016
8016
|
}, gr = (f, h, L) => {
|
|
8017
8017
|
if (!h || !L) return;
|
|
8018
|
-
const
|
|
8018
|
+
const R = rr(f, h), W = rr(f, L);
|
|
8019
8019
|
try {
|
|
8020
|
-
const I = sessionStorage.getItem(
|
|
8020
|
+
const I = sessionStorage.getItem(R);
|
|
8021
8021
|
if (!I) return;
|
|
8022
8022
|
const oe = (() => {
|
|
8023
8023
|
try {
|
|
@@ -8027,7 +8027,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8027
8027
|
return [];
|
|
8028
8028
|
}
|
|
8029
8029
|
})(), ue = Qa(f, L), K = [...oe, ...ue || []].filter(Boolean).sort((Ee, Se) => Number((Se == null ? void 0 : Se.ts) || 0) - Number((Ee == null ? void 0 : Ee.ts) || 0)).slice(0, 1);
|
|
8030
|
-
sessionStorage.setItem(W, JSON.stringify(K)), sessionStorage.removeItem(
|
|
8030
|
+
sessionStorage.setItem(W, JSON.stringify(K)), sessionStorage.removeItem(R);
|
|
8031
8031
|
} catch {
|
|
8032
8032
|
}
|
|
8033
8033
|
}, $l = ae(!1), Dr = ae(!1), xa = ae([]), dl = ae(null);
|
|
@@ -8035,8 +8035,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8035
8035
|
const _l = ae(!1), Pl = ae([]), Ja = ae(1), za = ae(/* @__PURE__ */ new Map()), tl = ae(/* @__PURE__ */ new Map()), Be = ae(0), ca = ae(!1), el = ae([]), ve = ae([]), Da = (f) => {
|
|
8036
8036
|
var h;
|
|
8037
8037
|
try {
|
|
8038
|
-
const L = (h = Yi(U.value) || []) == null ? void 0 : h.filter((
|
|
8039
|
-
return (L == null ? void 0 : L.find((
|
|
8038
|
+
const L = (h = Yi(U.value) || []) == null ? void 0 : h.filter((R) => (R == null ? void 0 : R.type) !== "operate" && (R == null ? void 0 : R.label) !== "操作" && (R == null ? void 0 : R.prop) !== "operate");
|
|
8039
|
+
return (L == null ? void 0 : L.find((R) => (R == null ? void 0 : R.prop) === f || (R == null ? void 0 : R.label) === f)) || null;
|
|
8040
8040
|
} catch {
|
|
8041
8041
|
return null;
|
|
8042
8042
|
}
|
|
@@ -8047,9 +8047,9 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8047
8047
|
Kl(() => {
|
|
8048
8048
|
var f;
|
|
8049
8049
|
try {
|
|
8050
|
-
const h = (f = Yi(U.value) || []) == null ? void 0 : f.filter((
|
|
8051
|
-
return h == null || h.forEach((
|
|
8052
|
-
|
|
8050
|
+
const h = (f = Yi(U.value) || []) == null ? void 0 : f.filter((R) => (R == null ? void 0 : R.type) !== "operate" && (R == null ? void 0 : R.label) !== "操作" && (R == null ? void 0 : R.prop) !== "operate"), L = /* @__PURE__ */ new Map();
|
|
8051
|
+
return h == null || h.forEach((R) => {
|
|
8052
|
+
R != null && R.label && (R != null && R.prop) && L.set(R.label, R.prop);
|
|
8053
8053
|
}), L.get("编号") || "";
|
|
8054
8054
|
} catch {
|
|
8055
8055
|
return "";
|
|
@@ -8058,9 +8058,9 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8058
8058
|
const ra = Kl(() => {
|
|
8059
8059
|
var f;
|
|
8060
8060
|
try {
|
|
8061
|
-
const h = (f = Yi(U.value) || []) == null ? void 0 : f.filter((
|
|
8062
|
-
return h == null || h.forEach((
|
|
8063
|
-
|
|
8061
|
+
const h = (f = Yi(U.value) || []) == null ? void 0 : f.filter((R) => (R == null ? void 0 : R.type) !== "operate" && (R == null ? void 0 : R.label) !== "操作" && (R == null ? void 0 : R.prop) !== "operate"), L = /* @__PURE__ */ new Map();
|
|
8062
|
+
return h == null || h.forEach((R) => {
|
|
8063
|
+
R != null && R.label && (R != null && R.prop) && L.set(R.label, R.prop);
|
|
8064
8064
|
}), L.get("名称") || "";
|
|
8065
8065
|
} catch {
|
|
8066
8066
|
return "";
|
|
@@ -8068,9 +8068,9 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8068
8068
|
}), Fa = Kl(() => {
|
|
8069
8069
|
var f;
|
|
8070
8070
|
try {
|
|
8071
|
-
const h = (f = Yi(U.value) || []) == null ? void 0 : f.filter((
|
|
8072
|
-
return h == null || h.forEach((
|
|
8073
|
-
|
|
8071
|
+
const h = (f = Yi(U.value) || []) == null ? void 0 : f.filter((R) => (R == null ? void 0 : R.type) !== "operate" && (R == null ? void 0 : R.label) !== "操作" && (R == null ? void 0 : R.prop) !== "operate"), L = /* @__PURE__ */ new Map();
|
|
8072
|
+
return h == null || h.forEach((R) => {
|
|
8073
|
+
R != null && R.label && (R != null && R.prop) && L.set(R.label, R.prop);
|
|
8074
8074
|
}), L.get("制造厂") || "";
|
|
8075
8075
|
} catch {
|
|
8076
8076
|
return "";
|
|
@@ -8081,13 +8081,13 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8081
8081
|
const L = (f == null ? void 0 : f.ocrRow) || {};
|
|
8082
8082
|
for (const W of Object.keys(L))
|
|
8083
8083
|
W === "id" || W === "_isOCRRow" || W === "_ocrTableId" || Jl(L[W]) && (h[W] = L[W]);
|
|
8084
|
-
const
|
|
8085
|
-
if (
|
|
8084
|
+
const R = qa.value.find((W) => W.id === h.id);
|
|
8085
|
+
if (R)
|
|
8086
8086
|
for (const W of Object.keys(L))
|
|
8087
|
-
W === "id" || W === "_isOCRRow" || W === "_ocrTableId" || Jl(L[W]) && (
|
|
8087
|
+
W === "id" || W === "_isOCRRow" || W === "_ocrTableId" || Jl(L[W]) && (R[W] = L[W]);
|
|
8088
8088
|
Oa.value && Oa.value.set(h.id, h), pr(d == null ? void 0 : d.index, h.id, f == null ? void 0 : f.versionItem), tr.value = [...tr.value || [], JSON.parse(JSON.stringify(h))];
|
|
8089
8089
|
}, gi = async (f, h = null) => {
|
|
8090
|
-
var L,
|
|
8090
|
+
var L, R, W, I, oe, ue, K;
|
|
8091
8091
|
try {
|
|
8092
8092
|
const Ee = (L = Yi(U.value) || []) == null ? void 0 : L.filter((Sa) => (Sa == null ? void 0 : Sa.type) !== "operate" && (Sa == null ? void 0 : Sa.label) !== "操作" && (Sa == null ? void 0 : Sa.prop) !== "operate"), Se = /* @__PURE__ */ new Map();
|
|
8093
8093
|
Ee == null || Ee.forEach((Sa) => {
|
|
@@ -8110,7 +8110,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8110
8110
|
continue;
|
|
8111
8111
|
}
|
|
8112
8112
|
const oa = `设备管理/试验设备/${La}`, fl = await $n({
|
|
8113
|
-
platId: parseInt((
|
|
8113
|
+
platId: parseInt((R = Fl.value) == null ? void 0 : R.plat_id),
|
|
8114
8114
|
pageName: oa
|
|
8115
8115
|
});
|
|
8116
8116
|
if (!((W = fl == null ? void 0 : fl.data) != null && W.result) || !Array.isArray(fl.data.result)) {
|
|
@@ -8260,17 +8260,17 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8260
8260
|
var oe, ue;
|
|
8261
8261
|
return (ue = (oe = Oa.value) == null ? void 0 : oe.set) == null ? void 0 : ue.call(oe, I.id, I);
|
|
8262
8262
|
})), Fr.value = Oe.value;
|
|
8263
|
-
const
|
|
8264
|
-
if (
|
|
8263
|
+
const R = tr.value || [], W = Ca.value || [];
|
|
8264
|
+
if (R.length > 0 && (j("change", {
|
|
8265
8265
|
buttonName: "编辑",
|
|
8266
|
-
singleContent:
|
|
8266
|
+
singleContent: R,
|
|
8267
8267
|
content: Oe.value,
|
|
8268
8268
|
relatedContents: d == null ? void 0 : d.related,
|
|
8269
8269
|
index: d == null ? void 0 : d.index,
|
|
8270
8270
|
parentTableId: d == null ? void 0 : d.parentTableId,
|
|
8271
8271
|
columns: U.value,
|
|
8272
8272
|
name: d == null ? void 0 : d.compName
|
|
8273
|
-
}), gi(
|
|
8273
|
+
}), gi(R)), W.length > 0) {
|
|
8274
8274
|
const I = Zl.value;
|
|
8275
8275
|
j("change", {
|
|
8276
8276
|
buttonName: "OCR批量新增",
|
|
@@ -8288,7 +8288,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8288
8288
|
})).filter((ue) => ue.url)
|
|
8289
8289
|
),
|
|
8290
8290
|
ocrResult: I,
|
|
8291
|
-
matchedCount: (
|
|
8291
|
+
matchedCount: (R || []).length,
|
|
8292
8292
|
newCount: (W || []).length
|
|
8293
8293
|
});
|
|
8294
8294
|
}
|
|
@@ -8307,16 +8307,16 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8307
8307
|
}), yl(
|
|
8308
8308
|
() => fe.value,
|
|
8309
8309
|
async () => {
|
|
8310
|
-
var h, L,
|
|
8311
|
-
if (((h = fe.value) == null ? void 0 : h.length) === 0 || !((L = d == null ? void 0 : d.itemData) != null && L.find((fl) => (fl == null ? void 0 : fl.key) === "columnPath")) || !((
|
|
8310
|
+
var h, L, R, W, I, oe, ue, K, Ee, Se, aa, Je, sa, Sa, $a, La, oa;
|
|
8311
|
+
if (((h = fe.value) == null ? void 0 : h.length) === 0 || !((L = d == null ? void 0 : d.itemData) != null && L.find((fl) => (fl == null ? void 0 : fl.key) === "columnPath")) || !((R = d == null ? void 0 : d.itemData) != null && R.find((fl) => (fl == null ? void 0 : fl.key) === "pageColumn"))) return;
|
|
8312
8312
|
let f = (Ee = (K = (ue = (oe = (I = (W = d == null ? void 0 : d.itemData) == null ? void 0 : W.find((fl) => (fl == null ? void 0 : fl.key) === "pageColumn")) == null ? void 0 : I.contents) == null ? void 0 : oe.split("[")) == null ? void 0 : ue[1]) == null ? void 0 : K.split("]")) == null ? void 0 : Ee[0];
|
|
8313
8313
|
((sa = (Je = (aa = (Se = d == null ? void 0 : d.itemData) == null ? void 0 : Se.find((fl) => (fl == null ? void 0 : fl.key) === "pageColumn")) == null ? void 0 : aa.contents) == null ? void 0 : Je.split("[")) == null ? void 0 : sa[0]) + (($a = (Sa = fe.value) == null ? void 0 : Sa.find((fl) => (fl == null ? void 0 : fl.key) === f)) == null ? void 0 : $a.value), (oa = (La = d == null ? void 0 : d.itemData) == null ? void 0 : La.find((fl) => (fl == null ? void 0 : fl.key) === "pageGroup")) == null || oa.contents, Lu(compData, d.allMapContents);
|
|
8314
8314
|
},
|
|
8315
8315
|
{ deep: !0 }
|
|
8316
8316
|
);
|
|
8317
8317
|
const ji = (f) => {
|
|
8318
|
-
var L,
|
|
8319
|
-
const h = (
|
|
8318
|
+
var L, R, W, I, oe;
|
|
8319
|
+
const h = (R = (L = U.value) == null ? void 0 : L.filter((ue) => ue == null ? void 0 : ue.mainKey)) == null ? void 0 : R.map((ue) => ue == null ? void 0 : ue.prop);
|
|
8320
8320
|
if (h.length === 0) {
|
|
8321
8321
|
const ue = (W = U.value) == null ? void 0 : W.map((K) => K == null ? void 0 : K.prop);
|
|
8322
8322
|
return (I = ue == null ? void 0 : ue.map((K) => f == null ? void 0 : f[K])) == null ? void 0 : I.join("|");
|
|
@@ -8332,21 +8332,21 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8332
8332
|
});
|
|
8333
8333
|
}), L.length > 0)
|
|
8334
8334
|
return Bl.warning(`请填写必填项:${L.join("、")}`);
|
|
8335
|
-
const
|
|
8335
|
+
const R = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map();
|
|
8336
8336
|
(Ee = Oe.value) == null || Ee.forEach((Je) => {
|
|
8337
8337
|
const sa = ji(Je);
|
|
8338
|
-
|
|
8338
|
+
R.set(sa, Je);
|
|
8339
8339
|
}), f == null || f.forEach((Je) => {
|
|
8340
8340
|
const sa = ji(Je);
|
|
8341
8341
|
W.set(sa, Je);
|
|
8342
8342
|
});
|
|
8343
|
-
const I = f == null ? void 0 : f.filter((Je) =>
|
|
8343
|
+
const I = f == null ? void 0 : f.filter((Je) => R.has(ji(Je))), oe = (Se = Oe.value) == null ? void 0 : Se.filter((Je) => W.has(ji(Je)));
|
|
8344
8344
|
return (I == null ? void 0 : I.length) > 0 && (X.columns = (aa = U.value) == null ? void 0 : aa.filter((Je) => (Je == null ? void 0 : Je.label) !== "操作"), X.existRows = oe, X.tableData = I, X.show = !0), X.newRows = f == null ? void 0 : f.filter((Je) => {
|
|
8345
8345
|
const sa = ji(Je);
|
|
8346
|
-
return !
|
|
8346
|
+
return !R.has(sa);
|
|
8347
8347
|
}), X.newRows;
|
|
8348
8348
|
}, Ei = ae(""), rn = ae(null), bn = async () => {
|
|
8349
|
-
var f, h, L,
|
|
8349
|
+
var f, h, L, R, W, I;
|
|
8350
8350
|
try {
|
|
8351
8351
|
const oe = await En({
|
|
8352
8352
|
related: [{
|
|
@@ -8357,7 +8357,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8357
8357
|
});
|
|
8358
8358
|
if (((h = oe == null ? void 0 : oe.data) == null ? void 0 : h.code) === 200) {
|
|
8359
8359
|
rn.value = (L = oe == null ? void 0 : oe.data) == null ? void 0 : L.result;
|
|
8360
|
-
const ue = (
|
|
8360
|
+
const ue = (R = U.value) == null ? void 0 : R.map((Se) => (Se == null ? void 0 : Se.prop) || (Se == null ? void 0 : Se.label)), K = Ti(ue, (W = oe == null ? void 0 : oe.data) == null ? void 0 : W.result), Ee = K == null ? void 0 : K.flatMap((Se) => Se == null ? void 0 : Se.quote);
|
|
8361
8361
|
(Ee == null ? void 0 : Ee.length) > 0 && (Ei.value = (I = Ee == null ? void 0 : Ee.map((Se) => Se == null ? void 0 : Se.menus)) == null ? void 0 : I.join("、"));
|
|
8362
8362
|
}
|
|
8363
8363
|
} catch (oe) {
|
|
@@ -8366,13 +8366,13 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8366
8366
|
};
|
|
8367
8367
|
function Ti(f, h) {
|
|
8368
8368
|
var L;
|
|
8369
|
-
return (L = h.filter((
|
|
8370
|
-
const W = { ...
|
|
8369
|
+
return (L = h.filter((R) => R.struct && Array.isArray(R.struct) ? R.struct.some((W) => W.words && Array.isArray(W.words) ? W.words.some((I) => f.includes(I)) : !1) : !1)) == null ? void 0 : L.map((R) => {
|
|
8370
|
+
const W = { ...R };
|
|
8371
8371
|
return W.struct && Array.isArray(W.struct) && (W.struct = W.struct.filter((I) => I.words && Array.isArray(I.words) ? I.words.some((oe) => f.includes(oe)) : !1)), W;
|
|
8372
8372
|
});
|
|
8373
8373
|
}
|
|
8374
8374
|
const kn = async (f, h) => {
|
|
8375
|
-
var L,
|
|
8375
|
+
var L, R;
|
|
8376
8376
|
try {
|
|
8377
8377
|
rn.value || await bn();
|
|
8378
8378
|
const W = h == null ? void 0 : h.map((oe) => {
|
|
@@ -8395,7 +8395,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8395
8395
|
request_param: JSON.stringify(t1),
|
|
8396
8396
|
request_result: JSON.stringify(W),
|
|
8397
8397
|
is_delete: !1,
|
|
8398
|
-
request_table: (
|
|
8398
|
+
request_table: (R = d == null ? void 0 : d.related) == null ? void 0 : R.find((I) => I == null ? void 0 : I.includes("content")),
|
|
8399
8399
|
request_type: "error"
|
|
8400
8400
|
}]
|
|
8401
8401
|
}]
|
|
@@ -8413,15 +8413,15 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8413
8413
|
var sa, Sa;
|
|
8414
8414
|
return (Je == null ? void 0 : Je.type) === "Select" && (f == null ? void 0 : f.key) === (Je == null ? void 0 : Je.prop) && Array.isArray(Je.value) && (sa = Je.value) != null && sa.every(($a) => typeof $a == "string") && (Je.selectValue = (Sa = h == null ? void 0 : h.find(($a) => ($a == null ? void 0 : $a.key) === (Je == null ? void 0 : Je.prop))) == null ? void 0 : Sa.value), Je;
|
|
8415
8415
|
});
|
|
8416
|
-
let
|
|
8417
|
-
if (
|
|
8418
|
-
let Je = await lu(W == null ? void 0 : W.optionUrl,
|
|
8416
|
+
let R = (K = (ue = L == null ? void 0 : L.find((Je) => (Je == null ? void 0 : Je.prop) === (f == null ? void 0 : f.key))) == null ? void 0 : ue.optionUrl) == null ? void 0 : K.menuId, W = L == null ? void 0 : L.find((Je) => (Je == null ? void 0 : Je.prop) === (f == null ? void 0 : f.key));
|
|
8417
|
+
if (R) {
|
|
8418
|
+
let Je = await lu(W == null ? void 0 : W.optionUrl, R), sa, Sa = Y.value, $a = (aa = (Se = (Ee = we.value) == null ? void 0 : Ee.find((La) => {
|
|
8419
8419
|
var oa;
|
|
8420
8420
|
return (oa = W == null ? void 0 : W.optionUrl) == null ? void 0 : oa.menuId;
|
|
8421
8421
|
})) == null ? void 0 : Se.selectValue) == null ? void 0 : aa[0];
|
|
8422
8422
|
if (Je == null || Je.forEach((La) => {
|
|
8423
8423
|
var oa, fl, Ta, pl, Ae, Wa, wa, al, Pa, Le;
|
|
8424
|
-
if (
|
|
8424
|
+
if (R) {
|
|
8425
8425
|
let V = (fl = (oa = we.value) == null ? void 0 : oa.find((ya) => {
|
|
8426
8426
|
var M, Na;
|
|
8427
8427
|
return ((M = W == null ? void 0 : W.optionUrl) == null ? void 0 : M.menuId) === ((Na = ya == null ? void 0 : ya.optionUrl) == null ? void 0 : Na.menuId);
|
|
@@ -8432,14 +8432,14 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8432
8432
|
let La = L;
|
|
8433
8433
|
La = La == null ? void 0 : La.map((oa) => {
|
|
8434
8434
|
var fl, Ta, pl, Ae, Wa, wa;
|
|
8435
|
-
return
|
|
8435
|
+
return R && (sa != null && sa[oa == null ? void 0 : oa.prop]) && ma.value === "新增" && (oa == null ? void 0 : oa.prop) !== (W == null ? void 0 : W.prop) ? oa.value = (sa == null ? void 0 : sa[oa == null ? void 0 : oa.prop]) || (sa == null ? void 0 : sa[(Ae = (pl = (Ta = (fl = oa == null ? void 0 : oa.optionUrl) == null ? void 0 : fl.groupSelect) == null ? void 0 : Ta[1]) == null ? void 0 : pl.replaceAll("[", "")) == null ? void 0 : Ae.replaceAll("]", "")]) : oa.value = (wa = (Wa = we.value) == null ? void 0 : Wa.find((al) => (al == null ? void 0 : al.prop) === (oa == null ? void 0 : oa.prop))) == null ? void 0 : wa.value, oa;
|
|
8436
8436
|
}), we.value = La;
|
|
8437
8437
|
}
|
|
8438
8438
|
}
|
|
8439
8439
|
Z.value = h;
|
|
8440
8440
|
}, un = async (f, h) => {
|
|
8441
|
-
var L,
|
|
8442
|
-
if ((L = f == null ? void 0 : f.toString()) != null && L.includes(".txt") || (
|
|
8441
|
+
var L, R, W, I, oe;
|
|
8442
|
+
if ((L = f == null ? void 0 : f.toString()) != null && L.includes(".txt") || (R = f == null ? void 0 : f.toString()) != null && R.includes(".cpt") || (W = f == null ? void 0 : f.toString()) != null && W.includes(".cyd")) {
|
|
8443
8443
|
const ue = await Hi.get(f, {
|
|
8444
8444
|
responseType: "blob",
|
|
8445
8445
|
// 必须设置
|
|
@@ -8467,7 +8467,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8467
8467
|
const nn = Ii({ prop: "", order: null }), lt = Kl(() => {
|
|
8468
8468
|
const f = (Oe.value ?? []).slice(), h = nn.prop || de.prop, L = nn.order || de.order;
|
|
8469
8469
|
if (!h || !L) return f;
|
|
8470
|
-
const
|
|
8470
|
+
const R = L === "ascending", W = (oe) => {
|
|
8471
8471
|
if (h)
|
|
8472
8472
|
return oe && Object.prototype.hasOwnProperty.call(oe, h) ? oe[h] : h.includes(".") ? h.split(".").reduce((ue, K) => ue == null ? ue : ue[K], oe) : oe == null ? void 0 : oe[h];
|
|
8473
8473
|
}, I = (oe) => {
|
|
@@ -8484,10 +8484,10 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8484
8484
|
return f.sort((oe, ue) => {
|
|
8485
8485
|
const K = W(oe), Ee = W(ue);
|
|
8486
8486
|
if (K == null && Ee == null) return 0;
|
|
8487
|
-
if (K == null) return
|
|
8488
|
-
if (Ee == null) return
|
|
8487
|
+
if (K == null) return R ? -1 : 1;
|
|
8488
|
+
if (Ee == null) return R ? 1 : -1;
|
|
8489
8489
|
const Se = I(K), aa = I(Ee);
|
|
8490
|
-
if (Se.ok && aa.ok) return
|
|
8490
|
+
if (Se.ok && aa.ok) return R ? Se.value - aa.value : aa.value - Se.value;
|
|
8491
8491
|
const Je = (Ae) => {
|
|
8492
8492
|
if (Ae == null) return { ok: !1, value: NaN };
|
|
8493
8493
|
const Wa = String(Ae).trim();
|
|
@@ -8497,11 +8497,11 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8497
8497
|
const al = wa[1] ? -1 : 1, Pa = Number(wa[2]), Le = Number(wa[3]), V = Number(wa[4]);
|
|
8498
8498
|
return [Pa, Le, V].some((Ge) => Number.isNaN(Ge)) ? { ok: !1, value: NaN } : Le >= 60 || V >= 60 ? { ok: !1, value: NaN } : { ok: !0, value: al * (Pa * 3600 + Le * 60 + V) };
|
|
8499
8499
|
}, sa = Je(K), Sa = Je(Ee);
|
|
8500
|
-
if (sa.ok && Sa.ok) return
|
|
8500
|
+
if (sa.ok && Sa.ok) return R ? sa.value - Sa.value : Sa.value - sa.value;
|
|
8501
8501
|
const $a = new Date(K).getTime(), La = new Date(Ee).getTime(), oa = !Number.isNaN($a), fl = !Number.isNaN(La);
|
|
8502
|
-
if (oa && fl) return
|
|
8502
|
+
if (oa && fl) return R ? $a - La : La - $a;
|
|
8503
8503
|
const Ta = String(K), pl = String(Ee);
|
|
8504
|
-
return
|
|
8504
|
+
return R ? Ta.localeCompare(pl) : pl.localeCompare(Ta);
|
|
8505
8505
|
});
|
|
8506
8506
|
}), hn = Kl(() => {
|
|
8507
8507
|
var L;
|
|
@@ -8510,17 +8510,17 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8510
8510
|
}), rt = (f) => {
|
|
8511
8511
|
ne.currentPage = f, j("getSliceContLength", ne);
|
|
8512
8512
|
}, it = (f) => {
|
|
8513
|
-
var
|
|
8513
|
+
var R;
|
|
8514
8514
|
ne.pageSize = f;
|
|
8515
|
-
const h = ((
|
|
8515
|
+
const h = ((R = Oe.value) == null ? void 0 : R.length) ?? 0, L = f > 0 ? Math.ceil(h / f) : 1;
|
|
8516
8516
|
ne.currentPage > L && (ne.currentPage = L || 1, Bl.warning("当前页超出范围,已自动跳转到最后一页")), j("getSliceContLength", ne);
|
|
8517
8517
|
}, nt = ({ prop: f, order: h }) => {
|
|
8518
8518
|
nn.prop = f, nn.order = h, ne.currentPage = 1;
|
|
8519
8519
|
};
|
|
8520
8520
|
function po(f) {
|
|
8521
8521
|
const h = [];
|
|
8522
|
-
function L(
|
|
8523
|
-
|
|
8522
|
+
function L(R, W = "") {
|
|
8523
|
+
R.forEach((I) => {
|
|
8524
8524
|
I.children && I.children.length > 0 ? L(I.children, I.prop) : h.push(I.prop);
|
|
8525
8525
|
});
|
|
8526
8526
|
}
|
|
@@ -8538,12 +8538,12 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8538
8538
|
kn(W, h);
|
|
8539
8539
|
}, Ci = (f, h) => {
|
|
8540
8540
|
var W;
|
|
8541
|
-
const L = f == null ? void 0 : f.filter((I) => I !== "序号"),
|
|
8541
|
+
const L = f == null ? void 0 : f.filter((I) => I !== "序号"), R = h == null ? void 0 : h.map((I) => {
|
|
8542
8542
|
const oe = Object.entries(I);
|
|
8543
8543
|
return oe.shift(), Object.fromEntries(oe);
|
|
8544
8544
|
});
|
|
8545
|
-
Ze.setRefreshCurStructure(!1), ((W = U.value) == null ? void 0 : W.length) === 0 || ho(L,
|
|
8546
|
-
}, st = (f, h, L,
|
|
8545
|
+
Ze.setRefreshCurStructure(!1), ((W = U.value) == null ? void 0 : W.length) === 0 || ho(L, R);
|
|
8546
|
+
}, st = (f, h, L, R) => {
|
|
8547
8547
|
const W = [], I = [], oe = (Ee) => Object.keys(Ee).length;
|
|
8548
8548
|
for (const Ee in f)
|
|
8549
8549
|
if (f[Ee] !== void 0) {
|
|
@@ -8554,8 +8554,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8554
8554
|
}
|
|
8555
8555
|
W.unshift(I);
|
|
8556
8556
|
const ue = eo.aoa_to_sheet(W), K = eo.book_new();
|
|
8557
|
-
eo.book_append_sheet(K, ue,
|
|
8558
|
-
}, vo = async (f, h, L,
|
|
8557
|
+
eo.book_append_sheet(K, ue, R), Rp(K, `${h}.xlsx`), Gr.value = [];
|
|
8558
|
+
}, vo = async (f, h, L, R = !1, W) => {
|
|
8559
8559
|
try {
|
|
8560
8560
|
Ze.setRefreshCurStructure(!1);
|
|
8561
8561
|
} catch (I) {
|
|
@@ -8570,17 +8570,17 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8570
8570
|
if (!Ia(d.config, {
|
|
8571
8571
|
type: ba.TABLE
|
|
8572
8572
|
})) return;
|
|
8573
|
-
const
|
|
8573
|
+
const R = (ne.currentPage - 1) * ne.pageSize + (h ?? 0);
|
|
8574
8574
|
f._isTemp = !0;
|
|
8575
8575
|
try {
|
|
8576
|
-
(f.sort === void 0 || f.sort === null || String(f.sort).trim() === "") && (f.sort = Zn(
|
|
8576
|
+
(f.sort === void 0 || f.sort === null || String(f.sort).trim() === "") && (f.sort = Zn(R, Oe.value || []));
|
|
8577
8577
|
} catch {
|
|
8578
8578
|
}
|
|
8579
|
-
Oe.value.splice(
|
|
8579
|
+
Oe.value.splice(R, 0, f), await jl(), c.value.has(f.id) || c.value.set(f.id, Re(f)), Oe.value = (W = Oe.value) == null ? void 0 : W.map((I) => ({
|
|
8580
8580
|
...I,
|
|
8581
8581
|
tableEditType: (I == null ? void 0 : I.id) === f.id ? "edit" : (I == null ? void 0 : I.tableEditType) ?? "text"
|
|
8582
8582
|
})), n.value.add(f.id), br.value = !0;
|
|
8583
|
-
}, ct = (f, h, L,
|
|
8583
|
+
}, ct = (f, h, L, R = []) => (!Array.isArray(h) || h.length === 0 || h.forEach((W) => {
|
|
8584
8584
|
const I = W == null ? void 0 : W.prop;
|
|
8585
8585
|
if (!I) return;
|
|
8586
8586
|
let oe = f == null ? void 0 : f[I];
|
|
@@ -8591,7 +8591,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8591
8591
|
// 现有数据(排除当前这一行自身)
|
|
8592
8592
|
...(Array.isArray(L) ? L : []).filter((Se) => (Se == null ? void 0 : Se.id) !== (f == null ? void 0 : f.id)).map((Se) => Se == null ? void 0 : Se[I]).filter((Se) => Se != null).map((Se) => String(Se)),
|
|
8593
8593
|
// 本次提交中已经构造好的新增行
|
|
8594
|
-
...(Array.isArray(
|
|
8594
|
+
...(Array.isArray(R) ? R : []).map((Se) => Se == null ? void 0 : Se[I]).filter((Se) => Se != null).map((Se) => String(Se))
|
|
8595
8595
|
]
|
|
8596
8596
|
);
|
|
8597
8597
|
if (!ue.has(oe))
|
|
@@ -8627,7 +8627,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8627
8627
|
}
|
|
8628
8628
|
}
|
|
8629
8629
|
}
|
|
8630
|
-
const L = [],
|
|
8630
|
+
const L = [], R = [];
|
|
8631
8631
|
if (f.forEach((Je) => {
|
|
8632
8632
|
var fl;
|
|
8633
8633
|
const sa = (fl = Oe.value) == null ? void 0 : fl.find((Ta) => (Ta == null ? void 0 : Ta.id) === Je);
|
|
@@ -8655,12 +8655,12 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8655
8655
|
), La = new Set($a.map((Ta) => Ta == null ? void 0 : Ta.prop).filter(Boolean)), oa = {};
|
|
8656
8656
|
for (const Ta of La)
|
|
8657
8657
|
Object.prototype.hasOwnProperty.call(sa, Ta) && (oa[Ta] = sa[Ta]);
|
|
8658
|
-
|
|
8658
|
+
R.push({
|
|
8659
8659
|
id: sa.id,
|
|
8660
8660
|
value: { tableData: oa }
|
|
8661
8661
|
});
|
|
8662
|
-
}), Ze.setTableLoading(d == null ? void 0 : d.index),
|
|
8663
|
-
const Je =
|
|
8662
|
+
}), Ze.setTableLoading(d == null ? void 0 : d.index), R.length > 0) {
|
|
8663
|
+
const Je = R.map((Sa) => {
|
|
8664
8664
|
const $a = {
|
|
8665
8665
|
id: Sa.id,
|
|
8666
8666
|
...Sa.value.tableData
|
|
@@ -8702,14 +8702,14 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8702
8702
|
}
|
|
8703
8703
|
f.forEach((L) => {
|
|
8704
8704
|
var I, oe;
|
|
8705
|
-
const
|
|
8705
|
+
const R = c.value.get(L), W = (I = Oe.value) == null ? void 0 : I.find((ue) => (ue == null ? void 0 : ue.id) === L);
|
|
8706
8706
|
if (W != null && W._isTemp) {
|
|
8707
8707
|
Oe.value = Oe.value.filter((ue) => (ue == null ? void 0 : ue.id) !== W.id);
|
|
8708
8708
|
return;
|
|
8709
8709
|
}
|
|
8710
|
-
if (
|
|
8710
|
+
if (R) {
|
|
8711
8711
|
const ue = (oe = Oe.value) == null ? void 0 : oe.findIndex((K) => (K == null ? void 0 : K.id) === L);
|
|
8712
|
-
ue !== -1 && (Oe.value[ue] = { ...Oe.value[ue], ...
|
|
8712
|
+
ue !== -1 && (Oe.value[ue] = { ...Oe.value[ue], ...R });
|
|
8713
8713
|
}
|
|
8714
8714
|
}), n.value.clear(), c.value.clear(), Oe.value = (h = Oe.value) == null ? void 0 : h.map((L) => ({ ...L, tableEditType: "text" })), br.value = !1;
|
|
8715
8715
|
}, ps = ae(!1), Jn = async (f) => {
|
|
@@ -8717,8 +8717,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8717
8717
|
if (!br.value || f != null && f.isComposing || (f == null ? void 0 : f.key) !== "Enter") return;
|
|
8718
8718
|
const h = f == null ? void 0 : f.target;
|
|
8719
8719
|
if (((I = (W = h == null ? void 0 : h.tagName) == null ? void 0 : W.toLowerCase) == null ? void 0 : I.call(W)) === "textarea") return;
|
|
8720
|
-
const
|
|
8721
|
-
|
|
8720
|
+
const R = document.getElementById("excel-table");
|
|
8721
|
+
R && !R.contains(h) || ((oe = h == null ? void 0 : h.blur) == null || oe.call(h), (ue = f.preventDefault) == null || ue.call(f), await jl(), await _n());
|
|
8722
8722
|
}, _n = async () => {
|
|
8723
8723
|
if (ee.value) {
|
|
8724
8724
|
br.value = !1;
|
|
@@ -8741,15 +8741,15 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8741
8741
|
}, yo = (f) => {
|
|
8742
8742
|
if (!f)
|
|
8743
8743
|
return;
|
|
8744
|
-
const { item: h, value: L } = f,
|
|
8745
|
-
|
|
8744
|
+
const { item: h, value: L } = f, R = we.value.find((W) => W.prop == h.prop);
|
|
8745
|
+
R && R.contents.push({
|
|
8746
8746
|
label: L,
|
|
8747
8747
|
value: L
|
|
8748
8748
|
});
|
|
8749
8749
|
}, Rn = Kl(() => {
|
|
8750
|
-
var L,
|
|
8750
|
+
var L, R, W;
|
|
8751
8751
|
const f = (L = U.value) == null ? void 0 : L.some((I) => I == null ? void 0 : I.filterable);
|
|
8752
|
-
return document.documentElement.style.setProperty("--ssTable-header-filter-display", f ? "inline-block" : "none"), (W = (
|
|
8752
|
+
return document.documentElement.style.setProperty("--ssTable-header-filter-display", f ? "inline-block" : "none"), (W = (R = U.value) == null ? void 0 : R.filter((I) => (I == null ? void 0 : I.label) !== "操作")) == null ? void 0 : W.map((I) => ({
|
|
8753
8753
|
...I,
|
|
8754
8754
|
filterable: !!(I != null && I.filterable),
|
|
8755
8755
|
showSummary: !!(I != null && I.showSummary),
|
|
@@ -8757,9 +8757,9 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8757
8757
|
fixed: I == null ? void 0 : I.fixed
|
|
8758
8758
|
}));
|
|
8759
8759
|
}), Rs = async (f, h, L) => {
|
|
8760
|
-
const
|
|
8760
|
+
const R = Re(U.value);
|
|
8761
8761
|
await jl();
|
|
8762
|
-
const W =
|
|
8762
|
+
const W = R == null ? void 0 : R.map((oe) => (L == null ? void 0 : L.label) === (oe == null ? void 0 : oe.label) ? {
|
|
8763
8763
|
...oe,
|
|
8764
8764
|
[h]: f
|
|
8765
8765
|
} : oe), I = zn(W);
|
|
@@ -8774,10 +8774,10 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8774
8774
|
let h = await X6(d.index);
|
|
8775
8775
|
h || (h = zn(f)), J.value = h;
|
|
8776
8776
|
}, ht = async (f, h) => {
|
|
8777
|
-
const L = Re(U.value),
|
|
8777
|
+
const L = Re(U.value), R = (oe) => Array.isArray(oe) ? oe.map((ue) => {
|
|
8778
8778
|
const K = Array.isArray(ue == null ? void 0 : ue.children) && ue.children.length > 0, Ee = { ...ue };
|
|
8779
|
-
return (Ee == null ? void 0 : Ee.prop) === "operate" || (Ee == null ? void 0 : Ee.label) === "操作" || (Ee == null ? void 0 : Ee.type) === "operate" ? (Ee.sortable = !1, Ee.filterable = !1, Ee.operable = !1) : Ee.sortable = K ? !1 : !!f, K && (Ee.children =
|
|
8780
|
-
}) : oe, W =
|
|
8779
|
+
return (Ee == null ? void 0 : Ee.prop) === "operate" || (Ee == null ? void 0 : Ee.label) === "操作" || (Ee == null ? void 0 : Ee.type) === "operate" ? (Ee.sortable = !1, Ee.filterable = !1, Ee.operable = !1) : Ee.sortable = K ? !1 : !!f, K && (Ee.children = R(Ee.children)), Ee;
|
|
8780
|
+
}) : oe, W = R(L), I = zn(W);
|
|
8781
8781
|
await wc(d.index, I), U.value = W, J.value = I, await jl(), vr.value = vr.value + 1;
|
|
8782
8782
|
}, vt = () => {
|
|
8783
8783
|
ia.value = !1;
|
|
@@ -8785,8 +8785,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8785
8785
|
j("clickTrigger", f);
|
|
8786
8786
|
}, go = async (f) => {
|
|
8787
8787
|
var I, oe, ue, K, Ee, Se, aa, Je, sa, Sa, $a, La, oa, fl, Ta;
|
|
8788
|
-
const h = f == null ? void 0 : f.row, L = f == null ? void 0 : f.rowData,
|
|
8789
|
-
if ((I = h == null ? void 0 : h.toString()) != null && I.includes(".urdf") || f != null && f.isUrdf ||
|
|
8788
|
+
const h = f == null ? void 0 : f.row, L = f == null ? void 0 : f.rowData, R = f == null ? void 0 : f.suffix;
|
|
8789
|
+
if ((I = h == null ? void 0 : h.toString()) != null && I.includes(".urdf") || f != null && f.isUrdf || R != null && R.includes(".urdf")) {
|
|
8790
8790
|
if (h.includes(",")) {
|
|
8791
8791
|
Bl.error("当前版本仅允许单个urdf预览!");
|
|
8792
8792
|
return;
|
|
@@ -8820,11 +8820,11 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8820
8820
|
Ce.value = Ae, D.value = !1, te.value = !0;
|
|
8821
8821
|
return;
|
|
8822
8822
|
}
|
|
8823
|
-
if ((aa = h == null ? void 0 : h.toString()) != null && aa.includes(".stl") || (Je = h == null ? void 0 : h.toString()) != null && Je.includes(".STL") || (sa = h == null ? void 0 : h.toString()) != null && sa.includes(".obj") || (Sa = h == null ? void 0 : h.toString()) != null && Sa.includes(".mtl") ||
|
|
8823
|
+
if ((aa = h == null ? void 0 : h.toString()) != null && aa.includes(".stl") || (Je = h == null ? void 0 : h.toString()) != null && Je.includes(".STL") || (sa = h == null ? void 0 : h.toString()) != null && sa.includes(".obj") || (Sa = h == null ? void 0 : h.toString()) != null && Sa.includes(".mtl") || R != null && R.includes(".stl") || R != null && R.includes(".STL") || R != null && R.includes(".obj") || R != null && R.includes(".mtl")) {
|
|
8824
8824
|
let pl, Ae = [], Wa = {};
|
|
8825
8825
|
if (Array.isArray(h) ? pl = h : pl = h == null ? void 0 : h.split(","), pl == null || pl.forEach((wa) => {
|
|
8826
8826
|
wa.includes(".mtl") ? Ae.push(wa) : Wa.blob = Wa.blob ? Wa.blob + "," + wa : wa;
|
|
8827
|
-
}), (Ae == null ? void 0 : Ae.length) > 0 && (Wa.mtlBlobs = Ae),
|
|
8827
|
+
}), (Ae == null ? void 0 : Ae.length) > 0 && (Wa.mtlBlobs = Ae), R && (Wa.suffix = R), (La = ($a = Object.values(Wa)) == null ? void 0 : $a[0]) != null && La.includes("http:"))
|
|
8828
8828
|
W.push(Wa);
|
|
8829
8829
|
else {
|
|
8830
8830
|
const wa = new Blob([Wa.blob], {
|
|
@@ -8869,16 +8869,16 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8869
8869
|
}
|
|
8870
8870
|
(W == null ? void 0 : W.length) > 0 && r.setBlobUrls(W);
|
|
8871
8871
|
}, Xn = (f) => {
|
|
8872
|
-
var
|
|
8872
|
+
var R, W, I, oe;
|
|
8873
8873
|
if (f != null && f.downloadUrl)
|
|
8874
8874
|
return f == null ? void 0 : f.name;
|
|
8875
|
-
const h = (oe = (
|
|
8875
|
+
const h = (oe = (R = f == null ? void 0 : f.url) == null ? void 0 : R.split(".")) == null ? void 0 : oe[((I = (W = f == null ? void 0 : f.url) == null ? void 0 : W.split(".")) == null ? void 0 : I.length) - 1];
|
|
8876
8876
|
return (f == null ? void 0 : f.name) + "." + h;
|
|
8877
8877
|
}, vs = (f) => {
|
|
8878
8878
|
if (!f) return "未知文件";
|
|
8879
8879
|
try {
|
|
8880
|
-
const
|
|
8881
|
-
if (typeof
|
|
8880
|
+
const R = Xn(f);
|
|
8881
|
+
if (typeof R == "string" && R.includes(".")) return R;
|
|
8882
8882
|
} catch {
|
|
8883
8883
|
}
|
|
8884
8884
|
const h = (f == null ? void 0 : f.fileName) || (f == null ? void 0 : f.name) || "未知文件", L = (f == null ? void 0 : f.suffix) || "";
|
|
@@ -8887,8 +8887,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8887
8887
|
if (f == null || typeof f == "number" || typeof f != "string") return f;
|
|
8888
8888
|
const h = f.match(/^(\d+)\_(\d+)$/);
|
|
8889
8889
|
if (!h) return f;
|
|
8890
|
-
const L = Number(h[1]),
|
|
8891
|
-
return !Number.isFinite(L) || !Number.isFinite(
|
|
8890
|
+
const L = Number(h[1]), R = Number(h[2]);
|
|
8891
|
+
return !Number.isFinite(L) || !Number.isFinite(R) ? f : String(L * 1e3 + R);
|
|
8892
8892
|
}, xn = (f) => {
|
|
8893
8893
|
if (f == null) return null;
|
|
8894
8894
|
const h = String(f).trim();
|
|
@@ -8903,19 +8903,19 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8903
8903
|
const W = Number(h);
|
|
8904
8904
|
return Number.isFinite(W) ? h.length <= 10 ? W * 1e3 : W : null;
|
|
8905
8905
|
}
|
|
8906
|
-
const L = h.includes("T") ? h : h.replace(" ", "T"),
|
|
8907
|
-
return Number.isFinite(
|
|
8906
|
+
const L = h.includes("T") ? h : h.replace(" ", "T"), R = Date.parse(L);
|
|
8907
|
+
return Number.isFinite(R) ? R : null;
|
|
8908
8908
|
}, ys = (f, h = []) => {
|
|
8909
8909
|
const L = Array.isArray(f) ? f.slice() : [];
|
|
8910
8910
|
if (L.length <= 1) return L;
|
|
8911
|
-
const
|
|
8911
|
+
const R = new Map((h || []).map((oe, ue) => [String(oe), ue])), W = L.some((oe) => xn(oe == null ? void 0 : oe.sort) !== null), I = L.map((oe, ue) => ({
|
|
8912
8912
|
r: oe,
|
|
8913
8913
|
idx: ue,
|
|
8914
8914
|
id: String((oe == null ? void 0 : oe.id) ?? ""),
|
|
8915
8915
|
sortVal: xn(oe == null ? void 0 : oe.sort),
|
|
8916
8916
|
// sort 相同时:create_time 越新越靠前
|
|
8917
8917
|
createTimeMs: gt(oe == null ? void 0 : oe.create_time),
|
|
8918
|
-
prevIdx:
|
|
8918
|
+
prevIdx: R.has(String(oe == null ? void 0 : oe.id)) ? R.get(String(oe == null ? void 0 : oe.id)) : Number.POSITIVE_INFINITY
|
|
8919
8919
|
}));
|
|
8920
8920
|
return I.sort((oe, ue) => {
|
|
8921
8921
|
if (W) {
|
|
@@ -8928,7 +8928,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8928
8928
|
return K !== null && Ee !== null && K !== Ee ? Ee - K : K !== null && Ee === null ? -1 : K === null && Ee !== null ? 1 : oe.prevIdx !== ue.prevIdx ? oe.prevIdx - ue.prevIdx : oe.idx - ue.idx;
|
|
8929
8929
|
}), I.map((oe) => oe.r);
|
|
8930
8930
|
}, Zn = (f, h = []) => {
|
|
8931
|
-
const L = h == null ? void 0 : h[f - 1],
|
|
8931
|
+
const L = h == null ? void 0 : h[f - 1], R = h == null ? void 0 : h[f], W = xn(L == null ? void 0 : L.sort), I = xn(R == null ? void 0 : R.sort);
|
|
8932
8932
|
let oe = null;
|
|
8933
8933
|
W !== null && I !== null && I > W ? oe = (W + I) / 2 : W !== null ? oe = W + 1 : I !== null ? oe = Math.max(I - 1, 0) : oe = (f ?? 0) + 1;
|
|
8934
8934
|
const ue = Number(oe.toFixed(6));
|
|
@@ -8980,11 +8980,11 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
8980
8980
|
go(W);
|
|
8981
8981
|
return;
|
|
8982
8982
|
}
|
|
8983
|
-
const
|
|
8983
|
+
const R = {
|
|
8984
8984
|
name: L,
|
|
8985
8985
|
blobUrl: h
|
|
8986
8986
|
};
|
|
8987
|
-
ie.value = [
|
|
8987
|
+
ie.value = [R], $e.value = !0;
|
|
8988
8988
|
}, bo = async (f) => {
|
|
8989
8989
|
let h = null, L = null;
|
|
8990
8990
|
if (f != null && f.id) {
|
|
@@ -9009,21 +9009,21 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9009
9009
|
});
|
|
9010
9010
|
h = URL.createObjectURL(I.data), L = Xn(f);
|
|
9011
9011
|
}
|
|
9012
|
-
const
|
|
9012
|
+
const R = {
|
|
9013
9013
|
name: L,
|
|
9014
9014
|
blobUrl: h
|
|
9015
9015
|
}, W = document.createElement("a");
|
|
9016
|
-
W.href =
|
|
9016
|
+
W.href = R.blobUrl, W.download = R.name, W.style.display = "none", document.body.appendChild(W), W.click(), setTimeout(() => {
|
|
9017
9017
|
document.body.removeChild(W);
|
|
9018
9018
|
}, 100);
|
|
9019
9019
|
}, Qn = (f, h) => {
|
|
9020
|
-
var
|
|
9020
|
+
var R;
|
|
9021
9021
|
if (Object.values(h).length === 0) return;
|
|
9022
9022
|
let L = f;
|
|
9023
9023
|
return Object.values(h).find((W) => {
|
|
9024
9024
|
var I, oe, ue;
|
|
9025
9025
|
return ((I = W == null ? void 0 : W.toString()) == null ? void 0 : I.includes(".txt")) || ((oe = W == null ? void 0 : W.toString()) == null ? void 0 : oe.includes(".cpt")) || ((ue = W == null ? void 0 : W.toString()) == null ? void 0 : ue.includes(".obj"));
|
|
9026
|
-
}) ? L = [...f, je.value] : (
|
|
9026
|
+
}) ? L = [...f, je.value] : (R = d == null ? void 0 : d.config) != null && R.allowMove && (L = [...f, { label: "迁移" }]), L;
|
|
9027
9027
|
}, wn = () => {
|
|
9028
9028
|
$.value = !0;
|
|
9029
9029
|
}, ko = ae([]), Hs = async (f, h, L = !1) => {
|
|
@@ -9033,22 +9033,22 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9033
9033
|
Oe.value = [...Oa.value.values()].filter((Se) => Object.values(Se).some((aa) => typeof aa == "string" ? aa == null ? void 0 : aa.toLowerCase().includes(h == null ? void 0 : h.toLowerCase()) : !1));
|
|
9034
9034
|
return;
|
|
9035
9035
|
}
|
|
9036
|
-
let
|
|
9036
|
+
let R = {};
|
|
9037
9037
|
for (let Se in f)
|
|
9038
|
-
(f == null ? void 0 : f[Se]) !== "" && (
|
|
9039
|
-
if (JSON.stringify(
|
|
9038
|
+
(f == null ? void 0 : f[Se]) !== "" && (R[Se] = f == null ? void 0 : f[Se]);
|
|
9039
|
+
if (JSON.stringify(R) === "{}") {
|
|
9040
9040
|
Oe.value = Array.from(((oe = Oa.value) == null ? void 0 : oe.values()) ?? []);
|
|
9041
9041
|
return;
|
|
9042
9042
|
}
|
|
9043
9043
|
let W = (ue = d == null ? void 0 : d.related) == null ? void 0 : ue.find((Se) => Se == null ? void 0 : Se.includes("content_")), I = await yp({
|
|
9044
9044
|
platId: parseInt((K = Fl == null ? void 0 : Fl.value) == null ? void 0 : K.plat_id),
|
|
9045
9045
|
tableName: W,
|
|
9046
|
-
params:
|
|
9046
|
+
params: R
|
|
9047
9047
|
});
|
|
9048
9048
|
I = (Ee = I == null ? void 0 : I.data) == null ? void 0 : Ee.result, Oe.value = I, Ze.setTableLoading(!1);
|
|
9049
9049
|
}, bt = Kl(() => {
|
|
9050
9050
|
var h, L;
|
|
9051
|
-
return ((L = (h = d == null ? void 0 : d.itemData) == null ? void 0 : h.find((
|
|
9051
|
+
return ((L = (h = d == null ? void 0 : d.itemData) == null ? void 0 : h.find((R) => (R == null ? void 0 : R.key) === "isEdit")) == null ? void 0 : L.contents) ?? !0;
|
|
9052
9052
|
}), kt = async (f) => {
|
|
9053
9053
|
var W, I, oe, ue, K, Ee;
|
|
9054
9054
|
if (!Ia(d.config, {
|
|
@@ -9066,10 +9066,10 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9066
9066
|
}
|
|
9067
9067
|
if (!f) return;
|
|
9068
9068
|
((K = Array.from(n.value)) == null ? void 0 : K.length) > 0 && await Ns();
|
|
9069
|
-
const
|
|
9070
|
-
|
|
9071
|
-
}, _o = async (f, h, L,
|
|
9072
|
-
|
|
9069
|
+
const R = f == null ? void 0 : f.id;
|
|
9070
|
+
R != null && (n.value.clear(), c.value.clear(), c.value.has(R) || c.value.set(R, Re(f)), Oe.value = (Ee = Oe.value) == null ? void 0 : Ee.map((Se) => ({ ...Se, tableEditType: (Se == null ? void 0 : Se.id) === R ? "edit" : "text" })), n.value.add(R), br.value = !0);
|
|
9071
|
+
}, _o = async (f, h, L, R) => {
|
|
9072
|
+
R != null && R.isExistChild && j("clickMainKey", f, L, U.value);
|
|
9073
9073
|
}, _t = () => {
|
|
9074
9074
|
$e.value = !1;
|
|
9075
9075
|
}, xt = (f) => {
|
|
@@ -9078,7 +9078,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9078
9078
|
yl(
|
|
9079
9079
|
() => d.changedContent,
|
|
9080
9080
|
() => {
|
|
9081
|
-
var L,
|
|
9081
|
+
var L, R;
|
|
9082
9082
|
if (!d.changedContent) return;
|
|
9083
9083
|
let f = (L = Oe.value) == null ? void 0 : L.map((W) => {
|
|
9084
9084
|
var I;
|
|
@@ -9087,7 +9087,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9087
9087
|
id: d.changedContent.newId ? d.changedContent.newId : d.changedContent.id
|
|
9088
9088
|
}, delete W.newId), W;
|
|
9089
9089
|
});
|
|
9090
|
-
const h = (
|
|
9090
|
+
const h = (R = d.itemData) == null ? void 0 : R.map((W) => ((W == null ? void 0 : W.key) === "tableContents" && (W.contents = f), W));
|
|
9091
9091
|
Oe.value = f, j("contentChange", {
|
|
9092
9092
|
contents: h,
|
|
9093
9093
|
index: d.index
|
|
@@ -9102,7 +9102,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9102
9102
|
);
|
|
9103
9103
|
const wt = () => {
|
|
9104
9104
|
}, St = async () => {
|
|
9105
|
-
const f = le.value, h = sessionStorage.getItem("systemKey"), L = await zi(f, h, ""),
|
|
9105
|
+
const f = le.value, h = sessionStorage.getItem("systemKey"), L = await zi(f, h, ""), R = (L == null ? void 0 : L.find((ue) => (ue == null ? void 0 : ue.name) === "方法明细")) || (L == null ? void 0 : L[0]), W = (R == null ? void 0 : R.compData) || [], I = W == null ? void 0 : W.find((ue) => {
|
|
9106
9106
|
const K = ue == null ? void 0 : ue.key;
|
|
9107
9107
|
return K === "formContent" || K === "tableContents";
|
|
9108
9108
|
});
|
|
@@ -9115,10 +9115,10 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9115
9115
|
Authorization: h
|
|
9116
9116
|
}
|
|
9117
9117
|
}).catch((W) => (ge.setImportLoading(!1), Promise.reject(W))), Et = (f) => {
|
|
9118
|
-
var
|
|
9118
|
+
var R;
|
|
9119
9119
|
let h = {};
|
|
9120
9120
|
const L = [];
|
|
9121
|
-
return h.form = {}, (
|
|
9121
|
+
return h.form = {}, (R = Re(f)) == null || R.forEach((W, I) => {
|
|
9122
9122
|
var oe, ue, K, Ee, Se, aa, Je, sa, Sa, $a, La, oa, fl, Ta;
|
|
9123
9123
|
if ((W == null ? void 0 : W.comp) === "Table") {
|
|
9124
9124
|
(ue = (oe = W == null ? void 0 : W.compData) == null ? void 0 : oe.find((wa) => (wa == null ? void 0 : wa.key) === "header")) == null || ue.contents;
|
|
@@ -9148,20 +9148,20 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9148
9148
|
}
|
|
9149
9149
|
}), h.form = Hp(L), h;
|
|
9150
9150
|
}, t = (f) => {
|
|
9151
|
-
const h = [], L = (
|
|
9152
|
-
|
|
9151
|
+
const h = [], L = (R) => {
|
|
9152
|
+
R && typeof R == "object" && !Array.isArray(R) ? Object.values(R).forEach(L) : h.push(R);
|
|
9153
9153
|
};
|
|
9154
9154
|
return L(f), h;
|
|
9155
9155
|
}, s = async (f, h, L) => {
|
|
9156
9156
|
var Ae, Wa, wa, al, Pa, Le, V, Ge, ya, M, Na, Xa, hl, Va, Ma, bl, cr;
|
|
9157
9157
|
ge.setImportLoading(!0), Ze.setFreshContent(!1);
|
|
9158
|
-
let
|
|
9159
|
-
|
|
9158
|
+
let R = await St().catch((Za) => (ge.setImportLoading(!1), Promise.reject(Za)));
|
|
9159
|
+
R = R == null ? void 0 : R.filter((Za) => {
|
|
9160
9160
|
var Hl;
|
|
9161
9161
|
return ((Hl = Za == null ? void 0 : Za.find((ja) => ja == null ? void 0 : ja.id)) == null ? void 0 : Hl.id) === (h == null ? void 0 : h.id);
|
|
9162
9162
|
});
|
|
9163
9163
|
let W = Fo([(Ae = U.value) == null ? void 0 : Ae.filter((Za) => (Za == null ? void 0 : Za.label) !== "操作")]);
|
|
9164
|
-
const I = (wa = (Wa = us(
|
|
9164
|
+
const I = (wa = (Wa = us(R, W)) == null ? void 0 : Wa[0]) == null ? void 0 : wa.find((Za) => {
|
|
9165
9165
|
const Hl = Za == null ? void 0 : Za.key;
|
|
9166
9166
|
return Hl === "Interface" || Hl === "方法体";
|
|
9167
9167
|
}), oe = I == null ? void 0 : I.value;
|
|
@@ -9284,12 +9284,12 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9284
9284
|
}
|
|
9285
9285
|
js(!0), ge.setImportLoading(!1), Ze.setFreshContent(!0);
|
|
9286
9286
|
}, p = (f, h) => (f = f == null ? void 0 : f.map((L) => {
|
|
9287
|
-
var
|
|
9288
|
-
return L != null && L.children && ((
|
|
9287
|
+
var R, W;
|
|
9288
|
+
return L != null && L.children && ((R = L.children) != null && R.find((I) => I.id === (h == null ? void 0 : h.id)) ? L.children = (W = L.children) == null ? void 0 : W.filter((I) => (I == null ? void 0 : I.id) !== (h == null ? void 0 : h.id)) : L.children = p(L.children, h)), L;
|
|
9289
9289
|
}), f), _ = ae(!1), T = () => {
|
|
9290
9290
|
_.value = !0;
|
|
9291
9291
|
}, F = async (f) => {
|
|
9292
|
-
var L,
|
|
9292
|
+
var L, R, W, I;
|
|
9293
9293
|
_.value = !1;
|
|
9294
9294
|
const h = Array.isArray(f) ? f : f ? [f] : [];
|
|
9295
9295
|
if (h.length !== 0)
|
|
@@ -9311,7 +9311,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9311
9311
|
url: "",
|
|
9312
9312
|
fileName: ue.name
|
|
9313
9313
|
}, ol({
|
|
9314
|
-
name: ((
|
|
9314
|
+
name: ((R = ue.uploadResult) == null ? void 0 : R.name) || ue.name,
|
|
9315
9315
|
url: ((W = ue.uploadResult) == null ? void 0 : W.url) || "",
|
|
9316
9316
|
id: (I = ue.uploadResult) == null ? void 0 : I.id
|
|
9317
9317
|
}), Ui(ue, "uploaded"), ki(ue, 100);
|
|
@@ -9363,7 +9363,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9363
9363
|
}), Te = () => {
|
|
9364
9364
|
X.show = !1;
|
|
9365
9365
|
}, Ye = async (f) => {
|
|
9366
|
-
var h, L,
|
|
9366
|
+
var h, L, R, W, I, oe, ue, K;
|
|
9367
9367
|
try {
|
|
9368
9368
|
const Ee = [];
|
|
9369
9369
|
let Se = (h = Oe.value || []) == null ? void 0 : h.slice();
|
|
@@ -9386,7 +9386,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9386
9386
|
groups: d == null ? void 0 : d.compName
|
|
9387
9387
|
}]
|
|
9388
9388
|
});
|
|
9389
|
-
aa = (
|
|
9389
|
+
aa = (R = aa == null ? void 0 : aa.data) == null ? void 0 : R.result;
|
|
9390
9390
|
let Je = aa == null ? void 0 : aa.map(($a) => ({
|
|
9391
9391
|
tableName: "content_" + ($a == null ? void 0 : $a.id),
|
|
9392
9392
|
tableContents: Ee == null ? void 0 : Ee.map((La, oa) => ({
|
|
@@ -9468,14 +9468,14 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9468
9468
|
throw new Error(Ee);
|
|
9469
9469
|
}
|
|
9470
9470
|
}, ze = async (f) => {
|
|
9471
|
-
var h, L,
|
|
9471
|
+
var h, L, R, W, I, oe, ue, K, Ee, Se;
|
|
9472
9472
|
try {
|
|
9473
9473
|
if (f === "cancel" && (X.show = !1), f === "replace" && ((h = X == null ? void 0 : X.existRows) == null ? void 0 : h.length) > 0) {
|
|
9474
9474
|
await $o({
|
|
9475
9475
|
platId: parseInt((L = Fl.value) == null ? void 0 : L.plat_id),
|
|
9476
9476
|
changeContents: [
|
|
9477
9477
|
{
|
|
9478
|
-
tableName: ((
|
|
9478
|
+
tableName: ((R = d == null ? void 0 : d.related) == null ? void 0 : R.find((Je) => Je == null ? void 0 : Je.includes("content_"))) || ((W = d == null ? void 0 : d.related) == null ? void 0 : W.find((Je) => Je == null ? void 0 : Je.includes("content"))),
|
|
9479
9479
|
tableContents: X == null ? void 0 : X.existRows
|
|
9480
9480
|
}
|
|
9481
9481
|
]
|
|
@@ -9532,7 +9532,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9532
9532
|
}
|
|
9533
9533
|
}), G.show = !1);
|
|
9534
9534
|
}, ul = async (f) => {
|
|
9535
|
-
var h, L,
|
|
9535
|
+
var h, L, R, W;
|
|
9536
9536
|
if (f) {
|
|
9537
9537
|
if (!Jr.validateFileSize(f.raw)) {
|
|
9538
9538
|
Bl.warning(`文件大小不能超过 ${Fe.value.maxSize}MB`);
|
|
@@ -9557,7 +9557,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9557
9557
|
fileName: f.name
|
|
9558
9558
|
}, ol({
|
|
9559
9559
|
name: ((L = f.uploadResult) == null ? void 0 : L.name) || f.name,
|
|
9560
|
-
url: ((
|
|
9560
|
+
url: ((R = f.uploadResult) == null ? void 0 : R.url) || "",
|
|
9561
9561
|
id: (W = f.uploadResult) == null ? void 0 : W.id
|
|
9562
9562
|
}), Ui(f, "uploaded"), ki(f, 100);
|
|
9563
9563
|
} catch (I) {
|
|
@@ -9574,7 +9574,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9574
9574
|
f && (f.value = "");
|
|
9575
9575
|
});
|
|
9576
9576
|
}, gl = async () => {
|
|
9577
|
-
var L,
|
|
9577
|
+
var L, R;
|
|
9578
9578
|
if (sessionStorage.setItem("ocr_root_table_id", String((d == null ? void 0 : d.index) ?? "")), xa.value.length === 0) {
|
|
9579
9579
|
Bl.warning("请先选择要上传的图片");
|
|
9580
9580
|
return;
|
|
@@ -9671,7 +9671,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9671
9671
|
const Sa = ["出厂编号", "设备名称", "制造厂"], $a = Je.filter((oa) => oa && !oa.isAccuracy && typeof oa.prop == "string").map((oa) => oa.prop), La = ["出厂编号", "设备名称", "制造厂"];
|
|
9672
9672
|
il.value = $a.filter((oa) => La.includes(oa)), console.log("[OCR] 默认勾选字段 props:", il.value), Ja.value = 2, Dr.value = !1, ca.value = !1;
|
|
9673
9673
|
} catch (W) {
|
|
9674
|
-
console.error("OCR处理失败:", W), h && (clearInterval(h), h = null), Bl.error(((
|
|
9674
|
+
console.error("OCR处理失败:", W), h && (clearInterval(h), h = null), Bl.error(((R = (L = W == null ? void 0 : W.response) == null ? void 0 : L.data) == null ? void 0 : R.message) || "OCR识别失败,请重试"), Dr.value = !1, Be.value = 0, xa.value.forEach((I) => {
|
|
9675
9675
|
Ui(I, "pending"), ki(I, 0);
|
|
9676
9676
|
});
|
|
9677
9677
|
}
|
|
@@ -9686,8 +9686,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9686
9686
|
Bl.warning("暂无数据可添加");
|
|
9687
9687
|
return;
|
|
9688
9688
|
}
|
|
9689
|
-
const
|
|
9690
|
-
|
|
9689
|
+
const R = (oa = Yi(U.value) || []) == null ? void 0 : oa.filter((Ta) => (Ta == null ? void 0 : Ta.type) !== "operate" && (Ta == null ? void 0 : Ta.label) !== "操作" && (Ta == null ? void 0 : Ta.prop) !== "operate"), W = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), oe = (fl = R == null ? void 0 : R.find((Ta) => (Ta == null ? void 0 : Ta.label) === "证书附件")) == null ? void 0 : fl.prop;
|
|
9690
|
+
R == null || R.forEach((Ta) => {
|
|
9691
9691
|
Ta != null && Ta.label && (Ta != null && Ta.prop) && (W.set(Ta.label, Ta.prop), I.set(Ta.prop, Ta.label));
|
|
9692
9692
|
});
|
|
9693
9693
|
const ue = Date.now(), K = (Ta) => String(ue * 1e3 + Ta), Ee = [], Se = [], aa = (Ta) => {
|
|
@@ -9800,7 +9800,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9800
9800
|
const h = Number(f);
|
|
9801
9801
|
return h >= 0.9 ? "#67c23a" : h >= 0.7 ? "#e6a23c" : "#f56c6c";
|
|
9802
9802
|
}, ur = (f) => {
|
|
9803
|
-
var L,
|
|
9803
|
+
var L, R, W, I;
|
|
9804
9804
|
if (Dl.value === f) {
|
|
9805
9805
|
Dl.value = null, na.value = !1, Ra.value = "";
|
|
9806
9806
|
return;
|
|
@@ -9809,7 +9809,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9809
9809
|
const h = (L = el.value) == null ? void 0 : L[f];
|
|
9810
9810
|
if (h && Array.isArray(h._ocrImages) && h._ocrImages.length > 0) {
|
|
9811
9811
|
ka.value = h._ocrImages.map((K) => ({ name: (K == null ? void 0 : K.name) || "", url: (K == null ? void 0 : K.url) || "" })).filter((K) => K.name || K.url);
|
|
9812
|
-
const oe = h.__ocrFieldMeta || {}, ue = (
|
|
9812
|
+
const oe = h.__ocrFieldMeta || {}, ue = (R = Object.values(oe)) == null ? void 0 : R.find((K) => K == null ? void 0 : K.imageName);
|
|
9813
9813
|
Ya.value = (ue == null ? void 0 : ue.imageName) || ((I = (W = ka.value) == null ? void 0 : W[0]) == null ? void 0 : I.name) || "", na.value = ka.value.length > 0;
|
|
9814
9814
|
} else
|
|
9815
9815
|
ka.value = [], na.value = !1, Ya.value = "";
|
|
@@ -9831,8 +9831,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9831
9831
|
if (h === "failed")
|
|
9832
9832
|
return `${L} ${L}`;
|
|
9833
9833
|
if (h === "uploading") {
|
|
9834
|
-
const
|
|
9835
|
-
return `${L * (
|
|
9834
|
+
const R = Gi(f);
|
|
9835
|
+
return `${L * (R / 100)} ${L}`;
|
|
9836
9836
|
} else if (h === "processing")
|
|
9837
9837
|
return `${L * 0.5} ${L}`;
|
|
9838
9838
|
return `0 ${L}`;
|
|
@@ -9847,8 +9847,8 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9847
9847
|
else {
|
|
9848
9848
|
const h = document.createElement("input");
|
|
9849
9849
|
h.type = "file", h.multiple = !0, h.accept = "image/*,application/pdf", h.style.display = "none", h.onchange = async (L) => {
|
|
9850
|
-
const
|
|
9851
|
-
for (const W of
|
|
9850
|
+
const R = Array.from(L.target.files || []);
|
|
9851
|
+
for (const W of R) {
|
|
9852
9852
|
const I = {
|
|
9853
9853
|
name: W.name,
|
|
9854
9854
|
raw: W,
|
|
@@ -9875,15 +9875,15 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9875
9875
|
Bl.warning("暂无可预览数据");
|
|
9876
9876
|
return;
|
|
9877
9877
|
}
|
|
9878
|
-
let
|
|
9879
|
-
if (!
|
|
9878
|
+
let R = Qa(d == null ? void 0 : d.index, L);
|
|
9879
|
+
if (!R || R.length === 0) {
|
|
9880
9880
|
const oe = sessionStorage.getItem("ocr_root_table_id"), ue = oe !== null ? Number(oe) : null;
|
|
9881
9881
|
if (ue != null && ue !== "" && !Number.isNaN(ue)) {
|
|
9882
9882
|
const K = Qa(ue, L);
|
|
9883
|
-
Array.isArray(K) && K.length > 0 && (fr(d == null ? void 0 : d.index, L, K),
|
|
9883
|
+
Array.isArray(K) && K.length > 0 && (fr(d == null ? void 0 : d.index, L, K), R = K);
|
|
9884
9884
|
}
|
|
9885
9885
|
}
|
|
9886
|
-
if (!
|
|
9886
|
+
if (!R || R.length === 0) {
|
|
9887
9887
|
const oe = (W = Yi(U.value) || []) == null ? void 0 : W.filter((K) => (K == null ? void 0 : K.type) !== "operate" && (K == null ? void 0 : K.label) !== "操作" && (K == null ? void 0 : K.prop) !== "operate"), ue = h || ((I = oe == null ? void 0 : oe.find((K) => (K == null ? void 0 : K.label) === "证书附件")) == null ? void 0 : I.prop);
|
|
9888
9888
|
if (ue && f[ue]) {
|
|
9889
9889
|
const K = f[ue];
|
|
@@ -9913,19 +9913,19 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9913
9913
|
sourceUrl: aa ? Se : "",
|
|
9914
9914
|
images: Ee
|
|
9915
9915
|
};
|
|
9916
|
-
|
|
9916
|
+
R = [Je], pr(d == null ? void 0 : d.index, L, Je);
|
|
9917
9917
|
}
|
|
9918
9918
|
}
|
|
9919
9919
|
}
|
|
9920
|
-
if (!
|
|
9920
|
+
if (!R || R.length === 0) {
|
|
9921
9921
|
Bl.warning("暂无可预览数据");
|
|
9922
9922
|
return;
|
|
9923
9923
|
}
|
|
9924
|
-
Pl.value =
|
|
9924
|
+
Pl.value = R, _l.value = !0;
|
|
9925
9925
|
}, Bf = (f) => {
|
|
9926
9926
|
xa.value = xa.value.filter((h, L) => L !== f);
|
|
9927
9927
|
}, Tt = async (f, h, L) => {
|
|
9928
|
-
var
|
|
9928
|
+
var R, W, I, oe, ue, K, Ee, Se, aa, Je, sa, Sa, $a, La, oa, fl, Ta, pl, Ae, Wa, wa, al;
|
|
9929
9929
|
if (Ia(d.config, {
|
|
9930
9930
|
type: ba.TABLE,
|
|
9931
9931
|
tableOperate: f
|
|
@@ -9954,7 +9954,7 @@ const Xo = ae(0), Xd = (e) => {
|
|
|
9954
9954
|
}), console.log(h, "item");
|
|
9955
9955
|
});
|
|
9956
9956
|
else if (f === "批量删除") {
|
|
9957
|
-
if (((
|
|
9957
|
+
if (((R = Gr.value) == null ? void 0 : R.length) === 0)
|
|
9958
9958
|
return Bl.warning("请先勾选操作的数据");
|
|
9959
9959
|
on.confirm("是否确认删除", "温馨提示", {
|
|
9960
9960
|
confirmButtonText: "确认",
|
|
@@ -10208,13 +10208,13 @@ ${Br}`,
|
|
|
10208
10208
|
}
|
|
10209
10209
|
}
|
|
10210
10210
|
}, Cf = async (f, h) => {
|
|
10211
|
-
var L,
|
|
10211
|
+
var L, R, W, I, oe, ue, K, Ee, Se, aa, Je, sa, Sa, $a, La, oa, fl, Ta, pl, Ae;
|
|
10212
10212
|
try {
|
|
10213
10213
|
let Wa, wa;
|
|
10214
10214
|
const al = (L = ha.value[le.value + O]) == null ? void 0 : L.filter((Xa) => {
|
|
10215
10215
|
var hl;
|
|
10216
10216
|
return ((hl = Xa == null ? void 0 : Xa.key) == null ? void 0 : hl.type) === "structureMethod";
|
|
10217
|
-
}), Pa = (
|
|
10217
|
+
}), Pa = (R = ha.value[le.value + O]) == null ? void 0 : R.filter((Xa) => {
|
|
10218
10218
|
var hl;
|
|
10219
10219
|
return ((hl = Xa == null ? void 0 : Xa.key) == null ? void 0 : hl.type) === "structure";
|
|
10220
10220
|
}), Le = al == null ? void 0 : al.find((Xa) => {
|
|
@@ -10283,8 +10283,8 @@ ${Br}`,
|
|
|
10283
10283
|
ae(["系统自动生成信息", "审批意见"]);
|
|
10284
10284
|
const $f = async (f, h, L) => {
|
|
10285
10285
|
var K, Ee;
|
|
10286
|
-
let
|
|
10287
|
-
const ue = Re(le).value + O +
|
|
10286
|
+
let R = f == null ? void 0 : f[h == null ? void 0 : h.prop], W = 1, I, oe;
|
|
10287
|
+
const ue = Re(le).value + O + R;
|
|
10288
10288
|
if (ue) {
|
|
10289
10289
|
Du.value = "", I = (K = ha.value[ue]) == null ? void 0 : K.filter((Je) => {
|
|
10290
10290
|
var sa;
|
|
@@ -10301,17 +10301,17 @@ ${Br}`,
|
|
|
10301
10301
|
const aa = await Cf(oe, h == null ? void 0 : h.prop);
|
|
10302
10302
|
if (Du.value = aa == null ? void 0 : aa.newStatus, aa != null && aa.newMainKeyValue) return aa == null ? void 0 : aa.newMainKeyValue;
|
|
10303
10303
|
}
|
|
10304
|
-
if (Oe.value.some((Se) => (Se == null ? void 0 : Se[h == null ? void 0 : h.prop]) ===
|
|
10305
|
-
const Se =
|
|
10304
|
+
if (Oe.value.some((Se) => (Se == null ? void 0 : Se[h == null ? void 0 : h.prop]) === R)) {
|
|
10305
|
+
const Se = R;
|
|
10306
10306
|
for (; Oe.value.some((aa) => (aa == null ? void 0 : aa[h == null ? void 0 : h.prop]) === `${Se}(${W})`); )
|
|
10307
10307
|
W++;
|
|
10308
|
-
|
|
10308
|
+
R = `${Se}(${W})`;
|
|
10309
10309
|
}
|
|
10310
|
-
return
|
|
10310
|
+
return R;
|
|
10311
10311
|
}, Lf = async (f, h, L) => {
|
|
10312
10312
|
var I, oe, ue, K;
|
|
10313
|
-
let
|
|
10314
|
-
if (await $f(L == null ? void 0 : L.data, L == null ? void 0 : L.firstCol),
|
|
10313
|
+
let R, W;
|
|
10314
|
+
if (await $f(L == null ? void 0 : L.data, L == null ? void 0 : L.firstCol), R = Re(le).value + O, W = Re(R) + `loading${((I = Fl.value) == null ? void 0 : I.account) || ((oe = Fl.value) == null ? void 0 : oe.账号)}`, h) {
|
|
10315
10315
|
const Ee = (K = (ue = ha.value[W]) == null ? void 0 : ue.filter((Se) => {
|
|
10316
10316
|
var aa;
|
|
10317
10317
|
return ((aa = Se == null ? void 0 : Se.key) == null ? void 0 : aa.parentTable) === "";
|
|
@@ -10322,7 +10322,7 @@ ${Br}`,
|
|
|
10322
10322
|
...(aa = Se == null ? void 0 : Se.value) == null ? void 0 : aa.pageData
|
|
10323
10323
|
};
|
|
10324
10324
|
});
|
|
10325
|
-
(Ee == null ? void 0 : Ee.length) > 0 ? (Ze.setRouteToChildPath(Re(le).value), ge.setActiveMenuPath(W)) : (await Lp(
|
|
10325
|
+
(Ee == null ? void 0 : Ee.length) > 0 ? (Ze.setRouteToChildPath(Re(le).value), ge.setActiveMenuPath(W)) : (await Lp(R, W, null, null, null), Ze.setRouteToChildPath(Re(le).value), ge.setActiveMenuPath(W));
|
|
10326
10326
|
} else
|
|
10327
10327
|
Ze.setRouteToChildPath(Re(le).value), ge.setActiveMenuPath(W);
|
|
10328
10328
|
}, Nf = () => {
|
|
@@ -10334,8 +10334,8 @@ ${Br}`,
|
|
|
10334
10334
|
let L = (K = (ue = u.value) == null ? void 0 : ue.find((M) => {
|
|
10335
10335
|
var Na;
|
|
10336
10336
|
return (Na = M == null ? void 0 : M.key) == null ? void 0 : Na.includes("@EditRead");
|
|
10337
|
-
})) == null ? void 0 : K.content,
|
|
10338
|
-
(L == null ? void 0 : L.length) > 0 && (
|
|
10337
|
+
})) == null ? void 0 : K.content, R = !1;
|
|
10338
|
+
(L == null ? void 0 : L.length) > 0 && (R = _c(L, f), (R == null ? void 0 : R.length) > 0 ? R = !0 : R = !1), (Se = ei((Ee = Re(U.value)) == null ? void 0 : Ee.filter((M) => (M == null ? void 0 : M.label) !== "操作"))) == null || Se.forEach((M, Na) => {
|
|
10339
10339
|
var Xa, hl, Va;
|
|
10340
10340
|
M != null && M.formType && ((Xa = M == null ? void 0 : M.formType) == null ? void 0 : Xa.toUpperCase()) === "SELECT" || M != null && M.menuId ? h.push({
|
|
10341
10341
|
label: (hl = M == null ? void 0 : M.prop) != null && hl.includes(".") ? M == null ? void 0 : M.prop : (M == null ? void 0 : M.label) ?? (M == null ? void 0 : M.prop) ?? "",
|
|
@@ -10356,7 +10356,7 @@ ${Br}`,
|
|
|
10356
10356
|
words: M == null ? void 0 : M.words,
|
|
10357
10357
|
allSelectionContents: (M == null ? void 0 : M.allSelectionContents) ?? [],
|
|
10358
10358
|
filterContent: M == null ? void 0 : M.filterContent,
|
|
10359
|
-
disabled: (M == null ? void 0 : M.prop) === "disabled" ? !0 :
|
|
10359
|
+
disabled: (M == null ? void 0 : M.prop) === "disabled" ? !0 : R || (M == null ? void 0 : M.disabled),
|
|
10360
10360
|
filter: M == null ? void 0 : M.filter,
|
|
10361
10361
|
bindMenus: M == null ? void 0 : M.bindMenus,
|
|
10362
10362
|
isMainPath: M == null ? void 0 : M.isMainPath,
|
|
@@ -10379,7 +10379,7 @@ ${Br}`,
|
|
|
10379
10379
|
multiple: (M == null ? void 0 : M.multiple) ?? !1,
|
|
10380
10380
|
width: 2,
|
|
10381
10381
|
isFormColHidden: M == null ? void 0 : M.isFormColHidden,
|
|
10382
|
-
disabled: (M == null ? void 0 : M.prop) === "disabled" ? !0 :
|
|
10382
|
+
disabled: (M == null ? void 0 : M.prop) === "disabled" ? !0 : R || (M == null ? void 0 : M.disabled),
|
|
10383
10383
|
relatedValueId: M == null ? void 0 : M.relatedValueId,
|
|
10384
10384
|
menus: M == null ? void 0 : M.menus,
|
|
10385
10385
|
groups: M == null ? void 0 : M.groups,
|
|
@@ -10455,9 +10455,9 @@ ${Br}`,
|
|
|
10455
10455
|
ghostClass: "sortable-ghost",
|
|
10456
10456
|
onEnd: (L) => {
|
|
10457
10457
|
var oe;
|
|
10458
|
-
const { oldIndex:
|
|
10459
|
-
if (
|
|
10460
|
-
const I = Rn.value.splice(
|
|
10458
|
+
const { oldIndex: R, newIndex: W } = L;
|
|
10459
|
+
if (R === W) return;
|
|
10460
|
+
const I = Rn.value.splice(R, 1)[0];
|
|
10461
10461
|
Rn.value.splice(W, 0, I), U.value = (oe = U.value) == null ? void 0 : oe.slice().sort((ue, K) => {
|
|
10462
10462
|
if (ue.label === "操作") return 1;
|
|
10463
10463
|
if (K.label === "操作") return -1;
|
|
@@ -10477,13 +10477,13 @@ ${Br}`,
|
|
|
10477
10477
|
}, Pf = () => {
|
|
10478
10478
|
o.value = !0;
|
|
10479
10479
|
}, Dt = (f, h) => {
|
|
10480
|
-
var
|
|
10480
|
+
var R;
|
|
10481
10481
|
if (!f && !(f != null && f.children)) return {
|
|
10482
10482
|
contents: f,
|
|
10483
10483
|
currentSelectContents: void 0
|
|
10484
10484
|
};
|
|
10485
10485
|
let L;
|
|
10486
|
-
return f.children = (
|
|
10486
|
+
return f.children = (R = f.children) == null ? void 0 : R.map((W) => {
|
|
10487
10487
|
var I, oe;
|
|
10488
10488
|
if ((W == null ? void 0 : W.id) === va.value) {
|
|
10489
10489
|
let ue = {};
|
|
@@ -10502,7 +10502,7 @@ ${Br}`,
|
|
|
10502
10502
|
currentSelectContents: L
|
|
10503
10503
|
};
|
|
10504
10504
|
}, zu = (f, h) => {
|
|
10505
|
-
let L,
|
|
10505
|
+
let L, R;
|
|
10506
10506
|
return f != null && f.find((W) => (W == null ? void 0 : W.id) === va.value) ? L = f == null ? void 0 : f.map((W) => {
|
|
10507
10507
|
var I, oe, ue;
|
|
10508
10508
|
if ((W == null ? void 0 : W.id) === va.value) {
|
|
@@ -10514,7 +10514,7 @@ ${Br}`,
|
|
|
10514
10514
|
let Ee = sr.value;
|
|
10515
10515
|
for (let Se in K)
|
|
10516
10516
|
(ue = sr.value) != null && ue[Se] || (Ee[Se] = (K == null ? void 0 : K[Se]) ?? "");
|
|
10517
|
-
W = Ee,
|
|
10517
|
+
W = Ee, R = W;
|
|
10518
10518
|
}
|
|
10519
10519
|
return W;
|
|
10520
10520
|
}) : L = f == null ? void 0 : f.map((W) => {
|
|
@@ -10525,24 +10525,24 @@ ${Br}`,
|
|
|
10525
10525
|
let aa = (I = h == null ? void 0 : h.find((Je) => (Je == null ? void 0 : Je.prop) === Se)) == null ? void 0 : I.label;
|
|
10526
10526
|
aa ? Ee[Se] = (oe = sr.value) == null ? void 0 : oe[aa] : Ee[Se] = W[Se] ?? "";
|
|
10527
10527
|
}
|
|
10528
|
-
W = Object.assign(Ee, sr.value),
|
|
10528
|
+
W = Object.assign(Ee, sr.value), R = W;
|
|
10529
10529
|
} else
|
|
10530
|
-
W = (ue = Dt(W, h)) == null ? void 0 : ue.contents,
|
|
10530
|
+
W = (ue = Dt(W, h)) == null ? void 0 : ue.contents, R = (K = Dt(W, h)) == null ? void 0 : K.currentSelectContents;
|
|
10531
10531
|
return W;
|
|
10532
10532
|
}), {
|
|
10533
10533
|
newContents: L,
|
|
10534
|
-
currentSelectContents:
|
|
10534
|
+
currentSelectContents: R
|
|
10535
10535
|
};
|
|
10536
10536
|
}, Iu = (f, h, L) => {
|
|
10537
|
-
var
|
|
10538
|
-
return f[h == null ? void 0 : h.prop] = L, typeof f.id == "number" && (f.id = (
|
|
10537
|
+
var R, W;
|
|
10538
|
+
return f[h == null ? void 0 : h.prop] = L, typeof f.id == "number" && (f.id = (R = f.id) == null ? void 0 : R.toString()), f.children && ((W = f.children) == null ? void 0 : W.length) > 0 && (f.children = f.children.map(Iu)), f;
|
|
10539
10539
|
}, Mu = (f) => {
|
|
10540
10540
|
var L;
|
|
10541
10541
|
const h = [];
|
|
10542
|
-
return h.push({ ...f }), f != null && f.children && Array.isArray(f.children) && ((L = f.children) == null || L.forEach((
|
|
10543
|
-
h.push(...Mu(
|
|
10544
|
-
})), (h == null ? void 0 : h.length) > 0 ? h == null ? void 0 : h.map((
|
|
10545
|
-
const W = { ...
|
|
10542
|
+
return h.push({ ...f }), f != null && f.children && Array.isArray(f.children) && ((L = f.children) == null || L.forEach((R) => {
|
|
10543
|
+
h.push(...Mu(R));
|
|
10544
|
+
})), (h == null ? void 0 : h.length) > 0 ? h == null ? void 0 : h.map((R) => {
|
|
10545
|
+
const W = { ...R };
|
|
10546
10546
|
return delete W.children, W;
|
|
10547
10547
|
}) : [];
|
|
10548
10548
|
}, xo = ["Pacific6000数据采集装置.通道号", "通道号"], Fs = (f) => {
|
|
@@ -10555,7 +10555,7 @@ ${Br}`,
|
|
|
10555
10555
|
const L = (sa) => {
|
|
10556
10556
|
var Sa, $a, La;
|
|
10557
10557
|
return sa ? typeof (sa == null ? void 0 : sa.value) == "string" ? sa.value : ((La = ($a = (Sa = sa == null ? void 0 : sa._custom) == null ? void 0 : Sa.value) == null ? void 0 : $a.value) == null ? void 0 : La.value) || "" : "";
|
|
10558
|
-
},
|
|
10558
|
+
}, R = Array.isArray(xr.value) ? xr.value : [], W = L(R.find((sa) => (sa == null ? void 0 : sa.condition) === "child")), I = (le.value || "").replace(/\/+$/, ""), oe = W ? `${I}/${W}` : I, ue = await yi(oe || le.value, !1), K = String(Ue.value || "").trim(), Ee = (sa) => String(sa || "").trim(), Se = (sa, Sa = [], $a = "") => {
|
|
10559
10559
|
if (!Array.isArray(sa)) return Sa;
|
|
10560
10560
|
for (const La of sa) {
|
|
10561
10561
|
const oa = Ee((La == null ? void 0 : La.choiceName) || (La == null ? void 0 : La.name0) || $a);
|
|
@@ -10573,9 +10573,9 @@ ${Br}`,
|
|
|
10573
10573
|
});
|
|
10574
10574
|
});
|
|
10575
10575
|
} catch {
|
|
10576
|
-
return (Oe.value || []).some((
|
|
10577
|
-
if ((
|
|
10578
|
-
const W = Fs(
|
|
10576
|
+
return (Oe.value || []).some((R) => {
|
|
10577
|
+
if ((R == null ? void 0 : R.id) === h) return !1;
|
|
10578
|
+
const W = Fs(R);
|
|
10579
10579
|
return !!W && W === f;
|
|
10580
10580
|
});
|
|
10581
10581
|
}
|
|
@@ -10596,7 +10596,7 @@ ${Br}`,
|
|
|
10596
10596
|
return;
|
|
10597
10597
|
}
|
|
10598
10598
|
}
|
|
10599
|
-
let
|
|
10599
|
+
let R = ei((Je = Re(U.value)) == null ? void 0 : Je.filter((ja) => (ja == null ? void 0 : ja.label) !== "操作")), W, I = Re(Oe.value);
|
|
10600
10600
|
if (!sr.value) {
|
|
10601
10601
|
ia.value = !1;
|
|
10602
10602
|
return;
|
|
@@ -10616,7 +10616,7 @@ ${Br}`,
|
|
|
10616
10616
|
const Yl = Object.assign(sr.value, ja);
|
|
10617
10617
|
I.unshift(Yl), W = Yl;
|
|
10618
10618
|
} else
|
|
10619
|
-
I = (Sa = zu(I,
|
|
10619
|
+
I = (Sa = zu(I, R)) == null ? void 0 : Sa.newContents, W = ($a = zu(I, R)) == null ? void 0 : $a.currentSelectContents;
|
|
10620
10620
|
const oe = (La = d.itemData) == null ? void 0 : La.filter((ja) => (ja == null ? void 0 : ja.key) === "childTree")[0];
|
|
10621
10621
|
if (((oa = oe == null ? void 0 : oe.contents) == null ? void 0 : oa.length) > 0) {
|
|
10622
10622
|
ma.value = "编辑";
|
|
@@ -10705,7 +10705,7 @@ ${Br}`,
|
|
|
10705
10705
|
const wo = async (f, h, L) => {
|
|
10706
10706
|
var sa, Sa, $a, La, oa, fl, Ta, pl, Ae, Wa, wa, al, Pa;
|
|
10707
10707
|
qr.value = (L == null ? void 0 : L.prop) ?? (L == null ? void 0 : L.property);
|
|
10708
|
-
const
|
|
10708
|
+
const R = Re(d.itemData), W = ((sa = R == null ? void 0 : R.find((Le) => (Le == null ? void 0 : Le.key) === "header")) == null ? void 0 : sa.contents) ?? [];
|
|
10709
10709
|
let I = W == null ? void 0 : W.find(
|
|
10710
10710
|
(Le, V) => {
|
|
10711
10711
|
var Ge, ya, M;
|
|
@@ -10793,8 +10793,8 @@ ${Br}`,
|
|
|
10793
10793
|
if (!f) return;
|
|
10794
10794
|
const h = Re(sr.value || {});
|
|
10795
10795
|
sr.value = f;
|
|
10796
|
-
const L = Fs(h),
|
|
10797
|
-
if (
|
|
10796
|
+
const L = Fs(h), R = Fs(sr.value);
|
|
10797
|
+
if (R && R !== L && await zt(R, va.value || void 0)) {
|
|
10798
10798
|
Bl.warning("当前任务下通道号不能重复,请重新选择"), xo.forEach((Ge) => {
|
|
10799
10799
|
if (Object.prototype.hasOwnProperty.call(sr.value || {}, Ge) || Object.prototype.hasOwnProperty.call(h || {}, Ge)) {
|
|
10800
10800
|
const ya = (h == null ? void 0 : h[Ge]) ?? "";
|
|
@@ -10908,14 +10908,14 @@ ${Br}`,
|
|
|
10908
10908
|
});
|
|
10909
10909
|
}, Ou = (f, h) => {
|
|
10910
10910
|
var L;
|
|
10911
|
-
return h == null || h.forEach((
|
|
10912
|
-
f[
|
|
10913
|
-
}), f.children && ((L = f.children) == null ? void 0 : L.length) > 0 && (f.children = f.children.map((
|
|
10911
|
+
return h == null || h.forEach((R) => {
|
|
10912
|
+
f[R == null ? void 0 : R.prop] = R == null ? void 0 : R.value;
|
|
10913
|
+
}), f.children && ((L = f.children) == null ? void 0 : L.length) > 0 && (f.children = f.children.map((R) => Ou(R, h))), f;
|
|
10914
10914
|
}, It = (f) => {
|
|
10915
|
-
var L,
|
|
10915
|
+
var L, R, W, I, oe, ue;
|
|
10916
10916
|
Ps("");
|
|
10917
10917
|
const h = (L = we.value) == null ? void 0 : L.reduce((K, Ee) => (K[Ee.name] = Ee.value, K), {});
|
|
10918
|
-
if (((
|
|
10918
|
+
if (((R = Object.keys(h)) == null ? void 0 : R.length) > 0) {
|
|
10919
10919
|
sr.value = h, va.value = "", fa.value = (W = Oe.value) == null ? void 0 : W.length, ea.value = (I = Ie.value) == null ? void 0 : I.filter((Ee) => (Ee == null ? void 0 : Ee.label) !== "新增");
|
|
10920
10920
|
const K = (ue = (oe = Me.value) == null ? void 0 : oe.filter((Ee) => (Ee == null ? void 0 : Ee.label) !== "操作")) == null ? void 0 : ue.map((Ee) => {
|
|
10921
10921
|
var aa, Je, sa;
|
|
@@ -10946,19 +10946,19 @@ ${Br}`,
|
|
|
10946
10946
|
HOURS: "工时"
|
|
10947
10947
|
}, Wf = (f, h) => Number(Ks(h).diff(Ks(f), "day", !0).toFixed(1)), Bu = (f) => {
|
|
10948
10948
|
var I;
|
|
10949
|
-
const h = d.itemData, L = (I = h == null ? void 0 : h.find((oe) => (oe == null ? void 0 : oe.key) === "header")) == null ? void 0 : I.contents,
|
|
10949
|
+
const h = d.itemData, L = (I = h == null ? void 0 : h.find((oe) => (oe == null ? void 0 : oe.key) === "header")) == null ? void 0 : I.contents, R = /* @__PURE__ */ new Map();
|
|
10950
10950
|
return L == null || L.forEach((oe, ue) => {
|
|
10951
10951
|
const { label: K } = oe;
|
|
10952
|
-
|
|
10953
|
-
}), !
|
|
10952
|
+
R.set(K, ue);
|
|
10953
|
+
}), !R.has(ms.START) || !R.has(ms.END) || !R.has(ms.HOURS) ? f : f == null ? void 0 : f.map((oe) => {
|
|
10954
10954
|
const ue = oe == null ? void 0 : oe[ms.START], K = oe == null ? void 0 : oe[ms.END], Ee = Wf(ue, K);
|
|
10955
10955
|
return ue && K && (oe[ms.HOURS] = `${Ee}天`), oe;
|
|
10956
10956
|
});
|
|
10957
10957
|
}, Cu = (f, h, L = 0) => {
|
|
10958
10958
|
if (L > ((h == null ? void 0 : h.length) ?? "")) return f;
|
|
10959
|
-
const
|
|
10959
|
+
const R = h == null ? void 0 : h[L], W = /* @__PURE__ */ new Map();
|
|
10960
10960
|
for (const oe of f) {
|
|
10961
|
-
const ue = oe[
|
|
10961
|
+
const ue = oe[R];
|
|
10962
10962
|
W.has(ue) || W.set(ue, []), W.get(ue) && W.get(ue).push(oe);
|
|
10963
10963
|
}
|
|
10964
10964
|
const I = [];
|
|
@@ -10971,13 +10971,13 @@ ${Br}`,
|
|
|
10971
10971
|
var W;
|
|
10972
10972
|
if (!(h != null && h.contents) || ((W = h == null ? void 0 : h.contents) == null ? void 0 : W.length) === 0)
|
|
10973
10973
|
return f;
|
|
10974
|
-
let
|
|
10975
|
-
return
|
|
10974
|
+
let R = [];
|
|
10975
|
+
return R = Cu(f, h == null ? void 0 : h.contents, 0), R;
|
|
10976
10976
|
}, Lu = async (f, h) => {
|
|
10977
10977
|
var fl, Ta, pl, Ae, Wa, wa, al, Pa, Le, V, Ge, ya, M, Na, Xa, hl, Va, Ma, bl, cr, Za, Hl, ja, Yl, cl, xl, Wl, zl, Ur, Or, Er, Ol, _r, Cr, ql, $r, Wr, Lr, Zr, Mi, Br, ri, ci, Ru, Hu, Pu, Fu, ju, Uu;
|
|
10978
10978
|
const L = f == null ? void 0 : f.filter((da) => (da == null ? void 0 : da.key) === "header");
|
|
10979
10979
|
f == null || f.filter((da) => (da == null ? void 0 : da.key) === "tableIndexColumn")[0];
|
|
10980
|
-
const
|
|
10980
|
+
const R = f == null ? void 0 : f.filter((da) => (da == null ? void 0 : da.key) === "childTree")[0];
|
|
10981
10981
|
let W = !0;
|
|
10982
10982
|
if ((pl = (Ta = (fl = f == null ? void 0 : f.find((da) => (da == null ? void 0 : da.key) === "filterAllType")) == null ? void 0 : fl.value) == null ? void 0 : Ta.find((da) => (da == null ? void 0 : da.value) === "onPamButtonContents")) != null && pl.content) {
|
|
10983
10983
|
let da = (wa = (Wa = (Ae = f == null ? void 0 : f.find((Ul) => (Ul == null ? void 0 : Ul.key) === "filterAllType")) == null ? void 0 : Ae.value) == null ? void 0 : Wa.find((Ul) => (Ul == null ? void 0 : Ul.value) === "onPamButtonContents")) == null ? void 0 : wa.content;
|
|
@@ -11146,7 +11146,7 @@ ${Br}`,
|
|
|
11146
11146
|
} catch {
|
|
11147
11147
|
}
|
|
11148
11148
|
const Us = Array.from(((cl = Oa.value) == null ? void 0 : cl.values()) || []).filter((rl) => !(!(rl != null && rl._isOCRRow && (rl == null ? void 0 : rl._ocrTableId) === (d == null ? void 0 : d.index)) || Mn && Mn.has(String(rl == null ? void 0 : rl.id)))), Ao = (Oe.value || []).map((rl) => String(rl == null ? void 0 : rl.id)), Sr = ys(In, Ao);
|
|
11149
|
-
if (Oe.value = $u(Sr,
|
|
11149
|
+
if (Oe.value = $u(Sr, R, U.value), qa.value = Sr, (xl = qa.value) == null || xl.forEach((rl) => {
|
|
11150
11150
|
var la;
|
|
11151
11151
|
(la = Oa.value) == null || la.set(rl.id, rl);
|
|
11152
11152
|
}), Mn && Mn.size > 0)
|
|
@@ -11231,13 +11231,13 @@ ${Br}`,
|
|
|
11231
11231
|
yl(
|
|
11232
11232
|
() => [d.itemData, mr.value, yr.value, Ql.value, P == null ? void 0 : P.value],
|
|
11233
11233
|
async () => {
|
|
11234
|
-
var f, h, L,
|
|
11234
|
+
var f, h, L, R, W, I;
|
|
11235
11235
|
if ((f = d == null ? void 0 : d.itemData) != null && f.find((oe) => (oe == null ? void 0 : oe.key) === "columnPath") && !((h = fe.value) != null && h.find((oe) => {
|
|
11236
11236
|
var ue, K;
|
|
11237
11237
|
return (oe == null ? void 0 : oe.key) === ((K = (ue = d == null ? void 0 : d.itemData) == null ? void 0 : ue.find((Ee) => (Ee == null ? void 0 : Ee.key) === "columnPath")) == null ? void 0 : K.contents);
|
|
11238
11238
|
}))) {
|
|
11239
11239
|
let oe = fe.value, ue = {
|
|
11240
|
-
key: (
|
|
11240
|
+
key: (R = (L = d == null ? void 0 : d.itemData) == null ? void 0 : L.find((K) => (K == null ? void 0 : K.key) === "columnPath")) == null ? void 0 : R.contents,
|
|
11241
11241
|
value: (I = (W = d == null ? void 0 : d.itemData) == null ? void 0 : W.find((K) => (K == null ? void 0 : K.key) === "columnUsingPath")) == null ? void 0 : I.contents
|
|
11242
11242
|
};
|
|
11243
11243
|
oe != null && oe.find((K) => (K == null ? void 0 : K.key) === (ue == null ? void 0 : ue.key)) ? oe = oe == null ? void 0 : oe.map((K) => ((K == null ? void 0 : K.key) === (ue == null ? void 0 : ue.key) && (K.value = ue.value), K)) : oe.push(ue), Ze.setTableViewContents(oe);
|
|
@@ -11250,7 +11250,7 @@ ${Br}`,
|
|
|
11250
11250
|
}, { immediate: !0, deep: !0 });
|
|
11251
11251
|
const qf = () => {
|
|
11252
11252
|
var f;
|
|
11253
|
-
(f =
|
|
11253
|
+
(f = N.value) != null && f.includes("read") && (br.value = !br.value);
|
|
11254
11254
|
}, Kf = () => {
|
|
11255
11255
|
pi.value = !pi.value;
|
|
11256
11256
|
};
|
|
@@ -11259,7 +11259,7 @@ ${Br}`,
|
|
|
11259
11259
|
return (f = d == null ? void 0 : d.config) == null ? void 0 : f.viewport;
|
|
11260
11260
|
}, (f) => {
|
|
11261
11261
|
var h;
|
|
11262
|
-
|
|
11262
|
+
N.value = f, (f == null ? void 0 : f.length) === 0 ? br.value = !1 : (f != null && f.includes("read") || (br.value = !0), f != null && f.includes("edit") || (br.value = !1)), y.value = ((h = d == null ? void 0 : d.config) == null ? void 0 : h.showIndex) || br.value;
|
|
11263
11263
|
}, { immediate: !0 }), yl(() => br.value, (f) => {
|
|
11264
11264
|
var h;
|
|
11265
11265
|
f ? (It("viewChange"), Ze.setCacheUpdatingData(null)) : (ea.value = Ie.value, U.value = B.value, ee.value && (Ze.setTableLoading(d == null ? void 0 : d.index), j("change", ee.value))), y.value = f || ((h = d == null ? void 0 : d.config) == null ? void 0 : h.showIndex), Gr.value = [];
|
|
@@ -11287,13 +11287,13 @@ ${Br}`,
|
|
|
11287
11287
|
It("createClick"), h === ne.pageSize && (ne.currentPage = Math.ceil(((L = Oe.value) == null ? void 0 : L.length) / ne.pageSize));
|
|
11288
11288
|
}, Yf = async (f, h, L) => {
|
|
11289
11289
|
var W, I, oe, ue, K;
|
|
11290
|
-
const
|
|
11291
|
-
if (
|
|
11290
|
+
const R = (h == null ? void 0 : h.property) ?? (h == null ? void 0 : h.prop);
|
|
11291
|
+
if (R && xo.includes(R) && L !== void 0 && L !== null && String(L).trim() !== "") {
|
|
11292
11292
|
const Ee = String(L).trim();
|
|
11293
11293
|
if (await zt(Ee, f == null ? void 0 : f.id)) {
|
|
11294
11294
|
Bl.warning("当前任务下通道号不能重复,请重新选择");
|
|
11295
|
-
const aa = (W = Oe.value) == null ? void 0 : W.findIndex((sa) => (sa == null ? void 0 : sa.id) === (f == null ? void 0 : f.id)), Je = aa !== -1 ? (oe = (I = Oe.value) == null ? void 0 : I[aa]) == null ? void 0 : oe[
|
|
11296
|
-
|
|
11295
|
+
const aa = (W = Oe.value) == null ? void 0 : W.findIndex((sa) => (sa == null ? void 0 : sa.id) === (f == null ? void 0 : f.id)), Je = aa !== -1 ? (oe = (I = Oe.value) == null ? void 0 : I[aa]) == null ? void 0 : oe[R] : void 0;
|
|
11296
|
+
R && (f[R] = Je ?? "");
|
|
11297
11297
|
return;
|
|
11298
11298
|
}
|
|
11299
11299
|
}
|
|
@@ -11301,9 +11301,9 @@ ${Br}`,
|
|
|
11301
11301
|
const Ee = f == null ? void 0 : f.id;
|
|
11302
11302
|
Ee != null && (c.value.has(Ee) || c.value.set(Ee, Re(f)), n.value.add(Ee));
|
|
11303
11303
|
const Se = (ue = Oe.value) == null ? void 0 : ue.findIndex((aa) => (aa == null ? void 0 : aa.id) === (f == null ? void 0 : f.id));
|
|
11304
|
-
Se !== -1 &&
|
|
11304
|
+
Se !== -1 && R && (Oe.value[Se] = {
|
|
11305
11305
|
...Oe.value[Se],
|
|
11306
|
-
[
|
|
11306
|
+
[R]: L
|
|
11307
11307
|
}), wo(L, f, h);
|
|
11308
11308
|
return;
|
|
11309
11309
|
}
|
|
@@ -11312,14 +11312,14 @@ ${Br}`,
|
|
|
11312
11312
|
var f, h;
|
|
11313
11313
|
try {
|
|
11314
11314
|
const L = [];
|
|
11315
|
-
if (d != null && d.related && Array.isArray(d.related) && (console.log("props.related", d.related), d.related.forEach((
|
|
11316
|
-
if (typeof
|
|
11317
|
-
const W =
|
|
11315
|
+
if (d != null && d.related && Array.isArray(d.related) && (console.log("props.related", d.related), d.related.forEach((R) => {
|
|
11316
|
+
if (typeof R == "string" && R.includes("content_")) {
|
|
11317
|
+
const W = R.split("_")[1];
|
|
11318
11318
|
W && (L.push(`content_${W}`), L.push(`struct_${W}`));
|
|
11319
11319
|
}
|
|
11320
11320
|
})), L.length === 0 && (d != null && d.itemData)) {
|
|
11321
|
-
const
|
|
11322
|
-
|
|
11321
|
+
const R = (h = (f = d.itemData) == null ? void 0 : f.find((W) => (W == null ? void 0 : W.key) === "contentTableId")) == null ? void 0 : h.contents;
|
|
11322
|
+
R && (L.push(`content_${R}`), L.push(`struct_${R}`));
|
|
11323
11323
|
}
|
|
11324
11324
|
return L;
|
|
11325
11325
|
} catch (L) {
|
|
@@ -11332,7 +11332,7 @@ ${Br}`,
|
|
|
11332
11332
|
v.value.delete(K), g.value.set(K, !1);
|
|
11333
11333
|
return;
|
|
11334
11334
|
}
|
|
11335
|
-
const
|
|
11335
|
+
const R = (h == null ? void 0 : h.property) ?? (h == null ? void 0 : h.prop), W = `${f == null ? void 0 : f.id}:${R}`;
|
|
11336
11336
|
g.value.set(W, !0);
|
|
11337
11337
|
try {
|
|
11338
11338
|
const ue = await Jf();
|
|
@@ -11358,12 +11358,12 @@ ${Br}`,
|
|
|
11358
11358
|
let La = ((pl = $a == null ? void 0 : $a.结构) == null ? void 0 : pl.contents) ?? [];
|
|
11359
11359
|
if (!Array.isArray(La) || La.length === 0) return;
|
|
11360
11360
|
let oa = Re(La);
|
|
11361
|
-
if (Array.isArray(oa == null ? void 0 : oa[0]) && (oa = ei(oa[0])), !Array.isArray(oa) || oa.length === 0 || !oa.some((Ae) => (Ae == null ? void 0 : Ae.prop) ===
|
|
11361
|
+
if (Array.isArray(oa == null ? void 0 : oa[0]) && (oa = ei(oa[0])), !Array.isArray(oa) || oa.length === 0 || !oa.some((Ae) => (Ae == null ? void 0 : Ae.prop) === R)) return;
|
|
11362
11362
|
[...sa].sort((Ae, Wa) => {
|
|
11363
11363
|
const wa = Number((Ae == null ? void 0 : Ae.update_time) ?? 0);
|
|
11364
11364
|
return Number((Wa == null ? void 0 : Wa.update_time) ?? 0) - wa;
|
|
11365
11365
|
}).slice(0, 20).forEach((Ae) => {
|
|
11366
|
-
const Wa = Ae[
|
|
11366
|
+
const Wa = Ae[R];
|
|
11367
11367
|
if (Wa != null) {
|
|
11368
11368
|
const wa = String(Wa);
|
|
11369
11369
|
wa.toLowerCase().includes(L.toLowerCase()) && aa.findIndex((Pa) => {
|
|
@@ -11384,16 +11384,16 @@ ${Br}`,
|
|
|
11384
11384
|
}
|
|
11385
11385
|
}, Zf = (f, h, L) => {
|
|
11386
11386
|
if (!br.value) return;
|
|
11387
|
-
const
|
|
11387
|
+
const R = (h == null ? void 0 : h.property) ?? (h == null ? void 0 : h.prop), W = (h == null ? void 0 : h.formType) || (h == null ? void 0 : h.columnType) || "";
|
|
11388
11388
|
if (W && W.toUpperCase() !== "INPUT" && W !== "")
|
|
11389
11389
|
return;
|
|
11390
|
-
const I = `${f == null ? void 0 : f.id}:${
|
|
11390
|
+
const I = `${f == null ? void 0 : f.id}:${R}`;
|
|
11391
11391
|
if (m.has(I) && clearTimeout(m.get(I)), !L || L.trim() === "") {
|
|
11392
11392
|
v.value.delete(I), g.value.set(I, !1);
|
|
11393
11393
|
return;
|
|
11394
11394
|
}
|
|
11395
11395
|
const oe = setTimeout(() => {
|
|
11396
|
-
Xf(f, { prop:
|
|
11396
|
+
Xf(f, { prop: R, property: R }, L), m.delete(I);
|
|
11397
11397
|
}, 300);
|
|
11398
11398
|
m.set(I, oe);
|
|
11399
11399
|
};
|
|
@@ -11404,19 +11404,19 @@ ${Br}`,
|
|
|
11404
11404
|
const Vf = (f, h, L) => {
|
|
11405
11405
|
var Ee;
|
|
11406
11406
|
if (!L || !L.rowData) return;
|
|
11407
|
-
const
|
|
11407
|
+
const R = L.rowData, W = f == null ? void 0 : f.id, I = (h == null ? void 0 : h.property) ?? (h == null ? void 0 : h.prop);
|
|
11408
11408
|
(Yi(U.value) || []).filter(
|
|
11409
11409
|
(Se) => (Se == null ? void 0 : Se.type) !== "operate" && (Se == null ? void 0 : Se.label) !== "操作" && (Se == null ? void 0 : Se.prop) !== "operate"
|
|
11410
11410
|
).forEach((Se) => {
|
|
11411
11411
|
const aa = Se == null ? void 0 : Se.prop;
|
|
11412
|
-
aa &&
|
|
11412
|
+
aa && R[aa] !== void 0 && (f[aa] = R[aa]);
|
|
11413
11413
|
}), (Ee = Oe.value) == null || Ee.findIndex((Se) => (Se == null ? void 0 : Se.id) === W), W != null && (c.value.has(W) || c.value.set(W, Re(f)), n.value.add(W));
|
|
11414
11414
|
const K = `${W}:${I}`;
|
|
11415
11415
|
v.value.delete(K), g.value.set(K, !1), wo(f[I], f, h);
|
|
11416
11416
|
}, Li = (f) => {
|
|
11417
11417
|
var K, Ee, Se, aa, Je, sa, Sa, $a, La, oa, fl;
|
|
11418
|
-
const { row: h, column: L, item:
|
|
11419
|
-
let I = h != null && h[L == null ? void 0 : L.prop] || (h == null ? void 0 : h[L == null ? void 0 : L.prop]) === 0 ? ((Ee = (K = h == null ? void 0 : h[L == null ? void 0 : L.prop]) == null ? void 0 : K[0]) == null ? void 0 : Ee.contents) ?? ((h == null ? void 0 : h[L == null ? void 0 : L.prop]) === 0 ? "0" : h == null ? void 0 : h[L == null ? void 0 : L.prop]) : ((aa = (Se = h == null ? void 0 : h[
|
|
11418
|
+
const { row: h, column: L, item: R, slotData: W } = f;
|
|
11419
|
+
let I = h != null && h[L == null ? void 0 : L.prop] || (h == null ? void 0 : h[L == null ? void 0 : L.prop]) === 0 ? ((Ee = (K = h == null ? void 0 : h[L == null ? void 0 : L.prop]) == null ? void 0 : K[0]) == null ? void 0 : Ee.contents) ?? ((h == null ? void 0 : h[L == null ? void 0 : L.prop]) === 0 ? "0" : h == null ? void 0 : h[L == null ? void 0 : L.prop]) : ((aa = (Se = h == null ? void 0 : h[R == null ? void 0 : R.prop]) == null ? void 0 : Se[0]) == null ? void 0 : aa.contents) ?? (h == null ? void 0 : h[R == null ? void 0 : R.prop]) ?? ((sa = (Je = W == null ? void 0 : W[R == null ? void 0 : R.prop]) == null ? void 0 : Je[0]) == null ? void 0 : sa.contents) ?? (W == null ? void 0 : W[R == null ? void 0 : R.prop]) ?? ((La = ($a = h == null ? void 0 : h[(Sa = R == null ? void 0 : R.child) == null ? void 0 : Sa.prop]) == null ? void 0 : $a[0]) == null ? void 0 : La.contents) ?? (h == null ? void 0 : h[(oa = R == null ? void 0 : R.child) == null ? void 0 : oa.prop]), ue = Array.isArray(I) && !(I != null && I.every((Ta) => typeof Ta == "string" || typeof Ta == "number")) ? "查看" : I;
|
|
11420
11420
|
if (ue = Array.isArray(ue) ? ue.join(",") : ue, (L == null ? void 0 : L.formType) === "Date")
|
|
11421
11421
|
if (!ue || ue === "" || ue === null || ue === void 0)
|
|
11422
11422
|
ue = "";
|
|
@@ -11427,14 +11427,14 @@ ${Br}`,
|
|
|
11427
11427
|
return Array.isArray(L == null ? void 0 : L.relatedPages) && ((fl = L == null ? void 0 : L.relatedPages) == null ? void 0 : fl.length) > 0 && (ue = "详情页"), ue;
|
|
11428
11428
|
}, ep = (f) => {
|
|
11429
11429
|
var Ee, Se, aa, Je, sa, Sa, $a, La, oa, fl;
|
|
11430
|
-
const { row: h, column: L, item:
|
|
11431
|
-
let I = h != null && h[L == null ? void 0 : L.prop] ? ((Se = (Ee = h == null ? void 0 : h[L == null ? void 0 : L.prop]) == null ? void 0 : Ee[0]) == null ? void 0 : Se.contents) ?? (h == null ? void 0 : h[L == null ? void 0 : L.prop]) : ((Je = (aa = h == null ? void 0 : h[
|
|
11430
|
+
const { row: h, column: L, item: R, slotData: W } = f;
|
|
11431
|
+
let I = h != null && h[L == null ? void 0 : L.prop] ? ((Se = (Ee = h == null ? void 0 : h[L == null ? void 0 : L.prop]) == null ? void 0 : Ee[0]) == null ? void 0 : Se.contents) ?? (h == null ? void 0 : h[L == null ? void 0 : L.prop]) : ((Je = (aa = h == null ? void 0 : h[R == null ? void 0 : R.prop]) == null ? void 0 : aa[0]) == null ? void 0 : Je.contents) ?? (h == null ? void 0 : h[R == null ? void 0 : R.prop]) ?? ((Sa = (sa = W == null ? void 0 : W[R == null ? void 0 : R.prop]) == null ? void 0 : sa[0]) == null ? void 0 : Sa.contents) ?? (W == null ? void 0 : W[R == null ? void 0 : R.prop]) ?? ((oa = (La = h == null ? void 0 : h[($a = R == null ? void 0 : R.child) == null ? void 0 : $a.prop]) == null ? void 0 : La[0]) == null ? void 0 : oa.contents) ?? (h == null ? void 0 : h[(fl = R == null ? void 0 : R.child) == null ? void 0 : fl.prop]);
|
|
11432
11432
|
const ue = Array.isArray(I) && !(I != null && I.every((Ta) => typeof Ta == "string" || typeof Ta == "number")), K = Array.isArray(I) && (I == null ? void 0 : I.find((Ta) => Ta == null ? void 0 : Ta.url));
|
|
11433
11433
|
return ue && K;
|
|
11434
11434
|
}, ap = (f) => {
|
|
11435
|
-
var L,
|
|
11436
|
-
return f != null && f.column ? (le.value, d == null || d.compName, ((
|
|
11437
|
-
}, lp = (f, h) => f.find((L) => Object.values(L).some((
|
|
11435
|
+
var L, R, W, I;
|
|
11436
|
+
return f != null && f.column ? (le.value, d == null || d.compName, ((R = (L = f == null ? void 0 : f.column) == null ? void 0 : L.filter) == null ? void 0 : R.includes("@TextRGBA")) || ((I = (W = f == null ? void 0 : f.column) == null ? void 0 : W.filter) == null ? void 0 : I.includes("@TextBackRGBA"))) : !1;
|
|
11437
|
+
}, lp = (f, h) => f.find((L) => Object.values(L).some((R) => R === h));
|
|
11438
11438
|
return yl(() => Qe.value, async (f) => {
|
|
11439
11439
|
if (f) {
|
|
11440
11440
|
ge.setContentLoading(!0), await jl();
|
|
@@ -11445,8 +11445,8 @@ ${Br}`,
|
|
|
11445
11445
|
}, { deep: !0, immediate: !0 }), yl(() => d == null ? void 0 : d.cacheNewData, (f) => {
|
|
11446
11446
|
var h;
|
|
11447
11447
|
f && (Array.isArray(f) ? f.forEach((L) => {
|
|
11448
|
-
var
|
|
11449
|
-
if (换, String(L == null ? void 0 : L.compId) === String(d == null ? void 0 : d.index) && (L != null && L.resId) && ((
|
|
11448
|
+
var R, W, I, oe, ue;
|
|
11449
|
+
if (换, String(L == null ? void 0 : L.compId) === String(d == null ? void 0 : d.index) && (L != null && L.resId) && ((R = L == null ? void 0 : L.data) != null && R.id)) {
|
|
11450
11450
|
const K = (W = L == null ? void 0 : L.data) == null ? void 0 : W.id, Ee = L == null ? void 0 : L.resId;
|
|
11451
11451
|
if (Oe.value = (I = Oe.value) == null ? void 0 : I.map((Se) => {
|
|
11452
11452
|
if ((Se == null ? void 0 : Se.id) === K) {
|
|
@@ -11464,8 +11464,8 @@ ${Br}`,
|
|
|
11464
11464
|
gr(d == null ? void 0 : d.index, K, Ee);
|
|
11465
11465
|
}
|
|
11466
11466
|
}) : String(f == null ? void 0 : f.compId) === String(d == null ? void 0 : d.index) && (Oe.value = (h = Oe.value) == null ? void 0 : h.map((L) => {
|
|
11467
|
-
var
|
|
11468
|
-
if ((L == null ? void 0 : L.id) === ((
|
|
11467
|
+
var R;
|
|
11468
|
+
if ((L == null ? void 0 : L.id) === ((R = f == null ? void 0 : f.data) == null ? void 0 : R.id)) {
|
|
11469
11469
|
const W = {
|
|
11470
11470
|
...L,
|
|
11471
11471
|
id: f == null ? void 0 : f.resId
|
|
@@ -11476,7 +11476,7 @@ ${Br}`,
|
|
|
11476
11476
|
})));
|
|
11477
11477
|
}, { immediate: !0, deep: !0 }), (f, h) => {
|
|
11478
11478
|
var oa, fl, Ta, pl;
|
|
11479
|
-
const L = Tl("svg-icon"),
|
|
11479
|
+
const L = Tl("svg-icon"), R = Tl("el-popover"), W = Tl("el-switch"), I = Tl("el-checkbox"), oe = Tl("el-radio"), ue = Tl("el-radio-group"), K = Tl("el-checkbox-group"), Ee = Tl("el-button"), Se = Tl("el-icon"), aa = Tl("el-progress"), Je = Tl("el-alert"), sa = Tl("el-table-column"), Sa = Tl("el-table"), $a = Tl("el-upload"), La = Tl("el-text");
|
|
11480
11480
|
return ce(), qe("div", Tv, [
|
|
11481
11481
|
Vi.value ? (ce(), vl(Jt, {
|
|
11482
11482
|
id: "excel-table",
|
|
@@ -11547,7 +11547,7 @@ ${Br}`,
|
|
|
11547
11547
|
var Ae, Wa, wa, al;
|
|
11548
11548
|
return [
|
|
11549
11549
|
((Ae = Oe.value) == null ? void 0 : Ae.length) > 0 && e.allowOperate && Q.value ? (ce(), qe("div", Iv, [
|
|
11550
|
-
(Wa =
|
|
11550
|
+
(Wa = N.value) != null && Wa.includes("read") && ((wa = N.value) != null && wa.includes("edit")) && ((al = ga.value) != null && al.some((Pa) => (Pa == null ? void 0 : Pa.label) === "编辑")) && !pi.value && Xl(ua) !== Xl(le) ? (ce(), qe("span", {
|
|
11551
11551
|
key: 0,
|
|
11552
11552
|
title: "编辑表格",
|
|
11553
11553
|
onClick: qf
|
|
@@ -11573,7 +11573,7 @@ ${Br}`,
|
|
|
11573
11573
|
], 8, Mv)
|
|
11574
11574
|
]),
|
|
11575
11575
|
operateCol: We(() => [
|
|
11576
|
-
Pe(
|
|
11576
|
+
Pe(R, {
|
|
11577
11577
|
title: "选择显示列信息",
|
|
11578
11578
|
placement: "left-start",
|
|
11579
11579
|
"popper-class": "menu-operate-popover",
|
|
@@ -11625,7 +11625,7 @@ ${Br}`,
|
|
|
11625
11625
|
]),
|
|
11626
11626
|
_: 2
|
|
11627
11627
|
}, 1032, ["value"]),
|
|
11628
|
-
Pe(
|
|
11628
|
+
Pe(R, {
|
|
11629
11629
|
"popper-class": "col-operate-popover",
|
|
11630
11630
|
title: "列操作",
|
|
11631
11631
|
placement: "left",
|
|
@@ -11716,7 +11716,7 @@ ${Br}`,
|
|
|
11716
11716
|
onClick: Vr((cl) => Mf(Ae), ["stop"]),
|
|
11717
11717
|
title: "查看OCR图片"
|
|
11718
11718
|
}, null, 8, ["onClick"])
|
|
11719
|
-
])) : ep(Ae) ? (ce(), vl(
|
|
11719
|
+
])) : ep(Ae) ? (ce(), vl(R, {
|
|
11720
11720
|
key: 1,
|
|
11721
11721
|
"popper-class": "file-popover",
|
|
11722
11722
|
placement: "right",
|
|
@@ -11773,7 +11773,7 @@ ${Br}`,
|
|
|
11773
11773
|
((Ta = ga.value) == null ? void 0 : Ta.length) > 0 ? {
|
|
11774
11774
|
name: "actions",
|
|
11775
11775
|
fn: We(({ item: Ae, fIndex: Wa }) => [
|
|
11776
|
-
Pe(
|
|
11776
|
+
Pe(R, {
|
|
11777
11777
|
title: "",
|
|
11778
11778
|
placement: "left-start",
|
|
11779
11779
|
"popper-class": "menu-operate-popover"
|
|
@@ -12498,7 +12498,7 @@ ${Br}`,
|
|
|
12498
12498
|
} finally {
|
|
12499
12499
|
g.value = !1, b.value = "";
|
|
12500
12500
|
}
|
|
12501
|
-
},
|
|
12501
|
+
}, N = Kl(() => {
|
|
12502
12502
|
var k, b, S, O;
|
|
12503
12503
|
return m.value || (l == null ? void 0 : l.backgroundUrl) !== "" ? {
|
|
12504
12504
|
backgroundImage: `url("${(k = l == null ? void 0 : l.backgroundUrl) == null ? void 0 : k.replace(/\\/g, "/")}")`,
|
|
@@ -12533,7 +12533,7 @@ ${Br}`,
|
|
|
12533
12533
|
const S = Tl("el-tag");
|
|
12534
12534
|
return ce(), qe("div", {
|
|
12535
12535
|
class: "static-form-card",
|
|
12536
|
-
style: li(
|
|
12536
|
+
style: li(N.value),
|
|
12537
12537
|
onClick: b[1] || (b[1] = (O) => A())
|
|
12538
12538
|
}, [
|
|
12539
12539
|
(l == null ? void 0 : l.backGround) === "Yes" ? (ce(), qe("div", {
|
|
@@ -12670,7 +12670,7 @@ ${Br}`,
|
|
|
12670
12670
|
const re = (ta = ie.value) == null ? void 0 : ta.split("/");
|
|
12671
12671
|
return (re == null ? void 0 : re.some((ga) => (ga == null ? void 0 : ga.includes("updateLoading")) || (ga == null ? void 0 : ga.includes("loading")))) ? !1 : se.value === "view";
|
|
12672
12672
|
});
|
|
12673
|
-
const i = a, n = ae(""), c = ae(""), o = ae("Center"), u = ae([]), v = ae(!1), m = ae(!1), g = ae([]), { getFileExtension: d } = _d(), A = ae(), y = ae(!1),
|
|
12673
|
+
const i = a, n = ae(""), c = ae(""), o = ae("Center"), u = ae([]), v = ae(!1), m = ae(!1), g = ae([]), { getFileExtension: d } = _d(), A = ae(), y = ae(!1), N = ae(!1), E = Dn(ir), { chooseTitle: $ } = dr(E), z = ae([]), x = ae(), w = ae(!1), k = ae([]), b = Rd(ir), S = Fd(ir), O = ae(!1), C = ae(), Q = ae(), Y = ae(), ye = ae(), ne = ae(), j = ae(), U = Ln(ir), { loginUserInfo: J } = dr(U), Z = ae(), de = ae(!0), Me = Nn(ir), { tableViewContents: te, itemData: D, isEdit: se, routeToChildPath: q, lockingPage: he, homepageBackgroundTableId: ke, refreshCurrentPageInform: De } = dr(Me), Xe = ae(null), pe = ae(!1), B = ae(!1), $e = mn(), { activeMenuPath: ie } = dr($e), ge = yu(ir), { originalPath: _e } = dr(ge), { compType: le, hasEditable: xe } = Sd(), Qe = () => !xe(r.config, {
|
|
12674
12674
|
type: le.FORM
|
|
12675
12675
|
});
|
|
12676
12676
|
Kl(() => ie.value === "设备管理/试验设备" && r.compName === "设备概要");
|
|
@@ -12835,7 +12835,7 @@ ${Br}`,
|
|
|
12835
12835
|
}), (ol = pr.blob) != null && ol.includes(".stl") && (Dr = (Dr == null ? void 0 : Dr.replaceAll(">", "")) + ".urdf"), x.value = [{
|
|
12836
12836
|
name: Dr,
|
|
12837
12837
|
blobUrl: $l
|
|
12838
|
-
}],
|
|
12838
|
+
}], N.value = !0;
|
|
12839
12839
|
}
|
|
12840
12840
|
} else {
|
|
12841
12841
|
const Qa = Qs.service({
|
|
@@ -12859,11 +12859,11 @@ ${Br}`,
|
|
|
12859
12859
|
}), x.value = [{
|
|
12860
12860
|
name: $l,
|
|
12861
12861
|
blobUrl: gr
|
|
12862
|
-
}],
|
|
12862
|
+
}], N.value = !0;
|
|
12863
12863
|
}
|
|
12864
12864
|
(Ve == null ? void 0 : Ve.length) > 0 && S.setBlobUrls(Ve);
|
|
12865
12865
|
}, fa = () => {
|
|
12866
|
-
|
|
12866
|
+
N.value = !1;
|
|
12867
12867
|
}, Ke = (re) => {
|
|
12868
12868
|
var Ce, ea, Ie, we;
|
|
12869
12869
|
const Ve = (ea = (Ce = Ir(r.itemData)) == null ? void 0 : Ce.find((Ua) => (Ua == null ? void 0 : Ua.key) === "formContent")) == null ? void 0 : ea.contents, ta = Ir(re.content);
|
|
@@ -13378,7 +13378,7 @@ ${Br}`,
|
|
|
13378
13378
|
_: 1
|
|
13379
13379
|
}, 8, ["rowContents", "formRules", "buttonValue", "textSize", "textColor", "backGround", "backGroundImage", "formDisabled", "formLabelsOperable", "isButtonRow", "style"])
|
|
13380
13380
|
], 2)),
|
|
13381
|
-
|
|
13381
|
+
N.value ? (ce(), vl(Qo, {
|
|
13382
13382
|
key: 3,
|
|
13383
13383
|
fileDataList: x.value,
|
|
13384
13384
|
onDestroy: fa
|
|
@@ -13445,7 +13445,7 @@ ${Br}`,
|
|
|
13445
13445
|
contents: k == null ? void 0 : k.options
|
|
13446
13446
|
});
|
|
13447
13447
|
}), n.value = x == null ? void 0 : x.id, v.value = w, m.value = w;
|
|
13448
|
-
},
|
|
13448
|
+
}, N = (x) => {
|
|
13449
13449
|
let w = Re(m.value);
|
|
13450
13450
|
w = w == null ? void 0 : w.map((k) => (k.children || (k.value = x == null ? void 0 : x[k.name]), k)), m.value = w;
|
|
13451
13451
|
}, E = () => {
|
|
@@ -13536,7 +13536,7 @@ ${Br}`,
|
|
|
13536
13536
|
rowContents: v.value,
|
|
13537
13537
|
key: v.value,
|
|
13538
13538
|
isEnableWrap: !0,
|
|
13539
|
-
onChange:
|
|
13539
|
+
onChange: N
|
|
13540
13540
|
}, null, 8, ["rowContents"]))
|
|
13541
13541
|
])
|
|
13542
13542
|
]),
|
|
@@ -13601,7 +13601,7 @@ ${Br}`,
|
|
|
13601
13601
|
}, y = (x) => {
|
|
13602
13602
|
let w = Re(m.value);
|
|
13603
13603
|
w = w == null ? void 0 : w.map((k) => (k.children || (k.value = x == null ? void 0 : x[k.name]), k)), m.value = w;
|
|
13604
|
-
},
|
|
13604
|
+
}, N = () => {
|
|
13605
13605
|
var w, k;
|
|
13606
13606
|
v.value = m.value;
|
|
13607
13607
|
let x = {};
|
|
@@ -13710,7 +13710,7 @@ ${Br}`,
|
|
|
13710
13710
|
}),
|
|
13711
13711
|
Pe(b, {
|
|
13712
13712
|
class: "ok-button button",
|
|
13713
|
-
onClick:
|
|
13713
|
+
onClick: N,
|
|
13714
13714
|
id: "themeButton"
|
|
13715
13715
|
}, {
|
|
13716
13716
|
default: We(() => w[1] || (w[1] = [
|
|
@@ -13740,7 +13740,7 @@ ${Br}`,
|
|
|
13740
13740
|
},
|
|
13741
13741
|
emits: ["change"],
|
|
13742
13742
|
setup(e, { emit: a }) {
|
|
13743
|
-
const l = e, r = a, i = ae([]), n = ae(!1), c = ae(!1), o = ae([]), u = ae(!1), v = ae([]), m = ae(!1), g = ae([]), d = ae(""), A = ae(""), y = ae([]),
|
|
13743
|
+
const l = e, r = a, i = ae([]), n = ae(!1), c = ae(!1), o = ae([]), u = ae(!1), v = ae([]), m = ae(!1), g = ae([]), d = ae(""), A = ae(""), y = ae([]), N = ae([]), E = ae([]), $ = ae([]), z = ae(!1), x = ae([]), w = ae([]), k = ae(0), b = ae([]), S = ae([]), O = ae([]), C = () => {
|
|
13744
13744
|
z.value = !0;
|
|
13745
13745
|
let H = [];
|
|
13746
13746
|
On == null || On.forEach((P) => {
|
|
@@ -13916,7 +13916,7 @@ ${Br}`,
|
|
|
13916
13916
|
}).then(
|
|
13917
13917
|
() => {
|
|
13918
13918
|
var P, ee;
|
|
13919
|
-
|
|
13919
|
+
N.value = (P = Re(N.value)) == null ? void 0 : P.filter((fe) => (fe == null ? void 0 : fe.id) !== (H == null ? void 0 : H.id)), r("change", (ee = Re(l.originalItemContents)) == null ? void 0 : ee.map((fe) => ((fe == null ? void 0 : fe.key) === "extraButton" && (fe.contents = N.value), fe))), Bl({
|
|
13920
13920
|
type: "success",
|
|
13921
13921
|
message: "删除成功"
|
|
13922
13922
|
});
|
|
@@ -13930,17 +13930,17 @@ ${Br}`,
|
|
|
13930
13930
|
if (d.value !== "" ? H.id = d.value : (k.value++, H.id = "id" + k.value), (ee = x.value) == null || ee.forEach((Ue) => {
|
|
13931
13931
|
const ba = On == null ? void 0 : On.find((Ia) => (Ia == null ? void 0 : Ia.label) === (Ue == null ? void 0 : Ue.label));
|
|
13932
13932
|
ba ? H[ba.key] = Ue.value : Ue != null && Ue.children && Ue.children.length > 0 && (H.children = Ue.children);
|
|
13933
|
-
}), (fe =
|
|
13934
|
-
|
|
13933
|
+
}), (fe = N.value) != null && fe.find((Ue) => Ue.id === H.id))
|
|
13934
|
+
N.value = (me = N.value) == null ? void 0 : me.map((Ue) => (Ue.id === H.id && (Ue = H), Ue));
|
|
13935
13935
|
else {
|
|
13936
|
-
let Ue = Re(
|
|
13937
|
-
Ue.push(H),
|
|
13936
|
+
let Ue = Re(N.value) ?? [];
|
|
13937
|
+
Ue.push(H), N.value = Ue;
|
|
13938
13938
|
}
|
|
13939
13939
|
z.value = !1, d.value = "";
|
|
13940
13940
|
let P = Re(l.originalItemContents);
|
|
13941
|
-
(ha = Re(l.originalItemContents)) != null && ha.find((Ue) => (Ue == null ? void 0 : Ue.key) === "extraButton") ? P = (ua = Re(l.originalItemContents)) == null ? void 0 : ua.map((Ue) => ((Ue == null ? void 0 : Ue.key) === "extraButton" && (Ue.contents =
|
|
13941
|
+
(ha = Re(l.originalItemContents)) != null && ha.find((Ue) => (Ue == null ? void 0 : Ue.key) === "extraButton") ? P = (ua = Re(l.originalItemContents)) == null ? void 0 : ua.map((Ue) => ((Ue == null ? void 0 : Ue.key) === "extraButton" && (Ue.contents = N.value), Ue)) : P.push({
|
|
13942
13942
|
key: "extraButton",
|
|
13943
|
-
contents:
|
|
13943
|
+
contents: N.value
|
|
13944
13944
|
}), r("change", P);
|
|
13945
13945
|
}, se = (H) => {
|
|
13946
13946
|
let P = Re(w.value);
|
|
@@ -14117,7 +14117,7 @@ ${Br}`,
|
|
|
14117
14117
|
() => {
|
|
14118
14118
|
var H, P, ee, fe, me, ha, ua, Ue, ba, Ia, Oe, qa, Oa, va, Ga, fa, Ke, ma, ia;
|
|
14119
14119
|
if (!(!l.originalItemContents || l.originalItemContents.length === 0))
|
|
14120
|
-
if (i.value = Re(l.originalItemContents), o.value = (P = (H = i.value) == null ? void 0 : H.find((He) => (He == null ? void 0 : He.key) === "header")) == null ? void 0 : P.contents, y.value = (fe = (ee = i.value) == null ? void 0 : ee.find((He) => (He == null ? void 0 : He.key) === "rowButton")) == null ? void 0 : fe.contents,
|
|
14120
|
+
if (i.value = Re(l.originalItemContents), o.value = (P = (H = i.value) == null ? void 0 : H.find((He) => (He == null ? void 0 : He.key) === "header")) == null ? void 0 : P.contents, y.value = (fe = (ee = i.value) == null ? void 0 : ee.find((He) => (He == null ? void 0 : He.key) === "rowButton")) == null ? void 0 : fe.contents, N.value = (ha = (me = i.value) == null ? void 0 : me.find((He) => (He == null ? void 0 : He.key) === "extraButton")) == null ? void 0 : ha.contents, m.value = (Ue = (ua = i.value) == null ? void 0 : ua.find((He) => (He == null ? void 0 : He.key) === "page")) != null && Ue.contents ? !!((Ia = (ba = i.value) == null ? void 0 : ba.find((He) => (He == null ? void 0 : He.key) === "page")) != null && Ia.contents) : !1, O.value = (qa = (Oe = i.value) == null ? void 0 : Oe.find((He) => (He == null ? void 0 : He.key) === "tableToForm")) == null ? void 0 : qa.contents, o.value = (Oa = o.value) == null ? void 0 : Oa.map((He, je) => (Array.isArray(He) ? He = Sv(He) : He = {
|
|
14121
14121
|
label: (He == null ? void 0 : He.label) ?? "",
|
|
14122
14122
|
prop: (He == null ? void 0 : He.label) === "操作" ? "operate" : He == null ? void 0 : He.prop,
|
|
14123
14123
|
width: He != null && He.width ? parseInt(He.width) : "",
|
|
@@ -14136,7 +14136,7 @@ ${Br}`,
|
|
|
14136
14136
|
type: (He == null ? void 0 : He.type) ?? "",
|
|
14137
14137
|
textColor: (He == null ? void 0 : He.textColor) ?? "#000000",
|
|
14138
14138
|
id: (He == null ? void 0 : He.id) ?? je
|
|
14139
|
-
}),
|
|
14139
|
+
}), N.value = (Ke = N.value) == null ? void 0 : Ke.map((He, je) => He = {
|
|
14140
14140
|
label: (He == null ? void 0 : He.label) ?? "",
|
|
14141
14141
|
type: (He == null ? void 0 : He.type) ?? "",
|
|
14142
14142
|
background: (He == null ? void 0 : He.background) ?? "var(--ssComponent-primary-color)",
|
|
@@ -14287,7 +14287,7 @@ ${Br}`,
|
|
|
14287
14287
|
})
|
|
14288
14288
|
]),
|
|
14289
14289
|
be("div", v2, [
|
|
14290
|
-
(ce(!0), qe(Cl, null, er(
|
|
14290
|
+
(ce(!0), qe(Cl, null, er(N.value, (me, ha) => (ce(), qe("div", { key: ha }, [
|
|
14291
14291
|
be("div", y2, [
|
|
14292
14292
|
be("div", g2, ll(me == null ? void 0 : me.label), 1),
|
|
14293
14293
|
be("div", m2, [
|
|
@@ -14549,7 +14549,7 @@ yl(
|
|
|
14549
14549
|
{ deep: !0, immediate: !0 }
|
|
14550
14550
|
);
|
|
14551
14551
|
const W2 = (e, a, l, r) => {
|
|
14552
|
-
var i, n, c, o, u, v, m, g, d, A, y,
|
|
14552
|
+
var i, n, c, o, u, v, m, g, d, A, y, N, E, $, z, x;
|
|
14553
14553
|
return {
|
|
14554
14554
|
x: ((n = (i = e == null ? void 0 : e.value) == null ? void 0 : i.tableData) == null ? void 0 : n.x) || a % 2 * 12,
|
|
14555
14555
|
// 每个占2列,每列12格
|
|
@@ -14558,7 +14558,7 @@ const W2 = (e, a, l, r) => {
|
|
|
14558
14558
|
w: ((v = (u = e == null ? void 0 : e.value) == null ? void 0 : u.tableData) == null ? void 0 : v.w) || R2.value,
|
|
14559
14559
|
h: ((g = (m = e == null ? void 0 : e.value) == null ? void 0 : m.tableData) == null ? void 0 : g.h) || l,
|
|
14560
14560
|
minW: ((A = (d = e == null ? void 0 : e.value) == null ? void 0 : d.tableData) == null ? void 0 : A.minW) || H2.value,
|
|
14561
|
-
minH: ((
|
|
14561
|
+
minH: ((N = (y = e == null ? void 0 : e.value) == null ? void 0 : y.tableData) == null ? void 0 : N.minH) || F2.value,
|
|
14562
14562
|
maxH: (($ = (E = e == null ? void 0 : e.value) == null ? void 0 : E.tableData) == null ? void 0 : $.maxH) || j2.value,
|
|
14563
14563
|
i: ((x = (z = e == null ? void 0 : e.value) == null ? void 0 : z.tableData) == null ? void 0 : x.i) || a,
|
|
14564
14564
|
id: (e == null ? void 0 : e.id) || a + "",
|
|
@@ -15213,7 +15213,7 @@ const W2 = (e, a, l, r) => {
|
|
|
15213
15213
|
target: l == null ? void 0 : l.target,
|
|
15214
15214
|
extendConfigs: $
|
|
15215
15215
|
});
|
|
15216
|
-
},
|
|
15216
|
+
}, N = ($, z) => {
|
|
15217
15217
|
v.value = z == null ? void 0 : z.changeProp, A($);
|
|
15218
15218
|
}, E = ($) => {
|
|
15219
15219
|
r("onButtonClick", $);
|
|
@@ -15226,7 +15226,7 @@ const W2 = (e, a, l, r) => {
|
|
|
15226
15226
|
formRules: o.value.formRules,
|
|
15227
15227
|
buttonValue: o.value.buttonValue,
|
|
15228
15228
|
onChange: y,
|
|
15229
|
-
onBlurChange:
|
|
15229
|
+
onBlurChange: N,
|
|
15230
15230
|
onOnButtonClick: E
|
|
15231
15231
|
}, null, 8, ["rowContents", "formRules", "buttonValue"]));
|
|
15232
15232
|
}
|
|
@@ -15248,7 +15248,7 @@ const l1 = /* @__PURE__ */ zr(e1, [["render", a1]]), r1 = { class: "form-operate
|
|
|
15248
15248
|
},
|
|
15249
15249
|
emits: ["change"],
|
|
15250
15250
|
setup(e, { emit: a }) {
|
|
15251
|
-
const l = e, r = a, i = ae(!1), n = ae([]), c = ae([]), o = ae(!1), u = ae([]), v = ae([]), m = ae(""), g = ae(!1), d = ae(0), A = ae([]), y = ae([]),
|
|
15251
|
+
const l = e, r = a, i = ae(!1), n = ae([]), c = ae([]), o = ae(!1), u = ae([]), v = ae([]), m = ae(""), g = ae(!1), d = ae(0), A = ae([]), y = ae([]), N = (j, U) => {
|
|
15252
15252
|
if ((U == null ? void 0 : U.type) == "Select" && (j == null ? void 0 : j.key) === "selectRelateType") {
|
|
15253
15253
|
const J = U == null ? void 0 : U.optionUrl;
|
|
15254
15254
|
return (J == null ? void 0 : J.selectRelateType) || U[j.key];
|
|
@@ -15280,7 +15280,7 @@ const l1 = /* @__PURE__ */ zr(e1, [["render", a1]]), r1 = { class: "form-operate
|
|
|
15280
15280
|
type: q.type,
|
|
15281
15281
|
prop: q == null ? void 0 : q.prop,
|
|
15282
15282
|
// value: (t?.label === "类型" && content[t.key] === '') ? "Input" : content[t.key],
|
|
15283
|
-
value:
|
|
15283
|
+
value: N(q, j),
|
|
15284
15284
|
id: d.value,
|
|
15285
15285
|
contents: q == null ? void 0 : q.options,
|
|
15286
15286
|
width: (j == null ? void 0 : j.width) ?? 1
|
|
@@ -15829,7 +15829,7 @@ const l1 = /* @__PURE__ */ zr(e1, [["render", a1]]), r1 = { class: "form-operate
|
|
|
15829
15829
|
contents: v.value
|
|
15830
15830
|
}
|
|
15831
15831
|
]
|
|
15832
|
-
}),
|
|
15832
|
+
}), N = () => {
|
|
15833
15833
|
o.visible = !1;
|
|
15834
15834
|
};
|
|
15835
15835
|
return yl(() => l == null ? void 0 : l.itemContents, (E) => {
|
|
@@ -15902,7 +15902,7 @@ const l1 = /* @__PURE__ */ zr(e1, [["render", a1]]), r1 = { class: "form-operate
|
|
|
15902
15902
|
Pe(si, {
|
|
15903
15903
|
visible: o.visible,
|
|
15904
15904
|
title: o.title,
|
|
15905
|
-
onBeforeDestroy:
|
|
15905
|
+
onBeforeDestroy: N,
|
|
15906
15906
|
width: o.width
|
|
15907
15907
|
}, {
|
|
15908
15908
|
default: We(() => [
|
|
@@ -16125,7 +16125,7 @@ const l1 = /* @__PURE__ */ zr(e1, [["render", a1]]), r1 = { class: "form-operate
|
|
|
16125
16125
|
contents: n.value
|
|
16126
16126
|
}
|
|
16127
16127
|
]
|
|
16128
|
-
}),
|
|
16128
|
+
}), N = () => {
|
|
16129
16129
|
m.visible = !1;
|
|
16130
16130
|
};
|
|
16131
16131
|
return yl(() => l == null ? void 0 : l.itemContents, (E) => {
|
|
@@ -16198,7 +16198,7 @@ const l1 = /* @__PURE__ */ zr(e1, [["render", a1]]), r1 = { class: "form-operate
|
|
|
16198
16198
|
Pe(si, {
|
|
16199
16199
|
visible: m.visible,
|
|
16200
16200
|
title: m.title,
|
|
16201
|
-
onBeforeDestroy:
|
|
16201
|
+
onBeforeDestroy: N,
|
|
16202
16202
|
width: m.width
|
|
16203
16203
|
}, {
|
|
16204
16204
|
default: We(() => [
|
|
@@ -16296,7 +16296,7 @@ const B1 = /* @__PURE__ */ zr(M1, [["render", O1]]), C1 = { class: "extra-conten
|
|
|
16296
16296
|
for (let ne in S)
|
|
16297
16297
|
O[ne] = b;
|
|
16298
16298
|
u.value = O;
|
|
16299
|
-
},
|
|
16299
|
+
}, N = () => {
|
|
16300
16300
|
var w, k;
|
|
16301
16301
|
let x = {};
|
|
16302
16302
|
for (let b in v.value)
|
|
@@ -16361,7 +16361,7 @@ const B1 = /* @__PURE__ */ zr(M1, [["render", O1]]), C1 = { class: "extra-conten
|
|
|
16361
16361
|
}),
|
|
16362
16362
|
Pe(k, {
|
|
16363
16363
|
class: "confirm-button footer-button",
|
|
16364
|
-
onClick:
|
|
16364
|
+
onClick: N,
|
|
16365
16365
|
id: "themeButton"
|
|
16366
16366
|
}, {
|
|
16367
16367
|
default: We(() => w[1] || (w[1] = [
|
|
@@ -16399,7 +16399,7 @@ const B1 = /* @__PURE__ */ zr(M1, [["render", O1]]), C1 = { class: "extra-conten
|
|
|
16399
16399
|
}
|
|
16400
16400
|
},
|
|
16401
16401
|
setup(e) {
|
|
16402
|
-
const a = ae([]), l = yu(ir), { originalPath: r } = dr(l), i = e, n = ae(!1), c = ae(), o = Vo(ir), { multipleTableConst: u } = dr(o), v = Nn(ir), m = ae(!1), g = mn(ir), d = Ln(ir), { itemData: A, isEdit: y, routeToChildPath:
|
|
16402
|
+
const a = ae([]), l = yu(ir), { originalPath: r } = dr(l), i = e, n = ae(!1), c = ae(), o = Vo(ir), { multipleTableConst: u } = dr(o), v = Nn(ir), m = ae(!1), g = mn(ir), d = Ln(ir), { itemData: A, isEdit: y, routeToChildPath: N, tableViewContents: E, lockingPage: $, payloadTypes: z } = dr(v), { activeMenuPath: x, platform: w, childMenu: k } = dr(g), { loginUserInfo: b } = dr(d), S = ae(!1), O = async () => {
|
|
16403
16403
|
var te, D;
|
|
16404
16404
|
(te = a.value) != null && te.find((se) => (se == null ? void 0 : se.buttonName) === "保存") && await J((D = a.value) == null ? void 0 : D.find((se) => (se == null ? void 0 : se.buttonName) === "保存")), await Up();
|
|
16405
16405
|
};
|
|
@@ -17178,7 +17178,7 @@ const B1 = /* @__PURE__ */ zr(M1, [["render", O1]]), C1 = { class: "extra-conten
|
|
|
17178
17178
|
]);
|
|
17179
17179
|
}), 256)),
|
|
17180
17180
|
be("div", null, [
|
|
17181
|
-
Xl(
|
|
17181
|
+
Xl(N) !== "" && ((he = Xl(x)) == null ? void 0 : he[((q = Xl(x)) == null ? void 0 : q.length) - 1]) !== Xl(r) ? (ce(), vl(Xl(uc), {
|
|
17182
17182
|
key: 0,
|
|
17183
17183
|
class: "calculator-content",
|
|
17184
17184
|
onClickTrigger: O,
|
|
@@ -17364,7 +17364,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17364
17364
|
m.value.splice($, 1), n.value = "delete";
|
|
17365
17365
|
break;
|
|
17366
17366
|
}
|
|
17367
|
-
},
|
|
17367
|
+
}, N = () => {
|
|
17368
17368
|
i.visible = !1;
|
|
17369
17369
|
};
|
|
17370
17370
|
return yl(() => l == null ? void 0 : l.itemContents, (E) => {
|
|
@@ -17436,7 +17436,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17436
17436
|
Pe(si, {
|
|
17437
17437
|
visible: i.visible,
|
|
17438
17438
|
title: i.title,
|
|
17439
|
-
onBeforeDestroy:
|
|
17439
|
+
onBeforeDestroy: N,
|
|
17440
17440
|
width: i.width
|
|
17441
17441
|
}, {
|
|
17442
17442
|
default: We(() => [
|
|
@@ -17491,11 +17491,11 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17491
17491
|
r("changeTrigger", g);
|
|
17492
17492
|
};
|
|
17493
17493
|
return (g, d) => {
|
|
17494
|
-
var
|
|
17494
|
+
var N, E, $, z, x;
|
|
17495
17495
|
const A = Tl("el-step"), y = Tl("el-steps");
|
|
17496
17496
|
return ce(), qe(Cl, null, [
|
|
17497
17497
|
Pe(y, {
|
|
17498
|
-
direction: (
|
|
17498
|
+
direction: (N = e.stepConfig) == null ? void 0 : N.direction,
|
|
17499
17499
|
active: n.value,
|
|
17500
17500
|
"finish-status": "success",
|
|
17501
17501
|
simple: (E = e.stepConfig) == null ? void 0 : E.simple,
|
|
@@ -17569,18 +17569,18 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17569
17569
|
alignCenter: !0,
|
|
17570
17570
|
allowTrigger: !0
|
|
17571
17571
|
};
|
|
17572
|
-
let u = ((g = o == null ? void 0 : o.find((
|
|
17573
|
-
(A = (d = o == null ? void 0 : o.find((
|
|
17572
|
+
let u = ((g = o == null ? void 0 : o.find((N) => (N == null ? void 0 : N.key) === "stepName")) == null ? void 0 : g.contents) ?? [], v = [];
|
|
17573
|
+
(A = (d = o == null ? void 0 : o.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : d.contents) == null || A.forEach((N) => {
|
|
17574
17574
|
v.push({
|
|
17575
|
-
label:
|
|
17576
|
-
prop:
|
|
17577
|
-
name:
|
|
17575
|
+
label: N == null ? void 0 : N.label,
|
|
17576
|
+
prop: N == null ? void 0 : N.prop,
|
|
17577
|
+
name: N == null ? void 0 : N.prop,
|
|
17578
17578
|
type: "text",
|
|
17579
17579
|
disabled: !0
|
|
17580
17580
|
});
|
|
17581
17581
|
});
|
|
17582
|
-
let m = ((y = o == null ? void 0 : o.find((
|
|
17583
|
-
u = u == null ? void 0 : u.map((
|
|
17582
|
+
let m = ((y = o == null ? void 0 : o.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : y.contents) ?? [];
|
|
17583
|
+
u = u == null ? void 0 : u.map((N, E) => {
|
|
17584
17584
|
let $ = v == null ? void 0 : v.map((z) => {
|
|
17585
17585
|
var x;
|
|
17586
17586
|
return {
|
|
@@ -17589,7 +17589,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17589
17589
|
};
|
|
17590
17590
|
});
|
|
17591
17591
|
return {
|
|
17592
|
-
title:
|
|
17592
|
+
title: N,
|
|
17593
17593
|
description: $
|
|
17594
17594
|
};
|
|
17595
17595
|
}), n.value = u;
|
|
@@ -17748,11 +17748,11 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17748
17748
|
r("clickMainKey", d, A);
|
|
17749
17749
|
};
|
|
17750
17750
|
return (d, A) => {
|
|
17751
|
-
var y,
|
|
17751
|
+
var y, N;
|
|
17752
17752
|
return ce(), qe("div", o8, [
|
|
17753
17753
|
(y = i.value) != null && y.length ? (ce(), vl(xp, {
|
|
17754
17754
|
tabsContents: i.value,
|
|
17755
|
-
key: (
|
|
17755
|
+
key: (N = i.value) == null ? void 0 : N.length
|
|
17756
17756
|
}, {
|
|
17757
17757
|
pane: We(({ tab: E, index: $ }) => [
|
|
17758
17758
|
(ce(), vl(an(Xl(Jo)(E == null ? void 0 : E.comp)), {
|
|
@@ -17831,36 +17831,36 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17831
17831
|
const a = Yn(ir), { itemData: l, originalData: r } = dr(a), i = ae([]);
|
|
17832
17832
|
ae([]);
|
|
17833
17833
|
const n = ae([]), c = ae([]), o = (A) => {
|
|
17834
|
-
var
|
|
17835
|
-
let y = (
|
|
17834
|
+
var N;
|
|
17835
|
+
let y = (N = Re(c.value)) == null ? void 0 : N.map((E, $) => (A === $ && (E.content = !0), E));
|
|
17836
17836
|
c.value = y;
|
|
17837
17837
|
}, u = (A) => {
|
|
17838
|
-
var
|
|
17839
|
-
let y = (
|
|
17838
|
+
var N;
|
|
17839
|
+
let y = (N = Re(c.value)) == null ? void 0 : N.map((E, $) => (A === $ && (E.content = !1), E));
|
|
17840
17840
|
c.value = y, i.value = Re(l.value);
|
|
17841
17841
|
}, v = (A, y) => {
|
|
17842
17842
|
var z;
|
|
17843
|
-
let
|
|
17844
|
-
c.value =
|
|
17843
|
+
let N = (z = Re(c.value)) == null ? void 0 : z.map((x, w) => (A === w && (x.content = !1), x));
|
|
17844
|
+
c.value = N;
|
|
17845
17845
|
const E = Re(l.value), $ = E == null ? void 0 : E.filter((x, w) => (w === A && (x.name = y), x));
|
|
17846
17846
|
a.setOriginalData($), a.setItemData($);
|
|
17847
17847
|
};
|
|
17848
17848
|
yl(
|
|
17849
17849
|
() => l.value,
|
|
17850
17850
|
() => {
|
|
17851
|
-
var A, y,
|
|
17852
|
-
!l.value || ((A = l.value) == null ? void 0 : A.length) === 0 ? i.value = [] : i.value = (y = Re(l.value)) == null ? void 0 : y.filter((E) => (E == null ? void 0 : E.comp) !== "methodButton"), n.value = i.value, c.value = (
|
|
17851
|
+
var A, y, N;
|
|
17852
|
+
!l.value || ((A = l.value) == null ? void 0 : A.length) === 0 ? i.value = [] : i.value = (y = Re(l.value)) == null ? void 0 : y.filter((E) => (E == null ? void 0 : E.comp) !== "methodButton"), n.value = i.value, c.value = (N = Re(n.value)) == null ? void 0 : N.map((E, $) => ({
|
|
17853
17853
|
id: $,
|
|
17854
17854
|
content: !1
|
|
17855
17855
|
}));
|
|
17856
17856
|
},
|
|
17857
17857
|
{ deep: !0, immediate: !0 }
|
|
17858
17858
|
);
|
|
17859
|
-
const m = (A) => fo(A), g = (A, y,
|
|
17859
|
+
const m = (A) => fo(A), g = (A, y, N) => {
|
|
17860
17860
|
var $, z;
|
|
17861
17861
|
if (!A) return;
|
|
17862
17862
|
let E = Re(l.value);
|
|
17863
|
-
E = ($ = E == null ? void 0 : E.map((x, w) => (w ===
|
|
17863
|
+
E = ($ = E == null ? void 0 : E.map((x, w) => (w === N && (x.compData = A), x))) == null ? void 0 : $.filter((x) => (x == null ? void 0 : x.comp) !== "methodButton"), c.value = (z = Re(E)) == null ? void 0 : z.map((x, w) => ({
|
|
17864
17864
|
id: w,
|
|
17865
17865
|
content: !1
|
|
17866
17866
|
})), a.setOriginalData(E), a.setItemData(E);
|
|
@@ -17870,8 +17870,8 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17870
17870
|
cancelButtonText: "取消",
|
|
17871
17871
|
type: "warning"
|
|
17872
17872
|
}).then(() => {
|
|
17873
|
-
const y = Re(l.value),
|
|
17874
|
-
a.setOriginalData(
|
|
17873
|
+
const y = Re(l.value), N = y == null ? void 0 : y.filter((E, $) => $ !== A);
|
|
17874
|
+
a.setOriginalData(N), a.setItemData(N), Bl({
|
|
17875
17875
|
type: "success",
|
|
17876
17876
|
message: "删除成功"
|
|
17877
17877
|
});
|
|
@@ -17879,7 +17879,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17879
17879
|
});
|
|
17880
17880
|
};
|
|
17881
17881
|
return (A, y) => {
|
|
17882
|
-
const
|
|
17882
|
+
const N = Tl("svg-icon");
|
|
17883
17883
|
return ce(), qe("div", v8, [
|
|
17884
17884
|
y[1] || (y[1] = be("div", { class: "fill-operate" }, ll("操作栏"), -1)),
|
|
17885
17885
|
be("div", y8, [
|
|
@@ -17910,7 +17910,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17910
17910
|
onClick: Vr((ye) => o($), ["stop"]),
|
|
17911
17911
|
class: "icon-content"
|
|
17912
17912
|
}, [
|
|
17913
|
-
Pe(
|
|
17913
|
+
Pe(N, {
|
|
17914
17914
|
name: "Edit",
|
|
17915
17915
|
style: { width: "16px", height: "16px" }
|
|
17916
17916
|
})
|
|
@@ -17918,13 +17918,13 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17918
17918
|
]),
|
|
17919
17919
|
be("div", _8, [
|
|
17920
17920
|
(C = (O = c.value) == null ? void 0 : O.find((ye) => ye.id === $)) != null && C.content ? (ce(), qe("div", x8, [
|
|
17921
|
-
Pe(
|
|
17921
|
+
Pe(N, {
|
|
17922
17922
|
name: "Cancel",
|
|
17923
17923
|
style: { width: "16px", height: "16px" },
|
|
17924
17924
|
class: "icon-content",
|
|
17925
17925
|
onClick: Vr((ye) => u($), ["stop"])
|
|
17926
17926
|
}, null, 8, ["onClick"]),
|
|
17927
|
-
Pe(
|
|
17927
|
+
Pe(N, {
|
|
17928
17928
|
name: "Save",
|
|
17929
17929
|
onClick: Vr((ye) => v($, E.name), ["stop"]),
|
|
17930
17930
|
style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
|
|
@@ -17936,7 +17936,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
17936
17936
|
onClick: Vr((ye) => d($), ["stop"]),
|
|
17937
17937
|
class: "icon-content"
|
|
17938
17938
|
}, [
|
|
17939
|
-
Pe(
|
|
17939
|
+
Pe(N, {
|
|
17940
17940
|
name: "Delete",
|
|
17941
17941
|
style: { width: "16px", height: "16px" }
|
|
17942
17942
|
})
|
|
@@ -18010,7 +18010,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
18010
18010
|
},
|
|
18011
18011
|
emits: ["change"],
|
|
18012
18012
|
setup(e, { emit: a }) {
|
|
18013
|
-
const l = e, r = a, i = ae([]), n = ae(!1), c = ae(""), o = ae({ title: "" }), u = ae(-1), v = ae(!1), m = ae(-1), g = ae(/* @__PURE__ */ new WeakMap()), d = ae(null), A = Yn(ir), { itemData: y } = dr(A),
|
|
18013
|
+
const l = e, r = a, i = ae([]), n = ae(!1), c = ae(""), o = ae({ title: "" }), u = ae(-1), v = ae(!1), m = ae(-1), g = ae(/* @__PURE__ */ new WeakMap()), d = ae(null), A = Yn(ir), { itemData: y } = dr(A), N = () => {
|
|
18014
18014
|
c.value = "新增标签页", o.value.title = "", u.value = -1, n.value = !0;
|
|
18015
18015
|
}, E = (te) => {
|
|
18016
18016
|
c.value = "修改标签页", o.value.title = i.value[te].title, u.value = te, n.value = !0;
|
|
@@ -18240,7 +18240,7 @@ const q1 = /* @__PURE__ */ zr(U1, [["render", W1]]), K1 = { class: "module conte
|
|
|
18240
18240
|
return ce(), qe("div", null, [
|
|
18241
18241
|
be("div", M8, [
|
|
18242
18242
|
D[6] || (D[6] = be("h4", null, "标签页管理", -1)),
|
|
18243
|
-
be("button", { onClick:
|
|
18243
|
+
be("button", { onClick: N }, [
|
|
18244
18244
|
Pe(se, {
|
|
18245
18245
|
name: "Plus",
|
|
18246
18246
|
style: { width: "14px", height: "14px", "margin-right": "4px" }
|
|
@@ -18612,10 +18612,10 @@ const ay = () => ({
|
|
|
18612
18612
|
return u;
|
|
18613
18613
|
const g = [];
|
|
18614
18614
|
for (let A = 0; A < v.length; A++) {
|
|
18615
|
-
const y = v[A],
|
|
18615
|
+
const y = v[A], N = m[A];
|
|
18616
18616
|
g.push({
|
|
18617
18617
|
name: y,
|
|
18618
|
-
value:
|
|
18618
|
+
value: N
|
|
18619
18619
|
});
|
|
18620
18620
|
}
|
|
18621
18621
|
const d = o({
|
|
@@ -18631,9 +18631,9 @@ const ay = () => ({
|
|
|
18631
18631
|
let v = [];
|
|
18632
18632
|
const m = a == null ? void 0 : a.map((A) => A == null ? void 0 : A.prop);
|
|
18633
18633
|
if (v = m == null ? void 0 : m.map((A) => {
|
|
18634
|
-
var
|
|
18634
|
+
var N;
|
|
18635
18635
|
let y = [];
|
|
18636
|
-
return y.push(A), y.push((
|
|
18636
|
+
return y.push(A), y.push((N = l == null ? void 0 : l[0]) == null ? void 0 : N[A]), y;
|
|
18637
18637
|
}), !v)
|
|
18638
18638
|
return u;
|
|
18639
18639
|
const d = o({
|
|
@@ -18656,22 +18656,22 @@ const ay = () => ({
|
|
|
18656
18656
|
prop: A
|
|
18657
18657
|
})), r = d == null ? void 0 : d.yAxis;
|
|
18658
18658
|
} else if (l != null && l.some((d) => d == null ? void 0 : d.functionName)) {
|
|
18659
|
-
let d = l == null ? void 0 : l.filter((
|
|
18660
|
-
d = d == null ? void 0 : d.map(async (
|
|
18659
|
+
let d = l == null ? void 0 : l.filter((N) => N == null ? void 0 : N.functionName);
|
|
18660
|
+
d = d == null ? void 0 : d.map(async (N) => {
|
|
18661
18661
|
let E = {
|
|
18662
|
-
methods:
|
|
18663
|
-
functionName:
|
|
18664
|
-
functionRelatedWords:
|
|
18662
|
+
methods: N == null ? void 0 : N.calculatorFilter,
|
|
18663
|
+
functionName: N == null ? void 0 : N.functionName,
|
|
18664
|
+
functionRelatedWords: N == null ? void 0 : N.functionRelatedWords
|
|
18665
18665
|
};
|
|
18666
|
-
return E = await qo(
|
|
18667
|
-
name:
|
|
18666
|
+
return E = await qo(N, [E], [], "Auto", [], []), {
|
|
18667
|
+
name: N == null ? void 0 : N.prop,
|
|
18668
18668
|
value: E == null ? void 0 : E.value
|
|
18669
18669
|
};
|
|
18670
18670
|
});
|
|
18671
18671
|
let A = await Promise.all(d), y = {};
|
|
18672
|
-
A == null || A.forEach((
|
|
18672
|
+
A == null || A.forEach((N) => {
|
|
18673
18673
|
var E;
|
|
18674
|
-
y[
|
|
18674
|
+
y[N == null ? void 0 : N.name] = ((E = N == null ? void 0 : N.value) == null ? void 0 : E.toString()) ?? "";
|
|
18675
18675
|
}), r = [y];
|
|
18676
18676
|
}
|
|
18677
18677
|
let { type: n } = a, c = {};
|
|
@@ -18839,7 +18839,7 @@ const ay = () => ({
|
|
|
18839
18839
|
// contents: [],
|
|
18840
18840
|
// isFormColHidden: true
|
|
18841
18841
|
// },
|
|
18842
|
-
], y = ae({}),
|
|
18842
|
+
], y = ae({}), N = () => {
|
|
18843
18843
|
const _e = d.value, le = Re(_e);
|
|
18844
18844
|
return le == null || le.forEach((xe) => {
|
|
18845
18845
|
var _a;
|
|
@@ -18849,10 +18849,10 @@ const ay = () => ({
|
|
|
18849
18849
|
}, E = (_e) => {
|
|
18850
18850
|
var xe;
|
|
18851
18851
|
y.value = _e;
|
|
18852
|
-
const le =
|
|
18852
|
+
const le = N();
|
|
18853
18853
|
d.value = le, r("change", (xe = ie()) == null ? void 0 : xe.compData);
|
|
18854
18854
|
}, $ = async (_e) => {
|
|
18855
|
-
const le = await qp(), xe =
|
|
18855
|
+
const le = await qp(), xe = N();
|
|
18856
18856
|
xe == null || xe.forEach((Qe) => {
|
|
18857
18857
|
(Qe == null ? void 0 : Qe.prop) === "menu" && (Qe.contents = le);
|
|
18858
18858
|
}), d.value = xe, g.visible = !0, await De(y.value.menu), await B(y.value.group);
|
|
@@ -19008,7 +19008,7 @@ const ay = () => ({
|
|
|
19008
19008
|
});
|
|
19009
19009
|
}, De = async (_e, le) => {
|
|
19010
19010
|
await ke(_e);
|
|
19011
|
-
const xe =
|
|
19011
|
+
const xe = N();
|
|
19012
19012
|
xe == null || xe.forEach((Qe) => {
|
|
19013
19013
|
(Qe == null ? void 0 : Qe.prop) === "group" && (Qe.contents = D.value);
|
|
19014
19014
|
}), d.value = xe;
|
|
@@ -19042,7 +19042,7 @@ const ay = () => ({
|
|
|
19042
19042
|
const { comp: le, compData: xe } = q.value || {};
|
|
19043
19043
|
if (le === "Table") {
|
|
19044
19044
|
y.value.formItems = [];
|
|
19045
|
-
let Qe =
|
|
19045
|
+
let Qe = N();
|
|
19046
19046
|
Qe = Qe.filter((_a) => {
|
|
19047
19047
|
const { prop: Ze } = _a;
|
|
19048
19048
|
return Ze !== "formItems";
|
|
@@ -19328,7 +19328,7 @@ const ay = () => ({
|
|
|
19328
19328
|
style: li({ height: (A = n.value) == null ? void 0 : A.height })
|
|
19329
19329
|
}, {
|
|
19330
19330
|
default: We(() => [
|
|
19331
|
-
(ce(!0), qe(Cl, null, er(o.value, (y,
|
|
19331
|
+
(ce(!0), qe(Cl, null, er(o.value, (y, N) => (ce(), vl(g, {
|
|
19332
19332
|
span: y == null ? void 0 : y.span
|
|
19333
19333
|
}, {
|
|
19334
19334
|
default: We(() => {
|
|
@@ -19337,7 +19337,7 @@ const ay = () => ({
|
|
|
19337
19337
|
Xl(no) ? (ce(), vl(an(Xl(Jo)(y.comp)), {
|
|
19338
19338
|
key: Xl(cs),
|
|
19339
19339
|
compName: y.name,
|
|
19340
|
-
index: (y == null ? void 0 : y.id) ??
|
|
19340
|
+
index: (y == null ? void 0 : y.id) ?? N,
|
|
19341
19341
|
height: (E = n.value) == null ? void 0 : E.height,
|
|
19342
19342
|
itemData: y == null ? void 0 : y.compData,
|
|
19343
19343
|
childItemData: y == null ? void 0 : y.itemChildData,
|
|
@@ -19377,7 +19377,7 @@ const ay = () => ({
|
|
|
19377
19377
|
setup(e, { emit: a }) {
|
|
19378
19378
|
const l = e, r = a;
|
|
19379
19379
|
qi(() => {
|
|
19380
|
-
|
|
19380
|
+
N();
|
|
19381
19381
|
});
|
|
19382
19382
|
const i = ae({}), n = ae({}), c = ae([]), o = (k) => [
|
|
19383
19383
|
{
|
|
@@ -19410,7 +19410,7 @@ const ay = () => ({
|
|
|
19410
19410
|
return O === "children";
|
|
19411
19411
|
});
|
|
19412
19412
|
return b == null ? void 0 : b.contents;
|
|
19413
|
-
}),
|
|
19413
|
+
}), N = () => {
|
|
19414
19414
|
var k;
|
|
19415
19415
|
i.value = d.value || {}, v.value = (y == null ? void 0 : y.value) || [], c.value = o(), c.value = (k = c.value) == null ? void 0 : k.map((b) => {
|
|
19416
19416
|
var O;
|
|
@@ -20033,14 +20033,14 @@ function a5() {
|
|
|
20033
20033
|
function c(t, s) {
|
|
20034
20034
|
for (var p = 0; p < s.length; p++) {
|
|
20035
20035
|
var _ = s[p];
|
|
20036
|
-
_.enumerable = _.enumerable || !1, _.configurable = !0, "value" in _ && (_.writable = !0), Object.defineProperty(t,
|
|
20036
|
+
_.enumerable = _.enumerable || !1, _.configurable = !0, "value" in _ && (_.writable = !0), Object.defineProperty(t, N(_.key), _);
|
|
20037
20037
|
}
|
|
20038
20038
|
}
|
|
20039
20039
|
function o(t, s, p) {
|
|
20040
20040
|
return s && c(t.prototype, s), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
20041
20041
|
}
|
|
20042
20042
|
function u(t, s, p) {
|
|
20043
|
-
return (s =
|
|
20043
|
+
return (s = N(s)) in t ? Object.defineProperty(t, s, { value: p, enumerable: !0, configurable: !0, writable: !0 }) : t[s] = p, t;
|
|
20044
20044
|
}
|
|
20045
20045
|
function v(t, s) {
|
|
20046
20046
|
if (typeof s != "function" && s !== null) throw new TypeError("Super expression must either be null or a function");
|
|
@@ -20096,7 +20096,7 @@ function a5() {
|
|
|
20096
20096
|
}
|
|
20097
20097
|
}, y.apply(this, arguments);
|
|
20098
20098
|
}
|
|
20099
|
-
function
|
|
20099
|
+
function N(t) {
|
|
20100
20100
|
var s = function(p, _) {
|
|
20101
20101
|
if (typeof p != "object" || p === null) return p;
|
|
20102
20102
|
var T = p[Symbol.toPrimitive];
|
|
@@ -22338,7 +22338,7 @@ const Pc = /* @__PURE__ */ gp(l5), du = /* @__PURE__ */ ai({
|
|
|
22338
22338
|
style: {},
|
|
22339
22339
|
rtl: !1
|
|
22340
22340
|
});
|
|
22341
|
-
let v = !1, m = !1, g = NaN, d = NaN, A = NaN, y = NaN,
|
|
22341
|
+
let v = !1, m = !1, g = NaN, d = NaN, A = NaN, y = NaN, N = -1, E = -1, $ = -1, z = -1, x = r.x, w = r.y, k = r.w, b = r.h;
|
|
22342
22342
|
const S = ae(), O = Ii({
|
|
22343
22343
|
i: np(r, "i"),
|
|
22344
22344
|
state: u,
|
|
@@ -22467,7 +22467,7 @@ const Pc = /* @__PURE__ */ gp(l5), du = /* @__PURE__ */ ai({
|
|
|
22467
22467
|
let Oe;
|
|
22468
22468
|
switch (ha) {
|
|
22469
22469
|
case "resizestart": {
|
|
22470
|
-
fe(),
|
|
22470
|
+
fe(), N = k, E = b, Oe = $e(x, w, k, b), Ia.width = Oe.width, Ia.height = Oe.height, u.resizing = Ia, u.isResizing = !0;
|
|
22471
22471
|
break;
|
|
22472
22472
|
}
|
|
22473
22473
|
case "resizemove": {
|
|
@@ -22481,7 +22481,7 @@ const Pc = /* @__PURE__ */ gp(l5), du = /* @__PURE__ */ ai({
|
|
|
22481
22481
|
break;
|
|
22482
22482
|
}
|
|
22483
22483
|
}
|
|
22484
|
-
Oe = xe(Ia.height, Ia.width), Oe.w < r.minW && (Oe.w = r.minW), Oe.w > r.maxW && (Oe.w = r.maxW), Oe.h < r.minH && (Oe.h = r.minH), Oe.h > r.maxH && (Oe.h = r.maxH), Oe.h < 1 && (Oe.h = 1), Oe.w < 1 && (Oe.w = 1), A = Ue, y = ba, (k !== Oe.w || b !== Oe.h) && i("resize", r.i, Oe.h, Oe.w, Ia.height, Ia.width), me.type === "resizeend" && (
|
|
22484
|
+
Oe = xe(Ia.height, Ia.width), Oe.w < r.minW && (Oe.w = r.minW), Oe.w > r.maxW && (Oe.w = r.maxW), Oe.h < r.minH && (Oe.h = r.minH), Oe.h > r.maxH && (Oe.h = r.maxH), Oe.h < 1 && (Oe.h = 1), Oe.w < 1 && (Oe.w = 1), A = Ue, y = ba, (k !== Oe.w || b !== Oe.h) && i("resize", r.i, Oe.h, Oe.w, Ia.height, Ia.width), me.type === "resizeend" && (N !== k || E !== b) && i("resized", r.i, Oe.h, Oe.w, Ia.height, Ia.width), c.emit("resizeEvent", me.type, r.i, x, w, Oe.h, Oe.w);
|
|
22485
22485
|
}
|
|
22486
22486
|
function B(me) {
|
|
22487
22487
|
if (r.static || u.isResizing) return;
|
|
@@ -22958,7 +22958,7 @@ var os = function(e) {
|
|
|
22958
22958
|
return Oo.get(e);
|
|
22959
22959
|
if (xf(e))
|
|
22960
22960
|
return Oo.set(e, Gc), Gc;
|
|
22961
|
-
var l = getComputedStyle(e), r = _u(e) && e.ownerSVGElement && e.getBBox(), i = !b5 && l.boxSizing === "border-box", n = m5.test(l.writingMode || ""), c = !r && Kc.test(l.overflowY || ""), o = !r && Kc.test(l.overflowX || ""), u = r ? 0 : An(l.paddingTop), v = r ? 0 : An(l.paddingRight), m = r ? 0 : An(l.paddingBottom), g = r ? 0 : An(l.paddingLeft), d = r ? 0 : An(l.borderTopWidth), A = r ? 0 : An(l.borderRightWidth), y = r ? 0 : An(l.borderBottomWidth),
|
|
22961
|
+
var l = getComputedStyle(e), r = _u(e) && e.ownerSVGElement && e.getBBox(), i = !b5 && l.boxSizing === "border-box", n = m5.test(l.writingMode || ""), c = !r && Kc.test(l.overflowY || ""), o = !r && Kc.test(l.overflowX || ""), u = r ? 0 : An(l.paddingTop), v = r ? 0 : An(l.paddingRight), m = r ? 0 : An(l.paddingBottom), g = r ? 0 : An(l.paddingLeft), d = r ? 0 : An(l.borderTopWidth), A = r ? 0 : An(l.borderRightWidth), y = r ? 0 : An(l.borderBottomWidth), N = r ? 0 : An(l.borderLeftWidth), E = g + v, $ = u + m, z = N + A, x = d + y, w = o ? e.offsetHeight - x - e.clientHeight : 0, k = c ? e.offsetWidth - z - e.clientWidth : 0, b = i ? E + z : 0, S = i ? $ + x : 0, O = r ? r.width : An(l.width) - b - k, C = r ? r.height : An(l.height) - S - w, Q = O + E + k + z, Y = C + $ + w + x, ye = os({
|
|
22962
22962
|
devicePixelContentBoxSize: Is(Math.round(O * devicePixelRatio), Math.round(C * devicePixelRatio), n),
|
|
22963
22963
|
borderBoxSize: Is(Q, Y, n),
|
|
22964
22964
|
contentBoxSize: Is(O, C, n),
|
|
@@ -23358,13 +23358,13 @@ const N5 = /* @__PURE__ */ ai({
|
|
|
23358
23358
|
...ec(r),
|
|
23359
23359
|
...ec(n),
|
|
23360
23360
|
increaseItem: y,
|
|
23361
|
-
decreaseItem:
|
|
23361
|
+
decreaseItem: N
|
|
23362
23362
|
})
|
|
23363
23363
|
), Zs(pf, g), a({ state: n, getItem: E, resizeEvent: S, dragEvent: b, layoutUpdate: $ });
|
|
23364
23364
|
function y(Y) {
|
|
23365
23365
|
c.set(Y.i, Y);
|
|
23366
23366
|
}
|
|
23367
|
-
function
|
|
23367
|
+
function N(Y) {
|
|
23368
23368
|
c.delete(Y.i);
|
|
23369
23369
|
}
|
|
23370
23370
|
function E(Y) {
|
|
@@ -23544,7 +23544,7 @@ const R5 = {
|
|
|
23544
23544
|
let C = (S = (b = c == null ? void 0 : c.children) == null ? void 0 : b.find((Q) => Q == null ? void 0 : Q.choice)) == null ? void 0 : S.choiceName;
|
|
23545
23545
|
return (O = c == null ? void 0 : c.children) == null ? void 0 : O.filter((Q) => !(Q != null && Q.choiceName) || (Q == null ? void 0 : Q.choiceName) === C);
|
|
23546
23546
|
}
|
|
23547
|
-
}),
|
|
23547
|
+
}), N = (z) => {
|
|
23548
23548
|
const x = (z == null ? void 0 : z.menuFilter) || [];
|
|
23549
23549
|
return Array.isArray(x) && (x == null ? void 0 : x.some((w) => {
|
|
23550
23550
|
const k = typeof w == "string" ? w : JSON.stringify(w);
|
|
@@ -23638,7 +23638,7 @@ const R5 = {
|
|
|
23638
23638
|
style: li({ gap: "16px", display: (w == null ? void 0 : w.isShow) === !1 ? "none" : "flex", flexDirection: "column", paddingBottom: parseInt(k) === ((b = c == null ? void 0 : c.children) == null ? void 0 : b.length) - 1 ? "0px" : "24px" })
|
|
23639
23639
|
}, [
|
|
23640
23640
|
((S = w == null ? void 0 : w.comp) == null ? void 0 : S.toUpperCase()) !== "TABLE" && w.name ? (ce(), qe("div", H5, [
|
|
23641
|
-
|
|
23641
|
+
N(w) ? Ml("", !0) : (ce(), qe("div", {
|
|
23642
23642
|
key: 0,
|
|
23643
23643
|
class: "group-name-wrap",
|
|
23644
23644
|
style: li({
|
|
@@ -23803,10 +23803,10 @@ const R5 = {
|
|
|
23803
23803
|
g = (m = pd(i, !0)) == null ? void 0 : m[0];
|
|
23804
23804
|
else {
|
|
23805
23805
|
let A = i.some((y) => Array.isArray(y)) ? i == null ? void 0 : i[0] : i;
|
|
23806
|
-
A == null || A.forEach((y,
|
|
23806
|
+
A == null || A.forEach((y, N) => {
|
|
23807
23807
|
g.push({
|
|
23808
23808
|
label: (y == null ? void 0 : y.label) ?? "",
|
|
23809
|
-
prop: (y == null ? void 0 : y.prop) ?? "a" +
|
|
23809
|
+
prop: (y == null ? void 0 : y.prop) ?? "a" + N,
|
|
23810
23810
|
width: y != null && y.width ? parseInt(y.width) : "",
|
|
23811
23811
|
fixed: (y == null ? void 0 : y.fixed) ?? void 0,
|
|
23812
23812
|
sortable: (y == null ? void 0 : y.sortable) ?? !1,
|
|
@@ -23818,12 +23818,12 @@ const R5 = {
|
|
|
23818
23818
|
isNotDrag: (y == null ? void 0 : y.isNotDrag) ?? !1,
|
|
23819
23819
|
isEditCol: (y == null ? void 0 : y.isEditCol) ?? !1,
|
|
23820
23820
|
isOperate: (y == null ? void 0 : y.isOperate) ?? !1,
|
|
23821
|
-
id: (y == null ? void 0 : y.id) ??
|
|
23821
|
+
id: (y == null ? void 0 : y.id) ?? N,
|
|
23822
23822
|
formType: (y == null ? void 0 : y.formType) ?? (y != null && y.groupSelect ? "Select" : ""),
|
|
23823
23823
|
disabled: y == null ? void 0 : y.disabled,
|
|
23824
23824
|
options: (y == null ? void 0 : y.options) ?? [],
|
|
23825
23825
|
value: (y == null ? void 0 : y.value) ?? "",
|
|
23826
|
-
mainKey: (y == null ? void 0 : y.mainKey) ??
|
|
23826
|
+
mainKey: (y == null ? void 0 : y.mainKey) ?? N === 0,
|
|
23827
23827
|
allSelectionContents: (y == null ? void 0 : y.allContents) ?? [],
|
|
23828
23828
|
filterContent: y == null ? void 0 : y.filterContents,
|
|
23829
23829
|
menus: y == null ? void 0 : y.menus,
|
|
@@ -23855,9 +23855,9 @@ const R5 = {
|
|
|
23855
23855
|
c == null || c.forEach((g, d) => {
|
|
23856
23856
|
var y;
|
|
23857
23857
|
let A = {};
|
|
23858
|
-
if (A = g, Array.isArray(g) && g.some((
|
|
23859
|
-
const
|
|
23860
|
-
o.push(Object.assign(A, { id: K5(
|
|
23858
|
+
if (A = g, Array.isArray(g) && g.some((N) => N == null ? void 0 : N.id)) {
|
|
23859
|
+
const N = (y = g == null ? void 0 : g.find((E) => E.id)) == null ? void 0 : y.id;
|
|
23860
|
+
o.push(Object.assign(A, { id: K5(N) }));
|
|
23861
23861
|
} else A.id ? o.push(A) : o.push(Object.assign(A, { id: d.toString() }));
|
|
23862
23862
|
});
|
|
23863
23863
|
let u = Y5(o, []);
|
|
@@ -23951,7 +23951,7 @@ var Su = ai({
|
|
|
23951
23951
|
},
|
|
23952
23952
|
setup(e, { expose: a, emit: l }) {
|
|
23953
23953
|
const r = ae(null), i = ae(null), n = ae([]), c = ae(0), o = ae(!1), u = ae(e.direction), v = Kl(() => e.hover ? !o.value && e.modelValue : e.modelValue), m = ae([]), g = Bs(e.list), d = ae(e.visibleCount === void 0 ? 0 : e.visibleCount);
|
|
23954
|
-
let A = 0, y = 0,
|
|
23954
|
+
let A = 0, y = 0, N = 0, E = [], $ = 0, z = 0, x = -1, w = 0, k = null, b = !1, S = 0, O = 0, C = !1;
|
|
23955
23955
|
const Q = () => {
|
|
23956
23956
|
cancelAnimationFrame(k), k = null;
|
|
23957
23957
|
}, Y = () => {
|
|
@@ -23977,7 +23977,7 @@ var Su = ai({
|
|
|
23977
23977
|
const $e = () => {
|
|
23978
23978
|
const ie = E[0];
|
|
23979
23979
|
let ge = !1;
|
|
23980
|
-
S >= ie && (ge = !0), ge && (E.shift(), S = 0, y += 1), y === A && (
|
|
23980
|
+
S >= ie && (ge = !0), ge && (E.shift(), S = 0, y += 1), y === A && (N += 1, l("count", N), y = 0), e.singleLine && ge ? (b = !0, setTimeout(() => {
|
|
23981
23981
|
b = !1, pe || ne(!1, e.step);
|
|
23982
23982
|
}, e.singleWaitTime)) : pe || ne(!1, e.step);
|
|
23983
23983
|
};
|
|
@@ -24026,7 +24026,7 @@ var Su = ai({
|
|
|
24026
24026
|
})), A = g.length;
|
|
24027
24027
|
});
|
|
24028
24028
|
const se = () => {
|
|
24029
|
-
y = 0,
|
|
24029
|
+
y = 0, N = 0, C = !1, z = 0, n.value = [], jl(() => {
|
|
24030
24030
|
c.value = u.value === "up" ? 0 : te() - w, O = 0, S = 0;
|
|
24031
24031
|
});
|
|
24032
24032
|
}, q = () => {
|
|
@@ -24245,7 +24245,7 @@ var Eu = ai({
|
|
|
24245
24245
|
},
|
|
24246
24246
|
setup(e, { emit: a, expose: l }) {
|
|
24247
24247
|
const r = ae(null), i = ae(null), n = ae([]), c = ae(0), o = ae(!1), u = ae(e.direction), v = Kl(() => e.hover ? !o.value && e.modelValue : e.modelValue), m = ae([]), g = ae(e.visibleCount === void 0 ? 0 : e.visibleCount), d = Bs(e.list);
|
|
24248
|
-
let A = 0, y = 0,
|
|
24248
|
+
let A = 0, y = 0, N = 0, E = [], $ = 0, z = 0, x = -1, w = 0, k = null, b = !1, S = 0, O = 0, C = !1;
|
|
24249
24249
|
const Q = () => {
|
|
24250
24250
|
cancelAnimationFrame(k), k = null;
|
|
24251
24251
|
}, Y = () => {
|
|
@@ -24271,7 +24271,7 @@ var Eu = ai({
|
|
|
24271
24271
|
const $e = () => {
|
|
24272
24272
|
const ie = E[0];
|
|
24273
24273
|
let ge = !1;
|
|
24274
|
-
S >= ie && (ge = !0), ge && (E.shift(), S = 0, y += 1), y === A && (
|
|
24274
|
+
S >= ie && (ge = !0), ge && (E.shift(), S = 0, y += 1), y === A && (N += 1, a("count", N), y = 0), e.singleLine && ge ? (b = !0, setTimeout(() => {
|
|
24275
24275
|
b = !1, pe || ne(!1, e.step);
|
|
24276
24276
|
}, e.singleWaitTime)) : pe || ne(!1, e.step);
|
|
24277
24277
|
};
|
|
@@ -24320,7 +24320,7 @@ var Eu = ai({
|
|
|
24320
24320
|
})), A = d.length;
|
|
24321
24321
|
});
|
|
24322
24322
|
const se = () => {
|
|
24323
|
-
y = 0,
|
|
24323
|
+
y = 0, N = 0, C = !1, z = 0, n.value = [], jl(() => {
|
|
24324
24324
|
c.value = u.value === "left" ? 0 : te() - w, O = 0, S = 0;
|
|
24325
24325
|
});
|
|
24326
24326
|
}, q = () => {
|
|
@@ -24532,7 +24532,7 @@ var at = ai({
|
|
|
24532
24532
|
},
|
|
24533
24533
|
setup(e, { expose: a, emit: l }) {
|
|
24534
24534
|
const r = ae(null), i = ae(null), n = ae(null), c = ae([]), o = ae(0), u = ae(!1), v = ae(e.direction), m = Kl(() => e.hover ? !u.value && e.modelValue : e.modelValue), g = ae([]), d = ae(e.visibleCount === void 0 ? 0 : e.visibleCount), A = Bs(e.list);
|
|
24535
|
-
let y = 0,
|
|
24535
|
+
let y = 0, N = 0, E = 0, $ = [], z = 0, x = 0, w = -1, k = 0, b = null, S = !1, O = 0, C = 0, Q = !1;
|
|
24536
24536
|
const Y = Kl(() => v.value === "up" || v.value === "down" ? `translateY(-${o.value}px)` : `translateX(-${o.value}px)`), ye = () => {
|
|
24537
24537
|
cancelAnimationFrame(b), b = null;
|
|
24538
24538
|
}, ne = () => {
|
|
@@ -24560,7 +24560,7 @@ var at = ai({
|
|
|
24560
24560
|
const _e = () => {
|
|
24561
24561
|
const le = $[0];
|
|
24562
24562
|
let xe = !1;
|
|
24563
|
-
O >= le && (xe = !0), xe && ($.shift(), O = 0,
|
|
24563
|
+
O >= le && (xe = !0), xe && ($.shift(), O = 0, N += 1), N === y && (E += 1, l("count", E), N = 0), e.singleLine && xe ? (S = !0, setTimeout(() => {
|
|
24564
24564
|
S = !1, ie || J(!1, e.step);
|
|
24565
24565
|
}, e.singleWaitTime)) : ie || J(!1, e.step);
|
|
24566
24566
|
};
|
|
@@ -24610,7 +24610,7 @@ var at = ai({
|
|
|
24610
24610
|
})), y = A.length;
|
|
24611
24611
|
});
|
|
24612
24612
|
const ke = () => {
|
|
24613
|
-
|
|
24613
|
+
N = 0, E = 0, Q = !1, x = 0, c.value = [], jl(() => {
|
|
24614
24614
|
U(), C = 0, O = 0;
|
|
24615
24615
|
});
|
|
24616
24616
|
}, De = () => {
|
|
@@ -24780,25 +24780,30 @@ const ng = /* @__PURE__ */ ai({
|
|
|
24780
24780
|
},
|
|
24781
24781
|
setup(e) {
|
|
24782
24782
|
const a = e, l = ae([]), r = ae(), i = ae([]), n = ae(0), c = ae([]), o = ae(300), u = ae(!1), v = mn(ir), { systemHeight: m } = dr(v), g = () => {
|
|
24783
|
-
|
|
24784
|
-
|
|
24783
|
+
r.value && jl(() => {
|
|
24784
|
+
requestAnimationFrame(() => {
|
|
24785
|
+
setTimeout(() => {
|
|
24786
|
+
var N;
|
|
24787
|
+
const y = ((N = r.value) == null ? void 0 : N.clientHeight) ?? 0;
|
|
24788
|
+
console.log(232, y), y > 0 && i.value.length > 0 && (u.value = !0);
|
|
24789
|
+
}, 150);
|
|
24790
|
+
});
|
|
24791
|
+
});
|
|
24785
24792
|
};
|
|
24786
24793
|
qi(() => {
|
|
24787
|
-
|
|
24788
|
-
g();
|
|
24789
|
-
});
|
|
24794
|
+
g();
|
|
24790
24795
|
}), yl(
|
|
24791
24796
|
() => m.value,
|
|
24792
24797
|
() => {
|
|
24793
|
-
g()
|
|
24798
|
+
g();
|
|
24794
24799
|
},
|
|
24795
24800
|
{ immediate: !0, deep: !0 }
|
|
24796
24801
|
), yl(
|
|
24797
24802
|
() => a == null ? void 0 : a.itemData,
|
|
24798
24803
|
async () => {
|
|
24799
|
-
var
|
|
24804
|
+
var N;
|
|
24800
24805
|
let y = X5(a == null ? void 0 : a.itemData);
|
|
24801
|
-
l.value = (y == null ? void 0 : y.columns) ?? [], i.value = (y == null ? void 0 : y.tableContents) ?? [], c.value = (
|
|
24806
|
+
l.value = (y == null ? void 0 : y.columns) ?? [], i.value = (y == null ? void 0 : y.tableContents) ?? [], c.value = (N = y == null ? void 0 : y.columns) == null ? void 0 : N.map((E) => E == null ? void 0 : E.label), n.value = n.value + 1, g();
|
|
24802
24807
|
},
|
|
24803
24808
|
{ immediate: !0, deep: !0 }
|
|
24804
24809
|
);
|
|
@@ -24807,8 +24812,8 @@ const ng = /* @__PURE__ */ ai({
|
|
|
24807
24812
|
return y != null && y.column ? (($ = (E = y == null ? void 0 : y.column) == null ? void 0 : E.filter) == null ? void 0 : $.includes("@TextRGBA")) || ((x = (z = y == null ? void 0 : y.column) == null ? void 0 : z.filter) == null ? void 0 : x.includes("@TextBackRGBA")) : !1;
|
|
24808
24813
|
}, A = (y) => {
|
|
24809
24814
|
var b, S, O, C, Q, Y, ye, ne, j, U, J;
|
|
24810
|
-
const { row:
|
|
24811
|
-
let x =
|
|
24815
|
+
const { row: N, column: E, item: $, slotData: z } = y;
|
|
24816
|
+
let x = N != null && N[E == null ? void 0 : E.prop] || (N == null ? void 0 : N[E == null ? void 0 : E.prop]) === 0 ? ((S = (b = N == null ? void 0 : N[E == null ? void 0 : E.prop]) == null ? void 0 : b[0]) == null ? void 0 : S.contents) ?? ((N == null ? void 0 : N[E == null ? void 0 : E.prop]) === 0 ? "0" : N == null ? void 0 : N[E == null ? void 0 : E.prop]) : ((C = (O = N == null ? void 0 : N[$ == null ? void 0 : $.prop]) == null ? void 0 : O[0]) == null ? void 0 : C.contents) ?? (N == null ? void 0 : N[$ == null ? void 0 : $.prop]) ?? ((Y = (Q = z == null ? void 0 : z[$ == null ? void 0 : $.prop]) == null ? void 0 : Q[0]) == null ? void 0 : Y.contents) ?? (z == null ? void 0 : z[$ == null ? void 0 : $.prop]) ?? ((j = (ne = N == null ? void 0 : N[(ye = $ == null ? void 0 : $.child) == null ? void 0 : ye.prop]) == null ? void 0 : ne[0]) == null ? void 0 : j.contents) ?? (N == null ? void 0 : N[(U = $ == null ? void 0 : $.child) == null ? void 0 : U.prop]), k = Array.isArray(x) && !(x != null && x.every((Z) => typeof Z == "string" || typeof Z == "number")) ? "查看" : x;
|
|
24812
24817
|
if (k = Array.isArray(k) ? k.join(",") : k, (E == null ? void 0 : E.formType) === "Date")
|
|
24813
24818
|
if (!k || k === "" || k === null || k === void 0)
|
|
24814
24819
|
k = "";
|
|
@@ -24818,7 +24823,7 @@ const ng = /* @__PURE__ */ ai({
|
|
|
24818
24823
|
}
|
|
24819
24824
|
return Array.isArray(E == null ? void 0 : E.relatedPages) && ((J = E == null ? void 0 : E.relatedPages) == null ? void 0 : J.length) > 0 && (k = "详情页"), k;
|
|
24820
24825
|
};
|
|
24821
|
-
return (y,
|
|
24826
|
+
return (y, N) => {
|
|
24822
24827
|
var E;
|
|
24823
24828
|
return ce(), qe("div", {
|
|
24824
24829
|
class: "seamless-table",
|
|
@@ -24894,7 +24899,7 @@ const ng = /* @__PURE__ */ ai({
|
|
|
24894
24899
|
], 512);
|
|
24895
24900
|
};
|
|
24896
24901
|
}
|
|
24897
|
-
}), sg = /* @__PURE__ */ zr(ng, [["__scopeId", "data-v-
|
|
24902
|
+
}), sg = /* @__PURE__ */ zr(ng, [["__scopeId", "data-v-45c597b8"]]), og = ae([
|
|
24898
24903
|
{
|
|
24899
24904
|
name: "表格",
|
|
24900
24905
|
type: "table",
|