ss-component-new 1.2.97 → 1.2.99
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-B4z0XNO-.js +304 -0
- package/dist/MTLLoader-n_3HPhif.cjs +2 -0
- package/dist/OBJLoader-C_JaUegI.cjs +5 -0
- package/dist/OBJLoader-Dilcv9TL.js +356 -0
- package/dist/{OrbitControls-B85G8nPk.cjs → OrbitControls-8LBwRzcq.cjs} +1 -1
- package/dist/{OrbitControls-DFhYzlF3.js → OrbitControls-Cz47Q27N.js} +1 -1
- package/dist/{animationData-DfKVkFbz.js → animationData-C8lM4zZj.js} +1 -1
- package/dist/{animationData-DxBvEqB1.cjs → animationData-CKcPDmLp.cjs} +1 -1
- package/dist/{iconfont-C7kE-QbU.cjs → iconfont-B1cUqs_N.cjs} +1 -1
- package/dist/{iconfont-WOKNi2xx.js → iconfont-CUWS5tNH.js} +2 -2
- package/dist/{index-D0hovh9R.cjs → index-2hqZ_tND.cjs} +1 -1
- package/dist/{index-331j518H.cjs → index-AuEh0RiU.cjs} +1 -1
- package/dist/{index-D_igus4A.cjs → index-B2UPNwqJ.cjs} +1 -1
- package/dist/{index-BYk9Fb6p.js → index-BCvmfE-Q.js} +3 -3
- package/dist/{index-DeOwZgqL.js → index-BDw8DIQx.js} +130 -130
- package/dist/{index-CqI3frdZ.js → index-BPv8txj6.js} +6 -6
- package/dist/{index-DgZVeYqH.js → index-BQaejVqo.js} +1 -1
- package/dist/{index-DSPjcpWK.cjs → index-Ba16ouw0.cjs} +1 -1
- package/dist/{index-D_RGoDln.js → index-BaSO3EEl.js} +3 -3
- package/dist/{index-DHZMd8iK.cjs → index-BdSiNUC0.cjs} +1 -1
- package/dist/{index-BDxPlbe2.cjs → index-BfU8GMj1.cjs} +1 -1
- package/dist/{index-Cppt0AsF.cjs → index-BjKKDSDx.cjs} +1 -1
- package/dist/{index-C-dlFxRJ.cjs → index-BqgfejIC.cjs} +1 -1
- package/dist/{index-BODyH6MD.js → index-BxONUPjM.js} +1 -1
- package/dist/{index-BFzMf0GC.js → index-Byp3gJNW.js} +1 -1
- package/dist/{index-DJ6qg2Mo.js → index-C7ZsHeLt.js} +3 -3
- package/dist/{index-B-AhHUV1.js → index-C9p_wwJ7.js} +6 -6
- package/dist/{index-BoTiP0aV.js → index-CKlt750z.js} +1 -1
- package/dist/{index-CQRJ3pLh.cjs → index-CQwDw3-2.cjs} +1 -1
- package/dist/{index-hhS08X8b.js → index-CR1Ng5ip.js} +3 -3
- package/dist/{index-D6u590uA.cjs → index-CZIqVNof.cjs} +1 -1
- package/dist/{index-iErxMZBi.cjs → index-C_208RkZ.cjs} +1 -1
- package/dist/{index-S1LIIzCa.cjs → index-CqZ1E-Mt.cjs} +1 -1
- package/dist/{index-DHjtOySN.js → index-CrNsPd4D.js} +2 -2
- package/dist/{index-DrzK0O_g.cjs → index-CvQCAGWI.cjs} +1 -1
- package/dist/{index-Cnk_4Zz5.cjs → index-CyCcPnZb.cjs} +1 -1
- package/dist/{index-BI7g3c_u.js → index-CyE5qCBb.js} +13 -13
- package/dist/{index-DHBoRe9V.cjs → index-D32pAhQk.cjs} +1 -1
- package/dist/{index-DRfVnLTN.js → index-DAUjjqaD.js} +391 -391
- package/dist/{index-DbDM-XfB.cjs → index-DQTlc6Gq.cjs} +1 -1
- package/dist/{index-B_zjoT4m.js → index-DTilOAv_.js} +2 -2
- package/dist/{index-_PP-dSm3.cjs → index-D_22J0ok.cjs} +1 -1
- package/dist/{index-iZ9BRKg5.js → index-DboUMA_C.js} +1 -1
- package/dist/{index-BXv3aZ7v.js → index-DgMQpO6g.js} +1 -1
- package/dist/{index-CPAXrzNY.cjs → index-Dh6GqpZF.cjs} +1 -1
- package/dist/{index-CZPnP0uy.cjs → index-DhqEoDPT.cjs} +1 -1
- package/dist/{index-CeGM8aBH.js → index-DlwlGkyt.js} +2 -2
- package/dist/{index-6sZXjGGz.cjs → index-DtDmxPdD.cjs} +1 -1
- package/dist/{index-kLDMroPk.js → index-GxmJC9kr.js} +1 -1
- package/dist/{index-CLOUp_4j.cjs → index-XKn5AuYT.cjs} +1 -1
- package/dist/{index-Cr5if46q.js → index-mEKMjplD.js} +1 -1
- package/dist/{index-Bhha7SY3.js → index-vglZ0qjT.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DSlAeFA3.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DKwCF412.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-ERjMISIK.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DqIuWlps.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-3GcG1eTD.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CICG8Qah.js} +8908 -8949
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dzyqt2Z-.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-K6lh7Rrj.cjs} +302 -302
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-mJB_yl_P.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Cpyo5jke.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DODc2KPN.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Cq8VF9uK.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BH0DRFVE.js → index.vue_vue_type_style_index_1_lang-B_HCEX9y.js} +6 -5
- package/dist/{index.vue_vue_type_style_index_1_lang-BRFs_L5R.cjs → index.vue_vue_type_style_index_1_lang-rTLLuvuo.cjs} +5 -5
- package/dist/loaderUtil-B0djdt91.js +5 -0
- package/dist/loaderUtil-CaWWb8db.cjs +1 -0
- package/dist/{main-Z5UMyCj6.js → main-DHx-3OSy.js} +2 -2
- package/dist/{main-B541MQH8.cjs → main-DS156sQ4.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-tKq0hvaK.cjs → threeModel-CfIK1rQB.cjs} +1 -1
- package/dist/{threeModel-BcjGbIJZ.js → threeModel-WYCdw_Ff.js} +4 -4
- package/dist/{threePreview-BnPMGQ2H.js → threePreview-C29AR7Mr.js} +310 -305
- package/dist/threePreview-Ci8TnUQ8.cjs +1 -0
- package/dist/{threeSceneView-DVUTlm6F.cjs → threeSceneView-C2MDCMux.cjs} +2 -2
- package/dist/{threeSceneView-BUD002PP.js → threeSceneView-F15mW1mm.js} +7 -7
- package/dist/threeSceneViewForCPMPIP-DK4G_ZpP.js +687 -0
- package/dist/threeSceneViewForCPMPIP-DuPZn_qv.cjs +5 -0
- package/dist/threeTrackPathView-C4eBUMef.cjs +370 -0
- package/dist/{threeTrackPathView-DDCEu3Gx.js → threeTrackPathView-DMj6YGxT.js} +436 -427
- package/dist/{threeViewerHost-BVeUteVd.js → threeViewerHost-C9ipsMff.js} +2 -2
- package/dist/{threeViewerHost-Sda_AoRw.cjs → threeViewerHost-CW6JmOUJ.cjs} +2 -2
- package/dist/{urdfTree-Br9VYqKp.cjs → urdfTree-CTiMB7ge.cjs} +1 -1
- package/dist/{urdfTree-DaWvX-6R.js → urdfTree-DGEACy9-.js} +1 -1
- package/dist/{workpieceTreePanel-BdRaFNRp.js → workpieceTreePanel-C1gy5a8r.js} +53 -52
- package/dist/workpieceTreePanel-Ded0Gqke.cjs +1 -0
- package/package.json +1 -1
- package/dist/MTLLoader-DnouUI-8.js +0 -657
- package/dist/MTLLoader-zZDM0NQh.cjs +0 -6
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threePreview-DD0br2ae.cjs +0 -1
- package/dist/threeSceneViewForCPMPIP-BYYbyqD7.cjs +0 -5
- package/dist/threeSceneViewForCPMPIP-D4RC4BAo.js +0 -683
- package/dist/threeTrackPathView-BvUihuyk.cjs +0 -370
- package/dist/workpieceTreePanel-Z3aVdOWB.cjs +0 -1
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as R, watch as Me, nextTick as sa, resolveComponent as Ne, createBlock as Oe, openBlock as Y, withCtx as G, createElementVNode as de, renderSlot as Fa, onMounted as Sa, createElementBlock as Se, normalizeStyle as vl, normalizeClass as ar, toDisplayString as _e, createCommentVNode as xe, createVNode as ne, unref as Qe, Fragment as tl, renderList as cl, createTextVNode as Fe, defineComponent as rr, reactive as Fl, inject as sn, provide as un, onBeforeUnmount as on, computed as za, onUnmounted as tn, createSlots as cn, withDirectives as Ja, vShow as Ra } from "vue";
|
|
2
|
-
import { by as Wa, ay as qa, c as J, E as
|
|
3
|
-
import { d as Ga,
|
|
4
|
-
import { c as xl, _ as Qa, h as yn, e as vn, E as bn } from "./index-
|
|
5
|
-
import { c as Sn, e as Rl, a as kn, T as mn, d as va, w as Tn } from "./threeViewerHost-
|
|
2
|
+
import { by as Wa, ay as qa, c as J, E as Pe, cb as ka, p as yl, s as Al, u as dn, bI as ra, d as ya, b as Ul, g as zl, bK as pn, f as fn, ce as gn } from "./index-BUYYl2Pc.js";
|
|
3
|
+
import { d as Ga, aO as hn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CICG8Qah.js";
|
|
4
|
+
import { c as xl, _ as Qa, h as yn, e as vn, E as bn } from "./index-C7ZsHeLt.js";
|
|
5
|
+
import { c as Sn, e as Rl, a as kn, T as mn, d as va, w as Tn } from "./threeViewerHost-C9ipsMff.js";
|
|
6
6
|
import { aC as ua, av as An, k as Un, i as xn, u as _n, aB as Cn, a as On, j as Ge, aQ as Ha, aR as Xa, aS as En, aT as Dn, l as na, E as Ya, ax as Za, aU as Ln } from "./index.vue_vue_type_style_index_1_lang-Cg1p_3ne.js";
|
|
7
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
7
|
+
import "./index.vue_vue_type_style_index_1_lang-B_HCEX9y.js";
|
|
8
8
|
import { _ as oa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
import { s as Jl } from "./index-DRizRbU3.js";
|
|
10
10
|
import "./index-CV2JWX-7.js";
|
|
@@ -30,11 +30,11 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
setup(L) {
|
|
33
|
-
const ee = L, Z = R(null),
|
|
33
|
+
const ee = L, Z = R(null), P = R(!1), D = R(null);
|
|
34
34
|
return Me(
|
|
35
35
|
() => ee == null ? void 0 : ee.isVisible,
|
|
36
36
|
() => {
|
|
37
|
-
|
|
37
|
+
P.value = ee == null ? void 0 : ee.isVisible;
|
|
38
38
|
},
|
|
39
39
|
{ deep: !0, immediate: !0 }
|
|
40
40
|
), Me(
|
|
@@ -49,7 +49,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
49
49
|
), (u, le) => {
|
|
50
50
|
const ge = Ne("el-popover");
|
|
51
51
|
return Y(), Oe(ge, {
|
|
52
|
-
visible:
|
|
52
|
+
visible: P.value,
|
|
53
53
|
title: ee == null ? void 0 : ee.title,
|
|
54
54
|
placement: ee == null ? void 0 : ee.placement,
|
|
55
55
|
width: ee == null ? void 0 : ee.width,
|
|
@@ -76,7 +76,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
76
76
|
}, wn = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "extra-button-content"
|
|
79
|
-
}, jn = { class: "table-operator-wrap" }, $n = { class: "extra-button-filter" },
|
|
79
|
+
}, jn = { class: "table-operator-wrap" }, $n = { class: "extra-button-filter" }, Kn = { class: "form-content-value" }, Pn = {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "extra-header"
|
|
82
82
|
}, Bn = {
|
|
@@ -123,7 +123,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
123
123
|
},
|
|
124
124
|
emits: ["buttonClick", "filter", "getImportData"],
|
|
125
125
|
setup(L, { emit: ee }) {
|
|
126
|
-
const Z = ee,
|
|
126
|
+
const Z = ee, P = L, D = R(""), u = R(!1), le = R([]), ge = R([{ label: "取消", background: "#999999" }, {
|
|
127
127
|
label: "清空",
|
|
128
128
|
background: "#999999"
|
|
129
129
|
}, { label: "确认" }]), Te = [
|
|
@@ -164,10 +164,10 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
164
164
|
for (let q = 0; q < al; q++)
|
|
165
165
|
Be[q] === void 0 && (Be[q] = "");
|
|
166
166
|
const ye = k == null ? void 0 : k[0];
|
|
167
|
-
if (!(ye != null && ye.hasOwnProperty("col_0"))) return
|
|
167
|
+
if (!(ye != null && ye.hasOwnProperty("col_0"))) return Pe.error("导入的数据列不匹配,请检查是否错位");
|
|
168
168
|
Z("getImportData", Be, k);
|
|
169
169
|
} catch (Ee) {
|
|
170
|
-
throw
|
|
170
|
+
throw Pe.error(Ee.message), new Error(Ee.message);
|
|
171
171
|
}
|
|
172
172
|
}, ie.readAsArrayBuffer(ue);
|
|
173
173
|
}, He = (oe) => {
|
|
@@ -207,11 +207,11 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
207
207
|
Z("filter", oe);
|
|
208
208
|
};
|
|
209
209
|
return Sa(() => {
|
|
210
|
-
ae(
|
|
210
|
+
ae(P.columns);
|
|
211
211
|
}), Me(
|
|
212
|
-
() =>
|
|
212
|
+
() => P.columns,
|
|
213
213
|
() => {
|
|
214
|
-
ae(
|
|
214
|
+
ae(P.columns);
|
|
215
215
|
},
|
|
216
216
|
{ deep: !0, immediate: !0 }
|
|
217
217
|
), (oe, ue) => {
|
|
@@ -221,10 +221,10 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
221
221
|
de("div", {
|
|
222
222
|
class: ar(L.compName ? "table-name-wrap" : ""),
|
|
223
223
|
style: vl({
|
|
224
|
-
background: (
|
|
225
|
-
paddingLeft: (
|
|
226
|
-
fontWeight: 600 - ((
|
|
227
|
-
fontSize: 15 - (
|
|
224
|
+
background: (P == null ? void 0 : P.level) > 1 ? "transparent" : "var(--ssgroup-background)",
|
|
225
|
+
paddingLeft: (P == null ? void 0 : P.level) > 1 ? "0px" : "8px",
|
|
226
|
+
fontWeight: 600 - ((P == null ? void 0 : P.level) - 1) * 100 >= 400 ? 600 - ((P == null ? void 0 : P.level) - 1) * 100 : 400,
|
|
227
|
+
fontSize: 15 - (P == null ? void 0 : P.level) >= 12 ? 15 - (P == null ? void 0 : P.level) + "px" : "14px"
|
|
228
228
|
})
|
|
229
229
|
}, _e(L.compName), 7),
|
|
230
230
|
de("div", jn, [
|
|
@@ -279,7 +279,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
279
279
|
];
|
|
280
280
|
}),
|
|
281
281
|
content: G(() => [
|
|
282
|
-
de("div",
|
|
282
|
+
de("div", Kn, [
|
|
283
283
|
(Y(), Oe(xl, {
|
|
284
284
|
rowContents: le.value,
|
|
285
285
|
buttonValue: ge.value,
|
|
@@ -295,7 +295,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
295
295
|
_: 1
|
|
296
296
|
}, 8, ["isVisible"])
|
|
297
297
|
]),
|
|
298
|
-
L.buttons && ((Re = L.buttons) == null ? void 0 : Re.length) > 0 ? (Y(), Se("div",
|
|
298
|
+
L.buttons && ((Re = L.buttons) == null ? void 0 : Re.length) > 0 ? (Y(), Se("div", Pn, [
|
|
299
299
|
(Y(!0), Se(tl, null, cl((bl = L.buttons) == null ? void 0 : bl.filter((k) => L.isDevMode || (k == null ? void 0 : k.label) !== "修改模板"), (k, ye) => (Y(), Se("div", {
|
|
300
300
|
class: "extra-contents",
|
|
301
301
|
key: ye
|
|
@@ -559,8 +559,8 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
559
559
|
},
|
|
560
560
|
emits: ["buttonClick"],
|
|
561
561
|
setup(L, { emit: ee }) {
|
|
562
|
-
const Z = L,
|
|
563
|
-
|
|
562
|
+
const Z = L, P = ee, D = (le) => {
|
|
563
|
+
P("buttonClick", le);
|
|
564
564
|
}, u = (le) => {
|
|
565
565
|
var ge;
|
|
566
566
|
return le != null && le.includes("删除") ? ((ge = Z.selectTableItems) == null ? void 0 : ge.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
|
|
@@ -613,7 +613,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
613
613
|
name: "output"
|
|
614
614
|
}
|
|
615
615
|
];
|
|
616
|
-
}), (
|
|
616
|
+
}), (P, D) => (Y(), Se("div", In, [
|
|
617
617
|
de("div", es, [
|
|
618
618
|
ne(xl, {
|
|
619
619
|
rowContents: ee.value,
|
|
@@ -647,54 +647,54 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
}), ba = (L, ee) => {
|
|
650
|
-
let Z = L,
|
|
650
|
+
let Z = L, P = ee;
|
|
651
651
|
return Array.isArray(Z) && (Z = Z == null ? void 0 : Z.map((D, u) => {
|
|
652
652
|
if (Array.isArray(D)) {
|
|
653
653
|
let le = {};
|
|
654
654
|
return D = D == null ? void 0 : D.forEach((ge, Te) => {
|
|
655
655
|
var he;
|
|
656
|
-
(he =
|
|
656
|
+
(he = P == null ? void 0 : P[Te]) != null && he.prop ? le[P[Te].prop] = ge : Array.isArray(ge) && (le.children = ba(ge, P));
|
|
657
657
|
}), Object.assign(le, { id: u });
|
|
658
658
|
} else
|
|
659
659
|
return D;
|
|
660
660
|
})), Z;
|
|
661
661
|
}, nr = (L, ee, Z) => {
|
|
662
|
-
let
|
|
663
|
-
return
|
|
662
|
+
let P = L, D = ee;
|
|
663
|
+
return P = P == null ? void 0 : P.map((u, le) => {
|
|
664
664
|
var ge, Te;
|
|
665
665
|
return !Array.isArray(u) || !((ge = D == null ? void 0 : D[le]) != null && ge.label) && !Z || (u.unshift(((Te = D == null ? void 0 : D[le]) == null ? void 0 : Te.label) ?? ""), u.some((he) => Array.isArray(he)) && (u = u == null ? void 0 : u.map((he) => {
|
|
666
666
|
var He;
|
|
667
667
|
return Array.isArray(he) && (he = nr(he, (He = D == null ? void 0 : D[le]) == null ? void 0 : He.children, Z)), he;
|
|
668
668
|
}))), u;
|
|
669
|
-
}),
|
|
669
|
+
}), P;
|
|
670
670
|
}, ss = (L, ee, Z) => {
|
|
671
671
|
if (ee === "")
|
|
672
|
-
return L == null ? void 0 : L.filter((
|
|
672
|
+
return L == null ? void 0 : L.filter((P) => (P == null ? void 0 : P.id) !== Z);
|
|
673
673
|
{
|
|
674
|
-
const
|
|
675
|
-
return us(L,
|
|
674
|
+
const P = ee.split("-");
|
|
675
|
+
return us(L, P, Z);
|
|
676
676
|
}
|
|
677
677
|
}, us = (L, ee, Z) => {
|
|
678
|
-
let
|
|
679
|
-
return (D == null ? void 0 : D.length) === 0 ?
|
|
678
|
+
let P = L, D = ee;
|
|
679
|
+
return (D == null ? void 0 : D.length) === 0 ? P = P == null ? void 0 : P.filter((u) => u.id !== Z) : P = P == null ? void 0 : P.map((u) => (u.id.toString() === (D == null ? void 0 : D[0]) && (D == null || D.shift(), u = sr(u, D, Z)), u)), P;
|
|
680
680
|
}, sr = (L, ee, Z) => {
|
|
681
681
|
var u, le;
|
|
682
|
-
let
|
|
683
|
-
return (D == null ? void 0 : D.length) === 0 ?
|
|
682
|
+
let P = L, D = ee;
|
|
683
|
+
return (D == null ? void 0 : D.length) === 0 ? P.children = (u = P.children) == null ? void 0 : u.filter((ge) => ge.id !== Z) : P.children = (le = P.children) == null ? void 0 : le.map((ge) => (ge.id.toString() === (D == null ? void 0 : D[0]) && (D == null || D.shift(), ge = sr(ge, D, Z)), ge)), P;
|
|
684
684
|
}, os = (L, ee, Z) => {
|
|
685
685
|
if (ee === "")
|
|
686
686
|
return Z;
|
|
687
687
|
{
|
|
688
|
-
const
|
|
689
|
-
return is(L,
|
|
688
|
+
const P = ee.split("-");
|
|
689
|
+
return is(L, P, Z);
|
|
690
690
|
}
|
|
691
691
|
}, is = (L, ee, Z) => {
|
|
692
|
-
let
|
|
693
|
-
return (D == null ? void 0 : D.length) === 0 ?
|
|
692
|
+
let P = L, D = ee;
|
|
693
|
+
return (D == null ? void 0 : D.length) === 0 ? P = Z : P = P == null ? void 0 : P.map((u) => (u.id.toString() === (D == null ? void 0 : D[0]) && (D == null || D.shift(), u = ur(u, D, Z)), u)), P;
|
|
694
694
|
}, ur = (L, ee, Z) => {
|
|
695
695
|
var u;
|
|
696
|
-
let
|
|
697
|
-
return (D == null ? void 0 : D.length) === 0 ?
|
|
696
|
+
let P = L, D = ee;
|
|
697
|
+
return (D == null ? void 0 : D.length) === 0 ? P.children = Z : P.children = (u = P.children) == null ? void 0 : u.map((le) => (le.id.toString() === (D == null ? void 0 : D[0]) && (D == null || D.shift(), le = ur(le, D, Z)), le)), P;
|
|
698
698
|
}, ts = ka("formComp", {
|
|
699
699
|
state: () => ({
|
|
700
700
|
objUrl: [],
|
|
@@ -713,12 +713,12 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
713
713
|
let ee = (le = (u = J(L)) == null ? void 0 : u.optionUrl) == null ? void 0 : le.menuSelect, Z = [];
|
|
714
714
|
ee == null || ee.forEach((ae) => {
|
|
715
715
|
});
|
|
716
|
-
let
|
|
716
|
+
let P = "";
|
|
717
717
|
const D = await An(ee);
|
|
718
718
|
if (D == null || D.forEach((ae) => {
|
|
719
719
|
var ze, Je, pe, oe;
|
|
720
|
-
(ae == null ? void 0 : ae.name) === (((oe = (pe = (Je = (ze = J(L)) == null ? void 0 : ze.optionUrl) == null ? void 0 : Je.groupSelect) == null ? void 0 : pe[0]) == null ? void 0 : oe.replaceAll("'", "")) ?? "") && (
|
|
721
|
-
}),
|
|
720
|
+
(ae == null ? void 0 : ae.name) === (((oe = (pe = (Je = (ze = J(L)) == null ? void 0 : ze.optionUrl) == null ? void 0 : Je.groupSelect) == null ? void 0 : pe[0]) == null ? void 0 : oe.replaceAll("'", "")) ?? "") && (P = ae == null ? void 0 : ae.id);
|
|
721
|
+
}), P !== "") {
|
|
722
722
|
const ae = (ge = D == null ? void 0 : D.find((pe) => {
|
|
723
723
|
var oe, ue, ie, j;
|
|
724
724
|
return (pe == null ? void 0 : pe.name) === (((ue = (oe = L == null ? void 0 : L.groupSelect) == null ? void 0 : oe.split(":")) == null ? void 0 : ue[0]) || ((j = (ie = L == null ? void 0 : L.optionUrl) == null ? void 0 : ie.groupSelect) == null ? void 0 : j[0]));
|
|
@@ -818,7 +818,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
818
818
|
emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
|
|
819
819
|
setup(L, { emit: ee }) {
|
|
820
820
|
var Na;
|
|
821
|
-
const Z = R([]),
|
|
821
|
+
const Z = R([]), P = ts(yl), D = R(null), u = L, le = R(u == null ? void 0 : u.allowSelect), ge = R((Na = u == null ? void 0 : u.config) == null ? void 0 : Na.showIndex), Te = R(), he = R([
|
|
822
822
|
{
|
|
823
823
|
label: "排序",
|
|
824
824
|
value: "sortable",
|
|
@@ -865,9 +865,9 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
865
865
|
}), Me(
|
|
866
866
|
() => Cl.value,
|
|
867
867
|
async () => {
|
|
868
|
-
var o, c, t, p, b, s, A,
|
|
868
|
+
var o, c, t, p, b, s, A, K, h, _, O, S, M, T, w, m, f, g;
|
|
869
869
|
if (((o = Cl.value) == null ? void 0 : o.length) === 0 || !((c = u == null ? void 0 : u.itemData) != null && c.find((i) => (i == null ? void 0 : i.key) === "columnPath")) || !((t = u == null ? void 0 : u.itemData) != null && t.find((i) => (i == null ? void 0 : i.key) === "pageColumn"))) return;
|
|
870
|
-
let e = (h = (
|
|
870
|
+
let e = (h = (K = (A = (s = (b = (p = u == null ? void 0 : u.itemData) == null ? void 0 : p.find((i) => (i == null ? void 0 : i.key) === "pageColumn")) == null ? void 0 : b.contents) == null ? void 0 : s.split("[")) == null ? void 0 : A[1]) == null ? void 0 : K.split("]")) == null ? void 0 : h[0], l = ((M = (S = (O = (_ = u == null ? void 0 : u.itemData) == null ? void 0 : _.find((i) => (i == null ? void 0 : i.key) === "pageColumn")) == null ? void 0 : O.contents) == null ? void 0 : S.split("[")) == null ? void 0 : M[0]) + ((w = (T = Cl.value) == null ? void 0 : T.find((i) => (i == null ? void 0 : i.key) === e)) == null ? void 0 : w.value), r = ((f = (m = u == null ? void 0 : u.itemData) == null ? void 0 : m.find((i) => (i == null ? void 0 : i.key) === "pageGroup")) == null ? void 0 : f.contents) ?? "", a = await Ge(l, sessionStorage.getItem("systemKey"), ""), n = (g = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.name) === (r === "" ? u == null ? void 0 : u.compName : r))) == null ? void 0 : g.compData;
|
|
871
871
|
Ba(n, u.allMapContents);
|
|
872
872
|
},
|
|
873
873
|
{ deep: !0 }
|
|
@@ -893,10 +893,10 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
893
893
|
value: {
|
|
894
894
|
tableData: h
|
|
895
895
|
}
|
|
896
|
-
})),
|
|
897
|
-
((c =
|
|
896
|
+
})), K = await ra({ dataList: A });
|
|
897
|
+
((c = K == null ? void 0 : K.data) == null ? void 0 : c.code) === 200 ? (De.setRefreshCurStructure(!0), Pe.success("导入数据成功")) : Pe.error("导入数据响应失败");
|
|
898
898
|
} catch (t) {
|
|
899
|
-
throw
|
|
899
|
+
throw Pe.error("导入数据处理失败"), new Error(t);
|
|
900
900
|
}
|
|
901
901
|
}, gr = async (e) => {
|
|
902
902
|
var l, r;
|
|
@@ -933,14 +933,14 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
933
933
|
ue.currentPage = e, ie("getSliceContLength", ue);
|
|
934
934
|
}, yr = (e) => {
|
|
935
935
|
var l;
|
|
936
|
-
ue.pageSize = e, e * ue.currentPage > ((l = I.value) == null ? void 0 : l.length) && (ue.currentPage = 1, ue.pageSize = 10,
|
|
936
|
+
ue.pageSize = e, e * ue.currentPage > ((l = I.value) == null ? void 0 : l.length) && (ue.currentPage = 1, ue.pageSize = 10, Pe.warning("分页无效,返回第一页")), ie("getSliceContLength", ue);
|
|
937
937
|
}, vr = (e, l) => {
|
|
938
938
|
var c, t;
|
|
939
939
|
const r = (t = (c = j.value) == null ? void 0 : c.map((p) => p == null ? void 0 : p.prop)) == null ? void 0 : t.filter((p) => p !== "operate");
|
|
940
940
|
let a;
|
|
941
941
|
const n = (e == null ? void 0 : e.length) === (r == null ? void 0 : r.length);
|
|
942
|
-
if (e != null && e.includes("序号")) return
|
|
943
|
-
if (a = n ? e : e.slice(0, r == null ? void 0 : r.length), !(a == null ? void 0 : a.every((p) => r == null ? void 0 : r.find((b) => p === b)))) return
|
|
942
|
+
if (e != null && e.includes("序号")) return Pe.error("导入的数据不需要包含序号列");
|
|
943
|
+
if (a = n ? e : e.slice(0, r == null ? void 0 : r.length), !(a == null ? void 0 : a.every((p) => r == null ? void 0 : r.find((b) => p === b)))) return Pe.error("导入的数据表头不匹配");
|
|
944
944
|
fr(a, l);
|
|
945
945
|
}, br = (e, l) => {
|
|
946
946
|
var r;
|
|
@@ -950,15 +950,15 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
950
950
|
for (const b in e)
|
|
951
951
|
if (e[b] !== void 0) {
|
|
952
952
|
const s = e[b], A = [];
|
|
953
|
-
for (const [
|
|
954
|
-
A.push(h), o.length < c(s) && o.push(
|
|
953
|
+
for (const [K, h] of Object.entries(s))
|
|
954
|
+
A.push(h), o.length < c(s) && o.push(K);
|
|
955
955
|
n.push(A);
|
|
956
956
|
}
|
|
957
957
|
n.unshift(o);
|
|
958
958
|
const t = Rl.aoa_to_sheet(n), p = Rl.book_new();
|
|
959
959
|
Rl.book_append_sheet(p, t, a), Tn(p, `${l}.xlsx`), Ve.value = [];
|
|
960
960
|
}, ea = async (e, l, r, a = !1, n) => {
|
|
961
|
-
var o, c, t, p, b, s, A,
|
|
961
|
+
var o, c, t, p, b, s, A, K;
|
|
962
962
|
try {
|
|
963
963
|
De.setRefreshCurStructure(!1);
|
|
964
964
|
const h = await zl({
|
|
@@ -1003,10 +1003,10 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1003
1003
|
pageData: _
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
|
-
((
|
|
1006
|
+
((K = O == null ? void 0 : O.data) == null ? void 0 : K.code) === 200 ? (Pe.success("编辑成功"), De.setRefreshCurStructure(!0)) : Pe.error("编辑响应失败");
|
|
1007
1007
|
}
|
|
1008
1008
|
} catch (h) {
|
|
1009
|
-
|
|
1009
|
+
Pe.error(h);
|
|
1010
1010
|
}
|
|
1011
1011
|
}, kr = async (e, l) => {
|
|
1012
1012
|
await ea("label", l, e);
|
|
@@ -1040,11 +1040,11 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1040
1040
|
}, Cr = (e) => {
|
|
1041
1041
|
ie("clickTrigger", e);
|
|
1042
1042
|
}, Ua = async (e) => {
|
|
1043
|
-
var o, c, t, p, b, s, A,
|
|
1043
|
+
var o, c, t, p, b, s, A, K, h, _, O, S, M, T, w;
|
|
1044
1044
|
const l = e == null ? void 0 : e.row, r = e == null ? void 0 : e.rowData, a = e == null ? void 0 : e.suffix;
|
|
1045
1045
|
if ((o = l == null ? void 0 : l.toString()) != null && o.includes(".urdf") || e != null && e.isUrdf || a != null && a.includes(".urdf")) {
|
|
1046
1046
|
if (l.includes(",")) {
|
|
1047
|
-
|
|
1047
|
+
Pe.error("当前版本仅允许单个urdf预览!");
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
1050
|
Ol.value = [l], Re.value = !0, bl.value = {
|
|
@@ -1057,7 +1057,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1057
1057
|
Ol.value = (s = l == null ? void 0 : l.toString()) == null ? void 0 : s.split(","), Re.value = !1, ll.value = !0;
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
|
-
if ((A = l == null ? void 0 : l.toString()) != null && A.includes(".stl") || (
|
|
1060
|
+
if ((A = l == null ? void 0 : l.toString()) != null && A.includes(".stl") || (K = l == null ? void 0 : l.toString()) != null && K.includes(".STL") || (h = l == null ? void 0 : l.toString()) != null && h.includes(".obj") || (_ = l == null ? void 0 : l.toString()) != null && _.includes(".mtl") || a != null && a.includes(".stl") || a != null && a.includes(".STL") || a != null && a.includes(".obj") || a != null && a.includes(".mtl")) {
|
|
1061
1061
|
let m, f = [], g = {};
|
|
1062
1062
|
if (Array.isArray(l) ? m = l : m = l == null ? void 0 : l.split(","), m == null || m.forEach((i) => {
|
|
1063
1063
|
i.includes(".mtl") ? f.push(i) : g.blob = g.blob ? g.blob + "," + i : i;
|
|
@@ -1094,7 +1094,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1094
1094
|
blobUrl: g
|
|
1095
1095
|
}], Be.value = !0;
|
|
1096
1096
|
}
|
|
1097
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
1097
|
+
(n == null ? void 0 : n.length) > 0 && P.setBlobUrls(n);
|
|
1098
1098
|
}, la = (e) => {
|
|
1099
1099
|
var a, n, o, c;
|
|
1100
1100
|
if (e != null && e.downloadUrl)
|
|
@@ -1194,7 +1194,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1194
1194
|
I.value = Lr(Gl.value, e), De.setTableLoading(!1);
|
|
1195
1195
|
}
|
|
1196
1196
|
}, jr = async (e) => {
|
|
1197
|
-
var c, t, p, b, s, A,
|
|
1197
|
+
var c, t, p, b, s, A, K, h, _, O, S, M, T, w, m;
|
|
1198
1198
|
const l = await zl({
|
|
1199
1199
|
keyLikes: {
|
|
1200
1200
|
pageKey: `loading${((c = fe.value) == null ? void 0 : c.account) || ((t = fe.value) == null ? void 0 : t.账号)}`,
|
|
@@ -1207,7 +1207,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
let a = (A = (s = l == null ? void 0 : l.data) == null ? void 0 : s.result) == null ? void 0 : A.map((f) => f == null ? void 0 : f.id);
|
|
1210
|
-
const n = (h = (
|
|
1210
|
+
const n = (h = (K = r == null ? void 0 : r.data) == null ? void 0 : K.result) == null ? void 0 : h.map((f) => f == null ? void 0 : f.id);
|
|
1211
1211
|
a = [...J(a), ...n], (a == null ? void 0 : a.length) > 0 && (a != null && a.every((f) => f !== null && f)) && await ya({
|
|
1212
1212
|
ids: a
|
|
1213
1213
|
});
|
|
@@ -1220,7 +1220,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1220
1220
|
}), Zl.setSelectMenu(il.value === "" ? (T = e == null ? void 0 : e.id) == null ? void 0 : T.toString() : il.value + "-" + ((w = e == null ? void 0 : e.id) == null ? void 0 : w.toString())), Zl.setSelectTitle(f), Zl.setSelectIndex((m = e == null ? void 0 : e.id) == null ? void 0 : m.toString()), ie("pageChange", o);
|
|
1221
1221
|
}
|
|
1222
1222
|
}, _a = async (e, l, r, a) => {
|
|
1223
|
-
var o, c, t, p, b, s, A,
|
|
1223
|
+
var o, c, t, p, b, s, A, K, h, _, O, S, M, T, w, m, f, g, i, y, B, U, H, re, V;
|
|
1224
1224
|
if (ie("clickMainKey", r), (a == null ? void 0 : a.isExistChild) === !0) {
|
|
1225
1225
|
let W = (c = (o = j.value) == null ? void 0 : o.find((F) => (F == null ? void 0 : F.isMainKey) === !0)) == null ? void 0 : c.prop, X = (t = a == null ? void 0 : a.rowContent) == null ? void 0 : t[W], C = (b = (p = a == null ? void 0 : a.columnType) == null ? void 0 : p.childPath) == null ? void 0 : b.split(ae), $ = [];
|
|
1226
1226
|
C == null || C.forEach((F, d) => {
|
|
@@ -1283,7 +1283,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
const n = J(j.value);
|
|
1285
1285
|
if ((a == null ? void 0 : a.isMainKey) === !0 && (n == null ? void 0 : n.length) > 0) {
|
|
1286
|
-
(
|
|
1286
|
+
(K = n == null ? void 0 : n[0]) == null || K.prop;
|
|
1287
1287
|
let W = J(Q).value + ae + (a == null ? void 0 : a.data), X = J(Q).value, C = (_ = (h = dl.value[W]) == null ? void 0 : h.filter((F) => {
|
|
1288
1288
|
var d, N;
|
|
1289
1289
|
return ((d = F == null ? void 0 : F.key) == null ? void 0 : d.type) === "structure" && ((N = F == null ? void 0 : F.key) == null ? void 0 : N.parentTable) === "";
|
|
@@ -1309,7 +1309,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
}, $r = () => {
|
|
1311
1311
|
Be.value = !1;
|
|
1312
|
-
},
|
|
1312
|
+
}, Kr = (e) => {
|
|
1313
1313
|
ie("rowClick", e);
|
|
1314
1314
|
};
|
|
1315
1315
|
Me(
|
|
@@ -1337,7 +1337,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1337
1337
|
},
|
|
1338
1338
|
{ deep: !0, immediate: !0 }
|
|
1339
1339
|
);
|
|
1340
|
-
const
|
|
1340
|
+
const Pr = () => {
|
|
1341
1341
|
}, Br = async () => {
|
|
1342
1342
|
const e = Q.value, l = sessionStorage.getItem("systemKey"), r = await Ge(e, l, ""), a = r == null ? void 0 : r.find((t) => (t == null ? void 0 : t.name) === "方法明细"), n = (a == null ? void 0 : a.compData) || [], o = n == null ? void 0 : n.find((t) => (t == null ? void 0 : t.key) === "formContent");
|
|
1343
1343
|
return o == null ? void 0 : o.contents;
|
|
@@ -1350,11 +1350,11 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1350
1350
|
let l = {};
|
|
1351
1351
|
const r = [];
|
|
1352
1352
|
return l.form = {}, (a = J(e)) == null || a.forEach((n, o) => {
|
|
1353
|
-
var c, t, p, b, s, A,
|
|
1353
|
+
var c, t, p, b, s, A, K, h, _, O, S, M, T, w;
|
|
1354
1354
|
if ((n == null ? void 0 : n.comp) === "Table") {
|
|
1355
1355
|
(t = (c = n == null ? void 0 : n.compData) == null ? void 0 : c.find((i) => (i == null ? void 0 : i.key) === "header")) == null || t.contents;
|
|
1356
1356
|
let m = (s = (b = (p = n == null ? void 0 : n.compData) == null ? void 0 : p.find((i) => (i == null ? void 0 : i.key) === "tableContents")) == null ? void 0 : b.contents) == null ? void 0 : s.map((i) => i.slice(1));
|
|
1357
|
-
(O = (_ = (h = (
|
|
1357
|
+
(O = (_ = (h = (K = (A = n == null ? void 0 : n.compData) == null ? void 0 : A.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : K.contents) == null ? void 0 : h[0]) == null ? void 0 : _[0]) == null || O.label;
|
|
1358
1358
|
let f = (M = (S = n == null ? void 0 : n.compData) == null ? void 0 : S.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : M.contents, g = [];
|
|
1359
1359
|
m == null || m.forEach((i) => {
|
|
1360
1360
|
let y = [];
|
|
@@ -1389,15 +1389,15 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1389
1389
|
const c = j.value || [], t = c.find((d) => (d == null ? void 0 : d.prop) === "输入"), p = t == null ? void 0 : t.prop;
|
|
1390
1390
|
let b = l == null ? void 0 : l[p];
|
|
1391
1391
|
const s = await pa().catch((d) => (ye.setImportLoading(!1), Promise.reject(d)));
|
|
1392
|
-
let A = !1,
|
|
1392
|
+
let A = !1, K = "";
|
|
1393
1393
|
(B = j.value) == null || B.forEach((d) => {
|
|
1394
|
-
(d == null ? void 0 : d.prop) === p && (A = !!(d != null && d.childPath),
|
|
1394
|
+
(d == null ? void 0 : d.prop) === p && (A = !!(d != null && d.childPath), K = d == null ? void 0 : d.childPath);
|
|
1395
1395
|
});
|
|
1396
1396
|
let h = "", _ = "";
|
|
1397
1397
|
if (A) {
|
|
1398
1398
|
let d = (H = (U = j.value) == null ? void 0 : U.find((Ue) => (Ue == null ? void 0 : Ue.isMainKey) === !0)) == null ? void 0 : H.prop;
|
|
1399
1399
|
_ = l == null ? void 0 : l[d];
|
|
1400
|
-
let N =
|
|
1400
|
+
let N = K == null ? void 0 : K.split(ae), E = [];
|
|
1401
1401
|
N == null || N.forEach((Ue, be) => {
|
|
1402
1402
|
(N == null ? void 0 : N.length) - 1 === be && E.push(_), E.push(Ue);
|
|
1403
1403
|
}), E = E.join(ae), h = E;
|
|
@@ -1571,7 +1571,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
}), Ce.show = !1);
|
|
1573
1573
|
}, aa = async (e, l, r) => {
|
|
1574
|
-
var a, n, o, c, t, p, b, s, A,
|
|
1574
|
+
var a, n, o, c, t, p, b, s, A, K, h, _, O, S, M;
|
|
1575
1575
|
if (nl.value = "", Xl.value = !0, Ql.value = !0, ie("onButtonClick", e, l), e === "删除")
|
|
1576
1576
|
Ya.confirm("是否确认删除", "温馨提示", {
|
|
1577
1577
|
confirmButtonText: "确认",
|
|
@@ -1590,7 +1590,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1590
1590
|
});
|
|
1591
1591
|
else if (e === "批量删除") {
|
|
1592
1592
|
if (((a = Ve.value) == null ? void 0 : a.length) === 0)
|
|
1593
|
-
return
|
|
1593
|
+
return Pe.warning("请先勾选操作的数据");
|
|
1594
1594
|
Ya.confirm("是否确认删除", "温馨提示", {
|
|
1595
1595
|
confirmButtonText: "确认",
|
|
1596
1596
|
cancelButtonText: "取消",
|
|
@@ -1634,7 +1634,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1634
1634
|
y != null && y.includes(`loading${((b = fe.value) == null ? void 0 : b.account) || ((s = fe.value) == null ? void 0 : s.账号)}`) && (w = [...w, ...y]);
|
|
1635
1635
|
let m = [];
|
|
1636
1636
|
for (let y in T)
|
|
1637
|
-
y != null && y.includes(`updateLoading${((A = fe.value) == null ? void 0 : A.account) || ((
|
|
1637
|
+
y != null && y.includes(`updateLoading${((A = fe.value) == null ? void 0 : A.account) || ((K = fe.value) == null ? void 0 : K.账号)}`) && (m = [...m, ...y]);
|
|
1638
1638
|
let f = w == null ? void 0 : w.map((y) => y == null ? void 0 : y.id);
|
|
1639
1639
|
const g = m == null ? void 0 : m.map((y) => y == null ? void 0 : y.id);
|
|
1640
1640
|
f = [...J(f), ...g], (f == null ? void 0 : f.length) > 0 && (f != null && f.every((y) => y !== null && y)) && await ya({
|
|
@@ -1649,9 +1649,9 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1649
1649
|
Fr(e, l);
|
|
1650
1650
|
else if (e != null && e.includes("导出")) {
|
|
1651
1651
|
if (e === "导出选中" && ((_ = Ve.value) == null ? void 0 : _.length) === 0)
|
|
1652
|
-
return
|
|
1652
|
+
return Pe.warning(`请先勾选${e}的数据`);
|
|
1653
1653
|
if (e === "导出全部" && ((O = I.value) == null ? void 0 : O.length) === 0)
|
|
1654
|
-
return
|
|
1654
|
+
return Pe.warning("暂无数据导出");
|
|
1655
1655
|
const T = (M = (S = j.value) == null ? void 0 : S.map((m) => m == null ? void 0 : m.label)) == null ? void 0 : M.filter((m) => m !== "操作"), w = e === "导出全部" ? J(I.value) : J(Ve.value);
|
|
1656
1656
|
w == null || w.forEach((m) => {
|
|
1657
1657
|
m == null || delete m.id;
|
|
@@ -1675,7 +1675,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1675
1675
|
};
|
|
1676
1676
|
}) : [];
|
|
1677
1677
|
}, Wr = async (e, l) => {
|
|
1678
|
-
var r, a, n, o, c, t, p, b, s, A,
|
|
1678
|
+
var r, a, n, o, c, t, p, b, s, A, K, h, _, O, S, M, T, w, m, f;
|
|
1679
1679
|
try {
|
|
1680
1680
|
let g, i;
|
|
1681
1681
|
const y = (r = dl.value[Q.value + ae]) == null ? void 0 : r.filter((C) => {
|
|
@@ -1705,7 +1705,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1705
1705
|
return ($ = C == null ? void 0 : C.value) == null ? void 0 : $.pageData;
|
|
1706
1706
|
}),
|
|
1707
1707
|
extraContent: [],
|
|
1708
|
-
extraValues: (h = (
|
|
1708
|
+
extraValues: (h = (K = U == null ? void 0 : U.value) == null ? void 0 : K.pageData) == null ? void 0 : h.data,
|
|
1709
1709
|
methodName: (O = (_ = U == null ? void 0 : U.value) == null ? void 0 : _.pageData) == null ? void 0 : O.path
|
|
1710
1710
|
};
|
|
1711
1711
|
if (!e) return;
|
|
@@ -1741,7 +1741,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1741
1741
|
newStatus: i
|
|
1742
1742
|
};
|
|
1743
1743
|
} catch (g) {
|
|
1744
|
-
throw
|
|
1744
|
+
throw Pe.error(g), new Error(g);
|
|
1745
1745
|
}
|
|
1746
1746
|
}, Oa = (e, l, r, a) => {
|
|
1747
1747
|
var n;
|
|
@@ -1769,13 +1769,13 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1769
1769
|
let a = e == null ? void 0 : e[l == null ? void 0 : l.prop], n = 1, o, c;
|
|
1770
1770
|
const t = J(Q).value + ae + a;
|
|
1771
1771
|
if (t) {
|
|
1772
|
-
Ll.value = "", o = (p = dl.value[t]) == null ? void 0 : p.filter((
|
|
1772
|
+
Ll.value = "", o = (p = dl.value[t]) == null ? void 0 : p.filter((K) => {
|
|
1773
1773
|
var h;
|
|
1774
|
-
return ((h =
|
|
1774
|
+
return ((h = K == null ? void 0 : K.key) == null ? void 0 : h.type) === "structure";
|
|
1775
1775
|
});
|
|
1776
|
-
const s = o == null ? void 0 : o.find((
|
|
1776
|
+
const s = o == null ? void 0 : o.find((K) => {
|
|
1777
1777
|
var h, _, O;
|
|
1778
|
-
return ((O = (_ = (h =
|
|
1778
|
+
return ((O = (_ = (h = K == null ? void 0 : K.value) == null ? void 0 : h.pageData) == null ? void 0 : _.comp) == null ? void 0 : O.toUpperCase()) === "FORM";
|
|
1779
1779
|
});
|
|
1780
1780
|
c = {
|
|
1781
1781
|
...(b = s == null ? void 0 : s.value) == null ? void 0 : b.pageData,
|
|
@@ -1792,7 +1792,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
return a;
|
|
1794
1794
|
}, Ea = async (e, l, r) => {
|
|
1795
|
-
var c, t, p, b, s, A,
|
|
1795
|
+
var c, t, p, b, s, A, K, h;
|
|
1796
1796
|
let a, n;
|
|
1797
1797
|
const o = await Gr(r == null ? void 0 : r.data, r == null ? void 0 : r.firstCol);
|
|
1798
1798
|
if (e ? (a = J(Q).value + ae + ((b = r == null ? void 0 : r.data) == null ? void 0 : b[(p = r == null ? void 0 : r.firstCol) == null ? void 0 : p.prop]), n = J(Q).value + ae + o) : (a = J(Q).value + ae, n = J(a) + `loading${((c = fe.value) == null ? void 0 : c.account) || ((t = fe.value) == null ? void 0 : t.账号)}`), l) {
|
|
@@ -1812,7 +1812,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1812
1812
|
var M;
|
|
1813
1813
|
return ((M = S == null ? void 0 : S.comp) == null ? void 0 : M.toUpperCase()) === "FORM";
|
|
1814
1814
|
});
|
|
1815
|
-
O && Oa(O, (
|
|
1815
|
+
O && Oa(O, (K = r == null ? void 0 : r.firstCol) == null ? void 0 : K.label, o, Q.value);
|
|
1816
1816
|
} else
|
|
1817
1817
|
De.setRouteToChildPath(J(Q).value), ye.setActiveMenuPath(n);
|
|
1818
1818
|
else if (await na(a, n, null, null, e ? qr.value : null), e) {
|
|
@@ -1837,8 +1837,8 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1837
1837
|
for (let s in e)
|
|
1838
1838
|
Array.isArray(e == null ? void 0 : e[s]) && r.push(s);
|
|
1839
1839
|
we.value = J(j.value), (o = ua((n = J(j.value)) == null ? void 0 : n.filter((s) => (s == null ? void 0 : s.label) !== "操作"))) == null || o.forEach((s, A) => {
|
|
1840
|
-
var
|
|
1841
|
-
r.find((h) => h === (s == null ? void 0 : s.prop)) || (s != null && s.formType && ((
|
|
1840
|
+
var K;
|
|
1841
|
+
r.find((h) => h === (s == null ? void 0 : s.prop)) || (s != null && s.formType && ((K = s == null ? void 0 : s.formType) == null ? void 0 : K.toUpperCase()) === "SELECT" ? l.push({
|
|
1842
1842
|
label: (s == null ? void 0 : s.prop) || (s == null ? void 0 : s.label) || "",
|
|
1843
1843
|
name: (s == null ? void 0 : s.prop) ?? "t" + A,
|
|
1844
1844
|
prop: s == null ? void 0 : s.prop,
|
|
@@ -1870,8 +1870,8 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1870
1870
|
}), e === "" || !e || (nl.value = (e == null ? void 0 : e.id) ?? "");
|
|
1871
1871
|
let a = ua((c = J(j.value)) == null ? void 0 : c.filter((s) => (s == null ? void 0 : s.label) !== "操作"));
|
|
1872
1872
|
We.value && ((t = We.value) == null ? void 0 : t.length) > 0 && (We.value = (p = J(We).value) == null ? void 0 : p.map((s) => {
|
|
1873
|
-
var
|
|
1874
|
-
let A = (s == null ? void 0 : s.prop) || ((
|
|
1873
|
+
var K;
|
|
1874
|
+
let A = (s == null ? void 0 : s.prop) || ((K = a == null ? void 0 : a.find((h) => (h == null ? void 0 : h.label) === (s == null ? void 0 : s.label))) == null ? void 0 : K.prop);
|
|
1875
1875
|
return A && (s.value = e[A]), s;
|
|
1876
1876
|
})), ol.value = We.value && ((b = We.value) == null ? void 0 : b.length) > 0 ? Dn(We.value) : l;
|
|
1877
1877
|
}, Hr = () => {
|
|
@@ -1945,7 +1945,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1945
1945
|
if ((n == null ? void 0 : n.id) === nl.value) {
|
|
1946
1946
|
let b = {};
|
|
1947
1947
|
for (let s in n) {
|
|
1948
|
-
let A = (o = l == null ? void 0 : l.find((
|
|
1948
|
+
let A = (o = l == null ? void 0 : l.find((K) => (K == null ? void 0 : K.prop) === s)) == null ? void 0 : o.label;
|
|
1949
1949
|
A ? b[s] = (c = $e.value) == null ? void 0 : c[A] : b[s] = n[s];
|
|
1950
1950
|
}
|
|
1951
1951
|
n = Object.assign(b, $e.value), a = n;
|
|
@@ -1969,7 +1969,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1969
1969
|
return delete n.children, n;
|
|
1970
1970
|
}) : [];
|
|
1971
1971
|
}, jl = (e = !0, l, r) => {
|
|
1972
|
-
var b, s, A,
|
|
1972
|
+
var b, s, A, K, h, _, O, S, M;
|
|
1973
1973
|
let a = ua((b = J(j.value)) == null ? void 0 : b.filter((T) => (T == null ? void 0 : T.label) !== "操作")), n, o = J(I.value);
|
|
1974
1974
|
if (!$e.value) {
|
|
1975
1975
|
ul.value = !1;
|
|
@@ -1987,7 +1987,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
1987
1987
|
children: (s = T.children) == null ? void 0 : s.map((w) => La(w, l, r))
|
|
1988
1988
|
}), o.push(Object.assign($e.value, T)), n = Object.assign($e.value, T);
|
|
1989
1989
|
} else
|
|
1990
|
-
o = (A = Da(o, a)) == null ? void 0 : A.newContents, n = (
|
|
1990
|
+
o = (A = Da(o, a)) == null ? void 0 : A.newContents, n = (K = Da(o, a)) == null ? void 0 : K.currentSelectContents;
|
|
1991
1991
|
const c = (h = u.itemData) == null ? void 0 : h.filter((T) => (T == null ? void 0 : T.key) === "childTree")[0];
|
|
1992
1992
|
if (((_ = c == null ? void 0 : c.contents) == null ? void 0 : _.length) > 0) {
|
|
1993
1993
|
Xe.value = "编辑";
|
|
@@ -2013,7 +2013,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2013
2013
|
} else
|
|
2014
2014
|
f = w;
|
|
2015
2015
|
Array.isArray(w) && w.some((i) => i == null ? void 0 : i.id) ? T.push(Object.assign(f, { id: (g = w == null ? void 0 : w.find((i) => i.id)) == null ? void 0 : g.id })) : f.id ? T.push(f) : T.push(Object.assign(f, { id: m.toString() }));
|
|
2016
|
-
}), I.value =
|
|
2016
|
+
}), I.value = Pa(T, c, j.value);
|
|
2017
2017
|
} else
|
|
2018
2018
|
I.value = o;
|
|
2019
2019
|
$a(I.value), Yl.value = I.value;
|
|
@@ -2046,7 +2046,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2046
2046
|
j.value = [], I.value = [], we.value = [], al.value = [], We.value = [], pl.value = [], Ol.value = [], kl.value = [], ol.value = [], Ve.value = [], D.value = null;
|
|
2047
2047
|
});
|
|
2048
2048
|
const wa = async (e, l, r) => {
|
|
2049
|
-
var b, s, A,
|
|
2049
|
+
var b, s, A, K, h, _, O, S, M, T, w;
|
|
2050
2050
|
hl.value = r == null ? void 0 : r.prop;
|
|
2051
2051
|
const a = J(u.itemData), n = a == null ? void 0 : a.map((m) => {
|
|
2052
2052
|
var f;
|
|
@@ -2071,7 +2071,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2071
2071
|
var f;
|
|
2072
2072
|
return m.value = (f = c == null ? void 0 : c.find((g, i) => i === (m == null ? void 0 : m.id))) == null ? void 0 : f.value, m;
|
|
2073
2073
|
});
|
|
2074
|
-
let t = "", p = (h = (
|
|
2074
|
+
let t = "", p = (h = (K = (A = J(n)) == null ? void 0 : A.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : K.contents) == null ? void 0 : h.find((m, f) => {
|
|
2075
2075
|
var g, i, y;
|
|
2076
2076
|
return (m == null ? void 0 : m.label) === hl.value || (f == null ? void 0 : f.toString()) === ((y = (i = (g = hl.value) == null ? void 0 : g.split("a")) == null ? void 0 : i[1]) == null ? void 0 : y.toString());
|
|
2077
2077
|
});
|
|
@@ -2120,7 +2120,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
2122
|
}, Yr = async (e) => {
|
|
2123
|
-
var b, s, A,
|
|
2123
|
+
var b, s, A, K, h, _, O, S, M, T, w, m;
|
|
2124
2124
|
if (!e) return;
|
|
2125
2125
|
$e.value = e;
|
|
2126
2126
|
const l = J(u.itemData);
|
|
@@ -2146,7 +2146,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2146
2146
|
var g;
|
|
2147
2147
|
return f.value = (g = n == null ? void 0 : n.find((i, y) => (i == null ? void 0 : i.prop) === (f == null ? void 0 : f.name))) == null ? void 0 : g.value, f;
|
|
2148
2148
|
}), !El.value) return;
|
|
2149
|
-
let o = "", c = (h = (
|
|
2149
|
+
let o = "", c = (h = (K = (A = J(r)) == null ? void 0 : A.find((f) => (f == null ? void 0 : f.key) === "header")) == null ? void 0 : K.contents) == null ? void 0 : h.find((f, g) => {
|
|
2150
2150
|
var i, y, B;
|
|
2151
2151
|
return (f == null ? void 0 : f.label) === hl.value || (g == null ? void 0 : g.toString()) === ((B = (y = (i = hl.value) == null ? void 0 : i.split("a")) == null ? void 0 : y[1]) == null ? void 0 : B.toString());
|
|
2152
2152
|
}), t = (_ = c == null ? void 0 : c.optionUrl) == null ? void 0 : _.menuSelect, p = !0;
|
|
@@ -2204,8 +2204,8 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2204
2204
|
if (((a = Object.keys(l)) == null ? void 0 : a.length) > 0) {
|
|
2205
2205
|
$e.value = l, nl.value = "", Sl.value = (n = I.value) == null ? void 0 : n.length, kl.value = (o = fl.value) == null ? void 0 : o.filter((b) => (b == null ? void 0 : b.label) !== "新增");
|
|
2206
2206
|
const p = (t = (c = we.value) == null ? void 0 : c.filter((b) => (b == null ? void 0 : b.label) !== "操作")) == null ? void 0 : t.map((b) => {
|
|
2207
|
-
var A,
|
|
2208
|
-
const s = (
|
|
2207
|
+
var A, K, h;
|
|
2208
|
+
const s = (K = (A = We.value) == null ? void 0 : A.find((_) => (_ == null ? void 0 : _.label) === (b == null ? void 0 : b.label))) == null ? void 0 : K.multiple;
|
|
2209
2209
|
return Vr(b), {
|
|
2210
2210
|
...b,
|
|
2211
2211
|
contents: (b == null ? void 0 : b.options) ?? [],
|
|
@@ -2240,7 +2240,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2240
2240
|
const t = c == null ? void 0 : c[ml.START], p = c == null ? void 0 : c[ml.END], b = Ir(t, p);
|
|
2241
2241
|
return t && p && (c[ml.HOURS] = `${b}天`), c;
|
|
2242
2242
|
});
|
|
2243
|
-
},
|
|
2243
|
+
}, Ka = (e, l, r = 0) => {
|
|
2244
2244
|
if (r > ((l == null ? void 0 : l.length) ?? "")) return e;
|
|
2245
2245
|
const a = l == null ? void 0 : l[r], n = /* @__PURE__ */ new Map();
|
|
2246
2246
|
for (const c of e) {
|
|
@@ -2250,23 +2250,23 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2250
2250
|
const o = [];
|
|
2251
2251
|
for (const [c, t] of n) {
|
|
2252
2252
|
const [p, ...b] = t, s = { ...p };
|
|
2253
|
-
r + 1 === ((l == null ? void 0 : l.length) ?? "") ? s.children = t == null ? void 0 : t.map((A) => (A.level = J(r) + 1, A)).filter((A,
|
|
2253
|
+
r + 1 === ((l == null ? void 0 : l.length) ?? "") ? s.children = t == null ? void 0 : t.map((A) => (A.level = J(r) + 1, A)).filter((A, K) => K !== 0) : b.length > 0 && (s.children = Ka(b, l, r + 1)), s.level = r, o.push(s);
|
|
2254
2254
|
}
|
|
2255
2255
|
return o;
|
|
2256
|
-
},
|
|
2256
|
+
}, Pa = (e, l, r) => {
|
|
2257
2257
|
var n;
|
|
2258
2258
|
if (!(l != null && l.contents) || ((n = l == null ? void 0 : l.contents) == null ? void 0 : n.length) === 0)
|
|
2259
2259
|
return e;
|
|
2260
2260
|
let a = [];
|
|
2261
|
-
return a =
|
|
2261
|
+
return a = Ka(e, l == null ? void 0 : l.contents, 0), a;
|
|
2262
2262
|
}, Ba = (e, l) => {
|
|
2263
|
-
var
|
|
2263
|
+
var K, h, _, O, S, M, T, w, m, f, g, i, y, B, U, H, re, V, W, X, C, $, z, se, F;
|
|
2264
2264
|
const r = e == null ? void 0 : e.filter((d) => (d == null ? void 0 : d.key) === "header");
|
|
2265
2265
|
e == null || e.filter((d) => (d == null ? void 0 : d.key) === "tableIndexColumn")[0];
|
|
2266
2266
|
const a = e == null ? void 0 : e.filter((d) => (d == null ? void 0 : d.key) === "childTree")[0];
|
|
2267
2267
|
let n = l;
|
|
2268
2268
|
const o = e == null ? void 0 : e.find((d) => (d == null ? void 0 : d.key) === "page"), c = e == null ? void 0 : e.find((d) => (d == null ? void 0 : d.key) === "rowButton"), t = e == null ? void 0 : e.find((d) => (d == null ? void 0 : d.key) === "extraButton"), p = e == null ? void 0 : e.filter((d) => (d == null ? void 0 : d.key) === "tableContents"), b = e == null ? void 0 : e.filter((d) => (d == null ? void 0 : d.key) === "tableIndex");
|
|
2269
|
-
We.value = (h = (
|
|
2269
|
+
We.value = (h = (K = e == null ? void 0 : e.filter((d) => (d == null ? void 0 : d.key) === "tableToForm")) == null ? void 0 : K[0]) == null ? void 0 : h.contents, ma.value = (o == null ? void 0 : o.contents) ?? !0;
|
|
2270
2270
|
let s = [];
|
|
2271
2271
|
gl.value === "" ? s = r == null ? void 0 : r[0] : s = (r == null ? void 0 : r.find((d) => (d == null ? void 0 : d.selectLabel) === "(" + gl.value + ")")) ?? (r == null ? void 0 : r.find((d) => !(d != null && d.selectLabel)));
|
|
2272
2272
|
let A = [];
|
|
@@ -2277,12 +2277,12 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2277
2277
|
else {
|
|
2278
2278
|
let x = s != null && s.contents.some((v) => Array.isArray(v)) ? (T = s == null ? void 0 : s.contents) == null ? void 0 : T[0] : s == null ? void 0 : s.contents;
|
|
2279
2279
|
x == null || x.forEach((v, te) => {
|
|
2280
|
-
var Le, qe, $l,
|
|
2280
|
+
var Le, qe, $l, Kl;
|
|
2281
2281
|
let ce = "";
|
|
2282
2282
|
(qe = (Le = Q.value) == null ? void 0 : Le.split("/")) == null || qe.forEach((Ie) => {
|
|
2283
|
-
var
|
|
2283
|
+
var Pl, Bl, Ml;
|
|
2284
2284
|
if (Ie !== "") {
|
|
2285
|
-
let Tl = (Ml = (Bl = (
|
|
2285
|
+
let Tl = (Ml = (Bl = (Pl = Ie == null ? void 0 : Ie.split(ae + "updateLoading")) == null ? void 0 : Pl[0]) == null ? void 0 : Bl.split(ae + "loading")) == null ? void 0 : Ml[0];
|
|
2286
2286
|
ce = ce === "" ? ce + Tl : ce + "/" + Tl;
|
|
2287
2287
|
}
|
|
2288
2288
|
}), ce = ce + ae + (v == null ? void 0 : v.directiveLabel);
|
|
@@ -2312,7 +2312,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2312
2312
|
value: (v == null ? void 0 : v.value) ?? "",
|
|
2313
2313
|
formMenuSelect: (v == null ? void 0 : v.formMenuSelect) ?? [],
|
|
2314
2314
|
isRoute: (v == null ? void 0 : v.isRoute) ?? !1,
|
|
2315
|
-
groupSelect: v != null && v.groupSelect ? (
|
|
2315
|
+
groupSelect: v != null && v.groupSelect ? (Kl = v == null ? void 0 : v.groupSelect) == null ? void 0 : Kl.replaceAll('"', "").split(":") : [],
|
|
2316
2316
|
isMainKey: (v == null ? void 0 : v.isMainKey) || (v == null ? void 0 : v.directiveLabel) && !n[ce],
|
|
2317
2317
|
// 同步弹窗列类型到表格列类型
|
|
2318
2318
|
columnType: (ve == null ? void 0 : ve.type) || (v == null ? void 0 : v.columnType) || "TEXTAREA",
|
|
@@ -2349,10 +2349,10 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2349
2349
|
if (Array.isArray(x)) {
|
|
2350
2350
|
let ve = [];
|
|
2351
2351
|
x == null || x.filter((Le) => !(Le != null && Le.id)).forEach((Le, qe) => {
|
|
2352
|
-
var $l,
|
|
2352
|
+
var $l, Kl, Ie, Pl, Bl, Ml;
|
|
2353
2353
|
if (($l = N == null ? void 0 : N[qe]) != null && $l.prop && !Array.isArray(Le)) {
|
|
2354
2354
|
let Tl = {};
|
|
2355
|
-
Tl[N[qe].column] = Le, ke != null && ke.value && ((
|
|
2355
|
+
Tl[N[qe].column] = Le, ke != null && ke.value && ((Kl = ke == null ? void 0 : ke.value) == null ? void 0 : Kl.length) > 0 && ((Ie = ke == null ? void 0 : ke.value) != null && Ie.find((el) => JSON.stringify(el == null ? void 0 : el[0]) === JSON.stringify(Tl))) && (ve = (Pl = ke == null ? void 0 : ke.value) == null ? void 0 : Pl.find((el) => JSON.stringify(el == null ? void 0 : el[0]) === JSON.stringify(Tl))), ve && ve.length > 0 ? te[N[qe].prop] = ve != null && ve.find((el) => {
|
|
2356
2356
|
var Nl;
|
|
2357
2357
|
return ((Nl = Object.keys(el)) == null ? void 0 : Nl[0]) === N[qe].column;
|
|
2358
2358
|
}) ? (Bl = ve == null ? void 0 : ve.find((el) => {
|
|
@@ -2364,7 +2364,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2364
2364
|
} else
|
|
2365
2365
|
te = x;
|
|
2366
2366
|
Array.isArray(x) && x.some((ve) => ve == null ? void 0 : ve.id) ? be.push(Object.assign(te, { id: (ce = x == null ? void 0 : x.find((ve) => ve.id)) == null ? void 0 : ce.id })) : te.id ? be.push(te) : be.push(Object.assign(te, { id: v.toString() }));
|
|
2367
|
-
}), I.value =
|
|
2367
|
+
}), I.value = Pa(be, a, j.value), ql.value = be, (X = ql.value) == null || X.forEach((x) => {
|
|
2368
2368
|
var v;
|
|
2369
2369
|
(v = Gl.value) == null || v.set(x.id, x);
|
|
2370
2370
|
});
|
|
@@ -2444,15 +2444,15 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2444
2444
|
}, an = (e, l, r) => {
|
|
2445
2445
|
var a;
|
|
2446
2446
|
wa(r, e, l), $e.value = J(e), nl.value = e == null ? void 0 : e.id, Sl.value = (a = I.value) == null ? void 0 : a.length, Xe.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", jl(!1);
|
|
2447
|
-
},
|
|
2448
|
-
var p, b, s, A,
|
|
2447
|
+
}, Ke = (e) => {
|
|
2448
|
+
var p, b, s, A, K, h, _, O, S, M;
|
|
2449
2449
|
const { row: l, column: r, item: a, slotData: n } = e;
|
|
2450
|
-
let o = l != null && l[r == null ? void 0 : r.prop] || (l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? ((b = (p = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : p[0]) == null ? void 0 : b.contents) ?? ((l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? "0" : l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((A = (s = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : s[0]) == null ? void 0 : A.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((h = (
|
|
2450
|
+
let o = l != null && l[r == null ? void 0 : r.prop] || (l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? ((b = (p = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : p[0]) == null ? void 0 : b.contents) ?? ((l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? "0" : l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((A = (s = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : s[0]) == null ? void 0 : A.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((h = (K = n == null ? void 0 : n[a == null ? void 0 : a.prop]) == null ? void 0 : K[0]) == null ? void 0 : h.contents) ?? (n == null ? void 0 : n[a == null ? void 0 : a.prop]) ?? ((S = (O = l == null ? void 0 : l[(_ = a == null ? void 0 : a.child) == null ? void 0 : _.prop]) == null ? void 0 : O[0]) == null ? void 0 : S.contents) ?? (l == null ? void 0 : l[(M = a == null ? void 0 : a.child) == null ? void 0 : M.prop]), t = Array.isArray(o) && !(o != null && o.every((T) => typeof T == "string" || typeof T == "number")) ? "查看" : o;
|
|
2451
2451
|
return t = Array.isArray(t) ? t.join(",") : t, t;
|
|
2452
2452
|
}, rn = (e) => {
|
|
2453
|
-
var b, s, A,
|
|
2453
|
+
var b, s, A, K, h, _, O, S, M, T;
|
|
2454
2454
|
const { row: l, column: r, item: a, slotData: n } = e;
|
|
2455
|
-
let o = l != null && l[r == null ? void 0 : r.prop] ? ((s = (b = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : b[0]) == null ? void 0 : s.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((
|
|
2455
|
+
let o = l != null && l[r == null ? void 0 : r.prop] ? ((s = (b = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : b[0]) == null ? void 0 : s.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((K = (A = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : A[0]) == null ? void 0 : K.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((_ = (h = n == null ? void 0 : n[a == null ? void 0 : a.prop]) == null ? void 0 : h[0]) == null ? void 0 : _.contents) ?? (n == null ? void 0 : n[a == null ? void 0 : a.prop]) ?? ((M = (S = l == null ? void 0 : l[(O = a == null ? void 0 : a.child) == null ? void 0 : O.prop]) == null ? void 0 : S[0]) == null ? void 0 : M.contents) ?? (l == null ? void 0 : l[(T = a == null ? void 0 : a.child) == null ? void 0 : T.prop]);
|
|
2456
2456
|
const t = Array.isArray(o) && !(o != null && o.every((w) => typeof w == "string" || typeof w == "number")), p = Array.isArray(o) && (o == null ? void 0 : o.find((w) => w == null ? void 0 : w.url));
|
|
2457
2457
|
return t && p;
|
|
2458
2458
|
}, nn = (e, l) => e.find((r) => Object.values(r).some((a) => a === l));
|
|
@@ -2473,7 +2473,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2473
2473
|
} : r;
|
|
2474
2474
|
})));
|
|
2475
2475
|
}, { immediate: !0, deep: !0 }), (e, l) => {
|
|
2476
|
-
var b, s, A,
|
|
2476
|
+
var b, s, A, K;
|
|
2477
2477
|
const r = Ne("svg-icon"), a = Ne("el-popover"), n = Ne("el-switch"), o = Ne("el-checkbox"), c = Ne("el-checkbox-group"), t = Ne("el-button"), p = Ne("LookComponent");
|
|
2478
2478
|
return Y(), Se("div", cs, [
|
|
2479
2479
|
Ta.value ? (Y(), Oe(yn, {
|
|
@@ -2501,7 +2501,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2501
2501
|
onDoCurrentChange: hr,
|
|
2502
2502
|
onDoSizeChange: yr,
|
|
2503
2503
|
onContentClick: _a,
|
|
2504
|
-
onRowClick:
|
|
2504
|
+
onRowClick: Kr,
|
|
2505
2505
|
onSelectChange: Ar,
|
|
2506
2506
|
onCellChange: an,
|
|
2507
2507
|
onChange: wa,
|
|
@@ -2697,7 +2697,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2697
2697
|
width: "auto"
|
|
2698
2698
|
}, {
|
|
2699
2699
|
reference: G(() => [
|
|
2700
|
-
de("span", ks, _e(
|
|
2700
|
+
de("span", ks, _e(Ke(h)), 1)
|
|
2701
2701
|
]),
|
|
2702
2702
|
default: G(() => {
|
|
2703
2703
|
var C;
|
|
@@ -2721,13 +2721,13 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2721
2721
|
}, 1024)) : (Y(), Se("div", {
|
|
2722
2722
|
key: 1,
|
|
2723
2723
|
style: vl({
|
|
2724
|
-
color: !Array.isArray(
|
|
2725
|
-
textDecoration: !Array.isArray(
|
|
2726
|
-
cursor: !Array.isArray(
|
|
2724
|
+
color: !Array.isArray(Ke(h)) && ((O = (_ = Ke(h)) == null ? void 0 : _.toString()) != null && O.includes(".txt") || (M = (S = Ke(h)) == null ? void 0 : S.toString()) != null && M.includes(".cpt") || (w = (T = Ke(h)) == null ? void 0 : T.toString()) != null && w.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
2725
|
+
textDecoration: !Array.isArray(Ke(h)) && ((f = (m = Ke(h)) == null ? void 0 : m.toString()) != null && f.includes(".txt") || (i = (g = Ke(h)) == null ? void 0 : g.toString()) != null && i.includes(".cpt") || (B = (y = Ke(h)) == null ? void 0 : y.toString()) != null && B.includes(".cyd")) ? "underline" : "",
|
|
2726
|
+
cursor: !Array.isArray(Ke(h)) && ((H = (U = Ke(h)) == null ? void 0 : U.toString()) != null && H.includes(".txt") || (V = (re = Ke(h)) == null ? void 0 : re.toString()) != null && V.includes(".cpt") || (X = (W = Ke(h)) == null ? void 0 : W.toString()) != null && X.includes(".cyd")) ? "pointer" : "",
|
|
2727
2727
|
marginLeft: (h == null ? void 0 : h.colIndex) === 0 ? `${((h == null ? void 0 : h.level) ?? 0) * 20}px` : 0
|
|
2728
2728
|
}),
|
|
2729
|
-
onClick: (C) => gr(
|
|
2730
|
-
}, _e(
|
|
2729
|
+
onClick: (C) => gr(Ke(h))
|
|
2730
|
+
}, _e(Ke(h) === 0 ? "0" : Ke(h)), 13, xs))
|
|
2731
2731
|
];
|
|
2732
2732
|
}),
|
|
2733
2733
|
_: 2
|
|
@@ -2765,7 +2765,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2765
2765
|
]),
|
|
2766
2766
|
key: "0"
|
|
2767
2767
|
} : void 0,
|
|
2768
|
-
((
|
|
2768
|
+
((K = I.value) == null ? void 0 : K.length) > 0 ? {
|
|
2769
2769
|
name: "batchButton",
|
|
2770
2770
|
fn: G((h) => [
|
|
2771
2771
|
Ja(ne(Zn, {
|
|
@@ -2854,7 +2854,7 @@ const Ia = (L) => L.match(/\((.*)\)/)[1], er = {
|
|
|
2854
2854
|
}),
|
|
2855
2855
|
ne(t, {
|
|
2856
2856
|
class: "ok-button",
|
|
2857
|
-
onClick:
|
|
2857
|
+
onClick: Pr,
|
|
2858
2858
|
id: "themeButton"
|
|
2859
2859
|
}, {
|
|
2860
2860
|
default: G(() => l[16] || (l[16] = [
|