ss-component-new 1.1.509 → 1.1.511
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-BTjyzwbz.js → array-6rfRfZoy.js} +1 -1
- package/dist/{array-T-glopHk.cjs → array-BKzrrmWD.cjs} +2 -2
- package/dist/{index-BqlWuQ7F.cjs → index-3GfpOmBm.cjs} +1 -1
- package/dist/index-9keTbNci.js +1490 -0
- package/dist/{index-BPe56KwL.js → index-B72kja43.js} +12 -13
- package/dist/{index-B3sFb3ED.js → index-BBFJJ4tl.js} +5 -5
- package/dist/index-BBQKck4p.cjs +1 -0
- package/dist/index-BBQrfTQg.cjs +1 -0
- package/dist/index-BDmXVjP1.cjs +1 -0
- package/dist/{index-BC6o_HwA.js → index-BPQ17KYZ.js} +1 -1
- package/dist/{index-OUNz_X1-.js → index-BSC7EQfO.js} +15 -15
- package/dist/{index-B6WyqdEq.js → index-BY-71neG.js} +27 -28
- package/dist/{index-pWCRQCtH.cjs → index-BdCeB39f.cjs} +1 -1
- package/dist/{index-0Aj-6Pfy.cjs → index-Bk9CevKt.cjs} +3 -3
- package/dist/{index-WupiV34P.js → index-Bsluws3x.js} +1 -1
- package/dist/{index-D-3H8d48.js → index-Btfqm3Aj.js} +16 -17
- package/dist/index-Bw7fhgWa.js +186 -0
- package/dist/{index-BrZj-udo.js → index-Bz3SW9qv.js} +6 -6
- package/dist/{index--d0-FcKi.js → index-C-RVIq7e.js} +3 -3
- package/dist/{index-BcRfxlOl.cjs → index-C3G2rcyE.cjs} +1 -1
- package/dist/{index-18OPgy7M.js → index-C3Lo66u2.js} +4 -4
- package/dist/index-C8zdykvt.cjs +1 -0
- package/dist/{index-D9fT9K4k.js → index-COMGfNcR.js} +3 -3
- package/dist/index-CRSpuXYg.cjs +1 -0
- package/dist/index-CT9N59g0.cjs +1 -0
- package/dist/{index-cyR-UE9m.cjs → index-CbWlMlxi.cjs} +1 -1
- package/dist/{index-DXv077SA.cjs → index-Cd0szVvZ.cjs} +1 -1
- package/dist/{index-C17_NPz0.cjs → index-Ci1hpo3R.cjs} +1 -1
- package/dist/{index-JqG9oXli.js → index-CmUqS1hN.js} +1 -1
- package/dist/{index-MDG-_61i.js → index-CqmGUncB.js} +3 -3
- package/dist/index-D42emtHS.cjs +1 -0
- package/dist/{index-qlszF_bh.js → index-D5AYFKTM.js} +2 -2
- package/dist/{index-B-3rJW5B.cjs → index-D8QyJVl9.cjs} +1 -1
- package/dist/{index-Dx6aORao.cjs → index-D9ZIJbHw.cjs} +12 -12
- package/dist/{index-DpBfp4fC.js → index-DF8AKNJv.js} +16 -17
- package/dist/index-DGHLPooK.js +457 -0
- package/dist/{index-BeUJWi0x.js → index-DLfWd1qr.js} +5 -5
- package/dist/index-DQxqAo5T.cjs +1 -0
- package/dist/index-DRXd1T3-.cjs +1 -0
- package/dist/{index-TnYimoKI.cjs → index-DgsMW7lK.cjs} +1 -1
- package/dist/{index-B35jXtRb.js → index-DnGhhxPP.js} +5 -5
- package/dist/{index-pxmLD5OC.cjs → index-Dw520ieR.cjs} +1 -1
- package/dist/{index-uN3j6KsS.cjs → index-Dy4AlOOz.cjs} +1 -1
- package/dist/{index-DNQe9fKA.js → index-DzjXzyVN.js} +1 -1
- package/dist/{index-OYYGU2YE.js → index-LCDlyiVS.js} +4 -4
- package/dist/index-NJKX8un9.js +3995 -0
- package/dist/{index-DYRVEBa9.js → index-NkBocgtR.js} +111 -112
- package/dist/{index-55yBsyRr.cjs → index-Oixs__9V.cjs} +1 -1
- package/dist/{index-Dh39r6dj.cjs → index-XKC9uwi7.cjs} +1 -1
- package/dist/{index-DtUmPH3r.cjs → index-YT4yRM1k.cjs} +1 -1
- package/dist/{index-CRkYxnL4.cjs → index-lZj2FVM-.cjs} +1 -1
- package/dist/{index-DwMyURBu.js → index-t25R8oz_.js} +9 -9
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dzi9C_6v.js → index.vue_vue_type_script_setup_true_lang-D0IUrek5.js} +40 -40
- package/dist/{index.vue_vue_type_script_setup_true_lang-CGZnYRAf.cjs → index.vue_vue_type_script_setup_true_lang-DWwRe3NO.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C0_XMLvd.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0GZj6SDy.js} +9343 -9713
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B40u7Mx6.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BruAa-uD.cjs} +86 -86
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-9V0_8cmZ.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang--3mE_B9B.js} +15 -15
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B-GFoPJ9.cjs → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2bfU2M4.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BFaKxxEb.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BSG1ySNA.js → index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BZQSdupd.js} +9759 -9781
- package/dist/{login-CW3Tv6wk.cjs → login-BHMBhU8d.cjs} +1 -1
- package/dist/{login-Bb_Ovfvl.js → login-CROQ1_RU.js} +4 -4
- package/dist/{main-DeaRuNYD.js → main-1yb7Pay5.js} +7 -8
- package/dist/main-DkeO8sGR.cjs +1 -0
- package/dist/{menu-jWcM5fkr.js → menu-BPLW-L8U.js} +3946 -3581
- package/dist/menu-CQ3_ZXwC.cjs +21 -0
- package/dist/menuIndex-BJdEj1Et.cjs +1 -0
- package/dist/menuIndex-BsKyxgvr.js +60 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-AKBKLvxK.js → threeModel-CFiMikXU.js} +322 -321
- package/dist/{threeModel-CEMnXOw2.cjs → threeModel-Cz-eN53p.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-BOOCIUn8.js → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-DZ9BnDSy.js} +2 -2
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-C1EygWi0.cjs → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-MfXPrK37.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index--3QjFI9W.cjs +0 -1
- package/dist/index-BkKYXjJ0.cjs +0 -1
- package/dist/index-Bpt6Hcq2.cjs +0 -1
- package/dist/index-CI__ZdC-.cjs +0 -1
- package/dist/index-CPfseYEB.cjs +0 -1
- package/dist/index-CZN1K7bK.js +0 -408
- package/dist/index-Cdxp_a8K.js +0 -185
- package/dist/index-CxS1YyFs.cjs +0 -1
- package/dist/index-DXIV-OAV.cjs +0 -1
- package/dist/index-DY4cro4C.js +0 -3995
- package/dist/index-DtsLJPQK.js +0 -1493
- package/dist/index-jVYlDMIh.cjs +0 -1
- package/dist/index-qHbYDYso.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-Cek8Ghpc.cjs +0 -56
- package/dist/main-BrbcMu5X.cjs +0 -1
- package/dist/menu-BXTfsfTB.cjs +0 -21
- package/dist/menuIndex-BWim3TlH.js +0 -33
- package/dist/menuIndex-Cg6xI-jR.cjs +0 -1
|
@@ -0,0 +1,1490 @@
|
|
|
1
|
+
import { ref as B, watch as Fe, nextTick as il, resolveComponent as la, createBlock as Ve, openBlock as te, withCtx as ee, createElementVNode as ue, renderSlot as Oa, onMounted as ra, createElementBlock as Ae, normalizeClass as nl, toDisplayString as Se, createCommentVNode as ea, Fragment as Va, renderList as qa, normalizeStyle as Ga, createVNode as ne, unref as sl, defineComponent as ol, createSlots as tl, createTextVNode as Ue } from "vue";
|
|
2
|
+
import { c1 as ul, bW as Ea, k as fl, 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 fe, bM as qe, bK as yl, bL as pl, s as je, u as Wa, p as Ke, bP as hl, bO as Ba } from "./menu-BPLW-L8U.js";
|
|
3
|
+
import { d as Ge, i as gl, c as ja, j as bl } from "./index-C3Lo66u2.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 kl, l as Tl } 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 Dl(a) {
|
|
10
|
+
return this.__data__.set(a, wl), this;
|
|
11
|
+
}
|
|
12
|
+
function Cl(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 ul(); ++l < i; )
|
|
18
|
+
this.add(a[l]);
|
|
19
|
+
}
|
|
20
|
+
We.prototype.add = We.prototype.push = Dl;
|
|
21
|
+
We.prototype.has = Cl;
|
|
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 s = i & Sl, f = a.length, t = l.length;
|
|
34
|
+
if (f != t && !(s && t > f))
|
|
35
|
+
return !1;
|
|
36
|
+
var d = n.get(a), u = n.get(l);
|
|
37
|
+
if (d && u)
|
|
38
|
+
return d == l && u == a;
|
|
39
|
+
var c = -1, y = !0, _ = i & Pl ? new We() : void 0;
|
|
40
|
+
for (n.set(a, l), n.set(l, a); ++c < f; ) {
|
|
41
|
+
var E = a[c], R = l[c];
|
|
42
|
+
if (e)
|
|
43
|
+
var L = s ? e(R, E, c, l, a, n) : e(E, R, c, a, l, n);
|
|
44
|
+
if (L !== void 0) {
|
|
45
|
+
if (L)
|
|
46
|
+
continue;
|
|
47
|
+
y = !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
|
+
y = !1;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
} else if (!(E === R || r(E, R, i, e, n))) {
|
|
59
|
+
y = !1;
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return n.delete(a), n.delete(l), y;
|
|
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]", xl = "[object Number]", Ml = "[object RegExp]", Ll = "[object Set]", Jl = "[object String]", Ul = "[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, s) {
|
|
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 xl:
|
|
89
|
+
return fl(+a, +l);
|
|
90
|
+
case Kl:
|
|
91
|
+
return a.name == l.name && a.message == l.message;
|
|
92
|
+
case Ml:
|
|
93
|
+
case Jl:
|
|
94
|
+
return a == l + "";
|
|
95
|
+
case $l:
|
|
96
|
+
var f = Fl;
|
|
97
|
+
case Ll:
|
|
98
|
+
var t = e & Nl;
|
|
99
|
+
if (f || (f = Il), a.size != l.size && !t)
|
|
100
|
+
return !1;
|
|
101
|
+
var d = s.get(a);
|
|
102
|
+
if (d)
|
|
103
|
+
return d == l;
|
|
104
|
+
e |= Rl, s.set(a, l);
|
|
105
|
+
var u = Qa(f(a), f(l), e, r, n, s);
|
|
106
|
+
return s.delete(a), u;
|
|
107
|
+
case Ul:
|
|
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 s = i & Gl, f = Pa(a), t = f.length, d = Pa(l), u = d.length;
|
|
116
|
+
if (t != u && !s)
|
|
117
|
+
return !1;
|
|
118
|
+
for (var c = t; c--; ) {
|
|
119
|
+
var y = f[c];
|
|
120
|
+
if (!(s ? y in l : Ql.call(l, y)))
|
|
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 = s; ++c < t; ) {
|
|
129
|
+
y = f[c];
|
|
130
|
+
var j = a[y], K = l[y];
|
|
131
|
+
if (e)
|
|
132
|
+
var X = s ? e(K, j, y, l, a, n) : e(j, K, y, 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 = y == "constructor");
|
|
138
|
+
}
|
|
139
|
+
if (R && !L) {
|
|
140
|
+
var U = a.constructor, w = l.constructor;
|
|
141
|
+
U != w && "constructor" in a && "constructor" in l && !(typeof U == "function" && U instanceof U && typeof w == "function" && w instanceof w) && (R = !1);
|
|
142
|
+
}
|
|
143
|
+
return n.delete(a), n.delete(l), R;
|
|
144
|
+
}
|
|
145
|
+
var Yl = 1, xa = "[object Arguments]", Ma = "[object Array]", He = "[object Object]", Zl = Object.prototype, La = Zl.hasOwnProperty;
|
|
146
|
+
function zl(a, l, i, e, r, n) {
|
|
147
|
+
var s = Na(a), f = Na(l), t = s ? Ma : Fa(a), d = f ? Ma : Fa(l);
|
|
148
|
+
t = t == xa ? He : t, d = d == xa ? He : d;
|
|
149
|
+
var u = t == He, c = d == He, y = t == d;
|
|
150
|
+
if (y && Ia(a)) {
|
|
151
|
+
if (!Ia(l))
|
|
152
|
+
return !1;
|
|
153
|
+
s = !0, u = !1;
|
|
154
|
+
}
|
|
155
|
+
if (y && !u)
|
|
156
|
+
return n || (n = new Ze()), s || cl(a) ? Qa(a, l, i, e, r, n) : ql(a, l, t, i, e, r, n);
|
|
157
|
+
if (!(i & Yl)) {
|
|
158
|
+
var _ = u && La.call(a, "__wrapped__"), E = c && 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 y ? (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, s;
|
|
201
|
+
(s = (n = i.value) == null ? void 0 : n.updatePopper) == null || s.call(n);
|
|
202
|
+
});
|
|
203
|
+
},
|
|
204
|
+
{ deep: !0, immediate: !0 }
|
|
205
|
+
), (n, s) => {
|
|
206
|
+
const f = la("el-popover");
|
|
207
|
+
return te(), Ve(f, {
|
|
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
|
+
ue("div", null, [
|
|
217
|
+
Oa(n.$slots, "reference", {
|
|
218
|
+
ref_key: "referenceRef",
|
|
219
|
+
ref: r
|
|
220
|
+
})
|
|
221
|
+
])
|
|
222
|
+
]),
|
|
223
|
+
default: ee(() => [
|
|
224
|
+
ue("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"], sr = { class: "extra-button-filter" }, or = { class: "form-content-value" }, tr = {
|
|
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([]), s = B([{ label: "取消" }, { label: "确认" }]), f = (u) => {
|
|
255
|
+
i("buttonClick", u);
|
|
256
|
+
}, t = (u) => {
|
|
257
|
+
var c, y;
|
|
258
|
+
n.value = (y = (c = Ie(m(u))) == null ? void 0 : c.filter((_) => (_ == null ? void 0 : _.label) !== "" && (_ == null ? void 0 : _.label) !== "操作")) == null ? void 0 : y.map((_) => ({
|
|
259
|
+
label: (_ == null ? void 0 : _.label) ?? "",
|
|
260
|
+
value: "",
|
|
261
|
+
name: (_ == null ? void 0 : _.label) ?? "",
|
|
262
|
+
isFormColHidden: _ == null ? void 0 : _.isTableColHidden
|
|
263
|
+
}));
|
|
264
|
+
}, d = (u) => {
|
|
265
|
+
(u == null ? void 0 : u.buttonName) === "确认" && i("filter", u == null ? void 0 : u.content), r.value = !1;
|
|
266
|
+
};
|
|
267
|
+
return ra(() => {
|
|
268
|
+
t(e.columns);
|
|
269
|
+
}), Fe(
|
|
270
|
+
() => e.columns,
|
|
271
|
+
() => {
|
|
272
|
+
t(e.columns);
|
|
273
|
+
},
|
|
274
|
+
{ deep: !0, immediate: !0 }
|
|
275
|
+
), (u, c) => {
|
|
276
|
+
var _;
|
|
277
|
+
const y = la("el-tooltip");
|
|
278
|
+
return te(), Ae("div", lr, [
|
|
279
|
+
ue("div", {
|
|
280
|
+
class: nl(a.compName ? "table-name-wrap" : "")
|
|
281
|
+
}, Se(a.compName), 3),
|
|
282
|
+
ue("div", rr, [
|
|
283
|
+
e != null && e.buttons && ((_ = e == null ? void 0 : e.buttons) == null ? void 0 : _.length) > 0 ? (te(), Ae("div", ir, [
|
|
284
|
+
(te(!0), Ae(Va, null, qa(e == null ? void 0 : e.buttons, (E, R) => (te(), Ae("div", {
|
|
285
|
+
class: "extra-contents",
|
|
286
|
+
key: R
|
|
287
|
+
}, [
|
|
288
|
+
ue("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) => f(E == null ? void 0 : E.label)
|
|
292
|
+
}, Se(E == null ? void 0 : E.label), 13, nr)
|
|
293
|
+
]))), 128))
|
|
294
|
+
])) : ea("", !0),
|
|
295
|
+
ue("div", sr, [
|
|
296
|
+
ne(ar, {
|
|
297
|
+
title: "筛选数据",
|
|
298
|
+
width: 500,
|
|
299
|
+
isVisible: r.value
|
|
300
|
+
}, {
|
|
301
|
+
reference: ee(() => [
|
|
302
|
+
ne(y, {
|
|
303
|
+
content: "筛选",
|
|
304
|
+
placement: "top-start"
|
|
305
|
+
}, {
|
|
306
|
+
default: ee(() => [
|
|
307
|
+
ue("div", {
|
|
308
|
+
class: "button-style",
|
|
309
|
+
onClick: c[0] || (c[0] = (E) => r.value = !r.value)
|
|
310
|
+
}, [
|
|
311
|
+
ne(sl(dl), { color: "var(--ssComponent-black)" })
|
|
312
|
+
])
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
})
|
|
316
|
+
]),
|
|
317
|
+
content: ee(() => [
|
|
318
|
+
ue("div", or, [
|
|
319
|
+
(te(), Ve(Ge, {
|
|
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: d
|
|
328
|
+
}, null, 8, ["rowContents", "buttonValue"]))
|
|
329
|
+
])
|
|
330
|
+
]),
|
|
331
|
+
_: 1
|
|
332
|
+
}, 8, ["isVisible"])
|
|
333
|
+
])
|
|
334
|
+
])
|
|
335
|
+
]);
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
}, ur = /* @__PURE__ */ na(tr, [["__scopeId", "data-v-a3b05d95"]]), fr = 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__ */ ol({
|
|
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) => (te(), Ae("div", cr, [
|
|
370
|
+
ue("div", dr, [
|
|
371
|
+
ne(Ge, {
|
|
372
|
+
rowContents: l.value,
|
|
373
|
+
isRowFlex: !0
|
|
374
|
+
}, null, 8, ["rowContents"])
|
|
375
|
+
]),
|
|
376
|
+
ue("div", yr, [
|
|
377
|
+
ne(Ge, {
|
|
378
|
+
rowContents: i.value,
|
|
379
|
+
isEdit: !1,
|
|
380
|
+
isRowFlex: !0
|
|
381
|
+
}, null, 8, ["rowContents"])
|
|
382
|
+
])
|
|
383
|
+
]));
|
|
384
|
+
}
|
|
385
|
+
}), hr = /* @__PURE__ */ na(pr, [["__scopeId", "data-v-73db0fe7"]]), gr = 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 s = {};
|
|
407
|
+
return r = r == null ? void 0 : r.forEach((f, t) => {
|
|
408
|
+
var d;
|
|
409
|
+
(d = e == null ? void 0 : e[t]) != null && d.prop ? s[e[t].prop] = f : Array.isArray(f) && (s.children = Ya(f, e));
|
|
410
|
+
}), Object.assign(s, { 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, s) => {
|
|
417
|
+
var f, t;
|
|
418
|
+
return !Array.isArray(n) || !((f = r == null ? void 0 : r[s]) != null && f.label) && !i || (n.unshift(((t = r == null ? void 0 : r[s]) == null ? void 0 : t.label) ?? ""), n.some((d) => Array.isArray(d)) && (n = n == null ? void 0 : n.map((d) => {
|
|
419
|
+
var u;
|
|
420
|
+
return Array.isArray(d) && (d = Za(d, (u = r == null ? void 0 : r[s]) == null ? void 0 : u.children, i)), d;
|
|
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, s;
|
|
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((f) => f.id !== i) : e.children = (s = e.children) == null ? void 0 : s.map((f) => (f.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), f = za(f, r, i)), f)), 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((s) => (s.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), s = el(s, r, i)), s)), e;
|
|
451
|
+
}, Qe = (a, l) => a == null ? void 0 : a.map((e) => {
|
|
452
|
+
var r, n, s, f, t, d;
|
|
453
|
+
if (Array.isArray(e) ? e = e : e = [e], (r = e == null ? void 0 : e.filter((u) => !(u != null && u.id) || typeof (u == null ? void 0 : u.id) == "string")) != null && r.every((u) => typeof u != "object" || u === null))
|
|
454
|
+
return e;
|
|
455
|
+
if ((n = e == null ? void 0 : e.filter((u) => !(u != null && u.id) || typeof (u == null ? void 0 : u.id) == "string")) != null && n.some((u) => Array.isArray(u)))
|
|
456
|
+
return e;
|
|
457
|
+
{
|
|
458
|
+
let u = [];
|
|
459
|
+
if (u.push(e == null ? void 0 : e.find((c) => (c == null ? void 0 : c.id) && typeof (c == null ? void 0 : c.id) == "number")), Array.isArray(l == null ? void 0 : l[0])) {
|
|
460
|
+
const c = (s = e == null ? void 0 : e.filter((y) => !(y != null && y.id) || typeof (y == null ? void 0 : y.id) == "string")) == null ? void 0 : s[0];
|
|
461
|
+
(f = Ie(m(l == null ? void 0 : l[0]))) == null || f.forEach((y) => {
|
|
462
|
+
u.push(c == null ? void 0 : c[(y == null ? void 0 : y.prop) ?? (y == null ? void 0 : y.label) ?? y]);
|
|
463
|
+
});
|
|
464
|
+
} else {
|
|
465
|
+
const c = (t = e == null ? void 0 : e.filter((y) => !(y != null && y.id) || typeof (y == null ? void 0 : y.id) == "string")) == null ? void 0 : t[0];
|
|
466
|
+
(d = Ie(m(l))) == null || d.forEach((y) => {
|
|
467
|
+
u.push(c == null ? void 0 : c[(y == null ? void 0 : y.prop) ?? (y == null ? void 0 : y.label) ?? y]);
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
return u;
|
|
471
|
+
}
|
|
472
|
+
}), Gr = (a) => {
|
|
473
|
+
try {
|
|
474
|
+
return JSON.parse(a), !0;
|
|
475
|
+
} catch {
|
|
476
|
+
return !1;
|
|
477
|
+
}
|
|
478
|
+
}, Ja = (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((s) => {
|
|
483
|
+
!(s != null && s.children) || s.children.length === 0 ? l.push(s.label) : e(s.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
|
+
}, kr = (a, l, i) => {
|
|
494
|
+
var r;
|
|
495
|
+
let e = (r = m(a)) == null ? void 0 : r.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((f, t) => {
|
|
499
|
+
let d = {};
|
|
500
|
+
if (i != null && i.find((u) => u === l[t]))
|
|
501
|
+
return d[l[t]] = f, d;
|
|
502
|
+
})) == null ? void 0 : s.filter((f) => f), n;
|
|
503
|
+
}), e;
|
|
504
|
+
}, Wr = (a, l) => {
|
|
505
|
+
var s, f;
|
|
506
|
+
const i = m(a), e = (s = i == null ? void 0 : i.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : s.contents, r = (f = i == null ? void 0 : i.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : f.contents;
|
|
507
|
+
return kr(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
|
+
}, Tr = async (a) => {
|
|
526
|
+
var s, f, t;
|
|
527
|
+
if (!(a != null && a.extra)) return;
|
|
528
|
+
let l = (s = a == null ? void 0 : a.extra) == null ? void 0 : s.tableId, i = a == null ? void 0 : a.contents;
|
|
529
|
+
const r = (t = (await fe({
|
|
530
|
+
key: {
|
|
531
|
+
type: "data",
|
|
532
|
+
pageKey: (f = a == null ? void 0 : a.extra) == null ? void 0 : f.pageKey,
|
|
533
|
+
tableId: l,
|
|
534
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
535
|
+
}
|
|
536
|
+
})).data.result) == null ? void 0 : t.map((d) => d == null ? void 0 : d.id);
|
|
537
|
+
r && (r == null ? void 0 : r.length) > 0 && await yl({
|
|
538
|
+
ids: r
|
|
539
|
+
});
|
|
540
|
+
let n = [];
|
|
541
|
+
i == null || i.forEach((d) => {
|
|
542
|
+
var c, y;
|
|
543
|
+
let u = {};
|
|
544
|
+
(c = Object.keys(d)) == null || c.forEach((_) => {
|
|
545
|
+
u[_.toUpperCase()] = d[_.toLowerCase()];
|
|
546
|
+
}), n.push({
|
|
547
|
+
key: {
|
|
548
|
+
type: "data",
|
|
549
|
+
pageKey: (y = a == null ? void 0 : a.extra) == null ? void 0 : y.pageKey,
|
|
550
|
+
tableId: l,
|
|
551
|
+
systemKey: sessionStorage.getItem("systemKey")
|
|
552
|
+
},
|
|
553
|
+
value: {
|
|
554
|
+
tableData: u
|
|
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((s) => {
|
|
564
|
+
var f;
|
|
565
|
+
Array.isArray(s == null ? void 0 : s.contents) && ((f = s == null ? void 0 : s.contents) == null || f.forEach((t) => {
|
|
566
|
+
e = r.includes(t.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 s;
|
|
574
|
+
return (n == null ? void 0 : n.key) === "formContent" && (n.contents = (s = n == null ? void 0 : n.contents) == null ? void 0 : s.map((f) => (Object.keys(l).includes(f.key) && (f.value = l[f.key]), f))), 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 s, f, t, d, u;
|
|
585
|
+
let l = (f = (s = a == null ? void 0 : a[0]) == null ? void 0 : s.find((c) => c == null ? void 0 : c.id)) == null ? void 0 : f.id;
|
|
586
|
+
const i = await fe({
|
|
587
|
+
id: l
|
|
588
|
+
});
|
|
589
|
+
let e = await ((u = (d = (t = i == null ? void 0 : i.data) == null ? void 0 : t.result) == null ? void 0 : d[0]) == null ? void 0 : u.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 Tr((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, s, f;
|
|
615
|
+
const l = a;
|
|
616
|
+
let i = [];
|
|
617
|
+
l.compData = (r = l.compData) == null ? void 0 : r.filter((t) => (t == null ? void 0 : t.key) !== "tableContents" && (t == null ? void 0 : t.key) !== "tableIndex");
|
|
618
|
+
const e = (s = (n = m(l.compData)) == null ? void 0 : n.find((t) => (t == null ? void 0 : t.key) === "tableIndexColumn")) == null ? void 0 : s.contents;
|
|
619
|
+
return (f = m(l.compData)) == null || f.forEach((t) => {
|
|
620
|
+
if ((t == null ? void 0 : t.key) !== "tableIndexColumn" && (t == null ? void 0 : t.key) !== "header")
|
|
621
|
+
i.push(t);
|
|
622
|
+
else if ((t == null ? void 0 : t.key) === "header") {
|
|
623
|
+
let d = t.contents;
|
|
624
|
+
e && (d != null && d.every((u) => Array.isArray(u)) ? d == null || d[0].unshift({ label: e }) : d.unshift({ label: e })), i.push({
|
|
625
|
+
key: "header",
|
|
626
|
+
contents: d
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
}), l.compData = i, l;
|
|
630
|
+
}, ri = (a) => {
|
|
631
|
+
var n, s, f, t, d;
|
|
632
|
+
const l = (n = a.compData) == null ? void 0 : n.filter((u) => (u == null ? void 0 : u.key) === "tableContents" || (u == null ? void 0 : u.key) === "tableIndex"), i = (f = (s = l == null ? void 0 : l.find((u) => (u == null ? void 0 : u.key) === "tableIndex")) == null ? void 0 : s.contents) == null ? void 0 : f.map((u) => u.label), e = (t = l == null ? void 0 : l.find((u) => (u == null ? void 0 : u.key) === "tableContents")) == null ? void 0 : t.contents;
|
|
633
|
+
let r = [];
|
|
634
|
+
return (i == null ? void 0 : i.length) > 0 && (e != null && e.every((u) => Array.isArray(u))) ? r = i == null ? void 0 : i.map((u, c) => e[c] ? [u, ...e[c]] : [u]) : Array.isArray(e == null ? void 0 : e[0]) && ((d = e == null ? void 0 : e[0]) != null && d.every((u) => Array.isArray(u))) ? r = e == null ? void 0 : e[0] : Array.isArray(e == null ? void 0 : e[0]) ? r = e : r.push(e), r;
|
|
635
|
+
}, Dr = (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
|
+
}, Cr = (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((s) => Array.isArray(s)) && i(n.find((s) => Array.isArray(s)), 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((s) => !Array.isArray(s)))) == null ? void 0 : r[0]), e == null || e.forEach((n) => {
|
|
667
|
+
n != null && n.some((s) => Array.isArray(s)) && i(n.find((s) => Array.isArray(s)));
|
|
668
|
+
})));
|
|
669
|
+
}
|
|
670
|
+
return i(a), l;
|
|
671
|
+
}, Sr = (a, l) => {
|
|
672
|
+
let i;
|
|
673
|
+
function e(r, n, s = 1) {
|
|
674
|
+
var t;
|
|
675
|
+
if (!r || r.length === 0) return;
|
|
676
|
+
const f = (t = m(n)) == null ? void 0 : t.map((d) => d == null ? void 0 : d.filter((u) => !Array.isArray(u)));
|
|
677
|
+
return f != null && f.find((d) => Ja(d, r == null ? void 0 : r.key)) ? (n == null || n.forEach((d) => {
|
|
678
|
+
!e(r, d.find((c) => Array.isArray(c))) && Ja(d.filter((c) => !Array.isArray(c)), r == null ? void 0 : r.key) && (i = {
|
|
679
|
+
type: s,
|
|
680
|
+
contents: d.filter((c) => !Array.isArray(c))
|
|
681
|
+
});
|
|
682
|
+
}), !0) : !1;
|
|
683
|
+
}
|
|
684
|
+
return e(a, l, 0), i;
|
|
685
|
+
}, Ua = (a, l) => {
|
|
686
|
+
function i(e, r) {
|
|
687
|
+
return !e || e.length === 0 || e == null ? void 0 : e.map((s, f) => {
|
|
688
|
+
var d, u;
|
|
689
|
+
let t = s;
|
|
690
|
+
return t.unshift((d = r == null ? void 0 : r[f]) == null ? void 0 : d.label), t.some((c) => Array.isArray(c)) && (t[t.length - 1] = i(t.find((c) => Array.isArray(c)), (u = r == null ? void 0 : r[f]) == null ? void 0 : u.children)), t;
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
return i(a, l);
|
|
694
|
+
}, ii = (a) => {
|
|
695
|
+
var i, e, r, n, s, f, t, d, u, c, y, _, E, R, L, j, K, X, U, w, $, G, N, x, J;
|
|
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 ((t = (f = (s = l.compData) == null ? void 0 : s.find((O) => (O == null ? void 0 : O.key) === "tableContents")) == null ? void 0 : f.contents) == null ? void 0 : t.length) === 1 && ((y = (c = (u = (d = l.compData) == null ? void 0 : d.find((O) => (O == null ? void 0 : O.key) === "tableContents")) == null ? void 0 : u.contents) == null ? void 0 : c[0]) != null && y.every((O) => Array.isArray(O))) ? (l.compData = (_ = l.compData) == null ? void 0 : _.map((O) => {
|
|
700
|
+
var M;
|
|
701
|
+
return (O == null ? void 0 : O.key) === "tableContents" && (O.contents = (M = O.contents) == null ? void 0 : M[0]), O;
|
|
702
|
+
}), [l]) : [l];
|
|
703
|
+
{
|
|
704
|
+
let O = [];
|
|
705
|
+
const M = l.compData, ce = (E = m(M)) == null ? void 0 : E.find((I) => (I == null ? void 0 : I.key) === "tableIndexColumn"), ye = (R = m(M)) == null ? void 0 : R.find((I) => (I == null ? void 0 : I.key) === "extraButton"), P = (L = m(M)) == null ? void 0 : L.find((I) => (I == null ? void 0 : I.key) === "rowButton"), ae = Er((K = (j = m(M)) == null ? void 0 : j.find((I) => (I == null ? void 0 : I.key) === "header")) == null ? void 0 : K.contents), W = (X = m(M)) == null ? void 0 : X.find((I) => (I == null ? void 0 : I.key) === "tableIndex"), ke = Or((w = (U = m(M)) == null ? void 0 : U.find((I) => (I == null ? void 0 : I.key) === "tableContents")) == null ? void 0 : w.contents), le = Ua((G = ($ = m(M)) == null ? void 0 : $.find((I) => (I == null ? void 0 : I.key) === "tableContents")) == null ? void 0 : G.contents, W == null ? void 0 : W.contents), Pe = Cr(Ua((x = (N = m(M)) == null ? void 0 : N.find((I) => (I == null ? void 0 : I.key) === "tableContents")) == null ? void 0 : x.contents, W == null ? void 0 : W.contents));
|
|
706
|
+
if (W)
|
|
707
|
+
return (J = Dr(W.contents)) == null || J.forEach((I, be) => {
|
|
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[be]
|
|
716
|
+
}), de.push({
|
|
717
|
+
key: "header",
|
|
718
|
+
contents: ae != null && ae[be] ? [ae == null ? void 0 : ae[be]] : [ae == null ? void 0 : ae[0]]
|
|
719
|
+
}), O.push({
|
|
720
|
+
comp: "Table",
|
|
721
|
+
compData: de,
|
|
722
|
+
name: "",
|
|
723
|
+
parentTableContents: ((De = Sr(Pe[be], 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 s, f;
|
|
741
|
+
n < ((f = (s = m(a)) == null ? void 0 : s.split("/")) == null ? void 0 : f.length) - 1 && (l = l === "" ? l + r : l + "/" + r);
|
|
742
|
+
}), l;
|
|
743
|
+
}, aa = Wa(Ke), { activeMenuPath: Pr } = je(aa), Fr = async (a, l) => {
|
|
744
|
+
var d, u, c, y, _, E, R, L, j, K, X, U, w, $, G, N;
|
|
745
|
+
const i = (u = (d = a == null ? void 0 : a.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : u.find((x) => x == null ? void 0 : x.columnPath);
|
|
746
|
+
let e = (y = (c = m(i == null ? void 0 : i.columnPath)) == null ? void 0 : c.split("[")) == null ? void 0 : y[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 s = await fe({
|
|
748
|
+
key: {
|
|
749
|
+
pageKey: e,
|
|
750
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
751
|
+
type: "structure"
|
|
752
|
+
}
|
|
753
|
+
}), f = await fe({
|
|
754
|
+
key: {
|
|
755
|
+
pageKey: Pr.value,
|
|
756
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
757
|
+
tableId: parseInt(l),
|
|
758
|
+
type: "data"
|
|
759
|
+
}
|
|
760
|
+
}), t = [];
|
|
761
|
+
if ((X = (K = f == null ? void 0 : f.data) == null ? void 0 : K.result) == null || X.forEach((x) => {
|
|
762
|
+
t.push(
|
|
763
|
+
[
|
|
764
|
+
{
|
|
765
|
+
id: x == null ? void 0 : x.id
|
|
766
|
+
},
|
|
767
|
+
x.value.tableData
|
|
768
|
+
]
|
|
769
|
+
);
|
|
770
|
+
}), Array.isArray((U = s == null ? void 0 : s.data) == null ? void 0 : U.result) && (($ = (w = s == null ? void 0 : s.data) == null ? void 0 : w.result) == null ? void 0 : $.length) > 0) {
|
|
771
|
+
const x = await ((N = (G = s == null ? void 0 : s.data) == null ? void 0 : G.result) == null ? void 0 : N.map(async (J) => {
|
|
772
|
+
var O, M, ce, ye, P, ae, W, ke, le, Pe, I, be, de, De, $e;
|
|
773
|
+
if (((M = (O = J == null ? void 0 : J.value) == null ? void 0 : O.pageData) == null ? void 0 : M.name) === r) {
|
|
774
|
+
n = m((ye = (ce = J == null ? void 0 : J.value) == null ? void 0 : ce.pageData) == null ? void 0 : ye.compData);
|
|
775
|
+
const Re = await fe({
|
|
776
|
+
key: {
|
|
777
|
+
pageKey: e,
|
|
778
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
779
|
+
tableId: J == null ? void 0 : J.id,
|
|
780
|
+
type: "data"
|
|
781
|
+
}
|
|
782
|
+
}), xe = (ae = (P = Re == null ? void 0 : Re.data) == null ? void 0 : P.result) == null ? void 0 : ae.map((Q) => {
|
|
783
|
+
var Ce;
|
|
784
|
+
let Te = [];
|
|
785
|
+
return Te.push({
|
|
786
|
+
id: Q == null ? void 0 : Q.id
|
|
787
|
+
}), Te.push((Ce = Q == null ? void 0 : Q.value) == null ? void 0 : Ce.tableData), Te;
|
|
788
|
+
});
|
|
789
|
+
let Me = Qe(t, (Pe = (le = (ke = (W = J == null ? void 0 : J.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(Me)) == null ? void 0 : I.map((Q) => Q.slice(1))).every((Q) => Q.every((Te) => Te === void 0)), Le ? n.push({
|
|
791
|
+
key: "tableContents",
|
|
792
|
+
contents: Qe(xe, ($e = (De = (de = (be = J == null ? void 0 : J.value) == null ? void 0 : be.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: Me
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
}));
|
|
799
|
+
await Promise.all(x);
|
|
800
|
+
}
|
|
801
|
+
return n;
|
|
802
|
+
}, Ha = async (a, l, i = "", e, r = !1, n) => {
|
|
803
|
+
var E, R, L, j, K, X, U;
|
|
804
|
+
let s;
|
|
805
|
+
if (!r)
|
|
806
|
+
s = await fe({
|
|
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 fe({ id: G });
|
|
817
|
+
});
|
|
818
|
+
const $ = await Promise.all(w);
|
|
819
|
+
s = {
|
|
820
|
+
data: {
|
|
821
|
+
result: $ == null ? void 0 : $.map((G) => {
|
|
822
|
+
var N, x;
|
|
823
|
+
return (x = (N = G == null ? void 0 : G.data) == null ? void 0 : N.result) == null ? void 0 : x[0];
|
|
824
|
+
})
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
const f = await fe({
|
|
829
|
+
key: {
|
|
830
|
+
pageKey: a,
|
|
831
|
+
systemKey: l,
|
|
832
|
+
type: "structureMethod"
|
|
833
|
+
}
|
|
834
|
+
}), t = (R = (E = s == null ? void 0 : s.data) == null ? void 0 : E.result) == null ? void 0 : R.map((w) => w.id);
|
|
835
|
+
if (!t) return;
|
|
836
|
+
const d = t == null ? void 0 : t.map((w) => fe({
|
|
837
|
+
key: {
|
|
838
|
+
pageKey: a,
|
|
839
|
+
systemKey: l,
|
|
840
|
+
type: "data",
|
|
841
|
+
tableId: w
|
|
842
|
+
}
|
|
843
|
+
})), u = await Promise.all(d);
|
|
844
|
+
console.log("tableContents:", u);
|
|
845
|
+
const c = [];
|
|
846
|
+
u == null || u.forEach((w) => {
|
|
847
|
+
var N, x, J, O;
|
|
848
|
+
const $ = (N = w.data.result) == null ? void 0 : N.map((M) => {
|
|
849
|
+
const ce = Array.isArray(M.value.tableData) ? M.value.tableData : [M.value.tableData];
|
|
850
|
+
return ce.unshift({
|
|
851
|
+
id: M.id
|
|
852
|
+
}), ce;
|
|
853
|
+
}), G = (O = (J = (x = w.data.result) == null ? void 0 : x[0]) == null ? void 0 : J.key) == null ? void 0 : O.tableId;
|
|
854
|
+
c.push({
|
|
855
|
+
key: G,
|
|
856
|
+
contents: $
|
|
857
|
+
});
|
|
858
|
+
});
|
|
859
|
+
let y = [];
|
|
860
|
+
const _ = await ((L = s.data.result) == null ? void 0 : L.map(async (w) => {
|
|
861
|
+
var x, J, O, M, ce, ye;
|
|
862
|
+
const $ = w.value.pageData, G = w == null ? void 0 : w.id;
|
|
863
|
+
let N = (x = m($.compData)) == null ? void 0 : x.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 = (J = N == null ? void 0 : N.find((P) => (P == null ? void 0 : P.key) === "header")) == null ? void 0 : J.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((M = c == null ? void 0 : c.find((P) => (P == null ? void 0 : P.key) === w.id)) == null ? void 0 : M.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
|
+
y.push($);
|
|
872
|
+
else {
|
|
873
|
+
let P;
|
|
874
|
+
P = {
|
|
875
|
+
name: "",
|
|
876
|
+
compData: [$],
|
|
877
|
+
comp: "calculator"
|
|
878
|
+
}, y.push(P);
|
|
879
|
+
}
|
|
880
|
+
}));
|
|
881
|
+
return await Promise.all(_), ((K = (j = f.data.result) == null ? void 0 : j.map((w) => w.value.pageData)) == null ? void 0 : K.filter((w) => Object.values(w).length > 0).length) > 0 && y.push({
|
|
882
|
+
comp: "methodButton",
|
|
883
|
+
name: "",
|
|
884
|
+
compData: (U = (X = f.data.result) == null ? void 0 : X.map((w) => w.value.pageData)) == null ? void 0 : U.filter((w) => Object.values(w).length > 0)
|
|
885
|
+
}), y = y.sort((w, $) => w.id - $.id), y;
|
|
886
|
+
}, si = async (a) => {
|
|
887
|
+
await hl({
|
|
888
|
+
id: a
|
|
889
|
+
});
|
|
890
|
+
}, oi = async (a, l, i, e, r, n, s) => {
|
|
891
|
+
var t, d, u, c, y, _, E, R, L, j, K, X, U;
|
|
892
|
+
const f = ((d = (t = s == null ? void 0 : s.content) == null ? void 0 : t[0]) == null ? void 0 : d.id) ?? "";
|
|
893
|
+
if (f !== "" && ((u = s == null ? void 0 : s.content) == null ? void 0 : u.length) > 1) {
|
|
894
|
+
const w = await fe({
|
|
895
|
+
id: f
|
|
896
|
+
});
|
|
897
|
+
let $ = ((E = (_ = (y = (c = w == null ? void 0 : w.data) == null ? void 0 : c.result) == null ? void 0 : y[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, (U = Ne(n)) == null ? void 0 : U.filter((w) => w !== "操作"))
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
}, ti = async (a, l, i, e, r, n, s) => {
|
|
922
|
+
var u, c, y, _, E, R, L, j, K, X;
|
|
923
|
+
const f = await fe({
|
|
924
|
+
id: e
|
|
925
|
+
});
|
|
926
|
+
let t = ((_ = (y = (c = (u = f == null ? void 0 : f.data) == null ? void 0 : u.result) == null ? void 0 : c[0]) == null ? void 0 : y.key) == null ? void 0 : _.tableId) ?? "", d = ((j = (L = (R = (E = f == null ? void 0 : f.data) == null ? void 0 : E.result) == null ? void 0 : R[0]) == null ? void 0 : L.key) == null ? void 0 : j.pageKey) ?? "";
|
|
927
|
+
t && t !== "" ? await qe({
|
|
928
|
+
key: {
|
|
929
|
+
type: a,
|
|
930
|
+
pageKey: d,
|
|
931
|
+
tableId: t,
|
|
932
|
+
systemKey: r
|
|
933
|
+
},
|
|
934
|
+
value: {
|
|
935
|
+
tableData: Xe(n, (K = Ne(s)) == null ? void 0 : K.filter((U) => U !== "操作"))
|
|
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(s)) == null ? void 0 : X.filter((U) => U !== "操作"))
|
|
947
|
+
},
|
|
948
|
+
id: e
|
|
949
|
+
});
|
|
950
|
+
}, ui = async (a, l) => {
|
|
951
|
+
await qe({
|
|
952
|
+
value: {
|
|
953
|
+
pageData: l
|
|
954
|
+
},
|
|
955
|
+
id: a
|
|
956
|
+
});
|
|
957
|
+
}, Ir = async (a, l) => await fe({
|
|
958
|
+
key: a,
|
|
959
|
+
valueLikes: l
|
|
960
|
+
}), fi = async () => {
|
|
961
|
+
var a, l, i, e, r, n, s, f, t;
|
|
962
|
+
try {
|
|
963
|
+
const d = await fe({
|
|
964
|
+
key: {
|
|
965
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
966
|
+
layer: "superAdmin"
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
((a = d == null ? void 0 : d.data) == null ? void 0 : a.code) === 200 && (aa.setPlatform(((r = (e = (i = (l = d == null ? void 0 : d.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(((t = (f = (s = (n = d == null ? void 0 : d.data) == null ? void 0 : n.result) == null ? void 0 : s[0]) == null ? void 0 : f.key) == null ? void 0 : t.name) ?? ""));
|
|
970
|
+
} catch (d) {
|
|
971
|
+
return Promise.reject(d);
|
|
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" }, xr = {
|
|
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), s = B(), f = Wa(), { activeMenuPath: t } = je(f), d = Nr(Ke), u = vl(Ke), { extraContents: c } = je(u), y = 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
|
+
}), U = B(!1), w = B(), $ = B([]), G = B([]), N = B(!1), x = B([]), J = B([]), O = B(), M = B(), ce = fr(Ke), ye = B(), P = gr(Ke), { selectIndex: ae, selectMenu: W, selectTitle: ke } = je(P), { selectString: le } = je(ce), Pe = B(720), I = () => {
|
|
1026
|
+
K.value = !1;
|
|
1027
|
+
}, be = (o) => {
|
|
1028
|
+
e("clickTrigger", o);
|
|
1029
|
+
}, de = (o, b) => {
|
|
1030
|
+
if (Object.values(b).length !== 0)
|
|
1031
|
+
return Object.values(b).find((v) => {
|
|
1032
|
+
var F, A, p;
|
|
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")) || ((p = v == null ? void 0 : v.toString()) == null ? void 0 : p.includes(".obj"));
|
|
1034
|
+
}) ? [...o, X.value] : o;
|
|
1035
|
+
}, De = (o) => {
|
|
1036
|
+
var A;
|
|
1037
|
+
le.value === "" ? o == null || o[0] : (o == null ? void 0 : o.find((p) => (p == null ? void 0 : p.selectLabel) === "(" + le.value + ")")) ?? (o == null || o.find((p) => !(p != null && p.selectLabel)));
|
|
1038
|
+
let b = o;
|
|
1039
|
+
(A = r.value) != null && A.find((p) => p.prop === "index");
|
|
1040
|
+
let v = O.value;
|
|
1041
|
+
const F = [];
|
|
1042
|
+
return b == null || b.forEach((p, C) => {
|
|
1043
|
+
var H;
|
|
1044
|
+
let k = {};
|
|
1045
|
+
if (Array.isArray(p)) {
|
|
1046
|
+
let S = [];
|
|
1047
|
+
p == null || p.filter((h) => !(h != null && h.id)).forEach((h, V) => {
|
|
1048
|
+
var Y, q, se, _e, ve;
|
|
1049
|
+
if ((Y = v == null ? void 0 : v[V]) != null && Y.prop && !Array.isArray(h)) {
|
|
1050
|
+
let pe = {};
|
|
1051
|
+
pe[v[V].column] = h, c != null && c.value && ((q = c == null ? void 0 : c.value) == null ? void 0 : q.length) > 0 && ((se = c == null ? void 0 : c.value) != null && se.find((re) => JSON.stringify(re == null ? void 0 : re[0]) === JSON.stringify(pe))) && (S = (_e = c == null ? void 0 : c.value) == null ? void 0 : _e.find((re) => JSON.stringify(re == null ? void 0 : re[0]) === JSON.stringify(pe))), S && S.length > 0 ? k[v[V].prop] = S != null && S.find((re) => {
|
|
1052
|
+
var we;
|
|
1053
|
+
return ((we = Object.keys(re)) == null ? void 0 : we[0]) === v[V].column;
|
|
1054
|
+
}) ? (ve = S == null ? void 0 : S.find((re) => {
|
|
1055
|
+
var we;
|
|
1056
|
+
return ((we = Object.keys(re)) == null ? void 0 : we[0]) === v[V].column;
|
|
1057
|
+
})) == null ? void 0 : ve[v[V].column] : h : k[v[V].prop] = h;
|
|
1058
|
+
}
|
|
1059
|
+
});
|
|
1060
|
+
} else
|
|
1061
|
+
k = p;
|
|
1062
|
+
Array.isArray(p) && p.some((S) => S == null ? void 0 : S.id) ? F.push(Object.assign(k, { id: (H = p == null ? void 0 : p.find((S) => S.id)) == null ? void 0 : H.id })) : k.id ? F.push(k) : F.push(Object.assign(k, { id: C }));
|
|
1063
|
+
}), F;
|
|
1064
|
+
}, $e = async (o) => {
|
|
1065
|
+
var A, p, C, k, H;
|
|
1066
|
+
let b = {};
|
|
1067
|
+
for (let S in o)
|
|
1068
|
+
o[S] !== "" && (b["tableData." + S] = o[S]);
|
|
1069
|
+
const v = await Ir({
|
|
1070
|
+
type: "data",
|
|
1071
|
+
tableId: i == null ? void 0 : i.index,
|
|
1072
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
1073
|
+
pageKey: t.value
|
|
1074
|
+
}, b), F = (C = (p = (A = m(v)) == null ? void 0 : A.data) == null ? void 0 : p.result) == null ? void 0 : C.map((S) => {
|
|
1075
|
+
var V;
|
|
1076
|
+
let h = [];
|
|
1077
|
+
return h.push({
|
|
1078
|
+
id: S.id
|
|
1079
|
+
}), h.push((V = S == null ? void 0 : S.value) == null ? void 0 : V.tableData), h;
|
|
1080
|
+
});
|
|
1081
|
+
y.value = De(Qe(F, (H = (k = m(r.value)) == null ? void 0 : k.map((S) => S.label)) == null ? void 0 : H.filter((S) => S !== "操作")));
|
|
1082
|
+
}, Re = async (o) => {
|
|
1083
|
+
var F, A, p, C, k, H, S, h, V, Y;
|
|
1084
|
+
const b = (F = m(r.value)) == null ? void 0 : F.filter((q) => q == null ? void 0 : q.isRoute);
|
|
1085
|
+
if ((b == null ? void 0 : b.length) > 0) {
|
|
1086
|
+
let q = (A = b == null ? void 0 : b[0]) == null ? void 0 : A.prop, se = t.value + "/" + (o == null ? void 0 : o[q]), _e = t.value, ve = await Ha(se, sessionStorage.getItem("systemKey"), "");
|
|
1087
|
+
if ((ve == null ? void 0 : ve.length) > 0)
|
|
1088
|
+
u.setRouteToChildPath(_e), f.setActiveMenuPath(se);
|
|
1089
|
+
else {
|
|
1090
|
+
const pe = await kl(i == null ? void 0 : i.index);
|
|
1091
|
+
pe && (se = t.value + "/" + (pe == null ? void 0 : pe[(p = b == null ? void 0 : b[0]) == null ? void 0 : p.label]), await Tl(se, t.value + "/" + (o == null ? void 0 : o[q])), u.setRouteToChildPath(_e), f.setActiveMenuPath(t.value + "/" + (o == null ? void 0 : o[q])));
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
let v = await Ha(t.value, sessionStorage.getItem("systemKey"), o.id);
|
|
1095
|
+
if (v = v == null ? void 0 : v.filter((q) => q.comp !== "methodButton"), v && v.length > 0) {
|
|
1096
|
+
const q = !Array.isArray(ke.value) && ((C = ke.value) == null ? void 0 : C.key) !== "main" ? [] : ke.value;
|
|
1097
|
+
q.push({
|
|
1098
|
+
key: W.value === "" ? (k = o == null ? void 0 : o.id) == null ? void 0 : k.toString() : W.value + "-" + ((H = o == null ? void 0 : o.id) == null ? void 0 : H.toString()),
|
|
1099
|
+
value: o[(S = Object.keys(o)) == null ? void 0 : S.filter((se) => se !== "index" && se !== "id")[0]]
|
|
1100
|
+
}), P.setSelectMenu(W.value === "" ? (h = o == null ? void 0 : o.id) == null ? void 0 : h.toString() : W.value + "-" + ((V = o == null ? void 0 : o.id) == null ? void 0 : V.toString())), P.setSelectTitle(q), P.setSelectIndex((Y = o == null ? void 0 : o.id) == null ? void 0 : Y.toString()), e("pageChange", v);
|
|
1101
|
+
}
|
|
1102
|
+
}, xe = (o) => {
|
|
1103
|
+
var b;
|
|
1104
|
+
(b = m(i.itemData)) == null || b.map((v) => ((v == null ? void 0 : v.key) === "tableContents" && (v.contents = o), v));
|
|
1105
|
+
}, Me = async (o, b, v, F) => {
|
|
1106
|
+
var A;
|
|
1107
|
+
if ((F == null ? void 0 : F.data) === "查看" && (o != null && o.every((p) => (p == null ? void 0 : p.url) && (p == null ? void 0 : p.name)))) {
|
|
1108
|
+
let p = m(o);
|
|
1109
|
+
p = await ((A = m(p)) == null ? void 0 : A.map(async (k) => {
|
|
1110
|
+
var h, V, Y, q;
|
|
1111
|
+
const H = await _l({
|
|
1112
|
+
url: k == null ? void 0 : k.url
|
|
1113
|
+
});
|
|
1114
|
+
let S = URL.createObjectURL(H.data);
|
|
1115
|
+
return {
|
|
1116
|
+
name: (k == null ? void 0 : k.name) + "." + ((q = (h = k == null ? void 0 : k.url) == null ? void 0 : h.split(".")) == null ? void 0 : q[((Y = (V = k == null ? void 0 : k.url) == null ? void 0 : V.split(".")) == null ? void 0 : Y.length) - 1]),
|
|
1117
|
+
blobUrl: S
|
|
1118
|
+
};
|
|
1119
|
+
}));
|
|
1120
|
+
let C = await Promise.all(p);
|
|
1121
|
+
s.value = C, n.value = !0;
|
|
1122
|
+
}
|
|
1123
|
+
e("contentClick", o, b, v, { id: i == null ? void 0 : i.index, type: "table" });
|
|
1124
|
+
}, Le = () => {
|
|
1125
|
+
n.value = !1;
|
|
1126
|
+
}, sa = (o) => {
|
|
1127
|
+
e("rowClick", o);
|
|
1128
|
+
};
|
|
1129
|
+
Fe(
|
|
1130
|
+
() => i.changedContent,
|
|
1131
|
+
() => {
|
|
1132
|
+
var v, F;
|
|
1133
|
+
if (!i.changedContent) return;
|
|
1134
|
+
let o = (v = y.value) == null ? void 0 : v.map((A) => {
|
|
1135
|
+
var p;
|
|
1136
|
+
return A.id === ((p = i.changedContent) == null ? void 0 : p.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 = o), A));
|
|
1142
|
+
y.value = o, e("contentChange", {
|
|
1143
|
+
contents: b,
|
|
1144
|
+
index: i.index
|
|
1145
|
+
}), e("change", {
|
|
1146
|
+
content: o,
|
|
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
|
+
}, Te = (o, b, v) => {
|
|
1156
|
+
var F, A, p;
|
|
1157
|
+
if (_.value = "", N.value = !0, E.value = !0, e("onButtonClick", o, b), o === "删除") {
|
|
1158
|
+
y.value = (F = m(y.value)) == null ? void 0 : F.filter((k) => (k == null ? void 0 : k.id) !== (b == null ? void 0 : b.id));
|
|
1159
|
+
const C = br(ye.value, W.value, b == null ? void 0 : b.id);
|
|
1160
|
+
xe(C), e("change", {
|
|
1161
|
+
content: y.value,
|
|
1162
|
+
singleContent: b,
|
|
1163
|
+
index: i == null ? void 0 : i.index,
|
|
1164
|
+
type: "delete",
|
|
1165
|
+
buttonName: o,
|
|
1166
|
+
column: r.value
|
|
1167
|
+
});
|
|
1168
|
+
} else if (o === "新增")
|
|
1169
|
+
j.value = "新增", Ce(""), K.value = !0;
|
|
1170
|
+
else if (o === "编辑")
|
|
1171
|
+
j.value = "编辑", Ce(b), K.value = !0;
|
|
1172
|
+
else if (o === "查看")
|
|
1173
|
+
j.value = "查看", Ce(b), N.value = !1, E.value = !1, K.value = !0;
|
|
1174
|
+
else if (o === "查看三维模型") {
|
|
1175
|
+
const C = {};
|
|
1176
|
+
for (let H in b)
|
|
1177
|
+
H !== "id" && (C[H] = b[H]);
|
|
1178
|
+
let k = (A = Object.values(C)) == null ? void 0 : A[1];
|
|
1179
|
+
d.setTableShowThree(k);
|
|
1180
|
+
} else ((p = v == null ? void 0 : v.extra) == null ? void 0 : p.type) === "modelExample" && (j.value = o, U.value = !0);
|
|
1181
|
+
}, Ce = (o) => {
|
|
1182
|
+
var A, p, C, k, H, S;
|
|
1183
|
+
const b = [];
|
|
1184
|
+
let v = [];
|
|
1185
|
+
for (let h in o)
|
|
1186
|
+
Array.isArray(o == null ? void 0 : o[h]) && v.push(h);
|
|
1187
|
+
(p = Ie((A = m(r.value)) == null ? void 0 : A.filter((h) => (h == null ? void 0 : h.label) !== "操作"))) == null || p.forEach((h, V) => {
|
|
1188
|
+
v.find((Y) => Y === (h == null ? void 0 : h.prop)) || b.push({
|
|
1189
|
+
label: (h == null ? void 0 : h.label) ?? "",
|
|
1190
|
+
name: (h == null ? void 0 : h.prop) ?? "t" + V,
|
|
1191
|
+
type: !(h != null && h.formType) || (h == null ? void 0 : h.formType) === "" ? "Input" : h == null ? void 0 : h.formType,
|
|
1192
|
+
value: (o == null ? void 0 : o[h == null ? void 0 : h.prop]) ?? (h == null ? void 0 : h.value) ?? "",
|
|
1193
|
+
id: (h == null ? void 0 : h.id) ?? V,
|
|
1194
|
+
contents: (h == null ? void 0 : h.options) ?? [],
|
|
1195
|
+
width: 1,
|
|
1196
|
+
isFormColHidden: h == null ? void 0 : h.isFormColHidden
|
|
1197
|
+
});
|
|
1198
|
+
}), o === "" || !o || (_.value = o == null ? void 0 : o.id);
|
|
1199
|
+
let F = Ie((C = m(r.value)) == null ? void 0 : C.filter((h) => (h == null ? void 0 : h.label) !== "操作"));
|
|
1200
|
+
$.value && ((k = $.value) == null ? void 0 : k.length) > 0 && ($.value = (H = m($).value) == null ? void 0 : H.map((h) => {
|
|
1201
|
+
var Y;
|
|
1202
|
+
let V = (Y = F == null ? void 0 : F.find((q) => (q == null ? void 0 : q.label) === (h == null ? void 0 : h.label))) == null ? void 0 : Y.prop;
|
|
1203
|
+
return V && (h.value = o[V]), h;
|
|
1204
|
+
})), J.value = $.value && ((S = $.value) == null ? void 0 : S.length) > 0 ? Al($.value) : b;
|
|
1205
|
+
};
|
|
1206
|
+
ra(() => {
|
|
1207
|
+
w.value = window.innerWidth - 240 * 2;
|
|
1208
|
+
});
|
|
1209
|
+
const al = () => {
|
|
1210
|
+
var A;
|
|
1211
|
+
let o = Ie((A = m(r.value)) == null ? void 0 : A.filter((p) => (p == null ? void 0 : p.label) !== "操作")), b, v = m(y.value);
|
|
1212
|
+
_.value === "" ? (R.value++, v.push(Object.assign(M.value, { id: R.value })), b = Object.assign(M.value, { id: R.value })) : v = v == null ? void 0 : v.map((p) => {
|
|
1213
|
+
var C;
|
|
1214
|
+
if ((p == null ? void 0 : p.id) === _.value) {
|
|
1215
|
+
let k = {};
|
|
1216
|
+
for (let H in p) {
|
|
1217
|
+
let S = (C = o == null ? void 0 : o.find((h) => (h == null ? void 0 : h.prop) === H)) == null ? void 0 : C.label;
|
|
1218
|
+
S ? k[H] = M.value[S] : k[H] = p[H];
|
|
1219
|
+
}
|
|
1220
|
+
p = Object.assign(k, M.value), b = p;
|
|
1221
|
+
}
|
|
1222
|
+
return p;
|
|
1223
|
+
}), y.value = v;
|
|
1224
|
+
const F = mr(ye.value, W.value, v);
|
|
1225
|
+
xe(F), K.value = !1, e("change", {
|
|
1226
|
+
content: F,
|
|
1227
|
+
singleContent: b,
|
|
1228
|
+
index: i == null ? void 0 : i.index,
|
|
1229
|
+
buttonName: j.value,
|
|
1230
|
+
column: r.value
|
|
1231
|
+
});
|
|
1232
|
+
}, ll = (o) => {
|
|
1233
|
+
M.value = o, e("onFormChange", o);
|
|
1234
|
+
};
|
|
1235
|
+
return Fe(
|
|
1236
|
+
() => [i.itemData, le.value, ae.value, W.value, c == null ? void 0 : c.value],
|
|
1237
|
+
() => {
|
|
1238
|
+
var H, S, h, V, Y, q, se, _e, ve, pe, re, we, oa, ta, ua, fa, ca, da, ya, pa, ha, ga, ba, va, ma, Aa;
|
|
1239
|
+
const o = (H = m(i.itemData)) == null ? void 0 : H.filter((T) => (T == null ? void 0 : T.key) === "header");
|
|
1240
|
+
(S = m(i.itemData)) == null || S.filter((T) => (T == null ? void 0 : T.key) === "tableIndexColumn")[0];
|
|
1241
|
+
const b = (h = m(i.itemData)) == null ? void 0 : h.find((T) => (T == null ? void 0 : T.key) === "page"), v = (V = m(i.itemData)) == null ? void 0 : V.find((T) => (T == null ? void 0 : T.key) === "rowButton"), F = (Y = m(i.itemData)) == null ? void 0 : Y.find((T) => (T == null ? void 0 : T.key) === "extraButton"), A = (q = m(i.itemData)) == null ? void 0 : q.filter((T) => (T == null ? void 0 : T.key) === "tableContents"), p = (se = m(i.itemData)) == null ? void 0 : se.filter((T) => (T == null ? void 0 : T.key) === "tableIndex");
|
|
1242
|
+
$.value = (pe = (ve = (_e = m(i.itemData)) == null ? void 0 : _e.filter((T) => (T == null ? void 0 : T.key) === "tableToForm")) == null ? void 0 : ve[0]) == null ? void 0 : pe.contents, L.value = (b == null ? void 0 : b.contents) ?? !1;
|
|
1243
|
+
let C = [];
|
|
1244
|
+
le.value === "" ? C = o == null ? void 0 : o[0] : C = (o == null ? void 0 : o.find((T) => (T == null ? void 0 : T.selectLabel) === "(" + le.value + ")")) ?? (o == null ? void 0 : o.find((T) => !(T != null && T.selectLabel)));
|
|
1245
|
+
let k = [];
|
|
1246
|
+
if (le.value === "" ? k = p == null ? void 0 : p[0] : k = (p == null ? void 0 : p.find((T) => (T == null ? void 0 : T.selectLabel) === "(" + le.value + ")")) ?? (p == null ? void 0 : p.find((T) => !(T != null && T.selectLabel))), ((re = C == null ? void 0 : C.contents) == null ? void 0 : re.length) > 0) {
|
|
1247
|
+
let T = [];
|
|
1248
|
+
if (C != null && C.contents.some((D) => Array.isArray(D) && (D == null ? void 0 : D.find((g) => g.children))))
|
|
1249
|
+
W.value === "" ? T = (oa = (we = Ka(m(C == null ? void 0 : C.contents))) == null ? void 0 : we[0]) == null ? void 0 : oa.filter((D) => !Array.isArray(D)) : (W.value.split("-"), T = (ta = Ka(m(C == null ? void 0 : C.contents))) == null ? void 0 : ta[0]);
|
|
1250
|
+
else {
|
|
1251
|
+
const D = C != null && C.contents.some((g) => Array.isArray(g)) ? (ua = C == null ? void 0 : C.contents) == null ? void 0 : ua[0] : C == null ? void 0 : C.contents;
|
|
1252
|
+
D == null || D.forEach((g, Z) => {
|
|
1253
|
+
T.push({
|
|
1254
|
+
label: (g == null ? void 0 : g.label) ?? "",
|
|
1255
|
+
prop: (g == null ? void 0 : g.label) === "操作" ? "operate" : (g == null ? void 0 : g.prop) ?? "a" + Z,
|
|
1256
|
+
width: (g == null ? void 0 : g.label) === "操作" ? "200" : g != null && g.width ? parseInt(g.width) : "",
|
|
1257
|
+
fixed: (g == null ? void 0 : g.fixed) ?? void 0,
|
|
1258
|
+
sortable: (g == null ? void 0 : g.sortable) ?? !1,
|
|
1259
|
+
align: (g == null ? void 0 : g.align) ?? "center",
|
|
1260
|
+
showOverflowTooltip: (g == null ? void 0 : g.showOverflowTooltip) ?? !0,
|
|
1261
|
+
isNotDrag: (g == null ? void 0 : g.isNotDrag) ?? !1,
|
|
1262
|
+
isEditCol: (g == null ? void 0 : g.isEditCol) ?? !1,
|
|
1263
|
+
isOperate: (g == null ? void 0 : g.isOperate) ?? !1,
|
|
1264
|
+
id: (g == null ? void 0 : g.id) ?? Z,
|
|
1265
|
+
type: (g == null ? void 0 : g.label) === "操作" ? "operate" : void 0,
|
|
1266
|
+
formType: (g == null ? void 0 : g.formType) ?? "",
|
|
1267
|
+
isTableColHidden: g == null ? void 0 : g.isTableColHidden,
|
|
1268
|
+
isFormColHidden: g == null ? void 0 : g.isFormColHidden,
|
|
1269
|
+
options: (g == null ? void 0 : g.options) ?? [],
|
|
1270
|
+
value: (g == null ? void 0 : g.value) ?? "",
|
|
1271
|
+
formMenuSelect: (g == null ? void 0 : g.formMenuSelect) ?? [],
|
|
1272
|
+
isRoute: (g == null ? void 0 : g.isRoute) ?? !1
|
|
1273
|
+
});
|
|
1274
|
+
});
|
|
1275
|
+
}
|
|
1276
|
+
r.value = T;
|
|
1277
|
+
let oe = (ca = (fa = ml(m(r.value))) == null ? void 0 : fa.filter((D) => (D == null ? void 0 : D.type) !== "operate")) == null ? void 0 : ca.map((D, g) => ({
|
|
1278
|
+
prop: (D == null ? void 0 : D.prop) ?? "a" + g,
|
|
1279
|
+
column: D.label
|
|
1280
|
+
}));
|
|
1281
|
+
O.value = oe;
|
|
1282
|
+
let ie = [];
|
|
1283
|
+
le.value === "" ? ie = A == null ? void 0 : A[0] : ie = (A == null ? void 0 : A.find((D) => (D == null ? void 0 : D.selectLabel) === "(" + le.value + ")")) ?? (A == null ? void 0 : A.find((D) => !(D != null && D.selectLabel)));
|
|
1284
|
+
let Oe = 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((D) => Array.isArray(D))) ? (pa = m(ie == null ? void 0 : ie.contents)) == null ? void 0 : pa[0] : m(ie == null ? void 0 : ie.contents);
|
|
1285
|
+
k != null && k.contents && ((ha = k == null ? void 0 : k.contents) == null ? void 0 : ha.length) !== 0 && (Oe = (ga = m(Oe)) == null ? void 0 : ga.map((D, g) => {
|
|
1286
|
+
if (!Array.isArray(D)) {
|
|
1287
|
+
let Z = {};
|
|
1288
|
+
for (let Ee in D)
|
|
1289
|
+
Ee !== "id" && Ee !== "index" && (Z[Ee] = D[Ee]);
|
|
1290
|
+
D = Object.values(Z);
|
|
1291
|
+
}
|
|
1292
|
+
return D;
|
|
1293
|
+
}));
|
|
1294
|
+
const rl = !!((ba = r.value) != null && ba.find((D) => D.prop === "index"));
|
|
1295
|
+
Oe = Za(m(Oe), k == null ? void 0 : k.contents, rl);
|
|
1296
|
+
const Je = [];
|
|
1297
|
+
Oe == null || Oe.forEach((D, g) => {
|
|
1298
|
+
var Ee;
|
|
1299
|
+
let Z = {};
|
|
1300
|
+
if (Array.isArray(D)) {
|
|
1301
|
+
let z = [];
|
|
1302
|
+
D == null || D.filter((he) => !(he != null && he.id)).forEach((he, me) => {
|
|
1303
|
+
var ka, Ta, _a, wa, Da, Ca;
|
|
1304
|
+
if ((ka = oe == null ? void 0 : oe[me]) != null && ka.prop && !Array.isArray(he)) {
|
|
1305
|
+
let Ye = {};
|
|
1306
|
+
Ye[oe[me].column] = he, c != null && c.value && ((Ta = c == null ? void 0 : c.value) == null ? void 0 : Ta.length) > 0 && ((_a = c == null ? void 0 : c.value) != null && _a.find((ge) => JSON.stringify(ge == null ? void 0 : ge[0]) === JSON.stringify(Ye))) && (z = (wa = c == null ? void 0 : c.value) == null ? void 0 : wa.find((ge) => JSON.stringify(ge == null ? void 0 : ge[0]) === JSON.stringify(Ye))), z && z.length > 0 ? Z[oe[me].prop] = z != null && z.find((ge) => {
|
|
1307
|
+
var Be;
|
|
1308
|
+
return ((Be = Object.keys(ge)) == null ? void 0 : Be[0]) === oe[me].column;
|
|
1309
|
+
}) ? (Da = z == null ? void 0 : z.find((ge) => {
|
|
1310
|
+
var Be;
|
|
1311
|
+
return ((Be = Object.keys(ge)) == null ? void 0 : Be[0]) === oe[me].column;
|
|
1312
|
+
})) == null ? void 0 : Da[oe[me].column] : he : Z[oe[me].prop] = he;
|
|
1313
|
+
} else Array.isArray(he) && ((Ca = oe[me]) != null && Ca.prop ? Z[oe[me].prop] = he : Z.children = Ya(he, oe));
|
|
1314
|
+
});
|
|
1315
|
+
} else
|
|
1316
|
+
Z = D;
|
|
1317
|
+
Array.isArray(D) && D.some((z) => z == null ? void 0 : z.id) ? Je.push(Object.assign(Z, { id: (Ee = D == null ? void 0 : D.find((z) => z.id)) == null ? void 0 : Ee.id })) : Z.id ? Je.push(Z) : Je.push(Object.assign(Z, { id: g }));
|
|
1318
|
+
}), y.value = Je;
|
|
1319
|
+
} else
|
|
1320
|
+
r.value = [], y.value = [];
|
|
1321
|
+
((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 ? x.value = F == null ? void 0 : F.contents : x.value = [], R.value = ((Aa = y == null ? void 0 : y.value) == null ? void 0 : Aa.length) ?? 0, ye.value = y.value;
|
|
1322
|
+
},
|
|
1323
|
+
{ deep: !0, immediate: !0 }
|
|
1324
|
+
), Fe(() => i == null ? void 0 : i.operatingForm, (o) => {
|
|
1325
|
+
o != null && o.form && (Ce(o == null ? void 0 : o.form), j.value = o == null ? void 0 : o.dialogTitle, N.value = !0, K.value = !0);
|
|
1326
|
+
}, { immediate: !0, deep: !0 }), (o, b) => {
|
|
1327
|
+
var F;
|
|
1328
|
+
const v = la("el-button");
|
|
1329
|
+
return te(), Ae("div", Rr, [
|
|
1330
|
+
(te(), Ve(gl, {
|
|
1331
|
+
columns: r.value,
|
|
1332
|
+
key: r.value,
|
|
1333
|
+
tableData: y.value,
|
|
1334
|
+
isShowPagination: L.value,
|
|
1335
|
+
isShowEdit: !1,
|
|
1336
|
+
isShowDelete: !1,
|
|
1337
|
+
onDbClickRow: Re,
|
|
1338
|
+
extraButton: x.value,
|
|
1339
|
+
onContentClick: Me,
|
|
1340
|
+
onRowClick: sa
|
|
1341
|
+
}, tl({
|
|
1342
|
+
headerButton: ee((A) => [
|
|
1343
|
+
ne(ur, {
|
|
1344
|
+
compName: a.compName,
|
|
1345
|
+
buttons: A.buttons,
|
|
1346
|
+
onButtonClick: b[0] || (b[0] = (p) => Te(p, "", {})),
|
|
1347
|
+
columns: r.value,
|
|
1348
|
+
onFilter: $e
|
|
1349
|
+
}, null, 8, ["compName", "buttons", "columns"])
|
|
1350
|
+
]),
|
|
1351
|
+
_: 2
|
|
1352
|
+
}, [
|
|
1353
|
+
((F = G.value) == null ? void 0 : F.length) > 0 ? {
|
|
1354
|
+
name: "actions",
|
|
1355
|
+
fn: ee(({ item: A }) => [
|
|
1356
|
+
(te(!0), Ae(Va, null, qa(de(G.value, A), (p, C) => (te(), Ae("div", { key: C }, [
|
|
1357
|
+
ue("div", {
|
|
1358
|
+
style: Ga({ color: p == null ? void 0 : p.textColor }),
|
|
1359
|
+
class: "extra-button-label",
|
|
1360
|
+
onClick: (k) => Te(p == null ? void 0 : p.label, A, {
|
|
1361
|
+
extra: p
|
|
1362
|
+
})
|
|
1363
|
+
}, Se(p == null ? void 0 : p.label), 13, Br)
|
|
1364
|
+
]))), 128))
|
|
1365
|
+
]),
|
|
1366
|
+
key: "0"
|
|
1367
|
+
} : void 0
|
|
1368
|
+
]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
|
|
1369
|
+
ne(ja, {
|
|
1370
|
+
title: j.value,
|
|
1371
|
+
visible: K.value,
|
|
1372
|
+
width: Pe.value,
|
|
1373
|
+
onBeforeDestroy: I
|
|
1374
|
+
}, {
|
|
1375
|
+
default: ee(() => [
|
|
1376
|
+
ue("div", jr, [
|
|
1377
|
+
ne(Ge, {
|
|
1378
|
+
rowContents: J.value,
|
|
1379
|
+
isEnableWrap: !1,
|
|
1380
|
+
onChange: ll,
|
|
1381
|
+
onClickTrigger: be,
|
|
1382
|
+
isEdit: E.value
|
|
1383
|
+
}, null, 8, ["rowContents", "isEdit"])
|
|
1384
|
+
])
|
|
1385
|
+
]),
|
|
1386
|
+
footer: ee(() => [
|
|
1387
|
+
N.value ? (te(), Ae("div", Kr, [
|
|
1388
|
+
ne(v, {
|
|
1389
|
+
onClick: b[1] || (b[1] = (A) => K.value = !1),
|
|
1390
|
+
id: "themeBorderButton"
|
|
1391
|
+
}, {
|
|
1392
|
+
default: ee(() => b[4] || (b[4] = [
|
|
1393
|
+
Ue(Se("取消"))
|
|
1394
|
+
])),
|
|
1395
|
+
_: 1,
|
|
1396
|
+
__: [4]
|
|
1397
|
+
}),
|
|
1398
|
+
ne(v, {
|
|
1399
|
+
class: "ok-button",
|
|
1400
|
+
onClick: al,
|
|
1401
|
+
id: "themeButton"
|
|
1402
|
+
}, {
|
|
1403
|
+
default: ee(() => b[5] || (b[5] = [
|
|
1404
|
+
Ue(Se("确认"))
|
|
1405
|
+
])),
|
|
1406
|
+
_: 1,
|
|
1407
|
+
__: [5]
|
|
1408
|
+
})
|
|
1409
|
+
])) : ea("", !0)
|
|
1410
|
+
]),
|
|
1411
|
+
_: 1
|
|
1412
|
+
}, 8, ["title", "visible", "width"]),
|
|
1413
|
+
ne(ja, {
|
|
1414
|
+
title: j.value,
|
|
1415
|
+
visible: U.value,
|
|
1416
|
+
width: w.value,
|
|
1417
|
+
onBeforeDestroy: b[3] || (b[3] = (A) => U.value = !1)
|
|
1418
|
+
}, {
|
|
1419
|
+
default: ee(() => [
|
|
1420
|
+
ne(hr)
|
|
1421
|
+
]),
|
|
1422
|
+
footer: ee(() => [
|
|
1423
|
+
ue("div", $r, [
|
|
1424
|
+
ne(v, {
|
|
1425
|
+
onClick: b[2] || (b[2] = (A) => U.value = !1),
|
|
1426
|
+
class: "cancel-button",
|
|
1427
|
+
id: "themeBorderButton"
|
|
1428
|
+
}, {
|
|
1429
|
+
default: ee(() => b[6] || (b[6] = [
|
|
1430
|
+
Ue(Se("取消"))
|
|
1431
|
+
])),
|
|
1432
|
+
_: 1,
|
|
1433
|
+
__: [6]
|
|
1434
|
+
}),
|
|
1435
|
+
ne(v, {
|
|
1436
|
+
class: "ok-button",
|
|
1437
|
+
onClick: Q,
|
|
1438
|
+
id: "themeButton"
|
|
1439
|
+
}, {
|
|
1440
|
+
default: ee(() => b[7] || (b[7] = [
|
|
1441
|
+
Ue(Se("确认"))
|
|
1442
|
+
])),
|
|
1443
|
+
_: 1,
|
|
1444
|
+
__: [7]
|
|
1445
|
+
})
|
|
1446
|
+
])
|
|
1447
|
+
]),
|
|
1448
|
+
_: 1
|
|
1449
|
+
}, 8, ["title", "visible", "width"]),
|
|
1450
|
+
n.value ? (te(), Ve(bl, {
|
|
1451
|
+
key: 0,
|
|
1452
|
+
fileDataList: s.value,
|
|
1453
|
+
onDestroy: Le
|
|
1454
|
+
}, null, 8, ["fileDataList"])) : ea("", !0)
|
|
1455
|
+
]);
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
}, ci = /* @__PURE__ */ na(xr, [["__scopeId", "data-v-0258dc86"]]);
|
|
1459
|
+
export {
|
|
1460
|
+
Zr as A,
|
|
1461
|
+
ci as B,
|
|
1462
|
+
Gr as I,
|
|
1463
|
+
We as S,
|
|
1464
|
+
Nr as a,
|
|
1465
|
+
Xa as b,
|
|
1466
|
+
El as c,
|
|
1467
|
+
li as d,
|
|
1468
|
+
ri as e,
|
|
1469
|
+
Xe as f,
|
|
1470
|
+
ni as g,
|
|
1471
|
+
Ne as h,
|
|
1472
|
+
er as i,
|
|
1473
|
+
Ha as j,
|
|
1474
|
+
ui as k,
|
|
1475
|
+
fi as l,
|
|
1476
|
+
si as m,
|
|
1477
|
+
oi as n,
|
|
1478
|
+
ti as o,
|
|
1479
|
+
fr as p,
|
|
1480
|
+
Wr as q,
|
|
1481
|
+
Qr as r,
|
|
1482
|
+
Il as s,
|
|
1483
|
+
ii as t,
|
|
1484
|
+
gr as u,
|
|
1485
|
+
Xr as v,
|
|
1486
|
+
ai as w,
|
|
1487
|
+
Yr as x,
|
|
1488
|
+
ei as y,
|
|
1489
|
+
zr as z
|
|
1490
|
+
};
|