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