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