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