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
package/dist/index-DtsLJPQK.js
DELETED
|
@@ -1,1493 +0,0 @@
|
|
|
1
|
-
import { ref as R, watch as Fe, nextTick as il, resolveComponent as la, createBlock as Ge, openBlock as ue, withCtx as ee, createElementVNode as fe, renderSlot as Oa, onMounted as ra, createElementBlock as Ae, normalizeClass as nl, toDisplayString as Se, createCommentVNode as ea, Fragment as Ga, renderList as Va, normalizeStyle as qa, createVNode as oe, unref as sl, defineComponent as ol, createSlots as tl, createTextVNode as Je } from "vue";
|
|
2
|
-
import { bK as ul, bF as Ea, h as fl, m as Sa, j as Pa, bL as cl, bA as ia, g as ce, bv as Ve, bt as dl, bu as yl, s as je, u as Wa, p as Ke, by as pl, bx as Fa } from "./menu-jWcM5fkr.js";
|
|
3
|
-
import { d as qe, i as gl, c as Ia, j as hl } from "./index-18OPgy7M.js";
|
|
4
|
-
import { u as bl } from "./threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-BOOCIUn8.js";
|
|
5
|
-
import { U as Na, B as Ba, C as Ra, e as ja, S as Ze, f as vl, t as Ie, c as m, D as Ka, E as ml, G as Al, H as kl, I as Tl } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C0_XMLvd.js";
|
|
6
|
-
import { _ as na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { d as _l } from "./index-DNQe9fKA.js";
|
|
8
|
-
var wl = "__lodash_hash_undefined__";
|
|
9
|
-
function Cl(a) {
|
|
10
|
-
return this.__data__.set(a, wl), this;
|
|
11
|
-
}
|
|
12
|
-
function Dl(a) {
|
|
13
|
-
return this.__data__.has(a);
|
|
14
|
-
}
|
|
15
|
-
function We(a) {
|
|
16
|
-
var l = -1, i = a == null ? 0 : a.length;
|
|
17
|
-
for (this.__data__ = new ul(); ++l < i; )
|
|
18
|
-
this.add(a[l]);
|
|
19
|
-
}
|
|
20
|
-
We.prototype.add = We.prototype.push = Cl;
|
|
21
|
-
We.prototype.has = Dl;
|
|
22
|
-
function Ol(a, l) {
|
|
23
|
-
for (var i = -1, e = a == null ? 0 : a.length; ++i < e; )
|
|
24
|
-
if (l(a[i], i, a))
|
|
25
|
-
return !0;
|
|
26
|
-
return !1;
|
|
27
|
-
}
|
|
28
|
-
function El(a, l) {
|
|
29
|
-
return a.has(l);
|
|
30
|
-
}
|
|
31
|
-
var Sl = 1, Pl = 2;
|
|
32
|
-
function Qa(a, l, i, e, r, n) {
|
|
33
|
-
var s = i & Sl, f = a.length, o = l.length;
|
|
34
|
-
if (f != o && !(s && o > 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 P = a[c], B = l[c];
|
|
42
|
-
if (e)
|
|
43
|
-
var x = s ? e(B, P, c, l, a, n) : e(P, B, c, a, l, n);
|
|
44
|
-
if (x !== void 0) {
|
|
45
|
-
if (x)
|
|
46
|
-
continue;
|
|
47
|
-
y = !1;
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
if (_) {
|
|
51
|
-
if (!Ol(l, function(j, K) {
|
|
52
|
-
if (!El(_, K) && (P === j || r(P, j, i, e, n)))
|
|
53
|
-
return _.push(K);
|
|
54
|
-
})) {
|
|
55
|
-
y = !1;
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
} else if (!(P === B || r(P, B, 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, Bl = 2, Rl = "[object Boolean]", jl = "[object Date]", Kl = "[object Error]", $l = "[object Map]", xl = "[object Number]", Ml = "[object RegExp]", Ll = "[object Set]", Ul = "[object String]", Jl = "[object Symbol]", Hl = "[object ArrayBuffer]", Gl = "[object DataView]", $a = Ea ? Ea.prototype : void 0, ze = $a ? $a.valueOf : void 0;
|
|
78
|
-
function Vl(a, l, i, e, r, n, s) {
|
|
79
|
-
switch (i) {
|
|
80
|
-
case Gl:
|
|
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 Na(a), new Na(l)));
|
|
86
|
-
case Rl:
|
|
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 Ul:
|
|
94
|
-
return a == l + "";
|
|
95
|
-
case $l:
|
|
96
|
-
var f = Fl;
|
|
97
|
-
case Ll:
|
|
98
|
-
var o = e & Nl;
|
|
99
|
-
if (f || (f = Il), a.size != l.size && !o)
|
|
100
|
-
return !1;
|
|
101
|
-
var d = s.get(a);
|
|
102
|
-
if (d)
|
|
103
|
-
return d == l;
|
|
104
|
-
e |= Bl, s.set(a, l);
|
|
105
|
-
var u = Qa(f(a), f(l), e, r, n, s);
|
|
106
|
-
return s.delete(a), u;
|
|
107
|
-
case Jl:
|
|
108
|
-
if (ze)
|
|
109
|
-
return ze.call(a) == ze.call(l);
|
|
110
|
-
}
|
|
111
|
-
return !1;
|
|
112
|
-
}
|
|
113
|
-
var ql = 1, Wl = Object.prototype, Ql = Wl.hasOwnProperty;
|
|
114
|
-
function Xl(a, l, i, e, r, n) {
|
|
115
|
-
var s = i & ql, f = Ba(a), o = f.length, d = Ba(l), u = d.length;
|
|
116
|
-
if (o != u && !s)
|
|
117
|
-
return !1;
|
|
118
|
-
for (var c = o; 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), P = n.get(l);
|
|
124
|
-
if (_ && P)
|
|
125
|
-
return _ == l && P == a;
|
|
126
|
-
var B = !0;
|
|
127
|
-
n.set(a, l), n.set(l, a);
|
|
128
|
-
for (var x = s; ++c < o; ) {
|
|
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
|
-
B = !1;
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
x || (x = y == "constructor");
|
|
138
|
-
}
|
|
139
|
-
if (B && !x) {
|
|
140
|
-
var U = a.constructor, J = l.constructor;
|
|
141
|
-
U != J && "constructor" in a && "constructor" in l && !(typeof U == "function" && U instanceof U && typeof J == "function" && J instanceof J) && (B = !1);
|
|
142
|
-
}
|
|
143
|
-
return n.delete(a), n.delete(l), B;
|
|
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 = Sa(a), f = Sa(l), o = s ? Ma : Ra(a), d = f ? Ma : Ra(l);
|
|
148
|
-
o = o == xa ? He : o, d = d == xa ? He : d;
|
|
149
|
-
var u = o == He, c = d == He, y = o == d;
|
|
150
|
-
if (y && ja(a)) {
|
|
151
|
-
if (!ja(l))
|
|
152
|
-
return !1;
|
|
153
|
-
s = !0, u = !1;
|
|
154
|
-
}
|
|
155
|
-
if (y && !u)
|
|
156
|
-
return n || (n = new Ze()), s || vl(a) ? Qa(a, l, i, e, r, n) : Vl(a, l, o, i, e, r, n);
|
|
157
|
-
if (!(i & Yl)) {
|
|
158
|
-
var _ = u && La.call(a, "__wrapped__"), P = c && La.call(l, "__wrapped__");
|
|
159
|
-
if (_ || P) {
|
|
160
|
-
var B = _ ? a.value() : a, x = P ? l.value() : l;
|
|
161
|
-
return n || (n = new Ze()), r(B, x, 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 || !Pa(a) && !Pa(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 = R(null), e = R(!1), r = R(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 ue(), Ge(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
|
-
fe("div", null, [
|
|
217
|
-
Oa(n.$slots, "reference", {
|
|
218
|
-
ref_key: "referenceRef",
|
|
219
|
-
ref: r
|
|
220
|
-
})
|
|
221
|
-
])
|
|
222
|
-
]),
|
|
223
|
-
default: ee(() => [
|
|
224
|
-
fe("div", null, [
|
|
225
|
-
Oa(n.$slots, "content")
|
|
226
|
-
])
|
|
227
|
-
]),
|
|
228
|
-
_: 3
|
|
229
|
-
}, 8, ["visible", "title", "width"]);
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
}, lr = { class: "extra-button-content" }, rr = { class: "table-operator-wrap" }, ir = {
|
|
233
|
-
key: 0,
|
|
234
|
-
class: "extra-header"
|
|
235
|
-
}, nr = ["onClick"], 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 = R(!1), n = R([]), s = R([{ label: "取消" }, { label: "确认" }]), f = (u) => {
|
|
255
|
-
i("buttonClick", u);
|
|
256
|
-
}, o = (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
|
-
o(e.columns);
|
|
269
|
-
}), Fe(
|
|
270
|
-
() => e.columns,
|
|
271
|
-
() => {
|
|
272
|
-
o(e.columns);
|
|
273
|
-
},
|
|
274
|
-
{ deep: !0, immediate: !0 }
|
|
275
|
-
), (u, c) => {
|
|
276
|
-
var _;
|
|
277
|
-
const y = la("el-tooltip");
|
|
278
|
-
return ue(), Ae("div", lr, [
|
|
279
|
-
fe("div", {
|
|
280
|
-
class: nl(a.compName ? "table-name-wrap" : "")
|
|
281
|
-
}, Se(a.compName), 3),
|
|
282
|
-
fe("div", rr, [
|
|
283
|
-
e != null && e.buttons && ((_ = e == null ? void 0 : e.buttons) == null ? void 0 : _.length) > 0 ? (ue(), Ae("div", ir, [
|
|
284
|
-
(ue(!0), Ae(Ga, null, Va(e == null ? void 0 : e.buttons, (P, B) => (ue(), Ae("div", {
|
|
285
|
-
class: "extra-contents",
|
|
286
|
-
key: B
|
|
287
|
-
}, [
|
|
288
|
-
fe("div", {
|
|
289
|
-
class: "extra-content",
|
|
290
|
-
style: qa({ background: (P == null ? void 0 : P.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" }),
|
|
291
|
-
onClick: (x) => f(P == null ? void 0 : P.label)
|
|
292
|
-
}, Se(P == null ? void 0 : P.label), 13, nr)
|
|
293
|
-
]))), 128))
|
|
294
|
-
])) : ea("", !0),
|
|
295
|
-
fe("div", sr, [
|
|
296
|
-
oe(ar, {
|
|
297
|
-
title: "筛选数据",
|
|
298
|
-
width: 500,
|
|
299
|
-
isVisible: r.value
|
|
300
|
-
}, {
|
|
301
|
-
reference: ee(() => [
|
|
302
|
-
oe(y, {
|
|
303
|
-
content: "筛选",
|
|
304
|
-
placement: "top-start"
|
|
305
|
-
}, {
|
|
306
|
-
default: ee(() => [
|
|
307
|
-
fe("div", {
|
|
308
|
-
class: "button-style",
|
|
309
|
-
onClick: c[0] || (c[0] = (P) => r.value = !r.value)
|
|
310
|
-
}, [
|
|
311
|
-
oe(sl(cl), { color: "var(--ssComponent-black)" })
|
|
312
|
-
])
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
})
|
|
316
|
-
]),
|
|
317
|
-
content: ee(() => [
|
|
318
|
-
fe("div", or, [
|
|
319
|
-
(ue(), Ge(qe, {
|
|
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 = R(), i = R();
|
|
355
|
-
return ra(() => {
|
|
356
|
-
l.value = [
|
|
357
|
-
{
|
|
358
|
-
type: "Upload",
|
|
359
|
-
label: "输入",
|
|
360
|
-
name: "input"
|
|
361
|
-
}
|
|
362
|
-
], i.value = [
|
|
363
|
-
{
|
|
364
|
-
type: "Upload",
|
|
365
|
-
label: "输出",
|
|
366
|
-
name: "output"
|
|
367
|
-
}
|
|
368
|
-
];
|
|
369
|
-
}), (e, r) => (ue(), Ae("div", cr, [
|
|
370
|
-
fe("div", dr, [
|
|
371
|
-
oe(qe, {
|
|
372
|
-
rowContents: l.value,
|
|
373
|
-
isRowFlex: !0
|
|
374
|
-
}, null, 8, ["rowContents"])
|
|
375
|
-
]),
|
|
376
|
-
fe("div", yr, [
|
|
377
|
-
oe(qe, {
|
|
378
|
-
rowContents: i.value,
|
|
379
|
-
isEdit: !1,
|
|
380
|
-
isRowFlex: !0
|
|
381
|
-
}, null, 8, ["rowContents"])
|
|
382
|
-
])
|
|
383
|
-
]));
|
|
384
|
-
}
|
|
385
|
-
}), gr = /* @__PURE__ */ na(pr, [["__scopeId", "data-v-73db0fe7"]]), hr = ia("unit", {
|
|
386
|
-
state: () => ({
|
|
387
|
-
selectIndex: "",
|
|
388
|
-
selectMenu: "",
|
|
389
|
-
selectTitle: []
|
|
390
|
-
}),
|
|
391
|
-
actions: {
|
|
392
|
-
setSelectIndex(a) {
|
|
393
|
-
this.selectIndex = a;
|
|
394
|
-
},
|
|
395
|
-
setSelectMenu(a) {
|
|
396
|
-
this.selectMenu = a;
|
|
397
|
-
},
|
|
398
|
-
setSelectTitle(a) {
|
|
399
|
-
this.selectTitle = a;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}), Ya = (a, l) => {
|
|
403
|
-
let i = a, e = l;
|
|
404
|
-
return Array.isArray(i) && (i = i == null ? void 0 : i.map((r, n) => {
|
|
405
|
-
if (Array.isArray(r)) {
|
|
406
|
-
let s = {};
|
|
407
|
-
return r = r == null ? void 0 : r.forEach((f, o) => {
|
|
408
|
-
var d;
|
|
409
|
-
(d = e == null ? void 0 : e[o]) != null && d.prop ? s[e[o].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, o;
|
|
418
|
-
return !Array.isArray(n) || !((f = r == null ? void 0 : r[s]) != null && f.label) && !i || (n.unshift(((o = r == null ? void 0 : r[s]) == null ? void 0 : o.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, o, 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 = (o = e == null ? void 0 : e.filter((y) => !(y != null && y.id) || typeof (y == null ? void 0 : y.id) == "string")) == null ? void 0 : o[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
|
-
}), Wr = (a) => {
|
|
473
|
-
try {
|
|
474
|
-
return JSON.parse(a), !0;
|
|
475
|
-
} catch {
|
|
476
|
-
return !1;
|
|
477
|
-
}
|
|
478
|
-
}, Ua = (a, l) => er(a, l), Ne = (a) => {
|
|
479
|
-
let l = [];
|
|
480
|
-
function i(r) {
|
|
481
|
-
Array.isArray(r) && (r == null || r.forEach((n) => {
|
|
482
|
-
Array.isArray(n) || (n = [n]), n == null || n.forEach((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, o) => {
|
|
499
|
-
let d = {};
|
|
500
|
-
if (i != null && i.find((u) => u === l[o]))
|
|
501
|
-
return d[l[o]] = f, d;
|
|
502
|
-
})) == null ? void 0 : s.filter((f) => f), n;
|
|
503
|
-
}), e;
|
|
504
|
-
}, Qr = (a, l) => {
|
|
505
|
-
var s, f;
|
|
506
|
-
const i = m(a), e = (s = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : s.contents, r = (f = i == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "tableContents")) == null ? void 0 : f.contents;
|
|
507
|
-
return kr(r, Ne(e).slice(0, Ne(e).length - 1), l);
|
|
508
|
-
}, Xr = (a) => {
|
|
509
|
-
let l = {};
|
|
510
|
-
return a == null || a.forEach((i) => {
|
|
511
|
-
l[i.key] = i.value;
|
|
512
|
-
}), l;
|
|
513
|
-
}, Yr = (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
|
-
}, Zr = (a, l) => {
|
|
523
|
-
if (l != null && l[a])
|
|
524
|
-
return l == null ? void 0 : l[a];
|
|
525
|
-
}, Tr = async (a) => {
|
|
526
|
-
var s, f, o;
|
|
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 = (o = (await ce({
|
|
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 : o.map((d) => d == null ? void 0 : d.id);
|
|
537
|
-
r && (r == null ? void 0 : r.length) > 0 && await dl({
|
|
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 yl({
|
|
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((o) => {
|
|
566
|
-
e = r.includes(o.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
|
-
}, ei = (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
|
-
}, ai = async (a) => {
|
|
584
|
-
var s, f, o, 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 ce({
|
|
587
|
-
id: l
|
|
588
|
-
});
|
|
589
|
-
let e = await ((u = (d = (o = i == null ? void 0 : i.data) == null ? void 0 : o.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 Ve({
|
|
601
|
-
id: a == null ? void 0 : a.id,
|
|
602
|
-
value: {
|
|
603
|
-
pageData: l
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
}, li = 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
|
-
}, ri = (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((o) => (o == null ? void 0 : o.key) !== "tableContents" && (o == null ? void 0 : o.key) !== "tableIndex");
|
|
618
|
-
const e = (s = (n = m(l.compData)) == null ? void 0 : n.find((o) => (o == null ? void 0 : o.key) === "tableIndexColumn")) == null ? void 0 : s.contents;
|
|
619
|
-
return (f = m(l.compData)) == null || f.forEach((o) => {
|
|
620
|
-
if ((o == null ? void 0 : o.key) !== "tableIndexColumn" && (o == null ? void 0 : o.key) !== "header")
|
|
621
|
-
i.push(o);
|
|
622
|
-
else if ((o == null ? void 0 : o.key) === "header") {
|
|
623
|
-
let d = o.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
|
-
}, ii = (a) => {
|
|
631
|
-
var n, s, f, o, 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 = (o = l == null ? void 0 : l.find((u) => (u == null ? void 0 : u.key) === "tableContents")) == null ? void 0 : o.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
|
-
}, Cr = (a) => {
|
|
636
|
-
const l = [];
|
|
637
|
-
function i(e) {
|
|
638
|
-
!e || e.length === 0 || (l.push(e == null ? void 0 : e.map((r) => ({ label: r.label }))), e == null || e.forEach((r) => {
|
|
639
|
-
r != null && r.children && (r == null ? void 0 : r.children.length) > 0 && i(r == null ? void 0 : r.children);
|
|
640
|
-
}));
|
|
641
|
-
}
|
|
642
|
-
return i(a), l;
|
|
643
|
-
}, Dr = (a) => {
|
|
644
|
-
const l = [];
|
|
645
|
-
function i(e, r = []) {
|
|
646
|
-
!e || e.length === 0 || (l.push({
|
|
647
|
-
key: r == null ? void 0 : r.filter((n) => !Array.isArray(n)),
|
|
648
|
-
value: e
|
|
649
|
-
}), e == null || e.forEach((n) => {
|
|
650
|
-
n != null && n.some((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 o;
|
|
675
|
-
if (!r || r.length === 0) return;
|
|
676
|
-
const f = (o = m(n)) == null ? void 0 : o.map((d) => d == null ? void 0 : d.filter((u) => !Array.isArray(u)));
|
|
677
|
-
return f != null && f.find((d) => Ua(d, r == null ? void 0 : r.key)) ? (n == null || n.forEach((d) => {
|
|
678
|
-
!e(r, d.find((c) => Array.isArray(c))) && Ua(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
|
-
}, Ja = (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 o = s;
|
|
690
|
-
return o.unshift((d = r == null ? void 0 : r[f]) == null ? void 0 : d.label), o.some((c) => Array.isArray(c)) && (o[o.length - 1] = i(o.find((c) => Array.isArray(c)), (u = r == null ? void 0 : r[f]) == null ? void 0 : u.children)), o;
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
return i(a, l);
|
|
694
|
-
}, ni = (a) => {
|
|
695
|
-
var i, e, r, n, s, f, o, d, u, c, y, _, P, B, x, j, K, X, U, J, E, M, q, C, $;
|
|
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((S) => (S == null ? void 0 : S.key) === "tableIndex")) == null ? void 0 : e.contents) != null && r.every((S) => !(S != null && S.children)) || !((n = a.compData) != null && n.find((S) => (S == null ? void 0 : S.key) === "tableIndex")))
|
|
699
|
-
return ((o = (f = (s = l.compData) == null ? void 0 : s.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : f.contents) == null ? void 0 : o.length) === 1 && ((y = (c = (u = (d = l.compData) == null ? void 0 : d.find((S) => (S == null ? void 0 : S.key) === "tableContents")) == null ? void 0 : u.contents) == null ? void 0 : c[0]) != null && y.every((S) => Array.isArray(S))) ? (l.compData = (_ = l.compData) == null ? void 0 : _.map((S) => {
|
|
700
|
-
var L;
|
|
701
|
-
return (S == null ? void 0 : S.key) === "tableContents" && (S.contents = (L = S.contents) == null ? void 0 : L[0]), S;
|
|
702
|
-
}), [l]) : [l];
|
|
703
|
-
{
|
|
704
|
-
let S = [];
|
|
705
|
-
const L = l.compData, ae = (P = m(L)) == null ? void 0 : P.find((N) => (N == null ? void 0 : N.key) === "tableIndexColumn"), le = (B = m(L)) == null ? void 0 : B.find((N) => (N == null ? void 0 : N.key) === "extraButton"), de = (x = m(L)) == null ? void 0 : x.find((N) => (N == null ? void 0 : N.key) === "rowButton"), O = Er((K = (j = m(L)) == null ? void 0 : j.find((N) => (N == null ? void 0 : N.key) === "header")) == null ? void 0 : K.contents), W = (X = m(L)) == null ? void 0 : X.find((N) => (N == null ? void 0 : N.key) === "tableIndex"), ke = Or((J = (U = m(L)) == null ? void 0 : U.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : J.contents), re = Ja((M = (E = m(L)) == null ? void 0 : E.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : M.contents, W == null ? void 0 : W.contents), Pe = Dr(Ja((C = (q = m(L)) == null ? void 0 : q.find((N) => (N == null ? void 0 : N.key) === "tableContents")) == null ? void 0 : C.contents, W == null ? void 0 : W.contents));
|
|
706
|
-
if (W)
|
|
707
|
-
return ($ = Cr(W.contents)) == null || $.forEach((N, be) => {
|
|
708
|
-
var Ce;
|
|
709
|
-
let ye = [];
|
|
710
|
-
ye.push({
|
|
711
|
-
key: "tableIndex",
|
|
712
|
-
contents: N
|
|
713
|
-
}), ye.push(ae), ye.push(le), ye.push(de), ye.push({
|
|
714
|
-
key: "tableContents",
|
|
715
|
-
contents: ke[be]
|
|
716
|
-
}), ye.push({
|
|
717
|
-
key: "header",
|
|
718
|
-
contents: O != null && O[be] ? [O == null ? void 0 : O[be]] : [O == null ? void 0 : O[0]]
|
|
719
|
-
}), S.push({
|
|
720
|
-
comp: "Table",
|
|
721
|
-
compData: ye,
|
|
722
|
-
name: "",
|
|
723
|
-
parentTableContents: ((Ce = Sr(Pe[be], re)) == null ? void 0 : Ce.contents) ?? ""
|
|
724
|
-
});
|
|
725
|
-
}), S;
|
|
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
|
-
}, si = (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 = (a) => {
|
|
744
|
-
var i;
|
|
745
|
-
const l = Array.isArray(a) ? a == null ? void 0 : a[0] : {};
|
|
746
|
-
return (i = l == null ? void 0 : l.contents) == null ? void 0 : i.map((e) => ({
|
|
747
|
-
...e[0],
|
|
748
|
-
...e[1]
|
|
749
|
-
}));
|
|
750
|
-
}, Ir = async (a, l) => {
|
|
751
|
-
var d, u, c, y, _, P, B, x, j, K, X, U, J, E, M, q;
|
|
752
|
-
const i = (u = (d = a == null ? void 0 : a.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : u.find((C) => C == null ? void 0 : C.columnPath);
|
|
753
|
-
let e = (y = (c = m(i == null ? void 0 : i.columnPath)) == null ? void 0 : c.split("[")) == null ? void 0 : y[0], r = (j = (x = (B = (P = (_ = m(i == null ? void 0 : i.columnPath)) == null ? void 0 : _.split("[")) == null ? void 0 : P[1]) == null ? void 0 : B.split("]")) == null ? void 0 : x[0]) == null ? void 0 : j.replaceAll("'", ""), n = [];
|
|
754
|
-
const s = await ce({
|
|
755
|
-
key: {
|
|
756
|
-
pageKey: e,
|
|
757
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
758
|
-
type: "structure"
|
|
759
|
-
}
|
|
760
|
-
}), f = await ce({
|
|
761
|
-
key: {
|
|
762
|
-
pageKey: Pr.value,
|
|
763
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
764
|
-
tableId: parseInt(l),
|
|
765
|
-
type: "data"
|
|
766
|
-
}
|
|
767
|
-
}), o = [];
|
|
768
|
-
if ((X = (K = f == null ? void 0 : f.data) == null ? void 0 : K.result) == null || X.forEach((C) => {
|
|
769
|
-
o.push(
|
|
770
|
-
[
|
|
771
|
-
{
|
|
772
|
-
id: C == null ? void 0 : C.id
|
|
773
|
-
},
|
|
774
|
-
C.value.tableData
|
|
775
|
-
]
|
|
776
|
-
);
|
|
777
|
-
}), Array.isArray((U = s == null ? void 0 : s.data) == null ? void 0 : U.result) && ((E = (J = s == null ? void 0 : s.data) == null ? void 0 : J.result) == null ? void 0 : E.length) > 0) {
|
|
778
|
-
const C = await ((q = (M = s == null ? void 0 : s.data) == null ? void 0 : M.result) == null ? void 0 : q.map(async ($) => {
|
|
779
|
-
var S, L, ae, le, de, O, W, ke, re, Pe, N, be, ye, Ce, $e;
|
|
780
|
-
if (((L = (S = $ == null ? void 0 : $.value) == null ? void 0 : S.pageData) == null ? void 0 : L.name) === r) {
|
|
781
|
-
n = m((le = (ae = $ == null ? void 0 : $.value) == null ? void 0 : ae.pageData) == null ? void 0 : le.compData);
|
|
782
|
-
const Be = await ce({
|
|
783
|
-
key: {
|
|
784
|
-
pageKey: e,
|
|
785
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
786
|
-
tableId: $ == null ? void 0 : $.id,
|
|
787
|
-
type: "data"
|
|
788
|
-
}
|
|
789
|
-
}), xe = (O = (de = Be == null ? void 0 : Be.data) == null ? void 0 : de.result) == null ? void 0 : O.map((Q) => {
|
|
790
|
-
var De;
|
|
791
|
-
let Te = [];
|
|
792
|
-
return Te.push({
|
|
793
|
-
id: Q == null ? void 0 : Q.id
|
|
794
|
-
}), Te.push((De = Q == null ? void 0 : Q.value) == null ? void 0 : De.tableData), Te;
|
|
795
|
-
});
|
|
796
|
-
let Me = Qe(o, (Pe = (re = (ke = (W = $ == null ? void 0 : $.value) == null ? void 0 : W.pageData) == null ? void 0 : ke.compData) == null ? void 0 : re.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : Pe.contents), Le = !1;
|
|
797
|
-
Le = ((N = m(Me)) == null ? void 0 : N.map((Q) => Q.slice(1))).every((Q) => Q.every((Te) => Te === void 0)), Le ? n.push({
|
|
798
|
-
key: "tableContents",
|
|
799
|
-
contents: Qe(xe, ($e = (Ce = (ye = (be = $ == null ? void 0 : $.value) == null ? void 0 : be.pageData) == null ? void 0 : ye.compData) == null ? void 0 : Ce.find((Q) => (Q == null ? void 0 : Q.key) === "header")) == null ? void 0 : $e.contents)
|
|
800
|
-
}) : n.push({
|
|
801
|
-
key: "tableContents",
|
|
802
|
-
contents: Me
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
}));
|
|
806
|
-
await Promise.all(C);
|
|
807
|
-
}
|
|
808
|
-
return n;
|
|
809
|
-
}, Ha = async (a, l, i = "", e, r = !1, n) => {
|
|
810
|
-
var P, B, x, j, K, X, U, J;
|
|
811
|
-
let s;
|
|
812
|
-
if (!r)
|
|
813
|
-
s = await ce({
|
|
814
|
-
key: {
|
|
815
|
-
pageKey: a,
|
|
816
|
-
systemKey: l,
|
|
817
|
-
parentTable: i
|
|
818
|
-
}
|
|
819
|
-
});
|
|
820
|
-
else {
|
|
821
|
-
let E = n == null ? void 0 : n.map((q) => {
|
|
822
|
-
if (q)
|
|
823
|
-
return ce({ id: q });
|
|
824
|
-
});
|
|
825
|
-
const M = await Promise.all(E);
|
|
826
|
-
s = {
|
|
827
|
-
data: {
|
|
828
|
-
result: M == null ? void 0 : M.map((q) => {
|
|
829
|
-
var C, $;
|
|
830
|
-
return ($ = (C = q == null ? void 0 : q.data) == null ? void 0 : C.result) == null ? void 0 : $[0];
|
|
831
|
-
})
|
|
832
|
-
}
|
|
833
|
-
};
|
|
834
|
-
}
|
|
835
|
-
const f = await ce({
|
|
836
|
-
key: {
|
|
837
|
-
pageKey: a,
|
|
838
|
-
systemKey: l,
|
|
839
|
-
type: "structureMethod"
|
|
840
|
-
}
|
|
841
|
-
}), o = (B = (P = s == null ? void 0 : s.data) == null ? void 0 : P.result) == null ? void 0 : B.map((E) => E.id);
|
|
842
|
-
if (console.log("currentIds", o, (x = s == null ? void 0 : s.data) == null ? void 0 : x.result), !o) return;
|
|
843
|
-
const d = o == null ? void 0 : o.map((E) => ce({
|
|
844
|
-
key: {
|
|
845
|
-
pageKey: a,
|
|
846
|
-
systemKey: l,
|
|
847
|
-
type: "data",
|
|
848
|
-
tableId: E
|
|
849
|
-
}
|
|
850
|
-
})), u = await Promise.all(d), c = [];
|
|
851
|
-
u == null || u.forEach((E) => {
|
|
852
|
-
var C, $, S, L;
|
|
853
|
-
const M = (C = E.data.result) == null ? void 0 : C.map((ae) => {
|
|
854
|
-
const le = Array.isArray(ae.value.tableData) ? ae.value.tableData : [ae.value.tableData];
|
|
855
|
-
return le.unshift({
|
|
856
|
-
id: ae.id
|
|
857
|
-
}), le;
|
|
858
|
-
}), q = (L = (S = ($ = E.data.result) == null ? void 0 : $[0]) == null ? void 0 : S.key) == null ? void 0 : L.tableId;
|
|
859
|
-
c.push({
|
|
860
|
-
key: q,
|
|
861
|
-
contents: M
|
|
862
|
-
});
|
|
863
|
-
});
|
|
864
|
-
let y = [];
|
|
865
|
-
const _ = await ((j = s.data.result) == null ? void 0 : j.map(async (E) => {
|
|
866
|
-
var $, S, L, ae, le, de;
|
|
867
|
-
const M = E.value.pageData, q = E == null ? void 0 : E.id;
|
|
868
|
-
let C = ($ = m(M.compData)) == null ? void 0 : $.filter((O) => (O == null ? void 0 : O.key) !== "tableContents");
|
|
869
|
-
if (C && (C != null && C.find((O) => (O == null ? void 0 : O.key) === "header")) && ((L = (S = C == null ? void 0 : C.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : S.contents) != null && L.every((O) => !(O != null && O.columnPath))) ? C.push({
|
|
870
|
-
key: "tableContents",
|
|
871
|
-
// contents: getTableContents(currentTableContents?.find((v: any) => v?.key === t.id)?.contents, newCompData?.find((s: any) => s?.key === "header")?.contents)
|
|
872
|
-
contents: e === "/系统管理/用户管理" ? Fr(c) : Qe((ae = c == null ? void 0 : c.find((O) => (O == null ? void 0 : O.key) === E.id)) == null ? void 0 : ae.contents, (le = C == null ? void 0 : C.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : le.contents)
|
|
873
|
-
}) : C && (C != null && C.find((O) => (O == null ? void 0 : O.key) === "header")) && (C = await Ir(m(C), q)), M.compData = C, M.id = E.id, ((de = E.key) == null ? void 0 : de.type) !== "method")
|
|
874
|
-
y.push(M);
|
|
875
|
-
else {
|
|
876
|
-
let O;
|
|
877
|
-
O = {
|
|
878
|
-
name: "",
|
|
879
|
-
compData: [M],
|
|
880
|
-
comp: "calculator"
|
|
881
|
-
}, y.push(O);
|
|
882
|
-
}
|
|
883
|
-
}));
|
|
884
|
-
return await Promise.all(_), ((X = (K = f.data.result) == null ? void 0 : K.map((E) => E.value.pageData)) == null ? void 0 : X.filter((E) => Object.values(E).length > 0).length) > 0 && y.push({
|
|
885
|
-
comp: "methodButton",
|
|
886
|
-
name: "",
|
|
887
|
-
compData: (J = (U = f.data.result) == null ? void 0 : U.map((E) => E.value.pageData)) == null ? void 0 : J.filter((E) => Object.values(E).length > 0)
|
|
888
|
-
}), y = y.sort((E, M) => E.id - M.id), y;
|
|
889
|
-
}, oi = async (a) => {
|
|
890
|
-
await pl({
|
|
891
|
-
id: a
|
|
892
|
-
});
|
|
893
|
-
}, ti = async (a, l, i, e, r, n, s) => {
|
|
894
|
-
var o, d, u, c, y, _, P, B, x, j, K, X, U;
|
|
895
|
-
const f = ((d = (o = s == null ? void 0 : s.content) == null ? void 0 : o[0]) == null ? void 0 : d.id) ?? "";
|
|
896
|
-
if (f !== "" && ((u = s == null ? void 0 : s.content) == null ? void 0 : u.length) > 1) {
|
|
897
|
-
const J = await ce({
|
|
898
|
-
id: f
|
|
899
|
-
});
|
|
900
|
-
let E = ((P = (_ = (y = (c = J == null ? void 0 : J.data) == null ? void 0 : c.result) == null ? void 0 : y[0]) == null ? void 0 : _.key) == null ? void 0 : P.tableId) ?? "", M = ((K = (j = (x = (B = J == null ? void 0 : J.data) == null ? void 0 : B.result) == null ? void 0 : x[0]) == null ? void 0 : j.key) == null ? void 0 : K.pageKey) ?? "";
|
|
901
|
-
await Fa({
|
|
902
|
-
key: {
|
|
903
|
-
type: a,
|
|
904
|
-
pageKey: M,
|
|
905
|
-
tableId: E,
|
|
906
|
-
systemKey: e
|
|
907
|
-
},
|
|
908
|
-
value: {
|
|
909
|
-
tableData: Xe(r, (X = Ne(n)) == null ? void 0 : X.filter((q) => q !== "操作"))
|
|
910
|
-
}
|
|
911
|
-
});
|
|
912
|
-
} else
|
|
913
|
-
await Fa({
|
|
914
|
-
key: {
|
|
915
|
-
type: a,
|
|
916
|
-
pageKey: l,
|
|
917
|
-
tableId: i,
|
|
918
|
-
systemKey: e
|
|
919
|
-
},
|
|
920
|
-
value: {
|
|
921
|
-
tableData: Xe(r, (U = Ne(n)) == null ? void 0 : U.filter((J) => J !== "操作"))
|
|
922
|
-
}
|
|
923
|
-
});
|
|
924
|
-
}, ui = async (a, l, i, e, r, n, s) => {
|
|
925
|
-
var u, c, y, _, P, B, x, j, K, X;
|
|
926
|
-
const f = await ce({
|
|
927
|
-
id: e
|
|
928
|
-
});
|
|
929
|
-
let o = ((_ = (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 = (x = (B = (P = f == null ? void 0 : f.data) == null ? void 0 : P.result) == null ? void 0 : B[0]) == null ? void 0 : x.key) == null ? void 0 : j.pageKey) ?? "";
|
|
930
|
-
o && o !== "" ? await Ve({
|
|
931
|
-
key: {
|
|
932
|
-
type: a,
|
|
933
|
-
pageKey: d,
|
|
934
|
-
tableId: o,
|
|
935
|
-
systemKey: r
|
|
936
|
-
},
|
|
937
|
-
value: {
|
|
938
|
-
tableData: Xe(n, (K = Ne(s)) == null ? void 0 : K.filter((U) => U !== "操作"))
|
|
939
|
-
},
|
|
940
|
-
id: e
|
|
941
|
-
}) : await Ve({
|
|
942
|
-
key: {
|
|
943
|
-
type: a,
|
|
944
|
-
pageKey: l,
|
|
945
|
-
tableId: i,
|
|
946
|
-
systemKey: r
|
|
947
|
-
},
|
|
948
|
-
value: {
|
|
949
|
-
tableData: Xe(n, (X = Ne(s)) == null ? void 0 : X.filter((U) => U !== "操作"))
|
|
950
|
-
},
|
|
951
|
-
id: e
|
|
952
|
-
});
|
|
953
|
-
}, fi = async (a, l) => {
|
|
954
|
-
await Ve({
|
|
955
|
-
value: {
|
|
956
|
-
pageData: l
|
|
957
|
-
},
|
|
958
|
-
id: a
|
|
959
|
-
});
|
|
960
|
-
}, Nr = async (a, l) => await ce({
|
|
961
|
-
key: a,
|
|
962
|
-
valueLikes: l
|
|
963
|
-
}), ci = async () => {
|
|
964
|
-
var a, l, i, e, r, n, s, f, o;
|
|
965
|
-
try {
|
|
966
|
-
const d = await ce({
|
|
967
|
-
key: {
|
|
968
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
969
|
-
layer: "superAdmin"
|
|
970
|
-
}
|
|
971
|
-
});
|
|
972
|
-
((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(((o = (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 : o.name) ?? ""));
|
|
973
|
-
} catch (d) {
|
|
974
|
-
return Promise.reject(d);
|
|
975
|
-
}
|
|
976
|
-
}, Br = ia("modelTableComp", {
|
|
977
|
-
state: () => ({
|
|
978
|
-
tableIndex: 0,
|
|
979
|
-
tableShowThree: ""
|
|
980
|
-
}),
|
|
981
|
-
actions: {
|
|
982
|
-
setTableIndex(a) {
|
|
983
|
-
this.tableIndex = a;
|
|
984
|
-
},
|
|
985
|
-
setTableShowThree(a) {
|
|
986
|
-
this.tableShowThree = a;
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
}), Rr = { class: "table-content" }, jr = ["onClick"], Kr = { class: "form-content" }, $r = {
|
|
990
|
-
key: 0,
|
|
991
|
-
class: "dialog-footer"
|
|
992
|
-
}, xr = { class: "dialog-footer" }, Mr = {
|
|
993
|
-
__name: "index",
|
|
994
|
-
props: {
|
|
995
|
-
compName: {
|
|
996
|
-
type: String,
|
|
997
|
-
default: "",
|
|
998
|
-
required: !1
|
|
999
|
-
},
|
|
1000
|
-
operatingForm: {
|
|
1001
|
-
type: Object,
|
|
1002
|
-
default: () => {
|
|
1003
|
-
}
|
|
1004
|
-
},
|
|
1005
|
-
itemData: {
|
|
1006
|
-
type: Array,
|
|
1007
|
-
default: () => []
|
|
1008
|
-
},
|
|
1009
|
-
childItemData: {
|
|
1010
|
-
type: Array,
|
|
1011
|
-
default: () => []
|
|
1012
|
-
},
|
|
1013
|
-
index: Number,
|
|
1014
|
-
changedContent: {
|
|
1015
|
-
type: Object,
|
|
1016
|
-
default: () => {
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
},
|
|
1020
|
-
emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick"],
|
|
1021
|
-
setup(a, { emit: l }) {
|
|
1022
|
-
const i = a, e = l, r = R([]), n = R(!1), s = R(), f = Wa(), { activeMenuPath: o } = je(f), d = Br(Ke), u = bl(Ke), { extraContents: c } = je(u), y = R([]);
|
|
1023
|
-
R(!1);
|
|
1024
|
-
const _ = R("");
|
|
1025
|
-
R();
|
|
1026
|
-
const P = R(!0), B = R(0), x = R(!1), j = R(""), K = R(!1), X = R({
|
|
1027
|
-
label: "查看三维模型"
|
|
1028
|
-
}), U = R(!1), J = R(), E = R([]), M = R([]), q = R(!1), C = R([]), $ = R([]), S = R(), L = R(), ae = fr(Ke), le = R(), de = hr(Ke), { selectIndex: O, selectMenu: W, selectTitle: ke } = je(de), { selectString: re } = je(ae), Pe = R(720), N = () => {
|
|
1029
|
-
K.value = !1;
|
|
1030
|
-
}, be = (t) => {
|
|
1031
|
-
e("clickTrigger", t);
|
|
1032
|
-
}, ye = (t, b) => {
|
|
1033
|
-
if (Object.values(b).length !== 0)
|
|
1034
|
-
return Object.values(b).find((v) => {
|
|
1035
|
-
var I, A, p;
|
|
1036
|
-
return ((I = v == null ? void 0 : v.toString()) == null ? void 0 : I.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"));
|
|
1037
|
-
}) ? [...t, X.value] : t;
|
|
1038
|
-
}, Ce = (t) => {
|
|
1039
|
-
var A;
|
|
1040
|
-
re.value === "" ? t == null || t[0] : (t == null ? void 0 : t.find((p) => (p == null ? void 0 : p.selectLabel) === "(" + re.value + ")")) ?? (t == null || t.find((p) => !(p != null && p.selectLabel)));
|
|
1041
|
-
let b = t;
|
|
1042
|
-
(A = r.value) != null && A.find((p) => p.prop === "index");
|
|
1043
|
-
let v = S.value;
|
|
1044
|
-
const I = [];
|
|
1045
|
-
return b == null || b.forEach((p, D) => {
|
|
1046
|
-
var H;
|
|
1047
|
-
let k = {};
|
|
1048
|
-
if (Array.isArray(p)) {
|
|
1049
|
-
let F = [];
|
|
1050
|
-
p == null || p.filter((g) => !(g != null && g.id)).forEach((g, G) => {
|
|
1051
|
-
var Y, V, ie, _e, ve;
|
|
1052
|
-
if ((Y = v == null ? void 0 : v[G]) != null && Y.prop && !Array.isArray(g)) {
|
|
1053
|
-
let pe = {};
|
|
1054
|
-
pe[v[G].column] = g, c != null && c.value && ((V = c == null ? void 0 : c.value) == null ? void 0 : V.length) > 0 && ((ie = c == null ? void 0 : c.value) != null && ie.find((ne) => JSON.stringify(ne == null ? void 0 : ne[0]) === JSON.stringify(pe))) && (F = (_e = c == null ? void 0 : c.value) == null ? void 0 : _e.find((ne) => JSON.stringify(ne == null ? void 0 : ne[0]) === JSON.stringify(pe))), F && F.length > 0 ? k[v[G].prop] = F != null && F.find((ne) => {
|
|
1055
|
-
var we;
|
|
1056
|
-
return ((we = Object.keys(ne)) == null ? void 0 : we[0]) === v[G].column;
|
|
1057
|
-
}) ? (ve = F == null ? void 0 : F.find((ne) => {
|
|
1058
|
-
var we;
|
|
1059
|
-
return ((we = Object.keys(ne)) == null ? void 0 : we[0]) === v[G].column;
|
|
1060
|
-
})) == null ? void 0 : ve[v[G].column] : g : k[v[G].prop] = g;
|
|
1061
|
-
}
|
|
1062
|
-
});
|
|
1063
|
-
} else
|
|
1064
|
-
k = p;
|
|
1065
|
-
Array.isArray(p) && p.some((F) => F == null ? void 0 : F.id) ? I.push(Object.assign(k, { id: (H = p == null ? void 0 : p.find((F) => F.id)) == null ? void 0 : H.id })) : k.id ? I.push(k) : I.push(Object.assign(k, { id: D }));
|
|
1066
|
-
}), I;
|
|
1067
|
-
}, $e = async (t) => {
|
|
1068
|
-
var A, p, D, k, H;
|
|
1069
|
-
let b = {};
|
|
1070
|
-
for (let F in t)
|
|
1071
|
-
t[F] !== "" && (b["tableData." + F] = t[F]);
|
|
1072
|
-
const v = await Nr({
|
|
1073
|
-
type: "data",
|
|
1074
|
-
tableId: i == null ? void 0 : i.index,
|
|
1075
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
1076
|
-
pageKey: o.value
|
|
1077
|
-
}, b), I = (D = (p = (A = m(v)) == null ? void 0 : A.data) == null ? void 0 : p.result) == null ? void 0 : D.map((F) => {
|
|
1078
|
-
var G;
|
|
1079
|
-
let g = [];
|
|
1080
|
-
return g.push({
|
|
1081
|
-
id: F.id
|
|
1082
|
-
}), g.push((G = F == null ? void 0 : F.value) == null ? void 0 : G.tableData), g;
|
|
1083
|
-
});
|
|
1084
|
-
y.value = Ce(Qe(I, (H = (k = m(r.value)) == null ? void 0 : k.map((F) => F.label)) == null ? void 0 : H.filter((F) => F !== "操作")));
|
|
1085
|
-
}, Be = async (t) => {
|
|
1086
|
-
var I, A, p, D, k, H, F, g, G, Y;
|
|
1087
|
-
const b = (I = m(r.value)) == null ? void 0 : I.filter((V) => V == null ? void 0 : V.isRoute);
|
|
1088
|
-
if ((b == null ? void 0 : b.length) > 0) {
|
|
1089
|
-
let V = (A = b == null ? void 0 : b[0]) == null ? void 0 : A.prop, ie = o.value + "/" + (t == null ? void 0 : t[V]), _e = o.value, ve = await Ha(ie, sessionStorage.getItem("systemKey"), "", ie);
|
|
1090
|
-
if ((ve == null ? void 0 : ve.length) > 0)
|
|
1091
|
-
u.setRouteToChildPath(_e), f.setActiveMenuPath(ie);
|
|
1092
|
-
else {
|
|
1093
|
-
const pe = await kl(i == null ? void 0 : i.index);
|
|
1094
|
-
pe && (ie = o.value + "/" + (pe == null ? void 0 : pe[(p = b == null ? void 0 : b[0]) == null ? void 0 : p.label]), await Tl(ie, o.value + "/" + (t == null ? void 0 : t[V])), u.setRouteToChildPath(_e), f.setActiveMenuPath(o.value + "/" + (t == null ? void 0 : t[V])));
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
let v = await Ha(o.value, sessionStorage.getItem("systemKey"), t.id);
|
|
1098
|
-
if (v = v == null ? void 0 : v.filter((V) => V.comp !== "methodButton"), v && v.length > 0) {
|
|
1099
|
-
const V = !Array.isArray(ke.value) && ((D = ke.value) == null ? void 0 : D.key) !== "main" ? [] : ke.value;
|
|
1100
|
-
V.push({
|
|
1101
|
-
key: W.value === "" ? (k = t == null ? void 0 : t.id) == null ? void 0 : k.toString() : W.value + "-" + ((H = t == null ? void 0 : t.id) == null ? void 0 : H.toString()),
|
|
1102
|
-
value: t[(F = Object.keys(t)) == null ? void 0 : F.filter((ie) => ie !== "index" && ie !== "id")[0]]
|
|
1103
|
-
}), de.setSelectMenu(W.value === "" ? (g = t == null ? void 0 : t.id) == null ? void 0 : g.toString() : W.value + "-" + ((G = t == null ? void 0 : t.id) == null ? void 0 : G.toString())), de.setSelectTitle(V), de.setSelectIndex((Y = t == null ? void 0 : t.id) == null ? void 0 : Y.toString()), e("pageChange", v);
|
|
1104
|
-
}
|
|
1105
|
-
}, xe = (t) => {
|
|
1106
|
-
var b;
|
|
1107
|
-
(b = m(i.itemData)) == null || b.map((v) => ((v == null ? void 0 : v.key) === "tableContents" && (v.contents = t), v));
|
|
1108
|
-
}, Me = async (t, b, v, I) => {
|
|
1109
|
-
var A;
|
|
1110
|
-
if ((I == null ? void 0 : I.data) === "查看" && (t != null && t.every((p) => (p == null ? void 0 : p.url) && (p == null ? void 0 : p.name)))) {
|
|
1111
|
-
let p = m(t);
|
|
1112
|
-
p = await ((A = m(p)) == null ? void 0 : A.map(async (k) => {
|
|
1113
|
-
var g, G, Y, V;
|
|
1114
|
-
const H = await _l({
|
|
1115
|
-
url: k == null ? void 0 : k.url
|
|
1116
|
-
});
|
|
1117
|
-
let F = URL.createObjectURL(H.data);
|
|
1118
|
-
return {
|
|
1119
|
-
name: (k == null ? void 0 : k.name) + "." + ((V = (g = k == null ? void 0 : k.url) == null ? void 0 : g.split(".")) == null ? void 0 : V[((Y = (G = k == null ? void 0 : k.url) == null ? void 0 : G.split(".")) == null ? void 0 : Y.length) - 1]),
|
|
1120
|
-
blobUrl: F
|
|
1121
|
-
};
|
|
1122
|
-
}));
|
|
1123
|
-
let D = await Promise.all(p);
|
|
1124
|
-
s.value = D, n.value = !0;
|
|
1125
|
-
}
|
|
1126
|
-
e("contentClick", t, b, v, { id: i == null ? void 0 : i.index, type: "table" });
|
|
1127
|
-
}, Le = () => {
|
|
1128
|
-
n.value = !1;
|
|
1129
|
-
}, sa = (t) => {
|
|
1130
|
-
e("rowClick", t);
|
|
1131
|
-
};
|
|
1132
|
-
Fe(
|
|
1133
|
-
() => i.changedContent,
|
|
1134
|
-
() => {
|
|
1135
|
-
var v, I;
|
|
1136
|
-
if (!i.changedContent) return;
|
|
1137
|
-
let t = (v = y.value) == null ? void 0 : v.map((A) => {
|
|
1138
|
-
var p;
|
|
1139
|
-
return A.id === ((p = i.changedContent) == null ? void 0 : p.id) && (A = {
|
|
1140
|
-
...i.changedContent,
|
|
1141
|
-
id: i.changedContent.newId ? i.changedContent.newId : i.changedContent.id
|
|
1142
|
-
}, delete A.newId), A;
|
|
1143
|
-
});
|
|
1144
|
-
const b = (I = i.itemData) == null ? void 0 : I.map((A) => ((A == null ? void 0 : A.key) === "tableContents" && (A.contents = t), A));
|
|
1145
|
-
y.value = t, e("contentChange", {
|
|
1146
|
-
contents: b,
|
|
1147
|
-
index: i.index
|
|
1148
|
-
}), e("change", {
|
|
1149
|
-
content: t,
|
|
1150
|
-
index: i == null ? void 0 : i.index,
|
|
1151
|
-
buttonName: "",
|
|
1152
|
-
id: i == null ? void 0 : i.index
|
|
1153
|
-
});
|
|
1154
|
-
},
|
|
1155
|
-
{ deep: !0, immediate: !0 }
|
|
1156
|
-
);
|
|
1157
|
-
const Q = () => {
|
|
1158
|
-
}, Te = (t, b, v) => {
|
|
1159
|
-
var I, A, p;
|
|
1160
|
-
if (_.value = "", q.value = !0, P.value = !0, e("onButtonClick", t, b), t === "删除") {
|
|
1161
|
-
y.value = (I = m(y.value)) == null ? void 0 : I.filter((k) => (k == null ? void 0 : k.id) !== (b == null ? void 0 : b.id));
|
|
1162
|
-
const D = br(le.value, W.value, b == null ? void 0 : b.id);
|
|
1163
|
-
xe(D), e("change", {
|
|
1164
|
-
content: y.value,
|
|
1165
|
-
singleContent: b,
|
|
1166
|
-
index: i == null ? void 0 : i.index,
|
|
1167
|
-
type: "delete",
|
|
1168
|
-
buttonName: t,
|
|
1169
|
-
column: r.value
|
|
1170
|
-
});
|
|
1171
|
-
} else if (t === "新增")
|
|
1172
|
-
j.value = "新增", De(""), K.value = !0;
|
|
1173
|
-
else if (t === "编辑")
|
|
1174
|
-
j.value = "编辑", De(b), K.value = !0;
|
|
1175
|
-
else if (t === "查看")
|
|
1176
|
-
j.value = "查看", De(b), q.value = !1, P.value = !1, K.value = !0;
|
|
1177
|
-
else if (t === "查看三维模型") {
|
|
1178
|
-
const D = {};
|
|
1179
|
-
for (let H in b)
|
|
1180
|
-
H !== "id" && (D[H] = b[H]);
|
|
1181
|
-
let k = (A = Object.values(D)) == null ? void 0 : A[1];
|
|
1182
|
-
d.setTableShowThree(k);
|
|
1183
|
-
} else ((p = v == null ? void 0 : v.extra) == null ? void 0 : p.type) === "modelExample" && (j.value = t, U.value = !0);
|
|
1184
|
-
}, De = (t) => {
|
|
1185
|
-
var A, p, D, k, H, F;
|
|
1186
|
-
const b = [];
|
|
1187
|
-
let v = [];
|
|
1188
|
-
for (let g in t)
|
|
1189
|
-
Array.isArray(t == null ? void 0 : t[g]) && v.push(g);
|
|
1190
|
-
(p = Ie((A = m(r.value)) == null ? void 0 : A.filter((g) => (g == null ? void 0 : g.label) !== "操作"))) == null || p.forEach((g, G) => {
|
|
1191
|
-
v.find((Y) => Y === (g == null ? void 0 : g.prop)) || b.push({
|
|
1192
|
-
label: (g == null ? void 0 : g.label) ?? "",
|
|
1193
|
-
name: (g == null ? void 0 : g.prop) ?? "t" + G,
|
|
1194
|
-
type: !(g != null && g.formType) || (g == null ? void 0 : g.formType) === "" ? "Input" : g == null ? void 0 : g.formType,
|
|
1195
|
-
value: (t == null ? void 0 : t[g == null ? void 0 : g.prop]) ?? (g == null ? void 0 : g.value) ?? "",
|
|
1196
|
-
id: (g == null ? void 0 : g.id) ?? G,
|
|
1197
|
-
contents: (g == null ? void 0 : g.options) ?? [],
|
|
1198
|
-
width: 1,
|
|
1199
|
-
isFormColHidden: g == null ? void 0 : g.isFormColHidden
|
|
1200
|
-
});
|
|
1201
|
-
}), t === "" || !t || (_.value = t == null ? void 0 : t.id);
|
|
1202
|
-
let I = Ie((D = m(r.value)) == null ? void 0 : D.filter((g) => (g == null ? void 0 : g.label) !== "操作"));
|
|
1203
|
-
E.value && ((k = E.value) == null ? void 0 : k.length) > 0 && (E.value = (H = m(E).value) == null ? void 0 : H.map((g) => {
|
|
1204
|
-
var Y;
|
|
1205
|
-
let G = (Y = I == null ? void 0 : I.find((V) => (V == null ? void 0 : V.label) === (g == null ? void 0 : g.label))) == null ? void 0 : Y.prop;
|
|
1206
|
-
return G && (g.value = t[G]), g;
|
|
1207
|
-
})), $.value = E.value && ((F = E.value) == null ? void 0 : F.length) > 0 ? Al(E.value) : b;
|
|
1208
|
-
};
|
|
1209
|
-
ra(() => {
|
|
1210
|
-
J.value = window.innerWidth - 240 * 2;
|
|
1211
|
-
});
|
|
1212
|
-
const al = () => {
|
|
1213
|
-
var A;
|
|
1214
|
-
let t = Ie((A = m(r.value)) == null ? void 0 : A.filter((p) => (p == null ? void 0 : p.label) !== "操作")), b, v = m(y.value);
|
|
1215
|
-
_.value === "" ? (B.value++, v.push(Object.assign(L.value, { id: B.value })), b = Object.assign(L.value, { id: B.value })) : v = v == null ? void 0 : v.map((p) => {
|
|
1216
|
-
var D;
|
|
1217
|
-
if ((p == null ? void 0 : p.id) === _.value) {
|
|
1218
|
-
let k = {};
|
|
1219
|
-
for (let H in p) {
|
|
1220
|
-
let F = (D = t == null ? void 0 : t.find((g) => (g == null ? void 0 : g.prop) === H)) == null ? void 0 : D.label;
|
|
1221
|
-
F ? k[H] = L.value[F] : k[H] = p[H];
|
|
1222
|
-
}
|
|
1223
|
-
p = Object.assign(k, L.value), b = p;
|
|
1224
|
-
}
|
|
1225
|
-
return p;
|
|
1226
|
-
}), y.value = v;
|
|
1227
|
-
const I = mr(le.value, W.value, v);
|
|
1228
|
-
xe(I), K.value = !1, e("change", {
|
|
1229
|
-
content: I,
|
|
1230
|
-
singleContent: b,
|
|
1231
|
-
index: i == null ? void 0 : i.index,
|
|
1232
|
-
buttonName: j.value,
|
|
1233
|
-
column: r.value
|
|
1234
|
-
});
|
|
1235
|
-
}, ll = (t) => {
|
|
1236
|
-
L.value = t, e("onFormChange", t);
|
|
1237
|
-
};
|
|
1238
|
-
return Fe(
|
|
1239
|
-
() => [i.itemData, re.value, O.value, W.value, c == null ? void 0 : c.value],
|
|
1240
|
-
() => {
|
|
1241
|
-
var H, F, g, G, Y, V, ie, _e, ve, pe, ne, we, oa, ta, ua, fa, ca, da, ya, pa, ga, ha, ba, va, ma, Aa;
|
|
1242
|
-
const t = (H = m(i.itemData)) == null ? void 0 : H.filter((T) => (T == null ? void 0 : T.key) === "header");
|
|
1243
|
-
(F = m(i.itemData)) == null || F.filter((T) => (T == null ? void 0 : T.key) === "tableIndexColumn")[0];
|
|
1244
|
-
const b = (g = m(i.itemData)) == null ? void 0 : g.find((T) => (T == null ? void 0 : T.key) === "page"), v = (G = m(i.itemData)) == null ? void 0 : G.find((T) => (T == null ? void 0 : T.key) === "rowButton"), I = (Y = m(i.itemData)) == null ? void 0 : Y.find((T) => (T == null ? void 0 : T.key) === "extraButton"), A = (V = m(i.itemData)) == null ? void 0 : V.filter((T) => (T == null ? void 0 : T.key) === "tableContents"), p = (ie = m(i.itemData)) == null ? void 0 : ie.filter((T) => (T == null ? void 0 : T.key) === "tableIndex");
|
|
1245
|
-
E.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, x.value = (b == null ? void 0 : b.contents) ?? !1;
|
|
1246
|
-
let D = [];
|
|
1247
|
-
re.value === "" ? D = t == null ? void 0 : t[0] : D = (t == null ? void 0 : t.find((T) => (T == null ? void 0 : T.selectLabel) === "(" + re.value + ")")) ?? (t == null ? void 0 : t.find((T) => !(T != null && T.selectLabel)));
|
|
1248
|
-
let k = [];
|
|
1249
|
-
if (re.value === "" ? k = p == null ? void 0 : p[0] : k = (p == null ? void 0 : p.find((T) => (T == null ? void 0 : T.selectLabel) === "(" + re.value + ")")) ?? (p == null ? void 0 : p.find((T) => !(T != null && T.selectLabel))), ((ne = D == null ? void 0 : D.contents) == null ? void 0 : ne.length) > 0) {
|
|
1250
|
-
let T = [];
|
|
1251
|
-
if (D != null && D.contents.some((w) => Array.isArray(w) && (w == null ? void 0 : w.find((h) => h.children))))
|
|
1252
|
-
W.value === "" ? T = (oa = (we = Ka(m(D == null ? void 0 : D.contents))) == null ? void 0 : we[0]) == null ? void 0 : oa.filter((w) => !Array.isArray(w)) : (W.value.split("-"), T = (ta = Ka(m(D == null ? void 0 : D.contents))) == null ? void 0 : ta[0]);
|
|
1253
|
-
else {
|
|
1254
|
-
const w = D != null && D.contents.some((h) => Array.isArray(h)) ? (ua = D == null ? void 0 : D.contents) == null ? void 0 : ua[0] : D == null ? void 0 : D.contents;
|
|
1255
|
-
w == null || w.forEach((h, Z) => {
|
|
1256
|
-
T.push({
|
|
1257
|
-
label: (h == null ? void 0 : h.label) ?? "",
|
|
1258
|
-
prop: (h == null ? void 0 : h.label) === "操作" ? "operate" : (h == null ? void 0 : h.prop) ?? "a" + Z,
|
|
1259
|
-
width: (h == null ? void 0 : h.label) === "操作" ? "200" : h != null && h.width ? parseInt(h.width) : "",
|
|
1260
|
-
fixed: (h == null ? void 0 : h.fixed) ?? void 0,
|
|
1261
|
-
sortable: (h == null ? void 0 : h.sortable) ?? !1,
|
|
1262
|
-
align: (h == null ? void 0 : h.align) ?? "center",
|
|
1263
|
-
showOverflowTooltip: (h == null ? void 0 : h.showOverflowTooltip) ?? !0,
|
|
1264
|
-
isNotDrag: (h == null ? void 0 : h.isNotDrag) ?? !1,
|
|
1265
|
-
isEditCol: (h == null ? void 0 : h.isEditCol) ?? !1,
|
|
1266
|
-
isOperate: (h == null ? void 0 : h.isOperate) ?? !1,
|
|
1267
|
-
id: (h == null ? void 0 : h.id) ?? Z,
|
|
1268
|
-
type: (h == null ? void 0 : h.label) === "操作" ? "operate" : void 0,
|
|
1269
|
-
formType: (h == null ? void 0 : h.formType) ?? "",
|
|
1270
|
-
isTableColHidden: h == null ? void 0 : h.isTableColHidden,
|
|
1271
|
-
isFormColHidden: h == null ? void 0 : h.isFormColHidden,
|
|
1272
|
-
options: (h == null ? void 0 : h.options) ?? [],
|
|
1273
|
-
value: (h == null ? void 0 : h.value) ?? "",
|
|
1274
|
-
formMenuSelect: (h == null ? void 0 : h.formMenuSelect) ?? [],
|
|
1275
|
-
isRoute: (h == null ? void 0 : h.isRoute) ?? !1
|
|
1276
|
-
});
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
r.value = T;
|
|
1280
|
-
let te = (ca = (fa = ml(m(r.value))) == null ? void 0 : fa.filter((w) => (w == null ? void 0 : w.type) !== "operate")) == null ? void 0 : ca.map((w, h) => ({
|
|
1281
|
-
prop: (w == null ? void 0 : w.prop) ?? "a" + h,
|
|
1282
|
-
column: w.label
|
|
1283
|
-
}));
|
|
1284
|
-
S.value = te;
|
|
1285
|
-
let se = [];
|
|
1286
|
-
re.value === "" ? se = A == null ? void 0 : A[0] : se = (A == null ? void 0 : A.find((w) => (w == null ? void 0 : w.selectLabel) === "(" + re.value + ")")) ?? (A == null ? void 0 : A.find((w) => !(w != null && w.selectLabel)));
|
|
1287
|
-
let Oe = Array.isArray((da = se == null ? void 0 : se.contents) == null ? void 0 : da[0]) && ((ya = se == null ? void 0 : se.contents) != null && ya[0].every((w) => Array.isArray(w))) ? (pa = m(se == null ? void 0 : se.contents)) == null ? void 0 : pa[0] : m(se == null ? void 0 : se.contents);
|
|
1288
|
-
k != null && k.contents && ((ga = k == null ? void 0 : k.contents) == null ? void 0 : ga.length) !== 0 && (Oe = (ha = m(Oe)) == null ? void 0 : ha.map((w, h) => {
|
|
1289
|
-
if (!Array.isArray(w)) {
|
|
1290
|
-
let Z = {};
|
|
1291
|
-
for (let Ee in w)
|
|
1292
|
-
Ee !== "id" && Ee !== "index" && (Z[Ee] = w[Ee]);
|
|
1293
|
-
w = Object.values(Z);
|
|
1294
|
-
}
|
|
1295
|
-
return w;
|
|
1296
|
-
}));
|
|
1297
|
-
const rl = !!((ba = r.value) != null && ba.find((w) => w.prop === "index"));
|
|
1298
|
-
Oe = Za(m(Oe), k == null ? void 0 : k.contents, rl);
|
|
1299
|
-
const Ue = [];
|
|
1300
|
-
Oe == null || Oe.forEach((w, h) => {
|
|
1301
|
-
var Ee;
|
|
1302
|
-
let Z = {};
|
|
1303
|
-
if (Array.isArray(w)) {
|
|
1304
|
-
let z = [];
|
|
1305
|
-
w == null || w.filter((ge) => !(ge != null && ge.id)).forEach((ge, me) => {
|
|
1306
|
-
var ka, Ta, _a, wa, Ca, Da;
|
|
1307
|
-
if ((ka = te == null ? void 0 : te[me]) != null && ka.prop && !Array.isArray(ge)) {
|
|
1308
|
-
let Ye = {};
|
|
1309
|
-
Ye[te[me].column] = ge, 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((he) => JSON.stringify(he == null ? void 0 : he[0]) === JSON.stringify(Ye))) && (z = (wa = c == null ? void 0 : c.value) == null ? void 0 : wa.find((he) => JSON.stringify(he == null ? void 0 : he[0]) === JSON.stringify(Ye))), z && z.length > 0 ? Z[te[me].prop] = z != null && z.find((he) => {
|
|
1310
|
-
var Re;
|
|
1311
|
-
return ((Re = Object.keys(he)) == null ? void 0 : Re[0]) === te[me].column;
|
|
1312
|
-
}) ? (Ca = z == null ? void 0 : z.find((he) => {
|
|
1313
|
-
var Re;
|
|
1314
|
-
return ((Re = Object.keys(he)) == null ? void 0 : Re[0]) === te[me].column;
|
|
1315
|
-
})) == null ? void 0 : Ca[te[me].column] : ge : Z[te[me].prop] = ge;
|
|
1316
|
-
} else Array.isArray(ge) && ((Da = te[me]) != null && Da.prop ? Z[te[me].prop] = ge : Z.children = Ya(ge, te));
|
|
1317
|
-
});
|
|
1318
|
-
} else
|
|
1319
|
-
Z = w;
|
|
1320
|
-
Array.isArray(w) && w.some((z) => z == null ? void 0 : z.id) ? Ue.push(Object.assign(Z, { id: (Ee = w == null ? void 0 : w.find((z) => z.id)) == null ? void 0 : Ee.id })) : Z.id ? Ue.push(Z) : Ue.push(Object.assign(Z, { id: h }));
|
|
1321
|
-
}), y.value = Ue;
|
|
1322
|
-
} else
|
|
1323
|
-
r.value = [], y.value = [];
|
|
1324
|
-
((va = v == null ? void 0 : v.contents) == null ? void 0 : va.length) > 0 ? M.value = v == null ? void 0 : v.contents : M.value = [], ((ma = I == null ? void 0 : I.contents) == null ? void 0 : ma.length) > 0 ? C.value = I == null ? void 0 : I.contents : C.value = [], B.value = ((Aa = y == null ? void 0 : y.value) == null ? void 0 : Aa.length) ?? 0, le.value = y.value;
|
|
1325
|
-
},
|
|
1326
|
-
{ deep: !0, immediate: !0 }
|
|
1327
|
-
), Fe(() => i == null ? void 0 : i.operatingForm, (t) => {
|
|
1328
|
-
t != null && t.form && (De(t == null ? void 0 : t.form), j.value = t == null ? void 0 : t.dialogTitle, q.value = !0, K.value = !0);
|
|
1329
|
-
}, { immediate: !0, deep: !0 }), (t, b) => {
|
|
1330
|
-
var I;
|
|
1331
|
-
const v = la("el-button");
|
|
1332
|
-
return ue(), Ae("div", Rr, [
|
|
1333
|
-
(ue(), Ge(gl, {
|
|
1334
|
-
columns: r.value,
|
|
1335
|
-
key: r.value,
|
|
1336
|
-
tableData: y.value,
|
|
1337
|
-
isShowPagination: x.value,
|
|
1338
|
-
isShowEdit: !1,
|
|
1339
|
-
isShowDelete: !1,
|
|
1340
|
-
onDbClickRow: Be,
|
|
1341
|
-
extraButton: C.value,
|
|
1342
|
-
onContentClick: Me,
|
|
1343
|
-
onRowClick: sa
|
|
1344
|
-
}, tl({
|
|
1345
|
-
headerButton: ee((A) => [
|
|
1346
|
-
oe(ur, {
|
|
1347
|
-
compName: a.compName,
|
|
1348
|
-
buttons: A.buttons,
|
|
1349
|
-
onButtonClick: b[0] || (b[0] = (p) => Te(p, "", {})),
|
|
1350
|
-
columns: r.value,
|
|
1351
|
-
onFilter: $e
|
|
1352
|
-
}, null, 8, ["compName", "buttons", "columns"])
|
|
1353
|
-
]),
|
|
1354
|
-
_: 2
|
|
1355
|
-
}, [
|
|
1356
|
-
((I = M.value) == null ? void 0 : I.length) > 0 ? {
|
|
1357
|
-
name: "actions",
|
|
1358
|
-
fn: ee(({ item: A }) => [
|
|
1359
|
-
(ue(!0), Ae(Ga, null, Va(ye(M.value, A), (p, D) => (ue(), Ae("div", { key: D }, [
|
|
1360
|
-
fe("div", {
|
|
1361
|
-
style: qa({ color: p == null ? void 0 : p.textColor }),
|
|
1362
|
-
class: "extra-button-label",
|
|
1363
|
-
onClick: (k) => Te(p == null ? void 0 : p.label, A, {
|
|
1364
|
-
extra: p
|
|
1365
|
-
})
|
|
1366
|
-
}, Se(p == null ? void 0 : p.label), 13, jr)
|
|
1367
|
-
]))), 128))
|
|
1368
|
-
]),
|
|
1369
|
-
key: "0"
|
|
1370
|
-
} : void 0
|
|
1371
|
-
]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
|
|
1372
|
-
oe(Ia, {
|
|
1373
|
-
title: j.value,
|
|
1374
|
-
visible: K.value,
|
|
1375
|
-
width: Pe.value,
|
|
1376
|
-
onBeforeDestroy: N
|
|
1377
|
-
}, {
|
|
1378
|
-
default: ee(() => [
|
|
1379
|
-
fe("div", Kr, [
|
|
1380
|
-
oe(qe, {
|
|
1381
|
-
rowContents: $.value,
|
|
1382
|
-
isEnableWrap: !1,
|
|
1383
|
-
onChange: ll,
|
|
1384
|
-
onClickTrigger: be,
|
|
1385
|
-
isEdit: P.value
|
|
1386
|
-
}, null, 8, ["rowContents", "isEdit"])
|
|
1387
|
-
])
|
|
1388
|
-
]),
|
|
1389
|
-
footer: ee(() => [
|
|
1390
|
-
q.value ? (ue(), Ae("div", $r, [
|
|
1391
|
-
oe(v, {
|
|
1392
|
-
onClick: b[1] || (b[1] = (A) => K.value = !1),
|
|
1393
|
-
id: "themeBorderButton"
|
|
1394
|
-
}, {
|
|
1395
|
-
default: ee(() => b[4] || (b[4] = [
|
|
1396
|
-
Je(Se("取消"))
|
|
1397
|
-
])),
|
|
1398
|
-
_: 1,
|
|
1399
|
-
__: [4]
|
|
1400
|
-
}),
|
|
1401
|
-
oe(v, {
|
|
1402
|
-
class: "ok-button",
|
|
1403
|
-
onClick: al,
|
|
1404
|
-
id: "themeButton"
|
|
1405
|
-
}, {
|
|
1406
|
-
default: ee(() => b[5] || (b[5] = [
|
|
1407
|
-
Je(Se("确认"))
|
|
1408
|
-
])),
|
|
1409
|
-
_: 1,
|
|
1410
|
-
__: [5]
|
|
1411
|
-
})
|
|
1412
|
-
])) : ea("", !0)
|
|
1413
|
-
]),
|
|
1414
|
-
_: 1
|
|
1415
|
-
}, 8, ["title", "visible", "width"]),
|
|
1416
|
-
oe(Ia, {
|
|
1417
|
-
title: j.value,
|
|
1418
|
-
visible: U.value,
|
|
1419
|
-
width: J.value,
|
|
1420
|
-
onBeforeDestroy: b[3] || (b[3] = (A) => U.value = !1)
|
|
1421
|
-
}, {
|
|
1422
|
-
default: ee(() => [
|
|
1423
|
-
oe(gr)
|
|
1424
|
-
]),
|
|
1425
|
-
footer: ee(() => [
|
|
1426
|
-
fe("div", xr, [
|
|
1427
|
-
oe(v, {
|
|
1428
|
-
onClick: b[2] || (b[2] = (A) => U.value = !1),
|
|
1429
|
-
class: "cancel-button",
|
|
1430
|
-
id: "themeBorderButton"
|
|
1431
|
-
}, {
|
|
1432
|
-
default: ee(() => b[6] || (b[6] = [
|
|
1433
|
-
Je(Se("取消"))
|
|
1434
|
-
])),
|
|
1435
|
-
_: 1,
|
|
1436
|
-
__: [6]
|
|
1437
|
-
}),
|
|
1438
|
-
oe(v, {
|
|
1439
|
-
class: "ok-button",
|
|
1440
|
-
onClick: Q,
|
|
1441
|
-
id: "themeButton"
|
|
1442
|
-
}, {
|
|
1443
|
-
default: ee(() => b[7] || (b[7] = [
|
|
1444
|
-
Je(Se("确认"))
|
|
1445
|
-
])),
|
|
1446
|
-
_: 1,
|
|
1447
|
-
__: [7]
|
|
1448
|
-
})
|
|
1449
|
-
])
|
|
1450
|
-
]),
|
|
1451
|
-
_: 1
|
|
1452
|
-
}, 8, ["title", "visible", "width"]),
|
|
1453
|
-
n.value ? (ue(), Ge(hl, {
|
|
1454
|
-
key: 0,
|
|
1455
|
-
fileDataList: s.value,
|
|
1456
|
-
onDestroy: Le
|
|
1457
|
-
}, null, 8, ["fileDataList"])) : ea("", !0)
|
|
1458
|
-
]);
|
|
1459
|
-
};
|
|
1460
|
-
}
|
|
1461
|
-
}, di = /* @__PURE__ */ na(Mr, [["__scopeId", "data-v-0258dc86"]]);
|
|
1462
|
-
export {
|
|
1463
|
-
zr as A,
|
|
1464
|
-
di as B,
|
|
1465
|
-
Wr as I,
|
|
1466
|
-
We as S,
|
|
1467
|
-
Br as a,
|
|
1468
|
-
Xa as b,
|
|
1469
|
-
El as c,
|
|
1470
|
-
ri as d,
|
|
1471
|
-
ii as e,
|
|
1472
|
-
Xe as f,
|
|
1473
|
-
si as g,
|
|
1474
|
-
Ne as h,
|
|
1475
|
-
er as i,
|
|
1476
|
-
Ha as j,
|
|
1477
|
-
fi as k,
|
|
1478
|
-
ci as l,
|
|
1479
|
-
oi as m,
|
|
1480
|
-
ti as n,
|
|
1481
|
-
ui as o,
|
|
1482
|
-
fr as p,
|
|
1483
|
-
Qr as q,
|
|
1484
|
-
Xr as r,
|
|
1485
|
-
Il as s,
|
|
1486
|
-
ni as t,
|
|
1487
|
-
hr as u,
|
|
1488
|
-
Yr as v,
|
|
1489
|
-
li as w,
|
|
1490
|
-
Zr as x,
|
|
1491
|
-
ai as y,
|
|
1492
|
-
ei as z
|
|
1493
|
-
};
|