ss-component-new 1.3.113 → 1.3.115
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-y4B1LPuT.js → MTLLoader-C-9g5iRs.js} +36 -36
- package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-CfO9qTqV.cjs} +1 -1
- package/dist/{OrbitControls-390k2OM3.js → OrbitControls-B2gEQ18i.js} +1 -1
- package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-DoGWhGYE.cjs} +1 -1
- package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-BWZcLTTH.js} +193 -193
- package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BlsYqWJQ.cjs} +1 -1
- package/dist/{animationData-B1Jlpr7b.cjs → animationData-BjpsMpYe.cjs} +1 -1
- package/dist/{animationData-DfDLy_M4.js → animationData-CK7mtjyo.js} +18 -18
- package/dist/{array-ymebeoXj.cjs → array-4sEK1Tp6.cjs} +1 -1
- package/dist/{array-DLBDgy0c.js → array-C61a4nGq.js} +5 -5
- package/dist/{iconfont-BYa5tDrN.js → iconfont-BEEudegG.js} +37 -37
- package/dist/{iconfont-cBX7rs7k.cjs → iconfont-w8ZxNH1R.cjs} +1 -1
- package/dist/{index-DMzBNabY.js → index--HdSHCHH.js} +1 -1
- package/dist/{index-YwMY3Aya.js → index-2A65FWWp.js} +7 -7
- package/dist/{index-SeEbZNcJ.cjs → index-32lNvNQY.cjs} +1 -1
- package/dist/{index-CVySIgt4.cjs → index-AjU4645d.cjs} +1 -1
- package/dist/{index-bbJ9Y_oO.js → index-B2h_bCtP.js} +3 -3
- package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
- package/dist/{index--hQDmx_x.js → index-BADcwiJj.js} +2 -2
- package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
- package/dist/index-BGo77kB8.cjs +1 -0
- package/dist/{index-BjAtlMRE.cjs → index-BHDqgLbZ.cjs} +1 -1
- package/dist/{index-8TMkI46d.js → index-BJxcMaQu.js} +5 -5
- package/dist/{index-NdxRkX7O.js → index-BaMfm3q6.js} +959 -956
- package/dist/index-BdXsBH1P.cjs +13 -0
- package/dist/{index-B9g8IV0C.cjs → index-Bd_SZg7S.cjs} +1 -1
- package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
- package/dist/{index-UytjSmc1.cjs → index-BiA-_xPC.cjs} +1 -1
- package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
- package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
- package/dist/{index-CVwsrCrZ.cjs → index-BxNotDao.cjs} +12 -12
- package/dist/{index-DaX27S_0.js → index-BxcjTlnl.js} +31 -31
- package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
- package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
- package/dist/{index-DpIzJvIr.cjs → index-C5dht9fE.cjs} +1 -1
- package/dist/{index-BVURmufk.js → index-CANPj8uh.js} +7 -7
- package/dist/{index-BXZlLwr6.cjs → index-CHVJAILH.cjs} +1 -1
- package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
- package/dist/{index-Cu75UXH1.js → index-CPq8y_kH.js} +2 -2
- package/dist/{index-CJiEoadC.js → index-CRv6JQ2C.js} +5 -5
- package/dist/{index-CXkaTWVT.js → index-Cl2nQDI1.js} +2 -2
- package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
- package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
- package/dist/{index-BIOl9xBh.js → index-CutPkLky.js} +2 -2
- package/dist/{index-4p0yEeUu.js → index-CyWkVCgH.js} +1 -1
- package/dist/{index-DdCyGfF9.cjs → index-D8LkomEw.cjs} +1 -1
- package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
- package/dist/{index-mabPGJUl.js → index-DC6oFcJ3.js} +2191 -2186
- package/dist/index-DMp47JRO.cjs +1 -0
- package/dist/{index-CEiscADV.cjs → index-DNQnpERW.cjs} +1 -1
- package/dist/{index-D39f9FDD.cjs → index-DNSrAjI9.cjs} +1 -1
- package/dist/index-DavcqNxP.cjs +1 -0
- package/dist/{index-DBdrmcqM.cjs → index-DefT5mRw.cjs} +1 -1
- package/dist/index-DgBjwajW.js +456 -0
- package/dist/index-DiowIVZT.cjs +36 -0
- package/dist/{index-BxmhgJuz.js → index-DjITcxoB.js} +1 -1
- package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
- package/dist/index-DsOOj9Lf.cjs +1 -0
- package/dist/{index-JJBPRJiI.cjs → index-DsgMH4OH.cjs} +1 -1
- package/dist/{index-C6_KNp1M.cjs → index-DtABq3r6.cjs} +1 -1
- package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
- package/dist/{index-DLK6UU4l.cjs → index-LqtTDLKt.cjs} +1 -1
- package/dist/index-SJHk-hwy.cjs +1 -0
- package/dist/{index-DnJB2OQC.cjs → index-UCzD4hzW.cjs} +1 -1
- package/dist/{index-CIoHy7Dg.js → index-ZhE5DWe_.js} +3 -3
- package/dist/{index-CYXsxIou.js → index-a2aJc3TK.js} +1 -1
- package/dist/{index-BfNg0B2v.js → index-eiZuqNHp.js} +3167 -3138
- package/dist/{index-C2yeqxnB.js → index-eyvk-8N6.js} +3 -3
- package/dist/index-h4MsH7WN.cjs +1 -0
- package/dist/{index-Drd5_tIE.js → index-voXoCiq0.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Ctc5O7Al.js} +17645 -18043
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs} +392 -392
- package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-CIY5Sa-o.js} +722 -712
- package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-fwFKG5I3.cjs} +3 -3
- package/dist/{main-b1OREkjD.js → main-Bv-bP073.js} +4 -4
- package/dist/{main-ChE0Sl1V.cjs → main-CojqsPyy.cjs} +1 -1
- package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
- package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CUViA1pV.js → threeModel-D3f91Rt6.js} +62 -62
- package/dist/{threeModel-BTiM-_yY.cjs → threeModel-DdDMV2Z7.cjs} +1 -1
- package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BbT2A1VX.cjs} +1 -1
- package/dist/{threePreview-fEcukbqP.js → threePreview-fvD6ZuLp.js} +102 -102
- package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-BslSyd85.js} +133 -133
- package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-DoaygXsI.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-CwkRm33h.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-DqFJ61VU.js} +8 -8
- package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-2EPeOu-l.js} +49 -49
- package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-Qy1rvMIK.cjs} +1 -1
- package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-BCN3cVBD.cjs} +1 -1
- package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-Bys_DQyR.js} +17 -17
- package/dist/{urdfTree-B9gafrR3.js → urdfTree-Dj3GmZU4.js} +1 -1
- package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-Dj_MX-rV.cjs} +1 -1
- package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-CfqOi5LU.js} +81 -81
- package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel-sLZ6i9PT.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-8ddlDjHL.js +0 -455
- package/dist/index-BLGT4-wX.cjs +0 -1
- package/dist/index-CTGhzBZx.cjs +0 -1
- package/dist/index-D7Ao1GyZ.cjs +0 -1
- package/dist/index-DUqjjluX.cjs +0 -1
- package/dist/index-DczQgLYk.cjs +0 -13
- package/dist/index-NtRUaVwS.cjs +0 -1
- package/dist/index-aMvM6ti6.cjs +0 -1
- package/dist/index-kutaq0AT.cjs +0 -36
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var Yt = Object.defineProperty;
|
|
2
2
|
var Gt = (k, P, h) => P in k ? Yt(k, P, { enumerable: !0, configurable: !0, writable: !0, value: h }) : k[P] = h;
|
|
3
3
|
var Oa = (k, P, h) => Gt(k, typeof P != "symbol" ? P + "" : P, h);
|
|
4
|
-
import { ref as M, watch as ea, nextTick as
|
|
4
|
+
import { ref as M, watch as ea, nextTick as La, resolveComponent as Pe, createBlock as Me, openBlock as j, withCtx as Y, createElementVNode as z, renderSlot as Wn, defineComponent as hr, computed as xa, onMounted as yr, onUnmounted as os, createElementBlock as re, createCommentVNode as Ne, withModifiers as ia, toDisplayString as Fe, createVNode as q, createTextVNode as Ke, Fragment as ca, renderList as Aa, normalizeClass as ja, onBeforeUnmount as Fr, normalizeStyle as Gl, unref as Ra, reactive as El, inject as Xt, provide as Qt, createSlots as Zt, resolveDynamicComponent as Vt } from "vue";
|
|
5
5
|
import { E as Le, z as Jn, A as Hn, g as gr, u as is, e as eo, B as ao, C as Rr, D as qn, f as lo, a as kl, F as ro } from "./index-WLdc1goT.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { g as Do, d as $o, l as Eo, F as Vn } from "./index.vue_vue_type_style_index_1_lang-
|
|
6
|
+
import { e as Rl, c as Te, i as us, p as Sl, s as Ul, u as no, a as so, d as to, b as oo, k as Lr, L as io } from "./index-Cn5h5u4P.js";
|
|
7
|
+
import { j as uo, a as Ql, _ as Yn, k as co, d as po, E as Gn, e as Xn, u as Qn } from "./index-BxcjTlnl.js";
|
|
8
|
+
import { a2 as fo, h as Ll, a3 as vo, a4 as Xl, a5 as ho, g as Br, b as yo, u as go, a6 as al, f as bo, a7 as mo, a8 as _o, a9 as ko, aa as So, F as Co, l as Ao, ab as Zn, w as wo, ac as To, ad as Oo, S as xo, ae as No } from "./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Ctc5O7Al.js";
|
|
9
|
+
import { g as Do, d as $o, l as Eo, F as Vn } from "./index.vue_vue_type_style_index_1_lang-CIY5Sa-o.js";
|
|
10
10
|
import { _ as vl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { s as ul, c as vr } from "./index
|
|
12
|
-
import { a as Uo, T as Po } from "./threeViewerHost-
|
|
11
|
+
import { s as ul, c as vr } from "./index--HdSHCHH.js";
|
|
12
|
+
import { a as Uo, T as Po } from "./threeViewerHost-Bys_DQyR.js";
|
|
13
13
|
import { h as Ro, b as es, p as Mr, g as Lo, e as Mo } from "./index-DoHjMY5d.js";
|
|
14
|
-
import "./index-
|
|
15
|
-
import { E as as } from "./index-
|
|
14
|
+
import "./index-Bjm0BPhX.js";
|
|
15
|
+
import { E as as } from "./index-CMMIt7u5.js";
|
|
16
16
|
import { i as ls } from "./isString-ttnU1Wjg.js";
|
|
17
|
-
const
|
|
17
|
+
const Bo = (k) => k.match(/\((.*)\)/)[1], jo = {
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
20
20
|
isVisible: {
|
|
@@ -49,7 +49,7 @@ const jo = (k) => k.match(/\((.*)\)/)[1], Bo = {
|
|
|
49
49
|
), ea(
|
|
50
50
|
() => y.value,
|
|
51
51
|
() => {
|
|
52
|
-
|
|
52
|
+
La(() => {
|
|
53
53
|
var E, Q;
|
|
54
54
|
(Q = (E = h.value) == null ? void 0 : E.updatePopper) == null || Q.call(E);
|
|
55
55
|
});
|
|
@@ -57,7 +57,7 @@ const jo = (k) => k.match(/\((.*)\)/)[1], Bo = {
|
|
|
57
57
|
{ deep: !0, immediate: !0 }
|
|
58
58
|
), (E, Q) => {
|
|
59
59
|
const n = Pe("el-popover");
|
|
60
|
-
return
|
|
60
|
+
return j(), Me(n, {
|
|
61
61
|
visible: x.value,
|
|
62
62
|
"onUpdate:visible": Q[0] || (Q[0] = (ne) => x.value = ne),
|
|
63
63
|
trigger: P.trigger,
|
|
@@ -105,8 +105,8 @@ function Fo(k, P, h, x = {}) {
|
|
|
105
105
|
for (let L = 1; L < ce.length; L++)
|
|
106
106
|
y.lineTo(ce[L].x, ce[L].y);
|
|
107
107
|
y.closePath();
|
|
108
|
-
const
|
|
109
|
-
y.fillStyle =
|
|
108
|
+
const B = E.replace(/[\d.]+\)$/, `${n})`);
|
|
109
|
+
y.fillStyle = B, y.fill(), y.strokeStyle = E.replace(/[\d.]+\)$/, "1)"), y.lineWidth = Q, y.stroke();
|
|
110
110
|
}
|
|
111
111
|
function Pl(k) {
|
|
112
112
|
if (!k)
|
|
@@ -187,34 +187,34 @@ const Io = {
|
|
|
187
187
|
if (!$) return;
|
|
188
188
|
E = !0, Ae = $, Q = "move", n = se.clientX, ne = se.clientY;
|
|
189
189
|
const G = window.getComputedStyle($), { tx: $e, ty: Qe } = Se(G.transform);
|
|
190
|
-
Re = $e, Ue = Qe, document.addEventListener("mousemove", ce), document.addEventListener("mouseup",
|
|
190
|
+
Re = $e, Ue = Qe, document.addEventListener("mousemove", ce), document.addEventListener("mouseup", B);
|
|
191
191
|
}, ke = (se, $) => {
|
|
192
192
|
const G = fe(se);
|
|
193
193
|
if (!G) return;
|
|
194
194
|
E = !0, Ae = G, Q = $, n = se.clientX, ne = se.clientY;
|
|
195
195
|
const $e = G.getBoundingClientRect();
|
|
196
196
|
De = $e.width, Ee = $e.height;
|
|
197
|
-
const Qe = window.getComputedStyle(G), { tx:
|
|
198
|
-
Re =
|
|
197
|
+
const Qe = window.getComputedStyle(G), { tx: Da, ty: Ze } = Se(Qe.transform);
|
|
198
|
+
Re = Da, Ue = Ze, document.addEventListener("mousemove", ce), document.addEventListener("mouseup", B);
|
|
199
199
|
}, ce = (se) => {
|
|
200
200
|
if (!E || !Ae) return;
|
|
201
201
|
const $ = se.clientX - n, G = se.clientY - ne, $e = 360, Qe = 420;
|
|
202
|
-
let
|
|
202
|
+
let Da = De, Ze = Ee, ll = Re, xe = Ue;
|
|
203
203
|
if (Q === "move") {
|
|
204
204
|
ll = Re + $, xe = Ue + G, Oe(Ae, ll, xe);
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
|
-
if (Q.includes("right") && (
|
|
207
|
+
if (Q.includes("right") && (Da = Math.max($e, De + $)), Q.includes("bottom") && (Ze = Math.max(Qe, Ee + G)), Q.includes("left")) {
|
|
208
208
|
const Ga = De - $;
|
|
209
|
-
Ga < $e ? (
|
|
209
|
+
Ga < $e ? (Da = $e, ll = Re + (De - $e)) : (Da = Ga, ll = Re + $);
|
|
210
210
|
}
|
|
211
211
|
if (Q.includes("top")) {
|
|
212
212
|
const Ga = Ee - G;
|
|
213
213
|
Ga < Qe ? (Ze = Qe, xe = Ue + (Ee - Qe)) : (Ze = Ga, xe = Ue + G);
|
|
214
214
|
}
|
|
215
|
-
Ae.style.width = `${
|
|
216
|
-
},
|
|
217
|
-
E = !1, Q = "", Ae = null, document.removeEventListener("mousemove", ce), document.removeEventListener("mouseup",
|
|
215
|
+
Ae.style.width = `${Da}px`, Ae.style.height = `${Ze}px`, Oe(Ae, ll, xe);
|
|
216
|
+
}, B = () => {
|
|
217
|
+
E = !1, Q = "", Ae = null, document.removeEventListener("mousemove", ce), document.removeEventListener("mouseup", B);
|
|
218
218
|
}, L = M([]), te = M(!1);
|
|
219
219
|
ea(
|
|
220
220
|
() => h.images,
|
|
@@ -228,7 +228,7 @@ const Io = {
|
|
|
228
228
|
for (const G of se)
|
|
229
229
|
if (G.url && !G.url.startsWith("blob:") && !G.url.startsWith("http"))
|
|
230
230
|
try {
|
|
231
|
-
const $e = await
|
|
231
|
+
const $e = await fo(G.url), Qe = URL.createObjectURL($e);
|
|
232
232
|
$.push({ ...G, blobUrl: Qe });
|
|
233
233
|
} catch ($e) {
|
|
234
234
|
console.error(`Failed to load image for preview: ${G.url}`, $e), $.push({ ...G, blobUrl: "" });
|
|
@@ -249,11 +249,11 @@ const Io = {
|
|
|
249
249
|
W.value = se >= 0 ? se : 0;
|
|
250
250
|
} else
|
|
251
251
|
W.value = 0;
|
|
252
|
-
},
|
|
252
|
+
}, pa = (se) => {
|
|
253
253
|
if (!L.value.length) return;
|
|
254
254
|
const $ = Math.max(0, Math.min(se, L.value.length - 1));
|
|
255
255
|
W.value = $;
|
|
256
|
-
}, wa = () =>
|
|
256
|
+
}, wa = () => pa(W.value - 1), ra = () => pa(W.value + 1), ua = (se) => {
|
|
257
257
|
if (!se) return;
|
|
258
258
|
const $ = L.value.findIndex((G) => (G == null ? void 0 : G.name) === se);
|
|
259
259
|
$ >= 0 && (W.value = $);
|
|
@@ -276,7 +276,7 @@ const Io = {
|
|
|
276
276
|
return;
|
|
277
277
|
if (!se.complete || se.naturalWidth === 0) {
|
|
278
278
|
se.onload = () => {
|
|
279
|
-
|
|
279
|
+
La(() => {
|
|
280
280
|
ba();
|
|
281
281
|
});
|
|
282
282
|
};
|
|
@@ -292,8 +292,8 @@ const Io = {
|
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
ta(), Fo(ge.value, se, G.bboxNorm);
|
|
295
|
-
},
|
|
296
|
-
|
|
295
|
+
}, Na = () => {
|
|
296
|
+
La(() => {
|
|
297
297
|
ta(), ba();
|
|
298
298
|
});
|
|
299
299
|
};
|
|
@@ -302,7 +302,7 @@ const Io = {
|
|
|
302
302
|
() => {
|
|
303
303
|
if (!y.value) return;
|
|
304
304
|
const se = rs(h.fieldMeta, h.focusedFieldName);
|
|
305
|
-
se != null && se.imageName &&
|
|
305
|
+
se != null && se.imageName && ua(se.imageName), La(() => {
|
|
306
306
|
ba();
|
|
307
307
|
});
|
|
308
308
|
}
|
|
@@ -312,14 +312,14 @@ const Io = {
|
|
|
312
312
|
return (se = C.value) == null ? void 0 : se.name;
|
|
313
313
|
},
|
|
314
314
|
() => {
|
|
315
|
-
y.value &&
|
|
315
|
+
y.value && La(() => {
|
|
316
316
|
ge.value && Pl(ge.value), ba();
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
), ea(
|
|
320
320
|
() => h.visible,
|
|
321
321
|
(se) => {
|
|
322
|
-
se ? (We(),
|
|
322
|
+
se ? (We(), La(() => {
|
|
323
323
|
ta(), ba();
|
|
324
324
|
})) : ge.value && Pl(ge.value);
|
|
325
325
|
}
|
|
@@ -333,20 +333,20 @@ const Io = {
|
|
|
333
333
|
yr(() => {
|
|
334
334
|
var se;
|
|
335
335
|
typeof ResizeObserver < "u" && (K = new ResizeObserver(() => {
|
|
336
|
-
ta(),
|
|
336
|
+
ta(), La(() => {
|
|
337
337
|
ba();
|
|
338
338
|
});
|
|
339
339
|
}), (se = ge.value) != null && se.parentElement && K.observe(ge.value.parentElement));
|
|
340
340
|
}), os(() => {
|
|
341
|
-
K && (K.disconnect(), K = null), document.removeEventListener("mousemove", ce), document.removeEventListener("mouseup",
|
|
341
|
+
K && (K.disconnect(), K = null), document.removeEventListener("mousemove", ce), document.removeEventListener("mouseup", B);
|
|
342
342
|
});
|
|
343
343
|
const Ie = () => {
|
|
344
344
|
ge.value && Pl(ge.value), x("update:visible", !1), x("close");
|
|
345
345
|
};
|
|
346
346
|
return (se, $) => {
|
|
347
347
|
var Ze, ll;
|
|
348
|
-
const G = Pe("el-button"), $e = Pe("el-image"), Qe = Pe("Loading"),
|
|
349
|
-
return y.value ? (
|
|
348
|
+
const G = Pe("el-button"), $e = Pe("el-image"), Qe = Pe("Loading"), Da = Pe("el-icon");
|
|
349
|
+
return y.value ? (j(), re("div", Io, [
|
|
350
350
|
$[12] || ($[12] = z("div", { class: "ocr-img-preview-backdrop" }, null, -1)),
|
|
351
351
|
z("div", zo, [
|
|
352
352
|
z("div", {
|
|
@@ -392,12 +392,12 @@ const Io = {
|
|
|
392
392
|
class: "resizable-handle bottom-right",
|
|
393
393
|
onMousedown: $[7] || ($[7] = ia((xe) => ke(xe, "bottom-right"), ["stop"]))
|
|
394
394
|
}, null, 32),
|
|
395
|
-
C.value ? (
|
|
395
|
+
C.value ? (j(), re("div", Ko, [
|
|
396
396
|
z("div", Wo, [
|
|
397
397
|
z("div", Jo, [
|
|
398
398
|
z("span", Ho, Fe(C.value.name ? C.value.name + (C.value.url && C.value.url.lastIndexOf(".") !== -1 ? C.value.url.substring(C.value.url.lastIndexOf(".")) : "") : ""), 1)
|
|
399
399
|
]),
|
|
400
|
-
L.value.length > 1 ? (
|
|
400
|
+
L.value.length > 1 ? (j(), re("div", qo, [
|
|
401
401
|
q(G, {
|
|
402
402
|
size: "small",
|
|
403
403
|
disabled: W.value === 0,
|
|
@@ -413,7 +413,7 @@ const Io = {
|
|
|
413
413
|
q(G, {
|
|
414
414
|
size: "small",
|
|
415
415
|
disabled: W.value === L.value.length - 1,
|
|
416
|
-
onClick:
|
|
416
|
+
onClick: ra
|
|
417
417
|
}, {
|
|
418
418
|
default: Y(() => $[10] || ($[10] = [
|
|
419
419
|
Ke("下一张")
|
|
@@ -423,33 +423,33 @@ const Io = {
|
|
|
423
423
|
}, 8, ["disabled"])
|
|
424
424
|
])) : Ne("", !0)
|
|
425
425
|
]),
|
|
426
|
-
L.value.length > 1 ? (
|
|
427
|
-
(
|
|
426
|
+
L.value.length > 1 ? (j(), re("div", Go, [
|
|
427
|
+
(j(!0), re(ca, null, Aa(L.value, (xe, Ga) => (j(), re("div", {
|
|
428
428
|
key: (xe.name || "") + "-" + Ga,
|
|
429
|
-
class:
|
|
430
|
-
onClick: (zr) =>
|
|
429
|
+
class: ja(["img-thumb-item", { active: Ga === W.value }]),
|
|
430
|
+
onClick: (zr) => pa(Ga)
|
|
431
431
|
}, [
|
|
432
|
-
xe != null && xe.blobUrl ? (
|
|
432
|
+
xe != null && xe.blobUrl ? (j(), Me($e, {
|
|
433
433
|
key: 0,
|
|
434
434
|
src: xe.blobUrl,
|
|
435
435
|
fit: "cover",
|
|
436
436
|
class: "thumb-image",
|
|
437
437
|
"preview-src-list": [xe.blobUrl],
|
|
438
438
|
"initial-index": 0
|
|
439
|
-
}, null, 8, ["src", "preview-src-list"])) : (
|
|
439
|
+
}, null, 8, ["src", "preview-src-list"])) : (j(), re("div", Qo, "加载失败")),
|
|
440
440
|
z("div", Zo, Fe(xe.name || "-"), 1)
|
|
441
441
|
], 10, Xo))), 128))
|
|
442
442
|
])) : Ne("", !0),
|
|
443
443
|
z("div", Vo, [
|
|
444
|
-
te.value ? (
|
|
445
|
-
q(
|
|
444
|
+
te.value ? (j(), re("div", ei, [
|
|
445
|
+
q(Da, { class: "is-loading" }, {
|
|
446
446
|
default: Y(() => [
|
|
447
447
|
q(Qe)
|
|
448
448
|
]),
|
|
449
449
|
_: 1
|
|
450
450
|
}),
|
|
451
451
|
$[11] || ($[11] = z("span", null, "图片加载中...", -1))
|
|
452
|
-
])) : (Ze = C.value) != null && Ze.blobUrl ? (
|
|
452
|
+
])) : (Ze = C.value) != null && Ze.blobUrl ? (j(), re(ca, { key: 1 }, [
|
|
453
453
|
q($e, {
|
|
454
454
|
ref_key: "imageRef",
|
|
455
455
|
ref: he,
|
|
@@ -457,18 +457,18 @@ const Io = {
|
|
|
457
457
|
fit: "contain",
|
|
458
458
|
class: "preview-image",
|
|
459
459
|
"preview-src-list": [C.value.blobUrl],
|
|
460
|
-
onLoad:
|
|
460
|
+
onLoad: Na
|
|
461
461
|
}, null, 8, ["src", "preview-src-list"]),
|
|
462
462
|
z("canvas", {
|
|
463
463
|
ref_key: "canvasRef",
|
|
464
464
|
ref: ge,
|
|
465
465
|
class: "highlight-canvas"
|
|
466
466
|
}, null, 512)
|
|
467
|
-
], 64)) : (
|
|
468
|
-
(ll = C.value) != null && ll.url ? (
|
|
467
|
+
], 64)) : (j(), re("div", ai, [
|
|
468
|
+
(ll = C.value) != null && ll.url ? (j(), re("span", li, "图片加载失败")) : (j(), re("span", ri, "暂无图片"))
|
|
469
469
|
]))
|
|
470
470
|
])
|
|
471
|
-
])) : (
|
|
471
|
+
])) : (j(), re("div", ni, "暂无图片"))
|
|
472
472
|
])
|
|
473
473
|
])) : Ne("", !0);
|
|
474
474
|
};
|
|
@@ -574,8 +574,8 @@ const Io = {
|
|
|
574
574
|
return Fr(() => {
|
|
575
575
|
Ee();
|
|
576
576
|
}), (fe, Se) => {
|
|
577
|
-
const Oe = Pe("el-empty"), Ge = Pe("el-tab-pane"), ke = Pe("el-tabs"), ce = Pe("el-button"),
|
|
578
|
-
return
|
|
577
|
+
const Oe = Pe("el-empty"), Ge = Pe("el-tab-pane"), ke = Pe("el-tabs"), ce = Pe("el-button"), B = Pe("el-dialog");
|
|
578
|
+
return j(), Me(B, {
|
|
579
579
|
"model-value": fe.visible,
|
|
580
580
|
title: "证书附件预览",
|
|
581
581
|
width: "1100px",
|
|
@@ -595,7 +595,7 @@ const Io = {
|
|
|
595
595
|
})
|
|
596
596
|
]),
|
|
597
597
|
default: Y(() => [
|
|
598
|
-
fe.versions && fe.versions.length > 0 ? (
|
|
598
|
+
fe.versions && fe.versions.length > 0 ? (j(), Me(ke, {
|
|
599
599
|
key: 0,
|
|
600
600
|
modelValue: y.value,
|
|
601
601
|
"onUpdate:modelValue": Se[0] || (Se[0] = (L) => y.value = L),
|
|
@@ -603,47 +603,47 @@ const Io = {
|
|
|
603
603
|
class: "cert-version-tabs"
|
|
604
604
|
}, {
|
|
605
605
|
default: Y(() => [
|
|
606
|
-
(
|
|
606
|
+
(j(!0), re(ca, null, Aa(fe.versions, (L) => (j(), Me(Ge, {
|
|
607
607
|
key: L.versionId,
|
|
608
608
|
name: L.versionId,
|
|
609
609
|
label: L.label
|
|
610
610
|
}, {
|
|
611
611
|
default: Y(() => [
|
|
612
612
|
z("div", oi, [
|
|
613
|
-
L.fileType === "pdf" ? (
|
|
614
|
-
ne.value ? (
|
|
613
|
+
L.fileType === "pdf" ? (j(), re("div", ii, [
|
|
614
|
+
ne.value ? (j(), Me(uo, {
|
|
615
615
|
key: 1,
|
|
616
616
|
fileName: De.value,
|
|
617
617
|
blobUrl: ne.value
|
|
618
|
-
}, null, 8, ["fileName", "blobUrl"])) : (
|
|
618
|
+
}, null, 8, ["fileName", "blobUrl"])) : (j(), Me(Oe, {
|
|
619
619
|
key: 0,
|
|
620
620
|
description: "加载中"
|
|
621
621
|
}))
|
|
622
|
-
])) : (
|
|
622
|
+
])) : (j(), re(ca, { key: 1 }, [
|
|
623
623
|
z("div", ui, [
|
|
624
|
-
(
|
|
624
|
+
(j(!0), re(ca, null, Aa(L.images || [], (te) => (j(), re("div", {
|
|
625
625
|
key: te.url,
|
|
626
|
-
class:
|
|
626
|
+
class: ja(["thumb", { active: te.url === E.value }]),
|
|
627
627
|
onClick: (W) => E.value = te.url
|
|
628
628
|
}, [
|
|
629
629
|
z("div", ci, [
|
|
630
|
-
n.value[te.url] ? (
|
|
630
|
+
n.value[te.url] ? (j(), re("img", {
|
|
631
631
|
key: 0,
|
|
632
632
|
src: n.value[te.url]
|
|
633
|
-
}, null, 8, pi)) : (
|
|
633
|
+
}, null, 8, pi)) : (j(), re("div", fi, "加载中"))
|
|
634
634
|
]),
|
|
635
635
|
z("div", vi, Fe(te.name), 1)
|
|
636
636
|
], 10, di))), 128))
|
|
637
637
|
]),
|
|
638
638
|
z("div", hi, [
|
|
639
|
-
E.value ? (
|
|
640
|
-
n.value[E.value] ? (
|
|
639
|
+
E.value ? (j(), re(ca, { key: 1 }, [
|
|
640
|
+
n.value[E.value] ? (j(), re("div", yi, [
|
|
641
641
|
z("img", {
|
|
642
642
|
class: "viewer-img",
|
|
643
643
|
src: n.value[E.value]
|
|
644
644
|
}, null, 8, gi)
|
|
645
|
-
])) : (
|
|
646
|
-
], 64)) : (
|
|
645
|
+
])) : (j(), re("div", bi, "加载中"))
|
|
646
|
+
], 64)) : (j(), Me(Oe, {
|
|
647
647
|
key: 0,
|
|
648
648
|
description: "暂无图片"
|
|
649
649
|
}))
|
|
@@ -655,7 +655,7 @@ const Io = {
|
|
|
655
655
|
}, 1032, ["name", "label"]))), 128))
|
|
656
656
|
]),
|
|
657
657
|
_: 1
|
|
658
|
-
}, 8, ["modelValue"])) : (
|
|
658
|
+
}, 8, ["modelValue"])) : (j(), Me(Oe, {
|
|
659
659
|
key: 1,
|
|
660
660
|
description: "暂无可预览的证书附件"
|
|
661
661
|
}))
|
|
@@ -679,40 +679,40 @@ const Io = {
|
|
|
679
679
|
emits: ["update:visible", "submit"],
|
|
680
680
|
setup(k, { emit: P }) {
|
|
681
681
|
const h = (ke = []) => {
|
|
682
|
-
const ce = [],
|
|
682
|
+
const ce = [], B = (L) => {
|
|
683
683
|
(L || []).forEach((te) => {
|
|
684
684
|
if (!te) return;
|
|
685
685
|
const W = te.children || te.childrens || te.columns;
|
|
686
|
-
Array.isArray(W) && W.length > 0 ?
|
|
686
|
+
Array.isArray(W) && W.length > 0 ? B(W) : ce.push(te);
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
|
-
return
|
|
689
|
+
return B(ke), ce;
|
|
690
690
|
}, x = k, y = P, E = M([]), Q = M(0), n = M("");
|
|
691
691
|
ea(
|
|
692
692
|
() => x.candidates,
|
|
693
693
|
(ke) => {
|
|
694
|
-
var ce,
|
|
694
|
+
var ce, B;
|
|
695
695
|
E.value = (ke || []).map((L) => ({
|
|
696
696
|
...L,
|
|
697
697
|
selectedTargetId: (L == null ? void 0 : L.selectedTargetId) || "",
|
|
698
698
|
__decision: L == null ? void 0 : L.__decision
|
|
699
|
-
})), Q.value = 0, n.value = ((
|
|
699
|
+
})), Q.value = 0, n.value = ((B = (ce = E.value) == null ? void 0 : ce[0]) == null ? void 0 : B.selectedTargetId) || "";
|
|
700
700
|
},
|
|
701
701
|
{ immediate: !0, deep: !0 }
|
|
702
702
|
), ea(
|
|
703
703
|
() => x.visible,
|
|
704
704
|
(ke) => {
|
|
705
|
-
var ce,
|
|
706
|
-
ke && (Q.value = 0, n.value = ((
|
|
705
|
+
var ce, B;
|
|
706
|
+
ke && (Q.value = 0, n.value = ((B = (ce = E.value) == null ? void 0 : ce[0]) == null ? void 0 : B.selectedTargetId) || "");
|
|
707
707
|
}
|
|
708
708
|
);
|
|
709
709
|
const ne = xa(() => {
|
|
710
710
|
var ce;
|
|
711
711
|
const ke = Number(Q.value || 0);
|
|
712
712
|
return ((ce = E.value || []) == null ? void 0 : ce[ke]) || null;
|
|
713
|
-
}), De = xa(() => (h(x.columns || []) || []).filter((
|
|
713
|
+
}), De = xa(() => (h(x.columns || []) || []).filter((B) => B && B.prop).filter((B) => B.type !== "operate" && B.label !== "操作" && B.prop !== "operate")), Ee = (ke) => {
|
|
714
714
|
if (!ke) return;
|
|
715
|
-
const ce = (E.value || []).findIndex((
|
|
715
|
+
const ce = (E.value || []).findIndex((B) => (B == null ? void 0 : B.idx) === (ke == null ? void 0 : ke.idx));
|
|
716
716
|
ce > -1 && (Q.value = ce, n.value = (ke == null ? void 0 : ke.selectedTargetId) || "");
|
|
717
717
|
}, Re = (ke) => {
|
|
718
718
|
if (!ke) {
|
|
@@ -721,7 +721,7 @@ const Io = {
|
|
|
721
721
|
}
|
|
722
722
|
n.value = String((ke == null ? void 0 : ke.id) ?? "");
|
|
723
723
|
}, Ue = (ke, ce = "") => {
|
|
724
|
-
const
|
|
724
|
+
const B = Number(Q.value || 0), L = E.value || [], te = L[B];
|
|
725
725
|
te && (te.__decision = ke, te.selectedTargetId = ce, n.value = ce, E.value = [...L]);
|
|
726
726
|
}, Ae = () => Ue("skip", ""), fe = () => Ue("add", ""), Se = () => {
|
|
727
727
|
if (!n.value) {
|
|
@@ -733,15 +733,15 @@ const Io = {
|
|
|
733
733
|
y("update:visible", !1);
|
|
734
734
|
}, Ge = () => {
|
|
735
735
|
const ke = E.value || [];
|
|
736
|
-
if (ke.find((
|
|
736
|
+
if (ke.find((B) => (B == null ? void 0 : B.__decision) === "replace" && !(B != null && B.selectedTargetId))) {
|
|
737
737
|
Le.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
740
|
y("submit", ke), y("update:visible", !1);
|
|
741
741
|
};
|
|
742
742
|
return (ke, ce) => {
|
|
743
|
-
const
|
|
744
|
-
return
|
|
743
|
+
const B = Pe("el-table-column"), L = Pe("el-table"), te = Pe("el-button"), W = Pe("el-alert");
|
|
744
|
+
return j(), Me(ul, {
|
|
745
745
|
title: "OCR候选匹配",
|
|
746
746
|
visible: k.visible,
|
|
747
747
|
"close-on-click-modal": !1,
|
|
@@ -765,12 +765,12 @@ const Io = {
|
|
|
765
765
|
onCurrentChange: Ee
|
|
766
766
|
}, {
|
|
767
767
|
default: Y(() => [
|
|
768
|
-
q(
|
|
768
|
+
q(B, {
|
|
769
769
|
type: "index",
|
|
770
770
|
label: "序号",
|
|
771
771
|
width: "60"
|
|
772
772
|
}),
|
|
773
|
-
q(
|
|
773
|
+
q(B, {
|
|
774
774
|
label: "编号",
|
|
775
775
|
"min-width": "140"
|
|
776
776
|
}, {
|
|
@@ -779,7 +779,7 @@ const Io = {
|
|
|
779
779
|
]),
|
|
780
780
|
_: 1
|
|
781
781
|
}),
|
|
782
|
-
q(
|
|
782
|
+
q(B, {
|
|
783
783
|
label: "候选数",
|
|
784
784
|
width: "90"
|
|
785
785
|
}, {
|
|
@@ -788,12 +788,12 @@ const Io = {
|
|
|
788
788
|
]),
|
|
789
789
|
_: 1
|
|
790
790
|
}),
|
|
791
|
-
q(
|
|
791
|
+
q(B, {
|
|
792
792
|
label: "处理状态",
|
|
793
793
|
width: "120"
|
|
794
794
|
}, {
|
|
795
795
|
default: Y(({ row: C }) => [
|
|
796
|
-
(C == null ? void 0 : C.__decision) === "replace" ? (
|
|
796
|
+
(C == null ? void 0 : C.__decision) === "replace" ? (j(), re("span", Ci, "替换")) : (C == null ? void 0 : C.__decision) === "add" ? (j(), re("span", Ai, "新增")) : (C == null ? void 0 : C.__decision) === "skip" ? (j(), re("span", wi, "跳过")) : (j(), re("span", Ti, "未处理"))
|
|
797
797
|
]),
|
|
798
798
|
_: 1
|
|
799
799
|
})
|
|
@@ -801,7 +801,7 @@ const Io = {
|
|
|
801
801
|
_: 1
|
|
802
802
|
}, 8, ["data"])
|
|
803
803
|
]),
|
|
804
|
-
E.value && E.value.length > 0 ? (
|
|
804
|
+
E.value && E.value.length > 0 ? (j(), re("div", Oi, [
|
|
805
805
|
ce[4] || (ce[4] = z("div", { class: "ocr-candidate-title" }, "当前行候选记录(同编号)", -1)),
|
|
806
806
|
z("div", xi, [
|
|
807
807
|
q(te, {
|
|
@@ -837,7 +837,7 @@ const Io = {
|
|
|
837
837
|
__: [3]
|
|
838
838
|
}, 8, ["disabled"])
|
|
839
839
|
]),
|
|
840
|
-
(((he = ne.value) == null ? void 0 : he.candidates) || []).length === 0 ? (
|
|
840
|
+
(((he = ne.value) == null ? void 0 : he.candidates) || []).length === 0 ? (j(), Me(W, {
|
|
841
841
|
key: 0,
|
|
842
842
|
title: "该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",
|
|
843
843
|
type: "info",
|
|
@@ -855,12 +855,12 @@ const Io = {
|
|
|
855
855
|
"highlight-current-row": ""
|
|
856
856
|
}, {
|
|
857
857
|
default: Y(() => [
|
|
858
|
-
q(
|
|
858
|
+
q(B, {
|
|
859
859
|
type: "index",
|
|
860
860
|
label: "序号",
|
|
861
861
|
width: "60"
|
|
862
862
|
}),
|
|
863
|
-
(
|
|
863
|
+
(j(!0), re(ca, null, Aa(De.value, (C) => (j(), Me(B, {
|
|
864
864
|
key: C.prop,
|
|
865
865
|
label: C.label,
|
|
866
866
|
prop: C.prop,
|
|
@@ -945,8 +945,8 @@ const Io = {
|
|
|
945
945
|
x("update:visible", !1);
|
|
946
946
|
}, Re = (Ae) => typeof Ae != "number" ? "-" : `${(Ae * 100).toFixed(1)}%`, Ue = (Ae) => typeof Ae != "number" ? "#606266" : Ae >= 0.9 ? "#67c23a" : Ae >= 0.7 ? "#e6a23c" : "#f56c6c";
|
|
947
947
|
return (Ae, fe) => {
|
|
948
|
-
const Se = Pe("el-alert"), Oe = Pe("el-table-column"), Ge = Pe("el-checkbox"), ke = Pe("el-input"), ce = Pe("el-table"),
|
|
949
|
-
return
|
|
948
|
+
const Se = Pe("el-alert"), Oe = Pe("el-table-column"), Ge = Pe("el-checkbox"), ke = Pe("el-input"), ce = Pe("el-table"), B = Pe("el-button");
|
|
949
|
+
return j(), Me(ul, {
|
|
950
950
|
title: "OCR识别结果预览",
|
|
951
951
|
visible: k.visible,
|
|
952
952
|
onBeforeDestroy: Ee,
|
|
@@ -978,7 +978,7 @@ const Io = {
|
|
|
978
978
|
width: "60",
|
|
979
979
|
fixed: ""
|
|
980
980
|
}),
|
|
981
|
-
(
|
|
981
|
+
(j(!0), re(ca, null, Aa(E.value, (L) => (j(), Me(Oe, {
|
|
982
982
|
key: L.prop,
|
|
983
983
|
prop: L.prop,
|
|
984
984
|
"min-width": L.minWidth || 230,
|
|
@@ -986,7 +986,7 @@ const Io = {
|
|
|
986
986
|
}, {
|
|
987
987
|
header: Y(() => [
|
|
988
988
|
z("div", Ri, [
|
|
989
|
-
L.isAccuracy ? Ne("", !0) : (
|
|
989
|
+
L.isAccuracy ? Ne("", !0) : (j(), Me(Ge, {
|
|
990
990
|
key: 0,
|
|
991
991
|
"model-value": Q.value.includes(L.prop),
|
|
992
992
|
onChange: (te) => n(L.prop, te),
|
|
@@ -997,11 +997,11 @@ const Io = {
|
|
|
997
997
|
])
|
|
998
998
|
]),
|
|
999
999
|
default: Y(({ row: te, $index: W }) => [
|
|
1000
|
-
L.isAccuracy ? (
|
|
1000
|
+
L.isAccuracy ? (j(), re("span", {
|
|
1001
1001
|
key: 0,
|
|
1002
1002
|
class: "accuracy-value",
|
|
1003
1003
|
style: Gl({ color: Ue(te[L.prop]), fontWeight: 500 })
|
|
1004
|
-
}, Fe(Re(te[L.prop])), 5)) : (
|
|
1004
|
+
}, Fe(Re(te[L.prop])), 5)) : (j(), Me(ke, {
|
|
1005
1005
|
key: 1,
|
|
1006
1006
|
modelValue: te[L.prop],
|
|
1007
1007
|
"onUpdate:modelValue": (he) => te[L.prop] = he,
|
|
@@ -1020,7 +1020,7 @@ const Io = {
|
|
|
1020
1020
|
]),
|
|
1021
1021
|
footer: Y(() => [
|
|
1022
1022
|
z("div", Li, [
|
|
1023
|
-
q(
|
|
1023
|
+
q(B, {
|
|
1024
1024
|
onClick: Ee,
|
|
1025
1025
|
id: "themeBorderButton"
|
|
1026
1026
|
}, {
|
|
@@ -1030,7 +1030,7 @@ const Io = {
|
|
|
1030
1030
|
_: 1,
|
|
1031
1031
|
__: [1]
|
|
1032
1032
|
}),
|
|
1033
|
-
q(
|
|
1033
|
+
q(B, {
|
|
1034
1034
|
class: "ok-button",
|
|
1035
1035
|
onClick: De,
|
|
1036
1036
|
id: "themeButton"
|
|
@@ -1047,7 +1047,7 @@ const Io = {
|
|
|
1047
1047
|
}, 8, ["visible"]);
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
},
|
|
1050
|
+
}, Bi = /* @__PURE__ */ vl(Mi, [["__scopeId", "data-v-df66eb1f"]]), ji = async (k) => {
|
|
1051
1051
|
var x, y, E, Q;
|
|
1052
1052
|
let P = (x = k == null ? void 0 : k.menus) == null ? void 0 : x.join("/"), h = await Do(P, !1);
|
|
1053
1053
|
return h = (y = h == null ? void 0 : h.filter((n) => {
|
|
@@ -1136,69 +1136,69 @@ const Io = {
|
|
|
1136
1136
|
icon: "cardViewport_101"
|
|
1137
1137
|
}
|
|
1138
1138
|
];
|
|
1139
|
-
function De(
|
|
1140
|
-
return
|
|
1139
|
+
function De(B, L) {
|
|
1140
|
+
return B.map((te) => {
|
|
1141
1141
|
const W = { ...te };
|
|
1142
1142
|
return L.forEach((he) => {
|
|
1143
1143
|
delete W[he];
|
|
1144
1144
|
}), W;
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
|
-
const Ee = (
|
|
1148
|
-
const L =
|
|
1147
|
+
const Ee = (B) => {
|
|
1148
|
+
const L = B.raw;
|
|
1149
1149
|
if (!L) return;
|
|
1150
1150
|
const te = new FileReader();
|
|
1151
1151
|
te.onload = (W) => {
|
|
1152
1152
|
try {
|
|
1153
|
-
const he = new Uint8Array(W.target.result), ge =
|
|
1153
|
+
const he = new Uint8Array(W.target.result), ge = vo(he, { type: "array" }), C = ge.SheetNames[0], We = ge.Sheets[C], wa = Xl.decode_range(We["!ref"]).e.c + 1, ra = new Array(wa).fill(""), ua = [];
|
|
1154
1154
|
for (const Ie in We) {
|
|
1155
1155
|
if (Ie[0] === "!") continue;
|
|
1156
1156
|
const { r: se, c: $ } = Xl.decode_cell(Ie);
|
|
1157
1157
|
let G = We[Ie].v;
|
|
1158
1158
|
if (We[Ie].t === "n" && G > 0 && G < 1e6 && (G = new Date((G - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (G == null || G === "") && (G = ""), se === 0)
|
|
1159
|
-
|
|
1159
|
+
ra[$] = G;
|
|
1160
1160
|
else {
|
|
1161
|
-
if (!
|
|
1162
|
-
|
|
1161
|
+
if (!ua[se - 1]) {
|
|
1162
|
+
ua[se - 1] = {};
|
|
1163
1163
|
for (let $e = 0; $e < wa; $e++)
|
|
1164
|
-
|
|
1164
|
+
ua[se - 1][`col_${$e}`] = "";
|
|
1165
1165
|
}
|
|
1166
|
-
|
|
1166
|
+
ua[se - 1][`col_${$}`] = G;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
for (let Ie = 0; Ie < wa; Ie++)
|
|
1170
|
-
|
|
1170
|
+
ra[Ie] === void 0 && (ra[Ie] = "");
|
|
1171
1171
|
const ta = [];
|
|
1172
|
-
for (let Ie = 0; Ie <
|
|
1173
|
-
(!
|
|
1174
|
-
let ba,
|
|
1175
|
-
(ta == null ? void 0 : ta.length) > 0
|
|
1176
|
-
const K =
|
|
1172
|
+
for (let Ie = 0; Ie < ra.length; Ie++)
|
|
1173
|
+
(!ra[Ie] || ra[Ie].toString().trim() === "") && ta.push(Ie);
|
|
1174
|
+
let ba, Na;
|
|
1175
|
+
(ta == null ? void 0 : ta.length) > 0 ? (Le.warning("存在键为空的列,已自动过滤,请检查补充"), ba = ra.filter((Ie, se) => !ta.includes(se)), Na = De(ua, ta == null ? void 0 : ta.map((Ie) => `col_${Ie}`)), console.log(2345, ta, ba, Na)) : (ba = ra, Na = ua);
|
|
1176
|
+
const K = ua == null ? void 0 : ua[0];
|
|
1177
1177
|
if (!(K != null && K.hasOwnProperty("col_0"))) return Le.error("导入的数据列不匹配,请检查是否错位");
|
|
1178
|
-
h("getImportData", ba,
|
|
1178
|
+
h("getImportData", ba, Na);
|
|
1179
1179
|
} catch (he) {
|
|
1180
1180
|
throw Le.error(he.message), new Error(he.message);
|
|
1181
1181
|
}
|
|
1182
1182
|
}, te.readAsArrayBuffer(L);
|
|
1183
|
-
}, Re = (
|
|
1183
|
+
}, Re = (B) => {
|
|
1184
1184
|
var te;
|
|
1185
|
-
const L = (te = Q.value) == null ? void 0 : te.reduce((W, he, ge) => (ge === 0 ? W[he.label] =
|
|
1186
|
-
h("filter", L,
|
|
1187
|
-
}, Ue = (
|
|
1188
|
-
h("buttonClick",
|
|
1189
|
-
}, Ae = (
|
|
1185
|
+
const L = (te = Q.value) == null ? void 0 : te.reduce((W, he, ge) => (ge === 0 ? W[he.label] = B : W[he.label] = he == null ? void 0 : he.value, W), {});
|
|
1186
|
+
h("filter", L, B, !0);
|
|
1187
|
+
}, Ue = (B, L = {}) => {
|
|
1188
|
+
h("buttonClick", B, "", L);
|
|
1189
|
+
}, Ae = (B) => {
|
|
1190
1190
|
var L, te;
|
|
1191
|
-
Q.value = (te = (L = Ll(Te(
|
|
1191
|
+
Q.value = (te = (L = Ll(Te(B))) == null ? void 0 : L.filter((W) => (W == null ? void 0 : W.label) !== "" && (W == null ? void 0 : W.label) !== "操作")) == null ? void 0 : te.map((W) => ({
|
|
1192
1192
|
label: (W == null ? void 0 : W.label) ?? "",
|
|
1193
1193
|
value: "",
|
|
1194
1194
|
name: (W == null ? void 0 : W.label) ?? "",
|
|
1195
1195
|
isFormColHidden: W == null ? void 0 : W.isTableColHidden,
|
|
1196
1196
|
width: 2
|
|
1197
1197
|
}));
|
|
1198
|
-
}, fe = M(!1), Se = (
|
|
1198
|
+
}, fe = M(!1), Se = (B) => {
|
|
1199
1199
|
var L;
|
|
1200
|
-
if ((
|
|
1201
|
-
const te = Te(
|
|
1200
|
+
if ((B == null ? void 0 : B.buttonName) === "确认" && (h("filter", B == null ? void 0 : B.content), fe.value = (B == null ? void 0 : B.content) && Object.values(B == null ? void 0 : B.content).length > 0), (B == null ? void 0 : B.buttonName) === "清空") {
|
|
1201
|
+
const te = Te(B == null ? void 0 : B.content);
|
|
1202
1202
|
for (const W in te)
|
|
1203
1203
|
te[W] = "";
|
|
1204
1204
|
Q.value = (L = Q.value) == null ? void 0 : L.map((W) => ({
|
|
@@ -1215,17 +1215,17 @@ const Io = {
|
|
|
1215
1215
|
...W,
|
|
1216
1216
|
value: ""
|
|
1217
1217
|
}));
|
|
1218
|
-
const
|
|
1219
|
-
h("filter",
|
|
1218
|
+
const B = (te = Q.value) == null ? void 0 : te.reduce((W, he) => (W[he.label] = he.value, W), {});
|
|
1219
|
+
h("filter", B);
|
|
1220
1220
|
}, ke = M(null);
|
|
1221
1221
|
let ce;
|
|
1222
|
-
return ce = (
|
|
1222
|
+
return ce = (B) => {
|
|
1223
1223
|
var he;
|
|
1224
1224
|
if (!E.value) return;
|
|
1225
|
-
const L = (he = ke == null ? void 0 : ke.value) == null ? void 0 : he.$el, te = L == null ? void 0 : L.contains(
|
|
1225
|
+
const L = (he = ke == null ? void 0 : ke.value) == null ? void 0 : he.$el, te = L == null ? void 0 : L.contains(B.target);
|
|
1226
1226
|
let W = !1;
|
|
1227
1227
|
document.querySelectorAll(".el-popover, .el-popper").forEach((ge) => {
|
|
1228
|
-
ge.contains(
|
|
1228
|
+
ge.contains(B.target) && (W = !0);
|
|
1229
1229
|
}), !te && !W && (E.value = !1);
|
|
1230
1230
|
}, yr(() => {
|
|
1231
1231
|
document.addEventListener("click", ce), Ae(x.columns);
|
|
@@ -1237,12 +1237,12 @@ const Io = {
|
|
|
1237
1237
|
Ae(x.columns);
|
|
1238
1238
|
},
|
|
1239
1239
|
{ deep: !0, immediate: !0 }
|
|
1240
|
-
), (
|
|
1241
|
-
var We,
|
|
1240
|
+
), (B, L) => {
|
|
1241
|
+
var We, pa, wa, ra, ua, ta, ba, Na;
|
|
1242
1242
|
const te = Pe("el-icon"), W = Pe("svg-icon"), he = Pe("el-input"), ge = Pe("el-upload"), C = Pe("el-button");
|
|
1243
|
-
return k.pageLayout === "vertical" ? (
|
|
1243
|
+
return k.pageLayout === "vertical" ? (j(), re("div", Fi, [
|
|
1244
1244
|
z("div", {
|
|
1245
|
-
class:
|
|
1245
|
+
class: ja(k.compName ? "table-name-wrap" : ""),
|
|
1246
1246
|
style: Gl({
|
|
1247
1247
|
background: (x == null ? void 0 : x.level) > 1 ? "transparent" : "var(--ssgroup-background)",
|
|
1248
1248
|
paddingLeft: ((x == null ? void 0 : x.level) - 1) * 12 + "px",
|
|
@@ -1251,8 +1251,8 @@ const Io = {
|
|
|
1251
1251
|
})
|
|
1252
1252
|
}, Fe(k.compName), 7),
|
|
1253
1253
|
z("div", Ii, [
|
|
1254
|
-
x != null && x.filterShow ? (
|
|
1255
|
-
q(
|
|
1254
|
+
x != null && x.filterShow ? (j(), re("div", zi, [
|
|
1255
|
+
q(jo, {
|
|
1256
1256
|
trigger: "contextmenu",
|
|
1257
1257
|
ref_key: "popOverRef",
|
|
1258
1258
|
ref: ke,
|
|
@@ -1270,7 +1270,7 @@ const Io = {
|
|
|
1270
1270
|
"onUpdate:modelValue": L[0] || (L[0] = (G) => y.value = G),
|
|
1271
1271
|
style: { "min-width": "80px" },
|
|
1272
1272
|
placeholder: fe.value ? (se = (Ie = (K = k.filterValues) == null ? void 0 : K.filter((G) => G)) == null ? void 0 : Ie.slice(0, 3)) == null ? void 0 : se.join("/") : "搜索",
|
|
1273
|
-
"prefix-icon":
|
|
1273
|
+
"prefix-icon": Ra(Jn),
|
|
1274
1274
|
clearable: "",
|
|
1275
1275
|
onInput: Re,
|
|
1276
1276
|
disabled: (($ = Q.value) == null ? void 0 : $.length) === 0
|
|
@@ -1278,13 +1278,13 @@ const Io = {
|
|
|
1278
1278
|
suffix: Y(() => {
|
|
1279
1279
|
var G, $e;
|
|
1280
1280
|
return [
|
|
1281
|
-
!y.value && (($e = (G = k.filterValues) == null ? void 0 : G.filter((Qe) => Qe)) != null && $e.join("/")) ? (
|
|
1281
|
+
!y.value && (($e = (G = k.filterValues) == null ? void 0 : G.filter((Qe) => Qe)) != null && $e.join("/")) ? (j(), Me(te, {
|
|
1282
1282
|
key: 0,
|
|
1283
1283
|
style: { cursor: "pointer" },
|
|
1284
1284
|
onClick: Ge
|
|
1285
1285
|
}, {
|
|
1286
1286
|
default: Y(() => [
|
|
1287
|
-
q(
|
|
1287
|
+
q(Ra(Hn))
|
|
1288
1288
|
]),
|
|
1289
1289
|
_: 1
|
|
1290
1290
|
})) : Ne("", !0)
|
|
@@ -1315,7 +1315,7 @@ const Io = {
|
|
|
1315
1315
|
onKeypress: L[3] || (L[3] = ia(() => {
|
|
1316
1316
|
}, ["stop"]))
|
|
1317
1317
|
}, [
|
|
1318
|
-
(
|
|
1318
|
+
(j(), Me(Ql, {
|
|
1319
1319
|
rowContents: Q.value,
|
|
1320
1320
|
buttonValue: n.value,
|
|
1321
1321
|
isRowFlex: !0,
|
|
@@ -1330,14 +1330,14 @@ const Io = {
|
|
|
1330
1330
|
_: 1
|
|
1331
1331
|
}, 8, ["isVisible"])
|
|
1332
1332
|
])) : Ne("", !0),
|
|
1333
|
-
k.buttons && ((We = k.buttons) == null ? void 0 : We.length) > 0 ? (
|
|
1334
|
-
(
|
|
1333
|
+
k.buttons && ((We = k.buttons) == null ? void 0 : We.length) > 0 ? (j(), re("div", Ki, [
|
|
1334
|
+
(j(!0), re(ca, null, Aa((pa = k.buttons) == null ? void 0 : pa.filter((K) => k.isDevMode || (K == null ? void 0 : K.label) !== "修改模板"), (K, Ie) => {
|
|
1335
1335
|
var se;
|
|
1336
|
-
return
|
|
1336
|
+
return j(), re("div", {
|
|
1337
1337
|
class: "extra-contents",
|
|
1338
1338
|
key: Ie
|
|
1339
1339
|
}, [
|
|
1340
|
-
(K == null ? void 0 : K.type) === "upload" ? (
|
|
1340
|
+
(K == null ? void 0 : K.type) === "upload" ? (j(), Me(ge, {
|
|
1341
1341
|
key: 0,
|
|
1342
1342
|
class: "upload-button-wrap",
|
|
1343
1343
|
"on-change": Ee,
|
|
@@ -1351,7 +1351,7 @@ const Io = {
|
|
|
1351
1351
|
var $;
|
|
1352
1352
|
return [
|
|
1353
1353
|
z("div", {
|
|
1354
|
-
class:
|
|
1354
|
+
class: ja(["table-op-action", { "is-disabled": !!k.lockingPage }]),
|
|
1355
1355
|
onClick: (G) => Ue(K == null ? void 0 : K.label)
|
|
1356
1356
|
}, [
|
|
1357
1357
|
q(W, {
|
|
@@ -1364,12 +1364,12 @@ const Io = {
|
|
|
1364
1364
|
}),
|
|
1365
1365
|
_: 2
|
|
1366
1366
|
}, 1032, ["disabled"])) : Ne("", !0),
|
|
1367
|
-
(K == null ? void 0 : K.type) === "popover" ? (
|
|
1367
|
+
(K == null ? void 0 : K.type) === "popover" ? (j(), Me(Yn, { key: 1 }, {
|
|
1368
1368
|
dropTitle: Y(() => {
|
|
1369
1369
|
var $;
|
|
1370
1370
|
return [
|
|
1371
1371
|
z("div", {
|
|
1372
|
-
class:
|
|
1372
|
+
class: ja(["table-op-action", { "is-disabled": !!k.lockingPage }])
|
|
1373
1373
|
}, [
|
|
1374
1374
|
q(W, {
|
|
1375
1375
|
class: "table-op-icon",
|
|
@@ -1381,26 +1381,26 @@ const Io = {
|
|
|
1381
1381
|
}),
|
|
1382
1382
|
dropMenu: Y(() => [
|
|
1383
1383
|
z("div", qi, [
|
|
1384
|
-
(
|
|
1384
|
+
(j(!0), re(ca, null, Aa(K == null ? void 0 : K.contents, ($) => {
|
|
1385
1385
|
var G, $e;
|
|
1386
|
-
return
|
|
1386
|
+
return j(), re("div", {
|
|
1387
1387
|
key: $ == null ? void 0 : $.label,
|
|
1388
|
-
class:
|
|
1388
|
+
class: ja(["table-op-drop-item", { "is-disabled": !!k.lockingPage }]),
|
|
1389
1389
|
onClick: (Qe) => !k.lockingPage && Ue($ == null ? void 0 : $.label)
|
|
1390
1390
|
}, [
|
|
1391
1391
|
Ke(Fe($ == null ? void 0 : $.label), 1),
|
|
1392
|
-
(G = $ == null ? void 0 : $.label) != null && G.includes("选中") ? (
|
|
1393
|
-
($e = $ == null ? void 0 : $.label) != null && $e.includes("全部") ? (
|
|
1392
|
+
(G = $ == null ? void 0 : $.label) != null && G.includes("选中") ? (j(), re("span", Gi, "(" + Fe(k.selectNums) + ")", 1)) : Ne("", !0),
|
|
1393
|
+
($e = $ == null ? void 0 : $.label) != null && $e.includes("全部") ? (j(), re("span", Xi, "(" + Fe(k.dataNums) + ")", 1)) : Ne("", !0)
|
|
1394
1394
|
], 10, Yi);
|
|
1395
1395
|
}), 128))
|
|
1396
1396
|
])
|
|
1397
1397
|
]),
|
|
1398
1398
|
_: 2
|
|
1399
1399
|
}, 1024)) : Ne("", !0),
|
|
1400
|
-
!(K != null && K.type) || (K == null ? void 0 : K.type) === "methodButton" ? (
|
|
1400
|
+
!(K != null && K.type) || (K == null ? void 0 : K.type) === "methodButton" ? (j(), re("div", {
|
|
1401
1401
|
key: 2,
|
|
1402
1402
|
id: "themeButton",
|
|
1403
|
-
class:
|
|
1403
|
+
class: ja(["table-op-action", { "is-disabled": !!k.lockingPage }]),
|
|
1404
1404
|
onClick: ($) => !k.lockingPage && Ue(K == null ? void 0 : K.label, K)
|
|
1405
1405
|
}, [
|
|
1406
1406
|
q(W, {
|
|
@@ -1413,15 +1413,15 @@ const Io = {
|
|
|
1413
1413
|
}), 128))
|
|
1414
1414
|
])) : Ne("", !0)
|
|
1415
1415
|
])
|
|
1416
|
-
])) : (
|
|
1416
|
+
])) : (j(), re("div", Vi, [
|
|
1417
1417
|
z("div", eu, [
|
|
1418
1418
|
z("div", au, [
|
|
1419
1419
|
q(he, {
|
|
1420
1420
|
modelValue: y.value,
|
|
1421
1421
|
"onUpdate:modelValue": L[5] || (L[5] = (K) => y.value = K),
|
|
1422
1422
|
style: { "min-width": "80px" },
|
|
1423
|
-
placeholder: fe.value ? (
|
|
1424
|
-
"prefix-icon":
|
|
1423
|
+
placeholder: fe.value ? (ua = (ra = (wa = k.filterValues) == null ? void 0 : wa.filter((K) => K)) == null ? void 0 : ra.slice(0, 3)) == null ? void 0 : ua.join("/") : "搜索",
|
|
1424
|
+
"prefix-icon": Ra(Jn),
|
|
1425
1425
|
clearable: "",
|
|
1426
1426
|
onInput: Re,
|
|
1427
1427
|
disabled: ((ta = Q.value) == null ? void 0 : ta.length) === 0
|
|
@@ -1429,13 +1429,13 @@ const Io = {
|
|
|
1429
1429
|
suffix: Y(() => {
|
|
1430
1430
|
var K, Ie;
|
|
1431
1431
|
return [
|
|
1432
|
-
!y.value && ((Ie = (K = k.filterValues) == null ? void 0 : K.filter((se) => se)) != null && Ie.join("/")) ? (
|
|
1432
|
+
!y.value && ((Ie = (K = k.filterValues) == null ? void 0 : K.filter((se) => se)) != null && Ie.join("/")) ? (j(), Me(te, {
|
|
1433
1433
|
key: 0,
|
|
1434
1434
|
style: { cursor: "pointer" },
|
|
1435
1435
|
onClick: Ge
|
|
1436
1436
|
}, {
|
|
1437
1437
|
default: Y(() => [
|
|
1438
|
-
q(
|
|
1438
|
+
q(Ra(Hn))
|
|
1439
1439
|
]),
|
|
1440
1440
|
_: 1
|
|
1441
1441
|
})) : Ne("", !0)
|
|
@@ -1455,14 +1455,14 @@ const Io = {
|
|
|
1455
1455
|
_: 1
|
|
1456
1456
|
}, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
|
|
1457
1457
|
]),
|
|
1458
|
-
k.buttons && ((ba = k.buttons) == null ? void 0 : ba.length) > 0 ? (
|
|
1459
|
-
(
|
|
1458
|
+
k.buttons && ((ba = k.buttons) == null ? void 0 : ba.length) > 0 ? (j(), re("div", lu, [
|
|
1459
|
+
(j(!0), re(ca, null, Aa((Na = k.buttons) == null ? void 0 : Na.filter((K) => k.isDevMode || (K == null ? void 0 : K.label) !== "修改模板"), (K, Ie) => {
|
|
1460
1460
|
var se;
|
|
1461
|
-
return
|
|
1461
|
+
return j(), re("div", {
|
|
1462
1462
|
class: "extra-contents",
|
|
1463
1463
|
key: Ie
|
|
1464
1464
|
}, [
|
|
1465
|
-
(K == null ? void 0 : K.type) === "upload" ? (
|
|
1465
|
+
(K == null ? void 0 : K.type) === "upload" ? (j(), Me(ge, {
|
|
1466
1466
|
key: 0,
|
|
1467
1467
|
class: "upload-button-wrap",
|
|
1468
1468
|
"on-change": Ee,
|
|
@@ -1485,9 +1485,9 @@ const Io = {
|
|
|
1485
1485
|
}),
|
|
1486
1486
|
_: 2
|
|
1487
1487
|
}, 1024)) : Ne("", !0),
|
|
1488
|
-
(K == null ? void 0 : K.type) === "popover" ? (
|
|
1488
|
+
(K == null ? void 0 : K.type) === "popover" ? (j(), Me(Yn, { key: 1 }, {
|
|
1489
1489
|
dropTitle: Y(() => [
|
|
1490
|
-
(K == null ? void 0 : K.type) === "popover" ? (
|
|
1490
|
+
(K == null ? void 0 : K.type) === "popover" ? (j(), Me(C, {
|
|
1491
1491
|
key: 0,
|
|
1492
1492
|
style: { background: "transparent", color: "#000000" }
|
|
1493
1493
|
}, {
|
|
@@ -1508,7 +1508,7 @@ const Io = {
|
|
|
1508
1508
|
]),
|
|
1509
1509
|
dropMenu: Y(() => [
|
|
1510
1510
|
z("div", su, [
|
|
1511
|
-
(
|
|
1511
|
+
(j(!0), re(ca, null, Aa(K == null ? void 0 : K.contents, ($) => (j(), Me(C, {
|
|
1512
1512
|
key: $ == null ? void 0 : $.label,
|
|
1513
1513
|
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
1514
1514
|
onClick: (G) => Ue($ == null ? void 0 : $.label)
|
|
@@ -1517,8 +1517,8 @@ const Io = {
|
|
|
1517
1517
|
var G, $e;
|
|
1518
1518
|
return [
|
|
1519
1519
|
Ke(Fe($ == null ? void 0 : $.label), 1),
|
|
1520
|
-
(G = $ == null ? void 0 : $.label) != null && G.includes("选中") ? (
|
|
1521
|
-
($e = $ == null ? void 0 : $.label) != null && $e.includes("全部") ? (
|
|
1520
|
+
(G = $ == null ? void 0 : $.label) != null && G.includes("选中") ? (j(), re("span", tu, "(" + Fe(k.selectNums) + ")", 1)) : Ne("", !0),
|
|
1521
|
+
($e = $ == null ? void 0 : $.label) != null && $e.includes("全部") ? (j(), re("span", ou, "(" + Fe(k.dataNums) + ")", 1)) : Ne("", !0)
|
|
1522
1522
|
];
|
|
1523
1523
|
}),
|
|
1524
1524
|
_: 2
|
|
@@ -1527,9 +1527,9 @@ const Io = {
|
|
|
1527
1527
|
]),
|
|
1528
1528
|
_: 2
|
|
1529
1529
|
}, 1024)) : Ne("", !0),
|
|
1530
|
-
!(K != null && K.type) || (K == null ? void 0 : K.type) === "methodButton" ? (
|
|
1530
|
+
!(K != null && K.type) || (K == null ? void 0 : K.type) === "methodButton" ? (j(), re("div", {
|
|
1531
1531
|
key: 2,
|
|
1532
|
-
class:
|
|
1532
|
+
class: ja(["table-op-action", { "is-disabled": !!k.lockingPage }]),
|
|
1533
1533
|
id: "themeButton",
|
|
1534
1534
|
onClick: ($) => !k.lockingPage && Ue(K == null ? void 0 : K.label, K)
|
|
1535
1535
|
}, [
|
|
@@ -1546,7 +1546,7 @@ const Io = {
|
|
|
1546
1546
|
]));
|
|
1547
1547
|
};
|
|
1548
1548
|
}
|
|
1549
|
-
}, cu = /* @__PURE__ */ vl(du, [["__scopeId", "data-v-
|
|
1549
|
+
}, cu = /* @__PURE__ */ vl(du, [["__scopeId", "data-v-d817b0d1"]]), pu = us("formToTableComp", {
|
|
1550
1550
|
state: () => ({
|
|
1551
1551
|
selectArray: [],
|
|
1552
1552
|
selectString: ""
|
|
@@ -1577,7 +1577,7 @@ const Io = {
|
|
|
1577
1577
|
name: "output"
|
|
1578
1578
|
}
|
|
1579
1579
|
];
|
|
1580
|
-
}), (x, y) => (
|
|
1580
|
+
}), (x, y) => (j(), re("div", fu, [
|
|
1581
1581
|
z("div", vu, [
|
|
1582
1582
|
q(Ql, {
|
|
1583
1583
|
rowContents: P.value,
|
|
@@ -1593,14 +1593,14 @@ const Io = {
|
|
|
1593
1593
|
])
|
|
1594
1594
|
]));
|
|
1595
1595
|
}
|
|
1596
|
-
}), gu = /* @__PURE__ */ vl(yu, [["__scopeId", "data-v-73db0fe7"]]),
|
|
1596
|
+
}), gu = /* @__PURE__ */ vl(yu, [["__scopeId", "data-v-73db0fe7"]]), jr = (k, P) => {
|
|
1597
1597
|
let h = k, x = P;
|
|
1598
1598
|
return Array.isArray(h) && (h = h == null ? void 0 : h.map((y, E) => {
|
|
1599
1599
|
if (Array.isArray(y)) {
|
|
1600
1600
|
let Q = {};
|
|
1601
1601
|
return y = y == null ? void 0 : y.forEach((n, ne) => {
|
|
1602
1602
|
var De;
|
|
1603
|
-
(De = x == null ? void 0 : x[ne]) != null && De.prop ? Q[x[ne].prop] = n : Array.isArray(n) && (Q.children =
|
|
1603
|
+
(De = x == null ? void 0 : x[ne]) != null && De.prop ? Q[x[ne].prop] = n : Array.isArray(n) && (Q.children = jr(n, x));
|
|
1604
1604
|
}), Object.assign(Q, { id: E });
|
|
1605
1605
|
} else
|
|
1606
1606
|
return y;
|
|
@@ -1846,9 +1846,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
1846
1846
|
const h = k, x = P, y = M(null), E = M(!1), Q = M(""), n = M(""), ne = new Su({
|
|
1847
1847
|
url: "ws://127.0.0.1:22225"
|
|
1848
1848
|
});
|
|
1849
|
-
function De(
|
|
1849
|
+
function De(B, L) {
|
|
1850
1850
|
var We;
|
|
1851
|
-
const te =
|
|
1851
|
+
const te = B.split(","), W = ((We = te[0].match(/:(.*?);/)) == null ? void 0 : We[1]) ?? "image/jpeg", he = atob(te[1]);
|
|
1852
1852
|
let ge = he.length;
|
|
1853
1853
|
const C = new Uint8Array(ge);
|
|
1854
1854
|
for (; ge--; )
|
|
@@ -1856,11 +1856,11 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
1856
1856
|
return new File([C], L, { type: W });
|
|
1857
1857
|
}
|
|
1858
1858
|
function Ee() {
|
|
1859
|
-
ne.onLog = (
|
|
1860
|
-
console.log("[GPY]",
|
|
1861
|
-
}, ne.onDevCount = (
|
|
1862
|
-
if (n.value += `设备数量=${
|
|
1863
|
-
`,
|
|
1859
|
+
ne.onLog = (B) => {
|
|
1860
|
+
console.log("[GPY]", B);
|
|
1861
|
+
}, ne.onDevCount = (B, L) => {
|
|
1862
|
+
if (n.value += `设备数量=${B},设备=${L.join(",")}
|
|
1863
|
+
`, B > 0) {
|
|
1864
1864
|
n.value += `检测到设备,正在打开摄像头...
|
|
1865
1865
|
`;
|
|
1866
1866
|
try {
|
|
@@ -1872,82 +1872,82 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
1872
1872
|
} else
|
|
1873
1873
|
n.value += `未检测到高拍仪设备!
|
|
1874
1874
|
`;
|
|
1875
|
-
}, ne.onCameraStatus = (
|
|
1876
|
-
|
|
1875
|
+
}, ne.onCameraStatus = (B) => {
|
|
1876
|
+
B === "opened" ? (E.value = !0, n.value += `摄像头已打开
|
|
1877
1877
|
`) : (E.value = !1, n.value += `摄像头已关闭
|
|
1878
1878
|
`);
|
|
1879
|
-
}, ne.onPhoto = (
|
|
1880
|
-
|
|
1881
|
-
`) : n.value += `拍照失败 flag=${
|
|
1879
|
+
}, ne.onPhoto = (B) => {
|
|
1880
|
+
B.flag === 0 && B.base64 ? (Q.value = `data:image/jpeg;base64,${B.base64}`, n.value += `拍照完成,已接收图片
|
|
1881
|
+
`) : n.value += `拍照失败 flag=${B.flag}
|
|
1882
1882
|
`;
|
|
1883
1883
|
};
|
|
1884
1884
|
}
|
|
1885
1885
|
const Re = async () => {
|
|
1886
|
-
if (await
|
|
1886
|
+
if (await La(), !y.value) return;
|
|
1887
1887
|
Ue(), Ee();
|
|
1888
|
-
const
|
|
1889
|
-
ne.init(y.value, Math.floor(
|
|
1888
|
+
const B = y.value.getBoundingClientRect();
|
|
1889
|
+
ne.init(y.value, Math.floor(B.width), Math.floor(B.height)), n.value += `正在连接设备服务...
|
|
1890
1890
|
`, await ne.connect(), n.value += `正在获取设备数量...
|
|
1891
1891
|
`, ne.getDevCount();
|
|
1892
1892
|
}, Ue = () => {
|
|
1893
1893
|
try {
|
|
1894
1894
|
ne.destroy();
|
|
1895
|
-
} catch (
|
|
1896
|
-
console.error(
|
|
1895
|
+
} catch (B) {
|
|
1896
|
+
console.error(B);
|
|
1897
1897
|
}
|
|
1898
1898
|
E.value = !1, Q.value = "", n.value = "";
|
|
1899
1899
|
};
|
|
1900
1900
|
ea(
|
|
1901
1901
|
() => h.visible,
|
|
1902
|
-
(
|
|
1903
|
-
|
|
1902
|
+
(B) => {
|
|
1903
|
+
B ? Re() : Ue();
|
|
1904
1904
|
}
|
|
1905
1905
|
);
|
|
1906
1906
|
const Ae = () => {
|
|
1907
1907
|
try {
|
|
1908
1908
|
ne.bestSize();
|
|
1909
|
-
} catch (
|
|
1910
|
-
console.error(
|
|
1909
|
+
} catch (B) {
|
|
1910
|
+
console.error(B);
|
|
1911
1911
|
}
|
|
1912
1912
|
}, fe = () => {
|
|
1913
1913
|
try {
|
|
1914
1914
|
ne.rotateLeft();
|
|
1915
|
-
} catch (
|
|
1916
|
-
console.error(
|
|
1915
|
+
} catch (B) {
|
|
1916
|
+
console.error(B);
|
|
1917
1917
|
}
|
|
1918
1918
|
}, Se = () => {
|
|
1919
1919
|
try {
|
|
1920
1920
|
ne.rotateRight();
|
|
1921
|
-
} catch (
|
|
1922
|
-
console.error(
|
|
1921
|
+
} catch (B) {
|
|
1922
|
+
console.error(B);
|
|
1923
1923
|
}
|
|
1924
1924
|
}, Oe = () => {
|
|
1925
1925
|
try {
|
|
1926
1926
|
ne.focus();
|
|
1927
|
-
} catch (
|
|
1928
|
-
console.error(
|
|
1927
|
+
} catch (B) {
|
|
1928
|
+
console.error(B);
|
|
1929
1929
|
}
|
|
1930
1930
|
}, Ge = () => {
|
|
1931
1931
|
n.value += `正在拍照...
|
|
1932
1932
|
`;
|
|
1933
1933
|
try {
|
|
1934
1934
|
ne.photo();
|
|
1935
|
-
} catch (
|
|
1936
|
-
n.value += `拍照调用失败:${(
|
|
1935
|
+
} catch (B) {
|
|
1936
|
+
n.value += `拍照调用失败:${(B == null ? void 0 : B.message) ?? B}
|
|
1937
1937
|
`;
|
|
1938
1938
|
}
|
|
1939
1939
|
}, ke = () => {
|
|
1940
1940
|
if (Q.value) {
|
|
1941
|
-
const
|
|
1942
|
-
x("confirm",
|
|
1941
|
+
const B = De(Q.value, "gpy-capture.jpg");
|
|
1942
|
+
x("confirm", B);
|
|
1943
1943
|
} else
|
|
1944
1944
|
x("confirm", null);
|
|
1945
1945
|
}, ce = () => {
|
|
1946
1946
|
Ue(), x("cancel");
|
|
1947
1947
|
};
|
|
1948
|
-
return (
|
|
1948
|
+
return (B, L) => {
|
|
1949
1949
|
const te = Pe("el-input"), W = Pe("el-button");
|
|
1950
|
-
return
|
|
1950
|
+
return j(), Me(ul, {
|
|
1951
1951
|
title: "扫描录入",
|
|
1952
1952
|
visible: h.visible,
|
|
1953
1953
|
onBeforeDestroy: ce,
|
|
@@ -1961,14 +1961,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
1961
1961
|
ref: y,
|
|
1962
1962
|
style: { flex: "1", "min-width": "0", border: "1px solid var(--el-border-color)", "border-radius": "4px", position: "relative", overflow: "hidden", display: "flex", "align-items": "center", "justify-content": "center", background: "var(--el-fill-color-lighter)" }
|
|
1963
1963
|
}, [
|
|
1964
|
-
E.value ? Ne("", !0) : (
|
|
1964
|
+
E.value ? Ne("", !0) : (j(), re("div", Au, "初始化摄像头..."))
|
|
1965
1965
|
], 512),
|
|
1966
1966
|
z("div", wu, [
|
|
1967
1967
|
z("div", Tu, [
|
|
1968
1968
|
L[0] || (L[0] = z("div", { style: { "font-weight": "600", "margin-bottom": "8px" } }, "拍照图片", -1)),
|
|
1969
1969
|
z("div", Ou, [
|
|
1970
|
-
Q.value ? Ne("", !0) : (
|
|
1971
|
-
Q.value ? (
|
|
1970
|
+
Q.value ? Ne("", !0) : (j(), re("div", xu, "暂无图片")),
|
|
1971
|
+
Q.value ? (j(), re("img", {
|
|
1972
1972
|
key: 1,
|
|
1973
1973
|
src: Q.value,
|
|
1974
1974
|
style: { "max-width": "100%", "max-height": "100%", "object-fit": "contain" },
|
|
@@ -2089,11 +2089,11 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2089
2089
|
}
|
|
2090
2090
|
}
|
|
2091
2091
|
}), ns = async (k, P) => {
|
|
2092
|
-
var Q, n, ne, De, Ee, Re, Ue, Ae, fe, Se, Oe, Ge, ke, ce,
|
|
2092
|
+
var Q, n, ne, De, Ee, Re, Ue, Ae, fe, Se, Oe, Ge, ke, ce, B, L, te;
|
|
2093
2093
|
let h = (n = (Q = Te(k)) == null ? void 0 : Q.optionUrl) == null ? void 0 : n.menuSelect, x = [];
|
|
2094
2094
|
h == null || h.forEach((W) => {
|
|
2095
2095
|
});
|
|
2096
|
-
let y = "", E = await
|
|
2096
|
+
let y = "", E = await ho(h);
|
|
2097
2097
|
if (E == null || E.forEach((W) => {
|
|
2098
2098
|
var he, ge, C, We;
|
|
2099
2099
|
(W == null ? void 0 : W.name) === (((We = (C = (ge = (he = Te(k)) == null ? void 0 : he.optionUrl) == null ? void 0 : ge.groupSelect) == null ? void 0 : C[0]) == null ? void 0 : We.replaceAll("'", "")) ?? "") && (y = W == null ? void 0 : W.id);
|
|
@@ -2102,29 +2102,29 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2102
2102
|
const W = await gr({
|
|
2103
2103
|
id: y
|
|
2104
2104
|
}), he = (Re = (Ee = (De = (ne = W == null ? void 0 : W.data) == null ? void 0 : ne.result) == null ? void 0 : De[0]) == null ? void 0 : Ee.key) == null ? void 0 : Re.pageKey;
|
|
2105
|
-
E = await
|
|
2105
|
+
E = await Br(he, sessionStorage.getItem("systemKey"), "");
|
|
2106
2106
|
}
|
|
2107
2107
|
if (y !== "") {
|
|
2108
2108
|
let W;
|
|
2109
2109
|
P ? W = (Ue = E == null ? void 0 : E.find((C) => (C == null ? void 0 : C.id) === P)) == null ? void 0 : Ue.compData : W = (Ae = E == null ? void 0 : E.find((C) => {
|
|
2110
|
-
var We,
|
|
2111
|
-
return (C == null ? void 0 : C.name) === (((
|
|
2110
|
+
var We, pa, wa, ra;
|
|
2111
|
+
return (C == null ? void 0 : C.name) === (((pa = (We = k == null ? void 0 : k.groupSelect) == null ? void 0 : We.split(":")) == null ? void 0 : pa[0]) || ((ra = (wa = k == null ? void 0 : k.optionUrl) == null ? void 0 : wa.groupSelect) == null ? void 0 : ra[0]));
|
|
2112
2112
|
})) == null ? void 0 : Ae.compData;
|
|
2113
2113
|
let he = (Se = (fe = W == null ? void 0 : W.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : fe.contents) == null ? void 0 : Se.map((C) => C == null ? void 0 : C.label);
|
|
2114
|
-
(Ge = (Oe = W == null ? void 0 : W.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : Oe.contents) != null && Ge.every((C) => Array.isArray(C)) && (he = (
|
|
2114
|
+
(Ge = (Oe = W == null ? void 0 : W.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : Oe.contents) != null && Ge.every((C) => Array.isArray(C)) && (he = (B = Ll((ce = (ke = W == null ? void 0 : W.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : ke.contents) == null ? void 0 : ce[0])) == null ? void 0 : B.map((C) => C == null ? void 0 : C.prop));
|
|
2115
2115
|
let ge = (te = (L = W == null ? void 0 : W.find((C) => (C == null ? void 0 : C.key) === "tableContents")) == null ? void 0 : L.contents) == null ? void 0 : te.map((C) => {
|
|
2116
2116
|
if (Array.isArray(C))
|
|
2117
2117
|
C = C == null ? void 0 : C.filter((We) => !(We != null && We.id));
|
|
2118
2118
|
else {
|
|
2119
2119
|
let We = {};
|
|
2120
|
-
for (let
|
|
2121
|
-
|
|
2120
|
+
for (let pa in C)
|
|
2121
|
+
pa !== "id" && (We[pa] = C == null ? void 0 : C[pa]);
|
|
2122
2122
|
C = We;
|
|
2123
2123
|
}
|
|
2124
2124
|
return C;
|
|
2125
2125
|
});
|
|
2126
2126
|
ge == null || ge.forEach((C) => {
|
|
2127
|
-
Array.isArray(C) ? x.push(
|
|
2127
|
+
Array.isArray(C) ? x.push(yo(C, he)) : x.push(C);
|
|
2128
2128
|
});
|
|
2129
2129
|
}
|
|
2130
2130
|
return x;
|
|
@@ -2141,7 +2141,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2141
2141
|
});
|
|
2142
2142
|
};
|
|
2143
2143
|
return x(P), P;
|
|
2144
|
-
}, Mu = (k, P) => (k && (P.sortable = k == null ? void 0 : k.sortable, P.filterable = k == null ? void 0 : k.filterable, P.showSummary = k == null ? void 0 : k.showSummary, P.operable = k == null ? void 0 : k.operable, P.fixed = k == null ? void 0 : k.fixed), P),
|
|
2144
|
+
}, Mu = (k, P) => (k && (P.sortable = k == null ? void 0 : k.sortable, P.filterable = k == null ? void 0 : k.filterable, P.showSummary = k == null ? void 0 : k.showSummary, P.operable = k == null ? void 0 : k.operable, P.fixed = k == null ? void 0 : k.fixed), P), Bu = (k, P) => {
|
|
2145
2145
|
const { sortable: h = !1, filterable: x = !1, showSummary: y = !1, operable: E = !1, fixed: Q = !1 } = P || {};
|
|
2146
2146
|
return {
|
|
2147
2147
|
prop: k,
|
|
@@ -2151,7 +2151,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2151
2151
|
operable: E,
|
|
2152
2152
|
fixed: Q
|
|
2153
2153
|
};
|
|
2154
|
-
},
|
|
2154
|
+
}, ju = async (k) => {
|
|
2155
2155
|
var E, Q;
|
|
2156
2156
|
if (!k)
|
|
2157
2157
|
return;
|
|
@@ -2196,7 +2196,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2196
2196
|
const h = sessionStorage.getItem("systemKey");
|
|
2197
2197
|
if (!k || !P || !h)
|
|
2198
2198
|
return;
|
|
2199
|
-
const x = await
|
|
2199
|
+
const x = await ju(k);
|
|
2200
2200
|
return x ? await zu(x == null ? void 0 : x.id, P) : await Iu(k, P);
|
|
2201
2201
|
}, Ku = { class: "table-content" }, Wu = { class: "menu-config-wrap" }, Ju = ["onClick"], Hu = {
|
|
2202
2202
|
key: 0,
|
|
@@ -2377,9 +2377,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
]
|
|
2379
2379
|
}
|
|
2380
|
-
]), Oe =
|
|
2380
|
+
]), Oe = go(Sl);
|
|
2381
2381
|
let Ge = "$R";
|
|
2382
|
-
const { originalPath: ke } = Ul(Oe), ce = ke.value,
|
|
2382
|
+
const { originalPath: ke } = Ul(Oe), ce = ke.value, B = xa(() => {
|
|
2383
2383
|
var a;
|
|
2384
2384
|
const e = (a = al(C.value) || []) == null ? void 0 : a.filter((l) => (l == null ? void 0 : l.type) !== "operate" && (l == null ? void 0 : l.label) !== "操作" && (l == null ? void 0 : l.prop) !== "operate");
|
|
2385
2385
|
return e.length > 0 ? e.every((l) => !!(l != null && l.sortable)) : !1;
|
|
@@ -2400,17 +2400,17 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2400
2400
|
pageSize: 10,
|
|
2401
2401
|
total: 0,
|
|
2402
2402
|
pageSizes: [5, 10, 20, 50, 100]
|
|
2403
|
-
}), ge = P, C = M([]), We = M([]),
|
|
2404
|
-
isUseBackdrop:
|
|
2403
|
+
}), ge = P, C = M([]), We = M([]), pa = M([]), wa = El({ prop: "", order: null }), ra = M([]), ua = M(!1), ta = M(!1), ba = M(null), {
|
|
2404
|
+
isUseBackdrop: Na,
|
|
2405
2405
|
initTrackFileType: K,
|
|
2406
2406
|
getFileExtension: Ie,
|
|
2407
2407
|
setData: se,
|
|
2408
2408
|
getFileInfo: $,
|
|
2409
2409
|
getFilesInfo: G
|
|
2410
|
-
} = Uo(), $e = M([]), Qe = M(!1),
|
|
2410
|
+
} = Uo(), $e = M([]), Qe = M(!1), Da = M(), Ze = no(), { importLoading: ll, activeMenuPath: xe, contentLoading: Ga, linkMenuInfo: zr } = Ul(Ze), fs = bo(Sl), la = so(Sl), {
|
|
2411
2411
|
extraContents: Xe,
|
|
2412
2412
|
cacheUpdatingData: Ml,
|
|
2413
|
-
tableViewContents:
|
|
2413
|
+
tableViewContents: Bl,
|
|
2414
2414
|
tableLoading: Ld,
|
|
2415
2415
|
pageMapState: Cl,
|
|
2416
2416
|
lockingPage: Kr
|
|
@@ -2418,11 +2418,11 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2418
2418
|
M(!1);
|
|
2419
2419
|
const rl = M("");
|
|
2420
2420
|
M();
|
|
2421
|
-
const Zl = M(!0),
|
|
2421
|
+
const Zl = M(!0), jl = M(0), Wr = M(!0), $a = M(""), Xa = M(!1);
|
|
2422
2422
|
M([]);
|
|
2423
2423
|
const vs = M({
|
|
2424
2424
|
label: "查看三维模型"
|
|
2425
|
-
}), Vl = M(!1), br = M(), Ia = M([]), nl = M([]), er = M(!1), Fl = M([]),
|
|
2425
|
+
}), Vl = M(!1), br = M(), Ia = M([]), nl = M([]), er = M(!1), Fl = M([]), da = M([]), fa = M([]), aa = M([]), sl = M([]), hs = () => {
|
|
2426
2426
|
try {
|
|
2427
2427
|
const e = localStorage.getItem(ts), a = e ? JSON.parse(e) : [];
|
|
2428
2428
|
sl.value = Array.isArray(a) ? a : [];
|
|
@@ -2443,7 +2443,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2443
2443
|
name: l,
|
|
2444
2444
|
url: a,
|
|
2445
2445
|
ts: Date.now()
|
|
2446
|
-
},
|
|
2446
|
+
}, t = String(r.name || "").trim().toLowerCase(), s = (sl.value || []).findIndex((p) => String((p == null ? void 0 : p.name) || "").trim().toLowerCase() === t);
|
|
2447
2447
|
s > -1 && sl.value.splice(s, 1), sl.value.unshift(r), sl.value.length > 20 && (sl.value = sl.value.slice(0, 20)), ys();
|
|
2448
2448
|
};
|
|
2449
2449
|
hs();
|
|
@@ -2461,11 +2461,11 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
}, Al = (e, a, l) => {
|
|
2463
2463
|
if (!a) return;
|
|
2464
|
-
const r = lr(e, a),
|
|
2465
|
-
return Hr(e, a,
|
|
2464
|
+
const r = lr(e, a), t = [l, ...r || []].filter(Boolean).slice(0, 1);
|
|
2465
|
+
return Hr(e, a, t), t;
|
|
2466
2466
|
}, gs = (e, a, l) => {
|
|
2467
2467
|
if (!a || !l) return;
|
|
2468
|
-
const r = ar(e, a),
|
|
2468
|
+
const r = ar(e, a), t = ar(e, l);
|
|
2469
2469
|
try {
|
|
2470
2470
|
const s = sessionStorage.getItem(r);
|
|
2471
2471
|
if (!s) return;
|
|
@@ -2477,7 +2477,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2477
2477
|
return [];
|
|
2478
2478
|
}
|
|
2479
2479
|
})(), d = lr(e, l), u = [...c, ...d || []].filter(Boolean).sort((p, b) => Number((b == null ? void 0 : b.ts) || 0) - Number((p == null ? void 0 : p.ts) || 0)).slice(0, 1);
|
|
2480
|
-
sessionStorage.setItem(
|
|
2480
|
+
sessionStorage.setItem(t, JSON.stringify(u)), sessionStorage.removeItem(r);
|
|
2481
2481
|
} catch {
|
|
2482
2482
|
}
|
|
2483
2483
|
}, mr = M(!1), za = M(!1), qe = M([]), bs = M(null);
|
|
@@ -2492,7 +2492,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
}, ms = (e) => {
|
|
2494
2494
|
const a = sr(e), l = (a == null ? void 0 : a.formType) || (a == null ? void 0 : a.columnType) || "Input";
|
|
2495
|
-
return
|
|
2495
|
+
return Xn(l) || Xn("Input");
|
|
2496
2496
|
}, Yr = M([]), Gr = M(null), ol = M([]), hl = M(null), Il = M(""), yl = M(!1), zl = M([]), Cr = M(""), tr = M(!1), or = M([]), wl = M([]), il = M([]), ir = M(null), Xr = M([]), Qr = M("");
|
|
2497
2497
|
xa(() => {
|
|
2498
2498
|
var e;
|
|
@@ -2529,15 +2529,15 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2529
2529
|
tr.value = !1, or.value = [], wl.value = [], il.value = [], ir.value = null, Xr.value = [], Qr.value = "";
|
|
2530
2530
|
}, Ss = (e, a) => {
|
|
2531
2531
|
const l = (e == null ? void 0 : e.ocrRow) || {};
|
|
2532
|
-
for (const
|
|
2533
|
-
|
|
2534
|
-
const r = Fa.value.find((
|
|
2532
|
+
for (const t of Object.keys(l))
|
|
2533
|
+
t === "id" || t === "_isOCRRow" || t === "_ocrTableId" || (a[t] = l[t]);
|
|
2534
|
+
const r = Fa.value.find((t) => t.id === a.id);
|
|
2535
2535
|
if (r)
|
|
2536
|
-
for (const
|
|
2537
|
-
|
|
2536
|
+
for (const t of Object.keys(l))
|
|
2537
|
+
t === "id" || t === "_isOCRRow" || t === "_ocrTableId" || (r[t] = l[t]);
|
|
2538
2538
|
ma.value && ma.value.set(a.id, a), Al(n == null ? void 0 : n.index, a.id, e == null ? void 0 : e.versionItem), wl.value = [...wl.value || [], JSON.parse(JSON.stringify(a))];
|
|
2539
2539
|
}, Vr = async (e, a = null) => {
|
|
2540
|
-
var l, r,
|
|
2540
|
+
var l, r, t, s, c, d, u;
|
|
2541
2541
|
try {
|
|
2542
2542
|
const p = (l = al(C.value) || []) == null ? void 0 : l.filter((F) => (F == null ? void 0 : F.type) !== "operate" && (F == null ? void 0 : F.label) !== "操作" && (F == null ? void 0 : F.prop) !== "operate"), b = /* @__PURE__ */ new Map();
|
|
2543
2543
|
p == null || p.forEach((F) => {
|
|
@@ -2563,31 +2563,31 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2563
2563
|
platId: parseInt((r = _a.value) == null ? void 0 : r.plat_id),
|
|
2564
2564
|
pageName: w
|
|
2565
2565
|
});
|
|
2566
|
-
if (!((
|
|
2566
|
+
if (!((t = H == null ? void 0 : H.data) != null && t.result) || !Array.isArray(H.data.result)) {
|
|
2567
2567
|
console.warn(`未找到详情页数据: ${w}`);
|
|
2568
2568
|
continue;
|
|
2569
2569
|
}
|
|
2570
|
-
const
|
|
2570
|
+
const O = H.data.result.find(
|
|
2571
2571
|
(i) => (i == null ? void 0 : i.property_name) === "检校记录"
|
|
2572
2572
|
);
|
|
2573
|
-
if (!
|
|
2573
|
+
if (!O) {
|
|
2574
2574
|
console.warn(`详情页 ${w} 中未找到检校记录表`);
|
|
2575
2575
|
continue;
|
|
2576
2576
|
}
|
|
2577
|
-
const v = (s =
|
|
2577
|
+
const v = (s = O.contents) == null ? void 0 : s.find(
|
|
2578
2578
|
(i) => (i == null ? void 0 : i.key) && i.key.startsWith("content_")
|
|
2579
2579
|
);
|
|
2580
2580
|
if (!v || !v.key) {
|
|
2581
2581
|
console.warn("检校记录表中未找到 content item");
|
|
2582
2582
|
continue;
|
|
2583
2583
|
}
|
|
2584
|
-
const
|
|
2584
|
+
const o = v.key, f = Array.isArray(v.value) ? v.value : [];
|
|
2585
2585
|
if (f.length >= 5) {
|
|
2586
2586
|
const D = [...f].sort((le, ee) => {
|
|
2587
2587
|
const oe = (le == null ? void 0 : le.检校日期) || "", J = (ee == null ? void 0 : ee.检校日期) || "";
|
|
2588
2588
|
if (!oe && !J) {
|
|
2589
|
-
const
|
|
2590
|
-
return
|
|
2589
|
+
const Be = parseInt(String((le == null ? void 0 : le.id) || "0")), ye = parseInt(String((ee == null ? void 0 : ee.id) || "0"));
|
|
2590
|
+
return Be - ye;
|
|
2591
2591
|
}
|
|
2592
2592
|
if (!oe) return -1;
|
|
2593
2593
|
if (!J) return 1;
|
|
@@ -2600,14 +2600,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2600
2600
|
platId: parseInt((c = _a.value) == null ? void 0 : c.plat_id),
|
|
2601
2601
|
changeContents: [
|
|
2602
2602
|
{
|
|
2603
|
-
tableName:
|
|
2603
|
+
tableName: o,
|
|
2604
2604
|
tableContents: [{ id: D.id }]
|
|
2605
2605
|
}
|
|
2606
2606
|
]
|
|
2607
2607
|
});
|
|
2608
2608
|
}
|
|
2609
|
-
const
|
|
2610
|
-
id:
|
|
2609
|
+
const m = (d = p == null ? void 0 : p.find((i) => (i == null ? void 0 : i.label) === "证书附件")) == null ? void 0 : d.prop, _ = String(Date.now()) + "_" + String(Math.floor(Math.random() * 1e4)), R = {
|
|
2610
|
+
id: _,
|
|
2611
2611
|
检校类型: Z.检校类型 || "",
|
|
2612
2612
|
检校日期: Z.检校日期 || (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
2613
2613
|
有效日期: Z.有效日期 || "",
|
|
@@ -2618,8 +2618,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2618
2618
|
证书编号: Z.证书编号 || "",
|
|
2619
2619
|
证书附件: ""
|
|
2620
2620
|
};
|
|
2621
|
-
if (
|
|
2622
|
-
const i = Z[
|
|
2621
|
+
if (m && Z[m]) {
|
|
2622
|
+
const i = Z[m];
|
|
2623
2623
|
if (Array.isArray(i) && i.length > 0)
|
|
2624
2624
|
R.证书附件 = JSON.stringify(i.map((D) => ({
|
|
2625
2625
|
url: (D == null ? void 0 : D.url) || "",
|
|
@@ -2638,18 +2638,18 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2638
2638
|
}]);
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
console.log(
|
|
2641
|
+
console.log(o, "tableName", "inspectionRecordRow", R), await Mr({
|
|
2642
2642
|
platId: parseInt((u = _a.value) == null ? void 0 : u.plat_id),
|
|
2643
2643
|
changeContents: [
|
|
2644
2644
|
{
|
|
2645
|
-
tableName:
|
|
2645
|
+
tableName: o,
|
|
2646
2646
|
tableContents: [R]
|
|
2647
2647
|
}
|
|
2648
2648
|
]
|
|
2649
2649
|
});
|
|
2650
|
-
const X =
|
|
2651
|
-
if (X &&
|
|
2652
|
-
const i =
|
|
2650
|
+
const X = O == null ? void 0 : O.object_id;
|
|
2651
|
+
if (X && _) {
|
|
2652
|
+
const i = m && Z[m] ? Z[m] : null;
|
|
2653
2653
|
let D = [], le = "", ee = !1;
|
|
2654
2654
|
if (Array.isArray(i) && i.length > 0) {
|
|
2655
2655
|
D = i.map((ue) => ({
|
|
@@ -2680,7 +2680,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2680
2680
|
sourceUrl: ee ? le : "",
|
|
2681
2681
|
images: D
|
|
2682
2682
|
};
|
|
2683
|
-
Al(X,
|
|
2683
|
+
Al(X, _, oe);
|
|
2684
2684
|
}
|
|
2685
2685
|
}
|
|
2686
2686
|
} catch (p) {
|
|
@@ -2714,7 +2714,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2714
2714
|
var c, d;
|
|
2715
2715
|
return (d = (c = ma.value) == null ? void 0 : c.set) == null ? void 0 : d.call(c, s.id, s);
|
|
2716
2716
|
})), Tl.value = V.value;
|
|
2717
|
-
const r = wl.value || [],
|
|
2717
|
+
const r = wl.value || [], t = il.value || [];
|
|
2718
2718
|
if (r.length > 0 && (ge("change", {
|
|
2719
2719
|
buttonName: "编辑",
|
|
2720
2720
|
singleContent: r,
|
|
@@ -2723,7 +2723,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2723
2723
|
index: n == null ? void 0 : n.index,
|
|
2724
2724
|
parentTableId: n == null ? void 0 : n.parentTableId,
|
|
2725
2725
|
column: C.value
|
|
2726
|
-
}), Vr(r)),
|
|
2726
|
+
}), Vr(r)), t.length > 0) {
|
|
2727
2727
|
const s = ir.value;
|
|
2728
2728
|
ge("change", {
|
|
2729
2729
|
buttonName: "OCR批量新增",
|
|
@@ -2731,7 +2731,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2731
2731
|
index: n == null ? void 0 : n.index,
|
|
2732
2732
|
parentTableId: n == null ? void 0 : n.parentTableId,
|
|
2733
2733
|
column: C.value,
|
|
2734
|
-
ocrRows:
|
|
2734
|
+
ocrRows: t,
|
|
2735
2735
|
relatedContents: n == null ? void 0 : n.related,
|
|
2736
2736
|
uploadedFiles: (Array.isArray(s == null ? void 0 : s.result) ? s.result : []).map(
|
|
2737
2737
|
(c) => (Array.isArray(c == null ? void 0 : c.图片信息) ? c.图片信息 : []).map((d) => ({
|
|
@@ -2742,28 +2742,28 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2742
2742
|
),
|
|
2743
2743
|
ocrResult: s,
|
|
2744
2744
|
matchedCount: (r || []).length,
|
|
2745
|
-
newCount: (
|
|
2745
|
+
newCount: (t || []).length
|
|
2746
2746
|
});
|
|
2747
2747
|
}
|
|
2748
2748
|
Le.success("已提交候选处理结果"), Zr();
|
|
2749
|
-
}, Kl = $o(), As = xa(() => Kl.getConfig()), Wa = M(), Ta = M(), ws = pu(Sl), Tl = M(), Ar = M(0), Ts =
|
|
2749
|
+
}, Kl = $o(), As = xa(() => Kl.getConfig()), Wa = M(), Ta = M(), ws = pu(Sl), Tl = M(), Ar = M(0), Ts = to(Sl), { selectIndex: Os, selectMenu: wr, selectTitle: Md } = Ul(Ts), { selectString: gl } = Ul(ws), xs = oo(Sl), { loginUserInfo: _a } = Ul(xs), Ns = M(720), ka = M(!1), ur = M(!1), Qa = M([]), Za = M(), dr = M(!0), en = M(!0), Ds = M([]), $s = Xt("contentRef");
|
|
2750
2750
|
Qt("contentRef", $s), ea(() => {
|
|
2751
2751
|
var e;
|
|
2752
2752
|
return (e = V.value) == null ? void 0 : e.length;
|
|
2753
2753
|
}, (e) => {
|
|
2754
2754
|
he.total = e;
|
|
2755
2755
|
}), ea(
|
|
2756
|
-
() =>
|
|
2756
|
+
() => Bl.value,
|
|
2757
2757
|
async () => {
|
|
2758
|
-
var a, l, r,
|
|
2759
|
-
if (((a =
|
|
2760
|
-
let e = (p = (u = (d = (c = (s = (
|
|
2761
|
-
((I = (A = (N = (b = n == null ? void 0 : n.itemData) == null ? void 0 : b.find((H) => (H == null ? void 0 : H.key) === "pageColumn")) == null ? void 0 : N.contents) == null ? void 0 : A.split("[")) == null ? void 0 : I[0]) + ((Z = (F =
|
|
2758
|
+
var a, l, r, t, s, c, d, u, p, b, N, A, I, F, Z, g, w;
|
|
2759
|
+
if (((a = Bl.value) == null ? void 0 : a.length) === 0 || !((l = n == null ? void 0 : n.itemData) != null && l.find((H) => (H == null ? void 0 : H.key) === "columnPath")) || !((r = n == null ? void 0 : n.itemData) != null && r.find((H) => (H == null ? void 0 : H.key) === "pageColumn"))) return;
|
|
2760
|
+
let e = (p = (u = (d = (c = (s = (t = n == null ? void 0 : n.itemData) == null ? void 0 : t.find((H) => (H == null ? void 0 : H.key) === "pageColumn")) == null ? void 0 : s.contents) == null ? void 0 : c.split("[")) == null ? void 0 : d[1]) == null ? void 0 : u.split("]")) == null ? void 0 : p[0];
|
|
2761
|
+
((I = (A = (N = (b = n == null ? void 0 : n.itemData) == null ? void 0 : b.find((H) => (H == null ? void 0 : H.key) === "pageColumn")) == null ? void 0 : N.contents) == null ? void 0 : A.split("[")) == null ? void 0 : I[0]) + ((Z = (F = Bl.value) == null ? void 0 : F.find((H) => (H == null ? void 0 : H.key) === e)) == null ? void 0 : Z.value), (w = (g = n == null ? void 0 : n.itemData) == null ? void 0 : g.find((H) => (H == null ? void 0 : H.key) === "pageGroup")) == null || w.contents, Cn(compData, n.allMapContents);
|
|
2762
2762
|
},
|
|
2763
2763
|
{ deep: !0 }
|
|
2764
2764
|
);
|
|
2765
2765
|
const Es = async (e, a) => {
|
|
2766
|
-
var l, r,
|
|
2766
|
+
var l, r, t, s;
|
|
2767
2767
|
try {
|
|
2768
2768
|
let c;
|
|
2769
2769
|
const d = {
|
|
@@ -2785,7 +2785,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2785
2785
|
platId: parseInt((r = _a.value) == null ? void 0 : r.plat_id),
|
|
2786
2786
|
changeContents: [
|
|
2787
2787
|
{
|
|
2788
|
-
tableName: (
|
|
2788
|
+
tableName: (t = n == null ? void 0 : n.related) == null ? void 0 : t.find((N) => N == null ? void 0 : N.includes("content")),
|
|
2789
2789
|
tableContents: u == null ? void 0 : u.map((N, A) => ({
|
|
2790
2790
|
id: A,
|
|
2791
2791
|
...N
|
|
@@ -2799,7 +2799,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
}, Us = async (e) => {
|
|
2801
2801
|
var s, c, d, u, p, b, N;
|
|
2802
|
-
let a =
|
|
2802
|
+
let a = pa.value;
|
|
2803
2803
|
a != null && a.find((A) => (e == null ? void 0 : e.key) === (A == null ? void 0 : A.key)) && (a = a == null ? void 0 : a.filter((A) => (e == null ? void 0 : e.key) !== (A == null ? void 0 : A.key))), a.push({
|
|
2804
2804
|
key: e == null ? void 0 : e.key,
|
|
2805
2805
|
value: [(c = e == null ? void 0 : e.value) == null ? void 0 : c[((s = e == null ? void 0 : e.value) == null ? void 0 : s.length) - 1]]
|
|
@@ -2809,32 +2809,32 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2809
2809
|
var I, F;
|
|
2810
2810
|
return (A == null ? void 0 : A.type) === "Select" && (e == null ? void 0 : e.key) === (A == null ? void 0 : A.prop) && Array.isArray(A.value) && (I = A.value) != null && I.every((Z) => typeof Z == "string") && (A.selectValue = (F = a == null ? void 0 : a.find((Z) => (Z == null ? void 0 : Z.key) === (A == null ? void 0 : A.prop))) == null ? void 0 : F.value), A;
|
|
2811
2811
|
});
|
|
2812
|
-
let r = (u = (d = l == null ? void 0 : l.find((A) => (A == null ? void 0 : A.prop) === (e == null ? void 0 : e.key))) == null ? void 0 : d.optionUrl) == null ? void 0 : u.menuId,
|
|
2812
|
+
let r = (u = (d = l == null ? void 0 : l.find((A) => (A == null ? void 0 : A.prop) === (e == null ? void 0 : e.key))) == null ? void 0 : d.optionUrl) == null ? void 0 : u.menuId, t = l == null ? void 0 : l.find((A) => (A == null ? void 0 : A.prop) === (e == null ? void 0 : e.key));
|
|
2813
2813
|
if (r) {
|
|
2814
|
-
let A = await ns(
|
|
2814
|
+
let A = await ns(t == null ? void 0 : t.optionUrl, r), I, F = te.value, Z = (N = (b = (p = aa.value) == null ? void 0 : p.find((g) => {
|
|
2815
2815
|
var w;
|
|
2816
|
-
return (w =
|
|
2816
|
+
return (w = t == null ? void 0 : t.optionUrl) == null ? void 0 : w.menuId;
|
|
2817
2817
|
})) == null ? void 0 : b.selectValue) == null ? void 0 : N[0];
|
|
2818
2818
|
if (A == null || A.forEach((g) => {
|
|
2819
|
-
var w, H,
|
|
2819
|
+
var w, H, O, v, o, f, m, _, R, X;
|
|
2820
2820
|
if (r) {
|
|
2821
2821
|
let i = (H = (w = aa.value) == null ? void 0 : w.find((le) => {
|
|
2822
2822
|
var ee, oe;
|
|
2823
|
-
return ((ee =
|
|
2824
|
-
})) == null ? void 0 : H.prop, D = (v = (
|
|
2825
|
-
i != null && i.includes("·") && (i = (
|
|
2823
|
+
return ((ee = t == null ? void 0 : t.optionUrl) == null ? void 0 : ee.menuId) === ((oe = le == null ? void 0 : le.optionUrl) == null ? void 0 : oe.menuId);
|
|
2824
|
+
})) == null ? void 0 : H.prop, D = (v = (O = l == null ? void 0 : l.find((le) => (le == null ? void 0 : le.prop) === i)) == null ? void 0 : O.selectValue) == null ? void 0 : v[0];
|
|
2825
|
+
i != null && i.includes("·") && (i = (o = i == null ? void 0 : i.split("·")) == null ? void 0 : o[0], D = (R = (_ = (m = e == null ? void 0 : e.value) == null ? void 0 : m[((f = e == null ? void 0 : e.value) == null ? void 0 : f.length) - 1]) == null ? void 0 : _.split(" ")) == null ? void 0 : R[0]), F != null && F.find((le) => (le == null ? void 0 : le.value) === Z) ? I = (X = F == null ? void 0 : F.find((le) => (le == null ? void 0 : le.value) === Z)) == null ? void 0 : X.objectValue : g[i] === D && (I = g);
|
|
2826
2826
|
}
|
|
2827
2827
|
}), I) {
|
|
2828
2828
|
let g = l;
|
|
2829
2829
|
g = g == null ? void 0 : g.map((w) => {
|
|
2830
|
-
var H,
|
|
2831
|
-
return r && (I != null && I[w == null ? void 0 : w.prop]) &&
|
|
2830
|
+
var H, O, v, o, f, m;
|
|
2831
|
+
return r && (I != null && I[w == null ? void 0 : w.prop]) && $a.value === "新增" && (w == null ? void 0 : w.prop) !== (t == null ? void 0 : t.prop) ? w.value = (I == null ? void 0 : I[w == null ? void 0 : w.prop]) || (I == null ? void 0 : I[(o = (v = (O = (H = w == null ? void 0 : w.optionUrl) == null ? void 0 : H.groupSelect) == null ? void 0 : O[1]) == null ? void 0 : v.replaceAll("[", "")) == null ? void 0 : o.replaceAll("]", "")]) : w.value = (m = (f = aa.value) == null ? void 0 : f.find((_) => (_ == null ? void 0 : _.prop) === (w == null ? void 0 : w.prop))) == null ? void 0 : m.value, w;
|
|
2832
2832
|
}), aa.value = g;
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
|
-
|
|
2835
|
+
pa.value = a;
|
|
2836
2836
|
}, Ps = async (e) => {
|
|
2837
|
-
var a, l, r,
|
|
2837
|
+
var a, l, r, t, s;
|
|
2838
2838
|
if ((a = e == null ? void 0 : e.toString()) != null && a.includes(".txt") || (l = e == null ? void 0 : e.toString()) != null && l.includes(".cpt") || (r = e == null ? void 0 : e.toString()) != null && r.includes(".cyd")) {
|
|
2839
2839
|
const c = await kl.get(e, {
|
|
2840
2840
|
responseType: "blob",
|
|
@@ -2846,8 +2846,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2846
2846
|
type: "application/octet-stream;charset=UTF-8"
|
|
2847
2847
|
});
|
|
2848
2848
|
let u = URL.createObjectURL(d);
|
|
2849
|
-
|
|
2850
|
-
name: (s = e == null ? void 0 : e.split("/")) == null ? void 0 : s[((
|
|
2849
|
+
Da.value = [{
|
|
2850
|
+
name: (s = e == null ? void 0 : e.split("/")) == null ? void 0 : s[((t = e == null ? void 0 : e.split("/")) == null ? void 0 : t.length) - 1],
|
|
2851
2851
|
blobUrl: u
|
|
2852
2852
|
}], Qe.value = !0;
|
|
2853
2853
|
}
|
|
@@ -2860,7 +2860,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2860
2860
|
const cr = El({ prop: "", order: null }), Rs = xa(() => {
|
|
2861
2861
|
const e = (V.value ?? []).slice(), a = cr.prop || wa.prop, l = cr.order || wa.order;
|
|
2862
2862
|
if (!a || !l) return e;
|
|
2863
|
-
const r = l === "ascending",
|
|
2863
|
+
const r = l === "ascending", t = (c) => {
|
|
2864
2864
|
if (a)
|
|
2865
2865
|
return c && Object.prototype.hasOwnProperty.call(c, a) ? c[a] : a.includes(".") ? a.split(".").reduce((d, u) => d == null ? d : d[u], c) : c == null ? void 0 : c[a];
|
|
2866
2866
|
}, s = (c) => {
|
|
@@ -2875,26 +2875,26 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2875
2875
|
return { ok: Number.isFinite(p), value: p };
|
|
2876
2876
|
};
|
|
2877
2877
|
return e.sort((c, d) => {
|
|
2878
|
-
const u =
|
|
2878
|
+
const u = t(c), p = t(d);
|
|
2879
2879
|
if (u == null && p == null) return 0;
|
|
2880
2880
|
if (u == null) return r ? -1 : 1;
|
|
2881
2881
|
if (p == null) return r ? 1 : -1;
|
|
2882
2882
|
const b = s(u), N = s(p);
|
|
2883
2883
|
if (b.ok && N.ok) return r ? b.value - N.value : N.value - b.value;
|
|
2884
|
-
const A = (
|
|
2885
|
-
if (
|
|
2886
|
-
const f = String(
|
|
2884
|
+
const A = (o) => {
|
|
2885
|
+
if (o == null) return { ok: !1, value: NaN };
|
|
2886
|
+
const f = String(o).trim();
|
|
2887
2887
|
if (f === "") return { ok: !1, value: NaN };
|
|
2888
|
-
const
|
|
2889
|
-
if (!
|
|
2890
|
-
const
|
|
2891
|
-
return [R, X, i].some((D) => Number.isNaN(D)) ? { ok: !1, value: NaN } : X >= 60 || i >= 60 ? { ok: !1, value: NaN } : { ok: !0, value:
|
|
2888
|
+
const m = f.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);
|
|
2889
|
+
if (!m) return { ok: !1, value: NaN };
|
|
2890
|
+
const _ = m[1] ? -1 : 1, R = Number(m[2]), X = Number(m[3]), i = Number(m[4]);
|
|
2891
|
+
return [R, X, i].some((D) => Number.isNaN(D)) ? { ok: !1, value: NaN } : X >= 60 || i >= 60 ? { ok: !1, value: NaN } : { ok: !0, value: _ * (R * 3600 + X * 60 + i) };
|
|
2892
2892
|
}, I = A(u), F = A(p);
|
|
2893
2893
|
if (I.ok && F.ok) return r ? I.value - F.value : F.value - I.value;
|
|
2894
2894
|
const Z = new Date(u).getTime(), g = new Date(p).getTime(), w = !Number.isNaN(Z), H = !Number.isNaN(g);
|
|
2895
2895
|
if (w && H) return r ? Z - g : g - Z;
|
|
2896
|
-
const
|
|
2897
|
-
return r ?
|
|
2896
|
+
const O = String(u), v = String(p);
|
|
2897
|
+
return r ? O.localeCompare(v) : v.localeCompare(O);
|
|
2898
2898
|
});
|
|
2899
2899
|
}), an = xa(() => {
|
|
2900
2900
|
var l;
|
|
@@ -2907,32 +2907,32 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2907
2907
|
he.pageSize = e;
|
|
2908
2908
|
const a = ((r = V.value) == null ? void 0 : r.length) ?? 0, l = e > 0 ? Math.ceil(a / e) : 1;
|
|
2909
2909
|
he.currentPage > l && (he.currentPage = l || 1, Le.warning("当前页超出范围,已自动跳转到最后一页")), ge("getSliceContLength", he);
|
|
2910
|
-
},
|
|
2910
|
+
}, Bs = ({ prop: e, order: a }) => {
|
|
2911
2911
|
cr.prop = e, cr.order = a, he.currentPage = 1;
|
|
2912
|
-
},
|
|
2912
|
+
}, js = (e, a) => {
|
|
2913
2913
|
var c, d;
|
|
2914
2914
|
const l = (d = (c = C.value) == null ? void 0 : c.map((u) => u == null ? void 0 : u.prop)) == null ? void 0 : d.filter((u) => u !== "operate");
|
|
2915
2915
|
let r;
|
|
2916
|
-
const
|
|
2916
|
+
const t = (e == null ? void 0 : e.length) === (l == null ? void 0 : l.length);
|
|
2917
2917
|
if (e != null && e.includes("序号")) return Le.error("导入的数据不需要包含序号列");
|
|
2918
|
-
if (r =
|
|
2918
|
+
if (r = t ? e : e.slice(0, l == null ? void 0 : l.length), !(r == null ? void 0 : r.every((u) => l == null ? void 0 : l.find((p) => u === p)))) return Le.error("导入的数据表头不匹配");
|
|
2919
2919
|
Es(r, a);
|
|
2920
2920
|
}, Fs = (e, a) => {
|
|
2921
2921
|
var l;
|
|
2922
|
-
la.setRefreshCurStructure(!1), ((l = C.value) == null ? void 0 : l.length) === 0 ||
|
|
2922
|
+
la.setRefreshCurStructure(!1), ((l = C.value) == null ? void 0 : l.length) === 0 || js(e, a);
|
|
2923
2923
|
}, Is = (e, a, l, r) => {
|
|
2924
|
-
const
|
|
2924
|
+
const t = [], s = [], c = (p) => Object.keys(p).length;
|
|
2925
2925
|
for (const p in e)
|
|
2926
2926
|
if (e[p] !== void 0) {
|
|
2927
2927
|
const b = e[p], N = [];
|
|
2928
2928
|
for (const [A, I] of Object.entries(b))
|
|
2929
2929
|
N.push(I), s.length < c(b) && s.push(A);
|
|
2930
|
-
|
|
2930
|
+
t.push(N);
|
|
2931
2931
|
}
|
|
2932
|
-
|
|
2933
|
-
const d = Xl.aoa_to_sheet(
|
|
2934
|
-
Xl.book_append_sheet(u, d, r),
|
|
2935
|
-
}, ln = async (e, a, l, r = !1,
|
|
2932
|
+
t.unshift(s);
|
|
2933
|
+
const d = Xl.aoa_to_sheet(t), u = Xl.book_new();
|
|
2934
|
+
Xl.book_append_sheet(u, d, r), Oo(u, `${a}.xlsx`), Qa.value = [];
|
|
2935
|
+
}, ln = async (e, a, l, r = !1, t) => {
|
|
2936
2936
|
var s, c, d, u, p, b, N, A;
|
|
2937
2937
|
try {
|
|
2938
2938
|
la.setRefreshCurStructure(!1);
|
|
@@ -2959,25 +2959,25 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2959
2959
|
var w, H;
|
|
2960
2960
|
return (g == null ? void 0 : g.key) === "header" ? {
|
|
2961
2961
|
...g,
|
|
2962
|
-
contents: (w = g == null ? void 0 : g.contents) == null ? void 0 : w.map((
|
|
2963
|
-
if (Array.isArray(
|
|
2964
|
-
|
|
2962
|
+
contents: (w = g == null ? void 0 : g.contents) == null ? void 0 : w.map((O) => {
|
|
2963
|
+
if (Array.isArray(O))
|
|
2964
|
+
O = O == null ? void 0 : O.map((v) => (v == null ? void 0 : v.prop) === (a == null ? void 0 : a.prop) ? {
|
|
2965
2965
|
...v,
|
|
2966
2966
|
[e]: l
|
|
2967
2967
|
} : v);
|
|
2968
|
-
else if ((
|
|
2968
|
+
else if ((O == null ? void 0 : O.prop) === (a == null ? void 0 : a.prop))
|
|
2969
2969
|
return {
|
|
2970
|
-
...
|
|
2970
|
+
...O,
|
|
2971
2971
|
[e]: l
|
|
2972
2972
|
};
|
|
2973
|
-
return
|
|
2973
|
+
return O;
|
|
2974
2974
|
})
|
|
2975
|
-
} : (g == null ? void 0 : g.key) === "tableToForm" &&
|
|
2975
|
+
} : (g == null ? void 0 : g.key) === "tableToForm" && t ? {
|
|
2976
2976
|
...g,
|
|
2977
|
-
contents: (H = g == null ? void 0 : g.contents) == null ? void 0 : H.map((
|
|
2978
|
-
...
|
|
2979
|
-
[
|
|
2980
|
-
} :
|
|
2977
|
+
contents: (H = g == null ? void 0 : g.contents) == null ? void 0 : H.map((O) => (O == null ? void 0 : O.prop) === (a == null ? void 0 : a.prop) ? {
|
|
2978
|
+
...O,
|
|
2979
|
+
[t]: l
|
|
2980
|
+
} : O)
|
|
2981
2981
|
} : g;
|
|
2982
2982
|
})
|
|
2983
2983
|
};
|
|
@@ -2997,14 +2997,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
2997
2997
|
}, Ks = async (e, a) => {
|
|
2998
2998
|
await ln("columnType", a, e, !1, "type");
|
|
2999
2999
|
}, Ws = async ({ newRow: e, targetIndex: a }) => {
|
|
3000
|
-
var
|
|
3000
|
+
var t;
|
|
3001
3001
|
const r = (he.currentPage - 1) * he.pageSize + (a ?? 0);
|
|
3002
|
-
e._isTemp = !0, V.value.splice(r, 0, e), await
|
|
3002
|
+
e._isTemp = !0, V.value.splice(r, 0, e), await La(), Q.value.has(e.id) || Q.value.set(e.id, Te(e)), V.value = (t = V.value) == null ? void 0 : t.map((s) => ({
|
|
3003
3003
|
...s,
|
|
3004
3004
|
tableEditType: (s == null ? void 0 : s.id) === e.id ? "edit" : (s == null ? void 0 : s.tableEditType) ?? "text"
|
|
3005
3005
|
})), E.value.add(e.id), ka.value = !0;
|
|
3006
3006
|
}, Js = async () => {
|
|
3007
|
-
var r,
|
|
3007
|
+
var r, t, s, c, d;
|
|
3008
3008
|
const e = Array.from(E.value || []);
|
|
3009
3009
|
if (e.length === 0) return;
|
|
3010
3010
|
const a = [], l = [];
|
|
@@ -3044,7 +3044,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3044
3044
|
];
|
|
3045
3045
|
try {
|
|
3046
3046
|
await es({
|
|
3047
|
-
platId: parseInt((
|
|
3047
|
+
platId: parseInt((t = _a.value) == null ? void 0 : t.plat_id),
|
|
3048
3048
|
changeContents: p
|
|
3049
3049
|
});
|
|
3050
3050
|
} catch (b) {
|
|
@@ -3083,15 +3083,15 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3083
3083
|
}, Gs = (e) => {
|
|
3084
3084
|
if (!e)
|
|
3085
3085
|
return;
|
|
3086
|
-
const { item: a, value: l } = e, r = aa.value.find((
|
|
3086
|
+
const { item: a, value: l } = e, r = aa.value.find((t) => t.prop == a.prop);
|
|
3087
3087
|
r && r.contents.push({
|
|
3088
3088
|
label: l,
|
|
3089
3089
|
value: l
|
|
3090
3090
|
});
|
|
3091
3091
|
}, Wl = xa(() => {
|
|
3092
|
-
var l, r,
|
|
3092
|
+
var l, r, t;
|
|
3093
3093
|
const e = (l = C.value) == null ? void 0 : l.some((s) => s == null ? void 0 : s.filterable);
|
|
3094
|
-
return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (
|
|
3094
|
+
return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (t = (r = C.value) == null ? void 0 : r.filter((s) => (s == null ? void 0 : s.label) !== "操作")) == null ? void 0 : t.map((s) => ({
|
|
3095
3095
|
...s,
|
|
3096
3096
|
filterable: !!(s != null && s.filterable),
|
|
3097
3097
|
showSummary: !!(s != null && s.showSummary),
|
|
@@ -3100,17 +3100,17 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3100
3100
|
}));
|
|
3101
3101
|
}), rn = async (e, a, l) => {
|
|
3102
3102
|
const r = Te(C.value);
|
|
3103
|
-
await
|
|
3104
|
-
const
|
|
3103
|
+
await La();
|
|
3104
|
+
const t = r == null ? void 0 : r.map((c) => (l == null ? void 0 : l.label) === (c == null ? void 0 : c.label) ? {
|
|
3105
3105
|
...c,
|
|
3106
3106
|
[a]: e
|
|
3107
|
-
} : c), s = Or(
|
|
3108
|
-
await ss(n.index, s), C.value =
|
|
3107
|
+
} : c), s = Or(t);
|
|
3108
|
+
await ss(n.index, s), C.value = t, We.value = s;
|
|
3109
3109
|
}, Or = (e) => {
|
|
3110
|
-
var
|
|
3111
|
-
return ((
|
|
3110
|
+
var t;
|
|
3111
|
+
return ((t = al(e || []) || []) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.prop) && (s == null ? void 0 : s.type) !== "operate" && (s == null ? void 0 : s.label) !== "操作" && (s == null ? void 0 : s.prop) !== "operate")).map((s) => {
|
|
3112
3112
|
const { prop: c } = s;
|
|
3113
|
-
return
|
|
3113
|
+
return Bu(c, s);
|
|
3114
3114
|
});
|
|
3115
3115
|
}, Xs = async (e) => {
|
|
3116
3116
|
let a = await Fu(n.index);
|
|
@@ -3119,26 +3119,26 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3119
3119
|
const l = Te(C.value), r = (c) => Array.isArray(c) ? c.map((d) => {
|
|
3120
3120
|
const u = Array.isArray(d == null ? void 0 : d.children) && d.children.length > 0, p = { ...d };
|
|
3121
3121
|
return (p == null ? void 0 : p.prop) === "operate" || (p == null ? void 0 : p.label) === "操作" || (p == null ? void 0 : p.type) === "operate" ? (p.sortable = !1, p.filterable = !1, p.operable = !1) : p.sortable = u ? !1 : !!e, u && (p.children = r(p.children)), p;
|
|
3122
|
-
}) : c,
|
|
3123
|
-
await ss(n.index, s), C.value =
|
|
3122
|
+
}) : c, t = r(l), s = Or(t);
|
|
3123
|
+
await ss(n.index, s), C.value = t, We.value = s;
|
|
3124
3124
|
}, Zs = () => {
|
|
3125
3125
|
Xa.value = !1;
|
|
3126
3126
|
}, Vs = (e) => {
|
|
3127
3127
|
ge("clickTrigger", e);
|
|
3128
3128
|
}, nn = async (e) => {
|
|
3129
|
-
var s, c, d, u, p, b, N, A, I, F, Z, g, w, H,
|
|
3129
|
+
var s, c, d, u, p, b, N, A, I, F, Z, g, w, H, O;
|
|
3130
3130
|
const a = e == null ? void 0 : e.row, l = e == null ? void 0 : e.rowData, r = e == null ? void 0 : e.suffix;
|
|
3131
3131
|
if ((s = a == null ? void 0 : a.toString()) != null && s.includes(".urdf") || e != null && e.isUrdf || r != null && r.includes(".urdf")) {
|
|
3132
3132
|
if (a.includes(",")) {
|
|
3133
3133
|
Le.error("当前版本仅允许单个urdf预览!");
|
|
3134
3134
|
return;
|
|
3135
3135
|
}
|
|
3136
|
-
if (
|
|
3137
|
-
const
|
|
3136
|
+
if (Na(a)) {
|
|
3137
|
+
const o = {
|
|
3138
3138
|
files: [$(a)],
|
|
3139
3139
|
data: {}
|
|
3140
3140
|
};
|
|
3141
|
-
se(
|
|
3141
|
+
se(o);
|
|
3142
3142
|
return;
|
|
3143
3143
|
}
|
|
3144
3144
|
Fl.value = [{
|
|
@@ -3146,39 +3146,39 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3146
3146
|
extension: Ie(a)
|
|
3147
3147
|
}], ta.value = !0, ba.value = {
|
|
3148
3148
|
data: Te(l)
|
|
3149
|
-
},
|
|
3149
|
+
}, ua.value = !0;
|
|
3150
3150
|
return;
|
|
3151
3151
|
}
|
|
3152
|
-
let
|
|
3152
|
+
let t = [];
|
|
3153
3153
|
if ((c = a == null ? void 0 : a.toString()) != null && c.includes(".stl") || (d = a == null ? void 0 : a.toString()) != null && d.includes(".STL") || (u = a == null ? void 0 : a.toString()) != null && u.includes(".obj") || (p = a == null ? void 0 : a.toString()) != null && p.includes(".mtl")) {
|
|
3154
|
-
const v = (b = a == null ? void 0 : a.toString()) == null ? void 0 : b.split(","),
|
|
3155
|
-
if (
|
|
3154
|
+
const v = (b = a == null ? void 0 : a.toString()) == null ? void 0 : b.split(","), o = G(v), f = o == null ? void 0 : o[0];
|
|
3155
|
+
if (Na(f == null ? void 0 : f.extension)) {
|
|
3156
3156
|
se({
|
|
3157
|
-
files:
|
|
3157
|
+
files: o,
|
|
3158
3158
|
data: {}
|
|
3159
3159
|
});
|
|
3160
3160
|
return;
|
|
3161
3161
|
}
|
|
3162
|
-
Fl.value =
|
|
3162
|
+
Fl.value = o, ta.value = !1, ua.value = !0;
|
|
3163
3163
|
return;
|
|
3164
3164
|
}
|
|
3165
3165
|
if ((N = a == null ? void 0 : a.toString()) != null && N.includes(".stl") || (A = a == null ? void 0 : a.toString()) != null && A.includes(".STL") || (I = a == null ? void 0 : a.toString()) != null && I.includes(".obj") || (F = a == null ? void 0 : a.toString()) != null && F.includes(".mtl") || r != null && r.includes(".stl") || r != null && r.includes(".STL") || r != null && r.includes(".obj") || r != null && r.includes(".mtl")) {
|
|
3166
|
-
let v,
|
|
3167
|
-
if (Array.isArray(a) ? v = a : v = a == null ? void 0 : a.split(","), v == null || v.forEach((
|
|
3168
|
-
|
|
3169
|
-
}), (
|
|
3170
|
-
|
|
3166
|
+
let v, o = [], f = {};
|
|
3167
|
+
if (Array.isArray(a) ? v = a : v = a == null ? void 0 : a.split(","), v == null || v.forEach((m) => {
|
|
3168
|
+
m.includes(".mtl") ? o.push(m) : f.blob = f.blob ? f.blob + "," + m : m;
|
|
3169
|
+
}), (o == null ? void 0 : o.length) > 0 && (f.mtlBlobs = o), r && (f.suffix = r), (g = (Z = Object.values(f)) == null ? void 0 : Z[0]) != null && g.includes("http:"))
|
|
3170
|
+
t.push(f);
|
|
3171
3171
|
else {
|
|
3172
|
-
const
|
|
3172
|
+
const m = new Blob([f.blob], {
|
|
3173
3173
|
type: "application/octet-stream;charset=UTF-8"
|
|
3174
3174
|
});
|
|
3175
|
-
let
|
|
3175
|
+
let _ = URL.createObjectURL(m), R = "";
|
|
3176
3176
|
(w = a == null ? void 0 : a.split("/")) == null || w.forEach((X, i) => {
|
|
3177
3177
|
var D;
|
|
3178
3178
|
i === ((D = a == null ? void 0 : a.split("/")) == null ? void 0 : D.length) - 1 && (R = X);
|
|
3179
|
-
}), (H = f.blob) != null && H.includes(".stl") && (R = (R == null ? void 0 : R.replaceAll(">", "")) + ".urdf"),
|
|
3179
|
+
}), (H = f.blob) != null && H.includes(".stl") && (R = (R == null ? void 0 : R.replaceAll(">", "")) + ".urdf"), Da.value = [{
|
|
3180
3180
|
name: R,
|
|
3181
|
-
blobUrl:
|
|
3181
|
+
blobUrl: _
|
|
3182
3182
|
}], Qe.value = !0;
|
|
3183
3183
|
}
|
|
3184
3184
|
} else {
|
|
@@ -3187,34 +3187,34 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3187
3187
|
headers: {
|
|
3188
3188
|
"Content-Type": "application/json"
|
|
3189
3189
|
}
|
|
3190
|
-
}),
|
|
3190
|
+
}), o = new Blob([v.data], {
|
|
3191
3191
|
type: "application/octet-stream;charset=UTF-8"
|
|
3192
3192
|
});
|
|
3193
|
-
let f = URL.createObjectURL(
|
|
3194
|
-
if ((
|
|
3193
|
+
let f = URL.createObjectURL(o), m = "";
|
|
3194
|
+
if ((O = a == null ? void 0 : a.split("/")) == null || O.forEach((_, R) => {
|
|
3195
3195
|
var X;
|
|
3196
|
-
R === ((X = a == null ? void 0 : a.split("/")) == null ? void 0 : X.length) - 1 && (
|
|
3197
|
-
}),
|
|
3198
|
-
const
|
|
3196
|
+
R === ((X = a == null ? void 0 : a.split("/")) == null ? void 0 : X.length) - 1 && (m = _);
|
|
3197
|
+
}), Na(m)) {
|
|
3198
|
+
const _ = K(m), R = $(a);
|
|
3199
3199
|
se({
|
|
3200
3200
|
files: [R],
|
|
3201
3201
|
data: {
|
|
3202
|
-
trackFileType:
|
|
3202
|
+
trackFileType: _
|
|
3203
3203
|
}
|
|
3204
3204
|
});
|
|
3205
3205
|
return;
|
|
3206
3206
|
}
|
|
3207
|
-
|
|
3208
|
-
name:
|
|
3207
|
+
Da.value = [{
|
|
3208
|
+
name: m,
|
|
3209
3209
|
blobUrl: f
|
|
3210
3210
|
}], Qe.value = !0;
|
|
3211
3211
|
}
|
|
3212
|
-
(
|
|
3212
|
+
(t == null ? void 0 : t.length) > 0 && x.setBlobUrls(t);
|
|
3213
3213
|
}, Jl = (e) => {
|
|
3214
|
-
var r,
|
|
3214
|
+
var r, t, s, c;
|
|
3215
3215
|
if (e != null && e.downloadUrl)
|
|
3216
3216
|
return e == null ? void 0 : e.name;
|
|
3217
|
-
const a = (c = (r = e == null ? void 0 : e.url) == null ? void 0 : r.split(".")) == null ? void 0 : c[((s = (
|
|
3217
|
+
const a = (c = (r = e == null ? void 0 : e.url) == null ? void 0 : r.split(".")) == null ? void 0 : c[((s = (t = e == null ? void 0 : e.url) == null ? void 0 : t.split(".")) == null ? void 0 : s.length) - 1];
|
|
3218
3218
|
return (e == null ? void 0 : e.name) + "." + a;
|
|
3219
3219
|
}, sn = (e) => {
|
|
3220
3220
|
if (!e) return "未知文件";
|
|
@@ -3234,7 +3234,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3234
3234
|
}, et = async (e) => {
|
|
3235
3235
|
let a = null, l = null;
|
|
3236
3236
|
if (e != null && e.id) {
|
|
3237
|
-
const
|
|
3237
|
+
const t = Gn.service({
|
|
3238
3238
|
lock: !0,
|
|
3239
3239
|
text: "Loading",
|
|
3240
3240
|
background: "rgba(0, 0, 0, 0.7)"
|
|
@@ -3243,10 +3243,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3243
3243
|
const s = await Rl(e);
|
|
3244
3244
|
a = URL.createObjectURL(s.data), l = sn(e);
|
|
3245
3245
|
} finally {
|
|
3246
|
-
|
|
3246
|
+
t.close();
|
|
3247
3247
|
}
|
|
3248
3248
|
} else if (e != null && e.downloadUrl) {
|
|
3249
|
-
const
|
|
3249
|
+
const t = await xr(), s = Gn.service({
|
|
3250
3250
|
lock: !0,
|
|
3251
3251
|
text: "Loading",
|
|
3252
3252
|
background: "rgba(0, 0, 0, 0.7)"
|
|
@@ -3254,7 +3254,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3254
3254
|
responseType: "blob",
|
|
3255
3255
|
// 必须设置
|
|
3256
3256
|
headers: {
|
|
3257
|
-
Authorization:
|
|
3257
|
+
Authorization: t,
|
|
3258
3258
|
baseURL: "http://139.196.154.85:20025",
|
|
3259
3259
|
"Content-Type": "application/json"
|
|
3260
3260
|
}
|
|
@@ -3265,24 +3265,24 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3265
3265
|
});
|
|
3266
3266
|
a = URL.createObjectURL(d), l = e == null ? void 0 : e.name;
|
|
3267
3267
|
} else {
|
|
3268
|
-
const
|
|
3268
|
+
const t = await Rl({
|
|
3269
3269
|
url: e == null ? void 0 : e.url
|
|
3270
3270
|
});
|
|
3271
|
-
!e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (a = URL.createObjectURL(
|
|
3271
|
+
!e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (a = URL.createObjectURL(t.data), l = Jl(e)) : a = e == null ? void 0 : e.url;
|
|
3272
3272
|
}
|
|
3273
|
-
if (
|
|
3274
|
-
const
|
|
3273
|
+
if (Na(a)) {
|
|
3274
|
+
const t = {
|
|
3275
3275
|
row: `${a}`,
|
|
3276
3276
|
suffix: Ie(l)
|
|
3277
3277
|
};
|
|
3278
|
-
nn(
|
|
3278
|
+
nn(t);
|
|
3279
3279
|
return;
|
|
3280
3280
|
}
|
|
3281
3281
|
const r = {
|
|
3282
3282
|
name: l,
|
|
3283
3283
|
blobUrl: a
|
|
3284
3284
|
};
|
|
3285
|
-
|
|
3285
|
+
Da.value = [r], Qe.value = !0;
|
|
3286
3286
|
}, at = async (e) => {
|
|
3287
3287
|
let a = null, l = null;
|
|
3288
3288
|
if (e != null && e.id) {
|
|
@@ -3310,17 +3310,17 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3310
3310
|
const r = {
|
|
3311
3311
|
name: l,
|
|
3312
3312
|
blobUrl: a
|
|
3313
|
-
},
|
|
3314
|
-
|
|
3315
|
-
document.body.removeChild(
|
|
3313
|
+
}, t = document.createElement("a");
|
|
3314
|
+
t.href = r.blobUrl, t.download = r.name, t.style.display = "none", document.body.appendChild(t), t.click(), setTimeout(() => {
|
|
3315
|
+
document.body.removeChild(t);
|
|
3316
3316
|
}, 100);
|
|
3317
3317
|
}, lt = (e, a) => {
|
|
3318
3318
|
var r;
|
|
3319
3319
|
if (Object.values(a).length === 0) return;
|
|
3320
3320
|
let l = e;
|
|
3321
|
-
return Object.values(a).find((
|
|
3321
|
+
return Object.values(a).find((t) => {
|
|
3322
3322
|
var s, c, d;
|
|
3323
|
-
return ((s =
|
|
3323
|
+
return ((s = t == null ? void 0 : t.toString()) == null ? void 0 : s.includes(".txt")) || ((c = t == null ? void 0 : t.toString()) == null ? void 0 : c.includes(".cpt")) || ((d = t == null ? void 0 : t.toString()) == null ? void 0 : d.includes(".obj"));
|
|
3324
3324
|
}) ? l = [...e, vs.value] : (r = n == null ? void 0 : n.config) != null && r.allowMove && (l = [...e, { label: "迁移" }]), l;
|
|
3325
3325
|
}, rt = () => {
|
|
3326
3326
|
Ue.value = !0;
|
|
@@ -3338,9 +3338,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3338
3338
|
V.value = Array.from(((c = ma.value) == null ? void 0 : c.values()) ?? []);
|
|
3339
3339
|
return;
|
|
3340
3340
|
}
|
|
3341
|
-
let
|
|
3341
|
+
let t = (d = n == null ? void 0 : n.related) == null ? void 0 : d.find((b) => b == null ? void 0 : b.includes("content_")), s = await Ro({
|
|
3342
3342
|
platId: parseInt((u = _a == null ? void 0 : _a.value) == null ? void 0 : u.plat_id),
|
|
3343
|
-
tableName:
|
|
3343
|
+
tableName: t,
|
|
3344
3344
|
params: r
|
|
3345
3345
|
});
|
|
3346
3346
|
s = (p = s == null ? void 0 : s.data) == null ? void 0 : p.result, V.value = s, la.setTableLoading(!1);
|
|
@@ -3350,7 +3350,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3350
3350
|
const a = e == null ? void 0 : e.id;
|
|
3351
3351
|
a != null && (E.value.clear(), Q.value.clear(), Q.value.has(a) || Q.value.set(a, Te(e)), V.value = (l = V.value) == null ? void 0 : l.map((r) => ({ ...r, tableEditType: (r == null ? void 0 : r.id) === a ? "edit" : "text" })), E.value.add(a), ka.value = !0);
|
|
3352
3352
|
}, on = async (e, a, l, r) => {
|
|
3353
|
-
r != null && r.isExistChild && ge("clickMainKey", e, l);
|
|
3353
|
+
r != null && r.isExistChild && ge("clickMainKey", e, l, C.value);
|
|
3354
3354
|
}, ot = () => {
|
|
3355
3355
|
Qe.value = !1;
|
|
3356
3356
|
}, it = (e) => {
|
|
@@ -3361,14 +3361,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3361
3361
|
() => {
|
|
3362
3362
|
var l, r;
|
|
3363
3363
|
if (!n.changedContent) return;
|
|
3364
|
-
let e = (l = V.value) == null ? void 0 : l.map((
|
|
3364
|
+
let e = (l = V.value) == null ? void 0 : l.map((t) => {
|
|
3365
3365
|
var s;
|
|
3366
|
-
return
|
|
3366
|
+
return t.id === ((s = n.changedContent) == null ? void 0 : s.id) && (t = {
|
|
3367
3367
|
...n.changedContent,
|
|
3368
3368
|
id: n.changedContent.newId ? n.changedContent.newId : n.changedContent.id
|
|
3369
|
-
}, delete
|
|
3369
|
+
}, delete t.newId), t;
|
|
3370
3370
|
});
|
|
3371
|
-
const a = (r = n.itemData) == null ? void 0 : r.map((
|
|
3371
|
+
const a = (r = n.itemData) == null ? void 0 : r.map((t) => ((t == null ? void 0 : t.key) === "tableContents" && (t.contents = e), t));
|
|
3372
3372
|
V.value = e, ge("contentChange", {
|
|
3373
3373
|
contents: a,
|
|
3374
3374
|
index: n.index
|
|
@@ -3383,7 +3383,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3383
3383
|
);
|
|
3384
3384
|
const ut = () => {
|
|
3385
3385
|
}, dt = async () => {
|
|
3386
|
-
const e = xe.value, a = sessionStorage.getItem("systemKey"), l = await
|
|
3386
|
+
const e = xe.value, a = sessionStorage.getItem("systemKey"), l = await Br(e, a, ""), r = (l == null ? void 0 : l.find((d) => (d == null ? void 0 : d.name) === "方法明细")) || (l == null ? void 0 : l[0]), t = (r == null ? void 0 : r.compData) || [], s = t == null ? void 0 : t.find((d) => {
|
|
3387
3387
|
const u = d == null ? void 0 : d.key;
|
|
3388
3388
|
return u === "formContent" || u === "tableContents";
|
|
3389
3389
|
});
|
|
@@ -3392,54 +3392,54 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3392
3392
|
headers: {
|
|
3393
3393
|
Authorization: a
|
|
3394
3394
|
}
|
|
3395
|
-
}).catch((
|
|
3395
|
+
}).catch((t) => (Ze.setImportLoading(!1), Promise.reject(t))), pt = (e) => {
|
|
3396
3396
|
var r;
|
|
3397
3397
|
let a = {};
|
|
3398
3398
|
const l = [];
|
|
3399
|
-
return a.form = {}, (r = Te(e)) == null || r.forEach((
|
|
3400
|
-
var c, d, u, p, b, N, A, I, F, Z, g, w, H,
|
|
3401
|
-
if ((
|
|
3402
|
-
(d = (c =
|
|
3403
|
-
let v = (b = (p = (u =
|
|
3404
|
-
(Z = (F = (I = (A = (N =
|
|
3405
|
-
let
|
|
3406
|
-
v == null || v.forEach((
|
|
3407
|
-
let
|
|
3408
|
-
|
|
3399
|
+
return a.form = {}, (r = Te(e)) == null || r.forEach((t, s) => {
|
|
3400
|
+
var c, d, u, p, b, N, A, I, F, Z, g, w, H, O;
|
|
3401
|
+
if ((t == null ? void 0 : t.comp) === "Table") {
|
|
3402
|
+
(d = (c = t == null ? void 0 : t.compData) == null ? void 0 : c.find((m) => (m == null ? void 0 : m.key) === "header")) == null || d.contents;
|
|
3403
|
+
let v = (b = (p = (u = t == null ? void 0 : t.compData) == null ? void 0 : u.find((m) => (m == null ? void 0 : m.key) === "tableContents")) == null ? void 0 : p.contents) == null ? void 0 : b.map((m) => m.slice(1));
|
|
3404
|
+
(Z = (F = (I = (A = (N = t == null ? void 0 : t.compData) == null ? void 0 : N.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : A.contents) == null ? void 0 : I[0]) == null ? void 0 : F[0]) == null || Z.label;
|
|
3405
|
+
let o = (w = (g = t == null ? void 0 : t.compData) == null ? void 0 : g.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : w.contents, f = [];
|
|
3406
|
+
v == null || v.forEach((m) => {
|
|
3407
|
+
let _ = [];
|
|
3408
|
+
m == null || m.forEach((R, X) => {
|
|
3409
3409
|
var D;
|
|
3410
3410
|
let i = {};
|
|
3411
|
-
((D =
|
|
3412
|
-
}), f.push(
|
|
3413
|
-
}), a[
|
|
3411
|
+
((D = o[X]) == null ? void 0 : D.label) !== "操作" && (i[o[X].label] = R, _.push(i));
|
|
3412
|
+
}), f.push(_);
|
|
3413
|
+
}), a[t.name] = f;
|
|
3414
3414
|
} else {
|
|
3415
|
-
const v = (
|
|
3416
|
-
v == null || v.forEach((
|
|
3417
|
-
var f,
|
|
3418
|
-
if (
|
|
3419
|
-
let
|
|
3420
|
-
Array.isArray(
|
|
3421
|
-
key: (
|
|
3422
|
-
value:
|
|
3423
|
-
}, l.push(
|
|
3415
|
+
const v = (O = (H = t.compData) == null ? void 0 : H.find((o) => (o == null ? void 0 : o.key) === "formContent")) == null ? void 0 : O.contents;
|
|
3416
|
+
v == null || v.forEach((o) => {
|
|
3417
|
+
var f, m;
|
|
3418
|
+
if (o.prop !== "") {
|
|
3419
|
+
let _ = o == null ? void 0 : o.value;
|
|
3420
|
+
Array.isArray(_) ? _ = ((f = _ == null ? void 0 : _[0]) == null ? void 0 : f.oldUrl) || "http://222.92.178.198:62001/" + ((m = _ == null ? void 0 : _[0]) == null ? void 0 : m.url) : _ = _.toString(), o = {
|
|
3421
|
+
key: (o == null ? void 0 : o.prop) ?? (o == null ? void 0 : o.label),
|
|
3422
|
+
value: _
|
|
3423
|
+
}, l.push(o);
|
|
3424
3424
|
}
|
|
3425
3425
|
});
|
|
3426
3426
|
}
|
|
3427
|
-
}), a.form =
|
|
3427
|
+
}), a.form = No(l), a;
|
|
3428
3428
|
}, ft = (e) => {
|
|
3429
3429
|
const a = [], l = (r) => {
|
|
3430
3430
|
r && typeof r == "object" && !Array.isArray(r) ? Object.values(r).forEach(l) : a.push(r);
|
|
3431
3431
|
};
|
|
3432
3432
|
return l(e), a;
|
|
3433
3433
|
}, vt = async (e, a, l) => {
|
|
3434
|
-
var
|
|
3434
|
+
var o, f, m, _, R, X, i, D, le, ee, oe, J, ie, ue, Be, ye, me;
|
|
3435
3435
|
Ze.setImportLoading(!0), la.setFreshContent(!1);
|
|
3436
3436
|
let r = await dt().catch((U) => (Ze.setImportLoading(!1), Promise.reject(U)));
|
|
3437
3437
|
r = r == null ? void 0 : r.filter((U) => {
|
|
3438
3438
|
var pe;
|
|
3439
3439
|
return ((pe = U == null ? void 0 : U.find((we) => we == null ? void 0 : we.id)) == null ? void 0 : pe.id) === (a == null ? void 0 : a.id);
|
|
3440
3440
|
});
|
|
3441
|
-
let
|
|
3442
|
-
const s = (
|
|
3441
|
+
let t = Zn([(o = C.value) == null ? void 0 : o.filter((U) => (U == null ? void 0 : U.label) !== "操作")]);
|
|
3442
|
+
const s = (m = (f = wo(r, t)) == null ? void 0 : f[0]) == null ? void 0 : m.find((U) => {
|
|
3443
3443
|
const pe = U == null ? void 0 : U.key;
|
|
3444
3444
|
return pe === "Interface" || pe === "方法体";
|
|
3445
3445
|
}), c = s == null ? void 0 : s.value;
|
|
@@ -3447,14 +3447,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3447
3447
|
console.log("未搜索到isMain, 缺少算法执行接口"), Ze.setImportLoading(!1);
|
|
3448
3448
|
return;
|
|
3449
3449
|
}
|
|
3450
|
-
const d = C.value ?
|
|
3450
|
+
const d = C.value ? Zn([C.value]) : [], u = d.find((U) => {
|
|
3451
3451
|
const pe = U == null ? void 0 : U.prop;
|
|
3452
3452
|
return pe === "Input1" || pe === "输入数据.输入1" || pe === "样本输入数据";
|
|
3453
3453
|
}), p = u == null ? void 0 : u.prop;
|
|
3454
3454
|
let b = a == null ? void 0 : a[p];
|
|
3455
3455
|
const N = await xr().catch((U) => (Ze.setImportLoading(!1), Promise.reject(U)));
|
|
3456
3456
|
let A = !0, I = "";
|
|
3457
|
-
(
|
|
3457
|
+
(_ = C.value) == null || _.forEach((U) => {
|
|
3458
3458
|
(U == null ? void 0 : U.prop) === p && (A = !!(U != null && U.childPath), I = U == null ? void 0 : U.childPath);
|
|
3459
3459
|
});
|
|
3460
3460
|
let F = "";
|
|
@@ -3465,7 +3465,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3465
3465
|
pe == null || pe.forEach((be, de) => {
|
|
3466
3466
|
(pe == null ? void 0 : pe.length) - 1 === de && we.push(F), we.push(be);
|
|
3467
3467
|
}), we = we == null ? void 0 : we[0];
|
|
3468
|
-
let Ce = await
|
|
3468
|
+
let Ce = await Br(we, sessionStorage.getItem("systemKey"), ""), ve = Ce == null ? void 0 : Ce.filter((be) => (be == null ? void 0 : be.name) === p);
|
|
3469
3469
|
ve = ve == null ? void 0 : ve.map((be) => {
|
|
3470
3470
|
var de;
|
|
3471
3471
|
return be.compData = (de = be == null ? void 0 : be.compData) == null ? void 0 : de.map((ze) => {
|
|
@@ -3487,7 +3487,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3487
3487
|
token: N,
|
|
3488
3488
|
inputData: b
|
|
3489
3489
|
}).catch((U) => (Ze.setImportLoading(!1), Promise.reject(U))), g = (i = Z == null ? void 0 : Z.data) == null ? void 0 : i.data, w = d.find((U) => (U == null ? void 0 : U.prop) === "Output1"), H = w == null ? void 0 : w.prop;
|
|
3490
|
-
let
|
|
3490
|
+
let O = [], v = [];
|
|
3491
3491
|
if (g && ((D = Object.values(g)) == null ? void 0 : D.length) > 0) {
|
|
3492
3492
|
let U = [];
|
|
3493
3493
|
const pe = new FormData(), we = (le = ft(g)) == null ? void 0 : le.map(async (ve) => {
|
|
@@ -3498,8 +3498,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3498
3498
|
} else
|
|
3499
3499
|
U.push(ve);
|
|
3500
3500
|
});
|
|
3501
|
-
if (await Promise.all(we), !
|
|
3502
|
-
let ve = await
|
|
3501
|
+
if (await Promise.all(we), !To(pe)) {
|
|
3502
|
+
let ve = await io(pe), be = (oe = (ee = ve == null ? void 0 : ve.data) == null ? void 0 : ee.result) == null ? void 0 : oe.map((de) => {
|
|
3503
3503
|
var ze, va, ha, Ha, qa, dl;
|
|
3504
3504
|
return {
|
|
3505
3505
|
name: (dl = (qa = (Ha = (ze = de == null ? void 0 : de.url) == null ? void 0 : ze.split("/")) == null ? void 0 : Ha[((ha = (va = de == null ? void 0 : de.url) == null ? void 0 : va.split("/")) == null ? void 0 : ha.length) - 1]) == null ? void 0 : qa.split(".")) == null ? void 0 : dl[0],
|
|
@@ -3536,14 +3536,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3536
3536
|
changeContents: pe
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
3539
|
-
if ((
|
|
3539
|
+
if ((O == null ? void 0 : O.length) > 0)
|
|
3540
3540
|
try {
|
|
3541
3541
|
await Mr({
|
|
3542
3542
|
platId: parseInt((ue = _a.value) == null ? void 0 : ue.plat_id),
|
|
3543
3543
|
changeContents: [
|
|
3544
3544
|
{
|
|
3545
|
-
tableName: (
|
|
3546
|
-
tableContents:
|
|
3545
|
+
tableName: (Be = n == null ? void 0 : n.related) == null ? void 0 : Be.find((U) => U == null ? void 0 : U.includes("content")),
|
|
3546
|
+
tableContents: O.map((U) => {
|
|
3547
3547
|
var we, Ce, ve;
|
|
3548
3548
|
const pe = {
|
|
3549
3549
|
id: ((we = U == null ? void 0 : U.key) == null ? void 0 : we.id) ?? ((Ce = U == null ? void 0 : U.key) == null ? void 0 : Ce.rowId) ?? (U == null ? void 0 : U.id),
|
|
@@ -3562,12 +3562,12 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3562
3562
|
}
|
|
3563
3563
|
Yl(!0), Ze.setImportLoading(!1), la.setFreshContent(!0);
|
|
3564
3564
|
}, un = (e, a) => (e = e == null ? void 0 : e.map((l) => {
|
|
3565
|
-
var r,
|
|
3566
|
-
return l != null && l.children && ((r = l.children) != null && r.find((s) => s.id === (a == null ? void 0 : a.id)) ? l.children = (
|
|
3565
|
+
var r, t;
|
|
3566
|
+
return l != null && l.children && ((r = l.children) != null && r.find((s) => s.id === (a == null ? void 0 : a.id)) ? l.children = (t = l.children) == null ? void 0 : t.filter((s) => (s == null ? void 0 : s.id) !== (a == null ? void 0 : a.id)) : l.children = un(l.children, a)), l;
|
|
3567
3567
|
}), e), pr = M(!1), ht = () => {
|
|
3568
3568
|
pr.value = !0;
|
|
3569
3569
|
}, yt = async (e) => {
|
|
3570
|
-
var a, l, r,
|
|
3570
|
+
var a, l, r, t;
|
|
3571
3571
|
if (pr.value = !1, e) {
|
|
3572
3572
|
const s = {
|
|
3573
3573
|
name: e.name || "capture.jpg",
|
|
@@ -3580,7 +3580,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3580
3580
|
try {
|
|
3581
3581
|
const c = new FormData();
|
|
3582
3582
|
c.append("file", e, s.name);
|
|
3583
|
-
const d = await
|
|
3583
|
+
const d = await Qn(c);
|
|
3584
3584
|
s.uploadResult = ((a = d == null ? void 0 : d.data) == null ? void 0 : a.result) || {
|
|
3585
3585
|
name: s.name,
|
|
3586
3586
|
url: "",
|
|
@@ -3588,7 +3588,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3588
3588
|
}, Jr({
|
|
3589
3589
|
name: ((l = s.uploadResult) == null ? void 0 : l.name) || s.name,
|
|
3590
3590
|
url: ((r = s.uploadResult) == null ? void 0 : r.url) || "",
|
|
3591
|
-
id: (
|
|
3591
|
+
id: (t = s.uploadResult) == null ? void 0 : t.id
|
|
3592
3592
|
}), Ja(s, "uploaded"), Va(s, 100);
|
|
3593
3593
|
} catch (c) {
|
|
3594
3594
|
console.error("文件上传失败:", c), Le.error(`文件 ${s.name} 上传失败,请重试`), Ja(s, "pending"), Va(s, 0);
|
|
@@ -3596,7 +3596,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3596
3596
|
d > -1 && qe.value.splice(d, 1);
|
|
3597
3597
|
}
|
|
3598
3598
|
}
|
|
3599
|
-
},
|
|
3599
|
+
}, na = El({
|
|
3600
3600
|
title: "迁移至",
|
|
3601
3601
|
show: !1,
|
|
3602
3602
|
width: "20%",
|
|
@@ -3620,20 +3620,20 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3620
3620
|
color: "var(--ssbutton-theme-color)"
|
|
3621
3621
|
}]
|
|
3622
3622
|
}), gt = () => {
|
|
3623
|
-
|
|
3623
|
+
na.show = !1;
|
|
3624
3624
|
}, bt = (e) => {
|
|
3625
3625
|
var a, l;
|
|
3626
|
-
if ((e == null ? void 0 : e.buttonName) === "取消") return
|
|
3627
|
-
|
|
3626
|
+
if ((e == null ? void 0 : e.buttonName) === "取消") return na.show = !1;
|
|
3627
|
+
na.to = e == null ? void 0 : e.content, !(!(n != null && n.index) || !((a = na.to) != null && a.groupName)) && (n == null ? void 0 : n.index) !== ((l = na.to) == null ? void 0 : l.groupName) && (ge("change", {
|
|
3628
3628
|
buttonName: "迁移",
|
|
3629
3629
|
value: {
|
|
3630
|
-
from:
|
|
3631
|
-
to:
|
|
3632
|
-
data:
|
|
3630
|
+
from: na.from,
|
|
3631
|
+
to: na.to,
|
|
3632
|
+
data: na.selectRow
|
|
3633
3633
|
}
|
|
3634
|
-
}),
|
|
3634
|
+
}), na.show = !1);
|
|
3635
3635
|
}, dn = async (e) => {
|
|
3636
|
-
var a, l, r,
|
|
3636
|
+
var a, l, r, t;
|
|
3637
3637
|
if (e) {
|
|
3638
3638
|
if (!Kl.validateFileSize(e.raw)) {
|
|
3639
3639
|
Le.warning(`文件大小不能超过 ${As.value.maxSize}MB`);
|
|
@@ -3651,7 +3651,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3651
3651
|
try {
|
|
3652
3652
|
const s = new FormData();
|
|
3653
3653
|
s.append("file", e.raw, e.name);
|
|
3654
|
-
const c = await
|
|
3654
|
+
const c = await Qn(s);
|
|
3655
3655
|
e.uploadResult = ((a = c == null ? void 0 : c.data) == null ? void 0 : a.result) || {
|
|
3656
3656
|
name: e.name,
|
|
3657
3657
|
url: "",
|
|
@@ -3659,7 +3659,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3659
3659
|
}, Jr({
|
|
3660
3660
|
name: ((l = e.uploadResult) == null ? void 0 : l.name) || e.name,
|
|
3661
3661
|
url: ((r = e.uploadResult) == null ? void 0 : r.url) || "",
|
|
3662
|
-
id: (
|
|
3662
|
+
id: (t = e.uploadResult) == null ? void 0 : t.id
|
|
3663
3663
|
}), Ja(e, "uploaded"), Va(e, 100);
|
|
3664
3664
|
} catch (s) {
|
|
3665
3665
|
console.error("文件上传失败:", s), Le.error(`文件 ${e.name} 上传失败,请重试`), Ja(e, "pending"), Va(e, 0);
|
|
@@ -3670,7 +3670,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
3672
|
}, Nr = () => {
|
|
3673
|
-
|
|
3673
|
+
La(() => {
|
|
3674
3674
|
const e = document.querySelector('.ocr-upload-input input[type="file"]');
|
|
3675
3675
|
e && (e.value = "");
|
|
3676
3676
|
});
|
|
@@ -3680,8 +3680,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3680
3680
|
Le.warning("请先选择要上传的图片");
|
|
3681
3681
|
return;
|
|
3682
3682
|
}
|
|
3683
|
-
if (qe.value.filter((
|
|
3684
|
-
const s = oa(
|
|
3683
|
+
if (qe.value.filter((t) => {
|
|
3684
|
+
const s = oa(t);
|
|
3685
3685
|
return s !== "uploaded" && s !== "completed" && s !== "failed";
|
|
3686
3686
|
}).length > 0) {
|
|
3687
3687
|
Le.warning("请等待所有文件上传完成后再开始识别");
|
|
@@ -3693,15 +3693,15 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3693
3693
|
qe.value.forEach((w) => {
|
|
3694
3694
|
Ja(w, "processing");
|
|
3695
3695
|
});
|
|
3696
|
-
const
|
|
3696
|
+
const t = Math.floor(Math.random() * 10) + 90;
|
|
3697
3697
|
a = setInterval(() => {
|
|
3698
|
-
Ka.value <
|
|
3698
|
+
Ka.value < t ? Ka.value += 1 : clearInterval(a);
|
|
3699
3699
|
}, 50);
|
|
3700
3700
|
const s = qe.value.map((w) => {
|
|
3701
|
-
var H,
|
|
3701
|
+
var H, O, v;
|
|
3702
3702
|
return {
|
|
3703
3703
|
name: ((H = w.uploadResult) == null ? void 0 : H.name) || w.name,
|
|
3704
|
-
url: ((
|
|
3704
|
+
url: ((O = w.uploadResult) == null ? void 0 : O.url) || "",
|
|
3705
3705
|
fileName: ((v = w.uploadResult) == null ? void 0 : v.fileName) || w.name
|
|
3706
3706
|
};
|
|
3707
3707
|
}), c = Kl.extractTableHeaders(C.value), d = s.map((w) => ({
|
|
@@ -3714,7 +3714,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3714
3714
|
}), Le.error((u == null ? void 0 : u.message) || "OCR识别失败,请重试"), za.value = !1;
|
|
3715
3715
|
return;
|
|
3716
3716
|
}
|
|
3717
|
-
Ka.value =
|
|
3717
|
+
Ka.value = t;
|
|
3718
3718
|
const p = Array.isArray(u == null ? void 0 : u.result) ? u.result : [];
|
|
3719
3719
|
if (p.length === 0) {
|
|
3720
3720
|
Ka.value = 0, qe.value.forEach((w) => {
|
|
@@ -3724,9 +3724,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3724
3724
|
}
|
|
3725
3725
|
const b = /* @__PURE__ */ new Set(), N = [];
|
|
3726
3726
|
p.forEach((w, H) => {
|
|
3727
|
-
const
|
|
3728
|
-
v.forEach((
|
|
3729
|
-
|
|
3727
|
+
const O = w != null && w.数据 && typeof (w == null ? void 0 : w.数据) == "object" ? w.数据 : {}, v = Array.isArray(w == null ? void 0 : w.图片信息) ? w.图片信息 : [], o = /* @__PURE__ */ new Map();
|
|
3728
|
+
v.forEach((m) => {
|
|
3729
|
+
m != null && m.name && o.set(m.name, m.url || "");
|
|
3730
3730
|
});
|
|
3731
3731
|
const f = {
|
|
3732
3732
|
_index: H,
|
|
@@ -3735,14 +3735,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3735
3735
|
_ocrImages: v,
|
|
3736
3736
|
__ocrFieldMeta: {}
|
|
3737
3737
|
};
|
|
3738
|
-
Object.entries(
|
|
3738
|
+
Object.entries(O).forEach(([m, _]) => {
|
|
3739
3739
|
let R = "", X = 0, i = [], D = "";
|
|
3740
|
-
|
|
3740
|
+
_ && typeof _ == "object" && !Array.isArray(_) ? (R = (_ == null ? void 0 : _.value) ?? "", X = (_ == null ? void 0 : _.score) ?? 0, i = Array.isArray(_ == null ? void 0 : _.bboxNorm) ? _ == null ? void 0 : _.bboxNorm : [], D = (_ == null ? void 0 : _.imageName) || "") : Array.isArray(_) && _.length >= 2 ? (R = _[0] ?? "", X = _[1] ?? 0) : (R = _ ?? "", X = 0), f[m] = R, f[`${m}_accuracy`] = X, b.add(m), f.__ocrFieldMeta[m] = {
|
|
3741
3741
|
value: R,
|
|
3742
3742
|
score: X,
|
|
3743
3743
|
bboxNorm: i,
|
|
3744
3744
|
imageName: D,
|
|
3745
|
-
imageUrl: D &&
|
|
3745
|
+
imageUrl: D && o.get(D) || "",
|
|
3746
3746
|
images: v
|
|
3747
3747
|
};
|
|
3748
3748
|
}), N.push(f);
|
|
@@ -3750,8 +3750,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3750
3750
|
const A = [], I = /* @__PURE__ */ new Set();
|
|
3751
3751
|
N.forEach((w) => {
|
|
3752
3752
|
w && b.forEach((H) => {
|
|
3753
|
-
const
|
|
3754
|
-
(typeof
|
|
3753
|
+
const O = w[`${H}_accuracy`];
|
|
3754
|
+
(typeof O == "number" ? O > 0 : O != null && String(O).trim() !== "" && String(O) !== "0") && I.add(H);
|
|
3755
3755
|
});
|
|
3756
3756
|
}), b.forEach((w) => {
|
|
3757
3757
|
A.push({
|
|
@@ -3771,8 +3771,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3771
3771
|
}), Ka.value = 100, Sr.value = A, tl.value = N, Yr.value = s, Gr.value = u;
|
|
3772
3772
|
const F = ["出厂编号", "设备名称", "制造厂"], Z = A.filter((w) => w && !w.isAccuracy && typeof w.prop == "string").map((w) => w.prop), g = ["出厂编号", "设备名称", "制造厂"];
|
|
3773
3773
|
ol.value = Z.filter((w) => g.includes(w)), console.log("[OCR] 默认勾选字段 props:", ol.value), ga.value = 2, za.value = !1, kr.value = !1;
|
|
3774
|
-
} catch (
|
|
3775
|
-
console.error("OCR处理失败:",
|
|
3774
|
+
} catch (t) {
|
|
3775
|
+
console.error("OCR处理失败:", t), a && (clearInterval(a), a = null), Le.error(((r = (l = t == null ? void 0 : t.response) == null ? void 0 : l.data) == null ? void 0 : r.message) || "OCR识别失败,请重试"), za.value = !1, Ka.value = 0, qe.value.forEach((s) => {
|
|
3776
3776
|
Ja(s, "pending"), Va(s, 0);
|
|
3777
3777
|
});
|
|
3778
3778
|
}
|
|
@@ -3781,54 +3781,54 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3781
3781
|
let a = String(e);
|
|
3782
3782
|
return a = a.replace(/\s+/g, " ").trim(), a = a.replace(/[!-~]/g, (l) => String.fromCharCode(l.charCodeAt(0) - 65248)), a = a.replace(/ /g, " "), a = a.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i, ""), a;
|
|
3783
3783
|
}, pn = () => {
|
|
3784
|
-
var H,
|
|
3784
|
+
var H, O;
|
|
3785
3785
|
const e = Yr.value, a = Gr.value, l = tl.value;
|
|
3786
3786
|
if (!l || l.length === 0) {
|
|
3787
3787
|
Le.warning("暂无数据可添加");
|
|
3788
3788
|
return;
|
|
3789
3789
|
}
|
|
3790
|
-
const r = (H = al(C.value) || []) == null ? void 0 : H.filter((v) => (v == null ? void 0 : v.type) !== "operate" && (v == null ? void 0 : v.label) !== "操作" && (v == null ? void 0 : v.prop) !== "operate"),
|
|
3790
|
+
const r = (H = al(C.value) || []) == null ? void 0 : H.filter((v) => (v == null ? void 0 : v.type) !== "operate" && (v == null ? void 0 : v.label) !== "操作" && (v == null ? void 0 : v.prop) !== "operate"), t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = (O = r == null ? void 0 : r.find((v) => (v == null ? void 0 : v.label) === "证书附件")) == null ? void 0 : O.prop;
|
|
3791
3791
|
r == null || r.forEach((v) => {
|
|
3792
|
-
v != null && v.label && (v != null && v.prop) && (
|
|
3792
|
+
v != null && v.label && (v != null && v.prop) && (t.set(v.label, v.prop), s.set(v.prop, v.label));
|
|
3793
3793
|
});
|
|
3794
3794
|
const d = Date.now(), u = (v) => String(d * 1e3 + v);
|
|
3795
3795
|
let p = 0, b = 0;
|
|
3796
3796
|
const N = [], A = [], I = (v) => {
|
|
3797
|
-
const
|
|
3798
|
-
for (const f of
|
|
3799
|
-
const
|
|
3800
|
-
if (
|
|
3797
|
+
const o = Vn && Vn[v] || [v];
|
|
3798
|
+
for (const f of o) {
|
|
3799
|
+
const m = t.get(f);
|
|
3800
|
+
if (m) return m;
|
|
3801
3801
|
}
|
|
3802
3802
|
return "";
|
|
3803
3803
|
}, F = I("出厂编号"), Z = I("设备名称"), g = I("制造厂"), w = [];
|
|
3804
|
-
if (l.forEach((v,
|
|
3805
|
-
var
|
|
3806
|
-
const f = { id: u(
|
|
3807
|
-
for (const [me, U] of
|
|
3804
|
+
if (l.forEach((v, o) => {
|
|
3805
|
+
var Be, ye;
|
|
3806
|
+
const f = { id: u(o), _isOCRRow: !0, _ocrTableId: n == null ? void 0 : n.index };
|
|
3807
|
+
for (const [me, U] of t.entries())
|
|
3808
3808
|
Object.prototype.hasOwnProperty.call(v, me) && (f[U] = v[me]);
|
|
3809
3809
|
if (c) {
|
|
3810
|
-
const me = Array.isArray((ye = (
|
|
3810
|
+
const me = Array.isArray((ye = (Be = a == null ? void 0 : a.result) == null ? void 0 : Be[o]) == null ? void 0 : ye.图片信息) ? a.result[o].图片信息 : [];
|
|
3811
3811
|
f[c] = me.map((U) => ({
|
|
3812
3812
|
url: (U == null ? void 0 : U.url) || "",
|
|
3813
3813
|
name: (U == null ? void 0 : U.name) || "",
|
|
3814
3814
|
fileName: (U == null ? void 0 : U.name) || ""
|
|
3815
3815
|
})).filter((U) => U.url);
|
|
3816
3816
|
}
|
|
3817
|
-
const
|
|
3817
|
+
const m = (Array.isArray(a == null ? void 0 : a.result) ? a.result[o] : null) || null, _ = (Array.isArray(e) ? e[o] : null) || null, R = (_ == null ? void 0 : _.url) || "", X = (_ == null ? void 0 : _.fileName) || (_ == null ? void 0 : _.name) || "", i = String(X).toLowerCase().endsWith(".pdf") || String(R).toLowerCase().endsWith(".pdf"), D = {
|
|
3818
3818
|
ts: Date.now(),
|
|
3819
|
-
versionId: String(Date.now()) + "_" + String(
|
|
3819
|
+
versionId: String(Date.now()) + "_" + String(o),
|
|
3820
3820
|
label: (/* @__PURE__ */ new Date()).toLocaleString(),
|
|
3821
|
-
certType: (
|
|
3822
|
-
certNo: (
|
|
3821
|
+
certType: (m == null ? void 0 : m.证书类型) || "",
|
|
3822
|
+
certNo: (m == null ? void 0 : m.证书编号) || "",
|
|
3823
3823
|
fileType: i ? "pdf" : "image",
|
|
3824
3824
|
sourceUrl: i ? R : "",
|
|
3825
|
-
images: Array.isArray(
|
|
3825
|
+
images: Array.isArray(m == null ? void 0 : m.图片信息) ? m.图片信息.map((me) => ({ name: (me == null ? void 0 : me.name) || "", url: (me == null ? void 0 : me.url) || "" })).filter((me) => me.url) : []
|
|
3826
3826
|
}, le = (me) => {
|
|
3827
3827
|
var pe, we, Ce, ve;
|
|
3828
|
-
for (const [be, de] of
|
|
3828
|
+
for (const [be, de] of t.entries())
|
|
3829
3829
|
Object.prototype.hasOwnProperty.call(f, de) && de !== "_isOCRRow" && de !== "_ocrTableId" && de !== "id" && (me[de] = f[de]);
|
|
3830
3830
|
if (c) {
|
|
3831
|
-
const be = Array.isArray((we = (pe = a == null ? void 0 : a.result) == null ? void 0 : pe[
|
|
3831
|
+
const be = Array.isArray((we = (pe = a == null ? void 0 : a.result) == null ? void 0 : pe[o]) == null ? void 0 : we.图片信息) ? a.result[o].图片信息 : [];
|
|
3832
3832
|
me[c] = be.map((de) => ({
|
|
3833
3833
|
url: (de == null ? void 0 : de.url) || "",
|
|
3834
3834
|
name: (de == null ? void 0 : de.name) || "",
|
|
@@ -3837,10 +3837,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
const U = Fa.value.find((be) => be.id === me.id);
|
|
3839
3839
|
if (U) {
|
|
3840
|
-
for (const [be, de] of
|
|
3840
|
+
for (const [be, de] of t.entries())
|
|
3841
3841
|
Object.prototype.hasOwnProperty.call(f, de) && de !== "_isOCRRow" && de !== "_ocrTableId" && de !== "id" && (U[de] = f[de]);
|
|
3842
3842
|
if (c) {
|
|
3843
|
-
const be = Array.isArray((ve = (Ce = a == null ? void 0 : a.result) == null ? void 0 : Ce[
|
|
3843
|
+
const be = Array.isArray((ve = (Ce = a == null ? void 0 : a.result) == null ? void 0 : Ce[o]) == null ? void 0 : ve.图片信息) ? a.result[o].图片信息 : [];
|
|
3844
3844
|
U[c] = be.map((de) => ({
|
|
3845
3845
|
url: (de == null ? void 0 : de.url) || "",
|
|
3846
3846
|
name: (de == null ? void 0 : de.name) || "",
|
|
@@ -3866,7 +3866,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3866
3866
|
return pe && pe === oe;
|
|
3867
3867
|
});
|
|
3868
3868
|
w.push({
|
|
3869
|
-
idx:
|
|
3869
|
+
idx: o,
|
|
3870
3870
|
ocrRow: f,
|
|
3871
3871
|
versionItem: D,
|
|
3872
3872
|
ocrNo: oe,
|
|
@@ -3876,8 +3876,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3876
3876
|
}
|
|
3877
3877
|
Al(n == null ? void 0 : n.index, f.id, D), N.push(f), b++;
|
|
3878
3878
|
}), A.length > 0 && (V.value = [...V.value || []]), N.length > 0 && (V.value = [...V.value || [], ...N], Fa.value = [...Fa.value || [], ...N], N.forEach((v) => {
|
|
3879
|
-
var
|
|
3880
|
-
return (f = (
|
|
3879
|
+
var o, f;
|
|
3880
|
+
return (f = (o = ma.value) == null ? void 0 : o.set) == null ? void 0 : f.call(o, v.id, v);
|
|
3881
3881
|
})), Tl.value = V.value, (w || []).length > 0) {
|
|
3882
3882
|
or.value = (w || []).map((v) => ({
|
|
3883
3883
|
...v,
|
|
@@ -3902,11 +3902,11 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3902
3902
|
ocrRows: N,
|
|
3903
3903
|
relatedContents: n == null ? void 0 : n.related,
|
|
3904
3904
|
uploadedFiles: (Array.isArray(a == null ? void 0 : a.result) ? a.result : []).map(
|
|
3905
|
-
(v) => (Array.isArray(v == null ? void 0 : v.图片信息) ? v.图片信息 : []).map((
|
|
3906
|
-
url: (
|
|
3907
|
-
name: (
|
|
3908
|
-
fileName: (
|
|
3909
|
-
})).filter((
|
|
3905
|
+
(v) => (Array.isArray(v == null ? void 0 : v.图片信息) ? v.图片信息 : []).map((o) => ({
|
|
3906
|
+
url: (o == null ? void 0 : o.url) || "",
|
|
3907
|
+
name: (o == null ? void 0 : o.name) || "",
|
|
3908
|
+
fileName: (o == null ? void 0 : o.name) || ""
|
|
3909
|
+
})).filter((o) => o.url)
|
|
3910
3910
|
),
|
|
3911
3911
|
ocrResult: a,
|
|
3912
3912
|
matchedCount: p,
|
|
@@ -3927,7 +3927,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3927
3927
|
const a = Number(e);
|
|
3928
3928
|
return a >= 0.9 ? "#67c23a" : a >= 0.7 ? "#e6a23c" : "#f56c6c";
|
|
3929
3929
|
}, vn = (e) => {
|
|
3930
|
-
var l, r,
|
|
3930
|
+
var l, r, t, s;
|
|
3931
3931
|
if (hl.value === e) {
|
|
3932
3932
|
hl.value = null, yl.value = !1, Il.value = "";
|
|
3933
3933
|
return;
|
|
@@ -3937,7 +3937,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3937
3937
|
if (a && Array.isArray(a._ocrImages) && a._ocrImages.length > 0) {
|
|
3938
3938
|
zl.value = a._ocrImages.map((u) => ({ name: (u == null ? void 0 : u.name) || "", url: (u == null ? void 0 : u.url) || "" })).filter((u) => u.name || u.url);
|
|
3939
3939
|
const c = a.__ocrFieldMeta || {}, d = (r = Object.values(c)) == null ? void 0 : r.find((u) => u == null ? void 0 : u.imageName);
|
|
3940
|
-
Cr.value = (d == null ? void 0 : d.imageName) || ((s = (
|
|
3940
|
+
Cr.value = (d == null ? void 0 : d.imageName) || ((s = (t = zl.value) == null ? void 0 : t[0]) == null ? void 0 : s.name) || "", yl.value = zl.value.length > 0;
|
|
3941
3941
|
} else
|
|
3942
3942
|
zl.value = [], yl.value = !1, Cr.value = "";
|
|
3943
3943
|
}, St = () => {
|
|
@@ -3967,7 +3967,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3967
3967
|
const l = e.uid || e.name;
|
|
3968
3968
|
rr.value.set(l, a), (a === "completed" || a === "uploaded") && Va(e, 100);
|
|
3969
3969
|
}, Tt = () => {
|
|
3970
|
-
|
|
3970
|
+
La(() => {
|
|
3971
3971
|
const e = document.querySelector('.ocr-upload-input input[type="file"]');
|
|
3972
3972
|
if (e)
|
|
3973
3973
|
e.value = "", e.click();
|
|
@@ -3975,10 +3975,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3975
3975
|
const a = document.createElement("input");
|
|
3976
3976
|
a.type = "file", a.multiple = !0, a.accept = "image/*,application/pdf", a.style.display = "none", a.onchange = async (l) => {
|
|
3977
3977
|
const r = Array.from(l.target.files || []);
|
|
3978
|
-
for (const
|
|
3978
|
+
for (const t of r) {
|
|
3979
3979
|
const s = {
|
|
3980
|
-
name:
|
|
3981
|
-
raw:
|
|
3980
|
+
name: t.name,
|
|
3981
|
+
raw: t,
|
|
3982
3982
|
uid: Date.now() + Math.random()
|
|
3983
3983
|
};
|
|
3984
3984
|
qe.value.push(s), await dn(s);
|
|
@@ -3992,7 +3992,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
3992
3992
|
}, xt = () => {
|
|
3993
3993
|
ga.value === 1 ? qe.value.length > 0 && !za.value && cn() : ga.value === 2 && (pn(), ga.value = 3);
|
|
3994
3994
|
}, Nt = async (e) => {
|
|
3995
|
-
var
|
|
3995
|
+
var t, s;
|
|
3996
3996
|
const { row: a } = e || {}, l = a == null ? void 0 : a.id;
|
|
3997
3997
|
if (!l) {
|
|
3998
3998
|
Le.warning("暂无可预览数据");
|
|
@@ -4007,7 +4007,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4007
4007
|
}
|
|
4008
4008
|
}
|
|
4009
4009
|
if (!r || r.length === 0) {
|
|
4010
|
-
const c = (
|
|
4010
|
+
const c = (t = al(C.value) || []) == null ? void 0 : t.filter((u) => (u == null ? void 0 : u.type) !== "operate" && (u == null ? void 0 : u.label) !== "操作" && (u == null ? void 0 : u.prop) !== "operate"), d = (s = c == null ? void 0 : c.find((u) => (u == null ? void 0 : u.label) === "证书附件")) == null ? void 0 : s.prop;
|
|
4011
4011
|
if (d && a[d]) {
|
|
4012
4012
|
const u = a[d];
|
|
4013
4013
|
let p = [], b = "", N = !1;
|
|
@@ -4048,15 +4048,15 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4048
4048
|
}, Dt = (e) => {
|
|
4049
4049
|
qe.value = qe.value.filter((a, l) => l !== e);
|
|
4050
4050
|
}, Dr = async (e, a, l) => {
|
|
4051
|
-
var r,
|
|
4051
|
+
var r, t, s, c, d, u, p, b, N, A, I, F, Z, g, w, H;
|
|
4052
4052
|
if (rl.value = "", er.value = !0, Zl.value = !0, ge("onButtonClick", e, a), te.value = [], e === "删除")
|
|
4053
4053
|
as.confirm("是否确认删除", "温馨提示", {
|
|
4054
4054
|
confirmButtonText: "确认",
|
|
4055
4055
|
cancelButtonText: "取消",
|
|
4056
4056
|
type: "warning"
|
|
4057
4057
|
}).then(() => {
|
|
4058
|
-
var
|
|
4059
|
-
(
|
|
4058
|
+
var O, v;
|
|
4059
|
+
(O = V.value) != null && O.find((o) => (o == null ? void 0 : o.id) === (a == null ? void 0 : a.id)) ? V.value = (v = Te(V.value)) == null ? void 0 : v.filter((o) => (o == null ? void 0 : o.id) !== (a == null ? void 0 : a.id)) : V.value = un(Te(V.value), a), bu(Tl.value, wr.value, a == null ? void 0 : a.id), la.setTableLoading(n == null ? void 0 : n.index), ge("change", {
|
|
4060
4060
|
content: V.value,
|
|
4061
4061
|
fixContent: [a],
|
|
4062
4062
|
index: n == null ? void 0 : n.index,
|
|
@@ -4075,9 +4075,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4075
4075
|
type: "warning"
|
|
4076
4076
|
}).then(
|
|
4077
4077
|
() => {
|
|
4078
|
-
var v,
|
|
4079
|
-
const
|
|
4080
|
-
V.value = (
|
|
4078
|
+
var v, o;
|
|
4079
|
+
const O = (v = Qa.value) == null ? void 0 : v.map((f) => f.id);
|
|
4080
|
+
V.value = (o = Te(V.value)) == null ? void 0 : o.filter((f) => !(O != null && O.includes(f.id))), la.setTableLoading(n == null ? void 0 : n.index), ge("change", {
|
|
4081
4081
|
content: V.value,
|
|
4082
4082
|
singleContent: null,
|
|
4083
4083
|
selectItems: Qa.value,
|
|
@@ -4089,42 +4089,42 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4089
4089
|
}
|
|
4090
4090
|
);
|
|
4091
4091
|
} else if (e === "复制新增") {
|
|
4092
|
-
|
|
4093
|
-
const
|
|
4094
|
-
|
|
4092
|
+
$a.value = "复制新增", Te(a);
|
|
4093
|
+
const O = (t = C.value) == null ? void 0 : t.find((v) => v == null ? void 0 : v.isMainKey);
|
|
4094
|
+
O || ((s = C.value) == null || s[0]), Ta.value = a, Yl(!0);
|
|
4095
4095
|
} else if (e === "新增")
|
|
4096
|
-
|
|
4096
|
+
$a.value = "新增", ql(""), Xa.value = !0;
|
|
4097
4097
|
else if (e === "编辑")
|
|
4098
|
-
|
|
4098
|
+
$a.value = "编辑", ql(a), Xa.value = !0;
|
|
4099
4099
|
else if (e === "查看")
|
|
4100
|
-
|
|
4100
|
+
$a.value = "查看", ql(a), er.value = !1, Zl.value = !1, Xa.value = !0;
|
|
4101
4101
|
else if (e === "查看三维模型") {
|
|
4102
|
-
const
|
|
4103
|
-
for (let
|
|
4104
|
-
|
|
4105
|
-
let v = (c = Object.values(
|
|
4102
|
+
const O = {};
|
|
4103
|
+
for (let o in a)
|
|
4104
|
+
o !== "id" && (O[o] = a[o]);
|
|
4105
|
+
let v = (c = Object.values(O)) == null ? void 0 : c[1];
|
|
4106
4106
|
fs.setTableShowThree(v);
|
|
4107
4107
|
} else if (e === "切换视图")
|
|
4108
4108
|
zt();
|
|
4109
4109
|
else if (((d = l == null ? void 0 : l.extra) == null ? void 0 : d.type) === "modelExample")
|
|
4110
|
-
|
|
4110
|
+
$a.value = e, Vl.value = !0;
|
|
4111
4111
|
else if (e === "新建") {
|
|
4112
|
-
let
|
|
4113
|
-
for (let R in
|
|
4112
|
+
let O = Cl.value, v = [];
|
|
4113
|
+
for (let R in O)
|
|
4114
4114
|
R != null && R.includes(`loading${((u = _a.value) == null ? void 0 : u.account) || ((p = _a.value) == null ? void 0 : p.账号)}`) && (v = [...v, ...R]);
|
|
4115
|
-
let
|
|
4116
|
-
for (let R in
|
|
4117
|
-
R != null && R.includes(`updateLoading${((b = _a.value) == null ? void 0 : b.account) || ((N = _a.value) == null ? void 0 : N.账号)}`) && (
|
|
4115
|
+
let o = [];
|
|
4116
|
+
for (let R in O)
|
|
4117
|
+
R != null && R.includes(`updateLoading${((b = _a.value) == null ? void 0 : b.account) || ((N = _a.value) == null ? void 0 : N.账号)}`) && (o = [...o, ...R]);
|
|
4118
4118
|
let f = v == null ? void 0 : v.map((R) => R == null ? void 0 : R.id);
|
|
4119
|
-
const
|
|
4120
|
-
f = [...Te(f), ...
|
|
4119
|
+
const m = o == null ? void 0 : o.map((R) => R == null ? void 0 : R.id);
|
|
4120
|
+
f = [...Te(f), ...m], (f == null ? void 0 : f.length) > 0 && (f != null && f.every((R) => R !== null && R)) && await lo({
|
|
4121
4121
|
ids: f
|
|
4122
4122
|
});
|
|
4123
|
-
const
|
|
4124
|
-
await Ut(!1,
|
|
4123
|
+
const _ = (A = fa.value) == null ? void 0 : A.find((R) => (R == null ? void 0 : R.label) === "新建");
|
|
4124
|
+
await Ut(!1, _);
|
|
4125
4125
|
} else if (e === "修改模板") {
|
|
4126
|
-
let
|
|
4127
|
-
la.setRouteToChildPath(
|
|
4126
|
+
let O = Te(xe).value;
|
|
4127
|
+
la.setRouteToChildPath(O), Ze.setActiveMenuPath(O + ce);
|
|
4128
4128
|
} else if (e === "执行")
|
|
4129
4129
|
vt(e, a);
|
|
4130
4130
|
else if (e != null && e.includes("导出")) {
|
|
@@ -4132,44 +4132,46 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4132
4132
|
return Le.warning(`请先勾选${e}的数据`);
|
|
4133
4133
|
if (e === "导出全部" && ((F = V.value) == null ? void 0 : F.length) === 0)
|
|
4134
4134
|
return Le.warning("暂无数据导出");
|
|
4135
|
-
let
|
|
4136
|
-
v == null || v.forEach((
|
|
4137
|
-
|
|
4138
|
-
}),
|
|
4139
|
-
序号:
|
|
4140
|
-
...
|
|
4141
|
-
}))
|
|
4135
|
+
let O = ["序号", ...(g = (Z = C.value) == null ? void 0 : Z.map((f) => f == null ? void 0 : f.label)) == null ? void 0 : g.filter((f) => f !== "操作")], v = e === "导出全部" ? V.value : Qa.value;
|
|
4136
|
+
v == null || v.forEach((f) => {
|
|
4137
|
+
f == null || delete f.id, f == null || delete f.sort;
|
|
4138
|
+
}), O = ["序号", ...O], v = v == null ? void 0 : v.map((f, m) => ({
|
|
4139
|
+
序号: m + 1,
|
|
4140
|
+
...f
|
|
4141
|
+
}));
|
|
4142
|
+
let o = (n == null ? void 0 : n.compName) === "" ? "表格信息" : n == null ? void 0 : n.compName;
|
|
4143
|
+
Is(v, o, O, o);
|
|
4142
4144
|
} else if (e === "OCR识别")
|
|
4143
4145
|
mr.value = !0, qe.value = [], ga.value = 1, rr.value.clear(), nr.value.clear(), Ka.value = 0;
|
|
4144
4146
|
else if (e === "迁移")
|
|
4145
|
-
|
|
4147
|
+
na.selectRow = a, na.show = !0;
|
|
4146
4148
|
else if (((w = l == null ? void 0 : l.extra) == null ? void 0 : w.type) === "methodButton") {
|
|
4147
|
-
let
|
|
4148
|
-
a === "" && (
|
|
4149
|
-
let v = await Eo(
|
|
4150
|
-
l != null && l.index ? V.value = (H = V.value) == null ? void 0 : H.map((
|
|
4149
|
+
let O = a;
|
|
4150
|
+
a === "" && (O = Te(V.value));
|
|
4151
|
+
let v = await Eo(O, C == null ? void 0 : C.value, e, n == null ? void 0 : n.index);
|
|
4152
|
+
l != null && l.index ? V.value = (H = V.value) == null ? void 0 : H.map((o, f) => (f === (l == null ? void 0 : l.index) && (o = v == null ? void 0 : v[0]), o)) : V.value = v;
|
|
4151
4153
|
}
|
|
4152
4154
|
}, $t = async (e, a) => {
|
|
4153
|
-
var l, r,
|
|
4155
|
+
var l, r, t, s, c, d, u, p, b, N, A, I, F, Z, g, w, H, O, v, o;
|
|
4154
4156
|
try {
|
|
4155
|
-
let f,
|
|
4156
|
-
const
|
|
4157
|
+
let f, m;
|
|
4158
|
+
const _ = (l = Cl.value[xe.value + ce]) == null ? void 0 : l.filter((J) => {
|
|
4157
4159
|
var ie;
|
|
4158
4160
|
return ((ie = J == null ? void 0 : J.key) == null ? void 0 : ie.type) === "structureMethod";
|
|
4159
4161
|
}), R = (r = Cl.value[xe.value + ce]) == null ? void 0 : r.filter((J) => {
|
|
4160
4162
|
var ie;
|
|
4161
4163
|
return ((ie = J == null ? void 0 : J.key) == null ? void 0 : ie.type) === "structure";
|
|
4162
|
-
}), X =
|
|
4164
|
+
}), X = _ == null ? void 0 : _.find((J) => {
|
|
4163
4165
|
var ie, ue;
|
|
4164
4166
|
return ((ue = (ie = J == null ? void 0 : J.value) == null ? void 0 : ie.pageData) == null ? void 0 : ue.method) === "保存";
|
|
4165
4167
|
});
|
|
4166
4168
|
if (!X) return;
|
|
4167
|
-
const i = (d = (c = Cl.value[(s = (
|
|
4169
|
+
const i = (d = (c = Cl.value[(s = (t = X == null ? void 0 : X.value) == null ? void 0 : t.pageData) == null ? void 0 : s.path]) == null ? void 0 : c.filter((J) => {
|
|
4168
4170
|
var ie;
|
|
4169
4171
|
return ((ie = J == null ? void 0 : J.key) == null ? void 0 : ie.type) === "data";
|
|
4170
4172
|
})) == null ? void 0 : d.find((J) => {
|
|
4171
|
-
var ie, ue,
|
|
4172
|
-
return ((ue = (ie = J == null ? void 0 : J.value) == null ? void 0 : ie.tableData) == null ? void 0 : ue.算法名称) === ((ye = (
|
|
4173
|
+
var ie, ue, Be, ye;
|
|
4174
|
+
return ((ue = (ie = J == null ? void 0 : J.value) == null ? void 0 : ie.tableData) == null ? void 0 : ue.算法名称) === ((ye = (Be = X == null ? void 0 : X.value) == null ? void 0 : Be.pageData) == null ? void 0 : ye.method);
|
|
4173
4175
|
});
|
|
4174
4176
|
if (!i) return;
|
|
4175
4177
|
const D = {
|
|
@@ -4211,9 +4213,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4211
4213
|
"Content-Type": "application/json"
|
|
4212
4214
|
}
|
|
4213
4215
|
});
|
|
4214
|
-
return ((w = oe == null ? void 0 : oe.data) == null ? void 0 : w.code) === 200 && (f = (
|
|
4216
|
+
return ((w = oe == null ? void 0 : oe.data) == null ? void 0 : w.code) === 200 && (f = (O = (H = oe == null ? void 0 : oe.data) == null ? void 0 : H.result) == null ? void 0 : O.latestReportCode, m = (o = (v = oe == null ? void 0 : oe.data) == null ? void 0 : v.result) == null ? void 0 : o.status), {
|
|
4215
4217
|
newMainKeyValue: f,
|
|
4216
|
-
newStatus:
|
|
4218
|
+
newStatus: m
|
|
4217
4219
|
};
|
|
4218
4220
|
} catch (f) {
|
|
4219
4221
|
throw Le.error(f), new Error(f);
|
|
@@ -4225,7 +4227,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4225
4227
|
M(["系统自动生成信息", "审批意见"]);
|
|
4226
4228
|
const Et = async (e, a, l) => {
|
|
4227
4229
|
var u, p;
|
|
4228
|
-
let r = e == null ? void 0 : e[a == null ? void 0 : a.prop],
|
|
4230
|
+
let r = e == null ? void 0 : e[a == null ? void 0 : a.prop], t = 1, s, c;
|
|
4229
4231
|
const d = Te(xe).value + ce + r;
|
|
4230
4232
|
if (d) {
|
|
4231
4233
|
hn.value = "", s = (u = Cl.value[d]) == null ? void 0 : u.filter((A) => {
|
|
@@ -4245,16 +4247,16 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4245
4247
|
}
|
|
4246
4248
|
if (V.value.some((b) => (b == null ? void 0 : b[a == null ? void 0 : a.prop]) === r)) {
|
|
4247
4249
|
const b = r;
|
|
4248
|
-
for (; V.value.some((N) => (N == null ? void 0 : N[a == null ? void 0 : a.prop]) === `${b}(${
|
|
4249
|
-
|
|
4250
|
-
r = `${b}(${
|
|
4250
|
+
for (; V.value.some((N) => (N == null ? void 0 : N[a == null ? void 0 : a.prop]) === `${b}(${t})`); )
|
|
4251
|
+
t++;
|
|
4252
|
+
r = `${b}(${t})`;
|
|
4251
4253
|
}
|
|
4252
4254
|
return r;
|
|
4253
4255
|
}, Ut = async (e, a, l) => {
|
|
4254
4256
|
var s, c, d, u;
|
|
4255
|
-
let r,
|
|
4256
|
-
if (await Et(l == null ? void 0 : l.data, l == null ? void 0 : l.firstCol), r = Te(xe).value + ce,
|
|
4257
|
-
const p = (u = (d = Cl.value[
|
|
4257
|
+
let r, t;
|
|
4258
|
+
if (await Et(l == null ? void 0 : l.data, l == null ? void 0 : l.firstCol), r = Te(xe).value + ce, t = Te(r) + `loading${((s = _a.value) == null ? void 0 : s.account) || ((c = _a.value) == null ? void 0 : c.账号)}`, a) {
|
|
4259
|
+
const p = (u = (d = Cl.value[t]) == null ? void 0 : d.filter((b) => {
|
|
4258
4260
|
var N;
|
|
4259
4261
|
return ((N = b == null ? void 0 : b.key) == null ? void 0 : N.parentTable) === "";
|
|
4260
4262
|
})) == null ? void 0 : u.map((b) => {
|
|
@@ -4264,15 +4266,15 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4264
4266
|
...(N = b == null ? void 0 : b.value) == null ? void 0 : N.pageData
|
|
4265
4267
|
};
|
|
4266
4268
|
});
|
|
4267
|
-
(p == null ? void 0 : p.length) > 0 ? (la.setRouteToChildPath(Te(xe).value), Ze.setActiveMenuPath(
|
|
4269
|
+
(p == null ? void 0 : p.length) > 0 ? (la.setRouteToChildPath(Te(xe).value), Ze.setActiveMenuPath(t)) : (await Ao(r, t, null, null, null), la.setRouteToChildPath(Te(xe).value), Ze.setActiveMenuPath(t));
|
|
4268
4270
|
} else
|
|
4269
|
-
la.setRouteToChildPath(Te(xe).value), Ze.setActiveMenuPath(
|
|
4271
|
+
la.setRouteToChildPath(Te(xe).value), Ze.setActiveMenuPath(t);
|
|
4270
4272
|
}, Pt = () => {
|
|
4271
|
-
|
|
4273
|
+
ua.value = !1, Fl.value = [], ta.value = !1;
|
|
4272
4274
|
}, ql = (e) => {
|
|
4273
|
-
var s, c, d, u, p, b, N, A, I, F, Z, g, w, H,
|
|
4275
|
+
var s, c, d, u, p, b, N, A, I, F, Z, g, w, H, O, v, o, f, m, _, R, X;
|
|
4274
4276
|
const a = [];
|
|
4275
|
-
|
|
4277
|
+
ra.value = Te(C.value), (c = Ll((s = Te(C.value)) == null ? void 0 : s.filter((i) => (i == null ? void 0 : i.label) !== "操作"))) == null || c.forEach((i, D) => {
|
|
4276
4278
|
var le, ee, oe;
|
|
4277
4279
|
i != null && i.formType && ((le = i == null ? void 0 : i.formType) == null ? void 0 : le.toUpperCase()) === "SELECT" || i != null && i.menuId ? a.push({
|
|
4278
4280
|
label: (ee = i == null ? void 0 : i.prop) != null && ee.includes(".") ? i == null ? void 0 : i.prop : (i == null ? void 0 : i.label) ?? (i == null ? void 0 : i.prop) ?? "",
|
|
@@ -4319,9 +4321,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4319
4321
|
var le;
|
|
4320
4322
|
let D = (i == null ? void 0 : i.prop) || ((le = l == null ? void 0 : l.find((ee) => (ee == null ? void 0 : ee.label) === (i == null ? void 0 : i.label))) == null ? void 0 : le.prop);
|
|
4321
4323
|
return D && (i.value = e[D]), i;
|
|
4322
|
-
})), aa.value = Ia.value && ((b = Ia.value) == null ? void 0 : b.length) > 0 ?
|
|
4323
|
-
let r = [],
|
|
4324
|
-
if ((
|
|
4324
|
+
})), aa.value = Ia.value && ((b = Ia.value) == null ? void 0 : b.length) > 0 ? So(Ia.value) : a;
|
|
4325
|
+
let r = [], t = (N = n.itemData) == null ? void 0 : N.filter((i) => (i == null ? void 0 : i.key) === "filterAllType");
|
|
4326
|
+
if ((t == null ? void 0 : t.length) > 0 && (r = (t == null ? void 0 : t.map((D) => D == null ? void 0 : D.value)).flat()), (r == null ? void 0 : r.length) > 0) {
|
|
4325
4327
|
let i = (I = r == null ? void 0 : r.filter((ee) => {
|
|
4326
4328
|
var oe;
|
|
4327
4329
|
return (oe = ee == null ? void 0 : ee.content) == null ? void 0 : oe.includes("@Type");
|
|
@@ -4332,14 +4334,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4332
4334
|
if (i != null && i.content) {
|
|
4333
4335
|
let ee = (g = (Z = (F = i == null ? void 0 : i.content) == null ? void 0 : F.replace(":", Ge)) == null ? void 0 : Z.split(Ge)) == null ? void 0 : g[1];
|
|
4334
4336
|
if (((w = ee == null ? void 0 : ee.trim()) == null ? void 0 : w.toUpperCase()) === "MANUAL") {
|
|
4335
|
-
let oe = (f = (
|
|
4336
|
-
aa.value = (
|
|
4337
|
-
var ue,
|
|
4338
|
-
return (ue = J == null ? void 0 : J.optionUrl) != null && ue.menuId && (J.type = "Select", (
|
|
4337
|
+
let oe = (f = (o = (H = n.itemData) == null ? void 0 : H.filter((J) => (J == null ? void 0 : J.key) === "contentTableId")) == null ? void 0 : o[((v = (O = n.itemData) == null ? void 0 : O.filter((J) => (J == null ? void 0 : J.key) === "contentTableId")) == null ? void 0 : v.length) - 1]) == null ? void 0 : f.contents;
|
|
4338
|
+
aa.value = (m = aa.value) == null ? void 0 : m.map((J, ie) => {
|
|
4339
|
+
var ue, Be;
|
|
4340
|
+
return (ue = J == null ? void 0 : J.optionUrl) != null && ue.menuId && (J.type = "Select", (Be = J == null ? void 0 : J.optionUrl) != null && Be.menuId && (J.optionUrl.menuId = J.optionUrl.menuId ?? oe, J.optionUrl.menuFilter = r, $a.value === "新增" && (J.optionUrl.multiple = !0, J.optionUrl.multipleLimit = 5))), J;
|
|
4339
4341
|
});
|
|
4340
4342
|
}
|
|
4341
4343
|
}
|
|
4342
|
-
let D = (
|
|
4344
|
+
let D = (_ = aa.value) == null ? void 0 : _.filter((ee) => {
|
|
4343
4345
|
var oe, J;
|
|
4344
4346
|
return ((oe = ee == null ? void 0 : ee.optionUrl) == null ? void 0 : oe.menuId) && ((J = ee == null ? void 0 : ee.optionUrl) == null ? void 0 : J.menuId) !== "";
|
|
4345
4347
|
}), le;
|
|
@@ -4348,30 +4350,30 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4348
4350
|
if (le !== void 0) return;
|
|
4349
4351
|
let oe = (J = ee == null ? void 0 : ee.optionUrl) == null ? void 0 : J.menuId;
|
|
4350
4352
|
((ie = D == null ? void 0 : D.filter((ue) => {
|
|
4351
|
-
var
|
|
4352
|
-
return ((
|
|
4353
|
+
var Be;
|
|
4354
|
+
return ((Be = ue == null ? void 0 : ue.optionUrl) == null ? void 0 : Be.menuId) === oe;
|
|
4353
4355
|
})) == null ? void 0 : ie.length) > 1 && (le = oe);
|
|
4354
4356
|
}), D = D == null ? void 0 : D.filter((ee) => {
|
|
4355
4357
|
var oe;
|
|
4356
4358
|
return ((oe = ee == null ? void 0 : ee.optionUrl) == null ? void 0 : oe.menuId) === le;
|
|
4357
4359
|
}), (D == null ? void 0 : D.length) > 1) {
|
|
4358
4360
|
let ee = D == null ? void 0 : D.map((ue) => ue == null ? void 0 : ue.prop), oe = D == null ? void 0 : D.map((ue) => ue == null ? void 0 : ue.label), J = D == null ? void 0 : D.map((ue) => ue == null ? void 0 : ue.value), ie = (R = Te(D)) == null ? void 0 : R[0];
|
|
4359
|
-
ie.label = oe == null ? void 0 : oe.join("·"), ie.value = J == null ? void 0 : J.join(" "), ie.value.trim() === "" && (ie.value = ""), ie.prop = ee == null ? void 0 : ee.join("·"), ie.usingType = "parent", aa.value.unshift(ie), aa.value = (X = aa.value) == null ? void 0 : X.map((ue) => (ee != null && ee.find((
|
|
4361
|
+
ie.label = oe == null ? void 0 : oe.join("·"), ie.value = J == null ? void 0 : J.join(" "), ie.value.trim() === "" && (ie.value = ""), ie.prop = ee == null ? void 0 : ee.join("·"), ie.usingType = "parent", aa.value.unshift(ie), aa.value = (X = aa.value) == null ? void 0 : X.map((ue) => (ee != null && ee.find((Be) => Be === (ue == null ? void 0 : ue.prop)) && (ue.isFormColHidden = !0), ue));
|
|
4360
4362
|
}
|
|
4361
4363
|
}
|
|
4362
4364
|
}, Rt = () => {
|
|
4363
4365
|
var a;
|
|
4364
4366
|
const e = (a = y.value) == null ? void 0 : a.$el;
|
|
4365
|
-
e &&
|
|
4367
|
+
e && xo.create(e, {
|
|
4366
4368
|
animation: 150,
|
|
4367
4369
|
handle: ".col-drag-icon",
|
|
4368
4370
|
ghostClass: "sortable-ghost",
|
|
4369
4371
|
onEnd: (l) => {
|
|
4370
4372
|
var c;
|
|
4371
|
-
const { oldIndex: r, newIndex:
|
|
4372
|
-
if (r ===
|
|
4373
|
+
const { oldIndex: r, newIndex: t } = l;
|
|
4374
|
+
if (r === t) return;
|
|
4373
4375
|
const s = Wl.value.splice(r, 1)[0];
|
|
4374
|
-
Wl.value.splice(
|
|
4376
|
+
Wl.value.splice(t, 0, s), C.value = (c = C.value) == null ? void 0 : c.slice().sort((d, u) => {
|
|
4375
4377
|
if (d.label === "操作") return 1;
|
|
4376
4378
|
if (u.label === "操作") return -1;
|
|
4377
4379
|
const p = Wl.value.findIndex((N) => N.label === d.label), b = Wl.value.findIndex((N) => N.label === u.label);
|
|
@@ -4384,7 +4386,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4384
4386
|
br.value = window.innerWidth - 240 * 2;
|
|
4385
4387
|
});
|
|
4386
4388
|
const Lt = () => {
|
|
4387
|
-
|
|
4389
|
+
La(() => {
|
|
4388
4390
|
Rt();
|
|
4389
4391
|
});
|
|
4390
4392
|
}, $r = (e, a) => {
|
|
@@ -4394,84 +4396,84 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4394
4396
|
currentSelectContents: void 0
|
|
4395
4397
|
};
|
|
4396
4398
|
let l;
|
|
4397
|
-
return e.children = (r = e.children) == null ? void 0 : r.map((
|
|
4399
|
+
return e.children = (r = e.children) == null ? void 0 : r.map((t) => {
|
|
4398
4400
|
var s, c;
|
|
4399
|
-
if ((
|
|
4401
|
+
if ((t == null ? void 0 : t.id) === rl.value) {
|
|
4400
4402
|
let d = {};
|
|
4401
|
-
for (let u in
|
|
4403
|
+
for (let u in t) {
|
|
4402
4404
|
let p = (s = a == null ? void 0 : a.find((b) => (b == null ? void 0 : b.prop) === u)) == null ? void 0 : s.label;
|
|
4403
|
-
p ? d[u] = (c = Ta.value) == null ? void 0 : c[p] : d[u] =
|
|
4405
|
+
p ? d[u] = (c = Ta.value) == null ? void 0 : c[p] : d[u] = t[u];
|
|
4404
4406
|
}
|
|
4405
|
-
|
|
4407
|
+
t = Object.assign(d, Ta.value), l = t;
|
|
4406
4408
|
} else {
|
|
4407
|
-
let d = $r(
|
|
4408
|
-
|
|
4409
|
+
let d = $r(t, a);
|
|
4410
|
+
t = d == null ? void 0 : d.contents, l = d == null ? void 0 : d.currentSelectContents;
|
|
4409
4411
|
}
|
|
4410
|
-
return
|
|
4412
|
+
return t;
|
|
4411
4413
|
}), {
|
|
4412
4414
|
contents: e,
|
|
4413
4415
|
currentSelectContents: l
|
|
4414
4416
|
};
|
|
4415
4417
|
}, yn = (e, a) => {
|
|
4416
4418
|
let l, r;
|
|
4417
|
-
return e != null && e.find((
|
|
4419
|
+
return e != null && e.find((t) => (t == null ? void 0 : t.id) === rl.value) ? l = e == null ? void 0 : e.map((t) => {
|
|
4418
4420
|
var s, c;
|
|
4419
|
-
if ((
|
|
4421
|
+
if ((t == null ? void 0 : t.id) === rl.value) {
|
|
4420
4422
|
let d = {};
|
|
4421
|
-
for (let u in
|
|
4423
|
+
for (let u in t) {
|
|
4422
4424
|
let p = (s = a == null ? void 0 : a.find((b) => (b == null ? void 0 : b.prop) === u)) == null ? void 0 : s.label;
|
|
4423
|
-
p ? d[u] = (c = Ta.value) == null ? void 0 : c[p] : d[u] =
|
|
4425
|
+
p ? d[u] = (c = Ta.value) == null ? void 0 : c[p] : d[u] = t[u];
|
|
4424
4426
|
}
|
|
4425
|
-
|
|
4427
|
+
t = Object.assign(d, Ta.value), r = t;
|
|
4426
4428
|
}
|
|
4427
|
-
return
|
|
4428
|
-
}) : l = e == null ? void 0 : e.map((
|
|
4429
|
+
return t;
|
|
4430
|
+
}) : l = e == null ? void 0 : e.map((t) => {
|
|
4429
4431
|
var s, c, d, u;
|
|
4430
|
-
if ((
|
|
4432
|
+
if ((t == null ? void 0 : t.id) === rl.value) {
|
|
4431
4433
|
let p = {};
|
|
4432
|
-
for (let b in
|
|
4434
|
+
for (let b in t) {
|
|
4433
4435
|
let N = (s = a == null ? void 0 : a.find((A) => (A == null ? void 0 : A.prop) === b)) == null ? void 0 : s.label;
|
|
4434
|
-
N ? p[b] = (c = Ta.value) == null ? void 0 : c[N] : p[b] =
|
|
4436
|
+
N ? p[b] = (c = Ta.value) == null ? void 0 : c[N] : p[b] = t[b];
|
|
4435
4437
|
}
|
|
4436
|
-
|
|
4438
|
+
t = Object.assign(p, Ta.value), r = t;
|
|
4437
4439
|
} else
|
|
4438
|
-
|
|
4439
|
-
return
|
|
4440
|
+
t = (d = $r(t, a)) == null ? void 0 : d.contents, r = (u = $r(t, a)) == null ? void 0 : u.currentSelectContents;
|
|
4441
|
+
return t;
|
|
4440
4442
|
}), {
|
|
4441
4443
|
newContents: l,
|
|
4442
4444
|
currentSelectContents: r
|
|
4443
4445
|
};
|
|
4444
4446
|
}, gn = (e, a, l) => {
|
|
4445
|
-
var r,
|
|
4446
|
-
return e[a == null ? void 0 : a.prop] = l, typeof e.id == "number" && (e.id = (r = e.id) == null ? void 0 : r.toString()), e.children && ((
|
|
4447
|
+
var r, t;
|
|
4448
|
+
return e[a == null ? void 0 : a.prop] = l, typeof e.id == "number" && (e.id = (r = e.id) == null ? void 0 : r.toString()), e.children && ((t = e.children) == null ? void 0 : t.length) > 0 && (e.children = e.children.map(gn)), e;
|
|
4447
4449
|
}, bn = (e) => {
|
|
4448
4450
|
var l;
|
|
4449
4451
|
const a = [];
|
|
4450
4452
|
return a.push({ ...e }), e != null && e.children && Array.isArray(e.children) && ((l = e.children) == null || l.forEach((r) => {
|
|
4451
4453
|
a.push(...bn(r));
|
|
4452
4454
|
})), (a == null ? void 0 : a.length) > 0 ? a == null ? void 0 : a.map((r) => {
|
|
4453
|
-
const
|
|
4454
|
-
return delete
|
|
4455
|
+
const t = { ...r };
|
|
4456
|
+
return delete t.children, t;
|
|
4455
4457
|
}) : [];
|
|
4456
4458
|
}, Yl = (e = !0, a, l) => {
|
|
4457
|
-
var p, b, N, A, I, F, Z, g, w, H,
|
|
4458
|
-
let r = Ll((p = Te(C.value)) == null ? void 0 : p.filter((ye) => (ye == null ? void 0 : ye.label) !== "操作")),
|
|
4459
|
+
var p, b, N, A, I, F, Z, g, w, H, O, v, o, f, m, _, R, X, i, D, le, ee, oe, J, ie, ue, Be;
|
|
4460
|
+
let r = Ll((p = Te(C.value)) == null ? void 0 : p.filter((ye) => (ye == null ? void 0 : ye.label) !== "操作")), t, s = Te(V.value);
|
|
4459
4461
|
if (!Ta.value) {
|
|
4460
4462
|
Xa.value = !1;
|
|
4461
4463
|
return;
|
|
4462
4464
|
}
|
|
4463
4465
|
if (rl.value === "") {
|
|
4464
|
-
|
|
4466
|
+
jl.value++;
|
|
4465
4467
|
let ye;
|
|
4466
|
-
ye = { id:
|
|
4468
|
+
ye = { id: jl.value.toString() }, ye != null && ye.children && (ye = {
|
|
4467
4469
|
...ye,
|
|
4468
4470
|
children: (b = ye.children) == null ? void 0 : b.map((me) => gn(me, a, l))
|
|
4469
|
-
}), s.push(Object.assign(Ta.value, ye)),
|
|
4471
|
+
}), s.push(Object.assign(Ta.value, ye)), t = Object.assign(Ta.value, ye);
|
|
4470
4472
|
} else
|
|
4471
|
-
s = (N = yn(s, r)) == null ? void 0 : N.newContents,
|
|
4473
|
+
s = (N = yn(s, r)) == null ? void 0 : N.newContents, t = (A = yn(s, r)) == null ? void 0 : A.currentSelectContents;
|
|
4472
4474
|
const c = (I = n.itemData) == null ? void 0 : I.filter((ye) => (ye == null ? void 0 : ye.key) === "childTree")[0];
|
|
4473
4475
|
if (((F = c == null ? void 0 : c.contents) == null ? void 0 : F.length) > 0) {
|
|
4474
|
-
|
|
4476
|
+
$a.value = "编辑";
|
|
4475
4477
|
const ye = [];
|
|
4476
4478
|
s == null || s.forEach((me, U) => {
|
|
4477
4479
|
var we;
|
|
@@ -4482,14 +4484,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4482
4484
|
var de, ze, va, ha, Ha, qa, dl;
|
|
4483
4485
|
if ((ze = (de = Wa.value) == null ? void 0 : de[be]) != null && ze.prop && !Array.isArray(ve)) {
|
|
4484
4486
|
let xl = {};
|
|
4485
|
-
xl[Wa.value[be].column] = ve, Xe != null && Xe.value && ((va = Xe == null ? void 0 : Xe.value) == null ? void 0 : va.length) > 0 && ((ha = Xe == null ? void 0 : Xe.value) != null && ha.find((
|
|
4487
|
+
xl[Wa.value[be].column] = ve, Xe != null && Xe.value && ((va = Xe == null ? void 0 : Xe.value) == null ? void 0 : va.length) > 0 && ((ha = Xe == null ? void 0 : Xe.value) != null && ha.find((Ea) => JSON.stringify(Ea == null ? void 0 : Ea[0]) === JSON.stringify(xl))) && (Ce = (Ha = Xe == null ? void 0 : Xe.value) == null ? void 0 : Ha.find((Ea) => JSON.stringify(Ea == null ? void 0 : Ea[0]) === JSON.stringify(xl))), Ce && Ce.length > 0 ? pe[Wa.value[be].prop] = Ce != null && Ce.find((Ea) => {
|
|
4486
4488
|
var cl;
|
|
4487
|
-
return ((cl = Object.keys(
|
|
4488
|
-
}) ? (qa = Ce == null ? void 0 : Ce.find((
|
|
4489
|
+
return ((cl = Object.keys(Ea)) == null ? void 0 : cl[0]) === Wa.value[be].column;
|
|
4490
|
+
}) ? (qa = Ce == null ? void 0 : Ce.find((Ea) => {
|
|
4489
4491
|
var cl;
|
|
4490
|
-
return ((cl = Object.keys(
|
|
4492
|
+
return ((cl = Object.keys(Ea)) == null ? void 0 : cl[0]) === Wa.value[be].column;
|
|
4491
4493
|
})) == null ? void 0 : qa[Wa.value[be].column] : ve : pe[Wa.value[be].prop] = ve;
|
|
4492
|
-
} else Array.isArray(ve) && ((dl = Wa.value[be]) != null && dl.prop ? pe[Wa.value[be].prop] = ve : pe.children =
|
|
4494
|
+
} else Array.isArray(ve) && ((dl = Wa.value[be]) != null && dl.prop ? pe[Wa.value[be].prop] = ve : pe.children = jr(ve, Wa.value));
|
|
4493
4495
|
});
|
|
4494
4496
|
} else
|
|
4495
4497
|
pe = me;
|
|
@@ -4503,7 +4505,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4503
4505
|
_n(V.value), Tl.value = V.value;
|
|
4504
4506
|
const d = _u(Tl.value, wr.value, s);
|
|
4505
4507
|
let u = [];
|
|
4506
|
-
if (Ml.value ? (u = (Z = Te(Ml).value.singleContent) == null ? void 0 : Z.filter((ye) => (ye == null ? void 0 : ye.id) !== (
|
|
4508
|
+
if (Ml.value ? (u = (Z = Te(Ml).value.singleContent) == null ? void 0 : Z.filter((ye) => (ye == null ? void 0 : ye.id) !== (t == null ? void 0 : t.id)), u.push(t)) : u = [t], ka.value) {
|
|
4507
4509
|
const ye = {
|
|
4508
4510
|
content: d,
|
|
4509
4511
|
singleContent: ((g = c == null ? void 0 : c.contents) == null ? void 0 : g.length) > 0 ? u == null ? void 0 : u.flatMap(bn) : u,
|
|
@@ -4515,8 +4517,8 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4515
4517
|
la.setCacheUpdatingData(ye);
|
|
4516
4518
|
}
|
|
4517
4519
|
if (e) {
|
|
4518
|
-
(v = (
|
|
4519
|
-
let ye = (
|
|
4520
|
+
(v = (O = (H = (w = n.itemData) == null ? void 0 : w.find((U) => (U == null ? void 0 : U.key) === "filterAllType")) == null ? void 0 : H.value) == null ? void 0 : O.find((U) => (U == null ? void 0 : U.value) === "onConditionContents")) == null || v.content;
|
|
4521
|
+
let ye = (o = n.itemData) == null ? void 0 : o.filter((U) => (U == null ? void 0 : U.key) === "filterAllType");
|
|
4520
4522
|
ye = Array.from(
|
|
4521
4523
|
new Map(
|
|
4522
4524
|
ye.filter(Boolean).map((U, pe) => [U.value, { ...U, _idx: pe }])
|
|
@@ -4525,14 +4527,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4525
4527
|
// 3. Map 自动保留“后者”
|
|
4526
4528
|
).sort((U, pe) => U._idx - pe._idx).map(({ _idx: U, ...pe }) => pe), ye = (f = ye == null ? void 0 : ye[(ye == null ? void 0 : ye.length) - 1]) == null ? void 0 : f.value;
|
|
4527
4529
|
const me = {
|
|
4528
|
-
fixContent: [
|
|
4529
|
-
buttonName:
|
|
4530
|
+
fixContent: [t],
|
|
4531
|
+
buttonName: $a.value,
|
|
4530
4532
|
relatedContents: n == null ? void 0 : n.related,
|
|
4531
4533
|
columns: C.value
|
|
4532
4534
|
};
|
|
4533
4535
|
la.setTableLoading(n == null ? void 0 : n.index), Xa.value = !1, Ta.value = void 0, ge("change", me);
|
|
4534
4536
|
}
|
|
4535
|
-
if ((R = (
|
|
4537
|
+
if ((R = (_ = (m = aa.value) == null ? void 0 : m[0]) == null ? void 0 : _.optionUrl) != null && R.menuId) {
|
|
4536
4538
|
Xa.value = !1;
|
|
4537
4539
|
let ye = (X = n.itemData) == null ? void 0 : X.filter((me) => (me == null ? void 0 : me.key) === "filterAllType");
|
|
4538
4540
|
if ((ye == null ? void 0 : ye.length) > 0) {
|
|
@@ -4543,27 +4545,27 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4543
4545
|
((J = (oe = (ee = me.flat().find((we) => {
|
|
4544
4546
|
var Ce;
|
|
4545
4547
|
return (Ce = we == null ? void 0 : we.content) == null ? void 0 : Ce.includes("@Type:");
|
|
4546
|
-
})) == null ? void 0 : ee.content) == null ? void 0 : oe.split(":")) == null ? void 0 : J[1]) !== "Manual" && (U = parseInt(U), V.value = (
|
|
4548
|
+
})) == null ? void 0 : ee.content) == null ? void 0 : oe.split(":")) == null ? void 0 : J[1]) !== "Manual" && (U = parseInt(U), V.value = (Be = V.value) == null ? void 0 : Be.slice(((ie = V.value) == null ? void 0 : ie.length) - U, (ue = V.value) == null ? void 0 : ue.length));
|
|
4547
4549
|
}
|
|
4548
4550
|
}
|
|
4549
4551
|
};
|
|
4550
4552
|
os(() => {
|
|
4551
|
-
C.value = [], V.value = [],
|
|
4553
|
+
C.value = [], V.value = [], ra.value = [], $e.value = [], Ia.value = [], nl.value = [], Fl.value = [], da.value = [], aa.value = [], Qa.value = [], y.value = null;
|
|
4552
4554
|
});
|
|
4553
4555
|
const Er = async (e, a, l) => {
|
|
4554
|
-
var p, b, N, A, I, F, Z, g, w, H,
|
|
4556
|
+
var p, b, N, A, I, F, Z, g, w, H, O;
|
|
4555
4557
|
Za.value = l == null ? void 0 : l.prop;
|
|
4556
|
-
const r = Te(n.itemData),
|
|
4557
|
-
var
|
|
4558
|
-
return (v == null ? void 0 : v.key) === "header" && ((
|
|
4559
|
-
var
|
|
4560
|
-
return f.type = f != null && f.type ? f.type : (i = (X = (R = (
|
|
4558
|
+
const r = Te(n.itemData), t = r == null ? void 0 : r.map((v) => {
|
|
4559
|
+
var o;
|
|
4560
|
+
return (v == null ? void 0 : v.key) === "header" && ((o = v.contents) == null || o.map((f, m) => {
|
|
4561
|
+
var _, R, X, i, D, le, ee, oe, J, ie, ue, Be, ye, me, U, pe, we, Ce, ve;
|
|
4562
|
+
return f.type = f != null && f.type ? f.type : (i = (X = (R = (_ = f == null ? void 0 : f.key) == null ? void 0 : _.split("$")) == null ? void 0 : R[1]) == null ? void 0 : X.split("(")) != null && i[0] ? (le = (D = Co) == null ? void 0 : D.find((be) => {
|
|
4561
4563
|
var de, ze, va, ha;
|
|
4562
4564
|
return (be == null ? void 0 : be.key) === ((ha = (va = (ze = (de = f == null ? void 0 : f.key) == null ? void 0 : de.split("$")) == null ? void 0 : ze[1]) == null ? void 0 : va.split("(")) == null ? void 0 : ha[0]);
|
|
4563
|
-
})) == null ? void 0 : le.value : "Input", f.options = f != null && f.options ? f.options : ((J = (oe = (ee = f == null ? void 0 : f.key) == null ? void 0 : ee.split("$")) == null ? void 0 : oe[1]) == null ? void 0 : J.length) > 0 ? (ye = (
|
|
4565
|
+
})) == null ? void 0 : le.value : "Input", f.options = f != null && f.options ? f.options : ((J = (oe = (ee = f == null ? void 0 : f.key) == null ? void 0 : ee.split("$")) == null ? void 0 : oe[1]) == null ? void 0 : J.length) > 0 ? (ye = (Be = Bo((ue = (ie = f == null ? void 0 : f.key) == null ? void 0 : ie.split("$")) == null ? void 0 : ue[1])) == null ? void 0 : Be.split(",")) == null ? void 0 : ye.map((be) => ({
|
|
4564
4566
|
label: be,
|
|
4565
4567
|
value: be
|
|
4566
|
-
})) : [], (me = f == null ? void 0 : f.key) != null && me.includes("$") && (f.key = (pe = (U = f == null ? void 0 : f.key) == null ? void 0 : U.split("$")) == null ? void 0 : pe[0]), f.value = (we = Object.values(a)) == null ? void 0 : we[
|
|
4568
|
+
})) : [], (me = f == null ? void 0 : f.key) != null && me.includes("$") && (f.key = (pe = (U = f == null ? void 0 : f.key) == null ? void 0 : U.split("$")) == null ? void 0 : pe[0]), f.value = (we = Object.values(a)) == null ? void 0 : we[m], f.optionUrl = f != null && f.formMenuSelect && ((Ce = f == null ? void 0 : f.formMenuSelect) == null ? void 0 : Ce.length) > 0 ? {
|
|
4567
4569
|
groupSelect: (ve = f == null ? void 0 : f.groupSelect) == null ? void 0 : ve.split(/[::]/).map((be) => be.trim()),
|
|
4568
4570
|
menuSelect: f == null ? void 0 : f.formMenuSelect,
|
|
4569
4571
|
selectRelateType: "",
|
|
@@ -4571,56 +4573,56 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4571
4573
|
} : null, f;
|
|
4572
4574
|
})), v;
|
|
4573
4575
|
});
|
|
4574
|
-
let s = Te(aa.value), c = (b = (p = Te(
|
|
4576
|
+
let s = Te(aa.value), c = (b = (p = Te(t)) == null ? void 0 : p.find((v) => (v == null ? void 0 : v.key) === "header")) == null ? void 0 : b.contents;
|
|
4575
4577
|
s = s == null ? void 0 : s.map((v) => {
|
|
4576
|
-
var
|
|
4577
|
-
return v.value = (
|
|
4578
|
+
var o;
|
|
4579
|
+
return v.value = (o = c == null ? void 0 : c.find((f, m) => m === (v == null ? void 0 : v.id))) == null ? void 0 : o.value, v;
|
|
4578
4580
|
});
|
|
4579
|
-
let d = "", u = (I = (A = (N = Te(
|
|
4580
|
-
var f,
|
|
4581
|
-
return (v == null ? void 0 : v.label) === Za.value || (
|
|
4581
|
+
let d = "", u = (I = (A = (N = Te(t)) == null ? void 0 : N.find((v) => (v == null ? void 0 : v.key) === "header")) == null ? void 0 : A.contents) == null ? void 0 : I.find((v, o) => {
|
|
4582
|
+
var f, m, _;
|
|
4583
|
+
return (v == null ? void 0 : v.label) === Za.value || (o == null ? void 0 : o.toString()) === ((_ = (m = (f = Za.value) == null ? void 0 : f.split("a")) == null ? void 0 : m[1]) == null ? void 0 : _.toString());
|
|
4582
4584
|
});
|
|
4583
|
-
if ((g = (Z = (F = Te(
|
|
4584
|
-
var
|
|
4585
|
-
d === "" && ((
|
|
4585
|
+
if ((g = (Z = (F = Te(t)) == null ? void 0 : F.find((v) => (v == null ? void 0 : v.key) === "header")) == null ? void 0 : Z.contents) == null || g.forEach((v) => {
|
|
4586
|
+
var o, f, m, _, R;
|
|
4587
|
+
d === "" && ((m = (f = (o = v == null ? void 0 : v.optionUrl) == null ? void 0 : o.groupSelect) == null ? void 0 : f[1]) != null && m.includes("[")) && (d = (R = (_ = v == null ? void 0 : v.optionUrl) == null ? void 0 : _.groupSelect) == null ? void 0 : R[1]);
|
|
4586
4588
|
}), (w = u == null ? void 0 : u.optionUrl) != null && w.menuSelect) {
|
|
4587
|
-
let v = await ns(u),
|
|
4589
|
+
let v = await ns(u), o;
|
|
4588
4590
|
if (v == null || v.forEach((f) => {
|
|
4589
|
-
var
|
|
4590
|
-
d === ((
|
|
4591
|
-
}),
|
|
4591
|
+
var m, _, R, X, i, D, le, ee, oe, J;
|
|
4592
|
+
d === ((_ = (m = u == null ? void 0 : u.optionUrl) == null ? void 0 : m.groupSelect) == null ? void 0 : _[1]) && ((i = (X = (R = u == null ? void 0 : u.optionUrl) == null ? void 0 : R.groupSelect) == null ? void 0 : X[1]) != null && i.includes("[")) && ((J = Te(f)) == null ? void 0 : J[(oe = (ee = (le = (D = u == null ? void 0 : u.optionUrl) == null ? void 0 : D.groupSelect) == null ? void 0 : le[1]) == null ? void 0 : ee.replaceAll("[", "")) == null ? void 0 : oe.replaceAll("]", "")]) === (u == null ? void 0 : u.value) && (o = f);
|
|
4593
|
+
}), o) {
|
|
4592
4594
|
let f = Te(s);
|
|
4593
|
-
f = f == null ? void 0 : f.map((
|
|
4594
|
-
var R, X, i, D, le, ee, oe, J, ie, ue,
|
|
4595
|
-
return (
|
|
4596
|
-
}), V.value = (H = Te(V.value)) == null ? void 0 : H.map((
|
|
4597
|
-
if ((
|
|
4595
|
+
f = f == null ? void 0 : f.map((_) => {
|
|
4596
|
+
var R, X, i, D, le, ee, oe, J, ie, ue, Be;
|
|
4597
|
+
return (o != null && o[_ == null ? void 0 : _.label] || o != null && o[(D = (i = (X = (R = _ == null ? void 0 : _.optionUrl) == null ? void 0 : R.groupSelect) == null ? void 0 : X[1]) == null ? void 0 : i.replaceAll("[", "")) == null ? void 0 : D.replaceAll("]", "")]) && ((oe = (ee = (le = _ == null ? void 0 : _.optionUrl) == null ? void 0 : le.groupSelect) == null ? void 0 : ee[1]) != null && oe.includes("[")) && (_.value = (o == null ? void 0 : o[_ == null ? void 0 : _.label]) || (o == null ? void 0 : o[(Be = (ue = (ie = (J = _ == null ? void 0 : _.optionUrl) == null ? void 0 : J.groupSelect) == null ? void 0 : ie[1]) == null ? void 0 : ue.replaceAll("[", "")) == null ? void 0 : Be.replaceAll("]", "")])), _;
|
|
4598
|
+
}), V.value = (H = Te(V.value)) == null ? void 0 : H.map((_) => {
|
|
4599
|
+
if ((_ == null ? void 0 : _.id) === (a == null ? void 0 : a.id)) {
|
|
4598
4600
|
const R = {};
|
|
4599
4601
|
return f == null || f.forEach((X) => {
|
|
4600
4602
|
R[X.name] = X.value;
|
|
4601
|
-
}), R.id =
|
|
4603
|
+
}), R.id = _ == null ? void 0 : _.id, R;
|
|
4602
4604
|
}
|
|
4603
|
-
return
|
|
4605
|
+
return _;
|
|
4604
4606
|
});
|
|
4605
|
-
let
|
|
4606
|
-
|
|
4607
|
+
let m = Te(f);
|
|
4608
|
+
m = m == null ? void 0 : m.map((_) => {
|
|
4607
4609
|
var R, X, i, D;
|
|
4608
|
-
return (X = (R =
|
|
4610
|
+
return (X = (R = _ == null ? void 0 : _.optionUrl) == null ? void 0 : R.menuSelect) != null && X.some((le) => le == null ? void 0 : le.includes) && (_.optionUrl.menuSelect = (D = (i = _ == null ? void 0 : _.optionUrl) == null ? void 0 : i.menuSelect) == null ? void 0 : D.map((le) => {
|
|
4609
4611
|
var ee, oe, J, ie;
|
|
4610
4612
|
if (le != null && le.includes("[")) {
|
|
4611
4613
|
let ue = (oe = (ee = le == null ? void 0 : le.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : ee.split(":")) == null ? void 0 : oe[1];
|
|
4612
|
-
le = (ie = (J = Te(f)) == null ? void 0 : J.find((
|
|
4614
|
+
le = (ie = (J = Te(f)) == null ? void 0 : J.find((Be) => (Be == null ? void 0 : Be.label) === ue)) == null ? void 0 : ie.value;
|
|
4613
4615
|
}
|
|
4614
4616
|
return le;
|
|
4615
|
-
})),
|
|
4616
|
-
}), V.value = (
|
|
4617
|
-
if ((
|
|
4617
|
+
})), _;
|
|
4618
|
+
}), V.value = (O = Te(V.value)) == null ? void 0 : O.map((_) => {
|
|
4619
|
+
if ((_ == null ? void 0 : _.id) === (a == null ? void 0 : a.id)) {
|
|
4618
4620
|
const R = {};
|
|
4619
|
-
return
|
|
4621
|
+
return m == null || m.forEach((X) => {
|
|
4620
4622
|
R[X.name] = X.value;
|
|
4621
|
-
}), R.id =
|
|
4623
|
+
}), R.id = _ == null ? void 0 : _.id, R;
|
|
4622
4624
|
}
|
|
4623
|
-
return
|
|
4625
|
+
return _;
|
|
4624
4626
|
});
|
|
4625
4627
|
}
|
|
4626
4628
|
}
|
|
@@ -4630,48 +4632,48 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4630
4632
|
Ta.value = e;
|
|
4631
4633
|
let a = Te(n.itemData);
|
|
4632
4634
|
a == null || a.map((g) => {
|
|
4633
|
-
var w, H,
|
|
4634
|
-
return (g == null ? void 0 : g.key) === "header" && (Array.isArray((w = g.contents) == null ? void 0 : w[0]) ? g.contents = (
|
|
4635
|
-
var
|
|
4636
|
-
return ((R = (
|
|
4637
|
-
}) : g.contents = (v = g.contents) == null ? void 0 : v.map((
|
|
4638
|
-
var
|
|
4639
|
-
return ((R = (
|
|
4635
|
+
var w, H, O, v;
|
|
4636
|
+
return (g == null ? void 0 : g.key) === "header" && (Array.isArray((w = g.contents) == null ? void 0 : w[0]) ? g.contents = (O = Ll((H = g.contents) == null ? void 0 : H[0])) == null ? void 0 : O.map((o, f) => {
|
|
4637
|
+
var m, _, R, X, i, D;
|
|
4638
|
+
return ((R = (_ = (m = aa.value) == null ? void 0 : m.find((le) => (le == null ? void 0 : le.prop) === (o == null ? void 0 : o.prop))) == null ? void 0 : _.optionUrl) == null ? void 0 : R.multiple) === !0 && !Array.isArray((X = Object.values(e)) == null ? void 0 : X[f]) ? o.value = [(i = Object.values(e)) == null ? void 0 : i[f]] : o.value = (D = Object.values(e)) == null ? void 0 : D[f], o;
|
|
4639
|
+
}) : g.contents = (v = g.contents) == null ? void 0 : v.map((o, f) => {
|
|
4640
|
+
var m, _, R, X, i, D;
|
|
4641
|
+
return ((R = (_ = (m = aa.value) == null ? void 0 : m.find((le) => (le == null ? void 0 : le.prop) === (o == null ? void 0 : o.prop))) == null ? void 0 : _.optionUrl) == null ? void 0 : R.multiple) === !0 && !Array.isArray((X = Object.values(e)) == null ? void 0 : X[f]) ? o.value = [(i = Object.values(e)) == null ? void 0 : i[f]] : o.value = (D = Object.values(e)) == null ? void 0 : D[f], o;
|
|
4640
4642
|
})), g;
|
|
4641
4643
|
});
|
|
4642
4644
|
let l = aa.value, r = (p = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : p.contents;
|
|
4643
4645
|
if (l = l == null ? void 0 : l.map((g) => {
|
|
4644
4646
|
var w;
|
|
4645
|
-
return g.value = g.value ?? ((w = r == null ? void 0 : r.find((H,
|
|
4647
|
+
return g.value = g.value ?? ((w = r == null ? void 0 : r.find((H, O) => (H == null ? void 0 : H.prop) === (g == null ? void 0 : g.name))) == null ? void 0 : w.value), g;
|
|
4646
4648
|
}), !dr.value) return;
|
|
4647
|
-
let
|
|
4649
|
+
let t = Te(Za.value);
|
|
4648
4650
|
(b = Za.value) != null && b.includes("·") && (Za.value = (A = (N = Za.value) == null ? void 0 : N.split("·")) == null ? void 0 : A[0]);
|
|
4649
|
-
let s = (F = (I = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : I.contents) == null ? void 0 : F.find((g, w) => (g == null ? void 0 : g.prop) === Za.value), c = Te(l), d =
|
|
4650
|
-
if (d != null && d.find((g) => (s == null ? void 0 : s.prop) === (g == null ? void 0 : g.key)) && (d = d == null ? void 0 : d.filter((g) => (s == null ? void 0 : s.prop) !== (g == null ? void 0 : g.key))), d != null && d.find((g) =>
|
|
4651
|
-
var w, H,
|
|
4652
|
-
return (g == null ? void 0 : g.type) === "Select" && (((w = g == null ? void 0 : g.allSelectionContents) == null ? void 0 : w.length) > 0 && (g.contactValue = e), ((s == null ? void 0 : s.prop) === (g == null ? void 0 : g.prop) ||
|
|
4651
|
+
let s = (F = (I = a == null ? void 0 : a.find((g) => (g == null ? void 0 : g.key) === "header")) == null ? void 0 : I.contents) == null ? void 0 : F.find((g, w) => (g == null ? void 0 : g.prop) === Za.value), c = Te(l), d = pa.value;
|
|
4652
|
+
if (d != null && d.find((g) => (s == null ? void 0 : s.prop) === (g == null ? void 0 : g.key)) && (d = d == null ? void 0 : d.filter((g) => (s == null ? void 0 : s.prop) !== (g == null ? void 0 : g.key))), d != null && d.find((g) => t === (g == null ? void 0 : g.key)) && (d = d == null ? void 0 : d.filter((g) => t !== (g == null ? void 0 : g.key))), c = c == null ? void 0 : c.map((g) => {
|
|
4653
|
+
var w, H, O, v, o, f, m, _;
|
|
4654
|
+
return (g == null ? void 0 : g.type) === "Select" && (((w = g == null ? void 0 : g.allSelectionContents) == null ? void 0 : w.length) > 0 && (g.contactValue = e), ((s == null ? void 0 : s.prop) === (g == null ? void 0 : g.prop) || t === (g == null ? void 0 : g.prop)) && s && (Array.isArray(s.value) && ((H = s.value) == null ? void 0 : H.length) > 0 && ((O = s.value) != null && O.every((R) => typeof R == "string")) ? (d.push({
|
|
4653
4655
|
key: g == null ? void 0 : g.prop,
|
|
4654
|
-
value: [(
|
|
4655
|
-
}), g.selectValue = (f = d == null ? void 0 : d.find((R) => (R == null ? void 0 : R.key) === (g == null ? void 0 : g.prop))) == null ? void 0 : f.value) : Array.isArray(s.value) && ((
|
|
4656
|
+
value: [(o = s.value) == null ? void 0 : o[((v = s.value) == null ? void 0 : v.length) - 1]]
|
|
4657
|
+
}), g.selectValue = (f = d == null ? void 0 : d.find((R) => (R == null ? void 0 : R.key) === (g == null ? void 0 : g.prop))) == null ? void 0 : f.value) : Array.isArray(s.value) && ((m = s.value) == null ? void 0 : m.length) === 0 ? (d = [], g.selectValue = [], e[g == null ? void 0 : g.prop] = "") : Array.isArray(g.value) && d.push({
|
|
4656
4658
|
key: g == null ? void 0 : g.prop,
|
|
4657
|
-
value: [(
|
|
4659
|
+
value: [(_ = g.value) == null ? void 0 : _[(g == null ? void 0 : g.length) - 1]]
|
|
4658
4660
|
}))), g.value = e == null ? void 0 : e[g == null ? void 0 : g.prop], g;
|
|
4659
|
-
}),
|
|
4660
|
-
let g = await
|
|
4661
|
+
}), pa.value = d, aa.value = Te(c), (s == null ? void 0 : s.mainKey) && (s != null && s.value) && (s == null ? void 0 : s.value) !== "") {
|
|
4662
|
+
let g = await ji(s);
|
|
4661
4663
|
if (g) {
|
|
4662
4664
|
let w = l;
|
|
4663
|
-
w = w == null ? void 0 : w.map((
|
|
4664
|
-
var v,
|
|
4665
|
-
return (s == null ? void 0 : s.prop) === (
|
|
4665
|
+
w = w == null ? void 0 : w.map((O) => {
|
|
4666
|
+
var v, o;
|
|
4667
|
+
return (s == null ? void 0 : s.prop) === (O == null ? void 0 : O.prop) ? O.value = g == null ? void 0 : g[(v = O == null ? void 0 : O.words) == null ? void 0 : v.join(".")] : vr(s == null ? void 0 : s.menus, O == null ? void 0 : O.menus) && vr(s == null ? void 0 : s.groups, O == null ? void 0 : O.groups) && !vr(s == null ? void 0 : s.words, O == null ? void 0 : O.words) ? O.value = g == null ? void 0 : g[(o = O == null ? void 0 : O.words) == null ? void 0 : o.join(".")] : vr((s == null ? void 0 : s.bindMenus) ?? [], (O == null ? void 0 : O.bindMenus) ?? []) && (O.value = g == null ? void 0 : g[O == null ? void 0 : O.prop]), O;
|
|
4666
4668
|
}), aa.value = w;
|
|
4667
4669
|
let H = {};
|
|
4668
|
-
(Z = aa.value) == null || Z.forEach((
|
|
4669
|
-
H[
|
|
4670
|
+
(Z = aa.value) == null || Z.forEach((O) => {
|
|
4671
|
+
H[O.prop] = O == null ? void 0 : O.value;
|
|
4670
4672
|
}), Ta.value = H;
|
|
4671
4673
|
}
|
|
4672
4674
|
}
|
|
4673
4675
|
dr.value = !0, Ue.value = !1;
|
|
4674
|
-
},
|
|
4676
|
+
}, Bt = (e) => e ? (e == null ? void 0 : e.toUpperCase()) === "INPUT" ? "TEXTAREA" : e : "TEXTAREA", jt = (e) => {
|
|
4675
4677
|
var s, c;
|
|
4676
4678
|
const a = (c = (s = Ia.value) == null ? void 0 : s.find((d) => (d == null ? void 0 : d.label) === (e == null ? void 0 : e.label))) == null ? void 0 : c.multiple, l = e == null ? void 0 : e.prop;
|
|
4677
4679
|
if ((e == null ? void 0 : e.formType) != "Select")
|
|
@@ -4686,15 +4688,15 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4686
4688
|
e[r == null ? void 0 : r.prop] = r == null ? void 0 : r.value;
|
|
4687
4689
|
}), e.children && ((l = e.children) == null ? void 0 : l.length) > 0 && (e.children = e.children.map((r) => mn(r, a))), e;
|
|
4688
4690
|
}, Ur = (e) => {
|
|
4689
|
-
var l, r,
|
|
4691
|
+
var l, r, t, s, c, d;
|
|
4690
4692
|
ql("");
|
|
4691
4693
|
const a = (l = aa.value) == null ? void 0 : l.reduce((u, p) => (u[p.name] = p.value, u), {});
|
|
4692
4694
|
if (((r = Object.keys(a)) == null ? void 0 : r.length) > 0) {
|
|
4693
|
-
Ta.value = a, rl.value = "",
|
|
4694
|
-
const u = (d = (c =
|
|
4695
|
+
Ta.value = a, rl.value = "", jl.value = (t = V.value) == null ? void 0 : t.length, da.value = (s = fa.value) == null ? void 0 : s.filter((p) => (p == null ? void 0 : p.label) !== "新增");
|
|
4696
|
+
const u = (d = (c = ra.value) == null ? void 0 : c.filter((p) => (p == null ? void 0 : p.label) !== "操作")) == null ? void 0 : d.map((p) => {
|
|
4695
4697
|
var N, A, I;
|
|
4696
4698
|
const b = (A = (N = Ia.value) == null ? void 0 : N.find((F) => (F == null ? void 0 : F.label) === (p == null ? void 0 : p.label))) == null ? void 0 : A.multiple;
|
|
4697
|
-
return
|
|
4699
|
+
return jt(p), {
|
|
4698
4700
|
...p,
|
|
4699
4701
|
contents: (p == null ? void 0 : p.options) ?? [],
|
|
4700
4702
|
// type: 'edit',
|
|
@@ -4712,7 +4714,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4712
4714
|
C.value = u == null ? void 0 : u.map((p) => mn(p, [{
|
|
4713
4715
|
prop: "type",
|
|
4714
4716
|
value: "edit"
|
|
4715
|
-
}, { prop: "columnType", value:
|
|
4717
|
+
}, { prop: "columnType", value: Bt(p == null ? void 0 : p.formType) || (p == null ? void 0 : p.columnType) }])), e === "createClick" && ($a.value = "新增", Yl(!0));
|
|
4716
4718
|
}
|
|
4717
4719
|
}, Ol = {
|
|
4718
4720
|
START: "开始时间",
|
|
@@ -4730,35 +4732,35 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4730
4732
|
});
|
|
4731
4733
|
}, kn = (e, a, l = 0) => {
|
|
4732
4734
|
if (l > ((a == null ? void 0 : a.length) ?? "")) return e;
|
|
4733
|
-
const r = a == null ? void 0 : a[l],
|
|
4735
|
+
const r = a == null ? void 0 : a[l], t = /* @__PURE__ */ new Map();
|
|
4734
4736
|
for (const c of e) {
|
|
4735
4737
|
const d = c[r];
|
|
4736
|
-
|
|
4738
|
+
t.has(d) || t.set(d, []), t.get(d) && t.get(d).push(c);
|
|
4737
4739
|
}
|
|
4738
4740
|
const s = [];
|
|
4739
|
-
for (const [c, d] of
|
|
4741
|
+
for (const [c, d] of t) {
|
|
4740
4742
|
const [u, ...p] = d, b = { ...u };
|
|
4741
4743
|
l + 1 === ((a == null ? void 0 : a.length) ?? "") ? b.children = d == null ? void 0 : d.map((N) => (N.level = Te(l) + 1, N)).filter((N, A) => A !== 0) : p.length > 0 && (b.children = kn(p, a, l + 1)), b.level = l, s.push(b);
|
|
4742
4744
|
}
|
|
4743
4745
|
return s;
|
|
4744
4746
|
}, Sn = (e, a, l) => {
|
|
4745
|
-
var
|
|
4746
|
-
if (!(a != null && a.contents) || ((
|
|
4747
|
+
var t;
|
|
4748
|
+
if (!(a != null && a.contents) || ((t = a == null ? void 0 : a.contents) == null ? void 0 : t.length) === 0)
|
|
4747
4749
|
return e;
|
|
4748
4750
|
let r = [];
|
|
4749
4751
|
return r = kn(e, a == null ? void 0 : a.contents, 0), r;
|
|
4750
4752
|
}, Cn = async (e, a) => {
|
|
4751
|
-
var g, w, H,
|
|
4753
|
+
var g, w, H, O, v, o, f, m, _, R, X, i, D, le, ee, oe, J, ie, ue, Be, ye, me, U, pe, we, Ce, ve, be, de, ze, va, ha, Ha, qa, dl, xl, Ea, cl, wn, Tn, On, xn, Nn, Dn, $n, En, Un;
|
|
4752
4754
|
const l = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "header");
|
|
4753
4755
|
e == null || e.filter((S) => (S == null ? void 0 : S.key) === "tableIndexColumn")[0];
|
|
4754
4756
|
const r = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "childTree")[0];
|
|
4755
|
-
let
|
|
4757
|
+
let t = !0;
|
|
4756
4758
|
if ((H = (w = (g = e == null ? void 0 : e.find((S) => (S == null ? void 0 : S.key) === "filterAllType")) == null ? void 0 : g.value) == null ? void 0 : w.find((S) => (S == null ? void 0 : S.value) === "onPamButtonContents")) != null && H.content) {
|
|
4757
|
-
let S = (
|
|
4758
|
-
S = (f = S == null ? void 0 : S.split(":")) == null ? void 0 : f[1], S = (
|
|
4759
|
+
let S = (o = (v = (O = e == null ? void 0 : e.find((_e) => (_e == null ? void 0 : _e.key) === "filterAllType")) == null ? void 0 : O.value) == null ? void 0 : v.find((_e) => (_e == null ? void 0 : _e.value) === "onPamButtonContents")) == null ? void 0 : o.content;
|
|
4760
|
+
S = (f = S == null ? void 0 : S.split(":")) == null ? void 0 : f[1], S = (m = S.slice(1, (S == null ? void 0 : S.length) - 1)) == null ? void 0 : m.split(","), t = !!(S != null && S.find((_e) => _e === "操作"));
|
|
4759
4761
|
}
|
|
4760
4762
|
const s = e == null ? void 0 : e.find((S) => (S == null ? void 0 : S.key) === "page"), c = e == null ? void 0 : e.find((S) => (S == null ? void 0 : S.key) === "rowButton"), d = e == null ? void 0 : e.find((S) => (S == null ? void 0 : S.key) === "extraButton"), u = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "tableContents"), p = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "bottomButton"), b = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "tableIndex");
|
|
4761
|
-
Ia.value = (R = (
|
|
4763
|
+
Ia.value = (R = (_ = e == null ? void 0 : e.filter((S) => (S == null ? void 0 : S.key) === "tableToForm")) == null ? void 0 : _[0]) == null ? void 0 : R.contents, Wr.value = (s == null ? void 0 : s.contents) ?? !0;
|
|
4762
4764
|
let N = [];
|
|
4763
4765
|
gl.value === "" ? N = l == null ? void 0 : l[0] : N = (l == null ? void 0 : l.find((S) => (S == null ? void 0 : S.selectLabel) === "(" + gl.value + ")")) ?? (l == null ? void 0 : l.find((S) => !(S != null && S.selectLabel)));
|
|
4764
4766
|
let A = [];
|
|
@@ -4766,58 +4768,58 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4766
4768
|
let I = [], F = [];
|
|
4767
4769
|
if (((X = N == null ? void 0 : N.contents) == null ? void 0 : X.length) > 0) {
|
|
4768
4770
|
let S = [], _e = N == null ? void 0 : N.contents;
|
|
4769
|
-
if (Array.isArray(_e == null ? void 0 : _e[0]) && ((i = _e == null ? void 0 : _e[0]) != null && i.every((ae) => !(ae != null && ae.children))) && (_e = _e == null ? void 0 : _e[0]), _e.some((ae) => Array.isArray(ae) && (ae == null ? void 0 : ae.find((
|
|
4770
|
-
S = (D =
|
|
4771
|
+
if (Array.isArray(_e == null ? void 0 : _e[0]) && ((i = _e == null ? void 0 : _e[0]) != null && i.every((ae) => !(ae != null && ae.children))) && (_e = _e == null ? void 0 : _e[0]), _e.some((ae) => Array.isArray(ae) && (ae == null ? void 0 : ae.find((T) => T.children))))
|
|
4772
|
+
S = (D = mo(_e, t)) == null ? void 0 : D[0], S != null && S.find((ae) => (ae == null ? void 0 : ae.label) === "操作") || S.push({
|
|
4771
4773
|
label: "操作",
|
|
4772
4774
|
prop: "operate",
|
|
4773
4775
|
type: "operate"
|
|
4774
4776
|
});
|
|
4775
4777
|
else {
|
|
4776
|
-
let ae = _e.some((
|
|
4777
|
-
ae != null && ae.find((
|
|
4778
|
+
let ae = _e.some((T) => Array.isArray(T)) ? _e == null ? void 0 : _e[0] : _e;
|
|
4779
|
+
ae != null && ae.find((T) => (T == null ? void 0 : T.label) === "操作") || ae.push({
|
|
4778
4780
|
label: "操作",
|
|
4779
4781
|
prop: "operate",
|
|
4780
4782
|
type: "operate"
|
|
4781
|
-
}), ae == null || ae.forEach((
|
|
4782
|
-
var Ca,
|
|
4783
|
-
if ((
|
|
4783
|
+
}), ae == null || ae.forEach((T, He) => {
|
|
4784
|
+
var Ca, sa, ya, Ve, _l, Nl, Dl, Ye, Ya, pl, $l, Pa, fl, Ln, Mn, Bn, jn, Fn, In, zn;
|
|
4785
|
+
if ((sa = (Ca = xe.value) == null ? void 0 : Ca.split("/")) == null || sa.forEach((je) => {
|
|
4784
4786
|
var Je, el, Kn;
|
|
4785
|
-
|
|
4786
|
-
}),
|
|
4787
|
-
let
|
|
4788
|
-
if (
|
|
4789
|
-
let Je = (Ya = (Ye =
|
|
4790
|
-
Je = ((
|
|
4791
|
-
} else if ((fl =
|
|
4792
|
-
let Je = (
|
|
4793
|
-
Je = ((In = (Fn = (
|
|
4787
|
+
je !== "" && ((Kn = (el = (Je = je == null ? void 0 : je.split(ce + "updateLoading")) == null ? void 0 : Je[0]) == null ? void 0 : el.split(ce + "loading")) == null || Kn[0]);
|
|
4788
|
+
}), T != null && T.methodContent) {
|
|
4789
|
+
let je = (_l = (Ve = (ya = T == null ? void 0 : T.methodContent) == null ? void 0 : ya.replace("@", "%%#")) == null ? void 0 : Ve.split("%%#")) == null ? void 0 : _l[1];
|
|
4790
|
+
if (je = je == null ? void 0 : je.slice(0, (je == null ? void 0 : je.length) - 1), je = _o(je ?? "", ","), (Nl = je == null ? void 0 : je.find((Je) => Je == null ? void 0 : Je.includes("@Button"))) != null && Nl.includes("Prop") && ((Dl = je == null ? void 0 : je.find((Je) => Je == null ? void 0 : Je.includes("Type"))) != null && Dl.includes("Manual"))) {
|
|
4791
|
+
let Je = (Ya = (Ye = je == null ? void 0 : je.find((el) => el == null ? void 0 : el.includes("@Button"))) == null ? void 0 : Ye.split(":")) == null ? void 0 : Ya[1];
|
|
4792
|
+
Je = ((Pa = ($l = (pl = Je == null ? void 0 : Je.replaceAll("[", "")) == null ? void 0 : pl.replaceAll("]", "")) == null ? void 0 : $l.split(",")) == null ? void 0 : Pa[1]) ?? "算法执行", I.push(Je);
|
|
4793
|
+
} else if ((fl = je == null ? void 0 : je.find((Je) => Je == null ? void 0 : Je.includes("@Button"))) != null && fl.includes("Row") && ((Ln = je == null ? void 0 : je.find((Je) => Je == null ? void 0 : Je.includes("Type"))) != null && Ln.includes("Manual"))) {
|
|
4794
|
+
let Je = (Bn = (Mn = je == null ? void 0 : je.find((el) => el == null ? void 0 : el.includes("@Button"))) == null ? void 0 : Mn.split(":")) == null ? void 0 : Bn[1];
|
|
4795
|
+
Je = ((In = (Fn = (jn = Je == null ? void 0 : Je.replaceAll("[", "")) == null ? void 0 : jn.replaceAll("]", "")) == null ? void 0 : Fn.split(",")) == null ? void 0 : In[1]) ?? "算法执行", F.push(Je);
|
|
4794
4796
|
}
|
|
4795
4797
|
}
|
|
4796
|
-
(zn = Ia.value) == null || zn.find((
|
|
4797
|
-
label: (
|
|
4798
|
-
prop: (
|
|
4798
|
+
(zn = Ia.value) == null || zn.find((je) => (je == null ? void 0 : je.prop) === (T == null ? void 0 : T.prop)), S.push({
|
|
4799
|
+
label: (T == null ? void 0 : T.label) === "操作" ? t ? "操作" : "" : (T == null ? void 0 : T.label) ?? "",
|
|
4800
|
+
prop: (T == null ? void 0 : T.label) === "操作" ? "operate" : (T == null ? void 0 : T.prop) ?? "a" + He,
|
|
4799
4801
|
// width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
|
|
4800
|
-
width:
|
|
4801
|
-
fixed: (
|
|
4802
|
-
sortable: (
|
|
4803
|
-
filterable: (
|
|
4804
|
-
operable: (
|
|
4805
|
-
showSummary: (
|
|
4806
|
-
align: (
|
|
4807
|
-
showOverflowTooltip: (
|
|
4808
|
-
isNotDrag: (
|
|
4809
|
-
isEditCol: (
|
|
4810
|
-
isOperate: (
|
|
4811
|
-
id: (
|
|
4812
|
-
type: (
|
|
4813
|
-
formType: (
|
|
4802
|
+
width: T != null && T.width ? parseInt(T.width) : "",
|
|
4803
|
+
fixed: (T == null ? void 0 : T.fixed) ?? void 0,
|
|
4804
|
+
sortable: (T == null ? void 0 : T.sortable) ?? !0,
|
|
4805
|
+
filterable: (T == null ? void 0 : T.filterable) ?? !1,
|
|
4806
|
+
operable: (T == null ? void 0 : T.operable) ?? !1,
|
|
4807
|
+
showSummary: (T == null ? void 0 : T.showSummary) ?? !1,
|
|
4808
|
+
align: (T == null ? void 0 : T.align) ?? "left",
|
|
4809
|
+
showOverflowTooltip: (T == null ? void 0 : T.showOverflowTooltip) ?? !0,
|
|
4810
|
+
isNotDrag: (T == null ? void 0 : T.isNotDrag) ?? !1,
|
|
4811
|
+
isEditCol: (T == null ? void 0 : T.isEditCol) ?? !1,
|
|
4812
|
+
isOperate: (T == null ? void 0 : T.isOperate) ?? !1,
|
|
4813
|
+
id: (T == null ? void 0 : T.id) ?? He,
|
|
4814
|
+
type: (T == null ? void 0 : T.label) === "操作" ? "operate" : void 0,
|
|
4815
|
+
formType: (T == null ? void 0 : T.formType) ?? (T != null && T.groupSelect ? "Select" : ""),
|
|
4814
4816
|
// isTableColHidden: t?.isTableColHidden,
|
|
4815
4817
|
// isFormColHidden: t?.isFormColHidden,
|
|
4816
|
-
disabled:
|
|
4817
|
-
options: (
|
|
4818
|
-
value: (
|
|
4819
|
-
isExistChild: (
|
|
4820
|
-
mainKey: (
|
|
4818
|
+
disabled: T == null ? void 0 : T.disabled,
|
|
4819
|
+
options: (T == null ? void 0 : T.options) ?? [],
|
|
4820
|
+
value: (T == null ? void 0 : T.value) ?? "",
|
|
4821
|
+
isExistChild: (T == null ? void 0 : T.isExistChild) ?? !1,
|
|
4822
|
+
mainKey: (T == null ? void 0 : T.mainKey) ?? !0,
|
|
4821
4823
|
// formMenuSelect: t?.formMenuSelect ?? [],
|
|
4822
4824
|
// isRoute: t?.isRoute ?? false,
|
|
4823
4825
|
// groupSelect: t?.groupSelect ? t?.groupSelect?.replaceAll('"', "").split(":") : [],
|
|
@@ -4833,28 +4835,29 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4833
4835
|
// relatedValueId: t?.relatedValueId,
|
|
4834
4836
|
// methodContent: t?.methodContent,
|
|
4835
4837
|
// methodId: t?.methodId
|
|
4836
|
-
allSelectionContents: (
|
|
4837
|
-
filterContent:
|
|
4838
|
-
menus:
|
|
4839
|
-
groups:
|
|
4840
|
-
words:
|
|
4841
|
-
filter:
|
|
4842
|
-
bindMenus:
|
|
4838
|
+
allSelectionContents: (T == null ? void 0 : T.allContents) ?? [],
|
|
4839
|
+
filterContent: T == null ? void 0 : T.filterContents,
|
|
4840
|
+
menus: T == null ? void 0 : T.menus,
|
|
4841
|
+
groups: T == null ? void 0 : T.groups,
|
|
4842
|
+
words: T == null ? void 0 : T.words,
|
|
4843
|
+
filter: T == null ? void 0 : T.filter,
|
|
4844
|
+
bindMenus: T == null ? void 0 : T.bindMenus,
|
|
4845
|
+
fatherPath: T == null ? void 0 : T.fatherPath
|
|
4843
4846
|
});
|
|
4844
4847
|
});
|
|
4845
4848
|
}
|
|
4846
4849
|
Ae.value = (le = p == null ? void 0 : p[0]) == null ? void 0 : le.contents;
|
|
4847
|
-
const Ma =
|
|
4850
|
+
const Ma = ko(S), Pn = (ae) => Array.isArray(ae) ? ae.map((T) => (Array.isArray(T == null ? void 0 : T.children) && T.children.length > 0 ? (T.sortable = !1, Pn(T.children)) : (T == null ? void 0 : T.prop) === "operate" || (T == null ? void 0 : T.label) === "操作" || (T == null ? void 0 : T.type) === "operate" || (T.sortable = !0), T)) : ae;
|
|
4848
4851
|
Pn(Ma), await Xs(Ma), Lu(We.value, Ma), C.value = Ma, $e.value = Ma, h.value = (ee = C.value) == null ? void 0 : ee.map((ae) => ae == null ? void 0 : ae.label);
|
|
4849
|
-
let
|
|
4850
|
-
prop: (ae == null ? void 0 : ae.prop) ?? "a" +
|
|
4852
|
+
let Ba = (J = (oe = al(C.value)) == null ? void 0 : oe.filter((ae) => (ae == null ? void 0 : ae.type) !== "operate")) == null ? void 0 : J.map((ae, T) => ({
|
|
4853
|
+
prop: (ae == null ? void 0 : ae.prop) ?? "a" + T,
|
|
4851
4854
|
column: ae.label
|
|
4852
4855
|
}));
|
|
4853
|
-
Wa.value =
|
|
4854
|
-
let
|
|
4855
|
-
gl.value === "" ?
|
|
4856
|
-
let bl = Array.isArray((ie =
|
|
4857
|
-
A != null && A.contents && ((ye = A == null ? void 0 : A.contents) == null ? void 0 : ye.length) !== 0 && (bl = (me = Te(bl)) == null ? void 0 : me.map((ae,
|
|
4856
|
+
Wa.value = Ba;
|
|
4857
|
+
let Ua = [];
|
|
4858
|
+
gl.value === "" ? Ua = u == null ? void 0 : u[0] : Ua = (u == null ? void 0 : u.find((ae) => (ae == null ? void 0 : ae.selectLabel) === "(" + gl.value + ")")) ?? (u == null ? void 0 : u.find((ae) => !(ae != null && ae.selectLabel)));
|
|
4859
|
+
let bl = Array.isArray((ie = Ua == null ? void 0 : Ua.contents) == null ? void 0 : ie[0]) && ((ue = Ua == null ? void 0 : Ua.contents) != null && ue[0].every((ae) => Array.isArray(ae))) ? (Be = Ua == null ? void 0 : Ua.contents) == null ? void 0 : Be[0] : Ua == null ? void 0 : Ua.contents;
|
|
4860
|
+
A != null && A.contents && ((ye = A == null ? void 0 : A.contents) == null ? void 0 : ye.length) !== 0 && (bl = (me = Te(bl)) == null ? void 0 : me.map((ae, T) => {
|
|
4858
4861
|
if (!Array.isArray(ae)) {
|
|
4859
4862
|
let He = {};
|
|
4860
4863
|
for (let Ca in ae)
|
|
@@ -4866,35 +4869,35 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4866
4869
|
const qt = !!((U = C.value) != null && U.find((ae) => ae.prop === "index"));
|
|
4867
4870
|
bl = ds(bl, A == null ? void 0 : A.contents, qt);
|
|
4868
4871
|
const ml = [];
|
|
4869
|
-
bl == null || bl.forEach((ae,
|
|
4872
|
+
bl == null || bl.forEach((ae, T) => {
|
|
4870
4873
|
var Ca;
|
|
4871
4874
|
let He = {};
|
|
4872
4875
|
if (Array.isArray(ae)) {
|
|
4873
|
-
let
|
|
4876
|
+
let sa = [];
|
|
4874
4877
|
ae == null || ae.filter((ya) => !(ya != null && ya.id)).forEach((ya, Ve) => {
|
|
4875
4878
|
var _l, Nl, Dl, Ye, Ya, pl;
|
|
4876
|
-
if ((_l =
|
|
4879
|
+
if ((_l = Ba == null ? void 0 : Ba[Ve]) != null && _l.prop && !Array.isArray(ya)) {
|
|
4877
4880
|
let $l = {};
|
|
4878
|
-
$l[
|
|
4881
|
+
$l[Ba[Ve].column] = ya, Xe != null && Xe.value && ((Nl = Xe == null ? void 0 : Xe.value) == null ? void 0 : Nl.length) > 0 && ((Dl = Xe == null ? void 0 : Xe.value) != null && Dl.find((Pa) => JSON.stringify(Pa == null ? void 0 : Pa[0]) === JSON.stringify($l))) && (sa = (Ye = Xe == null ? void 0 : Xe.value) == null ? void 0 : Ye.find((Pa) => JSON.stringify(Pa == null ? void 0 : Pa[0]) === JSON.stringify($l))), sa && sa.length > 0 ? He[Ba[Ve].prop] = sa != null && sa.find((Pa) => {
|
|
4879
4882
|
var fl;
|
|
4880
|
-
return ((fl = Object.keys(
|
|
4881
|
-
}) ? (Ya =
|
|
4883
|
+
return ((fl = Object.keys(Pa)) == null ? void 0 : fl[0]) === Ba[Ve].column;
|
|
4884
|
+
}) ? (Ya = sa == null ? void 0 : sa.find((Pa) => {
|
|
4882
4885
|
var fl;
|
|
4883
|
-
return ((fl = Object.keys(
|
|
4884
|
-
})) == null ? void 0 : Ya[
|
|
4885
|
-
} else Array.isArray(ya) && ((pl =
|
|
4886
|
+
return ((fl = Object.keys(Pa)) == null ? void 0 : fl[0]) === Ba[Ve].column;
|
|
4887
|
+
})) == null ? void 0 : Ya[Ba[Ve].column] : ya : He[Ba[Ve].prop] = ya;
|
|
4888
|
+
} else Array.isArray(ya) && ((pl = Ba[Ve]) != null && pl.prop ? He[Ba[Ve].prop] = ya : He.children = jr(ya, Ba));
|
|
4886
4889
|
});
|
|
4887
4890
|
} else
|
|
4888
4891
|
He = ae;
|
|
4889
|
-
if (Array.isArray(ae) && ae.some((
|
|
4890
|
-
const
|
|
4891
|
-
ml.push(Object.assign(He, { id: tn(
|
|
4892
|
-
} else He.id ? ml.push(He) : ml.push(Object.assign(He, { id:
|
|
4892
|
+
if (Array.isArray(ae) && ae.some((sa) => sa == null ? void 0 : sa.id)) {
|
|
4893
|
+
const sa = (Ca = ae == null ? void 0 : ae.find((ya) => ya.id)) == null ? void 0 : Ca.id;
|
|
4894
|
+
ml.push(Object.assign(He, { id: tn(sa) }));
|
|
4895
|
+
} else He.id ? ml.push(He) : ml.push(Object.assign(He, { id: T.toString() }));
|
|
4893
4896
|
});
|
|
4894
4897
|
try {
|
|
4895
|
-
const ae = JSON.parse(sessionStorage.getItem("ocr_last_saved_table") || "null"),
|
|
4896
|
-
if (He && Array.isArray(
|
|
4897
|
-
const
|
|
4898
|
+
const ae = JSON.parse(sessionStorage.getItem("ocr_last_saved_table") || "null"), T = JSON.parse(sessionStorage.getItem("ocr_last_saved_ids") || "null"), He = ae == null ? void 0 : ae.tableId, Ca = ae == null ? void 0 : ae.compIndex;
|
|
4899
|
+
if (He && Array.isArray(T) && T.length > 0 && String(He) === String(n == null ? void 0 : n.parentTableId) && String(Ca) === String(n == null ? void 0 : n.index)) {
|
|
4900
|
+
const sa = new Set(ml.map((Ve) => String(Ve == null ? void 0 : Ve.id))), ya = T.filter((Ve) => !sa.has(String(Ve)));
|
|
4898
4901
|
if (ya.length > 0) {
|
|
4899
4902
|
const Ve = ae == null ? void 0 : ae.pageKey, _l = Ve != null && Ve.startsWith("/") ? Ve.substring(1) : Ve;
|
|
4900
4903
|
((a == null ? void 0 : a[Ve]) || (a == null ? void 0 : a[_l]) || []).filter(
|
|
@@ -4904,7 +4907,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4904
4907
|
}
|
|
4905
4908
|
).forEach((Ye) => {
|
|
4906
4909
|
var Ya;
|
|
4907
|
-
|
|
4910
|
+
sa.has(String(Ye == null ? void 0 : Ye.id)) || (ml.push({ id: Ye == null ? void 0 : Ye.id, ...((Ya = Ye == null ? void 0 : Ye.value) == null ? void 0 : Ya.tableData) || {} }), sa.add(String(Ye == null ? void 0 : Ye.id)));
|
|
4908
4911
|
});
|
|
4909
4912
|
}
|
|
4910
4913
|
}
|
|
@@ -4914,23 +4917,23 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4914
4917
|
(ae) => (ae == null ? void 0 : ae._isOCRRow) && (ae == null ? void 0 : ae._ocrTableId) === (n == null ? void 0 : n.index)
|
|
4915
4918
|
);
|
|
4916
4919
|
V.value = Sn(ml, r, C.value), Fa.value = ml, (we = Fa.value) == null || we.forEach((ae) => {
|
|
4917
|
-
var
|
|
4918
|
-
(
|
|
4920
|
+
var T;
|
|
4921
|
+
(T = ma.value) == null || T.set(ae.id, ae);
|
|
4919
4922
|
});
|
|
4920
4923
|
const fr = JSON.parse(sessionStorage.getItem("ocr_last_saved_table") || "null"), Pr = JSON.parse(sessionStorage.getItem("ocr_last_saved_ids") || "null");
|
|
4921
4924
|
if (fr && Array.isArray(Pr) && Pr.length > 0 && String(fr == null ? void 0 : fr.compIndex) === String(n == null ? void 0 : n.index)) {
|
|
4922
|
-
const ae = new Set((Fa.value || []).map((
|
|
4923
|
-
Pr.filter((
|
|
4925
|
+
const ae = new Set((Fa.value || []).map((T) => String(T == null ? void 0 : T.id)));
|
|
4926
|
+
Pr.filter((T) => !ae.has(String(T)));
|
|
4924
4927
|
}
|
|
4925
4928
|
if (Rn.length > 0) {
|
|
4926
|
-
const ae = new Set((V.value || []).map((He) => He == null ? void 0 : He.id)),
|
|
4927
|
-
|
|
4929
|
+
const ae = new Set((V.value || []).map((He) => He == null ? void 0 : He.id)), T = Rn.filter((He) => !ae.has(He.id));
|
|
4930
|
+
T.length > 0 && (V.value = [...V.value || [], ...T], Fa.value = [...Fa.value || [], ...T], T.forEach((He) => {
|
|
4928
4931
|
var Ca;
|
|
4929
4932
|
return (Ca = ma.value) == null ? void 0 : Ca.set(He.id, He);
|
|
4930
4933
|
}));
|
|
4931
4934
|
}
|
|
4932
4935
|
} else
|
|
4933
|
-
C.value = [],
|
|
4936
|
+
C.value = [], ra.value = [], V.value = [], Fa.value = [], ma.value = /* @__PURE__ */ new Map();
|
|
4934
4937
|
if (F = [...new Set(F)], F = F == null ? void 0 : F.map((S) => ({
|
|
4935
4938
|
label: S,
|
|
4936
4939
|
type: "methodButton"
|
|
@@ -4940,16 +4943,16 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4940
4943
|
})), ((ve = d == null ? void 0 : d.contents) == null ? void 0 : ve.length) > 0)
|
|
4941
4944
|
if ((ze = (de = (be = e == null ? void 0 : e.find((S) => (S == null ? void 0 : S.key) === "filterAllType")) == null ? void 0 : be.value) == null ? void 0 : de.find((S) => (S == null ? void 0 : S.value) === "onButtonContents")) != null && ze.content) {
|
|
4942
4945
|
let S = (Ha = (ha = (va = e == null ? void 0 : e.find((_e) => (_e == null ? void 0 : _e.key) === "filterAllType")) == null ? void 0 : va.value) == null ? void 0 : ha.find((_e) => (_e == null ? void 0 : _e.value) === "onButtonContents")) == null ? void 0 : Ha.content;
|
|
4943
|
-
if (S = (qa = S == null ? void 0 : S.split(":")) == null ? void 0 : qa[1], S = (dl = S.slice(1, (S == null ? void 0 : S.length) - 1)) == null ? void 0 : dl.split(","),
|
|
4946
|
+
if (S = (qa = S == null ? void 0 : S.split(":")) == null ? void 0 : qa[1], S = (dl = S.slice(1, (S == null ? void 0 : S.length) - 1)) == null ? void 0 : dl.split(","), da.value = (xl = d == null ? void 0 : d.contents) == null ? void 0 : xl.filter((_e) => S == null ? void 0 : S.find((Ma) => Ma === (_e == null ? void 0 : _e.label))), fa.value = (Ea = d == null ? void 0 : d.contents) == null ? void 0 : Ea.filter((_e) => S == null ? void 0 : S.find((Ma) => Ma === (_e == null ? void 0 : _e.label))), (cl = d == null ? void 0 : d.contents) != null && cl.some((_e) => (_e == null ? void 0 : _e.label) === "OCR识别") && !((wn = da.value) != null && wn.some((_e) => (_e == null ? void 0 : _e.label) === "OCR识别"))) {
|
|
4944
4947
|
const _e = (Tn = d == null ? void 0 : d.contents) == null ? void 0 : Tn.find((Ma) => (Ma == null ? void 0 : Ma.label) === "OCR识别");
|
|
4945
|
-
|
|
4948
|
+
da.value = [...da.value, _e], fa.value = [...fa.value, _e];
|
|
4946
4949
|
}
|
|
4947
4950
|
Re.value = !!(S != null && S.find((_e) => _e === "搜索")), L.value = !!(S != null && S.find((_e) => _e === "块状显示"));
|
|
4948
4951
|
} else
|
|
4949
|
-
|
|
4952
|
+
da.value = d == null ? void 0 : d.contents, fa.value = d == null ? void 0 : d.contents;
|
|
4950
4953
|
else
|
|
4951
|
-
|
|
4952
|
-
|
|
4954
|
+
da.value = [], fa.value = [];
|
|
4955
|
+
da.value = [...da.value, ...I], fa.value = [...fa.value, ...I], typeof xe.value == "string" && xe.value === "设备管理/试验设备" && (n == null ? void 0 : n.compName) === "设备列表" ? ((On = da.value) != null && On.some((S) => (S == null ? void 0 : S.label) === "OCR识别") || (da.value = [...da.value || [], { label: "OCR识别" }]), (xn = fa.value) != null && xn.some((S) => (S == null ? void 0 : S.label) === "OCR识别") || (fa.value = [...fa.value || [], { label: "OCR识别" }])) : (da.value = (da.value || []).filter((S) => (S == null ? void 0 : S.label) !== "OCR识别"), fa.value = (fa.value || []).filter((S) => (S == null ? void 0 : S.label) !== "OCR识别")), (Nn = da.value) != null && Nn.some((S) => (S == null ? void 0 : S.label) === "切换视图") || (da.value = [...da.value || [], { label: "切换视图" }]), (Dn = fa.value) != null && Dn.some((S) => (S == null ? void 0 : S.label) === "切换视图") || (fa.value = [...fa.value || [], { label: "切换视图" }]), jl.value = (($n = V == null ? void 0 : V.value) == null ? void 0 : $n.length) ?? 0, _n(V.value), Tl.value = V.value, ka.value && (C.value = (Un = (En = ra.value) == null ? void 0 : En.filter((S) => (S == null ? void 0 : S.label) !== "操作")) == null ? void 0 : Un.map((S) => {
|
|
4953
4956
|
var _e;
|
|
4954
4957
|
return {
|
|
4955
4958
|
...S,
|
|
@@ -4966,14 +4969,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4966
4969
|
ea(
|
|
4967
4970
|
() => [n.itemData, gl.value, Os.value, wr.value, Xe == null ? void 0 : Xe.value],
|
|
4968
4971
|
async () => {
|
|
4969
|
-
var e, a, l, r,
|
|
4970
|
-
if ((e = n == null ? void 0 : n.itemData) != null && e.find((c) => (c == null ? void 0 : c.key) === "columnPath") && !((a =
|
|
4972
|
+
var e, a, l, r, t, s;
|
|
4973
|
+
if ((e = n == null ? void 0 : n.itemData) != null && e.find((c) => (c == null ? void 0 : c.key) === "columnPath") && !((a = Bl.value) != null && a.find((c) => {
|
|
4971
4974
|
var d, u;
|
|
4972
4975
|
return (c == null ? void 0 : c.key) === ((u = (d = n == null ? void 0 : n.itemData) == null ? void 0 : d.find((p) => (p == null ? void 0 : p.key) === "columnPath")) == null ? void 0 : u.contents);
|
|
4973
4976
|
}))) {
|
|
4974
|
-
let c =
|
|
4977
|
+
let c = Bl.value, d = {
|
|
4975
4978
|
key: (r = (l = n == null ? void 0 : n.itemData) == null ? void 0 : l.find((u) => (u == null ? void 0 : u.key) === "columnPath")) == null ? void 0 : r.contents,
|
|
4976
|
-
value: (s = (
|
|
4979
|
+
value: (s = (t = n == null ? void 0 : n.itemData) == null ? void 0 : t.find((u) => (u == null ? void 0 : u.key) === "columnUsingPath")) == null ? void 0 : s.contents
|
|
4977
4980
|
};
|
|
4978
4981
|
c != null && c.find((u) => (u == null ? void 0 : u.key) === (d == null ? void 0 : d.key)) ? c = c == null ? void 0 : c.map((u) => ((u == null ? void 0 : u.key) === (d == null ? void 0 : d.key) && (u.value = d.value), u)) : c.push(d), la.setTableViewContents(c);
|
|
4979
4982
|
}
|
|
@@ -4981,7 +4984,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4981
4984
|
},
|
|
4982
4985
|
{ deep: !0, immediate: !0 }
|
|
4983
4986
|
), ea(() => n == null ? void 0 : n.operatingForm, (e) => {
|
|
4984
|
-
e != null && e.form && (ql(e == null ? void 0 : e.form),
|
|
4987
|
+
e != null && e.form && (ql(e == null ? void 0 : e.form), $a.value = e == null ? void 0 : e.dialogTitle, er.value = !0, Xa.value = !0);
|
|
4985
4988
|
}, { immediate: !0, deep: !0 });
|
|
4986
4989
|
const It = () => {
|
|
4987
4990
|
var e;
|
|
@@ -4997,14 +5000,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
4997
5000
|
Ee.value = e, (e == null ? void 0 : e.length) === 0 ? ka.value = !1 : (e != null && e.includes("read") || (ka.value = !0), e != null && e.includes("edit") || (ka.value = !1)), De.value = ((a = n == null ? void 0 : n.config) == null ? void 0 : a.showIndex) || ka.value;
|
|
4998
5001
|
}, { immediate: !0 }), ea(() => ka.value, (e) => {
|
|
4999
5002
|
var a;
|
|
5000
|
-
e ? (Ur("viewChange"), la.setCacheUpdatingData(null)) : (
|
|
5003
|
+
e ? (Ur("viewChange"), la.setCacheUpdatingData(null)) : (da.value = fa.value, C.value = $e.value, Ml.value && (la.setTableLoading(n == null ? void 0 : n.index), ge("change", Ml.value))), De.value = e || ((a = n == null ? void 0 : n.config) == null ? void 0 : a.showIndex);
|
|
5001
5004
|
}, { immediate: !0 }), ea(() => {
|
|
5002
5005
|
var e;
|
|
5003
5006
|
return (e = an.value) == null ? void 0 : e.length;
|
|
5004
5007
|
}, (e) => {
|
|
5005
5008
|
e === 0 && (he.currentPage = 1);
|
|
5006
5009
|
}), ea(() => n == null ? void 0 : n.compNames, (e) => {
|
|
5007
|
-
|
|
5010
|
+
na.contents = [
|
|
5008
5011
|
{
|
|
5009
5012
|
label: "列表名",
|
|
5010
5013
|
prop: "groupName",
|
|
@@ -5021,7 +5024,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5021
5024
|
var l;
|
|
5022
5025
|
Ur("createClick"), a === he.pageSize && (he.currentPage = Math.ceil(((l = V.value) == null ? void 0 : l.length) / he.pageSize));
|
|
5023
5026
|
}, Wt = (e, a, l) => {
|
|
5024
|
-
var r,
|
|
5027
|
+
var r, t;
|
|
5025
5028
|
if (ka.value) {
|
|
5026
5029
|
const s = e == null ? void 0 : e.id;
|
|
5027
5030
|
s != null && (Q.value.has(s) || Q.value.set(s, Te(e)), E.value.add(s));
|
|
@@ -5032,22 +5035,22 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5032
5035
|
}), Er(l, e, a);
|
|
5033
5036
|
return;
|
|
5034
5037
|
}
|
|
5035
|
-
Er(l, e, a), Ta.value = Te(e), rl.value = e == null ? void 0 : e.id,
|
|
5038
|
+
Er(l, e, a), Ta.value = Te(e), rl.value = e == null ? void 0 : e.id, jl.value = (t = V.value) == null ? void 0 : t.length, $a.value = e != null && e._isTemp ? "新增" : "编辑", Yl(!1);
|
|
5036
5039
|
}, Sa = (e) => {
|
|
5037
5040
|
var u, p, b, N, A, I, F, Z, g, w, H;
|
|
5038
|
-
const { row: a, column: l, item: r, slotData:
|
|
5039
|
-
let s = a != null && a[l == null ? void 0 : l.prop] || (a == null ? void 0 : a[l == null ? void 0 : l.prop]) === 0 ? ((p = (u = a == null ? void 0 : a[l == null ? void 0 : l.prop]) == null ? void 0 : u[0]) == null ? void 0 : p.contents) ?? ((a == null ? void 0 : a[l == null ? void 0 : l.prop]) === 0 ? "0" : a == null ? void 0 : a[l == null ? void 0 : l.prop]) : ((N = (b = a == null ? void 0 : a[r == null ? void 0 : r.prop]) == null ? void 0 : b[0]) == null ? void 0 : N.contents) ?? (a == null ? void 0 : a[r == null ? void 0 : r.prop]) ?? ((I = (A =
|
|
5041
|
+
const { row: a, column: l, item: r, slotData: t } = e;
|
|
5042
|
+
let s = a != null && a[l == null ? void 0 : l.prop] || (a == null ? void 0 : a[l == null ? void 0 : l.prop]) === 0 ? ((p = (u = a == null ? void 0 : a[l == null ? void 0 : l.prop]) == null ? void 0 : u[0]) == null ? void 0 : p.contents) ?? ((a == null ? void 0 : a[l == null ? void 0 : l.prop]) === 0 ? "0" : a == null ? void 0 : a[l == null ? void 0 : l.prop]) : ((N = (b = a == null ? void 0 : a[r == null ? void 0 : r.prop]) == null ? void 0 : b[0]) == null ? void 0 : N.contents) ?? (a == null ? void 0 : a[r == null ? void 0 : r.prop]) ?? ((I = (A = t == null ? void 0 : t[r == null ? void 0 : r.prop]) == null ? void 0 : A[0]) == null ? void 0 : I.contents) ?? (t == null ? void 0 : t[r == null ? void 0 : r.prop]) ?? ((g = (Z = a == null ? void 0 : a[(F = r == null ? void 0 : r.child) == null ? void 0 : F.prop]) == null ? void 0 : Z[0]) == null ? void 0 : g.contents) ?? (a == null ? void 0 : a[(w = r == null ? void 0 : r.child) == null ? void 0 : w.prop]), d = Array.isArray(s) && !(s != null && s.every((O) => typeof O == "string" || typeof O == "number")) ? "查看" : s;
|
|
5040
5043
|
return d = Array.isArray(d) ? d.join(",") : d, (l == null ? void 0 : l.formType) === "Date" && (d = (H = Lr(d)) == null ? void 0 : H.format("YYYYMMDD")), d;
|
|
5041
5044
|
}, Jt = (e) => {
|
|
5042
5045
|
var p, b, N, A, I, F, Z, g, w, H;
|
|
5043
|
-
const { row: a, column: l, item: r, slotData:
|
|
5044
|
-
let s = a != null && a[l == null ? void 0 : l.prop] ? ((b = (p = a == null ? void 0 : a[l == null ? void 0 : l.prop]) == null ? void 0 : p[0]) == null ? void 0 : b.contents) ?? (a == null ? void 0 : a[l == null ? void 0 : l.prop]) : ((A = (N = a == null ? void 0 : a[r == null ? void 0 : r.prop]) == null ? void 0 : N[0]) == null ? void 0 : A.contents) ?? (a == null ? void 0 : a[r == null ? void 0 : r.prop]) ?? ((F = (I =
|
|
5045
|
-
const d = Array.isArray(s) && !(s != null && s.every((
|
|
5046
|
+
const { row: a, column: l, item: r, slotData: t } = e;
|
|
5047
|
+
let s = a != null && a[l == null ? void 0 : l.prop] ? ((b = (p = a == null ? void 0 : a[l == null ? void 0 : l.prop]) == null ? void 0 : p[0]) == null ? void 0 : b.contents) ?? (a == null ? void 0 : a[l == null ? void 0 : l.prop]) : ((A = (N = a == null ? void 0 : a[r == null ? void 0 : r.prop]) == null ? void 0 : N[0]) == null ? void 0 : A.contents) ?? (a == null ? void 0 : a[r == null ? void 0 : r.prop]) ?? ((F = (I = t == null ? void 0 : t[r == null ? void 0 : r.prop]) == null ? void 0 : I[0]) == null ? void 0 : F.contents) ?? (t == null ? void 0 : t[r == null ? void 0 : r.prop]) ?? ((w = (g = a == null ? void 0 : a[(Z = r == null ? void 0 : r.child) == null ? void 0 : Z.prop]) == null ? void 0 : g[0]) == null ? void 0 : w.contents) ?? (a == null ? void 0 : a[(H = r == null ? void 0 : r.child) == null ? void 0 : H.prop]);
|
|
5048
|
+
const d = Array.isArray(s) && !(s != null && s.every((O) => typeof O == "string" || typeof O == "number")), u = Array.isArray(s) && (s == null ? void 0 : s.find((O) => O == null ? void 0 : O.url));
|
|
5046
5049
|
return d && u;
|
|
5047
5050
|
}, Ht = (e, a) => e.find((l) => Object.values(l).some((r) => r === a));
|
|
5048
5051
|
return ea(() => zr.value, async (e) => {
|
|
5049
5052
|
if (e) {
|
|
5050
|
-
Ze.setContentLoading(!0), await
|
|
5053
|
+
Ze.setContentLoading(!0), await La();
|
|
5051
5054
|
const a = Ht(V.value, e == null ? void 0 : e.data);
|
|
5052
5055
|
if (!a) return Ze.setContentLoading(!1);
|
|
5053
5056
|
await on(e == null ? void 0 : e.data, null, a, { data: e == null ? void 0 : e.data }), Ze.setContentLoading(!1);
|
|
@@ -5055,9 +5058,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5055
5058
|
}, { deep: !0, immediate: !0 }), ea(() => n == null ? void 0 : n.cacheNewData, (e) => {
|
|
5056
5059
|
var a;
|
|
5057
5060
|
e && (Array.isArray(e) ? e.forEach((l) => {
|
|
5058
|
-
var r,
|
|
5061
|
+
var r, t, s, c, d;
|
|
5059
5062
|
if ((l == null ? void 0 : l.compId) === (n == null ? void 0 : n.index) && (l != null && l.resId) && ((r = l == null ? void 0 : l.data) != null && r.id)) {
|
|
5060
|
-
const u = (
|
|
5063
|
+
const u = (t = l == null ? void 0 : l.data) == null ? void 0 : t.id, p = l == null ? void 0 : l.resId;
|
|
5061
5064
|
if (V.value = (s = V.value) == null ? void 0 : s.map((b) => (b == null ? void 0 : b.id) === u ? {
|
|
5062
5065
|
...b,
|
|
5063
5066
|
id: p
|
|
@@ -5075,10 +5078,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5075
5078
|
} : l;
|
|
5076
5079
|
})));
|
|
5077
5080
|
}, { immediate: !0, deep: !0 }), (e, a) => {
|
|
5078
|
-
var w, H,
|
|
5079
|
-
const l = Pe("svg-icon"), r = Pe("el-popover"),
|
|
5080
|
-
return
|
|
5081
|
-
en.value ? (
|
|
5081
|
+
var w, H, O, v;
|
|
5082
|
+
const l = Pe("svg-icon"), r = Pe("el-popover"), t = Pe("el-switch"), s = Pe("el-checkbox"), c = Pe("el-radio"), d = Pe("el-radio-group"), u = Pe("el-checkbox-group"), p = Pe("el-button"), b = Pe("LookComponent"), N = Pe("el-icon"), A = Pe("el-progress"), I = Pe("el-alert"), F = Pe("el-table-column"), Z = Pe("el-table"), g = Pe("el-upload");
|
|
5083
|
+
return j(), re("div", Ku, [
|
|
5084
|
+
en.value ? (j(), Me(co, {
|
|
5082
5085
|
id: "excel-table",
|
|
5083
5086
|
pageObj: he,
|
|
5084
5087
|
showIndex: De.value,
|
|
@@ -5096,13 +5099,13 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5096
5099
|
isShowDelete: !1,
|
|
5097
5100
|
allowSelect: ne.value,
|
|
5098
5101
|
onDbClickRow: tt,
|
|
5099
|
-
extraButton:
|
|
5102
|
+
extraButton: da.value,
|
|
5100
5103
|
rowButton: nl.value,
|
|
5101
5104
|
cacheExtraButtons: fa.value,
|
|
5102
5105
|
isClearSelection: ((H = Qa.value) == null ? void 0 : H.length) === 0,
|
|
5103
5106
|
onDoCurrentChange: Ls,
|
|
5104
5107
|
onDoSizeChange: Ms,
|
|
5105
|
-
onSortChange:
|
|
5108
|
+
onSortChange: Bs,
|
|
5106
5109
|
onContentClick: on,
|
|
5107
5110
|
onRowClick: it,
|
|
5108
5111
|
onSelectChange: qs,
|
|
@@ -5116,20 +5119,20 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5116
5119
|
onAddNewRow: Ws,
|
|
5117
5120
|
bottomButton: Ae.value
|
|
5118
5121
|
}, Zt({
|
|
5119
|
-
headerButton: Y((
|
|
5120
|
-
var f,
|
|
5122
|
+
headerButton: Y((o) => {
|
|
5123
|
+
var f, m;
|
|
5121
5124
|
return [
|
|
5122
|
-
k.showHeader ? (
|
|
5125
|
+
k.showHeader ? (j(), Me(cu, {
|
|
5123
5126
|
key: 0,
|
|
5124
5127
|
pageLayout: k.pageLayout,
|
|
5125
|
-
lockingPage:
|
|
5128
|
+
lockingPage: Ra(Kr) === Ra(xe),
|
|
5126
5129
|
filterValues: nt.value,
|
|
5127
5130
|
selectNums: (f = Qa.value) == null ? void 0 : f.length,
|
|
5128
|
-
dataNums: (
|
|
5131
|
+
dataNums: (m = V.value) == null ? void 0 : m.length,
|
|
5129
5132
|
compName: k.compName,
|
|
5130
5133
|
isDevMode: k.isDevMode,
|
|
5131
|
-
buttons:
|
|
5132
|
-
onButtonClick: a[1] || (a[1] = (
|
|
5134
|
+
buttons: o.buttons,
|
|
5135
|
+
onButtonClick: a[1] || (a[1] = (_, R, X) => Dr(_, R, { extra: X })),
|
|
5133
5136
|
columns: C.value,
|
|
5134
5137
|
onFilter: st,
|
|
5135
5138
|
onGetImportData: Fs,
|
|
@@ -5139,10 +5142,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5139
5142
|
];
|
|
5140
5143
|
}),
|
|
5141
5144
|
viewport: Y(() => {
|
|
5142
|
-
var
|
|
5145
|
+
var o, f, m, _;
|
|
5143
5146
|
return [
|
|
5144
|
-
((
|
|
5145
|
-
(f = Ee.value) != null && f.includes("read") && ((
|
|
5147
|
+
((o = V.value) == null ? void 0 : o.length) > 0 && k.allowOperate && L.value ? (j(), re("div", Hu, [
|
|
5148
|
+
(f = Ee.value) != null && f.includes("read") && ((m = Ee.value) != null && m.includes("edit")) && ((_ = nl.value) != null && _.some((R) => (R == null ? void 0 : R.label) === "编辑")) && !ur.value && Ra(Kr) !== Ra(xe) ? (j(), re("span", {
|
|
5146
5149
|
key: 0,
|
|
5147
5150
|
title: "编辑表格",
|
|
5148
5151
|
onClick: It
|
|
@@ -5155,11 +5158,11 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5155
5158
|
])) : Ne("", !0)
|
|
5156
5159
|
];
|
|
5157
5160
|
}),
|
|
5158
|
-
rowCreate: Y(({ row:
|
|
5161
|
+
rowCreate: Y(({ row: o, index: f }) => [
|
|
5159
5162
|
z("span", {
|
|
5160
5163
|
title: "新增",
|
|
5161
5164
|
class: "row-create-wrap",
|
|
5162
|
-
onClick: (
|
|
5165
|
+
onClick: (m) => Kt(o, f)
|
|
5163
5166
|
}, [
|
|
5164
5167
|
q(l, {
|
|
5165
5168
|
name: "rowCreate",
|
|
@@ -5186,36 +5189,36 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5186
5189
|
default: Y(() => [
|
|
5187
5190
|
z("div", Gu, [
|
|
5188
5191
|
a[22] || (a[22] = z("div", { class: "group-title" }, "表格操作", -1)),
|
|
5189
|
-
q(
|
|
5190
|
-
"model-value":
|
|
5192
|
+
q(t, {
|
|
5193
|
+
"model-value": B.value,
|
|
5191
5194
|
"active-text": "排序",
|
|
5192
5195
|
"inactive-text": "",
|
|
5193
5196
|
style: { "margin-right": "8px" },
|
|
5194
|
-
onChange: a[2] || (a[2] = (
|
|
5197
|
+
onChange: a[2] || (a[2] = (o) => Qs(o))
|
|
5195
5198
|
}, null, 8, ["model-value"]),
|
|
5196
5199
|
a[23] || (a[23] = z("div", { class: "group-title" }, "表格列操作", -1)),
|
|
5197
5200
|
q(u, {
|
|
5198
5201
|
modelValue: h.value,
|
|
5199
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
5202
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => h.value = o),
|
|
5200
5203
|
style: { height: "100%" },
|
|
5201
5204
|
min: 2,
|
|
5202
5205
|
ref_key: "checkboxGroupRef",
|
|
5203
5206
|
ref: y
|
|
5204
5207
|
}, {
|
|
5205
5208
|
default: Y(() => [
|
|
5206
|
-
(
|
|
5209
|
+
(j(!0), re(ca, null, Aa(Wl.value, (o) => (j(), re("div", {
|
|
5207
5210
|
style: { display: "flex", "align-items": "center" },
|
|
5208
|
-
key:
|
|
5211
|
+
key: o.label
|
|
5209
5212
|
}, [
|
|
5210
5213
|
q(s, {
|
|
5211
|
-
value:
|
|
5214
|
+
value: o.label,
|
|
5212
5215
|
style: { width: "100%", marginRight: 0 }
|
|
5213
5216
|
}, {
|
|
5214
5217
|
default: Y(() => [
|
|
5215
5218
|
z("span", {
|
|
5216
|
-
title:
|
|
5219
|
+
title: o.label,
|
|
5217
5220
|
style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
5218
|
-
}, Fe(
|
|
5221
|
+
}, Fe(o.label), 9, Xu)
|
|
5219
5222
|
]),
|
|
5220
5223
|
_: 2
|
|
5221
5224
|
}, 1032, ["value"]),
|
|
@@ -5236,22 +5239,22 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5236
5239
|
var f;
|
|
5237
5240
|
return [
|
|
5238
5241
|
z("div", Qu, [
|
|
5239
|
-
(
|
|
5240
|
-
var
|
|
5241
|
-
return (
|
|
5242
|
-
}), (
|
|
5243
|
-
var
|
|
5244
|
-
return
|
|
5245
|
-
fe[
|
|
5242
|
+
(j(!0), re(ca, null, Aa((f = Object.keys(o)) == null ? void 0 : f.filter((m) => {
|
|
5243
|
+
var _;
|
|
5244
|
+
return (_ = Se.value) == null ? void 0 : _.find((R) => (R == null ? void 0 : R.value) === m);
|
|
5245
|
+
}), (m) => {
|
|
5246
|
+
var _, R;
|
|
5247
|
+
return j(), re("div", { key: m }, [
|
|
5248
|
+
fe[m] == "radio" ? (j(), re("div", Zu, [
|
|
5246
5249
|
a[21] || (a[21] = z("div", null, "固定:", -1)),
|
|
5247
5250
|
q(d, {
|
|
5248
|
-
"model-value":
|
|
5249
|
-
onChange: (X) => rn(X,
|
|
5251
|
+
"model-value": o == null ? void 0 : o[m],
|
|
5252
|
+
onChange: (X) => rn(X, m, o)
|
|
5250
5253
|
}, {
|
|
5251
5254
|
default: Y(() => {
|
|
5252
5255
|
var X, i;
|
|
5253
5256
|
return [
|
|
5254
|
-
(
|
|
5257
|
+
(j(!0), re(ca, null, Aa((i = (X = Se.value) == null ? void 0 : X.find((D) => (D == null ? void 0 : D.value) === m)) == null ? void 0 : i.options, (D) => (j(), Me(c, {
|
|
5255
5258
|
key: D == null ? void 0 : D.value,
|
|
5256
5259
|
label: D == null ? void 0 : D.value,
|
|
5257
5260
|
value: D == null ? void 0 : D.value
|
|
@@ -5266,11 +5269,11 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5266
5269
|
_: 2
|
|
5267
5270
|
}, 1032, ["model-value", "onChange"])
|
|
5268
5271
|
])) : Ne("", !0),
|
|
5269
|
-
fe[
|
|
5272
|
+
fe[m] == "switch" ? (j(), Me(t, {
|
|
5270
5273
|
key: 1,
|
|
5271
|
-
"model-value":
|
|
5272
|
-
"active-text": (R = (
|
|
5273
|
-
onChange: (X) => rn(X,
|
|
5274
|
+
"model-value": o == null ? void 0 : o[m],
|
|
5275
|
+
"active-text": (R = (_ = Se.value) == null ? void 0 : _.find((X) => (X == null ? void 0 : X.value) === m)) == null ? void 0 : R.label,
|
|
5276
|
+
onChange: (X) => rn(X, m, o)
|
|
5274
5277
|
}, null, 8, ["model-value", "active-text", "onChange"])) : Ne("", !0)
|
|
5275
5278
|
]);
|
|
5276
5279
|
}), 128))
|
|
@@ -5295,10 +5298,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5295
5298
|
_: 1
|
|
5296
5299
|
})
|
|
5297
5300
|
]),
|
|
5298
|
-
content: Y((
|
|
5299
|
-
var f,
|
|
5301
|
+
content: Y((o) => {
|
|
5302
|
+
var f, m, _, R, X, i, D, le, ee, oe, J, ie, ue, Be, ye, me, U, pe, we, Ce;
|
|
5300
5303
|
return [
|
|
5301
|
-
((f =
|
|
5304
|
+
((f = o == null ? void 0 : o.column) == null ? void 0 : f.label) === "证书附件" || ((m = o == null ? void 0 : o.column) == null ? void 0 : m.prop) === "证书附件" ? (j(), re("div", ed, [
|
|
5302
5305
|
q(l, {
|
|
5303
5306
|
name: "query",
|
|
5304
5307
|
style: {
|
|
@@ -5307,10 +5310,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5307
5310
|
color: "var(--ssComponent-theme-color)",
|
|
5308
5311
|
cursor: "pointer"
|
|
5309
5312
|
},
|
|
5310
|
-
onClick: ia((ve) => Nt(
|
|
5313
|
+
onClick: ia((ve) => Nt(o), ["stop"]),
|
|
5311
5314
|
title: "查看OCR图片"
|
|
5312
5315
|
}, null, 8, ["onClick"])
|
|
5313
|
-
])) : Jt(
|
|
5316
|
+
])) : Jt(o) ? (j(), Me(r, {
|
|
5314
5317
|
key: 1,
|
|
5315
5318
|
"popper-class": "file-popover",
|
|
5316
5319
|
placement: "right",
|
|
@@ -5319,13 +5322,13 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5319
5322
|
width: "auto"
|
|
5320
5323
|
}, {
|
|
5321
5324
|
reference: Y(() => [
|
|
5322
|
-
z("span", ad, Fe(Sa(
|
|
5325
|
+
z("span", ad, Fe(Sa(o)), 1)
|
|
5323
5326
|
]),
|
|
5324
5327
|
default: Y(() => {
|
|
5325
5328
|
var ve, be;
|
|
5326
5329
|
return [
|
|
5327
5330
|
z("div", ld, [
|
|
5328
|
-
(
|
|
5331
|
+
(j(!0), re(ca, null, Aa((be = o == null ? void 0 : o.row) == null ? void 0 : be[(ve = o == null ? void 0 : o.column) == null ? void 0 : ve.prop], (de) => (j(), re("div", rd, [
|
|
5329
5332
|
z("div", {
|
|
5330
5333
|
class: "prop-url",
|
|
5331
5334
|
title: Jl(de),
|
|
@@ -5340,23 +5343,23 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5340
5343
|
];
|
|
5341
5344
|
}),
|
|
5342
5345
|
_: 2
|
|
5343
|
-
}, 1024)) : (
|
|
5346
|
+
}, 1024)) : (j(), re("div", {
|
|
5344
5347
|
key: 2,
|
|
5345
5348
|
style: Gl({
|
|
5346
|
-
color: !Array.isArray(Sa(
|
|
5347
|
-
textDecoration: !Array.isArray(Sa(
|
|
5348
|
-
cursor: !Array.isArray(Sa(
|
|
5349
|
-
marginLeft: (
|
|
5349
|
+
color: !Array.isArray(Sa(o)) && ((R = (_ = Sa(o)) == null ? void 0 : _.toString()) != null && R.includes(".txt") || (i = (X = Sa(o)) == null ? void 0 : X.toString()) != null && i.includes(".cpt") || (le = (D = Sa(o)) == null ? void 0 : D.toString()) != null && le.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
5350
|
+
textDecoration: !Array.isArray(Sa(o)) && ((oe = (ee = Sa(o)) == null ? void 0 : ee.toString()) != null && oe.includes(".txt") || (ie = (J = Sa(o)) == null ? void 0 : J.toString()) != null && ie.includes(".cpt") || (Be = (ue = Sa(o)) == null ? void 0 : ue.toString()) != null && Be.includes(".cyd")) ? "underline" : "",
|
|
5351
|
+
cursor: !Array.isArray(Sa(o)) && ((me = (ye = Sa(o)) == null ? void 0 : ye.toString()) != null && me.includes(".txt") || (pe = (U = Sa(o)) == null ? void 0 : U.toString()) != null && pe.includes(".cpt") || (Ce = (we = Sa(o)) == null ? void 0 : we.toString()) != null && Ce.includes(".cyd")) ? "pointer" : "",
|
|
5352
|
+
marginLeft: (o == null ? void 0 : o.colIndex) === 0 ? `${((o == null ? void 0 : o.level) ?? 0) * 20}px` : 0
|
|
5350
5353
|
}),
|
|
5351
|
-
onClick: (ve) => Ps(Sa(
|
|
5352
|
-
}, Fe(Sa(
|
|
5354
|
+
onClick: (ve) => Ps(Sa(o))
|
|
5355
|
+
}, Fe(Sa(o) === 0 ? "0" : Sa(o)), 13, td))
|
|
5353
5356
|
];
|
|
5354
5357
|
}),
|
|
5355
5358
|
_: 2
|
|
5356
5359
|
}, [
|
|
5357
|
-
((
|
|
5360
|
+
((O = nl.value) == null ? void 0 : O.length) > 0 ? {
|
|
5358
5361
|
name: "actions",
|
|
5359
|
-
fn: Y(({ item:
|
|
5362
|
+
fn: Y(({ item: o, fIndex: f }) => [
|
|
5360
5363
|
q(r, {
|
|
5361
5364
|
title: "",
|
|
5362
5365
|
placement: "left-start",
|
|
@@ -5372,15 +5375,15 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5372
5375
|
]),
|
|
5373
5376
|
default: Y(() => [
|
|
5374
5377
|
z("div", Wu, [
|
|
5375
|
-
(
|
|
5378
|
+
(j(!0), re(ca, null, Aa(lt(nl.value, o), (m, _) => (j(), re("div", {
|
|
5376
5379
|
class: "menu-config-item",
|
|
5377
|
-
key:
|
|
5378
|
-
onClick: ia((R) => Dr(
|
|
5380
|
+
key: _,
|
|
5381
|
+
onClick: ia((R) => Dr(m == null ? void 0 : m.label, o, { extra: m, index: f }), ["stop"])
|
|
5379
5382
|
}, [
|
|
5380
5383
|
z("div", {
|
|
5381
|
-
style: Gl({ color:
|
|
5384
|
+
style: Gl({ color: m == null ? void 0 : m.textColor }),
|
|
5382
5385
|
class: "extra-button-label"
|
|
5383
|
-
}, Fe(
|
|
5386
|
+
}, Fe(m == null ? void 0 : m.label), 5)
|
|
5384
5387
|
], 8, Ju))), 128))
|
|
5385
5388
|
])
|
|
5386
5389
|
]),
|
|
@@ -5392,7 +5395,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5392
5395
|
]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection", "bottomButton"])) : Ne("", !0),
|
|
5393
5396
|
Ne("", !0),
|
|
5394
5397
|
q(ul, {
|
|
5395
|
-
title:
|
|
5398
|
+
title: $a.value,
|
|
5396
5399
|
visible: Xa.value,
|
|
5397
5400
|
width: Ns.value,
|
|
5398
5401
|
onBeforeDestroy: Zs,
|
|
@@ -5415,9 +5418,9 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5415
5418
|
])
|
|
5416
5419
|
]),
|
|
5417
5420
|
footer: Y(() => [
|
|
5418
|
-
er.value ? (
|
|
5421
|
+
er.value ? (j(), re("div", id, [
|
|
5419
5422
|
q(p, {
|
|
5420
|
-
onClick: a[4] || (a[4] = (
|
|
5423
|
+
onClick: a[4] || (a[4] = (o) => Xa.value = !1),
|
|
5421
5424
|
id: "themeBorderButton"
|
|
5422
5425
|
}, {
|
|
5423
5426
|
default: Y(() => a[26] || (a[26] = [
|
|
@@ -5428,7 +5431,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5428
5431
|
}),
|
|
5429
5432
|
q(p, {
|
|
5430
5433
|
class: "ok-button",
|
|
5431
|
-
onClick: a[5] || (a[5] = (
|
|
5434
|
+
onClick: a[5] || (a[5] = (o) => Yl(!0)),
|
|
5432
5435
|
id: "themeButton"
|
|
5433
5436
|
}, {
|
|
5434
5437
|
default: Y(() => a[27] || (a[27] = [
|
|
@@ -5442,10 +5445,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5442
5445
|
_: 1
|
|
5443
5446
|
}, 8, ["title", "visible", "width"]),
|
|
5444
5447
|
q(ul, {
|
|
5445
|
-
title:
|
|
5448
|
+
title: $a.value,
|
|
5446
5449
|
visible: Vl.value,
|
|
5447
5450
|
width: br.value,
|
|
5448
|
-
onBeforeDestroy: a[7] || (a[7] = (
|
|
5451
|
+
onBeforeDestroy: a[7] || (a[7] = (o) => Vl.value = !1)
|
|
5449
5452
|
}, {
|
|
5450
5453
|
default: Y(() => [
|
|
5451
5454
|
q(gu)
|
|
@@ -5453,7 +5456,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5453
5456
|
footer: Y(() => [
|
|
5454
5457
|
z("div", ud, [
|
|
5455
5458
|
q(p, {
|
|
5456
|
-
onClick: a[6] || (a[6] = (
|
|
5459
|
+
onClick: a[6] || (a[6] = (o) => Vl.value = !1),
|
|
5457
5460
|
class: "cancel-button",
|
|
5458
5461
|
id: "themeBorderButton"
|
|
5459
5462
|
}, {
|
|
@@ -5478,14 +5481,14 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5478
5481
|
]),
|
|
5479
5482
|
_: 1
|
|
5480
5483
|
}, 8, ["title", "visible", "width"]),
|
|
5481
|
-
Qe.value ? (
|
|
5484
|
+
Qe.value ? (j(), Me(po, {
|
|
5482
5485
|
key: 2,
|
|
5483
|
-
fileDataList:
|
|
5486
|
+
fileDataList: Da.value,
|
|
5484
5487
|
onDestroy: ot
|
|
5485
5488
|
}, null, 8, ["fileDataList"])) : Ne("", !0),
|
|
5486
|
-
|
|
5489
|
+
ua.value ? (j(), Me(ul, {
|
|
5487
5490
|
key: 3,
|
|
5488
|
-
visible:
|
|
5491
|
+
visible: ua.value,
|
|
5489
5492
|
onBeforeDestroy: Pt,
|
|
5490
5493
|
style: { height: "80vh", width: "80vw" },
|
|
5491
5494
|
"body-class": "three-dialog-body",
|
|
@@ -5501,7 +5504,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5501
5504
|
}, 8, ["visible"])) : Ne("", !0),
|
|
5502
5505
|
q(ul, {
|
|
5503
5506
|
visible: e.componentVisible,
|
|
5504
|
-
onBeforeDestroy: a[8] || (a[8] = (
|
|
5507
|
+
onBeforeDestroy: a[8] || (a[8] = (o) => e.componentVisible = !1),
|
|
5505
5508
|
width: br.value,
|
|
5506
5509
|
style: { height: "70vh" }
|
|
5507
5510
|
}, {
|
|
@@ -5527,7 +5530,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5527
5530
|
z("div", dd, [
|
|
5528
5531
|
z("div", cd, [
|
|
5529
5532
|
z("div", {
|
|
5530
|
-
class:
|
|
5533
|
+
class: ja(["ocr-step-item", { active: ga.value === 1 }])
|
|
5531
5534
|
}, a[30] || (a[30] = [
|
|
5532
5535
|
z("div", { class: "step-circle" }, "1", -1),
|
|
5533
5536
|
z("div", {
|
|
@@ -5537,7 +5540,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5537
5540
|
]), 2),
|
|
5538
5541
|
a[33] || (a[33] = z("div", { class: "ocr-step-connector" }, null, -1)),
|
|
5539
5542
|
z("div", {
|
|
5540
|
-
class:
|
|
5543
|
+
class: ja(["ocr-step-item", { active: ga.value === 2 }])
|
|
5541
5544
|
}, a[31] || (a[31] = [
|
|
5542
5545
|
z("div", { class: "step-circle" }, "2", -1),
|
|
5543
5546
|
z("div", {
|
|
@@ -5547,7 +5550,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5547
5550
|
]), 2),
|
|
5548
5551
|
a[34] || (a[34] = z("div", { class: "ocr-step-connector" }, null, -1)),
|
|
5549
5552
|
z("div", {
|
|
5550
|
-
class:
|
|
5553
|
+
class: ja(["ocr-step-item", { active: ga.value === 3 }])
|
|
5551
5554
|
}, a[32] || (a[32] = [
|
|
5552
5555
|
z("div", { class: "step-circle" }, "3", -1),
|
|
5553
5556
|
z("div", {
|
|
@@ -5556,7 +5559,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5556
5559
|
}, "文件提交", -1)
|
|
5557
5560
|
]), 2)
|
|
5558
5561
|
]),
|
|
5559
|
-
ga.value === 1 ? (
|
|
5562
|
+
ga.value === 1 ? (j(), re("div", pd, [
|
|
5560
5563
|
q(p, {
|
|
5561
5564
|
onClick: ht,
|
|
5562
5565
|
class: "ocr-action-btn",
|
|
@@ -5582,37 +5585,37 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5582
5585
|
__: [36]
|
|
5583
5586
|
}, 8, ["disabled"])
|
|
5584
5587
|
])) : Ne("", !0),
|
|
5585
|
-
ga.value === 1 ? (
|
|
5588
|
+
ga.value === 1 ? (j(), re("div", fd, [
|
|
5586
5589
|
z("div", vd, [
|
|
5587
|
-
(
|
|
5588
|
-
var
|
|
5589
|
-
return
|
|
5590
|
+
(j(!0), re(ca, null, Aa(qe.value, (o, f) => {
|
|
5591
|
+
var m;
|
|
5592
|
+
return j(), re("div", {
|
|
5590
5593
|
key: f,
|
|
5591
5594
|
class: "ocr-file-item"
|
|
5592
5595
|
}, [
|
|
5593
5596
|
z("div", hd, [
|
|
5594
|
-
|
|
5597
|
+
o.raw && ((m = o.raw.type) != null && m.startsWith("image/")) ? (j(), re("img", {
|
|
5595
5598
|
key: 0,
|
|
5596
|
-
src: Ct(
|
|
5599
|
+
src: Ct(o),
|
|
5597
5600
|
alt: "预览",
|
|
5598
5601
|
class: "thumbnail-image"
|
|
5599
|
-
}, null, 8, yd)) : (
|
|
5602
|
+
}, null, 8, yd)) : (j(), re("div", gd, [
|
|
5600
5603
|
q(N, { size: 40 }, {
|
|
5601
5604
|
default: Y(() => [
|
|
5602
|
-
q(
|
|
5605
|
+
q(Ra(ao))
|
|
5603
5606
|
]),
|
|
5604
5607
|
_: 1
|
|
5605
5608
|
})
|
|
5606
5609
|
])),
|
|
5607
5610
|
z("div", {
|
|
5608
|
-
class:
|
|
5609
|
-
uploading: oa(
|
|
5610
|
-
processing: oa(
|
|
5611
|
-
completed: oa(
|
|
5612
|
-
failed: oa(
|
|
5611
|
+
class: ja(["file-progress-ring", {
|
|
5612
|
+
uploading: oa(o) === "uploading",
|
|
5613
|
+
processing: oa(o) === "processing",
|
|
5614
|
+
completed: oa(o) === "completed" || oa(o) === "uploaded",
|
|
5615
|
+
failed: oa(o) === "failed"
|
|
5613
5616
|
}])
|
|
5614
5617
|
}, [
|
|
5615
|
-
(
|
|
5618
|
+
(j(), re("svg", bd, [
|
|
5616
5619
|
a[37] || (a[37] = z("circle", {
|
|
5617
5620
|
class: "progress-ring-bg",
|
|
5618
5621
|
cx: "18",
|
|
@@ -5623,36 +5626,36 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5623
5626
|
"stroke-width": "2"
|
|
5624
5627
|
}, null, -1)),
|
|
5625
5628
|
z("circle", {
|
|
5626
|
-
class:
|
|
5627
|
-
completed: oa(
|
|
5628
|
-
uploading: oa(
|
|
5629
|
-
processing: oa(
|
|
5630
|
-
failed: oa(
|
|
5629
|
+
class: ja(["progress-ring-fill", {
|
|
5630
|
+
completed: oa(o) === "completed" || oa(o) === "uploaded",
|
|
5631
|
+
uploading: oa(o) === "uploading",
|
|
5632
|
+
processing: oa(o) === "processing",
|
|
5633
|
+
failed: oa(o) === "failed"
|
|
5631
5634
|
}]),
|
|
5632
5635
|
cx: "18",
|
|
5633
5636
|
cy: "18",
|
|
5634
5637
|
r: "16",
|
|
5635
5638
|
fill: "none",
|
|
5636
|
-
stroke: oa(
|
|
5637
|
-
"stroke-width": oa(
|
|
5638
|
-
"stroke-dasharray": wt(
|
|
5639
|
+
stroke: oa(o) === "failed" ? "#f56c6c" : oa(o) === "completed" || oa(o) === "uploaded" ? "#67c23a" : "#409eff",
|
|
5640
|
+
"stroke-width": oa(o) === "completed" || oa(o) === "uploaded" || oa(o) === "failed" ? 3 : 2,
|
|
5641
|
+
"stroke-dasharray": wt(o),
|
|
5639
5642
|
"stroke-dashoffset": "0",
|
|
5640
5643
|
"stroke-linecap": "round",
|
|
5641
5644
|
transform: "rotate(-90 18 18)"
|
|
5642
5645
|
}, null, 10, md)
|
|
5643
5646
|
])),
|
|
5644
|
-
oa(
|
|
5647
|
+
oa(o) === "completed" || oa(o) === "uploaded" ? (j(), re("div", _d, [
|
|
5645
5648
|
q(N, { class: "check-icon" }, {
|
|
5646
5649
|
default: Y(() => [
|
|
5647
|
-
q(
|
|
5650
|
+
q(Ra(Rr))
|
|
5648
5651
|
]),
|
|
5649
5652
|
_: 1
|
|
5650
5653
|
})
|
|
5651
5654
|
])) : Ne("", !0),
|
|
5652
|
-
oa(
|
|
5655
|
+
oa(o) === "failed" ? (j(), re("div", kd, [
|
|
5653
5656
|
q(N, { class: "error-icon" }, {
|
|
5654
5657
|
default: Y(() => [
|
|
5655
|
-
q(
|
|
5658
|
+
q(Ra(qn))
|
|
5656
5659
|
]),
|
|
5657
5660
|
_: 1
|
|
5658
5661
|
})
|
|
@@ -5660,21 +5663,21 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5660
5663
|
], 2),
|
|
5661
5664
|
z("div", {
|
|
5662
5665
|
class: "file-delete-btn",
|
|
5663
|
-
onClick: (
|
|
5666
|
+
onClick: (_) => Dt(f)
|
|
5664
5667
|
}, [
|
|
5665
5668
|
q(N, null, {
|
|
5666
5669
|
default: Y(() => [
|
|
5667
|
-
q(
|
|
5670
|
+
q(Ra(qn))
|
|
5668
5671
|
]),
|
|
5669
5672
|
_: 1
|
|
5670
5673
|
})
|
|
5671
5674
|
], 8, Sd)
|
|
5672
5675
|
]),
|
|
5673
|
-
z("div", Cd, Fe(
|
|
5676
|
+
z("div", Cd, Fe(o.name || "文件名123"), 1)
|
|
5674
5677
|
]);
|
|
5675
5678
|
}), 128))
|
|
5676
5679
|
]),
|
|
5677
|
-
qe.value.length > 0 ? (
|
|
5680
|
+
qe.value.length > 0 ? (j(), re("div", Ad, [
|
|
5678
5681
|
q(p, {
|
|
5679
5682
|
onClick: cn,
|
|
5680
5683
|
class: "ocr-start-recognize-btn",
|
|
@@ -5689,13 +5692,13 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5689
5692
|
}, 8, ["disabled"])
|
|
5690
5693
|
])) : Ne("", !0)
|
|
5691
5694
|
])) : Ne("", !0),
|
|
5692
|
-
ga.value === 1 ? (
|
|
5695
|
+
ga.value === 1 ? (j(), re("div", wd, [
|
|
5693
5696
|
q(A, {
|
|
5694
5697
|
percentage: Ka.value,
|
|
5695
5698
|
"stroke-width": 8
|
|
5696
5699
|
}, null, 8, ["percentage"])
|
|
5697
5700
|
])) : Ne("", !0),
|
|
5698
|
-
ga.value === 2 ? (
|
|
5701
|
+
ga.value === 2 ? (j(), re("div", Td, [
|
|
5699
5702
|
z("div", Od, [
|
|
5700
5703
|
q(I, {
|
|
5701
5704
|
title: "请核对识别结果,在表头勾选字段用于匹配并替换现有数据。",
|
|
@@ -5719,45 +5722,45 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5719
5722
|
width: "60",
|
|
5720
5723
|
fixed: ""
|
|
5721
5724
|
}),
|
|
5722
|
-
(
|
|
5723
|
-
key:
|
|
5724
|
-
prop:
|
|
5725
|
-
"min-width":
|
|
5726
|
-
"class-name":
|
|
5725
|
+
(j(!0), re(ca, null, Aa(Sr.value, (o) => (j(), Me(F, {
|
|
5726
|
+
key: o.prop,
|
|
5727
|
+
prop: o.prop,
|
|
5728
|
+
"min-width": o.minWidth || 230,
|
|
5729
|
+
"class-name": o.isAccuracy ? "accuracy-column" : ""
|
|
5727
5730
|
}, {
|
|
5728
5731
|
header: Y(() => [
|
|
5729
5732
|
z("div", Nd, [
|
|
5730
|
-
|
|
5733
|
+
o.isAccuracy ? Ne("", !0) : (j(), Me(s, {
|
|
5731
5734
|
key: 0,
|
|
5732
|
-
"model-value": ol.value.includes(
|
|
5733
|
-
onChange: (f) => mt(
|
|
5735
|
+
"model-value": ol.value.includes(o.prop),
|
|
5736
|
+
onChange: (f) => mt(o.prop, f),
|
|
5734
5737
|
onClick: a[9] || (a[9] = ia(() => {
|
|
5735
5738
|
}, ["stop"]))
|
|
5736
5739
|
}, null, 8, ["model-value", "onChange"])),
|
|
5737
|
-
z("span", null, Fe(
|
|
5740
|
+
z("span", null, Fe(o.label), 1)
|
|
5738
5741
|
])
|
|
5739
5742
|
]),
|
|
5740
|
-
default: Y(({ row: f, $index:
|
|
5741
|
-
var
|
|
5743
|
+
default: Y(({ row: f, $index: m }) => {
|
|
5744
|
+
var _, R, X;
|
|
5742
5745
|
return [
|
|
5743
|
-
|
|
5746
|
+
o.isAccuracy ? (j(), re("span", {
|
|
5744
5747
|
key: 0,
|
|
5745
5748
|
class: "accuracy-value",
|
|
5746
5749
|
style: Gl({
|
|
5747
|
-
color: kt(f[
|
|
5750
|
+
color: kt(f[o.prop]),
|
|
5748
5751
|
fontWeight: 500
|
|
5749
5752
|
})
|
|
5750
|
-
}, Fe(_t(f[
|
|
5751
|
-
hl.value !==
|
|
5753
|
+
}, Fe(_t(f[o.prop])), 5)) : (j(), re(ca, { key: 1 }, [
|
|
5754
|
+
hl.value !== m ? (j(), re("span", Dd, Fe(f[o.prop]), 1)) : (j(), Me(Vt(ms(o.prop)), {
|
|
5752
5755
|
key: 1,
|
|
5753
|
-
modelValue: f[
|
|
5754
|
-
"onUpdate:modelValue": (i) => f[
|
|
5756
|
+
modelValue: f[o.prop],
|
|
5757
|
+
"onUpdate:modelValue": (i) => f[o.prop] = i,
|
|
5755
5758
|
size: "small",
|
|
5756
|
-
placeholder: "请输入" +
|
|
5757
|
-
content: ((
|
|
5758
|
-
optionUrl: (X = sr(
|
|
5759
|
-
onChange: (i) => fn(
|
|
5760
|
-
onFocus: (i) => Il.value =
|
|
5759
|
+
placeholder: "请输入" + o.label,
|
|
5760
|
+
content: ((_ = sr(o.prop)) == null ? void 0 : _.contents) ?? ((R = sr(o.prop)) == null ? void 0 : R.options) ?? [],
|
|
5761
|
+
optionUrl: (X = sr(o.prop)) == null ? void 0 : X.optionUrl,
|
|
5762
|
+
onChange: (i) => fn(m, o.prop, i),
|
|
5763
|
+
onFocus: (i) => Il.value = o.prop,
|
|
5761
5764
|
onBlur: a[10] || (a[10] = (i) => Il.value = "")
|
|
5762
5765
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "placeholder", "content", "optionUrl", "onChange", "onFocus"]))
|
|
5763
5766
|
], 64))
|
|
@@ -5770,22 +5773,22 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5770
5773
|
width: "80",
|
|
5771
5774
|
fixed: "right"
|
|
5772
5775
|
}, {
|
|
5773
|
-
default: Y(({ $index:
|
|
5774
|
-
hl.value ===
|
|
5776
|
+
default: Y(({ $index: o }) => [
|
|
5777
|
+
hl.value === o ? (j(), Me(N, {
|
|
5775
5778
|
key: 0,
|
|
5776
5779
|
class: "ocr-edit-icon editing",
|
|
5777
5780
|
style: { "margin-left": "12px" },
|
|
5778
|
-
onClick: ia((f) => vn(
|
|
5781
|
+
onClick: ia((f) => vn(o), ["stop"])
|
|
5779
5782
|
}, {
|
|
5780
5783
|
default: Y(() => [
|
|
5781
|
-
q(
|
|
5784
|
+
q(Ra(Rr))
|
|
5782
5785
|
]),
|
|
5783
5786
|
_: 2
|
|
5784
|
-
}, 1032, ["onClick"])) : (
|
|
5787
|
+
}, 1032, ["onClick"])) : (j(), Me(l, {
|
|
5785
5788
|
key: 1,
|
|
5786
5789
|
name: "edit_101",
|
|
5787
5790
|
class: "ocr-edit-icon",
|
|
5788
|
-
onClick: ia((f) => vn(
|
|
5791
|
+
onClick: ia((f) => vn(o), ["stop"])
|
|
5789
5792
|
}, null, 8, ["onClick"]))
|
|
5790
5793
|
]),
|
|
5791
5794
|
_: 1
|
|
@@ -5795,13 +5798,13 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5795
5798
|
}, 8, ["data"])
|
|
5796
5799
|
])
|
|
5797
5800
|
])) : Ne("", !0),
|
|
5798
|
-
ga.value === 3 ? (
|
|
5801
|
+
ga.value === 3 ? (j(), re("div", $d, [
|
|
5799
5802
|
q(N, {
|
|
5800
5803
|
size: "32",
|
|
5801
5804
|
class: "ocr-success-icon"
|
|
5802
5805
|
}, {
|
|
5803
5806
|
default: Y(() => [
|
|
5804
|
-
q(
|
|
5807
|
+
q(Ra(Rr))
|
|
5805
5808
|
]),
|
|
5806
5809
|
_: 1
|
|
5807
5810
|
}),
|
|
@@ -5811,7 +5814,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5811
5814
|
q(g, {
|
|
5812
5815
|
ref: "ocrUploadRef",
|
|
5813
5816
|
"file-list": qe.value,
|
|
5814
|
-
"onUpdate:fileList": a[11] || (a[11] = (
|
|
5817
|
+
"onUpdate:fileList": a[11] || (a[11] = (o) => qe.value = o),
|
|
5815
5818
|
multiple: "",
|
|
5816
5819
|
action: "",
|
|
5817
5820
|
"auto-upload": !1,
|
|
@@ -5824,7 +5827,7 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5824
5827
|
}, null, 8, ["file-list"])
|
|
5825
5828
|
]),
|
|
5826
5829
|
footer: Y(() => [
|
|
5827
|
-
ga.value !== 3 ? (
|
|
5830
|
+
ga.value !== 3 ? (j(), re("div", Ed, [
|
|
5828
5831
|
q(p, {
|
|
5829
5832
|
onClick: Ot,
|
|
5830
5833
|
class: "ocr-start-recognize-btn",
|
|
@@ -5854,56 +5857,56 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5854
5857
|
q(Uu, {
|
|
5855
5858
|
visible: pr.value,
|
|
5856
5859
|
onConfirm: yt,
|
|
5857
|
-
onCancel: a[12] || (a[12] = (
|
|
5860
|
+
onCancel: a[12] || (a[12] = (o) => pr.value = !1)
|
|
5858
5861
|
}, null, 8, ["visible"]),
|
|
5859
5862
|
q(_i, {
|
|
5860
5863
|
visible: _r.value,
|
|
5861
|
-
"onUpdate:visible": a[13] || (a[13] = (
|
|
5864
|
+
"onUpdate:visible": a[13] || (a[13] = (o) => _r.value = o),
|
|
5862
5865
|
versions: qr.value
|
|
5863
5866
|
}, null, 8, ["visible", "versions"]),
|
|
5864
5867
|
q(ti, {
|
|
5865
5868
|
visible: yl.value,
|
|
5866
|
-
"onUpdate:visible": a[14] || (a[14] = (
|
|
5869
|
+
"onUpdate:visible": a[14] || (a[14] = (o) => yl.value = o),
|
|
5867
5870
|
images: zl.value,
|
|
5868
5871
|
"default-image-name": Cr.value,
|
|
5869
5872
|
"field-meta": hl.value !== null ? ((v = tl.value[hl.value]) == null ? void 0 : v.__ocrFieldMeta) || {} : {},
|
|
5870
5873
|
"focused-field-name": Il.value,
|
|
5871
|
-
onClose: a[15] || (a[15] = (
|
|
5874
|
+
onClose: a[15] || (a[15] = (o) => yl.value = !1),
|
|
5872
5875
|
class: "ocr-img-preview-dialog"
|
|
5873
5876
|
}, null, 8, ["visible", "images", "default-image-name", "field-meta", "focused-field-name"]),
|
|
5874
5877
|
q($i, {
|
|
5875
5878
|
visible: tr.value,
|
|
5876
|
-
"onUpdate:visible": a[16] || (a[16] = (
|
|
5879
|
+
"onUpdate:visible": a[16] || (a[16] = (o) => tr.value = o),
|
|
5877
5880
|
candidates: or.value,
|
|
5878
5881
|
"name-prop": _s.value,
|
|
5879
5882
|
"mfr-prop": ks.value,
|
|
5880
5883
|
columns: C.value,
|
|
5881
5884
|
onSubmit: Cs
|
|
5882
5885
|
}, null, 8, ["visible", "candidates", "name-prop", "mfr-prop", "columns"]),
|
|
5883
|
-
q(
|
|
5886
|
+
q(Bi, {
|
|
5884
5887
|
visible: kr.value,
|
|
5885
|
-
"onUpdate:visible": a[17] || (a[17] = (
|
|
5888
|
+
"onUpdate:visible": a[17] || (a[17] = (o) => kr.value = o),
|
|
5886
5889
|
ocrPreviewData: tl.value,
|
|
5887
|
-
"onUpdate:ocrPreviewData": a[18] || (a[18] = (
|
|
5890
|
+
"onUpdate:ocrPreviewData": a[18] || (a[18] = (o) => tl.value = o),
|
|
5888
5891
|
ocrSelectedFields: ol.value,
|
|
5889
|
-
"onUpdate:ocrSelectedFields": a[19] || (a[19] = (
|
|
5892
|
+
"onUpdate:ocrSelectedFields": a[19] || (a[19] = (o) => ol.value = o),
|
|
5890
5893
|
ocrPreviewColumns: Sr.value,
|
|
5891
5894
|
onConfirm: pn,
|
|
5892
|
-
onFieldChange: a[20] || (a[20] = ({ rowIndex:
|
|
5895
|
+
onFieldChange: a[20] || (a[20] = ({ rowIndex: o, prop: f, value: m }) => fn(o, f, m))
|
|
5893
5896
|
}, null, 8, ["visible", "ocrPreviewData", "ocrSelectedFields", "ocrPreviewColumns"]),
|
|
5894
5897
|
q(ul, {
|
|
5895
|
-
title:
|
|
5896
|
-
visible:
|
|
5897
|
-
width:
|
|
5898
|
+
title: na.title,
|
|
5899
|
+
visible: na.show,
|
|
5900
|
+
width: na.width,
|
|
5898
5901
|
onBeforeDestroy: gt
|
|
5899
5902
|
}, {
|
|
5900
5903
|
default: Y(() => [
|
|
5901
5904
|
z("div", Ud, [
|
|
5902
5905
|
q(Ql, {
|
|
5903
|
-
rowContents:
|
|
5904
|
-
formRules:
|
|
5906
|
+
rowContents: na == null ? void 0 : na.contents,
|
|
5907
|
+
formRules: na == null ? void 0 : na.formRules,
|
|
5905
5908
|
showOperator: !1,
|
|
5906
|
-
buttonValue:
|
|
5909
|
+
buttonValue: na.buttonValue,
|
|
5907
5910
|
isEdit: Zl.value,
|
|
5908
5911
|
isStartJustify: !1,
|
|
5909
5912
|
onOnButtonClick: bt
|
|
@@ -5915,10 +5918,10 @@ const Cu = { style: { display: "flex", gap: "16px", height: "100%" } }, Au = {
|
|
|
5915
5918
|
]);
|
|
5916
5919
|
};
|
|
5917
5920
|
}
|
|
5918
|
-
}, Zd = /* @__PURE__ */ vl(Rd, [["__scopeId", "data-v-
|
|
5921
|
+
}, Zd = /* @__PURE__ */ vl(Rd, [["__scopeId", "data-v-d8cb60db"]]);
|
|
5919
5922
|
export {
|
|
5920
5923
|
pu as a,
|
|
5921
|
-
|
|
5924
|
+
Bo as f,
|
|
5922
5925
|
ns as g,
|
|
5923
5926
|
Zd as s,
|
|
5924
5927
|
Pu as u
|