ss-component-new 1.2.294 → 1.2.296
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/{OBJLoader-CB9WJT82.cjs → OBJLoader-8gDmNV2i.cjs} +1 -1
- package/dist/{OBJLoader-BNv6XCtP.js → OBJLoader-Ck9W3Ir7.js} +1 -1
- package/dist/{OrbitControls-Csw6mD-P.js → OrbitControls-BIGKrhyi.js} +1 -1
- package/dist/{OrbitControls-R243A2UI.cjs → OrbitControls-BWF5w18E.cjs} +1 -1
- package/dist/{PCDLoader-cSzkUgjw.js → PCDLoader-CkJ5aJWh.js} +1 -1
- package/dist/{PCDLoader-BsFAYeJ2.cjs → PCDLoader-D-K96lwY.cjs} +1 -1
- package/dist/{animationData-BNWYvI2q.js → animationData-BlzkiZT-.js} +1 -1
- package/dist/{animationData-j8m9iee2.cjs → animationData-Dzb7SwCQ.cjs} +1 -1
- package/dist/{iconfont-CGucCJqY.js → iconfont-B8t8JT6z.js} +2 -2
- package/dist/{iconfont-BELvOiht.cjs → iconfont-Btynh8XG.cjs} +1 -1
- package/dist/{index-CHxAiQtk.js → index-0uGvrFMJ.js} +3 -3
- package/dist/{index-SnOaE90Y.js → index-8iIO_ocM.js} +3 -3
- package/dist/{index-Cvo0V0hW.cjs → index-B-SQuycq.cjs} +1 -1
- package/dist/{index-DBYidyLi.js → index-B-qFtrGT.js} +1 -1
- package/dist/{index-gW_IQxDq.cjs → index-B2nCv699.cjs} +1 -1
- package/dist/{index-w2CRXMRQ.js → index-B7DZXq3g.js} +6 -6
- package/dist/{index-79I_iorC.js → index-B8yivODj.js} +1 -1
- package/dist/{index-CZm0g4PU.js → index-BVXIOYWQ.js} +9 -7
- package/dist/{index-DQqCL4ju.cjs → index-B_qXEQkF.cjs} +1 -1
- package/dist/{index-Cuz9ELzW.js → index-Bgw0FBZB.js} +1 -1
- package/dist/{index-C0igWyW4.js → index-BsQ-qwMF.js} +13 -13
- package/dist/{index-71M6SFRc.js → index-BtwkxysC.js} +1 -1
- package/dist/{index-CmRzCos6.js → index-Bu1pHSKB.js} +843 -823
- package/dist/index-BwavyD4W.cjs +1 -0
- package/dist/{index-DKofIQfe.js → index-CIZi1SsV.js} +1 -1
- package/dist/{index-B0OE5_Ny.js → index-CJ-zljKi.js} +1 -1
- package/dist/{index-BkSFOSV8.cjs → index-CQn_Bk7v.cjs} +1 -1
- package/dist/{index-_yqtp0Dh.cjs → index-CSrPyW_f.cjs} +1 -1
- package/dist/{index-CZSaHDnf.js → index-CYPJ4mm3.js} +1 -1
- package/dist/{index-ByJJvmV6.js → index-CtbAPra-.js} +3 -3
- package/dist/{index-IClu4Xf8.cjs → index-D0jGNd-H.cjs} +1 -1
- package/dist/{index-9Nz7Dg2Z.js → index-D6bXtF73.js} +1 -1
- package/dist/{index-BC4uFre2.cjs → index-D9i7wZaC.cjs} +1 -1
- package/dist/{index-gHB9TMLI.cjs → index-DGVafVuW.cjs} +1 -1
- package/dist/{index-C5SNPyky.cjs → index-DKCWuetb.cjs} +1 -1
- package/dist/{index-LT5l3lP1.cjs → index-DO9bzS7t.cjs} +1 -1
- package/dist/{index-DU8A2Rcx.js → index-DOsxjhUA.js} +2 -2
- package/dist/{index-CkSlNi8L.js → index-DQTWAF7D.js} +2 -2
- package/dist/{index-BD9p0Xlt.js → index-DT0pnWzT.js} +2 -2
- package/dist/{index-D12kMfBu.cjs → index-DTjWhnIF.cjs} +1 -1
- package/dist/{index-C98tDP8u.cjs → index-DjaN4VhG.cjs} +1 -1
- package/dist/index-DvfqgYXo.cjs +1 -0
- package/dist/{index-DL8dLTof.cjs → index-DyDrPMvD.cjs} +1 -1
- package/dist/{index-_2EYJgni.cjs → index-K4Aol2cP.cjs} +1 -1
- package/dist/{index-CmcomRyN.js → index-_kvrccCu.js} +1 -1
- package/dist/{index-CvykFWHw.cjs → index-_wyT2-AA.cjs} +1 -1
- package/dist/{index-Dq3HNSET.js → index-dTA9hAgr.js} +3261 -3248
- package/dist/{index-CGoPD35H.cjs → index-hBEZJTBK.cjs} +1 -1
- package/dist/{index-DsOj_EOL.cjs → index-hKbFMqEu.cjs} +12 -12
- package/dist/{index-C4efuh6q.cjs → index-hORaVIHc.cjs} +1 -1
- package/dist/{index-D5O3A6Fx.js → index-jfKxOdn1.js} +1 -1
- package/dist/{index-xpsuJRYD.cjs → index-l7UB2yUy.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BqQN_vwd.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BNPzwHXs.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B_3YixjC.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CNiwHtU5.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BAniHexV.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bgts3--T.cjs} +59 -59
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B8FQIQZU.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-h7N9rXk9.js} +1643 -1648
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DRUxrXlC.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-BOzovrSr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dg0WsT5i.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BuwJQ9eE.js} +19 -19
- package/dist/{index.vue_vue_type_style_index_1_lang-C-HS1nJI.cjs → index.vue_vue_type_style_index_1_lang-CDoOP6Aw.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang--VeL916J.js → index.vue_vue_type_style_index_1_lang-ZmTqB1dO.js} +4 -4
- package/dist/{main-Dx_m6QdJ.cjs → main-CBor783N.cjs} +1 -1
- package/dist/{main-BKAAdzBm.js → main-Yx9pP1an.js} +2 -2
- package/dist/{pointTrack-05CcPzgf.cjs → pointTrack-BkpbGc8n.cjs} +1 -1
- package/dist/{pointTrack-BRZj2fRP.js → pointTrack-CMyadDzE.js} +2 -2
- package/dist/{robotUtil-DGZFmHa1.js → robotUtil-BAK-GNOJ.js} +1 -1
- package/dist/{robotUtil-_esgRFP3.cjs → robotUtil-BtBh1-GY.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +31 -31
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-euHdSZWK.cjs → threeModel-C0vGemcj.cjs} +1 -1
- package/dist/{threeModel-WVUvmnEU.js → threeModel-C44vcdqj.js} +5 -5
- package/dist/{threePreview-BvzwkKZR.js → threePreview-CKjG0F-q.js} +4 -4
- package/dist/{threePreview-B3amehMf.cjs → threePreview-PffN5Aiq.cjs} +1 -1
- package/dist/{threeSceneView-BV580zYO.js → threeSceneView-4FffGfEx.js} +7 -7
- package/dist/{threeSceneView-BYYPjbrf.cjs → threeSceneView-BI__dTV5.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BcL1uoBQ.js → threeSceneViewForCPMPIP-Bo1U2avY.js} +9 -9
- package/dist/{threeSceneViewForCPMPIP-CSKEFRk_.cjs → threeSceneViewForCPMPIP-DZddF3u8.cjs} +1 -1
- package/dist/{threeTrackPathView-BpunMIGZ.js → threeTrackPathView-DzU4AIwq.js} +5 -5
- package/dist/{threeTrackPathView-CGEH2zTP.cjs → threeTrackPathView-oMFtTDLX.cjs} +1 -1
- package/dist/{threeViewerHost-BPu_LZha.cjs → threeViewerHost-BcIsHd7R.cjs} +2 -2
- package/dist/{threeViewerHost-CiYZBM4H.js → threeViewerHost-DUzh9-TD.js} +2 -2
- package/dist/{urdfTree-CoHIn4kK.js → urdfTree-BVGBRI7Z.js} +1 -1
- package/dist/{urdfTree-BjckM2-i.cjs → urdfTree-C_RPoplj.cjs} +1 -1
- package/dist/{workpieceTreePanel-CbsK-tey.cjs → workpieceTreePanel-B1eC1Q8u.cjs} +1 -1
- package/dist/{workpieceTreePanel-CtLKTnWz.js → workpieceTreePanel-_Vo2EKuP.js} +6 -6
- package/package.json +1 -1
- package/dist/index-CslSvatz.cjs +0 -1
- package/dist/index-IvJ1OjwT.cjs +0 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as R, watch as Ne, nextTick as oa, resolveComponent as Fe, createBlock as De, openBlock as
|
|
2
|
-
import { bh as Qa, as as Ha, c as J, E as
|
|
3
|
-
import { k as Xa, aK as
|
|
4
|
-
import { c as xl, _ as Ya, h as
|
|
5
|
-
import { f as
|
|
6
|
-
import { aJ as ia, aC as
|
|
7
|
-
import "./index.vue_vue_type_style_index_1_lang
|
|
1
|
+
import { ref as R, watch as Ne, nextTick as oa, resolveComponent as Fe, createBlock as De, openBlock as H, withCtx as q, createElementVNode as fe, renderSlot as Wa, onMounted as Aa, createElementBlock as ke, normalizeStyle as dl, normalizeClass as sr, toDisplayString as Ee, createCommentVNode as _e, createVNode as se, unref as Qe, Fragment as tl, renderList as cl, createTextVNode as ze, defineComponent as ur, reactive as Jl, inject as gn, provide as yn, onBeforeUnmount as hn, computed as Sa, onUnmounted as vn, createSlots as bn, withDirectives as Ga, vShow as qa } from "vue";
|
|
2
|
+
import { bh as Qa, as as Ha, c as J, E as we, c0 as Ua, p as vl, s as Al, u as Sn, bt as sa, d as ka, b as Ul, g as Rl, bv as kn, f as mn, c3 as Tn } from "./index-CA0SFykF.js";
|
|
3
|
+
import { k as Xa, aK as An } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-h7N9rXk9.js";
|
|
4
|
+
import { c as xl, _ as Ya, t as Un, h as xn, e as _n, E as Cn, j as En } from "./index-BVXIOYWQ.js";
|
|
5
|
+
import { f as On, g as Gl, a as Dn, T as Ln, d as ma, w as jn } from "./threeViewerHost-DUzh9-TD.js";
|
|
6
|
+
import { aJ as ia, aC as $n, k as Pn, i as wn, u as Kn, aI as Bn, a as Mn, j as qe, aY as Za, aZ as Va, a_ as Nn, a$ as Fn, l as ua, E as Ia, aE as er, aQ as zn, b0 as Jn } from "./index.vue_vue_type_style_index_1_lang-BKgS2iFu.js";
|
|
7
|
+
import "./index.vue_vue_type_style_index_1_lang-ZmTqB1dO.js";
|
|
8
8
|
import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { s as
|
|
9
|
+
import { s as Wl } from "./index-CM4PTcFN.js";
|
|
10
10
|
import "./index-CTZaaoq9.js";
|
|
11
11
|
import { i as lr } from "./isString-C_qk7R_g.js";
|
|
12
|
-
const ar = (
|
|
12
|
+
const ar = (D) => D.match(/\((.*)\)/)[1], rr = {
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: {
|
|
15
15
|
isVisible: {
|
|
@@ -29,8 +29,8 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
29
29
|
default: 200
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const ee =
|
|
32
|
+
setup(D) {
|
|
33
|
+
const ee = D, Z = R(null), K = R(!1), L = R(null);
|
|
34
34
|
return Ne(
|
|
35
35
|
() => ee == null ? void 0 : ee.isVisible,
|
|
36
36
|
() => {
|
|
@@ -38,7 +38,7 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
38
38
|
},
|
|
39
39
|
{ deep: !0, immediate: !0 }
|
|
40
40
|
), Ne(
|
|
41
|
-
() =>
|
|
41
|
+
() => L.value,
|
|
42
42
|
() => {
|
|
43
43
|
oa(() => {
|
|
44
44
|
var u, ae;
|
|
@@ -47,8 +47,8 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
47
47
|
},
|
|
48
48
|
{ deep: !0, immediate: !0 }
|
|
49
49
|
), (u, ae) => {
|
|
50
|
-
const
|
|
51
|
-
return
|
|
50
|
+
const be = Fe("el-popover");
|
|
51
|
+
return H(), De(be, {
|
|
52
52
|
visible: K.value,
|
|
53
53
|
title: ee == null ? void 0 : ee.title,
|
|
54
54
|
placement: ee == null ? void 0 : ee.placement,
|
|
@@ -57,41 +57,41 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
57
57
|
ref: Z
|
|
58
58
|
}, {
|
|
59
59
|
reference: q(() => [
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
fe("div", null, [
|
|
61
|
+
Wa(u.$slots, "reference", {
|
|
62
62
|
ref_key: "referenceRef",
|
|
63
|
-
ref:
|
|
63
|
+
ref: L
|
|
64
64
|
})
|
|
65
65
|
])
|
|
66
66
|
]),
|
|
67
67
|
default: q(() => [
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
fe("div", null, [
|
|
69
|
+
Wa(u.$slots, "content")
|
|
70
70
|
])
|
|
71
71
|
]),
|
|
72
72
|
_: 3
|
|
73
73
|
}, 8, ["visible", "title", "placement", "width"]);
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, Rn = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "extra-button-content"
|
|
79
|
-
},
|
|
79
|
+
}, Wn = { class: "table-operator-wrap" }, Gn = { class: "extra-button-filter" }, qn = { class: "form-content-value" }, Qn = {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "extra-header"
|
|
82
|
-
},
|
|
82
|
+
}, Hn = {
|
|
83
83
|
class: "drop-menu",
|
|
84
84
|
style: { width: "120px" }
|
|
85
|
-
},
|
|
85
|
+
}, Xn = { key: 0 }, Yn = { key: 1 }, Zn = {
|
|
86
86
|
key: 1,
|
|
87
87
|
class: "extra-button-content tabs-button-wrapper"
|
|
88
|
-
},
|
|
88
|
+
}, Vn = { class: "table-operator-wrap" }, In = { class: "extra-button-filter" }, es = { class: "form-content-value" }, ls = {
|
|
89
89
|
key: 0,
|
|
90
90
|
class: "extra-header"
|
|
91
|
-
},
|
|
91
|
+
}, as = {
|
|
92
92
|
class: "drop-menu",
|
|
93
93
|
style: { width: "120px" }
|
|
94
|
-
},
|
|
94
|
+
}, rs = { key: 0 }, ns = { key: 1 }, ss = {
|
|
95
95
|
__name: "header",
|
|
96
96
|
props: {
|
|
97
97
|
pageLayout: {
|
|
@@ -122,8 +122,8 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
emits: ["buttonClick", "filter", "getImportData"],
|
|
125
|
-
setup(
|
|
126
|
-
const Z = ee, K =
|
|
125
|
+
setup(D, { emit: ee }) {
|
|
126
|
+
const Z = ee, K = D, L = R(""), u = R(!1), ae = R([]), be = R([{ label: "取消", background: "#999999" }, {
|
|
127
127
|
label: "清空",
|
|
128
128
|
background: "#999999"
|
|
129
129
|
}, { label: "确认" }]), Ae = [
|
|
@@ -139,74 +139,74 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
139
139
|
label: "导出",
|
|
140
140
|
icon: "export"
|
|
141
141
|
}
|
|
142
|
-
],
|
|
142
|
+
], Se = (ie) => {
|
|
143
143
|
const ue = ie.raw;
|
|
144
144
|
if (!ue) return;
|
|
145
145
|
const te = new FileReader();
|
|
146
|
-
te.onload = (
|
|
146
|
+
te.onload = ($) => {
|
|
147
147
|
try {
|
|
148
|
-
const Le = new Uint8Array(
|
|
148
|
+
const Le = new Uint8Array($.target.result), $e = On(Le, { type: "array" }), ll = $e.SheetNames[0], We = $e.Sheets[ll], al = Gl.decode_range(We["!ref"]).e.c + 1, Me = new Array(al).fill(""), k = [];
|
|
149
149
|
for (const G in We) {
|
|
150
150
|
if (G[0] === "!") continue;
|
|
151
|
-
const { r: Q, c: Ue } =
|
|
152
|
-
let
|
|
153
|
-
if (We[G].t === "n" &&
|
|
154
|
-
Me[Ue] =
|
|
151
|
+
const { r: Q, c: Ue } = Gl.decode_cell(G);
|
|
152
|
+
let Pe = We[G].v;
|
|
153
|
+
if (We[G].t === "n" && Pe > 0 && Pe < 1e6 && (Pe = new Date((Pe - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (Pe == null || Pe === "") && (Pe = ""), Q === 0)
|
|
154
|
+
Me[Ue] = Pe;
|
|
155
155
|
else {
|
|
156
156
|
if (!k[Q - 1]) {
|
|
157
157
|
k[Q - 1] = {};
|
|
158
158
|
for (let rl = 0; rl < al; rl++)
|
|
159
159
|
k[Q - 1][`col_${rl}`] = "";
|
|
160
160
|
}
|
|
161
|
-
k[Q - 1][`col_${Ue}`] =
|
|
161
|
+
k[Q - 1][`col_${Ue}`] = Pe;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
for (let G = 0; G < al; G++)
|
|
165
165
|
Me[G] === void 0 && (Me[G] = "");
|
|
166
|
-
const
|
|
167
|
-
if (!(
|
|
166
|
+
const he = k == null ? void 0 : k[0];
|
|
167
|
+
if (!(he != null && he.hasOwnProperty("col_0"))) return we.error("导入的数据列不匹配,请检查是否错位");
|
|
168
168
|
Z("getImportData", Me, k);
|
|
169
169
|
} catch (Le) {
|
|
170
|
-
throw
|
|
170
|
+
throw we.error(Le.message), new Error(Le.message);
|
|
171
171
|
}
|
|
172
172
|
}, te.readAsArrayBuffer(ue);
|
|
173
173
|
}, He = (ie) => {
|
|
174
174
|
var te;
|
|
175
|
-
const ue = (te = ae.value) == null ? void 0 : te.reduce((
|
|
175
|
+
const ue = (te = ae.value) == null ? void 0 : te.reduce(($, Le, $e) => ($e === 0 ? $[Le.label] = ie : $[Le.label] = Le == null ? void 0 : Le.value, $), {});
|
|
176
176
|
Z("filter", ue, ie, !0);
|
|
177
177
|
}, sl = (ie) => {
|
|
178
178
|
Z("buttonClick", ie);
|
|
179
179
|
}, re = (ie) => {
|
|
180
180
|
var ue, te;
|
|
181
|
-
ae.value = (te = (ue = ia(J(ie))) == null ? void 0 : ue.filter((
|
|
182
|
-
label: (
|
|
181
|
+
ae.value = (te = (ue = ia(J(ie))) == null ? void 0 : ue.filter(($) => ($ == null ? void 0 : $.label) !== "" && ($ == null ? void 0 : $.label) !== "操作")) == null ? void 0 : te.map(($) => ({
|
|
182
|
+
label: ($ == null ? void 0 : $.label) ?? "",
|
|
183
183
|
value: "",
|
|
184
|
-
name: (
|
|
185
|
-
isFormColHidden:
|
|
184
|
+
name: ($ == null ? void 0 : $.label) ?? "",
|
|
185
|
+
isFormColHidden: $ == null ? void 0 : $.isTableColHidden,
|
|
186
186
|
width: 2
|
|
187
187
|
}));
|
|
188
188
|
}, Je = R(!1), Re = (ie) => {
|
|
189
189
|
var ue;
|
|
190
190
|
if ((ie == null ? void 0 : ie.buttonName) === "确认" && (Z("filter", ie == null ? void 0 : ie.content), Je.value = (ie == null ? void 0 : ie.content) && Object.values(ie == null ? void 0 : ie.content).length > 0), (ie == null ? void 0 : ie.buttonName) === "清空") {
|
|
191
191
|
const te = J(ie == null ? void 0 : ie.content);
|
|
192
|
-
for (const
|
|
193
|
-
te[
|
|
194
|
-
ae.value = (ue = ae.value) == null ? void 0 : ue.map((
|
|
195
|
-
|
|
192
|
+
for (const $ in te)
|
|
193
|
+
te[$] = "";
|
|
194
|
+
ae.value = (ue = ae.value) == null ? void 0 : ue.map(($) => ({
|
|
195
|
+
...$,
|
|
196
196
|
value: ""
|
|
197
197
|
})), Z("filter", te), Je.value = !1;
|
|
198
198
|
}
|
|
199
199
|
u.value = !1;
|
|
200
|
-
},
|
|
200
|
+
}, ye = () => {
|
|
201
201
|
var ue, te;
|
|
202
|
-
ae.value = (ue = ae.value) == null ? void 0 : ue.map((
|
|
203
|
-
|
|
202
|
+
ae.value = (ue = ae.value) == null ? void 0 : ue.map(($) => ({
|
|
203
|
+
...$,
|
|
204
204
|
value: ""
|
|
205
205
|
}));
|
|
206
|
-
const ie = (te = ae.value) == null ? void 0 : te.reduce((
|
|
206
|
+
const ie = (te = ae.value) == null ? void 0 : te.reduce(($, Le) => ($[Le.label] = Le.value, $), {});
|
|
207
207
|
Z("filter", ie);
|
|
208
208
|
};
|
|
209
|
-
return
|
|
209
|
+
return Aa(() => {
|
|
210
210
|
re(K.columns);
|
|
211
211
|
}), Ne(
|
|
212
212
|
() => K.columns,
|
|
@@ -216,19 +216,19 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
216
216
|
{ deep: !0, immediate: !0 }
|
|
217
217
|
), (ie, ue) => {
|
|
218
218
|
var We, bl, al, Me;
|
|
219
|
-
const te = Fe("el-icon"),
|
|
220
|
-
return
|
|
221
|
-
|
|
222
|
-
class: sr(
|
|
223
|
-
style:
|
|
219
|
+
const te = Fe("el-icon"), $ = Fe("svg-icon"), Le = Fe("el-input"), $e = Fe("el-button"), ll = Fe("el-upload");
|
|
220
|
+
return D.pageLayout === "vertical" ? (H(), ke("div", Rn, [
|
|
221
|
+
fe("div", {
|
|
222
|
+
class: sr(D.compName ? "table-name-wrap" : ""),
|
|
223
|
+
style: dl({
|
|
224
224
|
background: (K == null ? void 0 : K.level) > 1 ? "transparent" : "var(--ssgroup-background)",
|
|
225
225
|
paddingLeft: (K == null ? void 0 : K.level) > 1 ? "0px" : "8px",
|
|
226
226
|
fontWeight: 600 - ((K == null ? void 0 : K.level) - 1) * 100 >= 400 ? 600 - ((K == null ? void 0 : K.level) - 1) * 100 : 400,
|
|
227
227
|
fontSize: 15 - (K == null ? void 0 : K.level) >= 12 ? 15 - (K == null ? void 0 : K.level) + "px" : "14px"
|
|
228
228
|
})
|
|
229
|
-
}, Ee(
|
|
230
|
-
|
|
231
|
-
|
|
229
|
+
}, Ee(D.compName), 7),
|
|
230
|
+
fe("div", Wn, [
|
|
231
|
+
fe("div", Gn, [
|
|
232
232
|
se(rr, {
|
|
233
233
|
title: "",
|
|
234
234
|
width: 800,
|
|
@@ -236,39 +236,39 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
236
236
|
isVisible: u.value
|
|
237
237
|
}, {
|
|
238
238
|
reference: q(() => {
|
|
239
|
-
var k,
|
|
239
|
+
var k, he, G, Q;
|
|
240
240
|
return [
|
|
241
241
|
se(Le, {
|
|
242
|
-
modelValue:
|
|
243
|
-
"onUpdate:modelValue": ue[1] || (ue[1] = (Ue) =>
|
|
242
|
+
modelValue: L.value,
|
|
243
|
+
"onUpdate:modelValue": ue[1] || (ue[1] = (Ue) => L.value = Ue),
|
|
244
244
|
style: { "min-width": "80px" },
|
|
245
|
-
placeholder: Je.value ? (G = (
|
|
245
|
+
placeholder: Je.value ? (G = (he = (k = D.filterValues) == null ? void 0 : k.filter((Ue) => Ue)) == null ? void 0 : he.slice(0, 3)) == null ? void 0 : G.join("/") : "搜索",
|
|
246
246
|
"prefix-icon": Qe(Qa),
|
|
247
247
|
clearable: "",
|
|
248
248
|
onInput: He,
|
|
249
249
|
disabled: ((Q = ae.value) == null ? void 0 : Q.length) === 0
|
|
250
250
|
}, {
|
|
251
251
|
suffix: q(() => {
|
|
252
|
-
var Ue,
|
|
252
|
+
var Ue, Pe;
|
|
253
253
|
return [
|
|
254
|
-
!
|
|
254
|
+
!L.value && ((Pe = (Ue = D.filterValues) == null ? void 0 : Ue.filter((rl) => rl)) != null && Pe.join("/")) ? (H(), De(te, {
|
|
255
255
|
key: 0,
|
|
256
256
|
style: { cursor: "pointer" },
|
|
257
|
-
onClick:
|
|
257
|
+
onClick: ye
|
|
258
258
|
}, {
|
|
259
259
|
default: q(() => [
|
|
260
260
|
se(Qe(Ha))
|
|
261
261
|
]),
|
|
262
262
|
_: 1
|
|
263
|
-
})) :
|
|
263
|
+
})) : _e("", !0)
|
|
264
264
|
];
|
|
265
265
|
}),
|
|
266
266
|
append: q(() => [
|
|
267
|
-
|
|
267
|
+
fe("span", {
|
|
268
268
|
title: "条件查询",
|
|
269
269
|
onClick: ue[0] || (ue[0] = (Ue) => u.value = !u.value)
|
|
270
270
|
}, [
|
|
271
|
-
se(
|
|
271
|
+
se($, {
|
|
272
272
|
name: "query",
|
|
273
273
|
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
274
274
|
})
|
|
@@ -279,14 +279,14 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
279
279
|
];
|
|
280
280
|
}),
|
|
281
281
|
content: q(() => [
|
|
282
|
-
|
|
283
|
-
(
|
|
282
|
+
fe("div", qn, [
|
|
283
|
+
(H(), De(xl, {
|
|
284
284
|
rowContents: ae.value,
|
|
285
|
-
buttonValue:
|
|
285
|
+
buttonValue: be.value,
|
|
286
286
|
isRowFlex: !0,
|
|
287
287
|
isEnableWrap: !1,
|
|
288
288
|
isButtonRow: !1,
|
|
289
|
-
key:
|
|
289
|
+
key: be.value,
|
|
290
290
|
isStartJustify: !1,
|
|
291
291
|
onOnButtonClick: Re
|
|
292
292
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
@@ -295,25 +295,25 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
295
295
|
_: 1
|
|
296
296
|
}, 8, ["isVisible"])
|
|
297
297
|
]),
|
|
298
|
-
|
|
299
|
-
(
|
|
298
|
+
D.buttons && ((We = D.buttons) == null ? void 0 : We.length) > 0 ? (H(), ke("div", Qn, [
|
|
299
|
+
(H(!0), ke(tl, null, cl((bl = D.buttons) == null ? void 0 : bl.filter((k) => D.isDevMode || (k == null ? void 0 : k.label) !== "修改模板"), (k, he) => (H(), ke("div", {
|
|
300
300
|
class: "extra-contents",
|
|
301
|
-
key:
|
|
301
|
+
key: he
|
|
302
302
|
}, [
|
|
303
|
-
(k == null ? void 0 : k.type) === "upload" ? (
|
|
303
|
+
(k == null ? void 0 : k.type) === "upload" ? (H(), De(ll, {
|
|
304
304
|
key: 0,
|
|
305
305
|
class: "upload-button-wrap",
|
|
306
|
-
"on-change":
|
|
306
|
+
"on-change": Se,
|
|
307
307
|
accept: ".xlsx,.xls",
|
|
308
308
|
"auto-upload": !1,
|
|
309
309
|
action: "#",
|
|
310
310
|
"show-file-list": !1,
|
|
311
|
-
disabled: !!
|
|
311
|
+
disabled: !!D.lockingPage
|
|
312
312
|
}, {
|
|
313
313
|
default: q(() => [
|
|
314
|
-
se(
|
|
315
|
-
disabled: !!
|
|
316
|
-
style:
|
|
314
|
+
se($e, {
|
|
315
|
+
disabled: !!D.lockingPage,
|
|
316
|
+
style: dl({ background: (k == null ? void 0 : k.background) ?? "var(--ssbutton-theme-bg)", color: (k == null ? void 0 : k.color) ?? "var(--ssbutton-theme-color)" })
|
|
317
317
|
}, {
|
|
318
318
|
default: q(() => [
|
|
319
319
|
ze(Ee(k == null ? void 0 : k.label), 1)
|
|
@@ -322,25 +322,25 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
322
322
|
}, 1032, ["disabled", "style"])
|
|
323
323
|
]),
|
|
324
324
|
_: 2
|
|
325
|
-
}, 1032, ["disabled"])) :
|
|
326
|
-
(k == null ? void 0 : k.type) === "popover" ? (
|
|
325
|
+
}, 1032, ["disabled"])) : _e("", !0),
|
|
326
|
+
(k == null ? void 0 : k.type) === "popover" ? (H(), De(Ya, { key: 1 }, {
|
|
327
327
|
dropTitle: q(() => [
|
|
328
|
-
(k == null ? void 0 : k.type) === "popover" ? (
|
|
328
|
+
(k == null ? void 0 : k.type) === "popover" ? (H(), De($e, {
|
|
329
329
|
key: 0,
|
|
330
|
-
disabled: !!
|
|
331
|
-
style:
|
|
330
|
+
disabled: !!D.lockingPage,
|
|
331
|
+
style: dl({ background: (k == null ? void 0 : k.background) ?? "var(--ssbutton-theme-bg)", color: (k == null ? void 0 : k.color) ?? "var(--ssbutton-theme-color)" })
|
|
332
332
|
}, {
|
|
333
333
|
default: q(() => [
|
|
334
334
|
ze(Ee(k == null ? void 0 : k.label), 1)
|
|
335
335
|
]),
|
|
336
336
|
_: 2
|
|
337
|
-
}, 1032, ["disabled", "style"])) :
|
|
337
|
+
}, 1032, ["disabled", "style"])) : _e("", !0)
|
|
338
338
|
]),
|
|
339
339
|
dropMenu: q(() => [
|
|
340
|
-
|
|
341
|
-
(
|
|
340
|
+
fe("div", Hn, [
|
|
341
|
+
(H(!0), ke(tl, null, cl(k == null ? void 0 : k.contents, (G) => (H(), De($e, {
|
|
342
342
|
key: G == null ? void 0 : G.label,
|
|
343
|
-
disabled: !!
|
|
343
|
+
disabled: !!D.lockingPage,
|
|
344
344
|
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
345
345
|
onClick: (Q) => sl(G == null ? void 0 : G.label)
|
|
346
346
|
}, {
|
|
@@ -348,8 +348,8 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
348
348
|
var Q, Ue;
|
|
349
349
|
return [
|
|
350
350
|
ze(Ee(G == null ? void 0 : G.label), 1),
|
|
351
|
-
(Q = G == null ? void 0 : G.label) != null && Q.includes("选中") ? (
|
|
352
|
-
(Ue = G == null ? void 0 : G.label) != null && Ue.includes("全部") ? (
|
|
351
|
+
(Q = G == null ? void 0 : G.label) != null && Q.includes("选中") ? (H(), ke("span", Xn, "(" + Ee(D.selectNums) + ")", 1)) : _e("", !0),
|
|
352
|
+
(Ue = G == null ? void 0 : G.label) != null && Ue.includes("全部") ? (H(), ke("span", Yn, "(" + Ee(D.dataNums) + ")", 1)) : _e("", !0)
|
|
353
353
|
];
|
|
354
354
|
}),
|
|
355
355
|
_: 2
|
|
@@ -357,12 +357,12 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
357
357
|
])
|
|
358
358
|
]),
|
|
359
359
|
_: 2
|
|
360
|
-
}, 1024)) :
|
|
361
|
-
k != null && k.type ?
|
|
360
|
+
}, 1024)) : _e("", !0),
|
|
361
|
+
k != null && k.type ? _e("", !0) : (H(), De($e, {
|
|
362
362
|
key: 2,
|
|
363
363
|
id: "themeButton",
|
|
364
|
-
disabled: !!
|
|
365
|
-
style:
|
|
364
|
+
disabled: !!D.lockingPage,
|
|
365
|
+
style: dl({ background: (k == null ? void 0 : k.background) ?? "var(--ssbutton-theme-bg)", color: (k == null ? void 0 : k.color) ?? "var(--ssbutton-theme-color)" }),
|
|
366
366
|
onClick: (G) => sl(k == null ? void 0 : k.label)
|
|
367
367
|
}, {
|
|
368
368
|
default: q(() => [
|
|
@@ -371,11 +371,11 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
371
371
|
_: 2
|
|
372
372
|
}, 1032, ["disabled", "style", "onClick"]))
|
|
373
373
|
]))), 128))
|
|
374
|
-
])) :
|
|
374
|
+
])) : _e("", !0)
|
|
375
375
|
])
|
|
376
|
-
])) : (
|
|
377
|
-
|
|
378
|
-
|
|
376
|
+
])) : (H(), ke("div", Zn, [
|
|
377
|
+
fe("div", Vn, [
|
|
378
|
+
fe("div", In, [
|
|
379
379
|
se(rr, {
|
|
380
380
|
title: "",
|
|
381
381
|
width: 800,
|
|
@@ -383,39 +383,39 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
383
383
|
isVisible: u.value
|
|
384
384
|
}, {
|
|
385
385
|
reference: q(() => {
|
|
386
|
-
var k,
|
|
386
|
+
var k, he, G, Q;
|
|
387
387
|
return [
|
|
388
388
|
se(Le, {
|
|
389
|
-
modelValue:
|
|
390
|
-
"onUpdate:modelValue": ue[3] || (ue[3] = (Ue) =>
|
|
389
|
+
modelValue: L.value,
|
|
390
|
+
"onUpdate:modelValue": ue[3] || (ue[3] = (Ue) => L.value = Ue),
|
|
391
391
|
style: { "min-width": "80px" },
|
|
392
|
-
placeholder: Je.value ? (G = (
|
|
392
|
+
placeholder: Je.value ? (G = (he = (k = D.filterValues) == null ? void 0 : k.filter((Ue) => Ue)) == null ? void 0 : he.slice(0, 3)) == null ? void 0 : G.join("/") : "搜索",
|
|
393
393
|
"prefix-icon": Qe(Qa),
|
|
394
394
|
clearable: "",
|
|
395
395
|
onInput: He,
|
|
396
396
|
disabled: ((Q = ae.value) == null ? void 0 : Q.length) === 0
|
|
397
397
|
}, {
|
|
398
398
|
suffix: q(() => {
|
|
399
|
-
var Ue,
|
|
399
|
+
var Ue, Pe;
|
|
400
400
|
return [
|
|
401
|
-
!
|
|
401
|
+
!L.value && ((Pe = (Ue = D.filterValues) == null ? void 0 : Ue.filter((rl) => rl)) != null && Pe.join("/")) ? (H(), De(te, {
|
|
402
402
|
key: 0,
|
|
403
403
|
style: { cursor: "pointer" },
|
|
404
|
-
onClick:
|
|
404
|
+
onClick: ye
|
|
405
405
|
}, {
|
|
406
406
|
default: q(() => [
|
|
407
407
|
se(Qe(Ha))
|
|
408
408
|
]),
|
|
409
409
|
_: 1
|
|
410
|
-
})) :
|
|
410
|
+
})) : _e("", !0)
|
|
411
411
|
];
|
|
412
412
|
}),
|
|
413
413
|
append: q(() => [
|
|
414
|
-
|
|
414
|
+
fe("span", {
|
|
415
415
|
title: "条件查询",
|
|
416
416
|
onClick: ue[2] || (ue[2] = (Ue) => u.value = !u.value)
|
|
417
417
|
}, [
|
|
418
|
-
se(
|
|
418
|
+
se($, {
|
|
419
419
|
name: "query",
|
|
420
420
|
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
421
421
|
})
|
|
@@ -426,14 +426,14 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
426
426
|
];
|
|
427
427
|
}),
|
|
428
428
|
content: q(() => [
|
|
429
|
-
|
|
430
|
-
(
|
|
429
|
+
fe("div", es, [
|
|
430
|
+
(H(), De(xl, {
|
|
431
431
|
rowContents: ae.value,
|
|
432
|
-
buttonValue:
|
|
432
|
+
buttonValue: be.value,
|
|
433
433
|
isRowFlex: !0,
|
|
434
434
|
isEnableWrap: !1,
|
|
435
435
|
isButtonRow: !1,
|
|
436
|
-
key:
|
|
436
|
+
key: be.value,
|
|
437
437
|
isStartJustify: !1,
|
|
438
438
|
onOnButtonClick: Re
|
|
439
439
|
}, null, 8, ["rowContents", "buttonValue"]))
|
|
@@ -442,26 +442,26 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
442
442
|
_: 1
|
|
443
443
|
}, 8, ["isVisible"])
|
|
444
444
|
]),
|
|
445
|
-
|
|
446
|
-
(
|
|
445
|
+
D.buttons && ((al = D.buttons) == null ? void 0 : al.length) > 0 ? (H(), ke("div", ls, [
|
|
446
|
+
(H(!0), ke(tl, null, cl((Me = D.buttons) == null ? void 0 : Me.filter((k) => D.isDevMode || (k == null ? void 0 : k.label) !== "修改模板"), (k, he) => (H(), ke("div", {
|
|
447
447
|
class: "extra-contents",
|
|
448
|
-
key:
|
|
448
|
+
key: he
|
|
449
449
|
}, [
|
|
450
|
-
(k == null ? void 0 : k.type) === "upload" ? (
|
|
450
|
+
(k == null ? void 0 : k.type) === "upload" ? (H(), De(ll, {
|
|
451
451
|
key: 0,
|
|
452
452
|
class: "upload-button-wrap",
|
|
453
|
-
"on-change":
|
|
453
|
+
"on-change": Se,
|
|
454
454
|
accept: ".xlsx,.xls",
|
|
455
455
|
"auto-upload": !1,
|
|
456
456
|
action: "#",
|
|
457
457
|
"show-file-list": !1
|
|
458
458
|
}, {
|
|
459
459
|
default: q(() => [
|
|
460
|
-
se(
|
|
460
|
+
se($e, { style: { background: "transparent", color: "#666666" } }, {
|
|
461
461
|
icon: q(() => {
|
|
462
462
|
var G;
|
|
463
463
|
return [
|
|
464
|
-
se(
|
|
464
|
+
se($, {
|
|
465
465
|
name: (G = Ae == null ? void 0 : Ae.find((Q) => (Q == null ? void 0 : Q.label) === (k == null ? void 0 : k.label))) == null ? void 0 : G.icon
|
|
466
466
|
}, null, 8, ["name"])
|
|
467
467
|
];
|
|
@@ -473,17 +473,17 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
473
473
|
}, 1024)
|
|
474
474
|
]),
|
|
475
475
|
_: 2
|
|
476
|
-
}, 1024)) :
|
|
477
|
-
(k == null ? void 0 : k.type) === "popover" ? (
|
|
476
|
+
}, 1024)) : _e("", !0),
|
|
477
|
+
(k == null ? void 0 : k.type) === "popover" ? (H(), De(Ya, { key: 1 }, {
|
|
478
478
|
dropTitle: q(() => [
|
|
479
|
-
(k == null ? void 0 : k.type) === "popover" ? (
|
|
479
|
+
(k == null ? void 0 : k.type) === "popover" ? (H(), De($e, {
|
|
480
480
|
key: 0,
|
|
481
481
|
style: { background: "transparent", color: "#666666" }
|
|
482
482
|
}, {
|
|
483
483
|
icon: q(() => {
|
|
484
484
|
var G;
|
|
485
485
|
return [
|
|
486
|
-
se(
|
|
486
|
+
se($, {
|
|
487
487
|
name: (G = Ae == null ? void 0 : Ae.find((Q) => (Q == null ? void 0 : Q.label) === (k == null ? void 0 : k.label))) == null ? void 0 : G.icon
|
|
488
488
|
}, null, 8, ["name"])
|
|
489
489
|
];
|
|
@@ -492,11 +492,11 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
492
492
|
ze(" " + Ee(k == null ? void 0 : k.label), 1)
|
|
493
493
|
]),
|
|
494
494
|
_: 2
|
|
495
|
-
}, 1024)) :
|
|
495
|
+
}, 1024)) : _e("", !0)
|
|
496
496
|
]),
|
|
497
497
|
dropMenu: q(() => [
|
|
498
|
-
|
|
499
|
-
(
|
|
498
|
+
fe("div", as, [
|
|
499
|
+
(H(!0), ke(tl, null, cl(k == null ? void 0 : k.contents, (G) => (H(), De($e, {
|
|
500
500
|
key: G == null ? void 0 : G.label,
|
|
501
501
|
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
502
502
|
onClick: (Q) => sl(G == null ? void 0 : G.label)
|
|
@@ -505,8 +505,8 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
505
505
|
var Q, Ue;
|
|
506
506
|
return [
|
|
507
507
|
ze(Ee(G == null ? void 0 : G.label), 1),
|
|
508
|
-
(Q = G == null ? void 0 : G.label) != null && Q.includes("选中") ? (
|
|
509
|
-
(Ue = G == null ? void 0 : G.label) != null && Ue.includes("全部") ? (
|
|
508
|
+
(Q = G == null ? void 0 : G.label) != null && Q.includes("选中") ? (H(), ke("span", rs, "(" + Ee(D.selectNums) + ")", 1)) : _e("", !0),
|
|
509
|
+
(Ue = G == null ? void 0 : G.label) != null && Ue.includes("全部") ? (H(), ke("span", ns, "(" + Ee(D.dataNums) + ")", 1)) : _e("", !0)
|
|
510
510
|
];
|
|
511
511
|
}),
|
|
512
512
|
_: 2
|
|
@@ -514,17 +514,17 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
514
514
|
])
|
|
515
515
|
]),
|
|
516
516
|
_: 2
|
|
517
|
-
}, 1024)) :
|
|
518
|
-
k != null && k.type ?
|
|
517
|
+
}, 1024)) : _e("", !0),
|
|
518
|
+
k != null && k.type ? _e("", !0) : (H(), De($e, {
|
|
519
519
|
key: 2,
|
|
520
520
|
id: "themeButton",
|
|
521
|
-
style:
|
|
521
|
+
style: dl({ background: "transparent", color: (k == null ? void 0 : k.label) === "新增" ? "var(--ssbutton-theme-bg)" : "#666666" }),
|
|
522
522
|
onClick: (G) => sl(k == null ? void 0 : k.label)
|
|
523
523
|
}, {
|
|
524
524
|
icon: q(() => {
|
|
525
525
|
var G;
|
|
526
526
|
return [
|
|
527
|
-
se(
|
|
527
|
+
se($, {
|
|
528
528
|
name: (G = Ae == null ? void 0 : Ae.find((Q) => (Q == null ? void 0 : Q.label) === (k == null ? void 0 : k.label))) == null ? void 0 : G.icon
|
|
529
529
|
}, null, 8, ["name"])
|
|
530
530
|
];
|
|
@@ -535,12 +535,12 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
535
535
|
_: 2
|
|
536
536
|
}, 1032, ["style", "onClick"]))
|
|
537
537
|
]))), 128))
|
|
538
|
-
])) :
|
|
538
|
+
])) : _e("", !0)
|
|
539
539
|
])
|
|
540
540
|
]));
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
},
|
|
543
|
+
}, us = /* @__PURE__ */ ta(ss, [["__scopeId", "data-v-b0dbf278"]]), os = /* @__PURE__ */ ur({
|
|
544
544
|
__name: "batch",
|
|
545
545
|
props: {
|
|
546
546
|
lockingPage: Boolean,
|
|
@@ -558,48 +558,48 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
558
558
|
}
|
|
559
559
|
},
|
|
560
560
|
emits: ["buttonClick"],
|
|
561
|
-
setup(
|
|
562
|
-
const Z =
|
|
561
|
+
setup(D, { emit: ee }) {
|
|
562
|
+
const Z = D, K = ee, L = (ae) => {
|
|
563
563
|
K("buttonClick", ae);
|
|
564
564
|
}, u = (ae) => {
|
|
565
|
-
var
|
|
566
|
-
return ae != null && ae.includes("删除") ? ((
|
|
565
|
+
var be;
|
|
566
|
+
return ae != null && ae.includes("删除") ? ((be = Z.selectTableItems) == null ? void 0 : be.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
|
|
567
567
|
};
|
|
568
|
-
return (ae,
|
|
568
|
+
return (ae, be) => {
|
|
569
569
|
const Ae = Fe("el-button");
|
|
570
|
-
return
|
|
571
|
-
(
|
|
572
|
-
key:
|
|
573
|
-
disabled: !!
|
|
574
|
-
class: sr(u(
|
|
575
|
-
onClick: (He) =>
|
|
570
|
+
return H(), ke("div", null, [
|
|
571
|
+
(H(!0), ke(tl, null, cl(D.buttons, (Se) => (H(), De(Ae, {
|
|
572
|
+
key: Se == null ? void 0 : Se.label,
|
|
573
|
+
disabled: !!D.lockingPage,
|
|
574
|
+
class: sr(u(Se == null ? void 0 : Se.label)),
|
|
575
|
+
onClick: (He) => L(Se == null ? void 0 : Se.label)
|
|
576
576
|
}, {
|
|
577
577
|
default: q(() => [
|
|
578
|
-
ze(Ee(
|
|
578
|
+
ze(Ee(Se == null ? void 0 : Se.label), 1)
|
|
579
579
|
]),
|
|
580
580
|
_: 2
|
|
581
581
|
}, 1032, ["disabled", "class", "onClick"]))), 128))
|
|
582
582
|
]);
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
}),
|
|
585
|
+
}), is = /* @__PURE__ */ ta(os, [["__scopeId", "data-v-70b12973"]]), ts = Ua("formToTableComp", {
|
|
586
586
|
state: () => ({
|
|
587
587
|
selectArray: [],
|
|
588
588
|
selectString: ""
|
|
589
589
|
}),
|
|
590
590
|
actions: {
|
|
591
|
-
setSelectArray(
|
|
592
|
-
this.selectArray =
|
|
591
|
+
setSelectArray(D) {
|
|
592
|
+
this.selectArray = D;
|
|
593
593
|
},
|
|
594
|
-
setSelectString(
|
|
595
|
-
this.selectString =
|
|
594
|
+
setSelectString(D) {
|
|
595
|
+
this.selectString = D;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
}),
|
|
598
|
+
}), cs = { class: "calculator-content" }, ds = { class: "calculator-child" }, ps = { class: "calculator-child" }, fs = /* @__PURE__ */ ur({
|
|
599
599
|
__name: "calculator",
|
|
600
|
-
setup(
|
|
600
|
+
setup(D) {
|
|
601
601
|
const ee = R(), Z = R();
|
|
602
|
-
return
|
|
602
|
+
return Aa(() => {
|
|
603
603
|
ee.value = [
|
|
604
604
|
{
|
|
605
605
|
type: "Upload",
|
|
@@ -613,14 +613,14 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
613
613
|
name: "output"
|
|
614
614
|
}
|
|
615
615
|
];
|
|
616
|
-
}), (K,
|
|
617
|
-
|
|
616
|
+
}), (K, L) => (H(), ke("div", cs, [
|
|
617
|
+
fe("div", ds, [
|
|
618
618
|
se(xl, {
|
|
619
619
|
rowContents: ee.value,
|
|
620
620
|
isRowFlex: !0
|
|
621
621
|
}, null, 8, ["rowContents"])
|
|
622
622
|
]),
|
|
623
|
-
|
|
623
|
+
fe("div", ps, [
|
|
624
624
|
se(xl, {
|
|
625
625
|
rowContents: Z.value,
|
|
626
626
|
isEdit: !1,
|
|
@@ -629,119 +629,119 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
629
629
|
])
|
|
630
630
|
]));
|
|
631
631
|
}
|
|
632
|
-
}),
|
|
632
|
+
}), gs = /* @__PURE__ */ ta(fs, [["__scopeId", "data-v-73db0fe7"]]), ys = Ua("unit", {
|
|
633
633
|
state: () => ({
|
|
634
634
|
selectIndex: "",
|
|
635
635
|
selectMenu: "",
|
|
636
636
|
selectTitle: []
|
|
637
637
|
}),
|
|
638
638
|
actions: {
|
|
639
|
-
setSelectIndex(
|
|
640
|
-
this.selectIndex =
|
|
639
|
+
setSelectIndex(D) {
|
|
640
|
+
this.selectIndex = D;
|
|
641
641
|
},
|
|
642
|
-
setSelectMenu(
|
|
643
|
-
this.selectMenu =
|
|
642
|
+
setSelectMenu(D) {
|
|
643
|
+
this.selectMenu = D;
|
|
644
644
|
},
|
|
645
|
-
setSelectTitle(
|
|
646
|
-
this.selectTitle =
|
|
645
|
+
setSelectTitle(D) {
|
|
646
|
+
this.selectTitle = D;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
}),
|
|
650
|
-
let Z =
|
|
651
|
-
return Array.isArray(Z) && (Z = Z == null ? void 0 : Z.map((
|
|
652
|
-
if (Array.isArray(
|
|
649
|
+
}), Ta = (D, ee) => {
|
|
650
|
+
let Z = D, K = ee;
|
|
651
|
+
return Array.isArray(Z) && (Z = Z == null ? void 0 : Z.map((L, u) => {
|
|
652
|
+
if (Array.isArray(L)) {
|
|
653
653
|
let ae = {};
|
|
654
|
-
return
|
|
655
|
-
var
|
|
656
|
-
(
|
|
654
|
+
return L = L == null ? void 0 : L.forEach((be, Ae) => {
|
|
655
|
+
var Se;
|
|
656
|
+
(Se = K == null ? void 0 : K[Ae]) != null && Se.prop ? ae[K[Ae].prop] = be : Array.isArray(be) && (ae.children = Ta(be, K));
|
|
657
657
|
}), Object.assign(ae, { id: u });
|
|
658
658
|
} else
|
|
659
|
-
return
|
|
659
|
+
return L;
|
|
660
660
|
})), Z;
|
|
661
|
-
}, or = (
|
|
662
|
-
let K =
|
|
661
|
+
}, or = (D, ee, Z) => {
|
|
662
|
+
let K = D, L = ee;
|
|
663
663
|
return K = K == null ? void 0 : K.map((u, ae) => {
|
|
664
|
-
var
|
|
665
|
-
return !Array.isArray(u) || !((
|
|
664
|
+
var be, Ae;
|
|
665
|
+
return !Array.isArray(u) || !((be = L == null ? void 0 : L[ae]) != null && be.label) && !Z || (u.unshift(((Ae = L == null ? void 0 : L[ae]) == null ? void 0 : Ae.label) ?? ""), u.some((Se) => Array.isArray(Se)) && (u = u == null ? void 0 : u.map((Se) => {
|
|
666
666
|
var He;
|
|
667
|
-
return Array.isArray(
|
|
667
|
+
return Array.isArray(Se) && (Se = or(Se, (He = L == null ? void 0 : L[ae]) == null ? void 0 : He.children, Z)), Se;
|
|
668
668
|
}))), u;
|
|
669
669
|
}), K;
|
|
670
|
-
},
|
|
670
|
+
}, hs = (D, ee, Z) => {
|
|
671
671
|
if (ee === "")
|
|
672
|
-
return
|
|
672
|
+
return D == null ? void 0 : D.filter((K) => (K == null ? void 0 : K.id) !== Z);
|
|
673
673
|
{
|
|
674
674
|
const K = ee.split("-");
|
|
675
|
-
return
|
|
675
|
+
return vs(D, K, Z);
|
|
676
676
|
}
|
|
677
|
-
},
|
|
678
|
-
let K =
|
|
679
|
-
return (
|
|
680
|
-
}, ir = (
|
|
677
|
+
}, vs = (D, ee, Z) => {
|
|
678
|
+
let K = D, L = ee;
|
|
679
|
+
return (L == null ? void 0 : L.length) === 0 ? K = K == null ? void 0 : K.filter((u) => u.id !== Z) : K = K == null ? void 0 : K.map((u) => (u.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), u = ir(u, L, Z)), u)), K;
|
|
680
|
+
}, ir = (D, ee, Z) => {
|
|
681
681
|
var u, ae;
|
|
682
|
-
let K =
|
|
683
|
-
return (
|
|
684
|
-
},
|
|
682
|
+
let K = D, L = ee;
|
|
683
|
+
return (L == null ? void 0 : L.length) === 0 ? K.children = (u = K.children) == null ? void 0 : u.filter((be) => be.id !== Z) : K.children = (ae = K.children) == null ? void 0 : ae.map((be) => (be.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), be = ir(be, L, Z)), be)), K;
|
|
684
|
+
}, bs = (D, ee, Z) => {
|
|
685
685
|
if (ee === "")
|
|
686
686
|
return Z;
|
|
687
687
|
{
|
|
688
688
|
const K = ee.split("-");
|
|
689
|
-
return
|
|
689
|
+
return Ss(D, K, Z);
|
|
690
690
|
}
|
|
691
|
-
},
|
|
692
|
-
let K =
|
|
693
|
-
return (
|
|
694
|
-
}, tr = (
|
|
691
|
+
}, Ss = (D, ee, Z) => {
|
|
692
|
+
let K = D, L = ee;
|
|
693
|
+
return (L == null ? void 0 : L.length) === 0 ? K = Z : K = K == null ? void 0 : K.map((u) => (u.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), u = tr(u, L, Z)), u)), K;
|
|
694
|
+
}, tr = (D, ee, Z) => {
|
|
695
695
|
var u;
|
|
696
|
-
let K =
|
|
697
|
-
return (
|
|
698
|
-
},
|
|
696
|
+
let K = D, L = ee;
|
|
697
|
+
return (L == null ? void 0 : L.length) === 0 ? K.children = Z : K.children = (u = K.children) == null ? void 0 : u.map((ae) => (ae.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), ae = tr(ae, L, Z)), ae)), K;
|
|
698
|
+
}, ks = Ua("formComp", {
|
|
699
699
|
state: () => ({
|
|
700
700
|
objUrl: [],
|
|
701
701
|
blobUrls: []
|
|
702
702
|
}),
|
|
703
703
|
actions: {
|
|
704
|
-
setObjUrl(
|
|
705
|
-
this.objUrl =
|
|
704
|
+
setObjUrl(D) {
|
|
705
|
+
this.objUrl = D;
|
|
706
706
|
},
|
|
707
|
-
setBlobUrls(
|
|
708
|
-
this.blobUrls =
|
|
707
|
+
setBlobUrls(D) {
|
|
708
|
+
this.blobUrls = D;
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
}), nr = async (
|
|
712
|
-
var u, ae,
|
|
713
|
-
let ee = (ae = (u = J(
|
|
711
|
+
}), nr = async (D) => {
|
|
712
|
+
var u, ae, be, Ae, Se, He, sl;
|
|
713
|
+
let ee = (ae = (u = J(D)) == null ? void 0 : u.optionUrl) == null ? void 0 : ae.menuSelect, Z = [];
|
|
714
714
|
ee == null || ee.forEach((re) => {
|
|
715
715
|
});
|
|
716
716
|
let K = "";
|
|
717
|
-
const
|
|
718
|
-
if (
|
|
719
|
-
var Je, Re,
|
|
720
|
-
(re == null ? void 0 : re.name) === (((ie = (
|
|
717
|
+
const L = await $n(ee);
|
|
718
|
+
if (L == null || L.forEach((re) => {
|
|
719
|
+
var Je, Re, ye, ie;
|
|
720
|
+
(re == null ? void 0 : re.name) === (((ie = (ye = (Re = (Je = J(D)) == null ? void 0 : Je.optionUrl) == null ? void 0 : Re.groupSelect) == null ? void 0 : ye[0]) == null ? void 0 : ie.replaceAll("'", "")) ?? "") && (K = re == null ? void 0 : re.id);
|
|
721
721
|
}), K !== "") {
|
|
722
|
-
const re = (
|
|
723
|
-
var ie, ue, te,
|
|
724
|
-
return (
|
|
725
|
-
})) == null ? void 0 :
|
|
726
|
-
let Je = (
|
|
727
|
-
Re == null || Re.forEach((
|
|
728
|
-
Z.push(
|
|
722
|
+
const re = (be = L == null ? void 0 : L.find((ye) => {
|
|
723
|
+
var ie, ue, te, $;
|
|
724
|
+
return (ye == null ? void 0 : ye.name) === (((ue = (ie = D == null ? void 0 : D.groupSelect) == null ? void 0 : ie.split(":")) == null ? void 0 : ue[0]) || (($ = (te = D == null ? void 0 : D.optionUrl) == null ? void 0 : te.groupSelect) == null ? void 0 : $[0]));
|
|
725
|
+
})) == null ? void 0 : be.compData;
|
|
726
|
+
let Je = (Se = (Ae = re == null ? void 0 : re.find((ye) => (ye == null ? void 0 : ye.key) === "header")) == null ? void 0 : Ae.contents) == null ? void 0 : Se.map((ye) => ye == null ? void 0 : ye.label), Re = (sl = (He = re == null ? void 0 : re.find((ye) => (ye == null ? void 0 : ye.key) === "tableContents")) == null ? void 0 : He.contents) == null ? void 0 : sl.map((ye) => (ye = ye == null ? void 0 : ye.filter((ie) => !(ie != null && ie.id)), ye));
|
|
727
|
+
Re == null || Re.forEach((ye) => {
|
|
728
|
+
Z.push(Pn(ye, Je));
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
731
|
return Z;
|
|
732
|
-
},
|
|
732
|
+
}, ms = { class: "table-content" }, Ts = { class: "menu-config-wrap" }, As = ["onClick"], Us = ["onClick"], xs = {
|
|
733
733
|
key: 0,
|
|
734
734
|
class: "viewport-wrap"
|
|
735
|
-
},
|
|
735
|
+
}, _s = ["onClick"], Cs = { title: "选择显示列信息" }, Es = {
|
|
736
736
|
class: "menu-config-wrap",
|
|
737
737
|
style: { padding: "0 0 0 16px", "box-sizing": "border-box", "min-height": "200px", width: "400px", overflow: "auto", position: "relative" }
|
|
738
|
-
},
|
|
738
|
+
}, Os = ["title"], Ds = { class: "col-operate-wrap" }, Ls = {
|
|
739
739
|
title: "拖拽排序列",
|
|
740
740
|
style: { cursor: "move", color: "grey", position: "absolute", right: "15px" }
|
|
741
|
-
},
|
|
741
|
+
}, js = { class: "pop-view" }, $s = { class: "pop-wrapper" }, Ps = { class: "file-list-pop" }, ws = ["title", "onClick"], Ks = ["onClick"], Bs = ["onClick"], Ms = { class: "form-content" }, Ns = {
|
|
742
742
|
key: 0,
|
|
743
743
|
class: "dialog-footer"
|
|
744
|
-
},
|
|
744
|
+
}, Fs = { class: "dialog-footer" }, zs = { class: "form-content" }, Js = {
|
|
745
745
|
__name: "index",
|
|
746
746
|
props: {
|
|
747
747
|
pageLayout: {
|
|
@@ -816,9 +816,9 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
816
816
|
}
|
|
817
817
|
},
|
|
818
818
|
emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
|
|
819
|
-
setup(
|
|
820
|
-
var
|
|
821
|
-
const Z = R([]), K =
|
|
819
|
+
setup(D, { emit: ee }) {
|
|
820
|
+
var Ra;
|
|
821
|
+
const Z = R([]), K = ks(vl), L = R(null), u = D, ae = R(u == null ? void 0 : u.allowSelect), be = R((Ra = u == null ? void 0 : u.config) == null ? void 0 : Ra.showIndex), Ae = R(), Se = R([
|
|
822
822
|
{
|
|
823
823
|
label: "排序",
|
|
824
824
|
value: "sortable",
|
|
@@ -839,25 +839,25 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
839
839
|
value: "operable",
|
|
840
840
|
checked: !1
|
|
841
841
|
}
|
|
842
|
-
]), He =
|
|
842
|
+
]), He = wn(vl), { originalPath: sl } = Al(He), re = sl.value, Je = R(!1), Re = R(!1), ye = R(!1), ie = Jl({
|
|
843
843
|
column: {},
|
|
844
844
|
status: !1,
|
|
845
845
|
text: "合计"
|
|
846
|
-
}), ue =
|
|
846
|
+
}), ue = Jl({
|
|
847
847
|
currentPage: 1,
|
|
848
848
|
pageSize: 10,
|
|
849
849
|
total: 0,
|
|
850
850
|
pageSizes: [5, 10, 20, 50, 100]
|
|
851
|
-
}), te = ee,
|
|
852
|
-
|
|
853
|
-
const al = R([]), Me = R(!1), k = R(),
|
|
851
|
+
}), te = ee, $ = R([]), Le = Jl({ prop: "", order: null }), $e = R([]), ll = R(!1), We = R(!1), bl = R(null);
|
|
852
|
+
Dn();
|
|
853
|
+
const al = R([]), Me = R(!1), k = R(), he = Kn(), { importLoading: G, activeMenuPath: Q, contentLoading: Ue, linkMenuInfo: Pe } = Al(he), rl = Bn(vl), je = Mn(vl), { extraContents: Te, cacheUpdatingData: _l, tableViewContents: Cl, tableLoading: Rs, pageMapState: pl, lockingPage: ql } = Al(je), I = R([]), Ql = R([]), Hl = R(/* @__PURE__ */ new Map());
|
|
854
854
|
R(!1);
|
|
855
855
|
const nl = R("");
|
|
856
856
|
R();
|
|
857
|
-
const
|
|
857
|
+
const Xl = R(!0), Sl = R(0), xa = R(!0), Xe = R(""), ul = R(!1), cr = R({
|
|
858
858
|
label: "查看三维模型"
|
|
859
|
-
}),
|
|
860
|
-
|
|
859
|
+
}), Yl = R(!1), ca = R(), Ge = R([]), fl = R([]), Zl = R(!1), El = R([]), kl = R([]), gl = R([]), ol = R([]), Ye = R(), Ke = R(), dr = ts(vl), Vl = R(), da = R(0), Il = ys(vl), { selectIndex: pr, selectMenu: il, selectTitle: pa } = Al(Il), { selectString: yl } = Al(dr), fr = Sn(vl), { loginUserInfo: ve } = Al(fr), gr = R(720), Ze = R(!1), ea = R(!1), Ve = R([]), hl = R(), Ol = R(!0), _a = R(!0), la = R([]), yr = gn("contentRef");
|
|
860
|
+
yn("contentRef", yr), Ne(() => {
|
|
861
861
|
var e;
|
|
862
862
|
return (e = I.value) == null ? void 0 : e.length;
|
|
863
863
|
}, (e) => {
|
|
@@ -865,17 +865,17 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
865
865
|
}), Ne(
|
|
866
866
|
() => Cl.value,
|
|
867
867
|
async () => {
|
|
868
|
-
var o, d, c, p, b, s,
|
|
868
|
+
var o, d, c, p, b, s, x, w, y, O, A, S, N, T, j, m, f, g;
|
|
869
869
|
if (((o = Cl.value) == null ? void 0 : o.length) === 0 || !((d = u == null ? void 0 : u.itemData) != null && d.find((i) => (i == null ? void 0 : i.key) === "columnPath")) || !((c = u == null ? void 0 : u.itemData) != null && c.find((i) => (i == null ? void 0 : i.key) === "pageColumn"))) return;
|
|
870
|
-
let e = (y = (w = (
|
|
871
|
-
|
|
870
|
+
let e = (y = (w = (x = (s = (b = (p = u == null ? void 0 : u.itemData) == null ? void 0 : p.find((i) => (i == null ? void 0 : i.key) === "pageColumn")) == null ? void 0 : b.contents) == null ? void 0 : s.split("[")) == null ? void 0 : x[1]) == null ? void 0 : w.split("]")) == null ? void 0 : y[0], l = ((N = (S = (A = (O = u == null ? void 0 : u.itemData) == null ? void 0 : O.find((i) => (i == null ? void 0 : i.key) === "pageColumn")) == null ? void 0 : A.contents) == null ? void 0 : S.split("[")) == null ? void 0 : N[0]) + ((j = (T = Cl.value) == null ? void 0 : T.find((i) => (i == null ? void 0 : i.key) === e)) == null ? void 0 : j.value), r = ((f = (m = u == null ? void 0 : u.itemData) == null ? void 0 : m.find((i) => (i == null ? void 0 : i.key) === "pageGroup")) == null ? void 0 : f.contents) ?? "", a = await qe(l, sessionStorage.getItem("systemKey"), ""), n = (g = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.name) === (r === "" ? u == null ? void 0 : u.compName : r))) == null ? void 0 : g.compData;
|
|
871
|
+
za(n, u.allMapContents);
|
|
872
872
|
},
|
|
873
873
|
{ deep: !0 }
|
|
874
874
|
);
|
|
875
|
-
const
|
|
875
|
+
const hr = async (e, l) => {
|
|
876
876
|
var r, a, n, o, d;
|
|
877
877
|
try {
|
|
878
|
-
const c = await
|
|
878
|
+
const c = await Rl({ id: (u == null ? void 0 : u.parentTableId) || (u == null ? void 0 : u.index) });
|
|
879
879
|
let p;
|
|
880
880
|
((r = c == null ? void 0 : c.data) == null ? void 0 : r.code) === 200 && (p = ((n = (a = c == null ? void 0 : c.data) == null ? void 0 : a.result) == null ? void 0 : n[0]) || null);
|
|
881
881
|
const b = {
|
|
@@ -884,19 +884,19 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
884
884
|
tableId: (u == null ? void 0 : u.parentTableId) || (u == null ? void 0 : u.index),
|
|
885
885
|
systemKey: sessionStorage.getItem("systemKey")
|
|
886
886
|
}, s = l == null ? void 0 : l.map((y) => {
|
|
887
|
-
const
|
|
888
|
-
return
|
|
889
|
-
|
|
890
|
-
}),
|
|
891
|
-
}),
|
|
887
|
+
const O = Object.keys(y), A = {};
|
|
888
|
+
return O.forEach((S, N) => {
|
|
889
|
+
A[e[N]] = y[S];
|
|
890
|
+
}), A;
|
|
891
|
+
}), x = s == null ? void 0 : s.map((y) => ({
|
|
892
892
|
key: b,
|
|
893
893
|
value: {
|
|
894
894
|
tableData: y
|
|
895
895
|
}
|
|
896
|
-
})), w = await sa({ dataList:
|
|
897
|
-
((d = w == null ? void 0 : w.data) == null ? void 0 : d.code) === 200 ? (je.setRefreshCurStructure(!0),
|
|
896
|
+
})), w = await sa({ dataList: x });
|
|
897
|
+
((d = w == null ? void 0 : w.data) == null ? void 0 : d.code) === 200 ? (je.setRefreshCurStructure(!0), we.success("导入数据成功")) : we.error("导入数据响应失败");
|
|
898
898
|
} catch (c) {
|
|
899
|
-
throw
|
|
899
|
+
throw we.error("导入数据处理失败"), new Error(c);
|
|
900
900
|
}
|
|
901
901
|
}, vr = async (e) => {
|
|
902
902
|
var l, r;
|
|
@@ -917,14 +917,14 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
917
917
|
}], Me.value = !0;
|
|
918
918
|
}
|
|
919
919
|
};
|
|
920
|
-
|
|
921
|
-
|
|
920
|
+
hn(() => {
|
|
921
|
+
_a.value = !1;
|
|
922
922
|
let e = da.value;
|
|
923
923
|
da.value = e + 1;
|
|
924
924
|
});
|
|
925
|
-
const
|
|
925
|
+
const Ca = Sa(() => {
|
|
926
926
|
var a, n;
|
|
927
|
-
const e = (ue.currentPage - 1) * ue.pageSize, l = e + ue.pageSize, r = (a =
|
|
927
|
+
const e = (ue.currentPage - 1) * ue.pageSize, l = e + ue.pageSize, r = (a = $.value) == null ? void 0 : a.find((o) => {
|
|
928
928
|
var d;
|
|
929
929
|
return (o == null ? void 0 : o.sortable) && ((d = o == null ? void 0 : o.label) == null ? void 0 : d.includes("时间"));
|
|
930
930
|
});
|
|
@@ -933,42 +933,42 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
933
933
|
ue.currentPage = e, te("getSliceContLength", ue);
|
|
934
934
|
}, Sr = (e) => {
|
|
935
935
|
var l;
|
|
936
|
-
ue.pageSize = e, e * ue.currentPage > ((l = I.value) == null ? void 0 : l.length) && (ue.currentPage = 1, ue.pageSize = 10,
|
|
936
|
+
ue.pageSize = e, e * ue.currentPage > ((l = I.value) == null ? void 0 : l.length) && (ue.currentPage = 1, ue.pageSize = 10, we.warning("分页无效,返回第一页")), te("getSliceContLength", ue);
|
|
937
937
|
}, kr = (e, l) => {
|
|
938
938
|
var d, c;
|
|
939
|
-
const r = (c = (d =
|
|
939
|
+
const r = (c = (d = $.value) == null ? void 0 : d.map((p) => p == null ? void 0 : p.prop)) == null ? void 0 : c.filter((p) => p !== "operate");
|
|
940
940
|
let a;
|
|
941
941
|
const n = (e == null ? void 0 : e.length) === (r == null ? void 0 : r.length);
|
|
942
|
-
if (e != null && e.includes("序号")) return
|
|
943
|
-
if (a = n ? e : e.slice(0, r == null ? void 0 : r.length), !(a == null ? void 0 : a.every((p) => r == null ? void 0 : r.find((b) => p === b)))) return
|
|
944
|
-
|
|
942
|
+
if (e != null && e.includes("序号")) return we.error("导入的数据不需要包含序号列");
|
|
943
|
+
if (a = n ? e : e.slice(0, r == null ? void 0 : r.length), !(a == null ? void 0 : a.every((p) => r == null ? void 0 : r.find((b) => p === b)))) return we.error("导入的数据表头不匹配");
|
|
944
|
+
hr(a, l);
|
|
945
945
|
}, mr = (e, l) => {
|
|
946
946
|
var r;
|
|
947
|
-
je.setRefreshCurStructure(!1), ((r =
|
|
947
|
+
je.setRefreshCurStructure(!1), ((r = $.value) == null ? void 0 : r.length) === 0 || kr(e, l);
|
|
948
948
|
}, Tr = (e, l, r, a) => {
|
|
949
949
|
const n = [], o = [], d = (b) => Object.keys(b).length;
|
|
950
950
|
for (const b in e)
|
|
951
951
|
if (e[b] !== void 0) {
|
|
952
|
-
const s = e[b],
|
|
952
|
+
const s = e[b], x = [];
|
|
953
953
|
for (const [w, y] of Object.entries(s))
|
|
954
|
-
|
|
955
|
-
n.push(
|
|
954
|
+
x.push(y), o.length < d(s) && o.push(w);
|
|
955
|
+
n.push(x);
|
|
956
956
|
}
|
|
957
957
|
n.unshift(o);
|
|
958
|
-
const c =
|
|
959
|
-
|
|
960
|
-
},
|
|
961
|
-
var o, d, c, p, b, s,
|
|
958
|
+
const c = Gl.aoa_to_sheet(n), p = Gl.book_new();
|
|
959
|
+
Gl.book_append_sheet(p, c, a), jn(p, `${l}.xlsx`), Ve.value = [];
|
|
960
|
+
}, aa = async (e, l, r, a = !1, n) => {
|
|
961
|
+
var o, d, c, p, b, s, x, w;
|
|
962
962
|
try {
|
|
963
963
|
je.setRefreshCurStructure(!1);
|
|
964
|
-
const y = await
|
|
964
|
+
const y = await Rl({
|
|
965
965
|
id: u == null ? void 0 : u.index
|
|
966
966
|
});
|
|
967
967
|
if (((o = y == null ? void 0 : y.data) == null ? void 0 : o.code) === 200) {
|
|
968
|
-
let
|
|
969
|
-
a ?
|
|
970
|
-
...
|
|
971
|
-
compData: (
|
|
968
|
+
let O = (b = (p = (c = (d = y == null ? void 0 : y.data) == null ? void 0 : d.result) == null ? void 0 : c[0]) == null ? void 0 : p.value) == null ? void 0 : b.pageData;
|
|
969
|
+
a ? O = {
|
|
970
|
+
...O,
|
|
971
|
+
compData: (x = O == null ? void 0 : O.compData) == null ? void 0 : x.map((S) => {
|
|
972
972
|
var N;
|
|
973
973
|
return (S == null ? void 0 : S.key) === "header" ? {
|
|
974
974
|
...S,
|
|
@@ -978,9 +978,9 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
978
978
|
}))
|
|
979
979
|
} : S;
|
|
980
980
|
})
|
|
981
|
-
} :
|
|
982
|
-
...
|
|
983
|
-
compData: (s =
|
|
981
|
+
} : O = {
|
|
982
|
+
...O,
|
|
983
|
+
compData: (s = O == null ? void 0 : O.compData) == null ? void 0 : s.map((S) => {
|
|
984
984
|
var N, T;
|
|
985
985
|
return (S == null ? void 0 : S.key) === "header" ? {
|
|
986
986
|
...S,
|
|
@@ -997,54 +997,54 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
997
997
|
} : S;
|
|
998
998
|
})
|
|
999
999
|
};
|
|
1000
|
-
const
|
|
1000
|
+
const A = await mn({
|
|
1001
1001
|
id: u == null ? void 0 : u.index,
|
|
1002
1002
|
value: {
|
|
1003
|
-
pageData:
|
|
1003
|
+
pageData: O
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
|
-
((w =
|
|
1006
|
+
((w = A == null ? void 0 : A.data) == null ? void 0 : w.code) === 200 ? (we.success("编辑成功"), je.setRefreshCurStructure(!0)) : we.error("编辑响应失败");
|
|
1007
1007
|
}
|
|
1008
1008
|
} catch (y) {
|
|
1009
|
-
|
|
1009
|
+
we.error(y);
|
|
1010
1010
|
}
|
|
1011
1011
|
}, Ar = async (e, l) => {
|
|
1012
|
-
await
|
|
1012
|
+
await aa("label", l, e);
|
|
1013
1013
|
}, Ur = async (e, l) => {
|
|
1014
|
-
await
|
|
1014
|
+
await aa("columnType", l, e, !1, "type");
|
|
1015
1015
|
}, xr = () => {
|
|
1016
|
-
_l.value ? Ze.value = !1 :
|
|
1016
|
+
_l.value ? Ze.value = !1 : Ja();
|
|
1017
1017
|
}, _r = (e) => {
|
|
1018
1018
|
Ve.value = e;
|
|
1019
1019
|
}, Cr = (e, l) => {
|
|
1020
1020
|
hl.value === l ? Ol.value = !1 : Ol.value = !0, hl.value = l == null ? void 0 : l.changeProp;
|
|
1021
|
-
}, Dl =
|
|
1021
|
+
}, Dl = Sa(() => {
|
|
1022
1022
|
var r, a, n;
|
|
1023
|
-
const e = (r =
|
|
1024
|
-
return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (n = (a =
|
|
1023
|
+
const e = (r = $.value) == null ? void 0 : r.some((o) => o == null ? void 0 : o.filterable);
|
|
1024
|
+
return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (n = (a = $.value) == null ? void 0 : a.filter((o) => (o == null ? void 0 : o.label) !== "操作")) == null ? void 0 : n.map((o) => ({
|
|
1025
1025
|
...o,
|
|
1026
1026
|
filterable: !!(o != null && o.filterable),
|
|
1027
1027
|
showSummary: !!(o != null && o.showSummary),
|
|
1028
1028
|
operable: !!(o != null && o.operable)
|
|
1029
1029
|
}));
|
|
1030
1030
|
}), Er = async (e, l, r) => {
|
|
1031
|
-
const a = J(
|
|
1032
|
-
await oa(),
|
|
1031
|
+
const a = J($.value);
|
|
1032
|
+
await oa(), $.value = a == null ? void 0 : a.map((n) => (r == null ? void 0 : r.label) === (n == null ? void 0 : n.label) ? {
|
|
1033
1033
|
...n,
|
|
1034
1034
|
[l]: e
|
|
1035
|
-
} : n), await
|
|
1035
|
+
} : n), await aa(l, r, e);
|
|
1036
1036
|
}, fa = async (e, l) => {
|
|
1037
|
-
await
|
|
1037
|
+
await aa(l, null, e, !0);
|
|
1038
1038
|
}, Or = () => {
|
|
1039
1039
|
ul.value = !1;
|
|
1040
1040
|
}, Dr = (e) => {
|
|
1041
1041
|
te("clickTrigger", e);
|
|
1042
1042
|
}, ga = async (e) => {
|
|
1043
|
-
var o, d, c, p, b, s,
|
|
1043
|
+
var o, d, c, p, b, s, x, w, y, O, A, S, N, T, j;
|
|
1044
1044
|
let l, r, a;
|
|
1045
1045
|
if (typeof e == "string" ? (l = e, r = null, a = null) : (l = e == null ? void 0 : e.row, r = e == null ? void 0 : e.rowData, a = e == null ? void 0 : e.suffix), (o = l == null ? void 0 : l.toString()) != null && o.includes(".urdf") || e != null && e.isUrdf || a != null && a.includes(".urdf")) {
|
|
1046
1046
|
if (l.includes(",")) {
|
|
1047
|
-
|
|
1047
|
+
we.error("当前版本仅允许单个urdf预览!");
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
1050
|
El.value = [l], We.value = !0, bl.value = {
|
|
@@ -1057,20 +1057,20 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1057
1057
|
El.value = (s = l == null ? void 0 : l.toString()) == null ? void 0 : s.split(","), We.value = !1, ll.value = !0;
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
|
-
if ((
|
|
1060
|
+
if ((x = l == null ? void 0 : l.toString()) != null && x.includes(".stl") || (w = l == null ? void 0 : l.toString()) != null && w.includes(".STL") || (y = l == null ? void 0 : l.toString()) != null && y.includes(".obj") || (O = l == null ? void 0 : l.toString()) != null && O.includes(".mtl") || a != null && a.includes(".stl") || a != null && a.includes(".STL") || a != null && a.includes(".obj") || a != null && a.includes(".mtl")) {
|
|
1061
1061
|
let m, f = [], g = {};
|
|
1062
1062
|
if (Array.isArray(l) ? m = l : m = l == null ? void 0 : l.split(","), m == null || m.forEach((i) => {
|
|
1063
1063
|
i.includes(".mtl") ? f.push(i) : g.blob = g.blob ? g.blob + "," + i : i;
|
|
1064
|
-
}), (f == null ? void 0 : f.length) > 0 && (g.mtlBlobs = f), a && (g.suffix = a), (S = (
|
|
1064
|
+
}), (f == null ? void 0 : f.length) > 0 && (g.mtlBlobs = f), a && (g.suffix = a), (S = (A = Object.values(g)) == null ? void 0 : A[0]) != null && S.includes("http:"))
|
|
1065
1065
|
n.push(g);
|
|
1066
1066
|
else {
|
|
1067
1067
|
const i = new Blob([g.blob], {
|
|
1068
1068
|
type: "application/octet-stream;charset=UTF-8"
|
|
1069
1069
|
});
|
|
1070
1070
|
let v = URL.createObjectURL(i), B = "";
|
|
1071
|
-
(N = l == null ? void 0 : l.split("/")) == null || N.forEach((
|
|
1071
|
+
(N = l == null ? void 0 : l.split("/")) == null || N.forEach((_, X) => {
|
|
1072
1072
|
var ne;
|
|
1073
|
-
|
|
1073
|
+
X === ((ne = l == null ? void 0 : l.split("/")) == null ? void 0 : ne.length) - 1 && (B = _);
|
|
1074
1074
|
}), (T = g.blob) != null && T.includes(".stl") && (B = (B == null ? void 0 : B.replaceAll(">", "")) + ".urdf"), k.value = [{
|
|
1075
1075
|
name: B,
|
|
1076
1076
|
blobUrl: v
|
|
@@ -1087,15 +1087,15 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1087
1087
|
});
|
|
1088
1088
|
let g = URL.createObjectURL(f), i = "";
|
|
1089
1089
|
(j = l == null ? void 0 : l.split("/")) == null || j.forEach((v, B) => {
|
|
1090
|
-
var
|
|
1091
|
-
B === ((
|
|
1090
|
+
var _;
|
|
1091
|
+
B === ((_ = l == null ? void 0 : l.split("/")) == null ? void 0 : _.length) - 1 && (i = v);
|
|
1092
1092
|
}), k.value = [{
|
|
1093
1093
|
name: i,
|
|
1094
1094
|
blobUrl: g
|
|
1095
1095
|
}], Me.value = !0;
|
|
1096
1096
|
}
|
|
1097
1097
|
(n == null ? void 0 : n.length) > 0 && K.setBlobUrls(n);
|
|
1098
|
-
},
|
|
1098
|
+
}, ra = (e) => {
|
|
1099
1099
|
var a, n, o, d;
|
|
1100
1100
|
if (e != null && e.downloadUrl)
|
|
1101
1101
|
return e == null ? void 0 : e.name;
|
|
@@ -1104,7 +1104,7 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1104
1104
|
}, Lr = async (e) => {
|
|
1105
1105
|
let l = null, r = null, a = null;
|
|
1106
1106
|
if (e != null && e.downloadUrl) {
|
|
1107
|
-
const o = await
|
|
1107
|
+
const o = await ya(), d = Cn.service({
|
|
1108
1108
|
lock: !0,
|
|
1109
1109
|
text: "Loading",
|
|
1110
1110
|
background: "rgba(0, 0, 0, 0.7)"
|
|
@@ -1125,10 +1125,10 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1125
1125
|
const b = r == null ? void 0 : r.lastIndexOf(".");
|
|
1126
1126
|
a = r == null ? void 0 : r.slice(b);
|
|
1127
1127
|
} else {
|
|
1128
|
-
const o = await
|
|
1128
|
+
const o = await ma({
|
|
1129
1129
|
url: e == null ? void 0 : e.url
|
|
1130
1130
|
});
|
|
1131
|
-
!e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (l = URL.createObjectURL(o.data), r =
|
|
1131
|
+
!e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (l = URL.createObjectURL(o.data), r = ra(e)) : l = e == null ? void 0 : e.url;
|
|
1132
1132
|
}
|
|
1133
1133
|
if (a != null && a.includes(".urdf") || a != null && a.includes(".stl") || a != null && a.includes(".STL") || a != null && a.includes(".obj") || a != null && a.includes(".mtl")) {
|
|
1134
1134
|
const o = {
|
|
@@ -1146,7 +1146,7 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1146
1146
|
}, jr = async (e) => {
|
|
1147
1147
|
let l = null, r = null;
|
|
1148
1148
|
if (e != null && e.downloadUrl) {
|
|
1149
|
-
const o = await
|
|
1149
|
+
const o = await ya(), d = await Ul.post(e == null ? void 0 : e.url, null, {
|
|
1150
1150
|
responseType: "blob",
|
|
1151
1151
|
// 必须设置
|
|
1152
1152
|
headers: {
|
|
@@ -1159,10 +1159,10 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1159
1159
|
});
|
|
1160
1160
|
l = URL.createObjectURL(c), r = e == null ? void 0 : e.name;
|
|
1161
1161
|
} else {
|
|
1162
|
-
const o = await
|
|
1162
|
+
const o = await ma({
|
|
1163
1163
|
url: e == null ? void 0 : e.url
|
|
1164
1164
|
});
|
|
1165
|
-
l = URL.createObjectURL(o.data), r =
|
|
1165
|
+
l = URL.createObjectURL(o.data), r = ra(e);
|
|
1166
1166
|
}
|
|
1167
1167
|
const a = {
|
|
1168
1168
|
name: r,
|
|
@@ -1171,75 +1171,75 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1171
1171
|
n.href = a.blobUrl, n.download = a.name, n.style.display = "none", document.body.appendChild(n), n.click(), setTimeout(() => {
|
|
1172
1172
|
document.body.removeChild(n);
|
|
1173
1173
|
}, 100);
|
|
1174
|
-
},
|
|
1174
|
+
}, $r = (e, l) => {
|
|
1175
1175
|
var r;
|
|
1176
1176
|
if (Object.values(l).length !== 0)
|
|
1177
1177
|
return Object.values(l).find((a) => {
|
|
1178
1178
|
var n, o, d;
|
|
1179
1179
|
return ((n = a == null ? void 0 : a.toString()) == null ? void 0 : n.includes(".txt")) || ((o = a == null ? void 0 : a.toString()) == null ? void 0 : o.includes(".cpt")) || ((d = a == null ? void 0 : a.toString()) == null ? void 0 : d.includes(".obj"));
|
|
1180
1180
|
}) ? [...e, cr.value] : (r = u == null ? void 0 : u.config) != null && r.allowMove ? [...e, { label: "迁移" }] : e;
|
|
1181
|
-
},
|
|
1181
|
+
}, Pr = (e, l = {}) => [...e == null ? void 0 : e.values()].filter((r) => Object.keys(l).every((a) => {
|
|
1182
1182
|
var d;
|
|
1183
1183
|
const n = r[a], o = (d = l[a]) == null ? void 0 : d.toLowerCase();
|
|
1184
1184
|
return o && n && typeof n == "string" ? n.toLowerCase().includes(o) : !0;
|
|
1185
|
-
})),
|
|
1185
|
+
})), Ea = R([]), wr = async (e, l, r = !1) => {
|
|
1186
1186
|
var a;
|
|
1187
1187
|
if (e) {
|
|
1188
|
-
if (je.setTableLoading(!0),
|
|
1189
|
-
return I.value =
|
|
1188
|
+
if (je.setTableLoading(!0), Ea.value = Object.values(e), e && ((a = Object.values(e)) != null && a.every((n) => !n)))
|
|
1189
|
+
return I.value = Ql.value;
|
|
1190
1190
|
if (r) {
|
|
1191
|
-
I.value = [...
|
|
1191
|
+
I.value = [...Hl.value.values()].filter((n) => Object.values(n).some((o) => typeof o == "string" ? o == null ? void 0 : o.toLowerCase().includes(l == null ? void 0 : l.toLowerCase()) : !1));
|
|
1192
1192
|
return;
|
|
1193
1193
|
}
|
|
1194
|
-
I.value =
|
|
1194
|
+
I.value = Pr(Hl.value, e), je.setTableLoading(!1);
|
|
1195
1195
|
}
|
|
1196
1196
|
}, Kr = async (e) => {
|
|
1197
|
-
var d, c, p, b, s,
|
|
1198
|
-
const l = await
|
|
1197
|
+
var d, c, p, b, s, x, w, y, O, A, S, N, T, j, m;
|
|
1198
|
+
const l = await Rl({
|
|
1199
1199
|
keyLikes: {
|
|
1200
|
-
pageKey: `loading${((d =
|
|
1200
|
+
pageKey: `loading${((d = ve.value) == null ? void 0 : d.account) || ((c = ve.value) == null ? void 0 : c.账号)}`,
|
|
1201
1201
|
systemKey: sessionStorage.getItem("systemKey")
|
|
1202
1202
|
}
|
|
1203
|
-
}), r = await
|
|
1203
|
+
}), r = await Rl({
|
|
1204
1204
|
keyLikes: {
|
|
1205
|
-
pageKey: `updateLoading${((p =
|
|
1205
|
+
pageKey: `updateLoading${((p = ve.value) == null ? void 0 : p.account) || ((b = ve.value) == null ? void 0 : b.账号)}`,
|
|
1206
1206
|
systemKey: sessionStorage.getItem("systemKey")
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
|
-
let a = (
|
|
1209
|
+
let a = (x = (s = l == null ? void 0 : l.data) == null ? void 0 : s.result) == null ? void 0 : x.map((f) => f == null ? void 0 : f.id);
|
|
1210
1210
|
const n = (y = (w = r == null ? void 0 : r.data) == null ? void 0 : w.result) == null ? void 0 : y.map((f) => f == null ? void 0 : f.id);
|
|
1211
|
-
a = [...J(a), ...n], (a == null ? void 0 : a.length) > 0 && (a != null && a.every((f) => f !== null && f)) && await
|
|
1211
|
+
a = [...J(a), ...n], (a == null ? void 0 : a.length) > 0 && (a != null && a.every((f) => f !== null && f)) && await ka({
|
|
1212
1212
|
ids: a
|
|
1213
1213
|
});
|
|
1214
1214
|
let o = await qe(Q.value, sessionStorage.getItem("systemKey"), e.id);
|
|
1215
1215
|
if (o = o == null ? void 0 : o.filter((f) => f.comp !== "methodButton"), o && o.length > 0) {
|
|
1216
|
-
const f = !Array.isArray(pa.value) && ((
|
|
1216
|
+
const f = !Array.isArray(pa.value) && ((O = pa.value) == null ? void 0 : O.key) !== "main" ? [] : pa.value;
|
|
1217
1217
|
f.push({
|
|
1218
|
-
key: il.value === "" ? (
|
|
1218
|
+
key: il.value === "" ? (A = e == null ? void 0 : e.id) == null ? void 0 : A.toString() : il.value + "-" + ((S = e == null ? void 0 : e.id) == null ? void 0 : S.toString()),
|
|
1219
1219
|
value: e[(N = Object.keys(e)) == null ? void 0 : N.filter((g) => g !== "index" && g !== "id")[0]]
|
|
1220
|
-
}),
|
|
1220
|
+
}), Il.setSelectMenu(il.value === "" ? (T = e == null ? void 0 : e.id) == null ? void 0 : T.toString() : il.value + "-" + ((j = e == null ? void 0 : e.id) == null ? void 0 : j.toString())), Il.setSelectTitle(f), Il.setSelectIndex((m = e == null ? void 0 : e.id) == null ? void 0 : m.toString()), te("pageChange", o);
|
|
1221
1221
|
}
|
|
1222
|
-
},
|
|
1223
|
-
var o, d, c, p, b, s,
|
|
1222
|
+
}, Oa = async (e, l, r, a) => {
|
|
1223
|
+
var o, d, c, p, b, s, x, w, y, O, A, S, N, T, j, m, f, g, i, v, B, _, X, ne, V;
|
|
1224
1224
|
if (te("clickMainKey", r), (a == null ? void 0 : a.isExistChild) === !0) {
|
|
1225
|
-
let W = (d = (o =
|
|
1225
|
+
let W = (d = (o = $.value) == null ? void 0 : o.find((z) => (z == null ? void 0 : z.isMainKey) === !0)) == null ? void 0 : d.prop, Y = (c = a == null ? void 0 : a.rowContent) == null ? void 0 : c[W], C = (b = (p = a == null ? void 0 : a.columnType) == null ? void 0 : p.childPath) == null ? void 0 : b.split(re), P = [];
|
|
1226
1226
|
C == null || C.forEach((z, t) => {
|
|
1227
|
-
(C == null ? void 0 : C.length) - 1 === t &&
|
|
1228
|
-
}),
|
|
1229
|
-
let F = await qe(
|
|
1227
|
+
(C == null ? void 0 : C.length) - 1 === t && P.push(Y), P.push(z);
|
|
1228
|
+
}), P = P.join(re);
|
|
1229
|
+
let F = await qe(P, sessionStorage.getItem("systemKey"), ""), le = await qe((s = a == null ? void 0 : a.columnType) == null ? void 0 : s.childPath, sessionStorage.getItem("systemKey"), "");
|
|
1230
1230
|
if (!F || (F == null ? void 0 : F.length) === 0) {
|
|
1231
1231
|
let z = [];
|
|
1232
1232
|
le == null || le.forEach((M) => {
|
|
1233
|
-
var me, pe,
|
|
1233
|
+
var me, pe, U, h;
|
|
1234
1234
|
let E = {
|
|
1235
1235
|
type: "structure",
|
|
1236
|
-
pageKey:
|
|
1236
|
+
pageKey: P,
|
|
1237
1237
|
version: 1,
|
|
1238
1238
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1239
1239
|
parentTable: "",
|
|
1240
|
-
createUserId: (me =
|
|
1240
|
+
createUserId: (me = ve.value) == null ? void 0 : me.id,
|
|
1241
1241
|
parentPageKey: "",
|
|
1242
|
-
createUserLayer: ((pe =
|
|
1242
|
+
createUserLayer: ((pe = ve.value) == null ? void 0 : pe.dept) || ((U = ve.value) == null ? void 0 : U.部门名称)
|
|
1243
1243
|
}, oe = {
|
|
1244
1244
|
pageData: {
|
|
1245
1245
|
comp: M == null ? void 0 : M.comp,
|
|
@@ -1255,56 +1255,56 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1255
1255
|
}), (z == null ? void 0 : z.length) > 0 && await sa({
|
|
1256
1256
|
dataList: z
|
|
1257
1257
|
});
|
|
1258
|
-
let t = await qe(
|
|
1259
|
-
|
|
1258
|
+
let t = await qe(P, sessionStorage.getItem("systemKey"), "");
|
|
1259
|
+
la.value = t;
|
|
1260
1260
|
} else {
|
|
1261
1261
|
let z = le == null ? void 0 : le.map((t) => {
|
|
1262
1262
|
var M, E;
|
|
1263
1263
|
return (t == null ? void 0 : t.comp) === "Form" ? t.compData = (M = t.compData) == null ? void 0 : M.map((oe) => {
|
|
1264
1264
|
var me;
|
|
1265
1265
|
return (oe == null ? void 0 : oe.key) === "formContent" && (oe.contents = (me = oe == null ? void 0 : oe.contents) == null ? void 0 : me.map((pe) => {
|
|
1266
|
-
var h, ce, de,
|
|
1267
|
-
let
|
|
1268
|
-
return pe.value =
|
|
1266
|
+
var h, ce, de, ge, Ce;
|
|
1267
|
+
let U = (Ce = (ge = (de = (ce = (h = F == null ? void 0 : F.find((xe) => (xe == null ? void 0 : xe.name) === (t == null ? void 0 : t.name))) == null ? void 0 : h.compData) == null ? void 0 : ce.find((xe) => (xe == null ? void 0 : xe.key) === "formContent")) == null ? void 0 : de.contents) == null ? void 0 : ge.find((xe) => (xe == null ? void 0 : xe.prop) === (pe == null ? void 0 : pe.prop))) == null ? void 0 : Ce.value;
|
|
1268
|
+
return pe.value = U, pe;
|
|
1269
1269
|
})), oe;
|
|
1270
1270
|
}) : t = F == null ? void 0 : F.find((oe) => (oe == null ? void 0 : oe.name) === (t == null ? void 0 : t.name)), t.id = (E = F == null ? void 0 : F.find((oe) => (oe == null ? void 0 : oe.name) === (t == null ? void 0 : t.name))) == null ? void 0 : E.id, t;
|
|
1271
1271
|
});
|
|
1272
|
-
|
|
1272
|
+
la.value = z;
|
|
1273
1273
|
}
|
|
1274
|
-
te("routeUrl",
|
|
1274
|
+
te("routeUrl", la.value, {
|
|
1275
1275
|
isEdit: !0,
|
|
1276
|
-
routerUrl:
|
|
1276
|
+
routerUrl: P
|
|
1277
1277
|
});
|
|
1278
1278
|
return;
|
|
1279
1279
|
}
|
|
1280
1280
|
if ((a == null ? void 0 : a.data) === "查看" && (e != null && e.every((W) => (W == null ? void 0 : W.url) && (W == null ? void 0 : W.name)))) {
|
|
1281
1281
|
let W = J(e);
|
|
1282
|
-
W = await ((
|
|
1282
|
+
W = await ((x = J(W)) == null ? void 0 : x.map(async (C) => {
|
|
1283
1283
|
var le, z, t, M;
|
|
1284
|
-
const
|
|
1284
|
+
const P = await ma({
|
|
1285
1285
|
url: C == null ? void 0 : C.url
|
|
1286
1286
|
});
|
|
1287
|
-
let F = URL.createObjectURL(
|
|
1287
|
+
let F = URL.createObjectURL(P.data);
|
|
1288
1288
|
return {
|
|
1289
1289
|
name: (C == null ? void 0 : C.name) + "." + ((M = (le = C == null ? void 0 : C.url) == null ? void 0 : le.split(".")) == null ? void 0 : M[((t = (z = C == null ? void 0 : C.url) == null ? void 0 : z.split(".")) == null ? void 0 : t.length) - 1]),
|
|
1290
1290
|
blobUrl: F
|
|
1291
1291
|
};
|
|
1292
1292
|
}));
|
|
1293
|
-
let
|
|
1294
|
-
k.value =
|
|
1293
|
+
let Y = await Promise.all(W);
|
|
1294
|
+
k.value = Y, Me.value = !0;
|
|
1295
1295
|
}
|
|
1296
|
-
const n = J(
|
|
1296
|
+
const n = J($.value);
|
|
1297
1297
|
if ((a == null ? void 0 : a.isMainKey) === !0 && (n == null ? void 0 : n.length) > 0) {
|
|
1298
1298
|
(w = n == null ? void 0 : n[0]) == null || w.prop;
|
|
1299
|
-
let W = J(Q).value + re + (a == null ? void 0 : a.data),
|
|
1299
|
+
let W = J(Q).value + re + (a == null ? void 0 : a.data), Y = J(Q).value, C = (O = (y = pl.value[W]) == null ? void 0 : y.filter((z) => {
|
|
1300
1300
|
var t, M;
|
|
1301
1301
|
return ((t = z == null ? void 0 : z.key) == null ? void 0 : t.type) === "structure" && ((M = z == null ? void 0 : z.key) == null ? void 0 : M.parentTable) === "";
|
|
1302
|
-
})) == null ? void 0 :
|
|
1302
|
+
})) == null ? void 0 : O.map((z) => {
|
|
1303
1303
|
var t;
|
|
1304
1304
|
return (t = z == null ? void 0 : z.value) == null ? void 0 : t.pageData;
|
|
1305
|
-
}),
|
|
1306
|
-
(
|
|
1307
|
-
(z == null ? void 0 : z.label) !== "操作" && (
|
|
1305
|
+
}), P = {};
|
|
1306
|
+
(A = $.value) == null || A.forEach((z) => {
|
|
1307
|
+
(z == null ? void 0 : z.label) !== "操作" && (P[z.label] = r[z.prop] ?? r[z.label]);
|
|
1308
1308
|
});
|
|
1309
1309
|
let F = (N = (S = u == null ? void 0 : u.itemData) == null ? void 0 : S.find((z) => (z == null ? void 0 : z.key) === "mainRouters")) == null ? void 0 : N.contents, le;
|
|
1310
1310
|
if ((F == null ? void 0 : F.length) > 0) {
|
|
@@ -1312,11 +1312,11 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1312
1312
|
le = (t == null ? void 0 : t.routerContent) + re + (t == null ? void 0 : t.key);
|
|
1313
1313
|
}
|
|
1314
1314
|
if ((C == null ? void 0 : C.length) > 0)
|
|
1315
|
-
await qe(W + re + `updateLoading${((j =
|
|
1315
|
+
await qe(W + re + `updateLoading${((j = ve.value) == null ? void 0 : j.account) || ((m = ve.value) == null ? void 0 : m.账号)}`, sessionStorage.getItem("systemKey"), "") || await ua(W, W + re + `updateLoading${((f = ve.value) == null ? void 0 : f.account) || ((g = ve.value) == null ? void 0 : g.账号)}`, P, le), je.setRouteToChildPath(Y), he.setActiveMenuPath(W + re + `updateLoading${((i = ve.value) == null ? void 0 : i.account) || ((v = ve.value) == null ? void 0 : v.账号)}`);
|
|
1316
1316
|
else {
|
|
1317
1317
|
(B = n == null ? void 0 : n[0]) == null || B.prop;
|
|
1318
1318
|
let z = J(Q).value + re + (a == null ? void 0 : a.data), t = J(Q).value;
|
|
1319
|
-
await qe(t + re, sessionStorage.getItem("systemKey"), ""), await ua(t + re, z,
|
|
1319
|
+
await qe(t + re, sessionStorage.getItem("systemKey"), ""), await ua(t + re, z, P), await ua(z, z + re + `updateLoading${((_ = ve.value) == null ? void 0 : _.account) || ((X = ve.value) == null ? void 0 : X.账号)}`, P, le), je.setRouteToChildPath(t), he.setActiveMenuPath(z + re + `updateLoading${((ne = ve.value) == null ? void 0 : ne.account) || ((V = ve.value) == null ? void 0 : V.账号)}`);
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
}, Br = () => {
|
|
@@ -1353,27 +1353,27 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1353
1353
|
}, Fr = async () => {
|
|
1354
1354
|
const e = Q.value, l = sessionStorage.getItem("systemKey"), r = await qe(e, l, ""), a = r == null ? void 0 : r.find((c) => (c == null ? void 0 : c.name) === "方法明细"), n = (a == null ? void 0 : a.compData) || [], o = n == null ? void 0 : n.find((c) => (c == null ? void 0 : c.key) === "formContent");
|
|
1355
1355
|
return o == null ? void 0 : o.contents;
|
|
1356
|
-
},
|
|
1356
|
+
}, ya = async () => `Bearer ${Tn.get("access-token")}`, zr = async (e, { token: l, inputData: r } = {}) => await Ul.post(e, r, {
|
|
1357
1357
|
headers: {
|
|
1358
1358
|
Authorization: l
|
|
1359
1359
|
}
|
|
1360
|
-
}).catch((n) => (
|
|
1360
|
+
}).catch((n) => (he.setImportLoading(!1), Promise.reject(n))), Jr = (e) => {
|
|
1361
1361
|
var a;
|
|
1362
1362
|
let l = {};
|
|
1363
1363
|
const r = [];
|
|
1364
1364
|
return l.form = {}, (a = J(e)) == null || a.forEach((n, o) => {
|
|
1365
|
-
var d, c, p, b, s,
|
|
1365
|
+
var d, c, p, b, s, x, w, y, O, A, S, N, T, j;
|
|
1366
1366
|
if ((n == null ? void 0 : n.comp) === "Table") {
|
|
1367
1367
|
(c = (d = n == null ? void 0 : n.compData) == null ? void 0 : d.find((i) => (i == null ? void 0 : i.key) === "header")) == null || c.contents;
|
|
1368
1368
|
let m = (s = (b = (p = n == null ? void 0 : n.compData) == null ? void 0 : p.find((i) => (i == null ? void 0 : i.key) === "tableContents")) == null ? void 0 : b.contents) == null ? void 0 : s.map((i) => i.slice(1));
|
|
1369
|
-
(
|
|
1369
|
+
(A = (O = (y = (w = (x = n == null ? void 0 : n.compData) == null ? void 0 : x.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : w.contents) == null ? void 0 : y[0]) == null ? void 0 : O[0]) == null || A.label;
|
|
1370
1370
|
let f = (N = (S = n == null ? void 0 : n.compData) == null ? void 0 : S.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : N.contents, g = [];
|
|
1371
1371
|
m == null || m.forEach((i) => {
|
|
1372
1372
|
let v = [];
|
|
1373
|
-
i == null || i.forEach((B,
|
|
1373
|
+
i == null || i.forEach((B, _) => {
|
|
1374
1374
|
var ne;
|
|
1375
|
-
let
|
|
1376
|
-
((ne = f[
|
|
1375
|
+
let X = {};
|
|
1376
|
+
((ne = f[_]) == null ? void 0 : ne.label) !== "操作" && (X[f[_].label] = B, v.push(X));
|
|
1377
1377
|
}), g.push(v);
|
|
1378
1378
|
}), l[n.name] = g;
|
|
1379
1379
|
} else {
|
|
@@ -1389,60 +1389,60 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
});
|
|
1391
1391
|
}
|
|
1392
|
-
}), l.form =
|
|
1392
|
+
}), l.form = Jn(r), l;
|
|
1393
1393
|
};
|
|
1394
|
-
let
|
|
1394
|
+
let na = null;
|
|
1395
1395
|
const Rr = () => {
|
|
1396
|
-
|
|
1397
|
-
},
|
|
1398
|
-
clearInterval(
|
|
1396
|
+
he.setLoadingPercent(0);
|
|
1397
|
+
}, Da = () => {
|
|
1398
|
+
clearInterval(na), na = null;
|
|
1399
1399
|
}, Wr = () => {
|
|
1400
|
-
|
|
1400
|
+
Da(), Rr();
|
|
1401
1401
|
}, Ll = () => {
|
|
1402
|
-
|
|
1402
|
+
he.setImportLoading(!1), Wr();
|
|
1403
1403
|
}, Gr = () => {
|
|
1404
|
-
|
|
1405
|
-
const e =
|
|
1404
|
+
na = setInterval(() => {
|
|
1405
|
+
const e = he.getLoadingPercent();
|
|
1406
1406
|
if (e == 99) {
|
|
1407
|
-
|
|
1407
|
+
Da();
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
|
-
|
|
1410
|
+
he.setLoadingPercent(e + 1);
|
|
1411
1411
|
}, 100);
|
|
1412
1412
|
}, qr = async (e, l, r) => {
|
|
1413
|
-
var B,
|
|
1414
|
-
|
|
1413
|
+
var B, _, X, ne, V, W, Y, C, P, F, le, z;
|
|
1414
|
+
he.setImportLoading(!0, zn.PROGRESS), na || Gr();
|
|
1415
1415
|
const a = await Fr().catch((t) => (Ll(), Promise.reject(t))), n = a == null ? void 0 : a.find((t) => (t == null ? void 0 : t.key) === "算法体"), o = n == null ? void 0 : n.value;
|
|
1416
1416
|
if (!o) {
|
|
1417
1417
|
console.log("未搜索到isMain, 缺少算法执行接口"), Ll();
|
|
1418
1418
|
return;
|
|
1419
1419
|
}
|
|
1420
|
-
const d =
|
|
1420
|
+
const d = $.value || [], c = d.find((t) => (t == null ? void 0 : t.prop) === "输入"), p = c == null ? void 0 : c.prop;
|
|
1421
1421
|
let b = l == null ? void 0 : l[p];
|
|
1422
|
-
const s = await
|
|
1423
|
-
let
|
|
1424
|
-
(B =
|
|
1425
|
-
(t == null ? void 0 : t.prop) === p && (
|
|
1422
|
+
const s = await ya().catch((t) => (Ll(), Promise.reject(t)));
|
|
1423
|
+
let x = !1, w = "";
|
|
1424
|
+
(B = $.value) == null || B.forEach((t) => {
|
|
1425
|
+
(t == null ? void 0 : t.prop) === p && (x = !!(t != null && t.childPath), w = t == null ? void 0 : t.childPath);
|
|
1426
1426
|
});
|
|
1427
|
-
let y = "",
|
|
1428
|
-
if (
|
|
1429
|
-
let t = (
|
|
1430
|
-
|
|
1427
|
+
let y = "", O = "";
|
|
1428
|
+
if (x) {
|
|
1429
|
+
let t = (X = (_ = $.value) == null ? void 0 : _.find((me) => (me == null ? void 0 : me.isMainKey) === !0)) == null ? void 0 : X.prop;
|
|
1430
|
+
O = l == null ? void 0 : l[t];
|
|
1431
1431
|
let M = w == null ? void 0 : w.split(re), E = [];
|
|
1432
1432
|
M == null || M.forEach((me, pe) => {
|
|
1433
|
-
(M == null ? void 0 : M.length) - 1 === pe && E.push(
|
|
1433
|
+
(M == null ? void 0 : M.length) - 1 === pe && E.push(O), E.push(me);
|
|
1434
1434
|
}), E = E.join(re), y = E;
|
|
1435
1435
|
let oe = await qe(E, sessionStorage.getItem("systemKey"), "");
|
|
1436
1436
|
b = Jr(oe);
|
|
1437
1437
|
}
|
|
1438
|
-
const
|
|
1438
|
+
const A = await zr(o, {
|
|
1439
1439
|
token: s,
|
|
1440
1440
|
inputData: b
|
|
1441
|
-
}).catch((t) => (Ll(), Promise.reject(t))), S = (ne =
|
|
1441
|
+
}).catch((t) => (Ll(), Promise.reject(t))), S = (ne = A == null ? void 0 : A.data) == null ? void 0 : ne.data, N = a == null ? void 0 : a.find((t) => (t == null ? void 0 : t.prop) === "算法名称");
|
|
1442
1442
|
N == null || N.value;
|
|
1443
1443
|
const T = d.find((t) => (t == null ? void 0 : t.prop) === "输出"), j = T == null ? void 0 : T.directiveLabel;
|
|
1444
1444
|
y = y == null ? void 0 : y.replaceAll(c == null ? void 0 : c.directiveLabel, j);
|
|
1445
|
-
const m = (V = J(y)) == null ? void 0 : V.replaceAll(re +
|
|
1445
|
+
const m = (V = J(y)) == null ? void 0 : V.replaceAll(re + O, "");
|
|
1446
1446
|
let f = await qe(y, sessionStorage.getItem("systemKey"), ""), g = await qe(m, sessionStorage.getItem("systemKey"), "");
|
|
1447
1447
|
if (f) {
|
|
1448
1448
|
let t = [], M = [];
|
|
@@ -1450,19 +1450,19 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1450
1450
|
var oe, me;
|
|
1451
1451
|
if ((E == null ? void 0 : E.comp) === "Table")
|
|
1452
1452
|
(oe = E == null ? void 0 : E.compData) == null || oe.forEach((pe) => {
|
|
1453
|
-
var
|
|
1454
|
-
(pe == null ? void 0 : pe.key) === "tableContents" && ((
|
|
1453
|
+
var U;
|
|
1454
|
+
(pe == null ? void 0 : pe.key) === "tableContents" && ((U = pe == null ? void 0 : pe.contents) == null || U.forEach((h) => {
|
|
1455
1455
|
var ce, de;
|
|
1456
1456
|
(ce = h == null ? void 0 : h[0]) != null && ce.id && t.push((de = h == null ? void 0 : h[0]) == null ? void 0 : de.id);
|
|
1457
1457
|
}));
|
|
1458
1458
|
});
|
|
1459
1459
|
else if ((E == null ? void 0 : E.comp) === "Form") {
|
|
1460
|
-
E.compData = (me = E == null ? void 0 : E.compData) == null ? void 0 : me.map((
|
|
1460
|
+
E.compData = (me = E == null ? void 0 : E.compData) == null ? void 0 : me.map((U) => {
|
|
1461
1461
|
var h;
|
|
1462
|
-
return (
|
|
1463
|
-
var de,
|
|
1464
|
-
return (de = S == null ? void 0 : S.form) != null && de[ce.prop] && (ce.value = (
|
|
1465
|
-
})),
|
|
1462
|
+
return (U == null ? void 0 : U.key) === "formContent" && (U.contents = (h = U == null ? void 0 : U.contents) == null ? void 0 : h.map((ce) => {
|
|
1463
|
+
var de, ge;
|
|
1464
|
+
return (de = S == null ? void 0 : S.form) != null && de[ce.prop] && (ce.value = (ge = S == null ? void 0 : S.form) == null ? void 0 : ge[ce.prop]), ce;
|
|
1465
|
+
})), U;
|
|
1466
1466
|
});
|
|
1467
1467
|
let pe = {
|
|
1468
1468
|
pageData: {
|
|
@@ -1477,9 +1477,9 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1477
1477
|
value: pe
|
|
1478
1478
|
});
|
|
1479
1479
|
}
|
|
1480
|
-
}), (M == null ? void 0 : M.length) > 0 && await
|
|
1480
|
+
}), (M == null ? void 0 : M.length) > 0 && await kn({
|
|
1481
1481
|
dataList: M
|
|
1482
|
-
}), t = [...new Set(t)], (t == null ? void 0 : t.length) > 0 && await
|
|
1482
|
+
}), t = [...new Set(t)], (t == null ? void 0 : t.length) > 0 && await ka({
|
|
1483
1483
|
ids: t
|
|
1484
1484
|
});
|
|
1485
1485
|
} else {
|
|
@@ -1490,8 +1490,8 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1490
1490
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1491
1491
|
pageKey: y,
|
|
1492
1492
|
parentTable: "",
|
|
1493
|
-
createUserId: (W =
|
|
1494
|
-
createUserOrg: ((
|
|
1493
|
+
createUserId: (W = ve.value) == null ? void 0 : W.id,
|
|
1494
|
+
createUserOrg: ((Y = ve.value) == null ? void 0 : Y.dept) || ((C = ve.value) == null ? void 0 : C.部门名称)
|
|
1495
1495
|
};
|
|
1496
1496
|
g == null || g.forEach((E) => {
|
|
1497
1497
|
let me = {
|
|
@@ -1514,17 +1514,17 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1514
1514
|
pageKey: y,
|
|
1515
1515
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1516
1516
|
parentTable: "",
|
|
1517
|
-
createUserId: (
|
|
1517
|
+
createUserId: (P = ve.value) == null ? void 0 : P.id,
|
|
1518
1518
|
parentPageKey: "",
|
|
1519
|
-
createUserLayer: ((F =
|
|
1519
|
+
createUserLayer: ((F = ve.value) == null ? void 0 : F.dept) || ((le = ve.value) == null ? void 0 : le.部门名称)
|
|
1520
1520
|
};
|
|
1521
1521
|
g == null || g.forEach((E) => {
|
|
1522
|
-
var
|
|
1523
|
-
let oe = (
|
|
1522
|
+
var U;
|
|
1523
|
+
let oe = (U = E == null ? void 0 : E.compData) == null ? void 0 : U.map((h) => {
|
|
1524
1524
|
var ce;
|
|
1525
1525
|
return (h == null ? void 0 : h.key) === "formContent" && (h.contents = (ce = h.contents) == null ? void 0 : ce.map((de) => {
|
|
1526
|
-
var
|
|
1527
|
-
return (
|
|
1526
|
+
var ge, Ce;
|
|
1527
|
+
return (ge = S == null ? void 0 : S.form) != null && ge[de.prop] && (de.value = (Ce = S == null ? void 0 : S.form) == null ? void 0 : Ce[de.prop]), de;
|
|
1528
1528
|
})), h;
|
|
1529
1529
|
}), pe = {
|
|
1530
1530
|
pageData: {
|
|
@@ -1546,14 +1546,14 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
let i = await qe(y, sessionStorage.getItem("systemKey"), ""), v = [];
|
|
1548
1548
|
S != null && S.table && ((z = S == null ? void 0 : S.table) == null || z.forEach((t) => {
|
|
1549
|
-
var oe, me, pe,
|
|
1549
|
+
var oe, me, pe, U;
|
|
1550
1550
|
let M = {
|
|
1551
1551
|
type: "data",
|
|
1552
1552
|
pageKey: y,
|
|
1553
1553
|
tableId: (oe = i == null ? void 0 : i[0]) == null ? void 0 : oe.id,
|
|
1554
1554
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
1555
|
-
createUserId: (me =
|
|
1556
|
-
createUserOrg: ((pe =
|
|
1555
|
+
createUserId: (me = ve.value) == null ? void 0 : me.id,
|
|
1556
|
+
createUserOrg: ((pe = ve.value) == null ? void 0 : pe.dept) || ((U = ve.value) == null ? void 0 : U.部门名称)
|
|
1557
1557
|
}, E = {
|
|
1558
1558
|
tableData: t
|
|
1559
1559
|
};
|
|
@@ -1563,11 +1563,11 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1563
1563
|
});
|
|
1564
1564
|
})), (v == null ? void 0 : v.length) > 0 && await sa({
|
|
1565
1565
|
dataList: v
|
|
1566
|
-
}),
|
|
1567
|
-
},
|
|
1566
|
+
}), wl(!0), Ll();
|
|
1567
|
+
}, La = (e, l) => (e = e == null ? void 0 : e.map((r) => {
|
|
1568
1568
|
var a, n;
|
|
1569
|
-
return r != null && r.children && ((a = r.children) != null && a.find((o) => o.id === (l == null ? void 0 : l.id)) ? r.children = (n = r.children) == null ? void 0 : n.filter((o) => (o == null ? void 0 : o.id) !== (l == null ? void 0 : l.id)) : r.children =
|
|
1570
|
-
}), e), Oe =
|
|
1569
|
+
return r != null && r.children && ((a = r.children) != null && a.find((o) => o.id === (l == null ? void 0 : l.id)) ? r.children = (n = r.children) == null ? void 0 : n.filter((o) => (o == null ? void 0 : o.id) !== (l == null ? void 0 : l.id)) : r.children = La(r.children, l)), r;
|
|
1570
|
+
}), e), Oe = Jl({
|
|
1571
1571
|
title: "迁移至",
|
|
1572
1572
|
show: !1,
|
|
1573
1573
|
width: "20%",
|
|
@@ -1603,27 +1603,34 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1603
1603
|
data: Oe.selectRow
|
|
1604
1604
|
}
|
|
1605
1605
|
}), Oe.show = !1);
|
|
1606
|
-
},
|
|
1607
|
-
|
|
1608
|
-
|
|
1606
|
+
}, Xr = Sa(() => u.compName === Un), Yr = async (e) => {
|
|
1607
|
+
he.setImportLoading(!0), await En(e).finally(() => {
|
|
1608
|
+
he.setImportLoading(!1);
|
|
1609
|
+
}), we({
|
|
1610
|
+
type: "success",
|
|
1611
|
+
message: "应用成功"
|
|
1612
|
+
});
|
|
1613
|
+
}, jl = async (e, l, r) => {
|
|
1614
|
+
var a, n, o, d, c, p, b, s, x, w, y, O, A, S, N;
|
|
1615
|
+
if (nl.value = "", Zl.value = !0, Xl.value = !0, te("onButtonClick", e, l), e === "删除")
|
|
1609
1616
|
Ia.confirm("是否确认删除", "温馨提示", {
|
|
1610
1617
|
confirmButtonText: "确认",
|
|
1611
1618
|
cancelButtonText: "取消",
|
|
1612
1619
|
type: "warning"
|
|
1613
1620
|
}).then(() => {
|
|
1614
1621
|
var T, j;
|
|
1615
|
-
(T = I.value) != null && T.find((m) => (m == null ? void 0 : m.id) === (l == null ? void 0 : l.id)) ? I.value = (j = J(I.value)) == null ? void 0 : j.filter((m) => (m == null ? void 0 : m.id) !== (l == null ? void 0 : l.id)) : I.value =
|
|
1622
|
+
(T = I.value) != null && T.find((m) => (m == null ? void 0 : m.id) === (l == null ? void 0 : l.id)) ? I.value = (j = J(I.value)) == null ? void 0 : j.filter((m) => (m == null ? void 0 : m.id) !== (l == null ? void 0 : l.id)) : I.value = La(J(I.value), l), hs(Vl.value, il.value, l == null ? void 0 : l.id), je.setTableLoading(u == null ? void 0 : u.index), te("change", {
|
|
1616
1623
|
content: I.value,
|
|
1617
1624
|
singleContent: l,
|
|
1618
1625
|
index: u == null ? void 0 : u.index,
|
|
1619
1626
|
type: "delete",
|
|
1620
1627
|
buttonName: e,
|
|
1621
|
-
column:
|
|
1628
|
+
column: $.value
|
|
1622
1629
|
});
|
|
1623
1630
|
});
|
|
1624
1631
|
else if (e === "批量删除") {
|
|
1625
1632
|
if (((a = Ve.value) == null ? void 0 : a.length) === 0)
|
|
1626
|
-
return
|
|
1633
|
+
return we.warning("请先勾选操作的数据");
|
|
1627
1634
|
Ia.confirm("是否确认删除", "温馨提示", {
|
|
1628
1635
|
confirmButtonText: "确认",
|
|
1629
1636
|
cancelButtonText: "取消",
|
|
@@ -1639,20 +1646,20 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1639
1646
|
index: u == null ? void 0 : u.index,
|
|
1640
1647
|
type: "batchDelete",
|
|
1641
1648
|
buttonName: e,
|
|
1642
|
-
column:
|
|
1649
|
+
column: $.value
|
|
1643
1650
|
});
|
|
1644
1651
|
}
|
|
1645
1652
|
);
|
|
1646
1653
|
} else if (e === "复制新增") {
|
|
1647
1654
|
Xe.value = "新增";
|
|
1648
|
-
const T = J(l), j = (n =
|
|
1649
|
-
await
|
|
1655
|
+
const T = J(l), j = (n = $.value) == null ? void 0 : n.find((g) => g == null ? void 0 : g.isMainKey), m = j || ((o = $.value) == null ? void 0 : o[0]), f = (d = gl.value) == null ? void 0 : d.find((g) => (g == null ? void 0 : g.label) === "新建");
|
|
1656
|
+
await $a(!0, f, { data: T, firstCol: m });
|
|
1650
1657
|
} else if (e === "新增")
|
|
1651
1658
|
Xe.value = "新增", Pl(""), ul.value = !0;
|
|
1652
1659
|
else if (e === "编辑")
|
|
1653
1660
|
Xe.value = "编辑", Pl(l), ul.value = !0;
|
|
1654
1661
|
else if (e === "查看")
|
|
1655
|
-
Xe.value = "查看", Pl(l),
|
|
1662
|
+
Xe.value = "查看", Pl(l), Zl.value = !1, Xl.value = !1, ul.value = !0;
|
|
1656
1663
|
else if (e === "查看三维模型") {
|
|
1657
1664
|
const T = {};
|
|
1658
1665
|
for (let m in l)
|
|
@@ -1660,39 +1667,39 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1660
1667
|
let j = (c = Object.values(T)) == null ? void 0 : c[1];
|
|
1661
1668
|
rl.setTableShowThree(j);
|
|
1662
1669
|
} else if (((p = r == null ? void 0 : r.extra) == null ? void 0 : p.type) === "modelExample")
|
|
1663
|
-
Xe.value = e,
|
|
1670
|
+
Xe.value = e, Yl.value = !0;
|
|
1664
1671
|
else if (e === "新建") {
|
|
1665
|
-
let T =
|
|
1672
|
+
let T = pl.value, j = [];
|
|
1666
1673
|
for (let v in T)
|
|
1667
|
-
v != null && v.includes(`loading${((b =
|
|
1674
|
+
v != null && v.includes(`loading${((b = ve.value) == null ? void 0 : b.account) || ((s = ve.value) == null ? void 0 : s.账号)}`) && (j = [...j, ...v]);
|
|
1668
1675
|
let m = [];
|
|
1669
1676
|
for (let v in T)
|
|
1670
|
-
v != null && v.includes(`updateLoading${((
|
|
1677
|
+
v != null && v.includes(`updateLoading${((x = ve.value) == null ? void 0 : x.account) || ((w = ve.value) == null ? void 0 : w.账号)}`) && (m = [...m, ...v]);
|
|
1671
1678
|
let f = j == null ? void 0 : j.map((v) => v == null ? void 0 : v.id);
|
|
1672
1679
|
const g = m == null ? void 0 : m.map((v) => v == null ? void 0 : v.id);
|
|
1673
|
-
f = [...J(f), ...g], (f == null ? void 0 : f.length) > 0 && (f != null && f.every((v) => v !== null && v)) && await
|
|
1680
|
+
f = [...J(f), ...g], (f == null ? void 0 : f.length) > 0 && (f != null && f.every((v) => v !== null && v)) && await ka({
|
|
1674
1681
|
ids: f
|
|
1675
1682
|
});
|
|
1676
|
-
const i = (y =
|
|
1677
|
-
await
|
|
1683
|
+
const i = (y = gl.value) == null ? void 0 : y.find((v) => (v == null ? void 0 : v.label) === "新建");
|
|
1684
|
+
await $a(!1, i);
|
|
1678
1685
|
} else if (e === "修改模板") {
|
|
1679
1686
|
let T = J(Q).value;
|
|
1680
|
-
je.setRouteToChildPath(T),
|
|
1687
|
+
je.setRouteToChildPath(T), he.setActiveMenuPath(T + re);
|
|
1681
1688
|
} else if (e === "执行")
|
|
1682
1689
|
qr(e, l);
|
|
1683
1690
|
else if (e != null && e.includes("导出")) {
|
|
1684
|
-
if (e === "导出选中" && ((
|
|
1685
|
-
return
|
|
1686
|
-
if (e === "导出全部" && ((
|
|
1687
|
-
return
|
|
1688
|
-
const T = (N = (S =
|
|
1691
|
+
if (e === "导出选中" && ((O = Ve.value) == null ? void 0 : O.length) === 0)
|
|
1692
|
+
return we.warning(`请先勾选${e}的数据`);
|
|
1693
|
+
if (e === "导出全部" && ((A = I.value) == null ? void 0 : A.length) === 0)
|
|
1694
|
+
return we.warning("暂无数据导出");
|
|
1695
|
+
const T = (N = (S = $.value) == null ? void 0 : S.map((m) => m == null ? void 0 : m.label)) == null ? void 0 : N.filter((m) => m !== "操作"), j = e === "导出全部" ? J(I.value) : J(Ve.value);
|
|
1689
1696
|
j == null || j.forEach((m) => {
|
|
1690
1697
|
m == null || delete m.id;
|
|
1691
1698
|
}), Tr(j, u == null ? void 0 : u.compName, T, u == null ? void 0 : u.compName);
|
|
1692
|
-
} else e === "迁移"
|
|
1693
|
-
},
|
|
1699
|
+
} else e === "迁移" ? (Oe.selectRow = l, Oe.show = !0) : e === "应用至流程" && Yr(l);
|
|
1700
|
+
}, Zr = async (e) => {
|
|
1694
1701
|
var r, a, n, o, d, c;
|
|
1695
|
-
const l = await
|
|
1702
|
+
const l = await Rl({
|
|
1696
1703
|
key: {
|
|
1697
1704
|
pageKey: e,
|
|
1698
1705
|
type: "structure",
|
|
@@ -1707,48 +1714,48 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1707
1714
|
...(b = p == null ? void 0 : p.value) == null ? void 0 : b.pageData
|
|
1708
1715
|
};
|
|
1709
1716
|
}) : [];
|
|
1710
|
-
},
|
|
1711
|
-
var r, a, n, o, d, c, p, b, s,
|
|
1717
|
+
}, Vr = async (e, l) => {
|
|
1718
|
+
var r, a, n, o, d, c, p, b, s, x, w, y, O, A, S, N, T, j, m, f;
|
|
1712
1719
|
try {
|
|
1713
1720
|
let g, i;
|
|
1714
|
-
const v = (r =
|
|
1715
|
-
var
|
|
1716
|
-
return ((
|
|
1717
|
-
}), B = (a =
|
|
1718
|
-
var
|
|
1719
|
-
return ((
|
|
1720
|
-
}),
|
|
1721
|
-
var
|
|
1722
|
-
return ((F = (
|
|
1721
|
+
const v = (r = pl.value[Q.value + re]) == null ? void 0 : r.filter((C) => {
|
|
1722
|
+
var P;
|
|
1723
|
+
return ((P = C == null ? void 0 : C.key) == null ? void 0 : P.type) === "structureMethod";
|
|
1724
|
+
}), B = (a = pl.value[Q.value + re]) == null ? void 0 : a.filter((C) => {
|
|
1725
|
+
var P;
|
|
1726
|
+
return ((P = C == null ? void 0 : C.key) == null ? void 0 : P.type) === "structure";
|
|
1727
|
+
}), _ = v == null ? void 0 : v.find((C) => {
|
|
1728
|
+
var P, F;
|
|
1729
|
+
return ((F = (P = C == null ? void 0 : C.value) == null ? void 0 : P.pageData) == null ? void 0 : F.method) === "保存";
|
|
1723
1730
|
});
|
|
1724
|
-
if (!
|
|
1725
|
-
const
|
|
1726
|
-
var
|
|
1727
|
-
return ((
|
|
1731
|
+
if (!_) return;
|
|
1732
|
+
const X = (c = (d = pl.value[(o = (n = _ == null ? void 0 : _.value) == null ? void 0 : n.pageData) == null ? void 0 : o.path]) == null ? void 0 : d.filter((C) => {
|
|
1733
|
+
var P;
|
|
1734
|
+
return ((P = C == null ? void 0 : C.key) == null ? void 0 : P.type) === "data";
|
|
1728
1735
|
})) == null ? void 0 : c.find((C) => {
|
|
1729
|
-
var
|
|
1730
|
-
return ((F = (
|
|
1736
|
+
var P, F, le, z;
|
|
1737
|
+
return ((F = (P = C == null ? void 0 : C.value) == null ? void 0 : P.tableData) == null ? void 0 : F.算法名称) === ((z = (le = _ == null ? void 0 : _.value) == null ? void 0 : le.pageData) == null ? void 0 : z.method);
|
|
1731
1738
|
});
|
|
1732
|
-
if (!
|
|
1739
|
+
if (!X) return;
|
|
1733
1740
|
const ne = {
|
|
1734
|
-
buttonName: (b = (p =
|
|
1735
|
-
api: (
|
|
1741
|
+
buttonName: (b = (p = _ == null ? void 0 : _.value) == null ? void 0 : p.pageData) == null ? void 0 : b.method,
|
|
1742
|
+
api: (x = (s = X == null ? void 0 : X.value) == null ? void 0 : s.tableData) == null ? void 0 : x.算法体,
|
|
1736
1743
|
content: B == null ? void 0 : B.map((C) => {
|
|
1737
|
-
var
|
|
1738
|
-
return (
|
|
1744
|
+
var P;
|
|
1745
|
+
return (P = C == null ? void 0 : C.value) == null ? void 0 : P.pageData;
|
|
1739
1746
|
}),
|
|
1740
1747
|
extraContent: [],
|
|
1741
|
-
extraValues: (y = (w =
|
|
1742
|
-
methodName: (
|
|
1748
|
+
extraValues: (y = (w = _ == null ? void 0 : _.value) == null ? void 0 : w.pageData) == null ? void 0 : y.data,
|
|
1749
|
+
methodName: (A = (O = _ == null ? void 0 : _.value) == null ? void 0 : O.pageData) == null ? void 0 : A.path
|
|
1743
1750
|
};
|
|
1744
1751
|
if (!e) return;
|
|
1745
1752
|
const V = {
|
|
1746
1753
|
...e,
|
|
1747
1754
|
compData: (S = e == null ? void 0 : e.compData) == null ? void 0 : S.map((C) => {
|
|
1748
|
-
var
|
|
1755
|
+
var P;
|
|
1749
1756
|
return (C == null ? void 0 : C.key) === "formContent" ? {
|
|
1750
1757
|
...C,
|
|
1751
|
-
contents: (
|
|
1758
|
+
contents: (P = C == null ? void 0 : C.contents) == null ? void 0 : P.map((F) => (F == null ? void 0 : F.prop) === l ? {
|
|
1752
1759
|
...F,
|
|
1753
1760
|
value: ""
|
|
1754
1761
|
} : F)
|
|
@@ -1764,19 +1771,19 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1764
1771
|
value: {
|
|
1765
1772
|
pageData: V
|
|
1766
1773
|
}
|
|
1767
|
-
},
|
|
1774
|
+
}, Y = await Ul.post(ne.api, W, {
|
|
1768
1775
|
headers: {
|
|
1769
1776
|
"Content-Type": "application/json"
|
|
1770
1777
|
}
|
|
1771
1778
|
});
|
|
1772
|
-
return ((N =
|
|
1779
|
+
return ((N = Y == null ? void 0 : Y.data) == null ? void 0 : N.code) === 200 && (g = (j = (T = Y == null ? void 0 : Y.data) == null ? void 0 : T.result) == null ? void 0 : j.latestReportCode, i = (f = (m = Y == null ? void 0 : Y.data) == null ? void 0 : m.result) == null ? void 0 : f.status), {
|
|
1773
1780
|
newMainKeyValue: g,
|
|
1774
1781
|
newStatus: i
|
|
1775
1782
|
};
|
|
1776
1783
|
} catch (g) {
|
|
1777
|
-
throw
|
|
1784
|
+
throw we.error(g), new Error(g);
|
|
1778
1785
|
}
|
|
1779
|
-
},
|
|
1786
|
+
}, ja = (e, l, r, a) => {
|
|
1780
1787
|
var n;
|
|
1781
1788
|
te("contentChange", {
|
|
1782
1789
|
contents: (n = e == null ? void 0 : e.compData) == null ? void 0 : n.map((o) => {
|
|
@@ -1786,82 +1793,82 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1786
1793
|
contents: (d = o == null ? void 0 : o.contents) == null ? void 0 : d.map((c) => (c == null ? void 0 : c.key) === l ? {
|
|
1787
1794
|
...c,
|
|
1788
1795
|
value: r
|
|
1789
|
-
} :
|
|
1796
|
+
} : $l.value && (c == null ? void 0 : c.prop) === $l.prop ? {
|
|
1790
1797
|
...c,
|
|
1791
|
-
value:
|
|
1798
|
+
value: $l.value
|
|
1792
1799
|
} : c)
|
|
1793
1800
|
} : o;
|
|
1794
1801
|
}),
|
|
1795
1802
|
index: e == null ? void 0 : e.id
|
|
1796
1803
|
}, a);
|
|
1797
|
-
},
|
|
1804
|
+
}, $l = Jl({
|
|
1798
1805
|
prop: "状态",
|
|
1799
1806
|
value: ""
|
|
1800
|
-
}),
|
|
1807
|
+
}), Ir = R(["系统自动生成信息", "审批意见"]), en = async (e, l, r) => {
|
|
1801
1808
|
var p, b;
|
|
1802
1809
|
let a = e == null ? void 0 : e[l == null ? void 0 : l.prop], n = 1, o, d;
|
|
1803
1810
|
const c = J(Q).value + re + a;
|
|
1804
1811
|
if (c) {
|
|
1805
|
-
|
|
1812
|
+
$l.value = "", o = (p = pl.value[c]) == null ? void 0 : p.filter((w) => {
|
|
1806
1813
|
var y;
|
|
1807
1814
|
return ((y = w == null ? void 0 : w.key) == null ? void 0 : y.type) === "structure";
|
|
1808
1815
|
});
|
|
1809
1816
|
const s = o == null ? void 0 : o.find((w) => {
|
|
1810
|
-
var y,
|
|
1811
|
-
return ((
|
|
1817
|
+
var y, O, A;
|
|
1818
|
+
return ((A = (O = (y = w == null ? void 0 : w.value) == null ? void 0 : y.pageData) == null ? void 0 : O.comp) == null ? void 0 : A.toUpperCase()) === "FORM";
|
|
1812
1819
|
});
|
|
1813
1820
|
d = {
|
|
1814
1821
|
...(b = s == null ? void 0 : s.value) == null ? void 0 : b.pageData,
|
|
1815
1822
|
id: s == null ? void 0 : s.id
|
|
1816
1823
|
};
|
|
1817
|
-
const
|
|
1818
|
-
if (
|
|
1824
|
+
const x = await Vr(d, l == null ? void 0 : l.prop);
|
|
1825
|
+
if ($l.value = x == null ? void 0 : x.newStatus, x != null && x.newMainKeyValue) return x == null ? void 0 : x.newMainKeyValue;
|
|
1819
1826
|
}
|
|
1820
1827
|
if (I.value.some((s) => (s == null ? void 0 : s[l == null ? void 0 : l.prop]) === a)) {
|
|
1821
1828
|
const s = a;
|
|
1822
|
-
for (; I.value.some((
|
|
1829
|
+
for (; I.value.some((x) => (x == null ? void 0 : x[l == null ? void 0 : l.prop]) === `${s}(${n})`); )
|
|
1823
1830
|
n++;
|
|
1824
1831
|
a = `${s}(${n})`;
|
|
1825
1832
|
}
|
|
1826
1833
|
return a;
|
|
1827
|
-
},
|
|
1828
|
-
var d, c, p, b, s,
|
|
1834
|
+
}, $a = async (e, l, r) => {
|
|
1835
|
+
var d, c, p, b, s, x, w, y;
|
|
1829
1836
|
let a, n;
|
|
1830
|
-
const o = await
|
|
1831
|
-
if (e ? (a = J(Q).value + re + ((b = r == null ? void 0 : r.data) == null ? void 0 : b[(p = r == null ? void 0 : r.firstCol) == null ? void 0 : p.prop]), n = J(Q).value + re + o) : (a = J(Q).value + re, n = J(a) + `loading${((d =
|
|
1832
|
-
const
|
|
1837
|
+
const o = await en(r == null ? void 0 : r.data, r == null ? void 0 : r.firstCol);
|
|
1838
|
+
if (e ? (a = J(Q).value + re + ((b = r == null ? void 0 : r.data) == null ? void 0 : b[(p = r == null ? void 0 : r.firstCol) == null ? void 0 : p.prop]), n = J(Q).value + re + o) : (a = J(Q).value + re, n = J(a) + `loading${((d = ve.value) == null ? void 0 : d.account) || ((c = ve.value) == null ? void 0 : c.账号)}`), l) {
|
|
1839
|
+
const O = (x = (s = pl.value[n]) == null ? void 0 : s.filter((A) => {
|
|
1833
1840
|
var S;
|
|
1834
|
-
return ((S =
|
|
1835
|
-
})) == null ? void 0 :
|
|
1841
|
+
return ((S = A == null ? void 0 : A.key) == null ? void 0 : S.parentTable) === "";
|
|
1842
|
+
})) == null ? void 0 : x.map((A) => {
|
|
1836
1843
|
var S;
|
|
1837
1844
|
return {
|
|
1838
|
-
id:
|
|
1839
|
-
...(S =
|
|
1845
|
+
id: A == null ? void 0 : A.id,
|
|
1846
|
+
...(S = A == null ? void 0 : A.value) == null ? void 0 : S.pageData
|
|
1840
1847
|
};
|
|
1841
1848
|
});
|
|
1842
|
-
if ((
|
|
1849
|
+
if ((O == null ? void 0 : O.length) > 0)
|
|
1843
1850
|
if (e) {
|
|
1844
|
-
const
|
|
1851
|
+
const A = O == null ? void 0 : O.find((S) => {
|
|
1845
1852
|
var N;
|
|
1846
1853
|
return ((N = S == null ? void 0 : S.comp) == null ? void 0 : N.toUpperCase()) === "FORM";
|
|
1847
1854
|
});
|
|
1848
|
-
|
|
1855
|
+
A && ja(A, (w = r == null ? void 0 : r.firstCol) == null ? void 0 : w.label, o, Q.value);
|
|
1849
1856
|
} else
|
|
1850
|
-
je.setRouteToChildPath(J(Q).value),
|
|
1851
|
-
else if (await ua(a, n, null, null, e ?
|
|
1852
|
-
const
|
|
1853
|
-
if ((
|
|
1854
|
-
const S =
|
|
1857
|
+
je.setRouteToChildPath(J(Q).value), he.setActiveMenuPath(n);
|
|
1858
|
+
else if (await ua(a, n, null, null, e ? Ir.value : null), e) {
|
|
1859
|
+
const A = await Zr(n);
|
|
1860
|
+
if ((A == null ? void 0 : A.length) > 0) {
|
|
1861
|
+
const S = A == null ? void 0 : A.find((N) => {
|
|
1855
1862
|
var T;
|
|
1856
1863
|
return ((T = N == null ? void 0 : N.comp) == null ? void 0 : T.toUpperCase()) === "FORM";
|
|
1857
1864
|
});
|
|
1858
|
-
S &&
|
|
1865
|
+
S && ja(S, (y = r == null ? void 0 : r.firstCol) == null ? void 0 : y.label, o, Q.value);
|
|
1859
1866
|
}
|
|
1860
1867
|
} else
|
|
1861
|
-
je.setRouteToChildPath(J(Q).value),
|
|
1868
|
+
je.setRouteToChildPath(J(Q).value), he.setActiveMenuPath(n);
|
|
1862
1869
|
} else
|
|
1863
|
-
e ? (nl.value = "",
|
|
1864
|
-
},
|
|
1870
|
+
e ? (nl.value = "", Ke.value = r == null ? void 0 : r.data, wl(!0, r == null ? void 0 : r.firstCol, o)) : (je.setRouteToChildPath(J(Q).value), he.setActiveMenuPath(n));
|
|
1871
|
+
}, ln = () => {
|
|
1865
1872
|
ll.value = !1, El.value = [], We.value = !1;
|
|
1866
1873
|
}, Pl = (e) => {
|
|
1867
1874
|
var n, o, d, c, p, b;
|
|
@@ -1869,15 +1876,15 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1869
1876
|
let r = [];
|
|
1870
1877
|
for (let s in e)
|
|
1871
1878
|
Array.isArray(e == null ? void 0 : e[s]) && r.push(s);
|
|
1872
|
-
|
|
1879
|
+
$e.value = J($.value), (o = ia((n = J($.value)) == null ? void 0 : n.filter((s) => (s == null ? void 0 : s.label) !== "操作"))) == null || o.forEach((s, x) => {
|
|
1873
1880
|
var w;
|
|
1874
1881
|
r.find((y) => y === (s == null ? void 0 : s.prop)) || (s != null && s.formType && ((w = s == null ? void 0 : s.formType) == null ? void 0 : w.toUpperCase()) === "SELECT" ? l.push({
|
|
1875
1882
|
label: (s == null ? void 0 : s.prop) || (s == null ? void 0 : s.label) || "",
|
|
1876
|
-
name: (s == null ? void 0 : s.prop) ?? "t" +
|
|
1883
|
+
name: (s == null ? void 0 : s.prop) ?? "t" + x,
|
|
1877
1884
|
prop: s == null ? void 0 : s.prop,
|
|
1878
1885
|
type: !(s != null && s.formType) || (s == null ? void 0 : s.formType) === "" ? "Input" : s == null ? void 0 : s.formType,
|
|
1879
1886
|
value: (e == null ? void 0 : e[s == null ? void 0 : s.prop]) ?? (s == null ? void 0 : s.value) ?? "",
|
|
1880
|
-
id: (s == null ? void 0 : s.id) ??
|
|
1887
|
+
id: (s == null ? void 0 : s.id) ?? x,
|
|
1881
1888
|
contents: (s == null ? void 0 : s.options) ?? [],
|
|
1882
1889
|
width: 1,
|
|
1883
1890
|
isFormColHidden: s == null ? void 0 : s.isFormColHidden,
|
|
@@ -1891,26 +1898,26 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1891
1898
|
}) : l.push({
|
|
1892
1899
|
label: (s == null ? void 0 : s.prop) || (s == null ? void 0 : s.label) || "",
|
|
1893
1900
|
prop: s == null ? void 0 : s.prop,
|
|
1894
|
-
name: (s == null ? void 0 : s.prop) ?? "t" +
|
|
1901
|
+
name: (s == null ? void 0 : s.prop) ?? "t" + x,
|
|
1895
1902
|
type: !(s != null && s.formType) || (s == null ? void 0 : s.formType) === "" ? "Input" : s == null ? void 0 : s.formType,
|
|
1896
1903
|
value: (e == null ? void 0 : e[s == null ? void 0 : s.prop]) ?? (s == null ? void 0 : s.value) ?? "",
|
|
1897
|
-
id: (s == null ? void 0 : s.id) ??
|
|
1904
|
+
id: (s == null ? void 0 : s.id) ?? x,
|
|
1898
1905
|
contents: (s == null ? void 0 : s.options) ?? [],
|
|
1899
1906
|
width: 1,
|
|
1900
1907
|
isFormColHidden: s == null ? void 0 : s.isFormColHidden,
|
|
1901
1908
|
disabled: s == null ? void 0 : s.disabled
|
|
1902
1909
|
}));
|
|
1903
1910
|
}), e === "" || !e || (nl.value = (e == null ? void 0 : e.id) ?? "");
|
|
1904
|
-
let a = ia((d = J(
|
|
1911
|
+
let a = ia((d = J($.value)) == null ? void 0 : d.filter((s) => (s == null ? void 0 : s.label) !== "操作"));
|
|
1905
1912
|
Ge.value && ((c = Ge.value) == null ? void 0 : c.length) > 0 && (Ge.value = (p = J(Ge).value) == null ? void 0 : p.map((s) => {
|
|
1906
1913
|
var w;
|
|
1907
|
-
let
|
|
1908
|
-
return
|
|
1909
|
-
})), ol.value = Ge.value && ((b = Ge.value) == null ? void 0 : b.length) > 0 ?
|
|
1910
|
-
},
|
|
1914
|
+
let x = (s == null ? void 0 : s.prop) || ((w = a == null ? void 0 : a.find((y) => (y == null ? void 0 : y.label) === (s == null ? void 0 : s.label))) == null ? void 0 : w.prop);
|
|
1915
|
+
return x && (s.value = e[x]), s;
|
|
1916
|
+
})), ol.value = Ge.value && ((b = Ge.value) == null ? void 0 : b.length) > 0 ? Fn(Ge.value) : l;
|
|
1917
|
+
}, an = () => {
|
|
1911
1918
|
var l;
|
|
1912
|
-
const e = (l =
|
|
1913
|
-
e &&
|
|
1919
|
+
const e = (l = L.value) == null ? void 0 : l.$el;
|
|
1920
|
+
e && An.create(e, {
|
|
1914
1921
|
animation: 150,
|
|
1915
1922
|
handle: ".col-drag-icon",
|
|
1916
1923
|
ghostClass: "sortable-ghost",
|
|
@@ -1919,23 +1926,23 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1919
1926
|
const { oldIndex: a, newIndex: n } = r;
|
|
1920
1927
|
if (a === n) return;
|
|
1921
1928
|
const o = Dl.value.splice(a, 1)[0];
|
|
1922
|
-
Dl.value.splice(n, 0, o),
|
|
1929
|
+
Dl.value.splice(n, 0, o), $.value = (d = $.value) == null ? void 0 : d.slice().sort((c, p) => {
|
|
1923
1930
|
if (c.label === "操作") return 1;
|
|
1924
1931
|
if (p.label === "操作") return -1;
|
|
1925
|
-
const b = Dl.value.findIndex((
|
|
1932
|
+
const b = Dl.value.findIndex((x) => x.label === c.label), s = Dl.value.findIndex((x) => x.label === p.label);
|
|
1926
1933
|
return b - s;
|
|
1927
1934
|
});
|
|
1928
1935
|
}
|
|
1929
1936
|
});
|
|
1930
1937
|
};
|
|
1931
|
-
|
|
1938
|
+
Aa(() => {
|
|
1932
1939
|
ca.value = window.innerWidth - 240 * 2;
|
|
1933
1940
|
});
|
|
1934
|
-
const
|
|
1941
|
+
const rn = () => {
|
|
1935
1942
|
oa(() => {
|
|
1936
|
-
|
|
1943
|
+
an();
|
|
1937
1944
|
});
|
|
1938
|
-
},
|
|
1945
|
+
}, ha = (e, l) => {
|
|
1939
1946
|
var a;
|
|
1940
1947
|
if (!e && !(e != null && e.children)) return {
|
|
1941
1948
|
contents: e,
|
|
@@ -1948,11 +1955,11 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1948
1955
|
let c = {};
|
|
1949
1956
|
for (let p in n) {
|
|
1950
1957
|
let b = (o = l == null ? void 0 : l.find((s) => (s == null ? void 0 : s.prop) === p)) == null ? void 0 : o.label;
|
|
1951
|
-
b ? c[p] = (d =
|
|
1958
|
+
b ? c[p] = (d = Ke.value) == null ? void 0 : d[b] : c[p] = n[p];
|
|
1952
1959
|
}
|
|
1953
|
-
n = Object.assign(c,
|
|
1960
|
+
n = Object.assign(c, Ke.value), r = n;
|
|
1954
1961
|
} else {
|
|
1955
|
-
let c =
|
|
1962
|
+
let c = ha(n, l);
|
|
1956
1963
|
n = c == null ? void 0 : c.contents, r = c == null ? void 0 : c.currentSelectContents;
|
|
1957
1964
|
}
|
|
1958
1965
|
return n;
|
|
@@ -1968,9 +1975,9 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1968
1975
|
let c = {};
|
|
1969
1976
|
for (let p in n) {
|
|
1970
1977
|
let b = (o = l == null ? void 0 : l.find((s) => (s == null ? void 0 : s.prop) === p)) == null ? void 0 : o.label;
|
|
1971
|
-
b ? c[p] = (d =
|
|
1978
|
+
b ? c[p] = (d = Ke.value) == null ? void 0 : d[b] : c[p] = n[p];
|
|
1972
1979
|
}
|
|
1973
|
-
n = Object.assign(c,
|
|
1980
|
+
n = Object.assign(c, Ke.value), a = n;
|
|
1974
1981
|
}
|
|
1975
1982
|
return n;
|
|
1976
1983
|
}) : r = e == null ? void 0 : e.map((n) => {
|
|
@@ -1978,20 +1985,20 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
1978
1985
|
if ((n == null ? void 0 : n.id) === nl.value) {
|
|
1979
1986
|
let b = {};
|
|
1980
1987
|
for (let s in n) {
|
|
1981
|
-
let
|
|
1982
|
-
|
|
1988
|
+
let x = (o = l == null ? void 0 : l.find((w) => (w == null ? void 0 : w.prop) === s)) == null ? void 0 : o.label;
|
|
1989
|
+
x ? b[s] = (d = Ke.value) == null ? void 0 : d[x] : b[s] = n[s];
|
|
1983
1990
|
}
|
|
1984
|
-
n = Object.assign(b,
|
|
1991
|
+
n = Object.assign(b, Ke.value), a = n;
|
|
1985
1992
|
} else
|
|
1986
|
-
n = (c =
|
|
1993
|
+
n = (c = ha(n, l)) == null ? void 0 : c.contents, a = (p = ha(n, l)) == null ? void 0 : p.currentSelectContents;
|
|
1987
1994
|
return n;
|
|
1988
1995
|
}), {
|
|
1989
1996
|
newContents: r,
|
|
1990
1997
|
currentSelectContents: a
|
|
1991
1998
|
};
|
|
1992
|
-
},
|
|
1999
|
+
}, wa = (e, l, r) => {
|
|
1993
2000
|
var a, n;
|
|
1994
|
-
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(
|
|
2001
|
+
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(wa)), e;
|
|
1995
2002
|
}, va = (e) => {
|
|
1996
2003
|
var r;
|
|
1997
2004
|
const l = [];
|
|
@@ -2001,10 +2008,10 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2001
2008
|
const n = { ...a };
|
|
2002
2009
|
return delete n.children, n;
|
|
2003
2010
|
}) : [];
|
|
2004
|
-
},
|
|
2005
|
-
var b, s,
|
|
2006
|
-
let a = ia((b = J(
|
|
2007
|
-
if (!
|
|
2011
|
+
}, wl = (e = !0, l, r) => {
|
|
2012
|
+
var b, s, x, w, y, O, A, S, N;
|
|
2013
|
+
let a = ia((b = J($.value)) == null ? void 0 : b.filter((T) => (T == null ? void 0 : T.label) !== "操作")), n, o = J(I.value);
|
|
2014
|
+
if (!Ke.value) {
|
|
2008
2015
|
ul.value = !1;
|
|
2009
2016
|
return;
|
|
2010
2017
|
}
|
|
@@ -2014,15 +2021,15 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2014
2021
|
l && r ? T = {
|
|
2015
2022
|
id: Sl.value.toString(),
|
|
2016
2023
|
[l == null ? void 0 : l.prop]: r,
|
|
2017
|
-
children:
|
|
2024
|
+
children: Ke.value.children
|
|
2018
2025
|
} : T = { id: Sl.value.toString() }, T != null && T.children && (T = {
|
|
2019
2026
|
...T,
|
|
2020
|
-
children: (s = T.children) == null ? void 0 : s.map((j) =>
|
|
2021
|
-
}), o.push(Object.assign(
|
|
2027
|
+
children: (s = T.children) == null ? void 0 : s.map((j) => wa(j, l, r))
|
|
2028
|
+
}), o.push(Object.assign(Ke.value, T)), n = Object.assign(Ke.value, T);
|
|
2022
2029
|
} else
|
|
2023
|
-
o = (
|
|
2030
|
+
o = (x = Pa(o, a)) == null ? void 0 : x.newContents, n = (w = Pa(o, a)) == null ? void 0 : w.currentSelectContents;
|
|
2024
2031
|
const d = (y = u.itemData) == null ? void 0 : y.filter((T) => (T == null ? void 0 : T.key) === "childTree")[0];
|
|
2025
|
-
if (((
|
|
2032
|
+
if (((O = d == null ? void 0 : d.contents) == null ? void 0 : O.length) > 0) {
|
|
2026
2033
|
Xe.value = "编辑";
|
|
2027
2034
|
const T = [];
|
|
2028
2035
|
o == null || o.forEach((j, m) => {
|
|
@@ -2031,34 +2038,34 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2031
2038
|
if (Array.isArray(j)) {
|
|
2032
2039
|
let i = [];
|
|
2033
2040
|
j == null || j.filter((v) => !(v != null && v.id)).forEach((v, B) => {
|
|
2034
|
-
var
|
|
2035
|
-
if ((
|
|
2036
|
-
let
|
|
2037
|
-
|
|
2041
|
+
var _, X, ne, V, W, Y, C;
|
|
2042
|
+
if ((X = (_ = Ye.value) == null ? void 0 : _[B]) != null && X.prop && !Array.isArray(v)) {
|
|
2043
|
+
let P = {};
|
|
2044
|
+
P[Ye.value[B].column] = v, Te != null && Te.value && ((ne = Te == null ? void 0 : Te.value) == null ? void 0 : ne.length) > 0 && ((V = Te == null ? void 0 : Te.value) != null && V.find((F) => JSON.stringify(F == null ? void 0 : F[0]) === JSON.stringify(P))) && (i = (W = Te == null ? void 0 : Te.value) == null ? void 0 : W.find((F) => JSON.stringify(F == null ? void 0 : F[0]) === JSON.stringify(P))), i && i.length > 0 ? f[Ye.value[B].prop] = i != null && i.find((F) => {
|
|
2038
2045
|
var le;
|
|
2039
2046
|
return ((le = Object.keys(F)) == null ? void 0 : le[0]) === Ye.value[B].column;
|
|
2040
|
-
}) ? (
|
|
2047
|
+
}) ? (Y = i == null ? void 0 : i.find((F) => {
|
|
2041
2048
|
var le;
|
|
2042
2049
|
return ((le = Object.keys(F)) == null ? void 0 : le[0]) === Ye.value[B].column;
|
|
2043
|
-
})) == null ? void 0 :
|
|
2044
|
-
} else Array.isArray(v) && ((C = Ye.value[B]) != null && C.prop ? f[Ye.value[B].prop] = v : f.children =
|
|
2050
|
+
})) == null ? void 0 : Y[Ye.value[B].column] : v : f[Ye.value[B].prop] = v;
|
|
2051
|
+
} else Array.isArray(v) && ((C = Ye.value[B]) != null && C.prop ? f[Ye.value[B].prop] = v : f.children = Ta(v, Ye.value));
|
|
2045
2052
|
});
|
|
2046
2053
|
} else
|
|
2047
2054
|
f = j;
|
|
2048
2055
|
Array.isArray(j) && j.some((i) => i == null ? void 0 : i.id) ? T.push(Object.assign(f, { id: (g = j == null ? void 0 : j.find((i) => i.id)) == null ? void 0 : g.id })) : f.id ? T.push(f) : T.push(Object.assign(f, { id: m.toString() }));
|
|
2049
|
-
}), I.value =
|
|
2056
|
+
}), I.value = Fa(T, d, $.value);
|
|
2050
2057
|
} else
|
|
2051
2058
|
I.value = o;
|
|
2052
|
-
|
|
2053
|
-
const c =
|
|
2059
|
+
Ma(I.value), Vl.value = I.value;
|
|
2060
|
+
const c = bs(Vl.value, il.value, o);
|
|
2054
2061
|
let p = [];
|
|
2055
|
-
if (_l.value ? (p = (
|
|
2062
|
+
if (_l.value ? (p = (A = J(_l).value.singleContent) == null ? void 0 : A.filter((T) => (T == null ? void 0 : T.id) !== (n == null ? void 0 : n.id)), p.push(n)) : p = [n], Ze.value) {
|
|
2056
2063
|
const T = {
|
|
2057
2064
|
content: c,
|
|
2058
2065
|
singleContent: ((S = d == null ? void 0 : d.contents) == null ? void 0 : S.length) > 0 ? p == null ? void 0 : p.flatMap(va) : p,
|
|
2059
2066
|
index: u == null ? void 0 : u.index,
|
|
2060
2067
|
buttonName: "编辑",
|
|
2061
|
-
column:
|
|
2068
|
+
column: $.value,
|
|
2062
2069
|
parentTableId: u == null ? void 0 : u.parentTableId
|
|
2063
2070
|
};
|
|
2064
2071
|
je.setCacheUpdatingData(T);
|
|
@@ -2069,30 +2076,30 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2069
2076
|
singleContent: ((N = d == null ? void 0 : d.contents) == null ? void 0 : N.length) > 0 ? va(n) : n,
|
|
2070
2077
|
index: u == null ? void 0 : u.index,
|
|
2071
2078
|
buttonName: Xe.value,
|
|
2072
|
-
column:
|
|
2079
|
+
column: $.value,
|
|
2073
2080
|
parentTableId: u == null ? void 0 : u.parentTableId
|
|
2074
2081
|
};
|
|
2075
|
-
je.setTableLoading(u == null ? void 0 : u.index), ul.value = !1,
|
|
2082
|
+
je.setTableLoading(u == null ? void 0 : u.index), ul.value = !1, Ke.value = void 0, te("change", T);
|
|
2076
2083
|
}
|
|
2077
2084
|
};
|
|
2078
|
-
|
|
2079
|
-
|
|
2085
|
+
vn(() => {
|
|
2086
|
+
$.value = [], I.value = [], $e.value = [], al.value = [], Ge.value = [], fl.value = [], El.value = [], kl.value = [], ol.value = [], Ve.value = [], L.value = null;
|
|
2080
2087
|
});
|
|
2081
|
-
const
|
|
2082
|
-
var b, s,
|
|
2088
|
+
const Ka = async (e, l, r) => {
|
|
2089
|
+
var b, s, x, w, y, O, A, S, N, T, j;
|
|
2083
2090
|
hl.value = r == null ? void 0 : r.prop;
|
|
2084
2091
|
const a = J(u.itemData), n = a == null ? void 0 : a.map((m) => {
|
|
2085
2092
|
var f;
|
|
2086
2093
|
return (m == null ? void 0 : m.key) === "header" && ((f = m.contents) == null || f.map((g, i) => {
|
|
2087
|
-
var v, B,
|
|
2088
|
-
return g.type = g != null && g.type ? g.type : (
|
|
2089
|
-
var h, ce, de,
|
|
2090
|
-
return (
|
|
2091
|
-
})) == null ? void 0 : V.value : "Input", g.options = g != null && g.options ? g.options : ((C = (
|
|
2092
|
-
label:
|
|
2093
|
-
value:
|
|
2094
|
+
var v, B, _, X, ne, V, W, Y, C, P, F, le, z, t, M, E, oe, me, pe;
|
|
2095
|
+
return g.type = g != null && g.type ? g.type : (X = (_ = (B = (v = g == null ? void 0 : g.key) == null ? void 0 : v.split("$")) == null ? void 0 : B[1]) == null ? void 0 : _.split("(")) != null && X[0] ? (V = (ne = er) == null ? void 0 : ne.find((U) => {
|
|
2096
|
+
var h, ce, de, ge;
|
|
2097
|
+
return (U == null ? void 0 : U.key) === ((ge = (de = (ce = (h = g == null ? void 0 : g.key) == null ? void 0 : h.split("$")) == null ? void 0 : ce[1]) == null ? void 0 : de.split("(")) == null ? void 0 : ge[0]);
|
|
2098
|
+
})) == null ? void 0 : V.value : "Input", g.options = g != null && g.options ? g.options : ((C = (Y = (W = g == null ? void 0 : g.key) == null ? void 0 : W.split("$")) == null ? void 0 : Y[1]) == null ? void 0 : C.length) > 0 ? (z = (le = ar((F = (P = g == null ? void 0 : g.key) == null ? void 0 : P.split("$")) == null ? void 0 : F[1])) == null ? void 0 : le.split(",")) == null ? void 0 : z.map((U) => ({
|
|
2099
|
+
label: U,
|
|
2100
|
+
value: U
|
|
2094
2101
|
})) : [], (t = g == null ? void 0 : g.key) != null && t.includes("$") && (g.key = (E = (M = g == null ? void 0 : g.key) == null ? void 0 : M.split("$")) == null ? void 0 : E[0]), g.value = (oe = Object.values(l)) == null ? void 0 : oe[i], g.optionUrl = g != null && g.formMenuSelect && ((me = g == null ? void 0 : g.formMenuSelect) == null ? void 0 : me.length) > 0 ? {
|
|
2095
|
-
groupSelect: (pe = g == null ? void 0 : g.groupSelect) == null ? void 0 : pe.split(/[::]/).map((
|
|
2102
|
+
groupSelect: (pe = g == null ? void 0 : g.groupSelect) == null ? void 0 : pe.split(/[::]/).map((U) => U.trim()),
|
|
2096
2103
|
menuSelect: g == null ? void 0 : g.formMenuSelect,
|
|
2097
2104
|
selectRelateType: "",
|
|
2098
2105
|
type: (g == null ? void 0 : g.formType) ?? (g != null && g.groupSelect ? "Select" : "")
|
|
@@ -2104,71 +2111,71 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2104
2111
|
var f;
|
|
2105
2112
|
return m.value = (f = d == null ? void 0 : d.find((g, i) => i === (m == null ? void 0 : m.id))) == null ? void 0 : f.value, m;
|
|
2106
2113
|
});
|
|
2107
|
-
let c = "", p = (y = (w = (
|
|
2114
|
+
let c = "", p = (y = (w = (x = J(n)) == null ? void 0 : x.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : w.contents) == null ? void 0 : y.find((m, f) => {
|
|
2108
2115
|
var g, i, v;
|
|
2109
2116
|
return (m == null ? void 0 : m.label) === hl.value || (f == null ? void 0 : f.toString()) === ((v = (i = (g = hl.value) == null ? void 0 : g.split("a")) == null ? void 0 : i[1]) == null ? void 0 : v.toString());
|
|
2110
2117
|
});
|
|
2111
|
-
if ((S = (
|
|
2118
|
+
if ((S = (A = (O = J(n)) == null ? void 0 : O.find((m) => (m == null ? void 0 : m.key) === "header")) == null ? void 0 : A.contents) == null || S.forEach((m) => {
|
|
2112
2119
|
var f, g, i, v, B;
|
|
2113
2120
|
c === "" && ((i = (g = (f = m == null ? void 0 : m.optionUrl) == null ? void 0 : f.groupSelect) == null ? void 0 : g[1]) != null && i.includes("[")) && (c = (B = (v = m == null ? void 0 : m.optionUrl) == null ? void 0 : v.groupSelect) == null ? void 0 : B[1]);
|
|
2114
2121
|
}), (N = p == null ? void 0 : p.optionUrl) != null && N.menuSelect) {
|
|
2115
2122
|
let m = await nr(p), f;
|
|
2116
2123
|
if (m == null || m.forEach((g) => {
|
|
2117
|
-
var i, v, B,
|
|
2118
|
-
c === ((v = (i = p == null ? void 0 : p.optionUrl) == null ? void 0 : i.groupSelect) == null ? void 0 : v[1]) && ((
|
|
2124
|
+
var i, v, B, _, X, ne, V, W, Y, C;
|
|
2125
|
+
c === ((v = (i = p == null ? void 0 : p.optionUrl) == null ? void 0 : i.groupSelect) == null ? void 0 : v[1]) && ((X = (_ = (B = p == null ? void 0 : p.optionUrl) == null ? void 0 : B.groupSelect) == null ? void 0 : _[1]) != null && X.includes("[")) && ((C = J(g)) == null ? void 0 : C[(Y = (W = (V = (ne = p == null ? void 0 : p.optionUrl) == null ? void 0 : ne.groupSelect) == null ? void 0 : V[1]) == null ? void 0 : W.replaceAll("[", "")) == null ? void 0 : Y.replaceAll("]", "")]) === (p == null ? void 0 : p.value) && (f = g);
|
|
2119
2126
|
}), f) {
|
|
2120
2127
|
let g = J(o);
|
|
2121
2128
|
g = g == null ? void 0 : g.map((v) => {
|
|
2122
|
-
var B,
|
|
2123
|
-
return (f != null && f[v == null ? void 0 : v.label] || f != null && f[(ne = (
|
|
2129
|
+
var B, _, X, ne, V, W, Y, C, P, F, le;
|
|
2130
|
+
return (f != null && f[v == null ? void 0 : v.label] || f != null && f[(ne = (X = (_ = (B = v == null ? void 0 : v.optionUrl) == null ? void 0 : B.groupSelect) == null ? void 0 : _[1]) == null ? void 0 : X.replaceAll("[", "")) == null ? void 0 : ne.replaceAll("]", "")]) && ((Y = (W = (V = v == null ? void 0 : v.optionUrl) == null ? void 0 : V.groupSelect) == null ? void 0 : W[1]) != null && Y.includes("[")) && (v.value = (f == null ? void 0 : f[v == null ? void 0 : v.label]) || (f == null ? void 0 : f[(le = (F = (P = (C = v == null ? void 0 : v.optionUrl) == null ? void 0 : C.groupSelect) == null ? void 0 : P[1]) == null ? void 0 : F.replaceAll("[", "")) == null ? void 0 : le.replaceAll("]", "")])), v;
|
|
2124
2131
|
}), I.value = (T = J(I.value)) == null ? void 0 : T.map((v) => {
|
|
2125
2132
|
if ((v == null ? void 0 : v.id) === (l == null ? void 0 : l.id)) {
|
|
2126
2133
|
const B = {};
|
|
2127
|
-
return g == null || g.forEach((
|
|
2128
|
-
B[
|
|
2134
|
+
return g == null || g.forEach((_) => {
|
|
2135
|
+
B[_.name] = _.value;
|
|
2129
2136
|
}), B.id = v == null ? void 0 : v.id, B;
|
|
2130
2137
|
}
|
|
2131
2138
|
return v;
|
|
2132
2139
|
});
|
|
2133
2140
|
let i = J(g);
|
|
2134
2141
|
i = i == null ? void 0 : i.map((v) => {
|
|
2135
|
-
var B,
|
|
2136
|
-
return (
|
|
2137
|
-
var W,
|
|
2142
|
+
var B, _, X, ne;
|
|
2143
|
+
return (_ = (B = v == null ? void 0 : v.optionUrl) == null ? void 0 : B.menuSelect) != null && _.some((V) => V == null ? void 0 : V.includes) && (v.optionUrl.menuSelect = (ne = (X = v == null ? void 0 : v.optionUrl) == null ? void 0 : X.menuSelect) == null ? void 0 : ne.map((V) => {
|
|
2144
|
+
var W, Y, C, P;
|
|
2138
2145
|
if (V != null && V.includes("[")) {
|
|
2139
|
-
let F = (
|
|
2140
|
-
V = (
|
|
2146
|
+
let F = (Y = (W = V == null ? void 0 : V.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : W.split(":")) == null ? void 0 : Y[1];
|
|
2147
|
+
V = (P = (C = J(g)) == null ? void 0 : C.find((le) => (le == null ? void 0 : le.label) === F)) == null ? void 0 : P.value;
|
|
2141
2148
|
}
|
|
2142
2149
|
return V;
|
|
2143
2150
|
})), v;
|
|
2144
2151
|
}), I.value = (j = J(I.value)) == null ? void 0 : j.map((v) => {
|
|
2145
2152
|
if ((v == null ? void 0 : v.id) === (l == null ? void 0 : l.id)) {
|
|
2146
2153
|
const B = {};
|
|
2147
|
-
return i == null || i.forEach((
|
|
2148
|
-
B[
|
|
2154
|
+
return i == null || i.forEach((_) => {
|
|
2155
|
+
B[_.name] = _.value;
|
|
2149
2156
|
}), B.id = v == null ? void 0 : v.id, B;
|
|
2150
2157
|
}
|
|
2151
2158
|
return v;
|
|
2152
2159
|
});
|
|
2153
2160
|
}
|
|
2154
2161
|
}
|
|
2155
|
-
},
|
|
2156
|
-
var b, s,
|
|
2162
|
+
}, nn = async (e) => {
|
|
2163
|
+
var b, s, x, w, y, O, A, S, N, T, j, m;
|
|
2157
2164
|
if (!e) return;
|
|
2158
|
-
|
|
2165
|
+
Ke.value = e;
|
|
2159
2166
|
const l = J(u.itemData);
|
|
2160
2167
|
let r = l == null ? void 0 : l.map((f) => {
|
|
2161
2168
|
var g;
|
|
2162
2169
|
return (f == null ? void 0 : f.key) === "header" && ((g = f.contents) == null || g.map((i, v) => {
|
|
2163
|
-
var B,
|
|
2164
|
-
return i.type = i != null && i.type ? i.type : (ne = (
|
|
2165
|
-
var ce, de,
|
|
2166
|
-
return (h == null ? void 0 : h.key) === ((
|
|
2167
|
-
})) == null ? void 0 : W.value : "Input", i.options = i != null && i.options ? i.options : ((
|
|
2170
|
+
var B, _, X, ne, V, W, Y, C, P, F, le, z, t, M, E, oe, me, pe, U;
|
|
2171
|
+
return i.type = i != null && i.type ? i.type : (ne = (X = (_ = (B = i == null ? void 0 : i.key) == null ? void 0 : B.split("$")) == null ? void 0 : _[1]) == null ? void 0 : X.split("(")) != null && ne[0] ? (W = (V = er) == null ? void 0 : V.find((h) => {
|
|
2172
|
+
var ce, de, ge, Ce;
|
|
2173
|
+
return (h == null ? void 0 : h.key) === ((Ce = (ge = (de = (ce = i == null ? void 0 : i.key) == null ? void 0 : ce.split("$")) == null ? void 0 : de[1]) == null ? void 0 : ge.split("(")) == null ? void 0 : Ce[0]);
|
|
2174
|
+
})) == null ? void 0 : W.value : "Input", i.options = i != null && i.options ? i.options : ((P = (C = (Y = i == null ? void 0 : i.key) == null ? void 0 : Y.split("$")) == null ? void 0 : C[1]) == null ? void 0 : P.length) > 0 ? (t = (z = ar((le = (F = i == null ? void 0 : i.key) == null ? void 0 : F.split("$")) == null ? void 0 : le[1])) == null ? void 0 : z.split(",")) == null ? void 0 : t.map((h) => ({
|
|
2168
2175
|
label: h,
|
|
2169
2176
|
value: h
|
|
2170
2177
|
})) : [], (M = i == null ? void 0 : i.key) != null && M.includes("$") && (i.key = (oe = (E = i == null ? void 0 : i.key) == null ? void 0 : E.split("$")) == null ? void 0 : oe[0]), i.value = (me = Object.values(e)) == null ? void 0 : me[v], i.optionUrl = i != null && i.formMenuSelect && ((pe = i == null ? void 0 : i.formMenuSelect) == null ? void 0 : pe.length) > 0 ? {
|
|
2171
|
-
groupSelect: (
|
|
2178
|
+
groupSelect: (U = i == null ? void 0 : i.groupSelect) == null ? void 0 : U.split(/[::]/).map((h) => h.trim()),
|
|
2172
2179
|
menuSelect: i == null ? void 0 : i.formMenuSelect,
|
|
2173
2180
|
selectRelateType: "",
|
|
2174
2181
|
type: (i == null ? void 0 : i.formType) ?? (i != null && i.groupSelect ? "Select" : "")
|
|
@@ -2179,44 +2186,44 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2179
2186
|
var g;
|
|
2180
2187
|
return f.value = (g = n == null ? void 0 : n.find((i, v) => (i == null ? void 0 : i.prop) === (f == null ? void 0 : f.name))) == null ? void 0 : g.value, f;
|
|
2181
2188
|
}), !Ol.value) return;
|
|
2182
|
-
let o = "", d = (y = (w = (
|
|
2189
|
+
let o = "", d = (y = (w = (x = J(r)) == null ? void 0 : x.find((f) => (f == null ? void 0 : f.key) === "header")) == null ? void 0 : w.contents) == null ? void 0 : y.find((f, g) => {
|
|
2183
2190
|
var i, v, B;
|
|
2184
2191
|
return (f == null ? void 0 : f.label) === hl.value || (g == null ? void 0 : g.toString()) === ((B = (v = (i = hl.value) == null ? void 0 : i.split("a")) == null ? void 0 : v[1]) == null ? void 0 : B.toString());
|
|
2185
|
-
}), c = (
|
|
2186
|
-
if ((N = (S = (
|
|
2187
|
-
var g, i, v, B,
|
|
2188
|
-
p && ((v = (i = (g = f == null ? void 0 : f.optionUrl) == null ? void 0 : g.groupSelect) == null ? void 0 : i[1]) != null && v.includes("[")) && (o = (
|
|
2192
|
+
}), c = (O = d == null ? void 0 : d.optionUrl) == null ? void 0 : O.menuSelect, p = !0;
|
|
2193
|
+
if ((N = (S = (A = J(r)) == null ? void 0 : A.find((f) => (f == null ? void 0 : f.key) === "header")) == null ? void 0 : S.contents) == null || N.forEach((f) => {
|
|
2194
|
+
var g, i, v, B, _, X;
|
|
2195
|
+
p && ((v = (i = (g = f == null ? void 0 : f.optionUrl) == null ? void 0 : g.groupSelect) == null ? void 0 : i[1]) != null && v.includes("[")) && (o = (_ = (B = f == null ? void 0 : f.optionUrl) == null ? void 0 : B.groupSelect) == null ? void 0 : _[1], JSON.stringify(c) === JSON.stringify((X = f == null ? void 0 : f.optionUrl) == null ? void 0 : X.menuSelect) && (p = !1));
|
|
2189
2196
|
}), (T = d == null ? void 0 : d.optionUrl) != null && T.menuSelect && Ol.value) {
|
|
2190
2197
|
let f = await nr(d), g;
|
|
2191
2198
|
if ((j = d == null ? void 0 : d.optionUrl) == null || j.menuSelect, f == null || f.forEach((i) => {
|
|
2192
|
-
var v, B,
|
|
2193
|
-
o === ((B = (v = d == null ? void 0 : d.optionUrl) == null ? void 0 : v.groupSelect) == null ? void 0 : B[1]) && ((ne = (
|
|
2199
|
+
var v, B, _, X, ne, V, W, Y, C, P;
|
|
2200
|
+
o === ((B = (v = d == null ? void 0 : d.optionUrl) == null ? void 0 : v.groupSelect) == null ? void 0 : B[1]) && ((ne = (X = (_ = d == null ? void 0 : d.optionUrl) == null ? void 0 : _.groupSelect) == null ? void 0 : X[1]) != null && ne.includes("[")) && ((P = J(i)) == null ? void 0 : P[(C = (Y = (W = (V = d == null ? void 0 : d.optionUrl) == null ? void 0 : V.groupSelect) == null ? void 0 : W[1]) == null ? void 0 : Y.replaceAll("[", "")) == null ? void 0 : C.replaceAll("]", "")]) === (d == null ? void 0 : d.value) && (g = i);
|
|
2194
2201
|
}), g) {
|
|
2195
2202
|
let i = J(a);
|
|
2196
|
-
i = i == null ? void 0 : i.map((
|
|
2197
|
-
var
|
|
2198
|
-
return (g != null && g[
|
|
2203
|
+
i = i == null ? void 0 : i.map((_) => {
|
|
2204
|
+
var X, ne, V, W, Y, C, P, F, le, z, t;
|
|
2205
|
+
return (g != null && g[_ == null ? void 0 : _.label] || g != null && g[(W = (V = (ne = (X = _ == null ? void 0 : _.optionUrl) == null ? void 0 : X.groupSelect) == null ? void 0 : ne[1]) == null ? void 0 : V.replaceAll("[", "")) == null ? void 0 : W.replaceAll("]", "")]) && ((P = (C = (Y = _ == null ? void 0 : _.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : C[1]) != null && P.includes("[")) && (_.value = (g == null ? void 0 : g[_ == null ? void 0 : _.label]) || (g == null ? void 0 : g[(t = (z = (le = (F = _ == null ? void 0 : _.optionUrl) == null ? void 0 : F.groupSelect) == null ? void 0 : le[1]) == null ? void 0 : z.replaceAll("[", "")) == null ? void 0 : t.replaceAll("]", "")])), _;
|
|
2199
2206
|
}), ol.value = J(i);
|
|
2200
2207
|
let v = J(i);
|
|
2201
|
-
v = v == null ? void 0 : v.map((
|
|
2202
|
-
var
|
|
2203
|
-
return (ne = (
|
|
2208
|
+
v = v == null ? void 0 : v.map((_) => {
|
|
2209
|
+
var X, ne, V, W, Y, C;
|
|
2210
|
+
return (ne = (X = _ == null ? void 0 : _.optionUrl) == null ? void 0 : X.menuSelect) != null && ne.some((P) => P == null ? void 0 : P.includes("[")) && (_.optionUrl.oldMenuSelect = (W = (V = J(_)) == null ? void 0 : V.optionUrl) == null ? void 0 : W.menuSelect, _.optionUrl.menuSelect = (C = (Y = _ == null ? void 0 : _.optionUrl) == null ? void 0 : Y.menuSelect) == null ? void 0 : C.map((P) => {
|
|
2204
2211
|
var F, le, z, t;
|
|
2205
|
-
if (
|
|
2206
|
-
let M = (le = (F =
|
|
2207
|
-
|
|
2212
|
+
if (P != null && P.includes("[")) {
|
|
2213
|
+
let M = (le = (F = P == null ? void 0 : P.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : F.split(":")) == null ? void 0 : le[1];
|
|
2214
|
+
P = (t = (z = J(i)) == null ? void 0 : z.find((E) => (E == null ? void 0 : E.label) === M)) == null ? void 0 : t.value;
|
|
2208
2215
|
}
|
|
2209
|
-
return
|
|
2210
|
-
})),
|
|
2216
|
+
return P;
|
|
2217
|
+
})), _;
|
|
2211
2218
|
}), ol.value = v;
|
|
2212
2219
|
let B = {};
|
|
2213
|
-
(m = ol.value) == null || m.forEach((
|
|
2214
|
-
B[
|
|
2215
|
-
}),
|
|
2220
|
+
(m = ol.value) == null || m.forEach((_) => {
|
|
2221
|
+
B[_.prop] = _ == null ? void 0 : _.value;
|
|
2222
|
+
}), Ke.value = B;
|
|
2216
2223
|
}
|
|
2217
2224
|
}
|
|
2218
2225
|
Ol.value = !1;
|
|
2219
|
-
},
|
|
2226
|
+
}, sn = (e) => e ? (e == null ? void 0 : e.toUpperCase()) === "INPUT" ? "TEXTAREA" : e : "TEXTAREA", un = (e) => {
|
|
2220
2227
|
var o, d;
|
|
2221
2228
|
const l = (d = (o = Ge.value) == null ? void 0 : o.find((c) => (c == null ? void 0 : c.label) === (e == null ? void 0 : e.label))) == null ? void 0 : d.multiple, r = e == null ? void 0 : e.prop;
|
|
2222
2229
|
if ((e == null ? void 0 : e.formType) != "Select")
|
|
@@ -2225,21 +2232,21 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2225
2232
|
const p = c == null ? void 0 : c[r];
|
|
2226
2233
|
l && lr(p) && (c[r] = [p]), !l && !lr(p) && (c[r] = "");
|
|
2227
2234
|
});
|
|
2228
|
-
},
|
|
2235
|
+
}, Ba = (e, l) => {
|
|
2229
2236
|
var r;
|
|
2230
2237
|
return l == null || l.forEach((a) => {
|
|
2231
2238
|
e[a == null ? void 0 : a.prop] = a == null ? void 0 : a.value;
|
|
2232
|
-
}), e.children && ((r = e.children) == null ? void 0 : r.length) > 0 && (e.children = e.children.map((a) =>
|
|
2239
|
+
}), e.children && ((r = e.children) == null ? void 0 : r.length) > 0 && (e.children = e.children.map((a) => Ba(a, l))), e;
|
|
2233
2240
|
}, ba = (e) => {
|
|
2234
2241
|
var r, a, n, o, d, c;
|
|
2235
2242
|
Pl("");
|
|
2236
2243
|
const l = (r = ol.value) == null ? void 0 : r.reduce((p, b) => (p[b.name] = b.value, p), {});
|
|
2237
2244
|
if (((a = Object.keys(l)) == null ? void 0 : a.length) > 0) {
|
|
2238
|
-
|
|
2239
|
-
const p = (c = (d =
|
|
2240
|
-
var
|
|
2241
|
-
const s = (w = (
|
|
2242
|
-
return
|
|
2245
|
+
Ke.value = l, nl.value = "", Sl.value = (n = I.value) == null ? void 0 : n.length, kl.value = (o = gl.value) == null ? void 0 : o.filter((b) => (b == null ? void 0 : b.label) !== "新增");
|
|
2246
|
+
const p = (c = (d = $e.value) == null ? void 0 : d.filter((b) => (b == null ? void 0 : b.label) !== "操作")) == null ? void 0 : c.map((b) => {
|
|
2247
|
+
var x, w, y;
|
|
2248
|
+
const s = (w = (x = Ge.value) == null ? void 0 : x.find((O) => (O == null ? void 0 : O.label) === (b == null ? void 0 : b.label))) == null ? void 0 : w.multiple;
|
|
2249
|
+
return un(b), {
|
|
2243
2250
|
...b,
|
|
2244
2251
|
contents: (b == null ? void 0 : b.options) ?? [],
|
|
2245
2252
|
// type: 'edit',
|
|
@@ -2254,26 +2261,26 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2254
2261
|
// columnType: convertColType(col?.formType) || col?.columnType
|
|
2255
2262
|
};
|
|
2256
2263
|
});
|
|
2257
|
-
|
|
2264
|
+
$.value = p == null ? void 0 : p.map((b) => Ba(b, [{
|
|
2258
2265
|
prop: "type",
|
|
2259
2266
|
value: "edit"
|
|
2260
|
-
}, { prop: "columnType", value:
|
|
2267
|
+
}, { prop: "columnType", value: sn(b == null ? void 0 : b.formType) || (b == null ? void 0 : b.columnType) }])), e === "createClick" && wl(!1);
|
|
2261
2268
|
}
|
|
2262
2269
|
}, ml = {
|
|
2263
2270
|
START: "开始时间",
|
|
2264
2271
|
END: "结束时间",
|
|
2265
2272
|
HOURS: "工时"
|
|
2266
|
-
},
|
|
2273
|
+
}, on = (e, l) => Number(Xa(l).diff(Xa(e), "day", !0).toFixed(1)), Ma = (e) => {
|
|
2267
2274
|
var o;
|
|
2268
2275
|
const l = u.itemData, r = (o = l == null ? void 0 : l.find((d) => (d == null ? void 0 : d.key) === "header")) == null ? void 0 : o.contents, a = /* @__PURE__ */ new Map();
|
|
2269
2276
|
return r == null || r.forEach((d, c) => {
|
|
2270
2277
|
const { label: p } = d;
|
|
2271
2278
|
a.set(p, c);
|
|
2272
2279
|
}), !a.has(ml.START) || !a.has(ml.END) || !a.has(ml.HOURS) ? e : e == null ? void 0 : e.map((d) => {
|
|
2273
|
-
const c = d == null ? void 0 : d[ml.START], p = d == null ? void 0 : d[ml.END], b =
|
|
2280
|
+
const c = d == null ? void 0 : d[ml.START], p = d == null ? void 0 : d[ml.END], b = on(c, p);
|
|
2274
2281
|
return c && p && (d[ml.HOURS] = `${b}天`), d;
|
|
2275
2282
|
});
|
|
2276
|
-
},
|
|
2283
|
+
}, Na = (e, l, r = 0) => {
|
|
2277
2284
|
if (r > ((l == null ? void 0 : l.length) ?? "")) return e;
|
|
2278
2285
|
const a = l == null ? void 0 : l[r], n = /* @__PURE__ */ new Map();
|
|
2279
2286
|
for (const d of e) {
|
|
@@ -2283,43 +2290,43 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2283
2290
|
const o = [];
|
|
2284
2291
|
for (const [d, c] of n) {
|
|
2285
2292
|
const [p, ...b] = c, s = { ...p };
|
|
2286
|
-
r + 1 === ((l == null ? void 0 : l.length) ?? "") ? s.children = c == null ? void 0 : c.map((
|
|
2293
|
+
r + 1 === ((l == null ? void 0 : l.length) ?? "") ? s.children = c == null ? void 0 : c.map((x) => (x.level = J(r) + 1, x)).filter((x, w) => w !== 0) : b.length > 0 && (s.children = Na(b, l, r + 1)), s.level = r, o.push(s);
|
|
2287
2294
|
}
|
|
2288
2295
|
return o;
|
|
2289
|
-
},
|
|
2296
|
+
}, Fa = (e, l, r) => {
|
|
2290
2297
|
var n;
|
|
2291
2298
|
if (!(l != null && l.contents) || ((n = l == null ? void 0 : l.contents) == null ? void 0 : n.length) === 0)
|
|
2292
2299
|
return e;
|
|
2293
2300
|
let a = [];
|
|
2294
|
-
return a =
|
|
2295
|
-
},
|
|
2296
|
-
var w, y,
|
|
2301
|
+
return a = Na(e, l == null ? void 0 : l.contents, 0), a;
|
|
2302
|
+
}, za = (e, l) => {
|
|
2303
|
+
var w, y, O, A, S, N, T, j, m, f, g, i, v, B, _, X, ne, V, W, Y, C, P, F, le, z;
|
|
2297
2304
|
const r = e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.key) === "header");
|
|
2298
2305
|
e == null || e.filter((t) => (t == null ? void 0 : t.key) === "tableIndexColumn")[0];
|
|
2299
2306
|
const a = e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.key) === "childTree")[0];
|
|
2300
2307
|
let n = l;
|
|
2301
2308
|
const o = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.key) === "page"), d = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.key) === "rowButton"), c = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.key) === "extraButton"), p = e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.key) === "tableContents"), b = e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.key) === "tableIndex");
|
|
2302
|
-
Ge.value = (y = (w = e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.key) === "tableToForm")) == null ? void 0 : w[0]) == null ? void 0 : y.contents,
|
|
2309
|
+
Ge.value = (y = (w = e == null ? void 0 : e.filter((t) => (t == null ? void 0 : t.key) === "tableToForm")) == null ? void 0 : w[0]) == null ? void 0 : y.contents, xa.value = (o == null ? void 0 : o.contents) ?? !0;
|
|
2303
2310
|
let s = [];
|
|
2304
|
-
|
|
2305
|
-
let
|
|
2306
|
-
if (
|
|
2311
|
+
yl.value === "" ? s = r == null ? void 0 : r[0] : s = (r == null ? void 0 : r.find((t) => (t == null ? void 0 : t.selectLabel) === "(" + yl.value + ")")) ?? (r == null ? void 0 : r.find((t) => !(t != null && t.selectLabel)));
|
|
2312
|
+
let x = [];
|
|
2313
|
+
if (yl.value === "" ? x = b == null ? void 0 : b[0] : x = (b == null ? void 0 : b.find((t) => (t == null ? void 0 : t.selectLabel) === "(" + yl.value + ")")) ?? (b == null ? void 0 : b.find((t) => !(t != null && t.selectLabel))), ((O = s == null ? void 0 : s.contents) == null ? void 0 : O.length) > 0) {
|
|
2307
2314
|
let t = [];
|
|
2308
|
-
if (s != null && s.contents.some((
|
|
2309
|
-
il.value === "" ? t = (S = (
|
|
2315
|
+
if (s != null && s.contents.some((U) => Array.isArray(U) && (U == null ? void 0 : U.find((h) => h.children))))
|
|
2316
|
+
il.value === "" ? t = (S = (A = Za(s == null ? void 0 : s.contents)) == null ? void 0 : A[0]) == null ? void 0 : S.filter((U) => !Array.isArray(U)) : (il.value.split("-"), t = (N = Za(s == null ? void 0 : s.contents)) == null ? void 0 : N[0]);
|
|
2310
2317
|
else {
|
|
2311
|
-
let
|
|
2312
|
-
|
|
2313
|
-
var
|
|
2318
|
+
let U = s != null && s.contents.some((h) => Array.isArray(h)) ? (T = s == null ? void 0 : s.contents) == null ? void 0 : T[0] : s == null ? void 0 : s.contents;
|
|
2319
|
+
U == null || U.forEach((h, ce) => {
|
|
2320
|
+
var Ce, xe, Kl, Bl;
|
|
2314
2321
|
let de = "";
|
|
2315
|
-
(xe = (
|
|
2316
|
-
var
|
|
2322
|
+
(xe = (Ce = Q.value) == null ? void 0 : Ce.split("/")) == null || xe.forEach((Ie) => {
|
|
2323
|
+
var Ml, Nl, Fl;
|
|
2317
2324
|
if (Ie !== "") {
|
|
2318
|
-
let Tl = (
|
|
2325
|
+
let Tl = (Fl = (Nl = (Ml = Ie == null ? void 0 : Ie.split(re + "updateLoading")) == null ? void 0 : Ml[0]) == null ? void 0 : Nl.split(re + "loading")) == null ? void 0 : Fl[0];
|
|
2319
2326
|
de = de === "" ? de + Tl : de + "/" + Tl;
|
|
2320
2327
|
}
|
|
2321
2328
|
}), de = de + re + (h == null ? void 0 : h.directiveLabel);
|
|
2322
|
-
const
|
|
2329
|
+
const ge = (Kl = Ge.value) == null ? void 0 : Kl.find((Ie) => (Ie == null ? void 0 : Ie.prop) === (h == null ? void 0 : h.prop));
|
|
2323
2330
|
t.push({
|
|
2324
2331
|
label: (h == null ? void 0 : h.label) ?? "",
|
|
2325
2332
|
prop: (h == null ? void 0 : h.label) === "操作" ? "operate" : (h == null ? void 0 : h.prop) ?? "a" + ce,
|
|
@@ -2345,65 +2352,65 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2345
2352
|
value: (h == null ? void 0 : h.value) ?? "",
|
|
2346
2353
|
formMenuSelect: (h == null ? void 0 : h.formMenuSelect) ?? [],
|
|
2347
2354
|
isRoute: (h == null ? void 0 : h.isRoute) ?? !1,
|
|
2348
|
-
groupSelect: h != null && h.groupSelect ? (
|
|
2355
|
+
groupSelect: h != null && h.groupSelect ? (Bl = h == null ? void 0 : h.groupSelect) == null ? void 0 : Bl.replaceAll('"', "").split(":") : [],
|
|
2349
2356
|
isMainKey: (h == null ? void 0 : h.isMainKey) || (h == null ? void 0 : h.directiveLabel) && !n[de],
|
|
2350
2357
|
// 同步弹窗列类型到表格列类型
|
|
2351
|
-
columnType: (
|
|
2358
|
+
columnType: (ge == null ? void 0 : ge.type) || (h == null ? void 0 : h.columnType) || "TEXTAREA",
|
|
2352
2359
|
directiveLabel: h == null ? void 0 : h.directiveLabel,
|
|
2353
2360
|
isExistChild: !!(h != null && h.directiveLabel && n[de]),
|
|
2354
2361
|
childPath: de
|
|
2355
2362
|
});
|
|
2356
2363
|
});
|
|
2357
2364
|
}
|
|
2358
|
-
|
|
2359
|
-
let M = (v = (i =
|
|
2360
|
-
prop: (
|
|
2361
|
-
column:
|
|
2365
|
+
$.value = Va(t), al.value = Va(t), Z.value = (j = $.value) == null ? void 0 : j.map((U) => U == null ? void 0 : U.label), Re.value = (m = $.value) == null ? void 0 : m.every((U) => U == null ? void 0 : U.filterable), ye.value = (f = $.value) == null ? void 0 : f.every((U) => U == null ? void 0 : U.operable), Je.value = (g = $.value) == null ? void 0 : g.every((U) => U == null ? void 0 : U.sortable);
|
|
2366
|
+
let M = (v = (i = Nn($.value)) == null ? void 0 : i.filter((U) => (U == null ? void 0 : U.type) !== "operate")) == null ? void 0 : v.map((U, h) => ({
|
|
2367
|
+
prop: (U == null ? void 0 : U.prop) ?? "a" + h,
|
|
2368
|
+
column: U.label
|
|
2362
2369
|
}));
|
|
2363
2370
|
Ye.value = M;
|
|
2364
2371
|
let E = [];
|
|
2365
|
-
|
|
2366
|
-
let oe = Array.isArray((B = E == null ? void 0 : E.contents) == null ? void 0 : B[0]) && ((
|
|
2367
|
-
|
|
2368
|
-
if (!Array.isArray(
|
|
2372
|
+
yl.value === "" ? E = p == null ? void 0 : p[0] : E = (p == null ? void 0 : p.find((U) => (U == null ? void 0 : U.selectLabel) === "(" + yl.value + ")")) ?? (p == null ? void 0 : p.find((U) => !(U != null && U.selectLabel)));
|
|
2373
|
+
let oe = Array.isArray((B = E == null ? void 0 : E.contents) == null ? void 0 : B[0]) && ((_ = E == null ? void 0 : E.contents) != null && _[0].every((U) => Array.isArray(U))) ? (X = E == null ? void 0 : E.contents) == null ? void 0 : X[0] : E == null ? void 0 : E.contents;
|
|
2374
|
+
x != null && x.contents && ((ne = x == null ? void 0 : x.contents) == null ? void 0 : ne.length) !== 0 && (oe = (V = J(oe)) == null ? void 0 : V.map((U, h) => {
|
|
2375
|
+
if (!Array.isArray(U)) {
|
|
2369
2376
|
let ce = {};
|
|
2370
|
-
for (let de in
|
|
2371
|
-
de !== "id" && de !== "index" && (ce[de] =
|
|
2372
|
-
|
|
2377
|
+
for (let de in U)
|
|
2378
|
+
de !== "id" && de !== "index" && (ce[de] = U[de]);
|
|
2379
|
+
U = Object.values(ce);
|
|
2373
2380
|
}
|
|
2374
|
-
return
|
|
2381
|
+
return U;
|
|
2375
2382
|
}));
|
|
2376
|
-
const me = !!((W =
|
|
2377
|
-
oe = or(oe,
|
|
2383
|
+
const me = !!((W = $.value) != null && W.find((U) => U.prop === "index"));
|
|
2384
|
+
oe = or(oe, x == null ? void 0 : x.contents, me);
|
|
2378
2385
|
const pe = [];
|
|
2379
|
-
oe == null || oe.forEach((
|
|
2386
|
+
oe == null || oe.forEach((U, h) => {
|
|
2380
2387
|
var de;
|
|
2381
2388
|
let ce = {};
|
|
2382
|
-
if (Array.isArray(
|
|
2383
|
-
let
|
|
2384
|
-
|
|
2385
|
-
var
|
|
2386
|
-
if ((
|
|
2389
|
+
if (Array.isArray(U)) {
|
|
2390
|
+
let ge = [];
|
|
2391
|
+
U == null || U.filter((Ce) => !(Ce != null && Ce.id)).forEach((Ce, xe) => {
|
|
2392
|
+
var Kl, Bl, Ie, Ml, Nl, Fl;
|
|
2393
|
+
if ((Kl = M == null ? void 0 : M[xe]) != null && Kl.prop && !Array.isArray(Ce)) {
|
|
2387
2394
|
let Tl = {};
|
|
2388
|
-
Tl[M[xe].column] =
|
|
2389
|
-
var
|
|
2390
|
-
return ((
|
|
2391
|
-
}) ? (
|
|
2392
|
-
var
|
|
2393
|
-
return ((
|
|
2394
|
-
})) == null ? void 0 :
|
|
2395
|
-
} else Array.isArray(
|
|
2395
|
+
Tl[M[xe].column] = Ce, Te != null && Te.value && ((Bl = Te == null ? void 0 : Te.value) == null ? void 0 : Bl.length) > 0 && ((Ie = Te == null ? void 0 : Te.value) != null && Ie.find((el) => JSON.stringify(el == null ? void 0 : el[0]) === JSON.stringify(Tl))) && (ge = (Ml = Te == null ? void 0 : Te.value) == null ? void 0 : Ml.find((el) => JSON.stringify(el == null ? void 0 : el[0]) === JSON.stringify(Tl))), ge && ge.length > 0 ? ce[M[xe].prop] = ge != null && ge.find((el) => {
|
|
2396
|
+
var zl;
|
|
2397
|
+
return ((zl = Object.keys(el)) == null ? void 0 : zl[0]) === M[xe].column;
|
|
2398
|
+
}) ? (Nl = ge == null ? void 0 : ge.find((el) => {
|
|
2399
|
+
var zl;
|
|
2400
|
+
return ((zl = Object.keys(el)) == null ? void 0 : zl[0]) === M[xe].column;
|
|
2401
|
+
})) == null ? void 0 : Nl[M[xe].column] : Ce : ce[M[xe].prop] = Ce;
|
|
2402
|
+
} else Array.isArray(Ce) && ((Fl = M[xe]) != null && Fl.prop ? ce[M[xe].prop] = Ce : ce.children = Ta(Ce, M));
|
|
2396
2403
|
});
|
|
2397
2404
|
} else
|
|
2398
|
-
ce =
|
|
2399
|
-
Array.isArray(
|
|
2400
|
-
}), I.value =
|
|
2405
|
+
ce = U;
|
|
2406
|
+
Array.isArray(U) && U.some((ge) => ge == null ? void 0 : ge.id) ? pe.push(Object.assign(ce, { id: (de = U == null ? void 0 : U.find((ge) => ge.id)) == null ? void 0 : de.id })) : ce.id ? pe.push(ce) : pe.push(Object.assign(ce, { id: h.toString() }));
|
|
2407
|
+
}), I.value = Fa(pe, a, $.value), Ql.value = pe, (Y = Ql.value) == null || Y.forEach((U) => {
|
|
2401
2408
|
var h;
|
|
2402
|
-
(h =
|
|
2409
|
+
(h = Hl.value) == null || h.set(U.id, U);
|
|
2403
2410
|
});
|
|
2404
2411
|
} else
|
|
2405
|
-
|
|
2406
|
-
((C = d == null ? void 0 : d.contents) == null ? void 0 : C.length) > 0 ?
|
|
2412
|
+
$.value = [], $e.value = [], I.value = [], Ql.value = [], Hl.value = /* @__PURE__ */ new Map();
|
|
2413
|
+
((C = d == null ? void 0 : d.contents) == null ? void 0 : C.length) > 0 ? fl.value = d == null ? void 0 : d.contents : fl.value = [], ((P = c == null ? void 0 : c.contents) == null ? void 0 : P.length) > 0 ? (kl.value = c == null ? void 0 : c.contents, gl.value = c == null ? void 0 : c.contents) : (kl.value = [], gl.value = []), Sl.value = ((F = I == null ? void 0 : I.value) == null ? void 0 : F.length) ?? 0, Ma(I.value), Vl.value = I.value, Ze.value && ($.value = (z = (le = $e.value) == null ? void 0 : le.filter((t) => (t == null ? void 0 : t.label) !== "操作")) == null ? void 0 : z.map((t) => {
|
|
2407
2414
|
var M;
|
|
2408
2415
|
return {
|
|
2409
2416
|
...t,
|
|
@@ -2418,7 +2425,7 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2418
2425
|
}), ba());
|
|
2419
2426
|
};
|
|
2420
2427
|
Ne(
|
|
2421
|
-
() => [u.itemData,
|
|
2428
|
+
() => [u.itemData, yl.value, pr.value, il.value, Te == null ? void 0 : Te.value],
|
|
2422
2429
|
async () => {
|
|
2423
2430
|
var e, l, r, a, n, o;
|
|
2424
2431
|
if ((e = u == null ? void 0 : u.itemData) != null && e.find((d) => (d == null ? void 0 : d.key) === "columnPath") && !((l = Cl.value) != null && l.find((d) => {
|
|
@@ -2431,30 +2438,30 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2431
2438
|
};
|
|
2432
2439
|
d != null && d.find((p) => (p == null ? void 0 : p.key) === (c == null ? void 0 : c.key)) ? d = d == null ? void 0 : d.map((p) => ((p == null ? void 0 : p.key) === (c == null ? void 0 : c.key) && (p.value = c.value), p)) : d.push(c), je.setTableViewContents(d);
|
|
2433
2440
|
}
|
|
2434
|
-
|
|
2441
|
+
za(u.itemData, u.allMapContents);
|
|
2435
2442
|
},
|
|
2436
2443
|
{ deep: !0, immediate: !0 }
|
|
2437
2444
|
), Ne(() => u == null ? void 0 : u.operatingForm, (e) => {
|
|
2438
|
-
e != null && e.form && (Pl(e == null ? void 0 : e.form), Xe.value = e == null ? void 0 : e.dialogTitle,
|
|
2445
|
+
e != null && e.form && (Pl(e == null ? void 0 : e.form), Xe.value = e == null ? void 0 : e.dialogTitle, Zl.value = !0, ul.value = !0);
|
|
2439
2446
|
}, { immediate: !0, deep: !0 });
|
|
2440
|
-
const
|
|
2447
|
+
const Ja = () => {
|
|
2441
2448
|
var e;
|
|
2442
2449
|
(e = Ae.value) != null && e.includes("read") && (Ze.value = !Ze.value);
|
|
2443
|
-
},
|
|
2444
|
-
|
|
2450
|
+
}, tn = () => {
|
|
2451
|
+
ea.value = !ea.value;
|
|
2445
2452
|
};
|
|
2446
2453
|
Ne(() => {
|
|
2447
2454
|
var e;
|
|
2448
2455
|
return (e = u == null ? void 0 : u.config) == null ? void 0 : e.viewport;
|
|
2449
2456
|
}, (e) => {
|
|
2450
2457
|
var l;
|
|
2451
|
-
Ae.value = e, (e == null ? void 0 : e.length) === 0 ? Ze.value = !1 : (e != null && e.includes("read") || (Ze.value = !0), e != null && e.includes("edit") || (Ze.value = !1)),
|
|
2458
|
+
Ae.value = e, (e == null ? void 0 : e.length) === 0 ? Ze.value = !1 : (e != null && e.includes("read") || (Ze.value = !0), e != null && e.includes("edit") || (Ze.value = !1)), be.value = ((l = u == null ? void 0 : u.config) == null ? void 0 : l.showIndex) || Ze.value;
|
|
2452
2459
|
}, { immediate: !0 }), Ne(() => Ze.value, (e) => {
|
|
2453
2460
|
var l;
|
|
2454
|
-
e ? (ba("viewChange"), je.setCacheUpdatingData(null)) : (kl.value =
|
|
2461
|
+
e ? (ba("viewChange"), je.setCacheUpdatingData(null)) : (kl.value = gl.value, $.value = al.value, _l.value && (je.setTableLoading(u == null ? void 0 : u.index), te("change", _l.value))), ae.value = e, be.value = e || ((l = u == null ? void 0 : u.config) == null ? void 0 : l.showIndex);
|
|
2455
2462
|
}, { immediate: !0 }), Ne(() => {
|
|
2456
2463
|
var e;
|
|
2457
|
-
return (e =
|
|
2464
|
+
return (e = Ca.value) == null ? void 0 : e.length;
|
|
2458
2465
|
}, (e) => {
|
|
2459
2466
|
e === 0 && (ue.currentPage = 1);
|
|
2460
2467
|
}), Ne(() => u == null ? void 0 : u.compNames, (e) => {
|
|
@@ -2471,30 +2478,30 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2471
2478
|
}
|
|
2472
2479
|
];
|
|
2473
2480
|
}, { immediate: !0 }), R(!1);
|
|
2474
|
-
const
|
|
2481
|
+
const cn = (e, l) => {
|
|
2475
2482
|
var r;
|
|
2476
2483
|
ba("createClick"), l === ue.pageSize && (ue.currentPage = Math.ceil(((r = I.value) == null ? void 0 : r.length) / ue.pageSize));
|
|
2477
|
-
},
|
|
2484
|
+
}, dn = (e, l, r) => {
|
|
2478
2485
|
var a;
|
|
2479
|
-
|
|
2480
|
-
},
|
|
2481
|
-
var p, b, s,
|
|
2486
|
+
Ka(r, e, l), Ke.value = J(e), nl.value = e == null ? void 0 : e.id, Sl.value = (a = I.value) == null ? void 0 : a.length, Xe.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", wl(!1);
|
|
2487
|
+
}, Be = (e) => {
|
|
2488
|
+
var p, b, s, x, w, y, O, A, S, N;
|
|
2482
2489
|
const { row: l, column: r, item: a, slotData: n } = e;
|
|
2483
|
-
let o = l != null && l[r == null ? void 0 : r.prop] || (l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? ((b = (p = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : p[0]) == null ? void 0 : b.contents) ?? ((l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? "0" : l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((
|
|
2490
|
+
let o = l != null && l[r == null ? void 0 : r.prop] || (l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? ((b = (p = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : p[0]) == null ? void 0 : b.contents) ?? ((l == null ? void 0 : l[r == null ? void 0 : r.prop]) === 0 ? "0" : l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((x = (s = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : s[0]) == null ? void 0 : x.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((y = (w = n == null ? void 0 : n[a == null ? void 0 : a.prop]) == null ? void 0 : w[0]) == null ? void 0 : y.contents) ?? (n == null ? void 0 : n[a == null ? void 0 : a.prop]) ?? ((S = (A = l == null ? void 0 : l[(O = a == null ? void 0 : a.child) == null ? void 0 : O.prop]) == null ? void 0 : A[0]) == null ? void 0 : S.contents) ?? (l == null ? void 0 : l[(N = a == null ? void 0 : a.child) == null ? void 0 : N.prop]), c = Array.isArray(o) && !(o != null && o.every((T) => typeof T == "string" || typeof T == "number")) ? "查看" : o;
|
|
2484
2491
|
return c = Array.isArray(c) ? c.join(",") : c, c;
|
|
2485
|
-
},
|
|
2486
|
-
var b, s,
|
|
2492
|
+
}, pn = (e) => {
|
|
2493
|
+
var b, s, x, w, y, O, A, S, N, T;
|
|
2487
2494
|
const { row: l, column: r, item: a, slotData: n } = e;
|
|
2488
|
-
let o = l != null && l[r == null ? void 0 : r.prop] ? ((s = (b = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : b[0]) == null ? void 0 : s.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((w = (
|
|
2495
|
+
let o = l != null && l[r == null ? void 0 : r.prop] ? ((s = (b = l == null ? void 0 : l[r == null ? void 0 : r.prop]) == null ? void 0 : b[0]) == null ? void 0 : s.contents) ?? (l == null ? void 0 : l[r == null ? void 0 : r.prop]) : ((w = (x = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : x[0]) == null ? void 0 : w.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((O = (y = n == null ? void 0 : n[a == null ? void 0 : a.prop]) == null ? void 0 : y[0]) == null ? void 0 : O.contents) ?? (n == null ? void 0 : n[a == null ? void 0 : a.prop]) ?? ((N = (S = l == null ? void 0 : l[(A = a == null ? void 0 : a.child) == null ? void 0 : A.prop]) == null ? void 0 : S[0]) == null ? void 0 : N.contents) ?? (l == null ? void 0 : l[(T = a == null ? void 0 : a.child) == null ? void 0 : T.prop]);
|
|
2489
2496
|
const c = Array.isArray(o) && !(o != null && o.every((j) => typeof j == "string" || typeof j == "number")), p = Array.isArray(o) && (o == null ? void 0 : o.find((j) => j == null ? void 0 : j.url));
|
|
2490
2497
|
return c && p;
|
|
2491
|
-
},
|
|
2492
|
-
return Ne(() =>
|
|
2498
|
+
}, fn = (e, l) => e.find((r) => Object.values(r).some((a) => a === l));
|
|
2499
|
+
return Ne(() => Pe.value, async (e) => {
|
|
2493
2500
|
if (e) {
|
|
2494
|
-
|
|
2495
|
-
const l =
|
|
2496
|
-
if (!l) return
|
|
2497
|
-
await
|
|
2501
|
+
he.setContentLoading(!0), await oa();
|
|
2502
|
+
const l = fn(I.value, e == null ? void 0 : e.data);
|
|
2503
|
+
if (!l) return he.setContentLoading(!1);
|
|
2504
|
+
await Oa(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }), he.setContentLoading(!1);
|
|
2498
2505
|
}
|
|
2499
2506
|
}, { deep: !0, immediate: !0 }), Ne(() => u == null ? void 0 : u.cacheNewData, (e) => {
|
|
2500
2507
|
var l;
|
|
@@ -2506,102 +2513,102 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2506
2513
|
} : r;
|
|
2507
2514
|
})));
|
|
2508
2515
|
}, { immediate: !0, deep: !0 }), (e, l) => {
|
|
2509
|
-
var b, s,
|
|
2516
|
+
var b, s, x, w;
|
|
2510
2517
|
const r = Fe("svg-icon"), a = Fe("el-popover"), n = Fe("el-switch"), o = Fe("el-checkbox"), d = Fe("el-checkbox-group"), c = Fe("el-button"), p = Fe("LookComponent");
|
|
2511
|
-
return
|
|
2512
|
-
|
|
2518
|
+
return H(), ke("div", ms, [
|
|
2519
|
+
_a.value ? (H(), De(xn, {
|
|
2513
2520
|
id: "excel-table",
|
|
2514
2521
|
pageObj: ue,
|
|
2515
|
-
showIndex:
|
|
2516
|
-
isTree: (b =
|
|
2522
|
+
showIndex: be.value,
|
|
2523
|
+
isTree: (b = D.compItem) == null ? void 0 : b.isTree,
|
|
2517
2524
|
summaryInfo: ie,
|
|
2518
|
-
columns:
|
|
2525
|
+
columns: $.value,
|
|
2519
2526
|
defaultSort: Le,
|
|
2520
|
-
isCardViewport:
|
|
2527
|
+
isCardViewport: ea.value,
|
|
2521
2528
|
checkedColumns: Z.value,
|
|
2522
|
-
key: da.value + JSON.stringify(
|
|
2523
|
-
tableData:
|
|
2529
|
+
key: da.value + JSON.stringify($.value),
|
|
2530
|
+
tableData: Ca.value,
|
|
2524
2531
|
isEditViewport: Ze.value,
|
|
2525
|
-
isShowPagination:
|
|
2532
|
+
isShowPagination: xa.value,
|
|
2526
2533
|
isShowEdit: !1,
|
|
2527
2534
|
isShowDelete: !1,
|
|
2528
2535
|
allowSelect: ae.value,
|
|
2529
2536
|
onDbClickRow: Kr,
|
|
2530
2537
|
extraButton: kl.value,
|
|
2531
|
-
rowButton:
|
|
2532
|
-
cacheExtraButtons:
|
|
2538
|
+
rowButton: fl.value,
|
|
2539
|
+
cacheExtraButtons: gl.value,
|
|
2533
2540
|
isClearSelection: ((s = Ve.value) == null ? void 0 : s.length) === 0,
|
|
2534
2541
|
onDoCurrentChange: br,
|
|
2535
2542
|
onDoSizeChange: Sr,
|
|
2536
|
-
onContentClick:
|
|
2543
|
+
onContentClick: Oa,
|
|
2537
2544
|
onRowClick: Mr,
|
|
2538
2545
|
onSelectChange: _r,
|
|
2539
|
-
onCellChange:
|
|
2540
|
-
onChange:
|
|
2546
|
+
onCellChange: dn,
|
|
2547
|
+
onChange: Ka,
|
|
2541
2548
|
onPreview: ga,
|
|
2542
2549
|
onSubmitEditingTable: xr,
|
|
2543
2550
|
onHandleColEditChange: Ar,
|
|
2544
2551
|
onHandleColTypeChange: Ur,
|
|
2545
|
-
onClickButton:
|
|
2546
|
-
},
|
|
2552
|
+
onClickButton: jl
|
|
2553
|
+
}, bn({
|
|
2547
2554
|
headerButton: q((y) => {
|
|
2548
|
-
var
|
|
2555
|
+
var O, A;
|
|
2549
2556
|
return [
|
|
2550
|
-
|
|
2557
|
+
D.showHeader ? (H(), De(us, {
|
|
2551
2558
|
key: 0,
|
|
2552
|
-
pageLayout:
|
|
2553
|
-
lockingPage: Qe(
|
|
2554
|
-
filterValues:
|
|
2555
|
-
selectNums: (
|
|
2556
|
-
dataNums: (
|
|
2557
|
-
compName:
|
|
2558
|
-
isDevMode:
|
|
2559
|
+
pageLayout: D.pageLayout,
|
|
2560
|
+
lockingPage: Qe(ql) === Qe(Q),
|
|
2561
|
+
filterValues: Ea.value,
|
|
2562
|
+
selectNums: (O = Ve.value) == null ? void 0 : O.length,
|
|
2563
|
+
dataNums: (A = I.value) == null ? void 0 : A.length,
|
|
2564
|
+
compName: D.compName,
|
|
2565
|
+
isDevMode: D.isDevMode,
|
|
2559
2566
|
buttons: y.buttons,
|
|
2560
|
-
onButtonClick: l[0] || (l[0] = (S) =>
|
|
2561
|
-
columns:
|
|
2567
|
+
onButtonClick: l[0] || (l[0] = (S) => jl(S, "", {})),
|
|
2568
|
+
columns: $.value,
|
|
2562
2569
|
onFilter: wr,
|
|
2563
2570
|
onGetImportData: mr,
|
|
2564
|
-
level:
|
|
2565
|
-
}, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level"])) :
|
|
2571
|
+
level: D.level
|
|
2572
|
+
}, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level"])) : _e("", !0)
|
|
2566
2573
|
];
|
|
2567
2574
|
}),
|
|
2568
2575
|
viewport: q(() => {
|
|
2569
|
-
var y,
|
|
2576
|
+
var y, O, A, S;
|
|
2570
2577
|
return [
|
|
2571
|
-
((y = I.value) == null ? void 0 : y.length) > 0 &&
|
|
2572
|
-
(
|
|
2578
|
+
((y = I.value) == null ? void 0 : y.length) > 0 && D.allowOperate ? (H(), ke("div", xs, [
|
|
2579
|
+
(O = Ae.value) != null && O.includes("read") && ((A = Ae.value) != null && A.includes("edit")) && ((S = fl.value) != null && S.some((N) => (N == null ? void 0 : N.label) === "编辑")) && !ea.value && Qe(ql) !== Qe(Q) ? (H(), ke("span", {
|
|
2573
2580
|
key: 0,
|
|
2574
2581
|
title: "编辑表格",
|
|
2575
|
-
onClick:
|
|
2582
|
+
onClick: Ja
|
|
2576
2583
|
}, [
|
|
2577
2584
|
se(r, {
|
|
2578
2585
|
name: "editTable",
|
|
2579
2586
|
class: "view-icon"
|
|
2580
2587
|
})
|
|
2581
|
-
])) :
|
|
2582
|
-
|
|
2588
|
+
])) : _e("", !0),
|
|
2589
|
+
fe("span", {
|
|
2583
2590
|
title: "卡片视图",
|
|
2584
|
-
onClick:
|
|
2591
|
+
onClick: tn
|
|
2585
2592
|
}, [
|
|
2586
2593
|
se(r, {
|
|
2587
2594
|
name: "cardViewport",
|
|
2588
2595
|
class: "view-icon"
|
|
2589
2596
|
})
|
|
2590
2597
|
])
|
|
2591
|
-
])) :
|
|
2598
|
+
])) : _e("", !0)
|
|
2592
2599
|
];
|
|
2593
2600
|
}),
|
|
2594
|
-
rowCreate: q(({ row: y, index:
|
|
2595
|
-
|
|
2601
|
+
rowCreate: q(({ row: y, index: O }) => [
|
|
2602
|
+
fe("span", {
|
|
2596
2603
|
title: "新增",
|
|
2597
2604
|
class: "row-create-wrap",
|
|
2598
|
-
onClick: (
|
|
2605
|
+
onClick: (A) => cn(y, O)
|
|
2599
2606
|
}, [
|
|
2600
2607
|
se(r, {
|
|
2601
2608
|
name: "rowCreate",
|
|
2602
2609
|
style: { width: "10px", height: "10px" }
|
|
2603
2610
|
})
|
|
2604
|
-
], 8,
|
|
2611
|
+
], 8, _s)
|
|
2605
2612
|
]),
|
|
2606
2613
|
operateCol: q(() => [
|
|
2607
2614
|
se(a, {
|
|
@@ -2609,10 +2616,10 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2609
2616
|
placement: "left-start",
|
|
2610
2617
|
"popper-class": "menu-operate-popover",
|
|
2611
2618
|
trigger: "hover",
|
|
2612
|
-
onShow:
|
|
2619
|
+
onShow: rn
|
|
2613
2620
|
}, {
|
|
2614
2621
|
reference: q(() => [
|
|
2615
|
-
|
|
2622
|
+
fe("span", Cs, [
|
|
2616
2623
|
se(r, {
|
|
2617
2624
|
name: "operate",
|
|
2618
2625
|
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
@@ -2620,8 +2627,8 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2620
2627
|
])
|
|
2621
2628
|
]),
|
|
2622
2629
|
default: q(() => [
|
|
2623
|
-
|
|
2624
|
-
l[11] || (l[11] =
|
|
2630
|
+
fe("div", Es, [
|
|
2631
|
+
l[11] || (l[11] = fe("div", { class: "group-title" }, "表格操作", -1)),
|
|
2625
2632
|
se(n, {
|
|
2626
2633
|
"model-value": Je.value,
|
|
2627
2634
|
"active-text": "排序",
|
|
@@ -2637,22 +2644,22 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2637
2644
|
onChange: l[3] || (l[3] = (y) => fa(y, "filterable"))
|
|
2638
2645
|
}, null, 8, ["model-value"]),
|
|
2639
2646
|
se(n, {
|
|
2640
|
-
"model-value":
|
|
2647
|
+
"model-value": ye.value,
|
|
2641
2648
|
"active-text": "编辑所有表头",
|
|
2642
2649
|
"inactive-text": "",
|
|
2643
2650
|
onChange: l[4] || (l[4] = (y) => fa(y, "operable"))
|
|
2644
2651
|
}, null, 8, ["model-value"]),
|
|
2645
|
-
l[12] || (l[12] =
|
|
2652
|
+
l[12] || (l[12] = fe("div", { class: "group-title" }, "表格列操作", -1)),
|
|
2646
2653
|
se(d, {
|
|
2647
2654
|
modelValue: Z.value,
|
|
2648
2655
|
"onUpdate:modelValue": l[5] || (l[5] = (y) => Z.value = y),
|
|
2649
2656
|
style: { height: "100%" },
|
|
2650
2657
|
min: 2,
|
|
2651
2658
|
ref_key: "checkboxGroupRef",
|
|
2652
|
-
ref:
|
|
2659
|
+
ref: L
|
|
2653
2660
|
}, {
|
|
2654
2661
|
default: q(() => [
|
|
2655
|
-
(
|
|
2662
|
+
(H(!0), ke(tl, null, cl(Dl.value, (y) => (H(), ke("div", {
|
|
2656
2663
|
style: { display: "flex", "align-items": "center" },
|
|
2657
2664
|
key: y.label
|
|
2658
2665
|
}, [
|
|
@@ -2661,10 +2668,10 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2661
2668
|
style: { width: "100%", marginRight: 0 }
|
|
2662
2669
|
}, {
|
|
2663
2670
|
default: q(() => [
|
|
2664
|
-
|
|
2671
|
+
fe("span", {
|
|
2665
2672
|
title: y.label,
|
|
2666
2673
|
style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
2667
|
-
}, Ee(y.label), 9,
|
|
2674
|
+
}, Ee(y.label), 9, Os)
|
|
2668
2675
|
]),
|
|
2669
2676
|
_: 2
|
|
2670
2677
|
}, 1032, ["value"]),
|
|
@@ -2681,19 +2688,19 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2681
2688
|
})
|
|
2682
2689
|
]),
|
|
2683
2690
|
default: q(() => {
|
|
2684
|
-
var
|
|
2691
|
+
var O;
|
|
2685
2692
|
return [
|
|
2686
|
-
|
|
2687
|
-
(
|
|
2693
|
+
fe("div", Ds, [
|
|
2694
|
+
(H(!0), ke(tl, null, cl((O = Object.keys(y)) == null ? void 0 : O.filter((A) => {
|
|
2688
2695
|
var S;
|
|
2689
|
-
return (S =
|
|
2690
|
-
}), (
|
|
2696
|
+
return (S = Se.value) == null ? void 0 : S.find((N) => (N == null ? void 0 : N.value) === A);
|
|
2697
|
+
}), (A) => {
|
|
2691
2698
|
var S, N;
|
|
2692
|
-
return
|
|
2699
|
+
return H(), ke("div", { key: A }, [
|
|
2693
2700
|
se(n, {
|
|
2694
|
-
"model-value": y == null ? void 0 : y[
|
|
2695
|
-
"active-text": (N = (S =
|
|
2696
|
-
onChange: (T) => Er(T,
|
|
2701
|
+
"model-value": y == null ? void 0 : y[A],
|
|
2702
|
+
"active-text": (N = (S = Se.value) == null ? void 0 : S.find((T) => (T == null ? void 0 : T.value) === A)) == null ? void 0 : N.label,
|
|
2703
|
+
onChange: (T) => Er(T, A, y)
|
|
2697
2704
|
}, null, 8, ["model-value", "active-text", "onChange"])
|
|
2698
2705
|
]);
|
|
2699
2706
|
}), 128))
|
|
@@ -2702,7 +2709,7 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2702
2709
|
}),
|
|
2703
2710
|
_: 2
|
|
2704
2711
|
}, 1024),
|
|
2705
|
-
|
|
2712
|
+
fe("span", Ls, [
|
|
2706
2713
|
se(r, {
|
|
2707
2714
|
name: "drag",
|
|
2708
2715
|
class: "col-drag-icon",
|
|
@@ -2719,9 +2726,9 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2719
2726
|
})
|
|
2720
2727
|
]),
|
|
2721
2728
|
content: q((y) => {
|
|
2722
|
-
var
|
|
2729
|
+
var O, A, S, N, T, j, m, f, g, i, v, B, _, X, ne, V, W, Y;
|
|
2723
2730
|
return [
|
|
2724
|
-
|
|
2731
|
+
pn(y) ? (H(), De(a, {
|
|
2725
2732
|
key: 0,
|
|
2726
2733
|
"popper-class": "file-popover",
|
|
2727
2734
|
placement: "right",
|
|
@@ -2730,42 +2737,42 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2730
2737
|
width: "auto"
|
|
2731
2738
|
}, {
|
|
2732
2739
|
reference: q(() => [
|
|
2733
|
-
|
|
2740
|
+
fe("span", js, Ee(Be(y)), 1)
|
|
2734
2741
|
]),
|
|
2735
2742
|
default: q(() => {
|
|
2736
2743
|
var C;
|
|
2737
2744
|
return [
|
|
2738
|
-
|
|
2739
|
-
(
|
|
2740
|
-
|
|
2745
|
+
fe("div", $s, [
|
|
2746
|
+
(H(!0), ke(tl, null, cl(y == null ? void 0 : y.row[(C = y == null ? void 0 : y.column) == null ? void 0 : C.prop], (P) => (H(), ke("div", Ps, [
|
|
2747
|
+
fe("div", {
|
|
2741
2748
|
class: "prop-url",
|
|
2742
|
-
title:
|
|
2743
|
-
onClick: (F) => Lr(
|
|
2744
|
-
}, Ee(
|
|
2745
|
-
|
|
2749
|
+
title: ra(P),
|
|
2750
|
+
onClick: (F) => Lr(P)
|
|
2751
|
+
}, Ee(ra(P)), 9, ws),
|
|
2752
|
+
fe("div", {
|
|
2746
2753
|
class: "prop-download",
|
|
2747
|
-
onClick: (F) => jr(
|
|
2748
|
-
}, " 下载 ", 8,
|
|
2754
|
+
onClick: (F) => jr(P)
|
|
2755
|
+
}, " 下载 ", 8, Ks)
|
|
2749
2756
|
]))), 256))
|
|
2750
2757
|
])
|
|
2751
2758
|
];
|
|
2752
2759
|
}),
|
|
2753
2760
|
_: 2
|
|
2754
|
-
}, 1024)) : (
|
|
2761
|
+
}, 1024)) : (H(), ke("div", {
|
|
2755
2762
|
key: 1,
|
|
2756
|
-
style:
|
|
2757
|
-
color: !Array.isArray(
|
|
2758
|
-
textDecoration: !Array.isArray(
|
|
2759
|
-
cursor: !Array.isArray(
|
|
2763
|
+
style: dl({
|
|
2764
|
+
color: !Array.isArray(Be(y)) && ((A = (O = Be(y)) == null ? void 0 : O.toString()) != null && A.includes(".txt") || (N = (S = Be(y)) == null ? void 0 : S.toString()) != null && N.includes(".cpt") || (j = (T = Be(y)) == null ? void 0 : T.toString()) != null && j.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
2765
|
+
textDecoration: !Array.isArray(Be(y)) && ((f = (m = Be(y)) == null ? void 0 : m.toString()) != null && f.includes(".txt") || (i = (g = Be(y)) == null ? void 0 : g.toString()) != null && i.includes(".cpt") || (B = (v = Be(y)) == null ? void 0 : v.toString()) != null && B.includes(".cyd")) ? "underline" : "",
|
|
2766
|
+
cursor: !Array.isArray(Be(y)) && ((X = (_ = Be(y)) == null ? void 0 : _.toString()) != null && X.includes(".txt") || (V = (ne = Be(y)) == null ? void 0 : ne.toString()) != null && V.includes(".cpt") || (Y = (W = Be(y)) == null ? void 0 : W.toString()) != null && Y.includes(".cyd")) ? "pointer" : "",
|
|
2760
2767
|
marginLeft: (y == null ? void 0 : y.colIndex) === 0 ? `${((y == null ? void 0 : y.level) ?? 0) * 20}px` : 0
|
|
2761
2768
|
}),
|
|
2762
|
-
onClick: (C) => vr(
|
|
2763
|
-
}, Ee(
|
|
2769
|
+
onClick: (C) => vr(Be(y))
|
|
2770
|
+
}, Ee(Be(y) === 0 ? "0" : Be(y)), 13, Bs))
|
|
2764
2771
|
];
|
|
2765
2772
|
}),
|
|
2766
2773
|
_: 2
|
|
2767
2774
|
}, [
|
|
2768
|
-
((
|
|
2775
|
+
((x = fl.value) == null ? void 0 : x.length) > 0 && Qe(ql) !== Qe(Q) ? {
|
|
2769
2776
|
name: "actions",
|
|
2770
2777
|
fn: q(({ item: y }) => [
|
|
2771
2778
|
se(a, {
|
|
@@ -2779,20 +2786,33 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2779
2786
|
style: { cursor: "pointer", width: "15px", height: "15px" }
|
|
2780
2787
|
})
|
|
2781
2788
|
]),
|
|
2782
|
-
default: q(() =>
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2789
|
+
default: q(() => {
|
|
2790
|
+
var O;
|
|
2791
|
+
return [
|
|
2792
|
+
fe("div", Ts, [
|
|
2793
|
+
Xr.value ? (H(), ke("div", {
|
|
2794
|
+
class: "menu-config-item",
|
|
2795
|
+
key: D.index,
|
|
2796
|
+
onClick: (A) => jl("应用至流程", y, { extra: e.content })
|
|
2797
|
+
}, [
|
|
2798
|
+
fe("div", {
|
|
2799
|
+
style: dl({ color: (O = e.content) == null ? void 0 : O.textColor }),
|
|
2800
|
+
class: "extra-button-label"
|
|
2801
|
+
}, " 应用至流程 ", 4)
|
|
2802
|
+
], 8, As)) : _e("", !0),
|
|
2803
|
+
(H(!0), ke(tl, null, cl($r(fl.value, y), (A, S) => (H(), ke("div", {
|
|
2804
|
+
class: "menu-config-item",
|
|
2805
|
+
key: S,
|
|
2806
|
+
onClick: (N) => jl(A == null ? void 0 : A.label, y, { extra: A })
|
|
2807
|
+
}, [
|
|
2808
|
+
fe("div", {
|
|
2809
|
+
style: dl({ color: A == null ? void 0 : A.textColor }),
|
|
2810
|
+
class: "extra-button-label"
|
|
2811
|
+
}, Ee(A == null ? void 0 : A.label), 5)
|
|
2812
|
+
], 8, Us))), 128))
|
|
2813
|
+
])
|
|
2814
|
+
];
|
|
2815
|
+
}),
|
|
2796
2816
|
_: 2
|
|
2797
2817
|
}, 1024)
|
|
2798
2818
|
]),
|
|
@@ -2801,22 +2821,22 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2801
2821
|
((w = I.value) == null ? void 0 : w.length) > 0 ? {
|
|
2802
2822
|
name: "batchButton",
|
|
2803
2823
|
fn: q((y) => [
|
|
2804
|
-
Ga(se(
|
|
2805
|
-
lockingPage: Qe(
|
|
2824
|
+
Ga(se(is, {
|
|
2825
|
+
lockingPage: Qe(ql) === Qe(Q),
|
|
2806
2826
|
buttons: y.buttons,
|
|
2807
2827
|
selectTableItems: Ve.value,
|
|
2808
|
-
onButtonClick: l[1] || (l[1] = (
|
|
2828
|
+
onButtonClick: l[1] || (l[1] = (O) => jl(O, "", {}))
|
|
2809
2829
|
}, null, 8, ["lockingPage", "buttons", "selectTableItems"]), [
|
|
2810
2830
|
[qa, ae.value]
|
|
2811
2831
|
]),
|
|
2812
|
-
Ga(
|
|
2832
|
+
Ga(fe("div", null, null, 512), [
|
|
2813
2833
|
[qa, !ae.value]
|
|
2814
2834
|
])
|
|
2815
2835
|
]),
|
|
2816
2836
|
key: "1"
|
|
2817
2837
|
} : void 0
|
|
2818
|
-
]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection"])) :
|
|
2819
|
-
se(
|
|
2838
|
+
]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection"])) : _e("", !0),
|
|
2839
|
+
se(Wl, {
|
|
2820
2840
|
title: Xe.value,
|
|
2821
2841
|
visible: ul.value,
|
|
2822
2842
|
width: gr.value,
|
|
@@ -2824,21 +2844,21 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2824
2844
|
style: { height: "74%" }
|
|
2825
2845
|
}, {
|
|
2826
2846
|
default: q(() => [
|
|
2827
|
-
|
|
2847
|
+
fe("div", Ms, [
|
|
2828
2848
|
se(xl, {
|
|
2829
2849
|
rowContents: ol.value,
|
|
2830
2850
|
isEnableWrap: !1,
|
|
2831
2851
|
showOperator: !1,
|
|
2832
|
-
onChange:
|
|
2852
|
+
onChange: nn,
|
|
2833
2853
|
onClickTrigger: Dr,
|
|
2834
|
-
isEdit:
|
|
2854
|
+
isEdit: Xl.value,
|
|
2835
2855
|
onBlurChange: Cr,
|
|
2836
2856
|
onPreview: ga
|
|
2837
2857
|
}, null, 8, ["rowContents", "isEdit"])
|
|
2838
2858
|
])
|
|
2839
2859
|
]),
|
|
2840
2860
|
footer: q(() => [
|
|
2841
|
-
|
|
2861
|
+
Zl.value ? (H(), ke("div", Ns, [
|
|
2842
2862
|
se(c, {
|
|
2843
2863
|
onClick: l[6] || (l[6] = (y) => ul.value = !1),
|
|
2844
2864
|
id: "themeBorderButton"
|
|
@@ -2851,7 +2871,7 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2851
2871
|
}),
|
|
2852
2872
|
se(c, {
|
|
2853
2873
|
class: "ok-button",
|
|
2854
|
-
onClick: l[7] || (l[7] = (y) =>
|
|
2874
|
+
onClick: l[7] || (l[7] = (y) => wl(!0)),
|
|
2855
2875
|
id: "themeButton"
|
|
2856
2876
|
}, {
|
|
2857
2877
|
default: q(() => l[14] || (l[14] = [
|
|
@@ -2860,23 +2880,23 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2860
2880
|
_: 1,
|
|
2861
2881
|
__: [14]
|
|
2862
2882
|
})
|
|
2863
|
-
])) :
|
|
2883
|
+
])) : _e("", !0)
|
|
2864
2884
|
]),
|
|
2865
2885
|
_: 1
|
|
2866
2886
|
}, 8, ["title", "visible", "width"]),
|
|
2867
|
-
se(
|
|
2887
|
+
se(Wl, {
|
|
2868
2888
|
title: Xe.value,
|
|
2869
|
-
visible:
|
|
2889
|
+
visible: Yl.value,
|
|
2870
2890
|
width: ca.value,
|
|
2871
|
-
onBeforeDestroy: l[9] || (l[9] = (y) =>
|
|
2891
|
+
onBeforeDestroy: l[9] || (l[9] = (y) => Yl.value = !1)
|
|
2872
2892
|
}, {
|
|
2873
2893
|
default: q(() => [
|
|
2874
|
-
se(
|
|
2894
|
+
se(gs)
|
|
2875
2895
|
]),
|
|
2876
2896
|
footer: q(() => [
|
|
2877
|
-
|
|
2897
|
+
fe("div", Fs, [
|
|
2878
2898
|
se(c, {
|
|
2879
|
-
onClick: l[8] || (l[8] = (y) =>
|
|
2899
|
+
onClick: l[8] || (l[8] = (y) => Yl.value = !1),
|
|
2880
2900
|
class: "cancel-button",
|
|
2881
2901
|
id: "themeBorderButton"
|
|
2882
2902
|
}, {
|
|
@@ -2901,21 +2921,21 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2901
2921
|
]),
|
|
2902
2922
|
_: 1
|
|
2903
2923
|
}, 8, ["title", "visible", "width"]),
|
|
2904
|
-
Me.value ? (
|
|
2924
|
+
Me.value ? (H(), De(_n, {
|
|
2905
2925
|
key: 1,
|
|
2906
2926
|
fileDataList: k.value,
|
|
2907
2927
|
onDestroy: Br
|
|
2908
|
-
}, null, 8, ["fileDataList"])) :
|
|
2909
|
-
ll.value ? (
|
|
2928
|
+
}, null, 8, ["fileDataList"])) : _e("", !0),
|
|
2929
|
+
ll.value ? (H(), De(Wl, {
|
|
2910
2930
|
key: 2,
|
|
2911
2931
|
visible: ll.value,
|
|
2912
|
-
onBeforeDestroy:
|
|
2932
|
+
onBeforeDestroy: ln,
|
|
2913
2933
|
style: { height: "80vh", width: "80vw" },
|
|
2914
2934
|
"body-class": "three-dialog-body",
|
|
2915
2935
|
"footer-class": "three-dialog-footer"
|
|
2916
2936
|
}, {
|
|
2917
2937
|
default: q(() => [
|
|
2918
|
-
se(
|
|
2938
|
+
se(Ln, {
|
|
2919
2939
|
"file-urls": El.value,
|
|
2920
2940
|
isThreeScene: We.value,
|
|
2921
2941
|
isSelfWindow: !0,
|
|
@@ -2923,32 +2943,32 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2923
2943
|
}, null, 8, ["file-urls", "isThreeScene", "threeData"])
|
|
2924
2944
|
]),
|
|
2925
2945
|
_: 1
|
|
2926
|
-
}, 8, ["visible"])) :
|
|
2927
|
-
se(
|
|
2946
|
+
}, 8, ["visible"])) : _e("", !0),
|
|
2947
|
+
se(Wl, {
|
|
2928
2948
|
visible: e.componentVisible,
|
|
2929
2949
|
onBeforeDestroy: l[10] || (l[10] = (y) => e.componentVisible = !1),
|
|
2930
2950
|
width: ca.value,
|
|
2931
2951
|
style: { height: "70vh" }
|
|
2932
2952
|
}, {
|
|
2933
2953
|
default: q(() => [
|
|
2934
|
-
se(p, { dialogItem:
|
|
2954
|
+
se(p, { dialogItem: la.value }, null, 8, ["dialogItem"])
|
|
2935
2955
|
]),
|
|
2936
2956
|
_: 1
|
|
2937
2957
|
}, 8, ["visible", "width"]),
|
|
2938
|
-
se(
|
|
2958
|
+
se(Wl, {
|
|
2939
2959
|
title: Oe.title,
|
|
2940
2960
|
visible: Oe.show,
|
|
2941
2961
|
width: Oe.width,
|
|
2942
2962
|
onBeforeDestroy: Qr
|
|
2943
2963
|
}, {
|
|
2944
2964
|
default: q(() => [
|
|
2945
|
-
|
|
2965
|
+
fe("div", zs, [
|
|
2946
2966
|
se(xl, {
|
|
2947
2967
|
rowContents: Oe == null ? void 0 : Oe.contents,
|
|
2948
2968
|
formRules: Oe == null ? void 0 : Oe.formRules,
|
|
2949
2969
|
showOperator: !1,
|
|
2950
2970
|
buttonValue: Oe.buttonValue,
|
|
2951
|
-
isEdit:
|
|
2971
|
+
isEdit: Xl.value,
|
|
2952
2972
|
isStartJustify: !1,
|
|
2953
2973
|
isEnableWrap: !1,
|
|
2954
2974
|
onOnButtonClick: Hr
|
|
@@ -2960,12 +2980,12 @@ const ar = (L) => L.match(/\((.*)\)/)[1], rr = {
|
|
|
2960
2980
|
]);
|
|
2961
2981
|
};
|
|
2962
2982
|
}
|
|
2963
|
-
},
|
|
2983
|
+
}, lu = /* @__PURE__ */ ta(Js, [["__scopeId", "data-v-8246a6d9"]]);
|
|
2964
2984
|
export {
|
|
2965
|
-
|
|
2966
|
-
|
|
2985
|
+
ks as a,
|
|
2986
|
+
ts as b,
|
|
2967
2987
|
ar as f,
|
|
2968
2988
|
nr as g,
|
|
2969
|
-
|
|
2970
|
-
|
|
2989
|
+
lu as s,
|
|
2990
|
+
ys as u
|
|
2971
2991
|
};
|