ss-component-new 1.1.554 → 1.1.556
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/{index-DnU4tt9j.js → index-A9vxRWRJ.js} +1 -1
- package/dist/{index-BIqrhoc3.js → index-B0KEc4se.js} +3 -3
- package/dist/{index-BXuzdNd8.js → index-B0zewoKU.js} +1 -1
- package/dist/{index-DGtegmw2.cjs → index-B4sdpTyS.cjs} +1 -1
- package/dist/{index-DGA3OWJM.js → index-B8H4YhbP.js} +5 -6
- package/dist/{index-BG1OEOyl.js → index-BBU7IP4E.js} +1 -1
- package/dist/{index-D6aOs9h0.cjs → index-BGxaEDzd.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_14112288_lang-BV7oq1Z4.js → index-BRSajVMs.js} +10989 -9490
- package/dist/{index-CTL7xS-L.js → index-BbArPHI_.js} +3 -3
- package/dist/{index-B5DP9GHv.js → index-BjpzOnQV.js} +77 -78
- package/dist/{index-j0138X4A.js → index-C0fQaxj0.js} +10 -11
- package/dist/index-CQ4Fra8B.cjs +1 -0
- package/dist/{index-CYj1gF5q.cjs → index-CQUG7LOj.cjs} +1 -1
- package/dist/{index-CUmF1cOi.cjs → index-Cc936HCy.cjs} +1 -1
- package/dist/{index-BT2f4FLq.js → index-CrHUNEBr.js} +2 -2
- package/dist/index-CxnxDX6H.cjs +15 -0
- package/dist/index-DGYkSeKR.cjs +1 -0
- package/dist/{index-gBugMNnB.js → index-DKfJ4aOY.js} +1 -1
- package/dist/{index-CsCuCAbN.js → index-DN3mTV37.js} +1 -1
- package/dist/{index-BWR-wioX.js → index-DOcT5e2z.js} +1 -1
- package/dist/{index-D6OLOdzT.cjs → index-DdBP0Wqm.cjs} +1 -1
- package/dist/{index-B3OgUMxZ.cjs → index-DdvfxWm4.cjs} +1 -1
- package/dist/{index-Ca4GQBZm.cjs → index-DgovG-d1.cjs} +1 -1
- package/dist/{index-BvsQ93Dk.cjs → index-Dh1bXLMt.cjs} +1 -1
- package/dist/{index-BxnDBGDC.cjs → index-Dh_dKOHK.cjs} +1 -1
- package/dist/{index-w-MJfuW8.cjs → index-DiVZz6Oe.cjs} +1 -1
- package/dist/index-DsIoySp6.cjs +1 -0
- package/dist/index-DtFsiCW3.cjs +4207 -0
- package/dist/{index-DNmz0vZR.js → index-F0D-IvSv.js} +2 -2
- package/dist/{index-BsItO9KY.cjs → index-PZTeRkmZ.cjs} +1 -1
- package/dist/{index-CpsSJGyI.js → index-VTSBaqt5.js} +1 -1
- package/dist/{index-CcbZfGsJ.js → index-ffDSB4Kw.js} +1239 -1212
- package/dist/{index.vue_vue_type_style_index_0_scoped_d65464db_lang-CfknFSZO.js → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-BMrXZat4.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_d65464db_lang-CMsstxHC.cjs → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-CyuSo2v_.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-bRTgUmAd.js → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-Bst45l6S.js} +13 -13
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-BlwV7pHr.cjs → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-SrVKwnka.cjs} +1 -1
- package/dist/{main-BwaV15pa.js → main-DqytzL3P.js} +2 -2
- package/dist/{main-BKy8Vv3Z.cjs → main-v-FR4zPs.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/threeModel-CmuTBluh.cjs +1 -0
- package/dist/{threeModel-BJjMjU46.js → threeModel-WrnyyU3X.js} +299 -288
- package/package.json +1 -1
- package/dist/index-C2UyEyuW.cjs +0 -1
- package/dist/index-C8DwyrtS.cjs +0 -1
- package/dist/index-CFs5XhDB.cjs +0 -15
- package/dist/index-CZ6afBwK.cjs +0 -1
- package/dist/index-CiZ2YAhq.js +0 -1506
- package/dist/index-Csb_gyiA.cjs +0 -1
- package/dist/index-NzNwF1Bc.cjs +0 -1
- package/dist/index-nuI9V5ye.js +0 -31
- package/dist/threeModel-CMXrjPQi.cjs +0 -1
- package/dist/threeModel.vue_vue_type_style_index_0_scoped_14112288_lang-DCn4bomb.cjs +0 -4207
package/dist/index-CiZ2YAhq.js
DELETED
|
@@ -1,1506 +0,0 @@
|
|
|
1
|
-
import { ref as K, watch as Fe, nextTick as nl, resolveComponent as la, createBlock as Ge, openBlock as ue, withCtx as ee, createElementVNode as fe, renderSlot as Oa, onMounted as ra, createElementBlock as Te, normalizeClass as ol, toDisplayString as Ee, createCommentVNode as ea, Fragment as Ga, renderList as Va, normalizeStyle as qa, createVNode as ne, unref as sl, defineComponent as ul, createSlots as fl, createTextVNode as Je } from "vue";
|
|
2
|
-
import { c1 as tl, bW as Sa, m as cl, c2 as Ea, c3 as Pa, c4 as Fa, F as Ia, S as Ze, G as dl, r as Na, n as Ra, c5 as yl, c as m, bR as ia, g as ce, bM as Ve, f as pl, bL as Wa, s as Ke, u as Qa, p as je, bP as gl, bO as Ba } from "./menu-DV47UKJo.js";
|
|
3
|
-
import { d as qe, i as hl, s as Ka, j as bl } from "./index-CcbZfGsJ.js";
|
|
4
|
-
import { u as vl } from "./modelComp-B4I2gbtf.js";
|
|
5
|
-
import { a as Ie, h as ja, i as ml, j as Al, k as Tl, l as kl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BPJ7Cu30.js";
|
|
6
|
-
import { _ as na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import "./threeModel.vue_vue_type_style_index_0_scoped_14112288_lang-BV7oq1Z4.js";
|
|
8
|
-
import { d as _l } from "./index-nuI9V5ye.js";
|
|
9
|
-
var wl = "__lodash_hash_undefined__";
|
|
10
|
-
function Dl(a) {
|
|
11
|
-
return this.__data__.set(a, wl), this;
|
|
12
|
-
}
|
|
13
|
-
function Cl(a) {
|
|
14
|
-
return this.__data__.has(a);
|
|
15
|
-
}
|
|
16
|
-
function We(a) {
|
|
17
|
-
var r = -1, i = a == null ? 0 : a.length;
|
|
18
|
-
for (this.__data__ = new tl(); ++r < i; )
|
|
19
|
-
this.add(a[r]);
|
|
20
|
-
}
|
|
21
|
-
We.prototype.add = We.prototype.push = Dl;
|
|
22
|
-
We.prototype.has = Cl;
|
|
23
|
-
function Ol(a, r) {
|
|
24
|
-
for (var i = -1, e = a == null ? 0 : a.length; ++i < e; )
|
|
25
|
-
if (r(a[i], i, a))
|
|
26
|
-
return !0;
|
|
27
|
-
return !1;
|
|
28
|
-
}
|
|
29
|
-
function Sl(a, r) {
|
|
30
|
-
return a.has(r);
|
|
31
|
-
}
|
|
32
|
-
var El = 1, Pl = 2;
|
|
33
|
-
function Xa(a, r, i, e, l, n) {
|
|
34
|
-
var o = i & El, t = a.length, c = r.length;
|
|
35
|
-
if (t != c && !(o && c > t))
|
|
36
|
-
return !1;
|
|
37
|
-
var y = n.get(a), f = n.get(r);
|
|
38
|
-
if (y && f)
|
|
39
|
-
return y == r && f == a;
|
|
40
|
-
var d = -1, p = !0, A = i & Pl ? new We() : void 0;
|
|
41
|
-
for (n.set(a, r), n.set(r, a); ++d < t; ) {
|
|
42
|
-
var C = a[d], P = r[d];
|
|
43
|
-
if (e)
|
|
44
|
-
var M = o ? e(P, C, d, r, a, n) : e(C, P, d, a, r, n);
|
|
45
|
-
if (M !== void 0) {
|
|
46
|
-
if (M)
|
|
47
|
-
continue;
|
|
48
|
-
p = !1;
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
if (A) {
|
|
52
|
-
if (!Ol(r, function(j, $) {
|
|
53
|
-
if (!Sl(A, $) && (C === j || l(C, j, i, e, n)))
|
|
54
|
-
return A.push($);
|
|
55
|
-
})) {
|
|
56
|
-
p = !1;
|
|
57
|
-
break;
|
|
58
|
-
}
|
|
59
|
-
} else if (!(C === P || l(C, P, i, e, n))) {
|
|
60
|
-
p = !1;
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return n.delete(a), n.delete(r), p;
|
|
65
|
-
}
|
|
66
|
-
function Fl(a) {
|
|
67
|
-
var r = -1, i = Array(a.size);
|
|
68
|
-
return a.forEach(function(e, l) {
|
|
69
|
-
i[++r] = [l, e];
|
|
70
|
-
}), i;
|
|
71
|
-
}
|
|
72
|
-
function Il(a) {
|
|
73
|
-
var r = -1, i = Array(a.size);
|
|
74
|
-
return a.forEach(function(e) {
|
|
75
|
-
i[++r] = e;
|
|
76
|
-
}), i;
|
|
77
|
-
}
|
|
78
|
-
var Nl = 1, Rl = 2, Bl = "[object Boolean]", Kl = "[object Date]", jl = "[object Error]", $l = "[object Map]", Ml = "[object Number]", xl = "[object RegExp]", Ll = "[object Set]", Ul = "[object String]", Jl = "[object Symbol]", Hl = "[object ArrayBuffer]", Gl = "[object DataView]", $a = Sa ? Sa.prototype : void 0, ze = $a ? $a.valueOf : void 0;
|
|
79
|
-
function Vl(a, r, i, e, l, n, o) {
|
|
80
|
-
switch (i) {
|
|
81
|
-
case Gl:
|
|
82
|
-
if (a.byteLength != r.byteLength || a.byteOffset != r.byteOffset)
|
|
83
|
-
return !1;
|
|
84
|
-
a = a.buffer, r = r.buffer;
|
|
85
|
-
case Hl:
|
|
86
|
-
return !(a.byteLength != r.byteLength || !n(new Ea(a), new Ea(r)));
|
|
87
|
-
case Bl:
|
|
88
|
-
case Kl:
|
|
89
|
-
case Ml:
|
|
90
|
-
return cl(+a, +r);
|
|
91
|
-
case jl:
|
|
92
|
-
return a.name == r.name && a.message == r.message;
|
|
93
|
-
case xl:
|
|
94
|
-
case Ul:
|
|
95
|
-
return a == r + "";
|
|
96
|
-
case $l:
|
|
97
|
-
var t = Fl;
|
|
98
|
-
case Ll:
|
|
99
|
-
var c = e & Nl;
|
|
100
|
-
if (t || (t = Il), a.size != r.size && !c)
|
|
101
|
-
return !1;
|
|
102
|
-
var y = o.get(a);
|
|
103
|
-
if (y)
|
|
104
|
-
return y == r;
|
|
105
|
-
e |= Rl, o.set(a, r);
|
|
106
|
-
var f = Xa(t(a), t(r), e, l, n, o);
|
|
107
|
-
return o.delete(a), f;
|
|
108
|
-
case Jl:
|
|
109
|
-
if (ze)
|
|
110
|
-
return ze.call(a) == ze.call(r);
|
|
111
|
-
}
|
|
112
|
-
return !1;
|
|
113
|
-
}
|
|
114
|
-
var ql = 1, Wl = Object.prototype, Ql = Wl.hasOwnProperty;
|
|
115
|
-
function Xl(a, r, i, e, l, n) {
|
|
116
|
-
var o = i & ql, t = Pa(a), c = t.length, y = Pa(r), f = y.length;
|
|
117
|
-
if (c != f && !o)
|
|
118
|
-
return !1;
|
|
119
|
-
for (var d = c; d--; ) {
|
|
120
|
-
var p = t[d];
|
|
121
|
-
if (!(o ? p in r : Ql.call(r, p)))
|
|
122
|
-
return !1;
|
|
123
|
-
}
|
|
124
|
-
var A = n.get(a), C = n.get(r);
|
|
125
|
-
if (A && C)
|
|
126
|
-
return A == r && C == a;
|
|
127
|
-
var P = !0;
|
|
128
|
-
n.set(a, r), n.set(r, a);
|
|
129
|
-
for (var M = o; ++d < c; ) {
|
|
130
|
-
p = t[d];
|
|
131
|
-
var j = a[p], $ = r[p];
|
|
132
|
-
if (e)
|
|
133
|
-
var Q = o ? e($, j, p, r, a, n) : e(j, $, p, a, r, n);
|
|
134
|
-
if (!(Q === void 0 ? j === $ || l(j, $, i, e, n) : Q)) {
|
|
135
|
-
P = !1;
|
|
136
|
-
break;
|
|
137
|
-
}
|
|
138
|
-
M || (M = p == "constructor");
|
|
139
|
-
}
|
|
140
|
-
if (P && !M) {
|
|
141
|
-
var D = a.constructor, B = r.constructor;
|
|
142
|
-
D != B && "constructor" in a && "constructor" in r && !(typeof D == "function" && D instanceof D && typeof B == "function" && B instanceof B) && (P = !1);
|
|
143
|
-
}
|
|
144
|
-
return n.delete(a), n.delete(r), P;
|
|
145
|
-
}
|
|
146
|
-
var Yl = 1, Ma = "[object Arguments]", xa = "[object Array]", He = "[object Object]", Zl = Object.prototype, La = Zl.hasOwnProperty;
|
|
147
|
-
function zl(a, r, i, e, l, n) {
|
|
148
|
-
var o = Na(a), t = Na(r), c = o ? xa : Fa(a), y = t ? xa : Fa(r);
|
|
149
|
-
c = c == Ma ? He : c, y = y == Ma ? He : y;
|
|
150
|
-
var f = c == He, d = y == He, p = c == y;
|
|
151
|
-
if (p && Ia(a)) {
|
|
152
|
-
if (!Ia(r))
|
|
153
|
-
return !1;
|
|
154
|
-
o = !0, f = !1;
|
|
155
|
-
}
|
|
156
|
-
if (p && !f)
|
|
157
|
-
return n || (n = new Ze()), o || dl(a) ? Xa(a, r, i, e, l, n) : Vl(a, r, c, i, e, l, n);
|
|
158
|
-
if (!(i & Yl)) {
|
|
159
|
-
var A = f && La.call(a, "__wrapped__"), C = d && La.call(r, "__wrapped__");
|
|
160
|
-
if (A || C) {
|
|
161
|
-
var P = A ? a.value() : a, M = C ? r.value() : r;
|
|
162
|
-
return n || (n = new Ze()), l(P, M, i, e, n);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return p ? (n || (n = new Ze()), Xl(a, r, i, e, l, n)) : !1;
|
|
166
|
-
}
|
|
167
|
-
function Ya(a, r, i, e, l) {
|
|
168
|
-
return a === r ? !0 : a == null || r == null || !Ra(a) && !Ra(r) ? a !== a && r !== r : zl(a, r, i, e, Ya, l);
|
|
169
|
-
}
|
|
170
|
-
function er(a, r) {
|
|
171
|
-
return Ya(a, r);
|
|
172
|
-
}
|
|
173
|
-
const ar = {
|
|
174
|
-
__name: "index",
|
|
175
|
-
props: {
|
|
176
|
-
isVisible: {
|
|
177
|
-
type: Boolean,
|
|
178
|
-
default: !1
|
|
179
|
-
},
|
|
180
|
-
title: {
|
|
181
|
-
type: String,
|
|
182
|
-
default: ""
|
|
183
|
-
},
|
|
184
|
-
width: {
|
|
185
|
-
type: Number,
|
|
186
|
-
default: 200
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
setup(a) {
|
|
190
|
-
const r = a, i = K(null), e = K(!1), l = K(null);
|
|
191
|
-
return Fe(
|
|
192
|
-
() => r == null ? void 0 : r.isVisible,
|
|
193
|
-
() => {
|
|
194
|
-
e.value = r == null ? void 0 : r.isVisible;
|
|
195
|
-
},
|
|
196
|
-
{ deep: !0, immediate: !0 }
|
|
197
|
-
), Fe(
|
|
198
|
-
() => l.value,
|
|
199
|
-
() => {
|
|
200
|
-
nl(() => {
|
|
201
|
-
var n, o;
|
|
202
|
-
(o = (n = i.value) == null ? void 0 : n.updatePopper) == null || o.call(n);
|
|
203
|
-
});
|
|
204
|
-
},
|
|
205
|
-
{ deep: !0, immediate: !0 }
|
|
206
|
-
), (n, o) => {
|
|
207
|
-
const t = la("el-popover");
|
|
208
|
-
return ue(), Ge(t, {
|
|
209
|
-
visible: e.value,
|
|
210
|
-
placement: "bottom",
|
|
211
|
-
title: r == null ? void 0 : r.title,
|
|
212
|
-
width: r == null ? void 0 : r.width,
|
|
213
|
-
ref_key: "popOverRef",
|
|
214
|
-
ref: i
|
|
215
|
-
}, {
|
|
216
|
-
reference: ee(() => [
|
|
217
|
-
fe("div", null, [
|
|
218
|
-
Oa(n.$slots, "reference", {
|
|
219
|
-
ref_key: "referenceRef",
|
|
220
|
-
ref: l
|
|
221
|
-
})
|
|
222
|
-
])
|
|
223
|
-
]),
|
|
224
|
-
default: ee(() => [
|
|
225
|
-
fe("div", null, [
|
|
226
|
-
Oa(n.$slots, "content")
|
|
227
|
-
])
|
|
228
|
-
]),
|
|
229
|
-
_: 3
|
|
230
|
-
}, 8, ["visible", "title", "width"]);
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
}, lr = { class: "extra-button-content" }, rr = { class: "table-operator-wrap" }, ir = {
|
|
234
|
-
key: 0,
|
|
235
|
-
class: "extra-header"
|
|
236
|
-
}, nr = ["onClick"], or = { class: "extra-button-filter" }, sr = { class: "form-content-value" }, ur = {
|
|
237
|
-
__name: "header",
|
|
238
|
-
props: {
|
|
239
|
-
compName: {
|
|
240
|
-
type: String,
|
|
241
|
-
default: "表格名称",
|
|
242
|
-
required: !1
|
|
243
|
-
},
|
|
244
|
-
buttons: {
|
|
245
|
-
type: Array,
|
|
246
|
-
default: () => []
|
|
247
|
-
},
|
|
248
|
-
columns: {
|
|
249
|
-
type: Array,
|
|
250
|
-
default: () => []
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
emits: ["buttonClick", "filter"],
|
|
254
|
-
setup(a, { emit: r }) {
|
|
255
|
-
const i = r, e = a, l = K(!1), n = K([]), o = K([{ label: "取消" }, { label: "确认" }]), t = (f) => {
|
|
256
|
-
i("buttonClick", f);
|
|
257
|
-
}, c = (f) => {
|
|
258
|
-
var d, p;
|
|
259
|
-
n.value = (p = (d = Ie(m(f))) == null ? void 0 : d.filter((A) => (A == null ? void 0 : A.label) !== "" && (A == null ? void 0 : A.label) !== "操作")) == null ? void 0 : p.map((A) => ({
|
|
260
|
-
label: (A == null ? void 0 : A.label) ?? "",
|
|
261
|
-
value: "",
|
|
262
|
-
name: (A == null ? void 0 : A.label) ?? "",
|
|
263
|
-
isFormColHidden: A == null ? void 0 : A.isTableColHidden
|
|
264
|
-
}));
|
|
265
|
-
}, y = (f) => {
|
|
266
|
-
(f == null ? void 0 : f.buttonName) === "确认" && i("filter", f == null ? void 0 : f.content), l.value = !1;
|
|
267
|
-
};
|
|
268
|
-
return ra(() => {
|
|
269
|
-
c(e.columns);
|
|
270
|
-
}), Fe(
|
|
271
|
-
() => e.columns,
|
|
272
|
-
() => {
|
|
273
|
-
c(e.columns);
|
|
274
|
-
},
|
|
275
|
-
{ deep: !0, immediate: !0 }
|
|
276
|
-
), (f, d) => {
|
|
277
|
-
var A;
|
|
278
|
-
const p = la("el-tooltip");
|
|
279
|
-
return ue(), Te("div", lr, [
|
|
280
|
-
fe("div", {
|
|
281
|
-
class: ol(a.compName ? "table-name-wrap" : "")
|
|
282
|
-
}, Ee(a.compName), 3),
|
|
283
|
-
fe("div", rr, [
|
|
284
|
-
e != null && e.buttons && ((A = e == null ? void 0 : e.buttons) == null ? void 0 : A.length) > 0 ? (ue(), Te("div", ir, [
|
|
285
|
-
(ue(!0), Te(Ga, null, Va(e == null ? void 0 : e.buttons, (C, P) => (ue(), Te("div", {
|
|
286
|
-
class: "extra-contents",
|
|
287
|
-
key: P
|
|
288
|
-
}, [
|
|
289
|
-
fe("div", {
|
|
290
|
-
class: "extra-content",
|
|
291
|
-
style: qa({ background: (C == null ? void 0 : C.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" }),
|
|
292
|
-
onClick: (M) => t(C == null ? void 0 : C.label)
|
|
293
|
-
}, Ee(C == null ? void 0 : C.label), 13, nr)
|
|
294
|
-
]))), 128))
|
|
295
|
-
])) : ea("", !0),
|
|
296
|
-
fe("div", or, [
|
|
297
|
-
ne(ar, {
|
|
298
|
-
title: "筛选数据",
|
|
299
|
-
width: 500,
|
|
300
|
-
isVisible: l.value
|
|
301
|
-
}, {
|
|
302
|
-
reference: ee(() => [
|
|
303
|
-
ne(p, {
|
|
304
|
-
content: "筛选",
|
|
305
|
-
placement: "top-start"
|
|
306
|
-
}, {
|
|
307
|
-
default: ee(() => [
|
|
308
|
-
fe("div", {
|
|
309
|
-
class: "button-style",
|
|
310
|
-
onClick: d[0] || (d[0] = (C) => l.value = !l.value)
|
|
311
|
-
}, [
|
|
312
|
-
ne(sl(yl), { color: "var(--ssComponent-black)" })
|
|
313
|
-
])
|
|
314
|
-
]),
|
|
315
|
-
_: 1
|
|
316
|
-
})
|
|
317
|
-
]),
|
|
318
|
-
content: ee(() => [
|
|
319
|
-
fe("div", sr, [
|
|
320
|
-
(ue(), Ge(qe, {
|
|
321
|
-
rowContents: n.value,
|
|
322
|
-
buttonValue: o.value,
|
|
323
|
-
isRowFlex: !0,
|
|
324
|
-
isEnableWrap: !1,
|
|
325
|
-
isButtonRow: !1,
|
|
326
|
-
key: o.value,
|
|
327
|
-
isStartJustify: !1,
|
|
328
|
-
onOnButtonClick: y
|
|
329
|
-
}, null, 8, ["rowContents", "buttonValue"]))
|
|
330
|
-
])
|
|
331
|
-
]),
|
|
332
|
-
_: 1
|
|
333
|
-
}, 8, ["isVisible"])
|
|
334
|
-
])
|
|
335
|
-
])
|
|
336
|
-
]);
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
}, fr = /* @__PURE__ */ na(ur, [["__scopeId", "data-v-a3b05d95"]]), tr = ia("formToTableComp", {
|
|
340
|
-
state: () => ({
|
|
341
|
-
selectArray: [],
|
|
342
|
-
selectString: ""
|
|
343
|
-
}),
|
|
344
|
-
actions: {
|
|
345
|
-
setSelectArray(a) {
|
|
346
|
-
this.selectArray = a;
|
|
347
|
-
},
|
|
348
|
-
setSelectString(a) {
|
|
349
|
-
this.selectString = a;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}), cr = { class: "calculator-content" }, dr = { class: "calculator-child" }, yr = { class: "calculator-child" }, pr = /* @__PURE__ */ ul({
|
|
353
|
-
__name: "calculator",
|
|
354
|
-
setup(a) {
|
|
355
|
-
const r = K(), i = K();
|
|
356
|
-
return ra(() => {
|
|
357
|
-
r.value = [
|
|
358
|
-
{
|
|
359
|
-
type: "Upload",
|
|
360
|
-
label: "输入",
|
|
361
|
-
name: "input"
|
|
362
|
-
}
|
|
363
|
-
], i.value = [
|
|
364
|
-
{
|
|
365
|
-
type: "Upload",
|
|
366
|
-
label: "输出",
|
|
367
|
-
name: "output"
|
|
368
|
-
}
|
|
369
|
-
];
|
|
370
|
-
}), (e, l) => (ue(), Te("div", cr, [
|
|
371
|
-
fe("div", dr, [
|
|
372
|
-
ne(qe, {
|
|
373
|
-
rowContents: r.value,
|
|
374
|
-
isRowFlex: !0
|
|
375
|
-
}, null, 8, ["rowContents"])
|
|
376
|
-
]),
|
|
377
|
-
fe("div", yr, [
|
|
378
|
-
ne(qe, {
|
|
379
|
-
rowContents: i.value,
|
|
380
|
-
isEdit: !1,
|
|
381
|
-
isRowFlex: !0
|
|
382
|
-
}, null, 8, ["rowContents"])
|
|
383
|
-
])
|
|
384
|
-
]));
|
|
385
|
-
}
|
|
386
|
-
}), gr = /* @__PURE__ */ na(pr, [["__scopeId", "data-v-73db0fe7"]]), hr = ia("unit", {
|
|
387
|
-
state: () => ({
|
|
388
|
-
selectIndex: "",
|
|
389
|
-
selectMenu: "",
|
|
390
|
-
selectTitle: []
|
|
391
|
-
}),
|
|
392
|
-
actions: {
|
|
393
|
-
setSelectIndex(a) {
|
|
394
|
-
this.selectIndex = a;
|
|
395
|
-
},
|
|
396
|
-
setSelectMenu(a) {
|
|
397
|
-
this.selectMenu = a;
|
|
398
|
-
},
|
|
399
|
-
setSelectTitle(a) {
|
|
400
|
-
this.selectTitle = a;
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}), Za = (a, r) => {
|
|
404
|
-
let i = a, e = r;
|
|
405
|
-
return Array.isArray(i) && (i = i == null ? void 0 : i.map((l, n) => {
|
|
406
|
-
if (Array.isArray(l)) {
|
|
407
|
-
let o = {};
|
|
408
|
-
return l = l == null ? void 0 : l.forEach((t, c) => {
|
|
409
|
-
var y;
|
|
410
|
-
(y = e == null ? void 0 : e[c]) != null && y.prop ? o[e[c].prop] = t : Array.isArray(t) && (o.children = Za(t, e));
|
|
411
|
-
}), Object.assign(o, { id: n });
|
|
412
|
-
} else
|
|
413
|
-
return l;
|
|
414
|
-
})), i;
|
|
415
|
-
}, za = (a, r, i) => {
|
|
416
|
-
let e = a, l = r;
|
|
417
|
-
return e = e == null ? void 0 : e.map((n, o) => {
|
|
418
|
-
var t, c;
|
|
419
|
-
return !Array.isArray(n) || !((t = l == null ? void 0 : l[o]) != null && t.label) && !i || (n.unshift(((c = l == null ? void 0 : l[o]) == null ? void 0 : c.label) ?? ""), n.some((y) => Array.isArray(y)) && (n = n == null ? void 0 : n.map((y) => {
|
|
420
|
-
var f;
|
|
421
|
-
return Array.isArray(y) && (y = za(y, (f = l == null ? void 0 : l[o]) == null ? void 0 : f.children, i)), y;
|
|
422
|
-
}))), n;
|
|
423
|
-
}), e;
|
|
424
|
-
}, br = (a, r, i) => {
|
|
425
|
-
if (r === "")
|
|
426
|
-
return a == null ? void 0 : a.filter((e) => (e == null ? void 0 : e.id) !== i);
|
|
427
|
-
{
|
|
428
|
-
const e = r.split("-");
|
|
429
|
-
return vr(a, e, i);
|
|
430
|
-
}
|
|
431
|
-
}, vr = (a, r, i) => {
|
|
432
|
-
let e = a, l = r;
|
|
433
|
-
return (l == null ? void 0 : l.length) === 0 ? e = e == null ? void 0 : e.filter((n) => n.id !== i) : e = e == null ? void 0 : e.map((n) => (n.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), n = el(n, l, i)), n)), e;
|
|
434
|
-
}, el = (a, r, i) => {
|
|
435
|
-
var n, o;
|
|
436
|
-
let e = a, l = r;
|
|
437
|
-
return (l == null ? void 0 : l.length) === 0 ? e.children = (n = e.children) == null ? void 0 : n.filter((t) => t.id !== i) : e.children = (o = e.children) == null ? void 0 : o.map((t) => (t.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), t = el(t, l, i)), t)), e;
|
|
438
|
-
}, mr = (a, r, i) => {
|
|
439
|
-
if (r === "")
|
|
440
|
-
return i;
|
|
441
|
-
{
|
|
442
|
-
const e = r.split("-");
|
|
443
|
-
return Ar(a, e, i);
|
|
444
|
-
}
|
|
445
|
-
}, Ar = (a, r, i) => {
|
|
446
|
-
let e = a, l = r;
|
|
447
|
-
return (l == null ? void 0 : l.length) === 0 ? e = i : e = e == null ? void 0 : e.map((n) => (n.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), n = al(n, l, i)), n)), e;
|
|
448
|
-
}, al = (a, r, i) => {
|
|
449
|
-
var n;
|
|
450
|
-
let e = a, l = r;
|
|
451
|
-
return (l == null ? void 0 : l.length) === 0 ? e.children = i : e.children = (n = e.children) == null ? void 0 : n.map((o) => (o.id.toString() === (l == null ? void 0 : l[0]) && (l == null || l.shift(), o = al(o, l, i)), o)), e;
|
|
452
|
-
}, Qe = (a, r) => a == null ? void 0 : a.map((e) => {
|
|
453
|
-
var l, n, o, t, c, y;
|
|
454
|
-
if (Array.isArray(e) ? e = e : e = [e], (l = e == null ? void 0 : e.filter((f) => !(f != null && f.id) || typeof (f == null ? void 0 : f.id) == "string")) != null && l.every((f) => typeof f != "object" || f === null))
|
|
455
|
-
return e;
|
|
456
|
-
if ((n = e == null ? void 0 : e.filter((f) => !(f != null && f.id) || typeof (f == null ? void 0 : f.id) == "string")) != null && n.some((f) => Array.isArray(f)))
|
|
457
|
-
return e;
|
|
458
|
-
{
|
|
459
|
-
let f = [];
|
|
460
|
-
if (f.push(e == null ? void 0 : e.find((d) => (d == null ? void 0 : d.id) && typeof (d == null ? void 0 : d.id) == "number")), Array.isArray(r == null ? void 0 : r[0])) {
|
|
461
|
-
const d = (o = e == null ? void 0 : e.filter((p) => !(p != null && p.id) || typeof (p == null ? void 0 : p.id) == "string")) == null ? void 0 : o[0];
|
|
462
|
-
(t = Ie(m(r == null ? void 0 : r[0]))) == null || t.forEach((p) => {
|
|
463
|
-
f.push(d == null ? void 0 : d[(p == null ? void 0 : p.prop) ?? (p == null ? void 0 : p.label) ?? p]);
|
|
464
|
-
});
|
|
465
|
-
} else {
|
|
466
|
-
const d = (c = e == null ? void 0 : e.filter((p) => !(p != null && p.id) || typeof (p == null ? void 0 : p.id) == "string")) == null ? void 0 : c[0];
|
|
467
|
-
(y = Ie(m(r))) == null || y.forEach((p) => {
|
|
468
|
-
f.push(d == null ? void 0 : d[(p == null ? void 0 : p.prop) ?? (p == null ? void 0 : p.label) ?? p]);
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
return f;
|
|
472
|
-
}
|
|
473
|
-
}), Wr = (a) => {
|
|
474
|
-
try {
|
|
475
|
-
return JSON.parse(a), !0;
|
|
476
|
-
} catch {
|
|
477
|
-
return !1;
|
|
478
|
-
}
|
|
479
|
-
}, Ua = (a, r) => er(a, r), Ne = (a) => {
|
|
480
|
-
let r = [];
|
|
481
|
-
function i(l) {
|
|
482
|
-
Array.isArray(l) && (l == null || l.forEach((n) => {
|
|
483
|
-
Array.isArray(n) || (n = [n]), n == null || n.forEach((o) => {
|
|
484
|
-
!(o != null && o.children) || o.children.length === 0 ? r.push(o.label) : e(o.children);
|
|
485
|
-
});
|
|
486
|
-
}));
|
|
487
|
-
}
|
|
488
|
-
function e(l) {
|
|
489
|
-
l == null || l.forEach((n) => {
|
|
490
|
-
!(n != null && n.children) || n.children.length === 0 ? r.push(n.label) : e(n.children);
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
return i(a), r;
|
|
494
|
-
}, Tr = (a, r, i) => {
|
|
495
|
-
var l;
|
|
496
|
-
let e = (l = m(a)) == null ? void 0 : l.map((n) => (n = n.filter((o) => !(o != null && o.id)), n));
|
|
497
|
-
return e = e == null ? void 0 : e.map((n) => {
|
|
498
|
-
var o;
|
|
499
|
-
return n = (o = n.map((t, c) => {
|
|
500
|
-
let y = {};
|
|
501
|
-
if (i != null && i.find((f) => f === r[c]))
|
|
502
|
-
return y[r[c]] = t, y;
|
|
503
|
-
})) == null ? void 0 : o.filter((t) => t), n;
|
|
504
|
-
}), e;
|
|
505
|
-
}, Qr = (a, r) => {
|
|
506
|
-
var o, t;
|
|
507
|
-
const i = m(a), e = (o = i == null ? void 0 : i.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : o.contents, l = (t = i == null ? void 0 : i.find((c) => (c == null ? void 0 : c.key) === "tableContents")) == null ? void 0 : t.contents;
|
|
508
|
-
return Tr(l, Ne(e).slice(0, Ne(e).length - 1), r);
|
|
509
|
-
}, Xr = (a) => {
|
|
510
|
-
let r = {};
|
|
511
|
-
return a == null || a.forEach((i) => {
|
|
512
|
-
r[i.key] = i.value;
|
|
513
|
-
}), r;
|
|
514
|
-
}, Yr = (a) => {
|
|
515
|
-
var i;
|
|
516
|
-
let r = [];
|
|
517
|
-
return (i = m(a)) == null || i.forEach((e) => {
|
|
518
|
-
let l = {};
|
|
519
|
-
e == null || e.forEach((n) => {
|
|
520
|
-
l[Object.keys(n)[0]] = Object.values(n)[0];
|
|
521
|
-
}), r.push(l);
|
|
522
|
-
}), r;
|
|
523
|
-
}, Zr = (a, r) => {
|
|
524
|
-
if (r != null && r[a])
|
|
525
|
-
return r == null ? void 0 : r[a];
|
|
526
|
-
}, kr = async (a, r) => {
|
|
527
|
-
var t, c, y;
|
|
528
|
-
if (!(a != null && a.extra)) return;
|
|
529
|
-
let i = (t = a == null ? void 0 : a.extra) == null ? void 0 : t.tableId, e = a == null ? void 0 : a.contents;
|
|
530
|
-
const n = (y = (await ce({
|
|
531
|
-
key: {
|
|
532
|
-
type: "data",
|
|
533
|
-
pageKey: (c = a == null ? void 0 : a.extra) == null ? void 0 : c.pageKey,
|
|
534
|
-
tableId: i,
|
|
535
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
536
|
-
}
|
|
537
|
-
})).data.result) == null ? void 0 : y.map((f) => f == null ? void 0 : f.id);
|
|
538
|
-
n && (n == null ? void 0 : n.length) > 0 && await pl({
|
|
539
|
-
ids: n
|
|
540
|
-
});
|
|
541
|
-
let o = [];
|
|
542
|
-
e == null || e.forEach((f) => {
|
|
543
|
-
var p, A;
|
|
544
|
-
let d = {};
|
|
545
|
-
(p = Object.keys(f)) == null || p.forEach((C) => {
|
|
546
|
-
r != null && r.find((P) => (P == null ? void 0 : P.label.toUpperCase()) === C.toUpperCase()) && (d[r.find((P) => P.label.toUpperCase() === C.toUpperCase()).label] = f[C]);
|
|
547
|
-
}), o.push({
|
|
548
|
-
key: {
|
|
549
|
-
type: "data",
|
|
550
|
-
pageKey: (A = a == null ? void 0 : a.extra) == null ? void 0 : A.pageKey,
|
|
551
|
-
tableId: i,
|
|
552
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
553
|
-
},
|
|
554
|
-
value: {
|
|
555
|
-
tableData: d
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
}), (o == null ? void 0 : o.length) > 0 && await Wa({
|
|
559
|
-
dataList: o
|
|
560
|
-
});
|
|
561
|
-
}, _r = (a, r) => {
|
|
562
|
-
var n;
|
|
563
|
-
let i = m(a), e = !1, l = Object.keys(r);
|
|
564
|
-
return (n = i.compData) == null || n.forEach((o) => {
|
|
565
|
-
var t;
|
|
566
|
-
Array.isArray(o == null ? void 0 : o.contents) && ((t = o == null ? void 0 : o.contents) == null || t.forEach((c) => {
|
|
567
|
-
e = l.includes(c.key);
|
|
568
|
-
}));
|
|
569
|
-
}), e;
|
|
570
|
-
}, zr = (a, r) => {
|
|
571
|
-
var l;
|
|
572
|
-
let i = m(a);
|
|
573
|
-
return _r(m(i), r) && (i.compData = (l = i.compData) == null ? void 0 : l.map((n) => {
|
|
574
|
-
var o;
|
|
575
|
-
return (n == null ? void 0 : n.key) === "formContent" && (n.contents = (o = n == null ? void 0 : n.contents) == null ? void 0 : o.map((t) => (Object.keys(r).includes(t.key) && (t.value = r[t.key]), t))), n;
|
|
576
|
-
})), i;
|
|
577
|
-
}, ei = (a) => {
|
|
578
|
-
let r = m(a);
|
|
579
|
-
return r == null || r.forEach((i) => {
|
|
580
|
-
let e = {};
|
|
581
|
-
for (let l in i)
|
|
582
|
-
e[l.toUpperCase()] = i[l];
|
|
583
|
-
}), r;
|
|
584
|
-
}, ai = async (a) => {
|
|
585
|
-
var o, t, c, y, f;
|
|
586
|
-
let r = (t = (o = a == null ? void 0 : a[0]) == null ? void 0 : o.find((d) => d == null ? void 0 : d.id)) == null ? void 0 : t.id;
|
|
587
|
-
const i = await ce({
|
|
588
|
-
id: r
|
|
589
|
-
});
|
|
590
|
-
let e = await ((f = (y = (c = i == null ? void 0 : i.data) == null ? void 0 : c.result) == null ? void 0 : y[0]) == null ? void 0 : f.key), l = e == null ? void 0 : e.pageKey, n = e == null ? void 0 : e.tableId;
|
|
591
|
-
return {
|
|
592
|
-
pageKey: l,
|
|
593
|
-
tableId: n
|
|
594
|
-
};
|
|
595
|
-
}, wr = async (a) => {
|
|
596
|
-
let r = {
|
|
597
|
-
comp: a == null ? void 0 : a.comp,
|
|
598
|
-
compData: a == null ? void 0 : a.compData,
|
|
599
|
-
name: a == null ? void 0 : a.name
|
|
600
|
-
};
|
|
601
|
-
await Ve({
|
|
602
|
-
id: a == null ? void 0 : a.id,
|
|
603
|
-
value: {
|
|
604
|
-
pageData: r
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
}, li = async (a) => {
|
|
608
|
-
let r = a == null ? void 0 : a.map(async (i) => {
|
|
609
|
-
var l, n, o;
|
|
610
|
-
let e;
|
|
611
|
-
return (i == null ? void 0 : i.comp) === "Form" ? e = await wr(i) : (i == null ? void 0 : i.comp) === "Table" && (e = await kr((l = i == null ? void 0 : i.compData) == null ? void 0 : l.find((t) => (t == null ? void 0 : t.key) === "tableContents"), (o = (n = i == null ? void 0 : i.compData) == null ? void 0 : n.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : o.contents)), e;
|
|
612
|
-
});
|
|
613
|
-
await Promise.all(r);
|
|
614
|
-
}, ri = (a) => {
|
|
615
|
-
var l, n, o, t;
|
|
616
|
-
const r = a;
|
|
617
|
-
let i = [];
|
|
618
|
-
r.compData = (l = r.compData) == null ? void 0 : l.filter((c) => (c == null ? void 0 : c.key) !== "tableContents" && (c == null ? void 0 : c.key) !== "tableIndex");
|
|
619
|
-
const e = (o = (n = m(r.compData)) == null ? void 0 : n.find((c) => (c == null ? void 0 : c.key) === "tableIndexColumn")) == null ? void 0 : o.contents;
|
|
620
|
-
return (t = m(r.compData)) == null || t.forEach((c) => {
|
|
621
|
-
if ((c == null ? void 0 : c.key) !== "tableIndexColumn" && (c == null ? void 0 : c.key) !== "header")
|
|
622
|
-
i.push(c);
|
|
623
|
-
else if ((c == null ? void 0 : c.key) === "header") {
|
|
624
|
-
let y = c.contents;
|
|
625
|
-
e && (y != null && y.every((f) => Array.isArray(f)) ? y == null || y[0].unshift({ label: e }) : y.unshift({ label: e })), i.push({
|
|
626
|
-
key: "header",
|
|
627
|
-
contents: y
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
}), r.compData = i, r;
|
|
631
|
-
}, ii = (a) => {
|
|
632
|
-
var n, o, t, c, y;
|
|
633
|
-
const r = (n = a.compData) == null ? void 0 : n.filter((f) => (f == null ? void 0 : f.key) === "tableContents" || (f == null ? void 0 : f.key) === "tableIndex"), i = (t = (o = r == null ? void 0 : r.find((f) => (f == null ? void 0 : f.key) === "tableIndex")) == null ? void 0 : o.contents) == null ? void 0 : t.map((f) => f.label), e = (c = r == null ? void 0 : r.find((f) => (f == null ? void 0 : f.key) === "tableContents")) == null ? void 0 : c.contents;
|
|
634
|
-
let l = [];
|
|
635
|
-
return (i == null ? void 0 : i.length) > 0 && (e != null && e.every((f) => Array.isArray(f))) ? l = i == null ? void 0 : i.map((f, d) => e[d] ? [f, ...e[d]] : [f]) : Array.isArray(e == null ? void 0 : e[0]) && ((y = e == null ? void 0 : e[0]) != null && y.every((f) => Array.isArray(f))) ? l = e == null ? void 0 : e[0] : Array.isArray(e == null ? void 0 : e[0]) ? l = e : l.push(e), l;
|
|
636
|
-
}, Dr = (a) => {
|
|
637
|
-
const r = [];
|
|
638
|
-
function i(e) {
|
|
639
|
-
!e || e.length === 0 || (r.push(e == null ? void 0 : e.map((l) => ({ label: l.label }))), e == null || e.forEach((l) => {
|
|
640
|
-
l != null && l.children && (l == null ? void 0 : l.children.length) > 0 && i(l == null ? void 0 : l.children);
|
|
641
|
-
}));
|
|
642
|
-
}
|
|
643
|
-
return i(a), r;
|
|
644
|
-
}, Cr = (a) => {
|
|
645
|
-
const r = [];
|
|
646
|
-
function i(e, l = []) {
|
|
647
|
-
!e || e.length === 0 || (r.push({
|
|
648
|
-
key: l == null ? void 0 : l.filter((n) => !Array.isArray(n)),
|
|
649
|
-
value: e
|
|
650
|
-
}), e == null || e.forEach((n) => {
|
|
651
|
-
n != null && n.some((o) => Array.isArray(o)) && i(n.find((o) => Array.isArray(o)), n);
|
|
652
|
-
}));
|
|
653
|
-
}
|
|
654
|
-
return i(a), r;
|
|
655
|
-
}, Or = (a) => {
|
|
656
|
-
const r = [];
|
|
657
|
-
function i(e) {
|
|
658
|
-
!e || e.length === 0 || (r.push(e == null ? void 0 : e.map((l) => l == null ? void 0 : l.filter((n) => !Array.isArray(n)))), e == null || e.forEach((l) => {
|
|
659
|
-
l != null && l.some((n) => Array.isArray(n)) && i(l.find((n) => Array.isArray(n)));
|
|
660
|
-
}));
|
|
661
|
-
}
|
|
662
|
-
return i(a), r;
|
|
663
|
-
}, Sr = (a) => {
|
|
664
|
-
const r = [];
|
|
665
|
-
function i(e) {
|
|
666
|
-
var l;
|
|
667
|
-
!e || e.length === 0 || (e != null && e.every((n) => !Array.isArray(n)) ? r.push(e) : (r.push((l = e == null ? void 0 : e.map((n) => n == null ? void 0 : n.filter((o) => !Array.isArray(o)))) == null ? void 0 : l[0]), e == null || e.forEach((n) => {
|
|
668
|
-
n != null && n.some((o) => Array.isArray(o)) && i(n.find((o) => Array.isArray(o)));
|
|
669
|
-
})));
|
|
670
|
-
}
|
|
671
|
-
return i(a), r;
|
|
672
|
-
}, Er = (a, r) => {
|
|
673
|
-
let i;
|
|
674
|
-
function e(l, n, o = 1) {
|
|
675
|
-
var c;
|
|
676
|
-
if (!l || l.length === 0) return;
|
|
677
|
-
const t = (c = m(n)) == null ? void 0 : c.map((y) => y == null ? void 0 : y.filter((f) => !Array.isArray(f)));
|
|
678
|
-
return t != null && t.find((y) => Ua(y, l == null ? void 0 : l.key)) ? (n == null || n.forEach((y) => {
|
|
679
|
-
!e(l, y.find((d) => Array.isArray(d))) && Ua(y.filter((d) => !Array.isArray(d)), l == null ? void 0 : l.key) && (i = {
|
|
680
|
-
type: o,
|
|
681
|
-
contents: y.filter((d) => !Array.isArray(d))
|
|
682
|
-
});
|
|
683
|
-
}), !0) : !1;
|
|
684
|
-
}
|
|
685
|
-
return e(a, r, 0), i;
|
|
686
|
-
}, Ja = (a, r) => {
|
|
687
|
-
function i(e, l) {
|
|
688
|
-
return !e || e.length === 0 || e == null ? void 0 : e.map((o, t) => {
|
|
689
|
-
var y, f;
|
|
690
|
-
let c = o;
|
|
691
|
-
return c.unshift((y = l == null ? void 0 : l[t]) == null ? void 0 : y.label), c.some((d) => Array.isArray(d)) && (c[c.length - 1] = i(c.find((d) => Array.isArray(d)), (f = l == null ? void 0 : l[t]) == null ? void 0 : f.children)), c;
|
|
692
|
-
});
|
|
693
|
-
}
|
|
694
|
-
return i(a, r);
|
|
695
|
-
}, ni = (a) => {
|
|
696
|
-
var i, e, l, n, o, t, c, y, f, d, p, A, C, P, M, j, $, Q, D, B, q, R, X, x, L;
|
|
697
|
-
const r = a;
|
|
698
|
-
if ((a == null ? void 0 : a.comp) === "Table") {
|
|
699
|
-
if ((l = (e = (i = a.compData) == null ? void 0 : i.find((S) => (S == null ? void 0 : S.key) === "tableIndex")) == null ? void 0 : e.contents) != null && l.every((S) => !(S != null && S.children)) || !((n = a.compData) != null && n.find((S) => (S == null ? void 0 : S.key) === "tableIndex")))
|
|
700
|
-
return ((c = (t = (o = r.compData) == null ? void 0 : o.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : t.contents) == null ? void 0 : c.length) === 1 && ((p = (d = (f = (y = r.compData) == null ? void 0 : y.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : f.contents) == null ? void 0 : d[0]) != null && p.every((S) => Array.isArray(S))) ? (r.compData = (A = r.compData) == null ? void 0 : A.map((S) => {
|
|
701
|
-
var H;
|
|
702
|
-
return (S == null ? void 0 : S.key) === "tableContents" && (S.contents = (H = S.contents) == null ? void 0 : H[0]), S;
|
|
703
|
-
}), [r]) : [r];
|
|
704
|
-
{
|
|
705
|
-
let S = [];
|
|
706
|
-
const H = r.compData, he = (C = m(H)) == null ? void 0 : C.find((N) => (N == null ? void 0 : N.key) === "tableIndexColumn"), F = (P = m(H)) == null ? void 0 : P.find((N) => (N == null ? void 0 : N.key) === "extraButton"), be = (M = m(H)) == null ? void 0 : M.find((N) => (N == null ? void 0 : N.key) === "rowButton"), ae = Sr(($ = (j = m(H)) == null ? void 0 : j.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : $.contents), V = (Q = m(H)) == null ? void 0 : Q.find((N) => (N == null ? void 0 : N.key) === "tableIndex"), ke = Or((B = (D = m(H)) == null ? void 0 : D.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : B.contents), le = Ja((R = (q = m(H)) == null ? void 0 : q.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : R.contents, V == null ? void 0 : V.contents), Pe = Cr(Ja((x = (X = m(H)) == null ? void 0 : X.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : x.contents, V == null ? void 0 : V.contents));
|
|
707
|
-
if (V)
|
|
708
|
-
return (L = Dr(V.contents)) == null || L.forEach((N, ve) => {
|
|
709
|
-
var Ce;
|
|
710
|
-
let te = [];
|
|
711
|
-
te.push({
|
|
712
|
-
key: "tableIndex",
|
|
713
|
-
contents: N
|
|
714
|
-
}), te.push(he), te.push(F), te.push(be), te.push({
|
|
715
|
-
key: "tableContents",
|
|
716
|
-
contents: ke[ve]
|
|
717
|
-
}), te.push({
|
|
718
|
-
key: "header",
|
|
719
|
-
contents: ae != null && ae[ve] ? [ae == null ? void 0 : ae[ve]] : [ae == null ? void 0 : ae[0]]
|
|
720
|
-
}), S.push({
|
|
721
|
-
comp: "Table",
|
|
722
|
-
compData: te,
|
|
723
|
-
name: "",
|
|
724
|
-
parentTableContents: ((Ce = Er(Pe[ve], le)) == null ? void 0 : Ce.contents) ?? ""
|
|
725
|
-
});
|
|
726
|
-
}), S;
|
|
727
|
-
}
|
|
728
|
-
} else
|
|
729
|
-
return [r];
|
|
730
|
-
}, Xe = (a, r) => {
|
|
731
|
-
let i = {};
|
|
732
|
-
return Array.isArray(a) ? a == null || a.forEach((e, l) => {
|
|
733
|
-
r != null && r[l] && (i[r[l]] = e);
|
|
734
|
-
}) : [a].forEach((e, l) => {
|
|
735
|
-
i[r[l]] = e;
|
|
736
|
-
}), i;
|
|
737
|
-
}, oi = async (a) => {
|
|
738
|
-
const r = m(a);
|
|
739
|
-
let i = [], e = [];
|
|
740
|
-
r == null || r.forEach((l) => {
|
|
741
|
-
!(e != null && e.find((n) => (n == null ? void 0 : n.parentKey) === (l == null ? void 0 : l.parentKey))) && (l == null ? void 0 : l.parentKey) !== "" && e.push(l);
|
|
742
|
-
}), e = e == null ? void 0 : e.map((l) => {
|
|
743
|
-
var n;
|
|
744
|
-
return l.content = (n = l.content) == null ? void 0 : n.map((o) => {
|
|
745
|
-
var t;
|
|
746
|
-
return o.key = {
|
|
747
|
-
pageKey: (l == null ? void 0 : l.parentKey) ?? "",
|
|
748
|
-
systemKey: ((t = o.key) == null ? void 0 : t.systemKey) ?? "",
|
|
749
|
-
version: 1,
|
|
750
|
-
type: "subStructure"
|
|
751
|
-
}, o;
|
|
752
|
-
}), l.content;
|
|
753
|
-
}), (e == null ? void 0 : e.length) > 0 && (i = e == null ? void 0 : e.map(async (l) => {
|
|
754
|
-
let n;
|
|
755
|
-
return (l == null ? void 0 : l.length) > 0 && (n = await Wa({
|
|
756
|
-
dataList: l
|
|
757
|
-
})), n;
|
|
758
|
-
})), await Promise.all(i);
|
|
759
|
-
}, aa = Qa(je), { activeMenuPath: Pr } = Ke(aa), Fr = async (a, r) => {
|
|
760
|
-
var y, f, d, p, A, C, P, M, j, $, Q, D, B, q, R, X;
|
|
761
|
-
const i = (f = (y = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : y.contents) == null ? void 0 : f.find((x) => x == null ? void 0 : x.columnPath);
|
|
762
|
-
let e = (p = (d = m(i == null ? void 0 : i.columnPath)) == null ? void 0 : d.split("[")) == null ? void 0 : p[0], l = (j = (M = (P = (C = (A = m(i == null ? void 0 : i.columnPath)) == null ? void 0 : A.split("[")) == null ? void 0 : C[1]) == null ? void 0 : P.split("]")) == null ? void 0 : M[0]) == null ? void 0 : j.replaceAll("'", ""), n = [];
|
|
763
|
-
const o = await ce({
|
|
764
|
-
key: {
|
|
765
|
-
pageKey: e,
|
|
766
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
767
|
-
type: "structure"
|
|
768
|
-
}
|
|
769
|
-
}), t = await ce({
|
|
770
|
-
key: {
|
|
771
|
-
pageKey: Pr.value,
|
|
772
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
773
|
-
tableId: parseInt(r),
|
|
774
|
-
type: "data"
|
|
775
|
-
}
|
|
776
|
-
}), c = [];
|
|
777
|
-
if ((Q = ($ = t == null ? void 0 : t.data) == null ? void 0 : $.result) == null || Q.forEach((x) => {
|
|
778
|
-
c.push(
|
|
779
|
-
[
|
|
780
|
-
{
|
|
781
|
-
id: x == null ? void 0 : x.id
|
|
782
|
-
},
|
|
783
|
-
x.value.tableData
|
|
784
|
-
]
|
|
785
|
-
);
|
|
786
|
-
}), Array.isArray((D = o == null ? void 0 : o.data) == null ? void 0 : D.result) && ((q = (B = o == null ? void 0 : o.data) == null ? void 0 : B.result) == null ? void 0 : q.length) > 0) {
|
|
787
|
-
const x = await ((X = (R = o == null ? void 0 : o.data) == null ? void 0 : R.result) == null ? void 0 : X.map(async (L) => {
|
|
788
|
-
var S, H, he, F, be, ae, V, ke, le, Pe, N, ve, te, Ce, $e;
|
|
789
|
-
if (((H = (S = L == null ? void 0 : L.value) == null ? void 0 : S.pageData) == null ? void 0 : H.name) === l) {
|
|
790
|
-
n = m((F = (he = L == null ? void 0 : L.value) == null ? void 0 : he.pageData) == null ? void 0 : F.compData);
|
|
791
|
-
const Re = await ce({
|
|
792
|
-
key: {
|
|
793
|
-
pageKey: e,
|
|
794
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
795
|
-
tableId: L == null ? void 0 : L.id,
|
|
796
|
-
type: "data"
|
|
797
|
-
}
|
|
798
|
-
}), Me = (ae = (be = Re == null ? void 0 : Re.data) == null ? void 0 : be.result) == null ? void 0 : ae.map((W) => {
|
|
799
|
-
var Oe;
|
|
800
|
-
let _e = [];
|
|
801
|
-
return _e.push({
|
|
802
|
-
id: W == null ? void 0 : W.id
|
|
803
|
-
}), _e.push((Oe = W == null ? void 0 : W.value) == null ? void 0 : Oe.tableData), _e;
|
|
804
|
-
});
|
|
805
|
-
let xe = Qe(c, (Pe = (le = (ke = (V = L == null ? void 0 : L.value) == null ? void 0 : V.pageData) == null ? void 0 : ke.compData) == null ? void 0 : le.find((W) => (W == null ? void 0 : W.key) === "header")) == null ? void 0 : Pe.contents), Le = !1;
|
|
806
|
-
Le = ((N = m(xe)) == null ? void 0 : N.map((W) => W.slice(1))).every((W) => W.every((_e) => _e === void 0)), Le ? n.push({
|
|
807
|
-
key: "tableContents",
|
|
808
|
-
contents: Qe(Me, ($e = (Ce = (te = (ve = L == null ? void 0 : L.value) == null ? void 0 : ve.pageData) == null ? void 0 : te.compData) == null ? void 0 : Ce.find((W) => (W == null ? void 0 : W.key) === "header")) == null ? void 0 : $e.contents)
|
|
809
|
-
}) : n.push({
|
|
810
|
-
key: "tableContents",
|
|
811
|
-
contents: xe
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
}));
|
|
815
|
-
await Promise.all(x);
|
|
816
|
-
}
|
|
817
|
-
return n;
|
|
818
|
-
}, Ha = async (a, r, i = "", e = !1, l) => {
|
|
819
|
-
var A, C, P, M, j, $, Q;
|
|
820
|
-
let n;
|
|
821
|
-
n = await ce({
|
|
822
|
-
key: {
|
|
823
|
-
pageKey: a,
|
|
824
|
-
systemKey: r,
|
|
825
|
-
parentTable: i
|
|
826
|
-
}
|
|
827
|
-
});
|
|
828
|
-
const o = await ce({
|
|
829
|
-
key: {
|
|
830
|
-
pageKey: a,
|
|
831
|
-
systemKey: r,
|
|
832
|
-
type: "structureMethod"
|
|
833
|
-
}
|
|
834
|
-
}), t = (C = (A = n == null ? void 0 : n.data) == null ? void 0 : A.result) == null ? void 0 : C.map((D) => D.id);
|
|
835
|
-
if (!t) return;
|
|
836
|
-
const c = t == null ? void 0 : t.map((D) => ce({
|
|
837
|
-
key: {
|
|
838
|
-
pageKey: a,
|
|
839
|
-
systemKey: r,
|
|
840
|
-
type: "data",
|
|
841
|
-
tableId: D
|
|
842
|
-
}
|
|
843
|
-
})), y = await Promise.all(c), f = [];
|
|
844
|
-
y == null || y.forEach((D) => {
|
|
845
|
-
var R, X, x, L;
|
|
846
|
-
const B = (R = D.data.result) == null ? void 0 : R.map((S) => {
|
|
847
|
-
const H = Array.isArray(S.value.tableData) ? S.value.tableData : [S.value.tableData];
|
|
848
|
-
return H.unshift({
|
|
849
|
-
id: S.id
|
|
850
|
-
}), H;
|
|
851
|
-
}), q = (L = (x = (X = D.data.result) == null ? void 0 : X[0]) == null ? void 0 : x.key) == null ? void 0 : L.tableId;
|
|
852
|
-
f.push({
|
|
853
|
-
key: q,
|
|
854
|
-
contents: B
|
|
855
|
-
});
|
|
856
|
-
});
|
|
857
|
-
let d = [];
|
|
858
|
-
const p = await ((P = n.data.result) == null ? void 0 : P.map(async (D) => {
|
|
859
|
-
var X, x, L, S, H, he;
|
|
860
|
-
const B = D.value.pageData, q = D == null ? void 0 : D.id;
|
|
861
|
-
let R = (X = m(B.compData)) == null ? void 0 : X.filter((F) => (F == null ? void 0 : F.key) !== "tableContents");
|
|
862
|
-
if (R && (R != null && R.find((F) => (F == null ? void 0 : F.key) === "header")) && ((L = (x = R == null ? void 0 : R.find((F) => (F == null ? void 0 : F.key) === "header")) == null ? void 0 : x.contents) != null && L.every((F) => !(F != null && F.columnPath))) ? R.push({
|
|
863
|
-
key: "tableContents",
|
|
864
|
-
// contents: getTableContents(currentTableContents?.find((v: any) => v?.key === t.id)?.contents, newCompData?.find((s: any) => s?.key === "header")?.contents)
|
|
865
|
-
// contents: menuPath === '/系统管理/用户管理' ? formatUserPageData(currentTableContents) : getTableContents(currentTableContents?.find((v: any) => v?.key === t.id)?.contents, newCompData?.find((s: any) => s?.key === "header")?.contents)
|
|
866
|
-
// todo 内置权限控制处理
|
|
867
|
-
contents: Qe((S = f == null ? void 0 : f.find((F) => (F == null ? void 0 : F.key) === D.id)) == null ? void 0 : S.contents, (H = R == null ? void 0 : R.find((F) => (F == null ? void 0 : F.key) === "header")) == null ? void 0 : H.contents)
|
|
868
|
-
}) : R && (R != null && R.find((F) => (F == null ? void 0 : F.key) === "header")) && (R = await Fr(m(R), q)), B.compData = R, B.id = D.id, ((he = D.key) == null ? void 0 : he.type) !== "method")
|
|
869
|
-
d.push(B);
|
|
870
|
-
else {
|
|
871
|
-
let F;
|
|
872
|
-
F = {
|
|
873
|
-
name: "",
|
|
874
|
-
compData: [B],
|
|
875
|
-
comp: "calculator"
|
|
876
|
-
}, d.push(F);
|
|
877
|
-
}
|
|
878
|
-
}));
|
|
879
|
-
return await Promise.all(p), ((j = (M = o.data.result) == null ? void 0 : M.map((D) => D.value.pageData)) == null ? void 0 : j.filter((D) => Object.values(D).length > 0).length) > 0 && d.push({
|
|
880
|
-
comp: "methodButton",
|
|
881
|
-
name: "",
|
|
882
|
-
compData: (Q = ($ = o.data.result) == null ? void 0 : $.map((D) => D.value.pageData)) == null ? void 0 : Q.filter((D) => Object.values(D).length > 0)
|
|
883
|
-
}), d = d.sort((D, B) => D.id - B.id), d;
|
|
884
|
-
}, si = async (a) => {
|
|
885
|
-
await gl({
|
|
886
|
-
id: a
|
|
887
|
-
});
|
|
888
|
-
}, ui = async (a, r, i, e, l, n, o) => {
|
|
889
|
-
var c, y, f, d, p, A, C, P, M, j, $, Q, D;
|
|
890
|
-
const t = ((y = (c = o == null ? void 0 : o.content) == null ? void 0 : c[0]) == null ? void 0 : y.id) ?? "";
|
|
891
|
-
if (t !== "" && ((f = o == null ? void 0 : o.content) == null ? void 0 : f.length) > 1) {
|
|
892
|
-
const B = await ce({
|
|
893
|
-
id: t
|
|
894
|
-
});
|
|
895
|
-
let q = ((C = (A = (p = (d = B == null ? void 0 : B.data) == null ? void 0 : d.result) == null ? void 0 : p[0]) == null ? void 0 : A.key) == null ? void 0 : C.tableId) ?? "", R = (($ = (j = (M = (P = B == null ? void 0 : B.data) == null ? void 0 : P.result) == null ? void 0 : M[0]) == null ? void 0 : j.key) == null ? void 0 : $.pageKey) ?? "";
|
|
896
|
-
await Ba({
|
|
897
|
-
key: {
|
|
898
|
-
type: a,
|
|
899
|
-
pageKey: R,
|
|
900
|
-
tableId: q,
|
|
901
|
-
systemKey: e
|
|
902
|
-
},
|
|
903
|
-
value: {
|
|
904
|
-
tableData: Xe(l, (Q = Ne(n)) == null ? void 0 : Q.filter((X) => X !== "操作"))
|
|
905
|
-
}
|
|
906
|
-
});
|
|
907
|
-
} else
|
|
908
|
-
await Ba({
|
|
909
|
-
key: {
|
|
910
|
-
type: a,
|
|
911
|
-
pageKey: r,
|
|
912
|
-
tableId: i,
|
|
913
|
-
systemKey: e
|
|
914
|
-
},
|
|
915
|
-
value: {
|
|
916
|
-
tableData: Xe(l, (D = Ne(n)) == null ? void 0 : D.filter((B) => B !== "操作"))
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
}, fi = async (a, r, i, e, l, n, o) => {
|
|
920
|
-
var f, d, p, A, C, P, M, j, $, Q;
|
|
921
|
-
const t = await ce({
|
|
922
|
-
id: e
|
|
923
|
-
});
|
|
924
|
-
let c = ((A = (p = (d = (f = t == null ? void 0 : t.data) == null ? void 0 : f.result) == null ? void 0 : d[0]) == null ? void 0 : p.key) == null ? void 0 : A.tableId) ?? "", y = ((j = (M = (P = (C = t == null ? void 0 : t.data) == null ? void 0 : C.result) == null ? void 0 : P[0]) == null ? void 0 : M.key) == null ? void 0 : j.pageKey) ?? "";
|
|
925
|
-
c && c !== "" ? await Ve({
|
|
926
|
-
key: {
|
|
927
|
-
type: a,
|
|
928
|
-
pageKey: y,
|
|
929
|
-
tableId: c,
|
|
930
|
-
systemKey: l
|
|
931
|
-
},
|
|
932
|
-
value: {
|
|
933
|
-
tableData: Xe(n, ($ = Ne(o)) == null ? void 0 : $.filter((D) => D !== "操作"))
|
|
934
|
-
},
|
|
935
|
-
id: e
|
|
936
|
-
}) : await Ve({
|
|
937
|
-
key: {
|
|
938
|
-
type: a,
|
|
939
|
-
pageKey: r,
|
|
940
|
-
tableId: i,
|
|
941
|
-
systemKey: l
|
|
942
|
-
},
|
|
943
|
-
value: {
|
|
944
|
-
tableData: Xe(n, (Q = Ne(o)) == null ? void 0 : Q.filter((D) => D !== "操作"))
|
|
945
|
-
},
|
|
946
|
-
id: e
|
|
947
|
-
});
|
|
948
|
-
}, ti = async (a, r) => {
|
|
949
|
-
await Ve({
|
|
950
|
-
value: {
|
|
951
|
-
pageData: r
|
|
952
|
-
},
|
|
953
|
-
id: a
|
|
954
|
-
});
|
|
955
|
-
}, Ir = async (a, r) => await ce({
|
|
956
|
-
key: a,
|
|
957
|
-
valueLikes: r
|
|
958
|
-
}), ci = async () => {
|
|
959
|
-
var a, r, i, e, l, n, o, t, c;
|
|
960
|
-
try {
|
|
961
|
-
const y = await ce({
|
|
962
|
-
key: {
|
|
963
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
964
|
-
layer: "superAdmin"
|
|
965
|
-
}
|
|
966
|
-
});
|
|
967
|
-
((a = y == null ? void 0 : y.data) == null ? void 0 : a.code) === 200 && (aa.setPlatform(((l = (e = (i = (r = y == null ? void 0 : y.data) == null ? void 0 : r.result) == null ? void 0 : i[0]) == null ? void 0 : e.key) == null ? void 0 : l.systemType) === "制造系统" ? "client" : "browser"), aa.setPlatName(((c = (t = (o = (n = y == null ? void 0 : y.data) == null ? void 0 : n.result) == null ? void 0 : o[0]) == null ? void 0 : t.key) == null ? void 0 : c.name) ?? ""));
|
|
968
|
-
} catch (y) {
|
|
969
|
-
return Promise.reject(y);
|
|
970
|
-
}
|
|
971
|
-
}, Nr = ia("modelTableComp", {
|
|
972
|
-
state: () => ({
|
|
973
|
-
tableIndex: 0,
|
|
974
|
-
tableShowThree: ""
|
|
975
|
-
}),
|
|
976
|
-
actions: {
|
|
977
|
-
setTableIndex(a) {
|
|
978
|
-
this.tableIndex = a;
|
|
979
|
-
},
|
|
980
|
-
setTableShowThree(a) {
|
|
981
|
-
this.tableShowThree = a;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}), Rr = { class: "table-content" }, Br = ["onClick"], Kr = { class: "form-content" }, jr = {
|
|
985
|
-
key: 0,
|
|
986
|
-
class: "dialog-footer"
|
|
987
|
-
}, $r = { class: "dialog-footer" }, Mr = {
|
|
988
|
-
__name: "index",
|
|
989
|
-
props: {
|
|
990
|
-
compName: {
|
|
991
|
-
type: String,
|
|
992
|
-
default: "",
|
|
993
|
-
required: !1
|
|
994
|
-
},
|
|
995
|
-
operatingForm: {
|
|
996
|
-
type: Object,
|
|
997
|
-
default: () => {
|
|
998
|
-
}
|
|
999
|
-
},
|
|
1000
|
-
itemData: {
|
|
1001
|
-
type: Array,
|
|
1002
|
-
default: () => []
|
|
1003
|
-
},
|
|
1004
|
-
childItemData: {
|
|
1005
|
-
type: Array,
|
|
1006
|
-
default: () => []
|
|
1007
|
-
},
|
|
1008
|
-
index: Number,
|
|
1009
|
-
changedContent: {
|
|
1010
|
-
type: Object,
|
|
1011
|
-
default: () => {
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
|
-
emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick"],
|
|
1016
|
-
setup(a, { emit: r }) {
|
|
1017
|
-
const i = a, e = r, l = K([]), n = K(!1), o = K(), t = Qa(), { activeMenuPath: c } = Ke(t), y = Nr(je), f = vl(je), { extraContents: d } = Ke(f), p = K([]);
|
|
1018
|
-
K(!1);
|
|
1019
|
-
const A = K("");
|
|
1020
|
-
K();
|
|
1021
|
-
const C = K(!0), P = K(0), M = K(!1), j = K(""), $ = K(!1), Q = K({
|
|
1022
|
-
label: "查看三维模型"
|
|
1023
|
-
}), D = K(!1), B = K(), q = K([]), R = K([]), X = K(!1), x = K([]), L = K([]), S = K(), H = K(), he = tr(je), F = K(), be = hr(je), { selectIndex: ae, selectMenu: V, selectTitle: ke } = Ke(be), { selectString: le } = Ke(he), Pe = K(720), N = () => {
|
|
1024
|
-
$.value = !1;
|
|
1025
|
-
}, ve = (u) => {
|
|
1026
|
-
e("clickTrigger", u);
|
|
1027
|
-
}, te = (u, b) => {
|
|
1028
|
-
if (Object.values(b).length !== 0)
|
|
1029
|
-
return Object.values(b).find((v) => {
|
|
1030
|
-
var I, T, g;
|
|
1031
|
-
return ((I = v == null ? void 0 : v.toString()) == null ? void 0 : I.includes(".txt")) || ((T = v == null ? void 0 : v.toString()) == null ? void 0 : T.includes(".cpt")) || ((g = v == null ? void 0 : v.toString()) == null ? void 0 : g.includes(".obj"));
|
|
1032
|
-
}) ? [...u, Q.value] : u;
|
|
1033
|
-
}, Ce = (u) => {
|
|
1034
|
-
var T;
|
|
1035
|
-
le.value === "" ? u == null || u[0] : (u == null ? void 0 : u.find((g) => (g == null ? void 0 : g.selectLabel) === "(" + le.value + ")")) ?? (u == null || u.find((g) => !(g != null && g.selectLabel)));
|
|
1036
|
-
let b = u;
|
|
1037
|
-
(T = l.value) != null && T.find((g) => g.prop === "index");
|
|
1038
|
-
let v = S.value;
|
|
1039
|
-
const I = [];
|
|
1040
|
-
return b == null || b.forEach((g, O) => {
|
|
1041
|
-
var G;
|
|
1042
|
-
let k = {};
|
|
1043
|
-
if (Array.isArray(g)) {
|
|
1044
|
-
let E = [];
|
|
1045
|
-
g == null || g.filter((s) => !(s != null && s.id)).forEach((s, U) => {
|
|
1046
|
-
var Y, J, oe, we, me;
|
|
1047
|
-
if ((Y = v == null ? void 0 : v[U]) != null && Y.prop && !Array.isArray(s)) {
|
|
1048
|
-
let de = {};
|
|
1049
|
-
de[v[U].column] = s, d != null && d.value && ((J = d == null ? void 0 : d.value) == null ? void 0 : J.length) > 0 && ((oe = d == null ? void 0 : d.value) != null && oe.find((re) => JSON.stringify(re == null ? void 0 : re[0]) === JSON.stringify(de))) && (E = (we = d == null ? void 0 : d.value) == null ? void 0 : we.find((re) => JSON.stringify(re == null ? void 0 : re[0]) === JSON.stringify(de))), E && E.length > 0 ? k[v[U].prop] = E != null && E.find((re) => {
|
|
1050
|
-
var De;
|
|
1051
|
-
return ((De = Object.keys(re)) == null ? void 0 : De[0]) === v[U].column;
|
|
1052
|
-
}) ? (me = E == null ? void 0 : E.find((re) => {
|
|
1053
|
-
var De;
|
|
1054
|
-
return ((De = Object.keys(re)) == null ? void 0 : De[0]) === v[U].column;
|
|
1055
|
-
})) == null ? void 0 : me[v[U].column] : s : k[v[U].prop] = s;
|
|
1056
|
-
}
|
|
1057
|
-
});
|
|
1058
|
-
} else
|
|
1059
|
-
k = g;
|
|
1060
|
-
Array.isArray(g) && g.some((E) => E == null ? void 0 : E.id) ? I.push(Object.assign(k, { id: (G = g == null ? void 0 : g.find((E) => E.id)) == null ? void 0 : G.id })) : k.id ? I.push(k) : I.push(Object.assign(k, { id: O }));
|
|
1061
|
-
}), I;
|
|
1062
|
-
}, $e = async (u) => {
|
|
1063
|
-
var T, g, O, k, G;
|
|
1064
|
-
let b = {};
|
|
1065
|
-
for (let E in u)
|
|
1066
|
-
u[E] !== "" && (b["tableData." + E] = u[E]);
|
|
1067
|
-
const v = await Ir({
|
|
1068
|
-
type: "data",
|
|
1069
|
-
tableId: i == null ? void 0 : i.index,
|
|
1070
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
1071
|
-
pageKey: c.value
|
|
1072
|
-
}, b), I = (O = (g = (T = m(v)) == null ? void 0 : T.data) == null ? void 0 : g.result) == null ? void 0 : O.map((E) => {
|
|
1073
|
-
var U;
|
|
1074
|
-
let s = [];
|
|
1075
|
-
return s.push({
|
|
1076
|
-
id: E.id
|
|
1077
|
-
}), s.push((U = E == null ? void 0 : E.value) == null ? void 0 : U.tableData), s;
|
|
1078
|
-
});
|
|
1079
|
-
p.value = Ce(Qe(I, (G = (k = m(l.value)) == null ? void 0 : k.map((E) => E.label)) == null ? void 0 : G.filter((E) => E !== "操作")));
|
|
1080
|
-
}, Re = async (u) => {
|
|
1081
|
-
var I, T, g, O, k, G, E, s, U, Y;
|
|
1082
|
-
const b = (I = m(l.value)) == null ? void 0 : I.filter((J) => J == null ? void 0 : J.isRoute);
|
|
1083
|
-
if ((b == null ? void 0 : b.length) > 0) {
|
|
1084
|
-
let J = (T = b == null ? void 0 : b[0]) == null ? void 0 : T.prop, oe = c.value + "/" + (u == null ? void 0 : u[J]), we = c.value, me = await Ha(oe, sessionStorage.getItem("systemKey"), "");
|
|
1085
|
-
if ((me == null ? void 0 : me.length) > 0)
|
|
1086
|
-
f.setRouteToChildPath(we), t.setActiveMenuPath(oe);
|
|
1087
|
-
else {
|
|
1088
|
-
const de = await Tl(i == null ? void 0 : i.index);
|
|
1089
|
-
de && (oe = c.value + "/" + (de == null ? void 0 : de[(g = b == null ? void 0 : b[0]) == null ? void 0 : g.label]), await kl(oe, c.value + "/" + (u == null ? void 0 : u[J])), f.setRouteToChildPath(we), t.setActiveMenuPath(c.value + "/" + (u == null ? void 0 : u[J])));
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
let v = await Ha(c.value, sessionStorage.getItem("systemKey"), u.id);
|
|
1093
|
-
if (v = v == null ? void 0 : v.filter((J) => J.comp !== "methodButton"), v && v.length > 0) {
|
|
1094
|
-
const J = !Array.isArray(ke.value) && ((O = ke.value) == null ? void 0 : O.key) !== "main" ? [] : ke.value;
|
|
1095
|
-
J.push({
|
|
1096
|
-
key: V.value === "" ? (k = u == null ? void 0 : u.id) == null ? void 0 : k.toString() : V.value + "-" + ((G = u == null ? void 0 : u.id) == null ? void 0 : G.toString()),
|
|
1097
|
-
value: u[(E = Object.keys(u)) == null ? void 0 : E.filter((oe) => oe !== "index" && oe !== "id")[0]]
|
|
1098
|
-
}), be.setSelectMenu(V.value === "" ? (s = u == null ? void 0 : u.id) == null ? void 0 : s.toString() : V.value + "-" + ((U = u == null ? void 0 : u.id) == null ? void 0 : U.toString())), be.setSelectTitle(J), be.setSelectIndex((Y = u == null ? void 0 : u.id) == null ? void 0 : Y.toString()), e("pageChange", v);
|
|
1099
|
-
}
|
|
1100
|
-
}, Me = (u) => {
|
|
1101
|
-
var b;
|
|
1102
|
-
(b = m(i.itemData)) == null || b.map((v) => ((v == null ? void 0 : v.key) === "tableContents" && (v.contents = u), v));
|
|
1103
|
-
}, xe = async (u, b, v, I) => {
|
|
1104
|
-
var T;
|
|
1105
|
-
if ((I == null ? void 0 : I.data) === "查看" && (u != null && u.every((g) => (g == null ? void 0 : g.url) && (g == null ? void 0 : g.name)))) {
|
|
1106
|
-
let g = m(u);
|
|
1107
|
-
g = await ((T = m(g)) == null ? void 0 : T.map(async (k) => {
|
|
1108
|
-
var s, U, Y, J;
|
|
1109
|
-
const G = await _l({
|
|
1110
|
-
url: k == null ? void 0 : k.url
|
|
1111
|
-
});
|
|
1112
|
-
let E = URL.createObjectURL(G.data);
|
|
1113
|
-
return {
|
|
1114
|
-
name: (k == null ? void 0 : k.name) + "." + ((J = (s = k == null ? void 0 : k.url) == null ? void 0 : s.split(".")) == null ? void 0 : J[((Y = (U = k == null ? void 0 : k.url) == null ? void 0 : U.split(".")) == null ? void 0 : Y.length) - 1]),
|
|
1115
|
-
blobUrl: E
|
|
1116
|
-
};
|
|
1117
|
-
}));
|
|
1118
|
-
let O = await Promise.all(g);
|
|
1119
|
-
o.value = O, n.value = !0;
|
|
1120
|
-
}
|
|
1121
|
-
e("contentClick", u, b, v, { id: i == null ? void 0 : i.index, type: "table" });
|
|
1122
|
-
}, Le = () => {
|
|
1123
|
-
n.value = !1;
|
|
1124
|
-
}, oa = (u) => {
|
|
1125
|
-
e("rowClick", u);
|
|
1126
|
-
};
|
|
1127
|
-
Fe(
|
|
1128
|
-
() => i.changedContent,
|
|
1129
|
-
() => {
|
|
1130
|
-
var v, I;
|
|
1131
|
-
if (!i.changedContent) return;
|
|
1132
|
-
let u = (v = p.value) == null ? void 0 : v.map((T) => {
|
|
1133
|
-
var g;
|
|
1134
|
-
return T.id === ((g = i.changedContent) == null ? void 0 : g.id) && (T = {
|
|
1135
|
-
...i.changedContent,
|
|
1136
|
-
id: i.changedContent.newId ? i.changedContent.newId : i.changedContent.id
|
|
1137
|
-
}, delete T.newId), T;
|
|
1138
|
-
});
|
|
1139
|
-
const b = (I = i.itemData) == null ? void 0 : I.map((T) => ((T == null ? void 0 : T.key) === "tableContents" && (T.contents = u), T));
|
|
1140
|
-
p.value = u, e("contentChange", {
|
|
1141
|
-
contents: b,
|
|
1142
|
-
index: i.index
|
|
1143
|
-
}), e("change", {
|
|
1144
|
-
content: u,
|
|
1145
|
-
index: i == null ? void 0 : i.index,
|
|
1146
|
-
buttonName: "",
|
|
1147
|
-
id: i == null ? void 0 : i.index
|
|
1148
|
-
});
|
|
1149
|
-
},
|
|
1150
|
-
{ deep: !0, immediate: !0 }
|
|
1151
|
-
);
|
|
1152
|
-
const W = () => {
|
|
1153
|
-
}, _e = (u, b, v) => {
|
|
1154
|
-
var I, T, g;
|
|
1155
|
-
if (A.value = "", X.value = !0, C.value = !0, e("onButtonClick", u, b), u === "删除") {
|
|
1156
|
-
p.value = (I = m(p.value)) == null ? void 0 : I.filter((k) => (k == null ? void 0 : k.id) !== (b == null ? void 0 : b.id));
|
|
1157
|
-
const O = br(F.value, V.value, b == null ? void 0 : b.id);
|
|
1158
|
-
Me(O), e("change", {
|
|
1159
|
-
content: p.value,
|
|
1160
|
-
singleContent: b,
|
|
1161
|
-
index: i == null ? void 0 : i.index,
|
|
1162
|
-
type: "delete",
|
|
1163
|
-
buttonName: u,
|
|
1164
|
-
column: l.value
|
|
1165
|
-
});
|
|
1166
|
-
} else if (u === "新增")
|
|
1167
|
-
j.value = "新增", Oe(""), $.value = !0;
|
|
1168
|
-
else if (u === "编辑")
|
|
1169
|
-
j.value = "编辑", Oe(b), $.value = !0;
|
|
1170
|
-
else if (u === "查看")
|
|
1171
|
-
j.value = "查看", Oe(b), X.value = !1, C.value = !1, $.value = !0;
|
|
1172
|
-
else if (u === "查看三维模型") {
|
|
1173
|
-
const O = {};
|
|
1174
|
-
for (let G in b)
|
|
1175
|
-
G !== "id" && (O[G] = b[G]);
|
|
1176
|
-
let k = (T = Object.values(O)) == null ? void 0 : T[1];
|
|
1177
|
-
y.setTableShowThree(k);
|
|
1178
|
-
} else ((g = v == null ? void 0 : v.extra) == null ? void 0 : g.type) === "modelExample" && (j.value = u, D.value = !0);
|
|
1179
|
-
}, Oe = (u) => {
|
|
1180
|
-
var T, g, O, k, G, E;
|
|
1181
|
-
const b = [];
|
|
1182
|
-
let v = [];
|
|
1183
|
-
for (let s in u)
|
|
1184
|
-
Array.isArray(u == null ? void 0 : u[s]) && v.push(s);
|
|
1185
|
-
(g = Ie((T = m(l.value)) == null ? void 0 : T.filter((s) => (s == null ? void 0 : s.label) !== "操作"))) == null || g.forEach((s, U) => {
|
|
1186
|
-
var Y;
|
|
1187
|
-
v.find((J) => J === (s == null ? void 0 : s.prop)) || (s != null && s.formType && ((Y = s == null ? void 0 : s.formType) == null ? void 0 : Y.toUpperCase()) === "SELECT" ? b.push({
|
|
1188
|
-
label: (s == null ? void 0 : s.label) ?? "",
|
|
1189
|
-
name: (s == null ? void 0 : s.prop) ?? "t" + U,
|
|
1190
|
-
type: !(s != null && s.formType) || (s == null ? void 0 : s.formType) === "" ? "Input" : s == null ? void 0 : s.formType,
|
|
1191
|
-
value: (u == null ? void 0 : u[s == null ? void 0 : s.prop]) ?? (s == null ? void 0 : s.value) ?? "",
|
|
1192
|
-
id: (s == null ? void 0 : s.id) ?? U,
|
|
1193
|
-
contents: (s == null ? void 0 : s.options) ?? [],
|
|
1194
|
-
width: 1,
|
|
1195
|
-
isFormColHidden: s == null ? void 0 : s.isFormColHidden,
|
|
1196
|
-
optionUrl: {
|
|
1197
|
-
groupSelect: s == null ? void 0 : s.groupSelect,
|
|
1198
|
-
menuSelect: s == null ? void 0 : s.formMenuSelect,
|
|
1199
|
-
type: "Select",
|
|
1200
|
-
selectRelateType: s == null ? void 0 : s.selectRelateType
|
|
1201
|
-
}
|
|
1202
|
-
}) : b.push({
|
|
1203
|
-
label: (s == null ? void 0 : s.label) ?? "",
|
|
1204
|
-
name: (s == null ? void 0 : s.prop) ?? "t" + U,
|
|
1205
|
-
type: !(s != null && s.formType) || (s == null ? void 0 : s.formType) === "" ? "Input" : s == null ? void 0 : s.formType,
|
|
1206
|
-
value: (u == null ? void 0 : u[s == null ? void 0 : s.prop]) ?? (s == null ? void 0 : s.value) ?? "",
|
|
1207
|
-
id: (s == null ? void 0 : s.id) ?? U,
|
|
1208
|
-
contents: (s == null ? void 0 : s.options) ?? [],
|
|
1209
|
-
width: 1,
|
|
1210
|
-
isFormColHidden: s == null ? void 0 : s.isFormColHidden
|
|
1211
|
-
}));
|
|
1212
|
-
}), u === "" || !u || (A.value = u == null ? void 0 : u.id);
|
|
1213
|
-
let I = Ie((O = m(l.value)) == null ? void 0 : O.filter((s) => (s == null ? void 0 : s.label) !== "操作"));
|
|
1214
|
-
q.value && ((k = q.value) == null ? void 0 : k.length) > 0 && (q.value = (G = m(q).value) == null ? void 0 : G.map((s) => {
|
|
1215
|
-
var Y;
|
|
1216
|
-
let U = (Y = I == null ? void 0 : I.find((J) => (J == null ? void 0 : J.label) === (s == null ? void 0 : s.label))) == null ? void 0 : Y.prop;
|
|
1217
|
-
return U && (s.value = u[U]), s;
|
|
1218
|
-
})), L.value = q.value && ((E = q.value) == null ? void 0 : E.length) > 0 ? Al(q.value) : b;
|
|
1219
|
-
};
|
|
1220
|
-
ra(() => {
|
|
1221
|
-
B.value = window.innerWidth - 240 * 2;
|
|
1222
|
-
});
|
|
1223
|
-
const ll = () => {
|
|
1224
|
-
var T;
|
|
1225
|
-
let u = Ie((T = m(l.value)) == null ? void 0 : T.filter((g) => (g == null ? void 0 : g.label) !== "操作")), b, v = m(p.value);
|
|
1226
|
-
A.value === "" ? (P.value++, v.push(Object.assign(H.value, { id: P.value })), b = Object.assign(H.value, { id: P.value })) : v = v == null ? void 0 : v.map((g) => {
|
|
1227
|
-
var O;
|
|
1228
|
-
if ((g == null ? void 0 : g.id) === A.value) {
|
|
1229
|
-
let k = {};
|
|
1230
|
-
for (let G in g) {
|
|
1231
|
-
let E = (O = u == null ? void 0 : u.find((s) => (s == null ? void 0 : s.prop) === G)) == null ? void 0 : O.label;
|
|
1232
|
-
E ? k[G] = H.value[E] : k[G] = g[G];
|
|
1233
|
-
}
|
|
1234
|
-
g = Object.assign(k, H.value), b = g;
|
|
1235
|
-
}
|
|
1236
|
-
return g;
|
|
1237
|
-
}), p.value = v;
|
|
1238
|
-
const I = mr(F.value, V.value, v);
|
|
1239
|
-
Me(I), $.value = !1, e("change", {
|
|
1240
|
-
content: I,
|
|
1241
|
-
singleContent: b,
|
|
1242
|
-
index: i == null ? void 0 : i.index,
|
|
1243
|
-
buttonName: j.value,
|
|
1244
|
-
column: l.value
|
|
1245
|
-
});
|
|
1246
|
-
}, rl = (u) => {
|
|
1247
|
-
H.value = u, e("onFormChange", u);
|
|
1248
|
-
};
|
|
1249
|
-
return Fe(
|
|
1250
|
-
() => [i.itemData, le.value, ae.value, V.value, d == null ? void 0 : d.value],
|
|
1251
|
-
() => {
|
|
1252
|
-
var G, E, s, U, Y, J, oe, we, me, de, re, De, sa, ua, fa, ta, ca, da, ya, pa, ga, ha, ba, va, ma, Aa;
|
|
1253
|
-
const u = (G = m(i.itemData)) == null ? void 0 : G.filter((_) => (_ == null ? void 0 : _.key) === "header");
|
|
1254
|
-
(E = m(i.itemData)) == null || E.filter((_) => (_ == null ? void 0 : _.key) === "tableIndexColumn")[0];
|
|
1255
|
-
const b = (s = m(i.itemData)) == null ? void 0 : s.find((_) => (_ == null ? void 0 : _.key) === "page"), v = (U = m(i.itemData)) == null ? void 0 : U.find((_) => (_ == null ? void 0 : _.key) === "rowButton"), I = (Y = m(i.itemData)) == null ? void 0 : Y.find((_) => (_ == null ? void 0 : _.key) === "extraButton"), T = (J = m(i.itemData)) == null ? void 0 : J.filter((_) => (_ == null ? void 0 : _.key) === "tableContents"), g = (oe = m(i.itemData)) == null ? void 0 : oe.filter((_) => (_ == null ? void 0 : _.key) === "tableIndex");
|
|
1256
|
-
q.value = (de = (me = (we = m(i.itemData)) == null ? void 0 : we.filter((_) => (_ == null ? void 0 : _.key) === "tableToForm")) == null ? void 0 : me[0]) == null ? void 0 : de.contents, M.value = (b == null ? void 0 : b.contents) ?? !1;
|
|
1257
|
-
let O = [];
|
|
1258
|
-
le.value === "" ? O = u == null ? void 0 : u[0] : O = (u == null ? void 0 : u.find((_) => (_ == null ? void 0 : _.selectLabel) === "(" + le.value + ")")) ?? (u == null ? void 0 : u.find((_) => !(_ != null && _.selectLabel)));
|
|
1259
|
-
let k = [];
|
|
1260
|
-
if (le.value === "" ? k = g == null ? void 0 : g[0] : k = (g == null ? void 0 : g.find((_) => (_ == null ? void 0 : _.selectLabel) === "(" + le.value + ")")) ?? (g == null ? void 0 : g.find((_) => !(_ != null && _.selectLabel))), ((re = O == null ? void 0 : O.contents) == null ? void 0 : re.length) > 0) {
|
|
1261
|
-
let _ = [];
|
|
1262
|
-
if (O != null && O.contents.some((w) => Array.isArray(w) && (w == null ? void 0 : w.find((h) => h.children))))
|
|
1263
|
-
V.value === "" ? _ = (sa = (De = ja(m(O == null ? void 0 : O.contents))) == null ? void 0 : De[0]) == null ? void 0 : sa.filter((w) => !Array.isArray(w)) : (V.value.split("-"), _ = (ua = ja(m(O == null ? void 0 : O.contents))) == null ? void 0 : ua[0]);
|
|
1264
|
-
else {
|
|
1265
|
-
const w = O != null && O.contents.some((h) => Array.isArray(h)) ? (fa = O == null ? void 0 : O.contents) == null ? void 0 : fa[0] : O == null ? void 0 : O.contents;
|
|
1266
|
-
w == null || w.forEach((h, Z) => {
|
|
1267
|
-
var ge;
|
|
1268
|
-
_.push({
|
|
1269
|
-
label: (h == null ? void 0 : h.label) ?? "",
|
|
1270
|
-
prop: (h == null ? void 0 : h.label) === "操作" ? "operate" : (h == null ? void 0 : h.prop) ?? "a" + Z,
|
|
1271
|
-
width: (h == null ? void 0 : h.label) === "操作" ? "200" : h != null && h.width ? parseInt(h.width) : "",
|
|
1272
|
-
fixed: (h == null ? void 0 : h.fixed) ?? void 0,
|
|
1273
|
-
sortable: (h == null ? void 0 : h.sortable) ?? !1,
|
|
1274
|
-
align: (h == null ? void 0 : h.align) ?? "center",
|
|
1275
|
-
showOverflowTooltip: (h == null ? void 0 : h.showOverflowTooltip) ?? !0,
|
|
1276
|
-
isNotDrag: (h == null ? void 0 : h.isNotDrag) ?? !1,
|
|
1277
|
-
isEditCol: (h == null ? void 0 : h.isEditCol) ?? !1,
|
|
1278
|
-
isOperate: (h == null ? void 0 : h.isOperate) ?? !1,
|
|
1279
|
-
id: (h == null ? void 0 : h.id) ?? Z,
|
|
1280
|
-
type: (h == null ? void 0 : h.label) === "操作" ? "operate" : void 0,
|
|
1281
|
-
formType: (h == null ? void 0 : h.formType) ?? (h != null && h.groupSelect ? "Select" : ""),
|
|
1282
|
-
isTableColHidden: h == null ? void 0 : h.isTableColHidden,
|
|
1283
|
-
isFormColHidden: h == null ? void 0 : h.isFormColHidden,
|
|
1284
|
-
options: (h == null ? void 0 : h.options) ?? [],
|
|
1285
|
-
value: (h == null ? void 0 : h.value) ?? "",
|
|
1286
|
-
formMenuSelect: (h == null ? void 0 : h.formMenuSelect) ?? [],
|
|
1287
|
-
isRoute: (h == null ? void 0 : h.isRoute) ?? !1,
|
|
1288
|
-
groupSelect: h != null && h.groupSelect ? (ge = h == null ? void 0 : h.groupSelect) == null ? void 0 : ge.replaceAll('"', "").split(":") : []
|
|
1289
|
-
});
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
l.value = _;
|
|
1293
|
-
let se = (ca = (ta = ml(m(l.value))) == null ? void 0 : ta.filter((w) => (w == null ? void 0 : w.type) !== "operate")) == null ? void 0 : ca.map((w, h) => ({
|
|
1294
|
-
prop: (w == null ? void 0 : w.prop) ?? "a" + h,
|
|
1295
|
-
column: w.label
|
|
1296
|
-
}));
|
|
1297
|
-
S.value = se;
|
|
1298
|
-
let ie = [];
|
|
1299
|
-
le.value === "" ? ie = T == null ? void 0 : T[0] : ie = (T == null ? void 0 : T.find((w) => (w == null ? void 0 : w.selectLabel) === "(" + le.value + ")")) ?? (T == null ? void 0 : T.find((w) => !(w != null && w.selectLabel)));
|
|
1300
|
-
let Se = Array.isArray((da = ie == null ? void 0 : ie.contents) == null ? void 0 : da[0]) && ((ya = ie == null ? void 0 : ie.contents) != null && ya[0].every((w) => Array.isArray(w))) ? (pa = m(ie == null ? void 0 : ie.contents)) == null ? void 0 : pa[0] : m(ie == null ? void 0 : ie.contents);
|
|
1301
|
-
k != null && k.contents && ((ga = k == null ? void 0 : k.contents) == null ? void 0 : ga.length) !== 0 && (Se = (ha = m(Se)) == null ? void 0 : ha.map((w, h) => {
|
|
1302
|
-
if (!Array.isArray(w)) {
|
|
1303
|
-
let Z = {};
|
|
1304
|
-
for (let ge in w)
|
|
1305
|
-
ge !== "id" && ge !== "index" && (Z[ge] = w[ge]);
|
|
1306
|
-
w = Object.values(Z);
|
|
1307
|
-
}
|
|
1308
|
-
return w;
|
|
1309
|
-
}));
|
|
1310
|
-
const il = !!((ba = l.value) != null && ba.find((w) => w.prop === "index"));
|
|
1311
|
-
Se = za(m(Se), k == null ? void 0 : k.contents, il);
|
|
1312
|
-
const Ue = [];
|
|
1313
|
-
Se == null || Se.forEach((w, h) => {
|
|
1314
|
-
var ge;
|
|
1315
|
-
let Z = {};
|
|
1316
|
-
if (Array.isArray(w)) {
|
|
1317
|
-
let z = [];
|
|
1318
|
-
w == null || w.filter((ye) => !(ye != null && ye.id)).forEach((ye, Ae) => {
|
|
1319
|
-
var Ta, ka, _a, wa, Da, Ca;
|
|
1320
|
-
if ((Ta = se == null ? void 0 : se[Ae]) != null && Ta.prop && !Array.isArray(ye)) {
|
|
1321
|
-
let Ye = {};
|
|
1322
|
-
Ye[se[Ae].column] = ye, d != null && d.value && ((ka = d == null ? void 0 : d.value) == null ? void 0 : ka.length) > 0 && ((_a = d == null ? void 0 : d.value) != null && _a.find((pe) => JSON.stringify(pe == null ? void 0 : pe[0]) === JSON.stringify(Ye))) && (z = (wa = d == null ? void 0 : d.value) == null ? void 0 : wa.find((pe) => JSON.stringify(pe == null ? void 0 : pe[0]) === JSON.stringify(Ye))), z && z.length > 0 ? Z[se[Ae].prop] = z != null && z.find((pe) => {
|
|
1323
|
-
var Be;
|
|
1324
|
-
return ((Be = Object.keys(pe)) == null ? void 0 : Be[0]) === se[Ae].column;
|
|
1325
|
-
}) ? (Da = z == null ? void 0 : z.find((pe) => {
|
|
1326
|
-
var Be;
|
|
1327
|
-
return ((Be = Object.keys(pe)) == null ? void 0 : Be[0]) === se[Ae].column;
|
|
1328
|
-
})) == null ? void 0 : Da[se[Ae].column] : ye : Z[se[Ae].prop] = ye;
|
|
1329
|
-
} else Array.isArray(ye) && ((Ca = se[Ae]) != null && Ca.prop ? Z[se[Ae].prop] = ye : Z.children = Za(ye, se));
|
|
1330
|
-
});
|
|
1331
|
-
} else
|
|
1332
|
-
Z = w;
|
|
1333
|
-
Array.isArray(w) && w.some((z) => z == null ? void 0 : z.id) ? Ue.push(Object.assign(Z, { id: (ge = w == null ? void 0 : w.find((z) => z.id)) == null ? void 0 : ge.id })) : Z.id ? Ue.push(Z) : Ue.push(Object.assign(Z, { id: h }));
|
|
1334
|
-
}), p.value = Ue;
|
|
1335
|
-
} else
|
|
1336
|
-
l.value = [], p.value = [];
|
|
1337
|
-
((va = v == null ? void 0 : v.contents) == null ? void 0 : va.length) > 0 ? R.value = v == null ? void 0 : v.contents : R.value = [], ((ma = I == null ? void 0 : I.contents) == null ? void 0 : ma.length) > 0 ? x.value = I == null ? void 0 : I.contents : x.value = [], P.value = ((Aa = p == null ? void 0 : p.value) == null ? void 0 : Aa.length) ?? 0, F.value = p.value;
|
|
1338
|
-
},
|
|
1339
|
-
{ deep: !0, immediate: !0 }
|
|
1340
|
-
), Fe(() => i == null ? void 0 : i.operatingForm, (u) => {
|
|
1341
|
-
u != null && u.form && (Oe(u == null ? void 0 : u.form), j.value = u == null ? void 0 : u.dialogTitle, X.value = !0, $.value = !0);
|
|
1342
|
-
}, { immediate: !0, deep: !0 }), (u, b) => {
|
|
1343
|
-
var I;
|
|
1344
|
-
const v = la("el-button");
|
|
1345
|
-
return ue(), Te("div", Rr, [
|
|
1346
|
-
(ue(), Ge(hl, {
|
|
1347
|
-
columns: l.value,
|
|
1348
|
-
key: l.value,
|
|
1349
|
-
tableData: p.value,
|
|
1350
|
-
isShowPagination: M.value,
|
|
1351
|
-
isShowEdit: !1,
|
|
1352
|
-
isShowDelete: !1,
|
|
1353
|
-
onDbClickRow: Re,
|
|
1354
|
-
extraButton: x.value,
|
|
1355
|
-
onContentClick: xe,
|
|
1356
|
-
onRowClick: oa
|
|
1357
|
-
}, fl({
|
|
1358
|
-
headerButton: ee((T) => [
|
|
1359
|
-
ne(fr, {
|
|
1360
|
-
compName: a.compName,
|
|
1361
|
-
buttons: T.buttons,
|
|
1362
|
-
onButtonClick: b[0] || (b[0] = (g) => _e(g, "", {})),
|
|
1363
|
-
columns: l.value,
|
|
1364
|
-
onFilter: $e
|
|
1365
|
-
}, null, 8, ["compName", "buttons", "columns"])
|
|
1366
|
-
]),
|
|
1367
|
-
_: 2
|
|
1368
|
-
}, [
|
|
1369
|
-
((I = R.value) == null ? void 0 : I.length) > 0 ? {
|
|
1370
|
-
name: "actions",
|
|
1371
|
-
fn: ee(({ item: T }) => [
|
|
1372
|
-
(ue(!0), Te(Ga, null, Va(te(R.value, T), (g, O) => (ue(), Te("div", { key: O }, [
|
|
1373
|
-
fe("div", {
|
|
1374
|
-
style: qa({ color: g == null ? void 0 : g.textColor }),
|
|
1375
|
-
class: "extra-button-label",
|
|
1376
|
-
onClick: (k) => _e(g == null ? void 0 : g.label, T, {
|
|
1377
|
-
extra: g
|
|
1378
|
-
})
|
|
1379
|
-
}, Ee(g == null ? void 0 : g.label), 13, Br)
|
|
1380
|
-
]))), 128))
|
|
1381
|
-
]),
|
|
1382
|
-
key: "0"
|
|
1383
|
-
} : void 0
|
|
1384
|
-
]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
|
|
1385
|
-
ne(Ka, {
|
|
1386
|
-
title: j.value,
|
|
1387
|
-
visible: $.value,
|
|
1388
|
-
width: Pe.value,
|
|
1389
|
-
onBeforeDestroy: N
|
|
1390
|
-
}, {
|
|
1391
|
-
default: ee(() => [
|
|
1392
|
-
fe("div", Kr, [
|
|
1393
|
-
ne(qe, {
|
|
1394
|
-
rowContents: L.value,
|
|
1395
|
-
isEnableWrap: !1,
|
|
1396
|
-
onChange: rl,
|
|
1397
|
-
onClickTrigger: ve,
|
|
1398
|
-
isEdit: C.value
|
|
1399
|
-
}, null, 8, ["rowContents", "isEdit"])
|
|
1400
|
-
])
|
|
1401
|
-
]),
|
|
1402
|
-
footer: ee(() => [
|
|
1403
|
-
X.value ? (ue(), Te("div", jr, [
|
|
1404
|
-
ne(v, {
|
|
1405
|
-
onClick: b[1] || (b[1] = (T) => $.value = !1),
|
|
1406
|
-
id: "themeBorderButton"
|
|
1407
|
-
}, {
|
|
1408
|
-
default: ee(() => b[4] || (b[4] = [
|
|
1409
|
-
Je(Ee("取消"))
|
|
1410
|
-
])),
|
|
1411
|
-
_: 1,
|
|
1412
|
-
__: [4]
|
|
1413
|
-
}),
|
|
1414
|
-
ne(v, {
|
|
1415
|
-
class: "ok-button",
|
|
1416
|
-
onClick: ll,
|
|
1417
|
-
id: "themeButton"
|
|
1418
|
-
}, {
|
|
1419
|
-
default: ee(() => b[5] || (b[5] = [
|
|
1420
|
-
Je(Ee("确认"))
|
|
1421
|
-
])),
|
|
1422
|
-
_: 1,
|
|
1423
|
-
__: [5]
|
|
1424
|
-
})
|
|
1425
|
-
])) : ea("", !0)
|
|
1426
|
-
]),
|
|
1427
|
-
_: 1
|
|
1428
|
-
}, 8, ["title", "visible", "width"]),
|
|
1429
|
-
ne(Ka, {
|
|
1430
|
-
title: j.value,
|
|
1431
|
-
visible: D.value,
|
|
1432
|
-
width: B.value,
|
|
1433
|
-
onBeforeDestroy: b[3] || (b[3] = (T) => D.value = !1)
|
|
1434
|
-
}, {
|
|
1435
|
-
default: ee(() => [
|
|
1436
|
-
ne(gr)
|
|
1437
|
-
]),
|
|
1438
|
-
footer: ee(() => [
|
|
1439
|
-
fe("div", $r, [
|
|
1440
|
-
ne(v, {
|
|
1441
|
-
onClick: b[2] || (b[2] = (T) => D.value = !1),
|
|
1442
|
-
class: "cancel-button",
|
|
1443
|
-
id: "themeBorderButton"
|
|
1444
|
-
}, {
|
|
1445
|
-
default: ee(() => b[6] || (b[6] = [
|
|
1446
|
-
Je(Ee("取消"))
|
|
1447
|
-
])),
|
|
1448
|
-
_: 1,
|
|
1449
|
-
__: [6]
|
|
1450
|
-
}),
|
|
1451
|
-
ne(v, {
|
|
1452
|
-
class: "ok-button",
|
|
1453
|
-
onClick: W,
|
|
1454
|
-
id: "themeButton"
|
|
1455
|
-
}, {
|
|
1456
|
-
default: ee(() => b[7] || (b[7] = [
|
|
1457
|
-
Je(Ee("确认"))
|
|
1458
|
-
])),
|
|
1459
|
-
_: 1,
|
|
1460
|
-
__: [7]
|
|
1461
|
-
})
|
|
1462
|
-
])
|
|
1463
|
-
]),
|
|
1464
|
-
_: 1
|
|
1465
|
-
}, 8, ["title", "visible", "width"]),
|
|
1466
|
-
n.value ? (ue(), Ge(bl, {
|
|
1467
|
-
key: 0,
|
|
1468
|
-
fileDataList: o.value,
|
|
1469
|
-
onDestroy: Le
|
|
1470
|
-
}, null, 8, ["fileDataList"])) : ea("", !0)
|
|
1471
|
-
]);
|
|
1472
|
-
};
|
|
1473
|
-
}
|
|
1474
|
-
}, di = /* @__PURE__ */ na(Mr, [["__scopeId", "data-v-5390f736"]]);
|
|
1475
|
-
export {
|
|
1476
|
-
zr as A,
|
|
1477
|
-
di as B,
|
|
1478
|
-
Wr as I,
|
|
1479
|
-
We as S,
|
|
1480
|
-
Nr as a,
|
|
1481
|
-
Xe as b,
|
|
1482
|
-
Ya as c,
|
|
1483
|
-
Sl as d,
|
|
1484
|
-
ri as e,
|
|
1485
|
-
ii as f,
|
|
1486
|
-
Ha as g,
|
|
1487
|
-
Ne as h,
|
|
1488
|
-
er as i,
|
|
1489
|
-
oi as j,
|
|
1490
|
-
ti as k,
|
|
1491
|
-
ci as l,
|
|
1492
|
-
si as m,
|
|
1493
|
-
ui as n,
|
|
1494
|
-
fi as o,
|
|
1495
|
-
tr as p,
|
|
1496
|
-
Qr as q,
|
|
1497
|
-
Xr as r,
|
|
1498
|
-
Il as s,
|
|
1499
|
-
ni as t,
|
|
1500
|
-
hr as u,
|
|
1501
|
-
Yr as v,
|
|
1502
|
-
li as w,
|
|
1503
|
-
Zr as x,
|
|
1504
|
-
ai as y,
|
|
1505
|
-
ei as z
|
|
1506
|
-
};
|