ss-component-new 1.3.78 → 1.3.80
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/{MTLLoader-Bkr7rTJW.js → MTLLoader-DcC1T2R-.js} +1 -1
- package/dist/{OrbitControls-goGQ9Lfs.js → OrbitControls-cVaf6msP.js} +1 -1
- package/dist/{URDFLoader-d1AzVQ5F.js → URDFLoader-CQ8lAP5N.js} +2 -2
- package/dist/{animationData-Sok20fOI.js → animationData-CTeDjcic.js} +2 -2
- package/dist/{array-CCxIPliQ.cjs → array-8_OZbk2v.cjs} +1 -1
- package/dist/{array-BkHYCyls.js → array-CEU-aUH0.js} +5 -5
- package/dist/{iconfont-CJoblcL2.js → iconfont-CEG9Z6Me.js} +2 -2
- package/dist/{index-Dld88iXe.js → index-6BIWxNNp.js} +1 -1
- package/dist/{index-M_FLMoBh.cjs → index-6WBJezE7.cjs} +1 -1
- package/dist/{index-BIbLwf-J.cjs → index-8Z4IsZZv.cjs} +1 -1
- package/dist/{index-CNLUhFlr.js → index-B7VdpJDk.js} +2 -2
- package/dist/{index-Bj7H-CHU.js → index-BCWnEKxi.js} +3 -3
- package/dist/{index-DmeZpSGM.js → index-BG8jt-Mj.js} +5 -5
- package/dist/{index-BQWGBLrD.cjs → index-BjWZWOgD.cjs} +1 -1
- package/dist/{index-KEXDCkKc.js → index-BlB_bACw.js} +560 -556
- package/dist/{index-CGpIY6jB.js → index-BqR1xrMr.js} +2052 -2047
- package/dist/{index-AHbRUQqE.cjs → index-Btrq5Gn1.cjs} +1 -1
- package/dist/{index-CIGrCpB_.js → index-BuBXET-y.js} +7 -7
- package/dist/{index-BVh3Ylgt.cjs → index-BzFG5s7n.cjs} +1 -1
- package/dist/index-C1Uh8jCE.js +12930 -0
- package/dist/index-CA1feDx6.cjs +1 -0
- package/dist/{index-CWY9HxrG.js → index-CA7UCEkN.js} +1 -1
- package/dist/{index-rCV_Ea-P.js → index-CGBpbw73.js} +1 -1
- package/dist/{index-BgKqiFcg.cjs → index-CKURWd0H.cjs} +1 -1
- package/dist/{index-t9jd4l9Q.js → index-C_cT03gR.js} +2 -2
- package/dist/{index-DaWzSNzm.js → index-ChQ73kWT.js} +1 -1
- package/dist/{index-JAXzKk2F.js → index-Clipar8b.js} +27 -27
- package/dist/index-CpRVq-cP.cjs +19 -0
- package/dist/{index-BysdHzB7.cjs → index-CqJbR7xA.cjs} +1 -1
- package/dist/{index-DLGxv8po.js → index-CqNjbufe.js} +3 -3
- package/dist/{index-ChiYyt8L.js → index-CutRrd-B.js} +2 -2
- package/dist/{index-DBh4mbmL.js → index-Cy0n69Vx.js} +874 -873
- package/dist/{index-DnMPqjrX.js → index-D-EzCf3J.js} +2 -2
- package/dist/{index-B7cNKrrU.cjs → index-DEoAMOtQ.cjs} +1 -1
- package/dist/{index-DsymuEzu.cjs → index-DFEHKFcd.cjs} +8 -8
- package/dist/{index-CST5bbhY.js → index-DL6GoCQo.js} +5 -5
- package/dist/{index-oJEY_fSN.js → index-DQFYF-JT.js} +1 -1
- package/dist/{index-DilZmA-l.cjs → index-DQuoAY25.cjs} +1 -1
- package/dist/{index-EtZh1qtq.js → index-DW_PZTFF.js} +1 -1
- package/dist/index-DYHt5wp1.cjs +11 -0
- package/dist/index-DZC_X4jJ.cjs +1 -0
- package/dist/{index-cKFeu5XW.cjs → index-DdwdkIUV.cjs} +1 -1
- package/dist/{index-BPmWhs0O.js → index-Dl3xjXba.js} +1 -1
- package/dist/index-DsNF-9jb.cjs +1 -0
- package/dist/{index-BRPLPxlx.cjs → index-DuEbn5K9.cjs} +1 -1
- package/dist/index-DzB3yFdI.js +466 -0
- package/dist/index-DzrSNzlY.js +19 -0
- package/dist/{index-G0nsjixB.js → index-FNrh3w2p.js} +1 -1
- package/dist/{index-BAelm3VG.cjs → index-GUrkhRB4.cjs} +1 -1
- package/dist/{index-CI8pzqx6.js → index-PL_DwseC.js} +5 -5
- package/dist/{index-DijK6RWK.js → index-PdNfeHpP.js} +6 -6
- package/dist/{index-XSETNP_T.js → index-eEPkBH_J.js} +1 -1
- package/dist/{index-2B1wHje0.cjs → index-vUyKT8gH.cjs} +1 -1
- package/dist/{index-5CdDKPk6.js → index-yhgYB2mn.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DDUoM--M.js → index.vue_vue_type_style_index_1_lang-B-i2NlLm.js} +4 -4
- package/dist/{main-DDI-kRzh.cjs → main-BGQ7ZbRn.cjs} +1 -1
- package/dist/{main-DKugsEJQ.js → main-vDQTmc2j.js} +4 -4
- package/dist/{menuIndex-BvSKgV5f.js → menuIndex-C-vOSUnB.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-BC_JZ1RV.cjs → threeModel-BFRYVMqO.cjs} +1 -1
- package/dist/{threeModel-BwWSWObs.js → threeModel-DFtMuwnG.js} +5 -5
- package/dist/{threePreview-CfyAicAQ.js → threePreview-zWwjj8dj.js} +4 -4
- package/dist/{threeSceneView-Dbr2KLMM.js → threeSceneView-DUBgUbZa.js} +10 -10
- package/dist/{threeSceneViewForCPMPIP-tPswynXd.js → threeSceneViewForCPMPIP-Bk0ih2-7.js} +8 -8
- package/dist/{threeTrackPathView-CZt3mY2y.js → threeTrackPathView-CoWPetyS.js} +4 -4
- package/dist/{threeViewerHost-D2qSyCw-.js → threeViewerHost-BaZw0MrX.js} +3 -3
- package/dist/{urdfTree-BCj0sPXo.js → urdfTree-CGAeYKn8.js} +1 -1
- package/dist/{workpieceTreePanel-CrpY18jo.js → workpieceTreePanel-BwtqOOAo.js} +4 -4
- package/package.json +1 -1
- package/dist/index-BFvOrU__.cjs +0 -19
- package/dist/index-BQ5LLLCI.cjs +0 -1
- package/dist/index-CM8Na0Nb.js +0 -12905
- package/dist/index-CjCqvZ07.cjs +0 -11
- package/dist/index-Cuw9DLEb.cjs +0 -1
- package/dist/index-D0aKEqnU.js +0 -476
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var eu = Object.defineProperty;
|
|
2
2
|
var au = (e, t, n) => t in e ? eu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var fl = (e, t, n) => au(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { computed as ze, getCurrentInstance as xt, inject as ln, unref as
|
|
4
|
+
import { computed as ze, getCurrentInstance as xt, inject as ln, unref as re, ref as M, onMounted as _l, watch as oa, toRef as At, onUnmounted as mr, shallowRef as Ct, nextTick as xa, defineComponent as kl, useAttrs as lu, useSlots as qo, createElementBlock as le, openBlock as E, normalizeStyle as Kl, normalizeClass as Je, createCommentVNode as xe, Fragment as $a, createElementVNode as j, renderSlot as gl, createBlock as Pe, withCtx as K, resolveDynamicComponent as Sl, mergeProps as sr, withModifiers as Ba, createVNode as X, toDisplayString as Qe, onBeforeUnmount as tn, provide as Sr, Text as nu, reactive as Vl, h as tu, watchEffect as ru, isRef as ou, onScopeDispose as su, markRaw as ir, toRefs as iu, resolveComponent as qe, Transition as uu, withDirectives as Xt, withKeys as ht, createTextVNode as fa, vShow as Qt, isVNode as Xo, render as Qo, renderList as dl, createSlots as du } from "vue";
|
|
5
5
|
import { S as uo, p as Zo, y as kr, z as Vo, h as co, A as cu, B as nn, C as fo, D as Ot, F as hn, G as fu, H as Tn, I as Tt, J as es, K as gn, N as pu, O as vu, P as hu, Q as gu, R as Jn, T as Xn, U as Qn, _ as Vn, V as yn, W as yu, X as bu, Y as mu, Z as Su, $ as en, a0 as _t, a1 as ur, a2 as wt, a3 as as, a4 as Cr, a5 as ku, a6 as dr, a7 as Cu, a8 as po, a9 as _u, aa as vo, ab as Eu, ac as Au, ad as Tu, ae as wu, af as xu, ag as Ou, ah as ho, ai as go, aj as Nu, E as ia, ak as yo, g as Nt, u as ls, e as $u, al as Lu, am as Zt, an as Mu, f as Bu, a as cn, ao as Iu, b as Ru } from "./index-K1n-pA4G.js";
|
|
6
|
-
import { aa as Pu, ab as Du, ac as Uu, d as En, p as An, ad as Fu, ae as qn, af as ju, g as cr, c as zu, b as Hu, ag as ql, m as Ku, u as Wu, ah as Yu, ai as Gu, aj as Ju, ak as qu, F as Vt, i as bo, l as Xu, D as mo, A as Qu, al as Zu, am as Vu, an as ed, S as ad, ao as ld } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-
|
|
7
|
-
import {
|
|
8
|
-
import { h as ud, d as wn, _ as So, j as dd, e as cd, E as ko, f as Co, u as _o } from "./index-
|
|
9
|
-
import { c as fd, l as pd } from "./index.vue_vue_type_style_index_1_lang-
|
|
6
|
+
import { aa as Pu, ab as Du, ac as Uu, d as En, p as An, ad as Fu, ae as qn, af as ju, g as cr, c as zu, b as Hu, ag as ql, m as Ku, u as Wu, ah as Yu, ai as Gu, aj as Ju, ak as qu, F as Vt, i as bo, l as Xu, D as mo, A as Qu, al as Zu, am as Vu, an as ed, S as ad, ao as ld } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js";
|
|
7
|
+
import { A as ns, C as nd, D as td, m as ts, k as rd, c as Re, d as rs, p as fn, s as kn, u as od, a as sd, b as id } from "./index-Clipar8b.js";
|
|
8
|
+
import { h as ud, d as wn, _ as So, j as dd, e as cd, E as ko, f as Co, u as _o } from "./index-Cy0n69Vx.js";
|
|
9
|
+
import { c as fd, l as pd } from "./index.vue_vue_type_style_index_1_lang-B-i2NlLm.js";
|
|
10
10
|
import { _ as rn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { s as Hl } from "./index-
|
|
12
|
-
import { a as vd, T as hd } from "./threeViewerHost-
|
|
11
|
+
import { s as Hl } from "./index-ChQ73kWT.js";
|
|
12
|
+
import { a as vd, T as hd } from "./threeViewerHost-BaZw0MrX.js";
|
|
13
13
|
import { b as Eo, p as gd } from "./index-D9hditHi.js";
|
|
14
|
-
import "./index-
|
|
15
|
-
import { i as os } from "./index-
|
|
14
|
+
import "./index-FNrh3w2p.js";
|
|
15
|
+
import { i as os } from "./index-DQFYF-JT.js";
|
|
16
16
|
import { i as Ao } from "./isString-D4Yi9bDE.js";
|
|
17
17
|
var To = uo ? uo.isConcatSpreadable : void 0;
|
|
18
18
|
function yd(e) {
|
|
@@ -134,18 +134,18 @@ function Oo(e, t = 1, n) {
|
|
|
134
134
|
var s;
|
|
135
135
|
hl || (hl = document.createElement("textarea"), document.body.appendChild(hl));
|
|
136
136
|
const { paddingSize: u, borderSize: p, boxSizing: g, contextStyle: r } = Ld(e);
|
|
137
|
-
r.forEach(([
|
|
137
|
+
r.forEach(([ue, Me]) => hl == null ? void 0 : hl.style.setProperty(ue, Me)), Object.entries(Nd).forEach(([ue, Me]) => hl == null ? void 0 : hl.style.setProperty(ue, Me, "important")), hl.value = e.value || e.placeholder || "";
|
|
138
138
|
let $ = hl.scrollHeight;
|
|
139
139
|
const F = {};
|
|
140
140
|
g === "border-box" ? $ = $ + p : g === "content-box" && ($ = $ - u), hl.value = "";
|
|
141
141
|
const ce = hl.scrollHeight - u;
|
|
142
142
|
if (fo(t)) {
|
|
143
|
-
let
|
|
144
|
-
g === "border-box" && (
|
|
143
|
+
let ue = ce * t;
|
|
144
|
+
g === "border-box" && (ue = ue + u + p), $ = Math.max(ue, $), F.minHeight = `${ue}px`;
|
|
145
145
|
}
|
|
146
146
|
if (fo(n)) {
|
|
147
|
-
let
|
|
148
|
-
g === "border-box" && (
|
|
147
|
+
let ue = ce * n;
|
|
148
|
+
g === "border-box" && (ue = ue + u + p), $ = Math.min(ue, $);
|
|
149
149
|
}
|
|
150
150
|
return F.height = `${$}px`, (s = hl.parentNode) == null || s.removeChild(hl), hl = void 0, F;
|
|
151
151
|
}
|
|
@@ -267,7 +267,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
267
267
|
current: number,
|
|
268
268
|
})`);
|
|
269
269
|
const n = vu();
|
|
270
|
-
return hu(() =>
|
|
270
|
+
return hu(() => re(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
|
|
271
271
|
}, _r = Symbol("formContextKey"), ss = Symbol("formItemContextKey"), is = () => {
|
|
272
272
|
const e = ln(_r, void 0), t = ln(ss, void 0);
|
|
273
273
|
return {
|
|
@@ -305,10 +305,10 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
305
305
|
});
|
|
306
306
|
}, ds = (e, t = {}) => {
|
|
307
307
|
const n = M(void 0), s = t.prop ? n : us("size"), u = t.global ? n : gu(), p = t.form ? { size: void 0 } : ln(_r, void 0), g = t.formItem ? { size: void 0 } : ln(ss, void 0);
|
|
308
|
-
return ze(() => s.value ||
|
|
308
|
+
return ze(() => s.value || re(e) || (g == null ? void 0 : g.size) || (p == null ? void 0 : p.size) || u.value || "");
|
|
309
309
|
}, $t = (e) => {
|
|
310
310
|
const t = us("disabled"), n = ln(_r, void 0);
|
|
311
|
-
return ze(() => t.value ||
|
|
311
|
+
return ze(() => t.value || re(e) || (n == null ? void 0 : n.disabled) || !1);
|
|
312
312
|
}, Hd = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', Kd = (e) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(e).position === "fixed" ? !1 : e.offsetParent !== null, No = (e) => Array.from(e.querySelectorAll(Hd)).filter((t) => Er(t) && Kd(t)), Er = (e) => {
|
|
313
313
|
if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
|
|
314
314
|
return !0;
|
|
@@ -333,25 +333,25 @@ function Wd(e, {
|
|
|
333
333
|
beforeBlur: s,
|
|
334
334
|
afterBlur: u
|
|
335
335
|
} = {}) {
|
|
336
|
-
const p = xt(), { emit: g } = p, r = Ct(), $ = $t(), F = M(!1), ce = (
|
|
337
|
-
Qn(t) && t(
|
|
338
|
-
},
|
|
336
|
+
const p = xt(), { emit: g } = p, r = Ct(), $ = $t(), F = M(!1), ce = (oe) => {
|
|
337
|
+
Qn(t) && t(oe) || F.value || (F.value = !0, g("focus", oe), n == null || n());
|
|
338
|
+
}, ue = (oe) => {
|
|
339
339
|
var A;
|
|
340
|
-
Qn(s) && s(
|
|
341
|
-
},
|
|
340
|
+
Qn(s) && s(oe) || oe.relatedTarget && ((A = r.value) != null && A.contains(oe.relatedTarget)) || (F.value = !1, g("blur", oe), u == null || u());
|
|
341
|
+
}, Me = (oe) => {
|
|
342
342
|
var A, V;
|
|
343
|
-
(A = r.value) != null && A.contains(document.activeElement) && r.value !== document.activeElement || Er(
|
|
343
|
+
(A = r.value) != null && A.contains(document.activeElement) && r.value !== document.activeElement || Er(oe.target) || $.value || (V = e.value) == null || V.focus();
|
|
344
344
|
};
|
|
345
|
-
return oa([r, $], ([
|
|
346
|
-
|
|
347
|
-
}), Jn(r, "focus", ce, !0), Jn(r, "blur",
|
|
348
|
-
const
|
|
349
|
-
|
|
345
|
+
return oa([r, $], ([oe, A]) => {
|
|
346
|
+
oe && (A ? oe.removeAttribute("tabindex") : oe.setAttribute("tabindex", "-1"));
|
|
347
|
+
}), Jn(r, "focus", ce, !0), Jn(r, "blur", ue, !0), Jn(r, "click", Me, !0), process.env.NODE_ENV === "test" && _l(() => {
|
|
348
|
+
const oe = Xn(e.value) ? e.value : document.querySelector("input,textarea");
|
|
349
|
+
oe && (Jn(oe, "focus", ce, !0), Jn(oe, "blur", ue, !0));
|
|
350
350
|
}), {
|
|
351
351
|
isFocused: F,
|
|
352
352
|
wrapperRef: r,
|
|
353
353
|
handleFocus: ce,
|
|
354
|
-
handleBlur:
|
|
354
|
+
handleBlur: ue
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
const Yd = (e) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);
|
|
@@ -425,25 +425,25 @@ const cs = "ElInput", qd = kl({
|
|
|
425
425
|
setup(e, { expose: t, emit: n }) {
|
|
426
426
|
const s = e, u = lu(), p = Ud(), g = qo(), r = ze(() => [
|
|
427
427
|
s.type === "textarea" ? V.b() : A.b(),
|
|
428
|
-
A.m(
|
|
429
|
-
A.is("disabled",
|
|
428
|
+
A.m(Me.value),
|
|
429
|
+
A.is("disabled", oe.value),
|
|
430
430
|
A.is("exceed", He.value),
|
|
431
431
|
{
|
|
432
432
|
[A.b("group")]: g.prepend || g.append,
|
|
433
433
|
[A.m("prefix")]: g.prefix || s.prefixIcon,
|
|
434
434
|
[A.m("suffix")]: g.suffix || s.suffixIcon || s.clearable || s.showPassword,
|
|
435
|
-
[A.bm("suffix", "password-clear")]:
|
|
435
|
+
[A.bm("suffix", "password-clear")]: $e.value && va.value,
|
|
436
436
|
[A.b("hidden")]: s.type === "hidden"
|
|
437
437
|
},
|
|
438
438
|
u.class
|
|
439
439
|
]), $ = ze(() => [
|
|
440
440
|
A.e("wrapper"),
|
|
441
441
|
A.is("focus", Ce.value)
|
|
442
|
-
]), { form: F, formItem: ce } = is(), { inputId:
|
|
442
|
+
]), { form: F, formItem: ce } = is(), { inputId: ue } = zd(s, {
|
|
443
443
|
formItemContext: ce
|
|
444
|
-
}),
|
|
444
|
+
}), Me = ds(), oe = $t(), A = yn("input"), V = yn("textarea"), Z = Ct(), ye = Ct(), ie = M(!1), z = M(!1), I = M(), G = Ct(s.inputStyle), H = ze(() => Z.value || ye.value), { wrapperRef: he, isFocused: Ce, handleFocus: Be, handleBlur: x } = Wd(H, {
|
|
445
445
|
beforeFocus() {
|
|
446
|
-
return
|
|
446
|
+
return oe.value;
|
|
447
447
|
},
|
|
448
448
|
afterBlur() {
|
|
449
449
|
var Se;
|
|
@@ -458,7 +458,7 @@ const cs = "ElInput", qd = kl({
|
|
|
458
458
|
s.inputStyle,
|
|
459
459
|
G.value,
|
|
460
460
|
{ resize: s.resize }
|
|
461
|
-
]), fe = ze(() => os(s.modelValue) ? "" : String(s.modelValue)),
|
|
461
|
+
]), fe = ze(() => os(s.modelValue) ? "" : String(s.modelValue)), $e = ze(() => s.clearable && !oe.value && !s.readonly && !!fe.value && (Ce.value || ie.value)), va = ze(() => s.showPassword && !oe.value && !!fe.value), Ae = ze(() => s.showWordLimit && !!s.maxlength && (s.type === "text" || s.type === "textarea") && !oe.value && !s.readonly && !s.showPassword), we = ze(() => fe.value.length), He = ze(() => !!Ae.value && we.value > Number(s.maxlength)), _a = ze(() => !!g.suffix || !!s.suffixIcon || $e.value || s.showPassword || Ae.value || !!ea.value && la.value), [Pa, Xa] = Jd(Z);
|
|
462
462
|
Su(ye, (Se) => {
|
|
463
463
|
if ($l(), !Ae.value || s.resize !== "both")
|
|
464
464
|
return;
|
|
@@ -520,9 +520,9 @@ const cs = "ElInput", qd = kl({
|
|
|
520
520
|
var Se;
|
|
521
521
|
return (Se = H.value) == null ? void 0 : Se.blur();
|
|
522
522
|
}, at = (Se) => {
|
|
523
|
-
|
|
524
|
-
},
|
|
525
|
-
|
|
523
|
+
ie.value = !1, n("mouseleave", Se);
|
|
524
|
+
}, de = (Se) => {
|
|
525
|
+
ie.value = !0, n("mouseenter", Se);
|
|
526
526
|
}, tl = (Se) => {
|
|
527
527
|
n("keydown", Se);
|
|
528
528
|
}, Qa = () => {
|
|
@@ -552,14 +552,14 @@ const cs = "ElInput", qd = kl({
|
|
|
552
552
|
resizeTextarea: Da
|
|
553
553
|
}), (Se, ua) => (E(), le("div", {
|
|
554
554
|
class: Je([
|
|
555
|
-
|
|
555
|
+
re(r),
|
|
556
556
|
{
|
|
557
|
-
[
|
|
558
|
-
[
|
|
557
|
+
[re(A).bm("group", "append")]: Se.$slots.append,
|
|
558
|
+
[re(A).bm("group", "prepend")]: Se.$slots.prepend
|
|
559
559
|
}
|
|
560
560
|
]),
|
|
561
|
-
style: Kl(
|
|
562
|
-
onMouseenter:
|
|
561
|
+
style: Kl(re(Ca)),
|
|
562
|
+
onMouseenter: de,
|
|
563
563
|
onMouseleave: at
|
|
564
564
|
}, [
|
|
565
565
|
xe(" input "),
|
|
@@ -567,27 +567,27 @@ const cs = "ElInput", qd = kl({
|
|
|
567
567
|
xe(" prepend slot "),
|
|
568
568
|
Se.$slots.prepend ? (E(), le("div", {
|
|
569
569
|
key: 0,
|
|
570
|
-
class: Je(
|
|
570
|
+
class: Je(re(A).be("group", "prepend"))
|
|
571
571
|
}, [
|
|
572
572
|
gl(Se.$slots, "prepend")
|
|
573
573
|
], 2)) : xe("v-if", !0),
|
|
574
574
|
j("div", {
|
|
575
575
|
ref_key: "wrapperRef",
|
|
576
576
|
ref: he,
|
|
577
|
-
class: Je(
|
|
577
|
+
class: Je(re($))
|
|
578
578
|
}, [
|
|
579
579
|
xe(" prefix slot "),
|
|
580
580
|
Se.$slots.prefix || Se.prefixIcon ? (E(), le("span", {
|
|
581
581
|
key: 0,
|
|
582
|
-
class: Je(
|
|
582
|
+
class: Je(re(A).e("prefix"))
|
|
583
583
|
}, [
|
|
584
584
|
j("span", {
|
|
585
|
-
class: Je(
|
|
585
|
+
class: Je(re(A).e("prefix-inner"))
|
|
586
586
|
}, [
|
|
587
587
|
gl(Se.$slots, "prefix"),
|
|
588
|
-
Se.prefixIcon ? (E(), Pe(
|
|
588
|
+
Se.prefixIcon ? (E(), Pe(re(en), {
|
|
589
589
|
key: 0,
|
|
590
|
-
class: Je(
|
|
590
|
+
class: Je(re(A).e("icon"))
|
|
591
591
|
}, {
|
|
592
592
|
default: K(() => [
|
|
593
593
|
(E(), Pe(Sl(Se.prefixIcon)))
|
|
@@ -597,15 +597,15 @@ const cs = "ElInput", qd = kl({
|
|
|
597
597
|
], 2)
|
|
598
598
|
], 2)) : xe("v-if", !0),
|
|
599
599
|
j("input", sr({
|
|
600
|
-
id:
|
|
600
|
+
id: re(ue),
|
|
601
601
|
ref_key: "input",
|
|
602
602
|
ref: Z,
|
|
603
|
-
class:
|
|
604
|
-
},
|
|
603
|
+
class: re(A).e("inner")
|
|
604
|
+
}, re(p), {
|
|
605
605
|
minlength: Se.minlength,
|
|
606
606
|
maxlength: Se.maxlength,
|
|
607
607
|
type: Se.showPassword ? z.value ? "text" : "password" : Se.type,
|
|
608
|
-
disabled:
|
|
608
|
+
disabled: re(oe),
|
|
609
609
|
readonly: Se.readonly,
|
|
610
610
|
autocomplete: Se.autocomplete,
|
|
611
611
|
tabindex: Se.tabindex,
|
|
@@ -615,26 +615,26 @@ const cs = "ElInput", qd = kl({
|
|
|
615
615
|
form: Se.form,
|
|
616
616
|
autofocus: Se.autofocus,
|
|
617
617
|
role: Se.containerRole,
|
|
618
|
-
onCompositionstart:
|
|
619
|
-
onCompositionupdate:
|
|
620
|
-
onCompositionend:
|
|
618
|
+
onCompositionstart: re(Ta),
|
|
619
|
+
onCompositionupdate: re(ba),
|
|
620
|
+
onCompositionend: re(Yl),
|
|
621
621
|
onInput: Wl,
|
|
622
622
|
onChange: On,
|
|
623
623
|
onKeydown: tl
|
|
624
624
|
}), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
|
|
625
625
|
xe(" suffix slot "),
|
|
626
|
-
|
|
626
|
+
re(_a) ? (E(), le("span", {
|
|
627
627
|
key: 1,
|
|
628
|
-
class: Je(
|
|
628
|
+
class: Je(re(A).e("suffix"))
|
|
629
629
|
}, [
|
|
630
630
|
j("span", {
|
|
631
|
-
class: Je(
|
|
631
|
+
class: Je(re(A).e("suffix-inner"))
|
|
632
632
|
}, [
|
|
633
|
-
!
|
|
633
|
+
!re($e) || !re(va) || !re(Ae) ? (E(), le($a, { key: 0 }, [
|
|
634
634
|
gl(Se.$slots, "suffix"),
|
|
635
|
-
Se.suffixIcon ? (E(), Pe(
|
|
635
|
+
Se.suffixIcon ? (E(), Pe(re(en), {
|
|
636
636
|
key: 0,
|
|
637
|
-
class: Je(
|
|
637
|
+
class: Je(re(A).e("icon"))
|
|
638
638
|
}, {
|
|
639
639
|
default: K(() => [
|
|
640
640
|
(E(), Pe(Sl(Se.suffixIcon)))
|
|
@@ -642,45 +642,45 @@ const cs = "ElInput", qd = kl({
|
|
|
642
642
|
_: 1
|
|
643
643
|
}, 8, ["class"])) : xe("v-if", !0)
|
|
644
644
|
], 64)) : xe("v-if", !0),
|
|
645
|
-
|
|
645
|
+
re($e) ? (E(), Pe(re(en), {
|
|
646
646
|
key: 1,
|
|
647
|
-
class: Je([
|
|
648
|
-
onMousedown: Ba(
|
|
647
|
+
class: Je([re(A).e("icon"), re(A).e("clear")]),
|
|
648
|
+
onMousedown: Ba(re(_t), ["prevent"]),
|
|
649
649
|
onClick: yl
|
|
650
650
|
}, {
|
|
651
651
|
default: K(() => [
|
|
652
|
-
X(
|
|
652
|
+
X(re(ur))
|
|
653
653
|
]),
|
|
654
654
|
_: 1
|
|
655
655
|
}, 8, ["class", "onMousedown"])) : xe("v-if", !0),
|
|
656
|
-
|
|
656
|
+
re(va) ? (E(), Pe(re(en), {
|
|
657
657
|
key: 2,
|
|
658
|
-
class: Je([
|
|
658
|
+
class: Je([re(A).e("icon"), re(A).e("password")]),
|
|
659
659
|
onClick: on
|
|
660
660
|
}, {
|
|
661
661
|
default: K(() => [
|
|
662
|
-
(E(), Pe(Sl(
|
|
662
|
+
(E(), Pe(Sl(re(U))))
|
|
663
663
|
]),
|
|
664
664
|
_: 1
|
|
665
665
|
}, 8, ["class"])) : xe("v-if", !0),
|
|
666
|
-
|
|
666
|
+
re(Ae) ? (E(), le("span", {
|
|
667
667
|
key: 3,
|
|
668
|
-
class: Je(
|
|
668
|
+
class: Je(re(A).e("count"))
|
|
669
669
|
}, [
|
|
670
670
|
j("span", {
|
|
671
|
-
class: Je(
|
|
672
|
-
}, Qe(
|
|
671
|
+
class: Je(re(A).e("count-inner"))
|
|
672
|
+
}, Qe(re(we)) + " / " + Qe(Se.maxlength), 3)
|
|
673
673
|
], 2)) : xe("v-if", !0),
|
|
674
|
-
|
|
674
|
+
re(ea) && re(Ia) && re(la) ? (E(), Pe(re(en), {
|
|
675
675
|
key: 4,
|
|
676
676
|
class: Je([
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
677
|
+
re(A).e("icon"),
|
|
678
|
+
re(A).e("validateIcon"),
|
|
679
|
+
re(A).is("loading", re(ea) === "validating")
|
|
680
680
|
])
|
|
681
681
|
}, {
|
|
682
682
|
default: K(() => [
|
|
683
|
-
(E(), Pe(Sl(
|
|
683
|
+
(E(), Pe(Sl(re(Ia))))
|
|
684
684
|
]),
|
|
685
685
|
_: 1
|
|
686
686
|
}, 8, ["class"])) : xe("v-if", !0)
|
|
@@ -690,45 +690,45 @@ const cs = "ElInput", qd = kl({
|
|
|
690
690
|
xe(" append slot "),
|
|
691
691
|
Se.$slots.append ? (E(), le("div", {
|
|
692
692
|
key: 1,
|
|
693
|
-
class: Je(
|
|
693
|
+
class: Je(re(A).be("group", "append"))
|
|
694
694
|
}, [
|
|
695
695
|
gl(Se.$slots, "append")
|
|
696
696
|
], 2)) : xe("v-if", !0)
|
|
697
697
|
], 64)) : (E(), le($a, { key: 1 }, [
|
|
698
698
|
xe(" textarea "),
|
|
699
699
|
j("textarea", sr({
|
|
700
|
-
id:
|
|
700
|
+
id: re(ue),
|
|
701
701
|
ref_key: "textarea",
|
|
702
702
|
ref: ye,
|
|
703
|
-
class: [
|
|
704
|
-
},
|
|
703
|
+
class: [re(V).e("inner"), re(A).is("focus", re(Ce))]
|
|
704
|
+
}, re(p), {
|
|
705
705
|
minlength: Se.minlength,
|
|
706
706
|
maxlength: Se.maxlength,
|
|
707
707
|
tabindex: Se.tabindex,
|
|
708
|
-
disabled:
|
|
708
|
+
disabled: re(oe),
|
|
709
709
|
readonly: Se.readonly,
|
|
710
710
|
autocomplete: Se.autocomplete,
|
|
711
|
-
style:
|
|
711
|
+
style: re(Fe),
|
|
712
712
|
"aria-label": Se.ariaLabel,
|
|
713
713
|
placeholder: Se.placeholder,
|
|
714
714
|
form: Se.form,
|
|
715
715
|
autofocus: Se.autofocus,
|
|
716
716
|
rows: Se.rows,
|
|
717
717
|
role: Se.containerRole,
|
|
718
|
-
onCompositionstart:
|
|
719
|
-
onCompositionupdate:
|
|
720
|
-
onCompositionend:
|
|
718
|
+
onCompositionstart: re(Ta),
|
|
719
|
+
onCompositionupdate: re(ba),
|
|
720
|
+
onCompositionend: re(Yl),
|
|
721
721
|
onInput: Wl,
|
|
722
|
-
onFocus:
|
|
723
|
-
onBlur:
|
|
722
|
+
onFocus: re(Be),
|
|
723
|
+
onBlur: re(x),
|
|
724
724
|
onChange: On,
|
|
725
725
|
onKeydown: tl
|
|
726
726
|
}), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "role", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
|
|
727
|
-
|
|
727
|
+
re(Ae) ? (E(), le("span", {
|
|
728
728
|
key: 0,
|
|
729
729
|
style: Kl(I.value),
|
|
730
|
-
class: Je(
|
|
731
|
-
}, Qe(
|
|
730
|
+
class: Je(re(A).e("count"))
|
|
731
|
+
}, Qe(re(we)) + " / " + Qe(Se.maxlength), 7)) : xe("v-if", !0)
|
|
732
732
|
], 64))
|
|
733
733
|
], 38));
|
|
734
734
|
}
|
|
@@ -863,7 +863,7 @@ const Do = (e) => {
|
|
|
863
863
|
}, r = (A) => {
|
|
864
864
|
if (!e.loop && !e.trapped || g.paused)
|
|
865
865
|
return;
|
|
866
|
-
const { code: V, altKey: Z, ctrlKey: ye, metaKey:
|
|
866
|
+
const { code: V, altKey: Z, ctrlKey: ye, metaKey: ie, currentTarget: z, shiftKey: I } = A, { loop: G } = e, H = V === Cr.tab && !Z && !ye && !ie, he = document.activeElement;
|
|
867
867
|
if (H && he) {
|
|
868
868
|
const Ce = z, [Be, x] = nc(Ce);
|
|
869
869
|
if (Be && x) {
|
|
@@ -892,18 +892,18 @@ const Do = (e) => {
|
|
|
892
892
|
}), oa(() => e.focusTrapEl, (A) => {
|
|
893
893
|
A && (n.value = A);
|
|
894
894
|
}, { immediate: !0 }), oa([n], ([A], [V]) => {
|
|
895
|
-
A && (A.addEventListener("keydown", r), A.addEventListener("focusin", ce), A.addEventListener("focusout",
|
|
895
|
+
A && (A.addEventListener("keydown", r), A.addEventListener("focusin", ce), A.addEventListener("focusout", ue)), V && (V.removeEventListener("keydown", r), V.removeEventListener("focusin", ce), V.removeEventListener("focusout", ue));
|
|
896
896
|
});
|
|
897
897
|
const $ = (A) => {
|
|
898
898
|
t(Lo, A);
|
|
899
899
|
}, F = (A) => t(Mo, A), ce = (A) => {
|
|
900
|
-
const V =
|
|
900
|
+
const V = re(n);
|
|
901
901
|
if (!V)
|
|
902
902
|
return;
|
|
903
|
-
const Z = A.target, ye = A.relatedTarget,
|
|
904
|
-
e.trapped || ye && V.contains(ye) || (s = ye),
|
|
905
|
-
},
|
|
906
|
-
const V =
|
|
903
|
+
const Z = A.target, ye = A.relatedTarget, ie = Z && V.contains(Z);
|
|
904
|
+
e.trapped || ye && V.contains(ye) || (s = ye), ie && t("focusin", A), !g.paused && e.trapped && (ie ? u = Z : Ql(u, !0));
|
|
905
|
+
}, ue = (A) => {
|
|
906
|
+
const V = re(n);
|
|
907
907
|
if (!(g.paused || !V))
|
|
908
908
|
if (e.trapped) {
|
|
909
909
|
const Z = A.relatedTarget;
|
|
@@ -920,23 +920,23 @@ const Do = (e) => {
|
|
|
920
920
|
Z && V.contains(Z) || t("focusout", A);
|
|
921
921
|
}
|
|
922
922
|
};
|
|
923
|
-
async function
|
|
923
|
+
async function Me() {
|
|
924
924
|
await xa();
|
|
925
|
-
const A =
|
|
925
|
+
const A = re(n);
|
|
926
926
|
if (A) {
|
|
927
927
|
Ro.push(g);
|
|
928
928
|
const V = A.contains(document.activeElement) ? s : document.activeElement;
|
|
929
929
|
if (s = V, !A.contains(V)) {
|
|
930
930
|
const ye = new Event(er, $o);
|
|
931
931
|
A.addEventListener(er, $), A.dispatchEvent(ye), ye.defaultPrevented || xa(() => {
|
|
932
|
-
let
|
|
933
|
-
hn(
|
|
932
|
+
let ie = e.focusStartEl;
|
|
933
|
+
hn(ie) || (Ql(ie), document.activeElement !== ie && (ie = "first")), ie === "first" && oc(fs(A), !0), (document.activeElement === V || ie === "container") && Ql(A);
|
|
934
934
|
});
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
const A =
|
|
938
|
+
function oe() {
|
|
939
|
+
const A = re(n);
|
|
940
940
|
if (A) {
|
|
941
941
|
A.removeEventListener(er, $);
|
|
942
942
|
const V = new CustomEvent(ar, {
|
|
@@ -949,11 +949,11 @@ const Do = (e) => {
|
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
return _l(() => {
|
|
952
|
-
e.trapped &&
|
|
953
|
-
A ?
|
|
952
|
+
e.trapped && Me(), oa(() => e.trapped, (A) => {
|
|
953
|
+
A ? Me() : oe();
|
|
954
954
|
});
|
|
955
955
|
}), tn(() => {
|
|
956
|
-
e.trapped &&
|
|
956
|
+
e.trapped && oe(), n.value && (n.value.removeEventListener("keydown", r), n.value.removeEventListener("focusin", ce), n.value.removeEventListener("focusout", ue), n.value = void 0);
|
|
957
957
|
}), {
|
|
958
958
|
onKeydown: r
|
|
959
959
|
};
|
|
@@ -964,7 +964,7 @@ function cc(e, t, n, s, u, p) {
|
|
|
964
964
|
}
|
|
965
965
|
var fc = /* @__PURE__ */ Vn(dc, [["render", cc], ["__file", "focus-trap.vue"]]);
|
|
966
966
|
const ps = Symbol("buttonGroupContextKey"), pc = ({ from: e, replacement: t, scope: n, version: s, ref: u, type: p = "API" }, g) => {
|
|
967
|
-
oa(() =>
|
|
967
|
+
oa(() => re(g), (r) => {
|
|
968
968
|
r && gn(n, `[${p}] ${e} is about to be deprecated in version ${s}, please use ${t} instead.
|
|
969
969
|
For more detail, please visit: ${u}
|
|
970
970
|
`);
|
|
@@ -983,15 +983,15 @@ For more detail, please visit: ${u}
|
|
|
983
983
|
var Z;
|
|
984
984
|
return e.type || (n == null ? void 0 : n.type) || ((Z = s.value) == null ? void 0 : Z.type) || "";
|
|
985
985
|
}), ce = ze(() => {
|
|
986
|
-
var Z, ye,
|
|
987
|
-
return (
|
|
988
|
-
}),
|
|
989
|
-
var Z, ye,
|
|
990
|
-
return (
|
|
991
|
-
}),
|
|
992
|
-
var Z, ye,
|
|
993
|
-
return (
|
|
994
|
-
}),
|
|
986
|
+
var Z, ye, ie;
|
|
987
|
+
return (ie = (ye = e.autoInsertSpace) != null ? ye : (Z = s.value) == null ? void 0 : Z.autoInsertSpace) != null ? ie : !1;
|
|
988
|
+
}), ue = ze(() => {
|
|
989
|
+
var Z, ye, ie;
|
|
990
|
+
return (ie = (ye = e.plain) != null ? ye : (Z = s.value) == null ? void 0 : Z.plain) != null ? ie : !1;
|
|
991
|
+
}), Me = ze(() => {
|
|
992
|
+
var Z, ye, ie;
|
|
993
|
+
return (ie = (ye = e.round) != null ? ye : (Z = s.value) == null ? void 0 : Z.round) != null ? ie : !1;
|
|
994
|
+
}), oe = ze(() => e.tag === "button" ? {
|
|
995
995
|
ariaDisabled: g.value || e.loading,
|
|
996
996
|
disabled: g.value || e.loading,
|
|
997
997
|
autofocus: e.autofocus,
|
|
@@ -1000,9 +1000,9 @@ For more detail, please visit: ${u}
|
|
|
1000
1000
|
var Z;
|
|
1001
1001
|
const ye = (Z = $.default) == null ? void 0 : Z.call($);
|
|
1002
1002
|
if (ce.value && (ye == null ? void 0 : ye.length) === 1) {
|
|
1003
|
-
const
|
|
1004
|
-
if ((
|
|
1005
|
-
const z =
|
|
1003
|
+
const ie = ye[0];
|
|
1004
|
+
if ((ie == null ? void 0 : ie.type) === nu) {
|
|
1005
|
+
const z = ie.children;
|
|
1006
1006
|
return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(z.trim());
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
@@ -1013,9 +1013,9 @@ For more detail, please visit: ${u}
|
|
|
1013
1013
|
_size: p,
|
|
1014
1014
|
_type: F,
|
|
1015
1015
|
_ref: r,
|
|
1016
|
-
_props:
|
|
1017
|
-
_plain:
|
|
1018
|
-
_round:
|
|
1016
|
+
_props: oe,
|
|
1017
|
+
_plain: ue,
|
|
1018
|
+
_round: Me,
|
|
1019
1019
|
shouldAddSpace: A,
|
|
1020
1020
|
handleClick: (Z) => {
|
|
1021
1021
|
if (g.value || e.loading) {
|
|
@@ -1169,8 +1169,8 @@ function Fo(e, t, n) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
function Cc(e, t, n) {
|
|
1171
1171
|
e = nl(e, 360) * 6, t = nl(t, 100), n = nl(n, 100);
|
|
1172
|
-
var s = Math.floor(e), u = e - s, p = n * (1 - t), g = n * (1 - u * t), r = n * (1 - (1 - u) * t), $ = s % 6, F = [n, g, p, p, r, n][$], ce = [r, n, n, g, p, p][$],
|
|
1173
|
-
return { r: F * 255, g: ce * 255, b:
|
|
1172
|
+
var s = Math.floor(e), u = e - s, p = n * (1 - t), g = n * (1 - u * t), r = n * (1 - (1 - u) * t), $ = s % 6, F = [n, g, p, p, r, n][$], ce = [r, n, n, g, p, p][$], ue = [p, p, r, n, n, g][$];
|
|
1173
|
+
return { r: F * 255, g: ce * 255, b: ue * 255 };
|
|
1174
1174
|
}
|
|
1175
1175
|
function jo(e, t, n, s) {
|
|
1176
1176
|
var u = [
|
|
@@ -1647,9 +1647,9 @@ const Lc = kl({
|
|
|
1647
1647
|
_type: $,
|
|
1648
1648
|
_disabled: F,
|
|
1649
1649
|
_props: ce,
|
|
1650
|
-
_plain:
|
|
1651
|
-
_round:
|
|
1652
|
-
shouldAddSpace:
|
|
1650
|
+
_plain: ue,
|
|
1651
|
+
_round: Me,
|
|
1652
|
+
shouldAddSpace: oe,
|
|
1653
1653
|
handleClick: A
|
|
1654
1654
|
} = vc(s, n), V = ze(() => [
|
|
1655
1655
|
p.b(),
|
|
@@ -1657,8 +1657,8 @@ const Lc = kl({
|
|
|
1657
1657
|
p.m(r.value),
|
|
1658
1658
|
p.is("disabled", F.value),
|
|
1659
1659
|
p.is("loading", s.loading),
|
|
1660
|
-
p.is("plain",
|
|
1661
|
-
p.is("round",
|
|
1660
|
+
p.is("plain", ue.value),
|
|
1661
|
+
p.is("round", Me.value),
|
|
1662
1662
|
p.is("circle", s.circle),
|
|
1663
1663
|
p.is("text", s.text),
|
|
1664
1664
|
p.is("link", s.link),
|
|
@@ -1669,27 +1669,27 @@ const Lc = kl({
|
|
|
1669
1669
|
size: r,
|
|
1670
1670
|
type: $,
|
|
1671
1671
|
disabled: F,
|
|
1672
|
-
shouldAddSpace:
|
|
1672
|
+
shouldAddSpace: oe
|
|
1673
1673
|
}), (Z, ye) => (E(), Pe(Sl(Z.tag), sr({
|
|
1674
1674
|
ref_key: "_ref",
|
|
1675
1675
|
ref: g
|
|
1676
|
-
},
|
|
1677
|
-
class:
|
|
1678
|
-
style:
|
|
1679
|
-
onClick:
|
|
1676
|
+
}, re(ce), {
|
|
1677
|
+
class: re(V),
|
|
1678
|
+
style: re(u),
|
|
1679
|
+
onClick: re(A)
|
|
1680
1680
|
}), {
|
|
1681
1681
|
default: K(() => [
|
|
1682
1682
|
Z.loading ? (E(), le($a, { key: 0 }, [
|
|
1683
|
-
Z.$slots.loading ? gl(Z.$slots, "loading", { key: 0 }) : (E(), Pe(
|
|
1683
|
+
Z.$slots.loading ? gl(Z.$slots, "loading", { key: 0 }) : (E(), Pe(re(en), {
|
|
1684
1684
|
key: 1,
|
|
1685
|
-
class: Je(
|
|
1685
|
+
class: Je(re(p).is("loading"))
|
|
1686
1686
|
}, {
|
|
1687
1687
|
default: K(() => [
|
|
1688
1688
|
(E(), Pe(Sl(Z.loadingIcon)))
|
|
1689
1689
|
]),
|
|
1690
1690
|
_: 1
|
|
1691
1691
|
}, 8, ["class"]))
|
|
1692
|
-
], 64)) : Z.icon || Z.$slots.icon ? (E(), Pe(
|
|
1692
|
+
], 64)) : Z.icon || Z.$slots.icon ? (E(), Pe(re(en), { key: 1 }, {
|
|
1693
1693
|
default: K(() => [
|
|
1694
1694
|
Z.icon ? (E(), Pe(Sl(Z.icon), { key: 0 })) : gl(Z.$slots, "icon", { key: 1 })
|
|
1695
1695
|
]),
|
|
@@ -1697,7 +1697,7 @@ const Lc = kl({
|
|
|
1697
1697
|
})) : xe("v-if", !0),
|
|
1698
1698
|
Z.$slots.default ? (E(), le("span", {
|
|
1699
1699
|
key: 2,
|
|
1700
|
-
class: Je({ [
|
|
1700
|
+
class: Je({ [re(p).em("text", "expand")]: re(oe) })
|
|
1701
1701
|
}, [
|
|
1702
1702
|
gl(Z.$slots, "default")
|
|
1703
1703
|
], 2)) : xe("v-if", !0)
|
|
@@ -1723,7 +1723,7 @@ const Ic = {
|
|
|
1723
1723
|
}));
|
|
1724
1724
|
const n = yn("button");
|
|
1725
1725
|
return (s, u) => (E(), le("div", {
|
|
1726
|
-
class: Je(
|
|
1726
|
+
class: Je(re(n).b("group"))
|
|
1727
1727
|
}, [
|
|
1728
1728
|
gl(s.$slots, "default")
|
|
1729
1729
|
], 2));
|
|
@@ -1798,14 +1798,14 @@ const Hc = zc, Kc = (e, t, n, s) => {
|
|
|
1798
1798
|
const u = {
|
|
1799
1799
|
offsetX: 0,
|
|
1800
1800
|
offsetY: 0
|
|
1801
|
-
}, p = (
|
|
1801
|
+
}, p = (ue, Me) => {
|
|
1802
1802
|
if (e.value) {
|
|
1803
|
-
const { offsetX:
|
|
1804
|
-
s != null && s.value || (
|
|
1803
|
+
const { offsetX: oe, offsetY: A } = u, V = e.value.getBoundingClientRect(), Z = V.left, ye = V.top, ie = V.width, z = V.height, I = document.documentElement.clientWidth, G = document.documentElement.clientHeight, H = -Z + oe, he = -ye + A, Ce = I - Z - ie + oe, Be = G - ye - (z < G ? z : 0) + A;
|
|
1804
|
+
s != null && s.value || (ue = Math.min(Math.max(ue, H), Ce), Me = Math.min(Math.max(Me, he), Be)), u.offsetX = ue, u.offsetY = Me, e.value.style.transform = `translate(${po(ue)}, ${po(Me)})`;
|
|
1805
1805
|
}
|
|
1806
|
-
}, g = (
|
|
1807
|
-
const
|
|
1808
|
-
const z = A +
|
|
1806
|
+
}, g = (ue) => {
|
|
1807
|
+
const Me = ue.clientX, oe = ue.clientY, { offsetX: A, offsetY: V } = u, Z = (ie) => {
|
|
1808
|
+
const z = A + ie.clientX - Me, I = V + ie.clientY - oe;
|
|
1809
1809
|
p(z, I);
|
|
1810
1810
|
}, ye = () => {
|
|
1811
1811
|
document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", ye);
|
|
@@ -1818,8 +1818,8 @@ const Hc = zc, Kc = (e, t, n, s) => {
|
|
|
1818
1818
|
}, F = () => {
|
|
1819
1819
|
u.offsetX = 0, u.offsetY = 0, e.value && (e.value.style.transform = "");
|
|
1820
1820
|
}, ce = () => {
|
|
1821
|
-
const { offsetX:
|
|
1822
|
-
p(
|
|
1821
|
+
const { offsetX: ue, offsetY: Me } = u;
|
|
1822
|
+
p(ue, Me);
|
|
1823
1823
|
};
|
|
1824
1824
|
return _l(() => {
|
|
1825
1825
|
ru(() => {
|
|
@@ -1985,17 +1985,17 @@ const Hc = zc, Kc = (e, t, n, s) => {
|
|
|
1985
1985
|
}), ce = ze(() => {
|
|
1986
1986
|
const Fe = F.type;
|
|
1987
1987
|
return { [u.bm("icon", Fe)]: Fe && ho[Fe] };
|
|
1988
|
-
}),
|
|
1988
|
+
}), ue = vr(), Me = vr(), oe = ze(() => {
|
|
1989
1989
|
const Fe = F.type;
|
|
1990
1990
|
return F.icon || Fe && ho[Fe] || "";
|
|
1991
|
-
}), A = ze(() => !!F.message), V = M(), Z = M(), ye = M(),
|
|
1991
|
+
}), A = ze(() => !!F.message), V = M(), Z = M(), ye = M(), ie = M(), z = M(), I = ze(() => F.confirmButtonClass);
|
|
1992
1992
|
oa(() => F.inputValue, async (Fe) => {
|
|
1993
1993
|
await xa(), e.boxType === "prompt" && Fe && ea();
|
|
1994
1994
|
}, { immediate: !0 }), oa(() => $.value, (Fe) => {
|
|
1995
|
-
var fe,
|
|
1996
|
-
Fe && (e.boxType !== "prompt" && (F.autofocus ? ye.value = (
|
|
1995
|
+
var fe, $e;
|
|
1996
|
+
Fe && (e.boxType !== "prompt" && (F.autofocus ? ye.value = ($e = (fe = z.value) == null ? void 0 : fe.$el) != null ? $e : V.value : ye.value = V.value), F.zIndex = r()), e.boxType === "prompt" && (Fe ? xa().then(() => {
|
|
1997
1997
|
var va;
|
|
1998
|
-
|
|
1998
|
+
ie.value && ie.value.$el && (F.autofocus ? ye.value = (va = Ia()) != null ? va : V.value : ye.value = V.value);
|
|
1999
1999
|
}) : (F.editorErrorMessage = "", F.validateError = !1));
|
|
2000
2000
|
});
|
|
2001
2001
|
const G = ze(() => e.draggable), H = ze(() => e.overflow);
|
|
@@ -2024,18 +2024,18 @@ const Hc = zc, Kc = (e, t, n, s) => {
|
|
|
2024
2024
|
return F.editorErrorMessage = F.inputErrorMessage || g("el.messagebox.error"), F.validateError = !0, !1;
|
|
2025
2025
|
const fe = F.inputValidator;
|
|
2026
2026
|
if (Qn(fe)) {
|
|
2027
|
-
const
|
|
2028
|
-
if (
|
|
2027
|
+
const $e = fe(F.inputValue);
|
|
2028
|
+
if ($e === !1)
|
|
2029
2029
|
return F.editorErrorMessage = F.inputErrorMessage || g("el.messagebox.error"), F.validateError = !0, !1;
|
|
2030
|
-
if (hn(
|
|
2031
|
-
return F.editorErrorMessage =
|
|
2030
|
+
if (hn($e))
|
|
2031
|
+
return F.editorErrorMessage = $e, F.validateError = !0, !1;
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
return F.editorErrorMessage = "", F.validateError = !1, !0;
|
|
2035
2035
|
}, Ia = () => {
|
|
2036
2036
|
var Fe, fe;
|
|
2037
|
-
const
|
|
2038
|
-
return (fe =
|
|
2037
|
+
const $e = (Fe = ie.value) == null ? void 0 : Fe.$refs;
|
|
2038
|
+
return (fe = $e == null ? void 0 : $e.input) != null ? fe : $e == null ? void 0 : $e.textarea;
|
|
2039
2039
|
}, U = () => {
|
|
2040
2040
|
la("close");
|
|
2041
2041
|
}, Ca = () => {
|
|
@@ -2048,15 +2048,15 @@ const Hc = zc, Kc = (e, t, n, s) => {
|
|
|
2048
2048
|
visible: $,
|
|
2049
2049
|
hasMessage: A,
|
|
2050
2050
|
typeClass: ce,
|
|
2051
|
-
contentId:
|
|
2052
|
-
inputId:
|
|
2051
|
+
contentId: ue,
|
|
2052
|
+
inputId: Me,
|
|
2053
2053
|
btnSize: p,
|
|
2054
|
-
iconComponent:
|
|
2054
|
+
iconComponent: oe,
|
|
2055
2055
|
confirmButtonClasses: I,
|
|
2056
2056
|
rootRef: V,
|
|
2057
2057
|
focusStartRef: ye,
|
|
2058
2058
|
headerRef: Z,
|
|
2059
|
-
inputRef:
|
|
2059
|
+
inputRef: ie,
|
|
2060
2060
|
confirmRef: z,
|
|
2061
2061
|
doClose: he,
|
|
2062
2062
|
handleClose: U,
|
|
@@ -2072,7 +2072,7 @@ function qc(e, t, n, s, u, p) {
|
|
|
2072
2072
|
const g = qe("el-icon"), r = qe("el-input"), $ = qe("el-button"), F = qe("el-focus-trap"), ce = qe("el-overlay");
|
|
2073
2073
|
return E(), Pe(uu, {
|
|
2074
2074
|
name: "fade-in-linear",
|
|
2075
|
-
onAfterLeave: (
|
|
2075
|
+
onAfterLeave: (ue) => e.$emit("vanish"),
|
|
2076
2076
|
persisted: ""
|
|
2077
2077
|
}, {
|
|
2078
2078
|
default: K(() => [
|
|
@@ -2137,8 +2137,8 @@ function qc(e, t, n, s, u, p) {
|
|
|
2137
2137
|
type: "button",
|
|
2138
2138
|
class: Je(e.ns.e("headerbtn")),
|
|
2139
2139
|
"aria-label": e.t("el.messagebox.close"),
|
|
2140
|
-
onClick: (
|
|
2141
|
-
onKeydown: ht(Ba((
|
|
2140
|
+
onClick: (ue) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"),
|
|
2141
|
+
onKeydown: ht(Ba((ue) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"])
|
|
2142
2142
|
}, [
|
|
2143
2143
|
X(g, {
|
|
2144
2144
|
class: Je(e.ns.e("close"))
|
|
@@ -2194,7 +2194,7 @@ function qc(e, t, n, s, u, p) {
|
|
|
2194
2194
|
id: e.inputId,
|
|
2195
2195
|
ref: "inputRef",
|
|
2196
2196
|
modelValue: e.inputValue,
|
|
2197
|
-
"onUpdate:modelValue": (
|
|
2197
|
+
"onUpdate:modelValue": (ue) => e.inputValue = ue,
|
|
2198
2198
|
type: e.inputType,
|
|
2199
2199
|
placeholder: e.inputPlaceholder,
|
|
2200
2200
|
"aria-invalid": e.validateError,
|
|
@@ -2221,8 +2221,8 @@ function qc(e, t, n, s, u, p) {
|
|
|
2221
2221
|
class: Je([e.cancelButtonClass]),
|
|
2222
2222
|
round: e.roundButton,
|
|
2223
2223
|
size: e.btnSize,
|
|
2224
|
-
onClick: (
|
|
2225
|
-
onKeydown: ht(Ba((
|
|
2224
|
+
onClick: (ue) => e.handleAction("cancel"),
|
|
2225
|
+
onKeydown: ht(Ba((ue) => e.handleAction("cancel"), ["prevent"]), ["enter"])
|
|
2226
2226
|
}, {
|
|
2227
2227
|
default: K(() => [
|
|
2228
2228
|
fa(Qe(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
|
|
@@ -2238,8 +2238,8 @@ function qc(e, t, n, s, u, p) {
|
|
|
2238
2238
|
round: e.roundButton,
|
|
2239
2239
|
disabled: e.confirmButtonDisabled,
|
|
2240
2240
|
size: e.btnSize,
|
|
2241
|
-
onClick: (
|
|
2242
|
-
onKeydown: ht(Ba((
|
|
2241
|
+
onClick: (ue) => e.handleAction("confirm"),
|
|
2242
|
+
onKeydown: ht(Ba((ue) => e.handleAction("confirm"), ["prevent"]), ["enter"])
|
|
2243
2243
|
}, {
|
|
2244
2244
|
default: K(() => [
|
|
2245
2245
|
fa(Qe(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
|
|
@@ -2415,8 +2415,8 @@ function tf(e, t, n, s = {}) {
|
|
|
2415
2415
|
// 淡黄色填充
|
|
2416
2416
|
strokeWidth: g = 2,
|
|
2417
2417
|
fillOpacity: r = 0.2
|
|
2418
|
-
} = s, $ = e.getBoundingClientRect(), F = t.getBoundingClientRect(), ce = t.naturalWidth,
|
|
2419
|
-
const he = ye + G * V, Ce =
|
|
2418
|
+
} = s, $ = e.getBoundingClientRect(), F = t.getBoundingClientRect(), ce = t.naturalWidth, ue = t.naturalHeight, Me = F.width / ce, oe = F.height / ue, A = Math.min(Me, oe), V = ce * A, Z = ue * A, ye = ($.width - V) / 2, ie = ($.height - Z) / 2, z = n.map(([G, H]) => {
|
|
2419
|
+
const he = ye + G * V, Ce = ie + H * Z;
|
|
2420
2420
|
return { x: he, y: Ce };
|
|
2421
2421
|
});
|
|
2422
2422
|
u.clearRect(0, 0, e.width, e.height), u.beginPath(), u.moveTo(z[0].x, z[0].y);
|
|
@@ -2477,7 +2477,7 @@ const rf = {
|
|
|
2477
2477
|
get: () => n.visible,
|
|
2478
2478
|
set: (Ae) => s("update:visible", Ae)
|
|
2479
2479
|
});
|
|
2480
|
-
let p = !1, g = "", r = 0, $ = 0, F = 0, ce = 0,
|
|
2480
|
+
let p = !1, g = "", r = 0, $ = 0, F = 0, ce = 0, ue = 0, Me = 0, oe = null;
|
|
2481
2481
|
const A = (Ae) => {
|
|
2482
2482
|
var He, _a;
|
|
2483
2483
|
const we = (_a = (He = Ae == null ? void 0 : Ae.target) == null ? void 0 : He.closest) == null ? void 0 : _a.call(He, ".el-dialog");
|
|
@@ -2500,26 +2500,26 @@ const rf = {
|
|
|
2500
2500
|
}, ye = (Ae, we) => {
|
|
2501
2501
|
const He = A(Ae);
|
|
2502
2502
|
if (!He) return;
|
|
2503
|
-
p = !0,
|
|
2503
|
+
p = !0, oe = He, g = we, r = Ae.clientX, $ = Ae.clientY;
|
|
2504
2504
|
const _a = He.getBoundingClientRect();
|
|
2505
2505
|
F = _a.width, ce = _a.height;
|
|
2506
2506
|
const Pa = window.getComputedStyle(He), { tx: Xa, ty: Da } = V(Pa.transform);
|
|
2507
|
-
|
|
2508
|
-
},
|
|
2509
|
-
if (!p || !
|
|
2507
|
+
ue = Xa, Me = Da, document.addEventListener("mousemove", ie), document.addEventListener("mouseup", z);
|
|
2508
|
+
}, ie = (Ae) => {
|
|
2509
|
+
if (!p || !oe) return;
|
|
2510
2510
|
const we = Ae.clientX - r, He = Ae.clientY - $, _a = 360, Pa = 420;
|
|
2511
|
-
let Xa = F, Da = ce, Na =
|
|
2511
|
+
let Xa = F, Da = ce, Na = ue, $l = Me;
|
|
2512
2512
|
if (g.includes("right") && (Xa = Math.max(_a, F + we)), g.includes("bottom") && (Da = Math.max(Pa, ce + He)), g.includes("left")) {
|
|
2513
2513
|
const Ke = F - we;
|
|
2514
|
-
Ke < _a ? (Xa = _a, Na =
|
|
2514
|
+
Ke < _a ? (Xa = _a, Na = ue + (F - _a)) : (Xa = Ke, Na = ue + we);
|
|
2515
2515
|
}
|
|
2516
2516
|
if (g.includes("top")) {
|
|
2517
2517
|
const Ke = ce - He;
|
|
2518
|
-
Ke < Pa ? (Da = Pa, $l =
|
|
2518
|
+
Ke < Pa ? (Da = Pa, $l = Me + (ce - Pa)) : (Da = Ke, $l = Me + He);
|
|
2519
2519
|
}
|
|
2520
|
-
|
|
2520
|
+
oe.style.width = `${Xa}px`, oe.style.height = `${Da}px`, Z(oe, Na, $l);
|
|
2521
2521
|
}, z = () => {
|
|
2522
|
-
p = !1, g = "",
|
|
2522
|
+
p = !1, g = "", oe = null, document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", z);
|
|
2523
2523
|
}, I = M([]), G = M(!1);
|
|
2524
2524
|
oa(
|
|
2525
2525
|
() => n.images,
|
|
@@ -2634,16 +2634,16 @@ const rf = {
|
|
|
2634
2634
|
u.value && x();
|
|
2635
2635
|
}
|
|
2636
2636
|
);
|
|
2637
|
-
let
|
|
2637
|
+
let $e = null;
|
|
2638
2638
|
_l(() => {
|
|
2639
2639
|
var Ae;
|
|
2640
|
-
typeof ResizeObserver < "u" && (
|
|
2640
|
+
typeof ResizeObserver < "u" && ($e = new ResizeObserver(() => {
|
|
2641
2641
|
Ca(), xa(() => {
|
|
2642
2642
|
Fe();
|
|
2643
2643
|
});
|
|
2644
|
-
}), (Ae = Ce.value) != null && Ae.parentElement &&
|
|
2644
|
+
}), (Ae = Ce.value) != null && Ae.parentElement && $e.observe(Ce.value.parentElement));
|
|
2645
2645
|
}), mr(() => {
|
|
2646
|
-
|
|
2646
|
+
$e && ($e.disconnect(), $e = null), document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", z);
|
|
2647
2647
|
});
|
|
2648
2648
|
const va = () => {
|
|
2649
2649
|
Ce.value && Cn(Ce.value), s("update:visible", !1), s("close");
|
|
@@ -2809,19 +2809,19 @@ const rf = {
|
|
|
2809
2809
|
} catch {
|
|
2810
2810
|
}
|
|
2811
2811
|
r.value = {}, $.value = "";
|
|
2812
|
-
},
|
|
2812
|
+
}, ue = async (A) => {
|
|
2813
2813
|
if (!A || A.fileType === "pdf") return;
|
|
2814
2814
|
const V = Array.isArray(A.images) ? A.images : [];
|
|
2815
2815
|
for (const Z of V) {
|
|
2816
2816
|
const ye = Z == null ? void 0 : Z.url;
|
|
2817
2817
|
if (!(!ye || r.value[ye]))
|
|
2818
2818
|
try {
|
|
2819
|
-
const
|
|
2819
|
+
const ie = await En({ url: ye }), z = URL.createObjectURL(ie.data);
|
|
2820
2820
|
r.value = { ...r.value, [ye]: z };
|
|
2821
2821
|
} catch {
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
|
-
},
|
|
2824
|
+
}, Me = async (A) => {
|
|
2825
2825
|
if (!A || A.fileType !== "pdf") {
|
|
2826
2826
|
$.value = "";
|
|
2827
2827
|
return;
|
|
@@ -2841,8 +2841,8 @@ const rf = {
|
|
|
2841
2841
|
try {
|
|
2842
2842
|
const Z = await En({ url: V }), ye = URL.createObjectURL(Z.data);
|
|
2843
2843
|
$.value = ye;
|
|
2844
|
-
const
|
|
2845
|
-
F.value =
|
|
2844
|
+
const ie = A.certNo ? String(A.certNo) : "";
|
|
2845
|
+
F.value = ie ? `${ie}.pdf` : "证书附件.pdf";
|
|
2846
2846
|
} catch {
|
|
2847
2847
|
$.value = "";
|
|
2848
2848
|
}
|
|
@@ -2856,7 +2856,7 @@ const rf = {
|
|
|
2856
2856
|
return;
|
|
2857
2857
|
}
|
|
2858
2858
|
const V = (Z = n.versions) == null ? void 0 : Z[0];
|
|
2859
|
-
u.value = (V == null ? void 0 : V.versionId) || "", await
|
|
2859
|
+
u.value = (V == null ? void 0 : V.versionId) || "", await ue(V), await Me(V);
|
|
2860
2860
|
},
|
|
2861
2861
|
{ immediate: !0 }
|
|
2862
2862
|
), oa(
|
|
@@ -2869,31 +2869,31 @@ const rf = {
|
|
|
2869
2869
|
return;
|
|
2870
2870
|
}
|
|
2871
2871
|
if (A.fileType === "pdf") {
|
|
2872
|
-
p.value = "", await
|
|
2872
|
+
p.value = "", await Me(A);
|
|
2873
2873
|
return;
|
|
2874
2874
|
}
|
|
2875
|
-
$.value = "", p.value = ((Z = (V = A.images) == null ? void 0 : V[0]) == null ? void 0 : Z.url) || "", await
|
|
2875
|
+
$.value = "", p.value = ((Z = (V = A.images) == null ? void 0 : V[0]) == null ? void 0 : Z.url) || "", await ue(A);
|
|
2876
2876
|
},
|
|
2877
2877
|
{ immediate: !0 }
|
|
2878
2878
|
);
|
|
2879
|
-
const
|
|
2879
|
+
const oe = () => {
|
|
2880
2880
|
s("update:visible", !1), ce();
|
|
2881
2881
|
};
|
|
2882
2882
|
return tn(() => {
|
|
2883
2883
|
ce();
|
|
2884
2884
|
}), (A, V) => {
|
|
2885
|
-
const Z = qe("el-empty"), ye = qe("el-tab-pane"),
|
|
2885
|
+
const Z = qe("el-empty"), ye = qe("el-tab-pane"), ie = qe("el-tabs"), z = qe("el-button"), I = qe("el-dialog");
|
|
2886
2886
|
return E(), Pe(I, {
|
|
2887
2887
|
"model-value": A.visible,
|
|
2888
2888
|
title: "证书附件预览",
|
|
2889
2889
|
width: "1100px",
|
|
2890
2890
|
"close-on-click-modal": !1,
|
|
2891
|
-
onClose:
|
|
2891
|
+
onClose: oe
|
|
2892
2892
|
}, {
|
|
2893
2893
|
footer: K(() => [
|
|
2894
2894
|
X(z, {
|
|
2895
2895
|
id: "themeBorderButton",
|
|
2896
|
-
onClick:
|
|
2896
|
+
onClick: oe
|
|
2897
2897
|
}, {
|
|
2898
2898
|
default: K(() => V[1] || (V[1] = [
|
|
2899
2899
|
fa("关闭")
|
|
@@ -2903,7 +2903,7 @@ const rf = {
|
|
|
2903
2903
|
})
|
|
2904
2904
|
]),
|
|
2905
2905
|
default: K(() => [
|
|
2906
|
-
A.versions && A.versions.length > 0 ? (E(), Pe(
|
|
2906
|
+
A.versions && A.versions.length > 0 ? (E(), Pe(ie, {
|
|
2907
2907
|
key: 0,
|
|
2908
2908
|
modelValue: u.value,
|
|
2909
2909
|
"onUpdate:modelValue": V[0] || (V[0] = (G) => u.value = G),
|
|
@@ -2986,7 +2986,7 @@ const rf = {
|
|
|
2986
2986
|
},
|
|
2987
2987
|
emits: ["update:visible", "submit"],
|
|
2988
2988
|
setup(e, { emit: t }) {
|
|
2989
|
-
const n = (
|
|
2989
|
+
const n = (ie = []) => {
|
|
2990
2990
|
const z = [], I = (G) => {
|
|
2991
2991
|
(G || []).forEach((H) => {
|
|
2992
2992
|
if (!H) return;
|
|
@@ -2994,13 +2994,13 @@ const rf = {
|
|
|
2994
2994
|
Array.isArray(he) && he.length > 0 ? I(he) : z.push(H);
|
|
2995
2995
|
});
|
|
2996
2996
|
};
|
|
2997
|
-
return I(
|
|
2997
|
+
return I(ie), z;
|
|
2998
2998
|
}, s = e, u = t, p = M([]), g = M(0), r = M("");
|
|
2999
2999
|
oa(
|
|
3000
3000
|
() => s.candidates,
|
|
3001
|
-
(
|
|
3001
|
+
(ie) => {
|
|
3002
3002
|
var z, I;
|
|
3003
|
-
p.value = (
|
|
3003
|
+
p.value = (ie || []).map((G) => ({
|
|
3004
3004
|
...G,
|
|
3005
3005
|
selectedTargetId: (G == null ? void 0 : G.selectedTargetId) || "",
|
|
3006
3006
|
__decision: G == null ? void 0 : G.__decision
|
|
@@ -3009,45 +3009,45 @@ const rf = {
|
|
|
3009
3009
|
{ immediate: !0, deep: !0 }
|
|
3010
3010
|
), oa(
|
|
3011
3011
|
() => s.visible,
|
|
3012
|
-
(
|
|
3012
|
+
(ie) => {
|
|
3013
3013
|
var z, I;
|
|
3014
|
-
|
|
3014
|
+
ie && (g.value = 0, r.value = ((I = (z = p.value) == null ? void 0 : z[0]) == null ? void 0 : I.selectedTargetId) || "");
|
|
3015
3015
|
}
|
|
3016
3016
|
);
|
|
3017
3017
|
const $ = ze(() => {
|
|
3018
3018
|
var z;
|
|
3019
|
-
const
|
|
3020
|
-
return ((z = p.value || []) == null ? void 0 : z[
|
|
3021
|
-
}), F = ze(() => (n(s.columns || []) || []).filter((I) => I && I.prop).filter((I) => I.type !== "operate" && I.label !== "操作" && I.prop !== "operate")), ce = (
|
|
3022
|
-
if (!
|
|
3023
|
-
const z = (p.value || []).findIndex((I) => (I == null ? void 0 : I.idx) === (
|
|
3024
|
-
z > -1 && (g.value = z, r.value = (
|
|
3025
|
-
},
|
|
3026
|
-
if (!
|
|
3019
|
+
const ie = Number(g.value || 0);
|
|
3020
|
+
return ((z = p.value || []) == null ? void 0 : z[ie]) || null;
|
|
3021
|
+
}), F = ze(() => (n(s.columns || []) || []).filter((I) => I && I.prop).filter((I) => I.type !== "operate" && I.label !== "操作" && I.prop !== "operate")), ce = (ie) => {
|
|
3022
|
+
if (!ie) return;
|
|
3023
|
+
const z = (p.value || []).findIndex((I) => (I == null ? void 0 : I.idx) === (ie == null ? void 0 : ie.idx));
|
|
3024
|
+
z > -1 && (g.value = z, r.value = (ie == null ? void 0 : ie.selectedTargetId) || "");
|
|
3025
|
+
}, ue = (ie) => {
|
|
3026
|
+
if (!ie) {
|
|
3027
3027
|
r.value = "";
|
|
3028
3028
|
return;
|
|
3029
3029
|
}
|
|
3030
|
-
r.value = String((
|
|
3031
|
-
},
|
|
3030
|
+
r.value = String((ie == null ? void 0 : ie.id) ?? "");
|
|
3031
|
+
}, Me = (ie, z = "") => {
|
|
3032
3032
|
const I = Number(g.value || 0), G = p.value || [], H = G[I];
|
|
3033
|
-
H && (H.__decision =
|
|
3034
|
-
},
|
|
3033
|
+
H && (H.__decision = ie, H.selectedTargetId = z, r.value = z, p.value = [...G]);
|
|
3034
|
+
}, oe = () => Me("skip", ""), A = () => Me("add", ""), V = () => {
|
|
3035
3035
|
if (!r.value) {
|
|
3036
3036
|
ia.warning("请先选择要替换的目标记录");
|
|
3037
3037
|
return;
|
|
3038
3038
|
}
|
|
3039
|
-
|
|
3039
|
+
Me("replace", r.value);
|
|
3040
3040
|
}, Z = () => {
|
|
3041
3041
|
u("update:visible", !1);
|
|
3042
3042
|
}, ye = () => {
|
|
3043
|
-
const
|
|
3044
|
-
if (
|
|
3043
|
+
const ie = p.value || [];
|
|
3044
|
+
if (ie.find((I) => (I == null ? void 0 : I.__decision) === "replace" && !(I != null && I.selectedTargetId))) {
|
|
3045
3045
|
ia.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");
|
|
3046
3046
|
return;
|
|
3047
3047
|
}
|
|
3048
|
-
u("submit",
|
|
3048
|
+
u("submit", ie), u("update:visible", !1);
|
|
3049
3049
|
};
|
|
3050
|
-
return (
|
|
3050
|
+
return (ie, z) => {
|
|
3051
3051
|
const I = qe("el-table-column"), G = qe("el-table"), H = qe("el-button"), he = qe("el-alert");
|
|
3052
3052
|
return E(), Pe(Hl, {
|
|
3053
3053
|
title: "OCR候选匹配",
|
|
@@ -3114,7 +3114,7 @@ const rf = {
|
|
|
3114
3114
|
j("div", Wf, [
|
|
3115
3115
|
X(H, {
|
|
3116
3116
|
id: "themeBorderButton",
|
|
3117
|
-
onClick:
|
|
3117
|
+
onClick: oe
|
|
3118
3118
|
}, {
|
|
3119
3119
|
default: K(() => z[1] || (z[1] = [
|
|
3120
3120
|
fa("跳过本行")
|
|
@@ -3159,7 +3159,7 @@ const rf = {
|
|
|
3159
3159
|
stripe: "",
|
|
3160
3160
|
"max-height": "360",
|
|
3161
3161
|
style: { width: "100%" },
|
|
3162
|
-
onCurrentChange:
|
|
3162
|
+
onCurrentChange: ue,
|
|
3163
3163
|
"highlight-current-row": ""
|
|
3164
3164
|
}, {
|
|
3165
3165
|
default: K(() => [
|
|
@@ -3233,27 +3233,27 @@ const rf = {
|
|
|
3233
3233
|
emits: ["update:visible", "update:ocrPreviewData", "update:ocrSelectedFields", "confirm", "fieldChange"],
|
|
3234
3234
|
setup(e, { emit: t }) {
|
|
3235
3235
|
const n = e, s = t, u = M([]), p = M([]), g = M([]);
|
|
3236
|
-
oa(() => n.visible, (
|
|
3237
|
-
|
|
3236
|
+
oa(() => n.visible, (oe) => {
|
|
3237
|
+
oe && (u.value = JSON.parse(JSON.stringify(n.ocrPreviewData)), p.value = JSON.parse(JSON.stringify(n.ocrPreviewColumns)), g.value = [...n.ocrSelectedFields]);
|
|
3238
3238
|
});
|
|
3239
|
-
const r = (
|
|
3239
|
+
const r = (oe, A) => {
|
|
3240
3240
|
const V = [...g.value];
|
|
3241
3241
|
if (A)
|
|
3242
|
-
V.includes(
|
|
3242
|
+
V.includes(oe) || V.push(oe);
|
|
3243
3243
|
else {
|
|
3244
|
-
const Z = V.indexOf(
|
|
3244
|
+
const Z = V.indexOf(oe);
|
|
3245
3245
|
Z > -1 && V.splice(Z, 1);
|
|
3246
3246
|
}
|
|
3247
3247
|
g.value = V, s("update:ocrSelectedFields", V);
|
|
3248
|
-
}, $ = (
|
|
3249
|
-
s("fieldChange", { rowIndex:
|
|
3248
|
+
}, $ = (oe, A, V) => {
|
|
3249
|
+
s("fieldChange", { rowIndex: oe, prop: A, value: V });
|
|
3250
3250
|
}, F = () => {
|
|
3251
3251
|
s("update:ocrPreviewData", u.value), s("confirm", u.value), s("update:visible", !1);
|
|
3252
3252
|
}, ce = () => {
|
|
3253
3253
|
s("update:visible", !1);
|
|
3254
|
-
},
|
|
3255
|
-
return (
|
|
3256
|
-
const V = qe("el-alert"), Z = qe("el-table-column"), ye = qe("el-checkbox"),
|
|
3254
|
+
}, ue = (oe) => typeof oe != "number" ? "-" : `${(oe * 100).toFixed(1)}%`, Me = (oe) => typeof oe != "number" ? "#606266" : oe >= 0.9 ? "#67c23a" : oe >= 0.7 ? "#e6a23c" : "#f56c6c";
|
|
3255
|
+
return (oe, A) => {
|
|
3256
|
+
const V = qe("el-alert"), Z = qe("el-table-column"), ye = qe("el-checkbox"), ie = qe("el-input"), z = qe("el-table"), I = qe("el-button");
|
|
3257
3257
|
return E(), Pe(Hl, {
|
|
3258
3258
|
title: "OCR识别结果预览",
|
|
3259
3259
|
visible: e.visible,
|
|
@@ -3308,8 +3308,8 @@ const rf = {
|
|
|
3308
3308
|
G.isAccuracy ? (E(), le("span", {
|
|
3309
3309
|
key: 0,
|
|
3310
3310
|
class: "accuracy-value",
|
|
3311
|
-
style: Kl({ color:
|
|
3312
|
-
}, Qe(
|
|
3311
|
+
style: Kl({ color: Me(H[G.prop]), fontWeight: 500 })
|
|
3312
|
+
}, Qe(ue(H[G.prop])), 5)) : (E(), Pe(ie, {
|
|
3313
3313
|
key: 1,
|
|
3314
3314
|
modelValue: H[G.prop],
|
|
3315
3315
|
"onUpdate:modelValue": (Ce) => H[G.prop] = Ce,
|
|
@@ -3445,17 +3445,17 @@ const rf = {
|
|
|
3445
3445
|
const he = new Uint8Array(H.target.result), Ce = Fu(he, { type: "array" }), Be = Ce.SheetNames[0], x = Ce.Sheets[Be], ea = qn.decode_range(x["!ref"]).e.c + 1, Ia = new Array(ea).fill(""), U = [];
|
|
3446
3446
|
for (const Fe in x) {
|
|
3447
3447
|
if (Fe[0] === "!") continue;
|
|
3448
|
-
const { r: fe, c:
|
|
3448
|
+
const { r: fe, c: $e } = qn.decode_cell(Fe);
|
|
3449
3449
|
let va = x[Fe].v;
|
|
3450
3450
|
if (x[Fe].t === "n" && va > 0 && va < 1e6 && (va = new Date((va - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (va == null || va === "") && (va = ""), fe === 0)
|
|
3451
|
-
Ia[
|
|
3451
|
+
Ia[$e] = va;
|
|
3452
3452
|
else {
|
|
3453
3453
|
if (!U[fe - 1]) {
|
|
3454
3454
|
U[fe - 1] = {};
|
|
3455
3455
|
for (let Ae = 0; Ae < ea; Ae++)
|
|
3456
3456
|
U[fe - 1][`col_${Ae}`] = "";
|
|
3457
3457
|
}
|
|
3458
|
-
U[fe - 1][`col_${
|
|
3458
|
+
U[fe - 1][`col_${$e}`] = va;
|
|
3459
3459
|
}
|
|
3460
3460
|
}
|
|
3461
3461
|
for (let Fe = 0; Fe < ea; Fe++)
|
|
@@ -3471,9 +3471,9 @@ const rf = {
|
|
|
3471
3471
|
var G;
|
|
3472
3472
|
const I = (G = g.value) == null ? void 0 : G.reduce((H, he, Ce) => (Ce === 0 ? H[he.label] = z : H[he.label] = he == null ? void 0 : he.value, H), {});
|
|
3473
3473
|
n("filter", I, z, !0);
|
|
3474
|
-
},
|
|
3474
|
+
}, ue = (z, I = {}) => {
|
|
3475
3475
|
n("buttonClick", z, "", I);
|
|
3476
|
-
},
|
|
3476
|
+
}, Me = (z) => {
|
|
3477
3477
|
var I, G;
|
|
3478
3478
|
g.value = (G = (I = An(Re(z))) == null ? void 0 : I.filter((H) => (H == null ? void 0 : H.label) !== "" && (H == null ? void 0 : H.label) !== "操作")) == null ? void 0 : G.map((H) => ({
|
|
3479
3479
|
label: (H == null ? void 0 : H.label) ?? "",
|
|
@@ -3482,16 +3482,16 @@ const rf = {
|
|
|
3482
3482
|
isFormColHidden: H == null ? void 0 : H.isTableColHidden,
|
|
3483
3483
|
width: 2
|
|
3484
3484
|
}));
|
|
3485
|
-
},
|
|
3485
|
+
}, oe = M(!1), A = (z) => {
|
|
3486
3486
|
var I;
|
|
3487
|
-
if ((z == null ? void 0 : z.buttonName) === "确认" && (n("filter", z == null ? void 0 : z.content),
|
|
3487
|
+
if ((z == null ? void 0 : z.buttonName) === "确认" && (n("filter", z == null ? void 0 : z.content), oe.value = (z == null ? void 0 : z.content) && Object.values(z == null ? void 0 : z.content).length > 0), (z == null ? void 0 : z.buttonName) === "清空") {
|
|
3488
3488
|
const G = Re(z == null ? void 0 : z.content);
|
|
3489
3489
|
for (const H in G)
|
|
3490
3490
|
G[H] = "";
|
|
3491
3491
|
g.value = (I = g.value) == null ? void 0 : I.map((H) => ({
|
|
3492
3492
|
...H,
|
|
3493
3493
|
value: ""
|
|
3494
|
-
})), n("filter", G),
|
|
3494
|
+
})), n("filter", G), oe.value = !1;
|
|
3495
3495
|
}
|
|
3496
3496
|
p.value = !1;
|
|
3497
3497
|
}, V = () => {
|
|
@@ -3505,8 +3505,8 @@ const rf = {
|
|
|
3505
3505
|
const z = (G = g.value) == null ? void 0 : G.reduce((H, he) => (H[he.label] = he.value, H), {});
|
|
3506
3506
|
n("filter", z);
|
|
3507
3507
|
}, ye = M(null);
|
|
3508
|
-
let
|
|
3509
|
-
return
|
|
3508
|
+
let ie;
|
|
3509
|
+
return ie = (z) => {
|
|
3510
3510
|
var he;
|
|
3511
3511
|
if (!p.value) return;
|
|
3512
3512
|
const I = (he = ye == null ? void 0 : ye.value) == null ? void 0 : he.$el, G = I == null ? void 0 : I.contains(z.target);
|
|
@@ -3515,13 +3515,13 @@ const rf = {
|
|
|
3515
3515
|
Ce.contains(z.target) && (H = !0);
|
|
3516
3516
|
}), !G && !H && (p.value = !1);
|
|
3517
3517
|
}, _l(() => {
|
|
3518
|
-
document.addEventListener("click",
|
|
3518
|
+
document.addEventListener("click", ie), Me(s.columns);
|
|
3519
3519
|
}), tn(() => {
|
|
3520
|
-
document.removeEventListener("click",
|
|
3520
|
+
document.removeEventListener("click", ie);
|
|
3521
3521
|
}), oa(
|
|
3522
3522
|
() => s.columns,
|
|
3523
3523
|
() => {
|
|
3524
|
-
|
|
3524
|
+
Me(s.columns);
|
|
3525
3525
|
},
|
|
3526
3526
|
{ deep: !0, immediate: !0 }
|
|
3527
3527
|
), (z, I) => {
|
|
@@ -3554,24 +3554,24 @@ const rf = {
|
|
|
3554
3554
|
return [
|
|
3555
3555
|
X(he, {
|
|
3556
3556
|
modelValue: u.value,
|
|
3557
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
3557
|
+
"onUpdate:modelValue": I[0] || (I[0] = ($e) => u.value = $e),
|
|
3558
3558
|
style: { "min-width": "80px" },
|
|
3559
|
-
placeholder:
|
|
3560
|
-
"prefix-icon":
|
|
3559
|
+
placeholder: oe.value ? (Fe = (Ca = (U = e.filterValues) == null ? void 0 : U.filter(($e) => $e)) == null ? void 0 : Ca.slice(0, 3)) == null ? void 0 : Fe.join("/") : "搜索",
|
|
3560
|
+
"prefix-icon": re(yo),
|
|
3561
3561
|
clearable: "",
|
|
3562
3562
|
onInput: ce,
|
|
3563
3563
|
disabled: ((fe = g.value) == null ? void 0 : fe.length) === 0
|
|
3564
3564
|
}, {
|
|
3565
3565
|
suffix: K(() => {
|
|
3566
|
-
var
|
|
3566
|
+
var $e, va;
|
|
3567
3567
|
return [
|
|
3568
|
-
!u.value && ((va = (
|
|
3568
|
+
!u.value && ((va = ($e = e.filterValues) == null ? void 0 : $e.filter((Ae) => Ae)) != null && va.join("/")) ? (E(), Pe(G, {
|
|
3569
3569
|
key: 0,
|
|
3570
3570
|
style: { cursor: "pointer" },
|
|
3571
3571
|
onClick: Z
|
|
3572
3572
|
}, {
|
|
3573
3573
|
default: K(() => [
|
|
3574
|
-
X(
|
|
3574
|
+
X(re(ur))
|
|
3575
3575
|
]),
|
|
3576
3576
|
_: 1
|
|
3577
3577
|
})) : xe("", !0)
|
|
@@ -3631,11 +3631,11 @@ const rf = {
|
|
|
3631
3631
|
return [
|
|
3632
3632
|
j("div", {
|
|
3633
3633
|
class: Je(["table-op-action", { "is-disabled": !!e.lockingPage }]),
|
|
3634
|
-
onClick: (
|
|
3634
|
+
onClick: ($e) => ue(U == null ? void 0 : U.label)
|
|
3635
3635
|
}, [
|
|
3636
3636
|
X(H, {
|
|
3637
3637
|
class: "table-op-icon",
|
|
3638
|
-
name: (fe = $ == null ? void 0 : $.find((
|
|
3638
|
+
name: (fe = $ == null ? void 0 : $.find(($e) => ($e == null ? void 0 : $e.label) === (U == null ? void 0 : U.label))) == null ? void 0 : fe.icon
|
|
3639
3639
|
}, null, 8, ["name"]),
|
|
3640
3640
|
j("span", ip, Qe(U == null ? void 0 : U.label), 1)
|
|
3641
3641
|
], 10, sp)
|
|
@@ -3653,7 +3653,7 @@ const rf = {
|
|
|
3653
3653
|
}, [
|
|
3654
3654
|
X(H, {
|
|
3655
3655
|
class: "table-op-icon",
|
|
3656
|
-
name: (fe = $ == null ? void 0 : $.find((
|
|
3656
|
+
name: (fe = $ == null ? void 0 : $.find(($e) => ($e == null ? void 0 : $e.label) === (U == null ? void 0 : U.label))) == null ? void 0 : fe.icon
|
|
3657
3657
|
}, null, 8, ["name"]),
|
|
3658
3658
|
j("span", up, Qe(U == null ? void 0 : U.label), 1)
|
|
3659
3659
|
], 2)) : xe("", !0)
|
|
@@ -3662,14 +3662,14 @@ const rf = {
|
|
|
3662
3662
|
dropMenu: K(() => [
|
|
3663
3663
|
j("div", dp, [
|
|
3664
3664
|
(E(!0), le($a, null, dl(U == null ? void 0 : U.contents, (fe) => {
|
|
3665
|
-
var
|
|
3665
|
+
var $e, va;
|
|
3666
3666
|
return E(), le("div", {
|
|
3667
3667
|
key: fe == null ? void 0 : fe.label,
|
|
3668
3668
|
class: Je(["table-op-drop-item", { "is-disabled": !!e.lockingPage }]),
|
|
3669
|
-
onClick: (Ae) => !e.lockingPage &&
|
|
3669
|
+
onClick: (Ae) => !e.lockingPage && ue(fe == null ? void 0 : fe.label)
|
|
3670
3670
|
}, [
|
|
3671
3671
|
fa(Qe(fe == null ? void 0 : fe.label), 1),
|
|
3672
|
-
(
|
|
3672
|
+
($e = fe == null ? void 0 : fe.label) != null && $e.includes("选中") ? (E(), le("span", fp, "(" + Qe(e.selectNums) + ")", 1)) : xe("", !0),
|
|
3673
3673
|
(va = fe == null ? void 0 : fe.label) != null && va.includes("全部") ? (E(), le("span", pp, "(" + Qe(e.dataNums) + ")", 1)) : xe("", !0)
|
|
3674
3674
|
], 10, cp);
|
|
3675
3675
|
}), 128))
|
|
@@ -3681,7 +3681,7 @@ const rf = {
|
|
|
3681
3681
|
key: 2,
|
|
3682
3682
|
id: "themeButton",
|
|
3683
3683
|
class: Je(["table-op-action", { "is-disabled": !!e.lockingPage }]),
|
|
3684
|
-
onClick: (fe) => !e.lockingPage &&
|
|
3684
|
+
onClick: (fe) => !e.lockingPage && ue(U == null ? void 0 : U.label, U)
|
|
3685
3685
|
}, [
|
|
3686
3686
|
X(H, {
|
|
3687
3687
|
class: "table-op-icon",
|
|
@@ -3711,24 +3711,24 @@ const rf = {
|
|
|
3711
3711
|
return [
|
|
3712
3712
|
X(he, {
|
|
3713
3713
|
modelValue: u.value,
|
|
3714
|
-
"onUpdate:modelValue": I[2] || (I[2] = (
|
|
3714
|
+
"onUpdate:modelValue": I[2] || (I[2] = ($e) => u.value = $e),
|
|
3715
3715
|
style: { "min-width": "80px" },
|
|
3716
|
-
placeholder:
|
|
3717
|
-
"prefix-icon":
|
|
3716
|
+
placeholder: oe.value ? (Fe = (Ca = (U = e.filterValues) == null ? void 0 : U.filter(($e) => $e)) == null ? void 0 : Ca.slice(0, 3)) == null ? void 0 : Fe.join("/") : "搜索",
|
|
3717
|
+
"prefix-icon": re(yo),
|
|
3718
3718
|
clearable: "",
|
|
3719
3719
|
onInput: ce,
|
|
3720
3720
|
disabled: ((fe = g.value) == null ? void 0 : fe.length) === 0
|
|
3721
3721
|
}, {
|
|
3722
3722
|
suffix: K(() => {
|
|
3723
|
-
var
|
|
3723
|
+
var $e, va;
|
|
3724
3724
|
return [
|
|
3725
|
-
!u.value && ((va = (
|
|
3725
|
+
!u.value && ((va = ($e = e.filterValues) == null ? void 0 : $e.filter((Ae) => Ae)) != null && va.join("/")) ? (E(), Pe(G, {
|
|
3726
3726
|
key: 0,
|
|
3727
3727
|
style: { cursor: "pointer" },
|
|
3728
3728
|
onClick: Z
|
|
3729
3729
|
}, {
|
|
3730
3730
|
default: K(() => [
|
|
3731
|
-
X(
|
|
3731
|
+
X(re(ur))
|
|
3732
3732
|
]),
|
|
3733
3733
|
_: 1
|
|
3734
3734
|
})) : xe("", !0)
|
|
@@ -3788,7 +3788,7 @@ const rf = {
|
|
|
3788
3788
|
j("div", kp, [
|
|
3789
3789
|
X(H, {
|
|
3790
3790
|
class: "table-op-icon",
|
|
3791
|
-
name: (fe = $ == null ? void 0 : $.find((
|
|
3791
|
+
name: (fe = $ == null ? void 0 : $.find(($e) => ($e == null ? void 0 : $e.label) === (U == null ? void 0 : U.label))) == null ? void 0 : fe.icon
|
|
3792
3792
|
}, null, 8, ["name"]),
|
|
3793
3793
|
j("span", Cp, Qe(U == null ? void 0 : U.label), 1)
|
|
3794
3794
|
])
|
|
@@ -3807,7 +3807,7 @@ const rf = {
|
|
|
3807
3807
|
return [
|
|
3808
3808
|
X(H, {
|
|
3809
3809
|
class: "table-op-icon",
|
|
3810
|
-
name: (fe = $ == null ? void 0 : $.find((
|
|
3810
|
+
name: (fe = $ == null ? void 0 : $.find(($e) => ($e == null ? void 0 : $e.label) === (U == null ? void 0 : U.label))) == null ? void 0 : fe.icon
|
|
3811
3811
|
}, null, 8, ["name"])
|
|
3812
3812
|
];
|
|
3813
3813
|
}),
|
|
@@ -3822,13 +3822,13 @@ const rf = {
|
|
|
3822
3822
|
(E(!0), le($a, null, dl(U == null ? void 0 : U.contents, (fe) => (E(), Pe(Be, {
|
|
3823
3823
|
key: fe == null ? void 0 : fe.label,
|
|
3824
3824
|
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
3825
|
-
onClick: (
|
|
3825
|
+
onClick: ($e) => ue(fe == null ? void 0 : fe.label)
|
|
3826
3826
|
}, {
|
|
3827
3827
|
default: K(() => {
|
|
3828
|
-
var
|
|
3828
|
+
var $e, va;
|
|
3829
3829
|
return [
|
|
3830
3830
|
fa(Qe(fe == null ? void 0 : fe.label), 1),
|
|
3831
|
-
(
|
|
3831
|
+
($e = fe == null ? void 0 : fe.label) != null && $e.includes("选中") ? (E(), le("span", Ep, "(" + Qe(e.selectNums) + ")", 1)) : xe("", !0),
|
|
3832
3832
|
(va = fe == null ? void 0 : fe.label) != null && va.includes("全部") ? (E(), le("span", Ap, "(" + Qe(e.dataNums) + ")", 1)) : xe("", !0)
|
|
3833
3833
|
];
|
|
3834
3834
|
}),
|
|
@@ -3842,7 +3842,7 @@ const rf = {
|
|
|
3842
3842
|
key: 2,
|
|
3843
3843
|
class: Je(["table-op-action", { "is-disabled": !!e.lockingPage }]),
|
|
3844
3844
|
id: "themeButton",
|
|
3845
|
-
onClick: (fe) => !e.lockingPage &&
|
|
3845
|
+
onClick: (fe) => !e.lockingPage && ue(U == null ? void 0 : U.label, U)
|
|
3846
3846
|
}, [
|
|
3847
3847
|
X(H, {
|
|
3848
3848
|
class: "table-op-icon",
|
|
@@ -4082,10 +4082,10 @@ class Fp {
|
|
|
4082
4082
|
if (n[0] !== 85 || n[1] !== 102) return;
|
|
4083
4083
|
const s = n[2];
|
|
4084
4084
|
if (s === 80) {
|
|
4085
|
-
const F = n[3], ce = n.length - 4,
|
|
4086
|
-
for (let A = 0; A < ce; A++)
|
|
4087
|
-
const
|
|
4088
|
-
(u = this.onDevCount) == null || u.call(this, F,
|
|
4085
|
+
const F = n[3], ce = n.length - 4, ue = new Uint8Array(ce);
|
|
4086
|
+
for (let A = 0; A < ce; A++) ue[A] = n[4 + A];
|
|
4087
|
+
const oe = decodeURIComponent(this.byteToString(ue)).split("|");
|
|
4088
|
+
(u = this.onDevCount) == null || u.call(this, F, oe);
|
|
4089
4089
|
return;
|
|
4090
4090
|
}
|
|
4091
4091
|
if (s === 1) {
|
|
@@ -4094,18 +4094,18 @@ class Fp {
|
|
|
4094
4094
|
}
|
|
4095
4095
|
if (s === 16) {
|
|
4096
4096
|
if (n[3] === 1) {
|
|
4097
|
-
const ce = n[4] * 256 + n[5],
|
|
4098
|
-
let
|
|
4097
|
+
const ce = n[4] * 256 + n[5], ue = n[6] * 65536 + n[7] * 256 + n[8];
|
|
4098
|
+
let Me = "";
|
|
4099
4099
|
if (ce > 0) {
|
|
4100
4100
|
const V = new Uint8Array(ce);
|
|
4101
4101
|
for (let Z = 0; Z < ce; Z++) V[Z] = n[9 + Z];
|
|
4102
|
-
|
|
4102
|
+
Me = decodeURIComponent(this.byteToString(V));
|
|
4103
4103
|
}
|
|
4104
|
-
const
|
|
4105
|
-
for (let V = 0; V <
|
|
4106
|
-
|
|
4107
|
-
const A = this.uint8ArrayToString(
|
|
4108
|
-
(r = this.onPhoto) == null || r.call(this, { flag: 0, imgPath:
|
|
4104
|
+
const oe = new Uint8Array(ue);
|
|
4105
|
+
for (let V = 0; V < ue; V++)
|
|
4106
|
+
oe[V] = n[9 + ce + V];
|
|
4107
|
+
const A = this.uint8ArrayToString(oe);
|
|
4108
|
+
(r = this.onPhoto) == null || r.call(this, { flag: 0, imgPath: Me, base64: A });
|
|
4109
4109
|
}
|
|
4110
4110
|
n[3] === 2 && (($ = this.onPhoto) == null || $.call(this, { flag: 2, imgPath: "", base64: "" }));
|
|
4111
4111
|
return;
|
|
@@ -4114,11 +4114,11 @@ class Fp {
|
|
|
4114
4114
|
if (!this.canvas || !this.ctx) return;
|
|
4115
4115
|
const F = n[3] * 256 + n[4], ce = n[5] * 256 + n[6];
|
|
4116
4116
|
this.pMainShowStartX = n[7] * 256 + n[8], this.pMainShowStartY = n[9] * 256 + n[10], this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
4117
|
-
const
|
|
4118
|
-
let
|
|
4119
|
-
for (let
|
|
4120
|
-
|
|
4121
|
-
this.ctx.putImageData(
|
|
4117
|
+
const ue = this.ctx.createImageData(F, ce);
|
|
4118
|
+
let Me = 11;
|
|
4119
|
+
for (let oe = 0; oe < ue.data.length; oe += 4)
|
|
4120
|
+
ue.data[oe + 0] = n[Me], ue.data[oe + 1] = n[Me + 1], ue.data[oe + 2] = n[Me + 2], ue.data[oe + 3] = 255, Me += 3;
|
|
4121
|
+
this.ctx.putImageData(ue, this.pMainShowStartX, this.pMainShowStartY), this.mainCamCutMode;
|
|
4122
4122
|
return;
|
|
4123
4123
|
}
|
|
4124
4124
|
}
|
|
@@ -4193,14 +4193,14 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4193
4193
|
`;
|
|
4194
4194
|
};
|
|
4195
4195
|
}
|
|
4196
|
-
const
|
|
4196
|
+
const ue = async () => {
|
|
4197
4197
|
if (await xa(), !u.value) return;
|
|
4198
|
-
|
|
4198
|
+
Me(), ce();
|
|
4199
4199
|
const I = u.value.getBoundingClientRect();
|
|
4200
4200
|
$.init(u.value, Math.floor(I.width), Math.floor(I.height)), r.value += `正在连接设备服务...
|
|
4201
4201
|
`, await $.connect(), r.value += `正在获取设备数量...
|
|
4202
4202
|
`, $.getDevCount();
|
|
4203
|
-
},
|
|
4203
|
+
}, Me = () => {
|
|
4204
4204
|
try {
|
|
4205
4205
|
$.destroy();
|
|
4206
4206
|
} catch (I) {
|
|
@@ -4211,10 +4211,10 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4211
4211
|
oa(
|
|
4212
4212
|
() => n.visible,
|
|
4213
4213
|
(I) => {
|
|
4214
|
-
I ?
|
|
4214
|
+
I ? ue() : Me();
|
|
4215
4215
|
}
|
|
4216
4216
|
);
|
|
4217
|
-
const
|
|
4217
|
+
const oe = () => {
|
|
4218
4218
|
try {
|
|
4219
4219
|
$.bestSize();
|
|
4220
4220
|
} catch (I) {
|
|
@@ -4247,14 +4247,14 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4247
4247
|
r.value += `拍照调用失败:${(I == null ? void 0 : I.message) ?? I}
|
|
4248
4248
|
`;
|
|
4249
4249
|
}
|
|
4250
|
-
},
|
|
4250
|
+
}, ie = () => {
|
|
4251
4251
|
if (g.value) {
|
|
4252
4252
|
const I = F(g.value, "gpy-capture.jpg");
|
|
4253
4253
|
s("confirm", I);
|
|
4254
4254
|
} else
|
|
4255
4255
|
s("confirm", null);
|
|
4256
4256
|
}, z = () => {
|
|
4257
|
-
|
|
4257
|
+
Me(), s("cancel");
|
|
4258
4258
|
};
|
|
4259
4259
|
return (I, G) => {
|
|
4260
4260
|
const H = qe("el-input"), he = qe("el-button");
|
|
@@ -4304,7 +4304,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4304
4304
|
footer: K(() => [
|
|
4305
4305
|
j("div", qp, [
|
|
4306
4306
|
X(he, {
|
|
4307
|
-
onClick:
|
|
4307
|
+
onClick: oe,
|
|
4308
4308
|
disabled: !p.value,
|
|
4309
4309
|
id: "themeBorderButton"
|
|
4310
4310
|
}, {
|
|
@@ -4360,7 +4360,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4360
4360
|
}, 8, ["disabled"]),
|
|
4361
4361
|
G[9] || (G[9] = j("div", { style: { flex: "1" } }, null, -1)),
|
|
4362
4362
|
X(he, {
|
|
4363
|
-
onClick:
|
|
4363
|
+
onClick: ie,
|
|
4364
4364
|
disabled: !g.value,
|
|
4365
4365
|
id: "themeButton"
|
|
4366
4366
|
}, {
|
|
@@ -4400,7 +4400,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
4402
|
}), or = async (e, t) => {
|
|
4403
|
-
var g, r, $, F, ce,
|
|
4403
|
+
var g, r, $, F, ce, ue, Me, oe, A, V, Z, ye, ie, z, I, G, H;
|
|
4404
4404
|
let n = (r = (g = Re(e)) == null ? void 0 : g.optionUrl) == null ? void 0 : r.menuSelect, s = [];
|
|
4405
4405
|
n == null || n.forEach((he) => {
|
|
4406
4406
|
});
|
|
@@ -4412,17 +4412,17 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4412
4412
|
u = t;
|
|
4413
4413
|
const he = await Nt({
|
|
4414
4414
|
id: u
|
|
4415
|
-
}), Ce = (
|
|
4415
|
+
}), Ce = (ue = (ce = (F = ($ = he == null ? void 0 : he.data) == null ? void 0 : $.result) == null ? void 0 : F[0]) == null ? void 0 : ce.key) == null ? void 0 : ue.pageKey;
|
|
4416
4416
|
p = await cr(Ce, sessionStorage.getItem("systemKey"), "");
|
|
4417
4417
|
}
|
|
4418
4418
|
if (u !== "") {
|
|
4419
4419
|
let he;
|
|
4420
|
-
t ? he = (
|
|
4420
|
+
t ? he = (Me = p == null ? void 0 : p.find((x) => (x == null ? void 0 : x.id) === t)) == null ? void 0 : Me.compData : he = (oe = p == null ? void 0 : p.find((x) => {
|
|
4421
4421
|
var la, ea, Ia, U;
|
|
4422
4422
|
return (x == null ? void 0 : x.name) === (((ea = (la = e == null ? void 0 : e.groupSelect) == null ? void 0 : la.split(":")) == null ? void 0 : ea[0]) || ((U = (Ia = e == null ? void 0 : e.optionUrl) == null ? void 0 : Ia.groupSelect) == null ? void 0 : U[0]));
|
|
4423
|
-
})) == null ? void 0 :
|
|
4423
|
+
})) == null ? void 0 : oe.compData;
|
|
4424
4424
|
let Ce = (V = (A = he == null ? void 0 : he.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : A.contents) == null ? void 0 : V.map((x) => x == null ? void 0 : x.label);
|
|
4425
|
-
(ye = (Z = he == null ? void 0 : he.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : Z.contents) != null && ye.every((x) => Array.isArray(x)) && (Ce = (I = An((z = (
|
|
4425
|
+
(ye = (Z = he == null ? void 0 : he.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : Z.contents) != null && ye.every((x) => Array.isArray(x)) && (Ce = (I = An((z = (ie = he == null ? void 0 : he.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : ie.contents) == null ? void 0 : z[0])) == null ? void 0 : I.map((x) => x == null ? void 0 : x.prop));
|
|
4426
4426
|
let Be = (H = (G = he == null ? void 0 : he.find((x) => (x == null ? void 0 : x.key) === "tableContents")) == null ? void 0 : G.contents) == null ? void 0 : H.map((x) => {
|
|
4427
4427
|
if (Array.isArray(x))
|
|
4428
4428
|
x = x == null ? void 0 : x.filter((la) => !(la != null && la.id));
|
|
@@ -4638,7 +4638,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4638
4638
|
emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
|
|
4639
4639
|
setup(e, { emit: t }) {
|
|
4640
4640
|
var so;
|
|
4641
|
-
const n = M([]), s = Zp(fn), u = M(null), p = M(/* @__PURE__ */ new Set()), g = M(/* @__PURE__ */ new Map()), r = e, $ = M((r == null ? void 0 : r.allowSelect) ?? !0), F = M(((so = r == null ? void 0 : r.config) == null ? void 0 : so.showIndex) ?? !0), ce = M(),
|
|
4641
|
+
const n = M([]), s = Zp(fn), u = M(null), p = M(/* @__PURE__ */ new Set()), g = M(/* @__PURE__ */ new Map()), r = e, $ = M((r == null ? void 0 : r.allowSelect) ?? !0), F = M(((so = r == null ? void 0 : r.config) == null ? void 0 : so.showIndex) ?? !0), ce = M(), ue = M(!0), Me = M(!1), oe = M([]), A = {
|
|
4642
4642
|
sortable: "switch",
|
|
4643
4643
|
filterable: "switch",
|
|
4644
4644
|
showSummary: "switch",
|
|
@@ -4687,7 +4687,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4687
4687
|
}
|
|
4688
4688
|
]), Z = Hu(fn);
|
|
4689
4689
|
let ye = "$R";
|
|
4690
|
-
const { originalPath:
|
|
4690
|
+
const { originalPath: ie } = kn(Z), z = ie.value, I = ze(() => {
|
|
4691
4691
|
var l;
|
|
4692
4692
|
const a = (l = ql(x.value) || []) == null ? void 0 : l.filter((o) => (o == null ? void 0 : o.type) !== "operate" && (o == null ? void 0 : o.label) !== "操作" && (o == null ? void 0 : o.prop) !== "operate");
|
|
4693
4693
|
return a.length > 0 ? a.every((o) => !!(o != null && o.sortable)) : !1;
|
|
@@ -4708,7 +4708,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4708
4708
|
pageSize: 10,
|
|
4709
4709
|
total: 0,
|
|
4710
4710
|
pageSizes: [5, 10, 20, 50, 100]
|
|
4711
|
-
}), Be = t, x = M([]), la = M([]), ea = M([]), Ia = Vl({ prop: "", order: null }), U = M([]), Ca = M(!1), Fe = M(!1), fe = M(null), { isUseBackdrop:
|
|
4711
|
+
}), Be = t, x = M([]), la = M([]), ea = M([]), Ia = Vl({ prop: "", order: null }), U = M([]), Ca = M(!1), Fe = M(!1), fe = M(null), { isUseBackdrop: $e, initTrackFileType: va, getFileExtension: Ae, setData: we, getFileInfo: He, getFilesInfo: _a } = vd(), Pa = M([]), Xa = M(!1), Da = M(), Na = od(), { importLoading: $l, activeMenuPath: Ke, contentLoading: Wl, linkMenuInfo: On } = kn(Na), et = Ku(fn), Ta = sd(fn), { extraContents: ba, cacheUpdatingData: Yl, tableViewContents: on, tableLoading: xr, pageMapState: Gl, lockingPage: at } = kn(Ta), de = M([]), tl = M([]), Qa = M(/* @__PURE__ */ new Map());
|
|
4712
4712
|
M(!1);
|
|
4713
4713
|
const yl = M("");
|
|
4714
4714
|
M();
|
|
@@ -4849,20 +4849,21 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4849
4849
|
return;
|
|
4850
4850
|
}
|
|
4851
4851
|
if (h === "replace") {
|
|
4852
|
-
const b = f == null ? void 0 : f.selectedTargetId, m = (
|
|
4852
|
+
const b = f == null ? void 0 : f.selectedTargetId, m = (de.value || []).find((L) => String(L == null ? void 0 : L.id) === String(b));
|
|
4853
4853
|
if (!m) return;
|
|
4854
4854
|
xs(f, m);
|
|
4855
4855
|
}
|
|
4856
4856
|
}
|
|
4857
|
-
}), (bn.value || []).length > 0 && (
|
|
4857
|
+
}), (bn.value || []).length > 0 && (de.value = [...de.value || []]), (Dl.value || []).length > 0 && (de.value = [...de.value || [], ...Dl.value || []], tl.value = [...tl.value || [], ...Dl.value || []], (Dl.value || []).forEach((f) => {
|
|
4858
4858
|
var h, c;
|
|
4859
4859
|
return (c = (h = Qa.value) == null ? void 0 : h.set) == null ? void 0 : c.call(h, f.id, f);
|
|
4860
|
-
})), mn.value =
|
|
4860
|
+
})), mn.value = de.value;
|
|
4861
4861
|
const i = bn.value || [], d = Dl.value || [];
|
|
4862
4862
|
if (i.length > 0 && Be("change", {
|
|
4863
4863
|
buttonName: "编辑",
|
|
4864
4864
|
singleContent: i,
|
|
4865
|
-
content:
|
|
4865
|
+
content: de.value,
|
|
4866
|
+
relatedContents: r == null ? void 0 : r.related,
|
|
4866
4867
|
index: r == null ? void 0 : r.index,
|
|
4867
4868
|
parentTableId: r == null ? void 0 : r.parentTableId,
|
|
4868
4869
|
column: x.value
|
|
@@ -4870,7 +4871,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4870
4871
|
const f = Ut.value;
|
|
4871
4872
|
Be("change", {
|
|
4872
4873
|
buttonName: "OCR批量新增",
|
|
4873
|
-
content:
|
|
4874
|
+
content: de.value,
|
|
4874
4875
|
index: r == null ? void 0 : r.index,
|
|
4875
4876
|
parentTableId: r == null ? void 0 : r.parentTableId,
|
|
4876
4877
|
column: x.value,
|
|
@@ -4892,7 +4893,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4892
4893
|
}, Mn = fd(), Ns = ze(() => Mn.getConfig()), El = M(), rl = M(), $s = Np(fn), mn = M(), Ft = M(0), Ls = Wu(fn), { selectIndex: Ms, selectMenu: jt, selectTitle: Vv } = kn(Ls), { selectString: dn } = kn($s), Bs = id(fn), { loginUserInfo: Ul } = kn(Bs), Is = M(720), ol = M(!1), ft = M(!1), Nl = M([]), Al = M(), Bn = M(!0), Pr = M(!0), Rs = M([]), Ps = ln("contentRef");
|
|
4893
4894
|
Sr("contentRef", Ps), oa(() => {
|
|
4894
4895
|
var a;
|
|
4895
|
-
return (a =
|
|
4896
|
+
return (a = de.value) == null ? void 0 : a.length;
|
|
4896
4897
|
}, (a) => {
|
|
4897
4898
|
Ce.total = a;
|
|
4898
4899
|
}), oa(
|
|
@@ -4950,11 +4951,11 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4950
4951
|
if (R == null || R.forEach((ve) => {
|
|
4951
4952
|
var P, me, W, O, v, S, _, T, pe, Y;
|
|
4952
4953
|
if (i) {
|
|
4953
|
-
let Oe = (me = (P = na.value) == null ? void 0 : P.find((
|
|
4954
|
+
let Oe = (me = (P = na.value) == null ? void 0 : P.find((se) => {
|
|
4954
4955
|
var Xe, ke;
|
|
4955
|
-
return ((Xe = d == null ? void 0 : d.optionUrl) == null ? void 0 : Xe.menuId) === ((ke =
|
|
4956
|
-
})) == null ? void 0 : me.prop, y = (O = (W = o == null ? void 0 : o.find((
|
|
4957
|
-
Oe != null && Oe.includes("·") && (Oe = (v = Oe == null ? void 0 : Oe.split("·")) == null ? void 0 : v[0], y = (pe = (T = (_ = a == null ? void 0 : a.value) == null ? void 0 : _[((S = a == null ? void 0 : a.value) == null ? void 0 : S.length) - 1]) == null ? void 0 : T.split(" ")) == null ? void 0 : pe[0]), Q != null && Q.find((
|
|
4956
|
+
return ((Xe = d == null ? void 0 : d.optionUrl) == null ? void 0 : Xe.menuId) === ((ke = se == null ? void 0 : se.optionUrl) == null ? void 0 : ke.menuId);
|
|
4957
|
+
})) == null ? void 0 : me.prop, y = (O = (W = o == null ? void 0 : o.find((se) => (se == null ? void 0 : se.prop) === Oe)) == null ? void 0 : W.selectValue) == null ? void 0 : O[0];
|
|
4958
|
+
Oe != null && Oe.includes("·") && (Oe = (v = Oe == null ? void 0 : Oe.split("·")) == null ? void 0 : v[0], y = (pe = (T = (_ = a == null ? void 0 : a.value) == null ? void 0 : _[((S = a == null ? void 0 : a.value) == null ? void 0 : S.length) - 1]) == null ? void 0 : T.split(" ")) == null ? void 0 : pe[0]), Q != null && Q.find((se) => (se == null ? void 0 : se.value) === ge) ? q = (Y = Q == null ? void 0 : Q.find((se) => (se == null ? void 0 : se.value) === ge)) == null ? void 0 : Y.objectValue : ve[Oe] === y && (q = ve);
|
|
4958
4959
|
}
|
|
4959
4960
|
}), q) {
|
|
4960
4961
|
let ve = o;
|
|
@@ -4990,7 +4991,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
4990
4991
|
Ft.value = a + 1;
|
|
4991
4992
|
});
|
|
4992
4993
|
const pt = Vl({ prop: "", order: null }), js = ze(() => {
|
|
4993
|
-
const a = (
|
|
4994
|
+
const a = (de.value ?? []).slice(), l = pt.prop || Ia.prop, o = pt.order || Ia.order;
|
|
4994
4995
|
if (!l || !o) return a;
|
|
4995
4996
|
const i = o === "ascending", d = (h) => {
|
|
4996
4997
|
if (l)
|
|
@@ -5037,7 +5038,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5037
5038
|
}, Hs = (a) => {
|
|
5038
5039
|
var i;
|
|
5039
5040
|
Ce.pageSize = a;
|
|
5040
|
-
const l = ((i =
|
|
5041
|
+
const l = ((i = de.value) == null ? void 0 : i.length) ?? 0, o = a > 0 ? Math.ceil(l / a) : 1;
|
|
5041
5042
|
Ce.currentPage > o && (Ce.currentPage = o || 1, ia.warning("当前页超出范围,已自动跳转到最后一页")), Be("getSliceContLength", Ce);
|
|
5042
5043
|
}, Ks = ({ prop: a, order: l }) => {
|
|
5043
5044
|
pt.prop = a, pt.order = l, Ce.currentPage = 1;
|
|
@@ -5131,7 +5132,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5131
5132
|
}, Xs = async ({ newRow: a, targetIndex: l }) => {
|
|
5132
5133
|
var d;
|
|
5133
5134
|
const i = (Ce.currentPage - 1) * Ce.pageSize + (l ?? 0);
|
|
5134
|
-
a._isTemp = !0,
|
|
5135
|
+
a._isTemp = !0, de.value.splice(i, 0, a), await xa(), g.value.has(a.id) || g.value.set(a.id, Re(a)), de.value = (d = de.value) == null ? void 0 : d.map((f) => ({
|
|
5135
5136
|
...f,
|
|
5136
5137
|
tableEditType: (f == null ? void 0 : f.id) === a.id ? "edit" : (f == null ? void 0 : f.tableEditType) ?? "text"
|
|
5137
5138
|
})), p.value.add(a.id), ol.value = !0;
|
|
@@ -5142,11 +5143,11 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5142
5143
|
const l = [], o = [];
|
|
5143
5144
|
if (a.forEach((b) => {
|
|
5144
5145
|
var B;
|
|
5145
|
-
const m = (B =
|
|
5146
|
+
const m = (B = de.value) == null ? void 0 : B.find((R) => (R == null ? void 0 : R.id) === b);
|
|
5146
5147
|
if (!m) return;
|
|
5147
5148
|
if (m != null && m._isTemp) {
|
|
5148
|
-
const R =
|
|
5149
|
-
id: (R >= 0 ? R + 1 :
|
|
5149
|
+
const R = de.value.findIndex((ge) => (ge == null ? void 0 : ge.id) === b), Q = {
|
|
5150
|
+
id: (R >= 0 ? R + 1 : de.value.length + 1).toString()
|
|
5150
5151
|
// id 为该行在表中的位置(1-based)
|
|
5151
5152
|
};
|
|
5152
5153
|
for (let ge in m)
|
|
@@ -5192,7 +5193,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5192
5193
|
};
|
|
5193
5194
|
Be("change", b);
|
|
5194
5195
|
}
|
|
5195
|
-
ia.success("保存成功"), p.value.clear(), g.value.clear(),
|
|
5196
|
+
ia.success("保存成功"), p.value.clear(), g.value.clear(), de.value = (c = de.value) == null ? void 0 : c.map((b) => ({ ...b, tableEditType: "text" })), ol.value = !1, Ta.setRefreshCurStructure(!0);
|
|
5196
5197
|
}, zt = M(!1), Zs = async () => {
|
|
5197
5198
|
if (Yl.value) {
|
|
5198
5199
|
ol.value = !1;
|
|
@@ -5265,7 +5266,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5265
5266
|
ia.error("当前版本仅允许单个urdf预览!");
|
|
5266
5267
|
return;
|
|
5267
5268
|
}
|
|
5268
|
-
if (
|
|
5269
|
+
if ($e(l)) {
|
|
5269
5270
|
const v = {
|
|
5270
5271
|
files: [He(l)],
|
|
5271
5272
|
data: {}
|
|
@@ -5284,7 +5285,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5284
5285
|
let d = [];
|
|
5285
5286
|
if ((h = l == null ? void 0 : l.toString()) != null && h.includes(".stl") || (c = l == null ? void 0 : l.toString()) != null && c.includes(".STL") || (b = l == null ? void 0 : l.toString()) != null && b.includes(".obj") || (m = l == null ? void 0 : l.toString()) != null && m.includes(".mtl")) {
|
|
5286
5287
|
const O = (L = l == null ? void 0 : l.toString()) == null ? void 0 : L.split(","), v = _a(O), S = v == null ? void 0 : v[0];
|
|
5287
|
-
if (
|
|
5288
|
+
if ($e(S == null ? void 0 : S.extension)) {
|
|
5288
5289
|
we({
|
|
5289
5290
|
files: v,
|
|
5290
5291
|
data: {}
|
|
@@ -5326,7 +5327,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5326
5327
|
if ((W = l == null ? void 0 : l.split("/")) == null || W.forEach((T, pe) => {
|
|
5327
5328
|
var Y;
|
|
5328
5329
|
pe === ((Y = l == null ? void 0 : l.split("/")) == null ? void 0 : Y.length) - 1 && (_ = T);
|
|
5329
|
-
}),
|
|
5330
|
+
}), $e(_)) {
|
|
5330
5331
|
const T = va(_), pe = He(l);
|
|
5331
5332
|
we({
|
|
5332
5333
|
files: [pe],
|
|
@@ -5402,7 +5403,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5402
5403
|
});
|
|
5403
5404
|
!a.url.toUpperCase().includes(".OBJ") && !a.url.toUpperCase().includes(".STL") && !a.url.toUpperCase().includes(".MTL") && !a.url.toUpperCase().includes(".URDF") ? (l = URL.createObjectURL(d.data), o = Rn(a)) : l = a == null ? void 0 : a.url;
|
|
5404
5405
|
}
|
|
5405
|
-
if (
|
|
5406
|
+
if ($e(l)) {
|
|
5406
5407
|
const d = {
|
|
5407
5408
|
row: `${l}`,
|
|
5408
5409
|
suffix: Ae(o)
|
|
@@ -5459,25 +5460,25 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5459
5460
|
const d = o[i], f = (h = l[i]) == null ? void 0 : h.toLowerCase();
|
|
5460
5461
|
return f && d && typeof d == "string" ? d.toLowerCase().includes(f) : !0;
|
|
5461
5462
|
})), di = () => {
|
|
5462
|
-
|
|
5463
|
+
Me.value = !0;
|
|
5463
5464
|
}, Kr = M([]), ci = async (a, l, o = !1) => {
|
|
5464
5465
|
var i;
|
|
5465
5466
|
if (a) {
|
|
5466
5467
|
if (Ta.setTableLoading(!0), Kr.value = Object.values(a), a && ((i = Object.values(a)) != null && i.every((d) => !d)))
|
|
5467
|
-
return
|
|
5468
|
+
return de.value = tl.value;
|
|
5468
5469
|
if (o) {
|
|
5469
|
-
|
|
5470
|
+
de.value = [...Qa.value.values()].filter((d) => Object.values(d).some((f) => typeof f == "string" ? f == null ? void 0 : f.toLowerCase().includes(l == null ? void 0 : l.toLowerCase()) : !1));
|
|
5470
5471
|
return;
|
|
5471
5472
|
}
|
|
5472
|
-
|
|
5473
|
+
de.value = ui(Qa.value, a), Ta.setTableLoading(!1);
|
|
5473
5474
|
}
|
|
5474
5475
|
}, fi = async (a) => {
|
|
5475
5476
|
var o;
|
|
5476
5477
|
if (!a) return;
|
|
5477
5478
|
const l = a == null ? void 0 : a.id;
|
|
5478
|
-
l != null && (p.value.clear(), g.value.clear(), g.value.has(l) || g.value.set(l, Re(a)),
|
|
5479
|
+
l != null && (p.value.clear(), g.value.clear(), g.value.has(l) || g.value.set(l, Re(a)), de.value = (o = de.value) == null ? void 0 : o.map((i) => ({ ...i, tableEditType: (i == null ? void 0 : i.id) === l ? "edit" : "text" })), p.value.add(l), ol.value = !0);
|
|
5479
5480
|
}, Wr = async (a, l, o, i) => {
|
|
5480
|
-
i != null && i.isExistChild && Be("clickMainKey", a);
|
|
5481
|
+
i != null && i.isExistChild && Be("clickMainKey", a, o);
|
|
5481
5482
|
}, pi = () => {
|
|
5482
5483
|
Xa.value = !1;
|
|
5483
5484
|
}, vi = (a) => {
|
|
@@ -5488,7 +5489,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5488
5489
|
() => {
|
|
5489
5490
|
var o, i;
|
|
5490
5491
|
if (!r.changedContent) return;
|
|
5491
|
-
let a = (o =
|
|
5492
|
+
let a = (o = de.value) == null ? void 0 : o.map((d) => {
|
|
5492
5493
|
var f;
|
|
5493
5494
|
return d.id === ((f = r.changedContent) == null ? void 0 : f.id) && (d = {
|
|
5494
5495
|
...r.changedContent,
|
|
@@ -5496,7 +5497,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5496
5497
|
}, delete d.newId), d;
|
|
5497
5498
|
});
|
|
5498
5499
|
const l = (i = r.itemData) == null ? void 0 : i.map((d) => ((d == null ? void 0 : d.key) === "tableContents" && (d.contents = a), d));
|
|
5499
|
-
|
|
5500
|
+
de.value = a, Be("contentChange", {
|
|
5500
5501
|
contents: l,
|
|
5501
5502
|
index: r.index
|
|
5502
5503
|
}), Be("change", {
|
|
@@ -5558,25 +5559,25 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5558
5559
|
};
|
|
5559
5560
|
return o(a), l;
|
|
5560
5561
|
}, Si = async (a, l, o) => {
|
|
5561
|
-
var v, S, _, T, pe, Y, Oe, y,
|
|
5562
|
+
var v, S, _, T, pe, Y, Oe, y, se, Xe, ke, be, Ee, Ge, We, ee, Le;
|
|
5562
5563
|
Na.setImportLoading(!0), Ta.setFreshContent(!1);
|
|
5563
5564
|
let i = await gi().catch((J) => (Na.setImportLoading(!1), Promise.reject(J)));
|
|
5564
5565
|
i = i == null ? void 0 : i.filter((J) => {
|
|
5565
|
-
var
|
|
5566
|
-
return ((
|
|
5566
|
+
var Ne;
|
|
5567
|
+
return ((Ne = J == null ? void 0 : J.find((je) => je == null ? void 0 : je.id)) == null ? void 0 : Ne.id) === (l == null ? void 0 : l.id);
|
|
5567
5568
|
});
|
|
5568
5569
|
let d = mo([(v = x.value) == null ? void 0 : v.filter((J) => (J == null ? void 0 : J.label) !== "操作")]);
|
|
5569
5570
|
const f = (_ = (S = Qu(i, d)) == null ? void 0 : S[0]) == null ? void 0 : _.find((J) => {
|
|
5570
|
-
const
|
|
5571
|
-
return
|
|
5571
|
+
const Ne = J == null ? void 0 : J.key;
|
|
5572
|
+
return Ne === "Interface" || Ne === "方法体";
|
|
5572
5573
|
}), h = f == null ? void 0 : f.value;
|
|
5573
5574
|
if (!h) {
|
|
5574
5575
|
console.log("未搜索到isMain, 缺少算法执行接口"), Na.setImportLoading(!1);
|
|
5575
5576
|
return;
|
|
5576
5577
|
}
|
|
5577
5578
|
const c = x.value ? mo([x.value]) : [], b = c.find((J) => {
|
|
5578
|
-
const
|
|
5579
|
-
return
|
|
5579
|
+
const Ne = J == null ? void 0 : J.prop;
|
|
5580
|
+
return Ne === "Input1" || Ne === "输入数据.输入1" || Ne === "样本输入数据";
|
|
5580
5581
|
}), m = b == null ? void 0 : b.prop;
|
|
5581
5582
|
let L = l == null ? void 0 : l[m];
|
|
5582
5583
|
const B = await Kt().catch((J) => (Na.setImportLoading(!1), Promise.reject(J)));
|
|
@@ -5586,28 +5587,28 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5586
5587
|
});
|
|
5587
5588
|
let Q = "";
|
|
5588
5589
|
if (R) {
|
|
5589
|
-
let J = (Y = (pe = x.value) == null ? void 0 : pe.find((
|
|
5590
|
+
let J = (Y = (pe = x.value) == null ? void 0 : pe.find((ne) => (ne == null ? void 0 : ne.isMainKey) === !0)) == null ? void 0 : Y.prop;
|
|
5590
5591
|
Q = l == null ? void 0 : l[J];
|
|
5591
|
-
let
|
|
5592
|
-
|
|
5593
|
-
(
|
|
5592
|
+
let Ne = q == null ? void 0 : q.split(z), je = [];
|
|
5593
|
+
Ne == null || Ne.forEach((ne, ta) => {
|
|
5594
|
+
(Ne == null ? void 0 : Ne.length) - 1 === ta && je.push(Q), je.push(ne);
|
|
5594
5595
|
}), je = je == null ? void 0 : je[0];
|
|
5595
|
-
let Ye = await cr(je, sessionStorage.getItem("systemKey"), ""), Te = Ye == null ? void 0 : Ye.filter((
|
|
5596
|
-
Te = Te == null ? void 0 : Te.map((
|
|
5596
|
+
let Ye = await cr(je, sessionStorage.getItem("systemKey"), ""), Te = Ye == null ? void 0 : Ye.filter((ne) => (ne == null ? void 0 : ne.name) === m);
|
|
5597
|
+
Te = Te == null ? void 0 : Te.map((ne) => {
|
|
5597
5598
|
var ta;
|
|
5598
|
-
return
|
|
5599
|
+
return ne.compData = (ta = ne == null ? void 0 : ne.compData) == null ? void 0 : ta.map((sa) => {
|
|
5599
5600
|
var D;
|
|
5600
5601
|
return (sa == null ? void 0 : sa.key) === "tableContents" && (sa.contents = (D = sa == null ? void 0 : sa.contents) == null ? void 0 : D.filter((_e) => (_e == null ? void 0 : _e[1]) === (l == null ? void 0 : l[m]))), sa;
|
|
5601
|
-
}),
|
|
5602
|
-
}), (!Te || (Te == null ? void 0 : Te.length) === 0) && (Te = Ye, Te = Te == null ? void 0 : Te.map((
|
|
5602
|
+
}), ne;
|
|
5603
|
+
}), (!Te || (Te == null ? void 0 : Te.length) === 0) && (Te = Ye, Te = Te == null ? void 0 : Te.map((ne) => {
|
|
5603
5604
|
var ta;
|
|
5604
|
-
return
|
|
5605
|
+
return ne.compData = (ta = ne == null ? void 0 : ne.compData) == null ? void 0 : ta.map((sa) => {
|
|
5605
5606
|
var D;
|
|
5606
5607
|
return (sa == null ? void 0 : sa.key) === "tableContents" && (sa.contents = (D = sa == null ? void 0 : sa.contents) == null ? void 0 : D.filter((_e) => {
|
|
5607
5608
|
var pa, da;
|
|
5608
5609
|
return (_e == null ? void 0 : _e[1]) === (l == null ? void 0 : l[(da = (pa = x == null ? void 0 : x.value) == null ? void 0 : pa[0]) == null ? void 0 : da.prop]);
|
|
5609
5610
|
})), sa;
|
|
5610
|
-
}),
|
|
5611
|
+
}), ne;
|
|
5611
5612
|
})), L = bi(Te);
|
|
5612
5613
|
}
|
|
5613
5614
|
const ge = await yi(h, {
|
|
@@ -5617,23 +5618,23 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5617
5618
|
let W = [], O = [];
|
|
5618
5619
|
if (ve && ((y = Object.values(ve)) == null ? void 0 : y.length) > 0) {
|
|
5619
5620
|
let J = [];
|
|
5620
|
-
const
|
|
5621
|
-
var
|
|
5621
|
+
const Ne = new FormData(), je = (se = mi(ve)) == null ? void 0 : se.map(async (Te) => {
|
|
5622
|
+
var ne, ta;
|
|
5622
5623
|
if (!Array.isArray(Te) && (Te != null && Te.includes("http"))) {
|
|
5623
|
-
let sa = await cn.get(Te, { responseType: "blob" }), D = (ta = Te == null ? void 0 : Te.split("/")) == null ? void 0 : ta[((
|
|
5624
|
-
|
|
5624
|
+
let sa = await cn.get(Te, { responseType: "blob" }), D = (ta = Te == null ? void 0 : Te.split("/")) == null ? void 0 : ta[((ne = Te == null ? void 0 : Te.split("/")) == null ? void 0 : ne.length) - 1];
|
|
5625
|
+
Ne.append("files", sa.data, D);
|
|
5625
5626
|
} else
|
|
5626
5627
|
J.push(Te);
|
|
5627
5628
|
});
|
|
5628
|
-
if (await Promise.all(je), !Zu(
|
|
5629
|
-
let Te = await Vu(
|
|
5629
|
+
if (await Promise.all(je), !Zu(Ne)) {
|
|
5630
|
+
let Te = await Vu(Ne), ne = (ke = (Xe = Te == null ? void 0 : Te.data) == null ? void 0 : Xe.result) == null ? void 0 : ke.map((ta) => {
|
|
5630
5631
|
var sa, D, _e, pa, da, wa;
|
|
5631
5632
|
return {
|
|
5632
5633
|
name: (wa = (da = (pa = (sa = ta == null ? void 0 : ta.url) == null ? void 0 : sa.split("/")) == null ? void 0 : pa[((_e = (D = ta == null ? void 0 : ta.url) == null ? void 0 : D.split("/")) == null ? void 0 : _e.length) - 1]) == null ? void 0 : da.split(".")) == null ? void 0 : wa[0],
|
|
5633
5634
|
url: ta == null ? void 0 : ta.url
|
|
5634
5635
|
};
|
|
5635
5636
|
});
|
|
5636
|
-
J = [...J, ...
|
|
5637
|
+
J = [...J, ...ne];
|
|
5637
5638
|
}
|
|
5638
5639
|
let Ye = {};
|
|
5639
5640
|
for (let Te in l)
|
|
@@ -5652,7 +5653,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5652
5653
|
...je.value.tableData
|
|
5653
5654
|
};
|
|
5654
5655
|
return delete Ye._isOCRRow, delete Ye._ocrTableId, delete Ye._isTemp, delete Ye.tableEditType, delete Ye.index, Ye;
|
|
5655
|
-
}),
|
|
5656
|
+
}), Ne = [
|
|
5656
5657
|
{
|
|
5657
5658
|
tableName: (be = r == null ? void 0 : r.related) == null ? void 0 : be.find((je) => je == null ? void 0 : je.includes("content")),
|
|
5658
5659
|
tableContents: J
|
|
@@ -5660,7 +5661,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5660
5661
|
];
|
|
5661
5662
|
await Eo({
|
|
5662
5663
|
platId: parseInt((Ee = Ul.value) == null ? void 0 : Ee.plat_id),
|
|
5663
|
-
changeContents:
|
|
5664
|
+
changeContents: Ne
|
|
5664
5665
|
});
|
|
5665
5666
|
}
|
|
5666
5667
|
if ((W == null ? void 0 : W.length) > 0)
|
|
@@ -5672,17 +5673,19 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5672
5673
|
tableName: (We = r == null ? void 0 : r.related) == null ? void 0 : We.find((J) => J == null ? void 0 : J.includes("content")),
|
|
5673
5674
|
tableContents: W.map((J) => {
|
|
5674
5675
|
var je, Ye, Te;
|
|
5675
|
-
const
|
|
5676
|
+
const Ne = {
|
|
5676
5677
|
id: ((je = J == null ? void 0 : J.key) == null ? void 0 : je.id) ?? ((Ye = J == null ? void 0 : J.key) == null ? void 0 : Ye.rowId) ?? (J == null ? void 0 : J.id),
|
|
5677
5678
|
...((Te = J == null ? void 0 : J.value) == null ? void 0 : Te.tableData) || {}
|
|
5678
5679
|
};
|
|
5679
|
-
return delete
|
|
5680
|
+
return delete Ne._isOCRRow, delete Ne._ocrTableId, delete Ne._isTemp, delete Ne.tableEditType, delete Ne.index, Object.keys(Ne).forEach((ne) => {
|
|
5681
|
+
ne === "证书附件" && Array.isArray(Ne[ne]) && (Ne[ne] = JSON.stringify(Ne[ne]));
|
|
5682
|
+
}), Ne;
|
|
5680
5683
|
})
|
|
5681
5684
|
}
|
|
5682
5685
|
]
|
|
5683
5686
|
});
|
|
5684
5687
|
} catch (J) {
|
|
5685
|
-
ia.error(((
|
|
5688
|
+
ia.error(((Le = (ee = J == null ? void 0 : J.response) == null ? void 0 : ee.data) == null ? void 0 : Le.message) || (J == null ? void 0 : J.message) || "保存失败"), Ta.setTableLoading(!1);
|
|
5686
5689
|
return;
|
|
5687
5690
|
}
|
|
5688
5691
|
Fn(!0), Na.setImportLoading(!1), Ta.setFreshContent(!0);
|
|
@@ -5910,19 +5913,19 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5910
5913
|
});
|
|
5911
5914
|
const c = Date.now(), b = (W) => String(c * 1e3 + W);
|
|
5912
5915
|
let m = 0, L = 0;
|
|
5913
|
-
const B = [], R = [], q = d.get("编号"), Q = d.get("名称"), ge = d.get("制造厂"), ve = [];
|
|
5916
|
+
const B = [], R = [], q = d.get("系统编号") || d.get("编号"), Q = d.get("设备名称") || d.get("名称"), ge = d.get("制造厂"), ve = [];
|
|
5914
5917
|
if (o.forEach((W, O) => {
|
|
5915
5918
|
var Ge, We;
|
|
5916
5919
|
const v = { id: b(O), _isOCRRow: !0, _ocrTableId: r == null ? void 0 : r.index };
|
|
5917
|
-
for (const [ee,
|
|
5918
|
-
Object.prototype.hasOwnProperty.call(W, ee) && (v[
|
|
5920
|
+
for (const [ee, Le] of d.entries())
|
|
5921
|
+
Object.prototype.hasOwnProperty.call(W, ee) && (v[Le] = W[ee]);
|
|
5919
5922
|
if (h) {
|
|
5920
5923
|
const ee = Array.isArray((We = (Ge = l == null ? void 0 : l.result) == null ? void 0 : Ge[O]) == null ? void 0 : We.图片信息) ? l.result[O].图片信息 : [];
|
|
5921
|
-
v[h] = ee.map((
|
|
5922
|
-
url: (
|
|
5923
|
-
name: (
|
|
5924
|
-
fileName: (
|
|
5925
|
-
})).filter((
|
|
5924
|
+
v[h] = ee.map((Le) => ({
|
|
5925
|
+
url: (Le == null ? void 0 : Le.url) || "",
|
|
5926
|
+
name: (Le == null ? void 0 : Le.name) || "",
|
|
5927
|
+
fileName: (Le == null ? void 0 : Le.name) || ""
|
|
5928
|
+
})).filter((Le) => Le.url);
|
|
5926
5929
|
}
|
|
5927
5930
|
const S = (Array.isArray(l == null ? void 0 : l.result) ? l.result[O] : null) || null, _ = (Array.isArray(a) ? a[O] : null) || null, T = (_ == null ? void 0 : _.url) || "", pe = (_ == null ? void 0 : _.fileName) || (_ == null ? void 0 : _.name) || "", Y = String(pe).toLowerCase().endsWith(".pdf") || String(T).toLowerCase().endsWith(".pdf"), Oe = {
|
|
5928
5931
|
ts: Date.now(),
|
|
@@ -5934,36 +5937,36 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5934
5937
|
sourceUrl: Y ? T : "",
|
|
5935
5938
|
images: Array.isArray(S == null ? void 0 : S.图片信息) ? S.图片信息.map((ee) => ({ name: (ee == null ? void 0 : ee.name) || "", url: (ee == null ? void 0 : ee.url) || "" })).filter((ee) => ee.url) : []
|
|
5936
5939
|
}, y = (ee) => {
|
|
5937
|
-
var J,
|
|
5938
|
-
for (const [Te,
|
|
5939
|
-
Object.prototype.hasOwnProperty.call(v,
|
|
5940
|
+
var J, Ne, je, Ye;
|
|
5941
|
+
for (const [Te, ne] of d.entries())
|
|
5942
|
+
Object.prototype.hasOwnProperty.call(v, ne) && ne !== "_isOCRRow" && ne !== "_ocrTableId" && ne !== "id" && (ee[ne] = v[ne]);
|
|
5940
5943
|
if (h) {
|
|
5941
|
-
const Te = Array.isArray((
|
|
5942
|
-
ee[h] = Te.map((
|
|
5943
|
-
url: (
|
|
5944
|
-
name: (
|
|
5945
|
-
fileName: (
|
|
5946
|
-
})).filter((
|
|
5944
|
+
const Te = Array.isArray((Ne = (J = l == null ? void 0 : l.result) == null ? void 0 : J[O]) == null ? void 0 : Ne.图片信息) ? l.result[O].图片信息 : [];
|
|
5945
|
+
ee[h] = Te.map((ne) => ({
|
|
5946
|
+
url: (ne == null ? void 0 : ne.url) || "",
|
|
5947
|
+
name: (ne == null ? void 0 : ne.name) || "",
|
|
5948
|
+
fileName: (ne == null ? void 0 : ne.name) || ""
|
|
5949
|
+
})).filter((ne) => ne.url);
|
|
5947
5950
|
}
|
|
5948
|
-
const
|
|
5949
|
-
if (
|
|
5950
|
-
for (const [Te,
|
|
5951
|
-
Object.prototype.hasOwnProperty.call(v,
|
|
5951
|
+
const Le = tl.value.find((Te) => Te.id === ee.id);
|
|
5952
|
+
if (Le) {
|
|
5953
|
+
for (const [Te, ne] of d.entries())
|
|
5954
|
+
Object.prototype.hasOwnProperty.call(v, ne) && ne !== "_isOCRRow" && ne !== "_ocrTableId" && ne !== "id" && (Le[ne] = v[ne]);
|
|
5952
5955
|
if (h) {
|
|
5953
5956
|
const Te = Array.isArray((Ye = (je = l == null ? void 0 : l.result) == null ? void 0 : je[O]) == null ? void 0 : Ye.图片信息) ? l.result[O].图片信息 : [];
|
|
5954
|
-
|
|
5955
|
-
url: (
|
|
5956
|
-
name: (
|
|
5957
|
-
fileName: (
|
|
5958
|
-
})).filter((
|
|
5957
|
+
Le[h] = Te.map((ne) => ({
|
|
5958
|
+
url: (ne == null ? void 0 : ne.url) || "",
|
|
5959
|
+
name: (ne == null ? void 0 : ne.name) || "",
|
|
5960
|
+
fileName: (ne == null ? void 0 : ne.name) || ""
|
|
5961
|
+
})).filter((ne) => ne.url);
|
|
5959
5962
|
}
|
|
5960
5963
|
}
|
|
5961
5964
|
Qa.value && Qa.value.set(ee.id, ee), ot(r == null ? void 0 : r.index, ee.id, Oe), R.push(JSON.parse(JSON.stringify(ee))), m++;
|
|
5962
|
-
},
|
|
5965
|
+
}, se = (ee) => Pn(ee ? v == null ? void 0 : v[ee] : ""), Xe = se(q), ke = se(Q), be = se(ge);
|
|
5963
5966
|
if (!!(q && Q && ge && Xe && ke && be)) {
|
|
5964
|
-
const ee = (
|
|
5965
|
-
const J = Pn(q ?
|
|
5966
|
-
return J &&
|
|
5967
|
+
const ee = (de.value || []).find((Le) => {
|
|
5968
|
+
const J = Pn(q ? Le == null ? void 0 : Le[q] : ""), Ne = Pn(Q ? Le == null ? void 0 : Le[Q] : ""), je = Pn(ge ? Le == null ? void 0 : Le[ge] : "");
|
|
5969
|
+
return J && Ne && je && J === Xe && Ne === ke && je === be;
|
|
5967
5970
|
});
|
|
5968
5971
|
if (ee) {
|
|
5969
5972
|
y(ee);
|
|
@@ -5971,8 +5974,8 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5971
5974
|
}
|
|
5972
5975
|
}
|
|
5973
5976
|
if (Xe && q) {
|
|
5974
|
-
const ee = (
|
|
5975
|
-
const J = Pn(q ?
|
|
5977
|
+
const ee = (de.value || []).filter((Le) => {
|
|
5978
|
+
const J = Pn(q ? Le == null ? void 0 : Le[q] : "");
|
|
5976
5979
|
return J && J === Xe;
|
|
5977
5980
|
});
|
|
5978
5981
|
ve.push({
|
|
@@ -5985,10 +5988,10 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5985
5988
|
return;
|
|
5986
5989
|
}
|
|
5987
5990
|
ot(r == null ? void 0 : r.index, v.id, Oe), B.push(v), L++;
|
|
5988
|
-
}), R.length > 0 && (
|
|
5991
|
+
}), R.length > 0 && (de.value = [...de.value || []]), B.length > 0 && (de.value = [...de.value || [], ...B], tl.value = [...tl.value || [], ...B], B.forEach((W) => {
|
|
5989
5992
|
var O, v;
|
|
5990
5993
|
return (v = (O = Qa.value) == null ? void 0 : O.set) == null ? void 0 : v.call(O, W.id, W);
|
|
5991
|
-
})), mn.value =
|
|
5994
|
+
})), mn.value = de.value, (ve || []).length > 0) {
|
|
5992
5995
|
ct.value = (ve || []).map((W) => ({
|
|
5993
5996
|
...W,
|
|
5994
5997
|
selectedTargetId: ""
|
|
@@ -5998,13 +6001,14 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
5998
6001
|
m > 0 && ia.success(`成功匹配替换 ${m} 条数据`), R.length > 0 && Be("change", {
|
|
5999
6002
|
buttonName: "编辑",
|
|
6000
6003
|
singleContent: R,
|
|
6001
|
-
content:
|
|
6004
|
+
content: de.value,
|
|
6005
|
+
relatedContents: r == null ? void 0 : r.related,
|
|
6002
6006
|
index: r == null ? void 0 : r.index,
|
|
6003
6007
|
parentTableId: r == null ? void 0 : r.parentTableId,
|
|
6004
6008
|
column: x.value
|
|
6005
6009
|
}), B.length > 0 && Be("change", {
|
|
6006
6010
|
buttonName: "OCR批量新增",
|
|
6007
|
-
content:
|
|
6011
|
+
content: de.value,
|
|
6008
6012
|
index: r == null ? void 0 : r.index,
|
|
6009
6013
|
parentTableId: r == null ? void 0 : r.parentTableId,
|
|
6010
6014
|
column: x.value,
|
|
@@ -6128,8 +6132,8 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6128
6132
|
type: "warning"
|
|
6129
6133
|
}).then(() => {
|
|
6130
6134
|
var O, v;
|
|
6131
|
-
(O =
|
|
6132
|
-
content:
|
|
6135
|
+
(O = de.value) != null && O.find((S) => (S == null ? void 0 : S.id) === (l == null ? void 0 : l.id)) ? de.value = (v = Re(de.value)) == null ? void 0 : v.filter((S) => (S == null ? void 0 : S.id) !== (l == null ? void 0 : l.id)) : de.value = Yr(Re(de.value), l), Rp(mn.value, jt.value, l == null ? void 0 : l.id), Ta.setTableLoading(r == null ? void 0 : r.index), Be("change", {
|
|
6136
|
+
content: de.value,
|
|
6133
6137
|
fixContent: [l],
|
|
6134
6138
|
index: r == null ? void 0 : r.index,
|
|
6135
6139
|
type: "delete",
|
|
@@ -6149,8 +6153,8 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6149
6153
|
() => {
|
|
6150
6154
|
var v, S;
|
|
6151
6155
|
const O = (v = Nl.value) == null ? void 0 : v.map((_) => _.id);
|
|
6152
|
-
|
|
6153
|
-
content:
|
|
6156
|
+
de.value = (S = Re(de.value)) == null ? void 0 : S.filter((_) => !(O != null && O.includes(_.id))), Ta.setTableLoading(r == null ? void 0 : r.index), Be("change", {
|
|
6157
|
+
content: de.value,
|
|
6154
6158
|
singleContent: null,
|
|
6155
6159
|
selectItems: Nl.value,
|
|
6156
6160
|
index: r == null ? void 0 : r.index,
|
|
@@ -6202,9 +6206,9 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6202
6206
|
else if (a != null && a.includes("导出")) {
|
|
6203
6207
|
if (a === "导出选中" && ((Q = Nl.value) == null ? void 0 : Q.length) === 0)
|
|
6204
6208
|
return ia.warning(`请先勾选${a}的数据`);
|
|
6205
|
-
if (a === "导出全部" && ((ge =
|
|
6209
|
+
if (a === "导出全部" && ((ge = de.value) == null ? void 0 : ge.length) === 0)
|
|
6206
6210
|
return ia.warning("暂无数据导出");
|
|
6207
|
-
const O = (P = (ve = x.value) == null ? void 0 : ve.map((S) => S == null ? void 0 : S.label)) == null ? void 0 : P.filter((S) => S !== "操作"), v = a === "导出全部" ? Re(
|
|
6211
|
+
const O = (P = (ve = x.value) == null ? void 0 : ve.map((S) => S == null ? void 0 : S.label)) == null ? void 0 : P.filter((S) => S !== "操作"), v = a === "导出全部" ? Re(de.value) : Re(Nl.value);
|
|
6208
6212
|
v == null || v.forEach((S) => {
|
|
6209
6213
|
S == null || delete S.id;
|
|
6210
6214
|
}), Gs(v, r == null ? void 0 : r.compName, O, r == null ? void 0 : r.compName);
|
|
@@ -6214,9 +6218,9 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6214
6218
|
Ma.selectRow = l, Ma.show = !0;
|
|
6215
6219
|
else if (((me = o == null ? void 0 : o.extra) == null ? void 0 : me.type) === "methodButton") {
|
|
6216
6220
|
let O = l;
|
|
6217
|
-
l === "" && (O = Re(
|
|
6221
|
+
l === "" && (O = Re(de.value));
|
|
6218
6222
|
let v = await pd(O, x == null ? void 0 : x.value, a, r == null ? void 0 : r.index);
|
|
6219
|
-
o != null && o.index ?
|
|
6223
|
+
o != null && o.index ? de.value = (W = de.value) == null ? void 0 : W.map((S, _) => (_ === (o == null ? void 0 : o.index) && (S = v == null ? void 0 : v[0]), S)) : de.value = v;
|
|
6220
6224
|
}
|
|
6221
6225
|
}, Pi = async (a, l) => {
|
|
6222
6226
|
var o, i, d, f, h, c, b, m, L, B, R, q, Q, ge, ve, P, me, W, O, v;
|
|
@@ -6253,7 +6257,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6253
6257
|
methodName: (ge = (Q = Y == null ? void 0 : Y.value) == null ? void 0 : Q.pageData) == null ? void 0 : ge.path
|
|
6254
6258
|
};
|
|
6255
6259
|
if (!a) return;
|
|
6256
|
-
const
|
|
6260
|
+
const se = {
|
|
6257
6261
|
...a,
|
|
6258
6262
|
compData: (ve = a == null ? void 0 : a.compData) == null ? void 0 : ve.map((be) => {
|
|
6259
6263
|
var Ee;
|
|
@@ -6273,7 +6277,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6273
6277
|
type: "structure"
|
|
6274
6278
|
},
|
|
6275
6279
|
value: {
|
|
6276
|
-
pageData:
|
|
6280
|
+
pageData: se
|
|
6277
6281
|
}
|
|
6278
6282
|
}, ke = await cn.post(y.api, Xe, {
|
|
6279
6283
|
headers: {
|
|
@@ -6328,9 +6332,9 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6328
6332
|
const B = await Pi(h, l == null ? void 0 : l.prop);
|
|
6329
6333
|
if (Dn.value = B == null ? void 0 : B.newStatus, B != null && B.newMainKeyValue) return B == null ? void 0 : B.newMainKeyValue;
|
|
6330
6334
|
}
|
|
6331
|
-
if (
|
|
6335
|
+
if (de.value.some((L) => (L == null ? void 0 : L[l == null ? void 0 : l.prop]) === i)) {
|
|
6332
6336
|
const L = i;
|
|
6333
|
-
for (;
|
|
6337
|
+
for (; de.value.some((B) => (B == null ? void 0 : B[l == null ? void 0 : l.prop]) === `${L}(${d})`); )
|
|
6334
6338
|
d++;
|
|
6335
6339
|
i = `${L}(${d})`;
|
|
6336
6340
|
}
|
|
@@ -6371,16 +6375,16 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6371
6375
|
let o = [];
|
|
6372
6376
|
for (let y in a)
|
|
6373
6377
|
Array.isArray(a == null ? void 0 : a[y]) && o.push(y);
|
|
6374
|
-
U.value = Re(x.value), (c = An((h = Re(x.value)) == null ? void 0 : h.filter((y) => (y == null ? void 0 : y.label) !== "操作"))) == null || c.forEach((y,
|
|
6378
|
+
U.value = Re(x.value), (c = An((h = Re(x.value)) == null ? void 0 : h.filter((y) => (y == null ? void 0 : y.label) !== "操作"))) == null || c.forEach((y, se) => {
|
|
6375
6379
|
var Xe, ke, be;
|
|
6376
6380
|
o.find((Ee) => Ee === (y == null ? void 0 : y.prop)) || (y != null && y.formType && ((Xe = y == null ? void 0 : y.formType) == null ? void 0 : Xe.toUpperCase()) === "SELECT" || y != null && y.menuId ? l.push({
|
|
6377
6381
|
label: (ke = y == null ? void 0 : y.prop) != null && ke.includes(".") ? y == null ? void 0 : y.prop : (y == null ? void 0 : y.label) ?? (y == null ? void 0 : y.prop) ?? "",
|
|
6378
|
-
name: (y == null ? void 0 : y.prop) ?? "t" +
|
|
6382
|
+
name: (y == null ? void 0 : y.prop) ?? "t" + se,
|
|
6379
6383
|
prop: y == null ? void 0 : y.prop,
|
|
6380
6384
|
type: "Select",
|
|
6381
6385
|
// (!t?.formType || t?.formType === '') ? 'Input' : t?.formType,
|
|
6382
6386
|
value: (a == null ? void 0 : a[y == null ? void 0 : y.prop]) ?? (y == null ? void 0 : y.value) ?? "",
|
|
6383
|
-
id: (y == null ? void 0 : y.id) ??
|
|
6387
|
+
id: (y == null ? void 0 : y.id) ?? se,
|
|
6384
6388
|
contents: (y == null ? void 0 : y.options) ?? [],
|
|
6385
6389
|
width: 1,
|
|
6386
6390
|
isFormColHidden: y == null ? void 0 : y.isFormColHidden,
|
|
@@ -6395,10 +6399,10 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6395
6399
|
}) : l.push({
|
|
6396
6400
|
label: (be = y == null ? void 0 : y.prop) != null && be.includes(".") ? y == null ? void 0 : y.prop : (y == null ? void 0 : y.label) ?? (y == null ? void 0 : y.prop) ?? "",
|
|
6397
6401
|
prop: y == null ? void 0 : y.prop,
|
|
6398
|
-
name: (y == null ? void 0 : y.prop) ?? "t" +
|
|
6402
|
+
name: (y == null ? void 0 : y.prop) ?? "t" + se,
|
|
6399
6403
|
type: !(y != null && y.formType) || (y == null ? void 0 : y.formType) === "" ? "Input" : y == null ? void 0 : y.formType,
|
|
6400
6404
|
value: (a == null ? void 0 : a[y == null ? void 0 : y.prop]) ?? (y == null ? void 0 : y.value) ?? "",
|
|
6401
|
-
id: (y == null ? void 0 : y.id) ??
|
|
6405
|
+
id: (y == null ? void 0 : y.id) ?? se,
|
|
6402
6406
|
contents: (y == null ? void 0 : y.options) ?? [],
|
|
6403
6407
|
width: 1,
|
|
6404
6408
|
isFormColHidden: y == null ? void 0 : y.isFormColHidden,
|
|
@@ -6412,11 +6416,11 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6412
6416
|
let i = An((b = Re(x.value)) == null ? void 0 : b.filter((y) => (y == null ? void 0 : y.label) !== "操作"));
|
|
6413
6417
|
Cl.value && ((m = Cl.value) == null ? void 0 : m.length) > 0 && (Cl.value = (L = Re(Cl).value) == null ? void 0 : L.map((y) => {
|
|
6414
6418
|
var Xe;
|
|
6415
|
-
let
|
|
6416
|
-
return
|
|
6419
|
+
let se = (y == null ? void 0 : y.prop) || ((Xe = i == null ? void 0 : i.find((ke) => (ke == null ? void 0 : ke.label) === (y == null ? void 0 : y.label))) == null ? void 0 : Xe.prop);
|
|
6420
|
+
return se && (y.value = a[se]), y;
|
|
6417
6421
|
})), na.value = Cl.value && ((B = Cl.value) == null ? void 0 : B.length) > 0 ? qu(Cl.value) : l;
|
|
6418
6422
|
let d = [], f = (R = r.itemData) == null ? void 0 : R.filter((y) => (y == null ? void 0 : y.key) === "filterAllType");
|
|
6419
|
-
if ((f == null ? void 0 : f.length) > 0 && (d = (f == null ? void 0 : f.map((
|
|
6423
|
+
if ((f == null ? void 0 : f.length) > 0 && (d = (f == null ? void 0 : f.map((se) => se == null ? void 0 : se.value)).flat()), (d == null ? void 0 : d.length) > 0) {
|
|
6420
6424
|
let y = (Q = d == null ? void 0 : d.filter((ke) => {
|
|
6421
6425
|
var be;
|
|
6422
6426
|
return (be = ke == null ? void 0 : ke.content) == null ? void 0 : be.includes("@Type");
|
|
@@ -6434,23 +6438,23 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6434
6438
|
});
|
|
6435
6439
|
}
|
|
6436
6440
|
}
|
|
6437
|
-
let
|
|
6441
|
+
let se = (pe = na.value) == null ? void 0 : pe.filter((ke) => {
|
|
6438
6442
|
var be, Ee;
|
|
6439
6443
|
return ((be = ke == null ? void 0 : ke.optionUrl) == null ? void 0 : be.menuId) && ((Ee = ke == null ? void 0 : ke.optionUrl) == null ? void 0 : Ee.menuId) !== "";
|
|
6440
6444
|
}), Xe;
|
|
6441
|
-
if (
|
|
6445
|
+
if (se == null || se.forEach((ke) => {
|
|
6442
6446
|
var Ee, Ge;
|
|
6443
6447
|
if (Xe !== void 0) return;
|
|
6444
6448
|
let be = (Ee = ke == null ? void 0 : ke.optionUrl) == null ? void 0 : Ee.menuId;
|
|
6445
|
-
((Ge =
|
|
6449
|
+
((Ge = se == null ? void 0 : se.filter((We) => {
|
|
6446
6450
|
var ee;
|
|
6447
6451
|
return ((ee = We == null ? void 0 : We.optionUrl) == null ? void 0 : ee.menuId) === be;
|
|
6448
6452
|
})) == null ? void 0 : Ge.length) > 1 && (Xe = be);
|
|
6449
|
-
}),
|
|
6453
|
+
}), se = se == null ? void 0 : se.filter((ke) => {
|
|
6450
6454
|
var be;
|
|
6451
6455
|
return ((be = ke == null ? void 0 : ke.optionUrl) == null ? void 0 : be.menuId) === Xe;
|
|
6452
|
-
}), (
|
|
6453
|
-
let ke =
|
|
6456
|
+
}), (se == null ? void 0 : se.length) > 1) {
|
|
6457
|
+
let ke = se == null ? void 0 : se.map((We) => We == null ? void 0 : We.prop), be = se == null ? void 0 : se.map((We) => We == null ? void 0 : We.label), Ee = se == null ? void 0 : se.map((We) => We == null ? void 0 : We.value), Ge = (Y = Re(se)) == null ? void 0 : Y[0];
|
|
6454
6458
|
Ge.label = be == null ? void 0 : be.join("·"), Ge.value = Ee == null ? void 0 : Ee.join(" "), Ge.value.trim() === "" && (Ge.value = ""), Ge.prop = ke == null ? void 0 : ke.join("·"), Ge.usingType = "parent", na.value.unshift(Ge), na.value = (Oe = na.value) == null ? void 0 : Oe.map((We) => (ke != null && ke.find((ee) => ee === (We == null ? void 0 : We.prop)) && (We.isFormColHidden = !0), We));
|
|
6455
6459
|
}
|
|
6456
6460
|
}
|
|
@@ -6549,8 +6553,8 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6549
6553
|
return delete d.children, d;
|
|
6550
6554
|
}) : [];
|
|
6551
6555
|
}, Fn = (a = !0, l, o) => {
|
|
6552
|
-
var m, L, B, R, q, Q, ge, ve, P, me, W, O, v, S, _, T, pe, Y, Oe, y,
|
|
6553
|
-
let i = An((m = Re(x.value)) == null ? void 0 : m.filter((ee) => (ee == null ? void 0 : ee.label) !== "操作")), d, f = Re(
|
|
6556
|
+
var m, L, B, R, q, Q, ge, ve, P, me, W, O, v, S, _, T, pe, Y, Oe, y, se, Xe, ke, be, Ee, Ge, We;
|
|
6557
|
+
let i = An((m = Re(x.value)) == null ? void 0 : m.filter((ee) => (ee == null ? void 0 : ee.label) !== "操作")), d, f = Re(de.value);
|
|
6554
6558
|
if (!rl.value) {
|
|
6555
6559
|
bl.value = !1;
|
|
6556
6560
|
return;
|
|
@@ -6564,7 +6568,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6564
6568
|
children: rl.value.children
|
|
6565
6569
|
} : ee = { id: ua.value.toString() }, ee != null && ee.children && (ee = {
|
|
6566
6570
|
...ee,
|
|
6567
|
-
children: (L = ee.children) == null ? void 0 : L.map((
|
|
6571
|
+
children: (L = ee.children) == null ? void 0 : L.map((Le) => eo(Le, l, o))
|
|
6568
6572
|
}), f.push(Object.assign(rl.value, ee)), d = Object.assign(rl.value, ee);
|
|
6569
6573
|
} else
|
|
6570
6574
|
f = (B = Vr(f, i)) == null ? void 0 : B.newContents, d = (R = Vr(f, i)) == null ? void 0 : R.currentSelectContents;
|
|
@@ -6572,34 +6576,34 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6572
6576
|
if (((Q = h == null ? void 0 : h.contents) == null ? void 0 : Q.length) > 0) {
|
|
6573
6577
|
Za.value = "编辑";
|
|
6574
6578
|
const ee = [];
|
|
6575
|
-
f == null || f.forEach((
|
|
6579
|
+
f == null || f.forEach((Le, J) => {
|
|
6576
6580
|
var je;
|
|
6577
|
-
let
|
|
6578
|
-
if (Array.isArray(
|
|
6581
|
+
let Ne = {};
|
|
6582
|
+
if (Array.isArray(Le)) {
|
|
6579
6583
|
let Ye = [];
|
|
6580
|
-
|
|
6584
|
+
Le == null || Le.filter((Te) => !(Te != null && Te.id)).forEach((Te, ne) => {
|
|
6581
6585
|
var ta, sa, D, _e, pa, da, wa;
|
|
6582
|
-
if ((sa = (ta = El.value) == null ? void 0 : ta[
|
|
6586
|
+
if ((sa = (ta = El.value) == null ? void 0 : ta[ne]) != null && sa.prop && !Array.isArray(Te)) {
|
|
6583
6587
|
let k = {};
|
|
6584
|
-
k[El.value[
|
|
6588
|
+
k[El.value[ne].column] = Te, ba != null && ba.value && ((D = ba == null ? void 0 : ba.value) == null ? void 0 : D.length) > 0 && ((_e = ba == null ? void 0 : ba.value) != null && _e.find((Ie) => JSON.stringify(Ie == null ? void 0 : Ie[0]) === JSON.stringify(k))) && (Ye = (pa = ba == null ? void 0 : ba.value) == null ? void 0 : pa.find((Ie) => JSON.stringify(Ie == null ? void 0 : Ie[0]) === JSON.stringify(k))), Ye && Ye.length > 0 ? Ne[El.value[ne].prop] = Ye != null && Ye.find((Ie) => {
|
|
6585
6589
|
var ca;
|
|
6586
|
-
return ((ca = Object.keys(Ie)) == null ? void 0 : ca[0]) === El.value[
|
|
6590
|
+
return ((ca = Object.keys(Ie)) == null ? void 0 : ca[0]) === El.value[ne].column;
|
|
6587
6591
|
}) ? (da = Ye == null ? void 0 : Ye.find((Ie) => {
|
|
6588
6592
|
var ca;
|
|
6589
|
-
return ((ca = Object.keys(Ie)) == null ? void 0 : ca[0]) === El.value[
|
|
6590
|
-
})) == null ? void 0 : da[El.value[
|
|
6591
|
-
} else Array.isArray(Te) && ((wa = El.value[
|
|
6593
|
+
return ((ca = Object.keys(Ie)) == null ? void 0 : ca[0]) === El.value[ne].column;
|
|
6594
|
+
})) == null ? void 0 : da[El.value[ne].column] : Te : Ne[El.value[ne].prop] = Te;
|
|
6595
|
+
} else Array.isArray(Te) && ((wa = El.value[ne]) != null && wa.prop ? Ne[El.value[ne].prop] = Te : Ne.children = br(Te, El.value));
|
|
6592
6596
|
});
|
|
6593
6597
|
} else
|
|
6594
|
-
|
|
6595
|
-
if (Array.isArray(
|
|
6596
|
-
const Ye = (je =
|
|
6597
|
-
ee.push(Object.assign(
|
|
6598
|
-
} else
|
|
6599
|
-
}),
|
|
6598
|
+
Ne = Le;
|
|
6599
|
+
if (Array.isArray(Le) && Le.some((Ye) => Ye == null ? void 0 : Ye.id)) {
|
|
6600
|
+
const Ye = (je = Le == null ? void 0 : Le.find((Te) => Te.id)) == null ? void 0 : je.id;
|
|
6601
|
+
ee.push(Object.assign(Ne, { id: Hr(Ye) }));
|
|
6602
|
+
} else Ne.id ? ee.push(Ne) : ee.push(Object.assign(Ne, { id: J.toString() }));
|
|
6603
|
+
}), de.value = ro(ee, h, x.value);
|
|
6600
6604
|
} else
|
|
6601
|
-
|
|
6602
|
-
no(
|
|
6605
|
+
de.value = f;
|
|
6606
|
+
no(de.value), mn.value = de.value;
|
|
6603
6607
|
const c = Dp(mn.value, jt.value, f);
|
|
6604
6608
|
let b = [];
|
|
6605
6609
|
if (Yl.value ? (b = (ge = Re(Yl).value.singleContent) == null ? void 0 : ge.filter((ee) => (ee == null ? void 0 : ee.id) !== (d == null ? void 0 : d.id)), b.push(d)) : b = [d], ol.value) {
|
|
@@ -6618,35 +6622,35 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6618
6622
|
let ee = (v = r.itemData) == null ? void 0 : v.filter((J) => (J == null ? void 0 : J.key) === "filterAllType");
|
|
6619
6623
|
ee = Array.from(
|
|
6620
6624
|
new Map(
|
|
6621
|
-
ee.filter(Boolean).map((J,
|
|
6625
|
+
ee.filter(Boolean).map((J, Ne) => [J.value, { ...J, _idx: Ne }])
|
|
6622
6626
|
// 2. 带索引,保证顺序
|
|
6623
6627
|
).values()
|
|
6624
6628
|
// 3. Map 自动保留“后者”
|
|
6625
|
-
).sort((J,
|
|
6626
|
-
const
|
|
6629
|
+
).sort((J, Ne) => J._idx - Ne._idx).map(({ _idx: J, ...Ne }) => Ne), ee = (S = ee == null ? void 0 : ee[(ee == null ? void 0 : ee.length) - 1]) == null ? void 0 : S.value;
|
|
6630
|
+
const Le = {
|
|
6627
6631
|
fixContent: [d],
|
|
6628
6632
|
buttonName: Za.value,
|
|
6629
6633
|
relatedContents: r == null ? void 0 : r.related
|
|
6630
6634
|
};
|
|
6631
|
-
Ta.setTableLoading(r == null ? void 0 : r.index), bl.value = !1, rl.value = void 0, Be("change",
|
|
6635
|
+
Ta.setTableLoading(r == null ? void 0 : r.index), bl.value = !1, rl.value = void 0, Be("change", Le);
|
|
6632
6636
|
}
|
|
6633
6637
|
if ((pe = (T = (_ = na.value) == null ? void 0 : _[0]) == null ? void 0 : T.optionUrl) != null && pe.menuId) {
|
|
6634
6638
|
bl.value = !1;
|
|
6635
|
-
let ee = (Y = r.itemData) == null ? void 0 : Y.filter((
|
|
6639
|
+
let ee = (Y = r.itemData) == null ? void 0 : Y.filter((Le) => (Le == null ? void 0 : Le.key) === "filterAllType");
|
|
6636
6640
|
if ((ee == null ? void 0 : ee.length) > 0) {
|
|
6637
|
-
let
|
|
6641
|
+
let Le = ee == null ? void 0 : ee.map((je) => je == null ? void 0 : je.value), J = (se = (y = (Oe = Le.flat().find((je) => {
|
|
6638
6642
|
var Ye;
|
|
6639
6643
|
return (Ye = je == null ? void 0 : je.content) == null ? void 0 : Ye.includes("@Num");
|
|
6640
|
-
})) == null ? void 0 : Oe.content) == null ? void 0 : y.split(":")) == null ? void 0 :
|
|
6641
|
-
((be = (ke = (Xe =
|
|
6644
|
+
})) == null ? void 0 : Oe.content) == null ? void 0 : y.split(":")) == null ? void 0 : se[1];
|
|
6645
|
+
((be = (ke = (Xe = Le.flat().find((je) => {
|
|
6642
6646
|
var Ye;
|
|
6643
6647
|
return (Ye = je == null ? void 0 : je.content) == null ? void 0 : Ye.includes("@Type:");
|
|
6644
|
-
})) == null ? void 0 : Xe.content) == null ? void 0 : ke.split(":")) == null ? void 0 : be[1]) !== "Manual" && (J = parseInt(J),
|
|
6648
|
+
})) == null ? void 0 : Xe.content) == null ? void 0 : ke.split(":")) == null ? void 0 : be[1]) !== "Manual" && (J = parseInt(J), de.value = (We = de.value) == null ? void 0 : We.slice(((Ee = de.value) == null ? void 0 : Ee.length) - J, (Ge = de.value) == null ? void 0 : Ge.length));
|
|
6645
6649
|
}
|
|
6646
6650
|
}
|
|
6647
6651
|
};
|
|
6648
6652
|
mr(() => {
|
|
6649
|
-
x.value = [],
|
|
6653
|
+
x.value = [], de.value = [], U.value = [], Pa.value = [], Cl.value = [], Ml.value = [], Nn.value = [], Ua.value = [], na.value = [], Nl.value = [], u.value = null;
|
|
6650
6654
|
});
|
|
6651
6655
|
const Jt = async (a, l, o) => {
|
|
6652
6656
|
var m, L, B, R, q, Q, ge, ve, P, me, W;
|
|
@@ -6654,15 +6658,15 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6654
6658
|
const i = Re(r.itemData), d = i == null ? void 0 : i.map((O) => {
|
|
6655
6659
|
var v;
|
|
6656
6660
|
return (O == null ? void 0 : O.key) === "header" && ((v = O.contents) == null || v.map((S, _) => {
|
|
6657
|
-
var T, pe, Y, Oe, y,
|
|
6658
|
-
return S.type = S != null && S.type ? S.type : (Oe = (Y = (pe = (T = S == null ? void 0 : S.key) == null ? void 0 : T.split("$")) == null ? void 0 : pe[1]) == null ? void 0 : Y.split("(")) != null && Oe[0] ? (
|
|
6661
|
+
var T, pe, Y, Oe, y, se, Xe, ke, be, Ee, Ge, We, ee, Le, J, Ne, je, Ye, Te;
|
|
6662
|
+
return S.type = S != null && S.type ? S.type : (Oe = (Y = (pe = (T = S == null ? void 0 : S.key) == null ? void 0 : T.split("$")) == null ? void 0 : pe[1]) == null ? void 0 : Y.split("(")) != null && Oe[0] ? (se = (y = Vt) == null ? void 0 : y.find((ne) => {
|
|
6659
6663
|
var ta, sa, D, _e;
|
|
6660
|
-
return (
|
|
6661
|
-
})) == null ? void 0 :
|
|
6662
|
-
label:
|
|
6663
|
-
value:
|
|
6664
|
-
})) : [], (
|
|
6665
|
-
groupSelect: (Te = S == null ? void 0 : S.groupSelect) == null ? void 0 : Te.split(/[::]/).map((
|
|
6664
|
+
return (ne == null ? void 0 : ne.key) === ((_e = (D = (sa = (ta = S == null ? void 0 : S.key) == null ? void 0 : ta.split("$")) == null ? void 0 : sa[1]) == null ? void 0 : D.split("(")) == null ? void 0 : _e[0]);
|
|
6665
|
+
})) == null ? void 0 : se.value : "Input", S.options = S != null && S.options ? S.options : ((be = (ke = (Xe = S == null ? void 0 : S.key) == null ? void 0 : Xe.split("$")) == null ? void 0 : ke[1]) == null ? void 0 : be.length) > 0 ? (ee = (We = rr((Ge = (Ee = S == null ? void 0 : S.key) == null ? void 0 : Ee.split("$")) == null ? void 0 : Ge[1])) == null ? void 0 : We.split(",")) == null ? void 0 : ee.map((ne) => ({
|
|
6666
|
+
label: ne,
|
|
6667
|
+
value: ne
|
|
6668
|
+
})) : [], (Le = S == null ? void 0 : S.key) != null && Le.includes("$") && (S.key = (Ne = (J = S == null ? void 0 : S.key) == null ? void 0 : J.split("$")) == null ? void 0 : Ne[0]), S.value = (je = Object.values(l)) == null ? void 0 : je[_], S.optionUrl = S != null && S.formMenuSelect && ((Ye = S == null ? void 0 : S.formMenuSelect) == null ? void 0 : Ye.length) > 0 ? {
|
|
6669
|
+
groupSelect: (Te = S == null ? void 0 : S.groupSelect) == null ? void 0 : Te.split(/[::]/).map((ne) => ne.trim()),
|
|
6666
6670
|
menuSelect: S == null ? void 0 : S.formMenuSelect,
|
|
6667
6671
|
selectRelateType: "",
|
|
6668
6672
|
type: (S == null ? void 0 : S.formType) ?? (S != null && S.groupSelect ? "Select" : "")
|
|
@@ -6684,14 +6688,14 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6684
6688
|
}), (P = b == null ? void 0 : b.optionUrl) != null && P.menuSelect) {
|
|
6685
6689
|
let O = await or(b), v;
|
|
6686
6690
|
if (O == null || O.forEach((S) => {
|
|
6687
|
-
var _, T, pe, Y, Oe, y,
|
|
6688
|
-
c === ((T = (_ = b == null ? void 0 : b.optionUrl) == null ? void 0 : _.groupSelect) == null ? void 0 : T[1]) && ((Oe = (Y = (pe = b == null ? void 0 : b.optionUrl) == null ? void 0 : pe.groupSelect) == null ? void 0 : Y[1]) != null && Oe.includes("[")) && ((be = Re(S)) == null ? void 0 : be[(ke = (Xe = (
|
|
6691
|
+
var _, T, pe, Y, Oe, y, se, Xe, ke, be;
|
|
6692
|
+
c === ((T = (_ = b == null ? void 0 : b.optionUrl) == null ? void 0 : _.groupSelect) == null ? void 0 : T[1]) && ((Oe = (Y = (pe = b == null ? void 0 : b.optionUrl) == null ? void 0 : pe.groupSelect) == null ? void 0 : Y[1]) != null && Oe.includes("[")) && ((be = Re(S)) == null ? void 0 : be[(ke = (Xe = (se = (y = b == null ? void 0 : b.optionUrl) == null ? void 0 : y.groupSelect) == null ? void 0 : se[1]) == null ? void 0 : Xe.replaceAll("[", "")) == null ? void 0 : ke.replaceAll("]", "")]) === (b == null ? void 0 : b.value) && (v = S);
|
|
6689
6693
|
}), v) {
|
|
6690
6694
|
let S = Re(f);
|
|
6691
6695
|
S = S == null ? void 0 : S.map((T) => {
|
|
6692
|
-
var pe, Y, Oe, y,
|
|
6693
|
-
return (v != null && v[T == null ? void 0 : T.label] || v != null && v[(y = (Oe = (Y = (pe = T == null ? void 0 : T.optionUrl) == null ? void 0 : pe.groupSelect) == null ? void 0 : Y[1]) == null ? void 0 : Oe.replaceAll("[", "")) == null ? void 0 : y.replaceAll("]", "")]) && ((ke = (Xe = (
|
|
6694
|
-
}),
|
|
6696
|
+
var pe, Y, Oe, y, se, Xe, ke, be, Ee, Ge, We;
|
|
6697
|
+
return (v != null && v[T == null ? void 0 : T.label] || v != null && v[(y = (Oe = (Y = (pe = T == null ? void 0 : T.optionUrl) == null ? void 0 : pe.groupSelect) == null ? void 0 : Y[1]) == null ? void 0 : Oe.replaceAll("[", "")) == null ? void 0 : y.replaceAll("]", "")]) && ((ke = (Xe = (se = T == null ? void 0 : T.optionUrl) == null ? void 0 : se.groupSelect) == null ? void 0 : Xe[1]) != null && ke.includes("[")) && (T.value = (v == null ? void 0 : v[T == null ? void 0 : T.label]) || (v == null ? void 0 : v[(We = (Ge = (Ee = (be = T == null ? void 0 : T.optionUrl) == null ? void 0 : be.groupSelect) == null ? void 0 : Ee[1]) == null ? void 0 : Ge.replaceAll("[", "")) == null ? void 0 : We.replaceAll("]", "")])), T;
|
|
6698
|
+
}), de.value = (me = Re(de.value)) == null ? void 0 : me.map((T) => {
|
|
6695
6699
|
if ((T == null ? void 0 : T.id) === (l == null ? void 0 : l.id)) {
|
|
6696
6700
|
const pe = {};
|
|
6697
6701
|
return S == null || S.forEach((Y) => {
|
|
@@ -6703,15 +6707,15 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6703
6707
|
let _ = Re(S);
|
|
6704
6708
|
_ = _ == null ? void 0 : _.map((T) => {
|
|
6705
6709
|
var pe, Y, Oe, y;
|
|
6706
|
-
return (Y = (pe = T == null ? void 0 : T.optionUrl) == null ? void 0 : pe.menuSelect) != null && Y.some((
|
|
6710
|
+
return (Y = (pe = T == null ? void 0 : T.optionUrl) == null ? void 0 : pe.menuSelect) != null && Y.some((se) => se == null ? void 0 : se.includes) && (T.optionUrl.menuSelect = (y = (Oe = T == null ? void 0 : T.optionUrl) == null ? void 0 : Oe.menuSelect) == null ? void 0 : y.map((se) => {
|
|
6707
6711
|
var Xe, ke, be, Ee;
|
|
6708
|
-
if (
|
|
6709
|
-
let Ge = (ke = (Xe =
|
|
6710
|
-
|
|
6712
|
+
if (se != null && se.includes("[")) {
|
|
6713
|
+
let Ge = (ke = (Xe = se == null ? void 0 : se.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : Xe.split(":")) == null ? void 0 : ke[1];
|
|
6714
|
+
se = (Ee = (be = Re(S)) == null ? void 0 : be.find((We) => (We == null ? void 0 : We.label) === Ge)) == null ? void 0 : Ee.value;
|
|
6711
6715
|
}
|
|
6712
|
-
return
|
|
6716
|
+
return se;
|
|
6713
6717
|
})), T;
|
|
6714
|
-
}),
|
|
6718
|
+
}), de.value = (W = Re(de.value)) == null ? void 0 : W.map((T) => {
|
|
6715
6719
|
if ((T == null ? void 0 : T.id) === (l == null ? void 0 : l.id)) {
|
|
6716
6720
|
const pe = {};
|
|
6717
6721
|
return _ == null || _.forEach((Y) => {
|
|
@@ -6723,18 +6727,18 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6723
6727
|
}
|
|
6724
6728
|
}
|
|
6725
6729
|
}, Ki = async (a) => {
|
|
6726
|
-
var q, Q, ge, ve, P, me, W, O, v, S, _, T, pe, Y, Oe, y,
|
|
6730
|
+
var q, Q, ge, ve, P, me, W, O, v, S, _, T, pe, Y, Oe, y, se, Xe, ke, be, Ee, Ge, We, ee, Le, J, Ne, je, Ye, Te, ne, ta, sa;
|
|
6727
6731
|
if (!a) return;
|
|
6728
6732
|
rl.value = a;
|
|
6729
6733
|
const l = Re(r.itemData);
|
|
6730
6734
|
let o = l == null ? void 0 : l.map((D) => {
|
|
6731
6735
|
var _e, pa, da, wa;
|
|
6732
6736
|
return (D == null ? void 0 : D.key) === "header" && (Array.isArray((_e = D.contents) == null ? void 0 : _e[0]) ? D.contents = (da = An((pa = D.contents) == null ? void 0 : pa[0])) == null ? void 0 : da.map((k, Ie) => {
|
|
6733
|
-
var ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga, C,
|
|
6737
|
+
var ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga, C, te, Ze, Ja, Ea, Sa, Ra, al, qa, pl, ul, cl, ae, N;
|
|
6734
6738
|
return k.type = k != null && k.type ? k.type : (ja = (ya = (w = (ca = k == null ? void 0 : k.key) == null ? void 0 : ca.split("$")) == null ? void 0 : w[1]) == null ? void 0 : ya.split("(")) != null && ja[0] ? (Ha = (za = Vt) == null ? void 0 : za.find((De) => {
|
|
6735
6739
|
var Aa, Ue, ra, aa;
|
|
6736
6740
|
return (De == null ? void 0 : De.key) === ((aa = (ra = (Ue = (Aa = k == null ? void 0 : k.key) == null ? void 0 : Aa.split("$")) == null ? void 0 : Ue[1]) == null ? void 0 : ra.split("(")) == null ? void 0 : aa[0]);
|
|
6737
|
-
})) == null ? void 0 : Ha.value : "Input", k.options = k != null && k.options ? k.options : ((Ya = (Wa = (Ka = k == null ? void 0 : k.key) == null ? void 0 : Ka.split("$")) == null ? void 0 : Wa[1]) == null ? void 0 : Ya.length) > 0 ? (Ze = (
|
|
6741
|
+
})) == null ? void 0 : Ha.value : "Input", k.options = k != null && k.options ? k.options : ((Ya = (Wa = (Ka = k == null ? void 0 : k.key) == null ? void 0 : Ka.split("$")) == null ? void 0 : Wa[1]) == null ? void 0 : Ya.length) > 0 ? (Ze = (te = rr((C = (Ga = k == null ? void 0 : k.key) == null ? void 0 : Ga.split("$")) == null ? void 0 : C[1])) == null ? void 0 : te.split(",")) == null ? void 0 : Ze.map((De) => ({
|
|
6738
6742
|
label: De,
|
|
6739
6743
|
value: De
|
|
6740
6744
|
})) : [], (Ja = k == null ? void 0 : k.key) != null && Ja.includes("$") && (k.key = (Sa = (Ea = k == null ? void 0 : k.key) == null ? void 0 : Ea.split("$")) == null ? void 0 : Sa[0]), ((qa = (al = (Ra = na.value) == null ? void 0 : Ra.find((De) => (De == null ? void 0 : De.prop) === (k == null ? void 0 : k.prop))) == null ? void 0 : al.optionUrl) == null ? void 0 : qa.multiple) === !0 && !Array.isArray((pl = Object.values(a)) == null ? void 0 : pl[Ie]) ? k.value = [(ul = Object.values(a)) == null ? void 0 : ul[Ie]] : k.value = (cl = Object.values(a)) == null ? void 0 : cl[Ie], k.optionUrl = k != null && k.formMenuSelect && ((ae = k == null ? void 0 : k.formMenuSelect) == null ? void 0 : ae.length) > 0 ? {
|
|
@@ -6744,11 +6748,11 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6744
6748
|
type: (k == null ? void 0 : k.formType) ?? (k != null && k.groupSelect ? "Select" : "")
|
|
6745
6749
|
} : null, k;
|
|
6746
6750
|
}) : D.contents = (wa = D.contents) == null ? void 0 : wa.map((k, Ie) => {
|
|
6747
|
-
var ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga, C,
|
|
6751
|
+
var ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga, C, te, Ze, Ja, Ea, Sa, Ra, al, qa, pl, ul, cl, ae, N;
|
|
6748
6752
|
return k.type = k != null && k.type ? k.type : (ja = (ya = (w = (ca = k == null ? void 0 : k.key) == null ? void 0 : ca.split("$")) == null ? void 0 : w[1]) == null ? void 0 : ya.split("(")) != null && ja[0] ? (Ha = (za = Vt) == null ? void 0 : za.find((De) => {
|
|
6749
6753
|
var Aa, Ue, ra, aa;
|
|
6750
6754
|
return (De == null ? void 0 : De.key) === ((aa = (ra = (Ue = (Aa = k == null ? void 0 : k.key) == null ? void 0 : Aa.split("$")) == null ? void 0 : Ue[1]) == null ? void 0 : ra.split("(")) == null ? void 0 : aa[0]);
|
|
6751
|
-
})) == null ? void 0 : Ha.value : "Input", k.options = k != null && k.options ? k.options : ((Ya = (Wa = (Ka = k == null ? void 0 : k.key) == null ? void 0 : Ka.split("$")) == null ? void 0 : Wa[1]) == null ? void 0 : Ya.length) > 0 ? (Ze = (
|
|
6755
|
+
})) == null ? void 0 : Ha.value : "Input", k.options = k != null && k.options ? k.options : ((Ya = (Wa = (Ka = k == null ? void 0 : k.key) == null ? void 0 : Ka.split("$")) == null ? void 0 : Wa[1]) == null ? void 0 : Ya.length) > 0 ? (Ze = (te = rr((C = (Ga = k == null ? void 0 : k.key) == null ? void 0 : Ga.split("$")) == null ? void 0 : C[1])) == null ? void 0 : te.split(",")) == null ? void 0 : Ze.map((De) => ({
|
|
6752
6756
|
label: De,
|
|
6753
6757
|
value: De
|
|
6754
6758
|
})) : [], (Ja = k == null ? void 0 : k.key) != null && Ja.includes("$") && (k.key = (Sa = (Ea = k == null ? void 0 : k.key) == null ? void 0 : Ea.split("$")) == null ? void 0 : Sa[0]), ((qa = (al = (Ra = na.value) == null ? void 0 : Ra.find((De) => (De == null ? void 0 : De.prop) === (k == null ? void 0 : k.prop))) == null ? void 0 : al.optionUrl) == null ? void 0 : qa.multiple) === !0 && !Array.isArray((pl = Object.values(a)) == null ? void 0 : pl[Ie]) ? k.value = [(ul = Object.values(a)) == null ? void 0 : ul[Ie]] : k.value = (cl = Object.values(a)) == null ? void 0 : cl[Ie], k.optionUrl = k != null && k.formMenuSelect && ((ae = k == null ? void 0 : k.formMenuSelect) == null ? void 0 : ae.length) > 0 ? {
|
|
@@ -6795,7 +6799,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6795
6799
|
if ((y = c == null ? void 0 : c.optionUrl) != null && y.menuSelect && Bn.value || R) {
|
|
6796
6800
|
let D = await or(c, R), _e;
|
|
6797
6801
|
if (D == null || D.forEach((k) => {
|
|
6798
|
-
var Ie, ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga, C,
|
|
6802
|
+
var Ie, ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga, C, te, Ze, Ja, Ea, Sa, Ra, al, qa, pl, ul, cl, ae, N, De, Aa;
|
|
6799
6803
|
if (!R && f === ((ca = (Ie = c == null ? void 0 : c.optionUrl) == null ? void 0 : Ie.groupSelect) == null ? void 0 : ca[1]) && ((ja = (ya = (w = c == null ? void 0 : c.optionUrl) == null ? void 0 : w.groupSelect) == null ? void 0 : ya[1]) != null && ja.includes("[")) && ((Ya = Re(k)) == null ? void 0 : Ya[(Wa = (Ka = (Ha = (za = c == null ? void 0 : c.optionUrl) == null ? void 0 : za.groupSelect) == null ? void 0 : Ha[1]) == null ? void 0 : Ka.replaceAll("[", "")) == null ? void 0 : Wa.replaceAll("]", "")]) === (c == null ? void 0 : c.value) && (_e = k), R) {
|
|
6800
6804
|
let Ue = (C = (Ga = na.value) == null ? void 0 : Ga.find((ka) => {
|
|
6801
6805
|
var La;
|
|
@@ -6803,7 +6807,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6803
6807
|
})) == null ? void 0 : C.prop, ra = a[Ue];
|
|
6804
6808
|
if (Ue != null && Ue.includes("·"))
|
|
6805
6809
|
if (!Array.isArray(a[Ue]))
|
|
6806
|
-
ra = (Ze = (
|
|
6810
|
+
ra = (Ze = (te = a[Ue]) == null ? void 0 : te.split(" ")) == null ? void 0 : Ze[0], Ue = (Ja = Ue == null ? void 0 : Ue.split("·")) == null ? void 0 : Ja[0];
|
|
6807
6811
|
else {
|
|
6808
6812
|
Ue = (Ea = Ue == null ? void 0 : Ue.split("·")) == null ? void 0 : Ea[0];
|
|
6809
6813
|
let ka = (Ra = (Sa = L == null ? void 0 : L.find((La) => (La == null ? void 0 : La.prop) === Ue)) == null ? void 0 : Sa.selectValue) == null ? void 0 : Ra[0];
|
|
@@ -6823,10 +6827,10 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6823
6827
|
_e = k;
|
|
6824
6828
|
}
|
|
6825
6829
|
}
|
|
6826
|
-
}),
|
|
6827
|
-
if (
|
|
6830
|
+
}), Me.value && (c == null ? void 0 : c.directiveLabel) === "#isMain" && (H.value = []), !_e) {
|
|
6831
|
+
if (Me.value && (c == null ? void 0 : c.directiveLabel) === "#isMain")
|
|
6828
6832
|
if (h != null && h.includes("·")) {
|
|
6829
|
-
let k = a, Ie = (ke = (Xe = (
|
|
6833
|
+
let k = a, Ie = (ke = (Xe = (se = a == null ? void 0 : a[h]) == null ? void 0 : se.split(" ")) == null ? void 0 : Xe.filter((w) => w && w !== "")) == null ? void 0 : ke.map((w) => w == null ? void 0 : w.trim());
|
|
6830
6834
|
(be = h == null ? void 0 : h.split("·")) == null || be.forEach((w, ya) => {
|
|
6831
6835
|
k[w] = Ie[ya];
|
|
6832
6836
|
});
|
|
@@ -6847,8 +6851,8 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6847
6851
|
if (_e) {
|
|
6848
6852
|
let k = Re(i);
|
|
6849
6853
|
k = k == null ? void 0 : k.map((w) => {
|
|
6850
|
-
var ja, za, Ha, Ka, Wa, Ya, Ga, C,
|
|
6851
|
-
if (((ja = w == null ? void 0 : w.prop) != null && ja.includes(".") && (_e != null && _e[(Wa = (za = w == null ? void 0 : w.prop) == null ? void 0 : za.split(".")) == null ? void 0 : Wa[((Ka = (Ha = w == null ? void 0 : w.prop) == null ? void 0 : Ha.split(".")) == null ? void 0 : Ka.length) - 1]]) || _e != null && _e[w == null ? void 0 : w.prop] || _e != null && _e[(
|
|
6854
|
+
var ja, za, Ha, Ka, Wa, Ya, Ga, C, te, Ze, Ja, Ea, Sa, Ra, al, qa, pl, ul, cl, ae, N, De, Aa, Ue, ra, aa, ka, La, el, ha, vl, Tl, jl, ll, wl, jn, zn, Hn, Kn, Wn, Yn, Gn, Ve, ga;
|
|
6855
|
+
if (((ja = w == null ? void 0 : w.prop) != null && ja.includes(".") && (_e != null && _e[(Wa = (za = w == null ? void 0 : w.prop) == null ? void 0 : za.split(".")) == null ? void 0 : Wa[((Ka = (Ha = w == null ? void 0 : w.prop) == null ? void 0 : Ha.split(".")) == null ? void 0 : Ka.length) - 1]]) || _e != null && _e[w == null ? void 0 : w.prop] || _e != null && _e[(te = (C = (Ga = (Ya = w == null ? void 0 : w.optionUrl) == null ? void 0 : Ya.groupSelect) == null ? void 0 : Ga[1]) == null ? void 0 : C.replaceAll("[", "")) == null ? void 0 : te.replaceAll("]", "")]) && ((Ea = (Ja = (Ze = w == null ? void 0 : w.optionUrl) == null ? void 0 : Ze.groupSelect) == null ? void 0 : Ja[1]) != null && Ea.includes("[")) && !(w != null && w.relatedValueId))
|
|
6852
6856
|
return w.value = (_e == null ? void 0 : _e[w == null ? void 0 : w.prop]) ?? (_e == null ? void 0 : _e[(qa = (Sa = w == null ? void 0 : w.prop) == null ? void 0 : Sa.split(".")) == null ? void 0 : qa[((al = (Ra = w == null ? void 0 : w.prop) == null ? void 0 : Ra.split(".")) == null ? void 0 : al.length) - 1]]) ?? (_e == null ? void 0 : _e[(ae = (cl = (ul = (pl = w == null ? void 0 : w.optionUrl) == null ? void 0 : pl.groupSelect) == null ? void 0 : ul[1]) == null ? void 0 : cl.replaceAll("[", "")) == null ? void 0 : ae.replaceAll("]", "")]), w;
|
|
6853
6857
|
let ya = _e == null ? void 0 : _e[w == null ? void 0 : w.prop];
|
|
6854
6858
|
return (N = w == null ? void 0 : w.prop) != null && N.includes(".") && !ya && ((Aa = (De = c == null ? void 0 : c.prop) == null ? void 0 : De.split(".")) == null ? void 0 : Aa[0]) === ((ra = (Ue = w == null ? void 0 : w.prop) == null ? void 0 : Ue.split(".")) == null ? void 0 : ra[0]) && (ya = (_e == null ? void 0 : _e[(el = (aa = w == null ? void 0 : w.prop) == null ? void 0 : aa.split(".")) == null ? void 0 : el[((La = (ka = w == null ? void 0 : w.prop) == null ? void 0 : ka.split(".")) == null ? void 0 : La.length) - 1]]) ?? (_e == null ? void 0 : _e[w == null ? void 0 : w.prop])), R && (ya || ya === "") && (w != null && w.relatedValueId) && Za.value === "新增" && ((w == null ? void 0 : w.prop) !== (c == null ? void 0 : c.prop) || h != null && h.includes((c == null ? void 0 : c.prop) + "·") || h != null && h.includes("·" + (w == null ? void 0 : w.prop))) ? w.value = ya ?? (_e == null ? void 0 : _e[(jl = (Tl = (vl = (ha = w == null ? void 0 : w.optionUrl) == null ? void 0 : ha.groupSelect) == null ? void 0 : vl[1]) == null ? void 0 : Tl.replaceAll("[", "")) == null ? void 0 : jl.replaceAll("]", "")]) : (h != null && h.includes("·" + (w == null ? void 0 : w.prop)) || h != null && h.includes(".")) && (w == null ? void 0 : w.prop) !== (c == null ? void 0 : c.prop) && !Array.isArray((wl = (ll = na.value) == null ? void 0 : ll.find((ma) => (ma == null ? void 0 : ma.prop) === (w == null ? void 0 : w.prop))) == null ? void 0 : wl.value) ? w.value = ya ?? "" : ((jn = w == null ? void 0 : w.optionUrl) == null ? void 0 : jn.multiple) === !0 && !Array.isArray((Hn = (zn = na.value) == null ? void 0 : zn.find((ma) => (ma == null ? void 0 : ma.prop) === (w == null ? void 0 : w.prop))) == null ? void 0 : Hn.value) ? w.value = ((Wn = (Kn = na.value) == null ? void 0 : Kn.find((ma) => (ma == null ? void 0 : ma.prop) === (w == null ? void 0 : w.prop))) == null ? void 0 : Wn.value) === "" ? [] : [(Gn = (Yn = na.value) == null ? void 0 : Yn.find((ma) => (ma == null ? void 0 : ma.prop) === (w == null ? void 0 : w.prop))) == null ? void 0 : Gn.value] : w.value = (ga = (Ve = na.value) == null ? void 0 : Ve.find((ma) => (ma == null ? void 0 : ma.prop) === (w == null ? void 0 : w.prop))) == null ? void 0 : ga.value, w;
|
|
@@ -6856,14 +6860,14 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6856
6860
|
let Ie = Re(k);
|
|
6857
6861
|
Ie = Ie == null ? void 0 : Ie.map((w) => {
|
|
6858
6862
|
var ya, ja, za, Ha, Ka, Wa, Ya, Ga, C;
|
|
6859
|
-
return (ja = (ya = w == null ? void 0 : w.optionUrl) == null ? void 0 : ya.menuSelect) != null && ja.some((
|
|
6863
|
+
return (ja = (ya = w == null ? void 0 : w.optionUrl) == null ? void 0 : ya.menuSelect) != null && ja.some((te) => te == null ? void 0 : te.includes("[")) && (w.optionUrl.oldMenuSelect = (Ha = (za = Re(w)) == null ? void 0 : za.optionUrl) == null ? void 0 : Ha.menuSelect, w.optionUrl.menuSelect = (Wa = (Ka = w == null ? void 0 : w.optionUrl) == null ? void 0 : Ka.menuSelect) == null ? void 0 : Wa.map((te) => {
|
|
6860
6864
|
var Ze, Ja, Ea, Sa;
|
|
6861
|
-
if (
|
|
6862
|
-
let Ra = (Ja = (Ze =
|
|
6863
|
-
|
|
6865
|
+
if (te != null && te.includes("[")) {
|
|
6866
|
+
let Ra = (Ja = (Ze = te == null ? void 0 : te.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : Ze.split(":")) == null ? void 0 : Ja[1];
|
|
6867
|
+
te = (Sa = (Ea = Re(k)) == null ? void 0 : Ea.find((al) => (al == null ? void 0 : al.label) === Ra)) == null ? void 0 : Sa.value;
|
|
6864
6868
|
}
|
|
6865
|
-
return
|
|
6866
|
-
})), ((c == null ? void 0 : c.prop) === (w == null ? void 0 : w.prop) || h === (w == null ? void 0 : w.prop)) && Array.isArray(c.value) && (Ya = c.value) != null && Ya.every((
|
|
6869
|
+
return te;
|
|
6870
|
+
})), ((c == null ? void 0 : c.prop) === (w == null ? void 0 : w.prop) || h === (w == null ? void 0 : w.prop)) && Array.isArray(c.value) && (Ya = c.value) != null && Ya.every((te) => typeof te == "string") && (w.selectValue = ((Ga = B == null ? void 0 : B.find((te) => (te == null ? void 0 : te.key) === (w == null ? void 0 : w.prop))) == null ? void 0 : Ga.value) ?? ((C = w.value) == null ? void 0 : C[0])), w;
|
|
6867
6871
|
}), na.value = Ie;
|
|
6868
6872
|
let ca = {};
|
|
6869
6873
|
(ee = na.value) == null || ee.forEach((w) => {
|
|
@@ -6871,13 +6875,13 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6871
6875
|
}), rl.value = ca;
|
|
6872
6876
|
}
|
|
6873
6877
|
let pa = H.value, da = {};
|
|
6874
|
-
(
|
|
6878
|
+
(Le = na.value) == null || Le.forEach((k) => {
|
|
6875
6879
|
var Ie, ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga;
|
|
6876
6880
|
if (((k == null ? void 0 : k.directiveLabel) === "#isMain" || (Ie = k == null ? void 0 : k.optionUrl) != null && Ie.menuId) && Array.isArray(k == null ? void 0 : k.value)) {
|
|
6877
6881
|
if (da[k.prop] || (da[k.prop] = (w = k.value) == null ? void 0 : w[((ca = k.value) == null ? void 0 : ca.length) - 1]), (ya = k == null ? void 0 : k.prop) != null && ya.includes("·")) {
|
|
6878
|
-
let C = (Ha = (za = (ja = k == null ? void 0 : k.prop) == null ? void 0 : ja.split("·")) == null ? void 0 : za.filter((Ze) => Ze && Ze !== "")) == null ? void 0 : Ha.map((Ze) => Ze == null ? void 0 : Ze.trim()),
|
|
6882
|
+
let C = (Ha = (za = (ja = k == null ? void 0 : k.prop) == null ? void 0 : ja.split("·")) == null ? void 0 : za.filter((Ze) => Ze && Ze !== "")) == null ? void 0 : Ha.map((Ze) => Ze == null ? void 0 : Ze.trim()), te = (Ga = (Ya = (Wa = (Ka = k == null ? void 0 : k.selectValue) == null ? void 0 : Ka[0]) == null ? void 0 : Wa.split(" ")) == null ? void 0 : Ya.filter((Ze) => Ze && Ze !== "")) == null ? void 0 : Ga.map((Ze) => Ze == null ? void 0 : Ze.trim());
|
|
6879
6883
|
C == null || C.forEach((Ze, Ja) => {
|
|
6880
|
-
da = Object.assign({}, da, { [Ze]:
|
|
6884
|
+
da = Object.assign({}, da, { [Ze]: te == null ? void 0 : te[Ja] });
|
|
6881
6885
|
});
|
|
6882
6886
|
}
|
|
6883
6887
|
} else
|
|
@@ -6887,22 +6891,22 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6887
6891
|
var Ie;
|
|
6888
6892
|
return (k == null ? void 0 : k.directiveLabel) === "#isMain" || ((Ie = k == null ? void 0 : k.optionUrl) == null ? void 0 : Ie.menuId);
|
|
6889
6893
|
});
|
|
6890
|
-
(c == null ? void 0 : c.directiveLabel) === "#isMain" && ((je = c == null ? void 0 : c.value) == null ? void 0 : je[((
|
|
6894
|
+
(c == null ? void 0 : c.directiveLabel) === "#isMain" && ((je = c == null ? void 0 : c.value) == null ? void 0 : je[((Ne = c == null ? void 0 : c.value) == null ? void 0 : Ne.length) - 1]) !== "" ? pa.push({
|
|
6891
6895
|
label: c == null ? void 0 : c.prop,
|
|
6892
6896
|
value: (Te = c == null ? void 0 : c.value) == null ? void 0 : Te[((Ye = c == null ? void 0 : c.value) == null ? void 0 : Ye.length) - 1],
|
|
6893
6897
|
objectValue: da
|
|
6894
|
-
}) : ((
|
|
6898
|
+
}) : ((ne = wa == null ? void 0 : wa.value) == null ? void 0 : ne.length) > 0 && ((sa = c == null ? void 0 : c.value) == null ? void 0 : sa[((ta = c == null ? void 0 : c.value) == null ? void 0 : ta.length) - 1]) !== "" && (pa = pa == null ? void 0 : pa.map((k) => {
|
|
6895
6899
|
var Ie;
|
|
6896
6900
|
return (k == null ? void 0 : k.value) === ((Ie = wa == null ? void 0 : wa.selectValue) == null ? void 0 : Ie[0]) && (k.objectValue = da), k;
|
|
6897
6901
|
})), H.value = pa;
|
|
6898
6902
|
}
|
|
6899
|
-
Bn.value = !0,
|
|
6903
|
+
Bn.value = !0, Me.value = !1;
|
|
6900
6904
|
}, Wi = (a) => a ? (a == null ? void 0 : a.toUpperCase()) === "INPUT" ? "TEXTAREA" : a : "TEXTAREA", Yi = (a) => {
|
|
6901
6905
|
var f, h;
|
|
6902
6906
|
const l = (h = (f = Cl.value) == null ? void 0 : f.find((c) => (c == null ? void 0 : c.label) === (a == null ? void 0 : a.label))) == null ? void 0 : h.multiple, o = a == null ? void 0 : a.prop;
|
|
6903
6907
|
if ((a == null ? void 0 : a.formType) != "Select")
|
|
6904
6908
|
return;
|
|
6905
|
-
|
|
6909
|
+
de.value.forEach((c) => {
|
|
6906
6910
|
const b = c == null ? void 0 : c[o];
|
|
6907
6911
|
l && Ao(b) && (c[o] = [b]), !l && !Ao(b) && (c[o] = "");
|
|
6908
6912
|
});
|
|
@@ -6916,7 +6920,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6916
6920
|
Un("");
|
|
6917
6921
|
const l = (o = na.value) == null ? void 0 : o.reduce((b, m) => (b[m.name] = m.value, b), {});
|
|
6918
6922
|
if (((i = Object.keys(l)) == null ? void 0 : i.length) > 0) {
|
|
6919
|
-
rl.value = l, yl.value = "", ua.value = (d =
|
|
6923
|
+
rl.value = l, yl.value = "", ua.value = (d = de.value) == null ? void 0 : d.length, Ua.value = (f = Fa.value) == null ? void 0 : f.filter((m) => (m == null ? void 0 : m.label) !== "新增");
|
|
6920
6924
|
const b = (c = (h = U.value) == null ? void 0 : h.filter((m) => (m == null ? void 0 : m.label) !== "操作")) == null ? void 0 : c.map((m) => {
|
|
6921
6925
|
var B, R, q;
|
|
6922
6926
|
const L = (R = (B = Cl.value) == null ? void 0 : B.find((Q) => (Q == null ? void 0 : Q.label) === (m == null ? void 0 : m.label))) == null ? void 0 : R.multiple;
|
|
@@ -6974,14 +6978,14 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6974
6978
|
let i = [];
|
|
6975
6979
|
return i = to(a, l == null ? void 0 : l.contents, 0), i;
|
|
6976
6980
|
}, oo = async (a, l) => {
|
|
6977
|
-
var ve, P, me, W, O, v, S, _, T, pe, Y, Oe, y,
|
|
6981
|
+
var ve, P, me, W, O, v, S, _, T, pe, Y, Oe, y, se, Xe, ke, be, Ee, Ge, We, ee, Le, J, Ne, je, Ye, Te, ne, ta, sa, D, _e, pa, da, wa, k, Ie, ca, w, ya, ja, za, Ha, Ka, Wa, Ya, Ga;
|
|
6978
6982
|
const o = a == null ? void 0 : a.filter((C) => (C == null ? void 0 : C.key) === "header");
|
|
6979
6983
|
a == null || a.filter((C) => (C == null ? void 0 : C.key) === "tableIndexColumn")[0];
|
|
6980
6984
|
const i = a == null ? void 0 : a.filter((C) => (C == null ? void 0 : C.key) === "childTree")[0];
|
|
6981
6985
|
let d = !0;
|
|
6982
6986
|
if ((me = (P = (ve = a == null ? void 0 : a.find((C) => (C == null ? void 0 : C.key) === "filterAllType")) == null ? void 0 : ve.value) == null ? void 0 : P.find((C) => (C == null ? void 0 : C.value) === "onPamButtonContents")) != null && me.content) {
|
|
6983
|
-
let C = (v = (O = (W = a == null ? void 0 : a.find((
|
|
6984
|
-
C = (S = C == null ? void 0 : C.split(":")) == null ? void 0 : S[1], C = (_ = C.slice(1, (C == null ? void 0 : C.length) - 1)) == null ? void 0 : _.split(","), d = !!(C != null && C.find((
|
|
6987
|
+
let C = (v = (O = (W = a == null ? void 0 : a.find((te) => (te == null ? void 0 : te.key) === "filterAllType")) == null ? void 0 : W.value) == null ? void 0 : O.find((te) => (te == null ? void 0 : te.value) === "onPamButtonContents")) == null ? void 0 : v.content;
|
|
6988
|
+
C = (S = C == null ? void 0 : C.split(":")) == null ? void 0 : S[1], C = (_ = C.slice(1, (C == null ? void 0 : C.length) - 1)) == null ? void 0 : _.split(","), d = !!(C != null && C.find((te) => te === "操作"));
|
|
6985
6989
|
}
|
|
6986
6990
|
const f = a == null ? void 0 : a.find((C) => (C == null ? void 0 : C.key) === "page"), h = a == null ? void 0 : a.find((C) => (C == null ? void 0 : C.key) === "rowButton"), c = a == null ? void 0 : a.find((C) => (C == null ? void 0 : C.key) === "extraButton"), b = a == null ? void 0 : a.filter((C) => (C == null ? void 0 : C.key) === "tableContents"), m = a == null ? void 0 : a.filter((C) => (C == null ? void 0 : C.key) === "bottomButton"), L = a == null ? void 0 : a.filter((C) => (C == null ? void 0 : C.key) === "tableIndex");
|
|
6987
6991
|
Cl.value = (pe = (T = a == null ? void 0 : a.filter((C) => (C == null ? void 0 : C.key) === "tableToForm")) == null ? void 0 : T[0]) == null ? void 0 : pe.contents, Ll.value = (f == null ? void 0 : f.contents) ?? !0;
|
|
@@ -6991,15 +6995,15 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
6991
6995
|
dn.value === "" ? R = L == null ? void 0 : L[0] : R = (L == null ? void 0 : L.find((C) => (C == null ? void 0 : C.selectLabel) === "(" + dn.value + ")")) ?? (L == null ? void 0 : L.find((C) => !(C != null && C.selectLabel)));
|
|
6992
6996
|
let q = [], Q = [];
|
|
6993
6997
|
if (((Y = B == null ? void 0 : B.contents) == null ? void 0 : Y.length) > 0) {
|
|
6994
|
-
let C = [],
|
|
6995
|
-
if (Array.isArray(
|
|
6996
|
-
C = (y = Yu(
|
|
6998
|
+
let C = [], te = B == null ? void 0 : B.contents;
|
|
6999
|
+
if (Array.isArray(te == null ? void 0 : te[0]) && ((Oe = te == null ? void 0 : te[0]) != null && Oe.every((ae) => !(ae != null && ae.children))) && (te = te == null ? void 0 : te[0]), te.some((ae) => Array.isArray(ae) && (ae == null ? void 0 : ae.find((N) => N.children))))
|
|
7000
|
+
C = (y = Yu(te, d)) == null ? void 0 : y[0], C != null && C.find((ae) => (ae == null ? void 0 : ae.label) === "操作") || C.push({
|
|
6997
7001
|
label: "操作",
|
|
6998
7002
|
prop: "operate",
|
|
6999
7003
|
type: "operate"
|
|
7000
7004
|
});
|
|
7001
7005
|
else {
|
|
7002
|
-
let ae =
|
|
7006
|
+
let ae = te.some((N) => Array.isArray(N)) ? te == null ? void 0 : te[0] : te;
|
|
7003
7007
|
ae != null && ae.find((N) => (N == null ? void 0 : N.label) === "操作") || ae.push({
|
|
7004
7008
|
label: "操作",
|
|
7005
7009
|
prop: "operate",
|
|
@@ -7066,7 +7070,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7066
7070
|
});
|
|
7067
7071
|
});
|
|
7068
7072
|
}
|
|
7069
|
-
|
|
7073
|
+
oe.value = (se = m == null ? void 0 : m[0]) == null ? void 0 : se.contents;
|
|
7070
7074
|
const Ze = Ju(C), Ja = (ae) => Array.isArray(ae) ? ae.map((N) => (Array.isArray(N == null ? void 0 : N.children) && N.children.length > 0 ? (N.sortable = !1, Ja(N.children)) : (N == null ? void 0 : N.prop) === "operate" || (N == null ? void 0 : N.label) === "操作" || (N == null ? void 0 : N.type) === "operate" || (N.sortable = !0), N)) : ae;
|
|
7071
7075
|
Ja(Ze), await li(Ze), ev(la.value, Ze), x.value = Ze, Pa.value = Ze, n.value = (Xe = x.value) == null ? void 0 : Xe.map((ae) => ae == null ? void 0 : ae.label);
|
|
7072
7076
|
let Ea = (be = (ke = ql(x.value)) == null ? void 0 : ke.filter((ae) => (ae == null ? void 0 : ae.type) !== "operate")) == null ? void 0 : be.map((ae, N) => ({
|
|
@@ -7077,7 +7081,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7077
7081
|
let Sa = [];
|
|
7078
7082
|
dn.value === "" ? Sa = b == null ? void 0 : b[0] : Sa = (b == null ? void 0 : b.find((ae) => (ae == null ? void 0 : ae.selectLabel) === "(" + dn.value + ")")) ?? (b == null ? void 0 : b.find((ae) => !(ae != null && ae.selectLabel)));
|
|
7079
7083
|
let Ra = Array.isArray((Ee = Sa == null ? void 0 : Sa.contents) == null ? void 0 : Ee[0]) && ((Ge = Sa == null ? void 0 : Sa.contents) != null && Ge[0].every((ae) => Array.isArray(ae))) ? (We = Sa == null ? void 0 : Sa.contents) == null ? void 0 : We[0] : Sa == null ? void 0 : Sa.contents;
|
|
7080
|
-
R != null && R.contents && ((ee = R == null ? void 0 : R.contents) == null ? void 0 : ee.length) !== 0 && (Ra = (
|
|
7084
|
+
R != null && R.contents && ((ee = R == null ? void 0 : R.contents) == null ? void 0 : ee.length) !== 0 && (Ra = (Le = Re(Ra)) == null ? void 0 : Le.map((ae, N) => {
|
|
7081
7085
|
if (!Array.isArray(ae)) {
|
|
7082
7086
|
let De = {};
|
|
7083
7087
|
for (let Aa in ae)
|
|
@@ -7133,10 +7137,10 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7133
7137
|
}
|
|
7134
7138
|
} catch {
|
|
7135
7139
|
}
|
|
7136
|
-
const pl = Array.from(((
|
|
7140
|
+
const pl = Array.from(((Ne = Qa.value) == null ? void 0 : Ne.values()) || []).filter(
|
|
7137
7141
|
(ae) => (ae == null ? void 0 : ae._isOCRRow) && (ae == null ? void 0 : ae._ocrTableId) === (r == null ? void 0 : r.index)
|
|
7138
7142
|
);
|
|
7139
|
-
|
|
7143
|
+
de.value = ro(qa, i, x.value), tl.value = qa, (je = tl.value) == null || je.forEach((ae) => {
|
|
7140
7144
|
var N;
|
|
7141
7145
|
(N = Qa.value) == null || N.set(ae.id, ae);
|
|
7142
7146
|
});
|
|
@@ -7146,14 +7150,14 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7146
7150
|
cl.filter((N) => !ae.has(String(N)));
|
|
7147
7151
|
}
|
|
7148
7152
|
if (pl.length > 0) {
|
|
7149
|
-
const ae = new Set((
|
|
7150
|
-
N.length > 0 && (
|
|
7153
|
+
const ae = new Set((de.value || []).map((De) => De == null ? void 0 : De.id)), N = pl.filter((De) => !ae.has(De.id));
|
|
7154
|
+
N.length > 0 && (de.value = [...de.value || [], ...N], tl.value = [...tl.value || [], ...N], N.forEach((De) => {
|
|
7151
7155
|
var Aa;
|
|
7152
7156
|
return (Aa = Qa.value) == null ? void 0 : Aa.set(De.id, De);
|
|
7153
7157
|
}));
|
|
7154
7158
|
}
|
|
7155
7159
|
} else
|
|
7156
|
-
x.value = [], U.value = [],
|
|
7160
|
+
x.value = [], U.value = [], de.value = [], tl.value = [], Qa.value = /* @__PURE__ */ new Map();
|
|
7157
7161
|
if (Q = [...new Set(Q)], Q = Q == null ? void 0 : Q.map((C) => ({
|
|
7158
7162
|
label: C,
|
|
7159
7163
|
type: "methodButton"
|
|
@@ -7161,23 +7165,23 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7161
7165
|
label: C,
|
|
7162
7166
|
type: "methodButton"
|
|
7163
7167
|
})), ((Te = c == null ? void 0 : c.contents) == null ? void 0 : Te.length) > 0)
|
|
7164
|
-
if ((sa = (ta = (
|
|
7165
|
-
let C = (pa = (_e = (D = a == null ? void 0 : a.find((
|
|
7166
|
-
if (C = (da = C == null ? void 0 : C.split(":")) == null ? void 0 : da[1], C = (wa = C.slice(1, (C == null ? void 0 : C.length) - 1)) == null ? void 0 : wa.split(","), Ua.value = (k = c == null ? void 0 : c.contents) == null ? void 0 : k.filter((
|
|
7167
|
-
const
|
|
7168
|
-
Ua.value = [...Ua.value,
|
|
7168
|
+
if ((sa = (ta = (ne = a == null ? void 0 : a.find((C) => (C == null ? void 0 : C.key) === "filterAllType")) == null ? void 0 : ne.value) == null ? void 0 : ta.find((C) => (C == null ? void 0 : C.value) === "onButtonContents")) != null && sa.content) {
|
|
7169
|
+
let C = (pa = (_e = (D = a == null ? void 0 : a.find((te) => (te == null ? void 0 : te.key) === "filterAllType")) == null ? void 0 : D.value) == null ? void 0 : _e.find((te) => (te == null ? void 0 : te.value) === "onButtonContents")) == null ? void 0 : pa.content;
|
|
7170
|
+
if (C = (da = C == null ? void 0 : C.split(":")) == null ? void 0 : da[1], C = (wa = C.slice(1, (C == null ? void 0 : C.length) - 1)) == null ? void 0 : wa.split(","), Ua.value = (k = c == null ? void 0 : c.contents) == null ? void 0 : k.filter((te) => C == null ? void 0 : C.find((Ze) => Ze === (te == null ? void 0 : te.label))), Fa.value = (Ie = c == null ? void 0 : c.contents) == null ? void 0 : Ie.filter((te) => C == null ? void 0 : C.find((Ze) => Ze === (te == null ? void 0 : te.label))), (ca = c == null ? void 0 : c.contents) != null && ca.some((te) => (te == null ? void 0 : te.label) === "OCR识别") && !((w = Ua.value) != null && w.some((te) => (te == null ? void 0 : te.label) === "OCR识别"))) {
|
|
7171
|
+
const te = (ya = c == null ? void 0 : c.contents) == null ? void 0 : ya.find((Ze) => (Ze == null ? void 0 : Ze.label) === "OCR识别");
|
|
7172
|
+
Ua.value = [...Ua.value, te], Fa.value = [...Fa.value, te];
|
|
7169
7173
|
}
|
|
7170
|
-
|
|
7174
|
+
ue.value = !!(C != null && C.find((te) => te === "搜索")), G.value = !!(C != null && C.find((te) => te === "块状显示"));
|
|
7171
7175
|
} else
|
|
7172
7176
|
Ua.value = c == null ? void 0 : c.contents, Fa.value = c == null ? void 0 : c.contents;
|
|
7173
7177
|
else
|
|
7174
7178
|
Ua.value = [], Fa.value = [];
|
|
7175
|
-
Ua.value = [...Ua.value, ...q], Fa.value = [...Fa.value, ...q], typeof Ke.value == "string" && Ke.value === "设备管理/试验设备" ? ((ja = Ua.value) != null && ja.some((C) => (C == null ? void 0 : C.label) === "OCR识别") || (Ua.value = [...Ua.value || [], { label: "OCR识别" }]), (za = Fa.value) != null && za.some((C) => (C == null ? void 0 : C.label) === "OCR识别") || (Fa.value = [...Fa.value || [], { label: "OCR识别" }])) : (Ua.value = (Ua.value || []).filter((C) => (C == null ? void 0 : C.label) !== "OCR识别"), Fa.value = (Fa.value || []).filter((C) => (C == null ? void 0 : C.label) !== "OCR识别")), (Ha = Ua.value) != null && Ha.some((C) => (C == null ? void 0 : C.label) === "切换视图") || (Ua.value = [...Ua.value || [], { label: "切换视图" }]), (Ka = Fa.value) != null && Ka.some((C) => (C == null ? void 0 : C.label) === "切换视图") || (Fa.value = [...Fa.value || [], { label: "切换视图" }]), ua.value = ((Wa =
|
|
7176
|
-
var
|
|
7179
|
+
Ua.value = [...Ua.value, ...q], Fa.value = [...Fa.value, ...q], typeof Ke.value == "string" && Ke.value === "设备管理/试验设备" && (r == null ? void 0 : r.compName) === "设备概要" ? ((ja = Ua.value) != null && ja.some((C) => (C == null ? void 0 : C.label) === "OCR识别") || (Ua.value = [...Ua.value || [], { label: "OCR识别" }]), (za = Fa.value) != null && za.some((C) => (C == null ? void 0 : C.label) === "OCR识别") || (Fa.value = [...Fa.value || [], { label: "OCR识别" }])) : (Ua.value = (Ua.value || []).filter((C) => (C == null ? void 0 : C.label) !== "OCR识别"), Fa.value = (Fa.value || []).filter((C) => (C == null ? void 0 : C.label) !== "OCR识别")), (Ha = Ua.value) != null && Ha.some((C) => (C == null ? void 0 : C.label) === "切换视图") || (Ua.value = [...Ua.value || [], { label: "切换视图" }]), (Ka = Fa.value) != null && Ka.some((C) => (C == null ? void 0 : C.label) === "切换视图") || (Fa.value = [...Fa.value || [], { label: "切换视图" }]), ua.value = ((Wa = de == null ? void 0 : de.value) == null ? void 0 : Wa.length) ?? 0, no(de.value), mn.value = de.value, ol.value && (x.value = (Ga = (Ya = U.value) == null ? void 0 : Ya.filter((C) => (C == null ? void 0 : C.label) !== "操作")) == null ? void 0 : Ga.map((C) => {
|
|
7180
|
+
var te;
|
|
7177
7181
|
return {
|
|
7178
7182
|
...C,
|
|
7179
7183
|
type: "edit",
|
|
7180
|
-
optionUrl: C != null && C.formMenuSelect && ((
|
|
7184
|
+
optionUrl: C != null && C.formMenuSelect && ((te = C == null ? void 0 : C.formMenuSelect) == null ? void 0 : te.length) > 0 ? {
|
|
7181
7185
|
groupSelect: C == null ? void 0 : C.groupSelect,
|
|
7182
7186
|
menuSelect: C == null ? void 0 : C.formMenuSelect,
|
|
7183
7187
|
selectRelateType: "",
|
|
@@ -7242,20 +7246,20 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7242
7246
|
}, { immediate: !0 }), M(!1);
|
|
7243
7247
|
const Xi = (a, l) => {
|
|
7244
7248
|
var o;
|
|
7245
|
-
qt("createClick"), l === Ce.pageSize && (Ce.currentPage = Math.ceil(((o =
|
|
7249
|
+
qt("createClick"), l === Ce.pageSize && (Ce.currentPage = Math.ceil(((o = de.value) == null ? void 0 : o.length) / Ce.pageSize));
|
|
7246
7250
|
}, Qi = (a, l, o) => {
|
|
7247
7251
|
var i, d;
|
|
7248
7252
|
if (ol.value) {
|
|
7249
7253
|
const f = a == null ? void 0 : a.id;
|
|
7250
7254
|
f != null && (g.value.has(f) || g.value.set(f, Re(a)), p.value.add(f));
|
|
7251
|
-
const h = (l == null ? void 0 : l.property) ?? (l == null ? void 0 : l.prop), c = (i =
|
|
7252
|
-
c !== -1 && h && (
|
|
7253
|
-
...
|
|
7255
|
+
const h = (l == null ? void 0 : l.property) ?? (l == null ? void 0 : l.prop), c = (i = de.value) == null ? void 0 : i.findIndex((b) => (b == null ? void 0 : b.id) === (a == null ? void 0 : a.id));
|
|
7256
|
+
c !== -1 && h && (de.value[c] = {
|
|
7257
|
+
...de.value[c],
|
|
7254
7258
|
[h]: o
|
|
7255
7259
|
}), Jt(o, a, l);
|
|
7256
7260
|
return;
|
|
7257
7261
|
}
|
|
7258
|
-
Jt(o, a, l), rl.value = Re(a), yl.value = a == null ? void 0 : a.id, ua.value = (d =
|
|
7262
|
+
Jt(o, a, l), rl.value = Re(a), yl.value = a == null ? void 0 : a.id, ua.value = (d = de.value) == null ? void 0 : d.length, Za.value = a != null && a._isTemp ? "新增" : "编辑", Fn(!1);
|
|
7259
7263
|
}, il = (a) => {
|
|
7260
7264
|
var b, m, L, B, R, q, Q, ge, ve, P;
|
|
7261
7265
|
const { row: l, column: o, item: i, slotData: d } = a;
|
|
@@ -7271,7 +7275,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7271
7275
|
return oa(() => On.value, async (a) => {
|
|
7272
7276
|
if (a) {
|
|
7273
7277
|
Na.setContentLoading(!0), await xa();
|
|
7274
|
-
const l = Vi(
|
|
7278
|
+
const l = Vi(de.value, a == null ? void 0 : a.data);
|
|
7275
7279
|
if (!l) return Na.setContentLoading(!1);
|
|
7276
7280
|
await Wr(a == null ? void 0 : a.data, null, l, { data: a == null ? void 0 : a.data }), Na.setContentLoading(!1);
|
|
7277
7281
|
}
|
|
@@ -7281,7 +7285,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7281
7285
|
var i, d, f, h, c;
|
|
7282
7286
|
if ((o == null ? void 0 : o.compId) === (r == null ? void 0 : r.index) && (o != null && o.resId) && ((i = o == null ? void 0 : o.data) != null && i.id)) {
|
|
7283
7287
|
const b = (d = o == null ? void 0 : o.data) == null ? void 0 : d.id, m = o == null ? void 0 : o.resId;
|
|
7284
|
-
if (
|
|
7288
|
+
if (de.value = (f = de.value) == null ? void 0 : f.map((L) => (L == null ? void 0 : L.id) === b ? {
|
|
7285
7289
|
...L,
|
|
7286
7290
|
id: m
|
|
7287
7291
|
} : L), (c = (h = Qa.value) == null ? void 0 : h.has) != null && c.call(h, b)) {
|
|
@@ -7290,7 +7294,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7290
7294
|
}
|
|
7291
7295
|
_s(r == null ? void 0 : r.index, b, m);
|
|
7292
7296
|
}
|
|
7293
|
-
}) : (a == null ? void 0 : a.compId) === (r == null ? void 0 : r.index) && (
|
|
7297
|
+
}) : (a == null ? void 0 : a.compId) === (r == null ? void 0 : r.index) && (de.value = (l = de.value) == null ? void 0 : l.map((o) => {
|
|
7294
7298
|
var i;
|
|
7295
7299
|
return (o == null ? void 0 : o.id) === ((i = a == null ? void 0 : a.data) == null ? void 0 : i.id) ? {
|
|
7296
7300
|
...o,
|
|
@@ -7337,7 +7341,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7337
7341
|
onHandleColTypeChange: qs,
|
|
7338
7342
|
onClickButton: Yt,
|
|
7339
7343
|
onAddNewRow: Xs,
|
|
7340
|
-
bottomButton:
|
|
7344
|
+
bottomButton: oe.value
|
|
7341
7345
|
}, du({
|
|
7342
7346
|
headerButton: K((v) => {
|
|
7343
7347
|
var S, _;
|
|
@@ -7345,10 +7349,10 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7345
7349
|
e.showHeader ? (E(), Pe(Op, {
|
|
7346
7350
|
key: 0,
|
|
7347
7351
|
pageLayout: e.pageLayout,
|
|
7348
|
-
lockingPage:
|
|
7352
|
+
lockingPage: re(at) === re(Ke),
|
|
7349
7353
|
filterValues: Kr.value,
|
|
7350
7354
|
selectNums: (S = Nl.value) == null ? void 0 : S.length,
|
|
7351
|
-
dataNums: (_ =
|
|
7355
|
+
dataNums: (_ = de.value) == null ? void 0 : _.length,
|
|
7352
7356
|
compName: e.compName,
|
|
7353
7357
|
isDevMode: e.isDevMode,
|
|
7354
7358
|
buttons: v.buttons,
|
|
@@ -7357,15 +7361,15 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7357
7361
|
onFilter: ci,
|
|
7358
7362
|
onGetImportData: Ys,
|
|
7359
7363
|
level: e.level,
|
|
7360
|
-
filterShow:
|
|
7364
|
+
filterShow: ue.value
|
|
7361
7365
|
}, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level", "filterShow"])) : xe("", !0)
|
|
7362
7366
|
];
|
|
7363
7367
|
}),
|
|
7364
7368
|
viewport: K(() => {
|
|
7365
7369
|
var v, S, _, T;
|
|
7366
7370
|
return [
|
|
7367
|
-
((v =
|
|
7368
|
-
(S = ce.value) != null && S.includes("read") && ((_ = ce.value) != null && _.includes("edit")) && ((T = Ml.value) != null && T.some((pe) => (pe == null ? void 0 : pe.label) === "编辑")) && !ft.value &&
|
|
7371
|
+
((v = de.value) == null ? void 0 : v.length) > 0 && e.allowOperate && G.value ? (E(), le("div", dv, [
|
|
7372
|
+
(S = ce.value) != null && S.includes("read") && ((_ = ce.value) != null && _.includes("edit")) && ((T = Ml.value) != null && T.some((pe) => (pe == null ? void 0 : pe.label) === "编辑")) && !ft.value && re(at) !== re(Ke) ? (E(), le("span", {
|
|
7369
7373
|
key: 0,
|
|
7370
7374
|
title: "编辑表格",
|
|
7371
7375
|
onClick: Ji
|
|
@@ -7519,7 +7523,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7519
7523
|
})
|
|
7520
7524
|
]),
|
|
7521
7525
|
content: K((v) => {
|
|
7522
|
-
var S, _, T, pe, Y, Oe, y,
|
|
7526
|
+
var S, _, T, pe, Y, Oe, y, se, Xe, ke, be, Ee, Ge, We, ee, Le, J, Ne, je, Ye;
|
|
7523
7527
|
return [
|
|
7524
7528
|
((S = v == null ? void 0 : v.column) == null ? void 0 : S.label) === "证书附件" || ((_ = v == null ? void 0 : v.column) == null ? void 0 : _.prop) === "证书附件" ? (E(), le("div", bv, [
|
|
7525
7529
|
X(o, {
|
|
@@ -7545,10 +7549,10 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7545
7549
|
j("span", mv, Qe(il(v)), 1)
|
|
7546
7550
|
]),
|
|
7547
7551
|
default: K(() => {
|
|
7548
|
-
var Te,
|
|
7552
|
+
var Te, ne;
|
|
7549
7553
|
return [
|
|
7550
7554
|
j("div", Sv, [
|
|
7551
|
-
(E(!0), le($a, null, dl((
|
|
7555
|
+
(E(!0), le($a, null, dl((ne = v == null ? void 0 : v.row) == null ? void 0 : ne[(Te = v == null ? void 0 : v.column) == null ? void 0 : Te.prop], (ta) => (E(), le("div", kv, [
|
|
7552
7556
|
j("div", {
|
|
7553
7557
|
class: "prop-url",
|
|
7554
7558
|
title: Rn(ta),
|
|
@@ -7566,9 +7570,9 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7566
7570
|
}, 1024)) : (E(), le("div", {
|
|
7567
7571
|
key: 2,
|
|
7568
7572
|
style: Kl({
|
|
7569
|
-
color: !Array.isArray(il(v)) && ((pe = (T = il(v)) == null ? void 0 : T.toString()) != null && pe.includes(".txt") || (Oe = (Y = il(v)) == null ? void 0 : Y.toString()) != null && Oe.includes(".cpt") || (
|
|
7573
|
+
color: !Array.isArray(il(v)) && ((pe = (T = il(v)) == null ? void 0 : T.toString()) != null && pe.includes(".txt") || (Oe = (Y = il(v)) == null ? void 0 : Y.toString()) != null && Oe.includes(".cpt") || (se = (y = il(v)) == null ? void 0 : y.toString()) != null && se.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
7570
7574
|
textDecoration: !Array.isArray(il(v)) && ((ke = (Xe = il(v)) == null ? void 0 : Xe.toString()) != null && ke.includes(".txt") || (Ee = (be = il(v)) == null ? void 0 : be.toString()) != null && Ee.includes(".cpt") || (We = (Ge = il(v)) == null ? void 0 : Ge.toString()) != null && We.includes(".cyd")) ? "underline" : "",
|
|
7571
|
-
cursor: !Array.isArray(il(v)) && ((
|
|
7575
|
+
cursor: !Array.isArray(il(v)) && ((Le = (ee = il(v)) == null ? void 0 : ee.toString()) != null && Le.includes(".txt") || (Ne = (J = il(v)) == null ? void 0 : J.toString()) != null && Ne.includes(".cpt") || (Ye = (je = il(v)) == null ? void 0 : je.toString()) != null && Ye.includes(".cyd")) ? "pointer" : "",
|
|
7572
7576
|
marginLeft: (v == null ? void 0 : v.colIndex) === 0 ? `${((v == null ? void 0 : v.level) ?? 0) * 20}px` : 0
|
|
7573
7577
|
}),
|
|
7574
7578
|
onClick: (Te) => Fs(il(v))
|
|
@@ -7822,7 +7826,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7822
7826
|
}, null, 8, Bv)) : (E(), le("div", Iv, [
|
|
7823
7827
|
X(B, { size: 40 }, {
|
|
7824
7828
|
default: K(() => [
|
|
7825
|
-
X(
|
|
7829
|
+
X(re(Lu))
|
|
7826
7830
|
]),
|
|
7827
7831
|
_: 1
|
|
7828
7832
|
})
|
|
@@ -7865,7 +7869,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7865
7869
|
sl(v) === "completed" || sl(v) === "uploaded" ? (E(), le("div", Dv, [
|
|
7866
7870
|
X(B, { class: "check-icon" }, {
|
|
7867
7871
|
default: K(() => [
|
|
7868
|
-
X(
|
|
7872
|
+
X(re(Zt))
|
|
7869
7873
|
]),
|
|
7870
7874
|
_: 1
|
|
7871
7875
|
})
|
|
@@ -7877,7 +7881,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7877
7881
|
}, [
|
|
7878
7882
|
X(B, null, {
|
|
7879
7883
|
default: K(() => [
|
|
7880
|
-
X(
|
|
7884
|
+
X(re(Mu))
|
|
7881
7885
|
]),
|
|
7882
7886
|
_: 1
|
|
7883
7887
|
})
|
|
@@ -7991,7 +7995,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
7991
7995
|
onClick: Ba((S) => Qr(v), ["stop"])
|
|
7992
7996
|
}, {
|
|
7993
7997
|
default: K(() => [
|
|
7994
|
-
X(
|
|
7998
|
+
X(re(Zt))
|
|
7995
7999
|
]),
|
|
7996
8000
|
_: 2
|
|
7997
8001
|
}, 1032, ["onClick"])) : (E(), Pe(o, {
|
|
@@ -8014,7 +8018,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
8014
8018
|
class: "ocr-success-icon"
|
|
8015
8019
|
}, {
|
|
8016
8020
|
default: K(() => [
|
|
8017
|
-
X(
|
|
8021
|
+
X(re(Zt))
|
|
8018
8022
|
]),
|
|
8019
8023
|
_: 1
|
|
8020
8024
|
}),
|
|
@@ -8128,7 +8132,7 @@ const jp = { style: { display: "flex", gap: "16px", height: "100%" } }, zp = {
|
|
|
8128
8132
|
]);
|
|
8129
8133
|
};
|
|
8130
8134
|
}
|
|
8131
|
-
}, vh = /* @__PURE__ */ rn(Zv, [["__scopeId", "data-v-
|
|
8135
|
+
}, vh = /* @__PURE__ */ rn(Zv, [["__scopeId", "data-v-fa494f96"]]);
|
|
8132
8136
|
export {
|
|
8133
8137
|
Ko as E,
|
|
8134
8138
|
Np as a,
|