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