ss-component-new 1.2.145 → 1.2.147
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/{MTLLoader-CcqyIPck.js → MTLLoader-B4EnZSAj.js} +1 -1
- package/dist/{MTLLoader-BMs3TQ_V.cjs → MTLLoader-BG8p_W3e.cjs} +1 -1
- package/dist/{OrbitControls-BxX04K_m.js → OrbitControls-BijHc4lO.js} +1 -1
- package/dist/{OrbitControls-rxRQUEoZ.cjs → OrbitControls-C8GF8tGR.cjs} +1 -1
- package/dist/{URDFLoader-DJUpzIPe.cjs → URDFLoader-BGmgPaK5.cjs} +1 -1
- package/dist/{URDFLoader-0vt4_QWm.js → URDFLoader-ZGM2MNQJ.js} +2 -2
- package/dist/{animationData-fdjHcO9d.cjs → animationData-C6hjGh65.cjs} +1 -1
- package/dist/{animationData-BDkimQz_.js → animationData-D8MI_7R3.js} +1 -1
- package/dist/{array-BvpLXZuB.cjs → array-B4qRL_Q0.cjs} +1 -1
- package/dist/{array-Ccj_T9py.js → array-CNUDqDZx.js} +1 -1
- package/dist/{iconfont-ZLRZWFjs.cjs → iconfont-CoWLctOv.cjs} +1 -1
- package/dist/{iconfont-DzAmpu5J.js → iconfont-rXqgCBzV.js} +2 -2
- package/dist/{index-B6T5AcDA.js → index-6ukql-qn.js} +4 -4
- package/dist/{index-Ce0maAQz.cjs → index-B7Qt0ZP_.cjs} +1 -1
- package/dist/{index-CbN4yjCo.js → index-BCTTmKU9.js} +4 -4
- package/dist/{index-BVcAWvWE.cjs → index-BJgL8NWn.cjs} +1 -1
- package/dist/{index-BBOk_SZ5.cjs → index-BMe9Scd_.cjs} +1 -1
- package/dist/{index-CfbvFDkJ.js → index-BVSkPbw4.js} +1 -1
- package/dist/{index-DXZh0FP2.js → index-BXLNAegF.js} +4 -4
- package/dist/{index-TfY_qYkR.cjs → index-B_KV_l-G.cjs} +1 -1
- package/dist/{index-D2GvU735.js → index-BcBlkaYU.js} +1 -1
- package/dist/{index-B3Hi2buN.cjs → index-BeUbaOAU.cjs} +1 -1
- package/dist/{index-Bg6zMGVv.cjs → index-BlGqtdjw.cjs} +1 -1
- package/dist/{index-Cm_JxnI7.js → index-C04PZ2aF.js} +1 -1
- package/dist/{index-CsQrCnrV.cjs → index-C0vOW-Y3.cjs} +1 -1
- package/dist/{index-BbBPVpkS.cjs → index-C6nuRUPZ.cjs} +1 -1
- package/dist/{index-DDGVHyYt.cjs → index-C7VVjnhf.cjs} +1 -1
- package/dist/{index-ByI5okZc.cjs → index-CDVe8sa3.cjs} +1 -1
- package/dist/{index-bJTvRLXh.cjs → index-CEM7-Xfi.cjs} +1 -1
- package/dist/{index-DIr_A5oD.cjs → index-CJ_E7nRe.cjs} +1 -1
- package/dist/{index-B7DmKnwX.js → index-CLhwAsMi.js} +1 -1
- package/dist/{index-D_lRhWx3.js → index-C_uJTLqi.js} +1 -1
- package/dist/{index-udnkGL1v.js → index-Co3F7Djj.js} +1 -1
- package/dist/{index-D3QAuVWT.cjs → index-CqwqgmB6.cjs} +1 -1
- package/dist/index-Ctbwuotw.cjs +1 -0
- package/dist/{index-DTI5pdw6.cjs → index-CvEAc7BP.cjs} +1 -1
- package/dist/{index-DPnEygKq.js → index-D1BZl3jp.js} +1 -1
- package/dist/{index-DBMMWbKJ.js → index-D4EHkX7z.js} +16 -16
- package/dist/{index-DqXsLM4k.js → index-D8hIp9EA.js} +3 -3
- package/dist/{index-R52tcnsn.js → index-DGSOA8z_.js} +8 -8
- package/dist/index-DJdYtSyw.js +2959 -0
- package/dist/{index-Be5dSwwJ.js → index-DVF2zy2g.js} +1 -1
- package/dist/{index-D5XPpEdA.js → index-DWcF3B2Y.js} +3 -3
- package/dist/{index-WGEX6eGt.cjs → index-DXlMgR8d.cjs} +1 -1
- package/dist/{index-Bw79MH3c.cjs → index-DaIaneln.cjs} +1 -1
- package/dist/{index-BDU-NDsk.cjs → index-DbCowISm.cjs} +1 -1
- package/dist/{index-l09kUdRF.js → index-DgguuyIa.js} +2 -2
- package/dist/{index-Z6GCMsJx.js → index-Do8_fQPl.js} +7 -7
- package/dist/{index-CWvBjZeY.js → index-DtGKf0x9.js} +2 -2
- package/dist/{index-Cgz-aGGE.js → index-FwSZzJmQ.js} +1 -1
- package/dist/{index-nM9LHf_F.js → index-PMp0vhv7.js} +1 -1
- package/dist/{index-D6pin4Sd.cjs → index-Z5V4rp8y.cjs} +1 -1
- package/dist/{index-B3VgHabm.cjs → index-mA6Gm53c.cjs} +1 -1
- package/dist/{index-CpJyJe2E.cjs → index-paRU3N9x.cjs} +1 -1
- package/dist/{index-D9IKQ7H4.js → index-tYbXIozP.js} +1 -1
- package/dist/{index-SskAfjL1.cjs → index-ts5OuScE.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DnD739sZ.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BST65sGd.js} +11349 -11347
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CWcdS4a8.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D2AWmUdM.cjs} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DX_LiCut.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DDjl39v_.cjs} +255 -255
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B2lxmjQh.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UnZjoSoV.js} +23642 -23618
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-B980_Lne.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BcOPAaZR.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-94rOMyd8.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-C9DTanim.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-D27voZ2g.cjs → index.vue_vue_type_style_index_1_lang-B1rr4vAq.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-LfJdXFIv.js → index.vue_vue_type_style_index_1_lang-CWv-b2Aq.js} +3 -3
- package/dist/{main-CKXLlbOj.cjs → main-DM3PsHtA.cjs} +1 -1
- package/dist/{main-C_Dj9Puz.js → main-DyptH9Np.js} +3 -3
- 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 +10 -10
- package/dist/{threeModel-DWvU4VH1.js → threeModel-Dx6kda_V.js} +4 -4
- package/dist/{threeModel-B_syHv9f.cjs → threeModel-JmL1Wjyp.cjs} +1 -1
- package/dist/{threePreview-ByC-pExt.cjs → threePreview-DNlkIsXz.cjs} +1 -1
- package/dist/{threePreview-DI66u68P.js → threePreview-DmUJXu2u.js} +3 -3
- package/dist/{threeSceneView-BQoHQKvX.cjs → threeSceneView-6CgzWdp0.cjs} +1 -1
- package/dist/{threeSceneView-CKJNJXa0.js → threeSceneView-BFFLvp24.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-DPGT7p2k.cjs → threeSceneViewForCPMPIP-CaXMh1bz.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-C4qlhuLx.js → threeSceneViewForCPMPIP-DCukikzS.js} +7 -7
- package/dist/{threeTrackPathView-DF451fvD.cjs → threeTrackPathView-Bav4ph94.cjs} +1 -1
- package/dist/{threeTrackPathView-BFtOvUYe.js → threeTrackPathView-BchZSKbp.js} +3 -3
- package/dist/{threeViewerHost-BbHLgA4C.cjs → threeViewerHost-CB9QBauP.cjs} +1 -1
- package/dist/{threeViewerHost-C1WNEIlS.js → threeViewerHost-D58mXufI.js} +2 -2
- package/dist/{urdfTree-BF72OBR_.js → urdfTree-BZ7l2aWI.js} +1 -1
- package/dist/{urdfTree-DR8YiaHu.cjs → urdfTree-CVdvTh7b.cjs} +1 -1
- package/dist/{workpieceTreePanel-FOus2D-D.js → workpieceTreePanel-CpvzXnKP.js} +4 -4
- package/dist/{workpieceTreePanel-Drf3cQdr.cjs → workpieceTreePanel-CxZSnn1_.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CpO_JyQ7.cjs +0 -1
- package/dist/index-Oqu_tm55.js +0 -2949
package/dist/index-Oqu_tm55.js
DELETED
|
@@ -1,2949 +0,0 @@
|
|
|
1
|
-
import { ref as H, watch as He, nextTick as oa, resolveComponent as Qe, createBlock as Pe, openBlock as ae, withCtx as Y, createElementVNode as ge, renderSlot as Ba, onMounted as va, createElementBlock as be, normalizeStyle as xl, normalizeClass as ar, toDisplayString as Oe, createCommentVNode as De, createVNode as oe, unref as Ie, Fragment as dl, renderList as pl, createTextVNode as Ye, defineComponent as rr, reactive as ql, inject as dn, provide as pn, onBeforeUnmount as fn, computed as Ma, onUnmounted as gn, createSlots as hn, withModifiers as Fa, withDirectives as Ka, vShow as za } from "vue";
|
|
2
|
-
import { by as Ja, ay as Wa, c as G, E as Re, bS as nr, g as Al, p as Tl, s as Pl, u as yn, f as vn, b as ml, bK as bn, bI as Ra, e as Sn, ce as kn } from "./index-DIUrwul5.js";
|
|
3
|
-
import { E as Hl, ap as Tn, aq as Ql, ar as mn, g as Ll, b as An, a as xn, D as Cn, u as Un, as as qa, at as Ga, au as _n, av as Dn, d as ha, F as Ha, n as Qa, l as On, aw as Xa, O as En, ax as jn, ay as Pn, az as Ln, S as $n, aA as wn } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B2lxmjQh.js";
|
|
4
|
-
import { d as $l, a as Ya, i as Nn, e as Bn, E as Mn } from "./index-CbN4yjCo.js";
|
|
5
|
-
import { a as Fn, T as Kn } from "./threeViewerHost-C1WNEIlS.js";
|
|
6
|
-
import { u as zn, a as Jn, E as Za } from "./index-AIq5wzuR.js";
|
|
7
|
-
import "./index.vue_vue_type_style_index_1_lang-LfJdXFIv.js";
|
|
8
|
-
import { _ as sa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { s as Gl } from "./index-CfbvFDkJ.js";
|
|
10
|
-
import "./index-_lg-jrRI.js";
|
|
11
|
-
import { i as Ia } from "./isString-CN3i5s9o.js";
|
|
12
|
-
const Va = (w) => w.match(/\((.*)\)/)[1], er = {
|
|
13
|
-
__name: "index",
|
|
14
|
-
props: {
|
|
15
|
-
isVisible: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: !1
|
|
18
|
-
},
|
|
19
|
-
title: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
placement: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: "bottom"
|
|
26
|
-
},
|
|
27
|
-
width: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 200
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(w) {
|
|
33
|
-
const ne = w, V = H(null), $ = H(!1), L = H(null);
|
|
34
|
-
return He(
|
|
35
|
-
() => ne == null ? void 0 : ne.isVisible,
|
|
36
|
-
() => {
|
|
37
|
-
$.value = ne == null ? void 0 : ne.isVisible;
|
|
38
|
-
},
|
|
39
|
-
{ deep: !0, immediate: !0 }
|
|
40
|
-
), He(
|
|
41
|
-
() => L.value,
|
|
42
|
-
() => {
|
|
43
|
-
oa(() => {
|
|
44
|
-
var o, ue;
|
|
45
|
-
(ue = (o = V.value) == null ? void 0 : o.updatePopper) == null || ue.call(o);
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
{ deep: !0, immediate: !0 }
|
|
49
|
-
), (o, ue) => {
|
|
50
|
-
const he = Qe("el-popover");
|
|
51
|
-
return ae(), Pe(he, {
|
|
52
|
-
visible: $.value,
|
|
53
|
-
title: ne == null ? void 0 : ne.title,
|
|
54
|
-
placement: ne == null ? void 0 : ne.placement,
|
|
55
|
-
width: ne == null ? void 0 : ne.width,
|
|
56
|
-
ref_key: "popOverRef",
|
|
57
|
-
ref: V
|
|
58
|
-
}, {
|
|
59
|
-
reference: Y(() => [
|
|
60
|
-
ge("div", null, [
|
|
61
|
-
Ba(o.$slots, "reference", {
|
|
62
|
-
ref_key: "referenceRef",
|
|
63
|
-
ref: L
|
|
64
|
-
})
|
|
65
|
-
])
|
|
66
|
-
]),
|
|
67
|
-
default: Y(() => [
|
|
68
|
-
ge("div", null, [
|
|
69
|
-
Ba(o.$slots, "content")
|
|
70
|
-
])
|
|
71
|
-
]),
|
|
72
|
-
_: 3
|
|
73
|
-
}, 8, ["visible", "title", "placement", "width"]);
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}, Wn = {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: "extra-button-content"
|
|
79
|
-
}, Rn = { class: "table-operator-wrap" }, qn = { class: "extra-button-filter" }, Gn = { class: "form-content-value" }, Hn = {
|
|
80
|
-
key: 0,
|
|
81
|
-
class: "extra-header"
|
|
82
|
-
}, Qn = {
|
|
83
|
-
class: "drop-menu",
|
|
84
|
-
style: { width: "120px" }
|
|
85
|
-
}, Xn = { key: 0 }, Yn = { key: 1 }, Zn = {
|
|
86
|
-
key: 1,
|
|
87
|
-
class: "extra-button-content tabs-button-wrapper"
|
|
88
|
-
}, In = { class: "table-operator-wrap" }, Vn = { class: "extra-button-filter" }, eu = { class: "form-content-value" }, lu = {
|
|
89
|
-
key: 0,
|
|
90
|
-
class: "extra-header"
|
|
91
|
-
}, au = {
|
|
92
|
-
class: "drop-menu",
|
|
93
|
-
style: { width: "120px" }
|
|
94
|
-
}, ru = { key: 0 }, nu = { key: 1 }, uu = {
|
|
95
|
-
__name: "header",
|
|
96
|
-
props: {
|
|
97
|
-
pageLayout: {
|
|
98
|
-
type: String,
|
|
99
|
-
default: "vertical"
|
|
100
|
-
},
|
|
101
|
-
lockingPage: Boolean,
|
|
102
|
-
level: {
|
|
103
|
-
type: Number,
|
|
104
|
-
default: 1
|
|
105
|
-
},
|
|
106
|
-
compName: {
|
|
107
|
-
type: String,
|
|
108
|
-
default: "表格名称",
|
|
109
|
-
required: !1
|
|
110
|
-
},
|
|
111
|
-
isDevMode: Boolean,
|
|
112
|
-
selectNums: Number,
|
|
113
|
-
dataNums: Number,
|
|
114
|
-
filterValues: Array,
|
|
115
|
-
buttons: {
|
|
116
|
-
type: Array,
|
|
117
|
-
default: () => []
|
|
118
|
-
},
|
|
119
|
-
columns: {
|
|
120
|
-
type: Array,
|
|
121
|
-
default: () => []
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
emits: ["buttonClick", "filter", "getImportData"],
|
|
125
|
-
setup(w, { emit: ne }) {
|
|
126
|
-
const V = ne, $ = w, L = H(""), o = H(!1), ue = H([]), he = H([{ label: "取消", background: "#999999" }, {
|
|
127
|
-
label: "清空",
|
|
128
|
-
background: "#999999"
|
|
129
|
-
}, { label: "确认" }]), Ce = [
|
|
130
|
-
{
|
|
131
|
-
label: "新增",
|
|
132
|
-
icon: "Plus"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
label: "导入",
|
|
136
|
-
icon: "import"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
label: "导出",
|
|
140
|
-
icon: "export"
|
|
141
|
-
}
|
|
142
|
-
], ye = (pe) => {
|
|
143
|
-
const me = pe.raw;
|
|
144
|
-
if (!me) return;
|
|
145
|
-
const ce = new FileReader();
|
|
146
|
-
ce.onload = (Z) => {
|
|
147
|
-
try {
|
|
148
|
-
const W = new Uint8Array(Z.target.result), $e = Tn(W, { type: "array" }), Xe = $e.SheetNames[0], te = $e.Sheets[Xe], Ke = Ql.decode_range(te["!ref"]).e.c + 1, R = new Array(Ke).fill(""), S = [];
|
|
149
|
-
for (const q in te) {
|
|
150
|
-
if (q[0] === "!") continue;
|
|
151
|
-
const { r: de, c: xe } = Ql.decode_cell(q);
|
|
152
|
-
let we = te[q].v;
|
|
153
|
-
if (te[q].t === "n" && we > 0 && we < 1e6 && (we = new Date((we - 25569) * 86400 * 1e3).toISOString().split("T")[0]), (we == null || we === "") && (we = ""), de === 0)
|
|
154
|
-
R[xe] = we;
|
|
155
|
-
else {
|
|
156
|
-
if (!S[de - 1]) {
|
|
157
|
-
S[de - 1] = {};
|
|
158
|
-
for (let ze = 0; ze < Ke; ze++)
|
|
159
|
-
S[de - 1][`col_${ze}`] = "";
|
|
160
|
-
}
|
|
161
|
-
S[de - 1][`col_${xe}`] = we;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
for (let q = 0; q < Ke; q++)
|
|
165
|
-
R[q] === void 0 && (R[q] = "");
|
|
166
|
-
const Ue = S == null ? void 0 : S[0];
|
|
167
|
-
if (!(Ue != null && Ue.hasOwnProperty("col_0"))) return Re.error("导入的数据列不匹配,请检查是否错位");
|
|
168
|
-
V("getImportData", R, S);
|
|
169
|
-
} catch (W) {
|
|
170
|
-
throw Re.error(W.message), new Error(W.message);
|
|
171
|
-
}
|
|
172
|
-
}, ce.readAsArrayBuffer(me);
|
|
173
|
-
}, Ve = (pe) => {
|
|
174
|
-
var ce;
|
|
175
|
-
const me = (ce = ue.value) == null ? void 0 : ce.reduce((Z, W, $e) => ($e === 0 ? Z[W.label] = pe : Z[W.label] = W == null ? void 0 : W.value, Z), {});
|
|
176
|
-
V("filter", me, pe, !0);
|
|
177
|
-
}, il = (pe) => {
|
|
178
|
-
V("buttonClick", pe);
|
|
179
|
-
}, hl = (pe) => {
|
|
180
|
-
var me, ce;
|
|
181
|
-
ue.value = (ce = (me = Hl(G(pe))) == null ? void 0 : me.filter((Z) => (Z == null ? void 0 : Z.label) !== "" && (Z == null ? void 0 : Z.label) !== "操作")) == null ? void 0 : ce.map((Z) => ({
|
|
182
|
-
label: (Z == null ? void 0 : Z.label) ?? "",
|
|
183
|
-
value: "",
|
|
184
|
-
name: (Z == null ? void 0 : Z.label) ?? "",
|
|
185
|
-
isFormColHidden: Z == null ? void 0 : Z.isTableColHidden,
|
|
186
|
-
width: 2
|
|
187
|
-
}));
|
|
188
|
-
}, Le = H(!1), fl = (pe) => {
|
|
189
|
-
var me;
|
|
190
|
-
if ((pe == null ? void 0 : pe.buttonName) === "确认" && (V("filter", pe == null ? void 0 : pe.content), Le.value = (pe == null ? void 0 : pe.content) && Object.values(pe == null ? void 0 : pe.content).length > 0), (pe == null ? void 0 : pe.buttonName) === "清空") {
|
|
191
|
-
const ce = G(pe == null ? void 0 : pe.content);
|
|
192
|
-
for (const Z in ce)
|
|
193
|
-
ce[Z] = "";
|
|
194
|
-
ue.value = (me = ue.value) == null ? void 0 : me.map((Z) => ({
|
|
195
|
-
...Z,
|
|
196
|
-
value: ""
|
|
197
|
-
})), V("filter", ce), Le.value = !1;
|
|
198
|
-
}
|
|
199
|
-
o.value = !1;
|
|
200
|
-
}, gl = () => {
|
|
201
|
-
var me, ce;
|
|
202
|
-
ue.value = (me = ue.value) == null ? void 0 : me.map((Z) => ({
|
|
203
|
-
...Z,
|
|
204
|
-
value: ""
|
|
205
|
-
}));
|
|
206
|
-
const pe = (ce = ue.value) == null ? void 0 : ce.reduce((Z, W) => (Z[W.label] = W.value, Z), {});
|
|
207
|
-
V("filter", pe);
|
|
208
|
-
};
|
|
209
|
-
return va(() => {
|
|
210
|
-
hl($.columns);
|
|
211
|
-
}), He(
|
|
212
|
-
() => $.columns,
|
|
213
|
-
() => {
|
|
214
|
-
hl($.columns);
|
|
215
|
-
},
|
|
216
|
-
{ deep: !0, immediate: !0 }
|
|
217
|
-
), (pe, me) => {
|
|
218
|
-
var te, qe, Ke, R;
|
|
219
|
-
const ce = Qe("el-icon"), Z = Qe("svg-icon"), W = Qe("el-input"), $e = Qe("el-button"), Xe = Qe("el-upload");
|
|
220
|
-
return w.pageLayout === "vertical" ? (ae(), be("div", Wn, [
|
|
221
|
-
ge("div", {
|
|
222
|
-
class: ar(w.compName ? "table-name-wrap" : ""),
|
|
223
|
-
style: xl({
|
|
224
|
-
background: ($ == null ? void 0 : $.level) > 1 ? "transparent" : "var(--ssgroup-background)",
|
|
225
|
-
paddingLeft: (($ == null ? void 0 : $.level) - 1) * 12 + "px",
|
|
226
|
-
fontWeight: 600 - (($ == null ? void 0 : $.level) - 1) * 100 >= 400 ? 600 - (($ == null ? void 0 : $.level) - 1) * 100 : 400,
|
|
227
|
-
fontSize: 17 - ($ == null ? void 0 : $.level) >= 14 ? 17 - ($ == null ? void 0 : $.level) + "px" : "14px"
|
|
228
|
-
})
|
|
229
|
-
}, Oe(w.compName), 7),
|
|
230
|
-
ge("div", Rn, [
|
|
231
|
-
ge("div", qn, [
|
|
232
|
-
oe(er, {
|
|
233
|
-
title: "",
|
|
234
|
-
width: 800,
|
|
235
|
-
placement: "bottom-start",
|
|
236
|
-
isVisible: o.value
|
|
237
|
-
}, {
|
|
238
|
-
reference: Y(() => {
|
|
239
|
-
var S, Ue, q, de;
|
|
240
|
-
return [
|
|
241
|
-
oe(W, {
|
|
242
|
-
modelValue: L.value,
|
|
243
|
-
"onUpdate:modelValue": me[1] || (me[1] = (xe) => L.value = xe),
|
|
244
|
-
style: { "min-width": "80px" },
|
|
245
|
-
placeholder: Le.value ? (q = (Ue = (S = w.filterValues) == null ? void 0 : S.filter((xe) => xe)) == null ? void 0 : Ue.slice(0, 3)) == null ? void 0 : q.join("/") : "搜索",
|
|
246
|
-
"prefix-icon": Ie(Ja),
|
|
247
|
-
clearable: "",
|
|
248
|
-
onInput: Ve,
|
|
249
|
-
disabled: ((de = ue.value) == null ? void 0 : de.length) === 0
|
|
250
|
-
}, {
|
|
251
|
-
suffix: Y(() => {
|
|
252
|
-
var xe, we;
|
|
253
|
-
return [
|
|
254
|
-
!L.value && ((we = (xe = w.filterValues) == null ? void 0 : xe.filter((ze) => ze)) != null && we.join("/")) ? (ae(), Pe(ce, {
|
|
255
|
-
key: 0,
|
|
256
|
-
style: { cursor: "pointer" },
|
|
257
|
-
onClick: gl
|
|
258
|
-
}, {
|
|
259
|
-
default: Y(() => [
|
|
260
|
-
oe(Ie(Wa))
|
|
261
|
-
]),
|
|
262
|
-
_: 1
|
|
263
|
-
})) : De("", !0)
|
|
264
|
-
];
|
|
265
|
-
}),
|
|
266
|
-
append: Y(() => [
|
|
267
|
-
ge("span", {
|
|
268
|
-
title: "条件查询",
|
|
269
|
-
onClick: me[0] || (me[0] = (xe) => o.value = !o.value)
|
|
270
|
-
}, [
|
|
271
|
-
oe(Z, {
|
|
272
|
-
name: "query",
|
|
273
|
-
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
274
|
-
})
|
|
275
|
-
])
|
|
276
|
-
]),
|
|
277
|
-
_: 1
|
|
278
|
-
}, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
|
|
279
|
-
];
|
|
280
|
-
}),
|
|
281
|
-
content: Y(() => [
|
|
282
|
-
ge("div", Gn, [
|
|
283
|
-
(ae(), Pe($l, {
|
|
284
|
-
rowContents: ue.value,
|
|
285
|
-
buttonValue: he.value,
|
|
286
|
-
isRowFlex: !0,
|
|
287
|
-
isEnableWrap: !1,
|
|
288
|
-
isButtonRow: !1,
|
|
289
|
-
key: he.value,
|
|
290
|
-
isStartJustify: !1,
|
|
291
|
-
onOnButtonClick: fl
|
|
292
|
-
}, null, 8, ["rowContents", "buttonValue"]))
|
|
293
|
-
])
|
|
294
|
-
]),
|
|
295
|
-
_: 1
|
|
296
|
-
}, 8, ["isVisible"])
|
|
297
|
-
]),
|
|
298
|
-
w.buttons && ((te = w.buttons) == null ? void 0 : te.length) > 0 ? (ae(), be("div", Hn, [
|
|
299
|
-
(ae(!0), be(dl, null, pl((qe = w.buttons) == null ? void 0 : qe.filter((S) => w.isDevMode || (S == null ? void 0 : S.label) !== "修改模板"), (S, Ue) => (ae(), be("div", {
|
|
300
|
-
class: "extra-contents",
|
|
301
|
-
key: Ue
|
|
302
|
-
}, [
|
|
303
|
-
(S == null ? void 0 : S.type) === "upload" ? (ae(), Pe(Xe, {
|
|
304
|
-
key: 0,
|
|
305
|
-
class: "upload-button-wrap",
|
|
306
|
-
"on-change": ye,
|
|
307
|
-
accept: ".xlsx,.xls",
|
|
308
|
-
"auto-upload": !1,
|
|
309
|
-
action: "#",
|
|
310
|
-
"show-file-list": !1,
|
|
311
|
-
disabled: !!w.lockingPage
|
|
312
|
-
}, {
|
|
313
|
-
default: Y(() => [
|
|
314
|
-
oe($e, {
|
|
315
|
-
disabled: !!w.lockingPage,
|
|
316
|
-
style: xl({ background: (S == null ? void 0 : S.background) ?? "var(--ssbutton-theme-bg)", color: (S == null ? void 0 : S.color) ?? "var(--ssbutton-theme-color)" })
|
|
317
|
-
}, {
|
|
318
|
-
default: Y(() => [
|
|
319
|
-
Ye(Oe(S == null ? void 0 : S.label), 1)
|
|
320
|
-
]),
|
|
321
|
-
_: 2
|
|
322
|
-
}, 1032, ["disabled", "style"])
|
|
323
|
-
]),
|
|
324
|
-
_: 2
|
|
325
|
-
}, 1032, ["disabled"])) : De("", !0),
|
|
326
|
-
(S == null ? void 0 : S.type) === "popover" ? (ae(), Pe(Ya, { key: 1 }, {
|
|
327
|
-
dropTitle: Y(() => [
|
|
328
|
-
(S == null ? void 0 : S.type) === "popover" ? (ae(), Pe($e, {
|
|
329
|
-
key: 0,
|
|
330
|
-
disabled: !!w.lockingPage,
|
|
331
|
-
style: xl({ background: (S == null ? void 0 : S.background) ?? "var(--ssbutton-theme-bg)", color: (S == null ? void 0 : S.color) ?? "var(--ssbutton-theme-color)" })
|
|
332
|
-
}, {
|
|
333
|
-
default: Y(() => [
|
|
334
|
-
Ye(Oe(S == null ? void 0 : S.label), 1)
|
|
335
|
-
]),
|
|
336
|
-
_: 2
|
|
337
|
-
}, 1032, ["disabled", "style"])) : De("", !0)
|
|
338
|
-
]),
|
|
339
|
-
dropMenu: Y(() => [
|
|
340
|
-
ge("div", Qn, [
|
|
341
|
-
(ae(!0), be(dl, null, pl(S == null ? void 0 : S.contents, (q) => (ae(), Pe($e, {
|
|
342
|
-
key: q == null ? void 0 : q.label,
|
|
343
|
-
disabled: !!w.lockingPage,
|
|
344
|
-
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
345
|
-
onClick: (de) => il(q == null ? void 0 : q.label)
|
|
346
|
-
}, {
|
|
347
|
-
default: Y(() => {
|
|
348
|
-
var de, xe;
|
|
349
|
-
return [
|
|
350
|
-
Ye(Oe(q == null ? void 0 : q.label), 1),
|
|
351
|
-
(de = q == null ? void 0 : q.label) != null && de.includes("选中") ? (ae(), be("span", Xn, "(" + Oe(w.selectNums) + ")", 1)) : De("", !0),
|
|
352
|
-
(xe = q == null ? void 0 : q.label) != null && xe.includes("全部") ? (ae(), be("span", Yn, "(" + Oe(w.dataNums) + ")", 1)) : De("", !0)
|
|
353
|
-
];
|
|
354
|
-
}),
|
|
355
|
-
_: 2
|
|
356
|
-
}, 1032, ["disabled", "onClick"]))), 128))
|
|
357
|
-
])
|
|
358
|
-
]),
|
|
359
|
-
_: 2
|
|
360
|
-
}, 1024)) : De("", !0),
|
|
361
|
-
S != null && S.type ? De("", !0) : (ae(), Pe($e, {
|
|
362
|
-
key: 2,
|
|
363
|
-
id: "themeButton",
|
|
364
|
-
disabled: !!w.lockingPage,
|
|
365
|
-
style: xl({ background: (S == null ? void 0 : S.background) ?? "var(--ssbutton-theme-bg)", color: (S == null ? void 0 : S.color) ?? "var(--ssbutton-theme-color)" }),
|
|
366
|
-
onClick: (q) => il(S == null ? void 0 : S.label)
|
|
367
|
-
}, {
|
|
368
|
-
default: Y(() => [
|
|
369
|
-
Ye(Oe(S == null ? void 0 : S.label), 1)
|
|
370
|
-
]),
|
|
371
|
-
_: 2
|
|
372
|
-
}, 1032, ["disabled", "style", "onClick"]))
|
|
373
|
-
]))), 128))
|
|
374
|
-
])) : De("", !0)
|
|
375
|
-
])
|
|
376
|
-
])) : (ae(), be("div", Zn, [
|
|
377
|
-
ge("div", In, [
|
|
378
|
-
ge("div", Vn, [
|
|
379
|
-
oe(er, {
|
|
380
|
-
title: "",
|
|
381
|
-
width: 800,
|
|
382
|
-
placement: "bottom-start",
|
|
383
|
-
isVisible: o.value
|
|
384
|
-
}, {
|
|
385
|
-
reference: Y(() => {
|
|
386
|
-
var S, Ue, q, de;
|
|
387
|
-
return [
|
|
388
|
-
oe(W, {
|
|
389
|
-
modelValue: L.value,
|
|
390
|
-
"onUpdate:modelValue": me[3] || (me[3] = (xe) => L.value = xe),
|
|
391
|
-
style: { "min-width": "80px" },
|
|
392
|
-
placeholder: Le.value ? (q = (Ue = (S = w.filterValues) == null ? void 0 : S.filter((xe) => xe)) == null ? void 0 : Ue.slice(0, 3)) == null ? void 0 : q.join("/") : "搜索",
|
|
393
|
-
"prefix-icon": Ie(Ja),
|
|
394
|
-
clearable: "",
|
|
395
|
-
onInput: Ve,
|
|
396
|
-
disabled: ((de = ue.value) == null ? void 0 : de.length) === 0
|
|
397
|
-
}, {
|
|
398
|
-
suffix: Y(() => {
|
|
399
|
-
var xe, we;
|
|
400
|
-
return [
|
|
401
|
-
!L.value && ((we = (xe = w.filterValues) == null ? void 0 : xe.filter((ze) => ze)) != null && we.join("/")) ? (ae(), Pe(ce, {
|
|
402
|
-
key: 0,
|
|
403
|
-
style: { cursor: "pointer" },
|
|
404
|
-
onClick: gl
|
|
405
|
-
}, {
|
|
406
|
-
default: Y(() => [
|
|
407
|
-
oe(Ie(Wa))
|
|
408
|
-
]),
|
|
409
|
-
_: 1
|
|
410
|
-
})) : De("", !0)
|
|
411
|
-
];
|
|
412
|
-
}),
|
|
413
|
-
append: Y(() => [
|
|
414
|
-
ge("span", {
|
|
415
|
-
title: "条件查询",
|
|
416
|
-
onClick: me[2] || (me[2] = (xe) => o.value = !o.value)
|
|
417
|
-
}, [
|
|
418
|
-
oe(Z, {
|
|
419
|
-
name: "query",
|
|
420
|
-
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
421
|
-
})
|
|
422
|
-
])
|
|
423
|
-
]),
|
|
424
|
-
_: 1
|
|
425
|
-
}, 8, ["modelValue", "placeholder", "prefix-icon", "disabled"])
|
|
426
|
-
];
|
|
427
|
-
}),
|
|
428
|
-
content: Y(() => [
|
|
429
|
-
ge("div", eu, [
|
|
430
|
-
(ae(), Pe($l, {
|
|
431
|
-
rowContents: ue.value,
|
|
432
|
-
buttonValue: he.value,
|
|
433
|
-
isRowFlex: !0,
|
|
434
|
-
isEnableWrap: !1,
|
|
435
|
-
isButtonRow: !1,
|
|
436
|
-
key: he.value,
|
|
437
|
-
isStartJustify: !1,
|
|
438
|
-
onOnButtonClick: fl
|
|
439
|
-
}, null, 8, ["rowContents", "buttonValue"]))
|
|
440
|
-
])
|
|
441
|
-
]),
|
|
442
|
-
_: 1
|
|
443
|
-
}, 8, ["isVisible"])
|
|
444
|
-
]),
|
|
445
|
-
w.buttons && ((Ke = w.buttons) == null ? void 0 : Ke.length) > 0 ? (ae(), be("div", lu, [
|
|
446
|
-
(ae(!0), be(dl, null, pl((R = w.buttons) == null ? void 0 : R.filter((S) => w.isDevMode || (S == null ? void 0 : S.label) !== "修改模板"), (S, Ue) => (ae(), be("div", {
|
|
447
|
-
class: "extra-contents",
|
|
448
|
-
key: Ue
|
|
449
|
-
}, [
|
|
450
|
-
(S == null ? void 0 : S.type) === "upload" ? (ae(), Pe(Xe, {
|
|
451
|
-
key: 0,
|
|
452
|
-
class: "upload-button-wrap",
|
|
453
|
-
"on-change": ye,
|
|
454
|
-
accept: ".xlsx,.xls",
|
|
455
|
-
"auto-upload": !1,
|
|
456
|
-
action: "#",
|
|
457
|
-
"show-file-list": !1
|
|
458
|
-
}, {
|
|
459
|
-
default: Y(() => [
|
|
460
|
-
oe($e, { style: { background: "transparent", color: "#666666" } }, {
|
|
461
|
-
icon: Y(() => {
|
|
462
|
-
var q;
|
|
463
|
-
return [
|
|
464
|
-
oe(Z, {
|
|
465
|
-
name: (q = Ce == null ? void 0 : Ce.find((de) => (de == null ? void 0 : de.label) === (S == null ? void 0 : S.label))) == null ? void 0 : q.icon
|
|
466
|
-
}, null, 8, ["name"])
|
|
467
|
-
];
|
|
468
|
-
}),
|
|
469
|
-
default: Y(() => [
|
|
470
|
-
Ye(" " + Oe(S == null ? void 0 : S.label), 1)
|
|
471
|
-
]),
|
|
472
|
-
_: 2
|
|
473
|
-
}, 1024)
|
|
474
|
-
]),
|
|
475
|
-
_: 2
|
|
476
|
-
}, 1024)) : De("", !0),
|
|
477
|
-
(S == null ? void 0 : S.type) === "popover" ? (ae(), Pe(Ya, { key: 1 }, {
|
|
478
|
-
dropTitle: Y(() => [
|
|
479
|
-
(S == null ? void 0 : S.type) === "popover" ? (ae(), Pe($e, {
|
|
480
|
-
key: 0,
|
|
481
|
-
style: { background: "transparent", color: "#666666" }
|
|
482
|
-
}, {
|
|
483
|
-
icon: Y(() => {
|
|
484
|
-
var q;
|
|
485
|
-
return [
|
|
486
|
-
oe(Z, {
|
|
487
|
-
name: (q = Ce == null ? void 0 : Ce.find((de) => (de == null ? void 0 : de.label) === (S == null ? void 0 : S.label))) == null ? void 0 : q.icon
|
|
488
|
-
}, null, 8, ["name"])
|
|
489
|
-
];
|
|
490
|
-
}),
|
|
491
|
-
default: Y(() => [
|
|
492
|
-
Ye(" " + Oe(S == null ? void 0 : S.label), 1)
|
|
493
|
-
]),
|
|
494
|
-
_: 2
|
|
495
|
-
}, 1024)) : De("", !0)
|
|
496
|
-
]),
|
|
497
|
-
dropMenu: Y(() => [
|
|
498
|
-
ge("div", au, [
|
|
499
|
-
(ae(!0), be(dl, null, pl(S == null ? void 0 : S.contents, (q) => (ae(), Pe($e, {
|
|
500
|
-
key: q == null ? void 0 : q.label,
|
|
501
|
-
style: { width: "100%", margin: "0", border: "none", display: "flex", "justify-content": "flex-start" },
|
|
502
|
-
onClick: (de) => il(q == null ? void 0 : q.label)
|
|
503
|
-
}, {
|
|
504
|
-
default: Y(() => {
|
|
505
|
-
var de, xe;
|
|
506
|
-
return [
|
|
507
|
-
Ye(Oe(q == null ? void 0 : q.label), 1),
|
|
508
|
-
(de = q == null ? void 0 : q.label) != null && de.includes("选中") ? (ae(), be("span", ru, "(" + Oe(w.selectNums) + ")", 1)) : De("", !0),
|
|
509
|
-
(xe = q == null ? void 0 : q.label) != null && xe.includes("全部") ? (ae(), be("span", nu, "(" + Oe(w.dataNums) + ")", 1)) : De("", !0)
|
|
510
|
-
];
|
|
511
|
-
}),
|
|
512
|
-
_: 2
|
|
513
|
-
}, 1032, ["onClick"]))), 128))
|
|
514
|
-
])
|
|
515
|
-
]),
|
|
516
|
-
_: 2
|
|
517
|
-
}, 1024)) : De("", !0),
|
|
518
|
-
S != null && S.type ? De("", !0) : (ae(), Pe($e, {
|
|
519
|
-
key: 2,
|
|
520
|
-
id: "themeButton",
|
|
521
|
-
style: xl({ background: "transparent", color: (S == null ? void 0 : S.label) === "新增" ? "var(--ssbutton-theme-bg)" : "#666666" }),
|
|
522
|
-
onClick: (q) => il(S == null ? void 0 : S.label)
|
|
523
|
-
}, {
|
|
524
|
-
icon: Y(() => {
|
|
525
|
-
var q;
|
|
526
|
-
return [
|
|
527
|
-
oe(Z, {
|
|
528
|
-
name: (q = Ce == null ? void 0 : Ce.find((de) => (de == null ? void 0 : de.label) === (S == null ? void 0 : S.label))) == null ? void 0 : q.icon
|
|
529
|
-
}, null, 8, ["name"])
|
|
530
|
-
];
|
|
531
|
-
}),
|
|
532
|
-
default: Y(() => [
|
|
533
|
-
Ye(" " + Oe(S == null ? void 0 : S.label), 1)
|
|
534
|
-
]),
|
|
535
|
-
_: 2
|
|
536
|
-
}, 1032, ["style", "onClick"]))
|
|
537
|
-
]))), 128))
|
|
538
|
-
])) : De("", !0)
|
|
539
|
-
])
|
|
540
|
-
]));
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
}, ou = /* @__PURE__ */ sa(uu, [["__scopeId", "data-v-dc7dc670"]]), su = /* @__PURE__ */ rr({
|
|
544
|
-
__name: "batch",
|
|
545
|
-
props: {
|
|
546
|
-
lockingPage: Boolean,
|
|
547
|
-
buttons: {
|
|
548
|
-
type: Array,
|
|
549
|
-
default: () => []
|
|
550
|
-
},
|
|
551
|
-
selectTableItems: {
|
|
552
|
-
type: Array,
|
|
553
|
-
default: () => []
|
|
554
|
-
},
|
|
555
|
-
columns: {
|
|
556
|
-
type: Array,
|
|
557
|
-
default: () => []
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
emits: ["buttonClick"],
|
|
561
|
-
setup(w, { emit: ne }) {
|
|
562
|
-
const V = w, $ = ne, L = (ue) => {
|
|
563
|
-
$("buttonClick", ue);
|
|
564
|
-
}, o = (ue) => {
|
|
565
|
-
var he;
|
|
566
|
-
return ue != null && ue.includes("删除") ? ((he = V.selectTableItems) == null ? void 0 : he.length) > 0 ? "warning-active-type" : "warning-type" : "default-type";
|
|
567
|
-
};
|
|
568
|
-
return (ue, he) => {
|
|
569
|
-
const Ce = Qe("el-button");
|
|
570
|
-
return ae(), be("div", null, [
|
|
571
|
-
(ae(!0), be(dl, null, pl(w.buttons, (ye) => (ae(), Pe(Ce, {
|
|
572
|
-
key: ye == null ? void 0 : ye.label,
|
|
573
|
-
disabled: !!w.lockingPage,
|
|
574
|
-
class: ar(o(ye == null ? void 0 : ye.label)),
|
|
575
|
-
onClick: (Ve) => L(ye == null ? void 0 : ye.label)
|
|
576
|
-
}, {
|
|
577
|
-
default: Y(() => [
|
|
578
|
-
Ye(Oe(ye == null ? void 0 : ye.label), 1)
|
|
579
|
-
]),
|
|
580
|
-
_: 2
|
|
581
|
-
}, 1032, ["disabled", "class", "onClick"]))), 128))
|
|
582
|
-
]);
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
}), iu = /* @__PURE__ */ sa(su, [["__scopeId", "data-v-70b12973"]]), tu = nr("formToTableComp", {
|
|
586
|
-
state: () => ({
|
|
587
|
-
selectArray: [],
|
|
588
|
-
selectString: ""
|
|
589
|
-
}),
|
|
590
|
-
actions: {
|
|
591
|
-
setSelectArray(w) {
|
|
592
|
-
this.selectArray = w;
|
|
593
|
-
},
|
|
594
|
-
setSelectString(w) {
|
|
595
|
-
this.selectString = w;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
}), cu = { class: "calculator-content" }, du = { class: "calculator-child" }, pu = { class: "calculator-child" }, fu = /* @__PURE__ */ rr({
|
|
599
|
-
__name: "calculator",
|
|
600
|
-
setup(w) {
|
|
601
|
-
const ne = H(), V = H();
|
|
602
|
-
return va(() => {
|
|
603
|
-
ne.value = [
|
|
604
|
-
{
|
|
605
|
-
type: "Upload",
|
|
606
|
-
label: "输入",
|
|
607
|
-
name: "input"
|
|
608
|
-
}
|
|
609
|
-
], V.value = [
|
|
610
|
-
{
|
|
611
|
-
type: "Upload",
|
|
612
|
-
label: "输出",
|
|
613
|
-
name: "output"
|
|
614
|
-
}
|
|
615
|
-
];
|
|
616
|
-
}), ($, L) => (ae(), be("div", cu, [
|
|
617
|
-
ge("div", du, [
|
|
618
|
-
oe($l, {
|
|
619
|
-
rowContents: ne.value,
|
|
620
|
-
isRowFlex: !0
|
|
621
|
-
}, null, 8, ["rowContents"])
|
|
622
|
-
]),
|
|
623
|
-
ge("div", pu, [
|
|
624
|
-
oe($l, {
|
|
625
|
-
rowContents: V.value,
|
|
626
|
-
isEdit: !1,
|
|
627
|
-
isRowFlex: !0
|
|
628
|
-
}, null, 8, ["rowContents"])
|
|
629
|
-
])
|
|
630
|
-
]));
|
|
631
|
-
}
|
|
632
|
-
}), gu = /* @__PURE__ */ sa(fu, [["__scopeId", "data-v-73db0fe7"]]), ya = (w, ne) => {
|
|
633
|
-
let V = w, $ = ne;
|
|
634
|
-
return Array.isArray(V) && (V = V == null ? void 0 : V.map((L, o) => {
|
|
635
|
-
if (Array.isArray(L)) {
|
|
636
|
-
let ue = {};
|
|
637
|
-
return L = L == null ? void 0 : L.forEach((he, Ce) => {
|
|
638
|
-
var ye;
|
|
639
|
-
(ye = $ == null ? void 0 : $[Ce]) != null && ye.prop ? ue[$[Ce].prop] = he : Array.isArray(he) && (ue.children = ya(he, $));
|
|
640
|
-
}), Object.assign(ue, { id: o });
|
|
641
|
-
} else
|
|
642
|
-
return L;
|
|
643
|
-
})), V;
|
|
644
|
-
}, ur = (w, ne, V) => {
|
|
645
|
-
let $ = w, L = ne;
|
|
646
|
-
return $ = $ == null ? void 0 : $.map((o, ue) => {
|
|
647
|
-
var he, Ce;
|
|
648
|
-
return !Array.isArray(o) || !((he = L == null ? void 0 : L[ue]) != null && he.label) && !V || (o.unshift(((Ce = L == null ? void 0 : L[ue]) == null ? void 0 : Ce.label) ?? ""), o.some((ye) => Array.isArray(ye)) && (o = o == null ? void 0 : o.map((ye) => {
|
|
649
|
-
var Ve;
|
|
650
|
-
return Array.isArray(ye) && (ye = ur(ye, (Ve = L == null ? void 0 : L[ue]) == null ? void 0 : Ve.children, V)), ye;
|
|
651
|
-
}))), o;
|
|
652
|
-
}), $;
|
|
653
|
-
}, hu = (w, ne, V) => {
|
|
654
|
-
if (ne === "")
|
|
655
|
-
return w == null ? void 0 : w.filter(($) => ($ == null ? void 0 : $.id) !== V);
|
|
656
|
-
{
|
|
657
|
-
const $ = ne.split("-");
|
|
658
|
-
return yu(w, $, V);
|
|
659
|
-
}
|
|
660
|
-
}, yu = (w, ne, V) => {
|
|
661
|
-
let $ = w, L = ne;
|
|
662
|
-
return (L == null ? void 0 : L.length) === 0 ? $ = $ == null ? void 0 : $.filter((o) => o.id !== V) : $ = $ == null ? void 0 : $.map((o) => (o.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), o = or(o, L, V)), o)), $;
|
|
663
|
-
}, or = (w, ne, V) => {
|
|
664
|
-
var o, ue;
|
|
665
|
-
let $ = w, L = ne;
|
|
666
|
-
return (L == null ? void 0 : L.length) === 0 ? $.children = (o = $.children) == null ? void 0 : o.filter((he) => he.id !== V) : $.children = (ue = $.children) == null ? void 0 : ue.map((he) => (he.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), he = or(he, L, V)), he)), $;
|
|
667
|
-
}, vu = (w, ne, V) => {
|
|
668
|
-
if (ne === "")
|
|
669
|
-
return V;
|
|
670
|
-
{
|
|
671
|
-
const $ = ne.split("-");
|
|
672
|
-
return bu(w, $, V);
|
|
673
|
-
}
|
|
674
|
-
}, bu = (w, ne, V) => {
|
|
675
|
-
let $ = w, L = ne;
|
|
676
|
-
return (L == null ? void 0 : L.length) === 0 ? $ = V : $ = $ == null ? void 0 : $.map((o) => (o.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), o = sr(o, L, V)), o)), $;
|
|
677
|
-
}, sr = (w, ne, V) => {
|
|
678
|
-
var o;
|
|
679
|
-
let $ = w, L = ne;
|
|
680
|
-
return (L == null ? void 0 : L.length) === 0 ? $.children = V : $.children = (o = $.children) == null ? void 0 : o.map((ue) => (ue.id.toString() === (L == null ? void 0 : L[0]) && (L == null || L.shift(), ue = sr(ue, L, V)), ue)), $;
|
|
681
|
-
}, Su = nr("formComp", {
|
|
682
|
-
state: () => ({
|
|
683
|
-
objUrl: [],
|
|
684
|
-
blobUrls: []
|
|
685
|
-
}),
|
|
686
|
-
actions: {
|
|
687
|
-
setObjUrl(w) {
|
|
688
|
-
this.objUrl = w;
|
|
689
|
-
},
|
|
690
|
-
setBlobUrls(w) {
|
|
691
|
-
this.blobUrls = w;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
}), lr = async (w, ne) => {
|
|
695
|
-
var ue, he, Ce, ye, Ve, il, hl, Le, fl, gl, pe, me, ce, Z, W, $e, Xe;
|
|
696
|
-
let V = (he = (ue = G(w)) == null ? void 0 : ue.optionUrl) == null ? void 0 : he.menuSelect, $ = [];
|
|
697
|
-
V == null || V.forEach((te) => {
|
|
698
|
-
});
|
|
699
|
-
let L = "", o = await mn(V);
|
|
700
|
-
if (o == null || o.forEach((te) => {
|
|
701
|
-
var qe, Ke, R, S;
|
|
702
|
-
(te == null ? void 0 : te.name) === (((S = (R = (Ke = (qe = G(w)) == null ? void 0 : qe.optionUrl) == null ? void 0 : Ke.groupSelect) == null ? void 0 : R[0]) == null ? void 0 : S.replaceAll("'", "")) ?? "") && (L = te == null ? void 0 : te.id);
|
|
703
|
-
}), ne) {
|
|
704
|
-
L = ne;
|
|
705
|
-
const te = await Al({
|
|
706
|
-
id: L
|
|
707
|
-
}), qe = (il = (Ve = (ye = (Ce = te == null ? void 0 : te.data) == null ? void 0 : Ce.result) == null ? void 0 : ye[0]) == null ? void 0 : Ve.key) == null ? void 0 : il.pageKey;
|
|
708
|
-
o = await Ll(qe, sessionStorage.getItem("systemKey"), "");
|
|
709
|
-
}
|
|
710
|
-
if (L !== "") {
|
|
711
|
-
let te;
|
|
712
|
-
ne ? te = (hl = o == null ? void 0 : o.find((R) => (R == null ? void 0 : R.id) === ne)) == null ? void 0 : hl.compData : te = (Le = o == null ? void 0 : o.find((R) => {
|
|
713
|
-
var S, Ue, q, de;
|
|
714
|
-
return (R == null ? void 0 : R.name) === (((Ue = (S = w == null ? void 0 : w.groupSelect) == null ? void 0 : S.split(":")) == null ? void 0 : Ue[0]) || ((de = (q = w == null ? void 0 : w.optionUrl) == null ? void 0 : q.groupSelect) == null ? void 0 : de[0]));
|
|
715
|
-
})) == null ? void 0 : Le.compData;
|
|
716
|
-
let qe = (gl = (fl = te == null ? void 0 : te.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : fl.contents) == null ? void 0 : gl.map((R) => R == null ? void 0 : R.label);
|
|
717
|
-
(me = (pe = te == null ? void 0 : te.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : pe.contents) != null && me.every((R) => Array.isArray(R)) && (qe = (W = Hl((Z = (ce = te == null ? void 0 : te.find((R) => (R == null ? void 0 : R.key) === "header")) == null ? void 0 : ce.contents) == null ? void 0 : Z[0])) == null ? void 0 : W.map((R) => R == null ? void 0 : R.prop));
|
|
718
|
-
let Ke = (Xe = ($e = te == null ? void 0 : te.find((R) => (R == null ? void 0 : R.key) === "tableContents")) == null ? void 0 : $e.contents) == null ? void 0 : Xe.map((R) => {
|
|
719
|
-
if (Array.isArray(R))
|
|
720
|
-
R = R == null ? void 0 : R.filter((S) => !(S != null && S.id));
|
|
721
|
-
else {
|
|
722
|
-
let S = {};
|
|
723
|
-
for (let Ue in R)
|
|
724
|
-
Ue !== "id" && (S[Ue] = R == null ? void 0 : R[Ue]);
|
|
725
|
-
R = S;
|
|
726
|
-
}
|
|
727
|
-
return R;
|
|
728
|
-
});
|
|
729
|
-
Ke == null || Ke.forEach((R) => {
|
|
730
|
-
Array.isArray(R) ? $.push(An(R, qe)) : $.push(R);
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
return $;
|
|
734
|
-
}, ku = { class: "table-content" }, Tu = { class: "menu-config-wrap" }, mu = ["onClick"], Au = {
|
|
735
|
-
key: 0,
|
|
736
|
-
class: "viewport-wrap"
|
|
737
|
-
}, xu = ["onClick"], Cu = { title: "选择显示列信息" }, Uu = {
|
|
738
|
-
class: "menu-config-wrap",
|
|
739
|
-
style: { padding: "0 0 0 16px", "box-sizing": "border-box", "min-height": "200px", width: "400px", overflow: "auto", position: "relative" }
|
|
740
|
-
}, _u = ["title"], Du = { class: "col-operate-wrap" }, Ou = {
|
|
741
|
-
title: "拖拽排序列",
|
|
742
|
-
style: { cursor: "move", color: "grey", position: "absolute", right: "15px" }
|
|
743
|
-
}, Eu = { class: "pop-view" }, ju = { class: "pop-wrapper" }, Pu = { class: "file-list-pop" }, Lu = ["title", "onClick"], $u = ["onClick"], wu = ["onClick"], Nu = { class: "form-content" }, Bu = {
|
|
744
|
-
key: 0,
|
|
745
|
-
class: "dialog-footer"
|
|
746
|
-
}, Mu = { class: "dialog-footer" }, Fu = { class: "form-content" }, Ku = {
|
|
747
|
-
__name: "index",
|
|
748
|
-
props: {
|
|
749
|
-
pageLayout: {
|
|
750
|
-
type: String,
|
|
751
|
-
default: "vertical"
|
|
752
|
-
},
|
|
753
|
-
level: {
|
|
754
|
-
type: Number,
|
|
755
|
-
default: 1
|
|
756
|
-
},
|
|
757
|
-
compName: {
|
|
758
|
-
type: String,
|
|
759
|
-
default: "",
|
|
760
|
-
required: !1
|
|
761
|
-
},
|
|
762
|
-
compNames: {
|
|
763
|
-
type: Array,
|
|
764
|
-
default: () => [],
|
|
765
|
-
required: !1
|
|
766
|
-
},
|
|
767
|
-
compItem: {
|
|
768
|
-
type: Object,
|
|
769
|
-
default: () => {
|
|
770
|
-
}
|
|
771
|
-
},
|
|
772
|
-
operatingForm: {
|
|
773
|
-
type: Object,
|
|
774
|
-
default: () => {
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
cacheNewData: {
|
|
778
|
-
type: Object,
|
|
779
|
-
default: () => {
|
|
780
|
-
}
|
|
781
|
-
},
|
|
782
|
-
config: Object,
|
|
783
|
-
parentTableId: {
|
|
784
|
-
type: Number,
|
|
785
|
-
default: 0
|
|
786
|
-
},
|
|
787
|
-
itemData: {
|
|
788
|
-
type: Array,
|
|
789
|
-
default: () => []
|
|
790
|
-
},
|
|
791
|
-
childItemData: {
|
|
792
|
-
type: Array,
|
|
793
|
-
default: () => []
|
|
794
|
-
},
|
|
795
|
-
index: Number,
|
|
796
|
-
isDevMode: Boolean,
|
|
797
|
-
changedContent: {
|
|
798
|
-
type: Object,
|
|
799
|
-
default: () => {
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
showHeader: {
|
|
803
|
-
type: Boolean,
|
|
804
|
-
default: !0
|
|
805
|
-
},
|
|
806
|
-
allowSelect: {
|
|
807
|
-
type: Boolean,
|
|
808
|
-
default: !1
|
|
809
|
-
},
|
|
810
|
-
allowOperate: {
|
|
811
|
-
type: Boolean,
|
|
812
|
-
default: !0
|
|
813
|
-
},
|
|
814
|
-
allMapContents: {
|
|
815
|
-
type: Object,
|
|
816
|
-
default: () => {
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
emits: ["getSliceContLength", "clickMainKey", "change", "contentChange", "onButtonClick", "contentClick", "pageChange", "rowClick", "routeUrl"],
|
|
821
|
-
setup(w, { emit: ne }) {
|
|
822
|
-
var Na;
|
|
823
|
-
const V = H([]), $ = Su(Tl), L = H(null), o = w, ue = H(o == null ? void 0 : o.allowSelect), he = H((Na = o == null ? void 0 : o.config) == null ? void 0 : Na.showIndex), Ce = H(), ye = H([
|
|
824
|
-
{
|
|
825
|
-
label: "排序",
|
|
826
|
-
value: "sortable",
|
|
827
|
-
checked: !1
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
label: "筛选",
|
|
831
|
-
value: "filterable",
|
|
832
|
-
checked: !1
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
label: "合计",
|
|
836
|
-
value: "showSummary",
|
|
837
|
-
checked: !1
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
label: "编辑",
|
|
841
|
-
value: "operable",
|
|
842
|
-
checked: !1
|
|
843
|
-
}
|
|
844
|
-
]), Ve = xn(Tl);
|
|
845
|
-
let il = "$R";
|
|
846
|
-
const { originalPath: hl } = Pl(Ve), Le = hl.value, fl = H(!1), gl = H(!1), pe = H(!1), me = ql({
|
|
847
|
-
column: {},
|
|
848
|
-
status: !1,
|
|
849
|
-
text: "合计"
|
|
850
|
-
}), ce = ql({
|
|
851
|
-
currentPage: 1,
|
|
852
|
-
pageSize: 10,
|
|
853
|
-
total: 0,
|
|
854
|
-
pageSizes: [5, 10, 20, 50, 100]
|
|
855
|
-
}), Z = ne, W = H([]), $e = ql({ prop: "", order: null }), Xe = H([]), te = H(!1), qe = H(!1), Ke = H(null), { isUseBackdrop: R, initTrackFileType: S, getFileExtension: Ue, setData: q, getFileInfo: de, getFilesInfo: xe } = Fn(), we = H([]), ze = H(!1), Cl = H(), Ne = zn(), { importLoading: zu, activeMenuPath: Se, contentLoading: Ju, linkMenuInfo: ir } = Pl(Ne), tr = Cn(Tl), Ee = Jn(Tl), { extraContents: Ae, cacheUpdatingData: wl, tableViewContents: Nl, tableLoading: Wu, pageMapState: Ul, lockingPage: Xl } = Pl(Ee), ee = H([]), Yl = H([]), Zl = H(/* @__PURE__ */ new Map());
|
|
856
|
-
H(!1);
|
|
857
|
-
const tl = H("");
|
|
858
|
-
H();
|
|
859
|
-
const Il = H(!0), _l = H(0), ba = H(!0), el = H(""), cl = H(!1), cr = H({
|
|
860
|
-
label: "查看三维模型"
|
|
861
|
-
}), Vl = H(!1), ia = H(), Ze = H([]), yl = H([]), ea = H(!1), Bl = H([]), Dl = H([]), vl = H([]), Me = H([]), ll = H(), Je = H(), dr = tu(Tl), la = H(), ta = H(0), pr = Un(Tl), { selectIndex: fr, selectMenu: Ml, selectTitle: Ru } = Pl(pr), { selectString: bl } = Pl(dr), gr = yn(Tl), { loginUserInfo: Ol } = Pl(gr), hr = H(720), al = H(!1), aa = H(!1), rl = H([]), Sl = H(), Fl = H(!0), Sa = H(!0), kl = H([]), yr = dn("contentRef");
|
|
862
|
-
pn("contentRef", yr), He(() => {
|
|
863
|
-
var e;
|
|
864
|
-
return (e = ee.value) == null ? void 0 : e.length;
|
|
865
|
-
}, (e) => {
|
|
866
|
-
ce.total = e;
|
|
867
|
-
}), He(
|
|
868
|
-
() => Nl.value,
|
|
869
|
-
async () => {
|
|
870
|
-
var s, c, d, p, g, A, j, F, h, O, E, D, J, M, B, k, C, y;
|
|
871
|
-
if (((s = Nl.value) == null ? void 0 : s.length) === 0 || !((c = o == null ? void 0 : o.itemData) != null && c.find((u) => (u == null ? void 0 : u.key) === "columnPath")) || !((d = o == null ? void 0 : o.itemData) != null && d.find((u) => (u == null ? void 0 : u.key) === "pageColumn"))) return;
|
|
872
|
-
let e = (h = (F = (j = (A = (g = (p = o == null ? void 0 : o.itemData) == null ? void 0 : p.find((u) => (u == null ? void 0 : u.key) === "pageColumn")) == null ? void 0 : g.contents) == null ? void 0 : A.split("[")) == null ? void 0 : j[1]) == null ? void 0 : F.split("]")) == null ? void 0 : h[0], l = ((J = (D = (E = (O = o == null ? void 0 : o.itemData) == null ? void 0 : O.find((u) => (u == null ? void 0 : u.key) === "pageColumn")) == null ? void 0 : E.contents) == null ? void 0 : D.split("[")) == null ? void 0 : J[0]) + ((B = (M = Nl.value) == null ? void 0 : M.find((u) => (u == null ? void 0 : u.key) === e)) == null ? void 0 : B.value), n = ((C = (k = o == null ? void 0 : o.itemData) == null ? void 0 : k.find((u) => (u == null ? void 0 : u.key) === "pageGroup")) == null ? void 0 : C.contents) ?? "", a = await Ll(l, sessionStorage.getItem("systemKey"), ""), r = (y = a == null ? void 0 : a.find((u) => (u == null ? void 0 : u.name) === (n === "" ? o == null ? void 0 : o.compName : n))) == null ? void 0 : y.compData;
|
|
873
|
-
$a(r, o.allMapContents);
|
|
874
|
-
},
|
|
875
|
-
{ deep: !0 }
|
|
876
|
-
);
|
|
877
|
-
const vr = async (e, l) => {
|
|
878
|
-
var n, a, r, s, c;
|
|
879
|
-
try {
|
|
880
|
-
const d = await Al({ id: (o == null ? void 0 : o.parentTableId) || (o == null ? void 0 : o.index) });
|
|
881
|
-
let p;
|
|
882
|
-
((n = d == null ? void 0 : d.data) == null ? void 0 : n.code) === 200 && (p = ((r = (a = d == null ? void 0 : d.data) == null ? void 0 : a.result) == null ? void 0 : r[0]) || null);
|
|
883
|
-
const g = {
|
|
884
|
-
type: "data",
|
|
885
|
-
pageKey: o != null && o.parentTableId ? (s = p == null ? void 0 : p.key) == null ? void 0 : s.pageKey : Se.value,
|
|
886
|
-
tableId: (o == null ? void 0 : o.parentTableId) || (o == null ? void 0 : o.index),
|
|
887
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
888
|
-
}, A = l == null ? void 0 : l.map((h) => {
|
|
889
|
-
const O = Object.keys(h), E = {};
|
|
890
|
-
return O.forEach((D, J) => {
|
|
891
|
-
E[e[J]] = h[D];
|
|
892
|
-
}), E;
|
|
893
|
-
}), j = A == null ? void 0 : A.map((h) => ({
|
|
894
|
-
key: g,
|
|
895
|
-
value: {
|
|
896
|
-
tableData: h
|
|
897
|
-
}
|
|
898
|
-
})), F = await Ra({ dataList: j });
|
|
899
|
-
((c = F == null ? void 0 : F.data) == null ? void 0 : c.code) === 200 ? (Ee.setRefreshCurStructure(!0), Re.success("导入数据成功")) : Re.error("导入数据响应失败");
|
|
900
|
-
} catch (d) {
|
|
901
|
-
throw Re.error("导入数据处理失败"), new Error(d);
|
|
902
|
-
}
|
|
903
|
-
}, br = async (e) => {
|
|
904
|
-
var l, n, a, r, s;
|
|
905
|
-
if ((l = e == null ? void 0 : e.toString()) != null && l.includes(".txt") || (n = e == null ? void 0 : e.toString()) != null && n.includes(".cpt") || (a = e == null ? void 0 : e.toString()) != null && a.includes(".cyd")) {
|
|
906
|
-
const c = await ml.get(e, {
|
|
907
|
-
responseType: "blob",
|
|
908
|
-
// 必须设置
|
|
909
|
-
headers: {
|
|
910
|
-
"Content-Type": "application/json"
|
|
911
|
-
}
|
|
912
|
-
}), d = new Blob([c.data], {
|
|
913
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
914
|
-
});
|
|
915
|
-
let p = URL.createObjectURL(d);
|
|
916
|
-
Cl.value = [{
|
|
917
|
-
name: (s = e == null ? void 0 : e.split("/")) == null ? void 0 : s[((r = e == null ? void 0 : e.split("/")) == null ? void 0 : r.length) - 1],
|
|
918
|
-
blobUrl: p
|
|
919
|
-
}], ze.value = !0;
|
|
920
|
-
}
|
|
921
|
-
};
|
|
922
|
-
fn(() => {
|
|
923
|
-
Sa.value = !1;
|
|
924
|
-
let e = ta.value;
|
|
925
|
-
ta.value = e + 1;
|
|
926
|
-
});
|
|
927
|
-
const ka = Ma(() => {
|
|
928
|
-
var a, r;
|
|
929
|
-
const e = (ce.currentPage - 1) * ce.pageSize, l = e + ce.pageSize, n = (a = W.value) == null ? void 0 : a.find((s) => {
|
|
930
|
-
var c;
|
|
931
|
-
return (s == null ? void 0 : s.sortable) && ((c = s == null ? void 0 : s.label) == null ? void 0 : c.includes("时间"));
|
|
932
|
-
});
|
|
933
|
-
return n && ($e.order = "descending", $e.prop = n == null ? void 0 : n.prop), Z("getSliceContLength", ce), (r = ee.value) == null ? void 0 : r.slice(e, l);
|
|
934
|
-
}), Sr = (e) => {
|
|
935
|
-
ce.currentPage = e, Z("getSliceContLength", ce);
|
|
936
|
-
}, kr = (e) => {
|
|
937
|
-
var l;
|
|
938
|
-
ce.pageSize = e, e * ce.currentPage > ((l = ee.value) == null ? void 0 : l.length) && (ce.currentPage = 1, ce.pageSize = 10, Re.warning("分页无效,返回第一页")), Z("getSliceContLength", ce);
|
|
939
|
-
}, Tr = (e, l) => {
|
|
940
|
-
var c, d;
|
|
941
|
-
const n = (d = (c = W.value) == null ? void 0 : c.map((p) => p == null ? void 0 : p.prop)) == null ? void 0 : d.filter((p) => p !== "operate");
|
|
942
|
-
let a;
|
|
943
|
-
const r = (e == null ? void 0 : e.length) === (n == null ? void 0 : n.length);
|
|
944
|
-
if (e != null && e.includes("序号")) return Re.error("导入的数据不需要包含序号列");
|
|
945
|
-
if (a = r ? e : e.slice(0, n == null ? void 0 : n.length), !(a == null ? void 0 : a.every((p) => n == null ? void 0 : n.find((g) => p === g)))) return Re.error("导入的数据表头不匹配");
|
|
946
|
-
vr(a, l);
|
|
947
|
-
}, mr = (e, l) => {
|
|
948
|
-
var n;
|
|
949
|
-
Ee.setRefreshCurStructure(!1), ((n = W.value) == null ? void 0 : n.length) === 0 || Tr(e, l);
|
|
950
|
-
}, Ar = (e, l, n, a) => {
|
|
951
|
-
const r = [], s = [], c = (g) => Object.keys(g).length;
|
|
952
|
-
for (const g in e)
|
|
953
|
-
if (e[g] !== void 0) {
|
|
954
|
-
const A = e[g], j = [];
|
|
955
|
-
for (const [F, h] of Object.entries(A))
|
|
956
|
-
j.push(h), s.length < c(A) && s.push(F);
|
|
957
|
-
r.push(j);
|
|
958
|
-
}
|
|
959
|
-
r.unshift(s);
|
|
960
|
-
const d = Ql.aoa_to_sheet(r), p = Ql.book_new();
|
|
961
|
-
Ql.book_append_sheet(p, d, a), Ln(p, `${l}.xlsx`), rl.value = [];
|
|
962
|
-
}, ra = async (e, l, n, a = !1, r) => {
|
|
963
|
-
var s, c, d, p, g, A, j, F;
|
|
964
|
-
try {
|
|
965
|
-
Ee.setRefreshCurStructure(!1);
|
|
966
|
-
const h = await Al({
|
|
967
|
-
id: o == null ? void 0 : o.index
|
|
968
|
-
});
|
|
969
|
-
if (((s = h == null ? void 0 : h.data) == null ? void 0 : s.code) === 200) {
|
|
970
|
-
let O = (g = (p = (d = (c = h == null ? void 0 : h.data) == null ? void 0 : c.result) == null ? void 0 : d[0]) == null ? void 0 : p.value) == null ? void 0 : g.pageData;
|
|
971
|
-
a ? O = {
|
|
972
|
-
...O,
|
|
973
|
-
compData: (j = O == null ? void 0 : O.compData) == null ? void 0 : j.map((D) => {
|
|
974
|
-
var J;
|
|
975
|
-
return (D == null ? void 0 : D.key) === "header" ? {
|
|
976
|
-
...D,
|
|
977
|
-
contents: (J = D == null ? void 0 : D.contents) == null ? void 0 : J.map((M) => ({
|
|
978
|
-
...M,
|
|
979
|
-
[e]: n
|
|
980
|
-
}))
|
|
981
|
-
} : D;
|
|
982
|
-
})
|
|
983
|
-
} : O = {
|
|
984
|
-
...O,
|
|
985
|
-
compData: (A = O == null ? void 0 : O.compData) == null ? void 0 : A.map((D) => {
|
|
986
|
-
var J, M;
|
|
987
|
-
return (D == null ? void 0 : D.key) === "header" ? {
|
|
988
|
-
...D,
|
|
989
|
-
contents: (J = D == null ? void 0 : D.contents) == null ? void 0 : J.map((B) => (B == null ? void 0 : B.prop) === (l == null ? void 0 : l.prop) ? {
|
|
990
|
-
...B,
|
|
991
|
-
[e]: n
|
|
992
|
-
} : B)
|
|
993
|
-
} : (D == null ? void 0 : D.key) === "tableToForm" && r ? {
|
|
994
|
-
...D,
|
|
995
|
-
contents: (M = D == null ? void 0 : D.contents) == null ? void 0 : M.map((B) => (B == null ? void 0 : B.prop) === (l == null ? void 0 : l.prop) ? {
|
|
996
|
-
...B,
|
|
997
|
-
[r]: n
|
|
998
|
-
} : B)
|
|
999
|
-
} : D;
|
|
1000
|
-
})
|
|
1001
|
-
};
|
|
1002
|
-
const E = await Sn({
|
|
1003
|
-
id: o == null ? void 0 : o.index,
|
|
1004
|
-
value: {
|
|
1005
|
-
pageData: O
|
|
1006
|
-
}
|
|
1007
|
-
});
|
|
1008
|
-
((F = E == null ? void 0 : E.data) == null ? void 0 : F.code) === 200 ? (Re.success("编辑成功"), Ee.setRefreshCurStructure(!0)) : Re.error("编辑响应失败");
|
|
1009
|
-
}
|
|
1010
|
-
} catch (h) {
|
|
1011
|
-
Re.error(h);
|
|
1012
|
-
}
|
|
1013
|
-
}, xr = async (e, l) => {
|
|
1014
|
-
await ra("label", l, e);
|
|
1015
|
-
}, Cr = async (e, l) => {
|
|
1016
|
-
await ra("columnType", l, e, !1, "type");
|
|
1017
|
-
}, Ur = () => {
|
|
1018
|
-
wl.value ? al.value = !1 : wa();
|
|
1019
|
-
}, _r = (e) => {
|
|
1020
|
-
rl.value = e;
|
|
1021
|
-
}, Dr = (e, l) => {
|
|
1022
|
-
Sl.value === l ? Fl.value = !1 : Fl.value = !0, Sl.value = l == null ? void 0 : l.changeProp;
|
|
1023
|
-
}, Kl = Ma(() => {
|
|
1024
|
-
var n, a, r;
|
|
1025
|
-
const e = (n = W.value) == null ? void 0 : n.some((s) => s == null ? void 0 : s.filterable);
|
|
1026
|
-
return document.documentElement.style.setProperty("--ssTable-header-filter-display", e ? "inline-block" : "none"), (r = (a = W.value) == null ? void 0 : a.filter((s) => (s == null ? void 0 : s.label) !== "操作")) == null ? void 0 : r.map((s) => ({
|
|
1027
|
-
...s,
|
|
1028
|
-
filterable: !!(s != null && s.filterable),
|
|
1029
|
-
showSummary: !!(s != null && s.showSummary),
|
|
1030
|
-
operable: !!(s != null && s.operable)
|
|
1031
|
-
}));
|
|
1032
|
-
}), Or = async (e, l, n) => {
|
|
1033
|
-
const a = G(W.value);
|
|
1034
|
-
await oa(), W.value = a == null ? void 0 : a.map((r) => (n == null ? void 0 : n.label) === (r == null ? void 0 : r.label) ? {
|
|
1035
|
-
...r,
|
|
1036
|
-
[l]: e
|
|
1037
|
-
} : r), await ra(l, n, e);
|
|
1038
|
-
}, ca = async (e, l) => {
|
|
1039
|
-
await ra(l, null, e, !0);
|
|
1040
|
-
}, Er = () => {
|
|
1041
|
-
cl.value = !1;
|
|
1042
|
-
}, jr = (e) => {
|
|
1043
|
-
Z("clickTrigger", e);
|
|
1044
|
-
}, Ta = async (e) => {
|
|
1045
|
-
var s, c, d, p, g, A, j, F, h, O, E, D, J, M, B;
|
|
1046
|
-
const l = e == null ? void 0 : e.row, n = e == null ? void 0 : e.rowData, a = e == null ? void 0 : e.suffix;
|
|
1047
|
-
if ((s = l == null ? void 0 : l.toString()) != null && s.includes(".urdf") || e != null && e.isUrdf || a != null && a.includes(".urdf")) {
|
|
1048
|
-
if (l.includes(",")) {
|
|
1049
|
-
Re.error("当前版本仅允许单个urdf预览!");
|
|
1050
|
-
return;
|
|
1051
|
-
}
|
|
1052
|
-
if (R(l)) {
|
|
1053
|
-
const C = {
|
|
1054
|
-
files: [de(l)],
|
|
1055
|
-
data: {}
|
|
1056
|
-
};
|
|
1057
|
-
q(C);
|
|
1058
|
-
return;
|
|
1059
|
-
}
|
|
1060
|
-
Bl.value = [{
|
|
1061
|
-
url: l,
|
|
1062
|
-
extension: Ue(l)
|
|
1063
|
-
}], qe.value = !0, Ke.value = {
|
|
1064
|
-
data: G(n)
|
|
1065
|
-
}, te.value = !0;
|
|
1066
|
-
return;
|
|
1067
|
-
}
|
|
1068
|
-
let r = [];
|
|
1069
|
-
if ((c = l == null ? void 0 : l.toString()) != null && c.includes(".stl") || (d = l == null ? void 0 : l.toString()) != null && d.includes(".STL") || (p = l == null ? void 0 : l.toString()) != null && p.includes(".obj") || (g = l == null ? void 0 : l.toString()) != null && g.includes(".mtl")) {
|
|
1070
|
-
const k = (A = l == null ? void 0 : l.toString()) == null ? void 0 : A.split(","), C = xe(k), y = C == null ? void 0 : C[0];
|
|
1071
|
-
if (R(y == null ? void 0 : y.extension)) {
|
|
1072
|
-
q({
|
|
1073
|
-
files: C,
|
|
1074
|
-
data: {}
|
|
1075
|
-
});
|
|
1076
|
-
return;
|
|
1077
|
-
}
|
|
1078
|
-
Bl.value = C, qe.value = !1, te.value = !0;
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
if ((j = l == null ? void 0 : l.toString()) != null && j.includes(".stl") || (F = l == null ? void 0 : l.toString()) != null && F.includes(".STL") || (h = l == null ? void 0 : l.toString()) != null && h.includes(".obj") || (O = l == null ? void 0 : l.toString()) != null && O.includes(".mtl") || a != null && a.includes(".stl") || a != null && a.includes(".STL") || a != null && a.includes(".obj") || a != null && a.includes(".mtl")) {
|
|
1082
|
-
let k, C = [], y = {};
|
|
1083
|
-
if (Array.isArray(l) ? k = l : k = l == null ? void 0 : l.split(","), k == null || k.forEach((u) => {
|
|
1084
|
-
u.includes(".mtl") ? C.push(u) : y.blob = y.blob ? y.blob + "," + u : u;
|
|
1085
|
-
}), (C == null ? void 0 : C.length) > 0 && (y.mtlBlobs = C), a && (y.suffix = a), (D = (E = Object.values(y)) == null ? void 0 : E[0]) != null && D.includes("http:"))
|
|
1086
|
-
r.push(y);
|
|
1087
|
-
else {
|
|
1088
|
-
const u = new Blob([y.blob], {
|
|
1089
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
1090
|
-
});
|
|
1091
|
-
let f = URL.createObjectURL(u), K = "";
|
|
1092
|
-
(J = l == null ? void 0 : l.split("/")) == null || J.forEach((i, _) => {
|
|
1093
|
-
var m;
|
|
1094
|
-
_ === ((m = l == null ? void 0 : l.split("/")) == null ? void 0 : m.length) - 1 && (K = i);
|
|
1095
|
-
}), (M = y.blob) != null && M.includes(".stl") && (K = (K == null ? void 0 : K.replaceAll(">", "")) + ".urdf"), Cl.value = [{
|
|
1096
|
-
name: K,
|
|
1097
|
-
blobUrl: f
|
|
1098
|
-
}], ze.value = !0;
|
|
1099
|
-
}
|
|
1100
|
-
} else {
|
|
1101
|
-
const k = await ml.get(l, {
|
|
1102
|
-
responseType: "blob",
|
|
1103
|
-
headers: {
|
|
1104
|
-
"Content-Type": "application/json"
|
|
1105
|
-
}
|
|
1106
|
-
}), C = new Blob([k.data], {
|
|
1107
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
1108
|
-
});
|
|
1109
|
-
let y = URL.createObjectURL(C), u = "";
|
|
1110
|
-
if ((B = l == null ? void 0 : l.split("/")) == null || B.forEach((f, K) => {
|
|
1111
|
-
var i;
|
|
1112
|
-
K === ((i = l == null ? void 0 : l.split("/")) == null ? void 0 : i.length) - 1 && (u = f);
|
|
1113
|
-
}), R(u)) {
|
|
1114
|
-
const f = S(u), K = de(l);
|
|
1115
|
-
q({
|
|
1116
|
-
files: [K],
|
|
1117
|
-
data: {
|
|
1118
|
-
trackFileType: f
|
|
1119
|
-
}
|
|
1120
|
-
});
|
|
1121
|
-
return;
|
|
1122
|
-
}
|
|
1123
|
-
Cl.value = [{
|
|
1124
|
-
name: u,
|
|
1125
|
-
blobUrl: y
|
|
1126
|
-
}], ze.value = !0;
|
|
1127
|
-
}
|
|
1128
|
-
(r == null ? void 0 : r.length) > 0 && $.setBlobUrls(r);
|
|
1129
|
-
}, na = (e) => {
|
|
1130
|
-
var a, r, s, c;
|
|
1131
|
-
if (e != null && e.downloadUrl)
|
|
1132
|
-
return e == null ? void 0 : e.name;
|
|
1133
|
-
const l = (c = (a = e == null ? void 0 : e.url) == null ? void 0 : a.split(".")) == null ? void 0 : c[((s = (r = e == null ? void 0 : e.url) == null ? void 0 : r.split(".")) == null ? void 0 : s.length) - 1];
|
|
1134
|
-
return (e == null ? void 0 : e.name) + "." + l;
|
|
1135
|
-
}, Pr = async (e) => {
|
|
1136
|
-
let l = null, n = null;
|
|
1137
|
-
if (e != null && e.downloadUrl) {
|
|
1138
|
-
const r = await da(), s = Mn.service({
|
|
1139
|
-
lock: !0,
|
|
1140
|
-
text: "Loading",
|
|
1141
|
-
background: "rgba(0, 0, 0, 0.7)"
|
|
1142
|
-
}), c = await ml.post(e == null ? void 0 : e.url, null, {
|
|
1143
|
-
responseType: "blob",
|
|
1144
|
-
// 必须设置
|
|
1145
|
-
headers: {
|
|
1146
|
-
Authorization: r,
|
|
1147
|
-
baseURL: "http://139.196.154.85:20025",
|
|
1148
|
-
"Content-Type": "application/json"
|
|
1149
|
-
}
|
|
1150
|
-
}).finally(() => {
|
|
1151
|
-
s.close();
|
|
1152
|
-
}), d = new Blob([c.data], {
|
|
1153
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
1154
|
-
});
|
|
1155
|
-
l = URL.createObjectURL(d), n = e == null ? void 0 : e.name;
|
|
1156
|
-
} else {
|
|
1157
|
-
const r = await ha({
|
|
1158
|
-
url: e == null ? void 0 : e.url
|
|
1159
|
-
});
|
|
1160
|
-
!e.url.toUpperCase().includes(".OBJ") && !e.url.toUpperCase().includes(".STL") && !e.url.toUpperCase().includes(".MTL") && !e.url.toUpperCase().includes(".URDF") ? (l = URL.createObjectURL(r.data), n = na(e)) : l = e == null ? void 0 : e.url;
|
|
1161
|
-
}
|
|
1162
|
-
if (R(l)) {
|
|
1163
|
-
const r = {
|
|
1164
|
-
row: `${l}`,
|
|
1165
|
-
suffix: Ue(n)
|
|
1166
|
-
};
|
|
1167
|
-
Ta(r);
|
|
1168
|
-
return;
|
|
1169
|
-
}
|
|
1170
|
-
const a = {
|
|
1171
|
-
name: n,
|
|
1172
|
-
blobUrl: l
|
|
1173
|
-
};
|
|
1174
|
-
Cl.value = [a], ze.value = !0;
|
|
1175
|
-
}, Lr = async (e) => {
|
|
1176
|
-
let l = null, n = null;
|
|
1177
|
-
if (e != null && e.downloadUrl) {
|
|
1178
|
-
const s = await da(), c = await ml.post(e == null ? void 0 : e.url, null, {
|
|
1179
|
-
responseType: "blob",
|
|
1180
|
-
// 必须设置
|
|
1181
|
-
headers: {
|
|
1182
|
-
Authorization: s,
|
|
1183
|
-
baseURL: "http://139.196.154.85:20025",
|
|
1184
|
-
"Content-Type": "application/json"
|
|
1185
|
-
}
|
|
1186
|
-
}), d = new Blob([c.data], {
|
|
1187
|
-
type: "application/octet-stream;charset=UTF-8"
|
|
1188
|
-
});
|
|
1189
|
-
l = URL.createObjectURL(d), n = e == null ? void 0 : e.name;
|
|
1190
|
-
} else {
|
|
1191
|
-
const s = await ha({
|
|
1192
|
-
url: e == null ? void 0 : e.url
|
|
1193
|
-
});
|
|
1194
|
-
l = URL.createObjectURL(s.data), n = na(e);
|
|
1195
|
-
}
|
|
1196
|
-
const a = {
|
|
1197
|
-
name: n,
|
|
1198
|
-
blobUrl: l
|
|
1199
|
-
}, r = document.createElement("a");
|
|
1200
|
-
r.href = a.blobUrl, r.download = a.name, r.style.display = "none", document.body.appendChild(r), r.click(), setTimeout(() => {
|
|
1201
|
-
document.body.removeChild(r);
|
|
1202
|
-
}, 100);
|
|
1203
|
-
}, $r = (e, l) => {
|
|
1204
|
-
var n;
|
|
1205
|
-
if (Object.values(l).length !== 0)
|
|
1206
|
-
return Object.values(l).find((a) => {
|
|
1207
|
-
var r, s, c;
|
|
1208
|
-
return ((r = a == null ? void 0 : a.toString()) == null ? void 0 : r.includes(".txt")) || ((s = a == null ? void 0 : a.toString()) == null ? void 0 : s.includes(".cpt")) || ((c = a == null ? void 0 : a.toString()) == null ? void 0 : c.includes(".obj"));
|
|
1209
|
-
}) ? [...e, cr.value] : (n = o == null ? void 0 : o.config) != null && n.allowMove ? [...e, { label: "迁移" }] : e;
|
|
1210
|
-
}, wr = (e, l = {}) => [...e == null ? void 0 : e.values()].filter((n) => Object.keys(l).every((a) => {
|
|
1211
|
-
var c;
|
|
1212
|
-
const r = n[a], s = (c = l[a]) == null ? void 0 : c.toLowerCase();
|
|
1213
|
-
return s && r && typeof r == "string" ? r.toLowerCase().includes(s) : !0;
|
|
1214
|
-
})), ma = H([]), Nr = async (e, l, n = !1) => {
|
|
1215
|
-
var a;
|
|
1216
|
-
if (e) {
|
|
1217
|
-
if (Ee.setTableLoading(!0), ma.value = Object.values(e), e && ((a = Object.values(e)) != null && a.every((r) => !r)))
|
|
1218
|
-
return ee.value = Yl.value;
|
|
1219
|
-
if (n) {
|
|
1220
|
-
ee.value = [...Zl.value.values()].filter((r) => Object.values(r).some((s) => typeof s == "string" ? s == null ? void 0 : s.toLowerCase().includes(l == null ? void 0 : l.toLowerCase()) : !1));
|
|
1221
|
-
return;
|
|
1222
|
-
}
|
|
1223
|
-
ee.value = wr(Zl.value, e), Ee.setTableLoading(!1);
|
|
1224
|
-
}
|
|
1225
|
-
}, Br = async (e) => {
|
|
1226
|
-
}, Aa = async (e, l, n, a) => {
|
|
1227
|
-
var r, s, c, d, p, g, A, j, F, h, O, E, D, J, M, B, k, C, y, u;
|
|
1228
|
-
if (Z("clickMainKey", n), (a == null ? void 0 : a.isExistChild) === !0) {
|
|
1229
|
-
let f = (r = a == null ? void 0 : a.columnType) == null ? void 0 : r.prop, K = a == null ? void 0 : a.data;
|
|
1230
|
-
if (kl.value = await Ll(Se.value, sessionStorage.getItem("systemKey"), ""), !kl.value) {
|
|
1231
|
-
let _ = (d = (c = (s = Se.value) == null ? void 0 : s.split("/")) == null ? void 0 : c.filter((m, z) => {
|
|
1232
|
-
var le, x;
|
|
1233
|
-
return z !== ((x = (le = Se.value) == null ? void 0 : le.split("/")) == null ? void 0 : x.length) - 1;
|
|
1234
|
-
})) == null ? void 0 : d.join("/");
|
|
1235
|
-
kl.value = await Ll(_, sessionStorage.getItem("systemKey"), "");
|
|
1236
|
-
}
|
|
1237
|
-
let i = (p = kl.value) == null ? void 0 : p.filter((_) => (_ == null ? void 0 : _.name) === f);
|
|
1238
|
-
kl.value = i == null ? void 0 : i.map((_) => {
|
|
1239
|
-
var m;
|
|
1240
|
-
return _.compData = (m = _.compData) == null ? void 0 : m.map((z) => {
|
|
1241
|
-
var le, x;
|
|
1242
|
-
return (z == null ? void 0 : z.key) === "tableContents" && (le = z == null ? void 0 : z.contents) != null && le.every((v) => v == null ? void 0 : v.find((N) => N == null ? void 0 : N.id)) && (z.contents = (x = z == null ? void 0 : z.contents) == null ? void 0 : x.filter((v) => (v == null ? void 0 : v[1]) === K)), z;
|
|
1243
|
-
}), _;
|
|
1244
|
-
}), Z("routeUrl", kl.value, {
|
|
1245
|
-
isEdit: !0,
|
|
1246
|
-
routerUrl: Se.value
|
|
1247
|
-
});
|
|
1248
|
-
return;
|
|
1249
|
-
}
|
|
1250
|
-
if ((a == null ? void 0 : a.data) === "查看" && (e != null && e.every((f) => (f == null ? void 0 : f.url) && (f == null ? void 0 : f.name)))) {
|
|
1251
|
-
let f = G(e);
|
|
1252
|
-
f = await ((g = G(f)) == null ? void 0 : g.map(async (i) => {
|
|
1253
|
-
var z, le, x, v;
|
|
1254
|
-
const _ = await ha({
|
|
1255
|
-
url: i == null ? void 0 : i.url
|
|
1256
|
-
});
|
|
1257
|
-
let m = URL.createObjectURL(_.data);
|
|
1258
|
-
return {
|
|
1259
|
-
name: (i == null ? void 0 : i.name) + "." + ((v = (z = i == null ? void 0 : i.url) == null ? void 0 : z.split(".")) == null ? void 0 : v[((x = (le = i == null ? void 0 : i.url) == null ? void 0 : le.split(".")) == null ? void 0 : x.length) - 1]),
|
|
1260
|
-
blobUrl: m
|
|
1261
|
-
};
|
|
1262
|
-
}));
|
|
1263
|
-
let K = await Promise.all(f);
|
|
1264
|
-
Cl.value = K, ze.value = !0;
|
|
1265
|
-
}
|
|
1266
|
-
if (G(W.value), (a == null ? void 0 : a.isMainKey) === !0) {
|
|
1267
|
-
Ne.setActiveMenuPath(void 0), Ee.setRouteToChildPath(void 0), Ee.setFixMenuStatus(!0);
|
|
1268
|
-
let f = (j = (A = o.itemData) == null ? void 0 : A.find((i) => (i == null ? void 0 : i.key) === "contentTableId")) == null ? void 0 : j.contents, K = (h = (F = o.itemData) == null ? void 0 : F.find((i) => (i == null ? void 0 : i.key) === "relatedFilter")) == null ? void 0 : h.index;
|
|
1269
|
-
if (K !== 0) {
|
|
1270
|
-
let i = (E = (O = W.value) == null ? void 0 : O[K]) == null ? void 0 : E.prop;
|
|
1271
|
-
if ((n == null ? void 0 : n[i]) === (a == null ? void 0 : a.data)) {
|
|
1272
|
-
let _ = await Al({
|
|
1273
|
-
id: f
|
|
1274
|
-
}), m = (B = (M = (J = (D = _ == null ? void 0 : _.data) == null ? void 0 : D.result) == null ? void 0 : J[0]) == null ? void 0 : M.key) == null ? void 0 : B.pageKey;
|
|
1275
|
-
Ne.setActiveMenuPath(m + "/" + (a == null ? void 0 : a.data));
|
|
1276
|
-
} else {
|
|
1277
|
-
let _ = await Al({
|
|
1278
|
-
key: {
|
|
1279
|
-
pageKey: G(Se).value + "/" + (a == null ? void 0 : a.data),
|
|
1280
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
1281
|
-
}
|
|
1282
|
-
});
|
|
1283
|
-
((C = (k = _ == null ? void 0 : _.data) == null ? void 0 : k.result) == null ? void 0 : C.length) > 0 && Ne.setActiveMenuPath(G(Se).value + "/" + (a == null ? void 0 : a.data));
|
|
1284
|
-
}
|
|
1285
|
-
} else {
|
|
1286
|
-
let i = await Al({
|
|
1287
|
-
key: {
|
|
1288
|
-
pageKey: G(Se).value + "/" + (a == null ? void 0 : a.data),
|
|
1289
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
1290
|
-
}
|
|
1291
|
-
});
|
|
1292
|
-
((u = (y = i == null ? void 0 : i.data) == null ? void 0 : y.result) == null ? void 0 : u.length) > 0 && Ne.setActiveMenuPath(G(Se).value + "/" + (a == null ? void 0 : a.data));
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
}, Mr = () => {
|
|
1296
|
-
ze.value = !1;
|
|
1297
|
-
}, Fr = (e) => {
|
|
1298
|
-
Z("rowClick", e);
|
|
1299
|
-
};
|
|
1300
|
-
He(
|
|
1301
|
-
() => o.changedContent,
|
|
1302
|
-
() => {
|
|
1303
|
-
var n, a;
|
|
1304
|
-
if (!o.changedContent) return;
|
|
1305
|
-
let e = (n = ee.value) == null ? void 0 : n.map((r) => {
|
|
1306
|
-
var s;
|
|
1307
|
-
return r.id === ((s = o.changedContent) == null ? void 0 : s.id) && (r = {
|
|
1308
|
-
...o.changedContent,
|
|
1309
|
-
id: o.changedContent.newId ? o.changedContent.newId : o.changedContent.id
|
|
1310
|
-
}, delete r.newId), r;
|
|
1311
|
-
});
|
|
1312
|
-
const l = (a = o.itemData) == null ? void 0 : a.map((r) => ((r == null ? void 0 : r.key) === "tableContents" && (r.contents = e), r));
|
|
1313
|
-
ee.value = e, Z("contentChange", {
|
|
1314
|
-
contents: l,
|
|
1315
|
-
index: o.index
|
|
1316
|
-
}), Z("change", {
|
|
1317
|
-
content: e,
|
|
1318
|
-
index: o == null ? void 0 : o.index,
|
|
1319
|
-
buttonName: "",
|
|
1320
|
-
id: o == null ? void 0 : o.index
|
|
1321
|
-
});
|
|
1322
|
-
},
|
|
1323
|
-
{ deep: !0, immediate: !0 }
|
|
1324
|
-
);
|
|
1325
|
-
const Kr = () => {
|
|
1326
|
-
}, zr = async () => {
|
|
1327
|
-
const e = Se.value, l = sessionStorage.getItem("systemKey"), n = await Ll(e, l, ""), a = (n == null ? void 0 : n.find((d) => (d == null ? void 0 : d.name) === "方法明细")) || (n == null ? void 0 : n[0]), r = (a == null ? void 0 : a.compData) || [], s = r == null ? void 0 : r.find((d) => {
|
|
1328
|
-
const p = d == null ? void 0 : d.key;
|
|
1329
|
-
return p === "formContent" || p === "tableContents";
|
|
1330
|
-
});
|
|
1331
|
-
return s == null ? void 0 : s.contents;
|
|
1332
|
-
}, da = async () => `Bearer ${kn.get("access-token")}`, Jr = async (e, { token: l, inputData: n } = {}) => await ml.post(e, n, {
|
|
1333
|
-
headers: {
|
|
1334
|
-
Authorization: l
|
|
1335
|
-
}
|
|
1336
|
-
}).catch((r) => (Ne.setImportLoading(!1), Promise.reject(r))), Wr = (e) => {
|
|
1337
|
-
var a;
|
|
1338
|
-
let l = {};
|
|
1339
|
-
const n = [];
|
|
1340
|
-
return l.form = {}, (a = G(e)) == null || a.forEach((r, s) => {
|
|
1341
|
-
var c, d, p, g, A, j, F, h, O, E, D, J, M, B;
|
|
1342
|
-
if ((r == null ? void 0 : r.comp) === "Table") {
|
|
1343
|
-
(d = (c = r == null ? void 0 : r.compData) == null ? void 0 : c.find((u) => (u == null ? void 0 : u.key) === "header")) == null || d.contents;
|
|
1344
|
-
let k = (A = (g = (p = r == null ? void 0 : r.compData) == null ? void 0 : p.find((u) => (u == null ? void 0 : u.key) === "tableContents")) == null ? void 0 : g.contents) == null ? void 0 : A.map((u) => u.slice(1));
|
|
1345
|
-
(E = (O = (h = (F = (j = r == null ? void 0 : r.compData) == null ? void 0 : j.find((u) => (u == null ? void 0 : u.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : h[0]) == null ? void 0 : O[0]) == null || E.label;
|
|
1346
|
-
let C = (J = (D = r == null ? void 0 : r.compData) == null ? void 0 : D.find((u) => (u == null ? void 0 : u.key) === "header")) == null ? void 0 : J.contents, y = [];
|
|
1347
|
-
k == null || k.forEach((u) => {
|
|
1348
|
-
let f = [];
|
|
1349
|
-
u == null || u.forEach((K, i) => {
|
|
1350
|
-
var m;
|
|
1351
|
-
let _ = {};
|
|
1352
|
-
((m = C[i]) == null ? void 0 : m.label) !== "操作" && (_[C[i].label] = K, f.push(_));
|
|
1353
|
-
}), y.push(f);
|
|
1354
|
-
}), l[r.name] = y;
|
|
1355
|
-
} else {
|
|
1356
|
-
const k = (B = (M = r.compData) == null ? void 0 : M.find((C) => (C == null ? void 0 : C.key) === "formContent")) == null ? void 0 : B.contents;
|
|
1357
|
-
k == null || k.forEach((C) => {
|
|
1358
|
-
var y, u;
|
|
1359
|
-
if (C.prop !== "") {
|
|
1360
|
-
let f = C == null ? void 0 : C.value;
|
|
1361
|
-
Array.isArray(f) ? f = ((y = f == null ? void 0 : f[0]) == null ? void 0 : y.oldUrl) || "http://222.92.178.198:62001/" + ((u = f == null ? void 0 : f[0]) == null ? void 0 : u.url) : f = f.toString(), C = {
|
|
1362
|
-
key: (C == null ? void 0 : C.prop) ?? (C == null ? void 0 : C.label),
|
|
1363
|
-
value: f
|
|
1364
|
-
}, n.push(C);
|
|
1365
|
-
}
|
|
1366
|
-
});
|
|
1367
|
-
}
|
|
1368
|
-
}), l.form = wn(n), l;
|
|
1369
|
-
}, Rr = (e) => {
|
|
1370
|
-
const l = [], n = (a) => {
|
|
1371
|
-
a && typeof a == "object" && !Array.isArray(a) ? Object.values(a).forEach(n) : l.push(a);
|
|
1372
|
-
};
|
|
1373
|
-
return n(e), l;
|
|
1374
|
-
}, qr = async (e, l, n) => {
|
|
1375
|
-
var C, y, u, f, K, i, _, m, z, le, x;
|
|
1376
|
-
Ne.setImportLoading(!0), Ee.setFreshContent(!1);
|
|
1377
|
-
let a = await zr().catch((v) => (Ne.setImportLoading(!1), Promise.reject(v)));
|
|
1378
|
-
a = a == null ? void 0 : a.filter((v) => {
|
|
1379
|
-
var N;
|
|
1380
|
-
return ((N = v == null ? void 0 : v.find((X) => X == null ? void 0 : X.id)) == null ? void 0 : N.id) === (l == null ? void 0 : l.id);
|
|
1381
|
-
});
|
|
1382
|
-
let r = Xa([(C = W.value) == null ? void 0 : C.filter((v) => (v == null ? void 0 : v.label) !== "操作")]);
|
|
1383
|
-
const s = (u = (y = En(a, r)) == null ? void 0 : y[0]) == null ? void 0 : u.find((v) => {
|
|
1384
|
-
const N = v == null ? void 0 : v.key;
|
|
1385
|
-
return N === "Interface" || N === "方法体";
|
|
1386
|
-
}), c = s == null ? void 0 : s.value;
|
|
1387
|
-
if (!c) {
|
|
1388
|
-
console.log("未搜索到isMain, 缺少算法执行接口"), Ne.setImportLoading(!1);
|
|
1389
|
-
return;
|
|
1390
|
-
}
|
|
1391
|
-
const d = W.value ? Xa([W.value]) : [], p = d.find((v) => {
|
|
1392
|
-
const N = v == null ? void 0 : v.prop;
|
|
1393
|
-
return N === "Input1" || N === "输入数据.输入1" || N === "样本输入数据";
|
|
1394
|
-
}), g = p == null ? void 0 : p.prop;
|
|
1395
|
-
let A = l == null ? void 0 : l[g];
|
|
1396
|
-
const j = await da().catch((v) => (Ne.setImportLoading(!1), Promise.reject(v)));
|
|
1397
|
-
let F = !0, h = "";
|
|
1398
|
-
(f = W.value) == null || f.forEach((v) => {
|
|
1399
|
-
(v == null ? void 0 : v.prop) === g && (F = !!(v != null && v.childPath), h = v == null ? void 0 : v.childPath);
|
|
1400
|
-
});
|
|
1401
|
-
let O = "";
|
|
1402
|
-
if (F) {
|
|
1403
|
-
let v = (i = (K = W.value) == null ? void 0 : K.find((b) => (b == null ? void 0 : b.isMainKey) === !0)) == null ? void 0 : i.prop;
|
|
1404
|
-
O = l == null ? void 0 : l[v];
|
|
1405
|
-
let N = h == null ? void 0 : h.split(Le), X = [];
|
|
1406
|
-
N == null || N.forEach((b, U) => {
|
|
1407
|
-
(N == null ? void 0 : N.length) - 1 === U && X.push(O), X.push(b);
|
|
1408
|
-
}), X = X == null ? void 0 : X[0];
|
|
1409
|
-
let se = await Ll(X, sessionStorage.getItem("systemKey"), ""), Q = se == null ? void 0 : se.filter((b) => (b == null ? void 0 : b.name) === g);
|
|
1410
|
-
Q = Q == null ? void 0 : Q.map((b) => {
|
|
1411
|
-
var U;
|
|
1412
|
-
return b.compData = (U = b == null ? void 0 : b.compData) == null ? void 0 : U.map((P) => {
|
|
1413
|
-
var re;
|
|
1414
|
-
return (P == null ? void 0 : P.key) === "tableContents" && (P.contents = (re = P == null ? void 0 : P.contents) == null ? void 0 : re.filter((I) => (I == null ? void 0 : I[1]) === (l == null ? void 0 : l[g]))), P;
|
|
1415
|
-
}), b;
|
|
1416
|
-
}), (!Q || (Q == null ? void 0 : Q.length) === 0) && (Q = se, Q = Q == null ? void 0 : Q.map((b) => {
|
|
1417
|
-
var U;
|
|
1418
|
-
return b.compData = (U = b == null ? void 0 : b.compData) == null ? void 0 : U.map((P) => {
|
|
1419
|
-
var re;
|
|
1420
|
-
return (P == null ? void 0 : P.key) === "tableContents" && (P.contents = (re = P == null ? void 0 : P.contents) == null ? void 0 : re.filter((I) => {
|
|
1421
|
-
var ie, T;
|
|
1422
|
-
return (I == null ? void 0 : I[1]) === (l == null ? void 0 : l[(T = (ie = W == null ? void 0 : W.value) == null ? void 0 : ie[0]) == null ? void 0 : T.prop]);
|
|
1423
|
-
})), P;
|
|
1424
|
-
}), b;
|
|
1425
|
-
})), A = Wr(Q);
|
|
1426
|
-
}
|
|
1427
|
-
const E = await Jr(c, {
|
|
1428
|
-
token: j,
|
|
1429
|
-
inputData: A
|
|
1430
|
-
}).catch((v) => (Ne.setImportLoading(!1), Promise.reject(v))), D = (_ = E == null ? void 0 : E.data) == null ? void 0 : _.data, J = d.find((v) => (v == null ? void 0 : v.prop) === "Output1"), M = J == null ? void 0 : J.prop;
|
|
1431
|
-
let B = [], k = [];
|
|
1432
|
-
if (D && ((m = Object.values(D)) == null ? void 0 : m.length) > 0) {
|
|
1433
|
-
let v = [];
|
|
1434
|
-
const N = new FormData(), X = (z = Rr(D)) == null ? void 0 : z.map(async (Q) => {
|
|
1435
|
-
var b, U;
|
|
1436
|
-
if (!Array.isArray(Q) && (Q != null && Q.includes("http"))) {
|
|
1437
|
-
let P = await ml.get(Q, { responseType: "blob" }), re = (U = Q == null ? void 0 : Q.split("/")) == null ? void 0 : U[((b = Q == null ? void 0 : Q.split("/")) == null ? void 0 : b.length) - 1];
|
|
1438
|
-
N.append("files", P.data, re);
|
|
1439
|
-
} else
|
|
1440
|
-
v.push(Q);
|
|
1441
|
-
});
|
|
1442
|
-
if (await Promise.all(X), !jn(N)) {
|
|
1443
|
-
let Q = await Pn(N), b = (x = (le = Q == null ? void 0 : Q.data) == null ? void 0 : le.result) == null ? void 0 : x.map((U) => {
|
|
1444
|
-
var P, re, I, ie, T, t;
|
|
1445
|
-
return {
|
|
1446
|
-
name: (t = (T = (ie = (P = U == null ? void 0 : U.url) == null ? void 0 : P.split("/")) == null ? void 0 : ie[((I = (re = U == null ? void 0 : U.url) == null ? void 0 : re.split("/")) == null ? void 0 : I.length) - 1]) == null ? void 0 : T.split(".")) == null ? void 0 : t[0],
|
|
1447
|
-
url: U == null ? void 0 : U.url
|
|
1448
|
-
};
|
|
1449
|
-
});
|
|
1450
|
-
v = [...v, ...b];
|
|
1451
|
-
}
|
|
1452
|
-
let se = {};
|
|
1453
|
-
for (let Q in l)
|
|
1454
|
-
Q !== "id" && (se[Q] = l[Q]);
|
|
1455
|
-
se[M] = v, k.push({
|
|
1456
|
-
id: l == null ? void 0 : l.id,
|
|
1457
|
-
value: {
|
|
1458
|
-
tableData: se
|
|
1459
|
-
}
|
|
1460
|
-
});
|
|
1461
|
-
}
|
|
1462
|
-
(k == null ? void 0 : k.length) > 0 && await bn({
|
|
1463
|
-
dataList: k
|
|
1464
|
-
}), (B == null ? void 0 : B.length) > 0 && await Ra({
|
|
1465
|
-
dataList: B
|
|
1466
|
-
}), Wl(!0), Ne.setImportLoading(!1), Ee.setFreshContent(!0);
|
|
1467
|
-
}, xa = (e, l) => (e = e == null ? void 0 : e.map((n) => {
|
|
1468
|
-
var a, r;
|
|
1469
|
-
return n != null && n.children && ((a = n.children) != null && a.find((s) => s.id === (l == null ? void 0 : l.id)) ? n.children = (r = n.children) == null ? void 0 : r.filter((s) => (s == null ? void 0 : s.id) !== (l == null ? void 0 : l.id)) : n.children = xa(n.children, l)), n;
|
|
1470
|
-
}), e), je = ql({
|
|
1471
|
-
title: "迁移至",
|
|
1472
|
-
show: !1,
|
|
1473
|
-
width: "20%",
|
|
1474
|
-
selectRow: null,
|
|
1475
|
-
from: o == null ? void 0 : o.index,
|
|
1476
|
-
to: null,
|
|
1477
|
-
contents: [],
|
|
1478
|
-
formRules: {
|
|
1479
|
-
groupName: [
|
|
1480
|
-
{ required: !0, message: "输入不能为空", trigger: "blur" },
|
|
1481
|
-
{
|
|
1482
|
-
validator: (e, l, n) => {
|
|
1483
|
-
l === (o == null ? void 0 : o.index) ? n(new Error("选择源不能和目标源一致")) : n();
|
|
1484
|
-
}
|
|
1485
|
-
}
|
|
1486
|
-
]
|
|
1487
|
-
},
|
|
1488
|
-
buttonValue: [{ label: "取消", background: "#999999", color: "var(--ssbutton-theme-color)" }, {
|
|
1489
|
-
label: "确认",
|
|
1490
|
-
background: "var(--ssbutton-theme-bg)",
|
|
1491
|
-
color: "var(--ssbutton-theme-color)"
|
|
1492
|
-
}]
|
|
1493
|
-
}), Gr = () => {
|
|
1494
|
-
je.show = !1;
|
|
1495
|
-
}, Hr = (e) => {
|
|
1496
|
-
var l, n;
|
|
1497
|
-
if ((e == null ? void 0 : e.buttonName) === "取消") return je.show = !1;
|
|
1498
|
-
je.to = e == null ? void 0 : e.content, !(!(o != null && o.index) || !((l = je.to) != null && l.groupName)) && (o == null ? void 0 : o.index) !== ((n = je.to) == null ? void 0 : n.groupName) && (Z("change", {
|
|
1499
|
-
buttonName: "迁移",
|
|
1500
|
-
value: {
|
|
1501
|
-
from: je.from,
|
|
1502
|
-
to: je.to,
|
|
1503
|
-
data: je.selectRow
|
|
1504
|
-
}
|
|
1505
|
-
}), je.show = !1);
|
|
1506
|
-
}, ua = async (e, l, n) => {
|
|
1507
|
-
var a, r, s, c, d, p, g, A, j, F, h, O, E, D, J;
|
|
1508
|
-
if (tl.value = "", ea.value = !0, Il.value = !0, Z("onButtonClick", e, l), e === "删除")
|
|
1509
|
-
Za.confirm("是否确认删除", "温馨提示", {
|
|
1510
|
-
confirmButtonText: "确认",
|
|
1511
|
-
cancelButtonText: "取消",
|
|
1512
|
-
type: "warning"
|
|
1513
|
-
}).then(() => {
|
|
1514
|
-
var M, B;
|
|
1515
|
-
(M = ee.value) != null && M.find((k) => (k == null ? void 0 : k.id) === (l == null ? void 0 : l.id)) ? ee.value = (B = G(ee.value)) == null ? void 0 : B.filter((k) => (k == null ? void 0 : k.id) !== (l == null ? void 0 : l.id)) : ee.value = xa(G(ee.value), l), hu(la.value, Ml.value, l == null ? void 0 : l.id), Ee.setTableLoading(o == null ? void 0 : o.index), Z("change", {
|
|
1516
|
-
content: ee.value,
|
|
1517
|
-
singleContent: l,
|
|
1518
|
-
index: o == null ? void 0 : o.index,
|
|
1519
|
-
type: "delete",
|
|
1520
|
-
buttonName: e,
|
|
1521
|
-
column: W.value
|
|
1522
|
-
});
|
|
1523
|
-
});
|
|
1524
|
-
else if (e === "批量删除") {
|
|
1525
|
-
if (((a = rl.value) == null ? void 0 : a.length) === 0)
|
|
1526
|
-
return Re.warning("请先勾选操作的数据");
|
|
1527
|
-
Za.confirm("是否确认删除", "温馨提示", {
|
|
1528
|
-
confirmButtonText: "确认",
|
|
1529
|
-
cancelButtonText: "取消",
|
|
1530
|
-
type: "warning"
|
|
1531
|
-
}).then(
|
|
1532
|
-
() => {
|
|
1533
|
-
var B, k;
|
|
1534
|
-
const M = (B = rl.value) == null ? void 0 : B.map((C) => C.id);
|
|
1535
|
-
ee.value = (k = G(ee.value)) == null ? void 0 : k.filter((C) => !(M != null && M.includes(C.id))), Ee.setTableLoading(o == null ? void 0 : o.index), Z("change", {
|
|
1536
|
-
content: ee.value,
|
|
1537
|
-
singleContent: null,
|
|
1538
|
-
selectItems: rl.value,
|
|
1539
|
-
index: o == null ? void 0 : o.index,
|
|
1540
|
-
type: "batchDelete",
|
|
1541
|
-
buttonName: e,
|
|
1542
|
-
column: W.value
|
|
1543
|
-
});
|
|
1544
|
-
}
|
|
1545
|
-
);
|
|
1546
|
-
} else if (e === "复制新增") {
|
|
1547
|
-
el.value = "新增";
|
|
1548
|
-
const M = G(l), B = (r = W.value) == null ? void 0 : r.find((y) => y == null ? void 0 : y.isMainKey), k = B || ((s = W.value) == null ? void 0 : s[0]), C = (c = vl.value) == null ? void 0 : c.find((y) => (y == null ? void 0 : y.label) === "新建");
|
|
1549
|
-
await Ua(!0, C, { data: M, firstCol: k });
|
|
1550
|
-
} else if (e === "新增")
|
|
1551
|
-
el.value = "新增", Jl(""), cl.value = !0;
|
|
1552
|
-
else if (e === "编辑")
|
|
1553
|
-
el.value = "编辑", Jl(l), cl.value = !0;
|
|
1554
|
-
else if (e === "查看")
|
|
1555
|
-
el.value = "查看", Jl(l), ea.value = !1, Il.value = !1, cl.value = !0;
|
|
1556
|
-
else if (e === "查看三维模型") {
|
|
1557
|
-
const M = {};
|
|
1558
|
-
for (let k in l)
|
|
1559
|
-
k !== "id" && (M[k] = l[k]);
|
|
1560
|
-
let B = (d = Object.values(M)) == null ? void 0 : d[1];
|
|
1561
|
-
tr.setTableShowThree(B);
|
|
1562
|
-
} else if (((p = n == null ? void 0 : n.extra) == null ? void 0 : p.type) === "modelExample")
|
|
1563
|
-
el.value = e, Vl.value = !0;
|
|
1564
|
-
else if (e === "新建") {
|
|
1565
|
-
let M = Ul.value, B = [];
|
|
1566
|
-
for (let f in M)
|
|
1567
|
-
f != null && f.includes(`loading${((g = Ol.value) == null ? void 0 : g.account) || ((A = Ol.value) == null ? void 0 : A.账号)}`) && (B = [...B, ...f]);
|
|
1568
|
-
let k = [];
|
|
1569
|
-
for (let f in M)
|
|
1570
|
-
f != null && f.includes(`updateLoading${((j = Ol.value) == null ? void 0 : j.account) || ((F = Ol.value) == null ? void 0 : F.账号)}`) && (k = [...k, ...f]);
|
|
1571
|
-
let C = B == null ? void 0 : B.map((f) => f == null ? void 0 : f.id);
|
|
1572
|
-
const y = k == null ? void 0 : k.map((f) => f == null ? void 0 : f.id);
|
|
1573
|
-
C = [...G(C), ...y], (C == null ? void 0 : C.length) > 0 && (C != null && C.every((f) => f !== null && f)) && await vn({
|
|
1574
|
-
ids: C
|
|
1575
|
-
});
|
|
1576
|
-
const u = (h = vl.value) == null ? void 0 : h.find((f) => (f == null ? void 0 : f.label) === "新建");
|
|
1577
|
-
await Ua(!1, u);
|
|
1578
|
-
} else if (e === "修改模板") {
|
|
1579
|
-
let M = G(Se).value;
|
|
1580
|
-
Ee.setRouteToChildPath(M), Ne.setActiveMenuPath(M + Le);
|
|
1581
|
-
} else if (e === "执行")
|
|
1582
|
-
qr(e, l);
|
|
1583
|
-
else if (e != null && e.includes("导出")) {
|
|
1584
|
-
if (e === "导出选中" && ((O = rl.value) == null ? void 0 : O.length) === 0)
|
|
1585
|
-
return Re.warning(`请先勾选${e}的数据`);
|
|
1586
|
-
if (e === "导出全部" && ((E = ee.value) == null ? void 0 : E.length) === 0)
|
|
1587
|
-
return Re.warning("暂无数据导出");
|
|
1588
|
-
const M = (J = (D = W.value) == null ? void 0 : D.map((k) => k == null ? void 0 : k.label)) == null ? void 0 : J.filter((k) => k !== "操作"), B = e === "导出全部" ? G(ee.value) : G(rl.value);
|
|
1589
|
-
B == null || B.forEach((k) => {
|
|
1590
|
-
k == null || delete k.id;
|
|
1591
|
-
}), Ar(B, o == null ? void 0 : o.compName, M, o == null ? void 0 : o.compName);
|
|
1592
|
-
} else e === "迁移" && (je.selectRow = l, je.show = !0);
|
|
1593
|
-
}, Qr = async (e) => {
|
|
1594
|
-
var n, a, r, s, c, d;
|
|
1595
|
-
const l = await Al({
|
|
1596
|
-
key: {
|
|
1597
|
-
pageKey: e,
|
|
1598
|
-
type: "structure",
|
|
1599
|
-
systemKey: sessionStorage.getItem("systemKey")
|
|
1600
|
-
}
|
|
1601
|
-
});
|
|
1602
|
-
if (((n = l == null ? void 0 : l.data) == null ? void 0 : n.code) === 200)
|
|
1603
|
-
return Array.isArray((a = l == null ? void 0 : l.data) == null ? void 0 : a.result) && ((s = (r = l == null ? void 0 : l.data) == null ? void 0 : r.result) == null ? void 0 : s.length) > 0 ? (d = (c = l == null ? void 0 : l.data) == null ? void 0 : c.result) == null ? void 0 : d.map((p) => {
|
|
1604
|
-
var g;
|
|
1605
|
-
return {
|
|
1606
|
-
id: p == null ? void 0 : p.id,
|
|
1607
|
-
...(g = p == null ? void 0 : p.value) == null ? void 0 : g.pageData
|
|
1608
|
-
};
|
|
1609
|
-
}) : [];
|
|
1610
|
-
}, Xr = async (e, l) => {
|
|
1611
|
-
var n, a, r, s, c, d, p, g, A, j, F, h, O, E, D, J, M, B, k, C;
|
|
1612
|
-
try {
|
|
1613
|
-
let y, u;
|
|
1614
|
-
const f = (n = Ul.value[Se.value + Le]) == null ? void 0 : n.filter((v) => {
|
|
1615
|
-
var N;
|
|
1616
|
-
return ((N = v == null ? void 0 : v.key) == null ? void 0 : N.type) === "structureMethod";
|
|
1617
|
-
}), K = (a = Ul.value[Se.value + Le]) == null ? void 0 : a.filter((v) => {
|
|
1618
|
-
var N;
|
|
1619
|
-
return ((N = v == null ? void 0 : v.key) == null ? void 0 : N.type) === "structure";
|
|
1620
|
-
}), i = f == null ? void 0 : f.find((v) => {
|
|
1621
|
-
var N, X;
|
|
1622
|
-
return ((X = (N = v == null ? void 0 : v.value) == null ? void 0 : N.pageData) == null ? void 0 : X.method) === "保存";
|
|
1623
|
-
});
|
|
1624
|
-
if (!i) return;
|
|
1625
|
-
const _ = (d = (c = Ul.value[(s = (r = i == null ? void 0 : i.value) == null ? void 0 : r.pageData) == null ? void 0 : s.path]) == null ? void 0 : c.filter((v) => {
|
|
1626
|
-
var N;
|
|
1627
|
-
return ((N = v == null ? void 0 : v.key) == null ? void 0 : N.type) === "data";
|
|
1628
|
-
})) == null ? void 0 : d.find((v) => {
|
|
1629
|
-
var N, X, se, Q;
|
|
1630
|
-
return ((X = (N = v == null ? void 0 : v.value) == null ? void 0 : N.tableData) == null ? void 0 : X.算法名称) === ((Q = (se = i == null ? void 0 : i.value) == null ? void 0 : se.pageData) == null ? void 0 : Q.method);
|
|
1631
|
-
});
|
|
1632
|
-
if (!_) return;
|
|
1633
|
-
const m = {
|
|
1634
|
-
buttonName: (g = (p = i == null ? void 0 : i.value) == null ? void 0 : p.pageData) == null ? void 0 : g.method,
|
|
1635
|
-
api: (j = (A = _ == null ? void 0 : _.value) == null ? void 0 : A.tableData) == null ? void 0 : j.算法体,
|
|
1636
|
-
content: K == null ? void 0 : K.map((v) => {
|
|
1637
|
-
var N;
|
|
1638
|
-
return (N = v == null ? void 0 : v.value) == null ? void 0 : N.pageData;
|
|
1639
|
-
}),
|
|
1640
|
-
extraContent: [],
|
|
1641
|
-
extraValues: (h = (F = i == null ? void 0 : i.value) == null ? void 0 : F.pageData) == null ? void 0 : h.data,
|
|
1642
|
-
methodName: (E = (O = i == null ? void 0 : i.value) == null ? void 0 : O.pageData) == null ? void 0 : E.path
|
|
1643
|
-
};
|
|
1644
|
-
if (!e) return;
|
|
1645
|
-
const z = {
|
|
1646
|
-
...e,
|
|
1647
|
-
compData: (D = e == null ? void 0 : e.compData) == null ? void 0 : D.map((v) => {
|
|
1648
|
-
var N;
|
|
1649
|
-
return (v == null ? void 0 : v.key) === "formContent" ? {
|
|
1650
|
-
...v,
|
|
1651
|
-
contents: (N = v == null ? void 0 : v.contents) == null ? void 0 : N.map((X) => (X == null ? void 0 : X.prop) === l ? {
|
|
1652
|
-
...X,
|
|
1653
|
-
value: ""
|
|
1654
|
-
} : X)
|
|
1655
|
-
} : v;
|
|
1656
|
-
})
|
|
1657
|
-
}, le = {
|
|
1658
|
-
key: {
|
|
1659
|
-
pageKey: Se.value + Le,
|
|
1660
|
-
parentTable: "",
|
|
1661
|
-
systemKey: sessionStorage.getItem("systemKey"),
|
|
1662
|
-
type: "structure"
|
|
1663
|
-
},
|
|
1664
|
-
value: {
|
|
1665
|
-
pageData: z
|
|
1666
|
-
}
|
|
1667
|
-
}, x = await ml.post(m.api, le, {
|
|
1668
|
-
headers: {
|
|
1669
|
-
"Content-Type": "application/json"
|
|
1670
|
-
}
|
|
1671
|
-
});
|
|
1672
|
-
return ((J = x == null ? void 0 : x.data) == null ? void 0 : J.code) === 200 && (y = (B = (M = x == null ? void 0 : x.data) == null ? void 0 : M.result) == null ? void 0 : B.latestReportCode, u = (C = (k = x == null ? void 0 : x.data) == null ? void 0 : k.result) == null ? void 0 : C.status), {
|
|
1673
|
-
newMainKeyValue: y,
|
|
1674
|
-
newStatus: u
|
|
1675
|
-
};
|
|
1676
|
-
} catch (y) {
|
|
1677
|
-
throw Re.error(y), new Error(y);
|
|
1678
|
-
}
|
|
1679
|
-
}, Ca = (e, l, n, a) => {
|
|
1680
|
-
var r;
|
|
1681
|
-
Z("contentChange", {
|
|
1682
|
-
contents: (r = e == null ? void 0 : e.compData) == null ? void 0 : r.map((s) => {
|
|
1683
|
-
var c;
|
|
1684
|
-
return (s == null ? void 0 : s.key) === "formContent" ? {
|
|
1685
|
-
...s,
|
|
1686
|
-
contents: (c = s == null ? void 0 : s.contents) == null ? void 0 : c.map((d) => (d == null ? void 0 : d.key) === l ? {
|
|
1687
|
-
...d,
|
|
1688
|
-
value: n
|
|
1689
|
-
} : zl.value && (d == null ? void 0 : d.prop) === zl.prop ? {
|
|
1690
|
-
...d,
|
|
1691
|
-
value: zl.value
|
|
1692
|
-
} : d)
|
|
1693
|
-
} : s;
|
|
1694
|
-
}),
|
|
1695
|
-
index: e == null ? void 0 : e.id
|
|
1696
|
-
}, a);
|
|
1697
|
-
}, zl = ql({
|
|
1698
|
-
prop: "状态",
|
|
1699
|
-
value: ""
|
|
1700
|
-
}), Yr = H(["系统自动生成信息", "审批意见"]), Zr = async (e, l, n) => {
|
|
1701
|
-
var p, g;
|
|
1702
|
-
let a = e == null ? void 0 : e[l == null ? void 0 : l.prop], r = 1, s, c;
|
|
1703
|
-
const d = G(Se).value + Le + a;
|
|
1704
|
-
if (d) {
|
|
1705
|
-
zl.value = "", s = (p = Ul.value[d]) == null ? void 0 : p.filter((F) => {
|
|
1706
|
-
var h;
|
|
1707
|
-
return ((h = F == null ? void 0 : F.key) == null ? void 0 : h.type) === "structure";
|
|
1708
|
-
});
|
|
1709
|
-
const A = s == null ? void 0 : s.find((F) => {
|
|
1710
|
-
var h, O, E;
|
|
1711
|
-
return ((E = (O = (h = F == null ? void 0 : F.value) == null ? void 0 : h.pageData) == null ? void 0 : O.comp) == null ? void 0 : E.toUpperCase()) === "FORM";
|
|
1712
|
-
});
|
|
1713
|
-
c = {
|
|
1714
|
-
...(g = A == null ? void 0 : A.value) == null ? void 0 : g.pageData,
|
|
1715
|
-
id: A == null ? void 0 : A.id
|
|
1716
|
-
};
|
|
1717
|
-
const j = await Xr(c, l == null ? void 0 : l.prop);
|
|
1718
|
-
if (zl.value = j == null ? void 0 : j.newStatus, j != null && j.newMainKeyValue) return j == null ? void 0 : j.newMainKeyValue;
|
|
1719
|
-
}
|
|
1720
|
-
if (ee.value.some((A) => (A == null ? void 0 : A[l == null ? void 0 : l.prop]) === a)) {
|
|
1721
|
-
const A = a;
|
|
1722
|
-
for (; ee.value.some((j) => (j == null ? void 0 : j[l == null ? void 0 : l.prop]) === `${A}(${r})`); )
|
|
1723
|
-
r++;
|
|
1724
|
-
a = `${A}(${r})`;
|
|
1725
|
-
}
|
|
1726
|
-
return a;
|
|
1727
|
-
}, Ua = async (e, l, n) => {
|
|
1728
|
-
var c, d, p, g, A, j, F, h;
|
|
1729
|
-
let a, r;
|
|
1730
|
-
const s = await Zr(n == null ? void 0 : n.data, n == null ? void 0 : n.firstCol);
|
|
1731
|
-
if (e ? (a = G(Se).value + Le + ((g = n == null ? void 0 : n.data) == null ? void 0 : g[(p = n == null ? void 0 : n.firstCol) == null ? void 0 : p.prop]), r = G(Se).value + Le + s) : (a = G(Se).value + Le, r = G(a) + `loading${((c = Ol.value) == null ? void 0 : c.account) || ((d = Ol.value) == null ? void 0 : d.账号)}`), l) {
|
|
1732
|
-
const O = (j = (A = Ul.value[r]) == null ? void 0 : A.filter((E) => {
|
|
1733
|
-
var D;
|
|
1734
|
-
return ((D = E == null ? void 0 : E.key) == null ? void 0 : D.parentTable) === "";
|
|
1735
|
-
})) == null ? void 0 : j.map((E) => {
|
|
1736
|
-
var D;
|
|
1737
|
-
return {
|
|
1738
|
-
id: E == null ? void 0 : E.id,
|
|
1739
|
-
...(D = E == null ? void 0 : E.value) == null ? void 0 : D.pageData
|
|
1740
|
-
};
|
|
1741
|
-
});
|
|
1742
|
-
if ((O == null ? void 0 : O.length) > 0)
|
|
1743
|
-
if (e) {
|
|
1744
|
-
const E = O == null ? void 0 : O.find((D) => {
|
|
1745
|
-
var J;
|
|
1746
|
-
return ((J = D == null ? void 0 : D.comp) == null ? void 0 : J.toUpperCase()) === "FORM";
|
|
1747
|
-
});
|
|
1748
|
-
E && Ca(E, (F = n == null ? void 0 : n.firstCol) == null ? void 0 : F.label, s, Se.value);
|
|
1749
|
-
} else
|
|
1750
|
-
Ee.setRouteToChildPath(G(Se).value), Ne.setActiveMenuPath(r);
|
|
1751
|
-
else if (await On(a, r, null, null, e ? Yr.value : null), e) {
|
|
1752
|
-
const E = await Qr(r);
|
|
1753
|
-
if ((E == null ? void 0 : E.length) > 0) {
|
|
1754
|
-
const D = E == null ? void 0 : E.find((J) => {
|
|
1755
|
-
var M;
|
|
1756
|
-
return ((M = J == null ? void 0 : J.comp) == null ? void 0 : M.toUpperCase()) === "FORM";
|
|
1757
|
-
});
|
|
1758
|
-
D && Ca(D, (h = n == null ? void 0 : n.firstCol) == null ? void 0 : h.label, s, Se.value);
|
|
1759
|
-
}
|
|
1760
|
-
} else
|
|
1761
|
-
Ee.setRouteToChildPath(G(Se).value), Ne.setActiveMenuPath(r);
|
|
1762
|
-
} else
|
|
1763
|
-
e ? (tl.value = "", Je.value = n == null ? void 0 : n.data, Wl(!0, n == null ? void 0 : n.firstCol, s)) : (Ee.setRouteToChildPath(G(Se).value), Ne.setActiveMenuPath(r));
|
|
1764
|
-
}, Ir = () => {
|
|
1765
|
-
te.value = !1, Bl.value = [], qe.value = !1;
|
|
1766
|
-
}, Jl = (e) => {
|
|
1767
|
-
var c, d, p, g, A, j, F, h, O, E, D, J, M, B, k, C, y;
|
|
1768
|
-
const l = [];
|
|
1769
|
-
let n = [];
|
|
1770
|
-
for (let u in e)
|
|
1771
|
-
Array.isArray(e == null ? void 0 : e[u]) && n.push(u);
|
|
1772
|
-
Xe.value = G(W.value), (d = Hl((c = G(W.value)) == null ? void 0 : c.filter((u) => (u == null ? void 0 : u.label) !== "操作"))) == null || d.forEach((u, f) => {
|
|
1773
|
-
var K;
|
|
1774
|
-
n.find((i) => i === (u == null ? void 0 : u.prop)) || (u != null && u.formType && ((K = u == null ? void 0 : u.formType) == null ? void 0 : K.toUpperCase()) === "SELECT" || u != null && u.menuId ? l.push({
|
|
1775
|
-
label: (u == null ? void 0 : u.label) || (u == null ? void 0 : u.prop) || "",
|
|
1776
|
-
name: (u == null ? void 0 : u.prop) ?? "t" + f,
|
|
1777
|
-
prop: u == null ? void 0 : u.prop,
|
|
1778
|
-
type: "Select",
|
|
1779
|
-
// (!t?.formType || t?.formType === '') ? 'Input' : t?.formType,
|
|
1780
|
-
value: (e == null ? void 0 : e[u == null ? void 0 : u.prop]) ?? (u == null ? void 0 : u.value) ?? "",
|
|
1781
|
-
id: (u == null ? void 0 : u.id) ?? f,
|
|
1782
|
-
contents: (u == null ? void 0 : u.options) ?? [],
|
|
1783
|
-
width: 1,
|
|
1784
|
-
isFormColHidden: u == null ? void 0 : u.isFormColHidden,
|
|
1785
|
-
relatedValueId: u == null ? void 0 : u.relatedValueId,
|
|
1786
|
-
disabled: u == null ? void 0 : u.disabled,
|
|
1787
|
-
optionUrl: {
|
|
1788
|
-
groupSelect: u == null ? void 0 : u.groupSelect,
|
|
1789
|
-
menuSelect: u == null ? void 0 : u.formMenuSelect,
|
|
1790
|
-
type: "Select",
|
|
1791
|
-
selectRelateType: u == null ? void 0 : u.selectRelateType,
|
|
1792
|
-
allSelectionContents: (u == null ? void 0 : u.allSelectionContents) ?? [],
|
|
1793
|
-
selectFilter: u == null ? void 0 : u.selectFilter,
|
|
1794
|
-
menuId: u == null ? void 0 : u.menuId,
|
|
1795
|
-
filterContent: u == null ? void 0 : u.filterContent
|
|
1796
|
-
}
|
|
1797
|
-
}) : l.push({
|
|
1798
|
-
label: (u == null ? void 0 : u.label) || (u == null ? void 0 : u.prop) || "",
|
|
1799
|
-
prop: u == null ? void 0 : u.prop,
|
|
1800
|
-
name: (u == null ? void 0 : u.prop) ?? "t" + f,
|
|
1801
|
-
type: !(u != null && u.formType) || (u == null ? void 0 : u.formType) === "" ? "Input" : u == null ? void 0 : u.formType,
|
|
1802
|
-
value: (e == null ? void 0 : e[u == null ? void 0 : u.prop]) ?? (u == null ? void 0 : u.value) ?? "",
|
|
1803
|
-
id: (u == null ? void 0 : u.id) ?? f,
|
|
1804
|
-
contents: (u == null ? void 0 : u.options) ?? [],
|
|
1805
|
-
width: 1,
|
|
1806
|
-
isFormColHidden: u == null ? void 0 : u.isFormColHidden,
|
|
1807
|
-
disabled: u == null ? void 0 : u.disabled,
|
|
1808
|
-
relatedValueId: u == null ? void 0 : u.relatedValueId
|
|
1809
|
-
}));
|
|
1810
|
-
}), e === "" || !e || (tl.value = (e == null ? void 0 : e.id) ?? "");
|
|
1811
|
-
let a = Hl((p = G(W.value)) == null ? void 0 : p.filter((u) => (u == null ? void 0 : u.label) !== "操作"));
|
|
1812
|
-
Ze.value && ((g = Ze.value) == null ? void 0 : g.length) > 0 && (Ze.value = (A = G(Ze).value) == null ? void 0 : A.map((u) => {
|
|
1813
|
-
var K;
|
|
1814
|
-
let f = (u == null ? void 0 : u.prop) || ((K = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.label) === (u == null ? void 0 : u.label))) == null ? void 0 : K.prop);
|
|
1815
|
-
return f && (u.value = e[f]), u;
|
|
1816
|
-
})), Me.value = Ze.value && ((j = Ze.value) == null ? void 0 : j.length) > 0 ? Dn(Ze.value) : l;
|
|
1817
|
-
let r = [], s = (F = o.itemData) == null ? void 0 : F.filter((u) => (u == null ? void 0 : u.key) === "filterAllType");
|
|
1818
|
-
if ((s == null ? void 0 : s.length) > 0 && (r = (s == null ? void 0 : s.map((f) => f == null ? void 0 : f.value)).flat()), (r == null ? void 0 : r.length) > 0) {
|
|
1819
|
-
let u = r == null ? void 0 : r.find((f) => {
|
|
1820
|
-
var K;
|
|
1821
|
-
return (K = f == null ? void 0 : f.content) == null ? void 0 : K.includes("@Select");
|
|
1822
|
-
});
|
|
1823
|
-
if (u != null && u.content) {
|
|
1824
|
-
let f = (E = (O = (h = u == null ? void 0 : u.content) == null ? void 0 : h.replace(":", il)) == null ? void 0 : O.split(il)) == null ? void 0 : E[1];
|
|
1825
|
-
if (((D = f == null ? void 0 : f.trim()) == null ? void 0 : D.toUpperCase()) === "MANUAL") {
|
|
1826
|
-
let K = (C = (k = (J = o.itemData) == null ? void 0 : J.filter((i) => (i == null ? void 0 : i.key) === "contentTableId")) == null ? void 0 : k[((B = (M = o.itemData) == null ? void 0 : M.filter((i) => (i == null ? void 0 : i.key) === "contentTableId")) == null ? void 0 : B.length) - 1]) == null ? void 0 : C.contents;
|
|
1827
|
-
Me.value = (y = Me.value) == null ? void 0 : y.map((i, _) => {
|
|
1828
|
-
var m, z, le, x, v, N, X, se, Q, b, U;
|
|
1829
|
-
return (m = i == null ? void 0 : i.optionUrl) != null && m.menuId && (i.type = "Select", (z = i == null ? void 0 : i.optionUrl) != null && z.menuId ? (i.optionUrl.menuId = K, i.optionUrl.menuFilter = r, i.optionUrl.multiple = (v = (x = (le = r == null ? void 0 : r.find((P) => {
|
|
1830
|
-
var re;
|
|
1831
|
-
return (re = P == null ? void 0 : P.content) == null ? void 0 : re.includes("@Num");
|
|
1832
|
-
})) == null ? void 0 : le.content) == null ? void 0 : x.split(":")) != null && v[1] && parseInt((se = (X = (N = r == null ? void 0 : r.find((P) => {
|
|
1833
|
-
var re;
|
|
1834
|
-
return (re = P == null ? void 0 : P.content) == null ? void 0 : re.includes("@Num");
|
|
1835
|
-
})) == null ? void 0 : N.content) == null ? void 0 : X.split(":")) == null ? void 0 : se[1]) > 1 ? !0 : void 0, i.optionUrl.multipleLimit = (U = (b = (Q = r == null ? void 0 : r.find((P) => {
|
|
1836
|
-
var re;
|
|
1837
|
-
return (re = P == null ? void 0 : P.content) == null ? void 0 : re.includes("@Num");
|
|
1838
|
-
})) == null ? void 0 : Q.content) == null ? void 0 : b.split(":")) == null ? void 0 : U[1]) : i.optionUrl = {
|
|
1839
|
-
menuId: K,
|
|
1840
|
-
menuFilter: r
|
|
1841
|
-
}), i;
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
}, Vr = () => {
|
|
1847
|
-
var l;
|
|
1848
|
-
const e = (l = L.value) == null ? void 0 : l.$el;
|
|
1849
|
-
e && $n.create(e, {
|
|
1850
|
-
animation: 150,
|
|
1851
|
-
handle: ".col-drag-icon",
|
|
1852
|
-
ghostClass: "sortable-ghost",
|
|
1853
|
-
onEnd: (n) => {
|
|
1854
|
-
var c;
|
|
1855
|
-
const { oldIndex: a, newIndex: r } = n;
|
|
1856
|
-
if (a === r) return;
|
|
1857
|
-
const s = Kl.value.splice(a, 1)[0];
|
|
1858
|
-
Kl.value.splice(r, 0, s), W.value = (c = W.value) == null ? void 0 : c.slice().sort((d, p) => {
|
|
1859
|
-
if (d.label === "操作") return 1;
|
|
1860
|
-
if (p.label === "操作") return -1;
|
|
1861
|
-
const g = Kl.value.findIndex((j) => j.label === d.label), A = Kl.value.findIndex((j) => j.label === p.label);
|
|
1862
|
-
return g - A;
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
});
|
|
1866
|
-
};
|
|
1867
|
-
va(() => {
|
|
1868
|
-
ia.value = window.innerWidth - 240 * 2;
|
|
1869
|
-
});
|
|
1870
|
-
const en = () => {
|
|
1871
|
-
oa(() => {
|
|
1872
|
-
Vr();
|
|
1873
|
-
});
|
|
1874
|
-
}, pa = (e, l) => {
|
|
1875
|
-
var a;
|
|
1876
|
-
if (!e && !(e != null && e.children)) return {
|
|
1877
|
-
contents: e,
|
|
1878
|
-
currentSelectContents: void 0
|
|
1879
|
-
};
|
|
1880
|
-
let n;
|
|
1881
|
-
return e.children = (a = e.children) == null ? void 0 : a.map((r) => {
|
|
1882
|
-
var s, c;
|
|
1883
|
-
if ((r == null ? void 0 : r.id) === tl.value) {
|
|
1884
|
-
let d = {};
|
|
1885
|
-
for (let p in r) {
|
|
1886
|
-
let g = (s = l == null ? void 0 : l.find((A) => (A == null ? void 0 : A.prop) === p)) == null ? void 0 : s.label;
|
|
1887
|
-
g ? d[p] = (c = Je.value) == null ? void 0 : c[g] : d[p] = r[p];
|
|
1888
|
-
}
|
|
1889
|
-
r = Object.assign(d, Je.value), n = r;
|
|
1890
|
-
} else {
|
|
1891
|
-
let d = pa(r, l);
|
|
1892
|
-
r = d == null ? void 0 : d.contents, n = d == null ? void 0 : d.currentSelectContents;
|
|
1893
|
-
}
|
|
1894
|
-
return r;
|
|
1895
|
-
}), {
|
|
1896
|
-
contents: e,
|
|
1897
|
-
currentSelectContents: n
|
|
1898
|
-
};
|
|
1899
|
-
}, _a = (e, l) => {
|
|
1900
|
-
let n, a;
|
|
1901
|
-
return e != null && e.find((r) => (r == null ? void 0 : r.id) === tl.value) ? n = e == null ? void 0 : e.map((r) => {
|
|
1902
|
-
var s, c;
|
|
1903
|
-
if ((r == null ? void 0 : r.id) === tl.value) {
|
|
1904
|
-
let d = {};
|
|
1905
|
-
for (let p in r) {
|
|
1906
|
-
let g = (s = l == null ? void 0 : l.find((A) => (A == null ? void 0 : A.prop) === p)) == null ? void 0 : s.label;
|
|
1907
|
-
g ? d[p] = (c = Je.value) == null ? void 0 : c[g] : d[p] = r[p];
|
|
1908
|
-
}
|
|
1909
|
-
r = Object.assign(d, Je.value), a = r;
|
|
1910
|
-
}
|
|
1911
|
-
return r;
|
|
1912
|
-
}) : n = e == null ? void 0 : e.map((r) => {
|
|
1913
|
-
var s, c, d, p;
|
|
1914
|
-
if ((r == null ? void 0 : r.id) === tl.value) {
|
|
1915
|
-
let g = {};
|
|
1916
|
-
for (let A in r) {
|
|
1917
|
-
let j = (s = l == null ? void 0 : l.find((F) => (F == null ? void 0 : F.prop) === A)) == null ? void 0 : s.label;
|
|
1918
|
-
j ? g[A] = (c = Je.value) == null ? void 0 : c[j] : g[A] = r[A];
|
|
1919
|
-
}
|
|
1920
|
-
r = Object.assign(g, Je.value), a = r;
|
|
1921
|
-
} else
|
|
1922
|
-
r = (d = pa(r, l)) == null ? void 0 : d.contents, a = (p = pa(r, l)) == null ? void 0 : p.currentSelectContents;
|
|
1923
|
-
return r;
|
|
1924
|
-
}), {
|
|
1925
|
-
newContents: n,
|
|
1926
|
-
currentSelectContents: a
|
|
1927
|
-
};
|
|
1928
|
-
}, Da = (e, l, n) => {
|
|
1929
|
-
var a, r;
|
|
1930
|
-
return e[l == null ? void 0 : l.prop] = n, typeof e.id == "number" && (e.id = (a = e.id) == null ? void 0 : a.toString()), e.children && ((r = e.children) == null ? void 0 : r.length) > 0 && (e.children = e.children.map(Da)), e;
|
|
1931
|
-
}, fa = (e) => {
|
|
1932
|
-
var n;
|
|
1933
|
-
const l = [];
|
|
1934
|
-
return l.push({ ...e }), e != null && e.children && Array.isArray(e.children) && ((n = e.children) == null || n.forEach((a) => {
|
|
1935
|
-
l.push(...fa(a));
|
|
1936
|
-
})), (l == null ? void 0 : l.length) > 0 ? l == null ? void 0 : l.map((a) => {
|
|
1937
|
-
const r = { ...a };
|
|
1938
|
-
return delete r.children, r;
|
|
1939
|
-
}) : [];
|
|
1940
|
-
}, Wl = (e = !0, l, n) => {
|
|
1941
|
-
var g, A, j, F, h, O, E, D, J, M, B, k, C, y, u, f, K, i, _, m, z, le, x, v, N, X, se, Q, b;
|
|
1942
|
-
let a = Hl((g = G(W.value)) == null ? void 0 : g.filter((U) => (U == null ? void 0 : U.label) !== "操作")), r, s = G(ee.value);
|
|
1943
|
-
if (!Je.value) {
|
|
1944
|
-
cl.value = !1;
|
|
1945
|
-
return;
|
|
1946
|
-
}
|
|
1947
|
-
if (tl.value === "") {
|
|
1948
|
-
_l.value++;
|
|
1949
|
-
let U;
|
|
1950
|
-
l && n ? U = {
|
|
1951
|
-
id: _l.value.toString(),
|
|
1952
|
-
[l == null ? void 0 : l.prop]: n,
|
|
1953
|
-
children: Je.value.children
|
|
1954
|
-
} : U = { id: _l.value.toString() }, U != null && U.children && (U = {
|
|
1955
|
-
...U,
|
|
1956
|
-
children: (A = U.children) == null ? void 0 : A.map((P) => Da(P, l, n))
|
|
1957
|
-
}), s.push(Object.assign(Je.value, U)), r = Object.assign(Je.value, U);
|
|
1958
|
-
} else
|
|
1959
|
-
s = (j = _a(s, a)) == null ? void 0 : j.newContents, r = (F = _a(s, a)) == null ? void 0 : F.currentSelectContents;
|
|
1960
|
-
const c = (h = o.itemData) == null ? void 0 : h.filter((U) => (U == null ? void 0 : U.key) === "childTree")[0];
|
|
1961
|
-
if (((O = c == null ? void 0 : c.contents) == null ? void 0 : O.length) > 0) {
|
|
1962
|
-
el.value = "编辑";
|
|
1963
|
-
const U = [];
|
|
1964
|
-
s == null || s.forEach((P, re) => {
|
|
1965
|
-
var ie;
|
|
1966
|
-
let I = {};
|
|
1967
|
-
if (Array.isArray(P)) {
|
|
1968
|
-
let T = [];
|
|
1969
|
-
P == null || P.filter((t) => !(t != null && t.id)).forEach((t, fe) => {
|
|
1970
|
-
var ke, ve, _e, Te, nl, ul, ol;
|
|
1971
|
-
if ((ve = (ke = ll.value) == null ? void 0 : ke[fe]) != null && ve.prop && !Array.isArray(t)) {
|
|
1972
|
-
let Be = {};
|
|
1973
|
-
Be[ll.value[fe].column] = t, Ae != null && Ae.value && ((_e = Ae == null ? void 0 : Ae.value) == null ? void 0 : _e.length) > 0 && ((Te = Ae == null ? void 0 : Ae.value) != null && Te.find((Fe) => JSON.stringify(Fe == null ? void 0 : Fe[0]) === JSON.stringify(Be))) && (T = (nl = Ae == null ? void 0 : Ae.value) == null ? void 0 : nl.find((Fe) => JSON.stringify(Fe == null ? void 0 : Fe[0]) === JSON.stringify(Be))), T && T.length > 0 ? I[ll.value[fe].prop] = T != null && T.find((Fe) => {
|
|
1974
|
-
var sl;
|
|
1975
|
-
return ((sl = Object.keys(Fe)) == null ? void 0 : sl[0]) === ll.value[fe].column;
|
|
1976
|
-
}) ? (ul = T == null ? void 0 : T.find((Fe) => {
|
|
1977
|
-
var sl;
|
|
1978
|
-
return ((sl = Object.keys(Fe)) == null ? void 0 : sl[0]) === ll.value[fe].column;
|
|
1979
|
-
})) == null ? void 0 : ul[ll.value[fe].column] : t : I[ll.value[fe].prop] = t;
|
|
1980
|
-
} else Array.isArray(t) && ((ol = ll.value[fe]) != null && ol.prop ? I[ll.value[fe].prop] = t : I.children = ya(t, ll.value));
|
|
1981
|
-
});
|
|
1982
|
-
} else
|
|
1983
|
-
I = P;
|
|
1984
|
-
Array.isArray(P) && P.some((T) => T == null ? void 0 : T.id) ? U.push(Object.assign(I, { id: (ie = P == null ? void 0 : P.find((T) => T.id)) == null ? void 0 : ie.id })) : I.id ? U.push(I) : U.push(Object.assign(I, { id: re.toString() }));
|
|
1985
|
-
}), ee.value = La(U, c, W.value);
|
|
1986
|
-
} else
|
|
1987
|
-
ee.value = s;
|
|
1988
|
-
ja(ee.value), la.value = ee.value;
|
|
1989
|
-
const d = vu(la.value, Ml.value, s);
|
|
1990
|
-
let p = [];
|
|
1991
|
-
if (wl.value ? (p = (E = G(wl).value.singleContent) == null ? void 0 : E.filter((U) => (U == null ? void 0 : U.id) !== (r == null ? void 0 : r.id)), p.push(r)) : p = [r], al.value) {
|
|
1992
|
-
const U = {
|
|
1993
|
-
content: d,
|
|
1994
|
-
singleContent: ((D = c == null ? void 0 : c.contents) == null ? void 0 : D.length) > 0 ? p == null ? void 0 : p.flatMap(fa) : p,
|
|
1995
|
-
index: o == null ? void 0 : o.index,
|
|
1996
|
-
buttonName: "编辑",
|
|
1997
|
-
column: W.value,
|
|
1998
|
-
parentTableId: o == null ? void 0 : o.parentTableId
|
|
1999
|
-
};
|
|
2000
|
-
Ee.setCacheUpdatingData(U);
|
|
2001
|
-
}
|
|
2002
|
-
if (e) {
|
|
2003
|
-
let U = (k = (B = (M = (J = o.itemData) == null ? void 0 : J.find((I) => (I == null ? void 0 : I.key) === "filterAllType")) == null ? void 0 : M.value) == null ? void 0 : B.find((I) => (I == null ? void 0 : I.value) === "onConditionContents")) == null ? void 0 : k.content, P = (C = o.itemData) == null ? void 0 : C.filter((I) => (I == null ? void 0 : I.key) === "filterAllType");
|
|
2004
|
-
P = [].concat(...P.map((I) => I.value));
|
|
2005
|
-
const re = {
|
|
2006
|
-
content: d,
|
|
2007
|
-
singleContent: ((y = c == null ? void 0 : c.contents) == null ? void 0 : y.length) > 0 ? fa(r) : r,
|
|
2008
|
-
index: o == null ? void 0 : o.index,
|
|
2009
|
-
buttonName: el.value,
|
|
2010
|
-
column: W.value,
|
|
2011
|
-
parentTableId: o == null ? void 0 : o.parentTableId,
|
|
2012
|
-
filter: U,
|
|
2013
|
-
allFilter: P,
|
|
2014
|
-
pathIndex: (f = (u = o.itemData) == null ? void 0 : u.find((I) => (I == null ? void 0 : I.key) === "relatedFilter")) == null ? void 0 : f.index
|
|
2015
|
-
};
|
|
2016
|
-
Ee.setTableLoading(o == null ? void 0 : o.index), cl.value = !1, Je.value = void 0, Z("change", re);
|
|
2017
|
-
}
|
|
2018
|
-
if ((_ = (i = (K = Me.value) == null ? void 0 : K[0]) == null ? void 0 : i.optionUrl) != null && _.menuId) {
|
|
2019
|
-
cl.value = !1;
|
|
2020
|
-
let U = (m = o.itemData) == null ? void 0 : m.filter((P) => (P == null ? void 0 : P.key) === "filterAllType");
|
|
2021
|
-
if ((U == null ? void 0 : U.length) > 0) {
|
|
2022
|
-
let P = U == null ? void 0 : U.map((ie) => ie == null ? void 0 : ie.value), re = (x = (le = (z = P.flat().find((ie) => {
|
|
2023
|
-
var T;
|
|
2024
|
-
return (T = ie == null ? void 0 : ie.content) == null ? void 0 : T.includes("@Num");
|
|
2025
|
-
})) == null ? void 0 : z.content) == null ? void 0 : le.split(":")) == null ? void 0 : x[1];
|
|
2026
|
-
((X = (N = (v = P.flat().find((ie) => {
|
|
2027
|
-
var T;
|
|
2028
|
-
return (T = ie == null ? void 0 : ie.content) == null ? void 0 : T.includes("@Select:");
|
|
2029
|
-
})) == null ? void 0 : v.content) == null ? void 0 : N.split(":")) == null ? void 0 : X[1]) !== "Manual" && (re = parseInt(re), ee.value = (b = ee.value) == null ? void 0 : b.slice(((se = ee.value) == null ? void 0 : se.length) - re, (Q = ee.value) == null ? void 0 : Q.length));
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
};
|
|
2033
|
-
gn(() => {
|
|
2034
|
-
W.value = [], ee.value = [], Xe.value = [], we.value = [], Ze.value = [], yl.value = [], Bl.value = [], Dl.value = [], Me.value = [], rl.value = [], L.value = null;
|
|
2035
|
-
});
|
|
2036
|
-
const Oa = async (e, l, n) => {
|
|
2037
|
-
var g, A, j, F, h, O, E, D, J, M, B;
|
|
2038
|
-
Sl.value = n == null ? void 0 : n.prop;
|
|
2039
|
-
const a = G(o.itemData), r = a == null ? void 0 : a.map((k) => {
|
|
2040
|
-
var C;
|
|
2041
|
-
return (k == null ? void 0 : k.key) === "header" && ((C = k.contents) == null || C.map((y, u) => {
|
|
2042
|
-
var f, K, i, _, m, z, le, x, v, N, X, se, Q, b, U, P, re, I, ie;
|
|
2043
|
-
return y.type = y != null && y.type ? y.type : (_ = (i = (K = (f = y == null ? void 0 : y.key) == null ? void 0 : f.split("$")) == null ? void 0 : K[1]) == null ? void 0 : i.split("(")) != null && _[0] ? (z = (m = Ha) == null ? void 0 : m.find((T) => {
|
|
2044
|
-
var t, fe, ke, ve;
|
|
2045
|
-
return (T == null ? void 0 : T.key) === ((ve = (ke = (fe = (t = y == null ? void 0 : y.key) == null ? void 0 : t.split("$")) == null ? void 0 : fe[1]) == null ? void 0 : ke.split("(")) == null ? void 0 : ve[0]);
|
|
2046
|
-
})) == null ? void 0 : z.value : "Input", y.options = y != null && y.options ? y.options : ((v = (x = (le = y == null ? void 0 : y.key) == null ? void 0 : le.split("$")) == null ? void 0 : x[1]) == null ? void 0 : v.length) > 0 ? (Q = (se = Va((X = (N = y == null ? void 0 : y.key) == null ? void 0 : N.split("$")) == null ? void 0 : X[1])) == null ? void 0 : se.split(",")) == null ? void 0 : Q.map((T) => ({
|
|
2047
|
-
label: T,
|
|
2048
|
-
value: T
|
|
2049
|
-
})) : [], (b = y == null ? void 0 : y.key) != null && b.includes("$") && (y.key = (P = (U = y == null ? void 0 : y.key) == null ? void 0 : U.split("$")) == null ? void 0 : P[0]), y.value = (re = Object.values(l)) == null ? void 0 : re[u], y.optionUrl = y != null && y.formMenuSelect && ((I = y == null ? void 0 : y.formMenuSelect) == null ? void 0 : I.length) > 0 ? {
|
|
2050
|
-
groupSelect: (ie = y == null ? void 0 : y.groupSelect) == null ? void 0 : ie.split(/[::]/).map((T) => T.trim()),
|
|
2051
|
-
menuSelect: y == null ? void 0 : y.formMenuSelect,
|
|
2052
|
-
selectRelateType: "",
|
|
2053
|
-
type: (y == null ? void 0 : y.formType) ?? (y != null && y.groupSelect ? "Select" : "")
|
|
2054
|
-
} : null, y;
|
|
2055
|
-
})), k;
|
|
2056
|
-
});
|
|
2057
|
-
let s = G(Me.value), c = (A = (g = G(r)) == null ? void 0 : g.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : A.contents;
|
|
2058
|
-
s = s == null ? void 0 : s.map((k) => {
|
|
2059
|
-
var C;
|
|
2060
|
-
return k.value = (C = c == null ? void 0 : c.find((y, u) => u === (k == null ? void 0 : k.id))) == null ? void 0 : C.value, k;
|
|
2061
|
-
});
|
|
2062
|
-
let d = "", p = (h = (F = (j = G(r)) == null ? void 0 : j.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : F.contents) == null ? void 0 : h.find((k, C) => {
|
|
2063
|
-
var y, u, f;
|
|
2064
|
-
return (k == null ? void 0 : k.label) === Sl.value || (C == null ? void 0 : C.toString()) === ((f = (u = (y = Sl.value) == null ? void 0 : y.split("a")) == null ? void 0 : u[1]) == null ? void 0 : f.toString());
|
|
2065
|
-
});
|
|
2066
|
-
if ((D = (E = (O = G(r)) == null ? void 0 : O.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : E.contents) == null || D.forEach((k) => {
|
|
2067
|
-
var C, y, u, f, K;
|
|
2068
|
-
d === "" && ((u = (y = (C = k == null ? void 0 : k.optionUrl) == null ? void 0 : C.groupSelect) == null ? void 0 : y[1]) != null && u.includes("[")) && (d = (K = (f = k == null ? void 0 : k.optionUrl) == null ? void 0 : f.groupSelect) == null ? void 0 : K[1]);
|
|
2069
|
-
}), (J = p == null ? void 0 : p.optionUrl) != null && J.menuSelect) {
|
|
2070
|
-
let k = await lr(p), C;
|
|
2071
|
-
if (k == null || k.forEach((y) => {
|
|
2072
|
-
var u, f, K, i, _, m, z, le, x, v;
|
|
2073
|
-
d === ((f = (u = p == null ? void 0 : p.optionUrl) == null ? void 0 : u.groupSelect) == null ? void 0 : f[1]) && ((_ = (i = (K = p == null ? void 0 : p.optionUrl) == null ? void 0 : K.groupSelect) == null ? void 0 : i[1]) != null && _.includes("[")) && ((v = G(y)) == null ? void 0 : v[(x = (le = (z = (m = p == null ? void 0 : p.optionUrl) == null ? void 0 : m.groupSelect) == null ? void 0 : z[1]) == null ? void 0 : le.replaceAll("[", "")) == null ? void 0 : x.replaceAll("]", "")]) === (p == null ? void 0 : p.value) && (C = y);
|
|
2074
|
-
}), C) {
|
|
2075
|
-
let y = G(s);
|
|
2076
|
-
y = y == null ? void 0 : y.map((f) => {
|
|
2077
|
-
var K, i, _, m, z, le, x, v, N, X, se;
|
|
2078
|
-
return (C != null && C[f == null ? void 0 : f.label] || C != null && C[(m = (_ = (i = (K = f == null ? void 0 : f.optionUrl) == null ? void 0 : K.groupSelect) == null ? void 0 : i[1]) == null ? void 0 : _.replaceAll("[", "")) == null ? void 0 : m.replaceAll("]", "")]) && ((x = (le = (z = f == null ? void 0 : f.optionUrl) == null ? void 0 : z.groupSelect) == null ? void 0 : le[1]) != null && x.includes("[")) && (f.value = (C == null ? void 0 : C[f == null ? void 0 : f.label]) || (C == null ? void 0 : C[(se = (X = (N = (v = f == null ? void 0 : f.optionUrl) == null ? void 0 : v.groupSelect) == null ? void 0 : N[1]) == null ? void 0 : X.replaceAll("[", "")) == null ? void 0 : se.replaceAll("]", "")])), f;
|
|
2079
|
-
}), ee.value = (M = G(ee.value)) == null ? void 0 : M.map((f) => {
|
|
2080
|
-
if ((f == null ? void 0 : f.id) === (l == null ? void 0 : l.id)) {
|
|
2081
|
-
const K = {};
|
|
2082
|
-
return y == null || y.forEach((i) => {
|
|
2083
|
-
K[i.name] = i.value;
|
|
2084
|
-
}), K.id = f == null ? void 0 : f.id, K;
|
|
2085
|
-
}
|
|
2086
|
-
return f;
|
|
2087
|
-
});
|
|
2088
|
-
let u = G(y);
|
|
2089
|
-
u = u == null ? void 0 : u.map((f) => {
|
|
2090
|
-
var K, i, _, m;
|
|
2091
|
-
return (i = (K = f == null ? void 0 : f.optionUrl) == null ? void 0 : K.menuSelect) != null && i.some((z) => z == null ? void 0 : z.includes) && (f.optionUrl.menuSelect = (m = (_ = f == null ? void 0 : f.optionUrl) == null ? void 0 : _.menuSelect) == null ? void 0 : m.map((z) => {
|
|
2092
|
-
var le, x, v, N;
|
|
2093
|
-
if (z != null && z.includes("[")) {
|
|
2094
|
-
let X = (x = (le = z == null ? void 0 : z.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : le.split(":")) == null ? void 0 : x[1];
|
|
2095
|
-
z = (N = (v = G(y)) == null ? void 0 : v.find((se) => (se == null ? void 0 : se.label) === X)) == null ? void 0 : N.value;
|
|
2096
|
-
}
|
|
2097
|
-
return z;
|
|
2098
|
-
})), f;
|
|
2099
|
-
}), ee.value = (B = G(ee.value)) == null ? void 0 : B.map((f) => {
|
|
2100
|
-
if ((f == null ? void 0 : f.id) === (l == null ? void 0 : l.id)) {
|
|
2101
|
-
const K = {};
|
|
2102
|
-
return u == null || u.forEach((i) => {
|
|
2103
|
-
K[i.name] = i.value;
|
|
2104
|
-
}), K.id = f == null ? void 0 : f.id, K;
|
|
2105
|
-
}
|
|
2106
|
-
return f;
|
|
2107
|
-
});
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
}, ln = async (e) => {
|
|
2111
|
-
var j, F, h, O, E, D, J, M, B, k, C, y, u, f, K;
|
|
2112
|
-
if (!e) return;
|
|
2113
|
-
Je.value = e;
|
|
2114
|
-
const l = G(o.itemData);
|
|
2115
|
-
let n = l == null ? void 0 : l.map((i) => {
|
|
2116
|
-
var _;
|
|
2117
|
-
return (i == null ? void 0 : i.key) === "header" && ((_ = i.contents) == null || _.map((m, z) => {
|
|
2118
|
-
var le, x, v, N, X, se, Q, b, U, P, re, I, ie, T, t, fe, ke, ve, _e;
|
|
2119
|
-
return m.type = m != null && m.type ? m.type : (N = (v = (x = (le = m == null ? void 0 : m.key) == null ? void 0 : le.split("$")) == null ? void 0 : x[1]) == null ? void 0 : v.split("(")) != null && N[0] ? (se = (X = Ha) == null ? void 0 : X.find((Te) => {
|
|
2120
|
-
var nl, ul, ol, Be;
|
|
2121
|
-
return (Te == null ? void 0 : Te.key) === ((Be = (ol = (ul = (nl = m == null ? void 0 : m.key) == null ? void 0 : nl.split("$")) == null ? void 0 : ul[1]) == null ? void 0 : ol.split("(")) == null ? void 0 : Be[0]);
|
|
2122
|
-
})) == null ? void 0 : se.value : "Input", m.options = m != null && m.options ? m.options : ((U = (b = (Q = m == null ? void 0 : m.key) == null ? void 0 : Q.split("$")) == null ? void 0 : b[1]) == null ? void 0 : U.length) > 0 ? (ie = (I = Va((re = (P = m == null ? void 0 : m.key) == null ? void 0 : P.split("$")) == null ? void 0 : re[1])) == null ? void 0 : I.split(",")) == null ? void 0 : ie.map((Te) => ({
|
|
2123
|
-
label: Te,
|
|
2124
|
-
value: Te
|
|
2125
|
-
})) : [], (T = m == null ? void 0 : m.key) != null && T.includes("$") && (m.key = (fe = (t = m == null ? void 0 : m.key) == null ? void 0 : t.split("$")) == null ? void 0 : fe[0]), m.value = (ke = Object.values(e)) == null ? void 0 : ke[z], m.optionUrl = m != null && m.formMenuSelect && ((ve = m == null ? void 0 : m.formMenuSelect) == null ? void 0 : ve.length) > 0 ? {
|
|
2126
|
-
groupSelect: (_e = m == null ? void 0 : m.groupSelect) == null ? void 0 : _e.split(/[::]/).map((Te) => Te.trim()),
|
|
2127
|
-
menuSelect: m == null ? void 0 : m.formMenuSelect,
|
|
2128
|
-
selectRelateType: "",
|
|
2129
|
-
type: (m == null ? void 0 : m.formType) ?? (m != null && m.groupSelect ? "Select" : "")
|
|
2130
|
-
} : null, m;
|
|
2131
|
-
})), i;
|
|
2132
|
-
}), a = Me.value, r = (F = (j = G(n)) == null ? void 0 : j.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : F.contents;
|
|
2133
|
-
if (r = r == null ? void 0 : r.filter((i) => (i == null ? void 0 : i.label) !== "操作"), r.push({
|
|
2134
|
-
label: "操作",
|
|
2135
|
-
type: "operate"
|
|
2136
|
-
}), a = a == null ? void 0 : a.map((i) => {
|
|
2137
|
-
var _;
|
|
2138
|
-
return i.value = i.value ?? ((_ = r == null ? void 0 : r.find((m, z) => (m == null ? void 0 : m.prop) === (i == null ? void 0 : i.name))) == null ? void 0 : _.value), i;
|
|
2139
|
-
}), !Fl.value) return;
|
|
2140
|
-
let s = "", c = (E = (O = (h = G(n)) == null ? void 0 : h.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : O.contents) == null ? void 0 : E.find((i, _) => {
|
|
2141
|
-
var m, z, le;
|
|
2142
|
-
return (i == null ? void 0 : i.label) === Sl.value || (_ == null ? void 0 : _.toString()) === ((le = (z = (m = Sl.value) == null ? void 0 : m.split("a")) == null ? void 0 : z[1]) == null ? void 0 : le.toString());
|
|
2143
|
-
}), d = (D = c == null ? void 0 : c.optionUrl) == null ? void 0 : D.menuSelect, p = !0;
|
|
2144
|
-
(B = (M = (J = G(n)) == null ? void 0 : J.find((i) => (i == null ? void 0 : i.key) === "header")) == null ? void 0 : M.contents) == null || B.forEach((i) => {
|
|
2145
|
-
var _, m, z, le, x, v;
|
|
2146
|
-
p && ((z = (m = (_ = i == null ? void 0 : i.optionUrl) == null ? void 0 : _.groupSelect) == null ? void 0 : m[1]) != null && z.includes("[")) && (s = (x = (le = i == null ? void 0 : i.optionUrl) == null ? void 0 : le.groupSelect) == null ? void 0 : x[1], JSON.stringify(d) === JSON.stringify((v = i == null ? void 0 : i.optionUrl) == null ? void 0 : v.menuSelect) && (p = !1));
|
|
2147
|
-
});
|
|
2148
|
-
let g = G(a);
|
|
2149
|
-
g = g == null ? void 0 : g.map((i) => {
|
|
2150
|
-
var _, m;
|
|
2151
|
-
return (i == null ? void 0 : i.type) === "Select" && ((m = (_ = i == null ? void 0 : i.optionUrl) == null ? void 0 : _.allSelectionContents) == null ? void 0 : m.length) > 0 && (i.optionUrl.contactValue = e), i.value = e == null ? void 0 : e[i == null ? void 0 : i.prop], i;
|
|
2152
|
-
}), Me.value = G(g);
|
|
2153
|
-
let A = (y = (C = (k = Me.value) == null ? void 0 : k.find((i) => {
|
|
2154
|
-
var _;
|
|
2155
|
-
return (_ = i == null ? void 0 : i.optionUrl) == null ? void 0 : _.menuId;
|
|
2156
|
-
})) == null ? void 0 : C.optionUrl) == null ? void 0 : y.menuId;
|
|
2157
|
-
if ((u = c == null ? void 0 : c.optionUrl) != null && u.menuSelect && Fl.value || A) {
|
|
2158
|
-
let i = await lr(c, A), _;
|
|
2159
|
-
if ((f = c == null ? void 0 : c.optionUrl) == null || f.menuSelect, i == null || i.forEach((m) => {
|
|
2160
|
-
var z, le, x, v, N, X, se, Q, b, U, P, re, I, ie;
|
|
2161
|
-
s === ((le = (z = c == null ? void 0 : c.optionUrl) == null ? void 0 : z.groupSelect) == null ? void 0 : le[1]) && ((N = (v = (x = c == null ? void 0 : c.optionUrl) == null ? void 0 : x.groupSelect) == null ? void 0 : v[1]) != null && N.includes("[")) && ((U = G(m)) == null ? void 0 : U[(b = (Q = (se = (X = c == null ? void 0 : c.optionUrl) == null ? void 0 : X.groupSelect) == null ? void 0 : se[1]) == null ? void 0 : Q.replaceAll("[", "")) == null ? void 0 : b.replaceAll("]", "")]) === (c == null ? void 0 : c.value) && (_ = m), A && m[(re = (P = Me.value) == null ? void 0 : P.find((T) => {
|
|
2162
|
-
var t;
|
|
2163
|
-
return (t = T == null ? void 0 : T.optionUrl) == null ? void 0 : t.menuId;
|
|
2164
|
-
})) == null ? void 0 : re.prop] === e[(ie = (I = Me.value) == null ? void 0 : I.find((T) => {
|
|
2165
|
-
var t;
|
|
2166
|
-
return (t = T == null ? void 0 : T.optionUrl) == null ? void 0 : t.menuId;
|
|
2167
|
-
})) == null ? void 0 : ie.prop] && (_ = m);
|
|
2168
|
-
}), _) {
|
|
2169
|
-
let m = G(a);
|
|
2170
|
-
m = m == null ? void 0 : m.map((x) => {
|
|
2171
|
-
var v, N, X, se, Q, b, U, P, re, I, ie, T, t, fe, ke, ve, _e;
|
|
2172
|
-
return (_ != null && _[x == null ? void 0 : x.prop] || _ != null && _[(se = (X = (N = (v = x == null ? void 0 : x.optionUrl) == null ? void 0 : v.groupSelect) == null ? void 0 : N[1]) == null ? void 0 : X.replaceAll("[", "")) == null ? void 0 : se.replaceAll("]", "")]) && ((U = (b = (Q = x == null ? void 0 : x.optionUrl) == null ? void 0 : Q.groupSelect) == null ? void 0 : b[1]) != null && U.includes("[")) && (x != null && x.relatedValueId) && (x.value = (_ == null ? void 0 : _[x == null ? void 0 : x.prop]) || (_ == null ? void 0 : _[(ie = (I = (re = (P = x == null ? void 0 : x.optionUrl) == null ? void 0 : P.groupSelect) == null ? void 0 : re[1]) == null ? void 0 : I.replaceAll("[", "")) == null ? void 0 : ie.replaceAll("]", "")])), A && (_ != null && _[x == null ? void 0 : x.prop]) && (x != null && x.relatedValueId) ? x.value = (_ == null ? void 0 : _[x == null ? void 0 : x.prop]) || (_ == null ? void 0 : _[(ke = (fe = (t = (T = x == null ? void 0 : x.optionUrl) == null ? void 0 : T.groupSelect) == null ? void 0 : t[1]) == null ? void 0 : fe.replaceAll("[", "")) == null ? void 0 : ke.replaceAll("]", "")]) : x.value = (_e = (ve = Me.value) == null ? void 0 : ve.find((Te) => (Te == null ? void 0 : Te.prop) === (x == null ? void 0 : x.prop))) == null ? void 0 : _e.value, x;
|
|
2173
|
-
}), Me.value = G(m);
|
|
2174
|
-
let z = G(m);
|
|
2175
|
-
z = z == null ? void 0 : z.map((x) => {
|
|
2176
|
-
var v, N, X, se, Q, b;
|
|
2177
|
-
return (N = (v = x == null ? void 0 : x.optionUrl) == null ? void 0 : v.menuSelect) != null && N.some((U) => U == null ? void 0 : U.includes("[")) && (x.optionUrl.oldMenuSelect = (se = (X = G(x)) == null ? void 0 : X.optionUrl) == null ? void 0 : se.menuSelect, x.optionUrl.menuSelect = (b = (Q = x == null ? void 0 : x.optionUrl) == null ? void 0 : Q.menuSelect) == null ? void 0 : b.map((U) => {
|
|
2178
|
-
var P, re, I, ie;
|
|
2179
|
-
if (U != null && U.includes("[")) {
|
|
2180
|
-
let T = (re = (P = U == null ? void 0 : U.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : P.split(":")) == null ? void 0 : re[1];
|
|
2181
|
-
U = (ie = (I = G(m)) == null ? void 0 : I.find((t) => (t == null ? void 0 : t.label) === T)) == null ? void 0 : ie.value;
|
|
2182
|
-
}
|
|
2183
|
-
return U;
|
|
2184
|
-
})), x;
|
|
2185
|
-
}), Me.value = z;
|
|
2186
|
-
let le = {};
|
|
2187
|
-
(K = Me.value) == null || K.forEach((x) => {
|
|
2188
|
-
le[x.prop] = x == null ? void 0 : x.value;
|
|
2189
|
-
}), Je.value = le;
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
Fl.value = !1;
|
|
2193
|
-
}, an = (e) => e ? (e == null ? void 0 : e.toUpperCase()) === "INPUT" ? "TEXTAREA" : e : "TEXTAREA", rn = (e) => {
|
|
2194
|
-
var s, c;
|
|
2195
|
-
const l = (c = (s = Ze.value) == null ? void 0 : s.find((d) => (d == null ? void 0 : d.label) === (e == null ? void 0 : e.label))) == null ? void 0 : c.multiple, n = e == null ? void 0 : e.prop;
|
|
2196
|
-
if ((e == null ? void 0 : e.formType) != "Select")
|
|
2197
|
-
return;
|
|
2198
|
-
ee.value.forEach((d) => {
|
|
2199
|
-
const p = d == null ? void 0 : d[n];
|
|
2200
|
-
l && Ia(p) && (d[n] = [p]), !l && !Ia(p) && (d[n] = "");
|
|
2201
|
-
});
|
|
2202
|
-
}, Ea = (e, l) => {
|
|
2203
|
-
var n;
|
|
2204
|
-
return l == null || l.forEach((a) => {
|
|
2205
|
-
e[a == null ? void 0 : a.prop] = a == null ? void 0 : a.value;
|
|
2206
|
-
}), e.children && ((n = e.children) == null ? void 0 : n.length) > 0 && (e.children = e.children.map((a) => Ea(a, l))), e;
|
|
2207
|
-
}, ga = (e) => {
|
|
2208
|
-
var n, a, r, s, c, d;
|
|
2209
|
-
Jl("");
|
|
2210
|
-
const l = (n = Me.value) == null ? void 0 : n.reduce((p, g) => (p[g.name] = g.value, p), {});
|
|
2211
|
-
if (((a = Object.keys(l)) == null ? void 0 : a.length) > 0) {
|
|
2212
|
-
Je.value = l, tl.value = "", _l.value = (r = ee.value) == null ? void 0 : r.length, Dl.value = (s = vl.value) == null ? void 0 : s.filter((g) => (g == null ? void 0 : g.label) !== "新增");
|
|
2213
|
-
const p = (d = (c = Xe.value) == null ? void 0 : c.filter((g) => (g == null ? void 0 : g.label) !== "操作")) == null ? void 0 : d.map((g) => {
|
|
2214
|
-
var j, F, h;
|
|
2215
|
-
const A = (F = (j = Ze.value) == null ? void 0 : j.find((O) => (O == null ? void 0 : O.label) === (g == null ? void 0 : g.label))) == null ? void 0 : F.multiple;
|
|
2216
|
-
return rn(g), {
|
|
2217
|
-
...g,
|
|
2218
|
-
contents: (g == null ? void 0 : g.options) ?? [],
|
|
2219
|
-
// type: 'edit',
|
|
2220
|
-
optionUrl: g != null && g.formMenuSelect && ((h = g == null ? void 0 : g.formMenuSelect) == null ? void 0 : h.length) > 0 ? {
|
|
2221
|
-
groupSelect: g == null ? void 0 : g.groupSelect,
|
|
2222
|
-
menuSelect: g == null ? void 0 : g.formMenuSelect,
|
|
2223
|
-
selectRelateType: "",
|
|
2224
|
-
type: g == null ? void 0 : g.formType,
|
|
2225
|
-
multiple: A
|
|
2226
|
-
} : null
|
|
2227
|
-
// 表格编辑视图组件类型:兼容表头类型切换逻辑,优先模型里定义的类型,其次是手动配置的类型
|
|
2228
|
-
// columnType: convertColType(col?.formType) || col?.columnType
|
|
2229
|
-
};
|
|
2230
|
-
});
|
|
2231
|
-
W.value = p == null ? void 0 : p.map((g) => Ea(g, [{
|
|
2232
|
-
prop: "type",
|
|
2233
|
-
value: "edit"
|
|
2234
|
-
}, { prop: "columnType", value: an(g == null ? void 0 : g.formType) || (g == null ? void 0 : g.columnType) }])), e === "createClick" && Wl(!1);
|
|
2235
|
-
}
|
|
2236
|
-
}, El = {
|
|
2237
|
-
START: "开始时间",
|
|
2238
|
-
END: "结束时间",
|
|
2239
|
-
HOURS: "工时"
|
|
2240
|
-
}, nn = (e, l) => Number(Qa(l).diff(Qa(e), "day", !0).toFixed(1)), ja = (e) => {
|
|
2241
|
-
var s;
|
|
2242
|
-
const l = o.itemData, n = (s = l == null ? void 0 : l.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : s.contents, a = /* @__PURE__ */ new Map();
|
|
2243
|
-
return n == null || n.forEach((c, d) => {
|
|
2244
|
-
const { label: p } = c;
|
|
2245
|
-
a.set(p, d);
|
|
2246
|
-
}), !a.has(El.START) || !a.has(El.END) || !a.has(El.HOURS) ? e : e == null ? void 0 : e.map((c) => {
|
|
2247
|
-
const d = c == null ? void 0 : c[El.START], p = c == null ? void 0 : c[El.END], g = nn(d, p);
|
|
2248
|
-
return d && p && (c[El.HOURS] = `${g}天`), c;
|
|
2249
|
-
});
|
|
2250
|
-
}, Pa = (e, l, n = 0) => {
|
|
2251
|
-
if (n > ((l == null ? void 0 : l.length) ?? "")) return e;
|
|
2252
|
-
const a = l == null ? void 0 : l[n], r = /* @__PURE__ */ new Map();
|
|
2253
|
-
for (const c of e) {
|
|
2254
|
-
const d = c[a];
|
|
2255
|
-
r.has(d) || r.set(d, []), r.get(d) && r.get(d).push(c);
|
|
2256
|
-
}
|
|
2257
|
-
const s = [];
|
|
2258
|
-
for (const [c, d] of r) {
|
|
2259
|
-
const [p, ...g] = d, A = { ...p };
|
|
2260
|
-
n + 1 === ((l == null ? void 0 : l.length) ?? "") ? A.children = d == null ? void 0 : d.map((j) => (j.level = G(n) + 1, j)).filter((j, F) => F !== 0) : g.length > 0 && (A.children = Pa(g, l, n + 1)), A.level = n, s.push(A);
|
|
2261
|
-
}
|
|
2262
|
-
return s;
|
|
2263
|
-
}, La = (e, l, n) => {
|
|
2264
|
-
var r;
|
|
2265
|
-
if (!(l != null && l.contents) || ((r = l == null ? void 0 : l.contents) == null ? void 0 : r.length) === 0)
|
|
2266
|
-
return e;
|
|
2267
|
-
let a = [];
|
|
2268
|
-
return a = Pa(e, l == null ? void 0 : l.contents, 0), a;
|
|
2269
|
-
}, $a = (e, l) => {
|
|
2270
|
-
var F, h, O, E, D, J, M, B, k, C, y, u, f, K, i, _, m, z, le, x, v, N, X, se, Q;
|
|
2271
|
-
const n = e == null ? void 0 : e.filter((b) => (b == null ? void 0 : b.key) === "header");
|
|
2272
|
-
e == null || e.filter((b) => (b == null ? void 0 : b.key) === "tableIndexColumn")[0];
|
|
2273
|
-
const a = e == null ? void 0 : e.filter((b) => (b == null ? void 0 : b.key) === "childTree")[0];
|
|
2274
|
-
let r = l;
|
|
2275
|
-
const s = e == null ? void 0 : e.find((b) => (b == null ? void 0 : b.key) === "page"), c = e == null ? void 0 : e.find((b) => (b == null ? void 0 : b.key) === "rowButton"), d = e == null ? void 0 : e.find((b) => (b == null ? void 0 : b.key) === "extraButton"), p = e == null ? void 0 : e.filter((b) => (b == null ? void 0 : b.key) === "tableContents"), g = e == null ? void 0 : e.filter((b) => (b == null ? void 0 : b.key) === "tableIndex");
|
|
2276
|
-
Ze.value = (h = (F = e == null ? void 0 : e.filter((b) => (b == null ? void 0 : b.key) === "tableToForm")) == null ? void 0 : F[0]) == null ? void 0 : h.contents, ba.value = (s == null ? void 0 : s.contents) ?? !0;
|
|
2277
|
-
let A = [];
|
|
2278
|
-
bl.value === "" ? A = n == null ? void 0 : n[0] : A = (n == null ? void 0 : n.find((b) => (b == null ? void 0 : b.selectLabel) === "(" + bl.value + ")")) ?? (n == null ? void 0 : n.find((b) => !(b != null && b.selectLabel)));
|
|
2279
|
-
let j = [];
|
|
2280
|
-
if (bl.value === "" ? j = g == null ? void 0 : g[0] : j = (g == null ? void 0 : g.find((b) => (b == null ? void 0 : b.selectLabel) === "(" + bl.value + ")")) ?? (g == null ? void 0 : g.find((b) => !(b != null && b.selectLabel))), ((O = A == null ? void 0 : A.contents) == null ? void 0 : O.length) > 0) {
|
|
2281
|
-
let b = [];
|
|
2282
|
-
if (A != null && A.contents.some((T) => Array.isArray(T) && (T == null ? void 0 : T.find((t) => t.children))))
|
|
2283
|
-
Ml.value === "" ? b = (D = (E = qa(A == null ? void 0 : A.contents)) == null ? void 0 : E[0]) == null ? void 0 : D.filter((T) => !Array.isArray(T)) : (Ml.value.split("-"), b = (J = qa(A == null ? void 0 : A.contents)) == null ? void 0 : J[0]);
|
|
2284
|
-
else {
|
|
2285
|
-
let T = A != null && A.contents.some((t) => Array.isArray(t)) ? (M = A == null ? void 0 : A.contents) == null ? void 0 : M[0] : A == null ? void 0 : A.contents;
|
|
2286
|
-
T == null || T.forEach((t, fe) => {
|
|
2287
|
-
var _e, Te, nl, ul, ol;
|
|
2288
|
-
let ke = "";
|
|
2289
|
-
(Te = (_e = Se.value) == null ? void 0 : _e.split("/")) == null || Te.forEach((Be) => {
|
|
2290
|
-
var Fe, sl, jl;
|
|
2291
|
-
if (Be !== "") {
|
|
2292
|
-
let Ge = (jl = (sl = (Fe = Be == null ? void 0 : Be.split(Le + "updateLoading")) == null ? void 0 : Fe[0]) == null ? void 0 : sl.split(Le + "loading")) == null ? void 0 : jl[0];
|
|
2293
|
-
ke = ke === "" ? ke + Ge : ke + "/" + Ge;
|
|
2294
|
-
}
|
|
2295
|
-
}), ke = ke + Le + (t == null ? void 0 : t.directiveLabel);
|
|
2296
|
-
const ve = (nl = Ze.value) == null ? void 0 : nl.find((Be) => (Be == null ? void 0 : Be.prop) === (t == null ? void 0 : t.prop));
|
|
2297
|
-
b.push({
|
|
2298
|
-
label: (t == null ? void 0 : t.label) ?? "",
|
|
2299
|
-
prop: (t == null ? void 0 : t.label) === "操作" ? "operate" : (t == null ? void 0 : t.prop) ?? "a" + fe,
|
|
2300
|
-
// width: t?.label === '操作' ? '200' : (t?.width ? parseInt(t.width) : ''),
|
|
2301
|
-
width: t != null && t.width ? parseInt(t.width) : "",
|
|
2302
|
-
fixed: (t == null ? void 0 : t.fixed) ?? void 0,
|
|
2303
|
-
sortable: (t == null ? void 0 : t.sortable) ?? !1,
|
|
2304
|
-
filterable: (t == null ? void 0 : t.filterable) ?? !1,
|
|
2305
|
-
operable: (t == null ? void 0 : t.operable) ?? !1,
|
|
2306
|
-
showSummary: (t == null ? void 0 : t.showSummary) ?? !1,
|
|
2307
|
-
align: (t == null ? void 0 : t.align) ?? "left",
|
|
2308
|
-
showOverflowTooltip: (t == null ? void 0 : t.showOverflowTooltip) ?? !0,
|
|
2309
|
-
isNotDrag: (t == null ? void 0 : t.isNotDrag) ?? !1,
|
|
2310
|
-
isEditCol: (t == null ? void 0 : t.isEditCol) ?? !1,
|
|
2311
|
-
isOperate: (t == null ? void 0 : t.isOperate) ?? !1,
|
|
2312
|
-
id: (t == null ? void 0 : t.id) ?? fe,
|
|
2313
|
-
type: (t == null ? void 0 : t.label) === "操作" ? "operate" : void 0,
|
|
2314
|
-
formType: (t == null ? void 0 : t.formType) ?? (t != null && t.groupSelect ? "Select" : ""),
|
|
2315
|
-
isTableColHidden: t == null ? void 0 : t.isTableColHidden,
|
|
2316
|
-
isFormColHidden: t == null ? void 0 : t.isFormColHidden,
|
|
2317
|
-
disabled: t == null ? void 0 : t.disabled,
|
|
2318
|
-
options: (t == null ? void 0 : t.options) ?? [],
|
|
2319
|
-
value: (t == null ? void 0 : t.value) ?? "",
|
|
2320
|
-
formMenuSelect: (t == null ? void 0 : t.formMenuSelect) ?? [],
|
|
2321
|
-
isRoute: (t == null ? void 0 : t.isRoute) ?? !1,
|
|
2322
|
-
groupSelect: t != null && t.groupSelect ? (ul = t == null ? void 0 : t.groupSelect) == null ? void 0 : ul.replaceAll('"', "").split(":") : [],
|
|
2323
|
-
isMainKey: (t == null ? void 0 : t.isMainKey) || (t == null ? void 0 : t.directiveLabel) === "#isMain",
|
|
2324
|
-
// 同步弹窗列类型到表格列类型
|
|
2325
|
-
columnType: (ve == null ? void 0 : ve.type) || (t == null ? void 0 : t.columnType) || "TEXTAREA",
|
|
2326
|
-
directiveLabel: t == null ? void 0 : t.directiveLabel,
|
|
2327
|
-
directiveColor: (t == null ? void 0 : t.directiveColor) ?? !1,
|
|
2328
|
-
isExistChild: !!(t != null && t.directiveLabel && !(r != null && r[ke]) && !((ol = t == null ? void 0 : t.directiveLabel) != null && ol.includes("@")) && (t == null ? void 0 : t.directiveLabel) !== "#isMain"),
|
|
2329
|
-
childPath: (t == null ? void 0 : t.directiveLabel) !== "#isMain" ? ke : void 0,
|
|
2330
|
-
allSelectionContents: (t == null ? void 0 : t.allSelectionContents) ?? [],
|
|
2331
|
-
selectFilter: t == null ? void 0 : t.selectFilter,
|
|
2332
|
-
menuId: t == null ? void 0 : t.menuId,
|
|
2333
|
-
filterContent: t == null ? void 0 : t.filterContent,
|
|
2334
|
-
relatedValueId: t == null ? void 0 : t.relatedValueId
|
|
2335
|
-
});
|
|
2336
|
-
});
|
|
2337
|
-
}
|
|
2338
|
-
W.value = Ga(b), we.value = Ga(b), V.value = (B = W.value) == null ? void 0 : B.map((T) => T == null ? void 0 : T.label), gl.value = (k = W.value) == null ? void 0 : k.every((T) => T == null ? void 0 : T.filterable), pe.value = (C = W.value) == null ? void 0 : C.every((T) => T == null ? void 0 : T.operable), fl.value = (y = W.value) == null ? void 0 : y.every((T) => T == null ? void 0 : T.sortable);
|
|
2339
|
-
let U = (f = (u = _n(W.value)) == null ? void 0 : u.filter((T) => (T == null ? void 0 : T.type) !== "operate")) == null ? void 0 : f.map((T, t) => ({
|
|
2340
|
-
prop: (T == null ? void 0 : T.prop) ?? "a" + t,
|
|
2341
|
-
column: T.label
|
|
2342
|
-
}));
|
|
2343
|
-
ll.value = U;
|
|
2344
|
-
let P = [];
|
|
2345
|
-
bl.value === "" ? P = p == null ? void 0 : p[0] : P = (p == null ? void 0 : p.find((T) => (T == null ? void 0 : T.selectLabel) === "(" + bl.value + ")")) ?? (p == null ? void 0 : p.find((T) => !(T != null && T.selectLabel)));
|
|
2346
|
-
let re = Array.isArray((K = P == null ? void 0 : P.contents) == null ? void 0 : K[0]) && ((i = P == null ? void 0 : P.contents) != null && i[0].every((T) => Array.isArray(T))) ? (_ = P == null ? void 0 : P.contents) == null ? void 0 : _[0] : P == null ? void 0 : P.contents;
|
|
2347
|
-
j != null && j.contents && ((m = j == null ? void 0 : j.contents) == null ? void 0 : m.length) !== 0 && (re = (z = G(re)) == null ? void 0 : z.map((T, t) => {
|
|
2348
|
-
if (!Array.isArray(T)) {
|
|
2349
|
-
let fe = {};
|
|
2350
|
-
for (let ke in T)
|
|
2351
|
-
ke !== "id" && ke !== "index" && (fe[ke] = T[ke]);
|
|
2352
|
-
T = Object.values(fe);
|
|
2353
|
-
}
|
|
2354
|
-
return T;
|
|
2355
|
-
}));
|
|
2356
|
-
const I = !!((le = W.value) != null && le.find((T) => T.prop === "index"));
|
|
2357
|
-
re = ur(re, j == null ? void 0 : j.contents, I);
|
|
2358
|
-
const ie = [];
|
|
2359
|
-
re == null || re.forEach((T, t) => {
|
|
2360
|
-
var ke;
|
|
2361
|
-
let fe = {};
|
|
2362
|
-
if (Array.isArray(T)) {
|
|
2363
|
-
let ve = [];
|
|
2364
|
-
T == null || T.filter((_e) => !(_e != null && _e.id)).forEach((_e, Te) => {
|
|
2365
|
-
var nl, ul, ol, Be, Fe, sl;
|
|
2366
|
-
if ((nl = U == null ? void 0 : U[Te]) != null && nl.prop && !Array.isArray(_e)) {
|
|
2367
|
-
let jl = {};
|
|
2368
|
-
jl[U[Te].column] = _e, Ae != null && Ae.value && ((ul = Ae == null ? void 0 : Ae.value) == null ? void 0 : ul.length) > 0 && ((ol = Ae == null ? void 0 : Ae.value) != null && ol.find((Ge) => JSON.stringify(Ge == null ? void 0 : Ge[0]) === JSON.stringify(jl))) && (ve = (Be = Ae == null ? void 0 : Ae.value) == null ? void 0 : Be.find((Ge) => JSON.stringify(Ge == null ? void 0 : Ge[0]) === JSON.stringify(jl))), ve && ve.length > 0 ? fe[U[Te].prop] = ve != null && ve.find((Ge) => {
|
|
2369
|
-
var Rl;
|
|
2370
|
-
return ((Rl = Object.keys(Ge)) == null ? void 0 : Rl[0]) === U[Te].column;
|
|
2371
|
-
}) ? (Fe = ve == null ? void 0 : ve.find((Ge) => {
|
|
2372
|
-
var Rl;
|
|
2373
|
-
return ((Rl = Object.keys(Ge)) == null ? void 0 : Rl[0]) === U[Te].column;
|
|
2374
|
-
})) == null ? void 0 : Fe[U[Te].column] : _e : fe[U[Te].prop] = _e;
|
|
2375
|
-
} else Array.isArray(_e) && ((sl = U[Te]) != null && sl.prop ? fe[U[Te].prop] = _e : fe.children = ya(_e, U));
|
|
2376
|
-
});
|
|
2377
|
-
} else
|
|
2378
|
-
fe = T;
|
|
2379
|
-
Array.isArray(T) && T.some((ve) => ve == null ? void 0 : ve.id) ? ie.push(Object.assign(fe, { id: (ke = T == null ? void 0 : T.find((ve) => ve.id)) == null ? void 0 : ke.id })) : fe.id ? ie.push(fe) : ie.push(Object.assign(fe, { id: t.toString() }));
|
|
2380
|
-
}), ee.value = La(ie, a, W.value), Yl.value = ie, (x = Yl.value) == null || x.forEach((T) => {
|
|
2381
|
-
var t;
|
|
2382
|
-
(t = Zl.value) == null || t.set(T.id, T);
|
|
2383
|
-
});
|
|
2384
|
-
} else
|
|
2385
|
-
W.value = [], Xe.value = [], ee.value = [], Yl.value = [], Zl.value = /* @__PURE__ */ new Map();
|
|
2386
|
-
((v = c == null ? void 0 : c.contents) == null ? void 0 : v.length) > 0 ? yl.value = c == null ? void 0 : c.contents : yl.value = [], ((N = d == null ? void 0 : d.contents) == null ? void 0 : N.length) > 0 ? (Dl.value = d == null ? void 0 : d.contents, vl.value = d == null ? void 0 : d.contents) : (Dl.value = [], vl.value = []), _l.value = ((X = ee == null ? void 0 : ee.value) == null ? void 0 : X.length) ?? 0, ja(ee.value), la.value = ee.value, al.value && (W.value = (Q = (se = Xe.value) == null ? void 0 : se.filter((b) => (b == null ? void 0 : b.label) !== "操作")) == null ? void 0 : Q.map((b) => {
|
|
2387
|
-
var U;
|
|
2388
|
-
return {
|
|
2389
|
-
...b,
|
|
2390
|
-
type: "edit",
|
|
2391
|
-
optionUrl: b != null && b.formMenuSelect && ((U = b == null ? void 0 : b.formMenuSelect) == null ? void 0 : U.length) > 0 ? {
|
|
2392
|
-
groupSelect: b == null ? void 0 : b.groupSelect,
|
|
2393
|
-
menuSelect: b == null ? void 0 : b.formMenuSelect,
|
|
2394
|
-
selectRelateType: "",
|
|
2395
|
-
type: b == null ? void 0 : b.formType
|
|
2396
|
-
} : null
|
|
2397
|
-
};
|
|
2398
|
-
}), ga());
|
|
2399
|
-
};
|
|
2400
|
-
He(
|
|
2401
|
-
() => [o.itemData, bl.value, fr.value, Ml.value, Ae == null ? void 0 : Ae.value],
|
|
2402
|
-
async () => {
|
|
2403
|
-
var e, l, n, a, r, s;
|
|
2404
|
-
if ((e = o == null ? void 0 : o.itemData) != null && e.find((c) => (c == null ? void 0 : c.key) === "columnPath") && !((l = Nl.value) != null && l.find((c) => {
|
|
2405
|
-
var d, p;
|
|
2406
|
-
return (c == null ? void 0 : c.key) === ((p = (d = o == null ? void 0 : o.itemData) == null ? void 0 : d.find((g) => (g == null ? void 0 : g.key) === "columnPath")) == null ? void 0 : p.contents);
|
|
2407
|
-
}))) {
|
|
2408
|
-
let c = Nl.value, d = {
|
|
2409
|
-
key: (a = (n = o == null ? void 0 : o.itemData) == null ? void 0 : n.find((p) => (p == null ? void 0 : p.key) === "columnPath")) == null ? void 0 : a.contents,
|
|
2410
|
-
value: (s = (r = o == null ? void 0 : o.itemData) == null ? void 0 : r.find((p) => (p == null ? void 0 : p.key) === "columnUsingPath")) == null ? void 0 : s.contents
|
|
2411
|
-
};
|
|
2412
|
-
c != null && c.find((p) => (p == null ? void 0 : p.key) === (d == null ? void 0 : d.key)) ? c = c == null ? void 0 : c.map((p) => ((p == null ? void 0 : p.key) === (d == null ? void 0 : d.key) && (p.value = d.value), p)) : c.push(d), Ee.setTableViewContents(c);
|
|
2413
|
-
}
|
|
2414
|
-
$a(o.itemData, o.allMapContents);
|
|
2415
|
-
},
|
|
2416
|
-
{ deep: !0, immediate: !0 }
|
|
2417
|
-
), He(() => o == null ? void 0 : o.operatingForm, (e) => {
|
|
2418
|
-
e != null && e.form && (Jl(e == null ? void 0 : e.form), el.value = e == null ? void 0 : e.dialogTitle, ea.value = !0, cl.value = !0);
|
|
2419
|
-
}, { immediate: !0, deep: !0 });
|
|
2420
|
-
const wa = () => {
|
|
2421
|
-
var e;
|
|
2422
|
-
(e = Ce.value) != null && e.includes("read") && (al.value = !al.value);
|
|
2423
|
-
}, un = () => {
|
|
2424
|
-
aa.value = !aa.value;
|
|
2425
|
-
};
|
|
2426
|
-
He(() => {
|
|
2427
|
-
var e;
|
|
2428
|
-
return (e = o == null ? void 0 : o.config) == null ? void 0 : e.viewport;
|
|
2429
|
-
}, (e) => {
|
|
2430
|
-
var l;
|
|
2431
|
-
Ce.value = e, (e == null ? void 0 : e.length) === 0 ? al.value = !1 : (e != null && e.includes("read") || (al.value = !0), e != null && e.includes("edit") || (al.value = !1)), he.value = ((l = o == null ? void 0 : o.config) == null ? void 0 : l.showIndex) || al.value;
|
|
2432
|
-
}, { immediate: !0 }), He(() => al.value, (e) => {
|
|
2433
|
-
var l;
|
|
2434
|
-
e ? (ga("viewChange"), Ee.setCacheUpdatingData(null)) : (Dl.value = vl.value, W.value = we.value, wl.value && (Ee.setTableLoading(o == null ? void 0 : o.index), Z("change", wl.value))), ue.value = e, he.value = e || ((l = o == null ? void 0 : o.config) == null ? void 0 : l.showIndex);
|
|
2435
|
-
}, { immediate: !0 }), He(() => {
|
|
2436
|
-
var e;
|
|
2437
|
-
return (e = ka.value) == null ? void 0 : e.length;
|
|
2438
|
-
}, (e) => {
|
|
2439
|
-
e === 0 && (ce.currentPage = 1);
|
|
2440
|
-
}), He(() => o == null ? void 0 : o.compNames, (e) => {
|
|
2441
|
-
je.contents = [
|
|
2442
|
-
{
|
|
2443
|
-
label: "列表名",
|
|
2444
|
-
prop: "groupName",
|
|
2445
|
-
name: "列表名",
|
|
2446
|
-
type: "select",
|
|
2447
|
-
value: "",
|
|
2448
|
-
id: 0,
|
|
2449
|
-
contents: e || [],
|
|
2450
|
-
width: 1
|
|
2451
|
-
}
|
|
2452
|
-
];
|
|
2453
|
-
}, { immediate: !0 }), H(!1);
|
|
2454
|
-
const on = (e, l) => {
|
|
2455
|
-
var n;
|
|
2456
|
-
ga("createClick"), l === ce.pageSize && (ce.currentPage = Math.ceil(((n = ee.value) == null ? void 0 : n.length) / ce.pageSize));
|
|
2457
|
-
}, sn = (e, l, n) => {
|
|
2458
|
-
var a;
|
|
2459
|
-
Oa(n, e, l), Je.value = G(e), tl.value = e == null ? void 0 : e.id, _l.value = (a = ee.value) == null ? void 0 : a.length, el.value = typeof (e == null ? void 0 : e.id) == "string" ? "新增" : "编辑", Wl(!1);
|
|
2460
|
-
}, We = (e) => {
|
|
2461
|
-
var p, g, A, j, F, h, O, E, D, J;
|
|
2462
|
-
const { row: l, column: n, item: a, slotData: r } = e;
|
|
2463
|
-
let s = l != null && l[n == null ? void 0 : n.prop] || (l == null ? void 0 : l[n == null ? void 0 : n.prop]) === 0 ? ((g = (p = l == null ? void 0 : l[n == null ? void 0 : n.prop]) == null ? void 0 : p[0]) == null ? void 0 : g.contents) ?? ((l == null ? void 0 : l[n == null ? void 0 : n.prop]) === 0 ? "0" : l == null ? void 0 : l[n == null ? void 0 : n.prop]) : ((j = (A = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : A[0]) == null ? void 0 : j.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((h = (F = r == null ? void 0 : r[a == null ? void 0 : a.prop]) == null ? void 0 : F[0]) == null ? void 0 : h.contents) ?? (r == null ? void 0 : r[a == null ? void 0 : a.prop]) ?? ((D = (E = l == null ? void 0 : l[(O = a == null ? void 0 : a.child) == null ? void 0 : O.prop]) == null ? void 0 : E[0]) == null ? void 0 : D.contents) ?? (l == null ? void 0 : l[(J = a == null ? void 0 : a.child) == null ? void 0 : J.prop]), d = Array.isArray(s) && !(s != null && s.every((M) => typeof M == "string" || typeof M == "number")) ? "查看" : s;
|
|
2464
|
-
return d = Array.isArray(d) ? d.join(",") : d, d;
|
|
2465
|
-
}, tn = (e) => {
|
|
2466
|
-
var g, A, j, F, h, O, E, D, J, M;
|
|
2467
|
-
const { row: l, column: n, item: a, slotData: r } = e;
|
|
2468
|
-
let s = l != null && l[n == null ? void 0 : n.prop] ? ((A = (g = l == null ? void 0 : l[n == null ? void 0 : n.prop]) == null ? void 0 : g[0]) == null ? void 0 : A.contents) ?? (l == null ? void 0 : l[n == null ? void 0 : n.prop]) : ((F = (j = l == null ? void 0 : l[a == null ? void 0 : a.prop]) == null ? void 0 : j[0]) == null ? void 0 : F.contents) ?? (l == null ? void 0 : l[a == null ? void 0 : a.prop]) ?? ((O = (h = r == null ? void 0 : r[a == null ? void 0 : a.prop]) == null ? void 0 : h[0]) == null ? void 0 : O.contents) ?? (r == null ? void 0 : r[a == null ? void 0 : a.prop]) ?? ((J = (D = l == null ? void 0 : l[(E = a == null ? void 0 : a.child) == null ? void 0 : E.prop]) == null ? void 0 : D[0]) == null ? void 0 : J.contents) ?? (l == null ? void 0 : l[(M = a == null ? void 0 : a.child) == null ? void 0 : M.prop]);
|
|
2469
|
-
const d = Array.isArray(s) && !(s != null && s.every((B) => typeof B == "string" || typeof B == "number")), p = Array.isArray(s) && (s == null ? void 0 : s.find((B) => B == null ? void 0 : B.url));
|
|
2470
|
-
return d && p;
|
|
2471
|
-
}, cn = (e, l) => e.find((n) => Object.values(n).some((a) => a === l));
|
|
2472
|
-
return He(() => ir.value, async (e) => {
|
|
2473
|
-
if (e) {
|
|
2474
|
-
Ne.setContentLoading(!0), await oa();
|
|
2475
|
-
const l = cn(ee.value, e == null ? void 0 : e.data);
|
|
2476
|
-
if (!l) return Ne.setContentLoading(!1);
|
|
2477
|
-
await Aa(e == null ? void 0 : e.data, null, l, { data: e == null ? void 0 : e.data, isMainKey: !0 }), Ne.setContentLoading(!1);
|
|
2478
|
-
}
|
|
2479
|
-
}, { deep: !0, immediate: !0 }), He(() => o == null ? void 0 : o.cacheNewData, (e) => {
|
|
2480
|
-
var l;
|
|
2481
|
-
e && (Array.isArray(e) || (e == null ? void 0 : e.compId) === (o == null ? void 0 : o.index) && (ee.value = (l = ee.value) == null ? void 0 : l.map((n) => {
|
|
2482
|
-
var a;
|
|
2483
|
-
return (n == null ? void 0 : n.id) === ((a = e == null ? void 0 : e.data) == null ? void 0 : a.id) ? {
|
|
2484
|
-
...n,
|
|
2485
|
-
id: e == null ? void 0 : e.resId
|
|
2486
|
-
} : n;
|
|
2487
|
-
})));
|
|
2488
|
-
}, { immediate: !0, deep: !0 }), (e, l) => {
|
|
2489
|
-
var g, A, j, F;
|
|
2490
|
-
const n = Qe("svg-icon"), a = Qe("el-popover"), r = Qe("el-switch"), s = Qe("el-checkbox"), c = Qe("el-checkbox-group"), d = Qe("el-button"), p = Qe("LookComponent");
|
|
2491
|
-
return ae(), be("div", ku, [
|
|
2492
|
-
Sa.value ? (ae(), Pe(Nn, {
|
|
2493
|
-
id: "excel-table",
|
|
2494
|
-
pageObj: ce,
|
|
2495
|
-
showIndex: he.value,
|
|
2496
|
-
isTree: (g = w.compItem) == null ? void 0 : g.isTree,
|
|
2497
|
-
summaryInfo: me,
|
|
2498
|
-
columns: W.value,
|
|
2499
|
-
defaultSort: $e,
|
|
2500
|
-
isCardViewport: aa.value,
|
|
2501
|
-
checkedColumns: V.value,
|
|
2502
|
-
key: ta.value + JSON.stringify(W.value),
|
|
2503
|
-
tableData: ka.value,
|
|
2504
|
-
isEditViewport: al.value,
|
|
2505
|
-
isShowPagination: ba.value,
|
|
2506
|
-
isShowEdit: !1,
|
|
2507
|
-
isShowDelete: !1,
|
|
2508
|
-
allowSelect: ue.value,
|
|
2509
|
-
onDbClickRow: Br,
|
|
2510
|
-
extraButton: Dl.value,
|
|
2511
|
-
rowButton: yl.value,
|
|
2512
|
-
cacheExtraButtons: vl.value,
|
|
2513
|
-
isClearSelection: ((A = rl.value) == null ? void 0 : A.length) === 0,
|
|
2514
|
-
onDoCurrentChange: Sr,
|
|
2515
|
-
onDoSizeChange: kr,
|
|
2516
|
-
onContentClick: Aa,
|
|
2517
|
-
onRowClick: Fr,
|
|
2518
|
-
onSelectChange: _r,
|
|
2519
|
-
onCellChange: sn,
|
|
2520
|
-
onChange: Oa,
|
|
2521
|
-
onPreview: Ta,
|
|
2522
|
-
onSubmitEditingTable: Ur,
|
|
2523
|
-
onHandleColEditChange: xr,
|
|
2524
|
-
onHandleColTypeChange: Cr,
|
|
2525
|
-
onClickButton: ua
|
|
2526
|
-
}, hn({
|
|
2527
|
-
headerButton: Y((h) => {
|
|
2528
|
-
var O, E;
|
|
2529
|
-
return [
|
|
2530
|
-
w.showHeader ? (ae(), Pe(ou, {
|
|
2531
|
-
key: 0,
|
|
2532
|
-
pageLayout: w.pageLayout,
|
|
2533
|
-
lockingPage: Ie(Xl) === Ie(Se),
|
|
2534
|
-
filterValues: ma.value,
|
|
2535
|
-
selectNums: (O = rl.value) == null ? void 0 : O.length,
|
|
2536
|
-
dataNums: (E = ee.value) == null ? void 0 : E.length,
|
|
2537
|
-
compName: w.compName,
|
|
2538
|
-
isDevMode: w.isDevMode,
|
|
2539
|
-
buttons: h.buttons,
|
|
2540
|
-
onButtonClick: l[1] || (l[1] = (D) => ua(D, "", {})),
|
|
2541
|
-
columns: W.value,
|
|
2542
|
-
onFilter: Nr,
|
|
2543
|
-
onGetImportData: mr,
|
|
2544
|
-
level: w.level
|
|
2545
|
-
}, null, 8, ["pageLayout", "lockingPage", "filterValues", "selectNums", "dataNums", "compName", "isDevMode", "buttons", "columns", "level"])) : De("", !0)
|
|
2546
|
-
];
|
|
2547
|
-
}),
|
|
2548
|
-
viewport: Y(() => {
|
|
2549
|
-
var h, O, E, D;
|
|
2550
|
-
return [
|
|
2551
|
-
((h = ee.value) == null ? void 0 : h.length) > 0 && w.allowOperate ? (ae(), be("div", Au, [
|
|
2552
|
-
(O = Ce.value) != null && O.includes("read") && ((E = Ce.value) != null && E.includes("edit")) && ((D = yl.value) != null && D.some((J) => (J == null ? void 0 : J.label) === "编辑")) && !aa.value && Ie(Xl) !== Ie(Se) ? (ae(), be("span", {
|
|
2553
|
-
key: 0,
|
|
2554
|
-
title: "编辑表格",
|
|
2555
|
-
onClick: wa
|
|
2556
|
-
}, [
|
|
2557
|
-
oe(n, {
|
|
2558
|
-
name: "editTable",
|
|
2559
|
-
class: "view-icon"
|
|
2560
|
-
})
|
|
2561
|
-
])) : De("", !0),
|
|
2562
|
-
ge("span", {
|
|
2563
|
-
title: "卡片视图",
|
|
2564
|
-
onClick: un
|
|
2565
|
-
}, [
|
|
2566
|
-
oe(n, {
|
|
2567
|
-
name: "cardViewport",
|
|
2568
|
-
class: "view-icon"
|
|
2569
|
-
})
|
|
2570
|
-
])
|
|
2571
|
-
])) : De("", !0)
|
|
2572
|
-
];
|
|
2573
|
-
}),
|
|
2574
|
-
rowCreate: Y(({ row: h, index: O }) => [
|
|
2575
|
-
ge("span", {
|
|
2576
|
-
title: "新增",
|
|
2577
|
-
class: "row-create-wrap",
|
|
2578
|
-
onClick: (E) => on(h, O)
|
|
2579
|
-
}, [
|
|
2580
|
-
oe(n, {
|
|
2581
|
-
name: "rowCreate",
|
|
2582
|
-
style: { width: "10px", height: "10px" }
|
|
2583
|
-
})
|
|
2584
|
-
], 8, xu)
|
|
2585
|
-
]),
|
|
2586
|
-
operateCol: Y(() => [
|
|
2587
|
-
oe(a, {
|
|
2588
|
-
title: "选择显示列信息",
|
|
2589
|
-
placement: "left-start",
|
|
2590
|
-
"popper-class": "menu-operate-popover",
|
|
2591
|
-
trigger: "hover",
|
|
2592
|
-
onShow: en
|
|
2593
|
-
}, {
|
|
2594
|
-
reference: Y(() => [
|
|
2595
|
-
ge("span", Cu, [
|
|
2596
|
-
oe(n, {
|
|
2597
|
-
name: "operate",
|
|
2598
|
-
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
2599
|
-
})
|
|
2600
|
-
])
|
|
2601
|
-
]),
|
|
2602
|
-
default: Y(() => [
|
|
2603
|
-
ge("div", Uu, [
|
|
2604
|
-
l[12] || (l[12] = ge("div", { class: "group-title" }, "表格操作", -1)),
|
|
2605
|
-
oe(r, {
|
|
2606
|
-
"model-value": fl.value,
|
|
2607
|
-
"active-text": "排序",
|
|
2608
|
-
"inactive-text": "",
|
|
2609
|
-
style: { "margin-right": "8px" },
|
|
2610
|
-
onChange: l[3] || (l[3] = (h) => ca(h, "sortable"))
|
|
2611
|
-
}, null, 8, ["model-value"]),
|
|
2612
|
-
oe(r, {
|
|
2613
|
-
"model-value": gl.value,
|
|
2614
|
-
"active-text": "筛选",
|
|
2615
|
-
"inactive-text": "",
|
|
2616
|
-
style: { "margin-right": "8px" },
|
|
2617
|
-
onChange: l[4] || (l[4] = (h) => ca(h, "filterable"))
|
|
2618
|
-
}, null, 8, ["model-value"]),
|
|
2619
|
-
oe(r, {
|
|
2620
|
-
"model-value": pe.value,
|
|
2621
|
-
"active-text": "编辑所有表头",
|
|
2622
|
-
"inactive-text": "",
|
|
2623
|
-
onChange: l[5] || (l[5] = (h) => ca(h, "operable"))
|
|
2624
|
-
}, null, 8, ["model-value"]),
|
|
2625
|
-
l[13] || (l[13] = ge("div", { class: "group-title" }, "表格列操作", -1)),
|
|
2626
|
-
oe(c, {
|
|
2627
|
-
modelValue: V.value,
|
|
2628
|
-
"onUpdate:modelValue": l[6] || (l[6] = (h) => V.value = h),
|
|
2629
|
-
style: { height: "100%" },
|
|
2630
|
-
min: 2,
|
|
2631
|
-
ref_key: "checkboxGroupRef",
|
|
2632
|
-
ref: L
|
|
2633
|
-
}, {
|
|
2634
|
-
default: Y(() => [
|
|
2635
|
-
(ae(!0), be(dl, null, pl(Kl.value, (h) => (ae(), be("div", {
|
|
2636
|
-
style: { display: "flex", "align-items": "center" },
|
|
2637
|
-
key: h.label
|
|
2638
|
-
}, [
|
|
2639
|
-
oe(s, {
|
|
2640
|
-
value: h.label,
|
|
2641
|
-
style: { width: "100%", marginRight: 0 }
|
|
2642
|
-
}, {
|
|
2643
|
-
default: Y(() => [
|
|
2644
|
-
ge("span", {
|
|
2645
|
-
title: h.label,
|
|
2646
|
-
style: { display: "inline-block", width: "250px", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
2647
|
-
}, Oe(h.label), 9, _u)
|
|
2648
|
-
]),
|
|
2649
|
-
_: 2
|
|
2650
|
-
}, 1032, ["value"]),
|
|
2651
|
-
oe(a, {
|
|
2652
|
-
title: "列操作",
|
|
2653
|
-
placement: "left",
|
|
2654
|
-
teleported: !1,
|
|
2655
|
-
trigger: "hover"
|
|
2656
|
-
}, {
|
|
2657
|
-
reference: Y(() => [
|
|
2658
|
-
oe(n, {
|
|
2659
|
-
name: "colOperate",
|
|
2660
|
-
style: { width: "15px", height: "15px", cursor: "pointer", color: "grey", position: "absolute", right: "40px" }
|
|
2661
|
-
})
|
|
2662
|
-
]),
|
|
2663
|
-
default: Y(() => {
|
|
2664
|
-
var O;
|
|
2665
|
-
return [
|
|
2666
|
-
ge("div", Du, [
|
|
2667
|
-
(ae(!0), be(dl, null, pl((O = Object.keys(h)) == null ? void 0 : O.filter((E) => {
|
|
2668
|
-
var D;
|
|
2669
|
-
return (D = ye.value) == null ? void 0 : D.find((J) => (J == null ? void 0 : J.value) === E);
|
|
2670
|
-
}), (E) => {
|
|
2671
|
-
var D, J;
|
|
2672
|
-
return ae(), be("div", { key: E }, [
|
|
2673
|
-
oe(r, {
|
|
2674
|
-
"model-value": h == null ? void 0 : h[E],
|
|
2675
|
-
"active-text": (J = (D = ye.value) == null ? void 0 : D.find((M) => (M == null ? void 0 : M.value) === E)) == null ? void 0 : J.label,
|
|
2676
|
-
onChange: (M) => Or(M, E, h)
|
|
2677
|
-
}, null, 8, ["model-value", "active-text", "onChange"])
|
|
2678
|
-
]);
|
|
2679
|
-
}), 128))
|
|
2680
|
-
])
|
|
2681
|
-
];
|
|
2682
|
-
}),
|
|
2683
|
-
_: 2
|
|
2684
|
-
}, 1024),
|
|
2685
|
-
ge("span", Ou, [
|
|
2686
|
-
oe(n, {
|
|
2687
|
-
name: "drag",
|
|
2688
|
-
class: "col-drag-icon",
|
|
2689
|
-
style: { width: "15px", height: "15px" }
|
|
2690
|
-
})
|
|
2691
|
-
])
|
|
2692
|
-
]))), 128))
|
|
2693
|
-
]),
|
|
2694
|
-
_: 1
|
|
2695
|
-
}, 8, ["modelValue"])
|
|
2696
|
-
])
|
|
2697
|
-
]),
|
|
2698
|
-
_: 1
|
|
2699
|
-
})
|
|
2700
|
-
]),
|
|
2701
|
-
content: Y((h) => {
|
|
2702
|
-
var O, E, D, J, M, B, k, C, y, u, f, K, i, _, m, z, le, x;
|
|
2703
|
-
return [
|
|
2704
|
-
tn(h) ? (ae(), Pe(a, {
|
|
2705
|
-
key: 0,
|
|
2706
|
-
"popper-class": "file-popover",
|
|
2707
|
-
placement: "right",
|
|
2708
|
-
trigger: "hover",
|
|
2709
|
-
effect: "light",
|
|
2710
|
-
width: "auto"
|
|
2711
|
-
}, {
|
|
2712
|
-
reference: Y(() => [
|
|
2713
|
-
ge("span", Eu, Oe(We(h)), 1)
|
|
2714
|
-
]),
|
|
2715
|
-
default: Y(() => {
|
|
2716
|
-
var v, N;
|
|
2717
|
-
return [
|
|
2718
|
-
ge("div", ju, [
|
|
2719
|
-
(ae(!0), be(dl, null, pl((N = h == null ? void 0 : h.row) == null ? void 0 : N[(v = h == null ? void 0 : h.column) == null ? void 0 : v.prop], (X) => (ae(), be("div", Pu, [
|
|
2720
|
-
ge("div", {
|
|
2721
|
-
class: "prop-url",
|
|
2722
|
-
title: na(X),
|
|
2723
|
-
onClick: (se) => Pr(X)
|
|
2724
|
-
}, Oe(na(X)), 9, Lu),
|
|
2725
|
-
ge("div", {
|
|
2726
|
-
class: "prop-download",
|
|
2727
|
-
onClick: (se) => Lr(X)
|
|
2728
|
-
}, " 下载 ", 8, $u)
|
|
2729
|
-
]))), 256))
|
|
2730
|
-
])
|
|
2731
|
-
];
|
|
2732
|
-
}),
|
|
2733
|
-
_: 2
|
|
2734
|
-
}, 1024)) : (ae(), be("div", {
|
|
2735
|
-
key: 1,
|
|
2736
|
-
style: xl({
|
|
2737
|
-
color: !Array.isArray(We(h)) && ((E = (O = We(h)) == null ? void 0 : O.toString()) != null && E.includes(".txt") || (J = (D = We(h)) == null ? void 0 : D.toString()) != null && J.includes(".cpt") || (B = (M = We(h)) == null ? void 0 : M.toString()) != null && B.includes(".cyd")) ? "var(--vertical-menuitem-active-bg)" : "",
|
|
2738
|
-
textDecoration: !Array.isArray(We(h)) && ((C = (k = We(h)) == null ? void 0 : k.toString()) != null && C.includes(".txt") || (u = (y = We(h)) == null ? void 0 : y.toString()) != null && u.includes(".cpt") || (K = (f = We(h)) == null ? void 0 : f.toString()) != null && K.includes(".cyd")) ? "underline" : "",
|
|
2739
|
-
cursor: !Array.isArray(We(h)) && ((_ = (i = We(h)) == null ? void 0 : i.toString()) != null && _.includes(".txt") || (z = (m = We(h)) == null ? void 0 : m.toString()) != null && z.includes(".cpt") || (x = (le = We(h)) == null ? void 0 : le.toString()) != null && x.includes(".cyd")) ? "pointer" : "",
|
|
2740
|
-
marginLeft: (h == null ? void 0 : h.colIndex) === 0 ? `${((h == null ? void 0 : h.level) ?? 0) * 20}px` : 0
|
|
2741
|
-
}),
|
|
2742
|
-
onClick: (v) => br(We(h))
|
|
2743
|
-
}, Oe(We(h) === 0 ? "0" : We(h)), 13, wu))
|
|
2744
|
-
];
|
|
2745
|
-
}),
|
|
2746
|
-
_: 2
|
|
2747
|
-
}, [
|
|
2748
|
-
((j = yl.value) == null ? void 0 : j.length) > 0 && Ie(Xl) !== Ie(Se) ? {
|
|
2749
|
-
name: "actions",
|
|
2750
|
-
fn: Y(({ item: h }) => [
|
|
2751
|
-
oe(a, {
|
|
2752
|
-
title: "",
|
|
2753
|
-
placement: "left-start",
|
|
2754
|
-
"popper-class": "menu-operate-popover"
|
|
2755
|
-
}, {
|
|
2756
|
-
reference: Y(() => [
|
|
2757
|
-
oe(n, {
|
|
2758
|
-
name: "more",
|
|
2759
|
-
style: { cursor: "pointer", width: "15px", height: "15px" },
|
|
2760
|
-
onClick: l[0] || (l[0] = Fa(() => {
|
|
2761
|
-
}, ["stop"]))
|
|
2762
|
-
})
|
|
2763
|
-
]),
|
|
2764
|
-
default: Y(() => [
|
|
2765
|
-
ge("div", Tu, [
|
|
2766
|
-
(ae(!0), be(dl, null, pl($r(yl.value, h), (O, E) => (ae(), be("div", {
|
|
2767
|
-
class: "menu-config-item",
|
|
2768
|
-
key: E,
|
|
2769
|
-
onClick: Fa((D) => ua(O == null ? void 0 : O.label, h, { extra: O }), ["stop"])
|
|
2770
|
-
}, [
|
|
2771
|
-
ge("div", {
|
|
2772
|
-
style: xl({ color: O == null ? void 0 : O.textColor }),
|
|
2773
|
-
class: "extra-button-label"
|
|
2774
|
-
}, Oe(O == null ? void 0 : O.label), 5)
|
|
2775
|
-
], 8, mu))), 128))
|
|
2776
|
-
])
|
|
2777
|
-
]),
|
|
2778
|
-
_: 2
|
|
2779
|
-
}, 1024)
|
|
2780
|
-
]),
|
|
2781
|
-
key: "0"
|
|
2782
|
-
} : void 0,
|
|
2783
|
-
((F = ee.value) == null ? void 0 : F.length) > 0 ? {
|
|
2784
|
-
name: "batchButton",
|
|
2785
|
-
fn: Y((h) => [
|
|
2786
|
-
Ka(oe(iu, {
|
|
2787
|
-
lockingPage: Ie(Xl) === Ie(Se),
|
|
2788
|
-
buttons: h.buttons,
|
|
2789
|
-
selectTableItems: rl.value,
|
|
2790
|
-
onButtonClick: l[2] || (l[2] = (O) => ua(O, "", {}))
|
|
2791
|
-
}, null, 8, ["lockingPage", "buttons", "selectTableItems"]), [
|
|
2792
|
-
[za, ue.value]
|
|
2793
|
-
]),
|
|
2794
|
-
Ka(ge("div", null, null, 512), [
|
|
2795
|
-
[za, !ue.value]
|
|
2796
|
-
])
|
|
2797
|
-
]),
|
|
2798
|
-
key: "1"
|
|
2799
|
-
} : void 0
|
|
2800
|
-
]), 1032, ["pageObj", "showIndex", "isTree", "summaryInfo", "columns", "defaultSort", "isCardViewport", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "allowSelect", "extraButton", "rowButton", "cacheExtraButtons", "isClearSelection"])) : De("", !0),
|
|
2801
|
-
oe(Gl, {
|
|
2802
|
-
title: el.value,
|
|
2803
|
-
visible: cl.value,
|
|
2804
|
-
width: hr.value,
|
|
2805
|
-
onBeforeDestroy: Er,
|
|
2806
|
-
style: { height: "74%" }
|
|
2807
|
-
}, {
|
|
2808
|
-
default: Y(() => [
|
|
2809
|
-
ge("div", Nu, [
|
|
2810
|
-
oe($l, {
|
|
2811
|
-
rowContents: Me.value,
|
|
2812
|
-
isEnableWrap: !1,
|
|
2813
|
-
showOperator: !1,
|
|
2814
|
-
onChange: ln,
|
|
2815
|
-
onClickTrigger: jr,
|
|
2816
|
-
isEdit: Il.value,
|
|
2817
|
-
onBlurChange: Dr
|
|
2818
|
-
}, null, 8, ["rowContents", "isEdit"])
|
|
2819
|
-
])
|
|
2820
|
-
]),
|
|
2821
|
-
footer: Y(() => [
|
|
2822
|
-
ea.value ? (ae(), be("div", Bu, [
|
|
2823
|
-
oe(d, {
|
|
2824
|
-
onClick: l[7] || (l[7] = (h) => cl.value = !1),
|
|
2825
|
-
id: "themeBorderButton"
|
|
2826
|
-
}, {
|
|
2827
|
-
default: Y(() => l[14] || (l[14] = [
|
|
2828
|
-
Ye(Oe("取消"))
|
|
2829
|
-
])),
|
|
2830
|
-
_: 1,
|
|
2831
|
-
__: [14]
|
|
2832
|
-
}),
|
|
2833
|
-
oe(d, {
|
|
2834
|
-
class: "ok-button",
|
|
2835
|
-
onClick: l[8] || (l[8] = (h) => Wl(!0)),
|
|
2836
|
-
id: "themeButton"
|
|
2837
|
-
}, {
|
|
2838
|
-
default: Y(() => l[15] || (l[15] = [
|
|
2839
|
-
Ye(Oe("确认"))
|
|
2840
|
-
])),
|
|
2841
|
-
_: 1,
|
|
2842
|
-
__: [15]
|
|
2843
|
-
})
|
|
2844
|
-
])) : De("", !0)
|
|
2845
|
-
]),
|
|
2846
|
-
_: 1
|
|
2847
|
-
}, 8, ["title", "visible", "width"]),
|
|
2848
|
-
oe(Gl, {
|
|
2849
|
-
title: el.value,
|
|
2850
|
-
visible: Vl.value,
|
|
2851
|
-
width: ia.value,
|
|
2852
|
-
onBeforeDestroy: l[10] || (l[10] = (h) => Vl.value = !1)
|
|
2853
|
-
}, {
|
|
2854
|
-
default: Y(() => [
|
|
2855
|
-
oe(gu)
|
|
2856
|
-
]),
|
|
2857
|
-
footer: Y(() => [
|
|
2858
|
-
ge("div", Mu, [
|
|
2859
|
-
oe(d, {
|
|
2860
|
-
onClick: l[9] || (l[9] = (h) => Vl.value = !1),
|
|
2861
|
-
class: "cancel-button",
|
|
2862
|
-
id: "themeBorderButton"
|
|
2863
|
-
}, {
|
|
2864
|
-
default: Y(() => l[16] || (l[16] = [
|
|
2865
|
-
Ye(Oe("取消"))
|
|
2866
|
-
])),
|
|
2867
|
-
_: 1,
|
|
2868
|
-
__: [16]
|
|
2869
|
-
}),
|
|
2870
|
-
oe(d, {
|
|
2871
|
-
class: "ok-button",
|
|
2872
|
-
onClick: Kr,
|
|
2873
|
-
id: "themeButton"
|
|
2874
|
-
}, {
|
|
2875
|
-
default: Y(() => l[17] || (l[17] = [
|
|
2876
|
-
Ye(Oe("确认"))
|
|
2877
|
-
])),
|
|
2878
|
-
_: 1,
|
|
2879
|
-
__: [17]
|
|
2880
|
-
})
|
|
2881
|
-
])
|
|
2882
|
-
]),
|
|
2883
|
-
_: 1
|
|
2884
|
-
}, 8, ["title", "visible", "width"]),
|
|
2885
|
-
ze.value ? (ae(), Pe(Bn, {
|
|
2886
|
-
key: 1,
|
|
2887
|
-
fileDataList: Cl.value,
|
|
2888
|
-
onDestroy: Mr
|
|
2889
|
-
}, null, 8, ["fileDataList"])) : De("", !0),
|
|
2890
|
-
te.value ? (ae(), Pe(Gl, {
|
|
2891
|
-
key: 2,
|
|
2892
|
-
visible: te.value,
|
|
2893
|
-
onBeforeDestroy: Ir,
|
|
2894
|
-
style: { height: "80vh", width: "80vw" },
|
|
2895
|
-
"body-class": "three-dialog-body",
|
|
2896
|
-
"footer-class": "three-dialog-footer"
|
|
2897
|
-
}, {
|
|
2898
|
-
default: Y(() => [
|
|
2899
|
-
oe(Kn, {
|
|
2900
|
-
files: Bl.value,
|
|
2901
|
-
threeData: Ke.value
|
|
2902
|
-
}, null, 8, ["files", "threeData"])
|
|
2903
|
-
]),
|
|
2904
|
-
_: 1
|
|
2905
|
-
}, 8, ["visible"])) : De("", !0),
|
|
2906
|
-
oe(Gl, {
|
|
2907
|
-
visible: e.componentVisible,
|
|
2908
|
-
onBeforeDestroy: l[11] || (l[11] = (h) => e.componentVisible = !1),
|
|
2909
|
-
width: ia.value,
|
|
2910
|
-
style: { height: "70vh" }
|
|
2911
|
-
}, {
|
|
2912
|
-
default: Y(() => [
|
|
2913
|
-
oe(p, { dialogItem: kl.value }, null, 8, ["dialogItem"])
|
|
2914
|
-
]),
|
|
2915
|
-
_: 1
|
|
2916
|
-
}, 8, ["visible", "width"]),
|
|
2917
|
-
oe(Gl, {
|
|
2918
|
-
title: je.title,
|
|
2919
|
-
visible: je.show,
|
|
2920
|
-
width: je.width,
|
|
2921
|
-
onBeforeDestroy: Gr
|
|
2922
|
-
}, {
|
|
2923
|
-
default: Y(() => [
|
|
2924
|
-
ge("div", Fu, [
|
|
2925
|
-
oe($l, {
|
|
2926
|
-
rowContents: je == null ? void 0 : je.contents,
|
|
2927
|
-
formRules: je == null ? void 0 : je.formRules,
|
|
2928
|
-
showOperator: !1,
|
|
2929
|
-
buttonValue: je.buttonValue,
|
|
2930
|
-
isEdit: Il.value,
|
|
2931
|
-
isStartJustify: !1,
|
|
2932
|
-
isEnableWrap: !1,
|
|
2933
|
-
onOnButtonClick: Hr
|
|
2934
|
-
}, null, 8, ["rowContents", "formRules", "buttonValue", "isEdit"])
|
|
2935
|
-
])
|
|
2936
|
-
]),
|
|
2937
|
-
_: 1
|
|
2938
|
-
}, 8, ["title", "visible", "width"])
|
|
2939
|
-
]);
|
|
2940
|
-
};
|
|
2941
|
-
}
|
|
2942
|
-
}, ao = /* @__PURE__ */ sa(Ku, [["__scopeId", "data-v-5149bea7"]]);
|
|
2943
|
-
export {
|
|
2944
|
-
tu as a,
|
|
2945
|
-
Va as f,
|
|
2946
|
-
lr as g,
|
|
2947
|
-
ao as s,
|
|
2948
|
-
Su as u
|
|
2949
|
-
};
|