ss-component-new 1.1.1007 → 1.2.1
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/OrbitControls-D1lM0xvz.cjs +1 -0
- package/dist/OrbitControls-DI8fa9gz.js +419 -0
- package/dist/STLLoader-KxFIlfhN.cjs +6 -0
- package/dist/STLLoader-memlq1bT.js +609 -0
- package/dist/{animationData-Bu38Hl4M.js → animationData-BDq02_ir.js} +14 -14
- package/dist/animationData-BRDoJBuV.cjs +1 -0
- package/dist/{array-DljC5ibo.js → array-A59WrroX.js} +1 -1
- package/dist/{array-BPHS7JFA.cjs → array-BtZq8qON.cjs} +1 -1
- package/dist/config.js +1 -1
- package/dist/{iconfont-pt17sMx3.js → iconfont-7cEds3Xj.js} +2 -2
- package/dist/{iconfont-t5epssvu.cjs → iconfont-CsuwJCas.cjs} +1 -1
- package/dist/{index-d6tSWKtY.cjs → index-1z9RrjZc.cjs} +1 -1
- package/dist/{index-QSIG57Cs.cjs → index-6t33eejU.cjs} +1 -1
- package/dist/{index-DqAoBcTD.cjs → index-B1ul2ExO.cjs} +1 -1
- package/dist/{index-BlbmO49N.js → index-B35e4i9n.js} +2 -2
- package/dist/{index-Da8C2puT.js → index-B9j8fCyS.js} +2 -2
- package/dist/index-BB6zZsmY.cjs +1 -0
- package/dist/{index-Cxyot1Se.js → index-BTrjEMt1.js} +4 -4
- package/dist/{index-CZ3UyOmT.cjs → index-B_k7wRBo.cjs} +1 -1
- package/dist/{index-B2lf8ui6.cjs → index-BdL8I_2i.cjs} +1 -1
- package/dist/{index-DQ4-s08u.js → index-BeTQ6ief.js} +4 -4
- package/dist/{index--7AqRoC1.js → index-BgJn4mlV.js} +4 -4
- package/dist/{index-BCeME5xm.js → index-BqCCREh3.js} +6 -6
- package/dist/{index-D3DLg4SF.js → index-BvPC1LSv.js} +18 -18
- package/dist/{index-oNErZJKp.js → index-BwjuTBrR.js} +1 -1
- package/dist/index-BxPnA2or.js +7294 -0
- package/dist/{index-CabdCJxd.js → index-C23iUpXa.js} +7 -7
- package/dist/{index-VfEaAkaq.cjs → index-C3CD2NW8.cjs} +1 -1
- package/dist/{index-DmXN3-YT.js → index-C461j30b.js} +1 -1
- package/dist/{index-B8xZFJ-x.js → index-C6Uddqal.js} +2 -2
- package/dist/{index-BtHzGwZt.js → index-CFg3-0Tk.js} +2 -2
- package/dist/{index-BstWDfX-.cjs → index-CJzA3AAO.cjs} +1 -1
- package/dist/{index-BRJVgxUP.cjs → index-CNJzNn6z.cjs} +1 -1
- package/dist/{index-C-KrU6Qo.cjs → index-CVl84S8B.cjs} +1 -1
- package/dist/{index-CZEK1c2_.js → index-CYp77kPp.js} +176 -176
- package/dist/{index-BCIKC9PE.js → index-C_VamYcq.js} +6 -6
- package/dist/{index-CmlXlH2b.cjs → index-CjI5pDiU.cjs} +1 -1
- package/dist/{index-efKjAh7G.cjs → index-CrWFG4Wb.cjs} +1 -1
- package/dist/{index-DIehhXd9.cjs → index-Crd4LGue.cjs} +1 -1
- package/dist/{index-feAp8_X8.cjs → index-CtG-uyjY.cjs} +1 -1
- package/dist/{index-DHy1RHXi.cjs → index-CtPy-3S1.cjs} +1 -1
- package/dist/{index-D3VTHlZh.js → index-CvEj4aiY.js} +4 -4
- package/dist/{index-DzcelPVu.cjs → index-Cx302rHQ.cjs} +1 -1
- package/dist/{index-BrsIZVyD.cjs → index-CxnH4vfV.cjs} +1 -1
- package/dist/{index-hsKO-I_N.js → index-Cz03X-rX.js} +1 -1
- package/dist/{index-DxggSUtV.cjs → index-D8S0DVkq.cjs} +1 -1
- package/dist/{index-BuBVqjpx.js → index-DH0dVg0N.js} +7 -7
- package/dist/{index-oCii55Zs.cjs → index-DIm3MBK_.cjs} +1 -1
- package/dist/{index-CnqhOUek.js → index-DNE4QDIf.js} +3 -3
- package/dist/{index-BCXz_U9h.cjs → index-DQTI3BuS.cjs} +1 -1
- package/dist/{index-De9VWWmT.cjs → index-DS3OziT5.cjs} +1 -1
- package/dist/{index-Hm2_zeiV.js → index-DVvt9_w0.js} +1 -1
- package/dist/{index-DqhAoamS.cjs → index-DmB0dlGH.cjs} +1 -1
- package/dist/index-Dn9I5-1H.cjs +1 -0
- package/dist/{index-s1sBvg7-.cjs → index-DqaA5Rvx.cjs} +1 -1
- package/dist/{index-Bu-yHmJc.cjs → index-DqquxuCt.cjs} +1 -1
- package/dist/{index-DsIUgynO.js → index-DygW4mGC.js} +6 -6
- package/dist/{index-1gIP1dMc.cjs → index-HFf3Z0Ft.cjs} +1 -1
- package/dist/{index-BvDv1IKK.cjs → index-Kg96Vvn5.cjs} +1 -1
- package/dist/{index-DaBbEkRJ.js → index-N7dEiXLQ.js} +13 -13
- package/dist/index-TXrydBPq.cjs +1 -0
- package/dist/{index-BcBpmCfF.cjs → index-XQxaEXgz.cjs} +1 -1
- package/dist/{index-BHNtRl-8.js → index-Y5i13RsM.js} +3 -3
- package/dist/{index-CrKg8KZt.js → index-YQnrEK_K.js} +1069 -1061
- package/dist/{index-Jyps1gRD.js → index-aneoZx5F.js} +24 -24
- package/dist/{index-BdY8Qg-6.cjs → index-byBdKAky.cjs} +1 -1
- package/dist/{index-DWuAa5Ws.js → index-db5CgGrA.js} +394 -394
- package/dist/{index-TwtUdAMm.js → index-dqBbhGfy.js} +6 -6
- package/dist/{index-Dw_nYMhJ.cjs → index-gjDjqhNq.cjs} +2 -2
- package/dist/{index-K1m0RQMs.js → index-nq9fleOT.js} +2 -2
- package/dist/{index-oI1HUneF.js → index-qoqka5Nb.js} +1 -1
- package/dist/{index-DZHLGAn0.js → index-wHil9Fox.js} +2 -2
- package/dist/{index-Dtk-Fgm3.js → index-wq8KZGnQ.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CPiIzB84.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CzcK5mCc.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DC4zFlOQ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dmm4yqcc.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DMhv31o4.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B0Ivzvcp.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DV4d1URg.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-xm0hMPwT.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CMx9TLjC.cjs +56 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Czu5g16A.js +37436 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-DgDibOnl.js → index.vue_vue_type_style_index_1_lang-AXp5rRSK.js} +76 -76
- package/dist/{index.vue_vue_type_style_index_1_lang-B1fiFPmj.js → index.vue_vue_type_style_index_1_lang-BxEXAMMV.js} +5012 -5100
- package/dist/{index.vue_vue_type_style_index_1_lang-CwJCb_rE.cjs → index.vue_vue_type_style_index_1_lang-CXwGS60-.cjs} +45 -46
- package/dist/{index.vue_vue_type_style_index_1_lang-B2vK-1an.cjs → index.vue_vue_type_style_index_1_lang-j5HrYuvy.cjs} +1 -1
- package/dist/{isString-D3DhambW.js → isString-BNK38WbE.js} +1 -1
- package/dist/{isString-ChvWbctO.cjs → isString-BmAegMGI.cjs} +1 -1
- package/dist/{main-YesjKNW0.cjs → main-BgpAXuSa.cjs} +1 -1
- package/dist/{main-DjvWp72p.js → main-t7yIujwl.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/three-viewport-gizmo-BxFHxv_x.js +18587 -0
- package/dist/three-viewport-gizmo-CwaL5sMV.cjs +4195 -0
- package/dist/{threeLatheView-DfSxRY8B.cjs → threeLatheView-BzHB-t_G.cjs} +1 -1
- package/dist/{threeLatheView-Mc00lYo0.js → threeLatheView-sTBlm0tt.js} +4 -4
- package/dist/{threeModel-DgfyuwYi.js → threeModel-11Yk8w2d.js} +5 -5
- package/dist/{threeModel-B7tOOzr9.cjs → threeModel-BudPgWiX.cjs} +1 -1
- package/dist/threePreview-Cy7NY-gw.cjs +1 -0
- package/dist/threePreview-DPyqhBkJ.js +1873 -0
- package/dist/threeSceneView-Bwed326O.js +1469 -0
- package/dist/threeSceneView-DT-STxuj.cjs +5 -0
- package/dist/{threeSceneViewForCPMPIP-Dw2bZRas.js → threeSceneViewForCPMPIP-PgPPGBxu.js} +90 -91
- package/dist/{threeSceneViewForCPMPIP-fWzzwARt.cjs → threeSceneViewForCPMPIP-RRDb_tZ0.cjs} +3 -3
- package/dist/{threeViewerHost-C9qoD_Tp.cjs → threeViewerHost-Brgx-J3Q.cjs} +1 -1
- package/dist/{threeViewerHost-D6c0lK4U.js → threeViewerHost-k5I66uBW.js} +8 -8
- package/dist/useRayCaster-CLcetetd.cjs +1 -0
- package/dist/{useRayCaster-Y_Q5getG.js → useRayCaster-TCYe6KMI.js} +14 -14
- package/package.json +1 -1
- package/public/config.js +1 -1
- package/dist/OrbitControls-C0QRmW6_.js +0 -458
- package/dist/OrbitControls-Co_9huz0.cjs +0 -1
- package/dist/STLLoader-CiUjaQtA.js +0 -657
- package/dist/STLLoader-RU7KqloS.cjs +0 -6
- package/dist/animationData-BjR16KKI.cjs +0 -1
- package/dist/index-BIg5JGtJ.js +0 -3370
- package/dist/index-BgImAL2B.cjs +0 -1
- package/dist/index-BuijIgJr.cjs +0 -1
- package/dist/index-Daqeta0F.cjs +0 -1
- package/dist/index-LnraLHWy.js +0 -7214
- package/dist/index-ama5teB1.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CycvdKIn.js +0 -34104
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DnbT8HgZ.cjs +0 -56
- package/dist/isUndefined-7lpU02Ef.cjs +0 -1
- package/dist/isUndefined-BqsKWawv.js +0 -84
- package/dist/three-viewport-gizmo-BV37JzRa.cjs +0 -4197
- package/dist/three-viewport-gizmo-CkQ98n-T.js +0 -26015
- package/dist/threePreview-ByUYJkts.cjs +0 -1
- package/dist/threePreview-CkZ9LLXO.js +0 -1972
- package/dist/threeSceneView-BxK4ycgs.js +0 -1472
- package/dist/threeSceneView-DK1eRng9.cjs +0 -5
- package/dist/useRayCaster-BkcK_aF1.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as R, watch as Fe, nextTick as Il, resolveComponent as Ke, createBlock as $e, openBlock as ne, withCtx as re, createElementVNode as ve, renderSlot as $a, onMounted as
|
|
2
|
-
import {
|
|
3
|
-
import { d as Ma, S as rn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
4
|
-
import { c as la, _ as nn, h as sn, e as un, E as on } from "./index-
|
|
5
|
-
import { a as tn, T as cn, d as fa } from "./threeViewerHost-
|
|
6
|
-
import { aH as ea,
|
|
7
|
-
import { r as kn, a as Bl, w as mn } from "./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
import { ref as R, watch as Fe, nextTick as Il, resolveComponent as Ke, createBlock as $e, openBlock as ne, withCtx as re, createElementVNode as ve, renderSlot as $a, onMounted as ha, createElementBlock as Te, normalizeStyle as kl, normalizeClass as Ra, toDisplayString as Ce, createCommentVNode as Le, createVNode as ie, unref as Ye, Fragment as cl, renderList as dl, createTextVNode as el, defineComponent as qa, reactive as Ql, inject as qr, provide as Hr, onBeforeUnmount as Xr, computed as Ba, onUnmounted as Qr, createSlots as Yr } from "vue";
|
|
2
|
+
import { bh as Zr, as as Vr, c as J, E as xe, b$ as ya, p as tl, s as bl, u as Ir, bt as Yl, d as pa, b as Sl, g as $l, bu as en, f as ln, c3 as an } from "./index-CYp77kPp.js";
|
|
3
|
+
import { d as Ma, S as rn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dmm4yqcc.js";
|
|
4
|
+
import { c as la, _ as nn, h as sn, e as un, E as on } from "./index-DH0dVg0N.js";
|
|
5
|
+
import { a as tn, T as cn, d as fa } from "./threeViewerHost-k5I66uBW.js";
|
|
6
|
+
import { aH as ea, aC as dn, k as pn, j as fn, u as gn, aG as hn, a as yn, i as we, aV as Na, aW as wa, aX as vn, aY as bn, l as Zl, E as Fa, aE as za, aZ as Sn } from "./index.vue_vue_type_style_index_1_lang-AXp5rRSK.js";
|
|
7
|
+
import { r as kn, a as Bl, w as mn } from "./index.vue_vue_type_style_index_1_lang-BxEXAMMV.js";
|
|
8
8
|
import { _ as aa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import "./three-viewport-gizmo-
|
|
10
|
-
import { s as Vl } from "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { i as Ja } from "./isString-
|
|
9
|
+
import "./three-viewport-gizmo-BxFHxv_x.js";
|
|
10
|
+
import { s as Vl } from "./index-DVvt9_w0.js";
|
|
11
|
+
import "./index-C6Uddqal.js";
|
|
12
|
+
import { i as Ja } from "./isString-BNK38WbE.js";
|
|
13
13
|
const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -48,8 +48,8 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
48
48
|
},
|
|
49
49
|
{ deep: !0, immediate: !0 }
|
|
50
50
|
), (t, le) => {
|
|
51
|
-
const
|
|
52
|
-
return ne(), $e(
|
|
51
|
+
const he = Ke("el-popover");
|
|
52
|
+
return ne(), $e(he, {
|
|
53
53
|
visible: j.value,
|
|
54
54
|
title: V == null ? void 0 : V.title,
|
|
55
55
|
placement: V == null ? void 0 : V.placement,
|
|
@@ -74,10 +74,10 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
74
74
|
}, 8, ["visible", "title", "placement", "width"]);
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
}, An = { class: "extra-button-content" }, Un = { class: "table-operator-wrap" }, _n = { class: "extra-button-filter" }, On = { class: "form-content-value" },
|
|
77
|
+
}, An = { class: "extra-button-content" }, Un = { class: "table-operator-wrap" }, _n = { class: "extra-button-filter" }, On = { class: "form-content-value" }, Cn = {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "extra-header"
|
|
80
|
-
},
|
|
80
|
+
}, En = {
|
|
81
81
|
class: "drop-menu",
|
|
82
82
|
style: { width: "120px" }
|
|
83
83
|
}, Dn = { key: 0 }, xn = { key: 1 }, Ln = {
|
|
@@ -108,7 +108,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
108
108
|
},
|
|
109
109
|
emits: ["buttonClick", "filter", "getImportData"],
|
|
110
110
|
setup(K, { emit: V }) {
|
|
111
|
-
const Q = V, j = K, L = R(""), t = R(!1), le = R([]),
|
|
111
|
+
const Q = V, j = K, L = R(""), t = R(!1), le = R([]), he = R([{ label: "取消", background: "#999999" }, {
|
|
112
112
|
label: "清空",
|
|
113
113
|
background: "#999999"
|
|
114
114
|
}, { label: "确认" }]), je = (M) => {
|
|
@@ -117,27 +117,27 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
117
117
|
const ke = new FileReader();
|
|
118
118
|
ke.onload = (ae) => {
|
|
119
119
|
try {
|
|
120
|
-
const me = new Uint8Array(ae.target.result), Pe = kn(me, { type: "array" }), pl = Pe.SheetNames[0], ze = Pe.Sheets[pl],
|
|
120
|
+
const me = new Uint8Array(ae.target.result), Pe = kn(me, { type: "array" }), pl = Pe.SheetNames[0], ze = Pe.Sheets[pl], z = Bl.decode_range(ze["!ref"]).e.c + 1, ye = new Array(z).fill(""), ge = [];
|
|
121
121
|
for (const _e in ze) {
|
|
122
122
|
if (_e[0] === "!") continue;
|
|
123
123
|
const { r: Xe, c: fl } = Bl.decode_cell(_e);
|
|
124
124
|
let de = ze[_e].v;
|
|
125
125
|
if (ze[_e].t === "n" && de > 0 && de < 1e6 && (de = new Date((de - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (de == null || de === "") && (de = ""), Xe === 0)
|
|
126
|
-
|
|
126
|
+
ye[fl] = de;
|
|
127
127
|
else {
|
|
128
128
|
if (!ge[Xe - 1]) {
|
|
129
129
|
ge[Xe - 1] = {};
|
|
130
|
-
for (let te = 0; te <
|
|
130
|
+
for (let te = 0; te < z; te++)
|
|
131
131
|
ge[Xe - 1][`col_${te}`] = "";
|
|
132
132
|
}
|
|
133
133
|
ge[Xe - 1][`col_${fl}`] = de;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
for (let _e = 0; _e <
|
|
137
|
-
|
|
136
|
+
for (let _e = 0; _e < z; _e++)
|
|
137
|
+
ye[_e] === void 0 && (ye[_e] = "");
|
|
138
138
|
const se = ge == null ? void 0 : ge[0];
|
|
139
139
|
if (!(se != null && se.hasOwnProperty("col_0"))) return xe.error("导入的数据列不匹配,请检查是否错位");
|
|
140
|
-
Q("getImportData",
|
|
140
|
+
Q("getImportData", ye, ge);
|
|
141
141
|
} catch (me) {
|
|
142
142
|
throw xe.error(me.message), new Error(me.message);
|
|
143
143
|
}
|
|
@@ -150,7 +150,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
150
150
|
Q("buttonClick", M);
|
|
151
151
|
}, ll = (M) => {
|
|
152
152
|
var B, ke;
|
|
153
|
-
le.value = (ke = (B = ea(
|
|
153
|
+
le.value = (ke = (B = ea(J(M))) == null ? void 0 : B.filter((ae) => (ae == null ? void 0 : ae.label) !== "" && (ae == null ? void 0 : ae.label) !== "操作")) == null ? void 0 : ke.map((ae) => ({
|
|
154
154
|
label: (ae == null ? void 0 : ae.label) ?? "",
|
|
155
155
|
value: "",
|
|
156
156
|
name: (ae == null ? void 0 : ae.label) ?? "",
|
|
@@ -160,7 +160,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
160
160
|
}, Ue = R(!1), al = (M) => {
|
|
161
161
|
var B;
|
|
162
162
|
if ((M == null ? void 0 : M.buttonName) === "确认" && (Q("filter", M == null ? void 0 : M.content), Ue.value = (M == null ? void 0 : M.content) && Object.values(M == null ? void 0 : M.content).length > 0), (M == null ? void 0 : M.buttonName) === "清空") {
|
|
163
|
-
const ke =
|
|
163
|
+
const ke = J(M == null ? void 0 : M.content);
|
|
164
164
|
for (const ae in ke)
|
|
165
165
|
ke[ae] = "";
|
|
166
166
|
le.value = (B = le.value) == null ? void 0 : B.map((ae) => ({
|
|
@@ -178,7 +178,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
178
178
|
const M = (ke = le.value) == null ? void 0 : ke.reduce((ae, me) => (ae[me.label] = me.value, ae), {});
|
|
179
179
|
Q("filter", M);
|
|
180
180
|
};
|
|
181
|
-
return
|
|
181
|
+
return ha(() => {
|
|
182
182
|
ll(j.columns);
|
|
183
183
|
}), Fe(
|
|
184
184
|
() => j.columns,
|
|
@@ -198,7 +198,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
198
198
|
fontWeight: 600 - ((j == null ? void 0 : j.level) - 1) * 100 >= 400 ? 600 - ((j == null ? void 0 : j.level) - 1) * 100 : 400,
|
|
199
199
|
fontSize: 17 - (j == null ? void 0 : j.level) >= 14 ? 17 - (j == null ? void 0 : j.level) + "px" : "14px"
|
|
200
200
|
})
|
|
201
|
-
},
|
|
201
|
+
}, Ce(K.compName), 7),
|
|
202
202
|
ve("div", Un, [
|
|
203
203
|
ve("div", _n, [
|
|
204
204
|
ie(Tn, {
|
|
@@ -208,13 +208,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
208
208
|
isVisible: t.value
|
|
209
209
|
}, {
|
|
210
210
|
reference: re(() => {
|
|
211
|
-
var
|
|
211
|
+
var z, ye, ge, se;
|
|
212
212
|
return [
|
|
213
213
|
ie(me, {
|
|
214
214
|
modelValue: L.value,
|
|
215
215
|
"onUpdate:modelValue": B[1] || (B[1] = (_e) => L.value = _e),
|
|
216
216
|
style: { "min-width": "80px" },
|
|
217
|
-
placeholder: Ue.value ? (ge = (
|
|
217
|
+
placeholder: Ue.value ? (ge = (ye = (z = K.filterValues) == null ? void 0 : z.filter((_e) => _e)) == null ? void 0 : ye.slice(0, 3)) == null ? void 0 : ge.join("/") : "搜索",
|
|
218
218
|
"prefix-icon": Ye(Zr),
|
|
219
219
|
clearable: "",
|
|
220
220
|
onInput: q,
|
|
@@ -254,11 +254,11 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
254
254
|
ve("div", On, [
|
|
255
255
|
(ne(), $e(la, {
|
|
256
256
|
rowContents: le.value,
|
|
257
|
-
buttonValue:
|
|
257
|
+
buttonValue: he.value,
|
|
258
258
|
isRowFlex: !0,
|
|
259
259
|
isEnableWrap: !1,
|
|
260
260
|
isButtonRow: !1,
|
|
261
|
-
key:
|
|
261
|
+
key: he.value,
|
|
262
262
|
isStartJustify: !1,
|
|
263
263
|
onOnButtonClick: al
|
|
264
264
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
@@ -267,12 +267,12 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
267
267
|
_: 1
|
|
268
268
|
}, 8, ["isVisible"])
|
|
269
269
|
]),
|
|
270
|
-
K.buttons && ((ze = K.buttons) == null ? void 0 : ze.length) > 0 ? (ne(), Te("div",
|
|
271
|
-
(ne(!0), Te(cl, null, dl((Je = K.buttons) == null ? void 0 : Je.filter((
|
|
270
|
+
K.buttons && ((ze = K.buttons) == null ? void 0 : ze.length) > 0 ? (ne(), Te("div", Cn, [
|
|
271
|
+
(ne(!0), Te(cl, null, dl((Je = K.buttons) == null ? void 0 : Je.filter((z) => K.isDevMode || (z == null ? void 0 : z.label) !== "修改模板"), (z, ye) => (ne(), Te("div", {
|
|
272
272
|
class: "extra-contents",
|
|
273
|
-
key:
|
|
273
|
+
key: ye
|
|
274
274
|
}, [
|
|
275
|
-
(
|
|
275
|
+
(z == null ? void 0 : z.type) === "upload" ? (ne(), $e(pl, {
|
|
276
276
|
key: 0,
|
|
277
277
|
class: "upload-button-wrap",
|
|
278
278
|
"on-change": je,
|
|
@@ -285,32 +285,32 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
285
285
|
default: re(() => [
|
|
286
286
|
ie(Pe, {
|
|
287
287
|
disabled: !!K.lockingPage,
|
|
288
|
-
style: kl({ background: (
|
|
288
|
+
style: kl({ background: (z == null ? void 0 : z.background) ?? "var(--ssbutton-theme-bg)", color: (z == null ? void 0 : z.color) ?? "var(--ssbutton-theme-color)" })
|
|
289
289
|
}, {
|
|
290
290
|
default: re(() => [
|
|
291
|
-
el(
|
|
291
|
+
el(Ce(z == null ? void 0 : z.label), 1)
|
|
292
292
|
]),
|
|
293
293
|
_: 2
|
|
294
294
|
}, 1032, ["disabled", "style"])
|
|
295
295
|
]),
|
|
296
296
|
_: 2
|
|
297
297
|
}, 1032, ["disabled"])) : Le("", !0),
|
|
298
|
-
(
|
|
298
|
+
(z == null ? void 0 : z.type) === "popover" ? (ne(), $e(nn, { key: 1 }, {
|
|
299
299
|
dropTitle: re(() => [
|
|
300
|
-
(
|
|
300
|
+
(z == null ? void 0 : z.type) === "popover" ? (ne(), $e(Pe, {
|
|
301
301
|
key: 0,
|
|
302
302
|
disabled: !!K.lockingPage,
|
|
303
|
-
style: kl({ background: (
|
|
303
|
+
style: kl({ background: (z == null ? void 0 : z.background) ?? "var(--ssbutton-theme-bg)", color: (z == null ? void 0 : z.color) ?? "var(--ssbutton-theme-color)" })
|
|
304
304
|
}, {
|
|
305
305
|
default: re(() => [
|
|
306
|
-
el(
|
|
306
|
+
el(Ce(z == null ? void 0 : z.label), 1)
|
|
307
307
|
]),
|
|
308
308
|
_: 2
|
|
309
309
|
}, 1032, ["disabled", "style"])) : Le("", !0)
|
|
310
310
|
]),
|
|
311
311
|
dropMenu: re(() => [
|
|
312
|
-
ve("div",
|
|
313
|
-
(ne(!0), Te(cl, null, dl(
|
|
312
|
+
ve("div", En, [
|
|
313
|
+
(ne(!0), Te(cl, null, dl(z == null ? void 0 : z.contents, (ge) => (ne(), $e(Pe, {
|
|
314
314
|
key: ge == null ? void 0 : ge.label,
|
|
315
315
|
disabled: !!K.lockingPage,
|
|
316
316
|
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
@@ -319,9 +319,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
319
319
|
default: re(() => {
|
|
320
320
|
var se, _e;
|
|
321
321
|
return [
|
|
322
|
-
el(
|
|
323
|
-
(se = ge == null ? void 0 : ge.label) != null && se.includes("选中") ? (ne(), Te("span", Dn, "(" +
|
|
324
|
-
(_e = ge == null ? void 0 : ge.label) != null && _e.includes("全部") ? (ne(), Te("span", xn, "(" +
|
|
322
|
+
el(Ce(ge == null ? void 0 : ge.label), 1),
|
|
323
|
+
(se = ge == null ? void 0 : ge.label) != null && se.includes("选中") ? (ne(), Te("span", Dn, "(" + Ce(K.selectNums) + ")", 1)) : Le("", !0),
|
|
324
|
+
(_e = ge == null ? void 0 : ge.label) != null && _e.includes("全部") ? (ne(), Te("span", xn, "(" + Ce(K.dataNums) + ")", 1)) : Le("", !0)
|
|
325
325
|
];
|
|
326
326
|
}),
|
|
327
327
|
_: 2
|
|
@@ -330,15 +330,15 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
330
330
|
]),
|
|
331
331
|
_: 2
|
|
332
332
|
}, 1024)) : Le("", !0),
|
|
333
|
-
|
|
333
|
+
z != null && z.type ? Le("", !0) : (ne(), $e(Pe, {
|
|
334
334
|
key: 2,
|
|
335
335
|
id: "themeButton",
|
|
336
336
|
disabled: !!K.lockingPage,
|
|
337
|
-
style: kl({ background: (
|
|
338
|
-
onClick: (ge) => Be(
|
|
337
|
+
style: kl({ background: (z == null ? void 0 : z.background) ?? "var(--ssbutton-theme-bg)", color: (z == null ? void 0 : z.color) ?? "var(--ssbutton-theme-color)" }),
|
|
338
|
+
onClick: (ge) => Be(z == null ? void 0 : z.label)
|
|
339
339
|
}, {
|
|
340
340
|
default: re(() => [
|
|
341
|
-
el(
|
|
341
|
+
el(Ce(z == null ? void 0 : z.label), 1)
|
|
342
342
|
]),
|
|
343
343
|
_: 2
|
|
344
344
|
}, 1032, ["disabled", "style", "onClick"]))
|
|
@@ -370,10 +370,10 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
370
370
|
const Q = K, j = V, L = (le) => {
|
|
371
371
|
j("buttonClick", le);
|
|
372
372
|
}, t = (le) => {
|
|
373
|
-
var
|
|
374
|
-
return le != null && le.includes("删除") ? ((
|
|
373
|
+
var he;
|
|
374
|
+
return le != null && le.includes("删除") ? ((he = Q.selectTableItems) == null ? void 0 : he.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
|
|
375
375
|
};
|
|
376
|
-
return (le,
|
|
376
|
+
return (le, he) => {
|
|
377
377
|
const je = Ke("el-button");
|
|
378
378
|
return ne(), Te("div", null, [
|
|
379
379
|
(ne(!0), Te(cl, null, dl(K.buttons, (q) => (ne(), $e(je, {
|
|
@@ -383,14 +383,14 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
383
383
|
onClick: (Be) => L(q == null ? void 0 : q.label)
|
|
384
384
|
}, {
|
|
385
385
|
default: re(() => [
|
|
386
|
-
el(
|
|
386
|
+
el(Ce(q == null ? void 0 : q.label), 1)
|
|
387
387
|
]),
|
|
388
388
|
_: 2
|
|
389
389
|
}, 1032, ["disabled", "class", "onClick"]))), 128))
|
|
390
390
|
]);
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
}), Kn = /* @__PURE__ */ aa(Pn, [["__scopeId", "data-v-70b12973"]]), $n =
|
|
393
|
+
}), Kn = /* @__PURE__ */ aa(Pn, [["__scopeId", "data-v-70b12973"]]), $n = ya("formToTableComp", {
|
|
394
394
|
state: () => ({
|
|
395
395
|
selectArray: [],
|
|
396
396
|
selectString: ""
|
|
@@ -407,7 +407,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
407
407
|
__name: "calculator",
|
|
408
408
|
setup(K) {
|
|
409
409
|
const V = R(), Q = R();
|
|
410
|
-
return
|
|
410
|
+
return ha(() => {
|
|
411
411
|
V.value = [
|
|
412
412
|
{
|
|
413
413
|
type: "Upload",
|
|
@@ -437,7 +437,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
437
437
|
])
|
|
438
438
|
]));
|
|
439
439
|
}
|
|
440
|
-
}), Fn = /* @__PURE__ */ aa(wn, [["__scopeId", "data-v-73db0fe7"]]), zn =
|
|
440
|
+
}), Fn = /* @__PURE__ */ aa(wn, [["__scopeId", "data-v-73db0fe7"]]), zn = ya("unit", {
|
|
441
441
|
state: () => ({
|
|
442
442
|
selectIndex: "",
|
|
443
443
|
selectMenu: "",
|
|
@@ -459,9 +459,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
459
459
|
return Array.isArray(Q) && (Q = Q == null ? void 0 : Q.map((L, t) => {
|
|
460
460
|
if (Array.isArray(L)) {
|
|
461
461
|
let le = {};
|
|
462
|
-
return L = L == null ? void 0 : L.forEach((
|
|
462
|
+
return L = L == null ? void 0 : L.forEach((he, je) => {
|
|
463
463
|
var q;
|
|
464
|
-
(q = j == null ? void 0 : j[je]) != null && q.prop ? le[j[je].prop] =
|
|
464
|
+
(q = j == null ? void 0 : j[je]) != null && q.prop ? le[j[je].prop] = he : Array.isArray(he) && (le.children = ga(he, j));
|
|
465
465
|
}), Object.assign(le, { id: t });
|
|
466
466
|
} else
|
|
467
467
|
return L;
|
|
@@ -469,8 +469,8 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
469
469
|
}, Ha = (K, V, Q) => {
|
|
470
470
|
let j = K, L = V;
|
|
471
471
|
return j = j == null ? void 0 : j.map((t, le) => {
|
|
472
|
-
var
|
|
473
|
-
return !Array.isArray(t) || !((
|
|
472
|
+
var he, je;
|
|
473
|
+
return !Array.isArray(t) || !((he = L == null ? void 0 : L[le]) != null && he.label) && !Q || (t.unshift(((je = L == null ? void 0 : L[le]) == null ? void 0 : je.label) ?? ""), t.some((q) => Array.isArray(q)) && (t = t == null ? void 0 : t.map((q) => {
|
|
474
474
|
var Be;
|
|
475
475
|
return Array.isArray(q) && (q = Ha(q, (Be = L == null ? void 0 : L[le]) == null ? void 0 : Be.children, Q)), q;
|
|
476
476
|
}))), t;
|
|
@@ -488,7 +488,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
488
488
|
}, Xa = (K, V, Q) => {
|
|
489
489
|
var t, le;
|
|
490
490
|
let j = K, L = V;
|
|
491
|
-
return (L == null ? void 0 : L.length) === 0 ? j.children = (t = j.children) == null ? void 0 : t.filter((
|
|
491
|
+
return (L == null ? void 0 : L.length) === 0 ? j.children = (t = j.children) == null ? void 0 : t.filter((he) => he.id !== Q) : j.children = (le = j.children) == null ? void 0 : le.map((he) => (he.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), he = Xa(he, L, Q)), he)), j;
|
|
492
492
|
}, Gn = (K, V, Q) => {
|
|
493
493
|
if (V === "")
|
|
494
494
|
return Q;
|
|
@@ -503,7 +503,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
503
503
|
var t;
|
|
504
504
|
let j = K, L = V;
|
|
505
505
|
return (L == null ? void 0 : L.length) === 0 ? j.children = Q : j.children = (t = j.children) == null ? void 0 : t.map((le) => (le.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), le = Qa(le, L, Q)), le)), j;
|
|
506
|
-
}, qn =
|
|
506
|
+
}, qn = ya("formComp", {
|
|
507
507
|
state: () => ({
|
|
508
508
|
objUrl: [],
|
|
509
509
|
blobUrls: []
|
|
@@ -517,20 +517,20 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
}), Ga = async (K) => {
|
|
520
|
-
var t, le,
|
|
521
|
-
let V = (le = (t =
|
|
520
|
+
var t, le, he, je, q, Be, ll;
|
|
521
|
+
let V = (le = (t = J(K)) == null ? void 0 : t.optionUrl) == null ? void 0 : le.menuSelect, Q = [];
|
|
522
522
|
V == null || V.forEach((Ue) => {
|
|
523
523
|
});
|
|
524
524
|
let j = "";
|
|
525
525
|
const L = await dn(V);
|
|
526
526
|
if (L == null || L.forEach((Ue) => {
|
|
527
527
|
var al, Ae, M, B;
|
|
528
|
-
(Ue == null ? void 0 : Ue.name) === (((B = (M = (Ae = (al =
|
|
528
|
+
(Ue == null ? void 0 : Ue.name) === (((B = (M = (Ae = (al = J(K)) == null ? void 0 : al.optionUrl) == null ? void 0 : Ae.groupSelect) == null ? void 0 : M[0]) == null ? void 0 : B.replaceAll("'", "")) ?? "") && (j = Ue == null ? void 0 : Ue.id);
|
|
529
529
|
}), j !== "") {
|
|
530
|
-
const Ue = (
|
|
530
|
+
const Ue = (he = L == null ? void 0 : L.find((M) => {
|
|
531
531
|
var B, ke, ae, me;
|
|
532
532
|
return (M == null ? void 0 : M.name) === (((ke = (B = K == null ? void 0 : K.groupSelect) == null ? void 0 : B.split(":")) == null ? void 0 : ke[0]) || ((me = (ae = K == null ? void 0 : K.optionUrl) == null ? void 0 : ae.groupSelect) == null ? void 0 : me[0]));
|
|
533
|
-
})) == null ? void 0 :
|
|
533
|
+
})) == null ? void 0 : he.compData;
|
|
534
534
|
let al = (q = (je = Ue == null ? void 0 : Ue.find((M) => (M == null ? void 0 : M.key) === "header")) == null ? void 0 : je.contents) == null ? void 0 : q.map((M) => M == null ? void 0 : M.label), Ae = (ll = (Be = Ue == null ? void 0 : Ue.find((M) => (M == null ? void 0 : M.key) === "tableContents")) == null ? void 0 : Be.contents) == null ? void 0 : ll.map((M) => (M = M == null ? void 0 : M.filter((B) => !(B != null && B.id)), M));
|
|
535
535
|
Ae == null || Ae.forEach((M) => {
|
|
536
536
|
Q.push(pn(M, al));
|
|
@@ -631,7 +631,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
631
631
|
value: "operable",
|
|
632
632
|
checked: !1
|
|
633
633
|
}
|
|
634
|
-
]),
|
|
634
|
+
]), he = fn(tl), { originalPath: je } = bl(he), q = je.value, Be = R(!1), ll = R(!1), Ue = R(!1), al = Ql({
|
|
635
635
|
column: {},
|
|
636
636
|
status: !1,
|
|
637
637
|
text: "合计"
|
|
@@ -642,13 +642,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
642
642
|
pageSizes: [5, 10, 20, 50, 100]
|
|
643
643
|
}), M = V, B = R([]), ke = Ql({ prop: "", order: null }), ae = R([]), me = R(!1), Pe = R(!1), pl = R(null);
|
|
644
644
|
tn();
|
|
645
|
-
const ze = R([]), Je = R(!1),
|
|
645
|
+
const ze = R([]), Je = R(!1), z = R(), ye = gn(), { importLoading: ge, activeMenuPath: se, contentLoading: _e, linkMenuInfo: Xe } = bl(ye), fl = hn(tl), de = yn(tl), { extraContents: te, cacheUpdatingData: ml, tableViewContents: Tl, tableLoading: fs, pageMapState: rl, lockingPage: Ml } = bl(de), Z = R([]), Nl = R([]), wl = R(/* @__PURE__ */ new Map());
|
|
646
646
|
R(!1);
|
|
647
647
|
const Qe = R("");
|
|
648
648
|
R();
|
|
649
649
|
const ra = R(!0), gl = R(0), va = R(!0), We = R(""), Ze = R(!1), Ya = R({
|
|
650
650
|
label: "查看三维模型"
|
|
651
|
-
}), Fl = R(!1), na = R(), Me = R([]), nl = R([]), zl = R(!1), Al = R([]),
|
|
651
|
+
}), Fl = R(!1), na = R(), Me = R([]), nl = R([]), zl = R(!1), Al = R([]), hl = R([]), sl = R([]), Ve = R([]), Ge = R(), Ee = R(), Za = $n(tl), Jl = R(), sa = R(0), Wl = zn(tl), { selectIndex: Va, selectMenu: Ie, selectTitle: ua } = bl(Wl), { selectString: ul } = bl(Za), Ia = Ir(tl), { loginUserInfo: ce } = bl(Ia), er = R(720), il = R(!1), Gl = R(!1), Re = R([]), ol = R(), Ul = R(!0), ba = R(!0), Rl = R([]), lr = qr("contentRef");
|
|
652
652
|
Hr("contentRef", lr), Fe(() => {
|
|
653
653
|
var e;
|
|
654
654
|
return (e = Z.value) == null ? void 0 : e.length;
|
|
@@ -657,9 +657,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
657
657
|
}), Fe(
|
|
658
658
|
() => Tl.value,
|
|
659
659
|
async () => {
|
|
660
|
-
var u, c, o, p, b, s, T, v, m,
|
|
660
|
+
var u, c, o, p, b, s, T, v, m, C, D, S, w, _, x, k, f, g;
|
|
661
661
|
if (((u = Tl.value) == null ? void 0 : u.length) === 0 || !((c = t == null ? void 0 : t.itemData) != null && c.find((i) => (i == null ? void 0 : i.key) === "columnPath")) || !((o = t == null ? void 0 : t.itemData) != null && o.find((i) => (i == null ? void 0 : i.key) === "pageColumn"))) return;
|
|
662
|
-
let e = (m = (v = (T = (s = (b = (p = t == null ? void 0 : t.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 : T[1]) == null ? void 0 : v.split("]")) == null ? void 0 : m[0], l = ((w = (S = (D = (
|
|
662
|
+
let e = (m = (v = (T = (s = (b = (p = t == null ? void 0 : t.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 : T[1]) == null ? void 0 : v.split("]")) == null ? void 0 : m[0], l = ((w = (S = (D = (C = t == null ? void 0 : t.itemData) == null ? void 0 : C.find((i) => (i == null ? void 0 : i.key) === "pageColumn")) == null ? void 0 : D.contents) == null ? void 0 : S.split("[")) == null ? void 0 : w[0]) + ((x = (_ = Tl.value) == null ? void 0 : _.find((i) => (i == null ? void 0 : i.key) === e)) == null ? void 0 : x.value), r = ((f = (k = t == null ? void 0 : t.itemData) == null ? void 0 : k.find((i) => (i == null ? void 0 : i.key) === "pageGroup")) == null ? void 0 : f.contents) ?? "", a = await we(l, sessionStorage.getItem("systemKey"), ""), n = (g = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.name) === (r === "" ? t == null ? void 0 : t.compName : r))) == null ? void 0 : g.compData;
|
|
663
663
|
Pa(n, t.allMapContents);
|
|
664
664
|
},
|
|
665
665
|
{ deep: !0 }
|
|
@@ -676,8 +676,8 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
676
676
|
tableId: (t == null ? void 0 : t.parentTableId) || (t == null ? void 0 : t.index),
|
|
677
677
|
systemKey: sessionStorage.getItem("systemKey")
|
|
678
678
|
}, s = l == null ? void 0 : l.map((m) => {
|
|
679
|
-
const
|
|
680
|
-
return
|
|
679
|
+
const C = Object.keys(m), D = {};
|
|
680
|
+
return C.forEach((S, w) => {
|
|
681
681
|
D[e[w]] = m[S];
|
|
682
682
|
}), D;
|
|
683
683
|
}), T = s == null ? void 0 : s.map((m) => ({
|
|
@@ -703,7 +703,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
703
703
|
type: "application/octet-stream;charset=UTF-8"
|
|
704
704
|
});
|
|
705
705
|
let u = URL.createObjectURL(n);
|
|
706
|
-
|
|
706
|
+
z.value = [{
|
|
707
707
|
name: (r = e == null ? void 0 : e.split("/")) == null ? void 0 : r[((l = e == null ? void 0 : e.split("/")) == null ? void 0 : l.length) - 1],
|
|
708
708
|
blobUrl: u
|
|
709
709
|
}], Je.value = !0;
|
|
@@ -757,10 +757,10 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
757
757
|
id: t == null ? void 0 : t.index
|
|
758
758
|
});
|
|
759
759
|
if (((u = m == null ? void 0 : m.data) == null ? void 0 : u.code) === 200) {
|
|
760
|
-
let
|
|
761
|
-
a ?
|
|
762
|
-
...
|
|
763
|
-
compData: (T =
|
|
760
|
+
let C = (b = (p = (o = (c = m == null ? void 0 : m.data) == null ? void 0 : c.result) == null ? void 0 : o[0]) == null ? void 0 : p.value) == null ? void 0 : b.pageData;
|
|
761
|
+
a ? C = {
|
|
762
|
+
...C,
|
|
763
|
+
compData: (T = C == null ? void 0 : C.compData) == null ? void 0 : T.map((S) => {
|
|
764
764
|
var w;
|
|
765
765
|
return (S == null ? void 0 : S.key) === "header" ? {
|
|
766
766
|
...S,
|
|
@@ -770,9 +770,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
770
770
|
}))
|
|
771
771
|
} : S;
|
|
772
772
|
})
|
|
773
|
-
} :
|
|
774
|
-
...
|
|
775
|
-
compData: (s =
|
|
773
|
+
} : C = {
|
|
774
|
+
...C,
|
|
775
|
+
compData: (s = C == null ? void 0 : C.compData) == null ? void 0 : s.map((S) => {
|
|
776
776
|
var w, _;
|
|
777
777
|
return (S == null ? void 0 : S.key) === "header" ? {
|
|
778
778
|
...S,
|
|
@@ -792,7 +792,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
792
792
|
const D = await ln({
|
|
793
793
|
id: t == null ? void 0 : t.index,
|
|
794
794
|
value: {
|
|
795
|
-
pageData:
|
|
795
|
+
pageData: C
|
|
796
796
|
}
|
|
797
797
|
});
|
|
798
798
|
((v = D == null ? void 0 : D.data) == null ? void 0 : v.code) === 200 ? (xe.success("编辑成功"), de.setRefreshCurStructure(!0)) : xe.error("编辑响应失败");
|
|
@@ -820,19 +820,19 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
820
820
|
operable: !!(u != null && u.operable)
|
|
821
821
|
}));
|
|
822
822
|
}), gr = async (e, l, r) => {
|
|
823
|
-
const a =
|
|
823
|
+
const a = J(B.value);
|
|
824
824
|
await Il(), B.value = a == null ? void 0 : a.map((n) => (r == null ? void 0 : r.label) === (n == null ? void 0 : n.label) ? {
|
|
825
825
|
...n,
|
|
826
826
|
[l]: e
|
|
827
827
|
} : n), await ql(l, r, e);
|
|
828
828
|
}, ia = async (e, l) => {
|
|
829
829
|
await ql(l, null, e, !0);
|
|
830
|
-
},
|
|
830
|
+
}, hr = () => {
|
|
831
831
|
Ze.value = !1;
|
|
832
|
-
},
|
|
832
|
+
}, yr = (e) => {
|
|
833
833
|
M("clickTrigger", e);
|
|
834
834
|
}, ka = async (e) => {
|
|
835
|
-
var u, c, o, p, b, s, T, v, m,
|
|
835
|
+
var u, c, o, p, b, s, T, v, m, C, D, S, w, _, x;
|
|
836
836
|
const l = e == null ? void 0 : e.row, r = e == null ? void 0 : e.rowData, a = e == null ? void 0 : e.suffix;
|
|
837
837
|
if ((u = l == null ? void 0 : l.toString()) != null && u.includes(".urdf") || e != null && e.isUrdf || a != null && a.includes(".urdf")) {
|
|
838
838
|
if (l.includes(",")) {
|
|
@@ -840,7 +840,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
840
840
|
return;
|
|
841
841
|
}
|
|
842
842
|
Al.value = [l], Pe.value = !0, pl.value = {
|
|
843
|
-
data:
|
|
843
|
+
data: J(r)
|
|
844
844
|
}, me.value = !0;
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
@@ -849,7 +849,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
849
849
|
Al.value = (s = l == null ? void 0 : l.toString()) == null ? void 0 : s.split(","), Pe.value = !1, me.value = !0;
|
|
850
850
|
return;
|
|
851
851
|
}
|
|
852
|
-
if ((T = l == null ? void 0 : l.toString()) != null && T.includes(".stl") || (v = l == null ? void 0 : l.toString()) != null && v.includes(".STL") || (m = l == null ? void 0 : l.toString()) != null && m.includes(".obj") || (
|
|
852
|
+
if ((T = l == null ? void 0 : l.toString()) != null && T.includes(".stl") || (v = l == null ? void 0 : l.toString()) != null && v.includes(".STL") || (m = l == null ? void 0 : l.toString()) != null && m.includes(".obj") || (C = l == null ? void 0 : l.toString()) != null && C.includes(".mtl") || a != null && a.includes(".stl") || a != null && a.includes(".STL") || a != null && a.includes(".obj") || a != null && a.includes(".mtl")) {
|
|
853
853
|
let k, f = [], g = {};
|
|
854
854
|
if (Array.isArray(l) ? k = l : k = l == null ? void 0 : l.split(","), k == null || k.forEach((i) => {
|
|
855
855
|
i.includes(".mtl") ? f.push(i) : g.blob = g.blob ? g.blob + "," + i : i;
|
|
@@ -859,13 +859,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
859
859
|
const i = new Blob([g.blob], {
|
|
860
860
|
type: "application/octet-stream;charset=UTF-8"
|
|
861
861
|
});
|
|
862
|
-
let
|
|
862
|
+
let h = URL.createObjectURL(i), $ = "";
|
|
863
863
|
(w = l == null ? void 0 : l.split("/")) == null || w.forEach((A, X) => {
|
|
864
864
|
var I;
|
|
865
865
|
X === ((I = l == null ? void 0 : l.split("/")) == null ? void 0 : I.length) - 1 && ($ = A);
|
|
866
|
-
}), (_ = g.blob) != null && _.includes(".stl") && ($ = ($ == null ? void 0 : $.replaceAll(">", "")) + ".urdf"),
|
|
866
|
+
}), (_ = g.blob) != null && _.includes(".stl") && ($ = ($ == null ? void 0 : $.replaceAll(">", "")) + ".urdf"), z.value = [{
|
|
867
867
|
name: $,
|
|
868
|
-
blobUrl:
|
|
868
|
+
blobUrl: h
|
|
869
869
|
}], Je.value = !0;
|
|
870
870
|
}
|
|
871
871
|
} else {
|
|
@@ -878,10 +878,10 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
878
878
|
type: "application/octet-stream;charset=UTF-8"
|
|
879
879
|
});
|
|
880
880
|
let g = URL.createObjectURL(f), i = "";
|
|
881
|
-
(x = l == null ? void 0 : l.split("/")) == null || x.forEach((
|
|
881
|
+
(x = l == null ? void 0 : l.split("/")) == null || x.forEach((h, $) => {
|
|
882
882
|
var A;
|
|
883
|
-
$ === ((A = l == null ? void 0 : l.split("/")) == null ? void 0 : A.length) - 1 && (i =
|
|
884
|
-
}),
|
|
883
|
+
$ === ((A = l == null ? void 0 : l.split("/")) == null ? void 0 : A.length) - 1 && (i = h);
|
|
884
|
+
}), z.value = [{
|
|
885
885
|
name: i,
|
|
886
886
|
blobUrl: g
|
|
887
887
|
}], Je.value = !0;
|
|
@@ -934,7 +934,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
934
934
|
name: r,
|
|
935
935
|
blobUrl: l
|
|
936
936
|
};
|
|
937
|
-
|
|
937
|
+
z.value = [n], Je.value = !0;
|
|
938
938
|
}, br = async (e) => {
|
|
939
939
|
let l = null, r = null;
|
|
940
940
|
if (e != null && e.downloadUrl) {
|
|
@@ -985,7 +985,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
985
985
|
Z.value = kr(wl.value, e), de.setTableLoading(!1);
|
|
986
986
|
}
|
|
987
987
|
}, Tr = async (e) => {
|
|
988
|
-
var c, o, p, b, s, T, v, m,
|
|
988
|
+
var c, o, p, b, s, T, v, m, C, D, S, w, _, x, k;
|
|
989
989
|
const l = await $l({
|
|
990
990
|
keyLikes: {
|
|
991
991
|
pageKey: `loading${((c = ce.value) == null ? void 0 : c.account) || ((o = ce.value) == null ? void 0 : o.账号)}`,
|
|
@@ -999,19 +999,19 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
999
999
|
});
|
|
1000
1000
|
let a = (T = (s = l == null ? void 0 : l.data) == null ? void 0 : s.result) == null ? void 0 : T.map((f) => f == null ? void 0 : f.id);
|
|
1001
1001
|
const n = (m = (v = r == null ? void 0 : r.data) == null ? void 0 : v.result) == null ? void 0 : m.map((f) => f == null ? void 0 : f.id);
|
|
1002
|
-
a = [...
|
|
1002
|
+
a = [...J(a), ...n], (a == null ? void 0 : a.length) > 0 && (a != null && a.every((f) => f !== null && f)) && await pa({
|
|
1003
1003
|
ids: a
|
|
1004
1004
|
});
|
|
1005
1005
|
let u = await we(se.value, sessionStorage.getItem("systemKey"), e.id);
|
|
1006
1006
|
if (u = u == null ? void 0 : u.filter((f) => f.comp !== "methodButton"), u && u.length > 0) {
|
|
1007
|
-
const f = !Array.isArray(ua.value) && ((
|
|
1007
|
+
const f = !Array.isArray(ua.value) && ((C = ua.value) == null ? void 0 : C.key) !== "main" ? [] : ua.value;
|
|
1008
1008
|
f.push({
|
|
1009
1009
|
key: Ie.value === "" ? (D = e == null ? void 0 : e.id) == null ? void 0 : D.toString() : Ie.value + "-" + ((S = e == null ? void 0 : e.id) == null ? void 0 : S.toString()),
|
|
1010
1010
|
value: e[(w = Object.keys(e)) == null ? void 0 : w.filter((g) => g !== "index" && g !== "id")[0]]
|
|
1011
1011
|
}), Wl.setSelectMenu(Ie.value === "" ? (_ = e == null ? void 0 : e.id) == null ? void 0 : _.toString() : Ie.value + "-" + ((x = e == null ? void 0 : e.id) == null ? void 0 : x.toString())), Wl.setSelectTitle(f), Wl.setSelectIndex((k = e == null ? void 0 : e.id) == null ? void 0 : k.toString()), M("pageChange", u);
|
|
1012
1012
|
}
|
|
1013
1013
|
}, Ta = async (e, l, r, a) => {
|
|
1014
|
-
var u, c, o, p, b, s, T, v, m,
|
|
1014
|
+
var u, c, o, p, b, s, T, v, m, C, D, S, w, _, x, k, f, g, i, h, $, A, X, I, Y;
|
|
1015
1015
|
if ((a == null ? void 0 : a.isExistChild) === !0) {
|
|
1016
1016
|
let W = (c = (u = B.value) == null ? void 0 : u.find((F) => (F == null ? void 0 : F.isMainKey) === !0)) == null ? void 0 : c.prop, H = (o = a == null ? void 0 : a.rowContent) == null ? void 0 : o[W], O = (b = (p = a == null ? void 0 : a.columnType) == null ? void 0 : p.childPath) == null ? void 0 : b.split(q), P = [];
|
|
1017
1017
|
O == null || O.forEach((F, d) => {
|
|
@@ -1021,8 +1021,8 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1021
1021
|
if (!G || (G == null ? void 0 : G.length) === 0) {
|
|
1022
1022
|
let F = [];
|
|
1023
1023
|
ee == null || ee.forEach((N) => {
|
|
1024
|
-
var Se, fe, U,
|
|
1025
|
-
let
|
|
1024
|
+
var Se, fe, U, y;
|
|
1025
|
+
let E = {
|
|
1026
1026
|
type: "structure",
|
|
1027
1027
|
pageKey: P,
|
|
1028
1028
|
version: 1,
|
|
@@ -1034,13 +1034,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1034
1034
|
}, be = {
|
|
1035
1035
|
pageData: {
|
|
1036
1036
|
comp: N == null ? void 0 : N.comp,
|
|
1037
|
-
compData: (
|
|
1037
|
+
compData: (y = N == null ? void 0 : N.compData) == null ? void 0 : y.filter((ue) => (ue == null ? void 0 : ue.key) !== "tableContents"),
|
|
1038
1038
|
name: N == null ? void 0 : N.name,
|
|
1039
1039
|
isShow: N == null ? void 0 : N.isShow
|
|
1040
1040
|
}
|
|
1041
1041
|
};
|
|
1042
1042
|
F.push({
|
|
1043
|
-
key:
|
|
1043
|
+
key: E,
|
|
1044
1044
|
value: be
|
|
1045
1045
|
});
|
|
1046
1046
|
}), (F == null ? void 0 : F.length) > 0 && await Yl({
|
|
@@ -1057,8 +1057,8 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1057
1057
|
return;
|
|
1058
1058
|
}
|
|
1059
1059
|
if ((a == null ? void 0 : a.data) === "查看" && (e != null && e.every((W) => (W == null ? void 0 : W.url) && (W == null ? void 0 : W.name)))) {
|
|
1060
|
-
let W =
|
|
1061
|
-
W = await ((T =
|
|
1060
|
+
let W = J(e);
|
|
1061
|
+
W = await ((T = J(W)) == null ? void 0 : T.map(async (O) => {
|
|
1062
1062
|
var ee, F, d, N;
|
|
1063
1063
|
const P = await fa({
|
|
1064
1064
|
url: O == null ? void 0 : O.url
|
|
@@ -1070,15 +1070,15 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1070
1070
|
};
|
|
1071
1071
|
}));
|
|
1072
1072
|
let H = await Promise.all(W);
|
|
1073
|
-
|
|
1073
|
+
z.value = H, Je.value = !0;
|
|
1074
1074
|
}
|
|
1075
|
-
const n =
|
|
1075
|
+
const n = J(B.value);
|
|
1076
1076
|
if ((a == null ? void 0 : a.isMainKey) === !0 && (n == null ? void 0 : n.length) > 0) {
|
|
1077
1077
|
(v = n == null ? void 0 : n[0]) == null || v.prop;
|
|
1078
|
-
let W =
|
|
1078
|
+
let W = J(se).value + q + (a == null ? void 0 : a.data), H = J(se).value, O = (C = (m = rl.value[W]) == null ? void 0 : m.filter((F) => {
|
|
1079
1079
|
var d, N;
|
|
1080
1080
|
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) === "";
|
|
1081
|
-
})) == null ? void 0 :
|
|
1081
|
+
})) == null ? void 0 : C.map((F) => {
|
|
1082
1082
|
var d;
|
|
1083
1083
|
return (d = F == null ? void 0 : F.value) == null ? void 0 : d.pageData;
|
|
1084
1084
|
}), P = {};
|
|
@@ -1091,11 +1091,11 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1091
1091
|
ee = (d == null ? void 0 : d.routerContent) + q + (d == null ? void 0 : d.key);
|
|
1092
1092
|
}
|
|
1093
1093
|
if ((O == null ? void 0 : O.length) > 0)
|
|
1094
|
-
await we(W + q + `updateLoading${((x = ce.value) == null ? void 0 : x.account) || ((k = ce.value) == null ? void 0 : k.账号)}`, sessionStorage.getItem("systemKey"), "") || await Zl(W, W + q + `updateLoading${((f = ce.value) == null ? void 0 : f.account) || ((g = ce.value) == null ? void 0 : g.账号)}`, P, ee), de.setRouteToChildPath(H),
|
|
1094
|
+
await we(W + q + `updateLoading${((x = ce.value) == null ? void 0 : x.account) || ((k = ce.value) == null ? void 0 : k.账号)}`, sessionStorage.getItem("systemKey"), "") || await Zl(W, W + q + `updateLoading${((f = ce.value) == null ? void 0 : f.account) || ((g = ce.value) == null ? void 0 : g.账号)}`, P, ee), de.setRouteToChildPath(H), ye.setActiveMenuPath(W + q + `updateLoading${((i = ce.value) == null ? void 0 : i.account) || ((h = ce.value) == null ? void 0 : h.账号)}`);
|
|
1095
1095
|
else {
|
|
1096
1096
|
($ = n == null ? void 0 : n[0]) == null || $.prop;
|
|
1097
|
-
let F =
|
|
1098
|
-
await we(d + q, sessionStorage.getItem("systemKey"), ""), await Zl(d + q, F, P), await Zl(F, F + q + `updateLoading${((A = ce.value) == null ? void 0 : A.account) || ((X = ce.value) == null ? void 0 : X.账号)}`, P, ee), de.setRouteToChildPath(d),
|
|
1097
|
+
let F = J(se).value + q + (a == null ? void 0 : a.data), d = J(se).value;
|
|
1098
|
+
await we(d + q, sessionStorage.getItem("systemKey"), ""), await Zl(d + q, F, P), await Zl(F, F + q + `updateLoading${((A = ce.value) == null ? void 0 : A.account) || ((X = ce.value) == null ? void 0 : X.账号)}`, P, ee), de.setRouteToChildPath(d), ye.setActiveMenuPath(F + q + `updateLoading${((I = ce.value) == null ? void 0 : I.account) || ((Y = ce.value) == null ? void 0 : Y.账号)}`);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
}, Ar = () => {
|
|
@@ -1132,38 +1132,38 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1132
1132
|
}, Or = async () => {
|
|
1133
1133
|
const e = se.value, l = sessionStorage.getItem("systemKey"), r = await we(e, l, ""), a = r == null ? void 0 : r.find((o) => (o == null ? void 0 : o.name) === "方法明细"), n = (a == null ? void 0 : a.compData) || [], u = n == null ? void 0 : n.find((o) => (o == null ? void 0 : o.key) === "formContent");
|
|
1134
1134
|
return u == null ? void 0 : u.contents;
|
|
1135
|
-
}, oa = async () => `Bearer ${an.get("access-token")}`,
|
|
1135
|
+
}, oa = async () => `Bearer ${an.get("access-token")}`, Cr = async (e, { token: l, inputData: r } = {}) => await Sl.post(e, r, {
|
|
1136
1136
|
headers: {
|
|
1137
1137
|
Authorization: l
|
|
1138
1138
|
}
|
|
1139
|
-
}).catch((n) => (
|
|
1139
|
+
}).catch((n) => (ye.setImportLoading(!1), Promise.reject(n))), Er = (e) => {
|
|
1140
1140
|
var a;
|
|
1141
1141
|
let l = {};
|
|
1142
1142
|
const r = [];
|
|
1143
|
-
return l.form = {}, (a =
|
|
1144
|
-
var c, o, p, b, s, T, v, m,
|
|
1143
|
+
return l.form = {}, (a = J(e)) == null || a.forEach((n, u) => {
|
|
1144
|
+
var c, o, p, b, s, T, v, m, C, D, S, w, _, x;
|
|
1145
1145
|
if ((n == null ? void 0 : n.comp) === "Table") {
|
|
1146
1146
|
(o = (c = n == null ? void 0 : n.compData) == null ? void 0 : c.find((i) => (i == null ? void 0 : i.key) === "header")) == null || o.contents;
|
|
1147
1147
|
let k = (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));
|
|
1148
|
-
(D = (
|
|
1148
|
+
(D = (C = (m = (v = (T = n == null ? void 0 : n.compData) == null ? void 0 : T.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : v.contents) == null ? void 0 : m[0]) == null ? void 0 : C[0]) == null || D.label;
|
|
1149
1149
|
let f = (w = (S = n == null ? void 0 : n.compData) == null ? void 0 : S.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : w.contents, g = [];
|
|
1150
1150
|
k == null || k.forEach((i) => {
|
|
1151
|
-
let
|
|
1151
|
+
let h = [];
|
|
1152
1152
|
i == null || i.forEach(($, A) => {
|
|
1153
1153
|
var I;
|
|
1154
1154
|
let X = {};
|
|
1155
|
-
((I = f[A]) == null ? void 0 : I.label) !== "操作" && (X[f[A].label] = $,
|
|
1156
|
-
}), g.push(
|
|
1155
|
+
((I = f[A]) == null ? void 0 : I.label) !== "操作" && (X[f[A].label] = $, h.push(X));
|
|
1156
|
+
}), g.push(h);
|
|
1157
1157
|
}), l[n.name] = g;
|
|
1158
1158
|
} else {
|
|
1159
1159
|
const k = (x = (_ = n.compData) == null ? void 0 : _.find((f) => (f == null ? void 0 : f.key) === "formContent")) == null ? void 0 : x.contents;
|
|
1160
1160
|
k == null || k.forEach((f) => {
|
|
1161
1161
|
var g, i;
|
|
1162
1162
|
if (f.prop !== "") {
|
|
1163
|
-
let
|
|
1164
|
-
Array.isArray(
|
|
1163
|
+
let h = f == null ? void 0 : f.value;
|
|
1164
|
+
Array.isArray(h) ? h = ((g = h == null ? void 0 : h[0]) == null ? void 0 : g.oldUrl) || "http://222.92.178.198:62001/" + ((i = h == null ? void 0 : h[0]) == null ? void 0 : i.url) : h = h.toString(), f = {
|
|
1165
1165
|
key: (f == null ? void 0 : f.prop) ?? (f == null ? void 0 : f.label),
|
|
1166
|
-
value:
|
|
1166
|
+
value: h
|
|
1167
1167
|
}, r.push(f);
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
@@ -1171,69 +1171,69 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1171
1171
|
}), l.form = Sn(r), l;
|
|
1172
1172
|
}, Dr = async (e, l, r) => {
|
|
1173
1173
|
var $, A, X, I, Y, W, H, O, P, G, ee, F;
|
|
1174
|
-
|
|
1175
|
-
const a = await Or().catch((d) => (
|
|
1174
|
+
ye.setImportLoading(!0);
|
|
1175
|
+
const a = await Or().catch((d) => (ye.setImportLoading(!1), Promise.reject(d))), n = a == null ? void 0 : a.find((d) => (d == null ? void 0 : d.key) === "算法体"), u = n == null ? void 0 : n.value;
|
|
1176
1176
|
if (!u) {
|
|
1177
|
-
console.log("未搜索到isMain, 缺少算法执行接口"),
|
|
1177
|
+
console.log("未搜索到isMain, 缺少算法执行接口"), ye.setImportLoading(!1);
|
|
1178
1178
|
return;
|
|
1179
1179
|
}
|
|
1180
1180
|
const c = B.value || [], o = c.find((d) => (d == null ? void 0 : d.prop) === "输入"), p = o == null ? void 0 : o.prop;
|
|
1181
1181
|
let b = l == null ? void 0 : l[p];
|
|
1182
|
-
const s = await oa().catch((d) => (
|
|
1182
|
+
const s = await oa().catch((d) => (ye.setImportLoading(!1), Promise.reject(d)));
|
|
1183
1183
|
let T = !1, v = "";
|
|
1184
1184
|
($ = B.value) == null || $.forEach((d) => {
|
|
1185
1185
|
(d == null ? void 0 : d.prop) === p && (T = !!(d != null && d.childPath), v = d == null ? void 0 : d.childPath);
|
|
1186
1186
|
});
|
|
1187
|
-
let m = "",
|
|
1187
|
+
let m = "", C = "";
|
|
1188
1188
|
if (T) {
|
|
1189
1189
|
let d = (X = (A = B.value) == null ? void 0 : A.find((Se) => (Se == null ? void 0 : Se.isMainKey) === !0)) == null ? void 0 : X.prop;
|
|
1190
|
-
|
|
1191
|
-
let N = v == null ? void 0 : v.split(q),
|
|
1190
|
+
C = l == null ? void 0 : l[d];
|
|
1191
|
+
let N = v == null ? void 0 : v.split(q), E = [];
|
|
1192
1192
|
N == null || N.forEach((Se, fe) => {
|
|
1193
|
-
(N == null ? void 0 : N.length) - 1 === fe &&
|
|
1194
|
-
}),
|
|
1195
|
-
let be = await we(
|
|
1196
|
-
b =
|
|
1193
|
+
(N == null ? void 0 : N.length) - 1 === fe && E.push(C), E.push(Se);
|
|
1194
|
+
}), E = E.join(q), m = E;
|
|
1195
|
+
let be = await we(E, sessionStorage.getItem("systemKey"), "");
|
|
1196
|
+
b = Er(be);
|
|
1197
1197
|
}
|
|
1198
|
-
const D = await
|
|
1198
|
+
const D = await Cr(u, {
|
|
1199
1199
|
token: s,
|
|
1200
1200
|
inputData: b
|
|
1201
|
-
}).catch((d) => (
|
|
1201
|
+
}).catch((d) => (ye.setImportLoading(!1), Promise.reject(d))), S = (I = D == null ? void 0 : D.data) == null ? void 0 : I.data, w = a == null ? void 0 : a.find((d) => (d == null ? void 0 : d.prop) === "算法名称");
|
|
1202
1202
|
w == null || w.value;
|
|
1203
1203
|
const _ = c.find((d) => (d == null ? void 0 : d.prop) === "输出"), x = _ == null ? void 0 : _.directiveLabel;
|
|
1204
1204
|
m = m == null ? void 0 : m.replaceAll(o == null ? void 0 : o.directiveLabel, x);
|
|
1205
|
-
const k = (Y =
|
|
1205
|
+
const k = (Y = J(m)) == null ? void 0 : Y.replaceAll(q + C, "");
|
|
1206
1206
|
let f = await we(m, sessionStorage.getItem("systemKey"), ""), g = await we(k, sessionStorage.getItem("systemKey"), "");
|
|
1207
1207
|
if (f) {
|
|
1208
1208
|
let d = [], N = [];
|
|
1209
|
-
f == null || f.forEach((
|
|
1209
|
+
f == null || f.forEach((E) => {
|
|
1210
1210
|
var be, Se;
|
|
1211
|
-
if ((
|
|
1212
|
-
(be =
|
|
1211
|
+
if ((E == null ? void 0 : E.comp) === "Table")
|
|
1212
|
+
(be = E == null ? void 0 : E.compData) == null || be.forEach((fe) => {
|
|
1213
1213
|
var U;
|
|
1214
|
-
(fe == null ? void 0 : fe.key) === "tableContents" && ((U = fe == null ? void 0 : fe.contents) == null || U.forEach((
|
|
1214
|
+
(fe == null ? void 0 : fe.key) === "tableContents" && ((U = fe == null ? void 0 : fe.contents) == null || U.forEach((y) => {
|
|
1215
1215
|
var ue, oe;
|
|
1216
|
-
(ue =
|
|
1216
|
+
(ue = y == null ? void 0 : y[0]) != null && ue.id && d.push((oe = y == null ? void 0 : y[0]) == null ? void 0 : oe.id);
|
|
1217
1217
|
}));
|
|
1218
1218
|
});
|
|
1219
|
-
else if ((
|
|
1220
|
-
|
|
1221
|
-
var
|
|
1222
|
-
return (U == null ? void 0 : U.key) === "formContent" && (U.contents = (
|
|
1219
|
+
else if ((E == null ? void 0 : E.comp) === "Form") {
|
|
1220
|
+
E.compData = (Se = E == null ? void 0 : E.compData) == null ? void 0 : Se.map((U) => {
|
|
1221
|
+
var y;
|
|
1222
|
+
return (U == null ? void 0 : U.key) === "formContent" && (U.contents = (y = U == null ? void 0 : U.contents) == null ? void 0 : y.map((ue) => {
|
|
1223
1223
|
var oe, pe;
|
|
1224
1224
|
return (oe = S == null ? void 0 : S.form) != null && oe[ue.prop] && (ue.value = (pe = S == null ? void 0 : S.form) == null ? void 0 : pe[ue.prop]), ue;
|
|
1225
1225
|
})), U;
|
|
1226
1226
|
});
|
|
1227
1227
|
let fe = {
|
|
1228
1228
|
pageData: {
|
|
1229
|
-
comp:
|
|
1230
|
-
name:
|
|
1231
|
-
isShow:
|
|
1232
|
-
compData:
|
|
1229
|
+
comp: E == null ? void 0 : E.comp,
|
|
1230
|
+
name: E == null ? void 0 : E.name,
|
|
1231
|
+
isShow: E == null ? void 0 : E.isShow,
|
|
1232
|
+
compData: E == null ? void 0 : E.compData
|
|
1233
1233
|
}
|
|
1234
1234
|
};
|
|
1235
1235
|
N.push({
|
|
1236
|
-
id:
|
|
1236
|
+
id: E == null ? void 0 : E.id,
|
|
1237
1237
|
value: fe
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
@@ -1253,13 +1253,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1253
1253
|
createUserId: (W = ce.value) == null ? void 0 : W.id,
|
|
1254
1254
|
createUserOrg: ((H = ce.value) == null ? void 0 : H.dept) || ((O = ce.value) == null ? void 0 : O.部门名称)
|
|
1255
1255
|
};
|
|
1256
|
-
g == null || g.forEach((
|
|
1256
|
+
g == null || g.forEach((E) => {
|
|
1257
1257
|
let Se = {
|
|
1258
1258
|
pageData: {
|
|
1259
|
-
comp:
|
|
1260
|
-
name:
|
|
1261
|
-
isShow:
|
|
1262
|
-
compData:
|
|
1259
|
+
comp: E == null ? void 0 : E.comp,
|
|
1260
|
+
name: E == null ? void 0 : E.name,
|
|
1261
|
+
isShow: E == null ? void 0 : E.isShow,
|
|
1262
|
+
compData: E == null ? void 0 : E.compData
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
1265
|
d.push({
|
|
@@ -1278,19 +1278,19 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1278
1278
|
parentPageKey: "",
|
|
1279
1279
|
createUserLayer: ((G = ce.value) == null ? void 0 : G.dept) || ((ee = ce.value) == null ? void 0 : ee.部门名称)
|
|
1280
1280
|
};
|
|
1281
|
-
g == null || g.forEach((
|
|
1281
|
+
g == null || g.forEach((E) => {
|
|
1282
1282
|
var U;
|
|
1283
|
-
let be = (U =
|
|
1283
|
+
let be = (U = E == null ? void 0 : E.compData) == null ? void 0 : U.map((y) => {
|
|
1284
1284
|
var ue;
|
|
1285
|
-
return (
|
|
1285
|
+
return (y == null ? void 0 : y.key) === "formContent" && (y.contents = (ue = y.contents) == null ? void 0 : ue.map((oe) => {
|
|
1286
1286
|
var pe, Oe;
|
|
1287
1287
|
return (pe = S == null ? void 0 : S.form) != null && pe[oe.prop] && (oe.value = (Oe = S == null ? void 0 : S.form) == null ? void 0 : Oe[oe.prop]), oe;
|
|
1288
|
-
})),
|
|
1288
|
+
})), y;
|
|
1289
1289
|
}), fe = {
|
|
1290
1290
|
pageData: {
|
|
1291
|
-
comp:
|
|
1292
|
-
name:
|
|
1293
|
-
isShow:
|
|
1291
|
+
comp: E == null ? void 0 : E.comp,
|
|
1292
|
+
name: E == null ? void 0 : E.name,
|
|
1293
|
+
isShow: E == null ? void 0 : E.isShow,
|
|
1294
1294
|
compData: be
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
@@ -1304,7 +1304,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1304
1304
|
dataList: d
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
|
-
let i = await we(m, sessionStorage.getItem("systemKey"), ""),
|
|
1307
|
+
let i = await we(m, sessionStorage.getItem("systemKey"), ""), h = [];
|
|
1308
1308
|
S != null && S.table && ((F = S == null ? void 0 : S.table) == null || F.forEach((d) => {
|
|
1309
1309
|
var be, Se, fe, U;
|
|
1310
1310
|
let N = {
|
|
@@ -1314,21 +1314,21 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1314
1314
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1315
1315
|
createUserId: (Se = ce.value) == null ? void 0 : Se.id,
|
|
1316
1316
|
createUserOrg: ((fe = ce.value) == null ? void 0 : fe.dept) || ((U = ce.value) == null ? void 0 : U.部门名称)
|
|
1317
|
-
},
|
|
1317
|
+
}, E = {
|
|
1318
1318
|
tableData: d
|
|
1319
1319
|
};
|
|
1320
|
-
|
|
1320
|
+
h.push({
|
|
1321
1321
|
key: N,
|
|
1322
|
-
value:
|
|
1322
|
+
value: E
|
|
1323
1323
|
});
|
|
1324
|
-
})), (
|
|
1325
|
-
dataList:
|
|
1326
|
-
}),
|
|
1324
|
+
})), (h == null ? void 0 : h.length) > 0 && await Yl({
|
|
1325
|
+
dataList: h
|
|
1326
|
+
}), El(!0), ye.setImportLoading(!1);
|
|
1327
1327
|
}, Aa = (e, l) => (e = e == null ? void 0 : e.map((r) => {
|
|
1328
1328
|
var a, n;
|
|
1329
1329
|
return r != null && r.children && ((a = r.children) != null && a.find((u) => u.id === (l == null ? void 0 : l.id)) ? r.children = (n = r.children) == null ? void 0 : n.filter((u) => (u == null ? void 0 : u.id) !== (l == null ? void 0 : l.id)) : r.children = Aa(r.children, l)), r;
|
|
1330
1330
|
}), e), Xl = async (e, l, r) => {
|
|
1331
|
-
var a, n, u, c, o, p, b, s, T, v, m,
|
|
1331
|
+
var a, n, u, c, o, p, b, s, T, v, m, C, D, S, w;
|
|
1332
1332
|
if (Qe.value = "", zl.value = !0, ra.value = !0, M("onButtonClick", e, l), e === "删除")
|
|
1333
1333
|
Fa.confirm("是否确认删除", "温馨提示", {
|
|
1334
1334
|
confirmButtonText: "确认",
|
|
@@ -1336,7 +1336,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1336
1336
|
type: "warning"
|
|
1337
1337
|
}).then(() => {
|
|
1338
1338
|
var _, x;
|
|
1339
|
-
(_ = Z.value) != null && _.find((k) => (k == null ? void 0 : k.id) === (l == null ? void 0 : l.id)) ? Z.value = (x =
|
|
1339
|
+
(_ = Z.value) != null && _.find((k) => (k == null ? void 0 : k.id) === (l == null ? void 0 : l.id)) ? Z.value = (x = J(Z.value)) == null ? void 0 : x.filter((k) => (k == null ? void 0 : k.id) !== (l == null ? void 0 : l.id)) : Z.value = Aa(J(Z.value), l), Jn(Jl.value, Ie.value, l == null ? void 0 : l.id), de.setTableLoading(t == null ? void 0 : t.index), M("change", {
|
|
1340
1340
|
content: Z.value,
|
|
1341
1341
|
singleContent: l,
|
|
1342
1342
|
index: t == null ? void 0 : t.index,
|
|
@@ -1356,7 +1356,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1356
1356
|
() => {
|
|
1357
1357
|
var x, k;
|
|
1358
1358
|
const _ = (x = Re.value) == null ? void 0 : x.map((f) => f.id);
|
|
1359
|
-
Z.value = (k =
|
|
1359
|
+
Z.value = (k = J(Z.value)) == null ? void 0 : k.filter((f) => !(_ != null && _.includes(f.id))), de.setTableLoading(t == null ? void 0 : t.index), M("change", {
|
|
1360
1360
|
content: Z.value,
|
|
1361
1361
|
singleContent: null,
|
|
1362
1362
|
selectItems: Re.value,
|
|
@@ -1369,14 +1369,14 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1369
1369
|
);
|
|
1370
1370
|
} else if (e === "复制新增") {
|
|
1371
1371
|
We.value = "新增";
|
|
1372
|
-
const _ =
|
|
1372
|
+
const _ = J(l), x = (n = B.value) == null ? void 0 : n.find((g) => g == null ? void 0 : g.isMainKey), k = x || ((u = B.value) == null ? void 0 : u[0]), f = (c = sl.value) == null ? void 0 : c.find((g) => (g == null ? void 0 : g.label) === "新建");
|
|
1373
1373
|
await _a(!0, f, { data: _, firstCol: k });
|
|
1374
1374
|
} else if (e === "新增")
|
|
1375
|
-
We.value = "新增",
|
|
1375
|
+
We.value = "新增", Cl(""), Ze.value = !0;
|
|
1376
1376
|
else if (e === "编辑")
|
|
1377
|
-
We.value = "编辑",
|
|
1377
|
+
We.value = "编辑", Cl(l), Ze.value = !0;
|
|
1378
1378
|
else if (e === "查看")
|
|
1379
|
-
We.value = "查看",
|
|
1379
|
+
We.value = "查看", Cl(l), zl.value = !1, ra.value = !1, Ze.value = !0;
|
|
1380
1380
|
else if (e === "查看三维模型") {
|
|
1381
1381
|
const _ = {};
|
|
1382
1382
|
for (let k in l)
|
|
@@ -1387,29 +1387,29 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1387
1387
|
We.value = e, Fl.value = !0;
|
|
1388
1388
|
else if (e === "新建") {
|
|
1389
1389
|
let _ = rl.value, x = [];
|
|
1390
|
-
for (let
|
|
1391
|
-
|
|
1390
|
+
for (let h in _)
|
|
1391
|
+
h != null && h.includes(`loading${((b = ce.value) == null ? void 0 : b.account) || ((s = ce.value) == null ? void 0 : s.账号)}`) && (x = [...x, ...h]);
|
|
1392
1392
|
let k = [];
|
|
1393
|
-
for (let
|
|
1394
|
-
|
|
1395
|
-
let f = x == null ? void 0 : x.map((
|
|
1396
|
-
const g = k == null ? void 0 : k.map((
|
|
1397
|
-
f = [...
|
|
1393
|
+
for (let h in _)
|
|
1394
|
+
h != null && h.includes(`updateLoading${((T = ce.value) == null ? void 0 : T.account) || ((v = ce.value) == null ? void 0 : v.账号)}`) && (k = [...k, ...h]);
|
|
1395
|
+
let f = x == null ? void 0 : x.map((h) => h == null ? void 0 : h.id);
|
|
1396
|
+
const g = k == null ? void 0 : k.map((h) => h == null ? void 0 : h.id);
|
|
1397
|
+
f = [...J(f), ...g], (f == null ? void 0 : f.length) > 0 && (f != null && f.every((h) => h !== null && h)) && await pa({
|
|
1398
1398
|
ids: f
|
|
1399
1399
|
});
|
|
1400
|
-
const i = (m = sl.value) == null ? void 0 : m.find((
|
|
1400
|
+
const i = (m = sl.value) == null ? void 0 : m.find((h) => (h == null ? void 0 : h.label) === "新建");
|
|
1401
1401
|
await _a(!1, i);
|
|
1402
1402
|
} else if (e === "修改模板") {
|
|
1403
|
-
let _ =
|
|
1404
|
-
de.setRouteToChildPath(_),
|
|
1403
|
+
let _ = J(se).value;
|
|
1404
|
+
de.setRouteToChildPath(_), ye.setActiveMenuPath(_ + q);
|
|
1405
1405
|
} else if (e === "执行")
|
|
1406
1406
|
Dr(e, l);
|
|
1407
1407
|
else if (e != null && e.includes("导出")) {
|
|
1408
|
-
if (e === "导出选中" && ((
|
|
1408
|
+
if (e === "导出选中" && ((C = Re.value) == null ? void 0 : C.length) === 0)
|
|
1409
1409
|
return xe.warning(`请先勾选${e}的数据`);
|
|
1410
1410
|
if (e === "导出全部" && ((D = Z.value) == null ? void 0 : D.length) === 0)
|
|
1411
1411
|
return xe.warning("暂无数据导出");
|
|
1412
|
-
const _ = (w = (S = B.value) == null ? void 0 : S.map((k) => k == null ? void 0 : k.label)) == null ? void 0 : w.filter((k) => k !== "操作"), x = e === "导出全部" ?
|
|
1412
|
+
const _ = (w = (S = B.value) == null ? void 0 : S.map((k) => k == null ? void 0 : k.label)) == null ? void 0 : w.filter((k) => k !== "操作"), x = e === "导出全部" ? J(Z.value) : J(Re.value);
|
|
1413
1413
|
x == null || x.forEach((k) => {
|
|
1414
1414
|
k == null || delete k.id;
|
|
1415
1415
|
}), or(x, t == null ? void 0 : t.compName, _, t == null ? void 0 : t.compName);
|
|
@@ -1432,16 +1432,16 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1432
1432
|
};
|
|
1433
1433
|
}) : [];
|
|
1434
1434
|
}, Lr = async (e, l) => {
|
|
1435
|
-
var r, a, n, u, c, o, p, b, s, T, v, m,
|
|
1435
|
+
var r, a, n, u, c, o, p, b, s, T, v, m, C, D, S, w, _, x, k, f;
|
|
1436
1436
|
try {
|
|
1437
1437
|
let g, i;
|
|
1438
|
-
const
|
|
1438
|
+
const h = (r = rl.value[se.value + q]) == null ? void 0 : r.filter((O) => {
|
|
1439
1439
|
var P;
|
|
1440
1440
|
return ((P = O == null ? void 0 : O.key) == null ? void 0 : P.type) === "structureMethod";
|
|
1441
1441
|
}), $ = (a = rl.value[se.value + q]) == null ? void 0 : a.filter((O) => {
|
|
1442
1442
|
var P;
|
|
1443
1443
|
return ((P = O == null ? void 0 : O.key) == null ? void 0 : P.type) === "structure";
|
|
1444
|
-
}), A =
|
|
1444
|
+
}), A = h == null ? void 0 : h.find((O) => {
|
|
1445
1445
|
var P, G;
|
|
1446
1446
|
return ((G = (P = O == null ? void 0 : O.value) == null ? void 0 : P.pageData) == null ? void 0 : G.method) === "保存";
|
|
1447
1447
|
});
|
|
@@ -1463,7 +1463,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1463
1463
|
}),
|
|
1464
1464
|
extraContent: [],
|
|
1465
1465
|
extraValues: (m = (v = A == null ? void 0 : A.value) == null ? void 0 : v.pageData) == null ? void 0 : m.data,
|
|
1466
|
-
methodName: (D = (
|
|
1466
|
+
methodName: (D = (C = A == null ? void 0 : A.value) == null ? void 0 : C.pageData) == null ? void 0 : D.path
|
|
1467
1467
|
};
|
|
1468
1468
|
if (!e) return;
|
|
1469
1469
|
const Y = {
|
|
@@ -1524,15 +1524,15 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1524
1524
|
}), jr = R("系统自动生成信息"), Pr = async (e, l, r) => {
|
|
1525
1525
|
var p, b;
|
|
1526
1526
|
let a = e == null ? void 0 : e[l == null ? void 0 : l.prop], n = 1, u, c;
|
|
1527
|
-
const o =
|
|
1527
|
+
const o = J(se).value + q + a;
|
|
1528
1528
|
if (o) {
|
|
1529
1529
|
Ol.value = "", u = (p = rl.value[o]) == null ? void 0 : p.filter((v) => {
|
|
1530
1530
|
var m;
|
|
1531
1531
|
return ((m = v == null ? void 0 : v.key) == null ? void 0 : m.type) === "structure";
|
|
1532
1532
|
});
|
|
1533
1533
|
const s = u == null ? void 0 : u.find((v) => {
|
|
1534
|
-
var m,
|
|
1535
|
-
return ((D = (
|
|
1534
|
+
var m, C, D;
|
|
1535
|
+
return ((D = (C = (m = v == null ? void 0 : v.value) == null ? void 0 : m.pageData) == null ? void 0 : C.comp) == null ? void 0 : D.toUpperCase()) === "FORM";
|
|
1536
1536
|
});
|
|
1537
1537
|
c = {
|
|
1538
1538
|
...(b = s == null ? void 0 : s.value) == null ? void 0 : b.pageData,
|
|
@@ -1552,8 +1552,8 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1552
1552
|
var c, o, p, b, s, T, v, m;
|
|
1553
1553
|
let a, n;
|
|
1554
1554
|
const u = await Pr(r == null ? void 0 : r.data, r == null ? void 0 : r.firstCol);
|
|
1555
|
-
if (e ? (a =
|
|
1556
|
-
const
|
|
1555
|
+
if (e ? (a = J(se).value + q + ((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(se).value + q + u) : (a = J(se).value + q, n = J(a) + `loading${((c = ce.value) == null ? void 0 : c.account) || ((o = ce.value) == null ? void 0 : o.账号)}`), l) {
|
|
1556
|
+
const C = (T = (s = rl.value[n]) == null ? void 0 : s.filter((D) => {
|
|
1557
1557
|
var S;
|
|
1558
1558
|
return ((S = D == null ? void 0 : D.key) == null ? void 0 : S.parentTable) === "";
|
|
1559
1559
|
})) == null ? void 0 : T.map((D) => {
|
|
@@ -1563,15 +1563,15 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1563
1563
|
...(S = D == null ? void 0 : D.value) == null ? void 0 : S.pageData
|
|
1564
1564
|
};
|
|
1565
1565
|
});
|
|
1566
|
-
if ((
|
|
1566
|
+
if ((C == null ? void 0 : C.length) > 0)
|
|
1567
1567
|
if (e) {
|
|
1568
|
-
const D =
|
|
1568
|
+
const D = C == null ? void 0 : C.find((S) => {
|
|
1569
1569
|
var w;
|
|
1570
1570
|
return ((w = S == null ? void 0 : S.comp) == null ? void 0 : w.toUpperCase()) === "FORM";
|
|
1571
1571
|
});
|
|
1572
1572
|
D && Ua(D, (v = r == null ? void 0 : r.firstCol) == null ? void 0 : v.label, u, se.value);
|
|
1573
1573
|
} else
|
|
1574
|
-
de.setRouteToChildPath(
|
|
1574
|
+
de.setRouteToChildPath(J(se).value), ye.setActiveMenuPath(n);
|
|
1575
1575
|
else if (await Zl(a, n, null, null, jr.value), e) {
|
|
1576
1576
|
const D = await xr(n);
|
|
1577
1577
|
if ((D == null ? void 0 : D.length) > 0) {
|
|
@@ -1582,18 +1582,18 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1582
1582
|
S && Ua(S, (m = r == null ? void 0 : r.firstCol) == null ? void 0 : m.label, u, se.value);
|
|
1583
1583
|
}
|
|
1584
1584
|
} else
|
|
1585
|
-
de.setRouteToChildPath(
|
|
1585
|
+
de.setRouteToChildPath(J(se).value), ye.setActiveMenuPath(n);
|
|
1586
1586
|
} else
|
|
1587
|
-
e ? (Qe.value = "",
|
|
1587
|
+
e ? (Qe.value = "", Ee.value = r == null ? void 0 : r.data, El(!0, r == null ? void 0 : r.firstCol, u)) : (de.setRouteToChildPath(J(se).value), ye.setActiveMenuPath(n));
|
|
1588
1588
|
}, Kr = () => {
|
|
1589
1589
|
me.value = !1, Al.value = [], Pe.value = !1;
|
|
1590
|
-
},
|
|
1590
|
+
}, Cl = (e) => {
|
|
1591
1591
|
var n, u, c, o, p, b;
|
|
1592
1592
|
const l = [];
|
|
1593
1593
|
let r = [];
|
|
1594
1594
|
for (let s in e)
|
|
1595
1595
|
Array.isArray(e == null ? void 0 : e[s]) && r.push(s);
|
|
1596
|
-
ae.value =
|
|
1596
|
+
ae.value = J(B.value), (u = ea((n = J(B.value)) == null ? void 0 : n.filter((s) => (s == null ? void 0 : s.label) !== "操作"))) == null || u.forEach((s, T) => {
|
|
1597
1597
|
var v;
|
|
1598
1598
|
r.find((m) => m === (s == null ? void 0 : s.prop)) || (s != null && s.formType && ((v = s == null ? void 0 : s.formType) == null ? void 0 : v.toUpperCase()) === "SELECT" ? l.push({
|
|
1599
1599
|
label: (s == null ? void 0 : s.prop) || (s == null ? void 0 : s.label) || "",
|
|
@@ -1625,8 +1625,8 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1625
1625
|
disabled: s == null ? void 0 : s.disabled
|
|
1626
1626
|
}));
|
|
1627
1627
|
}), e === "" || !e || (Qe.value = (e == null ? void 0 : e.id) ?? "");
|
|
1628
|
-
let a = ea((c =
|
|
1629
|
-
Me.value && ((o = Me.value) == null ? void 0 : o.length) > 0 && (Me.value = (p =
|
|
1628
|
+
let a = ea((c = J(B.value)) == null ? void 0 : c.filter((s) => (s == null ? void 0 : s.label) !== "操作"));
|
|
1629
|
+
Me.value && ((o = Me.value) == null ? void 0 : o.length) > 0 && (Me.value = (p = J(Me).value) == null ? void 0 : p.map((s) => {
|
|
1630
1630
|
var v;
|
|
1631
1631
|
let T = (s == null ? void 0 : s.prop) || ((v = a == null ? void 0 : a.find((m) => (m == null ? void 0 : m.label) === (s == null ? void 0 : s.label))) == null ? void 0 : v.prop);
|
|
1632
1632
|
return T && (s.value = e[T]), s;
|
|
@@ -1652,7 +1652,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
});
|
|
1654
1654
|
};
|
|
1655
|
-
|
|
1655
|
+
ha(() => {
|
|
1656
1656
|
na.value = window.innerWidth - 240 * 2;
|
|
1657
1657
|
});
|
|
1658
1658
|
const Br = () => {
|
|
@@ -1672,9 +1672,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1672
1672
|
let o = {};
|
|
1673
1673
|
for (let p in n) {
|
|
1674
1674
|
let b = (u = l == null ? void 0 : l.find((s) => (s == null ? void 0 : s.prop) === p)) == null ? void 0 : u.label;
|
|
1675
|
-
b ? o[p] = (c =
|
|
1675
|
+
b ? o[p] = (c = Ee.value) == null ? void 0 : c[b] : o[p] = n[p];
|
|
1676
1676
|
}
|
|
1677
|
-
n = Object.assign(o,
|
|
1677
|
+
n = Object.assign(o, Ee.value), r = n;
|
|
1678
1678
|
} else {
|
|
1679
1679
|
let o = ta(n, l);
|
|
1680
1680
|
n = o == null ? void 0 : o.contents, r = o == null ? void 0 : o.currentSelectContents;
|
|
@@ -1692,9 +1692,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1692
1692
|
let o = {};
|
|
1693
1693
|
for (let p in n) {
|
|
1694
1694
|
let b = (u = l == null ? void 0 : l.find((s) => (s == null ? void 0 : s.prop) === p)) == null ? void 0 : u.label;
|
|
1695
|
-
b ? o[p] = (c =
|
|
1695
|
+
b ? o[p] = (c = Ee.value) == null ? void 0 : c[b] : o[p] = n[p];
|
|
1696
1696
|
}
|
|
1697
|
-
n = Object.assign(o,
|
|
1697
|
+
n = Object.assign(o, Ee.value), a = n;
|
|
1698
1698
|
}
|
|
1699
1699
|
return n;
|
|
1700
1700
|
}) : r = e == null ? void 0 : e.map((n) => {
|
|
@@ -1703,9 +1703,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1703
1703
|
let b = {};
|
|
1704
1704
|
for (let s in n) {
|
|
1705
1705
|
let T = (u = l == null ? void 0 : l.find((v) => (v == null ? void 0 : v.prop) === s)) == null ? void 0 : u.label;
|
|
1706
|
-
T ? b[s] = (c =
|
|
1706
|
+
T ? b[s] = (c = Ee.value) == null ? void 0 : c[T] : b[s] = n[s];
|
|
1707
1707
|
}
|
|
1708
|
-
n = Object.assign(b,
|
|
1708
|
+
n = Object.assign(b, Ee.value), a = n;
|
|
1709
1709
|
} else
|
|
1710
1710
|
n = (o = ta(n, l)) == null ? void 0 : o.contents, a = (p = ta(n, l)) == null ? void 0 : p.currentSelectContents;
|
|
1711
1711
|
return n;
|
|
@@ -1713,9 +1713,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1713
1713
|
newContents: r,
|
|
1714
1714
|
currentSelectContents: a
|
|
1715
1715
|
};
|
|
1716
|
-
},
|
|
1716
|
+
}, Ca = (e, l, r) => {
|
|
1717
1717
|
var a, n;
|
|
1718
|
-
return e[l == null ? void 0 : l.prop] = r, typeof e.id == "number" && (e.id = (a = e.id) == null ? void 0 : a.toString()), e.children && ((n = e.children) == null ? void 0 : n.length) > 0 && (e.children = e.children.map(
|
|
1718
|
+
return e[l == null ? void 0 : l.prop] = r, typeof e.id == "number" && (e.id = (a = e.id) == null ? void 0 : a.toString()), e.children && ((n = e.children) == null ? void 0 : n.length) > 0 && (e.children = e.children.map(Ca)), e;
|
|
1719
1719
|
}, ca = (e) => {
|
|
1720
1720
|
var r;
|
|
1721
1721
|
const l = [];
|
|
@@ -1725,10 +1725,10 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1725
1725
|
const n = { ...a };
|
|
1726
1726
|
return delete n.children, n;
|
|
1727
1727
|
}) : [];
|
|
1728
|
-
},
|
|
1729
|
-
var b, s, T, v, m,
|
|
1730
|
-
let a = ea((b =
|
|
1731
|
-
if (!
|
|
1728
|
+
}, El = (e = !0, l, r) => {
|
|
1729
|
+
var b, s, T, v, m, C, D, S, w;
|
|
1730
|
+
let a = ea((b = J(B.value)) == null ? void 0 : b.filter((_) => (_ == null ? void 0 : _.label) !== "操作")), n, u = J(Z.value);
|
|
1731
|
+
if (!Ee.value) {
|
|
1732
1732
|
Ze.value = !1;
|
|
1733
1733
|
return;
|
|
1734
1734
|
}
|
|
@@ -1738,15 +1738,15 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1738
1738
|
l && r ? _ = {
|
|
1739
1739
|
id: gl.value.toString(),
|
|
1740
1740
|
[l == null ? void 0 : l.prop]: r,
|
|
1741
|
-
children:
|
|
1741
|
+
children: Ee.value.children
|
|
1742
1742
|
} : _ = { id: gl.value.toString() }, _ != null && _.children && (_ = {
|
|
1743
1743
|
..._,
|
|
1744
|
-
children: (s = _.children) == null ? void 0 : s.map((x) =>
|
|
1745
|
-
}), u.push(Object.assign(
|
|
1744
|
+
children: (s = _.children) == null ? void 0 : s.map((x) => Ca(x, l, r))
|
|
1745
|
+
}), u.push(Object.assign(Ee.value, _)), n = Object.assign(Ee.value, _);
|
|
1746
1746
|
} else
|
|
1747
1747
|
u = (T = Oa(u, a)) == null ? void 0 : T.newContents, n = (v = Oa(u, a)) == null ? void 0 : v.currentSelectContents;
|
|
1748
1748
|
const c = (m = t.itemData) == null ? void 0 : m.filter((_) => (_ == null ? void 0 : _.key) === "childTree")[0];
|
|
1749
|
-
if (((
|
|
1749
|
+
if (((C = c == null ? void 0 : c.contents) == null ? void 0 : C.length) > 0) {
|
|
1750
1750
|
We.value = "编辑";
|
|
1751
1751
|
const _ = [];
|
|
1752
1752
|
u == null || u.forEach((x, k) => {
|
|
@@ -1754,18 +1754,18 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1754
1754
|
let f = {};
|
|
1755
1755
|
if (Array.isArray(x)) {
|
|
1756
1756
|
let i = [];
|
|
1757
|
-
x == null || x.filter((
|
|
1757
|
+
x == null || x.filter((h) => !(h != null && h.id)).forEach((h, $) => {
|
|
1758
1758
|
var A, X, I, Y, W, H, O;
|
|
1759
|
-
if ((X = (A = Ge.value) == null ? void 0 : A[$]) != null && X.prop && !Array.isArray(
|
|
1759
|
+
if ((X = (A = Ge.value) == null ? void 0 : A[$]) != null && X.prop && !Array.isArray(h)) {
|
|
1760
1760
|
let P = {};
|
|
1761
|
-
P[Ge.value[$].column] =
|
|
1761
|
+
P[Ge.value[$].column] = h, te != null && te.value && ((I = te == null ? void 0 : te.value) == null ? void 0 : I.length) > 0 && ((Y = te == null ? void 0 : te.value) != null && Y.find((G) => JSON.stringify(G == null ? void 0 : G[0]) === JSON.stringify(P))) && (i = (W = te == null ? void 0 : te.value) == null ? void 0 : W.find((G) => JSON.stringify(G == null ? void 0 : G[0]) === JSON.stringify(P))), i && i.length > 0 ? f[Ge.value[$].prop] = i != null && i.find((G) => {
|
|
1762
1762
|
var ee;
|
|
1763
1763
|
return ((ee = Object.keys(G)) == null ? void 0 : ee[0]) === Ge.value[$].column;
|
|
1764
1764
|
}) ? (H = i == null ? void 0 : i.find((G) => {
|
|
1765
1765
|
var ee;
|
|
1766
1766
|
return ((ee = Object.keys(G)) == null ? void 0 : ee[0]) === Ge.value[$].column;
|
|
1767
|
-
})) == null ? void 0 : H[Ge.value[$].column] :
|
|
1768
|
-
} else Array.isArray(
|
|
1767
|
+
})) == null ? void 0 : H[Ge.value[$].column] : h : f[Ge.value[$].prop] = h;
|
|
1768
|
+
} else Array.isArray(h) && ((O = Ge.value[$]) != null && O.prop ? f[Ge.value[$].prop] = h : f.children = ga(h, Ge.value));
|
|
1769
1769
|
});
|
|
1770
1770
|
} else
|
|
1771
1771
|
f = x;
|
|
@@ -1776,7 +1776,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1776
1776
|
xa(Z.value), Jl.value = Z.value;
|
|
1777
1777
|
const o = Gn(Jl.value, Ie.value, u);
|
|
1778
1778
|
let p = [];
|
|
1779
|
-
if (ml.value ? (p = (D =
|
|
1779
|
+
if (ml.value ? (p = (D = J(ml).value.singleContent) == null ? void 0 : D.filter((_) => (_ == null ? void 0 : _.id) !== (n == null ? void 0 : n.id)), p.push(n)) : p = [n], il.value) {
|
|
1780
1780
|
const _ = {
|
|
1781
1781
|
content: o,
|
|
1782
1782
|
singleContent: ((S = c == null ? void 0 : c.contents) == null ? void 0 : S.length) > 0 ? p == null ? void 0 : p.flatMap(ca) : p,
|
|
@@ -1796,26 +1796,26 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1796
1796
|
column: B.value,
|
|
1797
1797
|
parentTableId: t == null ? void 0 : t.parentTableId
|
|
1798
1798
|
};
|
|
1799
|
-
de.setTableLoading(t == null ? void 0 : t.index), Ze.value = !1,
|
|
1799
|
+
de.setTableLoading(t == null ? void 0 : t.index), Ze.value = !1, Ee.value = void 0, M("change", _);
|
|
1800
1800
|
}
|
|
1801
1801
|
};
|
|
1802
1802
|
Qr(() => {
|
|
1803
|
-
B.value = [], Z.value = [], ae.value = [], ze.value = [], Me.value = [], nl.value = [], Al.value = [],
|
|
1803
|
+
B.value = [], Z.value = [], ae.value = [], ze.value = [], Me.value = [], nl.value = [], Al.value = [], hl.value = [], Ve.value = [], Re.value = [], L.value = null;
|
|
1804
1804
|
});
|
|
1805
|
-
const
|
|
1806
|
-
var b, s, T, v, m,
|
|
1805
|
+
const Ea = async (e, l, r) => {
|
|
1806
|
+
var b, s, T, v, m, C, D, S, w, _, x;
|
|
1807
1807
|
ol.value = r == null ? void 0 : r.prop;
|
|
1808
|
-
const a =
|
|
1808
|
+
const a = J(t.itemData), n = a == null ? void 0 : a.map((k) => {
|
|
1809
1809
|
var f;
|
|
1810
1810
|
return (k == null ? void 0 : k.key) === "header" && ((f = k.contents) == null || f.map((g, i) => {
|
|
1811
|
-
var
|
|
1812
|
-
return g.type = g != null && g.type ? g.type : (X = (A = ($ = (
|
|
1813
|
-
var
|
|
1814
|
-
return (U == null ? void 0 : U.key) === ((pe = (oe = (ue = (
|
|
1811
|
+
var h, $, A, X, I, Y, W, H, O, P, G, ee, F, d, N, E, be, Se, fe;
|
|
1812
|
+
return g.type = g != null && g.type ? g.type : (X = (A = ($ = (h = g == null ? void 0 : g.key) == null ? void 0 : h.split("$")) == null ? void 0 : $[1]) == null ? void 0 : A.split("(")) != null && X[0] ? (Y = (I = za) == null ? void 0 : I.find((U) => {
|
|
1813
|
+
var y, ue, oe, pe;
|
|
1814
|
+
return (U == null ? void 0 : U.key) === ((pe = (oe = (ue = (y = g == null ? void 0 : g.key) == null ? void 0 : y.split("$")) == null ? void 0 : ue[1]) == null ? void 0 : oe.split("(")) == null ? void 0 : pe[0]);
|
|
1815
1815
|
})) == null ? void 0 : Y.value : "Input", g.options = g != null && g.options ? g.options : ((O = (H = (W = g == null ? void 0 : g.key) == null ? void 0 : W.split("$")) == null ? void 0 : H[1]) == null ? void 0 : O.length) > 0 ? (F = (ee = Wa((G = (P = g == null ? void 0 : g.key) == null ? void 0 : P.split("$")) == null ? void 0 : G[1])) == null ? void 0 : ee.split(",")) == null ? void 0 : F.map((U) => ({
|
|
1816
1816
|
label: U,
|
|
1817
1817
|
value: U
|
|
1818
|
-
})) : [], (d = g == null ? void 0 : g.key) != null && d.includes("$") && (g.key = (
|
|
1818
|
+
})) : [], (d = g == null ? void 0 : g.key) != null && d.includes("$") && (g.key = (E = (N = g == null ? void 0 : g.key) == null ? void 0 : N.split("$")) == null ? void 0 : E[0]), g.value = (be = Object.values(l)) == null ? void 0 : be[i], g.optionUrl = g != null && g.formMenuSelect && ((Se = g == null ? void 0 : g.formMenuSelect) == null ? void 0 : Se.length) > 0 ? {
|
|
1819
1819
|
groupSelect: (fe = g == null ? void 0 : g.groupSelect) == null ? void 0 : fe.split(/[::]/).map((U) => U.trim()),
|
|
1820
1820
|
menuSelect: g == null ? void 0 : g.formMenuSelect,
|
|
1821
1821
|
selectRelateType: "",
|
|
@@ -1823,120 +1823,120 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1823
1823
|
} : null, g;
|
|
1824
1824
|
})), k;
|
|
1825
1825
|
});
|
|
1826
|
-
let u =
|
|
1826
|
+
let u = J(Ve.value), c = (s = (b = J(n)) == null ? void 0 : b.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : s.contents;
|
|
1827
1827
|
u = u == null ? void 0 : u.map((k) => {
|
|
1828
1828
|
var f;
|
|
1829
1829
|
return k.value = (f = c == null ? void 0 : c.find((g, i) => i === (k == null ? void 0 : k.id))) == null ? void 0 : f.value, k;
|
|
1830
1830
|
});
|
|
1831
|
-
let o = "", p = (m = (v = (T =
|
|
1832
|
-
var g, i,
|
|
1833
|
-
return (k == null ? void 0 : k.label) === ol.value || (f == null ? void 0 : f.toString()) === ((
|
|
1831
|
+
let o = "", p = (m = (v = (T = J(n)) == null ? void 0 : T.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : v.contents) == null ? void 0 : m.find((k, f) => {
|
|
1832
|
+
var g, i, h;
|
|
1833
|
+
return (k == null ? void 0 : k.label) === ol.value || (f == null ? void 0 : f.toString()) === ((h = (i = (g = ol.value) == null ? void 0 : g.split("a")) == null ? void 0 : i[1]) == null ? void 0 : h.toString());
|
|
1834
1834
|
});
|
|
1835
|
-
if ((S = (D = (
|
|
1836
|
-
var f, g, i,
|
|
1837
|
-
o === "" && ((i = (g = (f = k == null ? void 0 : k.optionUrl) == null ? void 0 : f.groupSelect) == null ? void 0 : g[1]) != null && i.includes("[")) && (o = ($ = (
|
|
1835
|
+
if ((S = (D = (C = J(n)) == null ? void 0 : C.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : D.contents) == null || S.forEach((k) => {
|
|
1836
|
+
var f, g, i, h, $;
|
|
1837
|
+
o === "" && ((i = (g = (f = k == null ? void 0 : k.optionUrl) == null ? void 0 : f.groupSelect) == null ? void 0 : g[1]) != null && i.includes("[")) && (o = ($ = (h = k == null ? void 0 : k.optionUrl) == null ? void 0 : h.groupSelect) == null ? void 0 : $[1]);
|
|
1838
1838
|
}), (w = p == null ? void 0 : p.optionUrl) != null && w.menuSelect) {
|
|
1839
1839
|
let k = await Ga(p), f;
|
|
1840
1840
|
if (k == null || k.forEach((g) => {
|
|
1841
|
-
var i,
|
|
1842
|
-
o === ((
|
|
1841
|
+
var i, h, $, A, X, I, Y, W, H, O;
|
|
1842
|
+
o === ((h = (i = p == null ? void 0 : p.optionUrl) == null ? void 0 : i.groupSelect) == null ? void 0 : h[1]) && ((X = (A = ($ = p == null ? void 0 : p.optionUrl) == null ? void 0 : $.groupSelect) == null ? void 0 : A[1]) != null && X.includes("[")) && ((O = J(g)) == null ? void 0 : O[(H = (W = (Y = (I = p == null ? void 0 : p.optionUrl) == null ? void 0 : I.groupSelect) == null ? void 0 : Y[1]) == null ? void 0 : W.replaceAll("[", "")) == null ? void 0 : H.replaceAll("]", "")]) === (p == null ? void 0 : p.value) && (f = g);
|
|
1843
1843
|
}), f) {
|
|
1844
|
-
let g =
|
|
1845
|
-
g = g == null ? void 0 : g.map((
|
|
1844
|
+
let g = J(u);
|
|
1845
|
+
g = g == null ? void 0 : g.map((h) => {
|
|
1846
1846
|
var $, A, X, I, Y, W, H, O, P, G, ee;
|
|
1847
|
-
return (f != null && f[
|
|
1848
|
-
}), Z.value = (_ =
|
|
1849
|
-
if ((
|
|
1847
|
+
return (f != null && f[h == null ? void 0 : h.label] || f != null && f[(I = (X = (A = ($ = h == null ? void 0 : h.optionUrl) == null ? void 0 : $.groupSelect) == null ? void 0 : A[1]) == null ? void 0 : X.replaceAll("[", "")) == null ? void 0 : I.replaceAll("]", "")]) && ((H = (W = (Y = h == null ? void 0 : h.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : W[1]) != null && H.includes("[")) && (h.value = (f == null ? void 0 : f[h == null ? void 0 : h.label]) || (f == null ? void 0 : f[(ee = (G = (P = (O = h == null ? void 0 : h.optionUrl) == null ? void 0 : O.groupSelect) == null ? void 0 : P[1]) == null ? void 0 : G.replaceAll("[", "")) == null ? void 0 : ee.replaceAll("]", "")])), h;
|
|
1848
|
+
}), Z.value = (_ = J(Z.value)) == null ? void 0 : _.map((h) => {
|
|
1849
|
+
if ((h == null ? void 0 : h.id) === (l == null ? void 0 : l.id)) {
|
|
1850
1850
|
const $ = {};
|
|
1851
1851
|
return g == null || g.forEach((A) => {
|
|
1852
1852
|
$[A.name] = A.value;
|
|
1853
|
-
}), $.id =
|
|
1853
|
+
}), $.id = h == null ? void 0 : h.id, $;
|
|
1854
1854
|
}
|
|
1855
|
-
return
|
|
1855
|
+
return h;
|
|
1856
1856
|
});
|
|
1857
|
-
let i =
|
|
1858
|
-
i = i == null ? void 0 : i.map((
|
|
1857
|
+
let i = J(g);
|
|
1858
|
+
i = i == null ? void 0 : i.map((h) => {
|
|
1859
1859
|
var $, A, X, I;
|
|
1860
|
-
return (A = ($ =
|
|
1860
|
+
return (A = ($ = h == null ? void 0 : h.optionUrl) == null ? void 0 : $.menuSelect) != null && A.some((Y) => Y == null ? void 0 : Y.includes) && (h.optionUrl.menuSelect = (I = (X = h == null ? void 0 : h.optionUrl) == null ? void 0 : X.menuSelect) == null ? void 0 : I.map((Y) => {
|
|
1861
1861
|
var W, H, O, P;
|
|
1862
1862
|
if (Y != null && Y.includes("[")) {
|
|
1863
1863
|
let G = (H = (W = Y == null ? void 0 : Y.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : W.split(":")) == null ? void 0 : H[1];
|
|
1864
|
-
Y = (P = (O =
|
|
1864
|
+
Y = (P = (O = J(g)) == null ? void 0 : O.find((ee) => (ee == null ? void 0 : ee.label) === G)) == null ? void 0 : P.value;
|
|
1865
1865
|
}
|
|
1866
1866
|
return Y;
|
|
1867
|
-
})),
|
|
1868
|
-
}), Z.value = (x =
|
|
1869
|
-
if ((
|
|
1867
|
+
})), h;
|
|
1868
|
+
}), Z.value = (x = J(Z.value)) == null ? void 0 : x.map((h) => {
|
|
1869
|
+
if ((h == null ? void 0 : h.id) === (l == null ? void 0 : l.id)) {
|
|
1870
1870
|
const $ = {};
|
|
1871
1871
|
return i == null || i.forEach((A) => {
|
|
1872
1872
|
$[A.name] = A.value;
|
|
1873
|
-
}), $.id =
|
|
1873
|
+
}), $.id = h == null ? void 0 : h.id, $;
|
|
1874
1874
|
}
|
|
1875
|
-
return
|
|
1875
|
+
return h;
|
|
1876
1876
|
});
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
}, Mr = async (e) => {
|
|
1880
|
-
var b, s, T, v, m,
|
|
1880
|
+
var b, s, T, v, m, C, D, S, w, _, x, k;
|
|
1881
1881
|
if (!e) return;
|
|
1882
|
-
|
|
1883
|
-
const l =
|
|
1882
|
+
Ee.value = e;
|
|
1883
|
+
const l = J(t.itemData);
|
|
1884
1884
|
let r = l == null ? void 0 : l.map((f) => {
|
|
1885
1885
|
var g;
|
|
1886
|
-
return (f == null ? void 0 : f.key) === "header" && ((g = f.contents) == null || g.map((i,
|
|
1887
|
-
var $, A, X, I, Y, W, H, O, P, G, ee, F, d, N,
|
|
1888
|
-
return i.type = i != null && i.type ? i.type : (I = (X = (A = ($ = i == null ? void 0 : i.key) == null ? void 0 : $.split("$")) == null ? void 0 : A[1]) == null ? void 0 : X.split("(")) != null && I[0] ? (W = (Y = za) == null ? void 0 : Y.find((
|
|
1886
|
+
return (f == null ? void 0 : f.key) === "header" && ((g = f.contents) == null || g.map((i, h) => {
|
|
1887
|
+
var $, A, X, I, Y, W, H, O, P, G, ee, F, d, N, E, be, Se, fe, U;
|
|
1888
|
+
return i.type = i != null && i.type ? i.type : (I = (X = (A = ($ = i == null ? void 0 : i.key) == null ? void 0 : $.split("$")) == null ? void 0 : A[1]) == null ? void 0 : X.split("(")) != null && I[0] ? (W = (Y = za) == null ? void 0 : Y.find((y) => {
|
|
1889
1889
|
var ue, oe, pe, Oe;
|
|
1890
|
-
return (
|
|
1891
|
-
})) == null ? void 0 : W.value : "Input", i.options = i != null && i.options ? i.options : ((P = (O = (H = i == null ? void 0 : i.key) == null ? void 0 : H.split("$")) == null ? void 0 : O[1]) == null ? void 0 : P.length) > 0 ? (d = (F = Wa((ee = (G = i == null ? void 0 : i.key) == null ? void 0 : G.split("$")) == null ? void 0 : ee[1])) == null ? void 0 : F.split(",")) == null ? void 0 : d.map((
|
|
1892
|
-
label:
|
|
1893
|
-
value:
|
|
1894
|
-
})) : [], (N = i == null ? void 0 : i.key) != null && N.includes("$") && (i.key = (be = (
|
|
1895
|
-
groupSelect: (U = i == null ? void 0 : i.groupSelect) == null ? void 0 : U.split(/[::]/).map((
|
|
1890
|
+
return (y == null ? void 0 : y.key) === ((Oe = (pe = (oe = (ue = i == null ? void 0 : i.key) == null ? void 0 : ue.split("$")) == null ? void 0 : oe[1]) == null ? void 0 : pe.split("(")) == null ? void 0 : Oe[0]);
|
|
1891
|
+
})) == null ? void 0 : W.value : "Input", i.options = i != null && i.options ? i.options : ((P = (O = (H = i == null ? void 0 : i.key) == null ? void 0 : H.split("$")) == null ? void 0 : O[1]) == null ? void 0 : P.length) > 0 ? (d = (F = Wa((ee = (G = i == null ? void 0 : i.key) == null ? void 0 : G.split("$")) == null ? void 0 : ee[1])) == null ? void 0 : F.split(",")) == null ? void 0 : d.map((y) => ({
|
|
1892
|
+
label: y,
|
|
1893
|
+
value: y
|
|
1894
|
+
})) : [], (N = i == null ? void 0 : i.key) != null && N.includes("$") && (i.key = (be = (E = i == null ? void 0 : i.key) == null ? void 0 : E.split("$")) == null ? void 0 : be[0]), i.value = (Se = Object.values(e)) == null ? void 0 : Se[h], i.optionUrl = i != null && i.formMenuSelect && ((fe = i == null ? void 0 : i.formMenuSelect) == null ? void 0 : fe.length) > 0 ? {
|
|
1895
|
+
groupSelect: (U = i == null ? void 0 : i.groupSelect) == null ? void 0 : U.split(/[::]/).map((y) => y.trim()),
|
|
1896
1896
|
menuSelect: i == null ? void 0 : i.formMenuSelect,
|
|
1897
1897
|
selectRelateType: "",
|
|
1898
1898
|
type: (i == null ? void 0 : i.formType) ?? (i != null && i.groupSelect ? "Select" : "")
|
|
1899
1899
|
} : null, i;
|
|
1900
1900
|
})), f;
|
|
1901
|
-
}), a =
|
|
1901
|
+
}), a = Ve.value, n = (s = (b = J(r)) == null ? void 0 : b.find((f) => (f == null ? void 0 : f.key) === "header")) == null ? void 0 : s.contents;
|
|
1902
1902
|
if (a = a == null ? void 0 : a.map((f) => {
|
|
1903
1903
|
var g;
|
|
1904
|
-
return f.value = (g = n == null ? void 0 : n.find((i,
|
|
1904
|
+
return f.value = (g = n == null ? void 0 : n.find((i, h) => (i == null ? void 0 : i.prop) === (f == null ? void 0 : f.name))) == null ? void 0 : g.value, f;
|
|
1905
1905
|
}), !Ul.value) return;
|
|
1906
|
-
let u = "", c = (m = (v = (T =
|
|
1907
|
-
var i,
|
|
1908
|
-
return (f == null ? void 0 : f.label) === ol.value || (g == null ? void 0 : g.toString()) === (($ = (
|
|
1909
|
-
}), o = (
|
|
1910
|
-
if ((w = (S = (D =
|
|
1911
|
-
var g, i,
|
|
1912
|
-
p && ((
|
|
1906
|
+
let u = "", c = (m = (v = (T = J(r)) == null ? void 0 : T.find((f) => (f == null ? void 0 : f.key) === "header")) == null ? void 0 : v.contents) == null ? void 0 : m.find((f, g) => {
|
|
1907
|
+
var i, h, $;
|
|
1908
|
+
return (f == null ? void 0 : f.label) === ol.value || (g == null ? void 0 : g.toString()) === (($ = (h = (i = ol.value) == null ? void 0 : i.split("a")) == null ? void 0 : h[1]) == null ? void 0 : $.toString());
|
|
1909
|
+
}), o = (C = c == null ? void 0 : c.optionUrl) == null ? void 0 : C.menuSelect, p = !0;
|
|
1910
|
+
if ((w = (S = (D = J(r)) == null ? void 0 : D.find((f) => (f == null ? void 0 : f.key) === "header")) == null ? void 0 : S.contents) == null || w.forEach((f) => {
|
|
1911
|
+
var g, i, h, $, A, X;
|
|
1912
|
+
p && ((h = (i = (g = f == null ? void 0 : f.optionUrl) == null ? void 0 : g.groupSelect) == null ? void 0 : i[1]) != null && h.includes("[")) && (u = (A = ($ = f == null ? void 0 : f.optionUrl) == null ? void 0 : $.groupSelect) == null ? void 0 : A[1], JSON.stringify(o) === JSON.stringify((X = f == null ? void 0 : f.optionUrl) == null ? void 0 : X.menuSelect) && (p = !1));
|
|
1913
1913
|
}), (_ = c == null ? void 0 : c.optionUrl) != null && _.menuSelect && Ul.value) {
|
|
1914
1914
|
let f = await Ga(c), g;
|
|
1915
1915
|
if ((x = c == null ? void 0 : c.optionUrl) == null || x.menuSelect, f == null || f.forEach((i) => {
|
|
1916
|
-
var
|
|
1917
|
-
u === (($ = (
|
|
1916
|
+
var h, $, A, X, I, Y, W, H, O, P;
|
|
1917
|
+
u === (($ = (h = c == null ? void 0 : c.optionUrl) == null ? void 0 : h.groupSelect) == null ? void 0 : $[1]) && ((I = (X = (A = c == null ? void 0 : c.optionUrl) == null ? void 0 : A.groupSelect) == null ? void 0 : X[1]) != null && I.includes("[")) && ((P = J(i)) == null ? void 0 : P[(O = (H = (W = (Y = c == null ? void 0 : c.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : W[1]) == null ? void 0 : H.replaceAll("[", "")) == null ? void 0 : O.replaceAll("]", "")]) === (c == null ? void 0 : c.value) && (g = i);
|
|
1918
1918
|
}), g) {
|
|
1919
|
-
let i =
|
|
1919
|
+
let i = J(a);
|
|
1920
1920
|
i = i == null ? void 0 : i.map((A) => {
|
|
1921
1921
|
var X, I, Y, W, H, O, P, G, ee, F, d;
|
|
1922
1922
|
return (g != null && g[A == null ? void 0 : A.label] || g != null && g[(W = (Y = (I = (X = A == null ? void 0 : A.optionUrl) == null ? void 0 : X.groupSelect) == null ? void 0 : I[1]) == null ? void 0 : Y.replaceAll("[", "")) == null ? void 0 : W.replaceAll("]", "")]) && ((P = (O = (H = A == null ? void 0 : A.optionUrl) == null ? void 0 : H.groupSelect) == null ? void 0 : O[1]) != null && P.includes("[")) && (A.value = (g == null ? void 0 : g[A == null ? void 0 : A.label]) || (g == null ? void 0 : g[(d = (F = (ee = (G = A == null ? void 0 : A.optionUrl) == null ? void 0 : G.groupSelect) == null ? void 0 : ee[1]) == null ? void 0 : F.replaceAll("[", "")) == null ? void 0 : d.replaceAll("]", "")])), A;
|
|
1923
|
-
}), Ve.value =
|
|
1924
|
-
let
|
|
1925
|
-
|
|
1923
|
+
}), Ve.value = J(i);
|
|
1924
|
+
let h = J(i);
|
|
1925
|
+
h = h == null ? void 0 : h.map((A) => {
|
|
1926
1926
|
var X, I, Y, W, H, O;
|
|
1927
|
-
return (I = (X = A == null ? void 0 : A.optionUrl) == null ? void 0 : X.menuSelect) != null && I.some((P) => P == null ? void 0 : P.includes("[")) && (A.optionUrl.oldMenuSelect = (W = (Y =
|
|
1927
|
+
return (I = (X = A == null ? void 0 : A.optionUrl) == null ? void 0 : X.menuSelect) != null && I.some((P) => P == null ? void 0 : P.includes("[")) && (A.optionUrl.oldMenuSelect = (W = (Y = J(A)) == null ? void 0 : Y.optionUrl) == null ? void 0 : W.menuSelect, A.optionUrl.menuSelect = (O = (H = A == null ? void 0 : A.optionUrl) == null ? void 0 : H.menuSelect) == null ? void 0 : O.map((P) => {
|
|
1928
1928
|
var G, ee, F, d;
|
|
1929
1929
|
if (P != null && P.includes("[")) {
|
|
1930
1930
|
let N = (ee = (G = P == null ? void 0 : P.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : G.split(":")) == null ? void 0 : ee[1];
|
|
1931
|
-
P = (d = (F =
|
|
1931
|
+
P = (d = (F = J(i)) == null ? void 0 : F.find((E) => (E == null ? void 0 : E.label) === N)) == null ? void 0 : d.value;
|
|
1932
1932
|
}
|
|
1933
1933
|
return P;
|
|
1934
1934
|
})), A;
|
|
1935
|
-
}), Ve.value =
|
|
1935
|
+
}), Ve.value = h;
|
|
1936
1936
|
let $ = {};
|
|
1937
1937
|
(k = Ve.value) == null || k.forEach((A) => {
|
|
1938
1938
|
$[A.prop] = A == null ? void 0 : A.value;
|
|
1939
|
-
}),
|
|
1939
|
+
}), Ee.value = $;
|
|
1940
1940
|
}
|
|
1941
1941
|
}
|
|
1942
1942
|
Ul.value = !1;
|
|
@@ -1956,13 +1956,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1956
1956
|
}), e.children && ((r = e.children) == null ? void 0 : r.length) > 0 && (e.children = e.children.map((a) => Da(a, l))), e;
|
|
1957
1957
|
}, da = (e) => {
|
|
1958
1958
|
var r, a, n, u, c, o;
|
|
1959
|
-
|
|
1959
|
+
Cl("");
|
|
1960
1960
|
const l = (r = Ve.value) == null ? void 0 : r.reduce((p, b) => (p[b.name] = b.value, p), {});
|
|
1961
1961
|
if (((a = Object.keys(l)) == null ? void 0 : a.length) > 0) {
|
|
1962
|
-
|
|
1962
|
+
Ee.value = l, Qe.value = "", gl.value = (n = Z.value) == null ? void 0 : n.length, hl.value = (u = sl.value) == null ? void 0 : u.filter((b) => (b == null ? void 0 : b.label) !== "新增");
|
|
1963
1963
|
const p = (o = (c = ae.value) == null ? void 0 : c.filter((b) => (b == null ? void 0 : b.label) !== "操作")) == null ? void 0 : o.map((b) => {
|
|
1964
1964
|
var T, v, m;
|
|
1965
|
-
const s = (v = (T = Me.value) == null ? void 0 : T.find((
|
|
1965
|
+
const s = (v = (T = Me.value) == null ? void 0 : T.find((C) => (C == null ? void 0 : C.label) === (b == null ? void 0 : b.label))) == null ? void 0 : v.multiple;
|
|
1966
1966
|
return wr(b), {
|
|
1967
1967
|
...b,
|
|
1968
1968
|
contents: (b == null ? void 0 : b.options) ?? [],
|
|
@@ -1981,9 +1981,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1981
1981
|
B.value = p == null ? void 0 : p.map((b) => Da(b, [{
|
|
1982
1982
|
prop: "type",
|
|
1983
1983
|
value: "edit"
|
|
1984
|
-
}, { prop: "columnType", value: Nr(b == null ? void 0 : b.formType) || (b == null ? void 0 : b.columnType) }])), e === "createClick" &&
|
|
1984
|
+
}, { prop: "columnType", value: Nr(b == null ? void 0 : b.formType) || (b == null ? void 0 : b.columnType) }])), e === "createClick" && El(!1);
|
|
1985
1985
|
}
|
|
1986
|
-
},
|
|
1986
|
+
}, yl = {
|
|
1987
1987
|
START: "开始时间",
|
|
1988
1988
|
END: "结束时间",
|
|
1989
1989
|
HOURS: "工时"
|
|
@@ -1993,9 +1993,9 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
1993
1993
|
return r == null || r.forEach((c, o) => {
|
|
1994
1994
|
const { label: p } = c;
|
|
1995
1995
|
a.set(p, o);
|
|
1996
|
-
}), !a.has(
|
|
1997
|
-
const o = c == null ? void 0 : c[
|
|
1998
|
-
return o && p && (c[
|
|
1996
|
+
}), !a.has(yl.START) || !a.has(yl.END) || !a.has(yl.HOURS) ? e : e == null ? void 0 : e.map((c) => {
|
|
1997
|
+
const o = c == null ? void 0 : c[yl.START], p = c == null ? void 0 : c[yl.END], b = Fr(o, p);
|
|
1998
|
+
return o && p && (c[yl.HOURS] = `${b}天`), c;
|
|
1999
1999
|
});
|
|
2000
2000
|
}, La = (e, l, r = 0) => {
|
|
2001
2001
|
if (r > ((l == null ? void 0 : l.length) ?? "")) return e;
|
|
@@ -2007,7 +2007,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2007
2007
|
const u = [];
|
|
2008
2008
|
for (const [c, o] of n) {
|
|
2009
2009
|
const [p, ...b] = o, s = { ...p };
|
|
2010
|
-
r + 1 === ((l == null ? void 0 : l.length) ?? "") ? s.children = o == null ? void 0 : o.map((T) => (T.level =
|
|
2010
|
+
r + 1 === ((l == null ? void 0 : l.length) ?? "") ? s.children = o == null ? void 0 : o.map((T) => (T.level = J(r) + 1, T)).filter((T, v) => v !== 0) : b.length > 0 && (s.children = La(b, l, r + 1)), s.level = r, u.push(s);
|
|
2011
2011
|
}
|
|
2012
2012
|
return u;
|
|
2013
2013
|
}, ja = (e, l, r) => {
|
|
@@ -2017,7 +2017,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2017
2017
|
let a = [];
|
|
2018
2018
|
return a = La(e, l == null ? void 0 : l.contents, 0), a;
|
|
2019
2019
|
}, Pa = (e, l) => {
|
|
2020
|
-
var v, m,
|
|
2020
|
+
var v, m, C, D, S, w, _, x, k, f, g, i, h, $, A, X, I, Y, W, H, O, P, G, ee, F;
|
|
2021
2021
|
const r = e == null ? void 0 : e.filter((d) => (d == null ? void 0 : d.key) === "header");
|
|
2022
2022
|
e == null || e.filter((d) => (d == null ? void 0 : d.key) === "tableIndexColumn")[0];
|
|
2023
2023
|
const a = e == null ? void 0 : e.filter((d) => (d == null ? void 0 : d.key) === "childTree")[0];
|
|
@@ -2027,13 +2027,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2027
2027
|
let s = [];
|
|
2028
2028
|
ul.value === "" ? s = r == null ? void 0 : r[0] : s = (r == null ? void 0 : r.find((d) => (d == null ? void 0 : d.selectLabel) === "(" + ul.value + ")")) ?? (r == null ? void 0 : r.find((d) => !(d != null && d.selectLabel)));
|
|
2029
2029
|
let T = [];
|
|
2030
|
-
if (ul.value === "" ? T = b == null ? void 0 : b[0] : T = (b == null ? void 0 : b.find((d) => (d == null ? void 0 : d.selectLabel) === "(" + ul.value + ")")) ?? (b == null ? void 0 : b.find((d) => !(d != null && d.selectLabel))), ((
|
|
2030
|
+
if (ul.value === "" ? T = b == null ? void 0 : b[0] : T = (b == null ? void 0 : b.find((d) => (d == null ? void 0 : d.selectLabel) === "(" + ul.value + ")")) ?? (b == null ? void 0 : b.find((d) => !(d != null && d.selectLabel))), ((C = s == null ? void 0 : s.contents) == null ? void 0 : C.length) > 0) {
|
|
2031
2031
|
let d = [];
|
|
2032
|
-
if (s != null && s.contents.some((U) => Array.isArray(U) && (U == null ? void 0 : U.find((
|
|
2032
|
+
if (s != null && s.contents.some((U) => Array.isArray(U) && (U == null ? void 0 : U.find((y) => y.children))))
|
|
2033
2033
|
Ie.value === "" ? d = (S = (D = Na(s == null ? void 0 : s.contents)) == null ? void 0 : D[0]) == null ? void 0 : S.filter((U) => !Array.isArray(U)) : (Ie.value.split("-"), d = (w = Na(s == null ? void 0 : s.contents)) == null ? void 0 : w[0]);
|
|
2034
2034
|
else {
|
|
2035
|
-
let U = s != null && s.contents.some((
|
|
2036
|
-
U == null || U.forEach((
|
|
2035
|
+
let U = s != null && s.contents.some((y) => Array.isArray(y)) ? (_ = s == null ? void 0 : s.contents) == null ? void 0 : _[0] : s == null ? void 0 : s.contents;
|
|
2036
|
+
U == null || U.forEach((y, ue) => {
|
|
2037
2037
|
var Oe, Ne, Dl, xl;
|
|
2038
2038
|
let oe = "";
|
|
2039
2039
|
(Ne = (Oe = se.value) == null ? void 0 : Oe.split("/")) == null || Ne.forEach((qe) => {
|
|
@@ -2042,53 +2042,53 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2042
2042
|
let vl = (Pl = (jl = (Ll = qe == null ? void 0 : qe.split(q + "updateLoading")) == null ? void 0 : Ll[0]) == null ? void 0 : jl.split(q + "loading")) == null ? void 0 : Pl[0];
|
|
2043
2043
|
oe = oe === "" ? oe + vl : oe + "/" + vl;
|
|
2044
2044
|
}
|
|
2045
|
-
}), oe = oe + q + (
|
|
2046
|
-
const pe = (Dl = Me.value) == null ? void 0 : Dl.find((qe) => (qe == null ? void 0 : qe.prop) === (
|
|
2045
|
+
}), oe = oe + q + (y == null ? void 0 : y.directiveLabel);
|
|
2046
|
+
const pe = (Dl = Me.value) == null ? void 0 : Dl.find((qe) => (qe == null ? void 0 : qe.prop) === (y == null ? void 0 : y.prop));
|
|
2047
2047
|
d.push({
|
|
2048
|
-
label: (
|
|
2049
|
-
prop: (
|
|
2048
|
+
label: (y == null ? void 0 : y.label) ?? "",
|
|
2049
|
+
prop: (y == null ? void 0 : y.label) === "操作" ? "operate" : (y == null ? void 0 : y.prop) ?? "a" + ue,
|
|
2050
2050
|
// width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
|
|
2051
|
-
width:
|
|
2052
|
-
fixed: (
|
|
2053
|
-
sortable: (
|
|
2054
|
-
filterable: (
|
|
2055
|
-
operable: (
|
|
2056
|
-
showSummary: (
|
|
2057
|
-
align: (
|
|
2058
|
-
showOverflowTooltip: (
|
|
2059
|
-
isNotDrag: (
|
|
2060
|
-
isEditCol: (
|
|
2061
|
-
isOperate: (
|
|
2062
|
-
id: (
|
|
2063
|
-
type: (
|
|
2064
|
-
formType: (
|
|
2065
|
-
isTableColHidden:
|
|
2066
|
-
isFormColHidden:
|
|
2067
|
-
disabled:
|
|
2068
|
-
options: (
|
|
2069
|
-
value: (
|
|
2070
|
-
formMenuSelect: (
|
|
2071
|
-
isRoute: (
|
|
2072
|
-
groupSelect:
|
|
2073
|
-
isMainKey: (
|
|
2051
|
+
width: y != null && y.width ? parseInt(y.width) : "",
|
|
2052
|
+
fixed: (y == null ? void 0 : y.fixed) ?? void 0,
|
|
2053
|
+
sortable: (y == null ? void 0 : y.sortable) ?? !1,
|
|
2054
|
+
filterable: (y == null ? void 0 : y.filterable) ?? !1,
|
|
2055
|
+
operable: (y == null ? void 0 : y.operable) ?? !1,
|
|
2056
|
+
showSummary: (y == null ? void 0 : y.showSummary) ?? !1,
|
|
2057
|
+
align: (y == null ? void 0 : y.align) ?? "left",
|
|
2058
|
+
showOverflowTooltip: (y == null ? void 0 : y.showOverflowTooltip) ?? !0,
|
|
2059
|
+
isNotDrag: (y == null ? void 0 : y.isNotDrag) ?? !1,
|
|
2060
|
+
isEditCol: (y == null ? void 0 : y.isEditCol) ?? !1,
|
|
2061
|
+
isOperate: (y == null ? void 0 : y.isOperate) ?? !1,
|
|
2062
|
+
id: (y == null ? void 0 : y.id) ?? ue,
|
|
2063
|
+
type: (y == null ? void 0 : y.label) === "操作" ? "operate" : void 0,
|
|
2064
|
+
formType: (y == null ? void 0 : y.formType) ?? (y != null && y.groupSelect ? "Select" : ""),
|
|
2065
|
+
isTableColHidden: y == null ? void 0 : y.isTableColHidden,
|
|
2066
|
+
isFormColHidden: y == null ? void 0 : y.isFormColHidden,
|
|
2067
|
+
disabled: y == null ? void 0 : y.disabled,
|
|
2068
|
+
options: (y == null ? void 0 : y.options) ?? [],
|
|
2069
|
+
value: (y == null ? void 0 : y.value) ?? "",
|
|
2070
|
+
formMenuSelect: (y == null ? void 0 : y.formMenuSelect) ?? [],
|
|
2071
|
+
isRoute: (y == null ? void 0 : y.isRoute) ?? !1,
|
|
2072
|
+
groupSelect: y != null && y.groupSelect ? (xl = y == null ? void 0 : y.groupSelect) == null ? void 0 : xl.replaceAll('"', "").split(":") : [],
|
|
2073
|
+
isMainKey: (y == null ? void 0 : y.isMainKey) || (y == null ? void 0 : y.directiveLabel) && !n[oe],
|
|
2074
2074
|
// 同步弹窗列类型到表格列类型
|
|
2075
|
-
columnType: (pe == null ? void 0 : pe.type) || (
|
|
2076
|
-
directiveLabel:
|
|
2077
|
-
isExistChild: !!(
|
|
2075
|
+
columnType: (pe == null ? void 0 : pe.type) || (y == null ? void 0 : y.columnType) || "TEXTAREA",
|
|
2076
|
+
directiveLabel: y == null ? void 0 : y.directiveLabel,
|
|
2077
|
+
isExistChild: !!(y != null && y.directiveLabel && n[oe]),
|
|
2078
2078
|
childPath: oe
|
|
2079
2079
|
});
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
2082
|
B.value = wa(d), ze.value = wa(d), Q.value = (x = B.value) == null ? void 0 : x.map((U) => U == null ? void 0 : U.label), ll.value = (k = B.value) == null ? void 0 : k.every((U) => U == null ? void 0 : U.filterable), Ue.value = (f = B.value) == null ? void 0 : f.every((U) => U == null ? void 0 : U.operable), Be.value = (g = B.value) == null ? void 0 : g.every((U) => U == null ? void 0 : U.sortable);
|
|
2083
|
-
let N = (
|
|
2084
|
-
prop: (U == null ? void 0 : U.prop) ?? "a" +
|
|
2083
|
+
let N = (h = (i = vn(B.value)) == null ? void 0 : i.filter((U) => (U == null ? void 0 : U.type) !== "operate")) == null ? void 0 : h.map((U, y) => ({
|
|
2084
|
+
prop: (U == null ? void 0 : U.prop) ?? "a" + y,
|
|
2085
2085
|
column: U.label
|
|
2086
2086
|
}));
|
|
2087
2087
|
Ge.value = N;
|
|
2088
|
-
let
|
|
2089
|
-
ul.value === "" ?
|
|
2090
|
-
let be = Array.isArray(($ =
|
|
2091
|
-
T != null && T.contents && ((I = T == null ? void 0 : T.contents) == null ? void 0 : I.length) !== 0 && (be = (Y =
|
|
2088
|
+
let E = [];
|
|
2089
|
+
ul.value === "" ? E = p == null ? void 0 : p[0] : E = (p == null ? void 0 : p.find((U) => (U == null ? void 0 : U.selectLabel) === "(" + ul.value + ")")) ?? (p == null ? void 0 : p.find((U) => !(U != null && U.selectLabel)));
|
|
2090
|
+
let be = Array.isArray(($ = E == null ? void 0 : E.contents) == null ? void 0 : $[0]) && ((A = E == null ? void 0 : E.contents) != null && A[0].every((U) => Array.isArray(U))) ? (X = E == null ? void 0 : E.contents) == null ? void 0 : X[0] : E == null ? void 0 : E.contents;
|
|
2091
|
+
T != null && T.contents && ((I = T == null ? void 0 : T.contents) == null ? void 0 : I.length) !== 0 && (be = (Y = J(be)) == null ? void 0 : Y.map((U, y) => {
|
|
2092
2092
|
if (!Array.isArray(U)) {
|
|
2093
2093
|
let ue = {};
|
|
2094
2094
|
for (let oe in U)
|
|
@@ -2100,7 +2100,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2100
2100
|
const Se = !!((W = B.value) != null && W.find((U) => U.prop === "index"));
|
|
2101
2101
|
be = Ha(be, T == null ? void 0 : T.contents, Se);
|
|
2102
2102
|
const fe = [];
|
|
2103
|
-
be == null || be.forEach((U,
|
|
2103
|
+
be == null || be.forEach((U, y) => {
|
|
2104
2104
|
var oe;
|
|
2105
2105
|
let ue = {};
|
|
2106
2106
|
if (Array.isArray(U)) {
|
|
@@ -2120,14 +2120,14 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2120
2120
|
});
|
|
2121
2121
|
} else
|
|
2122
2122
|
ue = U;
|
|
2123
|
-
Array.isArray(U) && U.some((pe) => pe == null ? void 0 : pe.id) ? fe.push(Object.assign(ue, { id: (oe = U == null ? void 0 : U.find((pe) => pe.id)) == null ? void 0 : oe.id })) : ue.id ? fe.push(ue) : fe.push(Object.assign(ue, { id:
|
|
2123
|
+
Array.isArray(U) && U.some((pe) => pe == null ? void 0 : pe.id) ? fe.push(Object.assign(ue, { id: (oe = U == null ? void 0 : U.find((pe) => pe.id)) == null ? void 0 : oe.id })) : ue.id ? fe.push(ue) : fe.push(Object.assign(ue, { id: y.toString() }));
|
|
2124
2124
|
}), Z.value = ja(fe, a, B.value), Nl.value = fe, (H = Nl.value) == null || H.forEach((U) => {
|
|
2125
|
-
var
|
|
2126
|
-
(
|
|
2125
|
+
var y;
|
|
2126
|
+
(y = wl.value) == null || y.set(U.id, U);
|
|
2127
2127
|
});
|
|
2128
2128
|
} else
|
|
2129
2129
|
B.value = [], ae.value = [], Z.value = [], Nl.value = [], wl.value = /* @__PURE__ */ new Map();
|
|
2130
|
-
((O = c == null ? void 0 : c.contents) == null ? void 0 : O.length) > 0 ? nl.value = c == null ? void 0 : c.contents : nl.value = [], ((P = o == null ? void 0 : o.contents) == null ? void 0 : P.length) > 0 ? (
|
|
2130
|
+
((O = c == null ? void 0 : c.contents) == null ? void 0 : O.length) > 0 ? nl.value = c == null ? void 0 : c.contents : nl.value = [], ((P = o == null ? void 0 : o.contents) == null ? void 0 : P.length) > 0 ? (hl.value = o == null ? void 0 : o.contents, sl.value = o == null ? void 0 : o.contents) : (hl.value = [], sl.value = []), gl.value = ((G = Z == null ? void 0 : Z.value) == null ? void 0 : G.length) ?? 0, xa(Z.value), Jl.value = Z.value, il.value && (B.value = (F = (ee = ae.value) == null ? void 0 : ee.filter((d) => (d == null ? void 0 : d.label) !== "操作")) == null ? void 0 : F.map((d) => {
|
|
2131
2131
|
var N;
|
|
2132
2132
|
return {
|
|
2133
2133
|
...d,
|
|
@@ -2159,7 +2159,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2159
2159
|
},
|
|
2160
2160
|
{ deep: !0, immediate: !0 }
|
|
2161
2161
|
), Fe(() => t == null ? void 0 : t.operatingForm, (e) => {
|
|
2162
|
-
e != null && e.form && (
|
|
2162
|
+
e != null && e.form && (Cl(e == null ? void 0 : e.form), We.value = e == null ? void 0 : e.dialogTitle, zl.value = !0, Ze.value = !0);
|
|
2163
2163
|
}, { immediate: !0, deep: !0 });
|
|
2164
2164
|
const Ka = () => {
|
|
2165
2165
|
il.value = !il.value;
|
|
@@ -2167,7 +2167,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2167
2167
|
Gl.value = !Gl.value;
|
|
2168
2168
|
};
|
|
2169
2169
|
Fe(() => il.value, (e) => {
|
|
2170
|
-
e ? (da("viewChange"), de.setCacheUpdatingData(null)) : (
|
|
2170
|
+
e ? (da("viewChange"), de.setCacheUpdatingData(null)) : (hl.value = sl.value, B.value = ze.value, ml.value && (de.setTableLoading(t == null ? void 0 : t.index), M("change", ml.value)));
|
|
2171
2171
|
}, { immediate: !0 }), Fe(() => {
|
|
2172
2172
|
var e;
|
|
2173
2173
|
return (e = Sa.value) == null ? void 0 : e.length;
|
|
@@ -2179,25 +2179,25 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2179
2179
|
da("createClick"), l === Ae.pageSize && (Ae.currentPage = Math.ceil(((r = Z.value) == null ? void 0 : r.length) / Ae.pageSize));
|
|
2180
2180
|
}, Wr = (e, l, r) => {
|
|
2181
2181
|
var a;
|
|
2182
|
-
|
|
2182
|
+
Ea(r, e, l), Ee.value = J(e), Qe.value = e == null ? void 0 : e.id, gl.value = (a = Z.value) == null ? void 0 : a.length, We.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", El(!1);
|
|
2183
2183
|
}, De = (e) => {
|
|
2184
|
-
var p, b, s, T, v, m,
|
|
2184
|
+
var p, b, s, T, v, m, C, D, S, w;
|
|
2185
2185
|
const { row: l, column: r, item: a, slotData: n } = e;
|
|
2186
|
-
let u = 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]) : ((T = (s = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : s[0]) == null ? void 0 : T.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((m = (v = n == null ? void 0 : n[a == null ? void 0 : a.prop]) == null ? void 0 : v[0]) == null ? void 0 : m.contents) ?? (n == null ? void 0 : n[a == null ? void 0 : a.prop]) ?? ((S = (D = l == null ? void 0 : l[(
|
|
2186
|
+
let u = 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]) : ((T = (s = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : s[0]) == null ? void 0 : T.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((m = (v = n == null ? void 0 : n[a == null ? void 0 : a.prop]) == null ? void 0 : v[0]) == null ? void 0 : m.contents) ?? (n == null ? void 0 : n[a == null ? void 0 : a.prop]) ?? ((S = (D = l == null ? void 0 : l[(C = a == null ? void 0 : a.child) == null ? void 0 : C.prop]) == null ? void 0 : D[0]) == null ? void 0 : S.contents) ?? (l == null ? void 0 : l[(w = a == null ? void 0 : a.child) == null ? void 0 : w.prop]), o = Array.isArray(u) && !(u != null && u.every((_) => typeof _ == "string" || typeof _ == "number")) ? "查看" : u;
|
|
2187
2187
|
return o = Array.isArray(o) ? o.join(",") : o, o;
|
|
2188
2188
|
}, Gr = (e) => {
|
|
2189
|
-
var b, s, T, v, m,
|
|
2189
|
+
var b, s, T, v, m, C, D, S, w, _;
|
|
2190
2190
|
const { row: l, column: r, item: a, slotData: n } = e;
|
|
2191
|
-
let u = 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]) : ((v = (T = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : T[0]) == null ? void 0 : v.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((
|
|
2191
|
+
let u = 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]) : ((v = (T = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : T[0]) == null ? void 0 : v.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((C = (m = n == null ? void 0 : n[a == null ? void 0 : a.prop]) == null ? void 0 : m[0]) == null ? void 0 : C.contents) ?? (n == null ? void 0 : n[a == null ? void 0 : a.prop]) ?? ((w = (S = l == null ? void 0 : l[(D = a == null ? void 0 : a.child) == null ? void 0 : D.prop]) == null ? void 0 : S[0]) == null ? void 0 : w.contents) ?? (l == null ? void 0 : l[(_ = a == null ? void 0 : a.child) == null ? void 0 : _.prop]);
|
|
2192
2192
|
const o = Array.isArray(u) && !(u != null && u.every((x) => typeof x == "string" || typeof x == "number")), p = Array.isArray(u) && (u == null ? void 0 : u.find((x) => x == null ? void 0 : x.url));
|
|
2193
2193
|
return o && p;
|
|
2194
2194
|
}, Rr = (e, l) => e.find((r) => Object.values(r).some((a) => a === l));
|
|
2195
2195
|
return Fe(() => Xe.value, async (e) => {
|
|
2196
2196
|
if (e) {
|
|
2197
|
-
|
|
2197
|
+
ye.setContentLoading(!0), await Il();
|
|
2198
2198
|
const l = Rr(Z.value, e == null ? void 0 : e.data);
|
|
2199
|
-
if (!l) return
|
|
2200
|
-
await Ta(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }),
|
|
2199
|
+
if (!l) return ye.setContentLoading(!1);
|
|
2200
|
+
await Ta(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }), ye.setContentLoading(!1);
|
|
2201
2201
|
}
|
|
2202
2202
|
}, { deep: !0, immediate: !0 }), Fe(() => t == null ? void 0 : t.cacheNewData, (e) => {
|
|
2203
2203
|
var l;
|
|
@@ -2228,7 +2228,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2228
2228
|
isShowDelete: !1,
|
|
2229
2229
|
allowSelect: K.allowSelect,
|
|
2230
2230
|
onDbClickRow: Tr,
|
|
2231
|
-
extraButton:
|
|
2231
|
+
extraButton: hl.value,
|
|
2232
2232
|
rowButton: nl.value,
|
|
2233
2233
|
cacheExtraButtons: sl.value,
|
|
2234
2234
|
isClearSelection: ((b = Re.value) == null ? void 0 : b.length) === 0,
|
|
@@ -2238,7 +2238,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2238
2238
|
onRowClick: Ur,
|
|
2239
2239
|
onSelectChange: pr,
|
|
2240
2240
|
onCellChange: Wr,
|
|
2241
|
-
onChange:
|
|
2241
|
+
onChange: Ea,
|
|
2242
2242
|
onPreview: ka,
|
|
2243
2243
|
onSubmitEditingTable: dr,
|
|
2244
2244
|
onHandleColEditChange: tr,
|
|
@@ -2246,14 +2246,14 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2246
2246
|
onClickButton: Xl
|
|
2247
2247
|
}, Yr({
|
|
2248
2248
|
headerButton: re((v) => {
|
|
2249
|
-
var m,
|
|
2249
|
+
var m, C;
|
|
2250
2250
|
return [
|
|
2251
2251
|
K.showHeader ? (ne(), $e(jn, {
|
|
2252
2252
|
key: 0,
|
|
2253
2253
|
lockingPage: Ye(Ml) === Ye(se),
|
|
2254
2254
|
filterValues: ma.value,
|
|
2255
2255
|
selectNums: (m = Re.value) == null ? void 0 : m.length,
|
|
2256
|
-
dataNums: (
|
|
2256
|
+
dataNums: (C = Z.value) == null ? void 0 : C.length,
|
|
2257
2257
|
compName: K.compName,
|
|
2258
2258
|
isDevMode: K.isDevMode,
|
|
2259
2259
|
buttons: v.buttons,
|
|
@@ -2269,7 +2269,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2269
2269
|
var v, m;
|
|
2270
2270
|
return [
|
|
2271
2271
|
((v = Z.value) == null ? void 0 : v.length) > 0 && K.allowOperate ? (ne(), Te("div", Yn, [
|
|
2272
|
-
(m = nl.value) != null && m.some((
|
|
2272
|
+
(m = nl.value) != null && m.some((C) => (C == null ? void 0 : C.label) === "编辑") && !Gl.value && Ye(Ml) !== Ye(se) ? (ne(), Te("span", {
|
|
2273
2273
|
key: 0,
|
|
2274
2274
|
title: "编辑表格",
|
|
2275
2275
|
onClick: Ka
|
|
@@ -2295,7 +2295,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2295
2295
|
ve("span", {
|
|
2296
2296
|
title: "新增",
|
|
2297
2297
|
class: "row-create-wrap",
|
|
2298
|
-
onClick: (
|
|
2298
|
+
onClick: (C) => Jr(v, m)
|
|
2299
2299
|
}, [
|
|
2300
2300
|
ie(r, {
|
|
2301
2301
|
name: "rowCreate",
|
|
@@ -2364,7 +2364,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2364
2364
|
ve("span", {
|
|
2365
2365
|
title: v.label,
|
|
2366
2366
|
style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
2367
|
-
},
|
|
2367
|
+
}, Ce(v.label), 9, es)
|
|
2368
2368
|
]),
|
|
2369
2369
|
_: 2
|
|
2370
2370
|
}, 1032, ["value"]),
|
|
@@ -2384,16 +2384,16 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2384
2384
|
var m;
|
|
2385
2385
|
return [
|
|
2386
2386
|
ve("div", ls, [
|
|
2387
|
-
(ne(!0), Te(cl, null, dl((m = Object.keys(v)) == null ? void 0 : m.filter((
|
|
2387
|
+
(ne(!0), Te(cl, null, dl((m = Object.keys(v)) == null ? void 0 : m.filter((C) => {
|
|
2388
2388
|
var D;
|
|
2389
|
-
return (D = le.value) == null ? void 0 : D.find((S) => (S == null ? void 0 : S.value) ===
|
|
2390
|
-
}), (
|
|
2389
|
+
return (D = le.value) == null ? void 0 : D.find((S) => (S == null ? void 0 : S.value) === C);
|
|
2390
|
+
}), (C) => {
|
|
2391
2391
|
var D, S;
|
|
2392
|
-
return ne(), Te("div", { key:
|
|
2392
|
+
return ne(), Te("div", { key: C }, [
|
|
2393
2393
|
ie(n, {
|
|
2394
|
-
"model-value": v == null ? void 0 : v[
|
|
2395
|
-
"active-text": (S = (D = le.value) == null ? void 0 : D.find((w) => (w == null ? void 0 : w.value) ===
|
|
2396
|
-
onChange: (w) => gr(w,
|
|
2394
|
+
"model-value": v == null ? void 0 : v[C],
|
|
2395
|
+
"active-text": (S = (D = le.value) == null ? void 0 : D.find((w) => (w == null ? void 0 : w.value) === C)) == null ? void 0 : S.label,
|
|
2396
|
+
onChange: (w) => gr(w, C, v)
|
|
2397
2397
|
}, null, 8, ["model-value", "active-text", "onChange"])
|
|
2398
2398
|
]);
|
|
2399
2399
|
}), 128))
|
|
@@ -2419,7 +2419,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2419
2419
|
})
|
|
2420
2420
|
]),
|
|
2421
2421
|
content: re((v) => {
|
|
2422
|
-
var m,
|
|
2422
|
+
var m, C, D, S, w, _, x, k, f, g, i, h, $, A, X, I, Y, W;
|
|
2423
2423
|
return [
|
|
2424
2424
|
Gr(v) ? (ne(), $e(a, {
|
|
2425
2425
|
key: 0,
|
|
@@ -2430,7 +2430,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2430
2430
|
width: "auto"
|
|
2431
2431
|
}, {
|
|
2432
2432
|
reference: re(() => [
|
|
2433
|
-
ve("span", rs,
|
|
2433
|
+
ve("span", rs, Ce(De(v)), 1)
|
|
2434
2434
|
]),
|
|
2435
2435
|
default: re(() => {
|
|
2436
2436
|
var H;
|
|
@@ -2441,7 +2441,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2441
2441
|
class: "prop-url",
|
|
2442
2442
|
title: Hl(O),
|
|
2443
2443
|
onClick: (P) => vr(O)
|
|
2444
|
-
},
|
|
2444
|
+
}, Ce(Hl(O)), 9, us),
|
|
2445
2445
|
ve("div", {
|
|
2446
2446
|
class: "prop-download",
|
|
2447
2447
|
onClick: (P) => br(O)
|
|
@@ -2454,13 +2454,13 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2454
2454
|
}, 1024)) : (ne(), Te("div", {
|
|
2455
2455
|
key: 1,
|
|
2456
2456
|
style: kl({
|
|
2457
|
-
color: !Array.isArray(De(v)) && ((
|
|
2458
|
-
textDecoration: !Array.isArray(De(v)) && ((k = (x = De(v)) == null ? void 0 : x.toString()) != null && k.includes(".txt") || (g = (f = De(v)) == null ? void 0 : f.toString()) != null && g.includes(".cpt") || (
|
|
2457
|
+
color: !Array.isArray(De(v)) && ((C = (m = De(v)) == null ? void 0 : m.toString()) != null && C.includes(".txt") || (S = (D = De(v)) == null ? void 0 : D.toString()) != null && S.includes(".cpt") || (_ = (w = De(v)) == null ? void 0 : w.toString()) != null && _.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
2458
|
+
textDecoration: !Array.isArray(De(v)) && ((k = (x = De(v)) == null ? void 0 : x.toString()) != null && k.includes(".txt") || (g = (f = De(v)) == null ? void 0 : f.toString()) != null && g.includes(".cpt") || (h = (i = De(v)) == null ? void 0 : i.toString()) != null && h.includes(".cyd")) ? "underline" : "",
|
|
2459
2459
|
cursor: !Array.isArray(De(v)) && ((A = ($ = De(v)) == null ? void 0 : $.toString()) != null && A.includes(".txt") || (I = (X = De(v)) == null ? void 0 : X.toString()) != null && I.includes(".cpt") || (W = (Y = De(v)) == null ? void 0 : Y.toString()) != null && W.includes(".cyd")) ? "pointer" : "",
|
|
2460
2460
|
marginLeft: (v == null ? void 0 : v.colIndex) === 0 ? `${((v == null ? void 0 : v.level) ?? 0) * 20}px` : 0
|
|
2461
2461
|
}),
|
|
2462
2462
|
onClick: (H) => rr(De(v))
|
|
2463
|
-
},
|
|
2463
|
+
}, Ce(De(v) === 0 ? "0" : De(v)), 13, os))
|
|
2464
2464
|
];
|
|
2465
2465
|
}),
|
|
2466
2466
|
_: 2
|
|
@@ -2481,15 +2481,15 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2481
2481
|
]),
|
|
2482
2482
|
default: re(() => [
|
|
2483
2483
|
ve("div", Xn, [
|
|
2484
|
-
(ne(!0), Te(cl, null, dl(Sr(nl.value, v), (m,
|
|
2484
|
+
(ne(!0), Te(cl, null, dl(Sr(nl.value, v), (m, C) => (ne(), Te("div", {
|
|
2485
2485
|
class: "menu-config-item",
|
|
2486
|
-
key:
|
|
2486
|
+
key: C,
|
|
2487
2487
|
onClick: (D) => Xl(m == null ? void 0 : m.label, v, { extra: m })
|
|
2488
2488
|
}, [
|
|
2489
2489
|
ve("div", {
|
|
2490
2490
|
style: kl({ color: m == null ? void 0 : m.textColor }),
|
|
2491
2491
|
class: "extra-button-label"
|
|
2492
|
-
},
|
|
2492
|
+
}, Ce(m == null ? void 0 : m.label), 5)
|
|
2493
2493
|
], 8, Qn))), 128))
|
|
2494
2494
|
])
|
|
2495
2495
|
]),
|
|
@@ -2515,7 +2515,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2515
2515
|
title: We.value,
|
|
2516
2516
|
visible: Ze.value,
|
|
2517
2517
|
width: er.value,
|
|
2518
|
-
onBeforeDestroy:
|
|
2518
|
+
onBeforeDestroy: hr,
|
|
2519
2519
|
style: { height: "74%" }
|
|
2520
2520
|
}, {
|
|
2521
2521
|
default: re(() => [
|
|
@@ -2525,7 +2525,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2525
2525
|
isEnableWrap: !1,
|
|
2526
2526
|
showOperator: !1,
|
|
2527
2527
|
onChange: Mr,
|
|
2528
|
-
onClickTrigger:
|
|
2528
|
+
onClickTrigger: yr,
|
|
2529
2529
|
isEdit: ra.value,
|
|
2530
2530
|
onBlurChange: fr
|
|
2531
2531
|
}, null, 8, ["rowContents", "isEdit"])
|
|
@@ -2538,18 +2538,18 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2538
2538
|
id: "themeBorderButton"
|
|
2539
2539
|
}, {
|
|
2540
2540
|
default: re(() => l[13] || (l[13] = [
|
|
2541
|
-
el(
|
|
2541
|
+
el(Ce("取消"))
|
|
2542
2542
|
])),
|
|
2543
2543
|
_: 1,
|
|
2544
2544
|
__: [13]
|
|
2545
2545
|
}),
|
|
2546
2546
|
ie(o, {
|
|
2547
2547
|
class: "ok-button",
|
|
2548
|
-
onClick: l[7] || (l[7] = (v) =>
|
|
2548
|
+
onClick: l[7] || (l[7] = (v) => El(!0)),
|
|
2549
2549
|
id: "themeButton"
|
|
2550
2550
|
}, {
|
|
2551
2551
|
default: re(() => l[14] || (l[14] = [
|
|
2552
|
-
el(
|
|
2552
|
+
el(Ce("确认"))
|
|
2553
2553
|
])),
|
|
2554
2554
|
_: 1,
|
|
2555
2555
|
__: [14]
|
|
@@ -2575,7 +2575,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2575
2575
|
id: "themeBorderButton"
|
|
2576
2576
|
}, {
|
|
2577
2577
|
default: re(() => l[15] || (l[15] = [
|
|
2578
|
-
el(
|
|
2578
|
+
el(Ce("取消"))
|
|
2579
2579
|
])),
|
|
2580
2580
|
_: 1,
|
|
2581
2581
|
__: [15]
|
|
@@ -2586,7 +2586,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2586
2586
|
id: "themeButton"
|
|
2587
2587
|
}, {
|
|
2588
2588
|
default: re(() => l[16] || (l[16] = [
|
|
2589
|
-
el(
|
|
2589
|
+
el(Ce("确认"))
|
|
2590
2590
|
])),
|
|
2591
2591
|
_: 1,
|
|
2592
2592
|
__: [16]
|
|
@@ -2597,7 +2597,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2597
2597
|
}, 8, ["title", "visible", "width"]),
|
|
2598
2598
|
Je.value ? (ne(), $e(un, {
|
|
2599
2599
|
key: 1,
|
|
2600
|
-
fileDataList:
|
|
2600
|
+
fileDataList: z.value,
|
|
2601
2601
|
onDestroy: Ar
|
|
2602
2602
|
}, null, 8, ["fileDataList"])) : Le("", !0),
|
|
2603
2603
|
me.value ? (ne(), $e(Vl, {
|
|
@@ -2632,7 +2632,7 @@ const Wa = (K) => K.match(/\((.*)\)/)[1], Tn = {
|
|
|
2632
2632
|
]);
|
|
2633
2633
|
};
|
|
2634
2634
|
}
|
|
2635
|
-
}, Os = /* @__PURE__ */ aa(ps, [["__scopeId", "data-v-
|
|
2635
|
+
}, Os = /* @__PURE__ */ aa(ps, [["__scopeId", "data-v-99dfe18e"]]);
|
|
2636
2636
|
export {
|
|
2637
2637
|
qn as a,
|
|
2638
2638
|
$n as b,
|