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