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